file_path stringlengths 3 280 | file_language stringclasses 66
values | content stringlengths 1 1.04M | repo_name stringlengths 5 92 | repo_stars int64 0 154k | repo_description stringlengths 0 402 | repo_primary_language stringclasses 108
values | developer_username stringlengths 1 25 | developer_name stringlengths 0 30 | developer_company stringlengths 0 82 |
|---|---|---|---|---|---|---|---|---|---|
crates/swc_ecma_minifier/tests/fixture/projects/jquery/11/output.js | JavaScript | jQuery.support = function() {
var support, all, a, input, select, fragment, opt, eventName, isSupported, i, div = document.createElement("div");
if (// Setup
div.setAttribute("className", "t"), div.innerHTML = " <link/><table></table><a href='/a'>a</a><input type='checkbox'/>", // Support tests won't run in some limited or non-browser environments
all = div.getElementsByTagName("*"), a = div.getElementsByTagName("a")[0], !all || !a || !all.length) return {};
opt = // First batch of tests
(select = document.createElement("select")).appendChild(document.createElement("option")), input = div.getElementsByTagName("input")[0], a.style.cssText = "top:1px;float:left;opacity:.5", support = {
// Test setAttribute on camelCase class. If it works, we need attrFixes when doing get/setAttribute (ie6/7)
getSetAttribute: "t" !== div.className,
// IE strips leading whitespace when .innerHTML is used
leadingWhitespace: 3 === div.firstChild.nodeType,
// Make sure that tbody elements aren't automatically inserted
// IE will insert them into empty tables
tbody: !div.getElementsByTagName("tbody").length,
// Make sure that link elements get serialized correctly by innerHTML
// This requires a wrapper element in IE
htmlSerialize: !!div.getElementsByTagName("link").length,
// Get the style information from getAttribute
// (IE uses .cssText instead)
style: /top/.test(a.getAttribute("style")),
// Make sure that URLs aren't manipulated
// (IE normalizes it by default)
hrefNormalized: "/a" === a.getAttribute("href"),
// Make sure that element opacity exists
// (IE uses filter instead)
// Use a regex to work around a WebKit issue. See #5145
opacity: /^0.5/.test(a.style.opacity),
// Verify style float existence
// (IE uses styleFloat instead of cssFloat)
cssFloat: !!a.style.cssFloat,
// Check the default checkbox/radio value ("" on WebKit; "on" elsewhere)
checkOn: !!input.value,
// Make sure that a selected-by-default option has a working selected property.
// (WebKit defaults to false instead of true, IE too, if it's in an optgroup)
optSelected: opt.selected,
// Tests for enctype support on a form (#6743)
enctype: !!document.createElement("form").enctype,
// Makes sure cloning an html5 element does not cause problems
// Where outerHTML is undefined, this still works
html5Clone: "<:nav></:nav>" !== document.createElement("nav").cloneNode(!0).outerHTML,
// jQuery.support.boxModel DEPRECATED in 1.8 since we don't support Quirks Mode
boxModel: "CSS1Compat" === document.compatMode,
// Will be defined later
deleteExpando: !0,
noCloneEvent: !0,
inlineBlockNeedsLayout: !1,
shrinkWrapBlocks: !1,
reliableMarginRight: !0,
boxSizingReliable: !0,
pixelPosition: !1
}, // Make sure checked status is properly cloned
input.checked = !0, support.noCloneChecked = input.cloneNode(!0).checked, // Make sure that the options inside disabled selects aren't marked as disabled
// (WebKit marks them as disabled)
select.disabled = !0, support.optDisabled = !opt.disabled;
// Support: IE<9
try {
delete div.test;
} catch (e) {
support.deleteExpando = !1;
}
// Support: IE<9 (lack submit/change bubble), Firefox 17+ (lack focusin event)
// Beware of CSP restrictions (https://developer.mozilla.org/en/Security/CSP), test/csp.php
for(i in // Check if we can trust getAttribute("value")
(input = document.createElement("input")).setAttribute("value", ""), support.input = "" === input.getAttribute("value"), // Check if an input maintains its value after becoming a radio
input.value = "t", input.setAttribute("type", "radio"), support.radioValue = "t" === input.value, // #11217 - WebKit loses check when the name is after the checked attribute
input.setAttribute("checked", "t"), input.setAttribute("name", "t"), (fragment = document.createDocumentFragment()).appendChild(input), // Check if a disconnected checkbox will retain its checked
// value of true after appended to the DOM (IE6/7)
support.appendChecked = input.checked, // WebKit doesn't clone checked state correctly in fragments
support.checkClone = fragment.cloneNode(!0).cloneNode(!0).lastChild.checked, div.attachEvent && (div.attachEvent("onclick", function() {
support.noCloneEvent = !1;
}), div.cloneNode(!0).click()), {
submit: !0,
change: !0,
focusin: !0
})div.setAttribute(eventName = "on" + i, "t"), support[i + "Bubbles"] = eventName in window || !1 === div.attributes[eventName].expando;
return div.style.backgroundClip = "content-box", div.cloneNode(!0).style.backgroundClip = "", support.clearCloneStyle = "content-box" === div.style.backgroundClip, // Run tests that need a body at doc ready
jQuery(function() {
var container, marginDiv, tds, divReset = "padding:0;margin:0;border:0;display:block;box-sizing:content-box;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;", body = document.getElementsByTagName("body")[0];
body && ((container = document.createElement("div")).style.cssText = "border:0;width:0;height:0;position:absolute;top:0;left:-9999px;margin-top:1px", body.appendChild(container).appendChild(div), // Support: IE8
// Check if table cells still have offsetWidth/Height when they are set
// to display:none and there are still other visible table cells in a
// table row; if so, offsetWidth/Height are not reliable for use when
// determining if an element has been hidden directly using
// display:none (it is still safe to use offsets if a parent element is
// hidden; don safety goggles and see bug #4512 for more information).
div.innerHTML = "<table><tr><td></td><td>t</td></tr></table>", (tds = div.getElementsByTagName("td"))[0].style.cssText = "padding:0;margin:0;border:0;display:none", isSupported = 0 === tds[0].offsetHeight, tds[0].style.display = "", tds[1].style.display = "none", // Support: IE8
// Check if empty table cells still have offsetWidth/Height
support.reliableHiddenOffsets = isSupported && 0 === tds[0].offsetHeight, // Check box-sizing and margin behavior
div.innerHTML = "", div.style.cssText = "box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%;", support.boxSizing = 4 === div.offsetWidth, support.doesNotIncludeMarginInBodyOffset = 1 !== body.offsetTop, window.getComputedStyle && (support.pixelPosition = "1%" !== (window.getComputedStyle(div, null) || {}).top, support.boxSizingReliable = "4px" === (window.getComputedStyle(div, null) || {
width: "4px"
}).width, // Check if div with explicit width and no margin-right incorrectly
// gets computed margin-right based on width of container. (#3333)
// Fails in WebKit before Feb 2011 nightlies
// WebKit Bug 13343 - getComputedStyle returns wrong value for margin-right
(marginDiv = div.appendChild(document.createElement("div"))).style.cssText = div.style.cssText = divReset, marginDiv.style.marginRight = marginDiv.style.width = "0", div.style.width = "1px", support.reliableMarginRight = !parseFloat((window.getComputedStyle(marginDiv, null) || {}).marginRight)), typeof div.style.zoom !== core_strundefined && (// Support: IE<8
// Check if natively block-level elements act like inline-block
// elements when setting their display to 'inline' and giving
// them layout
div.innerHTML = "", div.style.cssText = divReset + "width:1px;padding:1px;display:inline;zoom:1", support.inlineBlockNeedsLayout = 3 === div.offsetWidth, // Support: IE6
// Check if elements with layout shrink-wrap their children
div.style.display = "block", div.innerHTML = "<div></div>", div.firstChild.style.width = "5px", support.shrinkWrapBlocks = 3 !== div.offsetWidth, support.inlineBlockNeedsLayout && // Prevent IE 6 from affecting layout for positioned elements #11048
// Prevent IE from shrinking the body in IE 7 mode #12869
// Support: IE<8
(body.style.zoom = 1)), body.removeChild(container), div = null);
}), // Null elements to avoid leaks in IE
all = select = fragment = opt = a = input = null, support;
}();
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/fixture/projects/jquery/12/input.js | JavaScript | var rbrace = /(?:\{[\s\S]*\}|\[[\s\S]*\])$/,
rmultiDash = /([A-Z])/g;
function internalData(elem, name, data, pvt /* Internal Use Only */) {
if (!jQuery.acceptData(elem)) {
return;
}
var thisCache,
ret,
internalKey = jQuery.expando,
getByName = typeof name === "string",
// We have to handle DOM nodes and JS objects differently because IE6-7
// can't GC object references properly across the DOM-JS boundary
isNode = elem.nodeType,
// Only DOM nodes need the global jQuery cache; JS object data is
// attached directly to the object so GC can occur automatically
cache = isNode ? jQuery.cache : elem,
// Only defining an ID for JS objects if its cache already exists allows
// the code to shortcut on the same path as a DOM node with no cache
id = isNode ? elem[internalKey] : elem[internalKey] && internalKey;
// Avoid doing any more work than we need to when trying to get data on an
// object that has no data at all
if (
(!id || !cache[id] || (!pvt && !cache[id].data)) &&
getByName &&
data === undefined
) {
return;
}
if (!id) {
// Only DOM nodes need a new unique ID for each element since their data
// ends up in the global cache
if (isNode) {
elem[internalKey] = id = core_deletedIds.pop() || jQuery.guid++;
} else {
id = internalKey;
}
}
if (!cache[id]) {
cache[id] = {};
// Avoids exposing jQuery metadata on plain JS objects when the object
// is serialized using JSON.stringify
if (!isNode) {
cache[id].toJSON = jQuery.noop;
}
}
// An object can be passed to jQuery.data instead of a key/value pair; this gets
// shallow copied over onto the existing cache
if (typeof name === "object" || typeof name === "function") {
if (pvt) {
cache[id] = jQuery.extend(cache[id], name);
} else {
cache[id].data = jQuery.extend(cache[id].data, name);
}
}
thisCache = cache[id];
// jQuery data() is stored in a separate object inside the object's internal data
// cache in order to avoid key collisions between internal data and user-defined
// data.
if (!pvt) {
if (!thisCache.data) {
thisCache.data = {};
}
thisCache = thisCache.data;
}
if (data !== undefined) {
thisCache[jQuery.camelCase(name)] = data;
}
// Check for both converted-to-camel and non-converted data property names
// If a data property was specified
if (getByName) {
// First Try to find as-is property data
ret = thisCache[name];
// Test for null|undefined property data
if (ret == null) {
// Try to find the camelCased property
ret = thisCache[jQuery.camelCase(name)];
}
} else {
ret = thisCache;
}
return ret;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/fixture/projects/jquery/12/output.js | JavaScript | var rbrace = /(?:\{[\s\S]*\}|\[[\s\S]*\])$/, rmultiDash = /([A-Z])/g;
function internalData(elem, name, data, pvt /* Internal Use Only */ ) {
if (jQuery.acceptData(elem)) {
var thisCache, ret, internalKey = jQuery.expando, getByName = "string" == typeof name, // We have to handle DOM nodes and JS objects differently because IE6-7
// can't GC object references properly across the DOM-JS boundary
isNode = elem.nodeType, // Only DOM nodes need the global jQuery cache; JS object data is
// attached directly to the object so GC can occur automatically
cache = isNode ? jQuery.cache : elem, // Only defining an ID for JS objects if its cache already exists allows
// the code to shortcut on the same path as a DOM node with no cache
id = isNode ? elem[internalKey] : elem[internalKey] && internalKey;
// Avoid doing any more work than we need to when trying to get data on an
// object that has no data at all
if (id && cache[id] && (pvt || cache[id].data) || !getByName || void 0 !== data) return id || (isNode ? elem[internalKey] = id = core_deletedIds.pop() || jQuery.guid++ : id = internalKey), cache[id] || (cache[id] = {}, isNode || (cache[id].toJSON = jQuery.noop)), ("object" == typeof name || "function" == typeof name) && (pvt ? cache[id] = jQuery.extend(cache[id], name) : cache[id].data = jQuery.extend(cache[id].data, name)), thisCache = cache[id], pvt || (thisCache.data || (thisCache.data = {}), thisCache = thisCache.data), void 0 !== data && (thisCache[jQuery.camelCase(name)] = data), getByName ? null == // First Try to find as-is property data
(ret = thisCache[name]) && // Try to find the camelCased property
(ret = thisCache[jQuery.camelCase(name)]) : ret = thisCache, ret;
}
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/fixture/projects/jquery/13/input.js | JavaScript | var jQuery = window.jQuery || {};
function internalRemoveData(elem, name, pvt) {
if (!jQuery.acceptData(elem)) {
return;
}
var i,
l,
thisCache,
isNode = elem.nodeType,
// See jQuery.data for more information
cache = isNode ? jQuery.cache : elem,
id = isNode ? elem[jQuery.expando] : jQuery.expando;
// If there is already no cache entry for this object, there is no
// purpose in continuing
if (!cache[id]) {
return;
}
if (name) {
thisCache = pvt ? cache[id] : cache[id].data;
if (thisCache) {
// Support array or space separated string names for data keys
if (!jQuery.isArray(name)) {
// try the string as a key before any manipulation
if (name in thisCache) {
name = [name];
} else {
// split the camel cased version by spaces unless a key with the spaces exists
name = jQuery.camelCase(name);
if (name in thisCache) {
name = [name];
} else {
name = name.split(" ");
}
}
} else {
// If "name" is an array of keys...
// When data is initially created, via ("key", "val") signature,
// keys will be converted to camelCase.
// Since there is no way to tell _how_ a key was added, remove
// both plain key and camelCase key. #12786
// This will only penalize the array argument path.
name = name.concat(jQuery.map(name, jQuery.camelCase));
}
for (i = 0, l = name.length; i < l; i++) {
delete thisCache[name[i]];
}
// If there is no data left in the cache, we want to continue
// and let the cache object itself get destroyed
if (!(pvt ? isEmptyDataObject : jQuery.isEmptyObject)(thisCache)) {
return;
}
}
}
// See jQuery.data for more information
if (!pvt) {
delete cache[id].data;
// Don't destroy the parent cache unless the internal data object
// had been the only thing left in it
if (!isEmptyDataObject(cache[id])) {
return;
}
}
// Destroy the cache
if (isNode) {
jQuery.cleanData([elem], true);
// Use delete when supported for expandos or `cache` is not a window per isWindow (#10080)
} else if (jQuery.support.deleteExpando || cache != cache.window) {
delete cache[id];
// When all else fails, null
} else {
cache[id] = null;
}
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/fixture/projects/jquery/13/output.js | JavaScript | var jQuery = window.jQuery || {};
function internalRemoveData(elem, name, pvt) {
if (jQuery.acceptData(elem)) {
var i, l, thisCache, isNode = elem.nodeType, // See jQuery.data for more information
cache = isNode ? jQuery.cache : elem, id = isNode ? elem[jQuery.expando] : jQuery.expando;
// If there is already no cache entry for this object, there is no
// purpose in continuing
if (cache[id]) {
if (name && (thisCache = pvt ? cache[id] : cache[id].data)) {
for(i = 0, l = (// If "name" is an array of keys...
// When data is initially created, via ("key", "val") signature,
// keys will be converted to camelCase.
// Since there is no way to tell _how_ a key was added, remove
// both plain key and camelCase key. #12786
// This will only penalize the array argument path.
name = jQuery.isArray(name) ? name.concat(jQuery.map(name, jQuery.camelCase)) : (name in thisCache) ? [
name
] : (// split the camel cased version by spaces unless a key with the spaces exists
(name = jQuery.camelCase(name)) in thisCache) ? [
name
] : name.split(" ")).length; i < l; i++)delete thisCache[name[i]];
// If there is no data left in the cache, we want to continue
// and let the cache object itself get destroyed
if (!(pvt ? isEmptyDataObject : jQuery.isEmptyObject)(thisCache)) return;
}
// See jQuery.data for more information
(pvt || (delete cache[id].data, isEmptyDataObject(cache[id]))) && (isNode ? jQuery.cleanData([
elem
], !0) : jQuery.support.deleteExpando || cache != cache.window ? delete cache[id] : cache[id] = null);
}
}
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/fixture/projects/jquery/14/input.js | JavaScript | export const obj = {
preventDefault: function () {
var e = this.originalEvent;
this.isDefaultPrevented = returnTrue;
if (!e) {
return;
}
// If preventDefault exists, run it on the original event
if (e.preventDefault) {
e.preventDefault();
// Support: IE
// Otherwise set the returnValue property of the original event to false
} else {
e.returnValue = false;
}
},
};
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/fixture/projects/jquery/14/output.js | JavaScript | export const obj = {
preventDefault: function() {
var e = this.originalEvent;
this.isDefaultPrevented = returnTrue, e && (e.preventDefault ? e.preventDefault() : e.returnValue = !1);
}
};
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/fixture/projects/jquery/15/input.js | JavaScript | export const obj = {
position: function () {
if (!this[0]) {
return;
}
var offsetParent,
offset,
parentOffset = { top: 0, left: 0 },
elem = this[0];
// fixed elements are offset from window (parentOffset = {top:0, left: 0}, because it is it's only offset parent
if (jQuery.css(elem, "position") === "fixed") {
// we assume that getBoundingClientRect is available when computed position is fixed
offset = elem.getBoundingClientRect();
} else {
// Get *real* offsetParent
offsetParent = this.offsetParent();
// Get correct offsets
offset = this.offset();
if (!jQuery.nodeName(offsetParent[0], "html")) {
parentOffset = offsetParent.offset();
}
// Add offsetParent borders
parentOffset.top += jQuery.css(
offsetParent[0],
"borderTopWidth",
true
);
parentOffset.left += jQuery.css(
offsetParent[0],
"borderLeftWidth",
true
);
}
// Subtract parent offsets and element margins
// note: when an element has margin: auto the offsetLeft and marginLeft
// are the same in Safari causing offset.left to incorrectly be 0
return {
top:
offset.top -
parentOffset.top -
jQuery.css(elem, "marginTop", true),
left:
offset.left -
parentOffset.left -
jQuery.css(elem, "marginLeft", true),
};
},
};
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/fixture/projects/jquery/15/output.js | JavaScript | export const obj = {
position: function() {
if (this[0]) {
var offsetParent, offset, parentOffset = {
top: 0,
left: 0
}, elem = this[0];
// Subtract parent offsets and element margins
// note: when an element has margin: auto the offsetLeft and marginLeft
// are the same in Safari causing offset.left to incorrectly be 0
return "fixed" === jQuery.css(elem, "position") ? // we assume that getBoundingClientRect is available when computed position is fixed
offset = elem.getBoundingClientRect() : (// Get *real* offsetParent
offsetParent = this.offsetParent(), // Get correct offsets
offset = this.offset(), jQuery.nodeName(offsetParent[0], "html") || (parentOffset = offsetParent.offset()), // Add offsetParent borders
parentOffset.top += jQuery.css(offsetParent[0], "borderTopWidth", !0), parentOffset.left += jQuery.css(offsetParent[0], "borderLeftWidth", !0)), {
top: offset.top - parentOffset.top - jQuery.css(elem, "marginTop", !0),
left: offset.left - parentOffset.left - jQuery.css(elem, "marginLeft", !0)
};
}
}
};
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/fixture/projects/jquery/16/input.js | JavaScript | export const obj = {
setOffset: function (elem, options, i) {
var position = jQuery.css(elem, "position");
// set position first, in-case top/left are set even on static elem
if (position === "static") {
elem.style.position = "relative";
}
var curElem = jQuery(elem),
curOffset = curElem.offset(),
curCSSTop = jQuery.css(elem, "top"),
curCSSLeft = jQuery.css(elem, "left"),
calculatePosition =
(position === "absolute" || position === "fixed") &&
jQuery.inArray("auto", [curCSSTop, curCSSLeft]) > -1,
props = {},
curPosition = {},
curTop,
curLeft;
// need to be able to calculate position if either top or left is auto and position is either absolute or fixed
if (calculatePosition) {
curPosition = curElem.position();
curTop = curPosition.top;
curLeft = curPosition.left;
} else {
curTop = parseFloat(curCSSTop) || 0;
curLeft = parseFloat(curCSSLeft) || 0;
}
if (jQuery.isFunction(options)) {
options = options.call(elem, i, curOffset);
}
if (options.top != null) {
props.top = options.top - curOffset.top + curTop;
}
if (options.left != null) {
props.left = options.left - curOffset.left + curLeft;
}
if ("using" in options) {
options.using.call(elem, props);
} else {
curElem.css(props);
}
},
};
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/fixture/projects/jquery/16/output.js | JavaScript | export const obj = {
setOffset: function(elem, options, i) {
var position = jQuery.css(elem, "position");
"static" === position && (elem.style.position = "relative");
var curTop, curLeft, curElem = jQuery(elem), curOffset = curElem.offset(), curCSSTop = jQuery.css(elem, "top"), curCSSLeft = jQuery.css(elem, "left"), calculatePosition = ("absolute" === position || "fixed" === position) && jQuery.inArray("auto", [
curCSSTop,
curCSSLeft
]) > -1, props = {}, curPosition = {};
calculatePosition ? (curTop = (curPosition = curElem.position()).top, curLeft = curPosition.left) : (curTop = parseFloat(curCSSTop) || 0, curLeft = parseFloat(curCSSLeft) || 0), jQuery.isFunction(options) && (options = options.call(elem, i, curOffset)), null != options.top && (props.top = options.top - curOffset.top + curTop), null != options.left && (props.left = options.left - curOffset.left + curLeft), "using" in options ? options.using.call(elem, props) : curElem.css(props);
}
};
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/fixture/projects/jquery/18/input.js | JavaScript | export const obj = {
tweener: function (props, callback) {
if (jQuery.isFunction(props)) {
callback = props;
props = ["*"];
} else {
props = props.split(" ");
}
var prop,
index = 0,
length = props.length;
for (; index < length; index++) {
prop = props[index];
tweeners[prop] = tweeners[prop] || [];
tweeners[prop].unshift(callback);
}
},
};
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/fixture/projects/jquery/18/output.js | JavaScript | export const obj = {
tweener: function(props, callback) {
jQuery.isFunction(props) ? (callback = props, props = [
"*"
]) : props = props.split(" ");
for(var prop, index = 0, length = props.length; index < length; index++)prop = props[index], tweeners[prop] = tweeners[prop] || [], tweeners[prop].unshift(callback);
}
};
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/fixture/projects/jquery/2/input.js | JavaScript | jQuery.extend = jQuery.fn.extend = function () {
var src,
copyIsArray,
copy,
name,
options,
clone,
target = arguments[0] || {},
i = 1,
length = arguments.length,
deep = false;
// Handle a deep copy situation
if (typeof target === "boolean") {
deep = target;
target = arguments[1] || {};
// skip the boolean and the target
i = 2;
}
// Handle case when target is a string or something (possible in deep copy)
if (typeof target !== "object" && !jQuery.isFunction(target)) {
target = {};
}
// extend jQuery itself if only one argument is passed
if (length === i) {
target = this;
--i;
}
for (; i < length; i++) {
// Only deal with non-null/undefined values
if ((options = arguments[i]) != null) {
// Extend the base object
for (name in options) {
src = target[name];
copy = options[name];
// Prevent never-ending loop
if (target === copy) {
continue;
}
// Recurse if we're merging plain objects or arrays
if (
deep &&
copy &&
(jQuery.isPlainObject(copy) ||
(copyIsArray = jQuery.isArray(copy)))
) {
if (copyIsArray) {
copyIsArray = false;
clone = src && jQuery.isArray(src) ? src : [];
} else {
clone = src && jQuery.isPlainObject(src) ? src : {};
}
// Never move original objects, clone them
target[name] = jQuery.extend(deep, clone, copy);
// Don't bring in undefined values
} else if (copy !== undefined) {
target[name] = copy;
}
}
}
}
// Return the modified object
return target;
};
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/fixture/projects/jquery/2/output.js | JavaScript | jQuery.extend = jQuery.fn.extend = function() {
var src, copyIsArray, copy, name, options, clone, target = arguments[0] || {}, i = 1, length = arguments.length, deep = !1;
for("boolean" == typeof target && (deep = target, target = arguments[1] || {}, // skip the boolean and the target
i = 2), "object" == typeof target || jQuery.isFunction(target) || (target = {}), length === i && (target = this, --i); i < length; i++)// Only deal with non-null/undefined values
if (null != (options = arguments[i])) // Extend the base object
for(name in options)// Prevent never-ending loop
src = target[name], target !== (copy = options[name]) && (deep && copy && (jQuery.isPlainObject(copy) || (copyIsArray = jQuery.isArray(copy))) ? (copyIsArray ? (copyIsArray = !1, clone = src && jQuery.isArray(src) ? src : []) : clone = src && jQuery.isPlainObject(src) ? src : {}, // Never move original objects, clone them
target[name] = jQuery.extend(deep, clone, copy)) : void 0 !== copy && (target[name] = copy));
// Return the modified object
return target;
};
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/fixture/projects/jquery/20/input.js | JavaScript | export const obj = {
setRequestHeader: function (name, value) {
var lname = name.toLowerCase();
if (!state) {
name = requestHeadersNames[lname] =
requestHeadersNames[lname] || name;
requestHeaders[name] = value;
}
return this;
},
};
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/fixture/projects/jquery/20/output.js | JavaScript | export const obj = {
setRequestHeader: function(name, value) {
var lname = name.toLowerCase();
return state || (name = requestHeadersNames[lname] = requestHeadersNames[lname] || name, requestHeaders[name] = value), this;
}
};
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/fixture/projects/jquery/21/input.js | JavaScript | jQuery.fn.load = function (url, params, callback) {
if (typeof url !== "string" && _load) {
return _load.apply(this, arguments);
}
var selector,
response,
type,
self = this,
off = url.indexOf(" ");
if (off >= 0) {
selector = url.slice(off, url.length);
url = url.slice(0, off);
}
// If it's a function
if (jQuery.isFunction(params)) {
// We assume that it's the callback
callback = params;
params = undefined;
// Otherwise, build a param string
} else if (params && typeof params === "object") {
type = "POST";
}
// If we have elements to modify, make the request
if (self.length > 0) {
jQuery
.ajax({
url: url,
// if "type" variable is undefined, then "GET" method will be used
type: type,
dataType: "html",
data: params,
})
.done(function (responseText) {
// Save response for use in complete callback
response = arguments;
self.html(
selector
? // If a selector was specified, locate the right elements in a dummy div
// Exclude scripts to avoid IE 'Permission Denied' errors
jQuery("<div>")
.append(jQuery.parseHTML(responseText))
.find(selector)
: // Otherwise use the full result
responseText
);
})
.complete(
callback &&
function (jqXHR, status) {
self.each(
callback,
response || [jqXHR.responseText, status, jqXHR]
);
}
);
}
return this;
};
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/fixture/projects/jquery/21/output.js | JavaScript | jQuery.fn.load = function(url, params, callback) {
if ("string" != typeof url && _load) return _load.apply(this, arguments);
var selector, response, type, self = this, off = url.indexOf(" ");
return off >= 0 && (selector = url.slice(off, url.length), url = url.slice(0, off)), jQuery.isFunction(params) ? (// We assume that it's the callback
callback = params, params = void 0) : params && "object" == typeof params && (type = "POST"), self.length > 0 && jQuery.ajax({
url: url,
// if "type" variable is undefined, then "GET" method will be used
type: type,
dataType: "html",
data: params
}).done(function(responseText) {
// Save response for use in complete callback
response = arguments, self.html(selector ? // Exclude scripts to avoid IE 'Permission Denied' errors
jQuery("<div>").append(jQuery.parseHTML(responseText)).find(selector) : responseText);
}).complete(callback && function(jqXHR, status) {
self.each(callback, response || [
jqXHR.responseText,
status,
jqXHR
]);
}), this;
};
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/fixture/projects/jquery/22/input.js | JavaScript | export const obj = {
set: function (elem, value, extra) {
var styles = extra && getStyles(elem);
return setPositiveNumber(
elem,
value,
extra
? augmentWidthOrHeight(
elem,
name,
extra,
jQuery.support.boxSizing &&
jQuery.css(elem, "boxSizing", false, styles) ===
"border-box",
styles
)
: 0
);
},
};
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/fixture/projects/jquery/22/output.js | JavaScript | export const obj = {
set: function(elem, value, extra) {
var styles = extra && getStyles(elem);
return setPositiveNumber(elem, value, extra ? augmentWidthOrHeight(elem, name, extra, jQuery.support.boxSizing && "border-box" === jQuery.css(elem, "boxSizing", !1, styles), styles) : 0);
}
};
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/fixture/projects/jquery/23/input.js | JavaScript | export const obj = {
style: function (elem, name, value, extra) {
// Don't set styles on text and comment nodes
if (
!elem ||
elem.nodeType === 3 ||
elem.nodeType === 8 ||
!elem.style
) {
return;
}
// Make sure that we're working with the right name
var ret,
type,
hooks,
origName = jQuery.camelCase(name),
style = elem.style;
name =
jQuery.cssProps[origName] ||
(jQuery.cssProps[origName] = vendorPropName(style, origName));
// gets hook for the prefixed version
// followed by the unprefixed version
hooks = jQuery.cssHooks[name] || jQuery.cssHooks[origName];
// Check if we're setting a value
if (value !== undefined) {
type = typeof value;
// convert relative number strings (+= or -=) to relative numbers. #7345
if (type === "string" && (ret = rrelNum.exec(value))) {
value =
(ret[1] + 1) * ret[2] + parseFloat(jQuery.css(elem, name));
// Fixes bug #9237
type = "number";
}
// Make sure that NaN and null values aren't set. See: #7116
if (value == null || (type === "number" && isNaN(value))) {
return;
}
// If a number was passed in, add 'px' to the (except for certain CSS properties)
if (type === "number" && !jQuery.cssNumber[origName]) {
value += "px";
}
// Fixes #8908, it can be done more correctly by specifing setters in cssHooks,
// but it would mean to define eight (for every problematic property) identical functions
if (
!jQuery.support.clearCloneStyle &&
value === "" &&
name.indexOf("background") === 0
) {
style[name] = "inherit";
}
// If a hook was provided, use that value, otherwise just set the specified value
if (
!hooks ||
!("set" in hooks) ||
(value = hooks.set(elem, value, extra)) !== undefined
) {
// Wrapped to prevent IE from throwing errors when 'invalid' values are provided
// Fixes bug #5509
try {
style[name] = value;
} catch (e) {}
}
} else {
// If a hook was provided get the non-computed value from there
if (
hooks &&
"get" in hooks &&
(ret = hooks.get(elem, false, extra)) !== undefined
) {
return ret;
}
// Otherwise just get the value from the style object
return style[name];
}
},
};
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/fixture/projects/jquery/23/output.js | JavaScript | export const obj = {
style: function(elem, name, value, extra) {
// Don't set styles on text and comment nodes
if (elem && 3 !== elem.nodeType && 8 !== elem.nodeType && elem.style) {
// Make sure that we're working with the right name
var ret, type, hooks, origName = jQuery.camelCase(name), style = elem.style;
// Check if we're setting a value
if (name = jQuery.cssProps[origName] || (jQuery.cssProps[origName] = vendorPropName(style, origName)), // gets hook for the prefixed version
// followed by the unprefixed version
hooks = jQuery.cssHooks[name] || jQuery.cssHooks[origName], void 0 === value) return(// If a hook was provided get the non-computed value from there
hooks && "get" in hooks && void 0 !== (ret = hooks.get(elem, !1, extra)) ? ret : style[name]);
// Make sure that NaN and null values aren't set. See: #7116
if ("string" == (type = typeof value) && (ret = rrelNum.exec(value)) && (value = (ret[1] + 1) * ret[2] + parseFloat(jQuery.css(elem, name)), // Fixes bug #9237
type = "number"), !(null == value || "number" === type && isNaN(value)) && ("number" !== type || jQuery.cssNumber[origName] || (value += "px"), jQuery.support.clearCloneStyle || "" !== value || 0 !== name.indexOf("background") || (style[name] = "inherit"), !hooks || !("set" in hooks) || void 0 !== (value = hooks.set(elem, value, extra)))) // Wrapped to prevent IE from throwing errors when 'invalid' values are provided
// Fixes bug #5509
try {
style[name] = value;
} catch (e) {}
}
}
};
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/fixture/projects/jquery/24/input.js | JavaScript | export const obj = {
buildFragment: function (elems, context, scripts, selection) {
var j,
elem,
contains,
tmp,
tag,
tbody,
wrap,
l = elems.length,
// Ensure a safe fragment
safe = createSafeFragment(context),
nodes = [],
i = 0;
for (; i < l; i++) {
elem = elems[i];
if (elem || elem === 0) {
// Add nodes directly
if (jQuery.type(elem) === "object") {
jQuery.merge(nodes, elem.nodeType ? [elem] : elem);
// Convert non-html into a text node
} else if (!rhtml.test(elem)) {
nodes.push(context.createTextNode(elem));
// Convert html into DOM nodes
} else {
tmp = tmp || safe.appendChild(context.createElement("div"));
// Deserialize a standard representation
tag = (rtagName.exec(elem) || ["", ""])[1].toLowerCase();
wrap = wrapMap[tag] || wrapMap._default;
tmp.innerHTML =
wrap[1] +
elem.replace(rxhtmlTag, "<$1></$2>") +
wrap[2];
// Descend through wrappers to the right content
j = wrap[0];
while (j--) {
tmp = tmp.lastChild;
}
// Manually add leading whitespace removed by IE
if (
!jQuery.support.leadingWhitespace &&
rleadingWhitespace.test(elem)
) {
nodes.push(
context.createTextNode(
rleadingWhitespace.exec(elem)[0]
)
);
}
// Remove IE's autoinserted <tbody> from table fragments
if (!jQuery.support.tbody) {
// String was a <table>, *may* have spurious <tbody>
elem =
tag === "table" && !rtbody.test(elem)
? tmp.firstChild
: // String was a bare <thead> or <tfoot>
wrap[1] === "<table>" && !rtbody.test(elem)
? tmp
: 0;
j = elem && elem.childNodes.length;
while (j--) {
if (
jQuery.nodeName(
(tbody = elem.childNodes[j]),
"tbody"
) &&
!tbody.childNodes.length
) {
elem.removeChild(tbody);
}
}
}
jQuery.merge(nodes, tmp.childNodes);
// Fix #12392 for WebKit and IE > 9
tmp.textContent = "";
// Fix #12392 for oldIE
while (tmp.firstChild) {
tmp.removeChild(tmp.firstChild);
}
// Remember the top-level container for proper cleanup
tmp = safe.lastChild;
}
}
}
// Fix #11356: Clear elements from fragment
if (tmp) {
safe.removeChild(tmp);
}
// Reset defaultChecked for any radios and checkboxes
// about to be appended to the DOM in IE 6/7 (#8060)
if (!jQuery.support.appendChecked) {
jQuery.grep(getAll(nodes, "input"), fixDefaultChecked);
}
i = 0;
while ((elem = nodes[i++])) {
// #4087 - If origin and destination elements are the same, and this is
// that element, do not do anything
if (selection && jQuery.inArray(elem, selection) !== -1) {
continue;
}
contains = jQuery.contains(elem.ownerDocument, elem);
// Append to fragment
tmp = getAll(safe.appendChild(elem), "script");
// Preserve script evaluation history
if (contains) {
setGlobalEval(tmp);
}
// Capture executables
if (scripts) {
j = 0;
while ((elem = tmp[j++])) {
if (rscriptType.test(elem.type || "")) {
scripts.push(elem);
}
}
}
}
tmp = null;
return safe;
},
};
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/fixture/projects/jquery/24/output.js | JavaScript | export const obj = {
buildFragment: function(elems, context, scripts, selection) {
for(var j, elem, contains, tmp, tag, tbody, wrap, l = elems.length, // Ensure a safe fragment
safe = createSafeFragment(context), nodes = [], i = 0; i < l; i++)if ((elem = elems[i]) || 0 === elem) {
// Add nodes directly
if ("object" === jQuery.type(elem)) jQuery.merge(nodes, elem.nodeType ? [
elem
] : elem);
else if (rhtml.test(elem)) {
for(tmp = tmp || safe.appendChild(context.createElement("div")), // Deserialize a standard representation
tag = (rtagName.exec(elem) || [
"",
""
])[1].toLowerCase(), wrap = wrapMap[tag] || wrapMap._default, tmp.innerHTML = wrap[1] + elem.replace(rxhtmlTag, "<$1></$2>") + wrap[2], // Descend through wrappers to the right content
j = wrap[0]; j--;)tmp = tmp.lastChild;
// Remove IE's autoinserted <tbody> from table fragments
if (!jQuery.support.leadingWhitespace && rleadingWhitespace.test(elem) && nodes.push(context.createTextNode(rleadingWhitespace.exec(elem)[0])), !jQuery.support.tbody) for(j = // String was a <table>, *may* have spurious <tbody>
(elem = "table" !== tag || rtbody.test(elem) ? "<table>" !== wrap[1] || rtbody.test(elem) ? 0 : tmp : tmp.firstChild) && elem.childNodes.length; j--;)jQuery.nodeName(tbody = elem.childNodes[j], "tbody") && !tbody.childNodes.length && elem.removeChild(tbody);
// Fix #12392 for oldIE
for(jQuery.merge(nodes, tmp.childNodes), // Fix #12392 for WebKit and IE > 9
tmp.textContent = ""; tmp.firstChild;)tmp.removeChild(tmp.firstChild);
// Remember the top-level container for proper cleanup
tmp = safe.lastChild;
} else nodes.push(context.createTextNode(elem));
}
for(tmp && safe.removeChild(tmp), jQuery.support.appendChecked || jQuery.grep(getAll(nodes, "input"), fixDefaultChecked), i = 0; elem = nodes[i++];)// #4087 - If origin and destination elements are the same, and this is
// that element, do not do anything
if ((!selection || -1 === jQuery.inArray(elem, selection)) && (contains = jQuery.contains(elem.ownerDocument, elem), // Append to fragment
tmp = getAll(safe.appendChild(elem), "script"), contains && setGlobalEval(tmp), scripts)) for(j = 0; elem = tmp[j++];)rscriptType.test(elem.type || "") && scripts.push(elem);
return tmp = null, safe;
}
};
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/fixture/projects/jquery/25/input.js | JavaScript | export const obj = {
domManip: function (args, table, callback) {
// Flatten any nested arrays
args = core_concat.apply([], args);
var first,
node,
hasScripts,
scripts,
doc,
fragment,
i = 0,
l = this.length,
set = this,
iNoClone = l - 1,
value = args[0],
isFunction = jQuery.isFunction(value);
// We can't cloneNode fragments that contain checked, in WebKit
if (
isFunction ||
!(
l <= 1 ||
typeof value !== "string" ||
jQuery.support.checkClone ||
!rchecked.test(value)
)
) {
return this.each(function (index) {
var self = set.eq(index);
if (isFunction) {
args[0] = value.call(
this,
index,
table ? self.html() : undefined
);
}
self.domManip(args, table, callback);
});
}
if (l) {
fragment = jQuery.buildFragment(
args,
this[0].ownerDocument,
false,
this
);
first = fragment.firstChild;
if (fragment.childNodes.length === 1) {
fragment = first;
}
if (first) {
table = table && jQuery.nodeName(first, "tr");
scripts = jQuery.map(getAll(fragment, "script"), disableScript);
hasScripts = scripts.length;
// Use the original fragment for the last item instead of the first because it can end up
// being emptied incorrectly in certain situations (#8070).
for (; i < l; i++) {
node = fragment;
if (i !== iNoClone) {
node = jQuery.clone(node, true, true);
// Keep references to cloned scripts for later restoration
if (hasScripts) {
jQuery.merge(scripts, getAll(node, "script"));
}
}
callback.call(
table && jQuery.nodeName(this[i], "table")
? findOrAppend(this[i], "tbody")
: this[i],
node,
i
);
}
if (hasScripts) {
doc = scripts[scripts.length - 1].ownerDocument;
// Reenable scripts
jQuery.map(scripts, restoreScript);
// Evaluate executable scripts on first document insertion
for (i = 0; i < hasScripts; i++) {
node = scripts[i];
if (
rscriptType.test(node.type || "") &&
!jQuery._data(node, "globalEval") &&
jQuery.contains(doc, node)
) {
if (node.src) {
// Hope ajax is available...
jQuery.ajax({
url: node.src,
type: "GET",
dataType: "script",
async: false,
global: false,
throws: true,
});
} else {
jQuery.globalEval(
(
node.text ||
node.textContent ||
node.innerHTML ||
""
).replace(rcleanScript, "")
);
}
}
}
}
// Fix #11809: Avoid leaking memory
fragment = first = null;
}
}
return this;
},
};
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/fixture/projects/jquery/25/output.js | JavaScript | export const obj = {
domManip: function(args, table, callback) {
// Flatten any nested arrays
args = core_concat.apply([], args);
var first, node, hasScripts, scripts, doc, fragment, i = 0, l = this.length, set = this, iNoClone = l - 1, value = args[0], isFunction = jQuery.isFunction(value);
// We can't cloneNode fragments that contain checked, in WebKit
if (isFunction || !(l <= 1 || "string" != typeof value || jQuery.support.checkClone || !rchecked.test(value))) return this.each(function(index) {
var self = set.eq(index);
isFunction && (args[0] = value.call(this, index, table ? self.html() : void 0)), self.domManip(args, table, callback);
});
if (l && (first = (fragment = jQuery.buildFragment(args, this[0].ownerDocument, !1, this)).firstChild, 1 === fragment.childNodes.length && (fragment = first), first)) {
// Use the original fragment for the last item instead of the first because it can end up
// being emptied incorrectly in certain situations (#8070).
for(table = table && jQuery.nodeName(first, "tr"), hasScripts = (scripts = jQuery.map(getAll(fragment, "script"), disableScript)).length; i < l; i++)node = fragment, i !== iNoClone && (node = jQuery.clone(node, !0, !0), hasScripts && jQuery.merge(scripts, getAll(node, "script"))), callback.call(table && jQuery.nodeName(this[i], "table") ? findOrAppend(this[i], "tbody") : this[i], node, i);
if (hasScripts) // Evaluate executable scripts on first document insertion
for(doc = scripts[scripts.length - 1].ownerDocument, // Reenable scripts
jQuery.map(scripts, restoreScript), i = 0; i < hasScripts; i++)node = scripts[i], rscriptType.test(node.type || "") && !jQuery._data(node, "globalEval") && jQuery.contains(doc, node) && (node.src ? // Hope ajax is available...
jQuery.ajax({
url: node.src,
type: "GET",
dataType: "script",
async: !1,
global: !1,
throws: !0
}) : jQuery.globalEval((node.text || node.textContent || node.innerHTML || "").replace(rcleanScript, "")));
// Fix #11809: Avoid leaking memory
fragment = first = null;
}
return this;
}
};
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/fixture/projects/jquery/26/input.js | JavaScript | export const obj = {
clone: function (dataAndEvents, deepDataAndEvents) {
dataAndEvents = dataAndEvents == null ? false : dataAndEvents;
deepDataAndEvents =
deepDataAndEvents == null ? dataAndEvents : deepDataAndEvents;
return this.map(function () {
return jQuery.clone(this, dataAndEvents, deepDataAndEvents);
});
},
};
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/fixture/projects/jquery/26/output.js | JavaScript | export const obj = {
clone: function(dataAndEvents, deepDataAndEvents) {
return dataAndEvents = null != dataAndEvents && dataAndEvents, deepDataAndEvents = null == deepDataAndEvents ? dataAndEvents : deepDataAndEvents, this.map(function() {
return jQuery.clone(this, dataAndEvents, deepDataAndEvents);
});
}
};
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/fixture/projects/jquery/27/input.js | JavaScript | if (
(!jQuery.support.leadingWhitespace &&
rleadingWhitespace.test(elem) &&
nodes.push(context.createTextNode(rleadingWhitespace.exec(elem)[0])),
!jQuery.support.tbody)
) {
console.log("Foo");
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/fixture/projects/jquery/27/output.js | JavaScript | !jQuery.support.leadingWhitespace && rleadingWhitespace.test(elem) && nodes.push(context.createTextNode(rleadingWhitespace.exec(elem)[0])), jQuery.support.tbody || console.log("Foo");
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/fixture/projects/jquery/28/input.js | JavaScript | export const E = {
queue: function (elem, type, data) {
var queue;
if (elem) {
type = (type || "fx") + "queue";
queue = jQuery._data(elem, type);
// Speed up dequeue by getting out quickly if this is just a lookup
if (data) {
if (!queue || jQuery.isArray(data)) {
queue = jQuery._data(elem, type, jQuery.makeArray(data));
} else {
queue.push(data);
}
}
return queue || [];
}
},
};
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/fixture/projects/jquery/28/output.js | JavaScript | export const E = {
queue: function(elem, type, data) {
var queue;
if (elem) return type = (type || "fx") + "queue", queue = jQuery._data(elem, type), data && (!queue || jQuery.isArray(data) ? queue = jQuery._data(elem, type, jQuery.makeArray(data)) : queue.push(data)), queue || [];
}
};
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/fixture/projects/jquery/3/input.js | JavaScript | export const obj = {
ready: function (wait) {
// Abort if there are pending holds or we're already ready
if (wait === true ? --jQuery.readyWait : jQuery.isReady) {
return;
}
// Make sure body exists, at least, in case IE gets a little overzealous (ticket #5443).
if (!document.body) {
return setTimeout(jQuery.ready);
}
// Remember that the DOM is ready
jQuery.isReady = true;
// If a normal DOM Ready event fired, decrement, and wait if need be
if (wait !== true && --jQuery.readyWait > 0) {
return;
}
// If there are functions bound, to execute
readyList.resolveWith(document, [jQuery]);
// Trigger any bound ready events
if (jQuery.fn.trigger) {
jQuery(document).trigger("ready").off("ready");
}
},
};
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/fixture/projects/jquery/3/output.js | JavaScript | export const obj = {
ready: function(wait) {
// Abort if there are pending holds or we're already ready
if (!(!0 === wait ? --jQuery.readyWait : jQuery.isReady)) {
// Make sure body exists, at least, in case IE gets a little overzealous (ticket #5443).
if (!document.body) return setTimeout(jQuery.ready);
// If a normal DOM Ready event fired, decrement, and wait if need be
// Remember that the DOM is ready
jQuery.isReady = !0, !(!0 !== wait && --jQuery.readyWait > 0) && (// If there are functions bound, to execute
readyList.resolveWith(document, [
jQuery
]), jQuery.fn.trigger && jQuery(document).trigger("ready").off("ready"));
}
}
};
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/fixture/projects/jquery/4/input.js | JavaScript | export const obj = {
parseXML: function (data) {
var xml, tmp;
if (!data || typeof data !== "string") {
return null;
}
try {
if (window.DOMParser) {
// Standard
tmp = new DOMParser();
xml = tmp.parseFromString(data, "text/xml");
} else {
// IE
xml = new ActiveXObject("Microsoft.XMLDOM");
xml.async = "false";
xml.loadXML(data);
}
} catch (e) {
xml = undefined;
}
if (
!xml ||
!xml.documentElement ||
xml.getElementsByTagName("parsererror").length
) {
jQuery.error("Invalid XML: " + data);
}
return xml;
},
};
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/fixture/projects/jquery/4/output.js | JavaScript | export const obj = {
parseXML: function(data) {
var xml;
if (!data || "string" != typeof data) return null;
try {
window.DOMParser ? xml = new DOMParser().parseFromString(data, "text/xml") : (// IE
(xml = new ActiveXObject("Microsoft.XMLDOM")).async = "false", xml.loadXML(data));
} catch (e) {
xml = void 0;
}
return xml && xml.documentElement && !xml.getElementsByTagName("parsererror").length || jQuery.error("Invalid XML: " + data), xml;
}
};
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/fixture/projects/jquery/5/input.js | JavaScript | export const obj = {
each: function (obj, callback, args) {
var value,
i = 0,
length = obj.length,
isArray = isArraylike(obj);
if (args) {
if (isArray) {
for (; i < length; i++) {
value = callback.apply(obj[i], args);
if (value === false) {
break;
}
}
} else {
for (i in obj) {
value = callback.apply(obj[i], args);
if (value === false) {
break;
}
}
}
// A special, fast, case for the most common use of each
} else {
if (isArray) {
for (; i < length; i++) {
value = callback.call(obj[i], i, obj[i]);
if (value === false) {
break;
}
}
} else {
for (i in obj) {
value = callback.call(obj[i], i, obj[i]);
if (value === false) {
break;
}
}
}
}
return obj;
},
};
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/fixture/projects/jquery/5/output.js | JavaScript | export const obj = {
each: function(obj, callback, args) {
var i = 0, length = obj.length, isArray = isArraylike(obj);
if (args) {
if (isArray) for(; i < length && !1 !== callback.apply(obj[i], args); i++);
else for(i in obj)if (!1 === callback.apply(obj[i], args)) break;
} else if (isArray) for(; i < length && !1 !== callback.call(obj[i], i, obj[i]); i++);
else for(i in obj)if (!1 === callback.call(obj[i], i, obj[i])) break;
return obj;
}
};
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/fixture/projects/jquery/6/input.js | JavaScript | export const obj = {
inArray: function (elem, arr, i) {
var len;
if (arr) {
if (core_indexOf) {
return core_indexOf.call(arr, elem, i);
}
len = arr.length;
i = i ? (i < 0 ? Math.max(0, len + i) : i) : 0;
for (; i < len; i++) {
// Skip accessing in sparse arrays
if (i in arr && arr[i] === elem) {
return i;
}
}
}
return -1;
},
};
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/fixture/projects/jquery/6/output.js | JavaScript | export const obj = {
inArray: function(elem, arr, i) {
var len;
if (arr) {
if (core_indexOf) return core_indexOf.call(arr, elem, i);
for(len = arr.length, i = i ? i < 0 ? Math.max(0, len + i) : i : 0; i < len; i++)// Skip accessing in sparse arrays
if (i in arr && arr[i] === elem) return i;
}
return -1;
}
};
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/fixture/projects/jquery/7/input.js | JavaScript | export const obj = {
proxy: function (fn, context) {
var args, proxy, tmp;
if (typeof context === "string") {
tmp = fn[context];
context = fn;
fn = tmp;
}
// Quick check to determine if target is callable, in the spec
// this throws a TypeError, but we will just return undefined.
if (!jQuery.isFunction(fn)) {
return undefined;
}
// Simulated bind
args = core_slice.call(arguments, 2);
proxy = function () {
return fn.apply(
context || this,
args.concat(core_slice.call(arguments))
);
};
// Set the guid of unique handler to the same of original handler, so it can be removed
proxy.guid = fn.guid = fn.guid || jQuery.guid++;
return proxy;
},
};
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/fixture/projects/jquery/7/output.js | JavaScript | export const obj = {
proxy: function(fn, context) {
var args, proxy, tmp;
// Quick check to determine if target is callable, in the spec
// this throws a TypeError, but we will just return undefined.
if ("string" == typeof context && (tmp = fn[context], context = fn, fn = tmp), jQuery.isFunction(fn)) return(// Simulated bind
args = core_slice.call(arguments, 2), // Set the guid of unique handler to the same of original handler, so it can be removed
(proxy = function() {
return fn.apply(context || this, args.concat(core_slice.call(arguments)));
}).guid = fn.guid = fn.guid || jQuery.guid++, proxy);
}
};
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/fixture/projects/jquery/8/input.js | JavaScript | for (; list && firingIndex < firingLength; firingIndex++) {
if (
list[firingIndex].apply(data[0], data[1]) === false &&
options.stopOnFalse
) {
memory = false; // To prevent further calls using add
break;
}
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/fixture/projects/jquery/8/output.js | JavaScript | for(; list && firingIndex < firingLength; firingIndex++)if (!1 === list[firingIndex].apply(data[0], data[1]) && options.stopOnFalse) {
memory = !1; // To prevent further calls using add
break;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/fixture/projects/jquery/9/input.js | JavaScript | export const obj = {
fireWith: function (context, args) {
args = args || [];
args = [context, args.slice ? args.slice() : args];
if (list && (!fired || stack)) {
if (firing) {
stack.push(args);
} else {
fire(args);
}
}
return this;
},
};
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/fixture/projects/jquery/9/output.js | JavaScript | export const obj = {
fireWith: function(context, args) {
return args = [
context,
(args = args || []).slice ? args.slice() : args
], list && (!fired || stack) && (firing ? stack.push(args) : fire(args)), this;
}
};
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/fixture/projects/mootools/.11/input.js | JavaScript | local.setDocument = function (document) {
// convert elements / window arguments to document. if document cannot be extrapolated, the function returns.
var nodeType = document.nodeType;
if (nodeType == 9);
else if (nodeType)
// document
document = document.ownerDocument; // node
else if (document.navigator) document = document.document; // window
else return;
// check if it's the old document
if (this.document === document) return;
this.document = document;
// check if we have done feature detection on this document before
var root = document.documentElement,
rootUid = this.getUIDXML(root),
features = featuresCache[rootUid],
feature;
if (features) {
for (feature in features) {
this[feature] = features[feature];
}
return;
}
features = featuresCache[rootUid] = {};
features.root = root;
features.isXMLDocument = this.isXML(document);
features.brokenStarGEBTN =
features.starSelectsClosedQSA =
features.idGetsName =
features.brokenMixedCaseQSA =
features.brokenGEBCN =
features.brokenCheckedQSA =
features.brokenEmptyAttributeQSA =
features.isHTMLDocument =
features.nativeMatchesSelector =
false;
var starSelectsClosed,
starSelectsComments,
brokenSecondClassNameGEBCN,
cachedGetElementsByClassName,
brokenFormAttributeGetter;
var selected,
id = "slick_uniqueid";
var testNode = document.createElement("div");
var testRoot =
document.body || document.getElementsByTagName("body")[0] || root;
testRoot.appendChild(testNode);
// on non-HTML documents innerHTML and getElementsById doesnt work properly
try {
testNode.innerHTML = '<a id="' + id + '"></a>';
features.isHTMLDocument = !!document.getElementById(id);
} catch (e) {}
if (features.isHTMLDocument) {
testNode.style.display = "none";
// IE returns comment nodes for getElementsByTagName('*') for some documents
testNode.appendChild(document.createComment(""));
starSelectsComments = testNode.getElementsByTagName("*").length > 1;
// IE returns closed nodes (EG:"</foo>") for getElementsByTagName('*') for some documents
try {
testNode.innerHTML = "foo</foo>";
selected = testNode.getElementsByTagName("*");
starSelectsClosed =
selected &&
!!selected.length &&
selected[0].nodeName.charAt(0) == "/";
} catch (e) {}
features.brokenStarGEBTN = starSelectsComments || starSelectsClosed;
// IE returns elements with the name instead of just id for getElementsById for some documents
try {
testNode.innerHTML =
'<a name="' + id + '"></a><b id="' + id + '"></b>';
features.idGetsName =
document.getElementById(id) === testNode.firstChild;
} catch (e) {}
if (testNode.getElementsByClassName) {
// Safari 3.2 getElementsByClassName caches results
try {
testNode.innerHTML = '<a class="f"></a><a class="b"></a>';
testNode.getElementsByClassName("b").length;
testNode.firstChild.className = "b";
cachedGetElementsByClassName =
testNode.getElementsByClassName("b").length != 2;
} catch (e) {}
// Opera 9.6 getElementsByClassName doesnt detects the class if its not the first one
try {
testNode.innerHTML = '<a class="a"></a><a class="f b a"></a>';
brokenSecondClassNameGEBCN =
testNode.getElementsByClassName("a").length != 2;
} catch (e) {}
features.brokenGEBCN =
cachedGetElementsByClassName || brokenSecondClassNameGEBCN;
}
if (testNode.querySelectorAll) {
// IE 8 returns closed nodes (EG:"</foo>") for querySelectorAll('*') for some documents
try {
testNode.innerHTML = "foo</foo>";
selected = testNode.querySelectorAll("*");
features.starSelectsClosedQSA =
selected &&
!!selected.length &&
selected[0].nodeName.charAt(0) == "/";
} catch (e) {}
// Safari 3.2 querySelectorAll doesnt work with mixedcase on quirksmode
try {
testNode.innerHTML = '<a class="MiX"></a>';
features.brokenMixedCaseQSA =
!testNode.querySelectorAll(".MiX").length;
} catch (e) {}
// Webkit and Opera dont return selected options on querySelectorAll
try {
testNode.innerHTML =
'<select><option selected="selected">a</option></select>';
features.brokenCheckedQSA =
testNode.querySelectorAll(":checked").length == 0;
} catch (e) {}
// IE returns incorrect results for attr[*^$]="" selectors on querySelectorAll
try {
testNode.innerHTML = '<a class=""></a>';
features.brokenEmptyAttributeQSA =
testNode.querySelectorAll('[class*=""]').length != 0;
} catch (e) {}
}
// IE6-7, if a form has an input of id x, form.getAttribute(x) returns a reference to the input
try {
testNode.innerHTML = '<form action="s"><input id="action"/></form>';
brokenFormAttributeGetter =
testNode.firstChild.getAttribute("action") != "s";
} catch (e) {}
// native matchesSelector function
features.nativeMatchesSelector =
root.matchesSelector ||
/*root.msMatchesSelector ||*/ root.mozMatchesSelector ||
root.webkitMatchesSelector;
if (features.nativeMatchesSelector)
try {
// if matchesSelector trows errors on incorrect sintaxes we can use it
features.nativeMatchesSelector.call(root, ":slick");
features.nativeMatchesSelector = null;
} catch (e) {}
}
try {
root.slick_expando = 1;
delete root.slick_expando;
features.getUID = this.getUIDHTML;
} catch (e) {
features.getUID = this.getUIDXML;
}
testRoot.removeChild(testNode);
testNode = selected = testRoot = null;
// getAttribute
features.getAttribute =
features.isHTMLDocument && brokenFormAttributeGetter
? function (node, name) {
var method = this.attributeGetters[name];
if (method) return method.call(node);
var attributeNode = node.getAttributeNode(name);
return attributeNode ? attributeNode.nodeValue : null;
}
: function (node, name) {
var method = this.attributeGetters[name];
return method ? method.call(node) : node.getAttribute(name);
};
// hasAttribute
features.hasAttribute =
root && this.isNativeCode(root.hasAttribute)
? function (node, attribute) {
return node.hasAttribute(attribute);
}
: function (node, attribute) {
node = node.getAttributeNode(attribute);
return !!(node && (node.specified || node.nodeValue));
};
// contains
// FIXME: Add specs: local.contains should be different for xml and html documents?
var nativeRootContains = root && this.isNativeCode(root.contains),
nativeDocumentContains =
document && this.isNativeCode(document.contains);
features.contains =
nativeRootContains && nativeDocumentContains
? function (context, node) {
return context.contains(node);
}
: nativeRootContains && !nativeDocumentContains
? function (context, node) {
// IE8 does not have .contains on document.
return (
context === node ||
(context === document
? document.documentElement
: context
).contains(node)
);
}
: root && root.compareDocumentPosition
? function (context, node) {
return (
context === node ||
!!(context.compareDocumentPosition(node) & 16)
);
}
: function (context, node) {
if (node)
do {
if (node === context) return true;
} while ((node = node.parentNode));
return false;
};
// document order sorting
// credits to Sizzle (http://sizzlejs.com/)
features.documentSorter = root.compareDocumentPosition
? function (a, b) {
if (!a.compareDocumentPosition || !b.compareDocumentPosition)
return 0;
return a.compareDocumentPosition(b) & 4 ? -1 : a === b ? 0 : 1;
}
: "sourceIndex" in root
? function (a, b) {
if (!a.sourceIndex || !b.sourceIndex) return 0;
return a.sourceIndex - b.sourceIndex;
}
: document.createRange
? function (a, b) {
if (!a.ownerDocument || !b.ownerDocument) return 0;
var aRange = a.ownerDocument.createRange(),
bRange = b.ownerDocument.createRange();
aRange.setStart(a, 0);
aRange.setEnd(a, 0);
bRange.setStart(b, 0);
bRange.setEnd(b, 0);
return aRange.compareBoundaryPoints(Range.START_TO_END, bRange);
}
: null;
root = null;
for (feature in features) {
this[feature] = features[feature];
}
};
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/fixture/projects/mootools/.11/output.js | JavaScript | local.setDocument = function(document) {
var nodeType = document.nodeType;
if (9 == nodeType) ;
else if (nodeType) document = document.ownerDocument;
else {
if (!document.navigator) return;
document = document.document;
}
if (this.document !== document) {
this.document = document;
var feature, root = document.documentElement, rootUid = this.getUIDXML(root), features = featuresCache[rootUid];
if (features) for(feature in features)this[feature] = features[feature];
else {
(features = featuresCache[rootUid] = {
}).root = root, features.isXMLDocument = this.isXML(document), features.brokenStarGEBTN = features.starSelectsClosedQSA = features.idGetsName = features.brokenMixedCaseQSA = features.brokenGEBCN = features.brokenCheckedQSA = features.brokenEmptyAttributeQSA = features.isHTMLDocument = features.nativeMatchesSelector = !1;
var starSelectsClosed, starSelectsComments, brokenSecondClassNameGEBCN, cachedGetElementsByClassName, brokenFormAttributeGetter, selected, id = "slick_uniqueid", testNode = document.createElement("div"), testRoot = document.body || document.getElementsByTagName("body")[0] || root;
testRoot.appendChild(testNode);
try {
testNode.innerHTML = "<a id=\"" + id + "\"></a>", features.isHTMLDocument = !!document.getElementById(id);
} catch (e) {
}
if (features.isHTMLDocument) {
testNode.style.display = "none", testNode.appendChild(document.createComment("")), starSelectsComments = testNode.getElementsByTagName("*").length > 1;
try {
testNode.innerHTML = "foo</foo>", starSelectsClosed = (selected = testNode.getElementsByTagName("*")) && !!selected.length && "/" == selected[0].nodeName.charAt(0);
} catch (e) {
}
features.brokenStarGEBTN = starSelectsComments || starSelectsClosed;
try {
testNode.innerHTML = "<a name=\"" + id + "\"></a><b id=\"" + id + "\"></b>", features.idGetsName = document.getElementById(id) === testNode.firstChild;
} catch (e) {
}
if (testNode.getElementsByClassName) {
try {
testNode.innerHTML = "<a class=\"f\"></a><a class=\"b\"></a>", testNode.getElementsByClassName("b").length, testNode.firstChild.className = "b", cachedGetElementsByClassName = 2 != testNode.getElementsByClassName("b").length;
} catch (e) {
}
try {
testNode.innerHTML = "<a class=\"a\"></a><a class=\"f b a\"></a>", brokenSecondClassNameGEBCN = 2 != testNode.getElementsByClassName("a").length;
} catch (e) {
}
features.brokenGEBCN = cachedGetElementsByClassName || brokenSecondClassNameGEBCN;
}
if (testNode.querySelectorAll) {
try {
testNode.innerHTML = "foo</foo>", selected = testNode.querySelectorAll("*"), features.starSelectsClosedQSA = selected && !!selected.length && "/" == selected[0].nodeName.charAt(0);
} catch (e) {
}
try {
testNode.innerHTML = "<a class=\"MiX\"></a>", features.brokenMixedCaseQSA = !testNode.querySelectorAll(".MiX").length;
} catch (e) {
}
try {
testNode.innerHTML = "<select><option selected=\"selected\">a</option></select>", features.brokenCheckedQSA = 0 == testNode.querySelectorAll(":checked").length;
} catch (e) {
}
try {
testNode.innerHTML = "<a class=\"\"></a>", features.brokenEmptyAttributeQSA = 0 != testNode.querySelectorAll("[class*=\"\"]").length;
} catch (e) {
}
}
try {
testNode.innerHTML = "<form action=\"s\"><input id=\"action\"/></form>", brokenFormAttributeGetter = "s" != testNode.firstChild.getAttribute("action");
} catch (e) {
}
if (features.nativeMatchesSelector = root.matchesSelector || root.mozMatchesSelector || root.webkitMatchesSelector, features.nativeMatchesSelector) try {
features.nativeMatchesSelector.call(root, ":slick"), features.nativeMatchesSelector = null;
} catch (e) {
}
}
try {
root.slick_expando = 1, delete root.slick_expando, features.getUID = this.getUIDHTML;
} catch (e) {
features.getUID = this.getUIDXML;
}
testRoot.removeChild(testNode), testNode = selected = testRoot = null, features.getAttribute = features.isHTMLDocument && brokenFormAttributeGetter ? function(node, name) {
var method = this.attributeGetters[name];
if (method) return method.call(node);
var attributeNode = node.getAttributeNode(name);
return attributeNode ? attributeNode.nodeValue : null;
} : function(node, name) {
var method = this.attributeGetters[name];
return method ? method.call(node) : node.getAttribute(name);
}, features.hasAttribute = root && this.isNativeCode(root.hasAttribute) ? function(node, attribute) {
return node.hasAttribute(attribute);
} : function(node, attribute) {
return !!((node = node.getAttributeNode(attribute)) && (node.specified || node.nodeValue));
};
var nativeRootContains = root && this.isNativeCode(root.contains), nativeDocumentContains = document && this.isNativeCode(document.contains);
for(feature in features.contains = nativeRootContains && nativeDocumentContains ? function(context, node) {
return context.contains(node);
} : nativeRootContains || nativeDocumentContains ? function(context, node) {
return context === node || (context === document ? document.documentElement : context).contains(node);
} : root && root.compareDocumentPosition ? function(context, node) {
return context === node || !!(16 & context.compareDocumentPosition(node));
} : function(context, node) {
if (node) do if (node === context) return !0;
while (node = node.parentNode)
return !1;
}, features.documentSorter = root.compareDocumentPosition ? function(a, b) {
return a.compareDocumentPosition && b.compareDocumentPosition ? 4 & a.compareDocumentPosition(b) ? -1 : a === b ? 0 : 1 : 0;
} : "sourceIndex" in root ? function(a, b) {
return a.sourceIndex && b.sourceIndex ? a.sourceIndex - b.sourceIndex : 0;
} : document.createRange ? function(a, b) {
if (!a.ownerDocument || !b.ownerDocument) return 0;
var aRange = a.ownerDocument.createRange(), bRange = b.ownerDocument.createRange();
return aRange.setStart(a, 0), aRange.setEnd(a, 0), bRange.setStart(b, 0), bRange.setEnd(b, 0), aRange.compareBoundaryPoints(Range.START_TO_END, bRange);
} : null, root = null, features)this[feature] = features[feature];
}
}
};
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/fixture/projects/mootools/.5/input.js | JavaScript | export const obj = {
set: function (key, value) {
if (!this[key] || this.hasOwnProperty(key)) this[key] = value;
return this;
},
};
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/fixture/projects/mootools/.5/output.js | JavaScript | export const obj = {
set: function(key, value) {
return this[key] && !this.hasOwnProperty(key) || (this[key] = value), this;
}
};
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/fixture/projects/mootools/1/input.js | JavaScript | var isType = object != Object;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/fixture/projects/mootools/1/output.js | JavaScript | var isType = object != Object;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/fixture/projects/mootools/10/input.js | JavaScript | export const exported = {
fireEvent: function (type, args, delay) {
type = removeOn(type);
var events = this.$events[type];
if (!events) return this;
args = Array.from(args);
events.each(function (fn) {
if (delay) fn.delay(delay, this, args);
else fn.apply(this, args);
}, this);
return this;
},
};
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/fixture/projects/mootools/10/output.js | JavaScript | export const exported = {
fireEvent: function(type, args, delay) {
type = removeOn(type);
var events = this.$events[type];
return events && (args = Array.from(args), events.each(function(fn) {
delay ? fn.delay(delay, this, args) : fn.apply(this, args);
}, this)), this;
}
};
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/fixture/projects/mootools/2/input.js | JavaScript | var Hash = (this.Hash = new Type("Hash", function (object) {
if (typeOf(object) == "hash") object = Object.clone(object.getClean());
for (var key in object) this[key] = object[key];
return this;
}));
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/fixture/projects/mootools/2/output.js | JavaScript | var Hash = this.Hash = new Type("Hash", function(object) {
for(var key in "hash" == typeOf(object) && (object = Object.clone(object.getClean())), object)this[key] = object[key];
return this;
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/fixture/projects/mootools/3/input.js | JavaScript | function foo() {
this.$chk = function (obj) {
return !!(obj || obj === 0);
};
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/fixture/projects/mootools/3/output.js | JavaScript | function foo() {
this.$chk = function(obj) {
return !!(obj || 0 === obj);
};
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/fixture/projects/mootools/4/input.js | JavaScript | export const obj = {
flatten: function () {
var array = [];
for (var i = 0, l = this.length; i < l; i++) {
var type = typeOf(this[i]);
if (type == "null") continue;
array = array.concat(
type == "array" ||
type == "collection" ||
type == "arguments" ||
instanceOf(this[i], Array)
? Array.flatten(this[i])
: this[i]
);
}
return array;
},
};
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/fixture/projects/mootools/4/output.js | JavaScript | export const obj = {
flatten: function() {
for(var array = [], i = 0, l = this.length; i < l; i++){
var type = typeOf(this[i]);
"null" != type && (array = array.concat("array" == type || "collection" == type || "arguments" == type || instanceOf(this[i], Array) ? Array.flatten(this[i]) : this[i]));
}
return array;
}
};
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/fixture/projects/mootools/6/input.js | JavaScript | export const obj = {
removeEvents: function (events) {
var type;
if (typeOf(events) == "object") {
for (type in events) this.removeEvent(type, events[type]);
return this;
}
var attached = this.retrieve("events");
if (!attached) return this;
if (!events) {
for (type in attached) this.removeEvents(type);
this.eliminate("events");
} else if (attached[events]) {
attached[events].keys.each(function (fn) {
this.removeEvent(events, fn);
}, this);
delete attached[events];
}
return this;
},
};
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/fixture/projects/mootools/6/output.js | JavaScript | export const obj = {
removeEvents: function(events) {
if ("object" == typeOf(events)) {
for(type in events)this.removeEvent(type, events[type]);
return this;
}
var type, attached = this.retrieve("events");
if (!attached) return this;
if (events) attached[events] && (attached[events].keys.each(function(fn) {
this.removeEvent(events, fn);
}, this), delete attached[events]);
else {
for(type in attached)this.removeEvents(type);
this.eliminate("events");
}
return this;
}
};
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/fixture/projects/mootools/7/input.js | JavaScript | export const exported = {
toQueryString: function (object, base) {
var queryString = [];
Object.each(object, function (value, key) {
if (base) key = base + "[" + key + "]";
var result;
switch (typeOf(value)) {
case "object":
result = Object.toQueryString(value, key);
break;
case "array":
var qs = {};
value.each(function (val, i) {
qs[i] = val;
});
result = Object.toQueryString(qs, key);
break;
default:
result = key + "=" + encodeURIComponent(value);
}
if (value != null) queryString.push(result);
});
return queryString.join("&");
},
};
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/fixture/projects/mootools/7/output.js | JavaScript | export const exported = {
toQueryString: function(object, base) {
var queryString = [];
return Object.each(object, function(value, key) {
switch(base && (key = base + "[" + key + "]"), typeOf(value)){
case "object":
result = Object.toQueryString(value, key);
break;
case "array":
var result, qs = {};
value.each(function(val, i) {
qs[i] = val;
}), result = Object.toQueryString(qs, key);
break;
default:
result = key + "=" + encodeURIComponent(value);
}
null != value && queryString.push(result);
}), queryString.join("&");
}
};
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/fixture/projects/mootools/8/input.js | JavaScript | var Browser = window.Browser || {}
var setEngine = function (name, version) {
Browser.Engine.name = name;
Browser.Engine[name + version] = true;
Browser.Engine.version = version;
};
if (Browser.ie) {
Browser.Engine.trident = true;
switch (Browser.version) {
case 6:
setEngine("trident", 4);
break;
case 7:
setEngine("trident", 5);
break;
case 8:
setEngine("trident", 6);
}
}
if (Browser.firefox) {
Browser.Engine.gecko = true;
if (Browser.version >= 3) setEngine("gecko", 19);
else setEngine("gecko", 18);
}
if (Browser.safari || Browser.chrome) {
Browser.Engine.webkit = true;
switch (Browser.version) {
case 2:
setEngine("webkit", 419);
break;
case 3:
setEngine("webkit", 420);
break;
case 4:
setEngine("webkit", 525);
}
}
if (Browser.opera) {
Browser.Engine.presto = true;
if (Browser.version >= 9.6) setEngine("presto", 960);
else if (Browser.version >= 9.5) setEngine("presto", 950);
else setEngine("presto", 925);
}
if (Browser.name == "unknown") {
switch ((ua.match(/(?:webkit|khtml|gecko)/) || [])[0]) {
case "webkit":
case "khtml":
Browser.Engine.webkit = true;
break;
case "gecko":
Browser.Engine.gecko = true;
}
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/fixture/projects/mootools/8/output.js | JavaScript | var Browser = window.Browser || {}, setEngine = function(name, version) {
Browser.Engine.name = name, Browser.Engine[name + version] = !0, Browser.Engine.version = version;
};
if (Browser.ie) switch(Browser.Engine.trident = !0, Browser.version){
case 6:
setEngine("trident", 4);
break;
case 7:
setEngine("trident", 5);
break;
case 8:
setEngine("trident", 6);
}
if (Browser.firefox && (Browser.Engine.gecko = !0, setEngine("gecko", Browser.version >= 3 ? 19 : 18)), Browser.safari || Browser.chrome) switch(Browser.Engine.webkit = !0, Browser.version){
case 2:
setEngine("webkit", 419);
break;
case 3:
setEngine("webkit", 420);
break;
case 4:
setEngine("webkit", 525);
}
if (Browser.opera && (Browser.Engine.presto = !0, setEngine("presto", Browser.version >= 9.6 ? 960 : Browser.version >= 9.5 ? 950 : 925)), "unknown" == Browser.name) switch((ua.match(/(?:webkit|khtml|gecko)/) || [])[0]){
case "webkit":
case "khtml":
Browser.Engine.webkit = !0;
break;
case "gecko":
Browser.Engine.gecko = !0;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/fixture/projects/mootools/9/input.js | JavaScript | var newClass = function () {
reset(this);
if (newClass.$prototyping) return this;
this.$caller = null;
var value = this.initialize ? this.initialize.apply(this, arguments) : this;
this.$caller = this.caller = null;
return value;
}
.extend(this)
.implement(params);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/fixture/projects/mootools/9/output.js | JavaScript | var newClass = (function() {
if (reset(this), newClass.$prototyping) return this;
this.$caller = null;
var value = this.initialize ? this.initialize.apply(this, arguments) : this;
return this.$caller = this.caller = null, value;
}).extend(this).implement(params);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/fixture/projects/next/.archive-4/266-aee26c928109d49d6151/input.js | JavaScript | (self["webpackChunk_N_E"] = self["webpackChunk_N_E"] || []).push([
[266],
{
/***/ 3158: /***/ function (module) {
// shim for using process in browser
var process = (module.exports = {});
// cached from whatever global is present so that test runners that stub it
// don't break things. But we need to wrap it in a try catch in case it is
// wrapped in strict mode code which doesn't define any globals. It's inside a
// function because try/catches deoptimize in certain engines.
var cachedSetTimeout;
var cachedClearTimeout;
function defaultSetTimout() {
throw new Error("setTimeout has not been defined");
}
function defaultClearTimeout() {
throw new Error("clearTimeout has not been defined");
}
(function () {
try {
if (typeof setTimeout === "function") {
cachedSetTimeout = setTimeout;
} else {
cachedSetTimeout = defaultSetTimout;
}
} catch (e) {
cachedSetTimeout = defaultSetTimout;
}
try {
if (typeof clearTimeout === "function") {
cachedClearTimeout = clearTimeout;
} else {
cachedClearTimeout = defaultClearTimeout;
}
} catch (e) {
cachedClearTimeout = defaultClearTimeout;
}
})();
function runTimeout(fun) {
if (cachedSetTimeout === setTimeout) {
//normal enviroments in sane situations
return setTimeout(fun, 0);
}
// if setTimeout wasn't available but was latter defined
if (
(cachedSetTimeout === defaultSetTimout ||
!cachedSetTimeout) &&
setTimeout
) {
cachedSetTimeout = setTimeout;
return setTimeout(fun, 0);
}
try {
// when when somebody has screwed with setTimeout but no I.E. maddness
return cachedSetTimeout(fun, 0);
} catch (e) {
try {
// When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
return cachedSetTimeout.call(null, fun, 0);
} catch (e) {
// same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error
return cachedSetTimeout.call(this, fun, 0);
}
}
}
function runClearTimeout(marker) {
if (cachedClearTimeout === clearTimeout) {
//normal enviroments in sane situations
return clearTimeout(marker);
}
// if clearTimeout wasn't available but was latter defined
if (
(cachedClearTimeout === defaultClearTimeout ||
!cachedClearTimeout) &&
clearTimeout
) {
cachedClearTimeout = clearTimeout;
return clearTimeout(marker);
}
try {
// when when somebody has screwed with setTimeout but no I.E. maddness
return cachedClearTimeout(marker);
} catch (e) {
try {
// When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
return cachedClearTimeout.call(null, marker);
} catch (e) {
// same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.
// Some versions of I.E. have different rules for clearTimeout vs setTimeout
return cachedClearTimeout.call(this, marker);
}
}
}
var queue = [];
var draining = false;
var currentQueue;
var queueIndex = -1;
function cleanUpNextTick() {
if (!draining || !currentQueue) {
return;
}
draining = false;
if (currentQueue.length) {
queue = currentQueue.concat(queue);
} else {
queueIndex = -1;
}
if (queue.length) {
drainQueue();
}
}
function drainQueue() {
if (draining) {
return;
}
var timeout = runTimeout(cleanUpNextTick);
draining = true;
var len = queue.length;
while (len) {
currentQueue = queue;
queue = [];
while (++queueIndex < len) {
if (currentQueue) {
currentQueue[queueIndex].run();
}
}
queueIndex = -1;
len = queue.length;
}
currentQueue = null;
draining = false;
runClearTimeout(timeout);
}
process.nextTick = function (fun) {
var args = new Array(arguments.length - 1);
if (arguments.length > 1) {
for (var i = 1; i < arguments.length; i++) {
args[i - 1] = arguments[i];
}
}
queue.push(new Item(fun, args));
if (queue.length === 1 && !draining) {
runTimeout(drainQueue);
}
};
// v8 likes predictible objects
function Item(fun, array) {
this.fun = fun;
this.array = array;
}
Item.prototype.run = function () {
this.fun.apply(null, this.array);
};
process.title = "browser";
process.browser = true;
process.env = {};
process.argv = [];
process.version = ""; // empty string to avoid regexp issues
process.versions = {};
function noop() {}
process.on = noop;
process.addListener = noop;
process.once = noop;
process.off = noop;
process.removeListener = noop;
process.removeAllListeners = noop;
process.emit = noop;
process.prependListener = noop;
process.prependOnceListener = noop;
process.listeners = function (name) {
return [];
};
process.binding = function (name) {
throw new Error("process.binding is not supported");
};
process.cwd = function () {
return "/";
};
process.chdir = function (dir) {
throw new Error("process.chdir is not supported");
};
process.umask = function () {
return 0;
};
/***/
},
/***/ 8182: /***/ function (module) {
"use strict";
function hash(str) {
var hash = 5381,
i = str.length;
while (i) {
hash = (hash * 33) ^ str.charCodeAt(--i);
}
/* JavaScript does bitwise operations (like XOR, above) on 32-bit signed
* integers. Since we want the results to be always positive, convert the
* signed int to an unsigned by doing an unsigned bitshift. */
return hash >>> 0;
}
module.exports = hash;
/***/
},
/***/ 9261: /***/ function (
__unused_webpack_module,
exports,
__webpack_require__
) {
"use strict";
/* provided dependency */ var process = __webpack_require__(3158);
exports.__esModule = true;
exports.default = void 0;
function _defineProperties(target, props) {
for (var i = 0; i < props.length; i++) {
var descriptor = props[i];
descriptor.enumerable = descriptor.enumerable || false;
descriptor.configurable = true;
if ("value" in descriptor) descriptor.writable = true;
Object.defineProperty(target, descriptor.key, descriptor);
}
}
function _createClass(Constructor, protoProps, staticProps) {
if (protoProps)
_defineProperties(Constructor.prototype, protoProps);
if (staticProps) _defineProperties(Constructor, staticProps);
return Constructor;
}
/*
Based on Glamor's sheet
https://github.com/threepointone/glamor/blob/667b480d31b3721a905021b26e1290ce92ca2879/src/sheet.js
*/
var isProd =
typeof process !== "undefined" &&
process.env &&
"production" === "production";
var isString = function isString(o) {
return Object.prototype.toString.call(o) === "[object String]";
};
var StyleSheet = /*#__PURE__*/ (function () {
function StyleSheet(_temp) {
var _ref = _temp === void 0 ? {} : _temp,
_ref$name = _ref.name,
name = _ref$name === void 0 ? "stylesheet" : _ref$name,
_ref$optimizeForSpeed = _ref.optimizeForSpeed,
optimizeForSpeed =
_ref$optimizeForSpeed === void 0
? isProd
: _ref$optimizeForSpeed,
_ref$isBrowser = _ref.isBrowser,
isBrowser =
_ref$isBrowser === void 0
? typeof window !== "undefined"
: _ref$isBrowser;
invariant(isString(name), "`name` must be a string");
this._name = name;
this._deletedRulePlaceholder =
"#" + name + "-deleted-rule____{}";
invariant(
typeof optimizeForSpeed === "boolean",
"`optimizeForSpeed` must be a boolean"
);
this._optimizeForSpeed = optimizeForSpeed;
this._isBrowser = isBrowser;
this._serverSheet = undefined;
this._tags = [];
this._injected = false;
this._rulesCount = 0;
var node =
this._isBrowser &&
document.querySelector('meta[property="csp-nonce"]');
this._nonce = node ? node.getAttribute("content") : null;
}
var _proto = StyleSheet.prototype;
_proto.setOptimizeForSpeed = function setOptimizeForSpeed(
bool
) {
invariant(
typeof bool === "boolean",
"`setOptimizeForSpeed` accepts a boolean"
);
invariant(
this._rulesCount === 0,
"optimizeForSpeed cannot be when rules have already been inserted"
);
this.flush();
this._optimizeForSpeed = bool;
this.inject();
};
_proto.isOptimizeForSpeed = function isOptimizeForSpeed() {
return this._optimizeForSpeed;
};
_proto.inject = function inject() {
var _this = this;
invariant(!this._injected, "sheet already injected");
this._injected = true;
if (this._isBrowser && this._optimizeForSpeed) {
this._tags[0] = this.makeStyleTag(this._name);
this._optimizeForSpeed =
"insertRule" in this.getSheet();
if (!this._optimizeForSpeed) {
if (!isProd) {
console.warn(
"StyleSheet: optimizeForSpeed mode not supported falling back to standard mode."
);
}
this.flush();
this._injected = true;
}
return;
}
this._serverSheet = {
cssRules: [],
insertRule: function insertRule(rule, index) {
if (typeof index === "number") {
_this._serverSheet.cssRules[index] = {
cssText: rule,
};
} else {
_this._serverSheet.cssRules.push({
cssText: rule,
});
}
return index;
},
deleteRule: function deleteRule(index) {
_this._serverSheet.cssRules[index] = null;
},
};
};
_proto.getSheetForTag = function getSheetForTag(tag) {
if (tag.sheet) {
return tag.sheet;
} // this weirdness brought to you by firefox
for (var i = 0; i < document.styleSheets.length; i++) {
if (document.styleSheets[i].ownerNode === tag) {
return document.styleSheets[i];
}
}
};
_proto.getSheet = function getSheet() {
return this.getSheetForTag(
this._tags[this._tags.length - 1]
);
};
_proto.insertRule = function insertRule(rule, index) {
invariant(
isString(rule),
"`insertRule` accepts only strings"
);
if (!this._isBrowser) {
if (typeof index !== "number") {
index = this._serverSheet.cssRules.length;
}
this._serverSheet.insertRule(rule, index);
return this._rulesCount++;
}
if (this._optimizeForSpeed) {
var sheet = this.getSheet();
if (typeof index !== "number") {
index = sheet.cssRules.length;
} // this weirdness for perf, and chrome's weird bug
// https://stackoverflow.com/questions/20007992/chrome-suddenly-stopped-accepting-insertrule
try {
sheet.insertRule(rule, index);
} catch (error) {
if (!isProd) {
console.warn(
"StyleSheet: illegal rule: \n\n" +
rule +
"\n\nSee https://stackoverflow.com/q/20007992 for more info"
);
}
return -1;
}
} else {
var insertionPoint = this._tags[index];
this._tags.push(
this.makeStyleTag(this._name, rule, insertionPoint)
);
}
return this._rulesCount++;
};
_proto.replaceRule = function replaceRule(index, rule) {
if (this._optimizeForSpeed || !this._isBrowser) {
var sheet = this._isBrowser
? this.getSheet()
: this._serverSheet;
if (!rule.trim()) {
rule = this._deletedRulePlaceholder;
}
if (!sheet.cssRules[index]) {
// @TBD Should we throw an error?
return index;
}
sheet.deleteRule(index);
try {
sheet.insertRule(rule, index);
} catch (error) {
if (!isProd) {
console.warn(
"StyleSheet: illegal rule: \n\n" +
rule +
"\n\nSee https://stackoverflow.com/q/20007992 for more info"
);
} // In order to preserve the indices we insert a deleteRulePlaceholder
sheet.insertRule(
this._deletedRulePlaceholder,
index
);
}
} else {
var tag = this._tags[index];
invariant(
tag,
"old rule at index `" + index + "` not found"
);
tag.textContent = rule;
}
return index;
};
_proto.deleteRule = function deleteRule(index) {
if (!this._isBrowser) {
this._serverSheet.deleteRule(index);
return;
}
if (this._optimizeForSpeed) {
this.replaceRule(index, "");
} else {
var tag = this._tags[index];
invariant(
tag,
"rule at index `" + index + "` not found"
);
tag.parentNode.removeChild(tag);
this._tags[index] = null;
}
};
_proto.flush = function flush() {
this._injected = false;
this._rulesCount = 0;
if (this._isBrowser) {
this._tags.forEach(function (tag) {
return tag && tag.parentNode.removeChild(tag);
});
this._tags = [];
} else {
// simpler on server
this._serverSheet.cssRules = [];
}
};
_proto.cssRules = function cssRules() {
var _this2 = this;
if (!this._isBrowser) {
return this._serverSheet.cssRules;
}
return this._tags.reduce(function (rules, tag) {
if (tag) {
rules = rules.concat(
Array.prototype.map.call(
_this2.getSheetForTag(tag).cssRules,
function (rule) {
return rule.cssText ===
_this2._deletedRulePlaceholder
? null
: rule;
}
)
);
} else {
rules.push(null);
}
return rules;
}, []);
};
_proto.makeStyleTag = function makeStyleTag(
name,
cssString,
relativeToTag
) {
if (cssString) {
invariant(
isString(cssString),
"makeStyleTag acceps only strings as second parameter"
);
}
var tag = document.createElement("style");
if (this._nonce) tag.setAttribute("nonce", this._nonce);
tag.type = "text/css";
tag.setAttribute("data-" + name, "");
if (cssString) {
tag.appendChild(document.createTextNode(cssString));
}
var head =
document.head ||
document.getElementsByTagName("head")[0];
if (relativeToTag) {
head.insertBefore(tag, relativeToTag);
} else {
head.appendChild(tag);
}
return tag;
};
_createClass(StyleSheet, [
{
key: "length",
get: function get() {
return this._rulesCount;
},
},
]);
return StyleSheet;
})();
exports.default = StyleSheet;
function invariant(condition, message) {
if (!condition) {
throw new Error("StyleSheet: " + message + ".");
}
}
/***/
},
/***/ 8672: /***/ function (
__unused_webpack_module,
exports,
__webpack_require__
) {
"use strict";
var __webpack_unused_export__;
__webpack_unused_export__ = true;
__webpack_unused_export__ = flush;
exports.default = void 0;
var _react = __webpack_require__(2735);
var _stylesheetRegistry = _interopRequireDefault(
__webpack_require__(7805)
);
function _interopRequireDefault(obj) {
return obj && obj.__esModule
? obj
: {
default: obj,
};
}
function _inheritsLoose(subClass, superClass) {
subClass.prototype = Object.create(superClass.prototype);
subClass.prototype.constructor = subClass;
subClass.__proto__ = superClass;
}
var styleSheetRegistry = new _stylesheetRegistry["default"]();
var JSXStyle = /*#__PURE__*/ (function (_Component) {
_inheritsLoose(JSXStyle, _Component);
function JSXStyle(props) {
var _this;
_this = _Component.call(this, props) || this;
_this.prevProps = {};
return _this;
}
JSXStyle.dynamic = function dynamic(info) {
return info
.map(function (tagInfo) {
var baseId = tagInfo[0];
var props = tagInfo[1];
return styleSheetRegistry.computeId(baseId, props);
})
.join(" ");
}; // probably faster than PureComponent (shallowEqual)
var _proto = JSXStyle.prototype;
_proto.shouldComponentUpdate = function shouldComponentUpdate(
otherProps
) {
return (
this.props.id !== otherProps.id || // We do this check because `dynamic` is an array of strings or undefined.
// These are the computed values for dynamic styles.
String(this.props.dynamic) !==
String(otherProps.dynamic)
);
};
_proto.componentWillUnmount = function componentWillUnmount() {
styleSheetRegistry.remove(this.props);
};
_proto.render = function render() {
// This is a workaround to make the side effect async safe in the "render" phase.
// See https://github.com/zeit/styled-jsx/pull/484
if (this.shouldComponentUpdate(this.prevProps)) {
// Updates
if (this.prevProps.id) {
styleSheetRegistry.remove(this.prevProps);
}
styleSheetRegistry.add(this.props);
this.prevProps = this.props;
}
return null;
};
return JSXStyle;
})(_react.Component);
exports.default = JSXStyle;
function flush() {
var cssRules = styleSheetRegistry.cssRules();
styleSheetRegistry.flush();
return cssRules;
}
/***/
},
/***/ 7805: /***/ function (
__unused_webpack_module,
exports,
__webpack_require__
) {
"use strict";
exports.__esModule = true;
exports.default = void 0;
var _stringHash = _interopRequireDefault(__webpack_require__(8182));
var _stylesheet = _interopRequireDefault(__webpack_require__(9261));
function _interopRequireDefault(obj) {
return obj && obj.__esModule
? obj
: {
default: obj,
};
}
var sanitize = function sanitize(rule) {
return rule.replace(/\/style/gi, "\\/style");
};
var StyleSheetRegistry = /*#__PURE__*/ (function () {
function StyleSheetRegistry(_temp) {
var _ref = _temp === void 0 ? {} : _temp,
_ref$styleSheet = _ref.styleSheet,
styleSheet =
_ref$styleSheet === void 0 ? null : _ref$styleSheet,
_ref$optimizeForSpeed = _ref.optimizeForSpeed,
optimizeForSpeed =
_ref$optimizeForSpeed === void 0
? false
: _ref$optimizeForSpeed,
_ref$isBrowser = _ref.isBrowser,
isBrowser =
_ref$isBrowser === void 0
? typeof window !== "undefined"
: _ref$isBrowser;
this._sheet =
styleSheet ||
new _stylesheet["default"]({
name: "styled-jsx",
optimizeForSpeed: optimizeForSpeed,
});
this._sheet.inject();
if (styleSheet && typeof optimizeForSpeed === "boolean") {
this._sheet.setOptimizeForSpeed(optimizeForSpeed);
this._optimizeForSpeed =
this._sheet.isOptimizeForSpeed();
}
this._isBrowser = isBrowser;
this._fromServer = undefined;
this._indices = {};
this._instancesCounts = {};
this.computeId = this.createComputeId();
this.computeSelector = this.createComputeSelector();
}
var _proto = StyleSheetRegistry.prototype;
_proto.add = function add(props) {
var _this = this;
if (undefined === this._optimizeForSpeed) {
this._optimizeForSpeed = Array.isArray(props.children);
this._sheet.setOptimizeForSpeed(this._optimizeForSpeed);
this._optimizeForSpeed =
this._sheet.isOptimizeForSpeed();
}
if (this._isBrowser && !this._fromServer) {
this._fromServer = this.selectFromServer();
this._instancesCounts = Object.keys(
this._fromServer
).reduce(function (acc, tagName) {
acc[tagName] = 0;
return acc;
}, {});
}
var _this$getIdAndRules = this.getIdAndRules(props),
styleId = _this$getIdAndRules.styleId,
rules = _this$getIdAndRules.rules; // Deduping: just increase the instances count.
if (styleId in this._instancesCounts) {
this._instancesCounts[styleId] += 1;
return;
}
var indices = rules
.map(function (rule) {
return _this._sheet.insertRule(rule);
}) // Filter out invalid rules
.filter(function (index) {
return index !== -1;
});
this._indices[styleId] = indices;
this._instancesCounts[styleId] = 1;
};
_proto.remove = function remove(props) {
var _this2 = this;
var _this$getIdAndRules2 = this.getIdAndRules(props),
styleId = _this$getIdAndRules2.styleId;
invariant(
styleId in this._instancesCounts,
"styleId: `" + styleId + "` not found"
);
this._instancesCounts[styleId] -= 1;
if (this._instancesCounts[styleId] < 1) {
var tagFromServer =
this._fromServer && this._fromServer[styleId];
if (tagFromServer) {
tagFromServer.parentNode.removeChild(tagFromServer);
delete this._fromServer[styleId];
} else {
this._indices[styleId].forEach(function (index) {
return _this2._sheet.deleteRule(index);
});
delete this._indices[styleId];
}
delete this._instancesCounts[styleId];
}
};
_proto.update = function update(props, nextProps) {
this.add(nextProps);
this.remove(props);
};
_proto.flush = function flush() {
this._sheet.flush();
this._sheet.inject();
this._fromServer = undefined;
this._indices = {};
this._instancesCounts = {};
this.computeId = this.createComputeId();
this.computeSelector = this.createComputeSelector();
};
_proto.cssRules = function cssRules() {
var _this3 = this;
var fromServer = this._fromServer
? Object.keys(this._fromServer).map(function (styleId) {
return [styleId, _this3._fromServer[styleId]];
})
: [];
var cssRules = this._sheet.cssRules();
return fromServer.concat(
Object.keys(this._indices)
.map(function (styleId) {
return [
styleId,
_this3._indices[styleId]
.map(function (index) {
return cssRules[index].cssText;
})
.join(
_this3._optimizeForSpeed ? "" : "\n"
),
];
}) // filter out empty rules
.filter(function (rule) {
return Boolean(rule[1]);
})
);
};
/**
* createComputeId
*
* Creates a function to compute and memoize a jsx id from a basedId and optionally props.
*/
_proto.createComputeId = function createComputeId() {
var cache = {};
return function (baseId, props) {
if (!props) {
return "jsx-" + baseId;
}
var propsToString = String(props);
var key = baseId + propsToString; // return `jsx-${hashString(`${baseId}-${propsToString}`)}`
if (!cache[key]) {
cache[key] =
"jsx-" +
(0, _stringHash["default"])(
baseId + "-" + propsToString
);
}
return cache[key];
};
};
/**
* createComputeSelector
*
* Creates a function to compute and memoize dynamic selectors.
*/
_proto.createComputeSelector = function createComputeSelector(
selectoPlaceholderRegexp
) {
if (selectoPlaceholderRegexp === void 0) {
selectoPlaceholderRegexp =
/__jsx-style-dynamic-selector/g;
}
var cache = {};
return function (id, css) {
// Sanitize SSR-ed CSS.
// Client side code doesn't need to be sanitized since we use
// document.createTextNode (dev) and the CSSOM api sheet.insertRule (prod).
if (!this._isBrowser) {
css = sanitize(css);
}
var idcss = id + css;
if (!cache[idcss]) {
cache[idcss] = css.replace(
selectoPlaceholderRegexp,
id
);
}
return cache[idcss];
};
};
_proto.getIdAndRules = function getIdAndRules(props) {
var _this4 = this;
var css = props.children,
dynamic = props.dynamic,
id = props.id;
if (dynamic) {
var styleId = this.computeId(id, dynamic);
return {
styleId: styleId,
rules: Array.isArray(css)
? css.map(function (rule) {
return _this4.computeSelector(
styleId,
rule
);
})
: [this.computeSelector(styleId, css)],
};
}
return {
styleId: this.computeId(id),
rules: Array.isArray(css) ? css : [css],
};
};
/**
* selectFromServer
*
* Collects style tags from the document with id __jsx-XXX
*/
_proto.selectFromServer = function selectFromServer() {
var elements = Array.prototype.slice.call(
document.querySelectorAll('[id^="__jsx-"]')
);
return elements.reduce(function (acc, element) {
var id = element.id.slice(2);
acc[id] = element;
return acc;
}, {});
};
return StyleSheetRegistry;
})();
exports.default = StyleSheetRegistry;
function invariant(condition, message) {
if (!condition) {
throw new Error("StyleSheetRegistry: " + message + ".");
}
}
/***/
},
/***/ 266: /***/ function (
module,
__unused_webpack_exports,
__webpack_require__
) {
module.exports = __webpack_require__(8672);
/***/
},
},
]);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/fixture/projects/next/.archive-4/266-aee26c928109d49d6151/output.js | JavaScript | (self.webpackChunk_N_E = self.webpackChunk_N_E || []).push(
[
[266,],
{
3158: function (
module
) {
var cachedSetTimeout,
cachedClearTimeout,
process = (module.exports = {
});
function defaultSetTimout(
) {
throw new Error(
"setTimeout has not been defined"
);
}
function defaultClearTimeout(
) {
throw new Error(
"clearTimeout has not been defined"
);
}
function runTimeout(
fun
) {
if (cachedSetTimeout === setTimeout) return setTimeout(
fun,
0
);
if (
(cachedSetTimeout === defaultSetTimout ||
!cachedSetTimeout) &&
setTimeout
)
return (cachedSetTimeout = setTimeout), setTimeout(
fun,
0
);
try {
return cachedSetTimeout(
fun,
0
);
} catch (e) {
try {
return cachedSetTimeout.call(
null,
fun,
0
);
} catch (e) {
return cachedSetTimeout.call(
this,
fun,
0
);
}
}
}
!(function (
) {
try {
cachedSetTimeout =
"function" == typeof setTimeout
? setTimeout
: defaultSetTimout;
} catch (e) {
cachedSetTimeout = defaultSetTimout;
}
try {
cachedClearTimeout =
"function" == typeof clearTimeout
? clearTimeout
: defaultClearTimeout;
} catch (e) {
cachedClearTimeout = defaultClearTimeout;
}
})(
);
var currentQueue,
queue = [],
draining = !1,
queueIndex = -1;
function cleanUpNextTick(
) {
draining &&
currentQueue &&
((draining = !1),
currentQueue.length
? (queue = currentQueue.concat(
queue
))
: (queueIndex = -1),
queue.length && drainQueue(
));
}
function drainQueue(
) {
if (!draining) {
var timeout = runTimeout(
cleanUpNextTick
);
draining = !0;
for (var len = queue.length; len; ) {
for (
currentQueue = queue, queue = [];
++queueIndex < len;
)
currentQueue && currentQueue[queueIndex].run(
);
(queueIndex = -1), (len = queue.length);
}
(currentQueue = null),
(draining = !1),
(function (
marker
) {
if (cachedClearTimeout === clearTimeout)
return clearTimeout(
marker
);
if (
(cachedClearTimeout === defaultClearTimeout ||
!cachedClearTimeout) &&
clearTimeout
)
return (
(cachedClearTimeout = clearTimeout),
clearTimeout(
marker
)
);
try {
cachedClearTimeout(
marker
);
} catch (e) {
try {
return cachedClearTimeout.call(
null,
marker
);
} catch (e) {
return cachedClearTimeout.call(
this,
marker
);
}
}
})(
timeout
);
}
}
function Item(
fun, array
) {
(this.fun = fun), (this.array = array);
}
function noop(
) {}
(process.nextTick = function (
fun
) {
var args = new Array(
arguments.length - 1
);
if (arguments.length > 1)
for (var i = 1; i < arguments.length; i++)
args[i - 1] = arguments[i];
queue.push(
new Item(
fun,
args
)
),
1 !== queue.length || draining || runTimeout(
drainQueue
);
}),
(Item.prototype.run = function (
) {
this.fun.apply(
null,
this.array
);
}),
(process.title = "browser"),
(process.browser = !0),
(process.env = {
}),
(process.argv = []),
(process.version = ""),
(process.versions = {
}),
(process.on = noop),
(process.addListener = noop),
(process.once = noop),
(process.off = noop),
(process.removeListener = noop),
(process.removeAllListeners = noop),
(process.emit = noop),
(process.prependListener = noop),
(process.prependOnceListener = noop),
(process.listeners = function (
name
) {
return [];
}),
(process.binding = function (
name
) {
throw new Error(
"process.binding is not supported"
);
}),
(process.cwd = function (
) {
return "/";
}),
(process.chdir = function (
dir
) {
throw new Error(
"process.chdir is not supported"
);
}),
(process.umask = function (
) {
return 0;
});
},
8182: function (
module
) {
"use strict";
module.exports = function (
str
) {
for (var hash = 5381, i = str.length; i; )
hash = (33 * hash) ^ str.charCodeAt(
--i
);
return hash >>> 0;
};
},
9261: function (
__unused_webpack_module, exports, __webpack_require__
) {
"use strict";
var process = __webpack_require__(
3158
);
function _defineProperties(
target, props
) {
for (var i = 0; i < props.length; i++) {
var descriptor = props[i];
(descriptor.enumerable = descriptor.enumerable || !1),
(descriptor.configurable = !0),
"value" in descriptor && (descriptor.writable = !0),
Object.defineProperty(
target,
descriptor.key,
descriptor
);
}
}
(exports.__esModule = !0), (exports.default = void 0);
var isProd = void 0 !== process && process.env && !0,
isString = function (
o
) {
return (
"[object String]" === Object.prototype.toString.call(
o
)
);
},
StyleSheet = (function (
) {
function StyleSheet(
_temp
) {
var _ref = void 0 === _temp
? {
}
: _temp,
_ref$name = _ref.name,
name =
void 0 === _ref$name ? "stylesheet" : _ref$name,
_ref$optimizeForSpeed = _ref.optimizeForSpeed,
optimizeForSpeed =
void 0 === _ref$optimizeForSpeed
? isProd
: _ref$optimizeForSpeed,
_ref$isBrowser = _ref.isBrowser,
isBrowser =
void 0 === _ref$isBrowser
? "undefined" != typeof window
: _ref$isBrowser;
invariant(
isString(
name
),
"`name` must be a string"
),
(this._name = name),
(this._deletedRulePlaceholder =
"#" + name + "-deleted-rule____{}"),
invariant(
"boolean" == typeof optimizeForSpeed,
"`optimizeForSpeed` must be a boolean"
),
(this._optimizeForSpeed = optimizeForSpeed),
(this._isBrowser = isBrowser),
(this._serverSheet = void 0),
(this._tags = []),
(this._injected = !1),
(this._rulesCount = 0);
var node =
this._isBrowser &&
document.querySelector(
'meta[property="csp-nonce"]'
);
this._nonce = node
? node.getAttribute(
"content"
)
: null;
}
var Constructor,
protoProps,
staticProps,
_proto = StyleSheet.prototype;
return (
(_proto.setOptimizeForSpeed = function (
bool
) {
invariant(
"boolean" == typeof bool,
"`setOptimizeForSpeed` accepts a boolean"
),
invariant(
0 === this._rulesCount,
"optimizeForSpeed cannot be when rules have already been inserted"
),
this.flush(
),
(this._optimizeForSpeed = bool),
this.inject(
);
}),
(_proto.isOptimizeForSpeed = function (
) {
return this._optimizeForSpeed;
}),
(_proto.inject = function (
) {
var _this = this;
if (
(invariant(
!this._injected,
"sheet already injected"
),
(this._injected = !0),
this._isBrowser && this._optimizeForSpeed)
)
return (
(this._tags[0] = this.makeStyleTag(
this._name
)),
(this._optimizeForSpeed =
"insertRule" in this.getSheet(
)),
void (
this._optimizeForSpeed ||
(isProd ||
console.warn(
"StyleSheet: optimizeForSpeed mode not supported falling back to standard mode."
),
this.flush(
),
(this._injected = !0))
)
);
this._serverSheet = {
cssRules: [],
insertRule: function (
rule, index
) {
return (
"number" == typeof index
? (_this._serverSheet.cssRules[
index
] = {
cssText: rule,
})
: _this._serverSheet.cssRules.push(
{
cssText: rule,
}
),
index
);
},
deleteRule: function (
index
) {
_this._serverSheet.cssRules[index] = null;
},
};
}),
(_proto.getSheetForTag = function (
tag
) {
if (tag.sheet) return tag.sheet;
for (
var i = 0;
i < document.styleSheets.length;
i++
)
if (document.styleSheets[i].ownerNode === tag)
return document.styleSheets[i];
}),
(_proto.getSheet = function (
) {
return this.getSheetForTag(
this._tags[this._tags.length - 1]
);
}),
(_proto.insertRule = function (
rule, index
) {
if (
(invariant(
isString(
rule
),
"`insertRule` accepts only strings"
),
!this._isBrowser)
)
return (
"number" != typeof index &&
(index =
this._serverSheet.cssRules.length),
this._serverSheet.insertRule(
rule,
index
),
this._rulesCount++
);
if (this._optimizeForSpeed) {
var sheet = this.getSheet(
);
"number" != typeof index &&
(index = sheet.cssRules.length);
try {
sheet.insertRule(
rule,
index
);
} catch (error) {
return (
isProd ||
console.warn(
"StyleSheet: illegal rule: \n\n" +
rule +
"\n\nSee https://stackoverflow.com/q/20007992 for more info"
),
-1
);
}
} else {
var insertionPoint = this._tags[index];
this._tags.push(
this.makeStyleTag(
this._name,
rule,
insertionPoint
)
);
}
return this._rulesCount++;
}),
(_proto.replaceRule = function (
index, rule
) {
if (this._optimizeForSpeed || !this._isBrowser) {
var sheet = this._isBrowser
? this.getSheet(
)
: this._serverSheet;
if (
(rule.trim(
) ||
(rule = this._deletedRulePlaceholder),
!sheet.cssRules[index])
)
return index;
sheet.deleteRule(
index
);
try {
sheet.insertRule(
rule,
index
);
} catch (error) {
isProd ||
console.warn(
"StyleSheet: illegal rule: \n\n" +
rule +
"\n\nSee https://stackoverflow.com/q/20007992 for more info"
),
sheet.insertRule(
this._deletedRulePlaceholder,
index
);
}
} else {
var tag = this._tags[index];
invariant(
tag,
"old rule at index `" +
index +
"` not found"
),
(tag.textContent = rule);
}
return index;
}),
(_proto.deleteRule = function (
index
) {
if (this._isBrowser)
if (this._optimizeForSpeed)
this.replaceRule(
index,
""
);
else {
var tag = this._tags[index];
invariant(
tag,
"rule at index `" +
index +
"` not found"
),
tag.parentNode.removeChild(
tag
),
(this._tags[index] = null);
}
else this._serverSheet.deleteRule(
index
);
}),
(_proto.flush = function (
) {
(this._injected = !1),
(this._rulesCount = 0),
this._isBrowser
? (this._tags.forEach(
function (
tag
) {
return (
tag &&
tag.parentNode.removeChild(
tag
)
);
}
),
(this._tags = []))
: (this._serverSheet.cssRules = []);
}),
(_proto.cssRules = function (
) {
var _this2 = this;
return this._isBrowser
? this._tags.reduce(
function (
rules, tag
) {
return (
tag
? (rules = rules.concat(
Array.prototype.map.call(
_this2.getSheetForTag(
tag
).cssRules,
function (
rule
) {
return rule.cssText ===
_this2._deletedRulePlaceholder
? null
: rule;
}
)
))
: rules.push(
null
),
rules
);
},
[]
)
: this._serverSheet.cssRules;
}),
(_proto.makeStyleTag = function (
name,
cssString,
relativeToTag
) {
cssString &&
invariant(
isString(
cssString
),
"makeStyleTag acceps only strings as second parameter"
);
var tag = document.createElement(
"style"
);
this._nonce &&
tag.setAttribute(
"nonce",
this._nonce
),
(tag.type = "text/css"),
tag.setAttribute(
"data-" + name,
""
),
cssString &&
tag.appendChild(
document.createTextNode(
cssString
)
);
var head =
document.head ||
document.getElementsByTagName(
"head"
)[0];
return (
relativeToTag
? head.insertBefore(
tag,
relativeToTag
)
: head.appendChild(
tag
),
tag
);
}),
(Constructor = StyleSheet),
(protoProps = [
{
key: "length",
get: function (
) {
return this._rulesCount;
},
},
]) &&
_defineProperties(
Constructor.prototype,
protoProps
),
staticProps &&
_defineProperties(
Constructor,
staticProps
),
StyleSheet
);
})(
);
function invariant(
condition, message
) {
if (!condition) throw new Error(
"StyleSheet: " + message + "."
);
}
exports.default = StyleSheet;
},
8672: function (
__unused_webpack_module, exports, __webpack_require__
) {
"use strict";
exports.default = void 0;
var obj,
_react = __webpack_require__(
2735
);
var styleSheetRegistry = new (
(obj = __webpack_require__(
7805
)) && obj.__esModule
? obj
: {
default: obj,
}
).default(
),
JSXStyle = (function (
_Component
) {
var subClass, superClass;
function JSXStyle(
props
) {
var _this;
return (
((_this =
_Component.call(
this,
props
) ||
this).prevProps = {
}),
_this
);
}
(superClass = _Component),
((subClass = JSXStyle).prototype = Object.create(
superClass.prototype
)),
(subClass.prototype.constructor = subClass),
(subClass.__proto__ = superClass),
(JSXStyle.dynamic = function (
info
) {
return info
.map(
function (
tagInfo
) {
var baseId = tagInfo[0],
props = tagInfo[1];
return styleSheetRegistry.computeId(
baseId,
props
);
}
)
.join(
" "
);
});
var _proto = JSXStyle.prototype;
return (
(_proto.shouldComponentUpdate = function (
otherProps
) {
return (
this.props.id !== otherProps.id ||
String(
this.props.dynamic
) !==
String(
otherProps.dynamic
)
);
}),
(_proto.componentWillUnmount = function (
) {
styleSheetRegistry.remove(
this.props
);
}),
(_proto.render = function (
) {
return (
this.shouldComponentUpdate(
this.prevProps
) &&
(this.prevProps.id &&
styleSheetRegistry.remove(
this.prevProps
),
styleSheetRegistry.add(
this.props
),
(this.prevProps = this.props)),
null
);
}),
JSXStyle
);
})(
_react.Component
);
exports.default = JSXStyle;
},
7805: function (
__unused_webpack_module, exports, __webpack_require__
) {
"use strict";
(exports.__esModule = !0), (exports.default = void 0);
var _stringHash = _interopRequireDefault(
__webpack_require__(
8182
)
),
_stylesheet = _interopRequireDefault(
__webpack_require__(
9261
)
);
function _interopRequireDefault(
obj
) {
return obj && obj.__esModule
? obj
: {
default: obj,
};
}
var StyleSheetRegistry = (function (
) {
function StyleSheetRegistry(
_temp
) {
var _ref = void 0 === _temp
? {
}
: _temp,
_ref$styleSheet = _ref.styleSheet,
styleSheet =
void 0 === _ref$styleSheet ? null : _ref$styleSheet,
_ref$optimizeForSpeed = _ref.optimizeForSpeed,
optimizeForSpeed =
void 0 !== _ref$optimizeForSpeed &&
_ref$optimizeForSpeed,
_ref$isBrowser = _ref.isBrowser,
isBrowser =
void 0 === _ref$isBrowser
? "undefined" != typeof window
: _ref$isBrowser;
(this._sheet =
styleSheet ||
new _stylesheet.default(
{
name: "styled-jsx",
optimizeForSpeed: optimizeForSpeed,
}
)),
this._sheet.inject(
),
styleSheet &&
"boolean" == typeof optimizeForSpeed &&
(this._sheet.setOptimizeForSpeed(
optimizeForSpeed
),
(this._optimizeForSpeed =
this._sheet.isOptimizeForSpeed(
))),
(this._isBrowser = isBrowser),
(this._fromServer = void 0),
(this._indices = {
}),
(this._instancesCounts = {
}),
(this.computeId = this.createComputeId(
)),
(this.computeSelector = this.createComputeSelector(
));
}
var _proto = StyleSheetRegistry.prototype;
return (
(_proto.add = function (
props
) {
var _this = this;
void 0 === this._optimizeForSpeed &&
((this._optimizeForSpeed = Array.isArray(
props.children
)),
this._sheet.setOptimizeForSpeed(
this._optimizeForSpeed
),
(this._optimizeForSpeed =
this._sheet.isOptimizeForSpeed(
))),
this._isBrowser &&
!this._fromServer &&
((this._fromServer = this.selectFromServer(
)),
(this._instancesCounts = Object.keys(
this._fromServer
).reduce(
function (
acc, tagName
) {
return (acc[tagName] = 0), acc;
},
{
}
)));
var _this$getIdAndRules = this.getIdAndRules(
props
),
styleId = _this$getIdAndRules.styleId,
rules = _this$getIdAndRules.rules;
if (styleId in this._instancesCounts)
this._instancesCounts[styleId] += 1;
else {
var indices = rules
.map(
function (
rule
) {
return _this._sheet.insertRule(
rule
);
}
)
.filter(
function (
index
) {
return -1 !== index;
}
);
(this._indices[styleId] = indices),
(this._instancesCounts[styleId] = 1);
}
}),
(_proto.remove = function (
props
) {
var _this2 = this,
styleId = this.getIdAndRules(
props
).styleId;
if (
((function (
condition, message
) {
if (!condition)
throw new Error(
"StyleSheetRegistry: " + message + "."
);
})(
styleId in this._instancesCounts,
"styleId: `" + styleId + "` not found"
),
(this._instancesCounts[styleId] -= 1),
this._instancesCounts[styleId] < 1)
) {
var tagFromServer =
this._fromServer && this._fromServer[styleId];
tagFromServer
? (tagFromServer.parentNode.removeChild(
tagFromServer
),
delete this._fromServer[styleId])
: (this._indices[styleId].forEach(
function (
index
) {
return _this2._sheet.deleteRule(
index
);
}
),
delete this._indices[styleId]),
delete this._instancesCounts[styleId];
}
}),
(_proto.update = function (
props, nextProps
) {
this.add(
nextProps
), this.remove(
props
);
}),
(_proto.flush = function (
) {
this._sheet.flush(
),
this._sheet.inject(
),
(this._fromServer = void 0),
(this._indices = {
}),
(this._instancesCounts = {
}),
(this.computeId = this.createComputeId(
)),
(this.computeSelector =
this.createComputeSelector(
));
}),
(_proto.cssRules = function (
) {
var _this3 = this,
fromServer = this._fromServer
? Object.keys(
this._fromServer
).map(
function (
styleId
) {
return [
styleId,
_this3._fromServer[styleId],
];
}
)
: [],
cssRules = this._sheet.cssRules(
);
return fromServer.concat(
Object.keys(
this._indices
)
.map(
function (
styleId
) {
return [
styleId,
_this3._indices[styleId]
.map(
function (
index
) {
return cssRules[index].cssText;
}
)
.join(
_this3._optimizeForSpeed
? ""
: "\n"
),
];
}
)
.filter(
function (
rule
) {
return Boolean(
rule[1]
);
}
)
);
}),
(_proto.createComputeId = function (
) {
var cache = {
};
return function (
baseId, props
) {
if (!props) return "jsx-" + baseId;
var propsToString = String(
props
),
key = baseId + propsToString;
return (
cache[key] ||
(cache[key] =
"jsx-" +
(0, _stringHash.default)(
baseId + "-" + propsToString
)),
cache[key]
);
};
}),
(_proto.createComputeSelector = function (
selectoPlaceholderRegexp
) {
void 0 === selectoPlaceholderRegexp &&
(selectoPlaceholderRegexp =
/__jsx-style-dynamic-selector/g);
var cache = {
};
return function (
id, css
) {
this._isBrowser ||
(css = css.replace(
/\/style/gi,
"\\/style"
));
var idcss = id + css;
return (
cache[idcss] ||
(cache[idcss] = css.replace(
selectoPlaceholderRegexp,
id
)),
cache[idcss]
);
};
}),
(_proto.getIdAndRules = function (
props
) {
var _this4 = this,
css = props.children,
dynamic = props.dynamic,
id = props.id;
if (dynamic) {
var styleId = this.computeId(
id,
dynamic
);
return {
styleId: styleId,
rules: Array.isArray(
css
)
? css.map(
function (
rule
) {
return _this4.computeSelector(
styleId,
rule
);
}
)
: [this.computeSelector(
styleId,
css
),],
};
}
return {
styleId: this.computeId(
id
),
rules: Array.isArray(
css
)
? css
: [css,],
};
}),
(_proto.selectFromServer = function (
) {
return Array.prototype.slice
.call(
document.querySelectorAll(
'[id^="__jsx-"]'
)
)
.reduce(
function (
acc, element
) {
return (
(acc[element.id.slice(
2
)] = element), acc
);
},
{
}
);
}),
StyleSheetRegistry
);
})(
);
exports.default = StyleSheetRegistry;
},
266: function (
module, __unused_webpack_exports, __webpack_require__
) {
module.exports = __webpack_require__(
8672
);
},
},
]
);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/fixture/projects/next/.archive-4/framework-054ead69ea8124b4cb27/input.js | JavaScript | "use strict";
(self["webpackChunk_N_E"] = self["webpackChunk_N_E"] || []).push([
[774],
{
/***/ 3975: /***/ function (
__unused_webpack_module,
exports,
__webpack_require__
) {
/** @license React v17.0.2
* react-dom.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
/*
Modernizr 3.0.0pre (Custom Build) | MIT
*/
var aa = __webpack_require__(2735),
m = __webpack_require__(1474),
r = __webpack_require__(9489);
function y(a) {
for (
var b =
"https://reactjs.org/docs/error-decoder.html?invariant=" +
a,
c = 1;
c < arguments.length;
c++
)
b += "&args[]=" + encodeURIComponent(arguments[c]);
return (
"Minified React error #" +
a +
"; visit " +
b +
" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."
);
}
if (!aa) throw Error(y(227));
var ba = new Set(),
ca = {};
function da(a, b) {
ea(a, b);
ea(a + "Capture", b);
}
function ea(a, b) {
ca[a] = b;
for (a = 0; a < b.length; a++) ba.add(b[a]);
}
var fa = !(
"undefined" === typeof window ||
"undefined" === typeof window.document ||
"undefined" === typeof window.document.createElement
),
ha =
/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,
ia = Object.prototype.hasOwnProperty,
ja = {},
ka = {};
function la(a) {
if (ia.call(ka, a)) return !0;
if (ia.call(ja, a)) return !1;
if (ha.test(a)) return (ka[a] = !0);
ja[a] = !0;
return !1;
}
function ma(a, b, c, d) {
if (null !== c && 0 === c.type) return !1;
switch (typeof b) {
case "function":
case "symbol":
return !0;
case "boolean":
if (d) return !1;
if (null !== c) return !c.acceptsBooleans;
a = a.toLowerCase().slice(0, 5);
return "data-" !== a && "aria-" !== a;
default:
return !1;
}
}
function na(a, b, c, d) {
if (null === b || "undefined" === typeof b || ma(a, b, c, d))
return !0;
if (d) return !1;
if (null !== c)
switch (c.type) {
case 3:
return !b;
case 4:
return !1 === b;
case 5:
return isNaN(b);
case 6:
return isNaN(b) || 1 > b;
}
return !1;
}
function B(a, b, c, d, e, f, g) {
this.acceptsBooleans = 2 === b || 3 === b || 4 === b;
this.attributeName = d;
this.attributeNamespace = e;
this.mustUseProperty = c;
this.propertyName = a;
this.type = b;
this.sanitizeURL = f;
this.removeEmptyString = g;
}
var D = {};
"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style"
.split(" ")
.forEach(function (a) {
D[a] = new B(a, 0, !1, a, null, !1, !1);
});
[
["acceptCharset", "accept-charset"],
["className", "class"],
["htmlFor", "for"],
["httpEquiv", "http-equiv"],
].forEach(function (a) {
var b = a[0];
D[b] = new B(b, 1, !1, a[1], null, !1, !1);
});
["contentEditable", "draggable", "spellCheck", "value"].forEach(
function (a) {
D[a] = new B(a, 2, !1, a.toLowerCase(), null, !1, !1);
}
);
[
"autoReverse",
"externalResourcesRequired",
"focusable",
"preserveAlpha",
].forEach(function (a) {
D[a] = new B(a, 2, !1, a, null, !1, !1);
});
"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope"
.split(" ")
.forEach(function (a) {
D[a] = new B(a, 3, !1, a.toLowerCase(), null, !1, !1);
});
["checked", "multiple", "muted", "selected"].forEach(function (a) {
D[a] = new B(a, 3, !0, a, null, !1, !1);
});
["capture", "download"].forEach(function (a) {
D[a] = new B(a, 4, !1, a, null, !1, !1);
});
["cols", "rows", "size", "span"].forEach(function (a) {
D[a] = new B(a, 6, !1, a, null, !1, !1);
});
["rowSpan", "start"].forEach(function (a) {
D[a] = new B(a, 5, !1, a.toLowerCase(), null, !1, !1);
});
var oa = /[\-:]([a-z])/g;
function pa(a) {
return a[1].toUpperCase();
}
"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height"
.split(" ")
.forEach(function (a) {
var b = a.replace(oa, pa);
D[b] = new B(b, 1, !1, a, null, !1, !1);
});
"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type"
.split(" ")
.forEach(function (a) {
var b = a.replace(oa, pa);
D[b] = new B(
b,
1,
!1,
a,
"http://www.w3.org/1999/xlink",
!1,
!1
);
});
["xml:base", "xml:lang", "xml:space"].forEach(function (a) {
var b = a.replace(oa, pa);
D[b] = new B(
b,
1,
!1,
a,
"http://www.w3.org/XML/1998/namespace",
!1,
!1
);
});
["tabIndex", "crossOrigin"].forEach(function (a) {
D[a] = new B(a, 1, !1, a.toLowerCase(), null, !1, !1);
});
D.xlinkHref = new B(
"xlinkHref",
1,
!1,
"xlink:href",
"http://www.w3.org/1999/xlink",
!0,
!1
);
["src", "href", "action", "formAction"].forEach(function (a) {
D[a] = new B(a, 1, !1, a.toLowerCase(), null, !0, !0);
});
function qa(a, b, c, d) {
var e = D.hasOwnProperty(b) ? D[b] : null;
var f =
null !== e
? 0 === e.type
: d
? !1
: !(2 < b.length) ||
("o" !== b[0] && "O" !== b[0]) ||
("n" !== b[1] && "N" !== b[1])
? !1
: !0;
f ||
(na(b, c, e, d) && (c = null),
d || null === e
? la(b) &&
(null === c
? a.removeAttribute(b)
: a.setAttribute(b, "" + c))
: e.mustUseProperty
? (a[e.propertyName] =
null === c ? (3 === e.type ? !1 : "") : c)
: ((b = e.attributeName),
(d = e.attributeNamespace),
null === c
? a.removeAttribute(b)
: ((e = e.type),
(c =
3 === e || (4 === e && !0 === c)
? ""
: "" + c),
d
? a.setAttributeNS(d, b, c)
: a.setAttribute(b, c))));
}
var ra = aa.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,
sa = 60103,
ta = 60106,
ua = 60107,
wa = 60108,
xa = 60114,
ya = 60109,
za = 60110,
Aa = 60112,
Ba = 60113,
Ca = 60120,
Da = 60115,
Ea = 60116,
Fa = 60121,
Ga = 60128,
Ha = 60129,
Ia = 60130,
Ja = 60131;
if ("function" === typeof Symbol && Symbol.for) {
var E = Symbol.for;
sa = E("react.element");
ta = E("react.portal");
ua = E("react.fragment");
wa = E("react.strict_mode");
xa = E("react.profiler");
ya = E("react.provider");
za = E("react.context");
Aa = E("react.forward_ref");
Ba = E("react.suspense");
Ca = E("react.suspense_list");
Da = E("react.memo");
Ea = E("react.lazy");
Fa = E("react.block");
E("react.scope");
Ga = E("react.opaque.id");
Ha = E("react.debug_trace_mode");
Ia = E("react.offscreen");
Ja = E("react.legacy_hidden");
}
var Ka = "function" === typeof Symbol && Symbol.iterator;
function La(a) {
if (null === a || "object" !== typeof a) return null;
a = (Ka && a[Ka]) || a["@@iterator"];
return "function" === typeof a ? a : null;
}
var Ma;
function Na(a) {
if (void 0 === Ma)
try {
throw Error();
} catch (c) {
var b = c.stack.trim().match(/\n( *(at )?)/);
Ma = (b && b[1]) || "";
}
return "\n" + Ma + a;
}
var Oa = !1;
function Pa(a, b) {
if (!a || Oa) return "";
Oa = !0;
var c = Error.prepareStackTrace;
Error.prepareStackTrace = void 0;
try {
if (b)
if (
((b = function () {
throw Error();
}),
Object.defineProperty(b.prototype, "props", {
set: function () {
throw Error();
},
}),
"object" === typeof Reflect && Reflect.construct)
) {
try {
Reflect.construct(b, []);
} catch (k) {
var d = k;
}
Reflect.construct(a, [], b);
} else {
try {
b.call();
} catch (k) {
d = k;
}
a.call(b.prototype);
}
else {
try {
throw Error();
} catch (k) {
d = k;
}
a();
}
} catch (k) {
if (k && d && "string" === typeof k.stack) {
for (
var e = k.stack.split("\n"),
f = d.stack.split("\n"),
g = e.length - 1,
h = f.length - 1;
1 <= g && 0 <= h && e[g] !== f[h];
)
h--;
for (; 1 <= g && 0 <= h; g--, h--)
if (e[g] !== f[h]) {
if (1 !== g || 1 !== h) {
do
if ((g--, h--, 0 > h || e[g] !== f[h]))
return (
"\n" +
e[g].replace(" at new ", " at ")
);
while (1 <= g && 0 <= h);
}
break;
}
}
} finally {
(Oa = !1), (Error.prepareStackTrace = c);
}
return (a = a ? a.displayName || a.name : "") ? Na(a) : "";
}
function Qa(a) {
switch (a.tag) {
case 5:
return Na(a.type);
case 16:
return Na("Lazy");
case 13:
return Na("Suspense");
case 19:
return Na("SuspenseList");
case 0:
case 2:
case 15:
return (a = Pa(a.type, !1)), a;
case 11:
return (a = Pa(a.type.render, !1)), a;
case 22:
return (a = Pa(a.type._render, !1)), a;
case 1:
return (a = Pa(a.type, !0)), a;
default:
return "";
}
}
function Ra(a) {
if (null == a) return null;
if ("function" === typeof a)
return a.displayName || a.name || null;
if ("string" === typeof a) return a;
switch (a) {
case ua:
return "Fragment";
case ta:
return "Portal";
case xa:
return "Profiler";
case wa:
return "StrictMode";
case Ba:
return "Suspense";
case Ca:
return "SuspenseList";
}
if ("object" === typeof a)
switch (a.$$typeof) {
case za:
return (a.displayName || "Context") + ".Consumer";
case ya:
return (
(a._context.displayName || "Context") +
".Provider"
);
case Aa:
var b = a.render;
b = b.displayName || b.name || "";
return (
a.displayName ||
("" !== b
? "ForwardRef(" + b + ")"
: "ForwardRef")
);
case Da:
return Ra(a.type);
case Fa:
return Ra(a._render);
case Ea:
b = a._payload;
a = a._init;
try {
return Ra(a(b));
} catch (c) {}
}
return null;
}
function Sa(a) {
switch (typeof a) {
case "boolean":
case "number":
case "object":
case "string":
case "undefined":
return a;
default:
return "";
}
}
function Ta(a) {
var b = a.type;
return (
(a = a.nodeName) &&
"input" === a.toLowerCase() &&
("checkbox" === b || "radio" === b)
);
}
function Ua(a) {
var b = Ta(a) ? "checked" : "value",
c = Object.getOwnPropertyDescriptor(
a.constructor.prototype,
b
),
d = "" + a[b];
if (
!a.hasOwnProperty(b) &&
"undefined" !== typeof c &&
"function" === typeof c.get &&
"function" === typeof c.set
) {
var e = c.get,
f = c.set;
Object.defineProperty(a, b, {
configurable: !0,
get: function () {
return e.call(this);
},
set: function (a) {
d = "" + a;
f.call(this, a);
},
});
Object.defineProperty(a, b, {
enumerable: c.enumerable,
});
return {
getValue: function () {
return d;
},
setValue: function (a) {
d = "" + a;
},
stopTracking: function () {
a._valueTracker = null;
delete a[b];
},
};
}
}
function Va(a) {
a._valueTracker || (a._valueTracker = Ua(a));
}
function Wa(a) {
if (!a) return !1;
var b = a._valueTracker;
if (!b) return !0;
var c = b.getValue();
var d = "";
a && (d = Ta(a) ? (a.checked ? "true" : "false") : a.value);
a = d;
return a !== c ? (b.setValue(a), !0) : !1;
}
function Xa(a) {
a = a || ("undefined" !== typeof document ? document : void 0);
if ("undefined" === typeof a) return null;
try {
return a.activeElement || a.body;
} catch (b) {
return a.body;
}
}
function Ya(a, b) {
var c = b.checked;
return m({}, b, {
defaultChecked: void 0,
defaultValue: void 0,
value: void 0,
checked: null != c ? c : a._wrapperState.initialChecked,
});
}
function Za(a, b) {
var c = null == b.defaultValue ? "" : b.defaultValue,
d = null != b.checked ? b.checked : b.defaultChecked;
c = Sa(null != b.value ? b.value : c);
a._wrapperState = {
initialChecked: d,
initialValue: c,
controlled:
"checkbox" === b.type || "radio" === b.type
? null != b.checked
: null != b.value,
};
}
function $a(a, b) {
b = b.checked;
null != b && qa(a, "checked", b, !1);
}
function ab(a, b) {
$a(a, b);
var c = Sa(b.value),
d = b.type;
if (null != c)
if ("number" === d) {
if ((0 === c && "" === a.value) || a.value != c)
a.value = "" + c;
} else a.value !== "" + c && (a.value = "" + c);
else if ("submit" === d || "reset" === d) {
a.removeAttribute("value");
return;
}
b.hasOwnProperty("value")
? bb(a, b.type, c)
: b.hasOwnProperty("defaultValue") &&
bb(a, b.type, Sa(b.defaultValue));
null == b.checked &&
null != b.defaultChecked &&
(a.defaultChecked = !!b.defaultChecked);
}
function cb(a, b, c) {
if (
b.hasOwnProperty("value") ||
b.hasOwnProperty("defaultValue")
) {
var d = b.type;
if (
!(
("submit" !== d && "reset" !== d) ||
(void 0 !== b.value && null !== b.value)
)
)
return;
b = "" + a._wrapperState.initialValue;
c || b === a.value || (a.value = b);
a.defaultValue = b;
}
c = a.name;
"" !== c && (a.name = "");
a.defaultChecked = !!a._wrapperState.initialChecked;
"" !== c && (a.name = c);
}
function bb(a, b, c) {
if ("number" !== b || Xa(a.ownerDocument) !== a)
null == c
? (a.defaultValue = "" + a._wrapperState.initialValue)
: a.defaultValue !== "" + c &&
(a.defaultValue = "" + c);
}
function db(a) {
var b = "";
aa.Children.forEach(a, function (a) {
null != a && (b += a);
});
return b;
}
function eb(a, b) {
a = m(
{
children: void 0,
},
b
);
if ((b = db(b.children))) a.children = b;
return a;
}
function fb(a, b, c, d) {
a = a.options;
if (b) {
b = {};
for (var e = 0; e < c.length; e++) b["$" + c[e]] = !0;
for (c = 0; c < a.length; c++)
(e = b.hasOwnProperty("$" + a[c].value)),
a[c].selected !== e && (a[c].selected = e),
e && d && (a[c].defaultSelected = !0);
} else {
c = "" + Sa(c);
b = null;
for (e = 0; e < a.length; e++) {
if (a[e].value === c) {
a[e].selected = !0;
d && (a[e].defaultSelected = !0);
return;
}
null !== b || a[e].disabled || (b = a[e]);
}
null !== b && (b.selected = !0);
}
}
function gb(a, b) {
if (null != b.dangerouslySetInnerHTML) throw Error(y(91));
return m({}, b, {
value: void 0,
defaultValue: void 0,
children: "" + a._wrapperState.initialValue,
});
}
function hb(a, b) {
var c = b.value;
if (null == c) {
c = b.children;
b = b.defaultValue;
if (null != c) {
if (null != b) throw Error(y(92));
if (Array.isArray(c)) {
if (!(1 >= c.length)) throw Error(y(93));
c = c[0];
}
b = c;
}
null == b && (b = "");
c = b;
}
a._wrapperState = {
initialValue: Sa(c),
};
}
function ib(a, b) {
var c = Sa(b.value),
d = Sa(b.defaultValue);
null != c &&
((c = "" + c),
c !== a.value && (a.value = c),
null == b.defaultValue &&
a.defaultValue !== c &&
(a.defaultValue = c));
null != d && (a.defaultValue = "" + d);
}
function jb(a) {
var b = a.textContent;
b === a._wrapperState.initialValue &&
"" !== b &&
null !== b &&
(a.value = b);
}
var kb = {
html: "http://www.w3.org/1999/xhtml",
mathml: "http://www.w3.org/1998/Math/MathML",
svg: "http://www.w3.org/2000/svg",
};
function lb(a) {
switch (a) {
case "svg":
return "http://www.w3.org/2000/svg";
case "math":
return "http://www.w3.org/1998/Math/MathML";
default:
return "http://www.w3.org/1999/xhtml";
}
}
function mb(a, b) {
return null == a || "http://www.w3.org/1999/xhtml" === a
? lb(b)
: "http://www.w3.org/2000/svg" === a &&
"foreignObject" === b
? "http://www.w3.org/1999/xhtml"
: a;
}
var nb,
ob = (function (a) {
return "undefined" !== typeof MSApp &&
MSApp.execUnsafeLocalFunction
? function (b, c, d, e) {
MSApp.execUnsafeLocalFunction(function () {
return a(b, c, d, e);
});
}
: a;
})(function (a, b) {
if (a.namespaceURI !== kb.svg || "innerHTML" in a)
a.innerHTML = b;
else {
nb = nb || document.createElement("div");
nb.innerHTML =
"<svg>" + b.valueOf().toString() + "</svg>";
for (b = nb.firstChild; a.firstChild; )
a.removeChild(a.firstChild);
for (; b.firstChild; ) a.appendChild(b.firstChild);
}
});
function pb(a, b) {
if (b) {
var c = a.firstChild;
if (c && c === a.lastChild && 3 === c.nodeType) {
c.nodeValue = b;
return;
}
}
a.textContent = b;
}
var qb = {
animationIterationCount: !0,
borderImageOutset: !0,
borderImageSlice: !0,
borderImageWidth: !0,
boxFlex: !0,
boxFlexGroup: !0,
boxOrdinalGroup: !0,
columnCount: !0,
columns: !0,
flex: !0,
flexGrow: !0,
flexPositive: !0,
flexShrink: !0,
flexNegative: !0,
flexOrder: !0,
gridArea: !0,
gridRow: !0,
gridRowEnd: !0,
gridRowSpan: !0,
gridRowStart: !0,
gridColumn: !0,
gridColumnEnd: !0,
gridColumnSpan: !0,
gridColumnStart: !0,
fontWeight: !0,
lineClamp: !0,
lineHeight: !0,
opacity: !0,
order: !0,
orphans: !0,
tabSize: !0,
widows: !0,
zIndex: !0,
zoom: !0,
fillOpacity: !0,
floodOpacity: !0,
stopOpacity: !0,
strokeDasharray: !0,
strokeDashoffset: !0,
strokeMiterlimit: !0,
strokeOpacity: !0,
strokeWidth: !0,
},
rb = ["Webkit", "ms", "Moz", "O"];
Object.keys(qb).forEach(function (a) {
rb.forEach(function (b) {
b = b + a.charAt(0).toUpperCase() + a.substring(1);
qb[b] = qb[a];
});
});
function sb(a, b, c) {
return null == b || "boolean" === typeof b || "" === b
? ""
: c ||
"number" !== typeof b ||
0 === b ||
(qb.hasOwnProperty(a) && qb[a])
? ("" + b).trim()
: b + "px";
}
function tb(a, b) {
a = a.style;
for (var c in b)
if (b.hasOwnProperty(c)) {
var d = 0 === c.indexOf("--"),
e = sb(c, b[c], d);
"float" === c && (c = "cssFloat");
d ? a.setProperty(c, e) : (a[c] = e);
}
}
var ub = m(
{
menuitem: !0,
},
{
area: !0,
base: !0,
br: !0,
col: !0,
embed: !0,
hr: !0,
img: !0,
input: !0,
keygen: !0,
link: !0,
meta: !0,
param: !0,
source: !0,
track: !0,
wbr: !0,
}
);
function vb(a, b) {
if (b) {
if (
ub[a] &&
(null != b.children ||
null != b.dangerouslySetInnerHTML)
)
throw Error(y(137, a));
if (null != b.dangerouslySetInnerHTML) {
if (null != b.children) throw Error(y(60));
if (
!(
"object" === typeof b.dangerouslySetInnerHTML &&
"__html" in b.dangerouslySetInnerHTML
)
)
throw Error(y(61));
}
if (null != b.style && "object" !== typeof b.style)
throw Error(y(62));
}
}
function wb(a, b) {
if (-1 === a.indexOf("-")) return "string" === typeof b.is;
switch (a) {
case "annotation-xml":
case "color-profile":
case "font-face":
case "font-face-src":
case "font-face-uri":
case "font-face-format":
case "font-face-name":
case "missing-glyph":
return !1;
default:
return !0;
}
}
function xb(a) {
a = a.target || a.srcElement || window;
a.correspondingUseElement && (a = a.correspondingUseElement);
return 3 === a.nodeType ? a.parentNode : a;
}
var yb = null,
zb = null,
Ab = null;
function Bb(a) {
if ((a = Cb(a))) {
if ("function" !== typeof yb) throw Error(y(280));
var b = a.stateNode;
b && ((b = Db(b)), yb(a.stateNode, a.type, b));
}
}
function Eb(a) {
zb ? (Ab ? Ab.push(a) : (Ab = [a])) : (zb = a);
}
function Fb() {
if (zb) {
var a = zb,
b = Ab;
Ab = zb = null;
Bb(a);
if (b) for (a = 0; a < b.length; a++) Bb(b[a]);
}
}
function Gb(a, b) {
return a(b);
}
function Hb(a, b, c, d, e) {
return a(b, c, d, e);
}
function Ib() {}
var Jb = Gb,
Kb = !1,
Lb = !1;
function Mb() {
if (null !== zb || null !== Ab) Ib(), Fb();
}
function Nb(a, b, c) {
if (Lb) return a(b, c);
Lb = !0;
try {
return Jb(a, b, c);
} finally {
(Lb = !1), Mb();
}
}
function Ob(a, b) {
var c = a.stateNode;
if (null === c) return null;
var d = Db(c);
if (null === d) return null;
c = d[b];
a: switch (b) {
case "onClick":
case "onClickCapture":
case "onDoubleClick":
case "onDoubleClickCapture":
case "onMouseDown":
case "onMouseDownCapture":
case "onMouseMove":
case "onMouseMoveCapture":
case "onMouseUp":
case "onMouseUpCapture":
case "onMouseEnter":
(d = !d.disabled) ||
((a = a.type),
(d = !(
"button" === a ||
"input" === a ||
"select" === a ||
"textarea" === a
)));
a = !d;
break a;
default:
a = !1;
}
if (a) return null;
if (c && "function" !== typeof c)
throw Error(y(231, b, typeof c));
return c;
}
var Pb = !1;
if (fa)
try {
var Qb = {};
Object.defineProperty(Qb, "passive", {
get: function () {
Pb = !0;
},
});
window.addEventListener("test", Qb, Qb);
window.removeEventListener("test", Qb, Qb);
} catch (a) {
Pb = !1;
}
function Rb(a, b, c, d, e, f, g, h, k) {
var l = Array.prototype.slice.call(arguments, 3);
try {
b.apply(c, l);
} catch (n) {
this.onError(n);
}
}
var Sb = !1,
Tb = null,
Ub = !1,
Vb = null,
Wb = {
onError: function (a) {
Sb = !0;
Tb = a;
},
};
function Xb(a, b, c, d, e, f, g, h, k) {
Sb = !1;
Tb = null;
Rb.apply(Wb, arguments);
}
function Yb(a, b, c, d, e, f, g, h, k) {
Xb.apply(this, arguments);
if (Sb) {
if (Sb) {
var l = Tb;
Sb = !1;
Tb = null;
} else throw Error(y(198));
Ub || ((Ub = !0), (Vb = l));
}
}
function Zb(a) {
var b = a,
c = a;
if (a.alternate) for (; b.return; ) b = b.return;
else {
a = b;
do
(b = a),
0 !== (b.flags & 1026) && (c = b.return),
(a = b.return);
while (a);
}
return 3 === b.tag ? c : null;
}
function $b(a) {
if (13 === a.tag) {
var b = a.memoizedState;
null === b &&
((a = a.alternate),
null !== a && (b = a.memoizedState));
if (null !== b) return b.dehydrated;
}
return null;
}
function ac(a) {
if (Zb(a) !== a) throw Error(y(188));
}
function bc(a) {
var b = a.alternate;
if (!b) {
b = Zb(a);
if (null === b) throw Error(y(188));
return b !== a ? null : a;
}
for (var c = a, d = b; ; ) {
var e = c.return;
if (null === e) break;
var f = e.alternate;
if (null === f) {
d = e.return;
if (null !== d) {
c = d;
continue;
}
break;
}
if (e.child === f.child) {
for (f = e.child; f; ) {
if (f === c) return ac(e), a;
if (f === d) return ac(e), b;
f = f.sibling;
}
throw Error(y(188));
}
if (c.return !== d.return) (c = e), (d = f);
else {
for (var g = !1, h = e.child; h; ) {
if (h === c) {
g = !0;
c = e;
d = f;
break;
}
if (h === d) {
g = !0;
d = e;
c = f;
break;
}
h = h.sibling;
}
if (!g) {
for (h = f.child; h; ) {
if (h === c) {
g = !0;
c = f;
d = e;
break;
}
if (h === d) {
g = !0;
d = f;
c = e;
break;
}
h = h.sibling;
}
if (!g) throw Error(y(189));
}
}
if (c.alternate !== d) throw Error(y(190));
}
if (3 !== c.tag) throw Error(y(188));
return c.stateNode.current === c ? a : b;
}
function cc(a) {
a = bc(a);
if (!a) return null;
for (var b = a; ; ) {
if (5 === b.tag || 6 === b.tag) return b;
if (b.child) (b.child.return = b), (b = b.child);
else {
if (b === a) break;
for (; !b.sibling; ) {
if (!b.return || b.return === a) return null;
b = b.return;
}
b.sibling.return = b.return;
b = b.sibling;
}
}
return null;
}
function dc(a, b) {
for (var c = a.alternate; null !== b; ) {
if (b === a || b === c) return !0;
b = b.return;
}
return !1;
}
var ec,
fc,
gc,
hc,
ic = !1,
jc = [],
kc = null,
lc = null,
mc = null,
nc = new Map(),
oc = new Map(),
pc = [],
qc =
"mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(
" "
);
function rc(a, b, c, d, e) {
return {
blockedOn: a,
domEventName: b,
eventSystemFlags: c | 16,
nativeEvent: e,
targetContainers: [d],
};
}
function sc(a, b) {
switch (a) {
case "focusin":
case "focusout":
kc = null;
break;
case "dragenter":
case "dragleave":
lc = null;
break;
case "mouseover":
case "mouseout":
mc = null;
break;
case "pointerover":
case "pointerout":
nc.delete(b.pointerId);
break;
case "gotpointercapture":
case "lostpointercapture":
oc.delete(b.pointerId);
}
}
function tc(a, b, c, d, e, f) {
if (null === a || a.nativeEvent !== f)
return (
(a = rc(b, c, d, e, f)),
null !== b && ((b = Cb(b)), null !== b && fc(b)),
a
);
a.eventSystemFlags |= d;
b = a.targetContainers;
null !== e && -1 === b.indexOf(e) && b.push(e);
return a;
}
function uc(a, b, c, d, e) {
switch (b) {
case "focusin":
return (kc = tc(kc, a, b, c, d, e)), !0;
case "dragenter":
return (lc = tc(lc, a, b, c, d, e)), !0;
case "mouseover":
return (mc = tc(mc, a, b, c, d, e)), !0;
case "pointerover":
var f = e.pointerId;
nc.set(f, tc(nc.get(f) || null, a, b, c, d, e));
return !0;
case "gotpointercapture":
return (
(f = e.pointerId),
oc.set(f, tc(oc.get(f) || null, a, b, c, d, e)),
!0
);
}
return !1;
}
function vc(a) {
var b = wc(a.target);
if (null !== b) {
var c = Zb(b);
if (null !== c)
if (((b = c.tag), 13 === b)) {
if (((b = $b(c)), null !== b)) {
a.blockedOn = b;
hc(a.lanePriority, function () {
r.unstable_runWithPriority(
a.priority,
function () {
gc(c);
}
);
});
return;
}
} else if (3 === b && c.stateNode.hydrate) {
a.blockedOn =
3 === c.tag ? c.stateNode.containerInfo : null;
return;
}
}
a.blockedOn = null;
}
function xc(a) {
if (null !== a.blockedOn) return !1;
for (var b = a.targetContainers; 0 < b.length; ) {
var c = yc(
a.domEventName,
a.eventSystemFlags,
b[0],
a.nativeEvent
);
if (null !== c)
return (
(b = Cb(c)),
null !== b && fc(b),
(a.blockedOn = c),
!1
);
b.shift();
}
return !0;
}
function zc(a, b, c) {
xc(a) && c.delete(b);
}
function Ac() {
for (ic = !1; 0 < jc.length; ) {
var a = jc[0];
if (null !== a.blockedOn) {
a = Cb(a.blockedOn);
null !== a && ec(a);
break;
}
for (var b = a.targetContainers; 0 < b.length; ) {
var c = yc(
a.domEventName,
a.eventSystemFlags,
b[0],
a.nativeEvent
);
if (null !== c) {
a.blockedOn = c;
break;
}
b.shift();
}
null === a.blockedOn && jc.shift();
}
null !== kc && xc(kc) && (kc = null);
null !== lc && xc(lc) && (lc = null);
null !== mc && xc(mc) && (mc = null);
nc.forEach(zc);
oc.forEach(zc);
}
function Bc(a, b) {
a.blockedOn === b &&
((a.blockedOn = null),
ic ||
((ic = !0),
r.unstable_scheduleCallback(
r.unstable_NormalPriority,
Ac
)));
}
function Cc(a) {
function b(b) {
return Bc(b, a);
}
if (0 < jc.length) {
Bc(jc[0], a);
for (var c = 1; c < jc.length; c++) {
var d = jc[c];
d.blockedOn === a && (d.blockedOn = null);
}
}
null !== kc && Bc(kc, a);
null !== lc && Bc(lc, a);
null !== mc && Bc(mc, a);
nc.forEach(b);
oc.forEach(b);
for (c = 0; c < pc.length; c++)
(d = pc[c]), d.blockedOn === a && (d.blockedOn = null);
for (; 0 < pc.length && ((c = pc[0]), null === c.blockedOn); )
vc(c), null === c.blockedOn && pc.shift();
}
function Dc(a, b) {
var c = {};
c[a.toLowerCase()] = b.toLowerCase();
c["Webkit" + a] = "webkit" + b;
c["Moz" + a] = "moz" + b;
return c;
}
var Ec = {
animationend: Dc("Animation", "AnimationEnd"),
animationiteration: Dc("Animation", "AnimationIteration"),
animationstart: Dc("Animation", "AnimationStart"),
transitionend: Dc("Transition", "TransitionEnd"),
},
Fc = {},
Gc = {};
fa &&
((Gc = document.createElement("div").style),
"AnimationEvent" in window ||
(delete Ec.animationend.animation,
delete Ec.animationiteration.animation,
delete Ec.animationstart.animation),
"TransitionEvent" in window ||
delete Ec.transitionend.transition);
function Hc(a) {
if (Fc[a]) return Fc[a];
if (!Ec[a]) return a;
var b = Ec[a],
c;
for (c in b)
if (b.hasOwnProperty(c) && c in Gc) return (Fc[a] = b[c]);
return a;
}
var Ic = Hc("animationend"),
Jc = Hc("animationiteration"),
Kc = Hc("animationstart"),
Lc = Hc("transitionend"),
Mc = new Map(),
Nc = new Map(),
Oc = [
"abort",
"abort",
Ic,
"animationEnd",
Jc,
"animationIteration",
Kc,
"animationStart",
"canplay",
"canPlay",
"canplaythrough",
"canPlayThrough",
"durationchange",
"durationChange",
"emptied",
"emptied",
"encrypted",
"encrypted",
"ended",
"ended",
"error",
"error",
"gotpointercapture",
"gotPointerCapture",
"load",
"load",
"loadeddata",
"loadedData",
"loadedmetadata",
"loadedMetadata",
"loadstart",
"loadStart",
"lostpointercapture",
"lostPointerCapture",
"playing",
"playing",
"progress",
"progress",
"seeking",
"seeking",
"stalled",
"stalled",
"suspend",
"suspend",
"timeupdate",
"timeUpdate",
Lc,
"transitionEnd",
"waiting",
"waiting",
];
function Pc(a, b) {
for (var c = 0; c < a.length; c += 2) {
var d = a[c],
e = a[c + 1];
e = "on" + (e[0].toUpperCase() + e.slice(1));
Nc.set(d, b);
Mc.set(d, e);
da(e, [d]);
}
}
var Qc = r.unstable_now;
Qc();
var F = 8;
function Rc(a) {
if (0 !== (1 & a)) return (F = 15), 1;
if (0 !== (2 & a)) return (F = 14), 2;
if (0 !== (4 & a)) return (F = 13), 4;
var b = 24 & a;
if (0 !== b) return (F = 12), b;
if (0 !== (a & 32)) return (F = 11), 32;
b = 192 & a;
if (0 !== b) return (F = 10), b;
if (0 !== (a & 256)) return (F = 9), 256;
b = 3584 & a;
if (0 !== b) return (F = 8), b;
if (0 !== (a & 4096)) return (F = 7), 4096;
b = 4186112 & a;
if (0 !== b) return (F = 6), b;
b = 62914560 & a;
if (0 !== b) return (F = 5), b;
if (a & 67108864) return (F = 4), 67108864;
if (0 !== (a & 134217728)) return (F = 3), 134217728;
b = 805306368 & a;
if (0 !== b) return (F = 2), b;
if (0 !== (1073741824 & a)) return (F = 1), 1073741824;
F = 8;
return a;
}
function Sc(a) {
switch (a) {
case 99:
return 15;
case 98:
return 10;
case 97:
case 96:
return 8;
case 95:
return 2;
default:
return 0;
}
}
function Tc(a) {
switch (a) {
case 15:
case 14:
return 99;
case 13:
case 12:
case 11:
case 10:
return 98;
case 9:
case 8:
case 7:
case 6:
case 4:
case 5:
return 97;
case 3:
case 2:
case 1:
return 95;
case 0:
return 90;
default:
throw Error(y(358, a));
}
}
function Uc(a, b) {
var c = a.pendingLanes;
if (0 === c) return (F = 0);
var d = 0,
e = 0,
f = a.expiredLanes,
g = a.suspendedLanes,
h = a.pingedLanes;
if (0 !== f) (d = f), (e = F = 15);
else if (((f = c & 134217727), 0 !== f)) {
var k = f & ~g;
0 !== k
? ((d = Rc(k)), (e = F))
: ((h &= f), 0 !== h && ((d = Rc(h)), (e = F)));
} else
(f = c & ~g),
0 !== f
? ((d = Rc(f)), (e = F))
: 0 !== h && ((d = Rc(h)), (e = F));
if (0 === d) return 0;
d = 31 - Vc(d);
d = c & (((0 > d ? 0 : 1 << d) << 1) - 1);
if (0 !== b && b !== d && 0 === (b & g)) {
Rc(b);
if (e <= F) return b;
F = e;
}
b = a.entangledLanes;
if (0 !== b)
for (a = a.entanglements, b &= d; 0 < b; )
(c = 31 - Vc(b)), (e = 1 << c), (d |= a[c]), (b &= ~e);
return d;
}
function Wc(a) {
a = a.pendingLanes & -1073741825;
return 0 !== a ? a : a & 1073741824 ? 1073741824 : 0;
}
function Xc(a, b) {
switch (a) {
case 15:
return 1;
case 14:
return 2;
case 12:
return (a = Yc(24 & ~b)), 0 === a ? Xc(10, b) : a;
case 10:
return (a = Yc(192 & ~b)), 0 === a ? Xc(8, b) : a;
case 8:
return (
(a = Yc(3584 & ~b)),
0 === a &&
((a = Yc(4186112 & ~b)), 0 === a && (a = 512)),
a
);
case 2:
return (
(b = Yc(805306368 & ~b)),
0 === b && (b = 268435456),
b
);
}
throw Error(y(358, a));
}
function Yc(a) {
return a & -a;
}
function Zc(a) {
for (var b = [], c = 0; 31 > c; c++) b.push(a);
return b;
}
function $c(a, b, c) {
a.pendingLanes |= b;
var d = b - 1;
a.suspendedLanes &= d;
a.pingedLanes &= d;
a = a.eventTimes;
b = 31 - Vc(b);
a[b] = c;
}
var Vc = Math.clz32 ? Math.clz32 : ad,
bd = Math.log,
cd = Math.LN2;
function ad(a) {
return 0 === a ? 32 : (31 - ((bd(a) / cd) | 0)) | 0;
}
var dd = r.unstable_UserBlockingPriority,
ed = r.unstable_runWithPriority,
fd = !0;
function gd(a, b, c, d) {
Kb || Ib();
var e = hd,
f = Kb;
Kb = !0;
try {
Hb(e, a, b, c, d);
} finally {
(Kb = f) || Mb();
}
}
function id(a, b, c, d) {
ed(dd, hd.bind(null, a, b, c, d));
}
function hd(a, b, c, d) {
if (fd) {
var e;
if (
(e = 0 === (b & 4)) &&
0 < jc.length &&
-1 < qc.indexOf(a)
)
(a = rc(null, a, b, c, d)), jc.push(a);
else {
var f = yc(a, b, c, d);
if (null === f) e && sc(a, d);
else {
if (e) {
if (-1 < qc.indexOf(a)) {
a = rc(f, a, b, c, d);
jc.push(a);
return;
}
if (uc(f, a, b, c, d)) return;
sc(a, d);
}
jd(a, b, d, null, c);
}
}
}
}
function yc(a, b, c, d) {
var e = xb(d);
e = wc(e);
if (null !== e) {
var f = Zb(e);
if (null === f) e = null;
else {
var g = f.tag;
if (13 === g) {
e = $b(f);
if (null !== e) return e;
e = null;
} else if (3 === g) {
if (f.stateNode.hydrate)
return 3 === f.tag
? f.stateNode.containerInfo
: null;
e = null;
} else f !== e && (e = null);
}
}
jd(a, b, d, e, c);
return null;
}
var kd = null,
ld = null,
md = null;
function nd() {
if (md) return md;
var a,
b = ld,
c = b.length,
d,
e = "value" in kd ? kd.value : kd.textContent,
f = e.length;
for (a = 0; a < c && b[a] === e[a]; a++);
var g = c - a;
for (d = 1; d <= g && b[c - d] === e[f - d]; d++);
return (md = e.slice(a, 1 < d ? 1 - d : void 0));
}
function od(a) {
var b = a.keyCode;
"charCode" in a
? ((a = a.charCode), 0 === a && 13 === b && (a = 13))
: (a = b);
10 === a && (a = 13);
return 32 <= a || 13 === a ? a : 0;
}
function pd() {
return !0;
}
function qd() {
return !1;
}
function rd(a) {
function b(b, d, e, f, g) {
this._reactName = b;
this._targetInst = e;
this.type = d;
this.nativeEvent = f;
this.target = g;
this.currentTarget = null;
for (var c in a)
a.hasOwnProperty(c) &&
((b = a[c]), (this[c] = b ? b(f) : f[c]));
this.isDefaultPrevented = (
null != f.defaultPrevented
? f.defaultPrevented
: !1 === f.returnValue
)
? pd
: qd;
this.isPropagationStopped = qd;
return this;
}
m(b.prototype, {
preventDefault: function () {
this.defaultPrevented = !0;
var a = this.nativeEvent;
a &&
(a.preventDefault
? a.preventDefault()
: "unknown" !== typeof a.returnValue &&
(a.returnValue = !1),
(this.isDefaultPrevented = pd));
},
stopPropagation: function () {
var a = this.nativeEvent;
a &&
(a.stopPropagation
? a.stopPropagation()
: "unknown" !== typeof a.cancelBubble &&
(a.cancelBubble = !0),
(this.isPropagationStopped = pd));
},
persist: function () {},
isPersistent: pd,
});
return b;
}
var sd = {
eventPhase: 0,
bubbles: 0,
cancelable: 0,
timeStamp: function (a) {
return a.timeStamp || Date.now();
},
defaultPrevented: 0,
isTrusted: 0,
},
td = rd(sd),
ud = m({}, sd, {
view: 0,
detail: 0,
}),
vd = rd(ud),
wd,
xd,
yd,
Ad = m({}, ud, {
screenX: 0,
screenY: 0,
clientX: 0,
clientY: 0,
pageX: 0,
pageY: 0,
ctrlKey: 0,
shiftKey: 0,
altKey: 0,
metaKey: 0,
getModifierState: zd,
button: 0,
buttons: 0,
relatedTarget: function (a) {
return void 0 === a.relatedTarget
? a.fromElement === a.srcElement
? a.toElement
: a.fromElement
: a.relatedTarget;
},
movementX: function (a) {
if ("movementX" in a) return a.movementX;
a !== yd &&
(yd && "mousemove" === a.type
? ((wd = a.screenX - yd.screenX),
(xd = a.screenY - yd.screenY))
: (xd = wd = 0),
(yd = a));
return wd;
},
movementY: function (a) {
return "movementY" in a ? a.movementY : xd;
},
}),
Bd = rd(Ad),
Cd = m({}, Ad, {
dataTransfer: 0,
}),
Dd = rd(Cd),
Ed = m({}, ud, {
relatedTarget: 0,
}),
Fd = rd(Ed),
Gd = m({}, sd, {
animationName: 0,
elapsedTime: 0,
pseudoElement: 0,
}),
Hd = rd(Gd),
Id = m({}, sd, {
clipboardData: function (a) {
return "clipboardData" in a
? a.clipboardData
: window.clipboardData;
},
}),
Jd = rd(Id),
Kd = m({}, sd, {
data: 0,
}),
Ld = rd(Kd),
Md = {
Esc: "Escape",
Spacebar: " ",
Left: "ArrowLeft",
Up: "ArrowUp",
Right: "ArrowRight",
Down: "ArrowDown",
Del: "Delete",
Win: "OS",
Menu: "ContextMenu",
Apps: "ContextMenu",
Scroll: "ScrollLock",
MozPrintableKey: "Unidentified",
},
Nd = {
8: "Backspace",
9: "Tab",
12: "Clear",
13: "Enter",
16: "Shift",
17: "Control",
18: "Alt",
19: "Pause",
20: "CapsLock",
27: "Escape",
32: " ",
33: "PageUp",
34: "PageDown",
35: "End",
36: "Home",
37: "ArrowLeft",
38: "ArrowUp",
39: "ArrowRight",
40: "ArrowDown",
45: "Insert",
46: "Delete",
112: "F1",
113: "F2",
114: "F3",
115: "F4",
116: "F5",
117: "F6",
118: "F7",
119: "F8",
120: "F9",
121: "F10",
122: "F11",
123: "F12",
144: "NumLock",
145: "ScrollLock",
224: "Meta",
},
Od = {
Alt: "altKey",
Control: "ctrlKey",
Meta: "metaKey",
Shift: "shiftKey",
};
function Pd(a) {
var b = this.nativeEvent;
return b.getModifierState
? b.getModifierState(a)
: (a = Od[a])
? !!b[a]
: !1;
}
function zd() {
return Pd;
}
var Qd = m({}, ud, {
key: function (a) {
if (a.key) {
var b = Md[a.key] || a.key;
if ("Unidentified" !== b) return b;
}
return "keypress" === a.type
? ((a = od(a)),
13 === a ? "Enter" : String.fromCharCode(a))
: "keydown" === a.type || "keyup" === a.type
? Nd[a.keyCode] || "Unidentified"
: "";
},
code: 0,
location: 0,
ctrlKey: 0,
shiftKey: 0,
altKey: 0,
metaKey: 0,
repeat: 0,
locale: 0,
getModifierState: zd,
charCode: function (a) {
return "keypress" === a.type ? od(a) : 0;
},
keyCode: function (a) {
return "keydown" === a.type || "keyup" === a.type
? a.keyCode
: 0;
},
which: function (a) {
return "keypress" === a.type
? od(a)
: "keydown" === a.type || "keyup" === a.type
? a.keyCode
: 0;
},
}),
Rd = rd(Qd),
Sd = m({}, Ad, {
pointerId: 0,
width: 0,
height: 0,
pressure: 0,
tangentialPressure: 0,
tiltX: 0,
tiltY: 0,
twist: 0,
pointerType: 0,
isPrimary: 0,
}),
Td = rd(Sd),
Ud = m({}, ud, {
touches: 0,
targetTouches: 0,
changedTouches: 0,
altKey: 0,
metaKey: 0,
ctrlKey: 0,
shiftKey: 0,
getModifierState: zd,
}),
Vd = rd(Ud),
Wd = m({}, sd, {
propertyName: 0,
elapsedTime: 0,
pseudoElement: 0,
}),
Xd = rd(Wd),
Yd = m({}, Ad, {
deltaX: function (a) {
return "deltaX" in a
? a.deltaX
: "wheelDeltaX" in a
? -a.wheelDeltaX
: 0;
},
deltaY: function (a) {
return "deltaY" in a
? a.deltaY
: "wheelDeltaY" in a
? -a.wheelDeltaY
: "wheelDelta" in a
? -a.wheelDelta
: 0;
},
deltaZ: 0,
deltaMode: 0,
}),
Zd = rd(Yd),
$d = [9, 13, 27, 32],
ae = fa && "CompositionEvent" in window,
be = null;
fa && "documentMode" in document && (be = document.documentMode);
var ce = fa && "TextEvent" in window && !be,
de = fa && (!ae || (be && 8 < be && 11 >= be)),
ee = String.fromCharCode(32),
fe = !1;
function ge(a, b) {
switch (a) {
case "keyup":
return -1 !== $d.indexOf(b.keyCode);
case "keydown":
return 229 !== b.keyCode;
case "keypress":
case "mousedown":
case "focusout":
return !0;
default:
return !1;
}
}
function he(a) {
a = a.detail;
return "object" === typeof a && "data" in a ? a.data : null;
}
var ie = !1;
function je(a, b) {
switch (a) {
case "compositionend":
return he(b);
case "keypress":
if (32 !== b.which) return null;
fe = !0;
return ee;
case "textInput":
return (a = b.data), a === ee && fe ? null : a;
default:
return null;
}
}
function ke(a, b) {
if (ie)
return "compositionend" === a || (!ae && ge(a, b))
? ((a = nd()), (md = ld = kd = null), (ie = !1), a)
: null;
switch (a) {
case "paste":
return null;
case "keypress":
if (
!(b.ctrlKey || b.altKey || b.metaKey) ||
(b.ctrlKey && b.altKey)
) {
if (b.char && 1 < b.char.length) return b.char;
if (b.which) return String.fromCharCode(b.which);
}
return null;
case "compositionend":
return de && "ko" !== b.locale ? null : b.data;
default:
return null;
}
}
var le = {
color: !0,
date: !0,
datetime: !0,
"datetime-local": !0,
email: !0,
month: !0,
number: !0,
password: !0,
range: !0,
search: !0,
tel: !0,
text: !0,
time: !0,
url: !0,
week: !0,
};
function me(a) {
var b = a && a.nodeName && a.nodeName.toLowerCase();
return "input" === b
? !!le[a.type]
: "textarea" === b
? !0
: !1;
}
function ne(a, b, c, d) {
Eb(d);
b = oe(b, "onChange");
0 < b.length &&
((c = new td("onChange", "change", null, c, d)),
a.push({
event: c,
listeners: b,
}));
}
var pe = null,
qe = null;
function re(a) {
se(a, 0);
}
function te(a) {
var b = ue(a);
if (Wa(b)) return a;
}
function ve(a, b) {
if ("change" === a) return b;
}
var we = !1;
if (fa) {
var xe;
if (fa) {
var ye = "oninput" in document;
if (!ye) {
var ze = document.createElement("div");
ze.setAttribute("oninput", "return;");
ye = "function" === typeof ze.oninput;
}
xe = ye;
} else xe = !1;
we =
xe && (!document.documentMode || 9 < document.documentMode);
}
function Ae() {
pe &&
(pe.detachEvent("onpropertychange", Be), (qe = pe = null));
}
function Be(a) {
if ("value" === a.propertyName && te(qe)) {
var b = [];
ne(b, qe, a, xb(a));
a = re;
if (Kb) a(b);
else {
Kb = !0;
try {
Gb(a, b);
} finally {
(Kb = !1), Mb();
}
}
}
}
function Ce(a, b, c) {
"focusin" === a
? (Ae(),
(pe = b),
(qe = c),
pe.attachEvent("onpropertychange", Be))
: "focusout" === a && Ae();
}
function De(a) {
if ("selectionchange" === a || "keyup" === a || "keydown" === a)
return te(qe);
}
function Ee(a, b) {
if ("click" === a) return te(b);
}
function Fe(a, b) {
if ("input" === a || "change" === a) return te(b);
}
function Ge(a, b) {
return (
(a === b && (0 !== a || 1 / a === 1 / b)) ||
(a !== a && b !== b)
);
}
var He = "function" === typeof Object.is ? Object.is : Ge,
Ie = Object.prototype.hasOwnProperty;
function Je(a, b) {
if (He(a, b)) return !0;
if (
"object" !== typeof a ||
null === a ||
"object" !== typeof b ||
null === b
)
return !1;
var c = Object.keys(a),
d = Object.keys(b);
if (c.length !== d.length) return !1;
for (d = 0; d < c.length; d++)
if (!Ie.call(b, c[d]) || !He(a[c[d]], b[c[d]])) return !1;
return !0;
}
function Ke(a) {
for (; a && a.firstChild; ) a = a.firstChild;
return a;
}
function Le(a, b) {
var c = Ke(a);
a = 0;
for (var d; c; ) {
if (3 === c.nodeType) {
d = a + c.textContent.length;
if (a <= b && d >= b)
return {
node: c,
offset: b - a,
};
a = d;
}
a: {
for (; c; ) {
if (c.nextSibling) {
c = c.nextSibling;
break a;
}
c = c.parentNode;
}
c = void 0;
}
c = Ke(c);
}
}
function Me(a, b) {
return a && b
? a === b
? !0
: a && 3 === a.nodeType
? !1
: b && 3 === b.nodeType
? Me(a, b.parentNode)
: "contains" in a
? a.contains(b)
: a.compareDocumentPosition
? !!(a.compareDocumentPosition(b) & 16)
: !1
: !1;
}
function Ne() {
for (
var a = window, b = Xa();
b instanceof a.HTMLIFrameElement;
) {
try {
var c =
"string" === typeof b.contentWindow.location.href;
} catch (d) {
c = !1;
}
if (c) a = b.contentWindow;
else break;
b = Xa(a.document);
}
return b;
}
function Oe(a) {
var b = a && a.nodeName && a.nodeName.toLowerCase();
return (
b &&
(("input" === b &&
("text" === a.type ||
"search" === a.type ||
"tel" === a.type ||
"url" === a.type ||
"password" === a.type)) ||
"textarea" === b ||
"true" === a.contentEditable)
);
}
var Pe =
fa &&
"documentMode" in document &&
11 >= document.documentMode,
Qe = null,
Re = null,
Se = null,
Te = !1;
function Ue(a, b, c) {
var d =
c.window === c
? c.document
: 9 === c.nodeType
? c
: c.ownerDocument;
Te ||
null == Qe ||
Qe !== Xa(d) ||
((d = Qe),
"selectionStart" in d && Oe(d)
? (d = {
start: d.selectionStart,
end: d.selectionEnd,
})
: ((d = (
(d.ownerDocument &&
d.ownerDocument.defaultView) ||
window
).getSelection()),
(d = {
anchorNode: d.anchorNode,
anchorOffset: d.anchorOffset,
focusNode: d.focusNode,
focusOffset: d.focusOffset,
})),
(Se && Je(Se, d)) ||
((Se = d),
(d = oe(Re, "onSelect")),
0 < d.length &&
((b = new td("onSelect", "select", null, b, c)),
a.push({
event: b,
listeners: d,
}),
(b.target = Qe))));
}
Pc(
"cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(
" "
),
0
);
Pc(
"drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(
" "
),
1
);
Pc(Oc, 2);
for (
var Ve =
"change selectionchange textInput compositionstart compositionend compositionupdate".split(
" "
),
We = 0;
We < Ve.length;
We++
)
Nc.set(Ve[We], 0);
ea("onMouseEnter", ["mouseout", "mouseover"]);
ea("onMouseLeave", ["mouseout", "mouseover"]);
ea("onPointerEnter", ["pointerout", "pointerover"]);
ea("onPointerLeave", ["pointerout", "pointerover"]);
da(
"onChange",
"change click focusin focusout input keydown keyup selectionchange".split(
" "
)
);
da(
"onSelect",
"focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(
" "
)
);
da("onBeforeInput", [
"compositionend",
"keypress",
"textInput",
"paste",
]);
da(
"onCompositionEnd",
"compositionend focusout keydown keypress keyup mousedown".split(
" "
)
);
da(
"onCompositionStart",
"compositionstart focusout keydown keypress keyup mousedown".split(
" "
)
);
da(
"onCompositionUpdate",
"compositionupdate focusout keydown keypress keyup mousedown".split(
" "
)
);
var Xe =
"abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(
" "
),
Ye = new Set(
"cancel close invalid load scroll toggle"
.split(" ")
.concat(Xe)
);
function Ze(a, b, c) {
var d = a.type || "unknown-event";
a.currentTarget = c;
Yb(d, b, void 0, a);
a.currentTarget = null;
}
function se(a, b) {
b = 0 !== (b & 4);
for (var c = 0; c < a.length; c++) {
var d = a[c],
e = d.event;
d = d.listeners;
a: {
var f = void 0;
if (b)
for (var g = d.length - 1; 0 <= g; g--) {
var h = d[g],
k = h.instance,
l = h.currentTarget;
h = h.listener;
if (k !== f && e.isPropagationStopped())
break a;
Ze(e, h, l);
f = k;
}
else
for (g = 0; g < d.length; g++) {
h = d[g];
k = h.instance;
l = h.currentTarget;
h = h.listener;
if (k !== f && e.isPropagationStopped())
break a;
Ze(e, h, l);
f = k;
}
}
}
if (Ub) throw ((a = Vb), (Ub = !1), (Vb = null), a);
}
function G(a, b) {
var c = $e(b),
d = a + "__bubble";
c.has(d) || (af(b, a, 2, !1), c.add(d));
}
var bf = "_reactListening" + Math.random().toString(36).slice(2);
function cf(a) {
a[bf] ||
((a[bf] = !0),
ba.forEach(function (b) {
Ye.has(b) || df(b, !1, a, null);
df(b, !0, a, null);
}));
}
function df(a, b, c, d) {
var e =
4 < arguments.length && void 0 !== arguments[4]
? arguments[4]
: 0,
f = c;
"selectionchange" === a &&
9 !== c.nodeType &&
(f = c.ownerDocument);
if (null !== d && !b && Ye.has(a)) {
if ("scroll" !== a) return;
e |= 2;
f = d;
}
var g = $e(f),
h = a + "__" + (b ? "capture" : "bubble");
g.has(h) || (b && (e |= 4), af(f, a, e, b), g.add(h));
}
function af(a, b, c, d) {
var e = Nc.get(b);
switch (void 0 === e ? 2 : e) {
case 0:
e = gd;
break;
case 1:
e = id;
break;
default:
e = hd;
}
c = e.bind(null, b, c, a);
e = void 0;
!Pb ||
("touchstart" !== b &&
"touchmove" !== b &&
"wheel" !== b) ||
(e = !0);
d
? void 0 !== e
? a.addEventListener(b, c, {
capture: !0,
passive: e,
})
: a.addEventListener(b, c, !0)
: void 0 !== e
? a.addEventListener(b, c, {
passive: e,
})
: a.addEventListener(b, c, !1);
}
function jd(a, b, c, d, e) {
var f = d;
if (0 === (b & 1) && 0 === (b & 2) && null !== d)
a: for (;;) {
if (null === d) return;
var g = d.tag;
if (3 === g || 4 === g) {
var h = d.stateNode.containerInfo;
if (
h === e ||
(8 === h.nodeType && h.parentNode === e)
)
break;
if (4 === g)
for (g = d.return; null !== g; ) {
var k = g.tag;
if (3 === k || 4 === k)
if (
((k = g.stateNode.containerInfo),
k === e ||
(8 === k.nodeType &&
k.parentNode === e))
)
return;
g = g.return;
}
for (; null !== h; ) {
g = wc(h);
if (null === g) return;
k = g.tag;
if (5 === k || 6 === k) {
d = f = g;
continue a;
}
h = h.parentNode;
}
}
d = d.return;
}
Nb(function () {
var d = f,
e = xb(c),
g = [];
a: {
var h = Mc.get(a);
if (void 0 !== h) {
var k = td,
x = a;
switch (a) {
case "keypress":
if (0 === od(c)) break a;
case "keydown":
case "keyup":
k = Rd;
break;
case "focusin":
x = "focus";
k = Fd;
break;
case "focusout":
x = "blur";
k = Fd;
break;
case "beforeblur":
case "afterblur":
k = Fd;
break;
case "click":
if (2 === c.button) break a;
case "auxclick":
case "dblclick":
case "mousedown":
case "mousemove":
case "mouseup":
case "mouseout":
case "mouseover":
case "contextmenu":
k = Bd;
break;
case "drag":
case "dragend":
case "dragenter":
case "dragexit":
case "dragleave":
case "dragover":
case "dragstart":
case "drop":
k = Dd;
break;
case "touchcancel":
case "touchend":
case "touchmove":
case "touchstart":
k = Vd;
break;
case Ic:
case Jc:
case Kc:
k = Hd;
break;
case Lc:
k = Xd;
break;
case "scroll":
k = vd;
break;
case "wheel":
k = Zd;
break;
case "copy":
case "cut":
case "paste":
k = Jd;
break;
case "gotpointercapture":
case "lostpointercapture":
case "pointercancel":
case "pointerdown":
case "pointermove":
case "pointerout":
case "pointerover":
case "pointerup":
k = Td;
}
var w = 0 !== (b & 4),
z = !w && "scroll" === a,
u = w ? (null !== h ? h + "Capture" : null) : h;
w = [];
for (var t = d, q; null !== t; ) {
q = t;
var v = q.stateNode;
5 === q.tag &&
null !== v &&
((q = v),
null !== u &&
((v = Ob(t, u)),
null != v && w.push(ef(t, v, q))));
if (z) break;
t = t.return;
}
0 < w.length &&
((h = new k(h, x, null, c, e)),
g.push({
event: h,
listeners: w,
}));
}
}
if (0 === (b & 7)) {
a: {
h = "mouseover" === a || "pointerover" === a;
k = "mouseout" === a || "pointerout" === a;
if (
h &&
0 === (b & 16) &&
(x = c.relatedTarget || c.fromElement) &&
(wc(x) || x[ff])
)
break a;
if (k || h) {
h =
e.window === e
? e
: (h = e.ownerDocument)
? h.defaultView || h.parentWindow
: window;
if (k) {
if (
((x = c.relatedTarget || c.toElement),
(k = d),
(x = x ? wc(x) : null),
null !== x &&
((z = Zb(x)),
x !== z ||
(5 !== x.tag && 6 !== x.tag)))
)
x = null;
} else (k = null), (x = d);
if (k !== x) {
w = Bd;
v = "onMouseLeave";
u = "onMouseEnter";
t = "mouse";
if (
"pointerout" === a ||
"pointerover" === a
)
(w = Td),
(v = "onPointerLeave"),
(u = "onPointerEnter"),
(t = "pointer");
z = null == k ? h : ue(k);
q = null == x ? h : ue(x);
h = new w(v, t + "leave", k, c, e);
h.target = z;
h.relatedTarget = q;
v = null;
wc(e) === d &&
((w = new w(u, t + "enter", x, c, e)),
(w.target = q),
(w.relatedTarget = z),
(v = w));
z = v;
if (k && x)
b: {
w = k;
u = x;
t = 0;
for (q = w; q; q = gf(q)) t++;
q = 0;
for (v = u; v; v = gf(v)) q++;
for (; 0 < t - q; )
(w = gf(w)), t--;
for (; 0 < q - t; )
(u = gf(u)), q--;
for (; t--; ) {
if (
w === u ||
(null !== u &&
w === u.alternate)
)
break b;
w = gf(w);
u = gf(u);
}
w = null;
}
else w = null;
null !== k && hf(g, h, k, w, !1);
null !== x &&
null !== z &&
hf(g, z, x, w, !0);
}
}
}
a: {
h = d ? ue(d) : window;
k = h.nodeName && h.nodeName.toLowerCase();
if (
"select" === k ||
("input" === k && "file" === h.type)
)
var J = ve;
else if (me(h))
if (we) J = Fe;
else {
J = De;
var K = Ce;
}
else
(k = h.nodeName) &&
"input" === k.toLowerCase() &&
("checkbox" === h.type ||
"radio" === h.type) &&
(J = Ee);
if (J && (J = J(a, d))) {
ne(g, J, c, e);
break a;
}
K && K(a, h, d);
"focusout" === a &&
(K = h._wrapperState) &&
K.controlled &&
"number" === h.type &&
bb(h, "number", h.value);
}
K = d ? ue(d) : window;
switch (a) {
case "focusin":
if (me(K) || "true" === K.contentEditable)
(Qe = K), (Re = d), (Se = null);
break;
case "focusout":
Se = Re = Qe = null;
break;
case "mousedown":
Te = !0;
break;
case "contextmenu":
case "mouseup":
case "dragend":
Te = !1;
Ue(g, c, e);
break;
case "selectionchange":
if (Pe) break;
case "keydown":
case "keyup":
Ue(g, c, e);
}
var Q;
if (ae)
b: {
switch (a) {
case "compositionstart":
var L = "onCompositionStart";
break b;
case "compositionend":
L = "onCompositionEnd";
break b;
case "compositionupdate":
L = "onCompositionUpdate";
break b;
}
L = void 0;
}
else
ie
? ge(a, c) && (L = "onCompositionEnd")
: "keydown" === a &&
229 === c.keyCode &&
(L = "onCompositionStart");
L &&
(de &&
"ko" !== c.locale &&
(ie || "onCompositionStart" !== L
? "onCompositionEnd" === L &&
ie &&
(Q = nd())
: ((kd = e),
(ld =
"value" in kd
? kd.value
: kd.textContent),
(ie = !0))),
(K = oe(d, L)),
0 < K.length &&
((L = new Ld(L, a, null, c, e)),
g.push({
event: L,
listeners: K,
}),
Q
? (L.data = Q)
: ((Q = he(c)),
null !== Q && (L.data = Q))));
if ((Q = ce ? je(a, c) : ke(a, c)))
(d = oe(d, "onBeforeInput")),
0 < d.length &&
((e = new Ld(
"onBeforeInput",
"beforeinput",
null,
c,
e
)),
g.push({
event: e,
listeners: d,
}),
(e.data = Q));
}
se(g, b);
});
}
function ef(a, b, c) {
return {
instance: a,
listener: b,
currentTarget: c,
};
}
function oe(a, b) {
for (var c = b + "Capture", d = []; null !== a; ) {
var e = a,
f = e.stateNode;
5 === e.tag &&
null !== f &&
((e = f),
(f = Ob(a, c)),
null != f && d.unshift(ef(a, f, e)),
(f = Ob(a, b)),
null != f && d.push(ef(a, f, e)));
a = a.return;
}
return d;
}
function gf(a) {
if (null === a) return null;
do a = a.return;
while (a && 5 !== a.tag);
return a ? a : null;
}
function hf(a, b, c, d, e) {
for (var f = b._reactName, g = []; null !== c && c !== d; ) {
var h = c,
k = h.alternate,
l = h.stateNode;
if (null !== k && k === d) break;
5 === h.tag &&
null !== l &&
((h = l),
e
? ((k = Ob(c, f)),
null != k && g.unshift(ef(c, k, h)))
: e ||
((k = Ob(c, f)),
null != k && g.push(ef(c, k, h))));
c = c.return;
}
0 !== g.length &&
a.push({
event: b,
listeners: g,
});
}
function jf() {}
var kf = null,
lf = null;
function mf(a, b) {
switch (a) {
case "button":
case "input":
case "select":
case "textarea":
return !!b.autoFocus;
}
return !1;
}
function nf(a, b) {
return (
"textarea" === a ||
"option" === a ||
"noscript" === a ||
"string" === typeof b.children ||
"number" === typeof b.children ||
("object" === typeof b.dangerouslySetInnerHTML &&
null !== b.dangerouslySetInnerHTML &&
null != b.dangerouslySetInnerHTML.__html)
);
}
var of = "function" === typeof setTimeout ? setTimeout : void 0,
pf = "function" === typeof clearTimeout ? clearTimeout : void 0;
function qf(a) {
1 === a.nodeType
? (a.textContent = "")
: 9 === a.nodeType &&
((a = a.body), null != a && (a.textContent = ""));
}
function rf(a) {
for (; null != a; a = a.nextSibling) {
var b = a.nodeType;
if (1 === b || 3 === b) break;
}
return a;
}
function sf(a) {
a = a.previousSibling;
for (var b = 0; a; ) {
if (8 === a.nodeType) {
var c = a.data;
if ("$" === c || "$!" === c || "$?" === c) {
if (0 === b) return a;
b--;
} else "/$" === c && b++;
}
a = a.previousSibling;
}
return null;
}
var tf = 0;
function uf(a) {
return {
$$typeof: Ga,
toString: a,
valueOf: a,
};
}
var vf = Math.random().toString(36).slice(2),
wf = "__reactFiber$" + vf,
xf = "__reactProps$" + vf,
ff = "__reactContainer$" + vf,
yf = "__reactEvents$" + vf;
function wc(a) {
var b = a[wf];
if (b) return b;
for (var c = a.parentNode; c; ) {
if ((b = c[ff] || c[wf])) {
c = b.alternate;
if (
null !== b.child ||
(null !== c && null !== c.child)
)
for (a = sf(a); null !== a; ) {
if ((c = a[wf])) return c;
a = sf(a);
}
return b;
}
a = c;
c = a.parentNode;
}
return null;
}
function Cb(a) {
a = a[wf] || a[ff];
return !a ||
(5 !== a.tag && 6 !== a.tag && 13 !== a.tag && 3 !== a.tag)
? null
: a;
}
function ue(a) {
if (5 === a.tag || 6 === a.tag) return a.stateNode;
throw Error(y(33));
}
function Db(a) {
return a[xf] || null;
}
function $e(a) {
var b = a[yf];
void 0 === b && (b = a[yf] = new Set());
return b;
}
var zf = [],
Af = -1;
function Bf(a) {
return {
current: a,
};
}
function H(a) {
0 > Af || ((a.current = zf[Af]), (zf[Af] = null), Af--);
}
function I(a, b) {
Af++;
zf[Af] = a.current;
a.current = b;
}
var Cf = {},
M = Bf(Cf),
N = Bf(!1),
Df = Cf;
function Ef(a, b) {
var c = a.type.contextTypes;
if (!c) return Cf;
var d = a.stateNode;
if (d && d.__reactInternalMemoizedUnmaskedChildContext === b)
return d.__reactInternalMemoizedMaskedChildContext;
var e = {},
f;
for (f in c) e[f] = b[f];
d &&
((a = a.stateNode),
(a.__reactInternalMemoizedUnmaskedChildContext = b),
(a.__reactInternalMemoizedMaskedChildContext = e));
return e;
}
function Ff(a) {
a = a.childContextTypes;
return null !== a && void 0 !== a;
}
function Gf() {
H(N);
H(M);
}
function Hf(a, b, c) {
if (M.current !== Cf) throw Error(y(168));
I(M, b);
I(N, c);
}
function If(a, b, c) {
var d = a.stateNode;
a = b.childContextTypes;
if ("function" !== typeof d.getChildContext) return c;
d = d.getChildContext();
for (var e in d)
if (!(e in a)) throw Error(y(108, Ra(b) || "Unknown", e));
return m({}, c, d);
}
function Jf(a) {
a =
((a = a.stateNode) &&
a.__reactInternalMemoizedMergedChildContext) ||
Cf;
Df = M.current;
I(M, a);
I(N, N.current);
return !0;
}
function Kf(a, b, c) {
var d = a.stateNode;
if (!d) throw Error(y(169));
c
? ((a = If(a, b, Df)),
(d.__reactInternalMemoizedMergedChildContext = a),
H(N),
H(M),
I(M, a))
: H(N);
I(N, c);
}
var Lf = null,
Mf = null,
Nf = r.unstable_runWithPriority,
Of = r.unstable_scheduleCallback,
Pf = r.unstable_cancelCallback,
Qf = r.unstable_shouldYield,
Rf = r.unstable_requestPaint,
Sf = r.unstable_now,
Tf = r.unstable_getCurrentPriorityLevel,
Uf = r.unstable_ImmediatePriority,
Vf = r.unstable_UserBlockingPriority,
Wf = r.unstable_NormalPriority,
Xf = r.unstable_LowPriority,
Yf = r.unstable_IdlePriority,
Zf = {},
$f = void 0 !== Rf ? Rf : function () {},
ag = null,
bg = null,
cg = !1,
dg = Sf(),
O =
1e4 > dg
? Sf
: function () {
return Sf() - dg;
};
function eg() {
switch (Tf()) {
case Uf:
return 99;
case Vf:
return 98;
case Wf:
return 97;
case Xf:
return 96;
case Yf:
return 95;
default:
throw Error(y(332));
}
}
function fg(a) {
switch (a) {
case 99:
return Uf;
case 98:
return Vf;
case 97:
return Wf;
case 96:
return Xf;
case 95:
return Yf;
default:
throw Error(y(332));
}
}
function gg(a, b) {
a = fg(a);
return Nf(a, b);
}
function hg(a, b, c) {
a = fg(a);
return Of(a, b, c);
}
function ig() {
if (null !== bg) {
var a = bg;
bg = null;
Pf(a);
}
jg();
}
function jg() {
if (!cg && null !== ag) {
cg = !0;
var a = 0;
try {
var b = ag;
gg(99, function () {
for (; a < b.length; a++) {
var c = b[a];
do c = c(!0);
while (null !== c);
}
});
ag = null;
} catch (c) {
throw (
(null !== ag && (ag = ag.slice(a + 1)),
Of(Uf, ig),
c)
);
} finally {
cg = !1;
}
}
}
var kg = ra.ReactCurrentBatchConfig;
function lg(a, b) {
if (a && a.defaultProps) {
b = m({}, b);
a = a.defaultProps;
for (var c in a) void 0 === b[c] && (b[c] = a[c]);
return b;
}
return b;
}
var mg = Bf(null),
ng = null,
og = null,
pg = null;
function qg() {
pg = og = ng = null;
}
function rg(a) {
var b = mg.current;
H(mg);
a.type._context._currentValue = b;
}
function sg(a, b) {
for (; null !== a; ) {
var c = a.alternate;
if ((a.childLanes & b) === b)
if (null === c || (c.childLanes & b) === b) break;
else c.childLanes |= b;
else (a.childLanes |= b), null !== c && (c.childLanes |= b);
a = a.return;
}
}
function tg(a, b) {
ng = a;
pg = og = null;
a = a.dependencies;
null !== a &&
null !== a.firstContext &&
(0 !== (a.lanes & b) && (ug = !0), (a.firstContext = null));
}
function vg(a, b) {
if (pg !== a && !1 !== b && 0 !== b) {
if ("number" !== typeof b || 1073741823 === b)
(pg = a), (b = 1073741823);
b = {
context: a,
observedBits: b,
next: null,
};
if (null === og) {
if (null === ng) throw Error(y(308));
og = b;
ng.dependencies = {
lanes: 0,
firstContext: b,
responders: null,
};
} else og = og.next = b;
}
return a._currentValue;
}
var wg = !1;
function xg(a) {
a.updateQueue = {
baseState: a.memoizedState,
firstBaseUpdate: null,
lastBaseUpdate: null,
shared: {
pending: null,
},
effects: null,
};
}
function yg(a, b) {
a = a.updateQueue;
b.updateQueue === a &&
(b.updateQueue = {
baseState: a.baseState,
firstBaseUpdate: a.firstBaseUpdate,
lastBaseUpdate: a.lastBaseUpdate,
shared: a.shared,
effects: a.effects,
});
}
function zg(a, b) {
return {
eventTime: a,
lane: b,
tag: 0,
payload: null,
callback: null,
next: null,
};
}
function Ag(a, b) {
a = a.updateQueue;
if (null !== a) {
a = a.shared;
var c = a.pending;
null === c
? (b.next = b)
: ((b.next = c.next), (c.next = b));
a.pending = b;
}
}
function Bg(a, b) {
var c = a.updateQueue,
d = a.alternate;
if (null !== d && ((d = d.updateQueue), c === d)) {
var e = null,
f = null;
c = c.firstBaseUpdate;
if (null !== c) {
do {
var g = {
eventTime: c.eventTime,
lane: c.lane,
tag: c.tag,
payload: c.payload,
callback: c.callback,
next: null,
};
null === f ? (e = f = g) : (f = f.next = g);
c = c.next;
} while (null !== c);
null === f ? (e = f = b) : (f = f.next = b);
} else e = f = b;
c = {
baseState: d.baseState,
firstBaseUpdate: e,
lastBaseUpdate: f,
shared: d.shared,
effects: d.effects,
};
a.updateQueue = c;
return;
}
a = c.lastBaseUpdate;
null === a ? (c.firstBaseUpdate = b) : (a.next = b);
c.lastBaseUpdate = b;
}
function Cg(a, b, c, d) {
var e = a.updateQueue;
wg = !1;
var f = e.firstBaseUpdate,
g = e.lastBaseUpdate,
h = e.shared.pending;
if (null !== h) {
e.shared.pending = null;
var k = h,
l = k.next;
k.next = null;
null === g ? (f = l) : (g.next = l);
g = k;
var n = a.alternate;
if (null !== n) {
n = n.updateQueue;
var A = n.lastBaseUpdate;
A !== g &&
(null === A
? (n.firstBaseUpdate = l)
: (A.next = l),
(n.lastBaseUpdate = k));
}
}
if (null !== f) {
A = e.baseState;
g = 0;
n = l = k = null;
do {
h = f.lane;
var p = f.eventTime;
if ((d & h) === h) {
null !== n &&
(n = n.next =
{
eventTime: p,
lane: 0,
tag: f.tag,
payload: f.payload,
callback: f.callback,
next: null,
});
a: {
var C = a,
x = f;
h = b;
p = c;
switch (x.tag) {
case 1:
C = x.payload;
if ("function" === typeof C) {
A = C.call(p, A, h);
break a;
}
A = C;
break a;
case 3:
C.flags = (C.flags & -4097) | 64;
case 0:
C = x.payload;
h =
"function" === typeof C
? C.call(p, A, h)
: C;
if (null === h || void 0 === h) break a;
A = m({}, A, h);
break a;
case 2:
wg = !0;
}
}
null !== f.callback &&
((a.flags |= 32),
(h = e.effects),
null === h ? (e.effects = [f]) : h.push(f));
} else
(p = {
eventTime: p,
lane: h,
tag: f.tag,
payload: f.payload,
callback: f.callback,
next: null,
}),
null === n
? ((l = n = p), (k = A))
: (n = n.next = p),
(g |= h);
f = f.next;
if (null === f)
if (((h = e.shared.pending), null === h)) break;
else
(f = h.next),
(h.next = null),
(e.lastBaseUpdate = h),
(e.shared.pending = null);
} while (1);
null === n && (k = A);
e.baseState = k;
e.firstBaseUpdate = l;
e.lastBaseUpdate = n;
Dg |= g;
a.lanes = g;
a.memoizedState = A;
}
}
function Eg(a, b, c) {
a = b.effects;
b.effects = null;
if (null !== a)
for (b = 0; b < a.length; b++) {
var d = a[b],
e = d.callback;
if (null !== e) {
d.callback = null;
d = c;
if ("function" !== typeof e) throw Error(y(191, e));
e.call(d);
}
}
}
var Fg = new aa.Component().refs;
function Gg(a, b, c, d) {
b = a.memoizedState;
c = c(d, b);
c = null === c || void 0 === c ? b : m({}, b, c);
a.memoizedState = c;
0 === a.lanes && (a.updateQueue.baseState = c);
}
var Kg = {
isMounted: function (a) {
return (a = a._reactInternals) ? Zb(a) === a : !1;
},
enqueueSetState: function (a, b, c) {
a = a._reactInternals;
var d = Hg(),
e = Ig(a),
f = zg(d, e);
f.payload = b;
void 0 !== c && null !== c && (f.callback = c);
Ag(a, f);
Jg(a, e, d);
},
enqueueReplaceState: function (a, b, c) {
a = a._reactInternals;
var d = Hg(),
e = Ig(a),
f = zg(d, e);
f.tag = 1;
f.payload = b;
void 0 !== c && null !== c && (f.callback = c);
Ag(a, f);
Jg(a, e, d);
},
enqueueForceUpdate: function (a, b) {
a = a._reactInternals;
var c = Hg(),
d = Ig(a),
e = zg(c, d);
e.tag = 2;
void 0 !== b && null !== b && (e.callback = b);
Ag(a, e);
Jg(a, d, c);
},
};
function Lg(a, b, c, d, e, f, g) {
a = a.stateNode;
return "function" === typeof a.shouldComponentUpdate
? a.shouldComponentUpdate(d, f, g)
: b.prototype && b.prototype.isPureReactComponent
? !Je(c, d) || !Je(e, f)
: !0;
}
function Mg(a, b, c) {
var d = !1,
e = Cf;
var f = b.contextType;
"object" === typeof f && null !== f
? (f = vg(f))
: ((e = Ff(b) ? Df : M.current),
(d = b.contextTypes),
(f = (d = null !== d && void 0 !== d) ? Ef(a, e) : Cf));
b = new b(c, f);
a.memoizedState =
null !== b.state && void 0 !== b.state ? b.state : null;
b.updater = Kg;
a.stateNode = b;
b._reactInternals = a;
d &&
((a = a.stateNode),
(a.__reactInternalMemoizedUnmaskedChildContext = e),
(a.__reactInternalMemoizedMaskedChildContext = f));
return b;
}
function Ng(a, b, c, d) {
a = b.state;
"function" === typeof b.componentWillReceiveProps &&
b.componentWillReceiveProps(c, d);
"function" === typeof b.UNSAFE_componentWillReceiveProps &&
b.UNSAFE_componentWillReceiveProps(c, d);
b.state !== a && Kg.enqueueReplaceState(b, b.state, null);
}
function Og(a, b, c, d) {
var e = a.stateNode;
e.props = c;
e.state = a.memoizedState;
e.refs = Fg;
xg(a);
var f = b.contextType;
"object" === typeof f && null !== f
? (e.context = vg(f))
: ((f = Ff(b) ? Df : M.current), (e.context = Ef(a, f)));
Cg(a, c, e, d);
e.state = a.memoizedState;
f = b.getDerivedStateFromProps;
"function" === typeof f &&
(Gg(a, b, f, c), (e.state = a.memoizedState));
"function" === typeof b.getDerivedStateFromProps ||
"function" === typeof e.getSnapshotBeforeUpdate ||
("function" !== typeof e.UNSAFE_componentWillMount &&
"function" !== typeof e.componentWillMount) ||
((b = e.state),
"function" === typeof e.componentWillMount &&
e.componentWillMount(),
"function" === typeof e.UNSAFE_componentWillMount &&
e.UNSAFE_componentWillMount(),
b !== e.state && Kg.enqueueReplaceState(e, e.state, null),
Cg(a, c, e, d),
(e.state = a.memoizedState));
"function" === typeof e.componentDidMount && (a.flags |= 4);
}
var Pg = Array.isArray;
function Qg(a, b, c) {
a = c.ref;
if (
null !== a &&
"function" !== typeof a &&
"object" !== typeof a
) {
if (c._owner) {
c = c._owner;
if (c) {
if (1 !== c.tag) throw Error(y(309));
var d = c.stateNode;
}
if (!d) throw Error(y(147, a));
var e = "" + a;
if (
null !== b &&
null !== b.ref &&
"function" === typeof b.ref &&
b.ref._stringRef === e
)
return b.ref;
b = function (a) {
var b = d.refs;
b === Fg && (b = d.refs = {});
null === a ? delete b[e] : (b[e] = a);
};
b._stringRef = e;
return b;
}
if ("string" !== typeof a) throw Error(y(284));
if (!c._owner) throw Error(y(290, a));
}
return a;
}
function Rg(a, b) {
if ("textarea" !== a.type)
throw Error(
y(
31,
"[object Object]" ===
Object.prototype.toString.call(b)
? "object with keys {" +
Object.keys(b).join(", ") +
"}"
: b
)
);
}
function Sg(a) {
function b(b, c) {
if (a) {
var d = b.lastEffect;
null !== d
? ((d.nextEffect = c), (b.lastEffect = c))
: (b.firstEffect = b.lastEffect = c);
c.nextEffect = null;
c.flags = 8;
}
}
function c(c, d) {
if (!a) return null;
for (; null !== d; ) b(c, d), (d = d.sibling);
return null;
}
function d(a, b) {
for (a = new Map(); null !== b; )
null !== b.key ? a.set(b.key, b) : a.set(b.index, b),
(b = b.sibling);
return a;
}
function e(a, b) {
a = Tg(a, b);
a.index = 0;
a.sibling = null;
return a;
}
function f(b, c, d) {
b.index = d;
if (!a) return c;
d = b.alternate;
if (null !== d)
return (d = d.index), d < c ? ((b.flags = 2), c) : d;
b.flags = 2;
return c;
}
function g(b) {
a && null === b.alternate && (b.flags = 2);
return b;
}
function h(a, b, c, d) {
if (null === b || 6 !== b.tag)
return (b = Ug(c, a.mode, d)), (b.return = a), b;
b = e(b, c);
b.return = a;
return b;
}
function k(a, b, c, d) {
if (null !== b && b.elementType === c.type)
return (
(d = e(b, c.props)),
(d.ref = Qg(a, b, c)),
(d.return = a),
d
);
d = Vg(c.type, c.key, c.props, null, a.mode, d);
d.ref = Qg(a, b, c);
d.return = a;
return d;
}
function l(a, b, c, d) {
if (
null === b ||
4 !== b.tag ||
b.stateNode.containerInfo !== c.containerInfo ||
b.stateNode.implementation !== c.implementation
)
return (b = Wg(c, a.mode, d)), (b.return = a), b;
b = e(b, c.children || []);
b.return = a;
return b;
}
function n(a, b, c, d, f) {
if (null === b || 7 !== b.tag)
return (b = Xg(c, a.mode, d, f)), (b.return = a), b;
b = e(b, c);
b.return = a;
return b;
}
function A(a, b, c) {
if ("string" === typeof b || "number" === typeof b)
return (b = Ug("" + b, a.mode, c)), (b.return = a), b;
if ("object" === typeof b && null !== b) {
switch (b.$$typeof) {
case sa:
return (
(c = Vg(
b.type,
b.key,
b.props,
null,
a.mode,
c
)),
(c.ref = Qg(a, null, b)),
(c.return = a),
c
);
case ta:
return (
(b = Wg(b, a.mode, c)), (b.return = a), b
);
}
if (Pg(b) || La(b))
return (
(b = Xg(b, a.mode, c, null)), (b.return = a), b
);
Rg(a, b);
}
return null;
}
function p(a, b, c, d) {
var e = null !== b ? b.key : null;
if ("string" === typeof c || "number" === typeof c)
return null !== e ? null : h(a, b, "" + c, d);
if ("object" === typeof c && null !== c) {
switch (c.$$typeof) {
case sa:
return c.key === e
? c.type === ua
? n(a, b, c.props.children, d, e)
: k(a, b, c, d)
: null;
case ta:
return c.key === e ? l(a, b, c, d) : null;
}
if (Pg(c) || La(c))
return null !== e ? null : n(a, b, c, d, null);
Rg(a, c);
}
return null;
}
function C(a, b, c, d, e) {
if ("string" === typeof d || "number" === typeof d)
return (a = a.get(c) || null), h(b, a, "" + d, e);
if ("object" === typeof d && null !== d) {
switch (d.$$typeof) {
case sa:
return (
(a =
a.get(null === d.key ? c : d.key) ||
null),
d.type === ua
? n(b, a, d.props.children, e, d.key)
: k(b, a, d, e)
);
case ta:
return (
(a =
a.get(null === d.key ? c : d.key) ||
null),
l(b, a, d, e)
);
}
if (Pg(d) || La(d))
return (a = a.get(c) || null), n(b, a, d, e, null);
Rg(b, d);
}
return null;
}
function x(e, g, h, k) {
for (
var l = null, t = null, u = g, z = (g = 0), q = null;
null !== u && z < h.length;
z++
) {
u.index > z ? ((q = u), (u = null)) : (q = u.sibling);
var n = p(e, u, h[z], k);
if (null === n) {
null === u && (u = q);
break;
}
a && u && null === n.alternate && b(e, u);
g = f(n, g, z);
null === t ? (l = n) : (t.sibling = n);
t = n;
u = q;
}
if (z === h.length) return c(e, u), l;
if (null === u) {
for (; z < h.length; z++)
(u = A(e, h[z], k)),
null !== u &&
((g = f(u, g, z)),
null === t ? (l = u) : (t.sibling = u),
(t = u));
return l;
}
for (u = d(e, u); z < h.length; z++)
(q = C(u, e, z, h[z], k)),
null !== q &&
(a &&
null !== q.alternate &&
u.delete(null === q.key ? z : q.key),
(g = f(q, g, z)),
null === t ? (l = q) : (t.sibling = q),
(t = q));
a &&
u.forEach(function (a) {
return b(e, a);
});
return l;
}
function w(e, g, h, k) {
var l = La(h);
if ("function" !== typeof l) throw Error(y(150));
h = l.call(h);
if (null == h) throw Error(y(151));
for (
var t = (l = null),
u = g,
z = (g = 0),
q = null,
n = h.next();
null !== u && !n.done;
z++, n = h.next()
) {
u.index > z ? ((q = u), (u = null)) : (q = u.sibling);
var w = p(e, u, n.value, k);
if (null === w) {
null === u && (u = q);
break;
}
a && u && null === w.alternate && b(e, u);
g = f(w, g, z);
null === t ? (l = w) : (t.sibling = w);
t = w;
u = q;
}
if (n.done) return c(e, u), l;
if (null === u) {
for (; !n.done; z++, n = h.next())
(n = A(e, n.value, k)),
null !== n &&
((g = f(n, g, z)),
null === t ? (l = n) : (t.sibling = n),
(t = n));
return l;
}
for (u = d(e, u); !n.done; z++, n = h.next())
(n = C(u, e, z, n.value, k)),
null !== n &&
(a &&
null !== n.alternate &&
u.delete(null === n.key ? z : n.key),
(g = f(n, g, z)),
null === t ? (l = n) : (t.sibling = n),
(t = n));
a &&
u.forEach(function (a) {
return b(e, a);
});
return l;
}
return function (a, d, f, h) {
var k =
"object" === typeof f &&
null !== f &&
f.type === ua &&
null === f.key;
k && (f = f.props.children);
var l = "object" === typeof f && null !== f;
if (l)
switch (f.$$typeof) {
case sa:
a: {
l = f.key;
for (k = d; null !== k; ) {
if (k.key === l) {
switch (k.tag) {
case 7:
if (f.type === ua) {
c(a, k.sibling);
d = e(
k,
f.props.children
);
d.return = a;
a = d;
break a;
}
break;
default:
if (
k.elementType === f.type
) {
c(a, k.sibling);
d = e(k, f.props);
d.ref = Qg(a, k, f);
d.return = a;
a = d;
break a;
}
}
c(a, k);
break;
} else b(a, k);
k = k.sibling;
}
f.type === ua
? ((d = Xg(
f.props.children,
a.mode,
h,
f.key
)),
(d.return = a),
(a = d))
: ((h = Vg(
f.type,
f.key,
f.props,
null,
a.mode,
h
)),
(h.ref = Qg(a, d, f)),
(h.return = a),
(a = h));
}
return g(a);
case ta:
a: {
for (k = f.key; null !== d; ) {
if (d.key === k)
if (
4 === d.tag &&
d.stateNode.containerInfo ===
f.containerInfo &&
d.stateNode.implementation ===
f.implementation
) {
c(a, d.sibling);
d = e(d, f.children || []);
d.return = a;
a = d;
break a;
} else {
c(a, d);
break;
}
else b(a, d);
d = d.sibling;
}
d = Wg(f, a.mode, h);
d.return = a;
a = d;
}
return g(a);
}
if ("string" === typeof f || "number" === typeof f)
return (
(f = "" + f),
null !== d && 6 === d.tag
? (c(a, d.sibling),
(d = e(d, f)),
(d.return = a),
(a = d))
: (c(a, d),
(d = Ug(f, a.mode, h)),
(d.return = a),
(a = d)),
g(a)
);
if (Pg(f)) return x(a, d, f, h);
if (La(f)) return w(a, d, f, h);
l && Rg(a, f);
if ("undefined" === typeof f && !k)
switch (a.tag) {
case 1:
case 22:
case 0:
case 11:
case 15:
throw Error(y(152, Ra(a.type) || "Component"));
}
return c(a, d);
};
}
var Yg = Sg(!0),
Zg = Sg(!1),
$g = {},
ah = Bf($g),
bh = Bf($g),
ch = Bf($g);
function dh(a) {
if (a === $g) throw Error(y(174));
return a;
}
function eh(a, b) {
I(ch, b);
I(bh, a);
I(ah, $g);
a = b.nodeType;
switch (a) {
case 9:
case 11:
b = (b = b.documentElement)
? b.namespaceURI
: mb(null, "");
break;
default:
(a = 8 === a ? b.parentNode : b),
(b = a.namespaceURI || null),
(a = a.tagName),
(b = mb(b, a));
}
H(ah);
I(ah, b);
}
function fh() {
H(ah);
H(bh);
H(ch);
}
function gh(a) {
dh(ch.current);
var b = dh(ah.current);
var c = mb(b, a.type);
b !== c && (I(bh, a), I(ah, c));
}
function hh(a) {
bh.current === a && (H(ah), H(bh));
}
var P = Bf(0);
function ih(a) {
for (var b = a; null !== b; ) {
if (13 === b.tag) {
var c = b.memoizedState;
if (
null !== c &&
((c = c.dehydrated),
null === c || "$?" === c.data || "$!" === c.data)
)
return b;
} else if (
19 === b.tag &&
void 0 !== b.memoizedProps.revealOrder
) {
if (0 !== (b.flags & 64)) return b;
} else if (null !== b.child) {
b.child.return = b;
b = b.child;
continue;
}
if (b === a) break;
for (; null === b.sibling; ) {
if (null === b.return || b.return === a) return null;
b = b.return;
}
b.sibling.return = b.return;
b = b.sibling;
}
return null;
}
var jh = null,
kh = null,
lh = !1;
function mh(a, b) {
var c = nh(5, null, null, 0);
c.elementType = "DELETED";
c.type = "DELETED";
c.stateNode = b;
c.return = a;
c.flags = 8;
null !== a.lastEffect
? ((a.lastEffect.nextEffect = c), (a.lastEffect = c))
: (a.firstEffect = a.lastEffect = c);
}
function oh(a, b) {
switch (a.tag) {
case 5:
var c = a.type;
b =
1 !== b.nodeType ||
c.toLowerCase() !== b.nodeName.toLowerCase()
? null
: b;
return null !== b ? ((a.stateNode = b), !0) : !1;
case 6:
return (
(b =
"" === a.pendingProps || 3 !== b.nodeType
? null
: b),
null !== b ? ((a.stateNode = b), !0) : !1
);
case 13:
return !1;
default:
return !1;
}
}
function ph(a) {
if (lh) {
var b = kh;
if (b) {
var c = b;
if (!oh(a, b)) {
b = rf(c.nextSibling);
if (!b || !oh(a, b)) {
a.flags = (a.flags & -1025) | 2;
lh = !1;
jh = a;
return;
}
mh(jh, c);
}
jh = a;
kh = rf(b.firstChild);
} else
(a.flags = (a.flags & -1025) | 2), (lh = !1), (jh = a);
}
}
function qh(a) {
for (
a = a.return;
null !== a && 5 !== a.tag && 3 !== a.tag && 13 !== a.tag;
)
a = a.return;
jh = a;
}
function rh(a) {
if (a !== jh) return !1;
if (!lh) return qh(a), (lh = !0), !1;
var b = a.type;
if (
5 !== a.tag ||
("head" !== b && "body" !== b && !nf(b, a.memoizedProps))
)
for (b = kh; b; ) mh(a, b), (b = rf(b.nextSibling));
qh(a);
if (13 === a.tag) {
a = a.memoizedState;
a = null !== a ? a.dehydrated : null;
if (!a) throw Error(y(317));
a: {
a = a.nextSibling;
for (b = 0; a; ) {
if (8 === a.nodeType) {
var c = a.data;
if ("/$" === c) {
if (0 === b) {
kh = rf(a.nextSibling);
break a;
}
b--;
} else
("$" !== c && "$!" !== c && "$?" !== c) ||
b++;
}
a = a.nextSibling;
}
kh = null;
}
} else kh = jh ? rf(a.stateNode.nextSibling) : null;
return !0;
}
function sh() {
kh = jh = null;
lh = !1;
}
var th = [];
function uh() {
for (var a = 0; a < th.length; a++)
th[a]._workInProgressVersionPrimary = null;
th.length = 0;
}
var vh = ra.ReactCurrentDispatcher,
wh = ra.ReactCurrentBatchConfig,
xh = 0,
R = null,
S = null,
T = null,
yh = !1,
zh = !1;
function Ah() {
throw Error(y(321));
}
function Bh(a, b) {
if (null === b) return !1;
for (var c = 0; c < b.length && c < a.length; c++)
if (!He(a[c], b[c])) return !1;
return !0;
}
function Ch(a, b, c, d, e, f) {
xh = f;
R = b;
b.memoizedState = null;
b.updateQueue = null;
b.lanes = 0;
vh.current = null === a || null === a.memoizedState ? Dh : Eh;
a = c(d, e);
if (zh) {
f = 0;
do {
zh = !1;
if (!(25 > f)) throw Error(y(301));
f += 1;
T = S = null;
b.updateQueue = null;
vh.current = Fh;
a = c(d, e);
} while (zh);
}
vh.current = Gh;
b = null !== S && null !== S.next;
xh = 0;
T = S = R = null;
yh = !1;
if (b) throw Error(y(300));
return a;
}
function Hh() {
var a = {
memoizedState: null,
baseState: null,
baseQueue: null,
queue: null,
next: null,
};
null === T ? (R.memoizedState = T = a) : (T = T.next = a);
return T;
}
function Ih() {
if (null === S) {
var a = R.alternate;
a = null !== a ? a.memoizedState : null;
} else a = S.next;
var b = null === T ? R.memoizedState : T.next;
if (null !== b) (T = b), (S = a);
else {
if (null === a) throw Error(y(310));
S = a;
a = {
memoizedState: S.memoizedState,
baseState: S.baseState,
baseQueue: S.baseQueue,
queue: S.queue,
next: null,
};
null === T ? (R.memoizedState = T = a) : (T = T.next = a);
}
return T;
}
function Jh(a, b) {
return "function" === typeof b ? b(a) : b;
}
function Kh(a) {
var b = Ih(),
c = b.queue;
if (null === c) throw Error(y(311));
c.lastRenderedReducer = a;
var d = S,
e = d.baseQueue,
f = c.pending;
if (null !== f) {
if (null !== e) {
var g = e.next;
e.next = f.next;
f.next = g;
}
d.baseQueue = e = f;
c.pending = null;
}
if (null !== e) {
e = e.next;
d = d.baseState;
var h = (g = f = null),
k = e;
do {
var l = k.lane;
if ((xh & l) === l)
null !== h &&
(h = h.next =
{
lane: 0,
action: k.action,
eagerReducer: k.eagerReducer,
eagerState: k.eagerState,
next: null,
}),
(d =
k.eagerReducer === a
? k.eagerState
: a(d, k.action));
else {
var n = {
lane: l,
action: k.action,
eagerReducer: k.eagerReducer,
eagerState: k.eagerState,
next: null,
};
null === h
? ((g = h = n), (f = d))
: (h = h.next = n);
R.lanes |= l;
Dg |= l;
}
k = k.next;
} while (null !== k && k !== e);
null === h ? (f = d) : (h.next = g);
He(d, b.memoizedState) || (ug = !0);
b.memoizedState = d;
b.baseState = f;
b.baseQueue = h;
c.lastRenderedState = d;
}
return [b.memoizedState, c.dispatch];
}
function Lh(a) {
var b = Ih(),
c = b.queue;
if (null === c) throw Error(y(311));
c.lastRenderedReducer = a;
var d = c.dispatch,
e = c.pending,
f = b.memoizedState;
if (null !== e) {
c.pending = null;
var g = (e = e.next);
do (f = a(f, g.action)), (g = g.next);
while (g !== e);
He(f, b.memoizedState) || (ug = !0);
b.memoizedState = f;
null === b.baseQueue && (b.baseState = f);
c.lastRenderedState = f;
}
return [f, d];
}
function Mh(a, b, c) {
var d = b._getVersion;
d = d(b._source);
var e = b._workInProgressVersionPrimary;
if (null !== e) a = e === d;
else if (((a = a.mutableReadLanes), (a = (xh & a) === a)))
(b._workInProgressVersionPrimary = d), th.push(b);
if (a) return c(b._source);
th.push(b);
throw Error(y(350));
}
function Nh(a, b, c, d) {
var e = U;
if (null === e) throw Error(y(349));
var f = b._getVersion,
g = f(b._source),
h = vh.current,
k = h.useState(function () {
return Mh(e, b, c);
}),
l = k[1],
n = k[0];
k = T;
var A = a.memoizedState,
p = A.refs,
C = p.getSnapshot,
x = A.source;
A = A.subscribe;
var w = R;
a.memoizedState = {
refs: p,
source: b,
subscribe: d,
};
h.useEffect(
function () {
p.getSnapshot = c;
p.setSnapshot = l;
var a = f(b._source);
if (!He(g, a)) {
a = c(b._source);
He(n, a) ||
(l(a),
(a = Ig(w)),
(e.mutableReadLanes |= a & e.pendingLanes));
a = e.mutableReadLanes;
e.entangledLanes |= a;
for (var d = e.entanglements, h = a; 0 < h; ) {
var k = 31 - Vc(h),
v = 1 << k;
d[k] |= a;
h &= ~v;
}
}
},
[c, b, d]
);
h.useEffect(
function () {
return d(b._source, function () {
var a = p.getSnapshot,
c = p.setSnapshot;
try {
c(a(b._source));
var d = Ig(w);
e.mutableReadLanes |= d & e.pendingLanes;
} catch (q) {
c(function () {
throw q;
});
}
});
},
[b, d]
);
(He(C, c) && He(x, b) && He(A, d)) ||
((a = {
pending: null,
dispatch: null,
lastRenderedReducer: Jh,
lastRenderedState: n,
}),
(a.dispatch = l = Oh.bind(null, R, a)),
(k.queue = a),
(k.baseQueue = null),
(n = Mh(e, b, c)),
(k.memoizedState = k.baseState = n));
return n;
}
function Ph(a, b, c) {
var d = Ih();
return Nh(d, a, b, c);
}
function Qh(a) {
var b = Hh();
"function" === typeof a && (a = a());
b.memoizedState = b.baseState = a;
a = b.queue = {
pending: null,
dispatch: null,
lastRenderedReducer: Jh,
lastRenderedState: a,
};
a = a.dispatch = Oh.bind(null, R, a);
return [b.memoizedState, a];
}
function Rh(a, b, c, d) {
a = {
tag: a,
create: b,
destroy: c,
deps: d,
next: null,
};
b = R.updateQueue;
null === b
? ((b = {
lastEffect: null,
}),
(R.updateQueue = b),
(b.lastEffect = a.next = a))
: ((c = b.lastEffect),
null === c
? (b.lastEffect = a.next = a)
: ((d = c.next),
(c.next = a),
(a.next = d),
(b.lastEffect = a)));
return a;
}
function Sh(a) {
var b = Hh();
a = {
current: a,
};
return (b.memoizedState = a);
}
function Th() {
return Ih().memoizedState;
}
function Uh(a, b, c, d) {
var e = Hh();
R.flags |= a;
e.memoizedState = Rh(1 | b, c, void 0, void 0 === d ? null : d);
}
function Vh(a, b, c, d) {
var e = Ih();
d = void 0 === d ? null : d;
var f = void 0;
if (null !== S) {
var g = S.memoizedState;
f = g.destroy;
if (null !== d && Bh(d, g.deps)) {
Rh(b, c, f, d);
return;
}
}
R.flags |= a;
e.memoizedState = Rh(1 | b, c, f, d);
}
function Wh(a, b) {
return Uh(516, 4, a, b);
}
function Xh(a, b) {
return Vh(516, 4, a, b);
}
function Yh(a, b) {
return Vh(4, 2, a, b);
}
function Zh(a, b) {
if ("function" === typeof b)
return (
(a = a()),
b(a),
function () {
b(null);
}
);
if (null !== b && void 0 !== b)
return (
(a = a()),
(b.current = a),
function () {
b.current = null;
}
);
}
function $h(a, b, c) {
c = null !== c && void 0 !== c ? c.concat([a]) : null;
return Vh(4, 2, Zh.bind(null, b, a), c);
}
function ai() {}
function bi(a, b) {
var c = Ih();
b = void 0 === b ? null : b;
var d = c.memoizedState;
if (null !== d && null !== b && Bh(b, d[1])) return d[0];
c.memoizedState = [a, b];
return a;
}
function ci(a, b) {
var c = Ih();
b = void 0 === b ? null : b;
var d = c.memoizedState;
if (null !== d && null !== b && Bh(b, d[1])) return d[0];
a = a();
c.memoizedState = [a, b];
return a;
}
function di(a, b) {
var c = eg();
gg(98 > c ? 98 : c, function () {
a(!0);
});
gg(97 < c ? 97 : c, function () {
var c = wh.transition;
wh.transition = 1;
try {
a(!1), b();
} finally {
wh.transition = c;
}
});
}
function Oh(a, b, c) {
var d = Hg(),
e = Ig(a),
f = {
lane: e,
action: c,
eagerReducer: null,
eagerState: null,
next: null,
},
g = b.pending;
null === g ? (f.next = f) : ((f.next = g.next), (g.next = f));
b.pending = f;
g = a.alternate;
if (a === R || (null !== g && g === R)) zh = yh = !0;
else {
if (
0 === a.lanes &&
(null === g || 0 === g.lanes) &&
((g = b.lastRenderedReducer), null !== g)
)
try {
var h = b.lastRenderedState,
k = g(h, c);
f.eagerReducer = g;
f.eagerState = k;
if (He(k, h)) return;
} catch (l) {
} finally {
}
Jg(a, e, d);
}
}
var Gh = {
readContext: vg,
useCallback: Ah,
useContext: Ah,
useEffect: Ah,
useImperativeHandle: Ah,
useLayoutEffect: Ah,
useMemo: Ah,
useReducer: Ah,
useRef: Ah,
useState: Ah,
useDebugValue: Ah,
useDeferredValue: Ah,
useTransition: Ah,
useMutableSource: Ah,
useOpaqueIdentifier: Ah,
unstable_isNewReconciler: !1,
},
Dh = {
readContext: vg,
useCallback: function (a, b) {
Hh().memoizedState = [a, void 0 === b ? null : b];
return a;
},
useContext: vg,
useEffect: Wh,
useImperativeHandle: function (a, b, c) {
c = null !== c && void 0 !== c ? c.concat([a]) : null;
return Uh(4, 2, Zh.bind(null, b, a), c);
},
useLayoutEffect: function (a, b) {
return Uh(4, 2, a, b);
},
useMemo: function (a, b) {
var c = Hh();
b = void 0 === b ? null : b;
a = a();
c.memoizedState = [a, b];
return a;
},
useReducer: function (a, b, c) {
var d = Hh();
b = void 0 !== c ? c(b) : b;
d.memoizedState = d.baseState = b;
a = d.queue = {
pending: null,
dispatch: null,
lastRenderedReducer: a,
lastRenderedState: b,
};
a = a.dispatch = Oh.bind(null, R, a);
return [d.memoizedState, a];
},
useRef: Sh,
useState: Qh,
useDebugValue: ai,
useDeferredValue: function (a) {
var b = Qh(a),
c = b[0],
d = b[1];
Wh(
function () {
var b = wh.transition;
wh.transition = 1;
try {
d(a);
} finally {
wh.transition = b;
}
},
[a]
);
return c;
},
useTransition: function () {
var a = Qh(!1),
b = a[0];
a = di.bind(null, a[1]);
Sh(a);
return [a, b];
},
useMutableSource: function (a, b, c) {
var d = Hh();
d.memoizedState = {
refs: {
getSnapshot: b,
setSnapshot: null,
},
source: a,
subscribe: c,
};
return Nh(d, a, b, c);
},
useOpaqueIdentifier: function () {
if (lh) {
var a = !1,
b = uf(function () {
a ||
((a = !0),
c("r:" + (tf++).toString(36)));
throw Error(y(355));
}),
c = Qh(b)[1];
0 === (R.mode & 2) &&
((R.flags |= 516),
Rh(
5,
function () {
c("r:" + (tf++).toString(36));
},
void 0,
null
));
return b;
}
b = "r:" + (tf++).toString(36);
Qh(b);
return b;
},
unstable_isNewReconciler: !1,
},
Eh = {
readContext: vg,
useCallback: bi,
useContext: vg,
useEffect: Xh,
useImperativeHandle: $h,
useLayoutEffect: Yh,
useMemo: ci,
useReducer: Kh,
useRef: Th,
useState: function () {
return Kh(Jh);
},
useDebugValue: ai,
useDeferredValue: function (a) {
var b = Kh(Jh),
c = b[0],
d = b[1];
Xh(
function () {
var b = wh.transition;
wh.transition = 1;
try {
d(a);
} finally {
wh.transition = b;
}
},
[a]
);
return c;
},
useTransition: function () {
var a = Kh(Jh)[0];
return [Th().current, a];
},
useMutableSource: Ph,
useOpaqueIdentifier: function () {
return Kh(Jh)[0];
},
unstable_isNewReconciler: !1,
},
Fh = {
readContext: vg,
useCallback: bi,
useContext: vg,
useEffect: Xh,
useImperativeHandle: $h,
useLayoutEffect: Yh,
useMemo: ci,
useReducer: Lh,
useRef: Th,
useState: function () {
return Lh(Jh);
},
useDebugValue: ai,
useDeferredValue: function (a) {
var b = Lh(Jh),
c = b[0],
d = b[1];
Xh(
function () {
var b = wh.transition;
wh.transition = 1;
try {
d(a);
} finally {
wh.transition = b;
}
},
[a]
);
return c;
},
useTransition: function () {
var a = Lh(Jh)[0];
return [Th().current, a];
},
useMutableSource: Ph,
useOpaqueIdentifier: function () {
return Lh(Jh)[0];
},
unstable_isNewReconciler: !1,
},
ei = ra.ReactCurrentOwner,
ug = !1;
function fi(a, b, c, d) {
b.child = null === a ? Zg(b, null, c, d) : Yg(b, a.child, c, d);
}
function gi(a, b, c, d, e) {
c = c.render;
var f = b.ref;
tg(b, e);
d = Ch(a, b, c, d, f, e);
if (null !== a && !ug)
return (
(b.updateQueue = a.updateQueue),
(b.flags &= -517),
(a.lanes &= ~e),
hi(a, b, e)
);
b.flags |= 1;
fi(a, b, d, e);
return b.child;
}
function ii(a, b, c, d, e, f) {
if (null === a) {
var g = c.type;
if (
"function" === typeof g &&
!ji(g) &&
void 0 === g.defaultProps &&
null === c.compare &&
void 0 === c.defaultProps
)
return (b.tag = 15), (b.type = g), ki(a, b, g, d, e, f);
a = Vg(c.type, null, d, b, b.mode, f);
a.ref = b.ref;
a.return = b;
return (b.child = a);
}
g = a.child;
if (
0 === (e & f) &&
((e = g.memoizedProps),
(c = c.compare),
(c = null !== c ? c : Je),
c(e, d) && a.ref === b.ref)
)
return hi(a, b, f);
b.flags |= 1;
a = Tg(g, d);
a.ref = b.ref;
a.return = b;
return (b.child = a);
}
function ki(a, b, c, d, e, f) {
if (null !== a && Je(a.memoizedProps, d) && a.ref === b.ref)
if (((ug = !1), 0 !== (f & e)))
0 !== (a.flags & 16384) && (ug = !0);
else return (b.lanes = a.lanes), hi(a, b, f);
return li(a, b, c, d, f);
}
function mi(a, b, c) {
var d = b.pendingProps,
e = d.children,
f = null !== a ? a.memoizedState : null;
if (
"hidden" === d.mode ||
"unstable-defer-without-hiding" === d.mode
)
if (0 === (b.mode & 4))
(b.memoizedState = {
baseLanes: 0,
}),
ni(b, c);
else if (0 !== (c & 1073741824))
(b.memoizedState = {
baseLanes: 0,
}),
ni(b, null !== f ? f.baseLanes : c);
else
return (
(a = null !== f ? f.baseLanes | c : c),
(b.lanes = b.childLanes = 1073741824),
(b.memoizedState = {
baseLanes: a,
}),
ni(b, a),
null
);
else
null !== f
? ((d = f.baseLanes | c), (b.memoizedState = null))
: (d = c),
ni(b, d);
fi(a, b, e, c);
return b.child;
}
function oi(a, b) {
var c = b.ref;
if ((null === a && null !== c) || (null !== a && a.ref !== c))
b.flags |= 128;
}
function li(a, b, c, d, e) {
var f = Ff(c) ? Df : M.current;
f = Ef(b, f);
tg(b, e);
c = Ch(a, b, c, d, f, e);
if (null !== a && !ug)
return (
(b.updateQueue = a.updateQueue),
(b.flags &= -517),
(a.lanes &= ~e),
hi(a, b, e)
);
b.flags |= 1;
fi(a, b, c, e);
return b.child;
}
function pi(a, b, c, d, e) {
if (Ff(c)) {
var f = !0;
Jf(b);
} else f = !1;
tg(b, e);
if (null === b.stateNode)
null !== a &&
((a.alternate = null),
(b.alternate = null),
(b.flags |= 2)),
Mg(b, c, d),
Og(b, c, d, e),
(d = !0);
else if (null === a) {
var g = b.stateNode,
h = b.memoizedProps;
g.props = h;
var k = g.context,
l = c.contextType;
"object" === typeof l && null !== l
? (l = vg(l))
: ((l = Ff(c) ? Df : M.current), (l = Ef(b, l)));
var n = c.getDerivedStateFromProps,
A =
"function" === typeof n ||
"function" === typeof g.getSnapshotBeforeUpdate;
A ||
("function" !==
typeof g.UNSAFE_componentWillReceiveProps &&
"function" !==
typeof g.componentWillReceiveProps) ||
((h !== d || k !== l) && Ng(b, g, d, l));
wg = !1;
var p = b.memoizedState;
g.state = p;
Cg(b, d, g, e);
k = b.memoizedState;
h !== d || p !== k || N.current || wg
? ("function" === typeof n &&
(Gg(b, c, n, d), (k = b.memoizedState)),
(h = wg || Lg(b, c, h, d, p, k, l))
? (A ||
("function" !==
typeof g.UNSAFE_componentWillMount &&
"function" !==
typeof g.componentWillMount) ||
("function" ===
typeof g.componentWillMount &&
g.componentWillMount(),
"function" ===
typeof g.UNSAFE_componentWillMount &&
g.UNSAFE_componentWillMount()),
"function" === typeof g.componentDidMount &&
(b.flags |= 4))
: ("function" === typeof g.componentDidMount &&
(b.flags |= 4),
(b.memoizedProps = d),
(b.memoizedState = k)),
(g.props = d),
(g.state = k),
(g.context = l),
(d = h))
: ("function" === typeof g.componentDidMount &&
(b.flags |= 4),
(d = !1));
} else {
g = b.stateNode;
yg(a, b);
h = b.memoizedProps;
l = b.type === b.elementType ? h : lg(b.type, h);
g.props = l;
A = b.pendingProps;
p = g.context;
k = c.contextType;
"object" === typeof k && null !== k
? (k = vg(k))
: ((k = Ff(c) ? Df : M.current), (k = Ef(b, k)));
var C = c.getDerivedStateFromProps;
(n =
"function" === typeof C ||
"function" === typeof g.getSnapshotBeforeUpdate) ||
("function" !==
typeof g.UNSAFE_componentWillReceiveProps &&
"function" !==
typeof g.componentWillReceiveProps) ||
((h !== A || p !== k) && Ng(b, g, d, k));
wg = !1;
p = b.memoizedState;
g.state = p;
Cg(b, d, g, e);
var x = b.memoizedState;
h !== A || p !== x || N.current || wg
? ("function" === typeof C &&
(Gg(b, c, C, d), (x = b.memoizedState)),
(l = wg || Lg(b, c, l, d, p, x, k))
? (n ||
("function" !==
typeof g.UNSAFE_componentWillUpdate &&
"function" !==
typeof g.componentWillUpdate) ||
("function" ===
typeof g.componentWillUpdate &&
g.componentWillUpdate(d, x, k),
"function" ===
typeof g.UNSAFE_componentWillUpdate &&
g.UNSAFE_componentWillUpdate(d, x, k)),
"function" === typeof g.componentDidUpdate &&
(b.flags |= 4),
"function" ===
typeof g.getSnapshotBeforeUpdate &&
(b.flags |= 256))
: ("function" !== typeof g.componentDidUpdate ||
(h === a.memoizedProps &&
p === a.memoizedState) ||
(b.flags |= 4),
"function" !==
typeof g.getSnapshotBeforeUpdate ||
(h === a.memoizedProps &&
p === a.memoizedState) ||
(b.flags |= 256),
(b.memoizedProps = d),
(b.memoizedState = x)),
(g.props = d),
(g.state = x),
(g.context = k),
(d = l))
: ("function" !== typeof g.componentDidUpdate ||
(h === a.memoizedProps &&
p === a.memoizedState) ||
(b.flags |= 4),
"function" !== typeof g.getSnapshotBeforeUpdate ||
(h === a.memoizedProps &&
p === a.memoizedState) ||
(b.flags |= 256),
(d = !1));
}
return qi(a, b, c, d, f, e);
}
function qi(a, b, c, d, e, f) {
oi(a, b);
var g = 0 !== (b.flags & 64);
if (!d && !g) return e && Kf(b, c, !1), hi(a, b, f);
d = b.stateNode;
ei.current = b;
var h =
g && "function" !== typeof c.getDerivedStateFromError
? null
: d.render();
b.flags |= 1;
null !== a && g
? ((b.child = Yg(b, a.child, null, f)),
(b.child = Yg(b, null, h, f)))
: fi(a, b, h, f);
b.memoizedState = d.state;
e && Kf(b, c, !0);
return b.child;
}
function ri(a) {
var b = a.stateNode;
b.pendingContext
? Hf(a, b.pendingContext, b.pendingContext !== b.context)
: b.context && Hf(a, b.context, !1);
eh(a, b.containerInfo);
}
var si = {
dehydrated: null,
retryLane: 0,
};
function ti(a, b, c) {
var d = b.pendingProps,
e = P.current,
f = !1,
g;
(g = 0 !== (b.flags & 64)) ||
(g =
null !== a && null === a.memoizedState
? !1
: 0 !== (e & 2));
g
? ((f = !0), (b.flags &= -65))
: (null !== a && null === a.memoizedState) ||
void 0 === d.fallback ||
!0 === d.unstable_avoidThisFallback ||
(e |= 1);
I(P, e & 1);
if (null === a) {
void 0 !== d.fallback && ph(b);
a = d.children;
e = d.fallback;
if (f)
return (
(a = ui(b, a, e, c)),
(b.child.memoizedState = {
baseLanes: c,
}),
(b.memoizedState = si),
a
);
if ("number" === typeof d.unstable_expectedLoadTime)
return (
(a = ui(b, a, e, c)),
(b.child.memoizedState = {
baseLanes: c,
}),
(b.memoizedState = si),
(b.lanes = 33554432),
a
);
c = vi(
{
mode: "visible",
children: a,
},
b.mode,
c,
null
);
c.return = b;
return (b.child = c);
}
if (null !== a.memoizedState) {
if (f)
return (
(d = wi(a, b, d.children, d.fallback, c)),
(f = b.child),
(e = a.child.memoizedState),
(f.memoizedState =
null === e
? {
baseLanes: c,
}
: {
baseLanes: e.baseLanes | c,
}),
(f.childLanes = a.childLanes & ~c),
(b.memoizedState = si),
d
);
c = xi(a, b, d.children, c);
b.memoizedState = null;
return c;
}
if (f)
return (
(d = wi(a, b, d.children, d.fallback, c)),
(f = b.child),
(e = a.child.memoizedState),
(f.memoizedState =
null === e
? {
baseLanes: c,
}
: {
baseLanes: e.baseLanes | c,
}),
(f.childLanes = a.childLanes & ~c),
(b.memoizedState = si),
d
);
c = xi(a, b, d.children, c);
b.memoizedState = null;
return c;
}
function ui(a, b, c, d) {
var e = a.mode,
f = a.child;
b = {
mode: "hidden",
children: b,
};
0 === (e & 2) && null !== f
? ((f.childLanes = 0), (f.pendingProps = b))
: (f = vi(b, e, 0, null));
c = Xg(c, e, d, null);
f.return = a;
c.return = a;
f.sibling = c;
a.child = f;
return c;
}
function xi(a, b, c, d) {
var e = a.child;
a = e.sibling;
c = Tg(e, {
mode: "visible",
children: c,
});
0 === (b.mode & 2) && (c.lanes = d);
c.return = b;
c.sibling = null;
null !== a &&
((a.nextEffect = null),
(a.flags = 8),
(b.firstEffect = b.lastEffect = a));
return (b.child = c);
}
function wi(a, b, c, d, e) {
var f = b.mode,
g = a.child;
a = g.sibling;
var h = {
mode: "hidden",
children: c,
};
0 === (f & 2) && b.child !== g
? ((c = b.child),
(c.childLanes = 0),
(c.pendingProps = h),
(g = c.lastEffect),
null !== g
? ((b.firstEffect = c.firstEffect),
(b.lastEffect = g),
(g.nextEffect = null))
: (b.firstEffect = b.lastEffect = null))
: (c = Tg(g, h));
null !== a
? (d = Tg(a, d))
: ((d = Xg(d, f, e, null)), (d.flags |= 2));
d.return = b;
c.return = b;
c.sibling = d;
b.child = c;
return d;
}
function yi(a, b) {
a.lanes |= b;
var c = a.alternate;
null !== c && (c.lanes |= b);
sg(a.return, b);
}
function zi(a, b, c, d, e, f) {
var g = a.memoizedState;
null === g
? (a.memoizedState = {
isBackwards: b,
rendering: null,
renderingStartTime: 0,
last: d,
tail: c,
tailMode: e,
lastEffect: f,
})
: ((g.isBackwards = b),
(g.rendering = null),
(g.renderingStartTime = 0),
(g.last = d),
(g.tail = c),
(g.tailMode = e),
(g.lastEffect = f));
}
function Ai(a, b, c) {
var d = b.pendingProps,
e = d.revealOrder,
f = d.tail;
fi(a, b, d.children, c);
d = P.current;
if (0 !== (d & 2)) (d = (d & 1) | 2), (b.flags |= 64);
else {
if (null !== a && 0 !== (a.flags & 64))
a: for (a = b.child; null !== a; ) {
if (13 === a.tag)
null !== a.memoizedState && yi(a, c);
else if (19 === a.tag) yi(a, c);
else if (null !== a.child) {
a.child.return = a;
a = a.child;
continue;
}
if (a === b) break a;
for (; null === a.sibling; ) {
if (null === a.return || a.return === b)
break a;
a = a.return;
}
a.sibling.return = a.return;
a = a.sibling;
}
d &= 1;
}
I(P, d);
if (0 === (b.mode & 2)) b.memoizedState = null;
else
switch (e) {
case "forwards":
c = b.child;
for (e = null; null !== c; )
(a = c.alternate),
null !== a && null === ih(a) && (e = c),
(c = c.sibling);
c = e;
null === c
? ((e = b.child), (b.child = null))
: ((e = c.sibling), (c.sibling = null));
zi(b, !1, e, c, f, b.lastEffect);
break;
case "backwards":
c = null;
e = b.child;
for (b.child = null; null !== e; ) {
a = e.alternate;
if (null !== a && null === ih(a)) {
b.child = e;
break;
}
a = e.sibling;
e.sibling = c;
c = e;
e = a;
}
zi(b, !0, c, null, f, b.lastEffect);
break;
case "together":
zi(b, !1, null, null, void 0, b.lastEffect);
break;
default:
b.memoizedState = null;
}
return b.child;
}
function hi(a, b, c) {
null !== a && (b.dependencies = a.dependencies);
Dg |= b.lanes;
if (0 !== (c & b.childLanes)) {
if (null !== a && b.child !== a.child) throw Error(y(153));
if (null !== b.child) {
a = b.child;
c = Tg(a, a.pendingProps);
b.child = c;
for (c.return = b; null !== a.sibling; )
(a = a.sibling),
(c = c.sibling = Tg(a, a.pendingProps)),
(c.return = b);
c.sibling = null;
}
return b.child;
}
return null;
}
var Bi, Ci, Di, Ei;
Bi = function (a, b) {
for (var c = b.child; null !== c; ) {
if (5 === c.tag || 6 === c.tag) a.appendChild(c.stateNode);
else if (4 !== c.tag && null !== c.child) {
c.child.return = c;
c = c.child;
continue;
}
if (c === b) break;
for (; null === c.sibling; ) {
if (null === c.return || c.return === b) return;
c = c.return;
}
c.sibling.return = c.return;
c = c.sibling;
}
};
Ci = function () {};
Di = function (a, b, c, d) {
var e = a.memoizedProps;
if (e !== d) {
a = b.stateNode;
dh(ah.current);
var f = null;
switch (c) {
case "input":
e = Ya(a, e);
d = Ya(a, d);
f = [];
break;
case "option":
e = eb(a, e);
d = eb(a, d);
f = [];
break;
case "select":
e = m({}, e, {
value: void 0,
});
d = m({}, d, {
value: void 0,
});
f = [];
break;
case "textarea":
e = gb(a, e);
d = gb(a, d);
f = [];
break;
default:
"function" !== typeof e.onClick &&
"function" === typeof d.onClick &&
(a.onclick = jf);
}
vb(c, d);
var g;
c = null;
for (l in e)
if (
!d.hasOwnProperty(l) &&
e.hasOwnProperty(l) &&
null != e[l]
)
if ("style" === l) {
var h = e[l];
for (g in h)
h.hasOwnProperty(g) &&
(c || (c = {}), (c[g] = ""));
} else
"dangerouslySetInnerHTML" !== l &&
"children" !== l &&
"suppressContentEditableWarning" !== l &&
"suppressHydrationWarning" !== l &&
"autoFocus" !== l &&
(ca.hasOwnProperty(l)
? f || (f = [])
: (f = f || []).push(l, null));
for (l in d) {
var k = d[l];
h = null != e ? e[l] : void 0;
if (
d.hasOwnProperty(l) &&
k !== h &&
(null != k || null != h)
)
if ("style" === l)
if (h) {
for (g in h)
!h.hasOwnProperty(g) ||
(k && k.hasOwnProperty(g)) ||
(c || (c = {}), (c[g] = ""));
for (g in k)
k.hasOwnProperty(g) &&
h[g] !== k[g] &&
(c || (c = {}), (c[g] = k[g]));
} else
c || (f || (f = []), f.push(l, c)), (c = k);
else
"dangerouslySetInnerHTML" === l
? ((k = k ? k.__html : void 0),
(h = h ? h.__html : void 0),
null != k &&
h !== k &&
(f = f || []).push(l, k))
: "children" === l
? ("string" !== typeof k &&
"number" !== typeof k) ||
(f = f || []).push(l, "" + k)
: "suppressContentEditableWarning" !== l &&
"suppressHydrationWarning" !== l &&
(ca.hasOwnProperty(l)
? (null != k &&
"onScroll" === l &&
G("scroll", a),
f || h === k || (f = []))
: "object" === typeof k &&
null !== k &&
k.$$typeof === Ga
? k.toString()
: (f = f || []).push(l, k));
}
c && (f = f || []).push("style", c);
var l = f;
if ((b.updateQueue = l)) b.flags |= 4;
}
};
Ei = function (a, b, c, d) {
c !== d && (b.flags |= 4);
};
function Fi(a, b) {
if (!lh)
switch (a.tailMode) {
case "hidden":
b = a.tail;
for (var c = null; null !== b; )
null !== b.alternate && (c = b),
(b = b.sibling);
null === c ? (a.tail = null) : (c.sibling = null);
break;
case "collapsed":
c = a.tail;
for (var d = null; null !== c; )
null !== c.alternate && (d = c),
(c = c.sibling);
null === d
? b || null === a.tail
? (a.tail = null)
: (a.tail.sibling = null)
: (d.sibling = null);
}
}
function Gi(a, b, c) {
var d = b.pendingProps;
switch (b.tag) {
case 2:
case 16:
case 15:
case 0:
case 11:
case 7:
case 8:
case 12:
case 9:
case 14:
return null;
case 1:
return Ff(b.type) && Gf(), null;
case 3:
fh();
H(N);
H(M);
uh();
d = b.stateNode;
d.pendingContext &&
((d.context = d.pendingContext),
(d.pendingContext = null));
if (null === a || null === a.child)
rh(b)
? (b.flags |= 4)
: d.hydrate || (b.flags |= 256);
Ci(b);
return null;
case 5:
hh(b);
var e = dh(ch.current);
c = b.type;
if (null !== a && null != b.stateNode)
Di(a, b, c, d, e),
a.ref !== b.ref && (b.flags |= 128);
else {
if (!d) {
if (null === b.stateNode) throw Error(y(166));
return null;
}
a = dh(ah.current);
if (rh(b)) {
d = b.stateNode;
c = b.type;
var f = b.memoizedProps;
d[wf] = b;
d[xf] = f;
switch (c) {
case "dialog":
G("cancel", d);
G("close", d);
break;
case "iframe":
case "object":
case "embed":
G("load", d);
break;
case "video":
case "audio":
for (a = 0; a < Xe.length; a++)
G(Xe[a], d);
break;
case "source":
G("error", d);
break;
case "img":
case "image":
case "link":
G("error", d);
G("load", d);
break;
case "details":
G("toggle", d);
break;
case "input":
Za(d, f);
G("invalid", d);
break;
case "select":
d._wrapperState = {
wasMultiple: !!f.multiple,
};
G("invalid", d);
break;
case "textarea":
hb(d, f), G("invalid", d);
}
vb(c, f);
a = null;
for (var g in f)
f.hasOwnProperty(g) &&
((e = f[g]),
"children" === g
? "string" === typeof e
? d.textContent !== e &&
(a = ["children", e])
: "number" === typeof e &&
d.textContent !== "" + e &&
(a = ["children", "" + e])
: ca.hasOwnProperty(g) &&
null != e &&
"onScroll" === g &&
G("scroll", d));
switch (c) {
case "input":
Va(d);
cb(d, f, !0);
break;
case "textarea":
Va(d);
jb(d);
break;
case "select":
case "option":
break;
default:
"function" === typeof f.onClick &&
(d.onclick = jf);
}
d = a;
b.updateQueue = d;
null !== d && (b.flags |= 4);
} else {
g = 9 === e.nodeType ? e : e.ownerDocument;
a === kb.html && (a = lb(c));
a === kb.html
? "script" === c
? ((a = g.createElement("div")),
(a.innerHTML =
"<script>\x3c/script>"),
(a = a.removeChild(a.firstChild)))
: "string" === typeof d.is
? (a = g.createElement(c, {
is: d.is,
}))
: ((a = g.createElement(c)),
"select" === c &&
((g = a),
d.multiple
? (g.multiple = !0)
: d.size &&
(g.size = d.size)))
: (a = g.createElementNS(a, c));
a[wf] = b;
a[xf] = d;
Bi(a, b, !1, !1);
b.stateNode = a;
g = wb(c, d);
switch (c) {
case "dialog":
G("cancel", a);
G("close", a);
e = d;
break;
case "iframe":
case "object":
case "embed":
G("load", a);
e = d;
break;
case "video":
case "audio":
for (e = 0; e < Xe.length; e++)
G(Xe[e], a);
e = d;
break;
case "source":
G("error", a);
e = d;
break;
case "img":
case "image":
case "link":
G("error", a);
G("load", a);
e = d;
break;
case "details":
G("toggle", a);
e = d;
break;
case "input":
Za(a, d);
e = Ya(a, d);
G("invalid", a);
break;
case "option":
e = eb(a, d);
break;
case "select":
a._wrapperState = {
wasMultiple: !!d.multiple,
};
e = m({}, d, {
value: void 0,
});
G("invalid", a);
break;
case "textarea":
hb(a, d);
e = gb(a, d);
G("invalid", a);
break;
default:
e = d;
}
vb(c, e);
var h = e;
for (f in h)
if (h.hasOwnProperty(f)) {
var k = h[f];
"style" === f
? tb(a, k)
: "dangerouslySetInnerHTML" === f
? ((k = k ? k.__html : void 0),
null != k && ob(a, k))
: "children" === f
? "string" === typeof k
? ("textarea" !== c ||
"" !== k) &&
pb(a, k)
: "number" === typeof k &&
pb(a, "" + k)
: "suppressContentEditableWarning" !==
f &&
"suppressHydrationWarning" !==
f &&
"autoFocus" !== f &&
(ca.hasOwnProperty(f)
? null != k &&
"onScroll" === f &&
G("scroll", a)
: null != k &&
qa(a, f, k, g));
}
switch (c) {
case "input":
Va(a);
cb(a, d, !1);
break;
case "textarea":
Va(a);
jb(a);
break;
case "option":
null != d.value &&
a.setAttribute(
"value",
"" + Sa(d.value)
);
break;
case "select":
a.multiple = !!d.multiple;
f = d.value;
null != f
? fb(a, !!d.multiple, f, !1)
: null != d.defaultValue &&
fb(
a,
!!d.multiple,
d.defaultValue,
!0
);
break;
default:
"function" === typeof e.onClick &&
(a.onclick = jf);
}
mf(c, d) && (b.flags |= 4);
}
null !== b.ref && (b.flags |= 128);
}
return null;
case 6:
if (a && null != b.stateNode)
Ei(a, b, a.memoizedProps, d);
else {
if ("string" !== typeof d && null === b.stateNode)
throw Error(y(166));
c = dh(ch.current);
dh(ah.current);
rh(b)
? ((d = b.stateNode),
(c = b.memoizedProps),
(d[wf] = b),
d.nodeValue !== c && (b.flags |= 4))
: ((d = (
9 === c.nodeType ? c : c.ownerDocument
).createTextNode(d)),
(d[wf] = b),
(b.stateNode = d));
}
return null;
case 13:
H(P);
d = b.memoizedState;
if (0 !== (b.flags & 64)) return (b.lanes = c), b;
d = null !== d;
c = !1;
null === a
? void 0 !== b.memoizedProps.fallback && rh(b)
: (c = null !== a.memoizedState);
if (d && !c && 0 !== (b.mode & 2))
if (
(null === a &&
!0 !==
b.memoizedProps
.unstable_avoidThisFallback) ||
0 !== (P.current & 1)
)
0 === V && (V = 3);
else {
if (0 === V || 3 === V) V = 4;
null === U ||
(0 === (Dg & 134217727) &&
0 === (Hi & 134217727)) ||
Ii(U, W);
}
if (d || c) b.flags |= 4;
return null;
case 4:
return (
fh(),
Ci(b),
null === a && cf(b.stateNode.containerInfo),
null
);
case 10:
return rg(b), null;
case 17:
return Ff(b.type) && Gf(), null;
case 19:
H(P);
d = b.memoizedState;
if (null === d) return null;
f = 0 !== (b.flags & 64);
g = d.rendering;
if (null === g)
if (f) Fi(d, !1);
else {
if (
0 !== V ||
(null !== a && 0 !== (a.flags & 64))
)
for (a = b.child; null !== a; ) {
g = ih(a);
if (null !== g) {
b.flags |= 64;
Fi(d, !1);
f = g.updateQueue;
null !== f &&
((b.updateQueue = f),
(b.flags |= 4));
null === d.lastEffect &&
(b.firstEffect = null);
b.lastEffect = d.lastEffect;
d = c;
for (c = b.child; null !== c; )
(f = c),
(a = d),
(f.flags &= 2),
(f.nextEffect = null),
(f.firstEffect = null),
(f.lastEffect = null),
(g = f.alternate),
null === g
? ((f.childLanes = 0),
(f.lanes = a),
(f.child = null),
(f.memoizedProps =
null),
(f.memoizedState =
null),
(f.updateQueue =
null),
(f.dependencies =
null),
(f.stateNode = null))
: ((f.childLanes =
g.childLanes),
(f.lanes = g.lanes),
(f.child = g.child),
(f.memoizedProps =
g.memoizedProps),
(f.memoizedState =
g.memoizedState),
(f.updateQueue =
g.updateQueue),
(f.type = g.type),
(a = g.dependencies),
(f.dependencies =
null === a
? null
: {
lanes: a.lanes,
firstContext:
a.firstContext,
})),
(c = c.sibling);
I(P, (P.current & 1) | 2);
return b.child;
}
a = a.sibling;
}
null !== d.tail &&
O() > Ji &&
((b.flags |= 64),
(f = !0),
Fi(d, !1),
(b.lanes = 33554432));
}
else {
if (!f)
if (((a = ih(g)), null !== a)) {
if (
((b.flags |= 64),
(f = !0),
(c = a.updateQueue),
null !== c &&
((b.updateQueue = c),
(b.flags |= 4)),
Fi(d, !0),
null === d.tail &&
"hidden" === d.tailMode &&
!g.alternate &&
!lh)
)
return (
(b = b.lastEffect = d.lastEffect),
null !== b && (b.nextEffect = null),
null
);
} else
2 * O() - d.renderingStartTime > Ji &&
1073741824 !== c &&
((b.flags |= 64),
(f = !0),
Fi(d, !1),
(b.lanes = 33554432));
d.isBackwards
? ((g.sibling = b.child), (b.child = g))
: ((c = d.last),
null !== c ? (c.sibling = g) : (b.child = g),
(d.last = g));
}
return null !== d.tail
? ((c = d.tail),
(d.rendering = c),
(d.tail = c.sibling),
(d.lastEffect = b.lastEffect),
(d.renderingStartTime = O()),
(c.sibling = null),
(b = P.current),
I(P, f ? (b & 1) | 2 : b & 1),
c)
: null;
case 23:
case 24:
return (
Ki(),
null !== a &&
(null !== a.memoizedState) !==
(null !== b.memoizedState) &&
"unstable-defer-without-hiding" !== d.mode &&
(b.flags |= 4),
null
);
}
throw Error(y(156, b.tag));
}
function Li(a) {
switch (a.tag) {
case 1:
Ff(a.type) && Gf();
var b = a.flags;
return b & 4096
? ((a.flags = (b & -4097) | 64), a)
: null;
case 3:
fh();
H(N);
H(M);
uh();
b = a.flags;
if (0 !== (b & 64)) throw Error(y(285));
a.flags = (b & -4097) | 64;
return a;
case 5:
return hh(a), null;
case 13:
return (
H(P),
(b = a.flags),
b & 4096 ? ((a.flags = (b & -4097) | 64), a) : null
);
case 19:
return H(P), null;
case 4:
return fh(), null;
case 10:
return rg(a), null;
case 23:
case 24:
return Ki(), null;
default:
return null;
}
}
function Mi(a, b) {
try {
var c = "",
d = b;
do (c += Qa(d)), (d = d.return);
while (d);
var e = c;
} catch (f) {
e =
"\nError generating stack: " +
f.message +
"\n" +
f.stack;
}
return {
value: a,
source: b,
stack: e,
};
}
function Ni(a, b) {
try {
console.error(b.value);
} catch (c) {
setTimeout(function () {
throw c;
});
}
}
var Oi = "function" === typeof WeakMap ? WeakMap : Map;
function Pi(a, b, c) {
c = zg(-1, c);
c.tag = 3;
c.payload = {
element: null,
};
var d = b.value;
c.callback = function () {
Qi || ((Qi = !0), (Ri = d));
Ni(a, b);
};
return c;
}
function Si(a, b, c) {
c = zg(-1, c);
c.tag = 3;
var d = a.type.getDerivedStateFromError;
if ("function" === typeof d) {
var e = b.value;
c.payload = function () {
Ni(a, b);
return d(e);
};
}
var f = a.stateNode;
null !== f &&
"function" === typeof f.componentDidCatch &&
(c.callback = function () {
"function" !== typeof d &&
(null === Ti
? (Ti = new Set([this]))
: Ti.add(this),
Ni(a, b));
var c = b.stack;
this.componentDidCatch(b.value, {
componentStack: null !== c ? c : "",
});
});
return c;
}
var Ui = "function" === typeof WeakSet ? WeakSet : Set;
function Vi(a) {
var b = a.ref;
if (null !== b)
if ("function" === typeof b)
try {
b(null);
} catch (c) {
Wi(a, c);
}
else b.current = null;
}
function Xi(a, b) {
switch (b.tag) {
case 0:
case 11:
case 15:
case 22:
return;
case 1:
if (b.flags & 256 && null !== a) {
var c = a.memoizedProps,
d = a.memoizedState;
a = b.stateNode;
b = a.getSnapshotBeforeUpdate(
b.elementType === b.type ? c : lg(b.type, c),
d
);
a.__reactInternalSnapshotBeforeUpdate = b;
}
return;
case 3:
b.flags & 256 && qf(b.stateNode.containerInfo);
return;
case 5:
case 6:
case 4:
case 17:
return;
}
throw Error(y(163));
}
function Yi(a, b, c) {
switch (c.tag) {
case 0:
case 11:
case 15:
case 22:
b = c.updateQueue;
b = null !== b ? b.lastEffect : null;
if (null !== b) {
a = b = b.next;
do {
if (3 === (a.tag & 3)) {
var d = a.create;
a.destroy = d();
}
a = a.next;
} while (a !== b);
}
b = c.updateQueue;
b = null !== b ? b.lastEffect : null;
if (null !== b) {
a = b = b.next;
do {
var e = a;
d = e.next;
e = e.tag;
0 !== (e & 4) &&
0 !== (e & 1) &&
(Zi(c, a), $i(c, a));
a = d;
} while (a !== b);
}
return;
case 1:
a = c.stateNode;
c.flags & 4 &&
(null === b
? a.componentDidMount()
: ((d =
c.elementType === c.type
? b.memoizedProps
: lg(c.type, b.memoizedProps)),
a.componentDidUpdate(
d,
b.memoizedState,
a.__reactInternalSnapshotBeforeUpdate
)));
b = c.updateQueue;
null !== b && Eg(c, b, a);
return;
case 3:
b = c.updateQueue;
if (null !== b) {
a = null;
if (null !== c.child)
switch (c.child.tag) {
case 5:
a = c.child.stateNode;
break;
case 1:
a = c.child.stateNode;
}
Eg(c, b, a);
}
return;
case 5:
a = c.stateNode;
null === b &&
c.flags & 4 &&
mf(c.type, c.memoizedProps) &&
a.focus();
return;
case 6:
return;
case 4:
return;
case 12:
return;
case 13:
null === c.memoizedState &&
((c = c.alternate),
null !== c &&
((c = c.memoizedState),
null !== c &&
((c = c.dehydrated), null !== c && Cc(c))));
return;
case 19:
case 17:
case 20:
case 21:
case 23:
case 24:
return;
}
throw Error(y(163));
}
function aj(a, b) {
for (var c = a; ; ) {
if (5 === c.tag) {
var d = c.stateNode;
if (b)
(d = d.style),
"function" === typeof d.setProperty
? d.setProperty(
"display",
"none",
"important"
)
: (d.display = "none");
else {
d = c.stateNode;
var e = c.memoizedProps.style;
e =
void 0 !== e &&
null !== e &&
e.hasOwnProperty("display")
? e.display
: null;
d.style.display = sb("display", e);
}
} else if (6 === c.tag)
c.stateNode.nodeValue = b ? "" : c.memoizedProps;
else if (
((23 !== c.tag && 24 !== c.tag) ||
null === c.memoizedState ||
c === a) &&
null !== c.child
) {
c.child.return = c;
c = c.child;
continue;
}
if (c === a) break;
for (; null === c.sibling; ) {
if (null === c.return || c.return === a) return;
c = c.return;
}
c.sibling.return = c.return;
c = c.sibling;
}
}
function bj(a, b) {
if (Mf && "function" === typeof Mf.onCommitFiberUnmount)
try {
Mf.onCommitFiberUnmount(Lf, b);
} catch (f) {}
switch (b.tag) {
case 0:
case 11:
case 14:
case 15:
case 22:
a = b.updateQueue;
if (null !== a && ((a = a.lastEffect), null !== a)) {
var c = (a = a.next);
do {
var d = c,
e = d.destroy;
d = d.tag;
if (void 0 !== e)
if (0 !== (d & 4)) Zi(b, c);
else {
d = b;
try {
e();
} catch (f) {
Wi(d, f);
}
}
c = c.next;
} while (c !== a);
}
break;
case 1:
Vi(b);
a = b.stateNode;
if ("function" === typeof a.componentWillUnmount)
try {
(a.props = b.memoizedProps),
(a.state = b.memoizedState),
a.componentWillUnmount();
} catch (f) {
Wi(b, f);
}
break;
case 5:
Vi(b);
break;
case 4:
cj(a, b);
}
}
function dj(a) {
a.alternate = null;
a.child = null;
a.dependencies = null;
a.firstEffect = null;
a.lastEffect = null;
a.memoizedProps = null;
a.memoizedState = null;
a.pendingProps = null;
a.return = null;
a.updateQueue = null;
}
function ej(a) {
return 5 === a.tag || 3 === a.tag || 4 === a.tag;
}
function fj(a) {
a: {
for (var b = a.return; null !== b; ) {
if (ej(b)) break a;
b = b.return;
}
throw Error(y(160));
}
var c = b;
b = c.stateNode;
switch (c.tag) {
case 5:
var d = !1;
break;
case 3:
b = b.containerInfo;
d = !0;
break;
case 4:
b = b.containerInfo;
d = !0;
break;
default:
throw Error(y(161));
}
c.flags & 16 && (pb(b, ""), (c.flags &= -17));
a: b: for (c = a; ; ) {
for (; null === c.sibling; ) {
if (null === c.return || ej(c.return)) {
c = null;
break a;
}
c = c.return;
}
c.sibling.return = c.return;
for (
c = c.sibling;
5 !== c.tag && 6 !== c.tag && 18 !== c.tag;
) {
if (c.flags & 2) continue b;
if (null === c.child || 4 === c.tag) continue b;
else (c.child.return = c), (c = c.child);
}
if (!(c.flags & 2)) {
c = c.stateNode;
break a;
}
}
d ? gj(a, c, b) : hj(a, c, b);
}
function gj(a, b, c) {
var d = a.tag,
e = 5 === d || 6 === d;
if (e)
(a = e ? a.stateNode : a.stateNode.instance),
b
? 8 === c.nodeType
? c.parentNode.insertBefore(a, b)
: c.insertBefore(a, b)
: (8 === c.nodeType
? ((b = c.parentNode), b.insertBefore(a, c))
: ((b = c), b.appendChild(a)),
(c = c._reactRootContainer),
(null !== c && void 0 !== c) ||
null !== b.onclick ||
(b.onclick = jf));
else if (4 !== d && ((a = a.child), null !== a))
for (gj(a, b, c), a = a.sibling; null !== a; )
gj(a, b, c), (a = a.sibling);
}
function hj(a, b, c) {
var d = a.tag,
e = 5 === d || 6 === d;
if (e)
(a = e ? a.stateNode : a.stateNode.instance),
b ? c.insertBefore(a, b) : c.appendChild(a);
else if (4 !== d && ((a = a.child), null !== a))
for (hj(a, b, c), a = a.sibling; null !== a; )
hj(a, b, c), (a = a.sibling);
}
function cj(a, b) {
for (var c = b, d = !1, e, f; ; ) {
if (!d) {
d = c.return;
a: for (;;) {
if (null === d) throw Error(y(160));
e = d.stateNode;
switch (d.tag) {
case 5:
f = !1;
break a;
case 3:
e = e.containerInfo;
f = !0;
break a;
case 4:
e = e.containerInfo;
f = !0;
break a;
}
d = d.return;
}
d = !0;
}
if (5 === c.tag || 6 === c.tag) {
a: for (var g = a, h = c, k = h; ; )
if ((bj(g, k), null !== k.child && 4 !== k.tag))
(k.child.return = k), (k = k.child);
else {
if (k === h) break a;
for (; null === k.sibling; ) {
if (null === k.return || k.return === h)
break a;
k = k.return;
}
k.sibling.return = k.return;
k = k.sibling;
}
f
? ((g = e),
(h = c.stateNode),
8 === g.nodeType
? g.parentNode.removeChild(h)
: g.removeChild(h))
: e.removeChild(c.stateNode);
} else if (4 === c.tag) {
if (null !== c.child) {
e = c.stateNode.containerInfo;
f = !0;
c.child.return = c;
c = c.child;
continue;
}
} else if ((bj(a, c), null !== c.child)) {
c.child.return = c;
c = c.child;
continue;
}
if (c === b) break;
for (; null === c.sibling; ) {
if (null === c.return || c.return === b) return;
c = c.return;
4 === c.tag && (d = !1);
}
c.sibling.return = c.return;
c = c.sibling;
}
}
function ij(a, b) {
switch (b.tag) {
case 0:
case 11:
case 14:
case 15:
case 22:
var c = b.updateQueue;
c = null !== c ? c.lastEffect : null;
if (null !== c) {
var d = (c = c.next);
do
3 === (d.tag & 3) &&
((a = d.destroy),
(d.destroy = void 0),
void 0 !== a && a()),
(d = d.next);
while (d !== c);
}
return;
case 1:
return;
case 5:
c = b.stateNode;
if (null != c) {
d = b.memoizedProps;
var e = null !== a ? a.memoizedProps : d;
a = b.type;
var f = b.updateQueue;
b.updateQueue = null;
if (null !== f) {
c[xf] = d;
"input" === a &&
"radio" === d.type &&
null != d.name &&
$a(c, d);
wb(a, e);
b = wb(a, d);
for (e = 0; e < f.length; e += 2) {
var g = f[e],
h = f[e + 1];
"style" === g
? tb(c, h)
: "dangerouslySetInnerHTML" === g
? ob(c, h)
: "children" === g
? pb(c, h)
: qa(c, g, h, b);
}
switch (a) {
case "input":
ab(c, d);
break;
case "textarea":
ib(c, d);
break;
case "select":
(a = c._wrapperState.wasMultiple),
(c._wrapperState.wasMultiple =
!!d.multiple),
(f = d.value),
null != f
? fb(c, !!d.multiple, f, !1)
: a !== !!d.multiple &&
(null != d.defaultValue
? fb(
c,
!!d.multiple,
d.defaultValue,
!0
)
: fb(
c,
!!d.multiple,
d.multiple
? []
: "",
!1
));
}
}
}
return;
case 6:
if (null === b.stateNode) throw Error(y(162));
b.stateNode.nodeValue = b.memoizedProps;
return;
case 3:
c = b.stateNode;
c.hydrate && ((c.hydrate = !1), Cc(c.containerInfo));
return;
case 12:
return;
case 13:
null !== b.memoizedState &&
((jj = O()), aj(b.child, !0));
kj(b);
return;
case 19:
kj(b);
return;
case 17:
return;
case 23:
case 24:
aj(b, null !== b.memoizedState);
return;
}
throw Error(y(163));
}
function kj(a) {
var b = a.updateQueue;
if (null !== b) {
a.updateQueue = null;
var c = a.stateNode;
null === c && (c = a.stateNode = new Ui());
b.forEach(function (b) {
var d = lj.bind(null, a, b);
c.has(b) || (c.add(b), b.then(d, d));
});
}
}
function mj(a, b) {
return null !== a &&
((a = a.memoizedState), null === a || null !== a.dehydrated)
? ((b = b.memoizedState),
null !== b && null === b.dehydrated)
: !1;
}
var nj = Math.ceil,
oj = ra.ReactCurrentDispatcher,
pj = ra.ReactCurrentOwner,
X = 0,
U = null,
Y = null,
W = 0,
qj = 0,
rj = Bf(0),
V = 0,
sj = null,
tj = 0,
Dg = 0,
Hi = 0,
uj = 0,
vj = null,
jj = 0,
Ji = Infinity;
function wj() {
Ji = O() + 500;
}
var Z = null,
Qi = !1,
Ri = null,
Ti = null,
xj = !1,
yj = null,
zj = 90,
Aj = [],
Bj = [],
Cj = null,
Dj = 0,
Ej = null,
Fj = -1,
Gj = 0,
Hj = 0,
Ij = null,
Jj = !1;
function Hg() {
return 0 !== (X & 48) ? O() : -1 !== Fj ? Fj : (Fj = O());
}
function Ig(a) {
a = a.mode;
if (0 === (a & 2)) return 1;
if (0 === (a & 4)) return 99 === eg() ? 1 : 2;
0 === Gj && (Gj = tj);
if (0 !== kg.transition) {
0 !== Hj && (Hj = null !== vj ? vj.pendingLanes : 0);
a = Gj;
var b = 4186112 & ~Hj;
b &= -b;
0 === b &&
((a = 4186112 & ~a),
(b = a & -a),
0 === b && (b = 8192));
return b;
}
a = eg();
0 !== (X & 4) && 98 === a
? (a = Xc(12, Gj))
: ((a = Sc(a)), (a = Xc(a, Gj)));
return a;
}
function Jg(a, b, c) {
if (50 < Dj) throw ((Dj = 0), (Ej = null), Error(y(185)));
a = Kj(a, b);
if (null === a) return null;
$c(a, b, c);
a === U && ((Hi |= b), 4 === V && Ii(a, W));
var d = eg();
1 === b
? 0 !== (X & 8) && 0 === (X & 48)
? Lj(a)
: (Mj(a, c), 0 === X && (wj(), ig()))
: (0 === (X & 4) ||
(98 !== d && 99 !== d) ||
(null === Cj ? (Cj = new Set([a])) : Cj.add(a)),
Mj(a, c));
vj = a;
}
function Kj(a, b) {
a.lanes |= b;
var c = a.alternate;
null !== c && (c.lanes |= b);
c = a;
for (a = a.return; null !== a; )
(a.childLanes |= b),
(c = a.alternate),
null !== c && (c.childLanes |= b),
(c = a),
(a = a.return);
return 3 === c.tag ? c.stateNode : null;
}
function Mj(a, b) {
for (
var c = a.callbackNode,
d = a.suspendedLanes,
e = a.pingedLanes,
f = a.expirationTimes,
g = a.pendingLanes;
0 < g;
) {
var h = 31 - Vc(g),
k = 1 << h,
l = f[h];
if (-1 === l) {
if (0 === (k & d) || 0 !== (k & e)) {
l = b;
Rc(k);
var n = F;
f[h] = 10 <= n ? l + 250 : 6 <= n ? l + 5e3 : -1;
}
} else l <= b && (a.expiredLanes |= k);
g &= ~k;
}
d = Uc(a, a === U ? W : 0);
b = F;
if (0 === d)
null !== c &&
(c !== Zf && Pf(c),
(a.callbackNode = null),
(a.callbackPriority = 0));
else {
if (null !== c) {
if (a.callbackPriority === b) return;
c !== Zf && Pf(c);
}
15 === b
? ((c = Lj.bind(null, a)),
null === ag
? ((ag = [c]), (bg = Of(Uf, jg)))
: ag.push(c),
(c = Zf))
: 14 === b
? (c = hg(99, Lj.bind(null, a)))
: ((c = Tc(b)), (c = hg(c, Nj.bind(null, a))));
a.callbackPriority = b;
a.callbackNode = c;
}
}
function Nj(a) {
Fj = -1;
Hj = Gj = 0;
if (0 !== (X & 48)) throw Error(y(327));
var b = a.callbackNode;
if (Oj() && a.callbackNode !== b) return null;
var c = Uc(a, a === U ? W : 0);
if (0 === c) return null;
var d = c;
var e = X;
X |= 16;
var f = Pj();
if (U !== a || W !== d) wj(), Qj(a, d);
do
try {
Rj();
break;
} catch (h) {
Sj(a, h);
}
while (1);
qg();
oj.current = f;
X = e;
null !== Y ? (d = 0) : ((U = null), (W = 0), (d = V));
if (0 !== (tj & Hi)) Qj(a, 0);
else if (0 !== d) {
2 === d &&
((X |= 64),
a.hydrate && ((a.hydrate = !1), qf(a.containerInfo)),
(c = Wc(a)),
0 !== c && (d = Tj(a, c)));
if (1 === d)
throw ((b = sj), Qj(a, 0), Ii(a, c), Mj(a, O()), b);
a.finishedWork = a.current.alternate;
a.finishedLanes = c;
switch (d) {
case 0:
case 1:
throw Error(y(345));
case 2:
Uj(a);
break;
case 3:
Ii(a, c);
if (
(c & 62914560) === c &&
((d = jj + 500 - O()), 10 < d)
) {
if (0 !== Uc(a, 0)) break;
e = a.suspendedLanes;
if ((e & c) !== c) {
Hg();
a.pingedLanes |= a.suspendedLanes & e;
break;
}
a.timeoutHandle = of(Uj.bind(null, a), d);
break;
}
Uj(a);
break;
case 4:
Ii(a, c);
if ((c & 4186112) === c) break;
d = a.eventTimes;
for (e = -1; 0 < c; ) {
var g = 31 - Vc(c);
f = 1 << g;
g = d[g];
g > e && (e = g);
c &= ~f;
}
c = e;
c = O() - c;
c =
(120 > c
? 120
: 480 > c
? 480
: 1080 > c
? 1080
: 1920 > c
? 1920
: 3e3 > c
? 3e3
: 4320 > c
? 4320
: 1960 * nj(c / 1960)) - c;
if (10 < c) {
a.timeoutHandle = of(Uj.bind(null, a), c);
break;
}
Uj(a);
break;
case 5:
Uj(a);
break;
default:
throw Error(y(329));
}
}
Mj(a, O());
return a.callbackNode === b ? Nj.bind(null, a) : null;
}
function Ii(a, b) {
b &= ~uj;
b &= ~Hi;
a.suspendedLanes |= b;
a.pingedLanes &= ~b;
for (a = a.expirationTimes; 0 < b; ) {
var c = 31 - Vc(b),
d = 1 << c;
a[c] = -1;
b &= ~d;
}
}
function Lj(a) {
if (0 !== (X & 48)) throw Error(y(327));
Oj();
if (a === U && 0 !== (a.expiredLanes & W)) {
var b = W;
var c = Tj(a, b);
0 !== (tj & Hi) && ((b = Uc(a, b)), (c = Tj(a, b)));
} else (b = Uc(a, 0)), (c = Tj(a, b));
0 !== a.tag &&
2 === c &&
((X |= 64),
a.hydrate && ((a.hydrate = !1), qf(a.containerInfo)),
(b = Wc(a)),
0 !== b && (c = Tj(a, b)));
if (1 === c)
throw ((c = sj), Qj(a, 0), Ii(a, b), Mj(a, O()), c);
a.finishedWork = a.current.alternate;
a.finishedLanes = b;
Uj(a);
Mj(a, O());
return null;
}
function Vj() {
if (null !== Cj) {
var a = Cj;
Cj = null;
a.forEach(function (a) {
a.expiredLanes |= 24 & a.pendingLanes;
Mj(a, O());
});
}
ig();
}
function Wj(a, b) {
var c = X;
X |= 1;
try {
return a(b);
} finally {
(X = c), 0 === X && (wj(), ig());
}
}
function Xj(a, b) {
var c = X;
X &= -2;
X |= 8;
try {
return a(b);
} finally {
(X = c), 0 === X && (wj(), ig());
}
}
function ni(a, b) {
I(rj, qj);
qj |= b;
tj |= b;
}
function Ki() {
qj = rj.current;
H(rj);
}
function Qj(a, b) {
a.finishedWork = null;
a.finishedLanes = 0;
var c = a.timeoutHandle;
-1 !== c && ((a.timeoutHandle = -1), pf(c));
if (null !== Y)
for (c = Y.return; null !== c; ) {
var d = c;
switch (d.tag) {
case 1:
d = d.type.childContextTypes;
null !== d && void 0 !== d && Gf();
break;
case 3:
fh();
H(N);
H(M);
uh();
break;
case 5:
hh(d);
break;
case 4:
fh();
break;
case 13:
H(P);
break;
case 19:
H(P);
break;
case 10:
rg(d);
break;
case 23:
case 24:
Ki();
}
c = c.return;
}
U = a;
Y = Tg(a.current, null);
W = qj = tj = b;
V = 0;
sj = null;
uj = Hi = Dg = 0;
}
function Sj(a, b) {
do {
var c = Y;
try {
qg();
vh.current = Gh;
if (yh) {
for (var d = R.memoizedState; null !== d; ) {
var e = d.queue;
null !== e && (e.pending = null);
d = d.next;
}
yh = !1;
}
xh = 0;
T = S = R = null;
zh = !1;
pj.current = null;
if (null === c || null === c.return) {
V = 1;
sj = b;
Y = null;
break;
}
a: {
var f = a,
g = c.return,
h = c,
k = b;
b = W;
h.flags |= 2048;
h.firstEffect = h.lastEffect = null;
if (
null !== k &&
"object" === typeof k &&
"function" === typeof k.then
) {
var l = k;
if (0 === (h.mode & 2)) {
var n = h.alternate;
n
? ((h.updateQueue = n.updateQueue),
(h.memoizedState = n.memoizedState),
(h.lanes = n.lanes))
: ((h.updateQueue = null),
(h.memoizedState = null));
}
var A = 0 !== (P.current & 1),
p = g;
do {
var C;
if ((C = 13 === p.tag)) {
var x = p.memoizedState;
if (null !== x)
C = null !== x.dehydrated ? !0 : !1;
else {
var w = p.memoizedProps;
C =
void 0 === w.fallback
? !1
: !0 !==
w.unstable_avoidThisFallback
? !0
: A
? !1
: !0;
}
}
if (C) {
var z = p.updateQueue;
if (null === z) {
var u = new Set();
u.add(l);
p.updateQueue = u;
} else z.add(l);
if (0 === (p.mode & 2)) {
p.flags |= 64;
h.flags |= 16384;
h.flags &= -2981;
if (1 === h.tag)
if (null === h.alternate)
h.tag = 17;
else {
var t = zg(-1, 1);
t.tag = 2;
Ag(h, t);
}
h.lanes |= 1;
break a;
}
k = void 0;
h = b;
var q = f.pingCache;
null === q
? ((q = f.pingCache = new Oi()),
(k = new Set()),
q.set(l, k))
: ((k = q.get(l)),
void 0 === k &&
((k = new Set()),
q.set(l, k)));
if (!k.has(h)) {
k.add(h);
var v = Yj.bind(null, f, l, h);
l.then(v, v);
}
p.flags |= 4096;
p.lanes = b;
break a;
}
p = p.return;
} while (null !== p);
k = Error(
(Ra(h.type) || "A React component") +
" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display."
);
}
5 !== V && (V = 2);
k = Mi(k, h);
p = g;
do {
switch (p.tag) {
case 3:
f = k;
p.flags |= 4096;
b &= -b;
p.lanes |= b;
var J = Pi(p, f, b);
Bg(p, J);
break a;
case 1:
f = k;
var K = p.type,
Q = p.stateNode;
if (
0 === (p.flags & 64) &&
("function" ===
typeof K.getDerivedStateFromError ||
(null !== Q &&
"function" ===
typeof Q.componentDidCatch &&
(null === Ti ||
!Ti.has(Q))))
) {
p.flags |= 4096;
b &= -b;
p.lanes |= b;
var L = Si(p, f, b);
Bg(p, L);
break a;
}
}
p = p.return;
} while (null !== p);
}
Zj(c);
} catch (va) {
b = va;
Y === c && null !== c && (Y = c = c.return);
continue;
}
break;
} while (1);
}
function Pj() {
var a = oj.current;
oj.current = Gh;
return null === a ? Gh : a;
}
function Tj(a, b) {
var c = X;
X |= 16;
var d = Pj();
(U === a && W === b) || Qj(a, b);
do
try {
ak();
break;
} catch (e) {
Sj(a, e);
}
while (1);
qg();
X = c;
oj.current = d;
if (null !== Y) throw Error(y(261));
U = null;
W = 0;
return V;
}
function ak() {
for (; null !== Y; ) bk(Y);
}
function Rj() {
for (; null !== Y && !Qf(); ) bk(Y);
}
function bk(a) {
var b = ck(a.alternate, a, qj);
a.memoizedProps = a.pendingProps;
null === b ? Zj(a) : (Y = b);
pj.current = null;
}
function Zj(a) {
var b = a;
do {
var c = b.alternate;
a = b.return;
if (0 === (b.flags & 2048)) {
c = Gi(c, b, qj);
if (null !== c) {
Y = c;
return;
}
c = b;
if (
(24 !== c.tag && 23 !== c.tag) ||
null === c.memoizedState ||
0 !== (qj & 1073741824) ||
0 === (c.mode & 4)
) {
for (var d = 0, e = c.child; null !== e; )
(d |= e.lanes | e.childLanes), (e = e.sibling);
c.childLanes = d;
}
null !== a &&
0 === (a.flags & 2048) &&
(null === a.firstEffect &&
(a.firstEffect = b.firstEffect),
null !== b.lastEffect &&
(null !== a.lastEffect &&
(a.lastEffect.nextEffect = b.firstEffect),
(a.lastEffect = b.lastEffect)),
1 < b.flags &&
(null !== a.lastEffect
? (a.lastEffect.nextEffect = b)
: (a.firstEffect = b),
(a.lastEffect = b)));
} else {
c = Li(b);
if (null !== c) {
c.flags &= 2047;
Y = c;
return;
}
null !== a &&
((a.firstEffect = a.lastEffect = null),
(a.flags |= 2048));
}
b = b.sibling;
if (null !== b) {
Y = b;
return;
}
Y = b = a;
} while (null !== b);
0 === V && (V = 5);
}
function Uj(a) {
var b = eg();
gg(99, dk.bind(null, a, b));
return null;
}
function dk(a, b) {
do Oj();
while (null !== yj);
if (0 !== (X & 48)) throw Error(y(327));
var c = a.finishedWork;
if (null === c) return null;
a.finishedWork = null;
a.finishedLanes = 0;
if (c === a.current) throw Error(y(177));
a.callbackNode = null;
var d = c.lanes | c.childLanes,
e = d,
f = a.pendingLanes & ~e;
a.pendingLanes = e;
a.suspendedLanes = 0;
a.pingedLanes = 0;
a.expiredLanes &= e;
a.mutableReadLanes &= e;
a.entangledLanes &= e;
e = a.entanglements;
for (var g = a.eventTimes, h = a.expirationTimes; 0 < f; ) {
var k = 31 - Vc(f),
l = 1 << k;
e[k] = 0;
g[k] = -1;
h[k] = -1;
f &= ~l;
}
null !== Cj && 0 === (d & 24) && Cj.has(a) && Cj.delete(a);
a === U && ((Y = U = null), (W = 0));
1 < c.flags
? null !== c.lastEffect
? ((c.lastEffect.nextEffect = c), (d = c.firstEffect))
: (d = c)
: (d = c.firstEffect);
if (null !== d) {
e = X;
X |= 32;
pj.current = null;
kf = fd;
g = Ne();
if (Oe(g)) {
if ("selectionStart" in g)
h = {
start: g.selectionStart,
end: g.selectionEnd,
};
else
a: if (
((h =
((h = g.ownerDocument) && h.defaultView) ||
window),
(l = h.getSelection && h.getSelection()) &&
0 !== l.rangeCount)
) {
h = l.anchorNode;
f = l.anchorOffset;
k = l.focusNode;
l = l.focusOffset;
try {
h.nodeType, k.nodeType;
} catch (va) {
h = null;
break a;
}
var n = 0,
A = -1,
p = -1,
C = 0,
x = 0,
w = g,
z = null;
b: for (;;) {
for (var u; ; ) {
w !== h ||
(0 !== f && 3 !== w.nodeType) ||
(A = n + f);
w !== k ||
(0 !== l && 3 !== w.nodeType) ||
(p = n + l);
3 === w.nodeType &&
(n += w.nodeValue.length);
if (null === (u = w.firstChild)) break;
z = w;
w = u;
}
for (;;) {
if (w === g) break b;
z === h && ++C === f && (A = n);
z === k && ++x === l && (p = n);
if (null !== (u = w.nextSibling)) break;
w = z;
z = w.parentNode;
}
w = u;
}
h =
-1 === A || -1 === p
? null
: {
start: A,
end: p,
};
} else h = null;
h = h || {
start: 0,
end: 0,
};
} else h = null;
lf = {
focusedElem: g,
selectionRange: h,
};
fd = !1;
Ij = null;
Jj = !1;
Z = d;
do
try {
ek();
} catch (va) {
if (null === Z) throw Error(y(330));
Wi(Z, va);
Z = Z.nextEffect;
}
while (null !== Z);
Ij = null;
Z = d;
do
try {
for (g = a; null !== Z; ) {
var t = Z.flags;
t & 16 && pb(Z.stateNode, "");
if (t & 128) {
var q = Z.alternate;
if (null !== q) {
var v = q.ref;
null !== v &&
("function" === typeof v
? v(null)
: (v.current = null));
}
}
switch (t & 1038) {
case 2:
fj(Z);
Z.flags &= -3;
break;
case 6:
fj(Z);
Z.flags &= -3;
ij(Z.alternate, Z);
break;
case 1024:
Z.flags &= -1025;
break;
case 1028:
Z.flags &= -1025;
ij(Z.alternate, Z);
break;
case 4:
ij(Z.alternate, Z);
break;
case 8:
h = Z;
cj(g, h);
var J = h.alternate;
dj(h);
null !== J && dj(J);
}
Z = Z.nextEffect;
}
} catch (va) {
if (null === Z) throw Error(y(330));
Wi(Z, va);
Z = Z.nextEffect;
}
while (null !== Z);
v = lf;
q = Ne();
t = v.focusedElem;
g = v.selectionRange;
if (
q !== t &&
t &&
t.ownerDocument &&
Me(t.ownerDocument.documentElement, t)
) {
null !== g &&
Oe(t) &&
((q = g.start),
(v = g.end),
void 0 === v && (v = q),
"selectionStart" in t
? ((t.selectionStart = q),
(t.selectionEnd = Math.min(
v,
t.value.length
)))
: ((v =
((q = t.ownerDocument || document) &&
q.defaultView) ||
window),
v.getSelection &&
((v = v.getSelection()),
(h = t.textContent.length),
(J = Math.min(g.start, h)),
(g =
void 0 === g.end
? J
: Math.min(g.end, h)),
!v.extend &&
J > g &&
((h = g), (g = J), (J = h)),
(h = Le(t, J)),
(f = Le(t, g)),
h &&
f &&
(1 !== v.rangeCount ||
v.anchorNode !== h.node ||
v.anchorOffset !== h.offset ||
v.focusNode !== f.node ||
v.focusOffset !== f.offset) &&
((q = q.createRange()),
q.setStart(h.node, h.offset),
v.removeAllRanges(),
J > g
? (v.addRange(q),
v.extend(f.node, f.offset))
: (q.setEnd(f.node, f.offset),
v.addRange(q))))));
q = [];
for (v = t; (v = v.parentNode); )
1 === v.nodeType &&
q.push({
element: v,
left: v.scrollLeft,
top: v.scrollTop,
});
"function" === typeof t.focus && t.focus();
for (t = 0; t < q.length; t++)
(v = q[t]),
(v.element.scrollLeft = v.left),
(v.element.scrollTop = v.top);
}
fd = !!kf;
lf = kf = null;
a.current = c;
Z = d;
do
try {
for (t = a; null !== Z; ) {
var K = Z.flags;
K & 36 && Yi(t, Z.alternate, Z);
if (K & 128) {
q = void 0;
var Q = Z.ref;
if (null !== Q) {
var L = Z.stateNode;
switch (Z.tag) {
case 5:
q = L;
break;
default:
q = L;
}
"function" === typeof Q
? Q(q)
: (Q.current = q);
}
}
Z = Z.nextEffect;
}
} catch (va) {
if (null === Z) throw Error(y(330));
Wi(Z, va);
Z = Z.nextEffect;
}
while (null !== Z);
Z = null;
$f();
X = e;
} else a.current = c;
if (xj) (xj = !1), (yj = a), (zj = b);
else
for (Z = d; null !== Z; )
(b = Z.nextEffect),
(Z.nextEffect = null),
Z.flags & 8 &&
((K = Z),
(K.sibling = null),
(K.stateNode = null)),
(Z = b);
d = a.pendingLanes;
0 === d && (Ti = null);
1 === d ? (a === Ej ? Dj++ : ((Dj = 0), (Ej = a))) : (Dj = 0);
c = c.stateNode;
if (Mf && "function" === typeof Mf.onCommitFiberRoot)
try {
Mf.onCommitFiberRoot(
Lf,
c,
void 0,
64 === (c.current.flags & 64)
);
} catch (va) {}
Mj(a, O());
if (Qi) throw ((Qi = !1), (a = Ri), (Ri = null), a);
if (0 !== (X & 8)) return null;
ig();
return null;
}
function ek() {
for (; null !== Z; ) {
var a = Z.alternate;
Jj ||
null === Ij ||
(0 !== (Z.flags & 8)
? dc(Z, Ij) && (Jj = !0)
: 13 === Z.tag &&
mj(a, Z) &&
dc(Z, Ij) &&
(Jj = !0));
var b = Z.flags;
0 !== (b & 256) && Xi(a, Z);
0 === (b & 512) ||
xj ||
((xj = !0),
hg(97, function () {
Oj();
return null;
}));
Z = Z.nextEffect;
}
}
function Oj() {
if (90 !== zj) {
var a = 97 < zj ? 97 : zj;
zj = 90;
return gg(a, fk);
}
return !1;
}
function $i(a, b) {
Aj.push(b, a);
xj ||
((xj = !0),
hg(97, function () {
Oj();
return null;
}));
}
function Zi(a, b) {
Bj.push(b, a);
xj ||
((xj = !0),
hg(97, function () {
Oj();
return null;
}));
}
function fk() {
if (null === yj) return !1;
var a = yj;
yj = null;
if (0 !== (X & 48)) throw Error(y(331));
var b = X;
X |= 32;
var c = Bj;
Bj = [];
for (var d = 0; d < c.length; d += 2) {
var e = c[d],
f = c[d + 1],
g = e.destroy;
e.destroy = void 0;
if ("function" === typeof g)
try {
g();
} catch (k) {
if (null === f) throw Error(y(330));
Wi(f, k);
}
}
c = Aj;
Aj = [];
for (d = 0; d < c.length; d += 2) {
e = c[d];
f = c[d + 1];
try {
var h = e.create;
e.destroy = h();
} catch (k) {
if (null === f) throw Error(y(330));
Wi(f, k);
}
}
for (h = a.current.firstEffect; null !== h; )
(a = h.nextEffect),
(h.nextEffect = null),
h.flags & 8 &&
((h.sibling = null), (h.stateNode = null)),
(h = a);
X = b;
ig();
return !0;
}
function gk(a, b, c) {
b = Mi(c, b);
b = Pi(a, b, 1);
Ag(a, b);
b = Hg();
a = Kj(a, 1);
null !== a && ($c(a, 1, b), Mj(a, b));
}
function Wi(a, b) {
if (3 === a.tag) gk(a, a, b);
else
for (var c = a.return; null !== c; ) {
if (3 === c.tag) {
gk(c, a, b);
break;
} else if (1 === c.tag) {
var d = c.stateNode;
if (
"function" ===
typeof c.type.getDerivedStateFromError ||
("function" === typeof d.componentDidCatch &&
(null === Ti || !Ti.has(d)))
) {
a = Mi(b, a);
var e = Si(c, a, 1);
Ag(c, e);
e = Hg();
c = Kj(c, 1);
if (null !== c) $c(c, 1, e), Mj(c, e);
else if (
"function" === typeof d.componentDidCatch &&
(null === Ti || !Ti.has(d))
)
try {
d.componentDidCatch(b, a);
} catch (f) {}
break;
}
}
c = c.return;
}
}
function Yj(a, b, c) {
var d = a.pingCache;
null !== d && d.delete(b);
b = Hg();
a.pingedLanes |= a.suspendedLanes & c;
U === a &&
(W & c) === c &&
(4 === V ||
(3 === V && (W & 62914560) === W && 500 > O() - jj)
? Qj(a, 0)
: (uj |= c));
Mj(a, b);
}
function lj(a, b) {
var c = a.stateNode;
null !== c && c.delete(b);
b = 0;
0 === b &&
((b = a.mode),
0 === (b & 2)
? (b = 1)
: 0 === (b & 4)
? (b = 99 === eg() ? 1 : 2)
: (0 === Gj && (Gj = tj),
(b = Yc(62914560 & ~Gj)),
0 === b && (b = 4194304)));
c = Hg();
a = Kj(a, b);
null !== a && ($c(a, b, c), Mj(a, c));
}
var ck;
ck = function (a, b, c) {
var d = b.lanes;
if (null !== a)
if (a.memoizedProps !== b.pendingProps || N.current)
ug = !0;
else if (0 !== (c & d))
ug = 0 !== (a.flags & 16384) ? !0 : !1;
else {
ug = !1;
switch (b.tag) {
case 3:
ri(b);
sh();
break;
case 5:
gh(b);
break;
case 1:
Ff(b.type) && Jf(b);
break;
case 4:
eh(b, b.stateNode.containerInfo);
break;
case 10:
d = b.memoizedProps.value;
var e = b.type._context;
I(mg, e._currentValue);
e._currentValue = d;
break;
case 13:
if (null !== b.memoizedState) {
if (0 !== (c & b.child.childLanes))
return ti(a, b, c);
I(P, P.current & 1);
b = hi(a, b, c);
return null !== b ? b.sibling : null;
}
I(P, P.current & 1);
break;
case 19:
d = 0 !== (c & b.childLanes);
if (0 !== (a.flags & 64)) {
if (d) return Ai(a, b, c);
b.flags |= 64;
}
e = b.memoizedState;
null !== e &&
((e.rendering = null),
(e.tail = null),
(e.lastEffect = null));
I(P, P.current);
if (d) break;
else return null;
case 23:
case 24:
return (b.lanes = 0), mi(a, b, c);
}
return hi(a, b, c);
}
else ug = !1;
b.lanes = 0;
switch (b.tag) {
case 2:
d = b.type;
null !== a &&
((a.alternate = null),
(b.alternate = null),
(b.flags |= 2));
a = b.pendingProps;
e = Ef(b, M.current);
tg(b, c);
e = Ch(null, b, d, a, e, c);
b.flags |= 1;
if (
"object" === typeof e &&
null !== e &&
"function" === typeof e.render &&
void 0 === e.$$typeof
) {
b.tag = 1;
b.memoizedState = null;
b.updateQueue = null;
if (Ff(d)) {
var f = !0;
Jf(b);
} else f = !1;
b.memoizedState =
null !== e.state && void 0 !== e.state
? e.state
: null;
xg(b);
var g = d.getDerivedStateFromProps;
"function" === typeof g && Gg(b, d, g, a);
e.updater = Kg;
b.stateNode = e;
e._reactInternals = b;
Og(b, d, a, c);
b = qi(null, b, d, !0, f, c);
} else (b.tag = 0), fi(null, b, e, c), (b = b.child);
return b;
case 16:
e = b.elementType;
a: {
null !== a &&
((a.alternate = null),
(b.alternate = null),
(b.flags |= 2));
a = b.pendingProps;
f = e._init;
e = f(e._payload);
b.type = e;
f = b.tag = hk(e);
a = lg(e, a);
switch (f) {
case 0:
b = li(null, b, e, a, c);
break a;
case 1:
b = pi(null, b, e, a, c);
break a;
case 11:
b = gi(null, b, e, a, c);
break a;
case 14:
b = ii(null, b, e, lg(e.type, a), d, c);
break a;
}
throw Error(y(306, e, ""));
}
return b;
case 0:
return (
(d = b.type),
(e = b.pendingProps),
(e = b.elementType === d ? e : lg(d, e)),
li(a, b, d, e, c)
);
case 1:
return (
(d = b.type),
(e = b.pendingProps),
(e = b.elementType === d ? e : lg(d, e)),
pi(a, b, d, e, c)
);
case 3:
ri(b);
d = b.updateQueue;
if (null === a || null === d) throw Error(y(282));
d = b.pendingProps;
e = b.memoizedState;
e = null !== e ? e.element : null;
yg(a, b);
Cg(b, d, null, c);
d = b.memoizedState.element;
if (d === e) sh(), (b = hi(a, b, c));
else {
e = b.stateNode;
if ((f = e.hydrate))
(kh = rf(b.stateNode.containerInfo.firstChild)),
(jh = b),
(f = lh = !0);
if (f) {
a = e.mutableSourceEagerHydrationData;
if (null != a)
for (e = 0; e < a.length; e += 2)
(f = a[e]),
(f._workInProgressVersionPrimary =
a[e + 1]),
th.push(f);
c = Zg(b, null, d, c);
for (b.child = c; c; )
(c.flags = (c.flags & -3) | 1024),
(c = c.sibling);
} else fi(a, b, d, c), sh();
b = b.child;
}
return b;
case 5:
return (
gh(b),
null === a && ph(b),
(d = b.type),
(e = b.pendingProps),
(f = null !== a ? a.memoizedProps : null),
(g = e.children),
nf(d, e)
? (g = null)
: null !== f && nf(d, f) && (b.flags |= 16),
oi(a, b),
fi(a, b, g, c),
b.child
);
case 6:
return null === a && ph(b), null;
case 13:
return ti(a, b, c);
case 4:
return (
eh(b, b.stateNode.containerInfo),
(d = b.pendingProps),
null === a
? (b.child = Yg(b, null, d, c))
: fi(a, b, d, c),
b.child
);
case 11:
return (
(d = b.type),
(e = b.pendingProps),
(e = b.elementType === d ? e : lg(d, e)),
gi(a, b, d, e, c)
);
case 7:
return fi(a, b, b.pendingProps, c), b.child;
case 8:
return fi(a, b, b.pendingProps.children, c), b.child;
case 12:
return fi(a, b, b.pendingProps.children, c), b.child;
case 10:
a: {
d = b.type._context;
e = b.pendingProps;
g = b.memoizedProps;
f = e.value;
var h = b.type._context;
I(mg, h._currentValue);
h._currentValue = f;
if (null !== g)
if (
((h = g.value),
(f = He(h, f)
? 0
: ("function" ===
typeof d._calculateChangedBits
? d._calculateChangedBits(h, f)
: 1073741823) | 0),
0 === f)
) {
if (
g.children === e.children &&
!N.current
) {
b = hi(a, b, c);
break a;
}
} else
for (
h = b.child,
null !== h && (h.return = b);
null !== h;
) {
var k = h.dependencies;
if (null !== k) {
g = h.child;
for (
var l = k.firstContext;
null !== l;
) {
if (
l.context === d &&
0 !== (l.observedBits & f)
) {
1 === h.tag &&
((l = zg(-1, c & -c)),
(l.tag = 2),
Ag(h, l));
h.lanes |= c;
l = h.alternate;
null !== l &&
(l.lanes |= c);
sg(h.return, c);
k.lanes |= c;
break;
}
l = l.next;
}
} else
g =
10 === h.tag
? h.type === b.type
? null
: h.child
: h.child;
if (null !== g) g.return = h;
else
for (g = h; null !== g; ) {
if (g === b) {
g = null;
break;
}
h = g.sibling;
if (null !== h) {
h.return = g.return;
g = h;
break;
}
g = g.return;
}
h = g;
}
fi(a, b, e.children, c);
b = b.child;
}
return b;
case 9:
return (
(e = b.type),
(f = b.pendingProps),
(d = f.children),
tg(b, c),
(e = vg(e, f.unstable_observedBits)),
(d = d(e)),
(b.flags |= 1),
fi(a, b, d, c),
b.child
);
case 14:
return (
(e = b.type),
(f = lg(e, b.pendingProps)),
(f = lg(e.type, f)),
ii(a, b, e, f, d, c)
);
case 15:
return ki(a, b, b.type, b.pendingProps, d, c);
case 17:
return (
(d = b.type),
(e = b.pendingProps),
(e = b.elementType === d ? e : lg(d, e)),
null !== a &&
((a.alternate = null),
(b.alternate = null),
(b.flags |= 2)),
(b.tag = 1),
Ff(d) ? ((a = !0), Jf(b)) : (a = !1),
tg(b, c),
Mg(b, d, e),
Og(b, d, e, c),
qi(null, b, d, !0, a, c)
);
case 19:
return Ai(a, b, c);
case 23:
return mi(a, b, c);
case 24:
return mi(a, b, c);
}
throw Error(y(156, b.tag));
};
function ik(a, b, c, d) {
this.tag = a;
this.key = c;
this.sibling =
this.child =
this.return =
this.stateNode =
this.type =
this.elementType =
null;
this.index = 0;
this.ref = null;
this.pendingProps = b;
this.dependencies =
this.memoizedState =
this.updateQueue =
this.memoizedProps =
null;
this.mode = d;
this.flags = 0;
this.lastEffect = this.firstEffect = this.nextEffect = null;
this.childLanes = this.lanes = 0;
this.alternate = null;
}
function nh(a, b, c, d) {
return new ik(a, b, c, d);
}
function ji(a) {
a = a.prototype;
return !(!a || !a.isReactComponent);
}
function hk(a) {
if ("function" === typeof a) return ji(a) ? 1 : 0;
if (void 0 !== a && null !== a) {
a = a.$$typeof;
if (a === Aa) return 11;
if (a === Da) return 14;
}
return 2;
}
function Tg(a, b) {
var c = a.alternate;
null === c
? ((c = nh(a.tag, b, a.key, a.mode)),
(c.elementType = a.elementType),
(c.type = a.type),
(c.stateNode = a.stateNode),
(c.alternate = a),
(a.alternate = c))
: ((c.pendingProps = b),
(c.type = a.type),
(c.flags = 0),
(c.nextEffect = null),
(c.firstEffect = null),
(c.lastEffect = null));
c.childLanes = a.childLanes;
c.lanes = a.lanes;
c.child = a.child;
c.memoizedProps = a.memoizedProps;
c.memoizedState = a.memoizedState;
c.updateQueue = a.updateQueue;
b = a.dependencies;
c.dependencies =
null === b
? null
: {
lanes: b.lanes,
firstContext: b.firstContext,
};
c.sibling = a.sibling;
c.index = a.index;
c.ref = a.ref;
return c;
}
function Vg(a, b, c, d, e, f) {
var g = 2;
d = a;
if ("function" === typeof a) ji(a) && (g = 1);
else if ("string" === typeof a) g = 5;
else
a: switch (a) {
case ua:
return Xg(c.children, e, f, b);
case Ha:
g = 8;
e |= 16;
break;
case wa:
g = 8;
e |= 1;
break;
case xa:
return (
(a = nh(12, c, b, e | 8)),
(a.elementType = xa),
(a.type = xa),
(a.lanes = f),
a
);
case Ba:
return (
(a = nh(13, c, b, e)),
(a.type = Ba),
(a.elementType = Ba),
(a.lanes = f),
a
);
case Ca:
return (
(a = nh(19, c, b, e)),
(a.elementType = Ca),
(a.lanes = f),
a
);
case Ia:
return vi(c, e, f, b);
case Ja:
return (
(a = nh(24, c, b, e)),
(a.elementType = Ja),
(a.lanes = f),
a
);
default:
if ("object" === typeof a && null !== a)
switch (a.$$typeof) {
case ya:
g = 10;
break a;
case za:
g = 9;
break a;
case Aa:
g = 11;
break a;
case Da:
g = 14;
break a;
case Ea:
g = 16;
d = null;
break a;
case Fa:
g = 22;
break a;
}
throw Error(y(130, null == a ? a : typeof a, ""));
}
b = nh(g, c, b, e);
b.elementType = a;
b.type = d;
b.lanes = f;
return b;
}
function Xg(a, b, c, d) {
a = nh(7, a, d, b);
a.lanes = c;
return a;
}
function vi(a, b, c, d) {
a = nh(23, a, d, b);
a.elementType = Ia;
a.lanes = c;
return a;
}
function Ug(a, b, c) {
a = nh(6, a, null, b);
a.lanes = c;
return a;
}
function Wg(a, b, c) {
b = nh(4, null !== a.children ? a.children : [], a.key, b);
b.lanes = c;
b.stateNode = {
containerInfo: a.containerInfo,
pendingChildren: null,
implementation: a.implementation,
};
return b;
}
function jk(a, b, c) {
this.tag = b;
this.containerInfo = a;
this.finishedWork =
this.pingCache =
this.current =
this.pendingChildren =
null;
this.timeoutHandle = -1;
this.pendingContext = this.context = null;
this.hydrate = c;
this.callbackNode = null;
this.callbackPriority = 0;
this.eventTimes = Zc(0);
this.expirationTimes = Zc(-1);
this.entangledLanes =
this.finishedLanes =
this.mutableReadLanes =
this.expiredLanes =
this.pingedLanes =
this.suspendedLanes =
this.pendingLanes =
0;
this.entanglements = Zc(0);
this.mutableSourceEagerHydrationData = null;
}
function kk(a, b, c) {
var d =
3 < arguments.length && void 0 !== arguments[3]
? arguments[3]
: null;
return {
$$typeof: ta,
key: null == d ? null : "" + d,
children: a,
containerInfo: b,
implementation: c,
};
}
function lk(a, b, c, d) {
var e = b.current,
f = Hg(),
g = Ig(e);
a: if (c) {
c = c._reactInternals;
b: {
if (Zb(c) !== c || 1 !== c.tag) throw Error(y(170));
var h = c;
do {
switch (h.tag) {
case 3:
h = h.stateNode.context;
break b;
case 1:
if (Ff(h.type)) {
h =
h.stateNode
.__reactInternalMemoizedMergedChildContext;
break b;
}
}
h = h.return;
} while (null !== h);
throw Error(y(171));
}
if (1 === c.tag) {
var k = c.type;
if (Ff(k)) {
c = If(c, k, h);
break a;
}
}
c = h;
} else c = Cf;
null === b.context ? (b.context = c) : (b.pendingContext = c);
b = zg(f, g);
b.payload = {
element: a,
};
d = void 0 === d ? null : d;
null !== d && (b.callback = d);
Ag(e, b);
Jg(e, g, f);
return g;
}
function mk(a) {
a = a.current;
if (!a.child) return null;
switch (a.child.tag) {
case 5:
return a.child.stateNode;
default:
return a.child.stateNode;
}
}
function nk(a, b) {
a = a.memoizedState;
if (null !== a && null !== a.dehydrated) {
var c = a.retryLane;
a.retryLane = 0 !== c && c < b ? c : b;
}
}
function ok(a, b) {
nk(a, b);
(a = a.alternate) && nk(a, b);
}
function pk() {
return null;
}
function qk(a, b, c) {
var d =
(null != c &&
null != c.hydrationOptions &&
c.hydrationOptions.mutableSources) ||
null;
c = new jk(a, b, null != c && !0 === c.hydrate);
b = nh(3, null, null, 2 === b ? 7 : 1 === b ? 3 : 0);
c.current = b;
b.stateNode = c;
xg(b);
a[ff] = c.current;
cf(8 === a.nodeType ? a.parentNode : a);
if (d)
for (a = 0; a < d.length; a++) {
b = d[a];
var e = b._getVersion;
e = e(b._source);
null == c.mutableSourceEagerHydrationData
? (c.mutableSourceEagerHydrationData = [b, e])
: c.mutableSourceEagerHydrationData.push(b, e);
}
this._internalRoot = c;
}
qk.prototype.render = function (a) {
lk(a, this._internalRoot, null, null);
};
qk.prototype.unmount = function () {
var a = this._internalRoot,
b = a.containerInfo;
lk(null, a, null, function () {
b[ff] = null;
});
};
function rk(a) {
return !(
!a ||
(1 !== a.nodeType &&
9 !== a.nodeType &&
11 !== a.nodeType &&
(8 !== a.nodeType ||
" react-mount-point-unstable " !== a.nodeValue))
);
}
function sk(a, b) {
b ||
((b = a
? 9 === a.nodeType
? a.documentElement
: a.firstChild
: null),
(b = !(
!b ||
1 !== b.nodeType ||
!b.hasAttribute("data-reactroot")
)));
if (!b) for (var c; (c = a.lastChild); ) a.removeChild(c);
return new qk(
a,
0,
b
? {
hydrate: !0,
}
: void 0
);
}
function tk(a, b, c, d, e) {
var f = c._reactRootContainer;
if (f) {
var g = f._internalRoot;
if ("function" === typeof e) {
var h = e;
e = function () {
var a = mk(g);
h.call(a);
};
}
lk(b, g, a, e);
} else {
f = c._reactRootContainer = sk(c, d);
g = f._internalRoot;
if ("function" === typeof e) {
var k = e;
e = function () {
var a = mk(g);
k.call(a);
};
}
Xj(function () {
lk(b, g, a, e);
});
}
return mk(g);
}
ec = function (a) {
if (13 === a.tag) {
var b = Hg();
Jg(a, 4, b);
ok(a, 4);
}
};
fc = function (a) {
if (13 === a.tag) {
var b = Hg();
Jg(a, 67108864, b);
ok(a, 67108864);
}
};
gc = function (a) {
if (13 === a.tag) {
var b = Hg(),
c = Ig(a);
Jg(a, c, b);
ok(a, c);
}
};
hc = function (a, b) {
return b();
};
yb = function (a, b, c) {
switch (b) {
case "input":
ab(a, c);
b = c.name;
if ("radio" === c.type && null != b) {
for (c = a; c.parentNode; ) c = c.parentNode;
c = c.querySelectorAll(
"input[name=" +
JSON.stringify("" + b) +
'][type="radio"]'
);
for (b = 0; b < c.length; b++) {
var d = c[b];
if (d !== a && d.form === a.form) {
var e = Db(d);
if (!e) throw Error(y(90));
Wa(d);
ab(d, e);
}
}
}
break;
case "textarea":
ib(a, c);
break;
case "select":
(b = c.value), null != b && fb(a, !!c.multiple, b, !1);
}
};
Gb = Wj;
Hb = function (a, b, c, d, e) {
var f = X;
X |= 4;
try {
return gg(98, a.bind(null, b, c, d, e));
} finally {
(X = f), 0 === X && (wj(), ig());
}
};
Ib = function () {
0 === (X & 49) && (Vj(), Oj());
};
Jb = function (a, b) {
var c = X;
X |= 2;
try {
return a(b);
} finally {
(X = c), 0 === X && (wj(), ig());
}
};
function uk(a, b) {
var c =
2 < arguments.length && void 0 !== arguments[2]
? arguments[2]
: null;
if (!rk(b)) throw Error(y(200));
return kk(a, b, null, c);
}
var vk = {
Events: [
Cb,
ue,
Db,
Eb,
Fb,
Oj,
{
current: !1,
},
],
},
wk = {
findFiberByHostInstance: wc,
bundleType: 0,
version: "17.0.2",
rendererPackageName: "react-dom",
};
var xk = {
bundleType: wk.bundleType,
version: wk.version,
rendererPackageName: wk.rendererPackageName,
rendererConfig: wk.rendererConfig,
overrideHookState: null,
overrideHookStateDeletePath: null,
overrideHookStateRenamePath: null,
overrideProps: null,
overridePropsDeletePath: null,
overridePropsRenamePath: null,
setSuspenseHandler: null,
scheduleUpdate: null,
currentDispatcherRef: ra.ReactCurrentDispatcher,
findHostInstanceByFiber: function (a) {
a = cc(a);
return null === a ? null : a.stateNode;
},
findFiberByHostInstance: wk.findFiberByHostInstance || pk,
findHostInstancesForRefresh: null,
scheduleRefresh: null,
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var yk = __REACT_DEVTOOLS_GLOBAL_HOOK__;
if (!yk.isDisabled && yk.supportsFiber)
try {
(Lf = yk.inject(xk)), (Mf = yk);
} catch (a) {}
}
exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = vk;
exports.createPortal = uk;
exports.findDOMNode = function (a) {
if (null == a) return null;
if (1 === a.nodeType) return a;
var b = a._reactInternals;
if (void 0 === b) {
if ("function" === typeof a.render) throw Error(y(188));
throw Error(y(268, Object.keys(a)));
}
a = cc(b);
a = null === a ? null : a.stateNode;
return a;
};
exports.flushSync = function (a, b) {
var c = X;
if (0 !== (c & 48)) return a(b);
X |= 1;
try {
if (a) return gg(99, a.bind(null, b));
} finally {
(X = c), ig();
}
};
exports.hydrate = function (a, b, c) {
if (!rk(b)) throw Error(y(200));
return tk(null, a, b, !0, c);
};
exports.render = function (a, b, c) {
if (!rk(b)) throw Error(y(200));
return tk(null, a, b, !1, c);
};
exports.unmountComponentAtNode = function (a) {
if (!rk(a)) throw Error(y(40));
return a._reactRootContainer
? (Xj(function () {
tk(null, null, a, !1, function () {
a._reactRootContainer = null;
a[ff] = null;
});
}),
!0)
: !1;
};
exports.unstable_batchedUpdates = Wj;
exports.unstable_createPortal = function (a, b) {
return uk(
a,
b,
2 < arguments.length && void 0 !== arguments[2]
? arguments[2]
: null
);
};
exports.unstable_renderSubtreeIntoContainer = function (
a,
b,
c,
d
) {
if (!rk(c)) throw Error(y(200));
if (null == a || void 0 === a._reactInternals)
throw Error(y(38));
return tk(a, b, c, !1, d);
};
exports.version = "17.0.2";
/***/
},
/***/ 2788: /***/ function (
module,
__unused_webpack_exports,
__webpack_require__
) {
function checkDCE() {
/* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
if (
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === "undefined" ||
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE !==
"function"
) {
return;
}
if (false) {
}
try {
// Verify that the code above has been dead code eliminated (DCE'd).
__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE);
} catch (err) {
// DevTools shouldn't crash React, no matter what.
// We should still report in case we break this code.
console.error(err);
}
}
if (true) {
// DCE check should happen before ReactDOM bundle executes so that
// DevTools can report bad minification during injection.
checkDCE();
module.exports = __webpack_require__(3975);
} else {
}
/***/
},
/***/ 3717: /***/ function (__unused_webpack_module, exports) {
/** @license React v0.20.2
* scheduler.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
var f, g, h, k;
if (
"object" === typeof performance &&
"function" === typeof performance.now
) {
var l = performance;
exports.unstable_now = function () {
return l.now();
};
} else {
var p = Date,
q = p.now();
exports.unstable_now = function () {
return p.now() - q;
};
}
if (
"undefined" === typeof window ||
"function" !== typeof MessageChannel
) {
var t = null,
u = null,
w = function () {
if (null !== t)
try {
var a = exports.unstable_now();
t(!0, a);
t = null;
} catch (b) {
throw (setTimeout(w, 0), b);
}
};
f = function (a) {
null !== t
? setTimeout(f, 0, a)
: ((t = a), setTimeout(w, 0));
};
g = function (a, b) {
u = setTimeout(a, b);
};
h = function () {
clearTimeout(u);
};
exports.unstable_shouldYield = function () {
return !1;
};
k = exports.unstable_forceFrameRate = function () {};
} else {
var x = window.setTimeout,
y = window.clearTimeout;
if ("undefined" !== typeof console) {
var z = window.cancelAnimationFrame;
"function" !== typeof window.requestAnimationFrame &&
console.error(
"This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"
);
"function" !== typeof z &&
console.error(
"This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"
);
}
var A = !1,
B = null,
C = -1,
D = 5,
E = 0;
exports.unstable_shouldYield = function () {
return exports.unstable_now() >= E;
};
k = function () {};
exports.unstable_forceFrameRate = function (a) {
0 > a || 125 < a
? console.error(
"forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"
)
: (D = 0 < a ? Math.floor(1e3 / a) : 5);
};
var F = new MessageChannel(),
G = F.port2;
F.port1.onmessage = function () {
if (null !== B) {
var a = exports.unstable_now();
E = a + D;
try {
B(!0, a)
? G.postMessage(null)
: ((A = !1), (B = null));
} catch (b) {
throw (G.postMessage(null), b);
}
} else A = !1;
};
f = function (a) {
B = a;
A || ((A = !0), G.postMessage(null));
};
g = function (a, b) {
C = x(function () {
a(exports.unstable_now());
}, b);
};
h = function () {
y(C);
C = -1;
};
}
function H(a, b) {
var c = a.length;
a.push(b);
a: for (;;) {
var d = (c - 1) >>> 1,
e = a[d];
if (void 0 !== e && 0 < I(e, b))
(a[d] = b), (a[c] = e), (c = d);
else break a;
}
}
function J(a) {
a = a[0];
return void 0 === a ? null : a;
}
function K(a) {
var b = a[0];
if (void 0 !== b) {
var c = a.pop();
if (c !== b) {
a[0] = c;
a: for (var d = 0, e = a.length; d < e; ) {
var m = 2 * (d + 1) - 1,
n = a[m],
v = m + 1,
r = a[v];
if (void 0 !== n && 0 > I(n, c))
void 0 !== r && 0 > I(r, n)
? ((a[d] = r), (a[v] = c), (d = v))
: ((a[d] = n), (a[m] = c), (d = m));
else if (void 0 !== r && 0 > I(r, c))
(a[d] = r), (a[v] = c), (d = v);
else break a;
}
}
return b;
}
return null;
}
function I(a, b) {
var c = a.sortIndex - b.sortIndex;
return 0 !== c ? c : a.id - b.id;
}
var L = [],
M = [],
N = 1,
O = null,
P = 3,
Q = !1,
R = !1,
S = !1;
function T(a) {
for (var b = J(M); null !== b; ) {
if (null === b.callback) K(M);
else if (b.startTime <= a)
K(M), (b.sortIndex = b.expirationTime), H(L, b);
else break;
b = J(M);
}
}
function U(a) {
S = !1;
T(a);
if (!R)
if (null !== J(L)) (R = !0), f(V);
else {
var b = J(M);
null !== b && g(U, b.startTime - a);
}
}
function V(a, b) {
R = !1;
S && ((S = !1), h());
Q = !0;
var c = P;
try {
T(b);
for (
O = J(L);
null !== O &&
(!(O.expirationTime > b) ||
(a && !exports.unstable_shouldYield()));
) {
var d = O.callback;
if ("function" === typeof d) {
O.callback = null;
P = O.priorityLevel;
var e = d(O.expirationTime <= b);
b = exports.unstable_now();
"function" === typeof e
? (O.callback = e)
: O === J(L) && K(L);
T(b);
} else K(L);
O = J(L);
}
if (null !== O) var m = !0;
else {
var n = J(M);
null !== n && g(U, n.startTime - b);
m = !1;
}
return m;
} finally {
(O = null), (P = c), (Q = !1);
}
}
var W = k;
exports.unstable_IdlePriority = 5;
exports.unstable_ImmediatePriority = 1;
exports.unstable_LowPriority = 4;
exports.unstable_NormalPriority = 3;
exports.unstable_Profiling = null;
exports.unstable_UserBlockingPriority = 2;
exports.unstable_cancelCallback = function (a) {
a.callback = null;
};
exports.unstable_continueExecution = function () {
R || Q || ((R = !0), f(V));
};
exports.unstable_getCurrentPriorityLevel = function () {
return P;
};
exports.unstable_getFirstCallbackNode = function () {
return J(L);
};
exports.unstable_next = function (a) {
switch (P) {
case 1:
case 2:
case 3:
var b = 3;
break;
default:
b = P;
}
var c = P;
P = b;
try {
return a();
} finally {
P = c;
}
};
exports.unstable_pauseExecution = function () {};
exports.unstable_requestPaint = W;
exports.unstable_runWithPriority = function (a, b) {
switch (a) {
case 1:
case 2:
case 3:
case 4:
case 5:
break;
default:
a = 3;
}
var c = P;
P = a;
try {
return b();
} finally {
P = c;
}
};
exports.unstable_scheduleCallback = function (a, b, c) {
var d = exports.unstable_now();
"object" === typeof c && null !== c
? ((c = c.delay),
(c = "number" === typeof c && 0 < c ? d + c : d))
: (c = d);
switch (a) {
case 1:
var e = -1;
break;
case 2:
e = 250;
break;
case 5:
e = 1073741823;
break;
case 4:
e = 1e4;
break;
default:
e = 5e3;
}
e = c + e;
a = {
id: N++,
callback: b,
priorityLevel: a,
startTime: c,
expirationTime: e,
sortIndex: -1,
};
c > d
? ((a.sortIndex = c),
H(M, a),
null === J(L) &&
a === J(M) &&
(S ? h() : (S = !0), g(U, c - d)))
: ((a.sortIndex = e), H(L, a), R || Q || ((R = !0), f(V)));
return a;
};
exports.unstable_wrapCallback = function (a) {
var b = P;
return function () {
var c = P;
P = b;
try {
return a.apply(this, arguments);
} finally {
P = c;
}
};
};
/***/
},
/***/ 9489: /***/ function (
module,
__unused_webpack_exports,
__webpack_require__
) {
if (true) {
module.exports = __webpack_require__(3717);
} else {
}
/***/
},
/***/ 6094: /***/ function (
__unused_webpack_module,
exports,
__webpack_require__
) {
var __webpack_unused_export__;
/** @license React v17.0.2
* react-jsx-runtime.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
__webpack_require__(1474);
var f = __webpack_require__(2735),
g = 60103;
__webpack_unused_export__ = 60107;
if ("function" === typeof Symbol && Symbol.for) {
var h = Symbol.for;
g = h("react.element");
__webpack_unused_export__ = h("react.fragment");
}
var m =
f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED
.ReactCurrentOwner,
n = Object.prototype.hasOwnProperty,
p = {
key: !0,
ref: !0,
__self: !0,
__source: !0,
};
function q(c, a, k) {
var b,
d = {},
e = null,
l = null;
void 0 !== k && (e = "" + k);
void 0 !== a.key && (e = "" + a.key);
void 0 !== a.ref && (l = a.ref);
for (b in a)
n.call(a, b) && !p.hasOwnProperty(b) && (d[b] = a[b]);
if (c && c.defaultProps)
for (b in ((a = c.defaultProps), a))
void 0 === d[b] && (d[b] = a[b]);
return {
$$typeof: g,
type: c,
key: e,
ref: l,
props: d,
_owner: m.current,
};
}
exports.jsx = q;
exports.jsxs = q;
/***/
},
/***/ 8447: /***/ function (
__unused_webpack_module,
exports,
__webpack_require__
) {
/** @license React v17.0.2
* react.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
var l = __webpack_require__(1474),
n = 60103,
p = 60106;
exports.Fragment = 60107;
exports.StrictMode = 60108;
exports.Profiler = 60114;
var q = 60109,
r = 60110,
t = 60112;
exports.Suspense = 60113;
var u = 60115,
v = 60116;
if ("function" === typeof Symbol && Symbol.for) {
var w = Symbol.for;
n = w("react.element");
p = w("react.portal");
exports.Fragment = w("react.fragment");
exports.StrictMode = w("react.strict_mode");
exports.Profiler = w("react.profiler");
q = w("react.provider");
r = w("react.context");
t = w("react.forward_ref");
exports.Suspense = w("react.suspense");
u = w("react.memo");
v = w("react.lazy");
}
var x = "function" === typeof Symbol && Symbol.iterator;
function y(a) {
if (null === a || "object" !== typeof a) return null;
a = (x && a[x]) || a["@@iterator"];
return "function" === typeof a ? a : null;
}
function z(a) {
for (
var b =
"https://reactjs.org/docs/error-decoder.html?invariant=" +
a,
c = 1;
c < arguments.length;
c++
)
b += "&args[]=" + encodeURIComponent(arguments[c]);
return (
"Minified React error #" +
a +
"; visit " +
b +
" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."
);
}
var A = {
isMounted: function () {
return !1;
},
enqueueForceUpdate: function () {},
enqueueReplaceState: function () {},
enqueueSetState: function () {},
},
B = {};
function C(a, b, c) {
this.props = a;
this.context = b;
this.refs = B;
this.updater = c || A;
}
C.prototype.isReactComponent = {};
C.prototype.setState = function (a, b) {
if (
"object" !== typeof a &&
"function" !== typeof a &&
null != a
)
throw Error(z(85));
this.updater.enqueueSetState(this, a, b, "setState");
};
C.prototype.forceUpdate = function (a) {
this.updater.enqueueForceUpdate(this, a, "forceUpdate");
};
function D() {}
D.prototype = C.prototype;
function E(a, b, c) {
this.props = a;
this.context = b;
this.refs = B;
this.updater = c || A;
}
var F = (E.prototype = new D());
F.constructor = E;
l(F, C.prototype);
F.isPureReactComponent = !0;
var G = {
current: null,
},
H = Object.prototype.hasOwnProperty,
I = {
key: !0,
ref: !0,
__self: !0,
__source: !0,
};
function J(a, b, c) {
var e,
d = {},
k = null,
h = null;
if (null != b)
for (e in (void 0 !== b.ref && (h = b.ref),
void 0 !== b.key && (k = "" + b.key),
b))
H.call(b, e) && !I.hasOwnProperty(e) && (d[e] = b[e]);
var g = arguments.length - 2;
if (1 === g) d.children = c;
else if (1 < g) {
for (var f = Array(g), m = 0; m < g; m++)
f[m] = arguments[m + 2];
d.children = f;
}
if (a && a.defaultProps)
for (e in ((g = a.defaultProps), g))
void 0 === d[e] && (d[e] = g[e]);
return {
$$typeof: n,
type: a,
key: k,
ref: h,
props: d,
_owner: G.current,
};
}
function K(a, b) {
return {
$$typeof: n,
type: a.type,
key: b,
ref: a.ref,
props: a.props,
_owner: a._owner,
};
}
function L(a) {
return "object" === typeof a && null !== a && a.$$typeof === n;
}
function escape(a) {
var b = {
"=": "=0",
":": "=2",
};
return (
"$" +
a.replace(/[=:]/g, function (a) {
return b[a];
})
);
}
var M = /\/+/g;
function N(a, b) {
return "object" === typeof a && null !== a && null != a.key
? escape("" + a.key)
: b.toString(36);
}
function O(a, b, c, e, d) {
var k = typeof a;
if ("undefined" === k || "boolean" === k) a = null;
var h = !1;
if (null === a) h = !0;
else
switch (k) {
case "string":
case "number":
h = !0;
break;
case "object":
switch (a.$$typeof) {
case n:
case p:
h = !0;
}
}
if (h)
return (
(h = a),
(d = d(h)),
(a = "" === e ? "." + N(h, 0) : e),
Array.isArray(d)
? ((c = ""),
null != a && (c = a.replace(M, "$&/") + "/"),
O(d, b, c, "", function (a) {
return a;
}))
: null != d &&
(L(d) &&
(d = K(
d,
c +
(!d.key || (h && h.key === d.key)
? ""
: ("" + d.key).replace(M, "$&/") +
"/") +
a
)),
b.push(d)),
1
);
h = 0;
e = "" === e ? "." : e + ":";
if (Array.isArray(a))
for (var g = 0; g < a.length; g++) {
k = a[g];
var f = e + N(k, g);
h += O(k, b, c, f, d);
}
else if (((f = y(a)), "function" === typeof f))
for (a = f.call(a), g = 0; !(k = a.next()).done; )
(k = k.value),
(f = e + N(k, g++)),
(h += O(k, b, c, f, d));
else if ("object" === k)
throw (
((b = "" + a),
Error(
z(
31,
"[object Object]" === b
? "object with keys {" +
Object.keys(a).join(", ") +
"}"
: b
)
))
);
return h;
}
function P(a, b, c) {
if (null == a) return a;
var e = [],
d = 0;
O(a, e, "", "", function (a) {
return b.call(c, a, d++);
});
return e;
}
function Q(a) {
if (-1 === a._status) {
var b = a._result;
b = b();
a._status = 0;
a._result = b;
b.then(
function (b) {
0 === a._status &&
((b = b.default),
(a._status = 1),
(a._result = b));
},
function (b) {
0 === a._status &&
((a._status = 2), (a._result = b));
}
);
}
if (1 === a._status) return a._result;
throw a._result;
}
var R = {
current: null,
};
function S() {
var a = R.current;
if (null === a) throw Error(z(321));
return a;
}
var T = {
ReactCurrentDispatcher: R,
ReactCurrentBatchConfig: {
transition: 0,
},
ReactCurrentOwner: G,
IsSomeRendererActing: {
current: !1,
},
assign: l,
};
exports.Children = {
map: P,
forEach: function (a, b, c) {
P(
a,
function () {
b.apply(this, arguments);
},
c
);
},
count: function (a) {
var b = 0;
P(a, function () {
b++;
});
return b;
},
toArray: function (a) {
return (
P(a, function (a) {
return a;
}) || []
);
},
only: function (a) {
if (!L(a)) throw Error(z(143));
return a;
},
};
exports.Component = C;
exports.PureComponent = E;
exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = T;
exports.cloneElement = function (a, b, c) {
if (null === a || void 0 === a) throw Error(z(267, a));
var e = l({}, a.props),
d = a.key,
k = a.ref,
h = a._owner;
if (null != b) {
void 0 !== b.ref && ((k = b.ref), (h = G.current));
void 0 !== b.key && (d = "" + b.key);
if (a.type && a.type.defaultProps)
var g = a.type.defaultProps;
for (f in b)
H.call(b, f) &&
!I.hasOwnProperty(f) &&
(e[f] =
void 0 === b[f] && void 0 !== g ? g[f] : b[f]);
}
var f = arguments.length - 2;
if (1 === f) e.children = c;
else if (1 < f) {
g = Array(f);
for (var m = 0; m < f; m++) g[m] = arguments[m + 2];
e.children = g;
}
return {
$$typeof: n,
type: a.type,
key: d,
ref: k,
props: e,
_owner: h,
};
};
exports.createContext = function (a, b) {
void 0 === b && (b = null);
a = {
$$typeof: r,
_calculateChangedBits: b,
_currentValue: a,
_currentValue2: a,
_threadCount: 0,
Provider: null,
Consumer: null,
};
a.Provider = {
$$typeof: q,
_context: a,
};
return (a.Consumer = a);
};
exports.createElement = J;
exports.createFactory = function (a) {
var b = J.bind(null, a);
b.type = a;
return b;
};
exports.createRef = function () {
return {
current: null,
};
};
exports.forwardRef = function (a) {
return {
$$typeof: t,
render: a,
};
};
exports.isValidElement = L;
exports.lazy = function (a) {
return {
$$typeof: v,
_payload: {
_status: -1,
_result: a,
},
_init: Q,
};
};
exports.memo = function (a, b) {
return {
$$typeof: u,
type: a,
compare: void 0 === b ? null : b,
};
};
exports.useCallback = function (a, b) {
return S().useCallback(a, b);
};
exports.useContext = function (a, b) {
return S().useContext(a, b);
};
exports.useDebugValue = function () {};
exports.useEffect = function (a, b) {
return S().useEffect(a, b);
};
exports.useImperativeHandle = function (a, b, c) {
return S().useImperativeHandle(a, b, c);
};
exports.useLayoutEffect = function (a, b) {
return S().useLayoutEffect(a, b);
};
exports.useMemo = function (a, b) {
return S().useMemo(a, b);
};
exports.useReducer = function (a, b, c) {
return S().useReducer(a, b, c);
};
exports.useRef = function (a) {
return S().useRef(a);
};
exports.useState = function (a) {
return S().useState(a);
};
exports.version = "17.0.2";
/***/
},
/***/ 2735: /***/ function (
module,
__unused_webpack_exports,
__webpack_require__
) {
if (true) {
module.exports = __webpack_require__(8447);
} else {
}
/***/
},
/***/ 4512: /***/ function (
module,
__unused_webpack_exports,
__webpack_require__
) {
if (true) {
module.exports = __webpack_require__(6094);
} else {
}
/***/
},
/***/ 4029: /***/ function (
__unused_webpack_module,
exports,
__webpack_require__
) {
/** @license React vundefined
* use-subscription.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
var e = __webpack_require__(1474),
g = __webpack_require__(2735);
exports.useSubscription = function (a) {
var c = a.getCurrentValue,
d = a.subscribe,
b = g.useState(function () {
return {
getCurrentValue: c,
subscribe: d,
value: c(),
};
});
a = b[0];
var f = b[1];
b = a.value;
if (a.getCurrentValue !== c || a.subscribe !== d)
(b = c()),
f({
getCurrentValue: c,
subscribe: d,
value: b,
});
g.useDebugValue(b);
g.useEffect(
function () {
function b() {
if (!a) {
var b = c();
f(function (a) {
return a.getCurrentValue !== c ||
a.subscribe !== d ||
a.value === b
? a
: e({}, a, {
value: b,
});
});
}
}
var a = !1,
h = d(b);
b();
return function () {
a = !0;
h();
};
},
[c, d]
);
return b;
};
/***/
},
/***/ 4234: /***/ function (
module,
__unused_webpack_exports,
__webpack_require__
) {
if (true) {
module.exports = __webpack_require__(4029);
} else {
}
/***/
},
},
]);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/fixture/projects/next/.archive-4/framework-054ead69ea8124b4cb27/output.js | JavaScript | "use strict";
(self.webpackChunk_N_E = self.webpackChunk_N_E || []).push(
[
[774,],
{
3975: function (
__unused_webpack_module, exports, __webpack_require__
) {
/** @license React v17.0.2
* react-dom.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
var aa = __webpack_require__(
2735
),
m = __webpack_require__(
1474
),
r = __webpack_require__(
9489
);
function y(
a
) {
for (
var b =
"https://reactjs.org/docs/error-decoder.html?invariant=" +
a,
c = 1;
c < arguments.length;
c++
)
b += "&args[]=" + encodeURIComponent(
arguments[c]
);
return (
"Minified React error #" +
a +
"; visit " +
b +
" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."
);
}
if (!aa) throw Error(
y(
227
)
);
var ba = new Set(
),
ca = {
};
function da(
a, b
) {
ea(
a,
b
), ea(
a + "Capture",
b
);
}
function ea(
a, b
) {
for (ca[a] = b, a = 0; a < b.length; a++) ba.add(
b[a]
);
}
var fa = !(
"undefined" == typeof window ||
void 0 === window.document ||
void 0 === window.document.createElement
),
ha =
/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,
ia = Object.prototype.hasOwnProperty,
ja = {
},
ka = {
};
function B(
a, b, c, d, e, f, g
) {
(this.acceptsBooleans = 2 === b || 3 === b || 4 === b),
(this.attributeName = d),
(this.attributeNamespace = e),
(this.mustUseProperty = c),
(this.propertyName = a),
(this.type = b),
(this.sanitizeURL = f),
(this.removeEmptyString = g);
}
var D = {
};
"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style"
.split(
" "
)
.forEach(
function (
a
) {
D[a] = new B(
a,
0,
!1,
a,
null,
!1,
!1
);
}
),
[
["acceptCharset", "accept-charset",],
["className", "class",],
["htmlFor", "for",],
["httpEquiv", "http-equiv",],
].forEach(
function (
a
) {
var b = a[0];
D[b] = new B(
b,
1,
!1,
a[1],
null,
!1,
!1
);
}
),
["contentEditable", "draggable", "spellCheck", "value",].forEach(
function (
a
) {
D[a] = new B(
a,
2,
!1,
a.toLowerCase(
),
null,
!1,
!1
);
}
),
[
"autoReverse",
"externalResourcesRequired",
"focusable",
"preserveAlpha",
].forEach(
function (
a
) {
D[a] = new B(
a,
2,
!1,
a,
null,
!1,
!1
);
}
),
"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope"
.split(
" "
)
.forEach(
function (
a
) {
D[a] = new B(
a,
3,
!1,
a.toLowerCase(
),
null,
!1,
!1
);
}
),
["checked", "multiple", "muted", "selected",].forEach(
function (
a
) {
D[a] = new B(
a,
3,
!0,
a,
null,
!1,
!1
);
}
),
["capture", "download",].forEach(
function (
a
) {
D[a] = new B(
a,
4,
!1,
a,
null,
!1,
!1
);
}
),
["cols", "rows", "size", "span",].forEach(
function (
a
) {
D[a] = new B(
a,
6,
!1,
a,
null,
!1,
!1
);
}
),
["rowSpan", "start",].forEach(
function (
a
) {
D[a] = new B(
a,
5,
!1,
a.toLowerCase(
),
null,
!1,
!1
);
}
);
var oa = /[\-:]([a-z])/g;
function pa(
a
) {
return a[1].toUpperCase(
);
}
function qa(
a, b, c, d
) {
var e = D.hasOwnProperty(
b
)
? D[b]
: null;
(null !== e
? 0 === e.type
: !d &&
2 < b.length &&
("o" === b[0] || "O" === b[0]) &&
("n" === b[1] || "N" === b[1])) ||
((function (
a, b, c, d
) {
if (
null == b ||
(function (
a, b, c, d
) {
if (null !== c && 0 === c.type) return !1;
switch (typeof b) {
case "function":
case "symbol":
return !0;
case "boolean":
return (
!d &&
(null !== c
? !c.acceptsBooleans
: "data-" !==
(a = a
.toLowerCase(
)
.slice(
0,
5
)) &&
"aria-" !== a)
);
default:
return !1;
}
})(
a,
b,
c,
d
)
)
return !0;
if (d) return !1;
if (null !== c)
switch (c.type) {
case 3:
return !b;
case 4:
return !1 === b;
case 5:
return isNaN(
b
);
case 6:
return isNaN(
b
) || 1 > b;
}
return !1;
})(
b,
c,
e,
d
) && (c = null),
d || null === e
? (function (
a
) {
return (
!!ia.call(
ka,
a
) ||
(!ia.call(
ja,
a
) &&
(ha.test(
a
)
? (ka[a] = !0)
: ((ja[a] = !0), !1)))
);
})(
b
) &&
(null === c
? a.removeAttribute(
b
)
: a.setAttribute(
b,
"" + c
))
: e.mustUseProperty
? (a[e.propertyName] =
null === c ? 3 !== e.type && "" : c)
: ((b = e.attributeName),
(d = e.attributeNamespace),
null === c
? a.removeAttribute(
b
)
: ((c =
3 === (e = e.type) || (4 === e && !0 === c)
? ""
: "" + c),
d
? a.setAttributeNS(
d,
b,
c
)
: a.setAttribute(
b,
c
))));
}
"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height"
.split(
" "
)
.forEach(
function (
a
) {
var b = a.replace(
oa,
pa
);
D[b] = new B(
b,
1,
!1,
a,
null,
!1,
!1
);
}
),
"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type"
.split(
" "
)
.forEach(
function (
a
) {
var b = a.replace(
oa,
pa
);
D[b] = new B(
b,
1,
!1,
a,
"http://www.w3.org/1999/xlink",
!1,
!1
);
}
),
["xml:base", "xml:lang", "xml:space",].forEach(
function (
a
) {
var b = a.replace(
oa,
pa
);
D[b] = new B(
b,
1,
!1,
a,
"http://www.w3.org/XML/1998/namespace",
!1,
!1
);
}
),
["tabIndex", "crossOrigin",].forEach(
function (
a
) {
D[a] = new B(
a,
1,
!1,
a.toLowerCase(
),
null,
!1,
!1
);
}
),
(D.xlinkHref = new B(
"xlinkHref",
1,
!1,
"xlink:href",
"http://www.w3.org/1999/xlink",
!0,
!1
)),
["src", "href", "action", "formAction",].forEach(
function (
a
) {
D[a] = new B(
a,
1,
!1,
a.toLowerCase(
),
null,
!0,
!0
);
}
);
var ra = aa.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,
sa = 60103,
ta = 60106,
ua = 60107,
wa = 60108,
xa = 60114,
ya = 60109,
za = 60110,
Aa = 60112,
Ba = 60113,
Ca = 60120,
Da = 60115,
Ea = 60116,
Fa = 60121,
Ga = 60128,
Ha = 60129,
Ia = 60130,
Ja = 60131;
if ("function" == typeof Symbol && Symbol.for) {
var E = Symbol.for;
(sa = E(
"react.element"
)),
(ta = E(
"react.portal"
)),
(ua = E(
"react.fragment"
)),
(wa = E(
"react.strict_mode"
)),
(xa = E(
"react.profiler"
)),
(ya = E(
"react.provider"
)),
(za = E(
"react.context"
)),
(Aa = E(
"react.forward_ref"
)),
(Ba = E(
"react.suspense"
)),
(Ca = E(
"react.suspense_list"
)),
(Da = E(
"react.memo"
)),
(Ea = E(
"react.lazy"
)),
(Fa = E(
"react.block"
)),
E(
"react.scope"
),
(Ga = E(
"react.opaque.id"
)),
(Ha = E(
"react.debug_trace_mode"
)),
(Ia = E(
"react.offscreen"
)),
(Ja = E(
"react.legacy_hidden"
));
}
var Ma,
Ka = "function" == typeof Symbol && Symbol.iterator;
function La(
a
) {
return null === a || "object" != typeof a
? null
: "function" ==
typeof (a = (Ka && a[Ka]) || a["@@iterator"])
? a
: null;
}
function Na(
a
) {
if (void 0 === Ma)
try {
throw Error(
);
} catch (c) {
var b = c.stack.trim(
).match(
/\n( *(at )?)/
);
Ma = (b && b[1]) || "";
}
return "\n" + Ma + a;
}
var Oa = !1;
function Pa(
a, b
) {
if (!a || Oa) return "";
Oa = !0;
var c = Error.prepareStackTrace;
Error.prepareStackTrace = void 0;
try {
if (b)
if (
((b = function (
) {
throw Error(
);
}),
Object.defineProperty(
b.prototype,
"props",
{
set: function (
) {
throw Error(
);
},
}
),
"object" == typeof Reflect && Reflect.construct)
) {
try {
Reflect.construct(
b,
[]
);
} catch (k) {
var d = k;
}
Reflect.construct(
a,
[],
b
);
} else {
try {
b.call(
);
} catch (k) {
d = k;
}
a.call(
b.prototype
);
}
else {
try {
throw Error(
);
} catch (k) {
d = k;
}
a(
);
}
} catch (k) {
if (k && d && "string" == typeof k.stack) {
for (
var e = k.stack.split(
"\n"
),
f = d.stack.split(
"\n"
),
g = e.length - 1,
h = f.length - 1;
1 <= g && 0 <= h && e[g] !== f[h];
)
h--;
for (; 1 <= g && 0 <= h; g--, h--)
if (e[g] !== f[h]) {
if (1 !== g || 1 !== h)
do {
if ((g--, 0 > --h || e[g] !== f[h]))
return (
"\n" +
e[g].replace(
" at new ",
" at "
)
);
} while (1 <= g && 0 <= h);
break;
}
}
} finally {
(Oa = !1), (Error.prepareStackTrace = c);
}
return (a = a ? a.displayName || a.name : "")
? Na(
a
)
: "";
}
function Qa(
a
) {
switch (a.tag) {
case 5:
return Na(
a.type
);
case 16:
return Na(
"Lazy"
);
case 13:
return Na(
"Suspense"
);
case 19:
return Na(
"SuspenseList"
);
case 0:
case 2:
case 15:
return (a = Pa(
a.type,
!1
));
case 11:
return (a = Pa(
a.type.render,
!1
));
case 22:
return (a = Pa(
a.type._render,
!1
));
case 1:
return (a = Pa(
a.type,
!0
));
default:
return "";
}
}
function Ra(
a
) {
if (null == a) return null;
if ("function" == typeof a)
return a.displayName || a.name || null;
if ("string" == typeof a) return a;
switch (a) {
case ua:
return "Fragment";
case ta:
return "Portal";
case xa:
return "Profiler";
case wa:
return "StrictMode";
case Ba:
return "Suspense";
case Ca:
return "SuspenseList";
}
if ("object" == typeof a)
switch (a.$$typeof) {
case za:
return (a.displayName || "Context") + ".Consumer";
case ya:
return (
(a._context.displayName || "Context") +
".Provider"
);
case Aa:
var b = a.render;
return (
(b = b.displayName || b.name || ""),
a.displayName ||
("" !== b
? "ForwardRef(" + b + ")"
: "ForwardRef")
);
case Da:
return Ra(
a.type
);
case Fa:
return Ra(
a._render
);
case Ea:
(b = a._payload), (a = a._init);
try {
return Ra(
a(
b
)
);
} catch (c) {}
}
return null;
}
function Sa(
a
) {
switch (typeof a) {
case "boolean":
case "number":
case "object":
case "string":
case "undefined":
return a;
default:
return "";
}
}
function Ta(
a
) {
var b = a.type;
return (
(a = a.nodeName) &&
"input" === a.toLowerCase(
) &&
("checkbox" === b || "radio" === b)
);
}
function Va(
a
) {
a._valueTracker ||
(a._valueTracker = (function (
a
) {
var b = Ta(
a
)
? "checked"
: "value",
c = Object.getOwnPropertyDescriptor(
a.constructor.prototype,
b
),
d = "" + a[b];
if (
!a.hasOwnProperty(
b
) &&
void 0 !== c &&
"function" == typeof c.get &&
"function" == typeof c.set
) {
var e = c.get,
f = c.set;
return (
Object.defineProperty(
a,
b,
{
configurable: !0,
get: function (
) {
return e.call(
this
);
},
set: function (
a
) {
(d = "" + a), f.call(
this,
a
);
},
}
),
Object.defineProperty(
a,
b,
{
enumerable: c.enumerable,
}
),
{
getValue: function (
) {
return d;
},
setValue: function (
a
) {
d = "" + a;
},
stopTracking: function (
) {
(a._valueTracker = null), delete a[b];
},
}
);
}
})(
a
));
}
function Wa(
a
) {
if (!a) return !1;
var b = a._valueTracker;
if (!b) return !0;
var c = b.getValue(
),
d = "";
return (
a && (d = Ta(
a
)
? (a.checked ? "true" : "false")
: a.value),
(a = d) !== c && (b.setValue(
a
), !0)
);
}
function Xa(
a
) {
if (
void 0 ===
(a =
a ||
("undefined" != typeof document ? document : void 0))
)
return null;
try {
return a.activeElement || a.body;
} catch (b) {
return a.body;
}
}
function Ya(
a, b
) {
var c = b.checked;
return m(
{
},
b,
{
defaultChecked: void 0,
defaultValue: void 0,
value: void 0,
checked: null != c ? c : a._wrapperState.initialChecked,
}
);
}
function Za(
a, b
) {
var c = null == b.defaultValue ? "" : b.defaultValue,
d = null != b.checked ? b.checked : b.defaultChecked;
(c = Sa(
null != b.value ? b.value : c
)),
(a._wrapperState = {
initialChecked: d,
initialValue: c,
controlled:
"checkbox" === b.type || "radio" === b.type
? null != b.checked
: null != b.value,
});
}
function $a(
a, b
) {
null != (b = b.checked) && qa(
a,
"checked",
b,
!1
);
}
function ab(
a, b
) {
$a(
a,
b
);
var c = Sa(
b.value
),
d = b.type;
if (null != c)
"number" === d
? ((0 === c && "" === a.value) || a.value != c) &&
(a.value = "" + c)
: a.value !== "" + c && (a.value = "" + c);
else if ("submit" === d || "reset" === d)
return void a.removeAttribute(
"value"
);
b.hasOwnProperty(
"value"
)
? bb(
a,
b.type,
c
)
: b.hasOwnProperty(
"defaultValue"
) &&
bb(
a,
b.type,
Sa(
b.defaultValue
)
),
null == b.checked &&
null != b.defaultChecked &&
(a.defaultChecked = !!b.defaultChecked);
}
function cb(
a, b, c
) {
if (
b.hasOwnProperty(
"value"
) ||
b.hasOwnProperty(
"defaultValue"
)
) {
var d = b.type;
if (
!(
("submit" !== d && "reset" !== d) ||
(void 0 !== b.value && null !== b.value)
)
)
return;
(b = "" + a._wrapperState.initialValue),
c || b === a.value || (a.value = b),
(a.defaultValue = b);
}
"" !== (c = a.name) && (a.name = ""),
(a.defaultChecked = !!a._wrapperState.initialChecked),
"" !== c && (a.name = c);
}
function bb(
a, b, c
) {
("number" === b && Xa(
a.ownerDocument
) === a) ||
(null == c
? (a.defaultValue = "" + a._wrapperState.initialValue)
: a.defaultValue !== "" + c &&
(a.defaultValue = "" + c));
}
function eb(
a, b
) {
return (
(a = m(
{
children: void 0,
},
b
)),
(b = (function (
a
) {
var b = "";
return (
aa.Children.forEach(
a,
function (
a
) {
null != a && (b += a);
}
),
b
);
})(
b.children
)) && (a.children = b),
a
);
}
function fb(
a, b, c, d
) {
if (((a = a.options), b)) {
b = {
};
for (var e = 0; e < c.length; e++) b["$" + c[e]] = !0;
for (c = 0; c < a.length; c++)
(e = b.hasOwnProperty(
"$" + a[c].value
)),
a[c].selected !== e && (a[c].selected = e),
e && d && (a[c].defaultSelected = !0);
} else {
for (c = "" + Sa(
c
), b = null, e = 0; e < a.length; e++) {
if (a[e].value === c)
return (
(a[e].selected = !0),
void (d && (a[e].defaultSelected = !0))
);
null !== b || a[e].disabled || (b = a[e]);
}
null !== b && (b.selected = !0);
}
}
function gb(
a, b
) {
if (null != b.dangerouslySetInnerHTML) throw Error(
y(
91
)
);
return m(
{
},
b,
{
value: void 0,
defaultValue: void 0,
children: "" + a._wrapperState.initialValue,
}
);
}
function hb(
a, b
) {
var c = b.value;
if (null == c) {
if (((c = b.children), (b = b.defaultValue), null != c)) {
if (null != b) throw Error(
y(
92
)
);
if (Array.isArray(
c
)) {
if (!(1 >= c.length)) throw Error(
y(
93
)
);
c = c[0];
}
b = c;
}
null == b && (b = ""), (c = b);
}
a._wrapperState = {
initialValue: Sa(
c
),
};
}
function ib(
a, b
) {
var c = Sa(
b.value
),
d = Sa(
b.defaultValue
);
null != c &&
((c = "" + c) !== a.value && (a.value = c),
null == b.defaultValue &&
a.defaultValue !== c &&
(a.defaultValue = c)),
null != d && (a.defaultValue = "" + d);
}
function jb(
a
) {
var b = a.textContent;
b === a._wrapperState.initialValue &&
"" !== b &&
null !== b &&
(a.value = b);
}
var kb_html = "http://www.w3.org/1999/xhtml",
kb_svg = "http://www.w3.org/2000/svg";
function lb(
a
) {
switch (a) {
case "svg":
return "http://www.w3.org/2000/svg";
case "math":
return "http://www.w3.org/1998/Math/MathML";
default:
return "http://www.w3.org/1999/xhtml";
}
}
function mb(
a, b
) {
return null == a || "http://www.w3.org/1999/xhtml" === a
? lb(
b
)
: "http://www.w3.org/2000/svg" === a &&
"foreignObject" === b
? "http://www.w3.org/1999/xhtml"
: a;
}
var nb,
a,
ob =
((a = function (
a, b
) {
if (a.namespaceURI !== kb_svg || "innerHTML" in a)
a.innerHTML = b;
else {
for (
(nb =
nb ||
document.createElement(
"div"
)).innerHTML =
"<svg>" + b.valueOf(
).toString(
) + "</svg>",
b = nb.firstChild;
a.firstChild;
)
a.removeChild(
a.firstChild
);
for (; b.firstChild; ) a.appendChild(
b.firstChild
);
}
}),
"undefined" != typeof MSApp && MSApp.execUnsafeLocalFunction
? function (
b, c, d, e
) {
MSApp.execUnsafeLocalFunction(
function (
) {
return a(
b,
c
);
}
);
}
: a);
function pb(
a, b
) {
if (b) {
var c = a.firstChild;
if (c && c === a.lastChild && 3 === c.nodeType)
return void (c.nodeValue = b);
}
a.textContent = b;
}
var qb = {
animationIterationCount: !0,
borderImageOutset: !0,
borderImageSlice: !0,
borderImageWidth: !0,
boxFlex: !0,
boxFlexGroup: !0,
boxOrdinalGroup: !0,
columnCount: !0,
columns: !0,
flex: !0,
flexGrow: !0,
flexPositive: !0,
flexShrink: !0,
flexNegative: !0,
flexOrder: !0,
gridArea: !0,
gridRow: !0,
gridRowEnd: !0,
gridRowSpan: !0,
gridRowStart: !0,
gridColumn: !0,
gridColumnEnd: !0,
gridColumnSpan: !0,
gridColumnStart: !0,
fontWeight: !0,
lineClamp: !0,
lineHeight: !0,
opacity: !0,
order: !0,
orphans: !0,
tabSize: !0,
widows: !0,
zIndex: !0,
zoom: !0,
fillOpacity: !0,
floodOpacity: !0,
stopOpacity: !0,
strokeDasharray: !0,
strokeDashoffset: !0,
strokeMiterlimit: !0,
strokeOpacity: !0,
strokeWidth: !0,
},
rb = ["Webkit", "ms", "Moz", "O",];
function sb(
a, b, c
) {
return null == b || "boolean" == typeof b || "" === b
? ""
: c ||
"number" != typeof b ||
0 === b ||
(qb.hasOwnProperty(
a
) && qb[a])
? ("" + b).trim(
)
: b + "px";
}
function tb(
a, b
) {
for (var c in ((a = a.style), b))
if (b.hasOwnProperty(
c
)) {
var d = 0 === c.indexOf(
"--"
),
e = sb(
c,
b[c],
d
);
"float" === c && (c = "cssFloat"),
d
? a.setProperty(
c,
e
)
: (a[c] = e);
}
}
Object.keys(
qb
).forEach(
function (
a
) {
rb.forEach(
function (
b
) {
(b = b + a.charAt(
0
).toUpperCase(
) + a.substring(
1
)),
(qb[b] = qb[a]);
}
);
}
);
var ub = m(
{
menuitem: !0,
},
{
area: !0,
base: !0,
br: !0,
col: !0,
embed: !0,
hr: !0,
img: !0,
input: !0,
keygen: !0,
link: !0,
meta: !0,
param: !0,
source: !0,
track: !0,
wbr: !0,
}
);
function vb(
a, b
) {
if (b) {
if (
ub[a] &&
(null != b.children ||
null != b.dangerouslySetInnerHTML)
)
throw Error(
y(
137,
a
)
);
if (null != b.dangerouslySetInnerHTML) {
if (null != b.children) throw Error(
y(
60
)
);
if (
"object" != typeof b.dangerouslySetInnerHTML ||
!("__html" in b.dangerouslySetInnerHTML)
)
throw Error(
y(
61
)
);
}
if (null != b.style && "object" != typeof b.style)
throw Error(
y(
62
)
);
}
}
function wb(
a, b
) {
if (-1 === a.indexOf(
"-"
)) return "string" == typeof b.is;
switch (a) {
case "annotation-xml":
case "color-profile":
case "font-face":
case "font-face-src":
case "font-face-uri":
case "font-face-format":
case "font-face-name":
case "missing-glyph":
return !1;
default:
return !0;
}
}
function xb(
a
) {
return (
(a = a.target || a.srcElement || window)
.correspondingUseElement &&
(a = a.correspondingUseElement),
3 === a.nodeType ? a.parentNode : a
);
}
var yb = null,
zb = null,
Ab = null;
function Bb(
a
) {
if ((a = Cb(
a
))) {
if ("function" != typeof yb) throw Error(
y(
280
)
);
var b = a.stateNode;
b && ((b = Db(
b
)), yb(
a.stateNode,
a.type,
b
));
}
}
function Eb(
a
) {
zb
? (Ab
? Ab.push(
a
)
: (Ab = [a,]))
: (zb = a);
}
function Fb(
) {
if (zb) {
var a = zb,
b = Ab;
if (((Ab = zb = null), Bb(
a
), b))
for (a = 0; a < b.length; a++) Bb(
b[a]
);
}
}
function Gb(
a, b
) {
return a(
b
);
}
function Hb(
a, b, c, d, e
) {
return a(
b,
c,
d,
e
);
}
function Ib(
) {}
var Jb = Gb,
Kb = !1,
Lb = !1;
function Mb(
) {
(null === zb && null === Ab) || (Ib(
), Fb(
));
}
function Ob(
a, b
) {
var c = a.stateNode;
if (null === c) return null;
var d = Db(
c
);
if (null === d) return null;
c = d[b];
a: switch (b) {
case "onClick":
case "onClickCapture":
case "onDoubleClick":
case "onDoubleClickCapture":
case "onMouseDown":
case "onMouseDownCapture":
case "onMouseMove":
case "onMouseMoveCapture":
case "onMouseUp":
case "onMouseUpCapture":
case "onMouseEnter":
(d = !d.disabled) ||
(d = !(
"button" === (a = a.type) ||
"input" === a ||
"select" === a ||
"textarea" === a
)),
(a = !d);
break a;
default:
a = !1;
}
if (a) return null;
if (c && "function" != typeof c)
throw Error(
y(
231,
b,
typeof c
)
);
return c;
}
var Pb = !1;
if (fa)
try {
var Qb = {
};
Object.defineProperty(
Qb,
"passive",
{
get: function (
) {
Pb = !0;
},
}
),
window.addEventListener(
"test",
Qb,
Qb
),
window.removeEventListener(
"test",
Qb,
Qb
);
} catch (a) {
Pb = !1;
}
function Rb(
a, b, c, d, e, f, g, h, k
) {
var l = Array.prototype.slice.call(
arguments,
3
);
try {
b.apply(
c,
l
);
} catch (n) {
this.onError(
n
);
}
}
var Sb = !1,
Tb = null,
Ub = !1,
Vb = null,
Wb = {
onError: function (
a
) {
(Sb = !0), (Tb = a);
},
};
function Xb(
a, b, c, d, e, f, g, h, k
) {
(Sb = !1), (Tb = null), Rb.apply(
Wb,
arguments
);
}
function Zb(
a
) {
var b = a,
c = a;
if (a.alternate) for (; b.return; ) b = b.return;
else {
a = b;
do {
0 != (1026 & (b = a).flags) && (c = b.return),
(a = b.return);
} while (a);
}
return 3 === b.tag ? c : null;
}
function $b(
a
) {
if (13 === a.tag) {
var b = a.memoizedState;
if (
(null === b &&
null !== (a = a.alternate) &&
(b = a.memoizedState),
null !== b)
)
return b.dehydrated;
}
return null;
}
function ac(
a
) {
if (Zb(
a
) !== a) throw Error(
y(
188
)
);
}
function cc(
a
) {
if (
!(a = (function (
a
) {
var b = a.alternate;
if (!b) {
if (null === (b = Zb(
a
))) throw Error(
y(
188
)
);
return b !== a ? null : a;
}
for (var c = a, d = b; ; ) {
var e = c.return;
if (null === e) break;
var f = e.alternate;
if (null === f) {
if (null !== (d = e.return)) {
c = d;
continue;
}
break;
}
if (e.child === f.child) {
for (f = e.child; f; ) {
if (f === c) return ac(
e
), a;
if (f === d) return ac(
e
), b;
f = f.sibling;
}
throw Error(
y(
188
)
);
}
if (c.return !== d.return) (c = e), (d = f);
else {
for (var g = !1, h = e.child; h; ) {
if (h === c) {
(g = !0), (c = e), (d = f);
break;
}
if (h === d) {
(g = !0), (d = e), (c = f);
break;
}
h = h.sibling;
}
if (!g) {
for (h = f.child; h; ) {
if (h === c) {
(g = !0), (c = f), (d = e);
break;
}
if (h === d) {
(g = !0), (d = f), (c = e);
break;
}
h = h.sibling;
}
if (!g) throw Error(
y(
189
)
);
}
}
if (c.alternate !== d) throw Error(
y(
190
)
);
}
if (3 !== c.tag) throw Error(
y(
188
)
);
return c.stateNode.current === c ? a : b;
})(
a
))
)
return null;
for (var b = a; ; ) {
if (5 === b.tag || 6 === b.tag) return b;
if (b.child) (b.child.return = b), (b = b.child);
else {
if (b === a) break;
for (; !b.sibling; ) {
if (!b.return || b.return === a) return null;
b = b.return;
}
(b.sibling.return = b.return), (b = b.sibling);
}
}
return null;
}
function dc(
a, b
) {
for (var c = a.alternate; null !== b; ) {
if (b === a || b === c) return !0;
b = b.return;
}
return !1;
}
var ec,
fc,
gc,
hc,
ic = !1,
jc = [],
kc = null,
lc = null,
mc = null,
nc = new Map(
),
oc = new Map(
),
pc = [],
qc =
"mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(
" "
);
function rc(
a, b, c, d, e
) {
return {
blockedOn: a,
domEventName: b,
eventSystemFlags: 16 | c,
nativeEvent: e,
targetContainers: [d,],
};
}
function sc(
a, b
) {
switch (a) {
case "focusin":
case "focusout":
kc = null;
break;
case "dragenter":
case "dragleave":
lc = null;
break;
case "mouseover":
case "mouseout":
mc = null;
break;
case "pointerover":
case "pointerout":
nc.delete(
b.pointerId
);
break;
case "gotpointercapture":
case "lostpointercapture":
oc.delete(
b.pointerId
);
}
}
function tc(
a, b, c, d, e, f
) {
return null === a || a.nativeEvent !== f
? ((a = rc(
b,
c,
d,
e,
f
)),
null !== b && null !== (b = Cb(
b
)) && fc(
b
),
a)
: ((a.eventSystemFlags |= d),
(b = a.targetContainers),
null !== e && -1 === b.indexOf(
e
) && b.push(
e
),
a);
}
function vc(
a
) {
var b = wc(
a.target
);
if (null !== b) {
var c = Zb(
b
);
if (null !== c)
if (13 === (b = c.tag)) {
if (null !== (b = $b(
c
)))
return (
(a.blockedOn = b),
void hc(
a.lanePriority,
function (
) {
r.unstable_runWithPriority(
a.priority,
function (
) {
gc(
c
);
}
);
}
)
);
} else if (3 === b && c.stateNode.hydrate)
return void (a.blockedOn =
3 === c.tag ? c.stateNode.containerInfo : null);
}
a.blockedOn = null;
}
function xc(
a
) {
if (null !== a.blockedOn) return !1;
for (var b = a.targetContainers; 0 < b.length; ) {
var c = yc(
a.domEventName,
a.eventSystemFlags,
b[0],
a.nativeEvent
);
if (null !== c)
return (
null !== (b = Cb(
c
)) && fc(
b
), (a.blockedOn = c), !1
);
b.shift(
);
}
return !0;
}
function zc(
a, b, c
) {
xc(
a
) && c.delete(
b
);
}
function Ac(
) {
for (ic = !1; 0 < jc.length; ) {
var a = jc[0];
if (null !== a.blockedOn) {
null !== (a = Cb(
a.blockedOn
)) && ec(
a
);
break;
}
for (var b = a.targetContainers; 0 < b.length; ) {
var c = yc(
a.domEventName,
a.eventSystemFlags,
b[0],
a.nativeEvent
);
if (null !== c) {
a.blockedOn = c;
break;
}
b.shift(
);
}
null === a.blockedOn && jc.shift(
);
}
null !== kc && xc(
kc
) && (kc = null),
null !== lc && xc(
lc
) && (lc = null),
null !== mc && xc(
mc
) && (mc = null),
nc.forEach(
zc
),
oc.forEach(
zc
);
}
function Bc(
a, b
) {
a.blockedOn === b &&
((a.blockedOn = null),
ic ||
((ic = !0),
r.unstable_scheduleCallback(
r.unstable_NormalPriority,
Ac
)));
}
function Cc(
a
) {
function b(
b
) {
return Bc(
b,
a
);
}
if (0 < jc.length) {
Bc(
jc[0],
a
);
for (var c = 1; c < jc.length; c++) {
var d = jc[c];
d.blockedOn === a && (d.blockedOn = null);
}
}
for (
null !== kc && Bc(
kc,
a
),
null !== lc && Bc(
lc,
a
),
null !== mc && Bc(
mc,
a
),
nc.forEach(
b
),
oc.forEach(
b
),
c = 0;
c < pc.length;
c++
)
(d = pc[c]).blockedOn === a && (d.blockedOn = null);
for (; 0 < pc.length && null === (c = pc[0]).blockedOn; )
vc(
c
), null === c.blockedOn && pc.shift(
);
}
function Dc(
a, b
) {
var c = {
};
return (
(c[a.toLowerCase(
)] = b.toLowerCase(
)),
(c["Webkit" + a] = "webkit" + b),
(c["Moz" + a] = "moz" + b),
c
);
}
var Ec = {
animationend: Dc(
"Animation",
"AnimationEnd"
),
animationiteration: Dc(
"Animation",
"AnimationIteration"
),
animationstart: Dc(
"Animation",
"AnimationStart"
),
transitionend: Dc(
"Transition",
"TransitionEnd"
),
},
Fc = {
},
Gc = {
};
function Hc(
a
) {
if (Fc[a]) return Fc[a];
if (!Ec[a]) return a;
var c,
b = Ec[a];
for (c in b)
if (b.hasOwnProperty(
c
) && c in Gc) return (Fc[a] = b[c]);
return a;
}
fa &&
((Gc = document.createElement(
"div"
).style),
"AnimationEvent" in window ||
(delete Ec.animationend.animation,
delete Ec.animationiteration.animation,
delete Ec.animationstart.animation),
"TransitionEvent" in window ||
delete Ec.transitionend.transition);
var Ic = Hc(
"animationend"
),
Jc = Hc(
"animationiteration"
),
Kc = Hc(
"animationstart"
),
Lc = Hc(
"transitionend"
),
Mc = new Map(
),
Nc = new Map(
),
Oc = [
"abort",
"abort",
Ic,
"animationEnd",
Jc,
"animationIteration",
Kc,
"animationStart",
"canplay",
"canPlay",
"canplaythrough",
"canPlayThrough",
"durationchange",
"durationChange",
"emptied",
"emptied",
"encrypted",
"encrypted",
"ended",
"ended",
"error",
"error",
"gotpointercapture",
"gotPointerCapture",
"load",
"load",
"loadeddata",
"loadedData",
"loadedmetadata",
"loadedMetadata",
"loadstart",
"loadStart",
"lostpointercapture",
"lostPointerCapture",
"playing",
"playing",
"progress",
"progress",
"seeking",
"seeking",
"stalled",
"stalled",
"suspend",
"suspend",
"timeupdate",
"timeUpdate",
Lc,
"transitionEnd",
"waiting",
"waiting",
];
function Pc(
a, b
) {
for (var c = 0; c < a.length; c += 2) {
var d = a[c],
e = a[c + 1];
(e = "on" + (e[0].toUpperCase(
) + e.slice(
1
))),
Nc.set(
d,
b
),
Mc.set(
d,
e
),
da(
e,
[d,]
);
}
}
(0, r.unstable_now)(
);
var F = 8;
function Rc(
a
) {
if (0 != (1 & a)) return (F = 15), 1;
if (0 != (2 & a)) return (F = 14), 2;
if (0 != (4 & a)) return (F = 13), 4;
var b = 24 & a;
return 0 !== b
? ((F = 12), b)
: 0 != (32 & a)
? ((F = 11), 32)
: 0 !== (b = 192 & a)
? ((F = 10), b)
: 0 != (256 & a)
? ((F = 9), 256)
: 0 !== (b = 3584 & a)
? ((F = 8), b)
: 0 != (4096 & a)
? ((F = 7), 4096)
: 0 !== (b = 4186112 & a)
? ((F = 6), b)
: 0 !== (b = 62914560 & a)
? ((F = 5), b)
: 67108864 & a
? ((F = 4), 67108864)
: 0 != (134217728 & a)
? ((F = 3), 134217728)
: 0 !== (b = 805306368 & a)
? ((F = 2), b)
: 0 != (1073741824 & a)
? ((F = 1), 1073741824)
: ((F = 8), a);
}
function Uc(
a, b
) {
var c = a.pendingLanes;
if (0 === c) return (F = 0);
var d = 0,
e = 0,
f = a.expiredLanes,
g = a.suspendedLanes,
h = a.pingedLanes;
if (0 !== f) (d = f), (e = F = 15);
else if (0 !== (f = 134217727 & c)) {
var k = f & ~g;
0 !== k
? ((d = Rc(
k
)), (e = F))
: 0 !== (h &= f) && ((d = Rc(
h
)), (e = F));
} else
0 !== (f = c & ~g)
? ((d = Rc(
f
)), (e = F))
: 0 !== h && ((d = Rc(
h
)), (e = F));
if (0 === d) return 0;
if (
((d = c & (((0 > (d = 31 - Vc(
d
))
? 0
: 1 << d) << 1) - 1)),
0 !== b && b !== d && 0 == (b & g))
) {
if ((Rc(
b
), e <= F)) return b;
F = e;
}
if (0 !== (b = a.entangledLanes))
for (a = a.entanglements, b &= d; 0 < b; )
(e = 1 << (c = 31 - Vc(
b
))), (d |= a[c]), (b &= ~e);
return d;
}
function Wc(
a
) {
return 0 !== (a = -1073741825 & a.pendingLanes)
? a
: 1073741824 & a
? 1073741824
: 0;
}
function Xc(
a, b
) {
switch (a) {
case 15:
return 1;
case 14:
return 2;
case 12:
return 0 === (a = Yc(
24 & ~b
))
? Xc(
10,
b
)
: a;
case 10:
return 0 === (a = Yc(
192 & ~b
))
? Xc(
8,
b
)
: a;
case 8:
return (
0 === (a = Yc(
3584 & ~b
)) &&
0 === (a = Yc(
4186112 & ~b
)) &&
(a = 512),
a
);
case 2:
return (
0 === (b = Yc(
805306368 & ~b
)) && (b = 268435456), b
);
}
throw Error(
y(
358,
a
)
);
}
function Yc(
a
) {
return a & -a;
}
function Zc(
a
) {
for (var b = [], c = 0; 31 > c; c++) b.push(
a
);
return b;
}
function $c(
a, b, c
) {
a.pendingLanes |= b;
var d = b - 1;
(a.suspendedLanes &= d),
(a.pingedLanes &= d),
((a = a.eventTimes)[(b = 31 - Vc(
b
))] = c);
}
var Vc = Math.clz32
? Math.clz32
: function (
a
) {
return 0 === a
? 32
: (31 - ((bd(
a
) / cd) | 0)) | 0;
},
bd = Math.log,
cd = Math.LN2;
var dd = r.unstable_UserBlockingPriority,
ed = r.unstable_runWithPriority,
fd = !0;
function gd(
a, b, c, d
) {
Kb || Ib(
);
var e = hd,
f = Kb;
Kb = !0;
try {
Hb(
e,
a,
b,
c,
d
);
} finally {
(Kb = f) || Mb(
);
}
}
function id(
a, b, c, d
) {
ed(
dd,
hd.bind(
null,
a,
b,
c,
d
)
);
}
function hd(
a, b, c, d
) {
var e;
if (fd)
if (
(e = 0 == (4 & b)) &&
0 < jc.length &&
-1 < qc.indexOf(
a
)
)
(a = rc(
null,
a,
b,
c,
d
)), jc.push(
a
);
else {
var f = yc(
a,
b,
c,
d
);
if (null === f) e && sc(
a,
d
);
else {
if (e) {
if (-1 < qc.indexOf(
a
))
return (
(a = rc(
f,
a,
b,
c,
d
)), void jc.push(
a
)
);
if (
(function (
a, b, c, d, e
) {
switch (b) {
case "focusin":
return (
(kc = tc(
kc,
a,
b,
c,
d,
e
)),
!0
);
case "dragenter":
return (
(lc = tc(
lc,
a,
b,
c,
d,
e
)),
!0
);
case "mouseover":
return (
(mc = tc(
mc,
a,
b,
c,
d,
e
)),
!0
);
case "pointerover":
var f = e.pointerId;
return (
nc.set(
f,
tc(
nc.get(
f
) || null,
a,
b,
c,
d,
e
)
),
!0
);
case "gotpointercapture":
return (
(f = e.pointerId),
oc.set(
f,
tc(
oc.get(
f
) || null,
a,
b,
c,
d,
e
)
),
!0
);
}
return !1;
})(
f,
a,
b,
c,
d
)
)
return;
sc(
a,
d
);
}
jd(
a,
b,
d,
null,
c
);
}
}
}
function yc(
a, b, c, d
) {
var e = xb(
d
);
if (null !== (e = wc(
e
))) {
var f = Zb(
e
);
if (null === f) e = null;
else {
var g = f.tag;
if (13 === g) {
if (null !== (e = $b(
f
))) return e;
e = null;
} else if (3 === g) {
if (f.stateNode.hydrate)
return 3 === f.tag
? f.stateNode.containerInfo
: null;
e = null;
} else f !== e && (e = null);
}
}
return jd(
a,
b,
d,
e,
c
), null;
}
var kd = null,
ld = null,
md = null;
function nd(
) {
if (md) return md;
var a,
d,
b = ld,
c = b.length,
e = "value" in kd ? kd.value : kd.textContent,
f = e.length;
for (a = 0; a < c && b[a] === e[a]; a++);
var g = c - a;
for (d = 1; d <= g && b[c - d] === e[f - d]; d++);
return (md = e.slice(
a,
1 < d ? 1 - d : void 0
));
}
function od(
a
) {
var b = a.keyCode;
return (
"charCode" in a
? 0 === (a = a.charCode) && 13 === b && (a = 13)
: (a = b),
10 === a && (a = 13),
32 <= a || 13 === a ? a : 0
);
}
function pd(
) {
return !0;
}
function qd(
) {
return !1;
}
function rd(
a
) {
function b(
b, d, e, f, g
) {
for (var c in ((this._reactName = b),
(this._targetInst = e),
(this.type = d),
(this.nativeEvent = f),
(this.target = g),
(this.currentTarget = null),
a))
a.hasOwnProperty(
c
) &&
((b = a[c]), (this[c] = b
? b(
f
)
: f[c]));
return (
(this.isDefaultPrevented = (
null != f.defaultPrevented
? f.defaultPrevented
: !1 === f.returnValue
)
? pd
: qd),
(this.isPropagationStopped = qd),
this
);
}
return (
m(
b.prototype,
{
preventDefault: function (
) {
this.defaultPrevented = !0;
var a = this.nativeEvent;
a &&
(a.preventDefault
? a.preventDefault(
)
: "unknown" != typeof a.returnValue &&
(a.returnValue = !1),
(this.isDefaultPrevented = pd));
},
stopPropagation: function (
) {
var a = this.nativeEvent;
a &&
(a.stopPropagation
? a.stopPropagation(
)
: "unknown" != typeof a.cancelBubble &&
(a.cancelBubble = !0),
(this.isPropagationStopped = pd));
},
persist: function (
) {},
isPersistent: pd,
}
),
b
);
}
var wd,
xd,
yd,
sd = {
eventPhase: 0,
bubbles: 0,
cancelable: 0,
timeStamp: function (
a
) {
return a.timeStamp || Date.now(
);
},
defaultPrevented: 0,
isTrusted: 0,
},
td = rd(
sd
),
ud = m(
{
},
sd,
{
view: 0,
detail: 0,
}
),
vd = rd(
ud
),
Ad = m(
{
},
ud,
{
screenX: 0,
screenY: 0,
clientX: 0,
clientY: 0,
pageX: 0,
pageY: 0,
ctrlKey: 0,
shiftKey: 0,
altKey: 0,
metaKey: 0,
getModifierState: zd,
button: 0,
buttons: 0,
relatedTarget: function (
a
) {
return void 0 === a.relatedTarget
? a.fromElement === a.srcElement
? a.toElement
: a.fromElement
: a.relatedTarget;
},
movementX: function (
a
) {
return "movementX" in a
? a.movementX
: (a !== yd &&
(yd && "mousemove" === a.type
? ((wd = a.screenX - yd.screenX),
(xd = a.screenY - yd.screenY))
: (xd = wd = 0),
(yd = a)),
wd);
},
movementY: function (
a
) {
return "movementY" in a ? a.movementY : xd;
},
}
),
Bd = rd(
Ad
),
Dd = rd(
m(
{
},
Ad,
{
dataTransfer: 0,
}
)
),
Fd = rd(
m(
{
},
ud,
{
relatedTarget: 0,
}
)
),
Hd = rd(
m(
{
},
sd,
{
animationName: 0,
elapsedTime: 0,
pseudoElement: 0,
}
)
),
Jd = rd(
m(
{
},
sd,
{
clipboardData: function (
a
) {
return "clipboardData" in a
? a.clipboardData
: window.clipboardData;
},
}
)
),
Ld = rd(
m(
{
},
sd,
{
data: 0,
}
)
),
Md = {
Esc: "Escape",
Spacebar: " ",
Left: "ArrowLeft",
Up: "ArrowUp",
Right: "ArrowRight",
Down: "ArrowDown",
Del: "Delete",
Win: "OS",
Menu: "ContextMenu",
Apps: "ContextMenu",
Scroll: "ScrollLock",
MozPrintableKey: "Unidentified",
},
Nd = {
8: "Backspace",
9: "Tab",
12: "Clear",
13: "Enter",
16: "Shift",
17: "Control",
18: "Alt",
19: "Pause",
20: "CapsLock",
27: "Escape",
32: " ",
33: "PageUp",
34: "PageDown",
35: "End",
36: "Home",
37: "ArrowLeft",
38: "ArrowUp",
39: "ArrowRight",
40: "ArrowDown",
45: "Insert",
46: "Delete",
112: "F1",
113: "F2",
114: "F3",
115: "F4",
116: "F5",
117: "F6",
118: "F7",
119: "F8",
120: "F9",
121: "F10",
122: "F11",
123: "F12",
144: "NumLock",
145: "ScrollLock",
224: "Meta",
},
Od = {
Alt: "altKey",
Control: "ctrlKey",
Meta: "metaKey",
Shift: "shiftKey",
};
function Pd(
a
) {
var b = this.nativeEvent;
return b.getModifierState
? b.getModifierState(
a
)
: !!(a = Od[a]) && !!b[a];
}
function zd(
) {
return Pd;
}
var Rd = rd(
m(
{
},
ud,
{
key: function (
a
) {
if (a.key) {
var b = Md[a.key] || a.key;
if ("Unidentified" !== b) return b;
}
return "keypress" === a.type
? 13 === (a = od(
a
))
? "Enter"
: String.fromCharCode(
a
)
: "keydown" === a.type || "keyup" === a.type
? Nd[a.keyCode] || "Unidentified"
: "";
},
code: 0,
location: 0,
ctrlKey: 0,
shiftKey: 0,
altKey: 0,
metaKey: 0,
repeat: 0,
locale: 0,
getModifierState: zd,
charCode: function (
a
) {
return "keypress" === a.type
? od(
a
)
: 0;
},
keyCode: function (
a
) {
return "keydown" === a.type || "keyup" === a.type
? a.keyCode
: 0;
},
which: function (
a
) {
return "keypress" === a.type
? od(
a
)
: "keydown" === a.type || "keyup" === a.type
? a.keyCode
: 0;
},
}
)
),
Td = rd(
m(
{
},
Ad,
{
pointerId: 0,
width: 0,
height: 0,
pressure: 0,
tangentialPressure: 0,
tiltX: 0,
tiltY: 0,
twist: 0,
pointerType: 0,
isPrimary: 0,
}
)
),
Vd = rd(
m(
{
},
ud,
{
touches: 0,
targetTouches: 0,
changedTouches: 0,
altKey: 0,
metaKey: 0,
ctrlKey: 0,
shiftKey: 0,
getModifierState: zd,
}
)
),
Xd = rd(
m(
{
},
sd,
{
propertyName: 0,
elapsedTime: 0,
pseudoElement: 0,
}
)
),
Zd = rd(
m(
{
},
Ad,
{
deltaX: function (
a
) {
return "deltaX" in a
? a.deltaX
: "wheelDeltaX" in a
? -a.wheelDeltaX
: 0;
},
deltaY: function (
a
) {
return "deltaY" in a
? a.deltaY
: "wheelDeltaY" in a
? -a.wheelDeltaY
: "wheelDelta" in a
? -a.wheelDelta
: 0;
},
deltaZ: 0,
deltaMode: 0,
}
)
),
$d = [9, 13, 27, 32,],
ae = fa && "CompositionEvent" in window,
be = null;
fa && "documentMode" in document && (be = document.documentMode);
var ce = fa && "TextEvent" in window && !be,
de = fa && (!ae || (be && 8 < be && 11 >= be)),
ee = String.fromCharCode(
32
),
fe = !1;
function ge(
a, b
) {
switch (a) {
case "keyup":
return -1 !== $d.indexOf(
b.keyCode
);
case "keydown":
return 229 !== b.keyCode;
case "keypress":
case "mousedown":
case "focusout":
return !0;
default:
return !1;
}
}
function he(
a
) {
return "object" == typeof (a = a.detail) && "data" in a
? a.data
: null;
}
var ie = !1;
var le = {
color: !0,
date: !0,
datetime: !0,
"datetime-local": !0,
email: !0,
month: !0,
number: !0,
password: !0,
range: !0,
search: !0,
tel: !0,
text: !0,
time: !0,
url: !0,
week: !0,
};
function me(
a
) {
var b = a && a.nodeName && a.nodeName.toLowerCase(
);
return "input" === b ? !!le[a.type] : "textarea" === b;
}
function ne(
a, b, c, d
) {
Eb(
d
),
0 < (b = oe(
b,
"onChange"
)).length &&
((c = new td(
"onChange",
"change",
null,
c,
d
)),
a.push(
{
event: c,
listeners: b,
}
));
}
var pe = null,
qe = null;
function re(
a
) {
se(
a,
0
);
}
function te(
a
) {
if (Wa(
ue(
a
)
)) return a;
}
function ve(
a, b
) {
if ("change" === a) return b;
}
var we = !1;
if (fa) {
var xe;
if (fa) {
var ye = "oninput" in document;
if (!ye) {
var ze = document.createElement(
"div"
);
ze.setAttribute(
"oninput",
"return;"
),
(ye = "function" == typeof ze.oninput);
}
xe = ye;
} else xe = !1;
we =
xe && (!document.documentMode || 9 < document.documentMode);
}
function Ae(
) {
pe &&
(pe.detachEvent(
"onpropertychange",
Be
), (qe = pe = null));
}
function Be(
a
) {
if ("value" === a.propertyName && te(
qe
)) {
var b = [];
if ((ne(
b,
qe,
a,
xb(
a
)
), (a = re), Kb)) a(
b
);
else {
Kb = !0;
try {
Gb(
a,
b
);
} finally {
(Kb = !1), Mb(
);
}
}
}
}
function Ce(
a, b, c
) {
"focusin" === a
? (Ae(
),
(qe = c),
(pe = b).attachEvent(
"onpropertychange",
Be
))
: "focusout" === a && Ae(
);
}
function De(
a
) {
if ("selectionchange" === a || "keyup" === a || "keydown" === a)
return te(
qe
);
}
function Ee(
a, b
) {
if ("click" === a) return te(
b
);
}
function Fe(
a, b
) {
if ("input" === a || "change" === a) return te(
b
);
}
var He =
"function" == typeof Object.is
? Object.is
: function (
a, b
) {
return (
(a === b && (0 !== a || 1 / a == 1 / b)) ||
(a != a && b != b)
);
},
Ie = Object.prototype.hasOwnProperty;
function Je(
a, b
) {
if (He(
a,
b
)) return !0;
if (
"object" != typeof a ||
null === a ||
"object" != typeof b ||
null === b
)
return !1;
var c = Object.keys(
a
),
d = Object.keys(
b
);
if (c.length !== d.length) return !1;
for (d = 0; d < c.length; d++)
if (!Ie.call(
b,
c[d]
) || !He(
a[c[d]],
b[c[d]]
)) return !1;
return !0;
}
function Ke(
a
) {
for (; a && a.firstChild; ) a = a.firstChild;
return a;
}
function Le(
a, b
) {
var d,
c = Ke(
a
);
for (a = 0; c; ) {
if (3 === c.nodeType) {
if (((d = a + c.textContent.length), a <= b && d >= b))
return {
node: c,
offset: b - a,
};
a = d;
}
a: {
for (; c; ) {
if (c.nextSibling) {
c = c.nextSibling;
break a;
}
c = c.parentNode;
}
c = void 0;
}
c = Ke(
c
);
}
}
function Me(
a, b
) {
return (
!(!a || !b) &&
(a === b ||
((!a || 3 !== a.nodeType) &&
(b && 3 === b.nodeType
? Me(
a,
b.parentNode
)
: "contains" in a
? a.contains(
b
)
: !!a.compareDocumentPosition &&
!!(16 & a.compareDocumentPosition(
b
)))))
);
}
function Ne(
) {
for (
var a = window, b = Xa(
);
b instanceof a.HTMLIFrameElement;
) {
try {
var c =
"string" == typeof b.contentWindow.location.href;
} catch (d) {
c = !1;
}
if (!c) break;
b = Xa(
(a = b.contentWindow).document
);
}
return b;
}
function Oe(
a
) {
var b = a && a.nodeName && a.nodeName.toLowerCase(
);
return (
b &&
(("input" === b &&
("text" === a.type ||
"search" === a.type ||
"tel" === a.type ||
"url" === a.type ||
"password" === a.type)) ||
"textarea" === b ||
"true" === a.contentEditable)
);
}
var Pe =
fa &&
"documentMode" in document &&
11 >= document.documentMode,
Qe = null,
Re = null,
Se = null,
Te = !1;
function Ue(
a, b, c
) {
var d =
c.window === c
? c.document
: 9 === c.nodeType
? c
: c.ownerDocument;
Te ||
null == Qe ||
Qe !== Xa(
d
) ||
("selectionStart" in (d = Qe) && Oe(
d
)
? (d = {
start: d.selectionStart,
end: d.selectionEnd,
})
: (d = {
anchorNode: (d = (
(d.ownerDocument &&
d.ownerDocument.defaultView) ||
window
).getSelection(
)).anchorNode,
anchorOffset: d.anchorOffset,
focusNode: d.focusNode,
focusOffset: d.focusOffset,
}),
(Se && Je(
Se,
d
)) ||
((Se = d),
0 < (d = oe(
Re,
"onSelect"
)).length &&
((b = new td(
"onSelect",
"select",
null,
b,
c
)),
a.push(
{
event: b,
listeners: d,
}
),
(b.target = Qe))));
}
Pc(
"cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(
" "
),
0
),
Pc(
"drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(
" "
),
1
),
Pc(
Oc,
2
);
for (
var Ve =
"change selectionchange textInput compositionstart compositionend compositionupdate".split(
" "
),
We = 0;
We < Ve.length;
We++
)
Nc.set(
Ve[We],
0
);
ea(
"onMouseEnter",
["mouseout", "mouseover",]
),
ea(
"onMouseLeave",
["mouseout", "mouseover",]
),
ea(
"onPointerEnter",
["pointerout", "pointerover",]
),
ea(
"onPointerLeave",
["pointerout", "pointerover",]
),
da(
"onChange",
"change click focusin focusout input keydown keyup selectionchange".split(
" "
)
),
da(
"onSelect",
"focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(
" "
)
),
da(
"onBeforeInput",
[
"compositionend",
"keypress",
"textInput",
"paste",
]
),
da(
"onCompositionEnd",
"compositionend focusout keydown keypress keyup mousedown".split(
" "
)
),
da(
"onCompositionStart",
"compositionstart focusout keydown keypress keyup mousedown".split(
" "
)
),
da(
"onCompositionUpdate",
"compositionupdate focusout keydown keypress keyup mousedown".split(
" "
)
);
var Xe =
"abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(
" "
),
Ye = new Set(
"cancel close invalid load scroll toggle"
.split(
" "
)
.concat(
Xe
)
);
function Ze(
a, b, c
) {
var d = a.type || "unknown-event";
(a.currentTarget = c),
(function (
a, b, c, d, e, f, g, h, k
) {
if ((Xb.apply(
this,
arguments
), Sb)) {
if (!Sb) throw Error(
y(
198
)
);
var l = Tb;
(Sb = !1), (Tb = null), Ub || ((Ub = !0), (Vb = l));
}
})(
d,
b,
void 0,
a
),
(a.currentTarget = null);
}
function se(
a, b
) {
b = 0 != (4 & b);
for (var c = 0; c < a.length; c++) {
var d = a[c],
e = d.event;
d = d.listeners;
a: {
var f = void 0;
if (b)
for (var g = d.length - 1; 0 <= g; g--) {
var h = d[g],
k = h.instance,
l = h.currentTarget;
if (
((h = h.listener),
k !== f && e.isPropagationStopped(
))
)
break a;
Ze(
e,
h,
l
), (f = k);
}
else
for (g = 0; g < d.length; g++) {
if (
((k = (h = d[g]).instance),
(l = h.currentTarget),
(h = h.listener),
k !== f && e.isPropagationStopped(
))
)
break a;
Ze(
e,
h,
l
), (f = k);
}
}
}
if (Ub) throw ((a = Vb), (Ub = !1), (Vb = null), a);
}
function G(
a, b
) {
var c = $e(
b
),
d = a + "__bubble";
c.has(
d
) || (af(
b,
a,
2,
!1
), c.add(
d
));
}
var bf = "_reactListening" + Math.random(
).toString(
36
).slice(
2
);
function cf(
a
) {
a[bf] ||
((a[bf] = !0),
ba.forEach(
function (
b
) {
Ye.has(
b
) || df(
b,
!1,
a,
null
), df(
b,
!0,
a,
null
);
}
));
}
function df(
a, b, c, d
) {
var e =
4 < arguments.length && void 0 !== arguments[4]
? arguments[4]
: 0,
f = c;
if (
("selectionchange" === a &&
9 !== c.nodeType &&
(f = c.ownerDocument),
null !== d && !b && Ye.has(
a
))
) {
if ("scroll" !== a) return;
(e |= 2), (f = d);
}
var g = $e(
f
),
h = a + "__" + (b ? "capture" : "bubble");
g.has(
h
) || (b && (e |= 4), af(
f,
a,
e,
b
), g.add(
h
));
}
function af(
a, b, c, d
) {
var e = Nc.get(
b
);
switch (void 0 === e ? 2 : e) {
case 0:
e = gd;
break;
case 1:
e = id;
break;
default:
e = hd;
}
(c = e.bind(
null,
b,
c,
a
)),
(e = void 0),
!Pb ||
("touchstart" !== b &&
"touchmove" !== b &&
"wheel" !== b) ||
(e = !0),
d
? void 0 !== e
? a.addEventListener(
b,
c,
{
capture: !0,
passive: e,
}
)
: a.addEventListener(
b,
c,
!0
)
: void 0 !== e
? a.addEventListener(
b,
c,
{
passive: e,
}
)
: a.addEventListener(
b,
c,
!1
);
}
function jd(
a, b, c, d, e
) {
var f = d;
if (0 == (1 & b) && 0 == (2 & b) && null !== d)
a: for (;;) {
if (null === d) return;
var g = d.tag;
if (3 === g || 4 === g) {
var h = d.stateNode.containerInfo;
if (
h === e ||
(8 === h.nodeType && h.parentNode === e)
)
break;
if (4 === g)
for (g = d.return; null !== g; ) {
var k = g.tag;
if (
(3 === k || 4 === k) &&
((k = g.stateNode.containerInfo) ===
e ||
(8 === k.nodeType &&
k.parentNode === e))
)
return;
g = g.return;
}
for (; null !== h; ) {
if (null === (g = wc(
h
))) return;
if (5 === (k = g.tag) || 6 === k) {
d = f = g;
continue a;
}
h = h.parentNode;
}
}
d = d.return;
}
!(function (
a, b, c
) {
if (Lb) return a(
b,
c
);
Lb = !0;
try {
Jb(
a,
b,
c
);
} finally {
(Lb = !1), Mb(
);
}
})(
function (
) {
var d = f,
e = xb(
c
),
g = [];
a: {
var h = Mc.get(
a
);
if (void 0 !== h) {
var k = td,
x = a;
switch (a) {
case "keypress":
if (0 === od(
c
)) break a;
case "keydown":
case "keyup":
k = Rd;
break;
case "focusin":
(x = "focus"), (k = Fd);
break;
case "focusout":
(x = "blur"), (k = Fd);
break;
case "beforeblur":
case "afterblur":
k = Fd;
break;
case "click":
if (2 === c.button) break a;
case "auxclick":
case "dblclick":
case "mousedown":
case "mousemove":
case "mouseup":
case "mouseout":
case "mouseover":
case "contextmenu":
k = Bd;
break;
case "drag":
case "dragend":
case "dragenter":
case "dragexit":
case "dragleave":
case "dragover":
case "dragstart":
case "drop":
k = Dd;
break;
case "touchcancel":
case "touchend":
case "touchmove":
case "touchstart":
k = Vd;
break;
case Ic:
case Jc:
case Kc:
k = Hd;
break;
case Lc:
k = Xd;
break;
case "scroll":
k = vd;
break;
case "wheel":
k = Zd;
break;
case "copy":
case "cut":
case "paste":
k = Jd;
break;
case "gotpointercapture":
case "lostpointercapture":
case "pointercancel":
case "pointerdown":
case "pointermove":
case "pointerout":
case "pointerover":
case "pointerup":
k = Td;
}
var w = 0 != (4 & b),
z = !w && "scroll" === a,
u = w ? (null !== h ? h + "Capture" : null) : h;
w = [];
for (var q, t = d; null !== t; ) {
var v = (q = t).stateNode;
if (
(5 === q.tag &&
null !== v &&
((q = v),
null !== u &&
null != (v = Ob(
t,
u
)) &&
w.push(
ef(
t,
v,
q
)
)),
z)
)
break;
t = t.return;
}
0 < w.length &&
((h = new k(
h,
x,
null,
c,
e
)),
g.push(
{
event: h,
listeners: w,
}
));
}
}
if (0 == (7 & b)) {
if (
((k = "mouseout" === a || "pointerout" === a),
(!(h = "mouseover" === a || "pointerover" === a) ||
0 != (16 & b) ||
!(x = c.relatedTarget || c.fromElement) ||
(!wc(
x
) && !x[ff])) &&
(k || h) &&
((h =
e.window === e
? e
: (h = e.ownerDocument)
? h.defaultView || h.parentWindow
: window),
k
? ((k = d),
null !==
(x = (x =
c.relatedTarget || c.toElement)
? wc(
x
)
: null) &&
(x !== (z = Zb(
x
)) ||
(5 !== x.tag && 6 !== x.tag)) &&
(x = null))
: ((k = null), (x = d)),
k !== x))
) {
if (
((w = Bd),
(v = "onMouseLeave"),
(u = "onMouseEnter"),
(t = "mouse"),
("pointerout" !== a && "pointerover" !== a) ||
((w = Td),
(v = "onPointerLeave"),
(u = "onPointerEnter"),
(t = "pointer")),
(z = null == k
? h
: ue(
k
)),
(q = null == x
? h
: ue(
x
)),
((h = new w(
v,
t + "leave",
k,
c,
e
)).target =
z),
(h.relatedTarget = q),
(v = null),
wc(
e
) === d &&
(((w = new w(
u,
t + "enter",
x,
c,
e
)).target = q),
(w.relatedTarget = z),
(v = w)),
(z = v),
k && x)
)
b: {
for (u = x, t = 0, q = w = k; q; q = gf(
q
))
t++;
for (q = 0, v = u; v; v = gf(
v
)) q++;
for (; 0 < t - q; ) (w = gf(
w
)), t--;
for (; 0 < q - t; ) (u = gf(
u
)), q--;
for (; t--; ) {
if (
w === u ||
(null !== u && w === u.alternate)
)
break b;
(w = gf(
w
)), (u = gf(
u
));
}
w = null;
}
else w = null;
null !== k && hf(
g,
h,
k,
w,
!1
),
null !== x && null !== z && hf(
g,
z,
x,
w,
!0
);
}
if (
"select" ===
(k =
(h = d
? ue(
d
)
: window).nodeName &&
h.nodeName.toLowerCase(
)) ||
("input" === k && "file" === h.type)
)
var J = ve;
else if (me(
h
))
if (we) J = Fe;
else {
J = De;
var K = Ce;
}
else
(k = h.nodeName) &&
"input" === k.toLowerCase(
) &&
("checkbox" === h.type || "radio" === h.type) &&
(J = Ee);
switch (
(J && (J = J(
a,
d
))
? ne(
g,
J,
c,
e
)
: (K && K(
a,
h,
d
),
"focusout" === a &&
(K = h._wrapperState) &&
K.controlled &&
"number" === h.type &&
bb(
h,
"number",
h.value
)),
(K = d
? ue(
d
)
: window),
a)
) {
case "focusin":
(me(
K
) || "true" === K.contentEditable) &&
((Qe = K), (Re = d), (Se = null));
break;
case "focusout":
Se = Re = Qe = null;
break;
case "mousedown":
Te = !0;
break;
case "contextmenu":
case "mouseup":
case "dragend":
(Te = !1), Ue(
g,
c,
e
);
break;
case "selectionchange":
if (Pe) break;
case "keydown":
case "keyup":
Ue(
g,
c,
e
);
}
var Q;
if (ae)
b: {
switch (a) {
case "compositionstart":
var L = "onCompositionStart";
break b;
case "compositionend":
L = "onCompositionEnd";
break b;
case "compositionupdate":
L = "onCompositionUpdate";
break b;
}
L = void 0;
}
else
ie
? ge(
a,
c
) && (L = "onCompositionEnd")
: "keydown" === a &&
229 === c.keyCode &&
(L = "onCompositionStart");
L &&
(de &&
"ko" !== c.locale &&
(ie || "onCompositionStart" !== L
? "onCompositionEnd" === L &&
ie &&
(Q = nd(
))
: ((ld =
"value" in (kd = e)
? kd.value
: kd.textContent),
(ie = !0))),
0 < (K = oe(
d,
L
)).length &&
((L = new Ld(
L,
a,
null,
c,
e
)),
g.push(
{
event: L,
listeners: K,
}
),
Q
? (L.data = Q)
: null !== (Q = he(
c
)) && (L.data = Q))),
(Q = ce
? (function (
a, b
) {
switch (a) {
case "compositionend":
return he(
b
);
case "keypress":
return 32 !== b.which
? null
: ((fe = !0), ee);
case "textInput":
return (a = b.data) === ee && fe
? null
: a;
default:
return null;
}
})(
a,
c
)
: (function (
a, b
) {
if (ie)
return "compositionend" === a ||
(!ae && ge(
a,
b
))
? ((a = nd(
)),
(md = ld = kd = null),
(ie = !1),
a)
: null;
switch (a) {
case "paste":
return null;
case "keypress":
if (
!(
b.ctrlKey ||
b.altKey ||
b.metaKey
) ||
(b.ctrlKey && b.altKey)
) {
if (
b.char &&
1 < b.char.length
)
return b.char;
if (b.which)
return String.fromCharCode(
b.which
);
}
return null;
case "compositionend":
return de && "ko" !== b.locale
? null
: b.data;
default:
return null;
}
})(
a,
c
)) &&
0 < (d = oe(
d,
"onBeforeInput"
)).length &&
((e = new Ld(
"onBeforeInput",
"beforeinput",
null,
c,
e
)),
g.push(
{
event: e,
listeners: d,
}
),
(e.data = Q));
}
se(
g,
b
);
}
);
}
function ef(
a, b, c
) {
return {
instance: a,
listener: b,
currentTarget: c,
};
}
function oe(
a, b
) {
for (var c = b + "Capture", d = []; null !== a; ) {
var e = a,
f = e.stateNode;
5 === e.tag &&
null !== f &&
((e = f),
null != (f = Ob(
a,
c
)) && d.unshift(
ef(
a,
f,
e
)
),
null != (f = Ob(
a,
b
)) && d.push(
ef(
a,
f,
e
)
)),
(a = a.return);
}
return d;
}
function gf(
a
) {
if (null === a) return null;
do {
a = a.return;
} while (a && 5 !== a.tag);
return a || null;
}
function hf(
a, b, c, d, e
) {
for (var f = b._reactName, g = []; null !== c && c !== d; ) {
var h = c,
k = h.alternate,
l = h.stateNode;
if (null !== k && k === d) break;
5 === h.tag &&
null !== l &&
((h = l),
e
? null != (k = Ob(
c,
f
)) && g.unshift(
ef(
c,
k,
h
)
)
: e ||
(null != (k = Ob(
c,
f
)) && g.push(
ef(
c,
k,
h
)
))),
(c = c.return);
}
0 !== g.length && a.push(
{
event: b,
listeners: g,
}
);
}
function jf(
) {}
var kf = null,
lf = null;
function mf(
a, b
) {
switch (a) {
case "button":
case "input":
case "select":
case "textarea":
return !!b.autoFocus;
}
return !1;
}
function nf(
a, b
) {
return (
"textarea" === a ||
"option" === a ||
"noscript" === a ||
"string" == typeof b.children ||
"number" == typeof b.children ||
("object" == typeof b.dangerouslySetInnerHTML &&
null !== b.dangerouslySetInnerHTML &&
null != b.dangerouslySetInnerHTML.__html)
);
}
var of = "function" == typeof setTimeout ? setTimeout : void 0,
pf = "function" == typeof clearTimeout ? clearTimeout : void 0;
function qf(
a
) {
1 === a.nodeType
? (a.textContent = "")
: 9 === a.nodeType &&
null != (a = a.body) &&
(a.textContent = "");
}
function rf(
a
) {
for (; null != a; a = a.nextSibling) {
var b = a.nodeType;
if (1 === b || 3 === b) break;
}
return a;
}
function sf(
a
) {
a = a.previousSibling;
for (var b = 0; a; ) {
if (8 === a.nodeType) {
var c = a.data;
if ("$" === c || "$!" === c || "$?" === c) {
if (0 === b) return a;
b--;
} else "/$" === c && b++;
}
a = a.previousSibling;
}
return null;
}
var tf = 0;
var vf = Math.random(
).toString(
36
).slice(
2
),
wf = "__reactFiber$" + vf,
xf = "__reactProps$" + vf,
ff = "__reactContainer$" + vf,
yf = "__reactEvents$" + vf;
function wc(
a
) {
var b = a[wf];
if (b) return b;
for (var c = a.parentNode; c; ) {
if ((b = c[ff] || c[wf])) {
if (
((c = b.alternate),
null !== b.child ||
(null !== c && null !== c.child))
)
for (a = sf(
a
); null !== a; ) {
if ((c = a[wf])) return c;
a = sf(
a
);
}
return b;
}
c = (a = c).parentNode;
}
return null;
}
function Cb(
a
) {
return !(a = a[wf] || a[ff]) ||
(5 !== a.tag && 6 !== a.tag && 13 !== a.tag && 3 !== a.tag)
? null
: a;
}
function ue(
a
) {
if (5 === a.tag || 6 === a.tag) return a.stateNode;
throw Error(
y(
33
)
);
}
function Db(
a
) {
return a[xf] || null;
}
function $e(
a
) {
var b = a[yf];
return void 0 === b && (b = a[yf] = new Set(
)), b;
}
var zf = [],
Af = -1;
function Bf(
a
) {
return {
current: a,
};
}
function H(
a
) {
0 > Af || ((a.current = zf[Af]), (zf[Af] = null), Af--);
}
function I(
a, b
) {
Af++, (zf[Af] = a.current), (a.current = b);
}
var Cf = {
},
M = Bf(
Cf
),
N = Bf(
!1
),
Df = Cf;
function Ef(
a, b
) {
var c = a.type.contextTypes;
if (!c) return Cf;
var d = a.stateNode;
if (d && d.__reactInternalMemoizedUnmaskedChildContext === b)
return d.__reactInternalMemoizedMaskedChildContext;
var f,
e = {
};
for (f in c) e[f] = b[f];
return (
d &&
(((a =
a.stateNode).__reactInternalMemoizedUnmaskedChildContext =
b),
(a.__reactInternalMemoizedMaskedChildContext = e)),
e
);
}
function Ff(
a
) {
return null != (a = a.childContextTypes);
}
function Gf(
) {
H(
N
), H(
M
);
}
function Hf(
a, b, c
) {
if (M.current !== Cf) throw Error(
y(
168
)
);
I(
M,
b
), I(
N,
c
);
}
function If(
a, b, c
) {
var d = a.stateNode;
if (
((a = b.childContextTypes),
"function" != typeof d.getChildContext)
)
return c;
for (var e in (d = d.getChildContext(
)))
if (!(e in a)) throw Error(
y(
108,
Ra(
b
) || "Unknown",
e
)
);
return m(
{
},
c,
d
);
}
function Jf(
a
) {
return (
(a =
((a = a.stateNode) &&
a.__reactInternalMemoizedMergedChildContext) ||
Cf),
(Df = M.current),
I(
M,
a
),
I(
N,
N.current
),
!0
);
}
function Kf(
a, b, c
) {
var d = a.stateNode;
if (!d) throw Error(
y(
169
)
);
c
? ((a = If(
a,
b,
Df
)),
(d.__reactInternalMemoizedMergedChildContext = a),
H(
N
),
H(
M
),
I(
M,
a
))
: H(
N
),
I(
N,
c
);
}
var Lf = null,
Mf = null,
Nf = r.unstable_runWithPriority,
Of = r.unstable_scheduleCallback,
Pf = r.unstable_cancelCallback,
Qf = r.unstable_shouldYield,
Rf = r.unstable_requestPaint,
Sf = r.unstable_now,
Tf = r.unstable_getCurrentPriorityLevel,
Uf = r.unstable_ImmediatePriority,
Vf = r.unstable_UserBlockingPriority,
Wf = r.unstable_NormalPriority,
Xf = r.unstable_LowPriority,
Yf = r.unstable_IdlePriority,
Zf = {
},
$f = void 0 !== Rf
? Rf
: function (
) {},
ag = null,
bg = null,
cg = !1,
dg = Sf(
),
O =
1e4 > dg
? Sf
: function (
) {
return Sf(
) - dg;
};
function eg(
) {
switch (Tf(
)) {
case Uf:
return 99;
case Vf:
return 98;
case Wf:
return 97;
case Xf:
return 96;
case Yf:
return 95;
default:
throw Error(
y(
332
)
);
}
}
function fg(
a
) {
switch (a) {
case 99:
return Uf;
case 98:
return Vf;
case 97:
return Wf;
case 96:
return Xf;
case 95:
return Yf;
default:
throw Error(
y(
332
)
);
}
}
function gg(
a, b
) {
return (a = fg(
a
)), Nf(
a,
b
);
}
function hg(
a, b, c
) {
return (a = fg(
a
)), Of(
a,
b,
c
);
}
function ig(
) {
if (null !== bg) {
var a = bg;
(bg = null), Pf(
a
);
}
jg(
);
}
function jg(
) {
if (!cg && null !== ag) {
cg = !0;
var a = 0;
try {
var b = ag;
gg(
99,
function (
) {
for (; a < b.length; a++) {
var c = b[a];
do {
c = c(
!0
);
} while (null !== c);
}
}
),
(ag = null);
} catch (c) {
throw (
(null !== ag && (ag = ag.slice(
a + 1
)),
Of(
Uf,
ig
),
c)
);
} finally {
cg = !1;
}
}
}
var kg = ra.ReactCurrentBatchConfig;
function lg(
a, b
) {
if (a && a.defaultProps) {
for (var c in ((b = m(
{
},
b
)), (a = a.defaultProps)))
void 0 === b[c] && (b[c] = a[c]);
return b;
}
return b;
}
var mg = Bf(
null
),
ng = null,
og = null,
pg = null;
function qg(
) {
pg = og = ng = null;
}
function rg(
a
) {
var b = mg.current;
H(
mg
), (a.type._context._currentValue = b);
}
function sg(
a, b
) {
for (; null !== a; ) {
var c = a.alternate;
if ((a.childLanes & b) === b) {
if (null === c || (c.childLanes & b) === b) break;
c.childLanes |= b;
} else
(a.childLanes |= b), null !== c && (c.childLanes |= b);
a = a.return;
}
}
function tg(
a, b
) {
(ng = a),
(pg = og = null),
null !== (a = a.dependencies) &&
null !== a.firstContext &&
(0 != (a.lanes & b) && (ug = !0),
(a.firstContext = null));
}
function vg(
a, b
) {
if (pg !== a && !1 !== b && 0 !== b)
if (
(("number" == typeof b && 1073741823 !== b) ||
((pg = a), (b = 1073741823)),
(b = {
context: a,
observedBits: b,
next: null,
}),
null === og)
) {
if (null === ng) throw Error(
y(
308
)
);
(og = b),
(ng.dependencies = {
lanes: 0,
firstContext: b,
responders: null,
});
} else og = og.next = b;
return a._currentValue;
}
var wg = !1;
function xg(
a
) {
a.updateQueue = {
baseState: a.memoizedState,
firstBaseUpdate: null,
lastBaseUpdate: null,
shared: {
pending: null,
},
effects: null,
};
}
function yg(
a, b
) {
(a = a.updateQueue),
b.updateQueue === a &&
(b.updateQueue = {
baseState: a.baseState,
firstBaseUpdate: a.firstBaseUpdate,
lastBaseUpdate: a.lastBaseUpdate,
shared: a.shared,
effects: a.effects,
});
}
function zg(
a, b
) {
return {
eventTime: a,
lane: b,
tag: 0,
payload: null,
callback: null,
next: null,
};
}
function Ag(
a, b
) {
if (null !== (a = a.updateQueue)) {
var c = (a = a.shared).pending;
null === c
? (b.next = b)
: ((b.next = c.next), (c.next = b)),
(a.pending = b);
}
}
function Bg(
a, b
) {
var c = a.updateQueue,
d = a.alternate;
if (null !== d && c === (d = d.updateQueue)) {
var e = null,
f = null;
if (null !== (c = c.firstBaseUpdate)) {
do {
var g = {
eventTime: c.eventTime,
lane: c.lane,
tag: c.tag,
payload: c.payload,
callback: c.callback,
next: null,
};
null === f ? (e = f = g) : (f = f.next = g),
(c = c.next);
} while (null !== c);
null === f ? (e = f = b) : (f = f.next = b);
} else e = f = b;
return (
(c = {
baseState: d.baseState,
firstBaseUpdate: e,
lastBaseUpdate: f,
shared: d.shared,
effects: d.effects,
}),
void (a.updateQueue = c)
);
}
null === (a = c.lastBaseUpdate)
? (c.firstBaseUpdate = b)
: (a.next = b),
(c.lastBaseUpdate = b);
}
function Cg(
a, b, c, d
) {
var e = a.updateQueue;
wg = !1;
var f = e.firstBaseUpdate,
g = e.lastBaseUpdate,
h = e.shared.pending;
if (null !== h) {
e.shared.pending = null;
var k = h,
l = k.next;
(k.next = null),
null === g ? (f = l) : (g.next = l),
(g = k);
var n = a.alternate;
if (null !== n) {
var A = (n = n.updateQueue).lastBaseUpdate;
A !== g &&
(null === A
? (n.firstBaseUpdate = l)
: (A.next = l),
(n.lastBaseUpdate = k));
}
}
if (null !== f) {
for (A = e.baseState, g = 0, n = l = k = null; ; ) {
h = f.lane;
var p = f.eventTime;
if ((d & h) === h) {
null !== n &&
(n = n.next =
{
eventTime: p,
lane: 0,
tag: f.tag,
payload: f.payload,
callback: f.callback,
next: null,
});
a: {
var C = a,
x = f;
switch (((h = b), (p = c), x.tag)) {
case 1:
if (
"function" == typeof (C = x.payload)
) {
A = C.call(
p,
A,
h
);
break a;
}
A = C;
break a;
case 3:
C.flags = (-4097 & C.flags) | 64;
case 0:
if (
null ==
(h =
"function" ==
typeof (C = x.payload)
? C.call(
p,
A,
h
)
: C)
)
break a;
A = m(
{
},
A,
h
);
break a;
case 2:
wg = !0;
}
}
null !== f.callback &&
((a.flags |= 32),
null === (h = e.effects)
? (e.effects = [f,])
: h.push(
f
));
} else
(p = {
eventTime: p,
lane: h,
tag: f.tag,
payload: f.payload,
callback: f.callback,
next: null,
}),
null === n
? ((l = n = p), (k = A))
: (n = n.next = p),
(g |= h);
if (null === (f = f.next)) {
if (null === (h = e.shared.pending)) break;
(f = h.next),
(h.next = null),
(e.lastBaseUpdate = h),
(e.shared.pending = null);
}
}
null === n && (k = A),
(e.baseState = k),
(e.firstBaseUpdate = l),
(e.lastBaseUpdate = n),
(Dg |= g),
(a.lanes = g),
(a.memoizedState = A);
}
}
function Eg(
a, b, c
) {
if (((a = b.effects), (b.effects = null), null !== a))
for (b = 0; b < a.length; b++) {
var d = a[b],
e = d.callback;
if (null !== e) {
if (
((d.callback = null),
(d = c),
"function" != typeof e)
)
throw Error(
y(
191,
e
)
);
e.call(
d
);
}
}
}
var Fg = new aa.Component(
).refs;
function Gg(
a, b, c, d
) {
(c =
null == (c = c(
d, (
b = a.memoizedState)
))
? b
: m(
{
},
b,
c
)),
(a.memoizedState = c),
0 === a.lanes && (a.updateQueue.baseState = c);
}
var Kg = {
isMounted: function (
a
) {
return !!(a = a._reactInternals) && Zb(
a
) === a;
},
enqueueSetState: function (
a, b, c
) {
a = a._reactInternals;
var d = Hg(
),
e = Ig(
a
),
f = zg(
d,
e
);
(f.payload = b),
null != c && (f.callback = c),
Ag(
a,
f
),
Jg(
a,
e,
d
);
},
enqueueReplaceState: function (
a, b, c
) {
a = a._reactInternals;
var d = Hg(
),
e = Ig(
a
),
f = zg(
d,
e
);
(f.tag = 1),
(f.payload = b),
null != c && (f.callback = c),
Ag(
a,
f
),
Jg(
a,
e,
d
);
},
enqueueForceUpdate: function (
a, b
) {
a = a._reactInternals;
var c = Hg(
),
d = Ig(
a
),
e = zg(
c,
d
);
(e.tag = 2),
null != b && (e.callback = b),
Ag(
a,
e
),
Jg(
a,
d,
c
);
},
};
function Lg(
a, b, c, d, e, f, g
) {
return "function" ==
typeof (a = a.stateNode).shouldComponentUpdate
? a.shouldComponentUpdate(
d,
f,
g
)
: !b.prototype ||
!b.prototype.isPureReactComponent ||
!Je(
c,
d
) ||
!Je(
e,
f
);
}
function Mg(
a, b, c
) {
var d = !1,
e = Cf,
f = b.contextType;
return (
"object" == typeof f && null !== f
? (f = vg(
f
))
: ((e = Ff(
b
)
? Df
: M.current),
(f = (d = null != (d = b.contextTypes))
? Ef(
a,
e
)
: Cf)),
(b = new b(
c,
f
)),
(a.memoizedState =
null !== b.state && void 0 !== b.state
? b.state
: null),
(b.updater = Kg),
(a.stateNode = b),
(b._reactInternals = a),
d &&
(((a =
a.stateNode).__reactInternalMemoizedUnmaskedChildContext =
e),
(a.__reactInternalMemoizedMaskedChildContext = f)),
b
);
}
function Ng(
a, b, c, d
) {
(a = b.state),
"function" == typeof b.componentWillReceiveProps &&
b.componentWillReceiveProps(
c,
d
),
"function" == typeof b.UNSAFE_componentWillReceiveProps &&
b.UNSAFE_componentWillReceiveProps(
c,
d
),
b.state !== a && Kg.enqueueReplaceState(
b,
b.state,
null
);
}
function Og(
a, b, c, d
) {
var e = a.stateNode;
(e.props = c),
(e.state = a.memoizedState),
(e.refs = Fg),
xg(
a
);
var f = b.contextType;
"object" == typeof f && null !== f
? (e.context = vg(
f
))
: ((f = Ff(
b
)
? Df
: M.current), (e.context = Ef(
a,
f
))),
Cg(
a,
c,
e,
d
),
(e.state = a.memoizedState),
"function" == typeof (f = b.getDerivedStateFromProps) &&
(Gg(
a,
b,
f,
c
), (e.state = a.memoizedState)),
"function" == typeof b.getDerivedStateFromProps ||
"function" == typeof e.getSnapshotBeforeUpdate ||
("function" != typeof e.UNSAFE_componentWillMount &&
"function" != typeof e.componentWillMount) ||
((b = e.state),
"function" == typeof e.componentWillMount &&
e.componentWillMount(
),
"function" == typeof e.UNSAFE_componentWillMount &&
e.UNSAFE_componentWillMount(
),
b !== e.state &&
Kg.enqueueReplaceState(
e,
e.state,
null
),
Cg(
a,
c,
e,
d
),
(e.state = a.memoizedState)),
"function" == typeof e.componentDidMount && (a.flags |= 4);
}
var Pg = Array.isArray;
function Qg(
a, b, c
) {
if (
null !== (a = c.ref) &&
"function" != typeof a &&
"object" != typeof a
) {
if (c._owner) {
if ((c = c._owner)) {
if (1 !== c.tag) throw Error(
y(
309
)
);
var d = c.stateNode;
}
if (!d) throw Error(
y(
147,
a
)
);
var e = "" + a;
return null !== b &&
null !== b.ref &&
"function" == typeof b.ref &&
b.ref._stringRef === e
? b.ref
: (((b = function (
a
) {
var b = d.refs;
b === Fg && (b = d.refs = {
}),
null === a ? delete b[e] : (b[e] = a);
})._stringRef = e),
b);
}
if ("string" != typeof a) throw Error(
y(
284
)
);
if (!c._owner) throw Error(
y(
290,
a
)
);
}
return a;
}
function Rg(
a, b
) {
if ("textarea" !== a.type)
throw Error(
y(
31,
"[object Object]" ===
Object.prototype.toString.call(
b
)
? "object with keys {" +
Object.keys(
b
).join(
", "
) +
"}"
: b
)
);
}
function Sg(
a
) {
function b(
b, c
) {
if (a) {
var d = b.lastEffect;
null !== d
? ((d.nextEffect = c), (b.lastEffect = c))
: (b.firstEffect = b.lastEffect = c),
(c.nextEffect = null),
(c.flags = 8);
}
}
function c(
c, d
) {
if (!a) return null;
for (; null !== d; ) b(
c,
d
), (d = d.sibling);
return null;
}
function d(
a, b
) {
for (a = new Map(
); null !== b; )
null !== b.key
? a.set(
b.key,
b
)
: a.set(
b.index,
b
),
(b = b.sibling);
return a;
}
function e(
a, b
) {
return ((a = Tg(
a,
b
)).index = 0), (a.sibling = null), a;
}
function f(
b, c, d
) {
return (
(b.index = d),
a
? null !== (d = b.alternate)
? (d = d.index) < c
? ((b.flags = 2), c)
: d
: ((b.flags = 2), c)
: c
);
}
function g(
b
) {
return a && null === b.alternate && (b.flags = 2), b;
}
function h(
a, b, c, d
) {
return null === b || 6 !== b.tag
? (((b = Ug(
c,
a.mode,
d
)).return = a), b)
: (((b = e(
b,
c
)).return = a), b);
}
function k(
a, b, c, d
) {
return null !== b && b.elementType === c.type
? (((d = e(
b,
c.props
)).ref = Qg(
a,
b,
c
)),
(d.return = a),
d)
: (((d = Vg(
c.type,
c.key,
c.props,
null,
a.mode,
d
)).ref = Qg(
a,
b,
c
)),
(d.return = a),
d);
}
function l(
a, b, c, d
) {
return null === b ||
4 !== b.tag ||
b.stateNode.containerInfo !== c.containerInfo ||
b.stateNode.implementation !== c.implementation
? (((b = Wg(
c,
a.mode,
d
)).return = a), b)
: (((b = e(
b,
c.children || []
)).return = a), b);
}
function n(
a, b, c, d, f
) {
return null === b || 7 !== b.tag
? (((b = Xg(
c,
a.mode,
d,
f
)).return = a), b)
: (((b = e(
b,
c
)).return = a), b);
}
function A(
a, b, c
) {
if ("string" == typeof b || "number" == typeof b)
return ((b = Ug(
"" + b,
a.mode,
c
)).return = a), b;
if ("object" == typeof b && null !== b) {
switch (b.$$typeof) {
case sa:
return (
((c = Vg(
b.type,
b.key,
b.props,
null,
a.mode,
c
)).ref = Qg(
a,
null,
b
)),
(c.return = a),
c
);
case ta:
return ((b = Wg(
b,
a.mode,
c
)).return = a), b;
}
if (Pg(
b
) || La(
b
))
return ((b = Xg(
b,
a.mode,
c,
null
)).return = a), b;
Rg(
a,
b
);
}
return null;
}
function p(
a, b, c, d
) {
var e = null !== b ? b.key : null;
if ("string" == typeof c || "number" == typeof c)
return null !== e
? null
: h(
a,
b,
"" + c,
d
);
if ("object" == typeof c && null !== c) {
switch (c.$$typeof) {
case sa:
return c.key === e
? c.type === ua
? n(
a,
b,
c.props.children,
d,
e
)
: k(
a,
b,
c,
d
)
: null;
case ta:
return c.key === e
? l(
a,
b,
c,
d
)
: null;
}
if (Pg(
c
) || La(
c
))
return null !== e
? null
: n(
a,
b,
c,
d,
null
);
Rg(
a,
c
);
}
return null;
}
function C(
a, b, c, d, e
) {
if ("string" == typeof d || "number" == typeof d)
return h(
b, (
a = a.get(
c
) || null),
"" + d,
e
);
if ("object" == typeof d && null !== d) {
switch (d.$$typeof) {
case sa:
return (
(a =
a.get(
null === d.key ? c : d.key
) ||
null),
d.type === ua
? n(
b,
a,
d.props.children,
e,
d.key
)
: k(
b,
a,
d,
e
)
);
case ta:
return l(
b,
(a =
a.get(
null === d.key ? c : d.key
) ||
null),
d,
e
);
}
if (Pg(
d
) || La(
d
))
return n(
b, (
a = a.get(
c
) || null),
d,
e,
null
);
Rg(
b,
d
);
}
return null;
}
function x(
e, g, h, k
) {
for (
var l = null, t = null, u = g, z = (g = 0), q = null;
null !== u && z < h.length;
z++
) {
u.index > z ? ((q = u), (u = null)) : (q = u.sibling);
var n = p(
e,
u,
h[z],
k
);
if (null === n) {
null === u && (u = q);
break;
}
a && u && null === n.alternate && b(
e,
u
),
(g = f(
n,
g,
z
)),
null === t ? (l = n) : (t.sibling = n),
(t = n),
(u = q);
}
if (z === h.length) return c(
e,
u
), l;
if (null === u) {
for (; z < h.length; z++)
null !== (u = A(
e,
h[z],
k
)) &&
((g = f(
u,
g,
z
)),
null === t ? (l = u) : (t.sibling = u),
(t = u));
return l;
}
for (u = d(
e,
u
); z < h.length; z++)
null !== (q = C(
u,
e,
z,
h[z],
k
)) &&
(a &&
null !== q.alternate &&
u.delete(
null === q.key ? z : q.key
),
(g = f(
q,
g,
z
)),
null === t ? (l = q) : (t.sibling = q),
(t = q));
return (
a &&
u.forEach(
function (
a
) {
return b(
e,
a
);
}
),
l
);
}
function w(
e, g, h, k
) {
var l = La(
h
);
if ("function" != typeof l) throw Error(
y(
150
)
);
if (null == (h = l.call(
h
))) throw Error(
y(
151
)
);
for (
var t = (l = null),
u = g,
z = (g = 0),
q = null,
n = h.next(
);
null !== u && !n.done;
z++, n = h.next(
)
) {
u.index > z ? ((q = u), (u = null)) : (q = u.sibling);
var w = p(
e,
u,
n.value,
k
);
if (null === w) {
null === u && (u = q);
break;
}
a && u && null === w.alternate && b(
e,
u
),
(g = f(
w,
g,
z
)),
null === t ? (l = w) : (t.sibling = w),
(t = w),
(u = q);
}
if (n.done) return c(
e,
u
), l;
if (null === u) {
for (; !n.done; z++, n = h.next(
))
null !== (n = A(
e,
n.value,
k
)) &&
((g = f(
n,
g,
z
)),
null === t ? (l = n) : (t.sibling = n),
(t = n));
return l;
}
for (u = d(
e,
u
); !n.done; z++, n = h.next(
))
null !== (n = C(
u,
e,
z,
n.value,
k
)) &&
(a &&
null !== n.alternate &&
u.delete(
null === n.key ? z : n.key
),
(g = f(
n,
g,
z
)),
null === t ? (l = n) : (t.sibling = n),
(t = n));
return (
a &&
u.forEach(
function (
a
) {
return b(
e,
a
);
}
),
l
);
}
return function (
a, d, f, h
) {
var k =
"object" == typeof f &&
null !== f &&
f.type === ua &&
null === f.key;
k && (f = f.props.children);
var l = "object" == typeof f && null !== f;
if (l)
switch (f.$$typeof) {
case sa:
a: {
for (l = f.key, k = d; null !== k; ) {
if (k.key === l) {
switch (k.tag) {
case 7:
if (f.type === ua) {
c(
a,
k.sibling
),
((d = e(
k,
f.props.children
)).return = a),
(a = d);
break a;
}
break;
default:
if (
k.elementType === f.type
) {
c(
a,
k.sibling
),
((d = e(
k,
f.props
)).ref = Qg(
a,
k,
f
)),
(d.return = a),
(a = d);
break a;
}
}
c(
a,
k
);
break;
}
b(
a,
k
), (k = k.sibling);
}
f.type === ua
? (((d = Xg(
f.props.children,
a.mode,
h,
f.key
)).return = a),
(a = d))
: (((h = Vg(
f.type,
f.key,
f.props,
null,
a.mode,
h
)).ref = Qg(
a,
d,
f
)),
(h.return = a),
(a = h));
}
return g(
a
);
case ta:
a: {
for (k = f.key; null !== d; ) {
if (d.key === k) {
if (
4 === d.tag &&
d.stateNode.containerInfo ===
f.containerInfo &&
d.stateNode.implementation ===
f.implementation
) {
c(
a,
d.sibling
),
((d = e(
d,
f.children || []
)).return = a),
(a = d);
break a;
}
c(
a,
d
);
break;
}
b(
a,
d
), (d = d.sibling);
}
((d = Wg(
f,
a.mode,
h
)).return = a),
(a = d);
}
return g(
a
);
}
if ("string" == typeof f || "number" == typeof f)
return (
(f = "" + f),
null !== d && 6 === d.tag
? (c(
a,
d.sibling
),
((d = e(
d,
f
)).return = a),
(a = d))
: (c(
a,
d
),
((d = Ug(
f,
a.mode,
h
)).return = a),
(a = d)),
g(
a
)
);
if (Pg(
f
)) return x(
a,
d,
f,
h
);
if (La(
f
)) return w(
a,
d,
f,
h
);
if ((l && Rg(
a,
f
), void 0 === f && !k))
switch (a.tag) {
case 1:
case 22:
case 0:
case 11:
case 15:
throw Error(
y(
152,
Ra(
a.type
) || "Component"
)
);
}
return c(
a,
d
);
};
}
var Yg = Sg(
!0
),
Zg = Sg(
!1
),
$g = {
},
ah = Bf(
$g
),
bh = Bf(
$g
),
ch = Bf(
$g
);
function dh(
a
) {
if (a === $g) throw Error(
y(
174
)
);
return a;
}
function eh(
a, b
) {
switch ((I(
ch,
b
), I(
bh,
a
), I(
ah,
$g
), (a = b.nodeType))) {
case 9:
case 11:
b = (b = b.documentElement)
? b.namespaceURI
: mb(
null,
""
);
break;
default:
b = mb(
(b =
(a = 8 === a ? b.parentNode : b).namespaceURI ||
null),
(a = a.tagName)
);
}
H(
ah
), I(
ah,
b
);
}
function fh(
) {
H(
ah
), H(
bh
), H(
ch
);
}
function gh(
a
) {
dh(
ch.current
);
var b = dh(
ah.current
),
c = mb(
b,
a.type
);
b !== c && (I(
bh,
a
), I(
ah,
c
));
}
function hh(
a
) {
bh.current === a && (H(
ah
), H(
bh
));
}
var P = Bf(
0
);
function ih(
a
) {
for (var b = a; null !== b; ) {
if (13 === b.tag) {
var c = b.memoizedState;
if (
null !== c &&
(null === (c = c.dehydrated) ||
"$?" === c.data ||
"$!" === c.data)
)
return b;
} else if (
19 === b.tag &&
void 0 !== b.memoizedProps.revealOrder
) {
if (0 != (64 & b.flags)) return b;
} else if (null !== b.child) {
(b.child.return = b), (b = b.child);
continue;
}
if (b === a) break;
for (; null === b.sibling; ) {
if (null === b.return || b.return === a) return null;
b = b.return;
}
(b.sibling.return = b.return), (b = b.sibling);
}
return null;
}
var jh = null,
kh = null,
lh = !1;
function mh(
a, b
) {
var c = nh(
5,
null,
null,
0
);
(c.elementType = "DELETED"),
(c.type = "DELETED"),
(c.stateNode = b),
(c.return = a),
(c.flags = 8),
null !== a.lastEffect
? ((a.lastEffect.nextEffect = c), (a.lastEffect = c))
: (a.firstEffect = a.lastEffect = c);
}
function oh(
a, b
) {
switch (a.tag) {
case 5:
var c = a.type;
return (
null !==
(b =
1 !== b.nodeType ||
c.toLowerCase(
) !== b.nodeName.toLowerCase(
)
? null
: b) && ((a.stateNode = b), !0)
);
case 6:
return (
null !==
(b =
"" === a.pendingProps || 3 !== b.nodeType
? null
: b) && ((a.stateNode = b), !0)
);
case 13:
default:
return !1;
}
}
function ph(
a
) {
if (lh) {
var b = kh;
if (b) {
var c = b;
if (!oh(
a,
b
)) {
if (!(b = rf(
c.nextSibling
)) || !oh(
a,
b
))
return (
(a.flags = (-1025 & a.flags) | 2),
(lh = !1),
void (jh = a)
);
mh(
jh,
c
);
}
(jh = a), (kh = rf(
b.firstChild
));
} else
(a.flags = (-1025 & a.flags) | 2), (lh = !1), (jh = a);
}
}
function qh(
a
) {
for (
a = a.return;
null !== a && 5 !== a.tag && 3 !== a.tag && 13 !== a.tag;
)
a = a.return;
jh = a;
}
function rh(
a
) {
if (a !== jh) return !1;
if (!lh) return qh(
a
), (lh = !0), !1;
var b = a.type;
if (
5 !== a.tag ||
("head" !== b && "body" !== b && !nf(
b,
a.memoizedProps
))
)
for (b = kh; b; ) mh(
a,
b
), (b = rf(
b.nextSibling
));
if ((qh(
a
), 13 === a.tag)) {
if (
!(a =
null !== (a = a.memoizedState)
? a.dehydrated
: null)
)
throw Error(
y(
317
)
);
a: {
for (a = a.nextSibling, b = 0; a; ) {
if (8 === a.nodeType) {
var c = a.data;
if ("/$" === c) {
if (0 === b) {
kh = rf(
a.nextSibling
);
break a;
}
b--;
} else
("$" !== c && "$!" !== c && "$?" !== c) ||
b++;
}
a = a.nextSibling;
}
kh = null;
}
} else kh = jh
? rf(
a.stateNode.nextSibling
)
: null;
return !0;
}
function sh(
) {
(kh = jh = null), (lh = !1);
}
var th = [];
function uh(
) {
for (var a = 0; a < th.length; a++)
th[a]._workInProgressVersionPrimary = null;
th.length = 0;
}
var vh = ra.ReactCurrentDispatcher,
wh = ra.ReactCurrentBatchConfig,
xh = 0,
R = null,
S = null,
T = null,
yh = !1,
zh = !1;
function Ah(
) {
throw Error(
y(
321
)
);
}
function Bh(
a, b
) {
if (null === b) return !1;
for (var c = 0; c < b.length && c < a.length; c++)
if (!He(
a[c],
b[c]
)) return !1;
return !0;
}
function Ch(
a, b, c, d, e, f
) {
if (
((xh = f),
(R = b),
(b.memoizedState = null),
(b.updateQueue = null),
(b.lanes = 0),
(vh.current =
null === a || null === a.memoizedState ? Dh : Eh),
(a = c(
d,
e
)),
zh)
) {
f = 0;
do {
if (((zh = !1), !(25 > f))) throw Error(
y(
301
)
);
(f += 1),
(T = S = null),
(b.updateQueue = null),
(vh.current = Fh),
(a = c(
d,
e
));
} while (zh);
}
if (
((vh.current = Gh),
(b = null !== S && null !== S.next),
(xh = 0),
(T = S = R = null),
(yh = !1),
b)
)
throw Error(
y(
300
)
);
return a;
}
function Hh(
) {
var a = {
memoizedState: null,
baseState: null,
baseQueue: null,
queue: null,
next: null,
};
return (
null === T ? (R.memoizedState = T = a) : (T = T.next = a), T
);
}
function Ih(
) {
if (null === S) {
var a = R.alternate;
a = null !== a ? a.memoizedState : null;
} else a = S.next;
var b = null === T ? R.memoizedState : T.next;
if (null !== b) (T = b), (S = a);
else {
if (null === a) throw Error(
y(
310
)
);
(a = {
memoizedState: (S = a).memoizedState,
baseState: S.baseState,
baseQueue: S.baseQueue,
queue: S.queue,
next: null,
}),
null === T
? (R.memoizedState = T = a)
: (T = T.next = a);
}
return T;
}
function Jh(
a, b
) {
return "function" == typeof b
? b(
a
)
: b;
}
function Kh(
a
) {
var b = Ih(
),
c = b.queue;
if (null === c) throw Error(
y(
311
)
);
c.lastRenderedReducer = a;
var d = S,
e = d.baseQueue,
f = c.pending;
if (null !== f) {
if (null !== e) {
var g = e.next;
(e.next = f.next), (f.next = g);
}
(d.baseQueue = e = f), (c.pending = null);
}
if (null !== e) {
(e = e.next), (d = d.baseState);
var h = (g = f = null),
k = e;
do {
var l = k.lane;
if ((xh & l) === l)
null !== h &&
(h = h.next =
{
lane: 0,
action: k.action,
eagerReducer: k.eagerReducer,
eagerState: k.eagerState,
next: null,
}),
(d =
k.eagerReducer === a
? k.eagerState
: a(
d,
k.action
));
else {
var n = {
lane: l,
action: k.action,
eagerReducer: k.eagerReducer,
eagerState: k.eagerState,
next: null,
};
null === h
? ((g = h = n), (f = d))
: (h = h.next = n),
(R.lanes |= l),
(Dg |= l);
}
k = k.next;
} while (null !== k && k !== e);
null === h ? (f = d) : (h.next = g),
He(
d,
b.memoizedState
) || (ug = !0),
(b.memoizedState = d),
(b.baseState = f),
(b.baseQueue = h),
(c.lastRenderedState = d);
}
return [b.memoizedState, c.dispatch,];
}
function Lh(
a
) {
var b = Ih(
),
c = b.queue;
if (null === c) throw Error(
y(
311
)
);
c.lastRenderedReducer = a;
var d = c.dispatch,
e = c.pending,
f = b.memoizedState;
if (null !== e) {
c.pending = null;
var g = (e = e.next);
do {
(f = a(
f,
g.action
)), (g = g.next);
} while (g !== e);
He(
f,
b.memoizedState
) || (ug = !0),
(b.memoizedState = f),
null === b.baseQueue && (b.baseState = f),
(c.lastRenderedState = f);
}
return [f, d,];
}
function Mh(
a, b, c
) {
var d = b._getVersion;
d = d(
b._source
);
var e = b._workInProgressVersionPrimary;
if (
(null !== e
? (a = e === d)
: ((a = a.mutableReadLanes),
(a = (xh & a) === a) &&
((b._workInProgressVersionPrimary = d),
th.push(
b
))),
a)
)
return c(
b._source
);
throw (th.push(
b
), Error(
y(
350
)
));
}
function Nh(
a, b, c, d
) {
var e = U;
if (null === e) throw Error(
y(
349
)
);
var f = b._getVersion,
g = f(
b._source
),
h = vh.current,
k = h.useState(
function (
) {
return Mh(
e,
b,
c
);
}
),
l = k[1],
n = k[0];
k = T;
var A = a.memoizedState,
p = A.refs,
C = p.getSnapshot,
x = A.source;
A = A.subscribe;
var w = R;
return (
(a.memoizedState = {
refs: p,
source: b,
subscribe: d,
}),
h.useEffect(
function (
) {
(p.getSnapshot = c), (p.setSnapshot = l);
var a = f(
b._source
);
if (!He(
g,
a
)) {
(a = c(
b._source
)),
He(
n,
a
) ||
(l(
a
),
(a = Ig(
w
)),
(e.mutableReadLanes |=
a & e.pendingLanes)),
(a = e.mutableReadLanes),
(e.entangledLanes |= a);
for (var d = e.entanglements, h = a; 0 < h; ) {
var k = 31 - Vc(
h
),
v = 1 << k;
(d[k] |= a), (h &= ~v);
}
}
},
[c, b, d,]
),
h.useEffect(
function (
) {
return d(
b._source,
function (
) {
var a = p.getSnapshot,
c = p.setSnapshot;
try {
c(
a(
b._source
)
);
var d = Ig(
w
);
e.mutableReadLanes |= d & e.pendingLanes;
} catch (q) {
c(
function (
) {
throw q;
}
);
}
}
);
},
[b, d,]
),
(He(
C,
c
) && He(
x,
b
) && He(
A,
d
)) ||
(((a = {
pending: null,
dispatch: null,
lastRenderedReducer: Jh,
lastRenderedState: n,
}).dispatch = l =
Oh.bind(
null,
R,
a
)),
(k.queue = a),
(k.baseQueue = null),
(n = Mh(
e,
b,
c
)),
(k.memoizedState = k.baseState = n)),
n
);
}
function Ph(
a, b, c
) {
return Nh(
Ih(
),
a,
b,
c
);
}
function Qh(
a
) {
var b = Hh(
);
return (
"function" == typeof a && (a = a(
)),
(b.memoizedState = b.baseState = a),
(a = (a = b.queue =
{
pending: null,
dispatch: null,
lastRenderedReducer: Jh,
lastRenderedState: a,
}).dispatch =
Oh.bind(
null,
R,
a
)),
[b.memoizedState, a,]
);
}
function Rh(
a, b, c, d
) {
return (
(a = {
tag: a,
create: b,
destroy: c,
deps: d,
next: null,
}),
null === (b = R.updateQueue)
? ((b = {
lastEffect: null,
}),
(R.updateQueue = b),
(b.lastEffect = a.next = a))
: null === (c = b.lastEffect)
? (b.lastEffect = a.next = a)
: ((d = c.next),
(c.next = a),
(a.next = d),
(b.lastEffect = a)),
a
);
}
function Sh(
a
) {
return (a = {
current: a,
}), (Hh(
).memoizedState = a);
}
function Th(
) {
return Ih(
).memoizedState;
}
function Uh(
a, b, c, d
) {
var e = Hh(
);
(R.flags |= a),
(e.memoizedState = Rh(
1 | b,
c,
void 0,
void 0 === d ? null : d
));
}
function Vh(
a, b, c, d
) {
var e = Ih(
);
d = void 0 === d ? null : d;
var f = void 0;
if (null !== S) {
var g = S.memoizedState;
if (((f = g.destroy), null !== d && Bh(
d,
g.deps
)))
return void Rh(
b,
c,
f,
d
);
}
(R.flags |= a), (e.memoizedState = Rh(
1 | b,
c,
f,
d
));
}
function Wh(
a, b
) {
return Uh(
516,
4,
a,
b
);
}
function Xh(
a, b
) {
return Vh(
516,
4,
a,
b
);
}
function Yh(
a, b
) {
return Vh(
4,
2,
a,
b
);
}
function Zh(
a, b
) {
return "function" == typeof b
? ((a = a(
)),
b(
a
),
function (
) {
b(
null
);
})
: null != b
? ((a = a(
)),
(b.current = a),
function (
) {
b.current = null;
})
: void 0;
}
function $h(
a, b, c
) {
return (
(c = null != c
? c.concat(
[a,]
)
: null),
Vh(
4,
2,
Zh.bind(
null,
b,
a
),
c
)
);
}
function ai(
) {}
function bi(
a, b
) {
var c = Ih(
);
b = void 0 === b ? null : b;
var d = c.memoizedState;
return null !== d && null !== b && Bh(
b,
d[1]
)
? d[0]
: ((c.memoizedState = [a, b,]), a);
}
function ci(
a, b
) {
var c = Ih(
);
b = void 0 === b ? null : b;
var d = c.memoizedState;
return null !== d && null !== b && Bh(
b,
d[1]
)
? d[0]
: ((a = a(
)), (c.memoizedState = [a, b,]), a);
}
function di(
a, b
) {
var c = eg(
);
gg(
98 > c ? 98 : c,
function (
) {
a(
!0
);
}
),
gg(
97 < c ? 97 : c,
function (
) {
var c = wh.transition;
wh.transition = 1;
try {
a(
!1
), b(
);
} finally {
wh.transition = c;
}
}
);
}
function Oh(
a, b, c
) {
var d = Hg(
),
e = Ig(
a
),
f = {
lane: e,
action: c,
eagerReducer: null,
eagerState: null,
next: null,
},
g = b.pending;
if (
(null === g
? (f.next = f)
: ((f.next = g.next), (g.next = f)),
(b.pending = f),
(g = a.alternate),
a === R || (null !== g && g === R))
)
zh = yh = !0;
else {
if (
0 === a.lanes &&
(null === g || 0 === g.lanes) &&
null !== (g = b.lastRenderedReducer)
)
try {
var h = b.lastRenderedState,
k = g(
h,
c
);
if (
((f.eagerReducer = g),
(f.eagerState = k),
He(
k,
h
))
)
return;
} catch (l) {}
Jg(
a,
e,
d
);
}
}
var Gh = {
readContext: vg,
useCallback: Ah,
useContext: Ah,
useEffect: Ah,
useImperativeHandle: Ah,
useLayoutEffect: Ah,
useMemo: Ah,
useReducer: Ah,
useRef: Ah,
useState: Ah,
useDebugValue: Ah,
useDeferredValue: Ah,
useTransition: Ah,
useMutableSource: Ah,
useOpaqueIdentifier: Ah,
unstable_isNewReconciler: !1,
},
Dh = {
readContext: vg,
useCallback: function (
a, b
) {
return (
(Hh(
).memoizedState = [a, void 0 === b ? null : b,]),
a
);
},
useContext: vg,
useEffect: Wh,
useImperativeHandle: function (
a, b, c
) {
return (
(c = null != c
? c.concat(
[a,]
)
: null),
Uh(
4,
2,
Zh.bind(
null,
b,
a
),
c
)
);
},
useLayoutEffect: function (
a, b
) {
return Uh(
4,
2,
a,
b
);
},
useMemo: function (
a, b
) {
var c = Hh(
);
return (
(b = void 0 === b ? null : b),
(a = a(
)),
(c.memoizedState = [a, b,]),
a
);
},
useReducer: function (
a, b, c
) {
var d = Hh(
);
return (
(b = void 0 !== c
? c(
b
)
: b),
(d.memoizedState = d.baseState = b),
(a = (a = d.queue =
{
pending: null,
dispatch: null,
lastRenderedReducer: a,
lastRenderedState: b,
}).dispatch =
Oh.bind(
null,
R,
a
)),
[d.memoizedState, a,]
);
},
useRef: Sh,
useState: Qh,
useDebugValue: ai,
useDeferredValue: function (
a
) {
var b = Qh(
a
),
c = b[0],
d = b[1];
return (
Wh(
function (
) {
var b = wh.transition;
wh.transition = 1;
try {
d(
a
);
} finally {
wh.transition = b;
}
},
[a,]
),
c
);
},
useTransition: function (
) {
var a = Qh(
!1
),
b = a[0];
return Sh(
(a = di.bind(
null,
a[1]
))
), [a, b,];
},
useMutableSource: function (
a, b, c
) {
var d = Hh(
);
return (
(d.memoizedState = {
refs: {
getSnapshot: b,
setSnapshot: null,
},
source: a,
subscribe: c,
}),
Nh(
d,
a,
b,
c
)
);
},
useOpaqueIdentifier: function (
) {
if (lh) {
var a = !1,
b = (function (
a
) {
return {
$$typeof: Ga,
toString: a,
valueOf: a,
};
})(
function (
) {
throw (
(a ||
((a = !0),
c(
"r:" + (tf++).toString(
36
)
)),
Error(
y(
355
)
))
);
}
),
c = Qh(
b
)[1];
return (
0 == (2 & R.mode) &&
((R.flags |= 516),
Rh(
5,
function (
) {
c(
"r:" + (tf++).toString(
36
)
);
},
void 0,
null
)),
b
);
}
return Qh(
(b = "r:" + (tf++).toString(
36
))
), b;
},
unstable_isNewReconciler: !1,
},
Eh = {
readContext: vg,
useCallback: bi,
useContext: vg,
useEffect: Xh,
useImperativeHandle: $h,
useLayoutEffect: Yh,
useMemo: ci,
useReducer: Kh,
useRef: Th,
useState: function (
) {
return Kh(
Jh
);
},
useDebugValue: ai,
useDeferredValue: function (
a
) {
var b = Kh(
Jh
),
c = b[0],
d = b[1];
return (
Xh(
function (
) {
var b = wh.transition;
wh.transition = 1;
try {
d(
a
);
} finally {
wh.transition = b;
}
},
[a,]
),
c
);
},
useTransition: function (
) {
var a = Kh(
Jh
)[0];
return [Th(
).current, a,];
},
useMutableSource: Ph,
useOpaqueIdentifier: function (
) {
return Kh(
Jh
)[0];
},
unstable_isNewReconciler: !1,
},
Fh = {
readContext: vg,
useCallback: bi,
useContext: vg,
useEffect: Xh,
useImperativeHandle: $h,
useLayoutEffect: Yh,
useMemo: ci,
useReducer: Lh,
useRef: Th,
useState: function (
) {
return Lh(
Jh
);
},
useDebugValue: ai,
useDeferredValue: function (
a
) {
var b = Lh(
Jh
),
c = b[0],
d = b[1];
return (
Xh(
function (
) {
var b = wh.transition;
wh.transition = 1;
try {
d(
a
);
} finally {
wh.transition = b;
}
},
[a,]
),
c
);
},
useTransition: function (
) {
var a = Lh(
Jh
)[0];
return [Th(
).current, a,];
},
useMutableSource: Ph,
useOpaqueIdentifier: function (
) {
return Lh(
Jh
)[0];
},
unstable_isNewReconciler: !1,
},
ei = ra.ReactCurrentOwner,
ug = !1;
function fi(
a, b, c, d
) {
b.child = null === a
? Zg(
b,
null,
c,
d
)
: Yg(
b,
a.child,
c,
d
);
}
function gi(
a, b, c, d, e
) {
c = c.render;
var f = b.ref;
return (
tg(
b,
e
),
(d = Ch(
a,
b,
c,
d,
f,
e
)),
null === a || ug
? ((b.flags |= 1), fi(
a,
b,
d,
e
), b.child)
: ((b.updateQueue = a.updateQueue),
(b.flags &= -517),
(a.lanes &= ~e),
hi(
a,
b,
e
))
);
}
function ii(
a, b, c, d, e, f
) {
if (null === a) {
var g = c.type;
return "function" != typeof g ||
ji(
g
) ||
void 0 !== g.defaultProps ||
null !== c.compare ||
void 0 !== c.defaultProps
? (((a = Vg(
c.type,
null,
d,
b,
b.mode,
f
)).ref =
b.ref),
(a.return = b),
(b.child = a))
: ((b.tag = 15), (b.type = g), ki(
a,
b,
g,
d,
e,
f
));
}
return (
(g = a.child),
0 == (e & f) &&
((e = g.memoizedProps),
(c = null !== (c = c.compare) ? c : Je)(
e,
d
) &&
a.ref === b.ref)
? hi(
a,
b,
f
)
: ((b.flags |= 1),
((a = Tg(
g,
d
)).ref = b.ref),
(a.return = b),
(b.child = a))
);
}
function ki(
a, b, c, d, e, f
) {
if (null !== a && Je(
a.memoizedProps,
d
) && a.ref === b.ref) {
if (((ug = !1), 0 == (f & e)))
return (b.lanes = a.lanes), hi(
a,
b,
f
);
0 != (16384 & a.flags) && (ug = !0);
}
return li(
a,
b,
c,
d,
f
);
}
function mi(
a, b, c
) {
var d = b.pendingProps,
e = d.children,
f = null !== a ? a.memoizedState : null;
if (
"hidden" === d.mode ||
"unstable-defer-without-hiding" === d.mode
)
if (0 == (4 & b.mode))
(b.memoizedState = {
baseLanes: 0,
}), ni(
b,
c
);
else {
if (0 == (1073741824 & c))
return (
(a = null !== f ? f.baseLanes | c : c),
(b.lanes = b.childLanes = 1073741824),
(b.memoizedState = {
baseLanes: a,
}),
ni(
b,
a
),
null
);
(b.memoizedState = {
baseLanes: 0,
}),
ni(
b,
null !== f ? f.baseLanes : c
);
}
else
null !== f
? ((d = f.baseLanes | c), (b.memoizedState = null))
: (d = c),
ni(
b,
d
);
return fi(
a,
b,
e,
c
), b.child;
}
function oi(
a, b
) {
var c = b.ref;
((null === a && null !== c) || (null !== a && a.ref !== c)) &&
(b.flags |= 128);
}
function li(
a, b, c, d, e
) {
var f = Ff(
c
)
? Df
: M.current;
return (
(f = Ef(
b,
f
)),
tg(
b,
e
),
(c = Ch(
a,
b,
c,
d,
f,
e
)),
null === a || ug
? ((b.flags |= 1), fi(
a,
b,
c,
e
), b.child)
: ((b.updateQueue = a.updateQueue),
(b.flags &= -517),
(a.lanes &= ~e),
hi(
a,
b,
e
))
);
}
function pi(
a, b, c, d, e
) {
if (Ff(
c
)) {
var f = !0;
Jf(
b
);
} else f = !1;
if ((tg(
b,
e
), null === b.stateNode))
null !== a &&
((a.alternate = null),
(b.alternate = null),
(b.flags |= 2)),
Mg(
b,
c,
d
),
Og(
b,
c,
d,
e
),
(d = !0);
else if (null === a) {
var g = b.stateNode,
h = b.memoizedProps;
g.props = h;
var k = g.context,
l = c.contextType;
"object" == typeof l && null !== l
? (l = vg(
l
))
: (l = Ef(
b, (
l = Ff(
c
)
? Df
: M.current)
));
var n = c.getDerivedStateFromProps,
A =
"function" == typeof n ||
"function" == typeof g.getSnapshotBeforeUpdate;
A ||
("function" !=
typeof g.UNSAFE_componentWillReceiveProps &&
"function" != typeof g.componentWillReceiveProps) ||
((h !== d || k !== l) && Ng(
b,
g,
d,
l
)),
(wg = !1);
var p = b.memoizedState;
(g.state = p),
Cg(
b,
d,
g,
e
),
(k = b.memoizedState),
h !== d || p !== k || N.current || wg
? ("function" == typeof n &&
(Gg(
b,
c,
n,
d
), (k = b.memoizedState)),
(h = wg || Lg(
b,
c,
h,
d,
p,
k,
l
))
? (A ||
("function" !=
typeof g.UNSAFE_componentWillMount &&
"function" !=
typeof g.componentWillMount) ||
("function" ==
typeof g.componentWillMount &&
g.componentWillMount(
),
"function" ==
typeof g.UNSAFE_componentWillMount &&
g.UNSAFE_componentWillMount(
)),
"function" == typeof g.componentDidMount &&
(b.flags |= 4))
: ("function" == typeof g.componentDidMount &&
(b.flags |= 4),
(b.memoizedProps = d),
(b.memoizedState = k)),
(g.props = d),
(g.state = k),
(g.context = l),
(d = h))
: ("function" == typeof g.componentDidMount &&
(b.flags |= 4),
(d = !1));
} else {
(g = b.stateNode),
yg(
a,
b
),
(h = b.memoizedProps),
(l = b.type === b.elementType
? h
: lg(
b.type,
h
)),
(g.props = l),
(A = b.pendingProps),
(p = g.context),
"object" == typeof (k = c.contextType) && null !== k
? (k = vg(
k
))
: (k = Ef(
b, (
k = Ff(
c
)
? Df
: M.current)
));
var C = c.getDerivedStateFromProps;
(n =
"function" == typeof C ||
"function" == typeof g.getSnapshotBeforeUpdate) ||
("function" !=
typeof g.UNSAFE_componentWillReceiveProps &&
"function" != typeof g.componentWillReceiveProps) ||
((h !== A || p !== k) && Ng(
b,
g,
d,
k
)),
(wg = !1),
(p = b.memoizedState),
(g.state = p),
Cg(
b,
d,
g,
e
);
var x = b.memoizedState;
h !== A || p !== x || N.current || wg
? ("function" == typeof C &&
(Gg(
b,
c,
C,
d
), (x = b.memoizedState)),
(l = wg || Lg(
b,
c,
l,
d,
p,
x,
k
))
? (n ||
("function" !=
typeof g.UNSAFE_componentWillUpdate &&
"function" !=
typeof g.componentWillUpdate) ||
("function" ==
typeof g.componentWillUpdate &&
g.componentWillUpdate(
d,
x,
k
),
"function" ==
typeof g.UNSAFE_componentWillUpdate &&
g.UNSAFE_componentWillUpdate(
d,
x,
k
)),
"function" == typeof g.componentDidUpdate &&
(b.flags |= 4),
"function" ==
typeof g.getSnapshotBeforeUpdate &&
(b.flags |= 256))
: ("function" != typeof g.componentDidUpdate ||
(h === a.memoizedProps &&
p === a.memoizedState) ||
(b.flags |= 4),
"function" !=
typeof g.getSnapshotBeforeUpdate ||
(h === a.memoizedProps &&
p === a.memoizedState) ||
(b.flags |= 256),
(b.memoizedProps = d),
(b.memoizedState = x)),
(g.props = d),
(g.state = x),
(g.context = k),
(d = l))
: ("function" != typeof g.componentDidUpdate ||
(h === a.memoizedProps &&
p === a.memoizedState) ||
(b.flags |= 4),
"function" != typeof g.getSnapshotBeforeUpdate ||
(h === a.memoizedProps &&
p === a.memoizedState) ||
(b.flags |= 256),
(d = !1));
}
return qi(
a,
b,
c,
d,
f,
e
);
}
function qi(
a, b, c, d, e, f
) {
oi(
a,
b
);
var g = 0 != (64 & b.flags);
if (!d && !g) return e && Kf(
b,
c,
!1
), hi(
a,
b,
f
);
(d = b.stateNode), (ei.current = b);
var h =
g && "function" != typeof c.getDerivedStateFromError
? null
: d.render(
);
return (
(b.flags |= 1),
null !== a && g
? ((b.child = Yg(
b,
a.child,
null,
f
)),
(b.child = Yg(
b,
null,
h,
f
)))
: fi(
a,
b,
h,
f
),
(b.memoizedState = d.state),
e && Kf(
b,
c,
!0
),
b.child
);
}
function ri(
a
) {
var b = a.stateNode;
b.pendingContext
? Hf(
0,
b.pendingContext,
b.pendingContext !== b.context
)
: b.context && Hf(
0,
b.context,
!1
),
eh(
a,
b.containerInfo
);
}
var Bi,
Di,
Ei,
si = {
dehydrated: null,
retryLane: 0,
};
function ti(
a, b, c
) {
var g,
d = b.pendingProps,
e = P.current,
f = !1;
return (
(g = 0 != (64 & b.flags)) ||
(g =
(null === a || null !== a.memoizedState) &&
0 != (2 & e)),
g
? ((f = !0), (b.flags &= -65))
: (null !== a && null === a.memoizedState) ||
void 0 === d.fallback ||
!0 === d.unstable_avoidThisFallback ||
(e |= 1),
I(
P,
1 & e
),
null === a
? (void 0 !== d.fallback && ph(
b
),
(a = d.children),
(e = d.fallback),
f
? ((a = ui(
b,
a,
e,
c
)),
(b.child.memoizedState = {
baseLanes: c,
}),
(b.memoizedState = si),
a)
: "number" == typeof d.unstable_expectedLoadTime
? ((a = ui(
b,
a,
e,
c
)),
(b.child.memoizedState = {
baseLanes: c,
}),
(b.memoizedState = si),
(b.lanes = 33554432),
a)
: (((c = vi(
{
mode: "visible",
children: a,
},
b.mode,
c,
null
)).return = b),
(b.child = c)))
: (a.memoizedState,
f
? ((d = wi(
a,
b,
d.children,
d.fallback,
c
)),
(f = b.child),
(e = a.child.memoizedState),
(f.memoizedState =
null === e
? {
baseLanes: c,
}
: {
baseLanes: e.baseLanes | c,
}),
(f.childLanes = a.childLanes & ~c),
(b.memoizedState = si),
d)
: ((c = xi(
a,
b,
d.children,
c
)),
(b.memoizedState = null),
c))
);
}
function ui(
a, b, c, d
) {
var e = a.mode,
f = a.child;
return (
(b = {
mode: "hidden",
children: b,
}),
0 == (2 & e) && null !== f
? ((f.childLanes = 0), (f.pendingProps = b))
: (f = vi(
b,
e,
0,
null
)),
(c = Xg(
c,
e,
d,
null
)),
(f.return = a),
(c.return = a),
(f.sibling = c),
(a.child = f),
c
);
}
function xi(
a, b, c, d
) {
var e = a.child;
return (
(a = e.sibling),
(c = Tg(
e,
{
mode: "visible",
children: c,
}
)),
0 == (2 & b.mode) && (c.lanes = d),
(c.return = b),
(c.sibling = null),
null !== a &&
((a.nextEffect = null),
(a.flags = 8),
(b.firstEffect = b.lastEffect = a)),
(b.child = c)
);
}
function wi(
a, b, c, d, e
) {
var f = b.mode,
g = a.child;
a = g.sibling;
var h = {
mode: "hidden",
children: c,
};
return (
0 == (2 & f) && b.child !== g
? (((c = b.child).childLanes = 0),
(c.pendingProps = h),
null !== (g = c.lastEffect)
? ((b.firstEffect = c.firstEffect),
(b.lastEffect = g),
(g.nextEffect = null))
: (b.firstEffect = b.lastEffect = null))
: (c = Tg(
g,
h
)),
null !== a
? (d = Tg(
a,
d
))
: ((d = Xg(
d,
f,
e,
null
)).flags |= 2),
(d.return = b),
(c.return = b),
(c.sibling = d),
(b.child = c),
d
);
}
function yi(
a, b
) {
a.lanes |= b;
var c = a.alternate;
null !== c && (c.lanes |= b), sg(
a.return,
b
);
}
function zi(
a, b, c, d, e, f
) {
var g = a.memoizedState;
null === g
? (a.memoizedState = {
isBackwards: b,
rendering: null,
renderingStartTime: 0,
last: d,
tail: c,
tailMode: e,
lastEffect: f,
})
: ((g.isBackwards = b),
(g.rendering = null),
(g.renderingStartTime = 0),
(g.last = d),
(g.tail = c),
(g.tailMode = e),
(g.lastEffect = f));
}
function Ai(
a, b, c
) {
var d = b.pendingProps,
e = d.revealOrder,
f = d.tail;
if ((fi(
a,
b,
d.children,
c
), 0 != (2 & (d = P.current))))
(d = (1 & d) | 2), (b.flags |= 64);
else {
if (null !== a && 0 != (64 & a.flags))
a: for (a = b.child; null !== a; ) {
if (13 === a.tag)
null !== a.memoizedState && yi(
a,
c
);
else if (19 === a.tag) yi(
a,
c
);
else if (null !== a.child) {
(a.child.return = a), (a = a.child);
continue;
}
if (a === b) break a;
for (; null === a.sibling; ) {
if (null === a.return || a.return === b)
break a;
a = a.return;
}
(a.sibling.return = a.return), (a = a.sibling);
}
d &= 1;
}
if ((I(
P,
d
), 0 == (2 & b.mode))) b.memoizedState = null;
else
switch (e) {
case "forwards":
for (c = b.child, e = null; null !== c; )
null !== (a = c.alternate) &&
null === ih(
a
) &&
(e = c),
(c = c.sibling);
null === (c = e)
? ((e = b.child), (b.child = null))
: ((e = c.sibling), (c.sibling = null)),
zi(
b,
!1,
e,
c,
f,
b.lastEffect
);
break;
case "backwards":
for (
c = null, e = b.child, b.child = null;
null !== e;
) {
if (
null !== (a = e.alternate) &&
null === ih(
a
)
) {
b.child = e;
break;
}
(a = e.sibling),
(e.sibling = c),
(c = e),
(e = a);
}
zi(
b,
!0,
c,
null,
f,
b.lastEffect
);
break;
case "together":
zi(
b,
!1,
null,
null,
void 0,
b.lastEffect
);
break;
default:
b.memoizedState = null;
}
return b.child;
}
function hi(
a, b, c
) {
if (
(null !== a && (b.dependencies = a.dependencies),
(Dg |= b.lanes),
0 != (c & b.childLanes))
) {
if (null !== a && b.child !== a.child) throw Error(
y(
153
)
);
if (null !== b.child) {
for (
c = Tg(
(a = b.child),
a.pendingProps
),
b.child = c,
c.return = b;
null !== a.sibling;
)
(a = a.sibling),
((c = c.sibling =
Tg(
a,
a.pendingProps
)).return = b);
c.sibling = null;
}
return b.child;
}
return null;
}
function Fi(
a, b
) {
if (!lh)
switch (a.tailMode) {
case "hidden":
b = a.tail;
for (var c = null; null !== b; )
null !== b.alternate && (c = b),
(b = b.sibling);
null === c ? (a.tail = null) : (c.sibling = null);
break;
case "collapsed":
c = a.tail;
for (var d = null; null !== c; )
null !== c.alternate && (d = c),
(c = c.sibling);
null === d
? b || null === a.tail
? (a.tail = null)
: (a.tail.sibling = null)
: (d.sibling = null);
}
}
function Gi(
a, b, c
) {
var d = b.pendingProps;
switch (b.tag) {
case 2:
case 16:
case 15:
case 0:
case 11:
case 7:
case 8:
case 12:
case 9:
case 14:
return null;
case 1:
return Ff(
b.type
) && Gf(
), null;
case 3:
return (
fh(
),
H(
N
),
H(
M
),
uh(
),
(d = b.stateNode).pendingContext &&
((d.context = d.pendingContext),
(d.pendingContext = null)),
(null !== a && null !== a.child) ||
(rh(
b
)
? (b.flags |= 4)
: d.hydrate || (b.flags |= 256)),
null
);
case 5:
hh(
b
);
var e = dh(
ch.current
);
if (((c = b.type), null !== a && null != b.stateNode))
Di(
a,
b,
c,
d
), a.ref !== b.ref && (b.flags |= 128);
else {
if (!d) {
if (null === b.stateNode) throw Error(
y(
166
)
);
return null;
}
if (((a = dh(
ah.current
)), rh(
b
))) {
(d = b.stateNode), (c = b.type);
var f = b.memoizedProps;
switch (((d[wf] = b), (d[xf] = f), c)) {
case "dialog":
G(
"cancel",
d
), G(
"close",
d
);
break;
case "iframe":
case "object":
case "embed":
G(
"load",
d
);
break;
case "video":
case "audio":
for (a = 0; a < Xe.length; a++)
G(
Xe[a],
d
);
break;
case "source":
G(
"error",
d
);
break;
case "img":
case "image":
case "link":
G(
"error",
d
), G(
"load",
d
);
break;
case "details":
G(
"toggle",
d
);
break;
case "input":
Za(
d,
f
), G(
"invalid",
d
);
break;
case "select":
(d._wrapperState = {
wasMultiple: !!f.multiple,
}),
G(
"invalid",
d
);
break;
case "textarea":
hb(
d,
f
), G(
"invalid",
d
);
}
for (var g in (vb(
c,
f
), (a = null), f))
f.hasOwnProperty(
g
) &&
((e = f[g]),
"children" === g
? "string" == typeof e
? d.textContent !== e &&
(a = ["children", e,])
: "number" == typeof e &&
d.textContent !== "" + e &&
(a = ["children", "" + e,])
: ca.hasOwnProperty(
g
) &&
null != e &&
"onScroll" === g &&
G(
"scroll",
d
));
switch (c) {
case "input":
Va(
d
), cb(
d,
f,
!0
);
break;
case "textarea":
Va(
d
), jb(
d
);
break;
case "select":
case "option":
break;
default:
"function" == typeof f.onClick &&
(d.onclick = jf);
}
(d = a),
(b.updateQueue = d),
null !== d && (b.flags |= 4);
} else {
switch (
((g =
9 === e.nodeType ? e : e.ownerDocument),
a === kb_html && (a = lb(
c
)),
a === kb_html
? "script" === c
? (((a =
g.createElement(
"div"
)).innerHTML =
"<script></script>"),
(a = a.removeChild(
a.firstChild
)))
: "string" == typeof d.is
? (a = g.createElement(
c,
{
is: d.is,
}
))
: ((a = g.createElement(
c
)),
"select" === c &&
((g = a),
d.multiple
? (g.multiple = !0)
: d.size &&
(g.size = d.size)))
: (a = g.createElementNS(
a,
c
)),
(a[wf] = b),
(a[xf] = d),
Bi(
a,
b
),
(b.stateNode = a),
(g = wb(
c,
d
)),
c)
) {
case "dialog":
G(
"cancel",
a
), G(
"close",
a
), (e = d);
break;
case "iframe":
case "object":
case "embed":
G(
"load",
a
), (e = d);
break;
case "video":
case "audio":
for (e = 0; e < Xe.length; e++)
G(
Xe[e],
a
);
e = d;
break;
case "source":
G(
"error",
a
), (e = d);
break;
case "img":
case "image":
case "link":
G(
"error",
a
), G(
"load",
a
), (e = d);
break;
case "details":
G(
"toggle",
a
), (e = d);
break;
case "input":
Za(
a,
d
),
(e = Ya(
a,
d
)),
G(
"invalid",
a
);
break;
case "option":
e = eb(
a,
d
);
break;
case "select":
(a._wrapperState = {
wasMultiple: !!d.multiple,
}),
(e = m(
{
},
d,
{
value: void 0,
}
)),
G(
"invalid",
a
);
break;
case "textarea":
hb(
a,
d
),
(e = gb(
a,
d
)),
G(
"invalid",
a
);
break;
default:
e = d;
}
vb(
c,
e
);
var h = e;
for (f in h)
if (h.hasOwnProperty(
f
)) {
var k = h[f];
"style" === f
? tb(
a,
k
)
: "dangerouslySetInnerHTML" === f
? null !=
(k = k ? k.__html : void 0) &&
ob(
a,
k
)
: "children" === f
? "string" == typeof k
? ("textarea" !== c ||
"" !== k) &&
pb(
a,
k
)
: "number" == typeof k &&
pb(
a,
"" + k
)
: "suppressContentEditableWarning" !==
f &&
"suppressHydrationWarning" !==
f &&
"autoFocus" !== f &&
(ca.hasOwnProperty(
f
)
? null != k &&
"onScroll" === f &&
G(
"scroll",
a
)
: null != k &&
qa(
a,
f,
k,
g
));
}
switch (c) {
case "input":
Va(
a
), cb(
a,
d,
!1
);
break;
case "textarea":
Va(
a
), jb(
a
);
break;
case "option":
null != d.value &&
a.setAttribute(
"value",
"" + Sa(
d.value
)
);
break;
case "select":
(a.multiple = !!d.multiple),
null != (f = d.value)
? fb(
a,
!!d.multiple,
f,
!1
)
: null != d.defaultValue &&
fb(
a,
!!d.multiple,
d.defaultValue,
!0
);
break;
default:
"function" == typeof e.onClick &&
(a.onclick = jf);
}
mf(
c,
d
) && (b.flags |= 4);
}
null !== b.ref && (b.flags |= 128);
}
return null;
case 6:
if (a && null != b.stateNode)
Ei(
0,
b,
a.memoizedProps,
d
);
else {
if ("string" != typeof d && null === b.stateNode)
throw Error(
y(
166
)
);
(c = dh(
ch.current
)),
dh(
ah.current
),
rh(
b
)
? ((d = b.stateNode),
(c = b.memoizedProps),
(d[wf] = b),
d.nodeValue !== c && (b.flags |= 4))
: (((d = (
9 === c.nodeType ? c : c.ownerDocument
).createTextNode(
d
))[wf] = b),
(b.stateNode = d));
}
return null;
case 13:
return (
H(
P
),
(d = b.memoizedState),
0 != (64 & b.flags)
? ((b.lanes = c), b)
: ((d = null !== d),
(c = !1),
null === a
? void 0 !== b.memoizedProps.fallback &&
rh(
b
)
: (c = null !== a.memoizedState),
d &&
!c &&
0 != (2 & b.mode) &&
((null === a &&
!0 !==
b.memoizedProps
.unstable_avoidThisFallback) ||
0 != (1 & P.current)
? 0 === V && (V = 3)
: ((0 !== V && 3 !== V) || (V = 4),
null === U ||
(0 == (134217727 & Dg) &&
0 == (134217727 & Hi)) ||
Ii(
U,
W
))),
(d || c) && (b.flags |= 4),
null)
);
case 4:
return (
fh(
),
null === a && cf(
b.stateNode.containerInfo
),
null
);
case 10:
return rg(
b
), null;
case 17:
return Ff(
b.type
) && Gf(
), null;
case 19:
if ((H(
P
), null === (d = b.memoizedState))) return null;
if (
((f = 0 != (64 & b.flags)),
null === (g = d.rendering))
)
if (f) Fi(
d,
!1
);
else {
if (
0 !== V ||
(null !== a && 0 != (64 & a.flags))
)
for (a = b.child; null !== a; ) {
if (null !== (g = ih(
a
))) {
for (
b.flags |= 64,
Fi(
d,
!1
),
null !==
(f = g.updateQueue) &&
((b.updateQueue = f),
(b.flags |= 4)),
null === d.lastEffect &&
(b.firstEffect = null),
b.lastEffect = d.lastEffect,
d = c,
c = b.child;
null !== c;
)
(a = d),
((f = c).flags &= 2),
(f.nextEffect = null),
(f.firstEffect = null),
(f.lastEffect = null),
null === (g = f.alternate)
? ((f.childLanes = 0),
(f.lanes = a),
(f.child = null),
(f.memoizedProps =
null),
(f.memoizedState =
null),
(f.updateQueue =
null),
(f.dependencies =
null),
(f.stateNode = null))
: ((f.childLanes =
g.childLanes),
(f.lanes = g.lanes),
(f.child = g.child),
(f.memoizedProps =
g.memoizedProps),
(f.memoizedState =
g.memoizedState),
(f.updateQueue =
g.updateQueue),
(f.type = g.type),
(a = g.dependencies),
(f.dependencies =
null === a
? null
: {
lanes: a.lanes,
firstContext:
a.firstContext,
})),
(c = c.sibling);
return (
I(
P,
(1 & P.current) | 2
),
b.child
);
}
a = a.sibling;
}
null !== d.tail &&
O(
) > Ji &&
((b.flags |= 64),
(f = !0),
Fi(
d,
!1
),
(b.lanes = 33554432));
}
else {
if (!f)
if (null !== (a = ih(
g
))) {
if (
((b.flags |= 64),
(f = !0),
null !== (c = a.updateQueue) &&
((b.updateQueue = c),
(b.flags |= 4)),
Fi(
d,
!0
),
null === d.tail &&
"hidden" === d.tailMode &&
!g.alternate &&
!lh)
)
return (
null !==
(b = b.lastEffect =
d.lastEffect) &&
(b.nextEffect = null),
null
);
} else
2 * O(
) - d.renderingStartTime > Ji &&
1073741824 !== c &&
((b.flags |= 64),
(f = !0),
Fi(
d,
!1
),
(b.lanes = 33554432));
d.isBackwards
? ((g.sibling = b.child), (b.child = g))
: (null !== (c = d.last)
? (c.sibling = g)
: (b.child = g),
(d.last = g));
}
return null !== d.tail
? ((c = d.tail),
(d.rendering = c),
(d.tail = c.sibling),
(d.lastEffect = b.lastEffect),
(d.renderingStartTime = O(
)),
(c.sibling = null),
(b = P.current),
I(
P,
f ? (1 & b) | 2 : 1 & b
),
c)
: null;
case 23:
case 24:
return (
Ki(
),
null !== a &&
(null !== a.memoizedState) !=
(null !== b.memoizedState) &&
"unstable-defer-without-hiding" !== d.mode &&
(b.flags |= 4),
null
);
}
throw Error(
y(
156,
b.tag
)
);
}
function Li(
a
) {
switch (a.tag) {
case 1:
Ff(
a.type
) && Gf(
);
var b = a.flags;
return 4096 & b
? ((a.flags = (-4097 & b) | 64), a)
: null;
case 3:
if ((fh(
), H(
N
), H(
M
), uh(
), 0 != (64 & (b = a.flags))))
throw Error(
y(
285
)
);
return (a.flags = (-4097 & b) | 64), a;
case 5:
return hh(
a
), null;
case 13:
return (
H(
P
),
4096 & (b = a.flags)
? ((a.flags = (-4097 & b) | 64), a)
: null
);
case 19:
return H(
P
), null;
case 4:
return fh(
), null;
case 10:
return rg(
a
), null;
case 23:
case 24:
return Ki(
), null;
default:
return null;
}
}
function Mi(
a, b
) {
try {
var c = "",
d = b;
do {
(c += Qa(
d
)), (d = d.return);
} while (d);
var e = c;
} catch (f) {
e =
"\nError generating stack: " +
f.message +
"\n" +
f.stack;
}
return {
value: a,
source: b,
stack: e,
};
}
function Ni(
a, b
) {
try {
console.error(
b.value
);
} catch (c) {
setTimeout(
function (
) {
throw c;
}
);
}
}
(Bi = function (
a, b
) {
for (var c = b.child; null !== c; ) {
if (5 === c.tag || 6 === c.tag) a.appendChild(
c.stateNode
);
else if (4 !== c.tag && null !== c.child) {
(c.child.return = c), (c = c.child);
continue;
}
if (c === b) break;
for (; null === c.sibling; ) {
if (null === c.return || c.return === b) return;
c = c.return;
}
(c.sibling.return = c.return), (c = c.sibling);
}
}),
(Di = function (
a, b, c, d
) {
var e = a.memoizedProps;
if (e !== d) {
(a = b.stateNode), dh(
ah.current
);
var g,
f = null;
switch (c) {
case "input":
(e = Ya(
a,
e
)), (d = Ya(
a,
d
)), (f = []);
break;
case "option":
(e = eb(
a,
e
)), (d = eb(
a,
d
)), (f = []);
break;
case "select":
(e = m(
{
},
e,
{
value: void 0,
}
)),
(d = m(
{
},
d,
{
value: void 0,
}
)),
(f = []);
break;
case "textarea":
(e = gb(
a,
e
)), (d = gb(
a,
d
)), (f = []);
break;
default:
"function" != typeof e.onClick &&
"function" == typeof d.onClick &&
(a.onclick = jf);
}
for (l in (vb(
c,
d
), (c = null), e))
if (
!d.hasOwnProperty(
l
) &&
e.hasOwnProperty(
l
) &&
null != e[l]
)
if ("style" === l) {
var h = e[l];
for (g in h)
h.hasOwnProperty(
g
) &&
(c || (c = {
}), (c[g] = ""));
} else
"dangerouslySetInnerHTML" !== l &&
"children" !== l &&
"suppressContentEditableWarning" !==
l &&
"suppressHydrationWarning" !== l &&
"autoFocus" !== l &&
(ca.hasOwnProperty(
l
)
? f || (f = [])
: (f = f || []).push(
l,
null
));
for (l in d) {
var k = d[l];
if (
((h = null != e ? e[l] : void 0),
d.hasOwnProperty(
l
) &&
k !== h &&
(null != k || null != h))
)
if ("style" === l)
if (h) {
for (g in h)
!h.hasOwnProperty(
g
) ||
(k && k.hasOwnProperty(
g
)) ||
(c || (c = {
}), (c[g] = ""));
for (g in k)
k.hasOwnProperty(
g
) &&
h[g] !== k[g] &&
(c || (c = {
}), (c[g] = k[g]));
} else
c || (f || (f = []), f.push(
l,
c
)),
(c = k);
else
"dangerouslySetInnerHTML" === l
? ((k = k ? k.__html : void 0),
(h = h ? h.__html : void 0),
null != k &&
h !== k &&
(f = f || []).push(
l,
k
))
: "children" === l
? ("string" != typeof k &&
"number" != typeof k) ||
(f = f || []).push(
l,
"" + k
)
: "suppressContentEditableWarning" !==
l &&
"suppressHydrationWarning" !== l &&
(ca.hasOwnProperty(
l
)
? (null != k &&
"onScroll" === l &&
G(
"scroll",
a
),
f || h === k || (f = []))
: "object" == typeof k &&
null !== k &&
k.$$typeof === Ga
? k.toString(
)
: (f = f || []).push(
l,
k
));
}
c && (f = f || []).push(
"style",
c
);
var l = f;
(b.updateQueue = l) && (b.flags |= 4);
}
}),
(Ei = function (
a, b, c, d
) {
c !== d && (b.flags |= 4);
});
var Oi = "function" == typeof WeakMap ? WeakMap : Map;
function Pi(
a, b, c
) {
((c = zg(
-1,
c
)).tag = 3), (c.payload = {
element: null,
});
var d = b.value;
return (
(c.callback = function (
) {
Qi || ((Qi = !0), (Ri = d)), Ni(
0,
b
);
}),
c
);
}
function Si(
a, b, c
) {
(c = zg(
-1,
c
)).tag = 3;
var d = a.type.getDerivedStateFromError;
if ("function" == typeof d) {
var e = b.value;
c.payload = function (
) {
return Ni(
0,
b
), d(
e
);
};
}
var f = a.stateNode;
return (
null !== f &&
"function" == typeof f.componentDidCatch &&
(c.callback = function (
) {
"function" != typeof d &&
(null === Ti
? (Ti = new Set(
[this,]
))
: Ti.add(
this
),
Ni(
0,
b
));
var c = b.stack;
this.componentDidCatch(
b.value,
{
componentStack: null !== c ? c : "",
}
);
}),
c
);
}
var Ui = "function" == typeof WeakSet ? WeakSet : Set;
function Vi(
a
) {
var b = a.ref;
if (null !== b)
if ("function" == typeof b)
try {
b(
null
);
} catch (c) {
Wi(
a,
c
);
}
else b.current = null;
}
function Xi(
a, b
) {
switch (b.tag) {
case 0:
case 11:
case 15:
case 22:
return;
case 1:
if (256 & b.flags && null !== a) {
var c = a.memoizedProps,
d = a.memoizedState;
(b = (a = b.stateNode).getSnapshotBeforeUpdate(
b.elementType === b.type
? c
: lg(
b.type,
c
),
d
)),
(a.__reactInternalSnapshotBeforeUpdate = b);
}
return;
case 3:
return void (
256 & b.flags && qf(
b.stateNode.containerInfo
)
);
case 5:
case 6:
case 4:
case 17:
return;
}
throw Error(
y(
163
)
);
}
function Yi(
a, b, c
) {
switch (c.tag) {
case 0:
case 11:
case 15:
case 22:
if (
null !==
(b =
null !== (b = c.updateQueue)
? b.lastEffect
: null)
) {
a = b = b.next;
do {
if (3 == (3 & a.tag)) {
var d = a.create;
a.destroy = d(
);
}
a = a.next;
} while (a !== b);
}
if (
null !==
(b =
null !== (b = c.updateQueue)
? b.lastEffect
: null)
) {
a = b = b.next;
do {
var e = a;
(d = e.next),
0 != (4 & (e = e.tag)) &&
0 != (1 & e) &&
(Zi(
c,
a
), $i(
c,
a
)),
(a = d);
} while (a !== b);
}
return;
case 1:
return (
(a = c.stateNode),
4 & c.flags &&
(null === b
? a.componentDidMount(
)
: ((d =
c.elementType === c.type
? b.memoizedProps
: lg(
c.type,
b.memoizedProps
)),
a.componentDidUpdate(
d,
b.memoizedState,
a.__reactInternalSnapshotBeforeUpdate
))),
void (null !== (b = c.updateQueue) && Eg(
c,
b,
a
))
);
case 3:
if (null !== (b = c.updateQueue)) {
if (((a = null), null !== c.child))
switch (c.child.tag) {
case 5:
a = c.child.stateNode;
break;
case 1:
a = c.child.stateNode;
}
Eg(
c,
b,
a
);
}
return;
case 5:
return (
(a = c.stateNode),
void (
null === b &&
4 & c.flags &&
mf(
c.type,
c.memoizedProps
) &&
a.focus(
)
)
);
case 6:
case 4:
case 12:
return;
case 13:
return void (
null === c.memoizedState &&
((c = c.alternate),
null !== c &&
((c = c.memoizedState),
null !== c &&
((c = c.dehydrated), null !== c && Cc(
c
))))
);
case 19:
case 17:
case 20:
case 21:
case 23:
case 24:
return;
}
throw Error(
y(
163
)
);
}
function aj(
a, b
) {
for (var c = a; ; ) {
if (5 === c.tag) {
var d = c.stateNode;
if (b)
"function" == typeof (d = d.style).setProperty
? d.setProperty(
"display",
"none",
"important"
)
: (d.display = "none");
else {
d = c.stateNode;
var e = c.memoizedProps.style;
(e =
null != e && e.hasOwnProperty(
"display"
)
? e.display
: null),
(d.style.display = sb(
"display",
e
));
}
} else if (6 === c.tag)
c.stateNode.nodeValue = b ? "" : c.memoizedProps;
else if (
((23 !== c.tag && 24 !== c.tag) ||
null === c.memoizedState ||
c === a) &&
null !== c.child
) {
(c.child.return = c), (c = c.child);
continue;
}
if (c === a) break;
for (; null === c.sibling; ) {
if (null === c.return || c.return === a) return;
c = c.return;
}
(c.sibling.return = c.return), (c = c.sibling);
}
}
function bj(
a, b
) {
if (Mf && "function" == typeof Mf.onCommitFiberUnmount)
try {
Mf.onCommitFiberUnmount(
Lf,
b
);
} catch (f) {}
switch (b.tag) {
case 0:
case 11:
case 14:
case 15:
case 22:
if (
null !== (a = b.updateQueue) &&
null !== (a = a.lastEffect)
) {
var c = (a = a.next);
do {
var d = c,
e = d.destroy;
if (((d = d.tag), void 0 !== e))
if (0 != (4 & d)) Zi(
b,
c
);
else {
d = b;
try {
e(
);
} catch (f) {
Wi(
d,
f
);
}
}
c = c.next;
} while (c !== a);
}
break;
case 1:
if (
(Vi(
b
),
"function" ==
typeof (a = b.stateNode).componentWillUnmount)
)
try {
(a.props = b.memoizedProps),
(a.state = b.memoizedState),
a.componentWillUnmount(
);
} catch (f) {
Wi(
b,
f
);
}
break;
case 5:
Vi(
b
);
break;
case 4:
cj(
a,
b
);
}
}
function dj(
a
) {
(a.alternate = null),
(a.child = null),
(a.dependencies = null),
(a.firstEffect = null),
(a.lastEffect = null),
(a.memoizedProps = null),
(a.memoizedState = null),
(a.pendingProps = null),
(a.return = null),
(a.updateQueue = null);
}
function ej(
a
) {
return 5 === a.tag || 3 === a.tag || 4 === a.tag;
}
function fj(
a
) {
a: {
for (var b = a.return; null !== b; ) {
if (ej(
b
)) break a;
b = b.return;
}
throw Error(
y(
160
)
);
}
var c = b;
switch (((b = c.stateNode), c.tag)) {
case 5:
var d = !1;
break;
case 3:
case 4:
(b = b.containerInfo), (d = !0);
break;
default:
throw Error(
y(
161
)
);
}
16 & c.flags && (pb(
b,
""
), (c.flags &= -17));
a: b: for (c = a; ; ) {
for (; null === c.sibling; ) {
if (null === c.return || ej(
c.return
)) {
c = null;
break a;
}
c = c.return;
}
for (
c.sibling.return = c.return, c = c.sibling;
5 !== c.tag && 6 !== c.tag && 18 !== c.tag;
) {
if (2 & c.flags) continue b;
if (null === c.child || 4 === c.tag) continue b;
(c.child.return = c), (c = c.child);
}
if (!(2 & c.flags)) {
c = c.stateNode;
break a;
}
}
d
? gj(
a,
c,
b
)
: hj(
a,
c,
b
);
}
function gj(
a, b, c
) {
var d = a.tag,
e = 5 === d || 6 === d;
if (e)
(a = e ? a.stateNode : a.stateNode.instance),
b
? 8 === c.nodeType
? c.parentNode.insertBefore(
a,
b
)
: c.insertBefore(
a,
b
)
: (8 === c.nodeType
? (b = c.parentNode).insertBefore(
a,
c
)
: (b = c).appendChild(
a
),
null != (c = c._reactRootContainer) ||
null !== b.onclick ||
(b.onclick = jf));
else if (4 !== d && null !== (a = a.child))
for (gj(
a,
b,
c
), a = a.sibling; null !== a; )
gj(
a,
b,
c
), (a = a.sibling);
}
function hj(
a, b, c
) {
var d = a.tag,
e = 5 === d || 6 === d;
if (e)
(a = e ? a.stateNode : a.stateNode.instance),
b
? c.insertBefore(
a,
b
)
: c.appendChild(
a
);
else if (4 !== d && null !== (a = a.child))
for (hj(
a,
b,
c
), a = a.sibling; null !== a; )
hj(
a,
b,
c
), (a = a.sibling);
}
function cj(
a, b
) {
for (var e, f, c = b, d = !1; ; ) {
if (!d) {
d = c.return;
a: for (;;) {
if (null === d) throw Error(
y(
160
)
);
switch (((e = d.stateNode), d.tag)) {
case 5:
f = !1;
break a;
case 3:
case 4:
(e = e.containerInfo), (f = !0);
break a;
}
d = d.return;
}
d = !0;
}
if (5 === c.tag || 6 === c.tag) {
a: for (var g = a, h = c, k = h; ; )
if ((bj(
g,
k
), null !== k.child && 4 !== k.tag))
(k.child.return = k), (k = k.child);
else {
if (k === h) break a;
for (; null === k.sibling; ) {
if (null === k.return || k.return === h)
break a;
k = k.return;
}
(k.sibling.return = k.return), (k = k.sibling);
}
f
? ((g = e),
(h = c.stateNode),
8 === g.nodeType
? g.parentNode.removeChild(
h
)
: g.removeChild(
h
))
: e.removeChild(
c.stateNode
);
} else if (4 === c.tag) {
if (null !== c.child) {
(e = c.stateNode.containerInfo),
(f = !0),
(c.child.return = c),
(c = c.child);
continue;
}
} else if ((bj(
a,
c
), null !== c.child)) {
(c.child.return = c), (c = c.child);
continue;
}
if (c === b) break;
for (; null === c.sibling; ) {
if (null === c.return || c.return === b) return;
4 === (c = c.return).tag && (d = !1);
}
(c.sibling.return = c.return), (c = c.sibling);
}
}
function ij(
a, b
) {
switch (b.tag) {
case 0:
case 11:
case 14:
case 15:
case 22:
var c = b.updateQueue;
if (null !== (c = null !== c ? c.lastEffect : null)) {
var d = (c = c.next);
do {
3 == (3 & d.tag) &&
((a = d.destroy),
(d.destroy = void 0),
void 0 !== a && a(
)),
(d = d.next);
} while (d !== c);
}
return;
case 1:
return;
case 5:
if (null != (c = b.stateNode)) {
d = b.memoizedProps;
var e = null !== a ? a.memoizedProps : d;
a = b.type;
var f = b.updateQueue;
if (((b.updateQueue = null), null !== f)) {
for (
c[xf] = d,
"input" === a &&
"radio" === d.type &&
null != d.name &&
$a(
c,
d
),
wb(
a,
e
),
b = wb(
a,
d
),
e = 0;
e < f.length;
e += 2
) {
var g = f[e],
h = f[e + 1];
"style" === g
? tb(
c,
h
)
: "dangerouslySetInnerHTML" === g
? ob(
c,
h
)
: "children" === g
? pb(
c,
h
)
: qa(
c,
g,
h,
b
);
}
switch (a) {
case "input":
ab(
c,
d
);
break;
case "textarea":
ib(
c,
d
);
break;
case "select":
(a = c._wrapperState.wasMultiple),
(c._wrapperState.wasMultiple =
!!d.multiple),
null != (f = d.value)
? fb(
c,
!!d.multiple,
f,
!1
)
: a !== !!d.multiple &&
(null != d.defaultValue
? fb(
c,
!!d.multiple,
d.defaultValue,
!0
)
: fb(
c,
!!d.multiple,
d.multiple
? []
: "",
!1
));
}
}
}
return;
case 6:
if (null === b.stateNode) throw Error(
y(
162
)
);
return void (b.stateNode.nodeValue = b.memoizedProps);
case 3:
return void (
(c = b.stateNode).hydrate &&
((c.hydrate = !1), Cc(
c.containerInfo
))
);
case 12:
return;
case 13:
return (
null !== b.memoizedState &&
((jj = O(
)), aj(
b.child,
!0
)),
void kj(
b
)
);
case 19:
return void kj(
b
);
case 17:
return;
case 23:
case 24:
return void aj(
b,
null !== b.memoizedState
);
}
throw Error(
y(
163
)
);
}
function kj(
a
) {
var b = a.updateQueue;
if (null !== b) {
a.updateQueue = null;
var c = a.stateNode;
null === c && (c = a.stateNode = new Ui(
)),
b.forEach(
function (
b
) {
var d = lj.bind(
null,
a,
b
);
c.has(
b
) || (c.add(
b
), b.then(
d,
d
));
}
);
}
}
function mj(
a, b
) {
return (
null !== a &&
(null === (a = a.memoizedState) || null !== a.dehydrated) &&
null !== (b = b.memoizedState) &&
null === b.dehydrated
);
}
var nj = Math.ceil,
oj = ra.ReactCurrentDispatcher,
pj = ra.ReactCurrentOwner,
X = 0,
U = null,
Y = null,
W = 0,
qj = 0,
rj = Bf(
0
),
V = 0,
sj = null,
tj = 0,
Dg = 0,
Hi = 0,
uj = 0,
vj = null,
jj = 0,
Ji = 1 / 0;
function wj(
) {
Ji = O(
) + 500;
}
var ck,
Z = null,
Qi = !1,
Ri = null,
Ti = null,
xj = !1,
yj = null,
zj = 90,
Aj = [],
Bj = [],
Cj = null,
Dj = 0,
Ej = null,
Fj = -1,
Gj = 0,
Hj = 0,
Ij = null,
Jj = !1;
function Hg(
) {
return 0 != (48 & X)
? O(
)
: -1 !== Fj
? Fj
: (Fj = O(
));
}
function Ig(
a
) {
if (0 == (2 & (a = a.mode))) return 1;
if (0 == (4 & a)) return 99 === eg(
)
? 1
: 2;
if ((0 === Gj && (Gj = tj), 0 !== kg.transition)) {
0 !== Hj && (Hj = null !== vj ? vj.pendingLanes : 0),
(a = Gj);
var b = 4186112 & ~Hj;
return (
0 === (b &= -b) &&
0 === (b = (a = 4186112 & ~a) & -a) &&
(b = 8192),
b
);
}
return (
(a = eg(
)),
0 != (4 & X) && 98 === a
? (a = Xc(
12,
Gj
))
: (a = Xc(
(a = (function (
a
) {
switch (a) {
case 99:
return 15;
case 98:
return 10;
case 97:
case 96:
return 8;
case 95:
return 2;
default:
return 0;
}
})(
a
)),
Gj
)),
a
);
}
function Jg(
a, b, c
) {
if (50 < Dj) throw ((Dj = 0), (Ej = null), Error(
y(
185
)
));
if (null === (a = Kj(
a,
b
))) return null;
$c(
a,
b,
c
), a === U && ((Hi |= b), 4 === V && Ii(
a,
W
));
var d = eg(
);
1 === b
? 0 != (8 & X) && 0 == (48 & X)
? Lj(
a
)
: (Mj(
a,
c
), 0 === X && (wj(
), ig(
)))
: (0 == (4 & X) ||
(98 !== d && 99 !== d) ||
(null === Cj
? (Cj = new Set(
[a,]
))
: Cj.add(
a
)),
Mj(
a,
c
)),
(vj = a);
}
function Kj(
a, b
) {
a.lanes |= b;
var c = a.alternate;
for (
null !== c && (c.lanes |= b), c = a, a = a.return;
null !== a;
)
(a.childLanes |= b),
null !== (c = a.alternate) && (c.childLanes |= b),
(c = a),
(a = a.return);
return 3 === c.tag ? c.stateNode : null;
}
function Mj(
a, b
) {
for (
var c = a.callbackNode,
d = a.suspendedLanes,
e = a.pingedLanes,
f = a.expirationTimes,
g = a.pendingLanes;
0 < g;
) {
var h = 31 - Vc(
g
),
k = 1 << h,
l = f[h];
if (-1 === l) {
if (0 == (k & d) || 0 != (k & e)) {
(l = b), Rc(
k
);
var n = F;
f[h] = 10 <= n ? l + 250 : 6 <= n ? l + 5e3 : -1;
}
} else l <= b && (a.expiredLanes |= k);
g &= ~k;
}
if (((d = Uc(
a,
a === U ? W : 0
)), (b = F), 0 === d))
null !== c &&
(c !== Zf && Pf(
c
),
(a.callbackNode = null),
(a.callbackPriority = 0));
else {
if (null !== c) {
if (a.callbackPriority === b) return;
c !== Zf && Pf(
c
);
}
15 === b
? ((c = Lj.bind(
null,
a
)),
null === ag
? ((ag = [c,]), (bg = Of(
Uf,
jg
)))
: ag.push(
c
),
(c = Zf))
: 14 === b
? (c = hg(
99,
Lj.bind(
null,
a
)
))
: (c = hg(
(c = (function (
a
) {
switch (a) {
case 15:
case 14:
return 99;
case 13:
case 12:
case 11:
case 10:
return 98;
case 9:
case 8:
case 7:
case 6:
case 4:
case 5:
return 97;
case 3:
case 2:
case 1:
return 95;
case 0:
return 90;
default:
throw Error(
y(
358,
a
)
);
}
})(
b
)),
Nj.bind(
null,
a
)
)),
(a.callbackPriority = b),
(a.callbackNode = c);
}
}
function Nj(
a
) {
if (((Fj = -1), (Hj = Gj = 0), 0 != (48 & X)))
throw Error(
y(
327
)
);
var b = a.callbackNode;
if (Oj(
) && a.callbackNode !== b) return null;
var c = Uc(
a,
a === U ? W : 0
);
if (0 === c) return null;
var d = c,
e = X;
X |= 16;
var f = Pj(
);
for ((U === a && W === d) || (wj(
), Qj(
a,
d
)); ; )
try {
Rj(
);
break;
} catch (h) {
Sj(
a,
h
);
}
if (
(qg(
),
(oj.current = f),
(X = e),
null !== Y ? (d = 0) : ((U = null), (W = 0), (d = V)),
0 != (tj & Hi))
)
Qj(
a,
0
);
else if (0 !== d) {
if (
(2 === d &&
((X |= 64),
a.hydrate &&
((a.hydrate = !1), qf(
a.containerInfo
)),
0 !== (c = Wc(
a
)) && (d = Tj(
a,
c
))),
1 === d)
)
throw ((b = sj), Qj(
a,
0
), Ii(
a,
c
), Mj(
a,
O(
)
), b);
switch (
((a.finishedWork = a.current.alternate),
(a.finishedLanes = c),
d)
) {
case 0:
case 1:
throw Error(
y(
345
)
);
case 2:
Uj(
a
);
break;
case 3:
if (
(Ii(
a,
c
),
(62914560 & c) === c &&
10 < (d = jj + 500 - O(
)))
) {
if (0 !== Uc(
a,
0
)) break;
if (((e = a.suspendedLanes) & c) !== c) {
Hg(
),
(a.pingedLanes |= a.suspendedLanes & e);
break;
}
a.timeoutHandle = of(
Uj.bind(
null,
a
),
d
);
break;
}
Uj(
a
);
break;
case 4:
if ((Ii(
a,
c
), (4186112 & c) === c)) break;
for (d = a.eventTimes, e = -1; 0 < c; ) {
var g = 31 - Vc(
c
);
(f = 1 << g),
(g = d[g]) > e && (e = g),
(c &= ~f);
}
if (
((c = e),
10 <
(c =
(120 > (c = O(
) - c)
? 120
: 480 > c
? 480
: 1080 > c
? 1080
: 1920 > c
? 1920
: 3e3 > c
? 3e3
: 4320 > c
? 4320
: 1960 * nj(
c / 1960
)) - c))
) {
a.timeoutHandle = of(
Uj.bind(
null,
a
),
c
);
break;
}
Uj(
a
);
break;
case 5:
Uj(
a
);
break;
default:
throw Error(
y(
329
)
);
}
}
return (
Mj(
a,
O(
)
), a.callbackNode === b
? Nj.bind(
null,
a
)
: null
);
}
function Ii(
a, b
) {
for (
b &= ~uj,
b &= ~Hi,
a.suspendedLanes |= b,
a.pingedLanes &= ~b,
a = a.expirationTimes;
0 < b;
) {
var c = 31 - Vc(
b
),
d = 1 << c;
(a[c] = -1), (b &= ~d);
}
}
function Lj(
a
) {
if (0 != (48 & X)) throw Error(
y(
327
)
);
if ((Oj(
), a === U && 0 != (a.expiredLanes & W))) {
var b = W,
c = Tj(
a,
b
);
0 != (tj & Hi) && (c = Tj(
a, (
b = Uc(
a,
b
))
));
} else c = Tj(
a, (
b = Uc(
a,
0
))
);
if (
(0 !== a.tag &&
2 === c &&
((X |= 64),
a.hydrate && ((a.hydrate = !1), qf(
a.containerInfo
)),
0 !== (b = Wc(
a
)) && (c = Tj(
a,
b
))),
1 === c)
)
throw ((c = sj), Qj(
a,
0
), Ii(
a,
b
), Mj(
a,
O(
)
), c);
return (
(a.finishedWork = a.current.alternate),
(a.finishedLanes = b),
Uj(
a
),
Mj(
a,
O(
)
),
null
);
}
function Wj(
a, b
) {
var c = X;
X |= 1;
try {
return a(
b
);
} finally {
0 === (X = c) && (wj(
), ig(
));
}
}
function Xj(
a, b
) {
var c = X;
(X &= -2), (X |= 8);
try {
return a(
b
);
} finally {
0 === (X = c) && (wj(
), ig(
));
}
}
function ni(
a, b
) {
I(
rj,
qj
), (qj |= b), (tj |= b);
}
function Ki(
) {
(qj = rj.current), H(
rj
);
}
function Qj(
a, b
) {
(a.finishedWork = null), (a.finishedLanes = 0);
var c = a.timeoutHandle;
if ((-1 !== c && ((a.timeoutHandle = -1), pf(
c
)), null !== Y))
for (c = Y.return; null !== c; ) {
var d = c;
switch (d.tag) {
case 1:
null != (d = d.type.childContextTypes) && Gf(
);
break;
case 3:
fh(
), H(
N
), H(
M
), uh(
);
break;
case 5:
hh(
d
);
break;
case 4:
fh(
);
break;
case 13:
case 19:
H(
P
);
break;
case 10:
rg(
d
);
break;
case 23:
case 24:
Ki(
);
}
c = c.return;
}
(U = a),
(Y = Tg(
a.current,
null
)),
(W = qj = tj = b),
(V = 0),
(sj = null),
(uj = Hi = Dg = 0);
}
function Sj(
a, b
) {
for (;;) {
var c = Y;
try {
if ((qg(
), (vh.current = Gh), yh)) {
for (var d = R.memoizedState; null !== d; ) {
var e = d.queue;
null !== e && (e.pending = null), (d = d.next);
}
yh = !1;
}
if (
((xh = 0),
(T = S = R = null),
(zh = !1),
(pj.current = null),
null === c || null === c.return)
) {
(V = 1), (sj = b), (Y = null);
break;
}
a: {
var f = a,
g = c.return,
h = c,
k = b;
if (
((b = W),
(h.flags |= 2048),
(h.firstEffect = h.lastEffect = null),
null !== k &&
"object" == typeof k &&
"function" == typeof k.then)
) {
var l = k;
if (0 == (2 & h.mode)) {
var n = h.alternate;
n
? ((h.updateQueue = n.updateQueue),
(h.memoizedState = n.memoizedState),
(h.lanes = n.lanes))
: ((h.updateQueue = null),
(h.memoizedState = null));
}
var A = 0 != (1 & P.current),
p = g;
do {
var C;
if ((C = 13 === p.tag)) {
var x = p.memoizedState;
if (null !== x)
C = null !== x.dehydrated;
else {
var w = p.memoizedProps;
C =
void 0 !== w.fallback &&
(!0 !==
w.unstable_avoidThisFallback ||
!A);
}
}
if (C) {
var z = p.updateQueue;
if (null === z) {
var u = new Set(
);
u.add(
l
), (p.updateQueue = u);
} else z.add(
l
);
if (0 == (2 & p.mode)) {
if (
((p.flags |= 64),
(h.flags |= 16384),
(h.flags &= -2981),
1 === h.tag)
)
if (null === h.alternate)
h.tag = 17;
else {
var t = zg(
-1,
1
);
(t.tag = 2), Ag(
h,
t
);
}
h.lanes |= 1;
break a;
}
(k = void 0), (h = b);
var q = f.pingCache;
if (
(null === q
? ((q = f.pingCache = new Oi(
)),
(k = new Set(
)),
q.set(
l,
k
))
: void 0 === (k = q.get(
l
)) &&
((k = new Set(
)),
q.set(
l,
k
)),
!k.has(
h
))
) {
k.add(
h
);
var v = Yj.bind(
null,
f,
l,
h
);
l.then(
v,
v
);
}
(p.flags |= 4096), (p.lanes = b);
break a;
}
p = p.return;
} while (null !== p);
k = Error(
(Ra(
h.type
) || "A React component") +
" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display."
);
}
5 !== V && (V = 2), (k = Mi(
k,
h
)), (p = g);
do {
switch (p.tag) {
case 3:
(f = k),
(p.flags |= 4096),
(b &= -b),
(p.lanes |= b),
Bg(
p,
Pi(
0,
f,
b
)
);
break a;
case 1:
f = k;
var K = p.type,
Q = p.stateNode;
if (
0 == (64 & p.flags) &&
("function" ==
typeof K.getDerivedStateFromError ||
(null !== Q &&
"function" ==
typeof Q.componentDidCatch &&
(null === Ti ||
!Ti.has(
Q
))))
) {
(p.flags |= 4096),
(b &= -b),
(p.lanes |= b),
Bg(
p,
Si(
p,
f,
b
)
);
break a;
}
}
p = p.return;
} while (null !== p);
}
Zj(
c
);
} catch (va) {
(b = va), Y === c && null !== c && (Y = c = c.return);
continue;
}
break;
}
}
function Pj(
) {
var a = oj.current;
return (oj.current = Gh), null === a ? Gh : a;
}
function Tj(
a, b
) {
var c = X;
X |= 16;
var d = Pj(
);
for ((U === a && W === b) || Qj(
a,
b
); ; )
try {
ak(
);
break;
} catch (e) {
Sj(
a,
e
);
}
if ((qg(
), (X = c), (oj.current = d), null !== Y))
throw Error(
y(
261
)
);
return (U = null), (W = 0), V;
}
function ak(
) {
for (; null !== Y; ) bk(
Y
);
}
function Rj(
) {
for (; null !== Y && !Qf(
); ) bk(
Y
);
}
function bk(
a
) {
var b = ck(
a.alternate,
a,
qj
);
(a.memoizedProps = a.pendingProps),
null === b
? Zj(
a
)
: (Y = b),
(pj.current = null);
}
function Zj(
a
) {
var b = a;
do {
var c = b.alternate;
if (((a = b.return), 0 == (2048 & b.flags))) {
if (null !== (c = Gi(
c,
b,
qj
))) return void (Y = c);
if (
(24 !== (c = b).tag && 23 !== c.tag) ||
null === c.memoizedState ||
0 != (1073741824 & qj) ||
0 == (4 & c.mode)
) {
for (var d = 0, e = c.child; null !== e; )
(d |= e.lanes | e.childLanes), (e = e.sibling);
c.childLanes = d;
}
null !== a &&
0 == (2048 & a.flags) &&
(null === a.firstEffect &&
(a.firstEffect = b.firstEffect),
null !== b.lastEffect &&
(null !== a.lastEffect &&
(a.lastEffect.nextEffect = b.firstEffect),
(a.lastEffect = b.lastEffect)),
1 < b.flags &&
(null !== a.lastEffect
? (a.lastEffect.nextEffect = b)
: (a.firstEffect = b),
(a.lastEffect = b)));
} else {
if (null !== (c = Li(
b
)))
return (c.flags &= 2047), void (Y = c);
null !== a &&
((a.firstEffect = a.lastEffect = null),
(a.flags |= 2048));
}
if (null !== (b = b.sibling)) return void (Y = b);
Y = b = a;
} while (null !== b);
0 === V && (V = 5);
}
function Uj(
a
) {
var b = eg(
);
return gg(
99,
dk.bind(
null,
a,
b
)
), null;
}
function dk(
a, b
) {
do {
Oj(
);
} while (null !== yj);
if (0 != (48 & X)) throw Error(
y(
327
)
);
var c = a.finishedWork;
if (null === c) return null;
if (
((a.finishedWork = null),
(a.finishedLanes = 0),
c === a.current)
)
throw Error(
y(
177
)
);
a.callbackNode = null;
var d = c.lanes | c.childLanes,
e = d,
f = a.pendingLanes & ~e;
(a.pendingLanes = e),
(a.suspendedLanes = 0),
(a.pingedLanes = 0),
(a.expiredLanes &= e),
(a.mutableReadLanes &= e),
(a.entangledLanes &= e),
(e = a.entanglements);
for (var g = a.eventTimes, h = a.expirationTimes; 0 < f; ) {
var k = 31 - Vc(
f
),
l = 1 << k;
(e[k] = 0), (g[k] = -1), (h[k] = -1), (f &= ~l);
}
if (
(null !== Cj && 0 == (24 & d) && Cj.has(
a
) && Cj.delete(
a
),
a === U && ((Y = U = null), (W = 0)),
1 < c.flags
? null !== c.lastEffect
? ((c.lastEffect.nextEffect = c),
(d = c.firstEffect))
: (d = c)
: (d = c.firstEffect),
null !== d)
) {
if (
((e = X),
(X |= 32),
(pj.current = null),
(kf = fd),
Oe(
(g = Ne(
))
))
) {
if ("selectionStart" in g)
h = {
start: g.selectionStart,
end: g.selectionEnd,
};
else
a: if (
((h =
((h = g.ownerDocument) && h.defaultView) ||
window),
(l = h.getSelection && h.getSelection(
)) &&
0 !== l.rangeCount)
) {
(h = l.anchorNode),
(f = l.anchorOffset),
(k = l.focusNode),
(l = l.focusOffset);
try {
h.nodeType, k.nodeType;
} catch (va) {
h = null;
break a;
}
var n = 0,
A = -1,
p = -1,
C = 0,
x = 0,
w = g,
z = null;
b: for (;;) {
for (
var u;
w !== h ||
(0 !== f && 3 !== w.nodeType) ||
(A = n + f),
w !== k ||
(0 !== l && 3 !== w.nodeType) ||
(p = n + l),
3 === w.nodeType &&
(n += w.nodeValue.length),
null !== (u = w.firstChild);
)
(z = w), (w = u);
for (;;) {
if (w === g) break b;
if (
(z === h && ++C === f && (A = n),
z === k && ++x === l && (p = n),
null !== (u = w.nextSibling))
)
break;
z = (w = z).parentNode;
}
w = u;
}
h =
-1 === A || -1 === p
? null
: {
start: A,
end: p,
};
} else h = null;
h = h || {
start: 0,
end: 0,
};
} else h = null;
(lf = {
focusedElem: g,
selectionRange: h,
}),
(fd = !1),
(Ij = null),
(Jj = !1),
(Z = d);
do {
try {
ek(
);
} catch (va) {
if (null === Z) throw Error(
y(
330
)
);
Wi(
Z,
va
), (Z = Z.nextEffect);
}
} while (null !== Z);
(Ij = null), (Z = d);
do {
try {
for (g = a; null !== Z; ) {
var t = Z.flags;
if ((16 & t && pb(
Z.stateNode,
""
), 128 & t)) {
var q = Z.alternate;
if (null !== q) {
var v = q.ref;
null !== v &&
("function" == typeof v
? v(
null
)
: (v.current = null));
}
}
switch (1038 & t) {
case 2:
fj(
Z
), (Z.flags &= -3);
break;
case 6:
fj(
Z
),
(Z.flags &= -3),
ij(
Z.alternate,
Z
);
break;
case 1024:
Z.flags &= -1025;
break;
case 1028:
(Z.flags &= -1025), ij(
Z.alternate,
Z
);
break;
case 4:
ij(
Z.alternate,
Z
);
break;
case 8:
cj(
g, (
h = Z)
);
var J = h.alternate;
dj(
h
), null !== J && dj(
J
);
}
Z = Z.nextEffect;
}
} catch (va) {
if (null === Z) throw Error(
y(
330
)
);
Wi(
Z,
va
), (Z = Z.nextEffect);
}
} while (null !== Z);
if (
((v = lf),
(q = Ne(
)),
(t = v.focusedElem),
(g = v.selectionRange),
q !== t &&
t &&
t.ownerDocument &&
Me(
t.ownerDocument.documentElement,
t
))
) {
null !== g &&
Oe(
t
) &&
((q = g.start),
void 0 === (v = g.end) && (v = q),
"selectionStart" in t
? ((t.selectionStart = q),
(t.selectionEnd = Math.min(
v,
t.value.length
)))
: (v =
((q = t.ownerDocument || document) &&
q.defaultView) ||
window).getSelection &&
((v = v.getSelection(
)),
(h = t.textContent.length),
(J = Math.min(
g.start,
h
)),
(g =
void 0 === g.end
? J
: Math.min(
g.end,
h
)),
!v.extend &&
J > g &&
((h = g), (g = J), (J = h)),
(h = Le(
t,
J
)),
(f = Le(
t,
g
)),
h &&
f &&
(1 !== v.rangeCount ||
v.anchorNode !== h.node ||
v.anchorOffset !== h.offset ||
v.focusNode !== f.node ||
v.focusOffset !== f.offset) &&
((q = q.createRange(
)).setStart(
h.node,
h.offset
),
v.removeAllRanges(
),
J > g
? (v.addRange(
q
),
v.extend(
f.node,
f.offset
))
: (q.setEnd(
f.node,
f.offset
),
v.addRange(
q
))))),
(q = []);
for (v = t; (v = v.parentNode); )
1 === v.nodeType &&
q.push(
{
element: v,
left: v.scrollLeft,
top: v.scrollTop,
}
);
for (
"function" == typeof t.focus && t.focus(
), t = 0;
t < q.length;
t++
)
((v = q[t]).element.scrollLeft = v.left),
(v.element.scrollTop = v.top);
}
(fd = !!kf), (lf = kf = null), (a.current = c), (Z = d);
do {
try {
for (t = a; null !== Z; ) {
var K = Z.flags;
if (
(36 & K && Yi(
t,
Z.alternate,
Z
), 128 & K)
) {
q = void 0;
var Q = Z.ref;
if (null !== Q) {
var L = Z.stateNode;
switch (Z.tag) {
case 5:
q = L;
break;
default:
q = L;
}
"function" == typeof Q
? Q(
q
)
: (Q.current = q);
}
}
Z = Z.nextEffect;
}
} catch (va) {
if (null === Z) throw Error(
y(
330
)
);
Wi(
Z,
va
), (Z = Z.nextEffect);
}
} while (null !== Z);
(Z = null), $f(
), (X = e);
} else a.current = c;
if (xj) (xj = !1), (yj = a), (zj = b);
else
for (Z = d; null !== Z; )
(b = Z.nextEffect),
(Z.nextEffect = null),
8 & Z.flags &&
(((K = Z).sibling = null),
(K.stateNode = null)),
(Z = b);
if (
(0 === (d = a.pendingLanes) && (Ti = null),
1 === d
? a === Ej
? Dj++
: ((Dj = 0), (Ej = a))
: (Dj = 0),
(c = c.stateNode),
Mf && "function" == typeof Mf.onCommitFiberRoot)
)
try {
Mf.onCommitFiberRoot(
Lf,
c,
void 0,
64 == (64 & c.current.flags)
);
} catch (va) {}
if ((Mj(
a,
O(
)
), Qi))
throw ((Qi = !1), (a = Ri), (Ri = null), a);
return 0 != (8 & X) || ig(
), null;
}
function ek(
) {
for (; null !== Z; ) {
var a = Z.alternate;
Jj ||
null === Ij ||
(0 != (8 & Z.flags)
? dc(
Z,
Ij
) && (Jj = !0)
: 13 === Z.tag &&
mj(
a,
Z
) &&
dc(
Z,
Ij
) &&
(Jj = !0));
var b = Z.flags;
0 != (256 & b) && Xi(
a,
Z
),
0 == (512 & b) ||
xj ||
((xj = !0),
hg(
97,
function (
) {
return Oj(
), null;
}
)),
(Z = Z.nextEffect);
}
}
function Oj(
) {
if (90 !== zj) {
var a = 97 < zj ? 97 : zj;
return (zj = 90), gg(
a,
fk
);
}
return !1;
}
function $i(
a, b
) {
Aj.push(
b,
a
),
xj ||
((xj = !0),
hg(
97,
function (
) {
return Oj(
), null;
}
));
}
function Zi(
a, b
) {
Bj.push(
b,
a
),
xj ||
((xj = !0),
hg(
97,
function (
) {
return Oj(
), null;
}
));
}
function fk(
) {
if (null === yj) return !1;
var a = yj;
if (((yj = null), 0 != (48 & X))) throw Error(
y(
331
)
);
var b = X;
X |= 32;
var c = Bj;
Bj = [];
for (var d = 0; d < c.length; d += 2) {
var e = c[d],
f = c[d + 1],
g = e.destroy;
if (((e.destroy = void 0), "function" == typeof g))
try {
g(
);
} catch (k) {
if (null === f) throw Error(
y(
330
)
);
Wi(
f,
k
);
}
}
for (c = Aj, Aj = [], d = 0; d < c.length; d += 2) {
(e = c[d]), (f = c[d + 1]);
try {
var h = e.create;
e.destroy = h(
);
} catch (k) {
if (null === f) throw Error(
y(
330
)
);
Wi(
f,
k
);
}
}
for (h = a.current.firstEffect; null !== h; )
(a = h.nextEffect),
(h.nextEffect = null),
8 & h.flags &&
((h.sibling = null), (h.stateNode = null)),
(h = a);
return (X = b), ig(
), !0;
}
function gk(
a, b, c
) {
Ag(
a, (
b = Pi(
0, (
b = Mi(
c,
b
)),
1
))
),
(b = Hg(
)),
null !== (a = Kj(
a,
1
)) && ($c(
a,
1,
b
), Mj(
a,
b
));
}
function Wi(
a, b
) {
if (3 === a.tag) gk(
a,
a,
b
);
else
for (var c = a.return; null !== c; ) {
if (3 === c.tag) {
gk(
c,
a,
b
);
break;
}
if (1 === c.tag) {
var d = c.stateNode;
if (
"function" ==
typeof c.type.getDerivedStateFromError ||
("function" == typeof d.componentDidCatch &&
(null === Ti || !Ti.has(
d
)))
) {
var e = Si(
c, (
a = Mi(
b,
a
)),
1
);
if (
(Ag(
c,
e
),
(e = Hg(
)),
null !== (c = Kj(
c,
1
)))
)
$c(
c,
1,
e
), Mj(
c,
e
);
else if (
"function" == typeof d.componentDidCatch &&
(null === Ti || !Ti.has(
d
))
)
try {
d.componentDidCatch(
b,
a
);
} catch (f) {}
break;
}
}
c = c.return;
}
}
function Yj(
a, b, c
) {
var d = a.pingCache;
null !== d && d.delete(
b
),
(b = Hg(
)),
(a.pingedLanes |= a.suspendedLanes & c),
U === a &&
(W & c) === c &&
(4 === V ||
(3 === V && (62914560 & W) === W && 500 > O(
) - jj)
? Qj(
a,
0
)
: (uj |= c)),
Mj(
a,
b
);
}
function lj(
a, b
) {
var c = a.stateNode;
null !== c && c.delete(
b
),
0 === (b = 0) &&
(0 == (2 & (b = a.mode))
? (b = 1)
: 0 == (4 & b)
? (b = 99 === eg(
)
? 1
: 2)
: (0 === Gj && (Gj = tj),
0 === (b = Yc(
62914560 & ~Gj
)) && (b = 4194304))),
(c = Hg(
)),
null !== (a = Kj(
a,
b
)) && ($c(
a,
b,
c
), Mj(
a,
c
));
}
function ik(
a, b, c, d
) {
(this.tag = a),
(this.key = c),
(this.sibling =
this.child =
this.return =
this.stateNode =
this.type =
this.elementType =
null),
(this.index = 0),
(this.ref = null),
(this.pendingProps = b),
(this.dependencies =
this.memoizedState =
this.updateQueue =
this.memoizedProps =
null),
(this.mode = d),
(this.flags = 0),
(this.lastEffect =
this.firstEffect =
this.nextEffect =
null),
(this.childLanes = this.lanes = 0),
(this.alternate = null);
}
function nh(
a, b, c, d
) {
return new ik(
a,
b,
c,
d
);
}
function ji(
a
) {
return !(!(a = a.prototype) || !a.isReactComponent);
}
function Tg(
a, b
) {
var c = a.alternate;
return (
null === c
? (((c = nh(
a.tag,
b,
a.key,
a.mode
)).elementType =
a.elementType),
(c.type = a.type),
(c.stateNode = a.stateNode),
(c.alternate = a),
(a.alternate = c))
: ((c.pendingProps = b),
(c.type = a.type),
(c.flags = 0),
(c.nextEffect = null),
(c.firstEffect = null),
(c.lastEffect = null)),
(c.childLanes = a.childLanes),
(c.lanes = a.lanes),
(c.child = a.child),
(c.memoizedProps = a.memoizedProps),
(c.memoizedState = a.memoizedState),
(c.updateQueue = a.updateQueue),
(b = a.dependencies),
(c.dependencies =
null === b
? null
: {
lanes: b.lanes,
firstContext: b.firstContext,
}),
(c.sibling = a.sibling),
(c.index = a.index),
(c.ref = a.ref),
c
);
}
function Vg(
a, b, c, d, e, f
) {
var g = 2;
if (((d = a), "function" == typeof a)) ji(
a
) && (g = 1);
else if ("string" == typeof a) g = 5;
else
a: switch (a) {
case ua:
return Xg(
c.children,
e,
f,
b
);
case Ha:
(g = 8), (e |= 16);
break;
case wa:
(g = 8), (e |= 1);
break;
case xa:
return (
((a = nh(
12,
c,
b,
8 | e
)).elementType = xa),
(a.type = xa),
(a.lanes = f),
a
);
case Ba:
return (
((a = nh(
13,
c,
b,
e
)).type = Ba),
(a.elementType = Ba),
(a.lanes = f),
a
);
case Ca:
return (
((a = nh(
19,
c,
b,
e
)).elementType = Ca),
(a.lanes = f),
a
);
case Ia:
return vi(
c,
e,
f,
b
);
case Ja:
return (
((a = nh(
24,
c,
b,
e
)).elementType = Ja),
(a.lanes = f),
a
);
default:
if ("object" == typeof a && null !== a)
switch (a.$$typeof) {
case ya:
g = 10;
break a;
case za:
g = 9;
break a;
case Aa:
g = 11;
break a;
case Da:
g = 14;
break a;
case Ea:
(g = 16), (d = null);
break a;
case Fa:
g = 22;
break a;
}
throw Error(
y(
130,
null == a ? a : typeof a,
""
)
);
}
return (
((b = nh(
g,
c,
b,
e
)).elementType = a),
(b.type = d),
(b.lanes = f),
b
);
}
function Xg(
a, b, c, d
) {
return ((a = nh(
7,
a,
d,
b
)).lanes = c), a;
}
function vi(
a, b, c, d
) {
return (
((a = nh(
23,
a,
d,
b
)).elementType = Ia), (a.lanes = c), a
);
}
function Ug(
a, b, c
) {
return ((a = nh(
6,
a,
null,
b
)).lanes = c), a;
}
function Wg(
a, b, c
) {
return (
((b = nh(
4,
null !== a.children ? a.children : [],
a.key,
b
)).lanes = c),
(b.stateNode = {
containerInfo: a.containerInfo,
pendingChildren: null,
implementation: a.implementation,
}),
b
);
}
function jk(
a, b, c
) {
(this.tag = b),
(this.containerInfo = a),
(this.finishedWork =
this.pingCache =
this.current =
this.pendingChildren =
null),
(this.timeoutHandle = -1),
(this.pendingContext = this.context = null),
(this.hydrate = c),
(this.callbackNode = null),
(this.callbackPriority = 0),
(this.eventTimes = Zc(
0
)),
(this.expirationTimes = Zc(
-1
)),
(this.entangledLanes =
this.finishedLanes =
this.mutableReadLanes =
this.expiredLanes =
this.pingedLanes =
this.suspendedLanes =
this.pendingLanes =
0),
(this.entanglements = Zc(
0
)),
(this.mutableSourceEagerHydrationData = null);
}
function kk(
a, b, c
) {
var d =
3 < arguments.length && void 0 !== arguments[3]
? arguments[3]
: null;
return {
$$typeof: ta,
key: null == d ? null : "" + d,
children: a,
containerInfo: b,
implementation: c,
};
}
function lk(
a, b, c, d
) {
var e = b.current,
f = Hg(
),
g = Ig(
e
);
a: if (c) {
b: {
if (Zb(
(c = c._reactInternals)
) !== c || 1 !== c.tag)
throw Error(
y(
170
)
);
var h = c;
do {
switch (h.tag) {
case 3:
h = h.stateNode.context;
break b;
case 1:
if (Ff(
h.type
)) {
h =
h.stateNode
.__reactInternalMemoizedMergedChildContext;
break b;
}
}
h = h.return;
} while (null !== h);
throw Error(
y(
171
)
);
}
if (1 === c.tag) {
var k = c.type;
if (Ff(
k
)) {
c = If(
c,
k,
h
);
break a;
}
}
c = h;
} else c = Cf;
return (
null === b.context
? (b.context = c)
: (b.pendingContext = c),
((b = zg(
f,
g
)).payload = {
element: a,
}),
null !== (d = void 0 === d ? null : d) && (b.callback = d),
Ag(
e,
b
),
Jg(
e,
g,
f
),
g
);
}
function mk(
a
) {
if (!(a = a.current).child) return null;
switch (a.child.tag) {
case 5:
default:
return a.child.stateNode;
}
}
function nk(
a, b
) {
if (null !== (a = a.memoizedState) && null !== a.dehydrated) {
var c = a.retryLane;
a.retryLane = 0 !== c && c < b ? c : b;
}
}
function ok(
a, b
) {
nk(
a,
b
), (a = a.alternate) && nk(
a,
b
);
}
function qk(
a, b, c
) {
var d =
(null != c &&
null != c.hydrationOptions &&
c.hydrationOptions.mutableSources) ||
null;
if (
((c = new jk(
a,
b,
null != c && !0 === c.hydrate
)),
(b = nh(
3,
null,
null,
2 === b ? 7 : 1 === b ? 3 : 0
)),
(c.current = b),
(b.stateNode = c),
xg(
b
),
(a[ff] = c.current),
cf(
8 === a.nodeType ? a.parentNode : a
),
d)
)
for (a = 0; a < d.length; a++) {
var e = (b = d[a])._getVersion;
(e = e(
b._source
)),
null == c.mutableSourceEagerHydrationData
? (c.mutableSourceEagerHydrationData = [b, e,])
: c.mutableSourceEagerHydrationData.push(
b,
e
);
}
this._internalRoot = c;
}
function rk(
a
) {
return !(
!a ||
(1 !== a.nodeType &&
9 !== a.nodeType &&
11 !== a.nodeType &&
(8 !== a.nodeType ||
" react-mount-point-unstable " !== a.nodeValue))
);
}
function tk(
a, b, c, d, e
) {
var f = c._reactRootContainer;
if (f) {
var g = f._internalRoot;
if ("function" == typeof e) {
var h = e;
e = function (
) {
var a = mk(
g
);
h.call(
a
);
};
}
lk(
b,
g,
a,
e
);
} else {
if (
((f = c._reactRootContainer =
(function (
a, b
) {
if (
(b ||
(b = !(
!(b = a
? 9 === a.nodeType
? a.documentElement
: a.firstChild
: null) ||
1 !== b.nodeType ||
!b.hasAttribute(
"data-reactroot"
)
)),
!b)
)
for (var c; (c = a.lastChild); )
a.removeChild(
c
);
return new qk(
a,
0,
b
? {
hydrate: !0,
}
: void 0
);
})(
c,
d
)),
(g = f._internalRoot),
"function" == typeof e)
) {
var k = e;
e = function (
) {
var a = mk(
g
);
k.call(
a
);
};
}
Xj(
function (
) {
lk(
b,
g,
a,
e
);
}
);
}
return mk(
g
);
}
function uk(
a, b
) {
var c =
2 < arguments.length && void 0 !== arguments[2]
? arguments[2]
: null;
if (!rk(
b
)) throw Error(
y(
200
)
);
return kk(
a,
b,
null,
c
);
}
(ck = function (
a, b, c
) {
var d = b.lanes;
if (null !== a)
if (a.memoizedProps !== b.pendingProps || N.current)
ug = !0;
else {
if (0 == (c & d)) {
switch (((ug = !1), b.tag)) {
case 3:
ri(
b
), sh(
);
break;
case 5:
gh(
b
);
break;
case 1:
Ff(
b.type
) && Jf(
b
);
break;
case 4:
eh(
b,
b.stateNode.containerInfo
);
break;
case 10:
d = b.memoizedProps.value;
var e = b.type._context;
I(
mg,
e._currentValue
),
(e._currentValue = d);
break;
case 13:
if (null !== b.memoizedState)
return 0 != (c & b.child.childLanes)
? ti(
a,
b,
c
)
: (I(
P,
1 & P.current
),
null !== (b = hi(
a,
b,
c
))
? b.sibling
: null);
I(
P,
1 & P.current
);
break;
case 19:
if (
((d = 0 != (c & b.childLanes)),
0 != (64 & a.flags))
) {
if (d) return Ai(
a,
b,
c
);
b.flags |= 64;
}
if (
(null !== (e = b.memoizedState) &&
((e.rendering = null),
(e.tail = null),
(e.lastEffect = null)),
I(
P,
P.current
),
d)
)
break;
return null;
case 23:
case 24:
return (b.lanes = 0), mi(
a,
b,
c
);
}
return hi(
a,
b,
c
);
}
ug = 0 != (16384 & a.flags);
}
else ug = !1;
switch (((b.lanes = 0), b.tag)) {
case 2:
if (
((d = b.type),
null !== a &&
((a.alternate = null),
(b.alternate = null),
(b.flags |= 2)),
(a = b.pendingProps),
(e = Ef(
b,
M.current
)),
tg(
b,
c
),
(e = Ch(
null,
b,
d,
a,
e,
c
)),
(b.flags |= 1),
"object" == typeof e &&
null !== e &&
"function" == typeof e.render &&
void 0 === e.$$typeof)
) {
if (
((b.tag = 1),
(b.memoizedState = null),
(b.updateQueue = null),
Ff(
d
))
) {
var f = !0;
Jf(
b
);
} else f = !1;
(b.memoizedState =
null !== e.state && void 0 !== e.state
? e.state
: null),
xg(
b
);
var g = d.getDerivedStateFromProps;
"function" == typeof g && Gg(
b,
d,
g,
a
),
(e.updater = Kg),
(b.stateNode = e),
(e._reactInternals = b),
Og(
b,
d,
a,
c
),
(b = qi(
null,
b,
d,
!0,
f,
c
));
} else (b.tag = 0), fi(
null,
b,
e,
c
), (b = b.child);
return b;
case 16:
e = b.elementType;
a: {
switch (
(null !== a &&
((a.alternate = null),
(b.alternate = null),
(b.flags |= 2)),
(a = b.pendingProps),
(e = (f = e._init)(
e._payload
)),
(b.type = e),
(f = b.tag =
(function (
a
) {
if ("function" == typeof a)
return ji(
a
)
? 1
: 0;
if (null != a) {
if ((a = a.$$typeof) === Aa)
return 11;
if (a === Da) return 14;
}
return 2;
})(
e
)),
(a = lg(
e,
a
)),
f)
) {
case 0:
b = li(
null,
b,
e,
a,
c
);
break a;
case 1:
b = pi(
null,
b,
e,
a,
c
);
break a;
case 11:
b = gi(
null,
b,
e,
a,
c
);
break a;
case 14:
b = ii(
null,
b,
e,
lg(
e.type,
a
),
d,
c
);
break a;
}
throw Error(
y(
306,
e,
""
)
);
}
return b;
case 0:
return (
(d = b.type),
(e = b.pendingProps),
li(
a,
b,
d,
(e = b.elementType === d
? e
: lg(
d,
e
)),
c
)
);
case 1:
return (
(d = b.type),
(e = b.pendingProps),
pi(
a,
b,
d,
(e = b.elementType === d
? e
: lg(
d,
e
)),
c
)
);
case 3:
if (
(ri(
b
),
(d = b.updateQueue),
null === a || null === d)
)
throw Error(
y(
282
)
);
if (
((d = b.pendingProps),
(e =
null !== (e = b.memoizedState)
? e.element
: null),
yg(
a,
b
),
Cg(
b,
d,
null,
c
),
(d = b.memoizedState.element) === e)
)
sh(
), (b = hi(
a,
b,
c
));
else {
if (
((f = (e = b.stateNode).hydrate) &&
((kh = rf(
b.stateNode.containerInfo.firstChild
)),
(jh = b),
(f = lh = !0)),
f)
) {
if (
null !=
(a = e.mutableSourceEagerHydrationData)
)
for (e = 0; e < a.length; e += 2)
((f =
a[
e
])._workInProgressVersionPrimary =
a[e + 1]),
th.push(
f
);
for (c = Zg(
b,
null,
d,
c
), b.child = c; c; )
(c.flags = (-3 & c.flags) | 1024),
(c = c.sibling);
} else fi(
a,
b,
d,
c
), sh(
);
b = b.child;
}
return b;
case 5:
return (
gh(
b
),
null === a && ph(
b
),
(d = b.type),
(e = b.pendingProps),
(f = null !== a ? a.memoizedProps : null),
(g = e.children),
nf(
d,
e
)
? (g = null)
: null !== f && nf(
d,
f
) && (b.flags |= 16),
oi(
a,
b
),
fi(
a,
b,
g,
c
),
b.child
);
case 6:
return null === a && ph(
b
), null;
case 13:
return ti(
a,
b,
c
);
case 4:
return (
eh(
b,
b.stateNode.containerInfo
),
(d = b.pendingProps),
null === a
? (b.child = Yg(
b,
null,
d,
c
))
: fi(
a,
b,
d,
c
),
b.child
);
case 11:
return (
(d = b.type),
(e = b.pendingProps),
gi(
a,
b,
d,
(e = b.elementType === d
? e
: lg(
d,
e
)),
c
)
);
case 7:
return fi(
a,
b,
b.pendingProps,
c
), b.child;
case 8:
case 12:
return fi(
a,
b,
b.pendingProps.children,
c
), b.child;
case 10:
a: {
(d = b.type._context),
(e = b.pendingProps),
(g = b.memoizedProps),
(f = e.value);
var h = b.type._context;
if (
(I(
mg,
h._currentValue
),
(h._currentValue = f),
null !== g)
)
if (
((h = g.value),
0 ===
(f = He(
h,
f
)
? 0
: 0 |
("function" ==
typeof d._calculateChangedBits
? d._calculateChangedBits(
h,
f
)
: 1073741823)))
) {
if (
g.children === e.children &&
!N.current
) {
b = hi(
a,
b,
c
);
break a;
}
} else
for (
null !== (h = b.child) &&
(h.return = b);
null !== h;
) {
var k = h.dependencies;
if (null !== k) {
g = h.child;
for (
var l = k.firstContext;
null !== l;
) {
if (
l.context === d &&
0 != (l.observedBits & f)
) {
1 === h.tag &&
(((l = zg(
-1,
c & -c
)).tag = 2),
Ag(
h,
l
)),
(h.lanes |= c),
null !==
(l = h.alternate) &&
(l.lanes |= c),
sg(
h.return,
c
),
(k.lanes |= c);
break;
}
l = l.next;
}
} else
g =
10 === h.tag &&
h.type === b.type
? null
: h.child;
if (null !== g) g.return = h;
else
for (g = h; null !== g; ) {
if (g === b) {
g = null;
break;
}
if (null !== (h = g.sibling)) {
(h.return = g.return),
(g = h);
break;
}
g = g.return;
}
h = g;
}
fi(
a,
b,
e.children,
c
), (b = b.child);
}
return b;
case 9:
return (
(e = b.type),
(d = (f = b.pendingProps).children),
tg(
b,
c
),
(d = d(
(e = vg(
e,
f.unstable_observedBits
))
)),
(b.flags |= 1),
fi(
a,
b,
d,
c
),
b.child
);
case 14:
return (
(f = lg(
(e = b.type),
b.pendingProps
)),
ii(
a,
b,
e, (
f = lg(
e.type,
f
)),
d,
c
)
);
case 15:
return ki(
a,
b,
b.type,
b.pendingProps,
d,
c
);
case 17:
return (
(d = b.type),
(e = b.pendingProps),
(e = b.elementType === d
? e
: lg(
d,
e
)),
null !== a &&
((a.alternate = null),
(b.alternate = null),
(b.flags |= 2)),
(b.tag = 1),
Ff(
d
)
? ((a = !0), Jf(
b
))
: (a = !1),
tg(
b,
c
),
Mg(
b,
d,
e
),
Og(
b,
d,
e,
c
),
qi(
null,
b,
d,
!0,
a,
c
)
);
case 19:
return Ai(
a,
b,
c
);
case 23:
case 24:
return mi(
a,
b,
c
);
}
throw Error(
y(
156,
b.tag
)
);
}),
(qk.prototype.render = function (
a
) {
lk(
a,
this._internalRoot,
null,
null
);
}),
(qk.prototype.unmount = function (
) {
var a = this._internalRoot,
b = a.containerInfo;
lk(
null,
a,
null,
function (
) {
b[ff] = null;
}
);
}),
(ec = function (
a
) {
13 === a.tag && (Jg(
a,
4,
Hg(
)
), ok(
a,
4
));
}),
(fc = function (
a
) {
13 === a.tag && (Jg(
a,
67108864,
Hg(
)
), ok(
a,
67108864
));
}),
(gc = function (
a
) {
if (13 === a.tag) {
var b = Hg(
),
c = Ig(
a
);
Jg(
a,
c,
b
), ok(
a,
c
);
}
}),
(hc = function (
a, b
) {
return b(
);
}),
(yb = function (
a, b, c
) {
switch (b) {
case "input":
if (
(ab(
a,
c
),
(b = c.name),
"radio" === c.type && null != b)
) {
for (c = a; c.parentNode; ) c = c.parentNode;
for (
c = c.querySelectorAll(
"input[name=" +
JSON.stringify(
"" + b
) +
'][type="radio"]'
),
b = 0;
b < c.length;
b++
) {
var d = c[b];
if (d !== a && d.form === a.form) {
var e = Db(
d
);
if (!e) throw Error(
y(
90
)
);
Wa(
d
), ab(
d,
e
);
}
}
}
break;
case "textarea":
ib(
a,
c
);
break;
case "select":
null != (b = c.value) && fb(
a,
!!c.multiple,
b,
!1
);
}
}),
(Gb = Wj),
(Hb = function (
a, b, c, d, e
) {
var f = X;
X |= 4;
try {
return gg(
98,
a.bind(
null,
b,
c,
d,
e
)
);
} finally {
0 === (X = f) && (wj(
), ig(
));
}
}),
(Ib = function (
) {
0 == (49 & X) &&
((function (
) {
if (null !== Cj) {
var a = Cj;
(Cj = null),
a.forEach(
function (
a
) {
(a.expiredLanes |= 24 & a.pendingLanes),
Mj(
a,
O(
)
);
}
);
}
ig(
);
})(
),
Oj(
));
}),
(Jb = function (
a, b
) {
var c = X;
X |= 2;
try {
return a(
b
);
} finally {
0 === (X = c) && (wj(
), ig(
));
}
});
var vk = {
Events: [Cb, ue, Db, Eb, Fb, Oj, {
current: !1,
},],
},
wk = {
findFiberByHostInstance: wc,
bundleType: 0,
version: "17.0.2",
rendererPackageName: "react-dom",
},
xk = {
bundleType: wk.bundleType,
version: wk.version,
rendererPackageName: wk.rendererPackageName,
rendererConfig: wk.rendererConfig,
overrideHookState: null,
overrideHookStateDeletePath: null,
overrideHookStateRenamePath: null,
overrideProps: null,
overridePropsDeletePath: null,
overridePropsRenamePath: null,
setSuspenseHandler: null,
scheduleUpdate: null,
currentDispatcherRef: ra.ReactCurrentDispatcher,
findHostInstanceByFiber: function (
a
) {
return null === (a = cc(
a
))
? null
: a.stateNode;
},
findFiberByHostInstance:
wk.findFiberByHostInstance ||
function (
) {
return null;
},
findHostInstancesForRefresh: null,
scheduleRefresh: null,
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
};
if ("undefined" != typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var yk = __REACT_DEVTOOLS_GLOBAL_HOOK__;
if (!yk.isDisabled && yk.supportsFiber)
try {
(Lf = yk.inject(
xk
)), (Mf = yk);
} catch (a) {}
}
(exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = vk),
(exports.createPortal = uk),
(exports.findDOMNode = function (
a
) {
if (null == a) return null;
if (1 === a.nodeType) return a;
var b = a._reactInternals;
if (void 0 === b) {
if ("function" == typeof a.render) throw Error(
y(
188
)
);
throw Error(
y(
268,
Object.keys(
a
)
)
);
}
return (a = null === (a = cc(
b
))
? null
: a.stateNode);
}),
(exports.flushSync = function (
a, b
) {
var c = X;
if (0 != (48 & c)) return a(
b
);
X |= 1;
try {
if (a) return gg(
99,
a.bind(
null,
b
)
);
} finally {
(X = c), ig(
);
}
}),
(exports.hydrate = function (
a, b, c
) {
if (!rk(
b
)) throw Error(
y(
200
)
);
return tk(
null,
a,
b,
!0,
c
);
}),
(exports.render = function (
a, b, c
) {
if (!rk(
b
)) throw Error(
y(
200
)
);
return tk(
null,
a,
b,
!1,
c
);
}),
(exports.unmountComponentAtNode = function (
a
) {
if (!rk(
a
)) throw Error(
y(
40
)
);
return (
!!a._reactRootContainer &&
(Xj(
function (
) {
tk(
null,
null,
a,
!1,
function (
) {
(a._reactRootContainer = null), (a[ff] = null);
}
);
}
),
!0)
);
}),
(exports.unstable_batchedUpdates = Wj),
(exports.unstable_createPortal = function (
a, b
) {
return uk(
a,
b,
2 < arguments.length && void 0 !== arguments[2]
? arguments[2]
: null
);
}),
(exports.unstable_renderSubtreeIntoContainer = function (
a,
b,
c,
d
) {
if (!rk(
c
)) throw Error(
y(
200
)
);
if (null == a || void 0 === a._reactInternals)
throw Error(
y(
38
)
);
return tk(
a,
b,
c,
!1,
d
);
}),
(exports.version = "17.0.2");
},
2788: function (
module, __unused_webpack_exports, __webpack_require__
) {
!(function checkDCE(
) {
if (
"undefined" != typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" == typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE
)
try {
__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(
checkDCE
);
} catch (err) {
console.error(
err
);
}
})(
),
(module.exports = __webpack_require__(
3975
));
},
3717: function (
__unused_webpack_module, exports
) {
/** @license React v0.20.2
* scheduler.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
var f, g, h, k;
if (
"object" == typeof performance &&
"function" == typeof performance.now
) {
var l = performance;
exports.unstable_now = function (
) {
return l.now(
);
};
} else {
var p = Date,
q = p.now(
);
exports.unstable_now = function (
) {
return p.now(
) - q;
};
}
if (
"undefined" == typeof window ||
"function" != typeof MessageChannel
) {
var t = null,
u = null,
w = function (
) {
if (null !== t)
try {
var a = exports.unstable_now(
);
t(
!0,
a
), (t = null);
} catch (b) {
throw (setTimeout(
w,
0
), b);
}
};
(f = function (
a
) {
null !== t
? setTimeout(
f,
0,
a
)
: ((t = a), setTimeout(
w,
0
));
}),
(g = function (
a, b
) {
u = setTimeout(
a,
b
);
}),
(h = function (
) {
clearTimeout(
u
);
}),
(exports.unstable_shouldYield = function (
) {
return !1;
}),
(k = exports.unstable_forceFrameRate = function (
) {});
} else {
var x = window.setTimeout,
y = window.clearTimeout;
if ("undefined" != typeof console) {
var z = window.cancelAnimationFrame;
"function" != typeof window.requestAnimationFrame &&
console.error(
"This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"
),
"function" != typeof z &&
console.error(
"This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"
);
}
var A = !1,
B = null,
C = -1,
D = 5,
E = 0;
(exports.unstable_shouldYield = function (
) {
return exports.unstable_now(
) >= E;
}),
(k = function (
) {}),
(exports.unstable_forceFrameRate = function (
a
) {
0 > a || 125 < a
? console.error(
"forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"
)
: (D = 0 < a
? Math.floor(
1e3 / a
)
: 5);
});
var F = new MessageChannel(
),
G = F.port2;
(F.port1.onmessage = function (
) {
if (null !== B) {
var a = exports.unstable_now(
);
E = a + D;
try {
B(
!0,
a
)
? G.postMessage(
null
)
: ((A = !1), (B = null));
} catch (b) {
throw (G.postMessage(
null
), b);
}
} else A = !1;
}),
(f = function (
a
) {
(B = a), A || ((A = !0), G.postMessage(
null
));
}),
(g = function (
a, b
) {
C = x(
function (
) {
a(
exports.unstable_now(
)
);
},
b
);
}),
(h = function (
) {
y(
C
), (C = -1);
});
}
function H(
a, b
) {
var c = a.length;
a.push(
b
);
a: for (;;) {
var d = (c - 1) >>> 1,
e = a[d];
if (!(void 0 !== e && 0 < I(
e,
b
))) break a;
(a[d] = b), (a[c] = e), (c = d);
}
}
function J(
a
) {
return void 0 === (a = a[0]) ? null : a;
}
function K(
a
) {
var b = a[0];
if (void 0 !== b) {
var c = a.pop(
);
if (c !== b) {
a[0] = c;
a: for (var d = 0, e = a.length; d < e; ) {
var m = 2 * (d + 1) - 1,
n = a[m],
v = m + 1,
r = a[v];
if (void 0 !== n && 0 > I(
n,
c
))
void 0 !== r && 0 > I(
r,
n
)
? ((a[d] = r), (a[v] = c), (d = v))
: ((a[d] = n), (a[m] = c), (d = m));
else {
if (!(void 0 !== r && 0 > I(
r,
c
))) break a;
(a[d] = r), (a[v] = c), (d = v);
}
}
}
return b;
}
return null;
}
function I(
a, b
) {
var c = a.sortIndex - b.sortIndex;
return 0 !== c ? c : a.id - b.id;
}
var L = [],
M = [],
N = 1,
O = null,
P = 3,
Q = !1,
R = !1,
S = !1;
function T(
a
) {
for (var b = J(
M
); null !== b; ) {
if (null === b.callback) K(
M
);
else {
if (!(b.startTime <= a)) break;
K(
M
), (b.sortIndex = b.expirationTime), H(
L,
b
);
}
b = J(
M
);
}
}
function U(
a
) {
if (((S = !1), T(
a
), !R))
if (null !== J(
L
)) (R = !0), f(
V
);
else {
var b = J(
M
);
null !== b && g(
U,
b.startTime - a
);
}
}
function V(
a, b
) {
(R = !1), S && ((S = !1), h(
)), (Q = !0);
var c = P;
try {
for (
T(
b
), O = J(
L
);
null !== O &&
(!(O.expirationTime > b) ||
(a && !exports.unstable_shouldYield(
)));
) {
var d = O.callback;
if ("function" == typeof d) {
(O.callback = null), (P = O.priorityLevel);
var e = d(
O.expirationTime <= b
);
(b = exports.unstable_now(
)),
"function" == typeof e
? (O.callback = e)
: O === J(
L
) && K(
L
),
T(
b
);
} else K(
L
);
O = J(
L
);
}
if (null !== O) var m = !0;
else {
var n = J(
M
);
null !== n && g(
U,
n.startTime - b
), (m = !1);
}
return m;
} finally {
(O = null), (P = c), (Q = !1);
}
}
var W = k;
(exports.unstable_IdlePriority = 5),
(exports.unstable_ImmediatePriority = 1),
(exports.unstable_LowPriority = 4),
(exports.unstable_NormalPriority = 3),
(exports.unstable_Profiling = null),
(exports.unstable_UserBlockingPriority = 2),
(exports.unstable_cancelCallback = function (
a
) {
a.callback = null;
}),
(exports.unstable_continueExecution = function (
) {
R || Q || ((R = !0), f(
V
));
}),
(exports.unstable_getCurrentPriorityLevel = function (
) {
return P;
}),
(exports.unstable_getFirstCallbackNode = function (
) {
return J(
L
);
}),
(exports.unstable_next = function (
a
) {
switch (P) {
case 1:
case 2:
case 3:
var b = 3;
break;
default:
b = P;
}
var c = P;
P = b;
try {
return a(
);
} finally {
P = c;
}
}),
(exports.unstable_pauseExecution = function (
) {}),
(exports.unstable_requestPaint = W),
(exports.unstable_runWithPriority = function (
a, b
) {
switch (a) {
case 1:
case 2:
case 3:
case 4:
case 5:
break;
default:
a = 3;
}
var c = P;
P = a;
try {
return b(
);
} finally {
P = c;
}
}),
(exports.unstable_scheduleCallback = function (
a, b, c
) {
var d = exports.unstable_now(
);
switch (
("object" == typeof c && null !== c
? (c =
"number" == typeof (c = c.delay) && 0 < c
? d + c
: d)
: (c = d),
a)
) {
case 1:
var e = -1;
break;
case 2:
e = 250;
break;
case 5:
e = 1073741823;
break;
case 4:
e = 1e4;
break;
default:
e = 5e3;
}
return (
(a = {
id: N++,
callback: b,
priorityLevel: a,
startTime: c,
expirationTime: (e = c + e),
sortIndex: -1,
}),
c > d
? ((a.sortIndex = c),
H(
M,
a
),
null === J(
L
) &&
a === J(
M
) &&
(S
? h(
)
: (S = !0), g(
U,
c - d
)))
: ((a.sortIndex = e),
H(
L,
a
),
R || Q || ((R = !0), f(
V
))),
a
);
}),
(exports.unstable_wrapCallback = function (
a
) {
var b = P;
return function (
) {
var c = P;
P = b;
try {
return a.apply(
this,
arguments
);
} finally {
P = c;
}
};
});
},
9489: function (
module, __unused_webpack_exports, __webpack_require__
) {
module.exports = __webpack_require__(
3717
);
},
6094: function (
__unused_webpack_module, exports, __webpack_require__
) {
/** @license React v17.0.2
* react-jsx-runtime.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
__webpack_require__(
1474
);
var f = __webpack_require__(
2735
),
g = 60103;
if ((60107, "function" == typeof Symbol && Symbol.for)) {
var h = Symbol.for;
(g = h(
"react.element"
)), h(
"react.fragment"
);
}
var m =
f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED
.ReactCurrentOwner,
n = Object.prototype.hasOwnProperty,
p = {
key: !0,
ref: !0,
__self: !0,
__source: !0,
};
function q(
c, a, k
) {
var b,
d = {
},
e = null,
l = null;
for (b in (void 0 !== k && (e = "" + k),
void 0 !== a.key && (e = "" + a.key),
void 0 !== a.ref && (l = a.ref),
a))
n.call(
a,
b
) && !p.hasOwnProperty(
b
) && (d[b] = a[b]);
if (c && c.defaultProps)
for (b in (a = c.defaultProps))
void 0 === d[b] && (d[b] = a[b]);
return {
$$typeof: g,
type: c,
key: e,
ref: l,
props: d,
_owner: m.current,
};
}
(exports.jsx = q), (exports.jsxs = q);
},
8447: function (
__unused_webpack_module, exports, __webpack_require__
) {
/** @license React v17.0.2
* react.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
var l = __webpack_require__(
1474
),
n = 60103,
p = 60106;
(exports.Fragment = 60107),
(exports.StrictMode = 60108),
(exports.Profiler = 60114);
var q = 60109,
r = 60110,
t = 60112;
exports.Suspense = 60113;
var u = 60115,
v = 60116;
if ("function" == typeof Symbol && Symbol.for) {
var w = Symbol.for;
(n = w(
"react.element"
)),
(p = w(
"react.portal"
)),
(exports.Fragment = w(
"react.fragment"
)),
(exports.StrictMode = w(
"react.strict_mode"
)),
(exports.Profiler = w(
"react.profiler"
)),
(q = w(
"react.provider"
)),
(r = w(
"react.context"
)),
(t = w(
"react.forward_ref"
)),
(exports.Suspense = w(
"react.suspense"
)),
(u = w(
"react.memo"
)),
(v = w(
"react.lazy"
));
}
var x = "function" == typeof Symbol && Symbol.iterator;
function z(
a
) {
for (
var b =
"https://reactjs.org/docs/error-decoder.html?invariant=" +
a,
c = 1;
c < arguments.length;
c++
)
b += "&args[]=" + encodeURIComponent(
arguments[c]
);
return (
"Minified React error #" +
a +
"; visit " +
b +
" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."
);
}
var A = {
isMounted: function (
) {
return !1;
},
enqueueForceUpdate: function (
) {},
enqueueReplaceState: function (
) {},
enqueueSetState: function (
) {},
},
B = {
};
function C(
a, b, c
) {
(this.props = a),
(this.context = b),
(this.refs = B),
(this.updater = c || A);
}
function D(
) {}
function E(
a, b, c
) {
(this.props = a),
(this.context = b),
(this.refs = B),
(this.updater = c || A);
}
(C.prototype.isReactComponent = {
}),
(C.prototype.setState = function (
a, b
) {
if (
"object" != typeof a &&
"function" != typeof a &&
null != a
)
throw Error(
z(
85
)
);
this.updater.enqueueSetState(
this,
a,
b,
"setState"
);
}),
(C.prototype.forceUpdate = function (
a
) {
this.updater.enqueueForceUpdate(
this,
a,
"forceUpdate"
);
}),
(D.prototype = C.prototype);
var F = (E.prototype = new D(
));
(F.constructor = E),
l(
F,
C.prototype
),
(F.isPureReactComponent = !0);
var G = {
current: null,
},
H = Object.prototype.hasOwnProperty,
I = {
key: !0,
ref: !0,
__self: !0,
__source: !0,
};
function J(
a, b, c
) {
var e,
d = {
},
k = null,
h = null;
if (null != b)
for (e in (void 0 !== b.ref && (h = b.ref),
void 0 !== b.key && (k = "" + b.key),
b))
H.call(
b,
e
) && !I.hasOwnProperty(
e
) && (d[e] = b[e]);
var g = arguments.length - 2;
if (1 === g) d.children = c;
else if (1 < g) {
for (var f = Array(
g
), m = 0; m < g; m++)
f[m] = arguments[m + 2];
d.children = f;
}
if (a && a.defaultProps)
for (e in (g = a.defaultProps))
void 0 === d[e] && (d[e] = g[e]);
return {
$$typeof: n,
type: a,
key: k,
ref: h,
props: d,
_owner: G.current,
};
}
function L(
a
) {
return "object" == typeof a && null !== a && a.$$typeof === n;
}
var M = /\/+/g;
function N(
a, b
) {
return "object" == typeof a && null !== a && null != a.key
? (function (
a
) {
var b = {
"=": "=0",
":": "=2",
};
return (
"$" +
a.replace(
/[=:]/g,
function (
a
) {
return b[a];
}
)
);
})(
"" + a.key
)
: b.toString(
36
);
}
function O(
a, b, c, e, d
) {
var k = typeof a;
("undefined" !== k && "boolean" !== k) || (a = null);
var h = !1;
if (null === a) h = !0;
else
switch (k) {
case "string":
case "number":
h = !0;
break;
case "object":
switch (a.$$typeof) {
case n:
case p:
h = !0;
}
}
if (h)
return (
(d = d(
(h = a)
)),
(a = "" === e
? "." + N(
h,
0
)
: e),
Array.isArray(
d
)
? ((c = ""),
null != a && (c = a.replace(
M,
"$&/"
) + "/"),
O(
d,
b,
c,
"",
function (
a
) {
return a;
}
))
: null != d &&
(L(
d
) &&
(d = (function (
a, b
) {
return {
$$typeof: n,
type: a.type,
key: b,
ref: a.ref,
props: a.props,
_owner: a._owner,
};
})(
d,
c +
(!d.key || (h && h.key === d.key)
? ""
: ("" + d.key).replace(
M,
"$&/"
) +
"/") +
a
)),
b.push(
d
)),
1
);
if (((h = 0), (e = "" === e ? "." : e + ":"), Array.isArray(
a
)))
for (var g = 0; g < a.length; g++) {
var f = e + N(
(k = a[g]),
g
);
h += O(
k,
b,
c,
f,
d
);
}
else if (
"function" ==
typeof (f = (function (
a
) {
return null === a || "object" != typeof a
? null
: "function" ==
typeof (a = (x && a[x]) || a["@@iterator"])
? a
: null;
})(
a
))
)
for (a = f.call(
a
), g = 0; !(k = a.next(
)).done; )
h += O(
(k = k.value),
b,
c, (
f = e + N(
k,
g++
)),
d
);
else if ("object" === k)
throw (
((b = "" + a),
Error(
z(
31,
"[object Object]" === b
? "object with keys {" +
Object.keys(
a
).join(
", "
) +
"}"
: b
)
))
);
return h;
}
function P(
a, b, c
) {
if (null == a) return a;
var e = [],
d = 0;
return (
O(
a,
e,
"",
"",
function (
a
) {
return b.call(
c,
a,
d++
);
}
),
e
);
}
function Q(
a
) {
if (-1 === a._status) {
var b = a._result;
(b = b(
)),
(a._status = 0),
(a._result = b),
b.then(
function (
b
) {
0 === a._status &&
((b = b.default),
(a._status = 1),
(a._result = b));
},
function (
b
) {
0 === a._status &&
((a._status = 2), (a._result = b));
}
);
}
if (1 === a._status) return a._result;
throw a._result;
}
var R = {
current: null,
};
function S(
) {
var a = R.current;
if (null === a) throw Error(
z(
321
)
);
return a;
}
var T = {
ReactCurrentDispatcher: R,
ReactCurrentBatchConfig: {
transition: 0,
},
ReactCurrentOwner: G,
IsSomeRendererActing: {
current: !1,
},
assign: l,
};
(exports.Children = {
map: P,
forEach: function (
a, b, c
) {
P(
a,
function (
) {
b.apply(
this,
arguments
);
},
c
);
},
count: function (
a
) {
var b = 0;
return (
P(
a,
function (
) {
b++;
}
),
b
);
},
toArray: function (
a
) {
return (
P(
a,
function (
a
) {
return a;
}
) || []
);
},
only: function (
a
) {
if (!L(
a
)) throw Error(
z(
143
)
);
return a;
},
}),
(exports.Component = C),
(exports.PureComponent = E),
(exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED =
T),
(exports.cloneElement = function (
a, b, c
) {
if (null == a) throw Error(
z(
267,
a
)
);
var e = l(
{
},
a.props
),
d = a.key,
k = a.ref,
h = a._owner;
if (null != b) {
if (
(void 0 !== b.ref && ((k = b.ref), (h = G.current)),
void 0 !== b.key && (d = "" + b.key),
a.type && a.type.defaultProps)
)
var g = a.type.defaultProps;
for (f in b)
H.call(
b,
f
) &&
!I.hasOwnProperty(
f
) &&
(e[f] =
void 0 === b[f] && void 0 !== g
? g[f]
: b[f]);
}
var f = arguments.length - 2;
if (1 === f) e.children = c;
else if (1 < f) {
g = Array(
f
);
for (var m = 0; m < f; m++) g[m] = arguments[m + 2];
e.children = g;
}
return {
$$typeof: n,
type: a.type,
key: d,
ref: k,
props: e,
_owner: h,
};
}),
(exports.createContext = function (
a, b
) {
return (
void 0 === b && (b = null),
((a = {
$$typeof: r,
_calculateChangedBits: b,
_currentValue: a,
_currentValue2: a,
_threadCount: 0,
Provider: null,
Consumer: null,
}).Provider = {
$$typeof: q,
_context: a,
}),
(a.Consumer = a)
);
}),
(exports.createElement = J),
(exports.createFactory = function (
a
) {
var b = J.bind(
null,
a
);
return (b.type = a), b;
}),
(exports.createRef = function (
) {
return {
current: null,
};
}),
(exports.forwardRef = function (
a
) {
return {
$$typeof: t,
render: a,
};
}),
(exports.isValidElement = L),
(exports.lazy = function (
a
) {
return {
$$typeof: v,
_payload: {
_status: -1,
_result: a,
},
_init: Q,
};
}),
(exports.memo = function (
a, b
) {
return {
$$typeof: u,
type: a,
compare: void 0 === b ? null : b,
};
}),
(exports.useCallback = function (
a, b
) {
return S(
).useCallback(
a,
b
);
}),
(exports.useContext = function (
a, b
) {
return S(
).useContext(
a,
b
);
}),
(exports.useDebugValue = function (
) {}),
(exports.useEffect = function (
a, b
) {
return S(
).useEffect(
a,
b
);
}),
(exports.useImperativeHandle = function (
a, b, c
) {
return S(
).useImperativeHandle(
a,
b,
c
);
}),
(exports.useLayoutEffect = function (
a, b
) {
return S(
).useLayoutEffect(
a,
b
);
}),
(exports.useMemo = function (
a, b
) {
return S(
).useMemo(
a,
b
);
}),
(exports.useReducer = function (
a, b, c
) {
return S(
).useReducer(
a,
b,
c
);
}),
(exports.useRef = function (
a
) {
return S(
).useRef(
a
);
}),
(exports.useState = function (
a
) {
return S(
).useState(
a
);
}),
(exports.version = "17.0.2");
},
2735: function (
module, __unused_webpack_exports, __webpack_require__
) {
module.exports = __webpack_require__(
8447
);
},
4512: function (
module, __unused_webpack_exports, __webpack_require__
) {
module.exports = __webpack_require__(
6094
);
},
4029: function (
__unused_webpack_module, exports, __webpack_require__
) {
/** @license React vundefined
* use-subscription.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
var e = __webpack_require__(
1474
),
g = __webpack_require__(
2735
);
exports.useSubscription = function (
a
) {
var c = a.getCurrentValue,
d = a.subscribe,
b = g.useState(
function (
) {
return {
getCurrentValue: c,
subscribe: d,
value: c(
),
};
}
);
a = b[0];
var f = b[1];
return (
(b = a.value),
(a.getCurrentValue === c && a.subscribe === d) ||
((b = c(
)),
f(
{
getCurrentValue: c,
subscribe: d,
value: b,
}
)),
g.useDebugValue(
b
),
g.useEffect(
function (
) {
function b(
) {
if (!a) {
var b = c(
);
f(
function (
a
) {
return a.getCurrentValue !== c ||
a.subscribe !== d ||
a.value === b
? a
: e(
{
},
a,
{
value: b,
}
);
}
);
}
}
var a = !1,
h = d(
b
);
return (
b(
),
function (
) {
(a = !0), h(
);
}
);
},
[c, d,]
),
b
);
};
},
4234: function (
module, __unused_webpack_exports, __webpack_require__
) {
module.exports = __webpack_require__(
4029
);
},
},
]
);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/fixture/projects/next/.archive-4/main-2953d6142ff4a439dbc0/input.js | JavaScript | (self["webpackChunk_N_E"] = self["webpackChunk_N_E"] || []).push([
[179],
{
/***/ 4291: /***/ function (module) {
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;
}
module.exports = _arrayLikeToArray;
/***/
},
/***/ 4325: /***/ function (module) {
function _arrayWithHoles(arr) {
if (Array.isArray(arr)) return arr;
}
module.exports = _arrayWithHoles;
/***/
},
/***/ 123: /***/ function (
module,
__unused_webpack_exports,
__webpack_require__
) {
var arrayLikeToArray = __webpack_require__(4291);
function _arrayWithoutHoles(arr) {
if (Array.isArray(arr)) return arrayLikeToArray(arr);
}
module.exports = _arrayWithoutHoles;
/***/
},
/***/ 9382: /***/ function (module) {
function _assertThisInitialized(self) {
if (self === void 0) {
throw new ReferenceError(
"this hasn't been initialised - super() hasn't been called"
);
}
return self;
}
module.exports = _assertThisInitialized;
/***/
},
/***/ 5374: /***/ function (module) {
function asyncGeneratorStep(
gen,
resolve,
reject,
_next,
_throw,
key,
arg
) {
try {
var info = gen[key](arg);
var value = info.value;
} catch (error) {
reject(error);
return;
}
if (info.done) {
resolve(value);
} else {
Promise.resolve(value).then(_next, _throw);
}
}
function _asyncToGenerator(fn) {
return function () {
var self = this,
args = arguments;
return new Promise(function (resolve, reject) {
var gen = fn.apply(self, args);
function _next(value) {
asyncGeneratorStep(
gen,
resolve,
reject,
_next,
_throw,
"next",
value
);
}
function _throw(err) {
asyncGeneratorStep(
gen,
resolve,
reject,
_next,
_throw,
"throw",
err
);
}
_next(undefined);
});
};
}
module.exports = _asyncToGenerator;
/***/
},
/***/ 4988: /***/ function (module) {
function _classCallCheck(instance, Constructor) {
if (!(instance instanceof Constructor)) {
throw new TypeError("Cannot call a class as a function");
}
}
module.exports = _classCallCheck;
/***/
},
/***/ 4096: /***/ function (
module,
__unused_webpack_exports,
__webpack_require__
) {
var setPrototypeOf = __webpack_require__(990);
var isNativeReflectConstruct = __webpack_require__(6340);
function _construct(Parent, args, Class) {
if (isNativeReflectConstruct()) {
module.exports = _construct = Reflect.construct;
} else {
module.exports = _construct = function _construct(
Parent,
args,
Class
) {
var a = [null];
a.push.apply(a, args);
var Constructor = Function.bind.apply(Parent, a);
var instance = new Constructor();
if (Class) setPrototypeOf(instance, Class.prototype);
return instance;
};
}
return _construct.apply(null, arguments);
}
module.exports = _construct;
/***/
},
/***/ 9590: /***/ function (module) {
function _defineProperties(target, props) {
for (var i = 0; i < props.length; i++) {
var descriptor = props[i];
descriptor.enumerable = descriptor.enumerable || false;
descriptor.configurable = true;
if ("value" in descriptor) descriptor.writable = true;
Object.defineProperty(target, descriptor.key, descriptor);
}
}
function _createClass(Constructor, protoProps, staticProps) {
if (protoProps)
_defineProperties(Constructor.prototype, protoProps);
if (staticProps) _defineProperties(Constructor, staticProps);
return Constructor;
}
module.exports = _createClass;
/***/
},
/***/ 566: /***/ function (module) {
function _defineProperty(obj, key, value) {
if (key in obj) {
Object.defineProperty(obj, key, {
value: value,
enumerable: true,
configurable: true,
writable: true,
});
} else {
obj[key] = value;
}
return obj;
}
module.exports = _defineProperty;
/***/
},
/***/ 852: /***/ function (module) {
function _getPrototypeOf(o) {
module.exports = _getPrototypeOf = Object.setPrototypeOf
? Object.getPrototypeOf
: function _getPrototypeOf(o) {
return o.__proto__ || Object.getPrototypeOf(o);
};
return _getPrototypeOf(o);
}
module.exports = _getPrototypeOf;
/***/
},
/***/ 4546: /***/ function (
module,
__unused_webpack_exports,
__webpack_require__
) {
var setPrototypeOf = __webpack_require__(990);
function _inherits(subClass, superClass) {
if (typeof superClass !== "function" && superClass !== null) {
throw new TypeError(
"Super expression must either be null or a function"
);
}
subClass.prototype = Object.create(
superClass && superClass.prototype,
{
constructor: {
value: subClass,
writable: true,
configurable: true,
},
}
);
if (superClass) setPrototypeOf(subClass, superClass);
}
module.exports = _inherits;
/***/
},
/***/ 6571: /***/ function (module) {
function _isNativeFunction(fn) {
return (
Function.toString.call(fn).indexOf("[native code]") !== -1
);
}
module.exports = _isNativeFunction;
/***/
},
/***/ 6340: /***/ function (module) {
function _isNativeReflectConstruct() {
if (typeof Reflect === "undefined" || !Reflect.construct)
return false;
if (Reflect.construct.sham) return false;
if (typeof Proxy === "function") return true;
try {
Date.prototype.toString.call(
Reflect.construct(Date, [], function () {})
);
return true;
} catch (e) {
return false;
}
}
module.exports = _isNativeReflectConstruct;
/***/
},
/***/ 6506: /***/ function (module) {
function _iterableToArray(iter) {
if (
typeof Symbol !== "undefined" &&
Symbol.iterator in Object(iter)
)
return Array.from(iter);
}
module.exports = _iterableToArray;
/***/
},
/***/ 1682: /***/ function (module) {
function _iterableToArrayLimit(arr, i) {
if (
typeof Symbol === "undefined" ||
!(Symbol.iterator in Object(arr))
)
return;
var _arr = [];
var _n = true;
var _d = false;
var _e = undefined;
try {
for (
var _i = arr[Symbol.iterator](), _s;
!(_n = (_s = _i.next()).done);
_n = true
) {
_arr.push(_s.value);
if (i && _arr.length === i) break;
}
} catch (err) {
_d = true;
_e = err;
} finally {
try {
if (!_n && _i["return"] != null) _i["return"]();
} finally {
if (_d) throw _e;
}
}
return _arr;
}
module.exports = _iterableToArrayLimit;
/***/
},
/***/ 1420: /***/ function (module) {
function _nonIterableRest() {
throw new TypeError(
"Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."
);
}
module.exports = _nonIterableRest;
/***/
},
/***/ 7331: /***/ function (module) {
function _nonIterableSpread() {
throw new TypeError(
"Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."
);
}
module.exports = _nonIterableSpread;
/***/
},
/***/ 1581: /***/ function (
module,
__unused_webpack_exports,
__webpack_require__
) {
var _typeof = __webpack_require__(7002);
var assertThisInitialized = __webpack_require__(9382);
function _possibleConstructorReturn(self, call) {
if (
call &&
(_typeof(call) === "object" || typeof call === "function")
) {
return call;
}
return assertThisInitialized(self);
}
module.exports = _possibleConstructorReturn;
/***/
},
/***/ 990: /***/ function (module) {
function _setPrototypeOf(o, p) {
module.exports = _setPrototypeOf =
Object.setPrototypeOf ||
function _setPrototypeOf(o, p) {
o.__proto__ = p;
return o;
};
return _setPrototypeOf(o, p);
}
module.exports = _setPrototypeOf;
/***/
},
/***/ 3408: /***/ function (
module,
__unused_webpack_exports,
__webpack_require__
) {
var arrayWithHoles = __webpack_require__(4325);
var iterableToArrayLimit = __webpack_require__(1682);
var unsupportedIterableToArray = __webpack_require__(2510);
var nonIterableRest = __webpack_require__(1420);
function _slicedToArray(arr, i) {
return (
arrayWithHoles(arr) ||
iterableToArrayLimit(arr, i) ||
unsupportedIterableToArray(arr, i) ||
nonIterableRest()
);
}
module.exports = _slicedToArray;
/***/
},
/***/ 9571: /***/ function (
module,
__unused_webpack_exports,
__webpack_require__
) {
var arrayWithoutHoles = __webpack_require__(123);
var iterableToArray = __webpack_require__(6506);
var unsupportedIterableToArray = __webpack_require__(2510);
var nonIterableSpread = __webpack_require__(7331);
function _toConsumableArray(arr) {
return (
arrayWithoutHoles(arr) ||
iterableToArray(arr) ||
unsupportedIterableToArray(arr) ||
nonIterableSpread()
);
}
module.exports = _toConsumableArray;
/***/
},
/***/ 7002: /***/ function (module) {
function _typeof(obj) {
"@babel/helpers - typeof";
if (
typeof Symbol === "function" &&
typeof Symbol.iterator === "symbol"
) {
module.exports = _typeof = function _typeof(obj) {
return typeof obj;
};
} else {
module.exports = _typeof = function _typeof(obj) {
return obj &&
typeof Symbol === "function" &&
obj.constructor === Symbol &&
obj !== Symbol.prototype
? "symbol"
: typeof obj;
};
}
return _typeof(obj);
}
module.exports = _typeof;
/***/
},
/***/ 2510: /***/ function (
module,
__unused_webpack_exports,
__webpack_require__
) {
var arrayLikeToArray = __webpack_require__(4291);
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);
}
module.exports = _unsupportedIterableToArray;
/***/
},
/***/ 8545: /***/ function (
module,
__unused_webpack_exports,
__webpack_require__
) {
var getPrototypeOf = __webpack_require__(852);
var setPrototypeOf = __webpack_require__(990);
var isNativeFunction = __webpack_require__(6571);
var construct = __webpack_require__(4096);
function _wrapNativeSuper(Class) {
var _cache = typeof Map === "function" ? new Map() : undefined;
module.exports = _wrapNativeSuper = function _wrapNativeSuper(
Class
) {
if (Class === null || !isNativeFunction(Class))
return Class;
if (typeof Class !== "function") {
throw new TypeError(
"Super expression must either be null or a function"
);
}
if (typeof _cache !== "undefined") {
if (_cache.has(Class)) return _cache.get(Class);
_cache.set(Class, Wrapper);
}
function Wrapper() {
return construct(
Class,
arguments,
getPrototypeOf(this).constructor
);
}
Wrapper.prototype = Object.create(Class.prototype, {
constructor: {
value: Wrapper,
enumerable: false,
writable: true,
configurable: true,
},
});
return setPrototypeOf(Wrapper, Class);
};
return _wrapNativeSuper(Class);
}
module.exports = _wrapNativeSuper;
/***/
},
/***/ 7945: /***/ function (
module,
__unused_webpack_exports,
__webpack_require__
) {
module.exports = __webpack_require__(1602);
/***/
},
/***/ 1602: /***/ function (module) {
/**
* Copyright (c) 2014-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
var runtime = (function (exports) {
"use strict";
var Op = Object.prototype;
var hasOwn = Op.hasOwnProperty;
var undefined; // More compressible than void 0.
var $Symbol = typeof Symbol === "function" ? Symbol : {};
var iteratorSymbol = $Symbol.iterator || "@@iterator";
var asyncIteratorSymbol =
$Symbol.asyncIterator || "@@asyncIterator";
var toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
function wrap(innerFn, outerFn, self, tryLocsList) {
// If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator.
var protoGenerator =
outerFn && outerFn.prototype instanceof Generator
? outerFn
: Generator;
var generator = Object.create(protoGenerator.prototype);
var context = new Context(tryLocsList || []);
// The ._invoke method unifies the implementations of the .next,
// .throw, and .return methods.
generator._invoke = makeInvokeMethod(
innerFn,
self,
context
);
return generator;
}
exports.wrap = wrap;
// Try/catch helper to minimize deoptimizations. Returns a completion
// record like context.tryEntries[i].completion. This interface could
// have been (and was previously) designed to take a closure to be
// invoked without arguments, but in all the cases we care about we
// already have an existing method we want to call, so there's no need
// to create a new function object. We can even get away with assuming
// the method takes exactly one argument, since that happens to be true
// in every case, so we don't have to touch the arguments object. The
// only additional allocation required is the completion record, which
// has a stable shape and so hopefully should be cheap to allocate.
function tryCatch(fn, obj, arg) {
try {
return {
type: "normal",
arg: fn.call(obj, arg),
};
} catch (err) {
return {
type: "throw",
arg: err,
};
}
}
var GenStateSuspendedStart = "suspendedStart";
var GenStateSuspendedYield = "suspendedYield";
var GenStateExecuting = "executing";
var GenStateCompleted = "completed";
// Returning this object from the innerFn has the same effect as
// breaking out of the dispatch switch statement.
var ContinueSentinel = {};
// Dummy constructor functions that we use as the .constructor and
// .constructor.prototype properties for functions that return Generator
// objects. For full spec compliance, you may wish to configure your
// minifier not to mangle the names of these two functions.
function Generator() {}
function GeneratorFunction() {}
function GeneratorFunctionPrototype() {}
// This is a polyfill for %IteratorPrototype% for environments that
// don't natively support it.
var IteratorPrototype = {};
IteratorPrototype[iteratorSymbol] = function () {
return this;
};
var getProto = Object.getPrototypeOf;
var NativeIteratorPrototype =
getProto && getProto(getProto(values([])));
if (
NativeIteratorPrototype &&
NativeIteratorPrototype !== Op &&
hasOwn.call(NativeIteratorPrototype, iteratorSymbol)
) {
// This environment has a native %IteratorPrototype%; use it instead
// of the polyfill.
IteratorPrototype = NativeIteratorPrototype;
}
var Gp =
(GeneratorFunctionPrototype.prototype =
Generator.prototype =
Object.create(IteratorPrototype));
GeneratorFunction.prototype = Gp.constructor =
GeneratorFunctionPrototype;
GeneratorFunctionPrototype.constructor = GeneratorFunction;
GeneratorFunctionPrototype[toStringTagSymbol] =
GeneratorFunction.displayName = "GeneratorFunction";
// Helper for defining the .next, .throw, and .return methods of the
// Iterator interface in terms of a single ._invoke method.
function defineIteratorMethods(prototype) {
["next", "throw", "return"].forEach(function (method) {
prototype[method] = function (arg) {
return this._invoke(method, arg);
};
});
}
exports.isGeneratorFunction = function (genFun) {
var ctor =
typeof genFun === "function" && genFun.constructor;
return ctor
? ctor === GeneratorFunction ||
// For the native GeneratorFunction constructor, the best we can
// do is to check its .name property.
(ctor.displayName || ctor.name) ===
"GeneratorFunction"
: false;
};
exports.mark = function (genFun) {
if (Object.setPrototypeOf) {
Object.setPrototypeOf(
genFun,
GeneratorFunctionPrototype
);
} else {
genFun.__proto__ = GeneratorFunctionPrototype;
if (!(toStringTagSymbol in genFun)) {
genFun[toStringTagSymbol] = "GeneratorFunction";
}
}
genFun.prototype = Object.create(Gp);
return genFun;
};
// Within the body of any async function, `await x` is transformed to
// `yield regeneratorRuntime.awrap(x)`, so that the runtime can test
// `hasOwn.call(value, "__await")` to determine if the yielded value is
// meant to be awaited.
exports.awrap = function (arg) {
return {
__await: arg,
};
};
function AsyncIterator(generator, PromiseImpl) {
function invoke(method, arg, resolve, reject) {
var record = tryCatch(
generator[method],
generator,
arg
);
if (record.type === "throw") {
reject(record.arg);
} else {
var result = record.arg;
var value = result.value;
if (
value &&
typeof value === "object" &&
hasOwn.call(value, "__await")
) {
return PromiseImpl.resolve(value.__await).then(
function (value) {
invoke("next", value, resolve, reject);
},
function (err) {
invoke("throw", err, resolve, reject);
}
);
}
return PromiseImpl.resolve(value).then(
function (unwrapped) {
// When a yielded Promise is resolved, its final value becomes
// the .value of the Promise<{value,done}> result for the
// current iteration.
result.value = unwrapped;
resolve(result);
},
function (error) {
// If a rejected Promise was yielded, throw the rejection back
// into the async generator function so it can be handled there.
return invoke(
"throw",
error,
resolve,
reject
);
}
);
}
}
var previousPromise;
function enqueue(method, arg) {
function callInvokeWithMethodAndArg() {
return new PromiseImpl(function (resolve, reject) {
invoke(method, arg, resolve, reject);
});
}
return (previousPromise =
// If enqueue has been called before, then we want to wait until
// all previous Promises have been resolved before calling invoke,
// so that results are always delivered in the correct order. If
// enqueue has not been called before, then it is important to
// call invoke immediately, without waiting on a callback to fire,
// so that the async generator function has the opportunity to do
// any necessary setup in a predictable way. This predictability
// is why the Promise constructor synchronously invokes its
// executor callback, and why async functions synchronously
// execute code before the first await. Since we implement simple
// async functions in terms of async generators, it is especially
// important to get this right, even though it requires care.
previousPromise
? previousPromise.then(
callInvokeWithMethodAndArg,
// Avoid propagating failures to Promises returned by later
// invocations of the iterator.
callInvokeWithMethodAndArg
)
: callInvokeWithMethodAndArg());
}
// Define the unified helper method that is used to implement .next,
// .throw, and .return (see defineIteratorMethods).
this._invoke = enqueue;
}
defineIteratorMethods(AsyncIterator.prototype);
AsyncIterator.prototype[asyncIteratorSymbol] = function () {
return this;
};
exports.AsyncIterator = AsyncIterator;
// Note that simple async functions are implemented on top of
// AsyncIterator objects; they just return a Promise for the value of
// the final result produced by the iterator.
exports.async = function (
innerFn,
outerFn,
self,
tryLocsList,
PromiseImpl
) {
if (PromiseImpl === void 0) PromiseImpl = Promise;
var iter = new AsyncIterator(
wrap(innerFn, outerFn, self, tryLocsList),
PromiseImpl
);
return exports.isGeneratorFunction(outerFn)
? iter // If outerFn is a generator, return the full iterator.
: iter.next().then(function (result) {
return result.done ? result.value : iter.next();
});
};
function makeInvokeMethod(innerFn, self, context) {
var state = GenStateSuspendedStart;
return function invoke(method, arg) {
if (state === GenStateExecuting) {
throw new Error("Generator is already running");
}
if (state === GenStateCompleted) {
if (method === "throw") {
throw arg;
}
// Be forgiving, per 25.3.3.3.3 of the spec:
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume
return doneResult();
}
context.method = method;
context.arg = arg;
while (true) {
var delegate = context.delegate;
if (delegate) {
var delegateResult = maybeInvokeDelegate(
delegate,
context
);
if (delegateResult) {
if (delegateResult === ContinueSentinel)
continue;
return delegateResult;
}
}
if (context.method === "next") {
// Setting context._sent for legacy support of Babel's
// function.sent implementation.
context.sent = context._sent = context.arg;
} else if (context.method === "throw") {
if (state === GenStateSuspendedStart) {
state = GenStateCompleted;
throw context.arg;
}
context.dispatchException(context.arg);
} else if (context.method === "return") {
context.abrupt("return", context.arg);
}
state = GenStateExecuting;
var record = tryCatch(innerFn, self, context);
if (record.type === "normal") {
// If an exception is thrown from innerFn, we leave state ===
// GenStateExecuting and loop back for another invocation.
state = context.done
? GenStateCompleted
: GenStateSuspendedYield;
if (record.arg === ContinueSentinel) {
continue;
}
return {
value: record.arg,
done: context.done,
};
} else if (record.type === "throw") {
state = GenStateCompleted;
// Dispatch the exception by looping back around to the
// context.dispatchException(context.arg) call above.
context.method = "throw";
context.arg = record.arg;
}
}
};
}
// Call delegate.iterator[context.method](context.arg) and handle the
// result, either by returning a { value, done } result from the
// delegate iterator, or by modifying context.method and context.arg,
// setting context.delegate to null, and returning the ContinueSentinel.
function maybeInvokeDelegate(delegate, context) {
var method = delegate.iterator[context.method];
if (method === undefined) {
// A .throw or .return when the delegate iterator has no .throw
// method always terminates the yield* loop.
context.delegate = null;
if (context.method === "throw") {
// Note: ["return"] must be used for ES3 parsing compatibility.
if (delegate.iterator["return"]) {
// If the delegate iterator has a return method, give it a
// chance to clean up.
context.method = "return";
context.arg = undefined;
maybeInvokeDelegate(delegate, context);
if (context.method === "throw") {
// If maybeInvokeDelegate(context) changed context.method from
// "return" to "throw", let that override the TypeError below.
return ContinueSentinel;
}
}
context.method = "throw";
context.arg = new TypeError(
"The iterator does not provide a 'throw' method"
);
}
return ContinueSentinel;
}
var record = tryCatch(
method,
delegate.iterator,
context.arg
);
if (record.type === "throw") {
context.method = "throw";
context.arg = record.arg;
context.delegate = null;
return ContinueSentinel;
}
var info = record.arg;
if (!info) {
context.method = "throw";
context.arg = new TypeError(
"iterator result is not an object"
);
context.delegate = null;
return ContinueSentinel;
}
if (info.done) {
// Assign the result of the finished delegate to the temporary
// variable specified by delegate.resultName (see delegateYield).
context[delegate.resultName] = info.value;
// Resume execution at the desired location (see delegateYield).
context.next = delegate.nextLoc;
// If context.method was "throw" but the delegate handled the
// exception, let the outer generator proceed normally. If
// context.method was "next", forget context.arg since it has been
// "consumed" by the delegate iterator. If context.method was
// "return", allow the original .return call to continue in the
// outer generator.
if (context.method !== "return") {
context.method = "next";
context.arg = undefined;
}
} else {
// Re-yield the result returned by the delegate method.
return info;
}
// The delegate iterator is finished, so forget it and continue with
// the outer generator.
context.delegate = null;
return ContinueSentinel;
}
// Define Generator.prototype.{next,throw,return} in terms of the
// unified ._invoke helper method.
defineIteratorMethods(Gp);
Gp[toStringTagSymbol] = "Generator";
// A Generator should always return itself as the iterator object when the
// @@iterator function is called on it. Some browsers' implementations of the
// iterator prototype chain incorrectly implement this, causing the Generator
// object to not be returned from this call. This ensures that doesn't happen.
// See https://github.com/facebook/regenerator/issues/274 for more details.
Gp[iteratorSymbol] = function () {
return this;
};
Gp.toString = function () {
return "[object Generator]";
};
function pushTryEntry(locs) {
var entry = {
tryLoc: locs[0],
};
if (1 in locs) {
entry.catchLoc = locs[1];
}
if (2 in locs) {
entry.finallyLoc = locs[2];
entry.afterLoc = locs[3];
}
this.tryEntries.push(entry);
}
function resetTryEntry(entry) {
var record = entry.completion || {};
record.type = "normal";
delete record.arg;
entry.completion = record;
}
function Context(tryLocsList) {
// The root entry object (effectively a try statement without a catch
// or a finally block) gives us a place to store values thrown from
// locations where there is no enclosing try statement.
this.tryEntries = [
{
tryLoc: "root",
},
];
tryLocsList.forEach(pushTryEntry, this);
this.reset(true);
}
exports.keys = function (object) {
var keys = [];
for (var key in object) {
keys.push(key);
}
keys.reverse();
// Rather than returning an object with a next method, we keep
// things simple and return the next function itself.
return function next() {
while (keys.length) {
var key = keys.pop();
if (key in object) {
next.value = key;
next.done = false;
return next;
}
}
// To avoid creating an additional object, we just hang the .value
// and .done properties off the next function object itself. This
// also ensures that the minifier will not anonymize the function.
next.done = true;
return next;
};
};
function values(iterable) {
if (iterable) {
var iteratorMethod = iterable[iteratorSymbol];
if (iteratorMethod) {
return iteratorMethod.call(iterable);
}
if (typeof iterable.next === "function") {
return iterable;
}
if (!isNaN(iterable.length)) {
var i = -1,
next = function next() {
while (++i < iterable.length) {
if (hasOwn.call(iterable, i)) {
next.value = iterable[i];
next.done = false;
return next;
}
}
next.value = undefined;
next.done = true;
return next;
};
return (next.next = next);
}
}
// Return an iterator with no values.
return {
next: doneResult,
};
}
exports.values = values;
function doneResult() {
return {
value: undefined,
done: true,
};
}
Context.prototype = {
constructor: Context,
reset: function (skipTempReset) {
this.prev = 0;
this.next = 0;
// Resetting context._sent for legacy support of Babel's
// function.sent implementation.
this.sent = this._sent = undefined;
this.done = false;
this.delegate = null;
this.method = "next";
this.arg = undefined;
this.tryEntries.forEach(resetTryEntry);
if (!skipTempReset) {
for (var name in this) {
// Not sure about the optimal order of these conditions:
if (
name.charAt(0) === "t" &&
hasOwn.call(this, name) &&
!isNaN(+name.slice(1))
) {
this[name] = undefined;
}
}
}
},
stop: function () {
this.done = true;
var rootEntry = this.tryEntries[0];
var rootRecord = rootEntry.completion;
if (rootRecord.type === "throw") {
throw rootRecord.arg;
}
return this.rval;
},
dispatchException: function (exception) {
if (this.done) {
throw exception;
}
var context = this;
function handle(loc, caught) {
record.type = "throw";
record.arg = exception;
context.next = loc;
if (caught) {
// If the dispatched exception was caught by a catch block,
// then let that catch block handle the exception normally.
context.method = "next";
context.arg = undefined;
}
return !!caught;
}
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
var entry = this.tryEntries[i];
var record = entry.completion;
if (entry.tryLoc === "root") {
// Exception thrown outside of any try block that could handle
// it, so set the completion value of the entire function to
// throw the exception.
return handle("end");
}
if (entry.tryLoc <= this.prev) {
var hasCatch = hasOwn.call(entry, "catchLoc");
var hasFinally = hasOwn.call(
entry,
"finallyLoc"
);
if (hasCatch && hasFinally) {
if (this.prev < entry.catchLoc) {
return handle(entry.catchLoc, true);
} else if (this.prev < entry.finallyLoc) {
return handle(entry.finallyLoc);
}
} else if (hasCatch) {
if (this.prev < entry.catchLoc) {
return handle(entry.catchLoc, true);
}
} else if (hasFinally) {
if (this.prev < entry.finallyLoc) {
return handle(entry.finallyLoc);
}
} else {
throw new Error(
"try statement without catch or finally"
);
}
}
}
},
abrupt: function (type, arg) {
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
var entry = this.tryEntries[i];
if (
entry.tryLoc <= this.prev &&
hasOwn.call(entry, "finallyLoc") &&
this.prev < entry.finallyLoc
) {
var finallyEntry = entry;
break;
}
}
if (
finallyEntry &&
(type === "break" || type === "continue") &&
finallyEntry.tryLoc <= arg &&
arg <= finallyEntry.finallyLoc
) {
// Ignore the finally entry if control is not jumping to a
// location outside the try/catch block.
finallyEntry = null;
}
var record = finallyEntry
? finallyEntry.completion
: {};
record.type = type;
record.arg = arg;
if (finallyEntry) {
this.method = "next";
this.next = finallyEntry.finallyLoc;
return ContinueSentinel;
}
return this.complete(record);
},
complete: function (record, afterLoc) {
if (record.type === "throw") {
throw record.arg;
}
if (
record.type === "break" ||
record.type === "continue"
) {
this.next = record.arg;
} else if (record.type === "return") {
this.rval = this.arg = record.arg;
this.method = "return";
this.next = "end";
} else if (record.type === "normal" && afterLoc) {
this.next = afterLoc;
}
return ContinueSentinel;
},
finish: function (finallyLoc) {
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
var entry = this.tryEntries[i];
if (entry.finallyLoc === finallyLoc) {
this.complete(entry.completion, entry.afterLoc);
resetTryEntry(entry);
return ContinueSentinel;
}
}
},
catch: function (tryLoc) {
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
var entry = this.tryEntries[i];
if (entry.tryLoc === tryLoc) {
var record = entry.completion;
if (record.type === "throw") {
var thrown = record.arg;
resetTryEntry(entry);
}
return thrown;
}
}
// The context.catch method must only be called with a location
// argument that corresponds to a known catch block.
throw new Error("illegal catch attempt");
},
delegateYield: function (iterable, resultName, nextLoc) {
this.delegate = {
iterator: values(iterable),
resultName: resultName,
nextLoc: nextLoc,
};
if (this.method === "next") {
// Deliberately forget the last sent value so that we don't
// accidentally pass it on to the delegate.
this.arg = undefined;
}
return ContinueSentinel;
},
};
// Regardless of whether this script is executing as a CommonJS module
// or not, return the runtime object so that we can declare the variable
// regeneratorRuntime in the outer scope, which allows this module to be
// injected easily by `bin/regenerator --include-runtime script.js`.
return exports;
})(
// If this script is executing as a CommonJS module, use module.exports
// as the regeneratorRuntime namespace. Otherwise create a new empty
// object. Either way, the resulting object will be used to initialize
// the regeneratorRuntime variable at the top of this file.
true ? module.exports : 0
);
try {
regeneratorRuntime = runtime;
} catch (accidentalStrictMode) {
// This module should not be running in strict mode, so the above
// assignment should always work unless something is misconfigured. Just
// in case runtime.js accidentally runs in strict mode, we can escape
// strict mode using a global Function call. This could conceivably fail
// if a Content Security Policy forbids using Function, but in that case
// the proper solution is to fix the accidental strict mode problem. If
// you've misconfigured your bundler to force strict mode and applied a
// CSP to forbid Function, and you're not willing to fix either of those
// problems, please detail your unique predicament in a GitHub issue.
Function("r", "regeneratorRuntime = r")(runtime);
}
/***/
},
/***/ 5193: /***/ function () {
"trimStart" in String.prototype ||
(String.prototype.trimStart = String.prototype.trimLeft),
"trimEnd" in String.prototype ||
(String.prototype.trimEnd = String.prototype.trimRight),
"description" in Symbol.prototype ||
Object.defineProperty(Symbol.prototype, "description", {
configurable: !0,
get: function () {
var t = /\((.*)\)/.exec(this.toString());
return t ? t[1] : void 0;
},
}),
Array.prototype.flat ||
((Array.prototype.flat = function (t, r) {
return (
(r = this.concat.apply([], this)),
t > 1 && r.some(Array.isArray) ? r.flat(t - 1) : r
);
}),
(Array.prototype.flatMap = function (t, r) {
return this.map(t, r).flat();
})),
Promise.prototype.finally ||
(Promise.prototype.finally = function (t) {
if ("function" != typeof t) return this.then(t, t);
var r = this.constructor || Promise;
return this.then(
function (o) {
return r.resolve(t()).then(function () {
return o;
});
},
function (o) {
return r.resolve(t()).then(function () {
throw o;
});
}
);
});
/***/
},
/***/ 4424: /***/ function (__unused_webpack_module, exports) {
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true,
});
exports.default = initHeadManager;
exports.DOMAttributeNames = void 0;
var DOMAttributeNames = {
acceptCharset: "accept-charset",
className: "class",
htmlFor: "for",
httpEquiv: "http-equiv",
noModule: "noModule",
};
exports.DOMAttributeNames = DOMAttributeNames;
function reactElementToDOM(_ref) {
var type = _ref.type,
props = _ref.props;
var el = document.createElement(type);
for (var p in props) {
if (!props.hasOwnProperty(p)) continue;
if (p === "children" || p === "dangerouslySetInnerHTML")
continue; // we don't render undefined props to the DOM
if (props[p] === undefined) continue;
var attr = DOMAttributeNames[p] || p.toLowerCase();
if (
type === "script" &&
(attr === "async" ||
attr === "defer" ||
attr === "noModule")
) {
el[attr] = !!props[p];
} else {
el.setAttribute(attr, props[p]);
}
}
var children = props.children,
dangerouslySetInnerHTML = props.dangerouslySetInnerHTML;
if (dangerouslySetInnerHTML) {
el.innerHTML = dangerouslySetInnerHTML.__html || "";
} else if (children) {
el.textContent =
typeof children === "string"
? children
: Array.isArray(children)
? children.join("")
: "";
}
return el;
}
function updateElements(type, components) {
var headEl = document.getElementsByTagName("head")[0];
var headCountEl = headEl.querySelector(
"meta[name=next-head-count]"
);
if (false) {
}
var headCount = Number(headCountEl.content);
var oldTags = [];
for (
var i = 0, j = headCountEl.previousElementSibling;
i < headCount;
i++, j = j.previousElementSibling
) {
if (j.tagName.toLowerCase() === type) {
oldTags.push(j);
}
}
var newTags = components
.map(reactElementToDOM)
.filter(function (newTag) {
for (var k = 0, len = oldTags.length; k < len; k++) {
var oldTag = oldTags[k];
if (oldTag.isEqualNode(newTag)) {
oldTags.splice(k, 1);
return false;
}
}
return true;
});
oldTags.forEach(function (t) {
return t.parentNode.removeChild(t);
});
newTags.forEach(function (t) {
return headEl.insertBefore(t, headCountEl);
});
headCountEl.content = (
headCount -
oldTags.length +
newTags.length
).toString();
}
function initHeadManager() {
var updatePromise = null;
return {
mountedInstances: new Set(),
updateHead: function updateHead(head) {
var promise = (updatePromise = Promise.resolve().then(
function () {
if (promise !== updatePromise) return;
updatePromise = null;
var tags = {};
head.forEach(function (h) {
if (
// If the font tag is loaded only on client navigation
// it won't be inlined. In this case revert to the original behavior
h.type === "link" &&
h.props["data-optimized-fonts"] &&
!document.querySelector(
'style[data-href="'.concat(
h.props["data-href"],
'"]'
)
)
) {
h.props.href = h.props["data-href"];
h.props["data-href"] = undefined;
}
var components = tags[h.type] || [];
components.push(h);
tags[h.type] = components;
});
var titleComponent = tags.title
? tags.title[0]
: null;
var title = "";
if (titleComponent) {
var children =
titleComponent.props.children;
title =
typeof children === "string"
? children
: Array.isArray(children)
? children.join("")
: "";
}
if (title !== document.title)
document.title = title;
[
"meta",
"base",
"link",
"style",
"script",
].forEach(function (type) {
updateElements(type, tags[type] || []);
});
}
));
},
};
}
/***/
},
/***/ 9201: /***/ function (
__unused_webpack_module,
exports,
__webpack_require__
) {
"use strict";
var _regeneratorRuntime = __webpack_require__(7945);
var _classCallCheck = __webpack_require__(4988);
var _createClass = __webpack_require__(9590);
var _inherits = __webpack_require__(4546);
var _possibleConstructorReturn = __webpack_require__(1581);
var _getPrototypeOf = __webpack_require__(852);
var _slicedToArray = __webpack_require__(3408);
function _createSuper(Derived) {
var hasNativeReflectConstruct = _isNativeReflectConstruct();
return function _createSuperInternal() {
var Super = _getPrototypeOf(Derived),
result;
if (hasNativeReflectConstruct) {
var NewTarget = _getPrototypeOf(this).constructor;
result = Reflect.construct(Super, arguments, NewTarget);
} else {
result = Super.apply(this, arguments);
}
return _possibleConstructorReturn(this, result);
};
}
function _isNativeReflectConstruct() {
if (typeof Reflect === "undefined" || !Reflect.construct)
return false;
if (Reflect.construct.sham) return false;
if (typeof Proxy === "function") return true;
try {
Date.prototype.toString.call(
Reflect.construct(Date, [], function () {})
);
return true;
} catch (e) {
return false;
}
}
Object.defineProperty(exports, "__esModule", {
value: true,
});
exports.initNext = initNext;
exports.render = render;
exports.renderError = renderError;
exports.emitter = exports.version = exports.router = void 0;
__webpack_require__(5193);
var _react = _interopRequireDefault(__webpack_require__(2735));
var _reactDom = _interopRequireDefault(__webpack_require__(2788));
var _headManagerContext = __webpack_require__(1874);
var _mitt = _interopRequireDefault(__webpack_require__(4387));
var _routerContext = __webpack_require__(6857);
var _router = __webpack_require__(1073);
var _isDynamic = __webpack_require__(2140);
var _querystring = __webpack_require__(6136);
var _runtimeConfig = __webpack_require__(3338);
var _utils = __webpack_require__(6373);
var _portal = __webpack_require__(3651);
var _headManager = _interopRequireDefault(
__webpack_require__(4424)
);
var _pageLoader = _interopRequireDefault(__webpack_require__(6042));
var _performanceRelayer = _interopRequireDefault(
__webpack_require__(8421)
);
var _routeAnnouncer = __webpack_require__(2450);
var _router1 = __webpack_require__(6409);
function asyncGeneratorStep(
gen,
resolve,
reject,
_next,
_throw,
key,
arg
) {
try {
var info = gen[key](arg);
var value = info.value;
} catch (error) {
reject(error);
return;
}
if (info.done) {
resolve(value);
} else {
Promise.resolve(value).then(_next, _throw);
}
}
function _asyncToGenerator(fn) {
return function () {
var self = this,
args = arguments;
return new Promise(function (resolve, reject) {
var gen = fn.apply(self, args);
function _next(value) {
asyncGeneratorStep(
gen,
resolve,
reject,
_next,
_throw,
"next",
value
);
}
function _throw(err) {
asyncGeneratorStep(
gen,
resolve,
reject,
_next,
_throw,
"throw",
err
);
}
_next(undefined);
});
};
}
function _defineProperty(obj, key, value) {
if (key in obj) {
Object.defineProperty(obj, key, {
value: value,
enumerable: true,
configurable: true,
writable: true,
});
} else {
obj[key] = value;
}
return obj;
}
function _interopRequireDefault(obj) {
return obj && obj.__esModule
? obj
: {
default: obj,
};
}
function _interopRequireWildcard(obj) {
if (obj && obj.__esModule) {
return obj;
} else {
var newObj = {};
if (obj != null) {
for (var key in obj) {
if (
Object.prototype.hasOwnProperty.call(obj, key)
) {
var desc =
Object.defineProperty &&
Object.getOwnPropertyDescriptor
? Object.getOwnPropertyDescriptor(
obj,
key
)
: {};
if (desc.get || desc.set) {
Object.defineProperty(newObj, key, desc);
} else {
newObj[key] = obj[key];
}
}
}
}
newObj["default"] = obj;
return newObj;
}
}
function _objectSpread(target) {
for (var i = 1; i < arguments.length; i++) {
var source = arguments[i] != null ? arguments[i] : {};
var ownKeys = Object.keys(source);
if (typeof Object.getOwnPropertySymbols === "function") {
ownKeys = ownKeys.concat(
Object.getOwnPropertySymbols(source).filter(
function (sym) {
return Object.getOwnPropertyDescriptor(
source,
sym
).enumerable;
}
)
);
}
ownKeys.forEach(function (key) {
_defineProperty(target, key, source[key]);
});
}
return target;
}
var data = JSON.parse(
document.getElementById("__NEXT_DATA__").textContent
);
window.__NEXT_DATA__ = data;
var version = "11.0.2-canary.24";
exports.version = version;
var looseToArray = function looseToArray(input) {
return [].slice.call(input);
};
var hydrateProps = data.props,
hydrateErr = data.err,
page = data.page,
query = data.query,
buildId = data.buildId,
assetPrefix = data.assetPrefix,
runtimeConfig = data.runtimeConfig,
dynamicIds = data.dynamicIds,
isFallback = data.isFallback,
locale = data.locale,
locales = data.locales,
domainLocales = data.domainLocales,
isPreview = data.isPreview;
var defaultLocale = data.defaultLocale;
var prefix = assetPrefix || ""; // With dynamic assetPrefix it's no longer possible to set assetPrefix at the build time
// So, this is how we do it in the client side at runtime
__webpack_require__.p = "".concat(prefix, "/_next/"); //line // Initialize next/config with the environment configuration
(0, _runtimeConfig).setConfig({
serverRuntimeConfig: {},
publicRuntimeConfig: runtimeConfig || {},
});
var asPath = (0, _utils).getURL(); // make sure not to attempt stripping basePath for 404s
if ((0, _router).hasBasePath(asPath)) {
asPath = (0, _router).delBasePath(asPath);
}
if (false) {
var detectedDomain,
localePathResult,
parsedAs,
_require4,
formatUrl,
_require3,
parseRelativeUrl,
_require2,
detectDomainLocale,
_require,
normalizeLocalePath;
}
if (data.scriptLoader) {
var _require5 = __webpack_require__(4843),
initScriptLoader = _require5.initScriptLoader;
initScriptLoader(data.scriptLoader);
}
var pageLoader = new _pageLoader["default"](buildId, prefix);
var register = function register(_ref) {
var _ref2 = _slicedToArray(_ref, 2),
r = _ref2[0],
f = _ref2[1];
return pageLoader.routeLoader.onEntrypoint(r, f);
};
if (window.__NEXT_P) {
// Defer page registration for another tick. This will increase the overall
// latency in hydrating the page, but reduce the total blocking time.
window.__NEXT_P.map(function (p) {
return setTimeout(function () {
return register(p);
}, 0);
});
}
window.__NEXT_P = [];
window.__NEXT_P.push = register;
var headManager = (0, _headManager)["default"]();
var appElement = document.getElementById("__next");
var _lastRenderReject;
var webpackHMR;
var router;
exports.router = router;
var CachedApp, onPerfEntry;
var Container = /*#__PURE__*/ (function (_react$default$Compon) {
_inherits(Container, _react$default$Compon);
var _super = _createSuper(Container);
function Container() {
_classCallCheck(this, Container);
return _super.apply(this, arguments);
}
_createClass(Container, [
{
key: "componentDidCatch",
value: function componentDidCatch(componentErr, info) {
this.props.fn(componentErr, info);
},
},
{
key: "componentDidMount",
value: function componentDidMount() {
this.scrollToHash(); // We need to replace the router state if:
// - the page was (auto) exported and has a query string or search (hash)
// - it was auto exported and is a dynamic route (to provide params)
// - if it is a client-side skeleton (fallback render)
if (
router.isSsr && // We don't update for 404 requests as this can modify
// the asPath unexpectedly e.g. adding basePath when
// it wasn't originally present
page !== "/404" &&
!(
page === "/_error" &&
hydrateProps &&
hydrateProps.pageProps &&
hydrateProps.pageProps.statusCode === 404
) &&
(isFallback ||
(data.nextExport &&
((0, _isDynamic).isDynamicRoute(
router.pathname
) ||
location.search ||
false)) ||
(hydrateProps &&
hydrateProps.__N_SSG &&
(location.search || false)))
) {
// update query on mount for exported pages
router.replace(
router.pathname +
"?" +
String(
(0, _querystring).assign(
(0,
_querystring).urlQueryToSearchParams(
router.query
),
new URLSearchParams(
location.search
)
)
),
asPath,
{
// @ts-ignore
// WARNING: `_h` is an internal option for handing Next.js
// client-side hydration. Your app should _never_ use this property.
// It may change at any time without notice.
_h: 1,
// Fallback pages must trigger the data fetch, so the transition is
// not shallow.
// Other pages (strictly updating query) happens shallowly, as data
// requirements would already be present.
shallow: !isFallback,
}
);
}
},
},
{
key: "componentDidUpdate",
value: function componentDidUpdate() {
this.scrollToHash();
},
},
{
key: "scrollToHash",
value: function scrollToHash() {
var _location = location,
hash = _location.hash;
hash = hash && hash.substring(1);
if (!hash) return;
var el = document.getElementById(hash);
if (!el) return; // If we call scrollIntoView() in here without a setTimeout
// it won't scroll properly.
setTimeout(function () {
return el.scrollIntoView();
}, 0);
},
},
{
key: "render",
value: function render() {
if (true) {
return this.props.children;
} else {
var _require6, ReactDevOverlay;
}
},
},
]);
return Container;
})(_react["default"].Component);
var emitter = (0, _mitt)["default"]();
exports.emitter = emitter;
var CachedComponent;
function _initNext() {
_initNext = _asyncToGenerator(
/*#__PURE__*/ _regeneratorRuntime.mark(function _callee() {
var opts,
initialErr,
appEntrypoint,
app,
mod,
pageEntrypoint,
_require7,
isValidElementType,
_require8,
getNodeError,
renderCtx,
_args = arguments;
return _regeneratorRuntime.wrap(
function _callee$(_context) {
while (1) {
switch ((_context.prev = _context.next)) {
case 0:
opts =
_args.length > 0 &&
_args[0] !== undefined
? _args[0]
: {};
// This makes sure this specific lines are removed in production
if (false) {
}
initialErr = hydrateErr;
_context.prev = 3;
_context.next = 6;
return pageLoader.routeLoader.whenEntrypoint(
"/_app"
);
case 6:
appEntrypoint = _context.sent;
if (!("error" in appEntrypoint)) {
_context.next = 9;
break;
}
throw appEntrypoint.error;
case 9:
(app = appEntrypoint.component),
(mod = appEntrypoint.exports);
CachedApp = app;
if (mod && mod.reportWebVitals) {
onPerfEntry =
function onPerfEntry(
_ref3
) {
var id = _ref3.id,
name = _ref3.name,
startTime =
_ref3.startTime,
value = _ref3.value,
duration =
_ref3.duration,
entryType =
_ref3.entryType,
entries =
_ref3.entries;
// Combines timestamp with random number for unique ID
var uniqueID = ""
.concat(
Date.now(),
"-"
)
.concat(
Math.floor(
Math.random() *
(9000000000000 -
1)
) +
1000000000000
);
var perfStartEntry;
if (
entries &&
entries.length
) {
perfStartEntry =
entries[0]
.startTime;
}
mod.reportWebVitals({
id: id || uniqueID,
name: name,
startTime:
startTime ||
perfStartEntry,
value:
value == null
? duration
: value,
label:
entryType ===
"mark" ||
entryType ===
"measure"
? "custom"
: "web-vital",
});
};
}
if (true) {
_context.next = 16;
break;
}
_context.t0 = {
error: hydrateErr,
};
_context.next = 19;
break;
case 16:
_context.next = 18;
return pageLoader.routeLoader.whenEntrypoint(
page
);
case 18:
_context.t0 = _context.sent;
case 19:
pageEntrypoint = _context.t0;
if (!("error" in pageEntrypoint)) {
_context.next = 22;
break;
}
throw pageEntrypoint.error;
case 22:
CachedComponent =
pageEntrypoint.component;
if (true) {
_context.next = 27;
break;
}
(_require7 = __webpack_require__(
Object(
(function webpackMissingModule() {
var e = new Error(
"Cannot find module 'react-is'"
);
e.code =
"MODULE_NOT_FOUND";
throw e;
})()
)
)),
(isValidElementType =
_require7.isValidElementType);
if (
isValidElementType(
CachedComponent
)
) {
_context.next = 27;
break;
}
throw new Error(
'The default export is not a React Component in page: "'.concat(
page,
'"'
)
);
case 27:
_context.next = 32;
break;
case 29:
_context.prev = 29;
_context.t1 = _context["catch"](3);
// This catches errors like throwing in the top level of a module
initialErr = _context.t1;
case 32:
if (false) {
}
if (!window.__NEXT_PRELOADREADY) {
_context.next = 36;
break;
}
_context.next = 36;
return window.__NEXT_PRELOADREADY(
dynamicIds
);
case 36:
exports.router = router = (0,
_router1).createRouter(
page,
query,
asPath,
{
initialProps: hydrateProps,
pageLoader: pageLoader,
App: CachedApp,
Component: CachedComponent,
wrapApp: wrapApp,
err: initialErr,
isFallback:
Boolean(isFallback),
subscription:
function subscription(
info,
App,
scroll
) {
return render(
Object.assign(
{},
info,
{
App: App,
scroll: scroll,
}
)
);
},
locale: locale,
locales: locales,
defaultLocale:
defaultLocale,
domainLocales:
domainLocales,
isPreview: isPreview,
}
);
renderCtx = {
App: CachedApp,
initial: true,
Component: CachedComponent,
props: hydrateProps,
err: initialErr,
};
if (false) {
}
render(renderCtx);
return _context.abrupt(
"return",
emitter
);
case 43:
return _context.abrupt("return", {
emitter: emitter,
renderCtx: renderCtx,
});
case 44:
case "end":
return _context.stop();
}
}
},
_callee,
null,
[[3, 29]]
);
})
);
return _initNext.apply(this, arguments);
}
function initNext() {
return _initNext.apply(this, arguments);
}
function _render() {
_render = _asyncToGenerator(
/*#__PURE__*/ _regeneratorRuntime.mark(function _callee2(
renderingProps
) {
return _regeneratorRuntime.wrap(
function _callee2$(_context2) {
while (1) {
switch ((_context2.prev = _context2.next)) {
case 0:
if (!renderingProps.err) {
_context2.next = 4;
break;
}
_context2.next = 3;
return renderError(renderingProps);
case 3:
return _context2.abrupt("return");
case 4:
_context2.prev = 4;
_context2.next = 7;
return doRender(renderingProps);
case 7:
_context2.next = 16;
break;
case 9:
_context2.prev = 9;
_context2.t0 =
_context2["catch"](4);
if (!_context2.t0.cancelled) {
_context2.next = 13;
break;
}
throw _context2.t0;
case 13:
if (false) {
}
_context2.next = 16;
return renderError(
_objectSpread(
{},
renderingProps,
{
err: _context2.t0,
}
)
);
case 16:
case "end":
return _context2.stop();
}
}
},
_callee2,
null,
[[4, 9]]
);
})
);
return _render.apply(this, arguments);
}
function render(renderingProps) {
return _render.apply(this, arguments);
}
function renderError(renderErrorProps) {
var App = renderErrorProps.App,
err = renderErrorProps.err; // In development runtime errors are caught by our overlay
// In production we catch runtime errors using componentDidCatch which will trigger renderError
if (false) {
} // Make sure we log the error to the console, otherwise users can't track down issues.
console.error(err);
return pageLoader
.loadPage("/_error")
.then(function (_ref4) {
var ErrorComponent = _ref4.page,
styleSheets = _ref4.styleSheets;
return (lastAppProps === null || lastAppProps === void 0
? void 0
: lastAppProps.Component) === ErrorComponent
? Promise.resolve()
.then(function () {
return _interopRequireWildcard(
__webpack_require__(4956)
);
})
.then(function (m) {
return {
ErrorComponent: m["default"],
styleSheets: [],
};
})
: {
ErrorComponent: ErrorComponent,
styleSheets: styleSheets,
};
})
.then(function (_ref5) {
var ErrorComponent = _ref5.ErrorComponent,
styleSheets = _ref5.styleSheets;
// In production we do a normal render with the `ErrorComponent` as component.
// If we've gotten here upon initial render, we can use the props from the server.
// Otherwise, we need to call `getInitialProps` on `App` before mounting.
var AppTree = wrapApp(App);
var appCtx = {
Component: ErrorComponent,
AppTree: AppTree,
router: router,
ctx: {
err: err,
pathname: page,
query: query,
asPath: asPath,
AppTree: AppTree,
},
};
return Promise.resolve(
renderErrorProps.props
? renderErrorProps.props
: (0, _utils).loadGetInitialProps(App, appCtx)
).then(function (initProps) {
return doRender(
_objectSpread({}, renderErrorProps, {
err: err,
Component: ErrorComponent,
styleSheets: styleSheets,
props: initProps,
})
);
});
});
}
var reactRoot = null; // On initial render a hydrate should always happen
var shouldHydrate = true;
function renderReactElement(domEl, fn) {
// mark start of hydrate/render
if (_utils.ST) {
performance.mark("beforeRender");
}
var reactEl = fn(
shouldHydrate ? markHydrateComplete : markRenderComplete
);
if (false) {
} else {
// The check for `.hydrate` is there to support React alternatives like preact
if (shouldHydrate) {
_reactDom["default"].hydrate(reactEl, domEl);
shouldHydrate = false;
} else {
_reactDom["default"].render(reactEl, domEl);
}
}
}
function markHydrateComplete() {
if (!_utils.ST) return;
performance.mark("afterHydrate"); // mark end of hydration
performance.measure(
"Next.js-before-hydration",
"navigationStart",
"beforeRender"
);
performance.measure(
"Next.js-hydration",
"beforeRender",
"afterHydrate"
);
if (onPerfEntry) {
performance
.getEntriesByName("Next.js-hydration")
.forEach(onPerfEntry);
}
clearMarks();
}
function markRenderComplete() {
if (!_utils.ST) return;
performance.mark("afterRender"); // mark end of render
var navStartEntries = performance.getEntriesByName(
"routeChange",
"mark"
);
if (!navStartEntries.length) return;
performance.measure(
"Next.js-route-change-to-render",
navStartEntries[0].name,
"beforeRender"
);
performance.measure(
"Next.js-render",
"beforeRender",
"afterRender"
);
if (onPerfEntry) {
performance
.getEntriesByName("Next.js-render")
.forEach(onPerfEntry);
performance
.getEntriesByName("Next.js-route-change-to-render")
.forEach(onPerfEntry);
}
clearMarks();
["Next.js-route-change-to-render", "Next.js-render"].forEach(
function (measure) {
return performance.clearMeasures(measure);
}
);
}
function clearMarks() {
[
"beforeRender",
"afterHydrate",
"afterRender",
"routeChange",
].forEach(function (mark) {
return performance.clearMarks(mark);
});
}
function AppContainer(_ref6) {
var children = _ref6.children;
return /*#__PURE__*/ _react["default"].createElement(
Container,
{
fn: function fn(error) {
return renderError({
App: CachedApp,
err: error,
})["catch"](function (err) {
return console.error(
"Error rendering page: ",
err
);
});
},
},
/*#__PURE__*/ _react["default"].createElement(
_routerContext.RouterContext.Provider,
{
value: (0, _router1).makePublicRouterInstance(
router
),
},
/*#__PURE__*/ _react["default"].createElement(
_headManagerContext.HeadManagerContext.Provider,
{
value: headManager,
},
children
)
)
);
}
var wrapApp = function wrapApp(App) {
return function (wrappedAppProps) {
var appProps = _objectSpread({}, wrappedAppProps, {
Component: CachedComponent,
err: hydrateErr,
router: router,
});
return /*#__PURE__*/ _react["default"].createElement(
AppContainer,
null,
/*#__PURE__*/ _react["default"].createElement(
App,
Object.assign({}, appProps)
)
);
};
};
var lastAppProps;
function doRender(input) {
var App = input.App,
Component = input.Component,
props = input.props,
err = input.err;
var styleSheets =
"initial" in input ? undefined : input.styleSheets;
Component = Component || lastAppProps.Component;
props = props || lastAppProps.props;
var appProps = _objectSpread({}, props, {
Component: Component,
err: err,
router: router,
}); // lastAppProps has to be set before ReactDom.render to account for ReactDom throwing an error.
lastAppProps = appProps;
var canceled = false;
var resolvePromise;
var renderPromise = new Promise(function (resolve, reject) {
if (_lastRenderReject) {
_lastRenderReject();
}
resolvePromise = function resolvePromise() {
_lastRenderReject = null;
resolve();
};
_lastRenderReject = function lastRenderReject() {
canceled = true;
_lastRenderReject = null;
var error = new Error("Cancel rendering route");
error.cancelled = true;
reject(error);
};
}); // This function has a return type to ensure it doesn't start returning a
// Promise. It should remain synchronous.
function onStart() {
if (
!styleSheets || // We use `style-loader` in development, so we don't need to do anything
// unless we're in production:
false
) {
return false;
}
var currentStyleTags = looseToArray(
document.querySelectorAll("style[data-n-href]")
);
var currentHrefs = new Set(
currentStyleTags.map(function (tag) {
return tag.getAttribute("data-n-href");
})
);
var noscript = document.querySelector(
"noscript[data-n-css]"
);
var nonce =
noscript === null || noscript === void 0
? void 0
: noscript.getAttribute("data-n-css");
styleSheets.forEach(function (_ref7) {
var href = _ref7.href,
text = _ref7.text;
if (!currentHrefs.has(href)) {
var styleTag = document.createElement("style");
styleTag.setAttribute("data-n-href", href);
styleTag.setAttribute("media", "x");
if (nonce) {
styleTag.setAttribute("nonce", nonce);
}
document.head.appendChild(styleTag);
styleTag.appendChild(document.createTextNode(text));
}
});
return true;
}
function onHeadCommit() {
if (
// We use `style-loader` in development, so we don't need to do anything
// unless we're in production:
true && // We can skip this during hydration. Running it wont cause any harm, but
// we may as well save the CPU cycles:
styleSheets && // Ensure this render was not canceled
!canceled
) {
var desiredHrefs = new Set(
styleSheets.map(function (s) {
return s.href;
})
);
var currentStyleTags = looseToArray(
document.querySelectorAll("style[data-n-href]")
);
var currentHrefs = currentStyleTags.map(function (tag) {
return tag.getAttribute("data-n-href");
}); // Toggle `<style>` tags on or off depending on if they're needed:
for (var idx = 0; idx < currentHrefs.length; ++idx) {
if (desiredHrefs.has(currentHrefs[idx])) {
currentStyleTags[idx].removeAttribute("media");
} else {
currentStyleTags[idx].setAttribute(
"media",
"x"
);
}
} // Reorder styles into intended order:
var referenceNode = document.querySelector(
"noscript[data-n-css]"
);
if (
// This should be an invariant:
referenceNode
) {
styleSheets.forEach(function (_ref8) {
var href = _ref8.href;
var targetTag = document.querySelector(
'style[data-n-href="'.concat(href, '"]')
);
if (
// This should be an invariant:
targetTag
) {
referenceNode.parentNode.insertBefore(
targetTag,
referenceNode.nextSibling
);
referenceNode = targetTag;
}
});
} // Finally, clean up server rendered stylesheets:
looseToArray(
document.querySelectorAll("link[data-n-p]")
).forEach(function (el) {
el.parentNode.removeChild(el);
}); // Force browser to recompute layout, which should prevent a flash of
// unstyled content:
getComputedStyle(document.body, "height");
}
if (input.scroll) {
window.scrollTo(input.scroll.x, input.scroll.y);
}
}
function onRootCommit() {
resolvePromise();
}
onStart();
var elem = /*#__PURE__*/ _react["default"].createElement(
_react["default"].Fragment,
null,
/*#__PURE__*/ _react["default"].createElement(Head, {
callback: onHeadCommit,
}),
/*#__PURE__*/ _react["default"].createElement(
AppContainer,
null,
/*#__PURE__*/ _react["default"].createElement(
App,
Object.assign({}, appProps)
),
/*#__PURE__*/ _react["default"].createElement(
_portal.Portal,
{
type: "next-route-announcer",
},
/*#__PURE__*/ _react["default"].createElement(
_routeAnnouncer.RouteAnnouncer,
null
)
)
)
); // We catch runtime errors using componentDidCatch which will trigger renderError
renderReactElement(appElement, function (callback) {
return /*#__PURE__*/ _react["default"].createElement(
Root,
{
callbacks: [callback, onRootCommit],
},
false ? /*#__PURE__*/ 0 : elem
);
});
return renderPromise;
}
function Root(_ref9) {
var callbacks = _ref9.callbacks,
children = _ref9.children;
// We use `useLayoutEffect` to guarantee the callbacks are executed
// as soon as React flushes the update
_react["default"].useLayoutEffect(
function () {
return callbacks.forEach(function (callback) {
return callback();
});
},
[callbacks]
);
if (undefined) {
// next-line react-hooks/rules-of-hooks
_react["default"].useEffect(function () {
window.__NEXT_HYDRATED = true;
if (window.__NEXT_HYDRATED_CB) {
window.__NEXT_HYDRATED_CB();
}
}, []);
} // We should ask to measure the Web Vitals after rendering completes so we
// don't cause any hydration delay:
_react["default"].useEffect(function () {
(0, _performanceRelayer)["default"](onPerfEntry);
}, []);
return children;
} // Dummy component that we render as a child of Root so that we can
// toggle the correct styles before the page is rendered.
function Head(_ref10) {
var callback = _ref10.callback;
// We use `useLayoutEffect` to guarantee the callback is executed
// as soon as React flushes the update.
_react["default"].useLayoutEffect(
function () {
return callback();
},
[callback]
);
return null;
}
/***/
},
/***/ 5079: /***/ function (
__unused_webpack_module,
__unused_webpack_exports,
__webpack_require__
) {
"use strict";
var _ = __webpack_require__(9201);
window.next = {
version: _.version,
// router is initialized later so it has to be live-binded
get router() {
return _.router;
},
emitter: _.emitter,
render: _.render,
renderError: _.renderError,
};
(0, _).initNext()["catch"](console.error);
/***/
},
/***/ 3342: /***/ function (__unused_webpack_module, exports) {
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true,
});
exports.removePathTrailingSlash = removePathTrailingSlash;
exports.normalizePathTrailingSlash = void 0;
function removePathTrailingSlash(path) {
return path.endsWith("/") && path !== "/"
? path.slice(0, -1)
: path;
}
var normalizePathTrailingSlash = false
? 0
: removePathTrailingSlash;
exports.normalizePathTrailingSlash = normalizePathTrailingSlash;
/***/
},
/***/ 6042: /***/ function (
__unused_webpack_module,
exports,
__webpack_require__
) {
"use strict";
var _classCallCheck = __webpack_require__(4988);
var _createClass = __webpack_require__(9590);
Object.defineProperty(exports, "__esModule", {
value: true,
});
exports.default = void 0;
var _router = __webpack_require__(1073);
var _getAssetPathFromRoute = _interopRequireDefault(
__webpack_require__(3794)
);
var _isDynamic = __webpack_require__(2140);
var _parseRelativeUrl = __webpack_require__(5284);
var _normalizeTrailingSlash = __webpack_require__(3342);
var _routeLoader = __webpack_require__(1740);
function _interopRequireDefault(obj) {
return obj && obj.__esModule
? obj
: {
default: obj,
};
}
function normalizeRoute(route) {
if (route[0] !== "/") {
throw new Error(
'Route name should start with a "/", got "'.concat(
route,
'"'
)
);
}
if (route === "/") return route;
return route.replace(/\/$/, "");
}
var PageLoader = /*#__PURE__*/ (function () {
_createClass(PageLoader, [
{
key: "getPageList",
value: function getPageList() {
if (true) {
return (0, _routeLoader)
.getClientBuildManifest()
.then(function (manifest) {
return manifest.sortedPages;
});
} else {
}
},
/**
* @param {string} href the route href (file-system path)
* @param {string} asPath the URL as shown in browser (virtual path); used for dynamic routes
* @returns {string}
*/
},
{
key: "getDataHref",
value: function getDataHref(href, asPath, ssg, locale) {
var _this = this;
var _parseRelativeUrl2 = (0,
_parseRelativeUrl).parseRelativeUrl(href),
hrefPathname = _parseRelativeUrl2.pathname,
query = _parseRelativeUrl2.query,
search = _parseRelativeUrl2.search;
var _parseRelativeUrl3 = (0,
_parseRelativeUrl).parseRelativeUrl(asPath),
asPathname = _parseRelativeUrl3.pathname;
var route = normalizeRoute(hrefPathname);
var getHrefForSlug = function getHrefForSlug(path) {
var dataRoute = (0, _getAssetPathFromRoute)[
"default"
](
(0,
_normalizeTrailingSlash).removePathTrailingSlash(
(0, _router).addLocale(path, locale)
),
".json"
);
return (0, _router).addBasePath(
"/_next/data/"
.concat(_this.buildId)
.concat(dataRoute)
.concat(ssg ? "" : search)
);
};
var isDynamic = (0, _isDynamic).isDynamicRoute(
route
);
var interpolatedRoute = isDynamic
? (0, _router).interpolateAs(
hrefPathname,
asPathname,
query
).result
: "";
return isDynamic
? interpolatedRoute &&
getHrefForSlug(interpolatedRoute)
: getHrefForSlug(route);
},
/**
* @param {string} route - the route (file-system path)
*/
},
{
key: "_isSsg",
value: function _isSsg(route) {
return this.promisedSsgManifest.then(function (s) {
return s.has(route);
});
},
},
{
key: "loadPage",
value: function loadPage(route) {
return this.routeLoader
.loadRoute(route)
.then(function (res) {
if ("component" in res) {
return {
page: res.component,
mod: res.exports,
styleSheets: res.styles.map(
function (o) {
return {
href: o.href,
text: o.content,
};
}
),
};
}
throw res.error;
});
},
},
{
key: "prefetch",
value: function prefetch(route) {
return this.routeLoader.prefetch(route);
},
},
]);
function PageLoader(buildId, assetPrefix) {
_classCallCheck(this, PageLoader);
this.routeLoader = (0, _routeLoader).createRouteLoader(
assetPrefix
);
this.buildId = buildId;
this.assetPrefix = assetPrefix;
/** @type {Promise<Set<string>>} */
this.promisedSsgManifest = new Promise(function (resolve) {
if (window.__SSG_MANIFEST) {
resolve(window.__SSG_MANIFEST);
} else {
window.__SSG_MANIFEST_CB = function () {
resolve(window.__SSG_MANIFEST);
};
}
});
}
return PageLoader;
})();
exports.default = PageLoader;
/***/
},
/***/ 8421: /***/ function (
__unused_webpack_module,
exports,
__webpack_require__
) {
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true,
});
exports.default = void 0;
var _webVitals = __webpack_require__(5549);
var initialHref = location.href;
var isRegistered = false;
var userReportHandler;
function onReport(metric) {
if (userReportHandler) {
userReportHandler(metric);
} // This code is not shipped, executed, or present in the client-side
// JavaScript bundle unless explicitly enabled in your application.
//
// When this feature is enabled, we'll make it very clear by printing a
// message during the build (`next build`).
if (false) {
var send, vitalsUrl, blob, body, fallbackSend;
}
}
var _default = function _default(onPerfEntry) {
// Update function if it changes:
userReportHandler = onPerfEntry; // Only register listeners once:
if (isRegistered) {
return;
}
isRegistered = true;
(0, _webVitals).getCLS(onReport);
(0, _webVitals).getFID(onReport);
(0, _webVitals).getFCP(onReport);
(0, _webVitals).getLCP(onReport);
(0, _webVitals).getTTFB(onReport);
};
exports.default = _default;
/***/
},
/***/ 3651: /***/ function (
__unused_webpack_module,
exports,
__webpack_require__
) {
"use strict";
var _slicedToArray = __webpack_require__(3408);
Object.defineProperty(exports, "__esModule", {
value: true,
});
exports.Portal = void 0;
var _react = _interopRequireDefault(__webpack_require__(2735));
var _reactDom = __webpack_require__(2788);
function _interopRequireDefault(obj) {
return obj && obj.__esModule
? obj
: {
default: obj,
};
}
var Portal = function Portal(_ref) {
var children = _ref.children,
type = _ref.type;
var portalNode = _react["default"].useRef(null);
var _react$default$useSta = _react["default"].useState(),
_react$default$useSta2 = _slicedToArray(
_react$default$useSta,
2
),
forceUpdate = _react$default$useSta2[1];
_react["default"].useEffect(
function () {
portalNode.current = document.createElement(type);
document.body.appendChild(portalNode.current);
forceUpdate({});
return function () {
if (portalNode.current) {
document.body.removeChild(portalNode.current);
}
};
},
[type]
);
return portalNode.current
? /*#__PURE__*/ (0, _reactDom).createPortal(
children,
portalNode.current
)
: null;
};
exports.Portal = Portal;
/***/
},
/***/ 6933: /***/ function (__unused_webpack_module, exports) {
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true,
});
exports.requestIdleCallback = exports.cancelIdleCallback = void 0;
var requestIdleCallback =
(typeof self !== "undefined" &&
self.requestIdleCallback &&
self.requestIdleCallback.bind(window)) ||
function (cb) {
var start = Date.now();
return setTimeout(function () {
cb({
didTimeout: false,
timeRemaining: function timeRemaining() {
return Math.max(0, 50 - (Date.now() - start));
},
});
}, 1);
};
exports.requestIdleCallback = requestIdleCallback;
var cancelIdleCallback =
(typeof self !== "undefined" &&
self.cancelIdleCallback &&
self.cancelIdleCallback.bind(window)) ||
function (id) {
return clearTimeout(id);
};
exports.cancelIdleCallback = cancelIdleCallback;
/***/
},
/***/ 2450: /***/ function (
__unused_webpack_module,
exports,
__webpack_require__
) {
"use strict";
var _slicedToArray = __webpack_require__(3408);
Object.defineProperty(exports, "__esModule", {
value: true,
});
exports.RouteAnnouncer = RouteAnnouncer;
exports.default = void 0;
var _react = _interopRequireDefault(__webpack_require__(2735));
var _router = __webpack_require__(6409);
function _interopRequireDefault(obj) {
return obj && obj.__esModule
? obj
: {
default: obj,
};
}
function RouteAnnouncer() {
var _useRouter = (0, _router).useRouter(),
asPath = _useRouter.asPath;
var _react$default$useSta = _react["default"].useState(""),
_react$default$useSta2 = _slicedToArray(
_react$default$useSta,
2
),
routeAnnouncement = _react$default$useSta2[0],
setRouteAnnouncement = _react$default$useSta2[1]; // Only announce the path change, but not for the first load because screen reader will do that automatically.
var initialPathLoaded = _react["default"].useRef(false); // Every time the path changes, announce the route change. The announcement will be prioritized by h1, then title
// (from metadata), and finally if those don't exist, then the pathName that is in the URL. This methodology is
// inspired by Marcy Sutton's accessible client routing user testing. More information can be found here:
// https://www.gatsbyjs.com/blog/2019-07-11-user-testing-accessible-client-routing/
_react["default"].useEffect(
function () {
if (!initialPathLoaded.current) {
initialPathLoaded.current = true;
return;
}
var newRouteAnnouncement;
var pageHeader = document.querySelector("h1");
if (pageHeader) {
newRouteAnnouncement =
pageHeader.innerText || pageHeader.textContent;
}
if (!newRouteAnnouncement) {
if (document.title) {
newRouteAnnouncement = document.title;
} else {
newRouteAnnouncement = asPath;
}
}
setRouteAnnouncement(newRouteAnnouncement);
}, // TODO: switch to pathname + query object of dynamic route requirements
[asPath]
);
return /*#__PURE__*/ _react["default"].createElement(
"p",
{
"aria-live": "assertive", // Make the announcement immediately.
id: "__next-route-announcer__",
role: "alert",
style: {
border: 0,
clip: "rect(0 0 0 0)",
height: "1px",
margin: "-1px",
overflow: "hidden",
padding: 0,
position: "absolute",
width: "1px",
// https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
whiteSpace: "nowrap",
wordWrap: "normal",
},
},
routeAnnouncement
);
}
var _default = RouteAnnouncer;
exports.default = _default;
/***/
},
/***/ 1740: /***/ function (
__unused_webpack_module,
exports,
__webpack_require__
) {
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true,
});
exports.markAssetError = markAssetError;
exports.isAssetError = isAssetError;
exports.getClientBuildManifest = getClientBuildManifest;
exports.createRouteLoader = createRouteLoader;
var _getAssetPathFromRoute = _interopRequireDefault(
__webpack_require__(3794)
);
var _requestIdleCallback = __webpack_require__(6933);
function _interopRequireDefault(obj) {
return obj && obj.__esModule
? obj
: {
default: obj,
};
} // 3.8s was arbitrarily chosen as it's what https://web.dev/interactive
// considers as "Good" time-to-interactive. We must assume something went
// wrong beyond this point, and then fall-back to a full page transition to
// show the user something of value.
var MS_MAX_IDLE_DELAY = 3800;
function withFuture(key, map, generator) {
var entry = map.get(key);
if (entry) {
if ("future" in entry) {
return entry.future;
}
return Promise.resolve(entry);
}
var resolver;
var prom = new Promise(function (resolve) {
resolver = resolve;
});
map.set(
key,
(entry = {
resolve: resolver,
future: prom,
})
);
return generator
? generator().then(function (value) {
return resolver(value), value;
})
: prom;
}
function hasPrefetch(link) {
try {
link = document.createElement("link");
return (
// detect IE11 since it supports prefetch but isn't detected
// with relList.support
(!!window.MSInputMethodContext &&
!!document.documentMode) ||
link.relList.supports("prefetch")
);
} catch (e) {
return false;
}
}
var canPrefetch = hasPrefetch();
function prefetchViaDom(href, as, link) {
return new Promise(function (res, rej) {
if (
document.querySelector(
'link[rel="prefetch"][href^="'.concat(href, '"]')
)
) {
return res();
}
link = document.createElement("link"); // The order of property assignment here is intentional:
if (as) link.as = as;
link.rel = "prefetch";
link.crossOrigin = undefined;
link.onload = res;
link.onerror = rej; // `href` should always be last:
link.href = href;
document.head.appendChild(link);
});
}
var ASSET_LOAD_ERROR = Symbol("ASSET_LOAD_ERROR");
function markAssetError(err) {
return Object.defineProperty(err, ASSET_LOAD_ERROR, {});
}
function isAssetError(err) {
return err && ASSET_LOAD_ERROR in err;
}
function appendScript(src, script) {
return new Promise(function (resolve, reject) {
script = document.createElement("script"); // The order of property assignment here is intentional.
// 1. Setup success/failure hooks in case the browser synchronously
// executes when `src` is set.
script.onload = resolve;
script.onerror = function () {
return reject(
markAssetError(
new Error("Failed to load script: ".concat(src))
)
);
}; // 2. Configure the cross-origin attribute before setting `src` in case the
// browser begins to fetch.
script.crossOrigin = undefined; // 3. Finally, set the source and inject into the DOM in case the child
// must be appended for fetching to start.
script.src = src;
document.body.appendChild(script);
});
} // We wait for pages to be built in dev before we start the route transition
// timeout to prevent an un-necessary hard navigation in development.
var devBuildPromise; // Resolve a promise that times out after given amount of milliseconds.
function resolvePromiseWithTimeout(p, ms, err) {
return new Promise(function (resolve, reject) {
var cancelled = false;
p.then(function (r) {
// Resolved, cancel the timeout
cancelled = true;
resolve(r);
})["catch"](reject); // We wrap these checks separately for better dead-code elimination in
// production bundles.
if (false) {
}
if (true) {
(0, _requestIdleCallback).requestIdleCallback(
function () {
return setTimeout(function () {
if (!cancelled) {
reject(err);
}
}, ms);
}
);
}
});
}
function getClientBuildManifest() {
if (self.__BUILD_MANIFEST) {
return Promise.resolve(self.__BUILD_MANIFEST);
}
var onBuildManifest = new Promise(function (resolve) {
// Mandatory because this is not concurrent safe:
var cb = self.__BUILD_MANIFEST_CB;
self.__BUILD_MANIFEST_CB = function () {
resolve(self.__BUILD_MANIFEST);
cb && cb();
};
});
return resolvePromiseWithTimeout(
onBuildManifest,
MS_MAX_IDLE_DELAY,
markAssetError(
new Error("Failed to load client build manifest")
)
);
}
function getFilesForRoute(assetPrefix, route) {
if (false) {
}
return getClientBuildManifest().then(function (manifest) {
if (!(route in manifest)) {
throw markAssetError(
new Error("Failed to lookup route: ".concat(route))
);
}
var allFiles = manifest[route].map(function (entry) {
return assetPrefix + "/_next/" + encodeURI(entry);
});
return {
scripts: allFiles.filter(function (v) {
return v.endsWith(".js");
}),
css: allFiles.filter(function (v) {
return v.endsWith(".css");
}),
};
});
}
function createRouteLoader(assetPrefix) {
var entrypoints = new Map();
var loadedScripts = new Map();
var styleSheets = new Map();
var routes = new Map();
function maybeExecuteScript(src) {
var prom = loadedScripts.get(src);
if (prom) {
return prom;
} // Skip executing script if it's already in the DOM:
if (
document.querySelector(
'script[src^="'.concat(src, '"]')
)
) {
return Promise.resolve();
}
loadedScripts.set(src, (prom = appendScript(src)));
return prom;
}
function fetchStyleSheet(href) {
var prom = styleSheets.get(href);
if (prom) {
return prom;
}
styleSheets.set(
href,
(prom = fetch(href)
.then(function (res) {
if (!res.ok) {
throw new Error(
"Failed to load stylesheet: ".concat(
href
)
);
}
return res.text().then(function (text) {
return {
href: href,
content: text,
};
});
})
["catch"](function (err) {
throw markAssetError(err);
}))
);
return prom;
}
return {
whenEntrypoint: function whenEntrypoint(route) {
return withFuture(route, entrypoints);
},
onEntrypoint: function onEntrypoint(route, execute) {
Promise.resolve(execute)
.then(function (fn) {
return fn();
})
.then(
function (exports) {
return {
component:
(exports && exports["default"]) ||
exports,
exports: exports,
};
},
function (err) {
return {
error: err,
};
}
)
.then(function (input) {
var old = entrypoints.get(route);
entrypoints.set(route, input);
if (old && "resolve" in old) old.resolve(input);
});
},
loadRoute: function loadRoute(route, prefetch) {
var _this = this;
return withFuture(route, routes, function () {
var routeFilesPromise = getFilesForRoute(
assetPrefix,
route
)
.then(function (_ref) {
var scripts = _ref.scripts,
css = _ref.css;
return Promise.all([
entrypoints.has(route)
? []
: Promise.all(
scripts.map(
maybeExecuteScript
)
),
Promise.all(css.map(fetchStyleSheet)),
]);
})
.then(function (res) {
return _this
.whenEntrypoint(route)
.then(function (entrypoint) {
return {
entrypoint: entrypoint,
styles: res[1],
};
});
});
if (false) {
}
return resolvePromiseWithTimeout(
routeFilesPromise,
MS_MAX_IDLE_DELAY,
markAssetError(
new Error(
"Route did not complete loading: ".concat(
route
)
)
)
)
.then(function (_ref2) {
var entrypoint = _ref2.entrypoint,
styles = _ref2.styles;
var res = Object.assign(
{
styles: styles,
},
entrypoint
);
return "error" in entrypoint
? entrypoint
: res;
})
["catch"](function (err) {
if (prefetch) {
// we don't want to cache errors during prefetch
throw err;
}
return {
error: err,
};
});
});
},
prefetch: function prefetch(route) {
var _this2 = this;
// https://github.com/GoogleChromeLabs/quicklink/blob/453a661fa1fa940e2d2e044452398e38c67a98fb/src/index.mjs#L115-L118
// License: Apache 2.0
var cn;
if ((cn = navigator.connection)) {
// Don't prefetch if using 2G or if Save-Data is enabled.
if (cn.saveData || /2g/.test(cn.effectiveType))
return Promise.resolve();
}
return getFilesForRoute(assetPrefix, route)
.then(function (output) {
return Promise.all(
canPrefetch
? output.scripts.map(function (script) {
return prefetchViaDom(
script,
"script"
);
})
: []
);
})
.then(function () {
(0, _requestIdleCallback).requestIdleCallback(
function () {
return _this2
.loadRoute(route, true)
["catch"](function () {});
}
);
})
["catch"](
// swallow prefetch errors
function () {}
);
},
};
}
/***/
},
/***/ 6409: /***/ function (
__unused_webpack_module,
exports,
__webpack_require__
) {
"use strict";
var _construct = __webpack_require__(4096);
function _createForOfIteratorHelper(o, allowArrayLike) {
var it;
if (
typeof Symbol === "undefined" ||
o[Symbol.iterator] == null
) {
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 = o[Symbol.iterator]();
},
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;
}
Object.defineProperty(exports, "__esModule", {
value: true,
});
Object.defineProperty(exports, "Router", {
enumerable: true,
get: function get() {
return _router["default"];
},
});
Object.defineProperty(exports, "withRouter", {
enumerable: true,
get: function get() {
return _withRouter["default"];
},
});
exports.useRouter = useRouter;
exports.createRouter = createRouter;
exports.makePublicRouterInstance = makePublicRouterInstance;
exports.default = void 0;
var _react = _interopRequireDefault(__webpack_require__(2735));
var _router = _interopRequireDefault(__webpack_require__(1073));
var _routerContext = __webpack_require__(6857);
var _withRouter = _interopRequireDefault(__webpack_require__(9336));
function _interopRequireDefault(obj) {
return obj && obj.__esModule
? obj
: {
default: obj,
};
}
var singletonRouter = {
router: null,
readyCallbacks: [],
ready: function ready(cb) {
if (this.router) return cb();
if (true) {
this.readyCallbacks.push(cb);
}
},
}; // Create public properties and methods of the router in the singletonRouter
var urlPropertyFields = [
"pathname",
"route",
"query",
"asPath",
"components",
"isFallback",
"basePath",
"locale",
"locales",
"defaultLocale",
"isReady",
"isPreview",
"isLocaleDomain",
"domainLocales",
];
var routerEvents = [
"routeChangeStart",
"beforeHistoryChange",
"routeChangeComplete",
"routeChangeError",
"hashChangeStart",
"hashChangeComplete",
];
var coreMethodFields = [
"push",
"replace",
"reload",
"back",
"prefetch",
"beforePopState",
]; // Events is a static property on the router, the router doesn't have to be initialized to use it
Object.defineProperty(singletonRouter, "events", {
get: function get() {
return _router["default"].events;
},
});
urlPropertyFields.forEach(function (field) {
// Here we need to use Object.defineProperty because we need to return
// the property assigned to the actual router
// The value might get changed as we change routes and this is the
// proper way to access it
Object.defineProperty(singletonRouter, field, {
get: function get() {
var router = getRouter();
return router[field];
},
});
});
coreMethodFields.forEach(function (field) {
singletonRouter[field] = function () {
var router = getRouter();
return router[field].apply(router, arguments);
};
});
routerEvents.forEach(function (event) {
singletonRouter.ready(function () {
_router["default"].events.on(event, function () {
var eventField = "on"
.concat(event.charAt(0).toUpperCase())
.concat(event.substring(1));
var _singletonRouter = singletonRouter;
if (_singletonRouter[eventField]) {
try {
_singletonRouter[eventField].apply(
_singletonRouter,
arguments
);
} catch (err) {
console.error(
"Error when running the Router event: ".concat(
eventField
)
);
console.error(
""
.concat(err.message, "\n")
.concat(err.stack)
);
}
}
});
});
});
function getRouter() {
if (!singletonRouter.router) {
var message =
"No router instance found.\n" +
'You should only use "next/router" on the client side of your app.\n';
throw new Error(message);
}
return singletonRouter.router;
}
var _default = singletonRouter;
exports.default = _default;
function useRouter() {
return _react["default"].useContext(
_routerContext.RouterContext
);
}
function createRouter() {
for (
var _len = arguments.length,
args = new Array(_len),
_key = 0;
_key < _len;
_key++
) {
args[_key] = arguments[_key];
}
singletonRouter.router = _construct(_router["default"], args);
singletonRouter.readyCallbacks.forEach(function (cb) {
return cb();
});
singletonRouter.readyCallbacks = [];
return singletonRouter.router;
}
function makePublicRouterInstance(router) {
var _router1 = router;
var instance = {};
var _iterator = _createForOfIteratorHelper(urlPropertyFields),
_step;
try {
for (_iterator.s(); !(_step = _iterator.n()).done; ) {
var property = _step.value;
if (typeof _router1[property] === "object") {
instance[property] = Object.assign(
Array.isArray(_router1[property]) ? [] : {},
_router1[property]
); // makes sure query is not stateful
continue;
}
instance[property] = _router1[property];
} // Events is a static property on the router, the router doesn't have to be initialized to use it
} catch (err) {
_iterator.e(err);
} finally {
_iterator.f();
}
instance.events = _router["default"].events;
coreMethodFields.forEach(function (field) {
instance[field] = function () {
return _router1[field].apply(_router1, arguments);
};
});
return instance;
}
/***/
},
/***/ 4843: /***/ function (
__unused_webpack_module,
exports,
__webpack_require__
) {
"use strict";
var _slicedToArray = __webpack_require__(3408);
Object.defineProperty(exports, "__esModule", {
value: true,
});
exports.initScriptLoader = initScriptLoader;
exports.default = void 0;
var _react = __webpack_require__(2735);
var _headManagerContext = __webpack_require__(1874);
var _headManager = __webpack_require__(4424);
var _requestIdleCallback = __webpack_require__(6933);
function _defineProperty(obj, key, value) {
if (key in obj) {
Object.defineProperty(obj, key, {
value: value,
enumerable: true,
configurable: true,
writable: true,
});
} else {
obj[key] = value;
}
return obj;
}
function _objectSpread(target) {
for (var i = 1; i < arguments.length; i++) {
var source = arguments[i] != null ? arguments[i] : {};
var ownKeys = Object.keys(source);
if (typeof Object.getOwnPropertySymbols === "function") {
ownKeys = ownKeys.concat(
Object.getOwnPropertySymbols(source).filter(
function (sym) {
return Object.getOwnPropertyDescriptor(
source,
sym
).enumerable;
}
)
);
}
ownKeys.forEach(function (key) {
_defineProperty(target, key, source[key]);
});
}
return target;
}
function _objectWithoutProperties(source, excluded) {
if (source == null) return {};
var target = _objectWithoutPropertiesLoose(source, excluded);
var key, i;
if (Object.getOwnPropertySymbols) {
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
for (i = 0; i < sourceSymbolKeys.length; i++) {
key = sourceSymbolKeys[i];
if (excluded.indexOf(key) >= 0) continue;
if (
!Object.prototype.propertyIsEnumerable.call(
source,
key
)
)
continue;
target[key] = source[key];
}
}
return target;
}
function _objectWithoutPropertiesLoose(source, excluded) {
if (source == null) return {};
var target = {};
var sourceKeys = Object.keys(source);
var key, i;
for (i = 0; i < sourceKeys.length; i++) {
key = sourceKeys[i];
if (excluded.indexOf(key) >= 0) continue;
target[key] = source[key];
}
return target;
}
var ScriptCache = new Map();
var LoadCache = new Set();
var ignoreProps = [
"onLoad",
"dangerouslySetInnerHTML",
"children",
"onError",
"strategy",
];
var loadScript = function loadScript(props) {
var src = props.src,
id = props.id,
_props$onLoad = props.onLoad,
onLoad =
_props$onLoad === void 0
? function () {}
: _props$onLoad,
dangerouslySetInnerHTML = props.dangerouslySetInnerHTML,
_props$children = props.children,
children =
_props$children === void 0 ? "" : _props$children,
onError = props.onError;
var cacheKey = id || src; // Script has already loaded
if (cacheKey && LoadCache.has(cacheKey)) {
return;
} // Contents of this script are already loading/loaded
if (ScriptCache.has(src)) {
LoadCache.add(cacheKey); // Execute onLoad since the script loading has begun
ScriptCache.get(src).then(onLoad, onError);
return;
}
var el = document.createElement("script");
var loadPromise = new Promise(function (resolve, reject) {
el.addEventListener("load", function () {
resolve();
if (onLoad) {
onLoad.call(this);
}
});
el.addEventListener("error", function () {
reject();
if (onError) {
onError();
}
});
});
if (src) {
ScriptCache.set(src, loadPromise);
}
LoadCache.add(cacheKey);
if (dangerouslySetInnerHTML) {
el.innerHTML = dangerouslySetInnerHTML.__html || "";
} else if (children) {
el.textContent =
typeof children === "string"
? children
: Array.isArray(children)
? children.join("")
: "";
} else if (src) {
el.src = src;
}
for (
var _i = 0, _Object$entries = Object.entries(props);
_i < _Object$entries.length;
_i++
) {
var _Object$entries$_i = _slicedToArray(
_Object$entries[_i],
2
),
k = _Object$entries$_i[0],
value = _Object$entries$_i[1];
if (value === undefined || ignoreProps.includes(k)) {
continue;
}
var attr =
_headManager.DOMAttributeNames[k] || k.toLowerCase();
el.setAttribute(attr, value);
}
document.body.appendChild(el);
};
function handleClientScriptLoad(props) {
var _props$strategy = props.strategy,
strategy =
_props$strategy === void 0
? "afterInteractive"
: _props$strategy;
if (strategy === "afterInteractive") {
loadScript(props);
} else if (strategy === "lazyOnload") {
window.addEventListener("load", function () {
(0, _requestIdleCallback).requestIdleCallback(
function () {
return loadScript(props);
}
);
});
}
}
function loadLazyScript(props) {
if (document.readyState === "complete") {
(0, _requestIdleCallback).requestIdleCallback(function () {
return loadScript(props);
});
} else {
window.addEventListener("load", function () {
(0, _requestIdleCallback).requestIdleCallback(
function () {
return loadScript(props);
}
);
});
}
}
function initScriptLoader(scriptLoaderItems) {
scriptLoaderItems.forEach(handleClientScriptLoad);
}
function Script(props) {
var _props$src = props.src,
src = _props$src === void 0 ? "" : _props$src,
_props$onLoad2 = props.onLoad,
onLoad =
_props$onLoad2 === void 0
? function () {}
: _props$onLoad2,
dangerouslySetInnerHTML = props.dangerouslySetInnerHTML,
_props$strategy2 = props.strategy,
strategy =
_props$strategy2 === void 0
? "afterInteractive"
: _props$strategy2,
onError = props.onError,
restProps = _objectWithoutProperties(props, [
"src",
"onLoad",
"dangerouslySetInnerHTML",
"strategy",
"onError",
]); // Context is available only during SSR
var _useContext = (0, _react).useContext(
_headManagerContext.HeadManagerContext
),
updateScripts = _useContext.updateScripts,
scripts = _useContext.scripts;
(0, _react).useEffect(
function () {
if (strategy === "afterInteractive") {
loadScript(props);
} else if (strategy === "lazyOnload") {
loadLazyScript(props);
}
},
[props, strategy]
);
if (strategy === "beforeInteractive") {
if (updateScripts) {
scripts.beforeInteractive = (
scripts.beforeInteractive || []
).concat([
_objectSpread(
{
src: src,
onLoad: onLoad,
onError: onError,
},
restProps
),
]);
updateScripts(scripts);
} else {
loadScript(props);
}
}
return null;
}
var _default = Script;
exports.default = _default;
/***/
},
/***/ 9336: /***/ function (
__unused_webpack_module,
exports,
__webpack_require__
) {
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true,
});
exports.default = withRouter;
var _react = _interopRequireDefault(__webpack_require__(2735));
var _router = __webpack_require__(6409);
function _interopRequireDefault(obj) {
return obj && obj.__esModule
? obj
: {
default: obj,
};
}
function withRouter(ComposedComponent) {
function WithRouterWrapper(props) {
return /*#__PURE__*/ _react["default"].createElement(
ComposedComponent,
Object.assign(
{
router: (0, _router).useRouter(),
},
props
)
);
}
WithRouterWrapper.getInitialProps =
ComposedComponent.getInitialProps;
WithRouterWrapper.origGetInitialProps =
ComposedComponent.origGetInitialProps;
if (false) {
var name;
}
return WithRouterWrapper;
}
/***/
},
/***/ 4956: /***/ function (
__unused_webpack_module,
exports,
__webpack_require__
) {
"use strict";
var _classCallCheck = __webpack_require__(4988);
var _createClass = __webpack_require__(9590);
var _inherits = __webpack_require__(4546);
var _possibleConstructorReturn = __webpack_require__(1581);
var _getPrototypeOf = __webpack_require__(852);
function _createSuper(Derived) {
var hasNativeReflectConstruct = _isNativeReflectConstruct();
return function _createSuperInternal() {
var Super = _getPrototypeOf(Derived),
result;
if (hasNativeReflectConstruct) {
var NewTarget = _getPrototypeOf(this).constructor;
result = Reflect.construct(Super, arguments, NewTarget);
} else {
result = Super.apply(this, arguments);
}
return _possibleConstructorReturn(this, result);
};
}
function _isNativeReflectConstruct() {
if (typeof Reflect === "undefined" || !Reflect.construct)
return false;
if (Reflect.construct.sham) return false;
if (typeof Proxy === "function") return true;
try {
Date.prototype.toString.call(
Reflect.construct(Date, [], function () {})
);
return true;
} catch (e) {
return false;
}
}
Object.defineProperty(exports, "__esModule", {
value: true,
});
exports.default = void 0;
var _react = _interopRequireDefault(__webpack_require__(2735));
var _head = _interopRequireDefault(__webpack_require__(3396));
function _interopRequireDefault(obj) {
return obj && obj.__esModule
? obj
: {
default: obj,
};
}
var statusCodes = {
400: "Bad Request",
404: "This page could not be found",
405: "Method Not Allowed",
500: "Internal Server Error",
};
function _getInitialProps(_ref) {
var res = _ref.res,
err = _ref.err;
var statusCode =
res && res.statusCode
? res.statusCode
: err
? err.statusCode
: 404;
return {
statusCode: statusCode,
};
}
var Error1 = /*#__PURE__*/ (function (_react$default$Compon) {
_inherits(Error1, _react$default$Compon);
var _super = _createSuper(Error1);
function Error1() {
_classCallCheck(this, Error1);
return _super.apply(this, arguments);
}
_createClass(Error1, [
{
key: "render",
value: function render() {
var statusCode = this.props.statusCode;
var title =
this.props.title ||
statusCodes[statusCode] ||
"An unexpected error has occurred";
return /*#__PURE__*/ _react[
"default"
].createElement(
"div",
{
style: styles.error,
},
/*#__PURE__*/ _react["default"].createElement(
_head["default"],
null,
/*#__PURE__*/ _react[
"default"
].createElement(
"title",
null,
statusCode
? ""
.concat(statusCode, ": ")
.concat(title)
: "Application error: a client-side exception has occurred"
)
),
/*#__PURE__*/ _react["default"].createElement(
"div",
null,
/*#__PURE__*/ _react[
"default"
].createElement("style", {
dangerouslySetInnerHTML: {
__html: "body { margin: 0 }",
},
}),
statusCode
? /*#__PURE__*/ _react[
"default"
].createElement(
"h1",
{
style: styles.h1,
},
statusCode
)
: null,
/*#__PURE__*/ _react[
"default"
].createElement(
"div",
{
style: styles.desc,
},
/*#__PURE__*/ _react[
"default"
].createElement(
"h2",
{
style: styles.h2,
},
this.props.title || statusCode
? title
: /*#__PURE__*/ _react[
"default"
].createElement(
_react["default"]
.Fragment,
null,
"Application error: a client-side exception has occurred (",
/*#__PURE__*/ _react[
"default"
].createElement(
"a",
{
href: "https://nextjs.org/docs/messages/client-side-exception-occurred",
},
"developer guidance"
),
")"
),
"."
)
)
)
);
},
},
]);
return Error1;
})(_react["default"].Component);
Error1.displayName = "ErrorPage";
Error1.getInitialProps = _getInitialProps;
Error1.origGetInitialProps = _getInitialProps;
exports.default = Error1;
var styles = {
error: {
color: "#000",
background: "#fff",
fontFamily:
'-apple-system, BlinkMacSystemFont, Roboto, "Segoe UI", "Fira Sans", Avenir, "Helvetica Neue", "Lucida Grande", sans-serif',
height: "100vh",
textAlign: "center",
display: "flex",
flexDirection: "column",
alignItems: "center",
justifyContent: "center",
},
desc: {
display: "inline-block",
textAlign: "left",
lineHeight: "49px",
height: "49px",
verticalAlign: "middle",
},
h1: {
display: "inline-block",
borderRight: "1px solid rgba(0, 0, 0,.3)",
margin: 0,
marginRight: "20px",
padding: "10px 23px 10px 0",
fontSize: "24px",
fontWeight: 500,
verticalAlign: "top",
},
h2: {
fontSize: "14px",
fontWeight: "normal",
lineHeight: "inherit",
margin: 0,
padding: 0,
},
};
/***/
},
/***/ 1923: /***/ function (
__unused_webpack_module,
exports,
__webpack_require__
) {
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true,
});
exports.AmpStateContext = void 0;
var _react = _interopRequireDefault(__webpack_require__(2735));
function _interopRequireDefault(obj) {
return obj && obj.__esModule
? obj
: {
default: obj,
};
}
var AmpStateContext = _react["default"].createContext({});
exports.AmpStateContext = AmpStateContext;
if (false) {
}
/***/
},
/***/ 5726: /***/ function (
__unused_webpack_module,
exports,
__webpack_require__
) {
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true,
});
exports.isInAmpMode = isInAmpMode;
exports.useAmp = useAmp;
var _react = _interopRequireDefault(__webpack_require__(2735));
var _ampContext = __webpack_require__(1923);
function _interopRequireDefault(obj) {
return obj && obj.__esModule
? obj
: {
default: obj,
};
}
function isInAmpMode() {
var _ref =
arguments.length > 0 && arguments[0] !== undefined
? arguments[0]
: {},
_ref$ampFirst = _ref.ampFirst,
ampFirst = _ref$ampFirst === void 0 ? false : _ref$ampFirst,
_ref$hybrid = _ref.hybrid,
hybrid = _ref$hybrid === void 0 ? false : _ref$hybrid,
_ref$hasQuery = _ref.hasQuery,
hasQuery = _ref$hasQuery === void 0 ? false : _ref$hasQuery;
return ampFirst || (hybrid && hasQuery);
}
function useAmp() {
// Don't assign the context value to a variable to save bytes
return isInAmpMode(
_react["default"].useContext(_ampContext.AmpStateContext)
);
}
/***/
},
/***/ 1874: /***/ function (
__unused_webpack_module,
exports,
__webpack_require__
) {
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true,
});
exports.HeadManagerContext = void 0;
var _react = _interopRequireDefault(__webpack_require__(2735));
function _interopRequireDefault(obj) {
return obj && obj.__esModule
? obj
: {
default: obj,
};
}
var HeadManagerContext = _react["default"].createContext({});
exports.HeadManagerContext = HeadManagerContext;
if (false) {
}
/***/
},
/***/ 3396: /***/ function (
__unused_webpack_module,
exports,
__webpack_require__
) {
"use strict";
var _defineProperty = __webpack_require__(566);
function ownKeys(object, enumerableOnly) {
var keys = Object.keys(object);
if (Object.getOwnPropertySymbols) {
var symbols = Object.getOwnPropertySymbols(object);
if (enumerableOnly)
symbols = symbols.filter(function (sym) {
return Object.getOwnPropertyDescriptor(
object,
sym
).enumerable;
});
keys.push.apply(keys, symbols);
}
return keys;
}
function _objectSpread(target) {
for (var i = 1; i < arguments.length; i++) {
var source = arguments[i] != null ? arguments[i] : {};
if (i % 2) {
ownKeys(Object(source), true).forEach(function (key) {
_defineProperty(target, key, source[key]);
});
} else if (Object.getOwnPropertyDescriptors) {
Object.defineProperties(
target,
Object.getOwnPropertyDescriptors(source)
);
} else {
ownKeys(Object(source)).forEach(function (key) {
Object.defineProperty(
target,
key,
Object.getOwnPropertyDescriptor(source, key)
);
});
}
}
return target;
}
Object.defineProperty(exports, "__esModule", {
value: true,
});
exports.defaultHead = defaultHead;
exports.default = void 0;
var _react = _interopRequireWildcard(__webpack_require__(2735));
var _sideEffect = _interopRequireDefault(__webpack_require__(2097));
var _ampContext = __webpack_require__(1923);
var _headManagerContext = __webpack_require__(1874);
var _amp = __webpack_require__(5726);
function _interopRequireDefault(obj) {
return obj && obj.__esModule
? obj
: {
default: obj,
};
}
function _interopRequireWildcard(obj) {
if (obj && obj.__esModule) {
return obj;
} else {
var newObj = {};
if (obj != null) {
for (var key in obj) {
if (
Object.prototype.hasOwnProperty.call(obj, key)
) {
var desc =
Object.defineProperty &&
Object.getOwnPropertyDescriptor
? Object.getOwnPropertyDescriptor(
obj,
key
)
: {};
if (desc.get || desc.set) {
Object.defineProperty(newObj, key, desc);
} else {
newObj[key] = obj[key];
}
}
}
}
newObj["default"] = obj;
return newObj;
}
}
function defaultHead() {
var inAmpMode =
arguments.length > 0 && arguments[0] !== undefined
? arguments[0]
: false;
var head = [
/*#__PURE__*/ _react["default"].createElement("meta", {
charSet: "utf-8",
}),
];
if (!inAmpMode) {
head.push(
/*#__PURE__*/ _react["default"].createElement("meta", {
name: "viewport",
content: "width=device-width",
})
);
}
return head;
}
function onlyReactElement(list, child) {
// React children can be "string" or "number" in this case we ignore them for backwards compat
if (typeof child === "string" || typeof child === "number") {
return list;
} // Adds support for React.Fragment
if (child.type === _react["default"].Fragment) {
return list.concat(
_react["default"].Children.toArray(
child.props.children
).reduce(function (fragmentList, fragmentChild) {
if (
typeof fragmentChild === "string" ||
typeof fragmentChild === "number"
) {
return fragmentList;
}
return fragmentList.concat(fragmentChild);
}, [])
);
}
return list.concat(child);
}
var METATYPES = ["name", "httpEquiv", "charSet", "itemProp"];
/*
returns a function for filtering head child elements
which shouldn't be duplicated, like <title/>
Also adds support for deduplicated `key` properties
*/
function unique() {
var keys = new Set();
var tags = new Set();
var metaTypes = new Set();
var metaCategories = {};
return function (h) {
var isUnique = true;
var hasKey = false;
if (
h.key &&
typeof h.key !== "number" &&
h.key.indexOf("$") > 0
) {
hasKey = true;
var key = h.key.slice(h.key.indexOf("$") + 1);
if (keys.has(key)) {
isUnique = false;
} else {
keys.add(key);
}
} // next-line default-case
switch (h.type) {
case "title":
case "base":
if (tags.has(h.type)) {
isUnique = false;
} else {
tags.add(h.type);
}
break;
case "meta":
for (
var i = 0, len = METATYPES.length;
i < len;
i++
) {
var metatype = METATYPES[i];
if (!h.props.hasOwnProperty(metatype)) continue;
if (metatype === "charSet") {
if (metaTypes.has(metatype)) {
isUnique = false;
} else {
metaTypes.add(metatype);
}
} else {
var category = h.props[metatype];
var categories =
metaCategories[metatype] || new Set();
if (
(metatype !== "name" || !hasKey) &&
categories.has(category)
) {
isUnique = false;
} else {
categories.add(category);
metaCategories[metatype] = categories;
}
}
}
break;
}
return isUnique;
};
}
/**
*
* @param headElements List of multiple <Head> instances
*/
function reduceComponents(headElements, props) {
return headElements
.reduce(function (list, headElement) {
var headElementChildren = _react[
"default"
].Children.toArray(headElement.props.children);
return list.concat(headElementChildren);
}, [])
.reduce(onlyReactElement, [])
.reverse()
.concat(defaultHead(props.inAmpMode))
.filter(unique())
.reverse()
.map(function (c, i) {
var key = c.key || i;
if (true && !props.inAmpMode) {
if (
c.type === "link" &&
c.props["href"] && // TODO(prateekbh@): Replace this with const from `constants` when the tree shaking works.
[
"https://fonts.googleapis.com/css",
"https://use.typekit.net/",
].some(function (url) {
return c.props["href"].startsWith(url);
})
) {
var newProps = _objectSpread({}, c.props || {});
newProps["data-href"] = newProps["href"];
newProps["href"] = undefined; // Add this attribute to make it easy to identify optimized tags
newProps["data-optimized-fonts"] = true;
return /*#__PURE__*/ _react[
"default"
].cloneElement(c, newProps);
}
}
return /*#__PURE__*/ _react["default"].cloneElement(c, {
key: key,
});
});
}
/**
* This component injects elements to `<head>` of your page.
* To avoid duplicated `tags` in `<head>` you can use the `key` property, which will make sure every tag is only rendered once.
*/
function Head(_ref) {
var children = _ref.children;
var ampState = (0, _react).useContext(
_ampContext.AmpStateContext
);
var headManager = (0, _react).useContext(
_headManagerContext.HeadManagerContext
);
return /*#__PURE__*/ _react["default"].createElement(
_sideEffect["default"],
{
reduceComponentsToState: reduceComponents,
headManager: headManager,
inAmpMode: (0, _amp).isInAmpMode(ampState),
},
children
);
}
var _default = Head;
exports.default = _default;
/***/
},
/***/ 6509: /***/ function (__unused_webpack_module, exports) {
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true,
});
exports.normalizeLocalePath = normalizeLocalePath;
function normalizeLocalePath(pathname, locales) {
var detectedLocale; // first item will be empty string from splitting at first char
var pathnameParts = pathname.split("/");
(locales || []).some(function (locale) {
if (
pathnameParts[1].toLowerCase() === locale.toLowerCase()
) {
detectedLocale = locale;
pathnameParts.splice(1, 1);
pathname = pathnameParts.join("/") || "/";
return true;
}
return false;
});
return {
pathname: pathname,
detectedLocale: detectedLocale,
};
}
/***/
},
/***/ 4387: /***/ function (__unused_webpack_module, exports) {
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true,
});
exports.default = mitt;
function mitt() {
var all = Object.create(null);
return {
on: function on(type, handler) {
(all[type] || (all[type] = [])).push(handler);
},
off: function off(type, handler) {
if (all[type]) {
all[type].splice(
all[type].indexOf(handler) >>> 0,
1
);
}
},
emit: function emit(type) {
for (
var _len = arguments.length,
evts = new Array(_len > 1 ? _len - 1 : 0),
_key = 1;
_key < _len;
_key++
) {
evts[_key - 1] = arguments[_key];
}
(all[type] || []).slice().map(function (handler) {
handler.apply(void 0, evts);
});
},
};
}
/***/
},
/***/ 6857: /***/ function (
__unused_webpack_module,
exports,
__webpack_require__
) {
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true,
});
exports.RouterContext = void 0;
var _react = _interopRequireDefault(__webpack_require__(2735));
function _interopRequireDefault(obj) {
return obj && obj.__esModule
? obj
: {
default: obj,
};
}
var RouterContext = _react["default"].createContext(null);
exports.RouterContext = RouterContext;
if (false) {
}
/***/
},
/***/ 1073: /***/ function (
__unused_webpack_module,
exports,
__webpack_require__
) {
"use strict";
var _regeneratorRuntime = __webpack_require__(7945);
var _asyncToGenerator = __webpack_require__(5374);
var _classCallCheck = __webpack_require__(4988);
var _createClass = __webpack_require__(9590);
var _slicedToArray = __webpack_require__(3408);
Object.defineProperty(exports, "__esModule", {
value: true,
});
exports.getDomainLocale = getDomainLocale;
exports.addLocale = addLocale;
exports.delLocale = delLocale;
exports.hasBasePath = hasBasePath;
exports.addBasePath = addBasePath;
exports.delBasePath = delBasePath;
exports.isLocalURL = isLocalURL;
exports.interpolateAs = interpolateAs;
exports.resolveHref = resolveHref;
exports.default = void 0;
var _normalizeTrailingSlash = __webpack_require__(3342);
var _routeLoader = __webpack_require__(1740);
var _denormalizePagePath = __webpack_require__(709);
var _normalizeLocalePath = __webpack_require__(6509);
var _mitt = _interopRequireDefault(__webpack_require__(4387));
var _utils = __webpack_require__(6373);
var _isDynamic = __webpack_require__(2140);
var _parseRelativeUrl = __webpack_require__(5284);
var _querystring = __webpack_require__(6136);
var _resolveRewrites = _interopRequireDefault(
__webpack_require__(808)
);
var _routeMatcher = __webpack_require__(2106);
var _routeRegex = __webpack_require__(4339);
function _interopRequireDefault(obj) {
return obj && obj.__esModule
? obj
: {
default: obj,
};
}
var detectDomainLocale;
if (false) {
}
var basePath = false || "";
function buildCancellationError() {
return Object.assign(new Error("Route Cancelled"), {
cancelled: true,
});
}
function addPathPrefix(path, prefix) {
return prefix && path.startsWith("/")
? path === "/"
? (0,
_normalizeTrailingSlash).normalizePathTrailingSlash(
prefix
)
: ""
.concat(prefix)
.concat(
pathNoQueryHash(path) === "/"
? path.substring(1)
: path
)
: path;
}
function getDomainLocale(path, locale, locales, domainLocales) {
if (false) {
var detectedDomain;
}
return false;
}
function addLocale(path, locale, defaultLocale) {
if (false) {
var localeLower, pathLower, pathname;
}
return path;
}
function delLocale(path, locale) {
if (false) {
var localeLower, pathLower, pathname;
}
return path;
}
function pathNoQueryHash(path) {
var queryIndex = path.indexOf("?");
var hashIndex = path.indexOf("#");
if (queryIndex > -1 || hashIndex > -1) {
path = path.substring(
0,
queryIndex > -1 ? queryIndex : hashIndex
);
}
return path;
}
function hasBasePath(path) {
path = pathNoQueryHash(path);
return path === basePath || path.startsWith(basePath + "/");
}
function addBasePath(path) {
// we only add the basepath on relative urls
return addPathPrefix(path, basePath);
}
function delBasePath(path) {
path = path.slice(basePath.length);
if (!path.startsWith("/")) path = "/".concat(path);
return path;
}
function isLocalURL(url) {
// prevent a hydration mismatch on href for url with anchor refs
if (
url.startsWith("/") ||
url.startsWith("#") ||
url.startsWith("?")
)
return true;
try {
// absolute urls can be local if they are on the same origin
var locationOrigin = (0, _utils).getLocationOrigin();
var resolved = new URL(url, locationOrigin);
return (
resolved.origin === locationOrigin &&
hasBasePath(resolved.pathname)
);
} catch (_) {
return false;
}
}
function interpolateAs(route, asPathname, query) {
var interpolatedRoute = "";
var dynamicRegex = (0, _routeRegex).getRouteRegex(route);
var dynamicGroups = dynamicRegex.groups;
var dynamicMatches = // Try to match the dynamic route against the asPath
(asPathname !== route
? (0, _routeMatcher).getRouteMatcher(dynamicRegex)(
asPathname
)
: "") || // Fall back to reading the values from the href
// TODO: should this take priority; also need to change in the router.
query;
interpolatedRoute = route;
var params = Object.keys(dynamicGroups);
if (
!params.every(function (param) {
var value = dynamicMatches[param] || "";
var _dynamicGroups$param = dynamicGroups[param],
repeat = _dynamicGroups$param.repeat,
optional = _dynamicGroups$param.optional; // support single-level catch-all
// TODO: more robust handling for user-error (passing `/`)
var replaced = "["
.concat(repeat ? "..." : "")
.concat(param, "]");
if (optional) {
replaced = ""
.concat(!value ? "/" : "", "[")
.concat(replaced, "]");
}
if (repeat && !Array.isArray(value)) value = [value];
return (
(optional || param in dynamicMatches) && // Interpolate group into data URL if present
(interpolatedRoute =
interpolatedRoute.replace(
replaced,
repeat
? value
.map(
// these values should be fully encoded instead of just
// path delimiter escaped since they are being inserted
// into the URL and we expect URL encoded segments
// when parsing dynamic route params
function (segment) {
return encodeURIComponent(
segment
);
}
)
.join("/")
: encodeURIComponent(value)
) || "/")
);
})
) {
interpolatedRoute = ""; // did not satisfy all requirements // n.b. We ignore this error because we handle warning for this case in
// development in the `<Link>` component directly.
}
return {
params: params,
result: interpolatedRoute,
};
}
function omitParmsFromQuery(query, params) {
var filteredQuery = {};
Object.keys(query).forEach(function (key) {
if (!params.includes(key)) {
filteredQuery[key] = query[key];
}
});
return filteredQuery;
}
function resolveHref(router, href, resolveAs) {
// we use a dummy base url for relative urls
var base;
var urlAsString =
typeof href === "string"
? href
: (0, _utils).formatWithValidation(href);
try {
base = new URL(
urlAsString.startsWith("#")
? router.asPath
: router.pathname,
"http://n"
);
} catch (_) {
// fallback to / for invalid asPath values e.g. //
base = new URL("/", "http://n");
} // Return because it cannot be routed by the Next.js router
if (!isLocalURL(urlAsString)) {
return resolveAs ? [urlAsString] : urlAsString;
}
try {
var finalUrl = new URL(urlAsString, base);
finalUrl.pathname = (0,
_normalizeTrailingSlash).normalizePathTrailingSlash(
finalUrl.pathname
);
var interpolatedAs = "";
if (
(0, _isDynamic).isDynamicRoute(finalUrl.pathname) &&
finalUrl.searchParams &&
resolveAs
) {
var query = (0, _querystring).searchParamsToUrlQuery(
finalUrl.searchParams
);
var _interpolateAs = interpolateAs(
finalUrl.pathname,
finalUrl.pathname,
query
),
result = _interpolateAs.result,
params = _interpolateAs.params;
if (result) {
interpolatedAs = (0, _utils).formatWithValidation({
pathname: result,
hash: finalUrl.hash,
query: omitParmsFromQuery(query, params),
});
}
} // if the origin didn't change, it means we received a relative href
var resolvedHref =
finalUrl.origin === base.origin
? finalUrl.href.slice(finalUrl.origin.length)
: finalUrl.href;
return resolveAs
? [resolvedHref, interpolatedAs || resolvedHref]
: resolvedHref;
} catch (_) {
return resolveAs ? [urlAsString] : urlAsString;
}
}
function stripOrigin(url) {
var origin = (0, _utils).getLocationOrigin();
return url.startsWith(origin)
? url.substring(origin.length)
: url;
}
function prepareUrlAs(router, url, as) {
// If url and as provided as an object representation,
// we'll format them into the string version here.
var _resolveHref = resolveHref(router, url, true),
_resolveHref2 = _slicedToArray(_resolveHref, 2),
resolvedHref = _resolveHref2[0],
resolvedAs = _resolveHref2[1];
var origin = (0, _utils).getLocationOrigin();
var hrefHadOrigin = resolvedHref.startsWith(origin);
var asHadOrigin = resolvedAs && resolvedAs.startsWith(origin);
resolvedHref = stripOrigin(resolvedHref);
resolvedAs = resolvedAs ? stripOrigin(resolvedAs) : resolvedAs;
var preparedUrl = hrefHadOrigin
? resolvedHref
: addBasePath(resolvedHref);
var preparedAs = as
? stripOrigin(resolveHref(router, as))
: resolvedAs || resolvedHref;
return {
url: preparedUrl,
as: asHadOrigin ? preparedAs : addBasePath(preparedAs),
};
}
function resolveDynamicRoute(pathname, pages) {
var cleanPathname = (0,
_normalizeTrailingSlash).removePathTrailingSlash(
(0, _denormalizePagePath).denormalizePagePath(pathname)
);
if (cleanPathname === "/404" || cleanPathname === "/_error") {
return pathname;
} // handle resolving href for dynamic routes
if (!pages.includes(cleanPathname)) {
// next-line array-callback-return
pages.some(function (page) {
if (
(0, _isDynamic).isDynamicRoute(page) &&
(0, _routeRegex)
.getRouteRegex(page)
.re.test(cleanPathname)
) {
pathname = page;
return true;
}
});
}
return (0, _normalizeTrailingSlash).removePathTrailingSlash(
pathname
);
}
var manualScrollRestoration =
/* unused pure expression or super */ null && false && 0;
var SSG_DATA_NOT_FOUND = Symbol("SSG_DATA_NOT_FOUND");
function fetchRetry(url, attempts) {
return fetch(url, {
// Cookies are required to be present for Next.js' SSG "Preview Mode".
// Cookies may also be required for `getServerSideProps`.
//
// > `fetch` won’t send cookies, unless you set the credentials init
// > option.
// https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API/Using_Fetch
//
// > For maximum browser compatibility when it comes to sending &
// > receiving cookies, always supply the `credentials: 'same-origin'`
// > option instead of relying on the default.
// https://github.com/github/fetch#caveats
credentials: "same-origin",
}).then(function (res) {
if (!res.ok) {
if (attempts > 1 && res.status >= 500) {
return fetchRetry(url, attempts - 1);
}
if (res.status === 404) {
return res.json().then(function (data) {
if (data.notFound) {
return {
notFound: SSG_DATA_NOT_FOUND,
};
}
throw new Error("Failed to load static props");
});
}
throw new Error("Failed to load static props");
}
return res.json();
});
}
function fetchNextData(dataHref, isServerRender) {
return fetchRetry(dataHref, isServerRender ? 3 : 1)["catch"](
function (err) {
// We should only trigger a server-side transition if this was caused
// on a client-side transition. Otherwise, we'd get into an infinite
// loop.
if (!isServerRender) {
(0, _routeLoader).markAssetError(err);
}
throw err;
}
);
}
var Router = /*#__PURE__*/ (function () {
function Router(pathname1, query1, as1, _ref) {
var _this = this;
var initialProps = _ref.initialProps,
pageLoader = _ref.pageLoader,
App = _ref.App,
wrapApp = _ref.wrapApp,
Component1 = _ref.Component,
err1 = _ref.err,
subscription = _ref.subscription,
isFallback = _ref.isFallback,
locale = _ref.locale,
locales = _ref.locales,
defaultLocale = _ref.defaultLocale,
domainLocales = _ref.domainLocales,
isPreview = _ref.isPreview;
_classCallCheck(this, Router);
// Static Data Cache
this.sdc = {}; // In-flight Server Data Requests, for deduping
this.sdr = {};
this._idx = 0;
this.onPopState = function (e) {
var state = e.state;
if (!state) {
// We get state as undefined for two reasons.
// 1. With older safari (< 8) and older chrome (< 34)
// 2. When the URL changed with #
//
// In the both cases, we don't need to proceed and change the route.
// (as it's already changed)
// But we can simply replace the state with the new changes.
// Actually, for (1) we don't need to nothing. But it's hard to detect that event.
// So, doing the following for (1) does no harm.
var _pathname = _this.pathname,
_query = _this.query;
_this.changeState(
"replaceState",
(0, _utils).formatWithValidation({
pathname: addBasePath(_pathname),
query: _query,
}),
(0, _utils).getURL()
);
return;
}
if (!state.__N) {
return;
}
var forcedScroll;
var url = state.url,
as1 = state.as,
options = state.options,
idx = state.idx;
if (false) {
var v;
}
_this._idx = idx;
var _parseRelativeUrl2 = (0,
_parseRelativeUrl).parseRelativeUrl(url),
pathname1 = _parseRelativeUrl2.pathname; // Make sure we don't re-render on initial load,
// can be caused by navigating back from an external site
if (
_this.isSsr &&
as1 === _this.asPath &&
pathname1 === _this.pathname
) {
return;
} // If the downstream application returns falsy, return.
// They will then be responsible for handling the event.
if (_this._bps && !_this._bps(state)) {
return;
}
_this.change(
"replaceState",
url,
as1,
Object.assign({}, options, {
shallow: options.shallow && _this._shallow,
locale: options.locale || _this.defaultLocale,
}),
forcedScroll
);
}; // represents the current component key
this.route = (0,
_normalizeTrailingSlash).removePathTrailingSlash(pathname1); // set up the component cache (by route keys)
this.components = {}; // We should not keep the cache, if there's an error
// Otherwise, this cause issues when when going back and
// come again to the errored page.
if (pathname1 !== "/_error") {
this.components[this.route] = {
Component: Component1,
initial: true,
props: initialProps,
err: err1,
__N_SSG: initialProps && initialProps.__N_SSG,
__N_SSP: initialProps && initialProps.__N_SSP,
};
}
this.components["/_app"] = {
Component: App,
styleSheets: [],
}; // Backwards compat for Router.router.events
// TODO: Should be remove the following major version as it was never documented
this.events = Router.events;
this.pageLoader = pageLoader;
this.pathname = pathname1;
this.query = query1; // if auto prerendered and dynamic route wait to update asPath
// until after mount to prevent hydration mismatch
var autoExportDynamic =
(0, _isDynamic).isDynamicRoute(pathname1) &&
self.__NEXT_DATA__.autoExport;
this.asPath = autoExportDynamic ? pathname1 : as1;
this.basePath = basePath;
this.sub = subscription;
this.clc = null;
this._wrapApp = wrapApp; // make sure to ignore extra popState in safari on navigating
// back from external site
this.isSsr = true;
this.isFallback = isFallback;
this.isReady = !!(
self.__NEXT_DATA__.gssp ||
self.__NEXT_DATA__.gip ||
(self.__NEXT_DATA__.appGip &&
!self.__NEXT_DATA__.gsp) ||
(!autoExportDynamic && !self.location.search && !false)
);
this.isPreview = !!isPreview;
this.isLocaleDomain = false;
if (false) {
}
if (true) {
// make sure "as" doesn't start with double slashes or else it can
// throw an error as it's considered invalid
if (as1.substr(0, 2) !== "//") {
// in order for `e.state` to work on the `onpopstate` event
// we have to register the initial route upon initialization
var options = {
locale: locale,
};
options._shouldResolveHref = as1 !== pathname1;
this.changeState(
"replaceState",
(0, _utils).formatWithValidation({
pathname: addBasePath(pathname1),
query: query1,
}),
(0, _utils).getURL(),
options
);
}
window.addEventListener("popstate", this.onPopState); // enable custom scroll restoration handling when available
// otherwise fallback to browser's default handling
if (false) {
}
}
}
_createClass(Router, [
{
key: "reload",
value: function reload() {
window.location.reload();
},
/**
* Go back in history
*/
},
{
key: "back",
value: function back() {
window.history.back();
},
/**
* Performs a `pushState` with arguments
* @param url of the route
* @param as masks `url` for the browser
* @param options object you can define `shallow` and other options
*/
},
{
key: "push",
value: function push(url, as) {
var options =
arguments.length > 2 &&
arguments[2] !== undefined
? arguments[2]
: {};
if (false) {
}
var _prepareUrlAs = prepareUrlAs(this, url, as);
url = _prepareUrlAs.url;
as = _prepareUrlAs.as;
return this.change("pushState", url, as, options);
},
/**
* Performs a `replaceState` with arguments
* @param url of the route
* @param as masks `url` for the browser
* @param options object you can define `shallow` and other options
*/
},
{
key: "replace",
value: function replace(url, as) {
var options =
arguments.length > 2 &&
arguments[2] !== undefined
? arguments[2]
: {};
var _prepareUrlAs2 = prepareUrlAs(this, url, as);
url = _prepareUrlAs2.url;
as = _prepareUrlAs2.as;
return this.change(
"replaceState",
url,
as,
options
);
},
},
{
key: "change",
value: (function () {
var _change = _asyncToGenerator(
/*#__PURE__*/ _regeneratorRuntime.mark(
function _callee(
method,
url,
as,
options,
forcedScroll
) {
var shouldResolveHref,
prevLocale,
parsedAs,
localePathResult,
didNavigate,
ref,
detectedDomain,
asNoBasePath,
_options$shallow,
shallow,
routeProps,
cleanedAs,
localeChange,
parsed,
pathname1,
query1,
pages,
rewrites,
_yield$getClientBuild,
resolvedAs,
rewritesResult,
route,
_parsedAs,
asPathname,
routeRegex,
routeMatch,
shouldInterpolate,
interpolatedAs,
missingParams,
ref1,
routeInfo,
_routeInfo,
error,
props,
__N_SSG,
__N_SSP,
destination,
parsedHref,
_prepareUrlAs3,
newUrl,
newAs,
notFoundRoute,
appComp,
isValidShallowRoute,
_scroll,
shouldScroll,
resetScroll;
return _regeneratorRuntime.wrap(
function _callee$(_context) {
while (1) {
switch (
(_context.prev =
_context.next)
) {
case 0:
if (
isLocalURL(url)
) {
_context.next = 3;
break;
}
window.location.href =
url;
return _context.abrupt(
"return",
false
);
case 3:
shouldResolveHref =
url === as ||
options._h ||
options._shouldResolveHref; // for static pages with query params in the URL we delay
// marking the router ready until after the query is updated
if (options._h) {
this.isReady = true;
}
prevLocale =
this.locale;
if (true) {
_context.next = 18;
break;
}
this.locale =
options.locale ===
false
? this
.defaultLocale
: options.locale ||
this
.locale;
if (
typeof options.locale ===
"undefined"
) {
options.locale =
this.locale;
}
parsedAs = (0,
_parseRelativeUrl).parseRelativeUrl(
hasBasePath(as)
? delBasePath(
as
)
: as
);
localePathResult =
(0,
_normalizeLocalePath).normalizeLocalePath(
parsedAs.pathname,
this.locales
);
if (
localePathResult.detectedLocale
) {
this.locale =
localePathResult.detectedLocale;
parsedAs.pathname =
addBasePath(
parsedAs.pathname
);
as = (0,
_utils).formatWithValidation(
parsedAs
);
url =
addBasePath(
(0,
_normalizeLocalePath).normalizeLocalePath(
hasBasePath(
url
)
? delBasePath(
url
)
: url,
this
.locales
)
.pathname
);
}
didNavigate = false; // we need to wrap this in the env check again since regenerator runtime
// moves this on its own due to the return
if (false) {
}
detectedDomain =
detectDomainLocale(
this
.domainLocales,
undefined,
this.locale
); // we need to wrap this in the env check again since regenerator runtime
// moves this on its own due to the return
if (false) {
}
if (!didNavigate) {
_context.next = 18;
break;
}
return _context.abrupt(
"return",
new Promise(
function () {}
)
);
case 18:
if (!options._h) {
this.isSsr = false;
} // marking route changes as a navigation start entry
if (_utils.ST) {
performance.mark(
"routeChange"
);
}
(_options$shallow =
options.shallow),
(shallow =
_options$shallow ===
void 0
? false
: _options$shallow);
routeProps = {
shallow:
shallow,
};
if (
this
._inFlightRoute
) {
this.abortComponentLoad(
this
._inFlightRoute,
routeProps
);
}
as = addBasePath(
addLocale(
hasBasePath(
as
)
? delBasePath(
as
)
: as,
options.locale,
this
.defaultLocale
)
);
cleanedAs =
delLocale(
hasBasePath(
as
)
? delBasePath(
as
)
: as,
this.locale
);
this._inFlightRoute =
as;
localeChange =
prevLocale !==
this.locale; // If the url change is only related to a hash change
// We should not proceed. We should only change the state.
// WARNING: `_h` is an internal option for handing Next.js client-side
// hydration. Your app should _never_ use this property. It may change at
// any time without notice.
if (
!(
!options._h &&
this.onlyAHashChange(
cleanedAs
) &&
!localeChange
)
) {
_context.next = 35;
break;
}
this.asPath =
cleanedAs;
Router.events.emit(
"hashChangeStart",
as,
routeProps
); // TODO: do we need the resolved href when only a hash change?
this.changeState(
method,
url,
as,
options
);
this.scrollToHash(
cleanedAs
);
this.notify(
this.components[
this.route
],
null
);
Router.events.emit(
"hashChangeComplete",
as,
routeProps
);
return _context.abrupt(
"return",
true
);
case 35:
parsed = (0,
_parseRelativeUrl).parseRelativeUrl(
url
);
(pathname1 =
parsed.pathname),
(query1 =
parsed.query); // The build manifest needs to be loaded before auto-static dynamic pages
// get their query parameters to allow ensuring they can be parsed properly
// when rewritten to
_context.prev = 37;
_context.next = 40;
return this.pageLoader.getPageList();
case 40:
pages =
_context.sent;
_context.next = 43;
return (0,
_routeLoader).getClientBuildManifest();
case 43:
_yield$getClientBuild =
_context.sent;
rewrites =
_yield$getClientBuild.__rewrites;
_context.next = 51;
break;
case 47:
_context.prev = 47;
_context.t0 =
_context[
"catch"
](37);
// If we fail to resolve the page list or client-build manifest, we must
// do a server-side transition:
window.location.href =
as;
return _context.abrupt(
"return",
false
);
case 51:
// If asked to change the current URL we should reload the current page
// (not location.reload() but reload getInitialProps and other Next.js stuffs)
// We also need to set the method = replaceState always
// as this should not go into the history (That's how browsers work)
// We should compare the new asPath to the current asPath, not the url
if (
!this.urlIsNew(
cleanedAs
) &&
!localeChange
) {
method =
"replaceState";
} // we need to resolve the as value using rewrites for dynamic SSG
// pages to allow building the data URL correctly
resolvedAs = as; // url and as should always be prefixed with basePath by this
// point by either next/link or router.push/replace so strip the
// basePath from the pathname to match the pages dir 1-to-1
pathname1 =
pathname1
? (0,
_normalizeTrailingSlash).removePathTrailingSlash(
delBasePath(
pathname1
)
)
: pathname1;
if (
shouldResolveHref &&
pathname1 !==
"/_error"
) {
options._shouldResolveHref = true;
if (false) {
} else {
parsed.pathname =
resolveDynamicRoute(
pathname1,
pages
);
if (
parsed.pathname !==
pathname1
) {
pathname1 =
parsed.pathname;
parsed.pathname =
addBasePath(
pathname1
);
url =
(0,
_utils).formatWithValidation(
parsed
);
}
}
}
route = (0,
_normalizeTrailingSlash).removePathTrailingSlash(
pathname1
);
if (
isLocalURL(as)
) {
_context.next = 61;
break;
}
if (true) {
_context.next = 59;
break;
}
throw new Error(
'Invalid href: "'
.concat(
url,
'" and as: "'
)
.concat(
as,
'", received relative href and external as'
) +
"\nSee more info: https://nextjs.org/docs/messages/invalid-relative-url-external-as"
);
case 59:
window.location.href =
as;
return _context.abrupt(
"return",
false
);
case 61:
resolvedAs =
delLocale(
delBasePath(
resolvedAs
),
this.locale
);
if (
!(0,
_isDynamic).isDynamicRoute(
route
)
) {
_context.next = 77;
break;
}
_parsedAs = (0,
_parseRelativeUrl).parseRelativeUrl(
resolvedAs
);
asPathname =
_parsedAs.pathname;
routeRegex = (0,
_routeRegex).getRouteRegex(
route
);
routeMatch = (0,
_routeMatcher).getRouteMatcher(
routeRegex
)(asPathname);
shouldInterpolate =
route ===
asPathname;
interpolatedAs =
shouldInterpolate
? interpolateAs(
route,
asPathname,
query1
)
: {};
if (
!(
!routeMatch ||
(shouldInterpolate &&
!interpolatedAs.result)
)
) {
_context.next = 76;
break;
}
missingParams =
Object.keys(
routeRegex.groups
).filter(
function (
param
) {
return !query1[
param
];
}
);
if (
!(
missingParams.length >
0
)
) {
_context.next = 74;
break;
}
if (false) {
}
throw new Error(
(shouldInterpolate
? "The provided `href` ("
.concat(
url,
") value is missing query values ("
)
.concat(
missingParams.join(
", "
),
") to be interpolated properly. "
)
: "The provided `as` value ("
.concat(
asPathname,
") is incompatible with the `href` value ("
)
.concat(
route,
"). "
)) +
"Read more: https://nextjs.org/docs/messages/".concat(
shouldInterpolate
? "href-interpolation-failed"
: "incompatible-href-as"
)
);
case 74:
_context.next = 77;
break;
case 76:
if (
shouldInterpolate
) {
as = (0,
_utils).formatWithValidation(
Object.assign(
{},
_parsedAs,
{
pathname:
interpolatedAs.result,
query: omitParmsFromQuery(
query1,
interpolatedAs.params
),
}
)
);
} else {
// Merge params into `query`, overwriting any specified in search
Object.assign(
query1,
routeMatch
);
}
case 77:
Router.events.emit(
"routeChangeStart",
as,
routeProps
);
_context.prev = 78;
_context.next = 81;
return this.getRouteInfo(
route,
pathname1,
query1,
as,
resolvedAs,
routeProps
);
case 81:
routeInfo =
_context.sent;
(_routeInfo =
routeInfo),
(error =
_routeInfo.error),
(props =
_routeInfo.props),
(__N_SSG =
_routeInfo.__N_SSG),
(__N_SSP =
_routeInfo.__N_SSP); // handle redirect on client-transition
if (
!(
(__N_SSG ||
__N_SSP) &&
props
)
) {
_context.next = 107;
break;
}
if (
!(
props.pageProps &&
props
.pageProps
.__N_REDIRECT
)
) {
_context.next = 93;
break;
}
destination =
props.pageProps
.__N_REDIRECT; // check if destination is internal (resolves to a page) and attempt
// client-navigation if it is falling back to hard navigation if
// it's not
if (
!destination.startsWith(
"/"
)
) {
_context.next = 91;
break;
}
parsedHref = (0,
_parseRelativeUrl).parseRelativeUrl(
destination
);
parsedHref.pathname =
resolveDynamicRoute(
parsedHref.pathname,
pages
);
(_prepareUrlAs3 =
prepareUrlAs(
this,
destination,
destination
)),
(newUrl =
_prepareUrlAs3.url),
(newAs =
_prepareUrlAs3.as);
return _context.abrupt(
"return",
this.change(
method,
newUrl,
newAs,
options
)
);
case 91:
window.location.href =
destination;
return _context.abrupt(
"return",
new Promise(
function () {}
)
);
case 93:
this.isPreview =
!!props.__N_PREVIEW; // handle SSG data 404
if (
!(
props.notFound ===
SSG_DATA_NOT_FOUND
)
) {
_context.next = 107;
break;
}
_context.prev = 95;
_context.next = 98;
return this.fetchComponent(
"/404"
);
case 98:
notFoundRoute =
"/404";
_context.next = 104;
break;
case 101:
_context.prev = 101;
_context.t1 =
_context[
"catch"
](95);
notFoundRoute =
"/_error";
case 104:
_context.next = 106;
return this.getRouteInfo(
notFoundRoute,
notFoundRoute,
query1,
as,
resolvedAs,
{
shallow: false,
}
);
case 106:
routeInfo =
_context.sent;
case 107:
Router.events.emit(
"beforeHistoryChange",
as,
routeProps
);
this.changeState(
method,
url,
as,
options
);
if (false) {
}
if (
options._h &&
pathname1 ===
"/_error" &&
((ref =
self
.__NEXT_DATA__
.props) ===
null ||
ref === void 0
? void 0
: (ref1 =
ref.pageProps) ===
null ||
ref1 ===
void 0
? void 0
: ref1.statusCode) ===
500 &&
(props ===
null ||
props === void 0
? void 0
: props.pageProps)
) {
// ensure statusCode is still correct for static 500 page
// when updating query information
props.pageProps.statusCode = 500;
} // shallow routing is only allowed for same page URL changes.
isValidShallowRoute =
options.shallow &&
this.route ===
route;
shouldScroll =
(_scroll =
options.scroll) !==
null &&
_scroll !==
void 0
? _scroll
: !isValidShallowRoute;
resetScroll =
shouldScroll
? {
x: 0,
y: 0,
}
: null;
_context.next = 116;
return this.set(
route,
pathname1,
query1,
cleanedAs,
routeInfo,
forcedScroll !==
null &&
forcedScroll !==
void 0
? forcedScroll
: resetScroll
)["catch"](
function (e) {
if (
e.cancelled
)
error =
error ||
e;
else
throw e;
}
);
case 116:
if (!error) {
_context.next = 119;
break;
}
Router.events.emit(
"routeChangeError",
error,
cleanedAs,
routeProps
);
throw error;
case 119:
if (false) {
}
Router.events.emit(
"routeChangeComplete",
as,
routeProps
);
return _context.abrupt(
"return",
true
);
case 124:
_context.prev = 124;
_context.t2 =
_context[
"catch"
](78);
if (
!_context.t2
.cancelled
) {
_context.next = 128;
break;
}
return _context.abrupt(
"return",
false
);
case 128:
throw _context.t2;
case 129:
case "end":
return _context.stop();
}
}
},
_callee,
this,
[
[37, 47],
[78, 124],
[95, 101],
]
);
}
)
);
function change(_x, _x2, _x3, _x4, _x5) {
return _change.apply(this, arguments);
}
return change;
})(),
},
{
key: "changeState",
value: function changeState(method, url, as) {
var options =
arguments.length > 3 &&
arguments[3] !== undefined
? arguments[3]
: {};
if (false) {
}
if (
method !== "pushState" ||
(0, _utils).getURL() !== as
) {
this._shallow = options.shallow;
window.history[method](
{
url: url,
as: as,
options: options,
__N: true,
idx: (this._idx =
method !== "pushState"
? this._idx
: this._idx + 1),
}, // Most browsers currently ignores this parameter, although they may use it in the future.
// Passing the empty string here should be safe against future changes to the method.
// https://developer.mozilla.org/en-US/docs/Web/API/History/replaceState
"",
as
);
}
},
},
{
key: "handleRouteInfoError",
value: (function () {
var _handleRouteInfoError = _asyncToGenerator(
/*#__PURE__*/ _regeneratorRuntime.mark(
function _callee2(
err,
pathname,
query,
as,
routeProps,
loadErrorFail
) {
var Component1,
styleSheets,
props,
_yield$this$fetchComp,
routeInfo;
return _regeneratorRuntime.wrap(
function _callee2$(_context2) {
while (1) {
switch (
(_context2.prev =
_context2.next)
) {
case 0:
if (
!err.cancelled
) {
_context2.next = 2;
break;
}
throw err;
case 2:
if (
!(
(0,
_routeLoader).isAssetError(
err
) ||
loadErrorFail
)
) {
_context2.next = 6;
break;
}
Router.events.emit(
"routeChangeError",
err,
as,
routeProps
); // If we can't load the page it could be one of following reasons
// 1. Page doesn't exists
// 2. Page does exist in a different zone
// 3. Internal error while loading the page
// So, doing a hard reload is the proper way to deal with this.
window.location.href =
as; // Changing the URL doesn't block executing the current code path.
// So let's throw a cancellation error stop the routing logic.
throw buildCancellationError();
case 6:
_context2.prev = 6;
if (
!(
typeof Component1 ===
"undefined" ||
typeof styleSheets ===
"undefined"
)
) {
_context2.next = 13;
break;
}
_context2.next = 10;
return this.fetchComponent(
"/_error"
);
case 10:
_yield$this$fetchComp =
_context2.sent;
Component1 =
_yield$this$fetchComp.page;
styleSheets =
_yield$this$fetchComp.styleSheets;
case 13:
routeInfo = {
props: props,
Component:
Component1,
styleSheets:
styleSheets,
err: err,
error: err,
};
if (
routeInfo.props
) {
_context2.next = 25;
break;
}
_context2.prev = 15;
_context2.next = 18;
return this.getInitialProps(
Component1,
{
err: err,
pathname:
pathname,
query: query,
}
);
case 18:
routeInfo.props =
_context2.sent;
_context2.next = 25;
break;
case 21:
_context2.prev = 21;
_context2.t0 =
_context2[
"catch"
](15);
console.error(
"Error in error page `getInitialProps`: ",
_context2.t0
);
routeInfo.props =
{};
case 25:
return _context2.abrupt(
"return",
routeInfo
);
case 28:
_context2.prev = 28;
_context2.t1 =
_context2[
"catch"
](6);
return _context2.abrupt(
"return",
this.handleRouteInfoError(
_context2.t1,
pathname,
query,
as,
routeProps,
true
)
);
case 31:
case "end":
return _context2.stop();
}
}
},
_callee2,
this,
[
[6, 28],
[15, 21],
]
);
}
)
);
function handleRouteInfoError(
_x6,
_x7,
_x8,
_x9,
_x10,
_x11
) {
return _handleRouteInfoError.apply(
this,
arguments
);
}
return handleRouteInfoError;
})(),
},
{
key: "getRouteInfo",
value: (function () {
var _getRouteInfo = _asyncToGenerator(
/*#__PURE__*/ _regeneratorRuntime.mark(
function _callee3(
route,
pathname,
query,
as,
resolvedAs,
routeProps
) {
var _this2 = this;
var existingRouteInfo,
cachedRouteInfo,
routeInfo,
Component1,
__N_SSG,
__N_SSP,
_require,
isValidElementType,
dataHref,
props;
return _regeneratorRuntime.wrap(
function _callee3$(_context3) {
while (1) {
switch (
(_context3.prev =
_context3.next)
) {
case 0:
_context3.prev = 0;
existingRouteInfo =
this.components[
route
];
if (
!(
routeProps.shallow &&
existingRouteInfo &&
this
.route ===
route
)
) {
_context3.next = 4;
break;
}
return _context3.abrupt(
"return",
existingRouteInfo
);
case 4:
cachedRouteInfo =
existingRouteInfo &&
"initial" in
existingRouteInfo
? undefined
: existingRouteInfo;
if (
!cachedRouteInfo
) {
_context3.next = 9;
break;
}
_context3.t0 =
cachedRouteInfo;
_context3.next = 12;
break;
case 9:
_context3.next = 11;
return this.fetchComponent(
route
).then(function (
res
) {
return {
Component:
res.page,
styleSheets:
res.styleSheets,
__N_SSG:
res.mod
.__N_SSG,
__N_SSP:
res.mod
.__N_SSP,
};
});
case 11:
_context3.t0 =
_context3.sent;
case 12:
routeInfo =
_context3.t0;
(Component1 =
routeInfo.Component),
(__N_SSG =
routeInfo.__N_SSG),
(__N_SSP =
routeInfo.__N_SSP);
if (true) {
_context3.next = 18;
break;
}
(_require =
__webpack_require__(
Object(
(function webpackMissingModule() {
var e =
new Error(
"Cannot find module 'react-is'"
);
e.code =
"MODULE_NOT_FOUND";
throw e;
})()
)
)),
(isValidElementType =
_require.isValidElementType);
if (
isValidElementType(
Component1
)
) {
_context3.next = 18;
break;
}
throw new Error(
'The default export is not a React Component in page: "'.concat(
pathname,
'"'
)
);
case 18:
if (
__N_SSG ||
__N_SSP
) {
dataHref =
this.pageLoader.getDataHref(
(0,
_utils).formatWithValidation(
{
pathname:
pathname,
query: query,
}
),
resolvedAs,
__N_SSG,
this
.locale
);
}
_context3.next = 21;
return this._getData(
function () {
return __N_SSG
? _this2._getStaticData(
dataHref
)
: __N_SSP
? _this2._getServerData(
dataHref
)
: _this2.getInitialProps(
Component1, // we provide AppTree later so this needs to be `any`
{
pathname:
pathname,
query: query,
asPath: as,
locale: _this2.locale,
locales:
_this2.locales,
defaultLocale:
_this2.defaultLocale,
}
);
}
);
case 21:
props =
_context3.sent;
routeInfo.props =
props;
this.components[
route
] = routeInfo;
return _context3.abrupt(
"return",
routeInfo
);
case 27:
_context3.prev = 27;
_context3.t1 =
_context3[
"catch"
](0);
return _context3.abrupt(
"return",
this.handleRouteInfoError(
_context3.t1,
pathname,
query,
as,
routeProps
)
);
case 30:
case "end":
return _context3.stop();
}
}
},
_callee3,
this,
[[0, 27]]
);
}
)
);
function getRouteInfo(
_x12,
_x13,
_x14,
_x15,
_x16,
_x17
) {
return _getRouteInfo.apply(this, arguments);
}
return getRouteInfo;
})(),
},
{
key: "set",
value: function set(
route,
pathname,
query,
as,
data,
resetScroll
) {
this.isFallback = false;
this.route = route;
this.pathname = pathname;
this.query = query;
this.asPath = as;
return this.notify(data, resetScroll);
},
/**
* Callback to execute before replacing router state
* @param cb callback to be executed
*/
},
{
key: "beforePopState",
value: function beforePopState(cb) {
this._bps = cb;
},
},
{
key: "onlyAHashChange",
value: function onlyAHashChange(as) {
if (!this.asPath) return false;
var _this$asPath$split = this.asPath.split("#"),
_this$asPath$split2 = _slicedToArray(
_this$asPath$split,
2
),
oldUrlNoHash = _this$asPath$split2[0],
oldHash = _this$asPath$split2[1];
var _as$split = as.split("#"),
_as$split2 = _slicedToArray(_as$split, 2),
newUrlNoHash = _as$split2[0],
newHash = _as$split2[1]; // Makes sure we scroll to the provided hash if the url/hash are the same
if (
newHash &&
oldUrlNoHash === newUrlNoHash &&
oldHash === newHash
) {
return true;
} // If the urls are change, there's more than a hash change
if (oldUrlNoHash !== newUrlNoHash) {
return false;
} // If the hash has changed, then it's a hash only change.
// This check is necessary to handle both the enter and
// leave hash === '' cases. The identity case falls through
// and is treated as a next reload.
return oldHash !== newHash;
},
},
{
key: "scrollToHash",
value: function scrollToHash(as) {
var _as$split3 = as.split("#"),
_as$split4 = _slicedToArray(_as$split3, 2),
hash = _as$split4[1]; // Scroll to top if the hash is just `#` with no value or `#top`
// To mirror browsers
if (hash === "" || hash === "top") {
window.scrollTo(0, 0);
return;
} // First we check if the element by id is found
var idEl = document.getElementById(hash);
if (idEl) {
idEl.scrollIntoView();
return;
} // If there's no element with the id, we check the `name` property
// To mirror browsers
var nameEl = document.getElementsByName(hash)[0];
if (nameEl) {
nameEl.scrollIntoView();
}
},
},
{
key: "urlIsNew",
value: function urlIsNew(asPath) {
return this.asPath !== asPath;
},
/**
* Prefetch page code, you may wait for the data during page rendering.
* This feature only works in production!
* @param url the href of prefetched page
* @param asPath the as path of the prefetched page
*/
},
{
key: "prefetch",
value: (function () {
var _prefetch = _asyncToGenerator(
/*#__PURE__*/ _regeneratorRuntime.mark(
function _callee4(url) {
var _this3 = this;
var asPath,
options,
parsed,
pathname2,
parsedAs,
localePathResult,
pages,
resolvedAs,
rewrites,
_yield$getClientBuild2,
rewritesResult,
route,
_args4 = arguments;
return _regeneratorRuntime.wrap(
function _callee4$(_context4) {
while (1) {
switch (
(_context4.prev =
_context4.next)
) {
case 0:
asPath =
_args4.length >
1 &&
_args4[1] !==
undefined
? _args4[1]
: url;
options =
_args4.length >
2 &&
_args4[2] !==
undefined
? _args4[2]
: {};
parsed = (0,
_parseRelativeUrl).parseRelativeUrl(
url
);
pathname2 =
parsed.pathname;
if (false) {
}
_context4.next = 7;
return this.pageLoader.getPageList();
case 7:
pages =
_context4.sent;
resolvedAs = asPath;
if (true) {
_context4.next = 19;
break;
}
_context4.next = 12;
return (0,
_routeLoader).getClientBuildManifest();
case 12:
_yield$getClientBuild2 =
_context4.sent;
rewrites =
_yield$getClientBuild2.__rewrites;
rewritesResult = (0,
_resolveRewrites)[
"default"
](
addBasePath(
addLocale(
asPath,
this
.locale
)
),
pages,
rewrites,
parsed.query,
function (p) {
return resolveDynamicRoute(
p,
pages
);
},
this.locales
);
resolvedAs =
delLocale(
delBasePath(
rewritesResult.asPath
),
this.locale
);
if (
rewritesResult.matchedPage &&
rewritesResult.resolvedHref
) {
// if this directly matches a page we need to update the href to
// allow the correct page chunk to be loaded
pathname2 =
rewritesResult.resolvedHref;
parsed.pathname =
pathname2;
url = (0,
_utils).formatWithValidation(
parsed
);
}
_context4.next = 21;
break;
case 19:
parsed.pathname =
resolveDynamicRoute(
parsed.pathname,
pages
);
if (
parsed.pathname !==
pathname2
) {
pathname2 =
parsed.pathname;
parsed.pathname =
pathname2;
url = (0,
_utils).formatWithValidation(
parsed
);
}
case 21:
route = (0,
_normalizeTrailingSlash).removePathTrailingSlash(
pathname2
); // Prefetch is not supported in development mode because it would trigger on-demand-entries
if (true) {
_context4.next = 24;
break;
}
return _context4.abrupt(
"return"
);
case 24:
_context4.next = 26;
return Promise.all([
this.pageLoader
._isSsg(
route
)
.then(
function (
isSsg
) {
return isSsg
? _this3._getStaticData(
_this3.pageLoader.getDataHref(
url,
resolvedAs,
true,
typeof options.locale !==
"undefined"
? options.locale
: _this3.locale
)
)
: false;
}
),
this.pageLoader[
options.priority
? "loadPage"
: "prefetch"
](route),
]);
case 26:
case "end":
return _context4.stop();
}
}
},
_callee4,
this
);
}
)
);
function prefetch(_x18) {
return _prefetch.apply(this, arguments);
}
return prefetch;
})(),
},
{
key: "fetchComponent",
value: (function () {
var _fetchComponent = _asyncToGenerator(
/*#__PURE__*/ _regeneratorRuntime.mark(
function _callee5(route) {
var cancelled,
cancel,
componentResult,
error;
return _regeneratorRuntime.wrap(
function _callee5$(_context5) {
while (1) {
switch (
(_context5.prev =
_context5.next)
) {
case 0:
cancelled = false;
cancel = this.clc =
function () {
cancelled = true;
};
_context5.next = 4;
return this.pageLoader.loadPage(
route
);
case 4:
componentResult =
_context5.sent;
if (!cancelled) {
_context5.next = 9;
break;
}
error = new Error(
'Abort fetching component for route: "'.concat(
route,
'"'
)
);
error.cancelled = true;
throw error;
case 9:
if (
cancel ===
this.clc
) {
this.clc = null;
}
return _context5.abrupt(
"return",
componentResult
);
case 11:
case "end":
return _context5.stop();
}
}
},
_callee5,
this
);
}
)
);
function fetchComponent(_x19) {
return _fetchComponent.apply(this, arguments);
}
return fetchComponent;
})(),
},
{
key: "_getData",
value: function _getData(fn) {
var _this4 = this;
var cancelled = false;
var cancel = function cancel() {
cancelled = true;
};
this.clc = cancel;
return fn().then(function (data) {
if (cancel === _this4.clc) {
_this4.clc = null;
}
if (cancelled) {
var err2 = new Error(
"Loading initial props cancelled"
);
err2.cancelled = true;
throw err2;
}
return data;
});
},
},
{
key: "_getStaticData",
value: function _getStaticData(dataHref) {
var _this5 = this;
var _URL = new URL(dataHref, window.location.href),
cacheKey = _URL.href;
if (true && !this.isPreview && this.sdc[cacheKey]) {
return Promise.resolve(this.sdc[cacheKey]);
}
return fetchNextData(dataHref, this.isSsr).then(
function (data) {
_this5.sdc[cacheKey] = data;
return data;
}
);
},
},
{
key: "_getServerData",
value: function _getServerData(dataHref) {
var _this6 = this;
var _URL2 = new URL(dataHref, window.location.href),
resourceKey = _URL2.href;
if (this.sdr[resourceKey]) {
return this.sdr[resourceKey];
}
return (this.sdr[resourceKey] = fetchNextData(
dataHref,
this.isSsr
)
.then(function (data) {
delete _this6.sdr[resourceKey];
return data;
})
["catch"](function (err2) {
delete _this6.sdr[resourceKey];
throw err2;
}));
},
},
{
key: "getInitialProps",
value: function getInitialProps(Component, ctx) {
var App1 = this.components["/_app"].Component;
var AppTree = this._wrapApp(App1);
ctx.AppTree = AppTree;
return (0, _utils).loadGetInitialProps(App1, {
AppTree: AppTree,
Component: Component,
router: this,
ctx: ctx,
});
},
},
{
key: "abortComponentLoad",
value: function abortComponentLoad(as, routeProps) {
if (this.clc) {
Router.events.emit(
"routeChangeError",
buildCancellationError(),
as,
routeProps
);
this.clc();
this.clc = null;
}
},
},
{
key: "notify",
value: function notify(data, resetScroll) {
return this.sub(
data,
this.components["/_app"].Component,
resetScroll
);
},
},
]);
return Router;
})();
Router.events = (0, _mitt)["default"]();
exports.default = Router;
/***/
},
/***/ 1857: /***/ function (
__unused_webpack_module,
exports,
__webpack_require__
) {
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true,
});
exports.formatUrl = formatUrl;
var querystring = _interopRequireWildcard(
__webpack_require__(6136)
);
function _interopRequireWildcard(obj) {
if (obj && obj.__esModule) {
return obj;
} else {
var newObj = {};
if (obj != null) {
for (var key in obj) {
if (
Object.prototype.hasOwnProperty.call(obj, key)
) {
var desc =
Object.defineProperty &&
Object.getOwnPropertyDescriptor
? Object.getOwnPropertyDescriptor(
obj,
key
)
: {};
if (desc.get || desc.set) {
Object.defineProperty(newObj, key, desc);
} else {
newObj[key] = obj[key];
}
}
}
}
newObj["default"] = obj;
return newObj;
}
}
var slashedProtocols = /https?|ftp|gopher|file/;
function formatUrl(urlObj) {
var auth = urlObj.auth,
hostname = urlObj.hostname;
var protocol = urlObj.protocol || "";
var pathname = urlObj.pathname || "";
var hash = urlObj.hash || "";
var query = urlObj.query || "";
var host = false;
auth = auth
? encodeURIComponent(auth).replace(/%3A/i, ":") + "@"
: "";
if (urlObj.host) {
host = auth + urlObj.host;
} else if (hostname) {
host =
auth +
(~hostname.indexOf(":")
? "[".concat(hostname, "]")
: hostname);
if (urlObj.port) {
host += ":" + urlObj.port;
}
}
if (query && typeof query === "object") {
query = String(querystring.urlQueryToSearchParams(query));
}
var search =
urlObj.search || (query && "?".concat(query)) || "";
if (protocol && protocol.substr(-1) !== ":") protocol += ":";
if (
urlObj.slashes ||
((!protocol || slashedProtocols.test(protocol)) &&
host !== false)
) {
host = "//" + (host || "");
if (pathname && pathname[0] !== "/")
pathname = "/" + pathname;
} else if (!host) {
host = "";
}
if (hash && hash[0] !== "#") hash = "#" + hash;
if (search && search[0] !== "?") search = "?" + search;
pathname = pathname.replace(/[?#]/g, encodeURIComponent);
search = search.replace("#", "%23");
return ""
.concat(protocol)
.concat(host)
.concat(pathname)
.concat(search)
.concat(hash);
}
/***/
},
/***/ 3794: /***/ function (__unused_webpack_module, exports) {
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true,
});
exports.default = getAssetPathFromRoute;
function getAssetPathFromRoute(route) {
var ext =
arguments.length > 1 && arguments[1] !== undefined
? arguments[1]
: "";
var path =
route === "/"
? "/index"
: /^\/index(\/|$)/.test(route)
? "/index".concat(route)
: "".concat(route);
return path + ext;
}
/***/
},
/***/ 2140: /***/ function (__unused_webpack_module, exports) {
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true,
});
exports.isDynamicRoute = isDynamicRoute; // Identify /[param]/ in route string
var TEST_ROUTE = /\/\[[^/]+?\](?=\/|$)/;
function isDynamicRoute(route) {
return TEST_ROUTE.test(route);
}
/***/
},
/***/ 5284: /***/ function (
__unused_webpack_module,
exports,
__webpack_require__
) {
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true,
});
exports.parseRelativeUrl = parseRelativeUrl;
var _utils = __webpack_require__(6373);
var _querystring = __webpack_require__(6136);
function parseRelativeUrl(url, base) {
var globalBase = new URL(
false ? 0 : (0, _utils).getLocationOrigin()
);
var resolvedBase = base
? new URL(base, globalBase)
: globalBase;
var _URL = new URL(url, resolvedBase),
pathname = _URL.pathname,
searchParams = _URL.searchParams,
search = _URL.search,
hash = _URL.hash,
href = _URL.href,
origin = _URL.origin;
if (origin !== globalBase.origin) {
throw new Error(
"invariant: invalid relative URL, router received ".concat(
url
)
);
}
return {
pathname: pathname,
query: (0, _querystring).searchParamsToUrlQuery(
searchParams
),
search: search,
hash: hash,
href: href.slice(globalBase.origin.length),
};
}
/***/
},
/***/ 6136: /***/ function (
__unused_webpack_module,
exports,
__webpack_require__
) {
"use strict";
var _slicedToArray = __webpack_require__(3408);
Object.defineProperty(exports, "__esModule", {
value: true,
});
exports.searchParamsToUrlQuery = searchParamsToUrlQuery;
exports.urlQueryToSearchParams = urlQueryToSearchParams;
exports.assign = assign;
function searchParamsToUrlQuery(searchParams) {
var query = {};
searchParams.forEach(function (value, key) {
if (typeof query[key] === "undefined") {
query[key] = value;
} else if (Array.isArray(query[key])) {
query[key].push(value);
} else {
query[key] = [query[key], value];
}
});
return query;
}
function stringifyUrlQueryParam(param) {
if (
typeof param === "string" ||
(typeof param === "number" && !isNaN(param)) ||
typeof param === "boolean"
) {
return String(param);
} else {
return "";
}
}
function urlQueryToSearchParams(urlQuery) {
var result = new URLSearchParams();
Object.entries(urlQuery).forEach(function (_ref) {
var _ref2 = _slicedToArray(_ref, 2),
key = _ref2[0],
value = _ref2[1];
if (Array.isArray(value)) {
value.forEach(function (item) {
return result.append(
key,
stringifyUrlQueryParam(item)
);
});
} else {
result.set(key, stringifyUrlQueryParam(value));
}
});
return result;
}
function assign(target) {
for (
var _len = arguments.length,
searchParamsList = new Array(_len > 1 ? _len - 1 : 0),
_key = 1;
_key < _len;
_key++
) {
searchParamsList[_key - 1] = arguments[_key];
}
searchParamsList.forEach(function (searchParams) {
Array.from(searchParams.keys()).forEach(function (key) {
return target["delete"](key);
});
searchParams.forEach(function (value, key) {
return target.append(key, value);
});
});
return target;
}
/***/
},
/***/ 2106: /***/ function (
__unused_webpack_module,
exports,
__webpack_require__
) {
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true,
});
exports.getRouteMatcher = getRouteMatcher;
var _utils = __webpack_require__(6373);
function getRouteMatcher(routeRegex) {
var re = routeRegex.re,
groups = routeRegex.groups;
return function (pathname) {
var routeMatch = re.exec(pathname);
if (!routeMatch) {
return false;
}
var decode = function decode(param) {
try {
return decodeURIComponent(param);
} catch (_) {
throw new _utils.DecodeError(
"failed to decode param"
);
}
};
var params = {};
Object.keys(groups).forEach(function (slugName) {
var g = groups[slugName];
var m = routeMatch[g.pos];
if (m !== undefined) {
params[slugName] = ~m.indexOf("/")
? m.split("/").map(function (entry) {
return decode(entry);
})
: g.repeat
? [decode(m)]
: decode(m);
}
});
return params;
};
}
/***/
},
/***/ 4339: /***/ function (__unused_webpack_module, exports) {
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true,
});
exports.getParametrizedRoute = getParametrizedRoute;
exports.getRouteRegex = getRouteRegex; // this isn't importing the escape-string-regex module
// to reduce bytes
function escapeRegex(str) {
return str.replace(/[|\\{}()[\]^$+*?.-]/g, "\\$&");
}
function parseParameter(param) {
var optional = param.startsWith("[") && param.endsWith("]");
if (optional) {
param = param.slice(1, -1);
}
var repeat = param.startsWith("...");
if (repeat) {
param = param.slice(3);
}
return {
key: param,
repeat: repeat,
optional: optional,
};
}
function getParametrizedRoute(route) {
var segments = (route.replace(/\/$/, "") || "/")
.slice(1)
.split("/");
var groups = {};
var groupIndex = 1;
var parameterizedRoute = segments
.map(function (segment) {
if (segment.startsWith("[") && segment.endsWith("]")) {
var _parseParameter = parseParameter(
segment.slice(1, -1)
),
key = _parseParameter.key,
optional = _parseParameter.optional,
repeat = _parseParameter.repeat;
groups[key] = {
pos: groupIndex++,
repeat: repeat,
optional: optional,
};
return repeat
? optional
? "(?:/(.+?))?"
: "/(.+?)"
: "/([^/]+?)";
} else {
return "/".concat(escapeRegex(segment));
}
})
.join(""); // dead code eliminate for browser since it's only needed
// while generating routes-manifest
if (false) {
var namedParameterizedRoute,
routeKeys,
getSafeRouteKey,
routeKeyCharLength,
routeKeyCharCode;
}
return {
parameterizedRoute: parameterizedRoute,
groups: groups,
};
}
function getRouteRegex(normalizedRoute) {
var result = getParametrizedRoute(normalizedRoute);
if ("routeKeys" in result) {
return {
re: new RegExp(
"^".concat(result.parameterizedRoute, "(?:/)?$")
),
groups: result.groups,
routeKeys: result.routeKeys,
namedRegex: "^".concat(
result.namedParameterizedRoute,
"(?:/)?$"
),
};
}
return {
re: new RegExp(
"^".concat(result.parameterizedRoute, "(?:/)?$")
),
groups: result.groups,
};
}
/***/
},
/***/ 3338: /***/ function (__unused_webpack_module, exports) {
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true,
});
exports.setConfig = setConfig;
exports.default = void 0;
var runtimeConfig;
var _default = function _default() {
return runtimeConfig;
};
exports.default = _default;
function setConfig(configValue) {
runtimeConfig = configValue;
}
/***/
},
/***/ 2097: /***/ function (
__unused_webpack_module,
exports,
__webpack_require__
) {
"use strict";
var _toConsumableArray = __webpack_require__(9571);
var _classCallCheck = __webpack_require__(4988);
var _createClass = __webpack_require__(9590);
var _assertThisInitialized = __webpack_require__(9382);
var _inherits = __webpack_require__(4546);
var _possibleConstructorReturn = __webpack_require__(1581);
var _getPrototypeOf = __webpack_require__(852);
function _createSuper(Derived) {
var hasNativeReflectConstruct = _isNativeReflectConstruct();
return function _createSuperInternal() {
var Super = _getPrototypeOf(Derived),
result;
if (hasNativeReflectConstruct) {
var NewTarget = _getPrototypeOf(this).constructor;
result = Reflect.construct(Super, arguments, NewTarget);
} else {
result = Super.apply(this, arguments);
}
return _possibleConstructorReturn(this, result);
};
}
function _isNativeReflectConstruct() {
if (typeof Reflect === "undefined" || !Reflect.construct)
return false;
if (Reflect.construct.sham) return false;
if (typeof Proxy === "function") return true;
try {
Date.prototype.toString.call(
Reflect.construct(Date, [], function () {})
);
return true;
} catch (e) {
return false;
}
}
Object.defineProperty(exports, "__esModule", {
value: true,
});
exports.default = void 0;
var _react = __webpack_require__(2735);
var isServer = false;
var _class = /*#__PURE__*/ (function (_react$Component) {
_inherits(_class, _react$Component);
var _super = _createSuper(_class);
function _class(props) {
var _this;
_classCallCheck(this, _class);
_this = _super.call(this, props);
_this.emitChange = function () {
if (_this._hasHeadManager) {
_this.props.headManager.updateHead(
_this.props.reduceComponentsToState(
_toConsumableArray(
_this.props.headManager.mountedInstances
),
_this.props
)
);
}
};
_this._hasHeadManager =
_this.props.headManager &&
_this.props.headManager.mountedInstances;
if (isServer && _this._hasHeadManager) {
_this.props.headManager.mountedInstances.add(
_assertThisInitialized(_this)
);
_this.emitChange();
}
return _this;
}
_createClass(_class, [
{
key: "componentDidMount",
value: function componentDidMount() {
if (this._hasHeadManager) {
this.props.headManager.mountedInstances.add(
this
);
}
this.emitChange();
},
},
{
key: "componentDidUpdate",
value: function componentDidUpdate() {
this.emitChange();
},
},
{
key: "componentWillUnmount",
value: function componentWillUnmount() {
if (this._hasHeadManager) {
this.props.headManager.mountedInstances[
"delete"
](this);
}
this.emitChange();
},
},
{
key: "render",
value: function render() {
return null;
},
},
]);
return _class;
})(_react.Component);
exports.default = _class;
/***/
},
/***/ 6373: /***/ function (
__unused_webpack_module,
exports,
__webpack_require__
) {
"use strict";
var _regeneratorRuntime = __webpack_require__(7945);
var _classCallCheck = __webpack_require__(4988);
var _inherits = __webpack_require__(4546);
var _possibleConstructorReturn = __webpack_require__(1581);
var _getPrototypeOf = __webpack_require__(852);
var _wrapNativeSuper = __webpack_require__(8545);
var _asyncToGenerator = __webpack_require__(5374);
function _createSuper(Derived) {
var hasNativeReflectConstruct = _isNativeReflectConstruct();
return function _createSuperInternal() {
var Super = _getPrototypeOf(Derived),
result;
if (hasNativeReflectConstruct) {
var NewTarget = _getPrototypeOf(this).constructor;
result = Reflect.construct(Super, arguments, NewTarget);
} else {
result = Super.apply(this, arguments);
}
return _possibleConstructorReturn(this, result);
};
}
function _isNativeReflectConstruct() {
if (typeof Reflect === "undefined" || !Reflect.construct)
return false;
if (Reflect.construct.sham) return false;
if (typeof Proxy === "function") return true;
try {
Date.prototype.toString.call(
Reflect.construct(Date, [], function () {})
);
return true;
} catch (e) {
return false;
}
}
Object.defineProperty(exports, "__esModule", {
value: true,
});
exports.execOnce = execOnce;
exports.getLocationOrigin = getLocationOrigin;
exports.getURL = getURL;
exports.getDisplayName = getDisplayName;
exports.isResSent = isResSent;
exports.loadGetInitialProps = loadGetInitialProps;
exports.formatWithValidation = formatWithValidation;
exports.ST = exports.SP = exports.urlObjectKeys = void 0;
var _formatUrl = __webpack_require__(1857);
function execOnce(fn) {
var used = false;
var result;
return function () {
if (!used) {
used = true;
result = fn.apply(void 0, arguments);
}
return result;
};
}
function getLocationOrigin() {
var _window$location = window.location,
protocol = _window$location.protocol,
hostname = _window$location.hostname,
port = _window$location.port;
return ""
.concat(protocol, "//")
.concat(hostname)
.concat(port ? ":" + port : "");
}
function getURL() {
var href = window.location.href;
var origin = getLocationOrigin();
return href.substring(origin.length);
}
function getDisplayName(Component) {
return typeof Component === "string"
? Component
: Component.displayName || Component.name || "Unknown";
}
function isResSent(res) {
return res.finished || res.headersSent;
}
function loadGetInitialProps(_x, _x2) {
return _loadGetInitialProps.apply(this, arguments);
}
function _loadGetInitialProps() {
_loadGetInitialProps = _asyncToGenerator(
/*#__PURE__*/ _regeneratorRuntime.mark(function _callee(
App,
ctx
) {
var ref, message, res, props, _message;
return _regeneratorRuntime.wrap(function _callee$(
_context
) {
while (1) {
switch ((_context.prev = _context.next)) {
case 0:
if (true) {
_context.next = 4;
break;
}
if (
!((ref = App.prototype) === null ||
ref === void 0
? void 0
: ref.getInitialProps)
) {
_context.next = 4;
break;
}
message = '"'.concat(
getDisplayName(App),
'.getInitialProps()" is defined as an instance method - visit https://nextjs.org/docs/messages/get-initial-props-as-an-instance-method for more information.'
);
throw new Error(message);
case 4:
// when called from _app `ctx` is nested in `ctx`
res =
ctx.res || (ctx.ctx && ctx.ctx.res);
if (App.getInitialProps) {
_context.next = 12;
break;
}
if (!(ctx.ctx && ctx.Component)) {
_context.next = 11;
break;
}
_context.next = 9;
return loadGetInitialProps(
ctx.Component,
ctx.ctx
);
case 9:
_context.t0 = _context.sent;
return _context.abrupt("return", {
pageProps: _context.t0,
});
case 11:
return _context.abrupt("return", {});
case 12:
_context.next = 14;
return App.getInitialProps(ctx);
case 14:
props = _context.sent;
if (!(res && isResSent(res))) {
_context.next = 17;
break;
}
return _context.abrupt("return", props);
case 17:
if (props) {
_context.next = 20;
break;
}
_message = '"'
.concat(
getDisplayName(App),
'.getInitialProps()" should resolve to an object. But found "'
)
.concat(props, '" instead.');
throw new Error(_message);
case 20:
if (false) {
}
return _context.abrupt("return", props);
case 22:
case "end":
return _context.stop();
}
}
},
_callee);
})
);
return _loadGetInitialProps.apply(this, arguments);
}
var urlObjectKeys = [
"auth",
"hash",
"host",
"hostname",
"href",
"path",
"pathname",
"port",
"protocol",
"query",
"search",
"slashes",
];
exports.urlObjectKeys = urlObjectKeys;
function formatWithValidation(url) {
if (false) {
}
return (0, _formatUrl).formatUrl(url);
}
var SP = typeof performance !== "undefined";
exports.SP = SP;
var ST =
SP &&
typeof performance.mark === "function" &&
typeof performance.measure === "function";
exports.ST = ST;
var DecodeError = /*#__PURE__*/ (function (_Error) {
_inherits(DecodeError, _Error);
var _super = _createSuper(DecodeError);
function DecodeError() {
_classCallCheck(this, DecodeError);
return _super.apply(this, arguments);
}
return DecodeError;
})(/*#__PURE__*/ _wrapNativeSuper(Error));
exports.DecodeError = DecodeError;
/***/
},
/***/ 1474: /***/ function (module) {
"use strict";
var assign = Object.assign.bind(Object);
module.exports = assign;
module.exports.default = module.exports;
//# sourceMappingURL=object-assign.js.map
/***/
},
/***/ 5549: /***/ function (module) {
var __dirname = "/";
module.exports = (function () {
var e = {
770: function (e, t) {
!(function (e, n) {
true ? n(t) : 0;
})(this, function (e) {
"use strict";
var t,
n,
i,
r,
a = function (e, t) {
return {
name: e,
value: void 0 === t ? -1 : t,
delta: 0,
entries: [],
id: "v2-"
.concat(Date.now(), "-")
.concat(
Math.floor(
8999999999999 *
Math.random()
) + 1e12
),
};
},
o = function (e, t) {
try {
if (
PerformanceObserver.supportedEntryTypes.includes(
e
)
) {
if (
"first-input" === e &&
!(
"PerformanceEventTiming" in
self
)
)
return;
var n = new PerformanceObserver(
function (e) {
return e
.getEntries()
.map(t);
}
);
return (
n.observe({
type: e,
buffered: !0,
}),
n
);
}
} catch (e) {}
},
u = function (e, t) {
var i = function n(i) {
("pagehide" !== i.type &&
"hidden" !==
document.visibilityState) ||
(e(i),
t &&
(removeEventListener(
"visibilitychange",
n,
!0
),
removeEventListener(
"pagehide",
n,
!0
)));
};
addEventListener("visibilitychange", i, !0),
addEventListener("pagehide", i, !0);
},
c = function (e) {
addEventListener(
"pageshow",
function (t) {
t.persisted && e(t);
},
!0
);
},
s = function (e, t, n) {
var i;
return function (r) {
t.value >= 0 &&
(r || n) &&
((t.delta = t.value - (i || 0)),
(t.delta || void 0 === i) &&
((i = t.value), e(t)));
};
},
f = -1,
v = function () {
return "hidden" === document.visibilityState
? 0
: 1 / 0;
},
m = function () {
u(function (e) {
var t = e.timeStamp;
f = t;
}, !0);
},
p = function () {
return (
f < 0 &&
((f = v()),
m(),
c(function () {
setTimeout(function () {
(f = v()), m();
}, 0);
})),
{
get firstHiddenTime() {
return f;
},
}
);
},
d = function (e, t) {
var n,
i = p(),
r = a("FCP"),
u = function (e) {
"first-contentful-paint" ===
e.name &&
(v && v.disconnect(),
e.startTime <
i.firstHiddenTime &&
((r.value = e.startTime),
r.entries.push(e),
n(!0)));
},
f =
performance.getEntriesByName &&
performance.getEntriesByName(
"first-contentful-paint"
)[0],
v = f ? null : o("paint", u);
(f || v) &&
((n = s(e, r, t)),
f && u(f),
c(function (i) {
(r = a("FCP")),
(n = s(e, r, t)),
requestAnimationFrame(
function () {
requestAnimationFrame(
function () {
(r.value =
performance.now() -
i.timeStamp),
n(!0);
}
);
}
);
}));
},
l = !1,
g = -1,
h = {
passive: !0,
capture: !0,
},
y = new Date(),
T = function (e, r) {
t ||
((t = r),
(n = e),
(i = new Date()),
w(removeEventListener),
_());
},
_ = function () {
if (n >= 0 && n < i - y) {
var e = {
entryType: "first-input",
name: t.type,
target: t.target,
cancelable: t.cancelable,
startTime: t.timeStamp,
processingStart: t.timeStamp + n,
};
r.forEach(function (t) {
t(e);
}),
(r = []);
}
},
E = function (e) {
if (e.cancelable) {
var t =
(e.timeStamp > 1e12
? new Date()
: performance.now()) -
e.timeStamp;
"pointerdown" == e.type
? (function (e, t) {
var n = function () {
T(e, t), r();
},
i = function () {
r();
},
r = function () {
removeEventListener(
"pointerup",
n,
h
),
removeEventListener(
"pointercancel",
i,
h
);
};
addEventListener(
"pointerup",
n,
h
),
addEventListener(
"pointercancel",
i,
h
);
})(t, e)
: T(t, e);
}
},
w = function (e) {
[
"mousedown",
"keydown",
"touchstart",
"pointerdown",
].forEach(function (t) {
return e(t, E, h);
});
},
S = new Set();
(e.getCLS = function (e, t) {
l ||
(d(function (e) {
g = e.value;
}),
(l = !0));
var n,
i = function (t) {
g > -1 && e(t);
},
r = a("CLS", 0),
f = 0,
v = [],
m = function (e) {
if (!e.hadRecentInput) {
var t = v[0],
i = v[v.length - 1];
f &&
e.startTime - i.startTime < 1e3 &&
e.startTime - t.startTime < 5e3
? ((f += e.value), v.push(e))
: ((f = e.value), (v = [e])),
f > r.value &&
((r.value = f),
(r.entries = v),
n());
}
},
p = o("layout-shift", m);
p &&
((n = s(i, r, t)),
u(function () {
p.takeRecords().map(m), n(!0);
}),
c(function () {
(f = 0),
(g = -1),
(r = a("CLS", 0)),
(n = s(i, r, t));
}));
}),
(e.getFCP = d),
(e.getFID = function (e, i) {
var f,
v = p(),
m = a("FID"),
d = function (e) {
e.startTime < v.firstHiddenTime &&
((m.value =
e.processingStart -
e.startTime),
m.entries.push(e),
f(!0));
},
l = o("first-input", d);
(f = s(e, m, i)),
l &&
u(function () {
l.takeRecords().map(d),
l.disconnect();
}, !0),
l &&
c(function () {
var o;
(m = a("FID")),
(f = s(e, m, i)),
(r = []),
(n = -1),
(t = null),
w(addEventListener),
(o = d),
r.push(o),
_();
});
}),
(e.getLCP = function (e, t) {
var n,
i = p(),
r = a("LCP"),
f = function (e) {
var t = e.startTime;
t < i.firstHiddenTime &&
((r.value = t),
r.entries.push(e)),
n();
},
v = o("largest-contentful-paint", f);
if (v) {
n = s(e, r, t);
var m = function () {
S.has(r.id) ||
(v.takeRecords().map(f),
v.disconnect(),
S.add(r.id),
n(!0));
};
["keydown", "click"].forEach(function (
e
) {
addEventListener(e, m, {
once: !0,
capture: !0,
});
}),
u(m, !0),
c(function (i) {
(r = a("LCP")),
(n = s(e, r, t)),
requestAnimationFrame(
function () {
requestAnimationFrame(
function () {
(r.value =
performance.now() -
i.timeStamp),
S.add(
r.id
),
n(!0);
}
);
}
);
});
}
}),
(e.getTTFB = function (e) {
var t,
n = a("TTFB");
(t = function () {
try {
var t =
performance.getEntriesByType(
"navigation"
)[0] ||
(function () {
var e = performance.timing,
t = {
entryType:
"navigation",
startTime: 0,
};
for (var n in e)
"navigationStart" !==
n &&
"toJSON" !== n &&
(t[n] = Math.max(
e[n] -
e.navigationStart,
0
));
return t;
})();
if (
((n.value = n.delta =
t.responseStart),
n.value < 0)
)
return;
(n.entries = [t]), e(n);
} catch (e) {}
}),
"complete" === document.readyState
? setTimeout(t, 0)
: addEventListener("pageshow", t);
}),
Object.defineProperty(e, "__esModule", {
value: !0,
});
});
},
};
var t = {};
function __nccwpck_require__(n) {
if (t[n]) {
return t[n].exports;
}
var i = (t[n] = {
exports: {},
});
var r = true;
try {
e[n].call(i.exports, i, i.exports, __nccwpck_require__);
r = false;
} finally {
if (r) delete t[n];
}
return i.exports;
}
__nccwpck_require__.ab = __dirname + "/";
return __nccwpck_require__(770);
})();
/***/
},
/***/ 709: /***/ function (__unused_webpack_module, exports) {
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true,
});
exports.normalizePathSep = normalizePathSep;
exports.denormalizePagePath = denormalizePagePath;
function normalizePathSep(path) {
return path.replace(/\\/g, "/");
}
function denormalizePagePath(page) {
page = normalizePathSep(page);
if (page.startsWith("/index/")) {
page = page.slice(6);
} else if (page === "/index") {
page = "/";
}
return page;
}
//# sourceMappingURL=denormalize-page-path.js.map
/***/
},
/***/ 808: /***/ function () {
/* (ignored) */
/***/
},
},
/******/ function (__webpack_require__) {
// webpackRuntimeModules
/******/ var __webpack_exec__ = function (moduleId) {
return __webpack_require__((__webpack_require__.s = moduleId));
};
/******/ __webpack_require__.O(0, [774], function () {
return __webpack_exec__(5079);
});
/******/ var __webpack_exports__ = __webpack_require__.O();
/******/ _N_E = __webpack_exports__;
/******/
},
]);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/fixture/projects/next/.archive-4/main-2953d6142ff4a439dbc0/output.js | JavaScript | (self.webpackChunk_N_E = self.webpackChunk_N_E || []).push(
[
[179,],
{
4291: function (
module
) {
module.exports = function (
arr, len
) {
(null == len || len > arr.length) && (len = arr.length);
for (var i = 0, arr2 = new Array(
len
); i < len; i++)
arr2[i] = arr[i];
return arr2;
};
},
4325: function (
module
) {
module.exports = function (
arr
) {
if (Array.isArray(
arr
)) return arr;
};
},
123: function (
module, __unused_webpack_exports, __webpack_require__
) {
var arrayLikeToArray = __webpack_require__(
4291
);
module.exports = function (
arr
) {
if (Array.isArray(
arr
)) return arrayLikeToArray(
arr
);
};
},
9382: function (
module
) {
module.exports = function (
self
) {
if (void 0 === self)
throw new ReferenceError(
"this hasn't been initialised - super() hasn't been called"
);
return self;
};
},
5374: function (
module
) {
function asyncGeneratorStep(
gen,
resolve,
reject,
_next,
_throw,
key,
arg
) {
try {
var info = gen[key](
arg
),
value = info.value;
} catch (error) {
return void reject(
error
);
}
info.done
? resolve(
value
)
: Promise.resolve(
value
).then(
_next,
_throw
);
}
module.exports = function (
fn
) {
return function (
) {
var self = this,
args = arguments;
return new Promise(
function (
resolve, reject
) {
var gen = fn.apply(
self,
args
);
function _next(
value
) {
asyncGeneratorStep(
gen,
resolve,
reject,
_next,
_throw,
"next",
value
);
}
function _throw(
err
) {
asyncGeneratorStep(
gen,
resolve,
reject,
_next,
_throw,
"throw",
err
);
}
_next(
void 0
);
}
);
};
};
},
4988: function (
module
) {
module.exports = function (
instance, Constructor
) {
if (!(instance instanceof Constructor))
throw new TypeError(
"Cannot call a class as a function"
);
};
},
4096: function (
module, __unused_webpack_exports, __webpack_require__
) {
var setPrototypeOf = __webpack_require__(
990
),
isNativeReflectConstruct = __webpack_require__(
6340
);
function _construct(
Parent, args, Class
) {
return (
isNativeReflectConstruct(
)
? (module.exports = _construct = Reflect.construct)
: (module.exports = _construct =
function (
Parent, args, Class
) {
var a = [null,];
a.push.apply(
a,
args
);
var instance = new (Function.bind.apply(
Parent,
a
))(
);
return (
Class &&
setPrototypeOf(
instance,
Class.prototype
),
instance
);
}),
_construct.apply(
null,
arguments
)
);
}
module.exports = _construct;
},
9590: function (
module
) {
function _defineProperties(
target, props
) {
for (var i = 0; i < props.length; i++) {
var descriptor = props[i];
(descriptor.enumerable = descriptor.enumerable || !1),
(descriptor.configurable = !0),
"value" in descriptor && (descriptor.writable = !0),
Object.defineProperty(
target,
descriptor.key,
descriptor
);
}
}
module.exports = function (
Constructor, protoProps, staticProps
) {
return (
protoProps &&
_defineProperties(
Constructor.prototype,
protoProps
),
staticProps && _defineProperties(
Constructor,
staticProps
),
Constructor
);
};
},
566: function (
module
) {
module.exports = function (
obj, key, value
) {
return (
key in obj
? Object.defineProperty(
obj,
key,
{
value: value,
enumerable: !0,
configurable: !0,
writable: !0,
}
)
: (obj[key] = value),
obj
);
};
},
852: function (
module
) {
function _getPrototypeOf(
o
) {
return (
(module.exports = _getPrototypeOf =
Object.setPrototypeOf
? Object.getPrototypeOf
: function (
o
) {
return (
o.__proto__ || Object.getPrototypeOf(
o
)
);
}),
_getPrototypeOf(
o
)
);
}
module.exports = _getPrototypeOf;
},
4546: function (
module, __unused_webpack_exports, __webpack_require__
) {
var setPrototypeOf = __webpack_require__(
990
);
module.exports = function (
subClass, superClass
) {
if ("function" != typeof superClass && null !== superClass)
throw new TypeError(
"Super expression must either be null or a function"
);
(subClass.prototype = Object.create(
superClass && superClass.prototype,
{
constructor: {
value: subClass,
writable: !0,
configurable: !0,
},
}
)),
superClass && setPrototypeOf(
subClass,
superClass
);
};
},
6571: function (
module
) {
module.exports = function (
fn
) {
return (
-1 !== Function.toString.call(
fn
).indexOf(
"[native code]"
)
);
};
},
6340: function (
module
) {
module.exports = function (
) {
if ("undefined" == typeof Reflect || !Reflect.construct)
return !1;
if (Reflect.construct.sham) return !1;
if ("function" == typeof Proxy) return !0;
try {
return (
Date.prototype.toString.call(
Reflect.construct(
Date,
[],
function (
) {}
)
),
!0
);
} catch (e) {
return !1;
}
};
},
6506: function (
module
) {
module.exports = function (
iter
) {
if (
"undefined" != typeof Symbol &&
Symbol.iterator in Object(
iter
)
)
return Array.from(
iter
);
};
},
1682: function (
module
) {
module.exports = function (
arr, i
) {
if (
"undefined" != typeof Symbol &&
Symbol.iterator in Object(
arr
)
) {
var _arr = [],
_n = !0,
_d = !1,
_e = void 0;
try {
for (
var _s, _i = arr[Symbol.iterator](
);
!(_n = (_s = _i.next(
)).done) &&
(_arr.push(
_s.value
), !i || _arr.length !== i);
_n = !0
);
} catch (err) {
(_d = !0), (_e = err);
} finally {
try {
_n || null == _i.return || _i.return(
);
} finally {
if (_d) throw _e;
}
}
return _arr;
}
};
},
1420: function (
module
) {
module.exports = function (
) {
throw new TypeError(
"Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."
);
};
},
7331: function (
module
) {
module.exports = function (
) {
throw new TypeError(
"Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."
);
};
},
1581: function (
module, __unused_webpack_exports, __webpack_require__
) {
var _typeof = __webpack_require__(
7002
),
assertThisInitialized = __webpack_require__(
9382
);
module.exports = function (
self, call
) {
return !call ||
("object" !== _typeof(
call
) && "function" != typeof call)
? assertThisInitialized(
self
)
: call;
};
},
990: function (
module
) {
function _setPrototypeOf(
o, p
) {
return (
(module.exports = _setPrototypeOf =
Object.setPrototypeOf ||
function (
o, p
) {
return (o.__proto__ = p), o;
}),
_setPrototypeOf(
o,
p
)
);
}
module.exports = _setPrototypeOf;
},
3408: function (
module, __unused_webpack_exports, __webpack_require__
) {
var arrayWithHoles = __webpack_require__(
4325
),
iterableToArrayLimit = __webpack_require__(
1682
),
unsupportedIterableToArray = __webpack_require__(
2510
),
nonIterableRest = __webpack_require__(
1420
);
module.exports = function (
arr, i
) {
return (
arrayWithHoles(
arr
) ||
iterableToArrayLimit(
arr,
i
) ||
unsupportedIterableToArray(
arr,
i
) ||
nonIterableRest(
)
);
};
},
9571: function (
module, __unused_webpack_exports, __webpack_require__
) {
var arrayWithoutHoles = __webpack_require__(
123
),
iterableToArray = __webpack_require__(
6506
),
unsupportedIterableToArray = __webpack_require__(
2510
),
nonIterableSpread = __webpack_require__(
7331
);
module.exports = function (
arr
) {
return (
arrayWithoutHoles(
arr
) ||
iterableToArray(
arr
) ||
unsupportedIterableToArray(
arr
) ||
nonIterableSpread(
)
);
};
},
7002: function (
module
) {
function _typeof(
obj
) {
return (
"function" == typeof Symbol &&
"symbol" == typeof Symbol.iterator
? (module.exports = _typeof =
function (
obj
) {
return typeof obj;
})
: (module.exports = _typeof =
function (
obj
) {
return obj &&
"function" == typeof Symbol &&
obj.constructor === Symbol &&
obj !== Symbol.prototype
? "symbol"
: typeof obj;
}),
_typeof(
obj
)
);
}
module.exports = _typeof;
},
2510: function (
module, __unused_webpack_exports, __webpack_require__
) {
var arrayLikeToArray = __webpack_require__(
4291
);
module.exports = function (
o, minLen
) {
if (o) {
if ("string" == typeof o)
return arrayLikeToArray(
o,
minLen
);
var n = Object.prototype.toString.call(
o
).slice(
8,
-1
);
return (
"Object" === n &&
o.constructor &&
(n = o.constructor.name),
"Map" === n || "Set" === n
? Array.from(
o
)
: "Arguments" === n ||
/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(
n
)
? arrayLikeToArray(
o,
minLen
)
: void 0
);
}
};
},
8545: function (
module, __unused_webpack_exports, __webpack_require__
) {
var getPrototypeOf = __webpack_require__(
852
),
setPrototypeOf = __webpack_require__(
990
),
isNativeFunction = __webpack_require__(
6571
),
construct = __webpack_require__(
4096
);
function _wrapNativeSuper(
Class
) {
var _cache = "function" == typeof Map
? new Map(
)
: void 0;
return (
(module.exports = _wrapNativeSuper =
function (
Class
) {
if (null === Class || !isNativeFunction(
Class
))
return Class;
if ("function" != typeof Class)
throw new TypeError(
"Super expression must either be null or a function"
);
if (void 0 !== _cache) {
if (_cache.has(
Class
)) return _cache.get(
Class
);
_cache.set(
Class,
Wrapper
);
}
function Wrapper(
) {
return construct(
Class,
arguments,
getPrototypeOf(
this
).constructor
);
}
return (
(Wrapper.prototype = Object.create(
Class.prototype,
{
constructor: {
value: Wrapper,
enumerable: !1,
writable: !0,
configurable: !0,
},
}
)),
setPrototypeOf(
Wrapper,
Class
)
);
}),
_wrapNativeSuper(
Class
)
);
}
module.exports = _wrapNativeSuper;
},
7945: function (
module, __unused_webpack_exports, __webpack_require__
) {
module.exports = __webpack_require__(
1602
);
},
1602: function (
module
) {
var runtime = (function (
exports
) {
"use strict";
var Op = Object.prototype,
hasOwn = Op.hasOwnProperty,
$Symbol = "function" == typeof Symbol
? Symbol
: {
},
iteratorSymbol = $Symbol.iterator || "@@iterator",
asyncIteratorSymbol =
$Symbol.asyncIterator || "@@asyncIterator",
toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
function wrap(
innerFn, outerFn, self, tryLocsList
) {
var protoGenerator =
outerFn && outerFn.prototype instanceof Generator
? outerFn
: Generator,
generator = Object.create(
protoGenerator.prototype
),
context = new Context(
tryLocsList || []
);
return (
(generator._invoke = (function (
innerFn,
self,
context
) {
var state = "suspendedStart";
return function (
method, arg
) {
if ("executing" === state)
throw new Error(
"Generator is already running"
);
if ("completed" === state) {
if ("throw" === method) throw arg;
return doneResult(
);
}
for (
context.method = method, context.arg = arg;
;
) {
var delegate = context.delegate;
if (delegate) {
var delegateResult =
maybeInvokeDelegate(
delegate,
context
);
if (delegateResult) {
if (
delegateResult ===
ContinueSentinel
)
continue;
return delegateResult;
}
}
if ("next" === context.method)
context.sent = context._sent =
context.arg;
else if ("throw" === context.method) {
if ("suspendedStart" === state)
throw (
((state = "completed"),
context.arg)
);
context.dispatchException(
context.arg
);
} else
"return" === context.method &&
context.abrupt(
"return",
context.arg
);
state = "executing";
var record = tryCatch(
innerFn,
self,
context
);
if ("normal" === record.type) {
if (
((state = context.done
? "completed"
: "suspendedYield"),
record.arg === ContinueSentinel)
)
continue;
return {
value: record.arg,
done: context.done,
};
}
"throw" === record.type &&
((state = "completed"),
(context.method = "throw"),
(context.arg = record.arg));
}
};
})(
innerFn,
self,
context
)),
generator
);
}
function tryCatch(
fn, obj, arg
) {
try {
return {
type: "normal",
arg: fn.call(
obj,
arg
),
};
} catch (err) {
return {
type: "throw",
arg: err,
};
}
}
exports.wrap = wrap;
var ContinueSentinel = {
};
function Generator(
) {}
function GeneratorFunction(
) {}
function GeneratorFunctionPrototype(
) {}
var IteratorPrototype = {
};
IteratorPrototype[iteratorSymbol] = function (
) {
return this;
};
var getProto = Object.getPrototypeOf,
NativeIteratorPrototype =
getProto && getProto(
getProto(
values(
[]
)
)
);
NativeIteratorPrototype &&
NativeIteratorPrototype !== Op &&
hasOwn.call(
NativeIteratorPrototype,
iteratorSymbol
) &&
(IteratorPrototype = NativeIteratorPrototype);
var Gp =
(GeneratorFunctionPrototype.prototype =
Generator.prototype =
Object.create(
IteratorPrototype
));
function defineIteratorMethods(
prototype
) {
["next", "throw", "return",].forEach(
function (
method
) {
prototype[method] = function (
arg
) {
return this._invoke(
method,
arg
);
};
}
);
}
function AsyncIterator(
generator, PromiseImpl
) {
function invoke(
method, arg, resolve, reject
) {
var record = tryCatch(
generator[method],
generator,
arg
);
if ("throw" !== record.type) {
var result = record.arg,
value = result.value;
return value &&
"object" == typeof value &&
hasOwn.call(
value,
"__await"
)
? PromiseImpl.resolve(
value.__await
).then(
function (
value
) {
invoke(
"next",
value,
resolve,
reject
);
},
function (
err
) {
invoke(
"throw",
err,
resolve,
reject
);
}
)
: PromiseImpl.resolve(
value
).then(
function (
unwrapped
) {
(result.value = unwrapped),
resolve(
result
);
},
function (
error
) {
return invoke(
"throw",
error,
resolve,
reject
);
}
);
}
reject(
record.arg
);
}
var previousPromise;
this._invoke = function (
method, arg
) {
function callInvokeWithMethodAndArg(
) {
return new PromiseImpl(
function (
resolve, reject
) {
invoke(
method,
arg,
resolve,
reject
);
}
);
}
return (previousPromise = previousPromise
? previousPromise.then(
callInvokeWithMethodAndArg,
callInvokeWithMethodAndArg
)
: callInvokeWithMethodAndArg(
));
};
}
function maybeInvokeDelegate(
delegate, context
) {
var method = delegate.iterator[context.method];
if (undefined === method) {
if (
((context.delegate = null),
"throw" === context.method)
) {
if (
delegate.iterator.return &&
((context.method = "return"),
(context.arg = undefined),
maybeInvokeDelegate(
delegate,
context
),
"throw" === context.method)
)
return ContinueSentinel;
(context.method = "throw"),
(context.arg = new TypeError(
"The iterator does not provide a 'throw' method"
));
}
return ContinueSentinel;
}
var record = tryCatch(
method,
delegate.iterator,
context.arg
);
if ("throw" === record.type)
return (
(context.method = "throw"),
(context.arg = record.arg),
(context.delegate = null),
ContinueSentinel
);
var info = record.arg;
return info
? info.done
? ((context[delegate.resultName] = info.value),
(context.next = delegate.nextLoc),
"return" !== context.method &&
((context.method = "next"),
(context.arg = undefined)),
(context.delegate = null),
ContinueSentinel)
: info
: ((context.method = "throw"),
(context.arg = new TypeError(
"iterator result is not an object"
)),
(context.delegate = null),
ContinueSentinel);
}
function pushTryEntry(
locs
) {
var entry = {
tryLoc: locs[0],
};
1 in locs && (entry.catchLoc = locs[1]),
2 in locs &&
((entry.finallyLoc = locs[2]),
(entry.afterLoc = locs[3])),
this.tryEntries.push(
entry
);
}
function resetTryEntry(
entry
) {
var record = entry.completion || {
};
(record.type = "normal"),
delete record.arg,
(entry.completion = record);
}
function Context(
tryLocsList
) {
(this.tryEntries = [{
tryLoc: "root",
},]),
tryLocsList.forEach(
pushTryEntry,
this
),
this.reset(
!0
);
}
function values(
iterable
) {
if (iterable) {
var iteratorMethod = iterable[iteratorSymbol];
if (iteratorMethod)
return iteratorMethod.call(
iterable
);
if ("function" == typeof iterable.next) return iterable;
if (!isNaN(
iterable.length
)) {
var i = -1,
next = function next(
) {
for (; ++i < iterable.length; )
if (hasOwn.call(
iterable,
i
))
return (
(next.value = iterable[i]),
(next.done = !1),
next
);
return (
(next.value = undefined),
(next.done = !0),
next
);
};
return (next.next = next);
}
}
return {
next: doneResult,
};
}
function doneResult(
) {
return {
value: undefined,
done: !0,
};
}
return (
(GeneratorFunction.prototype = Gp.constructor =
GeneratorFunctionPrototype),
(GeneratorFunctionPrototype.constructor =
GeneratorFunction),
(GeneratorFunctionPrototype[toStringTagSymbol] =
GeneratorFunction.displayName =
"GeneratorFunction"),
(exports.isGeneratorFunction = function (
genFun
) {
var ctor =
"function" == typeof genFun && genFun.constructor;
return (
!!ctor &&
(ctor === GeneratorFunction ||
"GeneratorFunction" ===
(ctor.displayName || ctor.name))
);
}),
(exports.mark = function (
genFun
) {
return (
Object.setPrototypeOf
? Object.setPrototypeOf(
genFun,
GeneratorFunctionPrototype
)
: ((genFun.__proto__ =
GeneratorFunctionPrototype),
toStringTagSymbol in genFun ||
(genFun[toStringTagSymbol] =
"GeneratorFunction")),
(genFun.prototype = Object.create(
Gp
)),
genFun
);
}),
(exports.awrap = function (
arg
) {
return {
__await: arg,
};
}),
defineIteratorMethods(
AsyncIterator.prototype
),
(AsyncIterator.prototype[asyncIteratorSymbol] =
function (
) {
return this;
}),
(exports.AsyncIterator = AsyncIterator),
(exports.async = function (
innerFn,
outerFn,
self,
tryLocsList,
PromiseImpl
) {
void 0 === PromiseImpl && (PromiseImpl = Promise);
var iter = new AsyncIterator(
wrap(
innerFn,
outerFn,
self,
tryLocsList
),
PromiseImpl
);
return exports.isGeneratorFunction(
outerFn
)
? iter
: iter.next(
).then(
function (
result
) {
return result.done
? result.value
: iter.next(
);
}
);
}),
defineIteratorMethods(
Gp
),
(Gp[toStringTagSymbol] = "Generator"),
(Gp[iteratorSymbol] = function (
) {
return this;
}),
(Gp.toString = function (
) {
return "[object Generator]";
}),
(exports.keys = function (
object
) {
var keys = [];
for (var key in object) keys.push(
key
);
return (
keys.reverse(
),
function next(
) {
for (; keys.length; ) {
var key = keys.pop(
);
if (key in object)
return (
(next.value = key),
(next.done = !1),
next
);
}
return (next.done = !0), next;
}
);
}),
(exports.values = values),
(Context.prototype = {
constructor: Context,
reset: function (
skipTempReset
) {
if (
((this.prev = 0),
(this.next = 0),
(this.sent = this._sent = undefined),
(this.done = !1),
(this.delegate = null),
(this.method = "next"),
(this.arg = undefined),
this.tryEntries.forEach(
resetTryEntry
),
!skipTempReset)
)
for (var name in this)
"t" === name.charAt(
0
) &&
hasOwn.call(
this,
name
) &&
!isNaN(
+name.slice(
1
)
) &&
(this[name] = undefined);
},
stop: function (
) {
this.done = !0;
var rootRecord = this.tryEntries[0].completion;
if ("throw" === rootRecord.type)
throw rootRecord.arg;
return this.rval;
},
dispatchException: function (
exception
) {
if (this.done) throw exception;
var context = this;
function handle(
loc, caught
) {
return (
(record.type = "throw"),
(record.arg = exception),
(context.next = loc),
caught &&
((context.method = "next"),
(context.arg = undefined)),
!!caught
);
}
for (
var i = this.tryEntries.length - 1;
i >= 0;
--i
) {
var entry = this.tryEntries[i],
record = entry.completion;
if ("root" === entry.tryLoc)
return handle(
"end"
);
if (entry.tryLoc <= this.prev) {
var hasCatch = hasOwn.call(
entry,
"catchLoc"
),
hasFinally = hasOwn.call(
entry,
"finallyLoc"
);
if (hasCatch && hasFinally) {
if (this.prev < entry.catchLoc)
return handle(
entry.catchLoc,
!0
);
if (this.prev < entry.finallyLoc)
return handle(
entry.finallyLoc
);
} else if (hasCatch) {
if (this.prev < entry.catchLoc)
return handle(
entry.catchLoc,
!0
);
} else {
if (!hasFinally)
throw new Error(
"try statement without catch or finally"
);
if (this.prev < entry.finallyLoc)
return handle(
entry.finallyLoc
);
}
}
}
},
abrupt: function (
type, arg
) {
for (
var i = this.tryEntries.length - 1;
i >= 0;
--i
) {
var entry = this.tryEntries[i];
if (
entry.tryLoc <= this.prev &&
hasOwn.call(
entry,
"finallyLoc"
) &&
this.prev < entry.finallyLoc
) {
var finallyEntry = entry;
break;
}
}
finallyEntry &&
("break" === type || "continue" === type) &&
finallyEntry.tryLoc <= arg &&
arg <= finallyEntry.finallyLoc &&
(finallyEntry = null);
var record = finallyEntry
? finallyEntry.completion
: {
};
return (
(record.type = type),
(record.arg = arg),
finallyEntry
? ((this.method = "next"),
(this.next = finallyEntry.finallyLoc),
ContinueSentinel)
: this.complete(
record
)
);
},
complete: function (
record, afterLoc
) {
if ("throw" === record.type) throw record.arg;
return (
"break" === record.type ||
"continue" === record.type
? (this.next = record.arg)
: "return" === record.type
? ((this.rval = this.arg = record.arg),
(this.method = "return"),
(this.next = "end"))
: "normal" === record.type &&
afterLoc &&
(this.next = afterLoc),
ContinueSentinel
);
},
finish: function (
finallyLoc
) {
for (
var i = this.tryEntries.length - 1;
i >= 0;
--i
) {
var entry = this.tryEntries[i];
if (entry.finallyLoc === finallyLoc)
return (
this.complete(
entry.completion,
entry.afterLoc
),
resetTryEntry(
entry
),
ContinueSentinel
);
}
},
catch: function (
tryLoc
) {
for (
var i = this.tryEntries.length - 1;
i >= 0;
--i
) {
var entry = this.tryEntries[i];
if (entry.tryLoc === tryLoc) {
var record = entry.completion;
if ("throw" === record.type) {
var thrown = record.arg;
resetTryEntry(
entry
);
}
return thrown;
}
}
throw new Error(
"illegal catch attempt"
);
},
delegateYield: function (
iterable,
resultName,
nextLoc
) {
return (
(this.delegate = {
iterator: values(
iterable
),
resultName: resultName,
nextLoc: nextLoc,
}),
"next" === this.method &&
(this.arg = undefined),
ContinueSentinel
);
},
}),
exports
);
})(
module.exports
);
try {
regeneratorRuntime = runtime;
} catch (accidentalStrictMode) {
Function(
"r",
"regeneratorRuntime = r"
)(
runtime
);
}
},
5193: function (
) {
"trimStart" in String.prototype ||
(String.prototype.trimStart = String.prototype.trimLeft),
"trimEnd" in String.prototype ||
(String.prototype.trimEnd = String.prototype.trimRight),
"description" in Symbol.prototype ||
Object.defineProperty(
Symbol.prototype,
"description",
{
configurable: !0,
get: function (
) {
var t = /\((.*)\)/.exec(
this.toString(
)
);
return t ? t[1] : void 0;
},
}
),
Array.prototype.flat ||
((Array.prototype.flat = function (
t, r
) {
return (
(r = this.concat.apply(
[],
this
)),
t > 1 && r.some(
Array.isArray
)
? r.flat(
t - 1
)
: r
);
}),
(Array.prototype.flatMap = function (
t, r
) {
return this.map(
t,
r
).flat(
);
})),
Promise.prototype.finally ||
(Promise.prototype.finally = function (
t
) {
if ("function" != typeof t) return this.then(
t,
t
);
var r = this.constructor || Promise;
return this.then(
function (
o
) {
return r.resolve(
t(
)
).then(
function (
) {
return o;
}
);
},
function (
o
) {
return r.resolve(
t(
)
).then(
function (
) {
throw o;
}
);
}
);
});
},
4424: function (
__unused_webpack_module, exports
) {
"use strict";
Object.defineProperty(
exports,
"__esModule",
{
value: !0,
}
),
(exports.default = function (
) {
var updatePromise = null;
return {
mountedInstances: new Set(
),
updateHead: function (
head
) {
var promise = (updatePromise =
Promise.resolve(
).then(
function (
) {
if (promise === updatePromise) {
updatePromise = null;
var tags = {
};
head.forEach(
function (
h
) {
"link" === h.type &&
h.props[
"data-optimized-fonts"
] &&
!document.querySelector(
'style[data-href="'.concat(
h.props["data-href"],
'"]'
)
) &&
((h.props.href =
h.props["data-href"]),
(h.props["data-href"] =
void 0));
var components = tags[h.type] || [];
components.push(
h
),
(tags[h.type] = components);
}
);
var titleComponent = tags.title
? tags.title[0]
: null,
title = "";
if (titleComponent) {
var children =
titleComponent.props.children;
title =
"string" == typeof children
? children
: Array.isArray(
children
)
? children.join(
""
)
: "";
}
title !== document.title &&
(document.title = title),
[
"meta",
"base",
"link",
"style",
"script",
].forEach(
function (
type
) {
!(function (
type, components
) {
var headEl =
document.getElementsByTagName(
"head"
)[0],
headCountEl =
headEl.querySelector(
"meta[name=next-head-count]"
);
0;
for (
var headCount = Number(
headCountEl.content
),
oldTags = [],
i = 0,
j =
headCountEl.previousElementSibling;
i < headCount;
i++,
j =
j.previousElementSibling
)
j.tagName.toLowerCase(
) ===
type &&
oldTags.push(
j
);
var newTags = components
.map(
reactElementToDOM
)
.filter(
function (
newTag
) {
for (
var k = 0,
len =
oldTags.length;
k < len;
k++
) {
if (
oldTags[
k
].isEqualNode(
newTag
)
)
return (
oldTags.splice(
k,
1
),
!1
);
}
return !0;
}
);
oldTags.forEach(
function (
t
) {
return t.parentNode.removeChild(
t
);
}
),
newTags.forEach(
function (
t
) {
return headEl.insertBefore(
t,
headCountEl
);
}
),
(headCountEl.content = (
headCount -
oldTags.length +
newTags.length
).toString(
));
})(
type,
tags[type] || []
);
}
);
}
}
));
},
};
}),
(exports.DOMAttributeNames = void 0);
var DOMAttributeNames = {
acceptCharset: "accept-charset",
className: "class",
htmlFor: "for",
httpEquiv: "http-equiv",
noModule: "noModule",
};
function reactElementToDOM(
_ref
) {
var type = _ref.type,
props = _ref.props,
el = document.createElement(
type
);
for (var p in props)
if (
props.hasOwnProperty(
p
) &&
"children" !== p &&
"dangerouslySetInnerHTML" !== p &&
void 0 !== props[p]
) {
var attr = DOMAttributeNames[p] || p.toLowerCase(
);
"script" !== type ||
("async" !== attr &&
"defer" !== attr &&
"noModule" !== attr)
? el.setAttribute(
attr,
props[p]
)
: (el[attr] = !!props[p]);
}
var children = props.children,
dangerouslySetInnerHTML = props.dangerouslySetInnerHTML;
return (
dangerouslySetInnerHTML
? (el.innerHTML = dangerouslySetInnerHTML.__html || "")
: children &&
(el.textContent =
"string" == typeof children
? children
: Array.isArray(
children
)
? children.join(
""
)
: ""),
el
);
}
exports.DOMAttributeNames = DOMAttributeNames;
},
9201: function (
__unused_webpack_module, exports, __webpack_require__
) {
"use strict";
var _regeneratorRuntime = __webpack_require__(
7945
),
_classCallCheck = __webpack_require__(
4988
),
_createClass = __webpack_require__(
9590
),
_inherits = __webpack_require__(
4546
),
_possibleConstructorReturn = __webpack_require__(
1581
),
_getPrototypeOf = __webpack_require__(
852
),
_slicedToArray = __webpack_require__(
3408
);
function _createSuper(
Derived
) {
var hasNativeReflectConstruct = (function (
) {
if ("undefined" == typeof Reflect || !Reflect.construct)
return !1;
if (Reflect.construct.sham) return !1;
if ("function" == typeof Proxy) return !0;
try {
return (
Date.prototype.toString.call(
Reflect.construct(
Date,
[],
function (
) {}
)
),
!0
);
} catch (e) {
return !1;
}
})(
);
return function (
) {
var result,
Super = _getPrototypeOf(
Derived
);
if (hasNativeReflectConstruct) {
var NewTarget = _getPrototypeOf(
this
).constructor;
result = Reflect.construct(
Super,
arguments,
NewTarget
);
} else result = Super.apply(
this,
arguments
);
return _possibleConstructorReturn(
this,
result
);
};
}
Object.defineProperty(
exports,
"__esModule",
{
value: !0,
}
),
(exports.initNext = function (
) {
return _initNext.apply(
this,
arguments
);
}),
(exports.render = render),
(exports.renderError = renderError),
(exports.emitter = exports.version = exports.router = void 0),
__webpack_require__(
5193
);
var _react = _interopRequireDefault(
__webpack_require__(
2735
)
),
_reactDom = _interopRequireDefault(
__webpack_require__(
2788
)
),
_headManagerContext = __webpack_require__(
1874
),
_mitt = _interopRequireDefault(
__webpack_require__(
4387
)
),
_routerContext = __webpack_require__(
6857
),
_router = __webpack_require__(
1073
),
_isDynamic = __webpack_require__(
2140
),
_querystring = __webpack_require__(
6136
),
_runtimeConfig = __webpack_require__(
3338
),
_utils = __webpack_require__(
6373
),
_portal = __webpack_require__(
3651
),
_headManager = _interopRequireDefault(
__webpack_require__(
4424
)
),
_pageLoader = _interopRequireDefault(
__webpack_require__(
6042
)
),
_performanceRelayer = _interopRequireDefault(
__webpack_require__(
8421
)
),
_routeAnnouncer = __webpack_require__(
2450
),
_router1 = __webpack_require__(
6409
);
function asyncGeneratorStep(
gen,
resolve,
reject,
_next,
_throw,
key,
arg
) {
try {
var info = gen[key](
arg
),
value = info.value;
} catch (error) {
return void reject(
error
);
}
info.done
? resolve(
value
)
: Promise.resolve(
value
).then(
_next,
_throw
);
}
function _asyncToGenerator(
fn
) {
return function (
) {
var self = this,
args = arguments;
return new Promise(
function (
resolve, reject
) {
var gen = fn.apply(
self,
args
);
function _next(
value
) {
asyncGeneratorStep(
gen,
resolve,
reject,
_next,
_throw,
"next",
value
);
}
function _throw(
err
) {
asyncGeneratorStep(
gen,
resolve,
reject,
_next,
_throw,
"throw",
err
);
}
_next(
void 0
);
}
);
};
}
function _defineProperty(
obj, key, value
) {
return (
key in obj
? Object.defineProperty(
obj,
key,
{
value: value,
enumerable: !0,
configurable: !0,
writable: !0,
}
)
: (obj[key] = value),
obj
);
}
function _interopRequireDefault(
obj
) {
return obj && obj.__esModule
? obj
: {
default: obj,
};
}
function _objectSpread(
target
) {
for (var i = 1; i < arguments.length; i++) {
var source = null != arguments[i]
? arguments[i]
: {
},
ownKeys = Object.keys(
source
);
"function" == typeof Object.getOwnPropertySymbols &&
(ownKeys = ownKeys.concat(
Object.getOwnPropertySymbols(
source
).filter(
function (
sym
) {
return Object.getOwnPropertyDescriptor(
source,
sym
).enumerable;
}
)
)),
ownKeys.forEach(
function (
key
) {
_defineProperty(
target,
key,
source[key]
);
}
);
}
return target;
}
var data = JSON.parse(
document.getElementById(
"__NEXT_DATA__"
).textContent
);
window.__NEXT_DATA__ = data;
exports.version = "11.0.2-canary.24";
var looseToArray = function (
input
) {
return [].slice.call(
input
);
},
hydrateProps = data.props,
hydrateErr = data.err,
page = data.page,
query = data.query,
buildId = data.buildId,
assetPrefix = data.assetPrefix,
runtimeConfig = data.runtimeConfig,
dynamicIds = data.dynamicIds,
isFallback = data.isFallback,
locale = data.locale,
locales = data.locales,
domainLocales = data.domainLocales,
isPreview = data.isPreview,
defaultLocale = data.defaultLocale,
prefix = assetPrefix || "";
(__webpack_require__.p = "".concat(
prefix,
"/_next/"
)),
_runtimeConfig.setConfig(
{
serverRuntimeConfig: {
},
publicRuntimeConfig: runtimeConfig || {
},
}
);
var asPath = _utils.getURL(
);
(_router.hasBasePath(
asPath
) &&
(asPath = _router.delBasePath(
asPath
)),
data.scriptLoader) &&
(0, __webpack_require__(
4843
).initScriptLoader)(
data.scriptLoader
);
var pageLoader = new _pageLoader.default(
buildId,
prefix
),
register = function (
_ref
) {
var _ref2 = _slicedToArray(
_ref,
2
),
r = _ref2[0],
f = _ref2[1];
return pageLoader.routeLoader.onEntrypoint(
r,
f
);
};
window.__NEXT_P &&
window.__NEXT_P.map(
function (
p
) {
return setTimeout(
function (
) {
return register(
p
);
},
0
);
}
),
(window.__NEXT_P = []),
(window.__NEXT_P.push = register);
var _lastRenderReject,
router,
CachedApp,
onPerfEntry,
headManager = _headManager.default(
),
appElement = document.getElementById(
"__next"
);
exports.router = router;
var CachedComponent,
Container = (function (
_react$default$Compon
) {
_inherits(
Container,
_react$default$Compon
);
var _super = _createSuper(
Container
);
function Container(
) {
return (
_classCallCheck(
this,
Container
),
_super.apply(
this,
arguments
)
);
}
return (
_createClass(
Container,
[
{
key: "componentDidCatch",
value: function (
componentErr, info
) {
this.props.fn(
componentErr,
info
);
},
},
{
key: "componentDidMount",
value: function (
) {
this.scrollToHash(
),
!router.isSsr ||
"/404" === page ||
("/_error" === page &&
hydrateProps &&
hydrateProps.pageProps &&
404 ===
hydrateProps.pageProps
.statusCode) ||
!(
isFallback ||
(data.nextExport &&
(_isDynamic.isDynamicRoute(
router.pathname
) ||
location.search)) ||
(hydrateProps &&
hydrateProps.__N_SSG &&
location.search)
) ||
router.replace(
router.pathname +
"?" +
String(
_querystring.assign(
_querystring.urlQueryToSearchParams(
router.query
),
new URLSearchParams(
location.search
)
)
),
asPath,
{
_h: 1,
shallow: !isFallback,
}
);
},
},
{
key: "componentDidUpdate",
value: function (
) {
this.scrollToHash(
);
},
},
{
key: "scrollToHash",
value: function (
) {
var hash = location.hash;
if ((hash = hash && hash.substring(
1
))) {
var el = document.getElementById(
hash
);
el &&
setTimeout(
function (
) {
return el.scrollIntoView(
);
},
0
);
}
},
},
{
key: "render",
value: function (
) {
return this.props.children;
},
},
]
),
Container
);
})(
_react.default.Component
),
emitter = _mitt.default(
);
function _initNext(
) {
return (_initNext = _asyncToGenerator(
_regeneratorRuntime.mark(
function _callee(
) {
var initialErr,
appEntrypoint,
app,
mod,
pageEntrypoint,
renderCtx,
_args = arguments;
return _regeneratorRuntime.wrap(
function (
_context
) {
for (;;)
switch ((_context.prev = _context.next)) {
case 0:
return (
_args.length > 0 &&
void 0 !== _args[0]
? _args[0]
: {
},
(initialErr = hydrateErr),
(_context.prev = 3),
(_context.next = 6),
pageLoader.routeLoader.whenEntrypoint(
"/_app"
)
);
case 6:
if (
!(
"error" in
(appEntrypoint =
_context.sent)
)
) {
_context.next = 9;
break;
}
throw appEntrypoint.error;
case 9:
(app = appEntrypoint.component),
(mod = appEntrypoint.exports),
(CachedApp = app),
mod &&
mod.reportWebVitals &&
(onPerfEntry = function (
_ref3
) {
var perfStartEntry,
id = _ref3.id,
name = _ref3.name,
startTime =
_ref3.startTime,
value = _ref3.value,
duration =
_ref3.duration,
entryType =
_ref3.entryType,
entries =
_ref3.entries,
uniqueID = ""
.concat(
Date.now(
),
"-"
)
.concat(
Math.floor(
8999999999999 *
Math.random(
)
) + 1e12
);
entries &&
entries.length &&
(perfStartEntry =
entries[0]
.startTime),
mod.reportWebVitals(
{
id:
id ||
uniqueID,
name: name,
startTime:
startTime ||
perfStartEntry,
value:
null ==
value
? duration
: value,
label:
"mark" ===
entryType ||
"measure" ===
entryType
? "custom"
: "web-vital",
}
);
}),
(_context.next = 16);
break;
case 16:
return (
(_context.next = 18),
pageLoader.routeLoader.whenEntrypoint(
page
)
);
case 18:
_context.t0 = _context.sent;
case 19:
if (
!(
"error" in
(pageEntrypoint =
_context.t0)
)
) {
_context.next = 22;
break;
}
throw pageEntrypoint.error;
case 22:
(CachedComponent =
pageEntrypoint.component),
(_context.next = 27);
break;
case 27:
_context.next = 32;
break;
case 29:
(_context.prev = 29),
(_context.t1 =
_context.catch(
3
)),
(initialErr = _context.t1);
case 32:
if (!window.__NEXT_PRELOADREADY) {
_context.next = 36;
break;
}
return (
(_context.next = 36),
window.__NEXT_PRELOADREADY(
dynamicIds
)
);
case 36:
return (
(exports.router = router =
_router1.createRouter(
page,
query,
asPath,
{
initialProps:
hydrateProps,
pageLoader:
pageLoader,
App: CachedApp,
Component:
CachedComponent,
wrapApp: wrapApp,
err: initialErr,
isFallback:
Boolean(
isFallback
),
subscription:
function (
info,
App,
scroll
) {
return render(
Object.assign(
{
},
info,
{
App: App,
scroll: scroll,
}
)
);
},
locale: locale,
locales: locales,
defaultLocale:
defaultLocale,
domainLocales:
domainLocales,
isPreview:
isPreview,
}
)),
render(
(renderCtx = {
App: CachedApp,
initial: !0,
Component:
CachedComponent,
props: hydrateProps,
err: initialErr,
})
),
_context.abrupt(
"return",
emitter
)
);
case 43:
return _context.abrupt(
"return",
{
emitter: emitter,
renderCtx: renderCtx,
}
);
case 44:
case "end":
return _context.stop(
);
}
},
_callee,
null,
[[3, 29,],]
);
}
)
)).apply(
this,
arguments
);
}
function _render(
) {
return (_render = _asyncToGenerator(
_regeneratorRuntime.mark(
function _callee2(
renderingProps
) {
return _regeneratorRuntime.wrap(
function (
_context2
) {
for (;;)
switch ((_context2.prev = _context2.next)) {
case 0:
if (!renderingProps.err) {
_context2.next = 4;
break;
}
return (
(_context2.next = 3),
renderError(
renderingProps
)
);
case 3:
return _context2.abrupt(
"return"
);
case 4:
return (
(_context2.prev = 4),
(_context2.next = 7),
doRender(
renderingProps
)
);
case 7:
_context2.next = 16;
break;
case 9:
if (
((_context2.prev = 9),
(_context2.t0 =
_context2.catch(
4
)),
!_context2.t0.cancelled)
) {
_context2.next = 13;
break;
}
throw _context2.t0;
case 13:
return (
(_context2.next = 16),
renderError(
_objectSpread(
{
},
renderingProps,
{
err: _context2.t0,
}
)
)
);
case 16:
case "end":
return _context2.stop(
);
}
},
_callee2,
null,
[[4, 9,],]
);
}
)
)).apply(
this,
arguments
);
}
function render(
renderingProps
) {
return _render.apply(
this,
arguments
);
}
function renderError(
renderErrorProps
) {
var App = renderErrorProps.App,
err = renderErrorProps.err;
return (
console.error(
err
),
pageLoader
.loadPage(
"/_error"
)
.then(
function (
_ref4
) {
var ErrorComponent = _ref4.page,
styleSheets = _ref4.styleSheets;
return (null == lastAppProps
? void 0
: lastAppProps.Component) === ErrorComponent
? Promise.resolve(
)
.then(
function (
) {
return (function (
obj
) {
if (obj && obj.__esModule)
return obj;
var newObj = {
};
if (null != obj)
for (var key in obj)
if (
Object.prototype.hasOwnProperty.call(
obj,
key
)
) {
var desc =
Object.defineProperty &&
Object.getOwnPropertyDescriptor
? Object.getOwnPropertyDescriptor(
obj,
key
)
: {
};
desc.get || desc.set
? Object.defineProperty(
newObj,
key,
desc
)
: (newObj[key] =
obj[key]);
}
return (
(newObj.default = obj), newObj
);
})(
__webpack_require__(
4956
)
);
}
)
.then(
function (
m
) {
return {
ErrorComponent: m.default,
styleSheets: [],
};
}
)
: {
ErrorComponent: ErrorComponent,
styleSheets: styleSheets,
};
}
)
.then(
function (
_ref5
) {
var ErrorComponent = _ref5.ErrorComponent,
styleSheets = _ref5.styleSheets,
AppTree = wrapApp(
App
),
appCtx = {
Component: ErrorComponent,
AppTree: AppTree,
router: router,
ctx: {
err: err,
pathname: page,
query: query,
asPath: asPath,
AppTree: AppTree,
},
};
return Promise.resolve(
renderErrorProps.props
? renderErrorProps.props
: _utils.loadGetInitialProps(
App,
appCtx
)
).then(
function (
initProps
) {
return doRender(
_objectSpread(
{
},
renderErrorProps,
{
err: err,
Component: ErrorComponent,
styleSheets: styleSheets,
props: initProps,
}
)
);
}
);
}
)
);
}
exports.emitter = emitter;
var shouldHydrate = !0;
function markHydrateComplete(
) {
_utils.ST &&
(performance.mark(
"afterHydrate"
),
performance.measure(
"Next.js-before-hydration",
"navigationStart",
"beforeRender"
),
performance.measure(
"Next.js-hydration",
"beforeRender",
"afterHydrate"
),
onPerfEntry &&
performance
.getEntriesByName(
"Next.js-hydration"
)
.forEach(
onPerfEntry
),
clearMarks(
));
}
function markRenderComplete(
) {
if (_utils.ST) {
performance.mark(
"afterRender"
);
var navStartEntries = performance.getEntriesByName(
"routeChange",
"mark"
);
navStartEntries.length &&
(performance.measure(
"Next.js-route-change-to-render",
navStartEntries[0].name,
"beforeRender"
),
performance.measure(
"Next.js-render",
"beforeRender",
"afterRender"
),
onPerfEntry &&
(performance
.getEntriesByName(
"Next.js-render"
)
.forEach(
onPerfEntry
),
performance
.getEntriesByName(
"Next.js-route-change-to-render"
)
.forEach(
onPerfEntry
)),
clearMarks(
),
[
"Next.js-route-change-to-render",
"Next.js-render",
].forEach(
function (
measure
) {
return performance.clearMeasures(
measure
);
}
));
}
}
function clearMarks(
) {
[
"beforeRender",
"afterHydrate",
"afterRender",
"routeChange",
].forEach(
function (
mark
) {
return performance.clearMarks(
mark
);
}
);
}
function AppContainer(
_ref6
) {
var children = _ref6.children;
return _react.default.createElement(
Container,
{
fn: function (
error
) {
return renderError(
{
App: CachedApp,
err: error,
}
).catch(
function (
err
) {
return console.error(
"Error rendering page: ",
err
);
}
);
},
},
_react.default.createElement(
_routerContext.RouterContext.Provider,
{
value: _router1.makePublicRouterInstance(
router
),
},
_react.default.createElement(
_headManagerContext.HeadManagerContext.Provider,
{
value: headManager,
},
children
)
)
);
}
var lastAppProps,
wrapApp = function (
App
) {
return function (
wrappedAppProps
) {
var appProps = _objectSpread(
{
},
wrappedAppProps,
{
Component: CachedComponent,
err: hydrateErr,
router: router,
}
);
return _react.default.createElement(
AppContainer,
null,
_react.default.createElement(
App,
Object.assign(
{
},
appProps
)
)
);
};
};
function doRender(
input
) {
var App = input.App,
Component = input.Component,
props = input.props,
err = input.err,
styleSheets =
"initial" in input ? void 0 : input.styleSheets;
Component = Component || lastAppProps.Component;
var appProps = _objectSpread(
{
},
(props = props || lastAppProps.props),
{
Component: Component,
err: err,
router: router,
}
);
lastAppProps = appProps;
var resolvePromise,
canceled = !1,
renderPromise = new Promise(
function (
resolve, reject
) {
_lastRenderReject && _lastRenderReject(
),
(resolvePromise = function (
) {
(_lastRenderReject = null), resolve(
);
}),
(_lastRenderReject = function (
) {
(canceled = !0), (_lastRenderReject = null);
var error = new Error(
"Cancel rendering route"
);
(error.cancelled = !0), reject(
error
);
});
}
);
function onRootCommit(
) {
resolvePromise(
);
}
!(function (
) {
if (!styleSheets) return !1;
var currentStyleTags = looseToArray(
document.querySelectorAll(
"style[data-n-href]"
)
),
currentHrefs = new Set(
currentStyleTags.map(
function (
tag
) {
return tag.getAttribute(
"data-n-href"
);
}
)
),
noscript = document.querySelector(
"noscript[data-n-css]"
),
nonce =
null == noscript
? void 0
: noscript.getAttribute(
"data-n-css"
);
styleSheets.forEach(
function (
_ref7
) {
var href = _ref7.href,
text = _ref7.text;
if (!currentHrefs.has(
href
)) {
var styleTag = document.createElement(
"style"
);
styleTag.setAttribute(
"data-n-href",
href
),
styleTag.setAttribute(
"media",
"x"
),
nonce && styleTag.setAttribute(
"nonce",
nonce
),
document.head.appendChild(
styleTag
),
styleTag.appendChild(
document.createTextNode(
text
)
);
}
}
);
})(
);
var elem = _react.default.createElement(
_react.default.Fragment,
null,
_react.default.createElement(
Head,
{
callback: function (
) {
if (styleSheets && !canceled) {
for (
var desiredHrefs = new Set(
styleSheets.map(
function (
s
) {
return s.href;
}
)
),
currentStyleTags = looseToArray(
document.querySelectorAll(
"style[data-n-href]"
)
),
currentHrefs = currentStyleTags.map(
function (
tag
) {
return tag.getAttribute(
"data-n-href"
);
}
),
idx = 0;
idx < currentHrefs.length;
++idx
)
desiredHrefs.has(
currentHrefs[idx]
)
? currentStyleTags[idx].removeAttribute(
"media"
)
: currentStyleTags[idx].setAttribute(
"media",
"x"
);
var referenceNode = document.querySelector(
"noscript[data-n-css]"
);
referenceNode &&
styleSheets.forEach(
function (
_ref8
) {
var href = _ref8.href,
targetTag = document.querySelector(
'style[data-n-href="'.concat(
href,
'"]'
)
);
targetTag &&
(referenceNode.parentNode.insertBefore(
targetTag,
referenceNode.nextSibling
),
(referenceNode = targetTag));
}
),
looseToArray(
document.querySelectorAll(
"link[data-n-p]"
)
).forEach(
function (
el
) {
el.parentNode.removeChild(
el
);
}
),
getComputedStyle(
document.body,
"height"
);
}
input.scroll &&
window.scrollTo(
input.scroll.x,
input.scroll.y
);
},
}
),
_react.default.createElement(
AppContainer,
null,
_react.default.createElement(
App,
Object.assign(
{
},
appProps
)
),
_react.default.createElement(
_portal.Portal,
{
type: "next-route-announcer",
},
_react.default.createElement(
_routeAnnouncer.RouteAnnouncer,
null
)
)
)
);
return (
(function (
domEl, fn
) {
_utils.ST && performance.mark(
"beforeRender"
);
var reactEl = fn(
shouldHydrate
? markHydrateComplete
: markRenderComplete
);
shouldHydrate
? (_reactDom.default.hydrate(
reactEl,
domEl
),
(shouldHydrate = !1))
: _reactDom.default.render(
reactEl,
domEl
);
})(
appElement,
function (
callback
) {
return _react.default.createElement(
Root,
{
callbacks: [callback, onRootCommit,],
},
elem
);
}
),
renderPromise
);
}
function Root(
_ref9
) {
var callbacks = _ref9.callbacks,
children = _ref9.children;
return (
_react.default.useLayoutEffect(
function (
) {
return callbacks.forEach(
function (
callback
) {
return callback(
);
}
);
},
[callbacks,]
),
_react.default.useEffect(
function (
) {
_performanceRelayer.default(
onPerfEntry
);
},
[]
),
children
);
}
function Head(
_ref10
) {
var callback = _ref10.callback;
return (
_react.default.useLayoutEffect(
function (
) {
return callback(
);
},
[callback,]
),
null
);
}
},
5079: function (
__unused_webpack_module,
__unused_webpack_exports,
__webpack_require__
) {
"use strict";
var _ = __webpack_require__(
9201
);
(window.next = {
version: _.version,
get router(
) {
return _.router;
},
emitter: _.emitter,
render: _.render,
renderError: _.renderError,
}),
_.initNext(
).catch(
console.error
);
},
3342: function (
__unused_webpack_module, exports
) {
"use strict";
function removePathTrailingSlash(
path
) {
return path.endsWith(
"/"
) && "/" !== path
? path.slice(
0,
-1
)
: path;
}
Object.defineProperty(
exports,
"__esModule",
{
value: !0,
}
),
(exports.removePathTrailingSlash = removePathTrailingSlash),
(exports.normalizePathTrailingSlash = void 0);
var normalizePathTrailingSlash = removePathTrailingSlash;
exports.normalizePathTrailingSlash = normalizePathTrailingSlash;
},
6042: function (
__unused_webpack_module, exports, __webpack_require__
) {
"use strict";
var _classCallCheck = __webpack_require__(
4988
),
_createClass = __webpack_require__(
9590
);
Object.defineProperty(
exports,
"__esModule",
{
value: !0,
}
),
(exports.default = void 0);
var obj,
_router = __webpack_require__(
1073
),
_getAssetPathFromRoute =
(obj = __webpack_require__(
3794
)) && obj.__esModule
? obj
: {
default: obj,
},
_isDynamic = __webpack_require__(
2140
),
_parseRelativeUrl = __webpack_require__(
5284
),
_normalizeTrailingSlash = __webpack_require__(
3342
),
_routeLoader = __webpack_require__(
1740
);
var PageLoader = (function (
) {
function PageLoader(
buildId, assetPrefix
) {
_classCallCheck(
this,
PageLoader
),
(this.routeLoader =
_routeLoader.createRouteLoader(
assetPrefix
)),
(this.buildId = buildId),
(this.assetPrefix = assetPrefix),
(this.promisedSsgManifest = new Promise(
function (
resolve
) {
window.__SSG_MANIFEST
? resolve(
window.__SSG_MANIFEST
)
: (window.__SSG_MANIFEST_CB = function (
) {
resolve(
window.__SSG_MANIFEST
);
});
}
));
}
return (
_createClass(
PageLoader,
[
{
key: "getPageList",
value: function (
) {
return _routeLoader
.getClientBuildManifest(
)
.then(
function (
manifest
) {
return manifest.sortedPages;
}
);
},
},
{
key: "getDataHref",
value: function (
href, asPath, ssg, locale
) {
var _this = this,
_parseRelativeUrl2 =
_parseRelativeUrl.parseRelativeUrl(
href
),
hrefPathname = _parseRelativeUrl2.pathname,
query = _parseRelativeUrl2.query,
search = _parseRelativeUrl2.search,
asPathname =
_parseRelativeUrl.parseRelativeUrl(
asPath
).pathname,
route = (function (
route
) {
if ("/" !== route[0])
throw new Error(
'Route name should start with a "/", got "'.concat(
route,
'"'
)
);
return "/" === route
? route
: route.replace(
/\/$/,
""
);
})(
hrefPathname
),
getHrefForSlug = function (
path
) {
var dataRoute =
_getAssetPathFromRoute.default(
_normalizeTrailingSlash.removePathTrailingSlash(
_router.addLocale(
path,
locale
)
),
".json"
);
return _router.addBasePath(
"/_next/data/"
.concat(
_this.buildId
)
.concat(
dataRoute
)
.concat(
ssg ? "" : search
)
);
},
isDynamic =
_isDynamic.isDynamicRoute(
route
),
interpolatedRoute = isDynamic
? _router.interpolateAs(
hrefPathname,
asPathname,
query
).result
: "";
return isDynamic
? interpolatedRoute &&
getHrefForSlug(
interpolatedRoute
)
: getHrefForSlug(
route
);
},
},
{
key: "_isSsg",
value: function (
route
) {
return this.promisedSsgManifest.then(
function (
s
) {
return s.has(
route
);
}
);
},
},
{
key: "loadPage",
value: function (
route
) {
return this.routeLoader
.loadRoute(
route
)
.then(
function (
res
) {
if ("component" in res)
return {
page: res.component,
mod: res.exports,
styleSheets: res.styles.map(
function (
o
) {
return {
href: o.href,
text: o.content,
};
}
),
};
throw res.error;
}
);
},
},
{
key: "prefetch",
value: function (
route
) {
return this.routeLoader.prefetch(
route
);
},
},
]
),
PageLoader
);
})(
);
exports.default = PageLoader;
},
8421: function (
__unused_webpack_module, exports, __webpack_require__
) {
"use strict";
Object.defineProperty(
exports,
"__esModule",
{
value: !0,
}
),
(exports.default = void 0);
var userReportHandler,
_webVitals = __webpack_require__(
5549
),
isRegistered = (location.href, !1);
function onReport(
metric
) {
userReportHandler && userReportHandler(
metric
);
}
exports.default = function (
onPerfEntry
) {
(userReportHandler = onPerfEntry),
isRegistered ||
((isRegistered = !0),
_webVitals.getCLS(
onReport
),
_webVitals.getFID(
onReport
),
_webVitals.getFCP(
onReport
),
_webVitals.getLCP(
onReport
),
_webVitals.getTTFB(
onReport
));
};
},
3651: function (
__unused_webpack_module, exports, __webpack_require__
) {
"use strict";
var _slicedToArray = __webpack_require__(
3408
);
Object.defineProperty(
exports,
"__esModule",
{
value: !0,
}
),
(exports.Portal = void 0);
var obj,
_react =
(obj = __webpack_require__(
2735
)) && obj.__esModule
? obj
: {
default: obj,
},
_reactDom = __webpack_require__(
2788
);
exports.Portal = function (
_ref
) {
var children = _ref.children,
type = _ref.type,
portalNode = _react.default.useRef(
null
),
_react$default$useSta = _react.default.useState(
),
forceUpdate = _slicedToArray(
_react$default$useSta,
2
)[1];
return (
_react.default.useEffect(
function (
) {
return (
(portalNode.current =
document.createElement(
type
)),
document.body.appendChild(
portalNode.current
),
forceUpdate(
{
}
),
function (
) {
portalNode.current &&
document.body.removeChild(
portalNode.current
);
}
);
},
[type,]
),
portalNode.current
? _reactDom.createPortal(
children,
portalNode.current
)
: null
);
};
},
6933: function (
__unused_webpack_module, exports
) {
"use strict";
Object.defineProperty(
exports,
"__esModule",
{
value: !0,
}
),
(exports.requestIdleCallback = exports.cancelIdleCallback =
void 0);
var requestIdleCallback =
("undefined" != typeof self &&
self.requestIdleCallback &&
self.requestIdleCallback.bind(
window
)) ||
function (
cb
) {
var start = Date.now(
);
return setTimeout(
function (
) {
cb(
{
didTimeout: !1,
timeRemaining: function (
) {
return Math.max(
0,
50 - (Date.now(
) - start)
);
},
}
);
},
1
);
};
exports.requestIdleCallback = requestIdleCallback;
var cancelIdleCallback =
("undefined" != typeof self &&
self.cancelIdleCallback &&
self.cancelIdleCallback.bind(
window
)) ||
function (
id
) {
return clearTimeout(
id
);
};
exports.cancelIdleCallback = cancelIdleCallback;
},
2450: function (
__unused_webpack_module, exports, __webpack_require__
) {
"use strict";
var _slicedToArray = __webpack_require__(
3408
);
Object.defineProperty(
exports,
"__esModule",
{
value: !0,
}
),
(exports.RouteAnnouncer = RouteAnnouncer),
(exports.default = void 0);
var obj,
_react =
(obj = __webpack_require__(
2735
)) && obj.__esModule
? obj
: {
default: obj,
},
_router = __webpack_require__(
6409
);
function RouteAnnouncer(
) {
var asPath = _router.useRouter(
).asPath,
_react$default$useSta = _react.default.useState(
""
),
_react$default$useSta2 = _slicedToArray(
_react$default$useSta,
2
),
routeAnnouncement = _react$default$useSta2[0],
setRouteAnnouncement = _react$default$useSta2[1],
initialPathLoaded = _react.default.useRef(
!1
);
return (
_react.default.useEffect(
function (
) {
if (initialPathLoaded.current) {
var newRouteAnnouncement,
pageHeader = document.querySelector(
"h1"
);
pageHeader &&
(newRouteAnnouncement =
pageHeader.innerText ||
pageHeader.textContent),
newRouteAnnouncement ||
(newRouteAnnouncement = document.title
? document.title
: asPath),
setRouteAnnouncement(
newRouteAnnouncement
);
} else initialPathLoaded.current = !0;
},
[asPath,]
),
_react.default.createElement(
"p",
{
"aria-live": "assertive",
id: "__next-route-announcer__",
role: "alert",
style: {
border: 0,
clip: "rect(0 0 0 0)",
height: "1px",
margin: "-1px",
overflow: "hidden",
padding: 0,
position: "absolute",
width: "1px",
whiteSpace: "nowrap",
wordWrap: "normal",
},
},
routeAnnouncement
)
);
}
var _default = RouteAnnouncer;
exports.default = _default;
},
1740: function (
__unused_webpack_module, exports, __webpack_require__
) {
"use strict";
Object.defineProperty(
exports,
"__esModule",
{
value: !0,
}
),
(exports.markAssetError = markAssetError),
(exports.isAssetError = function (
err
) {
return err && ASSET_LOAD_ERROR in err;
}),
(exports.getClientBuildManifest = getClientBuildManifest),
(exports.createRouteLoader = function (
assetPrefix
) {
var entrypoints = new Map(
),
loadedScripts = new Map(
),
styleSheets = new Map(
),
routes = new Map(
);
function maybeExecuteScript(
src
) {
var prom = loadedScripts.get(
src
);
return (
prom ||
(document.querySelector(
'script[src^="'.concat(
src,
'"]'
)
)
? Promise.resolve(
)
: (loadedScripts.set(
src,
(prom = (function (
src, script
) {
return new Promise(
function (
resolve,
reject
) {
((script =
document.createElement(
"script"
)).onload = resolve),
(script.onerror =
function (
) {
return reject(
markAssetError(
new Error(
"Failed to load script: ".concat(
src
)
)
)
);
}),
(script.crossOrigin = void 0),
(script.src = src),
document.body.appendChild(
script
);
}
);
})(
src
))
),
prom))
);
}
function fetchStyleSheet(
href
) {
var prom = styleSheets.get(
href
);
return (
prom ||
(styleSheets.set(
href,
(prom = fetch(
href
)
.then(
function (
res
) {
if (!res.ok)
throw new Error(
"Failed to load stylesheet: ".concat(
href
)
);
return res.text(
).then(
function (
text
) {
return {
href: href,
content: text,
};
}
);
}
)
.catch(
function (
err
) {
throw markAssetError(
err
);
}
))
),
prom)
);
}
return {
whenEntrypoint: function (
route
) {
return withFuture(
route,
entrypoints
);
},
onEntrypoint: function (
route, execute
) {
Promise.resolve(
execute
)
.then(
function (
fn
) {
return fn(
);
}
)
.then(
function (
exports
) {
return {
component:
(exports && exports.default) ||
exports,
exports: exports,
};
},
function (
err
) {
return {
error: err,
};
}
)
.then(
function (
input
) {
var old = entrypoints.get(
route
);
entrypoints.set(
route,
input
),
old &&
"resolve" in old &&
old.resolve(
input
);
}
);
},
loadRoute: function (
route, prefetch
) {
var _this = this;
return withFuture(
route,
routes,
function (
) {
return resolvePromiseWithTimeout(
getFilesForRoute(
assetPrefix,
route
)
.then(
function (
_ref
) {
var scripts = _ref.scripts,
css = _ref.css;
return Promise.all(
[
entrypoints.has(
route
)
? []
: Promise.all(
scripts.map(
maybeExecuteScript
)
),
Promise.all(
css.map(
fetchStyleSheet
)
),
]
);
}
)
.then(
function (
res
) {
return _this
.whenEntrypoint(
route
)
.then(
function (
entrypoint
) {
return {
entrypoint: entrypoint,
styles: res[1],
};
}
);
}
),
3800,
markAssetError(
new Error(
"Route did not complete loading: ".concat(
route
)
)
)
)
.then(
function (
_ref2
) {
var entrypoint = _ref2.entrypoint,
styles = _ref2.styles,
res = Object.assign(
{
styles: styles,
},
entrypoint
);
return "error" in entrypoint
? entrypoint
: res;
}
)
.catch(
function (
err
) {
if (prefetch) throw err;
return {
error: err,
};
}
);
}
);
},
prefetch: function (
route
) {
var cn,
_this2 = this;
return (cn = navigator.connection) &&
(cn.saveData || /2g/.test(
cn.effectiveType
))
? Promise.resolve(
)
: getFilesForRoute(
assetPrefix,
route
)
.then(
function (
output
) {
return Promise.all(
canPrefetch
? output.scripts.map(
function (
script
) {
return (
(href = script),
(as = "script"),
new Promise(
function (
res,
rej
) {
if (
document.querySelector(
'link[rel="prefetch"][href^="'.concat(
href,
'"]'
)
)
)
return res(
);
(link =
document.createElement(
"link"
)),
as &&
(link.as =
as),
(link.rel =
"prefetch"),
(link.crossOrigin =
void 0),
(link.onload =
res),
(link.onerror =
rej),
(link.href =
href),
document.head.appendChild(
link
);
}
)
);
var href, as, link;
}
)
: []
);
}
)
.then(
function (
) {
_requestIdleCallback.requestIdleCallback(
function (
) {
return _this2
.loadRoute(
route,
!0
)
.catch(
function (
) {}
);
}
);
}
)
.catch(
function (
) {}
);
},
};
});
(obj = __webpack_require__(
3794
)) && obj.__esModule;
var obj,
_requestIdleCallback = __webpack_require__(
6933
);
function withFuture(
key, map, generator
) {
var resolver,
entry = map.get(
key
);
if (entry)
return "future" in entry
? entry.future
: Promise.resolve(
entry
);
var prom = new Promise(
function (
resolve
) {
resolver = resolve;
}
);
return (
map.set(
key, (
entry = {
resolve: resolver,
future: prom,
})
),
generator
? generator(
).then(
function (
value
) {
return resolver(
value
), value;
}
)
: prom
);
}
var canPrefetch = (function (
link
) {
try {
return (
(link = document.createElement(
"link"
)),
(!!window.MSInputMethodContext &&
!!document.documentMode) ||
link.relList.supports(
"prefetch"
)
);
} catch (e) {
return !1;
}
})(
);
var ASSET_LOAD_ERROR = Symbol(
"ASSET_LOAD_ERROR"
);
function markAssetError(
err
) {
return Object.defineProperty(
err,
ASSET_LOAD_ERROR,
{
}
);
}
function resolvePromiseWithTimeout(
p, ms, err
) {
return new Promise(
function (
resolve, reject
) {
var cancelled = !1;
p
.then(
function (
r
) {
(cancelled = !0), resolve(
r
);
}
)
.catch(
reject
),
_requestIdleCallback.requestIdleCallback(
function (
) {
return setTimeout(
function (
) {
cancelled || reject(
err
);
},
ms
);
}
);
}
);
}
function getClientBuildManifest(
) {
return self.__BUILD_MANIFEST
? Promise.resolve(
self.__BUILD_MANIFEST
)
: resolvePromiseWithTimeout(
new Promise(
function (
resolve
) {
var cb = self.__BUILD_MANIFEST_CB;
self.__BUILD_MANIFEST_CB = function (
) {
resolve(
self.__BUILD_MANIFEST
), cb && cb(
);
};
}
),
3800,
markAssetError(
new Error(
"Failed to load client build manifest"
)
)
);
}
function getFilesForRoute(
assetPrefix, route
) {
return getClientBuildManifest(
).then(
function (
manifest
) {
if (!(route in manifest))
throw markAssetError(
new Error(
"Failed to lookup route: ".concat(
route
)
)
);
var allFiles = manifest[route].map(
function (
entry
) {
return assetPrefix + "/_next/" + encodeURI(
entry
);
}
);
return {
scripts: allFiles.filter(
function (
v
) {
return v.endsWith(
".js"
);
}
),
css: allFiles.filter(
function (
v
) {
return v.endsWith(
".css"
);
}
),
};
}
);
}
},
6409: function (
__unused_webpack_module, exports, __webpack_require__
) {
"use strict";
var _construct = __webpack_require__(
4096
);
function _createForOfIteratorHelper(
o, allowArrayLike
) {
var it;
if (
"undefined" == typeof Symbol ||
null == o[Symbol.iterator]
) {
if (
Array.isArray(
o
) ||
(it = (function (
o, minLen
) {
if (!o) return;
if ("string" == typeof o)
return _arrayLikeToArray(
o,
minLen
);
var n = Object.prototype.toString
.call(
o
)
.slice(
8,
-1
);
"Object" === n &&
o.constructor &&
(n = o.constructor.name);
if ("Map" === n || "Set" === n)
return Array.from(
o
);
if (
"Arguments" === n ||
/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(
n
)
)
return _arrayLikeToArray(
o,
minLen
);
})(
o
)) ||
(allowArrayLike && o && "number" == typeof o.length)
) {
it && (o = it);
var i = 0,
F = function (
) {};
return {
s: F,
n: function (
) {
return i >= o.length
? {
done: !0,
}
: {
done: !1,
value: o[i++],
};
},
e: function (
_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 err,
normalCompletion = !0,
didErr = !1;
return {
s: function (
) {
it = o[Symbol.iterator](
);
},
n: function (
) {
var step = it.next(
);
return (normalCompletion = step.done), step;
},
e: function (
_e2
) {
(didErr = !0), (err = _e2);
},
f: function (
) {
try {
normalCompletion ||
null == it.return ||
it.return(
);
} finally {
if (didErr) throw err;
}
},
};
}
function _arrayLikeToArray(
arr, len
) {
(null == len || len > arr.length) && (len = arr.length);
for (var i = 0, arr2 = new Array(
len
); i < len; i++)
arr2[i] = arr[i];
return arr2;
}
Object.defineProperty(
exports,
"__esModule",
{
value: !0,
}
),
Object.defineProperty(
exports,
"Router",
{
enumerable: !0,
get: function (
) {
return _router.default;
},
}
),
Object.defineProperty(
exports,
"withRouter",
{
enumerable: !0,
get: function (
) {
return _withRouter.default;
},
}
),
(exports.useRouter = function (
) {
return _react.default.useContext(
_routerContext.RouterContext
);
}),
(exports.createRouter = function (
) {
for (
var _len = arguments.length,
args = new Array(
_len
),
_key = 0;
_key < _len;
_key++
)
args[_key] = arguments[_key];
return (
(singletonRouter.router = _construct(
_router.default,
args
)),
singletonRouter.readyCallbacks.forEach(
function (
cb
) {
return cb(
);
}
),
(singletonRouter.readyCallbacks = []),
singletonRouter.router
);
}),
(exports.makePublicRouterInstance = function (
router
) {
var _step,
_router1 = router,
instance = {
},
_iterator =
_createForOfIteratorHelper(
urlPropertyFields
);
try {
for (_iterator.s(
); !(_step = _iterator.n(
)).done; ) {
var property = _step.value;
"object" != typeof _router1[property]
? (instance[property] = _router1[property])
: (instance[property] = Object.assign(
Array.isArray(
_router1[property]
)
? []
: {
},
_router1[property]
));
}
} catch (err) {
_iterator.e(
err
);
} finally {
_iterator.f(
);
}
return (
(instance.events = _router.default.events),
coreMethodFields.forEach(
function (
field
) {
instance[field] = function (
) {
return _router1[field].apply(
_router1,
arguments
);
};
}
),
instance
);
}),
(exports.default = void 0);
var _react = _interopRequireDefault(
__webpack_require__(
2735
)
),
_router = _interopRequireDefault(
__webpack_require__(
1073
)
),
_routerContext = __webpack_require__(
6857
),
_withRouter = _interopRequireDefault(
__webpack_require__(
9336
)
);
function _interopRequireDefault(
obj
) {
return obj && obj.__esModule
? obj
: {
default: obj,
};
}
var singletonRouter = {
router: null,
readyCallbacks: [],
ready: function (
cb
) {
if (this.router) return cb(
);
this.readyCallbacks.push(
cb
);
},
},
urlPropertyFields = [
"pathname",
"route",
"query",
"asPath",
"components",
"isFallback",
"basePath",
"locale",
"locales",
"defaultLocale",
"isReady",
"isPreview",
"isLocaleDomain",
"domainLocales",
],
coreMethodFields = [
"push",
"replace",
"reload",
"back",
"prefetch",
"beforePopState",
];
function getRouter(
) {
if (!singletonRouter.router) {
throw new Error(
'No router instance found.\nYou should only use "next/router" on the client side of your app.\n'
);
}
return singletonRouter.router;
}
Object.defineProperty(
singletonRouter,
"events",
{
get: function (
) {
return _router.default.events;
},
}
),
urlPropertyFields.forEach(
function (
field
) {
Object.defineProperty(
singletonRouter,
field,
{
get: function (
) {
return getRouter(
)[field];
},
}
);
}
),
coreMethodFields.forEach(
function (
field
) {
singletonRouter[field] = function (
) {
var router = getRouter(
);
return router[field].apply(
router,
arguments
);
};
}
),
[
"routeChangeStart",
"beforeHistoryChange",
"routeChangeComplete",
"routeChangeError",
"hashChangeStart",
"hashChangeComplete",
].forEach(
function (
event
) {
singletonRouter.ready(
function (
) {
_router.default.events.on(
event,
function (
) {
var eventField = "on"
.concat(
event.charAt(
0
).toUpperCase(
)
)
.concat(
event.substring(
1
)
),
_singletonRouter = singletonRouter;
if (_singletonRouter[eventField])
try {
_singletonRouter[eventField].apply(
_singletonRouter,
arguments
);
} catch (err) {
console.error(
"Error when running the Router event: ".concat(
eventField
)
),
console.error(
""
.concat(
err.message,
"\n"
)
.concat(
err.stack
)
);
}
}
);
}
);
}
);
var _default = singletonRouter;
exports.default = _default;
},
4843: function (
__unused_webpack_module, exports, __webpack_require__
) {
"use strict";
var _slicedToArray = __webpack_require__(
3408
);
Object.defineProperty(
exports,
"__esModule",
{
value: !0,
}
),
(exports.initScriptLoader = function (
scriptLoaderItems
) {
scriptLoaderItems.forEach(
handleClientScriptLoad
);
}),
(exports.default = void 0);
var _react = __webpack_require__(
2735
),
_headManagerContext = __webpack_require__(
1874
),
_headManager = __webpack_require__(
4424
),
_requestIdleCallback = __webpack_require__(
6933
);
function _defineProperty(
obj, key, value
) {
return (
key in obj
? Object.defineProperty(
obj,
key,
{
value: value,
enumerable: !0,
configurable: !0,
writable: !0,
}
)
: (obj[key] = value),
obj
);
}
function _objectSpread(
target
) {
for (var i = 1; i < arguments.length; i++) {
var source = null != arguments[i]
? arguments[i]
: {
},
ownKeys = Object.keys(
source
);
"function" == typeof Object.getOwnPropertySymbols &&
(ownKeys = ownKeys.concat(
Object.getOwnPropertySymbols(
source
).filter(
function (
sym
) {
return Object.getOwnPropertyDescriptor(
source,
sym
).enumerable;
}
)
)),
ownKeys.forEach(
function (
key
) {
_defineProperty(
target,
key,
source[key]
);
}
);
}
return target;
}
function _objectWithoutProperties(
source, excluded
) {
if (null == source) return {
};
var key,
i,
target = (function (
source, excluded
) {
if (null == source) return {
};
var key,
i,
target = {
},
sourceKeys = Object.keys(
source
);
for (i = 0; i < sourceKeys.length; i++)
(key = sourceKeys[i]),
excluded.indexOf(
key
) >= 0 ||
(target[key] = source[key]);
return target;
})(
source,
excluded
);
if (Object.getOwnPropertySymbols) {
var sourceSymbolKeys = Object.getOwnPropertySymbols(
source
);
for (i = 0; i < sourceSymbolKeys.length; i++)
(key = sourceSymbolKeys[i]),
excluded.indexOf(
key
) >= 0 ||
(Object.prototype.propertyIsEnumerable.call(
source,
key
) &&
(target[key] = source[key]));
}
return target;
}
var ScriptCache = new Map(
),
LoadCache = new Set(
),
ignoreProps = [
"onLoad",
"dangerouslySetInnerHTML",
"children",
"onError",
"strategy",
],
loadScript = function (
props
) {
var src = props.src,
id = props.id,
_props$onLoad = props.onLoad,
onLoad =
void 0 === _props$onLoad
? function (
) {}
: _props$onLoad,
dangerouslySetInnerHTML = props.dangerouslySetInnerHTML,
_props$children = props.children,
children =
void 0 === _props$children ? "" : _props$children,
onError = props.onError,
cacheKey = id || src;
if (!cacheKey || !LoadCache.has(
cacheKey
)) {
if (ScriptCache.has(
src
))
return (
LoadCache.add(
cacheKey
),
void ScriptCache.get(
src
).then(
onLoad,
onError
)
);
var el = document.createElement(
"script"
),
loadPromise = new Promise(
function (
resolve,
reject
) {
el.addEventListener(
"load",
function (
) {
resolve(
), onLoad && onLoad.call(
this
);
}
),
el.addEventListener(
"error",
function (
) {
reject(
), onError && onError(
);
}
);
}
);
src && ScriptCache.set(
src,
loadPromise
),
LoadCache.add(
cacheKey
),
dangerouslySetInnerHTML
? (el.innerHTML =
dangerouslySetInnerHTML.__html || "")
: children
? (el.textContent =
"string" == typeof children
? children
: Array.isArray(
children
)
? children.join(
""
)
: "")
: src && (el.src = src);
for (
var _i = 0, _Object$entries = Object.entries(
props
);
_i < _Object$entries.length;
_i++
) {
var _Object$entries$_i = _slicedToArray(
_Object$entries[_i],
2
),
k = _Object$entries$_i[0],
value = _Object$entries$_i[1];
if (void 0 !== value && !ignoreProps.includes(
k
)) {
var attr =
_headManager.DOMAttributeNames[k] ||
k.toLowerCase(
);
el.setAttribute(
attr,
value
);
}
}
document.body.appendChild(
el
);
}
};
function handleClientScriptLoad(
props
) {
var _props$strategy = props.strategy,
strategy =
void 0 === _props$strategy
? "afterInteractive"
: _props$strategy;
"afterInteractive" === strategy
? loadScript(
props
)
: "lazyOnload" === strategy &&
window.addEventListener(
"load",
function (
) {
_requestIdleCallback.requestIdleCallback(
function (
) {
return loadScript(
props
);
}
);
}
);
}
var _default = function (
props
) {
var _props$src = props.src,
src = void 0 === _props$src ? "" : _props$src,
_props$onLoad2 = props.onLoad,
onLoad =
void 0 === _props$onLoad2
? function (
) {}
: _props$onLoad2,
_props$strategy2 =
(props.dangerouslySetInnerHTML, props.strategy),
strategy =
void 0 === _props$strategy2
? "afterInteractive"
: _props$strategy2,
onError = props.onError,
restProps = _objectWithoutProperties(
props,
[
"src",
"onLoad",
"dangerouslySetInnerHTML",
"strategy",
"onError",
]
),
_useContext = _react.useContext(
_headManagerContext.HeadManagerContext
),
updateScripts = _useContext.updateScripts,
scripts = _useContext.scripts;
return (
_react.useEffect(
function (
) {
"afterInteractive" === strategy
? loadScript(
props
)
: "lazyOnload" === strategy &&
(function (
props
) {
"complete" === document.readyState
? _requestIdleCallback.requestIdleCallback(
function (
) {
return loadScript(
props
);
}
)
: window.addEventListener(
"load",
function (
) {
_requestIdleCallback.requestIdleCallback(
function (
) {
return loadScript(
props
);
}
);
}
);
})(
props
);
},
[props, strategy,]
),
"beforeInteractive" === strategy &&
(updateScripts
? ((scripts.beforeInteractive = (
scripts.beforeInteractive || []
).concat(
[
_objectSpread(
{
src: src,
onLoad: onLoad,
onError: onError,
},
restProps
),
]
)),
updateScripts(
scripts
))
: loadScript(
props
)),
null
);
};
exports.default = _default;
},
9336: function (
__unused_webpack_module, exports, __webpack_require__
) {
"use strict";
Object.defineProperty(
exports,
"__esModule",
{
value: !0,
}
),
(exports.default = function (
ComposedComponent
) {
function WithRouterWrapper(
props
) {
return _react.default.createElement(
ComposedComponent,
Object.assign(
{
router: _router.useRouter(
),
},
props
)
);
}
(WithRouterWrapper.getInitialProps =
ComposedComponent.getInitialProps),
(WithRouterWrapper.origGetInitialProps =
ComposedComponent.origGetInitialProps),
!1;
return WithRouterWrapper;
});
var obj,
_react =
(obj = __webpack_require__(
2735
)) && obj.__esModule
? obj
: {
default: obj,
},
_router = __webpack_require__(
6409
);
},
4956: function (
__unused_webpack_module, exports, __webpack_require__
) {
"use strict";
var _classCallCheck = __webpack_require__(
4988
),
_createClass = __webpack_require__(
9590
),
_inherits = __webpack_require__(
4546
),
_possibleConstructorReturn = __webpack_require__(
1581
),
_getPrototypeOf = __webpack_require__(
852
);
function _createSuper(
Derived
) {
var hasNativeReflectConstruct = (function (
) {
if ("undefined" == typeof Reflect || !Reflect.construct)
return !1;
if (Reflect.construct.sham) return !1;
if ("function" == typeof Proxy) return !0;
try {
return (
Date.prototype.toString.call(
Reflect.construct(
Date,
[],
function (
) {}
)
),
!0
);
} catch (e) {
return !1;
}
})(
);
return function (
) {
var result,
Super = _getPrototypeOf(
Derived
);
if (hasNativeReflectConstruct) {
var NewTarget = _getPrototypeOf(
this
).constructor;
result = Reflect.construct(
Super,
arguments,
NewTarget
);
} else result = Super.apply(
this,
arguments
);
return _possibleConstructorReturn(
this,
result
);
};
}
Object.defineProperty(
exports,
"__esModule",
{
value: !0,
}
),
(exports.default = void 0);
var _react = _interopRequireDefault(
__webpack_require__(
2735
)
),
_head = _interopRequireDefault(
__webpack_require__(
3396
)
);
function _interopRequireDefault(
obj
) {
return obj && obj.__esModule
? obj
: {
default: obj,
};
}
var statusCodes = {
400: "Bad Request",
404: "This page could not be found",
405: "Method Not Allowed",
500: "Internal Server Error",
};
function _getInitialProps(
_ref
) {
var res = _ref.res,
err = _ref.err;
return {
statusCode:
res && res.statusCode
? res.statusCode
: err
? err.statusCode
: 404,
};
}
var Error1 = (function (
_react$default$Compon
) {
_inherits(
Error1,
_react$default$Compon
);
var _super = _createSuper(
Error1
);
function Error1(
) {
return (
_classCallCheck(
this,
Error1
),
_super.apply(
this,
arguments
)
);
}
return (
_createClass(
Error1,
[
{
key: "render",
value: function (
) {
var statusCode = this.props.statusCode,
title =
this.props.title ||
statusCodes[statusCode] ||
"An unexpected error has occurred";
return _react.default.createElement(
"div",
{
style: styles.error,
},
_react.default.createElement(
_head.default,
null,
_react.default.createElement(
"title",
null,
statusCode
? ""
.concat(
statusCode,
": "
)
.concat(
title
)
: "Application error: a client-side exception has occurred"
)
),
_react.default.createElement(
"div",
null,
_react.default.createElement(
"style",
{
dangerouslySetInnerHTML: {
__html: "body { margin: 0 }",
},
}
),
statusCode
? _react.default.createElement(
"h1",
{
style: styles.h1,
},
statusCode
)
: null,
_react.default.createElement(
"div",
{
style: styles.desc,
},
_react.default.createElement(
"h2",
{
style: styles.h2,
},
this.props.title || statusCode
? title
: _react.default.createElement(
_react.default
.Fragment,
null,
"Application error: a client-side exception has occurred (",
_react.default.createElement(
"a",
{
href: "https://nextjs.org/docs/messages/client-side-exception-occurred",
},
"developer guidance"
),
")"
),
"."
)
)
)
);
},
},
]
),
Error1
);
})(
_react.default.Component
);
(Error1.displayName = "ErrorPage"),
(Error1.getInitialProps = _getInitialProps),
(Error1.origGetInitialProps = _getInitialProps),
(exports.default = Error1);
var styles = {
error: {
color: "#000",
background: "#fff",
fontFamily:
'-apple-system, BlinkMacSystemFont, Roboto, "Segoe UI", "Fira Sans", Avenir, "Helvetica Neue", "Lucida Grande", sans-serif',
height: "100vh",
textAlign: "center",
display: "flex",
flexDirection: "column",
alignItems: "center",
justifyContent: "center",
},
desc: {
display: "inline-block",
textAlign: "left",
lineHeight: "49px",
height: "49px",
verticalAlign: "middle",
},
h1: {
display: "inline-block",
borderRight: "1px solid rgba(0, 0, 0,.3)",
margin: 0,
marginRight: "20px",
padding: "10px 23px 10px 0",
fontSize: "24px",
fontWeight: 500,
verticalAlign: "top",
},
h2: {
fontSize: "14px",
fontWeight: "normal",
lineHeight: "inherit",
margin: 0,
padding: 0,
},
};
},
1923: function (
__unused_webpack_module, exports, __webpack_require__
) {
"use strict";
var obj;
Object.defineProperty(
exports,
"__esModule",
{
value: !0,
}
),
(exports.AmpStateContext = void 0);
var AmpStateContext = (
(obj = __webpack_require__(
2735
)) && obj.__esModule
? obj
: {
default: obj,
}
).default.createContext(
{
}
);
exports.AmpStateContext = AmpStateContext;
},
5726: function (
__unused_webpack_module, exports, __webpack_require__
) {
"use strict";
Object.defineProperty(
exports,
"__esModule",
{
value: !0,
}
),
(exports.isInAmpMode = isInAmpMode),
(exports.useAmp = function (
) {
return isInAmpMode(
_react.default.useContext(
_ampContext.AmpStateContext
)
);
});
var obj,
_react =
(obj = __webpack_require__(
2735
)) && obj.__esModule
? obj
: {
default: obj,
},
_ampContext = __webpack_require__(
1923
);
function isInAmpMode(
) {
var _ref =
arguments.length > 0 && void 0 !== arguments[0]
? arguments[0]
: {
},
_ref$ampFirst = _ref.ampFirst,
ampFirst = void 0 !== _ref$ampFirst && _ref$ampFirst,
_ref$hybrid = _ref.hybrid,
hybrid = void 0 !== _ref$hybrid && _ref$hybrid,
_ref$hasQuery = _ref.hasQuery,
hasQuery = void 0 !== _ref$hasQuery && _ref$hasQuery;
return ampFirst || (hybrid && hasQuery);
}
},
1874: function (
__unused_webpack_module, exports, __webpack_require__
) {
"use strict";
var obj;
Object.defineProperty(
exports,
"__esModule",
{
value: !0,
}
),
(exports.HeadManagerContext = void 0);
var HeadManagerContext = (
(obj = __webpack_require__(
2735
)) && obj.__esModule
? obj
: {
default: obj,
}
).default.createContext(
{
}
);
exports.HeadManagerContext = HeadManagerContext;
},
3396: function (
__unused_webpack_module, exports, __webpack_require__
) {
"use strict";
var _defineProperty = __webpack_require__(
566
);
function ownKeys(
object, enumerableOnly
) {
var keys = Object.keys(
object
);
if (Object.getOwnPropertySymbols) {
var symbols = Object.getOwnPropertySymbols(
object
);
enumerableOnly &&
(symbols = symbols.filter(
function (
sym
) {
return Object.getOwnPropertyDescriptor(
object,
sym
).enumerable;
}
)),
keys.push.apply(
keys,
symbols
);
}
return keys;
}
Object.defineProperty(
exports,
"__esModule",
{
value: !0,
}
),
(exports.defaultHead = defaultHead),
(exports.default = void 0);
var obj,
_react = (function (
obj
) {
if (obj && obj.__esModule) return obj;
var newObj = {
};
if (null != obj)
for (var key in obj)
if (
Object.prototype.hasOwnProperty.call(
obj,
key
)
) {
var desc =
Object.defineProperty &&
Object.getOwnPropertyDescriptor
? Object.getOwnPropertyDescriptor(
obj,
key
)
: {
};
desc.get || desc.set
? Object.defineProperty(
newObj,
key,
desc
)
: (newObj[key] = obj[key]);
}
return (newObj.default = obj), newObj;
})(
__webpack_require__(
2735
)
),
_sideEffect =
(obj = __webpack_require__(
2097
)) && obj.__esModule
? obj
: {
default: obj,
},
_ampContext = __webpack_require__(
1923
),
_headManagerContext = __webpack_require__(
1874
),
_amp = __webpack_require__(
5726
);
function defaultHead(
) {
var inAmpMode =
arguments.length > 0 &&
void 0 !== arguments[0] &&
arguments[0],
head = [
_react.default.createElement(
"meta",
{
charSet: "utf-8",
}
),
];
return (
inAmpMode ||
head.push(
_react.default.createElement(
"meta",
{
name: "viewport",
content: "width=device-width",
}
)
),
head
);
}
function onlyReactElement(
list, child
) {
return "string" == typeof child || "number" == typeof child
? list
: child.type === _react.default.Fragment
? list.concat(
_react.default.Children.toArray(
child.props.children
).reduce(
function (
fragmentList, fragmentChild
) {
return "string" == typeof fragmentChild ||
"number" == typeof fragmentChild
? fragmentList
: fragmentList.concat(
fragmentChild
);
},
[]
)
)
: list.concat(
child
);
}
var METATYPES = ["name", "httpEquiv", "charSet", "itemProp",];
function reduceComponents(
headElements, props
) {
return headElements
.reduce(
function (
list, headElement
) {
var headElementChildren =
_react.default.Children.toArray(
headElement.props.children
);
return list.concat(
headElementChildren
);
},
[]
)
.reduce(
onlyReactElement,
[]
)
.reverse(
)
.concat(
defaultHead(
props.inAmpMode
)
)
.filter(
((keys = new Set(
)),
(tags = new Set(
)),
(metaTypes = new Set(
)),
(metaCategories = {
}),
function (
h
) {
var isUnique = !0,
hasKey = !1;
if (
h.key &&
"number" != typeof h.key &&
h.key.indexOf(
"$"
) > 0
) {
hasKey = !0;
var key = h.key.slice(
h.key.indexOf(
"$"
) + 1
);
keys.has(
key
)
? (isUnique = !1)
: keys.add(
key
);
}
switch (h.type) {
case "title":
case "base":
tags.has(
h.type
)
? (isUnique = !1)
: tags.add(
h.type
);
break;
case "meta":
for (
var i = 0, len = METATYPES.length;
i < len;
i++
) {
var metatype = METATYPES[i];
if (h.props.hasOwnProperty(
metatype
))
if ("charSet" === metatype)
metaTypes.has(
metatype
)
? (isUnique = !1)
: metaTypes.add(
metatype
);
else {
var category =
h.props[metatype],
categories =
metaCategories[
metatype
] || new Set(
);
("name" === metatype &&
hasKey) ||
!categories.has(
category
)
? (categories.add(
category
),
(metaCategories[
metatype
] = categories))
: (isUnique = !1);
}
}
}
return isUnique;
})
)
.reverse(
)
.map(
function (
c, i
) {
var key = c.key || i;
if (
!props.inAmpMode &&
"link" === c.type &&
c.props.href &&
[
"https://fonts.googleapis.com/css",
"https://use.typekit.net/",
].some(
function (
url
) {
return c.props.href.startsWith(
url
);
}
)
) {
var newProps = (function (
target
) {
for (var i = 1; i < arguments.length; i++) {
var source =
null != arguments[i]
? arguments[i]
: {
};
i % 2
? ownKeys(
Object(
source
),
!0
).forEach(
function (
key
) {
_defineProperty(
target,
key,
source[key]
);
}
)
: Object.getOwnPropertyDescriptors
? Object.defineProperties(
target,
Object.getOwnPropertyDescriptors(
source
)
)
: ownKeys(
Object(
source
)
).forEach(
function (
key
) {
Object.defineProperty(
target,
key,
Object.getOwnPropertyDescriptor(
source,
key
)
);
}
);
}
return target;
})(
{
},
c.props || {
}
);
return (
(newProps["data-href"] = newProps.href),
(newProps.href = void 0),
(newProps["data-optimized-fonts"] = !0),
_react.default.cloneElement(
c,
newProps
)
);
}
return _react.default.cloneElement(
c,
{
key: key,
}
);
}
);
var keys, tags, metaTypes, metaCategories;
}
var _default = function (
_ref
) {
var children = _ref.children,
ampState = _react.useContext(
_ampContext.AmpStateContext
),
headManager = _react.useContext(
_headManagerContext.HeadManagerContext
);
return _react.default.createElement(
_sideEffect.default,
{
reduceComponentsToState: reduceComponents,
headManager: headManager,
inAmpMode: _amp.isInAmpMode(
ampState
),
},
children
);
};
exports.default = _default;
},
6509: function (
__unused_webpack_module, exports
) {
"use strict";
Object.defineProperty(
exports,
"__esModule",
{
value: !0,
}
),
(exports.normalizeLocalePath = function (
pathname, locales
) {
var detectedLocale,
pathnameParts = pathname.split(
"/"
);
return (
(locales || []).some(
function (
locale
) {
return (
pathnameParts[1].toLowerCase(
) ===
locale.toLowerCase(
) &&
((detectedLocale = locale),
pathnameParts.splice(
1,
1
),
(pathname = pathnameParts.join(
"/"
) || "/"),
!0)
);
}
),
{
pathname: pathname,
detectedLocale: detectedLocale,
}
);
});
},
4387: function (
__unused_webpack_module, exports
) {
"use strict";
Object.defineProperty(
exports,
"__esModule",
{
value: !0,
}
),
(exports.default = function (
) {
var all = Object.create(
null
);
return {
on: function (
type, handler
) {
(all[type] || (all[type] = [])).push(
handler
);
},
off: function (
type, handler
) {
all[type] &&
all[type].splice(
all[type].indexOf(
handler
) >>> 0,
1
);
},
emit: function (
type
) {
for (
var _len = arguments.length,
evts = new Array(
_len > 1 ? _len - 1 : 0
),
_key = 1;
_key < _len;
_key++
)
evts[_key - 1] = arguments[_key];
(all[type] || []).slice(
).map(
function (
handler
) {
handler.apply(
void 0,
evts
);
}
);
},
};
});
},
6857: function (
__unused_webpack_module, exports, __webpack_require__
) {
"use strict";
var obj;
Object.defineProperty(
exports,
"__esModule",
{
value: !0,
}
),
(exports.RouterContext = void 0);
var RouterContext = (
(obj = __webpack_require__(
2735
)) && obj.__esModule
? obj
: {
default: obj,
}
).default.createContext(
null
);
exports.RouterContext = RouterContext;
},
1073: function (
__unused_webpack_module, exports, __webpack_require__
) {
"use strict";
var _regeneratorRuntime = __webpack_require__(
7945
),
_asyncToGenerator = __webpack_require__(
5374
),
_classCallCheck = __webpack_require__(
4988
),
_createClass = __webpack_require__(
9590
),
_slicedToArray = __webpack_require__(
3408
);
Object.defineProperty(
exports,
"__esModule",
{
value: !0,
}
),
(exports.getDomainLocale = function (
path,
locale,
locales,
domainLocales
) {
0;
return !1;
}),
(exports.addLocale = addLocale),
(exports.delLocale = delLocale),
(exports.hasBasePath = hasBasePath),
(exports.addBasePath = addBasePath),
(exports.delBasePath = delBasePath),
(exports.isLocalURL = isLocalURL),
(exports.interpolateAs = interpolateAs),
(exports.resolveHref = resolveHref),
(exports.default = void 0);
var _normalizeTrailingSlash = __webpack_require__(
3342
),
_routeLoader = __webpack_require__(
1740
),
_denormalizePagePath = __webpack_require__(
709
),
_mitt =
(__webpack_require__(
6509
),
_interopRequireDefault(
__webpack_require__(
4387
)
)),
_utils = __webpack_require__(
6373
),
_isDynamic = __webpack_require__(
2140
),
_parseRelativeUrl = __webpack_require__(
5284
),
_querystring = __webpack_require__(
6136
),
_resolveRewrites = _interopRequireDefault(
__webpack_require__(
808
)
),
_routeMatcher = __webpack_require__(
2106
),
_routeRegex = __webpack_require__(
4339
);
function _interopRequireDefault(
obj
) {
return obj && obj.__esModule
? obj
: {
default: obj,
};
}
function buildCancellationError(
) {
return Object.assign(
new Error(
"Route Cancelled"
),
{
cancelled: !0,
}
);
}
function addLocale(
path, locale, defaultLocale
) {
return path;
}
function delLocale(
path, locale
) {
return path;
}
function pathNoQueryHash(
path
) {
var queryIndex = path.indexOf(
"?"
),
hashIndex = path.indexOf(
"#"
);
return (
(queryIndex > -1 || hashIndex > -1) &&
(path = path.substring(
0,
queryIndex > -1 ? queryIndex : hashIndex
)),
path
);
}
function hasBasePath(
path
) {
return (
"" === (path = pathNoQueryHash(
path
)) ||
path.startsWith(
"/"
)
);
}
function addBasePath(
path
) {
return (function (
path, prefix
) {
return prefix && path.startsWith(
"/"
)
? "/" === path
? _normalizeTrailingSlash.normalizePathTrailingSlash(
prefix
)
: ""
.concat(
prefix
)
.concat(
"/" === pathNoQueryHash(
path
)
? path.substring(
1
)
: path
)
: path;
})(
path,
""
);
}
function delBasePath(
path
) {
return (
(path = path.slice(
"".length
)).startsWith(
"/"
) ||
(path = "/".concat(
path
)),
path
);
}
function isLocalURL(
url
) {
if (
url.startsWith(
"/"
) ||
url.startsWith(
"#"
) ||
url.startsWith(
"?"
)
)
return !0;
try {
var locationOrigin = _utils.getLocationOrigin(
),
resolved = new URL(
url,
locationOrigin
);
return (
resolved.origin === locationOrigin &&
hasBasePath(
resolved.pathname
)
);
} catch (_) {
return !1;
}
}
function interpolateAs(
route, asPathname, query
) {
var interpolatedRoute = "",
dynamicRegex = _routeRegex.getRouteRegex(
route
),
dynamicGroups = dynamicRegex.groups,
dynamicMatches =
(asPathname !== route
? _routeMatcher.getRouteMatcher(
dynamicRegex
)(
asPathname
)
: "") || query;
interpolatedRoute = route;
var params = Object.keys(
dynamicGroups
);
return (
params.every(
function (
param
) {
var value = dynamicMatches[param] || "",
_dynamicGroups$param = dynamicGroups[param],
repeat = _dynamicGroups$param.repeat,
optional = _dynamicGroups$param.optional,
replaced = "["
.concat(
repeat ? "..." : ""
)
.concat(
param,
"]"
);
return (
optional &&
(replaced = ""
.concat(
value ? "" : "/",
"["
)
.concat(
replaced,
"]"
)),
repeat &&
!Array.isArray(
value
) &&
(value = [value,]),
(optional || param in dynamicMatches) &&
(interpolatedRoute =
interpolatedRoute.replace(
replaced,
repeat
? value
.map(
function (
segment
) {
return encodeURIComponent(
segment
);
}
)
.join(
"/"
)
: encodeURIComponent(
value
)
) || "/")
);
}
) || (interpolatedRoute = ""),
{
params: params,
result: interpolatedRoute,
}
);
}
function omitParmsFromQuery(
query, params
) {
var filteredQuery = {
};
return (
Object.keys(
query
).forEach(
function (
key
) {
params.includes(
key
) ||
(filteredQuery[key] = query[key]);
}
),
filteredQuery
);
}
function resolveHref(
router, href, resolveAs
) {
var base,
urlAsString =
"string" == typeof href
? href
: _utils.formatWithValidation(
href
);
try {
base = new URL(
urlAsString.startsWith(
"#"
)
? router.asPath
: router.pathname,
"http://n"
);
} catch (_) {
base = new URL(
"/",
"http://n"
);
}
if (!isLocalURL(
urlAsString
))
return resolveAs ? [urlAsString,] : urlAsString;
try {
var finalUrl = new URL(
urlAsString,
base
);
finalUrl.pathname =
_normalizeTrailingSlash.normalizePathTrailingSlash(
finalUrl.pathname
);
var interpolatedAs = "";
if (
_isDynamic.isDynamicRoute(
finalUrl.pathname
) &&
finalUrl.searchParams &&
resolveAs
) {
var query = _querystring.searchParamsToUrlQuery(
finalUrl.searchParams
),
_interpolateAs = interpolateAs(
finalUrl.pathname,
finalUrl.pathname,
query
),
result = _interpolateAs.result,
params = _interpolateAs.params;
result &&
(interpolatedAs = _utils.formatWithValidation(
{
pathname: result,
hash: finalUrl.hash,
query: omitParmsFromQuery(
query,
params
),
}
));
}
var resolvedHref =
finalUrl.origin === base.origin
? finalUrl.href.slice(
finalUrl.origin.length
)
: finalUrl.href;
return resolveAs
? [resolvedHref, interpolatedAs || resolvedHref,]
: resolvedHref;
} catch (_) {
return resolveAs ? [urlAsString,] : urlAsString;
}
}
function stripOrigin(
url
) {
var origin = _utils.getLocationOrigin(
);
return url.startsWith(
origin
)
? url.substring(
origin.length
)
: url;
}
function prepareUrlAs(
router, url, as
) {
var _resolveHref = resolveHref(
router,
url,
!0
),
_resolveHref2 = _slicedToArray(
_resolveHref,
2
),
resolvedHref = _resolveHref2[0],
resolvedAs = _resolveHref2[1],
origin = _utils.getLocationOrigin(
),
hrefHadOrigin = resolvedHref.startsWith(
origin
),
asHadOrigin = resolvedAs && resolvedAs.startsWith(
origin
);
(resolvedHref = stripOrigin(
resolvedHref
)),
(resolvedAs = resolvedAs
? stripOrigin(
resolvedAs
)
: resolvedAs);
var preparedUrl = hrefHadOrigin
? resolvedHref
: addBasePath(
resolvedHref
),
preparedAs = as
? stripOrigin(
resolveHref(
router,
as
)
)
: resolvedAs || resolvedHref;
return {
url: preparedUrl,
as: asHadOrigin
? preparedAs
: addBasePath(
preparedAs
),
};
}
function resolveDynamicRoute(
pathname, pages
) {
var cleanPathname =
_normalizeTrailingSlash.removePathTrailingSlash(
_denormalizePagePath.denormalizePagePath(
pathname
)
);
return "/404" === cleanPathname || "/_error" === cleanPathname
? pathname
: (pages.includes(
cleanPathname
) ||
pages.some(
function (
page
) {
if (
_isDynamic.isDynamicRoute(
page
) &&
_routeRegex
.getRouteRegex(
page
)
.re.test(
cleanPathname
)
)
return (pathname = page), !0;
}
),
_normalizeTrailingSlash.removePathTrailingSlash(
pathname
));
}
var SSG_DATA_NOT_FOUND = Symbol(
"SSG_DATA_NOT_FOUND"
);
function fetchRetry(
url, attempts
) {
return fetch(
url,
{
credentials: "same-origin",
}
).then(
function (
res
) {
if (!res.ok) {
if (attempts > 1 && res.status >= 500)
return fetchRetry(
url,
attempts - 1
);
if (404 === res.status)
return res.json(
).then(
function (
data
) {
if (data.notFound)
return {
notFound: SSG_DATA_NOT_FOUND,
};
throw new Error(
"Failed to load static props"
);
}
);
throw new Error(
"Failed to load static props"
);
}
return res.json(
);
}
);
}
function fetchNextData(
dataHref, isServerRender
) {
return fetchRetry(
dataHref,
isServerRender ? 3 : 1
).catch(
function (
err
) {
throw (
(isServerRender || _routeLoader.markAssetError(
err
),
err)
);
}
);
}
var Router = (function (
) {
function Router(
pathname1, query1, as1, _ref
) {
var _this = this,
initialProps = _ref.initialProps,
pageLoader = _ref.pageLoader,
App = _ref.App,
wrapApp = _ref.wrapApp,
Component1 = _ref.Component,
err1 = _ref.err,
subscription = _ref.subscription,
isFallback = _ref.isFallback,
locale = _ref.locale,
isPreview =
(_ref.locales,
_ref.defaultLocale,
_ref.domainLocales,
_ref.isPreview);
_classCallCheck(
this,
Router
),
(this.sdc = {
}),
(this.sdr = {
}),
(this._idx = 0),
(this.onPopState = function (
e
) {
var state = e.state;
if (state) {
if (state.__N) {
var url = state.url,
as1 = state.as,
options = state.options,
idx = state.idx;
_this._idx = idx;
var pathname1 =
_parseRelativeUrl.parseRelativeUrl(
url
).pathname;
(_this.isSsr &&
as1 === _this.asPath &&
pathname1 === _this.pathname) ||
(_this._bps && !_this._bps(
state
)) ||
_this.change(
"replaceState",
url,
as1,
Object.assign(
{
},
options,
{
shallow:
options.shallow &&
_this._shallow,
locale:
options.locale ||
_this.defaultLocale,
}
),
undefined
);
}
} else {
var _pathname = _this.pathname,
_query = _this.query;
_this.changeState(
"replaceState",
_utils.formatWithValidation(
{
pathname: addBasePath(
_pathname
),
query: _query,
}
),
_utils.getURL(
)
);
}
}),
(this.route =
_normalizeTrailingSlash.removePathTrailingSlash(
pathname1
)),
(this.components = {
}),
"/_error" !== pathname1 &&
(this.components[this.route] = {
Component: Component1,
initial: !0,
props: initialProps,
err: err1,
__N_SSG: initialProps && initialProps.__N_SSG,
__N_SSP: initialProps && initialProps.__N_SSP,
}),
(this.components["/_app"] = {
Component: App,
styleSheets: [],
}),
(this.events = Router.events),
(this.pageLoader = pageLoader),
(this.pathname = pathname1),
(this.query = query1);
var autoExportDynamic =
_isDynamic.isDynamicRoute(
pathname1
) &&
self.__NEXT_DATA__.autoExport;
if (
((this.asPath = autoExportDynamic ? pathname1 : as1),
(this.basePath = ""),
(this.sub = subscription),
(this.clc = null),
(this._wrapApp = wrapApp),
(this.isSsr = !0),
(this.isFallback = isFallback),
(this.isReady = !!(
self.__NEXT_DATA__.gssp ||
self.__NEXT_DATA__.gip ||
(self.__NEXT_DATA__.appGip &&
!self.__NEXT_DATA__.gsp) ||
(!autoExportDynamic && !self.location.search)
)),
(this.isPreview = !!isPreview),
(this.isLocaleDomain = !1),
"//" !== as1.substr(
0,
2
))
) {
var options = {
locale: locale,
};
(options._shouldResolveHref = as1 !== pathname1),
this.changeState(
"replaceState",
_utils.formatWithValidation(
{
pathname: addBasePath(
pathname1
),
query: query1,
}
),
_utils.getURL(
),
options
);
}
window.addEventListener(
"popstate",
this.onPopState
);
}
var _fetchComponent,
_prefetch,
_getRouteInfo,
_handleRouteInfoError,
_change;
return (
_createClass(
Router,
[
{
key: "reload",
value: function (
) {
window.location.reload(
);
},
},
{
key: "back",
value: function (
) {
window.history.back(
);
},
},
{
key: "push",
value: function (
url, as
) {
var options =
arguments.length > 2 &&
void 0 !== arguments[2]
? arguments[2]
: {
};
var _prepareUrlAs = prepareUrlAs(
this,
url,
as
);
return (
(url = _prepareUrlAs.url),
(as = _prepareUrlAs.as),
this.change(
"pushState",
url,
as,
options
)
);
},
},
{
key: "replace",
value: function (
url, as
) {
var options =
arguments.length > 2 &&
void 0 !== arguments[2]
? arguments[2]
: {
},
_prepareUrlAs2 = prepareUrlAs(
this,
url,
as
);
return (
(url = _prepareUrlAs2.url),
(as = _prepareUrlAs2.as),
this.change(
"replaceState",
url,
as,
options
)
);
},
},
{
key: "change",
value:
((_change = _asyncToGenerator(
_regeneratorRuntime.mark(
function _callee(
method,
url,
as,
options,
forcedScroll
) {
var shouldResolveHref,
prevLocale,
ref,
_options$shallow,
routeProps,
cleanedAs,
localeChange,
parsed,
pathname1,
query1,
pages,
resolvedAs,
route,
_parsedAs,
asPathname,
routeRegex,
routeMatch,
shouldInterpolate,
interpolatedAs,
missingParams,
ref1,
routeInfo,
_routeInfo,
error,
props,
__N_SSG,
__N_SSP,
destination,
parsedHref,
_prepareUrlAs3,
newUrl,
newAs,
notFoundRoute,
isValidShallowRoute,
_scroll,
shouldScroll,
resetScroll;
return _regeneratorRuntime.wrap(
function (
_context
) {
for (;;)
switch (
(_context.prev =
_context.next)
) {
case 0:
if (
isLocalURL(
url
)
) {
_context.next = 3;
break;
}
return (
(window.location.href =
url),
_context.abrupt(
"return",
!1
)
);
case 3:
(shouldResolveHref =
url === as ||
options._h ||
options._shouldResolveHref),
options._h &&
(this.isReady =
!0),
(prevLocale =
this
.locale),
(_context.next = 18);
break;
case 18:
if (
(options._h ||
(this.isSsr =
!1),
_utils.ST &&
performance.mark(
"routeChange"
),
(_options$shallow =
options.shallow),
(routeProps = {
shallow:
void 0 !==
_options$shallow &&
_options$shallow,
}),
this
._inFlightRoute &&
this.abortComponentLoad(
this
._inFlightRoute,
routeProps
),
(as =
addBasePath(
addLocale(
hasBasePath(
as
)
? delBasePath(
as
)
: as,
options.locale,
this
.defaultLocale
)
)),
(cleanedAs =
delLocale(
hasBasePath(
as
)
? delBasePath(
as
)
: as,
this
.locale
)),
(this._inFlightRoute =
as),
(localeChange =
prevLocale !==
this
.locale),
options._h ||
!this.onlyAHashChange(
cleanedAs
) ||
localeChange)
) {
_context.next = 35;
break;
}
return (
(this.asPath =
cleanedAs),
Router.events.emit(
"hashChangeStart",
as,
routeProps
),
this.changeState(
method,
url,
as,
options
),
this.scrollToHash(
cleanedAs
),
this.notify(
this
.components[
this
.route
],
null
),
Router.events.emit(
"hashChangeComplete",
as,
routeProps
),
_context.abrupt(
"return",
!0
)
);
case 35:
return (
(parsed =
_parseRelativeUrl.parseRelativeUrl(
url
)),
(pathname1 =
parsed.pathname),
(query1 =
parsed.query),
(_context.prev = 37),
(_context.next = 40),
this.pageLoader.getPageList(
)
);
case 40:
return (
(pages =
_context.sent),
(_context.next = 43),
_routeLoader.getClientBuildManifest(
)
);
case 43:
_context.sent
.__rewrites,
(_context.next = 51);
break;
case 47:
return (
(_context.prev = 47),
(_context.t0 =
_context.catch(
37
)),
(window.location.href =
as),
_context.abrupt(
"return",
!1
)
);
case 51:
if (
(this.urlIsNew(
cleanedAs
) ||
localeChange ||
(method =
"replaceState"),
(resolvedAs =
as),
(pathname1 =
pathname1
? _normalizeTrailingSlash.removePathTrailingSlash(
delBasePath(
pathname1
)
)
: pathname1),
shouldResolveHref &&
"/_error" !==
pathname1 &&
((options._shouldResolveHref =
!0),
(parsed.pathname =
resolveDynamicRoute(
pathname1,
pages
)),
parsed.pathname !==
pathname1 &&
((pathname1 =
parsed.pathname),
(parsed.pathname =
addBasePath(
pathname1
)),
(url =
_utils.formatWithValidation(
parsed
)))),
(route =
_normalizeTrailingSlash.removePathTrailingSlash(
pathname1
)),
isLocalURL(
as
))
) {
_context.next = 61;
break;
}
_context.next = 59;
break;
case 59:
return (
(window.location.href =
as),
_context.abrupt(
"return",
!1
)
);
case 61:
if (
((resolvedAs =
delLocale(
delBasePath(
resolvedAs
),
this
.locale
)),
!_isDynamic.isDynamicRoute(
route
))
) {
_context.next = 77;
break;
}
if (
((_parsedAs =
_parseRelativeUrl.parseRelativeUrl(
resolvedAs
)),
(asPathname =
_parsedAs.pathname),
(routeRegex =
_routeRegex.getRouteRegex(
route
)),
(routeMatch =
_routeMatcher.getRouteMatcher(
routeRegex
)(
asPathname
)),
(interpolatedAs =
(shouldInterpolate =
route ===
asPathname)
? interpolateAs(
route,
asPathname,
query1
)
: {
}),
routeMatch &&
(!shouldInterpolate ||
interpolatedAs.result))
) {
_context.next = 76;
break;
}
if (
!(
(missingParams =
Object.keys(
routeRegex.groups
).filter(
function (
param
) {
return !query1[
param
];
}
))
.length >
0
)
) {
_context.next = 74;
break;
}
throw new Error(
(shouldInterpolate
? "The provided `href` ("
.concat(
url,
") value is missing query values ("
)
.concat(
missingParams.join(
", "
),
") to be interpolated properly. "
)
: "The provided `as` value ("
.concat(
asPathname,
") is incompatible with the `href` value ("
)
.concat(
route,
"). "
)) +
"Read more: https://nextjs.org/docs/messages/".concat(
shouldInterpolate
? "href-interpolation-failed"
: "incompatible-href-as"
)
);
case 74:
_context.next = 77;
break;
case 76:
shouldInterpolate
? (as =
_utils.formatWithValidation(
Object.assign(
{
},
_parsedAs,
{
pathname:
interpolatedAs.result,
query: omitParmsFromQuery(
query1,
interpolatedAs.params
),
}
)
))
: Object.assign(
query1,
routeMatch
);
case 77:
return (
Router.events.emit(
"routeChangeStart",
as,
routeProps
),
(_context.prev = 78),
(_context.next = 81),
this.getRouteInfo(
route,
pathname1,
query1,
as,
resolvedAs,
routeProps
)
);
case 81:
if (
((routeInfo =
_context.sent),
(error =
(_routeInfo =
routeInfo)
.error),
(props =
_routeInfo.props),
(__N_SSG =
_routeInfo.__N_SSG),
(__N_SSP =
_routeInfo.__N_SSP),
(!__N_SSG &&
!__N_SSP) ||
!props)
) {
_context.next = 107;
break;
}
if (
!props.pageProps ||
!props.pageProps
.__N_REDIRECT
) {
_context.next = 93;
break;
}
if (
!(destination =
props
.pageProps
.__N_REDIRECT).startsWith(
"/"
)
) {
_context.next = 91;
break;
}
return (
((parsedHref =
_parseRelativeUrl.parseRelativeUrl(
destination
)).pathname =
resolveDynamicRoute(
parsedHref.pathname,
pages
)),
(_prepareUrlAs3 =
prepareUrlAs(
this,
destination,
destination
)),
(newUrl =
_prepareUrlAs3.url),
(newAs =
_prepareUrlAs3.as),
_context.abrupt(
"return",
this.change(
method,
newUrl,
newAs,
options
)
)
);
case 91:
return (
(window.location.href =
destination),
_context.abrupt(
"return",
new Promise(
function (
) {}
)
)
);
case 93:
if (
((this.isPreview =
!!props.__N_PREVIEW),
props.notFound !==
SSG_DATA_NOT_FOUND)
) {
_context.next = 107;
break;
}
return (
(_context.prev = 95),
(_context.next = 98),
this.fetchComponent(
"/404"
)
);
case 98:
(notFoundRoute =
"/404"),
(_context.next = 104);
break;
case 101:
(_context.prev = 101),
(_context.t1 =
_context.catch(
95
)),
(notFoundRoute =
"/_error");
case 104:
return (
(_context.next = 106),
this.getRouteInfo(
notFoundRoute,
notFoundRoute,
query1,
as,
resolvedAs,
{
shallow:
!1,
}
)
);
case 106:
routeInfo =
_context.sent;
case 107:
return (
Router.events.emit(
"beforeHistoryChange",
as,
routeProps
),
this.changeState(
method,
url,
as,
options
),
options._h &&
"/_error" ===
pathname1 &&
500 ===
(null ===
(ref =
self
.__NEXT_DATA__
.props) ||
void 0 ===
ref ||
null ===
(ref1 =
ref.pageProps) ||
void 0 ===
ref1
? void 0
: ref1.statusCode) &&
(null ==
props
? void 0
: props.pageProps) &&
(props.pageProps.statusCode = 500),
(isValidShallowRoute =
options.shallow &&
this
.route ===
route),
(shouldScroll =
null !==
(_scroll =
options.scroll) &&
void 0 !==
_scroll
? _scroll
: !isValidShallowRoute),
(resetScroll =
shouldScroll
? {
x: 0,
y: 0,
}
: null),
(_context.next = 116),
this.set(
route,
pathname1,
query1,
cleanedAs,
routeInfo,
null !=
forcedScroll
? forcedScroll
: resetScroll
).catch(
function (
e
) {
if (
!e.cancelled
)
throw e;
error =
error ||
e;
}
)
);
case 116:
if (!error) {
_context.next = 119;
break;
}
throw (
(Router.events.emit(
"routeChangeError",
error,
cleanedAs,
routeProps
),
error)
);
case 119:
return (
Router.events.emit(
"routeChangeComplete",
as,
routeProps
),
_context.abrupt(
"return",
!0
)
);
case 124:
if (
((_context.prev = 124),
(_context.t2 =
_context.catch(
78
)),
!_context.t2
.cancelled)
) {
_context.next = 128;
break;
}
return _context.abrupt(
"return",
!1
);
case 128:
throw _context.t2;
case 129:
case "end":
return _context.stop(
);
}
},
_callee,
this,
[
[37, 47,],
[78, 124,],
[95, 101,],
]
);
}
)
)),
function (
_x, _x2, _x3, _x4, _x5
) {
return _change.apply(
this,
arguments
);
}),
},
{
key: "changeState",
value: function (
method, url, as
) {
var options =
arguments.length > 3 &&
void 0 !== arguments[3]
? arguments[3]
: {
};
("pushState" === method &&
_utils.getURL(
) === as) ||
((this._shallow = options.shallow),
window.history[method](
{
url: url,
as: as,
options: options,
__N: !0,
idx: (this._idx =
"pushState" !== method
? this._idx
: this._idx + 1),
},
"",
as
));
},
},
{
key: "handleRouteInfoError",
value:
((_handleRouteInfoError = _asyncToGenerator(
_regeneratorRuntime.mark(
function _callee2(
err,
pathname,
query,
as,
routeProps,
loadErrorFail
) {
var Component1,
styleSheets,
_yield$this$fetchComp,
routeInfo;
return _regeneratorRuntime.wrap(
function (
_context2
) {
for (;;)
switch (
(_context2.prev =
_context2.next)
) {
case 0:
if (
!err.cancelled
) {
_context2.next = 2;
break;
}
throw err;
case 2:
if (
!_routeLoader.isAssetError(
err
) &&
!loadErrorFail
) {
_context2.next = 6;
break;
}
throw (
(Router.events.emit(
"routeChangeError",
err,
as,
routeProps
),
(window.location.href =
as),
buildCancellationError(
))
);
case 6:
if (
((_context2.prev = 6),
void 0 !==
Component1 &&
void 0 !==
styleSheets)
) {
_context2.next = 13;
break;
}
return (
(_context2.next = 10),
this.fetchComponent(
"/_error"
)
);
case 10:
(_yield$this$fetchComp =
_context2.sent),
(Component1 =
_yield$this$fetchComp.page),
(styleSheets =
_yield$this$fetchComp.styleSheets);
case 13:
if (
(routeInfo = {
props: void 0,
Component:
Component1,
styleSheets:
styleSheets,
err: err,
error: err,
}).props
) {
_context2.next = 25;
break;
}
return (
(_context2.prev = 15),
(_context2.next = 18),
this.getInitialProps(
Component1,
{
err: err,
pathname:
pathname,
query: query,
}
)
);
case 18:
(routeInfo.props =
_context2.sent),
(_context2.next = 25);
break;
case 21:
(_context2.prev = 21),
(_context2.t0 =
_context2.catch(
15
)),
console.error(
"Error in error page `getInitialProps`: ",
_context2.t0
),
(routeInfo.props =
{
});
case 25:
return _context2.abrupt(
"return",
routeInfo
);
case 28:
return (
(_context2.prev = 28),
(_context2.t1 =
_context2.catch(
6
)),
_context2.abrupt(
"return",
this.handleRouteInfoError(
_context2.t1,
pathname,
query,
as,
routeProps,
!0
)
)
);
case 31:
case "end":
return _context2.stop(
);
}
},
_callee2,
this,
[
[6, 28,],
[15, 21,],
]
);
}
)
)),
function (
_x6, _x7, _x8, _x9, _x10, _x11
) {
return _handleRouteInfoError.apply(
this,
arguments
);
}),
},
{
key: "getRouteInfo",
value:
((_getRouteInfo = _asyncToGenerator(
_regeneratorRuntime.mark(
function _callee3(
route,
pathname,
query,
as,
resolvedAs,
routeProps
) {
var existingRouteInfo,
cachedRouteInfo,
routeInfo,
Component1,
__N_SSG,
__N_SSP,
dataHref,
props,
_this2 = this;
return _regeneratorRuntime.wrap(
function (
_context3
) {
for (;;)
switch (
(_context3.prev =
_context3.next)
) {
case 0:
if (
((_context3.prev = 0),
(existingRouteInfo =
this
.components[
route
]),
!routeProps.shallow ||
!existingRouteInfo ||
this
.route !==
route)
) {
_context3.next = 4;
break;
}
return _context3.abrupt(
"return",
existingRouteInfo
);
case 4:
if (
!(cachedRouteInfo =
existingRouteInfo &&
"initial" in
existingRouteInfo
? void 0
: existingRouteInfo)
) {
_context3.next = 9;
break;
}
(_context3.t0 =
cachedRouteInfo),
(_context3.next = 12);
break;
case 9:
return (
(_context3.next = 11),
this.fetchComponent(
route
).then(
function (
res
) {
return {
Component:
res.page,
styleSheets:
res.styleSheets,
__N_SSG:
res
.mod
.__N_SSG,
__N_SSP:
res
.mod
.__N_SSP,
};
}
)
);
case 11:
_context3.t0 =
_context3.sent;
case 12:
(routeInfo =
_context3.t0),
(Component1 =
routeInfo.Component),
(__N_SSG =
routeInfo.__N_SSG),
(__N_SSP =
routeInfo.__N_SSP),
(_context3.next = 18);
break;
case 18:
return (
(__N_SSG ||
__N_SSP) &&
(dataHref =
this.pageLoader.getDataHref(
_utils.formatWithValidation(
{
pathname:
pathname,
query: query,
}
),
resolvedAs,
__N_SSG,
this
.locale
)),
(_context3.next = 21),
this._getData(
function (
) {
return __N_SSG
? _this2._getStaticData(
dataHref
)
: __N_SSP
? _this2._getServerData(
dataHref
)
: _this2.getInitialProps(
Component1,
{
pathname:
pathname,
query: query,
asPath: as,
locale: _this2.locale,
locales:
_this2.locales,
defaultLocale:
_this2.defaultLocale,
}
);
}
)
);
case 21:
return (
(props =
_context3.sent),
(routeInfo.props =
props),
(this.components[
route
] = routeInfo),
_context3.abrupt(
"return",
routeInfo
)
);
case 27:
return (
(_context3.prev = 27),
(_context3.t1 =
_context3.catch(
0
)),
_context3.abrupt(
"return",
this.handleRouteInfoError(
_context3.t1,
pathname,
query,
as,
routeProps
)
)
);
case 30:
case "end":
return _context3.stop(
);
}
},
_callee3,
this,
[[0, 27,],]
);
}
)
)),
function (
_x12, _x13, _x14, _x15, _x16, _x17
) {
return _getRouteInfo.apply(
this,
arguments
);
}),
},
{
key: "set",
value: function (
route,
pathname,
query,
as,
data,
resetScroll
) {
return (
(this.isFallback = !1),
(this.route = route),
(this.pathname = pathname),
(this.query = query),
(this.asPath = as),
this.notify(
data,
resetScroll
)
);
},
},
{
key: "beforePopState",
value: function (
cb
) {
this._bps = cb;
},
},
{
key: "onlyAHashChange",
value: function (
as
) {
if (!this.asPath) return !1;
var _this$asPath$split = this.asPath.split(
"#"
),
_this$asPath$split2 = _slicedToArray(
_this$asPath$split,
2
),
oldUrlNoHash = _this$asPath$split2[0],
oldHash = _this$asPath$split2[1],
_as$split = as.split(
"#"
),
_as$split2 = _slicedToArray(
_as$split,
2
),
newUrlNoHash = _as$split2[0],
newHash = _as$split2[1];
return (
!(
!newHash ||
oldUrlNoHash !== newUrlNoHash ||
oldHash !== newHash
) ||
(oldUrlNoHash === newUrlNoHash &&
oldHash !== newHash)
);
},
},
{
key: "scrollToHash",
value: function (
as
) {
var _as$split3 = as.split(
"#"
),
hash = _slicedToArray(
_as$split3,
2
)[1];
if ("" !== hash && "top" !== hash) {
var idEl = document.getElementById(
hash
);
if (idEl) idEl.scrollIntoView(
);
else {
var nameEl =
document.getElementsByName(
hash
)[0];
nameEl && nameEl.scrollIntoView(
);
}
} else window.scrollTo(
0,
0
);
},
},
{
key: "urlIsNew",
value: function (
asPath
) {
return this.asPath !== asPath;
},
},
{
key: "prefetch",
value:
((_prefetch = _asyncToGenerator(
_regeneratorRuntime.mark(
function _callee4(
url
) {
var asPath,
options,
parsed,
pathname2,
pages,
resolvedAs,
rewrites,
_yield$getClientBuild2,
rewritesResult,
route,
_this3 = this,
_args4 = arguments;
return _regeneratorRuntime.wrap(
function (
_context4
) {
for (;;)
switch (
(_context4.prev =
_context4.next)
) {
case 0:
return (
(asPath =
_args4.length >
1 &&
void 0 !==
_args4[1]
? _args4[1]
: url),
(options =
_args4.length >
2 &&
void 0 !==
_args4[2]
? _args4[2]
: {
}),
(parsed =
_parseRelativeUrl.parseRelativeUrl(
url
)),
(pathname2 =
parsed.pathname),
(_context4.next = 7),
this.pageLoader.getPageList(
)
);
case 7:
(pages =
_context4.sent),
(resolvedAs =
asPath),
(_context4.next = 19);
break;
case 12:
(_yield$getClientBuild2 =
_context4.sent),
(rewrites =
_yield$getClientBuild2.__rewrites),
(rewritesResult =
_resolveRewrites.default(
addBasePath(
addLocale(
asPath,
this
.locale
)
),
pages,
rewrites,
parsed.query,
function (
p
) {
return resolveDynamicRoute(
p,
pages
);
},
this
.locales
)),
(resolvedAs =
delLocale(
delBasePath(
rewritesResult.asPath
),
this
.locale
)),
rewritesResult.matchedPage &&
rewritesResult.resolvedHref &&
((pathname2 =
rewritesResult.resolvedHref),
(parsed.pathname =
pathname2),
(url =
_utils.formatWithValidation(
parsed
))),
(_context4.next = 21);
break;
case 19:
(parsed.pathname =
resolveDynamicRoute(
parsed.pathname,
pages
)),
parsed.pathname !==
pathname2 &&
((pathname2 =
parsed.pathname),
(parsed.pathname =
pathname2),
(url =
_utils.formatWithValidation(
parsed
)));
case 21:
(route =
_normalizeTrailingSlash.removePathTrailingSlash(
pathname2
)),
(_context4.next = 24);
break;
case 24:
return (
(_context4.next = 26),
Promise.all(
[
this.pageLoader
._isSsg(
route
)
.then(
function (
isSsg
) {
return (
!!isSsg &&
_this3._getStaticData(
_this3.pageLoader.getDataHref(
url,
resolvedAs,
!0,
void 0 !==
options.locale
? options.locale
: _this3.locale
)
)
);
}
),
this.pageLoader[
options.priority
? "loadPage"
: "prefetch"
](
route
),
]
)
);
case 26:
case "end":
return _context4.stop(
);
}
},
_callee4,
this
);
}
)
)),
function (
_x18
) {
return _prefetch.apply(
this,
arguments
);
}),
},
{
key: "fetchComponent",
value:
((_fetchComponent = _asyncToGenerator(
_regeneratorRuntime.mark(
function _callee5(
route
) {
var cancelled,
cancel,
componentResult,
error;
return _regeneratorRuntime.wrap(
function (
_context5
) {
for (;;)
switch (
(_context5.prev =
_context5.next)
) {
case 0:
return (
(cancelled =
!1),
(cancel =
this.clc =
function (
) {
cancelled =
!0;
}),
(_context5.next = 4),
this.pageLoader.loadPage(
route
)
);
case 4:
if (
((componentResult =
_context5.sent),
!cancelled)
) {
_context5.next = 9;
break;
}
throw (
(((error =
new Error(
'Abort fetching component for route: "'.concat(
route,
'"'
)
)).cancelled =
!0),
error)
);
case 9:
return (
cancel ===
this.clc &&
(this.clc =
null),
_context5.abrupt(
"return",
componentResult
)
);
case 11:
case "end":
return _context5.stop(
);
}
},
_callee5,
this
);
}
)
)),
function (
_x19
) {
return _fetchComponent.apply(
this,
arguments
);
}),
},
{
key: "_getData",
value: function (
fn
) {
var _this4 = this,
cancelled = !1,
cancel = function (
) {
cancelled = !0;
};
return (
(this.clc = cancel),
fn(
).then(
function (
data
) {
if (
(cancel === _this4.clc &&
(_this4.clc = null),
cancelled)
) {
var err2 = new Error(
"Loading initial props cancelled"
);
throw ((err2.cancelled = !0), err2);
}
return data;
}
)
);
},
},
{
key: "_getStaticData",
value: function (
dataHref
) {
var _this5 = this,
cacheKey = new URL(
dataHref,
window.location.href
).href;
return !this.isPreview && this.sdc[cacheKey]
? Promise.resolve(
this.sdc[cacheKey]
)
: fetchNextData(
dataHref,
this.isSsr
).then(
function (
data
) {
return (
(_this5.sdc[cacheKey] = data),
data
);
}
);
},
},
{
key: "_getServerData",
value: function (
dataHref
) {
var _this6 = this,
resourceKey = new URL(
dataHref,
window.location.href
).href;
return this.sdr[resourceKey]
? this.sdr[resourceKey]
: (this.sdr[resourceKey] = fetchNextData(
dataHref,
this.isSsr
)
.then(
function (
data
) {
return (
delete _this6.sdr[
resourceKey
],
data
);
}
)
.catch(
function (
err2
) {
throw (
(delete _this6.sdr[
resourceKey
],
err2)
);
}
));
},
},
{
key: "getInitialProps",
value: function (
Component, ctx
) {
var App1 = this.components["/_app"].Component,
AppTree = this._wrapApp(
App1
);
return (
(ctx.AppTree = AppTree),
_utils.loadGetInitialProps(
App1,
{
AppTree: AppTree,
Component: Component,
router: this,
ctx: ctx,
}
)
);
},
},
{
key: "abortComponentLoad",
value: function (
as, routeProps
) {
this.clc &&
(Router.events.emit(
"routeChangeError",
buildCancellationError(
),
as,
routeProps
),
this.clc(
),
(this.clc = null));
},
},
{
key: "notify",
value: function (
data, resetScroll
) {
return this.sub(
data,
this.components["/_app"].Component,
resetScroll
);
},
},
]
),
Router
);
})(
);
(Router.events = _mitt.default(
)), (exports.default = Router);
},
1857: function (
__unused_webpack_module, exports, __webpack_require__
) {
"use strict";
Object.defineProperty(
exports,
"__esModule",
{
value: !0,
}
),
(exports.formatUrl = function (
urlObj
) {
var auth = urlObj.auth,
hostname = urlObj.hostname,
protocol = urlObj.protocol || "",
pathname = urlObj.pathname || "",
hash = urlObj.hash || "",
query = urlObj.query || "",
host = !1;
(auth = auth
? encodeURIComponent(
auth
).replace(
/%3A/i,
":"
) + "@"
: ""),
urlObj.host
? (host = auth + urlObj.host)
: hostname &&
((host =
auth +
(~hostname.indexOf(
":"
)
? "[".concat(
hostname,
"]"
)
: hostname)),
urlObj.port && (host += ":" + urlObj.port));
query &&
"object" == typeof query &&
(query = String(
querystring.urlQueryToSearchParams(
query
)
));
var search =
urlObj.search || (query && "?".concat(
query
)) || "";
protocol &&
":" !== protocol.substr(
-1
) &&
(protocol += ":");
urlObj.slashes ||
((!protocol || slashedProtocols.test(
protocol
)) &&
!1 !== host)
? ((host = "//" + (host || "")),
pathname &&
"/" !== pathname[0] &&
(pathname = "/" + pathname))
: host || (host = "");
hash && "#" !== hash[0] && (hash = "#" + hash);
search && "?" !== search[0] && (search = "?" + search);
return (
(pathname = pathname.replace(
/[?#]/g,
encodeURIComponent
)),
(search = search.replace(
"#",
"%23"
)),
""
.concat(
protocol
)
.concat(
host
)
.concat(
pathname
)
.concat(
search
)
.concat(
hash
)
);
});
var querystring = (function (
obj
) {
if (obj && obj.__esModule) return obj;
var newObj = {
};
if (null != obj)
for (var key in obj)
if (Object.prototype.hasOwnProperty.call(
obj,
key
)) {
var desc =
Object.defineProperty &&
Object.getOwnPropertyDescriptor
? Object.getOwnPropertyDescriptor(
obj,
key
)
: {
};
desc.get || desc.set
? Object.defineProperty(
newObj,
key,
desc
)
: (newObj[key] = obj[key]);
}
return (newObj.default = obj), newObj;
})(
__webpack_require__(
6136
)
);
var slashedProtocols = /https?|ftp|gopher|file/;
},
3794: function (
__unused_webpack_module, exports
) {
"use strict";
Object.defineProperty(
exports,
"__esModule",
{
value: !0,
}
),
(exports.default = function (
route
) {
var ext =
arguments.length > 1 && void 0 !== arguments[1]
? arguments[1]
: "",
path =
"/" === route
? "/index"
: /^\/index(\/|$)/.test(
route
)
? "/index".concat(
route
)
: "".concat(
route
);
return path + ext;
});
},
2140: function (
__unused_webpack_module, exports
) {
"use strict";
Object.defineProperty(
exports,
"__esModule",
{
value: !0,
}
),
(exports.isDynamicRoute = function (
route
) {
return TEST_ROUTE.test(
route
);
});
var TEST_ROUTE = /\/\[[^/]+?\](?=\/|$)/;
},
5284: function (
__unused_webpack_module, exports, __webpack_require__
) {
"use strict";
Object.defineProperty(
exports,
"__esModule",
{
value: !0,
}
),
(exports.parseRelativeUrl = function (
url, base
) {
var globalBase = new URL(
_utils.getLocationOrigin(
)
),
resolvedBase = base
? new URL(
base,
globalBase
)
: globalBase,
_URL = new URL(
url,
resolvedBase
),
pathname = _URL.pathname,
searchParams = _URL.searchParams,
search = _URL.search,
hash = _URL.hash,
href = _URL.href;
if (_URL.origin !== globalBase.origin)
throw new Error(
"invariant: invalid relative URL, router received ".concat(
url
)
);
return {
pathname: pathname,
query: _querystring.searchParamsToUrlQuery(
searchParams
),
search: search,
hash: hash,
href: href.slice(
globalBase.origin.length
),
};
});
var _utils = __webpack_require__(
6373
),
_querystring = __webpack_require__(
6136
);
},
6136: function (
__unused_webpack_module, exports, __webpack_require__
) {
"use strict";
var _slicedToArray = __webpack_require__(
3408
);
function stringifyUrlQueryParam(
param
) {
return "string" == typeof param ||
("number" == typeof param && !isNaN(
param
)) ||
"boolean" == typeof param
? String(
param
)
: "";
}
Object.defineProperty(
exports,
"__esModule",
{
value: !0,
}
),
(exports.searchParamsToUrlQuery = function (
searchParams
) {
var query = {
};
return (
searchParams.forEach(
function (
value, key
) {
void 0 === query[key]
? (query[key] = value)
: Array.isArray(
query[key]
)
? query[key].push(
value
)
: (query[key] = [query[key], value,]);
}
),
query
);
}),
(exports.urlQueryToSearchParams = function (
urlQuery
) {
var result = new URLSearchParams(
);
return (
Object.entries(
urlQuery
).forEach(
function (
_ref
) {
var _ref2 = _slicedToArray(
_ref,
2
),
key = _ref2[0],
value = _ref2[1];
Array.isArray(
value
)
? value.forEach(
function (
item
) {
return result.append(
key,
stringifyUrlQueryParam(
item
)
);
}
)
: result.set(
key,
stringifyUrlQueryParam(
value
)
);
}
),
result
);
}),
(exports.assign = function (
target
) {
for (
var _len = arguments.length,
searchParamsList = new Array(
_len > 1 ? _len - 1 : 0
),
_key = 1;
_key < _len;
_key++
)
searchParamsList[_key - 1] = arguments[_key];
return (
searchParamsList.forEach(
function (
searchParams
) {
Array.from(
searchParams.keys(
)
).forEach(
function (
key
) {
return target.delete(
key
);
}
),
searchParams.forEach(
function (
value, key
) {
return target.append(
key,
value
);
}
);
}
),
target
);
});
},
2106: function (
__unused_webpack_module, exports, __webpack_require__
) {
"use strict";
Object.defineProperty(
exports,
"__esModule",
{
value: !0,
}
),
(exports.getRouteMatcher = function (
routeRegex
) {
var re = routeRegex.re,
groups = routeRegex.groups;
return function (
pathname
) {
var routeMatch = re.exec(
pathname
);
if (!routeMatch) return !1;
var decode = function (
param
) {
try {
return decodeURIComponent(
param
);
} catch (_) {
throw new _utils.DecodeError(
"failed to decode param"
);
}
},
params = {
};
return (
Object.keys(
groups
).forEach(
function (
slugName
) {
var g = groups[slugName],
m = routeMatch[g.pos];
void 0 !== m &&
(params[slugName] = ~m.indexOf(
"/"
)
? m.split(
"/"
).map(
function (
entry
) {
return decode(
entry
);
}
)
: g.repeat
? [decode(
m
),]
: decode(
m
));
}
),
params
);
};
});
var _utils = __webpack_require__(
6373
);
},
4339: function (
__unused_webpack_module, exports
) {
"use strict";
function getParametrizedRoute(
route
) {
var segments = (route.replace(
/\/$/,
""
) || "/")
.slice(
1
)
.split(
"/"
),
groups = {
},
groupIndex = 1;
return {
parameterizedRoute: segments
.map(
function (
segment
) {
if (
segment.startsWith(
"["
) &&
segment.endsWith(
"]"
)
) {
var _parseParameter = (function (
param
) {
var optional =
param.startsWith(
"["
) &&
param.endsWith(
"]"
);
optional &&
(param = param.slice(
1,
-1
));
var repeat = param.startsWith(
"..."
);
return (
repeat && (param = param.slice(
3
)),
{
key: param,
repeat: repeat,
optional: optional,
}
);
})(
segment.slice(
1,
-1
)
),
key = _parseParameter.key,
optional = _parseParameter.optional,
repeat = _parseParameter.repeat;
return (
(groups[key] = {
pos: groupIndex++,
repeat: repeat,
optional: optional,
}),
repeat
? optional
? "(?:/(.+?))?"
: "/(.+?)"
: "/([^/]+?)"
);
}
return "/".concat(
segment.replace(
/[|\\{}()[\]^$+*?.-]/g,
"\\$&"
)
);
}
)
.join(
""
),
groups: groups,
};
}
Object.defineProperty(
exports,
"__esModule",
{
value: !0,
}
),
(exports.getParametrizedRoute = getParametrizedRoute),
(exports.getRouteRegex = function (
normalizedRoute
) {
var result = getParametrizedRoute(
normalizedRoute
);
if ("routeKeys" in result)
return {
re: new RegExp(
"^".concat(
result.parameterizedRoute,
"(?:/)?$"
)
),
groups: result.groups,
routeKeys: result.routeKeys,
namedRegex: "^".concat(
result.namedParameterizedRoute,
"(?:/)?$"
),
};
return {
re: new RegExp(
"^".concat(
result.parameterizedRoute,
"(?:/)?$"
)
),
groups: result.groups,
};
});
},
3338: function (
__unused_webpack_module, exports
) {
"use strict";
var runtimeConfig;
Object.defineProperty(
exports,
"__esModule",
{
value: !0,
}
),
(exports.setConfig = function (
configValue
) {
runtimeConfig = configValue;
}),
(exports.default = void 0);
exports.default = function (
) {
return runtimeConfig;
};
},
2097: function (
__unused_webpack_module, exports, __webpack_require__
) {
"use strict";
var _toConsumableArray = __webpack_require__(
9571
),
_classCallCheck = __webpack_require__(
4988
),
_createClass = __webpack_require__(
9590
),
_inherits =
(__webpack_require__(
9382
), __webpack_require__(
4546
)),
_possibleConstructorReturn = __webpack_require__(
1581
),
_getPrototypeOf = __webpack_require__(
852
);
function _createSuper(
Derived
) {
var hasNativeReflectConstruct = (function (
) {
if ("undefined" == typeof Reflect || !Reflect.construct)
return !1;
if (Reflect.construct.sham) return !1;
if ("function" == typeof Proxy) return !0;
try {
return (
Date.prototype.toString.call(
Reflect.construct(
Date,
[],
function (
) {}
)
),
!0
);
} catch (e) {
return !1;
}
})(
);
return function (
) {
var result,
Super = _getPrototypeOf(
Derived
);
if (hasNativeReflectConstruct) {
var NewTarget = _getPrototypeOf(
this
).constructor;
result = Reflect.construct(
Super,
arguments,
NewTarget
);
} else result = Super.apply(
this,
arguments
);
return _possibleConstructorReturn(
this,
result
);
};
}
Object.defineProperty(
exports,
"__esModule",
{
value: !0,
}
),
(exports.default = void 0);
var _react = __webpack_require__(
2735
),
_class = (function (
_react$Component
) {
_inherits(
_class,
_react$Component
);
var _super = _createSuper(
_class
);
function _class(
props
) {
var _this;
return (
_classCallCheck(
this,
_class
),
((_this = _super.call(
this,
props
)).emitChange =
function (
) {
_this._hasHeadManager &&
_this.props.headManager.updateHead(
_this.props.reduceComponentsToState(
_toConsumableArray(
_this.props.headManager
.mountedInstances
),
_this.props
)
);
}),
(_this._hasHeadManager =
_this.props.headManager &&
_this.props.headManager.mountedInstances),
_this
);
}
return (
_createClass(
_class,
[
{
key: "componentDidMount",
value: function (
) {
this._hasHeadManager &&
this.props.headManager.mountedInstances.add(
this
),
this.emitChange(
);
},
},
{
key: "componentDidUpdate",
value: function (
) {
this.emitChange(
);
},
},
{
key: "componentWillUnmount",
value: function (
) {
this._hasHeadManager &&
this.props.headManager.mountedInstances.delete(
this
),
this.emitChange(
);
},
},
{
key: "render",
value: function (
) {
return null;
},
},
]
),
_class
);
})(
_react.Component
);
exports.default = _class;
},
6373: function (
__unused_webpack_module, exports, __webpack_require__
) {
"use strict";
var _regeneratorRuntime = __webpack_require__(
7945
),
_classCallCheck = __webpack_require__(
4988
),
_inherits = __webpack_require__(
4546
),
_possibleConstructorReturn = __webpack_require__(
1581
),
_getPrototypeOf = __webpack_require__(
852
),
_wrapNativeSuper = __webpack_require__(
8545
),
_asyncToGenerator = __webpack_require__(
5374
);
function _createSuper(
Derived
) {
var hasNativeReflectConstruct = (function (
) {
if ("undefined" == typeof Reflect || !Reflect.construct)
return !1;
if (Reflect.construct.sham) return !1;
if ("function" == typeof Proxy) return !0;
try {
return (
Date.prototype.toString.call(
Reflect.construct(
Date,
[],
function (
) {}
)
),
!0
);
} catch (e) {
return !1;
}
})(
);
return function (
) {
var result,
Super = _getPrototypeOf(
Derived
);
if (hasNativeReflectConstruct) {
var NewTarget = _getPrototypeOf(
this
).constructor;
result = Reflect.construct(
Super,
arguments,
NewTarget
);
} else result = Super.apply(
this,
arguments
);
return _possibleConstructorReturn(
this,
result
);
};
}
Object.defineProperty(
exports,
"__esModule",
{
value: !0,
}
),
(exports.execOnce = function (
fn
) {
var result,
used = !1;
return function (
) {
return (
used ||
((used = !0),
(result = fn.apply(
void 0,
arguments
))),
result
);
};
}),
(exports.getLocationOrigin = getLocationOrigin),
(exports.getURL = function (
) {
var href = window.location.href,
origin = getLocationOrigin(
);
return href.substring(
origin.length
);
}),
(exports.getDisplayName = getDisplayName),
(exports.isResSent = isResSent),
(exports.loadGetInitialProps = loadGetInitialProps),
(exports.formatWithValidation = function (
url
) {
0;
return _formatUrl.formatUrl(
url
);
}),
(exports.ST = exports.SP = exports.urlObjectKeys = void 0);
var _formatUrl = __webpack_require__(
1857
);
function getLocationOrigin(
) {
var _window$location = window.location,
protocol = _window$location.protocol,
hostname = _window$location.hostname,
port = _window$location.port;
return ""
.concat(
protocol,
"//"
)
.concat(
hostname
)
.concat(
port ? ":" + port : ""
);
}
function getDisplayName(
Component
) {
return "string" == typeof Component
? Component
: Component.displayName || Component.name || "Unknown";
}
function isResSent(
res
) {
return res.finished || res.headersSent;
}
function loadGetInitialProps(
_x, _x2
) {
return _loadGetInitialProps.apply(
this,
arguments
);
}
function _loadGetInitialProps(
) {
return (_loadGetInitialProps = _asyncToGenerator(
_regeneratorRuntime.mark(
function _callee(
App, ctx
) {
var res, props, _message;
return _regeneratorRuntime.wrap(
function (
_context
) {
for (;;)
switch ((_context.prev = _context.next)) {
case 0:
_context.next = 4;
break;
case 4:
if (
((res =
ctx.res ||
(ctx.ctx && ctx.ctx.res)),
App.getInitialProps)
) {
_context.next = 12;
break;
}
if (!ctx.ctx || !ctx.Component) {
_context.next = 11;
break;
}
return (
(_context.next = 9),
loadGetInitialProps(
ctx.Component,
ctx.ctx
)
);
case 9:
return (
(_context.t0 = _context.sent),
_context.abrupt(
"return",
{
pageProps: _context.t0,
}
)
);
case 11:
return _context.abrupt(
"return",
{
}
);
case 12:
return (
(_context.next = 14),
App.getInitialProps(
ctx
)
);
case 14:
if (
((props = _context.sent),
!res || !isResSent(
res
))
) {
_context.next = 17;
break;
}
return _context.abrupt(
"return",
props
);
case 17:
if (props) {
_context.next = 20;
break;
}
throw (
((_message = '"'
.concat(
getDisplayName(
App
),
'.getInitialProps()" should resolve to an object. But found "'
)
.concat(
props,
'" instead.'
)),
new Error(
_message
))
);
case 20:
return _context.abrupt(
"return",
props
);
case 22:
case "end":
return _context.stop(
);
}
},
_callee
);
}
)
)).apply(
this,
arguments
);
}
exports.urlObjectKeys = [
"auth",
"hash",
"host",
"hostname",
"href",
"path",
"pathname",
"port",
"protocol",
"query",
"search",
"slashes",
];
var SP = "undefined" != typeof performance;
exports.SP = SP;
var ST =
SP &&
"function" == typeof performance.mark &&
"function" == typeof performance.measure;
exports.ST = ST;
var DecodeError = (function (
_Error
) {
_inherits(
DecodeError,
_Error
);
var _super = _createSuper(
DecodeError
);
function DecodeError(
) {
return (
_classCallCheck(
this,
DecodeError
),
_super.apply(
this,
arguments
)
);
}
return DecodeError;
})(
_wrapNativeSuper(
Error
)
);
exports.DecodeError = DecodeError;
},
1474: function (
module
) {
"use strict";
var assign = Object.assign.bind(
Object
);
(module.exports = assign),
(module.exports.default = module.exports);
},
5549: function (
module
) {
module.exports = (function (
) {
var e = {
770: function (
e, t
) {
!(function (
e
) {
"use strict";
var t,
n,
i,
r,
a = function (
e, t
) {
return {
name: e,
value: void 0 === t ? -1 : t,
delta: 0,
entries: [],
id: "v2-"
.concat(
Date.now(
),
"-"
)
.concat(
Math.floor(
8999999999999 *
Math.random(
)
) + 1e12
),
};
},
o = function (
e, t
) {
try {
if (
PerformanceObserver.supportedEntryTypes.includes(
e
)
) {
if (
"first-input" === e &&
!(
"PerformanceEventTiming" in
self
)
)
return;
var n = new PerformanceObserver(
function (
e
) {
return e
.getEntries(
)
.map(
t
);
}
);
return (
n.observe(
{
type: e,
buffered: !0,
}
),
n
);
}
} catch (e) {}
},
u = function (
e, t
) {
var i = function n(
i
) {
("pagehide" !== i.type &&
"hidden" !==
document.visibilityState) ||
(e(
i
),
t &&
(removeEventListener(
"visibilitychange",
n,
!0
),
removeEventListener(
"pagehide",
n,
!0
)));
};
addEventListener(
"visibilitychange",
i,
!0
),
addEventListener(
"pagehide",
i,
!0
);
},
c = function (
e
) {
addEventListener(
"pageshow",
function (
t
) {
t.persisted && e(
t
);
},
!0
);
},
s = function (
e, t, n
) {
var i;
return function (
r
) {
t.value >= 0 &&
(r || n) &&
((t.delta = t.value - (i || 0)),
(t.delta || void 0 === i) &&
((i = t.value), e(
t
)));
};
},
f = -1,
v = function (
) {
return "hidden" ===
document.visibilityState
? 0
: 1 / 0;
},
m = function (
) {
u(
function (
e
) {
var t = e.timeStamp;
f = t;
},
!0
);
},
p = function (
) {
return (
f < 0 &&
((f = v(
)),
m(
),
c(
function (
) {
setTimeout(
function (
) {
(f = v(
)), m(
);
},
0
);
}
)),
{
get firstHiddenTime(
) {
return f;
},
}
);
},
d = function (
e, t
) {
var n,
i = p(
),
r = a(
"FCP"
),
u = function (
e
) {
"first-contentful-paint" ===
e.name &&
(v && v.disconnect(
),
e.startTime <
i.firstHiddenTime &&
((r.value =
e.startTime),
r.entries.push(
e
),
n(
!0
)));
},
f =
performance.getEntriesByName &&
performance.getEntriesByName(
"first-contentful-paint"
)[0],
v = f
? null
: o(
"paint",
u
);
(f || v) &&
((n = s(
e,
r,
t
)),
f && u(
f
),
c(
function (
i
) {
(r = a(
"FCP"
)),
(n = s(
e,
r,
t
)),
requestAnimationFrame(
function (
) {
requestAnimationFrame(
function (
) {
(r.value =
performance.now(
) -
i.timeStamp),
n(
!0
);
}
);
}
);
}
));
},
l = !1,
g = -1,
h = {
passive: !0,
capture: !0,
},
y = new Date(
),
T = function (
e, r
) {
t ||
((t = r),
(n = e),
(i = new Date(
)),
w(
removeEventListener
),
_(
));
},
_ = function (
) {
if (n >= 0 && n < i - y) {
var e = {
entryType: "first-input",
name: t.type,
target: t.target,
cancelable: t.cancelable,
startTime: t.timeStamp,
processingStart:
t.timeStamp + n,
};
r.forEach(
function (
t
) {
t(
e
);
}
),
(r = []);
}
},
E = function (
e
) {
if (e.cancelable) {
var t =
(e.timeStamp > 1e12
? new Date(
)
: performance.now(
)) -
e.timeStamp;
"pointerdown" == e.type
? (function (
e, t
) {
var n = function (
) {
T(
e,
t
), r(
);
},
i = function (
) {
r(
);
},
r = function (
) {
removeEventListener(
"pointerup",
n,
h
),
removeEventListener(
"pointercancel",
i,
h
);
};
addEventListener(
"pointerup",
n,
h
),
addEventListener(
"pointercancel",
i,
h
);
})(
t,
e
)
: T(
t,
e
);
}
},
w = function (
e
) {
[
"mousedown",
"keydown",
"touchstart",
"pointerdown",
].forEach(
function (
t
) {
return e(
t,
E,
h
);
}
);
},
S = new Set(
);
(e.getCLS = function (
e, t
) {
l ||
(d(
function (
e
) {
g = e.value;
}
),
(l = !0));
var n,
i = function (
t
) {
g > -1 && e(
t
);
},
r = a(
"CLS",
0
),
f = 0,
v = [],
m = function (
e
) {
if (!e.hadRecentInput) {
var t = v[0],
i = v[v.length - 1];
f &&
e.startTime - i.startTime <
1e3 &&
e.startTime - t.startTime < 5e3
? ((f += e.value),
v.push(
e
))
: ((f = e.value),
(v = [e,])),
f > r.value &&
((r.value = f),
(r.entries = v),
n(
));
}
},
p = o(
"layout-shift",
m
);
p &&
((n = s(
i,
r,
t
)),
u(
function (
) {
p.takeRecords(
).map(
m
), n(
!0
);
}
),
c(
function (
) {
(f = 0),
(g = -1),
(r = a(
"CLS",
0
)),
(n = s(
i,
r,
t
));
}
));
}),
(e.getFCP = d),
(e.getFID = function (
e, i
) {
var f,
v = p(
),
m = a(
"FID"
),
d = function (
e
) {
e.startTime <
v.firstHiddenTime &&
((m.value =
e.processingStart -
e.startTime),
m.entries.push(
e
),
f(
!0
));
},
l = o(
"first-input",
d
);
(f = s(
e,
m,
i
)),
l &&
u(
function (
) {
l.takeRecords(
).map(
d
),
l.disconnect(
);
},
!0
),
l &&
c(
function (
) {
var o;
(m = a(
"FID"
)),
(f = s(
e,
m,
i
)),
(r = []),
(n = -1),
(t = null),
w(
addEventListener
),
(o = d),
r.push(
o
),
_(
);
}
);
}),
(e.getLCP = function (
e, t
) {
var n,
i = p(
),
r = a(
"LCP"
),
f = function (
e
) {
var t = e.startTime;
t < i.firstHiddenTime &&
((r.value = t),
r.entries.push(
e
)),
n(
);
},
v = o(
"largest-contentful-paint",
f
);
if (v) {
n = s(
e,
r,
t
);
var m = function (
) {
S.has(
r.id
) ||
(v.takeRecords(
).map(
f
),
v.disconnect(
),
S.add(
r.id
),
n(
!0
));
};
["keydown", "click",].forEach(
function (
e
) {
addEventListener(
e,
m,
{
once: !0,
capture: !0,
}
);
}
),
u(
m,
!0
),
c(
function (
i
) {
(r = a(
"LCP"
)),
(n = s(
e,
r,
t
)),
requestAnimationFrame(
function (
) {
requestAnimationFrame(
function (
) {
(r.value =
performance.now(
) -
i.timeStamp),
S.add(
r.id
),
n(
!0
);
}
);
}
);
}
);
}
}),
(e.getTTFB = function (
e
) {
var t,
n = a(
"TTFB"
);
(t = function (
) {
try {
var t =
performance.getEntriesByType(
"navigation"
)[0] ||
(function (
) {
var e =
performance.timing,
t = {
entryType:
"navigation",
startTime: 0,
};
for (var n in e)
"navigationStart" !==
n &&
"toJSON" !==
n &&
(t[n] =
Math.max(
e[n] -
e.navigationStart,
0
));
return t;
})(
);
if (
((n.value = n.delta =
t.responseStart),
n.value < 0)
)
return;
(n.entries = [t,]), e(
n
);
} catch (e) {}
}),
"complete" === document.readyState
? setTimeout(
t,
0
)
: addEventListener(
"pageshow",
t
);
}),
Object.defineProperty(
e,
"__esModule",
{
value: !0,
}
);
})(
t
);
},
},
t = {
};
function __nccwpck_require__(
n
) {
if (t[n]) return t[n].exports;
var i = (t[n] = {
exports: {
},
}),
r = !0;
try {
e[n].call(
i.exports,
i,
i.exports,
__nccwpck_require__
),
(r = !1);
} finally {
r && delete t[n];
}
return i.exports;
}
return (
(__nccwpck_require__.ab = "//"), __nccwpck_require__(
770
)
);
})(
);
},
709: function (
__unused_webpack_module, exports
) {
"use strict";
function normalizePathSep(
path
) {
return path.replace(
/\\/g,
"/"
);
}
Object.defineProperty(
exports,
"__esModule",
{
value: !0,
}
),
(exports.normalizePathSep = normalizePathSep),
(exports.denormalizePagePath = function (
page
) {
(page = normalizePathSep(
page
)).startsWith(
"/index/"
)
? (page = page.slice(
6
))
: "/index" === page && (page = "/");
return page;
});
},
808: function (
) {},
},
function (
__webpack_require__
) {
__webpack_require__.O(
0,
[774,],
function (
) {
return (
(moduleId = 5079),
__webpack_require__(
(__webpack_require__.s = moduleId)
)
);
var moduleId;
}
);
var __webpack_exports__ = __webpack_require__.O(
);
_N_E = __webpack_exports__;
},
]
);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/fixture/projects/next/.archive-4/pages/development-logs/link-with-no-prefetch-53313deb99cf94686856/input.js | JavaScript | (self["webpackChunk_N_E"] = self["webpackChunk_N_E"] || []).push([
[891],
{
/***/ 3824: /***/ function (
__unused_webpack_module,
exports,
__webpack_require__
) {
"use strict";
var __webpack_unused_export__;
var _slicedToArray = __webpack_require__(3408);
__webpack_unused_export__ = {
value: true,
};
exports.default = void 0;
var _react = _interopRequireDefault(__webpack_require__(2735));
var _router = __webpack_require__(1073);
var _router1 = __webpack_require__(6409);
var _useIntersection = __webpack_require__(4770);
function _interopRequireDefault(obj) {
return obj && obj.__esModule
? obj
: {
default: obj,
};
}
var prefetched = {};
function prefetch(router, href, as, options) {
if (false || !router) return;
if (!(0, _router).isLocalURL(href)) return; // Prefetch the JSON page if asked (only in the client)
// We need to handle a prefetch error here since we may be
// loading with priority which can reject but we don't
// want to force navigation since this is only a prefetch
router.prefetch(href, as, options)["catch"](function (err) {
if (false) {
}
});
var curLocale =
options && typeof options.locale !== "undefined"
? options.locale
: router && router.locale; // Join on an invalid URI character
prefetched[
href + "%" + as + (curLocale ? "%" + curLocale : "")
] = true;
}
function isModifiedEvent(event) {
var target = event.currentTarget.target;
return (
(target && target !== "_self") ||
event.metaKey ||
event.ctrlKey ||
event.shiftKey ||
event.altKey ||
(event.nativeEvent && event.nativeEvent.which === 2)
);
}
function linkClicked(
e,
router,
href,
as,
replace,
shallow,
scroll,
locale
) {
var nodeName = e.currentTarget.nodeName;
if (
nodeName === "A" &&
(isModifiedEvent(e) || !(0, _router).isLocalURL(href))
) {
// ignore click for browser’s default behavior
return;
}
e.preventDefault(); // avoid scroll for urls with anchor refs
if (scroll == null && as.indexOf("#") >= 0) {
scroll = false;
} // replace state instead of push if prop is present
router[replace ? "replace" : "push"](href, as, {
shallow: shallow,
locale: locale,
scroll: scroll,
});
}
function Link(props) {
if (false) {
var hasWarned,
optionalProps,
optionalPropsGuard,
requiredProps,
requiredPropsGuard,
createPropError;
}
var p = props.prefetch !== false;
var router = (0, _router1).useRouter();
var _react$default$useMem = _react["default"].useMemo(
function () {
var _resolveHref = (0, _router).resolveHref(
router,
props.href,
true
),
_resolveHref2 = _slicedToArray(_resolveHref, 2),
resolvedHref = _resolveHref2[0],
resolvedAs = _resolveHref2[1];
return {
href: resolvedHref,
as: props.as
? (0, _router).resolveHref(router, props.as)
: resolvedAs || resolvedHref,
};
},
[router, props.href, props.as]
),
href = _react$default$useMem.href,
as = _react$default$useMem.as;
var children = props.children,
replace = props.replace,
shallow = props.shallow,
scroll = props.scroll,
locale = props.locale; // Deprecated. Warning shown by propType check. If the children provided is a string (<Link>example</Link>) we wrap it in an <a> tag
if (typeof children === "string") {
children = /*#__PURE__*/ _react["default"].createElement(
"a",
null,
children
);
} // This will return the first child, if multiple are provided it will throw an error
var child;
if (false) {
} else {
child = _react["default"].Children.only(children);
}
var childRef = child && typeof child === "object" && child.ref;
var _useIntersection2 = (0, _useIntersection).useIntersection({
rootMargin: "200px",
}),
_useIntersection3 = _slicedToArray(_useIntersection2, 2),
setIntersectionRef = _useIntersection3[0],
isVisible = _useIntersection3[1];
var setRef = _react["default"].useCallback(
function (el) {
setIntersectionRef(el);
if (childRef) {
if (typeof childRef === "function") childRef(el);
else if (typeof childRef === "object") {
childRef.current = el;
}
}
},
[childRef, setIntersectionRef]
);
_react["default"].useEffect(
function () {
var shouldPrefetch =
isVisible && p && (0, _router).isLocalURL(href);
var curLocale =
typeof locale !== "undefined"
? locale
: router && router.locale;
var isPrefetched =
prefetched[
href +
"%" +
as +
(curLocale ? "%" + curLocale : "")
];
if (shouldPrefetch && !isPrefetched) {
prefetch(router, href, as, {
locale: curLocale,
});
}
},
[as, href, isVisible, locale, p, router]
);
var childProps = {
ref: setRef,
onClick: function onClick(e) {
if (
child.props &&
typeof child.props.onClick === "function"
) {
child.props.onClick(e);
}
if (!e.defaultPrevented) {
linkClicked(
e,
router,
href,
as,
replace,
shallow,
scroll,
locale
);
}
},
};
childProps.onMouseEnter = function (e) {
if (!(0, _router).isLocalURL(href)) return;
if (
child.props &&
typeof child.props.onMouseEnter === "function"
) {
child.props.onMouseEnter(e);
}
prefetch(router, href, as, {
priority: true,
});
}; // If child is an <a> tag and doesn't have a href attribute, or if the 'passHref' property is
// defined, we specify the current 'href', so that repetition is not needed by the user
if (
props.passHref ||
(child.type === "a" && !("href" in child.props))
) {
var curLocale =
typeof locale !== "undefined"
? locale
: router && router.locale; // we only render domain locales if we are currently on a domain locale
// so that locale links are still visitable in development/preview envs
var localeDomain =
router &&
router.isLocaleDomain &&
(0, _router).getDomainLocale(
as,
curLocale,
router && router.locales,
router && router.domainLocales
);
childProps.href =
localeDomain ||
(0, _router).addBasePath(
(0, _router).addLocale(
as,
curLocale,
router && router.defaultLocale
)
);
}
return /*#__PURE__*/ _react["default"].cloneElement(
child,
childProps
);
}
var _default = Link;
exports.default = _default;
/***/
},
/***/ 4770: /***/ function (
__unused_webpack_module,
exports,
__webpack_require__
) {
"use strict";
var _slicedToArray = __webpack_require__(3408);
Object.defineProperty(exports, "__esModule", {
value: true,
});
exports.useIntersection = useIntersection;
var _react = __webpack_require__(2735);
var _requestIdleCallback = __webpack_require__(6933);
var hasIntersectionObserver =
typeof IntersectionObserver !== "undefined";
function useIntersection(_ref) {
var rootMargin = _ref.rootMargin,
disabled = _ref.disabled;
var isDisabled = disabled || !hasIntersectionObserver;
var unobserve = (0, _react).useRef();
var _useState = (0, _react).useState(false),
_useState2 = _slicedToArray(_useState, 2),
visible = _useState2[0],
setVisible = _useState2[1];
var setRef = (0, _react).useCallback(
function (el) {
if (unobserve.current) {
unobserve.current();
unobserve.current = undefined;
}
if (isDisabled || visible) return;
if (el && el.tagName) {
unobserve.current = observe(
el,
function (isVisible) {
return isVisible && setVisible(isVisible);
},
{
rootMargin: rootMargin,
}
);
}
},
[isDisabled, rootMargin, visible]
);
(0, _react).useEffect(
function () {
if (!hasIntersectionObserver) {
if (!visible) {
var idleCallback = (0,
_requestIdleCallback).requestIdleCallback(
function () {
return setVisible(true);
}
);
return function () {
return (0,
_requestIdleCallback).cancelIdleCallback(
idleCallback
);
};
}
}
},
[visible]
);
return [setRef, visible];
}
function observe(element, callback, options) {
var _createObserver = createObserver(options),
id = _createObserver.id,
observer = _createObserver.observer,
elements = _createObserver.elements;
elements.set(element, callback);
observer.observe(element);
return function unobserve() {
elements["delete"](element);
observer.unobserve(element); // Destroy observer when there's nothing left to watch:
if (elements.size === 0) {
observer.disconnect();
observers["delete"](id);
}
};
}
var observers = new Map();
function createObserver(options) {
var id = options.rootMargin || "";
var instance = observers.get(id);
if (instance) {
return instance;
}
var elements = new Map();
var observer = new IntersectionObserver(function (entries) {
entries.forEach(function (entry) {
var callback = elements.get(entry.target);
var isVisible =
entry.isIntersecting || entry.intersectionRatio > 0;
if (callback && isVisible) {
callback(isVisible);
}
});
}, options);
observers.set(
id,
(instance = {
id: id,
observer: observer,
elements: elements,
})
);
return instance;
}
/***/
},
/***/ 7956: /***/ function (
__unused_webpack_module,
__webpack_exports__,
__webpack_require__
) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ default: function () {
return /* binding */ NoPrefetchPage;
},
/* harmony export */
});
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ =
__webpack_require__(4512);
/* harmony import */ var next_link__WEBPACK_IMPORTED_MODULE_1__ =
__webpack_require__(2865);
function NoPrefetchPage() {
return /*#__PURE__*/ (0,
react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div", {
children: /*#__PURE__*/ (0,
react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(
next_link__WEBPACK_IMPORTED_MODULE_1__.default,
{
href: "/about",
children: /*#__PURE__*/ (0,
react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(
"a",
{
children: "No prefetch",
}
),
}
),
});
}
/***/
},
/***/ 4122: /***/ function (
__unused_webpack_module,
__unused_webpack_exports,
__webpack_require__
) {
(window.__NEXT_P = window.__NEXT_P || []).push([
"/development-logs/link-with-no-prefetch",
function () {
return __webpack_require__(7956);
},
]);
/***/
},
/***/ 2865: /***/ function (
module,
__unused_webpack_exports,
__webpack_require__
) {
module.exports = __webpack_require__(3824);
/***/
},
},
/******/ function (__webpack_require__) {
// webpackRuntimeModules
/******/ var __webpack_exec__ = function (moduleId) {
return __webpack_require__((__webpack_require__.s = moduleId));
};
/******/ __webpack_require__.O(0, [774, 888, 179], function () {
return __webpack_exec__(4122);
});
/******/ var __webpack_exports__ = __webpack_require__.O();
/******/ _N_E = __webpack_exports__;
/******/
},
]);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/fixture/projects/next/.archive-4/pages/development-logs/link-with-no-prefetch-53313deb99cf94686856/output.js | JavaScript | (self.webpackChunk_N_E = self.webpackChunk_N_E || []).push(
[
[891,],
{
3824: function (
__unused_webpack_module, exports, __webpack_require__
) {
"use strict";
var _slicedToArray = __webpack_require__(
3408
);
exports.default = void 0;
var obj,
_react =
(obj = __webpack_require__(
2735
)) && obj.__esModule
? obj
: {
default: obj,
},
_router = __webpack_require__(
1073
),
_router1 = __webpack_require__(
6409
),
_useIntersection = __webpack_require__(
4770
);
var prefetched = {
};
function prefetch(
router, href, as, options
) {
if (router && _router.isLocalURL(
href
)) {
router.prefetch(
href,
as,
options
).catch(
function (
err
) {
0;
}
);
var curLocale =
options && void 0 !== options.locale
? options.locale
: router && router.locale;
prefetched[
href + "%" + as + (curLocale ? "%" + curLocale : "")
] = !0;
}
}
var _default = function (
props
) {
var child,
p = !1 !== props.prefetch,
router = _router1.useRouter(
),
_react$default$useMem = _react.default.useMemo(
function (
) {
var _resolveHref = _router.resolveHref(
router,
props.href,
!0
),
_resolveHref2 = _slicedToArray(
_resolveHref,
2
),
resolvedHref = _resolveHref2[0],
resolvedAs = _resolveHref2[1];
return {
href: resolvedHref,
as: props.as
? _router.resolveHref(
router,
props.as
)
: resolvedAs || resolvedHref,
};
},
[router, props.href, props.as,]
),
href = _react$default$useMem.href,
as = _react$default$useMem.as,
children = props.children,
replace = props.replace,
shallow = props.shallow,
scroll = props.scroll,
locale = props.locale;
"string" == typeof children &&
(children = _react.default.createElement(
"a",
null,
children
));
var childRef =
(child = _react.default.Children.only(
children
)) &&
"object" == typeof child &&
child.ref,
_useIntersection2 = _useIntersection.useIntersection(
{
rootMargin: "200px",
}
),
_useIntersection3 = _slicedToArray(
_useIntersection2,
2
),
setIntersectionRef = _useIntersection3[0],
isVisible = _useIntersection3[1],
setRef = _react.default.useCallback(
function (
el
) {
setIntersectionRef(
el
),
childRef &&
("function" == typeof childRef
? childRef(
el
)
: "object" == typeof childRef &&
(childRef.current = el));
},
[childRef, setIntersectionRef,]
);
_react.default.useEffect(
function (
) {
var shouldPrefetch =
isVisible && p && _router.isLocalURL(
href
),
curLocale =
void 0 !== locale
? locale
: router && router.locale,
isPrefetched =
prefetched[
href +
"%" +
as +
(curLocale ? "%" + curLocale : "")
];
shouldPrefetch &&
!isPrefetched &&
prefetch(
router,
href,
as,
{
locale: curLocale,
}
);
},
[as, href, isVisible, locale, p, router,]
);
var childProps = {
ref: setRef,
onClick: function (
e
) {
child.props &&
"function" == typeof child.props.onClick &&
child.props.onClick(
e
),
e.defaultPrevented ||
(function (
e,
router,
href,
as,
replace,
shallow,
scroll,
locale
) {
var event, target;
("A" === e.currentTarget.nodeName &&
(((target = (event = e).currentTarget
.target) &&
"_self" !== target) ||
event.metaKey ||
event.ctrlKey ||
event.shiftKey ||
event.altKey ||
(event.nativeEvent &&
2 ===
event.nativeEvent.which) ||
!_router.isLocalURL(
href
))) ||
(e.preventDefault(
),
null == scroll &&
as.indexOf(
"#"
) >= 0 &&
(scroll = !1),
router[replace ? "replace" : "push"](
href,
as,
{
shallow: shallow,
locale: locale,
scroll: scroll,
}
));
})(
e,
router,
href,
as,
replace,
shallow,
scroll,
locale
);
},
onMouseEnter: function (
e
) {
_router.isLocalURL(
href
) &&
(child.props &&
"function" == typeof child.props.onMouseEnter &&
child.props.onMouseEnter(
e
),
prefetch(
router,
href,
as,
{
priority: !0,
}
));
},
};
if (
props.passHref ||
("a" === child.type && !("href" in child.props))
) {
var curLocale =
void 0 !== locale
? locale
: router && router.locale,
localeDomain =
router &&
router.isLocaleDomain &&
_router.getDomainLocale(
as,
curLocale,
router && router.locales,
router && router.domainLocales
);
childProps.href =
localeDomain ||
_router.addBasePath(
_router.addLocale(
as,
curLocale,
router && router.defaultLocale
)
);
}
return _react.default.cloneElement(
child,
childProps
);
};
exports.default = _default;
},
4770: function (
__unused_webpack_module, exports, __webpack_require__
) {
"use strict";
var _slicedToArray = __webpack_require__(
3408
);
Object.defineProperty(
exports,
"__esModule",
{
value: !0,
}
),
(exports.useIntersection = function (
_ref
) {
var rootMargin = _ref.rootMargin,
isDisabled = _ref.disabled || !hasIntersectionObserver,
unobserve = _react.useRef(
),
_useState = _react.useState(
!1
),
_useState2 = _slicedToArray(
_useState,
2
),
visible = _useState2[0],
setVisible = _useState2[1],
setRef = _react.useCallback(
function (
el
) {
var element,
callback,
_createObserver,
id,
observer,
elements;
(unobserve.current &&
(unobserve.current(
),
(unobserve.current = void 0)),
isDisabled || visible) ||
(el &&
el.tagName &&
(unobserve.current =
((element = el),
(callback = function (
isVisible
) {
return (
isVisible &&
setVisible(
isVisible
)
);
}),
(_createObserver = (function (
options
) {
var id =
options.rootMargin ||
"",
instance =
observers.get(
id
);
if (instance) return instance;
var elements = new Map(
),
observer =
new IntersectionObserver(
function (
entries
) {
entries.forEach(
function (
entry
) {
var callback =
elements.get(
entry.target
),
isVisible =
entry.isIntersecting ||
entry.intersectionRatio >
0;
callback &&
isVisible &&
callback(
isVisible
);
}
);
},
options
);
return (
observers.set(
id,
(instance = {
id: id,
observer: observer,
elements: elements,
})
),
instance
);
})(
{
rootMargin: rootMargin,
}
)),
(id = _createObserver.id),
(observer =
_createObserver.observer),
(elements =
_createObserver.elements).set(
element,
callback
),
observer.observe(
element
),
function (
) {
elements.delete(
element
),
observer.unobserve(
element
),
0 === elements.size &&
(observer.disconnect(
),
observers.delete(
id
));
})));
},
[isDisabled, rootMargin, visible,]
);
return (
_react.useEffect(
function (
) {
if (!hasIntersectionObserver && !visible) {
var idleCallback =
_requestIdleCallback.requestIdleCallback(
function (
) {
return setVisible(
!0
);
}
);
return function (
) {
return _requestIdleCallback.cancelIdleCallback(
idleCallback
);
};
}
},
[visible,]
),
[setRef, visible,]
);
});
var _react = __webpack_require__(
2735
),
_requestIdleCallback = __webpack_require__(
6933
),
hasIntersectionObserver =
"undefined" != typeof IntersectionObserver;
var observers = new Map(
);
},
7956: function (
__unused_webpack_module,
__webpack_exports__,
__webpack_require__
) {
"use strict";
__webpack_require__.r(
__webpack_exports__
),
__webpack_require__.d(
__webpack_exports__,
{
default: function (
) {
return NoPrefetchPage;
},
}
);
var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ =
__webpack_require__(
4512
),
next_link__WEBPACK_IMPORTED_MODULE_1__ =
__webpack_require__(
2865
);
function NoPrefetchPage(
) {
return (0, react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(
"div",
{
children: (0,
react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(
next_link__WEBPACK_IMPORTED_MODULE_1__.default,
{
href: "/about",
children: (0,
react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(
"a",
{
children: "No prefetch",
}
),
}
),
}
);
}
},
4122: function (
__unused_webpack_module,
__unused_webpack_exports,
__webpack_require__
) {
(window.__NEXT_P = window.__NEXT_P || []).push(
[
"/development-logs/link-with-no-prefetch",
function (
) {
return __webpack_require__(
7956
);
},
]
);
},
2865: function (
module, __unused_webpack_exports, __webpack_require__
) {
module.exports = __webpack_require__(
3824
);
},
},
function (
__webpack_require__
) {
__webpack_require__.O(
0,
[774, 888, 179,],
function (
) {
return (
(moduleId = 4122),
__webpack_require__(
(__webpack_require__.s = moduleId)
)
);
var moduleId;
}
);
var __webpack_exports__ = __webpack_require__.O(
);
_N_E = __webpack_exports__;
},
]
);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/fixture/projects/next/.archive-4/pages/development-logs/link-with-prefetch-false-13db3186d6589f014e19/input.js | JavaScript | (self["webpackChunk_N_E"] = self["webpackChunk_N_E"] || []).push([
[574],
{
/***/ 3824: /***/ function (
__unused_webpack_module,
exports,
__webpack_require__
) {
"use strict";
var __webpack_unused_export__;
var _slicedToArray = __webpack_require__(3408);
__webpack_unused_export__ = {
value: true,
};
exports.default = void 0;
var _react = _interopRequireDefault(__webpack_require__(2735));
var _router = __webpack_require__(1073);
var _router1 = __webpack_require__(6409);
var _useIntersection = __webpack_require__(4770);
function _interopRequireDefault(obj) {
return obj && obj.__esModule
? obj
: {
default: obj,
};
}
var prefetched = {};
function prefetch(router, href, as, options) {
if (false || !router) return;
if (!(0, _router).isLocalURL(href)) return; // Prefetch the JSON page if asked (only in the client)
// We need to handle a prefetch error here since we may be
// loading with priority which can reject but we don't
// want to force navigation since this is only a prefetch
router.prefetch(href, as, options)["catch"](function (err) {
if (false) {
}
});
var curLocale =
options && typeof options.locale !== "undefined"
? options.locale
: router && router.locale; // Join on an invalid URI character
prefetched[
href + "%" + as + (curLocale ? "%" + curLocale : "")
] = true;
}
function isModifiedEvent(event) {
var target = event.currentTarget.target;
return (
(target && target !== "_self") ||
event.metaKey ||
event.ctrlKey ||
event.shiftKey ||
event.altKey ||
(event.nativeEvent && event.nativeEvent.which === 2)
);
}
function linkClicked(
e,
router,
href,
as,
replace,
shallow,
scroll,
locale
) {
var nodeName = e.currentTarget.nodeName;
if (
nodeName === "A" &&
(isModifiedEvent(e) || !(0, _router).isLocalURL(href))
) {
// ignore click for browser’s default behavior
return;
}
e.preventDefault(); // avoid scroll for urls with anchor refs
if (scroll == null && as.indexOf("#") >= 0) {
scroll = false;
} // replace state instead of push if prop is present
router[replace ? "replace" : "push"](href, as, {
shallow: shallow,
locale: locale,
scroll: scroll,
});
}
function Link(props) {
if (false) {
var hasWarned,
optionalProps,
optionalPropsGuard,
requiredProps,
requiredPropsGuard,
createPropError;
}
var p = props.prefetch !== false;
var router = (0, _router1).useRouter();
var _react$default$useMem = _react["default"].useMemo(
function () {
var _resolveHref = (0, _router).resolveHref(
router,
props.href,
true
),
_resolveHref2 = _slicedToArray(_resolveHref, 2),
resolvedHref = _resolveHref2[0],
resolvedAs = _resolveHref2[1];
return {
href: resolvedHref,
as: props.as
? (0, _router).resolveHref(router, props.as)
: resolvedAs || resolvedHref,
};
},
[router, props.href, props.as]
),
href = _react$default$useMem.href,
as = _react$default$useMem.as;
var children = props.children,
replace = props.replace,
shallow = props.shallow,
scroll = props.scroll,
locale = props.locale; // Deprecated. Warning shown by propType check. If the children provided is a string (<Link>example</Link>) we wrap it in an <a> tag
if (typeof children === "string") {
children = /*#__PURE__*/ _react["default"].createElement(
"a",
null,
children
);
} // This will return the first child, if multiple are provided it will throw an error
var child;
if (false) {
} else {
child = _react["default"].Children.only(children);
}
var childRef = child && typeof child === "object" && child.ref;
var _useIntersection2 = (0, _useIntersection).useIntersection({
rootMargin: "200px",
}),
_useIntersection3 = _slicedToArray(_useIntersection2, 2),
setIntersectionRef = _useIntersection3[0],
isVisible = _useIntersection3[1];
var setRef = _react["default"].useCallback(
function (el) {
setIntersectionRef(el);
if (childRef) {
if (typeof childRef === "function") childRef(el);
else if (typeof childRef === "object") {
childRef.current = el;
}
}
},
[childRef, setIntersectionRef]
);
_react["default"].useEffect(
function () {
var shouldPrefetch =
isVisible && p && (0, _router).isLocalURL(href);
var curLocale =
typeof locale !== "undefined"
? locale
: router && router.locale;
var isPrefetched =
prefetched[
href +
"%" +
as +
(curLocale ? "%" + curLocale : "")
];
if (shouldPrefetch && !isPrefetched) {
prefetch(router, href, as, {
locale: curLocale,
});
}
},
[as, href, isVisible, locale, p, router]
);
var childProps = {
ref: setRef,
onClick: function onClick(e) {
if (
child.props &&
typeof child.props.onClick === "function"
) {
child.props.onClick(e);
}
if (!e.defaultPrevented) {
linkClicked(
e,
router,
href,
as,
replace,
shallow,
scroll,
locale
);
}
},
};
childProps.onMouseEnter = function (e) {
if (!(0, _router).isLocalURL(href)) return;
if (
child.props &&
typeof child.props.onMouseEnter === "function"
) {
child.props.onMouseEnter(e);
}
prefetch(router, href, as, {
priority: true,
});
}; // If child is an <a> tag and doesn't have a href attribute, or if the 'passHref' property is
// defined, we specify the current 'href', so that repetition is not needed by the user
if (
props.passHref ||
(child.type === "a" && !("href" in child.props))
) {
var curLocale =
typeof locale !== "undefined"
? locale
: router && router.locale; // we only render domain locales if we are currently on a domain locale
// so that locale links are still visitable in development/preview envs
var localeDomain =
router &&
router.isLocaleDomain &&
(0, _router).getDomainLocale(
as,
curLocale,
router && router.locales,
router && router.domainLocales
);
childProps.href =
localeDomain ||
(0, _router).addBasePath(
(0, _router).addLocale(
as,
curLocale,
router && router.defaultLocale
)
);
}
return /*#__PURE__*/ _react["default"].cloneElement(
child,
childProps
);
}
var _default = Link;
exports.default = _default;
/***/
},
/***/ 4770: /***/ function (
__unused_webpack_module,
exports,
__webpack_require__
) {
"use strict";
var _slicedToArray = __webpack_require__(3408);
Object.defineProperty(exports, "__esModule", {
value: true,
});
exports.useIntersection = useIntersection;
var _react = __webpack_require__(2735);
var _requestIdleCallback = __webpack_require__(6933);
var hasIntersectionObserver =
typeof IntersectionObserver !== "undefined";
function useIntersection(_ref) {
var rootMargin = _ref.rootMargin,
disabled = _ref.disabled;
var isDisabled = disabled || !hasIntersectionObserver;
var unobserve = (0, _react).useRef();
var _useState = (0, _react).useState(false),
_useState2 = _slicedToArray(_useState, 2),
visible = _useState2[0],
setVisible = _useState2[1];
var setRef = (0, _react).useCallback(
function (el) {
if (unobserve.current) {
unobserve.current();
unobserve.current = undefined;
}
if (isDisabled || visible) return;
if (el && el.tagName) {
unobserve.current = observe(
el,
function (isVisible) {
return isVisible && setVisible(isVisible);
},
{
rootMargin: rootMargin,
}
);
}
},
[isDisabled, rootMargin, visible]
);
(0, _react).useEffect(
function () {
if (!hasIntersectionObserver) {
if (!visible) {
var idleCallback = (0,
_requestIdleCallback).requestIdleCallback(
function () {
return setVisible(true);
}
);
return function () {
return (0,
_requestIdleCallback).cancelIdleCallback(
idleCallback
);
};
}
}
},
[visible]
);
return [setRef, visible];
}
function observe(element, callback, options) {
var _createObserver = createObserver(options),
id = _createObserver.id,
observer = _createObserver.observer,
elements = _createObserver.elements;
elements.set(element, callback);
observer.observe(element);
return function unobserve() {
elements["delete"](element);
observer.unobserve(element); // Destroy observer when there's nothing left to watch:
if (elements.size === 0) {
observer.disconnect();
observers["delete"](id);
}
};
}
var observers = new Map();
function createObserver(options) {
var id = options.rootMargin || "";
var instance = observers.get(id);
if (instance) {
return instance;
}
var elements = new Map();
var observer = new IntersectionObserver(function (entries) {
entries.forEach(function (entry) {
var callback = elements.get(entry.target);
var isVisible =
entry.isIntersecting || entry.intersectionRatio > 0;
if (callback && isVisible) {
callback(isVisible);
}
});
}, options);
observers.set(
id,
(instance = {
id: id,
observer: observer,
elements: elements,
})
);
return instance;
}
/***/
},
/***/ 4592: /***/ function (
__unused_webpack_module,
__webpack_exports__,
__webpack_require__
) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ default: function () {
return /* binding */ PrefetchFalsePage;
},
/* harmony export */
});
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ =
__webpack_require__(4512);
/* harmony import */ var next_link__WEBPACK_IMPORTED_MODULE_1__ =
__webpack_require__(2865);
function PrefetchFalsePage() {
return /*#__PURE__*/ (0,
react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div", {
children: /*#__PURE__*/ (0,
react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(
next_link__WEBPACK_IMPORTED_MODULE_1__.default,
{
href: "/about",
prefetch: false,
children: /*#__PURE__*/ (0,
react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(
"a",
{
children: "Prefetch set to false",
}
),
}
),
});
}
/***/
},
/***/ 819: /***/ function (
__unused_webpack_module,
__unused_webpack_exports,
__webpack_require__
) {
(window.__NEXT_P = window.__NEXT_P || []).push([
"/development-logs/link-with-prefetch-false",
function () {
return __webpack_require__(4592);
},
]);
/***/
},
/***/ 2865: /***/ function (
module,
__unused_webpack_exports,
__webpack_require__
) {
module.exports = __webpack_require__(3824);
/***/
},
},
/******/ function (__webpack_require__) {
// webpackRuntimeModules
/******/ var __webpack_exec__ = function (moduleId) {
return __webpack_require__((__webpack_require__.s = moduleId));
};
/******/ __webpack_require__.O(0, [774, 888, 179], function () {
return __webpack_exec__(819);
});
/******/ var __webpack_exports__ = __webpack_require__.O();
/******/ _N_E = __webpack_exports__;
/******/
},
]);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/fixture/projects/next/.archive-4/pages/development-logs/link-with-prefetch-false-13db3186d6589f014e19/output.js | JavaScript | (self.webpackChunk_N_E = self.webpackChunk_N_E || []).push(
[
[574,],
{
3824: function (
__unused_webpack_module, exports, __webpack_require__
) {
"use strict";
var _slicedToArray = __webpack_require__(
3408
);
exports.default = void 0;
var obj,
_react =
(obj = __webpack_require__(
2735
)) && obj.__esModule
? obj
: {
default: obj,
},
_router = __webpack_require__(
1073
),
_router1 = __webpack_require__(
6409
),
_useIntersection = __webpack_require__(
4770
);
var prefetched = {
};
function prefetch(
router, href, as, options
) {
if (router && _router.isLocalURL(
href
)) {
router.prefetch(
href,
as,
options
).catch(
function (
err
) {
0;
}
);
var curLocale =
options && void 0 !== options.locale
? options.locale
: router && router.locale;
prefetched[
href + "%" + as + (curLocale ? "%" + curLocale : "")
] = !0;
}
}
var _default = function (
props
) {
var child,
p = !1 !== props.prefetch,
router = _router1.useRouter(
),
_react$default$useMem = _react.default.useMemo(
function (
) {
var _resolveHref = _router.resolveHref(
router,
props.href,
!0
),
_resolveHref2 = _slicedToArray(
_resolveHref,
2
),
resolvedHref = _resolveHref2[0],
resolvedAs = _resolveHref2[1];
return {
href: resolvedHref,
as: props.as
? _router.resolveHref(
router,
props.as
)
: resolvedAs || resolvedHref,
};
},
[router, props.href, props.as,]
),
href = _react$default$useMem.href,
as = _react$default$useMem.as,
children = props.children,
replace = props.replace,
shallow = props.shallow,
scroll = props.scroll,
locale = props.locale;
"string" == typeof children &&
(children = _react.default.createElement(
"a",
null,
children
));
var childRef =
(child = _react.default.Children.only(
children
)) &&
"object" == typeof child &&
child.ref,
_useIntersection2 = _useIntersection.useIntersection(
{
rootMargin: "200px",
}
),
_useIntersection3 = _slicedToArray(
_useIntersection2,
2
),
setIntersectionRef = _useIntersection3[0],
isVisible = _useIntersection3[1],
setRef = _react.default.useCallback(
function (
el
) {
setIntersectionRef(
el
),
childRef &&
("function" == typeof childRef
? childRef(
el
)
: "object" == typeof childRef &&
(childRef.current = el));
},
[childRef, setIntersectionRef,]
);
_react.default.useEffect(
function (
) {
var shouldPrefetch =
isVisible && p && _router.isLocalURL(
href
),
curLocale =
void 0 !== locale
? locale
: router && router.locale,
isPrefetched =
prefetched[
href +
"%" +
as +
(curLocale ? "%" + curLocale : "")
];
shouldPrefetch &&
!isPrefetched &&
prefetch(
router,
href,
as,
{
locale: curLocale,
}
);
},
[as, href, isVisible, locale, p, router,]
);
var childProps = {
ref: setRef,
onClick: function (
e
) {
child.props &&
"function" == typeof child.props.onClick &&
child.props.onClick(
e
),
e.defaultPrevented ||
(function (
e,
router,
href,
as,
replace,
shallow,
scroll,
locale
) {
var event, target;
("A" === e.currentTarget.nodeName &&
(((target = (event = e).currentTarget
.target) &&
"_self" !== target) ||
event.metaKey ||
event.ctrlKey ||
event.shiftKey ||
event.altKey ||
(event.nativeEvent &&
2 ===
event.nativeEvent.which) ||
!_router.isLocalURL(
href
))) ||
(e.preventDefault(
),
null == scroll &&
as.indexOf(
"#"
) >= 0 &&
(scroll = !1),
router[replace ? "replace" : "push"](
href,
as,
{
shallow: shallow,
locale: locale,
scroll: scroll,
}
));
})(
e,
router,
href,
as,
replace,
shallow,
scroll,
locale
);
},
onMouseEnter: function (
e
) {
_router.isLocalURL(
href
) &&
(child.props &&
"function" == typeof child.props.onMouseEnter &&
child.props.onMouseEnter(
e
),
prefetch(
router,
href,
as,
{
priority: !0,
}
));
},
};
if (
props.passHref ||
("a" === child.type && !("href" in child.props))
) {
var curLocale =
void 0 !== locale
? locale
: router && router.locale,
localeDomain =
router &&
router.isLocaleDomain &&
_router.getDomainLocale(
as,
curLocale,
router && router.locales,
router && router.domainLocales
);
childProps.href =
localeDomain ||
_router.addBasePath(
_router.addLocale(
as,
curLocale,
router && router.defaultLocale
)
);
}
return _react.default.cloneElement(
child,
childProps
);
};
exports.default = _default;
},
4770: function (
__unused_webpack_module, exports, __webpack_require__
) {
"use strict";
var _slicedToArray = __webpack_require__(
3408
);
Object.defineProperty(
exports,
"__esModule",
{
value: !0,
}
),
(exports.useIntersection = function (
_ref
) {
var rootMargin = _ref.rootMargin,
isDisabled = _ref.disabled || !hasIntersectionObserver,
unobserve = _react.useRef(
),
_useState = _react.useState(
!1
),
_useState2 = _slicedToArray(
_useState,
2
),
visible = _useState2[0],
setVisible = _useState2[1],
setRef = _react.useCallback(
function (
el
) {
var element,
callback,
_createObserver,
id,
observer,
elements;
(unobserve.current &&
(unobserve.current(
),
(unobserve.current = void 0)),
isDisabled || visible) ||
(el &&
el.tagName &&
(unobserve.current =
((element = el),
(callback = function (
isVisible
) {
return (
isVisible &&
setVisible(
isVisible
)
);
}),
(_createObserver = (function (
options
) {
var id =
options.rootMargin ||
"",
instance =
observers.get(
id
);
if (instance) return instance;
var elements = new Map(
),
observer =
new IntersectionObserver(
function (
entries
) {
entries.forEach(
function (
entry
) {
var callback =
elements.get(
entry.target
),
isVisible =
entry.isIntersecting ||
entry.intersectionRatio >
0;
callback &&
isVisible &&
callback(
isVisible
);
}
);
},
options
);
return (
observers.set(
id,
(instance = {
id: id,
observer: observer,
elements: elements,
})
),
instance
);
})(
{
rootMargin: rootMargin,
}
)),
(id = _createObserver.id),
(observer =
_createObserver.observer),
(elements =
_createObserver.elements).set(
element,
callback
),
observer.observe(
element
),
function (
) {
elements.delete(
element
),
observer.unobserve(
element
),
0 === elements.size &&
(observer.disconnect(
),
observers.delete(
id
));
})));
},
[isDisabled, rootMargin, visible,]
);
return (
_react.useEffect(
function (
) {
if (!hasIntersectionObserver && !visible) {
var idleCallback =
_requestIdleCallback.requestIdleCallback(
function (
) {
return setVisible(
!0
);
}
);
return function (
) {
return _requestIdleCallback.cancelIdleCallback(
idleCallback
);
};
}
},
[visible,]
),
[setRef, visible,]
);
});
var _react = __webpack_require__(
2735
),
_requestIdleCallback = __webpack_require__(
6933
),
hasIntersectionObserver =
"undefined" != typeof IntersectionObserver;
var observers = new Map(
);
},
4592: function (
__unused_webpack_module,
__webpack_exports__,
__webpack_require__
) {
"use strict";
__webpack_require__.r(
__webpack_exports__
),
__webpack_require__.d(
__webpack_exports__,
{
default: function (
) {
return PrefetchFalsePage;
},
}
);
var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ =
__webpack_require__(
4512
),
next_link__WEBPACK_IMPORTED_MODULE_1__ =
__webpack_require__(
2865
);
function PrefetchFalsePage(
) {
return (0, react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(
"div",
{
children: (0,
react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(
next_link__WEBPACK_IMPORTED_MODULE_1__.default,
{
href: "/about",
prefetch: !1,
children: (0,
react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(
"a",
{
children: "Prefetch set to false",
}
),
}
),
}
);
}
},
819: function (
__unused_webpack_module,
__unused_webpack_exports,
__webpack_require__
) {
(window.__NEXT_P = window.__NEXT_P || []).push(
[
"/development-logs/link-with-prefetch-false",
function (
) {
return __webpack_require__(
4592
);
},
]
);
},
2865: function (
module, __unused_webpack_exports, __webpack_require__
) {
module.exports = __webpack_require__(
3824
);
},
},
function (
__webpack_require__
) {
__webpack_require__.O(
0,
[774, 888, 179,],
function (
) {
return (
(moduleId = 819),
__webpack_require__(
(__webpack_require__.s = moduleId)
)
);
var moduleId;
}
);
var __webpack_exports__ = __webpack_require__.O(
);
_N_E = __webpack_exports__;
},
]
);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/fixture/projects/next/.archive-4/polyfills-6437a4964f697e5b0b3e/input.js | JavaScript | (self["webpackChunk_N_E"] = self["webpackChunk_N_E"] || []).push([
[429],
{
/***/ 4069: /***/ function (
__unused_webpack_module,
__unused_webpack_exports,
__webpack_require__
) {
"use strict";
__webpack_require__(7788);
/***/
},
/***/ 7788: /***/ function (
__unused_webpack_module,
__unused_webpack_exports,
__webpack_require__
) {
!(function () {
var t =
"undefined" != typeof globalThis
? globalThis
: "undefined" != typeof window
? window
: "undefined" != typeof __webpack_require__.g
? __webpack_require__.g
: "undefined" != typeof self
? self
: {};
function e(t) {
var e = {
exports: {},
};
return t(e, e.exports), e.exports;
}
var r = function (t) {
return t && t.Math == Math && t;
},
n =
r("object" == typeof globalThis && globalThis) ||
r("object" == typeof window && window) ||
r("object" == typeof self && self) ||
r("object" == typeof t && t) ||
Function("return this")(),
o = function (t) {
try {
return !!t();
} catch (t) {
return !0;
}
},
i = !o(function () {
return (
7 !=
Object.defineProperty({}, 1, {
get: function () {
return 7;
},
})[1]
);
}),
a = {}.propertyIsEnumerable,
u = Object.getOwnPropertyDescriptor,
s = {
f:
u &&
!a.call(
{
1: 2,
},
1
)
? function (t) {
var e = u(this, t);
return !!e && e.enumerable;
}
: a,
},
c = function (t, e) {
return {
enumerable: !(1 & t),
configurable: !(2 & t),
writable: !(4 & t),
value: e,
};
},
f = {}.toString,
l = function (t) {
return f.call(t).slice(8, -1);
},
h = "".split,
p = o(function () {
return !Object("z").propertyIsEnumerable(0);
})
? function (t) {
return "String" == l(t)
? h.call(t, "")
: Object(t);
}
: Object,
d = function (t) {
if (null == t)
throw TypeError("Can't call method on " + t);
return t;
},
v = function (t) {
return p(d(t));
},
g = function (t) {
return "object" == typeof t
? null !== t
: "function" == typeof t;
},
y = function (t, e) {
if (!g(t)) return t;
var r, n;
if (
e &&
"function" == typeof (r = t.toString) &&
!g((n = r.call(t)))
)
return n;
if (
"function" == typeof (r = t.valueOf) &&
!g((n = r.call(t)))
)
return n;
if (
!e &&
"function" == typeof (r = t.toString) &&
!g((n = r.call(t)))
)
return n;
throw TypeError(
"Can't convert object to primitive value"
);
},
m = {}.hasOwnProperty,
b = function (t, e) {
return m.call(t, e);
},
w = n.document,
S = g(w) && g(w.createElement),
E = function (t) {
return S ? w.createElement(t) : {};
},
x =
!i &&
!o(function () {
return (
7 !=
Object.defineProperty(E("div"), "a", {
get: function () {
return 7;
},
}).a
);
}),
A = Object.getOwnPropertyDescriptor,
O = {
f: i
? A
: function (t, e) {
if (((t = v(t)), (e = y(e, !0)), x))
try {
return A(t, e);
} catch (t) {}
if (b(t, e)) return c(!s.f.call(t, e), t[e]);
},
},
R = function (t) {
if (!g(t))
throw TypeError(String(t) + " is not an object");
return t;
},
j = Object.defineProperty,
P = {
f: i
? j
: function (t, e, r) {
if ((R(t), (e = y(e, !0)), R(r), x))
try {
return j(t, e, r);
} catch (t) {}
if ("get" in r || "set" in r)
throw TypeError(
"Accessors not supported"
);
return "value" in r && (t[e] = r.value), t;
},
},
I = i
? function (t, e, r) {
return P.f(t, e, c(1, r));
}
: function (t, e, r) {
return (t[e] = r), t;
},
T = function (t, e) {
try {
I(n, t, e);
} catch (r) {
n[t] = e;
}
return e;
},
k = "__core-js_shared__",
L = n[k] || T(k, {}),
U = Function.toString;
"function" != typeof L.inspectSource &&
(L.inspectSource = function (t) {
return U.call(t);
});
var M,
_,
N,
C = L.inspectSource,
F = n.WeakMap,
B = "function" == typeof F && /native code/.test(C(F)),
D = !1,
q = e(function (t) {
(t.exports = function (t, e) {
return L[t] || (L[t] = void 0 !== e ? e : {});
})("versions", []).push({
version: "3.6.5",
mode: "global",
copyright: "© 2020 Denis Pushkarev (zloirock.ru)",
});
}),
z = 0,
W = Math.random(),
K = function (t) {
return (
"Symbol(" +
String(void 0 === t ? "" : t) +
")_" +
(++z + W).toString(36)
);
},
G = q("keys"),
$ = function (t) {
return G[t] || (G[t] = K(t));
},
V = {};
if (B) {
var H = new (0, n.WeakMap)(),
X = H.get,
Y = H.has,
J = H.set;
(M = function (t, e) {
return J.call(H, t, e), e;
}),
(_ = function (t) {
return X.call(H, t) || {};
}),
(N = function (t) {
return Y.call(H, t);
});
} else {
var Q = $("state");
(V[Q] = !0),
(M = function (t, e) {
return I(t, Q, e), e;
}),
(_ = function (t) {
return b(t, Q) ? t[Q] : {};
}),
(N = function (t) {
return b(t, Q);
});
}
var Z,
tt = {
set: M,
get: _,
has: N,
enforce: function (t) {
return N(t) ? _(t) : M(t, {});
},
getterFor: function (t) {
return function (e) {
var r;
if (!g(e) || (r = _(e)).type !== t)
throw TypeError(
"Incompatible receiver, " +
t +
" required"
);
return r;
};
},
},
et = e(function (t) {
var e = tt.get,
r = tt.enforce,
o = String(String).split("String");
(t.exports = function (t, e, i, a) {
var u = !!a && !!a.unsafe,
s = !!a && !!a.enumerable,
c = !!a && !!a.noTargetGet;
"function" == typeof i &&
("string" != typeof e ||
b(i, "name") ||
I(i, "name", e),
(r(i).source = o.join(
"string" == typeof e ? e : ""
))),
t !== n
? (u ? !c && t[e] && (s = !0) : delete t[e],
s ? (t[e] = i) : I(t, e, i))
: s
? (t[e] = i)
: T(e, i);
})(Function.prototype, "toString", function () {
return (
("function" == typeof this && e(this).source) ||
C(this)
);
});
}),
rt = n,
nt = function (t) {
return "function" == typeof t ? t : void 0;
},
ot = function (t, e) {
return arguments.length < 2
? nt(rt[t]) || nt(n[t])
: (rt[t] && rt[t][e]) || (n[t] && n[t][e]);
},
it = Math.ceil,
at = Math.floor,
ut = function (t) {
return isNaN((t = +t)) ? 0 : (t > 0 ? at : it)(t);
},
st = Math.min,
ct = function (t) {
return t > 0 ? st(ut(t), 9007199254740991) : 0;
},
ft = Math.max,
lt = Math.min,
ht = function (t, e) {
var r = ut(t);
return r < 0 ? ft(r + e, 0) : lt(r, e);
},
pt = function (t) {
return function (e, r, n) {
var o,
i = v(e),
a = ct(i.length),
u = ht(n, a);
if (t && r != r) {
for (; a > u; )
if ((o = i[u++]) != o) return !0;
} else
for (; a > u; u++)
if ((t || u in i) && i[u] === r)
return t || u || 0;
return !t && -1;
};
},
dt = {
includes: pt(!0),
indexOf: pt(!1),
},
vt = dt.indexOf,
gt = function (t, e) {
var r,
n = v(t),
o = 0,
i = [];
for (r in n) !b(V, r) && b(n, r) && i.push(r);
for (; e.length > o; )
b(n, (r = e[o++])) && (~vt(i, r) || i.push(r));
return i;
},
yt = [
"constructor",
"hasOwnProperty",
"isPrototypeOf",
"propertyIsEnumerable",
"toLocaleString",
"toString",
"valueOf",
],
mt = yt.concat("length", "prototype"),
bt = {
f:
Object.getOwnPropertyNames ||
function (t) {
return gt(t, mt);
},
},
wt = {
f: Object.getOwnPropertySymbols,
},
St =
ot("Reflect", "ownKeys") ||
function (t) {
var e = bt.f(R(t)),
r = wt.f;
return r ? e.concat(r(t)) : e;
},
Et = function (t, e) {
for (
var r = St(e), n = P.f, o = O.f, i = 0;
i < r.length;
i++
) {
var a = r[i];
b(t, a) || n(t, a, o(e, a));
}
},
xt = /#|\.prototype\./,
At = function (t, e) {
var r = Rt[Ot(t)];
return (
r == Pt ||
(r != jt && ("function" == typeof e ? o(e) : !!e))
);
},
Ot = (At.normalize = function (t) {
return String(t).replace(xt, ".").toLowerCase();
}),
Rt = (At.data = {}),
jt = (At.NATIVE = "N"),
Pt = (At.POLYFILL = "P"),
It = At,
Tt = O.f,
kt = function (t, e) {
var r,
o,
i,
a,
u,
s = t.target,
c = t.global,
f = t.stat;
if (
(r = c
? n
: f
? n[s] || T(s, {})
: (n[s] || {}).prototype)
)
for (o in e) {
if (
((a = e[o]),
(i = t.noTargetGet
? (u = Tt(r, o)) && u.value
: r[o]),
!It(
c ? o : s + (f ? "." : "#") + o,
t.forced
) && void 0 !== i)
) {
if (typeof a == typeof i) continue;
Et(a, i);
}
(t.sham || (i && i.sham)) && I(a, "sham", !0),
et(r, o, a, t);
}
},
Lt = function (t) {
return Object(d(t));
},
Ut = Math.min,
Mt =
[].copyWithin ||
function (t, e) {
var r = Lt(this),
n = ct(r.length),
o = ht(t, n),
i = ht(e, n),
a =
arguments.length > 2
? arguments[2]
: void 0,
u = Ut(
(void 0 === a ? n : ht(a, n)) - i,
n - o
),
s = 1;
for (
i < o &&
o < i + u &&
((s = -1), (i += u - 1), (o += u - 1));
u-- > 0;
)
i in r ? (r[o] = r[i]) : delete r[o],
(o += s),
(i += s);
return r;
},
_t =
!!Object.getOwnPropertySymbols &&
!o(function () {
return !String(Symbol());
}),
Nt =
_t &&
!Symbol.sham &&
"symbol" == typeof Symbol.iterator,
Ct = q("wks"),
Ft = n.Symbol,
Bt = Nt ? Ft : (Ft && Ft.withoutSetter) || K,
Dt = function (t) {
return (
b(Ct, t) ||
(Ct[t] =
_t && b(Ft, t) ? Ft[t] : Bt("Symbol." + t)),
Ct[t]
);
},
qt =
Object.keys ||
function (t) {
return gt(t, yt);
},
zt = i
? Object.defineProperties
: function (t, e) {
R(t);
for (
var r, n = qt(e), o = n.length, i = 0;
o > i;
)
P.f(t, (r = n[i++]), e[r]);
return t;
},
Wt = ot("document", "documentElement"),
Kt = $("IE_PROTO"),
Gt = function () {},
$t = function (t) {
return "<script>" + t + "</script>";
},
Vt = function () {
try {
Z =
document.domain &&
new ActiveXObject("htmlfile");
} catch (t) {}
var t, e;
Vt = Z
? (function (t) {
t.write($t("")), t.close();
var e = t.parentWindow.Object;
return (t = null), e;
})(Z)
: (((e = E("iframe")).style.display = "none"),
Wt.appendChild(e),
(e.src = String("javascript:")),
(t = e.contentWindow.document).open(),
t.write($t("document.F=Object")),
t.close(),
t.F);
for (var r = yt.length; r--; )
delete Vt.prototype[yt[r]];
return Vt();
};
V[Kt] = !0;
var Ht =
Object.create ||
function (t, e) {
var r;
return (
null !== t
? ((Gt.prototype = R(t)),
(r = new Gt()),
(Gt.prototype = null),
(r[Kt] = t))
: (r = Vt()),
void 0 === e ? r : zt(r, e)
);
},
Xt = Dt("unscopables"),
Yt = Array.prototype;
null == Yt[Xt] &&
P.f(Yt, Xt, {
configurable: !0,
value: Ht(null),
});
var Jt = function (t) {
Yt[Xt][t] = !0;
};
kt(
{
target: "Array",
proto: !0,
},
{
copyWithin: Mt,
}
),
Jt("copyWithin");
var Qt = function (t) {
if ("function" != typeof t)
throw TypeError(String(t) + " is not a function");
return t;
},
Zt = function (t, e, r) {
if ((Qt(t), void 0 === e)) return t;
switch (r) {
case 0:
return function () {
return t.call(e);
};
case 1:
return function (r) {
return t.call(e, r);
};
case 2:
return function (r, n) {
return t.call(e, r, n);
};
case 3:
return function (r, n, o) {
return t.call(e, r, n, o);
};
}
return function () {
return t.apply(e, arguments);
};
},
te = Function.call,
ee = function (t, e, r) {
return Zt(te, n[t].prototype[e], r);
};
ee("Array", "copyWithin"),
kt(
{
target: "Array",
proto: !0,
},
{
fill: function (t) {
for (
var e = Lt(this),
r = ct(e.length),
n = arguments.length,
o = ht(
n > 1 ? arguments[1] : void 0,
r
),
i = n > 2 ? arguments[2] : void 0,
a = void 0 === i ? r : ht(i, r);
a > o;
)
e[o++] = t;
return e;
},
}
),
Jt("fill"),
ee("Array", "fill");
var re =
Array.isArray ||
function (t) {
return "Array" == l(t);
},
ne = Dt("species"),
oe = function (t, e) {
var r;
return (
re(t) &&
("function" != typeof (r = t.constructor) ||
(r !== Array && !re(r.prototype))
? g(r) &&
null === (r = r[ne]) &&
(r = void 0)
: (r = void 0)),
new (void 0 === r ? Array : r)(0 === e ? 0 : e)
);
},
ie = [].push,
ae = function (t) {
var e = 1 == t,
r = 2 == t,
n = 3 == t,
o = 4 == t,
i = 6 == t,
a = 5 == t || i;
return function (u, s, c, f) {
for (
var l,
h,
d = Lt(u),
v = p(d),
g = Zt(s, c, 3),
y = ct(v.length),
m = 0,
b = f || oe,
w = e ? b(u, y) : r ? b(u, 0) : void 0;
y > m;
m++
)
if (
(a || m in v) &&
((h = g((l = v[m]), m, d)), t)
)
if (e) w[m] = h;
else if (h)
switch (t) {
case 3:
return !0;
case 5:
return l;
case 6:
return m;
case 2:
ie.call(w, l);
}
else if (o) return !1;
return i ? -1 : n || o ? o : w;
};
},
ue = {
forEach: ae(0),
map: ae(1),
filter: ae(2),
some: ae(3),
every: ae(4),
find: ae(5),
findIndex: ae(6),
},
se = Object.defineProperty,
ce = {},
fe = function (t) {
throw t;
},
le = function (t, e) {
if (b(ce, t)) return ce[t];
e || (e = {});
var r = [][t],
n = !!b(e, "ACCESSORS") && e.ACCESSORS,
a = b(e, 0) ? e[0] : fe,
u = b(e, 1) ? e[1] : void 0;
return (ce[t] =
!!r &&
!o(function () {
if (n && !i) return !0;
var t = {
length: -1,
};
n
? se(t, 1, {
enumerable: !0,
get: fe,
})
: (t[1] = 1),
r.call(t, a, u);
}));
},
he = ue.find,
pe = "find",
de = !0,
ve = le(pe);
pe in [] &&
Array(1).find(function () {
de = !1;
}),
kt(
{
target: "Array",
proto: !0,
forced: de || !ve,
},
{
find: function (t) {
return he(
this,
t,
arguments.length > 1 ? arguments[1] : void 0
);
},
}
),
Jt(pe),
ee("Array", "find");
var ge = ue.findIndex,
ye = "findIndex",
me = !0,
be = le(ye);
ye in [] &&
Array(1).findIndex(function () {
me = !1;
}),
kt(
{
target: "Array",
proto: !0,
forced: me || !be,
},
{
findIndex: function (t) {
return ge(
this,
t,
arguments.length > 1 ? arguments[1] : void 0
);
},
}
),
Jt(ye),
ee("Array", "findIndex");
var we = function t(e, r, n, o, i, a, u, s) {
for (var c, f = i, l = 0, h = !!u && Zt(u, s, 3); l < o; ) {
if (l in n) {
if (
((c = h ? h(n[l], l, r) : n[l]), a > 0 && re(c))
)
f = t(e, r, c, ct(c.length), f, a - 1) - 1;
else {
if (f >= 9007199254740991)
throw TypeError(
"Exceed the acceptable array length"
);
e[f] = c;
}
f++;
}
l++;
}
return f;
};
kt(
{
target: "Array",
proto: !0,
},
{
flatMap: function (t) {
var e,
r = Lt(this),
n = ct(r.length);
return (
Qt(t),
((e = oe(r, 0)).length = we(
e,
r,
r,
n,
0,
1,
t,
arguments.length > 1 ? arguments[1] : void 0
)),
e
);
},
}
),
Jt("flatMap"),
ee("Array", "flatMap"),
kt(
{
target: "Array",
proto: !0,
},
{
flat: function () {
var t = arguments.length
? arguments[0]
: void 0,
e = Lt(this),
r = ct(e.length),
n = oe(e, 0);
return (
(n.length = we(
n,
e,
e,
r,
0,
void 0 === t ? 1 : ut(t)
)),
n
);
},
}
),
Jt("flat"),
ee("Array", "flat");
var Se,
Ee,
xe,
Ae = function (t) {
return function (e, r) {
var n,
o,
i = String(d(e)),
a = ut(r),
u = i.length;
return a < 0 || a >= u
? t
? ""
: void 0
: (n = i.charCodeAt(a)) < 55296 ||
n > 56319 ||
a + 1 === u ||
(o = i.charCodeAt(a + 1)) < 56320 ||
o > 57343
? t
? i.charAt(a)
: n
: t
? i.slice(a, a + 2)
: o - 56320 + ((n - 55296) << 10) + 65536;
};
},
Oe = {
codeAt: Ae(!1),
charAt: Ae(!0),
},
Re = !o(function () {
function t() {}
return (
(t.prototype.constructor = null),
Object.getPrototypeOf(new t()) !== t.prototype
);
}),
je = $("IE_PROTO"),
Pe = Object.prototype,
Ie = Re
? Object.getPrototypeOf
: function (t) {
return (
(t = Lt(t)),
b(t, je)
? t[je]
: "function" == typeof t.constructor &&
t instanceof t.constructor
? t.constructor.prototype
: t instanceof Object
? Pe
: null
);
},
Te = Dt("iterator"),
ke = !1;
[].keys &&
("next" in (xe = [].keys())
? (Ee = Ie(Ie(xe))) !== Object.prototype && (Se = Ee)
: (ke = !0)),
null == Se && (Se = {}),
b(Se, Te) ||
I(Se, Te, function () {
return this;
});
var Le = {
IteratorPrototype: Se,
BUGGY_SAFARI_ITERATORS: ke,
},
Ue = P.f,
Me = Dt("toStringTag"),
_e = function (t, e, r) {
t &&
!b((t = r ? t : t.prototype), Me) &&
Ue(t, Me, {
configurable: !0,
value: e,
});
},
Ne = {},
Ce = Le.IteratorPrototype,
Fe = function () {
return this;
},
Be = function (t, e, r) {
var n = e + " Iterator";
return (
(t.prototype = Ht(Ce, {
next: c(1, r),
})),
_e(t, n, !1),
(Ne[n] = Fe),
t
);
},
De = function (t) {
if (!g(t) && null !== t)
throw TypeError(
"Can't set " + String(t) + " as a prototype"
);
return t;
},
qe =
Object.setPrototypeOf ||
("__proto__" in {}
? (function () {
var t,
e = !1,
r = {};
try {
(t = Object.getOwnPropertyDescriptor(
Object.prototype,
"__proto__"
).set).call(r, []),
(e = r instanceof Array);
} catch (t) {}
return function (r, n) {
return (
R(r),
De(n),
e ? t.call(r, n) : (r.__proto__ = n),
r
);
};
})()
: void 0),
ze = Le.IteratorPrototype,
We = Le.BUGGY_SAFARI_ITERATORS,
Ke = Dt("iterator"),
Ge = "keys",
$e = "values",
Ve = "entries",
He = function () {
return this;
},
Xe = function (t, e, r, n, o, i, a) {
Be(r, e, n);
var u,
s,
c,
f = function (t) {
if (t === o && v) return v;
if (!We && t in p) return p[t];
switch (t) {
case Ge:
case $e:
case Ve:
return function () {
return new r(this, t);
};
}
return function () {
return new r(this);
};
},
l = e + " Iterator",
h = !1,
p = t.prototype,
d = p[Ke] || p["@@iterator"] || (o && p[o]),
v = (!We && d) || f(o),
g = ("Array" == e && p.entries) || d;
if (
(g &&
((u = Ie(g.call(new t()))),
ze !== Object.prototype &&
u.next &&
(Ie(u) !== ze &&
(qe
? qe(u, ze)
: "function" != typeof u[Ke] &&
I(u, Ke, He)),
_e(u, l, !0))),
o == $e &&
d &&
d.name !== $e &&
((h = !0),
(v = function () {
return d.call(this);
})),
p[Ke] !== v && I(p, Ke, v),
(Ne[e] = v),
o)
)
if (
((s = {
values: f($e),
keys: i ? v : f(Ge),
entries: f(Ve),
}),
a)
)
for (c in s)
(We || h || !(c in p)) && et(p, c, s[c]);
else
kt(
{
target: e,
proto: !0,
forced: We || h,
},
s
);
return s;
},
Ye = Oe.charAt,
Je = "String Iterator",
Qe = tt.set,
Ze = tt.getterFor(Je);
Xe(
String,
"String",
function (t) {
Qe(this, {
type: Je,
string: String(t),
index: 0,
});
},
function () {
var t,
e = Ze(this),
r = e.string,
n = e.index;
return n >= r.length
? {
value: void 0,
done: !0,
}
: ((t = Ye(r, n)),
(e.index += t.length),
{
value: t,
done: !1,
});
}
);
var tr = function (t, e, r, n) {
try {
return n ? e(R(r)[0], r[1]) : e(r);
} catch (e) {
var o = t.return;
throw (void 0 !== o && R(o.call(t)), e);
}
},
er = Dt("iterator"),
rr = Array.prototype,
nr = function (t) {
return void 0 !== t && (Ne.Array === t || rr[er] === t);
},
or = function (t, e, r) {
var n = y(e);
n in t ? P.f(t, n, c(0, r)) : (t[n] = r);
},
ir = {};
ir[Dt("toStringTag")] = "z";
var ar = "[object z]" === String(ir),
ur = Dt("toStringTag"),
sr =
"Arguments" ==
l(
(function () {
return arguments;
})()
),
cr = ar
? l
: function (t) {
var e, r, n;
return void 0 === t
? "Undefined"
: null === t
? "Null"
: "string" ==
typeof (r = (function (t, e) {
try {
return t[e];
} catch (t) {}
})((e = Object(t)), ur))
? r
: sr
? l(e)
: "Object" == (n = l(e)) &&
"function" == typeof e.callee
? "Arguments"
: n;
},
fr = Dt("iterator"),
lr = function (t) {
if (null != t)
return t[fr] || t["@@iterator"] || Ne[cr(t)];
},
hr = function (t) {
var e,
r,
n,
o,
i,
a,
u = Lt(t),
s = "function" == typeof this ? this : Array,
c = arguments.length,
f = c > 1 ? arguments[1] : void 0,
l = void 0 !== f,
h = lr(u),
p = 0;
if (
(l && (f = Zt(f, c > 2 ? arguments[2] : void 0, 2)),
null == h || (s == Array && nr(h)))
)
for (r = new s((e = ct(u.length))); e > p; p++)
(a = l ? f(u[p], p) : u[p]), or(r, p, a);
else
for (
i = (o = h.call(u)).next, r = new s();
!(n = i.call(o)).done;
p++
)
(a = l ? tr(o, f, [n.value, p], !0) : n.value),
or(r, p, a);
return (r.length = p), r;
},
pr = Dt("iterator"),
dr = !1;
try {
var vr = 0,
gr = {
next: function () {
return {
done: !!vr++,
};
},
return: function () {
dr = !0;
},
};
(gr[pr] = function () {
return this;
}),
Array.from(gr, function () {
throw 2;
});
} catch (t) {}
var yr = function (t, e) {
if (!e && !dr) return !1;
var r = !1;
try {
var n = {};
(n[pr] = function () {
return {
next: function () {
return {
done: (r = !0),
};
},
};
}),
t(n);
} catch (t) {}
return r;
},
mr = !yr(function (t) {
Array.from(t);
});
kt(
{
target: "Array",
stat: !0,
forced: mr,
},
{
from: hr,
}
);
var br = dt.includes,
wr = le("indexOf", {
ACCESSORS: !0,
1: 0,
});
kt(
{
target: "Array",
proto: !0,
forced: !wr,
},
{
includes: function (t) {
return br(
this,
t,
arguments.length > 1 ? arguments[1] : void 0
);
},
}
),
Jt("includes"),
ee("Array", "includes");
var Sr = "Array Iterator",
Er = tt.set,
xr = tt.getterFor(Sr),
Ar = Xe(
Array,
"Array",
function (t, e) {
Er(this, {
type: Sr,
target: v(t),
index: 0,
kind: e,
});
},
function () {
var t = xr(this),
e = t.target,
r = t.kind,
n = t.index++;
return !e || n >= e.length
? ((t.target = void 0),
{
value: void 0,
done: !0,
})
: "keys" == r
? {
value: n,
done: !1,
}
: "values" == r
? {
value: e[n],
done: !1,
}
: {
value: [n, e[n]],
done: !1,
};
},
"values"
);
(Ne.Arguments = Ne.Array),
Jt("keys"),
Jt("values"),
Jt("entries"),
ee("Array", "values");
var Or = o(function () {
function t() {}
return !(Array.of.call(t) instanceof t);
});
kt(
{
target: "Array",
stat: !0,
forced: Or,
},
{
of: function () {
for (
var t = 0,
e = arguments.length,
r = new (
"function" == typeof this ? this : Array
)(e);
e > t;
)
or(r, t, arguments[t++]);
return (r.length = e), r;
},
}
);
var Rr = Dt("hasInstance"),
jr = Function.prototype;
Rr in jr ||
P.f(jr, Rr, {
value: function (t) {
if ("function" != typeof this || !g(t)) return !1;
if (!g(this.prototype)) return t instanceof this;
for (; (t = Ie(t)); )
if (this.prototype === t) return !0;
return !1;
},
}),
Dt("hasInstance");
var Pr = Function.prototype,
Ir = Pr.toString,
Tr = /^\s*function ([^ (]*)/,
kr = "name";
i &&
!(kr in Pr) &&
(0, P.f)(Pr, kr, {
configurable: !0,
get: function () {
try {
return Ir.call(this).match(Tr)[1];
} catch (t) {
return "";
}
},
});
var Lr = !o(function () {
return Object.isExtensible(
Object.preventExtensions({})
);
}),
Ur = e(function (t) {
var e = P.f,
r = K("meta"),
n = 0,
o =
Object.isExtensible ||
function () {
return !0;
},
i = function (t) {
e(t, r, {
value: {
objectID: "O" + ++n,
weakData: {},
},
});
},
a = (t.exports = {
REQUIRED: !1,
fastKey: function (t, e) {
if (!g(t))
return "symbol" == typeof t
? t
: ("string" == typeof t
? "S"
: "P") + t;
if (!b(t, r)) {
if (!o(t)) return "F";
if (!e) return "E";
i(t);
}
return t[r].objectID;
},
getWeakData: function (t, e) {
if (!b(t, r)) {
if (!o(t)) return !0;
if (!e) return !1;
i(t);
}
return t[r].weakData;
},
onFreeze: function (t) {
return (
Lr &&
a.REQUIRED &&
o(t) &&
!b(t, r) &&
i(t),
t
);
},
});
V[r] = !0;
}),
Mr = e(function (t) {
var e = function (t, e) {
(this.stopped = t), (this.result = e);
};
(t.exports = function (t, r, n, o, i) {
var a,
u,
s,
c,
f,
l,
h,
p = Zt(r, n, o ? 2 : 1);
if (i) a = t;
else {
if ("function" != typeof (u = lr(t)))
throw TypeError("Target is not iterable");
if (nr(u)) {
for (s = 0, c = ct(t.length); c > s; s++)
if (
(f = o
? p(R((h = t[s]))[0], h[1])
: p(t[s])) &&
f instanceof e
)
return f;
return new e(!1);
}
a = u.call(t);
}
for (l = a.next; !(h = l.call(a)).done; )
if (
"object" ==
typeof (f = tr(a, p, h.value, o)) &&
f &&
f instanceof e
)
return f;
return new e(!1);
}).stop = function (t) {
return new e(!0, t);
};
}),
_r = function (t, e, r) {
if (!(t instanceof e))
throw TypeError(
"Incorrect " + (r ? r + " " : "") + "invocation"
);
return t;
},
Nr = function (t, e, r) {
var n, o;
return (
qe &&
"function" == typeof (n = e.constructor) &&
n !== r &&
g((o = n.prototype)) &&
o !== r.prototype &&
qe(t, o),
t
);
},
Cr = function (t, e, r) {
var i = -1 !== t.indexOf("Map"),
a = -1 !== t.indexOf("Weak"),
u = i ? "set" : "add",
s = n[t],
c = s && s.prototype,
f = s,
l = {},
h = function (t) {
var e = c[t];
et(
c,
t,
"add" == t
? function (t) {
return (
e.call(this, 0 === t ? 0 : t),
this
);
}
: "delete" == t
? function (t) {
return (
!(a && !g(t)) &&
e.call(this, 0 === t ? 0 : t)
);
}
: "get" == t
? function (t) {
return a && !g(t)
? void 0
: e.call(
this,
0 === t ? 0 : t
);
}
: "has" == t
? function (t) {
return (
!(a && !g(t)) &&
e.call(this, 0 === t ? 0 : t)
);
}
: function (t, r) {
return (
e.call(
this,
0 === t ? 0 : t,
r
),
this
);
}
);
};
if (
It(
t,
"function" != typeof s ||
!(
a ||
(c.forEach &&
!o(function () {
new s().entries().next();
}))
)
)
)
(f = r.getConstructor(e, t, i, u)),
(Ur.REQUIRED = !0);
else if (It(t, !0)) {
var p = new f(),
d = p[u](a ? {} : -0, 1) != p,
v = o(function () {
p.has(1);
}),
y = yr(function (t) {
new s(t);
}),
m =
!a &&
o(function () {
for (var t = new s(), e = 5; e--; )
t[u](e, e);
return !t.has(-0);
});
y ||
(((f = e(function (e, r) {
_r(e, f, t);
var n = Nr(new s(), e, f);
return null != r && Mr(r, n[u], n, i), n;
})).prototype = c),
(c.constructor = f)),
(v || m) &&
(h("delete"), h("has"), i && h("get")),
(m || d) && h(u),
a && c.clear && delete c.clear;
}
return (
(l[t] = f),
kt(
{
global: !0,
forced: f != s,
},
l
),
_e(f, t),
a || r.setStrong(f, t, i),
f
);
},
Fr = function (t, e, r) {
for (var n in e) et(t, n, e[n], r);
return t;
},
Br = Dt("species"),
Dr = function (t) {
var e = ot(t);
i &&
e &&
!e[Br] &&
(0, P.f)(e, Br, {
configurable: !0,
get: function () {
return this;
},
});
},
qr = P.f,
zr = Ur.fastKey,
Wr = tt.set,
Kr = tt.getterFor,
Gr = {
getConstructor: function (t, e, r, n) {
var o = t(function (t, a) {
_r(t, o, e),
Wr(t, {
type: e,
index: Ht(null),
first: void 0,
last: void 0,
size: 0,
}),
i || (t.size = 0),
null != a && Mr(a, t[n], t, r);
}),
a = Kr(e),
u = function (t, e, r) {
var n,
o,
u = a(t),
c = s(t, e);
return (
c
? (c.value = r)
: ((u.last = c =
{
index: (o = zr(e, !0)),
key: e,
value: r,
previous: (n = u.last),
next: void 0,
removed: !1,
}),
u.first || (u.first = c),
n && (n.next = c),
i ? u.size++ : t.size++,
"F" !== o && (u.index[o] = c)),
t
);
},
s = function (t, e) {
var r,
n = a(t),
o = zr(e);
if ("F" !== o) return n.index[o];
for (r = n.first; r; r = r.next)
if (r.key == e) return r;
};
return (
Fr(o.prototype, {
clear: function () {
for (
var t = a(this),
e = t.index,
r = t.first;
r;
)
(r.removed = !0),
r.previous &&
(r.previous =
r.previous.next =
void 0),
delete e[r.index],
(r = r.next);
(t.first = t.last = void 0),
i ? (t.size = 0) : (this.size = 0);
},
delete: function (t) {
var e = this,
r = a(e),
n = s(e, t);
if (n) {
var o = n.next,
u = n.previous;
delete r.index[n.index],
(n.removed = !0),
u && (u.next = o),
o && (o.previous = u),
r.first == n && (r.first = o),
r.last == n && (r.last = u),
i ? r.size-- : e.size--;
}
return !!n;
},
forEach: function (t) {
for (
var e,
r = a(this),
n = Zt(
t,
arguments.length > 1
? arguments[1]
: void 0,
3
);
(e = e ? e.next : r.first);
)
for (
n(e.value, e.key, this);
e && e.removed;
)
e = e.previous;
},
has: function (t) {
return !!s(this, t);
},
}),
Fr(
o.prototype,
r
? {
get: function (t) {
var e = s(this, t);
return e && e.value;
},
set: function (t, e) {
return u(
this,
0 === t ? 0 : t,
e
);
},
}
: {
add: function (t) {
return u(
this,
(t = 0 === t ? 0 : t),
t
);
},
}
),
i &&
qr(o.prototype, "size", {
get: function () {
return a(this).size;
},
}),
o
);
},
setStrong: function (t, e, r) {
var n = e + " Iterator",
o = Kr(e),
i = Kr(n);
Xe(
t,
e,
function (t, e) {
Wr(this, {
type: n,
target: t,
state: o(t),
kind: e,
last: void 0,
});
},
function () {
for (
var t = i(this), e = t.kind, r = t.last;
r && r.removed;
)
r = r.previous;
return t.target &&
(t.last = r =
r ? r.next : t.state.first)
? "keys" == e
? {
value: r.key,
done: !1,
}
: "values" == e
? {
value: r.value,
done: !1,
}
: {
value: [r.key, r.value],
done: !1,
}
: ((t.target = void 0),
{
value: void 0,
done: !0,
});
},
r ? "entries" : "values",
!r,
!0
),
Dr(e);
},
},
$r = Cr(
"Map",
function (t) {
return function () {
return t(
this,
arguments.length ? arguments[0] : void 0
);
};
},
Gr
);
ar ||
et(
Object.prototype,
"toString",
ar
? {}.toString
: function () {
return "[object " + cr(this) + "]";
},
{
unsafe: !0,
}
);
var Vr = {
CSSRuleList: 0,
CSSStyleDeclaration: 0,
CSSValueList: 0,
ClientRectList: 0,
DOMRectList: 0,
DOMStringList: 0,
DOMTokenList: 1,
DataTransferItemList: 0,
FileList: 0,
HTMLAllCollection: 0,
HTMLCollection: 0,
HTMLFormElement: 0,
HTMLSelectElement: 0,
MediaList: 0,
MimeTypeArray: 0,
NamedNodeMap: 0,
NodeList: 1,
PaintRequestList: 0,
Plugin: 0,
PluginArray: 0,
SVGLengthList: 0,
SVGNumberList: 0,
SVGPathSegList: 0,
SVGPointList: 0,
SVGStringList: 0,
SVGTransformList: 0,
SourceBufferList: 0,
StyleSheetList: 0,
TextTrackCueList: 0,
TextTrackList: 0,
TouchList: 0,
},
Hr = Dt("iterator"),
Xr = Dt("toStringTag"),
Yr = Ar.values;
for (var Jr in Vr) {
var Qr = n[Jr],
Zr = Qr && Qr.prototype;
if (Zr) {
if (Zr[Hr] !== Yr)
try {
I(Zr, Hr, Yr);
} catch (t) {
Zr[Hr] = Yr;
}
if ((Zr[Xr] || I(Zr, Xr, Jr), Vr[Jr]))
for (var tn in Ar)
if (Zr[tn] !== Ar[tn])
try {
I(Zr, tn, Ar[tn]);
} catch (t) {
Zr[tn] = Ar[tn];
}
}
}
var en = function (t) {
var e,
r,
n,
o,
i = arguments.length,
a = i > 1 ? arguments[1] : void 0;
return (
Qt(this),
(e = void 0 !== a) && Qt(a),
null == t
? new this()
: ((r = []),
e
? ((n = 0),
(o = Zt(
a,
i > 2 ? arguments[2] : void 0,
2
)),
Mr(t, function (t) {
r.push(o(t, n++));
}))
: Mr(t, r.push, r),
new this(r))
);
};
kt(
{
target: "Map",
stat: !0,
},
{
from: en,
}
);
var rn = function () {
for (var t = arguments.length, e = new Array(t); t--; )
e[t] = arguments[t];
return new this(e);
};
kt(
{
target: "Map",
stat: !0,
},
{
of: rn,
}
);
var nn = function () {
for (
var t,
e = R(this),
r = Qt(e.delete),
n = !0,
o = 0,
i = arguments.length;
o < i;
o++
)
(t = r.call(e, arguments[o])), (n = n && t);
return !!n;
};
kt(
{
target: "Map",
proto: !0,
real: !0,
forced: D,
},
{
deleteAll: function () {
return nn.apply(this, arguments);
},
}
);
var on = function (t) {
var e = lr(t);
if ("function" != typeof e)
throw TypeError(String(t) + " is not iterable");
return R(e.call(t));
},
an = function (t) {
return Map.prototype.entries.call(t);
};
kt(
{
target: "Map",
proto: !0,
real: !0,
forced: D,
},
{
every: function (t) {
var e = R(this),
r = an(e),
n = Zt(
t,
arguments.length > 1
? arguments[1]
: void 0,
3
);
return !Mr(
r,
function (t, r) {
if (!n(r, t, e)) return Mr.stop();
},
void 0,
!0,
!0
).stopped;
},
}
);
var un = Dt("species"),
sn = function (t, e) {
var r,
n = R(t).constructor;
return void 0 === n || null == (r = R(n)[un])
? e
: Qt(r);
};
kt(
{
target: "Map",
proto: !0,
real: !0,
forced: D,
},
{
filter: function (t) {
var e = R(this),
r = an(e),
n = Zt(
t,
arguments.length > 1
? arguments[1]
: void 0,
3
),
o = new (sn(e, ot("Map")))(),
i = Qt(o.set);
return (
Mr(
r,
function (t, r) {
n(r, t, e) && i.call(o, t, r);
},
void 0,
!0,
!0
),
o
);
},
}
),
kt(
{
target: "Map",
proto: !0,
real: !0,
forced: D,
},
{
find: function (t) {
var e = R(this),
r = an(e),
n = Zt(
t,
arguments.length > 1
? arguments[1]
: void 0,
3
);
return Mr(
r,
function (t, r) {
if (n(r, t, e)) return Mr.stop(r);
},
void 0,
!0,
!0
).result;
},
}
),
kt(
{
target: "Map",
proto: !0,
real: !0,
forced: D,
},
{
findKey: function (t) {
var e = R(this),
r = an(e),
n = Zt(
t,
arguments.length > 1
? arguments[1]
: void 0,
3
);
return Mr(
r,
function (t, r) {
if (n(r, t, e)) return Mr.stop(t);
},
void 0,
!0,
!0
).result;
},
}
),
kt(
{
target: "Map",
stat: !0,
},
{
groupBy: function (t, e) {
var r = new this();
Qt(e);
var n = Qt(r.has),
o = Qt(r.get),
i = Qt(r.set);
return (
Mr(t, function (t) {
var a = e(t);
n.call(r, a)
? o.call(r, a).push(t)
: i.call(r, a, [t]);
}),
r
);
},
}
),
kt(
{
target: "Map",
proto: !0,
real: !0,
forced: D,
},
{
includes: function (t) {
return Mr(
an(R(this)),
function (e, r) {
if (
(n = r) === (o = t) ||
(n != n && o != o)
)
return Mr.stop();
var n, o;
},
void 0,
!0,
!0
).stopped;
},
}
),
kt(
{
target: "Map",
stat: !0,
},
{
keyBy: function (t, e) {
var r = new this();
Qt(e);
var n = Qt(r.set);
return (
Mr(t, function (t) {
n.call(r, e(t), t);
}),
r
);
},
}
),
kt(
{
target: "Map",
proto: !0,
real: !0,
forced: D,
},
{
keyOf: function (t) {
return Mr(
an(R(this)),
function (e, r) {
if (r === t) return Mr.stop(e);
},
void 0,
!0,
!0
).result;
},
}
),
kt(
{
target: "Map",
proto: !0,
real: !0,
forced: D,
},
{
mapKeys: function (t) {
var e = R(this),
r = an(e),
n = Zt(
t,
arguments.length > 1
? arguments[1]
: void 0,
3
),
o = new (sn(e, ot("Map")))(),
i = Qt(o.set);
return (
Mr(
r,
function (t, r) {
i.call(o, n(r, t, e), r);
},
void 0,
!0,
!0
),
o
);
},
}
),
kt(
{
target: "Map",
proto: !0,
real: !0,
forced: D,
},
{
mapValues: function (t) {
var e = R(this),
r = an(e),
n = Zt(
t,
arguments.length > 1
? arguments[1]
: void 0,
3
),
o = new (sn(e, ot("Map")))(),
i = Qt(o.set);
return (
Mr(
r,
function (t, r) {
i.call(o, t, n(r, t, e));
},
void 0,
!0,
!0
),
o
);
},
}
),
kt(
{
target: "Map",
proto: !0,
real: !0,
forced: D,
},
{
merge: function (t) {
for (
var e = R(this), r = Qt(e.set), n = 0;
n < arguments.length;
)
Mr(arguments[n++], r, e, !0);
return e;
},
}
),
kt(
{
target: "Map",
proto: !0,
real: !0,
forced: D,
},
{
reduce: function (t) {
var e = R(this),
r = an(e),
n = arguments.length < 2,
o = n ? void 0 : arguments[1];
if (
(Qt(t),
Mr(
r,
function (r, i) {
n
? ((n = !1), (o = i))
: (o = t(o, i, r, e));
},
void 0,
!0,
!0
),
n)
)
throw TypeError(
"Reduce of empty map with no initial value"
);
return o;
},
}
),
kt(
{
target: "Map",
proto: !0,
real: !0,
forced: D,
},
{
some: function (t) {
var e = R(this),
r = an(e),
n = Zt(
t,
arguments.length > 1
? arguments[1]
: void 0,
3
);
return Mr(
r,
function (t, r) {
if (n(r, t, e)) return Mr.stop();
},
void 0,
!0,
!0
).stopped;
},
}
),
kt(
{
target: "Map",
proto: !0,
real: !0,
forced: D,
},
{
update: function (t, e) {
var r = R(this),
n = arguments.length;
Qt(e);
var o = r.has(t);
if (!o && n < 3)
throw TypeError("Updating absent value");
var i = o
? r.get(t)
: Qt(n > 2 ? arguments[2] : void 0)(t, r);
return r.set(t, e(i, t, r)), r;
},
}
);
var cn = function (t, e) {
var r,
n = R(this),
o = arguments.length > 2 ? arguments[2] : void 0;
if ("function" != typeof e && "function" != typeof o)
throw TypeError("At least one callback required");
return (
n.has(t)
? ((r = n.get(t)),
"function" == typeof e &&
((r = e(r)), n.set(t, r)))
: "function" == typeof o &&
((r = o()), n.set(t, r)),
r
);
};
kt(
{
target: "Map",
proto: !0,
real: !0,
forced: D,
},
{
upsert: cn,
}
),
kt(
{
target: "Map",
proto: !0,
real: !0,
forced: D,
},
{
updateOrInsert: cn,
}
);
var fn = "\t\n\v\f\r \u2028\u2029\ufeff",
ln = "[" + fn + "]",
hn = RegExp("^" + ln + ln + "*"),
pn = RegExp(ln + ln + "*$"),
dn = function (t) {
return function (e) {
var r = String(d(e));
return (
1 & t && (r = r.replace(hn, "")),
2 & t && (r = r.replace(pn, "")),
r
);
};
},
vn = {
start: dn(1),
end: dn(2),
trim: dn(3),
},
gn = bt.f,
yn = O.f,
mn = P.f,
bn = vn.trim,
wn = "Number",
Sn = n.Number,
En = Sn.prototype,
xn = l(Ht(En)) == wn,
An = function (t) {
var e,
r,
n,
o,
i,
a,
u,
s,
c = y(t, !1);
if ("string" == typeof c && c.length > 2)
if (
43 === (e = (c = bn(c)).charCodeAt(0)) ||
45 === e
) {
if (88 === (r = c.charCodeAt(2)) || 120 === r)
return NaN;
} else if (48 === e) {
switch (c.charCodeAt(1)) {
case 66:
case 98:
(n = 2), (o = 49);
break;
case 79:
case 111:
(n = 8), (o = 55);
break;
default:
return +c;
}
for (
a = (i = c.slice(2)).length, u = 0;
u < a;
u++
)
if ((s = i.charCodeAt(u)) < 48 || s > o)
return NaN;
return parseInt(i, n);
}
return +c;
};
if (It(wn, !Sn(" 0o1") || !Sn("0b1") || Sn("+0x1"))) {
for (
var On,
Rn = function (t) {
var e = arguments.length < 1 ? 0 : t,
r = this;
return r instanceof Rn &&
(xn
? o(function () {
En.valueOf.call(r);
})
: l(r) != wn)
? Nr(new Sn(An(e)), r, Rn)
: An(e);
},
jn = i
? gn(Sn)
: "MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(
","
),
Pn = 0;
jn.length > Pn;
Pn++
)
b(Sn, (On = jn[Pn])) &&
!b(Rn, On) &&
mn(Rn, On, yn(Sn, On));
(Rn.prototype = En), (En.constructor = Rn), et(n, wn, Rn);
}
kt(
{
target: "Number",
stat: !0,
},
{
EPSILON: Math.pow(2, -52),
}
);
var In = n.isFinite;
kt(
{
target: "Number",
stat: !0,
},
{
isFinite:
Number.isFinite ||
function (t) {
return "number" == typeof t && In(t);
},
}
);
var Tn = Math.floor,
kn = function (t) {
return !g(t) && isFinite(t) && Tn(t) === t;
};
kt(
{
target: "Number",
stat: !0,
},
{
isInteger: kn,
}
),
kt(
{
target: "Number",
stat: !0,
},
{
isNaN: function (t) {
return t != t;
},
}
);
var Ln = Math.abs;
kt(
{
target: "Number",
stat: !0,
},
{
isSafeInteger: function (t) {
return kn(t) && Ln(t) <= 9007199254740991;
},
}
),
kt(
{
target: "Number",
stat: !0,
},
{
MAX_SAFE_INTEGER: 9007199254740991,
}
),
kt(
{
target: "Number",
stat: !0,
},
{
MIN_SAFE_INTEGER: -9007199254740991,
}
);
var Un = vn.trim,
Mn = n.parseFloat,
_n =
1 / Mn(fn + "-0") != -Infinity
? function (t) {
var e = Un(String(t)),
r = Mn(e);
return 0 === r && "-" == e.charAt(0) ? -0 : r;
}
: Mn;
kt(
{
target: "Number",
stat: !0,
forced: Number.parseFloat != _n,
},
{
parseFloat: _n,
}
);
var Nn = vn.trim,
Cn = n.parseInt,
Fn = /^[+-]?0[Xx]/,
Bn =
8 !== Cn(fn + "08") || 22 !== Cn(fn + "0x16")
? function (t, e) {
var r = Nn(String(t));
return Cn(
r,
e >>> 0 || (Fn.test(r) ? 16 : 10)
);
}
: Cn;
kt(
{
target: "Number",
stat: !0,
forced: Number.parseInt != Bn,
},
{
parseInt: Bn,
}
);
var Dn = s.f,
qn = function (t) {
return function (e) {
for (
var r,
n = v(e),
o = qt(n),
a = o.length,
u = 0,
s = [];
a > u;
)
(r = o[u++]),
(i && !Dn.call(n, r)) ||
s.push(t ? [r, n[r]] : n[r]);
return s;
};
},
zn = {
entries: qn(!0),
values: qn(!1),
},
Wn = zn.entries;
kt(
{
target: "Object",
stat: !0,
},
{
entries: function (t) {
return Wn(t);
},
}
),
kt(
{
target: "Object",
stat: !0,
sham: !i,
},
{
getOwnPropertyDescriptors: function (t) {
for (
var e,
r,
n = v(t),
o = O.f,
i = St(n),
a = {},
u = 0;
i.length > u;
)
void 0 !== (r = o(n, (e = i[u++]))) &&
or(a, e, r);
return a;
},
}
);
var Kn = o(function () {
qt(1);
});
kt(
{
target: "Object",
stat: !0,
forced: Kn,
},
{
keys: function (t) {
return qt(Lt(t));
},
}
);
var Gn =
Object.is ||
function (t, e) {
return t === e
? 0 !== t || 1 / t == 1 / e
: t != t && e != e;
};
kt(
{
target: "Object",
stat: !0,
},
{
is: Gn,
}
);
var $n = zn.values;
kt(
{
target: "Object",
stat: !0,
},
{
values: function (t) {
return $n(t);
},
}
);
var Vn = ot("Reflect", "apply"),
Hn = Function.apply,
Xn = !o(function () {
Vn(function () {});
});
kt(
{
target: "Reflect",
stat: !0,
forced: Xn,
},
{
apply: function (t, e, r) {
return (
Qt(t), R(r), Vn ? Vn(t, e, r) : Hn.call(t, e, r)
);
},
}
);
var Yn = [].slice,
Jn = {},
Qn = function (t, e, r) {
if (!(e in Jn)) {
for (var n = [], o = 0; o < e; o++)
n[o] = "a[" + o + "]";
Jn[e] = Function(
"C,a",
"return new C(" + n.join(",") + ")"
);
}
return Jn[e](t, r);
},
Zn =
Function.bind ||
function (t) {
var e = Qt(this),
r = Yn.call(arguments, 1),
n = function () {
var o = r.concat(Yn.call(arguments));
return this instanceof n
? Qn(e, o.length, o)
: e.apply(t, o);
};
return (
g(e.prototype) && (n.prototype = e.prototype), n
);
},
to = ot("Reflect", "construct"),
eo = o(function () {
function t() {}
return !(to(function () {}, [], t) instanceof t);
}),
ro = !o(function () {
to(function () {});
}),
no = eo || ro;
kt(
{
target: "Reflect",
stat: !0,
forced: no,
sham: no,
},
{
construct: function (t, e) {
Qt(t), R(e);
var r = arguments.length < 3 ? t : Qt(arguments[2]);
if (ro && !eo) return to(t, e, r);
if (t == r) {
switch (e.length) {
case 0:
return new t();
case 1:
return new t(e[0]);
case 2:
return new t(e[0], e[1]);
case 3:
return new t(e[0], e[1], e[2]);
case 4:
return new t(e[0], e[1], e[2], e[3]);
}
var n = [null];
return (
n.push.apply(n, e), new (Zn.apply(t, n))()
);
}
var o = r.prototype,
i = Ht(g(o) ? o : Object.prototype),
a = Function.apply.call(t, i, e);
return g(a) ? a : i;
},
}
);
var oo = o(function () {
Reflect.defineProperty(
P.f({}, 1, {
value: 1,
}),
1,
{
value: 2,
}
);
});
kt(
{
target: "Reflect",
stat: !0,
forced: oo,
sham: !i,
},
{
defineProperty: function (t, e, r) {
R(t);
var n = y(e, !0);
R(r);
try {
return P.f(t, n, r), !0;
} catch (t) {
return !1;
}
},
}
);
var io = O.f;
kt(
{
target: "Reflect",
stat: !0,
},
{
deleteProperty: function (t, e) {
var r = io(R(t), e);
return !(r && !r.configurable) && delete t[e];
},
}
),
kt(
{
target: "Reflect",
stat: !0,
},
{
get: function t(e, r) {
var n,
o,
i = arguments.length < 3 ? e : arguments[2];
return R(e) === i
? e[r]
: (n = O.f(e, r))
? b(n, "value")
? n.value
: void 0 === n.get
? void 0
: n.get.call(i)
: g((o = Ie(e)))
? t(o, r, i)
: void 0;
},
}
),
kt(
{
target: "Reflect",
stat: !0,
sham: !i,
},
{
getOwnPropertyDescriptor: function (t, e) {
return O.f(R(t), e);
},
}
),
kt(
{
target: "Reflect",
stat: !0,
sham: !Re,
},
{
getPrototypeOf: function (t) {
return Ie(R(t));
},
}
),
kt(
{
target: "Reflect",
stat: !0,
},
{
has: function (t, e) {
return e in t;
},
}
);
var ao = Object.isExtensible;
kt(
{
target: "Reflect",
stat: !0,
},
{
isExtensible: function (t) {
return R(t), !ao || ao(t);
},
}
),
kt(
{
target: "Reflect",
stat: !0,
},
{
ownKeys: St,
}
),
kt(
{
target: "Reflect",
stat: !0,
sham: !Lr,
},
{
preventExtensions: function (t) {
R(t);
try {
var e = ot("Object", "preventExtensions");
return e && e(t), !0;
} catch (t) {
return !1;
}
},
}
);
var uo = o(function () {
var t = P.f({}, "a", {
configurable: !0,
});
return !1 !== Reflect.set(Ie(t), "a", 1, t);
});
kt(
{
target: "Reflect",
stat: !0,
forced: uo,
},
{
set: function t(e, r, n) {
var o,
i,
a = arguments.length < 4 ? e : arguments[3],
u = O.f(R(e), r);
if (!u) {
if (g((i = Ie(e)))) return t(i, r, n, a);
u = c(0);
}
if (b(u, "value")) {
if (!1 === u.writable || !g(a)) return !1;
if ((o = O.f(a, r))) {
if (o.get || o.set || !1 === o.writable)
return !1;
(o.value = n), P.f(a, r, o);
} else P.f(a, r, c(0, n));
return !0;
}
return void 0 !== u.set && (u.set.call(a, n), !0);
},
}
),
qe &&
kt(
{
target: "Reflect",
stat: !0,
},
{
setPrototypeOf: function (t, e) {
R(t), De(e);
try {
return qe(t, e), !0;
} catch (t) {
return !1;
}
},
}
);
var so = Ur.getWeakData,
co = tt.set,
fo = tt.getterFor,
lo = ue.find,
ho = ue.findIndex,
po = 0,
vo = function (t) {
return t.frozen || (t.frozen = new go());
},
go = function () {
this.entries = [];
},
yo = function (t, e) {
return lo(t.entries, function (t) {
return t[0] === e;
});
};
go.prototype = {
get: function (t) {
var e = yo(this, t);
if (e) return e[1];
},
has: function (t) {
return !!yo(this, t);
},
set: function (t, e) {
var r = yo(this, t);
r ? (r[1] = e) : this.entries.push([t, e]);
},
delete: function (t) {
var e = ho(this.entries, function (e) {
return e[0] === t;
});
return ~e && this.entries.splice(e, 1), !!~e;
},
};
var mo = {
getConstructor: function (t, e, r, n) {
var o = t(function (t, i) {
_r(t, o, e),
co(t, {
type: e,
id: po++,
frozen: void 0,
}),
null != i && Mr(i, t[n], t, r);
}),
i = fo(e),
a = function (t, e, r) {
var n = i(t),
o = so(R(e), !0);
return (
!0 === o
? vo(n).set(e, r)
: (o[n.id] = r),
t
);
};
return (
Fr(o.prototype, {
delete: function (t) {
var e = i(this);
if (!g(t)) return !1;
var r = so(t);
return !0 === r
? vo(e).delete(t)
: r && b(r, e.id) && delete r[e.id];
},
has: function (t) {
var e = i(this);
if (!g(t)) return !1;
var r = so(t);
return !0 === r
? vo(e).has(t)
: r && b(r, e.id);
},
}),
Fr(
o.prototype,
r
? {
get: function (t) {
var e = i(this);
if (g(t)) {
var r = so(t);
return !0 === r
? vo(e).get(t)
: r
? r[e.id]
: void 0;
}
},
set: function (t, e) {
return a(this, t, e);
},
}
: {
add: function (t) {
return a(this, t, !0);
},
}
),
o
);
},
},
bo = e(function (t) {
var e,
r = tt.enforce,
o = !n.ActiveXObject && "ActiveXObject" in n,
i = Object.isExtensible,
a = function (t) {
return function () {
return t(
this,
arguments.length ? arguments[0] : void 0
);
};
},
u = (t.exports = Cr("WeakMap", a, mo));
if (B && o) {
(e = mo.getConstructor(a, "WeakMap", !0)),
(Ur.REQUIRED = !0);
var s = u.prototype,
c = s.delete,
f = s.has,
l = s.get,
h = s.set;
Fr(s, {
delete: function (t) {
if (g(t) && !i(t)) {
var n = r(this);
return (
n.frozen || (n.frozen = new e()),
c.call(this, t) ||
n.frozen.delete(t)
);
}
return c.call(this, t);
},
has: function (t) {
if (g(t) && !i(t)) {
var n = r(this);
return (
n.frozen || (n.frozen = new e()),
f.call(this, t) || n.frozen.has(t)
);
}
return f.call(this, t);
},
get: function (t) {
if (g(t) && !i(t)) {
var n = r(this);
return (
n.frozen || (n.frozen = new e()),
f.call(this, t)
? l.call(this, t)
: n.frozen.get(t)
);
}
return l.call(this, t);
},
set: function (t, n) {
if (g(t) && !i(t)) {
var o = r(this);
o.frozen || (o.frozen = new e()),
f.call(this, t)
? h.call(this, t, n)
: o.frozen.set(t, n);
} else h.call(this, t, n);
return this;
},
});
}
}),
wo = q("metadata"),
So = wo.store || (wo.store = new bo()),
Eo = function (t, e, r) {
var n = So.get(t);
if (!n) {
if (!r) return;
So.set(t, (n = new $r()));
}
var o = n.get(e);
if (!o) {
if (!r) return;
n.set(e, (o = new $r()));
}
return o;
},
xo = {
store: So,
getMap: Eo,
has: function (t, e, r) {
var n = Eo(e, r, !1);
return void 0 !== n && n.has(t);
},
get: function (t, e, r) {
var n = Eo(e, r, !1);
return void 0 === n ? void 0 : n.get(t);
},
set: function (t, e, r, n) {
Eo(r, n, !0).set(t, e);
},
keys: function (t, e) {
var r = Eo(t, e, !1),
n = [];
return (
r &&
r.forEach(function (t, e) {
n.push(e);
}),
n
);
},
toKey: function (t) {
return void 0 === t || "symbol" == typeof t
? t
: String(t);
},
},
Ao = xo.toKey,
Oo = xo.set;
kt(
{
target: "Reflect",
stat: !0,
},
{
defineMetadata: function (t, e, r) {
var n =
arguments.length < 4
? void 0
: Ao(arguments[3]);
Oo(t, e, R(r), n);
},
}
);
var Ro = xo.toKey,
jo = xo.getMap,
Po = xo.store;
kt(
{
target: "Reflect",
stat: !0,
},
{
deleteMetadata: function (t, e) {
var r =
arguments.length < 3
? void 0
: Ro(arguments[2]),
n = jo(R(e), r, !1);
if (void 0 === n || !n.delete(t)) return !1;
if (n.size) return !0;
var o = Po.get(e);
return o.delete(r), !!o.size || Po.delete(e);
},
}
);
var Io = xo.has,
To = xo.get,
ko = xo.toKey,
Lo = function t(e, r, n) {
if (Io(e, r, n)) return To(e, r, n);
var o = Ie(r);
return null !== o ? t(e, o, n) : void 0;
};
kt(
{
target: "Reflect",
stat: !0,
},
{
getMetadata: function (t, e) {
var r =
arguments.length < 3
? void 0
: ko(arguments[2]);
return Lo(t, R(e), r);
},
}
);
var Uo = Cr(
"Set",
function (t) {
return function () {
return t(
this,
arguments.length ? arguments[0] : void 0
);
};
},
Gr
),
Mo = xo.keys,
_o = xo.toKey,
No = function t(e, r) {
var n = Mo(e, r),
o = Ie(e);
if (null === o) return n;
var i,
a,
u = t(o, r);
return u.length
? n.length
? ((i = new Uo(n.concat(u))),
Mr(i, (a = []).push, a),
a)
: u
: n;
};
kt(
{
target: "Reflect",
stat: !0,
},
{
getMetadataKeys: function (t) {
var e =
arguments.length < 2
? void 0
: _o(arguments[1]);
return No(R(t), e);
},
}
);
var Co = xo.get,
Fo = xo.toKey;
kt(
{
target: "Reflect",
stat: !0,
},
{
getOwnMetadata: function (t, e) {
var r =
arguments.length < 3
? void 0
: Fo(arguments[2]);
return Co(t, R(e), r);
},
}
);
var Bo = xo.keys,
Do = xo.toKey;
kt(
{
target: "Reflect",
stat: !0,
},
{
getOwnMetadataKeys: function (t) {
var e =
arguments.length < 2
? void 0
: Do(arguments[1]);
return Bo(R(t), e);
},
}
);
var qo = xo.has,
zo = xo.toKey,
Wo = function t(e, r, n) {
if (qo(e, r, n)) return !0;
var o = Ie(r);
return null !== o && t(e, o, n);
};
kt(
{
target: "Reflect",
stat: !0,
},
{
hasMetadata: function (t, e) {
var r =
arguments.length < 3
? void 0
: zo(arguments[2]);
return Wo(t, R(e), r);
},
}
);
var Ko = xo.has,
Go = xo.toKey;
kt(
{
target: "Reflect",
stat: !0,
},
{
hasOwnMetadata: function (t, e) {
var r =
arguments.length < 3
? void 0
: Go(arguments[2]);
return Ko(t, R(e), r);
},
}
);
var $o = xo.toKey,
Vo = xo.set;
kt(
{
target: "Reflect",
stat: !0,
},
{
metadata: function (t, e) {
return function (r, n) {
Vo(t, e, R(r), $o(n));
};
},
}
);
var Ho = Dt("match"),
Xo = function (t) {
var e;
return (
g(t) &&
(void 0 !== (e = t[Ho]) ? !!e : "RegExp" == l(t))
);
},
Yo = function () {
var t = R(this),
e = "";
return (
t.global && (e += "g"),
t.ignoreCase && (e += "i"),
t.multiline && (e += "m"),
t.dotAll && (e += "s"),
t.unicode && (e += "u"),
t.sticky && (e += "y"),
e
);
};
function Jo(t, e) {
return RegExp(t, e);
}
var Qo = {
UNSUPPORTED_Y: o(function () {
var t = Jo("a", "y");
return (t.lastIndex = 2), null != t.exec("abcd");
}),
BROKEN_CARET: o(function () {
var t = Jo("^r", "gy");
return (t.lastIndex = 2), null != t.exec("str");
}),
},
Zo = P.f,
ti = bt.f,
ei = tt.set,
ri = Dt("match"),
ni = n.RegExp,
oi = ni.prototype,
ii = /a/g,
ai = /a/g,
ui = new ni(ii) !== ii,
si = Qo.UNSUPPORTED_Y;
if (
i &&
It(
"RegExp",
!ui ||
si ||
o(function () {
return (
(ai[ri] = !1),
ni(ii) != ii ||
ni(ai) == ai ||
"/a/i" != ni(ii, "i")
);
})
)
) {
for (
var ci = function (t, e) {
var r,
n = this instanceof ci,
o = Xo(t),
i = void 0 === e;
if (!n && o && t.constructor === ci && i)
return t;
ui
? o && !i && (t = t.source)
: t instanceof ci &&
(i && (e = Yo.call(t)), (t = t.source)),
si &&
(r = !!e && e.indexOf("y") > -1) &&
(e = e.replace(/y/g, ""));
var a = Nr(
ui ? new ni(t, e) : ni(t, e),
n ? this : oi,
ci
);
return (
si &&
r &&
ei(a, {
sticky: r,
}),
a
);
},
fi = function (t) {
(t in ci) ||
Zo(ci, t, {
configurable: !0,
get: function () {
return ni[t];
},
set: function (e) {
ni[t] = e;
},
});
},
li = ti(ni),
hi = 0;
li.length > hi;
)
fi(li[hi++]);
(oi.constructor = ci),
(ci.prototype = oi),
et(n, "RegExp", ci);
}
Dr("RegExp");
var pi = "toString",
di = RegExp.prototype,
vi = di.toString;
(o(function () {
return (
"/a/b" !=
vi.call({
source: "a",
flags: "b",
})
);
}) ||
vi.name != pi) &&
et(
RegExp.prototype,
pi,
function () {
var t = R(this),
e = String(t.source),
r = t.flags;
return (
"/" +
e +
"/" +
String(
void 0 === r &&
t instanceof RegExp &&
!("flags" in di)
? Yo.call(t)
: r
)
);
},
{
unsafe: !0,
}
);
var gi = RegExp.prototype.exec,
yi = String.prototype.replace,
mi = gi,
bi = (function () {
var t = /a/,
e = /b*/g;
return (
gi.call(t, "a"),
gi.call(e, "a"),
0 !== t.lastIndex || 0 !== e.lastIndex
);
})(),
wi = Qo.UNSUPPORTED_Y || Qo.BROKEN_CARET,
Si = void 0 !== /()??/.exec("")[1];
(bi || Si || wi) &&
(mi = function (t) {
var e,
r,
n,
o,
i = this,
a = wi && i.sticky,
u = Yo.call(i),
s = i.source,
c = 0,
f = t;
return (
a &&
(-1 === (u = u.replace("y", "")).indexOf("g") &&
(u += "g"),
(f = String(t).slice(i.lastIndex)),
i.lastIndex > 0 &&
(!i.multiline ||
(i.multiline &&
"\n" !== t[i.lastIndex - 1])) &&
((s = "(?: " + s + ")"),
(f = " " + f),
c++),
(r = new RegExp("^(?:" + s + ")", u))),
Si && (r = new RegExp("^" + s + "$(?!\\s)", u)),
bi && (e = i.lastIndex),
(n = gi.call(a ? r : i, f)),
a
? n
? ((n.input = n.input.slice(c)),
(n[0] = n[0].slice(c)),
(n.index = i.lastIndex),
(i.lastIndex += n[0].length))
: (i.lastIndex = 0)
: bi &&
n &&
(i.lastIndex = i.global
? n.index + n[0].length
: e),
Si &&
n &&
n.length > 1 &&
yi.call(n[0], r, function () {
for (o = 1; o < arguments.length - 2; o++)
void 0 === arguments[o] &&
(n[o] = void 0);
}),
n
);
});
var Ei = mi;
kt(
{
target: "RegExp",
proto: !0,
forced: /./.exec !== Ei,
},
{
exec: Ei,
}
),
i &&
("g" != /./g.flags || Qo.UNSUPPORTED_Y) &&
P.f(RegExp.prototype, "flags", {
configurable: !0,
get: Yo,
});
var xi = tt.get,
Ai = RegExp.prototype;
i &&
Qo.UNSUPPORTED_Y &&
(0, P.f)(RegExp.prototype, "sticky", {
configurable: !0,
get: function () {
if (this !== Ai) {
if (this instanceof RegExp)
return !!xi(this).sticky;
throw TypeError(
"Incompatible receiver, RegExp required"
);
}
},
});
var Oi,
Ri,
ji =
((Oi = !1),
((Ri = /[ac]/).exec = function () {
return (Oi = !0), /./.exec.apply(this, arguments);
}),
!0 === Ri.test("abc") && Oi),
Pi = /./.test;
kt(
{
target: "RegExp",
proto: !0,
forced: !ji,
},
{
test: function (t) {
if ("function" != typeof this.exec)
return Pi.call(this, t);
var e = this.exec(t);
if (null !== e && !g(e))
throw new Error(
"RegExp exec method returned something other than an Object or null"
);
return !!e;
},
}
);
var Ii = Dt("species"),
Ti = !o(function () {
var t = /./;
return (
(t.exec = function () {
var t = [];
return (
(t.groups = {
a: "7",
}),
t
);
}),
"7" !== "".replace(t, "$<a>")
);
}),
ki = "$0" === "a".replace(/./, "$0"),
Li = Dt("replace"),
Ui = !!/./[Li] && "" === /./[Li]("a", "$0"),
Mi = !o(function () {
var t = /(?:)/,
e = t.exec;
t.exec = function () {
return e.apply(this, arguments);
};
var r = "ab".split(t);
return 2 !== r.length || "a" !== r[0] || "b" !== r[1];
}),
_i = function (t, e, r, n) {
var i = Dt(t),
a = !o(function () {
var e = {};
return (
(e[i] = function () {
return 7;
}),
7 != ""[t](e)
);
}),
u =
a &&
!o(function () {
var e = !1,
r = /a/;
return (
"split" === t &&
(((r = {}).constructor = {}),
(r.constructor[Ii] = function () {
return r;
}),
(r.flags = ""),
(r[i] = /./[i])),
(r.exec = function () {
return (e = !0), null;
}),
r[i](""),
!e
);
});
if (
!a ||
!u ||
("replace" === t && (!Ti || !ki || Ui)) ||
("split" === t && !Mi)
) {
var s = /./[i],
c = r(
i,
""[t],
function (t, e, r, n, o) {
return e.exec === Ei
? a && !o
? {
done: !0,
value: s.call(e, r, n),
}
: {
done: !0,
value: t.call(r, e, n),
}
: {
done: !1,
};
},
{
REPLACE_KEEPS_$0: ki,
REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:
Ui,
}
),
f = c[1];
et(String.prototype, t, c[0]),
et(
RegExp.prototype,
i,
2 == e
? function (t, e) {
return f.call(t, this, e);
}
: function (t) {
return f.call(t, this);
}
);
}
n && I(RegExp.prototype[i], "sham", !0);
},
Ni = Oe.charAt,
Ci = function (t, e, r) {
return e + (r ? Ni(t, e).length : 1);
},
Fi = function (t, e) {
var r = t.exec;
if ("function" == typeof r) {
var n = r.call(t, e);
if ("object" != typeof n)
throw TypeError(
"RegExp exec method returned something other than an Object or null"
);
return n;
}
if ("RegExp" !== l(t))
throw TypeError(
"RegExp#exec called on incompatible receiver"
);
return Ei.call(t, e);
};
_i("match", 1, function (t, e, r) {
return [
function (e) {
var r = d(this),
n = null == e ? void 0 : e[t];
return void 0 !== n
? n.call(e, r)
: new RegExp(e)[t](String(r));
},
function (t) {
var n = r(e, t, this);
if (n.done) return n.value;
var o = R(t),
i = String(this);
if (!o.global) return Fi(o, i);
var a = o.unicode;
o.lastIndex = 0;
for (
var u, s = [], c = 0;
null !== (u = Fi(o, i));
) {
var f = String(u[0]);
(s[c] = f),
"" === f &&
(o.lastIndex = Ci(
i,
ct(o.lastIndex),
a
)),
c++;
}
return 0 === c ? null : s;
},
];
});
var Bi = Math.max,
Di = Math.min,
qi = Math.floor,
zi = /\$([$&'`]|\d\d?|<[^>]*>)/g,
Wi = /\$([$&'`]|\d\d?)/g;
_i("replace", 2, function (t, e, r, n) {
var o = n.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,
i = n.REPLACE_KEEPS_$0,
a = o ? "$" : "$0";
return [
function (r, n) {
var o = d(this),
i = null == r ? void 0 : r[t];
return void 0 !== i
? i.call(r, o, n)
: e.call(String(o), r, n);
},
function (t, n) {
if (
(!o && i) ||
("string" == typeof n && -1 === n.indexOf(a))
) {
var s = r(e, t, this, n);
if (s.done) return s.value;
}
var c = R(t),
f = String(this),
l = "function" == typeof n;
l || (n = String(n));
var h = c.global;
if (h) {
var p = c.unicode;
c.lastIndex = 0;
}
for (var d = []; ; ) {
var v = Fi(c, f);
if (null === v) break;
if ((d.push(v), !h)) break;
"" === String(v[0]) &&
(c.lastIndex = Ci(f, ct(c.lastIndex), p));
}
for (
var g, y = "", m = 0, b = 0;
b < d.length;
b++
) {
v = d[b];
for (
var w = String(v[0]),
S = Bi(Di(ut(v.index), f.length), 0),
E = [],
x = 1;
x < v.length;
x++
)
E.push(
void 0 === (g = v[x]) ? g : String(g)
);
var A = v.groups;
if (l) {
var O = [w].concat(E, S, f);
void 0 !== A && O.push(A);
var j = String(n.apply(void 0, O));
} else j = u(w, f, S, E, A, n);
S >= m &&
((y += f.slice(m, S) + j),
(m = S + w.length));
}
return y + f.slice(m);
},
];
function u(t, r, n, o, i, a) {
var u = n + t.length,
s = o.length,
c = Wi;
return (
void 0 !== i && ((i = Lt(i)), (c = zi)),
e.call(a, c, function (e, a) {
var c;
switch (a.charAt(0)) {
case "$":
return "$";
case "&":
return t;
case "`":
return r.slice(0, n);
case "'":
return r.slice(u);
case "<":
c = i[a.slice(1, -1)];
break;
default:
var f = +a;
if (0 === f) return e;
if (f > s) {
var l = qi(f / 10);
return 0 === l
? e
: l <= s
? void 0 === o[l - 1]
? a.charAt(1)
: o[l - 1] + a.charAt(1)
: e;
}
c = o[f - 1];
}
return void 0 === c ? "" : c;
})
);
}
}),
_i("search", 1, function (t, e, r) {
return [
function (e) {
var r = d(this),
n = null == e ? void 0 : e[t];
return void 0 !== n
? n.call(e, r)
: new RegExp(e)[t](String(r));
},
function (t) {
var n = r(e, t, this);
if (n.done) return n.value;
var o = R(t),
i = String(this),
a = o.lastIndex;
Gn(a, 0) || (o.lastIndex = 0);
var u = Fi(o, i);
return (
Gn(o.lastIndex, a) || (o.lastIndex = a),
null === u ? -1 : u.index
);
},
];
});
var Ki = [].push,
Gi = Math.min,
$i = 4294967295,
Vi = !o(function () {
return !RegExp($i, "y");
});
_i(
"split",
2,
function (t, e, r) {
var n;
return (
(n =
"c" == "abbc".split(/(b)*/)[1] ||
4 != "test".split(/(?:)/, -1).length ||
2 != "ab".split(/(?:ab)*/).length ||
4 != ".".split(/(.?)(.?)/).length ||
".".split(/()()/).length > 1 ||
"".split(/.?/).length
? function (t, r) {
var n = String(d(this)),
o = void 0 === r ? $i : r >>> 0;
if (0 === o) return [];
if (void 0 === t) return [n];
if (!Xo(t)) return e.call(n, t, o);
for (
var i,
a,
u,
s = [],
c = 0,
f = new RegExp(
t.source,
(t.ignoreCase
? "i"
: "") +
(t.multiline
? "m"
: "") +
(t.unicode
? "u"
: "") +
(t.sticky
? "y"
: "") +
"g"
);
(i = Ei.call(f, n)) &&
!(
(a = f.lastIndex) > c &&
(s.push(n.slice(c, i.index)),
i.length > 1 &&
i.index < n.length &&
Ki.apply(s, i.slice(1)),
(u = i[0].length),
(c = a),
s.length >= o)
);
)
f.lastIndex === i.index &&
f.lastIndex++;
return (
c === n.length
? (!u && f.test("")) ||
s.push("")
: s.push(n.slice(c)),
s.length > o ? s.slice(0, o) : s
);
}
: "0".split(void 0, 0).length
? function (t, r) {
return void 0 === t && 0 === r
? []
: e.call(this, t, r);
}
: e),
[
function (e, r) {
var o = d(this),
i = null == e ? void 0 : e[t];
return void 0 !== i
? i.call(e, o, r)
: n.call(String(o), e, r);
},
function (t, o) {
var i = r(n, t, this, o, n !== e);
if (i.done) return i.value;
var a = R(t),
u = String(this),
s = sn(a, RegExp),
c = a.unicode,
f = new s(
Vi ? a : "^(?:" + a.source + ")",
(a.ignoreCase ? "i" : "") +
(a.multiline ? "m" : "") +
(a.unicode ? "u" : "") +
(Vi ? "y" : "g")
),
l = void 0 === o ? $i : o >>> 0;
if (0 === l) return [];
if (0 === u.length)
return null === Fi(f, u) ? [u] : [];
for (
var h = 0, p = 0, d = [];
p < u.length;
) {
f.lastIndex = Vi ? p : 0;
var v,
g = Fi(f, Vi ? u : u.slice(p));
if (
null === g ||
(v = Gi(
ct(f.lastIndex + (Vi ? 0 : p)),
u.length
)) === h
)
p = Ci(u, p, c);
else {
if (
(d.push(u.slice(h, p)),
d.length === l)
)
return d;
for (
var y = 1;
y <= g.length - 1;
y++
)
if (
(d.push(g[y]),
d.length === l)
)
return d;
p = h = v;
}
}
return d.push(u.slice(h)), d;
},
]
);
},
!Vi
),
kt(
{
target: "Set",
stat: !0,
},
{
from: en,
}
),
kt(
{
target: "Set",
stat: !0,
},
{
of: rn,
}
);
var Hi = function () {
for (
var t = R(this),
e = Qt(t.add),
r = 0,
n = arguments.length;
r < n;
r++
)
e.call(t, arguments[r]);
return t;
};
kt(
{
target: "Set",
proto: !0,
real: !0,
forced: D,
},
{
addAll: function () {
return Hi.apply(this, arguments);
},
}
),
kt(
{
target: "Set",
proto: !0,
real: !0,
forced: D,
},
{
deleteAll: function () {
return nn.apply(this, arguments);
},
}
);
var Xi = function (t) {
return Set.prototype.values.call(t);
};
kt(
{
target: "Set",
proto: !0,
real: !0,
forced: D,
},
{
every: function (t) {
var e = R(this),
r = Xi(e),
n = Zt(
t,
arguments.length > 1
? arguments[1]
: void 0,
3
);
return !Mr(
r,
function (t) {
if (!n(t, t, e)) return Mr.stop();
},
void 0,
!1,
!0
).stopped;
},
}
),
kt(
{
target: "Set",
proto: !0,
real: !0,
forced: D,
},
{
difference: function (t) {
var e = R(this),
r = new (sn(e, ot("Set")))(e),
n = Qt(r.delete);
return (
Mr(t, function (t) {
n.call(r, t);
}),
r
);
},
}
),
kt(
{
target: "Set",
proto: !0,
real: !0,
forced: D,
},
{
filter: function (t) {
var e = R(this),
r = Xi(e),
n = Zt(
t,
arguments.length > 1
? arguments[1]
: void 0,
3
),
o = new (sn(e, ot("Set")))(),
i = Qt(o.add);
return (
Mr(
r,
function (t) {
n(t, t, e) && i.call(o, t);
},
void 0,
!1,
!0
),
o
);
},
}
),
kt(
{
target: "Set",
proto: !0,
real: !0,
forced: D,
},
{
find: function (t) {
var e = R(this),
r = Xi(e),
n = Zt(
t,
arguments.length > 1
? arguments[1]
: void 0,
3
);
return Mr(
r,
function (t) {
if (n(t, t, e)) return Mr.stop(t);
},
void 0,
!1,
!0
).result;
},
}
),
kt(
{
target: "Set",
proto: !0,
real: !0,
forced: D,
},
{
intersection: function (t) {
var e = R(this),
r = new (sn(e, ot("Set")))(),
n = Qt(e.has),
o = Qt(r.add);
return (
Mr(t, function (t) {
n.call(e, t) && o.call(r, t);
}),
r
);
},
}
),
kt(
{
target: "Set",
proto: !0,
real: !0,
forced: D,
},
{
isDisjointFrom: function (t) {
var e = R(this),
r = Qt(e.has);
return !Mr(t, function (t) {
if (!0 === r.call(e, t)) return Mr.stop();
}).stopped;
},
}
),
kt(
{
target: "Set",
proto: !0,
real: !0,
forced: D,
},
{
isSubsetOf: function (t) {
var e = on(this),
r = R(t),
n = r.has;
return (
"function" != typeof n &&
((r = new (ot("Set"))(t)),
(n = Qt(r.has))),
!Mr(
e,
function (t) {
if (!1 === n.call(r, t))
return Mr.stop();
},
void 0,
!1,
!0
).stopped
);
},
}
),
kt(
{
target: "Set",
proto: !0,
real: !0,
forced: D,
},
{
isSupersetOf: function (t) {
var e = R(this),
r = Qt(e.has);
return !Mr(t, function (t) {
if (!1 === r.call(e, t)) return Mr.stop();
}).stopped;
},
}
),
kt(
{
target: "Set",
proto: !0,
real: !0,
forced: D,
},
{
join: function (t) {
var e = R(this),
r = Xi(e),
n = void 0 === t ? "," : String(t),
o = [];
return Mr(r, o.push, o, !1, !0), o.join(n);
},
}
),
kt(
{
target: "Set",
proto: !0,
real: !0,
forced: D,
},
{
map: function (t) {
var e = R(this),
r = Xi(e),
n = Zt(
t,
arguments.length > 1
? arguments[1]
: void 0,
3
),
o = new (sn(e, ot("Set")))(),
i = Qt(o.add);
return (
Mr(
r,
function (t) {
i.call(o, n(t, t, e));
},
void 0,
!1,
!0
),
o
);
},
}
),
kt(
{
target: "Set",
proto: !0,
real: !0,
forced: D,
},
{
reduce: function (t) {
var e = R(this),
r = Xi(e),
n = arguments.length < 2,
o = n ? void 0 : arguments[1];
if (
(Qt(t),
Mr(
r,
function (r) {
n
? ((n = !1), (o = r))
: (o = t(o, r, r, e));
},
void 0,
!1,
!0
),
n)
)
throw TypeError(
"Reduce of empty set with no initial value"
);
return o;
},
}
),
kt(
{
target: "Set",
proto: !0,
real: !0,
forced: D,
},
{
some: function (t) {
var e = R(this),
r = Xi(e),
n = Zt(
t,
arguments.length > 1
? arguments[1]
: void 0,
3
);
return Mr(
r,
function (t) {
if (n(t, t, e)) return Mr.stop();
},
void 0,
!1,
!0
).stopped;
},
}
),
kt(
{
target: "Set",
proto: !0,
real: !0,
forced: D,
},
{
symmetricDifference: function (t) {
var e = R(this),
r = new (sn(e, ot("Set")))(e),
n = Qt(r.delete),
o = Qt(r.add);
return (
Mr(t, function (t) {
n.call(r, t) || o.call(r, t);
}),
r
);
},
}
),
kt(
{
target: "Set",
proto: !0,
real: !0,
forced: D,
},
{
union: function (t) {
var e = R(this),
r = new (sn(e, ot("Set")))(e);
return Mr(t, Qt(r.add), r), r;
},
}
);
var Yi,
Ji,
Qi = ot("navigator", "userAgent") || "",
Zi = n.process,
ta = Zi && Zi.versions,
ea = ta && ta.v8;
ea
? (Ji = (Yi = ea.split("."))[0] + Yi[1])
: Qi &&
(!(Yi = Qi.match(/Edge\/(\d+)/)) || Yi[1] >= 74) &&
(Yi = Qi.match(/Chrome\/(\d+)/)) &&
(Ji = Yi[1]);
var ra = Ji && +Ji,
na = Dt("species"),
oa = Dt("isConcatSpreadable"),
ia = 9007199254740991,
aa = "Maximum allowed index exceeded",
ua =
ra >= 51 ||
!o(function () {
var t = [];
return (t[oa] = !1), t.concat()[0] !== t;
}),
sa =
ra >= 51 ||
!o(function () {
var t = [];
return (
((t.constructor = {})[na] = function () {
return {
foo: 1,
};
}),
1 !== t.concat(Boolean).foo
);
}),
ca = function (t) {
if (!g(t)) return !1;
var e = t[oa];
return void 0 !== e ? !!e : re(t);
};
kt(
{
target: "Array",
proto: !0,
forced: !ua || !sa,
},
{
concat: function (t) {
var e,
r,
n,
o,
i,
a = Lt(this),
u = oe(a, 0),
s = 0;
for (e = -1, n = arguments.length; e < n; e++)
if (ca((i = -1 === e ? a : arguments[e]))) {
if (s + (o = ct(i.length)) > ia)
throw TypeError(aa);
for (r = 0; r < o; r++, s++)
r in i && or(u, s, i[r]);
} else {
if (s >= ia) throw TypeError(aa);
or(u, s++, i);
}
return (u.length = s), u;
},
}
);
var fa = bt.f,
la = {}.toString,
ha =
"object" == typeof window &&
window &&
Object.getOwnPropertyNames
? Object.getOwnPropertyNames(window)
: [],
pa = {
f: function (t) {
return ha && "[object Window]" == la.call(t)
? (function (t) {
try {
return fa(t);
} catch (t) {
return ha.slice();
}
})(t)
: fa(v(t));
},
},
da = {
f: Dt,
},
va = P.f,
ga = function (t) {
var e = rt.Symbol || (rt.Symbol = {});
b(e, t) ||
va(e, t, {
value: da.f(t),
});
},
ya = ue.forEach,
ma = $("hidden"),
ba = "Symbol",
wa = Dt("toPrimitive"),
Sa = tt.set,
Ea = tt.getterFor(ba),
xa = Object.prototype,
Aa = n.Symbol,
Oa = ot("JSON", "stringify"),
Ra = O.f,
ja = P.f,
Pa = pa.f,
Ia = s.f,
Ta = q("symbols"),
ka = q("op-symbols"),
La = q("string-to-symbol-registry"),
Ua = q("symbol-to-string-registry"),
Ma = q("wks"),
_a = n.QObject,
Na = !_a || !_a.prototype || !_a.prototype.findChild,
Ca =
i &&
o(function () {
return (
7 !=
Ht(
ja({}, "a", {
get: function () {
return ja(this, "a", {
value: 7,
}).a;
},
})
).a
);
})
? function (t, e, r) {
var n = Ra(xa, e);
n && delete xa[e],
ja(t, e, r),
n && t !== xa && ja(xa, e, n);
}
: ja,
Fa = function (t, e) {
var r = (Ta[t] = Ht(Aa.prototype));
return (
Sa(r, {
type: ba,
tag: t,
description: e,
}),
i || (r.description = e),
r
);
},
Ba = Nt
? function (t) {
return "symbol" == typeof t;
}
: function (t) {
return Object(t) instanceof Aa;
},
Da = function (t, e, r) {
t === xa && Da(ka, e, r), R(t);
var n = y(e, !0);
return (
R(r),
b(Ta, n)
? (r.enumerable
? (b(t, ma) &&
t[ma][n] &&
(t[ma][n] = !1),
(r = Ht(r, {
enumerable: c(0, !1),
})))
: (b(t, ma) || ja(t, ma, c(1, {})),
(t[ma][n] = !0)),
Ca(t, n, r))
: ja(t, n, r)
);
},
qa = function (t, e) {
R(t);
var r = v(e),
n = qt(r).concat(Ga(r));
return (
ya(n, function (e) {
(i && !za.call(r, e)) || Da(t, e, r[e]);
}),
t
);
},
za = function (t) {
var e = y(t, !0),
r = Ia.call(this, e);
return (
!(this === xa && b(Ta, e) && !b(ka, e)) &&
(!(
r ||
!b(this, e) ||
!b(Ta, e) ||
(b(this, ma) && this[ma][e])
) ||
r)
);
},
Wa = function (t, e) {
var r = v(t),
n = y(e, !0);
if (r !== xa || !b(Ta, n) || b(ka, n)) {
var o = Ra(r, n);
return (
!o ||
!b(Ta, n) ||
(b(r, ma) && r[ma][n]) ||
(o.enumerable = !0),
o
);
}
},
Ka = function (t) {
var e = Pa(v(t)),
r = [];
return (
ya(e, function (t) {
b(Ta, t) || b(V, t) || r.push(t);
}),
r
);
},
Ga = function (t) {
var e = t === xa,
r = Pa(e ? ka : v(t)),
n = [];
return (
ya(r, function (t) {
!b(Ta, t) || (e && !b(xa, t)) || n.push(Ta[t]);
}),
n
);
};
if (
(_t ||
(et(
(Aa = function () {
if (this instanceof Aa)
throw TypeError(
"Symbol is not a constructor"
);
var t =
arguments.length &&
void 0 !== arguments[0]
? String(arguments[0])
: void 0,
e = K(t),
r = function t(r) {
this === xa && t.call(ka, r),
b(this, ma) &&
b(this[ma], e) &&
(this[ma][e] = !1),
Ca(this, e, c(1, r));
};
return (
i &&
Na &&
Ca(xa, e, {
configurable: !0,
set: r,
}),
Fa(e, t)
);
}).prototype,
"toString",
function () {
return Ea(this).tag;
}
),
et(Aa, "withoutSetter", function (t) {
return Fa(K(t), t);
}),
(s.f = za),
(P.f = Da),
(O.f = Wa),
(bt.f = pa.f = Ka),
(wt.f = Ga),
(da.f = function (t) {
return Fa(Dt(t), t);
}),
i &&
(ja(Aa.prototype, "description", {
configurable: !0,
get: function () {
return Ea(this).description;
},
}),
et(xa, "propertyIsEnumerable", za, {
unsafe: !0,
}))),
kt(
{
global: !0,
wrap: !0,
forced: !_t,
sham: !_t,
},
{
Symbol: Aa,
}
),
ya(qt(Ma), function (t) {
ga(t);
}),
kt(
{
target: ba,
stat: !0,
forced: !_t,
},
{
for: function (t) {
var e = String(t);
if (b(La, e)) return La[e];
var r = Aa(e);
return (La[e] = r), (Ua[r] = e), r;
},
keyFor: function (t) {
if (!Ba(t))
throw TypeError(t + " is not a symbol");
if (b(Ua, t)) return Ua[t];
},
useSetter: function () {
Na = !0;
},
useSimple: function () {
Na = !1;
},
}
),
kt(
{
target: "Object",
stat: !0,
forced: !_t,
sham: !i,
},
{
create: function (t, e) {
return void 0 === e ? Ht(t) : qa(Ht(t), e);
},
defineProperty: Da,
defineProperties: qa,
getOwnPropertyDescriptor: Wa,
}
),
kt(
{
target: "Object",
stat: !0,
forced: !_t,
},
{
getOwnPropertyNames: Ka,
getOwnPropertySymbols: Ga,
}
),
kt(
{
target: "Object",
stat: !0,
forced: o(function () {
wt.f(1);
}),
},
{
getOwnPropertySymbols: function (t) {
return wt.f(Lt(t));
},
}
),
Oa)
) {
var $a =
!_t ||
o(function () {
var t = Aa();
return (
"[null]" != Oa([t]) ||
"{}" !=
Oa({
a: t,
}) ||
"{}" != Oa(Object(t))
);
});
kt(
{
target: "JSON",
stat: !0,
forced: $a,
},
{
stringify: function (t, e, r) {
for (
var n, o = [t], i = 1;
arguments.length > i;
)
o.push(arguments[i++]);
if (((n = e), (g(e) || void 0 !== t) && !Ba(t)))
return (
re(e) ||
(e = function (t, e) {
if (
("function" == typeof n &&
(e = n.call(
this,
t,
e
)),
!Ba(e))
)
return e;
}),
(o[1] = e),
Oa.apply(null, o)
);
},
}
);
}
Aa.prototype[wa] || I(Aa.prototype, wa, Aa.prototype.valueOf),
_e(Aa, ba),
(V[ma] = !0),
ga("asyncIterator");
var Va = P.f,
Ha = n.Symbol;
if (
i &&
"function" == typeof Ha &&
(!("description" in Ha.prototype) ||
void 0 !== Ha().description)
) {
var Xa = {},
Ya = function () {
var t =
arguments.length < 1 ||
void 0 === arguments[0]
? void 0
: String(arguments[0]),
e =
this instanceof Ya
? new Ha(t)
: void 0 === t
? Ha()
: Ha(t);
return "" === t && (Xa[e] = !0), e;
};
Et(Ya, Ha);
var Ja = (Ya.prototype = Ha.prototype);
Ja.constructor = Ya;
var Qa = Ja.toString,
Za = "Symbol(test)" == String(Ha("test")),
tu = /^Symbol\((.*)\)[^)]+$/;
Va(Ja, "description", {
configurable: !0,
get: function () {
var t = g(this) ? this.valueOf() : this,
e = Qa.call(t);
if (b(Xa, t)) return "";
var r = Za ? e.slice(7, -1) : e.replace(tu, "$1");
return "" === r ? void 0 : r;
},
}),
kt(
{
global: !0,
forced: !0,
},
{
Symbol: Ya,
}
);
}
ga("hasInstance"),
ga("isConcatSpreadable"),
ga("iterator"),
ga("match"),
ga("matchAll"),
ga("replace"),
ga("search"),
ga("species"),
ga("split"),
ga("toPrimitive"),
ga("toStringTag"),
ga("unscopables"),
_e(Math, "Math", !0),
_e(n.JSON, "JSON", !0),
ga("asyncDispose"),
ga("dispose"),
ga("observable"),
ga("patternMatch"),
ga("replaceAll"),
da.f("asyncIterator");
var eu = Oe.codeAt;
kt(
{
target: "String",
proto: !0,
},
{
codePointAt: function (t) {
return eu(this, t);
},
}
),
ee("String", "codePointAt");
var ru,
nu = function (t) {
if (Xo(t))
throw TypeError(
"The method doesn't accept regular expressions"
);
return t;
},
ou = Dt("match"),
iu = function (t) {
var e = /./;
try {
"/./"[t](e);
} catch (r) {
try {
return (e[ou] = !1), "/./"[t](e);
} catch (t) {}
}
return !1;
},
au = O.f,
uu = "".endsWith,
su = Math.min,
cu = iu("endsWith"),
fu = !(
cu ||
((ru = au(String.prototype, "endsWith")),
!ru || ru.writable)
);
kt(
{
target: "String",
proto: !0,
forced: !fu && !cu,
},
{
endsWith: function (t) {
var e = String(d(this));
nu(t);
var r =
arguments.length > 1
? arguments[1]
: void 0,
n = ct(e.length),
o = void 0 === r ? n : su(ct(r), n),
i = String(t);
return uu
? uu.call(e, i, o)
: e.slice(o - i.length, o) === i;
},
}
),
ee("String", "endsWith");
var lu = String.fromCharCode,
hu = String.fromCodePoint;
kt(
{
target: "String",
stat: !0,
forced: !!hu && 1 != hu.length,
},
{
fromCodePoint: function (t) {
for (
var e, r = [], n = arguments.length, o = 0;
n > o;
) {
if (
((e = +arguments[o++]),
ht(e, 1114111) !== e)
)
throw RangeError(
e + " is not a valid code point"
);
r.push(
e < 65536
? lu(e)
: lu(
55296 + ((e -= 65536) >> 10),
(e % 1024) + 56320
)
);
}
return r.join("");
},
}
),
kt(
{
target: "String",
proto: !0,
forced: !iu("includes"),
},
{
includes: function (t) {
return !!~String(d(this)).indexOf(
nu(t),
arguments.length > 1 ? arguments[1] : void 0
);
},
}
),
ee("String", "includes");
var pu =
"".repeat ||
function (t) {
var e = String(d(this)),
r = "",
n = ut(t);
if (n < 0 || Infinity == n)
throw RangeError("Wrong number of repetitions");
for (; n > 0; (n >>>= 1) && (e += e))
1 & n && (r += e);
return r;
},
du = Math.ceil,
vu = function (t) {
return function (e, r, n) {
var o,
i,
a = String(d(e)),
u = a.length,
s = void 0 === n ? " " : String(n),
c = ct(r);
return c <= u || "" == s
? a
: ((i = pu.call(s, du((o = c - u) / s.length)))
.length > o && (i = i.slice(0, o)),
t ? a + i : i + a);
};
},
gu = {
start: vu(!1),
end: vu(!0),
},
yu =
/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(
Qi
),
mu = gu.start;
kt(
{
target: "String",
proto: !0,
forced: yu,
},
{
padStart: function (t) {
return mu(
this,
t,
arguments.length > 1 ? arguments[1] : void 0
);
},
}
),
ee("String", "padStart");
var bu = gu.end;
kt(
{
target: "String",
proto: !0,
forced: yu,
},
{
padEnd: function (t) {
return bu(
this,
t,
arguments.length > 1 ? arguments[1] : void 0
);
},
}
),
ee("String", "padEnd"),
kt(
{
target: "String",
stat: !0,
},
{
raw: function (t) {
for (
var e = v(t.raw),
r = ct(e.length),
n = arguments.length,
o = [],
i = 0;
r > i;
)
o.push(String(e[i++])),
i < n && o.push(String(arguments[i]));
return o.join("");
},
}
),
kt(
{
target: "String",
proto: !0,
},
{
repeat: pu,
}
),
ee("String", "repeat");
var wu = O.f,
Su = "".startsWith,
Eu = Math.min,
xu = iu("startsWith"),
Au =
!xu &&
!!(function () {
var t = wu(String.prototype, "startsWith");
return t && !t.writable;
})();
kt(
{
target: "String",
proto: !0,
forced: !Au && !xu,
},
{
startsWith: function (t) {
var e = String(d(this));
nu(t);
var r = ct(
Eu(
arguments.length > 1
? arguments[1]
: void 0,
e.length
)
),
n = String(t);
return Su
? Su.call(e, n, r)
: e.slice(r, r + n.length) === n;
},
}
),
ee("String", "startsWith");
var Ou = function (t) {
return o(function () {
return (
!!fn[t]() ||
"
" != "
"[t]() ||
fn[t].name !== t
);
});
},
Ru = vn.start,
ju = Ou("trimStart"),
Pu = ju
? function () {
return Ru(this);
}
: "".trimStart;
kt(
{
target: "String",
proto: !0,
forced: ju,
},
{
trimStart: Pu,
trimLeft: Pu,
}
),
ee("String", "trimLeft");
var Iu = vn.end,
Tu = Ou("trimEnd"),
ku = Tu
? function () {
return Iu(this);
}
: "".trimEnd;
kt(
{
target: "String",
proto: !0,
forced: Tu,
},
{
trimEnd: ku,
trimRight: ku,
}
),
ee("String", "trimRight");
var Lu = Dt("iterator"),
Uu = !o(function () {
var t = new URL("b?a=1&b=2&c=3", "http://a"),
e = t.searchParams,
r = "";
return (
(t.pathname = "c%20d"),
e.forEach(function (t, n) {
e.delete("b"), (r += n + t);
}),
!e.sort ||
"http://a/c%20d?a=1&c=3" !== t.href ||
"3" !== e.get("c") ||
"a=1" !== String(new URLSearchParams("?a=1")) ||
!e[Lu] ||
"a" !== new URL("https://a@b").username ||
"b" !==
new URLSearchParams(
new URLSearchParams("a=b")
).get("a") ||
"xn--e1aybc" !== new URL("http://тест").host ||
"#%D0%B1" !== new URL("http://a#б").hash ||
"a1c3" !== r ||
"x" !== new URL("http://x", void 0).host
);
}),
Mu = Object.assign,
_u = Object.defineProperty,
Nu =
!Mu ||
o(function () {
if (
i &&
1 !==
Mu(
{
b: 1,
},
Mu(
_u({}, "a", {
enumerable: !0,
get: function () {
_u(this, "b", {
value: 3,
enumerable: !1,
});
},
}),
{
b: 2,
}
)
).b
)
return !0;
var t = {},
e = {},
r = Symbol(),
n = "abcdefghijklmnopqrst";
return (
(t[r] = 7),
n.split("").forEach(function (t) {
e[t] = t;
}),
7 != Mu({}, t)[r] || qt(Mu({}, e)).join("") != n
);
})
? function (t, e) {
for (
var r = Lt(t),
n = arguments.length,
o = 1,
a = wt.f,
u = s.f;
n > o;
)
for (
var c,
f = p(arguments[o++]),
l = a
? qt(f).concat(a(f))
: qt(f),
h = l.length,
d = 0;
h > d;
)
(c = l[d++]),
(i && !u.call(f, c)) ||
(r[c] = f[c]);
return r;
}
: Mu,
Cu = 2147483647,
Fu = /[^\0-\u007E]/,
Bu = /[.\u3002\uFF0E\uFF61]/g,
Du = "Overflow: input needs wider integers to process",
qu = Math.floor,
zu = String.fromCharCode,
Wu = function (t) {
return t + 22 + 75 * (t < 26);
},
Ku = function (t, e, r) {
var n = 0;
for (
t = r ? qu(t / 700) : t >> 1, t += qu(t / e);
t > 455;
n += 36
)
t = qu(t / 35);
return qu(n + (36 * t) / (t + 38));
},
Gu = function (t) {
var e,
r,
n = [],
o = (t = (function (t) {
for (var e = [], r = 0, n = t.length; r < n; ) {
var o = t.charCodeAt(r++);
if (o >= 55296 && o <= 56319 && r < n) {
var i = t.charCodeAt(r++);
56320 == (64512 & i)
? e.push(
((1023 & o) << 10) +
(1023 & i) +
65536
)
: (e.push(o), r--);
} else e.push(o);
}
return e;
})(t)).length,
i = 128,
a = 0,
u = 72;
for (e = 0; e < t.length; e++)
(r = t[e]) < 128 && n.push(zu(r));
var s = n.length,
c = s;
for (s && n.push("-"); c < o; ) {
var f = Cu;
for (e = 0; e < t.length; e++)
(r = t[e]) >= i && r < f && (f = r);
var l = c + 1;
if (f - i > qu((Cu - a) / l)) throw RangeError(Du);
for (
a += (f - i) * l, i = f, e = 0;
e < t.length;
e++
) {
if ((r = t[e]) < i && ++a > Cu)
throw RangeError(Du);
if (r == i) {
for (var h = a, p = 36; ; p += 36) {
var d =
p <= u
? 1
: p >= u + 26
? 26
: p - u;
if (h < d) break;
var v = h - d,
g = 36 - d;
n.push(zu(Wu(d + (v % g)))),
(h = qu(v / g));
}
n.push(zu(Wu(h))),
(u = Ku(a, l, c == s)),
(a = 0),
++c;
}
}
++a, ++i;
}
return n.join("");
},
$u = ot("fetch"),
Vu = ot("Headers"),
Hu = Dt("iterator"),
Xu = "URLSearchParams",
Yu = "URLSearchParamsIterator",
Ju = tt.set,
Qu = tt.getterFor(Xu),
Zu = tt.getterFor(Yu),
ts = /\+/g,
es = Array(4),
rs = function (t) {
return (
es[t - 1] ||
(es[t - 1] = RegExp(
"((?:%[\\da-f]{2}){" + t + "})",
"gi"
))
);
},
ns = function (t) {
try {
return decodeURIComponent(t);
} catch (e) {
return t;
}
},
os = function (t) {
var e = t.replace(ts, " "),
r = 4;
try {
return decodeURIComponent(e);
} catch (t) {
for (; r; ) e = e.replace(rs(r--), ns);
return e;
}
},
is = /[!'()~]|%20/g,
as = {
"!": "%21",
"'": "%27",
"(": "%28",
")": "%29",
"~": "%7E",
"%20": "+",
},
us = function (t) {
return as[t];
},
ss = function (t) {
return encodeURIComponent(t).replace(is, us);
},
cs = function (t, e) {
if (e)
for (
var r, n, o = e.split("&"), i = 0;
i < o.length;
)
(r = o[i++]).length &&
((n = r.split("=")),
t.push({
key: os(n.shift()),
value: os(n.join("=")),
}));
},
fs = function (t) {
(this.entries.length = 0), cs(this.entries, t);
},
ls = function (t, e) {
if (t < e) throw TypeError("Not enough arguments");
},
hs = Be(
function (t, e) {
Ju(this, {
type: Yu,
iterator: on(Qu(t).entries),
kind: e,
});
},
"Iterator",
function () {
var t = Zu(this),
e = t.kind,
r = t.iterator.next(),
n = r.value;
return (
r.done ||
(r.value =
"keys" === e
? n.key
: "values" === e
? n.value
: [n.key, n.value]),
r
);
}
),
ps = function () {
_r(this, ps, Xu);
var t,
e,
r,
n,
o,
i,
a,
u,
s,
c = arguments.length > 0 ? arguments[0] : void 0,
f = this,
l = [];
if (
(Ju(f, {
type: Xu,
entries: l,
updateURL: function () {},
updateSearchParams: fs,
}),
void 0 !== c)
)
if (g(c))
if ("function" == typeof (t = lr(c)))
for (
r = (e = t.call(c)).next;
!(n = r.call(e)).done;
) {
if (
(a = (i = (o = on(R(n.value)))
.next).call(o)).done ||
(u = i.call(o)).done ||
!i.call(o).done
)
throw TypeError(
"Expected sequence with length 2"
);
l.push({
key: a.value + "",
value: u.value + "",
});
}
else
for (s in c)
b(c, s) &&
l.push({
key: s,
value: c[s] + "",
});
else
cs(
l,
"string" == typeof c
? "?" === c.charAt(0)
? c.slice(1)
: c
: c + ""
);
},
ds = ps.prototype;
Fr(
ds,
{
append: function (t, e) {
ls(arguments.length, 2);
var r = Qu(this);
r.entries.push({
key: t + "",
value: e + "",
}),
r.updateURL();
},
delete: function (t) {
ls(arguments.length, 1);
for (
var e = Qu(this),
r = e.entries,
n = t + "",
o = 0;
o < r.length;
)
r[o].key === n ? r.splice(o, 1) : o++;
e.updateURL();
},
get: function (t) {
ls(arguments.length, 1);
for (
var e = Qu(this).entries, r = t + "", n = 0;
n < e.length;
n++
)
if (e[n].key === r) return e[n].value;
return null;
},
getAll: function (t) {
ls(arguments.length, 1);
for (
var e = Qu(this).entries,
r = t + "",
n = [],
o = 0;
o < e.length;
o++
)
e[o].key === r && n.push(e[o].value);
return n;
},
has: function (t) {
ls(arguments.length, 1);
for (
var e = Qu(this).entries, r = t + "", n = 0;
n < e.length;
)
if (e[n++].key === r) return !0;
return !1;
},
set: function (t, e) {
ls(arguments.length, 1);
for (
var r,
n = Qu(this),
o = n.entries,
i = !1,
a = t + "",
u = e + "",
s = 0;
s < o.length;
s++
)
(r = o[s]).key === a &&
(i
? o.splice(s--, 1)
: ((i = !0), (r.value = u)));
i ||
o.push({
key: a,
value: u,
}),
n.updateURL();
},
sort: function () {
var t,
e,
r,
n = Qu(this),
o = n.entries,
i = o.slice();
for (o.length = 0, r = 0; r < i.length; r++) {
for (t = i[r], e = 0; e < r; e++)
if (o[e].key > t.key) {
o.splice(e, 0, t);
break;
}
e === r && o.push(t);
}
n.updateURL();
},
forEach: function (t) {
for (
var e,
r = Qu(this).entries,
n = Zt(
t,
arguments.length > 1
? arguments[1]
: void 0,
3
),
o = 0;
o < r.length;
)
n((e = r[o++]).value, e.key, this);
},
keys: function () {
return new hs(this, "keys");
},
values: function () {
return new hs(this, "values");
},
entries: function () {
return new hs(this, "entries");
},
},
{
enumerable: !0,
}
),
et(ds, Hu, ds.entries),
et(
ds,
"toString",
function () {
for (
var t, e = Qu(this).entries, r = [], n = 0;
n < e.length;
)
(t = e[n++]),
r.push(ss(t.key) + "=" + ss(t.value));
return r.join("&");
},
{
enumerable: !0,
}
),
_e(ps, Xu),
kt(
{
global: !0,
forced: !Uu,
},
{
URLSearchParams: ps,
}
),
Uu ||
"function" != typeof $u ||
"function" != typeof Vu ||
kt(
{
global: !0,
enumerable: !0,
forced: !0,
},
{
fetch: function (t) {
var e,
r,
n,
o = [t];
return (
arguments.length > 1 &&
(g((e = arguments[1])) &&
cr((r = e.body)) === Xu &&
((n = e.headers
? new Vu(e.headers)
: new Vu()).has(
"content-type"
) ||
n.set(
"content-type",
"application/x-www-form-urlencoded;charset=UTF-8"
),
(e = Ht(e, {
body: c(0, String(r)),
headers: c(0, n),
}))),
o.push(e)),
$u.apply(this, o)
);
},
}
);
var vs,
gs = {
URLSearchParams: ps,
getState: Qu,
},
ys = Oe.codeAt,
ms = n.URL,
bs = gs.URLSearchParams,
ws = gs.getState,
Ss = tt.set,
Es = tt.getterFor("URL"),
xs = Math.floor,
As = Math.pow,
Os = "Invalid scheme",
Rs = "Invalid host",
js = "Invalid port",
Ps = /[A-Za-z]/,
Is = /[\d+-.A-Za-z]/,
Ts = /\d/,
ks = /^(0x|0X)/,
Ls = /^[0-7]+$/,
Us = /^\d+$/,
Ms = /^[\dA-Fa-f]+$/,
_s = /[\u0000\u0009\u000A\u000D #%/:?@[\\]]/,
Ns = /[\u0000\u0009\u000A\u000D #/:?@[\\]]/,
Cs = /^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,
Fs = /[\u0009\u000A\u000D]/g,
Bs = function (t, e) {
var r, n, o;
if ("[" == e.charAt(0)) {
if ("]" != e.charAt(e.length - 1)) return Rs;
if (!(r = qs(e.slice(1, -1)))) return Rs;
t.host = r;
} else if (Xs(t)) {
if (
((e = (function (t) {
var e,
r,
n = [],
o = t
.toLowerCase()
.replace(Bu, ".")
.split(".");
for (e = 0; e < o.length; e++)
n.push(
Fu.test((r = o[e]))
? "xn--" + Gu(r)
: r
);
return n.join(".");
})(e)),
_s.test(e))
)
return Rs;
if (null === (r = Ds(e))) return Rs;
t.host = r;
} else {
if (Ns.test(e)) return Rs;
for (r = "", n = hr(e), o = 0; o < n.length; o++)
r += Vs(n[o], Ws);
t.host = r;
}
},
Ds = function (t) {
var e,
r,
n,
o,
i,
a,
u,
s = t.split(".");
if (
(s.length && "" == s[s.length - 1] && s.pop(),
(e = s.length) > 4)
)
return t;
for (r = [], n = 0; n < e; n++) {
if ("" == (o = s[n])) return t;
if (
((i = 10),
o.length > 1 &&
"0" == o.charAt(0) &&
((i = ks.test(o) ? 16 : 8),
(o = o.slice(8 == i ? 1 : 2))),
"" === o)
)
a = 0;
else {
if (!(10 == i ? Us : 8 == i ? Ls : Ms).test(o))
return t;
a = parseInt(o, i);
}
r.push(a);
}
for (n = 0; n < e; n++)
if (((a = r[n]), n == e - 1)) {
if (a >= As(256, 5 - e)) return null;
} else if (a > 255) return null;
for (u = r.pop(), n = 0; n < r.length; n++)
u += r[n] * As(256, 3 - n);
return u;
},
qs = function (t) {
var e,
r,
n,
o,
i,
a,
u,
s = [0, 0, 0, 0, 0, 0, 0, 0],
c = 0,
f = null,
l = 0,
h = function () {
return t.charAt(l);
};
if (":" == h()) {
if (":" != t.charAt(1)) return;
(l += 2), (f = ++c);
}
for (; h(); ) {
if (8 == c) return;
if (":" != h()) {
for (e = r = 0; r < 4 && Ms.test(h()); )
(e = 16 * e + parseInt(h(), 16)), l++, r++;
if ("." == h()) {
if (0 == r) return;
if (((l -= r), c > 6)) return;
for (n = 0; h(); ) {
if (((o = null), n > 0)) {
if (!("." == h() && n < 4)) return;
l++;
}
if (!Ts.test(h())) return;
for (; Ts.test(h()); ) {
if (
((i = parseInt(h(), 10)),
null === o)
)
o = i;
else {
if (0 == o) return;
o = 10 * o + i;
}
if (o > 255) return;
l++;
}
(s[c] = 256 * s[c] + o),
(2 != ++n && 4 != n) || c++;
}
if (4 != n) return;
break;
}
if (":" == h()) {
if ((l++, !h())) return;
} else if (h()) return;
s[c++] = e;
} else {
if (null !== f) return;
l++, (f = ++c);
}
}
if (null !== f)
for (a = c - f, c = 7; 0 != c && a > 0; )
(u = s[c]),
(s[c--] = s[f + a - 1]),
(s[f + --a] = u);
else if (8 != c) return;
return s;
},
zs = function (t) {
var e, r, n, o;
if ("number" == typeof t) {
for (e = [], r = 0; r < 4; r++)
e.unshift(t % 256), (t = xs(t / 256));
return e.join(".");
}
if ("object" == typeof t) {
for (
e = "",
n = (function (t) {
for (
var e = null,
r = 1,
n = null,
o = 0,
i = 0;
i < 8;
i++
)
0 !== t[i]
? (o > r && ((e = n), (r = o)),
(n = null),
(o = 0))
: (null === n && (n = i), ++o);
return o > r && ((e = n), (r = o)), e;
})(t),
r = 0;
r < 8;
r++
)
(o && 0 === t[r]) ||
(o && (o = !1),
n === r
? ((e += r ? ":" : "::"), (o = !0))
: ((e += t[r].toString(16)),
r < 7 && (e += ":")));
return "[" + e + "]";
}
return t;
},
Ws = {},
Ks = Nu({}, Ws, {
" ": 1,
'"': 1,
"<": 1,
">": 1,
"`": 1,
}),
Gs = Nu({}, Ks, {
"#": 1,
"?": 1,
"{": 1,
"}": 1,
}),
$s = Nu({}, Gs, {
"/": 1,
":": 1,
";": 1,
"=": 1,
"@": 1,
"[": 1,
"\\": 1,
"]": 1,
"^": 1,
"|": 1,
}),
Vs = function (t, e) {
var r = ys(t, 0);
return r > 32 && r < 127 && !b(e, t)
? t
: encodeURIComponent(t);
},
Hs = {
ftp: 21,
file: null,
http: 80,
https: 443,
ws: 80,
wss: 443,
},
Xs = function (t) {
return b(Hs, t.scheme);
},
Ys = function (t) {
return "" != t.username || "" != t.password;
},
Js = function (t) {
return (
!t.host || t.cannotBeABaseURL || "file" == t.scheme
);
},
Qs = function (t, e) {
var r;
return (
2 == t.length &&
Ps.test(t.charAt(0)) &&
(":" == (r = t.charAt(1)) || (!e && "|" == r))
);
},
Zs = function (t) {
var e;
return (
t.length > 1 &&
Qs(t.slice(0, 2)) &&
(2 == t.length ||
"/" === (e = t.charAt(2)) ||
"\\" === e ||
"?" === e ||
"#" === e)
);
},
tc = function (t) {
var e = t.path,
r = e.length;
!r ||
("file" == t.scheme && 1 == r && Qs(e[0], !0)) ||
e.pop();
},
ec = function (t) {
return "." === t || "%2e" === t.toLowerCase();
},
rc = {},
nc = {},
oc = {},
ic = {},
ac = {},
uc = {},
sc = {},
cc = {},
fc = {},
lc = {},
hc = {},
pc = {},
dc = {},
vc = {},
gc = {},
yc = {},
mc = {},
bc = {},
wc = {},
Sc = {},
Ec = {},
xc = function (t, e, r, n) {
var o,
i,
a,
u,
s,
c = r || rc,
f = 0,
l = "",
h = !1,
p = !1,
d = !1;
for (
r ||
((t.scheme = ""),
(t.username = ""),
(t.password = ""),
(t.host = null),
(t.port = null),
(t.path = []),
(t.query = null),
(t.fragment = null),
(t.cannotBeABaseURL = !1),
(e = e.replace(Cs, ""))),
e = e.replace(Fs, ""),
o = hr(e);
f <= o.length;
) {
switch (((i = o[f]), c)) {
case rc:
if (!i || !Ps.test(i)) {
if (r) return Os;
c = oc;
continue;
}
(l += i.toLowerCase()), (c = nc);
break;
case nc:
if (
i &&
(Is.test(i) ||
"+" == i ||
"-" == i ||
"." == i)
)
l += i.toLowerCase();
else {
if (":" != i) {
if (r) return Os;
(l = ""), (c = oc), (f = 0);
continue;
}
if (
r &&
(Xs(t) != b(Hs, l) ||
("file" == l &&
(Ys(t) ||
null !== t.port)) ||
("file" == t.scheme && !t.host))
)
return;
if (((t.scheme = l), r))
return void (
Xs(t) &&
Hs[t.scheme] == t.port &&
(t.port = null)
);
(l = ""),
"file" == t.scheme
? (c = vc)
: Xs(t) &&
n &&
n.scheme == t.scheme
? (c = ic)
: Xs(t)
? (c = cc)
: "/" == o[f + 1]
? ((c = ac), f++)
: ((t.cannotBeABaseURL = !0),
t.path.push(""),
(c = wc));
}
break;
case oc:
if (!n || (n.cannotBeABaseURL && "#" != i))
return Os;
if (n.cannotBeABaseURL && "#" == i) {
(t.scheme = n.scheme),
(t.path = n.path.slice()),
(t.query = n.query),
(t.fragment = ""),
(t.cannotBeABaseURL = !0),
(c = Ec);
break;
}
c = "file" == n.scheme ? vc : uc;
continue;
case ic:
if ("/" != i || "/" != o[f + 1]) {
c = uc;
continue;
}
(c = fc), f++;
break;
case ac:
if ("/" == i) {
c = lc;
break;
}
c = bc;
continue;
case uc:
if (((t.scheme = n.scheme), i == vs))
(t.username = n.username),
(t.password = n.password),
(t.host = n.host),
(t.port = n.port),
(t.path = n.path.slice()),
(t.query = n.query);
else if ("/" == i || ("\\" == i && Xs(t)))
c = sc;
else if ("?" == i)
(t.username = n.username),
(t.password = n.password),
(t.host = n.host),
(t.port = n.port),
(t.path = n.path.slice()),
(t.query = ""),
(c = Sc);
else {
if ("#" != i) {
(t.username = n.username),
(t.password = n.password),
(t.host = n.host),
(t.port = n.port),
(t.path = n.path.slice()),
t.path.pop(),
(c = bc);
continue;
}
(t.username = n.username),
(t.password = n.password),
(t.host = n.host),
(t.port = n.port),
(t.path = n.path.slice()),
(t.query = n.query),
(t.fragment = ""),
(c = Ec);
}
break;
case sc:
if (!Xs(t) || ("/" != i && "\\" != i)) {
if ("/" != i) {
(t.username = n.username),
(t.password = n.password),
(t.host = n.host),
(t.port = n.port),
(c = bc);
continue;
}
c = lc;
} else c = fc;
break;
case cc:
if (
((c = fc),
"/" != i || "/" != l.charAt(f + 1))
)
continue;
f++;
break;
case fc:
if ("/" != i && "\\" != i) {
c = lc;
continue;
}
break;
case lc:
if ("@" == i) {
h && (l = "%40" + l),
(h = !0),
(a = hr(l));
for (var v = 0; v < a.length; v++) {
var g = a[v];
if (":" != g || d) {
var y = Vs(g, $s);
d
? (t.password += y)
: (t.username += y);
} else d = !0;
}
l = "";
} else if (
i == vs ||
"/" == i ||
"?" == i ||
"#" == i ||
("\\" == i && Xs(t))
) {
if (h && "" == l)
return "Invalid authority";
(f -= hr(l).length + 1),
(l = ""),
(c = hc);
} else l += i;
break;
case hc:
case pc:
if (r && "file" == t.scheme) {
c = yc;
continue;
}
if (":" != i || p) {
if (
i == vs ||
"/" == i ||
"?" == i ||
"#" == i ||
("\\" == i && Xs(t))
) {
if (Xs(t) && "" == l) return Rs;
if (
r &&
"" == l &&
(Ys(t) || null !== t.port)
)
return;
if ((u = Bs(t, l))) return u;
if (((l = ""), (c = mc), r)) return;
continue;
}
"[" == i
? (p = !0)
: "]" == i && (p = !1),
(l += i);
} else {
if ("" == l) return Rs;
if ((u = Bs(t, l))) return u;
if (((l = ""), (c = dc), r == pc))
return;
}
break;
case dc:
if (!Ts.test(i)) {
if (
i == vs ||
"/" == i ||
"?" == i ||
"#" == i ||
("\\" == i && Xs(t)) ||
r
) {
if ("" != l) {
var m = parseInt(l, 10);
if (m > 65535) return js;
(t.port =
Xs(t) && m === Hs[t.scheme]
? null
: m),
(l = "");
}
if (r) return;
c = mc;
continue;
}
return js;
}
l += i;
break;
case vc:
if (
((t.scheme = "file"),
"/" == i || "\\" == i)
)
c = gc;
else {
if (!n || "file" != n.scheme) {
c = bc;
continue;
}
if (i == vs)
(t.host = n.host),
(t.path = n.path.slice()),
(t.query = n.query);
else if ("?" == i)
(t.host = n.host),
(t.path = n.path.slice()),
(t.query = ""),
(c = Sc);
else {
if ("#" != i) {
Zs(o.slice(f).join("")) ||
((t.host = n.host),
(t.path = n.path.slice()),
tc(t)),
(c = bc);
continue;
}
(t.host = n.host),
(t.path = n.path.slice()),
(t.query = n.query),
(t.fragment = ""),
(c = Ec);
}
}
break;
case gc:
if ("/" == i || "\\" == i) {
c = yc;
break;
}
n &&
"file" == n.scheme &&
!Zs(o.slice(f).join("")) &&
(Qs(n.path[0], !0)
? t.path.push(n.path[0])
: (t.host = n.host)),
(c = bc);
continue;
case yc:
if (
i == vs ||
"/" == i ||
"\\" == i ||
"?" == i ||
"#" == i
) {
if (!r && Qs(l)) c = bc;
else if ("" == l) {
if (((t.host = ""), r)) return;
c = mc;
} else {
if ((u = Bs(t, l))) return u;
if (
("localhost" == t.host &&
(t.host = ""),
r)
)
return;
(l = ""), (c = mc);
}
continue;
}
l += i;
break;
case mc:
if (Xs(t)) {
if (((c = bc), "/" != i && "\\" != i))
continue;
} else if (r || "?" != i)
if (r || "#" != i) {
if (i != vs && ((c = bc), "/" != i))
continue;
} else (t.fragment = ""), (c = Ec);
else (t.query = ""), (c = Sc);
break;
case bc:
if (
i == vs ||
"/" == i ||
("\\" == i && Xs(t)) ||
(!r && ("?" == i || "#" == i))
) {
if (
(".." ===
(s = (s = l).toLowerCase()) ||
"%2e." === s ||
".%2e" === s ||
"%2e%2e" === s
? (tc(t),
"/" == i ||
("\\" == i && Xs(t)) ||
t.path.push(""))
: ec(l)
? "/" == i ||
("\\" == i && Xs(t)) ||
t.path.push("")
: ("file" == t.scheme &&
!t.path.length &&
Qs(l) &&
(t.host && (t.host = ""),
(l = l.charAt(0) + ":")),
t.path.push(l)),
(l = ""),
"file" == t.scheme &&
(i == vs ||
"?" == i ||
"#" == i))
)
for (
;
t.path.length > 1 &&
"" === t.path[0];
)
t.path.shift();
"?" == i
? ((t.query = ""), (c = Sc))
: "#" == i &&
((t.fragment = ""), (c = Ec));
} else l += Vs(i, Gs);
break;
case wc:
"?" == i
? ((t.query = ""), (c = Sc))
: "#" == i
? ((t.fragment = ""), (c = Ec))
: i != vs && (t.path[0] += Vs(i, Ws));
break;
case Sc:
r || "#" != i
? i != vs &&
("'" == i && Xs(t)
? (t.query += "%27")
: (t.query +=
"#" == i
? "%23"
: Vs(i, Ws)))
: ((t.fragment = ""), (c = Ec));
break;
case Ec:
i != vs && (t.fragment += Vs(i, Ks));
}
f++;
}
},
Ac = function (t) {
var e,
r,
n = _r(this, Ac, "URL"),
o = arguments.length > 1 ? arguments[1] : void 0,
a = String(t),
u = Ss(n, {
type: "URL",
});
if (void 0 !== o)
if (o instanceof Ac) e = Es(o);
else if ((r = xc((e = {}), String(o))))
throw TypeError(r);
if ((r = xc(u, a, null, e))) throw TypeError(r);
var s = (u.searchParams = new bs()),
c = ws(s);
c.updateSearchParams(u.query),
(c.updateURL = function () {
u.query = String(s) || null;
}),
i ||
((n.href = Rc.call(n)),
(n.origin = jc.call(n)),
(n.protocol = Pc.call(n)),
(n.username = Ic.call(n)),
(n.password = Tc.call(n)),
(n.host = kc.call(n)),
(n.hostname = Lc.call(n)),
(n.port = Uc.call(n)),
(n.pathname = Mc.call(n)),
(n.search = _c.call(n)),
(n.searchParams = Nc.call(n)),
(n.hash = Cc.call(n)));
},
Oc = Ac.prototype,
Rc = function () {
var t = Es(this),
e = t.scheme,
r = t.username,
n = t.password,
o = t.host,
i = t.port,
a = t.path,
u = t.query,
s = t.fragment,
c = e + ":";
return (
null !== o
? ((c += "//"),
Ys(t) && (c += r + (n ? ":" + n : "") + "@"),
(c += zs(o)),
null !== i && (c += ":" + i))
: "file" == e && (c += "//"),
(c += t.cannotBeABaseURL
? a[0]
: a.length
? "/" + a.join("/")
: ""),
null !== u && (c += "?" + u),
null !== s && (c += "#" + s),
c
);
},
jc = function () {
var t = Es(this),
e = t.scheme,
r = t.port;
if ("blob" == e)
try {
return new URL(e.path[0]).origin;
} catch (t) {
return "null";
}
return "file" != e && Xs(t)
? e +
"://" +
zs(t.host) +
(null !== r ? ":" + r : "")
: "null";
},
Pc = function () {
return Es(this).scheme + ":";
},
Ic = function () {
return Es(this).username;
},
Tc = function () {
return Es(this).password;
},
kc = function () {
var t = Es(this),
e = t.host,
r = t.port;
return null === e
? ""
: null === r
? zs(e)
: zs(e) + ":" + r;
},
Lc = function () {
var t = Es(this).host;
return null === t ? "" : zs(t);
},
Uc = function () {
var t = Es(this).port;
return null === t ? "" : String(t);
},
Mc = function () {
var t = Es(this),
e = t.path;
return t.cannotBeABaseURL
? e[0]
: e.length
? "/" + e.join("/")
: "";
},
_c = function () {
var t = Es(this).query;
return t ? "?" + t : "";
},
Nc = function () {
return Es(this).searchParams;
},
Cc = function () {
var t = Es(this).fragment;
return t ? "#" + t : "";
},
Fc = function (t, e) {
return {
get: t,
set: e,
configurable: !0,
enumerable: !0,
};
};
if (
(i &&
zt(Oc, {
href: Fc(Rc, function (t) {
var e = Es(this),
r = String(t),
n = xc(e, r);
if (n) throw TypeError(n);
ws(e.searchParams).updateSearchParams(e.query);
}),
origin: Fc(jc),
protocol: Fc(Pc, function (t) {
var e = Es(this);
xc(e, String(t) + ":", rc);
}),
username: Fc(Ic, function (t) {
var e = Es(this),
r = hr(String(t));
if (!Js(e)) {
e.username = "";
for (var n = 0; n < r.length; n++)
e.username += Vs(r[n], $s);
}
}),
password: Fc(Tc, function (t) {
var e = Es(this),
r = hr(String(t));
if (!Js(e)) {
e.password = "";
for (var n = 0; n < r.length; n++)
e.password += Vs(r[n], $s);
}
}),
host: Fc(kc, function (t) {
var e = Es(this);
e.cannotBeABaseURL || xc(e, String(t), hc);
}),
hostname: Fc(Lc, function (t) {
var e = Es(this);
e.cannotBeABaseURL || xc(e, String(t), pc);
}),
port: Fc(Uc, function (t) {
var e = Es(this);
Js(e) ||
("" == (t = String(t))
? (e.port = null)
: xc(e, t, dc));
}),
pathname: Fc(Mc, function (t) {
var e = Es(this);
e.cannotBeABaseURL ||
((e.path = []), xc(e, t + "", mc));
}),
search: Fc(_c, function (t) {
var e = Es(this);
"" == (t = String(t))
? (e.query = null)
: ("?" == t.charAt(0) && (t = t.slice(1)),
(e.query = ""),
xc(e, t, Sc)),
ws(e.searchParams).updateSearchParams(
e.query
);
}),
searchParams: Fc(Nc),
hash: Fc(Cc, function (t) {
var e = Es(this);
"" != (t = String(t))
? ("#" == t.charAt(0) && (t = t.slice(1)),
(e.fragment = ""),
xc(e, t, Ec))
: (e.fragment = null);
}),
}),
et(
Oc,
"toJSON",
function () {
return Rc.call(this);
},
{
enumerable: !0,
}
),
et(
Oc,
"toString",
function () {
return Rc.call(this);
},
{
enumerable: !0,
}
),
ms)
) {
var Bc = ms.createObjectURL,
Dc = ms.revokeObjectURL;
Bc &&
et(Ac, "createObjectURL", function (t) {
return Bc.apply(ms, arguments);
}),
Dc &&
et(Ac, "revokeObjectURL", function (t) {
return Dc.apply(ms, arguments);
});
}
_e(Ac, "URL"),
kt(
{
global: !0,
forced: !Uu,
sham: !i,
},
{
URL: Ac,
}
),
kt(
{
target: "URL",
proto: !0,
enumerable: !0,
},
{
toJSON: function () {
return URL.prototype.toString.call(this);
},
}
),
kt(
{
target: "WeakMap",
stat: !0,
},
{
from: en,
}
),
kt(
{
target: "WeakMap",
stat: !0,
},
{
of: rn,
}
),
kt(
{
target: "WeakMap",
proto: !0,
real: !0,
forced: D,
},
{
deleteAll: function () {
return nn.apply(this, arguments);
},
}
),
kt(
{
target: "WeakMap",
proto: !0,
real: !0,
forced: D,
},
{
upsert: cn,
}
),
Cr(
"WeakSet",
function (t) {
return function () {
return t(
this,
arguments.length ? arguments[0] : void 0
);
};
},
mo
),
kt(
{
target: "WeakSet",
proto: !0,
real: !0,
forced: D,
},
{
addAll: function () {
return Hi.apply(this, arguments);
},
}
),
kt(
{
target: "WeakSet",
proto: !0,
real: !0,
forced: D,
},
{
deleteAll: function () {
return nn.apply(this, arguments);
},
}
),
kt(
{
target: "WeakSet",
stat: !0,
},
{
from: en,
}
),
kt(
{
target: "WeakSet",
stat: !0,
},
{
of: rn,
}
);
var qc,
zc,
Wc,
Kc = n.Promise,
Gc = /(iphone|ipod|ipad).*applewebkit/i.test(Qi),
$c = n.location,
Vc = n.setImmediate,
Hc = n.clearImmediate,
Xc = n.process,
Yc = n.MessageChannel,
Jc = n.Dispatch,
Qc = 0,
Zc = {},
tf = function (t) {
if (Zc.hasOwnProperty(t)) {
var e = Zc[t];
delete Zc[t], e();
}
},
ef = function (t) {
return function () {
tf(t);
};
},
rf = function (t) {
tf(t.data);
},
nf = function (t) {
n.postMessage(t + "", $c.protocol + "//" + $c.host);
};
(Vc && Hc) ||
((Vc = function (t) {
for (var e = [], r = 1; arguments.length > r; )
e.push(arguments[r++]);
return (
(Zc[++Qc] = function () {
("function" == typeof t
? t
: Function(t)
).apply(void 0, e);
}),
qc(Qc),
Qc
);
}),
(Hc = function (t) {
delete Zc[t];
}),
"process" == l(Xc)
? (qc = function (t) {
Xc.nextTick(ef(t));
})
: Jc && Jc.now
? (qc = function (t) {
Jc.now(ef(t));
})
: Yc && !Gc
? ((Wc = (zc = new Yc()).port2),
(zc.port1.onmessage = rf),
(qc = Zt(Wc.postMessage, Wc, 1)))
: !n.addEventListener ||
"function" != typeof postMessage ||
n.importScripts ||
o(nf) ||
"file:" === $c.protocol
? (qc =
"onreadystatechange" in E("script")
? function (t) {
Wt.appendChild(
E("script")
).onreadystatechange = function () {
Wt.removeChild(this), tf(t);
};
}
: function (t) {
setTimeout(ef(t), 0);
})
: ((qc = nf), n.addEventListener("message", rf, !1)));
var of,
af,
uf,
sf,
cf,
ff,
lf,
hf,
pf = {
set: Vc,
clear: Hc,
},
df = O.f,
vf = pf.set,
gf = n.MutationObserver || n.WebKitMutationObserver,
yf = n.process,
mf = n.Promise,
bf = "process" == l(yf),
wf = df(n, "queueMicrotask"),
Sf = wf && wf.value;
Sf ||
((of = function () {
var t, e;
for (bf && (t = yf.domain) && t.exit(); af; ) {
(e = af.fn), (af = af.next);
try {
e();
} catch (t) {
throw (af ? sf() : (uf = void 0), t);
}
}
(uf = void 0), t && t.enter();
}),
bf
? (sf = function () {
yf.nextTick(of);
})
: gf && !Gc
? ((cf = !0),
(ff = document.createTextNode("")),
new gf(of).observe(ff, {
characterData: !0,
}),
(sf = function () {
ff.data = cf = !cf;
}))
: mf && mf.resolve
? ((lf = mf.resolve(void 0)),
(hf = lf.then),
(sf = function () {
hf.call(lf, of);
}))
: (sf = function () {
vf.call(n, of);
}));
var Ef,
xf,
Af,
Of,
Rf =
Sf ||
function (t) {
var e = {
fn: t,
next: void 0,
};
uf && (uf.next = e),
af || ((af = e), sf()),
(uf = e);
},
jf = function (t) {
var e, r;
(this.promise = new t(function (t, n) {
if (void 0 !== e || void 0 !== r)
throw TypeError("Bad Promise constructor");
(e = t), (r = n);
})),
(this.resolve = Qt(e)),
(this.reject = Qt(r));
},
Pf = {
f: function (t) {
return new jf(t);
},
},
If = function (t, e) {
if ((R(t), g(e) && e.constructor === t)) return e;
var r = Pf.f(t);
return (0, r.resolve)(e), r.promise;
},
Tf = function (t) {
try {
return {
error: !1,
value: t(),
};
} catch (t) {
return {
error: !0,
value: t,
};
}
},
kf = pf.set,
Lf = Dt("species"),
Uf = "Promise",
Mf = tt.get,
_f = tt.set,
Nf = tt.getterFor(Uf),
Cf = Kc,
Ff = n.TypeError,
Bf = n.document,
Df = n.process,
qf = ot("fetch"),
zf = Pf.f,
Wf = zf,
Kf = "process" == l(Df),
Gf = !!(Bf && Bf.createEvent && n.dispatchEvent),
$f = "unhandledrejection",
Vf = It(Uf, function () {
if (C(Cf) === String(Cf)) {
if (66 === ra) return !0;
if (
!Kf &&
"function" != typeof PromiseRejectionEvent
)
return !0;
}
if (ra >= 51 && /native code/.test(Cf)) return !1;
var t = Cf.resolve(1),
e = function (t) {
t(
function () {},
function () {}
);
};
return (
((t.constructor = {})[Lf] = e),
!(t.then(function () {}) instanceof e)
);
}),
Hf =
Vf ||
!yr(function (t) {
Cf.all(t).catch(function () {});
}),
Xf = function (t) {
var e;
return (
!(!g(t) || "function" != typeof (e = t.then)) && e
);
},
Yf = function (t, e, r) {
if (!e.notified) {
e.notified = !0;
var n = e.reactions;
Rf(function () {
for (
var o = e.value, i = 1 == e.state, a = 0;
n.length > a;
) {
var u,
s,
c,
f = n[a++],
l = i ? f.ok : f.fail,
h = f.resolve,
p = f.reject,
d = f.domain;
try {
l
? (i ||
(2 === e.rejection &&
tl(t, e),
(e.rejection = 1)),
!0 === l
? (u = o)
: (d && d.enter(),
(u = l(o)),
d && (d.exit(), (c = !0))),
u === f.promise
? p(Ff("Promise-chain cycle"))
: (s = Xf(u))
? s.call(u, h, p)
: h(u))
: p(o);
} catch (t) {
d && !c && d.exit(), p(t);
}
}
(e.reactions = []),
(e.notified = !1),
r && !e.rejection && Qf(t, e);
});
}
},
Jf = function (t, e, r) {
var o, i;
Gf
? (((o = Bf.createEvent("Event")).promise = e),
(o.reason = r),
o.initEvent(t, !1, !0),
n.dispatchEvent(o))
: (o = {
promise: e,
reason: r,
}),
(i = n["on" + t])
? i(o)
: t === $f &&
(function (t, e) {
var r = n.console;
r &&
r.error &&
(1 === arguments.length
? r.error(t)
: r.error(t, e));
})("Unhandled promise rejection", r);
},
Qf = function (t, e) {
kf.call(n, function () {
var r,
n = e.value;
if (
Zf(e) &&
((r = Tf(function () {
Kf
? Df.emit("unhandledRejection", n, t)
: Jf($f, t, n);
})),
(e.rejection = Kf || Zf(e) ? 2 : 1),
r.error)
)
throw r.value;
});
},
Zf = function (t) {
return 1 !== t.rejection && !t.parent;
},
tl = function (t, e) {
kf.call(n, function () {
Kf
? Df.emit("rejectionHandled", t)
: Jf("rejectionhandled", t, e.value);
});
},
el = function (t, e, r, n) {
return function (o) {
t(e, r, o, n);
};
},
rl = function (t, e, r, n) {
e.done ||
((e.done = !0),
n && (e = n),
(e.value = r),
(e.state = 2),
Yf(t, e, !0));
},
nl = function t(e, r, n, o) {
if (!r.done) {
(r.done = !0), o && (r = o);
try {
if (e === n)
throw Ff(
"Promise can't be resolved itself"
);
var i = Xf(n);
i
? Rf(function () {
var o = {
done: !1,
};
try {
i.call(
n,
el(t, e, o, r),
el(rl, e, o, r)
);
} catch (t) {
rl(e, o, t, r);
}
})
: ((r.value = n),
(r.state = 1),
Yf(e, r, !1));
} catch (t) {
rl(
e,
{
done: !1,
},
t,
r
);
}
}
};
Vf &&
((Cf = function (t) {
_r(this, Cf, Uf), Qt(t), Ef.call(this);
var e = Mf(this);
try {
t(el(nl, this, e), el(rl, this, e));
} catch (t) {
rl(this, e, t);
}
}),
((Ef = function (t) {
_f(this, {
type: Uf,
done: !1,
notified: !1,
parent: !1,
reactions: [],
rejection: !1,
state: 0,
value: void 0,
});
}).prototype = Fr(Cf.prototype, {
then: function (t, e) {
var r = Nf(this),
n = zf(sn(this, Cf));
return (
(n.ok = "function" != typeof t || t),
(n.fail = "function" == typeof e && e),
(n.domain = Kf ? Df.domain : void 0),
(r.parent = !0),
r.reactions.push(n),
0 != r.state && Yf(this, r, !1),
n.promise
);
},
catch: function (t) {
return this.then(void 0, t);
},
})),
(xf = function () {
var t = new Ef(),
e = Mf(t);
(this.promise = t),
(this.resolve = el(nl, t, e)),
(this.reject = el(rl, t, e));
}),
(Pf.f = zf =
function (t) {
return t === Cf || t === Af ? new xf(t) : Wf(t);
}),
"function" == typeof Kc &&
((Of = Kc.prototype.then),
et(
Kc.prototype,
"then",
function (t, e) {
var r = this;
return new Cf(function (t, e) {
Of.call(r, t, e);
}).then(t, e);
},
{
unsafe: !0,
}
),
"function" == typeof qf &&
kt(
{
global: !0,
enumerable: !0,
forced: !0,
},
{
fetch: function (t) {
return If(Cf, qf.apply(n, arguments));
},
}
))),
kt(
{
global: !0,
wrap: !0,
forced: Vf,
},
{
Promise: Cf,
}
),
_e(Cf, Uf, !1),
Dr(Uf),
(Af = ot(Uf)),
kt(
{
target: Uf,
stat: !0,
forced: Vf,
},
{
reject: function (t) {
var e = zf(this);
return e.reject.call(void 0, t), e.promise;
},
}
),
kt(
{
target: Uf,
stat: !0,
forced: Vf,
},
{
resolve: function (t) {
return If(this, t);
},
}
),
kt(
{
target: Uf,
stat: !0,
forced: Hf,
},
{
all: function (t) {
var e = this,
r = zf(e),
n = r.resolve,
o = r.reject,
i = Tf(function () {
var r = Qt(e.resolve),
i = [],
a = 0,
u = 1;
Mr(t, function (t) {
var s = a++,
c = !1;
i.push(void 0),
u++,
r.call(e, t).then(function (t) {
c ||
((c = !0),
(i[s] = t),
--u || n(i));
}, o);
}),
--u || n(i);
});
return i.error && o(i.value), r.promise;
},
race: function (t) {
var e = this,
r = zf(e),
n = r.reject,
o = Tf(function () {
var o = Qt(e.resolve);
Mr(t, function (t) {
o.call(e, t).then(r.resolve, n);
});
});
return o.error && n(o.value), r.promise;
},
}
),
kt(
{
target: "Promise",
stat: !0,
},
{
allSettled: function (t) {
var e = this,
r = Pf.f(e),
n = r.resolve,
o = r.reject,
i = Tf(function () {
var r = Qt(e.resolve),
o = [],
i = 0,
a = 1;
Mr(t, function (t) {
var u = i++,
s = !1;
o.push(void 0),
a++,
r.call(e, t).then(
function (t) {
s ||
((s = !0),
(o[u] = {
status: "fulfilled",
value: t,
}),
--a || n(o));
},
function (t) {
s ||
((s = !0),
(o[u] = {
status: "rejected",
reason: t,
}),
--a || n(o));
}
);
}),
--a || n(o);
});
return i.error && o(i.value), r.promise;
},
}
);
var ol =
!!Kc &&
o(function () {
Kc.prototype.finally.call(
{
then: function () {},
},
function () {}
);
});
kt(
{
target: "Promise",
proto: !0,
real: !0,
forced: ol,
},
{
finally: function (t) {
var e = sn(this, ot("Promise")),
r = "function" == typeof t;
return this.then(
r
? function (r) {
return If(e, t()).then(function () {
return r;
});
}
: t,
r
? function (r) {
return If(e, t()).then(function () {
throw r;
});
}
: t
);
},
}
),
"function" != typeof Kc ||
Kc.prototype.finally ||
et(
Kc.prototype,
"finally",
ot("Promise").prototype.finally
);
var il = tt.set,
al = tt.getterFor("AggregateError"),
ul = function (t, e) {
var r = this;
if (!(r instanceof ul)) return new ul(t, e);
qe && (r = qe(new Error(e), Ie(r)));
var n = [];
return (
Mr(t, n.push, n),
i
? il(r, {
errors: n,
type: "AggregateError",
})
: (r.errors = n),
void 0 !== e && I(r, "message", String(e)),
r
);
};
(ul.prototype = Ht(Error.prototype, {
constructor: c(5, ul),
message: c(5, ""),
name: c(5, "AggregateError"),
})),
i &&
P.f(ul.prototype, "errors", {
get: function () {
return al(this).errors;
},
configurable: !0,
}),
kt(
{
global: !0,
},
{
AggregateError: ul,
}
),
kt(
{
target: "Promise",
stat: !0,
},
{
try: function (t) {
var e = Pf.f(this),
r = Tf(t);
return (
(r.error ? e.reject : e.resolve)(r.value),
e.promise
);
},
}
);
var sl = "No one promise resolved";
kt(
{
target: "Promise",
stat: !0,
},
{
any: function (t) {
var e = this,
r = Pf.f(e),
n = r.resolve,
o = r.reject,
i = Tf(function () {
var r = Qt(e.resolve),
i = [],
a = 0,
u = 1,
s = !1;
Mr(t, function (t) {
var c = a++,
f = !1;
i.push(void 0),
u++,
r.call(e, t).then(
function (t) {
f || s || ((s = !0), n(t));
},
function (t) {
f ||
s ||
((f = !0),
(i[c] = t),
--u ||
o(
new (ot(
"AggregateError"
))(i, sl)
));
}
);
}),
--u ||
o(
new (ot("AggregateError"))(
i,
sl
)
);
});
return i.error && o(i.value), r.promise;
},
}
),
ee("Promise", "finally");
var cl = "URLSearchParams" in self,
fl = "Symbol" in self && "iterator" in Symbol,
ll =
"FileReader" in self &&
"Blob" in self &&
(function () {
try {
return new Blob(), !0;
} catch (t) {
return !1;
}
})(),
hl = "FormData" in self,
pl = "ArrayBuffer" in self;
if (pl)
var dl = [
"[object Int8Array]",
"[object Uint8Array]",
"[object Uint8ClampedArray]",
"[object Int16Array]",
"[object Uint16Array]",
"[object Int32Array]",
"[object Uint32Array]",
"[object Float32Array]",
"[object Float64Array]",
],
vl =
ArrayBuffer.isView ||
function (t) {
return (
t &&
dl.indexOf(
Object.prototype.toString.call(t)
) > -1
);
};
function gl(t) {
if (
("string" != typeof t && (t = String(t)),
/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(t))
)
throw new TypeError(
"Invalid character in header field name"
);
return t.toLowerCase();
}
function yl(t) {
return "string" != typeof t && (t = String(t)), t;
}
function ml(t) {
var e = {
next: function () {
var e = t.shift();
return {
done: void 0 === e,
value: e,
};
},
};
return (
fl &&
(e[Symbol.iterator] = function () {
return e;
}),
e
);
}
function bl(t) {
(this.map = {}),
t instanceof bl
? t.forEach(function (t, e) {
this.append(e, t);
}, this)
: Array.isArray(t)
? t.forEach(function (t) {
this.append(t[0], t[1]);
}, this)
: t &&
Object.getOwnPropertyNames(t).forEach(function (
e
) {
this.append(e, t[e]);
},
this);
}
function wl(t) {
if (t.bodyUsed)
return Promise.reject(new TypeError("Already read"));
t.bodyUsed = !0;
}
function Sl(t) {
return new Promise(function (e, r) {
(t.onload = function () {
e(t.result);
}),
(t.onerror = function () {
r(t.error);
});
});
}
function El(t) {
var e = new FileReader(),
r = Sl(e);
return e.readAsArrayBuffer(t), r;
}
function xl(t) {
if (t.slice) return t.slice(0);
var e = new Uint8Array(t.byteLength);
return e.set(new Uint8Array(t)), e.buffer;
}
function Al() {
return (
(this.bodyUsed = !1),
(this._initBody = function (t) {
var e;
(this._bodyInit = t),
t
? "string" == typeof t
? (this._bodyText = t)
: ll && Blob.prototype.isPrototypeOf(t)
? (this._bodyBlob = t)
: hl &&
FormData.prototype.isPrototypeOf(t)
? (this._bodyFormData = t)
: cl &&
URLSearchParams.prototype.isPrototypeOf(
t
)
? (this._bodyText = t.toString())
: pl &&
ll &&
(e = t) &&
DataView.prototype.isPrototypeOf(e)
? ((this._bodyArrayBuffer = xl(
t.buffer
)),
(this._bodyInit = new Blob([
this._bodyArrayBuffer,
])))
: pl &&
(ArrayBuffer.prototype.isPrototypeOf(
t
) ||
vl(t))
? (this._bodyArrayBuffer = xl(t))
: (this._bodyText = t =
Object.prototype.toString.call(t))
: (this._bodyText = ""),
this.headers.get("content-type") ||
("string" == typeof t
? this.headers.set(
"content-type",
"text/plain;charset=UTF-8"
)
: this._bodyBlob && this._bodyBlob.type
? this.headers.set(
"content-type",
this._bodyBlob.type
)
: cl &&
URLSearchParams.prototype.isPrototypeOf(
t
) &&
this.headers.set(
"content-type",
"application/x-www-form-urlencoded;charset=UTF-8"
));
}),
ll &&
((this.blob = function () {
var t = wl(this);
if (t) return t;
if (this._bodyBlob)
return Promise.resolve(this._bodyBlob);
if (this._bodyArrayBuffer)
return Promise.resolve(
new Blob([this._bodyArrayBuffer])
);
if (this._bodyFormData)
throw new Error(
"could not read FormData body as blob"
);
return Promise.resolve(
new Blob([this._bodyText])
);
}),
(this.arrayBuffer = function () {
return this._bodyArrayBuffer
? wl(this) ||
Promise.resolve(this._bodyArrayBuffer)
: this.blob().then(El);
})),
(this.text = function () {
var t = wl(this);
if (t) return t;
if (this._bodyBlob)
return (function (t) {
var e = new FileReader(),
r = Sl(e);
return e.readAsText(t), r;
})(this._bodyBlob);
if (this._bodyArrayBuffer)
return Promise.resolve(
(function (t) {
for (
var e = new Uint8Array(t),
r = new Array(e.length),
n = 0;
n < e.length;
n++
)
r[n] = String.fromCharCode(e[n]);
return r.join("");
})(this._bodyArrayBuffer)
);
if (this._bodyFormData)
throw new Error(
"could not read FormData body as text"
);
return Promise.resolve(this._bodyText);
}),
hl &&
(this.formData = function () {
return this.text().then(jl);
}),
(this.json = function () {
return this.text().then(JSON.parse);
}),
this
);
}
(bl.prototype.append = function (t, e) {
(t = gl(t)), (e = yl(e));
var r = this.map[t];
this.map[t] = r ? r + ", " + e : e;
}),
(bl.prototype.delete = function (t) {
delete this.map[gl(t)];
}),
(bl.prototype.get = function (t) {
return (t = gl(t)), this.has(t) ? this.map[t] : null;
}),
(bl.prototype.has = function (t) {
return this.map.hasOwnProperty(gl(t));
}),
(bl.prototype.set = function (t, e) {
this.map[gl(t)] = yl(e);
}),
(bl.prototype.forEach = function (t, e) {
for (var r in this.map)
this.map.hasOwnProperty(r) &&
t.call(e, this.map[r], r, this);
}),
(bl.prototype.keys = function () {
var t = [];
return (
this.forEach(function (e, r) {
t.push(r);
}),
ml(t)
);
}),
(bl.prototype.values = function () {
var t = [];
return (
this.forEach(function (e) {
t.push(e);
}),
ml(t)
);
}),
(bl.prototype.entries = function () {
var t = [];
return (
this.forEach(function (e, r) {
t.push([r, e]);
}),
ml(t)
);
}),
fl &&
(bl.prototype[Symbol.iterator] = bl.prototype.entries);
var Ol = ["DELETE", "GET", "HEAD", "OPTIONS", "POST", "PUT"];
function Rl(t, e) {
var r,
n,
o = (e = e || {}).body;
if (t instanceof Rl) {
if (t.bodyUsed) throw new TypeError("Already read");
(this.url = t.url),
(this.credentials = t.credentials),
e.headers || (this.headers = new bl(t.headers)),
(this.method = t.method),
(this.mode = t.mode),
(this.signal = t.signal),
o ||
null == t._bodyInit ||
((o = t._bodyInit), (t.bodyUsed = !0));
} else this.url = String(t);
if (
((this.credentials =
e.credentials || this.credentials || "same-origin"),
(!e.headers && this.headers) ||
(this.headers = new bl(e.headers)),
(this.method =
((n = (r =
e.method ||
this.method ||
"GET").toUpperCase()),
Ol.indexOf(n) > -1 ? n : r)),
(this.mode = e.mode || this.mode || null),
(this.signal = e.signal || this.signal),
(this.referrer = null),
("GET" === this.method || "HEAD" === this.method) && o)
)
throw new TypeError(
"Body not allowed for GET or HEAD requests"
);
this._initBody(o);
}
function jl(t) {
var e = new FormData();
return (
t
.trim()
.split("&")
.forEach(function (t) {
if (t) {
var r = t.split("="),
n = r.shift().replace(/\+/g, " "),
o = r.join("=").replace(/\+/g, " ");
e.append(
decodeURIComponent(n),
decodeURIComponent(o)
);
}
}),
e
);
}
function Pl(t, e) {
e || (e = {}),
(this.type = "default"),
(this.status = void 0 === e.status ? 200 : e.status),
(this.ok = this.status >= 200 && this.status < 300),
(this.statusText =
"statusText" in e ? e.statusText : "OK"),
(this.headers = new bl(e.headers)),
(this.url = e.url || ""),
this._initBody(t);
}
(Rl.prototype.clone = function () {
return new Rl(this, {
body: this._bodyInit,
});
}),
Al.call(Rl.prototype),
Al.call(Pl.prototype),
(Pl.prototype.clone = function () {
return new Pl(this._bodyInit, {
status: this.status,
statusText: this.statusText,
headers: new bl(this.headers),
url: this.url,
});
}),
(Pl.error = function () {
var t = new Pl(null, {
status: 0,
statusText: "",
});
return (t.type = "error"), t;
});
var Il = [301, 302, 303, 307, 308];
Pl.redirect = function (t, e) {
if (-1 === Il.indexOf(e))
throw new RangeError("Invalid status code");
return new Pl(null, {
status: e,
headers: {
location: t,
},
});
};
var Tl = self.DOMException;
try {
new Tl();
} catch (t) {
((Tl = function (t, e) {
(this.message = t), (this.name = e);
var r = Error(t);
this.stack = r.stack;
}).prototype = Object.create(Error.prototype)),
(Tl.prototype.constructor = Tl);
}
function kl(t, e) {
return new Promise(function (r, n) {
var o = new Rl(t, e);
if (o.signal && o.signal.aborted)
return n(new Tl("Aborted", "AbortError"));
var i = new XMLHttpRequest();
function a() {
i.abort();
}
(i.onload = function () {
var t,
e,
n = {
status: i.status,
statusText: i.statusText,
headers:
((t = i.getAllResponseHeaders() || ""),
(e = new bl()),
t
.replace(/\r?\n[\t ]+/g, " ")
.split(/\r?\n/)
.forEach(function (t) {
var r = t.split(":"),
n = r.shift().trim();
if (n) {
var o = r.join(":").trim();
e.append(n, o);
}
}),
e),
};
(n.url =
"responseURL" in i
? i.responseURL
: n.headers.get("X-Request-URL")),
r(
new Pl(
"response" in i
? i.response
: i.responseText,
n
)
);
}),
(i.onerror = function () {
n(new TypeError("Network request failed"));
}),
(i.ontimeout = function () {
n(new TypeError("Network request failed"));
}),
(i.onabort = function () {
n(new Tl("Aborted", "AbortError"));
}),
i.open(o.method, o.url, !0),
"include" === o.credentials
? (i.withCredentials = !0)
: "omit" === o.credentials &&
(i.withCredentials = !1),
"responseType" in i &&
ll &&
(i.responseType = "blob"),
o.headers.forEach(function (t, e) {
i.setRequestHeader(e, t);
}),
o.signal &&
(o.signal.addEventListener("abort", a),
(i.onreadystatechange = function () {
4 === i.readyState &&
o.signal.removeEventListener(
"abort",
a
);
})),
i.send(void 0 === o._bodyInit ? null : o._bodyInit);
});
}
(kl.polyfill = !0),
self.fetch ||
((self.fetch = kl),
(self.Headers = bl),
(self.Request = Rl),
(self.Response = Pl));
var Ll = Object.getOwnPropertySymbols,
Ul = Object.prototype.hasOwnProperty,
Ml = Object.prototype.propertyIsEnumerable;
function _l(t) {
if (null == t)
throw new TypeError(
"Object.assign cannot be called with null or undefined"
);
return Object(t);
}
var Nl = (function () {
try {
if (!Object.assign) return !1;
var t = new String("abc");
if (
((t[5] = "de"),
"5" === Object.getOwnPropertyNames(t)[0])
)
return !1;
for (var e = {}, r = 0; r < 10; r++)
e["_" + String.fromCharCode(r)] = r;
if (
"0123456789" !==
Object.getOwnPropertyNames(e)
.map(function (t) {
return e[t];
})
.join("")
)
return !1;
var n = {};
return (
"abcdefghijklmnopqrst"
.split("")
.forEach(function (t) {
n[t] = t;
}),
"abcdefghijklmnopqrst" ===
Object.keys(Object.assign({}, n)).join("")
);
} catch (t) {
return !1;
}
})()
? Object.assign
: function (t, e) {
for (
var r, n, o = _l(t), i = 1;
i < arguments.length;
i++
) {
for (var a in (r = Object(arguments[i])))
Ul.call(r, a) && (o[a] = r[a]);
if (Ll) {
n = Ll(r);
for (var u = 0; u < n.length; u++)
Ml.call(r, n[u]) && (o[n[u]] = r[n[u]]);
}
}
return o;
};
Object.assign = Nl;
})();
/***/
},
},
/******/ function (__webpack_require__) {
// webpackRuntimeModules
/******/ var __webpack_exec__ = function (moduleId) {
return __webpack_require__((__webpack_require__.s = moduleId));
};
/******/ var __webpack_exports__ = __webpack_exec__(4069);
/******/ _N_E = __webpack_exports__;
/******/
},
]);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/fixture/projects/next/.archive-4/polyfills-6437a4964f697e5b0b3e/output.js | JavaScript | (self.webpackChunk_N_E = self.webpackChunk_N_E || []).push(
[
[429,],
{
4069: function (
__unused_webpack_module,
__unused_webpack_exports,
__webpack_require__
) {
"use strict";
__webpack_require__(
7788
);
},
7788: function (
__unused_webpack_module,
__unused_webpack_exports,
__webpack_require__
) {
!(function (
) {
var t =
"undefined" != typeof globalThis
? globalThis
: "undefined" != typeof window
? window
: void 0 !== __webpack_require__.g
? __webpack_require__.g
: "undefined" != typeof self
? self
: {
};
function e(
t
) {
var e = {
exports: {
},
};
return t(
e,
e.exports
), e.exports;
}
var r = function (
t
) {
return t && t.Math == Math && t;
},
n =
r(
"object" == typeof globalThis && globalThis
) ||
r(
"object" == typeof window && window
) ||
r(
"object" == typeof self && self
) ||
r(
"object" == typeof t && t
) ||
Function(
"return this"
)(
),
o = function (
t
) {
try {
return !!t(
);
} catch (t) {
return !0;
}
},
i = !o(
function (
) {
return (
7 !=
Object.defineProperty(
{
},
1,
{
get: function (
) {
return 7;
},
}
)[1]
);
}
),
a = {
}.propertyIsEnumerable,
u = Object.getOwnPropertyDescriptor,
s = {
f:
u && !a.call(
{
1: 2,
},
1
)
? function (
t
) {
var e = u(
this,
t
);
return !!e && e.enumerable;
}
: a,
},
c = function (
t, e
) {
return {
enumerable: !(1 & t),
configurable: !(2 & t),
writable: !(4 & t),
value: e,
};
},
f = {
}.toString,
l = function (
t
) {
return f.call(
t
).slice(
8,
-1
);
},
h = "".split,
p = o(
function (
) {
return !Object(
"z"
).propertyIsEnumerable(
0
);
}
)
? function (
t
) {
return "String" == l(
t
)
? h.call(
t,
""
)
: Object(
t
);
}
: Object,
d = function (
t
) {
if (null == t)
throw TypeError(
"Can't call method on " + t
);
return t;
},
v = function (
t
) {
return p(
d(
t
)
);
},
g = function (
t
) {
return "object" == typeof t
? null !== t
: "function" == typeof t;
},
y = function (
t, e
) {
if (!g(
t
)) return t;
var r, n;
if (
e &&
"function" == typeof (r = t.toString) &&
!g(
(n = r.call(
t
))
)
)
return n;
if (
"function" == typeof (r = t.valueOf) &&
!g(
(n = r.call(
t
))
)
)
return n;
if (
!e &&
"function" == typeof (r = t.toString) &&
!g(
(n = r.call(
t
))
)
)
return n;
throw TypeError(
"Can't convert object to primitive value"
);
},
m = {
}.hasOwnProperty,
b = function (
t, e
) {
return m.call(
t,
e
);
},
w = n.document,
S = g(
w
) && g(
w.createElement
),
E = function (
t
) {
return S
? w.createElement(
t
)
: {
};
},
x =
!i &&
!o(
function (
) {
return (
7 !=
Object.defineProperty(
E(
"div"
),
"a",
{
get: function (
) {
return 7;
},
}
).a
);
}
),
A = Object.getOwnPropertyDescriptor,
O = {
f: i
? A
: function (
t, e
) {
if (((t = v(
t
)), (e = y(
e,
!0
)), x))
try {
return A(
t,
e
);
} catch (t) {}
if (b(
t,
e
)) return c(
!s.f.call(
t,
e
),
t[e]
);
},
},
R = function (
t
) {
if (!g(
t
))
throw TypeError(
String(
t
) + " is not an object"
);
return t;
},
j = Object.defineProperty,
P = {
f: i
? j
: function (
t, e, r
) {
if ((R(
t
), (e = y(
e,
!0
)), R(
r
), x))
try {
return j(
t,
e,
r
);
} catch (t) {}
if ("get" in r || "set" in r)
throw TypeError(
"Accessors not supported"
);
return "value" in r && (t[e] = r.value), t;
},
},
I = i
? function (
t, e, r
) {
return P.f(
t,
e,
c(
1,
r
)
);
}
: function (
t, e, r
) {
return (t[e] = r), t;
},
T = function (
t, e
) {
try {
I(
n,
t,
e
);
} catch (r) {
n[t] = e;
}
return e;
},
k = "__core-js_shared__",
L = n[k] || T(
k,
{
}
),
U = Function.toString;
"function" != typeof L.inspectSource &&
(L.inspectSource = function (
t
) {
return U.call(
t
);
});
var M,
_,
N,
C = L.inspectSource,
F = n.WeakMap,
B = "function" == typeof F && /native code/.test(
C(
F
)
),
D = !1,
q = e(
function (
t
) {
(t.exports = function (
t, e
) {
return L[t] || (L[t] = void 0 !== e
? e
: {
});
})(
"versions",
[]
).push(
{
version: "3.6.5",
mode: "global",
copyright: "© 2020 Denis Pushkarev (zloirock.ru)",
}
);
}
),
z = 0,
W = Math.random(
),
K = function (
t
) {
return (
"Symbol(" +
String(
void 0 === t ? "" : t
) +
")_" +
(++z + W).toString(
36
)
);
},
G = q(
"keys"
),
$ = function (
t
) {
return G[t] || (G[t] = K(
t
));
},
V = {
};
if (B) {
var H = new (0, n.WeakMap)(
),
X = H.get,
Y = H.has,
J = H.set;
(M = function (
t, e
) {
return J.call(
H,
t,
e
), e;
}),
(_ = function (
t
) {
return X.call(
H,
t
) || {
};
}),
(N = function (
t
) {
return Y.call(
H,
t
);
});
} else {
var Q = $(
"state"
);
(V[Q] = !0),
(M = function (
t, e
) {
return I(
t,
Q,
e
), e;
}),
(_ = function (
t
) {
return b(
t,
Q
)
? t[Q]
: {
};
}),
(N = function (
t
) {
return b(
t,
Q
);
});
}
var Z,
tt = {
set: M,
get: _,
has: N,
enforce: function (
t
) {
return N(
t
)
? _(
t
)
: M(
t,
{
}
);
},
getterFor: function (
t
) {
return function (
e
) {
var r;
if (!g(
e
) || (r = _(
e
)).type !== t)
throw TypeError(
"Incompatible receiver, " +
t +
" required"
);
return r;
};
},
},
et = e(
function (
t
) {
var e = tt.get,
r = tt.enforce,
o = String(
String
).split(
"String"
);
(t.exports = function (
t, e, i, a
) {
var u = !!a && !!a.unsafe,
s = !!a && !!a.enumerable,
c = !!a && !!a.noTargetGet;
"function" == typeof i &&
("string" != typeof e ||
b(
i,
"name"
) ||
I(
i,
"name",
e
),
(r(
i
).source = o.join(
"string" == typeof e ? e : ""
))),
t !== n
? (u ? !c && t[e] && (s = !0) : delete t[e],
s
? (t[e] = i)
: I(
t,
e,
i
))
: s
? (t[e] = i)
: T(
e,
i
);
})(
Function.prototype,
"toString",
function (
) {
return (
("function" == typeof this && e(
this
).source) ||
C(
this
)
);
}
);
}
),
rt = n,
nt = function (
t
) {
return "function" == typeof t ? t : void 0;
},
ot = function (
t, e
) {
return arguments.length < 2
? nt(
rt[t]
) || nt(
n[t]
)
: (rt[t] && rt[t][e]) || (n[t] && n[t][e]);
},
it = Math.ceil,
at = Math.floor,
ut = function (
t
) {
return isNaN(
(t = +t)
)
? 0
: (t > 0 ? at : it)(
t
);
},
st = Math.min,
ct = function (
t
) {
return t > 0
? st(
ut(
t
),
9007199254740991
)
: 0;
},
ft = Math.max,
lt = Math.min,
ht = function (
t, e
) {
var r = ut(
t
);
return r < 0
? ft(
r + e,
0
)
: lt(
r,
e
);
},
pt = function (
t
) {
return function (
e, r, n
) {
var o,
i = v(
e
),
a = ct(
i.length
),
u = ht(
n,
a
);
if (t && r != r) {
for (; a > u; )
if ((o = i[u++]) != o) return !0;
} else
for (; a > u; u++)
if ((t || u in i) && i[u] === r)
return t || u || 0;
return !t && -1;
};
},
dt = {
includes: pt(
!0
),
indexOf: pt(
!1
),
},
vt = dt.indexOf,
gt = function (
t, e
) {
var r,
n = v(
t
),
o = 0,
i = [];
for (r in n) !b(
V,
r
) && b(
n,
r
) && i.push(
r
);
for (; e.length > o; )
b(
n, (
r = e[o++])
) && (~vt(
i,
r
) || i.push(
r
));
return i;
},
yt = [
"constructor",
"hasOwnProperty",
"isPrototypeOf",
"propertyIsEnumerable",
"toLocaleString",
"toString",
"valueOf",
],
mt = yt.concat(
"length",
"prototype"
),
bt = {
f:
Object.getOwnPropertyNames ||
function (
t
) {
return gt(
t,
mt
);
},
},
wt = {
f: Object.getOwnPropertySymbols,
},
St =
ot(
"Reflect",
"ownKeys"
) ||
function (
t
) {
var e = bt.f(
R(
t
)
),
r = wt.f;
return r
? e.concat(
r(
t
)
)
: e;
},
Et = function (
t, e
) {
for (
var r = St(
e
), n = P.f, o = O.f, i = 0;
i < r.length;
i++
) {
var a = r[i];
b(
t,
a
) || n(
t,
a,
o(
e,
a
)
);
}
},
xt = /#|\.prototype\./,
At = function (
t, e
) {
var r = Rt[Ot(
t
)];
return (
r == Pt ||
(r != jt && ("function" == typeof e
? o(
e
)
: !!e))
);
},
Ot = (At.normalize = function (
t
) {
return String(
t
).replace(
xt,
"."
).toLowerCase(
);
}),
Rt = (At.data = {
}),
jt = (At.NATIVE = "N"),
Pt = (At.POLYFILL = "P"),
It = At,
Tt = O.f,
kt = function (
t, e
) {
var r,
o,
i,
a,
u,
s = t.target,
c = t.global,
f = t.stat;
if (
(r = c
? n
: f
? n[s] || T(
s,
{
}
)
: (n[s] || {
}).prototype)
)
for (o in e) {
if (
((a = e[o]),
(i = t.noTargetGet
? (u = Tt(
r,
o
)) && u.value
: r[o]),
!It(
c ? o : s + (f ? "." : "#") + o,
t.forced
) && void 0 !== i)
) {
if (typeof a == typeof i) continue;
Et(
a,
i
);
}
(t.sham || (i && i.sham)) && I(
a,
"sham",
!0
),
et(
r,
o,
a,
t
);
}
},
Lt = function (
t
) {
return Object(
d(
t
)
);
},
Ut = Math.min,
Mt =
[].copyWithin ||
function (
t, e
) {
var r = Lt(
this
),
n = ct(
r.length
),
o = ht(
t,
n
),
i = ht(
e,
n
),
a =
arguments.length > 2
? arguments[2]
: void 0,
u = Ut(
(void 0 === a
? n
: ht(
a,
n
)) - i,
n - o
),
s = 1;
for (
i < o &&
o < i + u &&
((s = -1), (i += u - 1), (o += u - 1));
u-- > 0;
)
i in r ? (r[o] = r[i]) : delete r[o],
(o += s),
(i += s);
return r;
},
_t =
!!Object.getOwnPropertySymbols &&
!o(
function (
) {
return !String(
Symbol(
)
);
}
),
Nt =
_t &&
!Symbol.sham &&
"symbol" == typeof Symbol.iterator,
Ct = q(
"wks"
),
Ft = n.Symbol,
Bt = Nt ? Ft : (Ft && Ft.withoutSetter) || K,
Dt = function (
t
) {
return (
b(
Ct,
t
) ||
(Ct[t] =
_t && b(
Ft,
t
)
? Ft[t]
: Bt(
"Symbol." + t
)),
Ct[t]
);
},
qt =
Object.keys ||
function (
t
) {
return gt(
t,
yt
);
},
zt = i
? Object.defineProperties
: function (
t, e
) {
R(
t
);
for (
var r, n = qt(
e
), o = n.length, i = 0;
o > i;
)
P.f(
t, (
r = n[i++]),
e[r]
);
return t;
},
Wt = ot(
"document",
"documentElement"
),
Kt = $(
"IE_PROTO"
),
Gt = function (
) {},
$t = function (
t
) {
return "<script>" + t + "</script>";
},
Vt = function (
) {
try {
Z =
document.domain &&
new ActiveXObject(
"htmlfile"
);
} catch (t) {}
var t, e;
Vt = Z
? (function (
t
) {
t.write(
$t(
""
)
), t.close(
);
var e = t.parentWindow.Object;
return (t = null), e;
})(
Z
)
: (((e = E(
"iframe"
)).style.display = "none"),
Wt.appendChild(
e
),
(e.src = String(
"javascript:"
)),
(t = e.contentWindow.document).open(
),
t.write(
$t(
"document.F=Object"
)
),
t.close(
),
t.F);
for (var r = yt.length; r--; )
delete Vt.prototype[yt[r]];
return Vt(
);
};
V[Kt] = !0;
var Ht =
Object.create ||
function (
t, e
) {
var r;
return (
null !== t
? ((Gt.prototype = R(
t
)),
(r = new Gt(
)),
(Gt.prototype = null),
(r[Kt] = t))
: (r = Vt(
)),
void 0 === e
? r
: zt(
r,
e
)
);
},
Xt = Dt(
"unscopables"
),
Yt = Array.prototype;
null == Yt[Xt] &&
P.f(
Yt,
Xt,
{
configurable: !0,
value: Ht(
null
),
}
);
var Jt = function (
t
) {
Yt[Xt][t] = !0;
};
kt(
{
target: "Array",
proto: !0,
},
{
copyWithin: Mt,
}
),
Jt(
"copyWithin"
);
var Qt = function (
t
) {
if ("function" != typeof t)
throw TypeError(
String(
t
) + " is not a function"
);
return t;
},
Zt = function (
t, e, r
) {
if ((Qt(
t
), void 0 === e)) return t;
switch (r) {
case 0:
return function (
) {
return t.call(
e
);
};
case 1:
return function (
r
) {
return t.call(
e,
r
);
};
case 2:
return function (
r, n
) {
return t.call(
e,
r,
n
);
};
case 3:
return function (
r, n, o
) {
return t.call(
e,
r,
n,
o
);
};
}
return function (
) {
return t.apply(
e,
arguments
);
};
},
te = Function.call,
ee = function (
t, e, r
) {
return Zt(
te,
n[t].prototype[e],
r
);
};
ee(
"Array",
"copyWithin"
),
kt(
{
target: "Array",
proto: !0,
},
{
fill: function (
t
) {
for (
var e = Lt(
this
),
r = ct(
e.length
),
n = arguments.length,
o = ht(
n > 1 ? arguments[1] : void 0,
r
),
i = n > 2 ? arguments[2] : void 0,
a = void 0 === i
? r
: ht(
i,
r
);
a > o;
)
e[o++] = t;
return e;
},
}
),
Jt(
"fill"
),
ee(
"Array",
"fill"
);
var re =
Array.isArray ||
function (
t
) {
return "Array" == l(
t
);
},
ne = Dt(
"species"
),
oe = function (
t, e
) {
var r;
return (
re(
t
) &&
("function" != typeof (r = t.constructor) ||
(r !== Array && !re(
r.prototype
))
? g(
r
) &&
null === (r = r[ne]) &&
(r = void 0)
: (r = void 0)),
new (void 0 === r ? Array : r)(
0 === e ? 0 : e
)
);
},
ie = [].push,
ae = function (
t
) {
var e = 1 == t,
r = 2 == t,
n = 3 == t,
o = 4 == t,
i = 6 == t,
a = 5 == t || i;
return function (
u, s, c, f
) {
for (
var l,
h,
d = Lt(
u
),
v = p(
d
),
g = Zt(
s,
c,
3
),
y = ct(
v.length
),
m = 0,
b = f || oe,
w = e
? b(
u,
y
)
: r
? b(
u,
0
)
: void 0;
y > m;
m++
)
if (
(a || m in v) &&
((h = g(
(l = v[m]),
m,
d
)), t)
)
if (e) w[m] = h;
else if (h)
switch (t) {
case 3:
return !0;
case 5:
return l;
case 6:
return m;
case 2:
ie.call(
w,
l
);
}
else if (o) return !1;
return i ? -1 : n || o ? o : w;
};
},
ue = {
forEach: ae(
0
),
map: ae(
1
),
filter: ae(
2
),
some: ae(
3
),
every: ae(
4
),
find: ae(
5
),
findIndex: ae(
6
),
},
se = Object.defineProperty,
ce = {
},
fe = function (
t
) {
throw t;
},
le = function (
t, e
) {
if (b(
ce,
t
)) return ce[t];
e || (e = {
});
var r = [][t],
n = !!b(
e,
"ACCESSORS"
) && e.ACCESSORS,
a = b(
e,
0
)
? e[0]
: fe,
u = b(
e,
1
)
? e[1]
: void 0;
return (ce[t] =
!!r &&
!o(
function (
) {
if (n && !i) return !0;
var t = {
length: -1,
};
n
? se(
t,
1,
{
enumerable: !0,
get: fe,
}
)
: (t[1] = 1),
r.call(
t,
a,
u
);
}
));
},
he = ue.find,
pe = "find",
de = !0,
ve = le(
pe
);
pe in [] &&
Array(
1
).find(
function (
) {
de = !1;
}
),
kt(
{
target: "Array",
proto: !0,
forced: de || !ve,
},
{
find: function (
t
) {
return he(
this,
t,
arguments.length > 1 ? arguments[1] : void 0
);
},
}
),
Jt(
pe
),
ee(
"Array",
"find"
);
var ge = ue.findIndex,
ye = "findIndex",
me = !0,
be = le(
ye
);
ye in [] &&
Array(
1
).findIndex(
function (
) {
me = !1;
}
),
kt(
{
target: "Array",
proto: !0,
forced: me || !be,
},
{
findIndex: function (
t
) {
return ge(
this,
t,
arguments.length > 1 ? arguments[1] : void 0
);
},
}
),
Jt(
ye
),
ee(
"Array",
"findIndex"
);
var we = function t(
e, r, n, o, i, a, u, s
) {
for (var c, f = i, l = 0, h = !!u && Zt(
u,
s,
3
); l < o; ) {
if (l in n) {
if (
((c = h
? h(
n[l],
l,
r
)
: n[l]), a > 0 && re(
c
))
)
f = t(
e,
r,
c,
ct(
c.length
),
f,
a - 1
) - 1;
else {
if (f >= 9007199254740991)
throw TypeError(
"Exceed the acceptable array length"
);
e[f] = c;
}
f++;
}
l++;
}
return f;
};
kt(
{
target: "Array",
proto: !0,
},
{
flatMap: function (
t
) {
var e,
r = Lt(
this
),
n = ct(
r.length
);
return (
Qt(
t
),
((e = oe(
r,
0
)).length = we(
e,
r,
r,
n,
0,
1,
t,
arguments.length > 1 ? arguments[1] : void 0
)),
e
);
},
}
),
Jt(
"flatMap"
),
ee(
"Array",
"flatMap"
),
kt(
{
target: "Array",
proto: !0,
},
{
flat: function (
) {
var t = arguments.length
? arguments[0]
: void 0,
e = Lt(
this
),
r = ct(
e.length
),
n = oe(
e,
0
);
return (
(n.length = we(
n,
e,
e,
r,
0,
void 0 === t
? 1
: ut(
t
)
)),
n
);
},
}
),
Jt(
"flat"
),
ee(
"Array",
"flat"
);
var Se,
Ee,
xe,
Ae = function (
t
) {
return function (
e, r
) {
var n,
o,
i = String(
d(
e
)
),
a = ut(
r
),
u = i.length;
return a < 0 || a >= u
? t
? ""
: void 0
: (n = i.charCodeAt(
a
)) < 55296 ||
n > 56319 ||
a + 1 === u ||
(o = i.charCodeAt(
a + 1
)) < 56320 ||
o > 57343
? t
? i.charAt(
a
)
: n
: t
? i.slice(
a,
a + 2
)
: o - 56320 + ((n - 55296) << 10) + 65536;
};
},
Oe = {
codeAt: Ae(
!1
),
charAt: Ae(
!0
),
},
Re = !o(
function (
) {
function t(
) {}
return (
(t.prototype.constructor = null),
Object.getPrototypeOf(
new t(
)
) !== t.prototype
);
}
),
je = $(
"IE_PROTO"
),
Pe = Object.prototype,
Ie = Re
? Object.getPrototypeOf
: function (
t
) {
return (
(t = Lt(
t
)),
b(
t,
je
)
? t[je]
: "function" == typeof t.constructor &&
t instanceof t.constructor
? t.constructor.prototype
: t instanceof Object
? Pe
: null
);
},
Te = Dt(
"iterator"
),
ke = !1;
[].keys &&
("next" in (xe = [].keys(
))
? (Ee = Ie(
Ie(
xe
)
)) !== Object.prototype && (Se = Ee)
: (ke = !0)),
null == Se && (Se = {
}),
b(
Se,
Te
) ||
I(
Se,
Te,
function (
) {
return this;
}
);
var Le = {
IteratorPrototype: Se,
BUGGY_SAFARI_ITERATORS: ke,
},
Ue = P.f,
Me = Dt(
"toStringTag"
),
_e = function (
t, e, r
) {
t &&
!b(
(t = r ? t : t.prototype),
Me
) &&
Ue(
t,
Me,
{
configurable: !0,
value: e,
}
);
},
Ne = {
},
Ce = Le.IteratorPrototype,
Fe = function (
) {
return this;
},
Be = function (
t, e, r
) {
var n = e + " Iterator";
return (
(t.prototype = Ht(
Ce,
{
next: c(
1,
r
),
}
)),
_e(
t,
n,
!1
),
(Ne[n] = Fe),
t
);
},
De = function (
t
) {
if (!g(
t
) && null !== t)
throw TypeError(
"Can't set " + String(
t
) + " as a prototype"
);
return t;
},
qe =
Object.setPrototypeOf ||
("__proto__" in {
}
? (function (
) {
var t,
e = !1,
r = {
};
try {
(t = Object.getOwnPropertyDescriptor(
Object.prototype,
"__proto__"
).set).call(
r,
[]
),
(e = r instanceof Array);
} catch (t) {}
return function (
r, n
) {
return (
R(
r
),
De(
n
),
e
? t.call(
r,
n
)
: (r.__proto__ = n),
r
);
};
})(
)
: void 0),
ze = Le.IteratorPrototype,
We = Le.BUGGY_SAFARI_ITERATORS,
Ke = Dt(
"iterator"
),
$e = "values",
Ve = "entries",
He = function (
) {
return this;
},
Xe = function (
t, e, r, n, o, i, a
) {
Be(
r,
e,
n
);
var u,
s,
c,
f = function (
t
) {
if (t === o && v) return v;
if (!We && t in p) return p[t];
switch (t) {
case "keys":
case $e:
case Ve:
return function (
) {
return new r(
this,
t
);
};
}
return function (
) {
return new r(
this
);
};
},
l = e + " Iterator",
h = !1,
p = t.prototype,
d = p[Ke] || p["@@iterator"] || (o && p[o]),
v = (!We && d) || f(
o
),
g = ("Array" == e && p.entries) || d;
if (
(g &&
((u = Ie(
g.call(
new t(
)
)
)),
ze !== Object.prototype &&
u.next &&
(Ie(
u
) !== ze &&
(qe
? qe(
u,
ze
)
: "function" != typeof u[Ke] &&
I(
u,
Ke,
He
)),
_e(
u,
l,
!0
))),
o == $e &&
d &&
d.name !== $e &&
((h = !0),
(v = function (
) {
return d.call(
this
);
})),
p[Ke] !== v && I(
p,
Ke,
v
),
(Ne[e] = v),
o)
)
if (
((s = {
values: f(
$e
),
keys: i
? v
: f(
"keys"
),
entries: f(
Ve
),
}),
a)
)
for (c in s)
(We || h || !(c in p)) && et(
p,
c,
s[c]
);
else
kt(
{
target: e,
proto: !0,
forced: We || h,
},
s
);
return s;
},
Ye = Oe.charAt,
Je = "String Iterator",
Qe = tt.set,
Ze = tt.getterFor(
Je
);
Xe(
String,
"String",
function (
t
) {
Qe(
this,
{
type: Je,
string: String(
t
),
index: 0,
}
);
},
function (
) {
var t,
e = Ze(
this
),
r = e.string,
n = e.index;
return n >= r.length
? {
value: void 0,
done: !0,
}
: ((t = Ye(
r,
n
)),
(e.index += t.length),
{
value: t,
done: !1,
});
}
);
var tr = function (
t, e, r, n
) {
try {
return n
? e(
R(
r
)[0],
r[1]
)
: e(
r
);
} catch (e) {
var o = t.return;
throw (void 0 !== o && R(
o.call(
t
)
), e);
}
},
er = Dt(
"iterator"
),
rr = Array.prototype,
nr = function (
t
) {
return void 0 !== t && (Ne.Array === t || rr[er] === t);
},
or = function (
t, e, r
) {
var n = y(
e
);
n in t
? P.f(
t,
n,
c(
0,
r
)
)
: (t[n] = r);
},
ir = {
};
ir[Dt(
"toStringTag"
)] = "z";
var ar = "[object z]" === String(
ir
),
ur = Dt(
"toStringTag"
),
sr =
"Arguments" ==
l(
(function (
) {
return arguments;
})(
)
),
cr = ar
? l
: function (
t
) {
var e, r, n;
return void 0 === t
? "Undefined"
: null === t
? "Null"
: "string" ==
typeof (r = (function (
t, e
) {
try {
return t[e];
} catch (t) {}
})(
(e = Object(
t
)),
ur
))
? r
: sr
? l(
e
)
: "Object" == (n = l(
e
)) &&
"function" == typeof e.callee
? "Arguments"
: n;
},
fr = Dt(
"iterator"
),
lr = function (
t
) {
if (null != t)
return t[fr] || t["@@iterator"] || Ne[cr(
t
)];
},
hr = function (
t
) {
var e,
r,
n,
o,
i,
a,
u = Lt(
t
),
s = "function" == typeof this ? this : Array,
c = arguments.length,
f = c > 1 ? arguments[1] : void 0,
l = void 0 !== f,
h = lr(
u
),
p = 0;
if (
(l && (f = Zt(
f,
c > 2 ? arguments[2] : void 0,
2
)),
null == h || (s == Array && nr(
h
)))
)
for (r = new s(
(e = ct(
u.length
))
); e > p; p++)
(a = l
? f(
u[p],
p
)
: u[p]), or(
r,
p,
a
);
else
for (
i = (o = h.call(
u
)).next, r = new s(
);
!(n = i.call(
o
)).done;
p++
)
(a = l
? tr(
o,
f,
[n.value, p,],
!0
)
: n.value),
or(
r,
p,
a
);
return (r.length = p), r;
},
pr = Dt(
"iterator"
),
dr = !1;
try {
var vr = 0,
gr = {
next: function (
) {
return {
done: !!vr++,
};
},
return: function (
) {
dr = !0;
},
};
(gr[pr] = function (
) {
return this;
}),
Array.from(
gr,
function (
) {
throw 2;
}
);
} catch (t) {}
var yr = function (
t, e
) {
if (!e && !dr) return !1;
var r = !1;
try {
var n = {
};
(n[pr] = function (
) {
return {
next: function (
) {
return {
done: (r = !0),
};
},
};
}),
t(
n
);
} catch (t) {}
return r;
},
mr = !yr(
function (
t
) {
Array.from(
t
);
}
);
kt(
{
target: "Array",
stat: !0,
forced: mr,
},
{
from: hr,
}
);
var br = dt.includes,
wr = le(
"indexOf",
{
ACCESSORS: !0,
1: 0,
}
);
kt(
{
target: "Array",
proto: !0,
forced: !wr,
},
{
includes: function (
t
) {
return br(
this,
t,
arguments.length > 1 ? arguments[1] : void 0
);
},
}
),
Jt(
"includes"
),
ee(
"Array",
"includes"
);
var Sr = "Array Iterator",
Er = tt.set,
xr = tt.getterFor(
Sr
),
Ar = Xe(
Array,
"Array",
function (
t, e
) {
Er(
this,
{
type: Sr,
target: v(
t
),
index: 0,
kind: e,
}
);
},
function (
) {
var t = xr(
this
),
e = t.target,
r = t.kind,
n = t.index++;
return !e || n >= e.length
? ((t.target = void 0),
{
value: void 0,
done: !0,
})
: "keys" == r
? {
value: n,
done: !1,
}
: "values" == r
? {
value: e[n],
done: !1,
}
: {
value: [n, e[n],],
done: !1,
};
},
"values"
);
(Ne.Arguments = Ne.Array),
Jt(
"keys"
),
Jt(
"values"
),
Jt(
"entries"
),
ee(
"Array",
"values"
);
var Or = o(
function (
) {
function t(
) {}
return !(Array.of.call(
t
) instanceof t);
}
);
kt(
{
target: "Array",
stat: !0,
forced: Or,
},
{
of: function (
) {
for (
var t = 0,
e = arguments.length,
r = new (
"function" == typeof this ? this : Array
)(
e
);
e > t;
)
or(
r,
t,
arguments[t++]
);
return (r.length = e), r;
},
}
);
var Rr = Dt(
"hasInstance"
),
jr = Function.prototype;
Rr in jr ||
P.f(
jr,
Rr,
{
value: function (
t
) {
if ("function" != typeof this || !g(
t
)) return !1;
if (!g(
this.prototype
)) return t instanceof this;
for (; (t = Ie(
t
)); )
if (this.prototype === t) return !0;
return !1;
},
}
),
Dt(
"hasInstance"
);
var Pr = Function.prototype,
Ir = Pr.toString,
Tr = /^\s*function ([^ (]*)/;
i &&
!("name" in Pr) &&
(0, P.f)(
Pr,
"name",
{
configurable: !0,
get: function (
) {
try {
return Ir.call(
this
).match(
Tr
)[1];
} catch (t) {
return "";
}
},
}
);
var Lr = !o(
function (
) {
return Object.isExtensible(
Object.preventExtensions(
{
}
)
);
}
),
Ur = e(
function (
t
) {
var e = P.f,
r = K(
"meta"
),
n = 0,
o =
Object.isExtensible ||
function (
) {
return !0;
},
i = function (
t
) {
e(
t,
r,
{
value: {
objectID: "O" + ++n,
weakData: {
},
},
}
);
},
a = (t.exports = {
REQUIRED: !1,
fastKey: function (
t, e
) {
if (!g(
t
))
return "symbol" == typeof t
? t
: ("string" == typeof t
? "S"
: "P") + t;
if (!b(
t,
r
)) {
if (!o(
t
)) return "F";
if (!e) return "E";
i(
t
);
}
return t[r].objectID;
},
getWeakData: function (
t, e
) {
if (!b(
t,
r
)) {
if (!o(
t
)) return !0;
if (!e) return !1;
i(
t
);
}
return t[r].weakData;
},
onFreeze: function (
t
) {
return (
Lr &&
a.REQUIRED &&
o(
t
) &&
!b(
t,
r
) &&
i(
t
),
t
);
},
});
V[r] = !0;
}
),
Mr = e(
function (
t
) {
var e = function (
t, e
) {
(this.stopped = t), (this.result = e);
};
(t.exports = function (
t, r, n, o, i
) {
var a,
u,
s,
c,
f,
l,
h,
p = Zt(
r,
n,
o ? 2 : 1
);
if (i) a = t;
else {
if ("function" != typeof (u = lr(
t
)))
throw TypeError(
"Target is not iterable"
);
if (nr(
u
)) {
for (s = 0, c = ct(
t.length
); c > s; s++)
if (
(f = o
? p(
R(
(h = t[s])
)[0],
h[1]
)
: p(
t[s]
)) &&
f instanceof e
)
return f;
return new e(
!1
);
}
a = u.call(
t
);
}
for (l = a.next; !(h = l.call(
a
)).done; )
if (
"object" ==
typeof (f = tr(
a,
p,
h.value,
o
)) &&
f &&
f instanceof e
)
return f;
return new e(
!1
);
}).stop = function (
t
) {
return new e(
!0,
t
);
};
}
),
_r = function (
t, e, r
) {
if (!(t instanceof e))
throw TypeError(
"Incorrect " + (r ? r + " " : "") + "invocation"
);
return t;
},
Nr = function (
t, e, r
) {
var n, o;
return (
qe &&
"function" == typeof (n = e.constructor) &&
n !== r &&
g(
(o = n.prototype)
) &&
o !== r.prototype &&
qe(
t,
o
),
t
);
},
Cr = function (
t, e, r
) {
var i = -1 !== t.indexOf(
"Map"
),
a = -1 !== t.indexOf(
"Weak"
),
u = i ? "set" : "add",
s = n[t],
c = s && s.prototype,
f = s,
l = {
},
h = function (
t
) {
var e = c[t];
et(
c,
t,
"add" == t
? function (
t
) {
return (
e.call(
this,
0 === t ? 0 : t
),
this
);
}
: "delete" == t
? function (
t
) {
return (
!(a && !g(
t
)) &&
e.call(
this,
0 === t ? 0 : t
)
);
}
: "get" == t
? function (
t
) {
return a && !g(
t
)
? void 0
: e.call(
this,
0 === t ? 0 : t
);
}
: "has" == t
? function (
t
) {
return (
!(a && !g(
t
)) &&
e.call(
this,
0 === t ? 0 : t
)
);
}
: function (
t, r
) {
return (
e.call(
this,
0 === t ? 0 : t,
r
),
this
);
}
);
};
if (
It(
t,
"function" != typeof s ||
!(
a ||
(c.forEach &&
!o(
function (
) {
new s(
).entries(
).next(
);
}
))
)
)
)
(f = r.getConstructor(
e,
t,
i,
u
)),
(Ur.REQUIRED = !0);
else if (It(
t,
!0
)) {
var p = new f(
),
d = p[u](
a
? {
}
: -0,
1
) != p,
v = o(
function (
) {
p.has(
1
);
}
),
y = yr(
function (
t
) {
new s(
t
);
}
),
m =
!a &&
o(
function (
) {
for (var t = new s(
), e = 5; e--; )
t[u](
e,
e
);
return !t.has(
-0
);
}
);
y ||
(((f = e(
function (
e, r
) {
_r(
e,
f,
t
);
var n = Nr(
new s(
),
e,
f
);
return null != r && Mr(
r,
n[u],
n,
i
), n;
}
)).prototype = c),
(c.constructor = f)),
(v || m) &&
(h(
"delete"
), h(
"has"
), i && h(
"get"
)),
(m || d) && h(
u
),
a && c.clear && delete c.clear;
}
return (
(l[t] = f),
kt(
{
global: !0,
forced: f != s,
},
l
),
_e(
f,
t
),
a || r.setStrong(
f,
t,
i
),
f
);
},
Fr = function (
t, e, r
) {
for (var n in e) et(
t,
n,
e[n],
r
);
return t;
},
Br = Dt(
"species"
),
Dr = function (
t
) {
var e = ot(
t
);
i &&
e &&
!e[Br] &&
(0, P.f)(
e,
Br,
{
configurable: !0,
get: function (
) {
return this;
},
}
);
},
qr = P.f,
zr = Ur.fastKey,
Wr = tt.set,
Kr = tt.getterFor,
Gr = {
getConstructor: function (
t, e, r, n
) {
var o = t(
function (
t, a
) {
_r(
t,
o,
e
),
Wr(
t,
{
type: e,
index: Ht(
null
),
first: void 0,
last: void 0,
size: 0,
}
),
i || (t.size = 0),
null != a && Mr(
a,
t[n],
t,
r
);
}
),
a = Kr(
e
),
u = function (
t, e, r
) {
var n,
o,
u = a(
t
),
c = s(
t,
e
);
return (
c
? (c.value = r)
: ((u.last = c =
{
index: (o = zr(
e,
!0
)),
key: e,
value: r,
previous: (n = u.last),
next: void 0,
removed: !1,
}),
u.first || (u.first = c),
n && (n.next = c),
i ? u.size++ : t.size++,
"F" !== o && (u.index[o] = c)),
t
);
},
s = function (
t, e
) {
var r,
n = a(
t
),
o = zr(
e
);
if ("F" !== o) return n.index[o];
for (r = n.first; r; r = r.next)
if (r.key == e) return r;
};
return (
Fr(
o.prototype,
{
clear: function (
) {
for (
var t = a(
this
),
e = t.index,
r = t.first;
r;
)
(r.removed = !0),
r.previous &&
(r.previous =
r.previous.next =
void 0),
delete e[r.index],
(r = r.next);
(t.first = t.last = void 0),
i ? (t.size = 0) : (this.size = 0);
},
delete: function (
t
) {
var e = this,
r = a(
e
),
n = s(
e,
t
);
if (n) {
var o = n.next,
u = n.previous;
delete r.index[n.index],
(n.removed = !0),
u && (u.next = o),
o && (o.previous = u),
r.first == n && (r.first = o),
r.last == n && (r.last = u),
i ? r.size-- : e.size--;
}
return !!n;
},
forEach: function (
t
) {
for (
var e,
r = a(
this
),
n = Zt(
t,
arguments.length > 1
? arguments[1]
: void 0,
3
);
(e = e ? e.next : r.first);
)
for (
n(
e.value,
e.key,
this
);
e && e.removed;
)
e = e.previous;
},
has: function (
t
) {
return !!s(
this,
t
);
},
}
),
Fr(
o.prototype,
r
? {
get: function (
t
) {
var e = s(
this,
t
);
return e && e.value;
},
set: function (
t, e
) {
return u(
this,
0 === t ? 0 : t,
e
);
},
}
: {
add: function (
t
) {
return u(
this,
(t = 0 === t ? 0 : t),
t
);
},
}
),
i &&
qr(
o.prototype,
"size",
{
get: function (
) {
return a(
this
).size;
},
}
),
o
);
},
setStrong: function (
t, e, r
) {
var n = e + " Iterator",
o = Kr(
e
),
i = Kr(
n
);
Xe(
t,
e,
function (
t, e
) {
Wr(
this,
{
type: n,
target: t,
state: o(
t
),
kind: e,
last: void 0,
}
);
},
function (
) {
for (
var t = i(
this
), e = t.kind, r = t.last;
r && r.removed;
)
r = r.previous;
return t.target &&
(t.last = r =
r ? r.next : t.state.first)
? "keys" == e
? {
value: r.key,
done: !1,
}
: "values" == e
? {
value: r.value,
done: !1,
}
: {
value: [r.key, r.value,],
done: !1,
}
: ((t.target = void 0),
{
value: void 0,
done: !0,
});
},
r ? "entries" : "values",
!r,
!0
),
Dr(
e
);
},
},
$r = Cr(
"Map",
function (
t
) {
return function (
) {
return t(
this,
arguments.length ? arguments[0] : void 0
);
};
},
Gr
);
ar ||
et(
Object.prototype,
"toString",
ar
? {
}.toString
: function (
) {
return "[object " + cr(
this
) + "]";
},
{
unsafe: !0,
}
);
var Vr = {
CSSRuleList: 0,
CSSStyleDeclaration: 0,
CSSValueList: 0,
ClientRectList: 0,
DOMRectList: 0,
DOMStringList: 0,
DOMTokenList: 1,
DataTransferItemList: 0,
FileList: 0,
HTMLAllCollection: 0,
HTMLCollection: 0,
HTMLFormElement: 0,
HTMLSelectElement: 0,
MediaList: 0,
MimeTypeArray: 0,
NamedNodeMap: 0,
NodeList: 1,
PaintRequestList: 0,
Plugin: 0,
PluginArray: 0,
SVGLengthList: 0,
SVGNumberList: 0,
SVGPathSegList: 0,
SVGPointList: 0,
SVGStringList: 0,
SVGTransformList: 0,
SourceBufferList: 0,
StyleSheetList: 0,
TextTrackCueList: 0,
TextTrackList: 0,
TouchList: 0,
},
Hr = Dt(
"iterator"
),
Xr = Dt(
"toStringTag"
),
Yr = Ar.values;
for (var Jr in Vr) {
var Qr = n[Jr],
Zr = Qr && Qr.prototype;
if (Zr) {
if (Zr[Hr] !== Yr)
try {
I(
Zr,
Hr,
Yr
);
} catch (t) {
Zr[Hr] = Yr;
}
if ((Zr[Xr] || I(
Zr,
Xr,
Jr
), Vr[Jr]))
for (var tn in Ar)
if (Zr[tn] !== Ar[tn])
try {
I(
Zr,
tn,
Ar[tn]
);
} catch (t) {
Zr[tn] = Ar[tn];
}
}
}
var en = function (
t
) {
var e,
r,
n,
o,
i = arguments.length,
a = i > 1 ? arguments[1] : void 0;
return (
Qt(
this
),
(e = void 0 !== a) && Qt(
a
),
null == t
? new this(
)
: ((r = []),
e
? ((n = 0),
(o = Zt(
a,
i > 2 ? arguments[2] : void 0,
2
)),
Mr(
t,
function (
t
) {
r.push(
o(
t,
n++
)
);
}
))
: Mr(
t,
r.push,
r
),
new this(
r
))
);
};
kt(
{
target: "Map",
stat: !0,
},
{
from: en,
}
);
var rn = function (
) {
for (var t = arguments.length, e = new Array(
t
); t--; )
e[t] = arguments[t];
return new this(
e
);
};
kt(
{
target: "Map",
stat: !0,
},
{
of: rn,
}
);
var nn = function (
) {
for (
var t,
e = R(
this
),
r = Qt(
e.delete
),
n = !0,
o = 0,
i = arguments.length;
o < i;
o++
)
(t = r.call(
e,
arguments[o]
)), (n = n && t);
return !!n;
};
kt(
{
target: "Map",
proto: !0,
real: !0,
forced: D,
},
{
deleteAll: function (
) {
return nn.apply(
this,
arguments
);
},
}
);
var on = function (
t
) {
var e = lr(
t
);
if ("function" != typeof e)
throw TypeError(
String(
t
) + " is not iterable"
);
return R(
e.call(
t
)
);
},
an = function (
t
) {
return Map.prototype.entries.call(
t
);
};
kt(
{
target: "Map",
proto: !0,
real: !0,
forced: D,
},
{
every: function (
t
) {
var e = R(
this
),
r = an(
e
),
n = Zt(
t,
arguments.length > 1
? arguments[1]
: void 0,
3
);
return !Mr(
r,
function (
t, r
) {
if (!n(
r,
t,
e
)) return Mr.stop(
);
},
void 0,
!0,
!0
).stopped;
},
}
);
var un = Dt(
"species"
),
sn = function (
t, e
) {
var r,
n = R(
t
).constructor;
return void 0 === n || null == (r = R(
n
)[un])
? e
: Qt(
r
);
};
kt(
{
target: "Map",
proto: !0,
real: !0,
forced: D,
},
{
filter: function (
t
) {
var e = R(
this
),
r = an(
e
),
n = Zt(
t,
arguments.length > 1
? arguments[1]
: void 0,
3
),
o = new (sn(
e,
ot(
"Map"
)
))(
),
i = Qt(
o.set
);
return (
Mr(
r,
function (
t, r
) {
n(
r,
t,
e
) && i.call(
o,
t,
r
);
},
void 0,
!0,
!0
),
o
);
},
}
),
kt(
{
target: "Map",
proto: !0,
real: !0,
forced: D,
},
{
find: function (
t
) {
var e = R(
this
),
r = an(
e
),
n = Zt(
t,
arguments.length > 1
? arguments[1]
: void 0,
3
);
return Mr(
r,
function (
t, r
) {
if (n(
r,
t,
e
)) return Mr.stop(
r
);
},
void 0,
!0,
!0
).result;
},
}
),
kt(
{
target: "Map",
proto: !0,
real: !0,
forced: D,
},
{
findKey: function (
t
) {
var e = R(
this
),
r = an(
e
),
n = Zt(
t,
arguments.length > 1
? arguments[1]
: void 0,
3
);
return Mr(
r,
function (
t, r
) {
if (n(
r,
t,
e
)) return Mr.stop(
t
);
},
void 0,
!0,
!0
).result;
},
}
),
kt(
{
target: "Map",
stat: !0,
},
{
groupBy: function (
t, e
) {
var r = new this(
);
Qt(
e
);
var n = Qt(
r.has
),
o = Qt(
r.get
),
i = Qt(
r.set
);
return (
Mr(
t,
function (
t
) {
var a = e(
t
);
n.call(
r,
a
)
? o.call(
r,
a
).push(
t
)
: i.call(
r,
a,
[t,]
);
}
),
r
);
},
}
),
kt(
{
target: "Map",
proto: !0,
real: !0,
forced: D,
},
{
includes: function (
t
) {
return Mr(
an(
R(
this
)
),
function (
e, r
) {
if (
(n = r) === (o = t) ||
(n != n && o != o)
)
return Mr.stop(
);
var n, o;
},
void 0,
!0,
!0
).stopped;
},
}
),
kt(
{
target: "Map",
stat: !0,
},
{
keyBy: function (
t, e
) {
var r = new this(
);
Qt(
e
);
var n = Qt(
r.set
);
return (
Mr(
t,
function (
t
) {
n.call(
r,
e(
t
),
t
);
}
),
r
);
},
}
),
kt(
{
target: "Map",
proto: !0,
real: !0,
forced: D,
},
{
keyOf: function (
t
) {
return Mr(
an(
R(
this
)
),
function (
e, r
) {
if (r === t) return Mr.stop(
e
);
},
void 0,
!0,
!0
).result;
},
}
),
kt(
{
target: "Map",
proto: !0,
real: !0,
forced: D,
},
{
mapKeys: function (
t
) {
var e = R(
this
),
r = an(
e
),
n = Zt(
t,
arguments.length > 1
? arguments[1]
: void 0,
3
),
o = new (sn(
e,
ot(
"Map"
)
))(
),
i = Qt(
o.set
);
return (
Mr(
r,
function (
t, r
) {
i.call(
o,
n(
r,
t,
e
),
r
);
},
void 0,
!0,
!0
),
o
);
},
}
),
kt(
{
target: "Map",
proto: !0,
real: !0,
forced: D,
},
{
mapValues: function (
t
) {
var e = R(
this
),
r = an(
e
),
n = Zt(
t,
arguments.length > 1
? arguments[1]
: void 0,
3
),
o = new (sn(
e,
ot(
"Map"
)
))(
),
i = Qt(
o.set
);
return (
Mr(
r,
function (
t, r
) {
i.call(
o,
t,
n(
r,
t,
e
)
);
},
void 0,
!0,
!0
),
o
);
},
}
),
kt(
{
target: "Map",
proto: !0,
real: !0,
forced: D,
},
{
merge: function (
t
) {
for (
var e = R(
this
), r = Qt(
e.set
), n = 0;
n < arguments.length;
)
Mr(
arguments[n++],
r,
e,
!0
);
return e;
},
}
),
kt(
{
target: "Map",
proto: !0,
real: !0,
forced: D,
},
{
reduce: function (
t
) {
var e = R(
this
),
r = an(
e
),
n = arguments.length < 2,
o = n ? void 0 : arguments[1];
if (
(Qt(
t
),
Mr(
r,
function (
r, i
) {
n
? ((n = !1), (o = i))
: (o = t(
o,
i,
r,
e
));
},
void 0,
!0,
!0
),
n)
)
throw TypeError(
"Reduce of empty map with no initial value"
);
return o;
},
}
),
kt(
{
target: "Map",
proto: !0,
real: !0,
forced: D,
},
{
some: function (
t
) {
var e = R(
this
),
r = an(
e
),
n = Zt(
t,
arguments.length > 1
? arguments[1]
: void 0,
3
);
return Mr(
r,
function (
t, r
) {
if (n(
r,
t,
e
)) return Mr.stop(
);
},
void 0,
!0,
!0
).stopped;
},
}
),
kt(
{
target: "Map",
proto: !0,
real: !0,
forced: D,
},
{
update: function (
t, e
) {
var r = R(
this
),
n = arguments.length;
Qt(
e
);
var o = r.has(
t
);
if (!o && n < 3)
throw TypeError(
"Updating absent value"
);
var i = o
? r.get(
t
)
: Qt(
n > 2 ? arguments[2] : void 0
)(
t,
r
);
return r.set(
t,
e(
i,
t,
r
)
), r;
},
}
);
var cn = function (
t, e
) {
var r,
n = R(
this
),
o = arguments.length > 2 ? arguments[2] : void 0;
if ("function" != typeof e && "function" != typeof o)
throw TypeError(
"At least one callback required"
);
return (
n.has(
t
)
? ((r = n.get(
t
)),
"function" == typeof e &&
((r = e(
r
)), n.set(
t,
r
)))
: "function" == typeof o &&
((r = o(
)), n.set(
t,
r
)),
r
);
};
kt(
{
target: "Map",
proto: !0,
real: !0,
forced: D,
},
{
upsert: cn,
}
),
kt(
{
target: "Map",
proto: !0,
real: !0,
forced: D,
},
{
updateOrInsert: cn,
}
);
var fn = "\t\n\v\f\r \u2028\u2029\ufeff",
ln = "[" + fn + "]",
hn = RegExp(
"^" + ln + ln + "*"
),
pn = RegExp(
ln + ln + "*$"
),
dn = function (
t
) {
return function (
e
) {
var r = String(
d(
e
)
);
return (
1 & t && (r = r.replace(
hn,
""
)),
2 & t && (r = r.replace(
pn,
""
)),
r
);
};
},
vn = {
start: dn(
1
),
end: dn(
2
),
trim: dn(
3
),
},
gn = bt.f,
yn = O.f,
mn = P.f,
bn = vn.trim,
wn = "Number",
Sn = n.Number,
En = Sn.prototype,
xn = l(
Ht(
En
)
) == wn,
An = function (
t
) {
var e,
r,
n,
o,
i,
a,
u,
s,
c = y(
t,
!1
);
if ("string" == typeof c && c.length > 2)
if (
43 === (e = (c = bn(
c
)).charCodeAt(
0
)) ||
45 === e
) {
if (88 === (r = c.charCodeAt(
2
)) || 120 === r)
return NaN;
} else if (48 === e) {
switch (c.charCodeAt(
1
)) {
case 66:
case 98:
(n = 2), (o = 49);
break;
case 79:
case 111:
(n = 8), (o = 55);
break;
default:
return +c;
}
for (
a = (i = c.slice(
2
)).length, u = 0;
u < a;
u++
)
if ((s = i.charCodeAt(
u
)) < 48 || s > o)
return NaN;
return parseInt(
i,
n
);
}
return +c;
};
if (It(
wn,
!Sn(
" 0o1"
) || !Sn(
"0b1"
) || Sn(
"+0x1"
)
)) {
for (
var On,
Rn = function (
t
) {
var e = arguments.length < 1 ? 0 : t,
r = this;
return r instanceof Rn &&
(xn
? o(
function (
) {
En.valueOf.call(
r
);
}
)
: l(
r
) != wn)
? Nr(
new Sn(
An(
e
)
),
r,
Rn
)
: An(
e
);
},
jn = i
? gn(
Sn
)
: "MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(
","
),
Pn = 0;
jn.length > Pn;
Pn++
)
b(
Sn, (
On = jn[Pn])
) &&
!b(
Rn,
On
) &&
mn(
Rn,
On,
yn(
Sn,
On
)
);
(Rn.prototype = En), (En.constructor = Rn), et(
n,
wn,
Rn
);
}
kt(
{
target: "Number",
stat: !0,
},
{
EPSILON: Math.pow(
2,
-52
),
}
);
var In = n.isFinite;
kt(
{
target: "Number",
stat: !0,
},
{
isFinite:
Number.isFinite ||
function (
t
) {
return "number" == typeof t && In(
t
);
},
}
);
var Tn = Math.floor,
kn = function (
t
) {
return !g(
t
) && isFinite(
t
) && Tn(
t
) === t;
};
kt(
{
target: "Number",
stat: !0,
},
{
isInteger: kn,
}
),
kt(
{
target: "Number",
stat: !0,
},
{
isNaN: function (
t
) {
return t != t;
},
}
);
var Ln = Math.abs;
kt(
{
target: "Number",
stat: !0,
},
{
isSafeInteger: function (
t
) {
return kn(
t
) && Ln(
t
) <= 9007199254740991;
},
}
),
kt(
{
target: "Number",
stat: !0,
},
{
MAX_SAFE_INTEGER: 9007199254740991,
}
),
kt(
{
target: "Number",
stat: !0,
},
{
MIN_SAFE_INTEGER: -9007199254740991,
}
);
var Un = vn.trim,
Mn = n.parseFloat,
_n =
1 / Mn(
fn + "-0"
) != -1 / 0
? function (
t
) {
var e = Un(
String(
t
)
),
r = Mn(
e
);
return 0 === r && "-" == e.charAt(
0
)
? -0
: r;
}
: Mn;
kt(
{
target: "Number",
stat: !0,
forced: Number.parseFloat != _n,
},
{
parseFloat: _n,
}
);
var Nn = vn.trim,
Cn = n.parseInt,
Fn = /^[+-]?0[Xx]/,
Bn =
8 !== Cn(
fn + "08"
) || 22 !== Cn(
fn + "0x16"
)
? function (
t, e
) {
var r = Nn(
String(
t
)
);
return Cn(
r,
e >>> 0 || (Fn.test(
r
)
? 16
: 10)
);
}
: Cn;
kt(
{
target: "Number",
stat: !0,
forced: Number.parseInt != Bn,
},
{
parseInt: Bn,
}
);
var Dn = s.f,
qn = function (
t
) {
return function (
e
) {
for (
var r,
n = v(
e
),
o = qt(
n
),
a = o.length,
u = 0,
s = [];
a > u;
)
(r = o[u++]),
(i && !Dn.call(
n,
r
)) ||
s.push(
t ? [r, n[r],] : n[r]
);
return s;
};
},
zn = {
entries: qn(
!0
),
values: qn(
!1
),
},
Wn = zn.entries;
kt(
{
target: "Object",
stat: !0,
},
{
entries: function (
t
) {
return Wn(
t
);
},
}
),
kt(
{
target: "Object",
stat: !0,
sham: !i,
},
{
getOwnPropertyDescriptors: function (
t
) {
for (
var e,
r,
n = v(
t
),
o = O.f,
i = St(
n
),
a = {
},
u = 0;
i.length > u;
)
void 0 !== (r = o(
n, (
e = i[u++])
)) &&
or(
a,
e,
r
);
return a;
},
}
);
var Kn = o(
function (
) {
qt(
1
);
}
);
kt(
{
target: "Object",
stat: !0,
forced: Kn,
},
{
keys: function (
t
) {
return qt(
Lt(
t
)
);
},
}
);
var Gn =
Object.is ||
function (
t, e
) {
return t === e
? 0 !== t || 1 / t == 1 / e
: t != t && e != e;
};
kt(
{
target: "Object",
stat: !0,
},
{
is: Gn,
}
);
var $n = zn.values;
kt(
{
target: "Object",
stat: !0,
},
{
values: function (
t
) {
return $n(
t
);
},
}
);
var Vn = ot(
"Reflect",
"apply"
),
Hn = Function.apply,
Xn = !o(
function (
) {
Vn(
function (
) {}
);
}
);
kt(
{
target: "Reflect",
stat: !0,
forced: Xn,
},
{
apply: function (
t, e, r
) {
return (
Qt(
t
), R(
r
), Vn
? Vn(
t,
e,
r
)
: Hn.call(
t,
e,
r
)
);
},
}
);
var Yn = [].slice,
Jn = {
},
Qn = function (
t, e, r
) {
if (!(e in Jn)) {
for (var n = [], o = 0; o < e; o++)
n[o] = "a[" + o + "]";
Jn[e] = Function(
"C,a",
"return new C(" + n.join(
","
) + ")"
);
}
return Jn[e](
t,
r
);
},
Zn =
Function.bind ||
function (
t
) {
var e = Qt(
this
),
r = Yn.call(
arguments,
1
),
n = function (
) {
var o = r.concat(
Yn.call(
arguments
)
);
return this instanceof n
? Qn(
e,
o.length,
o
)
: e.apply(
t,
o
);
};
return (
g(
e.prototype
) && (n.prototype = e.prototype), n
);
},
to = ot(
"Reflect",
"construct"
),
eo = o(
function (
) {
function t(
) {}
return !(to(
function (
) {},
[],
t
) instanceof t);
}
),
ro = !o(
function (
) {
to(
function (
) {}
);
}
),
no = eo || ro;
kt(
{
target: "Reflect",
stat: !0,
forced: no,
sham: no,
},
{
construct: function (
t, e
) {
Qt(
t
), R(
e
);
var r = arguments.length < 3
? t
: Qt(
arguments[2]
);
if (ro && !eo) return to(
t,
e,
r
);
if (t == r) {
switch (e.length) {
case 0:
return new t(
);
case 1:
return new t(
e[0]
);
case 2:
return new t(
e[0],
e[1]
);
case 3:
return new t(
e[0],
e[1],
e[2]
);
case 4:
return new t(
e[0],
e[1],
e[2],
e[3]
);
}
var n = [null,];
return (
n.push.apply(
n,
e
), new (Zn.apply(
t,
n
))(
)
);
}
var o = r.prototype,
i = Ht(
g(
o
)
? o
: Object.prototype
),
a = Function.apply.call(
t,
i,
e
);
return g(
a
)
? a
: i;
},
}
);
var oo = o(
function (
) {
Reflect.defineProperty(
P.f(
{
},
1,
{
value: 1,
}
),
1,
{
value: 2,
}
);
}
);
kt(
{
target: "Reflect",
stat: !0,
forced: oo,
sham: !i,
},
{
defineProperty: function (
t, e, r
) {
R(
t
);
var n = y(
e,
!0
);
R(
r
);
try {
return P.f(
t,
n,
r
), !0;
} catch (t) {
return !1;
}
},
}
);
var io = O.f;
kt(
{
target: "Reflect",
stat: !0,
},
{
deleteProperty: function (
t, e
) {
var r = io(
R(
t
),
e
);
return !(r && !r.configurable) && delete t[e];
},
}
),
kt(
{
target: "Reflect",
stat: !0,
},
{
get: function t(
e, r
) {
var n,
o,
i = arguments.length < 3 ? e : arguments[2];
return R(
e
) === i
? e[r]
: (n = O.f(
e,
r
))
? b(
n,
"value"
)
? n.value
: void 0 === n.get
? void 0
: n.get.call(
i
)
: g(
(o = Ie(
e
))
)
? t(
o,
r,
i
)
: void 0;
},
}
),
kt(
{
target: "Reflect",
stat: !0,
sham: !i,
},
{
getOwnPropertyDescriptor: function (
t, e
) {
return O.f(
R(
t
),
e
);
},
}
),
kt(
{
target: "Reflect",
stat: !0,
sham: !Re,
},
{
getPrototypeOf: function (
t
) {
return Ie(
R(
t
)
);
},
}
),
kt(
{
target: "Reflect",
stat: !0,
},
{
has: function (
t, e
) {
return e in t;
},
}
);
var ao = Object.isExtensible;
kt(
{
target: "Reflect",
stat: !0,
},
{
isExtensible: function (
t
) {
return R(
t
), !ao || ao(
t
);
},
}
),
kt(
{
target: "Reflect",
stat: !0,
},
{
ownKeys: St,
}
),
kt(
{
target: "Reflect",
stat: !0,
sham: !Lr,
},
{
preventExtensions: function (
t
) {
R(
t
);
try {
var e = ot(
"Object",
"preventExtensions"
);
return e && e(
t
), !0;
} catch (t) {
return !1;
}
},
}
);
var uo = o(
function (
) {
var t = P.f(
{
},
"a",
{
configurable: !0,
}
);
return !1 !== Reflect.set(
Ie(
t
),
"a",
1,
t
);
}
);
kt(
{
target: "Reflect",
stat: !0,
forced: uo,
},
{
set: function t(
e, r, n
) {
var o,
i,
a = arguments.length < 4 ? e : arguments[3],
u = O.f(
R(
e
),
r
);
if (!u) {
if (g(
(i = Ie(
e
))
)) return t(
i,
r,
n,
a
);
u = c(
0
);
}
if (b(
u,
"value"
)) {
if (!1 === u.writable || !g(
a
)) return !1;
if ((o = O.f(
a,
r
))) {
if (o.get || o.set || !1 === o.writable)
return !1;
(o.value = n), P.f(
a,
r,
o
);
} else P.f(
a,
r,
c(
0,
n
)
);
return !0;
}
return void 0 !== u.set && (u.set.call(
a,
n
), !0);
},
}
),
qe &&
kt(
{
target: "Reflect",
stat: !0,
},
{
setPrototypeOf: function (
t, e
) {
R(
t
), De(
e
);
try {
return qe(
t,
e
), !0;
} catch (t) {
return !1;
}
},
}
);
var so = Ur.getWeakData,
co = tt.set,
fo = tt.getterFor,
lo = ue.find,
ho = ue.findIndex,
po = 0,
vo = function (
t
) {
return t.frozen || (t.frozen = new go(
));
},
go = function (
) {
this.entries = [];
},
yo = function (
t, e
) {
return lo(
t.entries,
function (
t
) {
return t[0] === e;
}
);
};
go.prototype = {
get: function (
t
) {
var e = yo(
this,
t
);
if (e) return e[1];
},
has: function (
t
) {
return !!yo(
this,
t
);
},
set: function (
t, e
) {
var r = yo(
this,
t
);
r
? (r[1] = e)
: this.entries.push(
[t, e,]
);
},
delete: function (
t
) {
var e = ho(
this.entries,
function (
e
) {
return e[0] === t;
}
);
return ~e && this.entries.splice(
e,
1
), !!~e;
},
};
var mo = {
getConstructor: function (
t, e, r, n
) {
var o = t(
function (
t, i
) {
_r(
t,
o,
e
),
co(
t,
{
type: e,
id: po++,
frozen: void 0,
}
),
null != i && Mr(
i,
t[n],
t,
r
);
}
),
i = fo(
e
),
a = function (
t, e, r
) {
var n = i(
t
),
o = so(
R(
e
),
!0
);
return (
!0 === o
? vo(
n
).set(
e,
r
)
: (o[n.id] = r),
t
);
};
return (
Fr(
o.prototype,
{
delete: function (
t
) {
var e = i(
this
);
if (!g(
t
)) return !1;
var r = so(
t
);
return !0 === r
? vo(
e
).delete(
t
)
: r && b(
r,
e.id
) && delete r[e.id];
},
has: function (
t
) {
var e = i(
this
);
if (!g(
t
)) return !1;
var r = so(
t
);
return !0 === r
? vo(
e
).has(
t
)
: r && b(
r,
e.id
);
},
}
),
Fr(
o.prototype,
r
? {
get: function (
t
) {
var e = i(
this
);
if (g(
t
)) {
var r = so(
t
);
return !0 === r
? vo(
e
).get(
t
)
: r
? r[e.id]
: void 0;
}
},
set: function (
t, e
) {
return a(
this,
t,
e
);
},
}
: {
add: function (
t
) {
return a(
this,
t,
!0
);
},
}
),
o
);
},
},
bo = e(
function (
t
) {
var e,
r = tt.enforce,
o = !n.ActiveXObject && "ActiveXObject" in n,
i = Object.isExtensible,
a = function (
t
) {
return function (
) {
return t(
this,
arguments.length ? arguments[0] : void 0
);
};
},
u = (t.exports = Cr(
"WeakMap",
a,
mo
));
if (B && o) {
(e = mo.getConstructor(
a,
"WeakMap",
!0
)),
(Ur.REQUIRED = !0);
var s = u.prototype,
c = s.delete,
f = s.has,
l = s.get,
h = s.set;
Fr(
s,
{
delete: function (
t
) {
if (g(
t
) && !i(
t
)) {
var n = r(
this
);
return (
n.frozen || (n.frozen = new e(
)),
c.call(
this,
t
) ||
n.frozen.delete(
t
)
);
}
return c.call(
this,
t
);
},
has: function (
t
) {
if (g(
t
) && !i(
t
)) {
var n = r(
this
);
return (
n.frozen || (n.frozen = new e(
)),
f.call(
this,
t
) || n.frozen.has(
t
)
);
}
return f.call(
this,
t
);
},
get: function (
t
) {
if (g(
t
) && !i(
t
)) {
var n = r(
this
);
return (
n.frozen || (n.frozen = new e(
)),
f.call(
this,
t
)
? l.call(
this,
t
)
: n.frozen.get(
t
)
);
}
return l.call(
this,
t
);
},
set: function (
t, n
) {
if (g(
t
) && !i(
t
)) {
var o = r(
this
);
o.frozen || (o.frozen = new e(
)),
f.call(
this,
t
)
? h.call(
this,
t,
n
)
: o.frozen.set(
t,
n
);
} else h.call(
this,
t,
n
);
return this;
},
}
);
}
}
),
wo = q(
"metadata"
),
So = wo.store || (wo.store = new bo(
)),
Eo = function (
t, e, r
) {
var n = So.get(
t
);
if (!n) {
if (!r) return;
So.set(
t, (
n = new $r(
))
);
}
var o = n.get(
e
);
if (!o) {
if (!r) return;
n.set(
e, (
o = new $r(
))
);
}
return o;
},
xo = {
store: So,
getMap: Eo,
has: function (
t, e, r
) {
var n = Eo(
e,
r,
!1
);
return void 0 !== n && n.has(
t
);
},
get: function (
t, e, r
) {
var n = Eo(
e,
r,
!1
);
return void 0 === n
? void 0
: n.get(
t
);
},
set: function (
t, e, r, n
) {
Eo(
r,
n,
!0
).set(
t,
e
);
},
keys: function (
t, e
) {
var r = Eo(
t,
e,
!1
),
n = [];
return (
r &&
r.forEach(
function (
t, e
) {
n.push(
e
);
}
),
n
);
},
toKey: function (
t
) {
return void 0 === t || "symbol" == typeof t
? t
: String(
t
);
},
},
Ao = xo.toKey,
Oo = xo.set;
kt(
{
target: "Reflect",
stat: !0,
},
{
defineMetadata: function (
t, e, r
) {
var n =
arguments.length < 4
? void 0
: Ao(
arguments[3]
);
Oo(
t,
e,
R(
r
),
n
);
},
}
);
var Ro = xo.toKey,
jo = xo.getMap,
Po = xo.store;
kt(
{
target: "Reflect",
stat: !0,
},
{
deleteMetadata: function (
t, e
) {
var r =
arguments.length < 3
? void 0
: Ro(
arguments[2]
),
n = jo(
R(
e
),
r,
!1
);
if (void 0 === n || !n.delete(
t
)) return !1;
if (n.size) return !0;
var o = Po.get(
e
);
return o.delete(
r
), !!o.size || Po.delete(
e
);
},
}
);
var Io = xo.has,
To = xo.get,
ko = xo.toKey,
Lo = function t(
e, r, n
) {
if (Io(
e,
r,
n
)) return To(
e,
r,
n
);
var o = Ie(
r
);
return null !== o
? t(
e,
o,
n
)
: void 0;
};
kt(
{
target: "Reflect",
stat: !0,
},
{
getMetadata: function (
t, e
) {
var r =
arguments.length < 3
? void 0
: ko(
arguments[2]
);
return Lo(
t,
R(
e
),
r
);
},
}
);
var Uo = Cr(
"Set",
function (
t
) {
return function (
) {
return t(
this,
arguments.length ? arguments[0] : void 0
);
};
},
Gr
),
Mo = xo.keys,
_o = xo.toKey,
No = function t(
e, r
) {
var n = Mo(
e,
r
),
o = Ie(
e
);
if (null === o) return n;
var i,
a,
u = t(
o,
r
);
return u.length
? n.length
? ((i = new Uo(
n.concat(
u
)
)),
Mr(
i,
(a = []).push,
a
),
a)
: u
: n;
};
kt(
{
target: "Reflect",
stat: !0,
},
{
getMetadataKeys: function (
t
) {
var e =
arguments.length < 2
? void 0
: _o(
arguments[1]
);
return No(
R(
t
),
e
);
},
}
);
var Co = xo.get,
Fo = xo.toKey;
kt(
{
target: "Reflect",
stat: !0,
},
{
getOwnMetadata: function (
t, e
) {
var r =
arguments.length < 3
? void 0
: Fo(
arguments[2]
);
return Co(
t,
R(
e
),
r
);
},
}
);
var Bo = xo.keys,
Do = xo.toKey;
kt(
{
target: "Reflect",
stat: !0,
},
{
getOwnMetadataKeys: function (
t
) {
var e =
arguments.length < 2
? void 0
: Do(
arguments[1]
);
return Bo(
R(
t
),
e
);
},
}
);
var qo = xo.has,
zo = xo.toKey,
Wo = function t(
e, r, n
) {
if (qo(
e,
r,
n
)) return !0;
var o = Ie(
r
);
return null !== o && t(
e,
o,
n
);
};
kt(
{
target: "Reflect",
stat: !0,
},
{
hasMetadata: function (
t, e
) {
var r =
arguments.length < 3
? void 0
: zo(
arguments[2]
);
return Wo(
t,
R(
e
),
r
);
},
}
);
var Ko = xo.has,
Go = xo.toKey;
kt(
{
target: "Reflect",
stat: !0,
},
{
hasOwnMetadata: function (
t, e
) {
var r =
arguments.length < 3
? void 0
: Go(
arguments[2]
);
return Ko(
t,
R(
e
),
r
);
},
}
);
var $o = xo.toKey,
Vo = xo.set;
kt(
{
target: "Reflect",
stat: !0,
},
{
metadata: function (
t, e
) {
return function (
r, n
) {
Vo(
t,
e,
R(
r
),
$o(
n
)
);
};
},
}
);
var Ho = Dt(
"match"
),
Xo = function (
t
) {
var e;
return (
g(
t
) &&
(void 0 !== (e = t[Ho])
? !!e
: "RegExp" == l(
t
))
);
},
Yo = function (
) {
var t = R(
this
),
e = "";
return (
t.global && (e += "g"),
t.ignoreCase && (e += "i"),
t.multiline && (e += "m"),
t.dotAll && (e += "s"),
t.unicode && (e += "u"),
t.sticky && (e += "y"),
e
);
};
function Jo(
t, e
) {
return RegExp(
t,
e
);
}
var Qo = {
UNSUPPORTED_Y: o(
function (
) {
var t = Jo(
"a",
"y"
);
return (t.lastIndex = 2), null != t.exec(
"abcd"
);
}
),
BROKEN_CARET: o(
function (
) {
var t = Jo(
"^r",
"gy"
);
return (t.lastIndex = 2), null != t.exec(
"str"
);
}
),
},
Zo = P.f,
ti = bt.f,
ei = tt.set,
ri = Dt(
"match"
),
ni = n.RegExp,
oi = ni.prototype,
ii = /a/g,
ai = /a/g,
ui = new ni(
ii
) !== ii,
si = Qo.UNSUPPORTED_Y;
if (
i &&
It(
"RegExp",
!ui ||
si ||
o(
function (
) {
return (
(ai[ri] = !1),
ni(
ii
) != ii ||
ni(
ai
) == ai ||
"/a/i" != ni(
ii,
"i"
)
);
}
)
)
) {
for (
var ci = function (
t, e
) {
var r,
n = this instanceof ci,
o = Xo(
t
),
i = void 0 === e;
if (!n && o && t.constructor === ci && i)
return t;
ui
? o && !i && (t = t.source)
: t instanceof ci &&
(i && (e = Yo.call(
t
)), (t = t.source)),
si &&
(r = !!e && e.indexOf(
"y"
) > -1) &&
(e = e.replace(
/y/g,
""
));
var a = Nr(
ui
? new ni(
t,
e
)
: ni(
t,
e
),
n ? this : oi,
ci
);
return si && r && ei(
a,
{
sticky: r,
}
), a;
},
fi = function (
t
) {
(t in ci) ||
Zo(
ci,
t,
{
configurable: !0,
get: function (
) {
return ni[t];
},
set: function (
e
) {
ni[t] = e;
},
}
);
},
li = ti(
ni
),
hi = 0;
li.length > hi;
)
fi(
li[hi++]
);
(oi.constructor = ci),
(ci.prototype = oi),
et(
n,
"RegExp",
ci
);
}
Dr(
"RegExp"
);
var pi = "toString",
di = RegExp.prototype,
vi = di.toString;
(o(
function (
) {
return "/a/b" != vi.call(
{
source: "a",
flags: "b",
}
);
}
) ||
vi.name != pi) &&
et(
RegExp.prototype,
pi,
function (
) {
var t = R(
this
),
e = String(
t.source
),
r = t.flags;
return (
"/" +
e +
"/" +
String(
void 0 === r &&
t instanceof RegExp &&
!("flags" in di)
? Yo.call(
t
)
: r
)
);
},
{
unsafe: !0,
}
);
var gi = RegExp.prototype.exec,
yi = String.prototype.replace,
mi = gi,
bi = (function (
) {
var t = /a/,
e = /b*/g;
return (
gi.call(
t,
"a"
),
gi.call(
e,
"a"
),
0 !== t.lastIndex || 0 !== e.lastIndex
);
})(
),
wi = Qo.UNSUPPORTED_Y || Qo.BROKEN_CARET,
Si = void 0 !== /()??/.exec(
""
)[1];
(bi || Si || wi) &&
(mi = function (
t
) {
var e,
r,
n,
o,
i = this,
a = wi && i.sticky,
u = Yo.call(
i
),
s = i.source,
c = 0,
f = t;
return (
a &&
(-1 === (u = u.replace(
"y",
""
)).indexOf(
"g"
) &&
(u += "g"),
(f = String(
t
).slice(
i.lastIndex
)),
i.lastIndex > 0 &&
(!i.multiline ||
(i.multiline &&
"\n" !== t[i.lastIndex - 1])) &&
((s = "(?: " + s + ")"),
(f = " " + f),
c++),
(r = new RegExp(
"^(?:" + s + ")",
u
))),
Si && (r = new RegExp(
"^" + s + "$(?!\\s)",
u
)),
bi && (e = i.lastIndex),
(n = gi.call(
a ? r : i,
f
)),
a
? n
? ((n.input = n.input.slice(
c
)),
(n[0] = n[0].slice(
c
)),
(n.index = i.lastIndex),
(i.lastIndex += n[0].length))
: (i.lastIndex = 0)
: bi &&
n &&
(i.lastIndex = i.global
? n.index + n[0].length
: e),
Si &&
n &&
n.length > 1 &&
yi.call(
n[0],
r,
function (
) {
for (o = 1; o < arguments.length - 2; o++)
void 0 === arguments[o] &&
(n[o] = void 0);
}
),
n
);
});
var Ei = mi;
kt(
{
target: "RegExp",
proto: !0,
forced: /./.exec !== Ei,
},
{
exec: Ei,
}
),
i &&
("g" != /./g.flags || Qo.UNSUPPORTED_Y) &&
P.f(
RegExp.prototype,
"flags",
{
configurable: !0,
get: Yo,
}
);
var xi = tt.get,
Ai = RegExp.prototype;
i &&
Qo.UNSUPPORTED_Y &&
(0, P.f)(
RegExp.prototype,
"sticky",
{
configurable: !0,
get: function (
) {
if (this !== Ai) {
if (this instanceof RegExp)
return !!xi(
this
).sticky;
throw TypeError(
"Incompatible receiver, RegExp required"
);
}
},
}
);
var Oi,
Ri,
ji =
((Oi = !1),
((Ri = /[ac]/).exec = function (
) {
return (Oi = !0), /./.exec.apply(
this,
arguments
);
}),
!0 === Ri.test(
"abc"
) && Oi),
Pi = /./.test;
kt(
{
target: "RegExp",
proto: !0,
forced: !ji,
},
{
test: function (
t
) {
if ("function" != typeof this.exec)
return Pi.call(
this,
t
);
var e = this.exec(
t
);
if (null !== e && !g(
e
))
throw new Error(
"RegExp exec method returned something other than an Object or null"
);
return !!e;
},
}
);
var Ii = Dt(
"species"
),
Ti = !o(
function (
) {
var t = /./;
return (
(t.exec = function (
) {
var t = [];
return (t.groups = {
a: "7",
}), t;
}),
"7" !== "".replace(
t,
"$<a>"
)
);
}
),
ki = "$0" === "a".replace(
/./,
"$0"
),
Li = Dt(
"replace"
),
Ui = !!/./[Li] && "" === /./[Li](
"a",
"$0"
),
Mi = !o(
function (
) {
var t = /(?:)/,
e = t.exec;
t.exec = function (
) {
return e.apply(
this,
arguments
);
};
var r = "ab".split(
t
);
return 2 !== r.length || "a" !== r[0] || "b" !== r[1];
}
),
_i = function (
t, e, r, n
) {
var i = Dt(
t
),
a = !o(
function (
) {
var e = {
};
return (
(e[i] = function (
) {
return 7;
}),
7 != ""[t](
e
)
);
}
),
u =
a &&
!o(
function (
) {
var e = !1,
r = /a/;
return (
"split" === t &&
(((r = {
}).constructor = {
}),
(r.constructor[Ii] = function (
) {
return r;
}),
(r.flags = ""),
(r[i] = /./[i])),
(r.exec = function (
) {
return (e = !0), null;
}),
r[i](
""
),
!e
);
}
);
if (
!a ||
!u ||
("replace" === t && (!Ti || !ki || Ui)) ||
("split" === t && !Mi)
) {
var s = /./[i],
c = r(
i,
""[t],
function (
t, e, r, n, o
) {
return e.exec === Ei
? a && !o
? {
done: !0,
value: s.call(
e,
r,
n
),
}
: {
done: !0,
value: t.call(
r,
e,
n
),
}
: {
done: !1,
};
},
{
REPLACE_KEEPS_$0: ki,
REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:
Ui,
}
),
f = c[1];
et(
String.prototype,
t,
c[0]
),
et(
RegExp.prototype,
i,
2 == e
? function (
t, e
) {
return f.call(
t,
this,
e
);
}
: function (
t
) {
return f.call(
t,
this
);
}
);
}
n && I(
RegExp.prototype[i],
"sham",
!0
);
},
Ni = Oe.charAt,
Ci = function (
t, e, r
) {
return e + (r
? Ni(
t,
e
).length
: 1);
},
Fi = function (
t, e
) {
var r = t.exec;
if ("function" == typeof r) {
var n = r.call(
t,
e
);
if ("object" != typeof n)
throw TypeError(
"RegExp exec method returned something other than an Object or null"
);
return n;
}
if ("RegExp" !== l(
t
))
throw TypeError(
"RegExp#exec called on incompatible receiver"
);
return Ei.call(
t,
e
);
};
_i(
"match",
1,
function (
t, e, r
) {
return [
function (
e
) {
var r = d(
this
),
n = null == e ? void 0 : e[t];
return void 0 !== n
? n.call(
e,
r
)
: new RegExp(
e
)[t](
String(
r
)
);
},
function (
t
) {
var n = r(
e,
t,
this
);
if (n.done) return n.value;
var o = R(
t
),
i = String(
this
);
if (!o.global) return Fi(
o,
i
);
var a = o.unicode;
o.lastIndex = 0;
for (
var u, s = [], c = 0;
null !== (u = Fi(
o,
i
));
) {
var f = String(
u[0]
);
(s[c] = f),
"" === f &&
(o.lastIndex = Ci(
i,
ct(
o.lastIndex
),
a
)),
c++;
}
return 0 === c ? null : s;
},
];
}
);
var Bi = Math.max,
Di = Math.min,
qi = Math.floor,
zi = /\$([$&'`]|\d\d?|<[^>]*>)/g,
Wi = /\$([$&'`]|\d\d?)/g;
_i(
"replace",
2,
function (
t, e, r, n
) {
var o = n.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,
i = n.REPLACE_KEEPS_$0,
a = o ? "$" : "$0";
return [
function (
r, n
) {
var o = d(
this
),
i = null == r ? void 0 : r[t];
return void 0 !== i
? i.call(
r,
o,
n
)
: e.call(
String(
o
),
r,
n
);
},
function (
t, n
) {
if (
(!o && i) ||
("string" == typeof n && -1 === n.indexOf(
a
))
) {
var s = r(
e,
t,
this,
n
);
if (s.done) return s.value;
}
var c = R(
t
),
f = String(
this
),
l = "function" == typeof n;
l || (n = String(
n
));
var h = c.global;
if (h) {
var p = c.unicode;
c.lastIndex = 0;
}
for (var d = []; ; ) {
var v = Fi(
c,
f
);
if (null === v) break;
if ((d.push(
v
), !h)) break;
"" === String(
v[0]
) &&
(c.lastIndex = Ci(
f,
ct(
c.lastIndex
),
p
));
}
for (
var g, y = "", m = 0, b = 0;
b < d.length;
b++
) {
v = d[b];
for (
var w = String(
v[0]
),
S = Bi(
Di(
ut(
v.index
),
f.length
),
0
),
E = [],
x = 1;
x < v.length;
x++
)
E.push(
void 0 === (g = v[x])
? g
: String(
g
)
);
var A = v.groups;
if (l) {
var O = [w,].concat(
E,
S,
f
);
void 0 !== A && O.push(
A
);
var j = String(
n.apply(
void 0,
O
)
);
} else j = u(
w,
f,
S,
E,
A,
n
);
S >= m &&
((y += f.slice(
m,
S
) + j),
(m = S + w.length));
}
return y + f.slice(
m
);
},
];
function u(
t, r, n, o, i, a
) {
var u = n + t.length,
s = o.length,
c = Wi;
return (
void 0 !== i && ((i = Lt(
i
)), (c = zi)),
e.call(
a,
c,
function (
e, a
) {
var c;
switch (a.charAt(
0
)) {
case "$":
return "$";
case "&":
return t;
case "`":
return r.slice(
0,
n
);
case "'":
return r.slice(
u
);
case "<":
c = i[a.slice(
1,
-1
)];
break;
default:
var f = +a;
if (0 === f) return e;
if (f > s) {
var l = qi(
f / 10
);
return 0 === l
? e
: l <= s
? void 0 === o[l - 1]
? a.charAt(
1
)
: o[l - 1] + a.charAt(
1
)
: e;
}
c = o[f - 1];
}
return void 0 === c ? "" : c;
}
)
);
}
}
),
_i(
"search",
1,
function (
t, e, r
) {
return [
function (
e
) {
var r = d(
this
),
n = null == e ? void 0 : e[t];
return void 0 !== n
? n.call(
e,
r
)
: new RegExp(
e
)[t](
String(
r
)
);
},
function (
t
) {
var n = r(
e,
t,
this
);
if (n.done) return n.value;
var o = R(
t
),
i = String(
this
),
a = o.lastIndex;
Gn(
a,
0
) || (o.lastIndex = 0);
var u = Fi(
o,
i
);
return (
Gn(
o.lastIndex,
a
) || (o.lastIndex = a),
null === u ? -1 : u.index
);
},
];
}
);
var Ki = [].push,
Gi = Math.min,
$i = 4294967295,
Vi = !o(
function (
) {
return !RegExp(
$i,
"y"
);
}
);
_i(
"split",
2,
function (
t, e, r
) {
var n;
return (
(n =
"c" == "abbc".split(
/(b)*/
)[1] ||
4 != "test".split(
/(?:)/,
-1
).length ||
2 != "ab".split(
/(?:ab)*/
).length ||
4 != ".".split(
/(.?)(.?)/
).length ||
".".split(
/()()/
).length > 1 ||
"".split(
/.?/
).length
? function (
t, r
) {
var n = String(
d(
this
)
),
o = void 0 === r ? $i : r >>> 0;
if (0 === o) return [];
if (void 0 === t) return [n,];
if (!Xo(
t
)) return e.call(
n,
t,
o
);
for (
var i,
a,
u,
s = [],
c = 0,
f = new RegExp(
t.source,
(t.ignoreCase
? "i"
: "") +
(t.multiline
? "m"
: "") +
(t.unicode
? "u"
: "") +
(t.sticky
? "y"
: "") +
"g"
);
(i = Ei.call(
f,
n
)) &&
!(
(a = f.lastIndex) > c &&
(s.push(
n.slice(
c,
i.index
)
),
i.length > 1 &&
i.index < n.length &&
Ki.apply(
s,
i.slice(
1
)
),
(u = i[0].length),
(c = a),
s.length >= o)
);
)
f.lastIndex === i.index &&
f.lastIndex++;
return (
c === n.length
? (!u && f.test(
""
)) ||
s.push(
""
)
: s.push(
n.slice(
c
)
),
s.length > o
? s.slice(
0,
o
)
: s
);
}
: "0".split(
void 0,
0
).length
? function (
t, r
) {
return void 0 === t && 0 === r
? []
: e.call(
this,
t,
r
);
}
: e),
[
function (
e, r
) {
var o = d(
this
),
i = null == e ? void 0 : e[t];
return void 0 !== i
? i.call(
e,
o,
r
)
: n.call(
String(
o
),
e,
r
);
},
function (
t, o
) {
var i = r(
n,
t,
this,
o,
n !== e
);
if (i.done) return i.value;
var a = R(
t
),
u = String(
this
),
s = sn(
a,
RegExp
),
c = a.unicode,
f = new s(
Vi ? a : "^(?:" + a.source + ")",
(a.ignoreCase ? "i" : "") +
(a.multiline ? "m" : "") +
(a.unicode ? "u" : "") +
(Vi ? "y" : "g")
),
l = void 0 === o ? $i : o >>> 0;
if (0 === l) return [];
if (0 === u.length)
return null === Fi(
f,
u
)
? [u,]
: [];
for (
var h = 0, p = 0, d = [];
p < u.length;
) {
f.lastIndex = Vi ? p : 0;
var v,
g = Fi(
f,
Vi
? u
: u.slice(
p
)
);
if (
null === g ||
(v = Gi(
ct(
f.lastIndex + (Vi ? 0 : p)
),
u.length
)) === h
)
p = Ci(
u,
p,
c
);
else {
if (
(d.push(
u.slice(
h,
p
)
),
d.length === l)
)
return d;
for (
var y = 1;
y <= g.length - 1;
y++
)
if (
(d.push(
g[y]
),
d.length === l)
)
return d;
p = h = v;
}
}
return d.push(
u.slice(
h
)
), d;
},
]
);
},
!Vi
),
kt(
{
target: "Set",
stat: !0,
},
{
from: en,
}
),
kt(
{
target: "Set",
stat: !0,
},
{
of: rn,
}
);
var Hi = function (
) {
for (
var t = R(
this
),
e = Qt(
t.add
),
r = 0,
n = arguments.length;
r < n;
r++
)
e.call(
t,
arguments[r]
);
return t;
};
kt(
{
target: "Set",
proto: !0,
real: !0,
forced: D,
},
{
addAll: function (
) {
return Hi.apply(
this,
arguments
);
},
}
),
kt(
{
target: "Set",
proto: !0,
real: !0,
forced: D,
},
{
deleteAll: function (
) {
return nn.apply(
this,
arguments
);
},
}
);
var Xi = function (
t
) {
return Set.prototype.values.call(
t
);
};
kt(
{
target: "Set",
proto: !0,
real: !0,
forced: D,
},
{
every: function (
t
) {
var e = R(
this
),
r = Xi(
e
),
n = Zt(
t,
arguments.length > 1
? arguments[1]
: void 0,
3
);
return !Mr(
r,
function (
t
) {
if (!n(
t,
t,
e
)) return Mr.stop(
);
},
void 0,
!1,
!0
).stopped;
},
}
),
kt(
{
target: "Set",
proto: !0,
real: !0,
forced: D,
},
{
difference: function (
t
) {
var e = R(
this
),
r = new (sn(
e,
ot(
"Set"
)
))(
e
),
n = Qt(
r.delete
);
return (
Mr(
t,
function (
t
) {
n.call(
r,
t
);
}
),
r
);
},
}
),
kt(
{
target: "Set",
proto: !0,
real: !0,
forced: D,
},
{
filter: function (
t
) {
var e = R(
this
),
r = Xi(
e
),
n = Zt(
t,
arguments.length > 1
? arguments[1]
: void 0,
3
),
o = new (sn(
e,
ot(
"Set"
)
))(
),
i = Qt(
o.add
);
return (
Mr(
r,
function (
t
) {
n(
t,
t,
e
) && i.call(
o,
t
);
},
void 0,
!1,
!0
),
o
);
},
}
),
kt(
{
target: "Set",
proto: !0,
real: !0,
forced: D,
},
{
find: function (
t
) {
var e = R(
this
),
r = Xi(
e
),
n = Zt(
t,
arguments.length > 1
? arguments[1]
: void 0,
3
);
return Mr(
r,
function (
t
) {
if (n(
t,
t,
e
)) return Mr.stop(
t
);
},
void 0,
!1,
!0
).result;
},
}
),
kt(
{
target: "Set",
proto: !0,
real: !0,
forced: D,
},
{
intersection: function (
t
) {
var e = R(
this
),
r = new (sn(
e,
ot(
"Set"
)
))(
),
n = Qt(
e.has
),
o = Qt(
r.add
);
return (
Mr(
t,
function (
t
) {
n.call(
e,
t
) && o.call(
r,
t
);
}
),
r
);
},
}
),
kt(
{
target: "Set",
proto: !0,
real: !0,
forced: D,
},
{
isDisjointFrom: function (
t
) {
var e = R(
this
),
r = Qt(
e.has
);
return !Mr(
t,
function (
t
) {
if (!0 === r.call(
e,
t
)) return Mr.stop(
);
}
).stopped;
},
}
),
kt(
{
target: "Set",
proto: !0,
real: !0,
forced: D,
},
{
isSubsetOf: function (
t
) {
var e = on(
this
),
r = R(
t
),
n = r.has;
return (
"function" != typeof n &&
((r = new (ot(
"Set"
))(
t
)),
(n = Qt(
r.has
))),
!Mr(
e,
function (
t
) {
if (!1 === n.call(
r,
t
))
return Mr.stop(
);
},
void 0,
!1,
!0
).stopped
);
},
}
),
kt(
{
target: "Set",
proto: !0,
real: !0,
forced: D,
},
{
isSupersetOf: function (
t
) {
var e = R(
this
),
r = Qt(
e.has
);
return !Mr(
t,
function (
t
) {
if (!1 === r.call(
e,
t
)) return Mr.stop(
);
}
).stopped;
},
}
),
kt(
{
target: "Set",
proto: !0,
real: !0,
forced: D,
},
{
join: function (
t
) {
var e = R(
this
),
r = Xi(
e
),
n = void 0 === t
? ","
: String(
t
),
o = [];
return Mr(
r,
o.push,
o,
!1,
!0
), o.join(
n
);
},
}
),
kt(
{
target: "Set",
proto: !0,
real: !0,
forced: D,
},
{
map: function (
t
) {
var e = R(
this
),
r = Xi(
e
),
n = Zt(
t,
arguments.length > 1
? arguments[1]
: void 0,
3
),
o = new (sn(
e,
ot(
"Set"
)
))(
),
i = Qt(
o.add
);
return (
Mr(
r,
function (
t
) {
i.call(
o,
n(
t,
t,
e
)
);
},
void 0,
!1,
!0
),
o
);
},
}
),
kt(
{
target: "Set",
proto: !0,
real: !0,
forced: D,
},
{
reduce: function (
t
) {
var e = R(
this
),
r = Xi(
e
),
n = arguments.length < 2,
o = n ? void 0 : arguments[1];
if (
(Qt(
t
),
Mr(
r,
function (
r
) {
n
? ((n = !1), (o = r))
: (o = t(
o,
r,
r,
e
));
},
void 0,
!1,
!0
),
n)
)
throw TypeError(
"Reduce of empty set with no initial value"
);
return o;
},
}
),
kt(
{
target: "Set",
proto: !0,
real: !0,
forced: D,
},
{
some: function (
t
) {
var e = R(
this
),
r = Xi(
e
),
n = Zt(
t,
arguments.length > 1
? arguments[1]
: void 0,
3
);
return Mr(
r,
function (
t
) {
if (n(
t,
t,
e
)) return Mr.stop(
);
},
void 0,
!1,
!0
).stopped;
},
}
),
kt(
{
target: "Set",
proto: !0,
real: !0,
forced: D,
},
{
symmetricDifference: function (
t
) {
var e = R(
this
),
r = new (sn(
e,
ot(
"Set"
)
))(
e
),
n = Qt(
r.delete
),
o = Qt(
r.add
);
return (
Mr(
t,
function (
t
) {
n.call(
r,
t
) || o.call(
r,
t
);
}
),
r
);
},
}
),
kt(
{
target: "Set",
proto: !0,
real: !0,
forced: D,
},
{
union: function (
t
) {
var e = R(
this
),
r = new (sn(
e,
ot(
"Set"
)
))(
e
);
return Mr(
t,
Qt(
r.add
),
r
), r;
},
}
);
var Yi,
Ji,
Qi = ot(
"navigator",
"userAgent"
) || "",
Zi = n.process,
ta = Zi && Zi.versions,
ea = ta && ta.v8;
ea
? (Ji = (Yi = ea.split(
"."
))[0] + Yi[1])
: Qi &&
(!(Yi = Qi.match(
/Edge\/(\d+)/
)) || Yi[1] >= 74) &&
(Yi = Qi.match(
/Chrome\/(\d+)/
)) &&
(Ji = Yi[1]);
var ra = Ji && +Ji,
na = Dt(
"species"
),
oa = Dt(
"isConcatSpreadable"
),
ia = 9007199254740991,
aa = "Maximum allowed index exceeded",
ua =
ra >= 51 ||
!o(
function (
) {
var t = [];
return (t[oa] = !1), t.concat(
)[0] !== t;
}
),
sa =
ra >= 51 ||
!o(
function (
) {
var t = [];
return (
((t.constructor = {
})[na] = function (
) {
return {
foo: 1,
};
}),
1 !== t.concat(
Boolean
).foo
);
}
),
ca = function (
t
) {
if (!g(
t
)) return !1;
var e = t[oa];
return void 0 !== e
? !!e
: re(
t
);
};
kt(
{
target: "Array",
proto: !0,
forced: !ua || !sa,
},
{
concat: function (
t
) {
var e,
r,
n,
o,
i,
a = Lt(
this
),
u = oe(
a,
0
),
s = 0;
for (e = -1, n = arguments.length; e < n; e++)
if (ca(
(i = -1 === e ? a : arguments[e])
)) {
if (s + (o = ct(
i.length
)) > ia)
throw TypeError(
aa
);
for (r = 0; r < o; r++, s++)
r in i && or(
u,
s,
i[r]
);
} else {
if (s >= ia) throw TypeError(
aa
);
or(
u,
s++,
i
);
}
return (u.length = s), u;
},
}
);
var fa = bt.f,
la = {
}.toString,
ha =
"object" == typeof window &&
window &&
Object.getOwnPropertyNames
? Object.getOwnPropertyNames(
window
)
: [],
pa = {
f: function (
t
) {
return ha && "[object Window]" == la.call(
t
)
? (function (
t
) {
try {
return fa(
t
);
} catch (t) {
return ha.slice(
);
}
})(
t
)
: fa(
v(
t
)
);
},
},
da = {
f: Dt,
},
va = P.f,
ga = function (
t
) {
var e = rt.Symbol || (rt.Symbol = {
});
b(
e,
t
) || va(
e,
t,
{
value: da.f(
t
),
}
);
},
ya = ue.forEach,
ma = $(
"hidden"
),
ba = "Symbol",
wa = Dt(
"toPrimitive"
),
Sa = tt.set,
Ea = tt.getterFor(
ba
),
xa = Object.prototype,
Aa = n.Symbol,
Oa = ot(
"JSON",
"stringify"
),
Ra = O.f,
ja = P.f,
Pa = pa.f,
Ia = s.f,
Ta = q(
"symbols"
),
ka = q(
"op-symbols"
),
La = q(
"string-to-symbol-registry"
),
Ua = q(
"symbol-to-string-registry"
),
Ma = q(
"wks"
),
_a = n.QObject,
Na = !_a || !_a.prototype || !_a.prototype.findChild,
Ca =
i &&
o(
function (
) {
return (
7 !=
Ht(
ja(
{
},
"a",
{
get: function (
) {
return ja(
this,
"a",
{
value: 7,
}
)
.a;
},
}
)
).a
);
}
)
? function (
t, e, r
) {
var n = Ra(
xa,
e
);
n && delete xa[e],
ja(
t,
e,
r
),
n && t !== xa && ja(
xa,
e,
n
);
}
: ja,
Fa = function (
t, e
) {
var r = (Ta[t] = Ht(
Aa.prototype
));
return (
Sa(
r,
{
type: ba,
tag: t,
description: e,
}
),
i || (r.description = e),
r
);
},
Ba = Nt
? function (
t
) {
return "symbol" == typeof t;
}
: function (
t
) {
return Object(
t
) instanceof Aa;
},
Da = function (
t, e, r
) {
t === xa && Da(
ka,
e,
r
), R(
t
);
var n = y(
e,
!0
);
return (
R(
r
),
b(
Ta,
n
)
? (r.enumerable
? (b(
t,
ma
) &&
t[ma][n] &&
(t[ma][n] = !1),
(r = Ht(
r,
{
enumerable: c(
0,
!1
),
}
)))
: (b(
t,
ma
) || ja(
t,
ma,
c(
1,
{
}
)
),
(t[ma][n] = !0)),
Ca(
t,
n,
r
))
: ja(
t,
n,
r
)
);
},
qa = function (
t, e
) {
R(
t
);
var r = v(
e
),
n = qt(
r
).concat(
Ga(
r
)
);
return (
ya(
n,
function (
e
) {
(i && !za.call(
r,
e
)) || Da(
t,
e,
r[e]
);
}
),
t
);
},
za = function (
t
) {
var e = y(
t,
!0
),
r = Ia.call(
this,
e
);
return (
!(this === xa && b(
Ta,
e
) && !b(
ka,
e
)) &&
(!(
r ||
!b(
this,
e
) ||
!b(
Ta,
e
) ||
(b(
this,
ma
) && this[ma][e])
) ||
r)
);
},
Wa = function (
t, e
) {
var r = v(
t
),
n = y(
e,
!0
);
if (r !== xa || !b(
Ta,
n
) || b(
ka,
n
)) {
var o = Ra(
r,
n
);
return (
!o ||
!b(
Ta,
n
) ||
(b(
r,
ma
) && r[ma][n]) ||
(o.enumerable = !0),
o
);
}
},
Ka = function (
t
) {
var e = Pa(
v(
t
)
),
r = [];
return (
ya(
e,
function (
t
) {
b(
Ta,
t
) || b(
V,
t
) || r.push(
t
);
}
),
r
);
},
Ga = function (
t
) {
var e = t === xa,
r = Pa(
e
? ka
: v(
t
)
),
n = [];
return (
ya(
r,
function (
t
) {
!b(
Ta,
t
) || (e && !b(
xa,
t
)) || n.push(
Ta[t]
);
}
),
n
);
};
if (
(_t ||
(et(
(Aa = function (
) {
if (this instanceof Aa)
throw TypeError(
"Symbol is not a constructor"
);
var t =
arguments.length &&
void 0 !== arguments[0]
? String(
arguments[0]
)
: void 0,
e = K(
t
),
r = function t(
r
) {
this === xa && t.call(
ka,
r
),
b(
this,
ma
) &&
b(
this[ma],
e
) &&
(this[ma][e] = !1),
Ca(
this,
e,
c(
1,
r
)
);
};
return (
i &&
Na &&
Ca(
xa,
e,
{
configurable: !0,
set: r,
}
),
Fa(
e,
t
)
);
}).prototype,
"toString",
function (
) {
return Ea(
this
).tag;
}
),
et(
Aa,
"withoutSetter",
function (
t
) {
return Fa(
K(
t
),
t
);
}
),
(s.f = za),
(P.f = Da),
(O.f = Wa),
(bt.f = pa.f = Ka),
(wt.f = Ga),
(da.f = function (
t
) {
return Fa(
Dt(
t
),
t
);
}),
i &&
(ja(
Aa.prototype,
"description",
{
configurable: !0,
get: function (
) {
return Ea(
this
).description;
},
}
),
et(
xa,
"propertyIsEnumerable",
za,
{
unsafe: !0,
}
))),
kt(
{
global: !0,
wrap: !0,
forced: !_t,
sham: !_t,
},
{
Symbol: Aa,
}
),
ya(
qt(
Ma
),
function (
t
) {
ga(
t
);
}
),
kt(
{
target: ba,
stat: !0,
forced: !_t,
},
{
for: function (
t
) {
var e = String(
t
);
if (b(
La,
e
)) return La[e];
var r = Aa(
e
);
return (La[e] = r), (Ua[r] = e), r;
},
keyFor: function (
t
) {
if (!Ba(
t
))
throw TypeError(
t + " is not a symbol"
);
if (b(
Ua,
t
)) return Ua[t];
},
useSetter: function (
) {
Na = !0;
},
useSimple: function (
) {
Na = !1;
},
}
),
kt(
{
target: "Object",
stat: !0,
forced: !_t,
sham: !i,
},
{
create: function (
t, e
) {
return void 0 === e
? Ht(
t
)
: qa(
Ht(
t
),
e
);
},
defineProperty: Da,
defineProperties: qa,
getOwnPropertyDescriptor: Wa,
}
),
kt(
{
target: "Object",
stat: !0,
forced: !_t,
},
{
getOwnPropertyNames: Ka,
getOwnPropertySymbols: Ga,
}
),
kt(
{
target: "Object",
stat: !0,
forced: o(
function (
) {
wt.f(
1
);
}
),
},
{
getOwnPropertySymbols: function (
t
) {
return wt.f(
Lt(
t
)
);
},
}
),
Oa)
) {
var $a =
!_t ||
o(
function (
) {
var t = Aa(
);
return (
"[null]" != Oa(
[t,]
) ||
"{}" != Oa(
{
a: t,
}
) ||
"{}" != Oa(
Object(
t
)
)
);
}
);
kt(
{
target: "JSON",
stat: !0,
forced: $a,
},
{
stringify: function (
t, e, r
) {
for (
var n, o = [t,], i = 1;
arguments.length > i;
)
o.push(
arguments[i++]
);
if (((n = e), (g(
e
) || void 0 !== t) && !Ba(
t
)))
return (
re(
e
) ||
(e = function (
t, e
) {
if (
("function" == typeof n &&
(e = n.call(
this,
t,
e
)),
!Ba(
e
))
)
return e;
}),
(o[1] = e),
Oa.apply(
null,
o
)
);
},
}
);
}
Aa.prototype[wa] || I(
Aa.prototype,
wa,
Aa.prototype.valueOf
),
_e(
Aa,
ba
),
(V[ma] = !0),
ga(
"asyncIterator"
);
var Va = P.f,
Ha = n.Symbol;
if (
i &&
"function" == typeof Ha &&
(!("description" in Ha.prototype) ||
void 0 !== Ha(
).description)
) {
var Xa = {
},
Ya = function (
) {
var t =
arguments.length < 1 ||
void 0 === arguments[0]
? void 0
: String(
arguments[0]
),
e =
this instanceof Ya
? new Ha(
t
)
: void 0 === t
? Ha(
)
: Ha(
t
);
return "" === t && (Xa[e] = !0), e;
};
Et(
Ya,
Ha
);
var Ja = (Ya.prototype = Ha.prototype);
Ja.constructor = Ya;
var Qa = Ja.toString,
Za = "Symbol(test)" == String(
Ha(
"test"
)
),
tu = /^Symbol\((.*)\)[^)]+$/;
Va(
Ja,
"description",
{
configurable: !0,
get: function (
) {
var t = g(
this
)
? this.valueOf(
)
: this,
e = Qa.call(
t
);
if (b(
Xa,
t
)) return "";
var r = Za
? e.slice(
7,
-1
)
: e.replace(
tu,
"$1"
);
return "" === r ? void 0 : r;
},
}
),
kt(
{
global: !0,
forced: !0,
},
{
Symbol: Ya,
}
);
}
ga(
"hasInstance"
),
ga(
"isConcatSpreadable"
),
ga(
"iterator"
),
ga(
"match"
),
ga(
"matchAll"
),
ga(
"replace"
),
ga(
"search"
),
ga(
"species"
),
ga(
"split"
),
ga(
"toPrimitive"
),
ga(
"toStringTag"
),
ga(
"unscopables"
),
_e(
Math,
"Math",
!0
),
_e(
n.JSON,
"JSON",
!0
),
ga(
"asyncDispose"
),
ga(
"dispose"
),
ga(
"observable"
),
ga(
"patternMatch"
),
ga(
"replaceAll"
),
da.f(
"asyncIterator"
);
var eu = Oe.codeAt;
kt(
{
target: "String",
proto: !0,
},
{
codePointAt: function (
t
) {
return eu(
this,
t
);
},
}
),
ee(
"String",
"codePointAt"
);
var ru,
nu = function (
t
) {
if (Xo(
t
))
throw TypeError(
"The method doesn't accept regular expressions"
);
return t;
},
ou = Dt(
"match"
),
iu = function (
t
) {
var e = /./;
try {
"/./"[t](
e
);
} catch (r) {
try {
return (e[ou] = !1), "/./"[t](
e
);
} catch (t) {}
}
return !1;
},
au = O.f,
uu = "".endsWith,
su = Math.min,
cu = iu(
"endsWith"
),
fu = !(
cu ||
((ru = au(
String.prototype,
"endsWith"
)),
!ru || ru.writable)
);
kt(
{
target: "String",
proto: !0,
forced: !fu && !cu,
},
{
endsWith: function (
t
) {
var e = String(
d(
this
)
);
nu(
t
);
var r =
arguments.length > 1
? arguments[1]
: void 0,
n = ct(
e.length
),
o = void 0 === r
? n
: su(
ct(
r
),
n
),
i = String(
t
);
return uu
? uu.call(
e,
i,
o
)
: e.slice(
o - i.length,
o
) === i;
},
}
),
ee(
"String",
"endsWith"
);
var lu = String.fromCharCode,
hu = String.fromCodePoint;
kt(
{
target: "String",
stat: !0,
forced: !!hu && 1 != hu.length,
},
{
fromCodePoint: function (
t
) {
for (
var e, r = [], n = arguments.length, o = 0;
n > o;
) {
if (
((e = +arguments[o++]),
ht(
e,
1114111
) !== e)
)
throw RangeError(
e + " is not a valid code point"
);
r.push(
e < 65536
? lu(
e
)
: lu(
55296 + ((e -= 65536) >> 10),
(e % 1024) + 56320
)
);
}
return r.join(
""
);
},
}
),
kt(
{
target: "String",
proto: !0,
forced: !iu(
"includes"
),
},
{
includes: function (
t
) {
return !!~String(
d(
this
)
).indexOf(
nu(
t
),
arguments.length > 1 ? arguments[1] : void 0
);
},
}
),
ee(
"String",
"includes"
);
var pu =
"".repeat ||
function (
t
) {
var e = String(
d(
this
)
),
r = "",
n = ut(
t
);
if (n < 0 || 1 / 0 == n)
throw RangeError(
"Wrong number of repetitions"
);
for (; n > 0; (n >>>= 1) && (e += e))
1 & n && (r += e);
return r;
},
du = Math.ceil,
vu = function (
t
) {
return function (
e, r, n
) {
var o,
i,
a = String(
d(
e
)
),
u = a.length,
s = void 0 === n
? " "
: String(
n
),
c = ct(
r
);
return c <= u || "" == s
? a
: ((i = pu.call(
s,
du(
(o = c - u) / s.length
)
))
.length > o && (i = i.slice(
0,
o
)),
t ? a + i : i + a);
};
},
gu = {
start: vu(
!1
),
end: vu(
!0
),
},
yu =
/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(
Qi
),
mu = gu.start;
kt(
{
target: "String",
proto: !0,
forced: yu,
},
{
padStart: function (
t
) {
return mu(
this,
t,
arguments.length > 1 ? arguments[1] : void 0
);
},
}
),
ee(
"String",
"padStart"
);
var bu = gu.end;
kt(
{
target: "String",
proto: !0,
forced: yu,
},
{
padEnd: function (
t
) {
return bu(
this,
t,
arguments.length > 1 ? arguments[1] : void 0
);
},
}
),
ee(
"String",
"padEnd"
),
kt(
{
target: "String",
stat: !0,
},
{
raw: function (
t
) {
for (
var e = v(
t.raw
),
r = ct(
e.length
),
n = arguments.length,
o = [],
i = 0;
r > i;
)
o.push(
String(
e[i++]
)
),
i < n && o.push(
String(
arguments[i]
)
);
return o.join(
""
);
},
}
),
kt(
{
target: "String",
proto: !0,
},
{
repeat: pu,
}
),
ee(
"String",
"repeat"
);
var wu = O.f,
Su = "".startsWith,
Eu = Math.min,
xu = iu(
"startsWith"
),
Au =
!xu &&
!!(function (
) {
var t = wu(
String.prototype,
"startsWith"
);
return t && !t.writable;
})(
);
kt(
{
target: "String",
proto: !0,
forced: !Au && !xu,
},
{
startsWith: function (
t
) {
var e = String(
d(
this
)
);
nu(
t
);
var r = ct(
Eu(
arguments.length > 1
? arguments[1]
: void 0,
e.length
)
),
n = String(
t
);
return Su
? Su.call(
e,
n,
r
)
: e.slice(
r,
r + n.length
) === n;
},
}
),
ee(
"String",
"startsWith"
);
var Ou = function (
t
) {
return o(
function (
) {
return (
!!fn[t](
) ||
"
" != "
"[t](
) ||
fn[t].name !== t
);
}
);
},
Ru = vn.start,
ju = Ou(
"trimStart"
),
Pu = ju
? function (
) {
return Ru(
this
);
}
: "".trimStart;
kt(
{
target: "String",
proto: !0,
forced: ju,
},
{
trimStart: Pu,
trimLeft: Pu,
}
),
ee(
"String",
"trimLeft"
);
var Iu = vn.end,
Tu = Ou(
"trimEnd"
),
ku = Tu
? function (
) {
return Iu(
this
);
}
: "".trimEnd;
kt(
{
target: "String",
proto: !0,
forced: Tu,
},
{
trimEnd: ku,
trimRight: ku,
}
),
ee(
"String",
"trimRight"
);
var Lu = Dt(
"iterator"
),
Uu = !o(
function (
) {
var t = new URL(
"b?a=1&b=2&c=3",
"http://a"
),
e = t.searchParams,
r = "";
return (
(t.pathname = "c%20d"),
e.forEach(
function (
t, n
) {
e.delete(
"b"
), (r += n + t);
}
),
!e.sort ||
"http://a/c%20d?a=1&c=3" !== t.href ||
"3" !== e.get(
"c"
) ||
"a=1" !== String(
new URLSearchParams(
"?a=1"
)
) ||
!e[Lu] ||
"a" !== new URL(
"https://a@b"
).username ||
"b" !==
new URLSearchParams(
new URLSearchParams(
"a=b"
)
).get(
"a"
) ||
"xn--e1aybc" !== new URL(
"http://тест"
).host ||
"#%D0%B1" !== new URL(
"http://a#б"
).hash ||
"a1c3" !== r ||
"x" !== new URL(
"http://x",
void 0
).host
);
}
),
Mu = Object.assign,
_u = Object.defineProperty,
Nu =
!Mu ||
o(
function (
) {
if (
i &&
1 !==
Mu(
{
b: 1,
},
Mu(
_u(
{
},
"a",
{
enumerable: !0,
get: function (
) {
_u(
this,
"b",
{
value: 3,
enumerable: !1,
}
);
},
}
),
{
b: 2,
}
)
).b
)
return !0;
var t = {
},
e = {
},
r = Symbol(
),
n = "abcdefghijklmnopqrst";
return (
(t[r] = 7),
n.split(
""
).forEach(
function (
t
) {
e[t] = t;
}
),
7 != Mu(
{
},
t
)[r] || qt(
Mu(
{
},
e
)
).join(
""
) != n
);
}
)
? function (
t, e
) {
for (
var r = Lt(
t
),
n = arguments.length,
o = 1,
a = wt.f,
u = s.f;
n > o;
)
for (
var c,
f = p(
arguments[o++]
),
l = a
? qt(
f
).concat(
a(
f
)
)
: qt(
f
),
h = l.length,
d = 0;
h > d;
)
(c = l[d++]),
(i && !u.call(
f,
c
)) ||
(r[c] = f[c]);
return r;
}
: Mu,
Cu = 2147483647,
Fu = /[^\0-\u007E]/,
Bu = /[.\u3002\uFF0E\uFF61]/g,
Du = "Overflow: input needs wider integers to process",
qu = Math.floor,
zu = String.fromCharCode,
Wu = function (
t
) {
return t + 22 + 75 * (t < 26);
},
Ku = function (
t, e, r
) {
var n = 0;
for (
t = r
? qu(
t / 700
)
: t >> 1, t += qu(
t / e
);
t > 455;
n += 36
)
t = qu(
t / 35
);
return qu(
n + (36 * t) / (t + 38)
);
},
Gu = function (
t
) {
var e,
r,
n = [],
o = (t = (function (
t
) {
for (var e = [], r = 0, n = t.length; r < n; ) {
var o = t.charCodeAt(
r++
);
if (o >= 55296 && o <= 56319 && r < n) {
var i = t.charCodeAt(
r++
);
56320 == (64512 & i)
? e.push(
((1023 & o) << 10) +
(1023 & i) +
65536
)
: (e.push(
o
), r--);
} else e.push(
o
);
}
return e;
})(
t
)).length,
i = 128,
a = 0,
u = 72;
for (e = 0; e < t.length; e++)
(r = t[e]) < 128 && n.push(
zu(
r
)
);
var s = n.length,
c = s;
for (s && n.push(
"-"
); c < o; ) {
var f = Cu;
for (e = 0; e < t.length; e++)
(r = t[e]) >= i && r < f && (f = r);
var l = c + 1;
if (f - i > qu(
(Cu - a) / l
)) throw RangeError(
Du
);
for (
a += (f - i) * l, i = f, e = 0;
e < t.length;
e++
) {
if ((r = t[e]) < i && ++a > Cu)
throw RangeError(
Du
);
if (r == i) {
for (var h = a, p = 36; ; p += 36) {
var d =
p <= u
? 1
: p >= u + 26
? 26
: p - u;
if (h < d) break;
var v = h - d,
g = 36 - d;
n.push(
zu(
Wu(
d + (v % g)
)
)
),
(h = qu(
v / g
));
}
n.push(
zu(
Wu(
h
)
)
),
(u = Ku(
a,
l,
c == s
)),
(a = 0),
++c;
}
}
++a, ++i;
}
return n.join(
""
);
},
$u = ot(
"fetch"
),
Vu = ot(
"Headers"
),
Hu = Dt(
"iterator"
),
Xu = "URLSearchParams",
Yu = "URLSearchParamsIterator",
Ju = tt.set,
Qu = tt.getterFor(
Xu
),
Zu = tt.getterFor(
Yu
),
ts = /\+/g,
es = Array(
4
),
rs = function (
t
) {
return (
es[t - 1] ||
(es[t - 1] = RegExp(
"((?:%[\\da-f]{2}){" + t + "})",
"gi"
))
);
},
ns = function (
t
) {
try {
return decodeURIComponent(
t
);
} catch (e) {
return t;
}
},
os = function (
t
) {
var e = t.replace(
ts,
" "
),
r = 4;
try {
return decodeURIComponent(
e
);
} catch (t) {
for (; r; ) e = e.replace(
rs(
r--
),
ns
);
return e;
}
},
is = /[!'()~]|%20/g,
as = {
"!": "%21",
"'": "%27",
"(": "%28",
")": "%29",
"~": "%7E",
"%20": "+",
},
us = function (
t
) {
return as[t];
},
ss = function (
t
) {
return encodeURIComponent(
t
).replace(
is,
us
);
},
cs = function (
t, e
) {
if (e)
for (
var r, n, o = e.split(
"&"
), i = 0;
i < o.length;
)
(r = o[i++]).length &&
((n = r.split(
"="
)),
t.push(
{
key: os(
n.shift(
)
),
value: os(
n.join(
"="
)
),
}
));
},
fs = function (
t
) {
(this.entries.length = 0), cs(
this.entries,
t
);
},
ls = function (
t, e
) {
if (t < e) throw TypeError(
"Not enough arguments"
);
},
hs = Be(
function (
t, e
) {
Ju(
this,
{
type: Yu,
iterator: on(
Qu(
t
).entries
),
kind: e,
}
);
},
"Iterator",
function (
) {
var t = Zu(
this
),
e = t.kind,
r = t.iterator.next(
),
n = r.value;
return (
r.done ||
(r.value =
"keys" === e
? n.key
: "values" === e
? n.value
: [n.key, n.value,]),
r
);
}
),
ps = function (
) {
_r(
this,
ps,
Xu
);
var t,
e,
r,
n,
o,
i,
a,
u,
s,
c = arguments.length > 0 ? arguments[0] : void 0,
f = this,
l = [];
if (
(Ju(
f,
{
type: Xu,
entries: l,
updateURL: function (
) {},
updateSearchParams: fs,
}
),
void 0 !== c)
)
if (g(
c
))
if ("function" == typeof (t = lr(
c
)))
for (
r = (e = t.call(
c
)).next;
!(n = r.call(
e
)).done;
) {
if (
(a = (i = (o = on(
R(
n.value
)
))
.next).call(
o
)).done ||
(u = i.call(
o
)).done ||
!i.call(
o
).done
)
throw TypeError(
"Expected sequence with length 2"
);
l.push(
{
key: a.value + "",
value: u.value + "",
}
);
}
else
for (s in c)
b(
c,
s
) &&
l.push(
{
key: s,
value: c[s] + "",
}
);
else
cs(
l,
"string" == typeof c
? "?" === c.charAt(
0
)
? c.slice(
1
)
: c
: c + ""
);
},
ds = ps.prototype;
Fr(
ds,
{
append: function (
t, e
) {
ls(
arguments.length,
2
);
var r = Qu(
this
);
r.entries.push(
{
key: t + "",
value: e + "",
}
),
r.updateURL(
);
},
delete: function (
t
) {
ls(
arguments.length,
1
);
for (
var e = Qu(
this
),
r = e.entries,
n = t + "",
o = 0;
o < r.length;
)
r[o].key === n
? r.splice(
o,
1
)
: o++;
e.updateURL(
);
},
get: function (
t
) {
ls(
arguments.length,
1
);
for (
var e = Qu(
this
).entries, r = t + "", n = 0;
n < e.length;
n++
)
if (e[n].key === r) return e[n].value;
return null;
},
getAll: function (
t
) {
ls(
arguments.length,
1
);
for (
var e = Qu(
this
).entries,
r = t + "",
n = [],
o = 0;
o < e.length;
o++
)
e[o].key === r && n.push(
e[o].value
);
return n;
},
has: function (
t
) {
ls(
arguments.length,
1
);
for (
var e = Qu(
this
).entries, r = t + "", n = 0;
n < e.length;
)
if (e[n++].key === r) return !0;
return !1;
},
set: function (
t, e
) {
ls(
arguments.length,
1
);
for (
var r,
n = Qu(
this
),
o = n.entries,
i = !1,
a = t + "",
u = e + "",
s = 0;
s < o.length;
s++
)
(r = o[s]).key === a &&
(i
? o.splice(
s--,
1
)
: ((i = !0), (r.value = u)));
i || o.push(
{
key: a,
value: u,
}
), n.updateURL(
);
},
sort: function (
) {
var t,
e,
r,
n = Qu(
this
),
o = n.entries,
i = o.slice(
);
for (o.length = 0, r = 0; r < i.length; r++) {
for (t = i[r], e = 0; e < r; e++)
if (o[e].key > t.key) {
o.splice(
e,
0,
t
);
break;
}
e === r && o.push(
t
);
}
n.updateURL(
);
},
forEach: function (
t
) {
for (
var e,
r = Qu(
this
).entries,
n = Zt(
t,
arguments.length > 1
? arguments[1]
: void 0,
3
),
o = 0;
o < r.length;
)
n(
(e = r[o++]).value,
e.key,
this
);
},
keys: function (
) {
return new hs(
this,
"keys"
);
},
values: function (
) {
return new hs(
this,
"values"
);
},
entries: function (
) {
return new hs(
this,
"entries"
);
},
},
{
enumerable: !0,
}
),
et(
ds,
Hu,
ds.entries
),
et(
ds,
"toString",
function (
) {
for (
var t, e = Qu(
this
).entries, r = [], n = 0;
n < e.length;
)
(t = e[n++]),
r.push(
ss(
t.key
) + "=" + ss(
t.value
)
);
return r.join(
"&"
);
},
{
enumerable: !0,
}
),
_e(
ps,
Xu
),
kt(
{
global: !0,
forced: !Uu,
},
{
URLSearchParams: ps,
}
),
Uu ||
"function" != typeof $u ||
"function" != typeof Vu ||
kt(
{
global: !0,
enumerable: !0,
forced: !0,
},
{
fetch: function (
t
) {
var e,
r,
n,
o = [t,];
return (
arguments.length > 1 &&
(g(
(e = arguments[1])
) &&
cr(
(r = e.body)
) === Xu &&
((n = e.headers
? new Vu(
e.headers
)
: new Vu(
)).has(
"content-type"
) ||
n.set(
"content-type",
"application/x-www-form-urlencoded;charset=UTF-8"
),
(e = Ht(
e,
{
body: c(
0,
String(
r
)
),
headers: c(
0,
n
),
}
))),
o.push(
e
)),
$u.apply(
this,
o
)
);
},
}
);
var vs,
gs = {
URLSearchParams: ps,
getState: Qu,
},
ys = Oe.codeAt,
ms = n.URL,
bs = gs.URLSearchParams,
ws = gs.getState,
Ss = tt.set,
Es = tt.getterFor(
"URL"
),
xs = Math.floor,
As = Math.pow,
Os = "Invalid scheme",
Rs = "Invalid host",
js = "Invalid port",
Ps = /[A-Za-z]/,
Is = /[\d+-.A-Za-z]/,
Ts = /\d/,
ks = /^(0x|0X)/,
Ls = /^[0-7]+$/,
Us = /^\d+$/,
Ms = /^[\dA-Fa-f]+$/,
_s = /[\u0000\u0009\u000A\u000D #%/:?@[\\]]/,
Ns = /[\u0000\u0009\u000A\u000D #/:?@[\\]]/,
Cs = /^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,
Fs = /[\u0009\u000A\u000D]/g,
Bs = function (
t, e
) {
var r, n, o;
if ("[" == e.charAt(
0
)) {
if ("]" != e.charAt(
e.length - 1
)) return Rs;
if (!(r = qs(
e.slice(
1,
-1
)
))) return Rs;
t.host = r;
} else if (Xs(
t
)) {
if (
((e = (function (
t
) {
var e,
r,
n = [],
o = t
.toLowerCase(
)
.replace(
Bu,
"."
)
.split(
"."
);
for (e = 0; e < o.length; e++)
n.push(
Fu.test(
(r = o[e])
)
? "xn--" + Gu(
r
)
: r
);
return n.join(
"."
);
})(
e
)),
_s.test(
e
))
)
return Rs;
if (null === (r = Ds(
e
))) return Rs;
t.host = r;
} else {
if (Ns.test(
e
)) return Rs;
for (r = "", n = hr(
e
), o = 0; o < n.length; o++)
r += Vs(
n[o],
Ws
);
t.host = r;
}
},
Ds = function (
t
) {
var e,
r,
n,
o,
i,
a,
u,
s = t.split(
"."
);
if (
(s.length && "" == s[s.length - 1] && s.pop(
),
(e = s.length) > 4)
)
return t;
for (r = [], n = 0; n < e; n++) {
if ("" == (o = s[n])) return t;
if (
((i = 10),
o.length > 1 &&
"0" == o.charAt(
0
) &&
((i = ks.test(
o
)
? 16
: 8),
(o = o.slice(
8 == i ? 1 : 2
))),
"" === o)
)
a = 0;
else {
if (!(10 == i ? Us : 8 == i ? Ls : Ms).test(
o
))
return t;
a = parseInt(
o,
i
);
}
r.push(
a
);
}
for (n = 0; n < e; n++)
if (((a = r[n]), n == e - 1)) {
if (a >= As(
256,
5 - e
)) return null;
} else if (a > 255) return null;
for (u = r.pop(
), n = 0; n < r.length; n++)
u += r[n] * As(
256,
3 - n
);
return u;
},
qs = function (
t
) {
var e,
r,
n,
o,
i,
a,
u,
s = [0, 0, 0, 0, 0, 0, 0, 0,],
c = 0,
f = null,
l = 0,
h = function (
) {
return t.charAt(
l
);
};
if (":" == h(
)) {
if (":" != t.charAt(
1
)) return;
(l += 2), (f = ++c);
}
for (; h(
); ) {
if (8 == c) return;
if (":" != h(
)) {
for (e = r = 0; r < 4 && Ms.test(
h(
)
); )
(e = 16 * e + parseInt(
h(
),
16
)), l++, r++;
if ("." == h(
)) {
if (0 == r) return;
if (((l -= r), c > 6)) return;
for (n = 0; h(
); ) {
if (((o = null), n > 0)) {
if (!("." == h(
) && n < 4)) return;
l++;
}
if (!Ts.test(
h(
)
)) return;
for (; Ts.test(
h(
)
); ) {
if (
((i = parseInt(
h(
),
10
)),
null === o)
)
o = i;
else {
if (0 == o) return;
o = 10 * o + i;
}
if (o > 255) return;
l++;
}
(s[c] = 256 * s[c] + o),
(2 != ++n && 4 != n) || c++;
}
if (4 != n) return;
break;
}
if (":" == h(
)) {
if ((l++, !h(
))) return;
} else if (h(
)) return;
s[c++] = e;
} else {
if (null !== f) return;
l++, (f = ++c);
}
}
if (null !== f)
for (a = c - f, c = 7; 0 != c && a > 0; )
(u = s[c]),
(s[c--] = s[f + a - 1]),
(s[f + --a] = u);
else if (8 != c) return;
return s;
},
zs = function (
t
) {
var e, r, n, o;
if ("number" == typeof t) {
for (e = [], r = 0; r < 4; r++)
e.unshift(
t % 256
), (t = xs(
t / 256
));
return e.join(
"."
);
}
if ("object" == typeof t) {
for (
e = "",
n = (function (
t
) {
for (
var e = null,
r = 1,
n = null,
o = 0,
i = 0;
i < 8;
i++
)
0 !== t[i]
? (o > r && ((e = n), (r = o)),
(n = null),
(o = 0))
: (null === n && (n = i), ++o);
return o > r && ((e = n), (r = o)), e;
})(
t
),
r = 0;
r < 8;
r++
)
(o && 0 === t[r]) ||
(o && (o = !1),
n === r
? ((e += r ? ":" : "::"), (o = !0))
: ((e += t[r].toString(
16
)),
r < 7 && (e += ":")));
return "[" + e + "]";
}
return t;
},
Ws = {
},
Ks = Nu(
{
},
Ws,
{
" ": 1,
'"': 1,
"<": 1,
">": 1,
"`": 1,
}
),
Gs = Nu(
{
},
Ks,
{
"#": 1,
"?": 1,
"{": 1,
"}": 1,
}
),
$s = Nu(
{
},
Gs,
{
"/": 1,
":": 1,
";": 1,
"=": 1,
"@": 1,
"[": 1,
"\\": 1,
"]": 1,
"^": 1,
"|": 1,
}
),
Vs = function (
t, e
) {
var r = ys(
t,
0
);
return r > 32 && r < 127 && !b(
e,
t
)
? t
: encodeURIComponent(
t
);
},
Hs = {
ftp: 21,
file: null,
http: 80,
https: 443,
ws: 80,
wss: 443,
},
Xs = function (
t
) {
return b(
Hs,
t.scheme
);
},
Ys = function (
t
) {
return "" != t.username || "" != t.password;
},
Js = function (
t
) {
return (
!t.host || t.cannotBeABaseURL || "file" == t.scheme
);
},
Qs = function (
t, e
) {
var r;
return (
2 == t.length &&
Ps.test(
t.charAt(
0
)
) &&
(":" == (r = t.charAt(
1
)) || (!e && "|" == r))
);
},
Zs = function (
t
) {
var e;
return (
t.length > 1 &&
Qs(
t.slice(
0,
2
)
) &&
(2 == t.length ||
"/" === (e = t.charAt(
2
)) ||
"\\" === e ||
"?" === e ||
"#" === e)
);
},
tc = function (
t
) {
var e = t.path,
r = e.length;
!r ||
("file" == t.scheme && 1 == r && Qs(
e[0],
!0
)) ||
e.pop(
);
},
ec = function (
t
) {
return "." === t || "%2e" === t.toLowerCase(
);
},
rc = {
},
nc = {
},
oc = {
},
ic = {
},
ac = {
},
uc = {
},
sc = {
},
cc = {
},
fc = {
},
lc = {
},
hc = {
},
pc = {
},
dc = {
},
vc = {
},
gc = {
},
yc = {
},
mc = {
},
bc = {
},
wc = {
},
Sc = {
},
Ec = {
},
xc = function (
t, e, r, n
) {
var o,
i,
a,
u,
s,
c = r || rc,
f = 0,
l = "",
h = !1,
p = !1,
d = !1;
for (
r ||
((t.scheme = ""),
(t.username = ""),
(t.password = ""),
(t.host = null),
(t.port = null),
(t.path = []),
(t.query = null),
(t.fragment = null),
(t.cannotBeABaseURL = !1),
(e = e.replace(
Cs,
""
))),
e = e.replace(
Fs,
""
),
o = hr(
e
);
f <= o.length;
) {
switch (((i = o[f]), c)) {
case rc:
if (!i || !Ps.test(
i
)) {
if (r) return Os;
c = oc;
continue;
}
(l += i.toLowerCase(
)), (c = nc);
break;
case nc:
if (
i &&
(Is.test(
i
) ||
"+" == i ||
"-" == i ||
"." == i)
)
l += i.toLowerCase(
);
else {
if (":" != i) {
if (r) return Os;
(l = ""), (c = oc), (f = 0);
continue;
}
if (
r &&
(Xs(
t
) != b(
Hs,
l
) ||
("file" == l &&
(Ys(
t
) ||
null !== t.port)) ||
("file" == t.scheme && !t.host))
)
return;
if (((t.scheme = l), r))
return void (
Xs(
t
) &&
Hs[t.scheme] == t.port &&
(t.port = null)
);
(l = ""),
"file" == t.scheme
? (c = vc)
: Xs(
t
) &&
n &&
n.scheme == t.scheme
? (c = ic)
: Xs(
t
)
? (c = cc)
: "/" == o[f + 1]
? ((c = ac), f++)
: ((t.cannotBeABaseURL = !0),
t.path.push(
""
),
(c = wc));
}
break;
case oc:
if (!n || (n.cannotBeABaseURL && "#" != i))
return Os;
if (n.cannotBeABaseURL && "#" == i) {
(t.scheme = n.scheme),
(t.path = n.path.slice(
)),
(t.query = n.query),
(t.fragment = ""),
(t.cannotBeABaseURL = !0),
(c = Ec);
break;
}
c = "file" == n.scheme ? vc : uc;
continue;
case ic:
if ("/" != i || "/" != o[f + 1]) {
c = uc;
continue;
}
(c = fc), f++;
break;
case ac:
if ("/" == i) {
c = lc;
break;
}
c = bc;
continue;
case uc:
if (((t.scheme = n.scheme), i == vs))
(t.username = n.username),
(t.password = n.password),
(t.host = n.host),
(t.port = n.port),
(t.path = n.path.slice(
)),
(t.query = n.query);
else if ("/" == i || ("\\" == i && Xs(
t
)))
c = sc;
else if ("?" == i)
(t.username = n.username),
(t.password = n.password),
(t.host = n.host),
(t.port = n.port),
(t.path = n.path.slice(
)),
(t.query = ""),
(c = Sc);
else {
if ("#" != i) {
(t.username = n.username),
(t.password = n.password),
(t.host = n.host),
(t.port = n.port),
(t.path = n.path.slice(
)),
t.path.pop(
),
(c = bc);
continue;
}
(t.username = n.username),
(t.password = n.password),
(t.host = n.host),
(t.port = n.port),
(t.path = n.path.slice(
)),
(t.query = n.query),
(t.fragment = ""),
(c = Ec);
}
break;
case sc:
if (!Xs(
t
) || ("/" != i && "\\" != i)) {
if ("/" != i) {
(t.username = n.username),
(t.password = n.password),
(t.host = n.host),
(t.port = n.port),
(c = bc);
continue;
}
c = lc;
} else c = fc;
break;
case cc:
if (
((c = fc),
"/" != i || "/" != l.charAt(
f + 1
))
)
continue;
f++;
break;
case fc:
if ("/" != i && "\\" != i) {
c = lc;
continue;
}
break;
case lc:
if ("@" == i) {
h && (l = "%40" + l),
(h = !0),
(a = hr(
l
));
for (var v = 0; v < a.length; v++) {
var g = a[v];
if (":" != g || d) {
var y = Vs(
g,
$s
);
d
? (t.password += y)
: (t.username += y);
} else d = !0;
}
l = "";
} else if (
i == vs ||
"/" == i ||
"?" == i ||
"#" == i ||
("\\" == i && Xs(
t
))
) {
if (h && "" == l)
return "Invalid authority";
(f -= hr(
l
).length + 1),
(l = ""),
(c = hc);
} else l += i;
break;
case hc:
case pc:
if (r && "file" == t.scheme) {
c = yc;
continue;
}
if (":" != i || p) {
if (
i == vs ||
"/" == i ||
"?" == i ||
"#" == i ||
("\\" == i && Xs(
t
))
) {
if (Xs(
t
) && "" == l) return Rs;
if (
r &&
"" == l &&
(Ys(
t
) || null !== t.port)
)
return;
if ((u = Bs(
t,
l
))) return u;
if (((l = ""), (c = mc), r)) return;
continue;
}
"[" == i
? (p = !0)
: "]" == i && (p = !1),
(l += i);
} else {
if ("" == l) return Rs;
if ((u = Bs(
t,
l
))) return u;
if (((l = ""), (c = dc), r == pc))
return;
}
break;
case dc:
if (!Ts.test(
i
)) {
if (
i == vs ||
"/" == i ||
"?" == i ||
"#" == i ||
("\\" == i && Xs(
t
)) ||
r
) {
if ("" != l) {
var m = parseInt(
l,
10
);
if (m > 65535) return js;
(t.port =
Xs(
t
) && m === Hs[t.scheme]
? null
: m),
(l = "");
}
if (r) return;
c = mc;
continue;
}
return js;
}
l += i;
break;
case vc:
if (
((t.scheme = "file"),
"/" == i || "\\" == i)
)
c = gc;
else {
if (!n || "file" != n.scheme) {
c = bc;
continue;
}
if (i == vs)
(t.host = n.host),
(t.path = n.path.slice(
)),
(t.query = n.query);
else if ("?" == i)
(t.host = n.host),
(t.path = n.path.slice(
)),
(t.query = ""),
(c = Sc);
else {
if ("#" != i) {
Zs(
o.slice(
f
).join(
""
)
) ||
((t.host = n.host),
(t.path = n.path.slice(
)),
tc(
t
)),
(c = bc);
continue;
}
(t.host = n.host),
(t.path = n.path.slice(
)),
(t.query = n.query),
(t.fragment = ""),
(c = Ec);
}
}
break;
case gc:
if ("/" == i || "\\" == i) {
c = yc;
break;
}
n &&
"file" == n.scheme &&
!Zs(
o.slice(
f
).join(
""
)
) &&
(Qs(
n.path[0],
!0
)
? t.path.push(
n.path[0]
)
: (t.host = n.host)),
(c = bc);
continue;
case yc:
if (
i == vs ||
"/" == i ||
"\\" == i ||
"?" == i ||
"#" == i
) {
if (!r && Qs(
l
)) c = bc;
else if ("" == l) {
if (((t.host = ""), r)) return;
c = mc;
} else {
if ((u = Bs(
t,
l
))) return u;
if (
("localhost" == t.host &&
(t.host = ""),
r)
)
return;
(l = ""), (c = mc);
}
continue;
}
l += i;
break;
case mc:
if (Xs(
t
)) {
if (((c = bc), "/" != i && "\\" != i))
continue;
} else if (r || "?" != i)
if (r || "#" != i) {
if (i != vs && ((c = bc), "/" != i))
continue;
} else (t.fragment = ""), (c = Ec);
else (t.query = ""), (c = Sc);
break;
case bc:
if (
i == vs ||
"/" == i ||
("\\" == i && Xs(
t
)) ||
(!r && ("?" == i || "#" == i))
) {
if (
(".." ===
(s = (s = l).toLowerCase(
)) ||
"%2e." === s ||
".%2e" === s ||
"%2e%2e" === s
? (tc(
t
),
"/" == i ||
("\\" == i && Xs(
t
)) ||
t.path.push(
""
))
: ec(
l
)
? "/" == i ||
("\\" == i && Xs(
t
)) ||
t.path.push(
""
)
: ("file" == t.scheme &&
!t.path.length &&
Qs(
l
) &&
(t.host && (t.host = ""),
(l = l.charAt(
0
) + ":")),
t.path.push(
l
)),
(l = ""),
"file" == t.scheme &&
(i == vs ||
"?" == i ||
"#" == i))
)
for (
;
t.path.length > 1 &&
"" === t.path[0];
)
t.path.shift(
);
"?" == i
? ((t.query = ""), (c = Sc))
: "#" == i &&
((t.fragment = ""), (c = Ec));
} else l += Vs(
i,
Gs
);
break;
case wc:
"?" == i
? ((t.query = ""), (c = Sc))
: "#" == i
? ((t.fragment = ""), (c = Ec))
: i != vs && (t.path[0] += Vs(
i,
Ws
));
break;
case Sc:
r || "#" != i
? i != vs &&
("'" == i && Xs(
t
)
? (t.query += "%27")
: (t.query +=
"#" == i
? "%23"
: Vs(
i,
Ws
)))
: ((t.fragment = ""), (c = Ec));
break;
case Ec:
i != vs && (t.fragment += Vs(
i,
Ks
));
}
f++;
}
},
Ac = function (
t
) {
var e,
r,
n = _r(
this,
Ac,
"URL"
),
o = arguments.length > 1 ? arguments[1] : void 0,
a = String(
t
),
u = Ss(
n,
{
type: "URL",
}
);
if (void 0 !== o)
if (o instanceof Ac) e = Es(
o
);
else if ((r = xc(
(e = {
}),
String(
o
)
)))
throw TypeError(
r
);
if ((r = xc(
u,
a,
null,
e
))) throw TypeError(
r
);
var s = (u.searchParams = new bs(
)),
c = ws(
s
);
c.updateSearchParams(
u.query
),
(c.updateURL = function (
) {
u.query = String(
s
) || null;
}),
i ||
((n.href = Rc.call(
n
)),
(n.origin = jc.call(
n
)),
(n.protocol = Pc.call(
n
)),
(n.username = Ic.call(
n
)),
(n.password = Tc.call(
n
)),
(n.host = kc.call(
n
)),
(n.hostname = Lc.call(
n
)),
(n.port = Uc.call(
n
)),
(n.pathname = Mc.call(
n
)),
(n.search = _c.call(
n
)),
(n.searchParams = Nc.call(
n
)),
(n.hash = Cc.call(
n
)));
},
Oc = Ac.prototype,
Rc = function (
) {
var t = Es(
this
),
e = t.scheme,
r = t.username,
n = t.password,
o = t.host,
i = t.port,
a = t.path,
u = t.query,
s = t.fragment,
c = e + ":";
return (
null !== o
? ((c += "//"),
Ys(
t
) && (c += r + (n ? ":" + n : "") + "@"),
(c += zs(
o
)),
null !== i && (c += ":" + i))
: "file" == e && (c += "//"),
(c += t.cannotBeABaseURL
? a[0]
: a.length
? "/" + a.join(
"/"
)
: ""),
null !== u && (c += "?" + u),
null !== s && (c += "#" + s),
c
);
},
jc = function (
) {
var t = Es(
this
),
e = t.scheme,
r = t.port;
if ("blob" == e)
try {
return new URL(
e.path[0]
).origin;
} catch (t) {
return "null";
}
return "file" != e && Xs(
t
)
? e +
"://" +
zs(
t.host
) +
(null !== r ? ":" + r : "")
: "null";
},
Pc = function (
) {
return Es(
this
).scheme + ":";
},
Ic = function (
) {
return Es(
this
).username;
},
Tc = function (
) {
return Es(
this
).password;
},
kc = function (
) {
var t = Es(
this
),
e = t.host,
r = t.port;
return null === e
? ""
: null === r
? zs(
e
)
: zs(
e
) + ":" + r;
},
Lc = function (
) {
var t = Es(
this
).host;
return null === t
? ""
: zs(
t
);
},
Uc = function (
) {
var t = Es(
this
).port;
return null === t
? ""
: String(
t
);
},
Mc = function (
) {
var t = Es(
this
),
e = t.path;
return t.cannotBeABaseURL
? e[0]
: e.length
? "/" + e.join(
"/"
)
: "";
},
_c = function (
) {
var t = Es(
this
).query;
return t ? "?" + t : "";
},
Nc = function (
) {
return Es(
this
).searchParams;
},
Cc = function (
) {
var t = Es(
this
).fragment;
return t ? "#" + t : "";
},
Fc = function (
t, e
) {
return {
get: t,
set: e,
configurable: !0,
enumerable: !0,
};
};
if (
(i &&
zt(
Oc,
{
href: Fc(
Rc,
function (
t
) {
var e = Es(
this
),
r = String(
t
),
n = xc(
e,
r
);
if (n) throw TypeError(
n
);
ws(
e.searchParams
).updateSearchParams(
e.query
);
}
),
origin: Fc(
jc
),
protocol: Fc(
Pc,
function (
t
) {
var e = Es(
this
);
xc(
e,
String(
t
) + ":",
rc
);
}
),
username: Fc(
Ic,
function (
t
) {
var e = Es(
this
),
r = hr(
String(
t
)
);
if (!Js(
e
)) {
e.username = "";
for (var n = 0; n < r.length; n++)
e.username += Vs(
r[n],
$s
);
}
}
),
password: Fc(
Tc,
function (
t
) {
var e = Es(
this
),
r = hr(
String(
t
)
);
if (!Js(
e
)) {
e.password = "";
for (var n = 0; n < r.length; n++)
e.password += Vs(
r[n],
$s
);
}
}
),
host: Fc(
kc,
function (
t
) {
var e = Es(
this
);
e.cannotBeABaseURL || xc(
e,
String(
t
),
hc
);
}
),
hostname: Fc(
Lc,
function (
t
) {
var e = Es(
this
);
e.cannotBeABaseURL || xc(
e,
String(
t
),
pc
);
}
),
port: Fc(
Uc,
function (
t
) {
var e = Es(
this
);
Js(
e
) ||
("" == (t = String(
t
))
? (e.port = null)
: xc(
e,
t,
dc
));
}
),
pathname: Fc(
Mc,
function (
t
) {
var e = Es(
this
);
e.cannotBeABaseURL ||
((e.path = []), xc(
e,
t + "",
mc
));
}
),
search: Fc(
_c,
function (
t
) {
var e = Es(
this
);
"" == (t = String(
t
))
? (e.query = null)
: ("?" == t.charAt(
0
) && (t = t.slice(
1
)),
(e.query = ""),
xc(
e,
t,
Sc
)),
ws(
e.searchParams
).updateSearchParams(
e.query
);
}
),
searchParams: Fc(
Nc
),
hash: Fc(
Cc,
function (
t
) {
var e = Es(
this
);
"" != (t = String(
t
))
? ("#" == t.charAt(
0
) && (t = t.slice(
1
)),
(e.fragment = ""),
xc(
e,
t,
Ec
))
: (e.fragment = null);
}
),
}
),
et(
Oc,
"toJSON",
function (
) {
return Rc.call(
this
);
},
{
enumerable: !0,
}
),
et(
Oc,
"toString",
function (
) {
return Rc.call(
this
);
},
{
enumerable: !0,
}
),
ms)
) {
var Bc = ms.createObjectURL,
Dc = ms.revokeObjectURL;
Bc &&
et(
Ac,
"createObjectURL",
function (
t
) {
return Bc.apply(
ms,
arguments
);
}
),
Dc &&
et(
Ac,
"revokeObjectURL",
function (
t
) {
return Dc.apply(
ms,
arguments
);
}
);
}
_e(
Ac,
"URL"
),
kt(
{
global: !0,
forced: !Uu,
sham: !i,
},
{
URL: Ac,
}
),
kt(
{
target: "URL",
proto: !0,
enumerable: !0,
},
{
toJSON: function (
) {
return URL.prototype.toString.call(
this
);
},
}
),
kt(
{
target: "WeakMap",
stat: !0,
},
{
from: en,
}
),
kt(
{
target: "WeakMap",
stat: !0,
},
{
of: rn,
}
),
kt(
{
target: "WeakMap",
proto: !0,
real: !0,
forced: D,
},
{
deleteAll: function (
) {
return nn.apply(
this,
arguments
);
},
}
),
kt(
{
target: "WeakMap",
proto: !0,
real: !0,
forced: D,
},
{
upsert: cn,
}
),
Cr(
"WeakSet",
function (
t
) {
return function (
) {
return t(
this,
arguments.length ? arguments[0] : void 0
);
};
},
mo
),
kt(
{
target: "WeakSet",
proto: !0,
real: !0,
forced: D,
},
{
addAll: function (
) {
return Hi.apply(
this,
arguments
);
},
}
),
kt(
{
target: "WeakSet",
proto: !0,
real: !0,
forced: D,
},
{
deleteAll: function (
) {
return nn.apply(
this,
arguments
);
},
}
),
kt(
{
target: "WeakSet",
stat: !0,
},
{
from: en,
}
),
kt(
{
target: "WeakSet",
stat: !0,
},
{
of: rn,
}
);
var qc,
zc,
Wc,
Kc = n.Promise,
Gc = /(iphone|ipod|ipad).*applewebkit/i.test(
Qi
),
$c = n.location,
Vc = n.setImmediate,
Hc = n.clearImmediate,
Xc = n.process,
Yc = n.MessageChannel,
Jc = n.Dispatch,
Qc = 0,
Zc = {
},
tf = function (
t
) {
if (Zc.hasOwnProperty(
t
)) {
var e = Zc[t];
delete Zc[t], e(
);
}
},
ef = function (
t
) {
return function (
) {
tf(
t
);
};
},
rf = function (
t
) {
tf(
t.data
);
},
nf = function (
t
) {
n.postMessage(
t + "",
$c.protocol + "//" + $c.host
);
};
(Vc && Hc) ||
((Vc = function (
t
) {
for (var e = [], r = 1; arguments.length > r; )
e.push(
arguments[r++]
);
return (
(Zc[++Qc] = function (
) {
("function" == typeof t
? t
: Function(
t
)
).apply(
void 0,
e
);
}),
qc(
Qc
),
Qc
);
}),
(Hc = function (
t
) {
delete Zc[t];
}),
"process" == l(
Xc
)
? (qc = function (
t
) {
Xc.nextTick(
ef(
t
)
);
})
: Jc && Jc.now
? (qc = function (
t
) {
Jc.now(
ef(
t
)
);
})
: Yc && !Gc
? ((Wc = (zc = new Yc(
)).port2),
(zc.port1.onmessage = rf),
(qc = Zt(
Wc.postMessage,
Wc,
1
)))
: !n.addEventListener ||
"function" != typeof postMessage ||
n.importScripts ||
o(
nf
) ||
"file:" === $c.protocol
? (qc =
"onreadystatechange" in E(
"script"
)
? function (
t
) {
Wt.appendChild(
E(
"script"
)
).onreadystatechange = function (
) {
Wt.removeChild(
this
), tf(
t
);
};
}
: function (
t
) {
setTimeout(
ef(
t
),
0
);
})
: ((qc = nf), n.addEventListener(
"message",
rf,
!1
)));
var of,
af,
uf,
sf,
cf,
ff,
lf,
hf,
pf = {
set: Vc,
clear: Hc,
},
df = O.f,
vf = pf.set,
gf = n.MutationObserver || n.WebKitMutationObserver,
yf = n.process,
mf = n.Promise,
bf = "process" == l(
yf
),
wf = df(
n,
"queueMicrotask"
),
Sf = wf && wf.value;
Sf ||
((of = function (
) {
var t, e;
for (bf && (t = yf.domain) && t.exit(
); af; ) {
(e = af.fn), (af = af.next);
try {
e(
);
} catch (t) {
throw (af
? sf(
)
: (uf = void 0), t);
}
}
(uf = void 0), t && t.enter(
);
}),
bf
? (sf = function (
) {
yf.nextTick(
of
);
})
: gf && !Gc
? ((cf = !0),
(ff = document.createTextNode(
""
)),
new gf(
of
).observe(
ff,
{
characterData: !0,
}
),
(sf = function (
) {
ff.data = cf = !cf;
}))
: mf && mf.resolve
? ((lf = mf.resolve(
void 0
)),
(hf = lf.then),
(sf = function (
) {
hf.call(
lf,
of
);
}))
: (sf = function (
) {
vf.call(
n,
of
);
}));
var Ef,
xf,
Af,
Of,
Rf =
Sf ||
function (
t
) {
var e = {
fn: t,
next: void 0,
};
uf && (uf.next = e),
af || ((af = e), sf(
)),
(uf = e);
},
jf = function (
t
) {
var e, r;
(this.promise = new t(
function (
t, n
) {
if (void 0 !== e || void 0 !== r)
throw TypeError(
"Bad Promise constructor"
);
(e = t), (r = n);
}
)),
(this.resolve = Qt(
e
)),
(this.reject = Qt(
r
));
},
Pf = {
f: function (
t
) {
return new jf(
t
);
},
},
If = function (
t, e
) {
if ((R(
t
), g(
e
) && e.constructor === t)) return e;
var r = Pf.f(
t
);
return (0, r.resolve)(
e
), r.promise;
},
Tf = function (
t
) {
try {
return {
error: !1,
value: t(
),
};
} catch (t) {
return {
error: !0,
value: t,
};
}
},
kf = pf.set,
Lf = Dt(
"species"
),
Uf = "Promise",
Mf = tt.get,
_f = tt.set,
Nf = tt.getterFor(
Uf
),
Cf = Kc,
Ff = n.TypeError,
Bf = n.document,
Df = n.process,
qf = ot(
"fetch"
),
zf = Pf.f,
Wf = zf,
Kf = "process" == l(
Df
),
Gf = !!(Bf && Bf.createEvent && n.dispatchEvent),
$f = "unhandledrejection",
Vf = It(
Uf,
function (
) {
if (C(
Cf
) === String(
Cf
)) {
if (66 === ra) return !0;
if (
!Kf &&
"function" != typeof PromiseRejectionEvent
)
return !0;
}
if (ra >= 51 && /native code/.test(
Cf
)) return !1;
var t = Cf.resolve(
1
),
e = function (
t
) {
t(
function (
) {},
function (
) {}
);
};
return (
((t.constructor = {
})[Lf] = e),
!(t.then(
function (
) {}
) instanceof e)
);
}
),
Hf =
Vf ||
!yr(
function (
t
) {
Cf.all(
t
).catch(
function (
) {}
);
}
),
Xf = function (
t
) {
var e;
return (
!(!g(
t
) || "function" != typeof (e = t.then)) && e
);
},
Yf = function (
t, e, r
) {
if (!e.notified) {
e.notified = !0;
var n = e.reactions;
Rf(
function (
) {
for (
var o = e.value, i = 1 == e.state, a = 0;
n.length > a;
) {
var u,
s,
c,
f = n[a++],
l = i ? f.ok : f.fail,
h = f.resolve,
p = f.reject,
d = f.domain;
try {
l
? (i ||
(2 === e.rejection &&
tl(
t,
e
),
(e.rejection = 1)),
!0 === l
? (u = o)
: (d && d.enter(
),
(u = l(
o
)),
d && (d.exit(
), (c = !0))),
u === f.promise
? p(
Ff(
"Promise-chain cycle"
)
)
: (s = Xf(
u
))
? s.call(
u,
h,
p
)
: h(
u
))
: p(
o
);
} catch (t) {
d && !c && d.exit(
), p(
t
);
}
}
(e.reactions = []),
(e.notified = !1),
r && !e.rejection && Qf(
t,
e
);
}
);
}
},
Jf = function (
t, e, r
) {
var o, i;
Gf
? (((o = Bf.createEvent(
"Event"
)).promise = e),
(o.reason = r),
o.initEvent(
t,
!1,
!0
),
n.dispatchEvent(
o
))
: (o = {
promise: e,
reason: r,
}),
(i = n["on" + t])
? i(
o
)
: t === $f &&
(function (
t, e
) {
var r = n.console;
r &&
r.error &&
(1 === arguments.length
? r.error(
t
)
: r.error(
t,
e
));
})(
"Unhandled promise rejection",
r
);
},
Qf = function (
t, e
) {
kf.call(
n,
function (
) {
var r,
n = e.value;
if (
Zf(
e
) &&
((r = Tf(
function (
) {
Kf
? Df.emit(
"unhandledRejection",
n,
t
)
: Jf(
$f,
t,
n
);
}
)),
(e.rejection = Kf || Zf(
e
)
? 2
: 1),
r.error)
)
throw r.value;
}
);
},
Zf = function (
t
) {
return 1 !== t.rejection && !t.parent;
},
tl = function (
t, e
) {
kf.call(
n,
function (
) {
Kf
? Df.emit(
"rejectionHandled",
t
)
: Jf(
"rejectionhandled",
t,
e.value
);
}
);
},
el = function (
t, e, r, n
) {
return function (
o
) {
t(
e,
r,
o,
n
);
};
},
rl = function (
t, e, r, n
) {
e.done ||
((e.done = !0),
n && (e = n),
(e.value = r),
(e.state = 2),
Yf(
t,
e,
!0
));
},
nl = function t(
e, r, n, o
) {
if (!r.done) {
(r.done = !0), o && (r = o);
try {
if (e === n)
throw Ff(
"Promise can't be resolved itself"
);
var i = Xf(
n
);
i
? Rf(
function (
) {
var o = {
done: !1,
};
try {
i.call(
n,
el(
t,
e,
o,
r
),
el(
rl,
e,
o,
r
)
);
} catch (t) {
rl(
e,
o,
t,
r
);
}
}
)
: ((r.value = n),
(r.state = 1),
Yf(
e,
r,
!1
));
} catch (t) {
rl(
e,
{
done: !1,
},
t,
r
);
}
}
};
Vf &&
((Cf = function (
t
) {
_r(
this,
Cf,
Uf
), Qt(
t
), Ef.call(
this
);
var e = Mf(
this
);
try {
t(
el(
nl,
this,
e
),
el(
rl,
this,
e
)
);
} catch (t) {
rl(
this,
e,
t
);
}
}),
((Ef = function (
t
) {
_f(
this,
{
type: Uf,
done: !1,
notified: !1,
parent: !1,
reactions: [],
rejection: !1,
state: 0,
value: void 0,
}
);
}).prototype = Fr(
Cf.prototype,
{
then: function (
t, e
) {
var r = Nf(
this
),
n = zf(
sn(
this,
Cf
)
);
return (
(n.ok = "function" != typeof t || t),
(n.fail = "function" == typeof e && e),
(n.domain = Kf ? Df.domain : void 0),
(r.parent = !0),
r.reactions.push(
n
),
0 != r.state && Yf(
this,
r,
!1
),
n.promise
);
},
catch: function (
t
) {
return this.then(
void 0,
t
);
},
}
)),
(xf = function (
) {
var t = new Ef(
),
e = Mf(
t
);
(this.promise = t),
(this.resolve = el(
nl,
t,
e
)),
(this.reject = el(
rl,
t,
e
));
}),
(Pf.f = zf =
function (
t
) {
return t === Cf || t === Af
? new xf(
t
)
: Wf(
t
);
}),
"function" == typeof Kc &&
((Of = Kc.prototype.then),
et(
Kc.prototype,
"then",
function (
t, e
) {
var r = this;
return new Cf(
function (
t, e
) {
Of.call(
r,
t,
e
);
}
).then(
t,
e
);
},
{
unsafe: !0,
}
),
"function" == typeof qf &&
kt(
{
global: !0,
enumerable: !0,
forced: !0,
},
{
fetch: function (
t
) {
return If(
Cf,
qf.apply(
n,
arguments
)
);
},
}
))),
kt(
{
global: !0,
wrap: !0,
forced: Vf,
},
{
Promise: Cf,
}
),
_e(
Cf,
Uf,
!1
),
Dr(
Uf
),
(Af = ot(
Uf
)),
kt(
{
target: Uf,
stat: !0,
forced: Vf,
},
{
reject: function (
t
) {
var e = zf(
this
);
return e.reject.call(
void 0,
t
), e.promise;
},
}
),
kt(
{
target: Uf,
stat: !0,
forced: Vf,
},
{
resolve: function (
t
) {
return If(
this,
t
);
},
}
),
kt(
{
target: Uf,
stat: !0,
forced: Hf,
},
{
all: function (
t
) {
var e = this,
r = zf(
e
),
n = r.resolve,
o = r.reject,
i = Tf(
function (
) {
var r = Qt(
e.resolve
),
i = [],
a = 0,
u = 1;
Mr(
t,
function (
t
) {
var s = a++,
c = !1;
i.push(
void 0
),
u++,
r.call(
e,
t
).then(
function (
t
) {
c ||
((c = !0),
(i[s] = t),
--u || n(
i
));
},
o
);
}
),
--u || n(
i
);
}
);
return i.error && o(
i.value
), r.promise;
},
race: function (
t
) {
var e = this,
r = zf(
e
),
n = r.reject,
o = Tf(
function (
) {
var o = Qt(
e.resolve
);
Mr(
t,
function (
t
) {
o.call(
e,
t
).then(
r.resolve,
n
);
}
);
}
);
return o.error && n(
o.value
), r.promise;
},
}
),
kt(
{
target: "Promise",
stat: !0,
},
{
allSettled: function (
t
) {
var e = this,
r = Pf.f(
e
),
n = r.resolve,
o = r.reject,
i = Tf(
function (
) {
var r = Qt(
e.resolve
),
o = [],
i = 0,
a = 1;
Mr(
t,
function (
t
) {
var u = i++,
s = !1;
o.push(
void 0
),
a++,
r.call(
e,
t
).then(
function (
t
) {
s ||
((s = !0),
(o[u] = {
status: "fulfilled",
value: t,
}),
--a || n(
o
));
},
function (
t
) {
s ||
((s = !0),
(o[u] = {
status: "rejected",
reason: t,
}),
--a || n(
o
));
}
);
}
),
--a || n(
o
);
}
);
return i.error && o(
i.value
), r.promise;
},
}
);
var ol =
!!Kc &&
o(
function (
) {
Kc.prototype.finally.call(
{
then: function (
) {},
},
function (
) {}
);
}
);
kt(
{
target: "Promise",
proto: !0,
real: !0,
forced: ol,
},
{
finally: function (
t
) {
var e = sn(
this,
ot(
"Promise"
)
),
r = "function" == typeof t;
return this.then(
r
? function (
r
) {
return If(
e,
t(
)
).then(
function (
) {
return r;
}
);
}
: t,
r
? function (
r
) {
return If(
e,
t(
)
).then(
function (
) {
throw r;
}
);
}
: t
);
},
}
),
"function" != typeof Kc ||
Kc.prototype.finally ||
et(
Kc.prototype,
"finally",
ot(
"Promise"
).prototype.finally
);
var il = tt.set,
al = tt.getterFor(
"AggregateError"
),
ul = function (
t, e
) {
var r = this;
if (!(r instanceof ul)) return new ul(
t,
e
);
qe && (r = qe(
new Error(
e
),
Ie(
r
)
));
var n = [];
return (
Mr(
t,
n.push,
n
),
i
? il(
r,
{
errors: n,
type: "AggregateError",
}
)
: (r.errors = n),
void 0 !== e && I(
r,
"message",
String(
e
)
),
r
);
};
(ul.prototype = Ht(
Error.prototype,
{
constructor: c(
5,
ul
),
message: c(
5,
""
),
name: c(
5,
"AggregateError"
),
}
)),
i &&
P.f(
ul.prototype,
"errors",
{
get: function (
) {
return al(
this
).errors;
},
configurable: !0,
}
),
kt(
{
global: !0,
},
{
AggregateError: ul,
}
),
kt(
{
target: "Promise",
stat: !0,
},
{
try: function (
t
) {
var e = Pf.f(
this
),
r = Tf(
t
);
return (
(r.error ? e.reject : e.resolve)(
r.value
),
e.promise
);
},
}
);
var sl = "No one promise resolved";
kt(
{
target: "Promise",
stat: !0,
},
{
any: function (
t
) {
var e = this,
r = Pf.f(
e
),
n = r.resolve,
o = r.reject,
i = Tf(
function (
) {
var r = Qt(
e.resolve
),
i = [],
a = 0,
u = 1,
s = !1;
Mr(
t,
function (
t
) {
var c = a++,
f = !1;
i.push(
void 0
),
u++,
r.call(
e,
t
).then(
function (
t
) {
f || s || ((s = !0), n(
t
));
},
function (
t
) {
f ||
s ||
((f = !0),
(i[c] = t),
--u ||
o(
new (ot(
"AggregateError"
))(
i,
sl
)
));
}
);
}
),
--u ||
o(
new (ot(
"AggregateError"
))(
i,
sl
)
);
}
);
return i.error && o(
i.value
), r.promise;
},
}
),
ee(
"Promise",
"finally"
);
var cl = "URLSearchParams" in self,
fl = "Symbol" in self && "iterator" in Symbol,
ll =
"FileReader" in self &&
"Blob" in self &&
(function (
) {
try {
return new Blob(
), !0;
} catch (t) {
return !1;
}
})(
),
hl = "FormData" in self,
pl = "ArrayBuffer" in self;
if (pl)
var dl = [
"[object Int8Array]",
"[object Uint8Array]",
"[object Uint8ClampedArray]",
"[object Int16Array]",
"[object Uint16Array]",
"[object Int32Array]",
"[object Uint32Array]",
"[object Float32Array]",
"[object Float64Array]",
],
vl =
ArrayBuffer.isView ||
function (
t
) {
return (
t &&
dl.indexOf(
Object.prototype.toString.call(
t
)
) > -1
);
};
function gl(
t
) {
if (
("string" != typeof t && (t = String(
t
)),
/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(
t
))
)
throw new TypeError(
"Invalid character in header field name"
);
return t.toLowerCase(
);
}
function yl(
t
) {
return "string" != typeof t && (t = String(
t
)), t;
}
function ml(
t
) {
var e = {
next: function (
) {
var e = t.shift(
);
return {
done: void 0 === e,
value: e,
};
},
};
return (
fl &&
(e[Symbol.iterator] = function (
) {
return e;
}),
e
);
}
function bl(
t
) {
(this.map = {
}),
t instanceof bl
? t.forEach(
function (
t, e
) {
this.append(
e,
t
);
},
this
)
: Array.isArray(
t
)
? t.forEach(
function (
t
) {
this.append(
t[0],
t[1]
);
},
this
)
: t &&
Object.getOwnPropertyNames(
t
).forEach(
function (
e
) {
this.append(
e,
t[e]
);
},
this
);
}
function wl(
t
) {
if (t.bodyUsed)
return Promise.reject(
new TypeError(
"Already read"
)
);
t.bodyUsed = !0;
}
function Sl(
t
) {
return new Promise(
function (
e, r
) {
(t.onload = function (
) {
e(
t.result
);
}),
(t.onerror = function (
) {
r(
t.error
);
});
}
);
}
function El(
t
) {
var e = new FileReader(
),
r = Sl(
e
);
return e.readAsArrayBuffer(
t
), r;
}
function xl(
t
) {
if (t.slice) return t.slice(
0
);
var e = new Uint8Array(
t.byteLength
);
return e.set(
new Uint8Array(
t
)
), e.buffer;
}
function Al(
) {
return (
(this.bodyUsed = !1),
(this._initBody = function (
t
) {
var e;
(this._bodyInit = t),
t
? "string" == typeof t
? (this._bodyText = t)
: ll && Blob.prototype.isPrototypeOf(
t
)
? (this._bodyBlob = t)
: hl &&
FormData.prototype.isPrototypeOf(
t
)
? (this._bodyFormData = t)
: cl &&
URLSearchParams.prototype.isPrototypeOf(
t
)
? (this._bodyText = t.toString(
))
: pl &&
ll &&
(e = t) &&
DataView.prototype.isPrototypeOf(
e
)
? ((this._bodyArrayBuffer = xl(
t.buffer
)),
(this._bodyInit = new Blob(
[
this._bodyArrayBuffer,
]
)))
: pl &&
(ArrayBuffer.prototype.isPrototypeOf(
t
) ||
vl(
t
))
? (this._bodyArrayBuffer = xl(
t
))
: (this._bodyText = t =
Object.prototype.toString.call(
t
))
: (this._bodyText = ""),
this.headers.get(
"content-type"
) ||
("string" == typeof t
? this.headers.set(
"content-type",
"text/plain;charset=UTF-8"
)
: this._bodyBlob && this._bodyBlob.type
? this.headers.set(
"content-type",
this._bodyBlob.type
)
: cl &&
URLSearchParams.prototype.isPrototypeOf(
t
) &&
this.headers.set(
"content-type",
"application/x-www-form-urlencoded;charset=UTF-8"
));
}),
ll &&
((this.blob = function (
) {
var t = wl(
this
);
if (t) return t;
if (this._bodyBlob)
return Promise.resolve(
this._bodyBlob
);
if (this._bodyArrayBuffer)
return Promise.resolve(
new Blob(
[this._bodyArrayBuffer,]
)
);
if (this._bodyFormData)
throw new Error(
"could not read FormData body as blob"
);
return Promise.resolve(
new Blob(
[this._bodyText,]
)
);
}),
(this.arrayBuffer = function (
) {
return this._bodyArrayBuffer
? wl(
this
) ||
Promise.resolve(
this._bodyArrayBuffer
)
: this.blob(
).then(
El
);
})),
(this.text = function (
) {
var t = wl(
this
);
if (t) return t;
if (this._bodyBlob)
return (function (
t
) {
var e = new FileReader(
),
r = Sl(
e
);
return e.readAsText(
t
), r;
})(
this._bodyBlob
);
if (this._bodyArrayBuffer)
return Promise.resolve(
(function (
t
) {
for (
var e = new Uint8Array(
t
),
r = new Array(
e.length
),
n = 0;
n < e.length;
n++
)
r[n] = String.fromCharCode(
e[n]
);
return r.join(
""
);
})(
this._bodyArrayBuffer
)
);
if (this._bodyFormData)
throw new Error(
"could not read FormData body as text"
);
return Promise.resolve(
this._bodyText
);
}),
hl &&
(this.formData = function (
) {
return this.text(
).then(
jl
);
}),
(this.json = function (
) {
return this.text(
).then(
JSON.parse
);
}),
this
);
}
(bl.prototype.append = function (
t, e
) {
(t = gl(
t
)), (e = yl(
e
));
var r = this.map[t];
this.map[t] = r ? r + ", " + e : e;
}),
(bl.prototype.delete = function (
t
) {
delete this.map[gl(
t
)];
}),
(bl.prototype.get = function (
t
) {
return (t = gl(
t
)), this.has(
t
)
? this.map[t]
: null;
}),
(bl.prototype.has = function (
t
) {
return this.map.hasOwnProperty(
gl(
t
)
);
}),
(bl.prototype.set = function (
t, e
) {
this.map[gl(
t
)] = yl(
e
);
}),
(bl.prototype.forEach = function (
t, e
) {
for (var r in this.map)
this.map.hasOwnProperty(
r
) &&
t.call(
e,
this.map[r],
r,
this
);
}),
(bl.prototype.keys = function (
) {
var t = [];
return (
this.forEach(
function (
e, r
) {
t.push(
r
);
}
),
ml(
t
)
);
}),
(bl.prototype.values = function (
) {
var t = [];
return (
this.forEach(
function (
e
) {
t.push(
e
);
}
),
ml(
t
)
);
}),
(bl.prototype.entries = function (
) {
var t = [];
return (
this.forEach(
function (
e, r
) {
t.push(
[r, e,]
);
}
),
ml(
t
)
);
}),
fl &&
(bl.prototype[Symbol.iterator] = bl.prototype.entries);
var Ol = ["DELETE", "GET", "HEAD", "OPTIONS", "POST", "PUT",];
function Rl(
t, e
) {
var r,
n,
o = (e = e || {
}).body;
if (t instanceof Rl) {
if (t.bodyUsed) throw new TypeError(
"Already read"
);
(this.url = t.url),
(this.credentials = t.credentials),
e.headers || (this.headers = new bl(
t.headers
)),
(this.method = t.method),
(this.mode = t.mode),
(this.signal = t.signal),
o ||
null == t._bodyInit ||
((o = t._bodyInit), (t.bodyUsed = !0));
} else this.url = String(
t
);
if (
((this.credentials =
e.credentials || this.credentials || "same-origin"),
(!e.headers && this.headers) ||
(this.headers = new bl(
e.headers
)),
(this.method =
((n = (r =
e.method ||
this.method ||
"GET").toUpperCase(
)),
Ol.indexOf(
n
) > -1
? n
: r)),
(this.mode = e.mode || this.mode || null),
(this.signal = e.signal || this.signal),
(this.referrer = null),
("GET" === this.method || "HEAD" === this.method) && o)
)
throw new TypeError(
"Body not allowed for GET or HEAD requests"
);
this._initBody(
o
);
}
function jl(
t
) {
var e = new FormData(
);
return (
t
.trim(
)
.split(
"&"
)
.forEach(
function (
t
) {
if (t) {
var r = t.split(
"="
),
n = r.shift(
).replace(
/\+/g,
" "
),
o = r.join(
"="
).replace(
/\+/g,
" "
);
e.append(
decodeURIComponent(
n
),
decodeURIComponent(
o
)
);
}
}
),
e
);
}
function Pl(
t, e
) {
e || (e = {
}),
(this.type = "default"),
(this.status = void 0 === e.status ? 200 : e.status),
(this.ok = this.status >= 200 && this.status < 300),
(this.statusText =
"statusText" in e ? e.statusText : "OK"),
(this.headers = new bl(
e.headers
)),
(this.url = e.url || ""),
this._initBody(
t
);
}
(Rl.prototype.clone = function (
) {
return new Rl(
this,
{
body: this._bodyInit,
}
);
}),
Al.call(
Rl.prototype
),
Al.call(
Pl.prototype
),
(Pl.prototype.clone = function (
) {
return new Pl(
this._bodyInit,
{
status: this.status,
statusText: this.statusText,
headers: new bl(
this.headers
),
url: this.url,
}
);
}),
(Pl.error = function (
) {
var t = new Pl(
null,
{
status: 0,
statusText: "",
}
);
return (t.type = "error"), t;
});
var Il = [301, 302, 303, 307, 308,];
Pl.redirect = function (
t, e
) {
if (-1 === Il.indexOf(
e
))
throw new RangeError(
"Invalid status code"
);
return new Pl(
null,
{
status: e,
headers: {
location: t,
},
}
);
};
var Tl = self.DOMException;
try {
new Tl(
);
} catch (t) {
((Tl = function (
t, e
) {
(this.message = t), (this.name = e);
var r = Error(
t
);
this.stack = r.stack;
}).prototype = Object.create(
Error.prototype
)),
(Tl.prototype.constructor = Tl);
}
function kl(
t, e
) {
return new Promise(
function (
r, n
) {
var o = new Rl(
t,
e
);
if (o.signal && o.signal.aborted)
return n(
new Tl(
"Aborted",
"AbortError"
)
);
var i = new XMLHttpRequest(
);
function a(
) {
i.abort(
);
}
(i.onload = function (
) {
var t,
e,
n = {
status: i.status,
statusText: i.statusText,
headers:
((t = i.getAllResponseHeaders(
) || ""),
(e = new bl(
)),
t
.replace(
/\r?\n[\t ]+/g,
" "
)
.split(
/\r?\n/
)
.forEach(
function (
t
) {
var r = t.split(
":"
),
n = r.shift(
).trim(
);
if (n) {
var o = r.join(
":"
).trim(
);
e.append(
n,
o
);
}
}
),
e),
};
(n.url =
"responseURL" in i
? i.responseURL
: n.headers.get(
"X-Request-URL"
)),
r(
new Pl(
"response" in i
? i.response
: i.responseText,
n
)
);
}),
(i.onerror = function (
) {
n(
new TypeError(
"Network request failed"
)
);
}),
(i.ontimeout = function (
) {
n(
new TypeError(
"Network request failed"
)
);
}),
(i.onabort = function (
) {
n(
new Tl(
"Aborted",
"AbortError"
)
);
}),
i.open(
o.method,
o.url,
!0
),
"include" === o.credentials
? (i.withCredentials = !0)
: "omit" === o.credentials &&
(i.withCredentials = !1),
"responseType" in i &&
ll &&
(i.responseType = "blob"),
o.headers.forEach(
function (
t, e
) {
i.setRequestHeader(
e,
t
);
}
),
o.signal &&
(o.signal.addEventListener(
"abort",
a
),
(i.onreadystatechange = function (
) {
4 === i.readyState &&
o.signal.removeEventListener(
"abort",
a
);
})),
i.send(
void 0 === o._bodyInit ? null : o._bodyInit
);
}
);
}
(kl.polyfill = !0),
self.fetch ||
((self.fetch = kl),
(self.Headers = bl),
(self.Request = Rl),
(self.Response = Pl));
var Ll = Object.getOwnPropertySymbols,
Ul = Object.prototype.hasOwnProperty,
Ml = Object.prototype.propertyIsEnumerable;
function _l(
t
) {
if (null == t)
throw new TypeError(
"Object.assign cannot be called with null or undefined"
);
return Object(
t
);
}
var Nl = (function (
) {
try {
if (!Object.assign) return !1;
var t = new String(
"abc"
);
if (
((t[5] = "de"),
"5" === Object.getOwnPropertyNames(
t
)[0])
)
return !1;
for (var e = {
}, r = 0; r < 10; r++)
e["_" + String.fromCharCode(
r
)] = r;
if (
"0123456789" !==
Object.getOwnPropertyNames(
e
)
.map(
function (
t
) {
return e[t];
}
)
.join(
""
)
)
return !1;
var n = {
};
return (
"abcdefghijklmnopqrst"
.split(
""
)
.forEach(
function (
t
) {
n[t] = t;
}
),
"abcdefghijklmnopqrst" ===
Object.keys(
Object.assign(
{
},
n
)
).join(
""
)
);
} catch (t) {
return !1;
}
})(
)
? Object.assign
: function (
t, e
) {
for (
var r, n, o = _l(
t
), i = 1;
i < arguments.length;
i++
) {
for (var a in (r = Object(
arguments[i]
)))
Ul.call(
r,
a
) && (o[a] = r[a]);
if (Ll) {
n = Ll(
r
);
for (var u = 0; u < n.length; u++)
Ml.call(
r,
n[u]
) && (o[n[u]] = r[n[u]]);
}
}
return o;
};
Object.assign = Nl;
})(
);
},
},
function (
__webpack_require__
) {
var moduleId,
__webpack_exports__ =
((moduleId = 4069),
__webpack_require__(
(__webpack_require__.s = moduleId)
));
_N_E = __webpack_exports__;
},
]
);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/fixture/projects/next/.archive-4/webpack-eb940a9a97802b481f9b/input.js | JavaScript | /******/ (function () {
// webpackBootstrap
/******/ "use strict";
/******/ var __webpack_modules__ = {};
/************************************************************************/
/******/ // The module cache
/******/ var __webpack_module_cache__ = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/ // Check if module is in cache
/******/ var cachedModule = __webpack_module_cache__[moduleId];
/******/ if (cachedModule !== undefined) {
/******/ return cachedModule.exports;
/******/
}
/******/ // Create a new module (and put it into the cache)
/******/ var module = (__webpack_module_cache__[moduleId] = {
/******/ // no module.id needed
/******/ // no module.loaded needed
/******/ exports: {},
/******/
});
/******/
/******/ // Execute the module function
/******/ var threw = true;
/******/ try {
/******/ __webpack_modules__[moduleId](
module,
module.exports,
__webpack_require__
);
/******/ threw = false;
/******/
} finally {
/******/ if (threw) delete __webpack_module_cache__[moduleId];
/******/
}
/******/
/******/ // Return the exports of the module
/******/ return module.exports;
/******/
}
/******/
/******/ // expose the modules object (__webpack_modules__)
/******/ __webpack_require__.m = __webpack_modules__;
/******/
/************************************************************************/
/******/ /* webpack/runtime/chunk loaded */
/******/ !(function () {
/******/ var deferred = [];
/******/ __webpack_require__.O = function (
result,
chunkIds,
fn,
priority
) {
/******/ if (chunkIds) {
/******/ priority = priority || 0;
/******/ for (
var i = deferred.length;
i > 0 && deferred[i - 1][2] > priority;
i--
)
deferred[i] = deferred[i - 1];
/******/ deferred[i] = [chunkIds, fn, priority];
/******/ return;
/******/
}
/******/ var notFulfilled = Infinity;
/******/ for (var i = 0; i < deferred.length; i++) {
/******/ var chunkIds = deferred[i][0];
/******/ var fn = deferred[i][1];
/******/ var priority = deferred[i][2];
/******/ var fulfilled = true;
/******/ for (var j = 0; j < chunkIds.length; j++) {
/******/ if (
(priority & (1 === 0) || notFulfilled >= priority) &&
Object.keys(__webpack_require__.O).every(function (
key
) {
return __webpack_require__.O[key](chunkIds[j]);
})
) {
/******/ chunkIds.splice(j--, 1);
/******/
} else {
/******/ fulfilled = false;
/******/ if (priority < notFulfilled)
notFulfilled = priority;
/******/
}
/******/
}
/******/ if (fulfilled) {
/******/ deferred.splice(i--, 1);
/******/ var r = fn();
/******/ if (r !== undefined) result = r;
/******/
}
/******/
}
/******/ return result;
/******/
};
/******/
})();
/******/
/******/ /* webpack/runtime/compat get default export */
/******/ !(function () {
/******/ // getDefaultExport function for compatibility with non-harmony modules
/******/ __webpack_require__.n = function (module) {
/******/ var getter =
module && module.__esModule
? /******/ function () {
return module["default"];
}
: /******/ function () {
return module;
};
/******/ __webpack_require__.d(getter, {
a: getter,
});
/******/ return getter;
/******/
};
/******/
})();
/******/
/******/ /* webpack/runtime/define property getters */
/******/ !(function () {
/******/ // define getter functions for harmony exports
/******/ __webpack_require__.d = function (exports, definition) {
/******/ for (var key in definition) {
/******/ if (
__webpack_require__.o(definition, key) &&
!__webpack_require__.o(exports, key)
) {
/******/ Object.defineProperty(exports, key, {
enumerable: true,
get: definition[key],
});
/******/
}
/******/
}
/******/
};
/******/
})();
/******/
/******/ /* webpack/runtime/ensure chunk */
/******/ !(function () {
/******/ __webpack_require__.f = {};
/******/ // This file contains only the entry chunk.
/******/ // The chunk loading function for additional chunks
/******/ __webpack_require__.e = function (chunkId) {
/******/ return Promise.all(
Object.keys(__webpack_require__.f).reduce(function (
promises,
key
) {
/******/ __webpack_require__.f[key](chunkId, promises);
/******/ return promises;
/******/
},
[])
);
/******/
};
/******/
})();
/******/
/******/ /* webpack/runtime/get javascript chunk filename */
/******/ !(function () {
/******/ // This function allow to reference async chunks
/******/ __webpack_require__.u = function (chunkId) {
/******/ // return url for filenames not based on template
/******/ if (chunkId === 774)
return "static/chunks/framework-054ead69ea8124b4cb27.js";
/******/ if (chunkId === 266)
return "static/chunks/266-aee26c928109d49d6151.js";
/******/ // return url for filenames based on template
/******/ return (
"static/chunks/" +
({
358: "hello1",
367: "hello2",
689: "hello-world",
}[chunkId] || chunkId) +
"." +
{
358: "4066327636ea41cc1002",
367: "339fbf9b6616133531f3",
383: "5942fafdbede773d29c7",
411: "0fbee7df8bd8b42967ec",
689: "1af1130392dd1b8d7964",
808: "7518829f34ebf3ce0082",
916: "2317bfea2c41354132bd",
974: "b9fed4786fc6d4a5745d",
}[chunkId] +
".js"
);
/******/
};
/******/
})();
/******/
/******/ /* webpack/runtime/get mini-css chunk filename */
/******/ !(function () {
/******/ // This function allow to reference all chunks
/******/ __webpack_require__.miniCssF = function (chunkId) {
/******/ // return url for filenames based on template
/******/ return undefined;
/******/
};
/******/
})();
/******/
/******/ /* webpack/runtime/global */
/******/ !(function () {
/******/ __webpack_require__.g = (function () {
/******/ if (typeof globalThis === "object") return globalThis;
/******/ try {
/******/ return this || new Function("return this")();
/******/
} catch (e) {
/******/ if (typeof window === "object") return window;
/******/
}
/******/
})();
/******/
})();
/******/
/******/ /* webpack/runtime/hasOwnProperty shorthand */
/******/ !(function () {
/******/ __webpack_require__.o = function (obj, prop) {
return Object.prototype.hasOwnProperty.call(obj, prop);
};
/******/
})();
/******/
/******/ /* webpack/runtime/load script */
/******/ !(function () {
/******/ var inProgress = {};
/******/ var dataWebpackPrefix = "_N_E:";
/******/ // loadScript function to load a script via script tag
/******/ __webpack_require__.l = function (url, done, key, chunkId) {
/******/ if (inProgress[url]) {
inProgress[url].push(done);
return;
}
/******/ var script, needAttach;
/******/ if (key !== undefined) {
/******/ var scripts = document.getElementsByTagName("script");
/******/ for (var i = 0; i < scripts.length; i++) {
/******/ var s = scripts[i];
/******/ if (
s.getAttribute("src") == url ||
s.getAttribute("data-webpack") ==
dataWebpackPrefix + key
) {
script = s;
break;
}
/******/
}
/******/
}
/******/ if (!script) {
/******/ needAttach = true;
/******/ script = document.createElement("script");
/******/
/******/ script.charset = "utf-8";
/******/ script.timeout = 120;
/******/ if (__webpack_require__.nc) {
/******/ script.setAttribute(
"nonce",
__webpack_require__.nc
);
/******/
}
/******/ script.setAttribute(
"data-webpack",
dataWebpackPrefix + key
);
/******/ script.src = url;
/******/
}
/******/ inProgress[url] = [done];
/******/ var onScriptComplete = function (prev, event) {
/******/ // avoid mem leaks in IE.
/******/ script.onerror = script.onload = null;
/******/ clearTimeout(timeout);
/******/ var doneFns = inProgress[url];
/******/ delete inProgress[url];
/******/ script.parentNode &&
script.parentNode.removeChild(script);
/******/ doneFns &&
doneFns.forEach(function (fn) {
return fn(event);
});
/******/ if (prev) return prev(event);
/******/
};
/******/ /******/ var timeout = setTimeout(
onScriptComplete.bind(null, undefined, {
type: "timeout",
target: script,
}),
120000
);
/******/ script.onerror = onScriptComplete.bind(
null,
script.onerror
);
/******/ script.onload = onScriptComplete.bind(null, script.onload);
/******/ needAttach && document.head.appendChild(script);
/******/
};
/******/
})();
/******/
/******/ /* webpack/runtime/make namespace object */
/******/ !(function () {
/******/ // define __esModule on exports
/******/ __webpack_require__.r = function (exports) {
/******/ if (typeof Symbol !== "undefined" && Symbol.toStringTag) {
/******/ Object.defineProperty(exports, Symbol.toStringTag, {
value: "Module",
});
/******/
}
/******/ Object.defineProperty(exports, "__esModule", {
value: true,
});
/******/
};
/******/
})();
/******/
/******/ /* webpack/runtime/publicPath */
/******/ !(function () {
/******/ __webpack_require__.p = "/_next/";
/******/
})();
/******/
/******/ /* webpack/runtime/jsonp chunk loading */
/******/ !(function () {
/******/ // no baseURI
/******/
/******/ // object to store loaded and loading chunks
/******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched
/******/ // [resolve, reject, Promise] = chunk loading, 0 = chunk loaded
/******/ var installedChunks = {
/******/ 272: 0,
/******/
};
/******/
/******/ __webpack_require__.f.j = function (chunkId, promises) {
/******/ // JSONP chunk loading for javascript
/******/ var installedChunkData = __webpack_require__.o(
installedChunks,
chunkId
)
? installedChunks[chunkId]
: undefined;
/******/ if (installedChunkData !== 0) {
// 0 means "already installed".
/******/
/******/ // a Promise means "currently loading".
/******/ if (installedChunkData) {
/******/ promises.push(installedChunkData[2]);
/******/
} else {
/******/ if (272 != chunkId) {
/******/ // setup Promise in chunk cache
/******/ var promise = new Promise(function (
resolve,
reject
) {
installedChunkData = installedChunks[chunkId] = [
resolve,
reject,
];
});
/******/ promises.push(
(installedChunkData[2] = promise)
);
/******/
/******/ // start chunk loading
/******/ var url =
__webpack_require__.p +
__webpack_require__.u(chunkId);
/******/ // create error before stack unwound to get useful stacktrace later
/******/ var error = new Error();
/******/ var loadingEnded = function (event) {
/******/ if (
__webpack_require__.o(installedChunks, chunkId)
) {
/******/ installedChunkData =
installedChunks[chunkId];
/******/ if (installedChunkData !== 0)
installedChunks[chunkId] = undefined;
/******/ if (installedChunkData) {
/******/ var errorType =
event &&
(event.type === "load"
? "missing"
: event.type);
/******/ var realSrc =
event &&
event.target &&
event.target.src;
/******/ error.message =
"Loading chunk " +
chunkId +
" failed.\n(" +
errorType +
": " +
realSrc +
")";
/******/ error.name = "ChunkLoadError";
/******/ error.type = errorType;
/******/ error.request = realSrc;
/******/ installedChunkData[1](error);
/******/
}
/******/
}
/******/
};
/******/ __webpack_require__.l(
url,
loadingEnded,
"chunk-" + chunkId,
chunkId
);
/******/
} else installedChunks[chunkId] = 0;
/******/
}
/******/
}
/******/
};
/******/
/******/ // no prefetching
/******/
/******/ // no preloaded
/******/
/******/ // no HMR
/******/
/******/ // no HMR manifest
/******/
/******/ __webpack_require__.O.j = function (chunkId) {
return installedChunks[chunkId] === 0;
};
/******/
/******/ // install a JSONP callback for chunk loading
/******/ var webpackJsonpCallback = function (
parentChunkLoadingFunction,
data
) {
/******/ var chunkIds = data[0];
/******/ var moreModules = data[1];
/******/ var runtime = data[2];
/******/ // add "moreModules" to the modules object,
/******/ // then flag all "chunkIds" as loaded and fire callback
/******/ var moduleId,
chunkId,
i = 0;
/******/ for (moduleId in moreModules) {
/******/ if (__webpack_require__.o(moreModules, moduleId)) {
/******/ __webpack_require__.m[moduleId] =
moreModules[moduleId];
/******/
}
/******/
}
/******/ if (runtime) var result = runtime(__webpack_require__);
/******/ if (parentChunkLoadingFunction)
parentChunkLoadingFunction(data);
/******/ for (; i < chunkIds.length; i++) {
/******/ chunkId = chunkIds[i];
/******/ if (
__webpack_require__.o(installedChunks, chunkId) &&
installedChunks[chunkId]
) {
/******/ installedChunks[chunkId][0]();
/******/
}
/******/ installedChunks[chunkIds[i]] = 0;
/******/
}
/******/ return __webpack_require__.O(result);
/******/
};
/******/
/******/ var chunkLoadingGlobal = (self["webpackChunk_N_E"] =
self["webpackChunk_N_E"] || []);
/******/ chunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));
/******/ chunkLoadingGlobal.push = webpackJsonpCallback.bind(
null,
chunkLoadingGlobal.push.bind(chunkLoadingGlobal)
);
/******/
})();
/******/
/************************************************************************/
/******/
/******/
/******/
})();
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/fixture/projects/next/.archive-4/webpack-eb940a9a97802b481f9b/output.js | JavaScript | !(function (
) {
"use strict";
var deferred,
inProgress,
__webpack_modules__ = {
},
__webpack_module_cache__ = {
};
function __webpack_require__(
moduleId
) {
var cachedModule = __webpack_module_cache__[moduleId];
if (void 0 !== cachedModule) return cachedModule.exports;
var module = (__webpack_module_cache__[moduleId] = {
exports: {
},
}),
threw = !0;
try {
__webpack_modules__[moduleId](
module,
module.exports,
__webpack_require__
),
(threw = !1);
} finally {
threw && delete __webpack_module_cache__[moduleId];
}
return module.exports;
}
(__webpack_require__.m = __webpack_modules__),
(deferred = []),
(__webpack_require__.O = function (
result, chunkIds, fn, priority
) {
if (!chunkIds) {
var notFulfilled = 1 / 0;
for (i = 0; i < deferred.length; i++) {
(chunkIds = deferred[i][0]),
(fn = deferred[i][1]),
(priority = deferred[i][2]);
for (var fulfilled = !0, j = 0; j < chunkIds.length; j++)
(!1 & priority || notFulfilled >= priority) &&
Object.keys(
__webpack_require__.O
).every(
function (
key
) {
return __webpack_require__.O[key](
chunkIds[j]
);
}
)
? chunkIds.splice(
j--,
1
)
: ((fulfilled = !1),
priority < notFulfilled &&
(notFulfilled = priority));
if (fulfilled) {
deferred.splice(
i--,
1
);
var r = fn(
);
void 0 !== r && (result = r);
}
}
return result;
}
priority = priority || 0;
for (
var i = deferred.length;
i > 0 && deferred[i - 1][2] > priority;
i--
)
deferred[i] = deferred[i - 1];
deferred[i] = [chunkIds, fn, priority,];
}),
(__webpack_require__.n = function (
module
) {
var getter =
module && module.__esModule
? function (
) {
return module.default;
}
: function (
) {
return module;
};
return __webpack_require__.d(
getter,
{
a: getter,
}
), getter;
}),
(__webpack_require__.d = function (
exports, definition
) {
for (var key in definition)
__webpack_require__.o(
definition,
key
) &&
!__webpack_require__.o(
exports,
key
) &&
Object.defineProperty(
exports,
key,
{
enumerable: !0,
get: definition[key],
}
);
}),
(__webpack_require__.f = {
}),
(__webpack_require__.e = function (
chunkId
) {
return Promise.all(
Object.keys(
__webpack_require__.f
).reduce(
function (
promises,
key
) {
return (
__webpack_require__.f[key](
chunkId,
promises
), promises
);
},
[]
)
);
}),
(__webpack_require__.u = function (
chunkId
) {
return 774 === chunkId
? "static/chunks/framework-054ead69ea8124b4cb27.js"
: 266 === chunkId
? "static/chunks/266-aee26c928109d49d6151.js"
: "static/chunks/" +
({
358: "hello1",
367: "hello2",
689: "hello-world",
}[
chunkId
] || chunkId) +
"." +
{
358: "4066327636ea41cc1002",
367: "339fbf9b6616133531f3",
383: "5942fafdbede773d29c7",
411: "0fbee7df8bd8b42967ec",
689: "1af1130392dd1b8d7964",
808: "7518829f34ebf3ce0082",
916: "2317bfea2c41354132bd",
974: "b9fed4786fc6d4a5745d",
}[chunkId] +
".js";
}),
(__webpack_require__.miniCssF = function (
chunkId
) {}),
(__webpack_require__.g = (function (
) {
if ("object" == typeof globalThis) return globalThis;
try {
return this || new Function(
"return this"
)(
);
} catch (e) {
if ("object" == typeof window) return window;
}
})(
)),
(__webpack_require__.o = function (
obj, prop
) {
return Object.prototype.hasOwnProperty.call(
obj,
prop
);
}),
(inProgress = {
}),
(__webpack_require__.l = function (
url, done, key, chunkId
) {
if (inProgress[url]) inProgress[url].push(
done
);
else {
var script, needAttach;
if (void 0 !== key)
for (
var scripts = document.getElementsByTagName(
"script"
),
i = 0;
i < scripts.length;
i++
) {
var s = scripts[i];
if (
s.getAttribute(
"src"
) == url ||
s.getAttribute(
"data-webpack"
) == "_N_E:" + key
) {
script = s;
break;
}
}
script ||
((needAttach = !0),
((script = document.createElement(
"script"
)).charset =
"utf-8"),
(script.timeout = 120),
__webpack_require__.nc &&
script.setAttribute(
"nonce",
__webpack_require__.nc
),
script.setAttribute(
"data-webpack",
"_N_E:" + key
),
(script.src = url)),
(inProgress[url] = [done,]);
var onScriptComplete = function (
prev, event
) {
(script.onerror = script.onload = null),
clearTimeout(
timeout
);
var doneFns = inProgress[url];
if (
(delete inProgress[url],
script.parentNode &&
script.parentNode.removeChild(
script
),
doneFns &&
doneFns.forEach(
function (
fn
) {
return fn(
event
);
}
),
prev)
)
return prev(
event
);
},
timeout = setTimeout(
onScriptComplete.bind(
null,
void 0,
{
type: "timeout",
target: script,
}
),
12e4
);
(script.onerror = onScriptComplete.bind(
null,
script.onerror
)),
(script.onload = onScriptComplete.bind(
null,
script.onload
)),
needAttach && document.head.appendChild(
script
);
}
}),
(__webpack_require__.r = function (
exports
) {
"undefined" != typeof Symbol &&
Symbol.toStringTag &&
Object.defineProperty(
exports,
Symbol.toStringTag,
{
value: "Module",
}
),
Object.defineProperty(
exports,
"__esModule",
{
value: !0,
}
);
}),
(__webpack_require__.p = "/_next/"),
(function (
) {
var installedChunks = {
272: 0,
};
(__webpack_require__.f.j = function (
chunkId, promises
) {
var installedChunkData = __webpack_require__.o(
installedChunks,
chunkId
)
? installedChunks[chunkId]
: void 0;
if (0 !== installedChunkData)
if (installedChunkData)
promises.push(
installedChunkData[2]
);
else if (272 != chunkId) {
var promise = new Promise(
function (
resolve, reject
) {
installedChunkData = installedChunks[chunkId] = [
resolve,
reject,
];
}
);
promises.push(
(installedChunkData[2] = promise)
);
var url =
__webpack_require__.p +
__webpack_require__.u(
chunkId
),
error = new Error(
);
__webpack_require__.l(
url,
function (
event
) {
if (
__webpack_require__.o(
installedChunks,
chunkId
) &&
(0 !==
(installedChunkData =
installedChunks[chunkId]) &&
(installedChunks[chunkId] = void 0),
installedChunkData)
) {
var errorType =
event &&
("load" === event.type
? "missing"
: event.type),
realSrc =
event &&
event.target &&
event.target.src;
(error.message =
"Loading chunk " +
chunkId +
" failed.\n(" +
errorType +
": " +
realSrc +
")"),
(error.name = "ChunkLoadError"),
(error.type = errorType),
(error.request = realSrc),
installedChunkData[1](
error
);
}
},
"chunk-" + chunkId,
chunkId
);
} else installedChunks[chunkId] = 0;
}),
(__webpack_require__.O.j = function (
chunkId
) {
return 0 === installedChunks[chunkId];
});
var webpackJsonpCallback = function (
parentChunkLoadingFunction,
data
) {
var moduleId,
chunkId,
chunkIds = data[0],
moreModules = data[1],
runtime = data[2],
i = 0;
for (moduleId in moreModules)
__webpack_require__.o(
moreModules,
moduleId
) &&
(__webpack_require__.m[moduleId] =
moreModules[moduleId]);
if (runtime) var result = runtime(
__webpack_require__
);
for (
parentChunkLoadingFunction &&
parentChunkLoadingFunction(
data
);
i < chunkIds.length;
i++
)
(chunkId = chunkIds[i]),
__webpack_require__.o(
installedChunks,
chunkId
) &&
installedChunks[chunkId] &&
installedChunks[chunkId][0](
),
(installedChunks[chunkIds[i]] = 0);
return __webpack_require__.O(
result
);
},
chunkLoadingGlobal = (self.webpackChunk_N_E =
self.webpackChunk_N_E || []);
chunkLoadingGlobal.forEach(
webpackJsonpCallback.bind(
null,
0
)
),
(chunkLoadingGlobal.push = webpackJsonpCallback.bind(
null,
chunkLoadingGlobal.push.bind(
chunkLoadingGlobal
)
));
})(
);
})(
);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/fixture/projects/next/archive-1/383.5942fafdbede773d29c7/input.js | JavaScript | "use strict";
(self["webpackChunk_N_E"] = self["webpackChunk_N_E"] || []).push([
[383],
{
/***/ 6086: /***/ function (
__unused_webpack___webpack_module__,
__webpack_exports__,
__webpack_require__
) {
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ Z: function () {
return /* binding */ _asyncToGenerator;
},
/* harmony export */
});
function asyncGeneratorStep(
gen,
resolve,
reject,
_next,
_throw,
key,
arg
) {
try {
var info = gen[key](arg);
var value = info.value;
} catch (error) {
reject(error);
return;
}
if (info.done) {
resolve(value);
} else {
Promise.resolve(value).then(_next, _throw);
}
}
function _asyncToGenerator(fn) {
return function () {
var self = this,
args = arguments;
return new Promise(function (resolve, reject) {
var gen = fn.apply(self, args);
function _next(value) {
asyncGeneratorStep(
gen,
resolve,
reject,
_next,
_throw,
"next",
value
);
}
function _throw(err) {
asyncGeneratorStep(
gen,
resolve,
reject,
_next,
_throw,
"throw",
err
);
}
_next(undefined);
});
};
}
/***/
},
/***/ 1383: /***/ function (
__unused_webpack_module,
__webpack_exports__,
__webpack_require__
) {
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ =
__webpack_require__(4512);
/* harmony import */ var _Users_timneutkens_projects_next_js_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1__ =
__webpack_require__(7945);
/* harmony import */ var _Users_timneutkens_projects_next_js_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default =
/*#__PURE__*/ __webpack_require__.n(
_Users_timneutkens_projects_next_js_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1__
);
/* harmony import */ var _Users_timneutkens_projects_next_js_node_modules_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_3__ =
__webpack_require__(6086);
/* harmony import */ var next_dynamic__WEBPACK_IMPORTED_MODULE_2__ =
__webpack_require__(4652);
var BrowserLoaded = (0,
next_dynamic__WEBPACK_IMPORTED_MODULE_2__.default)(
/*#__PURE__*/ (0,
_Users_timneutkens_projects_next_js_node_modules_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_3__ /* .default */.Z)(
/*#__PURE__*/ _Users_timneutkens_projects_next_js_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default().mark(
function _callee() {
return _Users_timneutkens_projects_next_js_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default().wrap(
function _callee$(_context) {
while (1) {
switch (
(_context.prev = _context.next)
) {
case 0:
return _context.abrupt(
"return",
function () {
return /*#__PURE__*/ (0,
react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(
"div",
{
children:
"Browser hydrated",
}
);
}
);
case 1:
case "end":
return _context.stop();
}
}
},
_callee
);
}
)
),
{
ssr: false,
}
);
/* harmony default export */ __webpack_exports__["default"] =
function () {
return /*#__PURE__*/ (0,
react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(
"div",
{
children: [
/*#__PURE__*/ (0,
react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(
"div",
{
children: "Nested 2",
}
),
/*#__PURE__*/ (0,
react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(
BrowserLoaded,
{}
),
],
}
);
};
/***/
},
},
]);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/fixture/projects/next/archive-1/383.5942fafdbede773d29c7/output.js | JavaScript | "use strict";
(self.webpackChunk_N_E = self.webpackChunk_N_E || []).push([
[
383
],
{
/***/ 6086: /***/ function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
try {
var info = gen[key](arg), value = info.value;
} catch (error) {
reject(error);
return;
}
info.done ? resolve(value) : Promise.resolve(value).then(_next, _throw);
}
function _asyncToGenerator(fn) {
return function() {
var self1 = this, args = arguments;
return new Promise(function(resolve, reject) {
var gen = fn.apply(self1, args);
function _next(value) {
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
}
function _throw(err) {
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
}
_next(void 0);
});
};
}
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ Z: function() {
return /* binding */ _asyncToGenerator;
}
});
/***/ },
/***/ 1383: /***/ function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4512), _Users_timneutkens_projects_next_js_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7945), _Users_timneutkens_projects_next_js_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(_Users_timneutkens_projects_next_js_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1__), _Users_timneutkens_projects_next_js_node_modules_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(6086), BrowserLoaded = (0, __webpack_require__(4652).default)(/*#__PURE__*/ (0, _Users_timneutkens_projects_next_js_node_modules_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_3__ /* .default */ .Z)(/*#__PURE__*/ _Users_timneutkens_projects_next_js_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default().mark(function _callee() {
return _Users_timneutkens_projects_next_js_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default().wrap(function(_context) {
for(;;)switch(_context.prev = _context.next){
case 0:
return _context.abrupt("return", function() {
return /*#__PURE__*/ (0, react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div", {
children: "Browser hydrated"
});
});
case 1:
case "end":
return _context.stop();
}
}, _callee);
})), {
ssr: !1
});
/* harmony default export */ __webpack_exports__.default = function() {
return /*#__PURE__*/ (0, react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", {
children: [
/*#__PURE__*/ (0, react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div", {
children: "Nested 2"
}),
/*#__PURE__*/ (0, react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(BrowserLoaded, {})
]
});
};
/***/ }
}
]);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/fixture/projects/next/archive-1/411.0fbee7df8bd8b42967ec/input.js | JavaScript | "use strict";
(self["webpackChunk_N_E"] = self["webpackChunk_N_E"] || []).push([
[411],
{
/***/ 8411: /***/ function (
__unused_webpack_module,
__webpack_exports__,
__webpack_require__
) {
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ =
__webpack_require__(4512);
/* harmony import */ var styled_jsx_style__WEBPACK_IMPORTED_MODULE_1__ =
__webpack_require__(266);
/* harmony default export */ __webpack_exports__["default"] =
function () {
return /*#__PURE__*/ (0,
react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(
"div",
{
id: "dynamic-component",
className: "jsx-3028949577",
children: [
"Dynamic Component",
/*#__PURE__*/ (0,
react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(
styled_jsx_style__WEBPACK_IMPORTED_MODULE_1__.default,
{
id: "3028949577",
children: [
"div.jsx-3028949577{font-size:100px;}",
],
}
),
],
}
);
};
/***/
},
},
]);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/fixture/projects/next/archive-1/411.0fbee7df8bd8b42967ec/output.js | JavaScript | "use strict";
(self.webpackChunk_N_E = self.webpackChunk_N_E || []).push([
[
411
],
{
/***/ 8411: /***/ function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4512), styled_jsx_style__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(266);
/* harmony default export */ __webpack_exports__.default = function() {
return /*#__PURE__*/ (0, react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", {
id: "dynamic-component",
className: "jsx-3028949577",
children: [
"Dynamic Component",
/*#__PURE__*/ (0, react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(styled_jsx_style__WEBPACK_IMPORTED_MODULE_1__.default, {
id: "3028949577",
children: [
"div.jsx-3028949577{font-size:100px;}"
]
})
]
});
};
/***/ }
}
]);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/fixture/projects/next/archive-1/808.7518829f34ebf3ce0082/input.js | JavaScript | "use strict";
(self["webpackChunk_N_E"] = self["webpackChunk_N_E"] || []).push([
[808],
{
/***/ 2808: /***/ function (
__unused_webpack_module,
__webpack_exports__,
__webpack_require__
) {
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ =
__webpack_require__(4512);
/* harmony import */ var next_dynamic__WEBPACK_IMPORTED_MODULE_1__ =
__webpack_require__(4652);
var Nested2 = (0,
next_dynamic__WEBPACK_IMPORTED_MODULE_1__.default)(
function () {
return __webpack_require__
.e(/* import() */ 383)
.then(
__webpack_require__.bind(__webpack_require__, 1383)
);
},
{
loadableGenerated: {
webpack: function webpack() {
return [/*require.resolve*/ 1383];
},
modules: ["../components/nested1.js -> " + "./nested2"],
},
}
);
/* harmony default export */ __webpack_exports__["default"] =
function () {
return /*#__PURE__*/ (0,
react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(
"div",
{
children: [
"Nested 1",
/*#__PURE__*/ (0,
react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(
Nested2,
{}
),
],
}
);
};
/***/
},
},
]);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/fixture/projects/next/archive-1/808.7518829f34ebf3ce0082/output.js | JavaScript | "use strict";
(self.webpackChunk_N_E = self.webpackChunk_N_E || []).push([
[
808
],
{
/***/ 2808: /***/ function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4512), Nested2 = (0, __webpack_require__(4652).default)(function() {
return __webpack_require__.e(/* import() */ 383).then(__webpack_require__.bind(__webpack_require__, 1383));
}, {
loadableGenerated: {
webpack: function() {
return [
/*require.resolve*/ 1383
];
},
modules: [
"../components/nested1.js -> ./nested2"
]
}
});
/* harmony default export */ __webpack_exports__.default = function() {
return /*#__PURE__*/ (0, react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", {
children: [
"Nested 1",
/*#__PURE__*/ (0, react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(Nested2, {})
]
});
};
/***/ }
}
]);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/fixture/projects/next/archive-1/916.2317bfea2c41354132bd/input.js | JavaScript | "use strict";
(self["webpackChunk_N_E"] = self["webpackChunk_N_E"] || []).push([
[916, 974],
{
/***/ 6974: /***/ function (
__unused_webpack_module,
__webpack_exports__,
__webpack_require__
) {
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ =
__webpack_require__(4512);
/* harmony default export */ __webpack_exports__["default"] =
function () {
return /*#__PURE__*/ (0,
react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("p", {
children: "Hello World 1",
});
};
/***/
},
},
]);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/fixture/projects/next/archive-1/916.2317bfea2c41354132bd/output.js | JavaScript | "use strict";
(self.webpackChunk_N_E = self.webpackChunk_N_E || []).push([
[
916,
974
],
{
/***/ 6974: /***/ function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4512);
/* harmony default export */ __webpack_exports__.default = function() {
return /*#__PURE__*/ (0, react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("p", {
children: "Hello World 1"
});
};
/***/ }
}
]);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/fixture/projects/next/archive-1/974.b9fed4786fc6d4a5745d/input.js | JavaScript | "use strict";
(self["webpackChunk_N_E"] = self["webpackChunk_N_E"] || []).push([
[974, 916],
{
/***/ 6974: /***/ function (
__unused_webpack_module,
__webpack_exports__,
__webpack_require__
) {
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ =
__webpack_require__(4512);
/* harmony default export */ __webpack_exports__["default"] =
function () {
return /*#__PURE__*/ (0,
react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("p", {
children: "Hello World 1",
});
};
/***/
},
},
]);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/fixture/projects/next/archive-1/974.b9fed4786fc6d4a5745d/output.js | JavaScript | "use strict";
(self.webpackChunk_N_E = self.webpackChunk_N_E || []).push([
[
974,
916
],
{
/***/ 6974: /***/ function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4512);
/* harmony default export */ __webpack_exports__.default = function() {
return /*#__PURE__*/ (0, react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("p", {
children: "Hello World 1"
});
};
/***/ }
}
]);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/fixture/projects/next/archive-1/hello-world.1af1130392dd1b8d7964/input.js | JavaScript | "use strict";
(self["webpackChunk_N_E"] = self["webpackChunk_N_E"] || []).push([
[689],
{
/***/ 4090: /***/ function (
__unused_webpack_module,
__webpack_exports__,
__webpack_require__
) {
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ =
__webpack_require__(4512);
/* harmony default export */ __webpack_exports__["default"] =
function () {
return /*#__PURE__*/ (0,
react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div", {
children: "test chunkfilename",
});
};
/***/
},
},
]);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/fixture/projects/next/archive-1/hello-world.1af1130392dd1b8d7964/output.js | JavaScript | "use strict";
(self.webpackChunk_N_E = self.webpackChunk_N_E || []).push([
[
689
],
{
/***/ 4090: /***/ function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4512);
/* harmony default export */ __webpack_exports__.default = function() {
return /*#__PURE__*/ (0, react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div", {
children: "test chunkfilename"
});
};
/***/ }
}
]);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/fixture/projects/next/archive-1/hello1.4066327636ea41cc1002/input.js | JavaScript | "use strict";
(self["webpackChunk_N_E"] = self["webpackChunk_N_E"] || []).push([
[358],
{
/***/ 1901: /***/ function (
__unused_webpack_module,
__webpack_exports__,
__webpack_require__
) {
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ =
__webpack_require__(4512);
/* harmony default export */ __webpack_exports__["default"] =
function () {
return /*#__PURE__*/ (0,
react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("p", {
children: "Hello World 1",
});
};
/***/
},
},
]);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/fixture/projects/next/archive-1/hello1.4066327636ea41cc1002/output.js | JavaScript | "use strict";
(self.webpackChunk_N_E = self.webpackChunk_N_E || []).push([
[
358
],
{
/***/ 1901: /***/ function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4512);
/* harmony default export */ __webpack_exports__.default = function() {
return /*#__PURE__*/ (0, react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("p", {
children: "Hello World 1"
});
};
/***/ }
}
]);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/fixture/projects/next/archive-1/hello2.339fbf9b6616133531f3/input.js | JavaScript | "use strict";
(self["webpackChunk_N_E"] = self["webpackChunk_N_E"] || []).push([
[367],
{
/***/ 4416: /***/ function (
__unused_webpack_module,
__webpack_exports__,
__webpack_require__
) {
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ =
__webpack_require__(4512);
/* harmony default export */ __webpack_exports__["default"] =
function () {
return /*#__PURE__*/ (0,
react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("p", {
children: "Hello World 2",
});
};
/***/
},
},
]);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/fixture/projects/next/archive-1/hello2.339fbf9b6616133531f3/output.js | JavaScript | "use strict";
(self.webpackChunk_N_E = self.webpackChunk_N_E || []).push([
[
367
],
{
/***/ 4416: /***/ function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4512);
/* harmony default export */ __webpack_exports__.default = function() {
return /*#__PURE__*/ (0, react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("p", {
children: "Hello World 2"
});
};
/***/ }
}
]);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_minifier/tests/fixture/projects/next/archive-1/pages/about-9ff906d607f52933d473/input.js | JavaScript | (self["webpackChunk_N_E"] = self["webpackChunk_N_E"] || []).push([
[521],
{
/***/ 4426: /***/ function (
__unused_webpack_module,
__webpack_exports__,
__webpack_require__
) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ =
__webpack_require__(4512);
/* harmony default export */ __webpack_exports__["default"] =
function () {
return /*#__PURE__*/ (0,
react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div", {
className: "about-page",
children: "About Page",
});
};
/***/
},
/***/ 8484: /***/ function (
__unused_webpack_module,
__unused_webpack_exports,
__webpack_require__
) {
(window.__NEXT_P = window.__NEXT_P || []).push([
"/about",
function () {
return __webpack_require__(4426);
},
]);
/***/
},
},
/******/ function (__webpack_require__) {
// webpackRuntimeModules
/******/ var __webpack_exec__ = function (moduleId) {
return __webpack_require__((__webpack_require__.s = moduleId));
};
/******/ __webpack_require__.O(0, [774, 888, 179], function () {
return __webpack_exec__(8484);
});
/******/ var __webpack_exports__ = __webpack_require__.O();
/******/ _N_E = __webpack_exports__;
/******/
},
]);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.