UNPKG

one

Version:

One is a new React Framework that makes Vite serve both native and web.

2,069 lines 208 kB
/** * @license React * react-dom.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ /* Modernizr 3.0.0pre (Custom Build) | MIT */ 'use strict' var aa = require('react'), ca = require('scheduler') function p(a) { for ( var b = 'https://reactjs.org/docs/error-decoder.html?invariant=' + a, c = 1; c < arguments.length; c++ ) b += '&args[]=' + encodeURIComponent(arguments[c]) return ( 'Minified React error #' + a + '; visit ' + b + ' for the full message or use the non-minified dev environment for full errors and additional helpful warnings.' ) } var da = new Set(), ea = {} function fa(a, b) { ha(a, b) ha(a + 'Capture', b) } function ha(a, b) { ea[a] = b for (a = 0; a < b.length; a++) da.add(b[a]) } var ia = !( 'undefined' === typeof window || 'undefined' === typeof window.document || 'undefined' === typeof window.document.createElement ), ja = Object.prototype.hasOwnProperty, ka = /^[: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]*$/, la = {}, ma = {} function oa(a) { if (ja.call(ma, a)) return !0 if (ja.call(la, a)) return !1 if (ka.test(a)) return (ma[a] = !0) la[a] = !0 return !1 } function pa(a, b, c, d) { if (null !== c && 0 === c.type) return !1 switch (typeof b) { case 'function': case 'symbol': return !0 case 'boolean': if (d) return !1 if (null !== c) return !c.acceptsBooleans a = a.toLowerCase().slice(0, 5) return 'data-' !== a && 'aria-' !== a default: return !1 } } function qa(a, b, c, d) { if (null === b || 'undefined' === typeof b || pa(a, b, c, d)) return !0 if (d) return !1 if (null !== c) switch (c.type) { case 3: return !b case 4: return !1 === b case 5: return isNaN(b) case 6: return isNaN(b) || 1 > b } return !1 } function v(a, b, c, d, e, f, g) { this.acceptsBooleans = 2 === b || 3 === b || 4 === b this.attributeName = d this.attributeNamespace = e this.mustUseProperty = c this.propertyName = a this.type = b this.sanitizeURL = f this.removeEmptyString = g } var z = {} 'children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style' .split(' ') .forEach(function (a) { z[a] = new v(a, 0, !1, a, null, !1, !1) }) ;[ ['acceptCharset', 'accept-charset'], ['className', 'class'], ['htmlFor', 'for'], ['httpEquiv', 'http-equiv'], ].forEach(function (a) { var b = a[0] z[b] = new v(b, 1, !1, a[1], null, !1, !1) }) ;['contentEditable', 'draggable', 'spellCheck', 'value'].forEach(function (a) { z[a] = new v(a, 2, !1, a.toLowerCase(), null, !1, !1) }) ;['autoReverse', 'externalResourcesRequired', 'focusable', 'preserveAlpha'].forEach( function (a) { z[a] = new v(a, 2, !1, a, null, !1, !1) } ) 'allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope' .split(' ') .forEach(function (a) { z[a] = new v(a, 3, !1, a.toLowerCase(), null, !1, !1) }) ;['checked', 'multiple', 'muted', 'selected'].forEach(function (a) { z[a] = new v(a, 3, !0, a, null, !1, !1) }) ;['capture', 'download'].forEach(function (a) { z[a] = new v(a, 4, !1, a, null, !1, !1) }) ;['cols', 'rows', 'size', 'span'].forEach(function (a) { z[a] = new v(a, 6, !1, a, null, !1, !1) }) ;['rowSpan', 'start'].forEach(function (a) { z[a] = new v(a, 5, !1, a.toLowerCase(), null, !1, !1) }) var ra = /[\-:]([a-z])/g function sa(a) { return a[1].toUpperCase() } 'accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height' .split(' ') .forEach(function (a) { var b = a.replace(ra, sa) z[b] = new v(b, 1, !1, a, null, !1, !1) }) 'xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type' .split(' ') .forEach(function (a) { var b = a.replace(ra, sa) z[b] = new v(b, 1, !1, a, 'http://www.w3.org/1999/xlink', !1, !1) }) ;['xml:base', 'xml:lang', 'xml:space'].forEach(function (a) { var b = a.replace(ra, sa) z[b] = new v(b, 1, !1, a, 'http://www.w3.org/XML/1998/namespace', !1, !1) }) ;['tabIndex', 'crossOrigin'].forEach(function (a) { z[a] = new v(a, 1, !1, a.toLowerCase(), null, !1, !1) }) z.xlinkHref = new v( 'xlinkHref', 1, !1, 'xlink:href', 'http://www.w3.org/1999/xlink', !0, !1 ) ;['src', 'href', 'action', 'formAction'].forEach(function (a) { z[a] = new v(a, 1, !1, a.toLowerCase(), null, !0, !0) }) function ta(a, b, c, d) { var e = z.hasOwnProperty(b) ? z[b] : null if ( null !== e ? 0 !== e.type : d || !(2 < b.length) || ('o' !== b[0] && 'O' !== b[0]) || ('n' !== b[1] && 'N' !== b[1]) ) (qa(b, c, e, d) && (c = null), d || null === e ? oa(b) && (null === c ? a.removeAttribute(b) : a.setAttribute(b, '' + c)) : e.mustUseProperty ? (a[e.propertyName] = null === c ? (3 === e.type ? !1 : '') : c) : ((b = e.attributeName), (d = e.attributeNamespace), null === c ? a.removeAttribute(b) : ((e = e.type), (c = 3 === e || (4 === e && !0 === c) ? '' : '' + c), d ? a.setAttributeNS(d, b, c) : a.setAttribute(b, c)))) } var ua = aa.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, va = Symbol.for('react.element'), wa = Symbol.for('react.portal'), ya = Symbol.for('react.fragment'), za = Symbol.for('react.strict_mode'), Aa = Symbol.for('react.profiler'), Ba = Symbol.for('react.provider'), Ca = Symbol.for('react.context'), Da = Symbol.for('react.forward_ref'), Ea = Symbol.for('react.suspense'), Fa = Symbol.for('react.suspense_list'), Ga = Symbol.for('react.memo'), Ha = Symbol.for('react.lazy') Symbol.for('react.scope') Symbol.for('react.debug_trace_mode') var Ia = Symbol.for('react.offscreen') Symbol.for('react.legacy_hidden') Symbol.for('react.cache') Symbol.for('react.tracing_marker') var Ja = Symbol.iterator function Ka(a) { if (null === a || 'object' !== typeof a) return null a = (Ja && a[Ja]) || a['@@iterator'] return 'function' === typeof a ? a : null } var A = Object.assign, La function Ma(a) { if (void 0 === La) try { throw Error() } catch (c) { var b = c.stack.trim().match(/\n( *(at )?)/) La = (b && b[1]) || '' } return '\n' + La + a } var Na = !1 function Oa(a, b) { if (!a || Na) return '' Na = !0 var c = Error.prepareStackTrace Error.prepareStackTrace = void 0 try { if (b) if ( ((b = function () { throw Error() }), Object.defineProperty(b.prototype, 'props', { set: function () { throw Error() }, }), 'object' === typeof Reflect && Reflect.construct) ) { try { Reflect.construct(b, []) } catch (l) { var d = l } Reflect.construct(a, [], b) } else { try { b.call() } catch (l) { d = l } a.call(b.prototype) } else { try { throw Error() } catch (l) { d = l } a() } } catch (l) { if (l && d && 'string' === typeof l.stack) { for ( var e = l.stack.split('\n'), f = d.stack.split('\n'), g = e.length - 1, h = f.length - 1; 1 <= g && 0 <= h && e[g] !== f[h]; ) h-- for (; 1 <= g && 0 <= h; g--, h--) if (e[g] !== f[h]) { if (1 !== g || 1 !== h) { do if ((g--, h--, 0 > h || e[g] !== f[h])) { var k = '\n' + e[g].replace(' at new ', ' at ') a.displayName && k.includes('<anonymous>') && (k = k.replace('<anonymous>', a.displayName)) return k } while (1 <= g && 0 <= h) } break } } } finally { ;((Na = !1), (Error.prepareStackTrace = c)) } return (a = a ? a.displayName || a.name : '') ? Ma(a) : '' } function Pa(a) { switch (a.tag) { case 5: return Ma(a.type) case 16: return Ma('Lazy') case 13: return Ma('Suspense') case 19: return Ma('SuspenseList') case 0: case 2: case 15: return ((a = Oa(a.type, !1)), a) case 11: return ((a = Oa(a.type.render, !1)), a) case 1: return ((a = Oa(a.type, !0)), a) default: return '' } } function Qa(a) { if (null == a) return null if ('function' === typeof a) return a.displayName || a.name || null if ('string' === typeof a) return a switch (a) { case ya: return 'Fragment' case wa: return 'Portal' case Aa: return 'Profiler' case za: return 'StrictMode' case Ea: return 'Suspense' case Fa: return 'SuspenseList' } if ('object' === typeof a) switch (a.$$typeof) { case Ca: return (a.displayName || 'Context') + '.Consumer' case Ba: return (a._context.displayName || 'Context') + '.Provider' case Da: var b = a.render a = a.displayName a || ((a = b.displayName || b.name || ''), (a = '' !== a ? 'ForwardRef(' + a + ')' : 'ForwardRef')) return a case Ga: return ((b = a.displayName || null), null !== b ? b : Qa(a.type) || 'Memo') case Ha: b = a._payload a = a._init try { return Qa(a(b)) } catch (c) {} } return null } function Ra(a) { var b = a.type switch (a.tag) { case 24: return 'Cache' case 9: return (b.displayName || 'Context') + '.Consumer' case 10: return (b._context.displayName || 'Context') + '.Provider' case 18: return 'DehydratedFragment' case 11: return ( (a = b.render), (a = a.displayName || a.name || ''), b.displayName || ('' !== a ? 'ForwardRef(' + a + ')' : 'ForwardRef') ) case 7: return 'Fragment' case 5: return b case 4: return 'Portal' case 3: return 'Root' case 6: return 'Text' case 16: return Qa(b) case 8: return b === za ? 'StrictMode' : 'Mode' case 22: return 'Offscreen' case 12: return 'Profiler' case 21: return 'Scope' case 13: return 'Suspense' case 19: return 'SuspenseList' case 25: return 'TracingMarker' case 1: case 0: case 17: case 2: case 14: case 15: if ('function' === typeof b) return b.displayName || b.name || null if ('string' === typeof b) return b } return null } function Sa(a) { switch (typeof a) { case 'boolean': case 'number': case 'string': case 'undefined': return a case 'object': return a default: return '' } } function Ta(a) { var b = a.type return ( (a = a.nodeName) && 'input' === a.toLowerCase() && ('checkbox' === b || 'radio' === b) ) } function Ua(a) { var b = Ta(a) ? 'checked' : 'value', c = Object.getOwnPropertyDescriptor(a.constructor.prototype, b), d = '' + a[b] if ( !a.hasOwnProperty(b) && 'undefined' !== typeof c && 'function' === typeof c.get && 'function' === typeof c.set ) { var e = c.get, f = c.set Object.defineProperty(a, b, { configurable: !0, get: function () { return e.call(this) }, set: function (a) { d = '' + a f.call(this, a) }, }) Object.defineProperty(a, b, { enumerable: c.enumerable }) return { getValue: function () { return d }, setValue: function (a) { d = '' + a }, stopTracking: function () { a._valueTracker = null delete a[b] }, } } } function Va(a) { a._valueTracker || (a._valueTracker = Ua(a)) } function Wa(a) { if (!a) return !1 var b = a._valueTracker if (!b) return !0 var c = b.getValue() var d = '' a && (d = Ta(a) ? (a.checked ? 'true' : 'false') : a.value) a = d return a !== c ? (b.setValue(a), !0) : !1 } function Xa(a) { a = a || ('undefined' !== typeof document ? document : void 0) if ('undefined' === typeof a) return null try { return a.activeElement || a.body } catch (b) { return a.body } } function Ya(a, b) { var c = b.checked return A({}, b, { defaultChecked: void 0, defaultValue: void 0, value: void 0, checked: null != c ? c : a._wrapperState.initialChecked, }) } function Za(a, b) { var c = null == b.defaultValue ? '' : b.defaultValue, d = null != b.checked ? b.checked : b.defaultChecked c = Sa(null != b.value ? b.value : c) a._wrapperState = { initialChecked: d, initialValue: c, controlled: 'checkbox' === b.type || 'radio' === b.type ? null != b.checked : null != b.value, } } function ab(a, b) { b = b.checked null != b && ta(a, 'checked', b, !1) } function bb(a, b) { ab(a, b) var c = Sa(b.value), d = b.type if (null != c) if ('number' === d) { if ((0 === c && '' === a.value) || a.value != c) a.value = '' + c } else a.value !== '' + c && (a.value = '' + c) else if ('submit' === d || 'reset' === d) { a.removeAttribute('value') return } b.hasOwnProperty('value') ? cb(a, b.type, c) : b.hasOwnProperty('defaultValue') && cb(a, b.type, Sa(b.defaultValue)) null == b.checked && null != b.defaultChecked && (a.defaultChecked = !!b.defaultChecked) } function db(a, b, c) { if (b.hasOwnProperty('value') || b.hasOwnProperty('defaultValue')) { var d = b.type if (!(('submit' !== d && 'reset' !== d) || (void 0 !== b.value && null !== b.value))) return b = '' + a._wrapperState.initialValue c || b === a.value || (a.value = b) a.defaultValue = b } c = a.name '' !== c && (a.name = '') a.defaultChecked = !!a._wrapperState.initialChecked '' !== c && (a.name = c) } function cb(a, b, c) { if ('number' !== b || Xa(a.ownerDocument) !== a) null == c ? (a.defaultValue = '' + a._wrapperState.initialValue) : a.defaultValue !== '' + c && (a.defaultValue = '' + c) } var eb = Array.isArray function fb(a, b, c, d) { a = a.options if (b) { b = {} for (var e = 0; e < c.length; e++) b['$' + c[e]] = !0 for (c = 0; c < a.length; c++) ((e = b.hasOwnProperty('$' + a[c].value)), a[c].selected !== e && (a[c].selected = e), e && d && (a[c].defaultSelected = !0)) } else { c = '' + Sa(c) b = null for (e = 0; e < a.length; e++) { if (a[e].value === c) { a[e].selected = !0 d && (a[e].defaultSelected = !0) return } null !== b || a[e].disabled || (b = a[e]) } null !== b && (b.selected = !0) } } function gb(a, b) { if (null != b.dangerouslySetInnerHTML) throw Error(p(91)) return A({}, b, { value: void 0, defaultValue: void 0, children: '' + a._wrapperState.initialValue, }) } function hb(a, b) { var c = b.value if (null == c) { c = b.children b = b.defaultValue if (null != c) { if (null != b) throw Error(p(92)) if (eb(c)) { if (1 < c.length) throw Error(p(93)) c = c[0] } b = c } null == b && (b = '') c = b } a._wrapperState = { initialValue: Sa(c) } } function ib(a, b) { var c = Sa(b.value), d = Sa(b.defaultValue) null != c && ((c = '' + c), c !== a.value && (a.value = c), null == b.defaultValue && a.defaultValue !== c && (a.defaultValue = c)) null != d && (a.defaultValue = '' + d) } function jb(a) { var b = a.textContent b === a._wrapperState.initialValue && '' !== b && null !== b && (a.value = b) } function kb(a) { switch (a) { case 'svg': return 'http://www.w3.org/2000/svg' case 'math': return 'http://www.w3.org/1998/Math/MathML' default: return 'http://www.w3.org/1999/xhtml' } } function lb(a, b) { return null == a || 'http://www.w3.org/1999/xhtml' === a ? kb(b) : 'http://www.w3.org/2000/svg' === a && 'foreignObject' === b ? 'http://www.w3.org/1999/xhtml' : a } var mb, nb = (function (a) { return 'undefined' !== typeof MSApp && MSApp.execUnsafeLocalFunction ? function (b, c, d, e) { MSApp.execUnsafeLocalFunction(function () { return a(b, c, d, e) }) } : a })(function (a, b) { if ('http://www.w3.org/2000/svg' !== a.namespaceURI || 'innerHTML' in a) a.innerHTML = b else { mb = mb || document.createElement('div') mb.innerHTML = '<svg>' + b.valueOf().toString() + '</svg>' for (b = mb.firstChild; a.firstChild; ) a.removeChild(a.firstChild) for (; b.firstChild; ) a.appendChild(b.firstChild) } }) function ob(a, b) { if (b) { var c = a.firstChild if (c && c === a.lastChild && 3 === c.nodeType) { c.nodeValue = b return } } a.textContent = b } var pb = { animationIterationCount: !0, aspectRatio: !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, }, qb = ['Webkit', 'ms', 'Moz', 'O'] Object.keys(pb).forEach(function (a) { qb.forEach(function (b) { b = b + a.charAt(0).toUpperCase() + a.substring(1) pb[b] = pb[a] }) }) function rb(a, b, c) { return null == b || 'boolean' === typeof b || '' === b ? '' : c || 'number' !== typeof b || 0 === b || (pb.hasOwnProperty(a) && pb[a]) ? ('' + b).trim() : b + 'px' } function sb(a, b) { a = a.style for (var c in b) if (b.hasOwnProperty(c)) { var d = 0 === c.indexOf('--'), e = rb(c, b[c], d) 'float' === c && (c = 'cssFloat') d ? a.setProperty(c, e) : (a[c] = e) } } var tb = A( { 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 ub(a, b) { if (b) { if (tb[a] && (null != b.children || null != b.dangerouslySetInnerHTML)) throw Error(p(137, a)) if (null != b.dangerouslySetInnerHTML) { if (null != b.children) throw Error(p(60)) if ( 'object' !== typeof b.dangerouslySetInnerHTML || !('__html' in b.dangerouslySetInnerHTML) ) throw Error(p(61)) } if (null != b.style && 'object' !== typeof b.style) throw Error(p(62)) } } function vb(a, b) { if (-1 === a.indexOf('-')) return 'string' === typeof b.is switch (a) { case 'annotation-xml': case 'color-profile': case 'font-face': case 'font-face-src': case 'font-face-uri': case 'font-face-format': case 'font-face-name': case 'missing-glyph': return !1 default: return !0 } } var wb = null function xb(a) { a = a.target || a.srcElement || window a.correspondingUseElement && (a = a.correspondingUseElement) return 3 === a.nodeType ? a.parentNode : a } var yb = null, zb = null, Ab = null function Bb(a) { if ((a = Cb(a))) { if ('function' !== typeof yb) throw Error(p(280)) var b = a.stateNode b && ((b = Db(b)), yb(a.stateNode, a.type, b)) } } function Eb(a) { zb ? (Ab ? Ab.push(a) : (Ab = [a])) : (zb = a) } function Fb() { if (zb) { var a = zb, b = Ab Ab = zb = null Bb(a) if (b) for (a = 0; a < b.length; a++) Bb(b[a]) } } function Gb(a, b) { return a(b) } function Hb() {} var Ib = !1 function Jb(a, b, c) { if (Ib) return a(b, c) Ib = !0 try { return Gb(a, b, c) } finally { if (((Ib = !1), null !== zb || null !== Ab)) (Hb(), Fb()) } } function Kb(a, b) { var c = a.stateNode if (null === c) return null var d = Db(c) if (null === d) return null c = d[b] a: switch (b) { case 'onClick': case 'onClickCapture': case 'onDoubleClick': case 'onDoubleClickCapture': case 'onMouseDown': case 'onMouseDownCapture': case 'onMouseMove': case 'onMouseMoveCapture': case 'onMouseUp': case 'onMouseUpCapture': case 'onMouseEnter': ;(d = !d.disabled) || ((a = a.type), (d = !('button' === a || 'input' === a || 'select' === a || 'textarea' === a))) a = !d break a default: a = !1 } if (a) return null if (c && 'function' !== typeof c) throw Error(p(231, b, typeof c)) return c } var Lb = !1 if (ia) try { var Mb = {} Object.defineProperty(Mb, 'passive', { get: function () { Lb = !0 }, }) window.addEventListener('test', Mb, Mb) window.removeEventListener('test', Mb, Mb) } catch (a) { Lb = !1 } function Nb(a, b, c, d, e, f, g, h, k) { var l = Array.prototype.slice.call(arguments, 3) try { b.apply(c, l) } catch (m) { this.onError(m) } } var Ob = !1, Pb = null, Qb = !1, Rb = null, Sb = { onError: function (a) { Ob = !0 Pb = a }, } function Tb(a, b, c, d, e, f, g, h, k) { Ob = !1 Pb = null Nb.apply(Sb, arguments) } function Ub(a, b, c, d, e, f, g, h, k) { Tb.apply(this, arguments) if (Ob) { if (Ob) { var l = Pb Ob = !1 Pb = null } else throw Error(p(198)) Qb || ((Qb = !0), (Rb = l)) } } function Vb(a) { var b = a, c = a if (a.alternate) for (; b.return; ) b = b.return else { a = b do ((b = a), 0 !== (b.flags & 4098) && (c = b.return), (a = b.return)) while (a) } return 3 === b.tag ? c : null } function Wb(a) { if (13 === a.tag) { var b = a.memoizedState null === b && ((a = a.alternate), null !== a && (b = a.memoizedState)) if (null !== b) return b.dehydrated } return null } function Xb(a) { if (Vb(a) !== a) throw Error(p(188)) } function Yb(a) { var b = a.alternate if (!b) { b = Vb(a) if (null === b) throw Error(p(188)) return b !== a ? null : a } for (var c = a, d = b; ; ) { var e = c.return if (null === e) break var f = e.alternate if (null === f) { d = e.return if (null !== d) { c = d continue } break } if (e.child === f.child) { for (f = e.child; f; ) { if (f === c) return (Xb(e), a) if (f === d) return (Xb(e), b) f = f.sibling } throw Error(p(188)) } if (c.return !== d.return) ((c = e), (d = f)) else { for (var g = !1, h = e.child; h; ) { if (h === c) { g = !0 c = e d = f break } if (h === d) { g = !0 d = e c = f break } h = h.sibling } if (!g) { for (h = f.child; h; ) { if (h === c) { g = !0 c = f d = e break } if (h === d) { g = !0 d = f c = e break } h = h.sibling } if (!g) throw Error(p(189)) } } if (c.alternate !== d) throw Error(p(190)) } if (3 !== c.tag) throw Error(p(188)) return c.stateNode.current === c ? a : b } function Zb(a) { a = Yb(a) return null !== a ? $b(a) : null } function $b(a) { if (5 === a.tag || 6 === a.tag) return a for (a = a.child; null !== a; ) { var b = $b(a) if (null !== b) return b a = a.sibling } return null } var ac = ca.unstable_scheduleCallback, bc = ca.unstable_cancelCallback, cc = ca.unstable_shouldYield, dc = ca.unstable_requestPaint, B = ca.unstable_now, ec = ca.unstable_getCurrentPriorityLevel, fc = ca.unstable_ImmediatePriority, gc = ca.unstable_UserBlockingPriority, hc = ca.unstable_NormalPriority, ic = ca.unstable_LowPriority, jc = ca.unstable_IdlePriority, kc = null, lc = null function mc(a) { if (lc && 'function' === typeof lc.onCommitFiberRoot) try { lc.onCommitFiberRoot(kc, a, void 0, 128 === (a.current.flags & 128)) } catch (b) {} } var oc = Math.clz32 ? Math.clz32 : nc, pc = Math.log, qc = Math.LN2 function nc(a) { a >>>= 0 return 0 === a ? 32 : (31 - ((pc(a) / qc) | 0)) | 0 } var rc = 64, sc = 4194304 function tc(a) { switch (a & -a) { case 1: return 1 case 2: return 2 case 4: return 4 case 8: return 8 case 16: return 16 case 32: return 32 case 64: case 128: case 256: case 512: case 1024: case 2048: case 4096: case 8192: case 16384: case 32768: case 65536: case 131072: case 262144: case 524288: case 1048576: case 2097152: return a & 4194240 case 4194304: case 8388608: case 16777216: case 33554432: case 67108864: return a & 130023424 case 134217728: return 134217728 case 268435456: return 268435456 case 536870912: return 536870912 case 1073741824: return 1073741824 default: return a } } function uc(a, b) { var c = a.pendingLanes if (0 === c) return 0 var d = 0, e = a.suspendedLanes, f = a.pingedLanes, g = c & 268435455 if (0 !== g) { var h = g & ~e 0 !== h ? (d = tc(h)) : ((f &= g), 0 !== f && (d = tc(f))) } else ((g = c & ~e), 0 !== g ? (d = tc(g)) : 0 !== f && (d = tc(f))) if (0 === d) return 0 if ( 0 !== b && b !== d && 0 === (b & e) && ((e = d & -d), (f = b & -b), e >= f || (16 === e && 0 !== (f & 4194240))) ) return b 0 !== (d & 4) && (d |= c & 16) b = a.entangledLanes if (0 !== b) for (a = a.entanglements, b &= d; 0 < b; ) ((c = 31 - oc(b)), (e = 1 << c), (d |= a[c]), (b &= ~e)) return d } function vc(a, b) { switch (a) { case 1: case 2: case 4: return b + 250 case 8: case 16: case 32: case 64: case 128: case 256: case 512: case 1024: case 2048: case 4096: case 8192: case 16384: case 32768: case 65536: case 131072: case 262144: case 524288: case 1048576: case 2097152: return b + 5e3 case 4194304: case 8388608: case 16777216: case 33554432: case 67108864: return -1 case 134217728: case 268435456: case 536870912: case 1073741824: return -1 default: return -1 } } function wc(a, b) { for ( var c = a.suspendedLanes, d = a.pingedLanes, e = a.expirationTimes, f = a.pendingLanes; 0 < f; ) { var g = 31 - oc(f), h = 1 << g, k = e[g] if (-1 === k) { if (0 === (h & c) || 0 !== (h & d)) e[g] = vc(h, b) } else k <= b && (a.expiredLanes |= h) f &= ~h } } function xc(a) { a = a.pendingLanes & -1073741825 return 0 !== a ? a : a & 1073741824 ? 1073741824 : 0 } function yc() { var a = rc rc <<= 1 0 === (rc & 4194240) && (rc = 64) return a } function zc(a) { for (var b = [], c = 0; 31 > c; c++) b.push(a) return b } function Ac(a, b, c) { a.pendingLanes |= b 536870912 !== b && ((a.suspendedLanes = 0), (a.pingedLanes = 0)) a = a.eventTimes b = 31 - oc(b) a[b] = c } function Bc(a, b) { var c = a.pendingLanes & ~b a.pendingLanes = b a.suspendedLanes = 0 a.pingedLanes = 0 a.expiredLanes &= b a.mutableReadLanes &= b a.entangledLanes &= b b = a.entanglements var d = a.eventTimes for (a = a.expirationTimes; 0 < c; ) { var e = 31 - oc(c), f = 1 << e b[e] = 0 d[e] = -1 a[e] = -1 c &= ~f } } function Cc(a, b) { var c = (a.entangledLanes |= b) for (a = a.entanglements; c; ) { var d = 31 - oc(c), e = 1 << d ;(e & b) | (a[d] & b) && (a[d] |= b) c &= ~e } } var C = 0 function Dc(a) { a &= -a return 1 < a ? (4 < a ? (0 !== (a & 268435455) ? 16 : 536870912) : 4) : 1 } var Ec, Fc, Gc, Hc, Ic, Jc = !1, Kc = [], Lc = null, Mc = null, Nc = null, Oc = new Map(), Pc = new Map(), Qc = [], Rc = '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 Sc(a, b) { switch (a) { case 'focusin': case 'focusout': Lc = null break case 'dragenter': case 'dragleave': Mc = null break case 'mouseover': case 'mouseout': Nc = null break case 'pointerover': case 'pointerout': Oc.delete(b.pointerId) break case 'gotpointercapture': case 'lostpointercapture': Pc.delete(b.pointerId) } } function Tc(a, b, c, d, e, f) { if (null === a || a.nativeEvent !== f) return ( (a = { blockedOn: b, domEventName: c, eventSystemFlags: d, nativeEvent: f, targetContainers: [e], }), null !== b && ((b = Cb(b)), null !== b && Fc(b)), a ) a.eventSystemFlags |= d b = a.targetContainers null !== e && -1 === b.indexOf(e) && b.push(e) return a } function Uc(a, b, c, d, e) { switch (b) { case 'focusin': return ((Lc = Tc(Lc, a, b, c, d, e)), !0) case 'dragenter': return ((Mc = Tc(Mc, a, b, c, d, e)), !0) case 'mouseover': return ((Nc = Tc(Nc, a, b, c, d, e)), !0) case 'pointerover': var f = e.pointerId Oc.set(f, Tc(Oc.get(f) || null, a, b, c, d, e)) return !0 case 'gotpointercapture': return ((f = e.pointerId), Pc.set(f, Tc(Pc.get(f) || null, a, b, c, d, e)), !0) } return !1 } function Vc(a) { var b = Wc(a.target) if (null !== b) { var c = Vb(b) if (null !== c) if (((b = c.tag), 13 === b)) { if (((b = Wb(c)), null !== b)) { a.blockedOn = b Ic(a.priority, function () { Gc(c) }) return } } else if (3 === b && c.stateNode.current.memoizedState.isDehydrated) { a.blockedOn = 3 === c.tag ? c.stateNode.containerInfo : null return } } a.blockedOn = null } function Xc(a) { if (null !== a.blockedOn) return !1 for (var b = a.targetContainers; 0 < b.length; ) { var c = Yc(a.domEventName, a.eventSystemFlags, b[0], a.nativeEvent) if (null === c) { c = a.nativeEvent var d = new c.constructor(c.type, c) wb = d c.target.dispatchEvent(d) wb = null } else return ((b = Cb(c)), null !== b && Fc(b), (a.blockedOn = c), !1) b.shift() } return !0 } function Zc(a, b, c) { Xc(a) && c.delete(b) } function $c() { Jc = !1 null !== Lc && Xc(Lc) && (Lc = null) null !== Mc && Xc(Mc) && (Mc = null) null !== Nc && Xc(Nc) && (Nc = null) Oc.forEach(Zc) Pc.forEach(Zc) } function ad(a, b) { a.blockedOn === b && ((a.blockedOn = null), Jc || ((Jc = !0), ca.unstable_scheduleCallback(ca.unstable_NormalPriority, $c))) } function bd(a) { function b(b) { return ad(b, a) } if (0 < Kc.length) { ad(Kc[0], a) for (var c = 1; c < Kc.length; c++) { var d = Kc[c] d.blockedOn === a && (d.blockedOn = null) } } null !== Lc && ad(Lc, a) null !== Mc && ad(Mc, a) null !== Nc && ad(Nc, a) Oc.forEach(b) Pc.forEach(b) for (c = 0; c < Qc.length; c++) ((d = Qc[c]), d.blockedOn === a && (d.blockedOn = null)) for (; 0 < Qc.length && ((c = Qc[0]), null === c.blockedOn); ) (Vc(c), null === c.blockedOn && Qc.shift()) } var cd = ua.ReactCurrentBatchConfig, dd = !0 function ed(a, b, c, d) { var e = C, f = cd.transition cd.transition = null try { ;((C = 1), fd(a, b, c, d)) } finally { ;((C = e), (cd.transition = f)) } } function gd(a, b, c, d) { var e = C, f = cd.transition cd.transition = null try { ;((C = 4), fd(a, b, c, d)) } finally { ;((C = e), (cd.transition = f)) } } function fd(a, b, c, d) { if (dd) { var e = Yc(a, b, c, d) if (null === e) (hd(a, b, d, id, c), Sc(a, d)) else if (Uc(e, a, b, c, d)) d.stopPropagation() else if ((Sc(a, d), b & 4 && -1 < Rc.indexOf(a))) { for (; null !== e; ) { var f = Cb(e) null !== f && Ec(f) f = Yc(a, b, c, d) null === f && hd(a, b, d, id, c) if (f === e) break e = f } null !== e && d.stopPropagation() } else hd(a, b, d, null, c) } } var id = null function Yc(a, b, c, d) { id = null a = xb(d) a = Wc(a) if (null !== a) if (((b = Vb(a)), null === b)) a = null else if (((c = b.tag), 13 === c)) { a = Wb(b) if (null !== a) return a a = null } else if (3 === c) { if (b.stateNode.current.memoizedState.isDehydrated) return 3 === b.tag ? b.stateNode.containerInfo : null a = null } else b !== a && (a = null) id = a return null } function jd(a) { switch (a) { case 'cancel': case 'click': case 'close': case 'contextmenu': case 'copy': case 'cut': case 'auxclick': case 'dblclick': case 'dragend': case 'dragstart': case 'drop': case 'focusin': case 'focusout': case 'input': case 'invalid': case 'keydown': case 'keypress': case 'keyup': case 'mousedown': case 'mouseup': case 'paste': case 'pause': case 'play': case 'pointercancel': case 'pointerdown': case 'pointerup': case 'ratechange': case 'reset': case 'resize': case 'seeked': case 'submit': case 'touchcancel': case 'touchend': case 'touchstart': case 'volumechange': case 'change': case 'selectionchange': case 'textInput': case 'compositionstart': case 'compositionend': case 'compositionupdate': case 'beforeblur': case 'afterblur': case 'beforeinput': case 'blur': case 'fullscreenchange': case 'focus': case 'hashchange': case 'popstate': case 'select': case 'selectstart': return 1 case 'drag': case 'dragenter': case 'dragexit': case 'dragleave': case 'dragover': case 'mousemove': case 'mouseout': case 'mouseover': case 'pointermove': case 'pointerout': case 'pointerover': case 'scroll': case 'toggle': case 'touchmove': case 'wheel': case 'mouseenter': case 'mouseleave': case 'pointerenter': case 'pointerleave': return 4 case 'message': switch (ec()) { case fc: return 1 case gc: return 4 case hc: case ic: return 16 case jc: return 536870912 default: return 16 } default: return 16 } } var kd = null, ld = null, md = null function nd() { if (md) return md var a, b = ld, c = b.length, d, e = 'value' in kd ? kd.value : kd.textContent, f = e.length for (a = 0; a < c && b[a] === e[a]; a++); var g = c - a for (d = 1; d <= g && b[c - d] === e[f - d]; d++); return (md = e.slice(a, 1 < d ? 1 - d : void 0)) } function od(a) { var b = a.keyCode 'charCode' in a ? ((a = a.charCode), 0 === a && 13 === b && (a = 13)) : (a = b) 10 === a && (a = 13) return 32 <= a || 13 === a ? a : 0 } function pd() { return !0 } function qd() { return !1 } function rd(a) { function b(b, d, e, f, g) { this._reactName = b this._targetInst = e this.type = d this.nativeEvent = f this.target = g this.currentTarget = null for (var c in a) a.hasOwnProperty(c) && ((b = a[c]), (this[c] = b ? b(f) : f[c])) this.isDefaultPrevented = ( null != f.defaultPrevented ? f.defaultPrevented : !1 === f.returnValue ) ? pd : qd this.isPropagationStopped = qd return this } A(b.prototype, { preventDefault: function () { this.defaultPrevented = !0 var a = this.nativeEvent a && (a.preventDefault ? a.preventDefault() : 'unknown' !== typeof a.returnValue && (a.returnValue = !1), (this.isDefaultPrevented = pd)) }, stopPropagation: function () { var a = this.nativeEvent a && (a.stopPropagation ? a.stopPropagation() : 'unknown' !== typeof a.cancelBubble && (a.cancelBubble = !0), (this.isPropagationStopped = pd)) }, persist: function () {}, isPersistent: pd, }) return b } var sd = { eventPhase: 0, bubbles: 0, cancelable: 0, timeStamp: function (a) { return a.timeStamp || Date.now() }, defaultPrevented: 0, isTrusted: 0, }, td = rd(sd), ud = A({}, sd, { view: 0, detail: 0 }), vd = rd(ud), wd, xd, yd, Ad = A({}, ud, { screenX: 0, screenY: 0, clientX: 0, clientY: 0, pageX: 0, pageY: 0, ctrlKey: 0, shiftKey: 0, altKey: 0, metaKey: 0, getModifierState: zd, button: 0, buttons: 0, relatedTarget: function (a) { return void 0 === a.relatedTarget ? a.fromElement === a.srcElement ? a.toElement : a.fromElement : a.relatedTarget }, movementX: function (a) { if ('movementX' in a) return a.movementX a !== yd && (yd && 'mousemove' === a.type ? ((wd = a.screenX - yd.screenX), (xd = a.screenY - yd.screenY)) : (xd = wd = 0), (yd = a)) return wd }, movementY: function (a) { return 'movementY' in a ? a.movementY : xd }, }), Bd = rd(Ad), Cd = A({}, Ad, { dataTransfer: 0 }), Dd = rd(Cd), Ed = A({}, ud, { relatedTarget: 0 }), Fd = rd(Ed), Gd = A({}, sd, { animationName: 0, elapsedTime: 0, pseudoElement: 0 }), Hd = rd(Gd), Id = A({}, sd, { clipboardData: function (a) { return 'clipboardData' in a ? a.clipboardData : window.clipboardData }, }), Jd = rd(Id), Kd = A({}, sd, { data: 0 }), Ld = rd(Kd), Md = { Esc: 'Escape', Spacebar: ' ', Left: 'ArrowLeft', Up: 'ArrowUp', Right: 'ArrowRight', Down: 'ArrowDown', Del: 'Delete', Win: 'OS', Menu: 'ContextMenu', Apps: 'ContextMenu', Scroll: 'ScrollLock', MozPrintableKey: 'Unidentified', }, Nd = { 8: 'Backspace', 9: 'Tab', 12: 'Clear', 13: 'Enter', 16: 'Shift', 17: 'Control', 18: 'Alt', 19: 'Pause', 20: 'CapsLock', 27: 'Escape', 32: ' ', 33: 'PageUp', 34: 'PageDown', 35: 'End', 36: 'Home', 37: 'ArrowLeft', 38: 'ArrowUp', 39: 'ArrowRight', 40: 'ArrowDown', 45: 'Insert', 46: 'Delete', 112: 'F1', 113: 'F2', 114: 'F3', 115: 'F4', 116: 'F5', 117: 'F6', 118: 'F7', 119: 'F8', 120: 'F9', 121: 'F10', 122: 'F11', 123: 'F12', 144: 'NumLock', 145: 'ScrollLock', 224: 'Meta', }, Od = { Alt: 'altKey', Control: 'ctrlKey', Meta: 'metaKey', Shift: 'shiftKey' } function Pd(a) { var b = this.nativeEvent return b.getModifierState ? b.getModifierState(a) : (a = Od[a]) ? !!b[a] : !1 } function zd() { return Pd } var Qd = A({}, ud, { key: function (a) { if (a.key) { var b = Md[a.key] || a.key if ('Unidentified' !== b) return b } return 'keypress' === a.type ? ((a = od(a)), 13 === a ? 'Enter' : String.fromCharCode(a)) : 'keydown' === a.type || 'keyup' === a.type ? Nd[a.keyCode] || 'Unidentified' : '' }, code: 0, location: 0, ctrlKey: 0, shiftKey: 0, altKey: 0, metaKey: 0, repeat: 0, locale: 0, getModifierState: zd, charCode: function (a) { return 'keypress' === a.type ? od(a) : 0 }, keyCode: function (a) { return 'keydown' === a.type || 'keyup' === a.type ? a.keyCode : 0 }, which: function (a) { return 'keypress' === a.type ? od(a) : 'keydown' === a.type || 'keyup' === a.type ? a.keyCode : 0 }, }), Rd = rd(Qd), Sd = A({}, Ad, { pointerId: 0, width: 0, height: 0, pressure: 0, tangentialPressure: 0, tiltX: 0, tiltY: 0, twist: 0, pointerType: 0, isPrimary: 0, }), Td = rd(Sd), Ud = A({}, ud, { touches: 0, targetTouches: 0, changedTouches: 0, altKey: 0, metaKey: 0, ctrlKey: 0, shiftKey: 0, getModifierState: zd, }), Vd = rd(Ud), Wd = A({}, sd, { propertyName: 0, elapsedTime: 0, pseudoElement: 0 }), Xd = rd(Wd), Yd = A({}, Ad, { deltaX: function (a) { return 'deltaX' in a ? a.deltaX : 'wheelDeltaX' in a ? -a.wheelDeltaX : 0 }, deltaY: function (a) { return 'deltaY' in a ? a.deltaY : 'wheelDeltaY' in a ? -a.wheelDeltaY : 'wheelDelta' in a ? -a.wheelDelta : 0 }, deltaZ: 0, deltaMode: 0, }), Zd = rd(Yd), $d = [9, 13, 27, 32], ae = ia && 'CompositionEvent' in window, be = null ia && 'documentMode' in document && (be = document.documentMode) var ce = ia && 'TextEvent' in window && !be, de = ia && (!ae || (be && 8 < be && 11 >= be)), ee = String.fromCharCode(32), fe = !1 function ge(a, b) { switch (a) { case 'keyup': return -1 !== $d.indexOf(b.keyCode) case 'keydown': return 229 !== b.keyCode case 'keypress': case 'mousedown': case 'focusout': return !0 default: return !1 } } function he(a) { a = a.detail return 'object' === typeof a && 'data' in a ? a.data : null } var ie = !1 function je(a, b) { switch (a) { case 'compositionend': return he(b) case 'keypress': if (32 !== b.which) return null fe = !0 return ee case 'textInput': return ((a = b.data), a === ee && fe ? null : a) default: return null } } function ke(a, b) { if (ie) return 'compositionend' === a || (!ae && ge(a, b)) ? ((a = nd()), (md = ld = kd = null), (ie = !1), a) : null switch (a) { case 'paste': return null case 'keypress': if (!(b.ctrlKey || b.altKey || b.metaKey) || (b.ctrlKey && b.altKey)) { if (b.char && 1 < b.char.length) return b.char if (b.which) return String.fromCharCode(b.which) } return null case 'compositionend': return de && 'ko' !== b.locale ? null : b.data default: return null } } var le = { color: !0, date: !0, datetime: !0, 'datetime-local': !0, email: !0, month: !0, number: !0, password: !0, range: !0, search: !0, tel: !0, text: !0, time: !0, url: !0, week: !0, } function me(a) { var b = a && a.nodeName && a.nodeName.toLowerCase() return 'input' === b ? !!le[a.type] : 'textarea' === b ? !0 : !1 } function ne(a, b, c, d) { Eb(d) b = oe(b, 'onChange') 0 < b.length && ((c = new td('onChange', 'change', null, c, d)), a.push({ event: c, listeners: b })) } var pe = null, qe = null function re(a) { se(a, 0) } function te(a) { var b = ue(a) if (Wa(b)) return a } function ve(a, b) { if ('change' === a) return b } var we = !1 if (ia) { var xe if (ia) { var ye = 'oninput' in document if (!ye) { var ze = document.createElement('div') ze.setAttribute('oninput', 'return;') ye = 'function' === typeof ze.oninput } xe = ye } else xe = !1 we = xe && (!document.documentMode || 9 < document.documentMode) } function Ae() { pe && (pe.detachEvent('onpropertychange', Be), (qe = pe = null)) } function Be(a) { if ('value' === a.propertyName && te(qe)) { var b = [] ne(b, qe, a, xb(a)) Jb(re, b) } } function Ce(a, b, c) { 'focusin' === a ? (Ae(), (pe = b), (qe = c), pe.attachEvent('onpropertychange', Be)) : 'focusout' === a && Ae() } function De(a) { if ('selectionchange' === a || 'keyup' === a || 'keydown' === a) return te(qe) } function Ee(a, b) { if ('click' === a) return te(b) } function Fe(a, b) { if ('input' === a || 'change' === a) return te(b) } function Ge(a, b) { return (a === b && (0 !== a || 1 / a === 1 / b)) || (a !== a && b !== b) } var He = 'function' === typeof Object.is ? Object.is : Ge function Ie(a, b) { if (He(a, b)) return !0 if ('object' !== typeof a || null === a || 'object' !== typeof b || null === b) return !1 var c = Object.keys(a), d = Object.keys(b) if (c.length !== d.length) return !1 for (d = 0; d < c.length; d++) { var e = c[d] if (!ja.call(b, e) || !He(a[e], b[e])) return !1 } return !0 } function Je(a) { for (; a && a.firstChild; ) a = a.firstChild return a } function Ke(a, b) { var c = Je(a) a = 0 for (var d; c; ) { if (3 === c.nodeType) { d = a + c.textContent.length if (a <= b && d >= b) return { node: c, offset: b - a } a = d } a: { for (; c; ) { if (c.nextSibling) { c = c.nextSibling break a } c = c.parentNode } c = void 0 } c = Je(c) } } function Le(a, b) { return a && b ? a === b ? !0 : a && 3 === a.nodeType ? !1 : b && 3 === b.nodeType ? Le(a, b.parentNode) : 'contains' in a ? a.contains(b) : a.compareDocumentPosition ? !!(a.compareDocumentPosition(b) & 16) : !1 : !1 } function Me() { for (var a = window, b = Xa(); b instanceof a.HTMLIFrameElement; ) { try { var c = 'string' === typeof b.contentWindow.location.href } catch (d) { c = !1 } if (c) a = b.contentWindow else break b = Xa(a.document) } return b } function Ne(a) { var b = a && a.nodeName && a.nodeName.toLowerCase() return ( b && (('input' === b && ('text' === a.type || 'search' === a.type || 'tel' === a.type || 'url' === a.type || 'password' === a.type)) || 'textarea' === b || 'true' === a.contentEditable) ) } function Oe(a) { var b = Me(), c = a.focusedElem, d = a.selectionRange if (b !== c && c && c.ownerDocument && Le(c.ownerDocument.documentElement, c)) { if (null !== d && Ne(c)) if (((b = d.start), (a = d.end), void 0 === a && (a = b), 'selectionStart' in c)) ((c.selectionStart = b), (c.selectionEnd = Math.min(a, c.value.length))) else if ( ((a = ((b = c.ownerDocument || document) && b.defaultView) || window), a.getSelection) ) { a = a.getSelection() var e = c.textContent.length, f = Math.min(d.start, e) d = void 0 === d.end ? f : Math.min(d.end, e) !a.extend && f > d && ((e = d), (d = f), (f = e)) e = Ke(c, f) var g = Ke(c, d) e && g && (1 !== a.rangeCount || a.anchorNode !== e.node || a.anchorOffset !== e.offset || a.focusNode !== g.node || a.focusOffset !== g.offset) && ((b = b.createRange()), b.setStart(e.node, e.offset), a.removeAllRanges(), f > d ? (a.addRange(b), a.extend(g.node, g.offset)) : (b.setEnd(g.node, g.offset), a.addRange(b))) } b = [] for (a = c; (a = a.parentNode); ) 1 === a.nodeType && b.push({ element: a, left: a.scrollLeft, top: a.scrollTop }) 'function' === typeof c.focus && c.focus() for (c = 0; c < b.length; c++) ((a = b[c]), (a.element.scrollLeft = a.left), (a.element.scrollTop = a.top)) } } var Pe = ia && 'documentMode' in document && 11 >= document.documentMode, Qe = null, Re = null, Se = null, Te = !1 function Ue(a, b, c) { var d = c.window === c ? c.document : 9 === c.nodeTy