diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 18cde08..8730d2f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,8 +15,8 @@ jobs: strategy: matrix: os: [ubuntu-20.04] - python-version: ['3.8'] - toxenv: [quality, docs, django32, django40] + python-version: ['3.8', '3.11', '3.12'] + toxenv: [quality, docs, django40] steps: - uses: actions/checkout@v3 @@ -37,7 +37,7 @@ jobs: run: tox - name: Run coverage - if: matrix.python-version == '3.8' && matrix.toxenv == 'django32' + if: matrix.python-version == '3.11' && matrix.toxenv == 'django40' uses: codecov/codecov-action@v4 with: token: ${{ secrets.CODECOV_TOKEN }} diff --git a/Dockerfile b/Dockerfile index 68ed148..194f19b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,7 +2,7 @@ FROM openedx/xblock-sdk RUN mkdir -p /usr/local/src/xblock-accordion VOLUME ["/usr/local/src/xblock-accordion"] RUN apt-get update && apt-get install -y gettext -RUN echo "pip install -r /usr/local/src/xblock-accordion/requirements.txt" >> /usr/local/src/xblock-sdk/install_and_run_xblock.sh +RUN echo "pip install -r /usr/local/src/xblock-accordion/requirements/dev.txt" >> /usr/local/src/xblock-sdk/install_and_run_xblock.sh RUN echo "pip install -e /usr/local/src/xblock-accordion" >> /usr/local/src/xblock-sdk/install_and_run_xblock.sh RUN echo "cd /usr/local/src/xblock-accordion && make compile_translations && cd /usr/local/src/xblock-sdk" >> /usr/local/src/xblock-sdk/install_and_run_xblock.sh RUN echo "exec python /usr/local/src/xblock-sdk/manage.py \"\$@\"" >> /usr/local/src/xblock-sdk/install_and_run_xblock.sh diff --git a/Makefile b/Makefile index 3634e23..5376497 100644 --- a/Makefile +++ b/Makefile @@ -49,7 +49,7 @@ dev.build: docker build -t $(REPO_NAME)-dev $(CURDIR) dev.run: dev.clean dev.build ## Clean, build and run test image - docker run -p 8000:8000 -v $(CURDIR):/usr/local/src/$(REPO_NAME) --name $(REPO_NAME)-dev $(REPO_NAME)-dev + docker run -p 8200:8000 -v $(CURDIR):/usr/local/src/$(REPO_NAME) --name $(REPO_NAME)-dev $(REPO_NAME)-dev ## Localization targets diff --git a/accordion/__init__.py b/accordion/__init__.py index 24b005f..8bd8871 100644 --- a/accordion/__init__.py +++ b/accordion/__init__.py @@ -4,4 +4,4 @@ from .accordion import AccordionXBlock -__version__ = '0.1.0' +__version__ = "0.1.0" diff --git a/accordion/accordion.py b/accordion/accordion.py index 024d203..f5046e9 100644 --- a/accordion/accordion.py +++ b/accordion/accordion.py @@ -1,66 +1,75 @@ -"""TO-DO: Write a description of what this XBlock is.""" +""" +An XBlock that allows authors to create an accordion component for students +with multiple panels containing rich content. +""" -import pkg_resources from django.utils import translation +from importlib import resources from web_fragments.fragment import Fragment from xblock.core import XBlock -from xblock.fields import Integer, Scope -from xblockutils.resources import ResourceLoader +from xblock.fields import Scope, List, String, Dict class AccordionXBlock(XBlock): """ - TO-DO: document what your XBlock does. + Accordion XBlock """ - # Fields are defined on the class. You can access them in your code as - # self.. - - # TO-DO: delete count, and define your own fields. - count = Integer( - default=0, scope=Scope.user_state, - help="A simple counter, to show something happening", + display_name = String(default=translation.gettext_noop("Accordion")) + panels = List(help="Accordion entries", default=[], scope=Scope.content) + styling = Dict(help="Accordion styling", default=[], scope=Scope.content) + border_style = String( + help="Accordion border style", default="", scope=Scope.content ) def resource_string(self, path): """Handy helper for getting resources from our kit.""" - data = pkg_resources.resource_string(__name__, path) - return data.decode("utf8") + data = resources.files("accordion").joinpath(path).read_text("utf8") + return data - # TO-DO: change this view to display your data your own way. def student_view(self, context=None): """ Create primary view of the AccordionXBlock, shown to students when viewing courses. """ - if context: - pass # TO-DO: do something based on the context. - html = self.resource_string("static/html/accordion.html") - frag = Fragment(html.format(self=self)) - frag.add_css(self.resource_string("static/css/accordion.css")) - - # Add i18n js - statici18n_js_url = self._get_statici18n_js_url() - if statici18n_js_url: - frag.add_javascript_url(self.runtime.local_resource_url(self, statici18n_js_url)) - - frag.add_javascript(self.resource_string("static/js/src/accordion.js")) - frag.initialize_js('AccordionXBlock') + frag = Fragment() + frag.add_css(self.resource_string("public/style.css")) + frag.add_javascript(self.resource_string("static/student.js")) + frag.initialize_js( + "AccordionBlock", + { + "url": self.runtime.local_resource_url(self, "public/student-ui.js"), + "panels": self.panels, + "styling": self.styling, + }, + ) return frag - # TO-DO: change this handler to perform your own actions. You may need more - # than one handler, or you may not need any handlers at all. @XBlock.json_handler - def increment_count(self, data, suffix=''): + def studio_save(self, data, suffix=''): + panels = data.get('panels', None) + styling = data.get('styling', None) + if panels: + self.panels = panels + if styling: + self.styling = styling + + def studio_view(self, context=None): """ - Increments data. An example handler. + Create primary view of the AccordionXBlock, shown to students when viewing courses. """ - if suffix: - pass # TO-DO: Use the suffix when storing data. - # Just to show data coming in... - assert data['hello'] == 'world' - - self.count += 1 - return {"count": self.count} + html = self.resource_string("static/html/accordion.html") + frag = Fragment(html) + frag.add_javascript(self.resource_string("static/studio.js")) + frag.add_css(self.resource_string("public/style.css")) + frag.initialize_js( + "AccordionEditor", + { + "url": self.runtime.local_resource_url(self, "public/studio-ui.js"), + "panels": self.panels, + "styling": self.styling, + }, + ) + return frag # TO-DO: change this to create the scenarios you'd like to see in the # workbench while developing your XBlock. @@ -68,40 +77,25 @@ def increment_count(self, data, suffix=''): def workbench_scenarios(): """Create canned scenario for display in the workbench.""" return [ - ("AccordionXBlock", - """ - """), - ("Multiple AccordionXBlock", - """ + ( + "AccordionXBlock", + """ + """, + ), + ( + "Multiple AccordionXBlock", + """ - """), + """, + ), ] - @staticmethod - def _get_statici18n_js_url(): - """ - Return the Javascript translation file for the currently selected language, if any. - - Defaults to English if available. - """ - locale_code = translation.get_language() - if locale_code is None: - return None - text_js = 'public/js/translations/{locale_code}/text.js' - lang_code = locale_code.split('-')[0] - for code in (locale_code, lang_code, 'en'): - loader = ResourceLoader(__name__) - if pkg_resources.resource_exists( - loader.module_name, text_js.format(locale_code=code)): - return text_js.format(locale_code=code) - return None - @staticmethod def get_dummy(): """ Generate initial i18n with dummy method. """ - return translation.gettext_noop('Dummy') + return translation.gettext_noop("Dummy") diff --git a/accordion/public/student-ui.js b/accordion/public/student-ui.js new file mode 100644 index 0000000..822f3d8 --- /dev/null +++ b/accordion/public/student-ui.js @@ -0,0 +1,7510 @@ +function jo(e) { + return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e; +} +var ca = { exports: {} }, hr = {}; +/* +object-assign +(c) Sindre Sorhus +@license MIT +*/ +var Lu = Object.getOwnPropertySymbols, $c = Object.prototype.hasOwnProperty, bc = Object.prototype.propertyIsEnumerable; +function Mc(e) { + if (e == null) + throw new TypeError("Object.assign cannot be called with null or undefined"); + return Object(e); +} +function zc() { + try { + if (!Object.assign) + return !1; + var e = new String("abc"); + if (e[5] = "de", Object.getOwnPropertyNames(e)[0] === "5") + return !1; + for (var t = {}, n = 0; n < 10; n++) + t["_" + String.fromCharCode(n)] = n; + var r = Object.getOwnPropertyNames(t).map(function(i) { + return t[i]; + }); + if (r.join("") !== "0123456789") + return !1; + var o = {}; + return "abcdefghijklmnopqrst".split("").forEach(function(i) { + o[i] = i; + }), Object.keys(Object.assign({}, o)).join("") === "abcdefghijklmnopqrst"; + } catch { + return !1; + } +} +var da = zc() ? Object.assign : function(e, t) { + for (var n, r = Mc(e), o, i = 1; i < arguments.length; i++) { + n = Object(arguments[i]); + for (var l in n) + $c.call(n, l) && (r[l] = n[l]); + if (Lu) { + o = Lu(n); + for (var u = 0; u < o.length; u++) + bc.call(n, o[u]) && (r[o[u]] = n[o[u]]); + } + } + return r; +}, pa = { exports: {} }, b = {}; +/** @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 Ol = da, sn = 60103, ma = 60106; +b.Fragment = 60107; +b.StrictMode = 60108; +b.Profiler = 60114; +var ha = 60109, va = 60110, ya = 60112; +b.Suspense = 60113; +var ga = 60115, wa = 60116; +if (typeof Symbol == "function" && Symbol.for) { + var Ee = Symbol.for; + sn = Ee("react.element"), ma = Ee("react.portal"), b.Fragment = Ee("react.fragment"), b.StrictMode = Ee("react.strict_mode"), b.Profiler = Ee("react.profiler"), ha = Ee("react.provider"), va = Ee("react.context"), ya = Ee("react.forward_ref"), b.Suspense = Ee("react.suspense"), ga = Ee("react.memo"), wa = Ee("react.lazy"); +} +var $u = typeof Symbol == "function" && Symbol.iterator; +function Ic(e) { + return e === null || typeof e != "object" ? null : (e = $u && e[$u] || e["@@iterator"], typeof e == "function" ? e : null); +} +function vr(e) { + for (var t = "https://reactjs.org/docs/error-decoder.html?invariant=" + e, n = 1; n < arguments.length; n++) t += "&args[]=" + encodeURIComponent(arguments[n]); + return "Minified React error #" + e + "; visit " + t + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings."; +} +var Ea = { isMounted: function() { + return !1; +}, enqueueForceUpdate: function() { +}, enqueueReplaceState: function() { +}, enqueueSetState: function() { +} }, Oa = {}; +function an(e, t, n) { + this.props = e, this.context = t, this.refs = Oa, this.updater = n || Ea; +} +an.prototype.isReactComponent = {}; +an.prototype.setState = function(e, t) { + if (typeof e != "object" && typeof e != "function" && e != null) throw Error(vr(85)); + this.updater.enqueueSetState(this, e, t, "setState"); +}; +an.prototype.forceUpdate = function(e) { + this.updater.enqueueForceUpdate(this, e, "forceUpdate"); +}; +function Sa() { +} +Sa.prototype = an.prototype; +function Sl(e, t, n) { + this.props = e, this.context = t, this.refs = Oa, this.updater = n || Ea; +} +var xl = Sl.prototype = new Sa(); +xl.constructor = Sl; +Ol(xl, an.prototype); +xl.isPureReactComponent = !0; +var Cl = { current: null }, xa = Object.prototype.hasOwnProperty, Ca = { key: !0, ref: !0, __self: !0, __source: !0 }; +function Pa(e, t, n) { + var r, o = {}, i = null, l = null; + if (t != null) for (r in t.ref !== void 0 && (l = t.ref), t.key !== void 0 && (i = "" + t.key), t) xa.call(t, r) && !Ca.hasOwnProperty(r) && (o[r] = t[r]); + var u = arguments.length - 2; + if (u === 1) o.children = n; + else if (1 < u) { + for (var s = Array(u), a = 0; a < u; a++) s[a] = arguments[a + 2]; + o.children = s; + } + if (e && e.defaultProps) for (r in u = e.defaultProps, u) o[r] === void 0 && (o[r] = u[r]); + return { $$typeof: sn, type: e, key: i, ref: l, props: o, _owner: Cl.current }; +} +function Fc(e, t) { + return { $$typeof: sn, type: e.type, key: t, ref: e.ref, props: e.props, _owner: e._owner }; +} +function Pl(e) { + return typeof e == "object" && e !== null && e.$$typeof === sn; +} +function Uc(e) { + var t = { "=": "=0", ":": "=2" }; + return "$" + e.replace(/[=:]/g, function(n) { + return t[n]; + }); +} +var bu = /\/+/g; +function Qo(e, t) { + return typeof e == "object" && e !== null && e.key != null ? Uc("" + e.key) : t.toString(36); +} +function Ir(e, t, n, r, o) { + var i = typeof e; + (i === "undefined" || i === "boolean") && (e = null); + var l = !1; + if (e === null) l = !0; + else switch (i) { + case "string": + case "number": + l = !0; + break; + case "object": + switch (e.$$typeof) { + case sn: + case ma: + l = !0; + } + } + if (l) return l = e, o = o(l), e = r === "" ? "." + Qo(l, 0) : r, Array.isArray(o) ? (n = "", e != null && (n = e.replace(bu, "$&/") + "/"), Ir(o, t, n, "", function(a) { + return a; + })) : o != null && (Pl(o) && (o = Fc(o, n + (!o.key || l && l.key === o.key ? "" : ("" + o.key).replace(bu, "$&/") + "/") + e)), t.push(o)), 1; + if (l = 0, r = r === "" ? "." : r + ":", Array.isArray(e)) for (var u = 0; u < e.length; u++) { + i = e[u]; + var s = r + Qo(i, u); + l += Ir(i, t, n, s, o); + } + else if (s = Ic(e), typeof s == "function") for (e = s.call(e), u = 0; !(i = e.next()).done; ) i = i.value, s = r + Qo(i, u++), l += Ir(i, t, n, s, o); + else if (i === "object") throw t = "" + e, Error(vr(31, t === "[object Object]" ? "object with keys {" + Object.keys(e).join(", ") + "}" : t)); + return l; +} +function Cr(e, t, n) { + if (e == null) return e; + var r = [], o = 0; + return Ir(e, r, "", "", function(i) { + return t.call(n, i, o++); + }), r; +} +function Ac(e) { + if (e._status === -1) { + var t = e._result; + t = t(), e._status = 0, e._result = t, t.then(function(n) { + e._status === 0 && (n = n.default, e._status = 1, e._result = n); + }, function(n) { + e._status === 0 && (e._status = 2, e._result = n); + }); + } + if (e._status === 1) return e._result; + throw e._result; +} +var _a = { current: null }; +function ze() { + var e = _a.current; + if (e === null) throw Error(vr(321)); + return e; +} +var Vc = { ReactCurrentDispatcher: _a, ReactCurrentBatchConfig: { transition: 0 }, ReactCurrentOwner: Cl, IsSomeRendererActing: { current: !1 }, assign: Ol }; +b.Children = { map: Cr, forEach: function(e, t, n) { + Cr(e, function() { + t.apply(this, arguments); + }, n); +}, count: function(e) { + var t = 0; + return Cr(e, function() { + t++; + }), t; +}, toArray: function(e) { + return Cr(e, function(t) { + return t; + }) || []; +}, only: function(e) { + if (!Pl(e)) throw Error(vr(143)); + return e; +} }; +b.Component = an; +b.PureComponent = Sl; +b.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = Vc; +b.cloneElement = function(e, t, n) { + if (e == null) throw Error(vr(267, e)); + var r = Ol({}, e.props), o = e.key, i = e.ref, l = e._owner; + if (t != null) { + if (t.ref !== void 0 && (i = t.ref, l = Cl.current), t.key !== void 0 && (o = "" + t.key), e.type && e.type.defaultProps) var u = e.type.defaultProps; + for (s in t) xa.call(t, s) && !Ca.hasOwnProperty(s) && (r[s] = t[s] === void 0 && u !== void 0 ? u[s] : t[s]); + } + var s = arguments.length - 2; + if (s === 1) r.children = n; + else if (1 < s) { + u = Array(s); + for (var a = 0; a < s; a++) u[a] = arguments[a + 2]; + r.children = u; + } + return { + $$typeof: sn, + type: e.type, + key: o, + ref: i, + props: r, + _owner: l + }; +}; +b.createContext = function(e, t) { + return t === void 0 && (t = null), e = { $$typeof: va, _calculateChangedBits: t, _currentValue: e, _currentValue2: e, _threadCount: 0, Provider: null, Consumer: null }, e.Provider = { $$typeof: ha, _context: e }, e.Consumer = e; +}; +b.createElement = Pa; +b.createFactory = function(e) { + var t = Pa.bind(null, e); + return t.type = e, t; +}; +b.createRef = function() { + return { current: null }; +}; +b.forwardRef = function(e) { + return { $$typeof: ya, render: e }; +}; +b.isValidElement = Pl; +b.lazy = function(e) { + return { $$typeof: wa, _payload: { _status: -1, _result: e }, _init: Ac }; +}; +b.memo = function(e, t) { + return { $$typeof: ga, type: e, compare: t === void 0 ? null : t }; +}; +b.useCallback = function(e, t) { + return ze().useCallback(e, t); +}; +b.useContext = function(e, t) { + return ze().useContext(e, t); +}; +b.useDebugValue = function() { +}; +b.useEffect = function(e, t) { + return ze().useEffect(e, t); +}; +b.useImperativeHandle = function(e, t, n) { + return ze().useImperativeHandle(e, t, n); +}; +b.useLayoutEffect = function(e, t) { + return ze().useLayoutEffect(e, t); +}; +b.useMemo = function(e, t) { + return ze().useMemo(e, t); +}; +b.useReducer = function(e, t, n) { + return ze().useReducer(e, t, n); +}; +b.useRef = function(e) { + return ze().useRef(e); +}; +b.useState = function(e) { + return ze().useState(e); +}; +b.version = "17.0.2"; +pa.exports = b; +var $ = pa.exports; +const S = /* @__PURE__ */ jo($); +/** @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. + */ +var Bc = $, ka = 60103; +hr.Fragment = 60107; +if (typeof Symbol == "function" && Symbol.for) { + var Mu = Symbol.for; + ka = Mu("react.element"), hr.Fragment = Mu("react.fragment"); +} +var Wc = Bc.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, Hc = Object.prototype.hasOwnProperty, Kc = { key: !0, ref: !0, __self: !0, __source: !0 }; +function ja(e, t, n) { + var r, o = {}, i = null, l = null; + n !== void 0 && (i = "" + n), t.key !== void 0 && (i = "" + t.key), t.ref !== void 0 && (l = t.ref); + for (r in t) Hc.call(t, r) && !Kc.hasOwnProperty(r) && (o[r] = t[r]); + if (e && e.defaultProps) for (r in t = e.defaultProps, t) o[r] === void 0 && (o[r] = t[r]); + return { $$typeof: ka, type: e, key: i, ref: l, props: o, _owner: Wc.current }; +} +hr.jsx = ja; +hr.jsxs = ja; +ca.exports = hr; +var oe = ca.exports, Ta = { exports: {} }, we = {}, Na = { exports: {} }, Ra = {}; +/** @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. + */ +(function(e) { + var t, n, r, o; + if (typeof performance == "object" && typeof performance.now == "function") { + var i = performance; + e.unstable_now = function() { + return i.now(); + }; + } else { + var l = Date, u = l.now(); + e.unstable_now = function() { + return l.now() - u; + }; + } + if (typeof window > "u" || typeof MessageChannel != "function") { + var s = null, a = null, p = function() { + if (s !== null) try { + var x = e.unstable_now(); + s(!0, x), s = null; + } catch (R) { + throw setTimeout(p, 0), R; + } + }; + t = function(x) { + s !== null ? setTimeout(t, 0, x) : (s = x, setTimeout(p, 0)); + }, n = function(x, R) { + a = setTimeout(x, R); + }, r = function() { + clearTimeout(a); + }, e.unstable_shouldYield = function() { + return !1; + }, o = e.unstable_forceFrameRate = function() { + }; + } else { + var w = window.setTimeout, m = window.clearTimeout; + if (typeof console < "u") { + var E = window.cancelAnimationFrame; + typeof window.requestAnimationFrame != "function" && console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"), typeof E != "function" && 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 C = !1, _ = null, c = -1, f = 5, d = 0; + e.unstable_shouldYield = function() { + return e.unstable_now() >= d; + }, o = function() { + }, e.unstable_forceFrameRate = function(x) { + 0 > x || 125 < x ? console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported") : f = 0 < x ? Math.floor(1e3 / x) : 5; + }; + var v = new MessageChannel(), h = v.port2; + v.port1.onmessage = function() { + if (_ !== null) { + var x = e.unstable_now(); + d = x + f; + try { + _(!0, x) ? h.postMessage(null) : (C = !1, _ = null); + } catch (R) { + throw h.postMessage(null), R; + } + } else C = !1; + }, t = function(x) { + _ = x, C || (C = !0, h.postMessage(null)); + }, n = function(x, R) { + c = w(function() { + x(e.unstable_now()); + }, R); + }, r = function() { + m(c), c = -1; + }; + } + function j(x, R) { + var L = x.length; + x.push(R); + e: for (; ; ) { + var V = L - 1 >>> 1, Y = x[V]; + if (Y !== void 0 && 0 < D(Y, R)) x[V] = R, x[L] = Y, L = V; + else break e; + } + } + function O(x) { + return x = x[0], x === void 0 ? null : x; + } + function T(x) { + var R = x[0]; + if (R !== void 0) { + var L = x.pop(); + if (L !== R) { + x[0] = L; + e: for (var V = 0, Y = x.length; V < Y; ) { + var ft = 2 * (V + 1) - 1, ct = x[ft], vn = ft + 1, Nt = x[vn]; + if (ct !== void 0 && 0 > D(ct, L)) Nt !== void 0 && 0 > D(Nt, ct) ? (x[V] = Nt, x[vn] = L, V = vn) : (x[V] = ct, x[ft] = L, V = ft); + else if (Nt !== void 0 && 0 > D(Nt, L)) x[V] = Nt, x[vn] = L, V = vn; + else break e; + } + } + return R; + } + return null; + } + function D(x, R) { + var L = x.sortIndex - R.sortIndex; + return L !== 0 ? L : x.id - R.id; + } + var k = [], Q = [], Bo = 1, pe = null, q = 3, xr = !1, at = !1, hn = !1; + function Wo(x) { + for (var R = O(Q); R !== null; ) { + if (R.callback === null) T(Q); + else if (R.startTime <= x) T(Q), R.sortIndex = R.expirationTime, j(k, R); + else break; + R = O(Q); + } + } + function Ho(x) { + if (hn = !1, Wo(x), !at) if (O(k) !== null) at = !0, t(Ko); + else { + var R = O(Q); + R !== null && n(Ho, R.startTime - x); + } + } + function Ko(x, R) { + at = !1, hn && (hn = !1, r()), xr = !0; + var L = q; + try { + for (Wo(R), pe = O(k); pe !== null && (!(pe.expirationTime > R) || x && !e.unstable_shouldYield()); ) { + var V = pe.callback; + if (typeof V == "function") { + pe.callback = null, q = pe.priorityLevel; + var Y = V(pe.expirationTime <= R); + R = e.unstable_now(), typeof Y == "function" ? pe.callback = Y : pe === O(k) && T(k), Wo(R); + } else T(k); + pe = O(k); + } + if (pe !== null) var ft = !0; + else { + var ct = O(Q); + ct !== null && n(Ho, ct.startTime - R), ft = !1; + } + return ft; + } finally { + pe = null, q = L, xr = !1; + } + } + var Lc = o; + e.unstable_IdlePriority = 5, e.unstable_ImmediatePriority = 1, e.unstable_LowPriority = 4, e.unstable_NormalPriority = 3, e.unstable_Profiling = null, e.unstable_UserBlockingPriority = 2, e.unstable_cancelCallback = function(x) { + x.callback = null; + }, e.unstable_continueExecution = function() { + at || xr || (at = !0, t(Ko)); + }, e.unstable_getCurrentPriorityLevel = function() { + return q; + }, e.unstable_getFirstCallbackNode = function() { + return O(k); + }, e.unstable_next = function(x) { + switch (q) { + case 1: + case 2: + case 3: + var R = 3; + break; + default: + R = q; + } + var L = q; + q = R; + try { + return x(); + } finally { + q = L; + } + }, e.unstable_pauseExecution = function() { + }, e.unstable_requestPaint = Lc, e.unstable_runWithPriority = function(x, R) { + switch (x) { + case 1: + case 2: + case 3: + case 4: + case 5: + break; + default: + x = 3; + } + var L = q; + q = x; + try { + return R(); + } finally { + q = L; + } + }, e.unstable_scheduleCallback = function(x, R, L) { + var V = e.unstable_now(); + switch (typeof L == "object" && L !== null ? (L = L.delay, L = typeof L == "number" && 0 < L ? V + L : V) : L = V, x) { + case 1: + var Y = -1; + break; + case 2: + Y = 250; + break; + case 5: + Y = 1073741823; + break; + case 4: + Y = 1e4; + break; + default: + Y = 5e3; + } + return Y = L + Y, x = { id: Bo++, callback: R, priorityLevel: x, startTime: L, expirationTime: Y, sortIndex: -1 }, L > V ? (x.sortIndex = L, j(Q, x), O(k) === null && x === O(Q) && (hn ? r() : hn = !0, n(Ho, L - V))) : (x.sortIndex = Y, j(k, x), at || xr || (at = !0, t(Ko))), x; + }, e.unstable_wrapCallback = function(x) { + var R = q; + return function() { + var L = q; + q = R; + try { + return x.apply(this, arguments); + } finally { + q = L; + } + }; + }; +})(Ra); +Na.exports = Ra; +var Qc = Na.exports; +/** @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 To = $, F = da, K = Qc; +function g(e) { + for (var t = "https://reactjs.org/docs/error-decoder.html?invariant=" + e, n = 1; n < arguments.length; n++) t += "&args[]=" + encodeURIComponent(arguments[n]); + return "Minified React error #" + e + "; visit " + t + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings."; +} +if (!To) throw Error(g(227)); +var Da = /* @__PURE__ */ new Set(), Yn = {}; +function _t(e, t) { + qt(e, t), qt(e + "Capture", t); +} +function qt(e, t) { + for (Yn[e] = t, e = 0; e < t.length; e++) Da.add(t[e]); +} +var Me = !(typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u"), Yc = /^[: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]*$/, zu = Object.prototype.hasOwnProperty, Iu = {}, Fu = {}; +function Xc(e) { + return zu.call(Fu, e) ? !0 : zu.call(Iu, e) ? !1 : Yc.test(e) ? Fu[e] = !0 : (Iu[e] = !0, !1); +} +function Gc(e, t, n, r) { + if (n !== null && n.type === 0) return !1; + switch (typeof t) { + case "function": + case "symbol": + return !0; + case "boolean": + return r ? !1 : n !== null ? !n.acceptsBooleans : (e = e.toLowerCase().slice(0, 5), e !== "data-" && e !== "aria-"); + default: + return !1; + } +} +function Zc(e, t, n, r) { + if (t === null || typeof t > "u" || Gc(e, t, n, r)) return !0; + if (r) return !1; + if (n !== null) switch (n.type) { + case 3: + return !t; + case 4: + return t === !1; + case 5: + return isNaN(t); + case 6: + return isNaN(t) || 1 > t; + } + return !1; +} +function le(e, t, n, r, o, i, l) { + this.acceptsBooleans = t === 2 || t === 3 || t === 4, this.attributeName = r, this.attributeNamespace = o, this.mustUseProperty = n, this.propertyName = e, this.type = t, this.sanitizeURL = i, this.removeEmptyString = l; +} +var J = {}; +"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e) { + J[e] = new le(e, 0, !1, e, null, !1, !1); +}); +[["acceptCharset", "accept-charset"], ["className", "class"], ["htmlFor", "for"], ["httpEquiv", "http-equiv"]].forEach(function(e) { + var t = e[0]; + J[t] = new le(t, 1, !1, e[1], null, !1, !1); +}); +["contentEditable", "draggable", "spellCheck", "value"].forEach(function(e) { + J[e] = new le(e, 2, !1, e.toLowerCase(), null, !1, !1); +}); +["autoReverse", "externalResourcesRequired", "focusable", "preserveAlpha"].forEach(function(e) { + J[e] = new le(e, 2, !1, e, 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(e) { + J[e] = new le(e, 3, !1, e.toLowerCase(), null, !1, !1); +}); +["checked", "multiple", "muted", "selected"].forEach(function(e) { + J[e] = new le(e, 3, !0, e, null, !1, !1); +}); +["capture", "download"].forEach(function(e) { + J[e] = new le(e, 4, !1, e, null, !1, !1); +}); +["cols", "rows", "size", "span"].forEach(function(e) { + J[e] = new le(e, 6, !1, e, null, !1, !1); +}); +["rowSpan", "start"].forEach(function(e) { + J[e] = new le(e, 5, !1, e.toLowerCase(), null, !1, !1); +}); +var _l = /[\-:]([a-z])/g; +function kl(e) { + return e[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(e) { + var t = e.replace( + _l, + kl + ); + J[t] = new le(t, 1, !1, e, null, !1, !1); +}); +"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e) { + var t = e.replace(_l, kl); + J[t] = new le(t, 1, !1, e, "http://www.w3.org/1999/xlink", !1, !1); +}); +["xml:base", "xml:lang", "xml:space"].forEach(function(e) { + var t = e.replace(_l, kl); + J[t] = new le(t, 1, !1, e, "http://www.w3.org/XML/1998/namespace", !1, !1); +}); +["tabIndex", "crossOrigin"].forEach(function(e) { + J[e] = new le(e, 1, !1, e.toLowerCase(), null, !1, !1); +}); +J.xlinkHref = new le("xlinkHref", 1, !1, "xlink:href", "http://www.w3.org/1999/xlink", !0, !1); +["src", "href", "action", "formAction"].forEach(function(e) { + J[e] = new le(e, 1, !1, e.toLowerCase(), null, !0, !0); +}); +function jl(e, t, n, r) { + var o = J.hasOwnProperty(t) ? J[t] : null, i = o !== null ? o.type === 0 : r ? !1 : !(!(2 < t.length) || t[0] !== "o" && t[0] !== "O" || t[1] !== "n" && t[1] !== "N"); + i || (Zc(t, n, o, r) && (n = null), r || o === null ? Xc(t) && (n === null ? e.removeAttribute(t) : e.setAttribute(t, "" + n)) : o.mustUseProperty ? e[o.propertyName] = n === null ? o.type === 3 ? !1 : "" : n : (t = o.attributeName, r = o.attributeNamespace, n === null ? e.removeAttribute(t) : (o = o.type, n = o === 3 || o === 4 && n === !0 ? "" : "" + n, r ? e.setAttributeNS(r, t, n) : e.setAttribute(t, n)))); +} +var kt = To.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, Tn = 60103, ht = 60106, Ve = 60107, Tl = 60108, Mn = 60114, Nl = 60109, Rl = 60110, No = 60112, zn = 60113, Gr = 60120, Ro = 60115, Dl = 60116, Ll = 60121, $l = 60128, La = 60129, bl = 60130, Oi = 60131; +if (typeof Symbol == "function" && Symbol.for) { + var H = Symbol.for; + Tn = H("react.element"), ht = H("react.portal"), Ve = H("react.fragment"), Tl = H("react.strict_mode"), Mn = H("react.profiler"), Nl = H("react.provider"), Rl = H("react.context"), No = H("react.forward_ref"), zn = H("react.suspense"), Gr = H("react.suspense_list"), Ro = H("react.memo"), Dl = H("react.lazy"), Ll = H("react.block"), H("react.scope"), $l = H("react.opaque.id"), La = H("react.debug_trace_mode"), bl = H("react.offscreen"), Oi = H("react.legacy_hidden"); +} +var Uu = typeof Symbol == "function" && Symbol.iterator; +function yn(e) { + return e === null || typeof e != "object" ? null : (e = Uu && e[Uu] || e["@@iterator"], typeof e == "function" ? e : null); +} +var Yo; +function Nn(e) { + if (Yo === void 0) try { + throw Error(); + } catch (n) { + var t = n.stack.trim().match(/\n( *(at )?)/); + Yo = t && t[1] || ""; + } + return ` +` + Yo + e; +} +var Xo = !1; +function Pr(e, t) { + if (!e || Xo) return ""; + Xo = !0; + var n = Error.prepareStackTrace; + Error.prepareStackTrace = void 0; + try { + if (t) if (t = function() { + throw Error(); + }, Object.defineProperty(t.prototype, "props", { set: function() { + throw Error(); + } }), typeof Reflect == "object" && Reflect.construct) { + try { + Reflect.construct(t, []); + } catch (s) { + var r = s; + } + Reflect.construct(e, [], t); + } else { + try { + t.call(); + } catch (s) { + r = s; + } + e.call(t.prototype); + } + else { + try { + throw Error(); + } catch (s) { + r = s; + } + e(); + } + } catch (s) { + if (s && r && typeof s.stack == "string") { + for (var o = s.stack.split(` +`), i = r.stack.split(` +`), l = o.length - 1, u = i.length - 1; 1 <= l && 0 <= u && o[l] !== i[u]; ) u--; + for (; 1 <= l && 0 <= u; l--, u--) if (o[l] !== i[u]) { + if (l !== 1 || u !== 1) + do + if (l--, u--, 0 > u || o[l] !== i[u]) return ` +` + o[l].replace(" at new ", " at "); + while (1 <= l && 0 <= u); + break; + } + } + } finally { + Xo = !1, Error.prepareStackTrace = n; + } + return (e = e ? e.displayName || e.name : "") ? Nn(e) : ""; +} +function Jc(e) { + switch (e.tag) { + case 5: + return Nn(e.type); + case 16: + return Nn("Lazy"); + case 13: + return Nn("Suspense"); + case 19: + return Nn("SuspenseList"); + case 0: + case 2: + case 15: + return e = Pr(e.type, !1), e; + case 11: + return e = Pr(e.type.render, !1), e; + case 22: + return e = Pr(e.type._render, !1), e; + case 1: + return e = Pr(e.type, !0), e; + default: + return ""; + } +} +function Bt(e) { + if (e == null) return null; + if (typeof e == "function") return e.displayName || e.name || null; + if (typeof e == "string") return e; + switch (e) { + case Ve: + return "Fragment"; + case ht: + return "Portal"; + case Mn: + return "Profiler"; + case Tl: + return "StrictMode"; + case zn: + return "Suspense"; + case Gr: + return "SuspenseList"; + } + if (typeof e == "object") switch (e.$$typeof) { + case Rl: + return (e.displayName || "Context") + ".Consumer"; + case Nl: + return (e._context.displayName || "Context") + ".Provider"; + case No: + var t = e.render; + return t = t.displayName || t.name || "", e.displayName || (t !== "" ? "ForwardRef(" + t + ")" : "ForwardRef"); + case Ro: + return Bt(e.type); + case Ll: + return Bt(e._render); + case Dl: + t = e._payload, e = e._init; + try { + return Bt(e(t)); + } catch { + } + } + return null; +} +function et(e) { + switch (typeof e) { + case "boolean": + case "number": + case "object": + case "string": + case "undefined": + return e; + default: + return ""; + } +} +function $a(e) { + var t = e.type; + return (e = e.nodeName) && e.toLowerCase() === "input" && (t === "checkbox" || t === "radio"); +} +function qc(e) { + var t = $a(e) ? "checked" : "value", n = Object.getOwnPropertyDescriptor(e.constructor.prototype, t), r = "" + e[t]; + if (!e.hasOwnProperty(t) && typeof n < "u" && typeof n.get == "function" && typeof n.set == "function") { + var o = n.get, i = n.set; + return Object.defineProperty(e, t, { configurable: !0, get: function() { + return o.call(this); + }, set: function(l) { + r = "" + l, i.call(this, l); + } }), Object.defineProperty(e, t, { enumerable: n.enumerable }), { getValue: function() { + return r; + }, setValue: function(l) { + r = "" + l; + }, stopTracking: function() { + e._valueTracker = null, delete e[t]; + } }; + } +} +function _r(e) { + e._valueTracker || (e._valueTracker = qc(e)); +} +function ba(e) { + if (!e) return !1; + var t = e._valueTracker; + if (!t) return !0; + var n = t.getValue(), r = ""; + return e && (r = $a(e) ? e.checked ? "true" : "false" : e.value), e = r, e !== n ? (t.setValue(e), !0) : !1; +} +function Zr(e) { + if (e = e || (typeof document < "u" ? document : void 0), typeof e > "u") return null; + try { + return e.activeElement || e.body; + } catch { + return e.body; + } +} +function Si(e, t) { + var n = t.checked; + return F({}, t, { defaultChecked: void 0, defaultValue: void 0, value: void 0, checked: n ?? e._wrapperState.initialChecked }); +} +function Au(e, t) { + var n = t.defaultValue == null ? "" : t.defaultValue, r = t.checked != null ? t.checked : t.defaultChecked; + n = et(t.value != null ? t.value : n), e._wrapperState = { initialChecked: r, initialValue: n, controlled: t.type === "checkbox" || t.type === "radio" ? t.checked != null : t.value != null }; +} +function Ma(e, t) { + t = t.checked, t != null && jl(e, "checked", t, !1); +} +function xi(e, t) { + Ma(e, t); + var n = et(t.value), r = t.type; + if (n != null) r === "number" ? (n === 0 && e.value === "" || e.value != n) && (e.value = "" + n) : e.value !== "" + n && (e.value = "" + n); + else if (r === "submit" || r === "reset") { + e.removeAttribute("value"); + return; + } + t.hasOwnProperty("value") ? Ci(e, t.type, n) : t.hasOwnProperty("defaultValue") && Ci(e, t.type, et(t.defaultValue)), t.checked == null && t.defaultChecked != null && (e.defaultChecked = !!t.defaultChecked); +} +function Vu(e, t, n) { + if (t.hasOwnProperty("value") || t.hasOwnProperty("defaultValue")) { + var r = t.type; + if (!(r !== "submit" && r !== "reset" || t.value !== void 0 && t.value !== null)) return; + t = "" + e._wrapperState.initialValue, n || t === e.value || (e.value = t), e.defaultValue = t; + } + n = e.name, n !== "" && (e.name = ""), e.defaultChecked = !!e._wrapperState.initialChecked, n !== "" && (e.name = n); +} +function Ci(e, t, n) { + (t !== "number" || Zr(e.ownerDocument) !== e) && (n == null ? e.defaultValue = "" + e._wrapperState.initialValue : e.defaultValue !== "" + n && (e.defaultValue = "" + n)); +} +function ed(e) { + var t = ""; + return To.Children.forEach(e, function(n) { + n != null && (t += n); + }), t; +} +function Pi(e, t) { + return e = F({ children: void 0 }, t), (t = ed(t.children)) && (e.children = t), e; +} +function Wt(e, t, n, r) { + if (e = e.options, t) { + t = {}; + for (var o = 0; o < n.length; o++) t["$" + n[o]] = !0; + for (n = 0; n < e.length; n++) o = t.hasOwnProperty("$" + e[n].value), e[n].selected !== o && (e[n].selected = o), o && r && (e[n].defaultSelected = !0); + } else { + for (n = "" + et(n), t = null, o = 0; o < e.length; o++) { + if (e[o].value === n) { + e[o].selected = !0, r && (e[o].defaultSelected = !0); + return; + } + t !== null || e[o].disabled || (t = e[o]); + } + t !== null && (t.selected = !0); + } +} +function _i(e, t) { + if (t.dangerouslySetInnerHTML != null) throw Error(g(91)); + return F({}, t, { value: void 0, defaultValue: void 0, children: "" + e._wrapperState.initialValue }); +} +function Bu(e, t) { + var n = t.value; + if (n == null) { + if (n = t.children, t = t.defaultValue, n != null) { + if (t != null) throw Error(g(92)); + if (Array.isArray(n)) { + if (!(1 >= n.length)) throw Error(g(93)); + n = n[0]; + } + t = n; + } + t == null && (t = ""), n = t; + } + e._wrapperState = { initialValue: et(n) }; +} +function za(e, t) { + var n = et(t.value), r = et(t.defaultValue); + n != null && (n = "" + n, n !== e.value && (e.value = n), t.defaultValue == null && e.defaultValue !== n && (e.defaultValue = n)), r != null && (e.defaultValue = "" + r); +} +function Wu(e) { + var t = e.textContent; + t === e._wrapperState.initialValue && t !== "" && t !== null && (e.value = t); +} +var ki = { html: "http://www.w3.org/1999/xhtml", mathml: "http://www.w3.org/1998/Math/MathML", svg: "http://www.w3.org/2000/svg" }; +function Ia(e) { + switch (e) { + 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 ji(e, t) { + return e == null || e === "http://www.w3.org/1999/xhtml" ? Ia(t) : e === "http://www.w3.org/2000/svg" && t === "foreignObject" ? "http://www.w3.org/1999/xhtml" : e; +} +var kr, Fa = function(e) { + return typeof MSApp < "u" && MSApp.execUnsafeLocalFunction ? function(t, n, r, o) { + MSApp.execUnsafeLocalFunction(function() { + return e(t, n, r, o); + }); + } : e; +}(function(e, t) { + if (e.namespaceURI !== ki.svg || "innerHTML" in e) e.innerHTML = t; + else { + for (kr = kr || document.createElement("div"), kr.innerHTML = "" + t.valueOf().toString() + "", t = kr.firstChild; e.firstChild; ) e.removeChild(e.firstChild); + for (; t.firstChild; ) e.appendChild(t.firstChild); + } +}); +function Xn(e, t) { + if (t) { + var n = e.firstChild; + if (n && n === e.lastChild && n.nodeType === 3) { + n.nodeValue = t; + return; + } + } + e.textContent = t; +} +var In = { + 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 +}, td = ["Webkit", "ms", "Moz", "O"]; +Object.keys(In).forEach(function(e) { + td.forEach(function(t) { + t = t + e.charAt(0).toUpperCase() + e.substring(1), In[t] = In[e]; + }); +}); +function Ua(e, t, n) { + return t == null || typeof t == "boolean" || t === "" ? "" : n || typeof t != "number" || t === 0 || In.hasOwnProperty(e) && In[e] ? ("" + t).trim() : t + "px"; +} +function Aa(e, t) { + e = e.style; + for (var n in t) if (t.hasOwnProperty(n)) { + var r = n.indexOf("--") === 0, o = Ua(n, t[n], r); + n === "float" && (n = "cssFloat"), r ? e.setProperty(n, o) : e[n] = o; + } +} +var nd = F({ 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 Ti(e, t) { + if (t) { + if (nd[e] && (t.children != null || t.dangerouslySetInnerHTML != null)) throw Error(g(137, e)); + if (t.dangerouslySetInnerHTML != null) { + if (t.children != null) throw Error(g(60)); + if (!(typeof t.dangerouslySetInnerHTML == "object" && "__html" in t.dangerouslySetInnerHTML)) throw Error(g(61)); + } + if (t.style != null && typeof t.style != "object") throw Error(g(62)); + } +} +function Ni(e, t) { + if (e.indexOf("-") === -1) return typeof t.is == "string"; + switch (e) { + 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 Ml(e) { + return e = e.target || e.srcElement || window, e.correspondingUseElement && (e = e.correspondingUseElement), e.nodeType === 3 ? e.parentNode : e; +} +var Ri = null, Ht = null, Kt = null; +function Hu(e) { + if (e = gr(e)) { + if (typeof Ri != "function") throw Error(g(280)); + var t = e.stateNode; + t && (t = zo(t), Ri(e.stateNode, e.type, t)); + } +} +function Va(e) { + Ht ? Kt ? Kt.push(e) : Kt = [e] : Ht = e; +} +function Ba() { + if (Ht) { + var e = Ht, t = Kt; + if (Kt = Ht = null, Hu(e), t) for (e = 0; e < t.length; e++) Hu(t[e]); + } +} +function zl(e, t) { + return e(t); +} +function Wa(e, t, n, r, o) { + return e(t, n, r, o); +} +function Il() { +} +var Ha = zl, vt = !1, Go = !1; +function Fl() { + (Ht !== null || Kt !== null) && (Il(), Ba()); +} +function rd(e, t, n) { + if (Go) return e(t, n); + Go = !0; + try { + return Ha(e, t, n); + } finally { + Go = !1, Fl(); + } +} +function Gn(e, t) { + var n = e.stateNode; + if (n === null) return null; + var r = zo(n); + if (r === null) return null; + n = r[t]; + e: switch (t) { + case "onClick": + case "onClickCapture": + case "onDoubleClick": + case "onDoubleClickCapture": + case "onMouseDown": + case "onMouseDownCapture": + case "onMouseMove": + case "onMouseMoveCapture": + case "onMouseUp": + case "onMouseUpCapture": + case "onMouseEnter": + (r = !r.disabled) || (e = e.type, r = !(e === "button" || e === "input" || e === "select" || e === "textarea")), e = !r; + break e; + default: + e = !1; + } + if (e) return null; + if (n && typeof n != "function") throw Error(g(231, t, typeof n)); + return n; +} +var Di = !1; +if (Me) try { + var gn = {}; + Object.defineProperty(gn, "passive", { get: function() { + Di = !0; + } }), window.addEventListener("test", gn, gn), window.removeEventListener("test", gn, gn); +} catch { + Di = !1; +} +function od(e, t, n, r, o, i, l, u, s) { + var a = Array.prototype.slice.call(arguments, 3); + try { + t.apply(n, a); + } catch (p) { + this.onError(p); + } +} +var Fn = !1, Jr = null, qr = !1, Li = null, id = { onError: function(e) { + Fn = !0, Jr = e; +} }; +function ld(e, t, n, r, o, i, l, u, s) { + Fn = !1, Jr = null, od.apply(id, arguments); +} +function ud(e, t, n, r, o, i, l, u, s) { + if (ld.apply(this, arguments), Fn) { + if (Fn) { + var a = Jr; + Fn = !1, Jr = null; + } else throw Error(g(198)); + qr || (qr = !0, Li = a); + } +} +function jt(e) { + var t = e, n = e; + if (e.alternate) for (; t.return; ) t = t.return; + else { + e = t; + do + t = e, t.flags & 1026 && (n = t.return), e = t.return; + while (e); + } + return t.tag === 3 ? n : null; +} +function Ka(e) { + if (e.tag === 13) { + var t = e.memoizedState; + if (t === null && (e = e.alternate, e !== null && (t = e.memoizedState)), t !== null) return t.dehydrated; + } + return null; +} +function Ku(e) { + if (jt(e) !== e) throw Error(g(188)); +} +function sd(e) { + var t = e.alternate; + if (!t) { + if (t = jt(e), t === null) throw Error(g(188)); + return t !== e ? null : e; + } + for (var n = e, r = t; ; ) { + var o = n.return; + if (o === null) break; + var i = o.alternate; + if (i === null) { + if (r = o.return, r !== null) { + n = r; + continue; + } + break; + } + if (o.child === i.child) { + for (i = o.child; i; ) { + if (i === n) return Ku(o), e; + if (i === r) return Ku(o), t; + i = i.sibling; + } + throw Error(g(188)); + } + if (n.return !== r.return) n = o, r = i; + else { + for (var l = !1, u = o.child; u; ) { + if (u === n) { + l = !0, n = o, r = i; + break; + } + if (u === r) { + l = !0, r = o, n = i; + break; + } + u = u.sibling; + } + if (!l) { + for (u = i.child; u; ) { + if (u === n) { + l = !0, n = i, r = o; + break; + } + if (u === r) { + l = !0, r = i, n = o; + break; + } + u = u.sibling; + } + if (!l) throw Error(g(189)); + } + } + if (n.alternate !== r) throw Error(g(190)); + } + if (n.tag !== 3) throw Error(g(188)); + return n.stateNode.current === n ? e : t; +} +function Qa(e) { + if (e = sd(e), !e) return null; + for (var t = e; ; ) { + if (t.tag === 5 || t.tag === 6) return t; + if (t.child) t.child.return = t, t = t.child; + else { + if (t === e) break; + for (; !t.sibling; ) { + if (!t.return || t.return === e) return null; + t = t.return; + } + t.sibling.return = t.return, t = t.sibling; + } + } + return null; +} +function Qu(e, t) { + for (var n = e.alternate; t !== null; ) { + if (t === e || t === n) return !0; + t = t.return; + } + return !1; +} +var Ya, Ul, Xa, Ga, $i = !1, Pe = [], Ke = null, Qe = null, Ye = null, Zn = /* @__PURE__ */ new Map(), Jn = /* @__PURE__ */ new Map(), wn = [], Yu = "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 bi(e, t, n, r, o) { + return { blockedOn: e, domEventName: t, eventSystemFlags: n | 16, nativeEvent: o, targetContainers: [r] }; +} +function Xu(e, t) { + switch (e) { + case "focusin": + case "focusout": + Ke = null; + break; + case "dragenter": + case "dragleave": + Qe = null; + break; + case "mouseover": + case "mouseout": + Ye = null; + break; + case "pointerover": + case "pointerout": + Zn.delete(t.pointerId); + break; + case "gotpointercapture": + case "lostpointercapture": + Jn.delete(t.pointerId); + } +} +function En(e, t, n, r, o, i) { + return e === null || e.nativeEvent !== i ? (e = bi(t, n, r, o, i), t !== null && (t = gr(t), t !== null && Ul(t)), e) : (e.eventSystemFlags |= r, t = e.targetContainers, o !== null && t.indexOf(o) === -1 && t.push(o), e); +} +function ad(e, t, n, r, o) { + switch (t) { + case "focusin": + return Ke = En(Ke, e, t, n, r, o), !0; + case "dragenter": + return Qe = En(Qe, e, t, n, r, o), !0; + case "mouseover": + return Ye = En(Ye, e, t, n, r, o), !0; + case "pointerover": + var i = o.pointerId; + return Zn.set(i, En(Zn.get(i) || null, e, t, n, r, o)), !0; + case "gotpointercapture": + return i = o.pointerId, Jn.set(i, En(Jn.get(i) || null, e, t, n, r, o)), !0; + } + return !1; +} +function fd(e) { + var t = yt(e.target); + if (t !== null) { + var n = jt(t); + if (n !== null) { + if (t = n.tag, t === 13) { + if (t = Ka(n), t !== null) { + e.blockedOn = t, Ga(e.lanePriority, function() { + K.unstable_runWithPriority(e.priority, function() { + Xa(n); + }); + }); + return; + } + } else if (t === 3 && n.stateNode.hydrate) { + e.blockedOn = n.tag === 3 ? n.stateNode.containerInfo : null; + return; + } + } + } + e.blockedOn = null; +} +function Fr(e) { + if (e.blockedOn !== null) return !1; + for (var t = e.targetContainers; 0 < t.length; ) { + var n = Wl(e.domEventName, e.eventSystemFlags, t[0], e.nativeEvent); + if (n !== null) return t = gr(n), t !== null && Ul(t), e.blockedOn = n, !1; + t.shift(); + } + return !0; +} +function Gu(e, t, n) { + Fr(e) && n.delete(t); +} +function cd() { + for ($i = !1; 0 < Pe.length; ) { + var e = Pe[0]; + if (e.blockedOn !== null) { + e = gr(e.blockedOn), e !== null && Ya(e); + break; + } + for (var t = e.targetContainers; 0 < t.length; ) { + var n = Wl(e.domEventName, e.eventSystemFlags, t[0], e.nativeEvent); + if (n !== null) { + e.blockedOn = n; + break; + } + t.shift(); + } + e.blockedOn === null && Pe.shift(); + } + Ke !== null && Fr(Ke) && (Ke = null), Qe !== null && Fr(Qe) && (Qe = null), Ye !== null && Fr(Ye) && (Ye = null), Zn.forEach(Gu), Jn.forEach(Gu); +} +function On(e, t) { + e.blockedOn === t && (e.blockedOn = null, $i || ($i = !0, K.unstable_scheduleCallback(K.unstable_NormalPriority, cd))); +} +function Za(e) { + function t(o) { + return On(o, e); + } + if (0 < Pe.length) { + On(Pe[0], e); + for (var n = 1; n < Pe.length; n++) { + var r = Pe[n]; + r.blockedOn === e && (r.blockedOn = null); + } + } + for (Ke !== null && On(Ke, e), Qe !== null && On(Qe, e), Ye !== null && On(Ye, e), Zn.forEach(t), Jn.forEach(t), n = 0; n < wn.length; n++) r = wn[n], r.blockedOn === e && (r.blockedOn = null); + for (; 0 < wn.length && (n = wn[0], n.blockedOn === null); ) fd(n), n.blockedOn === null && wn.shift(); +} +function jr(e, t) { + var n = {}; + return n[e.toLowerCase()] = t.toLowerCase(), n["Webkit" + e] = "webkit" + t, n["Moz" + e] = "moz" + t, n; +} +var zt = { animationend: jr("Animation", "AnimationEnd"), animationiteration: jr("Animation", "AnimationIteration"), animationstart: jr("Animation", "AnimationStart"), transitionend: jr("Transition", "TransitionEnd") }, Zo = {}, Ja = {}; +Me && (Ja = document.createElement("div").style, "AnimationEvent" in window || (delete zt.animationend.animation, delete zt.animationiteration.animation, delete zt.animationstart.animation), "TransitionEvent" in window || delete zt.transitionend.transition); +function Do(e) { + if (Zo[e]) return Zo[e]; + if (!zt[e]) return e; + var t = zt[e], n; + for (n in t) if (t.hasOwnProperty(n) && n in Ja) return Zo[e] = t[n]; + return e; +} +var qa = Do("animationend"), ef = Do("animationiteration"), tf = Do("animationstart"), nf = Do("transitionend"), rf = /* @__PURE__ */ new Map(), Al = /* @__PURE__ */ new Map(), dd = [ + "abort", + "abort", + qa, + "animationEnd", + ef, + "animationIteration", + tf, + "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", + nf, + "transitionEnd", + "waiting", + "waiting" +]; +function Vl(e, t) { + for (var n = 0; n < e.length; n += 2) { + var r = e[n], o = e[n + 1]; + o = "on" + (o[0].toUpperCase() + o.slice(1)), Al.set(r, t), rf.set(r, o), _t(o, [r]); + } +} +var pd = K.unstable_now; +pd(); +var M = 8; +function $t(e) { + if (1 & e) return M = 15, 1; + if (2 & e) return M = 14, 2; + if (4 & e) return M = 13, 4; + var t = 24 & e; + return t !== 0 ? (M = 12, t) : e & 32 ? (M = 11, 32) : (t = 192 & e, t !== 0 ? (M = 10, t) : e & 256 ? (M = 9, 256) : (t = 3584 & e, t !== 0 ? (M = 8, t) : e & 4096 ? (M = 7, 4096) : (t = 4186112 & e, t !== 0 ? (M = 6, t) : (t = 62914560 & e, t !== 0 ? (M = 5, t) : e & 67108864 ? (M = 4, 67108864) : e & 134217728 ? (M = 3, 134217728) : (t = 805306368 & e, t !== 0 ? (M = 2, t) : 1073741824 & e ? (M = 1, 1073741824) : (M = 8, e)))))); +} +function md(e) { + switch (e) { + case 99: + return 15; + case 98: + return 10; + case 97: + case 96: + return 8; + case 95: + return 2; + default: + return 0; + } +} +function hd(e) { + switch (e) { + 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(g(358, e)); + } +} +function qn(e, t) { + var n = e.pendingLanes; + if (n === 0) return M = 0; + var r = 0, o = 0, i = e.expiredLanes, l = e.suspendedLanes, u = e.pingedLanes; + if (i !== 0) r = i, o = M = 15; + else if (i = n & 134217727, i !== 0) { + var s = i & ~l; + s !== 0 ? (r = $t(s), o = M) : (u &= i, u !== 0 && (r = $t(u), o = M)); + } else i = n & ~l, i !== 0 ? (r = $t(i), o = M) : u !== 0 && (r = $t(u), o = M); + if (r === 0) return 0; + if (r = 31 - tt(r), r = n & ((0 > r ? 0 : 1 << r) << 1) - 1, t !== 0 && t !== r && !(t & l)) { + if ($t(t), o <= M) return t; + M = o; + } + if (t = e.entangledLanes, t !== 0) for (e = e.entanglements, t &= r; 0 < t; ) n = 31 - tt(t), o = 1 << n, r |= e[n], t &= ~o; + return r; +} +function of(e) { + return e = e.pendingLanes & -1073741825, e !== 0 ? e : e & 1073741824 ? 1073741824 : 0; +} +function eo(e, t) { + switch (e) { + case 15: + return 1; + case 14: + return 2; + case 12: + return e = bt(24 & ~t), e === 0 ? eo(10, t) : e; + case 10: + return e = bt(192 & ~t), e === 0 ? eo(8, t) : e; + case 8: + return e = bt(3584 & ~t), e === 0 && (e = bt(4186112 & ~t), e === 0 && (e = 512)), e; + case 2: + return t = bt(805306368 & ~t), t === 0 && (t = 268435456), t; + } + throw Error(g(358, e)); +} +function bt(e) { + return e & -e; +} +function Jo(e) { + for (var t = [], n = 0; 31 > n; n++) t.push(e); + return t; +} +function Lo(e, t, n) { + e.pendingLanes |= t; + var r = t - 1; + e.suspendedLanes &= r, e.pingedLanes &= r, e = e.eventTimes, t = 31 - tt(t), e[t] = n; +} +var tt = Math.clz32 ? Math.clz32 : gd, vd = Math.log, yd = Math.LN2; +function gd(e) { + return e === 0 ? 32 : 31 - (vd(e) / yd | 0) | 0; +} +var wd = K.unstable_UserBlockingPriority, Ed = K.unstable_runWithPriority, Ur = !0; +function Od(e, t, n, r) { + vt || Il(); + var o = Bl, i = vt; + vt = !0; + try { + Wa(o, e, t, n, r); + } finally { + (vt = i) || Fl(); + } +} +function Sd(e, t, n, r) { + Ed(wd, Bl.bind(null, e, t, n, r)); +} +function Bl(e, t, n, r) { + if (Ur) { + var o; + if ((o = (t & 4) === 0) && 0 < Pe.length && -1 < Yu.indexOf(e)) e = bi(null, e, t, n, r), Pe.push(e); + else { + var i = Wl(e, t, n, r); + if (i === null) o && Xu(e, r); + else { + if (o) { + if (-1 < Yu.indexOf(e)) { + e = bi(i, e, t, n, r), Pe.push(e); + return; + } + if (ad(i, e, t, n, r)) return; + Xu(e, r); + } + yf(e, t, r, null, n); + } + } + } +} +function Wl(e, t, n, r) { + var o = Ml(r); + if (o = yt(o), o !== null) { + var i = jt(o); + if (i === null) o = null; + else { + var l = i.tag; + if (l === 13) { + if (o = Ka(i), o !== null) return o; + o = null; + } else if (l === 3) { + if (i.stateNode.hydrate) return i.tag === 3 ? i.stateNode.containerInfo : null; + o = null; + } else i !== o && (o = null); + } + } + return yf(e, t, r, o, n), null; +} +var Be = null, Hl = null, Ar = null; +function lf() { + if (Ar) return Ar; + var e, t = Hl, n = t.length, r, o = "value" in Be ? Be.value : Be.textContent, i = o.length; + for (e = 0; e < n && t[e] === o[e]; e++) ; + var l = n - e; + for (r = 1; r <= l && t[n - r] === o[i - r]; r++) ; + return Ar = o.slice(e, 1 < r ? 1 - r : void 0); +} +function Vr(e) { + var t = e.keyCode; + return "charCode" in e ? (e = e.charCode, e === 0 && t === 13 && (e = 13)) : e = t, e === 10 && (e = 13), 32 <= e || e === 13 ? e : 0; +} +function Tr() { + return !0; +} +function Zu() { + return !1; +} +function de(e) { + function t(n, r, o, i, l) { + this._reactName = n, this._targetInst = o, this.type = r, this.nativeEvent = i, this.target = l, this.currentTarget = null; + for (var u in e) e.hasOwnProperty(u) && (n = e[u], this[u] = n ? n(i) : i[u]); + return this.isDefaultPrevented = (i.defaultPrevented != null ? i.defaultPrevented : i.returnValue === !1) ? Tr : Zu, this.isPropagationStopped = Zu, this; + } + return F(t.prototype, { preventDefault: function() { + this.defaultPrevented = !0; + var n = this.nativeEvent; + n && (n.preventDefault ? n.preventDefault() : typeof n.returnValue != "unknown" && (n.returnValue = !1), this.isDefaultPrevented = Tr); + }, stopPropagation: function() { + var n = this.nativeEvent; + n && (n.stopPropagation ? n.stopPropagation() : typeof n.cancelBubble != "unknown" && (n.cancelBubble = !0), this.isPropagationStopped = Tr); + }, persist: function() { + }, isPersistent: Tr }), t; +} +var fn = { eventPhase: 0, bubbles: 0, cancelable: 0, timeStamp: function(e) { + return e.timeStamp || Date.now(); +}, defaultPrevented: 0, isTrusted: 0 }, Kl = de(fn), yr = F({}, fn, { view: 0, detail: 0 }), xd = de(yr), qo, ei, Sn, $o = F({}, yr, { screenX: 0, screenY: 0, clientX: 0, clientY: 0, pageX: 0, pageY: 0, ctrlKey: 0, shiftKey: 0, altKey: 0, metaKey: 0, getModifierState: Ql, button: 0, buttons: 0, relatedTarget: function(e) { + return e.relatedTarget === void 0 ? e.fromElement === e.srcElement ? e.toElement : e.fromElement : e.relatedTarget; +}, movementX: function(e) { + return "movementX" in e ? e.movementX : (e !== Sn && (Sn && e.type === "mousemove" ? (qo = e.screenX - Sn.screenX, ei = e.screenY - Sn.screenY) : ei = qo = 0, Sn = e), qo); +}, movementY: function(e) { + return "movementY" in e ? e.movementY : ei; +} }), Ju = de($o), Cd = F({}, $o, { dataTransfer: 0 }), Pd = de(Cd), _d = F({}, yr, { relatedTarget: 0 }), ti = de(_d), kd = F({}, fn, { animationName: 0, elapsedTime: 0, pseudoElement: 0 }), jd = de(kd), Td = F({}, fn, { clipboardData: function(e) { + return "clipboardData" in e ? e.clipboardData : window.clipboardData; +} }), Nd = de(Td), Rd = F({}, fn, { data: 0 }), qu = de(Rd), Dd = { + Esc: "Escape", + Spacebar: " ", + Left: "ArrowLeft", + Up: "ArrowUp", + Right: "ArrowRight", + Down: "ArrowDown", + Del: "Delete", + Win: "OS", + Menu: "ContextMenu", + Apps: "ContextMenu", + Scroll: "ScrollLock", + MozPrintableKey: "Unidentified" +}, Ld = { + 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" +}, $d = { Alt: "altKey", Control: "ctrlKey", Meta: "metaKey", Shift: "shiftKey" }; +function bd(e) { + var t = this.nativeEvent; + return t.getModifierState ? t.getModifierState(e) : (e = $d[e]) ? !!t[e] : !1; +} +function Ql() { + return bd; +} +var Md = F({}, yr, { key: function(e) { + if (e.key) { + var t = Dd[e.key] || e.key; + if (t !== "Unidentified") return t; + } + return e.type === "keypress" ? (e = Vr(e), e === 13 ? "Enter" : String.fromCharCode(e)) : e.type === "keydown" || e.type === "keyup" ? Ld[e.keyCode] || "Unidentified" : ""; +}, code: 0, location: 0, ctrlKey: 0, shiftKey: 0, altKey: 0, metaKey: 0, repeat: 0, locale: 0, getModifierState: Ql, charCode: function(e) { + return e.type === "keypress" ? Vr(e) : 0; +}, keyCode: function(e) { + return e.type === "keydown" || e.type === "keyup" ? e.keyCode : 0; +}, which: function(e) { + return e.type === "keypress" ? Vr(e) : e.type === "keydown" || e.type === "keyup" ? e.keyCode : 0; +} }), zd = de(Md), Id = F({}, $o, { pointerId: 0, width: 0, height: 0, pressure: 0, tangentialPressure: 0, tiltX: 0, tiltY: 0, twist: 0, pointerType: 0, isPrimary: 0 }), es = de(Id), Fd = F({}, yr, { touches: 0, targetTouches: 0, changedTouches: 0, altKey: 0, metaKey: 0, ctrlKey: 0, shiftKey: 0, getModifierState: Ql }), Ud = de(Fd), Ad = F({}, fn, { propertyName: 0, elapsedTime: 0, pseudoElement: 0 }), Vd = de(Ad), Bd = F({}, $o, { + deltaX: function(e) { + return "deltaX" in e ? e.deltaX : "wheelDeltaX" in e ? -e.wheelDeltaX : 0; + }, + deltaY: function(e) { + return "deltaY" in e ? e.deltaY : "wheelDeltaY" in e ? -e.wheelDeltaY : "wheelDelta" in e ? -e.wheelDelta : 0; + }, + deltaZ: 0, + deltaMode: 0 +}), Wd = de(Bd), Hd = [9, 13, 27, 32], Yl = Me && "CompositionEvent" in window, Un = null; +Me && "documentMode" in document && (Un = document.documentMode); +var Kd = Me && "TextEvent" in window && !Un, uf = Me && (!Yl || Un && 8 < Un && 11 >= Un), ts = " ", ns = !1; +function sf(e, t) { + switch (e) { + case "keyup": + return Hd.indexOf(t.keyCode) !== -1; + case "keydown": + return t.keyCode !== 229; + case "keypress": + case "mousedown": + case "focusout": + return !0; + default: + return !1; + } +} +function af(e) { + return e = e.detail, typeof e == "object" && "data" in e ? e.data : null; +} +var It = !1; +function Qd(e, t) { + switch (e) { + case "compositionend": + return af(t); + case "keypress": + return t.which !== 32 ? null : (ns = !0, ts); + case "textInput": + return e = t.data, e === ts && ns ? null : e; + default: + return null; + } +} +function Yd(e, t) { + if (It) return e === "compositionend" || !Yl && sf(e, t) ? (e = lf(), Ar = Hl = Be = null, It = !1, e) : null; + switch (e) { + case "paste": + return null; + case "keypress": + if (!(t.ctrlKey || t.altKey || t.metaKey) || t.ctrlKey && t.altKey) { + if (t.char && 1 < t.char.length) return t.char; + if (t.which) return String.fromCharCode(t.which); + } + return null; + case "compositionend": + return uf && t.locale !== "ko" ? null : t.data; + default: + return null; + } +} +var Xd = { 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 rs(e) { + var t = e && e.nodeName && e.nodeName.toLowerCase(); + return t === "input" ? !!Xd[e.type] : t === "textarea"; +} +function ff(e, t, n, r) { + Va(r), t = to(t, "onChange"), 0 < t.length && (n = new Kl("onChange", "change", null, n, r), e.push({ event: n, listeners: t })); +} +var An = null, er = null; +function Gd(e) { + mf(e, 0); +} +function bo(e) { + var t = Ut(e); + if (ba(t)) return e; +} +function Zd(e, t) { + if (e === "change") return t; +} +var cf = !1; +if (Me) { + var ni; + if (Me) { + var ri = "oninput" in document; + if (!ri) { + var os = document.createElement("div"); + os.setAttribute("oninput", "return;"), ri = typeof os.oninput == "function"; + } + ni = ri; + } else ni = !1; + cf = ni && (!document.documentMode || 9 < document.documentMode); +} +function is() { + An && (An.detachEvent("onpropertychange", df), er = An = null); +} +function df(e) { + if (e.propertyName === "value" && bo(er)) { + var t = []; + if (ff(t, er, e, Ml(e)), e = Gd, vt) e(t); + else { + vt = !0; + try { + zl(e, t); + } finally { + vt = !1, Fl(); + } + } + } +} +function Jd(e, t, n) { + e === "focusin" ? (is(), An = t, er = n, An.attachEvent("onpropertychange", df)) : e === "focusout" && is(); +} +function qd(e) { + if (e === "selectionchange" || e === "keyup" || e === "keydown") return bo(er); +} +function ep(e, t) { + if (e === "click") return bo(t); +} +function tp(e, t) { + if (e === "input" || e === "change") return bo(t); +} +function np(e, t) { + return e === t && (e !== 0 || 1 / e === 1 / t) || e !== e && t !== t; +} +var me = typeof Object.is == "function" ? Object.is : np, rp = Object.prototype.hasOwnProperty; +function tr(e, t) { + if (me(e, t)) return !0; + if (typeof e != "object" || e === null || typeof t != "object" || t === null) return !1; + var n = Object.keys(e), r = Object.keys(t); + if (n.length !== r.length) return !1; + for (r = 0; r < n.length; r++) if (!rp.call(t, n[r]) || !me(e[n[r]], t[n[r]])) return !1; + return !0; +} +function ls(e) { + for (; e && e.firstChild; ) e = e.firstChild; + return e; +} +function us(e, t) { + var n = ls(e); + e = 0; + for (var r; n; ) { + if (n.nodeType === 3) { + if (r = e + n.textContent.length, e <= t && r >= t) return { node: n, offset: t - e }; + e = r; + } + e: { + for (; n; ) { + if (n.nextSibling) { + n = n.nextSibling; + break e; + } + n = n.parentNode; + } + n = void 0; + } + n = ls(n); + } +} +function pf(e, t) { + return e && t ? e === t ? !0 : e && e.nodeType === 3 ? !1 : t && t.nodeType === 3 ? pf(e, t.parentNode) : "contains" in e ? e.contains(t) : e.compareDocumentPosition ? !!(e.compareDocumentPosition(t) & 16) : !1 : !1; +} +function ss() { + for (var e = window, t = Zr(); t instanceof e.HTMLIFrameElement; ) { + try { + var n = typeof t.contentWindow.location.href == "string"; + } catch { + n = !1; + } + if (n) e = t.contentWindow; + else break; + t = Zr(e.document); + } + return t; +} +function Mi(e) { + var t = e && e.nodeName && e.nodeName.toLowerCase(); + return t && (t === "input" && (e.type === "text" || e.type === "search" || e.type === "tel" || e.type === "url" || e.type === "password") || t === "textarea" || e.contentEditable === "true"); +} +var op = Me && "documentMode" in document && 11 >= document.documentMode, Ft = null, zi = null, Vn = null, Ii = !1; +function as(e, t, n) { + var r = n.window === n ? n.document : n.nodeType === 9 ? n : n.ownerDocument; + Ii || Ft == null || Ft !== Zr(r) || (r = Ft, "selectionStart" in r && Mi(r) ? r = { start: r.selectionStart, end: r.selectionEnd } : (r = (r.ownerDocument && r.ownerDocument.defaultView || window).getSelection(), r = { anchorNode: r.anchorNode, anchorOffset: r.anchorOffset, focusNode: r.focusNode, focusOffset: r.focusOffset }), Vn && tr(Vn, r) || (Vn = r, r = to(zi, "onSelect"), 0 < r.length && (t = new Kl("onSelect", "select", null, t, n), e.push({ event: t, listeners: r }), t.target = Ft))); +} +Vl( + "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 +); +Vl("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); +Vl(dd, 2); +for (var fs = "change selectionchange textInput compositionstart compositionend compositionupdate".split(" "), oi = 0; oi < fs.length; oi++) Al.set(fs[oi], 0); +qt("onMouseEnter", ["mouseout", "mouseover"]); +qt("onMouseLeave", ["mouseout", "mouseover"]); +qt("onPointerEnter", ["pointerout", "pointerover"]); +qt("onPointerLeave", ["pointerout", "pointerover"]); +_t("onChange", "change click focusin focusout input keydown keyup selectionchange".split(" ")); +_t("onSelect", "focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")); +_t("onBeforeInput", ["compositionend", "keypress", "textInput", "paste"]); +_t("onCompositionEnd", "compositionend focusout keydown keypress keyup mousedown".split(" ")); +_t("onCompositionStart", "compositionstart focusout keydown keypress keyup mousedown".split(" ")); +_t("onCompositionUpdate", "compositionupdate focusout keydown keypress keyup mousedown".split(" ")); +var Rn = "abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "), ip = new Set("cancel close invalid load scroll toggle".split(" ").concat(Rn)); +function cs(e, t, n) { + var r = e.type || "unknown-event"; + e.currentTarget = n, ud(r, t, void 0, e), e.currentTarget = null; +} +function mf(e, t) { + t = (t & 4) !== 0; + for (var n = 0; n < e.length; n++) { + var r = e[n], o = r.event; + r = r.listeners; + e: { + var i = void 0; + if (t) for (var l = r.length - 1; 0 <= l; l--) { + var u = r[l], s = u.instance, a = u.currentTarget; + if (u = u.listener, s !== i && o.isPropagationStopped()) break e; + cs(o, u, a), i = s; + } + else for (l = 0; l < r.length; l++) { + if (u = r[l], s = u.instance, a = u.currentTarget, u = u.listener, s !== i && o.isPropagationStopped()) break e; + cs(o, u, a), i = s; + } + } + } + if (qr) throw e = Li, qr = !1, Li = null, e; +} +function z(e, t) { + var n = wf(t), r = e + "__bubble"; + n.has(r) || (vf(t, e, 2, !1), n.add(r)); +} +var ds = "_reactListening" + Math.random().toString(36).slice(2); +function hf(e) { + e[ds] || (e[ds] = !0, Da.forEach(function(t) { + ip.has(t) || ps(t, !1, e, null), ps(t, !0, e, null); + })); +} +function ps(e, t, n, r) { + var o = 4 < arguments.length && arguments[4] !== void 0 ? arguments[4] : 0, i = n; + e === "selectionchange" && n.nodeType !== 9 && (i = n.ownerDocument); + var l = wf(i), u = e + "__" + (t ? "capture" : "bubble"); + l.has(u) || (t && (o |= 4), vf(i, e, o, t), l.add(u)); +} +function vf(e, t, n, r) { + var o = Al.get(t); + switch (o === void 0 ? 2 : o) { + case 0: + o = Od; + break; + case 1: + o = Sd; + break; + default: + o = Bl; + } + n = o.bind(null, t, n, e), o = void 0, !Di || t !== "touchstart" && t !== "touchmove" && t !== "wheel" || (o = !0), r ? o !== void 0 ? e.addEventListener(t, n, { capture: !0, passive: o }) : e.addEventListener(t, n, !0) : o !== void 0 ? e.addEventListener(t, n, { passive: o }) : e.addEventListener(t, n, !1); +} +function yf(e, t, n, r, o) { + var i = r; + if (!(t & 1) && !(t & 2) && r !== null) e: for (; ; ) { + if (r === null) return; + var l = r.tag; + if (l === 3 || l === 4) { + var u = r.stateNode.containerInfo; + if (u === o || u.nodeType === 8 && u.parentNode === o) break; + if (l === 4) for (l = r.return; l !== null; ) { + var s = l.tag; + if ((s === 3 || s === 4) && (s = l.stateNode.containerInfo, s === o || s.nodeType === 8 && s.parentNode === o)) return; + l = l.return; + } + for (; u !== null; ) { + if (l = yt(u), l === null) return; + if (s = l.tag, s === 5 || s === 6) { + r = i = l; + continue e; + } + u = u.parentNode; + } + } + r = r.return; + } + rd(function() { + var a = i, p = Ml(n), w = []; + e: { + var m = rf.get(e); + if (m !== void 0) { + var E = Kl, C = e; + switch (e) { + case "keypress": + if (Vr(n) === 0) break e; + case "keydown": + case "keyup": + E = zd; + break; + case "focusin": + C = "focus", E = ti; + break; + case "focusout": + C = "blur", E = ti; + break; + case "beforeblur": + case "afterblur": + E = ti; + break; + case "click": + if (n.button === 2) break e; + case "auxclick": + case "dblclick": + case "mousedown": + case "mousemove": + case "mouseup": + case "mouseout": + case "mouseover": + case "contextmenu": + E = Ju; + break; + case "drag": + case "dragend": + case "dragenter": + case "dragexit": + case "dragleave": + case "dragover": + case "dragstart": + case "drop": + E = Pd; + break; + case "touchcancel": + case "touchend": + case "touchmove": + case "touchstart": + E = Ud; + break; + case qa: + case ef: + case tf: + E = jd; + break; + case nf: + E = Vd; + break; + case "scroll": + E = xd; + break; + case "wheel": + E = Wd; + break; + case "copy": + case "cut": + case "paste": + E = Nd; + break; + case "gotpointercapture": + case "lostpointercapture": + case "pointercancel": + case "pointerdown": + case "pointermove": + case "pointerout": + case "pointerover": + case "pointerup": + E = es; + } + var _ = (t & 4) !== 0, c = !_ && e === "scroll", f = _ ? m !== null ? m + "Capture" : null : m; + _ = []; + for (var d = a, v; d !== null; ) { + v = d; + var h = v.stateNode; + if (v.tag === 5 && h !== null && (v = h, f !== null && (h = Gn(d, f), h != null && _.push(nr(d, h, v)))), c) break; + d = d.return; + } + 0 < _.length && (m = new E(m, C, null, n, p), w.push({ event: m, listeners: _ })); + } + } + if (!(t & 7)) { + e: { + if (m = e === "mouseover" || e === "pointerover", E = e === "mouseout" || e === "pointerout", m && !(t & 16) && (C = n.relatedTarget || n.fromElement) && (yt(C) || C[cn])) break e; + if ((E || m) && (m = p.window === p ? p : (m = p.ownerDocument) ? m.defaultView || m.parentWindow : window, E ? (C = n.relatedTarget || n.toElement, E = a, C = C ? yt(C) : null, C !== null && (c = jt(C), C !== c || C.tag !== 5 && C.tag !== 6) && (C = null)) : (E = null, C = a), E !== C)) { + if (_ = Ju, h = "onMouseLeave", f = "onMouseEnter", d = "mouse", (e === "pointerout" || e === "pointerover") && (_ = es, h = "onPointerLeave", f = "onPointerEnter", d = "pointer"), c = E == null ? m : Ut(E), v = C == null ? m : Ut(C), m = new _(h, d + "leave", E, n, p), m.target = c, m.relatedTarget = v, h = null, yt(p) === a && (_ = new _(f, d + "enter", C, n, p), _.target = v, _.relatedTarget = c, h = _), c = h, E && C) t: { + for (_ = E, f = C, d = 0, v = _; v; v = Rt(v)) d++; + for (v = 0, h = f; h; h = Rt(h)) v++; + for (; 0 < d - v; ) _ = Rt(_), d--; + for (; 0 < v - d; ) f = Rt(f), v--; + for (; d--; ) { + if (_ === f || f !== null && _ === f.alternate) break t; + _ = Rt(_), f = Rt(f); + } + _ = null; + } + else _ = null; + E !== null && ms(w, m, E, _, !1), C !== null && c !== null && ms(w, c, C, _, !0); + } + } + e: { + if (m = a ? Ut(a) : window, E = m.nodeName && m.nodeName.toLowerCase(), E === "select" || E === "input" && m.type === "file") var j = Zd; + else if (rs(m)) if (cf) j = tp; + else { + j = qd; + var O = Jd; + } + else (E = m.nodeName) && E.toLowerCase() === "input" && (m.type === "checkbox" || m.type === "radio") && (j = ep); + if (j && (j = j(e, a))) { + ff(w, j, n, p); + break e; + } + O && O(e, m, a), e === "focusout" && (O = m._wrapperState) && O.controlled && m.type === "number" && Ci(m, "number", m.value); + } + switch (O = a ? Ut(a) : window, e) { + case "focusin": + (rs(O) || O.contentEditable === "true") && (Ft = O, zi = a, Vn = null); + break; + case "focusout": + Vn = zi = Ft = null; + break; + case "mousedown": + Ii = !0; + break; + case "contextmenu": + case "mouseup": + case "dragend": + Ii = !1, as(w, n, p); + break; + case "selectionchange": + if (op) break; + case "keydown": + case "keyup": + as(w, n, p); + } + var T; + if (Yl) e: { + switch (e) { + case "compositionstart": + var D = "onCompositionStart"; + break e; + case "compositionend": + D = "onCompositionEnd"; + break e; + case "compositionupdate": + D = "onCompositionUpdate"; + break e; + } + D = void 0; + } + else It ? sf(e, n) && (D = "onCompositionEnd") : e === "keydown" && n.keyCode === 229 && (D = "onCompositionStart"); + D && (uf && n.locale !== "ko" && (It || D !== "onCompositionStart" ? D === "onCompositionEnd" && It && (T = lf()) : (Be = p, Hl = "value" in Be ? Be.value : Be.textContent, It = !0)), O = to(a, D), 0 < O.length && (D = new qu(D, e, null, n, p), w.push({ event: D, listeners: O }), T ? D.data = T : (T = af(n), T !== null && (D.data = T)))), (T = Kd ? Qd(e, n) : Yd(e, n)) && (a = to(a, "onBeforeInput"), 0 < a.length && (p = new qu( + "onBeforeInput", + "beforeinput", + null, + n, + p + ), w.push({ event: p, listeners: a }), p.data = T)); + } + mf(w, t); + }); +} +function nr(e, t, n) { + return { instance: e, listener: t, currentTarget: n }; +} +function to(e, t) { + for (var n = t + "Capture", r = []; e !== null; ) { + var o = e, i = o.stateNode; + o.tag === 5 && i !== null && (o = i, i = Gn(e, n), i != null && r.unshift(nr(e, i, o)), i = Gn(e, t), i != null && r.push(nr(e, i, o))), e = e.return; + } + return r; +} +function Rt(e) { + if (e === null) return null; + do + e = e.return; + while (e && e.tag !== 5); + return e || null; +} +function ms(e, t, n, r, o) { + for (var i = t._reactName, l = []; n !== null && n !== r; ) { + var u = n, s = u.alternate, a = u.stateNode; + if (s !== null && s === r) break; + u.tag === 5 && a !== null && (u = a, o ? (s = Gn(n, i), s != null && l.unshift(nr(n, s, u))) : o || (s = Gn(n, i), s != null && l.push(nr(n, s, u)))), n = n.return; + } + l.length !== 0 && e.push({ event: t, listeners: l }); +} +function no() { +} +var ii = null, li = null; +function gf(e, t) { + switch (e) { + case "button": + case "input": + case "select": + case "textarea": + return !!t.autoFocus; + } + return !1; +} +function Fi(e, t) { + return e === "textarea" || e === "option" || e === "noscript" || typeof t.children == "string" || typeof t.children == "number" || typeof t.dangerouslySetInnerHTML == "object" && t.dangerouslySetInnerHTML !== null && t.dangerouslySetInnerHTML.__html != null; +} +var hs = typeof setTimeout == "function" ? setTimeout : void 0, lp = typeof clearTimeout == "function" ? clearTimeout : void 0; +function Xl(e) { + e.nodeType === 1 ? e.textContent = "" : e.nodeType === 9 && (e = e.body, e != null && (e.textContent = "")); +} +function Qt(e) { + for (; e != null; e = e.nextSibling) { + var t = e.nodeType; + if (t === 1 || t === 3) break; + } + return e; +} +function vs(e) { + e = e.previousSibling; + for (var t = 0; e; ) { + if (e.nodeType === 8) { + var n = e.data; + if (n === "$" || n === "$!" || n === "$?") { + if (t === 0) return e; + t--; + } else n === "/$" && t++; + } + e = e.previousSibling; + } + return null; +} +var ui = 0; +function up(e) { + return { $$typeof: $l, toString: e, valueOf: e }; +} +var Mo = Math.random().toString(36).slice(2), We = "__reactFiber$" + Mo, ro = "__reactProps$" + Mo, cn = "__reactContainer$" + Mo, ys = "__reactEvents$" + Mo; +function yt(e) { + var t = e[We]; + if (t) return t; + for (var n = e.parentNode; n; ) { + if (t = n[cn] || n[We]) { + if (n = t.alternate, t.child !== null || n !== null && n.child !== null) for (e = vs(e); e !== null; ) { + if (n = e[We]) return n; + e = vs(e); + } + return t; + } + e = n, n = e.parentNode; + } + return null; +} +function gr(e) { + return e = e[We] || e[cn], !e || e.tag !== 5 && e.tag !== 6 && e.tag !== 13 && e.tag !== 3 ? null : e; +} +function Ut(e) { + if (e.tag === 5 || e.tag === 6) return e.stateNode; + throw Error(g(33)); +} +function zo(e) { + return e[ro] || null; +} +function wf(e) { + var t = e[ys]; + return t === void 0 && (t = e[ys] = /* @__PURE__ */ new Set()), t; +} +var Ui = [], At = -1; +function lt(e) { + return { current: e }; +} +function I(e) { + 0 > At || (e.current = Ui[At], Ui[At] = null, At--); +} +function A(e, t) { + At++, Ui[At] = e.current, e.current = t; +} +var nt = {}, re = lt(nt), ae = lt(!1), xt = nt; +function en(e, t) { + var n = e.type.contextTypes; + if (!n) return nt; + var r = e.stateNode; + if (r && r.__reactInternalMemoizedUnmaskedChildContext === t) return r.__reactInternalMemoizedMaskedChildContext; + var o = {}, i; + for (i in n) o[i] = t[i]; + return r && (e = e.stateNode, e.__reactInternalMemoizedUnmaskedChildContext = t, e.__reactInternalMemoizedMaskedChildContext = o), o; +} +function fe(e) { + return e = e.childContextTypes, e != null; +} +function oo() { + I(ae), I(re); +} +function gs(e, t, n) { + if (re.current !== nt) throw Error(g(168)); + A(re, t), A(ae, n); +} +function Ef(e, t, n) { + var r = e.stateNode; + if (e = t.childContextTypes, typeof r.getChildContext != "function") return n; + r = r.getChildContext(); + for (var o in r) if (!(o in e)) throw Error(g(108, Bt(t) || "Unknown", o)); + return F({}, n, r); +} +function Br(e) { + return e = (e = e.stateNode) && e.__reactInternalMemoizedMergedChildContext || nt, xt = re.current, A(re, e), A(ae, ae.current), !0; +} +function ws(e, t, n) { + var r = e.stateNode; + if (!r) throw Error(g(169)); + n ? (e = Ef(e, t, xt), r.__reactInternalMemoizedMergedChildContext = e, I(ae), I(re), A(re, e)) : I(ae), A(ae, n); +} +var Gl = null, St = null, sp = K.unstable_runWithPriority, Zl = K.unstable_scheduleCallback, Ai = K.unstable_cancelCallback, ap = K.unstable_shouldYield, Es = K.unstable_requestPaint, Vi = K.unstable_now, fp = K.unstable_getCurrentPriorityLevel, Io = K.unstable_ImmediatePriority, Of = K.unstable_UserBlockingPriority, Sf = K.unstable_NormalPriority, xf = K.unstable_LowPriority, Cf = K.unstable_IdlePriority, si = {}, cp = Es !== void 0 ? Es : function() { +}, Re = null, Wr = null, ai = !1, Os = Vi(), te = 1e4 > Os ? Vi : function() { + return Vi() - Os; +}; +function tn() { + switch (fp()) { + case Io: + return 99; + case Of: + return 98; + case Sf: + return 97; + case xf: + return 96; + case Cf: + return 95; + default: + throw Error(g(332)); + } +} +function Pf(e) { + switch (e) { + case 99: + return Io; + case 98: + return Of; + case 97: + return Sf; + case 96: + return xf; + case 95: + return Cf; + default: + throw Error(g(332)); + } +} +function Ct(e, t) { + return e = Pf(e), sp(e, t); +} +function rr(e, t, n) { + return e = Pf(e), Zl(e, t, n); +} +function Ne() { + if (Wr !== null) { + var e = Wr; + Wr = null, Ai(e); + } + _f(); +} +function _f() { + if (!ai && Re !== null) { + ai = !0; + var e = 0; + try { + var t = Re; + Ct(99, function() { + for (; e < t.length; e++) { + var n = t[e]; + do + n = n(!0); + while (n !== null); + } + }), Re = null; + } catch (n) { + throw Re !== null && (Re = Re.slice(e + 1)), Zl(Io, Ne), n; + } finally { + ai = !1; + } + } +} +var dp = kt.ReactCurrentBatchConfig; +function Oe(e, t) { + if (e && e.defaultProps) { + t = F({}, t), e = e.defaultProps; + for (var n in e) t[n] === void 0 && (t[n] = e[n]); + return t; + } + return t; +} +var io = lt(null), lo = null, Vt = null, uo = null; +function Jl() { + uo = Vt = lo = null; +} +function ql(e) { + var t = io.current; + I(io), e.type._context._currentValue = t; +} +function kf(e, t) { + for (; e !== null; ) { + var n = e.alternate; + if ((e.childLanes & t) === t) { + if (n === null || (n.childLanes & t) === t) break; + n.childLanes |= t; + } else e.childLanes |= t, n !== null && (n.childLanes |= t); + e = e.return; + } +} +function Yt(e, t) { + lo = e, uo = Vt = null, e = e.dependencies, e !== null && e.firstContext !== null && (e.lanes & t && (Se = !0), e.firstContext = null); +} +function ye(e, t) { + if (uo !== e && t !== !1 && t !== 0) + if ((typeof t != "number" || t === 1073741823) && (uo = e, t = 1073741823), t = { context: e, observedBits: t, next: null }, Vt === null) { + if (lo === null) throw Error(g(308)); + Vt = t, lo.dependencies = { lanes: 0, firstContext: t, responders: null }; + } else Vt = Vt.next = t; + return e._currentValue; +} +var Fe = !1; +function eu(e) { + e.updateQueue = { baseState: e.memoizedState, firstBaseUpdate: null, lastBaseUpdate: null, shared: { pending: null }, effects: null }; +} +function jf(e, t) { + e = e.updateQueue, t.updateQueue === e && (t.updateQueue = { baseState: e.baseState, firstBaseUpdate: e.firstBaseUpdate, lastBaseUpdate: e.lastBaseUpdate, shared: e.shared, effects: e.effects }); +} +function Xe(e, t) { + return { eventTime: e, lane: t, tag: 0, payload: null, callback: null, next: null }; +} +function Ge(e, t) { + if (e = e.updateQueue, e !== null) { + e = e.shared; + var n = e.pending; + n === null ? t.next = t : (t.next = n.next, n.next = t), e.pending = t; + } +} +function Ss(e, t) { + var n = e.updateQueue, r = e.alternate; + if (r !== null && (r = r.updateQueue, n === r)) { + var o = null, i = null; + if (n = n.firstBaseUpdate, n !== null) { + do { + var l = { eventTime: n.eventTime, lane: n.lane, tag: n.tag, payload: n.payload, callback: n.callback, next: null }; + i === null ? o = i = l : i = i.next = l, n = n.next; + } while (n !== null); + i === null ? o = i = t : i = i.next = t; + } else o = i = t; + n = { baseState: r.baseState, firstBaseUpdate: o, lastBaseUpdate: i, shared: r.shared, effects: r.effects }, e.updateQueue = n; + return; + } + e = n.lastBaseUpdate, e === null ? n.firstBaseUpdate = t : e.next = t, n.lastBaseUpdate = t; +} +function or(e, t, n, r) { + var o = e.updateQueue; + Fe = !1; + var i = o.firstBaseUpdate, l = o.lastBaseUpdate, u = o.shared.pending; + if (u !== null) { + o.shared.pending = null; + var s = u, a = s.next; + s.next = null, l === null ? i = a : l.next = a, l = s; + var p = e.alternate; + if (p !== null) { + p = p.updateQueue; + var w = p.lastBaseUpdate; + w !== l && (w === null ? p.firstBaseUpdate = a : w.next = a, p.lastBaseUpdate = s); + } + } + if (i !== null) { + w = o.baseState, l = 0, p = a = s = null; + do { + u = i.lane; + var m = i.eventTime; + if ((r & u) === u) { + p !== null && (p = p.next = { + eventTime: m, + lane: 0, + tag: i.tag, + payload: i.payload, + callback: i.callback, + next: null + }); + e: { + var E = e, C = i; + switch (u = t, m = n, C.tag) { + case 1: + if (E = C.payload, typeof E == "function") { + w = E.call(m, w, u); + break e; + } + w = E; + break e; + case 3: + E.flags = E.flags & -4097 | 64; + case 0: + if (E = C.payload, u = typeof E == "function" ? E.call(m, w, u) : E, u == null) break e; + w = F({}, w, u); + break e; + case 2: + Fe = !0; + } + } + i.callback !== null && (e.flags |= 32, u = o.effects, u === null ? o.effects = [i] : u.push(i)); + } else m = { eventTime: m, lane: u, tag: i.tag, payload: i.payload, callback: i.callback, next: null }, p === null ? (a = p = m, s = w) : p = p.next = m, l |= u; + if (i = i.next, i === null) { + if (u = o.shared.pending, u === null) break; + i = u.next, u.next = null, o.lastBaseUpdate = u, o.shared.pending = null; + } + } while (!0); + p === null && (s = w), o.baseState = s, o.firstBaseUpdate = a, o.lastBaseUpdate = p, Er |= l, e.lanes = l, e.memoizedState = w; + } +} +function xs(e, t, n) { + if (e = t.effects, t.effects = null, e !== null) for (t = 0; t < e.length; t++) { + var r = e[t], o = r.callback; + if (o !== null) { + if (r.callback = null, r = n, typeof o != "function") throw Error(g(191, o)); + o.call(r); + } + } +} +var Tf = new To.Component().refs; +function so(e, t, n, r) { + t = e.memoizedState, n = n(r, t), n = n == null ? t : F({}, t, n), e.memoizedState = n, e.lanes === 0 && (e.updateQueue.baseState = n); +} +var Fo = { isMounted: function(e) { + return (e = e._reactInternals) ? jt(e) === e : !1; +}, enqueueSetState: function(e, t, n) { + e = e._reactInternals; + var r = ce(), o = Ze(e), i = Xe(r, o); + i.payload = t, n != null && (i.callback = n), Ge(e, i), Je(e, o, r); +}, enqueueReplaceState: function(e, t, n) { + e = e._reactInternals; + var r = ce(), o = Ze(e), i = Xe(r, o); + i.tag = 1, i.payload = t, n != null && (i.callback = n), Ge(e, i), Je(e, o, r); +}, enqueueForceUpdate: function(e, t) { + e = e._reactInternals; + var n = ce(), r = Ze(e), o = Xe(n, r); + o.tag = 2, t != null && (o.callback = t), Ge(e, o), Je(e, r, n); +} }; +function Cs(e, t, n, r, o, i, l) { + return e = e.stateNode, typeof e.shouldComponentUpdate == "function" ? e.shouldComponentUpdate(r, i, l) : t.prototype && t.prototype.isPureReactComponent ? !tr(n, r) || !tr(o, i) : !0; +} +function Nf(e, t, n) { + var r = !1, o = nt, i = t.contextType; + return typeof i == "object" && i !== null ? i = ye(i) : (o = fe(t) ? xt : re.current, r = t.contextTypes, i = (r = r != null) ? en(e, o) : nt), t = new t(n, i), e.memoizedState = t.state !== null && t.state !== void 0 ? t.state : null, t.updater = Fo, e.stateNode = t, t._reactInternals = e, r && (e = e.stateNode, e.__reactInternalMemoizedUnmaskedChildContext = o, e.__reactInternalMemoizedMaskedChildContext = i), t; +} +function Ps(e, t, n, r) { + e = t.state, typeof t.componentWillReceiveProps == "function" && t.componentWillReceiveProps(n, r), typeof t.UNSAFE_componentWillReceiveProps == "function" && t.UNSAFE_componentWillReceiveProps(n, r), t.state !== e && Fo.enqueueReplaceState(t, t.state, null); +} +function Bi(e, t, n, r) { + var o = e.stateNode; + o.props = n, o.state = e.memoizedState, o.refs = Tf, eu(e); + var i = t.contextType; + typeof i == "object" && i !== null ? o.context = ye(i) : (i = fe(t) ? xt : re.current, o.context = en(e, i)), or(e, n, o, r), o.state = e.memoizedState, i = t.getDerivedStateFromProps, typeof i == "function" && (so(e, t, i, n), o.state = e.memoizedState), typeof t.getDerivedStateFromProps == "function" || typeof o.getSnapshotBeforeUpdate == "function" || typeof o.UNSAFE_componentWillMount != "function" && typeof o.componentWillMount != "function" || (t = o.state, typeof o.componentWillMount == "function" && o.componentWillMount(), typeof o.UNSAFE_componentWillMount == "function" && o.UNSAFE_componentWillMount(), t !== o.state && Fo.enqueueReplaceState(o, o.state, null), or(e, n, o, r), o.state = e.memoizedState), typeof o.componentDidMount == "function" && (e.flags |= 4); +} +var Nr = Array.isArray; +function xn(e, t, n) { + if (e = n.ref, e !== null && typeof e != "function" && typeof e != "object") { + if (n._owner) { + if (n = n._owner, n) { + if (n.tag !== 1) throw Error(g(309)); + var r = n.stateNode; + } + if (!r) throw Error(g(147, e)); + var o = "" + e; + return t !== null && t.ref !== null && typeof t.ref == "function" && t.ref._stringRef === o ? t.ref : (t = function(i) { + var l = r.refs; + l === Tf && (l = r.refs = {}), i === null ? delete l[o] : l[o] = i; + }, t._stringRef = o, t); + } + if (typeof e != "string") throw Error(g(284)); + if (!n._owner) throw Error(g(290, e)); + } + return e; +} +function Rr(e, t) { + if (e.type !== "textarea") throw Error(g(31, Object.prototype.toString.call(t) === "[object Object]" ? "object with keys {" + Object.keys(t).join(", ") + "}" : t)); +} +function Rf(e) { + function t(c, f) { + if (e) { + var d = c.lastEffect; + d !== null ? (d.nextEffect = f, c.lastEffect = f) : c.firstEffect = c.lastEffect = f, f.nextEffect = null, f.flags = 8; + } + } + function n(c, f) { + if (!e) return null; + for (; f !== null; ) t(c, f), f = f.sibling; + return null; + } + function r(c, f) { + for (c = /* @__PURE__ */ new Map(); f !== null; ) f.key !== null ? c.set(f.key, f) : c.set(f.index, f), f = f.sibling; + return c; + } + function o(c, f) { + return c = ot(c, f), c.index = 0, c.sibling = null, c; + } + function i(c, f, d) { + return c.index = d, e ? (d = c.alternate, d !== null ? (d = d.index, d < f ? (c.flags = 2, f) : d) : (c.flags = 2, f)) : f; + } + function l(c) { + return e && c.alternate === null && (c.flags = 2), c; + } + function u(c, f, d, v) { + return f === null || f.tag !== 6 ? (f = mi(d, c.mode, v), f.return = c, f) : (f = o(f, d), f.return = c, f); + } + function s(c, f, d, v) { + return f !== null && f.elementType === d.type ? (v = o(f, d.props), v.ref = xn(c, f, d), v.return = c, v) : (v = Yr(d.type, d.key, d.props, null, c.mode, v), v.ref = xn(c, f, d), v.return = c, v); + } + function a(c, f, d, v) { + return f === null || f.tag !== 4 || f.stateNode.containerInfo !== d.containerInfo || f.stateNode.implementation !== d.implementation ? (f = hi(d, c.mode, v), f.return = c, f) : (f = o(f, d.children || []), f.return = c, f); + } + function p(c, f, d, v, h) { + return f === null || f.tag !== 7 ? (f = Jt(d, c.mode, v, h), f.return = c, f) : (f = o(f, d), f.return = c, f); + } + function w(c, f, d) { + if (typeof f == "string" || typeof f == "number") return f = mi("" + f, c.mode, d), f.return = c, f; + if (typeof f == "object" && f !== null) { + switch (f.$$typeof) { + case Tn: + return d = Yr(f.type, f.key, f.props, null, c.mode, d), d.ref = xn(c, null, f), d.return = c, d; + case ht: + return f = hi(f, c.mode, d), f.return = c, f; + } + if (Nr(f) || yn(f)) return f = Jt( + f, + c.mode, + d, + null + ), f.return = c, f; + Rr(c, f); + } + return null; + } + function m(c, f, d, v) { + var h = f !== null ? f.key : null; + if (typeof d == "string" || typeof d == "number") return h !== null ? null : u(c, f, "" + d, v); + if (typeof d == "object" && d !== null) { + switch (d.$$typeof) { + case Tn: + return d.key === h ? d.type === Ve ? p(c, f, d.props.children, v, h) : s(c, f, d, v) : null; + case ht: + return d.key === h ? a(c, f, d, v) : null; + } + if (Nr(d) || yn(d)) return h !== null ? null : p(c, f, d, v, null); + Rr(c, d); + } + return null; + } + function E(c, f, d, v, h) { + if (typeof v == "string" || typeof v == "number") return c = c.get(d) || null, u(f, c, "" + v, h); + if (typeof v == "object" && v !== null) { + switch (v.$$typeof) { + case Tn: + return c = c.get(v.key === null ? d : v.key) || null, v.type === Ve ? p(f, c, v.props.children, h, v.key) : s(f, c, v, h); + case ht: + return c = c.get(v.key === null ? d : v.key) || null, a(f, c, v, h); + } + if (Nr(v) || yn(v)) return c = c.get(d) || null, p(f, c, v, h, null); + Rr(f, v); + } + return null; + } + function C(c, f, d, v) { + for (var h = null, j = null, O = f, T = f = 0, D = null; O !== null && T < d.length; T++) { + O.index > T ? (D = O, O = null) : D = O.sibling; + var k = m(c, O, d[T], v); + if (k === null) { + O === null && (O = D); + break; + } + e && O && k.alternate === null && t(c, O), f = i(k, f, T), j === null ? h = k : j.sibling = k, j = k, O = D; + } + if (T === d.length) return n(c, O), h; + if (O === null) { + for (; T < d.length; T++) O = w(c, d[T], v), O !== null && (f = i(O, f, T), j === null ? h = O : j.sibling = O, j = O); + return h; + } + for (O = r(c, O); T < d.length; T++) D = E(O, c, T, d[T], v), D !== null && (e && D.alternate !== null && O.delete(D.key === null ? T : D.key), f = i(D, f, T), j === null ? h = D : j.sibling = D, j = D); + return e && O.forEach(function(Q) { + return t(c, Q); + }), h; + } + function _(c, f, d, v) { + var h = yn(d); + if (typeof h != "function") throw Error(g(150)); + if (d = h.call(d), d == null) throw Error(g(151)); + for (var j = h = null, O = f, T = f = 0, D = null, k = d.next(); O !== null && !k.done; T++, k = d.next()) { + O.index > T ? (D = O, O = null) : D = O.sibling; + var Q = m(c, O, k.value, v); + if (Q === null) { + O === null && (O = D); + break; + } + e && O && Q.alternate === null && t(c, O), f = i(Q, f, T), j === null ? h = Q : j.sibling = Q, j = Q, O = D; + } + if (k.done) return n(c, O), h; + if (O === null) { + for (; !k.done; T++, k = d.next()) k = w(c, k.value, v), k !== null && (f = i(k, f, T), j === null ? h = k : j.sibling = k, j = k); + return h; + } + for (O = r(c, O); !k.done; T++, k = d.next()) k = E(O, c, T, k.value, v), k !== null && (e && k.alternate !== null && O.delete(k.key === null ? T : k.key), f = i(k, f, T), j === null ? h = k : j.sibling = k, j = k); + return e && O.forEach(function(Bo) { + return t(c, Bo); + }), h; + } + return function(c, f, d, v) { + var h = typeof d == "object" && d !== null && d.type === Ve && d.key === null; + h && (d = d.props.children); + var j = typeof d == "object" && d !== null; + if (j) switch (d.$$typeof) { + case Tn: + e: { + for (j = d.key, h = f; h !== null; ) { + if (h.key === j) { + switch (h.tag) { + case 7: + if (d.type === Ve) { + n(c, h.sibling), f = o(h, d.props.children), f.return = c, c = f; + break e; + } + break; + default: + if (h.elementType === d.type) { + n(c, h.sibling), f = o(h, d.props), f.ref = xn(c, h, d), f.return = c, c = f; + break e; + } + } + n(c, h); + break; + } else t(c, h); + h = h.sibling; + } + d.type === Ve ? (f = Jt(d.props.children, c.mode, v, d.key), f.return = c, c = f) : (v = Yr(d.type, d.key, d.props, null, c.mode, v), v.ref = xn(c, f, d), v.return = c, c = v); + } + return l(c); + case ht: + e: { + for (h = d.key; f !== null; ) { + if (f.key === h) if (f.tag === 4 && f.stateNode.containerInfo === d.containerInfo && f.stateNode.implementation === d.implementation) { + n(c, f.sibling), f = o(f, d.children || []), f.return = c, c = f; + break e; + } else { + n(c, f); + break; + } + else t(c, f); + f = f.sibling; + } + f = hi(d, c.mode, v), f.return = c, c = f; + } + return l(c); + } + if (typeof d == "string" || typeof d == "number") return d = "" + d, f !== null && f.tag === 6 ? (n(c, f.sibling), f = o(f, d), f.return = c, c = f) : (n(c, f), f = mi(d, c.mode, v), f.return = c, c = f), l(c); + if (Nr(d)) return C(c, f, d, v); + if (yn(d)) return _(c, f, d, v); + if (j && Rr(c, d), typeof d > "u" && !h) switch (c.tag) { + case 1: + case 22: + case 0: + case 11: + case 15: + throw Error(g(152, Bt(c.type) || "Component")); + } + return n(c, f); + }; +} +var ao = Rf(!0), Df = Rf(!1), wr = {}, je = lt(wr), ir = lt(wr), lr = lt(wr); +function gt(e) { + if (e === wr) throw Error(g(174)); + return e; +} +function Wi(e, t) { + switch (A(lr, t), A(ir, e), A(je, wr), e = t.nodeType, e) { + case 9: + case 11: + t = (t = t.documentElement) ? t.namespaceURI : ji(null, ""); + break; + default: + e = e === 8 ? t.parentNode : t, t = e.namespaceURI || null, e = e.tagName, t = ji(t, e); + } + I(je), A(je, t); +} +function nn() { + I(je), I(ir), I(lr); +} +function _s(e) { + gt(lr.current); + var t = gt(je.current), n = ji(t, e.type); + t !== n && (A(ir, e), A(je, n)); +} +function tu(e) { + ir.current === e && (I(je), I(ir)); +} +var U = lt(0); +function fo(e) { + for (var t = e; t !== null; ) { + if (t.tag === 13) { + var n = t.memoizedState; + if (n !== null && (n = n.dehydrated, n === null || n.data === "$?" || n.data === "$!")) return t; + } else if (t.tag === 19 && t.memoizedProps.revealOrder !== void 0) { + if (t.flags & 64) return t; + } else if (t.child !== null) { + t.child.return = t, t = t.child; + continue; + } + if (t === e) break; + for (; t.sibling === null; ) { + if (t.return === null || t.return === e) return null; + t = t.return; + } + t.sibling.return = t.return, t = t.sibling; + } + return null; +} +var Le = null, He = null, Te = !1; +function Lf(e, t) { + var n = he(5, null, null, 0); + n.elementType = "DELETED", n.type = "DELETED", n.stateNode = t, n.return = e, n.flags = 8, e.lastEffect !== null ? (e.lastEffect.nextEffect = n, e.lastEffect = n) : e.firstEffect = e.lastEffect = n; +} +function ks(e, t) { + switch (e.tag) { + case 5: + var n = e.type; + return t = t.nodeType !== 1 || n.toLowerCase() !== t.nodeName.toLowerCase() ? null : t, t !== null ? (e.stateNode = t, !0) : !1; + case 6: + return t = e.pendingProps === "" || t.nodeType !== 3 ? null : t, t !== null ? (e.stateNode = t, !0) : !1; + case 13: + return !1; + default: + return !1; + } +} +function Hi(e) { + if (Te) { + var t = He; + if (t) { + var n = t; + if (!ks(e, t)) { + if (t = Qt(n.nextSibling), !t || !ks(e, t)) { + e.flags = e.flags & -1025 | 2, Te = !1, Le = e; + return; + } + Lf(Le, n); + } + Le = e, He = Qt(t.firstChild); + } else e.flags = e.flags & -1025 | 2, Te = !1, Le = e; + } +} +function js(e) { + for (e = e.return; e !== null && e.tag !== 5 && e.tag !== 3 && e.tag !== 13; ) e = e.return; + Le = e; +} +function Dr(e) { + if (e !== Le) return !1; + if (!Te) return js(e), Te = !0, !1; + var t = e.type; + if (e.tag !== 5 || t !== "head" && t !== "body" && !Fi(t, e.memoizedProps)) for (t = He; t; ) Lf(e, t), t = Qt(t.nextSibling); + if (js(e), e.tag === 13) { + if (e = e.memoizedState, e = e !== null ? e.dehydrated : null, !e) throw Error(g(317)); + e: { + for (e = e.nextSibling, t = 0; e; ) { + if (e.nodeType === 8) { + var n = e.data; + if (n === "/$") { + if (t === 0) { + He = Qt(e.nextSibling); + break e; + } + t--; + } else n !== "$" && n !== "$!" && n !== "$?" || t++; + } + e = e.nextSibling; + } + He = null; + } + } else He = Le ? Qt(e.stateNode.nextSibling) : null; + return !0; +} +function fi() { + He = Le = null, Te = !1; +} +var Xt = []; +function nu() { + for (var e = 0; e < Xt.length; e++) Xt[e]._workInProgressVersionPrimary = null; + Xt.length = 0; +} +var Bn = kt.ReactCurrentDispatcher, ve = kt.ReactCurrentBatchConfig, ur = 0, B = null, ee = null, X = null, co = !1, Wn = !1; +function ue() { + throw Error(g(321)); +} +function ru(e, t) { + if (t === null) return !1; + for (var n = 0; n < t.length && n < e.length; n++) if (!me(e[n], t[n])) return !1; + return !0; +} +function ou(e, t, n, r, o, i) { + if (ur = i, B = t, t.memoizedState = null, t.updateQueue = null, t.lanes = 0, Bn.current = e === null || e.memoizedState === null ? mp : hp, e = n(r, o), Wn) { + i = 0; + do { + if (Wn = !1, !(25 > i)) throw Error(g(301)); + i += 1, X = ee = null, t.updateQueue = null, Bn.current = vp, e = n(r, o); + } while (Wn); + } + if (Bn.current = vo, t = ee !== null && ee.next !== null, ur = 0, X = ee = B = null, co = !1, t) throw Error(g(300)); + return e; +} +function wt() { + var e = { memoizedState: null, baseState: null, baseQueue: null, queue: null, next: null }; + return X === null ? B.memoizedState = X = e : X = X.next = e, X; +} +function Tt() { + if (ee === null) { + var e = B.alternate; + e = e !== null ? e.memoizedState : null; + } else e = ee.next; + var t = X === null ? B.memoizedState : X.next; + if (t !== null) X = t, ee = e; + else { + if (e === null) throw Error(g(310)); + ee = e, e = { memoizedState: ee.memoizedState, baseState: ee.baseState, baseQueue: ee.baseQueue, queue: ee.queue, next: null }, X === null ? B.memoizedState = X = e : X = X.next = e; + } + return X; +} +function _e(e, t) { + return typeof t == "function" ? t(e) : t; +} +function Cn(e) { + var t = Tt(), n = t.queue; + if (n === null) throw Error(g(311)); + n.lastRenderedReducer = e; + var r = ee, o = r.baseQueue, i = n.pending; + if (i !== null) { + if (o !== null) { + var l = o.next; + o.next = i.next, i.next = l; + } + r.baseQueue = o = i, n.pending = null; + } + if (o !== null) { + o = o.next, r = r.baseState; + var u = l = i = null, s = o; + do { + var a = s.lane; + if ((ur & a) === a) u !== null && (u = u.next = { lane: 0, action: s.action, eagerReducer: s.eagerReducer, eagerState: s.eagerState, next: null }), r = s.eagerReducer === e ? s.eagerState : e(r, s.action); + else { + var p = { + lane: a, + action: s.action, + eagerReducer: s.eagerReducer, + eagerState: s.eagerState, + next: null + }; + u === null ? (l = u = p, i = r) : u = u.next = p, B.lanes |= a, Er |= a; + } + s = s.next; + } while (s !== null && s !== o); + u === null ? i = r : u.next = l, me(r, t.memoizedState) || (Se = !0), t.memoizedState = r, t.baseState = i, t.baseQueue = u, n.lastRenderedState = r; + } + return [t.memoizedState, n.dispatch]; +} +function Pn(e) { + var t = Tt(), n = t.queue; + if (n === null) throw Error(g(311)); + n.lastRenderedReducer = e; + var r = n.dispatch, o = n.pending, i = t.memoizedState; + if (o !== null) { + n.pending = null; + var l = o = o.next; + do + i = e(i, l.action), l = l.next; + while (l !== o); + me(i, t.memoizedState) || (Se = !0), t.memoizedState = i, t.baseQueue === null && (t.baseState = i), n.lastRenderedState = i; + } + return [i, r]; +} +function Ts(e, t, n) { + var r = t._getVersion; + r = r(t._source); + var o = t._workInProgressVersionPrimary; + if (o !== null ? e = o === r : (e = e.mutableReadLanes, (e = (ur & e) === e) && (t._workInProgressVersionPrimary = r, Xt.push(t))), e) return n(t._source); + throw Xt.push(t), Error(g(350)); +} +function $f(e, t, n, r) { + var o = ie; + if (o === null) throw Error(g(349)); + var i = t._getVersion, l = i(t._source), u = Bn.current, s = u.useState(function() { + return Ts(o, t, n); + }), a = s[1], p = s[0]; + s = X; + var w = e.memoizedState, m = w.refs, E = m.getSnapshot, C = w.source; + w = w.subscribe; + var _ = B; + return e.memoizedState = { refs: m, source: t, subscribe: r }, u.useEffect(function() { + m.getSnapshot = n, m.setSnapshot = a; + var c = i(t._source); + if (!me(l, c)) { + c = n(t._source), me(p, c) || (a(c), c = Ze(_), o.mutableReadLanes |= c & o.pendingLanes), c = o.mutableReadLanes, o.entangledLanes |= c; + for (var f = o.entanglements, d = c; 0 < d; ) { + var v = 31 - tt(d), h = 1 << v; + f[v] |= c, d &= ~h; + } + } + }, [n, t, r]), u.useEffect(function() { + return r(t._source, function() { + var c = m.getSnapshot, f = m.setSnapshot; + try { + f(c(t._source)); + var d = Ze(_); + o.mutableReadLanes |= d & o.pendingLanes; + } catch (v) { + f(function() { + throw v; + }); + } + }); + }, [t, r]), me(E, n) && me(C, t) && me(w, r) || (e = { pending: null, dispatch: null, lastRenderedReducer: _e, lastRenderedState: p }, e.dispatch = a = uu.bind(null, B, e), s.queue = e, s.baseQueue = null, p = Ts(o, t, n), s.memoizedState = s.baseState = p), p; +} +function bf(e, t, n) { + var r = Tt(); + return $f(r, e, t, n); +} +function _n(e) { + var t = wt(); + return typeof e == "function" && (e = e()), t.memoizedState = t.baseState = e, e = t.queue = { pending: null, dispatch: null, lastRenderedReducer: _e, lastRenderedState: e }, e = e.dispatch = uu.bind(null, B, e), [t.memoizedState, e]; +} +function po(e, t, n, r) { + return e = { tag: e, create: t, destroy: n, deps: r, next: null }, t = B.updateQueue, t === null ? (t = { lastEffect: null }, B.updateQueue = t, t.lastEffect = e.next = e) : (n = t.lastEffect, n === null ? t.lastEffect = e.next = e : (r = n.next, n.next = e, e.next = r, t.lastEffect = e)), e; +} +function Ns(e) { + var t = wt(); + return e = { current: e }, t.memoizedState = e; +} +function mo() { + return Tt().memoizedState; +} +function Ki(e, t, n, r) { + var o = wt(); + B.flags |= e, o.memoizedState = po(1 | t, n, void 0, r === void 0 ? null : r); +} +function iu(e, t, n, r) { + var o = Tt(); + r = r === void 0 ? null : r; + var i = void 0; + if (ee !== null) { + var l = ee.memoizedState; + if (i = l.destroy, r !== null && ru(r, l.deps)) { + po(t, n, i, r); + return; + } + } + B.flags |= e, o.memoizedState = po(1 | t, n, i, r); +} +function Rs(e, t) { + return Ki(516, 4, e, t); +} +function ho(e, t) { + return iu(516, 4, e, t); +} +function Mf(e, t) { + return iu(4, 2, e, t); +} +function zf(e, t) { + if (typeof t == "function") return e = e(), t(e), function() { + t(null); + }; + if (t != null) return e = e(), t.current = e, function() { + t.current = null; + }; +} +function If(e, t, n) { + return n = n != null ? n.concat([e]) : null, iu(4, 2, zf.bind(null, t, e), n); +} +function lu() { +} +function Ff(e, t) { + var n = Tt(); + t = t === void 0 ? null : t; + var r = n.memoizedState; + return r !== null && t !== null && ru(t, r[1]) ? r[0] : (n.memoizedState = [e, t], e); +} +function Uf(e, t) { + var n = Tt(); + t = t === void 0 ? null : t; + var r = n.memoizedState; + return r !== null && t !== null && ru(t, r[1]) ? r[0] : (e = e(), n.memoizedState = [e, t], e); +} +function pp(e, t) { + var n = tn(); + Ct(98 > n ? 98 : n, function() { + e(!0); + }), Ct(97 < n ? 97 : n, function() { + var r = ve.transition; + ve.transition = 1; + try { + e(!1), t(); + } finally { + ve.transition = r; + } + }); +} +function uu(e, t, n) { + var r = ce(), o = Ze(e), i = { lane: o, action: n, eagerReducer: null, eagerState: null, next: null }, l = t.pending; + if (l === null ? i.next = i : (i.next = l.next, l.next = i), t.pending = i, l = e.alternate, e === B || l !== null && l === B) Wn = co = !0; + else { + if (e.lanes === 0 && (l === null || l.lanes === 0) && (l = t.lastRenderedReducer, l !== null)) try { + var u = t.lastRenderedState, s = l(u, n); + if (i.eagerReducer = l, i.eagerState = s, me(s, u)) return; + } catch { + } finally { + } + Je(e, o, r); + } +} +var vo = { readContext: ye, useCallback: ue, useContext: ue, useEffect: ue, useImperativeHandle: ue, useLayoutEffect: ue, useMemo: ue, useReducer: ue, useRef: ue, useState: ue, useDebugValue: ue, useDeferredValue: ue, useTransition: ue, useMutableSource: ue, useOpaqueIdentifier: ue, unstable_isNewReconciler: !1 }, mp = { readContext: ye, useCallback: function(e, t) { + return wt().memoizedState = [e, t === void 0 ? null : t], e; +}, useContext: ye, useEffect: Rs, useImperativeHandle: function(e, t, n) { + return n = n != null ? n.concat([e]) : null, Ki(4, 2, zf.bind( + null, + t, + e + ), n); +}, useLayoutEffect: function(e, t) { + return Ki(4, 2, e, t); +}, useMemo: function(e, t) { + var n = wt(); + return t = t === void 0 ? null : t, e = e(), n.memoizedState = [e, t], e; +}, useReducer: function(e, t, n) { + var r = wt(); + return t = n !== void 0 ? n(t) : t, r.memoizedState = r.baseState = t, e = r.queue = { pending: null, dispatch: null, lastRenderedReducer: e, lastRenderedState: t }, e = e.dispatch = uu.bind(null, B, e), [r.memoizedState, e]; +}, useRef: Ns, useState: _n, useDebugValue: lu, useDeferredValue: function(e) { + var t = _n(e), n = t[0], r = t[1]; + return Rs(function() { + var o = ve.transition; + ve.transition = 1; + try { + r(e); + } finally { + ve.transition = o; + } + }, [e]), n; +}, useTransition: function() { + var e = _n(!1), t = e[0]; + return e = pp.bind(null, e[1]), Ns(e), [e, t]; +}, useMutableSource: function(e, t, n) { + var r = wt(); + return r.memoizedState = { refs: { getSnapshot: t, setSnapshot: null }, source: e, subscribe: n }, $f(r, e, t, n); +}, useOpaqueIdentifier: function() { + if (Te) { + var e = !1, t = up(function() { + throw e || (e = !0, n("r:" + (ui++).toString(36))), Error(g(355)); + }), n = _n(t)[1]; + return !(B.mode & 2) && (B.flags |= 516, po( + 5, + function() { + n("r:" + (ui++).toString(36)); + }, + void 0, + null + )), t; + } + return t = "r:" + (ui++).toString(36), _n(t), t; +}, unstable_isNewReconciler: !1 }, hp = { readContext: ye, useCallback: Ff, useContext: ye, useEffect: ho, useImperativeHandle: If, useLayoutEffect: Mf, useMemo: Uf, useReducer: Cn, useRef: mo, useState: function() { + return Cn(_e); +}, useDebugValue: lu, useDeferredValue: function(e) { + var t = Cn(_e), n = t[0], r = t[1]; + return ho(function() { + var o = ve.transition; + ve.transition = 1; + try { + r(e); + } finally { + ve.transition = o; + } + }, [e]), n; +}, useTransition: function() { + var e = Cn(_e)[0]; + return [ + mo().current, + e + ]; +}, useMutableSource: bf, useOpaqueIdentifier: function() { + return Cn(_e)[0]; +}, unstable_isNewReconciler: !1 }, vp = { readContext: ye, useCallback: Ff, useContext: ye, useEffect: ho, useImperativeHandle: If, useLayoutEffect: Mf, useMemo: Uf, useReducer: Pn, useRef: mo, useState: function() { + return Pn(_e); +}, useDebugValue: lu, useDeferredValue: function(e) { + var t = Pn(_e), n = t[0], r = t[1]; + return ho(function() { + var o = ve.transition; + ve.transition = 1; + try { + r(e); + } finally { + ve.transition = o; + } + }, [e]), n; +}, useTransition: function() { + var e = Pn(_e)[0]; + return [ + mo().current, + e + ]; +}, useMutableSource: bf, useOpaqueIdentifier: function() { + return Pn(_e)[0]; +}, unstable_isNewReconciler: !1 }, yp = kt.ReactCurrentOwner, Se = !1; +function se(e, t, n, r) { + t.child = e === null ? Df(t, null, n, r) : ao(t, e.child, n, r); +} +function Ds(e, t, n, r, o) { + n = n.render; + var i = t.ref; + return Yt(t, o), r = ou(e, t, n, r, i, o), e !== null && !Se ? (t.updateQueue = e.updateQueue, t.flags &= -517, e.lanes &= ~o, $e(e, t, o)) : (t.flags |= 1, se(e, t, r, o), t.child); +} +function Ls(e, t, n, r, o, i) { + if (e === null) { + var l = n.type; + return typeof l == "function" && !pu(l) && l.defaultProps === void 0 && n.compare === null && n.defaultProps === void 0 ? (t.tag = 15, t.type = l, Af(e, t, l, r, o, i)) : (e = Yr(n.type, null, r, t, t.mode, i), e.ref = t.ref, e.return = t, t.child = e); + } + return l = e.child, !(o & i) && (o = l.memoizedProps, n = n.compare, n = n !== null ? n : tr, n(o, r) && e.ref === t.ref) ? $e(e, t, i) : (t.flags |= 1, e = ot(l, r), e.ref = t.ref, e.return = t, t.child = e); +} +function Af(e, t, n, r, o, i) { + if (e !== null && tr(e.memoizedProps, r) && e.ref === t.ref) if (Se = !1, (i & o) !== 0) e.flags & 16384 && (Se = !0); + else return t.lanes = e.lanes, $e(e, t, i); + return Qi(e, t, n, r, i); +} +function ci(e, t, n) { + var r = t.pendingProps, o = r.children, i = e !== null ? e.memoizedState : null; + if (r.mode === "hidden" || r.mode === "unstable-defer-without-hiding") if (!(t.mode & 4)) t.memoizedState = { baseLanes: 0 }, $r(t, n); + else if (n & 1073741824) t.memoizedState = { baseLanes: 0 }, $r(t, i !== null ? i.baseLanes : n); + else return e = i !== null ? i.baseLanes | n : n, t.lanes = t.childLanes = 1073741824, t.memoizedState = { baseLanes: e }, $r(t, e), null; + else i !== null ? (r = i.baseLanes | n, t.memoizedState = null) : r = n, $r(t, r); + return se(e, t, o, n), t.child; +} +function Vf(e, t) { + var n = t.ref; + (e === null && n !== null || e !== null && e.ref !== n) && (t.flags |= 128); +} +function Qi(e, t, n, r, o) { + var i = fe(n) ? xt : re.current; + return i = en(t, i), Yt(t, o), n = ou(e, t, n, r, i, o), e !== null && !Se ? (t.updateQueue = e.updateQueue, t.flags &= -517, e.lanes &= ~o, $e(e, t, o)) : (t.flags |= 1, se(e, t, n, o), t.child); +} +function $s(e, t, n, r, o) { + if (fe(n)) { + var i = !0; + Br(t); + } else i = !1; + if (Yt(t, o), t.stateNode === null) e !== null && (e.alternate = null, t.alternate = null, t.flags |= 2), Nf(t, n, r), Bi(t, n, r, o), r = !0; + else if (e === null) { + var l = t.stateNode, u = t.memoizedProps; + l.props = u; + var s = l.context, a = n.contextType; + typeof a == "object" && a !== null ? a = ye(a) : (a = fe(n) ? xt : re.current, a = en(t, a)); + var p = n.getDerivedStateFromProps, w = typeof p == "function" || typeof l.getSnapshotBeforeUpdate == "function"; + w || typeof l.UNSAFE_componentWillReceiveProps != "function" && typeof l.componentWillReceiveProps != "function" || (u !== r || s !== a) && Ps(t, l, r, a), Fe = !1; + var m = t.memoizedState; + l.state = m, or(t, r, l, o), s = t.memoizedState, u !== r || m !== s || ae.current || Fe ? (typeof p == "function" && (so(t, n, p, r), s = t.memoizedState), (u = Fe || Cs(t, n, u, r, m, s, a)) ? (w || typeof l.UNSAFE_componentWillMount != "function" && typeof l.componentWillMount != "function" || (typeof l.componentWillMount == "function" && l.componentWillMount(), typeof l.UNSAFE_componentWillMount == "function" && l.UNSAFE_componentWillMount()), typeof l.componentDidMount == "function" && (t.flags |= 4)) : (typeof l.componentDidMount == "function" && (t.flags |= 4), t.memoizedProps = r, t.memoizedState = s), l.props = r, l.state = s, l.context = a, r = u) : (typeof l.componentDidMount == "function" && (t.flags |= 4), r = !1); + } else { + l = t.stateNode, jf(e, t), u = t.memoizedProps, a = t.type === t.elementType ? u : Oe(t.type, u), l.props = a, w = t.pendingProps, m = l.context, s = n.contextType, typeof s == "object" && s !== null ? s = ye(s) : (s = fe(n) ? xt : re.current, s = en(t, s)); + var E = n.getDerivedStateFromProps; + (p = typeof E == "function" || typeof l.getSnapshotBeforeUpdate == "function") || typeof l.UNSAFE_componentWillReceiveProps != "function" && typeof l.componentWillReceiveProps != "function" || (u !== w || m !== s) && Ps(t, l, r, s), Fe = !1, m = t.memoizedState, l.state = m, or(t, r, l, o); + var C = t.memoizedState; + u !== w || m !== C || ae.current || Fe ? (typeof E == "function" && (so(t, n, E, r), C = t.memoizedState), (a = Fe || Cs(t, n, a, r, m, C, s)) ? (p || typeof l.UNSAFE_componentWillUpdate != "function" && typeof l.componentWillUpdate != "function" || (typeof l.componentWillUpdate == "function" && l.componentWillUpdate( + r, + C, + s + ), typeof l.UNSAFE_componentWillUpdate == "function" && l.UNSAFE_componentWillUpdate(r, C, s)), typeof l.componentDidUpdate == "function" && (t.flags |= 4), typeof l.getSnapshotBeforeUpdate == "function" && (t.flags |= 256)) : (typeof l.componentDidUpdate != "function" || u === e.memoizedProps && m === e.memoizedState || (t.flags |= 4), typeof l.getSnapshotBeforeUpdate != "function" || u === e.memoizedProps && m === e.memoizedState || (t.flags |= 256), t.memoizedProps = r, t.memoizedState = C), l.props = r, l.state = C, l.context = s, r = a) : (typeof l.componentDidUpdate != "function" || u === e.memoizedProps && m === e.memoizedState || (t.flags |= 4), typeof l.getSnapshotBeforeUpdate != "function" || u === e.memoizedProps && m === e.memoizedState || (t.flags |= 256), r = !1); + } + return Yi(e, t, n, r, i, o); +} +function Yi(e, t, n, r, o, i) { + Vf(e, t); + var l = (t.flags & 64) !== 0; + if (!r && !l) return o && ws(t, n, !1), $e(e, t, i); + r = t.stateNode, yp.current = t; + var u = l && typeof n.getDerivedStateFromError != "function" ? null : r.render(); + return t.flags |= 1, e !== null && l ? (t.child = ao(t, e.child, null, i), t.child = ao(t, null, u, i)) : se(e, t, u, i), t.memoizedState = r.state, o && ws(t, n, !0), t.child; +} +function bs(e) { + var t = e.stateNode; + t.pendingContext ? gs(e, t.pendingContext, t.pendingContext !== t.context) : t.context && gs(e, t.context, !1), Wi(e, t.containerInfo); +} +var Lr = { dehydrated: null, retryLane: 0 }; +function Ms(e, t, n) { + var r = t.pendingProps, o = U.current, i = !1, l; + return (l = (t.flags & 64) !== 0) || (l = e !== null && e.memoizedState === null ? !1 : (o & 2) !== 0), l ? (i = !0, t.flags &= -65) : e !== null && e.memoizedState === null || r.fallback === void 0 || r.unstable_avoidThisFallback === !0 || (o |= 1), A(U, o & 1), e === null ? (r.fallback !== void 0 && Hi(t), e = r.children, o = r.fallback, i ? (e = zs(t, e, o, n), t.child.memoizedState = { baseLanes: n }, t.memoizedState = Lr, e) : typeof r.unstable_expectedLoadTime == "number" ? (e = zs(t, e, o, n), t.child.memoizedState = { baseLanes: n }, t.memoizedState = Lr, t.lanes = 33554432, e) : (n = mu({ mode: "visible", children: e }, t.mode, n, null), n.return = t, t.child = n)) : e.memoizedState !== null ? i ? (r = Fs(e, t, r.children, r.fallback, n), i = t.child, o = e.child.memoizedState, i.memoizedState = o === null ? { baseLanes: n } : { baseLanes: o.baseLanes | n }, i.childLanes = e.childLanes & ~n, t.memoizedState = Lr, r) : (n = Is(e, t, r.children, n), t.memoizedState = null, n) : i ? (r = Fs(e, t, r.children, r.fallback, n), i = t.child, o = e.child.memoizedState, i.memoizedState = o === null ? { baseLanes: n } : { baseLanes: o.baseLanes | n }, i.childLanes = e.childLanes & ~n, t.memoizedState = Lr, r) : (n = Is(e, t, r.children, n), t.memoizedState = null, n); +} +function zs(e, t, n, r) { + var o = e.mode, i = e.child; + return t = { mode: "hidden", children: t }, !(o & 2) && i !== null ? (i.childLanes = 0, i.pendingProps = t) : i = mu(t, o, 0, null), n = Jt(n, o, r, null), i.return = e, n.return = e, i.sibling = n, e.child = i, n; +} +function Is(e, t, n, r) { + var o = e.child; + return e = o.sibling, n = ot(o, { mode: "visible", children: n }), !(t.mode & 2) && (n.lanes = r), n.return = t, n.sibling = null, e !== null && (e.nextEffect = null, e.flags = 8, t.firstEffect = t.lastEffect = e), t.child = n; +} +function Fs(e, t, n, r, o) { + var i = t.mode, l = e.child; + e = l.sibling; + var u = { mode: "hidden", children: n }; + return !(i & 2) && t.child !== l ? (n = t.child, n.childLanes = 0, n.pendingProps = u, l = n.lastEffect, l !== null ? (t.firstEffect = n.firstEffect, t.lastEffect = l, l.nextEffect = null) : t.firstEffect = t.lastEffect = null) : n = ot(l, u), e !== null ? r = ot(e, r) : (r = Jt(r, i, o, null), r.flags |= 2), r.return = t, n.return = t, n.sibling = r, t.child = n, r; +} +function Us(e, t) { + e.lanes |= t; + var n = e.alternate; + n !== null && (n.lanes |= t), kf(e.return, t); +} +function di(e, t, n, r, o, i) { + var l = e.memoizedState; + l === null ? e.memoizedState = { isBackwards: t, rendering: null, renderingStartTime: 0, last: r, tail: n, tailMode: o, lastEffect: i } : (l.isBackwards = t, l.rendering = null, l.renderingStartTime = 0, l.last = r, l.tail = n, l.tailMode = o, l.lastEffect = i); +} +function As(e, t, n) { + var r = t.pendingProps, o = r.revealOrder, i = r.tail; + if (se(e, t, r.children, n), r = U.current, r & 2) r = r & 1 | 2, t.flags |= 64; + else { + if (e !== null && e.flags & 64) e: for (e = t.child; e !== null; ) { + if (e.tag === 13) e.memoizedState !== null && Us(e, n); + else if (e.tag === 19) Us(e, n); + else if (e.child !== null) { + e.child.return = e, e = e.child; + continue; + } + if (e === t) break e; + for (; e.sibling === null; ) { + if (e.return === null || e.return === t) break e; + e = e.return; + } + e.sibling.return = e.return, e = e.sibling; + } + r &= 1; + } + if (A(U, r), !(t.mode & 2)) t.memoizedState = null; + else switch (o) { + case "forwards": + for (n = t.child, o = null; n !== null; ) e = n.alternate, e !== null && fo(e) === null && (o = n), n = n.sibling; + n = o, n === null ? (o = t.child, t.child = null) : (o = n.sibling, n.sibling = null), di(t, !1, o, n, i, t.lastEffect); + break; + case "backwards": + for (n = null, o = t.child, t.child = null; o !== null; ) { + if (e = o.alternate, e !== null && fo(e) === null) { + t.child = o; + break; + } + e = o.sibling, o.sibling = n, n = o, o = e; + } + di(t, !0, n, null, i, t.lastEffect); + break; + case "together": + di(t, !1, null, null, void 0, t.lastEffect); + break; + default: + t.memoizedState = null; + } + return t.child; +} +function $e(e, t, n) { + if (e !== null && (t.dependencies = e.dependencies), Er |= t.lanes, n & t.childLanes) { + if (e !== null && t.child !== e.child) throw Error(g(153)); + if (t.child !== null) { + for (e = t.child, n = ot(e, e.pendingProps), t.child = n, n.return = t; e.sibling !== null; ) e = e.sibling, n = n.sibling = ot(e, e.pendingProps), n.return = t; + n.sibling = null; + } + return t.child; + } + return null; +} +var Bf, Xi, Wf, Hf; +Bf = function(e, t) { + for (var n = t.child; n !== null; ) { + if (n.tag === 5 || n.tag === 6) e.appendChild(n.stateNode); + else if (n.tag !== 4 && n.child !== null) { + n.child.return = n, n = n.child; + continue; + } + if (n === t) break; + for (; n.sibling === null; ) { + if (n.return === null || n.return === t) return; + n = n.return; + } + n.sibling.return = n.return, n = n.sibling; + } +}; +Xi = function() { +}; +Wf = function(e, t, n, r) { + var o = e.memoizedProps; + if (o !== r) { + e = t.stateNode, gt(je.current); + var i = null; + switch (n) { + case "input": + o = Si(e, o), r = Si(e, r), i = []; + break; + case "option": + o = Pi(e, o), r = Pi(e, r), i = []; + break; + case "select": + o = F({}, o, { value: void 0 }), r = F({}, r, { value: void 0 }), i = []; + break; + case "textarea": + o = _i(e, o), r = _i(e, r), i = []; + break; + default: + typeof o.onClick != "function" && typeof r.onClick == "function" && (e.onclick = no); + } + Ti(n, r); + var l; + n = null; + for (a in o) if (!r.hasOwnProperty(a) && o.hasOwnProperty(a) && o[a] != null) if (a === "style") { + var u = o[a]; + for (l in u) u.hasOwnProperty(l) && (n || (n = {}), n[l] = ""); + } else a !== "dangerouslySetInnerHTML" && a !== "children" && a !== "suppressContentEditableWarning" && a !== "suppressHydrationWarning" && a !== "autoFocus" && (Yn.hasOwnProperty(a) ? i || (i = []) : (i = i || []).push(a, null)); + for (a in r) { + var s = r[a]; + if (u = o != null ? o[a] : void 0, r.hasOwnProperty(a) && s !== u && (s != null || u != null)) if (a === "style") if (u) { + for (l in u) !u.hasOwnProperty(l) || s && s.hasOwnProperty(l) || (n || (n = {}), n[l] = ""); + for (l in s) s.hasOwnProperty(l) && u[l] !== s[l] && (n || (n = {}), n[l] = s[l]); + } else n || (i || (i = []), i.push(a, n)), n = s; + else a === "dangerouslySetInnerHTML" ? (s = s ? s.__html : void 0, u = u ? u.__html : void 0, s != null && u !== s && (i = i || []).push(a, s)) : a === "children" ? typeof s != "string" && typeof s != "number" || (i = i || []).push(a, "" + s) : a !== "suppressContentEditableWarning" && a !== "suppressHydrationWarning" && (Yn.hasOwnProperty(a) ? (s != null && a === "onScroll" && z("scroll", e), i || u === s || (i = [])) : typeof s == "object" && s !== null && s.$$typeof === $l ? s.toString() : (i = i || []).push(a, s)); + } + n && (i = i || []).push( + "style", + n + ); + var a = i; + (t.updateQueue = a) && (t.flags |= 4); + } +}; +Hf = function(e, t, n, r) { + n !== r && (t.flags |= 4); +}; +function kn(e, t) { + if (!Te) switch (e.tailMode) { + case "hidden": + t = e.tail; + for (var n = null; t !== null; ) t.alternate !== null && (n = t), t = t.sibling; + n === null ? e.tail = null : n.sibling = null; + break; + case "collapsed": + n = e.tail; + for (var r = null; n !== null; ) n.alternate !== null && (r = n), n = n.sibling; + r === null ? t || e.tail === null ? e.tail = null : e.tail.sibling = null : r.sibling = null; + } +} +function gp(e, t, n) { + var r = t.pendingProps; + switch (t.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 fe(t.type) && oo(), null; + case 3: + return nn(), I(ae), I(re), nu(), r = t.stateNode, r.pendingContext && (r.context = r.pendingContext, r.pendingContext = null), (e === null || e.child === null) && (Dr(t) ? t.flags |= 4 : r.hydrate || (t.flags |= 256)), Xi(t), null; + case 5: + tu(t); + var o = gt(lr.current); + if (n = t.type, e !== null && t.stateNode != null) Wf(e, t, n, r, o), e.ref !== t.ref && (t.flags |= 128); + else { + if (!r) { + if (t.stateNode === null) throw Error(g(166)); + return null; + } + if (e = gt(je.current), Dr(t)) { + r = t.stateNode, n = t.type; + var i = t.memoizedProps; + switch (r[We] = t, r[ro] = i, n) { + case "dialog": + z("cancel", r), z("close", r); + break; + case "iframe": + case "object": + case "embed": + z("load", r); + break; + case "video": + case "audio": + for (e = 0; e < Rn.length; e++) z(Rn[e], r); + break; + case "source": + z("error", r); + break; + case "img": + case "image": + case "link": + z("error", r), z("load", r); + break; + case "details": + z("toggle", r); + break; + case "input": + Au(r, i), z("invalid", r); + break; + case "select": + r._wrapperState = { wasMultiple: !!i.multiple }, z("invalid", r); + break; + case "textarea": + Bu(r, i), z("invalid", r); + } + Ti(n, i), e = null; + for (var l in i) i.hasOwnProperty(l) && (o = i[l], l === "children" ? typeof o == "string" ? r.textContent !== o && (e = ["children", o]) : typeof o == "number" && r.textContent !== "" + o && (e = ["children", "" + o]) : Yn.hasOwnProperty(l) && o != null && l === "onScroll" && z("scroll", r)); + switch (n) { + case "input": + _r(r), Vu(r, i, !0); + break; + case "textarea": + _r(r), Wu(r); + break; + case "select": + case "option": + break; + default: + typeof i.onClick == "function" && (r.onclick = no); + } + r = e, t.updateQueue = r, r !== null && (t.flags |= 4); + } else { + switch (l = o.nodeType === 9 ? o : o.ownerDocument, e === ki.html && (e = Ia(n)), e === ki.html ? n === "script" ? (e = l.createElement("div"), e.innerHTML = " +
+ + diff --git a/frontend/studio.html b/frontend/studio.html new file mode 100644 index 0000000..206edfc --- /dev/null +++ b/frontend/studio.html @@ -0,0 +1,18 @@ + + + + + + XBlock Accordion Studio View + + + + +
+ + diff --git a/frontend/tsconfig.app.json b/frontend/tsconfig.app.json new file mode 100644 index 0000000..e53d616 --- /dev/null +++ b/frontend/tsconfig.app.json @@ -0,0 +1,27 @@ +{ + "compilerOptions": { + "composite": true, + "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo", + "target": "ES2020", + "useDefineForClassFields": true, + "lib": ["ES2020", "DOM", "DOM.Iterable"], + "module": "ESNext", + "skipLibCheck": true, + + /* Bundler mode */ + "moduleResolution": "node", + "allowImportingTsExtensions": true, + "resolveJsonModule": true, + "isolatedModules": true, + "moduleDetection": "force", + "noEmit": true, + "jsx": "react-jsx", + + /* Linting */ + "strict": true, + "noUnusedLocals": true, + "noUnusedParameters": true, + "noFallthroughCasesInSwitch": true + }, + "include": ["src"] +} diff --git a/frontend/tsconfig.json b/frontend/tsconfig.json new file mode 100644 index 0000000..4392e5f --- /dev/null +++ b/frontend/tsconfig.json @@ -0,0 +1,12 @@ +{ + "extends": "@edx/typescript-config", + "compilerOptions": { + "outDir": "dist", + "baseUrl": "./src", + "paths": { + "*": ["*"] + } + }, + "include": ["*.js", ".eslintrc.js", "src/**/*", "plugins/**/*"], + "exclude": ["dist", "node_modules"] +} diff --git a/frontend/tsconfig.node.json b/frontend/tsconfig.node.json new file mode 100644 index 0000000..3afdd6e --- /dev/null +++ b/frontend/tsconfig.node.json @@ -0,0 +1,13 @@ +{ + "compilerOptions": { + "composite": true, + "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo", + "skipLibCheck": true, + "module": "ESNext", + "moduleResolution": "bundler", + "allowSyntheticDefaultImports": true, + "strict": true, + "noEmit": true + }, + "include": ["vite.config.ts"] +} diff --git a/frontend/vite.config.ts b/frontend/vite.config.ts new file mode 100644 index 0000000..6807547 --- /dev/null +++ b/frontend/vite.config.ts @@ -0,0 +1,36 @@ +import {resolve} from 'path'; +import {defineConfig} from 'vite' +import react from '@vitejs/plugin-react' + +// https://vitejs.dev/config/ +export default defineConfig(({command, mode}) => { + return { + base: "", + build: { + outDir: '../accordion/public', + lib: { + entry: process.env.COMPONENT === 'studio-ui' ? resolve(__dirname, 'src/studio-ui/index.tsx') : resolve(__dirname, 'src/student-ui/index.tsx'), + name: process.env.COMPONENT === 'studio-ui' ? 'XAccordionEditor' : 'XAccordionBlock', + fileName: process.env.COMPONENT === 'studio-ui' ? 'studio-ui' : 'student-ui', + formats: ["es"] + }, + rollupOptions: { + output: { + chunkFileNames: '[name].js', + assetFileNames: '[name][extname]', + } + } + }, + define: {'process.env.NODE_ENV': '"production"'}, + plugins: [react()], + resolve: { + alias: [ + { + // this is required for the SCSS modules + find: /^~(.*)$/, + replacement: '$1', + }, + ], + }, + }; +}) diff --git a/frontend/vite.web.config.ts b/frontend/vite.web.config.ts new file mode 100644 index 0000000..0060899 --- /dev/null +++ b/frontend/vite.web.config.ts @@ -0,0 +1,25 @@ +import { defineConfig } from 'vite' +import react from '@vitejs/plugin-react' +import {resolve} from "path"; + +// https://vitejs.dev/config/ +export default defineConfig({ + plugins: [react()], + build: { + rollupOptions: { + input: { + main: resolve(__dirname, 'student.html'), + studio: resolve(__dirname, 'studio.html'), + } + } + }, + resolve: { + alias: [ + { + // this is required for the SCSS modules + find: /^~(.*)$/, + replacement: '$1', + }, + ], + }, +}) diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..4bf09aa --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,58 @@ +[build-system] +requires = ["hatchling"] +build-backend = "hatchling.build" + +[project] +name = "xblock-accordion" +dynamic = ["version"] +description = "Accordion XBlock" +readme = "README.rst" +license = {file = "LICENSE.txt"} +requires-python = ">=3.8" +authors = [ + { name = "OpenCraft", email = "help+xblock@opencraft.com" }, +] +keywords = [ + "Python", + "edx", +] +classifiers = [ + "Development Status :: 3 - Alpha", + "Intended Audience :: Developers", + "License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)", + "Natural Language :: English", + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.8", + "Programming Language :: Python :: 3.11", +] +dependencies = [ + "django-statici18n", + "edx-i18n-tools", + "Mako", + "XBlock", + "xblock-utils", + "pydantic < 3.0", +] + +[project.entry-points."xblock.v1"] +accordion = "accordion:AccordionXBlock" + +[project.urls] +Homepage = "https://github.com/open-craft/xblock-accordion" + +[tool.hatch.version] +path = "accordion/__init__.py" + +[tool.hatch.build.targets.sdist] +include = [ + "/accordion", +] +[tool.hatch.build.targets.wheel] +packages = ["accordion"] + +[tool.isort] +include_trailing_comma = true +indent = ' ' +line_length = 120 +multi_line_output = 3 +skip=["migrations"] diff --git a/setup.cfg b/setup.cfg deleted file mode 100644 index d782599..0000000 --- a/setup.cfg +++ /dev/null @@ -1,10 +0,0 @@ -[isort] -include_trailing_comma = True -indent = ' ' -line_length = 120 -multi_line_output = 3 -skip= - migrations - -[wheel] -universal = 1 diff --git a/setup.py b/setup.py index 6a82c1b..bdf520b 100755 --- a/setup.py +++ b/setup.py @@ -178,5 +178,4 @@ def package_data(pkg, roots): ] }, package_data=package_data("accordion", ["static", "public"]), - )