UNPKG

@wix/cli

Version:

CLI tool for building Wix sites and applications

1,613 lines (1,599 loc) 505 kB
import { createRequire as _createRequire } from 'node:module'; const require = _createRequire(import.meta.url); import { require_isSymbol, require_root } from "./chunk-5VIJC5EU.js"; import { require_scheduler } from "./chunk-MZDJNQLB.js"; import { require_react } from "./chunk-QNHANFRW.js"; import { isUnicodeSupported, require_cli_spinners, source_default, stripAnsi } from "./chunk-AFPDHQYI.js"; import { getTestOverrides } from "./chunk-XZUGLEBK.js"; import { CliError, CliErrorCode, require_lib } from "./chunk-CO5A7CZG.js"; import { __commonJS, __export, __require, __toESM, init_esm_shims } from "./chunk-EXLZF52D.js"; // ../../node_modules/lodash/isObject.js var require_isObject = __commonJS({ "../../node_modules/lodash/isObject.js"(exports, module) { "use strict"; init_esm_shims(); function isObject(value2) { var type = typeof value2; return value2 != null && (type == "object" || type == "function"); } module.exports = isObject; } }); // ../../node_modules/lodash/now.js var require_now = __commonJS({ "../../node_modules/lodash/now.js"(exports, module) { "use strict"; init_esm_shims(); var root = require_root(); var now = function() { return root.Date.now(); }; module.exports = now; } }); // ../../node_modules/lodash/_trimmedEndIndex.js var require_trimmedEndIndex = __commonJS({ "../../node_modules/lodash/_trimmedEndIndex.js"(exports, module) { "use strict"; init_esm_shims(); var reWhitespace = /\s/; function trimmedEndIndex(string) { var index = string.length; while (index-- && reWhitespace.test(string.charAt(index))) { } return index; } module.exports = trimmedEndIndex; } }); // ../../node_modules/lodash/_baseTrim.js var require_baseTrim = __commonJS({ "../../node_modules/lodash/_baseTrim.js"(exports, module) { "use strict"; init_esm_shims(); var trimmedEndIndex = require_trimmedEndIndex(); var reTrimStart = /^\s+/; function baseTrim(string) { return string ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, "") : string; } module.exports = baseTrim; } }); // ../../node_modules/lodash/toNumber.js var require_toNumber = __commonJS({ "../../node_modules/lodash/toNumber.js"(exports, module) { "use strict"; init_esm_shims(); var baseTrim = require_baseTrim(); var isObject = require_isObject(); var isSymbol = require_isSymbol(); var NAN = 0 / 0; var reIsBadHex = /^[-+]0x[0-9a-f]+$/i; var reIsBinary = /^0b[01]+$/i; var reIsOctal = /^0o[0-7]+$/i; var freeParseInt = parseInt; function toNumber(value2) { if (typeof value2 == "number") { return value2; } if (isSymbol(value2)) { return NAN; } if (isObject(value2)) { var other = typeof value2.valueOf == "function" ? value2.valueOf() : value2; value2 = isObject(other) ? other + "" : other; } if (typeof value2 != "string") { return value2 === 0 ? value2 : +value2; } value2 = baseTrim(value2); var isBinary = reIsBinary.test(value2); return isBinary || reIsOctal.test(value2) ? freeParseInt(value2.slice(2), isBinary ? 2 : 8) : reIsBadHex.test(value2) ? NAN : +value2; } module.exports = toNumber; } }); // ../../node_modules/lodash/debounce.js var require_debounce = __commonJS({ "../../node_modules/lodash/debounce.js"(exports, module) { "use strict"; init_esm_shims(); var isObject = require_isObject(); var now = require_now(); var toNumber = require_toNumber(); var FUNC_ERROR_TEXT = "Expected a function"; var nativeMax = Math.max; var nativeMin = Math.min; function debounce(func, wait, options) { var lastArgs, lastThis, maxWait, result, timerId, lastCallTime, lastInvokeTime = 0, leading = false, maxing = false, trailing = true; if (typeof func != "function") { throw new TypeError(FUNC_ERROR_TEXT); } wait = toNumber(wait) || 0; if (isObject(options)) { leading = !!options.leading; maxing = "maxWait" in options; maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait; trailing = "trailing" in options ? !!options.trailing : trailing; } function invokeFunc(time) { var args = lastArgs, thisArg = lastThis; lastArgs = lastThis = void 0; lastInvokeTime = time; result = func.apply(thisArg, args); return result; } function leadingEdge(time) { lastInvokeTime = time; timerId = setTimeout(timerExpired, wait); return leading ? invokeFunc(time) : result; } function remainingWait(time) { var timeSinceLastCall = time - lastCallTime, timeSinceLastInvoke = time - lastInvokeTime, timeWaiting = wait - timeSinceLastCall; return maxing ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke) : timeWaiting; } function shouldInvoke(time) { var timeSinceLastCall = time - lastCallTime, timeSinceLastInvoke = time - lastInvokeTime; return lastCallTime === void 0 || timeSinceLastCall >= wait || timeSinceLastCall < 0 || maxing && timeSinceLastInvoke >= maxWait; } function timerExpired() { var time = now(); if (shouldInvoke(time)) { return trailingEdge(time); } timerId = setTimeout(timerExpired, remainingWait(time)); } function trailingEdge(time) { timerId = void 0; if (trailing && lastArgs) { return invokeFunc(time); } lastArgs = lastThis = void 0; return result; } function cancel() { if (timerId !== void 0) { clearTimeout(timerId); } lastInvokeTime = 0; lastArgs = lastCallTime = lastThis = timerId = void 0; } function flush() { return timerId === void 0 ? result : trailingEdge(now()); } function debounced() { var time = now(), isInvoking = shouldInvoke(time); lastArgs = arguments; lastThis = this; lastCallTime = time; if (isInvoking) { if (timerId === void 0) { return leadingEdge(lastCallTime); } if (maxing) { clearTimeout(timerId); timerId = setTimeout(timerExpired, wait); return invokeFunc(lastCallTime); } } if (timerId === void 0) { timerId = setTimeout(timerExpired, wait); } return result; } debounced.cancel = cancel; debounced.flush = flush; return debounced; } module.exports = debounce; } }); // ../../node_modules/lodash/throttle.js var require_throttle = __commonJS({ "../../node_modules/lodash/throttle.js"(exports, module) { "use strict"; init_esm_shims(); var debounce = require_debounce(); var isObject = require_isObject(); var FUNC_ERROR_TEXT = "Expected a function"; function throttle2(func, wait, options) { var leading = true, trailing = true; if (typeof func != "function") { throw new TypeError(FUNC_ERROR_TEXT); } if (isObject(options)) { leading = "leading" in options ? !!options.leading : leading; trailing = "trailing" in options ? !!options.trailing : trailing; } return debounce(func, wait, { "leading": leading, "maxWait": wait, "trailing": trailing }); } module.exports = throttle2; } }); // ../../node_modules/ink/node_modules/ci-info/vendors.json var require_vendors = __commonJS({ "../../node_modules/ink/node_modules/ci-info/vendors.json"(exports, module) { module.exports = [ { name: "Appcircle", constant: "APPCIRCLE", env: "AC_APPCIRCLE" }, { name: "AppVeyor", constant: "APPVEYOR", env: "APPVEYOR", pr: "APPVEYOR_PULL_REQUEST_NUMBER" }, { name: "AWS CodeBuild", constant: "CODEBUILD", env: "CODEBUILD_BUILD_ARN" }, { name: "Azure Pipelines", constant: "AZURE_PIPELINES", env: "TF_BUILD", pr: { BUILD_REASON: "PullRequest" } }, { name: "Bamboo", constant: "BAMBOO", env: "bamboo_planKey" }, { name: "Bitbucket Pipelines", constant: "BITBUCKET", env: "BITBUCKET_COMMIT", pr: "BITBUCKET_PR_ID" }, { name: "Bitrise", constant: "BITRISE", env: "BITRISE_IO", pr: "BITRISE_PULL_REQUEST" }, { name: "Buddy", constant: "BUDDY", env: "BUDDY_WORKSPACE_ID", pr: "BUDDY_EXECUTION_PULL_REQUEST_ID" }, { name: "Buildkite", constant: "BUILDKITE", env: "BUILDKITE", pr: { env: "BUILDKITE_PULL_REQUEST", ne: "false" } }, { name: "CircleCI", constant: "CIRCLE", env: "CIRCLECI", pr: "CIRCLE_PULL_REQUEST" }, { name: "Cirrus CI", constant: "CIRRUS", env: "CIRRUS_CI", pr: "CIRRUS_PR" }, { name: "Codefresh", constant: "CODEFRESH", env: "CF_BUILD_ID", pr: { any: [ "CF_PULL_REQUEST_NUMBER", "CF_PULL_REQUEST_ID" ] } }, { name: "Codemagic", constant: "CODEMAGIC", env: "CM_BUILD_ID", pr: "CM_PULL_REQUEST" }, { name: "Codeship", constant: "CODESHIP", env: { CI_NAME: "codeship" } }, { name: "Drone", constant: "DRONE", env: "DRONE", pr: { DRONE_BUILD_EVENT: "pull_request" } }, { name: "dsari", constant: "DSARI", env: "DSARI" }, { name: "Expo Application Services", constant: "EAS", env: "EAS_BUILD" }, { name: "Gerrit", constant: "GERRIT", env: "GERRIT_PROJECT" }, { name: "GitHub Actions", constant: "GITHUB_ACTIONS", env: "GITHUB_ACTIONS", pr: { GITHUB_EVENT_NAME: "pull_request" } }, { name: "GitLab CI", constant: "GITLAB", env: "GITLAB_CI", pr: "CI_MERGE_REQUEST_ID" }, { name: "GoCD", constant: "GOCD", env: "GO_PIPELINE_LABEL" }, { name: "Google Cloud Build", constant: "GOOGLE_CLOUD_BUILD", env: "BUILDER_OUTPUT" }, { name: "Harness CI", constant: "HARNESS", env: "HARNESS_BUILD_ID" }, { name: "Heroku", constant: "HEROKU", env: { env: "NODE", includes: "/app/.heroku/node/bin/node" } }, { name: "Hudson", constant: "HUDSON", env: "HUDSON_URL" }, { name: "Jenkins", constant: "JENKINS", env: [ "JENKINS_URL", "BUILD_ID" ], pr: { any: [ "ghprbPullId", "CHANGE_ID" ] } }, { name: "LayerCI", constant: "LAYERCI", env: "LAYERCI", pr: "LAYERCI_PULL_REQUEST" }, { name: "Magnum CI", constant: "MAGNUM", env: "MAGNUM" }, { name: "Netlify CI", constant: "NETLIFY", env: "NETLIFY", pr: { env: "PULL_REQUEST", ne: "false" } }, { name: "Nevercode", constant: "NEVERCODE", env: "NEVERCODE", pr: { env: "NEVERCODE_PULL_REQUEST", ne: "false" } }, { name: "ReleaseHub", constant: "RELEASEHUB", env: "RELEASE_BUILD_ID" }, { name: "Render", constant: "RENDER", env: "RENDER", pr: { IS_PULL_REQUEST: "true" } }, { name: "Sail CI", constant: "SAIL", env: "SAILCI", pr: "SAIL_PULL_REQUEST_NUMBER" }, { name: "Screwdriver", constant: "SCREWDRIVER", env: "SCREWDRIVER", pr: { env: "SD_PULL_REQUEST", ne: "false" } }, { name: "Semaphore", constant: "SEMAPHORE", env: "SEMAPHORE", pr: "PULL_REQUEST_NUMBER" }, { name: "Shippable", constant: "SHIPPABLE", env: "SHIPPABLE", pr: { IS_PULL_REQUEST: "true" } }, { name: "Solano CI", constant: "SOLANO", env: "TDDIUM", pr: "TDDIUM_PR_ID" }, { name: "Sourcehut", constant: "SOURCEHUT", env: { CI_NAME: "sourcehut" } }, { name: "Strider CD", constant: "STRIDER", env: "STRIDER" }, { name: "TaskCluster", constant: "TASKCLUSTER", env: [ "TASK_ID", "RUN_ID" ] }, { name: "TeamCity", constant: "TEAMCITY", env: "TEAMCITY_VERSION" }, { name: "Travis CI", constant: "TRAVIS", env: "TRAVIS", pr: { env: "TRAVIS_PULL_REQUEST", ne: "false" } }, { name: "Vercel", constant: "VERCEL", env: { any: [ "NOW_BUILDER", "VERCEL" ] }, pr: "VERCEL_GIT_PULL_REQUEST_ID" }, { name: "Visual Studio App Center", constant: "APPCENTER", env: "APPCENTER_BUILD_ID" }, { name: "Woodpecker", constant: "WOODPECKER", env: { CI: "woodpecker" }, pr: { CI_BUILD_EVENT: "pull_request" } }, { name: "Xcode Cloud", constant: "XCODE_CLOUD", env: "CI_XCODE_PROJECT", pr: "CI_PULL_REQUEST_NUMBER" }, { name: "Xcode Server", constant: "XCODE_SERVER", env: "XCS" } ]; } }); // ../../node_modules/ink/node_modules/ci-info/index.js var require_ci_info = __commonJS({ "../../node_modules/ink/node_modules/ci-info/index.js"(exports) { "use strict"; init_esm_shims(); var vendors = require_vendors(); var env2 = process.env; Object.defineProperty(exports, "_vendors", { value: vendors.map(function(v) { return v.constant; }) }); exports.name = null; exports.isPR = null; vendors.forEach(function(vendor) { const envs = Array.isArray(vendor.env) ? vendor.env : [vendor.env]; const isCI = envs.every(function(obj) { return checkEnv(obj); }); exports[vendor.constant] = isCI; if (!isCI) { return; } exports.name = vendor.name; switch (typeof vendor.pr) { case "string": exports.isPR = !!env2[vendor.pr]; break; case "object": if ("env" in vendor.pr) { exports.isPR = vendor.pr.env in env2 && env2[vendor.pr.env] !== vendor.pr.ne; } else if ("any" in vendor.pr) { exports.isPR = vendor.pr.any.some(function(key) { return !!env2[key]; }); } else { exports.isPR = checkEnv(vendor.pr); } break; default: exports.isPR = null; } }); exports.isCI = !!(env2.CI !== "false" && // Bypass all checks if CI env is explicitly set to 'false' (env2.BUILD_ID || // Jenkins, Cloudbees env2.BUILD_NUMBER || // Jenkins, TeamCity env2.CI || // Travis CI, CircleCI, Cirrus CI, Gitlab CI, Appveyor, CodeShip, dsari env2.CI_APP_ID || // Appflow env2.CI_BUILD_ID || // Appflow env2.CI_BUILD_NUMBER || // Appflow env2.CI_NAME || // Codeship and others env2.CONTINUOUS_INTEGRATION || // Travis CI, Cirrus CI env2.RUN_ID || // TaskCluster, dsari exports.name || false)); function checkEnv(obj) { if (typeof obj === "string") return !!env2[obj]; if ("env" in obj) { return env2[obj.env] && env2[obj.env].includes(obj.includes); } if ("any" in obj) { return obj.any.some(function(k) { return !!env2[k]; }); } return Object.keys(obj).every(function(k) { return env2[k] === obj[k]; }); } } }); // ../../node_modules/ink/node_modules/is-ci/index.js var require_is_ci = __commonJS({ "../../node_modules/ink/node_modules/is-ci/index.js"(exports, module) { "use strict"; init_esm_shims(); module.exports = require_ci_info().isCI; } }); // ../../node_modules/signal-exit/signals.js var require_signals = __commonJS({ "../../node_modules/signal-exit/signals.js"(exports, module) { "use strict"; init_esm_shims(); module.exports = [ "SIGABRT", "SIGALRM", "SIGHUP", "SIGINT", "SIGTERM" ]; if (process.platform !== "win32") { module.exports.push( "SIGVTALRM", "SIGXCPU", "SIGXFSZ", "SIGUSR2", "SIGTRAP", "SIGSYS", "SIGQUIT", "SIGIOT" // should detect profiler and enable/disable accordingly. // see #21 // 'SIGPROF' ); } if (process.platform === "linux") { module.exports.push( "SIGIO", "SIGPOLL", "SIGPWR", "SIGSTKFLT", "SIGUNUSED" ); } } }); // ../../node_modules/signal-exit/index.js var require_signal_exit = __commonJS({ "../../node_modules/signal-exit/index.js"(exports, module) { "use strict"; init_esm_shims(); var process18 = global.process; var processOk = function(process19) { return process19 && typeof process19 === "object" && typeof process19.removeListener === "function" && typeof process19.emit === "function" && typeof process19.reallyExit === "function" && typeof process19.listeners === "function" && typeof process19.kill === "function" && typeof process19.pid === "number" && typeof process19.on === "function"; }; if (!processOk(process18)) { module.exports = function() { return function() { }; }; } else { assert = __require("assert"); signals = require_signals(); isWin = /^win/i.test(process18.platform); EE = __require("events"); if (typeof EE !== "function") { EE = EE.EventEmitter; } if (process18.__signal_exit_emitter__) { emitter = process18.__signal_exit_emitter__; } else { emitter = process18.__signal_exit_emitter__ = new EE(); emitter.count = 0; emitter.emitted = {}; } if (!emitter.infinite) { emitter.setMaxListeners(Infinity); emitter.infinite = true; } module.exports = function(cb, opts) { if (!processOk(global.process)) { return function() { }; } assert.equal(typeof cb, "function", "a callback must be provided for exit handler"); if (loaded === false) { load(); } var ev = "exit"; if (opts && opts.alwaysLast) { ev = "afterexit"; } var remove = function() { emitter.removeListener(ev, cb); if (emitter.listeners("exit").length === 0 && emitter.listeners("afterexit").length === 0) { unload(); } }; emitter.on(ev, cb); return remove; }; unload = function unload2() { if (!loaded || !processOk(global.process)) { return; } loaded = false; signals.forEach(function(sig) { try { process18.removeListener(sig, sigListeners[sig]); } catch (er) { } }); process18.emit = originalProcessEmit; process18.reallyExit = originalProcessReallyExit; emitter.count -= 1; }; module.exports.unload = unload; emit = function emit2(event, code, signal) { if (emitter.emitted[event]) { return; } emitter.emitted[event] = true; emitter.emit(event, code, signal); }; sigListeners = {}; signals.forEach(function(sig) { sigListeners[sig] = function listener() { if (!processOk(global.process)) { return; } var listeners = process18.listeners(sig); if (listeners.length === emitter.count) { unload(); emit("exit", null, sig); emit("afterexit", null, sig); if (isWin && sig === "SIGHUP") { sig = "SIGINT"; } process18.kill(process18.pid, sig); } }; }); module.exports.signals = function() { return signals; }; loaded = false; load = function load2() { if (loaded || !processOk(global.process)) { return; } loaded = true; emitter.count += 1; signals = signals.filter(function(sig) { try { process18.on(sig, sigListeners[sig]); return true; } catch (er) { return false; } }); process18.emit = processEmit; process18.reallyExit = processReallyExit; }; module.exports.load = load; originalProcessReallyExit = process18.reallyExit; processReallyExit = function processReallyExit2(code) { if (!processOk(global.process)) { return; } process18.exitCode = code || /* istanbul ignore next */ 0; emit("exit", process18.exitCode, null); emit("afterexit", process18.exitCode, null); originalProcessReallyExit.call(process18, process18.exitCode); }; originalProcessEmit = process18.emit; processEmit = function processEmit2(ev, arg) { if (ev === "exit" && processOk(global.process)) { if (arg !== void 0) { process18.exitCode = arg; } var ret = originalProcessEmit.apply(this, arguments); emit("exit", process18.exitCode, null); emit("afterexit", process18.exitCode, null); return ret; } else { return originalProcessEmit.apply(this, arguments); } }; } var assert; var signals; var isWin; var EE; var emitter; var unload; var emit; var sigListeners; var loaded; var load; var originalProcessReallyExit; var processReallyExit; var originalProcessEmit; var processEmit; } }); // ../../node_modules/react-reconciler/cjs/react-reconciler.production.min.js var require_react_reconciler_production_min = __commonJS({ "../../node_modules/react-reconciler/cjs/react-reconciler.production.min.js"(exports, module) { "use strict"; init_esm_shims(); module.exports = function $$$reconciler($$$hostConfig) { var exports2 = {}; "use strict"; var aa = require_react(), ba = require_scheduler(), ca = Object.assign; function m(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 da = aa.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, ea = Symbol.for("react.element"), fa = Symbol.for("react.portal"), ha = Symbol.for("react.fragment"), ia = Symbol.for("react.strict_mode"), ja = Symbol.for("react.profiler"), ka = Symbol.for("react.provider"), la = Symbol.for("react.context"), ma = Symbol.for("react.forward_ref"), na = Symbol.for("react.suspense"), oa = Symbol.for("react.suspense_list"), pa = Symbol.for("react.memo"), qa = Symbol.for("react.lazy"); Symbol.for("react.scope"); Symbol.for("react.debug_trace_mode"); var ra = Symbol.for("react.offscreen"); Symbol.for("react.legacy_hidden"); Symbol.for("react.cache"); Symbol.for("react.tracing_marker"); var sa = Symbol.iterator; function ta(a) { if (null === a || "object" !== typeof a) return null; a = sa && a[sa] || a["@@iterator"]; return "function" === typeof a ? a : null; } function ua(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 ha: return "Fragment"; case fa: return "Portal"; case ja: return "Profiler"; case ia: return "StrictMode"; case na: return "Suspense"; case oa: return "SuspenseList"; } if ("object" === typeof a) switch (a.$$typeof) { case la: return (a.displayName || "Context") + ".Consumer"; case ka: return (a._context.displayName || "Context") + ".Provider"; case ma: var b = a.render; a = a.displayName; a || (a = b.displayName || b.name || "", a = "" !== a ? "ForwardRef(" + a + ")" : "ForwardRef"); return a; case pa: return b = a.displayName || null, null !== b ? b : ua(a.type) || "Memo"; case qa: b = a._payload; a = a._init; try { return ua(a(b)); } catch (c) { } } return null; } function va(a) { var b = a.type; switch (a.tag) { case 24: return "Cache"; case 9: return (b.displayName || "Context") + ".Consumer"; case 10: return (b._context.displayName || "Context") + ".Provider"; case 18: return "DehydratedFragment"; case 11: return a = b.render, a = a.displayName || a.name || "", b.displayName || ("" !== a ? "ForwardRef(" + a + ")" : "ForwardRef"); case 7: return "Fragment"; case 5: return b; case 4: return "Portal"; case 3: return "Root"; case 6: return "Text"; case 16: return ua(b); case 8: return b === ia ? "StrictMode" : "Mode"; case 22: return "Offscreen"; case 12: return "Profiler"; case 21: return "Scope"; case 13: return "Suspense"; case 19: return "SuspenseList"; case 25: return "TracingMarker"; case 1: case 0: case 17: case 2: case 14: case 15: if ("function" === typeof b) return b.displayName || b.name || null; if ("string" === typeof b) return b; } return null; } function wa(a) { var b = a, c = a; if (a.alternate) for (; b.return; ) b = b.return; else { a = b; do b = a, 0 !== (b.flags & 4098) && (c = b.return), a = b.return; while (a); } return 3 === b.tag ? c : null; } function xa(a) { if (wa(a) !== a) throw Error(m(188)); } function ya(a) { var b = a.alternate; if (!b) { b = wa(a); if (null === b) throw Error(m(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 xa(e), a; if (f === d) return xa(e), b; f = f.sibling; } throw Error(m(188)); } if (c.return !== d.return) c = e, d = f; else { for (var g = false, h = e.child; h; ) { if (h === c) { g = true; c = e; d = f; break; } if (h === d) { g = true; d = e; c = f; break; } h = h.sibling; } if (!g) { for (h = f.child; h; ) { if (h === c) { g = true; c = f; d = e; break; } if (h === d) { g = true; d = f; c = e; break; } h = h.sibling; } if (!g) throw Error(m(189)); } } if (c.alternate !== d) throw Error(m(190)); } if (3 !== c.tag) throw Error(m(188)); return c.stateNode.current === c ? a : b; } function Aa(a) { a = ya(a); return null !== a ? Ba(a) : null; } function Ba(a) { if (5 === a.tag || 6 === a.tag) return a; for (a = a.child; null !== a; ) { var b = Ba(a); if (null !== b) return b; a = a.sibling; } return null; } function Ca(a) { if (5 === a.tag || 6 === a.tag) return a; for (a = a.child; null !== a; ) { if (4 !== a.tag) { var b = Ca(a); if (null !== b) return b; } a = a.sibling; } return null; } var Da = Array.isArray, Ea = $$$hostConfig.getPublicInstance, Fa = $$$hostConfig.getRootHostContext, Ga = $$$hostConfig.getChildHostContext, Ha = $$$hostConfig.prepareForCommit, Ia = $$$hostConfig.resetAfterCommit, Ja = $$$hostConfig.createInstance, Ka = $$$hostConfig.appendInitialChild, La = $$$hostConfig.finalizeInitialChildren, Ma = $$$hostConfig.prepareUpdate, Na = $$$hostConfig.shouldSetTextContent, Oa = $$$hostConfig.createTextInstance, Pa = $$$hostConfig.scheduleTimeout, Qa = $$$hostConfig.cancelTimeout, Ra = $$$hostConfig.noTimeout, Sa = $$$hostConfig.isPrimaryRenderer, Ta = $$$hostConfig.supportsMutation, Ua = $$$hostConfig.supportsPersistence, Va = $$$hostConfig.supportsHydration, Wa = $$$hostConfig.getInstanceFromNode, Xa = $$$hostConfig.preparePortalMount, Ya = $$$hostConfig.getCurrentEventPriority, Za = $$$hostConfig.detachDeletedInstance, $a = $$$hostConfig.supportsMicrotasks, ab = $$$hostConfig.scheduleMicrotask, bb = $$$hostConfig.supportsTestSelectors, cb = $$$hostConfig.findFiberRoot, db = $$$hostConfig.getBoundingRect, eb = $$$hostConfig.getTextContent, fb = $$$hostConfig.isHiddenSubtree, gb = $$$hostConfig.matchAccessibilityRole, hb = $$$hostConfig.setFocusIfFocusable, ib = $$$hostConfig.setupIntersectionObserver, jb = $$$hostConfig.appendChild, kb = $$$hostConfig.appendChildToContainer, lb = $$$hostConfig.commitTextUpdate, mb = $$$hostConfig.commitMount, nb = $$$hostConfig.commitUpdate, ob = $$$hostConfig.insertBefore, pb = $$$hostConfig.insertInContainerBefore, qb = $$$hostConfig.removeChild, rb = $$$hostConfig.removeChildFromContainer, sb = $$$hostConfig.resetTextContent, tb = $$$hostConfig.hideInstance, ub = $$$hostConfig.hideTextInstance, vb = $$$hostConfig.unhideInstance, wb = $$$hostConfig.unhideTextInstance, xb = $$$hostConfig.clearContainer, yb = $$$hostConfig.cloneInstance, zb = $$$hostConfig.createContainerChildSet, Ab = $$$hostConfig.appendChildToContainerChildSet, Bb = $$$hostConfig.finalizeContainerChildren, Cb = $$$hostConfig.replaceContainerChildren, Eb = $$$hostConfig.cloneHiddenInstance, Fb = $$$hostConfig.cloneHiddenTextInstance, Gb = $$$hostConfig.canHydrateInstance, Hb = $$$hostConfig.canHydrateTextInstance, Ib = $$$hostConfig.canHydrateSuspenseInstance, Jb = $$$hostConfig.isSuspenseInstancePending, Kb = $$$hostConfig.isSuspenseInstanceFallback, Lb = $$$hostConfig.getSuspenseInstanceFallbackErrorDetails, Mb = $$$hostConfig.registerSuspenseInstanceRetry, Nb = $$$hostConfig.getNextHydratableSibling, Ob = $$$hostConfig.getFirstHydratableChild, Pb = $$$hostConfig.getFirstHydratableChildWithinContainer, Qb = $$$hostConfig.getFirstHydratableChildWithinSuspenseInstance, Rb = $$$hostConfig.hydrateInstance, Sb = $$$hostConfig.hydrateTextInstance, Tb = $$$hostConfig.hydrateSuspenseInstance, Ub = $$$hostConfig.getNextHydratableInstanceAfterSuspenseInstance, Vb = $$$hostConfig.commitHydratedContainer, Wb = $$$hostConfig.commitHydratedSuspenseInstance, Xb = $$$hostConfig.clearSuspenseBoundary, Yb = $$$hostConfig.clearSuspenseBoundaryFromContainer, Zb = $$$hostConfig.shouldDeleteUnhydratedTailInstances, $b = $$$hostConfig.didNotMatchHydratedContainerTextInstance, ac = $$$hostConfig.didNotMatchHydratedTextInstance, bc; function cc(a) { if (void 0 === bc) try { throw Error(); } catch (c) { var b = c.stack.trim().match(/\n( *(at )?)/); bc = b && b[1] || ""; } return "\n" + bc + a; } var dc = false; function ec(a, b) { if (!a || dc) return ""; dc = true; 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 (l) { var d = l; } Reflect.construct(a, [], b); } else { try { b.call(); } catch (l) { d = l; } a.call(b.prototype); } else { try { throw Error(); } catch (l) { d = l; } a(); } } catch (l) { if (l && d && "string" === typeof l.stack) { for (var e = l.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]) { var k = "\n" + e[g].replace(" at new ", " at "); a.displayName && k.includes("<anonymous>") && (k = k.replace("<anonymous>", a.displayName)); return k; } while (1 <= g && 0 <= h); } break; } } } finally { dc = false, Error.prepareStackTrace = c; } return (a = a ? a.displayName || a.name : "") ? cc(a) : ""; } var fc = Object.prototype.hasOwnProperty, gc = [], hc = -1; function ic(a) { return { current: a }; } function q(a) { 0 > hc || (a.current = gc[hc], gc[hc] = null, hc--); } function v(a, b) { hc++; gc[hc] = a.current; a.current = b; } var jc = {}, x = ic(jc), z = ic(false), kc = jc; function lc(a, b) { var c = a.type.contextTypes; if (!c) return jc; 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 A(a) { a = a.childContextTypes; return null !== a && void 0 !== a; } function mc() { q(z); q(x); } function nc(a, b, c) { if (x.current !== jc) throw Error(m(168)); v(x, b); v(z, c); } function oc(a, b, c) { var d = a.stateNode; b = b.childContextTypes; if ("function" !== typeof d.getChildContext) return c; d = d.getChildContext(); for (var e in d) if (!(e in b)) throw Error(m(108, va(a) || "Unknown", e)); return ca({}, c, d); } function pc(a) { a = (a = a.stateNode) && a.__reactInternalMemoizedMergedChildContext || jc; kc = x.current; v(x, a); v(z, z.current); return true; } function rc(a, b, c) { var d = a.stateNode; if (!d) throw Error(m(169)); c ? (a = oc(a, b, kc), d.__reactInternalMemoizedMergedChildContext = a, q(z), q(x), v(x, a)) : q(z); v(z, c); } var tc = Math.clz32 ? Math.clz32 : sc, uc = Math.log, vc = Math.LN2; function sc(a) { a >>>= 0; return 0 === a ? 32 : 31 - (uc(a) / vc | 0) | 0; } var wc = 64, xc = 4194304; function yc(a) { switch (a & -a) { case 1: return 1; case 2: return 2; case 4: return 4; case 8: return 8; case 16: return 16; case 32: return 32; case 64: case 128: case 256: case 512: case 1024: case 2048: case 4096: case 8192: case 16384: case 32768: case 65536: case 131072: case 262144: case 524288: case 1048576: case 2097152: return a & 4194240; case 4194304: case 8388608: case 16777216: case 33554432: case 67108864: return a & 130023424; case 134217728: return 134217728; case 268435456: return 268435456; case 536870912: return 536870912; case 1073741824: return 1073741824; default: return a; } } function zc(a, b) { var c = a.pendingLanes; if (0 === c) return 0; var d = 0, e = a.suspendedLanes, f = a.pingedLanes, g = c & 268435455; if (0 !== g) { var h = g & ~e; 0 !== h ? d = yc(h) : (f &= g, 0 !== f && (d = yc(f))); } else g = c & ~e, 0 !== g ? d = yc(g) : 0 !== f && (d = yc(f)); if (0 === d) return 0; if (0 !== b && b !== d && 0 === (b & e) && (e = d & -d, f = b & -b, e >= f || 16 === e && 0 !== (f & 4194240))) return b; 0 !== (d & 4) && (d |= c & 16); b = a.entangledLanes; if (0 !== b) for (a = a.entanglements, b &= d; 0 < b; ) c = 31 - tc(b), e = 1 << c, d |= a[c], b &= ~e; return d; } function Ac(a, b) { switch (a) { case 1: case 2: case 4: return b + 250; case 8: case 16: case 32: case 64: case 128: case 256: case 512: case 1024: case 2048: case 4096: case 8192: case 16384: case 32768: case 65536: case 131072: case 262144: case 524288: case 1048576: case 2097152: return b + 5e3; case 4194304: case 8388608: case 16777216: case 33554432: case 67108864: return -1; case 134217728: case 268435456: case 536870912: case 1073741824: return -1; default: return -1; } } function Bc(a, b) { for (var c = a.suspendedLanes, d = a.pingedLanes, e = a.expirationTimes, f = a.pendingLanes; 0 < f; ) { var g = 31 - tc(f), h = 1 << g, k = e[g]; if (-1 === k) { if (0 === (h & c) || 0 !== (h & d)) e[g] = Ac(h, b); } else k <= b && (a.expiredLanes |= h); f &= ~h; } } function Cc(a) { a = a.pendingLanes & -1073741825; return 0 !== a ? a : a & 1073741824 ? 1073741824 : 0; } function Dc() { var a = wc; wc <<= 1; 0 === (wc & 4194240) && (wc = 64); return a; } function Ec(a) { for (var b = [], c = 0; 31 > c; c++) b.push(a); return b; } function Fc(a, b, c) { a.pendingLanes |= b; 536870912 !== b && (a.suspendedLanes = 0, a.pingedLanes = 0); a = a.eventTimes; b = 31 - tc(b); a[b] = c; } function Gc(a, b) { var c = a.pendingLanes & ~b; a.pendingLanes = b; a.suspendedLanes = 0; a.pingedLanes = 0; a.expiredLanes &= b; a.mutableReadLanes &= b; a.entangledLanes &= b; b = a.entanglements; var d = a.eventTimes; for (a = a.expirationTimes; 0 < c; ) { var e = 31 - tc(c), f = 1 << e; b[e] = 0; d[e] = -1; a[e] = -1; c &= ~f; } } function Hc(a, b) { var c = a.entangledLanes |= b; for (a = a.entanglements; c; ) { var d = 31 - tc(c), e = 1 << d; e & b | a[d] & b && (a[d] |= b); c &= ~e; } } var C = 0; function Ic(a) { a &= -a; return 1 < a ? 4 < a ? 0 !== (a & 268435455) ? 16 : 536870912 : 4 : 1; } var Jc = ba.unstable_scheduleCallback, Kc = ba.unstable_cancelCallback, Lc = ba.unstable_shouldYield, Mc = ba.unstable_requestPaint, D = ba.unstable_now, Nc = ba.unstable_ImmediatePriority, Oc = ba.unstable_UserBlockingPriority, Pc = ba.unstable_NormalPriority, Qc = ba.unstable_IdlePriority, Rc = null, Sc = null; function Tc(a) { if (Sc && "function" === typeof Sc.onCommitFiberRoot) try { Sc.onCommitFiberRoot(Rc, a, void 0, 128 === (a.current.flags & 128)); } catch (b) { } } function Uc(a, b) { return a === b && (0 !== a || 1 / a === 1 / b) || a !== a && b !== b; } var Vc = "function" === typeof Object.is ? Object.is : Uc, Wc = null, Xc = false, Yc = false; function Zc(a) { null === Wc ? Wc = [a] : Wc.push(a); } function $c(a) { Xc = true; Zc(a); } function ad() { if (!Yc && null !== Wc) { Yc = true; var a = 0, b = C; try { var c = Wc; for (C = 1; a < c.length; a++) { var d = c[a]; do d = d(true); while (null !== d); } Wc = null; Xc = false; } catch (e) { throw null !== Wc && (Wc = Wc.slice(a + 1)), Jc(Nc, ad), e; } finally { C = b, Yc = false; } } return null; } var bd = [], cd = 0, dd = null, ed = 0, fd = [], gd = 0, hd = null, id = 1, jd = ""; function kd(a, b) { bd[cd++] = ed; bd[cd++] = dd; dd = a; ed = b; } function ld(a, b, c) { fd[gd++] = id; fd[gd++] = jd; fd[gd++] = hd; hd = a; var d = id; a = jd; var e = 32 - tc(d) - 1; d &= ~(1 << e); c += 1; var f = 32 - tc(b) + e; if (30 < f) { var g = e - e % 5; f = (d & (1 << g) - 1).toString(32); d >>= g; e -= g; id = 1 << 32 - tc(b) + e | c << e | d; jd = f + a; } else id = 1 << f | c << e | d, jd = a; } function md(a) { null !== a.return && (kd(a, 1), ld(a, 1, 0)); } function nd(a) { for (; a === dd; ) dd = bd[--cd], bd[cd] = null, ed = bd[--cd], bd[cd] = null; for (; a === hd; ) hd = fd[--gd], fd[gd] = null, jd = fd[--gd], fd[gd] = null, id = fd[--gd], fd[gd] = null; } var od = null, pd = null, F = false, qd = false, rd = null; function sd(a, b) { var c = td(5, null, null, 0); c.elementType = "DELETED"; c.stateNode = b; c.return = a; b = a.deletions; null === b ? (a.deletions = [c], a.flags |= 16) : b.push(c); } function ud(a, b) { switch (a.tag) { case 5: return b = Gb(b, a.type, a.pendingProps), null !== b ? (a.stateNode = b, od = a, pd = Ob(b), true) : false; case 6: return b = Hb(b, a.pendingProps), null !== b ? (a.stateNode = b, od = a, pd = null, true) : false; case 13: b = Ib(b); if (null !== b) { var c = null !== hd ? { id, overflow: jd } : null; a.memoizedState = { dehydrated: b, treeContext: c, retryLane: 1073741824 }; c = td(18, null, null, 0); c.stateNode = b; c.return = a; a.child = c; od = a; pd = null; return true; } return false; default: return false; } } function vd(a) { return 0 !== (a.mode & 1) && 0 === (a.flags & 128); } function wd(a) { if (F) { var b = pd; if (b) { var c = b; if (!ud(a, b)) { if (vd(a)) throw Error(m(418)); b = Nb(c); var d = od; b && ud(a, b) ? sd(d, c) : (a.flags = a.flags & -4097 | 2, F = false, od = a); } } else { if (vd(a)) throw Error(m(418)); a.flags = a.flags & -4097 | 2; F = false; od = a; } } } function xd(a) { for (a = a.return; null !== a && 5 !== a.tag && 3 !== a.tag && 13 !== a.tag; ) a = a.return; od = a; } function yd(a) { if (!Va || a !== od) return false; if (!F) return xd(a), F = true, false; if (3 !== a.tag && (5 !== a.tag || Zb(a.type) && !Na(a.type, a.memoizedProps))) { var b = pd; if (b) { if (vd(a)) throw zd(), Error(m(418)); for (; b; ) sd(a, b), b = Nb(b); } } xd(a); if (13 === a.tag) { if (!Va) throw Error(m(316)); a = a.memoizedState; a = null !== a ? a.dehydrated : null; if (!a) throw Error(m(317)); pd = Ub(a); } else pd = od ? Nb(a.stateNode) : null; return true; } function zd() { for (var a = pd; a; ) a = Nb(a); } function Ad() { Va && (pd = od = null, qd = F = false); } function Bd(a) { null === rd ? rd = [a] : rd.push(a); } var Cd = da.ReactCurrentBatchConfig; function Dd(a, b) { if (Vc(a, b)) return true; if ("object" !== typeof a || null === a || "object" !== typeof b || null === b) return false; var c = Object.keys(a), d = Object.keys(b); if (c.length !== d.length) return false; for (d = 0; d < c.length; d++) { var e = c[d]; if (!fc.call(b, e) || !Vc(a[e], b[e])) return false; } return true; } function Ed(a) { switch (a.tag) { case 5: return cc(a.type); case 16: return cc("Lazy"); case 13: return cc("Suspense"); case 19: return cc("SuspenseList"); case 0: case 2: case 15: return a = ec(a.type, false), a; case 11: return a = ec(a.type.render, false), a; case 1: return a = ec(a.type, true), a; default: return ""; } } function Fd(a, b) { if (a && a.defaultProps) { b = ca({}, b); a = a.defaultProps; for (var c in a) void 0 === b[c] && (b[c] = a[c]); return b; } return b; } var Gd = ic(null), Hd = null, Id = null, Jd = null; function Kd() { Jd = Id = Hd = null; } function Ld(a, b, c) { Sa ? (v(Gd, b._currentValue), b._currentValue = c) : (v(Gd, b._currentValue2), b._currentValue2 = c); } function Md(a) { var b = Gd.current; q(Gd); Sa ? a._currentValue = b : a._currentValue2 = b; } function Nd(a, b, c) { for (; null !== a; ) { var d = a.alternate; (a.childLanes & b) !== b ? (a.childLanes |= b, null !== d && (d.childLanes |= b)) : null !== d && (d.childLanes & b) !== b && (d.childLanes |= b); if (a === c) break; a = a.return; } } function Od(a, b) { Hd = a; Jd = Id = null; a = a.dependencies; null !== a && null !== a.firstContext && (0 !== (a.lanes & b) && (G = true), a.firstContext = null); } function Pd(a) { var b = Sa ? a._currentValue : a._currentValue2; if (Jd !== a) if (a = { context: a, memoizedValue: b, next: null }, null === Id) { if (null === Hd) throw Error(m(308)); Id = a; Hd.dependencies = { lanes: 0, firstContext: a }; } else Id = Id.next = a; return b; } var Qd = null;