@readerseye2/cr_viewer 1.0.26 → 1.0.27
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/index.cjs +5 -5
- package/dist/index.js +1008 -987
- package/dist/utils/calcPage.util.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode('@charset "UTF-8";._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_v5qx1_3{position:absolute;left:0;right:0;top:0;z-index:30}._topbar_v5qx1_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_v5qx1_32{opacity:1;pointer-events:auto}._backBtn_v5qx1_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_v5qx1_37:hover{background:#0000000d}._backBtn_v5qx1_37:active{background:#0000004d}._title_v5qx1_58{font-size:18px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}._settingsBtn_v5qx1_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}._settingsBtn_v5qx1_67:hover{background:#0000000d}._settingsBtn_v5qx1_67: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}._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}')),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
2
|
+
var qi = Object.defineProperty;
|
|
3
|
+
var ji = (e, t, n) => t in e ? qi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
4
|
+
var Lr = (e, t, n) => ji(e, typeof t != "symbol" ? t + "" : t, n);
|
|
5
5
|
import { jsx as x, jsxs as Z, Fragment as yt } from "react/jsx-runtime";
|
|
6
6
|
import * as Ye from "react";
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
const
|
|
7
|
+
import W, { createContext as Ft, useContext as Ue, useMemo as ve, useLayoutEffect as Tt, useRef as ie, useEffect as Se, useCallback as Q, createElement as hn, memo as Wt, useState as nt, useId as Ui } from "react";
|
|
8
|
+
import Ki from "react-dom";
|
|
9
|
+
const vr = Ft(void 0);
|
|
10
10
|
var an = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
11
|
-
function
|
|
11
|
+
function jo(e) {
|
|
12
12
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
13
13
|
}
|
|
14
14
|
var cn = { exports: {} }, Pn = {}, un = { exports: {} }, Bn = {};
|
|
@@ -21,11 +21,11 @@ var cn = { exports: {} }, Pn = {}, un = { exports: {} }, Bn = {};
|
|
|
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
|
|
25
|
-
function
|
|
26
|
-
if (
|
|
27
|
-
|
|
28
|
-
var e =
|
|
24
|
+
var Gr;
|
|
25
|
+
function Xi() {
|
|
26
|
+
if (Gr) return Bn;
|
|
27
|
+
Gr = 1;
|
|
28
|
+
var e = W;
|
|
29
29
|
function t(m, p) {
|
|
30
30
|
return m === p && (m !== 0 || 1 / m === 1 / p) || m !== m && p !== p;
|
|
31
31
|
}
|
|
@@ -72,9 +72,9 @@ var zn = {};
|
|
|
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
|
|
76
|
-
function
|
|
77
|
-
return
|
|
75
|
+
var Hr;
|
|
76
|
+
function Yi() {
|
|
77
|
+
return Hr || (Hr = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
78
78
|
function e(b, v) {
|
|
79
79
|
return b === v && (b !== 0 || 1 / b === 1 / v) || b !== b && v !== v;
|
|
80
80
|
}
|
|
@@ -121,13 +121,13 @@ function Xi() {
|
|
|
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 =
|
|
124
|
+
var o = W, i = typeof Object.is == "function" ? Object.is : e, s = o.useState, c = o.useEffect, l = o.useLayoutEffect, a = o.useDebugValue, d = !1, m = !1, p = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? r : t;
|
|
125
125
|
zn.useSyncExternalStore = o.useSyncExternalStore !== void 0 ? o.useSyncExternalStore : p, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
126
126
|
})()), zn;
|
|
127
127
|
}
|
|
128
|
-
var
|
|
129
|
-
function
|
|
130
|
-
return
|
|
128
|
+
var Nr;
|
|
129
|
+
function Uo() {
|
|
130
|
+
return Nr || (Nr = 1, process.env.NODE_ENV === "production" ? un.exports = Xi() : un.exports = Yi()), un.exports;
|
|
131
131
|
}
|
|
132
132
|
/**
|
|
133
133
|
* @license React
|
|
@@ -138,11 +138,11 @@ function jo() {
|
|
|
138
138
|
* This source code is licensed under the MIT license found in the
|
|
139
139
|
* LICENSE file in the root directory of this source tree.
|
|
140
140
|
*/
|
|
141
|
-
var
|
|
142
|
-
function
|
|
143
|
-
if (
|
|
144
|
-
|
|
145
|
-
var e =
|
|
141
|
+
var Fr;
|
|
142
|
+
function Qi() {
|
|
143
|
+
if (Fr) return Pn;
|
|
144
|
+
Fr = 1;
|
|
145
|
+
var e = W, t = Uo();
|
|
146
146
|
function n(a, d) {
|
|
147
147
|
return a === d && (a !== 0 || 1 / a === 1 / d) || a !== a && d !== d;
|
|
148
148
|
}
|
|
@@ -199,14 +199,14 @@ var An = {};
|
|
|
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
|
|
203
|
-
function
|
|
204
|
-
return
|
|
202
|
+
var Wr;
|
|
203
|
+
function Zi() {
|
|
204
|
+
return Wr || (Wr = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
205
205
|
function e(a, d) {
|
|
206
206
|
return a === d && (a !== 0 || 1 / a === 1 / d) || a !== a && 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 =
|
|
209
|
+
var t = W, n = Uo(), r = typeof Object.is == "function" ? Object.is : e, o = n.useSyncExternalStore, i = t.useRef, s = t.useEffect, c = t.useMemo, l = t.useDebugValue;
|
|
210
210
|
An.useSyncExternalStoreWithSelector = function(a, d, m, p, b) {
|
|
211
211
|
var v = i(null);
|
|
212
212
|
if (v.current === null) {
|
|
@@ -252,11 +252,11 @@ function Qi() {
|
|
|
252
252
|
})()), An;
|
|
253
253
|
}
|
|
254
254
|
var Dr;
|
|
255
|
-
function
|
|
256
|
-
return Dr || (Dr = 1, process.env.NODE_ENV === "production" ? cn.exports =
|
|
255
|
+
function Ji() {
|
|
256
|
+
return Dr || (Dr = 1, process.env.NODE_ENV === "production" ? cn.exports = Qi() : cn.exports = Zi()), cn.exports;
|
|
257
257
|
}
|
|
258
|
-
var
|
|
259
|
-
const
|
|
258
|
+
var es = Ji();
|
|
259
|
+
const ts = /* @__PURE__ */ jo(es), $r = (e) => {
|
|
260
260
|
let t;
|
|
261
261
|
const n = /* @__PURE__ */ new Set(), r = (a, d) => {
|
|
262
262
|
const m = typeof a == "function" ? a(t) : a;
|
|
@@ -266,33 +266,33 @@ const es = /* @__PURE__ */ qo(Ji), Wr = (e) => {
|
|
|
266
266
|
}
|
|
267
267
|
}, o = () => t, c = { setState: r, getState: o, getInitialState: () => l, subscribe: (a) => (n.add(a), () => n.delete(a)) }, l = t = e(r, o, c);
|
|
268
268
|
return c;
|
|
269
|
-
}, rn = ((e) => e ?
|
|
270
|
-
function Tn(e, t =
|
|
271
|
-
const r =
|
|
269
|
+
}, rn = ((e) => e ? $r(e) : $r), { useSyncExternalStoreWithSelector: ns } = ts, rs = (e) => e;
|
|
270
|
+
function Tn(e, t = rs, n) {
|
|
271
|
+
const r = ns(
|
|
272
272
|
e.subscribe,
|
|
273
273
|
e.getState,
|
|
274
274
|
e.getInitialState,
|
|
275
275
|
t,
|
|
276
276
|
n
|
|
277
277
|
);
|
|
278
|
-
return
|
|
278
|
+
return W.useDebugValue(r), r;
|
|
279
279
|
}
|
|
280
280
|
function Y(e, t) {
|
|
281
|
-
const n = Ue(
|
|
281
|
+
const n = Ue(vr);
|
|
282
282
|
if (!n)
|
|
283
283
|
throw new Error("useCRViewerScopedStore must be used inside <InternalCRViewerProvider>");
|
|
284
284
|
return Tn(n, e, t);
|
|
285
285
|
}
|
|
286
286
|
function kn() {
|
|
287
|
-
const e = Ue(
|
|
287
|
+
const e = Ue(vr);
|
|
288
288
|
if (!e)
|
|
289
289
|
throw new Error("useCRViewerStoreApi must be used inside <InternalCRViewerProvider>");
|
|
290
290
|
return e;
|
|
291
291
|
}
|
|
292
292
|
const Mt = Ft(
|
|
293
293
|
void 0
|
|
294
|
-
),
|
|
295
|
-
function
|
|
294
|
+
), Ko = Ft(void 0);
|
|
295
|
+
function os() {
|
|
296
296
|
return rn((e, t) => ({
|
|
297
297
|
// ========== State ==========
|
|
298
298
|
emitCallback: null,
|
|
@@ -331,21 +331,21 @@ function rs() {
|
|
|
331
331
|
}
|
|
332
332
|
}));
|
|
333
333
|
}
|
|
334
|
-
function
|
|
334
|
+
function is({
|
|
335
335
|
children: e,
|
|
336
336
|
onViewerEvent: t,
|
|
337
337
|
isPlaybackMode: n = !1,
|
|
338
338
|
playbackScale: r = 1,
|
|
339
339
|
viewerRef: o
|
|
340
340
|
}) {
|
|
341
|
-
const i = ve(() =>
|
|
341
|
+
const i = ve(() => os(), []);
|
|
342
342
|
return Tt(() => (i.getState().setEmitCallback(t ?? null), () => i.getState().setEmitCallback(null)), [t, i]), Tt(() => {
|
|
343
343
|
i.getState().setPlaybackMode(n);
|
|
344
344
|
}, [n, i]), Tt(() => {
|
|
345
345
|
i.getState().setPlaybackScale(r);
|
|
346
346
|
}, [r, i]), Tt(() => () => {
|
|
347
347
|
o && (o.current = null);
|
|
348
|
-
}, [o]), /* @__PURE__ */ x(Mt.Provider, { value: i, children: /* @__PURE__ */ x(
|
|
348
|
+
}, [o]), /* @__PURE__ */ x(Mt.Provider, { value: i, children: /* @__PURE__ */ x(Ko.Provider, { value: o, children: e }) });
|
|
349
349
|
}
|
|
350
350
|
function Et() {
|
|
351
351
|
const e = Ue(Mt);
|
|
@@ -353,20 +353,20 @@ function Et() {
|
|
|
353
353
|
throw new Error("useViewerEventBridgeStoreApi must be used inside <ViewerEventBridgeProvider>");
|
|
354
354
|
return e;
|
|
355
355
|
}
|
|
356
|
-
const
|
|
356
|
+
const Sr = Ft(void 0);
|
|
357
357
|
function Rt() {
|
|
358
|
-
const e = Ue(
|
|
358
|
+
const e = Ue(Sr);
|
|
359
359
|
if (!e)
|
|
360
360
|
throw new Error("useProgressStoreApi must be used within InternalCRViewerProgressProvider");
|
|
361
361
|
return e;
|
|
362
362
|
}
|
|
363
363
|
function j(e, t) {
|
|
364
|
-
const n = Ue(
|
|
364
|
+
const n = Ue(Sr);
|
|
365
365
|
if (!n)
|
|
366
366
|
throw new Error("useProgressStore must be used within InternalCRViewerProgressProvider");
|
|
367
367
|
return Tn(n, (o) => e(o.progress), t);
|
|
368
368
|
}
|
|
369
|
-
function
|
|
369
|
+
function ss({
|
|
370
370
|
onSingle: e,
|
|
371
371
|
onDouble: t,
|
|
372
372
|
delay: n = 250,
|
|
@@ -423,10 +423,10 @@ const bn = {
|
|
|
423
423
|
overlayFg: "#1b3d1f",
|
|
424
424
|
borderColor: "#93b48b"
|
|
425
425
|
}
|
|
426
|
-
}, Ln = [8, 16, 24, 40, 64], Gn = [1.2, 1.4, 1.6, 1.8, 2, 2.2, 2.4], Hn = [4, 8, 12, 16, 24],
|
|
426
|
+
}, Ln = [8, 16, 24, 40, 64], Gn = [1.2, 1.4, 1.6, 1.8, 2, 2.2, 2.4], Hn = [4, 8, 12, 16, 24], ur = (e) => Math.round(12 + (e - 1) * (16 / 11)), ls = (e) => {
|
|
427
427
|
let t = 1, n = 1 / 0;
|
|
428
428
|
for (let r = 1; r <= 12; r++) {
|
|
429
|
-
const o =
|
|
429
|
+
const o = ur(r), i = Math.abs(o - e);
|
|
430
430
|
i < n && (t = r, n = i);
|
|
431
431
|
}
|
|
432
432
|
return t;
|
|
@@ -436,7 +436,7 @@ const bn = {
|
|
|
436
436
|
const s = Math.abs(o - e);
|
|
437
437
|
s < r && (r = s, n = i);
|
|
438
438
|
}), n + 1;
|
|
439
|
-
},
|
|
439
|
+
}, Xo = [
|
|
440
440
|
{
|
|
441
441
|
label: "고딕체",
|
|
442
442
|
value: "'Noto Sans KR', sans-serif"
|
|
@@ -452,7 +452,7 @@ const bn = {
|
|
|
452
452
|
], Ve = {
|
|
453
453
|
mode: "page",
|
|
454
454
|
theme: "light",
|
|
455
|
-
fontFamily:
|
|
455
|
+
fontFamily: Xo.find((e) => e.label === "명조체").value,
|
|
456
456
|
// ✅ 기본 글꼴: 바탕체
|
|
457
457
|
fontSizePx: 18,
|
|
458
458
|
lineHeight: 1.8,
|
|
@@ -485,7 +485,7 @@ const bn = {
|
|
|
485
485
|
isDev: !1
|
|
486
486
|
// 🛠️ 개발 모드 (기본 false)
|
|
487
487
|
};
|
|
488
|
-
function
|
|
488
|
+
function as(e) {
|
|
489
489
|
const { init: t, recorderStore: n } = e ?? {};
|
|
490
490
|
return rn((r, o) => ({
|
|
491
491
|
...Ve,
|
|
@@ -536,7 +536,7 @@ function ls(e) {
|
|
|
536
536
|
LINEHEIGHT_MAP: Gn,
|
|
537
537
|
BREAK_GAP_MAP: Hn,
|
|
538
538
|
// ✅ (추가)
|
|
539
|
-
fontSizeFromLevel:
|
|
539
|
+
fontSizeFromLevel: ur
|
|
540
540
|
},
|
|
541
541
|
// ✅ (추가) 포인터/끊기 설정 액션
|
|
542
542
|
setPointerStyle: (i) => r({ pointerStyle: i }),
|
|
@@ -556,10 +556,10 @@ function ls(e) {
|
|
|
556
556
|
},
|
|
557
557
|
getBreakGapLevel: () => Nn(o().breakGapPx, Hn),
|
|
558
558
|
// ✅ (추가)
|
|
559
|
-
getFontLevel: () =>
|
|
559
|
+
getFontLevel: () => ls(o().fontSizePx),
|
|
560
560
|
getLineLevel: () => Nn(o().lineHeight, Gn),
|
|
561
561
|
getMarginLevel: () => Nn(o().marginX, Ln),
|
|
562
|
-
setFontLevel: (i) => r({ fontSizePx:
|
|
562
|
+
setFontLevel: (i) => r({ fontSizePx: ur(Math.max(1, Math.min(12, i))) }),
|
|
563
563
|
setLineLevel: (i) => r({ lineHeight: Gn[Math.max(1, Math.min(7, i)) - 1] }),
|
|
564
564
|
setMarginLevel: (i) => {
|
|
565
565
|
const s = Ln[Math.max(1, Math.min(5, i)) - 1];
|
|
@@ -607,28 +607,28 @@ function ls(e) {
|
|
|
607
607
|
setViewportSize: (i, s) => r({ viewportWidth: i, viewportHeight: s })
|
|
608
608
|
}));
|
|
609
609
|
}
|
|
610
|
-
const Rn = 0, xt = 1,
|
|
611
|
-
function
|
|
610
|
+
const Rn = 0, xt = 1, Dt = 2, Yo = 4;
|
|
611
|
+
function Vr(e) {
|
|
612
612
|
return () => e;
|
|
613
613
|
}
|
|
614
|
-
function
|
|
614
|
+
function cs(e) {
|
|
615
615
|
e();
|
|
616
616
|
}
|
|
617
|
-
function
|
|
617
|
+
function Qo(e, t) {
|
|
618
618
|
return (n) => e(t(n));
|
|
619
619
|
}
|
|
620
|
-
function
|
|
620
|
+
function qr(e, t) {
|
|
621
621
|
return () => e(t);
|
|
622
622
|
}
|
|
623
|
-
function
|
|
623
|
+
function us(e, t) {
|
|
624
624
|
return (n) => e(t, n);
|
|
625
625
|
}
|
|
626
|
-
function
|
|
626
|
+
function yr(e) {
|
|
627
627
|
return e !== void 0;
|
|
628
628
|
}
|
|
629
|
-
function
|
|
629
|
+
function ds(...e) {
|
|
630
630
|
return () => {
|
|
631
|
-
e.map(
|
|
631
|
+
e.map(cs);
|
|
632
632
|
};
|
|
633
633
|
}
|
|
634
634
|
function $t() {
|
|
@@ -636,7 +636,7 @@ function $t() {
|
|
|
636
636
|
function _n(e, t) {
|
|
637
637
|
return t(e), e;
|
|
638
638
|
}
|
|
639
|
-
function
|
|
639
|
+
function fs(e, t) {
|
|
640
640
|
return t(e);
|
|
641
641
|
}
|
|
642
642
|
function Ee(...e) {
|
|
@@ -648,14 +648,14 @@ function Ie(e, t) {
|
|
|
648
648
|
function ge(e, t) {
|
|
649
649
|
e(Rn, t);
|
|
650
650
|
}
|
|
651
|
-
function
|
|
652
|
-
e(
|
|
651
|
+
function xr(e) {
|
|
652
|
+
e(Dt);
|
|
653
653
|
}
|
|
654
654
|
function Be(e) {
|
|
655
|
-
return e(
|
|
655
|
+
return e(Yo);
|
|
656
656
|
}
|
|
657
657
|
function te(e, t) {
|
|
658
|
-
return Ie(e,
|
|
658
|
+
return Ie(e, us(t, Rn));
|
|
659
659
|
}
|
|
660
660
|
function ct(e, t) {
|
|
661
661
|
const n = e(xt, (r) => {
|
|
@@ -663,7 +663,7 @@ function ct(e, t) {
|
|
|
663
663
|
});
|
|
664
664
|
return n;
|
|
665
665
|
}
|
|
666
|
-
function
|
|
666
|
+
function jr(e) {
|
|
667
667
|
let t, n;
|
|
668
668
|
return (r) => (o) => {
|
|
669
669
|
t = o, n && clearTimeout(n), n = setTimeout(() => {
|
|
@@ -671,10 +671,10 @@ function qr(e) {
|
|
|
671
671
|
}, e);
|
|
672
672
|
};
|
|
673
673
|
}
|
|
674
|
-
function
|
|
674
|
+
function Zo(e, t) {
|
|
675
675
|
return e === t;
|
|
676
676
|
}
|
|
677
|
-
function Me(e =
|
|
677
|
+
function Me(e = Zo) {
|
|
678
678
|
let t;
|
|
679
679
|
return (n) => (r) => {
|
|
680
680
|
e(t, r) || (t = r, n(r));
|
|
@@ -686,7 +686,7 @@ function ce(e) {
|
|
|
686
686
|
};
|
|
687
687
|
}
|
|
688
688
|
function U(e) {
|
|
689
|
-
return (t) =>
|
|
689
|
+
return (t) => Qo(t, e);
|
|
690
690
|
}
|
|
691
691
|
function pt(e) {
|
|
692
692
|
return (t) => () => {
|
|
@@ -694,11 +694,11 @@ function pt(e) {
|
|
|
694
694
|
};
|
|
695
695
|
}
|
|
696
696
|
function L(e, ...t) {
|
|
697
|
-
const n =
|
|
697
|
+
const n = ps(...t);
|
|
698
698
|
return ((r, o) => {
|
|
699
699
|
switch (r) {
|
|
700
|
-
case
|
|
701
|
-
|
|
700
|
+
case Dt:
|
|
701
|
+
xr(e);
|
|
702
702
|
return;
|
|
703
703
|
case xt:
|
|
704
704
|
return Ie(e, n(o));
|
|
@@ -740,17 +740,17 @@ function be(...e) {
|
|
|
740
740
|
n === o ? c() : r = c;
|
|
741
741
|
};
|
|
742
742
|
}
|
|
743
|
-
function
|
|
744
|
-
return (t) => e.reduceRight(
|
|
743
|
+
function ps(...e) {
|
|
744
|
+
return (t) => e.reduceRight(fs, t);
|
|
745
745
|
}
|
|
746
|
-
function
|
|
746
|
+
function hs(e) {
|
|
747
747
|
let t, n;
|
|
748
748
|
const r = () => t == null ? void 0 : t();
|
|
749
749
|
return function(o, i) {
|
|
750
750
|
switch (o) {
|
|
751
751
|
case xt:
|
|
752
752
|
return i ? n === i ? void 0 : (r(), n = i, t = Ie(e, i), t) : (r(), $t);
|
|
753
|
-
case
|
|
753
|
+
case Dt:
|
|
754
754
|
r(), n = null;
|
|
755
755
|
return;
|
|
756
756
|
}
|
|
@@ -768,7 +768,7 @@ function H(e) {
|
|
|
768
768
|
o(t);
|
|
769
769
|
break;
|
|
770
770
|
}
|
|
771
|
-
case
|
|
771
|
+
case Yo:
|
|
772
772
|
return t;
|
|
773
773
|
}
|
|
774
774
|
return n(r, o);
|
|
@@ -786,7 +786,7 @@ function ye() {
|
|
|
786
786
|
r(n);
|
|
787
787
|
});
|
|
788
788
|
return;
|
|
789
|
-
case
|
|
789
|
+
case Dt:
|
|
790
790
|
e.splice(0, e.length);
|
|
791
791
|
return;
|
|
792
792
|
case xt:
|
|
@@ -804,12 +804,12 @@ function xe(e, t = [], { singleton: n } = { singleton: !0 }) {
|
|
|
804
804
|
return {
|
|
805
805
|
constructor: e,
|
|
806
806
|
dependencies: t,
|
|
807
|
-
id:
|
|
807
|
+
id: gs(),
|
|
808
808
|
singleton: n
|
|
809
809
|
};
|
|
810
810
|
}
|
|
811
|
-
const
|
|
812
|
-
function
|
|
811
|
+
const gs = () => Symbol();
|
|
812
|
+
function ms(e) {
|
|
813
813
|
const t = /* @__PURE__ */ new Map(), n = ({ constructor: r, dependencies: o, id: i, singleton: s }) => {
|
|
814
814
|
if (s && t.has(i))
|
|
815
815
|
return t.get(i);
|
|
@@ -829,8 +829,8 @@ function Fe(...e) {
|
|
|
829
829
|
});
|
|
830
830
|
}), function(i, s) {
|
|
831
831
|
switch (i) {
|
|
832
|
-
case
|
|
833
|
-
|
|
832
|
+
case Dt: {
|
|
833
|
+
xr(t);
|
|
834
834
|
return;
|
|
835
835
|
}
|
|
836
836
|
case xt:
|
|
@@ -838,26 +838,26 @@ function Fe(...e) {
|
|
|
838
838
|
}
|
|
839
839
|
};
|
|
840
840
|
}
|
|
841
|
-
function ae(e, t =
|
|
841
|
+
function ae(e, t = Zo) {
|
|
842
842
|
return L(e, Me(t));
|
|
843
843
|
}
|
|
844
|
-
function
|
|
844
|
+
function dr(...e) {
|
|
845
845
|
return function(t, n) {
|
|
846
846
|
switch (t) {
|
|
847
|
-
case
|
|
847
|
+
case Dt:
|
|
848
848
|
return;
|
|
849
849
|
case xt:
|
|
850
|
-
return
|
|
850
|
+
return ds(...e.map((r) => Ie(r, n)));
|
|
851
851
|
}
|
|
852
852
|
};
|
|
853
853
|
}
|
|
854
854
|
var Qe = /* @__PURE__ */ ((e) => (e[e.DEBUG = 0] = "DEBUG", e[e.INFO = 1] = "INFO", e[e.WARN = 2] = "WARN", e[e.ERROR = 3] = "ERROR", e))(Qe || {});
|
|
855
|
-
const
|
|
855
|
+
const bs = {
|
|
856
856
|
0: "debug",
|
|
857
857
|
3: "error",
|
|
858
858
|
1: "log",
|
|
859
859
|
2: "warn"
|
|
860
|
-
},
|
|
860
|
+
}, vs = () => typeof globalThis > "u" ? window : globalThis, wt = xe(
|
|
861
861
|
() => {
|
|
862
862
|
const e = H(
|
|
863
863
|
3
|
|
@@ -866,8 +866,8 @@ const ms = {
|
|
|
866
866
|
return {
|
|
867
867
|
log: H((t, n, r = 1) => {
|
|
868
868
|
var o;
|
|
869
|
-
const i = (o =
|
|
870
|
-
r >= i && console[
|
|
869
|
+
const i = (o = vs().VIRTUOSO_LOG_LEVEL) != null ? o : Be(e);
|
|
870
|
+
r >= i && console[bs[r]](
|
|
871
871
|
"%creact-virtuoso: %c%s %o",
|
|
872
872
|
"color: #0253b3; font-weight: bold",
|
|
873
873
|
"color: initial",
|
|
@@ -882,13 +882,13 @@ const ms = {
|
|
|
882
882
|
{ singleton: !0 }
|
|
883
883
|
);
|
|
884
884
|
function Ot(e, t, n) {
|
|
885
|
-
return
|
|
885
|
+
return wr(e, t, n).callbackRef;
|
|
886
886
|
}
|
|
887
|
-
function
|
|
888
|
-
const r =
|
|
887
|
+
function wr(e, t, n) {
|
|
888
|
+
const r = W.useRef(null);
|
|
889
889
|
let o = (s) => {
|
|
890
890
|
};
|
|
891
|
-
const i =
|
|
891
|
+
const i = W.useMemo(() => typeof ResizeObserver < "u" ? new ResizeObserver((s) => {
|
|
892
892
|
const c = () => {
|
|
893
893
|
const l = s[0].target;
|
|
894
894
|
l.offsetParent !== null && e(l);
|
|
@@ -899,10 +899,10 @@ function xr(e, t, n) {
|
|
|
899
899
|
s && t ? (i == null || i.observe(s), r.current = s) : (r.current && (i == null || i.unobserve(r.current)), r.current = null);
|
|
900
900
|
}, { callbackRef: o, ref: r };
|
|
901
901
|
}
|
|
902
|
-
function
|
|
903
|
-
const a =
|
|
902
|
+
function Ss(e, t, n, r, o, i, s, c, l) {
|
|
903
|
+
const a = W.useCallback(
|
|
904
904
|
(d) => {
|
|
905
|
-
const m =
|
|
905
|
+
const m = ys(d.children, t, c ? "offsetWidth" : "offsetHeight", o);
|
|
906
906
|
let p = d.parentElement;
|
|
907
907
|
for (; !p.dataset.virtuosoScroller; )
|
|
908
908
|
p = p.parentElement;
|
|
@@ -915,14 +915,14 @@ function vs(e, t, n, r, o, i, s, c, l) {
|
|
|
915
915
|
scrollTop: Math.max(y, 0),
|
|
916
916
|
viewportHeight: f
|
|
917
917
|
}), i == null || i(
|
|
918
|
-
c ?
|
|
918
|
+
c ? Ur("column-gap", getComputedStyle(d).columnGap, o) : Ur("row-gap", getComputedStyle(d).rowGap, o)
|
|
919
919
|
), m !== null && e(m);
|
|
920
920
|
},
|
|
921
921
|
[e, t, o, i, s, r, c]
|
|
922
922
|
);
|
|
923
|
-
return
|
|
923
|
+
return wr(a, n, l);
|
|
924
924
|
}
|
|
925
|
-
function
|
|
925
|
+
function ys(e, t, n, r) {
|
|
926
926
|
const o = e.length;
|
|
927
927
|
if (o === 0)
|
|
928
928
|
return null;
|
|
@@ -939,11 +939,11 @@ function Ss(e, t, n, r) {
|
|
|
939
939
|
}
|
|
940
940
|
return i;
|
|
941
941
|
}
|
|
942
|
-
function
|
|
942
|
+
function Ur(e, t, n) {
|
|
943
943
|
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);
|
|
944
944
|
}
|
|
945
|
-
function
|
|
946
|
-
const r =
|
|
945
|
+
function Jo(e, t, n) {
|
|
946
|
+
const r = W.useRef(null), o = W.useCallback(
|
|
947
947
|
(l) => {
|
|
948
948
|
if (!(l != null && l.offsetParent))
|
|
949
949
|
return;
|
|
@@ -964,10 +964,10 @@ function Zo(e, t, n) {
|
|
|
964
964
|
},
|
|
965
965
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
966
966
|
[e, t]
|
|
967
|
-
), { callbackRef: i, ref: s } =
|
|
967
|
+
), { callbackRef: i, ref: s } = wr(o, !0, n), c = W.useCallback(() => {
|
|
968
968
|
o(s.current);
|
|
969
969
|
}, [o, s]);
|
|
970
|
-
return
|
|
970
|
+
return W.useEffect(() => {
|
|
971
971
|
var l;
|
|
972
972
|
if (t) {
|
|
973
973
|
t.addEventListener("scroll", c);
|
|
@@ -1025,7 +1025,7 @@ const Ke = xe(
|
|
|
1025
1025
|
[],
|
|
1026
1026
|
{ singleton: !0 }
|
|
1027
1027
|
), Xt = { lvl: 0 };
|
|
1028
|
-
function
|
|
1028
|
+
function ei(e, t) {
|
|
1029
1029
|
const n = e.length;
|
|
1030
1030
|
if (n === 0)
|
|
1031
1031
|
return [];
|
|
@@ -1056,7 +1056,7 @@ function ut(e, t, n = "k") {
|
|
|
1056
1056
|
return ut(e.l, t, n);
|
|
1057
1057
|
}
|
|
1058
1058
|
function Ze(e, t, n) {
|
|
1059
|
-
return Ce(e) ?
|
|
1059
|
+
return Ce(e) ? ri(t, n, 1) : t === e.k ? De(e, { k: t, v: n }) : t < e.k ? Kr(De(e, { l: Ze(e.l, t, n) })) : Kr(De(e, { r: Ze(e.r, t, n) }));
|
|
1060
1060
|
}
|
|
1061
1061
|
function Gt() {
|
|
1062
1062
|
return Xt;
|
|
@@ -1065,9 +1065,9 @@ function Ht(e, t, n) {
|
|
|
1065
1065
|
if (Ce(e))
|
|
1066
1066
|
return [];
|
|
1067
1067
|
const r = ut(e, t)[0];
|
|
1068
|
-
return
|
|
1068
|
+
return xs(pr(e, r, n));
|
|
1069
1069
|
}
|
|
1070
|
-
function
|
|
1070
|
+
function fr(e, t) {
|
|
1071
1071
|
if (Ce(e)) return Xt;
|
|
1072
1072
|
const { k: n, l: r, r: o } = e;
|
|
1073
1073
|
if (t === n) {
|
|
@@ -1076,20 +1076,20 @@ function dr(e, t) {
|
|
|
1076
1076
|
if (Ce(o))
|
|
1077
1077
|
return r;
|
|
1078
1078
|
{
|
|
1079
|
-
const [i, s] =
|
|
1080
|
-
return gn(
|
|
1079
|
+
const [i, s] = ni(r);
|
|
1080
|
+
return gn(De(e, { k: i, l: ti(r), v: s }));
|
|
1081
1081
|
}
|
|
1082
|
-
} else return t < n ? gn(
|
|
1082
|
+
} else return t < n ? gn(De(e, { l: fr(r, t) })) : gn(De(e, { r: fr(o, t) }));
|
|
1083
1083
|
}
|
|
1084
1084
|
function kt(e) {
|
|
1085
1085
|
return Ce(e) ? [] : [...kt(e.l), { k: e.k, v: e.v }, ...kt(e.r)];
|
|
1086
1086
|
}
|
|
1087
|
-
function
|
|
1087
|
+
function pr(e, t, n) {
|
|
1088
1088
|
if (Ce(e))
|
|
1089
1089
|
return [];
|
|
1090
1090
|
const { k: r, l: o, r: i, v: s } = e;
|
|
1091
1091
|
let c = [];
|
|
1092
|
-
return r > t && (c = c.concat(
|
|
1092
|
+
return r > t && (c = c.concat(pr(o, t, n))), r >= t && r <= n && c.push({ k: r, v: s }), r <= n && (c = c.concat(pr(i, t, n))), c;
|
|
1093
1093
|
}
|
|
1094
1094
|
function gn(e) {
|
|
1095
1095
|
const { l: t, lvl: n, r } = e;
|
|
@@ -1097,12 +1097,12 @@ function gn(e) {
|
|
|
1097
1097
|
return e;
|
|
1098
1098
|
if (n > r.lvl + 1) {
|
|
1099
1099
|
if (Fn(t))
|
|
1100
|
-
return
|
|
1100
|
+
return oi(De(e, { lvl: n - 1 }));
|
|
1101
1101
|
if (!Ce(t) && !Ce(t.r))
|
|
1102
|
-
return
|
|
1103
|
-
l:
|
|
1102
|
+
return De(t.r, {
|
|
1103
|
+
l: De(t, { r: t.r.l }),
|
|
1104
1104
|
lvl: n,
|
|
1105
|
-
r:
|
|
1105
|
+
r: De(e, {
|
|
1106
1106
|
l: t.r.r,
|
|
1107
1107
|
lvl: n - 1
|
|
1108
1108
|
})
|
|
@@ -1110,23 +1110,23 @@ function gn(e) {
|
|
|
1110
1110
|
throw new Error("Unexpected empty nodes");
|
|
1111
1111
|
} else {
|
|
1112
1112
|
if (Fn(e))
|
|
1113
|
-
return
|
|
1113
|
+
return hr(De(e, { lvl: n - 1 }));
|
|
1114
1114
|
if (!Ce(r) && !Ce(r.l)) {
|
|
1115
1115
|
const o = r.l, i = Fn(o) ? r.lvl - 1 : r.lvl;
|
|
1116
|
-
return
|
|
1117
|
-
l:
|
|
1116
|
+
return De(o, {
|
|
1117
|
+
l: De(e, {
|
|
1118
1118
|
lvl: n - 1,
|
|
1119
1119
|
r: o.l
|
|
1120
1120
|
}),
|
|
1121
1121
|
lvl: o.lvl + 1,
|
|
1122
|
-
r:
|
|
1122
|
+
r: hr(De(r, { l: o.r, lvl: i }))
|
|
1123
1123
|
});
|
|
1124
1124
|
} else
|
|
1125
1125
|
throw new Error("Unexpected empty nodes");
|
|
1126
1126
|
}
|
|
1127
1127
|
}
|
|
1128
|
-
function
|
|
1129
|
-
return
|
|
1128
|
+
function De(e, t) {
|
|
1129
|
+
return ri(
|
|
1130
1130
|
t.k !== void 0 ? t.k : e.k,
|
|
1131
1131
|
t.v !== void 0 ? t.v : e.v,
|
|
1132
1132
|
t.lvl !== void 0 ? t.lvl : e.lvl,
|
|
@@ -1134,44 +1134,44 @@ function We(e, t) {
|
|
|
1134
1134
|
t.r !== void 0 ? t.r : e.r
|
|
1135
1135
|
);
|
|
1136
1136
|
}
|
|
1137
|
-
function
|
|
1138
|
-
return Ce(e.r) ? e.l : gn(
|
|
1137
|
+
function ti(e) {
|
|
1138
|
+
return Ce(e.r) ? e.l : gn(De(e, { r: ti(e.r) }));
|
|
1139
1139
|
}
|
|
1140
1140
|
function Fn(e) {
|
|
1141
1141
|
return Ce(e) || e.lvl > e.r.lvl;
|
|
1142
1142
|
}
|
|
1143
|
-
function
|
|
1144
|
-
return Ce(e.r) ? [e.k, e.v] :
|
|
1143
|
+
function ni(e) {
|
|
1144
|
+
return Ce(e.r) ? [e.k, e.v] : ni(e.r);
|
|
1145
1145
|
}
|
|
1146
|
-
function
|
|
1146
|
+
function ri(e, t, n, r = Xt, o = Xt) {
|
|
1147
1147
|
return { k: e, l: r, lvl: n, r: o, v: t };
|
|
1148
1148
|
}
|
|
1149
|
-
function
|
|
1150
|
-
return
|
|
1149
|
+
function Kr(e) {
|
|
1150
|
+
return hr(oi(e));
|
|
1151
1151
|
}
|
|
1152
|
-
function
|
|
1152
|
+
function oi(e) {
|
|
1153
1153
|
const { l: t } = e;
|
|
1154
|
-
return !Ce(t) && t.lvl === e.lvl ?
|
|
1154
|
+
return !Ce(t) && t.lvl === e.lvl ? De(t, { r: De(e, { l: t.r }) }) : e;
|
|
1155
1155
|
}
|
|
1156
|
-
function
|
|
1156
|
+
function hr(e) {
|
|
1157
1157
|
const { lvl: t, r: n } = e;
|
|
1158
|
-
return !Ce(n) && !Ce(n.r) && n.lvl === t && n.r.lvl === t ?
|
|
1158
|
+
return !Ce(n) && !Ce(n.r) && n.lvl === t && n.r.lvl === t ? De(n, { l: De(e, { r: n.l }), lvl: t + 1 }) : e;
|
|
1159
1159
|
}
|
|
1160
|
-
function
|
|
1161
|
-
return
|
|
1160
|
+
function xs(e) {
|
|
1161
|
+
return ei(e, ({ k: t, v: n }) => ({ index: t, value: n }));
|
|
1162
1162
|
}
|
|
1163
|
-
function
|
|
1163
|
+
function ii(e, t) {
|
|
1164
1164
|
return !!(e && e.startIndex === t.startIndex && e.endIndex === t.endIndex);
|
|
1165
1165
|
}
|
|
1166
1166
|
function Qt(e, t) {
|
|
1167
1167
|
return !!(e && e[0] === t[0] && e[1] === t[1]);
|
|
1168
1168
|
}
|
|
1169
|
-
const
|
|
1169
|
+
const Ir = xe(
|
|
1170
1170
|
() => ({ recalcInProgress: H(!1) }),
|
|
1171
1171
|
[],
|
|
1172
1172
|
{ singleton: !0 }
|
|
1173
1173
|
);
|
|
1174
|
-
function
|
|
1174
|
+
function si(e, t, n) {
|
|
1175
1175
|
return e[vn(e, t, n)];
|
|
1176
1176
|
}
|
|
1177
1177
|
function vn(e, t, n, r = 0) {
|
|
@@ -1192,7 +1192,7 @@ function vn(e, t, n, r = 0) {
|
|
|
1192
1192
|
}
|
|
1193
1193
|
throw new Error(`Failed binary finding record in array - ${e.join(",")}, searched for ${t}`);
|
|
1194
1194
|
}
|
|
1195
|
-
function
|
|
1195
|
+
function ws(e, t, n, r) {
|
|
1196
1196
|
const o = vn(e, t, r), i = vn(e, n, r, o);
|
|
1197
1197
|
return e.slice(o, i + 1);
|
|
1198
1198
|
}
|
|
@@ -1202,10 +1202,10 @@ function St(e, t) {
|
|
|
1202
1202
|
function Mn(e) {
|
|
1203
1203
|
return !Ce(e.groupOffsetTree);
|
|
1204
1204
|
}
|
|
1205
|
-
function
|
|
1205
|
+
function Cr({ index: e }, t) {
|
|
1206
1206
|
return t === e ? 0 : t < e ? -1 : 1;
|
|
1207
1207
|
}
|
|
1208
|
-
function
|
|
1208
|
+
function Is() {
|
|
1209
1209
|
return {
|
|
1210
1210
|
groupIndices: [],
|
|
1211
1211
|
groupOffsetTree: Gt(),
|
|
@@ -1216,7 +1216,7 @@ function ws() {
|
|
|
1216
1216
|
sizeTree: Gt()
|
|
1217
1217
|
};
|
|
1218
1218
|
}
|
|
1219
|
-
function
|
|
1219
|
+
function Cs(e, t) {
|
|
1220
1220
|
let n = Ce(e) ? 0 : 1 / 0;
|
|
1221
1221
|
for (const r of t) {
|
|
1222
1222
|
const { endIndex: o, size: i, startIndex: s } = r;
|
|
@@ -1225,28 +1225,28 @@ function Is(e, t) {
|
|
|
1225
1225
|
continue;
|
|
1226
1226
|
}
|
|
1227
1227
|
const c = Ht(e, s - 1, o + 1);
|
|
1228
|
-
if (c.some(
|
|
1228
|
+
if (c.some(Os(r)))
|
|
1229
1229
|
continue;
|
|
1230
1230
|
let l = !1, a = !1;
|
|
1231
1231
|
for (const { end: d, start: m, value: p } of c)
|
|
1232
|
-
l ? (o >= m || i === p) && (e =
|
|
1232
|
+
l ? (o >= m || i === p) && (e = fr(e, m)) : (a = p !== i, l = !0), d > o && o >= m && p !== i && (e = Ze(e, o + 1, p));
|
|
1233
1233
|
a && (e = Ze(e, s, i));
|
|
1234
1234
|
}
|
|
1235
1235
|
return [e, n];
|
|
1236
1236
|
}
|
|
1237
|
-
function
|
|
1237
|
+
function Ts(e) {
|
|
1238
1238
|
return typeof e.groupIndex < "u";
|
|
1239
1239
|
}
|
|
1240
|
-
function
|
|
1240
|
+
function ks({ offset: e }, t) {
|
|
1241
1241
|
return t === e ? 0 : t < e ? -1 : 1;
|
|
1242
1242
|
}
|
|
1243
1243
|
function Zt(e, t, n) {
|
|
1244
1244
|
if (t.length === 0)
|
|
1245
1245
|
return 0;
|
|
1246
|
-
const { index: r, offset: o, size: i } =
|
|
1246
|
+
const { index: r, offset: o, size: i } = si(t, e, Cr), s = e - r, c = i * s + (s - 1) * n + o;
|
|
1247
1247
|
return c > 0 ? c + n : c;
|
|
1248
1248
|
}
|
|
1249
|
-
function
|
|
1249
|
+
function li(e, t) {
|
|
1250
1250
|
if (!Mn(t))
|
|
1251
1251
|
return e;
|
|
1252
1252
|
let n = 0;
|
|
@@ -1254,19 +1254,19 @@ function si(e, t) {
|
|
|
1254
1254
|
n++;
|
|
1255
1255
|
return e + n;
|
|
1256
1256
|
}
|
|
1257
|
-
function
|
|
1258
|
-
if (
|
|
1257
|
+
function ai(e, t, n) {
|
|
1258
|
+
if (Ts(e))
|
|
1259
1259
|
return t.groupIndices[e.groupIndex] + 1;
|
|
1260
1260
|
{
|
|
1261
1261
|
const r = e.index === "LAST" ? n : e.index;
|
|
1262
|
-
let o =
|
|
1262
|
+
let o = li(r, t);
|
|
1263
1263
|
return o = Math.max(0, o, Math.min(n, o)), o;
|
|
1264
1264
|
}
|
|
1265
1265
|
}
|
|
1266
|
-
function
|
|
1267
|
-
return r > 0 && (t = Math.max(t,
|
|
1266
|
+
function Rs(e, t, n, r = 0) {
|
|
1267
|
+
return r > 0 && (t = Math.max(t, si(e, r, Cr).offset)), ei(ws(e, t, n, ks), Es);
|
|
1268
1268
|
}
|
|
1269
|
-
function
|
|
1269
|
+
function _s(e, [t, n, r, o]) {
|
|
1270
1270
|
t.length > 0 && r("received item sizes", t, Qe.DEBUG);
|
|
1271
1271
|
const i = e.sizeTree;
|
|
1272
1272
|
let s = i, c = 0;
|
|
@@ -1274,10 +1274,10 @@ function Rs(e, [t, n, r, o]) {
|
|
|
1274
1274
|
const p = t[0].size, b = t[1].size;
|
|
1275
1275
|
s = n.reduce((v, y) => Ze(Ze(v, y, p), y + 1, b), s);
|
|
1276
1276
|
} else
|
|
1277
|
-
[s, c] =
|
|
1277
|
+
[s, c] = Cs(s, t);
|
|
1278
1278
|
if (s === i)
|
|
1279
1279
|
return e;
|
|
1280
|
-
const { lastIndex: l, lastOffset: a, lastSize: d, offsetTree: m } =
|
|
1280
|
+
const { lastIndex: l, lastOffset: a, lastSize: d, offsetTree: m } = gr(e.offsetTree, c, s, o);
|
|
1281
1281
|
return {
|
|
1282
1282
|
groupIndices: n,
|
|
1283
1283
|
groupOffsetTree: n.reduce((p, b) => Ze(p, b, Zt(b, m, o)), Gt()),
|
|
@@ -1288,22 +1288,22 @@ function Rs(e, [t, n, r, o]) {
|
|
|
1288
1288
|
sizeTree: s
|
|
1289
1289
|
};
|
|
1290
1290
|
}
|
|
1291
|
-
function
|
|
1291
|
+
function Ms(e) {
|
|
1292
1292
|
return kt(e).map(({ k: t, v: n }, r, o) => {
|
|
1293
1293
|
const i = o[r + 1];
|
|
1294
1294
|
return { endIndex: i ? i.k - 1 : 1 / 0, size: n, startIndex: t };
|
|
1295
1295
|
});
|
|
1296
1296
|
}
|
|
1297
|
-
function
|
|
1297
|
+
function Xr(e, t) {
|
|
1298
1298
|
let n = 0, r = 0;
|
|
1299
1299
|
for (; n < e; )
|
|
1300
1300
|
n += t[r + 1] - t[r] - 1, r++;
|
|
1301
1301
|
return r - (n === e ? 0 : 1);
|
|
1302
1302
|
}
|
|
1303
|
-
function
|
|
1303
|
+
function gr(e, t, n, r) {
|
|
1304
1304
|
let o = e, i = 0, s = 0, c = 0, l = 0;
|
|
1305
1305
|
if (t !== 0) {
|
|
1306
|
-
l = vn(o, t - 1,
|
|
1306
|
+
l = vn(o, t - 1, Cr), c = o[l].offset;
|
|
1307
1307
|
const a = ut(n, t - 1);
|
|
1308
1308
|
i = a[0], s = a[1], o.length && o[l].size === ut(n, t)[1] && (l -= 1), o = o.slice(0, l + 1);
|
|
1309
1309
|
} else
|
|
@@ -1323,20 +1323,20 @@ function hr(e, t, n, r) {
|
|
|
1323
1323
|
offsetTree: o
|
|
1324
1324
|
};
|
|
1325
1325
|
}
|
|
1326
|
-
function
|
|
1326
|
+
function Es(e) {
|
|
1327
1327
|
return { index: e.index, value: e };
|
|
1328
1328
|
}
|
|
1329
|
-
function
|
|
1329
|
+
function Os(e) {
|
|
1330
1330
|
const { endIndex: t, size: n, startIndex: r } = e;
|
|
1331
1331
|
return (o) => o.start === r && (o.end === t || o.end === 1 / 0) && o.value === n;
|
|
1332
1332
|
}
|
|
1333
|
-
const
|
|
1333
|
+
const Ps = {
|
|
1334
1334
|
offsetHeight: "height",
|
|
1335
1335
|
offsetWidth: "width"
|
|
1336
1336
|
}, gt = xe(
|
|
1337
1337
|
([{ log: e }, { recalcInProgress: t }]) => {
|
|
1338
|
-
const n = ye(), r = ye(), o = je(r, 0), i = ye(), s = ye(), c = H(0), l = H([]), a = H(void 0), d = H(void 0), m = H(void 0), p = H(void 0), b = H((h, S) => St(h,
|
|
1339
|
-
L(n, be(l, e, y), ht(
|
|
1338
|
+
const n = ye(), r = ye(), o = je(r, 0), i = ye(), s = ye(), c = H(0), l = H([]), a = H(void 0), d = H(void 0), m = H(void 0), p = H(void 0), b = H((h, S) => St(h, Ps[S])), v = H(void 0), y = H(0), u = Is(), f = je(
|
|
1339
|
+
L(n, be(l, e, y), ht(_s, u), Me()),
|
|
1340
1340
|
u
|
|
1341
1341
|
), g = je(
|
|
1342
1342
|
L(
|
|
@@ -1473,10 +1473,10 @@ const Os = {
|
|
|
1473
1473
|
(h) => {
|
|
1474
1474
|
const { groupIndices: S } = Be(f);
|
|
1475
1475
|
if (h > 0)
|
|
1476
|
-
ge(t, !0), ge(i, h +
|
|
1476
|
+
ge(t, !0), ge(i, h + Xr(h, S));
|
|
1477
1477
|
else if (h < 0) {
|
|
1478
1478
|
const T = Be(g);
|
|
1479
|
-
T.length > 0 && (h -=
|
|
1479
|
+
T.length > 0 && (h -= Xr(-h, T)), ge(s, h);
|
|
1480
1480
|
}
|
|
1481
1481
|
}
|
|
1482
1482
|
), Ie(L(c, be(e)), ([h, S]) => {
|
|
@@ -1583,14 +1583,14 @@ const Os = {
|
|
|
1583
1583
|
return {
|
|
1584
1584
|
...S,
|
|
1585
1585
|
sizeTree: E,
|
|
1586
|
-
...
|
|
1586
|
+
...gr(S.offsetTree, 0, E, T)
|
|
1587
1587
|
};
|
|
1588
1588
|
} else {
|
|
1589
1589
|
const E = kt(S.sizeTree).reduce((O, { k: z, v: w }) => Ze(O, Math.max(0, z + h), w), Gt());
|
|
1590
1590
|
return {
|
|
1591
1591
|
...S,
|
|
1592
1592
|
sizeTree: E,
|
|
1593
|
-
...
|
|
1593
|
+
...gr(S.offsetTree, 0, E, T)
|
|
1594
1594
|
};
|
|
1595
1595
|
}
|
|
1596
1596
|
})
|
|
@@ -1620,10 +1620,10 @@ const Os = {
|
|
|
1620
1620
|
unshiftWith: i
|
|
1621
1621
|
};
|
|
1622
1622
|
},
|
|
1623
|
-
Ee(wt,
|
|
1623
|
+
Ee(wt, Ir),
|
|
1624
1624
|
{ singleton: !0 }
|
|
1625
1625
|
);
|
|
1626
|
-
function
|
|
1626
|
+
function Bs(e) {
|
|
1627
1627
|
return e.reduce(
|
|
1628
1628
|
(t, n) => (t.groupIndices.push(t.totalCount), t.totalCount += n + 1, t),
|
|
1629
1629
|
{
|
|
@@ -1632,9 +1632,9 @@ function Ps(e) {
|
|
|
1632
1632
|
}
|
|
1633
1633
|
);
|
|
1634
1634
|
}
|
|
1635
|
-
const
|
|
1635
|
+
const ci = xe(
|
|
1636
1636
|
([{ groupIndices: e, sizes: t, totalCount: n }, { headerHeight: r, scrollTop: o }]) => {
|
|
1637
|
-
const i = ye(), s = ye(), c = Je(L(i, U(
|
|
1637
|
+
const i = ye(), s = ye(), c = Je(L(i, U(Bs)));
|
|
1638
1638
|
return te(
|
|
1639
1639
|
L(
|
|
1640
1640
|
c,
|
|
@@ -1674,10 +1674,10 @@ const ai = xe(
|
|
|
1674
1674
|
},
|
|
1675
1675
|
Ee(wt),
|
|
1676
1676
|
{ singleton: !0 }
|
|
1677
|
-
),
|
|
1678
|
-
function
|
|
1677
|
+
), zs = typeof document < "u" && "scrollBehavior" in document.documentElement.style;
|
|
1678
|
+
function ui(e) {
|
|
1679
1679
|
const t = typeof e == "number" ? { index: e } : e;
|
|
1680
|
-
return t.align || (t.align = "start"), (!t.behavior || !
|
|
1680
|
+
return t.align || (t.align = "start"), (!t.behavior || !zs) && (t.behavior = "auto"), t.offset || (t.offset = 0), t;
|
|
1681
1681
|
}
|
|
1682
1682
|
const on = xe(
|
|
1683
1683
|
([
|
|
@@ -1711,7 +1711,7 @@ const on = xe(
|
|
|
1711
1711
|
w,
|
|
1712
1712
|
_
|
|
1713
1713
|
]) => {
|
|
1714
|
-
const P =
|
|
1714
|
+
const P = ui(k), { align: G, behavior: M, offset: B } = P, F = h - 1, V = ai(P, R, F);
|
|
1715
1715
|
let q = Zt(V, R.offsetTree, z) + T;
|
|
1716
1716
|
G === "end" ? (q += w + ut(R.sizeTree, V)[1] - I + _, V === F && (q += E)) : G === "center" ? q += (w + ut(R.sizeTree, V)[1] - I + _) / 2 : q -= S, B && (q += B);
|
|
1717
1717
|
const ue = (de) => {
|
|
@@ -1725,7 +1725,7 @@ const on = xe(
|
|
|
1725
1725
|
ue(de);
|
|
1726
1726
|
});
|
|
1727
1727
|
} else
|
|
1728
|
-
u = ct(L(t,
|
|
1728
|
+
u = ct(L(t, As(150)), ue);
|
|
1729
1729
|
return f = setTimeout(() => {
|
|
1730
1730
|
C();
|
|
1731
1731
|
}, 1200), ge(l, !0), O("scrolling from index to", { behavior: M, index: V, top: q }, Qe.DEBUG), { behavior: M, top: q };
|
|
@@ -1742,7 +1742,7 @@ const on = xe(
|
|
|
1742
1742
|
Ee(gt, Ke, wt),
|
|
1743
1743
|
{ singleton: !0 }
|
|
1744
1744
|
);
|
|
1745
|
-
function
|
|
1745
|
+
function As(e) {
|
|
1746
1746
|
return (t) => {
|
|
1747
1747
|
const n = setTimeout(() => {
|
|
1748
1748
|
t(!1);
|
|
@@ -1752,12 +1752,12 @@ function zs(e) {
|
|
|
1752
1752
|
};
|
|
1753
1753
|
};
|
|
1754
1754
|
}
|
|
1755
|
-
function
|
|
1755
|
+
function Tr(e, t) {
|
|
1756
1756
|
e == 0 ? t() : requestAnimationFrame(() => {
|
|
1757
|
-
|
|
1757
|
+
Tr(e - 1, t);
|
|
1758
1758
|
});
|
|
1759
1759
|
}
|
|
1760
|
-
function
|
|
1760
|
+
function kr(e, t) {
|
|
1761
1761
|
const n = t - 1;
|
|
1762
1762
|
return typeof e == "number" ? e : e.index === "LAST" ? n : e.index;
|
|
1763
1763
|
}
|
|
@@ -1784,13 +1784,13 @@ const sn = xe(
|
|
|
1784
1784
|
L(
|
|
1785
1785
|
Fe(t, s),
|
|
1786
1786
|
be(c, n, e, a),
|
|
1787
|
-
ce(([[, d], m, { sizeTree: p }, b, v]) => d && (!Ce(p) ||
|
|
1787
|
+
ce(([[, d], m, { sizeTree: p }, b, v]) => d && (!Ce(p) || yr(b)) && !m && !v),
|
|
1788
1788
|
be(l)
|
|
1789
1789
|
),
|
|
1790
1790
|
([, d]) => {
|
|
1791
1791
|
ct(o, () => {
|
|
1792
1792
|
ge(a, !0);
|
|
1793
|
-
}),
|
|
1793
|
+
}), Tr(4, () => {
|
|
1794
1794
|
ct(r, () => {
|
|
1795
1795
|
ge(c, !0);
|
|
1796
1796
|
}), ge(i, d);
|
|
@@ -1805,10 +1805,10 @@ const sn = xe(
|
|
|
1805
1805
|
Ee(gt, Ke, on, It),
|
|
1806
1806
|
{ singleton: !0 }
|
|
1807
1807
|
);
|
|
1808
|
-
function
|
|
1808
|
+
function di(e, t) {
|
|
1809
1809
|
return Math.abs(e - t) < 1.01;
|
|
1810
1810
|
}
|
|
1811
|
-
const Jt = "up", Ut = "down",
|
|
1811
|
+
const Jt = "up", Ut = "down", Ls = "none", Gs = {
|
|
1812
1812
|
atBottom: !1,
|
|
1813
1813
|
notAtBottomBecause: "NOT_SHOWING_LAST_ITEM",
|
|
1814
1814
|
state: {
|
|
@@ -1817,15 +1817,15 @@ const Jt = "up", Ut = "down", As = "none", Ls = {
|
|
|
1817
1817
|
scrollTop: 0,
|
|
1818
1818
|
viewportHeight: 0
|
|
1819
1819
|
}
|
|
1820
|
-
},
|
|
1821
|
-
const s = H(!1), c = H(!0), l = ye(), a = ye(), d = H(4), m = H(
|
|
1820
|
+
}, Hs = 0, ln = xe(([{ footerHeight: e, headerHeight: t, scrollBy: n, scrollContainerState: r, scrollTop: o, viewportHeight: i }]) => {
|
|
1821
|
+
const s = H(!1), c = H(!0), l = ye(), a = ye(), d = H(4), m = H(Hs), p = je(
|
|
1822
1822
|
L(
|
|
1823
|
-
|
|
1823
|
+
dr(L(ae(o), _t(1), pt(!0)), L(ae(o), _t(1), pt(!1), jr(100))),
|
|
1824
1824
|
Me()
|
|
1825
1825
|
),
|
|
1826
1826
|
!1
|
|
1827
1827
|
), b = je(
|
|
1828
|
-
L(
|
|
1828
|
+
L(dr(L(n, pt(!0)), L(n, pt(!1), jr(200))), Me()),
|
|
1829
1829
|
!1
|
|
1830
1830
|
);
|
|
1831
1831
|
te(
|
|
@@ -1860,7 +1860,7 @@ const Jt = "up", Ut = "down", As = "none", Ls = {
|
|
|
1860
1860
|
notAtBottomBecause: O,
|
|
1861
1861
|
state: E
|
|
1862
1862
|
};
|
|
1863
|
-
},
|
|
1863
|
+
}, Gs),
|
|
1864
1864
|
Me((g, C) => g && g.atBottom === C.atBottom)
|
|
1865
1865
|
)
|
|
1866
1866
|
), y = je(
|
|
@@ -1868,7 +1868,7 @@ const Jt = "up", Ut = "down", As = "none", Ls = {
|
|
|
1868
1868
|
r,
|
|
1869
1869
|
ht(
|
|
1870
1870
|
(g, { scrollHeight: C, scrollTop: k, viewportHeight: R }) => {
|
|
1871
|
-
if (
|
|
1871
|
+
if (di(g.scrollHeight, C))
|
|
1872
1872
|
return {
|
|
1873
1873
|
changed: !1,
|
|
1874
1874
|
jump: 0,
|
|
@@ -1917,7 +1917,7 @@ const Jt = "up", Ut = "down", As = "none", Ls = {
|
|
|
1917
1917
|
U((g) => g.direction)
|
|
1918
1918
|
),
|
|
1919
1919
|
u
|
|
1920
|
-
), te(L(r, mt(50), pt(
|
|
1920
|
+
), te(L(r, mt(50), pt(Ls)), u);
|
|
1921
1921
|
const f = H(0);
|
|
1922
1922
|
return te(
|
|
1923
1923
|
L(
|
|
@@ -1949,15 +1949,15 @@ const Jt = "up", Ut = "down", As = "none", Ls = {
|
|
|
1949
1949
|
scrollDirection: u,
|
|
1950
1950
|
scrollVelocity: f
|
|
1951
1951
|
};
|
|
1952
|
-
}, Ee(Ke)), en = "top", tn = "bottom",
|
|
1953
|
-
function
|
|
1952
|
+
}, Ee(Ke)), en = "top", tn = "bottom", Yr = "none";
|
|
1953
|
+
function Qr(e, t, n) {
|
|
1954
1954
|
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;
|
|
1955
1955
|
}
|
|
1956
|
-
function
|
|
1956
|
+
function Zr(e, t) {
|
|
1957
1957
|
var n;
|
|
1958
1958
|
return typeof e == "number" ? e : (n = e[t]) != null ? n : 0;
|
|
1959
1959
|
}
|
|
1960
|
-
const
|
|
1960
|
+
const Rr = xe(
|
|
1961
1961
|
([{ deviation: e, fixedHeaderHeight: t, headerHeight: n, scrollTop: r, viewportHeight: o }]) => {
|
|
1962
1962
|
const i = ye(), s = H(0), c = H(0), l = H(0), a = je(
|
|
1963
1963
|
L(
|
|
@@ -1985,11 +1985,11 @@ const kr = xe(
|
|
|
1985
1985
|
C
|
|
1986
1986
|
]) => {
|
|
1987
1987
|
const k = d - g, R = u + f, I = Math.max(p - k, 0);
|
|
1988
|
-
let h =
|
|
1989
|
-
const S =
|
|
1990
|
-
return b -= g, b += p + f, v += p + f, v -= g, b > d + R - S && (h = Jt), v < d - I + m + T && (h = Ut), h !==
|
|
1991
|
-
Math.max(k - p -
|
|
1992
|
-
k - I - f + m +
|
|
1988
|
+
let h = Yr;
|
|
1989
|
+
const S = Zr(C, en), T = Zr(C, tn);
|
|
1990
|
+
return b -= g, b += p + f, v += p + f, v -= g, b > d + R - S && (h = Jt), v < d - I + m + T && (h = Ut), h !== Yr ? [
|
|
1991
|
+
Math.max(k - p - Qr(y, en, h) - S, 0),
|
|
1992
|
+
k - I - f + m + Qr(y, tn, h) + T
|
|
1993
1993
|
] : null;
|
|
1994
1994
|
}
|
|
1995
1995
|
),
|
|
@@ -2011,9 +2011,9 @@ const kr = xe(
|
|
|
2011
2011
|
Ee(Ke),
|
|
2012
2012
|
{ singleton: !0 }
|
|
2013
2013
|
);
|
|
2014
|
-
function
|
|
2014
|
+
function Ns(e, t, n) {
|
|
2015
2015
|
if (Mn(t)) {
|
|
2016
|
-
const r =
|
|
2016
|
+
const r = li(e, t);
|
|
2017
2017
|
return [
|
|
2018
2018
|
{ index: ut(t.groupOffsetTree, r)[0], offset: 0, size: 0 },
|
|
2019
2019
|
{ data: n == null ? void 0 : n[0], index: r, offset: 0, size: 0 }
|
|
@@ -2021,7 +2021,7 @@ function Hs(e, t, n) {
|
|
|
2021
2021
|
}
|
|
2022
2022
|
return [{ data: n == null ? void 0 : n[0], index: e, offset: 0, size: 0 }];
|
|
2023
2023
|
}
|
|
2024
|
-
const
|
|
2024
|
+
const Wn = {
|
|
2025
2025
|
bottom: 0,
|
|
2026
2026
|
firstItemIndex: 0,
|
|
2027
2027
|
items: [],
|
|
@@ -2044,16 +2044,16 @@ function mn(e, t, n, r, o, i) {
|
|
|
2044
2044
|
return {
|
|
2045
2045
|
bottom: d,
|
|
2046
2046
|
firstItemIndex: i,
|
|
2047
|
-
items:
|
|
2047
|
+
items: Jr(e, o, i),
|
|
2048
2048
|
offsetBottom: v,
|
|
2049
2049
|
offsetTop: a,
|
|
2050
2050
|
top: b,
|
|
2051
|
-
topItems:
|
|
2051
|
+
topItems: Jr(t, o, i),
|
|
2052
2052
|
topListHeight: t.reduce((y, u) => u.size + y, 0),
|
|
2053
2053
|
totalCount: n
|
|
2054
2054
|
};
|
|
2055
2055
|
}
|
|
2056
|
-
function
|
|
2056
|
+
function fi(e, t, n, r, o, i) {
|
|
2057
2057
|
let s = 0;
|
|
2058
2058
|
if (n.groupIndices.length > 0)
|
|
2059
2059
|
for (const d of n.groupIndices) {
|
|
@@ -2061,7 +2061,7 @@ function di(e, t, n, r, o, i) {
|
|
|
2061
2061
|
break;
|
|
2062
2062
|
s++;
|
|
2063
2063
|
}
|
|
2064
|
-
const c = e + s, l =
|
|
2064
|
+
const c = e + s, l = kr(t, c), a = Array.from({ length: c }).map((d, m) => ({
|
|
2065
2065
|
data: i[m + l],
|
|
2066
2066
|
index: m + l,
|
|
2067
2067
|
offset: 0,
|
|
@@ -2069,7 +2069,7 @@ function di(e, t, n, r, o, i) {
|
|
|
2069
2069
|
}));
|
|
2070
2070
|
return mn(a, [], c, o, n, r);
|
|
2071
2071
|
}
|
|
2072
|
-
function
|
|
2072
|
+
function Jr(e, t, n) {
|
|
2073
2073
|
if (e.length === 0)
|
|
2074
2074
|
return [];
|
|
2075
2075
|
if (!Mn(t))
|
|
@@ -2095,7 +2095,7 @@ function Zr(e, t, n) {
|
|
|
2095
2095
|
}
|
|
2096
2096
|
return i;
|
|
2097
2097
|
}
|
|
2098
|
-
function
|
|
2098
|
+
function eo(e, t) {
|
|
2099
2099
|
var n;
|
|
2100
2100
|
return e === void 0 ? 0 : typeof e == "number" ? e : (n = e[t]) != null ? n : 0;
|
|
2101
2101
|
}
|
|
@@ -2150,12 +2150,12 @@ const Pt = xe(
|
|
|
2150
2150
|
var B, F, V, q;
|
|
2151
2151
|
const ue = E, { offsetTree: de, sizeTree: ke } = ue, Re = Be(u);
|
|
2152
2152
|
if (T === 0)
|
|
2153
|
-
return { ...
|
|
2153
|
+
return { ...Wn, totalCount: T };
|
|
2154
2154
|
if (h === 0 && S === 0)
|
|
2155
|
-
return Re === 0 ? { ...
|
|
2155
|
+
return Re === 0 ? { ...Wn, totalCount: T } : fi(Re, O, E, _, P, M || []);
|
|
2156
2156
|
if (Ce(ke))
|
|
2157
2157
|
return Re > 0 ? null : mn(
|
|
2158
|
-
|
|
2158
|
+
Ns(kr(O, T), ue, M),
|
|
2159
2159
|
[],
|
|
2160
2160
|
T,
|
|
2161
2161
|
P,
|
|
@@ -2174,7 +2174,7 @@ const Pt = xe(
|
|
|
2174
2174
|
}
|
|
2175
2175
|
if (!z)
|
|
2176
2176
|
return mn([], ee, T, P, ue, _);
|
|
2177
|
-
const X = w.length > 0 ? w[w.length - 1] + 1 : 0, A =
|
|
2177
|
+
const X = w.length > 0 ? w[w.length - 1] + 1 : 0, A = Rs(de, h, S, X);
|
|
2178
2178
|
if (A.length === 0)
|
|
2179
2179
|
return null;
|
|
2180
2180
|
const K = T - 1, ne = _n([], ($) => {
|
|
@@ -2192,7 +2192,7 @@ const Pt = xe(
|
|
|
2192
2192
|
for (let me = pe; me <= we && !(re >= S); me++)
|
|
2193
2193
|
$.push({ data: M == null ? void 0 : M[me], index: me, offset: re, size: le }), re += le + P;
|
|
2194
2194
|
}
|
|
2195
|
-
}), N =
|
|
2195
|
+
}), N = eo(G, en), oe = eo(G, tn);
|
|
2196
2196
|
if (ne.length > 0 && (N > 0 || oe > 0)) {
|
|
2197
2197
|
const $ = ne[0], J = ne[ne.length - 1];
|
|
2198
2198
|
if (N > 0 && $.index > X) {
|
|
@@ -2220,12 +2220,12 @@ const Pt = xe(
|
|
|
2220
2220
|
ce((h) => h !== null),
|
|
2221
2221
|
Me()
|
|
2222
2222
|
),
|
|
2223
|
-
|
|
2223
|
+
Wn
|
|
2224
2224
|
);
|
|
2225
2225
|
te(
|
|
2226
2226
|
L(
|
|
2227
2227
|
e,
|
|
2228
|
-
ce(
|
|
2228
|
+
ce(yr),
|
|
2229
2229
|
U((h) => h == null ? void 0 : h.length)
|
|
2230
2230
|
),
|
|
2231
2231
|
o
|
|
@@ -2281,7 +2281,7 @@ const Pt = xe(
|
|
|
2281
2281
|
startIndex: h[S].index
|
|
2282
2282
|
};
|
|
2283
2283
|
}),
|
|
2284
|
-
Me(
|
|
2284
|
+
Me(ii)
|
|
2285
2285
|
)
|
|
2286
2286
|
);
|
|
2287
2287
|
return {
|
|
@@ -2298,16 +2298,16 @@ const Pt = xe(
|
|
|
2298
2298
|
},
|
|
2299
2299
|
Ee(
|
|
2300
2300
|
gt,
|
|
2301
|
-
|
|
2302
|
-
|
|
2301
|
+
ci,
|
|
2302
|
+
Rr,
|
|
2303
2303
|
sn,
|
|
2304
2304
|
on,
|
|
2305
2305
|
ln,
|
|
2306
2306
|
It,
|
|
2307
|
-
|
|
2307
|
+
Ir
|
|
2308
2308
|
),
|
|
2309
2309
|
{ singleton: !0 }
|
|
2310
|
-
),
|
|
2310
|
+
), pi = xe(
|
|
2311
2311
|
([{ fixedFooterHeight: e, fixedHeaderHeight: t, footerHeight: n, headerHeight: r }, { listState: o }]) => {
|
|
2312
2312
|
const i = ye(), s = je(
|
|
2313
2313
|
L(
|
|
@@ -2320,7 +2320,7 @@ const Pt = xe(
|
|
|
2320
2320
|
},
|
|
2321
2321
|
Ee(Ke, Pt),
|
|
2322
2322
|
{ singleton: !0 }
|
|
2323
|
-
),
|
|
2323
|
+
), Fs = xe(
|
|
2324
2324
|
([{ viewportHeight: e }, { totalListHeight: t }]) => {
|
|
2325
2325
|
const n = H(!1), r = je(
|
|
2326
2326
|
L(
|
|
@@ -2334,17 +2334,17 @@ const Pt = xe(
|
|
|
2334
2334
|
);
|
|
2335
2335
|
return { alignToBottom: n, paddingTopAddition: r };
|
|
2336
2336
|
},
|
|
2337
|
-
Ee(Ke,
|
|
2337
|
+
Ee(Ke, pi),
|
|
2338
2338
|
{ singleton: !0 }
|
|
2339
|
-
),
|
|
2339
|
+
), hi = xe(() => ({
|
|
2340
2340
|
context: H(null)
|
|
2341
|
-
})),
|
|
2341
|
+
})), Ws = ({
|
|
2342
2342
|
itemBottom: e,
|
|
2343
2343
|
itemTop: t,
|
|
2344
2344
|
locationParams: { align: n, behavior: r, ...o },
|
|
2345
2345
|
viewportBottom: i,
|
|
2346
2346
|
viewportTop: s
|
|
2347
|
-
}) => t < s ? { ...o, align: n ?? "start", behavior: r } : e > i ? { ...o, align: n ?? "end", behavior: r } : null,
|
|
2347
|
+
}) => t < s ? { ...o, align: n ?? "start", behavior: r } : e > i ? { ...o, align: n ?? "end", behavior: r } : null, gi = xe(
|
|
2348
2348
|
([
|
|
2349
2349
|
{ gap: e, sizes: t, totalCount: n },
|
|
2350
2350
|
{ fixedFooterHeight: r, fixedHeaderHeight: o, headerHeight: i, scrollingInProgress: s, scrollTop: c, viewportHeight: l },
|
|
@@ -2357,7 +2357,7 @@ const Pt = xe(
|
|
|
2357
2357
|
be(t, l, n, i, o, r, c),
|
|
2358
2358
|
be(e),
|
|
2359
2359
|
U(([[m, p, b, v, y, u, f, g], C]) => {
|
|
2360
|
-
const { align: k, behavior: R, calculateViewLocation: I =
|
|
2360
|
+
const { align: k, behavior: R, calculateViewLocation: I = Ws, done: h, ...S } = m, T = ai(m, p, v - 1), E = Zt(T, p.offsetTree, C) + y + u, O = E + ut(p.sizeTree, T)[1], z = g + u, w = g + b - f, _ = I({
|
|
2361
2361
|
itemBottom: O,
|
|
2362
2362
|
itemTop: E,
|
|
2363
2363
|
locationParams: { align: k, behavior: R, ...S },
|
|
@@ -2385,10 +2385,10 @@ const Pt = xe(
|
|
|
2385
2385
|
Ee(gt, Ke, on, Pt, wt),
|
|
2386
2386
|
{ singleton: !0 }
|
|
2387
2387
|
);
|
|
2388
|
-
function
|
|
2388
|
+
function to(e) {
|
|
2389
2389
|
return e ? e === "smooth" ? "smooth" : "auto" : !1;
|
|
2390
2390
|
}
|
|
2391
|
-
const Ds = (e, t) => typeof e == "function" ?
|
|
2391
|
+
const Ds = (e, t) => typeof e == "function" ? to(e(t)) : t && to(e), $s = xe(
|
|
2392
2392
|
([
|
|
2393
2393
|
{ listRefresh: e, totalCount: t, fixedItemSize: n, data: r },
|
|
2394
2394
|
{ atBottomState: o, isAtBottom: i },
|
|
@@ -2454,7 +2454,7 @@ const Ds = (e, t) => typeof e == "function" ? eo(e(t)) : t && eo(e), Ws = xe(
|
|
|
2454
2454
|
});
|
|
2455
2455
|
const C = H(null), k = ye();
|
|
2456
2456
|
return te(
|
|
2457
|
-
|
|
2457
|
+
dr(
|
|
2458
2458
|
L(
|
|
2459
2459
|
ae(r),
|
|
2460
2460
|
U((R) => {
|
|
@@ -2490,23 +2490,23 @@ const Ds = (e, t) => typeof e == "function" ? eo(e(t)) : t && eo(e), Ws = xe(
|
|
|
2490
2490
|
It,
|
|
2491
2491
|
wt,
|
|
2492
2492
|
Ke,
|
|
2493
|
-
|
|
2494
|
-
|
|
2493
|
+
hi,
|
|
2494
|
+
gi
|
|
2495
2495
|
)
|
|
2496
|
-
),
|
|
2496
|
+
), Vs = xe(
|
|
2497
2497
|
([{ data: e, firstItemIndex: t, gap: n, sizes: r }, { initialTopMostItemIndex: o }, { initialItemCount: i, listState: s }, { didMount: c }]) => (te(
|
|
2498
2498
|
L(
|
|
2499
2499
|
c,
|
|
2500
2500
|
be(i),
|
|
2501
2501
|
ce(([, l]) => l !== 0),
|
|
2502
2502
|
be(o, r, t, n, e),
|
|
2503
|
-
U(([[, l], a, d, m, p, b = []]) =>
|
|
2503
|
+
U(([[, l], a, d, m, p, b = []]) => fi(l, a, d, m, p, b))
|
|
2504
2504
|
),
|
|
2505
2505
|
s
|
|
2506
2506
|
), {}),
|
|
2507
2507
|
Ee(gt, sn, Pt, It),
|
|
2508
2508
|
{ singleton: !0 }
|
|
2509
|
-
),
|
|
2509
|
+
), qs = xe(
|
|
2510
2510
|
([{ didMount: e }, { scrollTo: t }, { listState: n }]) => {
|
|
2511
2511
|
const r = H(0);
|
|
2512
2512
|
return Ie(
|
|
@@ -2536,7 +2536,7 @@ const Ds = (e, t) => typeof e == "function" ? eo(e(t)) : t && eo(e), Ws = xe(
|
|
|
2536
2536
|
},
|
|
2537
2537
|
Ee(It, Ke, Pt),
|
|
2538
2538
|
{ singleton: !0 }
|
|
2539
|
-
),
|
|
2539
|
+
), mi = xe(
|
|
2540
2540
|
([{ scrollVelocity: e }]) => {
|
|
2541
2541
|
const t = H(!1), n = ye(), r = H(!1);
|
|
2542
2542
|
return te(
|
|
@@ -2565,7 +2565,7 @@ const Ds = (e, t) => typeof e == "function" ? eo(e(t)) : t && eo(e), Ws = xe(
|
|
|
2565
2565
|
},
|
|
2566
2566
|
Ee(ln),
|
|
2567
2567
|
{ singleton: !0 }
|
|
2568
|
-
),
|
|
2568
|
+
), _r = xe(([{ scrollContainerState: e, scrollTo: t }]) => {
|
|
2569
2569
|
const n = ye(), r = ye(), o = ye(), i = H(!1), s = H(void 0);
|
|
2570
2570
|
return te(
|
|
2571
2571
|
L(
|
|
@@ -2597,7 +2597,7 @@ const Ds = (e, t) => typeof e == "function" ? eo(e(t)) : t && eo(e), Ws = xe(
|
|
|
2597
2597
|
windowScrollTo: o,
|
|
2598
2598
|
windowViewportRect: r
|
|
2599
2599
|
};
|
|
2600
|
-
}, Ee(Ke)),
|
|
2600
|
+
}, Ee(Ke)), js = xe(
|
|
2601
2601
|
([
|
|
2602
2602
|
{ sizeRanges: e, sizes: t },
|
|
2603
2603
|
{ headerHeight: n, scrollTop: r },
|
|
@@ -2612,10 +2612,10 @@ const Ds = (e, t) => typeof e == "function" ? eo(e(t)) : t && eo(e), Ws = xe(
|
|
|
2612
2612
|
be(t, r, s, m, p, n)
|
|
2613
2613
|
),
|
|
2614
2614
|
([b, v, y, u, f, g, C]) => {
|
|
2615
|
-
const k =
|
|
2615
|
+
const k = Ms(v.sizeTree);
|
|
2616
2616
|
u && f !== null && g !== null && (y = f.scrollTop - g.offsetTop), y -= C, b({ ranges: k, scrollTop: y });
|
|
2617
2617
|
}
|
|
2618
|
-
), te(L(d, ce(
|
|
2618
|
+
), te(L(d, ce(yr), U(Us)), o), te(
|
|
2619
2619
|
L(
|
|
2620
2620
|
i,
|
|
2621
2621
|
be(d),
|
|
@@ -2629,12 +2629,12 @@ const Ds = (e, t) => typeof e == "function" ? eo(e(t)) : t && eo(e), Ws = xe(
|
|
|
2629
2629
|
restoreStateFrom: d
|
|
2630
2630
|
};
|
|
2631
2631
|
},
|
|
2632
|
-
Ee(gt, Ke, sn, It,
|
|
2632
|
+
Ee(gt, Ke, sn, It, _r)
|
|
2633
2633
|
);
|
|
2634
|
-
function
|
|
2634
|
+
function Us(e) {
|
|
2635
2635
|
return { align: "start", index: 0, offset: e.scrollTop };
|
|
2636
2636
|
}
|
|
2637
|
-
const
|
|
2637
|
+
const Ks = xe(([{ topItemsIndexes: e }]) => {
|
|
2638
2638
|
const t = H(0);
|
|
2639
2639
|
return te(
|
|
2640
2640
|
L(
|
|
@@ -2645,11 +2645,11 @@ const Us = xe(([{ topItemsIndexes: e }]) => {
|
|
|
2645
2645
|
e
|
|
2646
2646
|
), { topItemCount: t };
|
|
2647
2647
|
}, Ee(Pt));
|
|
2648
|
-
function
|
|
2648
|
+
function bi(e) {
|
|
2649
2649
|
let t = !1, n;
|
|
2650
2650
|
return (() => (t || (t = !0, n = e()), n));
|
|
2651
2651
|
}
|
|
2652
|
-
const
|
|
2652
|
+
const Xs = bi(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.test(navigator.userAgent)), Ys = xe(
|
|
2653
2653
|
([
|
|
2654
2654
|
{ deviation: e, scrollBy: t, scrollingInProgress: n, scrollTop: r },
|
|
2655
2655
|
{ isAtBottom: o, isScrolling: i, lastJumpDueToItemResize: s, scrollDirection: c },
|
|
@@ -2680,7 +2680,7 @@ const Ks = mi(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
|
|
|
2680
2680
|
f > 0 ? (ge(t, { behavior: "auto", top: -f }), ge(e, 0)) : (ge(e, 0), ge(t, { behavior: "auto", top: -f }));
|
|
2681
2681
|
}
|
|
2682
2682
|
return Ie(L(y, be(e, i)), ([f, g, C]) => {
|
|
2683
|
-
C &&
|
|
2683
|
+
C && Xs() ? ge(e, g - f) : u(-f);
|
|
2684
2684
|
}), Ie(
|
|
2685
2685
|
L(
|
|
2686
2686
|
Fe(je(i, !1), e, v),
|
|
@@ -2727,8 +2727,8 @@ const Ks = mi(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
|
|
|
2727
2727
|
}
|
|
2728
2728
|
), { deviation: e };
|
|
2729
2729
|
},
|
|
2730
|
-
Ee(Ke, ln, Pt, gt, wt,
|
|
2731
|
-
),
|
|
2730
|
+
Ee(Ke, ln, Pt, gt, wt, Ir)
|
|
2731
|
+
), Qs = xe(
|
|
2732
2732
|
([
|
|
2733
2733
|
e,
|
|
2734
2734
|
t,
|
|
@@ -2755,19 +2755,19 @@ const Ks = mi(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
|
|
|
2755
2755
|
...d
|
|
2756
2756
|
}),
|
|
2757
2757
|
Ee(
|
|
2758
|
-
|
|
2759
|
-
|
|
2758
|
+
Rr,
|
|
2759
|
+
Vs,
|
|
2760
2760
|
It,
|
|
2761
|
+
mi,
|
|
2762
|
+
pi,
|
|
2763
|
+
qs,
|
|
2764
|
+
Fs,
|
|
2765
|
+
_r,
|
|
2761
2766
|
gi,
|
|
2762
|
-
fi,
|
|
2763
|
-
Vs,
|
|
2764
|
-
Ns,
|
|
2765
|
-
Rr,
|
|
2766
|
-
hi,
|
|
2767
2767
|
wt,
|
|
2768
|
-
|
|
2768
|
+
hi
|
|
2769
2769
|
)
|
|
2770
|
-
),
|
|
2770
|
+
), vi = xe(
|
|
2771
2771
|
([
|
|
2772
2772
|
{
|
|
2773
2773
|
data: e,
|
|
@@ -2843,17 +2843,17 @@ const Ks = mi(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
|
|
|
2843
2843
|
gt,
|
|
2844
2844
|
sn,
|
|
2845
2845
|
Ke,
|
|
2846
|
-
|
|
2847
|
-
|
|
2846
|
+
js,
|
|
2847
|
+
$s,
|
|
2848
2848
|
Pt,
|
|
2849
2849
|
on,
|
|
2850
|
-
|
|
2851
|
-
|
|
2852
|
-
|
|
2853
|
-
|
|
2850
|
+
Ys,
|
|
2851
|
+
Ks,
|
|
2852
|
+
ci,
|
|
2853
|
+
Qs
|
|
2854
2854
|
)
|
|
2855
2855
|
);
|
|
2856
|
-
function
|
|
2856
|
+
function Zs(e, t) {
|
|
2857
2857
|
const n = {}, r = {};
|
|
2858
2858
|
let o = 0;
|
|
2859
2859
|
const i = e.length;
|
|
@@ -2863,9 +2863,9 @@ function Qs(e, t) {
|
|
|
2863
2863
|
Object.hasOwn(r, s) || (n[s] = t[s]);
|
|
2864
2864
|
return n;
|
|
2865
2865
|
}
|
|
2866
|
-
const dn = typeof document < "u" ?
|
|
2867
|
-
function
|
|
2868
|
-
const r = Object.keys(t.required || {}), o = Object.keys(t.optional || {}), i = Object.keys(t.methods || {}), s = Object.keys(t.events || {}), c =
|
|
2866
|
+
const dn = typeof document < "u" ? W.useLayoutEffect : W.useEffect;
|
|
2867
|
+
function Si(e, t, n) {
|
|
2868
|
+
const r = Object.keys(t.required || {}), o = Object.keys(t.optional || {}), i = Object.keys(t.methods || {}), s = Object.keys(t.events || {}), c = W.createContext({});
|
|
2869
2869
|
function l(u, f) {
|
|
2870
2870
|
u.propsReady && ge(u.propsReady, !1);
|
|
2871
2871
|
for (const g of r) {
|
|
@@ -2886,74 +2886,74 @@ function vi(e, t, n) {
|
|
|
2886
2886
|
}, f), {});
|
|
2887
2887
|
}
|
|
2888
2888
|
function d(u) {
|
|
2889
|
-
return s.reduce((f, g) => (f[g] =
|
|
2889
|
+
return s.reduce((f, g) => (f[g] = hs(u[t.events[g]]), f), {});
|
|
2890
2890
|
}
|
|
2891
|
-
const m =
|
|
2892
|
-
const { children: g, ...C } = u, [k] =
|
|
2891
|
+
const m = W.forwardRef((u, f) => {
|
|
2892
|
+
const { children: g, ...C } = u, [k] = W.useState(() => _n(ms(e), (h) => {
|
|
2893
2893
|
l(h, C);
|
|
2894
|
-
})), [R] =
|
|
2894
|
+
})), [R] = W.useState(qr(d, k));
|
|
2895
2895
|
dn(() => {
|
|
2896
2896
|
for (const h of s)
|
|
2897
2897
|
h in C && Ie(R[h], C[h]);
|
|
2898
2898
|
return () => {
|
|
2899
|
-
Object.values(R).map(
|
|
2899
|
+
Object.values(R).map(xr);
|
|
2900
2900
|
};
|
|
2901
2901
|
}, [C, R, k]), dn(() => {
|
|
2902
2902
|
l(k, C);
|
|
2903
|
-
}),
|
|
2903
|
+
}), W.useImperativeHandle(f, Vr(a(k)));
|
|
2904
2904
|
const I = n;
|
|
2905
|
-
return /* @__PURE__ */ x(c.Provider, { value: k, children: n ? /* @__PURE__ */ x(I, { ...
|
|
2905
|
+
return /* @__PURE__ */ x(c.Provider, { value: k, children: n ? /* @__PURE__ */ x(I, { ...Zs([...r, ...o, ...s], C), children: g }) : g });
|
|
2906
2906
|
}), p = (u) => {
|
|
2907
|
-
const f =
|
|
2908
|
-
return
|
|
2907
|
+
const f = W.useContext(c);
|
|
2908
|
+
return W.useCallback(
|
|
2909
2909
|
(g) => {
|
|
2910
2910
|
ge(f[u], g);
|
|
2911
2911
|
},
|
|
2912
2912
|
[f, u]
|
|
2913
2913
|
);
|
|
2914
2914
|
}, b = (u) => {
|
|
2915
|
-
const f =
|
|
2915
|
+
const f = W.useContext(c)[u], g = W.useCallback(
|
|
2916
2916
|
(C) => Ie(f, C),
|
|
2917
2917
|
[f]
|
|
2918
2918
|
);
|
|
2919
|
-
return
|
|
2919
|
+
return W.useSyncExternalStore(
|
|
2920
2920
|
g,
|
|
2921
2921
|
() => Be(f),
|
|
2922
2922
|
() => Be(f)
|
|
2923
2923
|
);
|
|
2924
2924
|
}, v = (u) => {
|
|
2925
|
-
const f =
|
|
2925
|
+
const f = W.useContext(c)[u], [g, C] = W.useState(qr(Be, f));
|
|
2926
2926
|
return dn(
|
|
2927
2927
|
() => Ie(f, (k) => {
|
|
2928
|
-
k !== g && C(
|
|
2928
|
+
k !== g && C(Vr(k));
|
|
2929
2929
|
}),
|
|
2930
2930
|
[f, g]
|
|
2931
2931
|
), g;
|
|
2932
|
-
}, y =
|
|
2932
|
+
}, y = W.version.startsWith("18") ? b : v;
|
|
2933
2933
|
return {
|
|
2934
2934
|
Component: m,
|
|
2935
2935
|
useEmitter: (u, f) => {
|
|
2936
|
-
const g =
|
|
2936
|
+
const g = W.useContext(c)[u];
|
|
2937
2937
|
dn(() => Ie(g, f), [f, g]);
|
|
2938
2938
|
},
|
|
2939
2939
|
useEmitterValue: y,
|
|
2940
2940
|
usePublisher: p
|
|
2941
2941
|
};
|
|
2942
2942
|
}
|
|
2943
|
-
const
|
|
2944
|
-
function
|
|
2943
|
+
const yi = W.createContext(void 0), xi = W.createContext(void 0), wi = typeof document < "u" ? W.useLayoutEffect : W.useEffect;
|
|
2944
|
+
function Dn(e) {
|
|
2945
2945
|
return "self" in e;
|
|
2946
2946
|
}
|
|
2947
|
-
function
|
|
2947
|
+
function Js(e) {
|
|
2948
2948
|
return "body" in e;
|
|
2949
2949
|
}
|
|
2950
|
-
function
|
|
2951
|
-
const s =
|
|
2950
|
+
function Ii(e, t, n, r = $t, o, i) {
|
|
2951
|
+
const s = W.useRef(null), c = W.useRef(null), l = W.useRef(null), a = W.useCallback(
|
|
2952
2952
|
(p) => {
|
|
2953
2953
|
let b, v, y;
|
|
2954
2954
|
const u = p.target;
|
|
2955
|
-
if (
|
|
2956
|
-
const g =
|
|
2955
|
+
if (Js(u) || Dn(u)) {
|
|
2956
|
+
const g = Dn(u) ? u : u.defaultView;
|
|
2957
2957
|
y = i ? g.scrollX : g.scrollY, b = i ? g.document.documentElement.scrollWidth : g.document.documentElement.scrollHeight, v = i ? g.innerWidth : g.innerHeight;
|
|
2958
2958
|
} else
|
|
2959
2959
|
y = i ? u.scrollLeft : u.scrollTop, b = i ? u.scrollWidth : u.scrollHeight, v = i ? u.offsetWidth : u.offsetHeight;
|
|
@@ -2964,11 +2964,11 @@ function wi(e, t, n, r = $t, o, i) {
|
|
|
2964
2964
|
viewportHeight: v
|
|
2965
2965
|
});
|
|
2966
2966
|
};
|
|
2967
|
-
p.suppressFlushSync ? f() :
|
|
2967
|
+
p.suppressFlushSync ? f() : Ki.flushSync(f), c.current !== null && (y === c.current || y <= 0 || y === b - v) && (c.current = null, t(!0), l.current && (clearTimeout(l.current), l.current = null));
|
|
2968
2968
|
},
|
|
2969
2969
|
[e, t, i]
|
|
2970
2970
|
);
|
|
2971
|
-
|
|
2971
|
+
W.useEffect(() => {
|
|
2972
2972
|
const p = o || s.current;
|
|
2973
2973
|
return r(o || s.current), a({ suppressFlushSync: !0, target: p }), p.addEventListener("scroll", a, { passive: !0 }), () => {
|
|
2974
2974
|
r(null), p.removeEventListener("scroll", a);
|
|
@@ -2980,12 +2980,12 @@ function wi(e, t, n, r = $t, o, i) {
|
|
|
2980
2980
|
return;
|
|
2981
2981
|
const v = p.behavior === "smooth";
|
|
2982
2982
|
let y, u, f;
|
|
2983
|
-
|
|
2983
|
+
Dn(b) ? (u = Math.max(
|
|
2984
2984
|
St(b.document.documentElement, i ? "width" : "height"),
|
|
2985
2985
|
i ? b.document.documentElement.scrollWidth : b.document.documentElement.scrollHeight
|
|
2986
2986
|
), y = i ? b.innerWidth : b.innerHeight, f = i ? window.scrollX : window.scrollY) : (u = b[i ? "scrollWidth" : "scrollHeight"], y = St(b, i ? "width" : "height"), f = b[i ? "scrollLeft" : "scrollTop"]);
|
|
2987
2987
|
const g = u - y;
|
|
2988
|
-
if (p.top = Math.ceil(Math.max(Math.min(g, p.top), 0)),
|
|
2988
|
+
if (p.top = Math.ceil(Math.max(Math.min(g, p.top), 0)), di(y, u) || p.top === f) {
|
|
2989
2989
|
e({ scrollHeight: u, scrollTop: f, viewportHeight: y }), v && t(!0);
|
|
2990
2990
|
return;
|
|
2991
2991
|
}
|
|
@@ -2998,17 +2998,17 @@ function wi(e, t, n, r = $t, o, i) {
|
|
|
2998
2998
|
}
|
|
2999
2999
|
return { scrollByCallback: m, scrollerRef: s, scrollToCallback: d };
|
|
3000
3000
|
}
|
|
3001
|
-
const $n = "-webkit-sticky",
|
|
3001
|
+
const $n = "-webkit-sticky", no = "sticky", Mr = bi(() => {
|
|
3002
3002
|
if (typeof document > "u")
|
|
3003
|
-
return
|
|
3003
|
+
return no;
|
|
3004
3004
|
const e = document.createElement("div");
|
|
3005
|
-
return e.style.position = $n, e.style.position === $n ? $n :
|
|
3005
|
+
return e.style.position = $n, e.style.position === $n ? $n : no;
|
|
3006
3006
|
});
|
|
3007
|
-
function
|
|
3007
|
+
function Er(e) {
|
|
3008
3008
|
return e;
|
|
3009
3009
|
}
|
|
3010
|
-
const
|
|
3011
|
-
const e = H((c) => `Item ${c}`), t = H((c) => `Group ${c}`), n = H({}), r = H(
|
|
3010
|
+
const el = /* @__PURE__ */ xe(() => {
|
|
3011
|
+
const e = H((c) => `Item ${c}`), t = H((c) => `Group ${c}`), n = H({}), r = H(Er), o = H("div"), i = H($t), s = (c, l = null) => je(
|
|
3012
3012
|
L(
|
|
3013
3013
|
n,
|
|
3014
3014
|
U((a) => a[c]),
|
|
@@ -3033,11 +3033,11 @@ const Js = /* @__PURE__ */ xe(() => {
|
|
|
3033
3033
|
ScrollSeekPlaceholder: s("ScrollSeekPlaceholder"),
|
|
3034
3034
|
TopItemListComponent: s("TopItemList")
|
|
3035
3035
|
};
|
|
3036
|
-
}),
|
|
3036
|
+
}), tl = /* @__PURE__ */ xe(
|
|
3037
3037
|
([e, t]) => ({ ...e, ...t }),
|
|
3038
|
-
Ee(
|
|
3039
|
-
),
|
|
3040
|
-
const t = fe("listState"), n =
|
|
3038
|
+
Ee(vi, el)
|
|
3039
|
+
), nl = ({ height: e }) => /* @__PURE__ */ x("div", { style: { height: e } }), rl = { overflowAnchor: "none", position: Mr(), zIndex: 1 }, Ci = { overflowAnchor: "none" }, ol = { ...Ci, display: "inline-block", height: "100%" }, ro = /* @__PURE__ */ W.memo(function({ showTopList: e = !1 }) {
|
|
3040
|
+
const t = fe("listState"), n = rt("sizeRanges"), r = fe("useWindowScroll"), o = fe("customScrollParent"), i = rt("windowScrollContainerState"), s = rt("scrollContainerState"), c = o || r ? i : s, l = fe("itemContent"), a = fe("context"), d = fe("groupContent"), m = fe("trackItemSizes"), p = fe("itemSize"), b = fe("log"), v = rt("gap"), y = fe("horizontalDirection"), { callbackRef: u } = Ss(
|
|
3041
3041
|
n,
|
|
3042
3042
|
p,
|
|
3043
3043
|
m,
|
|
@@ -3047,11 +3047,11 @@ const Js = /* @__PURE__ */ xe(() => {
|
|
|
3047
3047
|
o,
|
|
3048
3048
|
y,
|
|
3049
3049
|
fe("skipAnimationFrameInResizeObserver")
|
|
3050
|
-
), [f, g] =
|
|
3051
|
-
|
|
3050
|
+
), [f, g] = W.useState(0);
|
|
3051
|
+
Or("deviation", (_) => {
|
|
3052
3052
|
f !== _ && g(_);
|
|
3053
3053
|
});
|
|
3054
|
-
const C = fe("EmptyPlaceholder"), k = fe("ScrollSeekPlaceholder") ||
|
|
3054
|
+
const C = fe("EmptyPlaceholder"), k = fe("ScrollSeekPlaceholder") || nl, R = fe("ListComponent"), I = fe("ItemComponent"), h = fe("GroupComponent"), S = fe("computeItemKey"), T = fe("isSeeking"), E = fe("groupIndices").length > 0, O = fe("alignToBottom"), z = fe("initialItemFinalLocationReached"), w = e ? {} : {
|
|
3055
3055
|
boxSizing: "border-box",
|
|
3056
3056
|
...y ? {
|
|
3057
3057
|
display: "inline-block",
|
|
@@ -3094,33 +3094,33 @@ const Js = /* @__PURE__ */ xe(() => {
|
|
|
3094
3094
|
"data-item-index": _.index,
|
|
3095
3095
|
"data-known-size": _.size,
|
|
3096
3096
|
key: G,
|
|
3097
|
-
style:
|
|
3097
|
+
style: rl
|
|
3098
3098
|
},
|
|
3099
3099
|
d(_.index, a)
|
|
3100
3100
|
) : /* @__PURE__ */ hn(
|
|
3101
3101
|
I,
|
|
3102
3102
|
{
|
|
3103
3103
|
...qe(I, a),
|
|
3104
|
-
...
|
|
3104
|
+
...al(I, _.data),
|
|
3105
3105
|
"data-index": P,
|
|
3106
3106
|
"data-item-group-index": _.groupIndex,
|
|
3107
3107
|
"data-item-index": _.index,
|
|
3108
3108
|
"data-known-size": _.size,
|
|
3109
3109
|
key: G,
|
|
3110
|
-
style: y ?
|
|
3110
|
+
style: y ? ol : Ci
|
|
3111
3111
|
},
|
|
3112
3112
|
E ? l(_.index, _.groupIndex, _.data, a) : l(_.index, _.data, a)
|
|
3113
3113
|
);
|
|
3114
3114
|
})
|
|
3115
3115
|
}
|
|
3116
3116
|
);
|
|
3117
|
-
}),
|
|
3117
|
+
}), il = {
|
|
3118
3118
|
height: "100%",
|
|
3119
3119
|
outline: "none",
|
|
3120
3120
|
overflowY: "auto",
|
|
3121
3121
|
position: "relative",
|
|
3122
3122
|
WebkitOverflowScrolling: "touch"
|
|
3123
|
-
},
|
|
3123
|
+
}, sl = {
|
|
3124
3124
|
outline: "none",
|
|
3125
3125
|
overflowX: "auto",
|
|
3126
3126
|
position: "relative"
|
|
@@ -3130,8 +3130,8 @@ const Js = /* @__PURE__ */ xe(() => {
|
|
|
3130
3130
|
top: 0,
|
|
3131
3131
|
width: "100%",
|
|
3132
3132
|
...e ? { display: "flex", flexDirection: "column" } : {}
|
|
3133
|
-
}),
|
|
3134
|
-
position:
|
|
3133
|
+
}), ll = {
|
|
3134
|
+
position: Mr(),
|
|
3135
3135
|
top: 0,
|
|
3136
3136
|
width: "100%",
|
|
3137
3137
|
zIndex: 1
|
|
@@ -3140,12 +3140,12 @@ function qe(e, t) {
|
|
|
3140
3140
|
if (typeof e != "string")
|
|
3141
3141
|
return { context: t };
|
|
3142
3142
|
}
|
|
3143
|
-
function
|
|
3143
|
+
function al(e, t) {
|
|
3144
3144
|
return { item: typeof e == "string" ? void 0 : t };
|
|
3145
3145
|
}
|
|
3146
|
-
const
|
|
3147
|
-
const e = fe("HeaderComponent"), t =
|
|
3148
|
-
|
|
3146
|
+
const cl = /* @__PURE__ */ W.memo(function() {
|
|
3147
|
+
const e = fe("HeaderComponent"), t = rt("headerHeight"), n = fe("HeaderFooterTag"), r = Ot(
|
|
3148
|
+
W.useMemo(
|
|
3149
3149
|
() => (i) => {
|
|
3150
3150
|
t(St(i, "height"));
|
|
3151
3151
|
},
|
|
@@ -3155,9 +3155,9 @@ const al = /* @__PURE__ */ D.memo(function() {
|
|
|
3155
3155
|
fe("skipAnimationFrameInResizeObserver")
|
|
3156
3156
|
), o = fe("context");
|
|
3157
3157
|
return e ? /* @__PURE__ */ x(n, { ref: r, children: /* @__PURE__ */ x(e, { ...qe(e, o) }) }) : null;
|
|
3158
|
-
}),
|
|
3159
|
-
const e = fe("FooterComponent"), t =
|
|
3160
|
-
|
|
3158
|
+
}), ul = /* @__PURE__ */ W.memo(function() {
|
|
3159
|
+
const e = fe("FooterComponent"), t = rt("footerHeight"), n = fe("HeaderFooterTag"), r = Ot(
|
|
3160
|
+
W.useMemo(
|
|
3161
3161
|
() => (i) => {
|
|
3162
3162
|
t(St(i, "height"));
|
|
3163
3163
|
},
|
|
@@ -3168,9 +3168,9 @@ const al = /* @__PURE__ */ D.memo(function() {
|
|
|
3168
3168
|
), o = fe("context");
|
|
3169
3169
|
return e ? /* @__PURE__ */ x(n, { ref: r, children: /* @__PURE__ */ x(e, { ...qe(e, o) }) }) : null;
|
|
3170
3170
|
});
|
|
3171
|
-
function
|
|
3172
|
-
return
|
|
3173
|
-
const c = n("scrollContainerState"), l = t("ScrollerComponent"), a = n("smoothScrollTargetReached"), d = t("scrollerRef"), m = t("horizontalDirection") || !1, { scrollByCallback: p, scrollerRef: b, scrollToCallback: v } =
|
|
3171
|
+
function Ti({ useEmitter: e, useEmitterValue: t, usePublisher: n }) {
|
|
3172
|
+
return W.memo(function({ children: r, style: o, context: i, ...s }) {
|
|
3173
|
+
const c = n("scrollContainerState"), l = t("ScrollerComponent"), a = n("smoothScrollTargetReached"), d = t("scrollerRef"), m = t("horizontalDirection") || !1, { scrollByCallback: p, scrollerRef: b, scrollToCallback: v } = Ii(
|
|
3174
3174
|
c,
|
|
3175
3175
|
a,
|
|
3176
3176
|
l,
|
|
@@ -3184,7 +3184,7 @@ function Ci({ useEmitter: e, useEmitterValue: t, usePublisher: n }) {
|
|
|
3184
3184
|
"data-testid": "virtuoso-scroller",
|
|
3185
3185
|
"data-virtuoso-scroller": !0,
|
|
3186
3186
|
ref: b,
|
|
3187
|
-
style: { ...m ?
|
|
3187
|
+
style: { ...m ? sl : il, ...o },
|
|
3188
3188
|
tabIndex: 0,
|
|
3189
3189
|
...s,
|
|
3190
3190
|
...qe(l, i),
|
|
@@ -3193,16 +3193,16 @@ function Ci({ useEmitter: e, useEmitterValue: t, usePublisher: n }) {
|
|
|
3193
3193
|
);
|
|
3194
3194
|
});
|
|
3195
3195
|
}
|
|
3196
|
-
function
|
|
3197
|
-
return
|
|
3198
|
-
const c = n("windowScrollContainerState"), l = t("ScrollerComponent"), a = n("smoothScrollTargetReached"), d = t("totalListHeight"), m = t("deviation"), p = t("customScrollParent"), b =
|
|
3196
|
+
function ki({ useEmitter: e, useEmitterValue: t, usePublisher: n }) {
|
|
3197
|
+
return W.memo(function({ children: r, style: o, context: i, ...s }) {
|
|
3198
|
+
const c = n("windowScrollContainerState"), l = t("ScrollerComponent"), a = n("smoothScrollTargetReached"), d = t("totalListHeight"), m = t("deviation"), p = t("customScrollParent"), b = W.useRef(null), v = t("scrollerRef"), { scrollByCallback: y, scrollerRef: u, scrollToCallback: f } = Ii(
|
|
3199
3199
|
c,
|
|
3200
3200
|
a,
|
|
3201
3201
|
l,
|
|
3202
3202
|
v,
|
|
3203
3203
|
p
|
|
3204
3204
|
);
|
|
3205
|
-
return
|
|
3205
|
+
return wi(() => {
|
|
3206
3206
|
var g;
|
|
3207
3207
|
return u.current = p || ((g = b.current) == null ? void 0 : g.ownerDocument.defaultView), () => {
|
|
3208
3208
|
u.current = null;
|
|
@@ -3220,43 +3220,43 @@ function Ti({ useEmitter: e, useEmitterValue: t, usePublisher: n }) {
|
|
|
3220
3220
|
);
|
|
3221
3221
|
});
|
|
3222
3222
|
}
|
|
3223
|
-
const
|
|
3224
|
-
const t =
|
|
3225
|
-
() =>
|
|
3223
|
+
const dl = ({ children: e }) => {
|
|
3224
|
+
const t = W.useContext(yi), n = rt("viewportHeight"), r = rt("fixedItemHeight"), o = fe("alignToBottom"), i = fe("horizontalDirection"), s = W.useMemo(
|
|
3225
|
+
() => Qo(n, (l) => St(l, i ? "width" : "height")),
|
|
3226
3226
|
[n, i]
|
|
3227
3227
|
), c = Ot(s, !0, fe("skipAnimationFrameInResizeObserver"));
|
|
3228
|
-
return
|
|
3228
|
+
return W.useEffect(() => {
|
|
3229
3229
|
t && (n(t.viewportHeight), r(t.itemHeight));
|
|
3230
3230
|
}, [t, n, r]), /* @__PURE__ */ x("div", { "data-viewport-type": "element", ref: c, style: En(o), children: e });
|
|
3231
|
-
},
|
|
3232
|
-
const t =
|
|
3231
|
+
}, fl = ({ children: e }) => {
|
|
3232
|
+
const t = W.useContext(yi), n = rt("windowViewportRect"), r = rt("fixedItemHeight"), o = fe("customScrollParent"), i = Jo(
|
|
3233
3233
|
n,
|
|
3234
3234
|
o,
|
|
3235
3235
|
fe("skipAnimationFrameInResizeObserver")
|
|
3236
3236
|
), s = fe("alignToBottom");
|
|
3237
|
-
return
|
|
3237
|
+
return W.useEffect(() => {
|
|
3238
3238
|
t && (r(t.itemHeight), n({ offsetTop: 0, visibleHeight: t.viewportHeight, visibleWidth: 100 }));
|
|
3239
3239
|
}, [t, n, r]), /* @__PURE__ */ x("div", { "data-viewport-type": "window", ref: i, style: En(s), children: e });
|
|
3240
|
-
},
|
|
3241
|
-
const t = fe("TopItemListComponent") || "div", n = fe("headerHeight"), r = { ...
|
|
3240
|
+
}, pl = ({ children: e }) => {
|
|
3241
|
+
const t = fe("TopItemListComponent") || "div", n = fe("headerHeight"), r = { ...ll, marginTop: `${n}px` }, o = fe("context");
|
|
3242
3242
|
return /* @__PURE__ */ x(t, { style: r, ...qe(t, o), children: e });
|
|
3243
|
-
},
|
|
3243
|
+
}, hl = /* @__PURE__ */ W.memo(function(e) {
|
|
3244
3244
|
const t = fe("useWindowScroll"), n = fe("topItemsIndexes").length > 0, r = fe("customScrollParent"), o = fe("context");
|
|
3245
|
-
return /* @__PURE__ */ Z(r || t ?
|
|
3246
|
-
n && /* @__PURE__ */ x(
|
|
3247
|
-
/* @__PURE__ */ Z(r || t ?
|
|
3248
|
-
/* @__PURE__ */ x(
|
|
3249
|
-
/* @__PURE__ */ x(
|
|
3250
|
-
/* @__PURE__ */ x(
|
|
3245
|
+
return /* @__PURE__ */ Z(r || t ? bl : ml, { ...e, context: o, children: [
|
|
3246
|
+
n && /* @__PURE__ */ x(pl, { children: /* @__PURE__ */ x(ro, { showTopList: !0 }) }),
|
|
3247
|
+
/* @__PURE__ */ Z(r || t ? fl : dl, { children: [
|
|
3248
|
+
/* @__PURE__ */ x(cl, {}),
|
|
3249
|
+
/* @__PURE__ */ x(ro, {}),
|
|
3250
|
+
/* @__PURE__ */ x(ul, {})
|
|
3251
3251
|
] })
|
|
3252
3252
|
] });
|
|
3253
3253
|
}), {
|
|
3254
|
-
Component:
|
|
3255
|
-
useEmitter:
|
|
3254
|
+
Component: gl,
|
|
3255
|
+
useEmitter: Or,
|
|
3256
3256
|
useEmitterValue: fe,
|
|
3257
|
-
usePublisher:
|
|
3258
|
-
} = /* @__PURE__ */
|
|
3259
|
-
|
|
3257
|
+
usePublisher: rt
|
|
3258
|
+
} = /* @__PURE__ */ Si(
|
|
3259
|
+
tl,
|
|
3260
3260
|
{
|
|
3261
3261
|
required: {},
|
|
3262
3262
|
optional: {
|
|
@@ -3317,15 +3317,15 @@ const ul = ({ children: e }) => {
|
|
|
3317
3317
|
groupIndices: "groupIndices"
|
|
3318
3318
|
}
|
|
3319
3319
|
},
|
|
3320
|
-
|
|
3321
|
-
),
|
|
3320
|
+
hl
|
|
3321
|
+
), ml = /* @__PURE__ */ Ti({ useEmitter: Or, useEmitterValue: fe, usePublisher: rt }), bl = /* @__PURE__ */ ki({ useEmitter: Or, useEmitterValue: fe, usePublisher: rt }), vl = gl, Sl = /* @__PURE__ */ xe(() => {
|
|
3322
3322
|
const e = H((a) => /* @__PURE__ */ Z("td", { children: [
|
|
3323
3323
|
"Item $",
|
|
3324
3324
|
a
|
|
3325
3325
|
] })), t = H(null), n = H((a) => /* @__PURE__ */ Z("td", { colSpan: 1e3, children: [
|
|
3326
3326
|
"Group ",
|
|
3327
3327
|
a
|
|
3328
|
-
] })), r = H(null), o = H(null), i = H({}), s = H(
|
|
3328
|
+
] })), r = H(null), o = H(null), i = H({}), s = H(Er), c = H($t), l = (a, d = null) => je(
|
|
3329
3329
|
L(
|
|
3330
3330
|
i,
|
|
3331
3331
|
U((m) => m[a]),
|
|
@@ -3354,9 +3354,9 @@ const ul = ({ children: e }) => {
|
|
|
3354
3354
|
GroupComponent: l("Group", "tr")
|
|
3355
3355
|
};
|
|
3356
3356
|
});
|
|
3357
|
-
Ee(
|
|
3358
|
-
|
|
3359
|
-
const
|
|
3357
|
+
Ee(vi, Sl);
|
|
3358
|
+
Mr();
|
|
3359
|
+
const oo = {
|
|
3360
3360
|
bottom: 0,
|
|
3361
3361
|
itemHeight: 0,
|
|
3362
3362
|
items: [],
|
|
@@ -3364,7 +3364,7 @@ const ro = {
|
|
|
3364
3364
|
offsetBottom: 0,
|
|
3365
3365
|
offsetTop: 0,
|
|
3366
3366
|
top: 0
|
|
3367
|
-
},
|
|
3367
|
+
}, yl = {
|
|
3368
3368
|
bottom: 0,
|
|
3369
3369
|
itemHeight: 0,
|
|
3370
3370
|
items: [{ index: 0 }],
|
|
@@ -3372,23 +3372,23 @@ const ro = {
|
|
|
3372
3372
|
offsetBottom: 0,
|
|
3373
3373
|
offsetTop: 0,
|
|
3374
3374
|
top: 0
|
|
3375
|
-
}, { ceil:
|
|
3376
|
-
function
|
|
3375
|
+
}, { ceil: io, floor: Sn, max: Kt, min: Vn, round: so } = Math;
|
|
3376
|
+
function lo(e, t, n) {
|
|
3377
3377
|
return Array.from({ length: t - e + 1 }).map((r, o) => ({ data: n === null ? null : n[o + e], index: o + e }));
|
|
3378
3378
|
}
|
|
3379
|
-
function
|
|
3379
|
+
function xl(e) {
|
|
3380
3380
|
return {
|
|
3381
|
-
...
|
|
3381
|
+
...yl,
|
|
3382
3382
|
items: e
|
|
3383
3383
|
};
|
|
3384
3384
|
}
|
|
3385
3385
|
function fn(e, t) {
|
|
3386
3386
|
return e && e.width === t.width && e.height === t.height;
|
|
3387
3387
|
}
|
|
3388
|
-
function
|
|
3388
|
+
function wl(e, t) {
|
|
3389
3389
|
return e && e.column === t.column && e.row === t.row;
|
|
3390
3390
|
}
|
|
3391
|
-
const
|
|
3391
|
+
const Il = /* @__PURE__ */ xe(
|
|
3392
3392
|
([
|
|
3393
3393
|
{ increaseViewportBy: e, listBoundary: t, overscan: n, visibleRange: r },
|
|
3394
3394
|
{ footerHeight: o, headerHeight: i, scrollBy: s, scrollContainerState: c, scrollTo: l, scrollTop: a, smoothScrollTargetReached: d, viewportHeight: m },
|
|
@@ -3398,7 +3398,7 @@ const wl = /* @__PURE__ */ xe(
|
|
|
3398
3398
|
{ customScrollParent: u, useWindowScroll: f, windowScrollContainerState: g, windowScrollTo: C, windowViewportRect: k },
|
|
3399
3399
|
R
|
|
3400
3400
|
]) => {
|
|
3401
|
-
const I = H(0), h = H(0), S = H(
|
|
3401
|
+
const I = H(0), h = H(0), S = H(oo), T = H({ height: 0, width: 0 }), E = H({ height: 0, width: 0 }), O = ye(), z = ye(), w = H(0), _ = H(null), P = H({ column: 0, row: 0 }), G = ye(), M = ye(), B = H(!1), F = H(0), V = H(!0), q = H(!1), ue = H(!1);
|
|
3402
3402
|
Ie(
|
|
3403
3403
|
L(
|
|
3404
3404
|
v,
|
|
@@ -3414,7 +3414,7 @@ const wl = /* @__PURE__ */ xe(
|
|
|
3414
3414
|
ce(([A, K, ne, N, , oe]) => A && !K && ne.height !== 0 && N.height !== 0 && !oe)
|
|
3415
3415
|
),
|
|
3416
3416
|
([, , , , A]) => {
|
|
3417
|
-
ge(q, !0),
|
|
3417
|
+
ge(q, !0), Tr(1, () => {
|
|
3418
3418
|
ge(O, A);
|
|
3419
3419
|
}), ct(L(a), () => {
|
|
3420
3420
|
ge(t, [0, 0]), ge(V, !0);
|
|
@@ -3465,7 +3465,7 @@ const wl = /* @__PURE__ */ xe(
|
|
|
3465
3465
|
Fe(
|
|
3466
3466
|
ae(I),
|
|
3467
3467
|
r,
|
|
3468
|
-
ae(P,
|
|
3468
|
+
ae(P, wl),
|
|
3469
3469
|
ae(E, fn),
|
|
3470
3470
|
ae(T, fn),
|
|
3471
3471
|
ae(_),
|
|
@@ -3490,15 +3490,15 @@ const wl = /* @__PURE__ */ xe(
|
|
|
3490
3490
|
]) => {
|
|
3491
3491
|
const { column: le, row: we } = N, { height: me, width: Te } = oe, { width: Oe } = $;
|
|
3492
3492
|
if (se === 0 && (A === 0 || Oe === 0))
|
|
3493
|
-
return
|
|
3493
|
+
return oo;
|
|
3494
3494
|
if (Te === 0) {
|
|
3495
|
-
const bt =
|
|
3496
|
-
return
|
|
3495
|
+
const bt = kr(pe, A), Vt = bt + Math.max(se - 1, 0);
|
|
3496
|
+
return xl(lo(bt, Vt, J));
|
|
3497
3497
|
}
|
|
3498
|
-
const Ne =
|
|
3498
|
+
const Ne = Ri(Oe, Te, le);
|
|
3499
3499
|
let Ae, $e;
|
|
3500
|
-
re ? K === 0 && ne === 0 && se > 0 ? (Ae = 0, $e = se - 1) : (Ae = Ne * Sn((K + we) / (me + we)), $e = Ne *
|
|
3501
|
-
const dt =
|
|
3500
|
+
re ? K === 0 && ne === 0 && se > 0 ? (Ae = 0, $e = se - 1) : (Ae = Ne * Sn((K + we) / (me + we)), $e = Ne * io((ne + we) / (me + we)) - 1, $e = Vn(A - 1, Kt($e, Ne - 1)), Ae = Vn($e, Kt(0, Ae))) : (Ae = 0, $e = -1);
|
|
3501
|
+
const dt = lo(Ae, $e, J), { bottom: Xe, top: Ge } = ao($, N, oe, dt), st = io(A / Ne), et = st * me + (st - 1) * we - Xe;
|
|
3502
3502
|
return { bottom: Xe, itemHeight: me, items: dt, itemWidth: Te, offsetBottom: et, offsetTop: Ge, top: Ge };
|
|
3503
3503
|
}
|
|
3504
3504
|
)
|
|
@@ -3516,7 +3516,7 @@ const wl = /* @__PURE__ */ xe(
|
|
|
3516
3516
|
Fe(T, E, S, P),
|
|
3517
3517
|
ce(([A, K, { items: ne }]) => ne.length > 0 && K.height !== 0 && A.height !== 0),
|
|
3518
3518
|
U(([A, K, { items: ne }, N]) => {
|
|
3519
|
-
const { bottom: oe, top: $ } =
|
|
3519
|
+
const { bottom: oe, top: $ } = ao(A, N, K, ne);
|
|
3520
3520
|
return [$, oe];
|
|
3521
3521
|
}),
|
|
3522
3522
|
Me(Qt)
|
|
@@ -3560,7 +3560,7 @@ const wl = /* @__PURE__ */ xe(
|
|
|
3560
3560
|
endIndex: A[A.length - 1].index,
|
|
3561
3561
|
startIndex: A[0].index
|
|
3562
3562
|
})),
|
|
3563
|
-
Me(
|
|
3563
|
+
Me(ii),
|
|
3564
3564
|
mt(0)
|
|
3565
3565
|
)
|
|
3566
3566
|
);
|
|
@@ -3569,11 +3569,11 @@ const wl = /* @__PURE__ */ xe(
|
|
|
3569
3569
|
O,
|
|
3570
3570
|
be(T, E, I, P),
|
|
3571
3571
|
U(([A, K, ne, N, oe]) => {
|
|
3572
|
-
const $ =
|
|
3572
|
+
const $ = ui(A), { align: J, behavior: se, offset: re } = $;
|
|
3573
3573
|
let pe = $.index;
|
|
3574
3574
|
pe === "LAST" && (pe = N - 1), pe = Kt(0, pe, Vn(N - 1, pe));
|
|
3575
|
-
let le =
|
|
3576
|
-
return J === "end" ? le =
|
|
3575
|
+
let le = mr(K, oe, ne, pe);
|
|
3576
|
+
return J === "end" ? le = so(le - K.height + ne.height) : J === "center" && (le = so(le - K.height / 2 + ne.height / 2)), re && (le += re), { behavior: se, top: le };
|
|
3577
3577
|
})
|
|
3578
3578
|
),
|
|
3579
3579
|
l
|
|
@@ -3633,24 +3633,24 @@ const wl = /* @__PURE__ */ xe(
|
|
|
3633
3633
|
...R
|
|
3634
3634
|
};
|
|
3635
3635
|
},
|
|
3636
|
-
Ee(
|
|
3636
|
+
Ee(Rr, Ke, ln, mi, It, _r, wt)
|
|
3637
3637
|
);
|
|
3638
|
-
function
|
|
3638
|
+
function Ri(e, t, n) {
|
|
3639
3639
|
return Kt(1, Sn((e + n) / (Sn(t) + n)));
|
|
3640
3640
|
}
|
|
3641
|
-
function
|
|
3641
|
+
function ao(e, t, n, r) {
|
|
3642
3642
|
const { height: o } = n;
|
|
3643
3643
|
if (o === void 0 || r.length === 0)
|
|
3644
3644
|
return { bottom: 0, top: 0 };
|
|
3645
|
-
const i =
|
|
3646
|
-
return { bottom:
|
|
3645
|
+
const i = mr(e, t, n, r[0].index);
|
|
3646
|
+
return { bottom: mr(e, t, n, r[r.length - 1].index) + o, top: i };
|
|
3647
3647
|
}
|
|
3648
|
-
function
|
|
3649
|
-
const o =
|
|
3648
|
+
function mr(e, t, n, r) {
|
|
3649
|
+
const o = Ri(e.width, n.width, t.column), i = Sn(r / o), s = i * n.height + Kt(0, i - 1) * t.row;
|
|
3650
3650
|
return s > 0 ? s + t.row : s;
|
|
3651
3651
|
}
|
|
3652
|
-
const
|
|
3653
|
-
const e = H((m) => `Item ${m}`), t = H({}), n = H(null), r = H("virtuoso-grid-item"), o = H("virtuoso-grid-list"), i = H(
|
|
3652
|
+
const Cl = /* @__PURE__ */ xe(() => {
|
|
3653
|
+
const e = H((m) => `Item ${m}`), t = H({}), n = H(null), r = H("virtuoso-grid-item"), o = H("virtuoso-grid-list"), i = H(Er), s = H("div"), c = H($t), l = (m, p = null) => je(
|
|
3654
3654
|
L(
|
|
3655
3655
|
t,
|
|
3656
3656
|
U((b) => b[m]),
|
|
@@ -3676,12 +3676,12 @@ const Il = /* @__PURE__ */ xe(() => {
|
|
|
3676
3676
|
scrollerRef: c,
|
|
3677
3677
|
ScrollSeekPlaceholder: l("ScrollSeekPlaceholder", "div")
|
|
3678
3678
|
};
|
|
3679
|
-
}),
|
|
3679
|
+
}), Tl = /* @__PURE__ */ xe(
|
|
3680
3680
|
([e, t]) => ({ ...e, ...t }),
|
|
3681
|
-
Ee(
|
|
3682
|
-
),
|
|
3683
|
-
const e = Pe("gridState"), t = Pe("listClassName"), n = Pe("itemClassName"), r = Pe("itemContent"), o = Pe("computeItemKey"), i = Pe("isSeeking"), s =
|
|
3684
|
-
|
|
3681
|
+
Ee(Il, Cl)
|
|
3682
|
+
), kl = /* @__PURE__ */ W.memo(function() {
|
|
3683
|
+
const e = Pe("gridState"), t = Pe("listClassName"), n = Pe("itemClassName"), r = Pe("itemContent"), o = Pe("computeItemKey"), i = Pe("isSeeking"), s = ot("scrollHeight"), c = Pe("ItemComponent"), l = Pe("ListComponent"), a = Pe("ScrollSeekPlaceholder"), d = Pe("context"), m = ot("itemDimensions"), p = ot("gap"), b = Pe("log"), v = Pe("stateRestoreInProgress"), y = ot("reportReadyState"), u = Ot(
|
|
3684
|
+
W.useMemo(
|
|
3685
3685
|
() => (f) => {
|
|
3686
3686
|
const g = f.parentElement.parentElement.scrollHeight;
|
|
3687
3687
|
s(g);
|
|
@@ -3691,8 +3691,8 @@ const Il = /* @__PURE__ */ xe(() => {
|
|
|
3691
3691
|
m({ height: k, width: R });
|
|
3692
3692
|
}
|
|
3693
3693
|
p({
|
|
3694
|
-
column:
|
|
3695
|
-
row:
|
|
3694
|
+
column: co("column-gap", getComputedStyle(f).columnGap, b),
|
|
3695
|
+
row: co("row-gap", getComputedStyle(f).rowGap, b)
|
|
3696
3696
|
});
|
|
3697
3697
|
},
|
|
3698
3698
|
[s, m, p, b]
|
|
@@ -3700,7 +3700,7 @@ const Il = /* @__PURE__ */ xe(() => {
|
|
|
3700
3700
|
!0,
|
|
3701
3701
|
!1
|
|
3702
3702
|
);
|
|
3703
|
-
return
|
|
3703
|
+
return wi(() => {
|
|
3704
3704
|
e.itemHeight > 0 && e.itemWidth > 0 && y(!0);
|
|
3705
3705
|
}, [e]), v ? null : /* @__PURE__ */ x(
|
|
3706
3706
|
l,
|
|
@@ -3734,9 +3734,9 @@ const Il = /* @__PURE__ */ xe(() => {
|
|
|
3734
3734
|
})
|
|
3735
3735
|
}
|
|
3736
3736
|
);
|
|
3737
|
-
}),
|
|
3738
|
-
const e = Pe("HeaderComponent"), t =
|
|
3739
|
-
|
|
3737
|
+
}), Rl = W.memo(function() {
|
|
3738
|
+
const e = Pe("HeaderComponent"), t = ot("headerHeight"), n = Pe("headerFooterTag"), r = Ot(
|
|
3739
|
+
W.useMemo(
|
|
3740
3740
|
() => (i) => {
|
|
3741
3741
|
t(St(i, "height"));
|
|
3742
3742
|
},
|
|
@@ -3746,9 +3746,9 @@ const Il = /* @__PURE__ */ xe(() => {
|
|
|
3746
3746
|
!1
|
|
3747
3747
|
), o = Pe("context");
|
|
3748
3748
|
return e ? /* @__PURE__ */ x(n, { ref: r, children: /* @__PURE__ */ x(e, { ...qe(e, o) }) }) : null;
|
|
3749
|
-
}),
|
|
3750
|
-
const e = Pe("FooterComponent"), t =
|
|
3751
|
-
|
|
3749
|
+
}), _l = W.memo(function() {
|
|
3750
|
+
const e = Pe("FooterComponent"), t = ot("footerHeight"), n = Pe("headerFooterTag"), r = Ot(
|
|
3751
|
+
W.useMemo(
|
|
3752
3752
|
() => (i) => {
|
|
3753
3753
|
t(St(i, "height"));
|
|
3754
3754
|
},
|
|
@@ -3758,9 +3758,9 @@ const Il = /* @__PURE__ */ xe(() => {
|
|
|
3758
3758
|
!1
|
|
3759
3759
|
), o = Pe("context");
|
|
3760
3760
|
return e ? /* @__PURE__ */ x(n, { ref: r, children: /* @__PURE__ */ x(e, { ...qe(e, o) }) }) : null;
|
|
3761
|
-
}),
|
|
3762
|
-
const t =
|
|
3763
|
-
|
|
3761
|
+
}), Ml = ({ children: e }) => {
|
|
3762
|
+
const t = W.useContext(xi), n = ot("itemDimensions"), r = ot("viewportDimensions"), o = Ot(
|
|
3763
|
+
W.useMemo(
|
|
3764
3764
|
() => (i) => {
|
|
3765
3765
|
r(i.getBoundingClientRect());
|
|
3766
3766
|
},
|
|
@@ -3769,27 +3769,27 @@ const Il = /* @__PURE__ */ xe(() => {
|
|
|
3769
3769
|
!0,
|
|
3770
3770
|
!1
|
|
3771
3771
|
);
|
|
3772
|
-
return
|
|
3772
|
+
return W.useEffect(() => {
|
|
3773
3773
|
t && (r({ height: t.viewportHeight, width: t.viewportWidth }), n({ height: t.itemHeight, width: t.itemWidth }));
|
|
3774
3774
|
}, [t, r, n]), /* @__PURE__ */ x("div", { ref: o, style: En(!1), children: e });
|
|
3775
|
-
},
|
|
3776
|
-
const t =
|
|
3777
|
-
return
|
|
3775
|
+
}, El = ({ children: e }) => {
|
|
3776
|
+
const t = W.useContext(xi), n = ot("windowViewportRect"), r = ot("itemDimensions"), o = Pe("customScrollParent"), i = Jo(n, o, !1);
|
|
3777
|
+
return W.useEffect(() => {
|
|
3778
3778
|
t && (r({ height: t.itemHeight, width: t.itemWidth }), n({ offsetTop: 0, visibleHeight: t.viewportHeight, visibleWidth: t.viewportWidth }));
|
|
3779
3779
|
}, [t, n, r]), /* @__PURE__ */ x("div", { ref: i, style: En(!1), children: e });
|
|
3780
|
-
},
|
|
3781
|
-
const t = Pe("useWindowScroll"), n = Pe("customScrollParent"), r = n || t ?
|
|
3780
|
+
}, Ol = /* @__PURE__ */ W.memo(function({ ...e }) {
|
|
3781
|
+
const t = Pe("useWindowScroll"), n = Pe("customScrollParent"), r = n || t ? Bl : Pl, o = n || t ? El : Ml, i = Pe("context");
|
|
3782
3782
|
return /* @__PURE__ */ x(r, { ...e, ...qe(r, i), children: /* @__PURE__ */ Z(o, { children: [
|
|
3783
|
+
/* @__PURE__ */ x(Rl, {}),
|
|
3783
3784
|
/* @__PURE__ */ x(kl, {}),
|
|
3784
|
-
/* @__PURE__ */ x(
|
|
3785
|
-
/* @__PURE__ */ x(Rl, {})
|
|
3785
|
+
/* @__PURE__ */ x(_l, {})
|
|
3786
3786
|
] }) });
|
|
3787
3787
|
}), {
|
|
3788
|
-
useEmitter:
|
|
3788
|
+
useEmitter: _i,
|
|
3789
3789
|
useEmitterValue: Pe,
|
|
3790
|
-
usePublisher:
|
|
3791
|
-
} = /* @__PURE__ */
|
|
3792
|
-
|
|
3790
|
+
usePublisher: ot
|
|
3791
|
+
} = /* @__PURE__ */ Si(
|
|
3792
|
+
Tl,
|
|
3793
3793
|
{
|
|
3794
3794
|
optional: {
|
|
3795
3795
|
context: "context",
|
|
@@ -3828,9 +3828,9 @@ const Il = /* @__PURE__ */ xe(() => {
|
|
|
3828
3828
|
readyStateChanged: "readyStateChanged"
|
|
3829
3829
|
}
|
|
3830
3830
|
},
|
|
3831
|
-
|
|
3832
|
-
),
|
|
3833
|
-
function
|
|
3831
|
+
Ol
|
|
3832
|
+
), Pl = /* @__PURE__ */ Ti({ useEmitter: _i, useEmitterValue: Pe, usePublisher: ot }), Bl = /* @__PURE__ */ ki({ useEmitter: _i, useEmitterValue: Pe, usePublisher: ot });
|
|
3833
|
+
function co(e, t, n) {
|
|
3834
3834
|
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);
|
|
3835
3835
|
}
|
|
3836
3836
|
const On = Ft(void 0);
|
|
@@ -3845,21 +3845,21 @@ function yn() {
|
|
|
3845
3845
|
throw new Error("useAudioStoreApi must be used within CRAudioProvider");
|
|
3846
3846
|
return e;
|
|
3847
3847
|
}
|
|
3848
|
-
const
|
|
3849
|
-
run:
|
|
3850
|
-
runWrap:
|
|
3851
|
-
highlight:
|
|
3852
|
-
highlightleft:
|
|
3853
|
-
highlightright:
|
|
3854
|
-
highlightcenter:
|
|
3855
|
-
underline:
|
|
3856
|
-
underlineleft:
|
|
3848
|
+
const zl = "_run_zzb61_3", Al = "_runWrap_zzb61_7", Ll = "_highlight_zzb61_13", Gl = "_highlightleft_zzb61_14", Hl = "_highlightright_zzb61_15", Nl = "_highlightcenter_zzb61_16", Fl = "_underline_zzb61_48", Wl = "_underlineleft_zzb61_49", Dl = "_underlineright_zzb61_50", $l = "_underlinecenter_zzb61_51", ft = {
|
|
3849
|
+
run: zl,
|
|
3850
|
+
runWrap: Al,
|
|
3851
|
+
highlight: Ll,
|
|
3852
|
+
highlightleft: Gl,
|
|
3853
|
+
highlightright: Hl,
|
|
3854
|
+
highlightcenter: Nl,
|
|
3855
|
+
underline: Fl,
|
|
3856
|
+
underlineleft: Wl,
|
|
3857
3857
|
underlineright: Dl,
|
|
3858
|
-
underlinecenter:
|
|
3859
|
-
},
|
|
3858
|
+
underlinecenter: $l
|
|
3859
|
+
}, uo = (e) => Symbol.iterator in e, fo = (e) => (
|
|
3860
3860
|
// HACK: avoid checking entries type
|
|
3861
3861
|
"entries" in e
|
|
3862
|
-
),
|
|
3862
|
+
), po = (e, t) => {
|
|
3863
3863
|
const n = e instanceof Map ? e : new Map(e.entries()), r = t instanceof Map ? t : new Map(t.entries());
|
|
3864
3864
|
if (n.size !== r.size)
|
|
3865
3865
|
return !1;
|
|
@@ -3867,7 +3867,7 @@ const Bl = "_run_zzb61_3", zl = "_runWrap_zzb61_7", Al = "_highlight_zzb61_13",
|
|
|
3867
3867
|
if (!r.has(o) || !Object.is(i, r.get(o)))
|
|
3868
3868
|
return !1;
|
|
3869
3869
|
return !0;
|
|
3870
|
-
},
|
|
3870
|
+
}, Vl = (e, t) => {
|
|
3871
3871
|
const n = e[Symbol.iterator](), r = t[Symbol.iterator]();
|
|
3872
3872
|
let o = n.next(), i = r.next();
|
|
3873
3873
|
for (; !o.done && !i.done; ) {
|
|
@@ -3877,32 +3877,32 @@ const Bl = "_run_zzb61_3", zl = "_runWrap_zzb61_7", Al = "_highlight_zzb61_13",
|
|
|
3877
3877
|
}
|
|
3878
3878
|
return !!o.done && !!i.done;
|
|
3879
3879
|
};
|
|
3880
|
-
function
|
|
3881
|
-
return Object.is(e, t) ? !0 : typeof e != "object" || e === null || typeof t != "object" || t === null || Object.getPrototypeOf(e) !== Object.getPrototypeOf(t) ? !1 :
|
|
3880
|
+
function ql(e, t) {
|
|
3881
|
+
return Object.is(e, t) ? !0 : typeof e != "object" || e === null || typeof t != "object" || t === null || Object.getPrototypeOf(e) !== Object.getPrototypeOf(t) ? !1 : uo(e) && uo(t) ? fo(e) && fo(t) ? po(e, t) : Vl(e, t) : po(
|
|
3882
3882
|
{ entries: () => Object.entries(e) },
|
|
3883
3883
|
{ entries: () => Object.entries(t) }
|
|
3884
3884
|
);
|
|
3885
3885
|
}
|
|
3886
3886
|
function nn(e) {
|
|
3887
|
-
const t =
|
|
3887
|
+
const t = W.useRef(void 0);
|
|
3888
3888
|
return (n) => {
|
|
3889
3889
|
const r = e(n);
|
|
3890
|
-
return
|
|
3890
|
+
return ql(t.current, r) ? t.current : t.current = r;
|
|
3891
3891
|
};
|
|
3892
3892
|
}
|
|
3893
|
-
function
|
|
3893
|
+
function jl(e) {
|
|
3894
3894
|
const t = e.replace("#", ""), n = parseInt(t.length === 3 ? t.repeat(2) : t, 16), r = n >> 16 & 255, o = n >> 8 & 255, i = n & 255;
|
|
3895
3895
|
return { r, g: o, b: i };
|
|
3896
3896
|
}
|
|
3897
|
-
function
|
|
3897
|
+
function Ul(e) {
|
|
3898
3898
|
const t = e.match(/rgba?\((\d+),\s*(\d+),\s*(\d+)/);
|
|
3899
3899
|
return t ? { r: +t[1], g: +t[2], b: +t[3] } : null;
|
|
3900
3900
|
}
|
|
3901
|
-
const
|
|
3901
|
+
const Kl = Object.freeze({
|
|
3902
3902
|
showPointer: void 0,
|
|
3903
3903
|
pointerStyle: void 0,
|
|
3904
3904
|
pointerColor: void 0
|
|
3905
|
-
}),
|
|
3905
|
+
}), Mi = W.memo(
|
|
3906
3906
|
function({ runs: t, ns: n, baseIndex: r, preGroups: o }) {
|
|
3907
3907
|
const i = _e((O) => O.setClipIndex), s = _e((O) => O.seek), c = j((O) => O.setCurrentGlobalRunIndex), l = yn(), a = j((O) => O.rangeStartGI), d = j((O) => O.rangeEndGI), m = j((O) => O.setRange), p = a != null && d != null, b = Q(
|
|
3908
3908
|
(O) => {
|
|
@@ -3965,7 +3965,7 @@ const Ul = Object.freeze({
|
|
|
3965
3965
|
onPointerCancel: R,
|
|
3966
3966
|
onPointerLeave: I,
|
|
3967
3967
|
children: T.map((O, z) => /* @__PURE__ */ x(
|
|
3968
|
-
|
|
3968
|
+
Yl,
|
|
3969
3969
|
{
|
|
3970
3970
|
ns: n,
|
|
3971
3971
|
group: O,
|
|
@@ -3980,7 +3980,7 @@ const Ul = Object.freeze({
|
|
|
3980
3980
|
);
|
|
3981
3981
|
},
|
|
3982
3982
|
(e, t) => e.ns === t.ns && e.baseIndex === t.baseIndex && e.runs === t.runs && e.sectionId === t.sectionId
|
|
3983
|
-
),
|
|
3983
|
+
), Xl = W.memo(function() {
|
|
3984
3984
|
const t = Q((r) => ({
|
|
3985
3985
|
showSplit: r.showSplit,
|
|
3986
3986
|
slash: r.breakMarks.slash,
|
|
@@ -3991,7 +3991,7 @@ const Ul = Object.freeze({
|
|
|
3991
3991
|
n.slash && /* @__PURE__ */ x("span", { children: " / " }),
|
|
3992
3992
|
/* @__PURE__ */ x("span", { style: { display: "inline-block", width: n.breakGapPx / 2 } })
|
|
3993
3993
|
] }) : null;
|
|
3994
|
-
}),
|
|
3994
|
+
}), Yl = W.memo(
|
|
3995
3995
|
function({
|
|
3996
3996
|
ns: t,
|
|
3997
3997
|
group: n,
|
|
@@ -4011,7 +4011,7 @@ const Ul = Object.freeze({
|
|
|
4011
4011
|
showPointer: u.showPointer,
|
|
4012
4012
|
pointerStyle: u.pointerStyle,
|
|
4013
4013
|
pointerColor: u.pointerColor
|
|
4014
|
-
} :
|
|
4014
|
+
} : Kl,
|
|
4015
4015
|
[l]
|
|
4016
4016
|
), d = Y(nn(a)), m = n.r0 ?? 0, p = n.len ?? Math.max(0, n.endG - n.startG + 1), b = l && d.showPointer && d.pointerStyle !== "underline", v = l && d.showPointer && d.pointerStyle === "underline", y = b || v ? {
|
|
4017
4017
|
// 배경색(하이라이트)
|
|
@@ -4024,9 +4024,9 @@ const Ul = Object.freeze({
|
|
|
4024
4024
|
return /* @__PURE__ */ x(yt, { children: Array.from({ length: p }).map((u, f) => {
|
|
4025
4025
|
const C = r[m + f], k = n.startG + f, R = `${t}/run:${k}`, I = !!C.split && k !== o;
|
|
4026
4026
|
let h = `${ft.runWrap}`;
|
|
4027
|
-
return b && (p === 1 ? h += ` ${ft.highlight}` : f === 0 ? h += ` ${ft.highlightleft}` : f + 1 === p ? h += ` ${ft.highlightright}` : h += ` ${ft.highlightcenter}`), v && (p === 1 ? h += ` ${ft.underline}` : f === 0 ? h += ` ${ft.underlineleft}` : f + 1 === p ? h += ` ${ft.underlineright}` : h += ` ${ft.underlinecenter}`), /* @__PURE__ */ Z(
|
|
4027
|
+
return b && (p === 1 ? h += ` ${ft.highlight}` : f === 0 ? h += ` ${ft.highlightleft}` : f + 1 === p ? h += ` ${ft.highlightright}` : h += ` ${ft.highlightcenter}`), v && (p === 1 ? h += ` ${ft.underline}` : f === 0 ? h += ` ${ft.underlineleft}` : f + 1 === p ? h += ` ${ft.underlineright}` : h += ` ${ft.underlinecenter}`), /* @__PURE__ */ Z(W.Fragment, { children: [
|
|
4028
4028
|
/* @__PURE__ */ x("span", { className: h, style: y, children: /* @__PURE__ */ x(
|
|
4029
|
-
|
|
4029
|
+
Ql,
|
|
4030
4030
|
{
|
|
4031
4031
|
gi: n.startG,
|
|
4032
4032
|
g: k,
|
|
@@ -4036,14 +4036,14 @@ const Ul = Object.freeze({
|
|
|
4036
4036
|
isInRange: i != null && s != null && k >= i && k <= s
|
|
4037
4037
|
}
|
|
4038
4038
|
) }),
|
|
4039
|
-
I && /* @__PURE__ */ x(
|
|
4039
|
+
I && /* @__PURE__ */ x(Xl, {})
|
|
4040
4040
|
] }, R);
|
|
4041
4041
|
}) });
|
|
4042
4042
|
},
|
|
4043
4043
|
(e, t) => e.group === t.group && // 그룹 메타 참조 동일
|
|
4044
4044
|
e.runs === t.runs && // 원본 runs 참조 동일
|
|
4045
4045
|
e.ns === t.ns && e.rangeStartGI === t.rangeStartGI && e.rangeEndGI === t.rangeEndGI
|
|
4046
|
-
),
|
|
4046
|
+
), Ql = W.memo(
|
|
4047
4047
|
function({
|
|
4048
4048
|
gi: t,
|
|
4049
4049
|
g: n,
|
|
@@ -4058,7 +4058,7 @@ const Ul = Object.freeze({
|
|
|
4058
4058
|
const a = i.pointerColor;
|
|
4059
4059
|
if (i.pointerStyle !== "underline") {
|
|
4060
4060
|
l.backgroundColor = a;
|
|
4061
|
-
const d = a.startsWith("#") ?
|
|
4061
|
+
const d = a.startsWith("#") ? jl(a) : Ul(a);
|
|
4062
4062
|
d && (0.299 * d.r + 0.587 * d.g + 0.114 * d.b) / 255 < 0.6 && (l.color = "#fff");
|
|
4063
4063
|
}
|
|
4064
4064
|
}
|
|
@@ -4078,7 +4078,7 @@ const Ul = Object.freeze({
|
|
|
4078
4078
|
},
|
|
4079
4079
|
(e, t) => e.g === t.g && e.run === t.run && e.active === t.active && e.pointerCfg === t.pointerCfg && e.isInRange === t.isInRange
|
|
4080
4080
|
);
|
|
4081
|
-
function
|
|
4081
|
+
function Zl({
|
|
4082
4082
|
block: e,
|
|
4083
4083
|
computedMarker: t,
|
|
4084
4084
|
// getClipSrc,
|
|
@@ -4116,7 +4116,7 @@ function Ql({
|
|
|
4116
4116
|
}
|
|
4117
4117
|
) : null,
|
|
4118
4118
|
/* @__PURE__ */ x(
|
|
4119
|
-
|
|
4119
|
+
Mi,
|
|
4120
4120
|
{
|
|
4121
4121
|
preGroups: i,
|
|
4122
4122
|
runs: e.runs,
|
|
@@ -4129,9 +4129,9 @@ function Ql({
|
|
|
4129
4129
|
}
|
|
4130
4130
|
);
|
|
4131
4131
|
}
|
|
4132
|
-
const
|
|
4132
|
+
const Jl = W.memo(Zl, (e, t) => e.block === t.block && // block 참조 안정화 중요
|
|
4133
4133
|
e.computedMarker === t.computedMarker && e.baseIndex === t.baseIndex && e.ns === t.ns);
|
|
4134
|
-
function
|
|
4134
|
+
function ea(e, t) {
|
|
4135
4135
|
switch ((t || "decimal").toLowerCase().replace(/[\s_-]+/g, "")) {
|
|
4136
4136
|
case "decimal":
|
|
4137
4137
|
return String(e);
|
|
@@ -4139,24 +4139,24 @@ function Jl(e, t) {
|
|
|
4139
4139
|
return e < 10 ? `0${e}` : String(e);
|
|
4140
4140
|
case "loweralpha":
|
|
4141
4141
|
case "lowerlatin":
|
|
4142
|
-
return
|
|
4142
|
+
return go(e, !1);
|
|
4143
4143
|
case "upperalpha":
|
|
4144
4144
|
case "upperlatin":
|
|
4145
|
-
return
|
|
4145
|
+
return go(e, !0);
|
|
4146
4146
|
case "lowerroman":
|
|
4147
|
-
return
|
|
4147
|
+
return ho(e, !1);
|
|
4148
4148
|
case "upperroman":
|
|
4149
|
-
return
|
|
4149
|
+
return ho(e, !0);
|
|
4150
4150
|
case "decimalenclosedcircle":
|
|
4151
|
-
return
|
|
4151
|
+
return ta(e);
|
|
4152
4152
|
default:
|
|
4153
4153
|
return String(e);
|
|
4154
4154
|
}
|
|
4155
4155
|
}
|
|
4156
|
-
function
|
|
4156
|
+
function ta(e) {
|
|
4157
4157
|
return e >= 1 && e <= 20 ? String.fromCharCode(9312 + (e - 1)) : `(${e})`;
|
|
4158
4158
|
}
|
|
4159
|
-
function
|
|
4159
|
+
function ho(e, t = !0) {
|
|
4160
4160
|
if (e <= 0) return "";
|
|
4161
4161
|
const n = [
|
|
4162
4162
|
[1e3, "M"],
|
|
@@ -4179,13 +4179,13 @@ function po(e, t = !0) {
|
|
|
4179
4179
|
o += s, r -= i;
|
|
4180
4180
|
return t ? o : o.toLowerCase();
|
|
4181
4181
|
}
|
|
4182
|
-
function
|
|
4182
|
+
function go(e, t = !1) {
|
|
4183
4183
|
let n = e, r = "";
|
|
4184
4184
|
for (; n > 0; )
|
|
4185
4185
|
n--, r = String.fromCharCode(97 + n % 26) + r, n = Math.floor(n / 26);
|
|
4186
4186
|
return t ? r.toUpperCase() : r;
|
|
4187
4187
|
}
|
|
4188
|
-
function
|
|
4188
|
+
function Pr(e) {
|
|
4189
4189
|
const t = /* @__PURE__ */ new Map();
|
|
4190
4190
|
return {
|
|
4191
4191
|
next(n, r) {
|
|
@@ -4197,21 +4197,21 @@ function Or(e) {
|
|
|
4197
4197
|
}
|
|
4198
4198
|
};
|
|
4199
4199
|
}
|
|
4200
|
-
function
|
|
4200
|
+
function Br(e, t) {
|
|
4201
4201
|
const n = e.list;
|
|
4202
4202
|
if (!n || n.kind !== "ordered") return;
|
|
4203
|
-
const r = t.next(n.numId ?? 0, n.level), o =
|
|
4203
|
+
const r = t.next(n.numId ?? 0, n.level), o = ea(r, n.format), i = (n.format || "").toLowerCase();
|
|
4204
4204
|
return !/enclosed|paren/.test(i) && i !== "decimalleadingzero" ? `${o}.` : o;
|
|
4205
4205
|
}
|
|
4206
|
-
function
|
|
4206
|
+
function na(e) {
|
|
4207
4207
|
return e.map((t) => t.type === "image" ? 0 : t.runs.length);
|
|
4208
4208
|
}
|
|
4209
|
-
function
|
|
4209
|
+
function ra(e) {
|
|
4210
4210
|
const t = new Array(e.length + 1).fill(0);
|
|
4211
4211
|
for (let n = 0; n < e.length; n++) t[n + 1] = t[n] + e[n];
|
|
4212
4212
|
return t;
|
|
4213
4213
|
}
|
|
4214
|
-
function
|
|
4214
|
+
function oa(e, t) {
|
|
4215
4215
|
const n = [];
|
|
4216
4216
|
if (!e.length) return n;
|
|
4217
4217
|
const r = (o, i, s) => {
|
|
@@ -4234,20 +4234,20 @@ function ra(e, t) {
|
|
|
4234
4234
|
}
|
|
4235
4235
|
return n;
|
|
4236
4236
|
}
|
|
4237
|
-
const
|
|
4238
|
-
scroller:
|
|
4239
|
-
},
|
|
4237
|
+
const ia = "_scroller_kqkmq_3", sa = {
|
|
4238
|
+
scroller: ia
|
|
4239
|
+
}, la = W.forwardRef(function({ className: t, style: n, ...r }, o) {
|
|
4240
4240
|
return /* @__PURE__ */ x(
|
|
4241
4241
|
"div",
|
|
4242
4242
|
{
|
|
4243
4243
|
ref: o,
|
|
4244
|
-
className: `${
|
|
4244
|
+
className: `${sa.scroller}${t ? " " + t : ""}`,
|
|
4245
4245
|
style: n,
|
|
4246
4246
|
...r
|
|
4247
4247
|
}
|
|
4248
4248
|
);
|
|
4249
|
-
}),
|
|
4250
|
-
function
|
|
4249
|
+
}), br = (e) => /[가-힣a-zA-Z0-9]/.test(e), aa = (e) => ((e == null ? void 0 : e.textContent) ?? "").trim(), xn = (e, t) => e.querySelector(`[data-g="${t}"]`);
|
|
4250
|
+
function ca(e, t = 12, n = 1.5, r = 0.5) {
|
|
4251
4251
|
if (!e) return -1;
|
|
4252
4252
|
const o = e.getBoundingClientRect(), i = o.top + t;
|
|
4253
4253
|
let s = -1, c = 1 / 0, l = 1 / 0, a = -1, d = 1 / 0, m = 1 / 0;
|
|
@@ -4255,8 +4255,8 @@ function aa(e, t = 12, n = 1.5, r = 0.5) {
|
|
|
4255
4255
|
for (let b = 0; b < p.length; b++) {
|
|
4256
4256
|
const v = p[b];
|
|
4257
4257
|
if (!v || !v.isConnected) continue;
|
|
4258
|
-
const y =
|
|
4259
|
-
if (!y || !
|
|
4258
|
+
const y = aa(v);
|
|
4259
|
+
if (!y || !br(y)) continue;
|
|
4260
4260
|
const u = v.getBoundingClientRect();
|
|
4261
4261
|
if (u.height <= r || u.width <= r || u.bottom <= o.top || u.top >= o.bottom) continue;
|
|
4262
4262
|
if (u.top < i) {
|
|
@@ -4272,7 +4272,7 @@ function aa(e, t = 12, n = 1.5, r = 0.5) {
|
|
|
4272
4272
|
}
|
|
4273
4273
|
return s !== -1 ? s : a;
|
|
4274
4274
|
}
|
|
4275
|
-
const
|
|
4275
|
+
const Ei = async (e, t, { timeoutMs: n = 1200, intervalMs: r = 16 } = {}) => {
|
|
4276
4276
|
const o = performance.now();
|
|
4277
4277
|
let i = xn(e, t);
|
|
4278
4278
|
for (; !i; ) {
|
|
@@ -4280,7 +4280,7 @@ const Mi = async (e, t, { timeoutMs: n = 1200, intervalMs: r = 16 } = {}) => {
|
|
|
4280
4280
|
await new Promise((s) => setTimeout(s, r)), i = xn(e, t);
|
|
4281
4281
|
}
|
|
4282
4282
|
return i;
|
|
4283
|
-
},
|
|
4283
|
+
}, mo = (e) => {
|
|
4284
4284
|
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]"));
|
|
4285
4285
|
let i = Number.POSITIVE_INFINITY, s = Number.NEGATIVE_INFINITY;
|
|
4286
4286
|
for (const c of o) {
|
|
@@ -4290,13 +4290,13 @@ const Mi = async (e, t, { timeoutMs: n = 1200, intervalMs: r = 16 } = {}) => {
|
|
|
4290
4290
|
Number.isNaN(a) || (a < i && (i = a), a > s && (s = a));
|
|
4291
4291
|
}
|
|
4292
4292
|
return !Number.isFinite(i) || !Number.isFinite(s) ? null : { first: i, last: s };
|
|
4293
|
-
},
|
|
4293
|
+
}, ua = (e, t, { topPaddingRatio: n = 0.15, behavior: r = "auto" } = {}) => {
|
|
4294
4294
|
const o = xn(e, t);
|
|
4295
4295
|
if (!o) return !1;
|
|
4296
4296
|
const i = e.getBoundingClientRect(), s = o.getBoundingClientRect(), c = i.height * n, l = s.top - (i.top + c);
|
|
4297
4297
|
return e.scrollTo({ top: e.scrollTop + l, behavior: r }), !0;
|
|
4298
4298
|
};
|
|
4299
|
-
function
|
|
4299
|
+
function da(e, t = 120) {
|
|
4300
4300
|
return new Promise((n) => {
|
|
4301
4301
|
let r = null;
|
|
4302
4302
|
const o = () => {
|
|
@@ -4308,8 +4308,8 @@ function ua(e, t = 120) {
|
|
|
4308
4308
|
});
|
|
4309
4309
|
}
|
|
4310
4310
|
const qn = async (e, t, { topPaddingRatio: n = 0.15, behavior: r = "smooth", quietMs: o = 120 } = {}) => {
|
|
4311
|
-
if (!
|
|
4312
|
-
await
|
|
4311
|
+
if (!ua(e, t, { topPaddingRatio: n, behavior: r })) return !1;
|
|
4312
|
+
await da(e, o);
|
|
4313
4313
|
const s = xn(e, t);
|
|
4314
4314
|
if (!s) return !1;
|
|
4315
4315
|
const c = e.getBoundingClientRect(), l = s.getBoundingClientRect(), a = c.height * n, d = c.top + a, m = l.top - d;
|
|
@@ -4318,21 +4318,21 @@ const qn = async (e, t, { topPaddingRatio: n = 0.15, behavior: r = "smooth", qui
|
|
|
4318
4318
|
requestAnimationFrame(() => {
|
|
4319
4319
|
requestAnimationFrame(() => e());
|
|
4320
4320
|
});
|
|
4321
|
-
}),
|
|
4322
|
-
function
|
|
4323
|
-
const e = Ue(
|
|
4321
|
+
}), zr = Ft(null);
|
|
4322
|
+
function Oi() {
|
|
4323
|
+
const e = Ue(zr);
|
|
4324
4324
|
if (!e)
|
|
4325
4325
|
throw new Error("useQuizStoreApi must be used within QuizProgressProvider");
|
|
4326
4326
|
return e;
|
|
4327
4327
|
}
|
|
4328
|
-
function
|
|
4329
|
-
const n = Ue(
|
|
4328
|
+
function at(e, t) {
|
|
4329
|
+
const n = Ue(zr);
|
|
4330
4330
|
if (!n)
|
|
4331
4331
|
throw new Error("useQuizStore must be used within QuizProgressProvider");
|
|
4332
4332
|
return Tn(n, e, t);
|
|
4333
4333
|
}
|
|
4334
|
-
const
|
|
4335
|
-
const e = j((r) => r.section), t =
|
|
4334
|
+
const Pi = () => {
|
|
4335
|
+
const e = j((r) => r.section), t = Oi(), n = e.quizzes;
|
|
4336
4336
|
return !n || !n.length ? null : /* @__PURE__ */ Z(
|
|
4337
4337
|
"button",
|
|
4338
4338
|
{
|
|
@@ -4360,21 +4360,21 @@ const Oi = () => {
|
|
|
4360
4360
|
]
|
|
4361
4361
|
}
|
|
4362
4362
|
);
|
|
4363
|
-
},
|
|
4364
|
-
navBtn:
|
|
4365
|
-
disabled:
|
|
4366
|
-
label:
|
|
4363
|
+
}, fa = "_navBtn_1fciy_2", pa = "_disabled_1fciy_26", ha = "_label_1fciy_32", Nt = {
|
|
4364
|
+
navBtn: fa,
|
|
4365
|
+
disabled: pa,
|
|
4366
|
+
label: ha
|
|
4367
4367
|
};
|
|
4368
|
-
var
|
|
4368
|
+
var Bi = {
|
|
4369
4369
|
color: void 0,
|
|
4370
4370
|
size: void 0,
|
|
4371
4371
|
className: void 0,
|
|
4372
4372
|
style: void 0,
|
|
4373
4373
|
attr: void 0
|
|
4374
|
-
},
|
|
4375
|
-
function
|
|
4374
|
+
}, bo = W.createContext && /* @__PURE__ */ W.createContext(Bi), ga = ["attr", "size", "title"];
|
|
4375
|
+
function ma(e, t) {
|
|
4376
4376
|
if (e == null) return {};
|
|
4377
|
-
var n =
|
|
4377
|
+
var n = ba(e, t), r, o;
|
|
4378
4378
|
if (Object.getOwnPropertySymbols) {
|
|
4379
4379
|
var i = Object.getOwnPropertySymbols(e);
|
|
4380
4380
|
for (o = 0; o < i.length; o++)
|
|
@@ -4382,7 +4382,7 @@ function ga(e, t) {
|
|
|
4382
4382
|
}
|
|
4383
4383
|
return n;
|
|
4384
4384
|
}
|
|
4385
|
-
function
|
|
4385
|
+
function ba(e, t) {
|
|
4386
4386
|
if (e == null) return {};
|
|
4387
4387
|
var n = {};
|
|
4388
4388
|
for (var r in e)
|
|
@@ -4402,7 +4402,7 @@ function wn() {
|
|
|
4402
4402
|
return e;
|
|
4403
4403
|
}, wn.apply(this, arguments);
|
|
4404
4404
|
}
|
|
4405
|
-
function
|
|
4405
|
+
function vo(e, t) {
|
|
4406
4406
|
var n = Object.keys(e);
|
|
4407
4407
|
if (Object.getOwnPropertySymbols) {
|
|
4408
4408
|
var r = Object.getOwnPropertySymbols(e);
|
|
@@ -4415,22 +4415,22 @@ function bo(e, t) {
|
|
|
4415
4415
|
function In(e) {
|
|
4416
4416
|
for (var t = 1; t < arguments.length; t++) {
|
|
4417
4417
|
var n = arguments[t] != null ? arguments[t] : {};
|
|
4418
|
-
t % 2 ?
|
|
4419
|
-
|
|
4420
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) :
|
|
4418
|
+
t % 2 ? vo(Object(n), !0).forEach(function(r) {
|
|
4419
|
+
va(e, r, n[r]);
|
|
4420
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : vo(Object(n)).forEach(function(r) {
|
|
4421
4421
|
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r));
|
|
4422
4422
|
});
|
|
4423
4423
|
}
|
|
4424
4424
|
return e;
|
|
4425
4425
|
}
|
|
4426
|
-
function
|
|
4427
|
-
return t =
|
|
4426
|
+
function va(e, t, n) {
|
|
4427
|
+
return t = Sa(t), t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
|
|
4428
4428
|
}
|
|
4429
|
-
function
|
|
4430
|
-
var t =
|
|
4429
|
+
function Sa(e) {
|
|
4430
|
+
var t = ya(e, "string");
|
|
4431
4431
|
return typeof t == "symbol" ? t : t + "";
|
|
4432
4432
|
}
|
|
4433
|
-
function
|
|
4433
|
+
function ya(e, t) {
|
|
4434
4434
|
if (typeof e != "object" || !e) return e;
|
|
4435
4435
|
var n = e[Symbol.toPrimitive];
|
|
4436
4436
|
if (n !== void 0) {
|
|
@@ -4440,24 +4440,24 @@ function Sa(e, t) {
|
|
|
4440
4440
|
}
|
|
4441
4441
|
return (t === "string" ? String : Number)(e);
|
|
4442
4442
|
}
|
|
4443
|
-
function
|
|
4444
|
-
return e && e.map((t, n) => /* @__PURE__ */
|
|
4443
|
+
function zi(e) {
|
|
4444
|
+
return e && e.map((t, n) => /* @__PURE__ */ W.createElement(t.tag, In({
|
|
4445
4445
|
key: n
|
|
4446
|
-
}, t.attr),
|
|
4446
|
+
}, t.attr), zi(t.child)));
|
|
4447
4447
|
}
|
|
4448
|
-
function
|
|
4449
|
-
return (t) => /* @__PURE__ */
|
|
4448
|
+
function it(e) {
|
|
4449
|
+
return (t) => /* @__PURE__ */ W.createElement(xa, wn({
|
|
4450
4450
|
attr: In({}, e.attr)
|
|
4451
|
-
}, t),
|
|
4451
|
+
}, t), zi(e.child));
|
|
4452
4452
|
}
|
|
4453
|
-
function
|
|
4453
|
+
function xa(e) {
|
|
4454
4454
|
var t = (n) => {
|
|
4455
4455
|
var {
|
|
4456
4456
|
attr: r,
|
|
4457
4457
|
size: o,
|
|
4458
4458
|
title: i
|
|
4459
|
-
} = e, s =
|
|
4460
|
-
return n.className && (l = n.className), e.className && (l = (l ? l + " " : "") + e.className), /* @__PURE__ */
|
|
4459
|
+
} = e, s = ma(e, ga), c = o || n.size || "1em", l;
|
|
4460
|
+
return n.className && (l = n.className), e.className && (l = (l ? l + " " : "") + e.className), /* @__PURE__ */ W.createElement("svg", wn({
|
|
4461
4461
|
stroke: "currentColor",
|
|
4462
4462
|
fill: "currentColor",
|
|
4463
4463
|
strokeWidth: "0"
|
|
@@ -4469,17 +4469,17 @@ function ya(e) {
|
|
|
4469
4469
|
height: c,
|
|
4470
4470
|
width: c,
|
|
4471
4471
|
xmlns: "http://www.w3.org/2000/svg"
|
|
4472
|
-
}), i && /* @__PURE__ */
|
|
4472
|
+
}), i && /* @__PURE__ */ W.createElement("title", null, i), e.children);
|
|
4473
4473
|
};
|
|
4474
|
-
return
|
|
4475
|
-
}
|
|
4476
|
-
function vo(e) {
|
|
4477
|
-
return ot({ 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);
|
|
4474
|
+
return bo !== void 0 ? /* @__PURE__ */ W.createElement(bo.Consumer, null, (n) => t(n)) : t(Bi);
|
|
4478
4475
|
}
|
|
4479
4476
|
function So(e) {
|
|
4480
|
-
return
|
|
4477
|
+
return it({ 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);
|
|
4478
|
+
}
|
|
4479
|
+
function yo(e) {
|
|
4480
|
+
return it({ 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);
|
|
4481
4481
|
}
|
|
4482
|
-
const
|
|
4482
|
+
const wa = ({ isIcon: e = !0 }) => {
|
|
4483
4483
|
const t = j((s) => s.isCanPrev), n = j((s) => s.onSectionNav), r = !t, o = Q(
|
|
4484
4484
|
(s) => {
|
|
4485
4485
|
s.stopPropagation(), s.preventDefault(), t && (n == null || n("prev"));
|
|
@@ -4499,7 +4499,7 @@ const xa = ({ isIcon: e = !0 }) => {
|
|
|
4499
4499
|
(s.key === "Enter" || s.key === " ") && o(s);
|
|
4500
4500
|
},
|
|
4501
4501
|
children: [
|
|
4502
|
-
/* @__PURE__ */ x(
|
|
4502
|
+
/* @__PURE__ */ x(So, { size: 18 }),
|
|
4503
4503
|
/* @__PURE__ */ x("span", { className: Nt.label, children: "이전" })
|
|
4504
4504
|
]
|
|
4505
4505
|
}
|
|
@@ -4529,7 +4529,7 @@ const xa = ({ isIcon: e = !0 }) => {
|
|
|
4529
4529
|
},
|
|
4530
4530
|
children: r ? "첫섹션입니다" : /* @__PURE__ */ Z(yt, { children: [
|
|
4531
4531
|
/* @__PURE__ */ x(
|
|
4532
|
-
|
|
4532
|
+
So,
|
|
4533
4533
|
{
|
|
4534
4534
|
size: 18,
|
|
4535
4535
|
style: {
|
|
@@ -4563,7 +4563,7 @@ const xa = ({ isIcon: e = !0 }) => {
|
|
|
4563
4563
|
(s.key === "Enter" || s.key === " ") && o(s);
|
|
4564
4564
|
},
|
|
4565
4565
|
children: [
|
|
4566
|
-
/* @__PURE__ */ x(
|
|
4566
|
+
/* @__PURE__ */ x(yo, { size: 18 }),
|
|
4567
4567
|
/* @__PURE__ */ x("span", { className: Nt.label, children: "다음" })
|
|
4568
4568
|
]
|
|
4569
4569
|
}
|
|
@@ -4594,7 +4594,7 @@ const xa = ({ isIcon: e = !0 }) => {
|
|
|
4594
4594
|
children: r ? "마지막섹션입니다" : /* @__PURE__ */ Z(yt, { children: [
|
|
4595
4595
|
"NextSection",
|
|
4596
4596
|
/* @__PURE__ */ x(
|
|
4597
|
-
|
|
4597
|
+
yo,
|
|
4598
4598
|
{
|
|
4599
4599
|
size: 18,
|
|
4600
4600
|
style: {
|
|
@@ -4608,7 +4608,7 @@ const xa = ({ isIcon: e = !0 }) => {
|
|
|
4608
4608
|
}
|
|
4609
4609
|
);
|
|
4610
4610
|
};
|
|
4611
|
-
function
|
|
4611
|
+
function Ai(e, t) {
|
|
4612
4612
|
let n = 0, r = e.length - 1;
|
|
4613
4613
|
for (; n < r; ) {
|
|
4614
4614
|
const o = Math.floor((n + r + 1) / 2);
|
|
@@ -4616,15 +4616,15 @@ function zi(e, t) {
|
|
|
4616
4616
|
}
|
|
4617
4617
|
return n;
|
|
4618
4618
|
}
|
|
4619
|
-
function
|
|
4619
|
+
function Ia({
|
|
4620
4620
|
section: e,
|
|
4621
4621
|
blocks: t,
|
|
4622
4622
|
nsPrefix: n
|
|
4623
4623
|
}) {
|
|
4624
4624
|
const r = ve(() => {
|
|
4625
|
-
const T = [], E =
|
|
4625
|
+
const T = [], E = Pr();
|
|
4626
4626
|
return t.forEach((O, z) => {
|
|
4627
|
-
O.type === "paragraph" && (T[z] =
|
|
4627
|
+
O.type === "paragraph" && (T[z] = Br(O, E));
|
|
4628
4628
|
}), T;
|
|
4629
4629
|
}, [t]), o = j((T) => {
|
|
4630
4630
|
var E;
|
|
@@ -4682,7 +4682,7 @@ function wa({
|
|
|
4682
4682
|
display: "flex"
|
|
4683
4683
|
},
|
|
4684
4684
|
children: /* @__PURE__ */ x(
|
|
4685
|
-
|
|
4685
|
+
Jl,
|
|
4686
4686
|
{
|
|
4687
4687
|
block: E,
|
|
4688
4688
|
computedMarker: z,
|
|
@@ -4699,7 +4699,7 @@ function wa({
|
|
|
4699
4699
|
), d = ie(null), m = Q((T) => {
|
|
4700
4700
|
d.current = T;
|
|
4701
4701
|
}, []), p = ve(
|
|
4702
|
-
() =>
|
|
4702
|
+
() => Wt((T) => {
|
|
4703
4703
|
const { style: E, children: O, ...z } = T;
|
|
4704
4704
|
return /* @__PURE__ */ x("div", { ...z, style: E, children: /* @__PURE__ */ x(
|
|
4705
4705
|
"div",
|
|
@@ -4720,7 +4720,7 @@ function wa({
|
|
|
4720
4720
|
) });
|
|
4721
4721
|
}),
|
|
4722
4722
|
[s]
|
|
4723
|
-
), b = ie(null), v = ve(() => t.map((T) => T.id), [t]), [y, u] =
|
|
4723
|
+
), b = ie(null), v = ve(() => t.map((T) => T.id), [t]), [y, u] = nt(!1);
|
|
4724
4724
|
Se(() => {
|
|
4725
4725
|
u(!1);
|
|
4726
4726
|
}, [t]);
|
|
@@ -4731,7 +4731,7 @@ function wa({
|
|
|
4731
4731
|
return /* @__PURE__ */ x("div", { style: { height: 40 } });
|
|
4732
4732
|
const T = e.quizzes, E = Math.max(80, Math.floor(c * 0.5));
|
|
4733
4733
|
return T && T.length ? /* @__PURE__ */ Z("div", { style: { display: "block" }, children: [
|
|
4734
|
-
/* @__PURE__ */ x("div", { style: { display: "flex", justifyContent: "center", marginTop: 20 }, children: /* @__PURE__ */ x(
|
|
4734
|
+
/* @__PURE__ */ x("div", { style: { display: "flex", justifyContent: "center", marginTop: 20 }, children: /* @__PURE__ */ x(Pi, {}) }),
|
|
4735
4735
|
/* @__PURE__ */ x("div", { style: { display: "flex", justifyContent: "center", marginTop: 20 }, children: /* @__PURE__ */ x(Cn, { isIcon: !1 }) }),
|
|
4736
4736
|
/* @__PURE__ */ x("div", { style: { height: E, width: "100%" } })
|
|
4737
4737
|
] }) : /* @__PURE__ */ Z("div", { children: [
|
|
@@ -4743,7 +4743,7 @@ function wa({
|
|
|
4743
4743
|
Item: p,
|
|
4744
4744
|
Header: () => /* @__PURE__ */ x("div", { style: { height: 40 } }),
|
|
4745
4745
|
Footer: g,
|
|
4746
|
-
Scroller:
|
|
4746
|
+
Scroller: la
|
|
4747
4747
|
// ScrollSeekPlaceholder: ScrollPlaceholder, // ✅ 정확한 키
|
|
4748
4748
|
}),
|
|
4749
4749
|
[
|
|
@@ -4752,10 +4752,10 @@ function wa({
|
|
|
4752
4752
|
// , ScrollPlaceholder
|
|
4753
4753
|
]
|
|
4754
4754
|
// CustomScroller는 고정이면 deps에 안 넣어도 OK
|
|
4755
|
-
), k = Q((T) => v[T], [v]), R = Rt(), [I] =
|
|
4755
|
+
), k = Q((T) => v[T], [v]), R = Rt(), [I] = nt(() => R.getState().progress.currentGlobalRunIndex ?? 0), h = ve(() => {
|
|
4756
4756
|
if (!o.length) return 0;
|
|
4757
4757
|
const T = o[o.length - 1], E = Math.max(0, Math.min(I, T));
|
|
4758
|
-
return
|
|
4758
|
+
return Ai(o, E);
|
|
4759
4759
|
}, [o, I]);
|
|
4760
4760
|
console.log("SectionRenderVirtuoso확인");
|
|
4761
4761
|
const S = Rt();
|
|
@@ -4771,13 +4771,13 @@ function wa({
|
|
|
4771
4771
|
if (!E) return;
|
|
4772
4772
|
}
|
|
4773
4773
|
const O = S.getState().progress.currentGlobalRunIndex, z = S.getState().progress.setSectionLoading, w = O != null && O >= 0 ? O : 0;
|
|
4774
|
-
await
|
|
4774
|
+
await Ei(E, w), !T && (await vt(), await vt(), await vt(), await vt(), !T && z(!1));
|
|
4775
4775
|
})(), () => {
|
|
4776
4776
|
T = !0;
|
|
4777
4777
|
};
|
|
4778
4778
|
}, [d, S]), /* @__PURE__ */ Z(yt, { children: [
|
|
4779
4779
|
/* @__PURE__ */ x(
|
|
4780
|
-
|
|
4780
|
+
vl,
|
|
4781
4781
|
{
|
|
4782
4782
|
ref: b,
|
|
4783
4783
|
style: {
|
|
@@ -4799,7 +4799,7 @@ function wa({
|
|
|
4799
4799
|
}
|
|
4800
4800
|
),
|
|
4801
4801
|
/* @__PURE__ */ x(
|
|
4802
|
-
|
|
4802
|
+
Ca,
|
|
4803
4803
|
{
|
|
4804
4804
|
scrollContainerRef: d,
|
|
4805
4805
|
virtRef: b,
|
|
@@ -4808,7 +4808,7 @@ function wa({
|
|
|
4808
4808
|
)
|
|
4809
4809
|
] });
|
|
4810
4810
|
}
|
|
4811
|
-
const
|
|
4811
|
+
const Ca = ({
|
|
4812
4812
|
scrollContainerRef: e,
|
|
4813
4813
|
virtRef: t,
|
|
4814
4814
|
prefix: n
|
|
@@ -4818,7 +4818,7 @@ const Ia = ({
|
|
|
4818
4818
|
d.current = null;
|
|
4819
4819
|
const w = m.current;
|
|
4820
4820
|
if (!w) return;
|
|
4821
|
-
const _ =
|
|
4821
|
+
const _ = ca(w, 5);
|
|
4822
4822
|
_ !== -1 && _ !== b.current && (b.current = _, c(_), r(_, "scroll"));
|
|
4823
4823
|
}, [s, c, r]), y = Q(
|
|
4824
4824
|
(w) => {
|
|
@@ -4891,7 +4891,7 @@ const Ia = ({
|
|
|
4891
4891
|
}), S = ie(!1), T = Q(() => {
|
|
4892
4892
|
const w = e.current;
|
|
4893
4893
|
if (!w) return;
|
|
4894
|
-
const _ =
|
|
4894
|
+
const _ = mo(w), P = (_ == null ? void 0 : _.first) ?? -1, G = (_ == null ? void 0 : _.last) ?? -1;
|
|
4895
4895
|
h.current = { first: P, last: G };
|
|
4896
4896
|
}, [e]), E = ie(!1), O = Q(() => {
|
|
4897
4897
|
const w = e.current;
|
|
@@ -4981,12 +4981,12 @@ const Ia = ({
|
|
|
4981
4981
|
});
|
|
4982
4982
|
}, M = async (ee, X = "smooth") => {
|
|
4983
4983
|
var K;
|
|
4984
|
-
const A =
|
|
4984
|
+
const A = Ai(n, ee);
|
|
4985
4985
|
(K = t.current) == null || K.scrollToIndex({
|
|
4986
4986
|
index: A,
|
|
4987
4987
|
align: "start",
|
|
4988
4988
|
behavior: P(X)
|
|
4989
|
-
}), await
|
|
4989
|
+
}), await Ei(w, ee);
|
|
4990
4990
|
}, B = () => new Promise((ee) => requestAnimationFrame(() => ee())), F = async (ee) => {
|
|
4991
4991
|
if (_(w, ee, 0.1, 0.7))
|
|
4992
4992
|
return G(ee), !0;
|
|
@@ -5006,7 +5006,7 @@ const Ia = ({
|
|
|
5006
5006
|
return {
|
|
5007
5007
|
ensureVisibleGI: F,
|
|
5008
5008
|
scrollToGI: V,
|
|
5009
|
-
getVisibleRange: () =>
|
|
5009
|
+
getVisibleRange: () => mo(w),
|
|
5010
5010
|
getScrollTop: () => w.scrollTop,
|
|
5011
5011
|
setScrollTop: (ee) => {
|
|
5012
5012
|
w.scrollTop = ee;
|
|
@@ -5028,14 +5028,14 @@ const Ia = ({
|
|
|
5028
5028
|
}, [e, t, n, l]);
|
|
5029
5029
|
return Se(() => (console.log("@@@@@빌드스크롤api"), o(z()), () => o(void 0)), [z, o]), null;
|
|
5030
5030
|
};
|
|
5031
|
-
function
|
|
5031
|
+
function Ta(e) {
|
|
5032
5032
|
var r, o;
|
|
5033
5033
|
const t = e;
|
|
5034
5034
|
if (!t) return !1;
|
|
5035
5035
|
const n = ((o = (r = t.tagName) == null ? void 0 : r.toLowerCase) == null ? void 0 : o.call(r)) ?? "";
|
|
5036
5036
|
return !!(["a", "button", "input", "textarea", "select", "label"].includes(n) || t.isContentEditable);
|
|
5037
5037
|
}
|
|
5038
|
-
function
|
|
5038
|
+
function ka() {
|
|
5039
5039
|
const e = j((v) => v.section), t = Y((v) => v.theme), n = Y((v) => v.fontFamily), r = Y((v) => v.fontSizePx), o = Y((v) => v.lineHeight), i = bn[t], { blocks: s, nsPrefix: c } = ve(() => ({
|
|
5040
5040
|
sectionId: e.section_id,
|
|
5041
5041
|
blocks: e.ast.blocks,
|
|
@@ -5043,12 +5043,12 @@ function Ta() {
|
|
|
5043
5043
|
}), [e]), l = kn(), a = Q(() => {
|
|
5044
5044
|
const { isSettingsOpen: v, setSettingsOpen: y, toggleOverlays: u } = l.getState();
|
|
5045
5045
|
v ? y(!1) : u();
|
|
5046
|
-
}, [l]), { onClick: d, onDoubleClick: m } =
|
|
5046
|
+
}, [l]), { onClick: d, onDoubleClick: m } = ss({
|
|
5047
5047
|
onSingle: a,
|
|
5048
5048
|
onDouble: () => {
|
|
5049
5049
|
},
|
|
5050
5050
|
delay: 250,
|
|
5051
|
-
shouldIgnoreTarget:
|
|
5051
|
+
shouldIgnoreTarget: Ta
|
|
5052
5052
|
}), p = ve(
|
|
5053
5053
|
() => ({
|
|
5054
5054
|
flex: 1,
|
|
@@ -5067,41 +5067,41 @@ function Ta() {
|
|
|
5067
5067
|
() => ({ margin: "0 auto", width: "100%", height: "100%" }),
|
|
5068
5068
|
[]
|
|
5069
5069
|
);
|
|
5070
|
-
return console.log("ScrollSectionWrap render"), /* @__PURE__ */ x("div", { onClick: d, onDoubleClick: m, style: p, children: /* @__PURE__ */ x("div", { style: b, children: /* @__PURE__ */ x(
|
|
5071
|
-
}
|
|
5072
|
-
function ka(e) {
|
|
5073
|
-
return ot({ attr: { viewBox: "0 0 20 20", fill: "currentColor", "aria-hidden": "true" }, child: [{ tag: "path", attr: { fillRule: "evenodd", d: "M9.383 3.076A1 1 0 0110 4v12a1 1 0 01-1.707.707L4.586 13H2a1 1 0 01-1-1V8a1 1 0 011-1h2.586l3.707-3.707a1 1 0 011.09-.217zM12.293 7.293a1 1 0 011.414 0L15 8.586l1.293-1.293a1 1 0 111.414 1.414L16.414 10l1.293 1.293a1 1 0 01-1.414 1.414L15 11.414l-1.293 1.293a1 1 0 01-1.414-1.414L13.586 10l-1.293-1.293a1 1 0 010-1.414z", clipRule: "evenodd" }, child: [] }] })(e);
|
|
5070
|
+
return console.log("ScrollSectionWrap render"), /* @__PURE__ */ x("div", { onClick: d, onDoubleClick: m, style: p, children: /* @__PURE__ */ x("div", { style: b, children: /* @__PURE__ */ x(Ia, { section: e, blocks: s, nsPrefix: c }) }) });
|
|
5074
5071
|
}
|
|
5075
5072
|
function Ra(e) {
|
|
5076
|
-
return
|
|
5073
|
+
return it({ attr: { viewBox: "0 0 20 20", fill: "currentColor", "aria-hidden": "true" }, child: [{ tag: "path", attr: { fillRule: "evenodd", d: "M9.383 3.076A1 1 0 0110 4v12a1 1 0 01-1.707.707L4.586 13H2a1 1 0 01-1-1V8a1 1 0 011-1h2.586l3.707-3.707a1 1 0 011.09-.217zM12.293 7.293a1 1 0 011.414 0L15 8.586l1.293-1.293a1 1 0 111.414 1.414L16.414 10l1.293 1.293a1 1 0 01-1.414 1.414L15 11.414l-1.293 1.293a1 1 0 01-1.414-1.414L13.586 10l-1.293-1.293a1 1 0 010-1.414z", clipRule: "evenodd" }, child: [] }] })(e);
|
|
5077
5074
|
}
|
|
5078
5075
|
function _a(e) {
|
|
5079
|
-
return
|
|
5076
|
+
return it({ attr: { viewBox: "0 0 20 20", fill: "currentColor", "aria-hidden": "true" }, child: [{ tag: "path", attr: { fillRule: "evenodd", d: "M9.383 3.076A1 1 0 0110 4v12a1 1 0 01-1.707.707L4.586 13H2a1 1 0 01-1-1V8a1 1 0 011-1h2.586l3.707-3.707a1 1 0 011.09-.217zM14.657 2.929a1 1 0 011.414 0A9.972 9.972 0 0119 10a9.972 9.972 0 01-2.929 7.071 1 1 0 01-1.414-1.414A7.971 7.971 0 0017 10c0-2.21-.894-4.208-2.343-5.657a1 1 0 010-1.414zm-2.829 2.828a1 1 0 011.415 0A5.983 5.983 0 0115 10a5.984 5.984 0 01-1.757 4.243 1 1 0 01-1.415-1.415A3.984 3.984 0 0013 10a3.983 3.983 0 00-1.172-2.828 1 1 0 010-1.415z", clipRule: "evenodd" }, child: [] }] })(e);
|
|
5080
5077
|
}
|
|
5081
5078
|
function Ma(e) {
|
|
5082
|
-
return
|
|
5079
|
+
return it({ attr: { viewBox: "0 0 544 512" }, child: [{ tag: "path", attr: { d: "M0 479.98L99.92 512l35.45-35.45-67.04-67.04L0 479.98zm124.61-240.01a36.592 36.592 0 0 0-10.79 38.1l13.05 42.83-50.93 50.94 96.23 96.23 50.86-50.86 42.74 13.08c13.73 4.2 28.65-.01 38.15-10.78l35.55-41.64-173.34-173.34-41.52 35.44zm403.31-160.7l-63.2-63.2c-20.49-20.49-53.38-21.52-75.12-2.35L190.55 183.68l169.77 169.78L530.27 154.4c19.18-21.74 18.15-54.63-2.35-75.13z" }, child: [] }] })(e);
|
|
5083
5080
|
}
|
|
5084
5081
|
function Ea(e) {
|
|
5085
|
-
return
|
|
5086
|
-
}
|
|
5087
|
-
|
|
5088
|
-
|
|
5089
|
-
|
|
5090
|
-
|
|
5091
|
-
|
|
5092
|
-
|
|
5093
|
-
|
|
5094
|
-
|
|
5095
|
-
|
|
5096
|
-
|
|
5097
|
-
|
|
5082
|
+
return it({ attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { fill: "none", d: "M0 0h24v24H0V0z" }, child: [] }, { tag: "path", attr: { d: "M9.64 7.64c.23-.5.36-1.05.36-1.64 0-2.21-1.79-4-4-4S2 3.79 2 6s1.79 4 4 4c.59 0 1.14-.13 1.64-.36L10 12l-2.36 2.36C7.14 14.13 6.59 14 6 14c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4c0-.59-.13-1.14-.36-1.64L12 14l7 7h3v-1L9.64 7.64zM6 8c-1.1 0-2-.89-2-2s.9-2 2-2 2 .89 2 2-.9 2-2 2zm0 12c-1.1 0-2-.89-2-2s.9-2 2-2 2 .89 2 2-.9 2-2 2zm6-7.5c-.28 0-.5-.22-.5-.5s.22-.5.5-.5.5.22.5.5-.22.5-.5.5zM19 3l-6 6 2 2 7-7V3h-3z" }, child: [] }] })(e);
|
|
5083
|
+
}
|
|
5084
|
+
function Oa(e) {
|
|
5085
|
+
return it({ attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { fill: "none", d: "M0 0h24v24H0V0z", opacity: ".87" }, child: [] }, { tag: "path", attr: { d: "M17.51 3.87 15.73 2.1 5.84 12l9.9 9.9 1.77-1.77L9.38 12l8.13-8.13z" }, child: [] }] })(e);
|
|
5086
|
+
}
|
|
5087
|
+
const Pa = "_wrap_1hfub_4", Ba = "_visible_1hfub_25", za = "_compact_1hfub_31", Aa = "_row2_1hfub_34", La = "_controls_1hfub_44", Ga = "_row1_1hfub_52", Ha = "_groupExpand_1hfub_80", Na = "_groupPlayback_1hfub_81", Fa = "_groupSpeed_1hfub_82", Wa = "_groupFeatures_1hfub_83", Da = "_groupNav_1hfub_84", $a = "_btn_1hfub_116", Va = "_btnForbidden_1hfub_141", qa = "_btnActive_1hfub_147", ja = "_label_1hfub_158", Ua = "_compactBtn_1hfub_168", Le = {
|
|
5088
|
+
wrap: Pa,
|
|
5089
|
+
visible: Ba,
|
|
5090
|
+
compact: za,
|
|
5091
|
+
row2: Aa,
|
|
5092
|
+
controls: La,
|
|
5093
|
+
row1: Ga,
|
|
5094
|
+
groupExpand: Ha,
|
|
5095
|
+
groupPlayback: Na,
|
|
5096
|
+
groupSpeed: Fa,
|
|
5097
|
+
groupFeatures: Wa,
|
|
5098
5098
|
groupNav: Da,
|
|
5099
|
-
btn:
|
|
5100
|
-
btnForbidden:
|
|
5101
|
-
btnActive:
|
|
5102
|
-
label:
|
|
5103
|
-
compactBtn:
|
|
5104
|
-
},
|
|
5099
|
+
btn: $a,
|
|
5100
|
+
btnForbidden: Va,
|
|
5101
|
+
btnActive: qa,
|
|
5102
|
+
label: ja,
|
|
5103
|
+
compactBtn: Ua
|
|
5104
|
+
}, Ka = Wt(function() {
|
|
5105
5105
|
const t = ie(null), n = Ue(Mt), r = (n == null ? void 0 : n.getState().isPlaybackMode) ?? !1, o = _e((S) => S.status), i = _e((S) => S.currentTimeMs), s = _e((S) => S.currentClip), c = _e((S) => S.playbackKind), l = Y((S) => S.muteAudio), a = Y((S) => S.audioSpeed), d = _e((S) => S.getClipSrc), m = _e((S) => S._onTime), p = _e((S) => S._onEnded), b = _e((S) => S._onError), v = j((S) => S.setCurrentGlobalRunIndex), y = j((S) => S.getSectionScrollApi), u = j((S) => S.snapToReadable), f = j((S) => S.edgeReadable), g = ie(null), C = ie(null), k = ie(!1), R = ie(null);
|
|
5106
5106
|
Se(() => {
|
|
5107
5107
|
c === "real" && (k.current = !0);
|
|
@@ -5241,19 +5241,19 @@ const Oa = "_wrap_1hfub_4", Pa = "_visible_1hfub_25", Ba = "_compact_1hfub_31",
|
|
|
5241
5241
|
r
|
|
5242
5242
|
]), /* @__PURE__ */ x("audio", { ref: t, preload: "auto", style: { display: "none" } });
|
|
5243
5243
|
});
|
|
5244
|
-
function
|
|
5245
|
-
return /* @__PURE__ */ x(
|
|
5246
|
-
}
|
|
5247
|
-
const
|
|
5248
|
-
scrubberWrap:
|
|
5249
|
-
labels:
|
|
5250
|
-
index:
|
|
5251
|
-
controls:
|
|
5252
|
-
percent:
|
|
5253
|
-
range:
|
|
5244
|
+
function Xa() {
|
|
5245
|
+
return /* @__PURE__ */ x(Ka, {});
|
|
5246
|
+
}
|
|
5247
|
+
const Ya = "_scrubberWrap_uw0cd_2", Qa = "_labels_uw0cd_9", Za = "_index_uw0cd_15", Ja = "_controls_uw0cd_19", ec = "_percent_uw0cd_25", tc = "_range_uw0cd_46", zt = {
|
|
5248
|
+
scrubberWrap: Ya,
|
|
5249
|
+
labels: Qa,
|
|
5250
|
+
index: Za,
|
|
5251
|
+
controls: Ja,
|
|
5252
|
+
percent: ec,
|
|
5253
|
+
range: tc
|
|
5254
5254
|
};
|
|
5255
|
-
function
|
|
5256
|
-
const e = Y((R) => R.isDev), t = j((R) => R.currentGlobalRunIndex), n = j((R) => R.totalRuns), r = j((R) => R.setCurrentGlobalRunIndex), o = j((R) => R.getSectionScrollApi), i = j((R) => R.giToPercentTotal), s = j((R) => R.percentToGITotal), c = j((R) => R.snapToReadable), l = _e((R) => R.scrollLock), a = _e((R) => R.pause), d = _e((R) => R.play), m = _e((R) => R.syncToGI), [p, b] =
|
|
5255
|
+
function nc() {
|
|
5256
|
+
const e = Y((R) => R.isDev), t = j((R) => R.currentGlobalRunIndex), n = j((R) => R.totalRuns), r = j((R) => R.setCurrentGlobalRunIndex), o = j((R) => R.getSectionScrollApi), i = j((R) => R.giToPercentTotal), s = j((R) => R.percentToGITotal), c = j((R) => R.snapToReadable), l = _e((R) => R.scrollLock), a = _e((R) => R.pause), d = _e((R) => R.play), m = _e((R) => R.syncToGI), [p, b] = nt(() => i(t || 0));
|
|
5257
5257
|
Se(() => {
|
|
5258
5258
|
b(i(t || 0));
|
|
5259
5259
|
}, [t, i]);
|
|
@@ -5307,7 +5307,7 @@ function tc() {
|
|
|
5307
5307
|
] })
|
|
5308
5308
|
] });
|
|
5309
5309
|
}
|
|
5310
|
-
const
|
|
5310
|
+
const rc = W.memo(nc), oc = Wt(function() {
|
|
5311
5311
|
const t = Ue(Mt), 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 = Y((S) => S.audioSpeed), c = _e((S) => S.pause), l = j((S) => S.totalRuns), a = j((S) => S.currentGlobalRunIndex), d = j((S) => S.setCurrentGlobalRunIndex), m = j((S) => S.getSectionScrollApi), p = j((S) => S.nextReadableFrom), b = j((S) => S.edgeReadable), v = ie(null), y = ie(null), u = ie(0), f = ie(-1), g = !n && r === "fake" && o === "playing", C = Math.max(1, (i == null ? void 0 : i.totalWords) ?? 1), k = ve(() => {
|
|
5312
5312
|
const S = 200 * s;
|
|
5313
5313
|
return C / S * 6e4;
|
|
@@ -5357,15 +5357,15 @@ const nc = D.memo(tc), rc = Dt(function() {
|
|
|
5357
5357
|
return Se(() => (g ? v.current == null && (v.current = requestAnimationFrame(h)) : (v.current && (cancelAnimationFrame(v.current), v.current = null), y.current = null), () => {
|
|
5358
5358
|
v.current && (cancelAnimationFrame(v.current), v.current = null);
|
|
5359
5359
|
}), [g, h]), null;
|
|
5360
|
-
}),
|
|
5361
|
-
return /* @__PURE__ */ x(
|
|
5362
|
-
}), ic = "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", sc = "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", lc = "_WPMSpeedButtonsWrap_r3byt_1", ac = "_btnWrap_r3byt_7", cc = "_label_r3byt_14", uc = "_iconBtn_r3byt_22", qt = {
|
|
5363
|
-
WPMSpeedButtonsWrap:
|
|
5364
|
-
btnWrap:
|
|
5365
|
-
label:
|
|
5366
|
-
iconBtn:
|
|
5367
|
-
},
|
|
5368
|
-
const t = Y((p) => p.audioSpeed), n = Y((p) => p.incAudioSpeed), r = Y((p) => p.decAudioSpeed), o = ie(null), i = ie(
|
|
5360
|
+
}), ic = Wt(function() {
|
|
5361
|
+
return /* @__PURE__ */ x(oc, {});
|
|
5362
|
+
}), sc = "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", lc = "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", ac = "_WPMSpeedButtonsWrap_r3byt_1", cc = "_btnWrap_r3byt_7", uc = "_label_r3byt_14", dc = "_iconBtn_r3byt_22", qt = {
|
|
5363
|
+
WPMSpeedButtonsWrap: ac,
|
|
5364
|
+
btnWrap: cc,
|
|
5365
|
+
label: uc,
|
|
5366
|
+
iconBtn: dc
|
|
5367
|
+
}, xo = 350, fc = 40, pc = 0.85, hc = Wt(function() {
|
|
5368
|
+
const t = Y((p) => p.audioSpeed), n = Y((p) => p.incAudioSpeed), r = Y((p) => p.decAudioSpeed), o = ie(null), i = ie(xo), s = ie(null), c = Q(
|
|
5369
5369
|
(p) => {
|
|
5370
5370
|
const b = t;
|
|
5371
5371
|
if (p === "inc") {
|
|
@@ -5381,13 +5381,13 @@ const nc = D.memo(tc), rc = Dt(function() {
|
|
|
5381
5381
|
), l = Q(() => {
|
|
5382
5382
|
s.current = null, o.current && (clearTimeout(o.current), o.current = null);
|
|
5383
5383
|
}, []), a = Q(() => {
|
|
5384
|
-
s.current && (i.current = Math.max(
|
|
5384
|
+
s.current && (i.current = Math.max(fc, Math.floor(i.current * pc)), o.current = window.setTimeout(() => {
|
|
5385
5385
|
c(s.current) ? a() : l();
|
|
5386
5386
|
}, i.current));
|
|
5387
5387
|
}, [c, l]), d = Q(
|
|
5388
5388
|
(p) => {
|
|
5389
5389
|
if (s.current) return;
|
|
5390
|
-
s.current = p, i.current =
|
|
5390
|
+
s.current = p, i.current = xo, c(p) && a();
|
|
5391
5391
|
const v = () => l();
|
|
5392
5392
|
window.addEventListener("mouseup", v, { once: !0 }), window.addEventListener("touchend", v, { once: !0 });
|
|
5393
5393
|
},
|
|
@@ -5412,7 +5412,7 @@ const nc = D.memo(tc), rc = Dt(function() {
|
|
|
5412
5412
|
p.preventDefault(), d("dec");
|
|
5413
5413
|
},
|
|
5414
5414
|
onMouseUp: l,
|
|
5415
|
-
children: /* @__PURE__ */ x("img", { src:
|
|
5415
|
+
children: /* @__PURE__ */ x("img", { src: sc, alt: "느리게" })
|
|
5416
5416
|
}
|
|
5417
5417
|
),
|
|
5418
5418
|
/* @__PURE__ */ x("div", { className: qt.label, style: { minWidth: "44px", textAlign: "center" }, children: /* @__PURE__ */ x("div", { children: m }) }),
|
|
@@ -5427,22 +5427,22 @@ const nc = D.memo(tc), rc = Dt(function() {
|
|
|
5427
5427
|
p.preventDefault(), d("inc");
|
|
5428
5428
|
},
|
|
5429
5429
|
onMouseUp: l,
|
|
5430
|
-
children: /* @__PURE__ */ x("img", { src:
|
|
5430
|
+
children: /* @__PURE__ */ x("img", { src: lc, alt: "빠르게" })
|
|
5431
5431
|
}
|
|
5432
5432
|
)
|
|
5433
5433
|
] })
|
|
5434
5434
|
}
|
|
5435
5435
|
);
|
|
5436
|
-
}),
|
|
5437
|
-
StepBtn:
|
|
5436
|
+
}), gc = "_StepBtn_15t0r_1", mc = {
|
|
5437
|
+
StepBtn: gc
|
|
5438
5438
|
};
|
|
5439
|
-
function mc(e) {
|
|
5440
|
-
return ot({ attr: { viewBox: "0 0 256 256", fill: "currentColor" }, child: [{ tag: "path", attr: { d: "M208,48V208a8,8,0,0,1-13.66,5.66L128,147.31V208a8,8,0,0,1-13.66,5.66l-80-80a8,8,0,0,1,0-11.32l80-80A8,8,0,0,1,128,48v60.69l66.34-66.35A8,8,0,0,1,208,48Z" }, child: [] }] })(e);
|
|
5441
|
-
}
|
|
5442
5439
|
function bc(e) {
|
|
5443
|
-
return
|
|
5440
|
+
return it({ attr: { viewBox: "0 0 256 256", fill: "currentColor" }, child: [{ tag: "path", attr: { d: "M208,48V208a8,8,0,0,1-13.66,5.66L128,147.31V208a8,8,0,0,1-13.66,5.66l-80-80a8,8,0,0,1,0-11.32l80-80A8,8,0,0,1,128,48v60.69l66.34-66.35A8,8,0,0,1,208,48Z" }, child: [] }] })(e);
|
|
5441
|
+
}
|
|
5442
|
+
function vc(e) {
|
|
5443
|
+
return it({ 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);
|
|
5444
5444
|
}
|
|
5445
|
-
function
|
|
5445
|
+
function wo({ direction: e }) {
|
|
5446
5446
|
const t = j((m) => m.currentGlobalRunIndex), n = j((m) => m.totalRuns), r = j((m) => m.hasReadableInDir), o = j((m) => m.computeStepTarget), i = j((m) => m.setCurrentGlobalRunIndex), s = _e((m) => m.syncToGI), c = j((m) => m.getSectionScrollApi), l = Q(
|
|
5447
5447
|
async (m) => {
|
|
5448
5448
|
var v, y;
|
|
@@ -5467,19 +5467,19 @@ function xo({ direction: e }) {
|
|
|
5467
5467
|
return /* @__PURE__ */ x(
|
|
5468
5468
|
"button",
|
|
5469
5469
|
{
|
|
5470
|
-
className:
|
|
5470
|
+
className: mc.StepBtn,
|
|
5471
5471
|
type: "button",
|
|
5472
5472
|
onClick: d,
|
|
5473
5473
|
disabled: a,
|
|
5474
5474
|
title: e === "left" ? "이전" : "다음",
|
|
5475
|
-
children: e === "left" ? /* @__PURE__ */ x(
|
|
5475
|
+
children: e === "left" ? /* @__PURE__ */ x(bc, {}) : /* @__PURE__ */ x(vc, {})
|
|
5476
5476
|
}
|
|
5477
5477
|
);
|
|
5478
5478
|
}
|
|
5479
|
-
const
|
|
5480
|
-
GCPlayBtn:
|
|
5481
|
-
playing:
|
|
5482
|
-
},
|
|
5479
|
+
const Sc = "_GCPlayBtn_n54mc_1", yc = "_playing_n54mc_34", Io = {
|
|
5480
|
+
GCPlayBtn: Sc,
|
|
5481
|
+
playing: yc
|
|
5482
|
+
}, xc = ({
|
|
5483
5483
|
size: e = 60,
|
|
5484
5484
|
color: t = "#333",
|
|
5485
5485
|
bgColor: n = "#fff",
|
|
@@ -5490,7 +5490,7 @@ const vc = "_GCPlayBtn_n54mc_1", Sc = "_playing_n54mc_34", wo = {
|
|
|
5490
5490
|
}) => /* @__PURE__ */ x(
|
|
5491
5491
|
"button",
|
|
5492
5492
|
{
|
|
5493
|
-
className: `${
|
|
5493
|
+
className: `${Io.GCPlayBtn} ${r ? Io.playing : ""}`,
|
|
5494
5494
|
onClick: o,
|
|
5495
5495
|
"data-tip": i,
|
|
5496
5496
|
title: s,
|
|
@@ -5501,13 +5501,13 @@ const vc = "_GCPlayBtn_n54mc_1", Sc = "_playing_n54mc_34", wo = {
|
|
|
5501
5501
|
}
|
|
5502
5502
|
}
|
|
5503
5503
|
);
|
|
5504
|
-
function xc(e) {
|
|
5505
|
-
return ot({ attr: { viewBox: "0 0 512 512" }, child: [{ tag: "path", attr: { d: "M256 294.1L383 167c9.4-9.4 24.6-9.4 33.9 0s9.3 24.6 0 34L273 345c-9.1 9.1-23.7 9.3-33.1.7L95 201.1c-4.7-4.7-7-10.9-7-17s2.3-12.3 7-17c9.4-9.4 24.6-9.4 33.9 0l127.1 127z" }, child: [] }] })(e);
|
|
5506
|
-
}
|
|
5507
5504
|
function wc(e) {
|
|
5508
|
-
return
|
|
5505
|
+
return it({ attr: { viewBox: "0 0 512 512" }, child: [{ tag: "path", attr: { d: "M256 294.1L383 167c9.4-9.4 24.6-9.4 33.9 0s9.3 24.6 0 34L273 345c-9.1 9.1-23.7 9.3-33.1.7L95 201.1c-4.7-4.7-7-10.9-7-17s2.3-12.3 7-17c9.4-9.4 24.6-9.4 33.9 0l127.1 127z" }, child: [] }] })(e);
|
|
5509
5506
|
}
|
|
5510
|
-
function Ic() {
|
|
5507
|
+
function Ic(e) {
|
|
5508
|
+
return it({ attr: { viewBox: "0 0 512 512" }, child: [{ tag: "path", attr: { d: "M256 217.9L383 345c9.4 9.4 24.6 9.4 33.9 0 9.4-9.4 9.3-24.6 0-34L273 167c-9.1-9.1-23.7-9.3-33.1-.7L95 310.9c-4.7 4.7-7 10.9-7 17s2.3 12.3 7 17c9.4 9.4 24.6 9.4 33.9 0l127.1-127z" }, child: [] }] })(e);
|
|
5509
|
+
}
|
|
5510
|
+
function Cc() {
|
|
5511
5511
|
var R;
|
|
5512
5512
|
const e = Y((I) => I.showOverlays), t = j((I) => I.section), n = !!t.ast.isAddedSplit, r = !!((R = t.audios) != null && R.length), o = Y((I) => I.muteAudio), i = Y((I) => I.showPointer), s = Y((I) => I.showSplit), c = Y((I) => I.toggleMuteAudio), l = Y((I) => I.toggleShowPointer), a = Y((I) => I.toggleShowSplit), d = Y((I) => I.overlayCompactMode), m = Y((I) => I.toggleOverlayCompactMode), p = yn(), b = Rt();
|
|
5513
5513
|
Se(() => {
|
|
@@ -5556,8 +5556,8 @@ function Ic() {
|
|
|
5556
5556
|
I.stopPropagation();
|
|
5557
5557
|
},
|
|
5558
5558
|
children: [
|
|
5559
|
-
!d && /* @__PURE__ */ x(
|
|
5560
|
-
/* @__PURE__ */ x("div", { style: d ? { display: "none" } : void 0, children: r && !o ? /* @__PURE__ */ x(
|
|
5559
|
+
!d && /* @__PURE__ */ x(rc, {}),
|
|
5560
|
+
/* @__PURE__ */ x("div", { style: d ? { display: "none" } : void 0, children: r && !o ? /* @__PURE__ */ x(Xa, {}) : /* @__PURE__ */ x(ic, {}) }),
|
|
5561
5561
|
/* @__PURE__ */ Z("div", { className: Le.controls, children: [
|
|
5562
5562
|
/* @__PURE__ */ Z("div", { className: Le.row1, children: [
|
|
5563
5563
|
/* @__PURE__ */ x("div", { className: Le.groupExpand, children: /* @__PURE__ */ x(
|
|
@@ -5569,13 +5569,13 @@ function Ic() {
|
|
|
5569
5569
|
},
|
|
5570
5570
|
className: Le.compactBtn,
|
|
5571
5571
|
title: d ? "오버레이 확대" : "오버레이 축소",
|
|
5572
|
-
children: d ? /* @__PURE__ */ x(
|
|
5572
|
+
children: d ? /* @__PURE__ */ x(Ic, { size: 24 }) : /* @__PURE__ */ x(wc, { size: 24 })
|
|
5573
5573
|
}
|
|
5574
5574
|
) }),
|
|
5575
5575
|
/* @__PURE__ */ Z("div", { className: Le.groupPlayback, children: [
|
|
5576
|
-
/* @__PURE__ */ x(
|
|
5576
|
+
/* @__PURE__ */ x(wo, { direction: "left" }),
|
|
5577
5577
|
/* @__PURE__ */ x(
|
|
5578
|
-
|
|
5578
|
+
xc,
|
|
5579
5579
|
{
|
|
5580
5580
|
size: 34,
|
|
5581
5581
|
isPlaying: u === "playing",
|
|
@@ -5583,9 +5583,9 @@ function Ic() {
|
|
|
5583
5583
|
title: u === "playing" ? "일시정지" : "재생"
|
|
5584
5584
|
}
|
|
5585
5585
|
),
|
|
5586
|
-
/* @__PURE__ */ x(
|
|
5586
|
+
/* @__PURE__ */ x(wo, { direction: "right" })
|
|
5587
5587
|
] }),
|
|
5588
|
-
/* @__PURE__ */ x("div", { className: Le.groupSpeed, children: /* @__PURE__ */ x(
|
|
5588
|
+
/* @__PURE__ */ x("div", { className: Le.groupSpeed, children: /* @__PURE__ */ x(hc, {}) })
|
|
5589
5589
|
] }),
|
|
5590
5590
|
/* @__PURE__ */ Z("div", { className: Le.row2, children: [
|
|
5591
5591
|
/* @__PURE__ */ Z("div", { className: Le.groupFeatures, children: [
|
|
@@ -5599,7 +5599,7 @@ function Ic() {
|
|
|
5599
5599
|
className: `${Le.btn} ${o ? "" : Le.btnActive}`,
|
|
5600
5600
|
title: "오디오북 음소거 전환",
|
|
5601
5601
|
children: [
|
|
5602
|
-
o ? /* @__PURE__ */ x(
|
|
5602
|
+
o ? /* @__PURE__ */ x(Ra, { size: 18 }) : /* @__PURE__ */ x(_a, { size: 18 }),
|
|
5603
5603
|
/* @__PURE__ */ x("span", { className: Le.label, children: "오디오북" })
|
|
5604
5604
|
]
|
|
5605
5605
|
}
|
|
@@ -5614,7 +5614,7 @@ function Ic() {
|
|
|
5614
5614
|
className: `${Le.btn} ${i ? Le.btnActive : ""}`,
|
|
5615
5615
|
title: "포인터 표시",
|
|
5616
5616
|
children: [
|
|
5617
|
-
/* @__PURE__ */ x(
|
|
5617
|
+
/* @__PURE__ */ x(Ma, { size: 18 }),
|
|
5618
5618
|
/* @__PURE__ */ x("span", { className: Le.label, children: "포인터" })
|
|
5619
5619
|
]
|
|
5620
5620
|
}
|
|
@@ -5630,14 +5630,14 @@ function Ic() {
|
|
|
5630
5630
|
className: `${Le.btn} ${s ? Le.btnActive : ""} ${n ? "" : Le.btnForbidden}`,
|
|
5631
5631
|
title: "끊어읽기 표시",
|
|
5632
5632
|
children: [
|
|
5633
|
-
/* @__PURE__ */ x(
|
|
5633
|
+
/* @__PURE__ */ x(Ea, { size: 18 }),
|
|
5634
5634
|
/* @__PURE__ */ x("span", { className: Le.label, children: "끊어읽기" })
|
|
5635
5635
|
]
|
|
5636
5636
|
}
|
|
5637
5637
|
)
|
|
5638
5638
|
] }),
|
|
5639
5639
|
/* @__PURE__ */ Z("div", { className: Le.groupNav, children: [
|
|
5640
|
-
/* @__PURE__ */ x(
|
|
5640
|
+
/* @__PURE__ */ x(wa, {}),
|
|
5641
5641
|
/* @__PURE__ */ x(Cn, {})
|
|
5642
5642
|
] })
|
|
5643
5643
|
] })
|
|
@@ -5646,26 +5646,26 @@ function Ic() {
|
|
|
5646
5646
|
}
|
|
5647
5647
|
);
|
|
5648
5648
|
}
|
|
5649
|
-
const
|
|
5650
|
-
function
|
|
5651
|
-
return
|
|
5652
|
-
}
|
|
5653
|
-
const
|
|
5654
|
-
host:
|
|
5655
|
-
topbar:
|
|
5656
|
-
visible:
|
|
5657
|
-
backBtn:
|
|
5658
|
-
title:
|
|
5659
|
-
settingsBtn:
|
|
5649
|
+
const Tc = W.memo(Cc);
|
|
5650
|
+
function kc(e) {
|
|
5651
|
+
return it({ 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);
|
|
5652
|
+
}
|
|
5653
|
+
const Rc = "_host_v5qx1_3", _c = "_topbar_v5qx1_11", Mc = "_visible_v5qx1_32", Ec = "_backBtn_v5qx1_37", Oc = "_title_v5qx1_58", Pc = "_settingsBtn_v5qx1_67", At = {
|
|
5654
|
+
host: Rc,
|
|
5655
|
+
topbar: _c,
|
|
5656
|
+
visible: Mc,
|
|
5657
|
+
backBtn: Ec,
|
|
5658
|
+
title: Oc,
|
|
5659
|
+
settingsBtn: Pc
|
|
5660
5660
|
};
|
|
5661
|
-
function
|
|
5661
|
+
function Bc() {
|
|
5662
5662
|
const e = Y((a) => a.showOverlays), t = Y((a) => a.overlayCompactMode), n = j((a) => a.onViewerClose), o = j((a) => a.section).ast.title, i = Y((a) => a.setSettingsOpen), s = Y((a) => a.setShowOverlays), c = Q(() => {
|
|
5663
5663
|
n == null || n();
|
|
5664
5664
|
}, [n]), l = Q(() => {
|
|
5665
5665
|
i(!0), s(!1);
|
|
5666
5666
|
}, [i, s]);
|
|
5667
5667
|
return /* @__PURE__ */ x("div", { className: At.host, children: /* @__PURE__ */ Z("div", { className: `${At.topbar} ${e && !t ? At.visible : ""}`, children: [
|
|
5668
|
-
/* @__PURE__ */ x("button", { type: "button", className: At.backBtn, onClick: c, "aria-label": "뒤로가기", children: /* @__PURE__ */ x(
|
|
5668
|
+
/* @__PURE__ */ x("button", { type: "button", className: At.backBtn, onClick: c, "aria-label": "뒤로가기", children: /* @__PURE__ */ x(Oa, { size: 28 }) }),
|
|
5669
5669
|
/* @__PURE__ */ x("div", { className: At.title, children: /* @__PURE__ */ x("span", { className: "truncate", children: o || "섹션 없음" }) }),
|
|
5670
5670
|
/* @__PURE__ */ x(
|
|
5671
5671
|
"button",
|
|
@@ -5674,30 +5674,30 @@ function Pc() {
|
|
|
5674
5674
|
className: At.settingsBtn,
|
|
5675
5675
|
onClick: l,
|
|
5676
5676
|
"aria-label": "뷰어 설정",
|
|
5677
|
-
children: /* @__PURE__ */ x(
|
|
5677
|
+
children: /* @__PURE__ */ x(kc, { size: 28 })
|
|
5678
5678
|
}
|
|
5679
5679
|
)
|
|
5680
5680
|
] }) });
|
|
5681
5681
|
}
|
|
5682
|
-
const
|
|
5683
|
-
wrap:
|
|
5684
|
-
wrapHidden:
|
|
5685
|
-
wrapVisible:
|
|
5686
|
-
scrollArea:
|
|
5687
|
-
row:
|
|
5688
|
-
label:
|
|
5689
|
-
btn:
|
|
5682
|
+
const zc = W.memo(Bc), Ac = "_wrap_62su0_7", Lc = "_wrapHidden_62su0_29", Gc = "_wrapVisible_62su0_35", Hc = "_scrollArea_62su0_71", Nc = "_row_62su0_81", Fc = "_label_62su0_89", Wc = "_btn_62su0_95", Dc = "_btnActive_62su0_106", $c = "_btnSmall_62su0_110", Vc = "_pill_62su0_122", qc = "_themeCircle_62su0_133", jc = "_themeCircleActive_62su0_146", Uc = "_stepRow_62su0_151", Kc = "_stepLabel_62su0_159", Xc = "_levelBox_62su0_172", Yc = "_inlineFlex_62su0_177", ze = {
|
|
5683
|
+
wrap: Ac,
|
|
5684
|
+
wrapHidden: Lc,
|
|
5685
|
+
wrapVisible: Gc,
|
|
5686
|
+
scrollArea: Hc,
|
|
5687
|
+
row: Nc,
|
|
5688
|
+
label: Fc,
|
|
5689
|
+
btn: Wc,
|
|
5690
5690
|
btnActive: Dc,
|
|
5691
|
-
btnSmall:
|
|
5692
|
-
pill:
|
|
5693
|
-
themeCircle:
|
|
5694
|
-
themeCircleActive:
|
|
5695
|
-
stepRow:
|
|
5696
|
-
stepLabel:
|
|
5697
|
-
levelBox:
|
|
5698
|
-
inlineFlex:
|
|
5691
|
+
btnSmall: $c,
|
|
5692
|
+
pill: Vc,
|
|
5693
|
+
themeCircle: qc,
|
|
5694
|
+
themeCircleActive: jc,
|
|
5695
|
+
stepRow: Uc,
|
|
5696
|
+
stepLabel: Kc,
|
|
5697
|
+
levelBox: Xc,
|
|
5698
|
+
inlineFlex: Yc
|
|
5699
5699
|
};
|
|
5700
|
-
function
|
|
5700
|
+
function Qc({ visible: e }) {
|
|
5701
5701
|
const t = Y((h) => h.mode), n = Y((h) => h.setMode), r = Y((h) => h.theme), o = Y((h) => h.setTheme), i = Y((h) => h.fontFamily), s = Y((h) => h.setFontFamily), c = Y((h) => h.resetToDefaults), l = Y((h) => h.getFontLevel()), a = Y((h) => h.getLineLevel()), d = Y((h) => h.getMarginLevel()), m = Y((h) => h.setFontLevel), p = Y((h) => h.setLineLevel), b = Y((h) => h.setMarginLevel), v = Y((h) => h.pointerStyle), y = Y((h) => h.setPointerStyle), u = Y((h) => h.pointerColor), f = Y((h) => h.setPointerColor), g = Y((h) => h.breakMarks), C = Y((h) => h.toggleBreakMark), k = Y((h) => h.getBreakGapLevel()), R = Y((h) => h.setBreakGapLevel), I = `${ze.wrap} ${e ? ze.wrapVisible : ze.wrapHidden}`;
|
|
5702
5702
|
return /* @__PURE__ */ Z("div", { className: I, role: "dialog", "aria-modal": "true", "aria-label": "뷰어 설정", children: [
|
|
5703
5703
|
/* @__PURE__ */ Z("div", { className: ze.scrollArea, children: [
|
|
@@ -5721,7 +5721,7 @@ function Yc({ visible: e }) {
|
|
|
5721
5721
|
`${h}_tc_button`
|
|
5722
5722
|
);
|
|
5723
5723
|
}) }) }),
|
|
5724
|
-
/* @__PURE__ */ x(jt, { label: "글꼴", children: /* @__PURE__ */ x("div", { className: ze.inlineFlex, children:
|
|
5724
|
+
/* @__PURE__ */ x(jt, { label: "글꼴", children: /* @__PURE__ */ x("div", { className: ze.inlineFlex, children: Xo.map((h) => /* @__PURE__ */ x(
|
|
5725
5725
|
Lt,
|
|
5726
5726
|
{
|
|
5727
5727
|
active: i === h.value,
|
|
@@ -5861,7 +5861,7 @@ function pn({
|
|
|
5861
5861
|
] })
|
|
5862
5862
|
] });
|
|
5863
5863
|
}
|
|
5864
|
-
const
|
|
5864
|
+
const Zc = W.memo(function() {
|
|
5865
5865
|
const t = Y((s) => s.showOverlays), n = Y((s) => s.isSettingsOpen), r = j((s) => s.rangeStartGI), o = j((s) => s.rangeEndGI);
|
|
5866
5866
|
return r != null && o != null ? null : /* @__PURE__ */ Z(
|
|
5867
5867
|
"div",
|
|
@@ -5875,13 +5875,13 @@ const Qc = D.memo(function() {
|
|
|
5875
5875
|
containerName: "viewer"
|
|
5876
5876
|
},
|
|
5877
5877
|
children: [
|
|
5878
|
-
/* @__PURE__ */ x(
|
|
5879
|
-
/* @__PURE__ */ x(
|
|
5880
|
-
/* @__PURE__ */ x("div", { style: { pointerEvents: "auto" }, children: /* @__PURE__ */ x(
|
|
5878
|
+
/* @__PURE__ */ x(zc, {}),
|
|
5879
|
+
/* @__PURE__ */ x(Tc, {}),
|
|
5880
|
+
/* @__PURE__ */ x("div", { style: { pointerEvents: "auto" }, children: /* @__PURE__ */ x(Qc, { visible: !t && n }) })
|
|
5881
5881
|
]
|
|
5882
5882
|
}
|
|
5883
5883
|
);
|
|
5884
|
-
}),
|
|
5884
|
+
}), Jc = (e) => (t, n, r) => {
|
|
5885
5885
|
const o = r.subscribe;
|
|
5886
5886
|
return r.subscribe = ((s, c, l) => {
|
|
5887
5887
|
let a = s;
|
|
@@ -5898,11 +5898,11 @@ const Qc = D.memo(function() {
|
|
|
5898
5898
|
}
|
|
5899
5899
|
return o(a);
|
|
5900
5900
|
}), e(t, n, r);
|
|
5901
|
-
},
|
|
5902
|
-
function
|
|
5901
|
+
}, eu = Jc;
|
|
5902
|
+
function tu(e) {
|
|
5903
5903
|
return e ? e.kind === "saved" ? e.cdnUrl : e.blobUrl : null;
|
|
5904
5904
|
}
|
|
5905
|
-
function
|
|
5905
|
+
function nu(e) {
|
|
5906
5906
|
var o, i, s;
|
|
5907
5907
|
if (!e || !/\S/.test(e)) return 0;
|
|
5908
5908
|
const t = ((o = e.match(/[A-Za-z0-9]+(?:['’-][A-Za-z0-9]+)*/g)) == null ? void 0 : o.length) ?? 0, n = ((i = e.match(/[\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A]+/g)) == null ? void 0 : i.length) ?? 0, r = ((s = e.match(
|
|
@@ -5910,14 +5910,14 @@ function tu(e) {
|
|
|
5910
5910
|
)) == null ? void 0 : s.length) ?? 0;
|
|
5911
5911
|
return t + n + Math.floor(r / 2);
|
|
5912
5912
|
}
|
|
5913
|
-
function
|
|
5913
|
+
function ru(e) {
|
|
5914
5914
|
let t = 0;
|
|
5915
5915
|
for (const n of e.ast.blocks ?? [])
|
|
5916
5916
|
if (n.type === "paragraph")
|
|
5917
|
-
for (const r of n.runs ?? []) t +=
|
|
5917
|
+
for (const r of n.runs ?? []) t += nu((r == null ? void 0 : r.text) ?? "");
|
|
5918
5918
|
return t;
|
|
5919
5919
|
}
|
|
5920
|
-
function
|
|
5920
|
+
function ou(e) {
|
|
5921
5921
|
const t = e == null ? void 0 : e.recorderStore;
|
|
5922
5922
|
let n = e == null ? void 0 : e.map, r = e == null ? void 0 : e.initialIndex;
|
|
5923
5923
|
const o = (b) => {
|
|
@@ -5937,14 +5937,14 @@ function ru(e) {
|
|
|
5937
5937
|
return null;
|
|
5938
5938
|
}, i = (e == null ? void 0 : e.clips) ?? [];
|
|
5939
5939
|
let s = 0, c = 0;
|
|
5940
|
-
const l = Math.max(1,
|
|
5940
|
+
const l = Math.max(1, ru(e.section) || 150);
|
|
5941
5941
|
if (typeof (e == null ? void 0 : e.initialIndex) == "number" && n) {
|
|
5942
5942
|
const b = o(e.initialIndex);
|
|
5943
5943
|
b && (s = b.clip, c = b.t, r = void 0);
|
|
5944
5944
|
}
|
|
5945
5945
|
const a = i.length > 0, d = a ? "paused" : "idle", m = a ? "real" : "fake", p = a ? null : { totalWords: l };
|
|
5946
5946
|
return rn(
|
|
5947
|
-
|
|
5947
|
+
eu((b, v) => ({
|
|
5948
5948
|
// 원본/포인터
|
|
5949
5949
|
clips: i,
|
|
5950
5950
|
currentClip: Math.max(0, Math.min(s, Math.max(0, i.length - 1))),
|
|
@@ -6065,7 +6065,7 @@ function ru(e) {
|
|
|
6065
6065
|
const u = v();
|
|
6066
6066
|
if (!u.clips.length) return null;
|
|
6067
6067
|
const f = typeof y == "number" ? y : u.currentClip;
|
|
6068
|
-
return
|
|
6068
|
+
return tu(u.clips[f]);
|
|
6069
6069
|
},
|
|
6070
6070
|
// (clip,time) -> GI
|
|
6071
6071
|
getGIFromCT: (y, u) => {
|
|
@@ -6132,14 +6132,14 @@ function ru(e) {
|
|
|
6132
6132
|
}))
|
|
6133
6133
|
);
|
|
6134
6134
|
}
|
|
6135
|
-
function
|
|
6135
|
+
function iu({
|
|
6136
6136
|
children: e,
|
|
6137
6137
|
initialState: t
|
|
6138
6138
|
}) {
|
|
6139
|
-
const n = Ue(Mt) ?? void 0, r = ve(() =>
|
|
6139
|
+
const n = Ue(Mt) ?? void 0, r = ve(() => ou({ ...t, recorderStore: n }), [t, n]);
|
|
6140
6140
|
return /* @__PURE__ */ x(On.Provider, { value: r, children: e });
|
|
6141
6141
|
}
|
|
6142
|
-
function
|
|
6142
|
+
function su(e) {
|
|
6143
6143
|
var i, s;
|
|
6144
6144
|
const t = {}, n = [], r = ((i = e == null ? void 0 : e.ast) == null ? void 0 : i.blocks) ?? [];
|
|
6145
6145
|
let o = 0;
|
|
@@ -6154,7 +6154,7 @@ function iu(e) {
|
|
|
6154
6154
|
}
|
|
6155
6155
|
return Object.values(t).forEach((c) => c.sort((l, a) => l.t - a.t)), { byClip: t, g2ct: n };
|
|
6156
6156
|
}
|
|
6157
|
-
function
|
|
6157
|
+
function lu(e, t, n) {
|
|
6158
6158
|
if (n <= 0) return -1;
|
|
6159
6159
|
const r = Math.max(0, Math.min(t, n - 1));
|
|
6160
6160
|
if (e[r] === 1) return r;
|
|
@@ -6166,23 +6166,23 @@ function su(e, t, n) {
|
|
|
6166
6166
|
}
|
|
6167
6167
|
return -1;
|
|
6168
6168
|
}
|
|
6169
|
-
function
|
|
6170
|
-
const t =
|
|
6169
|
+
function au(e) {
|
|
6170
|
+
const t = na(e), n = ra(t), r = t.reduce((d, m) => d + (m || 0), 0), o = new Int32Array(Math.max(1, r)).fill(-1), i = new Uint8Array(Math.max(1, r)).fill(0), s = [], c = [];
|
|
6171
6171
|
return e.forEach((d, m) => {
|
|
6172
6172
|
var u;
|
|
6173
6173
|
if (d.type !== "paragraph") return;
|
|
6174
6174
|
const p = n[m] ?? 0, b = d.runs ?? [];
|
|
6175
6175
|
for (let f = 0; f < b.length; f++) {
|
|
6176
6176
|
const g = ((u = b[f]) == null ? void 0 : u.text) || "";
|
|
6177
|
-
|
|
6177
|
+
br(g) && (i[p + f] = 1);
|
|
6178
6178
|
}
|
|
6179
|
-
const y =
|
|
6179
|
+
const y = oa(b, p).map((f) => {
|
|
6180
6180
|
var R;
|
|
6181
6181
|
const g = f.startG - p, C = f.endG - f.startG + 1;
|
|
6182
6182
|
let k = -1;
|
|
6183
6183
|
for (let I = 0; I < C; I++) {
|
|
6184
6184
|
const h = ((R = b[g + I]) == null ? void 0 : R.text) ?? "";
|
|
6185
|
-
if (
|
|
6185
|
+
if (br(h)) {
|
|
6186
6186
|
k = f.startG + I;
|
|
6187
6187
|
break;
|
|
6188
6188
|
}
|
|
@@ -6210,7 +6210,7 @@ function lu(e) {
|
|
|
6210
6210
|
splitGroupsPerBlock: c
|
|
6211
6211
|
}, layout: { prefix: n, totalRuns: r } };
|
|
6212
6212
|
}
|
|
6213
|
-
function
|
|
6213
|
+
function cu(e) {
|
|
6214
6214
|
const {
|
|
6215
6215
|
section: t,
|
|
6216
6216
|
onViewerClose: n,
|
|
@@ -6221,7 +6221,7 @@ function au(e) {
|
|
|
6221
6221
|
layout: c,
|
|
6222
6222
|
initialIndex: l,
|
|
6223
6223
|
mountTime: a
|
|
6224
|
-
} = e, d = c.totalRuns ?? 0, m = typeof l == "number" ? l : d > 0 ? 0 : -1, p = m >= 0 ?
|
|
6224
|
+
} = e, d = c.totalRuns ?? 0, m = typeof l == "number" ? l : d > 0 ? 0 : -1, p = m >= 0 ? lu(s.readableGi, m, d) : -1;
|
|
6225
6225
|
return {
|
|
6226
6226
|
section: t,
|
|
6227
6227
|
sectionId: t.section_id,
|
|
@@ -6242,7 +6242,7 @@ function au(e) {
|
|
|
6242
6242
|
rangeEndGI: null
|
|
6243
6243
|
};
|
|
6244
6244
|
}
|
|
6245
|
-
function
|
|
6245
|
+
function uu(e) {
|
|
6246
6246
|
const {
|
|
6247
6247
|
section: t,
|
|
6248
6248
|
initialIndex: n,
|
|
@@ -6251,7 +6251,7 @@ function cu(e) {
|
|
|
6251
6251
|
isCanPrev: i,
|
|
6252
6252
|
isCanNext: s,
|
|
6253
6253
|
eventBridgeStore: c
|
|
6254
|
-
} = e, l = t.ast.blocks, { nav: a, layout: d } =
|
|
6254
|
+
} = e, l = t.ast.blocks, { nav: a, layout: d } = au(l), m = Date.now(), p = cu({
|
|
6255
6255
|
section: t,
|
|
6256
6256
|
onViewerClose: r,
|
|
6257
6257
|
onSectionNav: o,
|
|
@@ -6456,24 +6456,24 @@ function cu(e) {
|
|
|
6456
6456
|
};
|
|
6457
6457
|
});
|
|
6458
6458
|
}
|
|
6459
|
-
function
|
|
6459
|
+
function du({
|
|
6460
6460
|
children: e,
|
|
6461
6461
|
initialState: t
|
|
6462
6462
|
}) {
|
|
6463
6463
|
const n = Ue(Mt), r = ve(
|
|
6464
|
-
() =>
|
|
6464
|
+
() => uu({ ...t, eventBridgeStore: n }),
|
|
6465
6465
|
[t, n]
|
|
6466
6466
|
);
|
|
6467
|
-
return /* @__PURE__ */ x(
|
|
6467
|
+
return /* @__PURE__ */ x(Sr.Provider, { value: r, children: e });
|
|
6468
6468
|
}
|
|
6469
|
-
function
|
|
6469
|
+
function fu({
|
|
6470
6470
|
children: e,
|
|
6471
6471
|
initialState: t
|
|
6472
6472
|
}) {
|
|
6473
|
-
const n = Ue(Mt) ?? void 0, r = ie(
|
|
6474
|
-
return /* @__PURE__ */ x(
|
|
6473
|
+
const n = Ue(Mt) ?? void 0, r = ie(as({ init: t, recorderStore: n }));
|
|
6474
|
+
return /* @__PURE__ */ x(vr.Provider, { value: r.current, children: e });
|
|
6475
6475
|
}
|
|
6476
|
-
const
|
|
6476
|
+
const pu = ({
|
|
6477
6477
|
// paraIndexMap,
|
|
6478
6478
|
pages: e,
|
|
6479
6479
|
pageIndex: t,
|
|
@@ -6509,9 +6509,9 @@ const fu = ({
|
|
|
6509
6509
|
}
|
|
6510
6510
|
return g;
|
|
6511
6511
|
}, [v, o]), u = ve(() => {
|
|
6512
|
-
const g = [], C =
|
|
6512
|
+
const g = [], C = Pr();
|
|
6513
6513
|
return y.forEach((k, R) => {
|
|
6514
|
-
g[R] =
|
|
6514
|
+
g[R] = Br(k.b, C);
|
|
6515
6515
|
}), g;
|
|
6516
6516
|
}, [y]), f = (g, C, k) => {
|
|
6517
6517
|
if (!g || g.length === 0) return [];
|
|
@@ -6668,7 +6668,7 @@ const fu = ({
|
|
|
6668
6668
|
}
|
|
6669
6669
|
) : null,
|
|
6670
6670
|
/* @__PURE__ */ x(
|
|
6671
|
-
|
|
6671
|
+
Mi,
|
|
6672
6672
|
{
|
|
6673
6673
|
preGroups: q,
|
|
6674
6674
|
runs: de,
|
|
@@ -6686,8 +6686,8 @@ const fu = ({
|
|
|
6686
6686
|
)
|
|
6687
6687
|
}
|
|
6688
6688
|
);
|
|
6689
|
-
},
|
|
6690
|
-
function
|
|
6689
|
+
}, Co = 0.5;
|
|
6690
|
+
function hu(e, t) {
|
|
6691
6691
|
const n = ie(null), r = ie(null), o = ie(!1);
|
|
6692
6692
|
Se(() => {
|
|
6693
6693
|
const i = () => {
|
|
@@ -6703,7 +6703,7 @@ function pu(e, t) {
|
|
|
6703
6703
|
r.current = { w: d, h: m };
|
|
6704
6704
|
return;
|
|
6705
6705
|
}
|
|
6706
|
-
Math.abs(p.w - d) <
|
|
6706
|
+
Math.abs(p.w - d) < Co && Math.abs(p.h - m) < Co || (r.current = { w: d, h: m }, i());
|
|
6707
6707
|
});
|
|
6708
6708
|
e.forEach((l) => {
|
|
6709
6709
|
l.current && s.observe(l.current);
|
|
@@ -6714,7 +6714,7 @@ function pu(e, t) {
|
|
|
6714
6714
|
};
|
|
6715
6715
|
}, [e, t]);
|
|
6716
6716
|
}
|
|
6717
|
-
function
|
|
6717
|
+
function gu(e) {
|
|
6718
6718
|
const {
|
|
6719
6719
|
onPrev: t,
|
|
6720
6720
|
onNext: n,
|
|
@@ -6880,43 +6880,43 @@ function hu(e) {
|
|
|
6880
6880
|
onClick: w
|
|
6881
6881
|
};
|
|
6882
6882
|
}
|
|
6883
|
-
var jn,
|
|
6884
|
-
function
|
|
6885
|
-
if (
|
|
6886
|
-
|
|
6883
|
+
var jn, To;
|
|
6884
|
+
function Li() {
|
|
6885
|
+
if (To) return jn;
|
|
6886
|
+
To = 1;
|
|
6887
6887
|
function e(t) {
|
|
6888
6888
|
var n = typeof t;
|
|
6889
6889
|
return t != null && (n == "object" || n == "function");
|
|
6890
6890
|
}
|
|
6891
6891
|
return jn = e, jn;
|
|
6892
6892
|
}
|
|
6893
|
-
var Un,
|
|
6894
|
-
function
|
|
6895
|
-
if (
|
|
6896
|
-
|
|
6893
|
+
var Un, ko;
|
|
6894
|
+
function mu() {
|
|
6895
|
+
if (ko) return Un;
|
|
6896
|
+
ko = 1;
|
|
6897
6897
|
var e = typeof an == "object" && an && an.Object === Object && an;
|
|
6898
6898
|
return Un = e, Un;
|
|
6899
6899
|
}
|
|
6900
|
-
var Kn,
|
|
6901
|
-
function
|
|
6902
|
-
if (
|
|
6903
|
-
|
|
6904
|
-
var e =
|
|
6900
|
+
var Kn, Ro;
|
|
6901
|
+
function Gi() {
|
|
6902
|
+
if (Ro) return Kn;
|
|
6903
|
+
Ro = 1;
|
|
6904
|
+
var e = mu(), t = typeof self == "object" && self && self.Object === Object && self, n = e || t || Function("return this")();
|
|
6905
6905
|
return Kn = n, Kn;
|
|
6906
6906
|
}
|
|
6907
|
-
var Xn,
|
|
6908
|
-
function
|
|
6909
|
-
if (
|
|
6910
|
-
|
|
6911
|
-
var e =
|
|
6907
|
+
var Xn, _o;
|
|
6908
|
+
function bu() {
|
|
6909
|
+
if (_o) return Xn;
|
|
6910
|
+
_o = 1;
|
|
6911
|
+
var e = Gi(), t = function() {
|
|
6912
6912
|
return e.Date.now();
|
|
6913
6913
|
};
|
|
6914
6914
|
return Xn = t, Xn;
|
|
6915
6915
|
}
|
|
6916
|
-
var Yn,
|
|
6917
|
-
function
|
|
6918
|
-
if (
|
|
6919
|
-
|
|
6916
|
+
var Yn, Mo;
|
|
6917
|
+
function vu() {
|
|
6918
|
+
if (Mo) return Yn;
|
|
6919
|
+
Mo = 1;
|
|
6920
6920
|
var e = /\s/;
|
|
6921
6921
|
function t(n) {
|
|
6922
6922
|
for (var r = n.length; r-- && e.test(n.charAt(r)); )
|
|
@@ -6925,28 +6925,28 @@ function bu() {
|
|
|
6925
6925
|
}
|
|
6926
6926
|
return Yn = t, Yn;
|
|
6927
6927
|
}
|
|
6928
|
-
var Qn,
|
|
6929
|
-
function
|
|
6930
|
-
if (
|
|
6931
|
-
|
|
6932
|
-
var e =
|
|
6928
|
+
var Qn, Eo;
|
|
6929
|
+
function Su() {
|
|
6930
|
+
if (Eo) return Qn;
|
|
6931
|
+
Eo = 1;
|
|
6932
|
+
var e = vu(), t = /^\s+/;
|
|
6933
6933
|
function n(r) {
|
|
6934
6934
|
return r && r.slice(0, e(r) + 1).replace(t, "");
|
|
6935
6935
|
}
|
|
6936
6936
|
return Qn = n, Qn;
|
|
6937
6937
|
}
|
|
6938
|
-
var Zn,
|
|
6939
|
-
function
|
|
6940
|
-
if (
|
|
6941
|
-
|
|
6942
|
-
var e =
|
|
6938
|
+
var Zn, Oo;
|
|
6939
|
+
function Hi() {
|
|
6940
|
+
if (Oo) return Zn;
|
|
6941
|
+
Oo = 1;
|
|
6942
|
+
var e = Gi(), t = e.Symbol;
|
|
6943
6943
|
return Zn = t, Zn;
|
|
6944
6944
|
}
|
|
6945
|
-
var Jn,
|
|
6946
|
-
function
|
|
6947
|
-
if (
|
|
6948
|
-
|
|
6949
|
-
var e =
|
|
6945
|
+
var Jn, Po;
|
|
6946
|
+
function yu() {
|
|
6947
|
+
if (Po) return Jn;
|
|
6948
|
+
Po = 1;
|
|
6949
|
+
var e = Hi(), t = Object.prototype, n = t.hasOwnProperty, r = t.toString, o = e ? e.toStringTag : void 0;
|
|
6950
6950
|
function i(s) {
|
|
6951
6951
|
var c = n.call(s, o), l = s[o];
|
|
6952
6952
|
try {
|
|
@@ -6959,50 +6959,50 @@ function Su() {
|
|
|
6959
6959
|
}
|
|
6960
6960
|
return Jn = i, Jn;
|
|
6961
6961
|
}
|
|
6962
|
-
var er,
|
|
6963
|
-
function
|
|
6964
|
-
if (
|
|
6965
|
-
|
|
6962
|
+
var er, Bo;
|
|
6963
|
+
function xu() {
|
|
6964
|
+
if (Bo) return er;
|
|
6965
|
+
Bo = 1;
|
|
6966
6966
|
var e = Object.prototype, t = e.toString;
|
|
6967
6967
|
function n(r) {
|
|
6968
6968
|
return t.call(r);
|
|
6969
6969
|
}
|
|
6970
6970
|
return er = n, er;
|
|
6971
6971
|
}
|
|
6972
|
-
var tr,
|
|
6973
|
-
function
|
|
6974
|
-
if (
|
|
6975
|
-
|
|
6976
|
-
var e =
|
|
6972
|
+
var tr, zo;
|
|
6973
|
+
function wu() {
|
|
6974
|
+
if (zo) return tr;
|
|
6975
|
+
zo = 1;
|
|
6976
|
+
var e = Hi(), t = yu(), n = xu(), r = "[object Null]", o = "[object Undefined]", i = e ? e.toStringTag : void 0;
|
|
6977
6977
|
function s(c) {
|
|
6978
6978
|
return c == null ? c === void 0 ? o : r : i && i in Object(c) ? t(c) : n(c);
|
|
6979
6979
|
}
|
|
6980
6980
|
return tr = s, tr;
|
|
6981
6981
|
}
|
|
6982
|
-
var nr,
|
|
6983
|
-
function
|
|
6984
|
-
if (
|
|
6985
|
-
|
|
6982
|
+
var nr, Ao;
|
|
6983
|
+
function Iu() {
|
|
6984
|
+
if (Ao) return nr;
|
|
6985
|
+
Ao = 1;
|
|
6986
6986
|
function e(t) {
|
|
6987
6987
|
return t != null && typeof t == "object";
|
|
6988
6988
|
}
|
|
6989
6989
|
return nr = e, nr;
|
|
6990
6990
|
}
|
|
6991
|
-
var rr,
|
|
6992
|
-
function
|
|
6993
|
-
if (
|
|
6994
|
-
|
|
6995
|
-
var e =
|
|
6991
|
+
var rr, Lo;
|
|
6992
|
+
function Cu() {
|
|
6993
|
+
if (Lo) return rr;
|
|
6994
|
+
Lo = 1;
|
|
6995
|
+
var e = wu(), t = Iu(), n = "[object Symbol]";
|
|
6996
6996
|
function r(o) {
|
|
6997
6997
|
return typeof o == "symbol" || t(o) && e(o) == n;
|
|
6998
6998
|
}
|
|
6999
6999
|
return rr = r, rr;
|
|
7000
7000
|
}
|
|
7001
|
-
var or,
|
|
7002
|
-
function
|
|
7003
|
-
if (
|
|
7004
|
-
|
|
7005
|
-
var e =
|
|
7001
|
+
var or, Go;
|
|
7002
|
+
function Tu() {
|
|
7003
|
+
if (Go) return or;
|
|
7004
|
+
Go = 1;
|
|
7005
|
+
var e = Su(), t = Li(), n = Cu(), r = NaN, o = /^[-+]0x[0-9a-f]+$/i, i = /^0b[01]+$/i, s = /^0o[0-7]+$/i, c = parseInt;
|
|
7006
7006
|
function l(a) {
|
|
7007
7007
|
if (typeof a == "number")
|
|
7008
7008
|
return a;
|
|
@@ -7020,11 +7020,11 @@ function Cu() {
|
|
|
7020
7020
|
}
|
|
7021
7021
|
return or = l, or;
|
|
7022
7022
|
}
|
|
7023
|
-
var ir,
|
|
7024
|
-
function
|
|
7025
|
-
if (
|
|
7026
|
-
|
|
7027
|
-
var e =
|
|
7023
|
+
var ir, Ho;
|
|
7024
|
+
function ku() {
|
|
7025
|
+
if (Ho) return ir;
|
|
7026
|
+
Ho = 1;
|
|
7027
|
+
var e = Li(), t = bu(), n = Tu(), r = "Expected a function", o = Math.max, i = Math.min;
|
|
7028
7028
|
function s(c, l, a) {
|
|
7029
7029
|
var d, m, p, b, v, y, u = 0, f = !1, g = !1, C = !0;
|
|
7030
7030
|
if (typeof c != "function")
|
|
@@ -7074,9 +7074,9 @@ function Tu() {
|
|
|
7074
7074
|
}
|
|
7075
7075
|
return ir = s, ir;
|
|
7076
7076
|
}
|
|
7077
|
-
var
|
|
7078
|
-
const
|
|
7079
|
-
function
|
|
7077
|
+
var Ru = ku();
|
|
7078
|
+
const _u = /* @__PURE__ */ jo(Ru);
|
|
7079
|
+
function Mu(e, t = 200, n, r) {
|
|
7080
7080
|
const o = ie(e), i = ie(n);
|
|
7081
7081
|
Se(() => {
|
|
7082
7082
|
o.current = e;
|
|
@@ -7084,7 +7084,7 @@ function _u(e, t = 200, n, r) {
|
|
|
7084
7084
|
i.current = n;
|
|
7085
7085
|
}, [n]);
|
|
7086
7086
|
const s = ve(() => {
|
|
7087
|
-
const c =
|
|
7087
|
+
const c = _u(
|
|
7088
7088
|
(...a) => {
|
|
7089
7089
|
o.current(...a);
|
|
7090
7090
|
},
|
|
@@ -7098,39 +7098,52 @@ function _u(e, t = 200, n, r) {
|
|
|
7098
7098
|
}, [t, r]);
|
|
7099
7099
|
return Se(() => () => s.cancel(), [s]), s;
|
|
7100
7100
|
}
|
|
7101
|
-
const
|
|
7102
|
-
|
|
7103
|
-
|
|
7101
|
+
const Eu = "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";
|
|
7102
|
+
let sr = !1;
|
|
7103
|
+
function Ou() {
|
|
7104
|
+
if (sr || typeof document > "u") return;
|
|
7105
|
+
if (document.querySelector(
|
|
7106
|
+
'link[href*="fonts.googleapis.com"][href*="Noto"]'
|
|
7107
|
+
)) {
|
|
7108
|
+
sr = !0;
|
|
7109
|
+
return;
|
|
7110
|
+
}
|
|
7111
|
+
const t = document.createElement("link");
|
|
7112
|
+
t.rel = "stylesheet", t.href = Eu, document.head.appendChild(t), sr = !0;
|
|
7113
|
+
}
|
|
7114
|
+
const Ni = /* @__PURE__ */ new Map(), Fi = (e) => Ni.get(e) ?? 0, Pu = (e) => {
|
|
7115
|
+
const t = Fi(e) + 1;
|
|
7116
|
+
return Ni.set(e, t), t;
|
|
7104
7117
|
};
|
|
7105
|
-
class
|
|
7118
|
+
class Wi extends Error {
|
|
7106
7119
|
constructor() {
|
|
7107
7120
|
super("calcPages canceled due to a newer invocation");
|
|
7108
|
-
|
|
7121
|
+
Lr(this, "code", "CALC_PAGES_CANCELED");
|
|
7109
7122
|
this.name = "CalcPagesCanceled";
|
|
7110
7123
|
}
|
|
7111
7124
|
}
|
|
7112
|
-
const
|
|
7113
|
-
if (e !==
|
|
7114
|
-
},
|
|
7125
|
+
const tt = (e, t) => {
|
|
7126
|
+
if (e !== Fi(t)) throw new Wi();
|
|
7127
|
+
}, lr = (e) => {
|
|
7115
7128
|
const t = getComputedStyle(e), n = parseFloat(t.marginTop || "0") || 0, r = parseFloat(t.marginBottom || "0") || 0;
|
|
7116
7129
|
return { mt: n, mb: r };
|
|
7117
|
-
},
|
|
7130
|
+
}, No = (e) => {
|
|
7118
7131
|
const t = e.getClientRects(), n = t.length ? t[0].top : e.getBoundingClientRect().top, r = e.querySelectorAll("[data-runbox]"), o = [];
|
|
7119
7132
|
return r.forEach((i, s) => {
|
|
7120
7133
|
const c = i.getClientRects(), l = c.length ? c[c.length - 1].bottom : n;
|
|
7121
7134
|
o[s] = Math.max(0, l - n);
|
|
7122
7135
|
}), o;
|
|
7123
|
-
},
|
|
7136
|
+
}, Bu = (e, t, n) => {
|
|
7124
7137
|
if (n < 16)
|
|
7125
7138
|
return async (o = 24) => {
|
|
7126
|
-
|
|
7139
|
+
tt(e, t);
|
|
7127
7140
|
};
|
|
7128
7141
|
let r = 0;
|
|
7129
7142
|
return async (o = 24) => {
|
|
7130
|
-
r++, r % o === 0 && (
|
|
7143
|
+
r++, r % o === 0 && (tt(e, t), await new Promise((i) => requestAnimationFrame(() => i())), tt(e, t));
|
|
7131
7144
|
};
|
|
7132
7145
|
};
|
|
7133
|
-
async function
|
|
7146
|
+
async function zu({
|
|
7134
7147
|
viewHost: e,
|
|
7135
7148
|
measureRoot: t,
|
|
7136
7149
|
contentArea: n,
|
|
@@ -7149,13 +7162,21 @@ async function Ou({
|
|
|
7149
7162
|
instanceId: y = "default"
|
|
7150
7163
|
}) {
|
|
7151
7164
|
var f, g, C;
|
|
7152
|
-
const u =
|
|
7153
|
-
|
|
7165
|
+
const u = Pu(y);
|
|
7166
|
+
if (tt(u, y), s && typeof document < "u" && document.fonts) {
|
|
7167
|
+
Ou();
|
|
7168
|
+
try {
|
|
7169
|
+
const k = `${c}px ${s}`;
|
|
7170
|
+
await document.fonts.load(k), document.fonts.check(k) || await document.fonts.ready;
|
|
7171
|
+
} catch {
|
|
7172
|
+
}
|
|
7173
|
+
}
|
|
7174
|
+
tt(u, y);
|
|
7154
7175
|
try {
|
|
7155
7176
|
const k = Math.abs(b - 1) > 1e-3, R = 1 / b;
|
|
7156
7177
|
k && (t.style.transform = `scale(${R})`, t.style.transformOrigin = "top left");
|
|
7157
7178
|
const I = Math.max(0, e.offsetWidth || 0), h = Math.max(0, Math.min(I, o));
|
|
7158
|
-
t.style.maxWidth = `${h}px`,
|
|
7179
|
+
t.style.maxWidth = `${h}px`, tt(u, y);
|
|
7159
7180
|
let S = Math.round(n.offsetHeight || 0);
|
|
7160
7181
|
S || (S = Math.max(0, n.clientHeight | 0)), console.log(
|
|
7161
7182
|
"[calcPages] playbackScale:",
|
|
@@ -7180,7 +7201,7 @@ async function Ou({
|
|
|
7180
7201
|
G.style.boxSizing = "border-box", G.style.width = `${_}px`, G.style.maxWidth = `${_}px`, G.style.margin = "0 auto", G.style.display = "flex", n.appendChild(G);
|
|
7181
7202
|
const M = document.createElement("div");
|
|
7182
7203
|
M.style.boxSizing = "border-box", M.style.paddingRight = `${i}px`, M.style.paddingLeft = `${i}px`, M.style.width = `${_}px`, M.style.maxWidth = `${_}px`, M.style.margin = "0 auto", M.style.display = "flex", M.style.justifyContent = "center", M.style.height = "auto", G.appendChild(M);
|
|
7183
|
-
const B = /* @__PURE__ */ new Map(), F = {}, V =
|
|
7204
|
+
const B = /* @__PURE__ */ new Map(), F = {}, V = Bu(u, y, r.length), q = (N, oe) => {
|
|
7184
7205
|
const $ = document.createElement("p");
|
|
7185
7206
|
return $.style.margin = "8px 0", $.style.paddingLeft = oe ? `${oe}px` : "0", $.style.textAlign = N.textAlign ?? "start", $.style.whiteSpace = "pre-wrap", $.style.lineHeight = String(l), $.style.fontSize = `${c}px`, $.style.boxSizing = "border-box", $.style.fontFamily = s ?? "", $.style.width = "100%", w($), $;
|
|
7186
7207
|
}, ue = (N, oe) => {
|
|
@@ -7215,12 +7236,12 @@ async function Ou({
|
|
|
7215
7236
|
return $;
|
|
7216
7237
|
};
|
|
7217
7238
|
for (let N = 0; N < r.length; N++) {
|
|
7218
|
-
|
|
7239
|
+
tt(u, y);
|
|
7219
7240
|
const oe = r[N];
|
|
7220
7241
|
if (M.dataset.block = String(N), M.innerHTML = "", oe.kind === "image") {
|
|
7221
7242
|
const Te = oe.block, Oe = ke(Te);
|
|
7222
7243
|
M.appendChild(Oe);
|
|
7223
|
-
const Ne = Oe.getBoundingClientRect(), { mt: Ae, mb: $e } =
|
|
7244
|
+
const Ne = Oe.getBoundingClientRect(), { mt: Ae, mb: $e } = lr(Oe);
|
|
7224
7245
|
F[N] = { contentH: Math.ceil(Ne.height), mt: Ae, mb: $e }, await V(24);
|
|
7225
7246
|
continue;
|
|
7226
7247
|
}
|
|
@@ -7240,7 +7261,7 @@ async function Ou({
|
|
|
7240
7261
|
}
|
|
7241
7262
|
const le = M.querySelector('p[data-variant="with"]'), we = M.querySelector('p[data-variant="no"]'), me = we ?? le;
|
|
7242
7263
|
if (le && me) {
|
|
7243
|
-
const Te =
|
|
7264
|
+
const Te = No(le), Oe = No(me), { mt: Ne, mb: Ae } = lr(le), { mt: $e, mb: dt } = lr(me), Xe = ((C = $.runs) == null ? void 0 : C.length) ?? 0, Ge = we ? Oe : Te, st = we ? $e : Ne, et = we ? dt : Ae;
|
|
7244
7265
|
if (N < 3) {
|
|
7245
7266
|
const bt = le.getBoundingClientRect().height;
|
|
7246
7267
|
console.log(
|
|
@@ -7253,13 +7274,13 @@ async function Ou({
|
|
|
7253
7274
|
lastBottomNo: Ge,
|
|
7254
7275
|
mtWith: Ne,
|
|
7255
7276
|
mbWith: Ae,
|
|
7256
|
-
mtNo:
|
|
7277
|
+
mtNo: st,
|
|
7257
7278
|
mbNo: et
|
|
7258
7279
|
});
|
|
7259
7280
|
}
|
|
7260
7281
|
await V(24);
|
|
7261
7282
|
}
|
|
7262
|
-
|
|
7283
|
+
tt(u, y), M.innerHTML = "";
|
|
7263
7284
|
const Re = (N, oe, $, J) => {
|
|
7264
7285
|
if (oe > $) return { top: 0, content: 0, mb: 0 };
|
|
7265
7286
|
const se = J ? N.lastBottomNo : N.lastBottomWith, re = J ? N.mtNo : N.mtWith, pe = J ? N.mbNo : N.mbWith, le = J ? 0 : re, we = oe > 0 ? se[oe - 1] ?? 0 : 0, me = Math.max(0, (se[$] ?? 0) - we);
|
|
@@ -7267,13 +7288,13 @@ async function Ou({
|
|
|
7267
7288
|
}, ee = [];
|
|
7268
7289
|
let X = 0, A, K = null, ne = null;
|
|
7269
7290
|
for (; X < r.length; ) {
|
|
7270
|
-
|
|
7291
|
+
tt(u, y);
|
|
7271
7292
|
const N = X;
|
|
7272
7293
|
let oe = 0, $ = 0, J = A;
|
|
7273
7294
|
J != null && K === X && ne != null && (J = Math.max(J, ne + 1));
|
|
7274
7295
|
let se = -1, re;
|
|
7275
7296
|
for (; X < r.length; ) {
|
|
7276
|
-
if (
|
|
7297
|
+
if (tt(u, y), r[X].kind === "image") {
|
|
7277
7298
|
const Ge = F[X] ?? { contentH: 0, mt: 0, mb: 0 }, et = (oe === 0 ? Ge.mt : $ + Ge.mt) + Ge.contentH;
|
|
7278
7299
|
if (E(et, oe)) {
|
|
7279
7300
|
oe += et, se = X, re = void 0, $ = Ge.mb, X += 1, A = void 0, K = null, ne = null;
|
|
@@ -7302,8 +7323,8 @@ async function Ou({
|
|
|
7302
7323
|
}
|
|
7303
7324
|
let $e = me, dt = we - 1, Xe = me - 1;
|
|
7304
7325
|
for (; $e <= dt; ) {
|
|
7305
|
-
|
|
7306
|
-
const Ge = $e + dt >> 1,
|
|
7326
|
+
tt(u, y);
|
|
7327
|
+
const Ge = $e + dt >> 1, st = Re(le, me, Ge, Te), et = (oe === 0 ? st.top : $ + st.top) + st.content;
|
|
7307
7328
|
E(et, oe) ? (Xe = Ge, $e = Ge + 1) : dt = Ge - 1;
|
|
7308
7329
|
}
|
|
7309
7330
|
if (Xe >= me) {
|
|
@@ -7341,12 +7362,12 @@ async function Ou({
|
|
|
7341
7362
|
...re != null ? { endOffsetInBlock: re } : {}
|
|
7342
7363
|
});
|
|
7343
7364
|
}
|
|
7344
|
-
return G.remove(), k && (t.style.transform = "", t.style.transformOrigin = ""),
|
|
7365
|
+
return G.remove(), k && (t.style.transform = "", t.style.transformOrigin = ""), tt(u, y), { pages: ee, pageByRunIndex: null };
|
|
7345
7366
|
} catch (k) {
|
|
7346
7367
|
throw console.error(k), k;
|
|
7347
7368
|
}
|
|
7348
7369
|
}
|
|
7349
|
-
function
|
|
7370
|
+
function Fo(e, t, n) {
|
|
7350
7371
|
var r;
|
|
7351
7372
|
if (!e) return null;
|
|
7352
7373
|
for (let o = e.startBlock; o <= e.endBlock; o++) {
|
|
@@ -7359,7 +7380,7 @@ function No(e, t, n) {
|
|
|
7359
7380
|
}
|
|
7360
7381
|
return null;
|
|
7361
7382
|
}
|
|
7362
|
-
function
|
|
7383
|
+
function Au(e, t, n, r) {
|
|
7363
7384
|
var o;
|
|
7364
7385
|
for (let i = 0; i < t.length; i++) {
|
|
7365
7386
|
const s = t[i];
|
|
@@ -7376,19 +7397,19 @@ function Pu(e, t, n, r) {
|
|
|
7376
7397
|
}
|
|
7377
7398
|
return -1;
|
|
7378
7399
|
}
|
|
7379
|
-
function
|
|
7400
|
+
function Lu(e) {
|
|
7380
7401
|
var r, o;
|
|
7381
7402
|
const t = e;
|
|
7382
7403
|
if (!t) return !1;
|
|
7383
7404
|
const n = ((o = (r = t.tagName) == null ? void 0 : r.toLowerCase) == null ? void 0 : o.call(r)) ?? "";
|
|
7384
7405
|
return !!(["a", "button", "input", "textarea", "select", "label"].includes(n) || t.isContentEditable);
|
|
7385
7406
|
}
|
|
7386
|
-
function
|
|
7407
|
+
function Gu(e) {
|
|
7387
7408
|
var n, r;
|
|
7388
7409
|
const t = e;
|
|
7389
7410
|
return t ? ((n = t.style) == null ? void 0 : n.cursor) === "grab" || ((r = t.closest) == null ? void 0 : r.call(t, "[data-range-handle]")) != null : !1;
|
|
7390
7411
|
}
|
|
7391
|
-
function
|
|
7412
|
+
function Hu(e) {
|
|
7392
7413
|
const t = [], n = [];
|
|
7393
7414
|
let r = 0;
|
|
7394
7415
|
return e.forEach((o, i) => {
|
|
@@ -7400,23 +7421,23 @@ function Au(e) {
|
|
|
7400
7421
|
}), n.push(i), r += 1) : o.type === "image" && t.push({ kind: "image", block: o, originalIndex: i });
|
|
7401
7422
|
}), { items: t, paraIndexMap: n };
|
|
7402
7423
|
}
|
|
7403
|
-
function
|
|
7404
|
-
var
|
|
7405
|
-
const e =
|
|
7406
|
-
var
|
|
7407
|
-
return
|
|
7424
|
+
function Nu() {
|
|
7425
|
+
var Ar;
|
|
7426
|
+
const e = Ui(), t = j((D) => D.section), n = j((D) => D.sectionLoading), r = j((D) => D.rangeStartGI), o = j((D) => D.rangeEndGI), i = r != null && o != null, s = Et(), c = Y((D) => D.theme), l = bn[c], a = Y((D) => D.fontFamily), d = Y((D) => D.fontSizePx), m = Y((D) => D.lineHeight), p = Y((D) => D.marginX), b = Y((D) => D.viewportHeight), v = 860, y = ie(null), { items: u } = ve(() => {
|
|
7427
|
+
var D;
|
|
7428
|
+
return Hu(((D = t == null ? void 0 : t.ast) == null ? void 0 : D.blocks) ?? []);
|
|
7408
7429
|
}, [t]), f = ve(() => {
|
|
7409
|
-
const
|
|
7410
|
-
return u.forEach((
|
|
7411
|
-
if (
|
|
7412
|
-
const Ct =
|
|
7413
|
-
|
|
7430
|
+
const D = [], He = Pr();
|
|
7431
|
+
return u.forEach((We) => {
|
|
7432
|
+
if (We.kind === "paragraph") {
|
|
7433
|
+
const Ct = We.paraIndex;
|
|
7434
|
+
D[Ct] = Br(We.block, He);
|
|
7414
7435
|
}
|
|
7415
|
-
}),
|
|
7416
|
-
}, [u]), [g, C] =
|
|
7436
|
+
}), D;
|
|
7437
|
+
}, [u]), [g, C] = nt({
|
|
7417
7438
|
pages: [],
|
|
7418
7439
|
pageByRunIndex: null
|
|
7419
|
-
}), k = j((
|
|
7440
|
+
}), k = j((D) => D.pageIndex), R = j((D) => D.setPageIndex), I = ie(0), h = ie(null), [S, T] = nt(!1), [E, O] = nt(null), [z, w] = nt(!1), _ = ve(
|
|
7420
7441
|
() => ({
|
|
7421
7442
|
flex: 1,
|
|
7422
7443
|
fontFamily: a,
|
|
@@ -7439,35 +7460,35 @@ function Lu() {
|
|
|
7439
7460
|
breakGapPx: G,
|
|
7440
7461
|
slash: M
|
|
7441
7462
|
} = Y(
|
|
7442
|
-
nn((
|
|
7463
|
+
nn((D) => {
|
|
7443
7464
|
var He;
|
|
7444
7465
|
return {
|
|
7445
|
-
showSplit:
|
|
7446
|
-
breakGapPx:
|
|
7447
|
-
slash: ((He =
|
|
7466
|
+
showSplit: D.showSplit,
|
|
7467
|
+
breakGapPx: D.breakGapPx ?? 0,
|
|
7468
|
+
slash: ((He = D.breakMarks) == null ? void 0 : He.slash) ?? !1
|
|
7448
7469
|
};
|
|
7449
7470
|
})
|
|
7450
7471
|
), B = Rt();
|
|
7451
7472
|
Se(() => {
|
|
7452
7473
|
g && g.pages.length && (console.log("그래서 총 페이지", g.pages.length), (async () => {
|
|
7453
|
-
const
|
|
7454
|
-
await vt(), await vt(), await vt(), await vt(), console.log("recalc종료"),
|
|
7474
|
+
const D = B.getState().progress.setSectionLoading;
|
|
7475
|
+
await vt(), await vt(), await vt(), await vt(), console.log("recalc종료"), D(!1);
|
|
7455
7476
|
})());
|
|
7456
7477
|
}, [g, B]);
|
|
7457
7478
|
const F = Q(() => {
|
|
7458
7479
|
console.log("@@@@@@recalc호출");
|
|
7459
|
-
const
|
|
7460
|
-
if (console.log("showSplit", P), !
|
|
7480
|
+
const D = y.current, He = le.current, We = we.current;
|
|
7481
|
+
if (console.log("showSplit", P), !D || !He || !We || u.length === 0) {
|
|
7461
7482
|
C({ pages: [], pageByRunIndex: null }), R(0);
|
|
7462
7483
|
return;
|
|
7463
7484
|
}
|
|
7464
7485
|
(async () => {
|
|
7465
7486
|
const Ct = performance.now();
|
|
7466
7487
|
try {
|
|
7467
|
-
const
|
|
7468
|
-
viewHost:
|
|
7488
|
+
const lt = s.getState().playbackScale, { pages: Bt, pageByRunIndex: $i } = await zu({
|
|
7489
|
+
viewHost: D,
|
|
7469
7490
|
measureRoot: He,
|
|
7470
|
-
contentArea:
|
|
7491
|
+
contentArea: We,
|
|
7471
7492
|
items: u,
|
|
7472
7493
|
cfgMaxWidth: v,
|
|
7473
7494
|
marginX: p,
|
|
@@ -7478,19 +7499,19 @@ function Lu() {
|
|
|
7478
7499
|
breakGapPx: G,
|
|
7479
7500
|
showSlash: M,
|
|
7480
7501
|
paragraphMarkers: f,
|
|
7481
|
-
playbackScale:
|
|
7502
|
+
playbackScale: lt,
|
|
7482
7503
|
viewportHeight: b,
|
|
7483
7504
|
instanceId: e
|
|
7484
|
-
}),
|
|
7505
|
+
}), Vi = performance.now();
|
|
7485
7506
|
console.log(
|
|
7486
|
-
`✅ calcPages 완료: ${(
|
|
7487
|
-
), C({ pages: Bt, pageByRunIndex:
|
|
7488
|
-
} catch (
|
|
7489
|
-
if (
|
|
7507
|
+
`✅ calcPages 완료: ${(Vi - Ct).toFixed(1)} ms (${Bt.length} pages)`
|
|
7508
|
+
), C({ pages: Bt, pageByRunIndex: $i }), R(0);
|
|
7509
|
+
} catch (lt) {
|
|
7510
|
+
if (lt instanceof Wi) {
|
|
7490
7511
|
console.log("이젠실행 취소 들어옴!");
|
|
7491
7512
|
return;
|
|
7492
7513
|
}
|
|
7493
|
-
console.log("에러발생",
|
|
7514
|
+
console.log("에러발생", lt);
|
|
7494
7515
|
}
|
|
7495
7516
|
})();
|
|
7496
7517
|
}, [
|
|
@@ -7508,25 +7529,25 @@ function Lu() {
|
|
|
7508
7529
|
s,
|
|
7509
7530
|
b,
|
|
7510
7531
|
e
|
|
7511
|
-
]), V = j((
|
|
7532
|
+
]), V = j((D) => D.setCurrentGlobalRunIndex), q = j((D) => {
|
|
7512
7533
|
var He;
|
|
7513
|
-
return ((He =
|
|
7514
|
-
}), ue = _e((
|
|
7515
|
-
(
|
|
7516
|
-
const He = g.pages.length + 1,
|
|
7517
|
-
if (
|
|
7534
|
+
return ((He = D.layout) == null ? void 0 : He.prefix) ?? [];
|
|
7535
|
+
}), ue = _e((D) => D.syncToGI), de = Q(
|
|
7536
|
+
(D) => {
|
|
7537
|
+
const He = g.pages.length + 1, We = k + D;
|
|
7538
|
+
if (We < 0 || We >= He) return;
|
|
7518
7539
|
const Ct = k === g.pages.length;
|
|
7519
|
-
if (
|
|
7520
|
-
R(
|
|
7540
|
+
if (We === g.pages.length) {
|
|
7541
|
+
R(We);
|
|
7521
7542
|
return;
|
|
7522
7543
|
}
|
|
7523
|
-
if (Ct &&
|
|
7524
|
-
const Bt =
|
|
7525
|
-
Bt != null && (V(Bt, "scrubber-step"), ue(Bt)), R(
|
|
7544
|
+
if (Ct && D === -1) {
|
|
7545
|
+
const Bt = Fo(g.pages[We], u, q);
|
|
7546
|
+
Bt != null && (V(Bt, "scrubber-step"), ue(Bt)), R(We);
|
|
7526
7547
|
return;
|
|
7527
7548
|
}
|
|
7528
|
-
const
|
|
7529
|
-
|
|
7549
|
+
const lt = Fo(g.pages[We], u, q);
|
|
7550
|
+
lt != null ? (V(lt, "scrubber-step"), ue(lt)) : R(We);
|
|
7530
7551
|
},
|
|
7531
7552
|
[k, g.pages, u, q, V, R, ue]
|
|
7532
7553
|
), ke = Q(() => {
|
|
@@ -7534,26 +7555,26 @@ function Lu() {
|
|
|
7534
7555
|
}, [S, de]), Re = Q(() => {
|
|
7535
7556
|
S || I.current !== 0 ? (O("next"), T(!1)) : de(1);
|
|
7536
7557
|
}, [S, de]), ee = kn(), X = Q(() => {
|
|
7537
|
-
const { isSettingsOpen:
|
|
7538
|
-
|
|
7539
|
-
}, [ee]), A = g.pages.length + 1, K = ((
|
|
7540
|
-
var
|
|
7558
|
+
const { isSettingsOpen: D, setSettingsOpen: He, toggleOverlays: We } = ee.getState();
|
|
7559
|
+
D ? He(!1) : We();
|
|
7560
|
+
}, [ee]), A = g.pages.length + 1, K = ((Ar = y.current) == null ? void 0 : Ar.clientWidth) || 400, ne = Q((D) => {
|
|
7561
|
+
var lt;
|
|
7541
7562
|
const He = h.current;
|
|
7542
7563
|
if (!He) return;
|
|
7543
|
-
const
|
|
7564
|
+
const We = ((lt = y.current) == null ? void 0 : lt.clientWidth) || 1, Ct = D / We * 33.333;
|
|
7544
7565
|
He.style.transform = `translate3d(${-33.333 + Ct}%, 0, 0)`;
|
|
7545
7566
|
}, []), N = Q(
|
|
7546
|
-
(
|
|
7547
|
-
k === 0 &&
|
|
7567
|
+
(D) => {
|
|
7568
|
+
k === 0 && D > 0 || k >= A - 1 && D < 0 || (I.current = D, ne(D), S || T(!0));
|
|
7548
7569
|
},
|
|
7549
7570
|
[k, A, ne, S]
|
|
7550
7571
|
), oe = Q(() => {
|
|
7551
7572
|
I.current = 0, T(!1);
|
|
7552
|
-
const
|
|
7553
|
-
|
|
7573
|
+
const D = h.current;
|
|
7574
|
+
D && (D.style.transition = "transform 250ms ease-out", D.style.transform = "translate3d(-33.333%, 0, 0)");
|
|
7554
7575
|
}, []), $ = Q(
|
|
7555
|
-
(
|
|
7556
|
-
if (
|
|
7576
|
+
(D) => {
|
|
7577
|
+
if (D.target !== D.currentTarget || D.propertyName !== "transform") return;
|
|
7557
7578
|
const He = E;
|
|
7558
7579
|
w(!0), O(null), I.current = 0, He === "prev" ? de(-1) : He === "next" && de(1);
|
|
7559
7580
|
},
|
|
@@ -7567,12 +7588,12 @@ function Lu() {
|
|
|
7567
7588
|
});
|
|
7568
7589
|
}, [z]);
|
|
7569
7590
|
const J = yn(), se = Q(
|
|
7570
|
-
(
|
|
7591
|
+
(D) => i || Gu(D) ? !0 : Lu(D),
|
|
7571
7592
|
[i]
|
|
7572
7593
|
), re = Q(
|
|
7573
|
-
(
|
|
7594
|
+
(D) => J.getState().status === "playing" ? !0 : se(D),
|
|
7574
7595
|
[J, se]
|
|
7575
|
-
), pe =
|
|
7596
|
+
), pe = gu({
|
|
7576
7597
|
onPrev: ke,
|
|
7577
7598
|
onNext: Re,
|
|
7578
7599
|
onSingle: X,
|
|
@@ -7588,8 +7609,8 @@ function Lu() {
|
|
|
7588
7609
|
onDragEnd: oe,
|
|
7589
7610
|
pageTransitionThreshold: K * 0.5
|
|
7590
7611
|
}), le = ie(null), we = ie(null), me = Q(() => {
|
|
7591
|
-
const
|
|
7592
|
-
|
|
7612
|
+
const D = B.getState().progress.setSectionLoading;
|
|
7613
|
+
D(!0);
|
|
7593
7614
|
}, [B]), Te = ve(
|
|
7594
7615
|
() => ({
|
|
7595
7616
|
trailing: !0,
|
|
@@ -7597,11 +7618,11 @@ function Lu() {
|
|
|
7597
7618
|
maxWait: 1e3
|
|
7598
7619
|
}),
|
|
7599
7620
|
[]
|
|
7600
|
-
), Oe =
|
|
7621
|
+
), Oe = Mu(F, 200, me, Te), Ne = ie("");
|
|
7601
7622
|
Se(() => {
|
|
7602
7623
|
if (b <= 0) return;
|
|
7603
|
-
const
|
|
7604
|
-
Ne.current !==
|
|
7624
|
+
const D = `${a}|${d}|${m}|${p}|${P}|${G}|${M}|${b}|${t == null ? void 0 : t.section_id}`;
|
|
7625
|
+
Ne.current !== D && (Ne.current = D, console.log("debounceRecalc 취소"), Oe.cancel(), me(), F());
|
|
7605
7626
|
}, [
|
|
7606
7627
|
Oe,
|
|
7607
7628
|
F,
|
|
@@ -7615,8 +7636,8 @@ function Lu() {
|
|
|
7615
7636
|
M,
|
|
7616
7637
|
b,
|
|
7617
7638
|
t == null ? void 0 : t.section_id
|
|
7618
|
-
]),
|
|
7619
|
-
const Ae = j((
|
|
7639
|
+
]), hu([y], Oe);
|
|
7640
|
+
const Ae = j((D) => D.registerSectionScrollApi);
|
|
7620
7641
|
Se(() => (Ae({
|
|
7621
7642
|
// 페이지 모드에서는 GI 기반 스크롤 불필요 - 더미 구현
|
|
7622
7643
|
ensureVisibleGI: () => Promise.resolve(!0),
|
|
@@ -7630,7 +7651,7 @@ function Lu() {
|
|
|
7630
7651
|
// 페이지 이동 구현
|
|
7631
7652
|
stepPage: de
|
|
7632
7653
|
}), () => Ae(void 0)), [Ae, de]);
|
|
7633
|
-
const $e = t.quizzes && t.quizzes.length > 0, dt = g.pages.length > 0 && k === g.pages.length, Xe = k > 0 ? k - 1 : null, Ge = k < A - 1 ? k + 1 : null,
|
|
7654
|
+
const $e = t.quizzes && t.quizzes.length > 0, dt = g.pages.length > 0 && k === g.pages.length, Xe = k > 0 ? k - 1 : null, Ge = k < A - 1 ? k + 1 : null, st = ve(() => E === "prev" ? "translate3d(0%, 0, 0)" : E === "next" ? "translate3d(-66.666%, 0, 0)" : "translate3d(-33.333%, 0, 0)", [E]), et = (D) => n ? null : D === g.pages.length ? /* @__PURE__ */ Z(
|
|
7634
7655
|
"div",
|
|
7635
7656
|
{
|
|
7636
7657
|
style: {
|
|
@@ -7643,11 +7664,11 @@ function Lu() {
|
|
|
7643
7664
|
height: "100%"
|
|
7644
7665
|
},
|
|
7645
7666
|
children: [
|
|
7646
|
-
$e && /* @__PURE__ */ x(
|
|
7667
|
+
$e && /* @__PURE__ */ x(Pi, {}),
|
|
7647
7668
|
/* @__PURE__ */ x(Cn, { isIcon: !1 })
|
|
7648
7669
|
]
|
|
7649
7670
|
}
|
|
7650
|
-
) : /* @__PURE__ */ x(
|
|
7671
|
+
) : /* @__PURE__ */ x(pu, { pages: g.pages, pageIndex: D, maxWidth: v }), bt = {
|
|
7651
7672
|
width: "33.333%",
|
|
7652
7673
|
height: "100%",
|
|
7653
7674
|
flexShrink: 0,
|
|
@@ -7668,7 +7689,7 @@ function Lu() {
|
|
|
7668
7689
|
display: "flex",
|
|
7669
7690
|
width: "300%",
|
|
7670
7691
|
height: "100%",
|
|
7671
|
-
transform:
|
|
7692
|
+
transform: st,
|
|
7672
7693
|
transition: Vt ? "transform 250ms ease-out" : "none",
|
|
7673
7694
|
willChange: "transform",
|
|
7674
7695
|
// 항상 GPU 레이어 유지
|
|
@@ -7748,7 +7769,7 @@ function Lu() {
|
|
|
7748
7769
|
}
|
|
7749
7770
|
),
|
|
7750
7771
|
/* @__PURE__ */ x(
|
|
7751
|
-
|
|
7772
|
+
Fu,
|
|
7752
7773
|
{
|
|
7753
7774
|
pages: g.pages,
|
|
7754
7775
|
items: u,
|
|
@@ -7759,26 +7780,26 @@ function Lu() {
|
|
|
7759
7780
|
)
|
|
7760
7781
|
] });
|
|
7761
7782
|
}
|
|
7762
|
-
const
|
|
7783
|
+
const Fu = ({ pages: e, items: t, onGotoPage: n, currentPageIndex: r, isOnExtraPage: o }) => {
|
|
7763
7784
|
const i = j((a) => a.currentGlobalRunIndex), s = j((a) => a.lastUpdateBy), c = j((a) => {
|
|
7764
7785
|
var d;
|
|
7765
7786
|
return ((d = a.layout) == null ? void 0 : d.prefix) ?? [];
|
|
7766
|
-
}), l =
|
|
7787
|
+
}), l = W.useRef(null);
|
|
7767
7788
|
return Se(() => {
|
|
7768
7789
|
if (i == null || e.length === 0 || o && !(s === "scrubber-live" || s === "scrubber-commit") || l.current === i) return;
|
|
7769
7790
|
l.current = i;
|
|
7770
|
-
const a =
|
|
7791
|
+
const a = Au(i, e, t, c);
|
|
7771
7792
|
a >= 0 && a !== r && n(a);
|
|
7772
7793
|
}, [i, e, t, c, n, r, o, s]), /* @__PURE__ */ x(yt, {});
|
|
7773
|
-
},
|
|
7774
|
-
wrapper:
|
|
7775
|
-
spinner:
|
|
7794
|
+
}, Wu = "_wrapper_dbk3n_1", Du = "_spinner_dbk3n_10", Wo = {
|
|
7795
|
+
wrapper: Wu,
|
|
7796
|
+
spinner: Du
|
|
7776
7797
|
};
|
|
7777
|
-
function
|
|
7778
|
-
return /* @__PURE__ */ x("div", { className: `${
|
|
7798
|
+
function $u({ size: e = 28, speed: t = 0.8 }) {
|
|
7799
|
+
return /* @__PURE__ */ x("div", { className: `${Wo.wrapper}`, children: /* @__PURE__ */ x(
|
|
7779
7800
|
"div",
|
|
7780
7801
|
{
|
|
7781
|
-
className:
|
|
7802
|
+
className: Wo.spinner,
|
|
7782
7803
|
style: {
|
|
7783
7804
|
width: e,
|
|
7784
7805
|
height: e,
|
|
@@ -7788,56 +7809,56 @@ function Fu({ size: e = 28, speed: t = 0.8 }) {
|
|
|
7788
7809
|
}
|
|
7789
7810
|
) });
|
|
7790
7811
|
}
|
|
7791
|
-
function
|
|
7812
|
+
function Vu() {
|
|
7792
7813
|
const e = j(nn((t) => t.sectionLoading === !0));
|
|
7793
|
-
return /* @__PURE__ */ x(yt, { children: e === !0 && /* @__PURE__ */ x(
|
|
7794
|
-
}
|
|
7795
|
-
const
|
|
7796
|
-
Overlay:
|
|
7797
|
-
Dialog:
|
|
7798
|
-
Body:
|
|
7799
|
-
Header:
|
|
7800
|
-
Paging:
|
|
7801
|
-
Remaining:
|
|
7802
|
-
RemainingDanger:
|
|
7803
|
-
NextBtn:
|
|
7804
|
-
CloseBtn:
|
|
7805
|
-
Question:
|
|
7806
|
-
Score:
|
|
7807
|
-
Image:
|
|
7808
|
-
Options:
|
|
7809
|
-
OptionBtn:
|
|
7810
|
-
OptionBtnActive:
|
|
7811
|
-
Footer:
|
|
7812
|
-
OptionBtnCorrect:
|
|
7813
|
-
Judge:
|
|
7814
|
-
Correct:
|
|
7815
|
-
Incorrect:
|
|
7816
|
-
ResultHeader:
|
|
7817
|
-
ResultActions:
|
|
7818
|
-
CloseBtnSoft:
|
|
7819
|
-
SummaryGrid:
|
|
7820
|
-
StatCard:
|
|
7821
|
-
StatLabel:
|
|
7822
|
-
StatValue:
|
|
7823
|
-
StatSub:
|
|
7814
|
+
return /* @__PURE__ */ x(yt, { children: e === !0 && /* @__PURE__ */ x($u, {}) });
|
|
7815
|
+
}
|
|
7816
|
+
const qu = "_Overlay_ybic8_3", ju = "_Dialog_ybic8_15", Uu = "_Body_ybic8_25", Ku = "_Header_ybic8_32", Xu = "_Paging_ybic8_39", Yu = "_Remaining_ybic8_48", Qu = "_RemainingDanger_ybic8_55", Zu = "_NextBtn_ybic8_59", Ju = "_CloseBtn_ybic8_96", ed = "_Question_ybic8_113", td = "_Score_ybic8_123", nd = "_Image_ybic8_130", rd = "_Options_ybic8_140", od = "_OptionBtn_ybic8_145", id = "_OptionBtnActive_ybic8_165", sd = "_Footer_ybic8_172", ld = "_OptionBtnCorrect_ybic8_195", ad = "_Judge_ybic8_201", cd = "_Correct_ybic8_212", ud = "_Incorrect_ybic8_215", dd = "_ResultHeader_ybic8_220", fd = "_ResultActions_ybic8_233", pd = "_CloseBtnSoft_ybic8_239", hd = "_SummaryGrid_ybic8_249", gd = "_StatCard_ybic8_257", md = "_StatLabel_ybic8_265", bd = "_StatValue_ybic8_270", vd = "_StatSub_ybic8_277", he = {
|
|
7817
|
+
Overlay: qu,
|
|
7818
|
+
Dialog: ju,
|
|
7819
|
+
Body: Uu,
|
|
7820
|
+
Header: Ku,
|
|
7821
|
+
Paging: Xu,
|
|
7822
|
+
Remaining: Yu,
|
|
7823
|
+
RemainingDanger: Qu,
|
|
7824
|
+
NextBtn: Zu,
|
|
7825
|
+
CloseBtn: Ju,
|
|
7826
|
+
Question: ed,
|
|
7827
|
+
Score: td,
|
|
7828
|
+
Image: nd,
|
|
7829
|
+
Options: rd,
|
|
7830
|
+
OptionBtn: od,
|
|
7831
|
+
OptionBtnActive: id,
|
|
7832
|
+
Footer: sd,
|
|
7833
|
+
OptionBtnCorrect: ld,
|
|
7834
|
+
Judge: ad,
|
|
7835
|
+
Correct: cd,
|
|
7836
|
+
Incorrect: ud,
|
|
7837
|
+
ResultHeader: dd,
|
|
7838
|
+
ResultActions: fd,
|
|
7839
|
+
CloseBtnSoft: pd,
|
|
7840
|
+
SummaryGrid: hd,
|
|
7841
|
+
StatCard: gd,
|
|
7842
|
+
StatLabel: md,
|
|
7843
|
+
StatValue: bd,
|
|
7844
|
+
StatSub: vd
|
|
7824
7845
|
};
|
|
7825
|
-
function
|
|
7846
|
+
function Sd(e) {
|
|
7826
7847
|
return e ? e.kind === "temp" ? e.image_blob_url : e.image_cdn_url : null;
|
|
7827
7848
|
}
|
|
7828
7849
|
function Di(e) {
|
|
7829
7850
|
var t;
|
|
7830
7851
|
return (((t = e.answers) == null ? void 0 : t.length) ?? 0) > 1;
|
|
7831
7852
|
}
|
|
7832
|
-
function
|
|
7853
|
+
function yd(e) {
|
|
7833
7854
|
const t = e.answers ?? [], n = [];
|
|
7834
7855
|
return t.forEach((r) => {
|
|
7835
7856
|
const o = e.options.findIndex((i) => i === r);
|
|
7836
7857
|
o >= 0 && n.push(o);
|
|
7837
7858
|
}), n.sort((r, o) => r - o);
|
|
7838
7859
|
}
|
|
7839
|
-
const
|
|
7840
|
-
const t =
|
|
7860
|
+
const xd = Wt(function() {
|
|
7861
|
+
const t = at((u) => u.phase), n = at((u) => u.quizzes), r = at((u) => u.order), o = at((u) => u.currentIndex), i = at((u) => u.answers), s = at((u) => u.correctCount), c = at((u) => u.remainingSec), l = at((u) => u.uiReveal), a = at((u) => u.startedAt), d = at((u) => u.finishedAt), m = at((u) => u.perQ), p = Oi();
|
|
7841
7862
|
Se(() => {
|
|
7842
7863
|
if (t === "idle" || t !== "doing" || c == null) return;
|
|
7843
7864
|
const u = window.setInterval(() => p.getState().tick(), 1e3);
|
|
@@ -7867,7 +7888,7 @@ const vd = Dt(function() {
|
|
|
7867
7888
|
};
|
|
7868
7889
|
}, [t, r, n, m, a, d, s]);
|
|
7869
7890
|
return t === "idle" ? null : /* @__PURE__ */ x("div", { className: he.Overlay, role: "dialog", "aria-modal": "true", children: /* @__PURE__ */ x("div", { className: he.Dialog, children: t === "doing" && b ? /* @__PURE__ */ x(
|
|
7870
|
-
|
|
7891
|
+
wd,
|
|
7871
7892
|
{
|
|
7872
7893
|
q: b,
|
|
7873
7894
|
index: o,
|
|
@@ -7885,7 +7906,7 @@ const vd = Dt(function() {
|
|
|
7885
7906
|
onClose: () => p.getState().close()
|
|
7886
7907
|
}
|
|
7887
7908
|
) : /* @__PURE__ */ x(
|
|
7888
|
-
|
|
7909
|
+
Id,
|
|
7889
7910
|
{
|
|
7890
7911
|
total: r.length,
|
|
7891
7912
|
correct: s,
|
|
@@ -7894,7 +7915,7 @@ const vd = Dt(function() {
|
|
|
7894
7915
|
}
|
|
7895
7916
|
) }) });
|
|
7896
7917
|
});
|
|
7897
|
-
function
|
|
7918
|
+
function wd(e) {
|
|
7898
7919
|
const {
|
|
7899
7920
|
q: t,
|
|
7900
7921
|
index: n,
|
|
@@ -7913,7 +7934,7 @@ function Sd(e) {
|
|
|
7913
7934
|
[u[f], u[g]] = [u[g], u[f]];
|
|
7914
7935
|
}
|
|
7915
7936
|
return u;
|
|
7916
|
-
}, [t.options]), b = ve(() =>
|
|
7937
|
+
}, [t.options]), b = ve(() => Sd(t), [t]), v = ve(() => yd(t), [t]), y = ve(() => {
|
|
7917
7938
|
const u = [...o].sort((f, g) => f - g);
|
|
7918
7939
|
if (u.length !== v.length) return !1;
|
|
7919
7940
|
for (let f = 0; f < u.length; f++) if (u[f] !== v[f]) return !1;
|
|
@@ -7962,7 +7983,7 @@ function Sd(e) {
|
|
|
7962
7983
|
function Do(e) {
|
|
7963
7984
|
return e == null ? "-" : `${Math.round(e / 1e3)}s`;
|
|
7964
7985
|
}
|
|
7965
|
-
function
|
|
7986
|
+
function Id(e) {
|
|
7966
7987
|
const { total: t, correct: n, summary: r, onClose: o } = e, i = (r == null ? void 0 : r.rate) ?? (t > 0 ? Math.round(n / t * 100) : 0);
|
|
7967
7988
|
return /* @__PURE__ */ Z("div", { className: he.Body, children: [
|
|
7968
7989
|
/* @__PURE__ */ x("div", { className: he.ResultHeader, children: "결과 요약" }),
|
|
@@ -7994,32 +8015,32 @@ function yd(e) {
|
|
|
7994
8015
|
/* @__PURE__ */ x("div", { className: he.ResultActions, children: /* @__PURE__ */ x("button", { type: "button", onClick: o, className: he.CloseBtnSoft, children: "닫기" }) })
|
|
7995
8016
|
] });
|
|
7996
8017
|
}
|
|
7997
|
-
function
|
|
8018
|
+
function Cd(e) {
|
|
7998
8019
|
return e.map((t, n) => n);
|
|
7999
8020
|
}
|
|
8000
|
-
function
|
|
8021
|
+
function Td(e, t) {
|
|
8001
8022
|
if (e.length !== t.length) return !1;
|
|
8002
8023
|
for (let n = 0; n < e.length; n++) if (e[n] !== t[n]) return !1;
|
|
8003
8024
|
return !0;
|
|
8004
8025
|
}
|
|
8005
|
-
function
|
|
8026
|
+
function ar(e) {
|
|
8006
8027
|
var t;
|
|
8007
8028
|
return (((t = e.answers) == null ? void 0 : t.length) ?? 0) > 1;
|
|
8008
8029
|
}
|
|
8009
|
-
function
|
|
8030
|
+
function cr(e) {
|
|
8010
8031
|
const t = e.answers ?? [], n = [];
|
|
8011
8032
|
return t.forEach((r) => {
|
|
8012
8033
|
const o = e.options.findIndex((i) => i === r);
|
|
8013
8034
|
o >= 0 && n.push(o);
|
|
8014
8035
|
}), n.sort((r, o) => r - o);
|
|
8015
8036
|
}
|
|
8016
|
-
function
|
|
8037
|
+
function $o(e) {
|
|
8017
8038
|
if (!e) return {};
|
|
8018
8039
|
const t = (e.quizzes ?? []).slice().sort((n, r) => n.index - r.index);
|
|
8019
8040
|
return {
|
|
8020
8041
|
sectionId: e.section_id,
|
|
8021
8042
|
quizzes: t,
|
|
8022
|
-
order:
|
|
8043
|
+
order: Cd(t),
|
|
8023
8044
|
currentIndex: 0,
|
|
8024
8045
|
answers: {},
|
|
8025
8046
|
correctCount: 0,
|
|
@@ -8031,7 +8052,7 @@ function Wo(e) {
|
|
|
8031
8052
|
perQ: {}
|
|
8032
8053
|
};
|
|
8033
8054
|
}
|
|
8034
|
-
function
|
|
8055
|
+
function kd(e) {
|
|
8035
8056
|
const t = {
|
|
8036
8057
|
phase: "idle",
|
|
8037
8058
|
sectionId: void 0,
|
|
@@ -8046,7 +8067,7 @@ function Id(e) {
|
|
|
8046
8067
|
remainingSec: void 0,
|
|
8047
8068
|
uiReveal: !1,
|
|
8048
8069
|
perQ: {}
|
|
8049
|
-
}, n =
|
|
8070
|
+
}, n = $o(e);
|
|
8050
8071
|
return rn()((o, i) => ({
|
|
8051
8072
|
/* ----- state (초기화) ----- */
|
|
8052
8073
|
...t,
|
|
@@ -8054,7 +8075,7 @@ function Id(e) {
|
|
|
8054
8075
|
/* ----- actions ----- */
|
|
8055
8076
|
hydrateFromSection: (s) => {
|
|
8056
8077
|
if (!s) return;
|
|
8057
|
-
const c =
|
|
8078
|
+
const c = $o(s);
|
|
8058
8079
|
o(c);
|
|
8059
8080
|
},
|
|
8060
8081
|
openFromSection: (s) => {
|
|
@@ -8104,12 +8125,12 @@ function Id(e) {
|
|
|
8104
8125
|
submitCurrent: () => {
|
|
8105
8126
|
const s = i();
|
|
8106
8127
|
if (s.phase !== "doing") return;
|
|
8107
|
-
const c = s.order[s.currentIndex], l = s.quizzes[c], a = l.qid, d = (s.answers[a] ?? []).slice().sort((u, f) => u - f), m =
|
|
8128
|
+
const c = s.order[s.currentIndex], l = s.quizzes[c], a = l.qid, d = (s.answers[a] ?? []).slice().sort((u, f) => u - f), m = cr(l), p = Td(d, m), b = s.questionStartedAt ? Date.now() - s.questionStartedAt : 0, v = s.perQ[a], y = {
|
|
8108
8129
|
qid: a,
|
|
8109
8130
|
index: l.index,
|
|
8110
8131
|
question: l.question,
|
|
8111
8132
|
score: l.score ?? 0,
|
|
8112
|
-
multi:
|
|
8133
|
+
multi: ar(l),
|
|
8113
8134
|
selected: d,
|
|
8114
8135
|
correctIdxes: m,
|
|
8115
8136
|
isCorrect: p,
|
|
@@ -8141,9 +8162,9 @@ function Id(e) {
|
|
|
8141
8162
|
index: l.index,
|
|
8142
8163
|
question: l.question,
|
|
8143
8164
|
score: l.score ?? 0,
|
|
8144
|
-
multi:
|
|
8165
|
+
multi: ar(l),
|
|
8145
8166
|
selected: (d == null ? void 0 : d.selected) ?? [],
|
|
8146
|
-
correctIdxes: (d == null ? void 0 : d.correctIdxes) ??
|
|
8167
|
+
correctIdxes: (d == null ? void 0 : d.correctIdxes) ?? cr(l),
|
|
8147
8168
|
isCorrect: (d == null ? void 0 : d.isCorrect) ?? !1,
|
|
8148
8169
|
ms: (d == null ? void 0 : d.ms) ?? 0,
|
|
8149
8170
|
revealed: !0,
|
|
@@ -8197,9 +8218,9 @@ function Id(e) {
|
|
|
8197
8218
|
index: l.index,
|
|
8198
8219
|
question: l.question,
|
|
8199
8220
|
score: l.score ?? 0,
|
|
8200
|
-
multi:
|
|
8221
|
+
multi: ar(l),
|
|
8201
8222
|
selected: (d == null ? void 0 : d.selected) ?? [],
|
|
8202
|
-
correctIdxes: (d == null ? void 0 : d.correctIdxes) ??
|
|
8223
|
+
correctIdxes: (d == null ? void 0 : d.correctIdxes) ?? cr(l),
|
|
8203
8224
|
isCorrect: (d == null ? void 0 : d.isCorrect) ?? !1,
|
|
8204
8225
|
ms: (d == null ? void 0 : d.ms) ?? 0,
|
|
8205
8226
|
revealed: !0,
|
|
@@ -8215,9 +8236,9 @@ function Id(e) {
|
|
|
8215
8236
|
}
|
|
8216
8237
|
}));
|
|
8217
8238
|
}
|
|
8218
|
-
function
|
|
8239
|
+
function Rd({ children: e, initialState: t }) {
|
|
8219
8240
|
const n = ve(
|
|
8220
|
-
() =>
|
|
8241
|
+
() => kd(t.section),
|
|
8221
8242
|
[t]
|
|
8222
8243
|
), r = ie(t.onQuizComplete);
|
|
8223
8244
|
return Se(() => {
|
|
@@ -8260,9 +8281,9 @@ function Cd({ children: e, initialState: t }) {
|
|
|
8260
8281
|
}
|
|
8261
8282
|
});
|
|
8262
8283
|
return () => o();
|
|
8263
|
-
}, [n]), /* @__PURE__ */ x(
|
|
8284
|
+
}, [n]), /* @__PURE__ */ x(zr.Provider, { value: n, children: e });
|
|
8264
8285
|
}
|
|
8265
|
-
const
|
|
8286
|
+
const Vo = [
|
|
8266
8287
|
"mode",
|
|
8267
8288
|
"theme",
|
|
8268
8289
|
"fontFamily",
|
|
@@ -8282,7 +8303,7 @@ const $o = [
|
|
|
8282
8303
|
"overlayCompactMode",
|
|
8283
8304
|
"isSettingsOpen"
|
|
8284
8305
|
];
|
|
8285
|
-
function
|
|
8306
|
+
function _d({ containerRef: e }) {
|
|
8286
8307
|
const t = Et(), n = kn(), r = ie(null);
|
|
8287
8308
|
return Se(() => {
|
|
8288
8309
|
const o = e.current;
|
|
@@ -8300,12 +8321,12 @@ function Td({ containerRef: e }) {
|
|
|
8300
8321
|
}, [t, n, e]), Se(() => {
|
|
8301
8322
|
const o = n.getState();
|
|
8302
8323
|
r.current = {};
|
|
8303
|
-
for (const s of
|
|
8324
|
+
for (const s of Vo)
|
|
8304
8325
|
r.current[s] = o[s];
|
|
8305
8326
|
const i = n.subscribe((s) => {
|
|
8306
8327
|
const c = r.current;
|
|
8307
8328
|
if (c)
|
|
8308
|
-
for (const l of
|
|
8329
|
+
for (const l of Vo) {
|
|
8309
8330
|
const a = c[l], d = s[l];
|
|
8310
8331
|
a !== d && (l === "mode" ? t.getState().emit({
|
|
8311
8332
|
type: "mode_change",
|
|
@@ -8321,8 +8342,8 @@ function Td({ containerRef: e }) {
|
|
|
8321
8342
|
};
|
|
8322
8343
|
}, [t, n]), null;
|
|
8323
8344
|
}
|
|
8324
|
-
function
|
|
8325
|
-
const e = Et(), t = kn(), n = Rt(), r = Ue(
|
|
8345
|
+
function Md() {
|
|
8346
|
+
const e = Et(), t = kn(), n = Rt(), r = Ue(Ko), o = Ue(On), i = Q(
|
|
8326
8347
|
(l) => {
|
|
8327
8348
|
const { viewerState: a } = l;
|
|
8328
8349
|
if (a) {
|
|
@@ -8493,11 +8514,11 @@ function kd() {
|
|
|
8493
8514
|
a.isPlaybackMode && !d.isPlaybackMode ? (e.getState().setDispatchHandler(c), e.getState().setApplySnapshotHandler(i)) : !a.isPlaybackMode && d.isPlaybackMode && (e.getState().setDispatchHandler(null), e.getState().setApplySnapshotHandler(null));
|
|
8494
8515
|
}), [e, c, i]), null;
|
|
8495
8516
|
}
|
|
8496
|
-
const
|
|
8517
|
+
const Ed = ({
|
|
8497
8518
|
containerRef: e,
|
|
8498
8519
|
onTranslate: t
|
|
8499
8520
|
}) => {
|
|
8500
|
-
const n = j((p) => p.rangeStartGI), r = j((p) => p.rangeEndGI), o = j((p) => p.getRangeText), i = j((p) => p.clearRange), s = Et(), c = n != null && r != null, [l, a] =
|
|
8521
|
+
const n = j((p) => p.rangeStartGI), r = j((p) => p.rangeEndGI), o = j((p) => p.getRangeText), i = j((p) => p.clearRange), s = Et(), c = n != null && r != null, [l, a] = nt(null);
|
|
8501
8522
|
Se(() => {
|
|
8502
8523
|
if (!c) return;
|
|
8503
8524
|
const p = e.current;
|
|
@@ -8604,11 +8625,11 @@ const Rd = ({
|
|
|
8604
8625
|
]
|
|
8605
8626
|
}
|
|
8606
8627
|
);
|
|
8607
|
-
},
|
|
8608
|
-
handleStart:
|
|
8609
|
-
handleEnd:
|
|
8610
|
-
},
|
|
8611
|
-
const t = j((f) => f.rangeStartGI), n = j((f) => f.rangeEndGI), r = j((f) => f.setRange), o = Et(), i = t != null && n != null, [s, c] =
|
|
8628
|
+
}, Od = "_handleStart_1ihf3_16 _handle_1ihf3_1", Pd = "_handleEnd_1ihf3_21 _handle_1ihf3_1", qo = {
|
|
8629
|
+
handleStart: Od,
|
|
8630
|
+
handleEnd: Pd
|
|
8631
|
+
}, Bd = ({ containerRef: e }) => {
|
|
8632
|
+
const t = j((f) => f.rangeStartGI), n = j((f) => f.rangeEndGI), r = j((f) => f.setRange), o = Et(), i = t != null && n != null, [s, c] = nt(null), [l, a] = nt(null), d = ie(null), m = ie(null);
|
|
8612
8633
|
Se(() => {
|
|
8613
8634
|
if (!i || t == null || n == null) {
|
|
8614
8635
|
c(null), a(null);
|
|
@@ -8669,7 +8690,7 @@ const Rd = ({
|
|
|
8669
8690
|
s && /* @__PURE__ */ x(
|
|
8670
8691
|
"div",
|
|
8671
8692
|
{
|
|
8672
|
-
className:
|
|
8693
|
+
className: qo.handleStart,
|
|
8673
8694
|
"data-range-handle": "start",
|
|
8674
8695
|
style: {
|
|
8675
8696
|
left: s.x - 26,
|
|
@@ -8684,7 +8705,7 @@ const Rd = ({
|
|
|
8684
8705
|
l && /* @__PURE__ */ x(
|
|
8685
8706
|
"div",
|
|
8686
8707
|
{
|
|
8687
|
-
className:
|
|
8708
|
+
className: qo.handleEnd,
|
|
8688
8709
|
"data-range-handle": "end",
|
|
8689
8710
|
style: {
|
|
8690
8711
|
left: l.x,
|
|
@@ -8698,7 +8719,7 @@ const Rd = ({
|
|
|
8698
8719
|
)
|
|
8699
8720
|
] }) : null;
|
|
8700
8721
|
};
|
|
8701
|
-
function
|
|
8722
|
+
function zd() {
|
|
8702
8723
|
const e = j((o) => o.rangeStartGI), t = j((o) => o.rangeEndGI), n = j((o) => o.clearRange), r = e != null && t != null;
|
|
8703
8724
|
return Se(() => {
|
|
8704
8725
|
if (!r) return;
|
|
@@ -8720,7 +8741,7 @@ function Od() {
|
|
|
8720
8741
|
return document.addEventListener("click", o, !0), () => document.removeEventListener("click", o, !0);
|
|
8721
8742
|
}, [r, e, t, n]), null;
|
|
8722
8743
|
}
|
|
8723
|
-
const
|
|
8744
|
+
const Ad = ({ isOpen: e, onClose: t, text: n }) => e ? /* @__PURE__ */ x(
|
|
8724
8745
|
"div",
|
|
8725
8746
|
{
|
|
8726
8747
|
style: {
|
|
@@ -8819,8 +8840,8 @@ const Pd = ({ isOpen: e, onClose: t, text: n }) => e ? /* @__PURE__ */ x(
|
|
|
8819
8840
|
}
|
|
8820
8841
|
)
|
|
8821
8842
|
}
|
|
8822
|
-
) : null,
|
|
8823
|
-
function
|
|
8843
|
+
) : null, Ld = (e, t, n) => Math.min(n, Math.max(t, e));
|
|
8844
|
+
function Dd({
|
|
8824
8845
|
section: e,
|
|
8825
8846
|
initialViewerState: t,
|
|
8826
8847
|
initialProgressRunIndex: n,
|
|
@@ -8842,7 +8863,7 @@ function Nd({
|
|
|
8842
8863
|
for (const I of g)
|
|
8843
8864
|
(I == null ? void 0 : I.type) !== "image" && (C += ((R = I == null ? void 0 : I.runs) == null ? void 0 : R.length) ?? 0);
|
|
8844
8865
|
return C;
|
|
8845
|
-
}, [e]), y = ve(() => typeof n == "number" ?
|
|
8866
|
+
}, [e]), y = ve(() => typeof n == "number" ? Ld(n, v > 0 ? 0 : -1, Math.max(v - 1, -1)) : (v > 0, 0), [n, v]), u = ve(
|
|
8846
8867
|
() => ({
|
|
8847
8868
|
section: e,
|
|
8848
8869
|
initialIndex: y,
|
|
@@ -8853,7 +8874,7 @@ function Nd({
|
|
|
8853
8874
|
}),
|
|
8854
8875
|
[e, y, r, o, i, s]
|
|
8855
8876
|
), f = ve(() => {
|
|
8856
|
-
const g = (e == null ? void 0 : e.audios) ?? [], C = g.length > 0 ?
|
|
8877
|
+
const g = (e == null ? void 0 : e.audios) ?? [], C = g.length > 0 ? su(e) : void 0;
|
|
8857
8878
|
return {
|
|
8858
8879
|
clips: g,
|
|
8859
8880
|
map: C,
|
|
@@ -8862,18 +8883,18 @@ function Nd({
|
|
|
8862
8883
|
};
|
|
8863
8884
|
}, [e, y]);
|
|
8864
8885
|
return /* @__PURE__ */ x(
|
|
8865
|
-
|
|
8886
|
+
is,
|
|
8866
8887
|
{
|
|
8867
8888
|
onViewerEvent: l,
|
|
8868
8889
|
isPlaybackMode: d,
|
|
8869
8890
|
playbackScale: m,
|
|
8870
8891
|
viewerRef: a,
|
|
8871
|
-
children: /* @__PURE__ */ x(
|
|
8892
|
+
children: /* @__PURE__ */ x(fu, { initialState: { ...t, isDev: p }, children: /* @__PURE__ */ x(du, { initialState: u, children: /* @__PURE__ */ x(iu, { initialState: f, children: /* @__PURE__ */ x(Rd, { initialState: { section: e, onQuizComplete: c }, children: /* @__PURE__ */ x(Gd, {}) }, b) }, b) }, b) })
|
|
8872
8893
|
}
|
|
8873
8894
|
);
|
|
8874
8895
|
}
|
|
8875
|
-
function
|
|
8876
|
-
const e = Y((p) => p.mode), t = ie(null), n = Et(), r = Rt(), [o, i] =
|
|
8896
|
+
function Gd() {
|
|
8897
|
+
const e = Y((p) => p.mode), t = ie(null), n = Et(), r = Rt(), [o, i] = nt(!1), [s, c] = nt(), l = Q(
|
|
8877
8898
|
(p) => {
|
|
8878
8899
|
c(p), i(!0);
|
|
8879
8900
|
const { rangeStartGI: b, rangeEndGI: v } = r.getState().progress;
|
|
@@ -8917,27 +8938,27 @@ function zd() {
|
|
|
8917
8938
|
touchAction: "none"
|
|
8918
8939
|
},
|
|
8919
8940
|
children: [
|
|
8920
|
-
e === "scroll" ? /* @__PURE__ */ x(
|
|
8921
|
-
/* @__PURE__ */ x(
|
|
8922
|
-
/* @__PURE__ */ x(
|
|
8923
|
-
/* @__PURE__ */ x(
|
|
8924
|
-
/* @__PURE__ */ x(
|
|
8925
|
-
/* @__PURE__ */ x(
|
|
8926
|
-
/* @__PURE__ */ x(
|
|
8941
|
+
e === "scroll" ? /* @__PURE__ */ x(ka, {}) : /* @__PURE__ */ x(Nu, {}),
|
|
8942
|
+
/* @__PURE__ */ x(Ed, { containerRef: t, onTranslate: l }),
|
|
8943
|
+
/* @__PURE__ */ x(Bd, { containerRef: t }),
|
|
8944
|
+
/* @__PURE__ */ x(Zc, {}),
|
|
8945
|
+
/* @__PURE__ */ x(xd, {}),
|
|
8946
|
+
/* @__PURE__ */ x(Vu, {}),
|
|
8947
|
+
/* @__PURE__ */ x(zd, {}),
|
|
8927
8948
|
/* @__PURE__ */ x(
|
|
8928
|
-
|
|
8949
|
+
Ad,
|
|
8929
8950
|
{
|
|
8930
8951
|
isOpen: o,
|
|
8931
8952
|
onClose: a,
|
|
8932
8953
|
text: s
|
|
8933
8954
|
}
|
|
8934
8955
|
),
|
|
8935
|
-
/* @__PURE__ */ x(
|
|
8936
|
-
/* @__PURE__ */ x(
|
|
8956
|
+
/* @__PURE__ */ x(_d, { containerRef: t }),
|
|
8957
|
+
/* @__PURE__ */ x(Md, {})
|
|
8937
8958
|
]
|
|
8938
8959
|
}
|
|
8939
8960
|
);
|
|
8940
8961
|
}
|
|
8941
8962
|
export {
|
|
8942
|
-
|
|
8963
|
+
Dd as CRViewer
|
|
8943
8964
|
};
|