Pixiv 自动排除搜索

Pixiv 自动排除特定标签,自动过滤与 "users"。

  1. // ==UserScript==
  2. // @name Pixiv Automatic exclusion search
  3. // @name:zh-CN Pixiv 自动排除搜索
  4. // @name:ja Pixiv 自動で除外検索
  5. // @version 0.3.2
  6. // @license MIT
  7. // @author yakisova41
  8. // @namespace https://yakisova.com/
  9. // @description Pixiv Automatically exclude specific tags] auto filter with "users"
  10. // @description:ja Pixiv 特定タグを自動除外 users入りのみに自動絞り込みする機能を追加します。
  11. // @description:zh-CN Pixiv 自动排除特定标签,自动过滤与 "users"。
  12. // @match https://www.pixiv.net/*
  13. // @grant none
  14. // ==/UserScript==
  15.  
  16. var __create = Object.create;
  17. var __defProp = Object.defineProperty;
  18. var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
  19. var __getOwnPropNames = Object.getOwnPropertyNames;
  20. var __getProtoOf = Object.getPrototypeOf;
  21. var __hasOwnProp = Object.prototype.hasOwnProperty;
  22. var __commonJS = (cb, mod) => function __require() {
  23. return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
  24. };
  25. var __copyProps = (to, from, except, desc) => {
  26. if (from && typeof from === "object" || typeof from === "function") {
  27. for (let key of __getOwnPropNames(from))
  28. if (!__hasOwnProp.call(to, key) && key !== except)
  29. __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
  30. }
  31. return to;
  32. };
  33. var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
  34. // If the importer is in node compatibility mode or this is not an ESM
  35. // file that has been converted to a CommonJS file using a Babel-
  36. // compatible transform (i.e. "__esModule" has not been set), then set
  37. // "default" to the CommonJS "module.exports" for node compatibility.
  38. isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
  39. mod
  40. ));
  41.  
  42. // node_modules/react/cjs/react.production.min.js
  43. var require_react_production_min = __commonJS({
  44. "node_modules/react/cjs/react.production.min.js"(exports2) {
  45. "use strict";
  46. var l = Symbol.for("react.element");
  47. var n = Symbol.for("react.portal");
  48. var p = Symbol.for("react.fragment");
  49. var q = Symbol.for("react.strict_mode");
  50. var r = Symbol.for("react.profiler");
  51. var t = Symbol.for("react.provider");
  52. var u = Symbol.for("react.context");
  53. var v = Symbol.for("react.forward_ref");
  54. var w = Symbol.for("react.suspense");
  55. var x = Symbol.for("react.memo");
  56. var y = Symbol.for("react.lazy");
  57. var z = Symbol.iterator;
  58. function A(a) {
  59. if (null === a || "object" !== typeof a)
  60. return null;
  61. a = z && a[z] || a["@@iterator"];
  62. return "function" === typeof a ? a : null;
  63. }
  64. var B = { isMounted: function() {
  65. return false;
  66. }, enqueueForceUpdate: function() {
  67. }, enqueueReplaceState: function() {
  68. }, enqueueSetState: function() {
  69. } };
  70. var C = Object.assign;
  71. var D = {};
  72. function E(a, b, e) {
  73. this.props = a;
  74. this.context = b;
  75. this.refs = D;
  76. this.updater = e || B;
  77. }
  78. E.prototype.isReactComponent = {};
  79. E.prototype.setState = function(a, b) {
  80. if ("object" !== typeof a && "function" !== typeof a && null != a)
  81. throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");
  82. this.updater.enqueueSetState(this, a, b, "setState");
  83. };
  84. E.prototype.forceUpdate = function(a) {
  85. this.updater.enqueueForceUpdate(this, a, "forceUpdate");
  86. };
  87. function F() {
  88. }
  89. F.prototype = E.prototype;
  90. function G(a, b, e) {
  91. this.props = a;
  92. this.context = b;
  93. this.refs = D;
  94. this.updater = e || B;
  95. }
  96. var H = G.prototype = new F();
  97. H.constructor = G;
  98. C(H, E.prototype);
  99. H.isPureReactComponent = true;
  100. var I = Array.isArray;
  101. var J = Object.prototype.hasOwnProperty;
  102. var K = { current: null };
  103. var L = { key: true, ref: true, __self: true, __source: true };
  104. function M(a, b, e) {
  105. var d, c = {}, k = null, h = null;
  106. if (null != b)
  107. for (d in void 0 !== b.ref && (h = b.ref), void 0 !== b.key && (k = "" + b.key), b)
  108. J.call(b, d) && !L.hasOwnProperty(d) && (c[d] = b[d]);
  109. var g = arguments.length - 2;
  110. if (1 === g)
  111. c.children = e;
  112. else if (1 < g) {
  113. for (var f = Array(g), m = 0; m < g; m++)
  114. f[m] = arguments[m + 2];
  115. c.children = f;
  116. }
  117. if (a && a.defaultProps)
  118. for (d in g = a.defaultProps, g)
  119. void 0 === c[d] && (c[d] = g[d]);
  120. return { $$typeof: l, type: a, key: k, ref: h, props: c, _owner: K.current };
  121. }
  122. function N(a, b) {
  123. return { $$typeof: l, type: a.type, key: b, ref: a.ref, props: a.props, _owner: a._owner };
  124. }
  125. function O(a) {
  126. return "object" === typeof a && null !== a && a.$$typeof === l;
  127. }
  128. function escape(a) {
  129. var b = { "=": "=0", ":": "=2" };
  130. return "$" + a.replace(/[=:]/g, function(a2) {
  131. return b[a2];
  132. });
  133. }
  134. var P = /\/+/g;
  135. function Q(a, b) {
  136. return "object" === typeof a && null !== a && null != a.key ? escape("" + a.key) : b.toString(36);
  137. }
  138. function R(a, b, e, d, c) {
  139. var k = typeof a;
  140. if ("undefined" === k || "boolean" === k)
  141. a = null;
  142. var h = false;
  143. if (null === a)
  144. h = true;
  145. else
  146. switch (k) {
  147. case "string":
  148. case "number":
  149. h = true;
  150. break;
  151. case "object":
  152. switch (a.$$typeof) {
  153. case l:
  154. case n:
  155. h = true;
  156. }
  157. }
  158. if (h)
  159. return h = a, c = c(h), a = "" === d ? "." + Q(h, 0) : d, I(c) ? (e = "", null != a && (e = a.replace(P, "$&/") + "/"), R(c, b, e, "", function(a2) {
  160. return a2;
  161. })) : null != c && (O(c) && (c = N(c, e + (!c.key || h && h.key === c.key ? "" : ("" + c.key).replace(P, "$&/") + "/") + a)), b.push(c)), 1;
  162. h = 0;
  163. d = "" === d ? "." : d + ":";
  164. if (I(a))
  165. for (var g = 0; g < a.length; g++) {
  166. k = a[g];
  167. var f = d + Q(k, g);
  168. h += R(k, b, e, f, c);
  169. }
  170. else if (f = A(a), "function" === typeof f)
  171. for (a = f.call(a), g = 0; !(k = a.next()).done; )
  172. k = k.value, f = d + Q(k, g++), h += R(k, b, e, f, c);
  173. else if ("object" === k)
  174. throw b = String(a), Error("Objects are not valid as a React child (found: " + ("[object Object]" === b ? "object with keys {" + Object.keys(a).join(", ") + "}" : b) + "). If you meant to render a collection of children, use an array instead.");
  175. return h;
  176. }
  177. function S(a, b, e) {
  178. if (null == a)
  179. return a;
  180. var d = [], c = 0;
  181. R(a, d, "", "", function(a2) {
  182. return b.call(e, a2, c++);
  183. });
  184. return d;
  185. }
  186. function T(a) {
  187. if (-1 === a._status) {
  188. var b = a._result;
  189. b = b();
  190. b.then(function(b2) {
  191. if (0 === a._status || -1 === a._status)
  192. a._status = 1, a._result = b2;
  193. }, function(b2) {
  194. if (0 === a._status || -1 === a._status)
  195. a._status = 2, a._result = b2;
  196. });
  197. -1 === a._status && (a._status = 0, a._result = b);
  198. }
  199. if (1 === a._status)
  200. return a._result.default;
  201. throw a._result;
  202. }
  203. var U = { current: null };
  204. var V = { transition: null };
  205. var W = { ReactCurrentDispatcher: U, ReactCurrentBatchConfig: V, ReactCurrentOwner: K };
  206. function X() {
  207. throw Error("act(...) is not supported in production builds of React.");
  208. }
  209. exports2.Children = { map: S, forEach: function(a, b, e) {
  210. S(a, function() {
  211. b.apply(this, arguments);
  212. }, e);
  213. }, count: function(a) {
  214. var b = 0;
  215. S(a, function() {
  216. b++;
  217. });
  218. return b;
  219. }, toArray: function(a) {
  220. return S(a, function(a2) {
  221. return a2;
  222. }) || [];
  223. }, only: function(a) {
  224. if (!O(a))
  225. throw Error("React.Children.only expected to receive a single React element child.");
  226. return a;
  227. } };
  228. exports2.Component = E;
  229. exports2.Fragment = p;
  230. exports2.Profiler = r;
  231. exports2.PureComponent = G;
  232. exports2.StrictMode = q;
  233. exports2.Suspense = w;
  234. exports2.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = W;
  235. exports2.act = X;
  236. exports2.cloneElement = function(a, b, e) {
  237. if (null === a || void 0 === a)
  238. throw Error("React.cloneElement(...): The argument must be a React element, but you passed " + a + ".");
  239. var d = C({}, a.props), c = a.key, k = a.ref, h = a._owner;
  240. if (null != b) {
  241. void 0 !== b.ref && (k = b.ref, h = K.current);
  242. void 0 !== b.key && (c = "" + b.key);
  243. if (a.type && a.type.defaultProps)
  244. var g = a.type.defaultProps;
  245. for (f in b)
  246. J.call(b, f) && !L.hasOwnProperty(f) && (d[f] = void 0 === b[f] && void 0 !== g ? g[f] : b[f]);
  247. }
  248. var f = arguments.length - 2;
  249. if (1 === f)
  250. d.children = e;
  251. else if (1 < f) {
  252. g = Array(f);
  253. for (var m = 0; m < f; m++)
  254. g[m] = arguments[m + 2];
  255. d.children = g;
  256. }
  257. return { $$typeof: l, type: a.type, key: c, ref: k, props: d, _owner: h };
  258. };
  259. exports2.createContext = function(a) {
  260. a = { $$typeof: u, _currentValue: a, _currentValue2: a, _threadCount: 0, Provider: null, Consumer: null, _defaultValue: null, _globalName: null };
  261. a.Provider = { $$typeof: t, _context: a };
  262. return a.Consumer = a;
  263. };
  264. exports2.createElement = M;
  265. exports2.createFactory = function(a) {
  266. var b = M.bind(null, a);
  267. b.type = a;
  268. return b;
  269. };
  270. exports2.createRef = function() {
  271. return { current: null };
  272. };
  273. exports2.forwardRef = function(a) {
  274. return { $$typeof: v, render: a };
  275. };
  276. exports2.isValidElement = O;
  277. exports2.lazy = function(a) {
  278. return { $$typeof: y, _payload: { _status: -1, _result: a }, _init: T };
  279. };
  280. exports2.memo = function(a, b) {
  281. return { $$typeof: x, type: a, compare: void 0 === b ? null : b };
  282. };
  283. exports2.startTransition = function(a) {
  284. var b = V.transition;
  285. V.transition = {};
  286. try {
  287. a();
  288. } finally {
  289. V.transition = b;
  290. }
  291. };
  292. exports2.unstable_act = X;
  293. exports2.useCallback = function(a, b) {
  294. return U.current.useCallback(a, b);
  295. };
  296. exports2.useContext = function(a) {
  297. return U.current.useContext(a);
  298. };
  299. exports2.useDebugValue = function() {
  300. };
  301. exports2.useDeferredValue = function(a) {
  302. return U.current.useDeferredValue(a);
  303. };
  304. exports2.useEffect = function(a, b) {
  305. return U.current.useEffect(a, b);
  306. };
  307. exports2.useId = function() {
  308. return U.current.useId();
  309. };
  310. exports2.useImperativeHandle = function(a, b, e) {
  311. return U.current.useImperativeHandle(a, b, e);
  312. };
  313. exports2.useInsertionEffect = function(a, b) {
  314. return U.current.useInsertionEffect(a, b);
  315. };
  316. exports2.useLayoutEffect = function(a, b) {
  317. return U.current.useLayoutEffect(a, b);
  318. };
  319. exports2.useMemo = function(a, b) {
  320. return U.current.useMemo(a, b);
  321. };
  322. exports2.useReducer = function(a, b, e) {
  323. return U.current.useReducer(a, b, e);
  324. };
  325. exports2.useRef = function(a) {
  326. return U.current.useRef(a);
  327. };
  328. exports2.useState = function(a) {
  329. return U.current.useState(a);
  330. };
  331. exports2.useSyncExternalStore = function(a, b, e) {
  332. return U.current.useSyncExternalStore(a, b, e);
  333. };
  334. exports2.useTransition = function() {
  335. return U.current.useTransition();
  336. };
  337. exports2.version = "18.3.1";
  338. }
  339. });
  340.  
  341. // node_modules/react/index.js
  342. var require_react = __commonJS({
  343. "node_modules/react/index.js"(exports2, module2) {
  344. "use strict";
  345. if (true) {
  346. module2.exports = require_react_production_min();
  347. } else {
  348. module2.exports = null;
  349. }
  350. }
  351. });
  352.  
  353. // node_modules/scheduler/cjs/scheduler.production.min.js
  354. var require_scheduler_production_min = __commonJS({
  355. "node_modules/scheduler/cjs/scheduler.production.min.js"(exports2) {
  356. "use strict";
  357. function f(a, b) {
  358. var c = a.length;
  359. a.push(b);
  360. a:
  361. for (; 0 < c; ) {
  362. var d = c - 1 >>> 1, e = a[d];
  363. if (0 < g(e, b))
  364. a[d] = b, a[c] = e, c = d;
  365. else
  366. break a;
  367. }
  368. }
  369. function h(a) {
  370. return 0 === a.length ? null : a[0];
  371. }
  372. function k(a) {
  373. if (0 === a.length)
  374. return null;
  375. var b = a[0], c = a.pop();
  376. if (c !== b) {
  377. a[0] = c;
  378. a:
  379. for (var d = 0, e = a.length, w = e >>> 1; d < w; ) {
  380. var m = 2 * (d + 1) - 1, C = a[m], n = m + 1, x = a[n];
  381. if (0 > g(C, c))
  382. n < e && 0 > g(x, C) ? (a[d] = x, a[n] = c, d = n) : (a[d] = C, a[m] = c, d = m);
  383. else if (n < e && 0 > g(x, c))
  384. a[d] = x, a[n] = c, d = n;
  385. else
  386. break a;
  387. }
  388. }
  389. return b;
  390. }
  391. function g(a, b) {
  392. var c = a.sortIndex - b.sortIndex;
  393. return 0 !== c ? c : a.id - b.id;
  394. }
  395. if ("object" === typeof performance && "function" === typeof performance.now) {
  396. l = performance;
  397. exports2.unstable_now = function() {
  398. return l.now();
  399. };
  400. } else {
  401. p = Date, q = p.now();
  402. exports2.unstable_now = function() {
  403. return p.now() - q;
  404. };
  405. }
  406. var l;
  407. var p;
  408. var q;
  409. var r = [];
  410. var t = [];
  411. var u = 1;
  412. var v = null;
  413. var y = 3;
  414. var z = false;
  415. var A = false;
  416. var B = false;
  417. var D = "function" === typeof setTimeout ? setTimeout : null;
  418. var E = "function" === typeof clearTimeout ? clearTimeout : null;
  419. var F = "undefined" !== typeof setImmediate ? setImmediate : null;
  420. "undefined" !== typeof navigator && void 0 !== navigator.scheduling && void 0 !== navigator.scheduling.isInputPending && navigator.scheduling.isInputPending.bind(navigator.scheduling);
  421. function G(a) {
  422. for (var b = h(t); null !== b; ) {
  423. if (null === b.callback)
  424. k(t);
  425. else if (b.startTime <= a)
  426. k(t), b.sortIndex = b.expirationTime, f(r, b);
  427. else
  428. break;
  429. b = h(t);
  430. }
  431. }
  432. function H(a) {
  433. B = false;
  434. G(a);
  435. if (!A)
  436. if (null !== h(r))
  437. A = true, I(J);
  438. else {
  439. var b = h(t);
  440. null !== b && K(H, b.startTime - a);
  441. }
  442. }
  443. function J(a, b) {
  444. A = false;
  445. B && (B = false, E(L), L = -1);
  446. z = true;
  447. var c = y;
  448. try {
  449. G(b);
  450. for (v = h(r); null !== v && (!(v.expirationTime > b) || a && !M()); ) {
  451. var d = v.callback;
  452. if ("function" === typeof d) {
  453. v.callback = null;
  454. y = v.priorityLevel;
  455. var e = d(v.expirationTime <= b);
  456. b = exports2.unstable_now();
  457. "function" === typeof e ? v.callback = e : v === h(r) && k(r);
  458. G(b);
  459. } else
  460. k(r);
  461. v = h(r);
  462. }
  463. if (null !== v)
  464. var w = true;
  465. else {
  466. var m = h(t);
  467. null !== m && K(H, m.startTime - b);
  468. w = false;
  469. }
  470. return w;
  471. } finally {
  472. v = null, y = c, z = false;
  473. }
  474. }
  475. var N = false;
  476. var O = null;
  477. var L = -1;
  478. var P = 5;
  479. var Q = -1;
  480. function M() {
  481. return exports2.unstable_now() - Q < P ? false : true;
  482. }
  483. function R() {
  484. if (null !== O) {
  485. var a = exports2.unstable_now();
  486. Q = a;
  487. var b = true;
  488. try {
  489. b = O(true, a);
  490. } finally {
  491. b ? S() : (N = false, O = null);
  492. }
  493. } else
  494. N = false;
  495. }
  496. var S;
  497. if ("function" === typeof F)
  498. S = function() {
  499. F(R);
  500. };
  501. else if ("undefined" !== typeof MessageChannel) {
  502. T = new MessageChannel(), U = T.port2;
  503. T.port1.onmessage = R;
  504. S = function() {
  505. U.postMessage(null);
  506. };
  507. } else
  508. S = function() {
  509. D(R, 0);
  510. };
  511. var T;
  512. var U;
  513. function I(a) {
  514. O = a;
  515. N || (N = true, S());
  516. }
  517. function K(a, b) {
  518. L = D(function() {
  519. a(exports2.unstable_now());
  520. }, b);
  521. }
  522. exports2.unstable_IdlePriority = 5;
  523. exports2.unstable_ImmediatePriority = 1;
  524. exports2.unstable_LowPriority = 4;
  525. exports2.unstable_NormalPriority = 3;
  526. exports2.unstable_Profiling = null;
  527. exports2.unstable_UserBlockingPriority = 2;
  528. exports2.unstable_cancelCallback = function(a) {
  529. a.callback = null;
  530. };
  531. exports2.unstable_continueExecution = function() {
  532. A || z || (A = true, I(J));
  533. };
  534. exports2.unstable_forceFrameRate = function(a) {
  535. 0 > a || 125 < a ? console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported") : P = 0 < a ? Math.floor(1e3 / a) : 5;
  536. };
  537. exports2.unstable_getCurrentPriorityLevel = function() {
  538. return y;
  539. };
  540. exports2.unstable_getFirstCallbackNode = function() {
  541. return h(r);
  542. };
  543. exports2.unstable_next = function(a) {
  544. switch (y) {
  545. case 1:
  546. case 2:
  547. case 3:
  548. var b = 3;
  549. break;
  550. default:
  551. b = y;
  552. }
  553. var c = y;
  554. y = b;
  555. try {
  556. return a();
  557. } finally {
  558. y = c;
  559. }
  560. };
  561. exports2.unstable_pauseExecution = function() {
  562. };
  563. exports2.unstable_requestPaint = function() {
  564. };
  565. exports2.unstable_runWithPriority = function(a, b) {
  566. switch (a) {
  567. case 1:
  568. case 2:
  569. case 3:
  570. case 4:
  571. case 5:
  572. break;
  573. default:
  574. a = 3;
  575. }
  576. var c = y;
  577. y = a;
  578. try {
  579. return b();
  580. } finally {
  581. y = c;
  582. }
  583. };
  584. exports2.unstable_scheduleCallback = function(a, b, c) {
  585. var d = exports2.unstable_now();
  586. "object" === typeof c && null !== c ? (c = c.delay, c = "number" === typeof c && 0 < c ? d + c : d) : c = d;
  587. switch (a) {
  588. case 1:
  589. var e = -1;
  590. break;
  591. case 2:
  592. e = 250;
  593. break;
  594. case 5:
  595. e = 1073741823;
  596. break;
  597. case 4:
  598. e = 1e4;
  599. break;
  600. default:
  601. e = 5e3;
  602. }
  603. e = c + e;
  604. a = { id: u++, callback: b, priorityLevel: a, startTime: c, expirationTime: e, sortIndex: -1 };
  605. c > d ? (a.sortIndex = c, f(t, a), null === h(r) && a === h(t) && (B ? (E(L), L = -1) : B = true, K(H, c - d))) : (a.sortIndex = e, f(r, a), A || z || (A = true, I(J)));
  606. return a;
  607. };
  608. exports2.unstable_shouldYield = M;
  609. exports2.unstable_wrapCallback = function(a) {
  610. var b = y;
  611. return function() {
  612. var c = y;
  613. y = b;
  614. try {
  615. return a.apply(this, arguments);
  616. } finally {
  617. y = c;
  618. }
  619. };
  620. };
  621. }
  622. });
  623.  
  624. // node_modules/scheduler/index.js
  625. var require_scheduler = __commonJS({
  626. "node_modules/scheduler/index.js"(exports2, module2) {
  627. "use strict";
  628. if (true) {
  629. module2.exports = require_scheduler_production_min();
  630. } else {
  631. module2.exports = null;
  632. }
  633. }
  634. });
  635.  
  636. // node_modules/react-dom/cjs/react-dom.production.min.js
  637. var require_react_dom_production_min = __commonJS({
  638. "node_modules/react-dom/cjs/react-dom.production.min.js"(exports2) {
  639. "use strict";
  640. var aa = require_react();
  641. var ca = require_scheduler();
  642. function p(a) {
  643. for (var b = "https://reactjs.org/docs/error-decoder.html?invariant=" + a, c = 1; c < arguments.length; c++)
  644. b += "&args[]=" + encodeURIComponent(arguments[c]);
  645. 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.";
  646. }
  647. var da = /* @__PURE__ */ new Set();
  648. var ea = {};
  649. function fa(a, b) {
  650. ha(a, b);
  651. ha(a + "Capture", b);
  652. }
  653. function ha(a, b) {
  654. ea[a] = b;
  655. for (a = 0; a < b.length; a++)
  656. da.add(b[a]);
  657. }
  658. var ia = !("undefined" === typeof window || "undefined" === typeof window.document || "undefined" === typeof window.document.createElement);
  659. var ja = Object.prototype.hasOwnProperty;
  660. var 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]*$/;
  661. var la = {};
  662. var ma = {};
  663. function oa(a) {
  664. if (ja.call(ma, a))
  665. return true;
  666. if (ja.call(la, a))
  667. return false;
  668. if (ka.test(a))
  669. return ma[a] = true;
  670. la[a] = true;
  671. return false;
  672. }
  673. function pa(a, b, c, d) {
  674. if (null !== c && 0 === c.type)
  675. return false;
  676. switch (typeof b) {
  677. case "function":
  678. case "symbol":
  679. return true;
  680. case "boolean":
  681. if (d)
  682. return false;
  683. if (null !== c)
  684. return !c.acceptsBooleans;
  685. a = a.toLowerCase().slice(0, 5);
  686. return "data-" !== a && "aria-" !== a;
  687. default:
  688. return false;
  689. }
  690. }
  691. function qa(a, b, c, d) {
  692. if (null === b || "undefined" === typeof b || pa(a, b, c, d))
  693. return true;
  694. if (d)
  695. return false;
  696. if (null !== c)
  697. switch (c.type) {
  698. case 3:
  699. return !b;
  700. case 4:
  701. return false === b;
  702. case 5:
  703. return isNaN(b);
  704. case 6:
  705. return isNaN(b) || 1 > b;
  706. }
  707. return false;
  708. }
  709. function v(a, b, c, d, e, f, g) {
  710. this.acceptsBooleans = 2 === b || 3 === b || 4 === b;
  711. this.attributeName = d;
  712. this.attributeNamespace = e;
  713. this.mustUseProperty = c;
  714. this.propertyName = a;
  715. this.type = b;
  716. this.sanitizeURL = f;
  717. this.removeEmptyString = g;
  718. }
  719. var z = {};
  720. "children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(a) {
  721. z[a] = new v(a, 0, false, a, null, false, false);
  722. });
  723. [["acceptCharset", "accept-charset"], ["className", "class"], ["htmlFor", "for"], ["httpEquiv", "http-equiv"]].forEach(function(a) {
  724. var b = a[0];
  725. z[b] = new v(b, 1, false, a[1], null, false, false);
  726. });
  727. ["contentEditable", "draggable", "spellCheck", "value"].forEach(function(a) {
  728. z[a] = new v(a, 2, false, a.toLowerCase(), null, false, false);
  729. });
  730. ["autoReverse", "externalResourcesRequired", "focusable", "preserveAlpha"].forEach(function(a) {
  731. z[a] = new v(a, 2, false, a, null, false, false);
  732. });
  733. "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) {
  734. z[a] = new v(a, 3, false, a.toLowerCase(), null, false, false);
  735. });
  736. ["checked", "multiple", "muted", "selected"].forEach(function(a) {
  737. z[a] = new v(a, 3, true, a, null, false, false);
  738. });
  739. ["capture", "download"].forEach(function(a) {
  740. z[a] = new v(a, 4, false, a, null, false, false);
  741. });
  742. ["cols", "rows", "size", "span"].forEach(function(a) {
  743. z[a] = new v(a, 6, false, a, null, false, false);
  744. });
  745. ["rowSpan", "start"].forEach(function(a) {
  746. z[a] = new v(a, 5, false, a.toLowerCase(), null, false, false);
  747. });
  748. var ra = /[\-:]([a-z])/g;
  749. function sa(a) {
  750. return a[1].toUpperCase();
  751. }
  752. "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) {
  753. var b = a.replace(
  754. ra,
  755. sa
  756. );
  757. z[b] = new v(b, 1, false, a, null, false, false);
  758. });
  759. "xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(a) {
  760. var b = a.replace(ra, sa);
  761. z[b] = new v(b, 1, false, a, "http://www.w3.org/1999/xlink", false, false);
  762. });
  763. ["xml:base", "xml:lang", "xml:space"].forEach(function(a) {
  764. var b = a.replace(ra, sa);
  765. z[b] = new v(b, 1, false, a, "http://www.w3.org/XML/1998/namespace", false, false);
  766. });
  767. ["tabIndex", "crossOrigin"].forEach(function(a) {
  768. z[a] = new v(a, 1, false, a.toLowerCase(), null, false, false);
  769. });
  770. z.xlinkHref = new v("xlinkHref", 1, false, "xlink:href", "http://www.w3.org/1999/xlink", true, false);
  771. ["src", "href", "action", "formAction"].forEach(function(a) {
  772. z[a] = new v(a, 1, false, a.toLowerCase(), null, true, true);
  773. });
  774. function ta(a, b, c, d) {
  775. var e = z.hasOwnProperty(b) ? z[b] : null;
  776. if (null !== e ? 0 !== e.type : d || !(2 < b.length) || "o" !== b[0] && "O" !== b[0] || "n" !== b[1] && "N" !== b[1])
  777. 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 ? false : "" : c : (b = e.attributeName, d = e.attributeNamespace, null === c ? a.removeAttribute(b) : (e = e.type, c = 3 === e || 4 === e && true === c ? "" : "" + c, d ? a.setAttributeNS(d, b, c) : a.setAttribute(b, c)));
  778. }
  779. var ua = aa.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
  780. var va = Symbol.for("react.element");
  781. var wa = Symbol.for("react.portal");
  782. var ya = Symbol.for("react.fragment");
  783. var za = Symbol.for("react.strict_mode");
  784. var Aa = Symbol.for("react.profiler");
  785. var Ba = Symbol.for("react.provider");
  786. var Ca = Symbol.for("react.context");
  787. var Da = Symbol.for("react.forward_ref");
  788. var Ea = Symbol.for("react.suspense");
  789. var Fa = Symbol.for("react.suspense_list");
  790. var Ga = Symbol.for("react.memo");
  791. var Ha = Symbol.for("react.lazy");
  792. Symbol.for("react.scope");
  793. Symbol.for("react.debug_trace_mode");
  794. var Ia = Symbol.for("react.offscreen");
  795. Symbol.for("react.legacy_hidden");
  796. Symbol.for("react.cache");
  797. Symbol.for("react.tracing_marker");
  798. var Ja = Symbol.iterator;
  799. function Ka(a) {
  800. if (null === a || "object" !== typeof a)
  801. return null;
  802. a = Ja && a[Ja] || a["@@iterator"];
  803. return "function" === typeof a ? a : null;
  804. }
  805. var A = Object.assign;
  806. var La;
  807. function Ma(a) {
  808. if (void 0 === La)
  809. try {
  810. throw Error();
  811. } catch (c) {
  812. var b = c.stack.trim().match(/\n( *(at )?)/);
  813. La = b && b[1] || "";
  814. }
  815. return "\n" + La + a;
  816. }
  817. var Na = false;
  818. function Oa(a, b) {
  819. if (!a || Na)
  820. return "";
  821. Na = true;
  822. var c = Error.prepareStackTrace;
  823. Error.prepareStackTrace = void 0;
  824. try {
  825. if (b)
  826. if (b = function() {
  827. throw Error();
  828. }, Object.defineProperty(b.prototype, "props", { set: function() {
  829. throw Error();
  830. } }), "object" === typeof Reflect && Reflect.construct) {
  831. try {
  832. Reflect.construct(b, []);
  833. } catch (l) {
  834. var d = l;
  835. }
  836. Reflect.construct(a, [], b);
  837. } else {
  838. try {
  839. b.call();
  840. } catch (l) {
  841. d = l;
  842. }
  843. a.call(b.prototype);
  844. }
  845. else {
  846. try {
  847. throw Error();
  848. } catch (l) {
  849. d = l;
  850. }
  851. a();
  852. }
  853. } catch (l) {
  854. if (l && d && "string" === typeof l.stack) {
  855. 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]; )
  856. h--;
  857. for (; 1 <= g && 0 <= h; g--, h--)
  858. if (e[g] !== f[h]) {
  859. if (1 !== g || 1 !== h) {
  860. do
  861. if (g--, h--, 0 > h || e[g] !== f[h]) {
  862. var k = "\n" + e[g].replace(" at new ", " at ");
  863. a.displayName && k.includes("<anonymous>") && (k = k.replace("<anonymous>", a.displayName));
  864. return k;
  865. }
  866. while (1 <= g && 0 <= h);
  867. }
  868. break;
  869. }
  870. }
  871. } finally {
  872. Na = false, Error.prepareStackTrace = c;
  873. }
  874. return (a = a ? a.displayName || a.name : "") ? Ma(a) : "";
  875. }
  876. function Pa(a) {
  877. switch (a.tag) {
  878. case 5:
  879. return Ma(a.type);
  880. case 16:
  881. return Ma("Lazy");
  882. case 13:
  883. return Ma("Suspense");
  884. case 19:
  885. return Ma("SuspenseList");
  886. case 0:
  887. case 2:
  888. case 15:
  889. return a = Oa(a.type, false), a;
  890. case 11:
  891. return a = Oa(a.type.render, false), a;
  892. case 1:
  893. return a = Oa(a.type, true), a;
  894. default:
  895. return "";
  896. }
  897. }
  898. function Qa(a) {
  899. if (null == a)
  900. return null;
  901. if ("function" === typeof a)
  902. return a.displayName || a.name || null;
  903. if ("string" === typeof a)
  904. return a;
  905. switch (a) {
  906. case ya:
  907. return "Fragment";
  908. case wa:
  909. return "Portal";
  910. case Aa:
  911. return "Profiler";
  912. case za:
  913. return "StrictMode";
  914. case Ea:
  915. return "Suspense";
  916. case Fa:
  917. return "SuspenseList";
  918. }
  919. if ("object" === typeof a)
  920. switch (a.$$typeof) {
  921. case Ca:
  922. return (a.displayName || "Context") + ".Consumer";
  923. case Ba:
  924. return (a._context.displayName || "Context") + ".Provider";
  925. case Da:
  926. var b = a.render;
  927. a = a.displayName;
  928. a || (a = b.displayName || b.name || "", a = "" !== a ? "ForwardRef(" + a + ")" : "ForwardRef");
  929. return a;
  930. case Ga:
  931. return b = a.displayName || null, null !== b ? b : Qa(a.type) || "Memo";
  932. case Ha:
  933. b = a._payload;
  934. a = a._init;
  935. try {
  936. return Qa(a(b));
  937. } catch (c) {
  938. }
  939. }
  940. return null;
  941. }
  942. function Ra(a) {
  943. var b = a.type;
  944. switch (a.tag) {
  945. case 24:
  946. return "Cache";
  947. case 9:
  948. return (b.displayName || "Context") + ".Consumer";
  949. case 10:
  950. return (b._context.displayName || "Context") + ".Provider";
  951. case 18:
  952. return "DehydratedFragment";
  953. case 11:
  954. return a = b.render, a = a.displayName || a.name || "", b.displayName || ("" !== a ? "ForwardRef(" + a + ")" : "ForwardRef");
  955. case 7:
  956. return "Fragment";
  957. case 5:
  958. return b;
  959. case 4:
  960. return "Portal";
  961. case 3:
  962. return "Root";
  963. case 6:
  964. return "Text";
  965. case 16:
  966. return Qa(b);
  967. case 8:
  968. return b === za ? "StrictMode" : "Mode";
  969. case 22:
  970. return "Offscreen";
  971. case 12:
  972. return "Profiler";
  973. case 21:
  974. return "Scope";
  975. case 13:
  976. return "Suspense";
  977. case 19:
  978. return "SuspenseList";
  979. case 25:
  980. return "TracingMarker";
  981. case 1:
  982. case 0:
  983. case 17:
  984. case 2:
  985. case 14:
  986. case 15:
  987. if ("function" === typeof b)
  988. return b.displayName || b.name || null;
  989. if ("string" === typeof b)
  990. return b;
  991. }
  992. return null;
  993. }
  994. function Sa(a) {
  995. switch (typeof a) {
  996. case "boolean":
  997. case "number":
  998. case "string":
  999. case "undefined":
  1000. return a;
  1001. case "object":
  1002. return a;
  1003. default:
  1004. return "";
  1005. }
  1006. }
  1007. function Ta(a) {
  1008. var b = a.type;
  1009. return (a = a.nodeName) && "input" === a.toLowerCase() && ("checkbox" === b || "radio" === b);
  1010. }
  1011. function Ua(a) {
  1012. var b = Ta(a) ? "checked" : "value", c = Object.getOwnPropertyDescriptor(a.constructor.prototype, b), d = "" + a[b];
  1013. if (!a.hasOwnProperty(b) && "undefined" !== typeof c && "function" === typeof c.get && "function" === typeof c.set) {
  1014. var e = c.get, f = c.set;
  1015. Object.defineProperty(a, b, { configurable: true, get: function() {
  1016. return e.call(this);
  1017. }, set: function(a2) {
  1018. d = "" + a2;
  1019. f.call(this, a2);
  1020. } });
  1021. Object.defineProperty(a, b, { enumerable: c.enumerable });
  1022. return { getValue: function() {
  1023. return d;
  1024. }, setValue: function(a2) {
  1025. d = "" + a2;
  1026. }, stopTracking: function() {
  1027. a._valueTracker = null;
  1028. delete a[b];
  1029. } };
  1030. }
  1031. }
  1032. function Va(a) {
  1033. a._valueTracker || (a._valueTracker = Ua(a));
  1034. }
  1035. function Wa(a) {
  1036. if (!a)
  1037. return false;
  1038. var b = a._valueTracker;
  1039. if (!b)
  1040. return true;
  1041. var c = b.getValue();
  1042. var d = "";
  1043. a && (d = Ta(a) ? a.checked ? "true" : "false" : a.value);
  1044. a = d;
  1045. return a !== c ? (b.setValue(a), true) : false;
  1046. }
  1047. function Xa(a) {
  1048. a = a || ("undefined" !== typeof document ? document : void 0);
  1049. if ("undefined" === typeof a)
  1050. return null;
  1051. try {
  1052. return a.activeElement || a.body;
  1053. } catch (b) {
  1054. return a.body;
  1055. }
  1056. }
  1057. function Ya(a, b) {
  1058. var c = b.checked;
  1059. return A({}, b, { defaultChecked: void 0, defaultValue: void 0, value: void 0, checked: null != c ? c : a._wrapperState.initialChecked });
  1060. }
  1061. function Za(a, b) {
  1062. var c = null == b.defaultValue ? "" : b.defaultValue, d = null != b.checked ? b.checked : b.defaultChecked;
  1063. c = Sa(null != b.value ? b.value : c);
  1064. a._wrapperState = { initialChecked: d, initialValue: c, controlled: "checkbox" === b.type || "radio" === b.type ? null != b.checked : null != b.value };
  1065. }
  1066. function ab(a, b) {
  1067. b = b.checked;
  1068. null != b && ta(a, "checked", b, false);
  1069. }
  1070. function bb(a, b) {
  1071. ab(a, b);
  1072. var c = Sa(b.value), d = b.type;
  1073. if (null != c)
  1074. if ("number" === d) {
  1075. if (0 === c && "" === a.value || a.value != c)
  1076. a.value = "" + c;
  1077. } else
  1078. a.value !== "" + c && (a.value = "" + c);
  1079. else if ("submit" === d || "reset" === d) {
  1080. a.removeAttribute("value");
  1081. return;
  1082. }
  1083. b.hasOwnProperty("value") ? cb(a, b.type, c) : b.hasOwnProperty("defaultValue") && cb(a, b.type, Sa(b.defaultValue));
  1084. null == b.checked && null != b.defaultChecked && (a.defaultChecked = !!b.defaultChecked);
  1085. }
  1086. function db(a, b, c) {
  1087. if (b.hasOwnProperty("value") || b.hasOwnProperty("defaultValue")) {
  1088. var d = b.type;
  1089. if (!("submit" !== d && "reset" !== d || void 0 !== b.value && null !== b.value))
  1090. return;
  1091. b = "" + a._wrapperState.initialValue;
  1092. c || b === a.value || (a.value = b);
  1093. a.defaultValue = b;
  1094. }
  1095. c = a.name;
  1096. "" !== c && (a.name = "");
  1097. a.defaultChecked = !!a._wrapperState.initialChecked;
  1098. "" !== c && (a.name = c);
  1099. }
  1100. function cb(a, b, c) {
  1101. if ("number" !== b || Xa(a.ownerDocument) !== a)
  1102. null == c ? a.defaultValue = "" + a._wrapperState.initialValue : a.defaultValue !== "" + c && (a.defaultValue = "" + c);
  1103. }
  1104. var eb = Array.isArray;
  1105. function fb(a, b, c, d) {
  1106. a = a.options;
  1107. if (b) {
  1108. b = {};
  1109. for (var e = 0; e < c.length; e++)
  1110. b["$" + c[e]] = true;
  1111. for (c = 0; c < a.length; c++)
  1112. e = b.hasOwnProperty("$" + a[c].value), a[c].selected !== e && (a[c].selected = e), e && d && (a[c].defaultSelected = true);
  1113. } else {
  1114. c = "" + Sa(c);
  1115. b = null;
  1116. for (e = 0; e < a.length; e++) {
  1117. if (a[e].value === c) {
  1118. a[e].selected = true;
  1119. d && (a[e].defaultSelected = true);
  1120. return;
  1121. }
  1122. null !== b || a[e].disabled || (b = a[e]);
  1123. }
  1124. null !== b && (b.selected = true);
  1125. }
  1126. }
  1127. function gb(a, b) {
  1128. if (null != b.dangerouslySetInnerHTML)
  1129. throw Error(p(91));
  1130. return A({}, b, { value: void 0, defaultValue: void 0, children: "" + a._wrapperState.initialValue });
  1131. }
  1132. function hb(a, b) {
  1133. var c = b.value;
  1134. if (null == c) {
  1135. c = b.children;
  1136. b = b.defaultValue;
  1137. if (null != c) {
  1138. if (null != b)
  1139. throw Error(p(92));
  1140. if (eb(c)) {
  1141. if (1 < c.length)
  1142. throw Error(p(93));
  1143. c = c[0];
  1144. }
  1145. b = c;
  1146. }
  1147. null == b && (b = "");
  1148. c = b;
  1149. }
  1150. a._wrapperState = { initialValue: Sa(c) };
  1151. }
  1152. function ib(a, b) {
  1153. var c = Sa(b.value), d = Sa(b.defaultValue);
  1154. null != c && (c = "" + c, c !== a.value && (a.value = c), null == b.defaultValue && a.defaultValue !== c && (a.defaultValue = c));
  1155. null != d && (a.defaultValue = "" + d);
  1156. }
  1157. function jb(a) {
  1158. var b = a.textContent;
  1159. b === a._wrapperState.initialValue && "" !== b && null !== b && (a.value = b);
  1160. }
  1161. function kb(a) {
  1162. switch (a) {
  1163. case "svg":
  1164. return "http://www.w3.org/2000/svg";
  1165. case "math":
  1166. return "http://www.w3.org/1998/Math/MathML";
  1167. default:
  1168. return "http://www.w3.org/1999/xhtml";
  1169. }
  1170. }
  1171. function lb(a, b) {
  1172. 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;
  1173. }
  1174. var mb;
  1175. var nb = function(a) {
  1176. return "undefined" !== typeof MSApp && MSApp.execUnsafeLocalFunction ? function(b, c, d, e) {
  1177. MSApp.execUnsafeLocalFunction(function() {
  1178. return a(b, c, d, e);
  1179. });
  1180. } : a;
  1181. }(function(a, b) {
  1182. if ("http://www.w3.org/2000/svg" !== a.namespaceURI || "innerHTML" in a)
  1183. a.innerHTML = b;
  1184. else {
  1185. mb = mb || document.createElement("div");
  1186. mb.innerHTML = "<svg>" + b.valueOf().toString() + "</svg>";
  1187. for (b = mb.firstChild; a.firstChild; )
  1188. a.removeChild(a.firstChild);
  1189. for (; b.firstChild; )
  1190. a.appendChild(b.firstChild);
  1191. }
  1192. });
  1193. function ob(a, b) {
  1194. if (b) {
  1195. var c = a.firstChild;
  1196. if (c && c === a.lastChild && 3 === c.nodeType) {
  1197. c.nodeValue = b;
  1198. return;
  1199. }
  1200. }
  1201. a.textContent = b;
  1202. }
  1203. var pb = {
  1204. animationIterationCount: true,
  1205. aspectRatio: true,
  1206. borderImageOutset: true,
  1207. borderImageSlice: true,
  1208. borderImageWidth: true,
  1209. boxFlex: true,
  1210. boxFlexGroup: true,
  1211. boxOrdinalGroup: true,
  1212. columnCount: true,
  1213. columns: true,
  1214. flex: true,
  1215. flexGrow: true,
  1216. flexPositive: true,
  1217. flexShrink: true,
  1218. flexNegative: true,
  1219. flexOrder: true,
  1220. gridArea: true,
  1221. gridRow: true,
  1222. gridRowEnd: true,
  1223. gridRowSpan: true,
  1224. gridRowStart: true,
  1225. gridColumn: true,
  1226. gridColumnEnd: true,
  1227. gridColumnSpan: true,
  1228. gridColumnStart: true,
  1229. fontWeight: true,
  1230. lineClamp: true,
  1231. lineHeight: true,
  1232. opacity: true,
  1233. order: true,
  1234. orphans: true,
  1235. tabSize: true,
  1236. widows: true,
  1237. zIndex: true,
  1238. zoom: true,
  1239. fillOpacity: true,
  1240. floodOpacity: true,
  1241. stopOpacity: true,
  1242. strokeDasharray: true,
  1243. strokeDashoffset: true,
  1244. strokeMiterlimit: true,
  1245. strokeOpacity: true,
  1246. strokeWidth: true
  1247. };
  1248. var qb = ["Webkit", "ms", "Moz", "O"];
  1249. Object.keys(pb).forEach(function(a) {
  1250. qb.forEach(function(b) {
  1251. b = b + a.charAt(0).toUpperCase() + a.substring(1);
  1252. pb[b] = pb[a];
  1253. });
  1254. });
  1255. function rb(a, b, c) {
  1256. return null == b || "boolean" === typeof b || "" === b ? "" : c || "number" !== typeof b || 0 === b || pb.hasOwnProperty(a) && pb[a] ? ("" + b).trim() : b + "px";
  1257. }
  1258. function sb(a, b) {
  1259. a = a.style;
  1260. for (var c in b)
  1261. if (b.hasOwnProperty(c)) {
  1262. var d = 0 === c.indexOf("--"), e = rb(c, b[c], d);
  1263. "float" === c && (c = "cssFloat");
  1264. d ? a.setProperty(c, e) : a[c] = e;
  1265. }
  1266. }
  1267. var tb = A({ menuitem: true }, { area: true, base: true, br: true, col: true, embed: true, hr: true, img: true, input: true, keygen: true, link: true, meta: true, param: true, source: true, track: true, wbr: true });
  1268. function ub(a, b) {
  1269. if (b) {
  1270. if (tb[a] && (null != b.children || null != b.dangerouslySetInnerHTML))
  1271. throw Error(p(137, a));
  1272. if (null != b.dangerouslySetInnerHTML) {
  1273. if (null != b.children)
  1274. throw Error(p(60));
  1275. if ("object" !== typeof b.dangerouslySetInnerHTML || !("__html" in b.dangerouslySetInnerHTML))
  1276. throw Error(p(61));
  1277. }
  1278. if (null != b.style && "object" !== typeof b.style)
  1279. throw Error(p(62));
  1280. }
  1281. }
  1282. function vb(a, b) {
  1283. if (-1 === a.indexOf("-"))
  1284. return "string" === typeof b.is;
  1285. switch (a) {
  1286. case "annotation-xml":
  1287. case "color-profile":
  1288. case "font-face":
  1289. case "font-face-src":
  1290. case "font-face-uri":
  1291. case "font-face-format":
  1292. case "font-face-name":
  1293. case "missing-glyph":
  1294. return false;
  1295. default:
  1296. return true;
  1297. }
  1298. }
  1299. var wb = null;
  1300. function xb(a) {
  1301. a = a.target || a.srcElement || window;
  1302. a.correspondingUseElement && (a = a.correspondingUseElement);
  1303. return 3 === a.nodeType ? a.parentNode : a;
  1304. }
  1305. var yb = null;
  1306. var zb = null;
  1307. var Ab = null;
  1308. function Bb(a) {
  1309. if (a = Cb(a)) {
  1310. if ("function" !== typeof yb)
  1311. throw Error(p(280));
  1312. var b = a.stateNode;
  1313. b && (b = Db(b), yb(a.stateNode, a.type, b));
  1314. }
  1315. }
  1316. function Eb(a) {
  1317. zb ? Ab ? Ab.push(a) : Ab = [a] : zb = a;
  1318. }
  1319. function Fb() {
  1320. if (zb) {
  1321. var a = zb, b = Ab;
  1322. Ab = zb = null;
  1323. Bb(a);
  1324. if (b)
  1325. for (a = 0; a < b.length; a++)
  1326. Bb(b[a]);
  1327. }
  1328. }
  1329. function Gb(a, b) {
  1330. return a(b);
  1331. }
  1332. function Hb() {
  1333. }
  1334. var Ib = false;
  1335. function Jb(a, b, c) {
  1336. if (Ib)
  1337. return a(b, c);
  1338. Ib = true;
  1339. try {
  1340. return Gb(a, b, c);
  1341. } finally {
  1342. if (Ib = false, null !== zb || null !== Ab)
  1343. Hb(), Fb();
  1344. }
  1345. }
  1346. function Kb(a, b) {
  1347. var c = a.stateNode;
  1348. if (null === c)
  1349. return null;
  1350. var d = Db(c);
  1351. if (null === d)
  1352. return null;
  1353. c = d[b];
  1354. a:
  1355. switch (b) {
  1356. case "onClick":
  1357. case "onClickCapture":
  1358. case "onDoubleClick":
  1359. case "onDoubleClickCapture":
  1360. case "onMouseDown":
  1361. case "onMouseDownCapture":
  1362. case "onMouseMove":
  1363. case "onMouseMoveCapture":
  1364. case "onMouseUp":
  1365. case "onMouseUpCapture":
  1366. case "onMouseEnter":
  1367. (d = !d.disabled) || (a = a.type, d = !("button" === a || "input" === a || "select" === a || "textarea" === a));
  1368. a = !d;
  1369. break a;
  1370. default:
  1371. a = false;
  1372. }
  1373. if (a)
  1374. return null;
  1375. if (c && "function" !== typeof c)
  1376. throw Error(p(231, b, typeof c));
  1377. return c;
  1378. }
  1379. var Lb = false;
  1380. if (ia)
  1381. try {
  1382. Mb = {};
  1383. Object.defineProperty(Mb, "passive", { get: function() {
  1384. Lb = true;
  1385. } });
  1386. window.addEventListener("test", Mb, Mb);
  1387. window.removeEventListener("test", Mb, Mb);
  1388. } catch (a) {
  1389. Lb = false;
  1390. }
  1391. var Mb;
  1392. function Nb(a, b, c, d, e, f, g, h, k) {
  1393. var l = Array.prototype.slice.call(arguments, 3);
  1394. try {
  1395. b.apply(c, l);
  1396. } catch (m) {
  1397. this.onError(m);
  1398. }
  1399. }
  1400. var Ob = false;
  1401. var Pb = null;
  1402. var Qb = false;
  1403. var Rb = null;
  1404. var Sb = { onError: function(a) {
  1405. Ob = true;
  1406. Pb = a;
  1407. } };
  1408. function Tb(a, b, c, d, e, f, g, h, k) {
  1409. Ob = false;
  1410. Pb = null;
  1411. Nb.apply(Sb, arguments);
  1412. }
  1413. function Ub(a, b, c, d, e, f, g, h, k) {
  1414. Tb.apply(this, arguments);
  1415. if (Ob) {
  1416. if (Ob) {
  1417. var l = Pb;
  1418. Ob = false;
  1419. Pb = null;
  1420. } else
  1421. throw Error(p(198));
  1422. Qb || (Qb = true, Rb = l);
  1423. }
  1424. }
  1425. function Vb(a) {
  1426. var b = a, c = a;
  1427. if (a.alternate)
  1428. for (; b.return; )
  1429. b = b.return;
  1430. else {
  1431. a = b;
  1432. do
  1433. b = a, 0 !== (b.flags & 4098) && (c = b.return), a = b.return;
  1434. while (a);
  1435. }
  1436. return 3 === b.tag ? c : null;
  1437. }
  1438. function Wb(a) {
  1439. if (13 === a.tag) {
  1440. var b = a.memoizedState;
  1441. null === b && (a = a.alternate, null !== a && (b = a.memoizedState));
  1442. if (null !== b)
  1443. return b.dehydrated;
  1444. }
  1445. return null;
  1446. }
  1447. function Xb(a) {
  1448. if (Vb(a) !== a)
  1449. throw Error(p(188));
  1450. }
  1451. function Yb(a) {
  1452. var b = a.alternate;
  1453. if (!b) {
  1454. b = Vb(a);
  1455. if (null === b)
  1456. throw Error(p(188));
  1457. return b !== a ? null : a;
  1458. }
  1459. for (var c = a, d = b; ; ) {
  1460. var e = c.return;
  1461. if (null === e)
  1462. break;
  1463. var f = e.alternate;
  1464. if (null === f) {
  1465. d = e.return;
  1466. if (null !== d) {
  1467. c = d;
  1468. continue;
  1469. }
  1470. break;
  1471. }
  1472. if (e.child === f.child) {
  1473. for (f = e.child; f; ) {
  1474. if (f === c)
  1475. return Xb(e), a;
  1476. if (f === d)
  1477. return Xb(e), b;
  1478. f = f.sibling;
  1479. }
  1480. throw Error(p(188));
  1481. }
  1482. if (c.return !== d.return)
  1483. c = e, d = f;
  1484. else {
  1485. for (var g = false, h = e.child; h; ) {
  1486. if (h === c) {
  1487. g = true;
  1488. c = e;
  1489. d = f;
  1490. break;
  1491. }
  1492. if (h === d) {
  1493. g = true;
  1494. d = e;
  1495. c = f;
  1496. break;
  1497. }
  1498. h = h.sibling;
  1499. }
  1500. if (!g) {
  1501. for (h = f.child; h; ) {
  1502. if (h === c) {
  1503. g = true;
  1504. c = f;
  1505. d = e;
  1506. break;
  1507. }
  1508. if (h === d) {
  1509. g = true;
  1510. d = f;
  1511. c = e;
  1512. break;
  1513. }
  1514. h = h.sibling;
  1515. }
  1516. if (!g)
  1517. throw Error(p(189));
  1518. }
  1519. }
  1520. if (c.alternate !== d)
  1521. throw Error(p(190));
  1522. }
  1523. if (3 !== c.tag)
  1524. throw Error(p(188));
  1525. return c.stateNode.current === c ? a : b;
  1526. }
  1527. function Zb(a) {
  1528. a = Yb(a);
  1529. return null !== a ? $b(a) : null;
  1530. }
  1531. function $b(a) {
  1532. if (5 === a.tag || 6 === a.tag)
  1533. return a;
  1534. for (a = a.child; null !== a; ) {
  1535. var b = $b(a);
  1536. if (null !== b)
  1537. return b;
  1538. a = a.sibling;
  1539. }
  1540. return null;
  1541. }
  1542. var ac = ca.unstable_scheduleCallback;
  1543. var bc = ca.unstable_cancelCallback;
  1544. var cc = ca.unstable_shouldYield;
  1545. var dc = ca.unstable_requestPaint;
  1546. var B = ca.unstable_now;
  1547. var ec = ca.unstable_getCurrentPriorityLevel;
  1548. var fc = ca.unstable_ImmediatePriority;
  1549. var gc = ca.unstable_UserBlockingPriority;
  1550. var hc = ca.unstable_NormalPriority;
  1551. var ic = ca.unstable_LowPriority;
  1552. var jc = ca.unstable_IdlePriority;
  1553. var kc = null;
  1554. var lc = null;
  1555. function mc(a) {
  1556. if (lc && "function" === typeof lc.onCommitFiberRoot)
  1557. try {
  1558. lc.onCommitFiberRoot(kc, a, void 0, 128 === (a.current.flags & 128));
  1559. } catch (b) {
  1560. }
  1561. }
  1562. var oc = Math.clz32 ? Math.clz32 : nc;
  1563. var pc = Math.log;
  1564. var qc = Math.LN2;
  1565. function nc(a) {
  1566. a >>>= 0;
  1567. return 0 === a ? 32 : 31 - (pc(a) / qc | 0) | 0;
  1568. }
  1569. var rc = 64;
  1570. var sc = 4194304;
  1571. function tc(a) {
  1572. switch (a & -a) {
  1573. case 1:
  1574. return 1;
  1575. case 2:
  1576. return 2;
  1577. case 4:
  1578. return 4;
  1579. case 8:
  1580. return 8;
  1581. case 16:
  1582. return 16;
  1583. case 32:
  1584. return 32;
  1585. case 64:
  1586. case 128:
  1587. case 256:
  1588. case 512:
  1589. case 1024:
  1590. case 2048:
  1591. case 4096:
  1592. case 8192:
  1593. case 16384:
  1594. case 32768:
  1595. case 65536:
  1596. case 131072:
  1597. case 262144:
  1598. case 524288:
  1599. case 1048576:
  1600. case 2097152:
  1601. return a & 4194240;
  1602. case 4194304:
  1603. case 8388608:
  1604. case 16777216:
  1605. case 33554432:
  1606. case 67108864:
  1607. return a & 130023424;
  1608. case 134217728:
  1609. return 134217728;
  1610. case 268435456:
  1611. return 268435456;
  1612. case 536870912:
  1613. return 536870912;
  1614. case 1073741824:
  1615. return 1073741824;
  1616. default:
  1617. return a;
  1618. }
  1619. }
  1620. function uc(a, b) {
  1621. var c = a.pendingLanes;
  1622. if (0 === c)
  1623. return 0;
  1624. var d = 0, e = a.suspendedLanes, f = a.pingedLanes, g = c & 268435455;
  1625. if (0 !== g) {
  1626. var h = g & ~e;
  1627. 0 !== h ? d = tc(h) : (f &= g, 0 !== f && (d = tc(f)));
  1628. } else
  1629. g = c & ~e, 0 !== g ? d = tc(g) : 0 !== f && (d = tc(f));
  1630. if (0 === d)
  1631. return 0;
  1632. if (0 !== b && b !== d && 0 === (b & e) && (e = d & -d, f = b & -b, e >= f || 16 === e && 0 !== (f & 4194240)))
  1633. return b;
  1634. 0 !== (d & 4) && (d |= c & 16);
  1635. b = a.entangledLanes;
  1636. if (0 !== b)
  1637. for (a = a.entanglements, b &= d; 0 < b; )
  1638. c = 31 - oc(b), e = 1 << c, d |= a[c], b &= ~e;
  1639. return d;
  1640. }
  1641. function vc(a, b) {
  1642. switch (a) {
  1643. case 1:
  1644. case 2:
  1645. case 4:
  1646. return b + 250;
  1647. case 8:
  1648. case 16:
  1649. case 32:
  1650. case 64:
  1651. case 128:
  1652. case 256:
  1653. case 512:
  1654. case 1024:
  1655. case 2048:
  1656. case 4096:
  1657. case 8192:
  1658. case 16384:
  1659. case 32768:
  1660. case 65536:
  1661. case 131072:
  1662. case 262144:
  1663. case 524288:
  1664. case 1048576:
  1665. case 2097152:
  1666. return b + 5e3;
  1667. case 4194304:
  1668. case 8388608:
  1669. case 16777216:
  1670. case 33554432:
  1671. case 67108864:
  1672. return -1;
  1673. case 134217728:
  1674. case 268435456:
  1675. case 536870912:
  1676. case 1073741824:
  1677. return -1;
  1678. default:
  1679. return -1;
  1680. }
  1681. }
  1682. function wc(a, b) {
  1683. for (var c = a.suspendedLanes, d = a.pingedLanes, e = a.expirationTimes, f = a.pendingLanes; 0 < f; ) {
  1684. var g = 31 - oc(f), h = 1 << g, k = e[g];
  1685. if (-1 === k) {
  1686. if (0 === (h & c) || 0 !== (h & d))
  1687. e[g] = vc(h, b);
  1688. } else
  1689. k <= b && (a.expiredLanes |= h);
  1690. f &= ~h;
  1691. }
  1692. }
  1693. function xc(a) {
  1694. a = a.pendingLanes & -1073741825;
  1695. return 0 !== a ? a : a & 1073741824 ? 1073741824 : 0;
  1696. }
  1697. function yc() {
  1698. var a = rc;
  1699. rc <<= 1;
  1700. 0 === (rc & 4194240) && (rc = 64);
  1701. return a;
  1702. }
  1703. function zc(a) {
  1704. for (var b = [], c = 0; 31 > c; c++)
  1705. b.push(a);
  1706. return b;
  1707. }
  1708. function Ac(a, b, c) {
  1709. a.pendingLanes |= b;
  1710. 536870912 !== b && (a.suspendedLanes = 0, a.pingedLanes = 0);
  1711. a = a.eventTimes;
  1712. b = 31 - oc(b);
  1713. a[b] = c;
  1714. }
  1715. function Bc(a, b) {
  1716. var c = a.pendingLanes & ~b;
  1717. a.pendingLanes = b;
  1718. a.suspendedLanes = 0;
  1719. a.pingedLanes = 0;
  1720. a.expiredLanes &= b;
  1721. a.mutableReadLanes &= b;
  1722. a.entangledLanes &= b;
  1723. b = a.entanglements;
  1724. var d = a.eventTimes;
  1725. for (a = a.expirationTimes; 0 < c; ) {
  1726. var e = 31 - oc(c), f = 1 << e;
  1727. b[e] = 0;
  1728. d[e] = -1;
  1729. a[e] = -1;
  1730. c &= ~f;
  1731. }
  1732. }
  1733. function Cc(a, b) {
  1734. var c = a.entangledLanes |= b;
  1735. for (a = a.entanglements; c; ) {
  1736. var d = 31 - oc(c), e = 1 << d;
  1737. e & b | a[d] & b && (a[d] |= b);
  1738. c &= ~e;
  1739. }
  1740. }
  1741. var C = 0;
  1742. function Dc(a) {
  1743. a &= -a;
  1744. return 1 < a ? 4 < a ? 0 !== (a & 268435455) ? 16 : 536870912 : 4 : 1;
  1745. }
  1746. var Ec;
  1747. var Fc;
  1748. var Gc;
  1749. var Hc;
  1750. var Ic;
  1751. var Jc = false;
  1752. var Kc = [];
  1753. var Lc = null;
  1754. var Mc = null;
  1755. var Nc = null;
  1756. var Oc = /* @__PURE__ */ new Map();
  1757. var Pc = /* @__PURE__ */ new Map();
  1758. var Qc = [];
  1759. var 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(" ");
  1760. function Sc(a, b) {
  1761. switch (a) {
  1762. case "focusin":
  1763. case "focusout":
  1764. Lc = null;
  1765. break;
  1766. case "dragenter":
  1767. case "dragleave":
  1768. Mc = null;
  1769. break;
  1770. case "mouseover":
  1771. case "mouseout":
  1772. Nc = null;
  1773. break;
  1774. case "pointerover":
  1775. case "pointerout":
  1776. Oc.delete(b.pointerId);
  1777. break;
  1778. case "gotpointercapture":
  1779. case "lostpointercapture":
  1780. Pc.delete(b.pointerId);
  1781. }
  1782. }
  1783. function Tc(a, b, c, d, e, f) {
  1784. if (null === a || a.nativeEvent !== f)
  1785. return a = { blockedOn: b, domEventName: c, eventSystemFlags: d, nativeEvent: f, targetContainers: [e] }, null !== b && (b = Cb(b), null !== b && Fc(b)), a;
  1786. a.eventSystemFlags |= d;
  1787. b = a.targetContainers;
  1788. null !== e && -1 === b.indexOf(e) && b.push(e);
  1789. return a;
  1790. }
  1791. function Uc(a, b, c, d, e) {
  1792. switch (b) {
  1793. case "focusin":
  1794. return Lc = Tc(Lc, a, b, c, d, e), true;
  1795. case "dragenter":
  1796. return Mc = Tc(Mc, a, b, c, d, e), true;
  1797. case "mouseover":
  1798. return Nc = Tc(Nc, a, b, c, d, e), true;
  1799. case "pointerover":
  1800. var f = e.pointerId;
  1801. Oc.set(f, Tc(Oc.get(f) || null, a, b, c, d, e));
  1802. return true;
  1803. case "gotpointercapture":
  1804. return f = e.pointerId, Pc.set(f, Tc(Pc.get(f) || null, a, b, c, d, e)), true;
  1805. }
  1806. return false;
  1807. }
  1808. function Vc(a) {
  1809. var b = Wc(a.target);
  1810. if (null !== b) {
  1811. var c = Vb(b);
  1812. if (null !== c) {
  1813. if (b = c.tag, 13 === b) {
  1814. if (b = Wb(c), null !== b) {
  1815. a.blockedOn = b;
  1816. Ic(a.priority, function() {
  1817. Gc(c);
  1818. });
  1819. return;
  1820. }
  1821. } else if (3 === b && c.stateNode.current.memoizedState.isDehydrated) {
  1822. a.blockedOn = 3 === c.tag ? c.stateNode.containerInfo : null;
  1823. return;
  1824. }
  1825. }
  1826. }
  1827. a.blockedOn = null;
  1828. }
  1829. function Xc(a) {
  1830. if (null !== a.blockedOn)
  1831. return false;
  1832. for (var b = a.targetContainers; 0 < b.length; ) {
  1833. var c = Yc(a.domEventName, a.eventSystemFlags, b[0], a.nativeEvent);
  1834. if (null === c) {
  1835. c = a.nativeEvent;
  1836. var d = new c.constructor(c.type, c);
  1837. wb = d;
  1838. c.target.dispatchEvent(d);
  1839. wb = null;
  1840. } else
  1841. return b = Cb(c), null !== b && Fc(b), a.blockedOn = c, false;
  1842. b.shift();
  1843. }
  1844. return true;
  1845. }
  1846. function Zc(a, b, c) {
  1847. Xc(a) && c.delete(b);
  1848. }
  1849. function $c() {
  1850. Jc = false;
  1851. null !== Lc && Xc(Lc) && (Lc = null);
  1852. null !== Mc && Xc(Mc) && (Mc = null);
  1853. null !== Nc && Xc(Nc) && (Nc = null);
  1854. Oc.forEach(Zc);
  1855. Pc.forEach(Zc);
  1856. }
  1857. function ad(a, b) {
  1858. a.blockedOn === b && (a.blockedOn = null, Jc || (Jc = true, ca.unstable_scheduleCallback(ca.unstable_NormalPriority, $c)));
  1859. }
  1860. function bd(a) {
  1861. function b(b2) {
  1862. return ad(b2, a);
  1863. }
  1864. if (0 < Kc.length) {
  1865. ad(Kc[0], a);
  1866. for (var c = 1; c < Kc.length; c++) {
  1867. var d = Kc[c];
  1868. d.blockedOn === a && (d.blockedOn = null);
  1869. }
  1870. }
  1871. null !== Lc && ad(Lc, a);
  1872. null !== Mc && ad(Mc, a);
  1873. null !== Nc && ad(Nc, a);
  1874. Oc.forEach(b);
  1875. Pc.forEach(b);
  1876. for (c = 0; c < Qc.length; c++)
  1877. d = Qc[c], d.blockedOn === a && (d.blockedOn = null);
  1878. for (; 0 < Qc.length && (c = Qc[0], null === c.blockedOn); )
  1879. Vc(c), null === c.blockedOn && Qc.shift();
  1880. }
  1881. var cd = ua.ReactCurrentBatchConfig;
  1882. var dd = true;
  1883. function ed(a, b, c, d) {
  1884. var e = C, f = cd.transition;
  1885. cd.transition = null;
  1886. try {
  1887. C = 1, fd(a, b, c, d);
  1888. } finally {
  1889. C = e, cd.transition = f;
  1890. }
  1891. }
  1892. function gd(a, b, c, d) {
  1893. var e = C, f = cd.transition;
  1894. cd.transition = null;
  1895. try {
  1896. C = 4, fd(a, b, c, d);
  1897. } finally {
  1898. C = e, cd.transition = f;
  1899. }
  1900. }
  1901. function fd(a, b, c, d) {
  1902. if (dd) {
  1903. var e = Yc(a, b, c, d);
  1904. if (null === e)
  1905. hd(a, b, d, id, c), Sc(a, d);
  1906. else if (Uc(e, a, b, c, d))
  1907. d.stopPropagation();
  1908. else if (Sc(a, d), b & 4 && -1 < Rc.indexOf(a)) {
  1909. for (; null !== e; ) {
  1910. var f = Cb(e);
  1911. null !== f && Ec(f);
  1912. f = Yc(a, b, c, d);
  1913. null === f && hd(a, b, d, id, c);
  1914. if (f === e)
  1915. break;
  1916. e = f;
  1917. }
  1918. null !== e && d.stopPropagation();
  1919. } else
  1920. hd(a, b, d, null, c);
  1921. }
  1922. }
  1923. var id = null;
  1924. function Yc(a, b, c, d) {
  1925. id = null;
  1926. a = xb(d);
  1927. a = Wc(a);
  1928. if (null !== a)
  1929. if (b = Vb(a), null === b)
  1930. a = null;
  1931. else if (c = b.tag, 13 === c) {
  1932. a = Wb(b);
  1933. if (null !== a)
  1934. return a;
  1935. a = null;
  1936. } else if (3 === c) {
  1937. if (b.stateNode.current.memoizedState.isDehydrated)
  1938. return 3 === b.tag ? b.stateNode.containerInfo : null;
  1939. a = null;
  1940. } else
  1941. b !== a && (a = null);
  1942. id = a;
  1943. return null;
  1944. }
  1945. function jd(a) {
  1946. switch (a) {
  1947. case "cancel":
  1948. case "click":
  1949. case "close":
  1950. case "contextmenu":
  1951. case "copy":
  1952. case "cut":
  1953. case "auxclick":
  1954. case "dblclick":
  1955. case "dragend":
  1956. case "dragstart":
  1957. case "drop":
  1958. case "focusin":
  1959. case "focusout":
  1960. case "input":
  1961. case "invalid":
  1962. case "keydown":
  1963. case "keypress":
  1964. case "keyup":
  1965. case "mousedown":
  1966. case "mouseup":
  1967. case "paste":
  1968. case "pause":
  1969. case "play":
  1970. case "pointercancel":
  1971. case "pointerdown":
  1972. case "pointerup":
  1973. case "ratechange":
  1974. case "reset":
  1975. case "resize":
  1976. case "seeked":
  1977. case "submit":
  1978. case "touchcancel":
  1979. case "touchend":
  1980. case "touchstart":
  1981. case "volumechange":
  1982. case "change":
  1983. case "selectionchange":
  1984. case "textInput":
  1985. case "compositionstart":
  1986. case "compositionend":
  1987. case "compositionupdate":
  1988. case "beforeblur":
  1989. case "afterblur":
  1990. case "beforeinput":
  1991. case "blur":
  1992. case "fullscreenchange":
  1993. case "focus":
  1994. case "hashchange":
  1995. case "popstate":
  1996. case "select":
  1997. case "selectstart":
  1998. return 1;
  1999. case "drag":
  2000. case "dragenter":
  2001. case "dragexit":
  2002. case "dragleave":
  2003. case "dragover":
  2004. case "mousemove":
  2005. case "mouseout":
  2006. case "mouseover":
  2007. case "pointermove":
  2008. case "pointerout":
  2009. case "pointerover":
  2010. case "scroll":
  2011. case "toggle":
  2012. case "touchmove":
  2013. case "wheel":
  2014. case "mouseenter":
  2015. case "mouseleave":
  2016. case "pointerenter":
  2017. case "pointerleave":
  2018. return 4;
  2019. case "message":
  2020. switch (ec()) {
  2021. case fc:
  2022. return 1;
  2023. case gc:
  2024. return 4;
  2025. case hc:
  2026. case ic:
  2027. return 16;
  2028. case jc:
  2029. return 536870912;
  2030. default:
  2031. return 16;
  2032. }
  2033. default:
  2034. return 16;
  2035. }
  2036. }
  2037. var kd = null;
  2038. var ld = null;
  2039. var md = null;
  2040. function nd() {
  2041. if (md)
  2042. return md;
  2043. var a, b = ld, c = b.length, d, e = "value" in kd ? kd.value : kd.textContent, f = e.length;
  2044. for (a = 0; a < c && b[a] === e[a]; a++)
  2045. ;
  2046. var g = c - a;
  2047. for (d = 1; d <= g && b[c - d] === e[f - d]; d++)
  2048. ;
  2049. return md = e.slice(a, 1 < d ? 1 - d : void 0);
  2050. }
  2051. function od(a) {
  2052. var b = a.keyCode;
  2053. "charCode" in a ? (a = a.charCode, 0 === a && 13 === b && (a = 13)) : a = b;
  2054. 10 === a && (a = 13);
  2055. return 32 <= a || 13 === a ? a : 0;
  2056. }
  2057. function pd() {
  2058. return true;
  2059. }
  2060. function qd() {
  2061. return false;
  2062. }
  2063. function rd(a) {
  2064. function b(b2, d, e, f, g) {
  2065. this._reactName = b2;
  2066. this._targetInst = e;
  2067. this.type = d;
  2068. this.nativeEvent = f;
  2069. this.target = g;
  2070. this.currentTarget = null;
  2071. for (var c in a)
  2072. a.hasOwnProperty(c) && (b2 = a[c], this[c] = b2 ? b2(f) : f[c]);
  2073. this.isDefaultPrevented = (null != f.defaultPrevented ? f.defaultPrevented : false === f.returnValue) ? pd : qd;
  2074. this.isPropagationStopped = qd;
  2075. return this;
  2076. }
  2077. A(b.prototype, { preventDefault: function() {
  2078. this.defaultPrevented = true;
  2079. var a2 = this.nativeEvent;
  2080. a2 && (a2.preventDefault ? a2.preventDefault() : "unknown" !== typeof a2.returnValue && (a2.returnValue = false), this.isDefaultPrevented = pd);
  2081. }, stopPropagation: function() {
  2082. var a2 = this.nativeEvent;
  2083. a2 && (a2.stopPropagation ? a2.stopPropagation() : "unknown" !== typeof a2.cancelBubble && (a2.cancelBubble = true), this.isPropagationStopped = pd);
  2084. }, persist: function() {
  2085. }, isPersistent: pd });
  2086. return b;
  2087. }
  2088. var sd = { eventPhase: 0, bubbles: 0, cancelable: 0, timeStamp: function(a) {
  2089. return a.timeStamp || Date.now();
  2090. }, defaultPrevented: 0, isTrusted: 0 };
  2091. var td = rd(sd);
  2092. var ud = A({}, sd, { view: 0, detail: 0 });
  2093. var vd = rd(ud);
  2094. var wd;
  2095. var xd;
  2096. var yd;
  2097. var 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) {
  2098. return void 0 === a.relatedTarget ? a.fromElement === a.srcElement ? a.toElement : a.fromElement : a.relatedTarget;
  2099. }, movementX: function(a) {
  2100. if ("movementX" in a)
  2101. return a.movementX;
  2102. a !== yd && (yd && "mousemove" === a.type ? (wd = a.screenX - yd.screenX, xd = a.screenY - yd.screenY) : xd = wd = 0, yd = a);
  2103. return wd;
  2104. }, movementY: function(a) {
  2105. return "movementY" in a ? a.movementY : xd;
  2106. } });
  2107. var Bd = rd(Ad);
  2108. var Cd = A({}, Ad, { dataTransfer: 0 });
  2109. var Dd = rd(Cd);
  2110. var Ed = A({}, ud, { relatedTarget: 0 });
  2111. var Fd = rd(Ed);
  2112. var Gd = A({}, sd, { animationName: 0, elapsedTime: 0, pseudoElement: 0 });
  2113. var Hd = rd(Gd);
  2114. var Id = A({}, sd, { clipboardData: function(a) {
  2115. return "clipboardData" in a ? a.clipboardData : window.clipboardData;
  2116. } });
  2117. var Jd = rd(Id);
  2118. var Kd = A({}, sd, { data: 0 });
  2119. var Ld = rd(Kd);
  2120. var Md = {
  2121. Esc: "Escape",
  2122. Spacebar: " ",
  2123. Left: "ArrowLeft",
  2124. Up: "ArrowUp",
  2125. Right: "ArrowRight",
  2126. Down: "ArrowDown",
  2127. Del: "Delete",
  2128. Win: "OS",
  2129. Menu: "ContextMenu",
  2130. Apps: "ContextMenu",
  2131. Scroll: "ScrollLock",
  2132. MozPrintableKey: "Unidentified"
  2133. };
  2134. var Nd = {
  2135. 8: "Backspace",
  2136. 9: "Tab",
  2137. 12: "Clear",
  2138. 13: "Enter",
  2139. 16: "Shift",
  2140. 17: "Control",
  2141. 18: "Alt",
  2142. 19: "Pause",
  2143. 20: "CapsLock",
  2144. 27: "Escape",
  2145. 32: " ",
  2146. 33: "PageUp",
  2147. 34: "PageDown",
  2148. 35: "End",
  2149. 36: "Home",
  2150. 37: "ArrowLeft",
  2151. 38: "ArrowUp",
  2152. 39: "ArrowRight",
  2153. 40: "ArrowDown",
  2154. 45: "Insert",
  2155. 46: "Delete",
  2156. 112: "F1",
  2157. 113: "F2",
  2158. 114: "F3",
  2159. 115: "F4",
  2160. 116: "F5",
  2161. 117: "F6",
  2162. 118: "F7",
  2163. 119: "F8",
  2164. 120: "F9",
  2165. 121: "F10",
  2166. 122: "F11",
  2167. 123: "F12",
  2168. 144: "NumLock",
  2169. 145: "ScrollLock",
  2170. 224: "Meta"
  2171. };
  2172. var Od = { Alt: "altKey", Control: "ctrlKey", Meta: "metaKey", Shift: "shiftKey" };
  2173. function Pd(a) {
  2174. var b = this.nativeEvent;
  2175. return b.getModifierState ? b.getModifierState(a) : (a = Od[a]) ? !!b[a] : false;
  2176. }
  2177. function zd() {
  2178. return Pd;
  2179. }
  2180. var Qd = A({}, ud, { key: function(a) {
  2181. if (a.key) {
  2182. var b = Md[a.key] || a.key;
  2183. if ("Unidentified" !== b)
  2184. return b;
  2185. }
  2186. return "keypress" === a.type ? (a = od(a), 13 === a ? "Enter" : String.fromCharCode(a)) : "keydown" === a.type || "keyup" === a.type ? Nd[a.keyCode] || "Unidentified" : "";
  2187. }, code: 0, location: 0, ctrlKey: 0, shiftKey: 0, altKey: 0, metaKey: 0, repeat: 0, locale: 0, getModifierState: zd, charCode: function(a) {
  2188. return "keypress" === a.type ? od(a) : 0;
  2189. }, keyCode: function(a) {
  2190. return "keydown" === a.type || "keyup" === a.type ? a.keyCode : 0;
  2191. }, which: function(a) {
  2192. return "keypress" === a.type ? od(a) : "keydown" === a.type || "keyup" === a.type ? a.keyCode : 0;
  2193. } });
  2194. var Rd = rd(Qd);
  2195. var Sd = A({}, Ad, { pointerId: 0, width: 0, height: 0, pressure: 0, tangentialPressure: 0, tiltX: 0, tiltY: 0, twist: 0, pointerType: 0, isPrimary: 0 });
  2196. var Td = rd(Sd);
  2197. var Ud = A({}, ud, { touches: 0, targetTouches: 0, changedTouches: 0, altKey: 0, metaKey: 0, ctrlKey: 0, shiftKey: 0, getModifierState: zd });
  2198. var Vd = rd(Ud);
  2199. var Wd = A({}, sd, { propertyName: 0, elapsedTime: 0, pseudoElement: 0 });
  2200. var Xd = rd(Wd);
  2201. var Yd = A({}, Ad, {
  2202. deltaX: function(a) {
  2203. return "deltaX" in a ? a.deltaX : "wheelDeltaX" in a ? -a.wheelDeltaX : 0;
  2204. },
  2205. deltaY: function(a) {
  2206. return "deltaY" in a ? a.deltaY : "wheelDeltaY" in a ? -a.wheelDeltaY : "wheelDelta" in a ? -a.wheelDelta : 0;
  2207. },
  2208. deltaZ: 0,
  2209. deltaMode: 0
  2210. });
  2211. var Zd = rd(Yd);
  2212. var $d = [9, 13, 27, 32];
  2213. var ae = ia && "CompositionEvent" in window;
  2214. var be = null;
  2215. ia && "documentMode" in document && (be = document.documentMode);
  2216. var ce = ia && "TextEvent" in window && !be;
  2217. var de = ia && (!ae || be && 8 < be && 11 >= be);
  2218. var ee = String.fromCharCode(32);
  2219. var fe = false;
  2220. function ge(a, b) {
  2221. switch (a) {
  2222. case "keyup":
  2223. return -1 !== $d.indexOf(b.keyCode);
  2224. case "keydown":
  2225. return 229 !== b.keyCode;
  2226. case "keypress":
  2227. case "mousedown":
  2228. case "focusout":
  2229. return true;
  2230. default:
  2231. return false;
  2232. }
  2233. }
  2234. function he(a) {
  2235. a = a.detail;
  2236. return "object" === typeof a && "data" in a ? a.data : null;
  2237. }
  2238. var ie = false;
  2239. function je(a, b) {
  2240. switch (a) {
  2241. case "compositionend":
  2242. return he(b);
  2243. case "keypress":
  2244. if (32 !== b.which)
  2245. return null;
  2246. fe = true;
  2247. return ee;
  2248. case "textInput":
  2249. return a = b.data, a === ee && fe ? null : a;
  2250. default:
  2251. return null;
  2252. }
  2253. }
  2254. function ke(a, b) {
  2255. if (ie)
  2256. return "compositionend" === a || !ae && ge(a, b) ? (a = nd(), md = ld = kd = null, ie = false, a) : null;
  2257. switch (a) {
  2258. case "paste":
  2259. return null;
  2260. case "keypress":
  2261. if (!(b.ctrlKey || b.altKey || b.metaKey) || b.ctrlKey && b.altKey) {
  2262. if (b.char && 1 < b.char.length)
  2263. return b.char;
  2264. if (b.which)
  2265. return String.fromCharCode(b.which);
  2266. }
  2267. return null;
  2268. case "compositionend":
  2269. return de && "ko" !== b.locale ? null : b.data;
  2270. default:
  2271. return null;
  2272. }
  2273. }
  2274. var le = { color: true, date: true, datetime: true, "datetime-local": true, email: true, month: true, number: true, password: true, range: true, search: true, tel: true, text: true, time: true, url: true, week: true };
  2275. function me(a) {
  2276. var b = a && a.nodeName && a.nodeName.toLowerCase();
  2277. return "input" === b ? !!le[a.type] : "textarea" === b ? true : false;
  2278. }
  2279. function ne(a, b, c, d) {
  2280. Eb(d);
  2281. b = oe(b, "onChange");
  2282. 0 < b.length && (c = new td("onChange", "change", null, c, d), a.push({ event: c, listeners: b }));
  2283. }
  2284. var pe = null;
  2285. var qe = null;
  2286. function re(a) {
  2287. se(a, 0);
  2288. }
  2289. function te(a) {
  2290. var b = ue(a);
  2291. if (Wa(b))
  2292. return a;
  2293. }
  2294. function ve(a, b) {
  2295. if ("change" === a)
  2296. return b;
  2297. }
  2298. var we = false;
  2299. if (ia) {
  2300. if (ia) {
  2301. ye = "oninput" in document;
  2302. if (!ye) {
  2303. ze = document.createElement("div");
  2304. ze.setAttribute("oninput", "return;");
  2305. ye = "function" === typeof ze.oninput;
  2306. }
  2307. xe = ye;
  2308. } else
  2309. xe = false;
  2310. we = xe && (!document.documentMode || 9 < document.documentMode);
  2311. }
  2312. var xe;
  2313. var ye;
  2314. var ze;
  2315. function Ae() {
  2316. pe && (pe.detachEvent("onpropertychange", Be), qe = pe = null);
  2317. }
  2318. function Be(a) {
  2319. if ("value" === a.propertyName && te(qe)) {
  2320. var b = [];
  2321. ne(b, qe, a, xb(a));
  2322. Jb(re, b);
  2323. }
  2324. }
  2325. function Ce(a, b, c) {
  2326. "focusin" === a ? (Ae(), pe = b, qe = c, pe.attachEvent("onpropertychange", Be)) : "focusout" === a && Ae();
  2327. }
  2328. function De(a) {
  2329. if ("selectionchange" === a || "keyup" === a || "keydown" === a)
  2330. return te(qe);
  2331. }
  2332. function Ee(a, b) {
  2333. if ("click" === a)
  2334. return te(b);
  2335. }
  2336. function Fe(a, b) {
  2337. if ("input" === a || "change" === a)
  2338. return te(b);
  2339. }
  2340. function Ge(a, b) {
  2341. return a === b && (0 !== a || 1 / a === 1 / b) || a !== a && b !== b;
  2342. }
  2343. var He = "function" === typeof Object.is ? Object.is : Ge;
  2344. function Ie(a, b) {
  2345. if (He(a, b))
  2346. return true;
  2347. if ("object" !== typeof a || null === a || "object" !== typeof b || null === b)
  2348. return false;
  2349. var c = Object.keys(a), d = Object.keys(b);
  2350. if (c.length !== d.length)
  2351. return false;
  2352. for (d = 0; d < c.length; d++) {
  2353. var e = c[d];
  2354. if (!ja.call(b, e) || !He(a[e], b[e]))
  2355. return false;
  2356. }
  2357. return true;
  2358. }
  2359. function Je(a) {
  2360. for (; a && a.firstChild; )
  2361. a = a.firstChild;
  2362. return a;
  2363. }
  2364. function Ke(a, b) {
  2365. var c = Je(a);
  2366. a = 0;
  2367. for (var d; c; ) {
  2368. if (3 === c.nodeType) {
  2369. d = a + c.textContent.length;
  2370. if (a <= b && d >= b)
  2371. return { node: c, offset: b - a };
  2372. a = d;
  2373. }
  2374. a: {
  2375. for (; c; ) {
  2376. if (c.nextSibling) {
  2377. c = c.nextSibling;
  2378. break a;
  2379. }
  2380. c = c.parentNode;
  2381. }
  2382. c = void 0;
  2383. }
  2384. c = Je(c);
  2385. }
  2386. }
  2387. function Le(a, b) {
  2388. return a && b ? a === b ? true : a && 3 === a.nodeType ? false : b && 3 === b.nodeType ? Le(a, b.parentNode) : "contains" in a ? a.contains(b) : a.compareDocumentPosition ? !!(a.compareDocumentPosition(b) & 16) : false : false;
  2389. }
  2390. function Me() {
  2391. for (var a = window, b = Xa(); b instanceof a.HTMLIFrameElement; ) {
  2392. try {
  2393. var c = "string" === typeof b.contentWindow.location.href;
  2394. } catch (d) {
  2395. c = false;
  2396. }
  2397. if (c)
  2398. a = b.contentWindow;
  2399. else
  2400. break;
  2401. b = Xa(a.document);
  2402. }
  2403. return b;
  2404. }
  2405. function Ne(a) {
  2406. var b = a && a.nodeName && a.nodeName.toLowerCase();
  2407. return b && ("input" === b && ("text" === a.type || "search" === a.type || "tel" === a.type || "url" === a.type || "password" === a.type) || "textarea" === b || "true" === a.contentEditable);
  2408. }
  2409. function Oe(a) {
  2410. var b = Me(), c = a.focusedElem, d = a.selectionRange;
  2411. if (b !== c && c && c.ownerDocument && Le(c.ownerDocument.documentElement, c)) {
  2412. if (null !== d && Ne(c)) {
  2413. if (b = d.start, a = d.end, void 0 === a && (a = b), "selectionStart" in c)
  2414. c.selectionStart = b, c.selectionEnd = Math.min(a, c.value.length);
  2415. else if (a = (b = c.ownerDocument || document) && b.defaultView || window, a.getSelection) {
  2416. a = a.getSelection();
  2417. var e = c.textContent.length, f = Math.min(d.start, e);
  2418. d = void 0 === d.end ? f : Math.min(d.end, e);
  2419. !a.extend && f > d && (e = d, d = f, f = e);
  2420. e = Ke(c, f);
  2421. var g = Ke(
  2422. c,
  2423. d
  2424. );
  2425. 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)));
  2426. }
  2427. }
  2428. b = [];
  2429. for (a = c; a = a.parentNode; )
  2430. 1 === a.nodeType && b.push({ element: a, left: a.scrollLeft, top: a.scrollTop });
  2431. "function" === typeof c.focus && c.focus();
  2432. for (c = 0; c < b.length; c++)
  2433. a = b[c], a.element.scrollLeft = a.left, a.element.scrollTop = a.top;
  2434. }
  2435. }
  2436. var Pe = ia && "documentMode" in document && 11 >= document.documentMode;
  2437. var Qe = null;
  2438. var Re = null;
  2439. var Se = null;
  2440. var Te = false;
  2441. function Ue(a, b, c) {
  2442. var d = c.window === c ? c.document : 9 === c.nodeType ? c : c.ownerDocument;
  2443. Te || null == Qe || Qe !== Xa(d) || (d = Qe, "selectionStart" in d && Ne(d) ? d = { start: d.selectionStart, end: d.selectionEnd } : (d = (d.ownerDocument && d.ownerDocument.defaultView || window).getSelection(), d = { anchorNode: d.anchorNode, anchorOffset: d.anchorOffset, focusNode: d.focusNode, focusOffset: d.focusOffset }), Se && Ie(Se, d) || (Se = d, d = oe(Re, "onSelect"), 0 < d.length && (b = new td("onSelect", "select", null, b, c), a.push({ event: b, listeners: d }), b.target = Qe)));
  2444. }
  2445. function Ve(a, b) {
  2446. var c = {};
  2447. c[a.toLowerCase()] = b.toLowerCase();
  2448. c["Webkit" + a] = "webkit" + b;
  2449. c["Moz" + a] = "moz" + b;
  2450. return c;
  2451. }
  2452. var We = { animationend: Ve("Animation", "AnimationEnd"), animationiteration: Ve("Animation", "AnimationIteration"), animationstart: Ve("Animation", "AnimationStart"), transitionend: Ve("Transition", "TransitionEnd") };
  2453. var Xe = {};
  2454. var Ye = {};
  2455. ia && (Ye = document.createElement("div").style, "AnimationEvent" in window || (delete We.animationend.animation, delete We.animationiteration.animation, delete We.animationstart.animation), "TransitionEvent" in window || delete We.transitionend.transition);
  2456. function Ze(a) {
  2457. if (Xe[a])
  2458. return Xe[a];
  2459. if (!We[a])
  2460. return a;
  2461. var b = We[a], c;
  2462. for (c in b)
  2463. if (b.hasOwnProperty(c) && c in Ye)
  2464. return Xe[a] = b[c];
  2465. return a;
  2466. }
  2467. var $e = Ze("animationend");
  2468. var af = Ze("animationiteration");
  2469. var bf = Ze("animationstart");
  2470. var cf = Ze("transitionend");
  2471. var df = /* @__PURE__ */ new Map();
  2472. var ef = "abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");
  2473. function ff(a, b) {
  2474. df.set(a, b);
  2475. fa(b, [a]);
  2476. }
  2477. for (gf = 0; gf < ef.length; gf++) {
  2478. hf = ef[gf], jf = hf.toLowerCase(), kf = hf[0].toUpperCase() + hf.slice(1);
  2479. ff(jf, "on" + kf);
  2480. }
  2481. var hf;
  2482. var jf;
  2483. var kf;
  2484. var gf;
  2485. ff($e, "onAnimationEnd");
  2486. ff(af, "onAnimationIteration");
  2487. ff(bf, "onAnimationStart");
  2488. ff("dblclick", "onDoubleClick");
  2489. ff("focusin", "onFocus");
  2490. ff("focusout", "onBlur");
  2491. ff(cf, "onTransitionEnd");
  2492. ha("onMouseEnter", ["mouseout", "mouseover"]);
  2493. ha("onMouseLeave", ["mouseout", "mouseover"]);
  2494. ha("onPointerEnter", ["pointerout", "pointerover"]);
  2495. ha("onPointerLeave", ["pointerout", "pointerover"]);
  2496. fa("onChange", "change click focusin focusout input keydown keyup selectionchange".split(" "));
  2497. fa("onSelect", "focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));
  2498. fa("onBeforeInput", ["compositionend", "keypress", "textInput", "paste"]);
  2499. fa("onCompositionEnd", "compositionend focusout keydown keypress keyup mousedown".split(" "));
  2500. fa("onCompositionStart", "compositionstart focusout keydown keypress keyup mousedown".split(" "));
  2501. fa("onCompositionUpdate", "compositionupdate focusout keydown keypress keyup mousedown".split(" "));
  2502. var lf = "abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" ");
  2503. var mf = new Set("cancel close invalid load scroll toggle".split(" ").concat(lf));
  2504. function nf(a, b, c) {
  2505. var d = a.type || "unknown-event";
  2506. a.currentTarget = c;
  2507. Ub(d, b, void 0, a);
  2508. a.currentTarget = null;
  2509. }
  2510. function se(a, b) {
  2511. b = 0 !== (b & 4);
  2512. for (var c = 0; c < a.length; c++) {
  2513. var d = a[c], e = d.event;
  2514. d = d.listeners;
  2515. a: {
  2516. var f = void 0;
  2517. if (b)
  2518. for (var g = d.length - 1; 0 <= g; g--) {
  2519. var h = d[g], k = h.instance, l = h.currentTarget;
  2520. h = h.listener;
  2521. if (k !== f && e.isPropagationStopped())
  2522. break a;
  2523. nf(e, h, l);
  2524. f = k;
  2525. }
  2526. else
  2527. for (g = 0; g < d.length; g++) {
  2528. h = d[g];
  2529. k = h.instance;
  2530. l = h.currentTarget;
  2531. h = h.listener;
  2532. if (k !== f && e.isPropagationStopped())
  2533. break a;
  2534. nf(e, h, l);
  2535. f = k;
  2536. }
  2537. }
  2538. }
  2539. if (Qb)
  2540. throw a = Rb, Qb = false, Rb = null, a;
  2541. }
  2542. function D(a, b) {
  2543. var c = b[of];
  2544. void 0 === c && (c = b[of] = /* @__PURE__ */ new Set());
  2545. var d = a + "__bubble";
  2546. c.has(d) || (pf(b, a, 2, false), c.add(d));
  2547. }
  2548. function qf(a, b, c) {
  2549. var d = 0;
  2550. b && (d |= 4);
  2551. pf(c, a, d, b);
  2552. }
  2553. var rf = "_reactListening" + Math.random().toString(36).slice(2);
  2554. function sf(a) {
  2555. if (!a[rf]) {
  2556. a[rf] = true;
  2557. da.forEach(function(b2) {
  2558. "selectionchange" !== b2 && (mf.has(b2) || qf(b2, false, a), qf(b2, true, a));
  2559. });
  2560. var b = 9 === a.nodeType ? a : a.ownerDocument;
  2561. null === b || b[rf] || (b[rf] = true, qf("selectionchange", false, b));
  2562. }
  2563. }
  2564. function pf(a, b, c, d) {
  2565. switch (jd(b)) {
  2566. case 1:
  2567. var e = ed;
  2568. break;
  2569. case 4:
  2570. e = gd;
  2571. break;
  2572. default:
  2573. e = fd;
  2574. }
  2575. c = e.bind(null, b, c, a);
  2576. e = void 0;
  2577. !Lb || "touchstart" !== b && "touchmove" !== b && "wheel" !== b || (e = true);
  2578. d ? void 0 !== e ? a.addEventListener(b, c, { capture: true, passive: e }) : a.addEventListener(b, c, true) : void 0 !== e ? a.addEventListener(b, c, { passive: e }) : a.addEventListener(b, c, false);
  2579. }
  2580. function hd(a, b, c, d, e) {
  2581. var f = d;
  2582. if (0 === (b & 1) && 0 === (b & 2) && null !== d)
  2583. a:
  2584. for (; ; ) {
  2585. if (null === d)
  2586. return;
  2587. var g = d.tag;
  2588. if (3 === g || 4 === g) {
  2589. var h = d.stateNode.containerInfo;
  2590. if (h === e || 8 === h.nodeType && h.parentNode === e)
  2591. break;
  2592. if (4 === g)
  2593. for (g = d.return; null !== g; ) {
  2594. var k = g.tag;
  2595. if (3 === k || 4 === k) {
  2596. if (k = g.stateNode.containerInfo, k === e || 8 === k.nodeType && k.parentNode === e)
  2597. return;
  2598. }
  2599. g = g.return;
  2600. }
  2601. for (; null !== h; ) {
  2602. g = Wc(h);
  2603. if (null === g)
  2604. return;
  2605. k = g.tag;
  2606. if (5 === k || 6 === k) {
  2607. d = f = g;
  2608. continue a;
  2609. }
  2610. h = h.parentNode;
  2611. }
  2612. }
  2613. d = d.return;
  2614. }
  2615. Jb(function() {
  2616. var d2 = f, e2 = xb(c), g2 = [];
  2617. a: {
  2618. var h2 = df.get(a);
  2619. if (void 0 !== h2) {
  2620. var k2 = td, n = a;
  2621. switch (a) {
  2622. case "keypress":
  2623. if (0 === od(c))
  2624. break a;
  2625. case "keydown":
  2626. case "keyup":
  2627. k2 = Rd;
  2628. break;
  2629. case "focusin":
  2630. n = "focus";
  2631. k2 = Fd;
  2632. break;
  2633. case "focusout":
  2634. n = "blur";
  2635. k2 = Fd;
  2636. break;
  2637. case "beforeblur":
  2638. case "afterblur":
  2639. k2 = Fd;
  2640. break;
  2641. case "click":
  2642. if (2 === c.button)
  2643. break a;
  2644. case "auxclick":
  2645. case "dblclick":
  2646. case "mousedown":
  2647. case "mousemove":
  2648. case "mouseup":
  2649. case "mouseout":
  2650. case "mouseover":
  2651. case "contextmenu":
  2652. k2 = Bd;
  2653. break;
  2654. case "drag":
  2655. case "dragend":
  2656. case "dragenter":
  2657. case "dragexit":
  2658. case "dragleave":
  2659. case "dragover":
  2660. case "dragstart":
  2661. case "drop":
  2662. k2 = Dd;
  2663. break;
  2664. case "touchcancel":
  2665. case "touchend":
  2666. case "touchmove":
  2667. case "touchstart":
  2668. k2 = Vd;
  2669. break;
  2670. case $e:
  2671. case af:
  2672. case bf:
  2673. k2 = Hd;
  2674. break;
  2675. case cf:
  2676. k2 = Xd;
  2677. break;
  2678. case "scroll":
  2679. k2 = vd;
  2680. break;
  2681. case "wheel":
  2682. k2 = Zd;
  2683. break;
  2684. case "copy":
  2685. case "cut":
  2686. case "paste":
  2687. k2 = Jd;
  2688. break;
  2689. case "gotpointercapture":
  2690. case "lostpointercapture":
  2691. case "pointercancel":
  2692. case "pointerdown":
  2693. case "pointermove":
  2694. case "pointerout":
  2695. case "pointerover":
  2696. case "pointerup":
  2697. k2 = Td;
  2698. }
  2699. var t = 0 !== (b & 4), J = !t && "scroll" === a, x = t ? null !== h2 ? h2 + "Capture" : null : h2;
  2700. t = [];
  2701. for (var w = d2, u; null !== w; ) {
  2702. u = w;
  2703. var F = u.stateNode;
  2704. 5 === u.tag && null !== F && (u = F, null !== x && (F = Kb(w, x), null != F && t.push(tf(w, F, u))));
  2705. if (J)
  2706. break;
  2707. w = w.return;
  2708. }
  2709. 0 < t.length && (h2 = new k2(h2, n, null, c, e2), g2.push({ event: h2, listeners: t }));
  2710. }
  2711. }
  2712. if (0 === (b & 7)) {
  2713. a: {
  2714. h2 = "mouseover" === a || "pointerover" === a;
  2715. k2 = "mouseout" === a || "pointerout" === a;
  2716. if (h2 && c !== wb && (n = c.relatedTarget || c.fromElement) && (Wc(n) || n[uf]))
  2717. break a;
  2718. if (k2 || h2) {
  2719. h2 = e2.window === e2 ? e2 : (h2 = e2.ownerDocument) ? h2.defaultView || h2.parentWindow : window;
  2720. if (k2) {
  2721. if (n = c.relatedTarget || c.toElement, k2 = d2, n = n ? Wc(n) : null, null !== n && (J = Vb(n), n !== J || 5 !== n.tag && 6 !== n.tag))
  2722. n = null;
  2723. } else
  2724. k2 = null, n = d2;
  2725. if (k2 !== n) {
  2726. t = Bd;
  2727. F = "onMouseLeave";
  2728. x = "onMouseEnter";
  2729. w = "mouse";
  2730. if ("pointerout" === a || "pointerover" === a)
  2731. t = Td, F = "onPointerLeave", x = "onPointerEnter", w = "pointer";
  2732. J = null == k2 ? h2 : ue(k2);
  2733. u = null == n ? h2 : ue(n);
  2734. h2 = new t(F, w + "leave", k2, c, e2);
  2735. h2.target = J;
  2736. h2.relatedTarget = u;
  2737. F = null;
  2738. Wc(e2) === d2 && (t = new t(x, w + "enter", n, c, e2), t.target = u, t.relatedTarget = J, F = t);
  2739. J = F;
  2740. if (k2 && n)
  2741. b: {
  2742. t = k2;
  2743. x = n;
  2744. w = 0;
  2745. for (u = t; u; u = vf(u))
  2746. w++;
  2747. u = 0;
  2748. for (F = x; F; F = vf(F))
  2749. u++;
  2750. for (; 0 < w - u; )
  2751. t = vf(t), w--;
  2752. for (; 0 < u - w; )
  2753. x = vf(x), u--;
  2754. for (; w--; ) {
  2755. if (t === x || null !== x && t === x.alternate)
  2756. break b;
  2757. t = vf(t);
  2758. x = vf(x);
  2759. }
  2760. t = null;
  2761. }
  2762. else
  2763. t = null;
  2764. null !== k2 && wf(g2, h2, k2, t, false);
  2765. null !== n && null !== J && wf(g2, J, n, t, true);
  2766. }
  2767. }
  2768. }
  2769. a: {
  2770. h2 = d2 ? ue(d2) : window;
  2771. k2 = h2.nodeName && h2.nodeName.toLowerCase();
  2772. if ("select" === k2 || "input" === k2 && "file" === h2.type)
  2773. var na = ve;
  2774. else if (me(h2))
  2775. if (we)
  2776. na = Fe;
  2777. else {
  2778. na = De;
  2779. var xa = Ce;
  2780. }
  2781. else
  2782. (k2 = h2.nodeName) && "input" === k2.toLowerCase() && ("checkbox" === h2.type || "radio" === h2.type) && (na = Ee);
  2783. if (na && (na = na(a, d2))) {
  2784. ne(g2, na, c, e2);
  2785. break a;
  2786. }
  2787. xa && xa(a, h2, d2);
  2788. "focusout" === a && (xa = h2._wrapperState) && xa.controlled && "number" === h2.type && cb(h2, "number", h2.value);
  2789. }
  2790. xa = d2 ? ue(d2) : window;
  2791. switch (a) {
  2792. case "focusin":
  2793. if (me(xa) || "true" === xa.contentEditable)
  2794. Qe = xa, Re = d2, Se = null;
  2795. break;
  2796. case "focusout":
  2797. Se = Re = Qe = null;
  2798. break;
  2799. case "mousedown":
  2800. Te = true;
  2801. break;
  2802. case "contextmenu":
  2803. case "mouseup":
  2804. case "dragend":
  2805. Te = false;
  2806. Ue(g2, c, e2);
  2807. break;
  2808. case "selectionchange":
  2809. if (Pe)
  2810. break;
  2811. case "keydown":
  2812. case "keyup":
  2813. Ue(g2, c, e2);
  2814. }
  2815. var $a;
  2816. if (ae)
  2817. b: {
  2818. switch (a) {
  2819. case "compositionstart":
  2820. var ba = "onCompositionStart";
  2821. break b;
  2822. case "compositionend":
  2823. ba = "onCompositionEnd";
  2824. break b;
  2825. case "compositionupdate":
  2826. ba = "onCompositionUpdate";
  2827. break b;
  2828. }
  2829. ba = void 0;
  2830. }
  2831. else
  2832. ie ? ge(a, c) && (ba = "onCompositionEnd") : "keydown" === a && 229 === c.keyCode && (ba = "onCompositionStart");
  2833. ba && (de && "ko" !== c.locale && (ie || "onCompositionStart" !== ba ? "onCompositionEnd" === ba && ie && ($a = nd()) : (kd = e2, ld = "value" in kd ? kd.value : kd.textContent, ie = true)), xa = oe(d2, ba), 0 < xa.length && (ba = new Ld(ba, a, null, c, e2), g2.push({ event: ba, listeners: xa }), $a ? ba.data = $a : ($a = he(c), null !== $a && (ba.data = $a))));
  2834. if ($a = ce ? je(a, c) : ke(a, c))
  2835. d2 = oe(d2, "onBeforeInput"), 0 < d2.length && (e2 = new Ld("onBeforeInput", "beforeinput", null, c, e2), g2.push({ event: e2, listeners: d2 }), e2.data = $a);
  2836. }
  2837. se(g2, b);
  2838. });
  2839. }
  2840. function tf(a, b, c) {
  2841. return { instance: a, listener: b, currentTarget: c };
  2842. }
  2843. function oe(a, b) {
  2844. for (var c = b + "Capture", d = []; null !== a; ) {
  2845. var e = a, f = e.stateNode;
  2846. 5 === e.tag && null !== f && (e = f, f = Kb(a, c), null != f && d.unshift(tf(a, f, e)), f = Kb(a, b), null != f && d.push(tf(a, f, e)));
  2847. a = a.return;
  2848. }
  2849. return d;
  2850. }
  2851. function vf(a) {
  2852. if (null === a)
  2853. return null;
  2854. do
  2855. a = a.return;
  2856. while (a && 5 !== a.tag);
  2857. return a ? a : null;
  2858. }
  2859. function wf(a, b, c, d, e) {
  2860. for (var f = b._reactName, g = []; null !== c && c !== d; ) {
  2861. var h = c, k = h.alternate, l = h.stateNode;
  2862. if (null !== k && k === d)
  2863. break;
  2864. 5 === h.tag && null !== l && (h = l, e ? (k = Kb(c, f), null != k && g.unshift(tf(c, k, h))) : e || (k = Kb(c, f), null != k && g.push(tf(c, k, h))));
  2865. c = c.return;
  2866. }
  2867. 0 !== g.length && a.push({ event: b, listeners: g });
  2868. }
  2869. var xf = /\r\n?/g;
  2870. var yf = /\u0000|\uFFFD/g;
  2871. function zf(a) {
  2872. return ("string" === typeof a ? a : "" + a).replace(xf, "\n").replace(yf, "");
  2873. }
  2874. function Af(a, b, c) {
  2875. b = zf(b);
  2876. if (zf(a) !== b && c)
  2877. throw Error(p(425));
  2878. }
  2879. function Bf() {
  2880. }
  2881. var Cf = null;
  2882. var Df = null;
  2883. function Ef(a, b) {
  2884. return "textarea" === a || "noscript" === a || "string" === typeof b.children || "number" === typeof b.children || "object" === typeof b.dangerouslySetInnerHTML && null !== b.dangerouslySetInnerHTML && null != b.dangerouslySetInnerHTML.__html;
  2885. }
  2886. var Ff = "function" === typeof setTimeout ? setTimeout : void 0;
  2887. var Gf = "function" === typeof clearTimeout ? clearTimeout : void 0;
  2888. var Hf = "function" === typeof Promise ? Promise : void 0;
  2889. var Jf = "function" === typeof queueMicrotask ? queueMicrotask : "undefined" !== typeof Hf ? function(a) {
  2890. return Hf.resolve(null).then(a).catch(If);
  2891. } : Ff;
  2892. function If(a) {
  2893. setTimeout(function() {
  2894. throw a;
  2895. });
  2896. }
  2897. function Kf(a, b) {
  2898. var c = b, d = 0;
  2899. do {
  2900. var e = c.nextSibling;
  2901. a.removeChild(c);
  2902. if (e && 8 === e.nodeType)
  2903. if (c = e.data, "/$" === c) {
  2904. if (0 === d) {
  2905. a.removeChild(e);
  2906. bd(b);
  2907. return;
  2908. }
  2909. d--;
  2910. } else
  2911. "$" !== c && "$?" !== c && "$!" !== c || d++;
  2912. c = e;
  2913. } while (c);
  2914. bd(b);
  2915. }
  2916. function Lf(a) {
  2917. for (; null != a; a = a.nextSibling) {
  2918. var b = a.nodeType;
  2919. if (1 === b || 3 === b)
  2920. break;
  2921. if (8 === b) {
  2922. b = a.data;
  2923. if ("$" === b || "$!" === b || "$?" === b)
  2924. break;
  2925. if ("/$" === b)
  2926. return null;
  2927. }
  2928. }
  2929. return a;
  2930. }
  2931. function Mf(a) {
  2932. a = a.previousSibling;
  2933. for (var b = 0; a; ) {
  2934. if (8 === a.nodeType) {
  2935. var c = a.data;
  2936. if ("$" === c || "$!" === c || "$?" === c) {
  2937. if (0 === b)
  2938. return a;
  2939. b--;
  2940. } else
  2941. "/$" === c && b++;
  2942. }
  2943. a = a.previousSibling;
  2944. }
  2945. return null;
  2946. }
  2947. var Nf = Math.random().toString(36).slice(2);
  2948. var Of = "__reactFiber$" + Nf;
  2949. var Pf = "__reactProps$" + Nf;
  2950. var uf = "__reactContainer$" + Nf;
  2951. var of = "__reactEvents$" + Nf;
  2952. var Qf = "__reactListeners$" + Nf;
  2953. var Rf = "__reactHandles$" + Nf;
  2954. function Wc(a) {
  2955. var b = a[Of];
  2956. if (b)
  2957. return b;
  2958. for (var c = a.parentNode; c; ) {
  2959. if (b = c[uf] || c[Of]) {
  2960. c = b.alternate;
  2961. if (null !== b.child || null !== c && null !== c.child)
  2962. for (a = Mf(a); null !== a; ) {
  2963. if (c = a[Of])
  2964. return c;
  2965. a = Mf(a);
  2966. }
  2967. return b;
  2968. }
  2969. a = c;
  2970. c = a.parentNode;
  2971. }
  2972. return null;
  2973. }
  2974. function Cb(a) {
  2975. a = a[Of] || a[uf];
  2976. return !a || 5 !== a.tag && 6 !== a.tag && 13 !== a.tag && 3 !== a.tag ? null : a;
  2977. }
  2978. function ue(a) {
  2979. if (5 === a.tag || 6 === a.tag)
  2980. return a.stateNode;
  2981. throw Error(p(33));
  2982. }
  2983. function Db(a) {
  2984. return a[Pf] || null;
  2985. }
  2986. var Sf = [];
  2987. var Tf = -1;
  2988. function Uf(a) {
  2989. return { current: a };
  2990. }
  2991. function E(a) {
  2992. 0 > Tf || (a.current = Sf[Tf], Sf[Tf] = null, Tf--);
  2993. }
  2994. function G(a, b) {
  2995. Tf++;
  2996. Sf[Tf] = a.current;
  2997. a.current = b;
  2998. }
  2999. var Vf = {};
  3000. var H = Uf(Vf);
  3001. var Wf = Uf(false);
  3002. var Xf = Vf;
  3003. function Yf(a, b) {
  3004. var c = a.type.contextTypes;
  3005. if (!c)
  3006. return Vf;
  3007. var d = a.stateNode;
  3008. if (d && d.__reactInternalMemoizedUnmaskedChildContext === b)
  3009. return d.__reactInternalMemoizedMaskedChildContext;
  3010. var e = {}, f;
  3011. for (f in c)
  3012. e[f] = b[f];
  3013. d && (a = a.stateNode, a.__reactInternalMemoizedUnmaskedChildContext = b, a.__reactInternalMemoizedMaskedChildContext = e);
  3014. return e;
  3015. }
  3016. function Zf(a) {
  3017. a = a.childContextTypes;
  3018. return null !== a && void 0 !== a;
  3019. }
  3020. function $f() {
  3021. E(Wf);
  3022. E(H);
  3023. }
  3024. function ag(a, b, c) {
  3025. if (H.current !== Vf)
  3026. throw Error(p(168));
  3027. G(H, b);
  3028. G(Wf, c);
  3029. }
  3030. function bg(a, b, c) {
  3031. var d = a.stateNode;
  3032. b = b.childContextTypes;
  3033. if ("function" !== typeof d.getChildContext)
  3034. return c;
  3035. d = d.getChildContext();
  3036. for (var e in d)
  3037. if (!(e in b))
  3038. throw Error(p(108, Ra(a) || "Unknown", e));
  3039. return A({}, c, d);
  3040. }
  3041. function cg(a) {
  3042. a = (a = a.stateNode) && a.__reactInternalMemoizedMergedChildContext || Vf;
  3043. Xf = H.current;
  3044. G(H, a);
  3045. G(Wf, Wf.current);
  3046. return true;
  3047. }
  3048. function dg(a, b, c) {
  3049. var d = a.stateNode;
  3050. if (!d)
  3051. throw Error(p(169));
  3052. c ? (a = bg(a, b, Xf), d.__reactInternalMemoizedMergedChildContext = a, E(Wf), E(H), G(H, a)) : E(Wf);
  3053. G(Wf, c);
  3054. }
  3055. var eg = null;
  3056. var fg = false;
  3057. var gg = false;
  3058. function hg(a) {
  3059. null === eg ? eg = [a] : eg.push(a);
  3060. }
  3061. function ig(a) {
  3062. fg = true;
  3063. hg(a);
  3064. }
  3065. function jg() {
  3066. if (!gg && null !== eg) {
  3067. gg = true;
  3068. var a = 0, b = C;
  3069. try {
  3070. var c = eg;
  3071. for (C = 1; a < c.length; a++) {
  3072. var d = c[a];
  3073. do
  3074. d = d(true);
  3075. while (null !== d);
  3076. }
  3077. eg = null;
  3078. fg = false;
  3079. } catch (e) {
  3080. throw null !== eg && (eg = eg.slice(a + 1)), ac(fc, jg), e;
  3081. } finally {
  3082. C = b, gg = false;
  3083. }
  3084. }
  3085. return null;
  3086. }
  3087. var kg = [];
  3088. var lg = 0;
  3089. var mg = null;
  3090. var ng = 0;
  3091. var og = [];
  3092. var pg = 0;
  3093. var qg = null;
  3094. var rg = 1;
  3095. var sg = "";
  3096. function tg(a, b) {
  3097. kg[lg++] = ng;
  3098. kg[lg++] = mg;
  3099. mg = a;
  3100. ng = b;
  3101. }
  3102. function ug(a, b, c) {
  3103. og[pg++] = rg;
  3104. og[pg++] = sg;
  3105. og[pg++] = qg;
  3106. qg = a;
  3107. var d = rg;
  3108. a = sg;
  3109. var e = 32 - oc(d) - 1;
  3110. d &= ~(1 << e);
  3111. c += 1;
  3112. var f = 32 - oc(b) + e;
  3113. if (30 < f) {
  3114. var g = e - e % 5;
  3115. f = (d & (1 << g) - 1).toString(32);
  3116. d >>= g;
  3117. e -= g;
  3118. rg = 1 << 32 - oc(b) + e | c << e | d;
  3119. sg = f + a;
  3120. } else
  3121. rg = 1 << f | c << e | d, sg = a;
  3122. }
  3123. function vg(a) {
  3124. null !== a.return && (tg(a, 1), ug(a, 1, 0));
  3125. }
  3126. function wg(a) {
  3127. for (; a === mg; )
  3128. mg = kg[--lg], kg[lg] = null, ng = kg[--lg], kg[lg] = null;
  3129. for (; a === qg; )
  3130. qg = og[--pg], og[pg] = null, sg = og[--pg], og[pg] = null, rg = og[--pg], og[pg] = null;
  3131. }
  3132. var xg = null;
  3133. var yg = null;
  3134. var I = false;
  3135. var zg = null;
  3136. function Ag(a, b) {
  3137. var c = Bg(5, null, null, 0);
  3138. c.elementType = "DELETED";
  3139. c.stateNode = b;
  3140. c.return = a;
  3141. b = a.deletions;
  3142. null === b ? (a.deletions = [c], a.flags |= 16) : b.push(c);
  3143. }
  3144. function Cg(a, b) {
  3145. switch (a.tag) {
  3146. case 5:
  3147. var c = a.type;
  3148. b = 1 !== b.nodeType || c.toLowerCase() !== b.nodeName.toLowerCase() ? null : b;
  3149. return null !== b ? (a.stateNode = b, xg = a, yg = Lf(b.firstChild), true) : false;
  3150. case 6:
  3151. return b = "" === a.pendingProps || 3 !== b.nodeType ? null : b, null !== b ? (a.stateNode = b, xg = a, yg = null, true) : false;
  3152. case 13:
  3153. return b = 8 !== b.nodeType ? null : b, null !== b ? (c = null !== qg ? { id: rg, overflow: sg } : null, a.memoizedState = { dehydrated: b, treeContext: c, retryLane: 1073741824 }, c = Bg(18, null, null, 0), c.stateNode = b, c.return = a, a.child = c, xg = a, yg = null, true) : false;
  3154. default:
  3155. return false;
  3156. }
  3157. }
  3158. function Dg(a) {
  3159. return 0 !== (a.mode & 1) && 0 === (a.flags & 128);
  3160. }
  3161. function Eg(a) {
  3162. if (I) {
  3163. var b = yg;
  3164. if (b) {
  3165. var c = b;
  3166. if (!Cg(a, b)) {
  3167. if (Dg(a))
  3168. throw Error(p(418));
  3169. b = Lf(c.nextSibling);
  3170. var d = xg;
  3171. b && Cg(a, b) ? Ag(d, c) : (a.flags = a.flags & -4097 | 2, I = false, xg = a);
  3172. }
  3173. } else {
  3174. if (Dg(a))
  3175. throw Error(p(418));
  3176. a.flags = a.flags & -4097 | 2;
  3177. I = false;
  3178. xg = a;
  3179. }
  3180. }
  3181. }
  3182. function Fg(a) {
  3183. for (a = a.return; null !== a && 5 !== a.tag && 3 !== a.tag && 13 !== a.tag; )
  3184. a = a.return;
  3185. xg = a;
  3186. }
  3187. function Gg(a) {
  3188. if (a !== xg)
  3189. return false;
  3190. if (!I)
  3191. return Fg(a), I = true, false;
  3192. var b;
  3193. (b = 3 !== a.tag) && !(b = 5 !== a.tag) && (b = a.type, b = "head" !== b && "body" !== b && !Ef(a.type, a.memoizedProps));
  3194. if (b && (b = yg)) {
  3195. if (Dg(a))
  3196. throw Hg(), Error(p(418));
  3197. for (; b; )
  3198. Ag(a, b), b = Lf(b.nextSibling);
  3199. }
  3200. Fg(a);
  3201. if (13 === a.tag) {
  3202. a = a.memoizedState;
  3203. a = null !== a ? a.dehydrated : null;
  3204. if (!a)
  3205. throw Error(p(317));
  3206. a: {
  3207. a = a.nextSibling;
  3208. for (b = 0; a; ) {
  3209. if (8 === a.nodeType) {
  3210. var c = a.data;
  3211. if ("/$" === c) {
  3212. if (0 === b) {
  3213. yg = Lf(a.nextSibling);
  3214. break a;
  3215. }
  3216. b--;
  3217. } else
  3218. "$" !== c && "$!" !== c && "$?" !== c || b++;
  3219. }
  3220. a = a.nextSibling;
  3221. }
  3222. yg = null;
  3223. }
  3224. } else
  3225. yg = xg ? Lf(a.stateNode.nextSibling) : null;
  3226. return true;
  3227. }
  3228. function Hg() {
  3229. for (var a = yg; a; )
  3230. a = Lf(a.nextSibling);
  3231. }
  3232. function Ig() {
  3233. yg = xg = null;
  3234. I = false;
  3235. }
  3236. function Jg(a) {
  3237. null === zg ? zg = [a] : zg.push(a);
  3238. }
  3239. var Kg = ua.ReactCurrentBatchConfig;
  3240. function Lg(a, b, c) {
  3241. a = c.ref;
  3242. if (null !== a && "function" !== typeof a && "object" !== typeof a) {
  3243. if (c._owner) {
  3244. c = c._owner;
  3245. if (c) {
  3246. if (1 !== c.tag)
  3247. throw Error(p(309));
  3248. var d = c.stateNode;
  3249. }
  3250. if (!d)
  3251. throw Error(p(147, a));
  3252. var e = d, f = "" + a;
  3253. if (null !== b && null !== b.ref && "function" === typeof b.ref && b.ref._stringRef === f)
  3254. return b.ref;
  3255. b = function(a2) {
  3256. var b2 = e.refs;
  3257. null === a2 ? delete b2[f] : b2[f] = a2;
  3258. };
  3259. b._stringRef = f;
  3260. return b;
  3261. }
  3262. if ("string" !== typeof a)
  3263. throw Error(p(284));
  3264. if (!c._owner)
  3265. throw Error(p(290, a));
  3266. }
  3267. return a;
  3268. }
  3269. function Mg(a, b) {
  3270. a = Object.prototype.toString.call(b);
  3271. throw Error(p(31, "[object Object]" === a ? "object with keys {" + Object.keys(b).join(", ") + "}" : a));
  3272. }
  3273. function Ng(a) {
  3274. var b = a._init;
  3275. return b(a._payload);
  3276. }
  3277. function Og(a) {
  3278. function b(b2, c2) {
  3279. if (a) {
  3280. var d2 = b2.deletions;
  3281. null === d2 ? (b2.deletions = [c2], b2.flags |= 16) : d2.push(c2);
  3282. }
  3283. }
  3284. function c(c2, d2) {
  3285. if (!a)
  3286. return null;
  3287. for (; null !== d2; )
  3288. b(c2, d2), d2 = d2.sibling;
  3289. return null;
  3290. }
  3291. function d(a2, b2) {
  3292. for (a2 = /* @__PURE__ */ new Map(); null !== b2; )
  3293. null !== b2.key ? a2.set(b2.key, b2) : a2.set(b2.index, b2), b2 = b2.sibling;
  3294. return a2;
  3295. }
  3296. function e(a2, b2) {
  3297. a2 = Pg(a2, b2);
  3298. a2.index = 0;
  3299. a2.sibling = null;
  3300. return a2;
  3301. }
  3302. function f(b2, c2, d2) {
  3303. b2.index = d2;
  3304. if (!a)
  3305. return b2.flags |= 1048576, c2;
  3306. d2 = b2.alternate;
  3307. if (null !== d2)
  3308. return d2 = d2.index, d2 < c2 ? (b2.flags |= 2, c2) : d2;
  3309. b2.flags |= 2;
  3310. return c2;
  3311. }
  3312. function g(b2) {
  3313. a && null === b2.alternate && (b2.flags |= 2);
  3314. return b2;
  3315. }
  3316. function h(a2, b2, c2, d2) {
  3317. if (null === b2 || 6 !== b2.tag)
  3318. return b2 = Qg(c2, a2.mode, d2), b2.return = a2, b2;
  3319. b2 = e(b2, c2);
  3320. b2.return = a2;
  3321. return b2;
  3322. }
  3323. function k(a2, b2, c2, d2) {
  3324. var f2 = c2.type;
  3325. if (f2 === ya)
  3326. return m(a2, b2, c2.props.children, d2, c2.key);
  3327. if (null !== b2 && (b2.elementType === f2 || "object" === typeof f2 && null !== f2 && f2.$$typeof === Ha && Ng(f2) === b2.type))
  3328. return d2 = e(b2, c2.props), d2.ref = Lg(a2, b2, c2), d2.return = a2, d2;
  3329. d2 = Rg(c2.type, c2.key, c2.props, null, a2.mode, d2);
  3330. d2.ref = Lg(a2, b2, c2);
  3331. d2.return = a2;
  3332. return d2;
  3333. }
  3334. function l(a2, b2, c2, d2) {
  3335. if (null === b2 || 4 !== b2.tag || b2.stateNode.containerInfo !== c2.containerInfo || b2.stateNode.implementation !== c2.implementation)
  3336. return b2 = Sg(c2, a2.mode, d2), b2.return = a2, b2;
  3337. b2 = e(b2, c2.children || []);
  3338. b2.return = a2;
  3339. return b2;
  3340. }
  3341. function m(a2, b2, c2, d2, f2) {
  3342. if (null === b2 || 7 !== b2.tag)
  3343. return b2 = Tg(c2, a2.mode, d2, f2), b2.return = a2, b2;
  3344. b2 = e(b2, c2);
  3345. b2.return = a2;
  3346. return b2;
  3347. }
  3348. function q(a2, b2, c2) {
  3349. if ("string" === typeof b2 && "" !== b2 || "number" === typeof b2)
  3350. return b2 = Qg("" + b2, a2.mode, c2), b2.return = a2, b2;
  3351. if ("object" === typeof b2 && null !== b2) {
  3352. switch (b2.$$typeof) {
  3353. case va:
  3354. return c2 = Rg(b2.type, b2.key, b2.props, null, a2.mode, c2), c2.ref = Lg(a2, null, b2), c2.return = a2, c2;
  3355. case wa:
  3356. return b2 = Sg(b2, a2.mode, c2), b2.return = a2, b2;
  3357. case Ha:
  3358. var d2 = b2._init;
  3359. return q(a2, d2(b2._payload), c2);
  3360. }
  3361. if (eb(b2) || Ka(b2))
  3362. return b2 = Tg(b2, a2.mode, c2, null), b2.return = a2, b2;
  3363. Mg(a2, b2);
  3364. }
  3365. return null;
  3366. }
  3367. function r(a2, b2, c2, d2) {
  3368. var e2 = null !== b2 ? b2.key : null;
  3369. if ("string" === typeof c2 && "" !== c2 || "number" === typeof c2)
  3370. return null !== e2 ? null : h(a2, b2, "" + c2, d2);
  3371. if ("object" === typeof c2 && null !== c2) {
  3372. switch (c2.$$typeof) {
  3373. case va:
  3374. return c2.key === e2 ? k(a2, b2, c2, d2) : null;
  3375. case wa:
  3376. return c2.key === e2 ? l(a2, b2, c2, d2) : null;
  3377. case Ha:
  3378. return e2 = c2._init, r(
  3379. a2,
  3380. b2,
  3381. e2(c2._payload),
  3382. d2
  3383. );
  3384. }
  3385. if (eb(c2) || Ka(c2))
  3386. return null !== e2 ? null : m(a2, b2, c2, d2, null);
  3387. Mg(a2, c2);
  3388. }
  3389. return null;
  3390. }
  3391. function y(a2, b2, c2, d2, e2) {
  3392. if ("string" === typeof d2 && "" !== d2 || "number" === typeof d2)
  3393. return a2 = a2.get(c2) || null, h(b2, a2, "" + d2, e2);
  3394. if ("object" === typeof d2 && null !== d2) {
  3395. switch (d2.$$typeof) {
  3396. case va:
  3397. return a2 = a2.get(null === d2.key ? c2 : d2.key) || null, k(b2, a2, d2, e2);
  3398. case wa:
  3399. return a2 = a2.get(null === d2.key ? c2 : d2.key) || null, l(b2, a2, d2, e2);
  3400. case Ha:
  3401. var f2 = d2._init;
  3402. return y(a2, b2, c2, f2(d2._payload), e2);
  3403. }
  3404. if (eb(d2) || Ka(d2))
  3405. return a2 = a2.get(c2) || null, m(b2, a2, d2, e2, null);
  3406. Mg(b2, d2);
  3407. }
  3408. return null;
  3409. }
  3410. function n(e2, g2, h2, k2) {
  3411. for (var l2 = null, m2 = null, u = g2, w = g2 = 0, x = null; null !== u && w < h2.length; w++) {
  3412. u.index > w ? (x = u, u = null) : x = u.sibling;
  3413. var n2 = r(e2, u, h2[w], k2);
  3414. if (null === n2) {
  3415. null === u && (u = x);
  3416. break;
  3417. }
  3418. a && u && null === n2.alternate && b(e2, u);
  3419. g2 = f(n2, g2, w);
  3420. null === m2 ? l2 = n2 : m2.sibling = n2;
  3421. m2 = n2;
  3422. u = x;
  3423. }
  3424. if (w === h2.length)
  3425. return c(e2, u), I && tg(e2, w), l2;
  3426. if (null === u) {
  3427. for (; w < h2.length; w++)
  3428. u = q(e2, h2[w], k2), null !== u && (g2 = f(u, g2, w), null === m2 ? l2 = u : m2.sibling = u, m2 = u);
  3429. I && tg(e2, w);
  3430. return l2;
  3431. }
  3432. for (u = d(e2, u); w < h2.length; w++)
  3433. x = y(u, e2, w, h2[w], k2), null !== x && (a && null !== x.alternate && u.delete(null === x.key ? w : x.key), g2 = f(x, g2, w), null === m2 ? l2 = x : m2.sibling = x, m2 = x);
  3434. a && u.forEach(function(a2) {
  3435. return b(e2, a2);
  3436. });
  3437. I && tg(e2, w);
  3438. return l2;
  3439. }
  3440. function t(e2, g2, h2, k2) {
  3441. var l2 = Ka(h2);
  3442. if ("function" !== typeof l2)
  3443. throw Error(p(150));
  3444. h2 = l2.call(h2);
  3445. if (null == h2)
  3446. throw Error(p(151));
  3447. for (var u = l2 = null, m2 = g2, w = g2 = 0, x = null, n2 = h2.next(); null !== m2 && !n2.done; w++, n2 = h2.next()) {
  3448. m2.index > w ? (x = m2, m2 = null) : x = m2.sibling;
  3449. var t2 = r(e2, m2, n2.value, k2);
  3450. if (null === t2) {
  3451. null === m2 && (m2 = x);
  3452. break;
  3453. }
  3454. a && m2 && null === t2.alternate && b(e2, m2);
  3455. g2 = f(t2, g2, w);
  3456. null === u ? l2 = t2 : u.sibling = t2;
  3457. u = t2;
  3458. m2 = x;
  3459. }
  3460. if (n2.done)
  3461. return c(
  3462. e2,
  3463. m2
  3464. ), I && tg(e2, w), l2;
  3465. if (null === m2) {
  3466. for (; !n2.done; w++, n2 = h2.next())
  3467. n2 = q(e2, n2.value, k2), null !== n2 && (g2 = f(n2, g2, w), null === u ? l2 = n2 : u.sibling = n2, u = n2);
  3468. I && tg(e2, w);
  3469. return l2;
  3470. }
  3471. for (m2 = d(e2, m2); !n2.done; w++, n2 = h2.next())
  3472. n2 = y(m2, e2, w, n2.value, k2), null !== n2 && (a && null !== n2.alternate && m2.delete(null === n2.key ? w : n2.key), g2 = f(n2, g2, w), null === u ? l2 = n2 : u.sibling = n2, u = n2);
  3473. a && m2.forEach(function(a2) {
  3474. return b(e2, a2);
  3475. });
  3476. I && tg(e2, w);
  3477. return l2;
  3478. }
  3479. function J(a2, d2, f2, h2) {
  3480. "object" === typeof f2 && null !== f2 && f2.type === ya && null === f2.key && (f2 = f2.props.children);
  3481. if ("object" === typeof f2 && null !== f2) {
  3482. switch (f2.$$typeof) {
  3483. case va:
  3484. a: {
  3485. for (var k2 = f2.key, l2 = d2; null !== l2; ) {
  3486. if (l2.key === k2) {
  3487. k2 = f2.type;
  3488. if (k2 === ya) {
  3489. if (7 === l2.tag) {
  3490. c(a2, l2.sibling);
  3491. d2 = e(l2, f2.props.children);
  3492. d2.return = a2;
  3493. a2 = d2;
  3494. break a;
  3495. }
  3496. } else if (l2.elementType === k2 || "object" === typeof k2 && null !== k2 && k2.$$typeof === Ha && Ng(k2) === l2.type) {
  3497. c(a2, l2.sibling);
  3498. d2 = e(l2, f2.props);
  3499. d2.ref = Lg(a2, l2, f2);
  3500. d2.return = a2;
  3501. a2 = d2;
  3502. break a;
  3503. }
  3504. c(a2, l2);
  3505. break;
  3506. } else
  3507. b(a2, l2);
  3508. l2 = l2.sibling;
  3509. }
  3510. f2.type === ya ? (d2 = Tg(f2.props.children, a2.mode, h2, f2.key), d2.return = a2, a2 = d2) : (h2 = Rg(f2.type, f2.key, f2.props, null, a2.mode, h2), h2.ref = Lg(a2, d2, f2), h2.return = a2, a2 = h2);
  3511. }
  3512. return g(a2);
  3513. case wa:
  3514. a: {
  3515. for (l2 = f2.key; null !== d2; ) {
  3516. if (d2.key === l2)
  3517. if (4 === d2.tag && d2.stateNode.containerInfo === f2.containerInfo && d2.stateNode.implementation === f2.implementation) {
  3518. c(a2, d2.sibling);
  3519. d2 = e(d2, f2.children || []);
  3520. d2.return = a2;
  3521. a2 = d2;
  3522. break a;
  3523. } else {
  3524. c(a2, d2);
  3525. break;
  3526. }
  3527. else
  3528. b(a2, d2);
  3529. d2 = d2.sibling;
  3530. }
  3531. d2 = Sg(f2, a2.mode, h2);
  3532. d2.return = a2;
  3533. a2 = d2;
  3534. }
  3535. return g(a2);
  3536. case Ha:
  3537. return l2 = f2._init, J(a2, d2, l2(f2._payload), h2);
  3538. }
  3539. if (eb(f2))
  3540. return n(a2, d2, f2, h2);
  3541. if (Ka(f2))
  3542. return t(a2, d2, f2, h2);
  3543. Mg(a2, f2);
  3544. }
  3545. return "string" === typeof f2 && "" !== f2 || "number" === typeof f2 ? (f2 = "" + f2, null !== d2 && 6 === d2.tag ? (c(a2, d2.sibling), d2 = e(d2, f2), d2.return = a2, a2 = d2) : (c(a2, d2), d2 = Qg(f2, a2.mode, h2), d2.return = a2, a2 = d2), g(a2)) : c(a2, d2);
  3546. }
  3547. return J;
  3548. }
  3549. var Ug = Og(true);
  3550. var Vg = Og(false);
  3551. var Wg = Uf(null);
  3552. var Xg = null;
  3553. var Yg = null;
  3554. var Zg = null;
  3555. function $g() {
  3556. Zg = Yg = Xg = null;
  3557. }
  3558. function ah(a) {
  3559. var b = Wg.current;
  3560. E(Wg);
  3561. a._currentValue = b;
  3562. }
  3563. function bh(a, b, c) {
  3564. for (; null !== a; ) {
  3565. var d = a.alternate;
  3566. (a.childLanes & b) !== b ? (a.childLanes |= b, null !== d && (d.childLanes |= b)) : null !== d && (d.childLanes & b) !== b && (d.childLanes |= b);
  3567. if (a === c)
  3568. break;
  3569. a = a.return;
  3570. }
  3571. }
  3572. function ch(a, b) {
  3573. Xg = a;
  3574. Zg = Yg = null;
  3575. a = a.dependencies;
  3576. null !== a && null !== a.firstContext && (0 !== (a.lanes & b) && (dh = true), a.firstContext = null);
  3577. }
  3578. function eh(a) {
  3579. var b = a._currentValue;
  3580. if (Zg !== a)
  3581. if (a = { context: a, memoizedValue: b, next: null }, null === Yg) {
  3582. if (null === Xg)
  3583. throw Error(p(308));
  3584. Yg = a;
  3585. Xg.dependencies = { lanes: 0, firstContext: a };
  3586. } else
  3587. Yg = Yg.next = a;
  3588. return b;
  3589. }
  3590. var fh = null;
  3591. function gh(a) {
  3592. null === fh ? fh = [a] : fh.push(a);
  3593. }
  3594. function hh(a, b, c, d) {
  3595. var e = b.interleaved;
  3596. null === e ? (c.next = c, gh(b)) : (c.next = e.next, e.next = c);
  3597. b.interleaved = c;
  3598. return ih(a, d);
  3599. }
  3600. function ih(a, b) {
  3601. a.lanes |= b;
  3602. var c = a.alternate;
  3603. null !== c && (c.lanes |= b);
  3604. c = a;
  3605. for (a = a.return; null !== a; )
  3606. a.childLanes |= b, c = a.alternate, null !== c && (c.childLanes |= b), c = a, a = a.return;
  3607. return 3 === c.tag ? c.stateNode : null;
  3608. }
  3609. var jh = false;
  3610. function kh(a) {
  3611. a.updateQueue = { baseState: a.memoizedState, firstBaseUpdate: null, lastBaseUpdate: null, shared: { pending: null, interleaved: null, lanes: 0 }, effects: null };
  3612. }
  3613. function lh(a, b) {
  3614. a = a.updateQueue;
  3615. b.updateQueue === a && (b.updateQueue = { baseState: a.baseState, firstBaseUpdate: a.firstBaseUpdate, lastBaseUpdate: a.lastBaseUpdate, shared: a.shared, effects: a.effects });
  3616. }
  3617. function mh(a, b) {
  3618. return { eventTime: a, lane: b, tag: 0, payload: null, callback: null, next: null };
  3619. }
  3620. function nh(a, b, c) {
  3621. var d = a.updateQueue;
  3622. if (null === d)
  3623. return null;
  3624. d = d.shared;
  3625. if (0 !== (K & 2)) {
  3626. var e = d.pending;
  3627. null === e ? b.next = b : (b.next = e.next, e.next = b);
  3628. d.pending = b;
  3629. return ih(a, c);
  3630. }
  3631. e = d.interleaved;
  3632. null === e ? (b.next = b, gh(d)) : (b.next = e.next, e.next = b);
  3633. d.interleaved = b;
  3634. return ih(a, c);
  3635. }
  3636. function oh(a, b, c) {
  3637. b = b.updateQueue;
  3638. if (null !== b && (b = b.shared, 0 !== (c & 4194240))) {
  3639. var d = b.lanes;
  3640. d &= a.pendingLanes;
  3641. c |= d;
  3642. b.lanes = c;
  3643. Cc(a, c);
  3644. }
  3645. }
  3646. function ph(a, b) {
  3647. var c = a.updateQueue, d = a.alternate;
  3648. if (null !== d && (d = d.updateQueue, c === d)) {
  3649. var e = null, f = null;
  3650. c = c.firstBaseUpdate;
  3651. if (null !== c) {
  3652. do {
  3653. var g = { eventTime: c.eventTime, lane: c.lane, tag: c.tag, payload: c.payload, callback: c.callback, next: null };
  3654. null === f ? e = f = g : f = f.next = g;
  3655. c = c.next;
  3656. } while (null !== c);
  3657. null === f ? e = f = b : f = f.next = b;
  3658. } else
  3659. e = f = b;
  3660. c = { baseState: d.baseState, firstBaseUpdate: e, lastBaseUpdate: f, shared: d.shared, effects: d.effects };
  3661. a.updateQueue = c;
  3662. return;
  3663. }
  3664. a = c.lastBaseUpdate;
  3665. null === a ? c.firstBaseUpdate = b : a.next = b;
  3666. c.lastBaseUpdate = b;
  3667. }
  3668. function qh(a, b, c, d) {
  3669. var e = a.updateQueue;
  3670. jh = false;
  3671. var f = e.firstBaseUpdate, g = e.lastBaseUpdate, h = e.shared.pending;
  3672. if (null !== h) {
  3673. e.shared.pending = null;
  3674. var k = h, l = k.next;
  3675. k.next = null;
  3676. null === g ? f = l : g.next = l;
  3677. g = k;
  3678. var m = a.alternate;
  3679. null !== m && (m = m.updateQueue, h = m.lastBaseUpdate, h !== g && (null === h ? m.firstBaseUpdate = l : h.next = l, m.lastBaseUpdate = k));
  3680. }
  3681. if (null !== f) {
  3682. var q = e.baseState;
  3683. g = 0;
  3684. m = l = k = null;
  3685. h = f;
  3686. do {
  3687. var r = h.lane, y = h.eventTime;
  3688. if ((d & r) === r) {
  3689. null !== m && (m = m.next = {
  3690. eventTime: y,
  3691. lane: 0,
  3692. tag: h.tag,
  3693. payload: h.payload,
  3694. callback: h.callback,
  3695. next: null
  3696. });
  3697. a: {
  3698. var n = a, t = h;
  3699. r = b;
  3700. y = c;
  3701. switch (t.tag) {
  3702. case 1:
  3703. n = t.payload;
  3704. if ("function" === typeof n) {
  3705. q = n.call(y, q, r);
  3706. break a;
  3707. }
  3708. q = n;
  3709. break a;
  3710. case 3:
  3711. n.flags = n.flags & -65537 | 128;
  3712. case 0:
  3713. n = t.payload;
  3714. r = "function" === typeof n ? n.call(y, q, r) : n;
  3715. if (null === r || void 0 === r)
  3716. break a;
  3717. q = A({}, q, r);
  3718. break a;
  3719. case 2:
  3720. jh = true;
  3721. }
  3722. }
  3723. null !== h.callback && 0 !== h.lane && (a.flags |= 64, r = e.effects, null === r ? e.effects = [h] : r.push(h));
  3724. } else
  3725. y = { eventTime: y, lane: r, tag: h.tag, payload: h.payload, callback: h.callback, next: null }, null === m ? (l = m = y, k = q) : m = m.next = y, g |= r;
  3726. h = h.next;
  3727. if (null === h)
  3728. if (h = e.shared.pending, null === h)
  3729. break;
  3730. else
  3731. r = h, h = r.next, r.next = null, e.lastBaseUpdate = r, e.shared.pending = null;
  3732. } while (1);
  3733. null === m && (k = q);
  3734. e.baseState = k;
  3735. e.firstBaseUpdate = l;
  3736. e.lastBaseUpdate = m;
  3737. b = e.shared.interleaved;
  3738. if (null !== b) {
  3739. e = b;
  3740. do
  3741. g |= e.lane, e = e.next;
  3742. while (e !== b);
  3743. } else
  3744. null === f && (e.shared.lanes = 0);
  3745. rh |= g;
  3746. a.lanes = g;
  3747. a.memoizedState = q;
  3748. }
  3749. }
  3750. function sh(a, b, c) {
  3751. a = b.effects;
  3752. b.effects = null;
  3753. if (null !== a)
  3754. for (b = 0; b < a.length; b++) {
  3755. var d = a[b], e = d.callback;
  3756. if (null !== e) {
  3757. d.callback = null;
  3758. d = c;
  3759. if ("function" !== typeof e)
  3760. throw Error(p(191, e));
  3761. e.call(d);
  3762. }
  3763. }
  3764. }
  3765. var th = {};
  3766. var uh = Uf(th);
  3767. var vh = Uf(th);
  3768. var wh = Uf(th);
  3769. function xh(a) {
  3770. if (a === th)
  3771. throw Error(p(174));
  3772. return a;
  3773. }
  3774. function yh(a, b) {
  3775. G(wh, b);
  3776. G(vh, a);
  3777. G(uh, th);
  3778. a = b.nodeType;
  3779. switch (a) {
  3780. case 9:
  3781. case 11:
  3782. b = (b = b.documentElement) ? b.namespaceURI : lb(null, "");
  3783. break;
  3784. default:
  3785. a = 8 === a ? b.parentNode : b, b = a.namespaceURI || null, a = a.tagName, b = lb(b, a);
  3786. }
  3787. E(uh);
  3788. G(uh, b);
  3789. }
  3790. function zh() {
  3791. E(uh);
  3792. E(vh);
  3793. E(wh);
  3794. }
  3795. function Ah(a) {
  3796. xh(wh.current);
  3797. var b = xh(uh.current);
  3798. var c = lb(b, a.type);
  3799. b !== c && (G(vh, a), G(uh, c));
  3800. }
  3801. function Bh(a) {
  3802. vh.current === a && (E(uh), E(vh));
  3803. }
  3804. var L = Uf(0);
  3805. function Ch(a) {
  3806. for (var b = a; null !== b; ) {
  3807. if (13 === b.tag) {
  3808. var c = b.memoizedState;
  3809. if (null !== c && (c = c.dehydrated, null === c || "$?" === c.data || "$!" === c.data))
  3810. return b;
  3811. } else if (19 === b.tag && void 0 !== b.memoizedProps.revealOrder) {
  3812. if (0 !== (b.flags & 128))
  3813. return b;
  3814. } else if (null !== b.child) {
  3815. b.child.return = b;
  3816. b = b.child;
  3817. continue;
  3818. }
  3819. if (b === a)
  3820. break;
  3821. for (; null === b.sibling; ) {
  3822. if (null === b.return || b.return === a)
  3823. return null;
  3824. b = b.return;
  3825. }
  3826. b.sibling.return = b.return;
  3827. b = b.sibling;
  3828. }
  3829. return null;
  3830. }
  3831. var Dh = [];
  3832. function Eh() {
  3833. for (var a = 0; a < Dh.length; a++)
  3834. Dh[a]._workInProgressVersionPrimary = null;
  3835. Dh.length = 0;
  3836. }
  3837. var Fh = ua.ReactCurrentDispatcher;
  3838. var Gh = ua.ReactCurrentBatchConfig;
  3839. var Hh = 0;
  3840. var M = null;
  3841. var N = null;
  3842. var O = null;
  3843. var Ih = false;
  3844. var Jh = false;
  3845. var Kh = 0;
  3846. var Lh = 0;
  3847. function P() {
  3848. throw Error(p(321));
  3849. }
  3850. function Mh(a, b) {
  3851. if (null === b)
  3852. return false;
  3853. for (var c = 0; c < b.length && c < a.length; c++)
  3854. if (!He(a[c], b[c]))
  3855. return false;
  3856. return true;
  3857. }
  3858. function Nh(a, b, c, d, e, f) {
  3859. Hh = f;
  3860. M = b;
  3861. b.memoizedState = null;
  3862. b.updateQueue = null;
  3863. b.lanes = 0;
  3864. Fh.current = null === a || null === a.memoizedState ? Oh : Ph;
  3865. a = c(d, e);
  3866. if (Jh) {
  3867. f = 0;
  3868. do {
  3869. Jh = false;
  3870. Kh = 0;
  3871. if (25 <= f)
  3872. throw Error(p(301));
  3873. f += 1;
  3874. O = N = null;
  3875. b.updateQueue = null;
  3876. Fh.current = Qh;
  3877. a = c(d, e);
  3878. } while (Jh);
  3879. }
  3880. Fh.current = Rh;
  3881. b = null !== N && null !== N.next;
  3882. Hh = 0;
  3883. O = N = M = null;
  3884. Ih = false;
  3885. if (b)
  3886. throw Error(p(300));
  3887. return a;
  3888. }
  3889. function Sh() {
  3890. var a = 0 !== Kh;
  3891. Kh = 0;
  3892. return a;
  3893. }
  3894. function Th() {
  3895. var a = { memoizedState: null, baseState: null, baseQueue: null, queue: null, next: null };
  3896. null === O ? M.memoizedState = O = a : O = O.next = a;
  3897. return O;
  3898. }
  3899. function Uh() {
  3900. if (null === N) {
  3901. var a = M.alternate;
  3902. a = null !== a ? a.memoizedState : null;
  3903. } else
  3904. a = N.next;
  3905. var b = null === O ? M.memoizedState : O.next;
  3906. if (null !== b)
  3907. O = b, N = a;
  3908. else {
  3909. if (null === a)
  3910. throw Error(p(310));
  3911. N = a;
  3912. a = { memoizedState: N.memoizedState, baseState: N.baseState, baseQueue: N.baseQueue, queue: N.queue, next: null };
  3913. null === O ? M.memoizedState = O = a : O = O.next = a;
  3914. }
  3915. return O;
  3916. }
  3917. function Vh(a, b) {
  3918. return "function" === typeof b ? b(a) : b;
  3919. }
  3920. function Wh(a) {
  3921. var b = Uh(), c = b.queue;
  3922. if (null === c)
  3923. throw Error(p(311));
  3924. c.lastRenderedReducer = a;
  3925. var d = N, e = d.baseQueue, f = c.pending;
  3926. if (null !== f) {
  3927. if (null !== e) {
  3928. var g = e.next;
  3929. e.next = f.next;
  3930. f.next = g;
  3931. }
  3932. d.baseQueue = e = f;
  3933. c.pending = null;
  3934. }
  3935. if (null !== e) {
  3936. f = e.next;
  3937. d = d.baseState;
  3938. var h = g = null, k = null, l = f;
  3939. do {
  3940. var m = l.lane;
  3941. if ((Hh & m) === m)
  3942. null !== k && (k = k.next = { lane: 0, action: l.action, hasEagerState: l.hasEagerState, eagerState: l.eagerState, next: null }), d = l.hasEagerState ? l.eagerState : a(d, l.action);
  3943. else {
  3944. var q = {
  3945. lane: m,
  3946. action: l.action,
  3947. hasEagerState: l.hasEagerState,
  3948. eagerState: l.eagerState,
  3949. next: null
  3950. };
  3951. null === k ? (h = k = q, g = d) : k = k.next = q;
  3952. M.lanes |= m;
  3953. rh |= m;
  3954. }
  3955. l = l.next;
  3956. } while (null !== l && l !== f);
  3957. null === k ? g = d : k.next = h;
  3958. He(d, b.memoizedState) || (dh = true);
  3959. b.memoizedState = d;
  3960. b.baseState = g;
  3961. b.baseQueue = k;
  3962. c.lastRenderedState = d;
  3963. }
  3964. a = c.interleaved;
  3965. if (null !== a) {
  3966. e = a;
  3967. do
  3968. f = e.lane, M.lanes |= f, rh |= f, e = e.next;
  3969. while (e !== a);
  3970. } else
  3971. null === e && (c.lanes = 0);
  3972. return [b.memoizedState, c.dispatch];
  3973. }
  3974. function Xh(a) {
  3975. var b = Uh(), c = b.queue;
  3976. if (null === c)
  3977. throw Error(p(311));
  3978. c.lastRenderedReducer = a;
  3979. var d = c.dispatch, e = c.pending, f = b.memoizedState;
  3980. if (null !== e) {
  3981. c.pending = null;
  3982. var g = e = e.next;
  3983. do
  3984. f = a(f, g.action), g = g.next;
  3985. while (g !== e);
  3986. He(f, b.memoizedState) || (dh = true);
  3987. b.memoizedState = f;
  3988. null === b.baseQueue && (b.baseState = f);
  3989. c.lastRenderedState = f;
  3990. }
  3991. return [f, d];
  3992. }
  3993. function Yh() {
  3994. }
  3995. function Zh(a, b) {
  3996. var c = M, d = Uh(), e = b(), f = !He(d.memoizedState, e);
  3997. f && (d.memoizedState = e, dh = true);
  3998. d = d.queue;
  3999. $h(ai.bind(null, c, d, a), [a]);
  4000. if (d.getSnapshot !== b || f || null !== O && O.memoizedState.tag & 1) {
  4001. c.flags |= 2048;
  4002. bi(9, ci.bind(null, c, d, e, b), void 0, null);
  4003. if (null === Q)
  4004. throw Error(p(349));
  4005. 0 !== (Hh & 30) || di(c, b, e);
  4006. }
  4007. return e;
  4008. }
  4009. function di(a, b, c) {
  4010. a.flags |= 16384;
  4011. a = { getSnapshot: b, value: c };
  4012. b = M.updateQueue;
  4013. null === b ? (b = { lastEffect: null, stores: null }, M.updateQueue = b, b.stores = [a]) : (c = b.stores, null === c ? b.stores = [a] : c.push(a));
  4014. }
  4015. function ci(a, b, c, d) {
  4016. b.value = c;
  4017. b.getSnapshot = d;
  4018. ei(b) && fi(a);
  4019. }
  4020. function ai(a, b, c) {
  4021. return c(function() {
  4022. ei(b) && fi(a);
  4023. });
  4024. }
  4025. function ei(a) {
  4026. var b = a.getSnapshot;
  4027. a = a.value;
  4028. try {
  4029. var c = b();
  4030. return !He(a, c);
  4031. } catch (d) {
  4032. return true;
  4033. }
  4034. }
  4035. function fi(a) {
  4036. var b = ih(a, 1);
  4037. null !== b && gi(b, a, 1, -1);
  4038. }
  4039. function hi(a) {
  4040. var b = Th();
  4041. "function" === typeof a && (a = a());
  4042. b.memoizedState = b.baseState = a;
  4043. a = { pending: null, interleaved: null, lanes: 0, dispatch: null, lastRenderedReducer: Vh, lastRenderedState: a };
  4044. b.queue = a;
  4045. a = a.dispatch = ii.bind(null, M, a);
  4046. return [b.memoizedState, a];
  4047. }
  4048. function bi(a, b, c, d) {
  4049. a = { tag: a, create: b, destroy: c, deps: d, next: null };
  4050. b = M.updateQueue;
  4051. null === b ? (b = { lastEffect: null, stores: null }, M.updateQueue = b, b.lastEffect = a.next = a) : (c = b.lastEffect, null === c ? b.lastEffect = a.next = a : (d = c.next, c.next = a, a.next = d, b.lastEffect = a));
  4052. return a;
  4053. }
  4054. function ji() {
  4055. return Uh().memoizedState;
  4056. }
  4057. function ki(a, b, c, d) {
  4058. var e = Th();
  4059. M.flags |= a;
  4060. e.memoizedState = bi(1 | b, c, void 0, void 0 === d ? null : d);
  4061. }
  4062. function li(a, b, c, d) {
  4063. var e = Uh();
  4064. d = void 0 === d ? null : d;
  4065. var f = void 0;
  4066. if (null !== N) {
  4067. var g = N.memoizedState;
  4068. f = g.destroy;
  4069. if (null !== d && Mh(d, g.deps)) {
  4070. e.memoizedState = bi(b, c, f, d);
  4071. return;
  4072. }
  4073. }
  4074. M.flags |= a;
  4075. e.memoizedState = bi(1 | b, c, f, d);
  4076. }
  4077. function mi(a, b) {
  4078. return ki(8390656, 8, a, b);
  4079. }
  4080. function $h(a, b) {
  4081. return li(2048, 8, a, b);
  4082. }
  4083. function ni(a, b) {
  4084. return li(4, 2, a, b);
  4085. }
  4086. function oi(a, b) {
  4087. return li(4, 4, a, b);
  4088. }
  4089. function pi(a, b) {
  4090. if ("function" === typeof b)
  4091. return a = a(), b(a), function() {
  4092. b(null);
  4093. };
  4094. if (null !== b && void 0 !== b)
  4095. return a = a(), b.current = a, function() {
  4096. b.current = null;
  4097. };
  4098. }
  4099. function qi(a, b, c) {
  4100. c = null !== c && void 0 !== c ? c.concat([a]) : null;
  4101. return li(4, 4, pi.bind(null, b, a), c);
  4102. }
  4103. function ri() {
  4104. }
  4105. function si(a, b) {
  4106. var c = Uh();
  4107. b = void 0 === b ? null : b;
  4108. var d = c.memoizedState;
  4109. if (null !== d && null !== b && Mh(b, d[1]))
  4110. return d[0];
  4111. c.memoizedState = [a, b];
  4112. return a;
  4113. }
  4114. function ti(a, b) {
  4115. var c = Uh();
  4116. b = void 0 === b ? null : b;
  4117. var d = c.memoizedState;
  4118. if (null !== d && null !== b && Mh(b, d[1]))
  4119. return d[0];
  4120. a = a();
  4121. c.memoizedState = [a, b];
  4122. return a;
  4123. }
  4124. function ui(a, b, c) {
  4125. if (0 === (Hh & 21))
  4126. return a.baseState && (a.baseState = false, dh = true), a.memoizedState = c;
  4127. He(c, b) || (c = yc(), M.lanes |= c, rh |= c, a.baseState = true);
  4128. return b;
  4129. }
  4130. function vi(a, b) {
  4131. var c = C;
  4132. C = 0 !== c && 4 > c ? c : 4;
  4133. a(true);
  4134. var d = Gh.transition;
  4135. Gh.transition = {};
  4136. try {
  4137. a(false), b();
  4138. } finally {
  4139. C = c, Gh.transition = d;
  4140. }
  4141. }
  4142. function wi() {
  4143. return Uh().memoizedState;
  4144. }
  4145. function xi(a, b, c) {
  4146. var d = yi(a);
  4147. c = { lane: d, action: c, hasEagerState: false, eagerState: null, next: null };
  4148. if (zi(a))
  4149. Ai(b, c);
  4150. else if (c = hh(a, b, c, d), null !== c) {
  4151. var e = R();
  4152. gi(c, a, d, e);
  4153. Bi(c, b, d);
  4154. }
  4155. }
  4156. function ii(a, b, c) {
  4157. var d = yi(a), e = { lane: d, action: c, hasEagerState: false, eagerState: null, next: null };
  4158. if (zi(a))
  4159. Ai(b, e);
  4160. else {
  4161. var f = a.alternate;
  4162. if (0 === a.lanes && (null === f || 0 === f.lanes) && (f = b.lastRenderedReducer, null !== f))
  4163. try {
  4164. var g = b.lastRenderedState, h = f(g, c);
  4165. e.hasEagerState = true;
  4166. e.eagerState = h;
  4167. if (He(h, g)) {
  4168. var k = b.interleaved;
  4169. null === k ? (e.next = e, gh(b)) : (e.next = k.next, k.next = e);
  4170. b.interleaved = e;
  4171. return;
  4172. }
  4173. } catch (l) {
  4174. } finally {
  4175. }
  4176. c = hh(a, b, e, d);
  4177. null !== c && (e = R(), gi(c, a, d, e), Bi(c, b, d));
  4178. }
  4179. }
  4180. function zi(a) {
  4181. var b = a.alternate;
  4182. return a === M || null !== b && b === M;
  4183. }
  4184. function Ai(a, b) {
  4185. Jh = Ih = true;
  4186. var c = a.pending;
  4187. null === c ? b.next = b : (b.next = c.next, c.next = b);
  4188. a.pending = b;
  4189. }
  4190. function Bi(a, b, c) {
  4191. if (0 !== (c & 4194240)) {
  4192. var d = b.lanes;
  4193. d &= a.pendingLanes;
  4194. c |= d;
  4195. b.lanes = c;
  4196. Cc(a, c);
  4197. }
  4198. }
  4199. var Rh = { readContext: eh, useCallback: P, useContext: P, useEffect: P, useImperativeHandle: P, useInsertionEffect: P, useLayoutEffect: P, useMemo: P, useReducer: P, useRef: P, useState: P, useDebugValue: P, useDeferredValue: P, useTransition: P, useMutableSource: P, useSyncExternalStore: P, useId: P, unstable_isNewReconciler: false };
  4200. var Oh = { readContext: eh, useCallback: function(a, b) {
  4201. Th().memoizedState = [a, void 0 === b ? null : b];
  4202. return a;
  4203. }, useContext: eh, useEffect: mi, useImperativeHandle: function(a, b, c) {
  4204. c = null !== c && void 0 !== c ? c.concat([a]) : null;
  4205. return ki(
  4206. 4194308,
  4207. 4,
  4208. pi.bind(null, b, a),
  4209. c
  4210. );
  4211. }, useLayoutEffect: function(a, b) {
  4212. return ki(4194308, 4, a, b);
  4213. }, useInsertionEffect: function(a, b) {
  4214. return ki(4, 2, a, b);
  4215. }, useMemo: function(a, b) {
  4216. var c = Th();
  4217. b = void 0 === b ? null : b;
  4218. a = a();
  4219. c.memoizedState = [a, b];
  4220. return a;
  4221. }, useReducer: function(a, b, c) {
  4222. var d = Th();
  4223. b = void 0 !== c ? c(b) : b;
  4224. d.memoizedState = d.baseState = b;
  4225. a = { pending: null, interleaved: null, lanes: 0, dispatch: null, lastRenderedReducer: a, lastRenderedState: b };
  4226. d.queue = a;
  4227. a = a.dispatch = xi.bind(null, M, a);
  4228. return [d.memoizedState, a];
  4229. }, useRef: function(a) {
  4230. var b = Th();
  4231. a = { current: a };
  4232. return b.memoizedState = a;
  4233. }, useState: hi, useDebugValue: ri, useDeferredValue: function(a) {
  4234. return Th().memoizedState = a;
  4235. }, useTransition: function() {
  4236. var a = hi(false), b = a[0];
  4237. a = vi.bind(null, a[1]);
  4238. Th().memoizedState = a;
  4239. return [b, a];
  4240. }, useMutableSource: function() {
  4241. }, useSyncExternalStore: function(a, b, c) {
  4242. var d = M, e = Th();
  4243. if (I) {
  4244. if (void 0 === c)
  4245. throw Error(p(407));
  4246. c = c();
  4247. } else {
  4248. c = b();
  4249. if (null === Q)
  4250. throw Error(p(349));
  4251. 0 !== (Hh & 30) || di(d, b, c);
  4252. }
  4253. e.memoizedState = c;
  4254. var f = { value: c, getSnapshot: b };
  4255. e.queue = f;
  4256. mi(ai.bind(
  4257. null,
  4258. d,
  4259. f,
  4260. a
  4261. ), [a]);
  4262. d.flags |= 2048;
  4263. bi(9, ci.bind(null, d, f, c, b), void 0, null);
  4264. return c;
  4265. }, useId: function() {
  4266. var a = Th(), b = Q.identifierPrefix;
  4267. if (I) {
  4268. var c = sg;
  4269. var d = rg;
  4270. c = (d & ~(1 << 32 - oc(d) - 1)).toString(32) + c;
  4271. b = ":" + b + "R" + c;
  4272. c = Kh++;
  4273. 0 < c && (b += "H" + c.toString(32));
  4274. b += ":";
  4275. } else
  4276. c = Lh++, b = ":" + b + "r" + c.toString(32) + ":";
  4277. return a.memoizedState = b;
  4278. }, unstable_isNewReconciler: false };
  4279. var Ph = {
  4280. readContext: eh,
  4281. useCallback: si,
  4282. useContext: eh,
  4283. useEffect: $h,
  4284. useImperativeHandle: qi,
  4285. useInsertionEffect: ni,
  4286. useLayoutEffect: oi,
  4287. useMemo: ti,
  4288. useReducer: Wh,
  4289. useRef: ji,
  4290. useState: function() {
  4291. return Wh(Vh);
  4292. },
  4293. useDebugValue: ri,
  4294. useDeferredValue: function(a) {
  4295. var b = Uh();
  4296. return ui(b, N.memoizedState, a);
  4297. },
  4298. useTransition: function() {
  4299. var a = Wh(Vh)[0], b = Uh().memoizedState;
  4300. return [a, b];
  4301. },
  4302. useMutableSource: Yh,
  4303. useSyncExternalStore: Zh,
  4304. useId: wi,
  4305. unstable_isNewReconciler: false
  4306. };
  4307. var Qh = { readContext: eh, useCallback: si, useContext: eh, useEffect: $h, useImperativeHandle: qi, useInsertionEffect: ni, useLayoutEffect: oi, useMemo: ti, useReducer: Xh, useRef: ji, useState: function() {
  4308. return Xh(Vh);
  4309. }, useDebugValue: ri, useDeferredValue: function(a) {
  4310. var b = Uh();
  4311. return null === N ? b.memoizedState = a : ui(b, N.memoizedState, a);
  4312. }, useTransition: function() {
  4313. var a = Xh(Vh)[0], b = Uh().memoizedState;
  4314. return [a, b];
  4315. }, useMutableSource: Yh, useSyncExternalStore: Zh, useId: wi, unstable_isNewReconciler: false };
  4316. function Ci(a, b) {
  4317. if (a && a.defaultProps) {
  4318. b = A({}, b);
  4319. a = a.defaultProps;
  4320. for (var c in a)
  4321. void 0 === b[c] && (b[c] = a[c]);
  4322. return b;
  4323. }
  4324. return b;
  4325. }
  4326. function Di(a, b, c, d) {
  4327. b = a.memoizedState;
  4328. c = c(d, b);
  4329. c = null === c || void 0 === c ? b : A({}, b, c);
  4330. a.memoizedState = c;
  4331. 0 === a.lanes && (a.updateQueue.baseState = c);
  4332. }
  4333. var Ei = { isMounted: function(a) {
  4334. return (a = a._reactInternals) ? Vb(a) === a : false;
  4335. }, enqueueSetState: function(a, b, c) {
  4336. a = a._reactInternals;
  4337. var d = R(), e = yi(a), f = mh(d, e);
  4338. f.payload = b;
  4339. void 0 !== c && null !== c && (f.callback = c);
  4340. b = nh(a, f, e);
  4341. null !== b && (gi(b, a, e, d), oh(b, a, e));
  4342. }, enqueueReplaceState: function(a, b, c) {
  4343. a = a._reactInternals;
  4344. var d = R(), e = yi(a), f = mh(d, e);
  4345. f.tag = 1;
  4346. f.payload = b;
  4347. void 0 !== c && null !== c && (f.callback = c);
  4348. b = nh(a, f, e);
  4349. null !== b && (gi(b, a, e, d), oh(b, a, e));
  4350. }, enqueueForceUpdate: function(a, b) {
  4351. a = a._reactInternals;
  4352. var c = R(), d = yi(a), e = mh(c, d);
  4353. e.tag = 2;
  4354. void 0 !== b && null !== b && (e.callback = b);
  4355. b = nh(a, e, d);
  4356. null !== b && (gi(b, a, d, c), oh(b, a, d));
  4357. } };
  4358. function Fi(a, b, c, d, e, f, g) {
  4359. a = a.stateNode;
  4360. return "function" === typeof a.shouldComponentUpdate ? a.shouldComponentUpdate(d, f, g) : b.prototype && b.prototype.isPureReactComponent ? !Ie(c, d) || !Ie(e, f) : true;
  4361. }
  4362. function Gi(a, b, c) {
  4363. var d = false, e = Vf;
  4364. var f = b.contextType;
  4365. "object" === typeof f && null !== f ? f = eh(f) : (e = Zf(b) ? Xf : H.current, d = b.contextTypes, f = (d = null !== d && void 0 !== d) ? Yf(a, e) : Vf);
  4366. b = new b(c, f);
  4367. a.memoizedState = null !== b.state && void 0 !== b.state ? b.state : null;
  4368. b.updater = Ei;
  4369. a.stateNode = b;
  4370. b._reactInternals = a;
  4371. d && (a = a.stateNode, a.__reactInternalMemoizedUnmaskedChildContext = e, a.__reactInternalMemoizedMaskedChildContext = f);
  4372. return b;
  4373. }
  4374. function Hi(a, b, c, d) {
  4375. a = b.state;
  4376. "function" === typeof b.componentWillReceiveProps && b.componentWillReceiveProps(c, d);
  4377. "function" === typeof b.UNSAFE_componentWillReceiveProps && b.UNSAFE_componentWillReceiveProps(c, d);
  4378. b.state !== a && Ei.enqueueReplaceState(b, b.state, null);
  4379. }
  4380. function Ii(a, b, c, d) {
  4381. var e = a.stateNode;
  4382. e.props = c;
  4383. e.state = a.memoizedState;
  4384. e.refs = {};
  4385. kh(a);
  4386. var f = b.contextType;
  4387. "object" === typeof f && null !== f ? e.context = eh(f) : (f = Zf(b) ? Xf : H.current, e.context = Yf(a, f));
  4388. e.state = a.memoizedState;
  4389. f = b.getDerivedStateFromProps;
  4390. "function" === typeof f && (Di(a, b, f, c), e.state = a.memoizedState);
  4391. "function" === typeof b.getDerivedStateFromProps || "function" === typeof e.getSnapshotBeforeUpdate || "function" !== typeof e.UNSAFE_componentWillMount && "function" !== typeof e.componentWillMount || (b = e.state, "function" === typeof e.componentWillMount && e.componentWillMount(), "function" === typeof e.UNSAFE_componentWillMount && e.UNSAFE_componentWillMount(), b !== e.state && Ei.enqueueReplaceState(e, e.state, null), qh(a, c, e, d), e.state = a.memoizedState);
  4392. "function" === typeof e.componentDidMount && (a.flags |= 4194308);
  4393. }
  4394. function Ji(a, b) {
  4395. try {
  4396. var c = "", d = b;
  4397. do
  4398. c += Pa(d), d = d.return;
  4399. while (d);
  4400. var e = c;
  4401. } catch (f) {
  4402. e = "\nError generating stack: " + f.message + "\n" + f.stack;
  4403. }
  4404. return { value: a, source: b, stack: e, digest: null };
  4405. }
  4406. function Ki(a, b, c) {
  4407. return { value: a, source: null, stack: null != c ? c : null, digest: null != b ? b : null };
  4408. }
  4409. function Li(a, b) {
  4410. try {
  4411. console.error(b.value);
  4412. } catch (c) {
  4413. setTimeout(function() {
  4414. throw c;
  4415. });
  4416. }
  4417. }
  4418. var Mi = "function" === typeof WeakMap ? WeakMap : Map;
  4419. function Ni(a, b, c) {
  4420. c = mh(-1, c);
  4421. c.tag = 3;
  4422. c.payload = { element: null };
  4423. var d = b.value;
  4424. c.callback = function() {
  4425. Oi || (Oi = true, Pi = d);
  4426. Li(a, b);
  4427. };
  4428. return c;
  4429. }
  4430. function Qi(a, b, c) {
  4431. c = mh(-1, c);
  4432. c.tag = 3;
  4433. var d = a.type.getDerivedStateFromError;
  4434. if ("function" === typeof d) {
  4435. var e = b.value;
  4436. c.payload = function() {
  4437. return d(e);
  4438. };
  4439. c.callback = function() {
  4440. Li(a, b);
  4441. };
  4442. }
  4443. var f = a.stateNode;
  4444. null !== f && "function" === typeof f.componentDidCatch && (c.callback = function() {
  4445. Li(a, b);
  4446. "function" !== typeof d && (null === Ri ? Ri = /* @__PURE__ */ new Set([this]) : Ri.add(this));
  4447. var c2 = b.stack;
  4448. this.componentDidCatch(b.value, { componentStack: null !== c2 ? c2 : "" });
  4449. });
  4450. return c;
  4451. }
  4452. function Si(a, b, c) {
  4453. var d = a.pingCache;
  4454. if (null === d) {
  4455. d = a.pingCache = new Mi();
  4456. var e = /* @__PURE__ */ new Set();
  4457. d.set(b, e);
  4458. } else
  4459. e = d.get(b), void 0 === e && (e = /* @__PURE__ */ new Set(), d.set(b, e));
  4460. e.has(c) || (e.add(c), a = Ti.bind(null, a, b, c), b.then(a, a));
  4461. }
  4462. function Ui(a) {
  4463. do {
  4464. var b;
  4465. if (b = 13 === a.tag)
  4466. b = a.memoizedState, b = null !== b ? null !== b.dehydrated ? true : false : true;
  4467. if (b)
  4468. return a;
  4469. a = a.return;
  4470. } while (null !== a);
  4471. return null;
  4472. }
  4473. function Vi(a, b, c, d, e) {
  4474. if (0 === (a.mode & 1))
  4475. return a === b ? a.flags |= 65536 : (a.flags |= 128, c.flags |= 131072, c.flags &= -52805, 1 === c.tag && (null === c.alternate ? c.tag = 17 : (b = mh(-1, 1), b.tag = 2, nh(c, b, 1))), c.lanes |= 1), a;
  4476. a.flags |= 65536;
  4477. a.lanes = e;
  4478. return a;
  4479. }
  4480. var Wi = ua.ReactCurrentOwner;
  4481. var dh = false;
  4482. function Xi(a, b, c, d) {
  4483. b.child = null === a ? Vg(b, null, c, d) : Ug(b, a.child, c, d);
  4484. }
  4485. function Yi(a, b, c, d, e) {
  4486. c = c.render;
  4487. var f = b.ref;
  4488. ch(b, e);
  4489. d = Nh(a, b, c, d, f, e);
  4490. c = Sh();
  4491. if (null !== a && !dh)
  4492. return b.updateQueue = a.updateQueue, b.flags &= -2053, a.lanes &= ~e, Zi(a, b, e);
  4493. I && c && vg(b);
  4494. b.flags |= 1;
  4495. Xi(a, b, d, e);
  4496. return b.child;
  4497. }
  4498. function $i(a, b, c, d, e) {
  4499. if (null === a) {
  4500. var f = c.type;
  4501. if ("function" === typeof f && !aj(f) && void 0 === f.defaultProps && null === c.compare && void 0 === c.defaultProps)
  4502. return b.tag = 15, b.type = f, bj(a, b, f, d, e);
  4503. a = Rg(c.type, null, d, b, b.mode, e);
  4504. a.ref = b.ref;
  4505. a.return = b;
  4506. return b.child = a;
  4507. }
  4508. f = a.child;
  4509. if (0 === (a.lanes & e)) {
  4510. var g = f.memoizedProps;
  4511. c = c.compare;
  4512. c = null !== c ? c : Ie;
  4513. if (c(g, d) && a.ref === b.ref)
  4514. return Zi(a, b, e);
  4515. }
  4516. b.flags |= 1;
  4517. a = Pg(f, d);
  4518. a.ref = b.ref;
  4519. a.return = b;
  4520. return b.child = a;
  4521. }
  4522. function bj(a, b, c, d, e) {
  4523. if (null !== a) {
  4524. var f = a.memoizedProps;
  4525. if (Ie(f, d) && a.ref === b.ref)
  4526. if (dh = false, b.pendingProps = d = f, 0 !== (a.lanes & e))
  4527. 0 !== (a.flags & 131072) && (dh = true);
  4528. else
  4529. return b.lanes = a.lanes, Zi(a, b, e);
  4530. }
  4531. return cj(a, b, c, d, e);
  4532. }
  4533. function dj(a, b, c) {
  4534. var d = b.pendingProps, e = d.children, f = null !== a ? a.memoizedState : null;
  4535. if ("hidden" === d.mode)
  4536. if (0 === (b.mode & 1))
  4537. b.memoizedState = { baseLanes: 0, cachePool: null, transitions: null }, G(ej, fj), fj |= c;
  4538. else {
  4539. if (0 === (c & 1073741824))
  4540. return a = null !== f ? f.baseLanes | c : c, b.lanes = b.childLanes = 1073741824, b.memoizedState = { baseLanes: a, cachePool: null, transitions: null }, b.updateQueue = null, G(ej, fj), fj |= a, null;
  4541. b.memoizedState = { baseLanes: 0, cachePool: null, transitions: null };
  4542. d = null !== f ? f.baseLanes : c;
  4543. G(ej, fj);
  4544. fj |= d;
  4545. }
  4546. else
  4547. null !== f ? (d = f.baseLanes | c, b.memoizedState = null) : d = c, G(ej, fj), fj |= d;
  4548. Xi(a, b, e, c);
  4549. return b.child;
  4550. }
  4551. function gj(a, b) {
  4552. var c = b.ref;
  4553. if (null === a && null !== c || null !== a && a.ref !== c)
  4554. b.flags |= 512, b.flags |= 2097152;
  4555. }
  4556. function cj(a, b, c, d, e) {
  4557. var f = Zf(c) ? Xf : H.current;
  4558. f = Yf(b, f);
  4559. ch(b, e);
  4560. c = Nh(a, b, c, d, f, e);
  4561. d = Sh();
  4562. if (null !== a && !dh)
  4563. return b.updateQueue = a.updateQueue, b.flags &= -2053, a.lanes &= ~e, Zi(a, b, e);
  4564. I && d && vg(b);
  4565. b.flags |= 1;
  4566. Xi(a, b, c, e);
  4567. return b.child;
  4568. }
  4569. function hj(a, b, c, d, e) {
  4570. if (Zf(c)) {
  4571. var f = true;
  4572. cg(b);
  4573. } else
  4574. f = false;
  4575. ch(b, e);
  4576. if (null === b.stateNode)
  4577. ij(a, b), Gi(b, c, d), Ii(b, c, d, e), d = true;
  4578. else if (null === a) {
  4579. var g = b.stateNode, h = b.memoizedProps;
  4580. g.props = h;
  4581. var k = g.context, l = c.contextType;
  4582. "object" === typeof l && null !== l ? l = eh(l) : (l = Zf(c) ? Xf : H.current, l = Yf(b, l));
  4583. var m = c.getDerivedStateFromProps, q = "function" === typeof m || "function" === typeof g.getSnapshotBeforeUpdate;
  4584. q || "function" !== typeof g.UNSAFE_componentWillReceiveProps && "function" !== typeof g.componentWillReceiveProps || (h !== d || k !== l) && Hi(b, g, d, l);
  4585. jh = false;
  4586. var r = b.memoizedState;
  4587. g.state = r;
  4588. qh(b, d, g, e);
  4589. k = b.memoizedState;
  4590. h !== d || r !== k || Wf.current || jh ? ("function" === typeof m && (Di(b, c, m, d), k = b.memoizedState), (h = jh || Fi(b, c, h, d, r, k, l)) ? (q || "function" !== typeof g.UNSAFE_componentWillMount && "function" !== typeof g.componentWillMount || ("function" === typeof g.componentWillMount && g.componentWillMount(), "function" === typeof g.UNSAFE_componentWillMount && g.UNSAFE_componentWillMount()), "function" === typeof g.componentDidMount && (b.flags |= 4194308)) : ("function" === typeof g.componentDidMount && (b.flags |= 4194308), b.memoizedProps = d, b.memoizedState = k), g.props = d, g.state = k, g.context = l, d = h) : ("function" === typeof g.componentDidMount && (b.flags |= 4194308), d = false);
  4591. } else {
  4592. g = b.stateNode;
  4593. lh(a, b);
  4594. h = b.memoizedProps;
  4595. l = b.type === b.elementType ? h : Ci(b.type, h);
  4596. g.props = l;
  4597. q = b.pendingProps;
  4598. r = g.context;
  4599. k = c.contextType;
  4600. "object" === typeof k && null !== k ? k = eh(k) : (k = Zf(c) ? Xf : H.current, k = Yf(b, k));
  4601. var y = c.getDerivedStateFromProps;
  4602. (m = "function" === typeof y || "function" === typeof g.getSnapshotBeforeUpdate) || "function" !== typeof g.UNSAFE_componentWillReceiveProps && "function" !== typeof g.componentWillReceiveProps || (h !== q || r !== k) && Hi(b, g, d, k);
  4603. jh = false;
  4604. r = b.memoizedState;
  4605. g.state = r;
  4606. qh(b, d, g, e);
  4607. var n = b.memoizedState;
  4608. h !== q || r !== n || Wf.current || jh ? ("function" === typeof y && (Di(b, c, y, d), n = b.memoizedState), (l = jh || Fi(b, c, l, d, r, n, k) || false) ? (m || "function" !== typeof g.UNSAFE_componentWillUpdate && "function" !== typeof g.componentWillUpdate || ("function" === typeof g.componentWillUpdate && g.componentWillUpdate(d, n, k), "function" === typeof g.UNSAFE_componentWillUpdate && g.UNSAFE_componentWillUpdate(d, n, k)), "function" === typeof g.componentDidUpdate && (b.flags |= 4), "function" === typeof g.getSnapshotBeforeUpdate && (b.flags |= 1024)) : ("function" !== typeof g.componentDidUpdate || h === a.memoizedProps && r === a.memoizedState || (b.flags |= 4), "function" !== typeof g.getSnapshotBeforeUpdate || h === a.memoizedProps && r === a.memoizedState || (b.flags |= 1024), b.memoizedProps = d, b.memoizedState = n), g.props = d, g.state = n, g.context = k, d = l) : ("function" !== typeof g.componentDidUpdate || h === a.memoizedProps && r === a.memoizedState || (b.flags |= 4), "function" !== typeof g.getSnapshotBeforeUpdate || h === a.memoizedProps && r === a.memoizedState || (b.flags |= 1024), d = false);
  4609. }
  4610. return jj(a, b, c, d, f, e);
  4611. }
  4612. function jj(a, b, c, d, e, f) {
  4613. gj(a, b);
  4614. var g = 0 !== (b.flags & 128);
  4615. if (!d && !g)
  4616. return e && dg(b, c, false), Zi(a, b, f);
  4617. d = b.stateNode;
  4618. Wi.current = b;
  4619. var h = g && "function" !== typeof c.getDerivedStateFromError ? null : d.render();
  4620. b.flags |= 1;
  4621. null !== a && g ? (b.child = Ug(b, a.child, null, f), b.child = Ug(b, null, h, f)) : Xi(a, b, h, f);
  4622. b.memoizedState = d.state;
  4623. e && dg(b, c, true);
  4624. return b.child;
  4625. }
  4626. function kj(a) {
  4627. var b = a.stateNode;
  4628. b.pendingContext ? ag(a, b.pendingContext, b.pendingContext !== b.context) : b.context && ag(a, b.context, false);
  4629. yh(a, b.containerInfo);
  4630. }
  4631. function lj(a, b, c, d, e) {
  4632. Ig();
  4633. Jg(e);
  4634. b.flags |= 256;
  4635. Xi(a, b, c, d);
  4636. return b.child;
  4637. }
  4638. var mj = { dehydrated: null, treeContext: null, retryLane: 0 };
  4639. function nj(a) {
  4640. return { baseLanes: a, cachePool: null, transitions: null };
  4641. }
  4642. function oj(a, b, c) {
  4643. var d = b.pendingProps, e = L.current, f = false, g = 0 !== (b.flags & 128), h;
  4644. (h = g) || (h = null !== a && null === a.memoizedState ? false : 0 !== (e & 2));
  4645. if (h)
  4646. f = true, b.flags &= -129;
  4647. else if (null === a || null !== a.memoizedState)
  4648. e |= 1;
  4649. G(L, e & 1);
  4650. if (null === a) {
  4651. Eg(b);
  4652. a = b.memoizedState;
  4653. if (null !== a && (a = a.dehydrated, null !== a))
  4654. return 0 === (b.mode & 1) ? b.lanes = 1 : "$!" === a.data ? b.lanes = 8 : b.lanes = 1073741824, null;
  4655. g = d.children;
  4656. a = d.fallback;
  4657. return f ? (d = b.mode, f = b.child, g = { mode: "hidden", children: g }, 0 === (d & 1) && null !== f ? (f.childLanes = 0, f.pendingProps = g) : f = pj(g, d, 0, null), a = Tg(a, d, c, null), f.return = b, a.return = b, f.sibling = a, b.child = f, b.child.memoizedState = nj(c), b.memoizedState = mj, a) : qj(b, g);
  4658. }
  4659. e = a.memoizedState;
  4660. if (null !== e && (h = e.dehydrated, null !== h))
  4661. return rj(a, b, g, d, h, e, c);
  4662. if (f) {
  4663. f = d.fallback;
  4664. g = b.mode;
  4665. e = a.child;
  4666. h = e.sibling;
  4667. var k = { mode: "hidden", children: d.children };
  4668. 0 === (g & 1) && b.child !== e ? (d = b.child, d.childLanes = 0, d.pendingProps = k, b.deletions = null) : (d = Pg(e, k), d.subtreeFlags = e.subtreeFlags & 14680064);
  4669. null !== h ? f = Pg(h, f) : (f = Tg(f, g, c, null), f.flags |= 2);
  4670. f.return = b;
  4671. d.return = b;
  4672. d.sibling = f;
  4673. b.child = d;
  4674. d = f;
  4675. f = b.child;
  4676. g = a.child.memoizedState;
  4677. g = null === g ? nj(c) : { baseLanes: g.baseLanes | c, cachePool: null, transitions: g.transitions };
  4678. f.memoizedState = g;
  4679. f.childLanes = a.childLanes & ~c;
  4680. b.memoizedState = mj;
  4681. return d;
  4682. }
  4683. f = a.child;
  4684. a = f.sibling;
  4685. d = Pg(f, { mode: "visible", children: d.children });
  4686. 0 === (b.mode & 1) && (d.lanes = c);
  4687. d.return = b;
  4688. d.sibling = null;
  4689. null !== a && (c = b.deletions, null === c ? (b.deletions = [a], b.flags |= 16) : c.push(a));
  4690. b.child = d;
  4691. b.memoizedState = null;
  4692. return d;
  4693. }
  4694. function qj(a, b) {
  4695. b = pj({ mode: "visible", children: b }, a.mode, 0, null);
  4696. b.return = a;
  4697. return a.child = b;
  4698. }
  4699. function sj(a, b, c, d) {
  4700. null !== d && Jg(d);
  4701. Ug(b, a.child, null, c);
  4702. a = qj(b, b.pendingProps.children);
  4703. a.flags |= 2;
  4704. b.memoizedState = null;
  4705. return a;
  4706. }
  4707. function rj(a, b, c, d, e, f, g) {
  4708. if (c) {
  4709. if (b.flags & 256)
  4710. return b.flags &= -257, d = Ki(Error(p(422))), sj(a, b, g, d);
  4711. if (null !== b.memoizedState)
  4712. return b.child = a.child, b.flags |= 128, null;
  4713. f = d.fallback;
  4714. e = b.mode;
  4715. d = pj({ mode: "visible", children: d.children }, e, 0, null);
  4716. f = Tg(f, e, g, null);
  4717. f.flags |= 2;
  4718. d.return = b;
  4719. f.return = b;
  4720. d.sibling = f;
  4721. b.child = d;
  4722. 0 !== (b.mode & 1) && Ug(b, a.child, null, g);
  4723. b.child.memoizedState = nj(g);
  4724. b.memoizedState = mj;
  4725. return f;
  4726. }
  4727. if (0 === (b.mode & 1))
  4728. return sj(a, b, g, null);
  4729. if ("$!" === e.data) {
  4730. d = e.nextSibling && e.nextSibling.dataset;
  4731. if (d)
  4732. var h = d.dgst;
  4733. d = h;
  4734. f = Error(p(419));
  4735. d = Ki(f, d, void 0);
  4736. return sj(a, b, g, d);
  4737. }
  4738. h = 0 !== (g & a.childLanes);
  4739. if (dh || h) {
  4740. d = Q;
  4741. if (null !== d) {
  4742. switch (g & -g) {
  4743. case 4:
  4744. e = 2;
  4745. break;
  4746. case 16:
  4747. e = 8;
  4748. break;
  4749. case 64:
  4750. case 128:
  4751. case 256:
  4752. case 512:
  4753. case 1024:
  4754. case 2048:
  4755. case 4096:
  4756. case 8192:
  4757. case 16384:
  4758. case 32768:
  4759. case 65536:
  4760. case 131072:
  4761. case 262144:
  4762. case 524288:
  4763. case 1048576:
  4764. case 2097152:
  4765. case 4194304:
  4766. case 8388608:
  4767. case 16777216:
  4768. case 33554432:
  4769. case 67108864:
  4770. e = 32;
  4771. break;
  4772. case 536870912:
  4773. e = 268435456;
  4774. break;
  4775. default:
  4776. e = 0;
  4777. }
  4778. e = 0 !== (e & (d.suspendedLanes | g)) ? 0 : e;
  4779. 0 !== e && e !== f.retryLane && (f.retryLane = e, ih(a, e), gi(d, a, e, -1));
  4780. }
  4781. tj();
  4782. d = Ki(Error(p(421)));
  4783. return sj(a, b, g, d);
  4784. }
  4785. if ("$?" === e.data)
  4786. return b.flags |= 128, b.child = a.child, b = uj.bind(null, a), e._reactRetry = b, null;
  4787. a = f.treeContext;
  4788. yg = Lf(e.nextSibling);
  4789. xg = b;
  4790. I = true;
  4791. zg = null;
  4792. null !== a && (og[pg++] = rg, og[pg++] = sg, og[pg++] = qg, rg = a.id, sg = a.overflow, qg = b);
  4793. b = qj(b, d.children);
  4794. b.flags |= 4096;
  4795. return b;
  4796. }
  4797. function vj(a, b, c) {
  4798. a.lanes |= b;
  4799. var d = a.alternate;
  4800. null !== d && (d.lanes |= b);
  4801. bh(a.return, b, c);
  4802. }
  4803. function wj(a, b, c, d, e) {
  4804. var f = a.memoizedState;
  4805. null === f ? a.memoizedState = { isBackwards: b, rendering: null, renderingStartTime: 0, last: d, tail: c, tailMode: e } : (f.isBackwards = b, f.rendering = null, f.renderingStartTime = 0, f.last = d, f.tail = c, f.tailMode = e);
  4806. }
  4807. function xj(a, b, c) {
  4808. var d = b.pendingProps, e = d.revealOrder, f = d.tail;
  4809. Xi(a, b, d.children, c);
  4810. d = L.current;
  4811. if (0 !== (d & 2))
  4812. d = d & 1 | 2, b.flags |= 128;
  4813. else {
  4814. if (null !== a && 0 !== (a.flags & 128))
  4815. a:
  4816. for (a = b.child; null !== a; ) {
  4817. if (13 === a.tag)
  4818. null !== a.memoizedState && vj(a, c, b);
  4819. else if (19 === a.tag)
  4820. vj(a, c, b);
  4821. else if (null !== a.child) {
  4822. a.child.return = a;
  4823. a = a.child;
  4824. continue;
  4825. }
  4826. if (a === b)
  4827. break a;
  4828. for (; null === a.sibling; ) {
  4829. if (null === a.return || a.return === b)
  4830. break a;
  4831. a = a.return;
  4832. }
  4833. a.sibling.return = a.return;
  4834. a = a.sibling;
  4835. }
  4836. d &= 1;
  4837. }
  4838. G(L, d);
  4839. if (0 === (b.mode & 1))
  4840. b.memoizedState = null;
  4841. else
  4842. switch (e) {
  4843. case "forwards":
  4844. c = b.child;
  4845. for (e = null; null !== c; )
  4846. a = c.alternate, null !== a && null === Ch(a) && (e = c), c = c.sibling;
  4847. c = e;
  4848. null === c ? (e = b.child, b.child = null) : (e = c.sibling, c.sibling = null);
  4849. wj(b, false, e, c, f);
  4850. break;
  4851. case "backwards":
  4852. c = null;
  4853. e = b.child;
  4854. for (b.child = null; null !== e; ) {
  4855. a = e.alternate;
  4856. if (null !== a && null === Ch(a)) {
  4857. b.child = e;
  4858. break;
  4859. }
  4860. a = e.sibling;
  4861. e.sibling = c;
  4862. c = e;
  4863. e = a;
  4864. }
  4865. wj(b, true, c, null, f);
  4866. break;
  4867. case "together":
  4868. wj(b, false, null, null, void 0);
  4869. break;
  4870. default:
  4871. b.memoizedState = null;
  4872. }
  4873. return b.child;
  4874. }
  4875. function ij(a, b) {
  4876. 0 === (b.mode & 1) && null !== a && (a.alternate = null, b.alternate = null, b.flags |= 2);
  4877. }
  4878. function Zi(a, b, c) {
  4879. null !== a && (b.dependencies = a.dependencies);
  4880. rh |= b.lanes;
  4881. if (0 === (c & b.childLanes))
  4882. return null;
  4883. if (null !== a && b.child !== a.child)
  4884. throw Error(p(153));
  4885. if (null !== b.child) {
  4886. a = b.child;
  4887. c = Pg(a, a.pendingProps);
  4888. b.child = c;
  4889. for (c.return = b; null !== a.sibling; )
  4890. a = a.sibling, c = c.sibling = Pg(a, a.pendingProps), c.return = b;
  4891. c.sibling = null;
  4892. }
  4893. return b.child;
  4894. }
  4895. function yj(a, b, c) {
  4896. switch (b.tag) {
  4897. case 3:
  4898. kj(b);
  4899. Ig();
  4900. break;
  4901. case 5:
  4902. Ah(b);
  4903. break;
  4904. case 1:
  4905. Zf(b.type) && cg(b);
  4906. break;
  4907. case 4:
  4908. yh(b, b.stateNode.containerInfo);
  4909. break;
  4910. case 10:
  4911. var d = b.type._context, e = b.memoizedProps.value;
  4912. G(Wg, d._currentValue);
  4913. d._currentValue = e;
  4914. break;
  4915. case 13:
  4916. d = b.memoizedState;
  4917. if (null !== d) {
  4918. if (null !== d.dehydrated)
  4919. return G(L, L.current & 1), b.flags |= 128, null;
  4920. if (0 !== (c & b.child.childLanes))
  4921. return oj(a, b, c);
  4922. G(L, L.current & 1);
  4923. a = Zi(a, b, c);
  4924. return null !== a ? a.sibling : null;
  4925. }
  4926. G(L, L.current & 1);
  4927. break;
  4928. case 19:
  4929. d = 0 !== (c & b.childLanes);
  4930. if (0 !== (a.flags & 128)) {
  4931. if (d)
  4932. return xj(a, b, c);
  4933. b.flags |= 128;
  4934. }
  4935. e = b.memoizedState;
  4936. null !== e && (e.rendering = null, e.tail = null, e.lastEffect = null);
  4937. G(L, L.current);
  4938. if (d)
  4939. break;
  4940. else
  4941. return null;
  4942. case 22:
  4943. case 23:
  4944. return b.lanes = 0, dj(a, b, c);
  4945. }
  4946. return Zi(a, b, c);
  4947. }
  4948. var zj;
  4949. var Aj;
  4950. var Bj;
  4951. var Cj;
  4952. zj = function(a, b) {
  4953. for (var c = b.child; null !== c; ) {
  4954. if (5 === c.tag || 6 === c.tag)
  4955. a.appendChild(c.stateNode);
  4956. else if (4 !== c.tag && null !== c.child) {
  4957. c.child.return = c;
  4958. c = c.child;
  4959. continue;
  4960. }
  4961. if (c === b)
  4962. break;
  4963. for (; null === c.sibling; ) {
  4964. if (null === c.return || c.return === b)
  4965. return;
  4966. c = c.return;
  4967. }
  4968. c.sibling.return = c.return;
  4969. c = c.sibling;
  4970. }
  4971. };
  4972. Aj = function() {
  4973. };
  4974. Bj = function(a, b, c, d) {
  4975. var e = a.memoizedProps;
  4976. if (e !== d) {
  4977. a = b.stateNode;
  4978. xh(uh.current);
  4979. var f = null;
  4980. switch (c) {
  4981. case "input":
  4982. e = Ya(a, e);
  4983. d = Ya(a, d);
  4984. f = [];
  4985. break;
  4986. case "select":
  4987. e = A({}, e, { value: void 0 });
  4988. d = A({}, d, { value: void 0 });
  4989. f = [];
  4990. break;
  4991. case "textarea":
  4992. e = gb(a, e);
  4993. d = gb(a, d);
  4994. f = [];
  4995. break;
  4996. default:
  4997. "function" !== typeof e.onClick && "function" === typeof d.onClick && (a.onclick = Bf);
  4998. }
  4999. ub(c, d);
  5000. var g;
  5001. c = null;
  5002. for (l in e)
  5003. if (!d.hasOwnProperty(l) && e.hasOwnProperty(l) && null != e[l])
  5004. if ("style" === l) {
  5005. var h = e[l];
  5006. for (g in h)
  5007. h.hasOwnProperty(g) && (c || (c = {}), c[g] = "");
  5008. } else
  5009. "dangerouslySetInnerHTML" !== l && "children" !== l && "suppressContentEditableWarning" !== l && "suppressHydrationWarning" !== l && "autoFocus" !== l && (ea.hasOwnProperty(l) ? f || (f = []) : (f = f || []).push(l, null));
  5010. for (l in d) {
  5011. var k = d[l];
  5012. h = null != e ? e[l] : void 0;
  5013. if (d.hasOwnProperty(l) && k !== h && (null != k || null != h))
  5014. if ("style" === l)
  5015. if (h) {
  5016. for (g in h)
  5017. !h.hasOwnProperty(g) || k && k.hasOwnProperty(g) || (c || (c = {}), c[g] = "");
  5018. for (g in k)
  5019. k.hasOwnProperty(g) && h[g] !== k[g] && (c || (c = {}), c[g] = k[g]);
  5020. } else
  5021. c || (f || (f = []), f.push(
  5022. l,
  5023. c
  5024. )), c = k;
  5025. else
  5026. "dangerouslySetInnerHTML" === l ? (k = k ? k.__html : void 0, h = h ? h.__html : void 0, null != k && h !== k && (f = f || []).push(l, k)) : "children" === l ? "string" !== typeof k && "number" !== typeof k || (f = f || []).push(l, "" + k) : "suppressContentEditableWarning" !== l && "suppressHydrationWarning" !== l && (ea.hasOwnProperty(l) ? (null != k && "onScroll" === l && D("scroll", a), f || h === k || (f = [])) : (f = f || []).push(l, k));
  5027. }
  5028. c && (f = f || []).push("style", c);
  5029. var l = f;
  5030. if (b.updateQueue = l)
  5031. b.flags |= 4;
  5032. }
  5033. };
  5034. Cj = function(a, b, c, d) {
  5035. c !== d && (b.flags |= 4);
  5036. };
  5037. function Dj(a, b) {
  5038. if (!I)
  5039. switch (a.tailMode) {
  5040. case "hidden":
  5041. b = a.tail;
  5042. for (var c = null; null !== b; )
  5043. null !== b.alternate && (c = b), b = b.sibling;
  5044. null === c ? a.tail = null : c.sibling = null;
  5045. break;
  5046. case "collapsed":
  5047. c = a.tail;
  5048. for (var d = null; null !== c; )
  5049. null !== c.alternate && (d = c), c = c.sibling;
  5050. null === d ? b || null === a.tail ? a.tail = null : a.tail.sibling = null : d.sibling = null;
  5051. }
  5052. }
  5053. function S(a) {
  5054. var b = null !== a.alternate && a.alternate.child === a.child, c = 0, d = 0;
  5055. if (b)
  5056. for (var e = a.child; null !== e; )
  5057. c |= e.lanes | e.childLanes, d |= e.subtreeFlags & 14680064, d |= e.flags & 14680064, e.return = a, e = e.sibling;
  5058. else
  5059. for (e = a.child; null !== e; )
  5060. c |= e.lanes | e.childLanes, d |= e.subtreeFlags, d |= e.flags, e.return = a, e = e.sibling;
  5061. a.subtreeFlags |= d;
  5062. a.childLanes = c;
  5063. return b;
  5064. }
  5065. function Ej(a, b, c) {
  5066. var d = b.pendingProps;
  5067. wg(b);
  5068. switch (b.tag) {
  5069. case 2:
  5070. case 16:
  5071. case 15:
  5072. case 0:
  5073. case 11:
  5074. case 7:
  5075. case 8:
  5076. case 12:
  5077. case 9:
  5078. case 14:
  5079. return S(b), null;
  5080. case 1:
  5081. return Zf(b.type) && $f(), S(b), null;
  5082. case 3:
  5083. d = b.stateNode;
  5084. zh();
  5085. E(Wf);
  5086. E(H);
  5087. Eh();
  5088. d.pendingContext && (d.context = d.pendingContext, d.pendingContext = null);
  5089. if (null === a || null === a.child)
  5090. Gg(b) ? b.flags |= 4 : null === a || a.memoizedState.isDehydrated && 0 === (b.flags & 256) || (b.flags |= 1024, null !== zg && (Fj(zg), zg = null));
  5091. Aj(a, b);
  5092. S(b);
  5093. return null;
  5094. case 5:
  5095. Bh(b);
  5096. var e = xh(wh.current);
  5097. c = b.type;
  5098. if (null !== a && null != b.stateNode)
  5099. Bj(a, b, c, d, e), a.ref !== b.ref && (b.flags |= 512, b.flags |= 2097152);
  5100. else {
  5101. if (!d) {
  5102. if (null === b.stateNode)
  5103. throw Error(p(166));
  5104. S(b);
  5105. return null;
  5106. }
  5107. a = xh(uh.current);
  5108. if (Gg(b)) {
  5109. d = b.stateNode;
  5110. c = b.type;
  5111. var f = b.memoizedProps;
  5112. d[Of] = b;
  5113. d[Pf] = f;
  5114. a = 0 !== (b.mode & 1);
  5115. switch (c) {
  5116. case "dialog":
  5117. D("cancel", d);
  5118. D("close", d);
  5119. break;
  5120. case "iframe":
  5121. case "object":
  5122. case "embed":
  5123. D("load", d);
  5124. break;
  5125. case "video":
  5126. case "audio":
  5127. for (e = 0; e < lf.length; e++)
  5128. D(lf[e], d);
  5129. break;
  5130. case "source":
  5131. D("error", d);
  5132. break;
  5133. case "img":
  5134. case "image":
  5135. case "link":
  5136. D(
  5137. "error",
  5138. d
  5139. );
  5140. D("load", d);
  5141. break;
  5142. case "details":
  5143. D("toggle", d);
  5144. break;
  5145. case "input":
  5146. Za(d, f);
  5147. D("invalid", d);
  5148. break;
  5149. case "select":
  5150. d._wrapperState = { wasMultiple: !!f.multiple };
  5151. D("invalid", d);
  5152. break;
  5153. case "textarea":
  5154. hb(d, f), D("invalid", d);
  5155. }
  5156. ub(c, f);
  5157. e = null;
  5158. for (var g in f)
  5159. if (f.hasOwnProperty(g)) {
  5160. var h = f[g];
  5161. "children" === g ? "string" === typeof h ? d.textContent !== h && (true !== f.suppressHydrationWarning && Af(d.textContent, h, a), e = ["children", h]) : "number" === typeof h && d.textContent !== "" + h && (true !== f.suppressHydrationWarning && Af(
  5162. d.textContent,
  5163. h,
  5164. a
  5165. ), e = ["children", "" + h]) : ea.hasOwnProperty(g) && null != h && "onScroll" === g && D("scroll", d);
  5166. }
  5167. switch (c) {
  5168. case "input":
  5169. Va(d);
  5170. db(d, f, true);
  5171. break;
  5172. case "textarea":
  5173. Va(d);
  5174. jb(d);
  5175. break;
  5176. case "select":
  5177. case "option":
  5178. break;
  5179. default:
  5180. "function" === typeof f.onClick && (d.onclick = Bf);
  5181. }
  5182. d = e;
  5183. b.updateQueue = d;
  5184. null !== d && (b.flags |= 4);
  5185. } else {
  5186. g = 9 === e.nodeType ? e : e.ownerDocument;
  5187. "http://www.w3.org/1999/xhtml" === a && (a = kb(c));
  5188. "http://www.w3.org/1999/xhtml" === a ? "script" === c ? (a = g.createElement("div"), a.innerHTML = "<script><\/script>", a = a.removeChild(a.firstChild)) : "string" === typeof d.is ? a = g.createElement(c, { is: d.is }) : (a = g.createElement(c), "select" === c && (g = a, d.multiple ? g.multiple = true : d.size && (g.size = d.size))) : a = g.createElementNS(a, c);
  5189. a[Of] = b;
  5190. a[Pf] = d;
  5191. zj(a, b, false, false);
  5192. b.stateNode = a;
  5193. a: {
  5194. g = vb(c, d);
  5195. switch (c) {
  5196. case "dialog":
  5197. D("cancel", a);
  5198. D("close", a);
  5199. e = d;
  5200. break;
  5201. case "iframe":
  5202. case "object":
  5203. case "embed":
  5204. D("load", a);
  5205. e = d;
  5206. break;
  5207. case "video":
  5208. case "audio":
  5209. for (e = 0; e < lf.length; e++)
  5210. D(lf[e], a);
  5211. e = d;
  5212. break;
  5213. case "source":
  5214. D("error", a);
  5215. e = d;
  5216. break;
  5217. case "img":
  5218. case "image":
  5219. case "link":
  5220. D(
  5221. "error",
  5222. a
  5223. );
  5224. D("load", a);
  5225. e = d;
  5226. break;
  5227. case "details":
  5228. D("toggle", a);
  5229. e = d;
  5230. break;
  5231. case "input":
  5232. Za(a, d);
  5233. e = Ya(a, d);
  5234. D("invalid", a);
  5235. break;
  5236. case "option":
  5237. e = d;
  5238. break;
  5239. case "select":
  5240. a._wrapperState = { wasMultiple: !!d.multiple };
  5241. e = A({}, d, { value: void 0 });
  5242. D("invalid", a);
  5243. break;
  5244. case "textarea":
  5245. hb(a, d);
  5246. e = gb(a, d);
  5247. D("invalid", a);
  5248. break;
  5249. default:
  5250. e = d;
  5251. }
  5252. ub(c, e);
  5253. h = e;
  5254. for (f in h)
  5255. if (h.hasOwnProperty(f)) {
  5256. var k = h[f];
  5257. "style" === f ? sb(a, k) : "dangerouslySetInnerHTML" === f ? (k = k ? k.__html : void 0, null != k && nb(a, k)) : "children" === f ? "string" === typeof k ? ("textarea" !== c || "" !== k) && ob(a, k) : "number" === typeof k && ob(a, "" + k) : "suppressContentEditableWarning" !== f && "suppressHydrationWarning" !== f && "autoFocus" !== f && (ea.hasOwnProperty(f) ? null != k && "onScroll" === f && D("scroll", a) : null != k && ta(a, f, k, g));
  5258. }
  5259. switch (c) {
  5260. case "input":
  5261. Va(a);
  5262. db(a, d, false);
  5263. break;
  5264. case "textarea":
  5265. Va(a);
  5266. jb(a);
  5267. break;
  5268. case "option":
  5269. null != d.value && a.setAttribute("value", "" + Sa(d.value));
  5270. break;
  5271. case "select":
  5272. a.multiple = !!d.multiple;
  5273. f = d.value;
  5274. null != f ? fb(a, !!d.multiple, f, false) : null != d.defaultValue && fb(
  5275. a,
  5276. !!d.multiple,
  5277. d.defaultValue,
  5278. true
  5279. );
  5280. break;
  5281. default:
  5282. "function" === typeof e.onClick && (a.onclick = Bf);
  5283. }
  5284. switch (c) {
  5285. case "button":
  5286. case "input":
  5287. case "select":
  5288. case "textarea":
  5289. d = !!d.autoFocus;
  5290. break a;
  5291. case "img":
  5292. d = true;
  5293. break a;
  5294. default:
  5295. d = false;
  5296. }
  5297. }
  5298. d && (b.flags |= 4);
  5299. }
  5300. null !== b.ref && (b.flags |= 512, b.flags |= 2097152);
  5301. }
  5302. S(b);
  5303. return null;
  5304. case 6:
  5305. if (a && null != b.stateNode)
  5306. Cj(a, b, a.memoizedProps, d);
  5307. else {
  5308. if ("string" !== typeof d && null === b.stateNode)
  5309. throw Error(p(166));
  5310. c = xh(wh.current);
  5311. xh(uh.current);
  5312. if (Gg(b)) {
  5313. d = b.stateNode;
  5314. c = b.memoizedProps;
  5315. d[Of] = b;
  5316. if (f = d.nodeValue !== c) {
  5317. if (a = xg, null !== a)
  5318. switch (a.tag) {
  5319. case 3:
  5320. Af(d.nodeValue, c, 0 !== (a.mode & 1));
  5321. break;
  5322. case 5:
  5323. true !== a.memoizedProps.suppressHydrationWarning && Af(d.nodeValue, c, 0 !== (a.mode & 1));
  5324. }
  5325. }
  5326. f && (b.flags |= 4);
  5327. } else
  5328. d = (9 === c.nodeType ? c : c.ownerDocument).createTextNode(d), d[Of] = b, b.stateNode = d;
  5329. }
  5330. S(b);
  5331. return null;
  5332. case 13:
  5333. E(L);
  5334. d = b.memoizedState;
  5335. if (null === a || null !== a.memoizedState && null !== a.memoizedState.dehydrated) {
  5336. if (I && null !== yg && 0 !== (b.mode & 1) && 0 === (b.flags & 128))
  5337. Hg(), Ig(), b.flags |= 98560, f = false;
  5338. else if (f = Gg(b), null !== d && null !== d.dehydrated) {
  5339. if (null === a) {
  5340. if (!f)
  5341. throw Error(p(318));
  5342. f = b.memoizedState;
  5343. f = null !== f ? f.dehydrated : null;
  5344. if (!f)
  5345. throw Error(p(317));
  5346. f[Of] = b;
  5347. } else
  5348. Ig(), 0 === (b.flags & 128) && (b.memoizedState = null), b.flags |= 4;
  5349. S(b);
  5350. f = false;
  5351. } else
  5352. null !== zg && (Fj(zg), zg = null), f = true;
  5353. if (!f)
  5354. return b.flags & 65536 ? b : null;
  5355. }
  5356. if (0 !== (b.flags & 128))
  5357. return b.lanes = c, b;
  5358. d = null !== d;
  5359. d !== (null !== a && null !== a.memoizedState) && d && (b.child.flags |= 8192, 0 !== (b.mode & 1) && (null === a || 0 !== (L.current & 1) ? 0 === T && (T = 3) : tj()));
  5360. null !== b.updateQueue && (b.flags |= 4);
  5361. S(b);
  5362. return null;
  5363. case 4:
  5364. return zh(), Aj(a, b), null === a && sf(b.stateNode.containerInfo), S(b), null;
  5365. case 10:
  5366. return ah(b.type._context), S(b), null;
  5367. case 17:
  5368. return Zf(b.type) && $f(), S(b), null;
  5369. case 19:
  5370. E(L);
  5371. f = b.memoizedState;
  5372. if (null === f)
  5373. return S(b), null;
  5374. d = 0 !== (b.flags & 128);
  5375. g = f.rendering;
  5376. if (null === g)
  5377. if (d)
  5378. Dj(f, false);
  5379. else {
  5380. if (0 !== T || null !== a && 0 !== (a.flags & 128))
  5381. for (a = b.child; null !== a; ) {
  5382. g = Ch(a);
  5383. if (null !== g) {
  5384. b.flags |= 128;
  5385. Dj(f, false);
  5386. d = g.updateQueue;
  5387. null !== d && (b.updateQueue = d, b.flags |= 4);
  5388. b.subtreeFlags = 0;
  5389. d = c;
  5390. for (c = b.child; null !== c; )
  5391. f = c, a = d, f.flags &= 14680066, g = f.alternate, null === g ? (f.childLanes = 0, f.lanes = a, f.child = null, f.subtreeFlags = 0, f.memoizedProps = null, f.memoizedState = null, f.updateQueue = null, f.dependencies = null, f.stateNode = null) : (f.childLanes = g.childLanes, f.lanes = g.lanes, f.child = g.child, f.subtreeFlags = 0, f.deletions = null, f.memoizedProps = g.memoizedProps, f.memoizedState = g.memoizedState, f.updateQueue = g.updateQueue, f.type = g.type, a = g.dependencies, f.dependencies = null === a ? null : { lanes: a.lanes, firstContext: a.firstContext }), c = c.sibling;
  5392. G(L, L.current & 1 | 2);
  5393. return b.child;
  5394. }
  5395. a = a.sibling;
  5396. }
  5397. null !== f.tail && B() > Gj && (b.flags |= 128, d = true, Dj(f, false), b.lanes = 4194304);
  5398. }
  5399. else {
  5400. if (!d)
  5401. if (a = Ch(g), null !== a) {
  5402. if (b.flags |= 128, d = true, c = a.updateQueue, null !== c && (b.updateQueue = c, b.flags |= 4), Dj(f, true), null === f.tail && "hidden" === f.tailMode && !g.alternate && !I)
  5403. return S(b), null;
  5404. } else
  5405. 2 * B() - f.renderingStartTime > Gj && 1073741824 !== c && (b.flags |= 128, d = true, Dj(f, false), b.lanes = 4194304);
  5406. f.isBackwards ? (g.sibling = b.child, b.child = g) : (c = f.last, null !== c ? c.sibling = g : b.child = g, f.last = g);
  5407. }
  5408. if (null !== f.tail)
  5409. return b = f.tail, f.rendering = b, f.tail = b.sibling, f.renderingStartTime = B(), b.sibling = null, c = L.current, G(L, d ? c & 1 | 2 : c & 1), b;
  5410. S(b);
  5411. return null;
  5412. case 22:
  5413. case 23:
  5414. return Hj(), d = null !== b.memoizedState, null !== a && null !== a.memoizedState !== d && (b.flags |= 8192), d && 0 !== (b.mode & 1) ? 0 !== (fj & 1073741824) && (S(b), b.subtreeFlags & 6 && (b.flags |= 8192)) : S(b), null;
  5415. case 24:
  5416. return null;
  5417. case 25:
  5418. return null;
  5419. }
  5420. throw Error(p(156, b.tag));
  5421. }
  5422. function Ij(a, b) {
  5423. wg(b);
  5424. switch (b.tag) {
  5425. case 1:
  5426. return Zf(b.type) && $f(), a = b.flags, a & 65536 ? (b.flags = a & -65537 | 128, b) : null;
  5427. case 3:
  5428. return zh(), E(Wf), E(H), Eh(), a = b.flags, 0 !== (a & 65536) && 0 === (a & 128) ? (b.flags = a & -65537 | 128, b) : null;
  5429. case 5:
  5430. return Bh(b), null;
  5431. case 13:
  5432. E(L);
  5433. a = b.memoizedState;
  5434. if (null !== a && null !== a.dehydrated) {
  5435. if (null === b.alternate)
  5436. throw Error(p(340));
  5437. Ig();
  5438. }
  5439. a = b.flags;
  5440. return a & 65536 ? (b.flags = a & -65537 | 128, b) : null;
  5441. case 19:
  5442. return E(L), null;
  5443. case 4:
  5444. return zh(), null;
  5445. case 10:
  5446. return ah(b.type._context), null;
  5447. case 22:
  5448. case 23:
  5449. return Hj(), null;
  5450. case 24:
  5451. return null;
  5452. default:
  5453. return null;
  5454. }
  5455. }
  5456. var Jj = false;
  5457. var U = false;
  5458. var Kj = "function" === typeof WeakSet ? WeakSet : Set;
  5459. var V = null;
  5460. function Lj(a, b) {
  5461. var c = a.ref;
  5462. if (null !== c)
  5463. if ("function" === typeof c)
  5464. try {
  5465. c(null);
  5466. } catch (d) {
  5467. W(a, b, d);
  5468. }
  5469. else
  5470. c.current = null;
  5471. }
  5472. function Mj(a, b, c) {
  5473. try {
  5474. c();
  5475. } catch (d) {
  5476. W(a, b, d);
  5477. }
  5478. }
  5479. var Nj = false;
  5480. function Oj(a, b) {
  5481. Cf = dd;
  5482. a = Me();
  5483. if (Ne(a)) {
  5484. if ("selectionStart" in a)
  5485. var c = { start: a.selectionStart, end: a.selectionEnd };
  5486. else
  5487. a: {
  5488. c = (c = a.ownerDocument) && c.defaultView || window;
  5489. var d = c.getSelection && c.getSelection();
  5490. if (d && 0 !== d.rangeCount) {
  5491. c = d.anchorNode;
  5492. var e = d.anchorOffset, f = d.focusNode;
  5493. d = d.focusOffset;
  5494. try {
  5495. c.nodeType, f.nodeType;
  5496. } catch (F) {
  5497. c = null;
  5498. break a;
  5499. }
  5500. var g = 0, h = -1, k = -1, l = 0, m = 0, q = a, r = null;
  5501. b:
  5502. for (; ; ) {
  5503. for (var y; ; ) {
  5504. q !== c || 0 !== e && 3 !== q.nodeType || (h = g + e);
  5505. q !== f || 0 !== d && 3 !== q.nodeType || (k = g + d);
  5506. 3 === q.nodeType && (g += q.nodeValue.length);
  5507. if (null === (y = q.firstChild))
  5508. break;
  5509. r = q;
  5510. q = y;
  5511. }
  5512. for (; ; ) {
  5513. if (q === a)
  5514. break b;
  5515. r === c && ++l === e && (h = g);
  5516. r === f && ++m === d && (k = g);
  5517. if (null !== (y = q.nextSibling))
  5518. break;
  5519. q = r;
  5520. r = q.parentNode;
  5521. }
  5522. q = y;
  5523. }
  5524. c = -1 === h || -1 === k ? null : { start: h, end: k };
  5525. } else
  5526. c = null;
  5527. }
  5528. c = c || { start: 0, end: 0 };
  5529. } else
  5530. c = null;
  5531. Df = { focusedElem: a, selectionRange: c };
  5532. dd = false;
  5533. for (V = b; null !== V; )
  5534. if (b = V, a = b.child, 0 !== (b.subtreeFlags & 1028) && null !== a)
  5535. a.return = b, V = a;
  5536. else
  5537. for (; null !== V; ) {
  5538. b = V;
  5539. try {
  5540. var n = b.alternate;
  5541. if (0 !== (b.flags & 1024))
  5542. switch (b.tag) {
  5543. case 0:
  5544. case 11:
  5545. case 15:
  5546. break;
  5547. case 1:
  5548. if (null !== n) {
  5549. var t = n.memoizedProps, J = n.memoizedState, x = b.stateNode, w = x.getSnapshotBeforeUpdate(b.elementType === b.type ? t : Ci(b.type, t), J);
  5550. x.__reactInternalSnapshotBeforeUpdate = w;
  5551. }
  5552. break;
  5553. case 3:
  5554. var u = b.stateNode.containerInfo;
  5555. 1 === u.nodeType ? u.textContent = "" : 9 === u.nodeType && u.documentElement && u.removeChild(u.documentElement);
  5556. break;
  5557. case 5:
  5558. case 6:
  5559. case 4:
  5560. case 17:
  5561. break;
  5562. default:
  5563. throw Error(p(163));
  5564. }
  5565. } catch (F) {
  5566. W(b, b.return, F);
  5567. }
  5568. a = b.sibling;
  5569. if (null !== a) {
  5570. a.return = b.return;
  5571. V = a;
  5572. break;
  5573. }
  5574. V = b.return;
  5575. }
  5576. n = Nj;
  5577. Nj = false;
  5578. return n;
  5579. }
  5580. function Pj(a, b, c) {
  5581. var d = b.updateQueue;
  5582. d = null !== d ? d.lastEffect : null;
  5583. if (null !== d) {
  5584. var e = d = d.next;
  5585. do {
  5586. if ((e.tag & a) === a) {
  5587. var f = e.destroy;
  5588. e.destroy = void 0;
  5589. void 0 !== f && Mj(b, c, f);
  5590. }
  5591. e = e.next;
  5592. } while (e !== d);
  5593. }
  5594. }
  5595. function Qj(a, b) {
  5596. b = b.updateQueue;
  5597. b = null !== b ? b.lastEffect : null;
  5598. if (null !== b) {
  5599. var c = b = b.next;
  5600. do {
  5601. if ((c.tag & a) === a) {
  5602. var d = c.create;
  5603. c.destroy = d();
  5604. }
  5605. c = c.next;
  5606. } while (c !== b);
  5607. }
  5608. }
  5609. function Rj(a) {
  5610. var b = a.ref;
  5611. if (null !== b) {
  5612. var c = a.stateNode;
  5613. switch (a.tag) {
  5614. case 5:
  5615. a = c;
  5616. break;
  5617. default:
  5618. a = c;
  5619. }
  5620. "function" === typeof b ? b(a) : b.current = a;
  5621. }
  5622. }
  5623. function Sj(a) {
  5624. var b = a.alternate;
  5625. null !== b && (a.alternate = null, Sj(b));
  5626. a.child = null;
  5627. a.deletions = null;
  5628. a.sibling = null;
  5629. 5 === a.tag && (b = a.stateNode, null !== b && (delete b[Of], delete b[Pf], delete b[of], delete b[Qf], delete b[Rf]));
  5630. a.stateNode = null;
  5631. a.return = null;
  5632. a.dependencies = null;
  5633. a.memoizedProps = null;
  5634. a.memoizedState = null;
  5635. a.pendingProps = null;
  5636. a.stateNode = null;
  5637. a.updateQueue = null;
  5638. }
  5639. function Tj(a) {
  5640. return 5 === a.tag || 3 === a.tag || 4 === a.tag;
  5641. }
  5642. function Uj(a) {
  5643. a:
  5644. for (; ; ) {
  5645. for (; null === a.sibling; ) {
  5646. if (null === a.return || Tj(a.return))
  5647. return null;
  5648. a = a.return;
  5649. }
  5650. a.sibling.return = a.return;
  5651. for (a = a.sibling; 5 !== a.tag && 6 !== a.tag && 18 !== a.tag; ) {
  5652. if (a.flags & 2)
  5653. continue a;
  5654. if (null === a.child || 4 === a.tag)
  5655. continue a;
  5656. else
  5657. a.child.return = a, a = a.child;
  5658. }
  5659. if (!(a.flags & 2))
  5660. return a.stateNode;
  5661. }
  5662. }
  5663. function Vj(a, b, c) {
  5664. var d = a.tag;
  5665. if (5 === d || 6 === d)
  5666. a = a.stateNode, b ? 8 === c.nodeType ? c.parentNode.insertBefore(a, b) : c.insertBefore(a, b) : (8 === c.nodeType ? (b = c.parentNode, b.insertBefore(a, c)) : (b = c, b.appendChild(a)), c = c._reactRootContainer, null !== c && void 0 !== c || null !== b.onclick || (b.onclick = Bf));
  5667. else if (4 !== d && (a = a.child, null !== a))
  5668. for (Vj(a, b, c), a = a.sibling; null !== a; )
  5669. Vj(a, b, c), a = a.sibling;
  5670. }
  5671. function Wj(a, b, c) {
  5672. var d = a.tag;
  5673. if (5 === d || 6 === d)
  5674. a = a.stateNode, b ? c.insertBefore(a, b) : c.appendChild(a);
  5675. else if (4 !== d && (a = a.child, null !== a))
  5676. for (Wj(a, b, c), a = a.sibling; null !== a; )
  5677. Wj(a, b, c), a = a.sibling;
  5678. }
  5679. var X = null;
  5680. var Xj = false;
  5681. function Yj(a, b, c) {
  5682. for (c = c.child; null !== c; )
  5683. Zj(a, b, c), c = c.sibling;
  5684. }
  5685. function Zj(a, b, c) {
  5686. if (lc && "function" === typeof lc.onCommitFiberUnmount)
  5687. try {
  5688. lc.onCommitFiberUnmount(kc, c);
  5689. } catch (h) {
  5690. }
  5691. switch (c.tag) {
  5692. case 5:
  5693. U || Lj(c, b);
  5694. case 6:
  5695. var d = X, e = Xj;
  5696. X = null;
  5697. Yj(a, b, c);
  5698. X = d;
  5699. Xj = e;
  5700. null !== X && (Xj ? (a = X, c = c.stateNode, 8 === a.nodeType ? a.parentNode.removeChild(c) : a.removeChild(c)) : X.removeChild(c.stateNode));
  5701. break;
  5702. case 18:
  5703. null !== X && (Xj ? (a = X, c = c.stateNode, 8 === a.nodeType ? Kf(a.parentNode, c) : 1 === a.nodeType && Kf(a, c), bd(a)) : Kf(X, c.stateNode));
  5704. break;
  5705. case 4:
  5706. d = X;
  5707. e = Xj;
  5708. X = c.stateNode.containerInfo;
  5709. Xj = true;
  5710. Yj(a, b, c);
  5711. X = d;
  5712. Xj = e;
  5713. break;
  5714. case 0:
  5715. case 11:
  5716. case 14:
  5717. case 15:
  5718. if (!U && (d = c.updateQueue, null !== d && (d = d.lastEffect, null !== d))) {
  5719. e = d = d.next;
  5720. do {
  5721. var f = e, g = f.destroy;
  5722. f = f.tag;
  5723. void 0 !== g && (0 !== (f & 2) ? Mj(c, b, g) : 0 !== (f & 4) && Mj(c, b, g));
  5724. e = e.next;
  5725. } while (e !== d);
  5726. }
  5727. Yj(a, b, c);
  5728. break;
  5729. case 1:
  5730. if (!U && (Lj(c, b), d = c.stateNode, "function" === typeof d.componentWillUnmount))
  5731. try {
  5732. d.props = c.memoizedProps, d.state = c.memoizedState, d.componentWillUnmount();
  5733. } catch (h) {
  5734. W(c, b, h);
  5735. }
  5736. Yj(a, b, c);
  5737. break;
  5738. case 21:
  5739. Yj(a, b, c);
  5740. break;
  5741. case 22:
  5742. c.mode & 1 ? (U = (d = U) || null !== c.memoizedState, Yj(a, b, c), U = d) : Yj(a, b, c);
  5743. break;
  5744. default:
  5745. Yj(a, b, c);
  5746. }
  5747. }
  5748. function ak(a) {
  5749. var b = a.updateQueue;
  5750. if (null !== b) {
  5751. a.updateQueue = null;
  5752. var c = a.stateNode;
  5753. null === c && (c = a.stateNode = new Kj());
  5754. b.forEach(function(b2) {
  5755. var d = bk.bind(null, a, b2);
  5756. c.has(b2) || (c.add(b2), b2.then(d, d));
  5757. });
  5758. }
  5759. }
  5760. function ck(a, b) {
  5761. var c = b.deletions;
  5762. if (null !== c)
  5763. for (var d = 0; d < c.length; d++) {
  5764. var e = c[d];
  5765. try {
  5766. var f = a, g = b, h = g;
  5767. a:
  5768. for (; null !== h; ) {
  5769. switch (h.tag) {
  5770. case 5:
  5771. X = h.stateNode;
  5772. Xj = false;
  5773. break a;
  5774. case 3:
  5775. X = h.stateNode.containerInfo;
  5776. Xj = true;
  5777. break a;
  5778. case 4:
  5779. X = h.stateNode.containerInfo;
  5780. Xj = true;
  5781. break a;
  5782. }
  5783. h = h.return;
  5784. }
  5785. if (null === X)
  5786. throw Error(p(160));
  5787. Zj(f, g, e);
  5788. X = null;
  5789. Xj = false;
  5790. var k = e.alternate;
  5791. null !== k && (k.return = null);
  5792. e.return = null;
  5793. } catch (l) {
  5794. W(e, b, l);
  5795. }
  5796. }
  5797. if (b.subtreeFlags & 12854)
  5798. for (b = b.child; null !== b; )
  5799. dk(b, a), b = b.sibling;
  5800. }
  5801. function dk(a, b) {
  5802. var c = a.alternate, d = a.flags;
  5803. switch (a.tag) {
  5804. case 0:
  5805. case 11:
  5806. case 14:
  5807. case 15:
  5808. ck(b, a);
  5809. ek(a);
  5810. if (d & 4) {
  5811. try {
  5812. Pj(3, a, a.return), Qj(3, a);
  5813. } catch (t) {
  5814. W(a, a.return, t);
  5815. }
  5816. try {
  5817. Pj(5, a, a.return);
  5818. } catch (t) {
  5819. W(a, a.return, t);
  5820. }
  5821. }
  5822. break;
  5823. case 1:
  5824. ck(b, a);
  5825. ek(a);
  5826. d & 512 && null !== c && Lj(c, c.return);
  5827. break;
  5828. case 5:
  5829. ck(b, a);
  5830. ek(a);
  5831. d & 512 && null !== c && Lj(c, c.return);
  5832. if (a.flags & 32) {
  5833. var e = a.stateNode;
  5834. try {
  5835. ob(e, "");
  5836. } catch (t) {
  5837. W(a, a.return, t);
  5838. }
  5839. }
  5840. if (d & 4 && (e = a.stateNode, null != e)) {
  5841. var f = a.memoizedProps, g = null !== c ? c.memoizedProps : f, h = a.type, k = a.updateQueue;
  5842. a.updateQueue = null;
  5843. if (null !== k)
  5844. try {
  5845. "input" === h && "radio" === f.type && null != f.name && ab(e, f);
  5846. vb(h, g);
  5847. var l = vb(h, f);
  5848. for (g = 0; g < k.length; g += 2) {
  5849. var m = k[g], q = k[g + 1];
  5850. "style" === m ? sb(e, q) : "dangerouslySetInnerHTML" === m ? nb(e, q) : "children" === m ? ob(e, q) : ta(e, m, q, l);
  5851. }
  5852. switch (h) {
  5853. case "input":
  5854. bb(e, f);
  5855. break;
  5856. case "textarea":
  5857. ib(e, f);
  5858. break;
  5859. case "select":
  5860. var r = e._wrapperState.wasMultiple;
  5861. e._wrapperState.wasMultiple = !!f.multiple;
  5862. var y = f.value;
  5863. null != y ? fb(e, !!f.multiple, y, false) : r !== !!f.multiple && (null != f.defaultValue ? fb(
  5864. e,
  5865. !!f.multiple,
  5866. f.defaultValue,
  5867. true
  5868. ) : fb(e, !!f.multiple, f.multiple ? [] : "", false));
  5869. }
  5870. e[Pf] = f;
  5871. } catch (t) {
  5872. W(a, a.return, t);
  5873. }
  5874. }
  5875. break;
  5876. case 6:
  5877. ck(b, a);
  5878. ek(a);
  5879. if (d & 4) {
  5880. if (null === a.stateNode)
  5881. throw Error(p(162));
  5882. e = a.stateNode;
  5883. f = a.memoizedProps;
  5884. try {
  5885. e.nodeValue = f;
  5886. } catch (t) {
  5887. W(a, a.return, t);
  5888. }
  5889. }
  5890. break;
  5891. case 3:
  5892. ck(b, a);
  5893. ek(a);
  5894. if (d & 4 && null !== c && c.memoizedState.isDehydrated)
  5895. try {
  5896. bd(b.containerInfo);
  5897. } catch (t) {
  5898. W(a, a.return, t);
  5899. }
  5900. break;
  5901. case 4:
  5902. ck(b, a);
  5903. ek(a);
  5904. break;
  5905. case 13:
  5906. ck(b, a);
  5907. ek(a);
  5908. e = a.child;
  5909. e.flags & 8192 && (f = null !== e.memoizedState, e.stateNode.isHidden = f, !f || null !== e.alternate && null !== e.alternate.memoizedState || (fk = B()));
  5910. d & 4 && ak(a);
  5911. break;
  5912. case 22:
  5913. m = null !== c && null !== c.memoizedState;
  5914. a.mode & 1 ? (U = (l = U) || m, ck(b, a), U = l) : ck(b, a);
  5915. ek(a);
  5916. if (d & 8192) {
  5917. l = null !== a.memoizedState;
  5918. if ((a.stateNode.isHidden = l) && !m && 0 !== (a.mode & 1))
  5919. for (V = a, m = a.child; null !== m; ) {
  5920. for (q = V = m; null !== V; ) {
  5921. r = V;
  5922. y = r.child;
  5923. switch (r.tag) {
  5924. case 0:
  5925. case 11:
  5926. case 14:
  5927. case 15:
  5928. Pj(4, r, r.return);
  5929. break;
  5930. case 1:
  5931. Lj(r, r.return);
  5932. var n = r.stateNode;
  5933. if ("function" === typeof n.componentWillUnmount) {
  5934. d = r;
  5935. c = r.return;
  5936. try {
  5937. b = d, n.props = b.memoizedProps, n.state = b.memoizedState, n.componentWillUnmount();
  5938. } catch (t) {
  5939. W(d, c, t);
  5940. }
  5941. }
  5942. break;
  5943. case 5:
  5944. Lj(r, r.return);
  5945. break;
  5946. case 22:
  5947. if (null !== r.memoizedState) {
  5948. gk(q);
  5949. continue;
  5950. }
  5951. }
  5952. null !== y ? (y.return = r, V = y) : gk(q);
  5953. }
  5954. m = m.sibling;
  5955. }
  5956. a:
  5957. for (m = null, q = a; ; ) {
  5958. if (5 === q.tag) {
  5959. if (null === m) {
  5960. m = q;
  5961. try {
  5962. e = q.stateNode, l ? (f = e.style, "function" === typeof f.setProperty ? f.setProperty("display", "none", "important") : f.display = "none") : (h = q.stateNode, k = q.memoizedProps.style, g = void 0 !== k && null !== k && k.hasOwnProperty("display") ? k.display : null, h.style.display = rb("display", g));
  5963. } catch (t) {
  5964. W(a, a.return, t);
  5965. }
  5966. }
  5967. } else if (6 === q.tag) {
  5968. if (null === m)
  5969. try {
  5970. q.stateNode.nodeValue = l ? "" : q.memoizedProps;
  5971. } catch (t) {
  5972. W(a, a.return, t);
  5973. }
  5974. } else if ((22 !== q.tag && 23 !== q.tag || null === q.memoizedState || q === a) && null !== q.child) {
  5975. q.child.return = q;
  5976. q = q.child;
  5977. continue;
  5978. }
  5979. if (q === a)
  5980. break a;
  5981. for (; null === q.sibling; ) {
  5982. if (null === q.return || q.return === a)
  5983. break a;
  5984. m === q && (m = null);
  5985. q = q.return;
  5986. }
  5987. m === q && (m = null);
  5988. q.sibling.return = q.return;
  5989. q = q.sibling;
  5990. }
  5991. }
  5992. break;
  5993. case 19:
  5994. ck(b, a);
  5995. ek(a);
  5996. d & 4 && ak(a);
  5997. break;
  5998. case 21:
  5999. break;
  6000. default:
  6001. ck(
  6002. b,
  6003. a
  6004. ), ek(a);
  6005. }
  6006. }
  6007. function ek(a) {
  6008. var b = a.flags;
  6009. if (b & 2) {
  6010. try {
  6011. a: {
  6012. for (var c = a.return; null !== c; ) {
  6013. if (Tj(c)) {
  6014. var d = c;
  6015. break a;
  6016. }
  6017. c = c.return;
  6018. }
  6019. throw Error(p(160));
  6020. }
  6021. switch (d.tag) {
  6022. case 5:
  6023. var e = d.stateNode;
  6024. d.flags & 32 && (ob(e, ""), d.flags &= -33);
  6025. var f = Uj(a);
  6026. Wj(a, f, e);
  6027. break;
  6028. case 3:
  6029. case 4:
  6030. var g = d.stateNode.containerInfo, h = Uj(a);
  6031. Vj(a, h, g);
  6032. break;
  6033. default:
  6034. throw Error(p(161));
  6035. }
  6036. } catch (k) {
  6037. W(a, a.return, k);
  6038. }
  6039. a.flags &= -3;
  6040. }
  6041. b & 4096 && (a.flags &= -4097);
  6042. }
  6043. function hk(a, b, c) {
  6044. V = a;
  6045. ik(a, b, c);
  6046. }
  6047. function ik(a, b, c) {
  6048. for (var d = 0 !== (a.mode & 1); null !== V; ) {
  6049. var e = V, f = e.child;
  6050. if (22 === e.tag && d) {
  6051. var g = null !== e.memoizedState || Jj;
  6052. if (!g) {
  6053. var h = e.alternate, k = null !== h && null !== h.memoizedState || U;
  6054. h = Jj;
  6055. var l = U;
  6056. Jj = g;
  6057. if ((U = k) && !l)
  6058. for (V = e; null !== V; )
  6059. g = V, k = g.child, 22 === g.tag && null !== g.memoizedState ? jk(e) : null !== k ? (k.return = g, V = k) : jk(e);
  6060. for (; null !== f; )
  6061. V = f, ik(f, b, c), f = f.sibling;
  6062. V = e;
  6063. Jj = h;
  6064. U = l;
  6065. }
  6066. kk(a, b, c);
  6067. } else
  6068. 0 !== (e.subtreeFlags & 8772) && null !== f ? (f.return = e, V = f) : kk(a, b, c);
  6069. }
  6070. }
  6071. function kk(a) {
  6072. for (; null !== V; ) {
  6073. var b = V;
  6074. if (0 !== (b.flags & 8772)) {
  6075. var c = b.alternate;
  6076. try {
  6077. if (0 !== (b.flags & 8772))
  6078. switch (b.tag) {
  6079. case 0:
  6080. case 11:
  6081. case 15:
  6082. U || Qj(5, b);
  6083. break;
  6084. case 1:
  6085. var d = b.stateNode;
  6086. if (b.flags & 4 && !U)
  6087. if (null === c)
  6088. d.componentDidMount();
  6089. else {
  6090. var e = b.elementType === b.type ? c.memoizedProps : Ci(b.type, c.memoizedProps);
  6091. d.componentDidUpdate(e, c.memoizedState, d.__reactInternalSnapshotBeforeUpdate);
  6092. }
  6093. var f = b.updateQueue;
  6094. null !== f && sh(b, f, d);
  6095. break;
  6096. case 3:
  6097. var g = b.updateQueue;
  6098. if (null !== g) {
  6099. c = null;
  6100. if (null !== b.child)
  6101. switch (b.child.tag) {
  6102. case 5:
  6103. c = b.child.stateNode;
  6104. break;
  6105. case 1:
  6106. c = b.child.stateNode;
  6107. }
  6108. sh(b, g, c);
  6109. }
  6110. break;
  6111. case 5:
  6112. var h = b.stateNode;
  6113. if (null === c && b.flags & 4) {
  6114. c = h;
  6115. var k = b.memoizedProps;
  6116. switch (b.type) {
  6117. case "button":
  6118. case "input":
  6119. case "select":
  6120. case "textarea":
  6121. k.autoFocus && c.focus();
  6122. break;
  6123. case "img":
  6124. k.src && (c.src = k.src);
  6125. }
  6126. }
  6127. break;
  6128. case 6:
  6129. break;
  6130. case 4:
  6131. break;
  6132. case 12:
  6133. break;
  6134. case 13:
  6135. if (null === b.memoizedState) {
  6136. var l = b.alternate;
  6137. if (null !== l) {
  6138. var m = l.memoizedState;
  6139. if (null !== m) {
  6140. var q = m.dehydrated;
  6141. null !== q && bd(q);
  6142. }
  6143. }
  6144. }
  6145. break;
  6146. case 19:
  6147. case 17:
  6148. case 21:
  6149. case 22:
  6150. case 23:
  6151. case 25:
  6152. break;
  6153. default:
  6154. throw Error(p(163));
  6155. }
  6156. U || b.flags & 512 && Rj(b);
  6157. } catch (r) {
  6158. W(b, b.return, r);
  6159. }
  6160. }
  6161. if (b === a) {
  6162. V = null;
  6163. break;
  6164. }
  6165. c = b.sibling;
  6166. if (null !== c) {
  6167. c.return = b.return;
  6168. V = c;
  6169. break;
  6170. }
  6171. V = b.return;
  6172. }
  6173. }
  6174. function gk(a) {
  6175. for (; null !== V; ) {
  6176. var b = V;
  6177. if (b === a) {
  6178. V = null;
  6179. break;
  6180. }
  6181. var c = b.sibling;
  6182. if (null !== c) {
  6183. c.return = b.return;
  6184. V = c;
  6185. break;
  6186. }
  6187. V = b.return;
  6188. }
  6189. }
  6190. function jk(a) {
  6191. for (; null !== V; ) {
  6192. var b = V;
  6193. try {
  6194. switch (b.tag) {
  6195. case 0:
  6196. case 11:
  6197. case 15:
  6198. var c = b.return;
  6199. try {
  6200. Qj(4, b);
  6201. } catch (k) {
  6202. W(b, c, k);
  6203. }
  6204. break;
  6205. case 1:
  6206. var d = b.stateNode;
  6207. if ("function" === typeof d.componentDidMount) {
  6208. var e = b.return;
  6209. try {
  6210. d.componentDidMount();
  6211. } catch (k) {
  6212. W(b, e, k);
  6213. }
  6214. }
  6215. var f = b.return;
  6216. try {
  6217. Rj(b);
  6218. } catch (k) {
  6219. W(b, f, k);
  6220. }
  6221. break;
  6222. case 5:
  6223. var g = b.return;
  6224. try {
  6225. Rj(b);
  6226. } catch (k) {
  6227. W(b, g, k);
  6228. }
  6229. }
  6230. } catch (k) {
  6231. W(b, b.return, k);
  6232. }
  6233. if (b === a) {
  6234. V = null;
  6235. break;
  6236. }
  6237. var h = b.sibling;
  6238. if (null !== h) {
  6239. h.return = b.return;
  6240. V = h;
  6241. break;
  6242. }
  6243. V = b.return;
  6244. }
  6245. }
  6246. var lk = Math.ceil;
  6247. var mk = ua.ReactCurrentDispatcher;
  6248. var nk = ua.ReactCurrentOwner;
  6249. var ok = ua.ReactCurrentBatchConfig;
  6250. var K = 0;
  6251. var Q = null;
  6252. var Y = null;
  6253. var Z = 0;
  6254. var fj = 0;
  6255. var ej = Uf(0);
  6256. var T = 0;
  6257. var pk = null;
  6258. var rh = 0;
  6259. var qk = 0;
  6260. var rk = 0;
  6261. var sk = null;
  6262. var tk = null;
  6263. var fk = 0;
  6264. var Gj = Infinity;
  6265. var uk = null;
  6266. var Oi = false;
  6267. var Pi = null;
  6268. var Ri = null;
  6269. var vk = false;
  6270. var wk = null;
  6271. var xk = 0;
  6272. var yk = 0;
  6273. var zk = null;
  6274. var Ak = -1;
  6275. var Bk = 0;
  6276. function R() {
  6277. return 0 !== (K & 6) ? B() : -1 !== Ak ? Ak : Ak = B();
  6278. }
  6279. function yi(a) {
  6280. if (0 === (a.mode & 1))
  6281. return 1;
  6282. if (0 !== (K & 2) && 0 !== Z)
  6283. return Z & -Z;
  6284. if (null !== Kg.transition)
  6285. return 0 === Bk && (Bk = yc()), Bk;
  6286. a = C;
  6287. if (0 !== a)
  6288. return a;
  6289. a = window.event;
  6290. a = void 0 === a ? 16 : jd(a.type);
  6291. return a;
  6292. }
  6293. function gi(a, b, c, d) {
  6294. if (50 < yk)
  6295. throw yk = 0, zk = null, Error(p(185));
  6296. Ac(a, c, d);
  6297. if (0 === (K & 2) || a !== Q)
  6298. a === Q && (0 === (K & 2) && (qk |= c), 4 === T && Ck(a, Z)), Dk(a, d), 1 === c && 0 === K && 0 === (b.mode & 1) && (Gj = B() + 500, fg && jg());
  6299. }
  6300. function Dk(a, b) {
  6301. var c = a.callbackNode;
  6302. wc(a, b);
  6303. var d = uc(a, a === Q ? Z : 0);
  6304. if (0 === d)
  6305. null !== c && bc(c), a.callbackNode = null, a.callbackPriority = 0;
  6306. else if (b = d & -d, a.callbackPriority !== b) {
  6307. null != c && bc(c);
  6308. if (1 === b)
  6309. 0 === a.tag ? ig(Ek.bind(null, a)) : hg(Ek.bind(null, a)), Jf(function() {
  6310. 0 === (K & 6) && jg();
  6311. }), c = null;
  6312. else {
  6313. switch (Dc(d)) {
  6314. case 1:
  6315. c = fc;
  6316. break;
  6317. case 4:
  6318. c = gc;
  6319. break;
  6320. case 16:
  6321. c = hc;
  6322. break;
  6323. case 536870912:
  6324. c = jc;
  6325. break;
  6326. default:
  6327. c = hc;
  6328. }
  6329. c = Fk(c, Gk.bind(null, a));
  6330. }
  6331. a.callbackPriority = b;
  6332. a.callbackNode = c;
  6333. }
  6334. }
  6335. function Gk(a, b) {
  6336. Ak = -1;
  6337. Bk = 0;
  6338. if (0 !== (K & 6))
  6339. throw Error(p(327));
  6340. var c = a.callbackNode;
  6341. if (Hk() && a.callbackNode !== c)
  6342. return null;
  6343. var d = uc(a, a === Q ? Z : 0);
  6344. if (0 === d)
  6345. return null;
  6346. if (0 !== (d & 30) || 0 !== (d & a.expiredLanes) || b)
  6347. b = Ik(a, d);
  6348. else {
  6349. b = d;
  6350. var e = K;
  6351. K |= 2;
  6352. var f = Jk();
  6353. if (Q !== a || Z !== b)
  6354. uk = null, Gj = B() + 500, Kk(a, b);
  6355. do
  6356. try {
  6357. Lk();
  6358. break;
  6359. } catch (h) {
  6360. Mk(a, h);
  6361. }
  6362. while (1);
  6363. $g();
  6364. mk.current = f;
  6365. K = e;
  6366. null !== Y ? b = 0 : (Q = null, Z = 0, b = T);
  6367. }
  6368. if (0 !== b) {
  6369. 2 === b && (e = xc(a), 0 !== e && (d = e, b = Nk(a, e)));
  6370. if (1 === b)
  6371. throw c = pk, Kk(a, 0), Ck(a, d), Dk(a, B()), c;
  6372. if (6 === b)
  6373. Ck(a, d);
  6374. else {
  6375. e = a.current.alternate;
  6376. if (0 === (d & 30) && !Ok(e) && (b = Ik(a, d), 2 === b && (f = xc(a), 0 !== f && (d = f, b = Nk(a, f))), 1 === b))
  6377. throw c = pk, Kk(a, 0), Ck(a, d), Dk(a, B()), c;
  6378. a.finishedWork = e;
  6379. a.finishedLanes = d;
  6380. switch (b) {
  6381. case 0:
  6382. case 1:
  6383. throw Error(p(345));
  6384. case 2:
  6385. Pk(a, tk, uk);
  6386. break;
  6387. case 3:
  6388. Ck(a, d);
  6389. if ((d & 130023424) === d && (b = fk + 500 - B(), 10 < b)) {
  6390. if (0 !== uc(a, 0))
  6391. break;
  6392. e = a.suspendedLanes;
  6393. if ((e & d) !== d) {
  6394. R();
  6395. a.pingedLanes |= a.suspendedLanes & e;
  6396. break;
  6397. }
  6398. a.timeoutHandle = Ff(Pk.bind(null, a, tk, uk), b);
  6399. break;
  6400. }
  6401. Pk(a, tk, uk);
  6402. break;
  6403. case 4:
  6404. Ck(a, d);
  6405. if ((d & 4194240) === d)
  6406. break;
  6407. b = a.eventTimes;
  6408. for (e = -1; 0 < d; ) {
  6409. var g = 31 - oc(d);
  6410. f = 1 << g;
  6411. g = b[g];
  6412. g > e && (e = g);
  6413. d &= ~f;
  6414. }
  6415. d = e;
  6416. d = B() - d;
  6417. d = (120 > d ? 120 : 480 > d ? 480 : 1080 > d ? 1080 : 1920 > d ? 1920 : 3e3 > d ? 3e3 : 4320 > d ? 4320 : 1960 * lk(d / 1960)) - d;
  6418. if (10 < d) {
  6419. a.timeoutHandle = Ff(Pk.bind(null, a, tk, uk), d);
  6420. break;
  6421. }
  6422. Pk(a, tk, uk);
  6423. break;
  6424. case 5:
  6425. Pk(a, tk, uk);
  6426. break;
  6427. default:
  6428. throw Error(p(329));
  6429. }
  6430. }
  6431. }
  6432. Dk(a, B());
  6433. return a.callbackNode === c ? Gk.bind(null, a) : null;
  6434. }
  6435. function Nk(a, b) {
  6436. var c = sk;
  6437. a.current.memoizedState.isDehydrated && (Kk(a, b).flags |= 256);
  6438. a = Ik(a, b);
  6439. 2 !== a && (b = tk, tk = c, null !== b && Fj(b));
  6440. return a;
  6441. }
  6442. function Fj(a) {
  6443. null === tk ? tk = a : tk.push.apply(tk, a);
  6444. }
  6445. function Ok(a) {
  6446. for (var b = a; ; ) {
  6447. if (b.flags & 16384) {
  6448. var c = b.updateQueue;
  6449. if (null !== c && (c = c.stores, null !== c))
  6450. for (var d = 0; d < c.length; d++) {
  6451. var e = c[d], f = e.getSnapshot;
  6452. e = e.value;
  6453. try {
  6454. if (!He(f(), e))
  6455. return false;
  6456. } catch (g) {
  6457. return false;
  6458. }
  6459. }
  6460. }
  6461. c = b.child;
  6462. if (b.subtreeFlags & 16384 && null !== c)
  6463. c.return = b, b = c;
  6464. else {
  6465. if (b === a)
  6466. break;
  6467. for (; null === b.sibling; ) {
  6468. if (null === b.return || b.return === a)
  6469. return true;
  6470. b = b.return;
  6471. }
  6472. b.sibling.return = b.return;
  6473. b = b.sibling;
  6474. }
  6475. }
  6476. return true;
  6477. }
  6478. function Ck(a, b) {
  6479. b &= ~rk;
  6480. b &= ~qk;
  6481. a.suspendedLanes |= b;
  6482. a.pingedLanes &= ~b;
  6483. for (a = a.expirationTimes; 0 < b; ) {
  6484. var c = 31 - oc(b), d = 1 << c;
  6485. a[c] = -1;
  6486. b &= ~d;
  6487. }
  6488. }
  6489. function Ek(a) {
  6490. if (0 !== (K & 6))
  6491. throw Error(p(327));
  6492. Hk();
  6493. var b = uc(a, 0);
  6494. if (0 === (b & 1))
  6495. return Dk(a, B()), null;
  6496. var c = Ik(a, b);
  6497. if (0 !== a.tag && 2 === c) {
  6498. var d = xc(a);
  6499. 0 !== d && (b = d, c = Nk(a, d));
  6500. }
  6501. if (1 === c)
  6502. throw c = pk, Kk(a, 0), Ck(a, b), Dk(a, B()), c;
  6503. if (6 === c)
  6504. throw Error(p(345));
  6505. a.finishedWork = a.current.alternate;
  6506. a.finishedLanes = b;
  6507. Pk(a, tk, uk);
  6508. Dk(a, B());
  6509. return null;
  6510. }
  6511. function Qk(a, b) {
  6512. var c = K;
  6513. K |= 1;
  6514. try {
  6515. return a(b);
  6516. } finally {
  6517. K = c, 0 === K && (Gj = B() + 500, fg && jg());
  6518. }
  6519. }
  6520. function Rk(a) {
  6521. null !== wk && 0 === wk.tag && 0 === (K & 6) && Hk();
  6522. var b = K;
  6523. K |= 1;
  6524. var c = ok.transition, d = C;
  6525. try {
  6526. if (ok.transition = null, C = 1, a)
  6527. return a();
  6528. } finally {
  6529. C = d, ok.transition = c, K = b, 0 === (K & 6) && jg();
  6530. }
  6531. }
  6532. function Hj() {
  6533. fj = ej.current;
  6534. E(ej);
  6535. }
  6536. function Kk(a, b) {
  6537. a.finishedWork = null;
  6538. a.finishedLanes = 0;
  6539. var c = a.timeoutHandle;
  6540. -1 !== c && (a.timeoutHandle = -1, Gf(c));
  6541. if (null !== Y)
  6542. for (c = Y.return; null !== c; ) {
  6543. var d = c;
  6544. wg(d);
  6545. switch (d.tag) {
  6546. case 1:
  6547. d = d.type.childContextTypes;
  6548. null !== d && void 0 !== d && $f();
  6549. break;
  6550. case 3:
  6551. zh();
  6552. E(Wf);
  6553. E(H);
  6554. Eh();
  6555. break;
  6556. case 5:
  6557. Bh(d);
  6558. break;
  6559. case 4:
  6560. zh();
  6561. break;
  6562. case 13:
  6563. E(L);
  6564. break;
  6565. case 19:
  6566. E(L);
  6567. break;
  6568. case 10:
  6569. ah(d.type._context);
  6570. break;
  6571. case 22:
  6572. case 23:
  6573. Hj();
  6574. }
  6575. c = c.return;
  6576. }
  6577. Q = a;
  6578. Y = a = Pg(a.current, null);
  6579. Z = fj = b;
  6580. T = 0;
  6581. pk = null;
  6582. rk = qk = rh = 0;
  6583. tk = sk = null;
  6584. if (null !== fh) {
  6585. for (b = 0; b < fh.length; b++)
  6586. if (c = fh[b], d = c.interleaved, null !== d) {
  6587. c.interleaved = null;
  6588. var e = d.next, f = c.pending;
  6589. if (null !== f) {
  6590. var g = f.next;
  6591. f.next = e;
  6592. d.next = g;
  6593. }
  6594. c.pending = d;
  6595. }
  6596. fh = null;
  6597. }
  6598. return a;
  6599. }
  6600. function Mk(a, b) {
  6601. do {
  6602. var c = Y;
  6603. try {
  6604. $g();
  6605. Fh.current = Rh;
  6606. if (Ih) {
  6607. for (var d = M.memoizedState; null !== d; ) {
  6608. var e = d.queue;
  6609. null !== e && (e.pending = null);
  6610. d = d.next;
  6611. }
  6612. Ih = false;
  6613. }
  6614. Hh = 0;
  6615. O = N = M = null;
  6616. Jh = false;
  6617. Kh = 0;
  6618. nk.current = null;
  6619. if (null === c || null === c.return) {
  6620. T = 1;
  6621. pk = b;
  6622. Y = null;
  6623. break;
  6624. }
  6625. a: {
  6626. var f = a, g = c.return, h = c, k = b;
  6627. b = Z;
  6628. h.flags |= 32768;
  6629. if (null !== k && "object" === typeof k && "function" === typeof k.then) {
  6630. var l = k, m = h, q = m.tag;
  6631. if (0 === (m.mode & 1) && (0 === q || 11 === q || 15 === q)) {
  6632. var r = m.alternate;
  6633. r ? (m.updateQueue = r.updateQueue, m.memoizedState = r.memoizedState, m.lanes = r.lanes) : (m.updateQueue = null, m.memoizedState = null);
  6634. }
  6635. var y = Ui(g);
  6636. if (null !== y) {
  6637. y.flags &= -257;
  6638. Vi(y, g, h, f, b);
  6639. y.mode & 1 && Si(f, l, b);
  6640. b = y;
  6641. k = l;
  6642. var n = b.updateQueue;
  6643. if (null === n) {
  6644. var t = /* @__PURE__ */ new Set();
  6645. t.add(k);
  6646. b.updateQueue = t;
  6647. } else
  6648. n.add(k);
  6649. break a;
  6650. } else {
  6651. if (0 === (b & 1)) {
  6652. Si(f, l, b);
  6653. tj();
  6654. break a;
  6655. }
  6656. k = Error(p(426));
  6657. }
  6658. } else if (I && h.mode & 1) {
  6659. var J = Ui(g);
  6660. if (null !== J) {
  6661. 0 === (J.flags & 65536) && (J.flags |= 256);
  6662. Vi(J, g, h, f, b);
  6663. Jg(Ji(k, h));
  6664. break a;
  6665. }
  6666. }
  6667. f = k = Ji(k, h);
  6668. 4 !== T && (T = 2);
  6669. null === sk ? sk = [f] : sk.push(f);
  6670. f = g;
  6671. do {
  6672. switch (f.tag) {
  6673. case 3:
  6674. f.flags |= 65536;
  6675. b &= -b;
  6676. f.lanes |= b;
  6677. var x = Ni(f, k, b);
  6678. ph(f, x);
  6679. break a;
  6680. case 1:
  6681. h = k;
  6682. var w = f.type, u = f.stateNode;
  6683. if (0 === (f.flags & 128) && ("function" === typeof w.getDerivedStateFromError || null !== u && "function" === typeof u.componentDidCatch && (null === Ri || !Ri.has(u)))) {
  6684. f.flags |= 65536;
  6685. b &= -b;
  6686. f.lanes |= b;
  6687. var F = Qi(f, h, b);
  6688. ph(f, F);
  6689. break a;
  6690. }
  6691. }
  6692. f = f.return;
  6693. } while (null !== f);
  6694. }
  6695. Sk(c);
  6696. } catch (na) {
  6697. b = na;
  6698. Y === c && null !== c && (Y = c = c.return);
  6699. continue;
  6700. }
  6701. break;
  6702. } while (1);
  6703. }
  6704. function Jk() {
  6705. var a = mk.current;
  6706. mk.current = Rh;
  6707. return null === a ? Rh : a;
  6708. }
  6709. function tj() {
  6710. if (0 === T || 3 === T || 2 === T)
  6711. T = 4;
  6712. null === Q || 0 === (rh & 268435455) && 0 === (qk & 268435455) || Ck(Q, Z);
  6713. }
  6714. function Ik(a, b) {
  6715. var c = K;
  6716. K |= 2;
  6717. var d = Jk();
  6718. if (Q !== a || Z !== b)
  6719. uk = null, Kk(a, b);
  6720. do
  6721. try {
  6722. Tk();
  6723. break;
  6724. } catch (e) {
  6725. Mk(a, e);
  6726. }
  6727. while (1);
  6728. $g();
  6729. K = c;
  6730. mk.current = d;
  6731. if (null !== Y)
  6732. throw Error(p(261));
  6733. Q = null;
  6734. Z = 0;
  6735. return T;
  6736. }
  6737. function Tk() {
  6738. for (; null !== Y; )
  6739. Uk(Y);
  6740. }
  6741. function Lk() {
  6742. for (; null !== Y && !cc(); )
  6743. Uk(Y);
  6744. }
  6745. function Uk(a) {
  6746. var b = Vk(a.alternate, a, fj);
  6747. a.memoizedProps = a.pendingProps;
  6748. null === b ? Sk(a) : Y = b;
  6749. nk.current = null;
  6750. }
  6751. function Sk(a) {
  6752. var b = a;
  6753. do {
  6754. var c = b.alternate;
  6755. a = b.return;
  6756. if (0 === (b.flags & 32768)) {
  6757. if (c = Ej(c, b, fj), null !== c) {
  6758. Y = c;
  6759. return;
  6760. }
  6761. } else {
  6762. c = Ij(c, b);
  6763. if (null !== c) {
  6764. c.flags &= 32767;
  6765. Y = c;
  6766. return;
  6767. }
  6768. if (null !== a)
  6769. a.flags |= 32768, a.subtreeFlags = 0, a.deletions = null;
  6770. else {
  6771. T = 6;
  6772. Y = null;
  6773. return;
  6774. }
  6775. }
  6776. b = b.sibling;
  6777. if (null !== b) {
  6778. Y = b;
  6779. return;
  6780. }
  6781. Y = b = a;
  6782. } while (null !== b);
  6783. 0 === T && (T = 5);
  6784. }
  6785. function Pk(a, b, c) {
  6786. var d = C, e = ok.transition;
  6787. try {
  6788. ok.transition = null, C = 1, Wk(a, b, c, d);
  6789. } finally {
  6790. ok.transition = e, C = d;
  6791. }
  6792. return null;
  6793. }
  6794. function Wk(a, b, c, d) {
  6795. do
  6796. Hk();
  6797. while (null !== wk);
  6798. if (0 !== (K & 6))
  6799. throw Error(p(327));
  6800. c = a.finishedWork;
  6801. var e = a.finishedLanes;
  6802. if (null === c)
  6803. return null;
  6804. a.finishedWork = null;
  6805. a.finishedLanes = 0;
  6806. if (c === a.current)
  6807. throw Error(p(177));
  6808. a.callbackNode = null;
  6809. a.callbackPriority = 0;
  6810. var f = c.lanes | c.childLanes;
  6811. Bc(a, f);
  6812. a === Q && (Y = Q = null, Z = 0);
  6813. 0 === (c.subtreeFlags & 2064) && 0 === (c.flags & 2064) || vk || (vk = true, Fk(hc, function() {
  6814. Hk();
  6815. return null;
  6816. }));
  6817. f = 0 !== (c.flags & 15990);
  6818. if (0 !== (c.subtreeFlags & 15990) || f) {
  6819. f = ok.transition;
  6820. ok.transition = null;
  6821. var g = C;
  6822. C = 1;
  6823. var h = K;
  6824. K |= 4;
  6825. nk.current = null;
  6826. Oj(a, c);
  6827. dk(c, a);
  6828. Oe(Df);
  6829. dd = !!Cf;
  6830. Df = Cf = null;
  6831. a.current = c;
  6832. hk(c, a, e);
  6833. dc();
  6834. K = h;
  6835. C = g;
  6836. ok.transition = f;
  6837. } else
  6838. a.current = c;
  6839. vk && (vk = false, wk = a, xk = e);
  6840. f = a.pendingLanes;
  6841. 0 === f && (Ri = null);
  6842. mc(c.stateNode, d);
  6843. Dk(a, B());
  6844. if (null !== b)
  6845. for (d = a.onRecoverableError, c = 0; c < b.length; c++)
  6846. e = b[c], d(e.value, { componentStack: e.stack, digest: e.digest });
  6847. if (Oi)
  6848. throw Oi = false, a = Pi, Pi = null, a;
  6849. 0 !== (xk & 1) && 0 !== a.tag && Hk();
  6850. f = a.pendingLanes;
  6851. 0 !== (f & 1) ? a === zk ? yk++ : (yk = 0, zk = a) : yk = 0;
  6852. jg();
  6853. return null;
  6854. }
  6855. function Hk() {
  6856. if (null !== wk) {
  6857. var a = Dc(xk), b = ok.transition, c = C;
  6858. try {
  6859. ok.transition = null;
  6860. C = 16 > a ? 16 : a;
  6861. if (null === wk)
  6862. var d = false;
  6863. else {
  6864. a = wk;
  6865. wk = null;
  6866. xk = 0;
  6867. if (0 !== (K & 6))
  6868. throw Error(p(331));
  6869. var e = K;
  6870. K |= 4;
  6871. for (V = a.current; null !== V; ) {
  6872. var f = V, g = f.child;
  6873. if (0 !== (V.flags & 16)) {
  6874. var h = f.deletions;
  6875. if (null !== h) {
  6876. for (var k = 0; k < h.length; k++) {
  6877. var l = h[k];
  6878. for (V = l; null !== V; ) {
  6879. var m = V;
  6880. switch (m.tag) {
  6881. case 0:
  6882. case 11:
  6883. case 15:
  6884. Pj(8, m, f);
  6885. }
  6886. var q = m.child;
  6887. if (null !== q)
  6888. q.return = m, V = q;
  6889. else
  6890. for (; null !== V; ) {
  6891. m = V;
  6892. var r = m.sibling, y = m.return;
  6893. Sj(m);
  6894. if (m === l) {
  6895. V = null;
  6896. break;
  6897. }
  6898. if (null !== r) {
  6899. r.return = y;
  6900. V = r;
  6901. break;
  6902. }
  6903. V = y;
  6904. }
  6905. }
  6906. }
  6907. var n = f.alternate;
  6908. if (null !== n) {
  6909. var t = n.child;
  6910. if (null !== t) {
  6911. n.child = null;
  6912. do {
  6913. var J = t.sibling;
  6914. t.sibling = null;
  6915. t = J;
  6916. } while (null !== t);
  6917. }
  6918. }
  6919. V = f;
  6920. }
  6921. }
  6922. if (0 !== (f.subtreeFlags & 2064) && null !== g)
  6923. g.return = f, V = g;
  6924. else
  6925. b:
  6926. for (; null !== V; ) {
  6927. f = V;
  6928. if (0 !== (f.flags & 2048))
  6929. switch (f.tag) {
  6930. case 0:
  6931. case 11:
  6932. case 15:
  6933. Pj(9, f, f.return);
  6934. }
  6935. var x = f.sibling;
  6936. if (null !== x) {
  6937. x.return = f.return;
  6938. V = x;
  6939. break b;
  6940. }
  6941. V = f.return;
  6942. }
  6943. }
  6944. var w = a.current;
  6945. for (V = w; null !== V; ) {
  6946. g = V;
  6947. var u = g.child;
  6948. if (0 !== (g.subtreeFlags & 2064) && null !== u)
  6949. u.return = g, V = u;
  6950. else
  6951. b:
  6952. for (g = w; null !== V; ) {
  6953. h = V;
  6954. if (0 !== (h.flags & 2048))
  6955. try {
  6956. switch (h.tag) {
  6957. case 0:
  6958. case 11:
  6959. case 15:
  6960. Qj(9, h);
  6961. }
  6962. } catch (na) {
  6963. W(h, h.return, na);
  6964. }
  6965. if (h === g) {
  6966. V = null;
  6967. break b;
  6968. }
  6969. var F = h.sibling;
  6970. if (null !== F) {
  6971. F.return = h.return;
  6972. V = F;
  6973. break b;
  6974. }
  6975. V = h.return;
  6976. }
  6977. }
  6978. K = e;
  6979. jg();
  6980. if (lc && "function" === typeof lc.onPostCommitFiberRoot)
  6981. try {
  6982. lc.onPostCommitFiberRoot(kc, a);
  6983. } catch (na) {
  6984. }
  6985. d = true;
  6986. }
  6987. return d;
  6988. } finally {
  6989. C = c, ok.transition = b;
  6990. }
  6991. }
  6992. return false;
  6993. }
  6994. function Xk(a, b, c) {
  6995. b = Ji(c, b);
  6996. b = Ni(a, b, 1);
  6997. a = nh(a, b, 1);
  6998. b = R();
  6999. null !== a && (Ac(a, 1, b), Dk(a, b));
  7000. }
  7001. function W(a, b, c) {
  7002. if (3 === a.tag)
  7003. Xk(a, a, c);
  7004. else
  7005. for (; null !== b; ) {
  7006. if (3 === b.tag) {
  7007. Xk(b, a, c);
  7008. break;
  7009. } else if (1 === b.tag) {
  7010. var d = b.stateNode;
  7011. if ("function" === typeof b.type.getDerivedStateFromError || "function" === typeof d.componentDidCatch && (null === Ri || !Ri.has(d))) {
  7012. a = Ji(c, a);
  7013. a = Qi(b, a, 1);
  7014. b = nh(b, a, 1);
  7015. a = R();
  7016. null !== b && (Ac(b, 1, a), Dk(b, a));
  7017. break;
  7018. }
  7019. }
  7020. b = b.return;
  7021. }
  7022. }
  7023. function Ti(a, b, c) {
  7024. var d = a.pingCache;
  7025. null !== d && d.delete(b);
  7026. b = R();
  7027. a.pingedLanes |= a.suspendedLanes & c;
  7028. Q === a && (Z & c) === c && (4 === T || 3 === T && (Z & 130023424) === Z && 500 > B() - fk ? Kk(a, 0) : rk |= c);
  7029. Dk(a, b);
  7030. }
  7031. function Yk(a, b) {
  7032. 0 === b && (0 === (a.mode & 1) ? b = 1 : (b = sc, sc <<= 1, 0 === (sc & 130023424) && (sc = 4194304)));
  7033. var c = R();
  7034. a = ih(a, b);
  7035. null !== a && (Ac(a, b, c), Dk(a, c));
  7036. }
  7037. function uj(a) {
  7038. var b = a.memoizedState, c = 0;
  7039. null !== b && (c = b.retryLane);
  7040. Yk(a, c);
  7041. }
  7042. function bk(a, b) {
  7043. var c = 0;
  7044. switch (a.tag) {
  7045. case 13:
  7046. var d = a.stateNode;
  7047. var e = a.memoizedState;
  7048. null !== e && (c = e.retryLane);
  7049. break;
  7050. case 19:
  7051. d = a.stateNode;
  7052. break;
  7053. default:
  7054. throw Error(p(314));
  7055. }
  7056. null !== d && d.delete(b);
  7057. Yk(a, c);
  7058. }
  7059. var Vk;
  7060. Vk = function(a, b, c) {
  7061. if (null !== a)
  7062. if (a.memoizedProps !== b.pendingProps || Wf.current)
  7063. dh = true;
  7064. else {
  7065. if (0 === (a.lanes & c) && 0 === (b.flags & 128))
  7066. return dh = false, yj(a, b, c);
  7067. dh = 0 !== (a.flags & 131072) ? true : false;
  7068. }
  7069. else
  7070. dh = false, I && 0 !== (b.flags & 1048576) && ug(b, ng, b.index);
  7071. b.lanes = 0;
  7072. switch (b.tag) {
  7073. case 2:
  7074. var d = b.type;
  7075. ij(a, b);
  7076. a = b.pendingProps;
  7077. var e = Yf(b, H.current);
  7078. ch(b, c);
  7079. e = Nh(null, b, d, a, e, c);
  7080. var f = Sh();
  7081. b.flags |= 1;
  7082. "object" === typeof e && null !== e && "function" === typeof e.render && void 0 === e.$$typeof ? (b.tag = 1, b.memoizedState = null, b.updateQueue = null, Zf(d) ? (f = true, cg(b)) : f = false, b.memoizedState = null !== e.state && void 0 !== e.state ? e.state : null, kh(b), e.updater = Ei, b.stateNode = e, e._reactInternals = b, Ii(b, d, a, c), b = jj(null, b, d, true, f, c)) : (b.tag = 0, I && f && vg(b), Xi(null, b, e, c), b = b.child);
  7083. return b;
  7084. case 16:
  7085. d = b.elementType;
  7086. a: {
  7087. ij(a, b);
  7088. a = b.pendingProps;
  7089. e = d._init;
  7090. d = e(d._payload);
  7091. b.type = d;
  7092. e = b.tag = Zk(d);
  7093. a = Ci(d, a);
  7094. switch (e) {
  7095. case 0:
  7096. b = cj(null, b, d, a, c);
  7097. break a;
  7098. case 1:
  7099. b = hj(null, b, d, a, c);
  7100. break a;
  7101. case 11:
  7102. b = Yi(null, b, d, a, c);
  7103. break a;
  7104. case 14:
  7105. b = $i(null, b, d, Ci(d.type, a), c);
  7106. break a;
  7107. }
  7108. throw Error(p(
  7109. 306,
  7110. d,
  7111. ""
  7112. ));
  7113. }
  7114. return b;
  7115. case 0:
  7116. return d = b.type, e = b.pendingProps, e = b.elementType === d ? e : Ci(d, e), cj(a, b, d, e, c);
  7117. case 1:
  7118. return d = b.type, e = b.pendingProps, e = b.elementType === d ? e : Ci(d, e), hj(a, b, d, e, c);
  7119. case 3:
  7120. a: {
  7121. kj(b);
  7122. if (null === a)
  7123. throw Error(p(387));
  7124. d = b.pendingProps;
  7125. f = b.memoizedState;
  7126. e = f.element;
  7127. lh(a, b);
  7128. qh(b, d, null, c);
  7129. var g = b.memoizedState;
  7130. d = g.element;
  7131. if (f.isDehydrated)
  7132. if (f = { element: d, isDehydrated: false, cache: g.cache, pendingSuspenseBoundaries: g.pendingSuspenseBoundaries, transitions: g.transitions }, b.updateQueue.baseState = f, b.memoizedState = f, b.flags & 256) {
  7133. e = Ji(Error(p(423)), b);
  7134. b = lj(a, b, d, c, e);
  7135. break a;
  7136. } else if (d !== e) {
  7137. e = Ji(Error(p(424)), b);
  7138. b = lj(a, b, d, c, e);
  7139. break a;
  7140. } else
  7141. for (yg = Lf(b.stateNode.containerInfo.firstChild), xg = b, I = true, zg = null, c = Vg(b, null, d, c), b.child = c; c; )
  7142. c.flags = c.flags & -3 | 4096, c = c.sibling;
  7143. else {
  7144. Ig();
  7145. if (d === e) {
  7146. b = Zi(a, b, c);
  7147. break a;
  7148. }
  7149. Xi(a, b, d, c);
  7150. }
  7151. b = b.child;
  7152. }
  7153. return b;
  7154. case 5:
  7155. return Ah(b), null === a && Eg(b), d = b.type, e = b.pendingProps, f = null !== a ? a.memoizedProps : null, g = e.children, Ef(d, e) ? g = null : null !== f && Ef(d, f) && (b.flags |= 32), gj(a, b), Xi(a, b, g, c), b.child;
  7156. case 6:
  7157. return null === a && Eg(b), null;
  7158. case 13:
  7159. return oj(a, b, c);
  7160. case 4:
  7161. return yh(b, b.stateNode.containerInfo), d = b.pendingProps, null === a ? b.child = Ug(b, null, d, c) : Xi(a, b, d, c), b.child;
  7162. case 11:
  7163. return d = b.type, e = b.pendingProps, e = b.elementType === d ? e : Ci(d, e), Yi(a, b, d, e, c);
  7164. case 7:
  7165. return Xi(a, b, b.pendingProps, c), b.child;
  7166. case 8:
  7167. return Xi(a, b, b.pendingProps.children, c), b.child;
  7168. case 12:
  7169. return Xi(a, b, b.pendingProps.children, c), b.child;
  7170. case 10:
  7171. a: {
  7172. d = b.type._context;
  7173. e = b.pendingProps;
  7174. f = b.memoizedProps;
  7175. g = e.value;
  7176. G(Wg, d._currentValue);
  7177. d._currentValue = g;
  7178. if (null !== f)
  7179. if (He(f.value, g)) {
  7180. if (f.children === e.children && !Wf.current) {
  7181. b = Zi(a, b, c);
  7182. break a;
  7183. }
  7184. } else
  7185. for (f = b.child, null !== f && (f.return = b); null !== f; ) {
  7186. var h = f.dependencies;
  7187. if (null !== h) {
  7188. g = f.child;
  7189. for (var k = h.firstContext; null !== k; ) {
  7190. if (k.context === d) {
  7191. if (1 === f.tag) {
  7192. k = mh(-1, c & -c);
  7193. k.tag = 2;
  7194. var l = f.updateQueue;
  7195. if (null !== l) {
  7196. l = l.shared;
  7197. var m = l.pending;
  7198. null === m ? k.next = k : (k.next = m.next, m.next = k);
  7199. l.pending = k;
  7200. }
  7201. }
  7202. f.lanes |= c;
  7203. k = f.alternate;
  7204. null !== k && (k.lanes |= c);
  7205. bh(
  7206. f.return,
  7207. c,
  7208. b
  7209. );
  7210. h.lanes |= c;
  7211. break;
  7212. }
  7213. k = k.next;
  7214. }
  7215. } else if (10 === f.tag)
  7216. g = f.type === b.type ? null : f.child;
  7217. else if (18 === f.tag) {
  7218. g = f.return;
  7219. if (null === g)
  7220. throw Error(p(341));
  7221. g.lanes |= c;
  7222. h = g.alternate;
  7223. null !== h && (h.lanes |= c);
  7224. bh(g, c, b);
  7225. g = f.sibling;
  7226. } else
  7227. g = f.child;
  7228. if (null !== g)
  7229. g.return = f;
  7230. else
  7231. for (g = f; null !== g; ) {
  7232. if (g === b) {
  7233. g = null;
  7234. break;
  7235. }
  7236. f = g.sibling;
  7237. if (null !== f) {
  7238. f.return = g.return;
  7239. g = f;
  7240. break;
  7241. }
  7242. g = g.return;
  7243. }
  7244. f = g;
  7245. }
  7246. Xi(a, b, e.children, c);
  7247. b = b.child;
  7248. }
  7249. return b;
  7250. case 9:
  7251. return e = b.type, d = b.pendingProps.children, ch(b, c), e = eh(e), d = d(e), b.flags |= 1, Xi(a, b, d, c), b.child;
  7252. case 14:
  7253. return d = b.type, e = Ci(d, b.pendingProps), e = Ci(d.type, e), $i(a, b, d, e, c);
  7254. case 15:
  7255. return bj(a, b, b.type, b.pendingProps, c);
  7256. case 17:
  7257. return d = b.type, e = b.pendingProps, e = b.elementType === d ? e : Ci(d, e), ij(a, b), b.tag = 1, Zf(d) ? (a = true, cg(b)) : a = false, ch(b, c), Gi(b, d, e), Ii(b, d, e, c), jj(null, b, d, true, a, c);
  7258. case 19:
  7259. return xj(a, b, c);
  7260. case 22:
  7261. return dj(a, b, c);
  7262. }
  7263. throw Error(p(156, b.tag));
  7264. };
  7265. function Fk(a, b) {
  7266. return ac(a, b);
  7267. }
  7268. function $k(a, b, c, d) {
  7269. this.tag = a;
  7270. this.key = c;
  7271. this.sibling = this.child = this.return = this.stateNode = this.type = this.elementType = null;
  7272. this.index = 0;
  7273. this.ref = null;
  7274. this.pendingProps = b;
  7275. this.dependencies = this.memoizedState = this.updateQueue = this.memoizedProps = null;
  7276. this.mode = d;
  7277. this.subtreeFlags = this.flags = 0;
  7278. this.deletions = null;
  7279. this.childLanes = this.lanes = 0;
  7280. this.alternate = null;
  7281. }
  7282. function Bg(a, b, c, d) {
  7283. return new $k(a, b, c, d);
  7284. }
  7285. function aj(a) {
  7286. a = a.prototype;
  7287. return !(!a || !a.isReactComponent);
  7288. }
  7289. function Zk(a) {
  7290. if ("function" === typeof a)
  7291. return aj(a) ? 1 : 0;
  7292. if (void 0 !== a && null !== a) {
  7293. a = a.$$typeof;
  7294. if (a === Da)
  7295. return 11;
  7296. if (a === Ga)
  7297. return 14;
  7298. }
  7299. return 2;
  7300. }
  7301. function Pg(a, b) {
  7302. var c = a.alternate;
  7303. null === c ? (c = Bg(a.tag, b, a.key, a.mode), c.elementType = a.elementType, c.type = a.type, c.stateNode = a.stateNode, c.alternate = a, a.alternate = c) : (c.pendingProps = b, c.type = a.type, c.flags = 0, c.subtreeFlags = 0, c.deletions = null);
  7304. c.flags = a.flags & 14680064;
  7305. c.childLanes = a.childLanes;
  7306. c.lanes = a.lanes;
  7307. c.child = a.child;
  7308. c.memoizedProps = a.memoizedProps;
  7309. c.memoizedState = a.memoizedState;
  7310. c.updateQueue = a.updateQueue;
  7311. b = a.dependencies;
  7312. c.dependencies = null === b ? null : { lanes: b.lanes, firstContext: b.firstContext };
  7313. c.sibling = a.sibling;
  7314. c.index = a.index;
  7315. c.ref = a.ref;
  7316. return c;
  7317. }
  7318. function Rg(a, b, c, d, e, f) {
  7319. var g = 2;
  7320. d = a;
  7321. if ("function" === typeof a)
  7322. aj(a) && (g = 1);
  7323. else if ("string" === typeof a)
  7324. g = 5;
  7325. else
  7326. a:
  7327. switch (a) {
  7328. case ya:
  7329. return Tg(c.children, e, f, b);
  7330. case za:
  7331. g = 8;
  7332. e |= 8;
  7333. break;
  7334. case Aa:
  7335. return a = Bg(12, c, b, e | 2), a.elementType = Aa, a.lanes = f, a;
  7336. case Ea:
  7337. return a = Bg(13, c, b, e), a.elementType = Ea, a.lanes = f, a;
  7338. case Fa:
  7339. return a = Bg(19, c, b, e), a.elementType = Fa, a.lanes = f, a;
  7340. case Ia:
  7341. return pj(c, e, f, b);
  7342. default:
  7343. if ("object" === typeof a && null !== a)
  7344. switch (a.$$typeof) {
  7345. case Ba:
  7346. g = 10;
  7347. break a;
  7348. case Ca:
  7349. g = 9;
  7350. break a;
  7351. case Da:
  7352. g = 11;
  7353. break a;
  7354. case Ga:
  7355. g = 14;
  7356. break a;
  7357. case Ha:
  7358. g = 16;
  7359. d = null;
  7360. break a;
  7361. }
  7362. throw Error(p(130, null == a ? a : typeof a, ""));
  7363. }
  7364. b = Bg(g, c, b, e);
  7365. b.elementType = a;
  7366. b.type = d;
  7367. b.lanes = f;
  7368. return b;
  7369. }
  7370. function Tg(a, b, c, d) {
  7371. a = Bg(7, a, d, b);
  7372. a.lanes = c;
  7373. return a;
  7374. }
  7375. function pj(a, b, c, d) {
  7376. a = Bg(22, a, d, b);
  7377. a.elementType = Ia;
  7378. a.lanes = c;
  7379. a.stateNode = { isHidden: false };
  7380. return a;
  7381. }
  7382. function Qg(a, b, c) {
  7383. a = Bg(6, a, null, b);
  7384. a.lanes = c;
  7385. return a;
  7386. }
  7387. function Sg(a, b, c) {
  7388. b = Bg(4, null !== a.children ? a.children : [], a.key, b);
  7389. b.lanes = c;
  7390. b.stateNode = { containerInfo: a.containerInfo, pendingChildren: null, implementation: a.implementation };
  7391. return b;
  7392. }
  7393. function al(a, b, c, d, e) {
  7394. this.tag = b;
  7395. this.containerInfo = a;
  7396. this.finishedWork = this.pingCache = this.current = this.pendingChildren = null;
  7397. this.timeoutHandle = -1;
  7398. this.callbackNode = this.pendingContext = this.context = null;
  7399. this.callbackPriority = 0;
  7400. this.eventTimes = zc(0);
  7401. this.expirationTimes = zc(-1);
  7402. this.entangledLanes = this.finishedLanes = this.mutableReadLanes = this.expiredLanes = this.pingedLanes = this.suspendedLanes = this.pendingLanes = 0;
  7403. this.entanglements = zc(0);
  7404. this.identifierPrefix = d;
  7405. this.onRecoverableError = e;
  7406. this.mutableSourceEagerHydrationData = null;
  7407. }
  7408. function bl(a, b, c, d, e, f, g, h, k) {
  7409. a = new al(a, b, c, h, k);
  7410. 1 === b ? (b = 1, true === f && (b |= 8)) : b = 0;
  7411. f = Bg(3, null, null, b);
  7412. a.current = f;
  7413. f.stateNode = a;
  7414. f.memoizedState = { element: d, isDehydrated: c, cache: null, transitions: null, pendingSuspenseBoundaries: null };
  7415. kh(f);
  7416. return a;
  7417. }
  7418. function cl(a, b, c) {
  7419. var d = 3 < arguments.length && void 0 !== arguments[3] ? arguments[3] : null;
  7420. return { $$typeof: wa, key: null == d ? null : "" + d, children: a, containerInfo: b, implementation: c };
  7421. }
  7422. function dl(a) {
  7423. if (!a)
  7424. return Vf;
  7425. a = a._reactInternals;
  7426. a: {
  7427. if (Vb(a) !== a || 1 !== a.tag)
  7428. throw Error(p(170));
  7429. var b = a;
  7430. do {
  7431. switch (b.tag) {
  7432. case 3:
  7433. b = b.stateNode.context;
  7434. break a;
  7435. case 1:
  7436. if (Zf(b.type)) {
  7437. b = b.stateNode.__reactInternalMemoizedMergedChildContext;
  7438. break a;
  7439. }
  7440. }
  7441. b = b.return;
  7442. } while (null !== b);
  7443. throw Error(p(171));
  7444. }
  7445. if (1 === a.tag) {
  7446. var c = a.type;
  7447. if (Zf(c))
  7448. return bg(a, c, b);
  7449. }
  7450. return b;
  7451. }
  7452. function el(a, b, c, d, e, f, g, h, k) {
  7453. a = bl(c, d, true, a, e, f, g, h, k);
  7454. a.context = dl(null);
  7455. c = a.current;
  7456. d = R();
  7457. e = yi(c);
  7458. f = mh(d, e);
  7459. f.callback = void 0 !== b && null !== b ? b : null;
  7460. nh(c, f, e);
  7461. a.current.lanes = e;
  7462. Ac(a, e, d);
  7463. Dk(a, d);
  7464. return a;
  7465. }
  7466. function fl(a, b, c, d) {
  7467. var e = b.current, f = R(), g = yi(e);
  7468. c = dl(c);
  7469. null === b.context ? b.context = c : b.pendingContext = c;
  7470. b = mh(f, g);
  7471. b.payload = { element: a };
  7472. d = void 0 === d ? null : d;
  7473. null !== d && (b.callback = d);
  7474. a = nh(e, b, g);
  7475. null !== a && (gi(a, e, g, f), oh(a, e, g));
  7476. return g;
  7477. }
  7478. function gl(a) {
  7479. a = a.current;
  7480. if (!a.child)
  7481. return null;
  7482. switch (a.child.tag) {
  7483. case 5:
  7484. return a.child.stateNode;
  7485. default:
  7486. return a.child.stateNode;
  7487. }
  7488. }
  7489. function hl(a, b) {
  7490. a = a.memoizedState;
  7491. if (null !== a && null !== a.dehydrated) {
  7492. var c = a.retryLane;
  7493. a.retryLane = 0 !== c && c < b ? c : b;
  7494. }
  7495. }
  7496. function il(a, b) {
  7497. hl(a, b);
  7498. (a = a.alternate) && hl(a, b);
  7499. }
  7500. function jl() {
  7501. return null;
  7502. }
  7503. var kl = "function" === typeof reportError ? reportError : function(a) {
  7504. console.error(a);
  7505. };
  7506. function ll(a) {
  7507. this._internalRoot = a;
  7508. }
  7509. ml.prototype.render = ll.prototype.render = function(a) {
  7510. var b = this._internalRoot;
  7511. if (null === b)
  7512. throw Error(p(409));
  7513. fl(a, b, null, null);
  7514. };
  7515. ml.prototype.unmount = ll.prototype.unmount = function() {
  7516. var a = this._internalRoot;
  7517. if (null !== a) {
  7518. this._internalRoot = null;
  7519. var b = a.containerInfo;
  7520. Rk(function() {
  7521. fl(null, a, null, null);
  7522. });
  7523. b[uf] = null;
  7524. }
  7525. };
  7526. function ml(a) {
  7527. this._internalRoot = a;
  7528. }
  7529. ml.prototype.unstable_scheduleHydration = function(a) {
  7530. if (a) {
  7531. var b = Hc();
  7532. a = { blockedOn: null, target: a, priority: b };
  7533. for (var c = 0; c < Qc.length && 0 !== b && b < Qc[c].priority; c++)
  7534. ;
  7535. Qc.splice(c, 0, a);
  7536. 0 === c && Vc(a);
  7537. }
  7538. };
  7539. function nl(a) {
  7540. return !(!a || 1 !== a.nodeType && 9 !== a.nodeType && 11 !== a.nodeType);
  7541. }
  7542. function ol(a) {
  7543. return !(!a || 1 !== a.nodeType && 9 !== a.nodeType && 11 !== a.nodeType && (8 !== a.nodeType || " react-mount-point-unstable " !== a.nodeValue));
  7544. }
  7545. function pl() {
  7546. }
  7547. function ql(a, b, c, d, e) {
  7548. if (e) {
  7549. if ("function" === typeof d) {
  7550. var f = d;
  7551. d = function() {
  7552. var a2 = gl(g);
  7553. f.call(a2);
  7554. };
  7555. }
  7556. var g = el(b, d, a, 0, null, false, false, "", pl);
  7557. a._reactRootContainer = g;
  7558. a[uf] = g.current;
  7559. sf(8 === a.nodeType ? a.parentNode : a);
  7560. Rk();
  7561. return g;
  7562. }
  7563. for (; e = a.lastChild; )
  7564. a.removeChild(e);
  7565. if ("function" === typeof d) {
  7566. var h = d;
  7567. d = function() {
  7568. var a2 = gl(k);
  7569. h.call(a2);
  7570. };
  7571. }
  7572. var k = bl(a, 0, false, null, null, false, false, "", pl);
  7573. a._reactRootContainer = k;
  7574. a[uf] = k.current;
  7575. sf(8 === a.nodeType ? a.parentNode : a);
  7576. Rk(function() {
  7577. fl(b, k, c, d);
  7578. });
  7579. return k;
  7580. }
  7581. function rl(a, b, c, d, e) {
  7582. var f = c._reactRootContainer;
  7583. if (f) {
  7584. var g = f;
  7585. if ("function" === typeof e) {
  7586. var h = e;
  7587. e = function() {
  7588. var a2 = gl(g);
  7589. h.call(a2);
  7590. };
  7591. }
  7592. fl(b, g, a, e);
  7593. } else
  7594. g = ql(c, b, a, e, d);
  7595. return gl(g);
  7596. }
  7597. Ec = function(a) {
  7598. switch (a.tag) {
  7599. case 3:
  7600. var b = a.stateNode;
  7601. if (b.current.memoizedState.isDehydrated) {
  7602. var c = tc(b.pendingLanes);
  7603. 0 !== c && (Cc(b, c | 1), Dk(b, B()), 0 === (K & 6) && (Gj = B() + 500, jg()));
  7604. }
  7605. break;
  7606. case 13:
  7607. Rk(function() {
  7608. var b2 = ih(a, 1);
  7609. if (null !== b2) {
  7610. var c2 = R();
  7611. gi(b2, a, 1, c2);
  7612. }
  7613. }), il(a, 1);
  7614. }
  7615. };
  7616. Fc = function(a) {
  7617. if (13 === a.tag) {
  7618. var b = ih(a, 134217728);
  7619. if (null !== b) {
  7620. var c = R();
  7621. gi(b, a, 134217728, c);
  7622. }
  7623. il(a, 134217728);
  7624. }
  7625. };
  7626. Gc = function(a) {
  7627. if (13 === a.tag) {
  7628. var b = yi(a), c = ih(a, b);
  7629. if (null !== c) {
  7630. var d = R();
  7631. gi(c, a, b, d);
  7632. }
  7633. il(a, b);
  7634. }
  7635. };
  7636. Hc = function() {
  7637. return C;
  7638. };
  7639. Ic = function(a, b) {
  7640. var c = C;
  7641. try {
  7642. return C = a, b();
  7643. } finally {
  7644. C = c;
  7645. }
  7646. };
  7647. yb = function(a, b, c) {
  7648. switch (b) {
  7649. case "input":
  7650. bb(a, c);
  7651. b = c.name;
  7652. if ("radio" === c.type && null != b) {
  7653. for (c = a; c.parentNode; )
  7654. c = c.parentNode;
  7655. c = c.querySelectorAll("input[name=" + JSON.stringify("" + b) + '][type="radio"]');
  7656. for (b = 0; b < c.length; b++) {
  7657. var d = c[b];
  7658. if (d !== a && d.form === a.form) {
  7659. var e = Db(d);
  7660. if (!e)
  7661. throw Error(p(90));
  7662. Wa(d);
  7663. bb(d, e);
  7664. }
  7665. }
  7666. }
  7667. break;
  7668. case "textarea":
  7669. ib(a, c);
  7670. break;
  7671. case "select":
  7672. b = c.value, null != b && fb(a, !!c.multiple, b, false);
  7673. }
  7674. };
  7675. Gb = Qk;
  7676. Hb = Rk;
  7677. var sl = { usingClientEntryPoint: false, Events: [Cb, ue, Db, Eb, Fb, Qk] };
  7678. var tl = { findFiberByHostInstance: Wc, bundleType: 0, version: "18.3.1", rendererPackageName: "react-dom" };
  7679. var ul = { bundleType: tl.bundleType, version: tl.version, rendererPackageName: tl.rendererPackageName, rendererConfig: tl.rendererConfig, overrideHookState: null, overrideHookStateDeletePath: null, overrideHookStateRenamePath: null, overrideProps: null, overridePropsDeletePath: null, overridePropsRenamePath: null, setErrorHandler: null, setSuspenseHandler: null, scheduleUpdate: null, currentDispatcherRef: ua.ReactCurrentDispatcher, findHostInstanceByFiber: function(a) {
  7680. a = Zb(a);
  7681. return null === a ? null : a.stateNode;
  7682. }, findFiberByHostInstance: tl.findFiberByHostInstance || jl, findHostInstancesForRefresh: null, scheduleRefresh: null, scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, reconcilerVersion: "18.3.1-next-f1338f8080-20240426" };
  7683. if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
  7684. vl = __REACT_DEVTOOLS_GLOBAL_HOOK__;
  7685. if (!vl.isDisabled && vl.supportsFiber)
  7686. try {
  7687. kc = vl.inject(ul), lc = vl;
  7688. } catch (a) {
  7689. }
  7690. }
  7691. var vl;
  7692. exports2.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = sl;
  7693. exports2.createPortal = function(a, b) {
  7694. var c = 2 < arguments.length && void 0 !== arguments[2] ? arguments[2] : null;
  7695. if (!nl(b))
  7696. throw Error(p(200));
  7697. return cl(a, b, null, c);
  7698. };
  7699. exports2.createRoot = function(a, b) {
  7700. if (!nl(a))
  7701. throw Error(p(299));
  7702. var c = false, d = "", e = kl;
  7703. null !== b && void 0 !== b && (true === b.unstable_strictMode && (c = true), void 0 !== b.identifierPrefix && (d = b.identifierPrefix), void 0 !== b.onRecoverableError && (e = b.onRecoverableError));
  7704. b = bl(a, 1, false, null, null, c, false, d, e);
  7705. a[uf] = b.current;
  7706. sf(8 === a.nodeType ? a.parentNode : a);
  7707. return new ll(b);
  7708. };
  7709. exports2.findDOMNode = function(a) {
  7710. if (null == a)
  7711. return null;
  7712. if (1 === a.nodeType)
  7713. return a;
  7714. var b = a._reactInternals;
  7715. if (void 0 === b) {
  7716. if ("function" === typeof a.render)
  7717. throw Error(p(188));
  7718. a = Object.keys(a).join(",");
  7719. throw Error(p(268, a));
  7720. }
  7721. a = Zb(b);
  7722. a = null === a ? null : a.stateNode;
  7723. return a;
  7724. };
  7725. exports2.flushSync = function(a) {
  7726. return Rk(a);
  7727. };
  7728. exports2.hydrate = function(a, b, c) {
  7729. if (!ol(b))
  7730. throw Error(p(200));
  7731. return rl(null, a, b, true, c);
  7732. };
  7733. exports2.hydrateRoot = function(a, b, c) {
  7734. if (!nl(a))
  7735. throw Error(p(405));
  7736. var d = null != c && c.hydratedSources || null, e = false, f = "", g = kl;
  7737. null !== c && void 0 !== c && (true === c.unstable_strictMode && (e = true), void 0 !== c.identifierPrefix && (f = c.identifierPrefix), void 0 !== c.onRecoverableError && (g = c.onRecoverableError));
  7738. b = el(b, null, a, 1, null != c ? c : null, e, false, f, g);
  7739. a[uf] = b.current;
  7740. sf(a);
  7741. if (d)
  7742. for (a = 0; a < d.length; a++)
  7743. c = d[a], e = c._getVersion, e = e(c._source), null == b.mutableSourceEagerHydrationData ? b.mutableSourceEagerHydrationData = [c, e] : b.mutableSourceEagerHydrationData.push(
  7744. c,
  7745. e
  7746. );
  7747. return new ml(b);
  7748. };
  7749. exports2.render = function(a, b, c) {
  7750. if (!ol(b))
  7751. throw Error(p(200));
  7752. return rl(null, a, b, false, c);
  7753. };
  7754. exports2.unmountComponentAtNode = function(a) {
  7755. if (!ol(a))
  7756. throw Error(p(40));
  7757. return a._reactRootContainer ? (Rk(function() {
  7758. rl(null, null, a, false, function() {
  7759. a._reactRootContainer = null;
  7760. a[uf] = null;
  7761. });
  7762. }), true) : false;
  7763. };
  7764. exports2.unstable_batchedUpdates = Qk;
  7765. exports2.unstable_renderSubtreeIntoContainer = function(a, b, c, d) {
  7766. if (!ol(c))
  7767. throw Error(p(200));
  7768. if (null == a || void 0 === a._reactInternals)
  7769. throw Error(p(38));
  7770. return rl(a, b, c, false, d);
  7771. };
  7772. exports2.version = "18.3.1-next-f1338f8080-20240426";
  7773. }
  7774. });
  7775.  
  7776. // node_modules/react-dom/index.js
  7777. var require_react_dom = __commonJS({
  7778. "node_modules/react-dom/index.js"(exports2, module2) {
  7779. "use strict";
  7780. function checkDCE() {
  7781. if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === "undefined" || typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE !== "function") {
  7782. return;
  7783. }
  7784. if (false) {
  7785. throw new Error("^_^");
  7786. }
  7787. try {
  7788. __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE);
  7789. } catch (err) {
  7790. console.error(err);
  7791. }
  7792. }
  7793. if (true) {
  7794. checkDCE();
  7795. module2.exports = require_react_dom_production_min();
  7796. } else {
  7797. module2.exports = null;
  7798. }
  7799. }
  7800. });
  7801.  
  7802. // node_modules/react-dom/client.js
  7803. var require_client = __commonJS({
  7804. "node_modules/react-dom/client.js"(exports2) {
  7805. "use strict";
  7806. var m = require_react_dom();
  7807. if (true) {
  7808. exports2.createRoot = m.createRoot;
  7809. exports2.hydrateRoot = m.hydrateRoot;
  7810. } else {
  7811. i = m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
  7812. exports2.createRoot = function(c, o) {
  7813. i.usingClientEntryPoint = true;
  7814. try {
  7815. return m.createRoot(c, o);
  7816. } finally {
  7817. i.usingClientEntryPoint = false;
  7818. }
  7819. };
  7820. exports2.hydrateRoot = function(c, h, o) {
  7821. i.usingClientEntryPoint = true;
  7822. try {
  7823. return m.hydrateRoot(c, h, o);
  7824. } finally {
  7825. i.usingClientEntryPoint = false;
  7826. }
  7827. };
  7828. }
  7829. var i;
  7830. }
  7831. });
  7832.  
  7833. // src/components/optionScreen/optionScreen.css
  7834. var require_optionScreen = __commonJS({
  7835. "src/components/optionScreen/optionScreen.css"(exports2, module2) {
  7836. (function() {
  7837. if (!document.getElementById("92daa1f2bc7a1b638ce819e4219a0994e6a94c188cf92266957bc1eab534f17e")) {
  7838. var e = document.createElement("style");
  7839. e.id = "92daa1f2bc7a1b638ce819e4219a0994e6a94c188cf92266957bc1eab534f17e";
  7840. e.textContent = `.toggle_button_821ddf5cf61cccfeff44488185d98c06_1{position:fixed;bottom:94px;right:28px;background-color:rgb(0, 150, 250);width:50px;height:50px;border-radius:50px;cursor:pointer;display:flex;justify-content:center;align-items:center;transition:background-color .2s ease 0s,color .2s ease 0s}.tagFilter_gray_text_821ddf5cf61cccfeff44488185d98c06_1{color:var(--charcoal-text3)}.tagFilter_input_821ddf5cf61cccfeff44488185d98c06_1{height:40px;border-radius:5px;border:0;padding:1px 4px;color:var(--charcoal-text1);background-color:var(--charcoal-transparent-hover)}.toggle_button_821ddf5cf61cccfeff44488185d98c06_1:hover{background-color:rgb(31, 163, 251)}.toggle_button_821ddf5cf61cccfeff44488185d98c06_1>svg{fill:rgb(245, 245, 245)}.option_panel_container_821ddf5cf61cccfeff44488185d98c06_1{position:fixed;bottom:34px;right:88px;background-color:var(--charcoal-surface9);width:600px;height:400px;border-radius:10px;overflow:hidden;border:solid 1px rgb(197, 197, 197);display:flex}.option_panel_primary_821ddf5cf61cccfeff44488185d98c06_1{width:50%}.option_panel_secondry_821ddf5cf61cccfeff44488185d98c06_1{width:50%;overflow-y:scroll}.option_panel_secondry_821ddf5cf61cccfeff44488185d98c06_1::-webkit-scrollbar{background:transparent;width:16px}.option_panel_secondry_821ddf5cf61cccfeff44488185d98c06_1::-webkit-scrollbar-thumb{height:56px;border-radius:8px;border:4px solid transparent;background-clip:content-box;background-color:var(--charcoal-transparent-hover)}.option_panel_bottom_821ddf5cf61cccfeff44488185d98c06_1{height:30px;position:absolute;bottom:0;display:flex;align-items:center;padding:0 10px}.option_panel_bottom_821ddf5cf61cccfeff44488185d98c06_1>span{color:var(--charcoal-text2)}.option_panel_content_821ddf5cf61cccfeff44488185d98c06_1{padding:10px}.blocktags_base_821ddf5cf61cccfeff44488185d98c06_1{width:100%;height:300px;border-radius:5px;background-color:var(--charcoal-transparent-hover);margin-bottom:10px;overflow-y:scroll;overscroll-behavior:contain}.blocktags_base_821ddf5cf61cccfeff44488185d98c06_1::-webkit-scrollbar{background:transparent;width:16px}.blocktags_base_821ddf5cf61cccfeff44488185d98c06_1::-webkit-scrollbar-thumb{height:56px;border-radius:8px;border:4px solid transparent;background-clip:content-box;background-color:var(--charcoal-surface9)}.blocktags_input_821ddf5cf61cccfeff44488185d98c06_1{width:calc(100% - 8px)}.block_tag_821ddf5cf61cccfeff44488185d98c06_1{padding:15px 8px;display:flex;align-items:center;gap:0 8px}.block_tag_delete_821ddf5cf61cccfeff44488185d98c06_1{background-color:transparent;border:none;display:flex;justify-content:center;align-items:center;cursor:pointer}.block_tag_delete_821ddf5cf61cccfeff44488185d98c06_1>svg{fill:var(--charcoal-text1)}.option_panel_settings_821ddf5cf61cccfeff44488185d98c06_1{list-style:none;margin:0;padding:0}.option_panel_setting_821ddf5cf61cccfeff44488185d98c06_1{padding:5px 5px;height:40px;display:flex;align-items:center;justify-content:space-between}.option_panel_select_821ddf5cf61cccfeff44488185d98c06_1{appearance:none;background-color:var(--charcoal-transparent-hover);color:var(--charcoal-text1);padding:10px 10px;border-radius:5px}.option_panel_select_821ddf5cf61cccfeff44488185d98c06_1>option{color:black}.bookmark_input_container_821ddf5cf61cccfeff44488185d98c06_1{display:flex;gap:0 10px;align-items:center;justify-content:flex-end}.bookmark_input_form_821ddf5cf61cccfeff44488185d98c06_1{width:60%}`;
  7841. document.head.appendChild(e);
  7842. }
  7843. })();
  7844. module2.exports = JSON.parse('{"toggle_button":"toggle_button_821ddf5cf61cccfeff44488185d98c06_1","tagFilter_gray_text":"tagFilter_gray_text_821ddf5cf61cccfeff44488185d98c06_1","tagFilter_input":"tagFilter_input_821ddf5cf61cccfeff44488185d98c06_1","option_panel_container":"option_panel_container_821ddf5cf61cccfeff44488185d98c06_1","option_panel_primary":"option_panel_primary_821ddf5cf61cccfeff44488185d98c06_1","option_panel_secondry":"option_panel_secondry_821ddf5cf61cccfeff44488185d98c06_1","option_panel_bottom":"option_panel_bottom_821ddf5cf61cccfeff44488185d98c06_1","option_panel_content":"option_panel_content_821ddf5cf61cccfeff44488185d98c06_1","blocktags_base":"blocktags_base_821ddf5cf61cccfeff44488185d98c06_1","blocktags_input":"blocktags_input_821ddf5cf61cccfeff44488185d98c06_1","block_tag":"block_tag_821ddf5cf61cccfeff44488185d98c06_1","block_tag_delete":"block_tag_delete_821ddf5cf61cccfeff44488185d98c06_1","option_panel_settings":"option_panel_settings_821ddf5cf61cccfeff44488185d98c06_1","option_panel_setting":"option_panel_setting_821ddf5cf61cccfeff44488185d98c06_1","option_panel_select":"option_panel_select_821ddf5cf61cccfeff44488185d98c06_1","bookmark_input_container":"bookmark_input_container_821ddf5cf61cccfeff44488185d98c06_1","bookmark_input_form":"bookmark_input_form_821ddf5cf61cccfeff44488185d98c06_1"}');
  7845. }
  7846. });
  7847.  
  7848. // src/components/tags/tags.css
  7849. var require_tags = __commonJS({
  7850. "src/components/tags/tags.css"(exports2, module2) {
  7851. (function() {
  7852. if (!document.getElementById("4f9bf952975ea5205a7145e76f1195e5a4f3efa3d7e4a004513b634d5b94a49e")) {
  7853. var e = document.createElement("style");
  7854. e.id = "4f9bf952975ea5205a7145e76f1195e5a4f3efa3d7e4a004513b634d5b94a49e";
  7855. e.textContent = `.tags_container_ul_1ff551f6f0ffbdefbc4ea3b753ab392e_1{list-style:none;margin:0px;padding:0px;display:flex;flex-wrap:wrap}.illust_item_content_1ff551f6f0ffbdefbc4ea3b753ab392e_1{width:184px}.illust_item_illust_1ff551f6f0ffbdefbc4ea3b753ab392e_1{position:relative;-webkit-mask-image:-webkit-radial-gradient(center, white, black);border-radius:8px;overflow:hidden}.illust_item_illust_inner_1ff551f6f0ffbdefbc4ea3b753ab392e_1{position:relative;z-index:0;width:184px;height:184px}.illust_item_link_1ff551f6f0ffbdefbc4ea3b753ab392e_1{text-decoration:none;transition:ease opacity 250ms}.illust_item_link_1ff551f6f0ffbdefbc4ea3b753ab392e_1:hover{opacity:.7}.illust_item_illust_img_outer_1ff551f6f0ffbdefbc4ea3b753ab392e_1{position:relative;display:flex;-webkit-box-align:center;align-items:center;-webkit-box-pack:center;justify-content:center;width:100%;height:100%}.illust_item_illust_img_outer_1ff551f6f0ffbdefbc4ea3b753ab392e_1::before{content:"";position:absolute;display:block;top:0px;left:0px;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.02);border-radius:4px}.illust_item_illust_img_1ff551f6f0ffbdefbc4ea3b753ab392e_1{width:100%;height:100%;border-radius:4px;background-color:rgb(51, 51, 51);transition:opacity .2s ease 0s;object-fit:cover;object-position:center center}.illust_item_like_outer_1ff551f6f0ffbdefbc4ea3b753ab392e_1{position:absolute;bottom:0px;right:0px;height:32px;display:flex;-webkit-box-pack:end;justify-content:flex-end}.illust_item_likebtn_1ff551f6f0ffbdefbc4ea3b753ab392e_1{display:block;box-sizing:content-box;padding:0px;color:inherit;background:none;border:none;line-height:1;height:32px;cursor:pointer}.illust_item_likebtn_svg_1ff551f6f0ffbdefbc4ea3b753ab392e_1{box-sizing:border-box;line-height:0;font-size:0px;vertical-align:top;transition:color .2s ease 0s,fill .2s ease 0s;color:rgb(31, 31, 31);fill:currentcolor}.illust_item_likebtn_svg_inner_1ff551f6f0ffbdefbc4ea3b753ab392e_1{transition:fill .2s ease 0s;fill:rgb(245, 245, 245)}.illust_item_likebtn_svg_liked_1ff551f6f0ffbdefbc4ea3b753ab392e_1,.illust_item_likebtn_svg_inner_liked_1ff551f6f0ffbdefbc4ea3b753ab392e_1{fill:rgb(255, 64, 96) !important}.illust_about_1ff551f6f0ffbdefbc4ea3b753ab392e_1{display:flex;margin-top:4px}.illust_title_link_1ff551f6f0ffbdefbc4ea3b753ab392e_1{display:inline;max-width:100%;overflow:hidden;text-decoration:none;text-overflow:ellipsis;white-space:nowrap;line-height:22px;font-size:14px;font-weight:bold;transition:color .2s ease 0s}.illust_author_icon_outer_1ff551f6f0ffbdefbc4ea3b753ab392e_1{margin-right:4px}.illust_author_icon_1ff551f6f0ffbdefbc4ea3b753ab392e_1{display:flex;border-radius:50%;flex:0 0 auto;overflow:hidden;width:24px;height:24px;position:relative}.illust_author_link_1ff551f6f0ffbdefbc4ea3b753ab392e_1{display:block;min-width:0px;line-height:22px;font-size:14px;text-decoration:none;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.not_found_container_1ff551f6f0ffbdefbc4ea3b753ab392e_1{display:flex;flex-flow:column;-webkit-box-align:center;align-items:center;-webkit-box-pack:center;justify-content:center;height:408px;width:100%}.not_found_text_1ff551f6f0ffbdefbc4ea3b753ab392e_1{font-weight:bold;font-size:20px;line-height:28px;color:rgb(92, 92, 92)}.not_found_text_mini_1ff551f6f0ffbdefbc4ea3b753ab392e_1{font-weight:bold;font-size:14px;line-height:28px;color:rgb(92, 92, 92)}.not_found_icon_1ff551f6f0ffbdefbc4ea3b753ab392e_1{margin-bottom:12px}.not_found_icon_svg_1ff551f6f0ffbdefbc4ea3b753ab392e_1{stroke:none;fill:rgb(92, 92, 92);width:72px;height:72px;line-height:0;font-size:0px;vertical-align:middle}.top_container_1ff551f6f0ffbdefbc4ea3b753ab392e_1{position:absolute;top:0px;left:0px;right:0px;box-sizing:border-box;display:flex;align-items:flex-start;padding:4px 4px 0px;pointer-events:none}.sensitive_1ff551f6f0ffbdefbc4ea3b753ab392e_1{display:flex;align-items:flex-start;flex-flow:row wrap}.sensitive_inner_1ff551f6f0ffbdefbc4ea3b753ab392e_1{margin-right:2px}.sensitive_content_1ff551f6f0ffbdefbc4ea3b753ab392e_1{padding:0px 6px;border-radius:3px;color:rgb(245, 245, 245);background:rgb(255, 64, 96);font-weight:bold;font-size:10px;line-height:16px;user-select:none}.pageCount_1ff551f6f0ffbdefbc4ea3b753ab392e_1{margin-left:auto}.pageCountContainer_1ff551f6f0ffbdefbc4ea3b753ab392e_1{display:flex;-webkit-box-pack:center;justify-content:center;-webkit-box-align:center;align-items:center;flex:0 0 auto;box-sizing:border-box;height:20px;min-width:20px;color:rgb(255, 255, 255);font-weight:bold;padding:0px 6px;background:rgba(0, 0, 0, 0.32);border-radius:10px;font-size:10px;line-height:10px}.bookiconOuter_1ff551f6f0ffbdefbc4ea3b753ab392e_1{margin-right:2px}.bookiconInner_1ff551f6f0ffbdefbc4ea3b753ab392e_1{display:inline-flex;vertical-align:top;-webkit-box-align:center;align-items:center;height:10px}.bookicon_1ff551f6f0ffbdefbc4ea3b753ab392e_1{stroke:none;fill:currentcolor;width:9px;line-height:0;font-size:0px;vertical-align:middle}@supports(display: grid){.tags_container_ul_1ff551f6f0ffbdefbc4ea3b753ab392e_1{display:grid;grid-template-columns:repeat(6, 184px);gap:24px}.illust_item_il_1ff551f6f0ffbdefbc4ea3b753ab392e_1.illust_item_il_1ff551f6f0ffbdefbc4ea3b753ab392e_1.illust_item_il_1ff551f6f0ffbdefbc4ea3b753ab392e_1{margin:0px}@media(max-width: 1368px){.tags_container_ul_1ff551f6f0ffbdefbc4ea3b753ab392e_1{grid-template-columns:repeat(5, 184px)}}}.ugoira_svg_1ff551f6f0ffbdefbc4ea3b753ab392e_1{position:absolute;stroke:none;line-height:0;font-size:0px;vertical-align:middle}.ugoira_inner_1ff551f6f0ffbdefbc4ea3b753ab392e_1{stroke:none;line-height:0;font-size:0px}`;
  7856. document.head.appendChild(e);
  7857. }
  7858. })();
  7859. module2.exports = JSON.parse('{"tags_container_ul":"tags_container_ul_1ff551f6f0ffbdefbc4ea3b753ab392e_1","illust_item_content":"illust_item_content_1ff551f6f0ffbdefbc4ea3b753ab392e_1","illust_item_illust":"illust_item_illust_1ff551f6f0ffbdefbc4ea3b753ab392e_1","illust_item_illust_inner":"illust_item_illust_inner_1ff551f6f0ffbdefbc4ea3b753ab392e_1","illust_item_link":"illust_item_link_1ff551f6f0ffbdefbc4ea3b753ab392e_1","illust_item_illust_img_outer":"illust_item_illust_img_outer_1ff551f6f0ffbdefbc4ea3b753ab392e_1","illust_item_illust_img":"illust_item_illust_img_1ff551f6f0ffbdefbc4ea3b753ab392e_1","illust_item_like_outer":"illust_item_like_outer_1ff551f6f0ffbdefbc4ea3b753ab392e_1","illust_item_likebtn":"illust_item_likebtn_1ff551f6f0ffbdefbc4ea3b753ab392e_1","illust_item_likebtn_svg":"illust_item_likebtn_svg_1ff551f6f0ffbdefbc4ea3b753ab392e_1","illust_item_likebtn_svg_inner":"illust_item_likebtn_svg_inner_1ff551f6f0ffbdefbc4ea3b753ab392e_1","illust_item_likebtn_svg_liked":"illust_item_likebtn_svg_liked_1ff551f6f0ffbdefbc4ea3b753ab392e_1","illust_item_likebtn_svg_inner_liked":"illust_item_likebtn_svg_inner_liked_1ff551f6f0ffbdefbc4ea3b753ab392e_1","illust_about":"illust_about_1ff551f6f0ffbdefbc4ea3b753ab392e_1","illust_title_link":"illust_title_link_1ff551f6f0ffbdefbc4ea3b753ab392e_1","illust_author_icon_outer":"illust_author_icon_outer_1ff551f6f0ffbdefbc4ea3b753ab392e_1","illust_author_icon":"illust_author_icon_1ff551f6f0ffbdefbc4ea3b753ab392e_1","illust_author_link":"illust_author_link_1ff551f6f0ffbdefbc4ea3b753ab392e_1","not_found_container":"not_found_container_1ff551f6f0ffbdefbc4ea3b753ab392e_1","not_found_text":"not_found_text_1ff551f6f0ffbdefbc4ea3b753ab392e_1","not_found_text_mini":"not_found_text_mini_1ff551f6f0ffbdefbc4ea3b753ab392e_1","not_found_icon":"not_found_icon_1ff551f6f0ffbdefbc4ea3b753ab392e_1","not_found_icon_svg":"not_found_icon_svg_1ff551f6f0ffbdefbc4ea3b753ab392e_1","top_container":"top_container_1ff551f6f0ffbdefbc4ea3b753ab392e_1","sensitive":"sensitive_1ff551f6f0ffbdefbc4ea3b753ab392e_1","sensitive_inner":"sensitive_inner_1ff551f6f0ffbdefbc4ea3b753ab392e_1","sensitive_content":"sensitive_content_1ff551f6f0ffbdefbc4ea3b753ab392e_1","pageCount":"pageCount_1ff551f6f0ffbdefbc4ea3b753ab392e_1","pageCountContainer":"pageCountContainer_1ff551f6f0ffbdefbc4ea3b753ab392e_1","bookiconOuter":"bookiconOuter_1ff551f6f0ffbdefbc4ea3b753ab392e_1","bookiconInner":"bookiconInner_1ff551f6f0ffbdefbc4ea3b753ab392e_1","bookicon":"bookicon_1ff551f6f0ffbdefbc4ea3b753ab392e_1","illust_item_il":"illust_item_il_1ff551f6f0ffbdefbc4ea3b753ab392e_1","ugoira_svg":"ugoira_svg_1ff551f6f0ffbdefbc4ea3b753ab392e_1","ugoira_inner":"ugoira_inner_1ff551f6f0ffbdefbc4ea3b753ab392e_1"}');
  7860. }
  7861. });
  7862.  
  7863. // src/addingOptionScreen.tsx
  7864. var import_react11 = __toESM(require_react());
  7865. var import_client = __toESM(require_client());
  7866.  
  7867. // src/components/optionScreen/OptionScreen.tsx
  7868. var import_react10 = __toESM(require_react());
  7869.  
  7870. // src/components/optionScreen/ToggleButton.tsx
  7871. var import_react = __toESM(require_react());
  7872. var import_optionScreen = __toESM(require_optionScreen());
  7873. var ToggleButton = (props) => {
  7874. return /* @__PURE__ */ import_react.default.createElement("div", { className: import_optionScreen.default.toggle_button, ...props }, /* @__PURE__ */ import_react.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", height: "24", width: "24" }, /* @__PURE__ */ import_react.default.createElement("path", { d: "m9.25 22-.4-3.2q-.325-.125-.612-.3-.288-.175-.563-.375L4.7 19.375l-2.75-4.75 2.575-1.95Q4.5 12.5 4.5 12.337v-.675q0-.162.025-.337L1.95 9.375l2.75-4.75 2.975 1.25q.275-.2.575-.375.3-.175.6-.3l.4-3.2h5.5l.4 3.2q.325.125.613.3.287.175.562.375l2.975-1.25 2.75 4.75-2.575 1.95q.025.175.025.337v.675q0 .163-.05.338l2.575 1.95-2.75 4.75-2.95-1.25q-.275.2-.575.375-.3.175-.6.3l-.4 3.2Zm2.8-6.5q1.45 0 2.475-1.025Q15.55 13.45 15.55 12q0-1.45-1.025-2.475Q13.5 8.5 12.05 8.5q-1.475 0-2.488 1.025Q8.55 10.55 8.55 12q0 1.45 1.012 2.475Q10.575 15.5 12.05 15.5Zm0-2q-.625 0-1.062-.438-.438-.437-.438-1.062t.438-1.062q.437-.438 1.062-.438t1.063.438q.437.437.437 1.062t-.437 1.062q-.438.438-1.063.438ZM12 12Zm-1 8h1.975l.35-2.65q.775-.2 1.438-.588.662-.387 1.212-.937l2.475 1.025.975-1.7-2.15-1.625q.125-.35.175-.738.05-.387.05-.787t-.05-.788q-.05-.387-.175-.737l2.15-1.625-.975-1.7-2.475 1.05q-.55-.575-1.212-.963-.663-.387-1.438-.587L13 4h-1.975l-.35 2.65q-.775.2-1.437.587-.663.388-1.213.938L5.55 7.15l-.975 1.7 2.15 1.6q-.125.375-.175.75-.05.375-.05.8 0 .4.05.775t.175.75l-2.15 1.625.975 1.7 2.475-1.05q.55.575 1.213.962.662.388 1.437.588Z" })));
  7875. };
  7876. var ToggleButton_default = ToggleButton;
  7877.  
  7878. // src/components/optionScreen/OptionPanel.tsx
  7879. var import_react9 = __toESM(require_react());
  7880. var import_optionScreen9 = __toESM(require_optionScreen());
  7881.  
  7882. // src/components/optionScreen/Primary.tsx
  7883. var import_react3 = __toESM(require_react());
  7884. var import_optionScreen3 = __toESM(require_optionScreen());
  7885.  
  7886. // package.json
  7887. var package_default = {
  7888. name: "pixiv-automatic-exclusion-search",
  7889. license: "MIT",
  7890. version: "0.3.2",
  7891. type: "commonjs",
  7892. devDependencies: {
  7893. "@swc/core": "^1.3.36",
  7894. "@types/chrome": "^0.0.217",
  7895. "@types/express": "^4.17.17",
  7896. "@types/fs-extra": "^11.0.1",
  7897. "@types/glob": "^8.0.1",
  7898. "@types/node": "^18.14.0",
  7899. "@types/react": "^18.0.28",
  7900. "@types/sha256": "^0.2.0",
  7901. "@types/ws": "^8.5.4",
  7902. esbuild: "^0.17.10",
  7903. "esbuild-plugin-eslint": "^0.1.1",
  7904. "esbuild-register": "^3.4.2",
  7905. eslint: "^8.31.0",
  7906. "eslint-config-prettier": "^8.6.0",
  7907. "eslint-plugin-react": "^7.31.11",
  7908. "eslint-plugin-react-hooks": "^4.6.0",
  7909. express: "^4.18.2",
  7910. "fs-extra": "^11.1.0",
  7911. glob: "^8.1.0",
  7912. "node-css-require": "^0.4.6",
  7913. sass: "^1.58.3",
  7914. sha256: "^0.2.0",
  7915. "ts-extension-builder": "^0.2.7",
  7916. typescript: "^4.9.5",
  7917. ws: "^8.12.1"
  7918. },
  7919. dependencies: {
  7920. "react-dom": "^18.2.0",
  7921. react: "^18.2.0"
  7922. },
  7923. scripts: {
  7924. "build:userscript": "npx ts-extension-builder build type=userscript",
  7925. "build:extension": "npx ts-extension-builder build type=extension",
  7926. build: "npm run build:userscript && npm run build:extension",
  7927. dev: "npx ts-extension-builder dev"
  7928. }
  7929. };
  7930.  
  7931. // src/components/optionScreen/BlockTags.tsx
  7932. var import_react2 = __toESM(require_react());
  7933. var import_optionScreen2 = __toESM(require_optionScreen());
  7934.  
  7935. // src/utils/configOperator.ts
  7936. var configExist = () => {
  7937. const defaultValue = {
  7938. blocklist: [],
  7939. block: true,
  7940. users: false,
  7941. ugoiraBlock: false,
  7942. r18gBlock: false
  7943. };
  7944. const configStr = localStorage.getItem("pixiv-tag-filter-config");
  7945. if (configStr === null) {
  7946. localStorage.setItem(
  7947. "pixiv-tag-filter-config",
  7948. JSON.stringify(defaultValue)
  7949. );
  7950. } else {
  7951. const config = JSON.parse(configStr);
  7952. Object.keys(defaultValue).forEach((key) => {
  7953. if (config[key] === void 0) {
  7954. localStorage.setItem(
  7955. "pixiv-tag-filter-config",
  7956. JSON.stringify({ ...config, [key]: defaultValue[key] })
  7957. );
  7958. }
  7959. });
  7960. }
  7961. };
  7962. var get = () => {
  7963. configExist();
  7964. const config = JSON.parse(
  7965. localStorage.getItem("pixiv-tag-filter-config")
  7966. );
  7967. return config;
  7968. };
  7969. function set(key, value) {
  7970. configExist();
  7971. const config = get();
  7972. config[key] = value;
  7973. localStorage.setItem("pixiv-tag-filter-config", JSON.stringify(config));
  7974. }
  7975.  
  7976. // src/language.json
  7977. var language_default = {
  7978. 'Filter by "users" tag': {
  7979. ja: "users\u30BF\u30B0\u3067\u7D5E\u308A\u8FBC\u307F",
  7980. zh: '\u6309"users"\u6807\u7B7E\u7B5B\u9009'
  7981. },
  7982. "Enable Illustration Filtering": {
  7983. ja: "\u7D5E\u308A\u8FBC\u307F\u3092\u6709\u52B9\u306B\u3059\u308B",
  7984. zh: "\u542F\u7528\u63D2\u56FE\u8FC7\u6EE4"
  7985. },
  7986. "Enter the tags name you want to exclude": {
  7987. ja: "\u7D5E\u308A\u8FBC\u3080\u30BF\u30B0\u3092Enter\u3067\u8FFD\u52A0",
  7988. zh: "\u8F93\u5165\u4F60\u60F3\u6392\u9664\u7684\u6807\u7B7E\u540D\u79F0"
  7989. },
  7990. "There are no Illusts": {
  7991. ja: "\u4F5C\u54C1\u304C\u3042\u308A\u307E\u305B\u3093",
  7992. zh: "\u6CA1\u6709\u63D2\u56FE"
  7993. },
  7994. "All illustrations on this page have been filtered": {
  7995. ja: "\u3053\u306E\u30DA\u30FC\u30B8\u306E\u30A4\u30E9\u30B9\u30C8\u304C\u3059\u3079\u3066\u30D5\u30A3\u30EB\u30BF\u30EA\u30F3\u30B0\u3055\u308C\u307E\u3057\u305F\u3002",
  7996. zh: "\u672C\u9875\u6240\u6709\u63D2\u56FE\u5747\u7ECF\u8FC7\u8FC7\u6EE4"
  7997. },
  7998. "Please try moving pages or changing your search criteria": {
  7999. ja: "\u30DA\u30FC\u30B8\u306E\u79FB\u52D5\u304B\u3001\u7D5E\u308A\u8FBC\u307F\u6761\u4EF6\u306E\u5909\u66F4\u3092\u304A\u8A66\u3057\u304F\u3060\u3055\u3044\u3002",
  8000. zh: "\u8BF7\u5C1D\u8BD5\u79FB\u52A8\u9875\u9762\u6216\u6539\u53D8\u60A8\u7684\u641C\u7D22\u6807\u51C6"
  8001. },
  8002. "Filter Ugoira": {
  8003. ja: "\u3046\u3054\u30A4\u30E9\u3092\u30D5\u30A3\u30EB\u30BF\u30EA\u30F3\u30B0\u3059\u308B",
  8004. zh: "\u8FC7\u6EE4\u52A8\u56FE"
  8005. },
  8006. "Filter R-18G": {
  8007. ja: "R-18G\u3092\u30D5\u30A3\u30EB\u30BF\u30EA\u30F3\u30B0\u3059\u308B",
  8008. zh: "\u8FC7\u6EE4R-18G"
  8009. },
  8010. "by Pixiv tag filter": {
  8011. ja: "by Pixiv \u81EA\u52D5\u3067\u9664\u5916\u691C\u7D22",
  8012. zh: "by Pixiv \u81EA\u52A8\u6392\u9664\u641C\u7D22"
  8013. }
  8014. };
  8015.  
  8016. // src/utils/translate.ts
  8017. var translate = (text) => {
  8018. const lang = navigator.language;
  8019. if (language_default[text] && language_default[text][lang]) {
  8020. return language_default[text][lang];
  8021. } else {
  8022. return text;
  8023. }
  8024. };
  8025.  
  8026. // src/components/optionScreen/BlockTags.tsx
  8027. var BlockTags = () => {
  8028. const [tags2, setTags] = (0, import_react2.useState)([]);
  8029. (0, import_react2.useEffect)(() => {
  8030. const config = get();
  8031. setTags(config.blocklist);
  8032. }, []);
  8033. const handleDelete = (deleteTag) => {
  8034. setTags(tags2.filter((tag) => tag !== deleteTag));
  8035. const config = get();
  8036. set(
  8037. "blocklist",
  8038. config.blocklist.filter((tag) => tag !== deleteTag)
  8039. );
  8040. document.dispatchEvent(new CustomEvent("pixiv-tag-filter-config-update"));
  8041. };
  8042. const Tag = ({ text }) => {
  8043. return /* @__PURE__ */ import_react2.default.createElement("div", { className: import_optionScreen2.default.block_tag }, /* @__PURE__ */ import_react2.default.createElement(
  8044. "button",
  8045. {
  8046. className: import_optionScreen2.default.block_tag_delete,
  8047. onClick: () => {
  8048. handleDelete(text);
  8049. }
  8050. },
  8051. /* @__PURE__ */ import_react2.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", height: "20", width: "20" }, /* @__PURE__ */ import_react2.default.createElement("path", { d: "M6.062 15 5 13.938 8.938 10 5 6.062 6.062 5 10 8.938 13.938 5 15 6.062 11.062 10 15 13.938 13.938 15 10 11.062Z" }))
  8052. ), text);
  8053. };
  8054. let key = 0;
  8055. const handleSubmit = (e) => {
  8056. if (e.key === "Enter") {
  8057. const value = e.currentTarget.value;
  8058. if (!tags2.includes(value) && value !== "") {
  8059. setTags([...tags2, value]);
  8060. const config = get();
  8061. set("blocklist", [...config.blocklist, value]);
  8062. }
  8063. e.currentTarget.value = "";
  8064. document.dispatchEvent(new CustomEvent("pixiv-tag-filter-config-update"));
  8065. }
  8066. };
  8067. return /* @__PURE__ */ import_react2.default.createElement(import_react2.default.Fragment, null, /* @__PURE__ */ import_react2.default.createElement("div", { className: import_optionScreen2.default.blocktags_base }, tags2.map((tag) => {
  8068. key++;
  8069. return /* @__PURE__ */ import_react2.default.createElement(Tag, { text: tag, key });
  8070. })), /* @__PURE__ */ import_react2.default.createElement(
  8071. "input",
  8072. {
  8073. className: import_optionScreen2.default.blocktags_input + " " + import_optionScreen2.default.tagFilter_input,
  8074. type: "text",
  8075. placeholder: translate("Enter the tags name you want to exclude"),
  8076. onKeyDown: handleSubmit
  8077. }
  8078. ));
  8079. };
  8080. var BlockTags_default = BlockTags;
  8081.  
  8082. // src/components/optionScreen/Primary.tsx
  8083. var Primary = () => {
  8084. return /* @__PURE__ */ import_react3.default.createElement("div", { className: import_optionScreen3.default.option_panel_primary }, /* @__PURE__ */ import_react3.default.createElement("div", { className: import_optionScreen3.default.option_panel_content }, /* @__PURE__ */ import_react3.default.createElement(BlockTags_default, null)), /* @__PURE__ */ import_react3.default.createElement("div", { className: import_optionScreen3.default.option_panel_bottom }, /* @__PURE__ */ import_react3.default.createElement("span", null, "Pixiv tag filter v", package_default.version)));
  8085. };
  8086. var Primary_default = Primary;
  8087.  
  8088. // src/components/optionScreen/Secondry.tsx
  8089. var import_react8 = __toESM(require_react());
  8090. var import_optionScreen8 = __toESM(require_optionScreen());
  8091.  
  8092. // src/components/optionScreen/options/Users.tsx
  8093. var import_react4 = __toESM(require_react());
  8094. var import_optionScreen4 = __toESM(require_optionScreen());
  8095. var Users = () => {
  8096. const getDefaultValue = () => {
  8097. const configusers = get().users;
  8098. if (configusers !== false) {
  8099. return configusers;
  8100. }
  8101. return "0";
  8102. };
  8103. const handleChange = (e) => {
  8104. let value = e.currentTarget.value;
  8105. if (value === "0") {
  8106. value = false;
  8107. set("users", value);
  8108. } else if (isUsersTypeGuard(value)) {
  8109. set("users", value);
  8110. }
  8111. document.dispatchEvent(new CustomEvent("pixiv-tag-filter-config-update"));
  8112. };
  8113. function isUsersTypeGuard(value) {
  8114. switch (value) {
  8115. case "00":
  8116. case "000":
  8117. case "0000":
  8118. case "50":
  8119. case "100":
  8120. case "300":
  8121. case "500":
  8122. case "1000":
  8123. case "5000":
  8124. case "10000":
  8125. case "20000":
  8126. case "30000":
  8127. case "40000":
  8128. case "50000":
  8129. return true;
  8130. default:
  8131. return false;
  8132. }
  8133. }
  8134. return /* @__PURE__ */ import_react4.default.createElement("li", { className: import_optionScreen4.default.option_panel_setting }, /* @__PURE__ */ import_react4.default.createElement("span", null, translate('Filter by "users" tag')), /* @__PURE__ */ import_react4.default.createElement(
  8135. "select",
  8136. {
  8137. className: import_optionScreen4.default.option_panel_select,
  8138. onChange: handleChange,
  8139. defaultValue: getDefaultValue()
  8140. },
  8141. /* @__PURE__ */ import_react4.default.createElement("option", { value: "0" }, "OFF"),
  8142. /* @__PURE__ */ import_react4.default.createElement("option", { value: "50" }, "50users"),
  8143. /* @__PURE__ */ import_react4.default.createElement("option", { value: "100" }, "100users"),
  8144. /* @__PURE__ */ import_react4.default.createElement("option", { value: "300" }, "300users"),
  8145. /* @__PURE__ */ import_react4.default.createElement("option", { value: "500" }, "500users"),
  8146. /* @__PURE__ */ import_react4.default.createElement("option", { value: "1000" }, "1000users"),
  8147. /* @__PURE__ */ import_react4.default.createElement("option", { value: "5000" }, "5000users"),
  8148. /* @__PURE__ */ import_react4.default.createElement("option", { value: "10000" }, "10000users"),
  8149. /* @__PURE__ */ import_react4.default.createElement("option", { value: "20000" }, "20000users"),
  8150. /* @__PURE__ */ import_react4.default.createElement("option", { value: "30000" }, "30000users"),
  8151. /* @__PURE__ */ import_react4.default.createElement("option", { value: "40000" }, "40000users"),
  8152. /* @__PURE__ */ import_react4.default.createElement("option", { value: "50000" }, "50000users"),
  8153. /* @__PURE__ */ import_react4.default.createElement("option", { value: "00" }, "100~users"),
  8154. /* @__PURE__ */ import_react4.default.createElement("option", { value: "000" }, "1000~users"),
  8155. /* @__PURE__ */ import_react4.default.createElement("option", { value: "0000" }, "10000~users")
  8156. ));
  8157. };
  8158. var Users_default = Users;
  8159.  
  8160. // src/components/optionScreen/options/FilterToggle.tsx
  8161. var import_react5 = __toESM(require_react());
  8162. var import_optionScreen5 = __toESM(require_optionScreen());
  8163. var FilterToggle = () => {
  8164. const [value, setValue] = (0, import_react5.useState)(false);
  8165. (0, import_react5.useEffect)(() => {
  8166. const storageValue = get().block;
  8167. setValue(storageValue);
  8168. }, []);
  8169. const handleChange = () => {
  8170. if (value) {
  8171. set("block", false);
  8172. setValue(false);
  8173. } else {
  8174. set("block", true);
  8175. setValue(true);
  8176. }
  8177. location.reload();
  8178. };
  8179. return /* @__PURE__ */ import_react5.default.createElement("li", { className: import_optionScreen5.default.option_panel_setting }, /* @__PURE__ */ import_react5.default.createElement("span", null, translate("Enable Illustration Filtering")), /* @__PURE__ */ import_react5.default.createElement("input", { type: "checkbox", onChange: handleChange, checked: value }));
  8180. };
  8181. var FilterToggle_default = FilterToggle;
  8182.  
  8183. // src/components/optionScreen/options/Ugoira.tsx
  8184. var import_react6 = __toESM(require_react());
  8185. var import_optionScreen6 = __toESM(require_optionScreen());
  8186. var UgoiraToggle = () => {
  8187. const [value, setValue] = (0, import_react6.useState)(false);
  8188. (0, import_react6.useEffect)(() => {
  8189. const storageValue = get().ugoiraBlock;
  8190. setValue(storageValue);
  8191. }, []);
  8192. const handleChange = () => {
  8193. if (value) {
  8194. set("ugoiraBlock", false);
  8195. setValue(false);
  8196. } else {
  8197. set("ugoiraBlock", true);
  8198. setValue(true);
  8199. }
  8200. document.dispatchEvent(new CustomEvent("pixiv-tag-filter-config-update"));
  8201. };
  8202. return /* @__PURE__ */ import_react6.default.createElement("li", { className: import_optionScreen6.default.option_panel_setting }, /* @__PURE__ */ import_react6.default.createElement("span", null, translate("Filter Ugoira")), /* @__PURE__ */ import_react6.default.createElement("input", { type: "checkbox", onChange: handleChange, checked: value }));
  8203. };
  8204. var Ugoira_default = UgoiraToggle;
  8205.  
  8206. // src/components/optionScreen/options/R18G.tsx
  8207. var import_react7 = __toESM(require_react());
  8208. var import_optionScreen7 = __toESM(require_optionScreen());
  8209. var R18GToggle = () => {
  8210. const [value, setValue] = (0, import_react7.useState)(false);
  8211. (0, import_react7.useEffect)(() => {
  8212. const storageValue = get().r18gBlock;
  8213. setValue(storageValue);
  8214. }, []);
  8215. const handleChange = () => {
  8216. if (value) {
  8217. set("r18gBlock", false);
  8218. setValue(false);
  8219. } else {
  8220. set("r18gBlock", true);
  8221. setValue(true);
  8222. }
  8223. document.dispatchEvent(new CustomEvent("pixiv-tag-filter-config-update"));
  8224. };
  8225. return /* @__PURE__ */ import_react7.default.createElement("li", { className: import_optionScreen7.default.option_panel_setting }, /* @__PURE__ */ import_react7.default.createElement("span", null, translate("Filter R-18G")), /* @__PURE__ */ import_react7.default.createElement("input", { type: "checkbox", onChange: handleChange, checked: value }));
  8226. };
  8227. var R18G_default = R18GToggle;
  8228.  
  8229. // src/components/optionScreen/Secondry.tsx
  8230. var Secondry = () => {
  8231. return /* @__PURE__ */ import_react8.default.createElement("div", { className: import_optionScreen8.default.option_panel_secondry }, /* @__PURE__ */ import_react8.default.createElement("div", { className: import_optionScreen8.default.option_panel_content }, /* @__PURE__ */ import_react8.default.createElement("ul", { className: import_optionScreen8.default.option_panel_settings }, /* @__PURE__ */ import_react8.default.createElement(FilterToggle_default, null), /* @__PURE__ */ import_react8.default.createElement(Users_default, null), /* @__PURE__ */ import_react8.default.createElement(Ugoira_default, null), /* @__PURE__ */ import_react8.default.createElement(R18G_default, null))));
  8232. };
  8233. var Secondry_default = Secondry;
  8234.  
  8235. // src/components/optionScreen/OptionPanel.tsx
  8236. var OptionPanel = () => {
  8237. return /* @__PURE__ */ import_react9.default.createElement("div", { className: import_optionScreen9.default.option_panel_container }, /* @__PURE__ */ import_react9.default.createElement(Secondry_default, null), /* @__PURE__ */ import_react9.default.createElement(Primary_default, null));
  8238. };
  8239. var OptionPanel_default = OptionPanel;
  8240.  
  8241. // src/components/optionScreen/OptionScreen.tsx
  8242. var OptionScreen = () => {
  8243. const [panelOpen, setPanelOpen] = (0, import_react10.useState)(false);
  8244. const handleTogglebutton = () => {
  8245. if (panelOpen) {
  8246. setPanelOpen(false);
  8247. } else {
  8248. setPanelOpen(true);
  8249. }
  8250. };
  8251. return /* @__PURE__ */ import_react10.default.createElement(import_react10.default.Fragment, null, /* @__PURE__ */ import_react10.default.createElement(ToggleButton_default, { onClick: handleTogglebutton }), panelOpen && /* @__PURE__ */ import_react10.default.createElement(OptionPanel_default, null));
  8252. };
  8253. var OptionScreen_default = OptionScreen;
  8254.  
  8255. // src/addingOptionScreen.tsx
  8256. function addingOptionScreen() {
  8257. const rootElement = document.createElement("div");
  8258. rootElement.id = "pixiv_tag_filter_options_root";
  8259. document.querySelector("body").appendChild(rootElement);
  8260. const reactRoot = import_client.default.createRoot(rootElement);
  8261. reactRoot.render(
  8262. /* @__PURE__ */ import_react11.default.createElement(import_react11.default.StrictMode, null, /* @__PURE__ */ import_react11.default.createElement(OptionScreen_default, null))
  8263. );
  8264. }
  8265. var addingOptionScreen_default = addingOptionScreen;
  8266.  
  8267. // src/utils/pixivApi.ts
  8268. var search = (word, pageNumber, mode, order = "date_d", type = "artworks") => {
  8269. return new Promise((resolve) => {
  8270. fetch(
  8271. `https://www.pixiv.net/ajax/search/${type}/${word}?word=${word}&order=${order}&mode=${mode}&blt=100&bgt=1000&p=${String(
  8272. pageNumber
  8273. )}&s_mode=s_tag&type=all&lang=ja`,
  8274. {
  8275. method: "GET"
  8276. }
  8277. ).then((res) => res.text()).then((data) => {
  8278. resolve(JSON.parse(data));
  8279. });
  8280. });
  8281. };
  8282. var getCsrf = () => {
  8283. return new Promise((resolve) => {
  8284. fetch(
  8285. "https://www.pixiv.net/bookmark_add.php?type=illust&illust_id=95087894"
  8286. ).then((res) => res.text()).then((text) => {
  8287. resolve(text.match(/token = "([a-zA-Z0-9]{32})"/)[1]);
  8288. });
  8289. });
  8290. };
  8291. var getMyUserId = () => {
  8292. const cookie = document.cookie;
  8293. let cookies = {};
  8294. cookie.split(";").forEach((val) => {
  8295. const split = val.split("=");
  8296. cookies[split[0].slice(1)] = split.map((val2, index) => {
  8297. if (index !== 0) {
  8298. return val2;
  8299. }
  8300. }).join("");
  8301. });
  8302. const id = cookies["__utmv"].split("user_id")[1].split("^")[0].slice(0, -1);
  8303. return id;
  8304. };
  8305. var getBookmark = (offset) => {
  8306. return new Promise((resolve) => {
  8307. const myuserid = getMyUserId();
  8308. fetch(
  8309. `https://www.pixiv.net/ajax/user/${myuserid}/illusts/bookmarks?tag=%E6%9C%AA%E5%88%86%E9%A1%9E&offset=${String(
  8310. offset
  8311. )}&limit=100&rest=show&lang=ja`,
  8312. {
  8313. method: "GET"
  8314. }
  8315. ).then((res) => res.text()).then((data) => {
  8316. resolve(JSON.parse(data));
  8317. });
  8318. });
  8319. };
  8320. var getBookmarkId = async (illustId) => {
  8321. let i = 0;
  8322. let id = "";
  8323. let loop = true;
  8324. while (loop) {
  8325. const bookmark = await getBookmark(100 * i);
  8326. bookmark.body.works.forEach((illust2) => {
  8327. if (illust2.id === illustId) {
  8328. id = illust2.bookmarkData.id;
  8329. loop = false;
  8330. }
  8331. });
  8332. if (i === 100) {
  8333. loop = false;
  8334. }
  8335. i++;
  8336. }
  8337. return id;
  8338. };
  8339. var bookmark_add = async (illust_id, csrfToken) => {
  8340. await fetch("https://www.pixiv.net/ajax/illusts/bookmarks/add", {
  8341. method: "POST",
  8342. body: JSON.stringify({
  8343. comment: "",
  8344. illust_id,
  8345. restrict: 0,
  8346. tags: []
  8347. }),
  8348. headers: {
  8349. accept: "application/json",
  8350. "content-type": "application/json; charset=utf-8",
  8351. "x-csrf-token": csrfToken
  8352. }
  8353. });
  8354. };
  8355. var bookmark_remove = async (illust_id, csrfToken) => {
  8356. const id = await getBookmarkId(illust_id);
  8357. await fetch("https://www.pixiv.net/ajax/illusts/bookmarks/delete", {
  8358. method: "POST",
  8359. body: `bookmark_id=${id}`,
  8360. headers: {
  8361. accept: "application/json",
  8362. "Content-Type": "application/x-www-form-urlencoded; charset=utf-8",
  8363. "x-csrf-token": csrfToken
  8364. }
  8365. });
  8366. };
  8367.  
  8368. // src/filter/PixivFilter.ts
  8369. var PixivFilter = class {
  8370. filters = [];
  8371. addFilter(filter) {
  8372. this.filters.push(filter);
  8373. }
  8374. run(illusts) {
  8375. const result = [];
  8376. illusts.forEach((ilust) => {
  8377. let remove = false;
  8378. this.filters.forEach((filter) => {
  8379. if (filter.filter(ilust)) {
  8380. remove = true;
  8381. }
  8382. });
  8383. if (!remove) {
  8384. result.push(ilust);
  8385. }
  8386. });
  8387. return result;
  8388. }
  8389. };
  8390.  
  8391. // src/filter/tagFilter.ts
  8392. var tagFilter_default = {
  8393. filter: (illust2) => {
  8394. const { blocklist, r18gBlock } = get();
  8395. if (r18gBlock) {
  8396. blocklist.push("R-18G");
  8397. }
  8398. let block = false;
  8399. illust2.tags?.forEach((tag) => {
  8400. if (blocklist.includes(tag)) {
  8401. block = true;
  8402. }
  8403. });
  8404. return block;
  8405. }
  8406. };
  8407.  
  8408. // src/filter/undefinedFilter.ts
  8409. var undefinedFilter_default = {
  8410. filter: (illust2) => {
  8411. let block = false;
  8412. if (illust2.url === void 0) {
  8413. block = true;
  8414. }
  8415. return block;
  8416. }
  8417. };
  8418.  
  8419. // src/pages/tags/renderingTagsRoot.tsx
  8420. var import_client2 = __toESM(require_client());
  8421. var import_react27 = __toESM(require_react());
  8422.  
  8423. // src/components/tags/Tags.tsx
  8424. var import_react26 = __toESM(require_react());
  8425.  
  8426. // src/components/Router.tsx
  8427. var import_react12 = __toESM(require_react());
  8428. var useRouter = () => {
  8429. const elem = document.querySelector("#root");
  8430. let router;
  8431. Object.keys(elem).forEach((k) => {
  8432. if (k.match("__reactContainer")) {
  8433. const routerElem = elem[k].child.child.child.child.child.child.child.child.child.child.child.child.child.child.child;
  8434. router = routerElem.pendingProps.value;
  8435. }
  8436. });
  8437. return router;
  8438. };
  8439. var RouterContext = (0, import_react12.createContext)(null);
  8440. var Link = (props) => {
  8441. const clickHandler = (e, router) => {
  8442. props.onClick && props.onClick(e);
  8443. router.push(props.href);
  8444. window.scroll({
  8445. top: 0
  8446. });
  8447. e.preventDefault();
  8448. };
  8449. return /* @__PURE__ */ import_react12.default.createElement(RouterContext.Consumer, null, (router) => /* @__PURE__ */ import_react12.default.createElement(
  8450. "a",
  8451. {
  8452. ...props,
  8453. onClick: (e) => {
  8454. clickHandler(e, router);
  8455. }
  8456. },
  8457. props.children
  8458. ));
  8459. };
  8460.  
  8461. // src/components/tags/Illusts.tsx
  8462. var import_react25 = __toESM(require_react());
  8463.  
  8464. // src/components/tags/IllustElements.tsx
  8465. var import_react23 = __toESM(require_react());
  8466. var import_tags9 = __toESM(require_tags());
  8467.  
  8468. // src/components/tags/IllustItem.tsx
  8469. var import_react22 = __toESM(require_react());
  8470. var import_tags8 = __toESM(require_tags());
  8471.  
  8472. // src/components/tags/illust/IllustItemIlust.tsx
  8473. var import_react19 = __toESM(require_react());
  8474. var import_tags5 = __toESM(require_tags());
  8475.  
  8476. // src/components/tags/illust/IllustItemLike.tsx
  8477. var import_react13 = __toESM(require_react());
  8478. var import_tags = __toESM(require_tags());
  8479. var import_react14 = __toESM(require_react());
  8480. var IllustItemLike = ({
  8481. liked,
  8482. illustId
  8483. }) => {
  8484. const [islike, setIslike] = (0, import_react14.useState)(liked);
  8485. const handleClick2 = async () => {
  8486. const csrf = await getCsrf();
  8487. if (islike) {
  8488. setIslike(false);
  8489. bookmark_remove(illustId, csrf);
  8490. } else {
  8491. setIslike(true);
  8492. bookmark_add(illustId, csrf);
  8493. }
  8494. };
  8495. return /* @__PURE__ */ import_react13.default.createElement("div", { className: import_tags.default.illust_item_like_outer }, /* @__PURE__ */ import_react13.default.createElement("div", null, /* @__PURE__ */ import_react13.default.createElement(
  8496. "button",
  8497. {
  8498. className: import_tags.default.illust_item_likebtn,
  8499. onClick: handleClick2
  8500. },
  8501. /* @__PURE__ */ import_react13.default.createElement(
  8502. "svg",
  8503. {
  8504. viewBox: "0 0 32 32",
  8505. width: "32",
  8506. height: "32",
  8507. className: import_tags.default.illust_item_likebtn_svg + " " + (islike ? import_tags.default.illust_item_likebtn_svg_liked : "")
  8508. },
  8509. /* @__PURE__ */ import_react13.default.createElement("path", { d: "M21,5.5 C24.8659932,5.5 28,8.63400675 28,12.5 C28,18.2694439 24.2975093,23.1517313 17.2206059,27.1100183C16.4622493,27.5342993 15.5379984,27.5343235 14.779626,27.110148 C7.70250208,23.1517462 4,18.2694529 4,12.5C4,8.63400691 7.13400681,5.5 11,5.5 C12.829814,5.5 14.6210123,6.4144028 16,7.8282366C17.3789877,6.4144028 19.170186,5.5 21,5.5 Z" }),
  8510. /* @__PURE__ */ import_react13.default.createElement(
  8511. "path",
  8512. {
  8513. d: "M16,11.3317089 C15.0857201,9.28334665 13.0491506,7.5 11,7.5C8.23857625,7.5 6,9.73857647 6,12.5 C6,17.4386065 9.2519779,21.7268174 15.7559337,25.3646328C15.9076021,25.4494645 16.092439,25.4494644 16.2441073,25.3646326 C22.7480325,21.7268037 26,17.4385986 26,12.5C26,9.73857625 23.7614237,7.5 21,7.5 C18.9508494,7.5 16.9142799,9.28334665 16,11.3317089 Z",
  8514. className: import_tags.default.illust_item_likebtn_svg_inner + " " + (islike ? import_tags.default.illust_item_likebtn_svg_inner_liked : "")
  8515. }
  8516. )
  8517. )
  8518. )));
  8519. };
  8520. var IllustItemLike_default = IllustItemLike;
  8521.  
  8522. // src/components/tags/illust/Sensitive.tsx
  8523. var import_react15 = __toESM(require_react());
  8524. var import_tags2 = __toESM(require_tags());
  8525. var Sensitive = ({ value }) => {
  8526. return /* @__PURE__ */ import_react15.default.createElement(import_react15.default.Fragment, null, value !== false && /* @__PURE__ */ import_react15.default.createElement("div", { className: import_tags2.default.sensitive }, /* @__PURE__ */ import_react15.default.createElement("div", { className: import_tags2.default.sensitive_inner }, /* @__PURE__ */ import_react15.default.createElement("div", { className: import_tags2.default.sensitive_content }, value))));
  8527. };
  8528. var Sensitive_default = Sensitive;
  8529.  
  8530. // src/components/tags/IllustContext.tsx
  8531. var import_react16 = __toESM(require_react());
  8532. var IllustContext = (0, import_react16.createContext)(null);
  8533.  
  8534. // src/pages/tags/tagsCache.ts
  8535. var setCache = (data) => {
  8536. localStorage.setItem(
  8537. "pixiv-tag-filter-cache",
  8538. JSON.stringify({
  8539. data,
  8540. time: Date.now(),
  8541. path: location.href
  8542. })
  8543. );
  8544. };
  8545. var appendCache = (key, value) => {
  8546. const cache = JSON.parse(localStorage.getItem("pixiv-tag-filter-cache"));
  8547. localStorage.setItem(
  8548. "pixiv-tag-filter-cache",
  8549. JSON.stringify({
  8550. ...cache,
  8551. [key]: value
  8552. })
  8553. );
  8554. };
  8555. var getCache = () => {
  8556. const data = JSON.parse(localStorage.getItem("pixiv-tag-filter-cache"));
  8557. if (data === void 0) {
  8558. return void 0;
  8559. }
  8560. const { time, path } = data;
  8561. if (location.href !== path) {
  8562. return void 0;
  8563. }
  8564. const now = Date.now();
  8565. const diff = now - time;
  8566. if (diff < 3e4) {
  8567. return { status: "OK", ...data };
  8568. } else {
  8569. return { status: "TIMEOUT", ...data };
  8570. }
  8571. };
  8572.  
  8573. // src/components/tags/illust/PageCount.tsx
  8574. var import_react17 = __toESM(require_react());
  8575. var import_tags3 = __toESM(require_tags());
  8576. var PageCount = ({ count }) => {
  8577. return /* @__PURE__ */ import_react17.default.createElement("div", { className: import_tags3.default.pageCount }, /* @__PURE__ */ import_react17.default.createElement("div", { className: import_tags3.default.pageCountContainer }, /* @__PURE__ */ import_react17.default.createElement("span", { className: import_tags3.default.bookiconOuter }, /* @__PURE__ */ import_react17.default.createElement("span", { className: import_tags3.default.bookiconInner }, /* @__PURE__ */ import_react17.default.createElement(
  8578. "svg",
  8579. {
  8580. viewBox: "0 0 9 10",
  8581. width: 9,
  8582. height: 9,
  8583. className: import_tags3.default.bookicon
  8584. },
  8585. /* @__PURE__ */ import_react17.default.createElement(
  8586. "path",
  8587. {
  8588. d: "M8,3 C8.55228475,3 9,3.44771525 9,4 L9,9 C9,9.55228475 8.55228475,10 8,10 L3,10\n C2.44771525,10 2,9.55228475 2,9 L6,9 C7.1045695,9 8,8.1045695 8,7 L8,3 Z M1,1 L6,1\n C6.55228475,1 7,1.44771525 7,2 L7,7 C7,7.55228475 6.55228475,8 6,8 L1,8 C0.44771525,8\n 0,7.55228475 0,7 L0,2 C0,1.44771525 0.44771525,1 1,1 Z",
  8589. transform: ""
  8590. }
  8591. )
  8592. ))), /* @__PURE__ */ import_react17.default.createElement("span", null, String(count))));
  8593. };
  8594. var PageCount_default = PageCount;
  8595.  
  8596. // src/components/tags/illust/Ugoira.tsx
  8597. var import_react18 = __toESM(require_react());
  8598. var import_tags4 = __toESM(require_tags());
  8599. function Ugoira() {
  8600. return /* @__PURE__ */ import_react18.default.createElement(
  8601. "svg",
  8602. {
  8603. viewBox: "0 0 24 24",
  8604. style: { width: 48, height: 48 },
  8605. className: import_tags4.default.ugoira_svg
  8606. },
  8607. /* @__PURE__ */ import_react18.default.createElement(
  8608. "circle",
  8609. {
  8610. cx: "12",
  8611. cy: "12",
  8612. r: "10",
  8613. style: {
  8614. fill: "rgba(0, 0, 0, 0.32)"
  8615. },
  8616. className: import_tags4.default.ugoira_inner
  8617. }
  8618. ),
  8619. /* @__PURE__ */ import_react18.default.createElement(
  8620. "path",
  8621. {
  8622. d: "M9,8.74841664 L9,15.2515834 C9,15.8038681 9.44771525,16.2515834 10,16.2515834\nC10.1782928,16.2515834 10.3533435,16.2039156 10.5070201,16.1135176 L16.0347118,12.8619342\nC16.510745,12.5819147 16.6696454,11.969013 16.3896259,11.4929799\nC16.3034179,11.3464262 16.1812655,11.2242738 16.0347118,11.1380658 L10.5070201,7.88648243\nC10.030987,7.60646294 9.41808527,7.76536339 9.13806578,8.24139652\nC9.04766776,8.39507316 9,8.57012386 9,8.74841664 Z",
  8623. style: {
  8624. fill: "rgb(245, 245, 245)"
  8625. },
  8626. className: import_tags4.default.ugoira_inner
  8627. }
  8628. )
  8629. );
  8630. }
  8631.  
  8632. // src/components/tags/illust/IllustItemIlust.tsx
  8633. var illustItemillust = ({}) => {
  8634. const r18type = (tags2) => {
  8635. if (tags2 !== void 0 && tags2[0] === "R-18") {
  8636. return "R-18";
  8637. } else if (tags2 !== void 0 && tags2[0] === "R-18G") {
  8638. return "R-18G";
  8639. } else {
  8640. return false;
  8641. }
  8642. };
  8643. const handleClick2 = () => {
  8644. appendCache("scroll", window.scrollY);
  8645. };
  8646. return /* @__PURE__ */ import_react19.default.createElement(IllustContext.Consumer, null, (illust2) => /* @__PURE__ */ import_react19.default.createElement("div", { className: import_tags5.default.illust_item_illust }, /* @__PURE__ */ import_react19.default.createElement("div", { className: import_tags5.default.illust_item_illust_inner }, /* @__PURE__ */ import_react19.default.createElement(
  8647. Link,
  8648. {
  8649. className: import_tags5.default.illust_item_link,
  8650. href: "/artworks/" + illust2.id,
  8651. onClick: handleClick2
  8652. },
  8653. /* @__PURE__ */ import_react19.default.createElement("div", { className: import_tags5.default.illust_item_illust_img_outer }, /* @__PURE__ */ import_react19.default.createElement(
  8654. "img",
  8655. {
  8656. className: import_tags5.default.illust_item_illust_img,
  8657. src: illust2.url
  8658. }
  8659. ), illust2.illustType === 2 && /* @__PURE__ */ import_react19.default.createElement(Ugoira, null)),
  8660. /* @__PURE__ */ import_react19.default.createElement("div", { className: import_tags5.default.top_container }, /* @__PURE__ */ import_react19.default.createElement(Sensitive_default, { value: r18type(illust2.tags) }), illust2.pageCount !== 1 && /* @__PURE__ */ import_react19.default.createElement(PageCount_default, { count: illust2.pageCount }))
  8661. ), /* @__PURE__ */ import_react19.default.createElement(
  8662. IllustItemLike_default,
  8663. {
  8664. liked: illust2.bookmarkData !== null,
  8665. illustId: illust2.id
  8666. }
  8667. ))));
  8668. };
  8669. var IllustItemIlust_default = illustItemillust;
  8670.  
  8671. // src/components/tags/IllustTitle.tsx
  8672. var import_react20 = __toESM(require_react());
  8673. var import_tags6 = __toESM(require_tags());
  8674. var handleClick = () => {
  8675. appendCache("scroll", window.scrollY);
  8676. };
  8677. var IllustTitle = ({}) => {
  8678. return /* @__PURE__ */ import_react20.default.createElement(IllustContext.Consumer, null, (illust2) => /* @__PURE__ */ import_react20.default.createElement("div", { className: import_tags6.default.illust_about }, /* @__PURE__ */ import_react20.default.createElement(
  8679. Link,
  8680. {
  8681. href: "/artworks/" + illust2.id,
  8682. className: import_tags6.default.illust_title_link,
  8683. onClick: handleClick
  8684. },
  8685. illust2.title
  8686. )));
  8687. };
  8688. var IllustTitle_default = IllustTitle;
  8689.  
  8690. // src/components/tags/IllustAuthor.tsx
  8691. var import_react21 = __toESM(require_react());
  8692. var import_tags7 = __toESM(require_tags());
  8693. var IllustAuthor = ({}) => {
  8694. return /* @__PURE__ */ import_react21.default.createElement(IllustContext.Consumer, null, (illust2) => /* @__PURE__ */ import_react21.default.createElement("div", { className: import_tags7.default.illust_about }, /* @__PURE__ */ import_react21.default.createElement("div", { className: import_tags7.default.illust_author_icon_outer }, /* @__PURE__ */ import_react21.default.createElement(Link, { href: "/users/" + illust2.userId }, /* @__PURE__ */ import_react21.default.createElement("div", { className: import_tags7.default.illust_author_icon }, /* @__PURE__ */ import_react21.default.createElement(
  8695. "img",
  8696. {
  8697. src: illust2.profileImageUrl,
  8698. width: "24",
  8699. height: "24"
  8700. }
  8701. )))), /* @__PURE__ */ import_react21.default.createElement(
  8702. Link,
  8703. {
  8704. href: "/users/" + illust2.userId,
  8705. className: import_tags7.default.illust_author_link
  8706. },
  8707. illust2.userName
  8708. )));
  8709. };
  8710. var IllustAuthor_default = IllustAuthor;
  8711.  
  8712. // src/components/tags/IllustItem.tsx
  8713. var illustItem = ({}) => {
  8714. return /* @__PURE__ */ import_react22.default.createElement("li", { className: import_tags8.default.illust_item_il }, /* @__PURE__ */ import_react22.default.createElement("div", { className: import_tags8.default.illust_item_content }, /* @__PURE__ */ import_react22.default.createElement(IllustItemIlust_default, null), /* @__PURE__ */ import_react22.default.createElement(IllustTitle_default, null), /* @__PURE__ */ import_react22.default.createElement(IllustAuthor_default, null)));
  8715. };
  8716. var IllustItem_default = illustItem;
  8717.  
  8718. // src/components/tags/IllustElements.tsx
  8719. var IllustElements = ({ illusts }) => {
  8720. let key = 0;
  8721. return /* @__PURE__ */ import_react23.default.createElement("ul", { className: import_tags9.default.tags_container_ul }, illusts.map((illustdata) => {
  8722. key++;
  8723. return illustdata.id !== void 0 && /* @__PURE__ */ import_react23.default.createElement(IllustContext.Provider, { key, value: illustdata }, /* @__PURE__ */ import_react23.default.createElement(IllustItem_default, null));
  8724. }));
  8725. };
  8726. var IllustElements_default = IllustElements;
  8727.  
  8728. // src/components/tags/NotFound.tsx
  8729. var import_react24 = __toESM(require_react());
  8730. var import_tags10 = __toESM(require_tags());
  8731. var NotFound = () => {
  8732. return /* @__PURE__ */ import_react24.default.createElement("div", { className: import_tags10.default.not_found_container }, /* @__PURE__ */ import_react24.default.createElement("div", { className: import_tags10.default.not_found_icon }, /* @__PURE__ */ import_react24.default.createElement(
  8733. "svg",
  8734. {
  8735. viewBox: "0 0 16 16",
  8736. width: 72,
  8737. height: 72,
  8738. className: import_tags10.default.not_found_icon_svg
  8739. },
  8740. /* @__PURE__ */ import_react24.default.createElement(
  8741. "path",
  8742. {
  8743. d: "M8.25739 9.1716C7.46696 9.69512 6.51908 10 5.5 10C2.73858 10 0.5 7.76142 0.5 5C0.5\n 2.23858 2.73858 0 5.5 0C8.26142 0 10.5 2.23858 10.5 5C10.5 6.01908 10.1951 6.96696 9.67161\n 7.75739L11.7071 9.79288C12.0976 10.1834 12.0976 10.8166 11.7071 11.2071C11.3166 11.5976 10.6834\n 11.5976 10.2929 11.2071L8.25739 9.1716ZM8.5 5C8.5 6.65685 7.15685 8 5.5 8C3.84315 8 2.5 6.65685\n 2.5 5C2.5 3.34315 3.84315 2 5.5 2C7.15685 2 8.5 3.34315 8.5 5Z",
  8744. transform: "translate(2.25 2.25)",
  8745. fillRule: "evenodd",
  8746. clipRule: "evenodd"
  8747. }
  8748. )
  8749. )), /* @__PURE__ */ import_react24.default.createElement("span", { className: import_tags10.default.not_found_text }, translate("There are no Illusts")), /* @__PURE__ */ import_react24.default.createElement("span", { className: import_tags10.default.not_found_text_mini }, translate("All illustrations on this page have been filtered")), /* @__PURE__ */ import_react24.default.createElement("span", { className: import_tags10.default.not_found_text_mini }, translate("Please try moving pages or changing your search criteria")), /* @__PURE__ */ import_react24.default.createElement("span", { className: import_tags10.default.not_found_text_mini }, translate("by Pixiv tag filter")));
  8750. };
  8751. var NotFound_default = NotFound;
  8752.  
  8753. // src/components/tags/Illusts.tsx
  8754. var Illusts = () => {
  8755. const [illusts, setIllusts] = (0, import_react25.useState)(null);
  8756. const [show, setShow] = (0, import_react25.useState)(false);
  8757. document.addEventListener("pixiv-tag-filter-fetch", (e) => {
  8758. setShow(false);
  8759. setIllusts(e.detail);
  8760. });
  8761. (0, import_react25.useLayoutEffect)(() => {
  8762. setShow(true);
  8763. document.dispatchEvent(
  8764. new CustomEvent("pixiv-tag-filter-render-success")
  8765. );
  8766. });
  8767. return /* @__PURE__ */ import_react25.default.createElement(import_react25.default.Fragment, null, illusts !== null && /* @__PURE__ */ import_react25.default.createElement(import_react25.default.Fragment, null, illusts.length === 0 ? /* @__PURE__ */ import_react25.default.createElement(NotFound_default, null) : show && /* @__PURE__ */ import_react25.default.createElement(IllustElements_default, { illusts })));
  8768. };
  8769. var Illusts_default = Illusts;
  8770.  
  8771. // src/components/tags/Tags.tsx
  8772. var Tags = () => {
  8773. const router = useRouter();
  8774. return /* @__PURE__ */ import_react26.default.createElement(RouterContext.Provider, { value: router }, /* @__PURE__ */ import_react26.default.createElement(Illusts_default, null));
  8775. };
  8776. var Tags_default = Tags;
  8777.  
  8778. // src/pages/tags/originalTagsHide.ts
  8779. function originalTagsHide() {
  8780. const overRideStyle = document.createElement("style");
  8781. overRideStyle.innerHTML = `
  8782. #root > div.charcoal-token > div > div:nth-child(3) > div > div > div:nth-child(6) > section:nth-child(2) > div:nth-child(2) > div:nth-child(1) > ul {
  8783. display: none !important;
  8784. }
  8785.  
  8786. #root > div.charcoal-token > div > div:nth-child(3) > div > div > div:nth-child(5) > section:nth-child(2) > div:nth-child(2) > div:nth-child(1) > ul {
  8787. display: none !important;
  8788. }
  8789.  
  8790. #root > div:nth-child(2) > div > div:nth-child(4) > div > div > div:nth-child(6) > section > div:nth-child(2) > div:nth-child(1) > ul {
  8791. display: none !important;
  8792. }
  8793. `;
  8794. document.querySelector("head").appendChild(overRideStyle);
  8795. }
  8796.  
  8797. // src/pages/tags/renderingTagsRoot.tsx
  8798. function elementFind(selector) {
  8799. let i;
  8800. return {
  8801. promise: new Promise((resolve, reject) => {
  8802. i = setInterval(() => {
  8803. const elem = document.querySelector(selector);
  8804. if (elem !== null) {
  8805. clearInterval(i);
  8806. resolve(elem);
  8807. }
  8808. });
  8809. }),
  8810. stop: () => {
  8811. clearInterval(i);
  8812. }
  8813. };
  8814. }
  8815. function findIllustElement() {
  8816. return new Promise((resolve) => {
  8817. const selectors = [
  8818. "#root > div.charcoal-token > div > div:nth-child(3) > div > div > div:nth-child(6) > section:nth-child(2) > div:nth-child(2) > div:nth-child(1) > ul",
  8819. "#root > div.charcoal-token > div > div:nth-child(3) > div > div > div:nth-child(5) > section:nth-child(2) > div:nth-child(2) > div:nth-child(1) > ul",
  8820. "#root > div:nth-child(2) > div > div:nth-child(4) > div > div > div:nth-child(6) > section > div:nth-child(2) > div:nth-child(1) > ul"
  8821. ];
  8822. const finders = [];
  8823. selectors.forEach((selector, index) => {
  8824. const find = elementFind(selector);
  8825. find.promise.then((elem) => {
  8826. finders.forEach((finder, finderIndex) => {
  8827. if (index !== finderIndex) {
  8828. finder.stop();
  8829. }
  8830. });
  8831. resolve(elem);
  8832. });
  8833. finders.push(find);
  8834. });
  8835. });
  8836. }
  8837. async function renderingTagsRoot(pathdata) {
  8838. const splitPath = pathdata.new.split("/");
  8839. if (!(splitPath[1] === "tags" && splitPath[3] === void 0) && splitPath[3] !== "novels") {
  8840. console.log("render");
  8841. const illustsElement = await findIllustElement();
  8842. const reactRootElem = document.createElement("div");
  8843. reactRootElem.id = "pixiv_tag_filter_tags_root";
  8844. illustsElement.before(reactRootElem);
  8845. originalTagsHide();
  8846. const reactRoot = import_client2.default.createRoot(reactRootElem);
  8847. reactRoot.render(
  8848. /* @__PURE__ */ import_react27.default.createElement(import_react27.default.StrictMode, null, /* @__PURE__ */ import_react27.default.createElement(Tags_default, null))
  8849. );
  8850. const pageChangeLisnter = (e) => {
  8851. reactRoot.unmount();
  8852. reactRootElem.remove();
  8853. document.removeEventListener(
  8854. "pixiv-tag-filter-pageChange",
  8855. pageChangeLisnter
  8856. );
  8857. };
  8858. document.addEventListener("pixiv-tag-filter-pageChange", pageChangeLisnter);
  8859. }
  8860. }
  8861. var renderingTagsRoot_default = renderingTagsRoot;
  8862.  
  8863. // src/utils/getSearchQuery.ts
  8864. function getSearchQuery() {
  8865. let query = {};
  8866. location.search.split("?")[1]?.split("&").map((search2) => {
  8867. const splited = search2.split("=");
  8868. query[splited[0]] = splited[1];
  8869. });
  8870. const pageNumber = query.hasOwnProperty("p") ? Number(query["p"]) : 1;
  8871. const mode = query.hasOwnProperty("mode") ? query["mode"] : "all";
  8872. const order = query.hasOwnProperty("order") ? query["order"] : "date_d";
  8873. return { pageNumber, mode, order };
  8874. }
  8875.  
  8876. // src/filter/ugoiraFilter.ts
  8877. var ugoiraFilter_default = {
  8878. filter: (illust2) => {
  8879. const { ugoiraBlock } = get();
  8880. let block = false;
  8881. if (ugoiraBlock && illust2.illustType === 2) {
  8882. block = true;
  8883. }
  8884. return block;
  8885. }
  8886. };
  8887.  
  8888. // src/pages/tags/tags.ts
  8889. function tags(searchKeyword, pathdata, type) {
  8890. const { block } = get();
  8891. if (block) {
  8892. const filter = new PixivFilter();
  8893. filter.addFilter(tagFilter_default);
  8894. filter.addFilter(undefinedFilter_default);
  8895. filter.addFilter(ugoiraFilter_default);
  8896. const renderingWithSearchData = async (searchKeyword2) => {
  8897. const { pageNumber, mode, order } = getSearchQuery();
  8898. const { users, blocklist } = get();
  8899. const usersText = users === false ? "" : users + "users";
  8900. const searchResponse = await search(
  8901. searchKeyword2 + " " + usersText + " " + blocklist.map((blocktag) => "-" + blocktag).join(" "),
  8902. pageNumber,
  8903. mode,
  8904. order,
  8905. type
  8906. );
  8907. let data;
  8908. switch (type) {
  8909. case "artworks":
  8910. data = searchResponse.body.illustManga.data;
  8911. break;
  8912. case "manga":
  8913. data = searchResponse.body.manga.data;
  8914. break;
  8915. case "illustrations":
  8916. data = searchResponse.body.illust.data;
  8917. break;
  8918. }
  8919. const sortResult = filter.run(data);
  8920. setCache(sortResult);
  8921. document.dispatchEvent(
  8922. new CustomEvent("pixiv-tag-filter-fetch", {
  8923. detail: sortResult
  8924. })
  8925. );
  8926. };
  8927. setTimeout(async () => {
  8928. await renderingTagsRoot_default(pathdata);
  8929. if (pathdata.before.split("/")[1] === "artworks") {
  8930. let isScroll = false;
  8931. const cache = getCache();
  8932. if (cache !== void 0) {
  8933. const renderListener = () => {
  8934. isScroll = true;
  8935. setTimeout(() => {
  8936. window.scroll({
  8937. top: cache.scroll
  8938. });
  8939. }, 1);
  8940. document.removeEventListener(
  8941. "pixiv-tag-filter-render-success",
  8942. renderListener
  8943. );
  8944. };
  8945. document.addEventListener(
  8946. "pixiv-tag-filter-render-success",
  8947. renderListener
  8948. );
  8949. if (cache.status === "OK") {
  8950. setTimeout(() => {
  8951. document.dispatchEvent(
  8952. new CustomEvent("pixiv-tag-filter-fetch", {
  8953. detail: cache.data
  8954. })
  8955. );
  8956. setCache(cache.data);
  8957. const interval = setInterval(() => {
  8958. if (isScroll) {
  8959. window.scroll({
  8960. top: cache.scroll
  8961. });
  8962. clearInterval(interval);
  8963. }
  8964. });
  8965. });
  8966. }
  8967. if (cache.status === "TIMEOUT") {
  8968. await renderingWithSearchData(searchKeyword);
  8969. const interval = setInterval(() => {
  8970. if (isScroll) {
  8971. window.scroll({
  8972. top: cache.scroll
  8973. });
  8974. clearInterval(interval);
  8975. }
  8976. });
  8977. }
  8978. } else {
  8979. renderingWithSearchData(searchKeyword);
  8980. }
  8981. } else {
  8982. renderingWithSearchData(searchKeyword);
  8983. }
  8984. });
  8985. const searchChangeListener = ({
  8986. detail
  8987. }) => {
  8988. if (detail.before.path.split("/")[1] !== "artworks") {
  8989. console.log("search change");
  8990. renderingWithSearchData(searchKeyword);
  8991. }
  8992. };
  8993. document.addEventListener(
  8994. "pixiv-tag-filter-searchChange",
  8995. searchChangeListener
  8996. );
  8997. const configUpdateListener = () => {
  8998. console.log("config update");
  8999. renderingWithSearchData(searchKeyword);
  9000. };
  9001. document.addEventListener(
  9002. "pixiv-tag-filter-config-update",
  9003. configUpdateListener
  9004. );
  9005. const pageChangeListener = () => {
  9006. document.removeEventListener(
  9007. "pixiv-tag-filter-searchChange",
  9008. searchChangeListener
  9009. );
  9010. document.removeEventListener(
  9011. "pixiv-tag-filter-config-update",
  9012. configUpdateListener
  9013. );
  9014. document.removeEventListener(
  9015. "pixiv-tag-filter-pageChange",
  9016. pageChangeListener
  9017. );
  9018. };
  9019. document.addEventListener(
  9020. "pixiv-tag-filter-pageChange",
  9021. pageChangeListener
  9022. );
  9023. }
  9024. }
  9025. var tags_default = tags;
  9026.  
  9027. // src/utils/pageChangeObserver.ts
  9028. var pageChangeObserver = () => {
  9029. let pathNameTmp = "";
  9030. let searchTmp = location.search;
  9031. let searchPathTmp = location.pathname;
  9032. const observer = new MutationObserver(() => {
  9033. if (location.pathname !== pathNameTmp) {
  9034. document.dispatchEvent(
  9035. new CustomEvent(
  9036. "pixiv-tag-filter-pageChange",
  9037. {
  9038. detail: { before: pathNameTmp, new: location.pathname }
  9039. }
  9040. )
  9041. );
  9042. pathNameTmp = location.pathname;
  9043. } else if (location.search !== searchTmp) {
  9044. document.dispatchEvent(
  9045. new CustomEvent(
  9046. "pixiv-tag-filter-searchChange",
  9047. {
  9048. detail: {
  9049. before: { search: searchTmp, path: searchPathTmp },
  9050. new: {
  9051. search: location.search,
  9052. path: location.pathname
  9053. }
  9054. }
  9055. }
  9056. )
  9057. );
  9058. searchTmp = location.search;
  9059. searchPathTmp = location.pathname;
  9060. }
  9061. });
  9062. observer.observe(document.querySelector("body"), {
  9063. characterData: true,
  9064. attributes: true,
  9065. subtree: true
  9066. });
  9067. };
  9068. var pageChangeObserver_default = pageChangeObserver;
  9069.  
  9070. // src/utils/compatibleConfig.ts
  9071. var compatibleConfig_default = () => {
  9072. configExist();
  9073. const config = get();
  9074. const blocklist = localStorage.getItem("pixiv-filter-blocklist");
  9075. if (blocklist !== null) {
  9076. set("blocklist", [...config.blocklist, ...blocklist.split(",")]);
  9077. localStorage.removeItem("pixiv-filter-blocklist");
  9078. }
  9079. const users = localStorage.getItem("pixiv-filter-usersonly");
  9080. if (users !== null) {
  9081. if (users === "0") {
  9082. set("users", false);
  9083. } else {
  9084. set("users", users);
  9085. }
  9086. localStorage.removeItem("pixiv-filter-usersonly");
  9087. }
  9088. };
  9089.  
  9090. // src/index.ts
  9091. function main() {
  9092. compatibleConfig_default();
  9093. addingOptionScreen_default();
  9094. pageChangeObserver_default();
  9095. document.addEventListener(
  9096. "pixiv-tag-filter-pageChange",
  9097. (e) => {
  9098. const split = e.detail.new.split("/");
  9099. switch (split[1]) {
  9100. case "tags":
  9101. const typeStr = split[3];
  9102. if (typeStr === "artworks" || typeStr === "manga" || typeStr === "illustrations") {
  9103. tags_default(split[2], e.detail, typeStr);
  9104. }
  9105. break;
  9106. default:
  9107. break;
  9108. }
  9109. }
  9110. );
  9111. }
  9112.  
  9113. // node_modules/ts-extension-builder/tmp/entry.ts
  9114. var args = {};
  9115. if (typeof GM_info !== "undefined" && GM_info.script.grant !== void 0) {
  9116. GM_info.script.grant.forEach((propatyName) => {
  9117. let keyName = propatyName.split("GM_")[1];
  9118. if (keyName === "xmlhttpRequest") {
  9119. keyName = "xmlHttpRequest";
  9120. }
  9121. args[propatyName] = GM[keyName];
  9122. });
  9123. }
  9124. main(args);
  9125. /*! Bundled license information:
  9126.  
  9127. react/cjs/react.production.min.js:
  9128. (**
  9129. * @license React
  9130. * react.production.min.js
  9131. *
  9132. * Copyright (c) Facebook, Inc. and its affiliates.
  9133. *
  9134. * This source code is licensed under the MIT license found in the
  9135. * LICENSE file in the root directory of this source tree.
  9136. *)
  9137.  
  9138. scheduler/cjs/scheduler.production.min.js:
  9139. (**
  9140. * @license React
  9141. * scheduler.production.min.js
  9142. *
  9143. * Copyright (c) Facebook, Inc. and its affiliates.
  9144. *
  9145. * This source code is licensed under the MIT license found in the
  9146. * LICENSE file in the root directory of this source tree.
  9147. *)
  9148.  
  9149. react-dom/cjs/react-dom.production.min.js:
  9150. (**
  9151. * @license React
  9152. * react-dom.production.min.js
  9153. *
  9154. * Copyright (c) Facebook, Inc. and its affiliates.
  9155. *
  9156. * This source code is licensed under the MIT license found in the
  9157. * LICENSE file in the root directory of this source tree.
  9158. *)
  9159. */