@readerseye2/cr_viewer 1.0.42 → 1.0.44
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/hooks/useResizeObserver.d.ts.map +1 -1
- package/dist/index.cjs +5 -5
- package/dist/index.js +531 -521
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode('@charset "UTF-8";._handle_1ihf3_1{position:absolute;width:26px;height:26px;background-color:#3b82f6;box-shadow:0 2px 4px #0000004d;cursor:grab;z-index:10001;touch-action:none}._handle_1ihf3_1:active{cursor:grabbing;background-color:#2563eb}._handleStart_1ihf3_16{border-radius:13px 0 13px 13px}._handleEnd_1ihf3_21{border-radius:0 13px 13px}._run_zzb61_3{cursor:pointer}._runWrap_zzb61_7{position:relative;isolation:isolate;z-index:0}._highlight_zzb61_13:before,._highlightleft_zzb61_14:before,._highlightright_zzb61_15:before,._highlightcenter_zzb61_16:before{content:"";position:absolute;z-index:-1;top:-4px;bottom:-4px;background:var(--hl-color, pink);pointer-events:none}._highlight_zzb61_13:before{left:-4px;right:-4px}._highlightleft_zzb61_14:before{left:-4px;right:0}._highlightright_zzb61_15:before{left:0;right:-4px}._highlightcenter_zzb61_16:before{left:0;right:0}._underline_zzb61_48:after,._underlineleft_zzb61_49:after,._underlineright_zzb61_50:after,._underlinecenter_zzb61_51:after{content:"";position:absolute;left:0;right:0;height:var(--ul-thickness, .2em);bottom:calc(-1 * var(--ul-offset, .35em));background:var(--ul-color, red);pointer-events:none}._underline_zzb61_48:after{left:-4px;right:-4px}._underlineleft_zzb61_49:after{left:-4px;right:0}._underlineright_zzb61_50:after{left:0;right:0}._underlinecenter_zzb61_51:after{left:0;right:0}._scroller_kqkmq_3{height:100%;overflow-y:auto;overflow-x:hidden;outline:none;scrollbar-width:none;-ms-overflow-style:none}._scroller_kqkmq_3::-webkit-scrollbar{width:0;height:0;background:transparent;pointer-events:none}._scroller_kqkmq_3::-webkit-scrollbar-track{background:transparent;pointer-events:none}._scroller_kqkmq_3::-webkit-scrollbar-thumb{background:transparent;pointer-events:none}._scroller_kqkmq_3::-webkit-scrollbar-button,._scroller_kqkmq_3::-webkit-scrollbar-corner{display:none;pointer-events:none}@media(forced-colors:active){._scroller_kqkmq_3{scrollbar-width:auto}}._navBtn_1fciy_2{-webkit-appearance:none;-moz-appearance:none;appearance:none;display:flex;flex-direction:column;align-items:center;justify-content:center;width:44px;height:44px;border:none;border-radius:8px;background:none;flex-shrink:0;color:#222;font-size:12px;font-weight:600;cursor:pointer;transition:all .15s ease}._navBtn_1fciy_2:hover:not(:disabled){background:#0000000f}._navBtn_1fciy_2:active:not(:disabled){background:#0000001a}._navBtn_1fciy_2:disabled,._navBtn_1fciy_2._disabled_1fciy_26{opacity:.4;cursor:not-allowed;transform:none}._label_1fciy_32{margin-top:2px;font-size:.55rem;font-weight:500;text-align:center}._navGroup_1fciy_40{display:flex;gap:8px}._wrap_1hfub_4{position:absolute;left:0;right:0;bottom:0;height:auto;display:flex;flex-direction:column;padding:8px 8px 10px;box-sizing:border-box;background:#fff;color:#333;border-top:1px solid #ddd;transition:opacity .15s ease;opacity:0;pointer-events:none;container-type:inline-size;container-name:bottombar}._visible_1hfub_25{opacity:1;pointer-events:auto}._compact_1hfub_31{padding:6px 8px 8px}._compact_1hfub_31 ._row2_1hfub_34{display:none}@container bottombar (min-width: 600px){._compact_1hfub_31 ._row2_1hfub_34{display:contents}}._controls_1hfub_44{display:flex;flex-wrap:wrap;align-items:center;gap:4px}._row1_1hfub_52,._row2_1hfub_34{display:flex;align-items:center;justify-content:space-between;width:100%;gap:4px}._row2_1hfub_34{margin-top:4px}@container bottombar (min-width: 500px){._row1_1hfub_52,._row2_1hfub_34{display:contents}._controls_1hfub_44{flex-wrap:nowrap;justify-content:space-between}._row2_1hfub_34{margin-top:0}}._groupExpand_1hfub_80,._groupPlayback_1hfub_81,._groupSpeed_1hfub_82,._groupFeatures_1hfub_83,._groupNav_1hfub_84{display:flex;align-items:center;flex-shrink:0}._groupExpand_1hfub_80{gap:0}._groupPlayback_1hfub_81{gap:2px}._groupSpeed_1hfub_82{gap:0}._groupFeatures_1hfub_83,._groupNav_1hfub_84{gap:2px}._btn_1hfub_116{-webkit-appearance:none;-moz-appearance:none;appearance:none;display:flex;flex-direction:column;align-items:center;justify-content:center;width:44px;height:44px;border:none;border-radius:8px;background:none;color:#222;font-size:12px;font-weight:600;cursor:pointer;transition:all .15s ease;flex-shrink:0}._btn_1hfub_116:hover{background:#0000000f}._btn_1hfub_116:active{background:#0000001f}._btnForbidden_1hfub_141{opacity:.4;cursor:not-allowed;background:#f2f2f2!important}._btnActive_1hfub_147{background:#333;color:#fff}._btnActive_1hfub_147:hover{background:#555}._btnActive_1hfub_147:active{background:#666}._label_1hfub_158{margin-top:2px;font-size:.55rem;font-weight:500;text-align:center;font-variant-numeric:tabular-nums;white-space:nowrap}._compactBtn_1hfub_168{display:flex;align-items:center;justify-content:center;width:34px;height:34px;border:none;border-radius:4px;background:none;color:#000;cursor:pointer;padding:2px;flex-shrink:0}._compactBtn_1hfub_168:hover{background:#0000000f}._compactBtn_1hfub_168:active{background:#0000001f}._scrubberWrap_uw0cd_2{display:grid;gap:8px;-webkit-user-select:none;user-select:none;margin-bottom:6px}._labels_uw0cd_9{display:flex;justify-content:space-between;font-size:12px;color:var(--text-subtle, #666)}._labels_uw0cd_9 ._index_uw0cd_15{font-variant-numeric:tabular-nums}._controls_uw0cd_19{display:grid;grid-template-columns:1fr 40px;align-items:center;gap:8px}._controls_uw0cd_19 ._percent_uw0cd_25{display:flex;justify-content:flex-end;font-size:.8rem;font-variant-numeric:tabular-nums}._stepBtn_uw0cd_32{height:28px;border:1px solid var(--line, #ddd);background:var(--bg, #fff);border-radius:8px;font-size:16px;line-height:1;cursor:pointer}._stepBtn_uw0cd_32:disabled{opacity:.5;cursor:not-allowed}._range_uw0cd_46{width:100%;-webkit-appearance:none;-moz-appearance:none;appearance:none;height:6px;border-radius:999px;background:linear-gradient(to right,currentColor var(--pct, 50%),#e5e7eb 0);outline:none}._range_uw0cd_46::-webkit-slider-thumb{-webkit-appearance:none;width:16px;height:16px;border-radius:999px;background:currentColor;cursor:pointer}._range_uw0cd_46::-moz-range-thumb{width:16px;height:16px;border-radius:999px;background:currentColor;border:none;cursor:pointer}._WPMSpeedButtonsWrap_r3byt_1{float:right;box-sizing:border-box;display:flex;flex-direction:column}._WPMSpeedButtonsWrap_r3byt_1 ._btnWrap_r3byt_7{box-sizing:border-box;padding:2px;display:flex;gap:1px;align-items:center}._WPMSpeedButtonsWrap_r3byt_1 ._btnWrap_r3byt_7 ._label_r3byt_14{font-size:.55rem;display:flex;flex-direction:column;justify-content:center;align-items:center;min-width:24px}._WPMSpeedButtonsWrap_r3byt_1 ._btnWrap_r3byt_7 ._iconBtn_r3byt_22{padding:2px;border-radius:4px;border:1px solid #888;background:none;width:34px;height:34px;flex-shrink:0;cursor:pointer;transition:all .15s ease}._WPMSpeedButtonsWrap_r3byt_1 ._btnWrap_r3byt_7 ._iconBtn_r3byt_22:hover{background:#0000000f}._WPMSpeedButtonsWrap_r3byt_1 ._btnWrap_r3byt_7 ._iconBtn_r3byt_22:active{background:#0000001f}._WPMSpeedButtonsWrap_r3byt_1 ._btnWrap_r3byt_7 ._iconBtn_r3byt_22 img{width:100%;height:100%;object-fit:contain}._StepBtn_15t0r_1{background:none;border:none;border-radius:8px;font-size:1.6rem;display:flex;justify-content:center;align-items:center;color:#000;flex-shrink:0;width:34px;height:34px;cursor:pointer;transition:all .15s ease}._StepBtn_15t0r_1:hover{background:#0000000f}._StepBtn_15t0r_1:active{background:#0000001f}._GCPlayBtn_n54mc_1{width:var(--btn-size);height:var(--btn-size);box-sizing:border-box;border:none;outline:none;position:relative;background:none;border-radius:8px;transition:all .15s ease;cursor:pointer}._GCPlayBtn_n54mc_1:hover{background:#0000000f}._GCPlayBtn_n54mc_1:active{background:#0000001f}._GCPlayBtn_n54mc_1:focus{outline:none}._GCPlayBtn_n54mc_1:before{content:"";position:absolute;top:calc(var(--btn-size) * .3);left:calc(var(--btn-size) * .34);height:0;border-style:solid;border-width:calc(var(--btn-size) * .2) 0 calc(var(--btn-size) * .2) calc(var(--btn-size) * .4);border-color:transparent transparent transparent var(--icon-color);transition:.2s ease;transform:scale(1.3)}._GCPlayBtn_n54mc_1._playing_n54mc_34:before{top:calc(var(--btn-size) * .3);left:calc(var(--btn-size) * .32);width:calc(var(--btn-size) * .12);height:calc(var(--btn-size) * .4);border:none;background-color:var(--icon-color);box-shadow:calc(var(--btn-size) * .18) 0 0 0 var(--icon-color)}._host_gafql_3{position:absolute;left:0;right:0;top:0;z-index:30}._topbar_gafql_11{position:absolute;left:0;right:0;top:0;height:48px;display:flex;align-items:center;gap:8px;padding:0 12px;background:#fff;color:#033233;-webkit-backdrop-filter:saturate(120%) blur(6px);backdrop-filter:saturate(120%) blur(6px);transition:opacity .15s ease;opacity:0;pointer-events:none;border-bottom:4px solid #033233;box-sizing:border-box}._visible_gafql_32{opacity:1;pointer-events:auto}._backBtn_gafql_37{display:flex;align-items:center;justify-content:center;width:44px;height:44px;border:none;background:transparent;color:#033233;cursor:pointer;border-radius:50%;flex-shrink:0;transition:background .15s ease}._backBtn_gafql_37:hover{background:#0000000d}._backBtn_gafql_37:active{background:#0000004d}._title_gafql_58{font-size:18px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}._calibrationBtn_gafql_67{display:flex;align-items:center;justify-content:center;width:44px;height:44px;border:none;background:transparent;color:#033233;cursor:pointer;border-radius:50%;flex-shrink:0;transition:background .15s ease}._calibrationBtn_gafql_67:hover{background:#0000000d}._calibrationBtn_gafql_67:active{background:#0000004d}._calibrationBtn_gafql_67._disabled_gafql_87{opacity:.4;cursor:not-allowed}._calibrationBtn_gafql_67._disabled_gafql_87:hover,._calibrationBtn_gafql_67._disabled_gafql_87:active{background:transparent}._settingsBtn_gafql_95{display:flex;align-items:center;justify-content:center;width:44px;height:44px;border:none;background:transparent;color:#033233;cursor:pointer;border-radius:50%;flex-shrink:0;transition:background .15s ease}._settingsBtn_gafql_95:hover{background:#0000000d}._settingsBtn_gafql_95:active{background:#0000004d}._wrap_62su0_7{position:absolute;pointer-events:auto;background:#fff;color:#111;box-shadow:0 -6px 24px #0000001f;padding:20px 0;box-sizing:border-box;display:flex;flex-direction:column;align-items:center;gap:10px;overflow-y:auto;left:0;right:0;bottom:0;max-height:70%;border-top:1px solid rgba(0,0,0,.08);border-radius:16px 16px 0 0}._wrapHidden_62su0_29{transform:translateY(100%);visibility:hidden;transition:transform .22s ease,visibility 0s .22s}._wrapVisible_62su0_35{transform:translateY(0);visibility:visible;transition:transform .22s ease,visibility 0s 0s}@container viewer (min-aspect-ratio: 1/1){._wrap_62su0_7{left:auto;right:0;top:0;bottom:0;max-height:100%;width:400px;max-width:60%;border-top:none;border-left:1px solid rgba(0,0,0,.08);border-radius:0;box-shadow:-6px 0 24px #0000001f;padding:20px}._wrapHidden_62su0_29{transform:translate(100%);visibility:hidden;transition:transform .22s ease,visibility 0s .22s}._wrapVisible_62su0_35{transform:translate(0);visibility:visible;transition:transform .22s ease,visibility 0s 0s}}._scrollArea_62su0_71{width:100%;display:flex;flex-direction:column;max-width:400px;padding:0 20px;gap:10px;box-sizing:border-box}._row_62su0_81{display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:45px}._label_62su0_89{width:78px;flex:0 0 78px;font-weight:700}._btn_62su0_95{-webkit-appearance:none;-moz-appearance:none;appearance:none;cursor:pointer;border:1px solid rgba(0,0,0,.16);background:#fff;color:#111;border-radius:8px;padding:8px 10px;font-size:13px}._btnActive_62su0_106{background:#00000014}._btnSmall_62su0_110{-webkit-appearance:none;-moz-appearance:none;appearance:none;cursor:pointer;border:1px solid rgba(0,0,0,.16);background:#fff;color:#111;border-radius:8px;padding:4px 8px;font-size:14px;line-height:1}._pill_62su0_122{-webkit-appearance:none;-moz-appearance:none;appearance:none;cursor:pointer;background:#fff;color:#111;border:1px solid rgba(0,0,0,.16);border-radius:999px;padding:8px 12px;font-size:13px}._themeCircle_62su0_133{width:40px;height:40px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:600;cursor:pointer;transition:all .2s ease;border:1px solid rgba(0,0,0,.15)}._themeCircleActive_62su0_146{border:2px solid #007aff;box-shadow:0 0 0 2px #007aff40}._stepRow_62su0_151{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:40px}._stepLabel_62su0_159{width:78px;flex:0 0 78px;font-weight:700}._stepValue_62su0_165{margin-left:auto;width:72px;text-align:right;font-variant-numeric:tabular-nums}._levelBox_62su0_172{width:28px;text-align:center}._inlineFlex_62su0_177{display:flex;align-items:center;gap:6px;flex-wrap:wrap}._wrapper_dbk3n_1{display:grid;place-items:center;position:absolute;top:0;right:0;bottom:0;left:0;z-index:10000;pointer-events:none}._spinner_dbk3n_10{border-radius:50%;border:3px solid #e5e7eb;border-top-color:#3b82f6;animation:_spin_dbk3n_10 linear infinite}@keyframes _spin_dbk3n_10{to{transform:rotate(360deg)}}._Overlay_ybic8_3{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;background:#11182773;display:flex;align-items:center;justify-content:center;z-index:50}._Dialog_ybic8_15{width:min(760px,90%);max-height:80vh;overflow:auto;background:#fff;border-radius:16px;box-shadow:0 24px 48px #00000040;padding:20px}._Body_ybic8_25{margin-left:20px;margin-right:20px;display:block}._Header_ybic8_32{display:flex;align-items:center;gap:12px;margin-bottom:12px}._Paging_ybic8_39{font-weight:700;font-size:1rem;color:#333;display:flex;justify-content:center;width:100%}._Remaining_ybic8_48{margin-left:auto;font-weight:700;font-size:1rem;color:#fff}._RemainingDanger_ybic8_55{color:#dc2626}._NextBtn_ybic8_59{padding:10px 16px;border-radius:10px;border:none;background:#2563eb;color:#fff;font-size:1.2rem;font-weight:700;cursor:pointer;width:100%}@keyframes _nextbtn-blink_ybic8_1{0%,49%{transform:none;box-shadow:0 0 #dc262600;outline:0 solid rgba(220,38,38,0);filter:none}50%,to{box-shadow:0 0 0 2px #dc262659,0 6px 14px #dc262640;outline:2px solid rgba(220,38,38,.45)}}._NextBtn_ybic8_59:has(._RemainingDanger_ybic8_55){animation:_nextbtn-blink_ybic8_1 1s steps(2,start) infinite}._NextBtn_ybic8_59:has(._RemainingDanger_ybic8_55):hover,._NextBtn_ybic8_59:has(._RemainingDanger_ybic8_55):focus-visible{animation-play-state:running}._CloseBtn_ybic8_96{margin-left:8px;border:none;background:transparent;color:#6b7280;cursor:pointer;font-size:14px}._Title_ybic8_106{font-weight:700;font-size:18px;margin-bottom:8px;color:#111827}._Question_ybic8_113{font-size:1.2rem;color:#111827;font-weight:700;display:flex;justify-content:center;align-items:center}._Score_ybic8_123{display:flex;justify-content:center;align-items:center;margin-bottom:16px}._Image_ybic8_130{width:100%;display:flex;justify-content:center}._Image_ybic8_130 img{width:80%}._Options_ybic8_140{display:grid;gap:8px}._OptionBtn_ybic8_145{text-align:left;padding:12px 14px;border-radius:10px;border:1px solid #e5e7eb;background:#fff;color:#111827;cursor:pointer;font-size:1rem;transition:box-shadow .15s ease,border-color .15s ease,background .15s ease;display:flex;justify-content:center;align-items:center}._OptionBtn_ybic8_145:hover{border-color:#cbd5e1;background:#f9fafb}._OptionBtnActive_ybic8_165{border-color:#2563eb;background:#2563eb14;box-shadow:0 4px 10px #2563eb33}._Footer_ybic8_172{display:flex;justify-content:space-between;margin-top:16px;gap:8px}._PrevBtn_ybic8_179{flex:0 0 auto;padding:10px 14px;border-radius:10px;border:1px solid #e5e7eb;background:#fff;color:#111827;cursor:pointer}._PrevBtn_ybic8_179:disabled{cursor:not-allowed;opacity:.6}._OptionBtnCorrect_ybic8_195{border-color:#16a34a!important;box-shadow:0 4px 10px #16a34a33}._Judge_ybic8_201{margin:6px 0 10px;font-weight:700;font-size:1.5rem;padding:4px;width:100%;border-radius:10px;display:flex;justify-content:center;color:#fff}._Judge_ybic8_201._Correct_ybic8_212{background:#16a34a}._Judge_ybic8_201._Incorrect_ybic8_215{background:#dc2626}._ResultHeader_ybic8_220{font-weight:800;font-size:20px;margin-bottom:8px;color:#111827}._ResultText_ybic8_227{font-size:16px;margin-bottom:12px;color:#111827}._ResultActions_ybic8_233{display:flex;justify-content:flex-end;gap:8px}._CloseBtnSoft_ybic8_239{padding:10px 16px;border-radius:10px;border:1px solid #e5e7eb;background:#fff;color:#111827;cursor:pointer}._SummaryGrid_ybic8_249{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:12px;margin:12px 0 16px}._StatCard_ybic8_257{border:1px solid #e5e7eb;border-radius:12px;padding:12px 14px;background:#fff;box-shadow:0 2px 6px #1118270f}._StatLabel_ybic8_265{font-size:12px;color:#6b7280}._StatValue_ybic8_270{font-size:22px;font-weight:800;margin-top:4px;color:#111827}._StatSub_ybic8_277{font-size:12px;color:#6b7280}._SplitGrid_ybic8_282{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:8px 0 12px}._SplitBox_ybic8_289{border:1px dashed #e5e7eb;border-radius:10px;padding:10px 12px}._SplitTitle_ybic8_295{font-size:12px;color:#6b7280}._SplitText_ybic8_300{font-size:16px;font-weight:700;color:#111827;margin-top:2px}._Pairs_ybic8_307{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:8px 0 12px}._PairItem_ybic8_314{border:1px solid #f3f4f6;border-radius:10px;padding:10px 12px;background:#fafafa}._PairLabel_ybic8_321{font-size:12px;color:#6b7280}._PairValue_ybic8_326{font-size:15px;font-weight:700;margin-top:2px;color:#111827}._WrongBox_ybic8_333{margin-top:8px;border-top:1px solid #e5e7eb;padding-top:10px}._WrongTitle_ybic8_339{font-weight:700;font-size:14px;color:#111827;margin-bottom:6px}._WrongList_ybic8_346{list-style:none;padding:0;margin:0}._WrongList_ybic8_346 li{display:flex;align-items:center;gap:8px;padding:6px 0;border-bottom:1px dashed #f3f4f6}._Badge_ybic8_360{display:inline-block;font-size:12px;padding:2px 6px;border-radius:999px;background:#eef2ff;color:#3730a3;font-weight:700}._WrongName_ybic8_370{flex:1;color:#111827;font-size:14px}._WrongTime_ybic8_376{font-size:12px;color:#6b7280}._Empty_ybic8_381{color:#6b7280;font-size:13px}._Hint_ybic8_387{margin-top:8px;font-size:12px;color:#6b7280}')),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
|
|
2
2
|
var Ui = Object.defineProperty;
|
|
3
3
|
var Ki = (e, t, n) => t in e ? Ui(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
4
|
-
var
|
|
4
|
+
var Hr = (e, t, n) => Ki(e, typeof t != "symbol" ? t + "" : t, n);
|
|
5
5
|
import { jsx as x, jsxs as ee, Fragment as wt } from "react/jsx-runtime";
|
|
6
6
|
import * as Ye from "react";
|
|
7
|
-
import
|
|
7
|
+
import D, { createContext as Ft, useContext as Ue, useMemo as me, useLayoutEffect as _t, useRef as ie, useEffect as pe, useCallback as ne, createElement as hn, useState as pt, memo as Wt, useId as Xi } from "react";
|
|
8
8
|
import Yi from "react-dom";
|
|
9
|
-
const
|
|
9
|
+
const yr = Ft(void 0);
|
|
10
10
|
var an = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
11
11
|
function Uo(e) {
|
|
12
12
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
13
13
|
}
|
|
14
|
-
var cn = { exports: {} },
|
|
14
|
+
var cn = { exports: {} }, Pn = {}, un = { exports: {} }, An = {};
|
|
15
15
|
/**
|
|
16
16
|
* @license React
|
|
17
17
|
* use-sync-external-store-shim.production.js
|
|
@@ -21,11 +21,11 @@ var cn = { exports: {} }, zn = {}, un = { exports: {} }, Pn = {};
|
|
|
21
21
|
* This source code is licensed under the MIT license found in the
|
|
22
22
|
* LICENSE file in the root directory of this source tree.
|
|
23
23
|
*/
|
|
24
|
-
var
|
|
24
|
+
var Nr;
|
|
25
25
|
function Qi() {
|
|
26
|
-
if (
|
|
27
|
-
|
|
28
|
-
var e =
|
|
26
|
+
if (Nr) return An;
|
|
27
|
+
Nr = 1;
|
|
28
|
+
var e = D;
|
|
29
29
|
function t(h, f) {
|
|
30
30
|
return h === f && (h !== 0 || 1 / h === 1 / f) || h !== h && f !== f;
|
|
31
31
|
}
|
|
@@ -60,9 +60,9 @@ function Qi() {
|
|
|
60
60
|
return f();
|
|
61
61
|
}
|
|
62
62
|
var d = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? l : u;
|
|
63
|
-
return
|
|
63
|
+
return An.useSyncExternalStore = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore : d, An;
|
|
64
64
|
}
|
|
65
|
-
var
|
|
65
|
+
var Bn = {};
|
|
66
66
|
/**
|
|
67
67
|
* @license React
|
|
68
68
|
* use-sync-external-store-shim.development.js
|
|
@@ -72,9 +72,9 @@ var An = {};
|
|
|
72
72
|
* This source code is licensed under the MIT license found in the
|
|
73
73
|
* LICENSE file in the root directory of this source tree.
|
|
74
74
|
*/
|
|
75
|
-
var
|
|
75
|
+
var Fr;
|
|
76
76
|
function Zi() {
|
|
77
|
-
return
|
|
77
|
+
return Fr || (Fr = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
78
78
|
function e(m, v) {
|
|
79
79
|
return m === v && (m !== 0 || 1 / m === 1 / v) || m !== m && v !== v;
|
|
80
80
|
}
|
|
@@ -121,13 +121,13 @@ function Zi() {
|
|
|
121
121
|
return v();
|
|
122
122
|
}
|
|
123
123
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
124
|
-
var o =
|
|
125
|
-
|
|
126
|
-
})()),
|
|
124
|
+
var o = D, i = typeof Object.is == "function" ? Object.is : e, s = o.useState, u = o.useEffect, a = o.useLayoutEffect, l = o.useDebugValue, d = !1, h = !1, f = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? r : t;
|
|
125
|
+
Bn.useSyncExternalStore = o.useSyncExternalStore !== void 0 ? o.useSyncExternalStore : f, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
126
|
+
})()), Bn;
|
|
127
127
|
}
|
|
128
|
-
var
|
|
128
|
+
var Wr;
|
|
129
129
|
function Ko() {
|
|
130
|
-
return
|
|
130
|
+
return Wr || (Wr = 1, process.env.NODE_ENV === "production" ? un.exports = Qi() : un.exports = Zi()), un.exports;
|
|
131
131
|
}
|
|
132
132
|
/**
|
|
133
133
|
* @license React
|
|
@@ -140,14 +140,14 @@ function Ko() {
|
|
|
140
140
|
*/
|
|
141
141
|
var Dr;
|
|
142
142
|
function Ji() {
|
|
143
|
-
if (Dr) return
|
|
143
|
+
if (Dr) return Pn;
|
|
144
144
|
Dr = 1;
|
|
145
|
-
var e =
|
|
145
|
+
var e = D, t = Ko();
|
|
146
146
|
function n(l, d) {
|
|
147
147
|
return l === d && (l !== 0 || 1 / l === 1 / d) || l !== l && d !== d;
|
|
148
148
|
}
|
|
149
149
|
var r = typeof Object.is == "function" ? Object.is : n, o = t.useSyncExternalStore, i = e.useRef, s = e.useEffect, u = e.useMemo, a = e.useDebugValue;
|
|
150
|
-
return
|
|
150
|
+
return Pn.useSyncExternalStoreWithSelector = function(l, d, h, f, m) {
|
|
151
151
|
var v = i(null);
|
|
152
152
|
if (v.current === null) {
|
|
153
153
|
var y = { hasValue: !1, value: null };
|
|
@@ -187,9 +187,9 @@ function Ji() {
|
|
|
187
187
|
},
|
|
188
188
|
[c]
|
|
189
189
|
), a(c), c;
|
|
190
|
-
},
|
|
190
|
+
}, Pn;
|
|
191
191
|
}
|
|
192
|
-
var
|
|
192
|
+
var Gn = {};
|
|
193
193
|
/**
|
|
194
194
|
* @license React
|
|
195
195
|
* use-sync-external-store-shim/with-selector.development.js
|
|
@@ -199,15 +199,15 @@ var Bn = {};
|
|
|
199
199
|
* This source code is licensed under the MIT license found in the
|
|
200
200
|
* LICENSE file in the root directory of this source tree.
|
|
201
201
|
*/
|
|
202
|
-
var
|
|
202
|
+
var $r;
|
|
203
203
|
function es() {
|
|
204
|
-
return
|
|
204
|
+
return $r || ($r = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
205
205
|
function e(l, d) {
|
|
206
206
|
return l === d && (l !== 0 || 1 / l === 1 / d) || l !== l && d !== d;
|
|
207
207
|
}
|
|
208
208
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
209
|
-
var t =
|
|
210
|
-
|
|
209
|
+
var t = D, n = Ko(), r = typeof Object.is == "function" ? Object.is : e, o = n.useSyncExternalStore, i = t.useRef, s = t.useEffect, u = t.useMemo, a = t.useDebugValue;
|
|
210
|
+
Gn.useSyncExternalStoreWithSelector = function(l, d, h, f, m) {
|
|
211
211
|
var v = i(null);
|
|
212
212
|
if (v.current === null) {
|
|
213
213
|
var y = { hasValue: !1, value: null };
|
|
@@ -249,14 +249,14 @@ function es() {
|
|
|
249
249
|
[c]
|
|
250
250
|
), a(c), c;
|
|
251
251
|
}, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
252
|
-
})()),
|
|
252
|
+
})()), Gn;
|
|
253
253
|
}
|
|
254
|
-
var
|
|
254
|
+
var Vr;
|
|
255
255
|
function ts() {
|
|
256
|
-
return
|
|
256
|
+
return Vr || (Vr = 1, process.env.NODE_ENV === "production" ? cn.exports = Ji() : cn.exports = es()), cn.exports;
|
|
257
257
|
}
|
|
258
258
|
var ns = ts();
|
|
259
|
-
const rs = /* @__PURE__ */ Uo(ns),
|
|
259
|
+
const rs = /* @__PURE__ */ Uo(ns), qr = (e) => {
|
|
260
260
|
let t;
|
|
261
261
|
const n = /* @__PURE__ */ new Set(), r = (l, d) => {
|
|
262
262
|
const h = typeof l == "function" ? l(t) : l;
|
|
@@ -266,8 +266,8 @@ const rs = /* @__PURE__ */ Uo(ns), Vr = (e) => {
|
|
|
266
266
|
}
|
|
267
267
|
}, o = () => t, u = { setState: r, getState: o, getInitialState: () => a, subscribe: (l) => (n.add(l), () => n.delete(l)) }, a = t = e(r, o, u);
|
|
268
268
|
return u;
|
|
269
|
-
}, rn = ((e) => e ?
|
|
270
|
-
function
|
|
269
|
+
}, rn = ((e) => e ? qr(e) : qr), { useSyncExternalStoreWithSelector: os } = rs, is = (e) => e;
|
|
270
|
+
function kn(e, t = is, n) {
|
|
271
271
|
const r = os(
|
|
272
272
|
e.subscribe,
|
|
273
273
|
e.getState,
|
|
@@ -275,16 +275,16 @@ function Tn(e, t = is, n) {
|
|
|
275
275
|
t,
|
|
276
276
|
n
|
|
277
277
|
);
|
|
278
|
-
return
|
|
278
|
+
return D.useDebugValue(r), r;
|
|
279
279
|
}
|
|
280
280
|
function X(e, t) {
|
|
281
|
-
const n = Ue(
|
|
281
|
+
const n = Ue(yr);
|
|
282
282
|
if (!n)
|
|
283
283
|
throw new Error("useCRViewerScopedStore must be used inside <InternalCRViewerProvider>");
|
|
284
|
-
return
|
|
284
|
+
return kn(n, e, t);
|
|
285
285
|
}
|
|
286
|
-
function
|
|
287
|
-
const e = Ue(
|
|
286
|
+
function Rn() {
|
|
287
|
+
const e = Ue(yr);
|
|
288
288
|
if (!e)
|
|
289
289
|
throw new Error("useCRViewerStoreApi must be used inside <InternalCRViewerProvider>");
|
|
290
290
|
return e;
|
|
@@ -354,18 +354,18 @@ function It() {
|
|
|
354
354
|
throw new Error("useViewerEventBridgeStoreApi must be used inside <ViewerEventBridgeProvider>");
|
|
355
355
|
return e;
|
|
356
356
|
}
|
|
357
|
-
const
|
|
357
|
+
const xr = Ft(void 0);
|
|
358
358
|
function yt() {
|
|
359
|
-
const e = Ue(
|
|
359
|
+
const e = Ue(xr);
|
|
360
360
|
if (!e)
|
|
361
361
|
throw new Error("useProgressStoreApi must be used within InternalCRViewerProgressProvider");
|
|
362
362
|
return e;
|
|
363
363
|
}
|
|
364
364
|
function j(e, t) {
|
|
365
|
-
const n = Ue(
|
|
365
|
+
const n = Ue(xr);
|
|
366
366
|
if (!n)
|
|
367
367
|
throw new Error("useProgressStore must be used within InternalCRViewerProgressProvider");
|
|
368
|
-
return
|
|
368
|
+
return kn(n, (o) => e(o.progress), t);
|
|
369
369
|
}
|
|
370
370
|
function as({
|
|
371
371
|
onSingle: e,
|
|
@@ -395,7 +395,7 @@ function as({
|
|
|
395
395
|
);
|
|
396
396
|
return { onClick: i, onDoubleClick: s };
|
|
397
397
|
}
|
|
398
|
-
const
|
|
398
|
+
const vn = {
|
|
399
399
|
light: {
|
|
400
400
|
bg: "#ffffff",
|
|
401
401
|
fg: "#111827",
|
|
@@ -424,14 +424,14 @@ const bn = {
|
|
|
424
424
|
overlayFg: "#1b3d1f",
|
|
425
425
|
borderColor: "#93b48b"
|
|
426
426
|
}
|
|
427
|
-
},
|
|
427
|
+
}, Ln = [8, 16, 24, 40, 64], Hn = [1.2, 1.4, 1.6, 1.8, 2, 2.2, 2.4], Nn = [4, 8, 12, 16, 24], dr = (e) => Math.round(12 + (e - 1) * (16 / 11)), cs = (e) => {
|
|
428
428
|
let t = 1, n = 1 / 0;
|
|
429
429
|
for (let r = 1; r <= 12; r++) {
|
|
430
|
-
const o =
|
|
430
|
+
const o = dr(r), i = Math.abs(o - e);
|
|
431
431
|
i < n && (t = r, n = i);
|
|
432
432
|
}
|
|
433
433
|
return t;
|
|
434
|
-
},
|
|
434
|
+
}, Fn = (e, t) => {
|
|
435
435
|
let n = 0, r = 1 / 0;
|
|
436
436
|
return t.forEach((o, i) => {
|
|
437
437
|
const s = Math.abs(o - e);
|
|
@@ -533,11 +533,11 @@ function us(e) {
|
|
|
533
533
|
})),
|
|
534
534
|
// ===== 파생: 맵/레벨 =====
|
|
535
535
|
maps: {
|
|
536
|
-
MARGIN_MAP:
|
|
537
|
-
LINEHEIGHT_MAP:
|
|
538
|
-
BREAK_GAP_MAP:
|
|
536
|
+
MARGIN_MAP: Ln,
|
|
537
|
+
LINEHEIGHT_MAP: Hn,
|
|
538
|
+
BREAK_GAP_MAP: Nn,
|
|
539
539
|
// ✅ (추가)
|
|
540
|
-
fontSizeFromLevel:
|
|
540
|
+
fontSizeFromLevel: dr
|
|
541
541
|
},
|
|
542
542
|
// ✅ (추가) 포인터/끊기 설정 액션
|
|
543
543
|
setPointerStyle: (i) => r({ pointerStyle: i }),
|
|
@@ -552,18 +552,18 @@ function us(e) {
|
|
|
552
552
|
},
|
|
553
553
|
setBreakGapPx: (i) => r({ breakGapPx: i }),
|
|
554
554
|
setBreakGapLevel: (i) => {
|
|
555
|
-
const s =
|
|
555
|
+
const s = Nn[Math.max(1, Math.min(5, i)) - 1];
|
|
556
556
|
r({ breakGapPx: s });
|
|
557
557
|
},
|
|
558
|
-
getBreakGapLevel: () =>
|
|
558
|
+
getBreakGapLevel: () => Fn(o().breakGapPx, Nn),
|
|
559
559
|
// ✅ (추가)
|
|
560
560
|
getFontLevel: () => cs(o().fontSizePx),
|
|
561
|
-
getLineLevel: () =>
|
|
562
|
-
getMarginLevel: () =>
|
|
563
|
-
setFontLevel: (i) => r({ fontSizePx:
|
|
564
|
-
setLineLevel: (i) => r({ lineHeight:
|
|
561
|
+
getLineLevel: () => Fn(o().lineHeight, Hn),
|
|
562
|
+
getMarginLevel: () => Fn(o().marginX, Ln),
|
|
563
|
+
setFontLevel: (i) => r({ fontSizePx: dr(Math.max(1, Math.min(12, i))) }),
|
|
564
|
+
setLineLevel: (i) => r({ lineHeight: Hn[Math.max(1, Math.min(7, i)) - 1] }),
|
|
565
565
|
setMarginLevel: (i) => {
|
|
566
|
-
const s =
|
|
566
|
+
const s = Ln[Math.max(1, Math.min(5, i)) - 1];
|
|
567
567
|
r({ marginX: s, marginY: s });
|
|
568
568
|
},
|
|
569
569
|
setMuteAudio: (i) => {
|
|
@@ -608,8 +608,8 @@ function us(e) {
|
|
|
608
608
|
setViewportSize: (i, s) => r({ viewportWidth: i, viewportHeight: s })
|
|
609
609
|
}));
|
|
610
610
|
}
|
|
611
|
-
const
|
|
612
|
-
function
|
|
611
|
+
const _n = 0, Ct = 1, Dt = 2, Qo = 4;
|
|
612
|
+
function jr(e) {
|
|
613
613
|
return () => e;
|
|
614
614
|
}
|
|
615
615
|
function ds(e) {
|
|
@@ -618,13 +618,13 @@ function ds(e) {
|
|
|
618
618
|
function Zo(e, t) {
|
|
619
619
|
return (n) => e(t(n));
|
|
620
620
|
}
|
|
621
|
-
function
|
|
621
|
+
function Ur(e, t) {
|
|
622
622
|
return () => e(t);
|
|
623
623
|
}
|
|
624
624
|
function fs(e, t) {
|
|
625
625
|
return (n) => e(t, n);
|
|
626
626
|
}
|
|
627
|
-
function
|
|
627
|
+
function wr(e) {
|
|
628
628
|
return e !== void 0;
|
|
629
629
|
}
|
|
630
630
|
function ps(...e) {
|
|
@@ -634,7 +634,7 @@ function ps(...e) {
|
|
|
634
634
|
}
|
|
635
635
|
function $t() {
|
|
636
636
|
}
|
|
637
|
-
function
|
|
637
|
+
function Mn(e, t) {
|
|
638
638
|
return t(e), e;
|
|
639
639
|
}
|
|
640
640
|
function gs(e, t) {
|
|
@@ -647,16 +647,16 @@ function Ie(e, t) {
|
|
|
647
647
|
return e(Ct, t);
|
|
648
648
|
}
|
|
649
649
|
function fe(e, t) {
|
|
650
|
-
e(
|
|
650
|
+
e(_n, t);
|
|
651
651
|
}
|
|
652
|
-
function
|
|
653
|
-
e(
|
|
652
|
+
function Ir(e) {
|
|
653
|
+
e(Dt);
|
|
654
654
|
}
|
|
655
655
|
function Pe(e) {
|
|
656
656
|
return e(Qo);
|
|
657
657
|
}
|
|
658
658
|
function oe(e, t) {
|
|
659
|
-
return Ie(e, fs(t,
|
|
659
|
+
return Ie(e, fs(t, _n));
|
|
660
660
|
}
|
|
661
661
|
function at(e, t) {
|
|
662
662
|
const n = e(Ct, (r) => {
|
|
@@ -664,7 +664,7 @@ function at(e, t) {
|
|
|
664
664
|
});
|
|
665
665
|
return n;
|
|
666
666
|
}
|
|
667
|
-
function
|
|
667
|
+
function Kr(e) {
|
|
668
668
|
let t, n;
|
|
669
669
|
return (r) => (o) => {
|
|
670
670
|
t = o, n && clearTimeout(n), n = setTimeout(() => {
|
|
@@ -698,8 +698,8 @@ function H(e, ...t) {
|
|
|
698
698
|
const n = hs(...t);
|
|
699
699
|
return ((r, o) => {
|
|
700
700
|
switch (r) {
|
|
701
|
-
case
|
|
702
|
-
|
|
701
|
+
case Dt:
|
|
702
|
+
Ir(e);
|
|
703
703
|
return;
|
|
704
704
|
case Ct:
|
|
705
705
|
return Ie(e, n(o));
|
|
@@ -751,18 +751,18 @@ function ms(e) {
|
|
|
751
751
|
switch (o) {
|
|
752
752
|
case Ct:
|
|
753
753
|
return i ? n === i ? void 0 : (r(), n = i, t = Ie(e, i), t) : (r(), $t);
|
|
754
|
-
case
|
|
754
|
+
case Dt:
|
|
755
755
|
r(), n = null;
|
|
756
756
|
return;
|
|
757
757
|
}
|
|
758
758
|
};
|
|
759
759
|
}
|
|
760
|
-
function
|
|
760
|
+
function W(e) {
|
|
761
761
|
let t = e;
|
|
762
762
|
const n = ve();
|
|
763
763
|
return ((r, o) => {
|
|
764
764
|
switch (r) {
|
|
765
|
-
case
|
|
765
|
+
case _n:
|
|
766
766
|
t = o;
|
|
767
767
|
break;
|
|
768
768
|
case Ct: {
|
|
@@ -776,18 +776,18 @@ function D(e) {
|
|
|
776
776
|
});
|
|
777
777
|
}
|
|
778
778
|
function je(e, t) {
|
|
779
|
-
return
|
|
779
|
+
return Mn(W(t), (n) => oe(e, n));
|
|
780
780
|
}
|
|
781
781
|
function ve() {
|
|
782
782
|
const e = [];
|
|
783
783
|
return ((t, n) => {
|
|
784
784
|
switch (t) {
|
|
785
|
-
case
|
|
785
|
+
case _n:
|
|
786
786
|
e.slice().forEach((r) => {
|
|
787
787
|
r(n);
|
|
788
788
|
});
|
|
789
789
|
return;
|
|
790
|
-
case
|
|
790
|
+
case Dt:
|
|
791
791
|
e.splice(0, e.length);
|
|
792
792
|
return;
|
|
793
793
|
case Ct:
|
|
@@ -799,7 +799,7 @@ function ve() {
|
|
|
799
799
|
});
|
|
800
800
|
}
|
|
801
801
|
function tt(e) {
|
|
802
|
-
return
|
|
802
|
+
return Mn(ve(), (t) => oe(e, t));
|
|
803
803
|
}
|
|
804
804
|
function ye(e, t = [], { singleton: n } = { singleton: !0 }) {
|
|
805
805
|
return {
|
|
@@ -830,8 +830,8 @@ function Ne(...e) {
|
|
|
830
830
|
});
|
|
831
831
|
}), function(i, s) {
|
|
832
832
|
switch (i) {
|
|
833
|
-
case
|
|
834
|
-
|
|
833
|
+
case Dt: {
|
|
834
|
+
Ir(t);
|
|
835
835
|
return;
|
|
836
836
|
}
|
|
837
837
|
case Ct:
|
|
@@ -842,10 +842,10 @@ function Ne(...e) {
|
|
|
842
842
|
function le(e, t = Jo) {
|
|
843
843
|
return H(e, Me(t));
|
|
844
844
|
}
|
|
845
|
-
function
|
|
845
|
+
function fr(...e) {
|
|
846
846
|
return function(t, n) {
|
|
847
847
|
switch (t) {
|
|
848
|
-
case
|
|
848
|
+
case Dt:
|
|
849
849
|
return;
|
|
850
850
|
case Ct:
|
|
851
851
|
return ps(...e.map((r) => Ie(r, n)));
|
|
@@ -860,12 +860,12 @@ const Ss = {
|
|
|
860
860
|
2: "warn"
|
|
861
861
|
}, ys = () => typeof globalThis > "u" ? window : globalThis, Tt = ye(
|
|
862
862
|
() => {
|
|
863
|
-
const e =
|
|
863
|
+
const e = W(
|
|
864
864
|
3
|
|
865
865
|
/* ERROR */
|
|
866
866
|
);
|
|
867
867
|
return {
|
|
868
|
-
log:
|
|
868
|
+
log: W((t, n, r = 1) => {
|
|
869
869
|
var o;
|
|
870
870
|
const i = (o = ys().VIRTUOSO_LOG_LEVEL) != null ? o : Pe(e);
|
|
871
871
|
r >= i && console[Ss[r]](
|
|
@@ -883,13 +883,13 @@ const Ss = {
|
|
|
883
883
|
{ singleton: !0 }
|
|
884
884
|
);
|
|
885
885
|
function zt(e, t, n) {
|
|
886
|
-
return
|
|
886
|
+
return Cr(e, t, n).callbackRef;
|
|
887
887
|
}
|
|
888
|
-
function
|
|
889
|
-
const r =
|
|
888
|
+
function Cr(e, t, n) {
|
|
889
|
+
const r = D.useRef(null);
|
|
890
890
|
let o = (s) => {
|
|
891
891
|
};
|
|
892
|
-
const i =
|
|
892
|
+
const i = D.useMemo(() => typeof ResizeObserver < "u" ? new ResizeObserver((s) => {
|
|
893
893
|
const u = () => {
|
|
894
894
|
const a = s[0].target;
|
|
895
895
|
a.offsetParent !== null && e(a);
|
|
@@ -901,7 +901,7 @@ function Ir(e, t, n) {
|
|
|
901
901
|
}, { callbackRef: o, ref: r };
|
|
902
902
|
}
|
|
903
903
|
function xs(e, t, n, r, o, i, s, u, a) {
|
|
904
|
-
const l =
|
|
904
|
+
const l = D.useCallback(
|
|
905
905
|
(d) => {
|
|
906
906
|
const h = ws(d.children, t, u ? "offsetWidth" : "offsetHeight", o);
|
|
907
907
|
let f = d.parentElement;
|
|
@@ -916,12 +916,12 @@ function xs(e, t, n, r, o, i, s, u, a) {
|
|
|
916
916
|
scrollTop: Math.max(y, 0),
|
|
917
917
|
viewportHeight: p
|
|
918
918
|
}), i == null || i(
|
|
919
|
-
u ?
|
|
919
|
+
u ? Xr("column-gap", getComputedStyle(d).columnGap, o) : Xr("row-gap", getComputedStyle(d).rowGap, o)
|
|
920
920
|
), h !== null && e(h);
|
|
921
921
|
},
|
|
922
922
|
[e, t, o, i, s, r, u]
|
|
923
923
|
);
|
|
924
|
-
return
|
|
924
|
+
return Cr(l, n, a);
|
|
925
925
|
}
|
|
926
926
|
function ws(e, t, n, r) {
|
|
927
927
|
const o = e.length;
|
|
@@ -940,11 +940,11 @@ function ws(e, t, n, r) {
|
|
|
940
940
|
}
|
|
941
941
|
return i;
|
|
942
942
|
}
|
|
943
|
-
function
|
|
943
|
+
function Xr(e, t, n) {
|
|
944
944
|
return t !== "normal" && !(t != null && t.endsWith("px")) && n(`${e} was not resolved to pixel value correctly`, t, Qe.WARN), t === "normal" ? 0 : parseInt(t ?? "0", 10);
|
|
945
945
|
}
|
|
946
946
|
function ei(e, t, n) {
|
|
947
|
-
const r =
|
|
947
|
+
const r = D.useRef(null), o = D.useCallback(
|
|
948
948
|
(a) => {
|
|
949
949
|
if (!(a != null && a.offsetParent))
|
|
950
950
|
return;
|
|
@@ -965,10 +965,10 @@ function ei(e, t, n) {
|
|
|
965
965
|
},
|
|
966
966
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
967
967
|
[e, t]
|
|
968
|
-
), { callbackRef: i, ref: s } =
|
|
968
|
+
), { callbackRef: i, ref: s } = Cr(o, !0, n), u = D.useCallback(() => {
|
|
969
969
|
o(s.current);
|
|
970
970
|
}, [o, s]);
|
|
971
|
-
return
|
|
971
|
+
return D.useEffect(() => {
|
|
972
972
|
var a;
|
|
973
973
|
if (t) {
|
|
974
974
|
t.addEventListener("scroll", u);
|
|
@@ -988,7 +988,7 @@ function ei(e, t, n) {
|
|
|
988
988
|
}
|
|
989
989
|
const Ke = ye(
|
|
990
990
|
() => {
|
|
991
|
-
const e = ve(), t = ve(), n =
|
|
991
|
+
const e = ve(), t = ve(), n = W(0), r = ve(), o = W(0), i = ve(), s = ve(), u = W(0), a = W(0), l = W(0), d = W(0), h = ve(), f = ve(), m = W(!1), v = W(!1), y = W(!1);
|
|
992
992
|
return oe(
|
|
993
993
|
H(
|
|
994
994
|
e,
|
|
@@ -1057,7 +1057,7 @@ function ct(e, t, n = "k") {
|
|
|
1057
1057
|
return ct(e.l, t, n);
|
|
1058
1058
|
}
|
|
1059
1059
|
function et(e, t, n) {
|
|
1060
|
-
return Te(e) ? oi(t, n, 1) : t === e.k ?
|
|
1060
|
+
return Te(e) ? oi(t, n, 1) : t === e.k ? De(e, { k: t, v: n }) : t < e.k ? Yr(De(e, { l: et(e.l, t, n) })) : Yr(De(e, { r: et(e.r, t, n) }));
|
|
1061
1061
|
}
|
|
1062
1062
|
function Lt() {
|
|
1063
1063
|
return Xt;
|
|
@@ -1066,9 +1066,9 @@ function Ht(e, t, n) {
|
|
|
1066
1066
|
if (Te(e))
|
|
1067
1067
|
return [];
|
|
1068
1068
|
const r = ct(e, t)[0];
|
|
1069
|
-
return Is(
|
|
1069
|
+
return Is(gr(e, r, n));
|
|
1070
1070
|
}
|
|
1071
|
-
function
|
|
1071
|
+
function pr(e, t) {
|
|
1072
1072
|
if (Te(e)) return Xt;
|
|
1073
1073
|
const { k: n, l: r, r: o } = e;
|
|
1074
1074
|
if (t === n) {
|
|
@@ -1078,55 +1078,55 @@ function fr(e, t) {
|
|
|
1078
1078
|
return r;
|
|
1079
1079
|
{
|
|
1080
1080
|
const [i, s] = ri(r);
|
|
1081
|
-
return
|
|
1081
|
+
return mn(De(e, { k: i, l: ni(r), v: s }));
|
|
1082
1082
|
}
|
|
1083
|
-
} else return t < n ?
|
|
1083
|
+
} else return t < n ? mn(De(e, { l: pr(r, t) })) : mn(De(e, { r: pr(o, t) }));
|
|
1084
1084
|
}
|
|
1085
1085
|
function Mt(e) {
|
|
1086
1086
|
return Te(e) ? [] : [...Mt(e.l), { k: e.k, v: e.v }, ...Mt(e.r)];
|
|
1087
1087
|
}
|
|
1088
|
-
function
|
|
1088
|
+
function gr(e, t, n) {
|
|
1089
1089
|
if (Te(e))
|
|
1090
1090
|
return [];
|
|
1091
1091
|
const { k: r, l: o, r: i, v: s } = e;
|
|
1092
1092
|
let u = [];
|
|
1093
|
-
return r > t && (u = u.concat(
|
|
1093
|
+
return r > t && (u = u.concat(gr(o, t, n))), r >= t && r <= n && u.push({ k: r, v: s }), r <= n && (u = u.concat(gr(i, t, n))), u;
|
|
1094
1094
|
}
|
|
1095
|
-
function
|
|
1095
|
+
function mn(e) {
|
|
1096
1096
|
const { l: t, lvl: n, r } = e;
|
|
1097
1097
|
if (r.lvl >= n - 1 && t.lvl >= n - 1)
|
|
1098
1098
|
return e;
|
|
1099
1099
|
if (n > r.lvl + 1) {
|
|
1100
|
-
if (
|
|
1101
|
-
return ii(
|
|
1100
|
+
if (Wn(t))
|
|
1101
|
+
return ii(De(e, { lvl: n - 1 }));
|
|
1102
1102
|
if (!Te(t) && !Te(t.r))
|
|
1103
|
-
return
|
|
1104
|
-
l:
|
|
1103
|
+
return De(t.r, {
|
|
1104
|
+
l: De(t, { r: t.r.l }),
|
|
1105
1105
|
lvl: n,
|
|
1106
|
-
r:
|
|
1106
|
+
r: De(e, {
|
|
1107
1107
|
l: t.r.r,
|
|
1108
1108
|
lvl: n - 1
|
|
1109
1109
|
})
|
|
1110
1110
|
});
|
|
1111
1111
|
throw new Error("Unexpected empty nodes");
|
|
1112
1112
|
} else {
|
|
1113
|
-
if (
|
|
1114
|
-
return
|
|
1113
|
+
if (Wn(e))
|
|
1114
|
+
return hr(De(e, { lvl: n - 1 }));
|
|
1115
1115
|
if (!Te(r) && !Te(r.l)) {
|
|
1116
|
-
const o = r.l, i =
|
|
1117
|
-
return
|
|
1118
|
-
l:
|
|
1116
|
+
const o = r.l, i = Wn(o) ? r.lvl - 1 : r.lvl;
|
|
1117
|
+
return De(o, {
|
|
1118
|
+
l: De(e, {
|
|
1119
1119
|
lvl: n - 1,
|
|
1120
1120
|
r: o.l
|
|
1121
1121
|
}),
|
|
1122
1122
|
lvl: o.lvl + 1,
|
|
1123
|
-
r:
|
|
1123
|
+
r: hr(De(r, { l: o.r, lvl: i }))
|
|
1124
1124
|
});
|
|
1125
1125
|
} else
|
|
1126
1126
|
throw new Error("Unexpected empty nodes");
|
|
1127
1127
|
}
|
|
1128
1128
|
}
|
|
1129
|
-
function
|
|
1129
|
+
function De(e, t) {
|
|
1130
1130
|
return oi(
|
|
1131
1131
|
t.k !== void 0 ? t.k : e.k,
|
|
1132
1132
|
t.v !== void 0 ? t.v : e.v,
|
|
@@ -1136,9 +1136,9 @@ function We(e, t) {
|
|
|
1136
1136
|
);
|
|
1137
1137
|
}
|
|
1138
1138
|
function ni(e) {
|
|
1139
|
-
return Te(e.r) ? e.l :
|
|
1139
|
+
return Te(e.r) ? e.l : mn(De(e, { r: ni(e.r) }));
|
|
1140
1140
|
}
|
|
1141
|
-
function
|
|
1141
|
+
function Wn(e) {
|
|
1142
1142
|
return Te(e) || e.lvl > e.r.lvl;
|
|
1143
1143
|
}
|
|
1144
1144
|
function ri(e) {
|
|
@@ -1147,16 +1147,16 @@ function ri(e) {
|
|
|
1147
1147
|
function oi(e, t, n, r = Xt, o = Xt) {
|
|
1148
1148
|
return { k: e, l: r, lvl: n, r: o, v: t };
|
|
1149
1149
|
}
|
|
1150
|
-
function
|
|
1151
|
-
return
|
|
1150
|
+
function Yr(e) {
|
|
1151
|
+
return hr(ii(e));
|
|
1152
1152
|
}
|
|
1153
1153
|
function ii(e) {
|
|
1154
1154
|
const { l: t } = e;
|
|
1155
|
-
return !Te(t) && t.lvl === e.lvl ?
|
|
1155
|
+
return !Te(t) && t.lvl === e.lvl ? De(t, { r: De(e, { l: t.r }) }) : e;
|
|
1156
1156
|
}
|
|
1157
|
-
function
|
|
1157
|
+
function hr(e) {
|
|
1158
1158
|
const { lvl: t, r: n } = e;
|
|
1159
|
-
return !Te(n) && !Te(n.r) && n.lvl === t && n.r.lvl === t ?
|
|
1159
|
+
return !Te(n) && !Te(n.r) && n.lvl === t && n.r.lvl === t ? De(n, { l: De(e, { r: n.l }), lvl: t + 1 }) : e;
|
|
1160
1160
|
}
|
|
1161
1161
|
function Is(e) {
|
|
1162
1162
|
return ti(e, ({ k: t, v: n }) => ({ index: t, value: n }));
|
|
@@ -1167,15 +1167,15 @@ function si(e, t) {
|
|
|
1167
1167
|
function Qt(e, t) {
|
|
1168
1168
|
return !!(e && e[0] === t[0] && e[1] === t[1]);
|
|
1169
1169
|
}
|
|
1170
|
-
const
|
|
1171
|
-
() => ({ recalcInProgress:
|
|
1170
|
+
const Tr = ye(
|
|
1171
|
+
() => ({ recalcInProgress: W(!1) }),
|
|
1172
1172
|
[],
|
|
1173
1173
|
{ singleton: !0 }
|
|
1174
1174
|
);
|
|
1175
1175
|
function li(e, t, n) {
|
|
1176
|
-
return e[
|
|
1176
|
+
return e[Sn(e, t, n)];
|
|
1177
1177
|
}
|
|
1178
|
-
function
|
|
1178
|
+
function Sn(e, t, n, r = 0) {
|
|
1179
1179
|
let o = e.length - 1;
|
|
1180
1180
|
for (; r <= o; ) {
|
|
1181
1181
|
const i = Math.floor((r + o) / 2), s = e[i], u = n(s, t);
|
|
@@ -1194,16 +1194,16 @@ function vn(e, t, n, r = 0) {
|
|
|
1194
1194
|
throw new Error(`Failed binary finding record in array - ${e.join(",")}, searched for ${t}`);
|
|
1195
1195
|
}
|
|
1196
1196
|
function Cs(e, t, n, r) {
|
|
1197
|
-
const o =
|
|
1197
|
+
const o = Sn(e, t, r), i = Sn(e, n, r, o);
|
|
1198
1198
|
return e.slice(o, i + 1);
|
|
1199
1199
|
}
|
|
1200
1200
|
function xt(e, t) {
|
|
1201
1201
|
return Math.round(e.getBoundingClientRect()[t]);
|
|
1202
1202
|
}
|
|
1203
|
-
function
|
|
1203
|
+
function En(e) {
|
|
1204
1204
|
return !Te(e.groupOffsetTree);
|
|
1205
1205
|
}
|
|
1206
|
-
function
|
|
1206
|
+
function kr({ index: e }, t) {
|
|
1207
1207
|
return t === e ? 0 : t < e ? -1 : 1;
|
|
1208
1208
|
}
|
|
1209
1209
|
function Ts() {
|
|
@@ -1230,7 +1230,7 @@ function ks(e, t) {
|
|
|
1230
1230
|
continue;
|
|
1231
1231
|
let a = !1, l = !1;
|
|
1232
1232
|
for (const { end: d, start: h, value: f } of u)
|
|
1233
|
-
a ? (o >= h || i === f) && (e =
|
|
1233
|
+
a ? (o >= h || i === f) && (e = pr(e, h)) : (l = f !== i, a = !0), d > o && o >= h && f !== i && (e = et(e, o + 1, f));
|
|
1234
1234
|
l && (e = et(e, s, i));
|
|
1235
1235
|
}
|
|
1236
1236
|
return [e, n];
|
|
@@ -1244,11 +1244,11 @@ function _s({ offset: e }, t) {
|
|
|
1244
1244
|
function Zt(e, t, n) {
|
|
1245
1245
|
if (t.length === 0)
|
|
1246
1246
|
return 0;
|
|
1247
|
-
const { index: r, offset: o, size: i } = li(t, e,
|
|
1247
|
+
const { index: r, offset: o, size: i } = li(t, e, kr), s = e - r, u = i * s + (s - 1) * n + o;
|
|
1248
1248
|
return u > 0 ? u + n : u;
|
|
1249
1249
|
}
|
|
1250
1250
|
function ai(e, t) {
|
|
1251
|
-
if (!
|
|
1251
|
+
if (!En(t))
|
|
1252
1252
|
return e;
|
|
1253
1253
|
let n = 0;
|
|
1254
1254
|
for (; t.groupIndices[n] <= e + n; )
|
|
@@ -1265,7 +1265,7 @@ function ci(e, t, n) {
|
|
|
1265
1265
|
}
|
|
1266
1266
|
}
|
|
1267
1267
|
function Ms(e, t, n, r = 0) {
|
|
1268
|
-
return r > 0 && (t = Math.max(t, li(e, r,
|
|
1268
|
+
return r > 0 && (t = Math.max(t, li(e, r, kr).offset)), ti(Cs(e, t, n, _s), zs);
|
|
1269
1269
|
}
|
|
1270
1270
|
function Es(e, [t, n, r, o]) {
|
|
1271
1271
|
t.length > 0 && r("received item sizes", t, Qe.DEBUG);
|
|
@@ -1278,7 +1278,7 @@ function Es(e, [t, n, r, o]) {
|
|
|
1278
1278
|
[s, u] = ks(s, t);
|
|
1279
1279
|
if (s === i)
|
|
1280
1280
|
return e;
|
|
1281
|
-
const { lastIndex: a, lastOffset: l, lastSize: d, offsetTree: h } =
|
|
1281
|
+
const { lastIndex: a, lastOffset: l, lastSize: d, offsetTree: h } = mr(e.offsetTree, u, s, o);
|
|
1282
1282
|
return {
|
|
1283
1283
|
groupIndices: n,
|
|
1284
1284
|
groupOffsetTree: n.reduce((f, m) => et(f, m, Zt(m, h, o)), Lt()),
|
|
@@ -1295,16 +1295,16 @@ function Os(e) {
|
|
|
1295
1295
|
return { endIndex: i ? i.k - 1 : 1 / 0, size: n, startIndex: t };
|
|
1296
1296
|
});
|
|
1297
1297
|
}
|
|
1298
|
-
function
|
|
1298
|
+
function Qr(e, t) {
|
|
1299
1299
|
let n = 0, r = 0;
|
|
1300
1300
|
for (; n < e; )
|
|
1301
1301
|
n += t[r + 1] - t[r] - 1, r++;
|
|
1302
1302
|
return r - (n === e ? 0 : 1);
|
|
1303
1303
|
}
|
|
1304
|
-
function
|
|
1304
|
+
function mr(e, t, n, r) {
|
|
1305
1305
|
let o = e, i = 0, s = 0, u = 0, a = 0;
|
|
1306
1306
|
if (t !== 0) {
|
|
1307
|
-
a =
|
|
1307
|
+
a = Sn(o, t - 1, kr), u = o[a].offset;
|
|
1308
1308
|
const l = ct(n, t - 1);
|
|
1309
1309
|
i = l[0], s = l[1], o.length && o[a].size === ct(n, t)[1] && (a -= 1), o = o.slice(0, a + 1);
|
|
1310
1310
|
} else
|
|
@@ -1336,7 +1336,7 @@ const As = {
|
|
|
1336
1336
|
offsetWidth: "width"
|
|
1337
1337
|
}, ht = ye(
|
|
1338
1338
|
([{ log: e }, { recalcInProgress: t }]) => {
|
|
1339
|
-
const n = ve(), r = ve(), o = je(r, 0), i = ve(), s = ve(), u =
|
|
1339
|
+
const n = ve(), r = ve(), o = je(r, 0), i = ve(), s = ve(), u = W(0), a = W([]), l = W(void 0), d = W(void 0), h = W(void 0), f = W(void 0), m = W((b, S) => xt(b, As[S])), v = W(void 0), y = W(0), c = Ts(), p = je(
|
|
1340
1340
|
H(n, he(a, e, y), gt(Es, c), Me()),
|
|
1341
1341
|
c
|
|
1342
1342
|
), g = je(
|
|
@@ -1474,10 +1474,10 @@ const As = {
|
|
|
1474
1474
|
(b) => {
|
|
1475
1475
|
const { groupIndices: S } = Pe(p);
|
|
1476
1476
|
if (b > 0)
|
|
1477
|
-
fe(t, !0), fe(i, b +
|
|
1477
|
+
fe(t, !0), fe(i, b + Qr(b, S));
|
|
1478
1478
|
else if (b < 0) {
|
|
1479
1479
|
const _ = Pe(g);
|
|
1480
|
-
_.length > 0 && (b -=
|
|
1480
|
+
_.length > 0 && (b -= Qr(-b, _)), fe(s, b);
|
|
1481
1481
|
}
|
|
1482
1482
|
}
|
|
1483
1483
|
), Ie(H(u, he(e)), ([b, S]) => {
|
|
@@ -1584,14 +1584,14 @@ const As = {
|
|
|
1584
1584
|
return {
|
|
1585
1585
|
...S,
|
|
1586
1586
|
sizeTree: C,
|
|
1587
|
-
...
|
|
1587
|
+
...mr(S.offsetTree, 0, C, _)
|
|
1588
1588
|
};
|
|
1589
1589
|
} else {
|
|
1590
1590
|
const C = Mt(S.sizeTree).reduce((O, { k: P, v: I }) => et(O, Math.max(0, P + b), I), Lt());
|
|
1591
1591
|
return {
|
|
1592
1592
|
...S,
|
|
1593
1593
|
sizeTree: C,
|
|
1594
|
-
...
|
|
1594
|
+
...mr(S.offsetTree, 0, C, _)
|
|
1595
1595
|
};
|
|
1596
1596
|
}
|
|
1597
1597
|
})
|
|
@@ -1621,7 +1621,7 @@ const As = {
|
|
|
1621
1621
|
unshiftWith: i
|
|
1622
1622
|
};
|
|
1623
1623
|
},
|
|
1624
|
-
Ee(Tt,
|
|
1624
|
+
Ee(Tt, Tr),
|
|
1625
1625
|
{ singleton: !0 }
|
|
1626
1626
|
);
|
|
1627
1627
|
function Bs(e) {
|
|
@@ -1651,7 +1651,7 @@ const ui = ye(
|
|
|
1651
1651
|
), oe(
|
|
1652
1652
|
H(
|
|
1653
1653
|
Ne(o, t, r),
|
|
1654
|
-
ae(([a, l]) =>
|
|
1654
|
+
ae(([a, l]) => En(l)),
|
|
1655
1655
|
Q(([a, l, d]) => ct(l.groupOffsetTree, Math.max(a - d, 0), "v")[0]),
|
|
1656
1656
|
Me(),
|
|
1657
1657
|
Q((a) => [a])
|
|
@@ -1662,7 +1662,7 @@ const ui = ye(
|
|
|
1662
1662
|
Ee(ht, Ke)
|
|
1663
1663
|
), kt = ye(
|
|
1664
1664
|
([{ log: e }]) => {
|
|
1665
|
-
const t =
|
|
1665
|
+
const t = W(!1), n = tt(
|
|
1666
1666
|
H(
|
|
1667
1667
|
t,
|
|
1668
1668
|
ae((r) => r),
|
|
@@ -1695,7 +1695,7 @@ const on = ye(
|
|
|
1695
1695
|
},
|
|
1696
1696
|
{ log: f }
|
|
1697
1697
|
]) => {
|
|
1698
|
-
const m = ve(), v = ve(), y =
|
|
1698
|
+
const m = ve(), v = ve(), y = W(0);
|
|
1699
1699
|
let c = null, p = null, g = null;
|
|
1700
1700
|
function w() {
|
|
1701
1701
|
c && (c(), c = null), g && (g(), g = null), p && (clearTimeout(p), p = null), fe(a, !1);
|
|
@@ -1753,18 +1753,18 @@ function Ls(e) {
|
|
|
1753
1753
|
};
|
|
1754
1754
|
};
|
|
1755
1755
|
}
|
|
1756
|
-
function
|
|
1756
|
+
function Rr(e, t) {
|
|
1757
1757
|
e == 0 ? t() : requestAnimationFrame(() => {
|
|
1758
|
-
|
|
1758
|
+
Rr(e - 1, t);
|
|
1759
1759
|
});
|
|
1760
1760
|
}
|
|
1761
|
-
function
|
|
1761
|
+
function _r(e, t) {
|
|
1762
1762
|
const n = t - 1;
|
|
1763
1763
|
return typeof e == "number" ? e : e.index === "LAST" ? n : e.index;
|
|
1764
1764
|
}
|
|
1765
1765
|
const sn = ye(
|
|
1766
1766
|
([{ defaultItemSize: e, listRefresh: t, sizes: n }, { scrollTop: r }, { scrollTargetReached: o, scrollToIndex: i }, { didMount: s }]) => {
|
|
1767
|
-
const u =
|
|
1767
|
+
const u = W(!0), a = W(0), l = W(!0);
|
|
1768
1768
|
return oe(
|
|
1769
1769
|
H(
|
|
1770
1770
|
s,
|
|
@@ -1785,13 +1785,13 @@ const sn = ye(
|
|
|
1785
1785
|
H(
|
|
1786
1786
|
Ne(t, s),
|
|
1787
1787
|
he(u, n, e, l),
|
|
1788
|
-
ae(([[, d], h, { sizeTree: f }, m, v]) => d && (!Te(f) ||
|
|
1788
|
+
ae(([[, d], h, { sizeTree: f }, m, v]) => d && (!Te(f) || wr(m)) && !h && !v),
|
|
1789
1789
|
he(a)
|
|
1790
1790
|
),
|
|
1791
1791
|
([, d]) => {
|
|
1792
1792
|
at(o, () => {
|
|
1793
1793
|
fe(l, !0);
|
|
1794
|
-
}),
|
|
1794
|
+
}), Rr(4, () => {
|
|
1795
1795
|
at(r, () => {
|
|
1796
1796
|
fe(u, !0);
|
|
1797
1797
|
}), fe(i, d);
|
|
@@ -1819,14 +1819,14 @@ const Jt = "up", Ut = "down", Hs = "none", Ns = {
|
|
|
1819
1819
|
viewportHeight: 0
|
|
1820
1820
|
}
|
|
1821
1821
|
}, Fs = 0, ln = ye(([{ footerHeight: e, headerHeight: t, scrollBy: n, scrollContainerState: r, scrollTop: o, viewportHeight: i }]) => {
|
|
1822
|
-
const s =
|
|
1822
|
+
const s = W(!1), u = W(!0), a = ve(), l = ve(), d = W(4), h = W(Fs), f = je(
|
|
1823
1823
|
H(
|
|
1824
|
-
|
|
1824
|
+
fr(H(le(o), Et(1), ft(!0)), H(le(o), Et(1), ft(!1), Kr(100))),
|
|
1825
1825
|
Me()
|
|
1826
1826
|
),
|
|
1827
1827
|
!1
|
|
1828
1828
|
), m = je(
|
|
1829
|
-
H(
|
|
1829
|
+
H(fr(H(n, ft(!0)), H(n, ft(!1), Kr(200))), Me()),
|
|
1830
1830
|
!1
|
|
1831
1831
|
);
|
|
1832
1832
|
oe(
|
|
@@ -1905,7 +1905,7 @@ const Jt = "up", Ut = "down", Hs = "none", Ns = {
|
|
|
1905
1905
|
),
|
|
1906
1906
|
s
|
|
1907
1907
|
), oe(H(s, mt(50)), a);
|
|
1908
|
-
const c =
|
|
1908
|
+
const c = W(Ut);
|
|
1909
1909
|
oe(
|
|
1910
1910
|
H(
|
|
1911
1911
|
r,
|
|
@@ -1919,7 +1919,7 @@ const Jt = "up", Ut = "down", Hs = "none", Ns = {
|
|
|
1919
1919
|
),
|
|
1920
1920
|
c
|
|
1921
1921
|
), oe(H(r, mt(50), ft(Hs)), c);
|
|
1922
|
-
const p =
|
|
1922
|
+
const p = W(0);
|
|
1923
1923
|
return oe(
|
|
1924
1924
|
H(
|
|
1925
1925
|
f,
|
|
@@ -1950,17 +1950,17 @@ const Jt = "up", Ut = "down", Hs = "none", Ns = {
|
|
|
1950
1950
|
scrollDirection: c,
|
|
1951
1951
|
scrollVelocity: p
|
|
1952
1952
|
};
|
|
1953
|
-
}, Ee(Ke)), en = "top", tn = "bottom",
|
|
1954
|
-
function
|
|
1953
|
+
}, Ee(Ke)), en = "top", tn = "bottom", Zr = "none";
|
|
1954
|
+
function Jr(e, t, n) {
|
|
1955
1955
|
return typeof e == "number" ? n === Jt && t === en || n === Ut && t === tn ? e : 0 : n === Jt ? t === en ? e.main : e.reverse : t === tn ? e.main : e.reverse;
|
|
1956
1956
|
}
|
|
1957
|
-
function
|
|
1957
|
+
function eo(e, t) {
|
|
1958
1958
|
var n;
|
|
1959
1959
|
return typeof e == "number" ? e : (n = e[t]) != null ? n : 0;
|
|
1960
1960
|
}
|
|
1961
|
-
const
|
|
1961
|
+
const Mr = ye(
|
|
1962
1962
|
([{ deviation: e, fixedHeaderHeight: t, headerHeight: n, scrollTop: r, viewportHeight: o }]) => {
|
|
1963
|
-
const i = ve(), s =
|
|
1963
|
+
const i = ve(), s = W(0), u = W(0), a = W(0), l = je(
|
|
1964
1964
|
H(
|
|
1965
1965
|
Ne(
|
|
1966
1966
|
le(r),
|
|
@@ -1986,11 +1986,11 @@ const _r = ye(
|
|
|
1986
1986
|
w
|
|
1987
1987
|
]) => {
|
|
1988
1988
|
const T = d - g, k = c + p, M = Math.max(f - T, 0);
|
|
1989
|
-
let b =
|
|
1990
|
-
const S =
|
|
1991
|
-
return m -= g, m += f + p, v += f + p, v -= g, m > d + k - S && (b = Jt), v < d - M + h + _ && (b = Ut), b !==
|
|
1992
|
-
Math.max(T - f -
|
|
1993
|
-
T - M - p + h +
|
|
1989
|
+
let b = Zr;
|
|
1990
|
+
const S = eo(w, en), _ = eo(w, tn);
|
|
1991
|
+
return m -= g, m += f + p, v += f + p, v -= g, m > d + k - S && (b = Jt), v < d - M + h + _ && (b = Ut), b !== Zr ? [
|
|
1992
|
+
Math.max(T - f - Jr(y, en, b) - S, 0),
|
|
1993
|
+
T - M - p + h + Jr(y, tn, b) + _
|
|
1994
1994
|
] : null;
|
|
1995
1995
|
}
|
|
1996
1996
|
),
|
|
@@ -2012,8 +2012,8 @@ const _r = ye(
|
|
|
2012
2012
|
Ee(Ke),
|
|
2013
2013
|
{ singleton: !0 }
|
|
2014
2014
|
);
|
|
2015
|
-
function
|
|
2016
|
-
if (
|
|
2015
|
+
function Ws(e, t, n) {
|
|
2016
|
+
if (En(t)) {
|
|
2017
2017
|
const r = ai(e, t);
|
|
2018
2018
|
return [
|
|
2019
2019
|
{ index: ct(t.groupOffsetTree, r)[0], offset: 0, size: 0 },
|
|
@@ -2033,7 +2033,7 @@ const Dn = {
|
|
|
2033
2033
|
topListHeight: 0,
|
|
2034
2034
|
totalCount: 0
|
|
2035
2035
|
};
|
|
2036
|
-
function
|
|
2036
|
+
function bn(e, t, n, r, o, i) {
|
|
2037
2037
|
const { lastIndex: s, lastOffset: u, lastSize: a } = o;
|
|
2038
2038
|
let l = 0, d = 0;
|
|
2039
2039
|
if (e.length > 0) {
|
|
@@ -2045,11 +2045,11 @@ function mn(e, t, n, r, o, i) {
|
|
|
2045
2045
|
return {
|
|
2046
2046
|
bottom: d,
|
|
2047
2047
|
firstItemIndex: i,
|
|
2048
|
-
items:
|
|
2048
|
+
items: to(e, o, i),
|
|
2049
2049
|
offsetBottom: v,
|
|
2050
2050
|
offsetTop: l,
|
|
2051
2051
|
top: m,
|
|
2052
|
-
topItems:
|
|
2052
|
+
topItems: to(t, o, i),
|
|
2053
2053
|
topListHeight: t.reduce((y, c) => c.size + y, 0),
|
|
2054
2054
|
totalCount: n
|
|
2055
2055
|
};
|
|
@@ -2062,18 +2062,18 @@ function pi(e, t, n, r, o, i) {
|
|
|
2062
2062
|
break;
|
|
2063
2063
|
s++;
|
|
2064
2064
|
}
|
|
2065
|
-
const u = e + s, a =
|
|
2065
|
+
const u = e + s, a = _r(t, u), l = Array.from({ length: u }).map((d, h) => ({
|
|
2066
2066
|
data: i[h + a],
|
|
2067
2067
|
index: h + a,
|
|
2068
2068
|
offset: 0,
|
|
2069
2069
|
size: 0
|
|
2070
2070
|
}));
|
|
2071
|
-
return
|
|
2071
|
+
return bn(l, [], u, o, n, r);
|
|
2072
2072
|
}
|
|
2073
|
-
function
|
|
2073
|
+
function to(e, t, n) {
|
|
2074
2074
|
if (e.length === 0)
|
|
2075
2075
|
return [];
|
|
2076
|
-
if (!
|
|
2076
|
+
if (!En(t))
|
|
2077
2077
|
return e.map((l) => ({ ...l, index: l.index + n, originalIndex: l.index }));
|
|
2078
2078
|
const r = e[0].index, o = e[e.length - 1].index, i = [], s = Ht(t.groupOffsetTree, r, o);
|
|
2079
2079
|
let u, a = 0;
|
|
@@ -2096,7 +2096,7 @@ function eo(e, t, n) {
|
|
|
2096
2096
|
}
|
|
2097
2097
|
return i;
|
|
2098
2098
|
}
|
|
2099
|
-
function
|
|
2099
|
+
function no(e, t) {
|
|
2100
2100
|
var n;
|
|
2101
2101
|
return e === void 0 ? 0 : typeof e == "number" ? e : (n = e[t]) != null ? n : 0;
|
|
2102
2102
|
}
|
|
@@ -2111,7 +2111,7 @@ const Pt = ye(
|
|
|
2111
2111
|
{ didMount: m },
|
|
2112
2112
|
{ recalcInProgress: v }
|
|
2113
2113
|
]) => {
|
|
2114
|
-
const y =
|
|
2114
|
+
const y = W([]), c = W(0), p = ve(), g = W(0);
|
|
2115
2115
|
oe(i.topItemsIndexes, y);
|
|
2116
2116
|
const w = je(
|
|
2117
2117
|
H(
|
|
@@ -2155,8 +2155,8 @@ const Pt = ye(
|
|
|
2155
2155
|
if (b === 0 && S === 0)
|
|
2156
2156
|
return K === 0 ? { ...Dn, totalCount: _ } : pi(K, O, C, R, z, A || []);
|
|
2157
2157
|
if (Te(Fe))
|
|
2158
|
-
return K > 0 ? null :
|
|
2159
|
-
|
|
2158
|
+
return K > 0 ? null : bn(
|
|
2159
|
+
Ws(_r(O, _), Ce, A),
|
|
2160
2160
|
[],
|
|
2161
2161
|
_,
|
|
2162
2162
|
z,
|
|
@@ -2174,11 +2174,11 @@ const Pt = ye(
|
|
|
2174
2174
|
}
|
|
2175
2175
|
}
|
|
2176
2176
|
if (!P)
|
|
2177
|
-
return
|
|
2177
|
+
return bn([], $, _, z, Ce, R);
|
|
2178
2178
|
const G = I.length > 0 ? I[I.length - 1] + 1 : 0, E = Ms(xe, b, S, G);
|
|
2179
2179
|
if (E.length === 0)
|
|
2180
2180
|
return null;
|
|
2181
|
-
const L = _ - 1, q =
|
|
2181
|
+
const L = _ - 1, q = Mn([], (F) => {
|
|
2182
2182
|
for (const Y of E) {
|
|
2183
2183
|
const te = Y.value;
|
|
2184
2184
|
let J = te.offset, ce = Y.start;
|
|
@@ -2193,7 +2193,7 @@ const Pt = ye(
|
|
|
2193
2193
|
for (let ge = ce; ge <= we && !(J >= S); ge++)
|
|
2194
2194
|
F.push({ data: A == null ? void 0 : A[ge], index: ge, offset: J, size: se }), J += se + z;
|
|
2195
2195
|
}
|
|
2196
|
-
}), B =
|
|
2196
|
+
}), B = no(N, en), Z = no(N, tn);
|
|
2197
2197
|
if (q.length > 0 && (B > 0 || Z > 0)) {
|
|
2198
2198
|
const F = q[0], Y = q[q.length - 1];
|
|
2199
2199
|
if (B > 0 && F.index > G) {
|
|
@@ -2214,7 +2214,7 @@ const Pt = ye(
|
|
|
2214
2214
|
}
|
|
2215
2215
|
}
|
|
2216
2216
|
}
|
|
2217
|
-
return
|
|
2217
|
+
return bn(q, $, _, z, Ce, R);
|
|
2218
2218
|
}
|
|
2219
2219
|
),
|
|
2220
2220
|
//@ts-expect-error filter needs to be fixed
|
|
@@ -2226,7 +2226,7 @@ const Pt = ye(
|
|
|
2226
2226
|
oe(
|
|
2227
2227
|
H(
|
|
2228
2228
|
e,
|
|
2229
|
-
ae(
|
|
2229
|
+
ae(wr),
|
|
2230
2230
|
Q((b) => b == null ? void 0 : b.length)
|
|
2231
2231
|
),
|
|
2232
2232
|
o
|
|
@@ -2300,12 +2300,12 @@ const Pt = ye(
|
|
|
2300
2300
|
Ee(
|
|
2301
2301
|
ht,
|
|
2302
2302
|
ui,
|
|
2303
|
-
|
|
2303
|
+
Mr,
|
|
2304
2304
|
sn,
|
|
2305
2305
|
on,
|
|
2306
2306
|
ln,
|
|
2307
2307
|
kt,
|
|
2308
|
-
|
|
2308
|
+
Tr
|
|
2309
2309
|
),
|
|
2310
2310
|
{ singleton: !0 }
|
|
2311
2311
|
), gi = ye(
|
|
@@ -2321,9 +2321,9 @@ const Pt = ye(
|
|
|
2321
2321
|
},
|
|
2322
2322
|
Ee(Ke, Pt),
|
|
2323
2323
|
{ singleton: !0 }
|
|
2324
|
-
),
|
|
2324
|
+
), Ds = ye(
|
|
2325
2325
|
([{ viewportHeight: e }, { totalListHeight: t }]) => {
|
|
2326
|
-
const n =
|
|
2326
|
+
const n = W(!1), r = je(
|
|
2327
2327
|
H(
|
|
2328
2328
|
Ne(n, e, t),
|
|
2329
2329
|
ae(([o]) => o),
|
|
@@ -2338,7 +2338,7 @@ const Pt = ye(
|
|
|
2338
2338
|
Ee(Ke, gi),
|
|
2339
2339
|
{ singleton: !0 }
|
|
2340
2340
|
), hi = ye(() => ({
|
|
2341
|
-
context:
|
|
2341
|
+
context: W(null)
|
|
2342
2342
|
})), $s = ({
|
|
2343
2343
|
itemBottom: e,
|
|
2344
2344
|
itemTop: t,
|
|
@@ -2386,10 +2386,10 @@ const Pt = ye(
|
|
|
2386
2386
|
Ee(ht, Ke, on, Pt, Tt),
|
|
2387
2387
|
{ singleton: !0 }
|
|
2388
2388
|
);
|
|
2389
|
-
function
|
|
2389
|
+
function ro(e) {
|
|
2390
2390
|
return e ? e === "smooth" ? "smooth" : "auto" : !1;
|
|
2391
2391
|
}
|
|
2392
|
-
const Vs = (e, t) => typeof e == "function" ?
|
|
2392
|
+
const Vs = (e, t) => typeof e == "function" ? ro(e(t)) : t && ro(e), qs = ye(
|
|
2393
2393
|
([
|
|
2394
2394
|
{ listRefresh: e, totalCount: t, fixedItemSize: n, data: r },
|
|
2395
2395
|
{ atBottomState: o, isAtBottom: i },
|
|
@@ -2401,7 +2401,7 @@ const Vs = (e, t) => typeof e == "function" ? no(e(t)) : t && no(e), qs = ye(
|
|
|
2401
2401
|
{ context: f },
|
|
2402
2402
|
{ scrollIntoView: m }
|
|
2403
2403
|
]) => {
|
|
2404
|
-
const v =
|
|
2404
|
+
const v = W(!1), y = ve();
|
|
2405
2405
|
let c = null;
|
|
2406
2406
|
function p(k) {
|
|
2407
2407
|
fe(s, {
|
|
@@ -2453,9 +2453,9 @@ const Vs = (e, t) => typeof e == "function" ? no(e(t)) : t && no(e), qs = ye(
|
|
|
2453
2453
|
}), Ie(Ne(le(v), o), ([k, M]) => {
|
|
2454
2454
|
k && !M.atBottom && M.notAtBottomBecause === "VIEWPORT_HEIGHT_DECREASING" && p("auto");
|
|
2455
2455
|
});
|
|
2456
|
-
const w =
|
|
2456
|
+
const w = W(null), T = ve();
|
|
2457
2457
|
return oe(
|
|
2458
|
-
|
|
2458
|
+
fr(
|
|
2459
2459
|
H(
|
|
2460
2460
|
le(r),
|
|
2461
2461
|
Q((k) => {
|
|
@@ -2509,7 +2509,7 @@ const Vs = (e, t) => typeof e == "function" ? no(e(t)) : t && no(e), qs = ye(
|
|
|
2509
2509
|
{ singleton: !0 }
|
|
2510
2510
|
), Us = ye(
|
|
2511
2511
|
([{ didMount: e }, { scrollTo: t }, { listState: n }]) => {
|
|
2512
|
-
const r =
|
|
2512
|
+
const r = W(0);
|
|
2513
2513
|
return Ie(
|
|
2514
2514
|
H(
|
|
2515
2515
|
e,
|
|
@@ -2539,7 +2539,7 @@ const Vs = (e, t) => typeof e == "function" ? no(e(t)) : t && no(e), qs = ye(
|
|
|
2539
2539
|
{ singleton: !0 }
|
|
2540
2540
|
), bi = ye(
|
|
2541
2541
|
([{ scrollVelocity: e }]) => {
|
|
2542
|
-
const t =
|
|
2542
|
+
const t = W(!1), n = ve(), r = W(!1);
|
|
2543
2543
|
return oe(
|
|
2544
2544
|
H(
|
|
2545
2545
|
e,
|
|
@@ -2566,8 +2566,8 @@ const Vs = (e, t) => typeof e == "function" ? no(e(t)) : t && no(e), qs = ye(
|
|
|
2566
2566
|
},
|
|
2567
2567
|
Ee(ln),
|
|
2568
2568
|
{ singleton: !0 }
|
|
2569
|
-
),
|
|
2570
|
-
const n = ve(), r = ve(), o = ve(), i =
|
|
2569
|
+
), Er = ye(([{ scrollContainerState: e, scrollTo: t }]) => {
|
|
2570
|
+
const n = ve(), r = ve(), o = ve(), i = W(!1), s = W(void 0);
|
|
2571
2571
|
return oe(
|
|
2572
2572
|
H(
|
|
2573
2573
|
Ne(n, r),
|
|
@@ -2606,7 +2606,7 @@ const Vs = (e, t) => typeof e == "function" ? no(e(t)) : t && no(e), qs = ye(
|
|
|
2606
2606
|
{ didMount: i },
|
|
2607
2607
|
{ useWindowScroll: s, windowScrollContainerState: u, windowViewportRect: a }
|
|
2608
2608
|
]) => {
|
|
2609
|
-
const l = ve(), d =
|
|
2609
|
+
const l = ve(), d = W(void 0), h = W(null), f = W(null);
|
|
2610
2610
|
return oe(u, h), oe(a, f), Ie(
|
|
2611
2611
|
H(
|
|
2612
2612
|
l,
|
|
@@ -2616,7 +2616,7 @@ const Vs = (e, t) => typeof e == "function" ? no(e(t)) : t && no(e), qs = ye(
|
|
|
2616
2616
|
const T = Os(v.sizeTree);
|
|
2617
2617
|
c && p !== null && g !== null && (y = p.scrollTop - g.offsetTop), y -= w, m({ ranges: T, scrollTop: y });
|
|
2618
2618
|
}
|
|
2619
|
-
), oe(H(d, ae(
|
|
2619
|
+
), oe(H(d, ae(wr), Q(Xs)), o), oe(
|
|
2620
2620
|
H(
|
|
2621
2621
|
i,
|
|
2622
2622
|
he(d),
|
|
@@ -2630,13 +2630,13 @@ const Vs = (e, t) => typeof e == "function" ? no(e(t)) : t && no(e), qs = ye(
|
|
|
2630
2630
|
restoreStateFrom: d
|
|
2631
2631
|
};
|
|
2632
2632
|
},
|
|
2633
|
-
Ee(ht, Ke, sn, kt,
|
|
2633
|
+
Ee(ht, Ke, sn, kt, Er)
|
|
2634
2634
|
);
|
|
2635
2635
|
function Xs(e) {
|
|
2636
2636
|
return { align: "start", index: 0, offset: e.scrollTop };
|
|
2637
2637
|
}
|
|
2638
2638
|
const Ys = ye(([{ topItemsIndexes: e }]) => {
|
|
2639
|
-
const t =
|
|
2639
|
+
const t = W(0);
|
|
2640
2640
|
return oe(
|
|
2641
2641
|
H(
|
|
2642
2642
|
t,
|
|
@@ -2728,7 +2728,7 @@ const Qs = vi(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
|
|
|
2728
2728
|
}
|
|
2729
2729
|
), { deviation: e };
|
|
2730
2730
|
},
|
|
2731
|
-
Ee(Ke, ln, Pt, ht, Tt,
|
|
2731
|
+
Ee(Ke, ln, Pt, ht, Tt, Tr)
|
|
2732
2732
|
), Js = ye(
|
|
2733
2733
|
([
|
|
2734
2734
|
e,
|
|
@@ -2756,14 +2756,14 @@ const Qs = vi(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
|
|
|
2756
2756
|
...d
|
|
2757
2757
|
}),
|
|
2758
2758
|
Ee(
|
|
2759
|
-
|
|
2759
|
+
Mr,
|
|
2760
2760
|
js,
|
|
2761
2761
|
kt,
|
|
2762
2762
|
bi,
|
|
2763
2763
|
gi,
|
|
2764
2764
|
Us,
|
|
2765
|
-
|
|
2766
|
-
|
|
2765
|
+
Ds,
|
|
2766
|
+
Er,
|
|
2767
2767
|
mi,
|
|
2768
2768
|
Tt,
|
|
2769
2769
|
hi
|
|
@@ -2864,9 +2864,9 @@ function el(e, t) {
|
|
|
2864
2864
|
Object.hasOwn(r, s) || (n[s] = t[s]);
|
|
2865
2865
|
return n;
|
|
2866
2866
|
}
|
|
2867
|
-
const dn = typeof document < "u" ?
|
|
2867
|
+
const dn = typeof document < "u" ? D.useLayoutEffect : D.useEffect;
|
|
2868
2868
|
function yi(e, t, n) {
|
|
2869
|
-
const r = Object.keys(t.required || {}), o = Object.keys(t.optional || {}), i = Object.keys(t.methods || {}), s = Object.keys(t.events || {}), u =
|
|
2869
|
+
const r = Object.keys(t.required || {}), o = Object.keys(t.optional || {}), i = Object.keys(t.methods || {}), s = Object.keys(t.events || {}), u = D.createContext({});
|
|
2870
2870
|
function a(c, p) {
|
|
2871
2871
|
c.propsReady && fe(c.propsReady, !1);
|
|
2872
2872
|
for (const g of r) {
|
|
@@ -2889,72 +2889,72 @@ function yi(e, t, n) {
|
|
|
2889
2889
|
function d(c) {
|
|
2890
2890
|
return s.reduce((p, g) => (p[g] = ms(c[t.events[g]]), p), {});
|
|
2891
2891
|
}
|
|
2892
|
-
const h =
|
|
2893
|
-
const { children: g, ...w } = c, [T] =
|
|
2892
|
+
const h = D.forwardRef((c, p) => {
|
|
2893
|
+
const { children: g, ...w } = c, [T] = D.useState(() => Mn(vs(e), (b) => {
|
|
2894
2894
|
a(b, w);
|
|
2895
|
-
})), [k] =
|
|
2895
|
+
})), [k] = D.useState(Ur(d, T));
|
|
2896
2896
|
dn(() => {
|
|
2897
2897
|
for (const b of s)
|
|
2898
2898
|
b in w && Ie(k[b], w[b]);
|
|
2899
2899
|
return () => {
|
|
2900
|
-
Object.values(k).map(
|
|
2900
|
+
Object.values(k).map(Ir);
|
|
2901
2901
|
};
|
|
2902
2902
|
}, [w, k, T]), dn(() => {
|
|
2903
2903
|
a(T, w);
|
|
2904
|
-
}),
|
|
2904
|
+
}), D.useImperativeHandle(p, jr(l(T)));
|
|
2905
2905
|
const M = n;
|
|
2906
2906
|
return /* @__PURE__ */ x(u.Provider, { value: T, children: n ? /* @__PURE__ */ x(M, { ...el([...r, ...o, ...s], w), children: g }) : g });
|
|
2907
2907
|
}), f = (c) => {
|
|
2908
|
-
const p =
|
|
2909
|
-
return
|
|
2908
|
+
const p = D.useContext(u);
|
|
2909
|
+
return D.useCallback(
|
|
2910
2910
|
(g) => {
|
|
2911
2911
|
fe(p[c], g);
|
|
2912
2912
|
},
|
|
2913
2913
|
[p, c]
|
|
2914
2914
|
);
|
|
2915
2915
|
}, m = (c) => {
|
|
2916
|
-
const p =
|
|
2916
|
+
const p = D.useContext(u)[c], g = D.useCallback(
|
|
2917
2917
|
(w) => Ie(p, w),
|
|
2918
2918
|
[p]
|
|
2919
2919
|
);
|
|
2920
|
-
return
|
|
2920
|
+
return D.useSyncExternalStore(
|
|
2921
2921
|
g,
|
|
2922
2922
|
() => Pe(p),
|
|
2923
2923
|
() => Pe(p)
|
|
2924
2924
|
);
|
|
2925
2925
|
}, v = (c) => {
|
|
2926
|
-
const p =
|
|
2926
|
+
const p = D.useContext(u)[c], [g, w] = D.useState(Ur(Pe, p));
|
|
2927
2927
|
return dn(
|
|
2928
2928
|
() => Ie(p, (T) => {
|
|
2929
|
-
T !== g && w(
|
|
2929
|
+
T !== g && w(jr(T));
|
|
2930
2930
|
}),
|
|
2931
2931
|
[p, g]
|
|
2932
2932
|
), g;
|
|
2933
|
-
}, y =
|
|
2933
|
+
}, y = D.version.startsWith("18") ? m : v;
|
|
2934
2934
|
return {
|
|
2935
2935
|
Component: h,
|
|
2936
2936
|
useEmitter: (c, p) => {
|
|
2937
|
-
const g =
|
|
2937
|
+
const g = D.useContext(u)[c];
|
|
2938
2938
|
dn(() => Ie(g, p), [p, g]);
|
|
2939
2939
|
},
|
|
2940
2940
|
useEmitterValue: y,
|
|
2941
2941
|
usePublisher: f
|
|
2942
2942
|
};
|
|
2943
2943
|
}
|
|
2944
|
-
const xi =
|
|
2945
|
-
function
|
|
2944
|
+
const xi = D.createContext(void 0), wi = D.createContext(void 0), Ii = typeof document < "u" ? D.useLayoutEffect : D.useEffect;
|
|
2945
|
+
function $n(e) {
|
|
2946
2946
|
return "self" in e;
|
|
2947
2947
|
}
|
|
2948
2948
|
function tl(e) {
|
|
2949
2949
|
return "body" in e;
|
|
2950
2950
|
}
|
|
2951
2951
|
function Ci(e, t, n, r = $t, o, i) {
|
|
2952
|
-
const s =
|
|
2952
|
+
const s = D.useRef(null), u = D.useRef(null), a = D.useRef(null), l = D.useCallback(
|
|
2953
2953
|
(f) => {
|
|
2954
2954
|
let m, v, y;
|
|
2955
2955
|
const c = f.target;
|
|
2956
|
-
if (tl(c) ||
|
|
2957
|
-
const g =
|
|
2956
|
+
if (tl(c) || $n(c)) {
|
|
2957
|
+
const g = $n(c) ? c : c.defaultView;
|
|
2958
2958
|
y = i ? g.scrollX : g.scrollY, m = i ? g.document.documentElement.scrollWidth : g.document.documentElement.scrollHeight, v = i ? g.innerWidth : g.innerHeight;
|
|
2959
2959
|
} else
|
|
2960
2960
|
y = i ? c.scrollLeft : c.scrollTop, m = i ? c.scrollWidth : c.scrollHeight, v = i ? c.offsetWidth : c.offsetHeight;
|
|
@@ -2969,7 +2969,7 @@ function Ci(e, t, n, r = $t, o, i) {
|
|
|
2969
2969
|
},
|
|
2970
2970
|
[e, t, i]
|
|
2971
2971
|
);
|
|
2972
|
-
|
|
2972
|
+
D.useEffect(() => {
|
|
2973
2973
|
const f = o || s.current;
|
|
2974
2974
|
return r(o || s.current), l({ suppressFlushSync: !0, target: f }), f.addEventListener("scroll", l, { passive: !0 }), () => {
|
|
2975
2975
|
r(null), f.removeEventListener("scroll", l);
|
|
@@ -2981,7 +2981,7 @@ function Ci(e, t, n, r = $t, o, i) {
|
|
|
2981
2981
|
return;
|
|
2982
2982
|
const v = f.behavior === "smooth";
|
|
2983
2983
|
let y, c, p;
|
|
2984
|
-
|
|
2984
|
+
$n(m) ? (c = Math.max(
|
|
2985
2985
|
xt(m.document.documentElement, i ? "width" : "height"),
|
|
2986
2986
|
i ? m.document.documentElement.scrollWidth : m.document.documentElement.scrollHeight
|
|
2987
2987
|
), y = i ? m.innerWidth : m.innerHeight, p = i ? window.scrollX : window.scrollY) : (c = m[i ? "scrollWidth" : "scrollHeight"], y = xt(m, i ? "width" : "height"), p = m[i ? "scrollLeft" : "scrollTop"]);
|
|
@@ -2999,17 +2999,17 @@ function Ci(e, t, n, r = $t, o, i) {
|
|
|
2999
2999
|
}
|
|
3000
3000
|
return { scrollByCallback: h, scrollerRef: s, scrollToCallback: d };
|
|
3001
3001
|
}
|
|
3002
|
-
const
|
|
3002
|
+
const Vn = "-webkit-sticky", oo = "sticky", Or = vi(() => {
|
|
3003
3003
|
if (typeof document > "u")
|
|
3004
|
-
return
|
|
3004
|
+
return oo;
|
|
3005
3005
|
const e = document.createElement("div");
|
|
3006
|
-
return e.style.position =
|
|
3006
|
+
return e.style.position = Vn, e.style.position === Vn ? Vn : oo;
|
|
3007
3007
|
});
|
|
3008
|
-
function
|
|
3008
|
+
function zr(e) {
|
|
3009
3009
|
return e;
|
|
3010
3010
|
}
|
|
3011
3011
|
const nl = /* @__PURE__ */ ye(() => {
|
|
3012
|
-
const e =
|
|
3012
|
+
const e = W((u) => `Item ${u}`), t = W((u) => `Group ${u}`), n = W({}), r = W(zr), o = W("div"), i = W($t), s = (u, a = null) => je(
|
|
3013
3013
|
H(
|
|
3014
3014
|
n,
|
|
3015
3015
|
Q((l) => l[u]),
|
|
@@ -3037,7 +3037,7 @@ const nl = /* @__PURE__ */ ye(() => {
|
|
|
3037
3037
|
}), rl = /* @__PURE__ */ ye(
|
|
3038
3038
|
([e, t]) => ({ ...e, ...t }),
|
|
3039
3039
|
Ee(Si, nl)
|
|
3040
|
-
), ol = ({ height: e }) => /* @__PURE__ */ x("div", { style: { height: e } }), il = { overflowAnchor: "none", position:
|
|
3040
|
+
), ol = ({ height: e }) => /* @__PURE__ */ x("div", { style: { height: e } }), il = { overflowAnchor: "none", position: Or(), zIndex: 1 }, Ti = { overflowAnchor: "none" }, sl = { ...Ti, display: "inline-block", height: "100%" }, io = /* @__PURE__ */ D.memo(function({ showTopList: e = !1 }) {
|
|
3041
3041
|
const t = ue("listState"), n = ot("sizeRanges"), r = ue("useWindowScroll"), o = ue("customScrollParent"), i = ot("windowScrollContainerState"), s = ot("scrollContainerState"), u = o || r ? i : s, a = ue("itemContent"), l = ue("context"), d = ue("groupContent"), h = ue("trackItemSizes"), f = ue("itemSize"), m = ue("log"), v = ot("gap"), y = ue("horizontalDirection"), { callbackRef: c } = xs(
|
|
3042
3042
|
n,
|
|
3043
3043
|
f,
|
|
@@ -3048,8 +3048,8 @@ const nl = /* @__PURE__ */ ye(() => {
|
|
|
3048
3048
|
o,
|
|
3049
3049
|
y,
|
|
3050
3050
|
ue("skipAnimationFrameInResizeObserver")
|
|
3051
|
-
), [p, g] =
|
|
3052
|
-
|
|
3051
|
+
), [p, g] = D.useState(0);
|
|
3052
|
+
Pr("deviation", (R) => {
|
|
3053
3053
|
p !== R && g(R);
|
|
3054
3054
|
});
|
|
3055
3055
|
const w = ue("EmptyPlaceholder"), T = ue("ScrollSeekPlaceholder") || ol, k = ue("ListComponent"), M = ue("ItemComponent"), b = ue("GroupComponent"), S = ue("computeItemKey"), _ = ue("isSeeking"), C = ue("groupIndices").length > 0, O = ue("alignToBottom"), P = ue("initialItemFinalLocationReached"), I = e ? {} : {
|
|
@@ -3077,7 +3077,7 @@ const nl = /* @__PURE__ */ ye(() => {
|
|
|
3077
3077
|
style: I,
|
|
3078
3078
|
children: (e ? t.topItems : t.items).map((R) => {
|
|
3079
3079
|
const z = R.originalIndex, N = S(z + t.firstItemIndex, R.data, l);
|
|
3080
|
-
return _ ? /* @__PURE__ */
|
|
3080
|
+
return _ ? /* @__PURE__ */ hn(
|
|
3081
3081
|
T,
|
|
3082
3082
|
{
|
|
3083
3083
|
...qe(T, l),
|
|
@@ -3087,7 +3087,7 @@ const nl = /* @__PURE__ */ ye(() => {
|
|
|
3087
3087
|
type: R.type || "item",
|
|
3088
3088
|
...R.type === "group" ? {} : { groupIndex: R.groupIndex }
|
|
3089
3089
|
}
|
|
3090
|
-
) : R.type === "group" ? /* @__PURE__ */
|
|
3090
|
+
) : R.type === "group" ? /* @__PURE__ */ hn(
|
|
3091
3091
|
b,
|
|
3092
3092
|
{
|
|
3093
3093
|
...qe(b, l),
|
|
@@ -3098,7 +3098,7 @@ const nl = /* @__PURE__ */ ye(() => {
|
|
|
3098
3098
|
style: il
|
|
3099
3099
|
},
|
|
3100
3100
|
d(R.index, l)
|
|
3101
|
-
) : /* @__PURE__ */
|
|
3101
|
+
) : /* @__PURE__ */ hn(
|
|
3102
3102
|
M,
|
|
3103
3103
|
{
|
|
3104
3104
|
...qe(M, l),
|
|
@@ -3125,14 +3125,14 @@ const nl = /* @__PURE__ */ ye(() => {
|
|
|
3125
3125
|
outline: "none",
|
|
3126
3126
|
overflowX: "auto",
|
|
3127
3127
|
position: "relative"
|
|
3128
|
-
},
|
|
3128
|
+
}, On = (e) => ({
|
|
3129
3129
|
height: "100%",
|
|
3130
3130
|
position: "absolute",
|
|
3131
3131
|
top: 0,
|
|
3132
3132
|
width: "100%",
|
|
3133
3133
|
...e ? { display: "flex", flexDirection: "column" } : {}
|
|
3134
3134
|
}), cl = {
|
|
3135
|
-
position:
|
|
3135
|
+
position: Or(),
|
|
3136
3136
|
top: 0,
|
|
3137
3137
|
width: "100%",
|
|
3138
3138
|
zIndex: 1
|
|
@@ -3144,9 +3144,9 @@ function qe(e, t) {
|
|
|
3144
3144
|
function ul(e, t) {
|
|
3145
3145
|
return { item: typeof e == "string" ? void 0 : t };
|
|
3146
3146
|
}
|
|
3147
|
-
const dl = /* @__PURE__ */
|
|
3147
|
+
const dl = /* @__PURE__ */ D.memo(function() {
|
|
3148
3148
|
const e = ue("HeaderComponent"), t = ot("headerHeight"), n = ue("HeaderFooterTag"), r = zt(
|
|
3149
|
-
|
|
3149
|
+
D.useMemo(
|
|
3150
3150
|
() => (i) => {
|
|
3151
3151
|
t(xt(i, "height"));
|
|
3152
3152
|
},
|
|
@@ -3156,9 +3156,9 @@ const dl = /* @__PURE__ */ W.memo(function() {
|
|
|
3156
3156
|
ue("skipAnimationFrameInResizeObserver")
|
|
3157
3157
|
), o = ue("context");
|
|
3158
3158
|
return e ? /* @__PURE__ */ x(n, { ref: r, children: /* @__PURE__ */ x(e, { ...qe(e, o) }) }) : null;
|
|
3159
|
-
}), fl = /* @__PURE__ */
|
|
3159
|
+
}), fl = /* @__PURE__ */ D.memo(function() {
|
|
3160
3160
|
const e = ue("FooterComponent"), t = ot("footerHeight"), n = ue("HeaderFooterTag"), r = zt(
|
|
3161
|
-
|
|
3161
|
+
D.useMemo(
|
|
3162
3162
|
() => (i) => {
|
|
3163
3163
|
t(xt(i, "height"));
|
|
3164
3164
|
},
|
|
@@ -3170,7 +3170,7 @@ const dl = /* @__PURE__ */ W.memo(function() {
|
|
|
3170
3170
|
return e ? /* @__PURE__ */ x(n, { ref: r, children: /* @__PURE__ */ x(e, { ...qe(e, o) }) }) : null;
|
|
3171
3171
|
});
|
|
3172
3172
|
function ki({ useEmitter: e, useEmitterValue: t, usePublisher: n }) {
|
|
3173
|
-
return
|
|
3173
|
+
return D.memo(function({ children: r, style: o, context: i, ...s }) {
|
|
3174
3174
|
const u = n("scrollContainerState"), a = t("ScrollerComponent"), l = n("smoothScrollTargetReached"), d = t("scrollerRef"), h = t("horizontalDirection") || !1, { scrollByCallback: f, scrollerRef: m, scrollToCallback: v } = Ci(
|
|
3175
3175
|
u,
|
|
3176
3176
|
l,
|
|
@@ -3195,8 +3195,8 @@ function ki({ useEmitter: e, useEmitterValue: t, usePublisher: n }) {
|
|
|
3195
3195
|
});
|
|
3196
3196
|
}
|
|
3197
3197
|
function Ri({ useEmitter: e, useEmitterValue: t, usePublisher: n }) {
|
|
3198
|
-
return
|
|
3199
|
-
const u = n("windowScrollContainerState"), a = t("ScrollerComponent"), l = n("smoothScrollTargetReached"), d = t("totalListHeight"), h = t("deviation"), f = t("customScrollParent"), m =
|
|
3198
|
+
return D.memo(function({ children: r, style: o, context: i, ...s }) {
|
|
3199
|
+
const u = n("windowScrollContainerState"), a = t("ScrollerComponent"), l = n("smoothScrollTargetReached"), d = t("totalListHeight"), h = t("deviation"), f = t("customScrollParent"), m = D.useRef(null), v = t("scrollerRef"), { scrollByCallback: y, scrollerRef: c, scrollToCallback: p } = Ci(
|
|
3200
3200
|
u,
|
|
3201
3201
|
l,
|
|
3202
3202
|
a,
|
|
@@ -3222,38 +3222,38 @@ function Ri({ useEmitter: e, useEmitterValue: t, usePublisher: n }) {
|
|
|
3222
3222
|
});
|
|
3223
3223
|
}
|
|
3224
3224
|
const pl = ({ children: e }) => {
|
|
3225
|
-
const t =
|
|
3225
|
+
const t = D.useContext(xi), n = ot("viewportHeight"), r = ot("fixedItemHeight"), o = ue("alignToBottom"), i = ue("horizontalDirection"), s = D.useMemo(
|
|
3226
3226
|
() => Zo(n, (a) => xt(a, i ? "width" : "height")),
|
|
3227
3227
|
[n, i]
|
|
3228
3228
|
), u = zt(s, !0, ue("skipAnimationFrameInResizeObserver"));
|
|
3229
|
-
return
|
|
3229
|
+
return D.useEffect(() => {
|
|
3230
3230
|
t && (n(t.viewportHeight), r(t.itemHeight));
|
|
3231
|
-
}, [t, n, r]), /* @__PURE__ */ x("div", { "data-viewport-type": "element", ref: u, style:
|
|
3231
|
+
}, [t, n, r]), /* @__PURE__ */ x("div", { "data-viewport-type": "element", ref: u, style: On(o), children: e });
|
|
3232
3232
|
}, gl = ({ children: e }) => {
|
|
3233
|
-
const t =
|
|
3233
|
+
const t = D.useContext(xi), n = ot("windowViewportRect"), r = ot("fixedItemHeight"), o = ue("customScrollParent"), i = ei(
|
|
3234
3234
|
n,
|
|
3235
3235
|
o,
|
|
3236
3236
|
ue("skipAnimationFrameInResizeObserver")
|
|
3237
3237
|
), s = ue("alignToBottom");
|
|
3238
|
-
return
|
|
3238
|
+
return D.useEffect(() => {
|
|
3239
3239
|
t && (r(t.itemHeight), n({ offsetTop: 0, visibleHeight: t.viewportHeight, visibleWidth: 100 }));
|
|
3240
|
-
}, [t, n, r]), /* @__PURE__ */ x("div", { "data-viewport-type": "window", ref: i, style:
|
|
3240
|
+
}, [t, n, r]), /* @__PURE__ */ x("div", { "data-viewport-type": "window", ref: i, style: On(s), children: e });
|
|
3241
3241
|
}, hl = ({ children: e }) => {
|
|
3242
3242
|
const t = ue("TopItemListComponent") || "div", n = ue("headerHeight"), r = { ...cl, marginTop: `${n}px` }, o = ue("context");
|
|
3243
3243
|
return /* @__PURE__ */ x(t, { style: r, ...qe(t, o), children: e });
|
|
3244
|
-
}, ml = /* @__PURE__ */
|
|
3244
|
+
}, ml = /* @__PURE__ */ D.memo(function(e) {
|
|
3245
3245
|
const t = ue("useWindowScroll"), n = ue("topItemsIndexes").length > 0, r = ue("customScrollParent"), o = ue("context");
|
|
3246
3246
|
return /* @__PURE__ */ ee(r || t ? Sl : vl, { ...e, context: o, children: [
|
|
3247
|
-
n && /* @__PURE__ */ x(hl, { children: /* @__PURE__ */ x(
|
|
3247
|
+
n && /* @__PURE__ */ x(hl, { children: /* @__PURE__ */ x(io, { showTopList: !0 }) }),
|
|
3248
3248
|
/* @__PURE__ */ ee(r || t ? gl : pl, { children: [
|
|
3249
3249
|
/* @__PURE__ */ x(dl, {}),
|
|
3250
|
-
/* @__PURE__ */ x(
|
|
3250
|
+
/* @__PURE__ */ x(io, {}),
|
|
3251
3251
|
/* @__PURE__ */ x(fl, {})
|
|
3252
3252
|
] })
|
|
3253
3253
|
] });
|
|
3254
3254
|
}), {
|
|
3255
3255
|
Component: bl,
|
|
3256
|
-
useEmitter:
|
|
3256
|
+
useEmitter: Pr,
|
|
3257
3257
|
useEmitterValue: ue,
|
|
3258
3258
|
usePublisher: ot
|
|
3259
3259
|
} = /* @__PURE__ */ yi(
|
|
@@ -3319,14 +3319,14 @@ const pl = ({ children: e }) => {
|
|
|
3319
3319
|
}
|
|
3320
3320
|
},
|
|
3321
3321
|
ml
|
|
3322
|
-
), vl = /* @__PURE__ */ ki({ useEmitter:
|
|
3323
|
-
const e =
|
|
3322
|
+
), vl = /* @__PURE__ */ ki({ useEmitter: Pr, useEmitterValue: ue, usePublisher: ot }), Sl = /* @__PURE__ */ Ri({ useEmitter: Pr, useEmitterValue: ue, usePublisher: ot }), yl = bl, xl = /* @__PURE__ */ ye(() => {
|
|
3323
|
+
const e = W((l) => /* @__PURE__ */ ee("td", { children: [
|
|
3324
3324
|
"Item $",
|
|
3325
3325
|
l
|
|
3326
|
-
] })), t =
|
|
3326
|
+
] })), t = W(null), n = W((l) => /* @__PURE__ */ ee("td", { colSpan: 1e3, children: [
|
|
3327
3327
|
"Group ",
|
|
3328
3328
|
l
|
|
3329
|
-
] })), r =
|
|
3329
|
+
] })), r = W(null), o = W(null), i = W({}), s = W(zr), u = W($t), a = (l, d = null) => je(
|
|
3330
3330
|
H(
|
|
3331
3331
|
i,
|
|
3332
3332
|
Q((h) => h[l]),
|
|
@@ -3356,8 +3356,8 @@ const pl = ({ children: e }) => {
|
|
|
3356
3356
|
};
|
|
3357
3357
|
});
|
|
3358
3358
|
Ee(Si, xl);
|
|
3359
|
-
|
|
3360
|
-
const
|
|
3359
|
+
Or();
|
|
3360
|
+
const so = {
|
|
3361
3361
|
bottom: 0,
|
|
3362
3362
|
itemHeight: 0,
|
|
3363
3363
|
items: [],
|
|
@@ -3373,8 +3373,8 @@ const io = {
|
|
|
3373
3373
|
offsetBottom: 0,
|
|
3374
3374
|
offsetTop: 0,
|
|
3375
3375
|
top: 0
|
|
3376
|
-
}, { ceil:
|
|
3377
|
-
function
|
|
3376
|
+
}, { ceil: lo, floor: yn, max: Kt, min: qn, round: ao } = Math;
|
|
3377
|
+
function co(e, t, n) {
|
|
3378
3378
|
return Array.from({ length: t - e + 1 }).map((r, o) => ({ data: n === null ? null : n[o + e], index: o + e }));
|
|
3379
3379
|
}
|
|
3380
3380
|
function Il(e) {
|
|
@@ -3399,7 +3399,7 @@ const Tl = /* @__PURE__ */ ye(
|
|
|
3399
3399
|
{ customScrollParent: c, useWindowScroll: p, windowScrollContainerState: g, windowScrollTo: w, windowViewportRect: T },
|
|
3400
3400
|
k
|
|
3401
3401
|
]) => {
|
|
3402
|
-
const M =
|
|
3402
|
+
const M = W(0), b = W(0), S = W(so), _ = W({ height: 0, width: 0 }), C = W({ height: 0, width: 0 }), O = ve(), P = ve(), I = W(0), R = W(null), z = W({ column: 0, row: 0 }), N = ve(), A = ve(), V = W(!1), re = W(0), be = W(!0), Se = W(!1), Ce = W(!1);
|
|
3403
3403
|
Ie(
|
|
3404
3404
|
H(
|
|
3405
3405
|
v,
|
|
@@ -3415,7 +3415,7 @@ const Tl = /* @__PURE__ */ ye(
|
|
|
3415
3415
|
ae(([E, L, q, B, , Z]) => E && !L && q.height !== 0 && B.height !== 0 && !Z)
|
|
3416
3416
|
),
|
|
3417
3417
|
([, , , , E]) => {
|
|
3418
|
-
fe(Se, !0),
|
|
3418
|
+
fe(Se, !0), Rr(1, () => {
|
|
3419
3419
|
fe(O, E);
|
|
3420
3420
|
}), at(H(l), () => {
|
|
3421
3421
|
fe(t, [0, 0]), fe(be, !0);
|
|
@@ -3491,15 +3491,15 @@ const Tl = /* @__PURE__ */ ye(
|
|
|
3491
3491
|
]) => {
|
|
3492
3492
|
const { column: se, row: we } = B, { height: ge, width: ke } = Z, { width: Oe } = F;
|
|
3493
3493
|
if (te === 0 && (E === 0 || Oe === 0))
|
|
3494
|
-
return
|
|
3494
|
+
return so;
|
|
3495
3495
|
if (ke === 0) {
|
|
3496
|
-
const bt =
|
|
3497
|
-
return Il(
|
|
3496
|
+
const bt = _r(ce, E), Vt = bt + Math.max(te - 1, 0);
|
|
3497
|
+
return Il(co(bt, Vt, Y));
|
|
3498
3498
|
}
|
|
3499
3499
|
const He = _i(Oe, ke, se);
|
|
3500
3500
|
let Be, $e;
|
|
3501
|
-
J ? L === 0 && q === 0 && te > 0 ? (Be = 0, $e = te - 1) : (Be = He *
|
|
3502
|
-
const ut =
|
|
3501
|
+
J ? L === 0 && q === 0 && te > 0 ? (Be = 0, $e = te - 1) : (Be = He * yn((L + we) / (ge + we)), $e = He * lo((q + we) / (ge + we)) - 1, $e = qn(E - 1, Kt($e, He - 1)), Be = qn($e, Kt(0, Be))) : (Be = 0, $e = -1);
|
|
3502
|
+
const ut = co(Be, $e, Y), { bottom: Xe, top: Ge } = uo(F, B, Z, ut), st = lo(E / He), nt = st * ge + (st - 1) * we - Xe;
|
|
3503
3503
|
return { bottom: Xe, itemHeight: ge, items: ut, itemWidth: ke, offsetBottom: nt, offsetTop: Ge, top: Ge };
|
|
3504
3504
|
}
|
|
3505
3505
|
)
|
|
@@ -3517,14 +3517,14 @@ const Tl = /* @__PURE__ */ ye(
|
|
|
3517
3517
|
Ne(_, C, S, z),
|
|
3518
3518
|
ae(([E, L, { items: q }]) => q.length > 0 && L.height !== 0 && E.height !== 0),
|
|
3519
3519
|
Q(([E, L, { items: q }, B]) => {
|
|
3520
|
-
const { bottom: Z, top: F } =
|
|
3520
|
+
const { bottom: Z, top: F } = uo(E, B, L, q);
|
|
3521
3521
|
return [F, Z];
|
|
3522
3522
|
}),
|
|
3523
3523
|
Me(Qt)
|
|
3524
3524
|
),
|
|
3525
3525
|
t
|
|
3526
3526
|
);
|
|
3527
|
-
const xe =
|
|
3527
|
+
const xe = W(!1);
|
|
3528
3528
|
oe(
|
|
3529
3529
|
H(
|
|
3530
3530
|
l,
|
|
@@ -3572,9 +3572,9 @@ const Tl = /* @__PURE__ */ ye(
|
|
|
3572
3572
|
Q(([E, L, q, B, Z]) => {
|
|
3573
3573
|
const F = di(E), { align: Y, behavior: te, offset: J } = F;
|
|
3574
3574
|
let ce = F.index;
|
|
3575
|
-
ce === "LAST" && (ce = B - 1), ce = Kt(0, ce,
|
|
3576
|
-
let se =
|
|
3577
|
-
return Y === "end" ? se =
|
|
3575
|
+
ce === "LAST" && (ce = B - 1), ce = Kt(0, ce, qn(B - 1, ce));
|
|
3576
|
+
let se = br(L, Z, q, ce);
|
|
3577
|
+
return Y === "end" ? se = ao(se - L.height + q.height) : Y === "center" && (se = ao(se - L.height / 2 + q.height / 2)), J && (se += J), { behavior: te, top: se };
|
|
3578
3578
|
})
|
|
3579
3579
|
),
|
|
3580
3580
|
a
|
|
@@ -3634,31 +3634,31 @@ const Tl = /* @__PURE__ */ ye(
|
|
|
3634
3634
|
...k
|
|
3635
3635
|
};
|
|
3636
3636
|
},
|
|
3637
|
-
Ee(
|
|
3637
|
+
Ee(Mr, Ke, ln, bi, kt, Er, Tt)
|
|
3638
3638
|
);
|
|
3639
3639
|
function _i(e, t, n) {
|
|
3640
|
-
return Kt(1,
|
|
3640
|
+
return Kt(1, yn((e + n) / (yn(t) + n)));
|
|
3641
3641
|
}
|
|
3642
|
-
function
|
|
3642
|
+
function uo(e, t, n, r) {
|
|
3643
3643
|
const { height: o } = n;
|
|
3644
3644
|
if (o === void 0 || r.length === 0)
|
|
3645
3645
|
return { bottom: 0, top: 0 };
|
|
3646
|
-
const i =
|
|
3647
|
-
return { bottom:
|
|
3646
|
+
const i = br(e, t, n, r[0].index);
|
|
3647
|
+
return { bottom: br(e, t, n, r[r.length - 1].index) + o, top: i };
|
|
3648
3648
|
}
|
|
3649
|
-
function
|
|
3650
|
-
const o = _i(e.width, n.width, t.column), i =
|
|
3649
|
+
function br(e, t, n, r) {
|
|
3650
|
+
const o = _i(e.width, n.width, t.column), i = yn(r / o), s = i * n.height + Kt(0, i - 1) * t.row;
|
|
3651
3651
|
return s > 0 ? s + t.row : s;
|
|
3652
3652
|
}
|
|
3653
3653
|
const kl = /* @__PURE__ */ ye(() => {
|
|
3654
|
-
const e =
|
|
3654
|
+
const e = W((h) => `Item ${h}`), t = W({}), n = W(null), r = W("virtuoso-grid-item"), o = W("virtuoso-grid-list"), i = W(zr), s = W("div"), u = W($t), a = (h, f = null) => je(
|
|
3655
3655
|
H(
|
|
3656
3656
|
t,
|
|
3657
3657
|
Q((m) => m[h]),
|
|
3658
3658
|
Me()
|
|
3659
3659
|
),
|
|
3660
3660
|
f
|
|
3661
|
-
), l =
|
|
3661
|
+
), l = W(!1), d = W(!1);
|
|
3662
3662
|
return oe(le(d), l), {
|
|
3663
3663
|
components: t,
|
|
3664
3664
|
computeItemKey: i,
|
|
@@ -3680,9 +3680,9 @@ const kl = /* @__PURE__ */ ye(() => {
|
|
|
3680
3680
|
}), Rl = /* @__PURE__ */ ye(
|
|
3681
3681
|
([e, t]) => ({ ...e, ...t }),
|
|
3682
3682
|
Ee(Tl, kl)
|
|
3683
|
-
), _l = /* @__PURE__ */
|
|
3683
|
+
), _l = /* @__PURE__ */ D.memo(function() {
|
|
3684
3684
|
const e = ze("gridState"), t = ze("listClassName"), n = ze("itemClassName"), r = ze("itemContent"), o = ze("computeItemKey"), i = ze("isSeeking"), s = it("scrollHeight"), u = ze("ItemComponent"), a = ze("ListComponent"), l = ze("ScrollSeekPlaceholder"), d = ze("context"), h = it("itemDimensions"), f = it("gap"), m = ze("log"), v = ze("stateRestoreInProgress"), y = it("reportReadyState"), c = zt(
|
|
3685
|
-
|
|
3685
|
+
D.useMemo(
|
|
3686
3686
|
() => (p) => {
|
|
3687
3687
|
const g = p.parentElement.parentElement.scrollHeight;
|
|
3688
3688
|
s(g);
|
|
@@ -3692,8 +3692,8 @@ const kl = /* @__PURE__ */ ye(() => {
|
|
|
3692
3692
|
h({ height: T, width: k });
|
|
3693
3693
|
}
|
|
3694
3694
|
f({
|
|
3695
|
-
column:
|
|
3696
|
-
row:
|
|
3695
|
+
column: fo("column-gap", getComputedStyle(p).columnGap, m),
|
|
3696
|
+
row: fo("row-gap", getComputedStyle(p).rowGap, m)
|
|
3697
3697
|
});
|
|
3698
3698
|
},
|
|
3699
3699
|
[s, h, f, m]
|
|
@@ -3722,7 +3722,7 @@ const kl = /* @__PURE__ */ ye(() => {
|
|
|
3722
3722
|
width: e.itemWidth
|
|
3723
3723
|
},
|
|
3724
3724
|
g
|
|
3725
|
-
) : /* @__PURE__ */
|
|
3725
|
+
) : /* @__PURE__ */ hn(
|
|
3726
3726
|
u,
|
|
3727
3727
|
{
|
|
3728
3728
|
...qe(u, d),
|
|
@@ -3735,9 +3735,9 @@ const kl = /* @__PURE__ */ ye(() => {
|
|
|
3735
3735
|
})
|
|
3736
3736
|
}
|
|
3737
3737
|
);
|
|
3738
|
-
}), Ml =
|
|
3738
|
+
}), Ml = D.memo(function() {
|
|
3739
3739
|
const e = ze("HeaderComponent"), t = it("headerHeight"), n = ze("headerFooterTag"), r = zt(
|
|
3740
|
-
|
|
3740
|
+
D.useMemo(
|
|
3741
3741
|
() => (i) => {
|
|
3742
3742
|
t(xt(i, "height"));
|
|
3743
3743
|
},
|
|
@@ -3747,9 +3747,9 @@ const kl = /* @__PURE__ */ ye(() => {
|
|
|
3747
3747
|
!1
|
|
3748
3748
|
), o = ze("context");
|
|
3749
3749
|
return e ? /* @__PURE__ */ x(n, { ref: r, children: /* @__PURE__ */ x(e, { ...qe(e, o) }) }) : null;
|
|
3750
|
-
}), El =
|
|
3750
|
+
}), El = D.memo(function() {
|
|
3751
3751
|
const e = ze("FooterComponent"), t = it("footerHeight"), n = ze("headerFooterTag"), r = zt(
|
|
3752
|
-
|
|
3752
|
+
D.useMemo(
|
|
3753
3753
|
() => (i) => {
|
|
3754
3754
|
t(xt(i, "height"));
|
|
3755
3755
|
},
|
|
@@ -3760,8 +3760,8 @@ const kl = /* @__PURE__ */ ye(() => {
|
|
|
3760
3760
|
), o = ze("context");
|
|
3761
3761
|
return e ? /* @__PURE__ */ x(n, { ref: r, children: /* @__PURE__ */ x(e, { ...qe(e, o) }) }) : null;
|
|
3762
3762
|
}), Ol = ({ children: e }) => {
|
|
3763
|
-
const t =
|
|
3764
|
-
|
|
3763
|
+
const t = D.useContext(wi), n = it("itemDimensions"), r = it("viewportDimensions"), o = zt(
|
|
3764
|
+
D.useMemo(
|
|
3765
3765
|
() => (i) => {
|
|
3766
3766
|
r(i.getBoundingClientRect());
|
|
3767
3767
|
},
|
|
@@ -3770,15 +3770,15 @@ const kl = /* @__PURE__ */ ye(() => {
|
|
|
3770
3770
|
!0,
|
|
3771
3771
|
!1
|
|
3772
3772
|
);
|
|
3773
|
-
return
|
|
3773
|
+
return D.useEffect(() => {
|
|
3774
3774
|
t && (r({ height: t.viewportHeight, width: t.viewportWidth }), n({ height: t.itemHeight, width: t.itemWidth }));
|
|
3775
|
-
}, [t, r, n]), /* @__PURE__ */ x("div", { ref: o, style:
|
|
3775
|
+
}, [t, r, n]), /* @__PURE__ */ x("div", { ref: o, style: On(!1), children: e });
|
|
3776
3776
|
}, zl = ({ children: e }) => {
|
|
3777
|
-
const t =
|
|
3778
|
-
return
|
|
3777
|
+
const t = D.useContext(wi), n = it("windowViewportRect"), r = it("itemDimensions"), o = ze("customScrollParent"), i = ei(n, o, !1);
|
|
3778
|
+
return D.useEffect(() => {
|
|
3779
3779
|
t && (r({ height: t.itemHeight, width: t.itemWidth }), n({ offsetTop: 0, visibleHeight: t.viewportHeight, visibleWidth: t.viewportWidth }));
|
|
3780
|
-
}, [t, n, r]), /* @__PURE__ */ x("div", { ref: i, style:
|
|
3781
|
-
}, Pl = /* @__PURE__ */
|
|
3780
|
+
}, [t, n, r]), /* @__PURE__ */ x("div", { ref: i, style: On(!1), children: e });
|
|
3781
|
+
}, Pl = /* @__PURE__ */ D.memo(function({ ...e }) {
|
|
3782
3782
|
const t = ze("useWindowScroll"), n = ze("customScrollParent"), r = n || t ? Bl : Al, o = n || t ? zl : Ol, i = ze("context");
|
|
3783
3783
|
return /* @__PURE__ */ x(r, { ...e, ...qe(r, i), children: /* @__PURE__ */ ee(o, { children: [
|
|
3784
3784
|
/* @__PURE__ */ x(Ml, {}),
|
|
@@ -3831,28 +3831,28 @@ const kl = /* @__PURE__ */ ye(() => {
|
|
|
3831
3831
|
},
|
|
3832
3832
|
Pl
|
|
3833
3833
|
), Al = /* @__PURE__ */ ki({ useEmitter: Mi, useEmitterValue: ze, usePublisher: it }), Bl = /* @__PURE__ */ Ri({ useEmitter: Mi, useEmitterValue: ze, usePublisher: it });
|
|
3834
|
-
function
|
|
3834
|
+
function fo(e, t, n) {
|
|
3835
3835
|
return t !== "normal" && !(t != null && t.endsWith("px")) && n(`${e} was not resolved to pixel value correctly`, t, Qe.WARN), t === "normal" ? 0 : parseInt(t ?? "0", 10);
|
|
3836
3836
|
}
|
|
3837
|
-
const
|
|
3837
|
+
const zn = Ft(void 0);
|
|
3838
3838
|
function _e(e, t) {
|
|
3839
|
-
const n = Ue(
|
|
3839
|
+
const n = Ue(zn);
|
|
3840
3840
|
if (!n) throw new Error("useAudioStore must be used within CRAudioProvider");
|
|
3841
|
-
return
|
|
3841
|
+
return kn(n, e, t);
|
|
3842
3842
|
}
|
|
3843
|
-
function
|
|
3844
|
-
const e = Ue(
|
|
3843
|
+
function xn() {
|
|
3844
|
+
const e = Ue(zn);
|
|
3845
3845
|
if (!e)
|
|
3846
3846
|
throw new Error("useAudioStoreApi must be used within CRAudioProvider");
|
|
3847
3847
|
return e;
|
|
3848
3848
|
}
|
|
3849
|
-
const Gl = "_handleStart_1ihf3_16 _handle_1ihf3_1", Ll = "_handleEnd_1ihf3_21 _handle_1ihf3_1",
|
|
3849
|
+
const Gl = "_handleStart_1ihf3_16 _handle_1ihf3_1", Ll = "_handleEnd_1ihf3_21 _handle_1ihf3_1", po = {
|
|
3850
3850
|
handleStart: Gl,
|
|
3851
3851
|
handleEnd: Ll
|
|
3852
3852
|
};
|
|
3853
|
-
let
|
|
3853
|
+
let vr = !1;
|
|
3854
3854
|
function Ei() {
|
|
3855
|
-
return
|
|
3855
|
+
return vr;
|
|
3856
3856
|
}
|
|
3857
3857
|
const Hl = ({ containerRef: e }) => {
|
|
3858
3858
|
const t = j((c) => c.rangeStartGI), n = j((c) => c.rangeEndGI), r = j((c) => c.setRange), o = It(), i = t != null && n != null, [s, u] = pt(null), [a, l] = pt(null), d = ie(null), h = ie({ startGI: t, endGI: n });
|
|
@@ -3909,7 +3909,7 @@ const Hl = ({ containerRef: e }) => {
|
|
|
3909
3909
|
k != null && (d.current === "start" ? k <= T ? f.current(k, T) : (f.current(T, k), d.current = "end") : k >= w ? f.current(w, k) : (f.current(k, w), d.current = "start"));
|
|
3910
3910
|
}, p = () => {
|
|
3911
3911
|
d.current = null, setTimeout(() => {
|
|
3912
|
-
|
|
3912
|
+
vr = !1;
|
|
3913
3913
|
}, 50);
|
|
3914
3914
|
};
|
|
3915
3915
|
return document.addEventListener("pointermove", c), document.addEventListener("pointerup", p), document.addEventListener("pointercancel", p), () => {
|
|
@@ -3918,7 +3918,7 @@ const Hl = ({ containerRef: e }) => {
|
|
|
3918
3918
|
}, [m]);
|
|
3919
3919
|
const v = ne(
|
|
3920
3920
|
(c) => (p) => {
|
|
3921
|
-
p.preventDefault(), p.stopPropagation(), d.current = c,
|
|
3921
|
+
p.preventDefault(), p.stopPropagation(), d.current = c, vr = !0;
|
|
3922
3922
|
},
|
|
3923
3923
|
[]
|
|
3924
3924
|
);
|
|
@@ -3926,7 +3926,7 @@ const Hl = ({ containerRef: e }) => {
|
|
|
3926
3926
|
s && /* @__PURE__ */ x(
|
|
3927
3927
|
"div",
|
|
3928
3928
|
{
|
|
3929
|
-
className:
|
|
3929
|
+
className: po.handleStart,
|
|
3930
3930
|
"data-range-handle": "start",
|
|
3931
3931
|
style: {
|
|
3932
3932
|
left: s.x - 26,
|
|
@@ -3938,7 +3938,7 @@ const Hl = ({ containerRef: e }) => {
|
|
|
3938
3938
|
a && /* @__PURE__ */ x(
|
|
3939
3939
|
"div",
|
|
3940
3940
|
{
|
|
3941
|
-
className:
|
|
3941
|
+
className: po.handleEnd,
|
|
3942
3942
|
"data-range-handle": "end",
|
|
3943
3943
|
style: {
|
|
3944
3944
|
left: a.x,
|
|
@@ -3948,21 +3948,21 @@ const Hl = ({ containerRef: e }) => {
|
|
|
3948
3948
|
}
|
|
3949
3949
|
)
|
|
3950
3950
|
] }) : null;
|
|
3951
|
-
}, Nl = "_run_zzb61_3", Fl = "_runWrap_zzb61_7",
|
|
3951
|
+
}, Nl = "_run_zzb61_3", Fl = "_runWrap_zzb61_7", Wl = "_highlight_zzb61_13", Dl = "_highlightleft_zzb61_14", $l = "_highlightright_zzb61_15", Vl = "_highlightcenter_zzb61_16", ql = "_underline_zzb61_48", jl = "_underlineleft_zzb61_49", Ul = "_underlineright_zzb61_50", Kl = "_underlinecenter_zzb61_51", dt = {
|
|
3952
3952
|
run: Nl,
|
|
3953
3953
|
runWrap: Fl,
|
|
3954
|
-
highlight:
|
|
3955
|
-
highlightleft:
|
|
3954
|
+
highlight: Wl,
|
|
3955
|
+
highlightleft: Dl,
|
|
3956
3956
|
highlightright: $l,
|
|
3957
3957
|
highlightcenter: Vl,
|
|
3958
3958
|
underline: ql,
|
|
3959
3959
|
underlineleft: jl,
|
|
3960
3960
|
underlineright: Ul,
|
|
3961
3961
|
underlinecenter: Kl
|
|
3962
|
-
},
|
|
3962
|
+
}, go = (e) => Symbol.iterator in e, ho = (e) => (
|
|
3963
3963
|
// HACK: avoid checking entries type
|
|
3964
3964
|
"entries" in e
|
|
3965
|
-
),
|
|
3965
|
+
), mo = (e, t) => {
|
|
3966
3966
|
const n = e instanceof Map ? e : new Map(e.entries()), r = t instanceof Map ? t : new Map(t.entries());
|
|
3967
3967
|
if (n.size !== r.size)
|
|
3968
3968
|
return !1;
|
|
@@ -3981,13 +3981,13 @@ const Hl = ({ containerRef: e }) => {
|
|
|
3981
3981
|
return !!o.done && !!i.done;
|
|
3982
3982
|
};
|
|
3983
3983
|
function Yl(e, t) {
|
|
3984
|
-
return Object.is(e, t) ? !0 : typeof e != "object" || e === null || typeof t != "object" || t === null || Object.getPrototypeOf(e) !== Object.getPrototypeOf(t) ? !1 :
|
|
3984
|
+
return Object.is(e, t) ? !0 : typeof e != "object" || e === null || typeof t != "object" || t === null || Object.getPrototypeOf(e) !== Object.getPrototypeOf(t) ? !1 : go(e) && go(t) ? ho(e) && ho(t) ? mo(e, t) : Xl(e, t) : mo(
|
|
3985
3985
|
{ entries: () => Object.entries(e) },
|
|
3986
3986
|
{ entries: () => Object.entries(t) }
|
|
3987
3987
|
);
|
|
3988
3988
|
}
|
|
3989
3989
|
function nn(e) {
|
|
3990
|
-
const t =
|
|
3990
|
+
const t = D.useRef(void 0);
|
|
3991
3991
|
return (n) => {
|
|
3992
3992
|
const r = e(n);
|
|
3993
3993
|
return Yl(t.current, r) ? t.current : t.current = r;
|
|
@@ -4005,9 +4005,9 @@ const Jl = Object.freeze({
|
|
|
4005
4005
|
showPointer: void 0,
|
|
4006
4006
|
pointerStyle: void 0,
|
|
4007
4007
|
pointerColor: void 0
|
|
4008
|
-
}), Oi =
|
|
4008
|
+
}), Oi = D.memo(
|
|
4009
4009
|
function({ runs: t, ns: n, baseIndex: r, preGroups: o }) {
|
|
4010
|
-
const i = _e((O) => O.setClipIndex), s = _e((O) => O.seek), u = j((O) => O.setCurrentGlobalRunIndex), a =
|
|
4010
|
+
const i = _e((O) => O.setClipIndex), s = _e((O) => O.seek), u = j((O) => O.setCurrentGlobalRunIndex), a = xn(), l = j((O) => O.rangeStartGI), d = j((O) => O.rangeEndGI), h = j((O) => O.setRange), f = l != null && d != null, m = ne(
|
|
4011
4011
|
(O) => {
|
|
4012
4012
|
var re;
|
|
4013
4013
|
const P = (re = O.target) == null ? void 0 : re.closest("[data-g]");
|
|
@@ -4084,7 +4084,7 @@ const Jl = Object.freeze({
|
|
|
4084
4084
|
);
|
|
4085
4085
|
},
|
|
4086
4086
|
(e, t) => e.ns === t.ns && e.baseIndex === t.baseIndex && e.runs === t.runs && e.sectionId === t.sectionId
|
|
4087
|
-
), ea =
|
|
4087
|
+
), ea = D.memo(function() {
|
|
4088
4088
|
const t = ne((r) => ({
|
|
4089
4089
|
showSplit: r.showSplit,
|
|
4090
4090
|
slash: r.breakMarks.slash,
|
|
@@ -4095,7 +4095,7 @@ const Jl = Object.freeze({
|
|
|
4095
4095
|
n.slash && /* @__PURE__ */ x("span", { children: " / " }),
|
|
4096
4096
|
/* @__PURE__ */ x("span", { style: { display: "inline-block", width: n.breakGapPx / 2 } })
|
|
4097
4097
|
] }) : null;
|
|
4098
|
-
}), ta =
|
|
4098
|
+
}), ta = D.memo(
|
|
4099
4099
|
function({
|
|
4100
4100
|
ns: t,
|
|
4101
4101
|
group: n,
|
|
@@ -4128,7 +4128,7 @@ const Jl = Object.freeze({
|
|
|
4128
4128
|
return /* @__PURE__ */ x(wt, { children: Array.from({ length: f }).map((c, p) => {
|
|
4129
4129
|
const w = r[h + p], T = n.startG + p, k = `${t}/run:${T}`, M = !!w.split && T !== o;
|
|
4130
4130
|
let b = `${dt.runWrap}`;
|
|
4131
|
-
return m && (f === 1 ? b += ` ${dt.highlight}` : p === 0 ? b += ` ${dt.highlightleft}` : p + 1 === f ? b += ` ${dt.highlightright}` : b += ` ${dt.highlightcenter}`), v && (f === 1 ? b += ` ${dt.underline}` : p === 0 ? b += ` ${dt.underlineleft}` : p + 1 === f ? b += ` ${dt.underlineright}` : b += ` ${dt.underlinecenter}`), /* @__PURE__ */ ee(
|
|
4131
|
+
return m && (f === 1 ? b += ` ${dt.highlight}` : p === 0 ? b += ` ${dt.highlightleft}` : p + 1 === f ? b += ` ${dt.highlightright}` : b += ` ${dt.highlightcenter}`), v && (f === 1 ? b += ` ${dt.underline}` : p === 0 ? b += ` ${dt.underlineleft}` : p + 1 === f ? b += ` ${dt.underlineright}` : b += ` ${dt.underlinecenter}`), /* @__PURE__ */ ee(D.Fragment, { children: [
|
|
4132
4132
|
/* @__PURE__ */ x("span", { className: b, style: y, children: /* @__PURE__ */ x(
|
|
4133
4133
|
na,
|
|
4134
4134
|
{
|
|
@@ -4147,7 +4147,7 @@ const Jl = Object.freeze({
|
|
|
4147
4147
|
(e, t) => e.group === t.group && // 그룹 메타 참조 동일
|
|
4148
4148
|
e.runs === t.runs && // 원본 runs 참조 동일
|
|
4149
4149
|
e.ns === t.ns && e.rangeStartGI === t.rangeStartGI && e.rangeEndGI === t.rangeEndGI
|
|
4150
|
-
), na =
|
|
4150
|
+
), na = D.memo(
|
|
4151
4151
|
function({
|
|
4152
4152
|
gi: t,
|
|
4153
4153
|
g: n,
|
|
@@ -4233,7 +4233,7 @@ function ra({
|
|
|
4233
4233
|
}
|
|
4234
4234
|
);
|
|
4235
4235
|
}
|
|
4236
|
-
const oa =
|
|
4236
|
+
const oa = D.memo(ra, (e, t) => e.block === t.block && // block 참조 안정화 중요
|
|
4237
4237
|
e.computedMarker === t.computedMarker && e.baseIndex === t.baseIndex && e.ns === t.ns);
|
|
4238
4238
|
function ia(e, t) {
|
|
4239
4239
|
switch ((t || "decimal").toLowerCase().replace(/[\s_-]+/g, "")) {
|
|
@@ -4243,14 +4243,14 @@ function ia(e, t) {
|
|
|
4243
4243
|
return e < 10 ? `0${e}` : String(e);
|
|
4244
4244
|
case "loweralpha":
|
|
4245
4245
|
case "lowerlatin":
|
|
4246
|
-
return
|
|
4246
|
+
return vo(e, !1);
|
|
4247
4247
|
case "upperalpha":
|
|
4248
4248
|
case "upperlatin":
|
|
4249
|
-
return
|
|
4249
|
+
return vo(e, !0);
|
|
4250
4250
|
case "lowerroman":
|
|
4251
|
-
return
|
|
4251
|
+
return bo(e, !1);
|
|
4252
4252
|
case "upperroman":
|
|
4253
|
-
return
|
|
4253
|
+
return bo(e, !0);
|
|
4254
4254
|
case "decimalenclosedcircle":
|
|
4255
4255
|
return sa(e);
|
|
4256
4256
|
default:
|
|
@@ -4260,7 +4260,7 @@ function ia(e, t) {
|
|
|
4260
4260
|
function sa(e) {
|
|
4261
4261
|
return e >= 1 && e <= 20 ? String.fromCharCode(9312 + (e - 1)) : `(${e})`;
|
|
4262
4262
|
}
|
|
4263
|
-
function
|
|
4263
|
+
function bo(e, t = !0) {
|
|
4264
4264
|
if (e <= 0) return "";
|
|
4265
4265
|
const n = [
|
|
4266
4266
|
[1e3, "M"],
|
|
@@ -4283,13 +4283,13 @@ function mo(e, t = !0) {
|
|
|
4283
4283
|
o += s, r -= i;
|
|
4284
4284
|
return t ? o : o.toLowerCase();
|
|
4285
4285
|
}
|
|
4286
|
-
function
|
|
4286
|
+
function vo(e, t = !1) {
|
|
4287
4287
|
let n = e, r = "";
|
|
4288
4288
|
for (; n > 0; )
|
|
4289
4289
|
n--, r = String.fromCharCode(97 + n % 26) + r, n = Math.floor(n / 26);
|
|
4290
4290
|
return t ? r.toUpperCase() : r;
|
|
4291
4291
|
}
|
|
4292
|
-
function
|
|
4292
|
+
function Ar(e) {
|
|
4293
4293
|
const t = /* @__PURE__ */ new Map();
|
|
4294
4294
|
return {
|
|
4295
4295
|
next(n, r) {
|
|
@@ -4301,7 +4301,7 @@ function Pr(e) {
|
|
|
4301
4301
|
}
|
|
4302
4302
|
};
|
|
4303
4303
|
}
|
|
4304
|
-
function
|
|
4304
|
+
function Br(e, t) {
|
|
4305
4305
|
const n = e.list;
|
|
4306
4306
|
if (!n || n.kind !== "ordered") return;
|
|
4307
4307
|
const r = t.next(n.numId ?? 0, n.level), o = ia(r, n.format), i = (n.format || "").toLowerCase();
|
|
@@ -4340,7 +4340,7 @@ function ca(e, t) {
|
|
|
4340
4340
|
}
|
|
4341
4341
|
const ua = "_scroller_kqkmq_3", da = {
|
|
4342
4342
|
scroller: ua
|
|
4343
|
-
}, fa =
|
|
4343
|
+
}, fa = D.forwardRef(function({ className: t, style: n, ...r }, o) {
|
|
4344
4344
|
return /* @__PURE__ */ x(
|
|
4345
4345
|
"div",
|
|
4346
4346
|
{
|
|
@@ -4350,7 +4350,7 @@ const ua = "_scroller_kqkmq_3", da = {
|
|
|
4350
4350
|
...r
|
|
4351
4351
|
}
|
|
4352
4352
|
);
|
|
4353
|
-
}),
|
|
4353
|
+
}), Sr = (e) => /[가-힣a-zA-Z0-9]/.test(e), pa = (e) => ((e == null ? void 0 : e.textContent) ?? "").trim(), wn = (e, t) => e.querySelector(`[data-g="${t}"]`);
|
|
4354
4354
|
function ga(e, t = 12, n = 1.5, r = 0.5) {
|
|
4355
4355
|
if (!e) return -1;
|
|
4356
4356
|
const o = e.getBoundingClientRect(), i = o.top + t;
|
|
@@ -4360,7 +4360,7 @@ function ga(e, t = 12, n = 1.5, r = 0.5) {
|
|
|
4360
4360
|
const v = f[m];
|
|
4361
4361
|
if (!v || !v.isConnected) continue;
|
|
4362
4362
|
const y = pa(v);
|
|
4363
|
-
if (!y || !
|
|
4363
|
+
if (!y || !Sr(y)) continue;
|
|
4364
4364
|
const c = v.getBoundingClientRect();
|
|
4365
4365
|
if (c.height <= r || c.width <= r || c.bottom <= o.top || c.top >= o.bottom) continue;
|
|
4366
4366
|
if (c.top < i) {
|
|
@@ -4378,13 +4378,13 @@ function ga(e, t = 12, n = 1.5, r = 0.5) {
|
|
|
4378
4378
|
}
|
|
4379
4379
|
const zi = async (e, t, { timeoutMs: n = 1200, intervalMs: r = 16 } = {}) => {
|
|
4380
4380
|
const o = performance.now();
|
|
4381
|
-
let i =
|
|
4381
|
+
let i = wn(e, t);
|
|
4382
4382
|
for (; !i; ) {
|
|
4383
4383
|
if (performance.now() - o > n) return null;
|
|
4384
|
-
await new Promise((s) => setTimeout(s, r)), i =
|
|
4384
|
+
await new Promise((s) => setTimeout(s, r)), i = wn(e, t);
|
|
4385
4385
|
}
|
|
4386
4386
|
return i;
|
|
4387
|
-
},
|
|
4387
|
+
}, So = (e) => {
|
|
4388
4388
|
const t = e.getBoundingClientRect(), n = t.top + t.height * 0.15, r = t.top + t.height * 0.8, o = Array.from(e.querySelectorAll("[data-g]"));
|
|
4389
4389
|
let i = Number.POSITIVE_INFINITY, s = Number.NEGATIVE_INFINITY;
|
|
4390
4390
|
for (const u of o) {
|
|
@@ -4395,7 +4395,7 @@ const zi = async (e, t, { timeoutMs: n = 1200, intervalMs: r = 16 } = {}) => {
|
|
|
4395
4395
|
}
|
|
4396
4396
|
return !Number.isFinite(i) || !Number.isFinite(s) ? null : { first: i, last: s };
|
|
4397
4397
|
}, ha = (e, t, { topPaddingRatio: n = 0.15, behavior: r = "auto" } = {}) => {
|
|
4398
|
-
const o =
|
|
4398
|
+
const o = wn(e, t);
|
|
4399
4399
|
if (!o) return !1;
|
|
4400
4400
|
const i = e.getBoundingClientRect(), s = o.getBoundingClientRect(), u = i.height * n, a = s.top - (i.top + u);
|
|
4401
4401
|
return e.scrollTo({ top: e.scrollTop + a, behavior: r }), !0;
|
|
@@ -4411,10 +4411,10 @@ function ma(e, t = 120) {
|
|
|
4411
4411
|
e.addEventListener("scroll", o, { passive: !0, capture: !0 }), o();
|
|
4412
4412
|
});
|
|
4413
4413
|
}
|
|
4414
|
-
const
|
|
4414
|
+
const jn = async (e, t, { topPaddingRatio: n = 0.15, behavior: r = "smooth", quietMs: o = 120 } = {}) => {
|
|
4415
4415
|
if (!ha(e, t, { topPaddingRatio: n, behavior: r })) return !1;
|
|
4416
4416
|
await ma(e, o);
|
|
4417
|
-
const s =
|
|
4417
|
+
const s = wn(e, t);
|
|
4418
4418
|
if (!s) return !1;
|
|
4419
4419
|
const u = e.getBoundingClientRect(), a = s.getBoundingClientRect(), l = u.height * n, d = u.top + l, h = a.top - d;
|
|
4420
4420
|
return Math.abs(h) <= 1;
|
|
@@ -4422,18 +4422,18 @@ const qn = async (e, t, { topPaddingRatio: n = 0.15, behavior: r = "smooth", qui
|
|
|
4422
4422
|
requestAnimationFrame(() => {
|
|
4423
4423
|
requestAnimationFrame(() => e());
|
|
4424
4424
|
});
|
|
4425
|
-
}),
|
|
4425
|
+
}), Gr = Ft(null);
|
|
4426
4426
|
function Pi() {
|
|
4427
|
-
const e = Ue(
|
|
4427
|
+
const e = Ue(Gr);
|
|
4428
4428
|
if (!e)
|
|
4429
4429
|
throw new Error("useQuizStoreApi must be used within QuizProgressProvider");
|
|
4430
4430
|
return e;
|
|
4431
4431
|
}
|
|
4432
4432
|
function Je(e, t) {
|
|
4433
|
-
const n = Ue(
|
|
4433
|
+
const n = Ue(Gr);
|
|
4434
4434
|
if (!n)
|
|
4435
4435
|
throw new Error("useQuizStore must be used within QuizProgressProvider");
|
|
4436
|
-
return
|
|
4436
|
+
return kn(n, e, t);
|
|
4437
4437
|
}
|
|
4438
4438
|
const Ai = () => {
|
|
4439
4439
|
const e = j((l) => l.section), t = Pi(), n = Je((l) => l.retryAllowed), r = Je((l) => l.previousResult), o = r != null, i = e.quizzes;
|
|
@@ -4480,7 +4480,7 @@ var Bi = {
|
|
|
4480
4480
|
className: void 0,
|
|
4481
4481
|
style: void 0,
|
|
4482
4482
|
attr: void 0
|
|
4483
|
-
},
|
|
4483
|
+
}, yo = D.createContext && /* @__PURE__ */ D.createContext(Bi), ya = ["attr", "size", "title"];
|
|
4484
4484
|
function xa(e, t) {
|
|
4485
4485
|
if (e == null) return {};
|
|
4486
4486
|
var n = wa(e, t), r, o;
|
|
@@ -4501,17 +4501,17 @@ function wa(e, t) {
|
|
|
4501
4501
|
}
|
|
4502
4502
|
return n;
|
|
4503
4503
|
}
|
|
4504
|
-
function
|
|
4505
|
-
return
|
|
4504
|
+
function In() {
|
|
4505
|
+
return In = Object.assign ? Object.assign.bind() : function(e) {
|
|
4506
4506
|
for (var t = 1; t < arguments.length; t++) {
|
|
4507
4507
|
var n = arguments[t];
|
|
4508
4508
|
for (var r in n)
|
|
4509
4509
|
Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
4510
4510
|
}
|
|
4511
4511
|
return e;
|
|
4512
|
-
},
|
|
4512
|
+
}, In.apply(this, arguments);
|
|
4513
4513
|
}
|
|
4514
|
-
function
|
|
4514
|
+
function xo(e, t) {
|
|
4515
4515
|
var n = Object.keys(e);
|
|
4516
4516
|
if (Object.getOwnPropertySymbols) {
|
|
4517
4517
|
var r = Object.getOwnPropertySymbols(e);
|
|
@@ -4521,12 +4521,12 @@ function yo(e, t) {
|
|
|
4521
4521
|
}
|
|
4522
4522
|
return n;
|
|
4523
4523
|
}
|
|
4524
|
-
function
|
|
4524
|
+
function Cn(e) {
|
|
4525
4525
|
for (var t = 1; t < arguments.length; t++) {
|
|
4526
4526
|
var n = arguments[t] != null ? arguments[t] : {};
|
|
4527
|
-
t % 2 ?
|
|
4527
|
+
t % 2 ? xo(Object(n), !0).forEach(function(r) {
|
|
4528
4528
|
Ia(e, r, n[r]);
|
|
4529
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) :
|
|
4529
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : xo(Object(n)).forEach(function(r) {
|
|
4530
4530
|
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r));
|
|
4531
4531
|
});
|
|
4532
4532
|
}
|
|
@@ -4550,13 +4550,13 @@ function Ta(e, t) {
|
|
|
4550
4550
|
return (t === "string" ? String : Number)(e);
|
|
4551
4551
|
}
|
|
4552
4552
|
function Gi(e) {
|
|
4553
|
-
return e && e.map((t, n) => /* @__PURE__ */
|
|
4553
|
+
return e && e.map((t, n) => /* @__PURE__ */ D.createElement(t.tag, Cn({
|
|
4554
4554
|
key: n
|
|
4555
4555
|
}, t.attr), Gi(t.child)));
|
|
4556
4556
|
}
|
|
4557
4557
|
function Ze(e) {
|
|
4558
|
-
return (t) => /* @__PURE__ */
|
|
4559
|
-
attr:
|
|
4558
|
+
return (t) => /* @__PURE__ */ D.createElement(ka, In({
|
|
4559
|
+
attr: Cn({}, e.attr)
|
|
4560
4560
|
}, t), Gi(e.child));
|
|
4561
4561
|
}
|
|
4562
4562
|
function ka(e) {
|
|
@@ -4566,26 +4566,26 @@ function ka(e) {
|
|
|
4566
4566
|
size: o,
|
|
4567
4567
|
title: i
|
|
4568
4568
|
} = e, s = xa(e, ya), u = o || n.size || "1em", a;
|
|
4569
|
-
return n.className && (a = n.className), e.className && (a = (a ? a + " " : "") + e.className), /* @__PURE__ */
|
|
4569
|
+
return n.className && (a = n.className), e.className && (a = (a ? a + " " : "") + e.className), /* @__PURE__ */ D.createElement("svg", In({
|
|
4570
4570
|
stroke: "currentColor",
|
|
4571
4571
|
fill: "currentColor",
|
|
4572
4572
|
strokeWidth: "0"
|
|
4573
4573
|
}, n.attr, r, s, {
|
|
4574
4574
|
className: a,
|
|
4575
|
-
style:
|
|
4575
|
+
style: Cn(Cn({
|
|
4576
4576
|
color: e.color || n.color
|
|
4577
4577
|
}, n.style), e.style),
|
|
4578
4578
|
height: u,
|
|
4579
4579
|
width: u,
|
|
4580
4580
|
xmlns: "http://www.w3.org/2000/svg"
|
|
4581
|
-
}), i && /* @__PURE__ */
|
|
4581
|
+
}), i && /* @__PURE__ */ D.createElement("title", null, i), e.children);
|
|
4582
4582
|
};
|
|
4583
|
-
return
|
|
4583
|
+
return yo !== void 0 ? /* @__PURE__ */ D.createElement(yo.Consumer, null, (n) => t(n)) : t(Bi);
|
|
4584
4584
|
}
|
|
4585
|
-
function
|
|
4585
|
+
function wo(e) {
|
|
4586
4586
|
return Ze({ attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { d: "M18.464 2.114a.998.998 0 0 0-1.033.063l-13 9a1.003 1.003 0 0 0 0 1.645l13 9A1 1 0 0 0 19 21V3a1 1 0 0 0-.536-.886zM17 19.091 6.757 12 17 4.909v14.182z" }, child: [] }] })(e);
|
|
4587
4587
|
}
|
|
4588
|
-
function
|
|
4588
|
+
function Io(e) {
|
|
4589
4589
|
return Ze({ attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { d: "M5.536 21.886a1.004 1.004 0 0 0 1.033-.064l13-9a1 1 0 0 0 0-1.644l-13-9A.998.998 0 0 0 5 3v18a1 1 0 0 0 .536.886zM7 4.909 17.243 12 7 19.091V4.909z" }, child: [] }] })(e);
|
|
4590
4590
|
}
|
|
4591
4591
|
const Ra = ({ isIcon: e = !0 }) => {
|
|
@@ -4608,7 +4608,7 @@ const Ra = ({ isIcon: e = !0 }) => {
|
|
|
4608
4608
|
(s.key === "Enter" || s.key === " ") && o(s);
|
|
4609
4609
|
},
|
|
4610
4610
|
children: [
|
|
4611
|
-
/* @__PURE__ */ x(
|
|
4611
|
+
/* @__PURE__ */ x(wo, { size: 18 }),
|
|
4612
4612
|
/* @__PURE__ */ x("span", { className: Nt.label, children: "이전" })
|
|
4613
4613
|
]
|
|
4614
4614
|
}
|
|
@@ -4638,7 +4638,7 @@ const Ra = ({ isIcon: e = !0 }) => {
|
|
|
4638
4638
|
},
|
|
4639
4639
|
children: r ? "첫섹션입니다" : /* @__PURE__ */ ee(wt, { children: [
|
|
4640
4640
|
/* @__PURE__ */ x(
|
|
4641
|
-
|
|
4641
|
+
wo,
|
|
4642
4642
|
{
|
|
4643
4643
|
size: 18,
|
|
4644
4644
|
style: {
|
|
@@ -4652,7 +4652,7 @@ const Ra = ({ isIcon: e = !0 }) => {
|
|
|
4652
4652
|
] })
|
|
4653
4653
|
}
|
|
4654
4654
|
);
|
|
4655
|
-
},
|
|
4655
|
+
}, Tn = ({ isIcon: e = !0 }) => {
|
|
4656
4656
|
const t = j((s) => s.isCanNext), n = j((s) => s.onSectionNav), r = !t, o = ne(
|
|
4657
4657
|
(s) => {
|
|
4658
4658
|
s.stopPropagation(), s.preventDefault(), t && (n == null || n("next"));
|
|
@@ -4672,7 +4672,7 @@ const Ra = ({ isIcon: e = !0 }) => {
|
|
|
4672
4672
|
(s.key === "Enter" || s.key === " ") && o(s);
|
|
4673
4673
|
},
|
|
4674
4674
|
children: [
|
|
4675
|
-
/* @__PURE__ */ x(
|
|
4675
|
+
/* @__PURE__ */ x(Io, { size: 18 }),
|
|
4676
4676
|
/* @__PURE__ */ x("span", { className: Nt.label, children: "다음" })
|
|
4677
4677
|
]
|
|
4678
4678
|
}
|
|
@@ -4703,7 +4703,7 @@ const Ra = ({ isIcon: e = !0 }) => {
|
|
|
4703
4703
|
children: r ? "마지막섹션입니다" : /* @__PURE__ */ ee(wt, { children: [
|
|
4704
4704
|
"NextSection",
|
|
4705
4705
|
/* @__PURE__ */ x(
|
|
4706
|
-
|
|
4706
|
+
Io,
|
|
4707
4707
|
{
|
|
4708
4708
|
size: 18,
|
|
4709
4709
|
style: {
|
|
@@ -4731,9 +4731,9 @@ function _a({
|
|
|
4731
4731
|
nsPrefix: n
|
|
4732
4732
|
}) {
|
|
4733
4733
|
const r = me(() => {
|
|
4734
|
-
const _ = [], C =
|
|
4734
|
+
const _ = [], C = Ar();
|
|
4735
4735
|
return t.forEach((O, P) => {
|
|
4736
|
-
O.type === "paragraph" && (_[P] =
|
|
4736
|
+
O.type === "paragraph" && (_[P] = Br(O, C));
|
|
4737
4737
|
}), _;
|
|
4738
4738
|
}, [t]), o = j((_) => {
|
|
4739
4739
|
var C;
|
|
@@ -4808,7 +4808,7 @@ function _a({
|
|
|
4808
4808
|
), d = ie(null), h = ne((_) => {
|
|
4809
4809
|
d.current = _;
|
|
4810
4810
|
}, []), f = me(
|
|
4811
|
-
() =>
|
|
4811
|
+
() => Wt((_) => {
|
|
4812
4812
|
const { style: C, children: O, ...P } = _;
|
|
4813
4813
|
return /* @__PURE__ */ x("div", { ...P, style: C, children: /* @__PURE__ */ x(
|
|
4814
4814
|
"div",
|
|
@@ -4841,10 +4841,10 @@ function _a({
|
|
|
4841
4841
|
const _ = e.quizzes, C = Math.max(80, Math.floor(u * 0.5));
|
|
4842
4842
|
return _ && _.length ? /* @__PURE__ */ ee("div", { style: { display: "block" }, children: [
|
|
4843
4843
|
/* @__PURE__ */ x("div", { style: { display: "flex", justifyContent: "center", marginTop: 20 }, children: /* @__PURE__ */ x(Ai, {}) }),
|
|
4844
|
-
/* @__PURE__ */ x("div", { style: { display: "flex", justifyContent: "center", marginTop: 20 }, children: /* @__PURE__ */ x(
|
|
4844
|
+
/* @__PURE__ */ x("div", { style: { display: "flex", justifyContent: "center", marginTop: 20 }, children: /* @__PURE__ */ x(Tn, { isIcon: !1 }) }),
|
|
4845
4845
|
/* @__PURE__ */ x("div", { style: { height: C, width: "100%" } })
|
|
4846
4846
|
] }) : /* @__PURE__ */ ee("div", { children: [
|
|
4847
|
-
/* @__PURE__ */ x("div", { style: { display: "flex", justifyContent: "center", marginTop: 20 }, children: /* @__PURE__ */ x(
|
|
4847
|
+
/* @__PURE__ */ x("div", { style: { display: "flex", justifyContent: "center", marginTop: 20 }, children: /* @__PURE__ */ x(Tn, { isIcon: !1 }) }),
|
|
4848
4848
|
/* @__PURE__ */ x("div", { style: { height: 40 } })
|
|
4849
4849
|
] });
|
|
4850
4850
|
}, [y, e, u]), w = me(
|
|
@@ -5000,7 +5000,7 @@ const Ma = ({
|
|
|
5000
5000
|
}), S = ie(!1), _ = ne(() => {
|
|
5001
5001
|
const I = e.current;
|
|
5002
5002
|
if (!I) return;
|
|
5003
|
-
const R =
|
|
5003
|
+
const R = So(I), z = (R == null ? void 0 : R.first) ?? -1, N = (R == null ? void 0 : R.last) ?? -1;
|
|
5004
5004
|
b.current = { first: z, last: N };
|
|
5005
5005
|
}, [e]), C = ie(!1), O = ne(() => {
|
|
5006
5006
|
const I = e.current;
|
|
@@ -5028,7 +5028,7 @@ const Ma = ({
|
|
|
5028
5028
|
if (I.scrollTop <= 1) {
|
|
5029
5029
|
(async () => {
|
|
5030
5030
|
try {
|
|
5031
|
-
p.current = !0, await
|
|
5031
|
+
p.current = !0, await jn(I, i, {
|
|
5032
5032
|
behavior: "smooth",
|
|
5033
5033
|
topPaddingRatio: 0.2
|
|
5034
5034
|
// ⬅️ 탑일 때는 0으로 고정
|
|
@@ -5044,7 +5044,7 @@ const Ma = ({
|
|
|
5044
5044
|
async function A() {
|
|
5045
5045
|
if (!I) return;
|
|
5046
5046
|
const V = I.scrollTop <= 1 ? 0 : 0.2;
|
|
5047
|
-
return await
|
|
5047
|
+
return await jn(I, i, {
|
|
5048
5048
|
behavior: "smooth",
|
|
5049
5049
|
topPaddingRatio: V
|
|
5050
5050
|
});
|
|
@@ -5107,7 +5107,7 @@ const Ma = ({
|
|
|
5107
5107
|
q = ((Z.top + Z.height / 2 - L.top) / L.height > 0.5, 0.15);
|
|
5108
5108
|
}
|
|
5109
5109
|
const B = !!E;
|
|
5110
|
-
return B ? (await
|
|
5110
|
+
return B ? (await jn(I, G, {
|
|
5111
5111
|
behavior: "smooth",
|
|
5112
5112
|
topPaddingRatio: q
|
|
5113
5113
|
}), await V()) : B || await A(G, "auto"), p.current = !1, N(G), R(I, G, 0.1, 0.7);
|
|
@@ -5115,7 +5115,7 @@ const Ma = ({
|
|
|
5115
5115
|
return {
|
|
5116
5116
|
ensureVisibleGI: re,
|
|
5117
5117
|
scrollToGI: be,
|
|
5118
|
-
getVisibleRange: () =>
|
|
5118
|
+
getVisibleRange: () => So(I),
|
|
5119
5119
|
getScrollTop: () => I.scrollTop,
|
|
5120
5120
|
setScrollTop: (G) => {
|
|
5121
5121
|
I.scrollTop = G;
|
|
@@ -5149,11 +5149,11 @@ function Ea(e) {
|
|
|
5149
5149
|
return !!(["a", "button", "input", "textarea", "select", "label"].includes(n) || t.isContentEditable);
|
|
5150
5150
|
}
|
|
5151
5151
|
function Oa() {
|
|
5152
|
-
const e = j((v) => v.section), t = X((v) => v.theme), n = X((v) => v.fontFamily), r = X((v) => v.fontSizePx), o = X((v) => v.lineHeight), i =
|
|
5152
|
+
const e = j((v) => v.section), t = X((v) => v.theme), n = X((v) => v.fontFamily), r = X((v) => v.fontSizePx), o = X((v) => v.lineHeight), i = vn[t], { blocks: s, nsPrefix: u } = me(() => ({
|
|
5153
5153
|
sectionId: e.section_id,
|
|
5154
5154
|
blocks: e.ast.blocks,
|
|
5155
5155
|
nsPrefix: `sec-${e.section_id ?? "0"}/`
|
|
5156
|
-
}), [e]), a =
|
|
5156
|
+
}), [e]), a = Rn(), l = ne(() => {
|
|
5157
5157
|
const { isSettingsOpen: v, setSettingsOpen: y, toggleOverlays: c } = a.getState();
|
|
5158
5158
|
v ? y(!1) : c();
|
|
5159
5159
|
}, [a]), { onClick: d, onDoubleClick: h } = as({
|
|
@@ -5203,11 +5203,11 @@ function La(e) {
|
|
|
5203
5203
|
function Ha(e) {
|
|
5204
5204
|
return Ze({ attr: { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "path", attr: { d: "M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0" }, child: [] }, { tag: "path", attr: { d: "M4 8v-2a2 2 0 0 1 2 -2h2" }, child: [] }, { tag: "path", attr: { d: "M4 16v2a2 2 0 0 0 2 2h2" }, child: [] }, { tag: "path", attr: { d: "M16 4h2a2 2 0 0 1 2 2v2" }, child: [] }, { tag: "path", attr: { d: "M16 20h2a2 2 0 0 0 2 -2v-2" }, child: [] }] })(e);
|
|
5205
5205
|
}
|
|
5206
|
-
const Na = "_wrap_1hfub_4", Fa = "_visible_1hfub_25",
|
|
5206
|
+
const Na = "_wrap_1hfub_4", Fa = "_visible_1hfub_25", Wa = "_compact_1hfub_31", Da = "_row2_1hfub_34", $a = "_controls_1hfub_44", Va = "_row1_1hfub_52", qa = "_groupExpand_1hfub_80", ja = "_groupPlayback_1hfub_81", Ua = "_groupSpeed_1hfub_82", Ka = "_groupFeatures_1hfub_83", Xa = "_groupNav_1hfub_84", Ya = "_btn_1hfub_116", Qa = "_btnForbidden_1hfub_141", Za = "_btnActive_1hfub_147", Ja = "_label_1hfub_158", ec = "_compactBtn_1hfub_168", Re = {
|
|
5207
5207
|
wrap: Na,
|
|
5208
5208
|
visible: Fa,
|
|
5209
|
-
compact:
|
|
5210
|
-
row2:
|
|
5209
|
+
compact: Wa,
|
|
5210
|
+
row2: Da,
|
|
5211
5211
|
controls: $a,
|
|
5212
5212
|
row1: Va,
|
|
5213
5213
|
groupExpand: qa,
|
|
@@ -5220,7 +5220,7 @@ const Na = "_wrap_1hfub_4", Fa = "_visible_1hfub_25", Da = "_compact_1hfub_31",
|
|
|
5220
5220
|
btnActive: Za,
|
|
5221
5221
|
label: Ja,
|
|
5222
5222
|
compactBtn: ec
|
|
5223
|
-
}, tc =
|
|
5223
|
+
}, tc = Wt(function() {
|
|
5224
5224
|
const t = ie(null), n = Ue(Ot), r = (n == null ? void 0 : n.getState().isPlaybackMode) ?? !1, o = _e((S) => S.status), i = _e((S) => S.currentTimeMs), s = _e((S) => S.currentClip), u = _e((S) => S.playbackKind), a = X((S) => S.muteAudio), l = X((S) => S.audioSpeed), d = _e((S) => S.getClipSrc), h = _e((S) => S._onTime), f = _e((S) => S._onEnded), m = _e((S) => S._onError), v = j((S) => S.setCurrentGlobalRunIndex), y = j((S) => S.getSectionScrollApi), c = j((S) => S.snapToReadable), p = j((S) => S.edgeReadable), g = ie(null), w = ie(null), T = ie(!1), k = ie(null);
|
|
5225
5225
|
pe(() => {
|
|
5226
5226
|
u === "real" && (T.current = !0);
|
|
@@ -5426,7 +5426,7 @@ function cc() {
|
|
|
5426
5426
|
] })
|
|
5427
5427
|
] });
|
|
5428
5428
|
}
|
|
5429
|
-
const uc =
|
|
5429
|
+
const uc = D.memo(cc), dc = Wt(function() {
|
|
5430
5430
|
const t = Ue(Ot), n = (t == null ? void 0 : t.getState().isPlaybackMode) ?? !1, r = _e((S) => S.playbackKind), o = _e((S) => S.status), i = _e((S) => S.fake), s = X((S) => S.audioSpeed), u = _e((S) => S.pause), a = j((S) => S.totalRuns), l = j((S) => S.currentGlobalRunIndex), d = j((S) => S.setCurrentGlobalRunIndex), h = j((S) => S.getSectionScrollApi), f = j((S) => S.nextReadableFrom), m = j((S) => S.edgeReadable), v = ie(null), y = ie(null), c = ie(0), p = ie(-1), g = !n && r === "fake" && o === "playing", w = Math.max(1, (i == null ? void 0 : i.totalWords) ?? 1), T = me(() => {
|
|
5431
5431
|
const S = 200 * s;
|
|
5432
5432
|
return w / S * 6e4;
|
|
@@ -5476,15 +5476,15 @@ const uc = W.memo(cc), dc = Dt(function() {
|
|
|
5476
5476
|
return pe(() => (g ? v.current == null && (v.current = requestAnimationFrame(b)) : (v.current && (cancelAnimationFrame(v.current), v.current = null), y.current = null), () => {
|
|
5477
5477
|
v.current && (cancelAnimationFrame(v.current), v.current = null);
|
|
5478
5478
|
}), [g, b]), null;
|
|
5479
|
-
}), fc =
|
|
5479
|
+
}), fc = Wt(function() {
|
|
5480
5480
|
return /* @__PURE__ */ x(dc, {});
|
|
5481
5481
|
}), pc = "data:image/svg+xml,%3csvg%20width='111'%20height='111'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20xml:space='preserve'%20overflow='hidden'%3e%3cg%20transform='translate(-435%2011)'%3e%3cpath%20d='M532.723%2046.8125C530.242%2046.8292%20527.8%2047.4292%20525.593%2048.5642%20523.298%2049.7713%20520.952%2050.8767%20518.608%2051.8815%20517.451%2031.9953%20500.391%2016.8128%20480.505%2017.9704%20462.359%2019.0268%20447.834%2033.4215%20446.615%2051.5578L438.476%2048.1353%20438.476%2049.9344C438.473%2054.7251%20441.432%2059.0185%20445.91%2060.721%20446.509%2060.9604%20447.138%2061.1708%20447.767%2061.3801%20448.053%2061.4761%20448.339%2061.5709%20448.622%2061.6692L447.745%2066.7254C447.463%2068.2415%20447.818%2069.8071%20448.728%2071.0521%20449.635%2072.2874%20450.984%2073.1242%20452.493%2073.3877L452.768%2073.4282C453.011%2073.488%20453.259%2073.5198%20453.509%2073.523%20456.31%2073.5182%20458.699%2071.4953%20459.166%2068.7338L459.781%2064.8673C468.886%2066.8727%20478.184%2067.875%20487.508%2067.8562%20493.267%2067.8674%20499.021%2067.5125%20504.736%2066.7937%20504.893%2066.7613%20505.041%2066.7405%20505.184%2066.7231L505.562%2068.8379C505.986%2071.6231%20508.396%2073.6706%20511.213%2073.6375%20511.583%2073.648%20511.953%2073.5977%20512.307%2073.4883%20515.422%2072.958%20517.518%2070.0024%20516.988%2066.8869%20516.984%2066.8688%20516.981%2066.8509%20516.978%2066.833L516.758%2065.6767C522.066%2065.3125%20527.42%2065.3125%20532.607%2065.3125L532.723%2065.3125C537.831%2065.6255%20542.226%2061.7378%20542.539%2056.6292%20542.852%2051.5205%20538.965%2047.1255%20533.856%2046.8125%20533.479%2046.7894%20533.1%2046.7894%20532.723%2046.8125ZM516.326%2052.7256C511.914%2054.5082%20507.352%2055.8913%20502.693%2056.858L492.697%2041.007%20501.916%2026.3469C510.579%2032.4029%20515.911%2042.1631%20516.326%2052.7256ZM500.254%2057.3217C497.133%2057.8531%20493.977%2058.1542%20490.811%2058.2224L487.449%2058.2224C480.061%2058.2766%20472.682%2057.6921%20465.394%2056.4753L474.504%2042.1644%20490.692%2042.1644ZM482.602%2020.2188C488.73%2020.2155%20494.742%2021.8953%20499.981%2025.075L490.693%2039.8507%20474.491%2039.8195%20465.194%2025.0415C470.449%2021.8782%20476.468%2020.2107%20482.602%2020.2188ZM463.254%2026.2995%20472.504%2041.0023%20462.938%2056.0267C458.169%2055.1133%20453.47%2053.8672%20448.875%2052.2977%20449.378%2041.8709%20454.689%2032.2672%20463.254%2026.2995ZM456.876%2068.3719C456.595%2070.0115%20455.173%2071.2097%20453.509%2071.2094%20453.431%2071.2042%20453.354%2071.191%20453.278%2071.1701%20453.133%2071.1343%20452.984%2071.1101%20452.835%2071.0972%20451.94%2070.9264%20451.142%2070.4243%20450.601%2069.6912%20450.063%2068.9533%20449.853%2068.0254%20450.023%2067.1278L450.844%2062.3872%20457.525%2064.2962ZM514.123%2069.8103C513.566%2070.5637%20512.74%2071.0728%20511.817%2071.2313L511.657%2071.2718C511.514%2071.32%20511.363%2071.3392%20511.213%2071.3285%20509.525%2071.3698%20508.075%2070.1378%20507.844%2068.4656L507.486%2066.4688%20514.501%2065.8548%20514.701%2067.2527C514.87%2068.1485%20514.661%2069.0742%20514.123%2069.8103ZM532.723%2063%20532.607%2063C526.955%2063%20521.113%2063%20515.284%2063.4625L515.276%2063.4625%20515.276%2063.4625%20505.9%2064.2904%20504.36%2064.5078C498.77%2065.2064%20493.141%2065.5509%20487.508%2065.5391%20477.952%2065.5601%20468.425%2064.4858%20459.114%2062.3375L450.263%2059.8168%20446.738%2058.5658C443.792%2057.4525%20441.62%2054.9086%20440.982%2051.8237%20454.33%2057.5309%20470.023%2060.5383%20486.577%2060.5383%20486.868%2060.5383%20487.161%2060.5383%20487.452%2060.5383L490.828%2060.5383C500.421%2060.2575%20509.874%2058.1665%20518.689%2054.3755L518.797%2054.3304C521.437%2053.2216%20524.086%2051.9728%20526.649%2050.6235%20528.526%2049.6491%20530.608%2049.1354%20532.723%2049.125%20536.554%2048.8199%20539.908%2051.6785%20540.213%2055.5099%20540.518%2059.3414%20537.659%2062.6949%20533.828%2063%20533.46%2063.0293%20533.091%2063.0293%20532.723%2063Z'/%3e%3cpath%20d='M534.442%2053.75C534.442%2055.0272%20533.407%2056.0625%20532.13%2056.0625%20530.852%2056.0625%20529.817%2055.0272%20529.817%2053.75%20529.817%2052.4728%20530.852%2051.4375%20532.13%2051.4375%20533.407%2051.4375%20534.442%2052.4728%20534.442%2053.75Z'/%3e%3c/g%3e%3c/svg%3e", gc = "data:image/svg+xml,%3csvg%20width='159'%20height='159'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20xml:space='preserve'%20overflow='hidden'%3e%3cg%20transform='translate(-392%20-84)'%3e%3cpath%20d='M496.776%20189.601C496.122%20189.934%20495.77%20190.663%20495.916%20191.383L499.911%20210.219C500.074%20210.985%20500.75%20211.532%20501.533%20211.531L501.929%20211.531C503.729%20211.515%20505.222%20212.919%20505.319%20214.716%20505.389%20216.544%20503.964%20218.083%20502.136%20218.154%20502.093%20218.155%20502.05%20218.156%20502.006%20218.156L497.503%20218.156C495.941%20218.15%20494.594%20217.058%20494.263%20215.531L490.363%20197.147C490.174%20196.252%20489.294%20195.68%20488.4%20195.87%20488.399%20195.87%20488.399%20195.87%20488.399%20195.87%20488.174%20195.918%20487.962%20196.014%20487.776%20196.15L481.184%20200.898C479.925%20201.758%20478.809%20202.45%20477.776%20203.015%20476.998%20203.429%20476.669%20204.372%20477.022%20205.18%20477.402%20206.011%20478.385%20206.378%20479.217%20205.998%20479.253%20205.981%20479.288%20205.964%20479.322%20205.945%20480.618%20205.229%20481.877%20204.447%20483.094%20203.604L487.657%20200.313%20491.031%20216.213C491.677%20219.273%20494.376%20221.464%20497.503%20221.469L501.882%20221.469C505.577%20221.473%20508.587%20218.502%20508.631%20214.807%20508.608%20211.503%20506.158%20208.719%20502.883%20208.277L499.416%20191.93C502.051%20190.581%20506.719%20188.344%20509.619%20188.344%20515.225%20188.346%20520.812%20187.662%20526.252%20186.307%20530.081%20185.36%20533.152%20182.51%20534.381%20178.762L534.535%20178.295C535.676%20175.09%20535.323%20171.542%20533.573%20168.624L525.126%20154.2C522.254%20149.369%20517.625%20145.835%20512.207%20144.337%20512.364%20138.624%20511.516%20132.927%20509.7%20127.508%20504.714%20113.244%20488.452%20105.977%20487.761%20105.669%20487.336%20105.48%20486.851%20105.48%20486.426%20105.669%20485.959%20105.876%20484.987%20106.308%20483.1%20111.962%20482.811%20112.832%20483.281%20113.77%20484.15%20114.059%20485.019%20114.348%20485.958%20113.878%20486.247%20113.009%20486.649%20111.744%20487.129%20110.505%20487.685%20109.299%20491.474%20111.245%20502.818%20117.831%20506.566%20128.543%20508.418%20133.972%20509.183%20139.713%20508.815%20145.437%20508.734%20146.277%20509.297%20147.043%20510.122%20147.217%20515.212%20148.269%20519.626%20151.41%20522.287%20155.875L530.744%20170.299C532.007%20172.379%20532.256%20174.921%20531.42%20177.207L531.254%20177.727C530.378%20180.388%20528.194%20182.41%20525.474%20183.079%20520.288%20184.375%20514.964%20185.031%20509.619%20185.031%20505.93%20185.031%20501.061%20187.35%20496.776%20189.601Z'/%3e%3cpath%20d='M422.439%20192.966C421.946%20190.791%20421.681%20188.571%20421.649%20186.341%20421.7%20185.427%20421.001%20184.643%20420.086%20184.592%20419.171%20184.54%20418.388%20185.239%20418.336%20186.154%20418.324%20187.879%20418.47%20189.602%20418.772%20191.3%20412.577%20189.633%20408.907%20183.26%20410.574%20177.065%20411.942%20171.981%20416.559%20168.453%20421.824%20168.469%20422.661%20168.473%20423.491%20168.611%20424.284%20168.88%20425.056%20169.133%20425.898%20168.787%20426.271%20168.065%20435.26%20150.783%20455.639%20142.806%20473.971%20149.392%20474.837%20150.636%20475.5%20151.557%20475.559%20151.638%20476.094%20152.38%20477.129%20152.549%20477.872%20152.014%20478.614%20151.479%20478.782%20150.444%20478.248%20149.702%20478.216%20149.657%20475.101%20145.338%20473.444%20142.62%20467.845%20132.798%20470.283%20120.115%20471.358%20115.817%20475.617%20117.014%20487.816%20121.194%20493.442%20131.039%20496.082%20135.531%20497.921%20140.449%20498.876%20145.571%20499.017%20146.361%20499.705%20146.936%20500.508%20146.936L503.929%20146.936C504.816%20146.948%20505.561%20146.274%20505.639%20145.391%20505.7%20144.478%20505.01%20143.688%20504.097%20143.627%20504.059%20143.624%20504.021%20143.623%20503.982%20143.623L501.871%20143.623C500.778%20138.613%20498.902%20133.806%20496.312%20129.38%20488.742%20116.13%20471.271%20112.337%20470.533%20112.183%20469.704%20112.01%20468.879%20112.489%20468.618%20113.294%20468.385%20114.011%20463.013%20131.036%20470.568%20144.256%20470.579%20144.276%20470.745%20144.576%20470.978%20144.973%20470.99%20144.991%20470.978%20145.003%20470.96%20144.998%20452.498%20140.481%20433.287%20148.811%20423.966%20165.375%20423.261%20165.231%20422.543%20165.158%20421.824%20165.156%20413.582%20165.183%20406.923%20171.886%20406.95%20180.128%20406.974%20187.414%20412.256%20193.618%20419.446%20194.803L419.446%20194.803C419.532%20195.194%20419.611%20195.585%20419.706%20195.972L419.8%20196.329C422.428%20206.56%20428.796%20215.436%20437.646%20221.204%20437.917%20221.379%20438.232%20221.473%20438.554%20221.474L473.068%20221.474C476.748%20221.495%20479.756%20218.542%20479.801%20214.862%20479.847%20211.242%20476.95%20208.27%20473.329%20208.224%20473.278%20208.223%20473.227%20208.223%20473.176%20208.224L465.158%20208.224C474.765%20201.216%20476.873%20187.747%20469.866%20178.14%20465.812%20172.583%20459.348%20169.297%20452.47%20169.297%20450.573%20169.261%20448.682%20169.507%20446.858%20170.029%20445.981%20170.293%20445.484%20171.219%20445.749%20172.096%20446.013%20172.973%20446.938%20173.47%20447.816%20173.206%20449.328%20172.775%20450.897%20172.574%20452.47%20172.609%20462.532%20172.632%20470.67%20180.807%20470.648%20190.869%20470.63%20198.914%20465.337%20205.995%20457.626%20208.29%20456.784%20208.543%20456.286%20209.408%20456.491%20210.263%20456.686%20211.016%20457.369%20211.54%20458.147%20211.533L473.107%20211.533C474.951%20211.521%20476.458%20213.001%20476.48%20214.845%20476.52%20216.635%20475.102%20218.118%20473.312%20218.158%20473.264%20218.159%20473.216%20218.159%20473.168%20218.158L439.054%20218.158C431.004%20212.776%20425.251%20204.584%20422.922%20195.184%20422.853%20194.889%20422.795%20194.619%20422.733%20194.339Z'/%3e%3cpath%20d='M519.521%20163.831C519.708%20162.011%20518.383%20160.385%20516.563%20160.199%20514.743%20160.012%20513.117%20161.337%20512.931%20163.157%20512.744%20164.977%20514.069%20166.603%20515.889%20166.789%20516.113%20166.812%20516.339%20166.812%20516.563%20166.789%20518.126%20166.629%20519.361%20165.394%20519.521%20163.831Z'/%3e%3c/g%3e%3c/svg%3e", hc = "_WPMSpeedButtonsWrap_r3byt_1", mc = "_btnWrap_r3byt_7", bc = "_label_r3byt_14", vc = "_iconBtn_r3byt_22", qt = {
|
|
5482
5482
|
WPMSpeedButtonsWrap: hc,
|
|
5483
5483
|
btnWrap: mc,
|
|
5484
5484
|
label: bc,
|
|
5485
5485
|
iconBtn: vc
|
|
5486
|
-
},
|
|
5487
|
-
const t = X((f) => f.audioSpeed), n = X((f) => f.incAudioSpeed), r = X((f) => f.decAudioSpeed), o = ie(null), i = ie(
|
|
5486
|
+
}, Co = 350, Sc = 40, yc = 0.85, xc = Wt(function() {
|
|
5487
|
+
const t = X((f) => f.audioSpeed), n = X((f) => f.incAudioSpeed), r = X((f) => f.decAudioSpeed), o = ie(null), i = ie(Co), s = ie(null), u = ne(
|
|
5488
5488
|
(f) => {
|
|
5489
5489
|
const m = t;
|
|
5490
5490
|
if (f === "inc") {
|
|
@@ -5506,7 +5506,7 @@ const uc = W.memo(cc), dc = Dt(function() {
|
|
|
5506
5506
|
}, [u, a]), d = ne(
|
|
5507
5507
|
(f) => {
|
|
5508
5508
|
if (s.current) return;
|
|
5509
|
-
s.current = f, i.current =
|
|
5509
|
+
s.current = f, i.current = Co, u(f) && l();
|
|
5510
5510
|
const v = () => a();
|
|
5511
5511
|
window.addEventListener("mouseup", v, { once: !0 }), window.addEventListener("touchend", v, { once: !0 });
|
|
5512
5512
|
},
|
|
@@ -5561,7 +5561,7 @@ function Cc(e) {
|
|
|
5561
5561
|
function Tc(e) {
|
|
5562
5562
|
return Ze({ attr: { viewBox: "0 0 256 256", fill: "currentColor" }, child: [{ tag: "path", attr: { d: "M221.66,133.66l-80,80A8,8,0,0,1,128,208V147.31L61.66,213.66A8,8,0,0,1,48,208V48a8,8,0,0,1,13.66-5.66L128,108.69V48a8,8,0,0,1,13.66-5.66l80,80A8,8,0,0,1,221.66,133.66Z" }, child: [] }] })(e);
|
|
5563
5563
|
}
|
|
5564
|
-
function
|
|
5564
|
+
function To({ direction: e }) {
|
|
5565
5565
|
const t = j((h) => h.currentGlobalRunIndex), n = j((h) => h.totalRuns), r = j((h) => h.hasReadableInDir), o = j((h) => h.computeStepTarget), i = j((h) => h.setCurrentGlobalRunIndex), s = _e((h) => h.syncToGI), u = j((h) => h.getSectionScrollApi), a = ne(
|
|
5566
5566
|
async (h) => {
|
|
5567
5567
|
var v, y;
|
|
@@ -5595,7 +5595,7 @@ function Co({ direction: e }) {
|
|
|
5595
5595
|
}
|
|
5596
5596
|
);
|
|
5597
5597
|
}
|
|
5598
|
-
const kc = "_GCPlayBtn_n54mc_1", Rc = "_playing_n54mc_34",
|
|
5598
|
+
const kc = "_GCPlayBtn_n54mc_1", Rc = "_playing_n54mc_34", ko = {
|
|
5599
5599
|
GCPlayBtn: kc,
|
|
5600
5600
|
playing: Rc
|
|
5601
5601
|
}, _c = ({
|
|
@@ -5609,7 +5609,7 @@ const kc = "_GCPlayBtn_n54mc_1", Rc = "_playing_n54mc_34", To = {
|
|
|
5609
5609
|
}) => /* @__PURE__ */ x(
|
|
5610
5610
|
"button",
|
|
5611
5611
|
{
|
|
5612
|
-
className: `${
|
|
5612
|
+
className: `${ko.GCPlayBtn} ${r ? ko.playing : ""}`,
|
|
5613
5613
|
onClick: o,
|
|
5614
5614
|
"data-tip": i,
|
|
5615
5615
|
title: s,
|
|
@@ -5628,7 +5628,7 @@ function Ec(e) {
|
|
|
5628
5628
|
}
|
|
5629
5629
|
function Oc() {
|
|
5630
5630
|
var _;
|
|
5631
|
-
const e = X((C) => C.showOverlays), t = j((C) => C.section), n = !!t.ast.isAddedSplit, r = !!((_ = t.audios) != null && _.length), o = j((C) => C.canTracking), i = j((C) => C.canToggleShowGaze), s = j((C) => C.showGaze), u = j((C) => C.onToggleShowGaze), a = X((C) => C.muteAudio), l = X((C) => C.showPointer), d = X((C) => C.showSplit), h = X((C) => C.toggleMuteAudio), f = X((C) => C.toggleShowPointer), m = X((C) => C.toggleShowSplit), v = X((C) => C.overlayCompactMode), y = X((C) => C.toggleOverlayCompactMode), c =
|
|
5631
|
+
const e = X((C) => C.showOverlays), t = j((C) => C.section), n = !!t.ast.isAddedSplit, r = !!((_ = t.audios) != null && _.length), o = j((C) => C.canTracking), i = j((C) => C.canToggleShowGaze), s = j((C) => C.showGaze), u = j((C) => C.onToggleShowGaze), a = X((C) => C.muteAudio), l = X((C) => C.showPointer), d = X((C) => C.showSplit), h = X((C) => C.toggleMuteAudio), f = X((C) => C.toggleShowPointer), m = X((C) => C.toggleShowSplit), v = X((C) => C.overlayCompactMode), y = X((C) => C.toggleOverlayCompactMode), c = xn(), p = yt();
|
|
5632
5632
|
pe(() => {
|
|
5633
5633
|
const C = c.getState(), { syncToGI: O, useFake: P, useReal: I } = C, R = C.playbackKind, z = p.getState().progress.currentGlobalRunIndex ?? 0;
|
|
5634
5634
|
if (!r) {
|
|
@@ -5642,7 +5642,7 @@ function Oc() {
|
|
|
5642
5642
|
C.stopPropagation(), T === "playing" || T === "loading" ? w() : g();
|
|
5643
5643
|
},
|
|
5644
5644
|
[T, g, w]
|
|
5645
|
-
), M =
|
|
5645
|
+
), M = xn(), b = yt(), S = ne(
|
|
5646
5646
|
async (C) => {
|
|
5647
5647
|
var xe, Fe;
|
|
5648
5648
|
if (C.stopPropagation(), T === "playing" || T === "loading") {
|
|
@@ -5692,7 +5692,7 @@ function Oc() {
|
|
|
5692
5692
|
}
|
|
5693
5693
|
) }),
|
|
5694
5694
|
/* @__PURE__ */ ee("div", { className: Re.groupPlayback, children: [
|
|
5695
|
-
/* @__PURE__ */ x(
|
|
5695
|
+
/* @__PURE__ */ x(To, { direction: "left" }),
|
|
5696
5696
|
/* @__PURE__ */ x(
|
|
5697
5697
|
_c,
|
|
5698
5698
|
{
|
|
@@ -5702,7 +5702,7 @@ function Oc() {
|
|
|
5702
5702
|
title: T === "playing" ? "일시정지" : "재생"
|
|
5703
5703
|
}
|
|
5704
5704
|
),
|
|
5705
|
-
/* @__PURE__ */ x(
|
|
5705
|
+
/* @__PURE__ */ x(To, { direction: "right" })
|
|
5706
5706
|
] }),
|
|
5707
5707
|
/* @__PURE__ */ x("div", { className: Re.groupSpeed, children: /* @__PURE__ */ x(xc, {}) })
|
|
5708
5708
|
] }),
|
|
@@ -5773,7 +5773,7 @@ function Oc() {
|
|
|
5773
5773
|
] }),
|
|
5774
5774
|
/* @__PURE__ */ ee("div", { className: Re.groupNav, children: [
|
|
5775
5775
|
/* @__PURE__ */ x(Ra, {}),
|
|
5776
|
-
/* @__PURE__ */ x(
|
|
5776
|
+
/* @__PURE__ */ x(Tn, {})
|
|
5777
5777
|
] })
|
|
5778
5778
|
] })
|
|
5779
5779
|
] })
|
|
@@ -5781,11 +5781,11 @@ function Oc() {
|
|
|
5781
5781
|
}
|
|
5782
5782
|
);
|
|
5783
5783
|
}
|
|
5784
|
-
const zc =
|
|
5784
|
+
const zc = D.memo(Oc);
|
|
5785
5785
|
function Pc(e) {
|
|
5786
5786
|
return Ze({ attr: { viewBox: "0 0 512 512" }, child: [{ tag: "path", attr: { fill: "none", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "32", d: "M262.29 192.31a64 64 0 1 0 57.4 57.4 64.13 64.13 0 0 0-57.4-57.4zM416.39 256a154.34 154.34 0 0 1-1.53 20.79l45.21 35.46a10.81 10.81 0 0 1 2.45 13.75l-42.77 74a10.81 10.81 0 0 1-13.14 4.59l-44.9-18.08a16.11 16.11 0 0 0-15.17 1.75A164.48 164.48 0 0 1 325 400.8a15.94 15.94 0 0 0-8.82 12.14l-6.73 47.89a11.08 11.08 0 0 1-10.68 9.17h-85.54a11.11 11.11 0 0 1-10.69-8.87l-6.72-47.82a16.07 16.07 0 0 0-9-12.22 155.3 155.3 0 0 1-21.46-12.57 16 16 0 0 0-15.11-1.71l-44.89 18.07a10.81 10.81 0 0 1-13.14-4.58l-42.77-74a10.8 10.8 0 0 1 2.45-13.75l38.21-30a16.05 16.05 0 0 0 6-14.08c-.36-4.17-.58-8.33-.58-12.5s.21-8.27.58-12.35a16 16 0 0 0-6.07-13.94l-38.19-30A10.81 10.81 0 0 1 49.48 186l42.77-74a10.81 10.81 0 0 1 13.14-4.59l44.9 18.08a16.11 16.11 0 0 0 15.17-1.75A164.48 164.48 0 0 1 187 111.2a15.94 15.94 0 0 0 8.82-12.14l6.73-47.89A11.08 11.08 0 0 1 213.23 42h85.54a11.11 11.11 0 0 1 10.69 8.87l6.72 47.82a16.07 16.07 0 0 0 9 12.22 155.3 155.3 0 0 1 21.46 12.57 16 16 0 0 0 15.11 1.71l44.89-18.07a10.81 10.81 0 0 1 13.14 4.58l42.77 74a10.8 10.8 0 0 1-2.45 13.75l-38.21 30a16.05 16.05 0 0 0-6.05 14.08c.33 4.14.55 8.3.55 12.47z" }, child: [] }] })(e);
|
|
5787
5787
|
}
|
|
5788
|
-
const Ac = "_host_gafql_3", Bc = "_topbar_gafql_11", Gc = "_visible_gafql_32", Lc = "_backBtn_gafql_37", Hc = "_title_gafql_58", Nc = "_calibrationBtn_gafql_67", Fc = "_disabled_gafql_87",
|
|
5788
|
+
const Ac = "_host_gafql_3", Bc = "_topbar_gafql_11", Gc = "_visible_gafql_32", Lc = "_backBtn_gafql_37", Hc = "_title_gafql_58", Nc = "_calibrationBtn_gafql_67", Fc = "_disabled_gafql_87", Wc = "_settingsBtn_gafql_95", vt = {
|
|
5789
5789
|
host: Ac,
|
|
5790
5790
|
topbar: Bc,
|
|
5791
5791
|
visible: Gc,
|
|
@@ -5793,9 +5793,9 @@ const Ac = "_host_gafql_3", Bc = "_topbar_gafql_11", Gc = "_visible_gafql_32", L
|
|
|
5793
5793
|
title: Hc,
|
|
5794
5794
|
calibrationBtn: Nc,
|
|
5795
5795
|
disabled: Fc,
|
|
5796
|
-
settingsBtn:
|
|
5796
|
+
settingsBtn: Wc
|
|
5797
5797
|
};
|
|
5798
|
-
function
|
|
5798
|
+
function Dc() {
|
|
5799
5799
|
const e = X((h) => h.showOverlays), t = X((h) => h.overlayCompactMode), n = j((h) => h.onViewerClose), o = j((h) => h.section).ast.title, i = j((h) => h.canTracking), s = j((h) => h.handleAskCalibration), u = X((h) => h.setSettingsOpen), a = X((h) => h.setShowOverlays), l = ne(() => {
|
|
5800
5800
|
n == null || n();
|
|
5801
5801
|
}, [n]), d = ne(() => {
|
|
@@ -5828,7 +5828,7 @@ function Wc() {
|
|
|
5828
5828
|
)
|
|
5829
5829
|
] }) });
|
|
5830
5830
|
}
|
|
5831
|
-
const $c =
|
|
5831
|
+
const $c = D.memo(Dc), Vc = "_wrap_62su0_7", qc = "_wrapHidden_62su0_29", jc = "_wrapVisible_62su0_35", Uc = "_scrollArea_62su0_71", Kc = "_row_62su0_81", Xc = "_label_62su0_89", Yc = "_btn_62su0_95", Qc = "_btnActive_62su0_106", Zc = "_btnSmall_62su0_110", Jc = "_pill_62su0_122", eu = "_themeCircle_62su0_133", tu = "_themeCircleActive_62su0_146", nu = "_stepRow_62su0_151", ru = "_stepLabel_62su0_159", ou = "_levelBox_62su0_172", iu = "_inlineFlex_62su0_177", Ae = {
|
|
5832
5832
|
wrap: Vc,
|
|
5833
5833
|
wrapHidden: qc,
|
|
5834
5834
|
wrapVisible: jc,
|
|
@@ -5854,8 +5854,8 @@ function su({ visible: e }) {
|
|
|
5854
5854
|
/* @__PURE__ */ x(Gt, { active: t === "page", onClick: () => n("page"), children: "페이지" }),
|
|
5855
5855
|
/* @__PURE__ */ x(Gt, { active: t === "scroll", onClick: () => n("scroll"), children: "스크롤" })
|
|
5856
5856
|
] }) }),
|
|
5857
|
-
/* @__PURE__ */ x(jt, { label: "테마", children: /* @__PURE__ */ x("div", { className: Ae.inlineFlex, children: Object.keys(
|
|
5858
|
-
const S = b, _ =
|
|
5857
|
+
/* @__PURE__ */ x(jt, { label: "테마", children: /* @__PURE__ */ x("div", { className: Ae.inlineFlex, children: Object.keys(vn).map((b) => {
|
|
5858
|
+
const S = b, _ = vn[S];
|
|
5859
5859
|
return /* @__PURE__ */ x(
|
|
5860
5860
|
"button",
|
|
5861
5861
|
{
|
|
@@ -6010,7 +6010,7 @@ function pn({
|
|
|
6010
6010
|
] })
|
|
6011
6011
|
] });
|
|
6012
6012
|
}
|
|
6013
|
-
const lu =
|
|
6013
|
+
const lu = D.memo(function() {
|
|
6014
6014
|
const t = X((s) => s.showOverlays), n = X((s) => s.isSettingsOpen), r = j((s) => s.rangeStartGI), o = j((s) => s.rangeEndGI);
|
|
6015
6015
|
return r != null && o != null ? null : /* @__PURE__ */ ee(
|
|
6016
6016
|
"div",
|
|
@@ -6286,7 +6286,7 @@ function gu({
|
|
|
6286
6286
|
initialState: t
|
|
6287
6287
|
}) {
|
|
6288
6288
|
const n = Ue(Ot) ?? void 0, r = me(() => pu({ ...t, recorderStore: n }), [t, n]);
|
|
6289
|
-
return /* @__PURE__ */ x(
|
|
6289
|
+
return /* @__PURE__ */ x(zn.Provider, { value: r, children: e });
|
|
6290
6290
|
}
|
|
6291
6291
|
function hu(e) {
|
|
6292
6292
|
var i, s;
|
|
@@ -6323,7 +6323,7 @@ function bu(e) {
|
|
|
6323
6323
|
const f = n[h] ?? 0, m = d.runs ?? [];
|
|
6324
6324
|
for (let p = 0; p < m.length; p++) {
|
|
6325
6325
|
const g = ((c = m[p]) == null ? void 0 : c.text) || "";
|
|
6326
|
-
|
|
6326
|
+
Sr(g) && (i[f + p] = 1);
|
|
6327
6327
|
}
|
|
6328
6328
|
const y = ca(m, f).map((p) => {
|
|
6329
6329
|
var k;
|
|
@@ -6331,7 +6331,7 @@ function bu(e) {
|
|
|
6331
6331
|
let T = -1;
|
|
6332
6332
|
for (let M = 0; M < w; M++) {
|
|
6333
6333
|
const b = ((k = m[g + M]) == null ? void 0 : k.text) ?? "";
|
|
6334
|
-
if (
|
|
6334
|
+
if (Sr(b)) {
|
|
6335
6335
|
T = p.startG + M;
|
|
6336
6336
|
break;
|
|
6337
6337
|
}
|
|
@@ -6694,14 +6694,14 @@ function yu({
|
|
|
6694
6694
|
}));
|
|
6695
6695
|
};
|
|
6696
6696
|
return i(), n.subscribe(i);
|
|
6697
|
-
}, [o, n]), /* @__PURE__ */ x(
|
|
6697
|
+
}, [o, n]), /* @__PURE__ */ x(xr.Provider, { value: o, children: e });
|
|
6698
6698
|
}
|
|
6699
6699
|
function xu({
|
|
6700
6700
|
children: e,
|
|
6701
6701
|
initialState: t
|
|
6702
6702
|
}) {
|
|
6703
6703
|
const n = Ue(Ot) ?? void 0, r = ie(us({ init: t, recorderStore: n }));
|
|
6704
|
-
return /* @__PURE__ */ x(
|
|
6704
|
+
return /* @__PURE__ */ x(yr.Provider, { value: r.current, children: e });
|
|
6705
6705
|
}
|
|
6706
6706
|
const wu = ({
|
|
6707
6707
|
// paraIndexMap,
|
|
@@ -6739,9 +6739,9 @@ const wu = ({
|
|
|
6739
6739
|
}
|
|
6740
6740
|
return g;
|
|
6741
6741
|
}, [v, o]), c = me(() => {
|
|
6742
|
-
const g = [], w =
|
|
6742
|
+
const g = [], w = Ar();
|
|
6743
6743
|
return y.forEach((T, k) => {
|
|
6744
|
-
g[k] =
|
|
6744
|
+
g[k] = Br(T.b, w);
|
|
6745
6745
|
}), g;
|
|
6746
6746
|
}, [y]), p = (g, w, T) => {
|
|
6747
6747
|
if (!g || g.length === 0) return [];
|
|
@@ -6916,7 +6916,7 @@ const wu = ({
|
|
|
6916
6916
|
)
|
|
6917
6917
|
}
|
|
6918
6918
|
);
|
|
6919
|
-
},
|
|
6919
|
+
}, gn = 0.5;
|
|
6920
6920
|
function Iu(e, t) {
|
|
6921
6921
|
const n = ie(null), r = ie(null), o = ie(!1);
|
|
6922
6922
|
pe(() => {
|
|
@@ -6933,12 +6933,22 @@ function Iu(e, t) {
|
|
|
6933
6933
|
r.current = { w: d, h };
|
|
6934
6934
|
return;
|
|
6935
6935
|
}
|
|
6936
|
-
Math.abs(f.w - d) <
|
|
6936
|
+
Math.abs(f.w - d) < gn && Math.abs(f.h - h) < gn || (r.current = { w: d, h }, i());
|
|
6937
6937
|
});
|
|
6938
6938
|
e.forEach((a) => {
|
|
6939
6939
|
a.current && s.observe(a.current);
|
|
6940
6940
|
});
|
|
6941
|
-
const u = () =>
|
|
6941
|
+
const u = () => {
|
|
6942
|
+
var l;
|
|
6943
|
+
const a = (l = e[0]) == null ? void 0 : l.current;
|
|
6944
|
+
if (a && r.current) {
|
|
6945
|
+
const d = a.offsetWidth, h = a.offsetHeight;
|
|
6946
|
+
if (Math.abs(r.current.w - d) < gn && Math.abs(r.current.h - h) < gn)
|
|
6947
|
+
return;
|
|
6948
|
+
r.current = { w: d, h };
|
|
6949
|
+
}
|
|
6950
|
+
i();
|
|
6951
|
+
};
|
|
6942
6952
|
return window.addEventListener("resize", u), () => {
|
|
6943
6953
|
window.removeEventListener("resize", u), s.disconnect(), n.current != null && cancelAnimationFrame(n.current), n.current = null;
|
|
6944
6954
|
};
|
|
@@ -7110,42 +7120,42 @@ function Cu(e) {
|
|
|
7110
7120
|
onClick: I
|
|
7111
7121
|
};
|
|
7112
7122
|
}
|
|
7113
|
-
var
|
|
7123
|
+
var Un, Ro;
|
|
7114
7124
|
function Hi() {
|
|
7115
|
-
if (Ro) return
|
|
7125
|
+
if (Ro) return Un;
|
|
7116
7126
|
Ro = 1;
|
|
7117
7127
|
function e(t) {
|
|
7118
7128
|
var n = typeof t;
|
|
7119
7129
|
return t != null && (n == "object" || n == "function");
|
|
7120
7130
|
}
|
|
7121
|
-
return
|
|
7131
|
+
return Un = e, Un;
|
|
7122
7132
|
}
|
|
7123
|
-
var
|
|
7133
|
+
var Kn, _o;
|
|
7124
7134
|
function Tu() {
|
|
7125
|
-
if (_o) return
|
|
7135
|
+
if (_o) return Kn;
|
|
7126
7136
|
_o = 1;
|
|
7127
7137
|
var e = typeof an == "object" && an && an.Object === Object && an;
|
|
7128
|
-
return
|
|
7138
|
+
return Kn = e, Kn;
|
|
7129
7139
|
}
|
|
7130
|
-
var
|
|
7140
|
+
var Xn, Mo;
|
|
7131
7141
|
function Ni() {
|
|
7132
|
-
if (Mo) return
|
|
7142
|
+
if (Mo) return Xn;
|
|
7133
7143
|
Mo = 1;
|
|
7134
7144
|
var e = Tu(), t = typeof self == "object" && self && self.Object === Object && self, n = e || t || Function("return this")();
|
|
7135
|
-
return
|
|
7145
|
+
return Xn = n, Xn;
|
|
7136
7146
|
}
|
|
7137
|
-
var
|
|
7147
|
+
var Yn, Eo;
|
|
7138
7148
|
function ku() {
|
|
7139
|
-
if (Eo) return
|
|
7149
|
+
if (Eo) return Yn;
|
|
7140
7150
|
Eo = 1;
|
|
7141
7151
|
var e = Ni(), t = function() {
|
|
7142
7152
|
return e.Date.now();
|
|
7143
7153
|
};
|
|
7144
|
-
return
|
|
7154
|
+
return Yn = t, Yn;
|
|
7145
7155
|
}
|
|
7146
|
-
var
|
|
7156
|
+
var Qn, Oo;
|
|
7147
7157
|
function Ru() {
|
|
7148
|
-
if (Oo) return
|
|
7158
|
+
if (Oo) return Qn;
|
|
7149
7159
|
Oo = 1;
|
|
7150
7160
|
var e = /\s/;
|
|
7151
7161
|
function t(n) {
|
|
@@ -7153,28 +7163,28 @@ function Ru() {
|
|
|
7153
7163
|
;
|
|
7154
7164
|
return r;
|
|
7155
7165
|
}
|
|
7156
|
-
return
|
|
7166
|
+
return Qn = t, Qn;
|
|
7157
7167
|
}
|
|
7158
|
-
var
|
|
7168
|
+
var Zn, zo;
|
|
7159
7169
|
function _u() {
|
|
7160
|
-
if (zo) return
|
|
7170
|
+
if (zo) return Zn;
|
|
7161
7171
|
zo = 1;
|
|
7162
7172
|
var e = Ru(), t = /^\s+/;
|
|
7163
7173
|
function n(r) {
|
|
7164
7174
|
return r && r.slice(0, e(r) + 1).replace(t, "");
|
|
7165
7175
|
}
|
|
7166
|
-
return
|
|
7176
|
+
return Zn = n, Zn;
|
|
7167
7177
|
}
|
|
7168
|
-
var
|
|
7178
|
+
var Jn, Po;
|
|
7169
7179
|
function Fi() {
|
|
7170
|
-
if (Po) return
|
|
7180
|
+
if (Po) return Jn;
|
|
7171
7181
|
Po = 1;
|
|
7172
7182
|
var e = Ni(), t = e.Symbol;
|
|
7173
|
-
return
|
|
7183
|
+
return Jn = t, Jn;
|
|
7174
7184
|
}
|
|
7175
|
-
var
|
|
7185
|
+
var er, Ao;
|
|
7176
7186
|
function Mu() {
|
|
7177
|
-
if (Ao) return
|
|
7187
|
+
if (Ao) return er;
|
|
7178
7188
|
Ao = 1;
|
|
7179
7189
|
var e = Fi(), t = Object.prototype, n = t.hasOwnProperty, r = t.toString, o = e ? e.toStringTag : void 0;
|
|
7180
7190
|
function i(s) {
|
|
@@ -7187,50 +7197,50 @@ function Mu() {
|
|
|
7187
7197
|
var d = r.call(s);
|
|
7188
7198
|
return l && (u ? s[o] = a : delete s[o]), d;
|
|
7189
7199
|
}
|
|
7190
|
-
return
|
|
7200
|
+
return er = i, er;
|
|
7191
7201
|
}
|
|
7192
|
-
var
|
|
7202
|
+
var tr, Bo;
|
|
7193
7203
|
function Eu() {
|
|
7194
|
-
if (Bo) return
|
|
7204
|
+
if (Bo) return tr;
|
|
7195
7205
|
Bo = 1;
|
|
7196
7206
|
var e = Object.prototype, t = e.toString;
|
|
7197
7207
|
function n(r) {
|
|
7198
7208
|
return t.call(r);
|
|
7199
7209
|
}
|
|
7200
|
-
return
|
|
7210
|
+
return tr = n, tr;
|
|
7201
7211
|
}
|
|
7202
|
-
var
|
|
7212
|
+
var nr, Go;
|
|
7203
7213
|
function Ou() {
|
|
7204
|
-
if (Go) return
|
|
7214
|
+
if (Go) return nr;
|
|
7205
7215
|
Go = 1;
|
|
7206
7216
|
var e = Fi(), t = Mu(), n = Eu(), r = "[object Null]", o = "[object Undefined]", i = e ? e.toStringTag : void 0;
|
|
7207
7217
|
function s(u) {
|
|
7208
7218
|
return u == null ? u === void 0 ? o : r : i && i in Object(u) ? t(u) : n(u);
|
|
7209
7219
|
}
|
|
7210
|
-
return
|
|
7220
|
+
return nr = s, nr;
|
|
7211
7221
|
}
|
|
7212
|
-
var
|
|
7222
|
+
var rr, Lo;
|
|
7213
7223
|
function zu() {
|
|
7214
|
-
if (Lo) return
|
|
7224
|
+
if (Lo) return rr;
|
|
7215
7225
|
Lo = 1;
|
|
7216
7226
|
function e(t) {
|
|
7217
7227
|
return t != null && typeof t == "object";
|
|
7218
7228
|
}
|
|
7219
|
-
return
|
|
7229
|
+
return rr = e, rr;
|
|
7220
7230
|
}
|
|
7221
|
-
var
|
|
7231
|
+
var or, Ho;
|
|
7222
7232
|
function Pu() {
|
|
7223
|
-
if (Ho) return
|
|
7233
|
+
if (Ho) return or;
|
|
7224
7234
|
Ho = 1;
|
|
7225
7235
|
var e = Ou(), t = zu(), n = "[object Symbol]";
|
|
7226
7236
|
function r(o) {
|
|
7227
7237
|
return typeof o == "symbol" || t(o) && e(o) == n;
|
|
7228
7238
|
}
|
|
7229
|
-
return
|
|
7239
|
+
return or = r, or;
|
|
7230
7240
|
}
|
|
7231
|
-
var
|
|
7241
|
+
var ir, No;
|
|
7232
7242
|
function Au() {
|
|
7233
|
-
if (No) return
|
|
7243
|
+
if (No) return ir;
|
|
7234
7244
|
No = 1;
|
|
7235
7245
|
var e = _u(), t = Hi(), n = Pu(), r = NaN, o = /^[-+]0x[0-9a-f]+$/i, i = /^0b[01]+$/i, s = /^0o[0-7]+$/i, u = parseInt;
|
|
7236
7246
|
function a(l) {
|
|
@@ -7248,11 +7258,11 @@ function Au() {
|
|
|
7248
7258
|
var h = i.test(l);
|
|
7249
7259
|
return h || s.test(l) ? u(l.slice(2), h ? 2 : 8) : o.test(l) ? r : +l;
|
|
7250
7260
|
}
|
|
7251
|
-
return
|
|
7261
|
+
return ir = a, ir;
|
|
7252
7262
|
}
|
|
7253
|
-
var
|
|
7263
|
+
var sr, Fo;
|
|
7254
7264
|
function Bu() {
|
|
7255
|
-
if (Fo) return
|
|
7265
|
+
if (Fo) return sr;
|
|
7256
7266
|
Fo = 1;
|
|
7257
7267
|
var e = Hi(), t = ku(), n = Au(), r = "Expected a function", o = Math.max, i = Math.min;
|
|
7258
7268
|
function s(u, a, l) {
|
|
@@ -7302,7 +7312,7 @@ function Bu() {
|
|
|
7302
7312
|
}
|
|
7303
7313
|
return P.cancel = C, P.flush = O, P;
|
|
7304
7314
|
}
|
|
7305
|
-
return
|
|
7315
|
+
return sr = s, sr;
|
|
7306
7316
|
}
|
|
7307
7317
|
var Gu = Bu();
|
|
7308
7318
|
const Lu = /* @__PURE__ */ Uo(Gu);
|
|
@@ -7329,41 +7339,41 @@ function Hu(e, t = 200, n, r) {
|
|
|
7329
7339
|
return pe(() => () => s.cancel(), [s]), s;
|
|
7330
7340
|
}
|
|
7331
7341
|
const Nu = "https://fonts.googleapis.com/css2?family=Nanum+Myeongjo:wght@400;700&family=Noto+Sans+KR:wght@300;400;500;700&family=Noto+Serif+KR:wght@400;700&display=swap";
|
|
7332
|
-
let
|
|
7342
|
+
let lr = !1;
|
|
7333
7343
|
function Fu() {
|
|
7334
|
-
if (
|
|
7344
|
+
if (lr || typeof document > "u") return;
|
|
7335
7345
|
if (document.querySelector(
|
|
7336
7346
|
'link[href*="fonts.googleapis.com"][href*="Noto"]'
|
|
7337
7347
|
)) {
|
|
7338
|
-
|
|
7348
|
+
lr = !0;
|
|
7339
7349
|
return;
|
|
7340
7350
|
}
|
|
7341
7351
|
const t = document.createElement("link");
|
|
7342
|
-
t.rel = "stylesheet", t.href = Nu, document.head.appendChild(t),
|
|
7352
|
+
t.rel = "stylesheet", t.href = Nu, document.head.appendChild(t), lr = !0;
|
|
7343
7353
|
}
|
|
7344
|
-
const
|
|
7345
|
-
const t =
|
|
7346
|
-
return
|
|
7354
|
+
const Wi = /* @__PURE__ */ new Map(), Di = (e) => Wi.get(e) ?? 0, Wu = (e) => {
|
|
7355
|
+
const t = Di(e) + 1;
|
|
7356
|
+
return Wi.set(e, t), t;
|
|
7347
7357
|
};
|
|
7348
7358
|
class $i extends Error {
|
|
7349
7359
|
constructor() {
|
|
7350
7360
|
super("calcPages canceled due to a newer invocation");
|
|
7351
|
-
|
|
7361
|
+
Hr(this, "code", "CALC_PAGES_CANCELED");
|
|
7352
7362
|
this.name = "CalcPagesCanceled";
|
|
7353
7363
|
}
|
|
7354
7364
|
}
|
|
7355
7365
|
const rt = (e, t) => {
|
|
7356
|
-
if (e !==
|
|
7357
|
-
},
|
|
7366
|
+
if (e !== Di(t)) throw new $i();
|
|
7367
|
+
}, ar = (e) => {
|
|
7358
7368
|
const t = getComputedStyle(e), n = parseFloat(t.marginTop || "0") || 0, r = parseFloat(t.marginBottom || "0") || 0;
|
|
7359
7369
|
return { mt: n, mb: r };
|
|
7360
|
-
},
|
|
7370
|
+
}, Wo = (e) => {
|
|
7361
7371
|
const t = e.getClientRects(), n = t.length ? t[0].top : e.getBoundingClientRect().top, r = e.querySelectorAll("[data-runbox]"), o = [];
|
|
7362
7372
|
return r.forEach((i, s) => {
|
|
7363
7373
|
const u = i.getClientRects(), a = u.length ? u[u.length - 1].bottom : n;
|
|
7364
7374
|
o[s] = Math.max(0, a - n);
|
|
7365
7375
|
}), o;
|
|
7366
|
-
},
|
|
7376
|
+
}, Du = (e, t, n) => {
|
|
7367
7377
|
if (n < 16)
|
|
7368
7378
|
return async (o = 24) => {
|
|
7369
7379
|
rt(e, t);
|
|
@@ -7392,7 +7402,7 @@ async function $u({
|
|
|
7392
7402
|
instanceId: y = "default"
|
|
7393
7403
|
}) {
|
|
7394
7404
|
var p, g, w;
|
|
7395
|
-
const c =
|
|
7405
|
+
const c = Wu(y);
|
|
7396
7406
|
if (rt(c, y), s && typeof document < "u" && document.fonts) {
|
|
7397
7407
|
Fu();
|
|
7398
7408
|
try {
|
|
@@ -7431,7 +7441,7 @@ async function $u({
|
|
|
7431
7441
|
N.style.boxSizing = "border-box", N.style.width = `${R}px`, N.style.maxWidth = `${R}px`, N.style.margin = "0 auto", N.style.display = "flex", n.appendChild(N);
|
|
7432
7442
|
const A = document.createElement("div");
|
|
7433
7443
|
A.style.boxSizing = "border-box", A.style.paddingRight = `${i}px`, A.style.paddingLeft = `${i}px`, A.style.width = `${R}px`, A.style.maxWidth = `${R}px`, A.style.margin = "0 auto", A.style.display = "flex", A.style.justifyContent = "center", A.style.height = "auto", N.appendChild(A);
|
|
7434
|
-
const V = /* @__PURE__ */ new Map(), re = {}, be =
|
|
7444
|
+
const V = /* @__PURE__ */ new Map(), re = {}, be = Du(c, y, r.length), Se = (B, Z) => {
|
|
7435
7445
|
const F = document.createElement("p");
|
|
7436
7446
|
return F.style.margin = "8px 0", F.style.paddingLeft = Z ? `${Z}px` : "0", F.style.textAlign = B.textAlign ?? "start", F.style.whiteSpace = "pre-wrap", F.style.lineHeight = String(a), F.style.fontSize = `${u}px`, F.style.boxSizing = "border-box", F.style.fontFamily = s ?? "", F.style.width = "100%", I(F), F;
|
|
7437
7447
|
}, Ce = (B, Z) => {
|
|
@@ -7471,7 +7481,7 @@ async function $u({
|
|
|
7471
7481
|
if (A.dataset.block = String(B), A.innerHTML = "", Z.kind === "image") {
|
|
7472
7482
|
const ke = Z.block, Oe = Fe(ke);
|
|
7473
7483
|
A.appendChild(Oe);
|
|
7474
|
-
const He = Oe.getBoundingClientRect(), { mt: Be, mb: $e } =
|
|
7484
|
+
const He = Oe.getBoundingClientRect(), { mt: Be, mb: $e } = ar(Oe);
|
|
7475
7485
|
re[B] = { contentH: Math.ceil(He.height), mt: Be, mb: $e }, await be(24);
|
|
7476
7486
|
continue;
|
|
7477
7487
|
}
|
|
@@ -7491,7 +7501,7 @@ async function $u({
|
|
|
7491
7501
|
}
|
|
7492
7502
|
const se = A.querySelector('p[data-variant="with"]'), we = A.querySelector('p[data-variant="no"]'), ge = we ?? se;
|
|
7493
7503
|
if (se && ge) {
|
|
7494
|
-
const ke =
|
|
7504
|
+
const ke = Wo(se), Oe = Wo(ge), { mt: He, mb: Be } = ar(se), { mt: $e, mb: ut } = ar(ge), Xe = ((w = F.runs) == null ? void 0 : w.length) ?? 0, Ge = we ? Oe : ke, st = we ? $e : He, nt = we ? ut : Be;
|
|
7495
7505
|
if (B < 3) {
|
|
7496
7506
|
const bt = se.getBoundingClientRect().height;
|
|
7497
7507
|
console.log(
|
|
@@ -7597,7 +7607,7 @@ async function $u({
|
|
|
7597
7607
|
throw console.error(T), T;
|
|
7598
7608
|
}
|
|
7599
7609
|
}
|
|
7600
|
-
function
|
|
7610
|
+
function Do(e, t, n) {
|
|
7601
7611
|
var r;
|
|
7602
7612
|
if (!e) return null;
|
|
7603
7613
|
for (let o = e.startBlock; o <= e.endBlock; o++) {
|
|
@@ -7652,20 +7662,20 @@ function Uu(e) {
|
|
|
7652
7662
|
}), { items: t, paraIndexMap: n };
|
|
7653
7663
|
}
|
|
7654
7664
|
function Ku() {
|
|
7655
|
-
var
|
|
7665
|
+
var Lr;
|
|
7656
7666
|
const e = Xi(), t = j((U) => U.section), n = j((U) => U.sectionLoading), r = yt(), o = ie(!1);
|
|
7657
7667
|
pe(() => r.subscribe((U) => {
|
|
7658
7668
|
o.current = U.progress.rangeStartGI != null && U.progress.rangeEndGI != null;
|
|
7659
7669
|
}), [r]);
|
|
7660
|
-
const i = o.current, s = It(), u = X((U) => U.theme), a =
|
|
7670
|
+
const i = o.current, s = It(), u = X((U) => U.theme), a = vn[u], l = X((U) => U.fontFamily), d = X((U) => U.fontSizePx), h = X((U) => U.lineHeight), f = X((U) => U.marginX), m = X((U) => U.viewportHeight), v = 860, y = ie(null), { items: c } = me(() => {
|
|
7661
7671
|
var U;
|
|
7662
7672
|
return Uu(((U = t == null ? void 0 : t.ast) == null ? void 0 : U.blocks) ?? []);
|
|
7663
7673
|
}, [t]), p = me(() => {
|
|
7664
|
-
const U = [], Le =
|
|
7665
|
-
return c.forEach((
|
|
7666
|
-
if (
|
|
7667
|
-
const Rt =
|
|
7668
|
-
U[Rt] =
|
|
7674
|
+
const U = [], Le = Ar();
|
|
7675
|
+
return c.forEach((We) => {
|
|
7676
|
+
if (We.kind === "paragraph") {
|
|
7677
|
+
const Rt = We.paraIndex;
|
|
7678
|
+
U[Rt] = Br(We.block, Le);
|
|
7669
7679
|
}
|
|
7670
7680
|
}), U;
|
|
7671
7681
|
}, [c]), [g, w] = pt({
|
|
@@ -7711,8 +7721,8 @@ function Ku() {
|
|
|
7711
7721
|
}, [g, V]);
|
|
7712
7722
|
const re = ne(() => {
|
|
7713
7723
|
console.log("@@@@@@recalc호출");
|
|
7714
|
-
const U = y.current, Le = se.current,
|
|
7715
|
-
if (console.log("showSplit", z), !U || !Le || !
|
|
7724
|
+
const U = y.current, Le = se.current, We = we.current;
|
|
7725
|
+
if (console.log("showSplit", z), !U || !Le || !We || c.length === 0) {
|
|
7716
7726
|
w({ pages: [], pageByRunIndex: null }), k(0), V.getState().progress.setTotalPages(0);
|
|
7717
7727
|
return;
|
|
7718
7728
|
}
|
|
@@ -7722,7 +7732,7 @@ function Ku() {
|
|
|
7722
7732
|
const lt = s.getState().playbackScale, { pages: At, pageByRunIndex: qi } = await $u({
|
|
7723
7733
|
viewHost: U,
|
|
7724
7734
|
measureRoot: Le,
|
|
7725
|
-
contentArea:
|
|
7735
|
+
contentArea: We,
|
|
7726
7736
|
items: c,
|
|
7727
7737
|
cfgMaxWidth: v,
|
|
7728
7738
|
marginX: f,
|
|
@@ -7768,34 +7778,34 @@ function Ku() {
|
|
|
7768
7778
|
return ((Le = U.layout) == null ? void 0 : Le.prefix) ?? [];
|
|
7769
7779
|
}), Ce = _e((U) => U.syncToGI), xe = ne(
|
|
7770
7780
|
(U) => {
|
|
7771
|
-
const Le = g.pages.length + 1,
|
|
7772
|
-
if (
|
|
7781
|
+
const Le = g.pages.length + 1, We = T + U;
|
|
7782
|
+
if (We < 0 || We >= Le) return;
|
|
7773
7783
|
const Rt = T === g.pages.length;
|
|
7774
|
-
if (
|
|
7775
|
-
k(
|
|
7784
|
+
if (We === g.pages.length) {
|
|
7785
|
+
k(We);
|
|
7776
7786
|
return;
|
|
7777
7787
|
}
|
|
7778
7788
|
if (Rt && U === -1) {
|
|
7779
|
-
const At =
|
|
7780
|
-
At != null && (be(At, "scrubber-step"), Ce(At)), k(
|
|
7789
|
+
const At = Do(g.pages[We], c, Se);
|
|
7790
|
+
At != null && (be(At, "scrubber-step"), Ce(At)), k(We);
|
|
7781
7791
|
return;
|
|
7782
7792
|
}
|
|
7783
|
-
const lt =
|
|
7784
|
-
lt != null ? (be(lt, "scrubber-step"), Ce(lt)) : k(
|
|
7793
|
+
const lt = Do(g.pages[We], c, Se);
|
|
7794
|
+
lt != null ? (be(lt, "scrubber-step"), Ce(lt)) : k(We);
|
|
7785
7795
|
},
|
|
7786
7796
|
[T, g.pages, c, Se, be, k, Ce]
|
|
7787
7797
|
), Fe = ne(() => {
|
|
7788
7798
|
S || M.current !== 0 ? (O("prev"), _(!1)) : xe(-1);
|
|
7789
7799
|
}, [S, xe]), K = ne(() => {
|
|
7790
7800
|
S || M.current !== 0 ? (O("next"), _(!1)) : xe(1);
|
|
7791
|
-
}, [S, xe]), $ =
|
|
7792
|
-
const { isSettingsOpen: U, setSettingsOpen: Le, toggleOverlays:
|
|
7793
|
-
U ? Le(!1) :
|
|
7794
|
-
}, [$]), E = g.pages.length + 1, L = ((
|
|
7801
|
+
}, [S, xe]), $ = Rn(), G = ne(() => {
|
|
7802
|
+
const { isSettingsOpen: U, setSettingsOpen: Le, toggleOverlays: We } = $.getState();
|
|
7803
|
+
U ? Le(!1) : We();
|
|
7804
|
+
}, [$]), E = g.pages.length + 1, L = ((Lr = y.current) == null ? void 0 : Lr.clientWidth) || 400, q = ne((U) => {
|
|
7795
7805
|
var lt;
|
|
7796
7806
|
const Le = b.current;
|
|
7797
7807
|
if (!Le) return;
|
|
7798
|
-
const
|
|
7808
|
+
const We = ((lt = y.current) == null ? void 0 : lt.clientWidth) || 1, Rt = U / We * 33.333;
|
|
7799
7809
|
Le.style.transform = `translate3d(${-33.333 + Rt}%, 0, 0)`;
|
|
7800
7810
|
}, []), B = ne(
|
|
7801
7811
|
(U) => {
|
|
@@ -7821,7 +7831,7 @@ function Ku() {
|
|
|
7821
7831
|
});
|
|
7822
7832
|
});
|
|
7823
7833
|
}, [P]);
|
|
7824
|
-
const Y =
|
|
7834
|
+
const Y = xn(), te = ne(
|
|
7825
7835
|
(U) => i || ju(U) ? !0 : qu(U),
|
|
7826
7836
|
[i]
|
|
7827
7837
|
), J = ne(
|
|
@@ -7899,7 +7909,7 @@ function Ku() {
|
|
|
7899
7909
|
},
|
|
7900
7910
|
children: [
|
|
7901
7911
|
$e && /* @__PURE__ */ x(Ai, {}),
|
|
7902
|
-
/* @__PURE__ */ x(
|
|
7912
|
+
/* @__PURE__ */ x(Tn, { isIcon: !1 })
|
|
7903
7913
|
]
|
|
7904
7914
|
}
|
|
7905
7915
|
) : /* @__PURE__ */ x(wu, { pages: g.pages, pageIndex: U, maxWidth: v }), bt = {
|
|
@@ -8018,7 +8028,7 @@ const Xu = ({ pages: e, items: t, onGotoPage: n, currentPageIndex: r, isOnExtraP
|
|
|
8018
8028
|
const i = j((l) => l.currentGlobalRunIndex), s = j((l) => l.lastUpdateBy), u = j((l) => {
|
|
8019
8029
|
var d;
|
|
8020
8030
|
return ((d = l.layout) == null ? void 0 : d.prefix) ?? [];
|
|
8021
|
-
}), a =
|
|
8031
|
+
}), a = D.useRef(null);
|
|
8022
8032
|
return pe(() => {
|
|
8023
8033
|
if (i == null || e.length === 0 || o && !(s === "scrubber-live" || s === "scrubber-commit") || a.current === i) return;
|
|
8024
8034
|
a.current = i;
|
|
@@ -8091,7 +8101,7 @@ function Md(e) {
|
|
|
8091
8101
|
o >= 0 && n.push(o);
|
|
8092
8102
|
}), n.sort((r, o) => r - o);
|
|
8093
8103
|
}
|
|
8094
|
-
const Ed =
|
|
8104
|
+
const Ed = Wt(function() {
|
|
8095
8105
|
const t = Je((c) => c.phase), n = Je((c) => c.quizzes), r = Je((c) => c.order), o = Je((c) => c.currentIndex), i = Je((c) => c.answers), s = Je((c) => c.correctCount), u = Je((c) => c.remainingSec), a = Je((c) => c.uiReveal), l = Je((c) => c.startedAt), d = Je((c) => c.finishedAt), h = Je((c) => c.perQ), f = Pi();
|
|
8096
8106
|
pe(() => {
|
|
8097
8107
|
if (t === "idle" || t !== "doing" || u == null) return;
|
|
@@ -8278,11 +8288,11 @@ function Ad(e, t) {
|
|
|
8278
8288
|
for (let n = 0; n < e.length; n++) if (e[n] !== t[n]) return !1;
|
|
8279
8289
|
return !0;
|
|
8280
8290
|
}
|
|
8281
|
-
function
|
|
8291
|
+
function cr(e) {
|
|
8282
8292
|
var t;
|
|
8283
8293
|
return (((t = e.answers) == null ? void 0 : t.length) ?? 0) > 1;
|
|
8284
8294
|
}
|
|
8285
|
-
function
|
|
8295
|
+
function ur(e) {
|
|
8286
8296
|
const t = e.answers ?? [], n = [];
|
|
8287
8297
|
return t.forEach((r) => {
|
|
8288
8298
|
const o = e.options.findIndex((i) => i === r);
|
|
@@ -8407,12 +8417,12 @@ function Bd(e, t) {
|
|
|
8407
8417
|
submitCurrent: () => {
|
|
8408
8418
|
const l = a();
|
|
8409
8419
|
if (l.phase !== "doing") return;
|
|
8410
|
-
const d = l.order[l.currentIndex], h = l.quizzes[d], f = h.qid, m = (l.answers[f] ?? []).slice().sort((w, T) => w - T), v =
|
|
8420
|
+
const d = l.order[l.currentIndex], h = l.quizzes[d], f = h.qid, m = (l.answers[f] ?? []).slice().sort((w, T) => w - T), v = ur(h), y = Ad(m, v), c = l.questionStartedAt ? Date.now() - l.questionStartedAt : 0, p = l.perQ[f], g = {
|
|
8411
8421
|
qid: f,
|
|
8412
8422
|
index: h.index,
|
|
8413
8423
|
question: h.question,
|
|
8414
8424
|
score: h.score ?? 0,
|
|
8415
|
-
multi:
|
|
8425
|
+
multi: cr(h),
|
|
8416
8426
|
selected: m,
|
|
8417
8427
|
correctIdxes: v,
|
|
8418
8428
|
isCorrect: y,
|
|
@@ -8444,9 +8454,9 @@ function Bd(e, t) {
|
|
|
8444
8454
|
index: h.index,
|
|
8445
8455
|
question: h.question,
|
|
8446
8456
|
score: h.score ?? 0,
|
|
8447
|
-
multi:
|
|
8457
|
+
multi: cr(h),
|
|
8448
8458
|
selected: (m == null ? void 0 : m.selected) ?? [],
|
|
8449
|
-
correctIdxes: (m == null ? void 0 : m.correctIdxes) ??
|
|
8459
|
+
correctIdxes: (m == null ? void 0 : m.correctIdxes) ?? ur(h),
|
|
8450
8460
|
isCorrect: (m == null ? void 0 : m.isCorrect) ?? !1,
|
|
8451
8461
|
ms: (m == null ? void 0 : m.ms) ?? 0,
|
|
8452
8462
|
revealed: !0,
|
|
@@ -8500,9 +8510,9 @@ function Bd(e, t) {
|
|
|
8500
8510
|
index: h.index,
|
|
8501
8511
|
question: h.question,
|
|
8502
8512
|
score: h.score ?? 0,
|
|
8503
|
-
multi:
|
|
8513
|
+
multi: cr(h),
|
|
8504
8514
|
selected: (m == null ? void 0 : m.selected) ?? [],
|
|
8505
|
-
correctIdxes: (m == null ? void 0 : m.correctIdxes) ??
|
|
8515
|
+
correctIdxes: (m == null ? void 0 : m.correctIdxes) ?? ur(h),
|
|
8506
8516
|
isCorrect: (m == null ? void 0 : m.isCorrect) ?? !1,
|
|
8507
8517
|
ms: (m == null ? void 0 : m.ms) ?? 0,
|
|
8508
8518
|
revealed: !0,
|
|
@@ -8566,7 +8576,7 @@ function Gd({ children: e, initialState: t }) {
|
|
|
8566
8576
|
}
|
|
8567
8577
|
});
|
|
8568
8578
|
return () => o();
|
|
8569
|
-
}, [n]), /* @__PURE__ */ x(
|
|
8579
|
+
}, [n]), /* @__PURE__ */ x(Gr.Provider, { value: n, children: e });
|
|
8570
8580
|
}
|
|
8571
8581
|
const jo = [
|
|
8572
8582
|
"mode",
|
|
@@ -8589,7 +8599,7 @@ const jo = [
|
|
|
8589
8599
|
"isSettingsOpen"
|
|
8590
8600
|
];
|
|
8591
8601
|
function Ld({ containerRef: e }) {
|
|
8592
|
-
const t = It(), n =
|
|
8602
|
+
const t = It(), n = Rn(), r = ie(null);
|
|
8593
8603
|
return pe(() => {
|
|
8594
8604
|
const o = e.current;
|
|
8595
8605
|
if (!o) return;
|
|
@@ -8628,7 +8638,7 @@ function Ld({ containerRef: e }) {
|
|
|
8628
8638
|
}, [t, n]), null;
|
|
8629
8639
|
}
|
|
8630
8640
|
function Hd() {
|
|
8631
|
-
const e = It(), t =
|
|
8641
|
+
const e = It(), t = Rn(), n = yt(), r = Ue(Xo), o = Ue(zn), i = ne(
|
|
8632
8642
|
(a) => {
|
|
8633
8643
|
const { viewerState: l } = a;
|
|
8634
8644
|
if (l) {
|
|
@@ -8882,7 +8892,7 @@ function Fd({
|
|
|
8882
8892
|
a
|
|
8883
8893
|
]), null;
|
|
8884
8894
|
}
|
|
8885
|
-
const
|
|
8895
|
+
const Wd = ({
|
|
8886
8896
|
containerRef: e,
|
|
8887
8897
|
onTranslate: t
|
|
8888
8898
|
}) => {
|
|
@@ -8996,7 +9006,7 @@ const Dd = ({
|
|
|
8996
9006
|
}
|
|
8997
9007
|
);
|
|
8998
9008
|
};
|
|
8999
|
-
function
|
|
9009
|
+
function Dd() {
|
|
9000
9010
|
const e = j((o) => o.rangeStartGI), t = j((o) => o.rangeEndGI), n = j((o) => o.clearRange), r = e != null && t != null;
|
|
9001
9011
|
return pe(() => {
|
|
9002
9012
|
if (!r) return;
|
|
@@ -9324,12 +9334,12 @@ function qd({
|
|
|
9324
9334
|
},
|
|
9325
9335
|
children: [
|
|
9326
9336
|
t === "scroll" ? /* @__PURE__ */ x(Oa, {}) : /* @__PURE__ */ x(Ku, {}),
|
|
9327
|
-
/* @__PURE__ */ x(
|
|
9337
|
+
/* @__PURE__ */ x(Wd, { containerRef: n, onTranslate: d }),
|
|
9328
9338
|
/* @__PURE__ */ x(Hl, { containerRef: n }),
|
|
9329
9339
|
/* @__PURE__ */ x(lu, {}),
|
|
9330
9340
|
/* @__PURE__ */ x(Ed, {}),
|
|
9331
9341
|
/* @__PURE__ */ x(Ju, {}),
|
|
9332
|
-
/* @__PURE__ */ x(
|
|
9342
|
+
/* @__PURE__ */ x(Dd, {}),
|
|
9333
9343
|
/* @__PURE__ */ x(
|
|
9334
9344
|
$d,
|
|
9335
9345
|
{
|