JM-EHunter for 18comic

JM-EHunter reader adapted for 18comic, including scrambled-image restoration.

За да инсталирате този скрипт, трябва да имате инсталирано разширение като Tampermonkey, Greasemonkey или Violentmonkey.

За да инсталирате този скрипт, трябва да инсталирате разширение, като например Tampermonkey .

За да инсталирате този скрипт, трябва да имате инсталирано разширение като Tampermonkey или Violentmonkey.

За да инсталирате този скрипт, трябва да имате инсталирано разширение като Tampermonkey или Userscripts.

За да инсталирате скрипта, трябва да инсталирате разширение като Tampermonkey.

За да инсталирате този скрипт, трябва да имате инсталиран скриптов мениджър.

(Вече имам скриптов мениджър, искам да го инсталирам!)

За да инсталирате този стил, трябва да инсталирате разширение като Stylus.

За да инсталирате този стил, трябва да инсталирате разширение като Stylus.

За да инсталирате този стил, трябва да инсталирате разширение като Stylus.

За да инсталирате този стил, трябва да имате инсталиран мениджър на потребителски стилове.

За да инсталирате този стил, трябва да имате инсталиран мениджър на потребителски стилове.

За да инсталирате този стил, трябва да имате инсталиран мениджър на потребителски стилове.

(Вече имам инсталиран мениджър на стиловете, искам да го инсталирам!)

// ==UserScript==
// @name         JM-EHunter for 18comic
// @namespace    http://tampermonkey.net/
// @version      2.0.0.18comic.5
// @description  JM-EHunter reader adapted for 18comic, including scrambled-image restoration.
// @supportURL   https://github.com/yourusername/JM-EHunter/issues
// @author       Alex Chen
// @match        https://exhentai.org/*
// @match        https://e-hentai.org/*
// @match        https://nhentai.net/*
// @match        https://18comic.vip/*
// @connect      hath.network
// @connect      nhentai.net
// @connect      githubusercontent.com
// @connect      jp.animesales.xyz
// @connect      cdn-msp.18comic.vip
// @connect      cdn-msp2.18comic.vip
// @connect      cdn-msp3.18comic.vip
// @grant        GM_xmlhttpRequest
// @grant        GM_download
// @grant        unsafeWindow
// @license      MIT
// ==/UserScript==
(function(){"use strict";try{if(typeof document!="undefined"){var e=document.createElement("style");e.appendChild(document.createTextNode('@charset "UTF-8";.circle-icon-button[data-v-2a2205e2]{height:26px;width:26px;background:#00000080;border-radius:50%;justify-content:center;align-items:center;cursor:pointer;user-select:none;transition:all .2s}.circle-icon-button.big[data-v-2a2205e2]{height:36px;width:36px}.circle-icon-button>svg[data-v-2a2205e2]{fill:#ffffffe6;height:18px;width:18px;transition:all .2s}.circle-icon-button>svg.rotate[data-v-2a2205e2]{transform:rotate(90deg)}.circle-icon-button>svg.rotate90[data-v-2a2205e2]{transform:rotate(90deg)}.circle-icon-button>svg.rotate180[data-v-2a2205e2]{transform:rotate(180deg)}.circle-icon-button>svg.rotateMinus90[data-v-2a2205e2]{transform:rotate(-90deg)}.circle-icon-button>svg.rotateMinus180[data-v-2a2205e2]{transform:rotate(-180deg)}.circle-icon-button[data-v-2a2205e2]:hover{background:#ffffffe6}.circle-icon-button:hover>svg[data-v-2a2205e2]{fill:#00000080}.circle-icon-button[data-v-2a2205e2]:active{background:#fff3}.circle-icon-button:active>svg[data-v-2a2205e2]{fill:#00000080}.popover[data-v-e5801761]{position:absolute;top:100%;left:0;background:#fff;border-radius:2px;color:#000;box-shadow:1px 1px 5px 1px #0000001a;transition:all .3s ease;z-index:1}div[data-v-da60e7c5]{display:flex}.drop-option[data-v-da60e7c5]{position:relative;justify-content:center;align-items:center;overflow:visible;cursor:pointer}.drop-option>.text[data-v-da60e7c5]{margin-left:7px;padding:3px 5px;background:#0003;white-space:nowrap;color:#fff;font-size:14px}.drop-option>.icon-drop-down[data-v-da60e7c5]{fill:#fff;height:18px;width:18px;margin-left:2px}.drop-option .options[data-v-da60e7c5]{flex-direction:column;transition:all .3s ease}.drop-option .options>.item[data-v-da60e7c5]{white-space:nowrap;color:#000c;padding:7px 11px;min-width:52px;transition:all .3s ease}.drop-option .options>.item>span[data-v-da60e7c5]{transition:all .3s ease}.drop-option .options>.item[data-v-da60e7c5]:hover{cursor:pointer;background:#0000001a}.drop-option .options>.item:hover>span[data-v-da60e7c5]{color:var(--ehunter-accent-color, #28af60);margin-left:5px;margin-right:-5px}.flat-button>a[data-v-e69ed2a2]{font-size:14px;cursor:pointer;user-select:none;white-space:nowrap;transition:all .2s ease}.flat-button>.default[data-v-e69ed2a2]{padding:5px 10px}.flat-button.inline[data-v-e69ed2a2]{margin-left:10px}.flat-button>.plain[data-v-e69ed2a2]{color:#28af60}.flat-button>.plain[data-v-e69ed2a2]:hover{color:#37d278}.flat-button>.plain[data-v-e69ed2a2]:active{color:#1e8549}.flat-button>.positive[data-v-e69ed2a2]{color:#2ecc70}.flat-button>.positive[data-v-e69ed2a2]:hover{color:#55d88b}.flat-button>.positive[data-v-e69ed2a2]:active{color:#25a259}.flat-button>.negative[data-v-e69ed2a2]{color:#aaa}.flat-button>.negative[data-v-e69ed2a2]:hover{color:#c4c4c4}.flat-button>.negative[data-v-e69ed2a2]:active{color:#919191}.flat-button>.warning[data-v-e69ed2a2]{color:#e74c3c}.flat-button>.warning[data-v-e69ed2a2]:hover{color:#ed7669}.flat-button>.warning[data-v-e69ed2a2]:active{color:#d62c1a}div[data-v-c3d57ccd],section[data-v-c3d57ccd]{display:flex}.ehunter-pagination[data-v-c3d57ccd]{justify-content:center;align-items:center;transition:all .3s ease}.ehunter-pagination>span[data-v-c3d57ccd]{font-size:14px;line-height:28px;text-align:center;color:#c9cacf;transition:all .3s ease}.ehunter-pagination>span[data-v-c3d57ccd]:hover{color:#fff}.ehunter-pagination>.item[data-v-c3d57ccd]{margin:0 5px;width:28px;height:28px;justify-content:center;align-content:center;border-radius:6%;cursor:pointer;user-select:none;background:transparent;transition:all .3s ease}.ehunter-pagination>.item[data-v-c3d57ccd]:hover{background:#777}.ehunter-pagination>.item.active[data-v-c3d57ccd]{color:#fff;background:#2ecc70}.ehunter-pagination>.item>.icon[data-v-c3d57ccd]{fill:#c9cacf;width:24px}.ehunter-pagination>.item>.icon[data-v-c3d57ccd]:hover{fill:#fff}.ehunter-pagination>.item.disable[data-v-c3d57ccd]{cursor:not-allowed}.ehunter-pagination>.item.disable[data-v-c3d57ccd]:hover{background:transparent}.ehunter-pagination>.item.disable>.icon[data-v-c3d57ccd]{fill:#c9cacf99}.ehunter-pagination>.item.disable>.icon[data-v-c3d57ccd]:hover{fill:#c9cacf99}div[data-v-5a202c7e]{display:flex}.slider[data-v-5a202c7e]{position:relative;width:200px;height:20px;cursor:pointer}.slider>.track[data-v-5a202c7e]{position:absolute;left:0;height:2px;width:100%;top:50%;transform:translateY(-50%);background:#bdbdbd}.slider>.fill[data-v-5a202c7e]{position:absolute;left:0;height:2px;width:20%;top:50%;transform:translateY(-50%);background:#28af60}.slider>.thumb[data-v-5a202c7e]{position:absolute;width:12px;height:12px;top:50%;border-radius:50%;transform:translate(-50%,-50%);background:#2ecc70;pointer-events:none;transition:width .1s ease,height .1s ease}div[data-v-ea2849fc]{display:flex}.simple-modal[data-v-ea2849fc]{position:fixed;inset:0;z-index:10030;overflow-y:auto}.simple-dialog[data-v-ea2849fc]{box-shadow:1px 1px 5px 1px #0000001a;position:absolute;width:100%;height:100%;top:0;left:0}.simple-dialog>.background[data-v-ea2849fc]{flex:1;background:#0009}.simple-dialog>article[data-v-ea2849fc]{display:flex;flex-direction:column;position:absolute;background:#fff;border-radius:3px;min-width:430px;min-height:110px;max-width:50%;max-height:88%;left:50%;top:50%;transform:translate(-50%,-50%);padding:19px 22px}.simple-dialog>article>h4[data-v-ea2849fc]{box-sizing:border-box;font-size:22px;text-align:left;margin:2px 0;padding-bottom:10px;color:#000;font-weight:lighter}.simple-dialog>article>p[data-v-ea2849fc]{color:#000c;text-align:left;font-size:16px;overflow:auto;flex:1}.simple-dialog>article>.operation-bar[data-v-ea2849fc]{flex-direction:row-reverse;margin-top:10px;flex-shrink:0}@media only screen and (max-width:767px){.simple-dialog>article[data-v-ea2849fc]{min-width:280px;max-width:90%;padding:16px 18px}.simple-dialog>article>h4[data-v-ea2849fc]{font-size:18px;padding-bottom:8px}.simple-dialog>article>p[data-v-ea2849fc]{font-size:14px}}input[data-v-ffc66e8a]::-webkit-outer-spin-button,input[data-v-ffc66e8a]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}input[type=number][data-v-ffc66e8a]{-moz-appearance:textfield}div[data-v-ffc66e8a]{display:flex}.PopSlider>.content[data-v-ffc66e8a]{padding:7px 10px 7px 15px;align-items:center}.PopSlider>.content>.button[data-v-ffc66e8a]{margin-left:8px}.PopSlider>.content>.value[data-v-ffc66e8a]{background:transparent;border:none;width:30px;color:#2ecc70;margin-right:7px;font-size:13px;text-align:center}.PopSlider>.content>.value[data-v-ffc66e8a]:focus{outline-width:0;color:#222}div[data-v-c7457182]{display:flex}.num-drop-option[data-v-c7457182]{position:relative}div[data-v-7622434e]{display:flex}.switch[data-v-7622434e]{display:flex;flex-direction:row;align-items:center;width:28px;height:20px;margin:0 15px;position:relative;cursor:pointer}.switch>.track[data-v-7622434e]{height:14px;width:100%;border-radius:30px;background:#bdbdbd;transition:all .45s cubic-bezier(.23,1,.32,1)}.switch>.track.active[data-v-7622434e]{background:var(--ehunter-switch-track-active, #71ca96)}.switch>.thumb[data-v-7622434e]{position:absolute;width:20px;height:20px;background:#f5f5f5;border-radius:50%;transition:all .45s cubic-bezier(.23,1,.32,1);left:0;top:50%;transform:translate(-50%,-50%);box-shadow:0 1px 6px #0000001e,0 1px 4px #0000001e}.switch>.thumb.active[data-v-7622434e]{background:var(--ehunter-switch-thumb-active, #006548);left:100%}div[data-v-f51bd597]{display:flex}.options[data-v-f51bd597]{flex-direction:column;transition:all .3s ease;font-size:14px}.options>.item[data-v-f51bd597]{white-space:nowrap;color:#000c;padding:7px 11px;min-width:52px;transition:all .3s ease}.options>.item>span[data-v-f51bd597]{transition:all .3s ease}.options>.item[data-v-f51bd597]:hover{cursor:pointer;background:#0000001a}.options>.item:hover>span[data-v-f51bd597]{color:#28af60;margin-left:5px;margin-right:-5px}.ehunter-more-settings-modal[data-v-b3713ec5]{position:fixed;inset:0;background:radial-gradient(1200px 700px at 12% 8%,#84b0ff3d,#84b0ff00 58%),radial-gradient(1000px 600px at 100% 100%,#52cdba33,#52cdba00 55%),#10182775;backdrop-filter:blur(6px);z-index:10020;display:flex;align-items:center;justify-content:center;padding:24px}.ehunter-more-settings-modal>.ehunter-panel[data-v-b3713ec5]{position:relative;width:min(980px,100%);height:min(740px,100%);border-radius:18px;overflow:hidden;background:linear-gradient(180deg,#f8fbff,#f2f6fd);box-shadow:0 28px 70px #06132659,inset 0 1px #ffffffb3;display:flex;flex-direction:column}.ehunter-more-settings-modal>.ehunter-panel>.ehunter-panel-header[data-v-b3713ec5]{display:flex;align-items:center;flex-direction:row;justify-content:flex-start;padding:14px 56px 14px 20px;border-bottom:1px solid rgba(78,102,146,.18);background:#ffffffd1}.ehunter-more-settings-modal>.ehunter-panel>.ehunter-panel-header>h3[data-v-b3713ec5]{margin:0;font-size:19px;color:#1e304f;font-weight:700;letter-spacing:.2px}.ehunter-more-settings-modal>.ehunter-panel>.ehunter-panel-header>.ehunter-close-btn[data-v-b3713ec5]{position:absolute;right:14px;top:12px;z-index:2;width:36px;height:36px;border-radius:50%;border:none;color:#4a6fa5;background:#ffffffe6;cursor:pointer;font-size:20px;line-height:1;display:flex;flex-direction:row;align-items:center;justify-content:center;transition:all .24s cubic-bezier(.4,0,.2,1);box-shadow:0 2px 8px #1a2d4e1f}.ehunter-more-settings-modal>.ehunter-panel>.ehunter-panel-header>.ehunter-close-btn[data-v-b3713ec5]:hover{background:#ebf3ff;color:#2d5a9e;transform:scale(1.08);box-shadow:0 4px 12px #1f447d2e}.ehunter-more-settings-modal>.ehunter-panel>.ehunter-panel-header>.ehunter-close-btn[data-v-b3713ec5]:active{transform:scale(.96)}.ehunter-more-settings-modal>.ehunter-panel>.ehunter-panel-body[data-v-b3713ec5]{flex:1;min-height:0;display:flex}.ehunter-more-settings-modal>.ehunter-panel>.ehunter-panel-body>.ehunter-left-nav[data-v-b3713ec5]{margin:0;width:210px;padding:14px 10px;display:flex;flex-direction:column;gap:8px;border-right:1px solid rgba(88,113,158,.16);background:linear-gradient(180deg,#ffffffc7,#f5faffb8)}.ehunter-more-settings-modal>.ehunter-panel>.ehunter-panel-body>.ehunter-left-nav>.ehunter-category[data-v-b3713ec5]{border:none;background:transparent;text-align:left;border-radius:11px;font-size:14px;color:#4a5f84;padding:10px 12px;transition:all .2s ease;cursor:pointer;font-weight:500}.ehunter-more-settings-modal>.ehunter-panel>.ehunter-panel-body>.ehunter-left-nav>.ehunter-category[data-v-b3713ec5]:hover{background:#d0e1ff8c;color:#2b4f86}.ehunter-more-settings-modal>.ehunter-panel>.ehunter-panel-body>.ehunter-left-nav>.ehunter-category.ehunter-active[data-v-b3713ec5]{background:#dff3e5;color:#2a6142;font-weight:700;box-shadow:inset 0 0 0 1px #8cc5a0}.ehunter-more-settings-modal>.ehunter-panel>.ehunter-panel-body>.ehunter-content[data-v-b3713ec5]{flex:1;min-width:0;min-height:0;overflow:auto;display:block;padding:16px 18px;scroll-behavior:smooth}.ehunter-more-settings-modal>.ehunter-panel>.ehunter-panel-body>.ehunter-content>.ehunter-group[data-v-b3713ec5]{display:block;scroll-margin-top:12px;padding:14px;border:1px solid rgba(92,119,163,.18);border-radius:14px;margin-bottom:12px;background:#ffffffd1;box-shadow:0 8px 24px #1a2d4e14}.ehunter-more-settings-modal>.ehunter-panel>.ehunter-panel-body>.ehunter-content>.ehunter-group>h4[data-v-b3713ec5]{margin:0 0 12px;font-size:16px;color:#233e67;font-weight:700}.ehunter-more-settings-modal>.ehunter-panel>.ehunter-panel-body>.ehunter-content>.ehunter-group>.ehunter-row[data-v-b3713ec5]{display:flex;flex-direction:row;align-items:flex-start;justify-content:space-between;gap:12px;margin:8px 0;color:#2f415d;min-height:42px;padding:6px 0}.ehunter-more-settings-modal>.ehunter-panel>.ehunter-panel-body>.ehunter-content>.ehunter-group>.ehunter-row[data-v-b3713ec5]:not(:last-child){border-bottom:1px dashed rgba(128,150,186,.2)}.ehunter-more-settings-modal>.ehunter-panel>.ehunter-panel-body>.ehunter-content>.ehunter-group>.ehunter-row>.ehunter-label-block[data-v-b3713ec5]{min-width:0;flex:1;flex-shrink:0;display:flex;flex-direction:column;gap:2px}.ehunter-more-settings-modal>.ehunter-panel>.ehunter-panel-body>.ehunter-content>.ehunter-group>.ehunter-row>.ehunter-label-block>.ehunter-label[data-v-b3713ec5]{font-size:14px;color:#2f466d;font-weight:500}.ehunter-more-settings-modal>.ehunter-panel>.ehunter-panel-body>.ehunter-content>.ehunter-group>.ehunter-row>.ehunter-label-block>.ehunter-tip[data-v-b3713ec5]{margin:0;font-size:11px;line-height:1.3;color:#7a879c;white-space:normal;overflow-wrap:anywhere;word-break:break-word}.ehunter-more-settings-modal>.ehunter-panel>.ehunter-panel-body>.ehunter-content>.ehunter-group>.ehunter-row>.ehunter-label[data-v-b3713ec5]{font-size:14px;color:#2f466d;font-weight:500;min-width:120px;flex-shrink:0}.ehunter-more-settings-modal>.ehunter-panel>.ehunter-panel-body>.ehunter-content>.ehunter-group>.ehunter-row[data-v-b3713ec5]>:not(.ehunter-label):not(.ehunter-label-block){margin-left:auto}.ehunter-more-settings-modal>.ehunter-panel>.ehunter-panel-body>.ehunter-content>.ehunter-group>.ehunter-row>.ehunter-value[data-v-b3713ec5]{font-size:13px;color:#476088}.ehunter-more-settings-modal>.ehunter-panel>.ehunter-panel-body>.ehunter-content>.ehunter-group>.ehunter-row>.ehunter-link[data-v-b3713ec5]{color:#2b5da5;text-decoration:none;font-size:13px;word-break:break-all;text-align:right;max-width:66%}.ehunter-more-settings-modal>.ehunter-panel>.ehunter-panel-body>.ehunter-content>.ehunter-group>.ehunter-row>.ehunter-danger[data-v-b3713ec5]{border:1px solid #d9a5a5;border-radius:8px;background:#fff4f4;color:#8a4646;font-size:13px;padding:8px 12px;cursor:pointer}.ehunter-more-settings-modal>.ehunter-panel>.ehunter-panel-body>.ehunter-content>.ehunter-group>.ehunter-row>.ehunter-danger[data-v-b3713ec5]:hover{background:#ffe9e9;border-color:#cf8e8e}.ehunter-more-settings-modal>.ehunter-panel>.ehunter-panel-body>.ehunter-content>.ehunter-group>.ehunter-row>.ehunter-action[data-v-b3713ec5]{border:1px solid #8bc7a0;border-radius:8px;background:#f2fff6;color:#2a5f41;font-size:13px;padding:8px 12px;cursor:pointer;font-weight:600}.ehunter-more-settings-modal>.ehunter-panel>.ehunter-panel-body>.ehunter-content>.ehunter-group>.ehunter-row>.ehunter-action[data-v-b3713ec5]:hover{background:#e6f7ec;border-color:#77b88f}.ehunter-more-settings-modal>.ehunter-panel>.ehunter-panel-body>.ehunter-content>.ehunter-group>.ehunter-quick-lanes[data-v-b3713ec5]{display:flex;flex-direction:column;gap:8px;padding:0 2px}.ehunter-more-settings-modal>.ehunter-panel>.ehunter-panel-body>.ehunter-content>.ehunter-group>.ehunter-quick-lanes>.ehunter-lane-intro[data-v-b3713ec5]{margin:0;font-size:12px;color:#5a6c8c;line-height:1.35}.ehunter-more-settings-modal>.ehunter-panel>.ehunter-panel-body>.ehunter-content>.ehunter-group>.ehunter-quick-lanes>.ehunter-lane-divider[data-v-b3713ec5]{width:100%;height:1px;background:linear-gradient(90deg,#7e92b200,#7e92b280,#7e92b200);margin:2px 0}.ehunter-more-settings-modal>.ehunter-panel>.ehunter-panel-body>.ehunter-content>.ehunter-group>.ehunter-quick-lanes>.ehunter-quick-lane[data-v-b3713ec5]{display:flex;flex-direction:column;align-items:stretch;padding:0 2px}.ehunter-more-settings-modal>.ehunter-panel>.ehunter-panel-body>.ehunter-content>.ehunter-group>.ehunter-quick-lanes>.ehunter-quick-lane>.ehunter-lane-header[data-v-b3713ec5]{margin:0;font-size:12px;color:#355a96;font-weight:700}.ehunter-more-settings-modal>.ehunter-panel>.ehunter-panel-body>.ehunter-content>.ehunter-group>.ehunter-quick-lanes>.ehunter-quick-lane>.ehunter-lane-desc[data-v-b3713ec5]{margin:2px 0 5px;font-size:11px;color:#6c7f9f;line-height:1.25}.ehunter-more-settings-modal>.ehunter-panel>.ehunter-panel-body>.ehunter-content>.ehunter-group>.ehunter-quick-lanes>.ehunter-quick-lane>.ehunter-quick-item[data-v-b3713ec5]{display:grid;grid-template-columns:16px minmax(0,1fr) auto;align-items:center;gap:6px;width:100%;box-sizing:border-box;border-radius:7px;border:1px solid rgba(101,126,168,.18);background:#fdfefe;margin:4px 0;padding:5px 8px;transition:all .18s ease;cursor:grab;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;touch-action:manipulation}.ehunter-more-settings-modal>.ehunter-panel>.ehunter-panel-body>.ehunter-content>.ehunter-group>.ehunter-quick-lanes>.ehunter-quick-lane>.ehunter-quick-item[data-v-b3713ec5] *{user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}.ehunter-more-settings-modal>.ehunter-panel>.ehunter-panel-body>.ehunter-content>.ehunter-group>.ehunter-quick-lanes>.ehunter-quick-lane>.ehunter-quick-item[data-v-b3713ec5]:hover{background:#e8f3ffeb;border-color:#5278b85c}.ehunter-more-settings-modal>.ehunter-panel>.ehunter-panel-body>.ehunter-content>.ehunter-group>.ehunter-quick-lanes>.ehunter-quick-lane>.ehunter-quick-item>.ehunter-drag-handle[data-v-b3713ec5]{width:10px;height:10px;opacity:.8;background:radial-gradient(circle,#5f7498 1.1px,transparent 1.2px) 0 0/6px 6px,radial-gradient(circle,#5f7498 1.1px,transparent 1.2px) 3px 3px/6px 6px}.ehunter-more-settings-modal>.ehunter-panel>.ehunter-panel-body>.ehunter-content>.ehunter-group>.ehunter-quick-lanes>.ehunter-quick-lane>.ehunter-quick-item>.ehunter-label[data-v-b3713ec5]{font-size:13px;color:#2e4264;pointer-events:none}.ehunter-more-settings-modal>.ehunter-panel>.ehunter-panel-body>.ehunter-content>.ehunter-group>.ehunter-quick-lanes>.ehunter-quick-lane>.ehunter-quick-item>.ehunter-mode-tag[data-v-b3713ec5]{font-size:11px;color:#6a7d9c;pointer-events:none}.ehunter-more-settings-modal>.ehunter-panel>.ehunter-panel-body>.ehunter-content>.ehunter-group>.ehunter-quick-lanes>.ehunter-quick-lane.ehunter-hidden>.ehunter-lane-header[data-v-b3713ec5]{color:#6d7a8e}.ehunter-more-settings-modal>.ehunter-panel>.ehunter-panel-body>.ehunter-content>.ehunter-group>.ehunter-quick-lanes>.ehunter-quick-lane.ehunter-hidden>.ehunter-quick-item[data-v-b3713ec5]{background:#ecf0f6eb;border-color:#8d99ae40}.ehunter-more-settings-modal>.ehunter-panel>.ehunter-panel-body>.ehunter-content>.ehunter-group>.ehunter-quick-lanes>.ehunter-quick-lane.ehunter-hidden>.ehunter-quick-item>.ehunter-drag-handle[data-v-b3713ec5]{opacity:.52;background:radial-gradient(circle,#8191a8 1.1px,transparent 1.2px) 0 0/6px 6px,radial-gradient(circle,#8191a8 1.1px,transparent 1.2px) 3px 3px/6px 6px}.ehunter-more-settings-modal>.ehunter-panel>.ehunter-panel-body>.ehunter-content>.ehunter-group>.ehunter-quick-lanes>.ehunter-quick-lane.ehunter-hidden>.ehunter-quick-item>.ehunter-label[data-v-b3713ec5],.ehunter-more-settings-modal>.ehunter-panel>.ehunter-panel-body>.ehunter-content>.ehunter-group>.ehunter-quick-lanes>.ehunter-quick-lane.ehunter-hidden>.ehunter-quick-item>.ehunter-mode-tag[data-v-b3713ec5]{color:#7e889a}.ehunter-more-settings-modal>.ehunter-panel>.ehunter-panel-body>.ehunter-content>.ehunter-group>.ehunter-shortcut-intro[data-v-b3713ec5]{margin:0 0 8px;font-size:12px;line-height:1.35;color:#5c6e8d}@media only screen and (max-width:767px){.ehunter-more-settings-modal[data-v-b3713ec5]{padding:0}.ehunter-more-settings-modal>.ehunter-panel[data-v-b3713ec5]{width:100%;height:100%;border-radius:0}.ehunter-more-settings-modal>.ehunter-panel>.ehunter-panel-body[data-v-b3713ec5]{flex-direction:column}.ehunter-more-settings-modal>.ehunter-panel>.ehunter-panel-body>.ehunter-left-nav[data-v-b3713ec5]{width:100%;border-right:none;border-bottom:1px solid rgba(71,89,126,.15);flex-direction:row;overflow-x:auto;white-space:nowrap;gap:6px;padding:10px}.ehunter-more-settings-modal>.ehunter-panel>.ehunter-panel-body>.ehunter-left-nav>.ehunter-category[data-v-b3713ec5]{flex-shrink:0;padding:8px 10px;font-size:13px}.ehunter-more-settings-modal>.ehunter-panel>.ehunter-panel-body>.ehunter-content[data-v-b3713ec5]{padding:12px 14px}.ehunter-more-settings-modal>.ehunter-panel>.ehunter-panel-body>.ehunter-content>.ehunter-group>.ehunter-row>.ehunter-label-block[data-v-b3713ec5]{min-width:0}.ehunter-more-settings-modal>.ehunter-panel>.ehunter-panel-body>.ehunter-content>.ehunter-group>.ehunter-row>.ehunter-link[data-v-b3713ec5]{max-width:58%}}[data-v-b3713ec5] .drop-option>.text{background:#f2fff6;border:1px solid #86c59e;border-radius:8px;color:#2a6042;font-weight:600;padding:4px 10px}[data-v-b3713ec5] .drop-option>.icon-drop-down{fill:#2a6042}[data-v-b3713ec5] .drop-option .options{background:#fff;border:1px solid rgba(95,124,169,.28);border-radius:10px;box-shadow:0 10px 22px #182c5029}.ehunter-shortcut-editor[data-v-b3713ec5]{display:flex;flex-direction:row;align-items:center;justify-content:flex-end;gap:6px;flex-wrap:wrap;max-width:56%}.ehunter-shortcut-chips[data-v-b3713ec5]{display:flex;flex-direction:row;gap:5px;flex-wrap:wrap;justify-content:flex-end}.ehunter-shortcut-chip[data-v-b3713ec5]{border:1px solid #8bc7a0;border-radius:999px;background:#f4fff7;color:#25543a;display:flex;flex-direction:row;align-items:center;justify-content:center;font-size:11px;line-height:1;padding:4px 8px;max-width:180px;cursor:pointer;transition:background-color .15s ease,border-color .15s ease}.ehunter-shortcut-chip[data-v-b3713ec5]:hover{background:#ecfaef;border-color:#6fb88b}.ehunter-shortcut-chip>.ehunter-chip-key[data-v-b3713ec5]{display:block;font-weight:600;text-align:center}.ehunter-shortcut-chip>.ehunter-chip-remove[data-v-b3713ec5]{font-weight:700;display:inline-flex;flex-direction:row;align-items:center;justify-content:center;width:0;margin-left:0;text-align:center;overflow:hidden;white-space:nowrap;opacity:0;pointer-events:none;transition:width .15s ease,margin-left .15s ease,opacity .15s ease}.ehunter-shortcut-chip:hover>.ehunter-chip-remove[data-v-b3713ec5],.ehunter-shortcut-chip:focus-visible>.ehunter-chip-remove[data-v-b3713ec5]{width:10px;margin-left:4px;opacity:.8}.ehunter-shortcut-chip-list-enter-active[data-v-b3713ec5],.ehunter-shortcut-chip-list-leave-active[data-v-b3713ec5]{transition:opacity .16s ease,transform .16s ease,max-width .16s ease,margin .16s ease,padding .16s ease}.ehunter-shortcut-chip-list-move[data-v-b3713ec5]{transition:transform .16s ease}.ehunter-shortcut-chip-list-enter-from[data-v-b3713ec5],.ehunter-shortcut-chip-list-leave-to[data-v-b3713ec5]{opacity:0;transform:scale(.88)}.ehunter-shortcut-chip-list-leave-to[data-v-b3713ec5]{max-width:0;margin-left:0;margin-right:0;padding-left:0;padding-right:0;border-width:0}.ehunter-shortcut-add[data-v-b3713ec5]{display:flex;flex-direction:row;align-items:center;gap:4px}.ehunter-shortcut-add-btn[data-v-b3713ec5]{width:24px;height:24px;border-radius:50%;border:1px solid #7fbe98;background:#effbf2;color:#2b6a47;font-size:15px;font-weight:700;line-height:1;text-align:center;padding:0;display:flex;flex-direction:row;align-items:center;justify-content:center;cursor:pointer}.ehunter-shortcut-add-btn[data-v-b3713ec5]:hover{background:#e2f5e8;border-color:#69ae85}.ehunter-shortcut-add-icon[data-v-b3713ec5]{display:block;line-height:1;transform:translateY(-1px);pointer-events:none}.ehunter-shortcut-select[data-v-b3713ec5]{min-width:110px;max-width:150px;border:1px solid #8bc7a0;border-radius:7px;background:#f6fff8;color:#2b5d41;font-size:11px;line-height:1.2;padding:4px 7px}.ehunter-shortcut-select[data-v-b3713ec5]:hover,.ehunter-shortcut-select[data-v-b3713ec5]:focus{border-color:#6ed08f;background:#e9fff1!important;color:#1f7a3f}div[data-v-f31c6980]{display:flex}.top-bar[data-v-f31c6980]{width:100%;height:var(--v0daa2faa);min-height:var(--v0daa2faa);max-height:var(--v0daa2faa);padding:0;margin:0;background:transparent;position:relative}.top-bar>.float-content[data-v-f31c6980]{position:absolute;top:0;right:0;height:100%;display:flex;flex-direction:row;align-items:center;z-index:20000;flex-shrink:0}.top-bar>.float-content .circle-icon-button[data-v-f31c6980]{height:26px;width:26px;min-height:26px;min-width:26px;max-height:26px;max-width:26px;flex:0 0 26px;padding:0;margin-top:0;margin-bottom:0}.top-bar>.float-content .circle-icon-button>svg[data-v-f31c6980]{height:18px;width:18px;min-height:18px;min-width:18px}.top-bar>.float-content>.more-button-wrapper[data-v-f31c6980]{position:relative;display:flex;flex-direction:row;align-items:center}.top-bar>.float-content>.button[data-v-f31c6980],.top-bar>.float-content>.more-button-wrapper[data-v-f31c6980]{margin-right:13px}.top-bar>.inner-content[data-v-f31c6980]{color:#fff;display:flex;flex-direction:row;flex-grow:1;align-items:center;background:var(--ehunter-accent-color, #28af60);font-size:14px;transition:all .3s ease;height:100%}.top-bar>.inner-content>.item[data-v-f31c6980]{margin-left:18px;position:relative;display:flex;flex-direction:row;align-items:center;height:100%;flex:0 0 auto}.top-bar>.inner-content>.item .drop-option[data-v-f31c6980],.top-bar>.inner-content>.item .num-drop-option[data-v-f31c6980],.top-bar>.inner-content>.item .switch[data-v-f31c6980]{flex:0 0 auto}.top-bar>.inner-content>.item .drop-option>.text[data-v-f31c6980]{padding:3px 5px;min-height:20px;line-height:14px;box-sizing:border-box}.top-bar>.inner-content>.item .switch[data-v-f31c6980]{width:28px;min-width:28px;height:20px;margin:0 15px}.top-bar>.inner-content>.item .switch>.track[data-v-f31c6980]{height:14px;width:100%}.top-bar>.inner-content>.item .switch>.thumb[data-v-f31c6980]{width:20px;height:20px}.top-bar>.inner-content>.item.less-margin[data-v-f31c6980]{margin-left:10px}.top-bar>.inner-content>.item.icon-margin[data-v-f31c6980]{margin-left:15px}.top-bar>.inner-content>.item>.label[data-v-f31c6980]{display:flex;align-items:center;font-size:14px;margin:0;white-space:nowrap;cursor:default}.top-bar>.inner-content>.item>.label.icon>svg[data-v-f31c6980]{fill:#fff;height:18px;width:18px}.top-bar>.inner-content>.item>.label.icon>svg.reset[data-v-f31c6980]{height:18px;width:18px}.top-bar>.inner-content>.item>.label.icon>svg.info[data-v-f31c6980]{height:20px;width:20px}.top-bar>.inner-content>.item>.label.icon>svg.github[data-v-f31c6980]{height:17px}.top-bar>.inner-content>.item>.label.clickable[data-v-f31c6980]{cursor:pointer}.top-bar>.inner-content.hide[data-v-f31c6980]{transform:translateY(-100%)}.awesome-scroll-view[data-v-4f224e6d]{position:relative;overflow-y:overlay;overflow-x:hidden;display:flex;flex-direction:column}.awesome-scroll-view.axis-x[data-v-4f224e6d]{overflow-y:hidden;overflow-x:overlay;flex-direction:row}.awesome-scroll-view.scrollbar[data-v-4f224e6d]{transition:all .3s ease}.awesome-scroll-view.scrollbar[data-v-4f224e6d]::-webkit-scrollbar{width:8px;height:8px;background:transparent}.awesome-scroll-view.scrollbar[data-v-4f224e6d]::-webkit-scrollbar-track{background:transparent}.awesome-scroll-view.scrollbar[data-v-4f224e6d]::-webkit-scrollbar-thumb{border-radius:999px;border:2px solid transparent;background-clip:padding-box;background-color:#fff0;transition:background-color .2s ease}.awesome-scroll-view.scrollbar[data-v-4f224e6d]:hover::-webkit-scrollbar-thumb{background-color:#ffffff75}.awesome-scroll-view.axis-y[data-v-4f224e6d]{scrollbar-width:thin;scrollbar-color:rgba(255,255,255,0) transparent}.awesome-scroll-view.axis-y[data-v-4f224e6d]:hover{scrollbar-color:rgba(255,255,255,.46) transparent}.awesome-scroll-view.axis-x[data-v-4f224e6d]{scrollbar-width:thin;scrollbar-color:rgba(255,255,255,0) transparent}.awesome-scroll-view.axis-x[data-v-4f224e6d]:hover{scrollbar-color:rgba(255,255,255,.46) transparent}.dock-handle[data-v-5a311fbe]{appearance:none;border:0;color:#fff;background:transparent;width:100%;height:100%;min-height:40px;font-weight:700;letter-spacing:.08em;cursor:grab;transition:background-color .2s ease}.dock-handle[data-v-5a311fbe]:hover{background:#ffffff14}.dock-handle.armed[data-v-5a311fbe]{background:#0003}.dock-handle[data-v-5a311fbe]:active{cursor:grabbing}.thumb-view[data-v-88a65bb0]{width:100%;height:100%;min-width:0;min-height:0;overflow:hidden;display:flex;flex-direction:column;align-items:center;justify-content:center}.thumb-view>.thumb-stage[data-v-88a65bb0]{flex-shrink:0;transform-origin:center center;display:flex;flex-direction:column;align-items:center;justify-content:center}.thumb-view>.thumb-stage>.thumb-sprite[data-v-88a65bb0],.thumb-view>.thumb-stage>.thumb-image[data-v-88a65bb0]{width:100%;height:100%;display:block}.thumb-view>.thumb-stage>.thumb-image[data-v-88a65bb0]{object-fit:contain}.thumb-view>.thumb-fallback[data-v-88a65bb0]{width:100%;height:100%;display:flex;flex-direction:row;align-items:center;justify-content:center;text-align:center}.thumb-content[data-v-2665bf4a]{position:relative;height:100%;width:100%;display:flex;flex-direction:column;min-height:0;min-width:0}.thumb-content .thumb-scroll-view[data-v-2665bf4a]{position:relative;background:#444;height:100%;flex:1;min-height:0;min-width:0;width:100%}.thumb-content .thumb-scroll-view[data-v-2665bf4a]:not(.dock-bottom){display:flex;flex-direction:column;align-items:stretch}.thumb-content .thumb-scroll-view>.header[data-v-2665bf4a]{position:relative;height:40px;background:#2ecc71;flex-shrink:0}.thumb-content .thumb-scroll-view>.header>.app-name[data-v-2665bf4a]{color:#fff;font-weight:bolder;font-size:var(--v5a8223be);letter-spacing:var(--v6df6e1a2);display:block;position:absolute;white-space:nowrap;top:50%;left:50%;transform:translate(-50%,-50%);width:100%;height:100%}.thumb-content .thumb-scroll-view .thumb-container[data-v-2665bf4a]{position:relative;width:100%;padding:3px 0;margin:0;height:var(--v3276ebb2);flex-shrink:0;text-align:center;display:flex;align-items:center;justify-content:center;box-sizing:border-box;overflow:hidden;transition:all .1s ease}.thumb-content .thumb-scroll-view .thumb-container>.thumb-stage[data-v-2665bf4a]{position:relative;width:var(--v44d27a72);height:var(--v3276ebb2);display:flex;flex-direction:column;align-items:center;justify-content:center;transition:all .2s ease}.thumb-content .thumb-scroll-view .thumb-container>.thumb-stage>.thumb[data-v-2665bf4a]{width:100%;height:100%;transition:all .5s ease}.thumb-content .thumb-scroll-view .thumb-container>.thumb-stage>.index[data-v-2665bf4a]{position:absolute;display:block;font-weight:bolder;font-size:var(--v928be0aa);color:#333c;-webkit-text-stroke:1px rgba(255,255,255,.8);top:50%;left:50%;transform:translate(-50%,-50%);z-index:20;user-select:none;cursor:default;transition:all .2s ease}.thumb-content .thumb-scroll-view .thumb-container[data-v-2665bf4a]:hover{background:#0006}.thumb-content .thumb-scroll-view .thumb-container:hover>.thumb-stage>.index[data-v-2665bf4a]{font-size:var(--v6297f873);color:#333;-webkit-text-stroke:1px white}.thumb-content .thumb-scroll-view:not(.dock-bottom) .thumb-container[data-v-2665bf4a]{padding:3px var(--v4f06c231)}.thumb-content .thumb-scroll-view:not(.dock-bottom) .thumb-container>.thumb-stage[data-v-2665bf4a]{width:100%}.thumb-content .thumb-scroll-view:not(.dock-bottom) .thumb-container+.thumb-container[data-v-2665bf4a]{margin-top:var(--v595b4c6c)}.thumb-content .thumb-scroll-view .indicator[data-v-2665bf4a]{position:absolute;box-sizing:border-box;margin-top:40px;height:var(--v3276ebb2);left:0;right:0;border-left:3px solid rgba(255,255,255,.4);border-right:3px solid rgba(255,255,255,.4);background:#0006;transition:all .5s ease;pointer-events:none;top:var(--v3d2994ea)}.thumb-content .thumb-expand-trigger[data-v-2665bf4a]{position:absolute;left:50%;bottom:8px;transform:translate(-50%);z-index:25;display:flex;flex-direction:row;align-items:center;justify-content:center;border:1px solid rgba(255,255,255,.4);border-radius:999px;background:#00000073;color:#ffffffeb;width:32px;height:32px;cursor:pointer;opacity:.78;transition:all .2s ease}.thumb-content .thumb-expand-trigger>.expand-icon[data-v-2665bf4a]{width:16px;height:16px;fill:currentColor;transform:rotate(0)}.thumb-content .thumb-expand-trigger[data-v-2665bf4a]:hover{opacity:1;background:#000000a6}.thumb-content .thumb-expand-trigger.dock-bottom[data-v-2665bf4a]{inset:50% 8px auto auto;transform:translateY(-50%)}.thumb-content .thumb-expand-trigger.dock-bottom>.expand-icon[data-v-2665bf4a]{transform:rotate(90deg)}.thumb-content.dock-bottom .thumb-scroll-view[data-v-2665bf4a]{width:100%;height:100%;flex-direction:row;overflow-x:overlay;overflow-y:hidden}.thumb-content.dock-bottom .thumb-scroll-view>.header[data-v-2665bf4a]{width:40px;height:100%}.thumb-content.dock-bottom .thumb-scroll-view>.header>.app-name[data-v-2665bf4a]{writing-mode:vertical-rl;text-orientation:upright;white-space:normal;letter-spacing:var(--v15069c5b);top:0;left:0;transform:none;width:100%;height:100%;display:flex;align-items:center;justify-content:center;font-size:var(--v3b1f8b12);line-height:1}.thumb-content.dock-bottom .thumb-scroll-view .indicator[data-v-2665bf4a]{display:block;margin-top:0;margin-left:40px;top:0;left:var(--v3d2994ea);width:var(--v44d27a72);height:100%;border-left:0;border-right:0;border-top:3px solid rgba(255,255,255,.4);border-bottom:3px solid rgba(255,255,255,.4)}.thumb-content.dock-bottom .thumb-scroll-view .thumb-container[data-v-2665bf4a]{width:var(--v44d27a72);min-width:var(--v44d27a72);height:100%;padding:var(--v0891a98a) var(--d8540348);flex-direction:column}.thumb-content.dock-bottom .thumb-scroll-view .thumb-container>.thumb-stage[data-v-2665bf4a]{width:100%;height:100%;transform-origin:center center}.ehunter-loading-view[data-v-5a40b588]{display:flex;flex-direction:column;justify-content:center;align-items:center;width:100%;height:100%;background:#333}.ehunter-loading-view .loading-animation[data-v-5a40b588]{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:24px}.ehunter-loading-view .loading-animation .book[data-v-5a40b588]{position:relative;margin:0 auto;border:5px solid #ecf0f1;width:100px;height:60px}.ehunter-loading-view .loading-animation .book__page[data-v-5a40b588]{position:absolute;left:50%;top:-5px;margin:0 auto;border-top:5px solid #ecf0f1;border-bottom:5px solid #ecf0f1;border-right:5px solid #ecf0f1;background:#333;width:50px;height:60px;transform-origin:0% 50%;animation:flip-5a40b588 .85s infinite linear;animation-fill-mode:forwards;backface-visibility:hidden}.ehunter-loading-view .loading-animation .book__page[data-v-5a40b588]:nth-child(1){z-index:3;animation-delay:-.28s}.ehunter-loading-view .loading-animation .book__page[data-v-5a40b588]:nth-child(2){z-index:2;animation-delay:-.56s}.ehunter-loading-view .loading-animation .book__page[data-v-5a40b588]:nth-child(3){z-index:1;animation-delay:-.84s}@keyframes flip-5a40b588{0%{transform:perspective(600px) rotateY(0)}20%{background:#1a1a1a}29.9%{background:#1a1a1a}30%{transform:perspective(200px) rotateY(-90deg);background:#333}54.999%{opacity:1}55%{opacity:0}60%{transform:perspective(200px) rotateY(-180deg);background:#333}to{transform:perspective(200px) rotateY(-180deg);background:#333}}.ehunter-loading-view .loading-animation h4[data-v-5a40b588]{color:#fff;text-align:center;font-family:sans-serif;text-transform:uppercase;font-size:20px;position:relative;margin:0}.ehunter-loading-view .loading-animation h4[data-v-5a40b588]:after{position:absolute;content:"";-webkit-animation:Dots-5a40b588 1.4s cubic-bezier(0,.39,1,.68) infinite;animation:Dots-5a40b588 1.4s cubic-bezier(0,.39,1,.68) infinite}@-webkit-keyframes Dots-5a40b588{0%{content:""}33%{content:"."}66%{content:".."}to{content:"..."}}@keyframes Dots-5a40b588{0%{content:""}33%{content:"."}66%{content:".."}to{content:"..."}}.ehunter-loading[data-v-5a40b588]{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100vh}.ehunter-error[data-v-5a40b588]{display:flex;flex-direction:column;align-items:stretch;padding:20px;background:#333;color:#fff;min-height:100vh;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;text-align:left}.error-header[data-v-5a40b588]{display:flex;flex-direction:row;justify-content:space-between;align-items:center;margin-bottom:20px;border-bottom:1px solid rgba(255,255,255,.2);padding-bottom:10px}.error-header h3[data-v-5a40b588]{margin:0;font-size:24px;color:#ff6b6b}.close-button[data-v-5a40b588]{background:none;border:none;color:#fff;font-size:32px;cursor:pointer;padding:0;width:32px;height:32px;display:flex;flex-direction:row;align-items:center;justify-content:center;border-radius:4px;transition:background .2s}.close-button[data-v-5a40b588]:hover{background:#ffffff1a}.error-message[data-v-5a40b588]{font-size:16px;line-height:1.5;margin-bottom:20px;color:#ffffffe6}.error-details[data-v-5a40b588]{background:#0000004d;border:1px solid rgba(255,255,255,.2);border-radius:4px;padding:15px}.init-steps[data-v-5a40b588]{display:flex;flex-direction:column;gap:8px;margin-bottom:16px;padding:12px;border:1px solid rgba(255,255,255,.2);border-radius:6px;background:#00000040}.init-steps h4[data-v-5a40b588]{margin:0;font-size:15px;color:#d9f2ff}.init-steps ul[data-v-5a40b588]{margin:0;padding-left:18px;display:flex;flex-direction:column;gap:6px}.init-steps li[data-v-5a40b588]{font-size:13px;line-height:1.4}.step-status[data-v-5a40b588]{display:inline-flex;flex-direction:row;align-items:center;justify-content:center;min-width:52px;margin-right:8px;border-radius:999px;padding:1px 8px;font-size:11px;font-weight:700;text-transform:uppercase}.step-status--success[data-v-5a40b588]{background:#388e3c40;color:#8ee59a}.step-status--failed[data-v-5a40b588]{background:#d32f2f40;color:#ff9e9e}.step-status--pending[data-v-5a40b588]{background:#9e9e9e40;color:#d7d7d7}.step-label[data-v-5a40b588]{color:#fff}.step-detail[data-v-5a40b588]{color:#fffc;margin-left:4px}.error-details summary[data-v-5a40b588]{display:flex;flex-direction:row;align-items:center;justify-content:space-between;cursor:pointer;font-weight:700;margin-bottom:10px;user-select:none}.error-details summary[data-v-5a40b588]:hover{color:#4fc3f7}.error-info[data-v-5a40b588]{display:flex;flex-direction:column;gap:10px;margin-top:10px}.error-info p[data-v-5a40b588]{margin:0;font-size:14px;line-height:1.4}.error-info strong[data-v-5a40b588]{color:#4fc3f7}.copy-button[data-v-5a40b588]{border:1px solid rgba(255,255,255,.35);background:#ffffff14;color:#fff;border-radius:4px;padding:4px 10px;cursor:pointer}.copy-button[data-v-5a40b588]:hover{background:#ffffff29}.error-stack[data-v-5a40b588]{background:#00000080;border:1px solid rgba(255,255,255,.1);border-radius:4px;padding:10px;font-family:Courier New,Courier,monospace;font-size:12px;line-height:1.4;overflow-x:auto;white-space:pre-wrap;word-wrap:break-word;color:#ff9800}.feedback-link[data-v-5a40b588]{display:flex;flex-direction:row;align-items:center;gap:8px;margin-top:0;margin-bottom:16px;padding:10px 12px;border-left:4px solid #ffd166;border-radius:6px;background:#ffd1662e;color:#fff4cf;font-size:14px;line-height:1.4}.feedback-link a[data-v-5a40b588]{color:#ffe29a;text-decoration:underline;font-weight:700}.feedback-link a[data-v-5a40b588]:hover{color:#fff6d7}div[data-v-34f09df5],span[data-v-34f09df5]{display:flex}.page-view[data-v-34f09df5]{position:absolute;inset:0;transition:all .3s ease;overflow:visible}.page-view>.layer[data-v-34f09df5]{position:absolute;top:0;left:0;width:100%;height:100%}.page-view>.preview-layer[data-v-34f09df5]{overflow:hidden;background-color:#000;display:flex;flex-direction:column;align-items:stretch;justify-content:stretch}.page-view>.preview-layer>.preview-thumb[data-v-34f09df5]{width:100%;height:100%}.page-view>.preview-layer[data-v-34f09df5]:after{display:block;content:"";position:absolute;inset:0;background:#00000080}.page-view>.loading-layer[data-v-34f09df5]{box-shadow:inset 0 0 0 5px #565861}.page-view>.loading-layer>.index[data-v-34f09df5]{position:absolute;color:#ffffff80;font-weight:bolder;top:50%;left:50%;transform:translate(-50%,-50%);font-size:80px;margin:0}.page-view>.loading-layer>.loading-info-panel[data-v-34f09df5]{position:absolute;top:calc(50% + 80px);left:50%;transform:translate(-50%,-50%);color:#fff;font-size:14px;z-index:1}.page-view>.loading-layer>.loading-info-panel .loading-info[data-v-34f09df5]{padding:20px;display:flex;align-items:center;flex-direction:column}.page-view>.loading-layer>.loading-info-panel .loading-info>.operation[data-v-34f09df5]{margin-top:2px}.page-view>.loading-layer>.loading-info-panel .loading-info>.operation>.no-margin[data-v-34f09df5]{margin-left:0}.page-view>.img-layer>.album-item[data-v-34f09df5]{width:inherit;min-width:inherit;height:inherit}.menu-layer[data-v-34f09df5]{z-index:12010;pointer-events:auto}.menu-layer>.menu-anchor[data-v-34f09df5]{position:absolute;width:0;height:0}.menu-layer>.menu-anchor[data-v-34f09df5] .popover{min-width:170px;z-index:12020}.page-menu-options[data-v-34f09df5]{flex-direction:column;min-width:170px}.page-menu-options>.item[data-v-34f09df5]{border:0;background:#fff;display:flex;flex-direction:column;align-items:flex-start;padding:8px 12px;color:#000000d1;transition:all .2s ease;width:100%;font-size:13px}.page-menu-options>.item>small[data-v-34f09df5]{margin-top:3px;color:#00000073;font-size:11px}.page-menu-options>.item[data-v-34f09df5]:hover{cursor:pointer;background:#00000014;color:#28af60}.page-menu-options>.item[data-v-34f09df5]:disabled,.page-menu-options>.item.disabled[data-v-34f09df5]{cursor:not-allowed;color:#00000073;background:#00000008}.focus-indicator[data-v-34f09df5]{position:absolute;border:1px solid rgba(255,255,255,.7);background:#ffffff4d;box-sizing:border-box;pointer-events:none;z-index:12005}.magnifier-lens[data-v-34f09df5]{position:absolute;border:2px solid hsl(145,63%,42%);box-shadow:0 8px 22px #00000059,0 0 0 1px #28af60cc;overflow:hidden;background:#0000001f;pointer-events:none;z-index:12009}.magnifier-lens>.magnifier-canvas[data-v-34f09df5]{width:100%;height:100%;display:block}.magnifier-lens>.magnifier-pending[data-v-34f09df5]{position:absolute;inset:0;display:flex;flex-direction:row;align-items:center;justify-content:center;gap:6px;font-size:12px;color:#ffffffeb;background:linear-gradient(135deg,#00000047,#00000029)}.magnifier-lens>.magnifier-pending>.spinner[data-v-34f09df5]{width:12px;height:12px;border-radius:50%;border:2px solid rgba(255,255,255,.35);border-top-color:#fffffff2;animation:magnifier-spin-34f09df5 .7s linear infinite}@keyframes magnifier-spin-34f09df5{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.album-scroll-view[data-v-c08983c3]{position:relative;flex-direction:column;align-items:center;height:100%;width:100%}.album-scroll-view>.preload[data-v-c08983c3]{position:absolute;top:0;left:0;width:200px;height:144px;z-index:-10;opacity:0;display:flex;flex-direction:row}.album-scroll-view>.preload .preload-item[data-v-c08983c3]{width:200px;height:144px;position:relative}.album-scroll-view>.scroll-view[data-v-c08983c3]{height:100%;width:100%}.album-scroll-view>.scroll-view h1[data-v-c08983c3]{color:#c9cacf;padding:10px 20px;font-size:18px;text-align:center;margin-top:60px}.album-scroll-view>.scroll-view>.top-pagination[data-v-c08983c3]{margin-top:15px;margin-bottom:15px}.album-scroll-view>.scroll-view>.bottom-pagination[data-v-c08983c3]{margin-top:15px;margin-bottom:30px}.album-scroll-view>.scroll-view .page-container[data-v-c08983c3]{transition:all .3s ease;height:0;position:relative}.album-scroll-view>.scroll-view .page-container[data-v-c08983c3]:first-of-type{margin-top:35px}.album-scroll-view>.scroll-view .page-container[data-v-c08983c3]:last-of-type{margin-bottom:35px}.book-page-view[data-v-26accc38]{position:relative;transition:all .3s ease;user-select:none;width:100%;height:100%}.book-page-view>.page[data-v-26accc38]{background:#fff;flex:1;align-self:stretch;overflow:hidden}.book-page-view>.page>.ehunter-tag[data-v-26accc38]{position:absolute;right:8vh;bottom:8vh;padding:1vh 10vh;background:#28af60;color:#fff;font-size:1.8vh;transform-origin:center;transform:translate(50%,50%) rotate(-45deg)}.book-page-view>.page>.ehunter-tag.left[data-v-26accc38]{left:7vh;right:initial;transform:translate(-50%,50%) rotate(45deg)}.book-page-view>.page.start-page[data-v-26accc38]{position:relative;justify-content:center}.book-page-view>.page.start-page>h1[data-v-26accc38]{font-size:4vh;font-weight:lighter;margin:40% 20px;text-align:left;color:#000c}.book-page-view>.page.end-page[data-v-26accc38]{position:relative;justify-content:center;align-items:center}.book-page-view>.page.end-page>h1[data-v-26accc38]{color:#000000b3;font-size:6vh;padding-bottom:20%}.album-book-view[data-v-8501a27e]{display:flex;flex-direction:column;position:relative;overflow:hidden;height:100%;width:100%}.album-book-view>.book-spread[data-v-8501a27e]{position:absolute;inset:0;width:100%;height:100%;transform-style:preserve-3d}.album-book-view>.book-spread>.book-page-container[data-v-8501a27e]{user-select:none;position:absolute;box-sizing:border-box;box-shadow:0 19px 10px -8px #00000059;overflow:visible}.album-book-view>.book-spread>.book-page-container[data-v-8501a27e]:hover{z-index:13050!important}.album-book-view>.book-page-container[data-v-8501a27e]{user-select:none;position:absolute;box-sizing:border-box;box-shadow:0 19px 10px -8px #00000059}.album-book-view.mode-rotate[data-v-8501a27e]{perspective:1800px;perspective-origin:50% 50%}.album-book-view.mode-rotate>.book-spread[data-v-8501a27e]{backface-visibility:hidden;will-change:transform,opacity;overflow:visible;--curl-before-opacity: 0;--curl-after-opacity: 0;--curl-before-transform: translateX(0) scaleX(1);--curl-after-transform: translateX(0) scaleX(1)}.album-book-view.mode-rotate>.book-spread[data-v-8501a27e]:before,.album-book-view.mode-rotate>.book-spread[data-v-8501a27e]:after{content:"";position:absolute;inset:-2% -1%;pointer-events:none;opacity:var(--curl-before-opacity);transition:opacity .42s ease,transform .42s cubic-bezier(.22,.61,.36,1)}.album-book-view.mode-rotate>.book-spread[data-v-8501a27e]:before{background:radial-gradient(120% 85% at 52% 50%,#ffffff52,#ffffff1f 26%,#ffffff05 62%,#fff0);mix-blend-mode:screen}.album-book-view.mode-rotate>.book-spread[data-v-8501a27e]:after{background:linear-gradient(90deg,#00000057,#00000029 14%,#0000000f 30%,#0000 55%);opacity:var(--curl-after-opacity);transform:var(--curl-after-transform)}.album-book-view.mode-rotate>.book-spread[data-v-8501a27e]:before{transform:var(--curl-before-transform)}.album-book-view.mode-rotate>.book-spread>.book-page-container[data-v-8501a27e]{overflow:visible}.album-book-view.mode-rotate>.book-spread>.book-page-container[data-v-8501a27e]:after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(90deg,#00000029,#0000000a 18%,#fff0 60%);opacity:.35}.album-book-view.mode-slide>.book-spread[data-v-8501a27e]{will-change:transform,opacity;backface-visibility:hidden;box-shadow:0 16px 26px -14px #00000061}.album-book-view.mode-page-flip[data-v-8501a27e]{perspective:2400px;perspective-origin:50% 50%}.album-book-view.mode-page-flip>.book-spread[data-v-8501a27e]{transform-style:preserve-3d;backface-visibility:hidden;will-change:transform}.album-book-view>.bottom-pagination[data-v-8501a27e]{position:absolute;bottom:5%;left:50%;transform:translate(-50%);background:#333;border-radius:3px;opacity:.5;box-shadow:1px 1px 5px 1px #0000001a;transition:all .3s ease;z-index:12000}.album-book-view>.bottom-pagination[data-v-8501a27e]:hover{opacity:1}.action-panel[data-v-8501a27e]{position:absolute;inset:0;z-index:10000;opacity:.5;display:none;background-color:#000;pointer-events:none}.action-panel .next[data-v-8501a27e]{position:absolute;left:0;right:0;height:35%;bottom:0;background-color:red;pointer-events:none}.action-panel .pre[data-v-8501a27e]{position:absolute;left:0;right:0;height:35%;top:0;background-color:green;pointer-events:none}.action-panel .setting[data-v-8501a27e]{position:absolute;left:0;right:0;height:30%;top:50%;transform:translateY(-50%);background-color:purple;pointer-events:none}.screen-flip-enter-active[data-v-8501a27e],.screen-flip-leave-active[data-v-8501a27e]{transition:transform var(--v540b8e92) cubic-bezier(.4,0,.2,1),opacity var(--v540b8e92) ease}.screen-flip-enter-from[data-v-8501a27e]{transform-origin:right center;transform:rotateY(90deg);opacity:0}.screen-flip-leave-to[data-v-8501a27e]{transform-origin:left center;transform:rotateY(-90deg);opacity:0}.screen-flip-reverse-enter-active[data-v-8501a27e],.screen-flip-reverse-leave-active[data-v-8501a27e]{transition:transform var(--v540b8e92) cubic-bezier(.4,0,.2,1),opacity var(--v540b8e92) ease}.screen-flip-reverse-enter-from[data-v-8501a27e]{transform-origin:left center;transform:rotateY(-90deg);opacity:0}.screen-flip-reverse-leave-to[data-v-8501a27e]{transform-origin:right center;transform:rotateY(90deg);opacity:0}.screen-flip-reverse-leave-to[data-v-8501a27e]{transform-origin:right center;transform:translate3d(16%,0,0) rotateY(80deg) rotateX(2.8deg) skewY(-2.6deg) scale(.91,.97);opacity:0}.screen-slide-next-enter-active[data-v-8501a27e],.screen-slide-next-leave-active[data-v-8501a27e],.screen-slide-prev-enter-active[data-v-8501a27e],.screen-slide-prev-leave-active[data-v-8501a27e]{transition:transform var(--v540b8e92) cubic-bezier(.22,.74,.2,1),opacity var(--v540b8e92) ease}.screen-slide-next-enter-from[data-v-8501a27e]{transform:translate3d(0,102%,0);opacity:.95}.screen-slide-next-leave-to[data-v-8501a27e]{transform:translate3d(0,-102%,0);opacity:0}.screen-slide-prev-enter-from[data-v-8501a27e]{transform:translate3d(0,-102%,0);opacity:.95}.screen-slide-prev-leave-to[data-v-8501a27e]{transform:translate3d(0,102%,0);opacity:0}.screen-horizontal-rtl-enter-active[data-v-8501a27e],.screen-horizontal-rtl-leave-active[data-v-8501a27e],.screen-horizontal-ltr-enter-active[data-v-8501a27e],.screen-horizontal-ltr-leave-active[data-v-8501a27e]{transition:transform var(--v540b8e92) cubic-bezier(.22,.74,.2,1),opacity var(--v540b8e92) ease}.screen-horizontal-rtl-enter-from[data-v-8501a27e]{transform:translate3d(-102%,0,0);opacity:.95}.screen-horizontal-rtl-leave-to[data-v-8501a27e]{transform:translate3d(102%,0,0);opacity:0}.screen-horizontal-ltr-enter-from[data-v-8501a27e]{transform:translate3d(102%,0,0);opacity:.95}.screen-horizontal-ltr-leave-to[data-v-8501a27e]{transform:translate3d(-102%,0,0);opacity:0}.screen-none-enter-active[data-v-8501a27e],.screen-none-leave-active[data-v-8501a27e]{transition-duration:0s}.screen-none-enter-from[data-v-8501a27e],.screen-none-leave-to[data-v-8501a27e]{opacity:1;transform:none}.screen-page-flip-enter-active[data-v-8501a27e],.screen-page-flip-leave-active[data-v-8501a27e],.screen-page-flip-reverse-enter-active[data-v-8501a27e],.screen-page-flip-reverse-leave-active[data-v-8501a27e]{transition:transform var(--v540b8e92) cubic-bezier(.25,.46,.45,.94),opacity var(--v540b8e92) ease}.screen-page-flip-enter-from[data-v-8501a27e]{transform:rotateY(95deg);transform-origin:right center;opacity:.3}.screen-page-flip-leave-to[data-v-8501a27e],.screen-page-flip-reverse-enter-from[data-v-8501a27e]{transform:rotateY(-95deg);transform-origin:left center;opacity:.3}.screen-page-flip-reverse-leave-to[data-v-8501a27e]{transform:rotateY(95deg);transform-origin:right center;opacity:.3}.thumb-expand-modal[data-v-a86570b6]{position:fixed;inset:0;z-index:10024;background:radial-gradient(1400px 800px at 15% 10%,#6398ff2e,#6398ff00 60%),radial-gradient(1200px 700px at 88% 92%,#52cdba26,#52cdba00 58%),#10182775;backdrop-filter:blur(8px);display:flex;flex-direction:row;align-items:center;justify-content:center;padding:24px}.thumb-expand-modal>.panel[data-v-a86570b6]{position:relative;width:min(1200px,100%);max-height:min(90vh,900px);min-height:min(80vh,760px);border-radius:20px}@media only all and (min-width:1600px){.thumb-expand-modal>.panel[data-v-a86570b6]{width:min(1400px,100%)}}.thumb-expand-modal>.panel[data-v-a86570b6]{background:linear-gradient(165deg,#fff,#f5f8fc 48%,#eef3fa);box-shadow:0 32px 80px #08183047,0 12px 32px #0818301f,inset 0 1px #ffffffd9,inset 0 -1px #6a84b014;border:1px solid rgba(106,132,176,.2);display:flex;flex-direction:column;overflow:hidden}.thumb-expand-modal>.panel>.close-btn[data-v-a86570b6]{position:absolute;right:14px;top:12px;z-index:2;width:36px;height:36px;border-radius:50%;border:none;color:#4a6fa5;background:#ffffffe6;cursor:pointer;font-size:20px;line-height:1;display:flex;flex-direction:row;align-items:center;justify-content:center;transition:all .24s cubic-bezier(.4,0,.2,1);box-shadow:0 2px 8px #1a2d4e1f}.thumb-expand-modal>.panel>.close-btn[data-v-a86570b6]:hover{background:#ebf3ff;color:#2d5a9e;transform:scale(1.08);box-shadow:0 4px 12px #1f447d2e}.thumb-expand-modal>.panel>.close-btn[data-v-a86570b6]:active{transform:scale(.96)}.thumb-expand-modal>.panel>.grid-wrap[data-v-a86570b6]{flex:1;min-height:0;overflow:auto;padding:48px 16px 12px;display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,120px));gap:12px;justify-content:start;align-content:start;min-height:640px}.thumb-expand-modal>.panel>.grid-wrap.distributed[data-v-a86570b6]{justify-content:space-between}.thumb-expand-modal>.panel>.grid-wrap>.thumb-item[data-v-a86570b6]{height:206px;border:1px solid rgba(92,119,163,.18);border-radius:12px;background:linear-gradient(135deg,#fffffff5,#fafcffed);box-shadow:0 3px 10px #1a2d4e0d,0 1px 3px #1a2d4e12;display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;padding:8px;gap:8px;cursor:pointer;transition:all .26s cubic-bezier(.4,0,.2,1)}.thumb-expand-modal>.panel>.grid-wrap>.thumb-item[data-v-a86570b6]:hover{transform:translateY(-2px);border-color:#2ecc70;box-shadow:0 10px 24px #2ecc7026,0 4px 12px #2ecc701a;background:linear-gradient(135deg,#fff,#f8fffcfa)}.thumb-expand-modal>.panel>.grid-wrap>.thumb-item.active[data-v-a86570b6]{border-color:#2ecc70;box-shadow:0 8px 20px #2ecc7033,0 0 0 2px #2ecc7026;background:linear-gradient(135deg,#f0fff8fa,#ebfcf5f5)}.thumb-expand-modal>.panel>.grid-wrap>.thumb-item>.thumb-frame[data-v-a86570b6]{width:100%;aspect-ratio:100/144;border-radius:10px;overflow:hidden;display:flex;flex-direction:row;align-items:center;justify-content:center}.thumb-expand-modal>.panel>.grid-wrap>.thumb-item>.thumb-frame.error[data-v-a86570b6]{border:1px dashed rgba(122,136,162,.4);background:#dce3ee80}.thumb-expand-modal>.panel>.grid-wrap>.thumb-item>.thumb-frame[data-v-a86570b6]>.thumb-view{width:100%;height:100%}.thumb-expand-modal>.panel>.grid-wrap>.thumb-item>.thumb-frame[data-v-a86570b6]>.thumb-view .thumb-fallback{font-size:12px;color:#5d6f8f}.thumb-expand-modal>.panel>.grid-wrap>.thumb-item>.page-label[data-v-a86570b6]{display:flex;flex-direction:row;align-items:center;justify-content:center;height:24px;border-radius:7px;font-size:12px;font-weight:600;color:#2b4f86;background:linear-gradient(135deg,#dce9ff99,#e6f0ff80);transition:all .22s ease}.thumb-expand-modal>.panel>.grid-wrap>.thumb-item:hover>.page-label[data-v-a86570b6]{background:linear-gradient(135deg,#c1f1d5b3,#d5f6e399);color:#1c7d44}.thumb-expand-modal>.panel>.grid-wrap>.thumb-item.active>.page-label[data-v-a86570b6]{background:linear-gradient(135deg,#97e7b9d9,#acecc7bf);color:#186839;font-weight:700}.thumb-expand-modal>.panel>.pager-row[data-v-a86570b6]{display:flex;flex-direction:row;justify-content:center;align-items:center;border-top:1px solid rgba(78,102,146,.15);padding:14px 16px 16px;background:linear-gradient(180deg,#ffffffeb,#fafcffe0);backdrop-filter:blur(4px)}@media only screen and (max-width:1023px){.thumb-expand-modal[data-v-a86570b6]{padding:14px}.thumb-expand-modal>.panel[data-v-a86570b6]{min-height:min(86vh,840px)}.thumb-expand-modal>.panel>.grid-wrap[data-v-a86570b6]{padding:44px 14px 12px;gap:10px}}@media only screen and (max-width:767px){.thumb-expand-modal[data-v-a86570b6]{padding:0}.thumb-expand-modal>.panel[data-v-a86570b6]{width:100%;height:100%;max-height:none;min-height:100%;border-radius:0}.thumb-expand-modal>.panel>.grid-wrap[data-v-a86570b6]{padding:44px 0 10px;gap:10px}.thumb-expand-modal>.panel>.grid-wrap>.thumb-item[data-v-a86570b6]{height:196px;padding:7px;gap:7px}.thumb-expand-modal>.panel>.grid-wrap>.thumb-item>.page-label[data-v-a86570b6]{height:22px;font-size:11px}}.split-handle[data-v-100ef373]{position:relative;z-index:13000;background:transparent;transition:background-color .2s ease;user-select:none;-webkit-tap-highlight-color:transparent;touch-action:none}.split-handle.vertical[data-v-100ef373]{width:0}.split-handle.horizontal[data-v-100ef373]{height:0}.split-handle .grip[data-v-100ef373]{position:absolute;border-radius:2px;background:transparent;transition:background-color .2s ease}.split-handle.vertical .grip[data-v-100ef373]{top:0;bottom:0;left:-5px;width:10px;cursor:col-resize}.split-handle.horizontal .grip[data-v-100ef373]{left:0;right:0;top:-5px;height:10px;cursor:row-resize}.split-handle.active .grip[data-v-100ef373],.split-handle:hover .grip[data-v-100ef373]{background:#2ecc7129}.dock-workspace[data-v-fa3343db]{position:relative;display:flex;flex-direction:row;width:100%;height:100%;overflow:hidden}.dock-workspace.slot-right[data-v-fa3343db]{flex-direction:row-reverse}.dock-workspace.slot-bottom[data-v-fa3343db]{flex-direction:column}.thumb-panel[data-v-fa3343db]{position:relative;display:flex;flex-direction:column;min-width:0;min-height:0;overflow:hidden;opacity:1;transition:width .28s ease,height .28s ease,opacity .22s ease}.thumb-panel.collapsed[data-v-fa3343db]{opacity:0;pointer-events:none}.thumb-panel.side[data-v-fa3343db]{height:100%}.thumb-panel.bottom[data-v-fa3343db]{width:100%}.main-panel[data-v-fa3343db]{flex:1;min-width:0;min-height:0;display:flex;flex-direction:column}.main-panel.resizing[data-v-fa3343db]{user-select:none}.drop-overlay[data-v-fa3343db]{position:absolute;inset:0;pointer-events:none;z-index:12000}.drop-overlay .drop-zone[data-v-fa3343db]{position:absolute;border:1px dashed rgba(255,255,255,.45);background:#00000026;color:#fff;font-size:12px;letter-spacing:.06em;text-transform:uppercase;align-items:center;justify-content:center;display:flex;transition:all .16s ease}.drop-overlay .drop-zone.left[data-v-fa3343db]{top:8px;left:8px;bottom:8px;width:22%}.drop-overlay .drop-zone.right[data-v-fa3343db]{top:8px;right:8px;bottom:8px;width:22%}.drop-overlay .drop-zone.bottom[data-v-fa3343db]{left:8px;right:8px;bottom:8px;height:24%}.drop-overlay .drop-zone.active[data-v-fa3343db]{background:#2ecc7147;border-color:#2ecc71e6}div[data-v-bd0ec685]{display:flex}.reader-view[data-v-bd0ec685]{position:relative;flex-direction:row;align-items:center;height:100%;width:100%}.reader-view[data-v-bd0ec685] .main-content{height:100%;width:100%;flex-grow:1;position:relative;display:flex;flex-direction:column}.reader-view[data-v-bd0ec685] .main-content>.top-bar{position:absolute;z-index:10000;left:0;top:0;width:100%}.reader-view[data-v-bd0ec685] .main-content>.content{position:absolute;left:0;top:0;width:100%;height:100%}.reader-view>.panel[data-v-bd0ec685]{display:flex;align-items:center;justify-content:center;position:absolute;bottom:2vh;right:2vh;z-index:10000;opacity:.5;transition:all .2s ease}.reader-view>.panel[data-v-bd0ec685]:hover{opacity:1}.reader-view>.panel>.location[data-v-bd0ec685]{color:#28af60;display:inline-block;font-size:16px;line-height:16px;margin-top:2px}.reader-view>.panel .icon-container[data-v-bd0ec685]{position:relative;display:inline-block}.reader-view>.panel>.full-screen[data-v-bd0ec685]{cursor:pointer;margin-left:5px}.reader-view>.panel>.full-screen>svg[data-v-bd0ec685]{fill:#28af60;width:26px;height:26px}.reader-view>.status-pannel[data-v-bd0ec685]{z-index:10000;position:absolute;bottom:0;right:0;display:flex;flex-direction:row;align-items:center;opacity:.5;background-color:#000;padding:3px 5px;gap:3px}.reader-view>.status-pannel>.progress[data-v-bd0ec685]{display:flex;flex-direction:row;align-items:center;font-size:11px;line-height:11px;color:#fff}.reader-view>.status-pannel>.full-screen[data-v-bd0ec685]{display:flex;flex-direction:row;align-items:center;justify-content:center;border:0;background:transparent;cursor:pointer;padding:0;color:#fff;transition:color .2s ease}.reader-view>.status-pannel>.full-screen[data-v-bd0ec685]:hover{color:#28af60}.reader-view>.status-pannel>.full-screen>svg[data-v-bd0ec685]{fill:currentColor;width:12px;height:12px}article[data-v-19f1746c],header[data-v-19f1746c],footer[data-v-19f1746c],p[data-v-19f1746c],span[data-v-19f1746c],div[data-v-19f1746c]{display:flex}.status-notification-item[data-v-19f1746c]{flex-direction:column;width:320px;padding:12px;border-radius:10px;background:linear-gradient(135deg,#1c2028f5,#14161cf5);border:1px solid rgba(255,255,255,.12);box-shadow:0 10px 24px #00000059;color:#f8fbff;gap:8px}.status-notification-item>header[data-v-19f1746c]{flex-direction:row;align-items:center;justify-content:space-between;gap:8px}.status-notification-item>header>strong[data-v-19f1746c]{font-size:13px;line-height:16px;letter-spacing:.2px}.status-notification-item>header>.close[data-v-19f1746c]{border:0;background:#ffffff26;color:#fff;width:20px;height:20px;border-radius:50%;cursor:pointer;align-items:center;justify-content:center;display:flex;font-size:14px;line-height:14px}.status-notification-item>p[data-v-19f1746c]{margin:0;font-size:12px;line-height:16px;color:#f5faffeb}.status-notification-item>.actions[data-v-19f1746c]{flex-direction:row;gap:8px}.status-notification-item>.actions>.action-btn[data-v-19f1746c]{border:0;border-radius:6px;padding:4px 10px;font-size:11px;line-height:14px;cursor:pointer;color:#f6fbff;background:#ffffff29}.status-notification-item>.actions>.action-btn.danger[data-v-19f1746c]{background:#ff5c5c42;border:1px solid rgba(255,140,140,.6)}.status-notification-item>footer[data-v-19f1746c]{flex-direction:column;gap:4px}.status-notification-item>footer>span[data-v-19f1746c]{font-size:11px;color:#f5faffcc}.status-notification-item>footer>.bar[data-v-19f1746c]{position:relative;width:100%;height:5px;border-radius:999px;overflow:hidden;background:#ffffff29}.status-notification-item>footer>.bar>i[data-v-19f1746c]{position:absolute;left:0;top:0;bottom:0;background:linear-gradient(90deg,#45d483,#9df39d)}.status-notification-item.severity-error[data-v-19f1746c]{border-color:#ff7c7c80}.status-notification-item.severity-error>footer>.bar>i[data-v-19f1746c]{background:linear-gradient(90deg,#ff7c7c,#ffb6b6)}.status-notification-item.severity-warning[data-v-19f1746c]{border-color:#ffc75e8c}.status-notification-item.severity-warning>footer>.bar>i[data-v-19f1746c]{background:linear-gradient(90deg,#ffc75e,#ffe59d)}@media only screen and (max-width:767px){.status-notification-item[data-v-19f1746c]{width:min(88vw,320px);padding:10px}}div[data-v-cded4c82]{display:flex}.status-notification-stack[data-v-cded4c82]{position:fixed;right:8px;bottom:28px;z-index:10020;pointer-events:none}.status-notification-stack>.list[data-v-cded4c82]{flex-direction:column;align-items:flex-end;gap:8px;pointer-events:auto}@media only screen and (max-width:767px){.status-notification-stack[data-v-cded4c82]{right:6px;bottom:32px}}p.markdown{font-size:14px!important;line-height:1.42857143!important;color:#333!important}p.markdown *{box-sizing:border-box}p.markdown *:before,p.markdown *:after{box-sizing:border-box}p.markdown hr{margin-top:20px;margin-bottom:20px;border:0;border-top:1px solid #eee;height:0}p.markdown input,p.markdown button,p.markdown select,p.markdown textarea{font-family:inherit;font-size:inherit;line-height:inherit}p.markdown a{color:#428bca;text-decoration:none;background:transparent}p.markdown a:hover,p.markdown a:focus{color:#2a6496;outline:none;text-decoration:underline}p.markdown p{margin:0 0 10px!important}p.markdown b,p.markdown strong{font-weight:700}p.markdown h1{font-size:36px;margin:.67em 0}p.markdown h2{font-size:30px}p.markdown h4{font-size:18px}p.markdown h5{font-size:14px}p.markdown h6{font-size:12px}p.markdown h1,p.markdown h2,p.markdown h3{margin-top:20px!important;margin-bottom:10px!important}p.markdown h4,p.markdown h5,p.markdown h6{margin-top:10px!important;margin-bottom:10px!important}p.markdown h1,p.markdown h2,p.markdown h3,p.markdown h4,p.markdown h5,p.markdown h6{font-family:inherit;font-weight:500;line-height:1.1;color:inherit}p.markdown blockquote{padding:10px 20px;margin:0 0 20px;font-size:17.5px;border-left:5px solid #eee}p.markdown blockquote:before{content:""}p.markdown blockquote:after{content:""}p.markdown ul,p.markdown ol{margin-top:0;margin-bottom:10px}p.markdown code,p.markdown kbd,p.markdown pre,p.markdown samp{font-family:Menlo,Monaco,Consolas,Courier New,monospace}p.markdown code{padding:2px 4px;font-size:90%;color:#c7254e;background-color:#f9f2f4;border-radius:4px}p.markdown ul{padding-left:20px}p.markdown ul ul,p.markdown ol ul,p.markdown ul ol,p.markdown ol ol{margin-bottom:0}p.markdown pre{display:block;padding:9.5px;margin:0 0 10px;font-size:13px;line-height:1.42857143;color:#333;word-break:break-all;word-wrap:break-word;background-color:#f5f5f5;border:1px solid #ccc;border-radius:4px;overflow:auto}p.markdown pre code{padding:0;font-size:inherit;color:inherit;white-space:pre-wrap;background-color:transparent;border-radius:0}p.markdown table{width:100%;max-width:100%;margin-bottom:20px;background-color:transparent;border-spacing:0;border-collapse:collapse}p.markdown table>caption+thead>tr:first-child>th,p.markdown table>colgroup+thead>tr:first-child>th,p.markdown table>thead:first-child>tr:first-child>th,p.markdown table>caption+thead>tr:first-child>td,p.markdown table>colgroup+thead>tr:first-child>td,p.markdown table>thead:first-child>tr:first-child>td{border-top:0}p.markdown table>thead>tr>th{vertical-align:bottom;border-bottom:2px solid #ddd}p.markdown table>thead>tr>th,p.markdown table>tbody>tr>th,p.markdown table>tfoot>tr>th,p.markdown table>thead>tr>td,p.markdown table>tbody>tr>td,p.markdown table>tfoot>tr>td{padding:8px;line-height:1.42857143;vertical-align:top;border-top:1px solid #ddd}p.markdown th{text-align:left}p.markdown td,p.markdown th{padding:0}p.markdown tbody>tr:nth-child(odd)>td,p.markdown tbody>tr:nth-child(odd)>th{background-color:#f9f9f9}p.markdown img{max-width:35%;vertical-align:middle;border:0}p.markdown sub,p.markdown sup{position:relative;font-size:75%;line-height:0;vertical-align:baseline}p.markdown sup{top:-.5em}p.markdown .emoji{height:1.2em}.ehunter-app{--ehunter-primary-color: #2ecc71;--ehunter-accent-color: #28af60;--ehunter-switch-track-active: #71ca96;--ehunter-switch-thumb-active: #006548;font-family:PingFang SC,Microsoft YaHei,微软雅黑,Arial,Hiragino Sans GB,Heiti SC,Droid Sans,WenQuanYi Micro Hei,sans-serif!important;display:flex;height:100%;text-align:initial}.ehunter-app section,.ehunter-app header,.ehunter-app nav{display:flex}.ehunter-app p{padding:0;margin:0}.ehunter-app h1,.ehunter-app h2,.ehunter-app h3,.ehunter-app h4,.ehunter-app h5,.ehunter-app h6{margin:0}.ehunter-app .clickable{cursor:pointer}.ehunter-app .no-select{user-select:none}.ehunter-app div{display:flex}.ehunter-app .tips{position:relative}.ehunter-app .tips:hover:after{content:attr(title-content);position:absolute;top:-110%;left:50%;transform:translate(-50%);font-size:12px;white-space:nowrap;padding:4px 6px 5px;border-radius:2px;min-width:50px;text-align:center;background:#000c;box-shadow:0 1px 6px #0000001e,0 1px 4px #0000001e;color:#fff}.ehunter-app .tips.tips-down:hover:after{top:130%}.ehunter-app .tips.tips-right:hover:after{left:-10%;transform:initial}.ehunter-app .tips.tips-left:hover:after{right:-20%;left:initial;transform:initial}.ehunter-app .slide-fade-enter-active,.ehunter-app .slide-fade-leave-active{transition:all .2s ease}.ehunter-app .slide-fade-enter-from,.ehunter-app .slide-fade-leave-to{transform:translate(10px);opacity:0}.ehunter-app .center-horizontal-fade-enter-active,.ehunter-app .center-horizontal-fade-leave-active{transition:all .8s ease}.ehunter-app .center-horizontal-fade-enter-from,.ehunter-app .center-horizontal-fade-leave-to{transform:translate(-40%)!important;opacity:0!important}.ehunter-app .slow-horizontal-fade-enter-active,.ehunter-app .slow-horizontal-fade-leave-active{transition:all .8s ease}.ehunter-app .slow-horizontal-fade-enter-from,.ehunter-app .slow-horizontal-fade-leave-to{transform:translate(20%);opacity:0}.ehunter-app .loading-horizontal-fade-enter-active,.ehunter-app .loading-horizontal-fade-leave-active{transition:all .5s ease}.ehunter-app .loading-horizontal-fade-enter-from,.ehunter-app .loading-horizontal-fade-leave-to{transform:translate(20%);opacity:0}.ehunter-app .fast-horizontal-fade-enter-active,.ehunter-app .fast-horizontal-fade-leave-active{transition:all .4s ease}.ehunter-app .fast-horizontal-fade-enter-from,.ehunter-app .fast-horizontal-fade-leave-to{transform:translate(20%);opacity:0}.ehunter-app .slow-vertical-fade-enter-active,.ehunter-app .slow-vertical-fade-leave-active{transition:all .8s ease}.ehunter-app .slow-vertical-fade-enter-from,.ehunter-app .slow-vertical-fade-leave-to{transform:translate(-20%,20%);opacity:0}.ehunter-app .slow-opacity-fade-enter-active,.ehunter-app .slow-opacity-fade-leave-active{transition:all .3s ease}.ehunter-app .slow-opacity-fade-enter-from,.ehunter-app .slow-opacity-fade-leave-to{opacity:0}.ehunter-app .vertical-list-enter-active,.ehunter-app .vertical-list-leave-active{transition:all .5s}.ehunter-app .vertical-list-enter-from,.ehunter-app .vertical-list-leave-to{opacity:0;transform:translateY(10%)}#jmehunter-app[data-ehunter-platform=C18] .ehunter-app{--ehunter-primary-color: #FF7A00;--ehunter-accent-color: #FF7A00;--ehunter-switch-track-active: #FFB166;--ehunter-switch-thumb-active: #FF7A00}.ehunter-container{position:absolute;height:100%;width:100%;background:#333;left:0;top:0;z-index:1}.normalize{line-height:1.15;-webkit-text-size-adjust:100%;margin:0;-webkit-font-smoothing:auto}.normalize main{display:block}.normalize h1{font-size:2em;margin:.67em 0}.normalize hr{box-sizing:content-box;height:0;overflow:visible}.normalize pre{font-family:monospace,monospace;font-size:1em}.normalize a{background-color:transparent}.normalize abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}.normalize b,.normalize strong{font-weight:bolder}.normalize code,.normalize kbd,.normalize samp{font-family:monospace,monospace;font-size:1em}.normalize small{font-size:80%}.normalize sub,.normalize sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}.normalize sub{bottom:-.25em}.normalize sup{top:-.5em}.normalize img{border-style:none}.normalize button,.normalize input,.normalize optgroup,.normalize select,.normalize textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}.normalize button,.normalize input{overflow:visible}.normalize button,.normalize select{text-transform:none}.normalize button,.normalize [type=button],.normalize [type=reset],.normalize [type=submit]{-webkit-appearance:button}.normalize button::-moz-focus-inner,.normalize [type=button]::-moz-focus-inner,.normalize [type=reset]::-moz-focus-inner,.normalize [type=submit]::-moz-focus-inner{border-style:none;padding:0}.normalize button:-moz-focusring,.normalize [type=button]:-moz-focusring,.normalize [type=reset]:-moz-focusring,.normalize [type=submit]:-moz-focusring{outline:1px dotted ButtonText}.normalize fieldset{padding:.35em .75em .625em}.normalize legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}.normalize progress{vertical-align:baseline}.normalize textarea{overflow:auto}.normalize [type=checkbox],.normalize [type=radio]{box-sizing:border-box;padding:0}.normalize [type=number]::-webkit-inner-spin-button,.normalize [type=number]::-webkit-outer-spin-button{height:auto}.normalize [type=search]{-webkit-appearance:textfield;outline-offset:-2px}.normalize [type=search]::-webkit-search-decoration{-webkit-appearance:none}.normalize ::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}.normalize details{display:block}.normalize summary{display:list-item}.normalize template{display:none}.normalize [hidden]{display:none}')),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
var i1=Object.defineProperty,a1=Object.defineProperties;var c1=Object.getOwnPropertyDescriptors;var Od=Object.getOwnPropertySymbols;var l1=Object.prototype.hasOwnProperty,u1=Object.prototype.propertyIsEnumerable;var Ma=(Je,he,Be)=>he in Je?i1(Je,he,{enumerable:!0,configurable:!0,writable:!0,value:Be}):Je[he]=Be,Xe=(Je,he)=>{for(var Be in he||(he={}))l1.call(he,Be)&&Ma(Je,Be,he[Be]);if(Od)for(var Be of Od(he))u1.call(he,Be)&&Ma(Je,Be,he[Be]);return Je},dn=(Je,he)=>a1(Je,c1(he));var re=(Je,he,Be)=>Ma(Je,typeof he!="symbol"?he+"":he,Be);var Ce=(Je,he,Be)=>new Promise((pt,Kn)=>{var An=xt=>{try{ze(Be.next(xt))}catch(Qn){Kn(Qn)}},Jn=xt=>{try{ze(Be.throw(xt))}catch(Qn){Kn(Qn)}},ze=xt=>xt.done?pt(xt.value):Promise.resolve(xt.value).then(An,Jn);ze((Be=Be.apply(Je,he)).next())});(function(){"use strict";/**
* @vue/shared v3.5.28
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/function Je(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const he={},Be=[],pt=()=>{},Kn=()=>!1,An=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Jn=e=>e.startsWith("onUpdate:"),ze=Object.assign,xt=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Qn=Object.prototype.hasOwnProperty,Me=(e,t)=>Qn.call(e,t),de=Array.isArray,Dn=e=>Zn(e)==="[object Map]",Pa=e=>Zn(e)==="[object Set]",Ra=e=>Zn(e)==="[object Date]",pe=e=>typeof e=="function",Ve=e=>typeof e=="string",Ct=e=>typeof e=="symbol",Pe=e=>e!==null&&typeof e=="object",qa=e=>(Pe(e)||pe(e))&&pe(e.then)&&pe(e.catch),Fa=Object.prototype.toString,Zn=e=>Fa.call(e),Nd=e=>Zn(e).slice(8,-1),La=e=>Zn(e)==="[object Object]",$o=e=>Ve(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Yn=Je(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Pr=e=>{const t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},Bd=/-\w/g,nn=Pr(e=>e.replace(Bd,t=>t.slice(1).toUpperCase())),zd=/\B([A-Z])/g,hn=Pr(e=>e.replace(zd,"-$1").toLowerCase()),Oa=Pr(e=>e.charAt(0).toUpperCase()+e.slice(1)),jo=Pr(e=>e?`on${Oa(e)}`:""),rn=(e,t)=>!Object.is(e,t),Rr=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},Na=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},Uo=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Hd=e=>{const t=Ve(e)?Number(e):NaN;return isNaN(t)?e:t};let Ba;const qr=()=>Ba||(Ba=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:typeof global!="undefined"?global:{});function Ge(e){if(de(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],o=Ve(r)?Ud(r):Ge(r);if(o)for(const s in o)t[s]=o[s]}return t}else if(Ve(e)||Pe(e))return e}const Vd=/;(?![^(]*\))/g,$d=/:([^]+)/,jd=/\/\*[^]*?\*\//g;function Ud(e){const t={};return e.replace(jd,"").split(Vd).forEach(n=>{if(n){const r=n.split($d);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function be(e){let t="";if(Ve(e))t=e;else if(de(e))for(let n=0;n<e.length;n++){const r=be(e[n]);r&&(t+=r+" ")}else if(Pe(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const Wd=Je("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function za(e){return!!e||e===""}function Gd(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=Wo(e[r],t[r]);return n}function Wo(e,t){if(e===t)return!0;let n=Ra(e),r=Ra(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=Ct(e),r=Ct(t),n||r)return e===t;if(n=de(e),r=de(t),n||r)return n&&r?Gd(e,t):!1;if(n=Pe(e),r=Pe(t),n||r){if(!n||!r)return!1;const o=Object.keys(e).length,s=Object.keys(t).length;if(o!==s)return!1;for(const i in e){const a=e.hasOwnProperty(i),c=t.hasOwnProperty(i);if(a&&!c||!a&&c||!Wo(e[i],t[i]))return!1}}return String(e)===String(t)}const Ha=e=>!!(e&&e.__v_isRef===!0),J=e=>Ve(e)?e:e==null?"":de(e)||Pe(e)&&(e.toString===Fa||!pe(e.toString))?Ha(e)?J(e.value):JSON.stringify(e,Va,2):String(e),Va=(e,t)=>Ha(t)?Va(e,t.value):Dn(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,o],s)=>(n[Go(r,s)+" =>"]=o,n),{})}:Pa(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Go(n))}:Ct(t)?Go(t):Pe(t)&&!de(t)&&!La(t)?String(t):t,Go=(e,t="")=>{var n;return Ct(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};function Kd(e){return e==null?"initial":typeof e=="string"?e===""?" ":e:String(e)}/**
* @vue/reactivity v3.5.28
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/let lt;class Jd{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.__v_skip=!0,this.parent=lt,!t&&lt&&(this.index=(lt.scopes||(lt.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].pause();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].resume();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].resume()}}run(t){if(this._active){const n=lt;try{return lt=this,t()}finally{lt=n}}}on(){++this._on===1&&(this.prevScope=lt,lt=this)}off(){this._on>0&&--this._on===0&&(lt=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(this.effects.length=0,n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const o=this.parent.scopes.pop();o&&o!==this&&(this.parent.scopes[this.index]=o,o.index=this.index)}this.parent=void 0}}}function Qd(){return lt}let Le;const Ko=new WeakSet;class $a{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,lt&&lt.active&&lt.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Ko.has(this)&&(Ko.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Ua(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Qa(this),Wa(this);const t=Le,n=Tt;Le=this,Tt=!0;try{return this.fn()}finally{Ga(this),Le=t,Tt=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Yo(t);this.deps=this.depsTail=void 0,Qa(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Ko.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Zo(this)&&this.run()}get dirty(){return Zo(this)}}let ja=0,Xn,er;function Ua(e,t=!1){if(e.flags|=8,t){e.next=er,er=e;return}e.next=Xn,Xn=e}function Jo(){ja++}function Qo(){if(--ja>0)return;if(er){let t=er;for(er=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;Xn;){let t=Xn;for(Xn=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(r){e||(e=r)}t=n}}if(e)throw e}function Wa(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Ga(e){let t,n=e.depsTail,r=n;for(;r;){const o=r.prevDep;r.version===-1?(r===n&&(n=o),Yo(r),Zd(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=o}e.deps=t,e.depsTail=n}function Zo(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Ka(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Ka(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===tr)||(e.globalVersion=tr,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Zo(e))))return;e.flags|=2;const t=e.dep,n=Le,r=Tt;Le=e,Tt=!0;try{Wa(e);const o=e.fn(e._value);(t.version===0||rn(o,e._value))&&(e.flags|=128,e._value=o,t.version++)}catch(o){throw t.version++,o}finally{Le=n,Tt=r,Ga(e),e.flags&=-3}}function Yo(e,t=!1){const{dep:n,prevSub:r,nextSub:o}=e;if(r&&(r.nextSub=o,e.prevSub=void 0),o&&(o.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let s=n.computed.deps;s;s=s.nextDep)Yo(s,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function Zd(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let Tt=!0;const Ja=[];function At(){Ja.push(Tt),Tt=!1}function Dt(){const e=Ja.pop();Tt=e===void 0?!0:e}function Qa(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=Le;Le=void 0;try{t()}finally{Le=n}}}let tr=0;class Yd{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Xo{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!Le||!Tt||Le===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==Le)n=this.activeLink=new Yd(Le,this),Le.deps?(n.prevDep=Le.depsTail,Le.depsTail.nextDep=n,Le.depsTail=n):Le.deps=Le.depsTail=n,Za(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const r=n.nextDep;r.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=r),n.prevDep=Le.depsTail,n.nextDep=void 0,Le.depsTail.nextDep=n,Le.depsTail=n,Le.deps===n&&(Le.deps=r)}return n}trigger(t){this.version++,tr++,this.notify(t)}notify(t){Jo();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Qo()}}}function Za(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let r=t.deps;r;r=r.nextDep)Za(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const es=new WeakMap,pn=Symbol(""),ts=Symbol(""),nr=Symbol("");function et(e,t,n){if(Tt&&Le){let r=es.get(e);r||es.set(e,r=new Map);let o=r.get(n);o||(r.set(n,o=new Xo),o.map=r,o.key=n),o.track()}}function Ht(e,t,n,r,o,s){const i=es.get(e);if(!i){tr++;return}const a=c=>{c&&c.trigger()};if(Jo(),t==="clear")i.forEach(a);else{const c=de(e),u=c&&$o(n);if(c&&n==="length"){const l=Number(r);i.forEach((f,p)=>{(p==="length"||p===nr||!Ct(p)&&p>=l)&&a(f)})}else switch((n!==void 0||i.has(void 0))&&a(i.get(n)),u&&a(i.get(nr)),t){case"add":c?u&&a(i.get("length")):(a(i.get(pn)),Dn(e)&&a(i.get(ts)));break;case"delete":c||(a(i.get(pn)),Dn(e)&&a(i.get(ts)));break;case"set":Dn(e)&&a(i.get(pn));break}}Qo()}function Mn(e){const t=_e(e);return t===e?t:(et(t,"iterate",nr),yt(e)?t:t.map(Et))}function Fr(e){return et(e=_e(e),"iterate",nr),e}function on(e,t){return $t(e)?Pn(gn(e)?Et(t):t):Et(t)}const Xd={__proto__:null,[Symbol.iterator](){return ns(this,Symbol.iterator,e=>on(this,e))},concat(...e){return Mn(this).concat(...e.map(t=>de(t)?Mn(t):t))},entries(){return ns(this,"entries",e=>(e[1]=on(this,e[1]),e))},every(e,t){return Vt(this,"every",e,t,void 0,arguments)},filter(e,t){return Vt(this,"filter",e,t,n=>n.map(r=>on(this,r)),arguments)},find(e,t){return Vt(this,"find",e,t,n=>on(this,n),arguments)},findIndex(e,t){return Vt(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Vt(this,"findLast",e,t,n=>on(this,n),arguments)},findLastIndex(e,t){return Vt(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Vt(this,"forEach",e,t,void 0,arguments)},includes(...e){return rs(this,"includes",e)},indexOf(...e){return rs(this,"indexOf",e)},join(e){return Mn(this).join(e)},lastIndexOf(...e){return rs(this,"lastIndexOf",e)},map(e,t){return Vt(this,"map",e,t,void 0,arguments)},pop(){return rr(this,"pop")},push(...e){return rr(this,"push",e)},reduce(e,...t){return Ya(this,"reduce",e,t)},reduceRight(e,...t){return Ya(this,"reduceRight",e,t)},shift(){return rr(this,"shift")},some(e,t){return Vt(this,"some",e,t,void 0,arguments)},splice(...e){return rr(this,"splice",e)},toReversed(){return Mn(this).toReversed()},toSorted(e){return Mn(this).toSorted(e)},toSpliced(...e){return Mn(this).toSpliced(...e)},unshift(...e){return rr(this,"unshift",e)},values(){return ns(this,"values",e=>on(this,e))}};function ns(e,t,n){const r=Fr(e),o=r[t]();return r!==e&&!yt(e)&&(o._next=o.next,o.next=()=>{const s=o._next();return s.done||(s.value=n(s.value)),s}),o}const eh=Array.prototype;function Vt(e,t,n,r,o,s){const i=Fr(e),a=i!==e&&!yt(e),c=i[t];if(c!==eh[t]){const f=c.apply(e,s);return a?Et(f):f}let u=n;i!==e&&(a?u=function(f,p){return n.call(this,on(e,f),p,e)}:n.length>2&&(u=function(f,p){return n.call(this,f,p,e)}));const l=c.call(i,u,r);return a&&o?o(l):l}function Ya(e,t,n,r){const o=Fr(e);let s=n;return o!==e&&(yt(e)?n.length>3&&(s=function(i,a,c){return n.call(this,i,a,c,e)}):s=function(i,a,c){return n.call(this,i,on(e,a),c,e)}),o[t](s,...r)}function rs(e,t,n){const r=_e(e);et(r,"iterate",nr);const o=r[t](...n);return(o===-1||o===!1)&&is(n[0])?(n[0]=_e(n[0]),r[t](...n)):o}function rr(e,t,n=[]){At(),Jo();const r=_e(e)[t].apply(e,n);return Qo(),Dt(),r}const th=Je("__proto__,__v_isRef,__isVue"),Xa=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Ct));function nh(e){Ct(e)||(e=String(e));const t=_e(this);return et(t,"has",e),t.hasOwnProperty(e)}class ec{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,r){if(n==="__v_skip")return t.__v_skip;const o=this._isReadonly,s=this._isShallow;if(n==="__v_isReactive")return!o;if(n==="__v_isReadonly")return o;if(n==="__v_isShallow")return s;if(n==="__v_raw")return r===(o?s?ic:sc:s?oc:rc).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const i=de(t);if(!o){let c;if(i&&(c=Xd[n]))return c;if(n==="hasOwnProperty")return nh}const a=Reflect.get(t,n,Qe(t)?t:r);if((Ct(n)?Xa.has(n):th(n))||(o||et(t,"get",n),s))return a;if(Qe(a)){const c=i&&$o(n)?a:a.value;return o&&Pe(c)?ss(c):c}return Pe(a)?o?ss(a):Br(a):a}}class tc extends ec{constructor(t=!1){super(!1,t)}set(t,n,r,o){let s=t[n];const i=de(t)&&$o(n);if(!this._isShallow){const u=$t(s);if(!yt(r)&&!$t(r)&&(s=_e(s),r=_e(r)),!i&&Qe(s)&&!Qe(r))return u||(s.value=r),!0}const a=i?Number(n)<t.length:Me(t,n),c=Reflect.set(t,n,r,Qe(t)?t:o);return t===_e(o)&&(a?rn(r,s)&&Ht(t,"set",n,r):Ht(t,"add",n,r)),c}deleteProperty(t,n){const r=Me(t,n);t[n];const o=Reflect.deleteProperty(t,n);return o&&r&&Ht(t,"delete",n,void 0),o}has(t,n){const r=Reflect.has(t,n);return(!Ct(n)||!Xa.has(n))&&et(t,"has",n),r}ownKeys(t){return et(t,"iterate",de(t)?"length":pn),Reflect.ownKeys(t)}}class nc extends ec{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const rh=new tc,oh=new nc,sh=new tc(!0),ih=new nc(!0),os=e=>e,Lr=e=>Reflect.getPrototypeOf(e);function ah(e,t,n){return function(...r){const o=this.__v_raw,s=_e(o),i=Dn(s),a=e==="entries"||e===Symbol.iterator&&i,c=e==="keys"&&i,u=o[e](...r),l=n?os:t?Pn:Et;return!t&&et(s,"iterate",c?ts:pn),ze(Object.create(u),{next(){const{value:f,done:p}=u.next();return p?{value:f,done:p}:{value:a?[l(f[0]),l(f[1])]:l(f),done:p}}})}}function Or(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function ch(e,t){const n={get(o){const s=this.__v_raw,i=_e(s),a=_e(o);e||(rn(o,a)&&et(i,"get",o),et(i,"get",a));const{has:c}=Lr(i),u=t?os:e?Pn:Et;if(c.call(i,o))return u(s.get(o));if(c.call(i,a))return u(s.get(a));s!==i&&s.get(o)},get size(){const o=this.__v_raw;return!e&&et(_e(o),"iterate",pn),o.size},has(o){const s=this.__v_raw,i=_e(s),a=_e(o);return e||(rn(o,a)&&et(i,"has",o),et(i,"has",a)),o===a?s.has(o):s.has(o)||s.has(a)},forEach(o,s){const i=this,a=i.__v_raw,c=_e(a),u=t?os:e?Pn:Et;return!e&&et(c,"iterate",pn),a.forEach((l,f)=>o.call(s,u(l),u(f),i))}};return ze(n,e?{add:Or("add"),set:Or("set"),delete:Or("delete"),clear:Or("clear")}:{add(o){!t&&!yt(o)&&!$t(o)&&(o=_e(o));const s=_e(this);return Lr(s).has.call(s,o)||(s.add(o),Ht(s,"add",o,o)),this},set(o,s){!t&&!yt(s)&&!$t(s)&&(s=_e(s));const i=_e(this),{has:a,get:c}=Lr(i);let u=a.call(i,o);u||(o=_e(o),u=a.call(i,o));const l=c.call(i,o);return i.set(o,s),u?rn(s,l)&&Ht(i,"set",o,s):Ht(i,"add",o,s),this},delete(o){const s=_e(this),{has:i,get:a}=Lr(s);let c=i.call(s,o);c||(o=_e(o),c=i.call(s,o)),a&&a.call(s,o);const u=s.delete(o);return c&&Ht(s,"delete",o,void 0),u},clear(){const o=_e(this),s=o.size!==0,i=o.clear();return s&&Ht(o,"clear",void 0,void 0),i}}),["keys","values","entries",Symbol.iterator].forEach(o=>{n[o]=ah(o,e,t)}),n}function Nr(e,t){const n=ch(e,t);return(r,o,s)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?r:Reflect.get(Me(n,o)&&o in r?n:r,o,s)}const lh={get:Nr(!1,!1)},uh={get:Nr(!1,!0)},fh={get:Nr(!0,!1)},dh={get:Nr(!0,!0)},rc=new WeakMap,oc=new WeakMap,sc=new WeakMap,ic=new WeakMap;function hh(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function ph(e){return e.__v_skip||!Object.isExtensible(e)?0:hh(Nd(e))}function Br(e){return $t(e)?e:zr(e,!1,rh,lh,rc)}function gh(e){return zr(e,!1,sh,uh,oc)}function ss(e){return zr(e,!0,oh,fh,sc)}function d1(e){return zr(e,!0,ih,dh,ic)}function zr(e,t,n,r,o){if(!Pe(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const s=ph(e);if(s===0)return e;const i=o.get(e);if(i)return i;const a=new Proxy(e,s===2?r:n);return o.set(e,a),a}function gn(e){return $t(e)?gn(e.__v_raw):!!(e&&e.__v_isReactive)}function $t(e){return!!(e&&e.__v_isReadonly)}function yt(e){return!!(e&&e.__v_isShallow)}function is(e){return e?!!e.__v_raw:!1}function _e(e){const t=e&&e.__v_raw;return t?_e(t):e}function mh(e){return!Me(e,"__v_skip")&&Object.isExtensible(e)&&Na(e,"__v_skip",!0),e}const Et=e=>Pe(e)?Br(e):e,Pn=e=>Pe(e)?ss(e):e;function Qe(e){return e?e.__v_isRef===!0:!1}function Z(e){return vh(e,!1)}function vh(e,t){return Qe(e)?e:new bh(e,t)}class bh{constructor(t,n){this.dep=new Xo,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:_e(t),this._value=n?t:Et(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,r=this.__v_isShallow||yt(t)||$t(t);t=r?t:_e(t),rn(t,n)&&(this._rawValue=t,this._value=r?t:Et(t),this.dep.trigger())}}function k(e){return Qe(e)?e.value:e}const yh={get:(e,t,n)=>t==="__v_raw"?e:k(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const o=e[t];return Qe(o)&&!Qe(n)?(o.value=n,!0):Reflect.set(e,t,n,r)}};function ac(e){return gn(e)?e:new Proxy(e,yh)}class wh{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Xo(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=tr-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&Le!==this)return Ua(this,!0),!0}get value(){const t=this.dep.track();return Ka(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Sh(e,t,n=!1){let r,o;return pe(e)?r=e:(r=e.get,o=e.set),new wh(r,o,n)}const Hr={},Vr=new WeakMap;let mn;function _h(e,t=!1,n=mn){if(n){let r=Vr.get(n);r||Vr.set(n,r=[]),r.push(e)}}function kh(e,t,n=he){const{immediate:r,deep:o,once:s,scheduler:i,augmentJob:a,call:c}=n,u=m=>o?m:yt(m)||o===!1||o===0?jt(m,1):jt(m);let l,f,p,h,g=!1,b=!1;if(Qe(e)?(f=()=>e.value,g=yt(e)):gn(e)?(f=()=>u(e),g=!0):de(e)?(b=!0,g=e.some(m=>gn(m)||yt(m)),f=()=>e.map(m=>{if(Qe(m))return m.value;if(gn(m))return u(m);if(pe(m))return c?c(m,2):m()})):pe(e)?t?f=c?()=>c(e,2):e:f=()=>{if(p){At();try{p()}finally{Dt()}}const m=mn;mn=l;try{return c?c(e,3,[h]):e(h)}finally{mn=m}}:f=pt,t&&o){const m=f,T=o===!0?1/0:o;f=()=>jt(m(),T)}const S=Qd(),v=()=>{l.stop(),S&&S.active&&xt(S.effects,l)};if(s&&t){const m=t;t=(...T)=>{m(...T),v()}}let w=b?new Array(e.length).fill(Hr):Hr;const y=m=>{if(!(!(l.flags&1)||!l.dirty&&!m))if(t){const T=l.run();if(o||g||(b?T.some((x,F)=>rn(x,w[F])):rn(T,w))){p&&p();const x=mn;mn=l;try{const F=[T,w===Hr?void 0:b&&w[0]===Hr?[]:w,h];w=T,c?c(t,3,F):t(...F)}finally{mn=x}}}else l.run()};return a&&a(y),l=new $a(f),l.scheduler=i?()=>i(y,!1):y,h=m=>_h(m,!1,l),p=l.onStop=()=>{const m=Vr.get(l);if(m){if(c)c(m,4);else for(const T of m)T();Vr.delete(l)}},t?r?y(!0):w=l.run():i?i(y.bind(null,!0),!0):l.run(),v.pause=l.pause.bind(l),v.resume=l.resume.bind(l),v.stop=v,v}function jt(e,t=1/0,n){if(t<=0||!Pe(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,Qe(e))jt(e.value,t,n);else if(de(e))for(let r=0;r<e.length;r++)jt(e[r],t,n);else if(Pa(e)||Dn(e))e.forEach(r=>{jt(r,t,n)});else if(La(e)){for(const r in e)jt(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&jt(e[r],t,n)}return e}/**
* @vue/runtime-core v3.5.28
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/const or=[];let as=!1;function h1(e,...t){if(as)return;as=!0,At();const n=or.length?or[or.length-1].component:null,r=n&&n.appContext.config.warnHandler,o=xh();if(r)Rn(r,n,11,[e+t.map(s=>{var i,a;return(a=(i=s.toString)==null?void 0:i.call(s))!=null?a:JSON.stringify(s)}).join(""),n&&n.proxy,o.map(({vnode:s})=>`at <${hl(n,s.type)}>`).join(`
`),o]);else{const s=[`[Vue warn]: ${e}`,...t];o.length&&s.push(`
`,...Ch(o)),console.warn(...s)}Dt(),as=!1}function xh(){let e=or[or.length-1];if(!e)return[];const t=[];for(;e;){const n=t[0];n&&n.vnode===e?n.recurseCount++:t.push({vnode:e,recurseCount:0});const r=e.component&&e.component.parent;e=r&&r.vnode}return t}function Ch(e){const t=[];return e.forEach((n,r)=>{t.push(...r===0?[]:[`
`],...Th(n))}),t}function Th({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",r=e.component?e.component.parent==null:!1,o=` at <${hl(e.component,e.type,r)}`,s=">"+n;return e.props?[o,...Eh(e.props),s]:[o+s]}function Eh(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(r=>{t.push(...cc(r,e[r]))}),n.length>3&&t.push(" ..."),t}function cc(e,t,n){return Ve(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?n?t:[`${e}=${t}`]:Qe(t)?(t=cc(e,_e(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):pe(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=_e(t),n?t:[`${e}=`,t])}function Rn(e,t,n,r){try{return r?e(...r):e()}catch(o){$r(o,t,n)}}function It(e,t,n,r){if(pe(e)){const o=Rn(e,t,n,r);return o&&qa(o)&&o.catch(s=>{$r(s,t,n)}),o}if(de(e)){const o=[];for(let s=0;s<e.length;s++)o.push(It(e[s],t,n,r));return o}}function $r(e,t,n,r=!0){const o=t?t.vnode:null,{errorHandler:s,throwUnhandledErrorInProduction:i}=t&&t.appContext.config||he;if(t){let a=t.parent;const c=t.proxy,u=`https://vuejs.org/error-reference/#runtime-${n}`;for(;a;){const l=a.ec;if(l){for(let f=0;f<l.length;f++)if(l[f](e,c,u)===!1)return}a=a.parent}if(s){At(),Rn(s,null,10,[e,c,u]),Dt();return}}Ih(e,n,o,r,i)}function Ih(e,t,n,r=!0,o=!1){if(o)throw e;console.error(e)}const it=[];let Mt=-1;const qn=[];let sn=null,Fn=0;const lc=Promise.resolve();let jr=null;function Pt(e){const t=jr||lc;return e?t.then(this?e.bind(this):e):t}function Ah(e){let t=Mt+1,n=it.length;for(;t<n;){const r=t+n>>>1,o=it[r],s=sr(o);s<e||s===e&&o.flags&2?t=r+1:n=r}return t}function cs(e){if(!(e.flags&1)){const t=sr(e),n=it[it.length-1];!n||!(e.flags&2)&&t>=sr(n)?it.push(e):it.splice(Ah(t),0,e),e.flags|=1,uc()}}function uc(){jr||(jr=lc.then(pc))}function fc(e){de(e)?qn.push(...e):sn&&e.id===-1?sn.splice(Fn+1,0,e):e.flags&1||(qn.push(e),e.flags|=1),uc()}function dc(e,t,n=Mt+1){for(;n<it.length;n++){const r=it[n];if(r&&r.flags&2){if(e&&r.id!==e.uid)continue;it.splice(n,1),n--,r.flags&4&&(r.flags&=-2),r(),r.flags&4||(r.flags&=-2)}}}function hc(e){if(qn.length){const t=[...new Set(qn)].sort((n,r)=>sr(n)-sr(r));if(qn.length=0,sn){sn.push(...t);return}for(sn=t,Fn=0;Fn<sn.length;Fn++){const n=sn[Fn];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}sn=null,Fn=0}}const sr=e=>e.id==null?e.flags&2?-1:1/0:e.id;function pc(e){try{for(Mt=0;Mt<it.length;Mt++){const t=it[Mt];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),Rn(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Mt<it.length;Mt++){const t=it[Mt];t&&(t.flags&=-2)}Mt=-1,it.length=0,hc(),jr=null,(it.length||qn.length)&&pc()}}let tt=null,gc=null;function Ur(e){const t=tt;return tt=e,gc=e&&e.type.__scopeId||null,t}function We(e,t=tt,n){if(!t||e._n)return e;const r=(...o)=>{r._d&&eo(-1);const s=Ur(t);let i;try{i=e(...o)}finally{Ur(s),r._d&&eo(1)}return i};return r._n=!0,r._c=!0,r._d=!0,r}function vn(e,t){if(tt===null)return e;const n=oo(tt),r=e.dirs||(e.dirs=[]);for(let o=0;o<t.length;o++){let[s,i,a,c=he]=t[o];s&&(pe(s)&&(s={mounted:s,updated:s}),s.deep&&jt(i),r.push({dir:s,instance:n,value:i,oldValue:void 0,arg:a,modifiers:c}))}return e}function bn(e,t,n,r){const o=e.dirs,s=t&&t.dirs;for(let i=0;i<o.length;i++){const a=o[i];s&&(a.oldValue=s[i].value);let c=a.dir[r];c&&(At(),It(c,n,8,[e.el,a,e,t]),Dt())}}function Dh(e,t){if(ct){let n=ct.provides;const r=ct.parent&&ct.parent.provides;r===n&&(n=ct.provides=Object.create(r)),n[e]=t}}function Ln(e,t,n=!1){const r=no();if(r||Nn){let o=Nn?Nn._context.provides:r?r.parent==null||r.ce?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(o&&e in o)return o[e];if(arguments.length>1)return n&&pe(t)?t.call(r&&r.proxy):t}}const Mh=Symbol.for("v-scx"),Ph=()=>Ln(Mh);function je(e,t,n){return mc(e,t,n)}function mc(e,t,n=he){const{immediate:r,deep:o,flush:s,once:i}=n,a=ze({},n),c=t&&r||!t&&s!=="post";let u;if(vr){if(s==="sync"){const h=Ph();u=h.__watcherHandles||(h.__watcherHandles=[])}else if(!c){const h=()=>{};return h.stop=pt,h.resume=pt,h.pause=pt,h}}const l=ct;a.call=(h,g,b)=>It(h,l,g,b);let f=!1;s==="post"?a.scheduler=h=>{nt(h,l&&l.suspense)}:s!=="sync"&&(f=!0,a.scheduler=(h,g)=>{g?h():cs(h)}),a.augmentJob=h=>{t&&(h.flags|=4),f&&(h.flags|=2,l&&(h.id=l.uid,h.i=l))};const p=kh(e,t,a);return vr&&(u?u.push(p):c&&p()),p}function Rh(e,t,n){const r=this.proxy,o=Ve(e)?e.includes(".")?vc(r,e):()=>r[e]:e.bind(r,r);let s;pe(t)?s=t:(s=t.handler,n=t);const i=mr(this),a=mc(o,s.bind(r),n);return i(),a}function vc(e,t){const n=t.split(".");return()=>{let r=e;for(let o=0;o<n.length&&r;o++)r=r[n[o]];return r}}const bc=Symbol("_vte"),yc=e=>e.__isTeleport,ir=e=>e&&(e.disabled||e.disabled===""),wc=e=>e&&(e.defer||e.defer===""),Sc=e=>typeof SVGElement!="undefined"&&e instanceof SVGElement,_c=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,ls=(e,t)=>{const n=e&&e.to;return Ve(n)?t?t(n):null:n},kc={name:"Teleport",__isTeleport:!0,process(e,t,n,r,o,s,i,a,c,u){const{mc:l,pc:f,pbc:p,o:{insert:h,querySelector:g,createText:b,createComment:S}}=u,v=ir(t.props);let{shapeFlag:w,children:y,dynamicChildren:m}=t;if(e==null){const T=t.el=b(""),x=t.anchor=b("");h(T,n,r),h(x,n,r);const F=(D,M)=>{w&16&&l(y,D,M,o,s,i,a,c)},C=()=>{const D=t.target=ls(t.props,g),M=fs(D,t,b,h);D&&(i!=="svg"&&Sc(D)?i="svg":i!=="mathml"&&_c(D)&&(i="mathml"),o&&o.isCE&&(o.ce._teleportTargets||(o.ce._teleportTargets=new Set)).add(D),v||(F(D,M),Gr(t,!1)))};v&&(F(n,x),Gr(t,!0)),wc(t.props)?(t.el.__isMounted=!1,nt(()=>{C(),delete t.el.__isMounted},s)):C()}else{if(wc(t.props)&&e.el.__isMounted===!1){nt(()=>{kc.process(e,t,n,r,o,s,i,a,c,u)},s);return}t.el=e.el,t.targetStart=e.targetStart;const T=t.anchor=e.anchor,x=t.target=e.target,F=t.targetAnchor=e.targetAnchor,C=ir(e.props),D=C?n:x,M=C?T:F;if(i==="svg"||Sc(x)?i="svg":(i==="mathml"||_c(x))&&(i="mathml"),m?(p(e.dynamicChildren,m,D,o,s,i,a),_s(e,t,!0)):c||f(e,t,D,M,o,s,i,a,!1),v)C?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Wr(t,n,T,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const O=t.target=ls(t.props,g);O&&Wr(t,O,null,u,0)}else C&&Wr(t,x,F,u,1);Gr(t,v)}},remove(e,t,n,{um:r,o:{remove:o}},s){const{shapeFlag:i,children:a,anchor:c,targetStart:u,targetAnchor:l,target:f,props:p}=e;if(f&&(o(u),o(l)),s&&o(c),i&16){const h=s||!ir(p);for(let g=0;g<a.length;g++){const b=a[g];r(b,t,n,h,!!b.dynamicChildren)}}},move:Wr,hydrate:qh};function Wr(e,t,n,{o:{insert:r},m:o},s=2){s===0&&r(e.targetAnchor,t,n);const{el:i,anchor:a,shapeFlag:c,children:u,props:l}=e,f=s===2;if(f&&r(i,t,n),(!f||ir(l))&&c&16)for(let p=0;p<u.length;p++)o(u[p],t,n,2);f&&r(a,t,n)}function qh(e,t,n,r,o,s,{o:{nextSibling:i,parentNode:a,querySelector:c,insert:u,createText:l}},f){function p(S,v){let w=v;for(;w;){if(w&&w.nodeType===8){if(w.data==="teleport start anchor")t.targetStart=w;else if(w.data==="teleport anchor"){t.targetAnchor=w,S._lpa=t.targetAnchor&&i(t.targetAnchor);break}}w=i(w)}}function h(S,v){v.anchor=f(i(S),v,a(S),n,r,o,s)}const g=t.target=ls(t.props,c),b=ir(t.props);if(g){const S=g._lpa||g.firstChild;t.shapeFlag&16&&(b?(h(e,t),p(g,S),t.targetAnchor||fs(g,t,l,u,a(e)===g?e:null)):(t.anchor=i(e),p(g,S),t.targetAnchor||fs(g,t,l,u),f(S&&i(S),t,g,n,r,o,s))),Gr(t,b)}else b&&t.shapeFlag&16&&(h(e,t),t.targetStart=e,t.targetAnchor=i(e));return t.anchor&&i(t.anchor)}const us=kc;function Gr(e,t){const n=e.ctx;if(n&&n.ut){let r,o;for(t?(r=e.el,o=e.anchor):(r=e.targetStart,o=e.targetAnchor);r&&r!==o;)r.nodeType===1&&r.setAttribute("data-v-owner",n.uid),r=r.nextSibling;n.ut()}}function fs(e,t,n,r,o=null){const s=t.targetStart=n(""),i=t.targetAnchor=n("");return s[bc]=i,e&&(r(s,e,o),r(i,e,o)),i}const Rt=Symbol("_leaveCb"),ar=Symbol("_enterCb");function xc(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return ut(()=>{e.isMounted=!0}),wn(()=>{e.isUnmounting=!0}),e}const wt=[Function,Array],Cc={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:wt,onEnter:wt,onAfterEnter:wt,onEnterCancelled:wt,onBeforeLeave:wt,onLeave:wt,onAfterLeave:wt,onLeaveCancelled:wt,onBeforeAppear:wt,onAppear:wt,onAfterAppear:wt,onAppearCancelled:wt},Tc=e=>{const t=e.subTree;return t.component?Tc(t.component):t},Fh={name:"BaseTransition",props:Cc,setup(e,{slots:t}){const n=no(),r=xc();return()=>{const o=t.default&&hs(t.default(),!0);if(!o||!o.length)return;const s=Ec(o),i=_e(e),{mode:a}=i;if(r.isLeaving)return ds(s);const c=Ac(s);if(!c)return ds(s);let u=cr(c,i,r,n,f=>u=f);c.type!==rt&&yn(c,u);let l=n.subTree&&Ac(n.subTree);if(l&&l.type!==rt&&!kn(l,c)&&Tc(n).type!==rt){let f=cr(l,i,r,n);if(yn(l,f),a==="out-in"&&c.type!==rt)return r.isLeaving=!0,f.afterLeave=()=>{r.isLeaving=!1,n.job.flags&8||n.update(),delete f.afterLeave,l=void 0},ds(s);a==="in-out"&&c.type!==rt?f.delayLeave=(p,h,g)=>{const b=Ic(r,l);b[String(l.key)]=l,p[Rt]=()=>{h(),p[Rt]=void 0,delete u.delayedLeave,l=void 0},u.delayedLeave=()=>{g(),delete u.delayedLeave,l=void 0}}:l=void 0}else l&&(l=void 0);return s}}};function Ec(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==rt){t=n;break}}return t}const Lh=Fh;function Ic(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function cr(e,t,n,r,o){const{appear:s,mode:i,persisted:a=!1,onBeforeEnter:c,onEnter:u,onAfterEnter:l,onEnterCancelled:f,onBeforeLeave:p,onLeave:h,onAfterLeave:g,onLeaveCancelled:b,onBeforeAppear:S,onAppear:v,onAfterAppear:w,onAppearCancelled:y}=t,m=String(e.key),T=Ic(n,e),x=(D,M)=>{D&&It(D,r,9,M)},F=(D,M)=>{const O=M[1];x(D,M),de(D)?D.every(L=>L.length<=1)&&O():D.length<=1&&O()},C={mode:i,persisted:a,beforeEnter(D){let M=c;if(!n.isMounted)if(s)M=S||c;else return;D[Rt]&&D[Rt](!0);const O=T[m];O&&kn(e,O)&&O.el[Rt]&&O.el[Rt](),x(M,[D])},enter(D){let M=u,O=l,L=f;if(!n.isMounted)if(s)M=v||u,O=w||l,L=y||f;else return;let ce=!1;D[ar]=oe=>{ce||(ce=!0,oe?x(L,[D]):x(O,[D]),C.delayedLeave&&C.delayedLeave(),D[ar]=void 0)};const z=D[ar].bind(null,!1);M?F(M,[D,z]):z()},leave(D,M){const O=String(e.key);if(D[ar]&&D[ar](!0),n.isUnmounting)return M();x(p,[D]);let L=!1;D[Rt]=z=>{L||(L=!0,M(),z?x(b,[D]):x(g,[D]),D[Rt]=void 0,T[O]===e&&delete T[O])};const ce=D[Rt].bind(null,!1);T[O]=e,h?F(h,[D,ce]):ce()},clone(D){const M=cr(D,t,n,r,o);return o&&o(M),M}};return C}function ds(e){if(Jr(e))return e=an(e),e.children=null,e}function Ac(e){if(!Jr(e))return yc(e.type)&&e.children?Ec(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&pe(n.default))return n.default()}}function yn(e,t){e.shapeFlag&6&&e.component?(e.transition=t,yn(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function hs(e,t=!1,n){let r=[],o=0;for(let s=0;s<e.length;s++){let i=e[s];const a=n==null?i.key:String(n)+String(i.key!=null?i.key:s);i.type===we?(i.patchFlag&128&&o++,r=r.concat(hs(i.children,t,a))):(t||i.type!==rt)&&r.push(a!=null?an(i,{key:a}):i)}if(o>1)for(let s=0;s<r.length;s++)r[s].patchFlag=-2;return r}function Ee(e,t){return pe(e)?ze({name:e.name},t,{setup:e}):e}function Dc(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function Mc(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}const Kr=new WeakMap;function lr(e,t,n,r,o=!1){if(de(e)){e.forEach((b,S)=>lr(b,t&&(de(t)?t[S]:t),n,r,o));return}if(On(r)&&!o){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&lr(e,t,n,r.component.subTree);return}const s=r.shapeFlag&4?oo(r.component):r.el,i=o?null:s,{i:a,r:c}=e,u=t&&t.r,l=a.refs===he?a.refs={}:a.refs,f=a.setupState,p=_e(f),h=f===he?Kn:b=>Mc(l,b)?!1:Me(p,b),g=(b,S)=>!(S&&Mc(l,S));if(u!=null&&u!==c){if(Pc(t),Ve(u))l[u]=null,h(u)&&(f[u]=null);else if(Qe(u)){const b=t;g(u,b.k)&&(u.value=null),b.k&&(l[b.k]=null)}}if(pe(c))Rn(c,a,12,[i,l]);else{const b=Ve(c),S=Qe(c);if(b||S){const v=()=>{if(e.f){const w=b?h(c)?f[c]:l[c]:g()||!e.k?c.value:l[e.k];if(o)de(w)&&xt(w,s);else if(de(w))w.includes(s)||w.push(s);else if(b)l[c]=[s],h(c)&&(f[c]=l[c]);else{const y=[s];g(c,e.k)&&(c.value=y),e.k&&(l[e.k]=y)}}else b?(l[c]=i,h(c)&&(f[c]=i)):S&&(g(c,e.k)&&(c.value=i),e.k&&(l[e.k]=i))};if(i){const w=()=>{v(),Kr.delete(e)};w.id=-1,Kr.set(e,w),nt(w,n)}else Pc(e),v()}}}function Pc(e){const t=Kr.get(e);t&&(t.flags|=8,Kr.delete(e))}qr().requestIdleCallback,qr().cancelIdleCallback;const On=e=>!!e.type.__asyncLoader,Jr=e=>e.type.__isKeepAlive;function Oh(e,t){Rc(e,"a",t)}function Nh(e,t){Rc(e,"da",t)}function Rc(e,t,n=ct){const r=e.__wdc||(e.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(Qr(t,r,n),n){let o=n.parent;for(;o&&o.parent;)Jr(o.parent.vnode)&&Bh(r,t,n,o),o=o.parent}}function Bh(e,t,n,r){const o=Qr(t,e,r,!0);Wt(()=>{xt(r[t],o)},n)}function Qr(e,t,n=ct,r=!1){if(n){const o=n[e]||(n[e]=[]),s=t.__weh||(t.__weh=(...i)=>{At();const a=mr(n),c=It(t,n,e,i);return a(),Dt(),c});return r?o.unshift(s):o.push(s),s}}const Ut=e=>(t,n=ct)=>{(!vr||e==="sp")&&Qr(e,(...r)=>t(...r),n)},zh=Ut("bm"),ut=Ut("m"),qc=Ut("bu"),Fc=Ut("u"),wn=Ut("bum"),Wt=Ut("um"),Hh=Ut("sp"),Vh=Ut("rtg"),$h=Ut("rtc");function jh(e,t=ct){Qr("ec",e,t)}const Uh=Symbol.for("v-ndc");function $e(e,t,n,r){let o;const s=n,i=de(e);if(i||Ve(e)){const a=i&&gn(e);let c=!1,u=!1;a&&(c=!yt(e),u=$t(e),e=Fr(e)),o=new Array(e.length);for(let l=0,f=e.length;l<f;l++)o[l]=t(c?u?Pn(Et(e[l])):Et(e[l]):e[l],l,void 0,s)}else if(typeof e=="number"){o=new Array(e);for(let a=0;a<e;a++)o[a]=t(a+1,a,void 0,s)}else if(Pe(e))if(e[Symbol.iterator])o=Array.from(e,(a,c)=>t(a,c,void 0,s));else{const a=Object.keys(e);o=new Array(a.length);for(let c=0,u=a.length;c<u;c++){const l=a[c];o[c]=t(e[l],l,c,s)}}else o=[];return o}function Sn(e,t,n={},r,o){if(tt.ce||tt.parent&&On(tt.parent)&&tt.parent.ce){const u=Object.keys(n).length>0;return t!=="default"&&(n.name=t),R(),ge(we,null,[ae("slot",n,r&&r())],u?-2:64)}let s=e[t];s&&s._c&&(s._d=!1),R();const i=s&&Lc(s(n)),a=n.key||i&&i.key,c=ge(we,{key:(a&&!Ct(a)?a:`_${t}`)+(!i&&r?"_fb":"")},i||(r?r():[]),i&&e._===1?64:-2);return s&&s._c&&(s._d=!0),c}function Lc(e){return e.some(t=>gr(t)?!(t.type===rt||t.type===we&&!Lc(t.children)):!0)?e:null}const ps=e=>e?ul(e)?oo(e):ps(e.parent):null,ur=ze(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>ps(e.parent),$root:e=>ps(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>zc(e),$forceUpdate:e=>e.f||(e.f=()=>{cs(e.update)}),$nextTick:e=>e.n||(e.n=Pt.bind(e.proxy)),$watch:e=>Rh.bind(e)}),gs=(e,t)=>e!==he&&!e.__isScriptSetup&&Me(e,t),Wh={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:r,data:o,props:s,accessCache:i,type:a,appContext:c}=e;if(t[0]!=="$"){const p=i[t];if(p!==void 0)switch(p){case 1:return r[t];case 2:return o[t];case 4:return n[t];case 3:return s[t]}else{if(gs(r,t))return i[t]=1,r[t];if(o!==he&&Me(o,t))return i[t]=2,o[t];if(Me(s,t))return i[t]=3,s[t];if(n!==he&&Me(n,t))return i[t]=4,n[t];ms&&(i[t]=0)}}const u=ur[t];let l,f;if(u)return t==="$attrs"&&et(e.attrs,"get",""),u(e);if((l=a.__cssModules)&&(l=l[t]))return l;if(n!==he&&Me(n,t))return i[t]=4,n[t];if(f=c.config.globalProperties,Me(f,t))return f[t]},set({_:e},t,n){const{data:r,setupState:o,ctx:s}=e;return gs(o,t)?(o[t]=n,!0):r!==he&&Me(r,t)?(r[t]=n,!0):Me(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(s[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:o,props:s,type:i}},a){let c;return!!(n[a]||e!==he&&a[0]!=="$"&&Me(e,a)||gs(t,a)||Me(s,a)||Me(r,a)||Me(ur,a)||Me(o.config.globalProperties,a)||(c=i.__cssModules)&&c[a])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Me(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Oc(e){return de(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let ms=!0;function Gh(e){const t=zc(e),n=e.proxy,r=e.ctx;ms=!1,t.beforeCreate&&Nc(t.beforeCreate,e,"bc");const{data:o,computed:s,methods:i,watch:a,provide:c,inject:u,created:l,beforeMount:f,mounted:p,beforeUpdate:h,updated:g,activated:b,deactivated:S,beforeDestroy:v,beforeUnmount:w,destroyed:y,unmounted:m,render:T,renderTracked:x,renderTriggered:F,errorCaptured:C,serverPrefetch:D,expose:M,inheritAttrs:O,components:L,directives:ce,filters:z}=t;if(u&&Kh(u,r,null),i)for(const ie in i){const le=i[ie];pe(le)&&(r[ie]=le.bind(n))}if(o){const ie=o.call(n,n);Pe(ie)&&(e.data=Br(ie))}if(ms=!0,s)for(const ie in s){const le=s[ie],Se=pe(le)?le.bind(n,n):pe(le.get)?le.get.bind(n,n):pt,me=!pe(le)&&pe(le.set)?le.set.bind(n):pt,xe=Y({get:Se,set:me});Object.defineProperty(r,ie,{enumerable:!0,configurable:!0,get:()=>xe.value,set:Te=>xe.value=Te})}if(a)for(const ie in a)Bc(a[ie],r,n,ie);if(c){const ie=pe(c)?c.call(n):c;Reflect.ownKeys(ie).forEach(le=>{Dh(le,ie[le])})}l&&Nc(l,e,"c");function se(ie,le){de(le)?le.forEach(Se=>ie(Se.bind(n))):le&&ie(le.bind(n))}if(se(zh,f),se(ut,p),se(qc,h),se(Fc,g),se(Oh,b),se(Nh,S),se(jh,C),se($h,x),se(Vh,F),se(wn,w),se(Wt,m),se(Hh,D),de(M))if(M.length){const ie=e.exposed||(e.exposed={});M.forEach(le=>{Object.defineProperty(ie,le,{get:()=>n[le],set:Se=>n[le]=Se,enumerable:!0})})}else e.exposed||(e.exposed={});T&&e.render===pt&&(e.render=T),O!=null&&(e.inheritAttrs=O),L&&(e.components=L),ce&&(e.directives=ce),D&&Dc(e)}function Kh(e,t,n=pt){de(e)&&(e=vs(e));for(const r in e){const o=e[r];let s;Pe(o)?"default"in o?s=Ln(o.from||r,o.default,!0):s=Ln(o.from||r):s=Ln(o),Qe(s)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>s.value,set:i=>s.value=i}):t[r]=s}}function Nc(e,t,n){It(de(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function Bc(e,t,n,r){let o=r.includes(".")?vc(n,r):()=>n[r];if(Ve(e)){const s=t[e];pe(s)&&je(o,s)}else if(pe(e))je(o,e.bind(n));else if(Pe(e))if(de(e))e.forEach(s=>Bc(s,t,n,r));else{const s=pe(e.handler)?e.handler.bind(n):t[e.handler];pe(s)&&je(o,s,e)}}function zc(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:o,optionsCache:s,config:{optionMergeStrategies:i}}=e.appContext,a=s.get(t);let c;return a?c=a:!o.length&&!n&&!r?c=t:(c={},o.length&&o.forEach(u=>Zr(c,u,i,!0)),Zr(c,t,i)),Pe(t)&&s.set(t,c),c}function Zr(e,t,n,r=!1){const{mixins:o,extends:s}=t;s&&Zr(e,s,n,!0),o&&o.forEach(i=>Zr(e,i,n,!0));for(const i in t)if(!(r&&i==="expose")){const a=Jh[i]||n&&n[i];e[i]=a?a(e[i],t[i]):t[i]}return e}const Jh={data:Hc,props:Vc,emits:Vc,methods:fr,computed:fr,beforeCreate:at,created:at,beforeMount:at,mounted:at,beforeUpdate:at,updated:at,beforeDestroy:at,beforeUnmount:at,destroyed:at,unmounted:at,activated:at,deactivated:at,errorCaptured:at,serverPrefetch:at,components:fr,directives:fr,watch:Zh,provide:Hc,inject:Qh};function Hc(e,t){return t?e?function(){return ze(pe(e)?e.call(this,this):e,pe(t)?t.call(this,this):t)}:t:e}function Qh(e,t){return fr(vs(e),vs(t))}function vs(e){if(de(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function at(e,t){return e?[...new Set([].concat(e,t))]:t}function fr(e,t){return e?ze(Object.create(null),e,t):t}function Vc(e,t){return e?de(e)&&de(t)?[...new Set([...e,...t])]:ze(Object.create(null),Oc(e),Oc(t!=null?t:{})):t}function Zh(e,t){if(!e)return t;if(!t)return e;const n=ze(Object.create(null),e);for(const r in t)n[r]=at(e[r],t[r]);return n}function $c(){return{app:null,config:{isNativeTag:Kn,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let Yh=0;function Xh(e,t){return function(r,o=null){pe(r)||(r=ze({},r)),o!=null&&!Pe(o)&&(o=null);const s=$c(),i=new WeakSet,a=[];let c=!1;const u=s.app={_uid:Yh++,_component:r,_props:o,_container:null,_context:s,_instance:null,version:qp,get config(){return s.config},set config(l){},use(l,...f){return i.has(l)||(l&&pe(l.install)?(i.add(l),l.install(u,...f)):pe(l)&&(i.add(l),l(u,...f))),u},mixin(l){return s.mixins.includes(l)||s.mixins.push(l),u},component(l,f){return f?(s.components[l]=f,u):s.components[l]},directive(l,f){return f?(s.directives[l]=f,u):s.directives[l]},mount(l,f,p){if(!c){const h=u._ceVNode||ae(r,o);return h.appContext=s,p===!0?p="svg":p===!1&&(p=void 0),e(h,l,p),c=!0,u._container=l,l.__vue_app__=u,oo(h.component)}},onUnmount(l){a.push(l)},unmount(){c&&(It(a,u._instance,16),e(null,u._container),delete u._container.__vue_app__)},provide(l,f){return s.provides[l]=f,u},runWithContext(l){const f=Nn;Nn=u;try{return l()}finally{Nn=f}}};return u}}let Nn=null;const ep=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${nn(t)}Modifiers`]||e[`${hn(t)}Modifiers`];function tp(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||he;let o=n;const s=t.startsWith("update:"),i=s&&ep(r,t.slice(7));i&&(i.trim&&(o=n.map(l=>Ve(l)?l.trim():l)),i.number&&(o=n.map(Uo)));let a,c=r[a=jo(t)]||r[a=jo(nn(t))];!c&&s&&(c=r[a=jo(hn(t))]),c&&It(c,e,6,o);const u=r[a+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,It(u,e,6,o)}}const np=new WeakMap;function jc(e,t,n=!1){const r=n?np:t.emitsCache,o=r.get(e);if(o!==void 0)return o;const s=e.emits;let i={},a=!1;if(!pe(e)){const c=u=>{const l=jc(u,t,!0);l&&(a=!0,ze(i,l))};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!s&&!a?(Pe(e)&&r.set(e,null),null):(de(s)?s.forEach(c=>i[c]=null):ze(i,s),Pe(e)&&r.set(e,i),i)}function Yr(e,t){return!e||!An(t)?!1:(t=t.slice(2).replace(/Once$/,""),Me(e,t[0].toLowerCase()+t.slice(1))||Me(e,hn(t))||Me(e,t))}function p1(){}function Uc(e){const{type:t,vnode:n,proxy:r,withProxy:o,propsOptions:[s],slots:i,attrs:a,emit:c,render:u,renderCache:l,props:f,data:p,setupState:h,ctx:g,inheritAttrs:b}=e,S=Ur(e);let v,w;try{if(n.shapeFlag&4){const m=o||r,T=m;v=qt(u.call(T,m,l,f,h,p,g)),w=a}else{const m=t;v=qt(m.length>1?m(f,{attrs:a,slots:i,emit:c}):m(f,null)),w=t.props?a:rp(a)}}catch(m){hr.length=0,$r(m,e,1),v=ae(rt)}let y=v;if(w&&b!==!1){const m=Object.keys(w),{shapeFlag:T}=y;m.length&&T&7&&(s&&m.some(Jn)&&(w=op(w,s)),y=an(y,w,!1,!0))}return n.dirs&&(y=an(y,null,!1,!0),y.dirs=y.dirs?y.dirs.concat(n.dirs):n.dirs),n.transition&&yn(y,n.transition),v=y,Ur(S),v}const rp=e=>{let t;for(const n in e)(n==="class"||n==="style"||An(n))&&((t||(t={}))[n]=e[n]);return t},op=(e,t)=>{const n={};for(const r in e)(!Jn(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function sp(e,t,n){const{props:r,children:o,component:s}=e,{props:i,children:a,patchFlag:c}=t,u=s.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return r?Wc(r,i,u):!!i;if(c&8){const l=t.dynamicProps;for(let f=0;f<l.length;f++){const p=l[f];if(Gc(i,r,p)&&!Yr(u,p))return!0}}}else return(o||a)&&(!a||!a.$stable)?!0:r===i?!1:r?i?Wc(r,i,u):!0:!!i;return!1}function Wc(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let o=0;o<r.length;o++){const s=r[o];if(Gc(t,e,s)&&!Yr(n,s))return!0}return!1}function Gc(e,t,n){const r=e[n],o=t[n];return n==="style"&&Pe(r)&&Pe(o)?!Wo(r,o):r!==o}function ip({vnode:e,parent:t},n){for(;t;){const r=t.subTree;if(r.suspense&&r.suspense.activeBranch===e&&(r.el=e.el),r===e)(e=t.vnode).el=n,t=t.parent;else break}}const Kc={},Jc=()=>Object.create(Kc),Qc=e=>Object.getPrototypeOf(e)===Kc;function ap(e,t,n,r=!1){const o={},s=Jc();e.propsDefaults=Object.create(null),Zc(e,t,o,s);for(const i in e.propsOptions[0])i in o||(o[i]=void 0);n?e.props=r?o:gh(o):e.type.props?e.props=o:e.props=s,e.attrs=s}function cp(e,t,n,r){const{props:o,attrs:s,vnode:{patchFlag:i}}=e,a=_e(o),[c]=e.propsOptions;let u=!1;if((r||i>0)&&!(i&16)){if(i&8){const l=e.vnode.dynamicProps;for(let f=0;f<l.length;f++){let p=l[f];if(Yr(e.emitsOptions,p))continue;const h=t[p];if(c)if(Me(s,p))h!==s[p]&&(s[p]=h,u=!0);else{const g=nn(p);o[g]=bs(c,a,g,h,e,!1)}else h!==s[p]&&(s[p]=h,u=!0)}}}else{Zc(e,t,o,s)&&(u=!0);let l;for(const f in a)(!t||!Me(t,f)&&((l=hn(f))===f||!Me(t,l)))&&(c?n&&(n[f]!==void 0||n[l]!==void 0)&&(o[f]=bs(c,a,f,void 0,e,!0)):delete o[f]);if(s!==a)for(const f in s)(!t||!Me(t,f))&&(delete s[f],u=!0)}u&&Ht(e.attrs,"set","")}function Zc(e,t,n,r){const[o,s]=e.propsOptions;let i=!1,a;if(t)for(let c in t){if(Yn(c))continue;const u=t[c];let l;o&&Me(o,l=nn(c))?!s||!s.includes(l)?n[l]=u:(a||(a={}))[l]=u:Yr(e.emitsOptions,c)||(!(c in r)||u!==r[c])&&(r[c]=u,i=!0)}if(s){const c=_e(n),u=a||he;for(let l=0;l<s.length;l++){const f=s[l];n[f]=bs(o,c,f,u[f],e,!Me(u,f))}}return i}function bs(e,t,n,r,o,s){const i=e[n];if(i!=null){const a=Me(i,"default");if(a&&r===void 0){const c=i.default;if(i.type!==Function&&!i.skipFactory&&pe(c)){const{propsDefaults:u}=o;if(n in u)r=u[n];else{const l=mr(o);r=u[n]=c.call(null,t),l()}}else r=c;o.ce&&o.ce._setProp(n,r)}i[0]&&(s&&!a?r=!1:i[1]&&(r===""||r===hn(n))&&(r=!0))}return r}const lp=new WeakMap;function Yc(e,t,n=!1){const r=n?lp:t.propsCache,o=r.get(e);if(o)return o;const s=e.props,i={},a=[];let c=!1;if(!pe(e)){const l=f=>{c=!0;const[p,h]=Yc(f,t,!0);ze(i,p),h&&a.push(...h)};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}if(!s&&!c)return Pe(e)&&r.set(e,Be),Be;if(de(s))for(let l=0;l<s.length;l++){const f=nn(s[l]);Xc(f)&&(i[f]=he)}else if(s)for(const l in s){const f=nn(l);if(Xc(f)){const p=s[l],h=i[f]=de(p)||pe(p)?{type:p}:ze({},p),g=h.type;let b=!1,S=!0;if(de(g))for(let v=0;v<g.length;++v){const w=g[v],y=pe(w)&&w.name;if(y==="Boolean"){b=!0;break}else y==="String"&&(S=!1)}else b=pe(g)&&g.name==="Boolean";h[0]=b,h[1]=S,(b||Me(h,"default"))&&a.push(f)}}const u=[i,a];return Pe(e)&&r.set(e,u),u}function Xc(e){return e[0]!=="$"&&!Yn(e)}const ys=e=>e==="_"||e==="_ctx"||e==="$stable",ws=e=>de(e)?e.map(qt):[qt(e)],up=(e,t,n)=>{if(t._n)return t;const r=We((...o)=>ws(t(...o)),n);return r._c=!1,r},el=(e,t,n)=>{const r=e._ctx;for(const o in e){if(ys(o))continue;const s=e[o];if(pe(s))t[o]=up(o,s,r);else if(s!=null){const i=ws(s);t[o]=()=>i}}},tl=(e,t)=>{const n=ws(t);e.slots.default=()=>n},nl=(e,t,n)=>{for(const r in t)(n||!ys(r))&&(e[r]=t[r])},fp=(e,t,n)=>{const r=e.slots=Jc();if(e.vnode.shapeFlag&32){const o=t._;o?(nl(r,t,n),n&&Na(r,"_",o,!0)):el(t,r)}else t&&tl(e,t)},dp=(e,t,n)=>{const{vnode:r,slots:o}=e;let s=!0,i=he;if(r.shapeFlag&32){const a=t._;a?n&&a===1?s=!1:nl(o,t,n):(s=!t.$stable,el(t,o)),i=t}else t&&(tl(e,t),i={default:1});if(s)for(const a in o)!ys(a)&&i[a]==null&&delete o[a]},nt=vp;function hp(e){return pp(e)}function pp(e,t){const n=qr();n.__VUE__=!0;const{insert:r,remove:o,patchProp:s,createElement:i,createText:a,createComment:c,setText:u,setElementText:l,parentNode:f,nextSibling:p,setScopeId:h=pt,insertStaticContent:g}=e,b=(_,E,q,j=null,V=null,N=null,te=void 0,Q=null,K=!!E.dynamicChildren)=>{if(_===E)return;_&&!kn(_,E)&&(j=ee(_),Te(_,V,N,!0),_=null),E.patchFlag===-2&&(K=!1,E.dynamicChildren=null);const{type:U,ref:ne,shapeFlag:$}=E;switch(U){case Xr:S(_,E,q,j);break;case rt:v(_,E,q,j);break;case dr:_==null&&w(E,q,j,te);break;case we:L(_,E,q,j,V,N,te,Q,K);break;default:$&1?T(_,E,q,j,V,N,te,Q,K):$&6?ce(_,E,q,j,V,N,te,Q,K):($&64||$&128)&&U.process(_,E,q,j,V,N,te,Q,K,G)}ne!=null&&V?lr(ne,_&&_.ref,N,E||_,!E):ne==null&&_&&_.ref!=null&&lr(_.ref,null,N,_,!0)},S=(_,E,q,j)=>{if(_==null)r(E.el=a(E.children),q,j);else{const V=E.el=_.el;E.children!==_.children&&u(V,E.children)}},v=(_,E,q,j)=>{_==null?r(E.el=c(E.children||""),q,j):E.el=_.el},w=(_,E,q,j)=>{[_.el,_.anchor]=g(_.children,E,q,j,_.el,_.anchor)},y=({el:_,anchor:E},q,j)=>{let V;for(;_&&_!==E;)V=p(_),r(_,q,j),_=V;r(E,q,j)},m=({el:_,anchor:E})=>{let q;for(;_&&_!==E;)q=p(_),o(_),_=q;o(E)},T=(_,E,q,j,V,N,te,Q,K)=>{if(E.type==="svg"?te="svg":E.type==="math"&&(te="mathml"),_==null)x(E,q,j,V,N,te,Q,K);else{const U=_.el&&_.el._isVueCE?_.el:null;try{U&&U._beginPatch(),D(_,E,V,N,te,Q,K)}finally{U&&U._endPatch()}}},x=(_,E,q,j,V,N,te,Q)=>{let K,U;const{props:ne,shapeFlag:$,transition:X,dirs:fe}=_;if(K=_.el=i(_.type,N,ne&&ne.is,ne),$&8?l(K,_.children):$&16&&C(_.children,K,null,j,V,Ss(_,N),te,Q),fe&&bn(_,null,j,"created"),F(K,_,_.scopeId,te,j),ne){for(const qe in ne)qe!=="value"&&!Yn(qe)&&s(K,qe,null,ne[qe],N,j);"value"in ne&&s(K,"value",null,ne.value,N),(U=ne.onVnodeBeforeMount)&&Ft(U,j,_)}fe&&bn(_,null,j,"beforeMount");const ve=gp(V,X);ve&&X.beforeEnter(K),r(K,E,q),((U=ne&&ne.onVnodeMounted)||ve||fe)&&nt(()=>{U&&Ft(U,j,_),ve&&X.enter(K),fe&&bn(_,null,j,"mounted")},V)},F=(_,E,q,j,V)=>{if(q&&h(_,q),j)for(let N=0;N<j.length;N++)h(_,j[N]);if(V){let N=V.subTree;if(E===N||il(N.type)&&(N.ssContent===E||N.ssFallback===E)){const te=V.vnode;F(_,te,te.scopeId,te.slotScopeIds,V.parent)}}},C=(_,E,q,j,V,N,te,Q,K=0)=>{for(let U=K;U<_.length;U++){const ne=_[U]=Q?Kt(_[U]):qt(_[U]);b(null,ne,E,q,j,V,N,te,Q)}},D=(_,E,q,j,V,N,te)=>{const Q=E.el=_.el;let{patchFlag:K,dynamicChildren:U,dirs:ne}=E;K|=_.patchFlag&16;const $=_.props||he,X=E.props||he;let fe;if(q&&_n(q,!1),(fe=X.onVnodeBeforeUpdate)&&Ft(fe,q,E,_),ne&&bn(E,_,q,"beforeUpdate"),q&&_n(q,!0),($.innerHTML&&X.innerHTML==null||$.textContent&&X.textContent==null)&&l(Q,""),U?M(_.dynamicChildren,U,Q,q,j,Ss(E,V),N):te||le(_,E,Q,null,q,j,Ss(E,V),N,!1),K>0){if(K&16)O(Q,$,X,q,V);else if(K&2&&$.class!==X.class&&s(Q,"class",null,X.class,V),K&4&&s(Q,"style",$.style,X.style,V),K&8){const ve=E.dynamicProps;for(let qe=0;qe<ve.length;qe++){const De=ve[qe],st=$[De],ht=X[De];(ht!==st||De==="value")&&s(Q,De,st,ht,V,q)}}K&1&&_.children!==E.children&&l(Q,E.children)}else!te&&U==null&&O(Q,$,X,q,V);((fe=X.onVnodeUpdated)||ne)&&nt(()=>{fe&&Ft(fe,q,E,_),ne&&bn(E,_,q,"updated")},j)},M=(_,E,q,j,V,N,te)=>{for(let Q=0;Q<E.length;Q++){const K=_[Q],U=E[Q],ne=K.el&&(K.type===we||!kn(K,U)||K.shapeFlag&198)?f(K.el):q;b(K,U,ne,null,j,V,N,te,!0)}},O=(_,E,q,j,V)=>{if(E!==q){if(E!==he)for(const N in E)!Yn(N)&&!(N in q)&&s(_,N,E[N],null,V,j);for(const N in q){if(Yn(N))continue;const te=q[N],Q=E[N];te!==Q&&N!=="value"&&s(_,N,Q,te,V,j)}"value"in q&&s(_,"value",E.value,q.value,V)}},L=(_,E,q,j,V,N,te,Q,K)=>{const U=E.el=_?_.el:a(""),ne=E.anchor=_?_.anchor:a("");let{patchFlag:$,dynamicChildren:X,slotScopeIds:fe}=E;fe&&(Q=Q?Q.concat(fe):fe),_==null?(r(U,q,j),r(ne,q,j),C(E.children||[],q,ne,V,N,te,Q,K)):$>0&&$&64&&X&&_.dynamicChildren&&_.dynamicChildren.length===X.length?(M(_.dynamicChildren,X,q,V,N,te,Q),(E.key!=null||V&&E===V.subTree)&&_s(_,E,!0)):le(_,E,q,ne,V,N,te,Q,K)},ce=(_,E,q,j,V,N,te,Q,K)=>{E.slotScopeIds=Q,_==null?E.shapeFlag&512?V.ctx.activate(E,q,j,te,K):z(E,q,j,V,N,te,K):oe(_,E,K)},z=(_,E,q,j,V,N,te)=>{const Q=_.component=Cp(_,j,V);if(Jr(_)&&(Q.ctx.renderer=G),Tp(Q,!1,te),Q.asyncDep){if(V&&V.registerDep(Q,se,te),!_.el){const K=Q.subTree=ae(rt);v(null,K,E,q),_.placeholder=K.el}}else se(Q,_,E,q,V,N,te)},oe=(_,E,q)=>{const j=E.component=_.component;if(sp(_,E,q))if(j.asyncDep&&!j.asyncResolved){ie(j,E,q);return}else j.next=E,j.update();else E.el=_.el,j.vnode=E},se=(_,E,q,j,V,N,te)=>{const Q=()=>{if(_.isMounted){let{next:$,bu:X,u:fe,parent:ve,vnode:qe}=_;{const Bt=rl(_);if(Bt){$&&($.el=qe.el,ie(_,$,te)),Bt.asyncDep.then(()=>{nt(()=>{_.isUnmounted||U()},V)});return}}let De=$,st;_n(_,!1),$?($.el=qe.el,ie(_,$,te)):$=qe,X&&Rr(X),(st=$.props&&$.props.onVnodeBeforeUpdate)&&Ft(st,ve,$,qe),_n(_,!0);const ht=Uc(_),Nt=_.subTree;_.subTree=ht,b(Nt,ht,f(Nt.el),ee(Nt),_,V,N),$.el=ht.el,De===null&&ip(_,ht.el),fe&&nt(fe,V),(st=$.props&&$.props.onVnodeUpdated)&&nt(()=>Ft(st,ve,$,qe),V)}else{let $;const{el:X,props:fe}=E,{bm:ve,m:qe,parent:De,root:st,type:ht}=_,Nt=On(E);_n(_,!1),ve&&Rr(ve),!Nt&&($=fe&&fe.onVnodeBeforeMount)&&Ft($,De,E),_n(_,!0);{st.ce&&st.ce._hasShadowRoot()&&st.ce._injectChildStyle(ht);const Bt=_.subTree=Uc(_);b(null,Bt,q,j,_,V,N),E.el=Bt.el}if(qe&&nt(qe,V),!Nt&&($=fe&&fe.onVnodeMounted)){const Bt=E;nt(()=>Ft($,De,Bt),V)}(E.shapeFlag&256||De&&On(De.vnode)&&De.vnode.shapeFlag&256)&&_.a&&nt(_.a,V),_.isMounted=!0,E=q=j=null}};_.scope.on();const K=_.effect=new $a(Q);_.scope.off();const U=_.update=K.run.bind(K),ne=_.job=K.runIfDirty.bind(K);ne.i=_,ne.id=_.uid,K.scheduler=()=>cs(ne),_n(_,!0),U()},ie=(_,E,q)=>{E.component=_;const j=_.vnode.props;_.vnode=E,_.next=null,cp(_,E.props,j,q),dp(_,E.children,q),At(),dc(_),Dt()},le=(_,E,q,j,V,N,te,Q,K=!1)=>{const U=_&&_.children,ne=_?_.shapeFlag:0,$=E.children,{patchFlag:X,shapeFlag:fe}=E;if(X>0){if(X&128){me(U,$,q,j,V,N,te,Q,K);return}else if(X&256){Se(U,$,q,j,V,N,te,Q,K);return}}fe&8?(ne&16&&Ke(U,V,N),$!==U&&l(q,$)):ne&16?fe&16?me(U,$,q,j,V,N,te,Q,K):Ke(U,V,N,!0):(ne&8&&l(q,""),fe&16&&C($,q,j,V,N,te,Q,K))},Se=(_,E,q,j,V,N,te,Q,K)=>{_=_||Be,E=E||Be;const U=_.length,ne=E.length,$=Math.min(U,ne);let X;for(X=0;X<$;X++){const fe=E[X]=K?Kt(E[X]):qt(E[X]);b(_[X],fe,q,null,V,N,te,Q,K)}U>ne?Ke(_,V,N,!0,!1,$):C(E,q,j,V,N,te,Q,K,$)},me=(_,E,q,j,V,N,te,Q,K)=>{let U=0;const ne=E.length;let $=_.length-1,X=ne-1;for(;U<=$&&U<=X;){const fe=_[U],ve=E[U]=K?Kt(E[U]):qt(E[U]);if(kn(fe,ve))b(fe,ve,q,null,V,N,te,Q,K);else break;U++}for(;U<=$&&U<=X;){const fe=_[$],ve=E[X]=K?Kt(E[X]):qt(E[X]);if(kn(fe,ve))b(fe,ve,q,null,V,N,te,Q,K);else break;$--,X--}if(U>$){if(U<=X){const fe=X+1,ve=fe<ne?E[fe].el:j;for(;U<=X;)b(null,E[U]=K?Kt(E[U]):qt(E[U]),q,ve,V,N,te,Q,K),U++}}else if(U>X)for(;U<=$;)Te(_[U],V,N,!0),U++;else{const fe=U,ve=U,qe=new Map;for(U=ve;U<=X;U++){const bt=E[U]=K?Kt(E[U]):qt(E[U]);bt.key!=null&&qe.set(bt.key,U)}let De,st=0;const ht=X-ve+1;let Nt=!1,Bt=0;const Mr=new Array(ht);for(U=0;U<ht;U++)Mr[U]=0;for(U=fe;U<=$;U++){const bt=_[U];if(st>=ht){Te(bt,V,N,!0);continue}let zt;if(bt.key!=null)zt=qe.get(bt.key);else for(De=ve;De<=X;De++)if(Mr[De-ve]===0&&kn(bt,E[De])){zt=De;break}zt===void 0?Te(bt,V,N,!0):(Mr[zt-ve]=U+1,zt>=Bt?Bt=zt:Nt=!0,b(bt,E[zt],q,null,V,N,te,Q,K),st++)}const qd=Nt?mp(Mr):Be;for(De=qd.length-1,U=ht-1;U>=0;U--){const bt=ve+U,zt=E[bt],Fd=E[bt+1],Ld=bt+1<ne?Fd.el||sl(Fd):j;Mr[U]===0?b(null,zt,q,Ld,V,N,te,Q,K):Nt&&(De<0||U!==qd[De]?xe(zt,q,Ld,2):De--)}}},xe=(_,E,q,j,V=null)=>{const{el:N,type:te,transition:Q,children:K,shapeFlag:U}=_;if(U&6){xe(_.component.subTree,E,q,j);return}if(U&128){_.suspense.move(E,q,j);return}if(U&64){te.move(_,E,q,G);return}if(te===we){r(N,E,q);for(let $=0;$<K.length;$++)xe(K[$],E,q,j);r(_.anchor,E,q);return}if(te===dr){y(_,E,q);return}if(j!==2&&U&1&&Q)if(j===0)Q.beforeEnter(N),r(N,E,q),nt(()=>Q.enter(N),V);else{const{leave:$,delayLeave:X,afterLeave:fe}=Q,ve=()=>{_.ctx.isUnmounted?o(N):r(N,E,q)},qe=()=>{N._isLeaving&&N[Rt](!0),$(N,()=>{ve(),fe&&fe()})};X?X(N,ve,qe):qe()}else r(N,E,q)},Te=(_,E,q,j=!1,V=!1)=>{const{type:N,props:te,ref:Q,children:K,dynamicChildren:U,shapeFlag:ne,patchFlag:$,dirs:X,cacheIndex:fe}=_;if($===-2&&(V=!1),Q!=null&&(At(),lr(Q,null,q,_,!0),Dt()),fe!=null&&(E.renderCache[fe]=void 0),ne&256){E.ctx.deactivate(_);return}const ve=ne&1&&X,qe=!On(_);let De;if(qe&&(De=te&&te.onVnodeBeforeUnmount)&&Ft(De,E,_),ne&6)He(_.component,q,j);else{if(ne&128){_.suspense.unmount(q,j);return}ve&&bn(_,null,E,"beforeUnmount"),ne&64?_.type.remove(_,E,q,G,j):U&&!U.hasOnce&&(N!==we||$>0&&$&64)?Ke(U,E,q,!1,!0):(N===we&&$&384||!V&&ne&16)&&Ke(K,E,q),j&&Ae(_)}(qe&&(De=te&&te.onVnodeUnmounted)||ve)&&nt(()=>{De&&Ft(De,E,_),ve&&bn(_,null,E,"unmounted")},q)},Ae=_=>{const{type:E,el:q,anchor:j,transition:V}=_;if(E===we){Ue(q,j);return}if(E===dr){m(_);return}const N=()=>{o(q),V&&!V.persisted&&V.afterLeave&&V.afterLeave()};if(_.shapeFlag&1&&V&&!V.persisted){const{leave:te,delayLeave:Q}=V,K=()=>te(q,N);Q?Q(_.el,N,K):K()}else N()},Ue=(_,E)=>{let q;for(;_!==E;)q=p(_),o(_),_=q;o(E)},He=(_,E,q)=>{const{bum:j,scope:V,job:N,subTree:te,um:Q,m:K,a:U}=_;ol(K),ol(U),j&&Rr(j),V.stop(),N&&(N.flags|=8,Te(te,_,E,q)),Q&&nt(Q,E),nt(()=>{_.isUnmounted=!0},E)},Ke=(_,E,q,j=!1,V=!1,N=0)=>{for(let te=N;te<_.length;te++)Te(_[te],E,q,j,V)},ee=_=>{if(_.shapeFlag&6)return ee(_.component.subTree);if(_.shapeFlag&128)return _.suspense.next();const E=p(_.anchor||_.el),q=E&&E[bc];return q?p(q):E};let P=!1;const A=(_,E,q)=>{let j;_==null?E._vnode&&(Te(E._vnode,null,null,!0),j=E._vnode.component):b(E._vnode||null,_,E,null,null,null,q),E._vnode=_,P||(P=!0,dc(j),hc(),P=!1)},G={p:b,um:Te,m:xe,r:Ae,mt:z,mc:C,pc:le,pbc:M,n:ee,o:e};return{render:A,hydrate:void 0,createApp:Xh(A)}}function Ss({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function _n({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function gp(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function _s(e,t,n=!1){const r=e.children,o=t.children;if(de(r)&&de(o))for(let s=0;s<r.length;s++){const i=r[s];let a=o[s];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=o[s]=Kt(o[s]),a.el=i.el),!n&&a.patchFlag!==-2&&_s(i,a)),a.type===Xr&&(a.patchFlag===-1&&(a=o[s]=Kt(a)),a.el=i.el),a.type===rt&&!a.el&&(a.el=i.el)}}function mp(e){const t=e.slice(),n=[0];let r,o,s,i,a;const c=e.length;for(r=0;r<c;r++){const u=e[r];if(u!==0){if(o=n[n.length-1],e[o]<u){t[r]=o,n.push(r);continue}for(s=0,i=n.length-1;s<i;)a=s+i>>1,e[n[a]]<u?s=a+1:i=a;u<e[n[s]]&&(s>0&&(t[r]=n[s-1]),n[s]=r)}}for(s=n.length,i=n[s-1];s-- >0;)n[s]=i,i=t[i];return n}function rl(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:rl(t)}function ol(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function sl(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?sl(t.subTree):null}const il=e=>e.__isSuspense;function vp(e,t){t&&t.pendingBranch?de(e)?t.effects.push(...e):t.effects.push(e):fc(e)}const we=Symbol.for("v-fgt"),Xr=Symbol.for("v-txt"),rt=Symbol.for("v-cmt"),dr=Symbol.for("v-stc"),hr=[];let gt=null;function R(e=!1){hr.push(gt=e?null:[])}function bp(){hr.pop(),gt=hr[hr.length-1]||null}let pr=1;function eo(e,t=!1){pr+=e,e<0&&gt&&t&&(gt.hasOnce=!0)}function al(e){return e.dynamicChildren=pr>0?gt||Be:null,bp(),pr>0&&gt&&gt.push(e),e}function H(e,t,n,r,o,s){return al(I(e,t,n,r,o,s,!0))}function ge(e,t,n,r,o){return al(ae(e,t,n,r,o,!0))}function gr(e){return e?e.__v_isVNode===!0:!1}function kn(e,t){return e.type===t.type&&e.key===t.key}const cl=({key:e})=>e!=null?e:null,to=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Ve(e)||Qe(e)||pe(e)?{i:tt,r:e,k:t,f:!!n}:e:null);function I(e,t=null,n=null,r=0,o=null,s=e===we?0:1,i=!1,a=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&cl(t),ref:t&&to(t),scopeId:gc,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:s,patchFlag:r,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:tt};return a?(ks(c,n),s&128&&e.normalize(c)):n&&(c.shapeFlag|=Ve(n)?8:16),pr>0&&!i&&gt&&(c.patchFlag>0||s&6)&&c.patchFlag!==32&&gt.push(c),c}const ae=yp;function yp(e,t=null,n=null,r=0,o=null,s=!1){if((!e||e===Uh)&&(e=rt),gr(e)){const a=an(e,t,!0);return n&&ks(a,n),pr>0&&!s&&gt&&(a.shapeFlag&6?gt[gt.indexOf(e)]=a:gt.push(a)),a.patchFlag=-2,a}if(Rp(e)&&(e=e.__vccOpts),t){t=wp(t);let{class:a,style:c}=t;a&&!Ve(a)&&(t.class=be(a)),Pe(c)&&(is(c)&&!de(c)&&(c=ze({},c)),t.style=Ge(c))}const i=Ve(e)?1:il(e)?128:yc(e)?64:Pe(e)?4:pe(e)?2:0;return I(e,t,n,r,o,i,s,!0)}function wp(e){return e?is(e)||Qc(e)?ze({},e):e:null}function an(e,t,n=!1,r=!1){const{props:o,ref:s,patchFlag:i,children:a,transition:c}=e,u=t?_p(o||{},t):o,l={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&cl(u),ref:t&&t.ref?n&&s?de(s)?s.concat(to(t)):[s,to(t)]:to(t):s,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==we?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&an(e.ssContent),ssFallback:e.ssFallback&&an(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&r&&yn(l,c.clone(l)),l}function Gt(e=" ",t=0){return ae(Xr,null,e,t)}function Sp(e,t){const n=ae(dr,null,e);return n.staticCount=t,n}function ue(e="",t=!1){return t?(R(),ge(rt,null,e)):ae(rt,null,e)}function qt(e){return e==null||typeof e=="boolean"?ae(rt):de(e)?ae(we,null,e.slice()):gr(e)?Kt(e):ae(Xr,null,String(e))}function Kt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:an(e)}function ks(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(de(t))n=16;else if(typeof t=="object")if(r&65){const o=t.default;o&&(o._c&&(o._d=!1),ks(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!Qc(t)?t._ctx=tt:o===3&&tt&&(tt.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else pe(t)?(t={default:t,_ctx:tt},n=32):(t=String(t),r&64?(n=16,t=[Gt(t)]):n=8);e.children=t,e.shapeFlag|=n}function _p(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const o in r)if(o==="class")t.class!==r.class&&(t.class=be([t.class,r.class]));else if(o==="style")t.style=Ge([t.style,r.style]);else if(An(o)){const s=t[o],i=r[o];i&&s!==i&&!(de(s)&&s.includes(i))&&(t[o]=s?[].concat(s,i):i)}else o!==""&&(t[o]=r[o])}return t}function Ft(e,t,n,r=null){It(e,t,7,[n,r])}const kp=$c();let xp=0;function Cp(e,t,n){const r=e.type,o=(t?t.appContext:e.appContext)||kp,s={uid:xp++,vnode:e,type:r,parent:t,appContext:o,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Jd(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(o.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Yc(r,o),emitsOptions:jc(r,o),emit:null,emitted:null,propsDefaults:he,inheritAttrs:r.inheritAttrs,ctx:he,data:he,props:he,attrs:he,slots:he,refs:he,setupState:he,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return s.ctx={_:s},s.root=t?t.root:s,s.emit=tp.bind(null,s),e.ce&&e.ce(s),s}let ct=null;const no=()=>ct||tt;let ro,xs;{const e=qr(),t=(n,r)=>{let o;return(o=e[n])||(o=e[n]=[]),o.push(r),s=>{o.length>1?o.forEach(i=>i(s)):o[0](s)}};ro=t("__VUE_INSTANCE_SETTERS__",n=>ct=n),xs=t("__VUE_SSR_SETTERS__",n=>vr=n)}const mr=e=>{const t=ct;return ro(e),e.scope.on(),()=>{e.scope.off(),ro(t)}},ll=()=>{ct&&ct.scope.off(),ro(null)};function ul(e){return e.vnode.shapeFlag&4}let vr=!1;function Tp(e,t=!1,n=!1){t&&xs(t);const{props:r,children:o}=e.vnode,s=ul(e);ap(e,r,s,t),fp(e,o,n||t);const i=s?Ep(e,t):void 0;return t&&xs(!1),i}function Ep(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Wh);const{setup:r}=n;if(r){At();const o=e.setupContext=r.length>1?Ap(e):null,s=mr(e),i=Rn(r,e,0,[e.props,o]),a=qa(i);if(Dt(),s(),(a||e.sp)&&!On(e)&&Dc(e),a){if(i.then(ll,ll),t)return i.then(c=>{fl(e,c)}).catch(c=>{$r(c,e,0)});e.asyncDep=i}else fl(e,i)}else dl(e)}function fl(e,t,n){pe(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Pe(t)&&(e.setupState=ac(t)),dl(e)}function dl(e,t,n){const r=e.type;e.render||(e.render=r.render||pt);{const o=mr(e);At();try{Gh(e)}finally{Dt(),o()}}}const Ip={get(e,t){return et(e,"get",""),e[t]}};function Ap(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,Ip),slots:e.slots,emit:e.emit,expose:t}}function oo(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(ac(mh(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in ur)return ur[n](e)},has(t,n){return n in t||n in ur}})):e.proxy}const Dp=/(?:^|[-_])\w/g,Mp=e=>e.replace(Dp,t=>t.toUpperCase()).replace(/[-_]/g,"");function Pp(e,t=!0){return pe(e)?e.displayName||e.name:e.name||t&&e.__name}function hl(e,t,n=!1){let r=Pp(t);if(!r&&t.__file){const o=t.__file.match(/([^/\\]+)\.\w+$/);o&&(r=o[1])}if(!r&&e){const o=s=>{for(const i in s)if(s[i]===t)return i};r=o(e.components)||e.parent&&o(e.parent.type.components)||o(e.appContext.components)}return r?Mp(r):n?"App":"Anonymous"}function Rp(e){return pe(e)&&"__vccOpts"in e}const Y=(e,t)=>Sh(e,t,vr);function Cs(e,t,n){try{eo(-1);const r=arguments.length;return r===2?Pe(t)&&!de(t)?gr(t)?ae(e,null,[t]):ae(e,t):ae(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&gr(n)&&(n=[n]),ae(e,t,n))}finally{eo(1)}}const qp="3.5.28";/**
* @vue/runtime-dom v3.5.28
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/let Ts;const pl=typeof window!="undefined"&&window.trustedTypes;if(pl)try{Ts=pl.createPolicy("vue",{createHTML:e=>e})}catch(e){}const gl=Ts?e=>Ts.createHTML(e):e=>e,Fp="http://www.w3.org/2000/svg",Lp="http://www.w3.org/1998/Math/MathML",Jt=typeof document!="undefined"?document:null,ml=Jt&&Jt.createElement("template"),Op={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const o=t==="svg"?Jt.createElementNS(Fp,e):t==="mathml"?Jt.createElementNS(Lp,e):n?Jt.createElement(e,{is:n}):Jt.createElement(e);return e==="select"&&r&&r.multiple!=null&&o.setAttribute("multiple",r.multiple),o},createText:e=>Jt.createTextNode(e),createComment:e=>Jt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Jt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,o,s){const i=n?n.previousSibling:t.lastChild;if(o&&(o===s||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),!(o===s||!(o=o.nextSibling)););else{ml.innerHTML=gl(r==="svg"?`<svg>${e}</svg>`:r==="mathml"?`<math>${e}</math>`:e);const a=ml.content;if(r==="svg"||r==="mathml"){const c=a.firstChild;for(;c.firstChild;)a.appendChild(c.firstChild);a.removeChild(c)}t.insertBefore(a,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},cn="transition",br="animation",Bn=Symbol("_vtc"),vl={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},bl=ze({},Cc,vl),Qt=(e=>(e.displayName="Transition",e.props=bl,e))((e,{slots:t})=>Cs(Lh,wl(e),t)),xn=(e,t=[])=>{de(e)?e.forEach(n=>n(...t)):e&&e(...t)},yl=e=>e?de(e)?e.some(t=>t.length>1):e.length>1:!1;function wl(e){const t={};for(const L in e)L in vl||(t[L]=e[L]);if(e.css===!1)return t;const{name:n="v",type:r,duration:o,enterFromClass:s=`${n}-enter-from`,enterActiveClass:i=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:c=s,appearActiveClass:u=i,appearToClass:l=a,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:p=`${n}-leave-active`,leaveToClass:h=`${n}-leave-to`}=e,g=Np(o),b=g&&g[0],S=g&&g[1],{onBeforeEnter:v,onEnter:w,onEnterCancelled:y,onLeave:m,onLeaveCancelled:T,onBeforeAppear:x=v,onAppear:F=w,onAppearCancelled:C=y}=t,D=(L,ce,z,oe)=>{L._enterCancelled=oe,ln(L,ce?l:a),ln(L,ce?u:i),z&&z()},M=(L,ce)=>{L._isLeaving=!1,ln(L,f),ln(L,h),ln(L,p),ce&&ce()},O=L=>(ce,z)=>{const oe=L?F:w,se=()=>D(ce,L,z);xn(oe,[ce,se]),Sl(()=>{ln(ce,L?c:s),Lt(ce,L?l:a),yl(oe)||_l(ce,r,b,se)})};return ze(t,{onBeforeEnter(L){xn(v,[L]),Lt(L,s),Lt(L,i)},onBeforeAppear(L){xn(x,[L]),Lt(L,c),Lt(L,u)},onEnter:O(!1),onAppear:O(!0),onLeave(L,ce){L._isLeaving=!0;const z=()=>M(L,ce);Lt(L,f),L._enterCancelled?(Lt(L,p),Is(L)):(Is(L),Lt(L,p)),Sl(()=>{L._isLeaving&&(ln(L,f),Lt(L,h),yl(m)||_l(L,r,S,z))}),xn(m,[L,z])},onEnterCancelled(L){D(L,!1,void 0,!0),xn(y,[L])},onAppearCancelled(L){D(L,!0,void 0,!0),xn(C,[L])},onLeaveCancelled(L){M(L),xn(T,[L])}})}function Np(e){if(e==null)return null;if(Pe(e))return[Es(e.enter),Es(e.leave)];{const t=Es(e);return[t,t]}}function Es(e){return Hd(e)}function Lt(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[Bn]||(e[Bn]=new Set)).add(t)}function ln(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const n=e[Bn];n&&(n.delete(t),n.size||(e[Bn]=void 0))}function Sl(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Bp=0;function _l(e,t,n,r){const o=e._endId=++Bp,s=()=>{o===e._endId&&r()};if(n!=null)return setTimeout(s,n);const{type:i,timeout:a,propCount:c}=kl(e,t);if(!i)return r();const u=i+"end";let l=0;const f=()=>{e.removeEventListener(u,p),s()},p=h=>{h.target===e&&++l>=c&&f()};setTimeout(()=>{l<c&&f()},a+1),e.addEventListener(u,p)}function kl(e,t){const n=window.getComputedStyle(e),r=g=>(n[g]||"").split(", "),o=r(`${cn}Delay`),s=r(`${cn}Duration`),i=xl(o,s),a=r(`${br}Delay`),c=r(`${br}Duration`),u=xl(a,c);let l=null,f=0,p=0;t===cn?i>0&&(l=cn,f=i,p=s.length):t===br?u>0&&(l=br,f=u,p=c.length):(f=Math.max(i,u),l=f>0?i>u?cn:br:null,p=l?l===cn?s.length:c.length:0);const h=l===cn&&/\b(?:transform|all)(?:,|$)/.test(r(`${cn}Property`).toString());return{type:l,timeout:f,propCount:p,hasTransform:h}}function xl(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,r)=>Cl(n)+Cl(e[r])))}function Cl(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Is(e){return(e?e.ownerDocument:document).body.offsetHeight}function zp(e,t,n){const r=e[Bn];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const so=Symbol("_vod"),Tl=Symbol("_vsh"),zn={name:"show",beforeMount(e,{value:t},{transition:n}){e[so]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):yr(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),yr(e,!0),r.enter(e)):r.leave(e,()=>{yr(e,!1)}):yr(e,t))},beforeUnmount(e,{value:t}){yr(e,t)}};function yr(e,t){e.style.display=t?e[so]:"none",e[Tl]=!t}const El=Symbol("");function As(e){const t=no();if(!t)return;const n=t.ut=(o=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(s=>io(s,o))},r=()=>{const o=e(t.proxy);t.ce?io(t.ce,o):Ds(t.subTree,o),n(o)};qc(()=>{fc(r)}),ut(()=>{je(r,pt,{flush:"post"});const o=new MutationObserver(r);o.observe(t.subTree.el.parentNode,{childList:!0}),Wt(()=>o.disconnect())})}function Ds(e,t){if(e.shapeFlag&128){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{Ds(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)io(e.el,t);else if(e.type===we)e.children.forEach(n=>Ds(n,t));else if(e.type===dr){let{el:n,anchor:r}=e;for(;n&&(io(n,t),n!==r);)n=n.nextSibling}}function io(e,t){if(e.nodeType===1){const n=e.style;let r="";for(const o in t){const s=Kd(t[o]);n.setProperty(`--${o}`,s),r+=`--${o}: ${s};`}n[El]=r}}const Hp=/(?:^|;)\s*display\s*:/;function Vp(e,t,n){const r=e.style,o=Ve(n);let s=!1;if(n&&!o){if(t)if(Ve(t))for(const i of t.split(";")){const a=i.slice(0,i.indexOf(":")).trim();n[a]==null&&ao(r,a,"")}else for(const i in t)n[i]==null&&ao(r,i,"");for(const i in n)i==="display"&&(s=!0),ao(r,i,n[i])}else if(o){if(t!==n){const i=r[El];i&&(n+=";"+i),r.cssText=n,s=Hp.test(n)}}else t&&e.removeAttribute("style");so in e&&(e[so]=s?r.display:"",e[Tl]&&(r.display="none"))}const Il=/\s*!important$/;function ao(e,t,n){if(de(n))n.forEach(r=>ao(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=$p(e,t);Il.test(n)?e.setProperty(hn(r),n.replace(Il,""),"important"):e[r]=n}}const Al=["Webkit","Moz","ms"],Ms={};function $p(e,t){const n=Ms[t];if(n)return n;let r=nn(t);if(r!=="filter"&&r in e)return Ms[t]=r;r=Oa(r);for(let o=0;o<Al.length;o++){const s=Al[o]+r;if(s in e)return Ms[t]=s}return t}const Dl="http://www.w3.org/1999/xlink";function Ml(e,t,n,r,o,s=Wd(t)){r&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(Dl,t.slice(6,t.length)):e.setAttributeNS(Dl,t,n):n==null||s&&!za(n)?e.removeAttribute(t):e.setAttribute(t,s?"":Ct(n)?String(n):n)}function Pl(e,t,n,r,o){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?gl(n):n);return}const s=e.tagName;if(t==="value"&&s!=="PROGRESS"&&!s.includes("-")){const a=s==="OPTION"?e.getAttribute("value")||"":e.value,c=n==null?e.type==="checkbox"?"on":"":String(n);(a!==c||!("_value"in e))&&(e.value=c),n==null&&e.removeAttribute(t),e._value=n;return}let i=!1;if(n===""||n==null){const a=typeof e[t];a==="boolean"?n=za(n):n==null&&a==="string"?(n="",i=!0):a==="number"&&(n=0,i=!0)}try{e[t]=n}catch(a){}i&&e.removeAttribute(o||t)}function Hn(e,t,n,r){e.addEventListener(t,n,r)}function jp(e,t,n,r){e.removeEventListener(t,n,r)}const Rl=Symbol("_vei");function Up(e,t,n,r,o=null){const s=e[Rl]||(e[Rl]={}),i=s[t];if(r&&i)i.value=r;else{const[a,c]=Wp(t);if(r){const u=s[t]=Jp(r,o);Hn(e,a,u,c)}else i&&(jp(e,a,i,c),s[t]=void 0)}}const ql=/(?:Once|Passive|Capture)$/;function Wp(e){let t;if(ql.test(e)){t={};let r;for(;r=e.match(ql);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):hn(e.slice(2)),t]}let Ps=0;const Gp=Promise.resolve(),Kp=()=>Ps||(Gp.then(()=>Ps=0),Ps=Date.now());function Jp(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;It(Qp(r,n.value),t,5,[r])};return n.value=e,n.attached=Kp(),n}function Qp(e,t){if(de(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>o=>!o._stopped&&r&&r(o))}else return t}const Fl=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Zp=(e,t,n,r,o,s)=>{const i=o==="svg";t==="class"?zp(e,r,i):t==="style"?Vp(e,n,r):An(t)?Jn(t)||Up(e,t,n,r,s):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Yp(e,t,r,i))?(Pl(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Ml(e,t,r,i,s,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!Ve(r))?Pl(e,nn(t),r,s,t):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),Ml(e,t,r,i))};function Yp(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&Fl(t)&&pe(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const o=e.tagName;if(o==="IMG"||o==="VIDEO"||o==="CANVAS"||o==="SOURCE")return!1}return Fl(t)&&Ve(n)?!1:t in e}const Ll=new WeakMap,Ol=new WeakMap,co=Symbol("_moveCb"),Nl=Symbol("_enterCb"),Bl=(e=>(delete e.props.mode,e))({name:"TransitionGroup",props:ze({},bl,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=no(),r=xc();let o,s;return Fc(()=>{if(!o.length)return;const i=e.moveClass||`${e.name||"v"}-move`;if(!ng(o[0].el,n.vnode.el,i)){o=[];return}o.forEach(Xp),o.forEach(eg);const a=o.filter(tg);Is(n.vnode.el),a.forEach(c=>{const u=c.el,l=u.style;Lt(u,i),l.transform=l.webkitTransform=l.transitionDuration="";const f=u[co]=p=>{p&&p.target!==u||(!p||p.propertyName.endsWith("transform"))&&(u.removeEventListener("transitionend",f),u[co]=null,ln(u,i))};u.addEventListener("transitionend",f)}),o=[]}),()=>{const i=_e(e),a=wl(i);let c=i.tag||we;if(o=[],s)for(let u=0;u<s.length;u++){const l=s[u];l.el&&l.el instanceof Element&&(o.push(l),yn(l,cr(l,a,r,n)),Ll.set(l,zl(l.el)))}s=t.default?hs(t.default()):[];for(let u=0;u<s.length;u++){const l=s[u];l.key!=null&&yn(l,cr(l,a,r,n))}return ae(c,null,s)}}});function Xp(e){const t=e.el;t[co]&&t[co](),t[Nl]&&t[Nl]()}function eg(e){Ol.set(e,zl(e.el))}function tg(e){const t=Ll.get(e),n=Ol.get(e),r=t.left-n.left,o=t.top-n.top;if(r||o){const s=e.el,i=s.style,a=s.getBoundingClientRect();let c=1,u=1;return s.offsetWidth&&(c=a.width/s.offsetWidth),s.offsetHeight&&(u=a.height/s.offsetHeight),(!Number.isFinite(c)||c===0)&&(c=1),(!Number.isFinite(u)||u===0)&&(u=1),Math.abs(c-1)<.01&&(c=1),Math.abs(u-1)<.01&&(u=1),i.transform=i.webkitTransform=`translate(${r/c}px,${o/u}px)`,i.transitionDuration="0s",e}}function zl(e){const t=e.getBoundingClientRect();return{left:t.left,top:t.top}}function ng(e,t,n){const r=e.cloneNode(),o=e[Bn];o&&o.forEach(a=>{a.split(/\s+/).forEach(c=>c&&r.classList.remove(c))}),n.split(/\s+/).forEach(a=>a&&r.classList.add(a)),r.style.display="none";const s=t.nodeType===1?t:t.parentNode;s.appendChild(r);const{hasTransform:i}=kl(r);return s.removeChild(r),i}const Hl=e=>{const t=e.props["onUpdate:modelValue"]||!1;return de(t)?n=>Rr(t,n):t};function rg(e){e.target.composing=!0}function Vl(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Rs=Symbol("_assign");function $l(e,t,n){return t&&(e=e.trim()),n&&(e=Uo(e)),e}const og={created(e,{modifiers:{lazy:t,trim:n,number:r}},o){e[Rs]=Hl(o);const s=r||o.props&&o.props.type==="number";Hn(e,t?"change":"input",i=>{i.target.composing||e[Rs]($l(e.value,n,s))}),(n||s)&&Hn(e,"change",()=>{e.value=$l(e.value,n,s)}),t||(Hn(e,"compositionstart",rg),Hn(e,"compositionend",Vl),Hn(e,"change",Vl))},mounted(e,{value:t}){e.value=t==null?"":t},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:o,number:s}},i){if(e[Rs]=Hl(i),e.composing)return;const a=(s||e.type==="number")&&!/^0\d/.test(e.value)?Uo(e.value):e.value,c=t==null?"":t;a!==c&&(document.activeElement===e&&e.type!=="range"&&(r&&t===n||o&&e.value.trim()===c)||(e.value=c))}},sg=["ctrl","shift","alt","meta"],ig={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>sg.some(n=>e[`${n}Key`]&&!t.includes(n))},Oe=(e,t)=>{if(!e)return e;const n=e._withMods||(e._withMods={}),r=t.join(".");return n[r]||(n[r]=((o,...s)=>{for(let i=0;i<t.length;i++){const a=ig[t[i]];if(a&&a(o,t))return}return e(o,...s)}))},ag=ze({patchProp:Zp},Op);let jl;function cg(){return jl||(jl=hp(ag))}const lg=((...e)=>{const t=cg().createApp(...e),{mount:n}=t;return t.mount=r=>{const o=fg(r);if(!o)return;const s=t._component;!pe(s)&&!s.render&&!s.template&&(s.template=o.innerHTML),o.nodeType===1&&(o.textContent="");const i=n(o,!1,ug(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),i},t});function ug(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function fg(e){return Ve(e)?document.querySelector(e):e}const qs={lang:{cn:"CN",en:"EN",jp:"JP"},readingMode:{cn:"阅读模式",en:"Mode",jp:"モード"},readingModeTip:{cn:"设置阅读模式",en:"Change reading mode",jp:"読むモードを変更する"},scrollMode:{cn:"滚动",en:"Scroll",jp:"スクロール"},bookMode:{cn:"书页",en:"Book",jp:"ページ"},widthScale:{cn:"页面比例",en:"Page scale",jp:"ページの割合"},widthScaleTip:{cn:"设置页面比例",en:"Change page scale",jp:"ページの割合を設定"},custom:{cn:"自定义",en:"Custom",jp:"カスタム"},loadNum:{cn:"加载页数",en:"Loading quantity",jp:"積載量"},loadNumTip:{cn:"越大则对网络质量要求越高",en:"The greater quantity, the higher requirement of network quality",jp:"数字が大きいほど、ネットワーク品質の要件が高くなります"},volSize:{cn:"分卷页数",en:"Volume size",jp:"ボリュームサイズ"},volSizeTip:{cn:"设置过大会导致卡顿",en:"If too big, the page will be laggy",jp:"大きすぎると、プログラムは遅くなります"},thumbView:{cn:"缩略图栏",en:"Thumbnail",jp:"サムネイル"},thumbViewTip:{cn:"开启/关闭缩略图栏",en:"Show/hide the column of thumbnail",jp:"サムネイルの列を表示または非表示"},expandThumbs:{cn:"展开",en:"Expand",jp:"展開"},screenSize:{cn:"同屏页数",en:"Pages/screen",jp:"ページ/画面"},screenSizeTip:{cn:"一个屏幕下的页数",en:"The number of pages on the screen",jp:"画面上のページ数"},bookDirection:{cn:"阅读方向",en:"Direction",jp:"読み取り方向"},bookDirectionTip:{cn:"阅读方向",en:"Reading direction",jp:"読み取り方向"},rtl:{cn:"RTL (从右到左)",en:"RTL (Right To Left)",jp:"RTL (右から左に)"},rtlAbbr:{cn:"RTL",en:"RTL",jp:"RTL"},ltr:{cn:"LTR (从左到右)",en:"LTR (Left to Right)",jp:"LTR (左から右へ)"},ltrAbbr:{cn:"LTR",en:"LTR",jp:"LTR"},pagination:{cn:"页目录",en:"Pagination",jp:"ページネーション"},paginationTip:{cn:"显示/隐藏底部悬浮页目录",en:"Show/hide the bottom floating pagination",jp:"ボトムフローティングページネーションの表示/非表示"},bookAnimation:{cn:"换页动画",en:"Sliding animation",jp:"アニメーション"},bookAnimationTip:{cn:"开启/关闭换页时的滑动动画(测试中)",en:"show/hide the sliding animation when changing location(Beta)",jp:"場所を変更するときのスライドアニメーションの表示/非表示(测试中)"},pageTurnAnimation:{cn:"翻页动效",en:"Page turn animation",jp:"ページめくり効果"},pageTurnAnimationTip:{cn:"设置书页模式翻页动效",en:"Set page turn animation for book mode",jp:"ページモードのアニメーションを設定"},pageTurnAnimationPageFlip:{cn:"拟真翻书",en:"Page flip",jp:"ページめくり"},pageTurnAnimationRotate:{cn:"旋转翻页",en:"Rotate",jp:"回転"},pageTurnAnimationSlide:{cn:"垂直平移",en:"Vertical slide",jp:"垂直スライド"},pageTurnAnimationHorizontalSlide:{cn:"水平平移",en:"Horizontal slide",jp:"水平スライド"},pageTurnAnimationNone:{cn:"无动效",en:"None",jp:"なし"},animationSpeed:{cn:"动画速率",en:"Animation speed",jp:"アニメーション速度"},animationSpeedTip:{cn:"控制翻页动画的速度",en:"Control page turn animation speed",jp:"ページめくりアニメーションの速度を制御"},reverseFlip:{cn:"反转翻页",en:"Reverse flip",jp:"反転フリップ"},reverseFlipTip:{cn:"反转翻页方向",en:"Reverse page turning direction",jp:"ページめくり方向を逆にする"},autoFlip:{cn:"自动翻页",en:"Auto",jp:"自動ページめくり"},autoFlipTip:{cn:"自动翻页",en:"Automatic page turning",jp:"自動ページめくり"},autoFlipFrequency:{cn:"翻页频率",en:"Frequency",jp:"頻度"},autoFlipFrequencyTip:{cn:"自动翻页的频率",en:"Automatic page turning frequency",jp:"自動ページめくり頻度"},refresh:{cn:"刷新",en:"Refresh",jp:"リフレッシュ"},refreshTip:{cn:"再次获取普通图片",en:"Refresh to load normal image",jp:"リフレッシュ; 通常の画像を読み込みます"},originImg:{cn:"原图",en:"Original",jp:"元画像"},originImgTip:{cn:"加载原图",en:"Load original image",jp:"元画像を読み込む"},refreshByOtherSource:{cn:"换源刷新",en:"Other source",jp:"他のサーバー"},refreshByOtherSourceTip:{cn:"从其他服务器获取普通图片",en:"Load normal image from other server",jp:"他のサーバーから通常の画像を取得する"},loadingImg:{cn:"加载图片中...",en:"Loading image...",jp:"画像を読み込む.."},loadingImgUrl:{cn:"加载图片地址中...",en:"Loading image url..",jp:"画像URLを読み込む.."},reload:{cn:"重载",en:"Reload",jp:"リロード"},loadingImgFailed:{cn:"加载图片失败, 请刷新",en:"Loading failed, please refresh",jp:"読み込みに失敗しました。更新してください"},noOriginalImg:{cn:"无原图, 请刷新",en:"No original Image, please refresh",jp:"オリジナルイメージはありません。リフレッシュしてください"},loadingFailed:{cn:"加载错误",en:"Loading failed",jp:"読み込み失敗"},imgLoaded:{cn:"图片加载完成",en:"Image loaded",jp:"画像が読み込まれた"},waiting:{cn:"等待中..",en:"Waiting..",jp:"待っている.."},fullScreen:{cn:"全屏",en:"Full screen",jp:"全画面表示"},dockLeft:{cn:"停靠左侧",en:"Dock left",jp:"左にドック"},dockRight:{cn:"停靠右侧",en:"Dock right",jp:"右にドック"},dockBottom:{cn:"停靠底部",en:"Dock bottom",jp:"下にドック"},resizePanel:{cn:"调整面板尺寸",en:"Resize panel",jp:"パネルサイズ調整"},closeJMEHunter:{cn:"关闭JM-EHunter",en:"Close JM-EHunter",jp:"JM-EHunter閉じる"},toggleTopBar:{cn:"显示/隐藏顶栏",en:"Show/hide top bar",jp:"トップバーの表示/非表示"},toggleMoreSettings:{cn:"显示/隐藏更多设置 [Shift]",en:"Show/hide more settings [Shift]",jp:"他の設定を表示/隠す [Shift]"},openMoreSettingsModal:{cn:"更多设置",en:"More settings",jp:"詳細設定"},more:{cn:"更多",en:"More",jp:"もっと"},moreSettings:{cn:"更多设置",en:"More settings",jp:"詳細設定"},quickPreview:{cn:"快速预览",en:"Quick preview",jp:"クイックプレビュー"},download:{cn:"下载",en:"Download",jp:"ダウンロード"},downloadConfirmTitle:{cn:"下载确认",en:"Download confirmation",jp:"ダウンロード確認"},downloadConfirmMessage:{cn:"是否下载该画廊的所有图片?",en:"Download all images from this gallery?",jp:"このギャラリーのすべての画像をダウンロードしますか?"},downloadAuthorizeTip:{cn:"**提示:** 下载时可能会弹出授权提示,仅用于获取图片并打包下载,请放心授权。",en:"**Tip:** You may see an authorization prompt during download. It is only used to fetch images and create the zip package.",jp:"**ヒント:** ダウンロード中に権限確認が表示される場合があります。画像取得とzip作成のためのみ使用されます。"},settingsGeneral:{cn:"通用",en:"General",jp:"一般"},settingsScrollMode:{cn:"滚动模式",en:"Scroll mode",jp:"スクロールモード"},settingsBookMode:{cn:"书页模式",en:"Book mode",jp:"ページモード"},settingsQuick:{cn:"快捷设置",en:"Quick settings",jp:"クイック設定"},settingsShortcuts:{cn:"快捷键",en:"Shortcuts",jp:"ショートカット"},shortcutEditHint:{cn:"点击 + 从固定列表新增快捷键,点击快捷键上的 × 可删除。",en:"Click + to add from fixed options, click × on a shortcut to remove it.",jp:"+で固定リストから追加し、ショートカットの×で削除します。"},shortcutAddPlaceholder:{cn:"选择快捷键",en:"Select key",jp:"キーを選択"},currentShortcut:{cn:"当前",en:"Current",jp:"現在"},shortcutResetLabel:{cn:"恢复默认快捷键",en:"Restore default shortcuts",jp:"デフォルトのショートカットを復元"},shortcutResetAction:{cn:"恢复默认",en:"Reset",jp:"リセット"},shortcutGoPrev:{cn:"上一页",en:"Previous page",jp:"前のページ"},shortcutGoPrevTip:{cn:"滚动模式前进/后退中的后退动作",en:"Move to previous page/segment",jp:"前のページ/セグメントへ移動"},shortcutGoNext:{cn:"下一页",en:"Next page",jp:"次のページ"},shortcutGoNextTip:{cn:"滚动模式前进/后退中的前进动作",en:"Move to next page/segment",jp:"次のページ/セグメントへ移動"},shortcutToggleMoreSettings:{cn:"更多设置开关",en:"Toggle more settings",jp:"詳細設定の表示切替"},shortcutToggleMoreSettingsTip:{cn:"显示或关闭更多设置弹窗",en:"Open/close more settings modal",jp:"詳細設定モーダルを開閉"},shortcutToggleTopBar:{cn:"顶栏开关",en:"Toggle top bar",jp:"トップバー表示切替"},shortcutToggleTopBarTip:{cn:"显示或隐藏顶部工具栏",en:"Show/hide top toolbar",jp:"上部ツールバーを表示/非表示"},shortcutToggleThumbView:{cn:"缩略图栏开关",en:"Toggle thumbnails",jp:"サムネイル表示切替"},shortcutToggleThumbViewTip:{cn:"滚动/书页模式下切换缩略图栏显示",en:"Show/hide thumbnail panel in current mode",jp:"現在モードのサムネイルパネル表示切替"},shortcutToggleQuickPreview:{cn:"快速预览开关",en:"Toggle quick preview",jp:"クイックプレビュー切替"},shortcutToggleQuickPreviewTip:{cn:"打开/关闭快速预览",en:"Open/close quick preview",jp:"クイックプレビューを開閉"},shortcutIncreaseWidthScale:{cn:"调大页面比例",en:"Increase page scale",jp:"ページ倍率を上げる"},shortcutIncreaseWidthScaleTip:{cn:"每次增加 5%",en:"Increase scale by 5%",jp:"倍率を5%増加"},shortcutDecreaseWidthScale:{cn:"调小页面比例",en:"Decrease page scale",jp:"ページ倍率を下げる"},shortcutDecreaseWidthScaleTip:{cn:"每次减少 5%",en:"Decrease scale by 5%",jp:"倍率を5%減少"},shortcutTogglePagination:{cn:"页目录开关",en:"Toggle pagination",jp:"ページネーション切替"},shortcutTogglePaginationTip:{cn:"书页模式下显示/隐藏页目录(默认未绑定)",en:"Show/hide pagination in book mode (unbound by default)",jp:"見開きモードでページネーションを表示/非表示(初期値未割当)"},shortcutToggleAutoFlip:{cn:"自动翻页开关",en:"Toggle auto flip",jp:"自動ページめくり切替"},shortcutToggleAutoFlipTip:{cn:"书页模式下开关自动翻页(默认未绑定)",en:"Toggle auto flip in book mode (unbound by default)",jp:"ページモードの自動めくり切替(初期未設定)"},shortcutToggleOddEven:{cn:"奇偶切换开关",en:"Toggle odd/even",jp:"奇偶切替"},shortcutToggleOddEvenTip:{cn:"书页模式下切换奇偶页拼接(默认未绑定)",en:"Toggle odd/even stitching in book mode (unbound by default)",jp:"ページモードの奇偶ページ結合切替(初期未設定)"},languageSetting:{cn:"语言",en:"Language",jp:"言語"},languageSettingTip:{cn:"语言/Language/言語",en:"语言/Language/言語",jp:"语言/Language/言語"},settingsOther:{cn:"其他",en:"Other",jp:"その他"},autoSourceRetry:{cn:"自动换源重试",en:"Auto source retry",jp:"自動ソース再試行"},autoSourceRetryTip:{cn:"加载失败时自动尝试换源",en:"Automatically retry with another source when loading fails",jp:"読み込み失敗時に別ソースで自動再試行"},downloadChunkSize:{cn:"下载分片大小",en:"Download chunk size",jp:"ダウンロード分割サイズ"},downloadChunkSizeTip:{cn:"单个压缩包最多包含的图片页数,异常值会回退到200",en:"Max images per zip; invalid values fallback to 200",jp:"1つのzipに含める最大画像数。無効値は200に戻す"},downloadQueued:{cn:"下载任务已开始",en:"Download queued",jp:"ダウンロード開始"},downloadNoPages:{cn:"无可下载页面",en:"No pages to download",jp:"ダウンロード対象ページなし"},downloadFetching:{cn:"正在处理第{{current}}/{{total}}张图片",en:"Processing image {{current}} / {{total}}",jp:"{{current}} / {{total}} 枚目を処理中"},downloadCompressing:{cn:"正在压缩第{{chunk}}/{{totalChunks}}个分片",en:"Compressing chunk {{chunk}} / {{totalChunks}}",jp:"{{chunk}} / {{totalChunks}} 分割を圧縮中"},downloadCompleted:{cn:"下载完成",en:"Download completed",jp:"ダウンロード完了"},downloadPartial:{cn:"下载完成,失败{{failed}}张",en:"Completed with {{failed}} failures",jp:"完了(失敗 {{failed}} 枚)"},downloadFailed:{cn:"下载失败",en:"Download failed",jp:"ダウンロード失敗"},downloadChunkFailed:{cn:"分片{{chunk}}压缩失败:{{reason}}",en:"Chunk {{chunk}} failed: {{reason}}",jp:"分割{{chunk}}失敗: {{reason}}"},downloadAborted:{cn:"下载已终止",en:"Download aborted",jp:"ダウンロードを停止しました"},terminate:{cn:"终止",en:"Terminate",jp:"停止"},resetAllConfirmTitle:{cn:"确认清空缓存并重置设置",en:"Confirm cache clear and reset",jp:"キャッシュ削除と設定リセットを確認"},resetAllConfirmDesc:{cn:"该操作会清空缓存并恢复所有设置为默认值,且不可撤销。",en:"This clears cache and restores all settings to default, and cannot be undone.",jp:"この操作はキャッシュを削除し、すべての設定を初期値に戻します。取り消しできません。"},versionLabel:{cn:"版本号",en:"Version",jp:"バージョン"},enabled:{cn:"已启用",en:"Enabled",jp:"有効"},hidden:{cn:"已隐藏",en:"Hidden",jp:"非表示"},quickDragHint:{cn:"拖拽设置项可调整顺序,并可在上下区域间移动来控制显示。",en:"Drag items to reorder, and move between sections to show or hide.",jp:"ドラッグで並び替え、上下の領域間移動で表示/非表示を切り替えます。"},quickEnabledHint:{cn:"这些会显示在顶部快捷栏",en:"Shown in top quick bar",jp:"上部クイックバーに表示"},quickHiddenHint:{cn:"这些不会显示在顶部快捷栏",en:"Hidden from top quick bar",jp:"上部クイックバーに非表示"},disabled:{cn:"已禁用",en:"Disabled",jp:"無効"},confirm:{cn:"确定",en:"CONFIRM",jp:"確認"},cancel:{cn:"取消",en:"CANCEL",jp:"取り消し"},infoTip:{cn:"查看说明和关于",en:"Look the Instructions and About",jp:"指示と情報を見てください"},resetTip:{cn:"重置缓存和数据",en:"Reset cache and data",jp:"Reset cache and data"},githubTip:{cn:"前往项目主页(Github)",en:"Go to the project home page(Github)",jp:"プロジェクトのホームページに行く(Github)"},instructionsAndAbouts:{cn:"说明和关于",en:"Instructions & About",jp:"説明と概要"},instructions:{cn:"说明",en:"Instructions",jp:"説明"},later:{cn:"以后再说",en:"LATER",jp:"後で"},changingToSmallFailed:{cn:'无缝切换至`"Normal"`模式失败,可能是网络错误,可刷新重试或者返回前一页将预览图的大小模式切换为`"Normal"`。',en:'Changing to `"Normal"` mode failed, because of poor network. You can reload this page or go back to previous page and change the mode of thumbnails to `"Normal"`',jp:"ネットワークが不十分であるため、`「Normal」`モードに変更できませんでした。 このページをリロードするか、前のページに戻ってサムネイルのモードを`「Normal」`に変更することができます"},loadingTip:{cn:"在前页采用Normal模式查看缩略图可加速加载",en:'You can use "Normal" mode of thumbnail in previous page to accelerate the load.',jp:"前のページでサムネイルの「Normal」モードを使用して、読み込みを高速化できます。"},versionUpdate:{cn:"版本更新说明",en:"The update of this version",jp:"このバージョンの更新"},loadingFailedAndRefresh:{cn:"加载错误, 刷新重试",en:"Loading failed, please refresh to retry",jp:"読み込みに失敗しました。もう一度試してください"},failedMsg:{cn:"错误信息",en:"Error message",jp:"エラーメッセージ"},version:{cn:"版本",en:"Version",jp:"Version"},ContractAuthor:{cn:"联系作者",en:"Contact author",jp:"作者に連絡する"},wheelSensitivity:{cn:"滚轮翻页",en:"Wheel flip",jp:"ホイール"},wheelSensitivityTip:{cn:"鼠标滚轮翻页灵敏度",en:"Wheel sensitivity",jp:"ホイール感度"},wheelDirection:{cn:"动画反向",en:"Reverse Animation",jp:"アニメーション反転"},wheelDirectionTip:{cn:"反转翻页动画方向(同时作用于滚轮和键盘)",en:"Reverse page turn animation direction (affects both wheel and keyboard)",jp:"ページめくりアニメーションの方向を反転(ホイールとキーボード両方に適用)"},tips:{cn:"提示",en:"TIPS",jp:"ヒント"},numberInputTip:{cn:"最小值为`{{min}}`, 最大值为`{{max}}`",en:"The minimum is `{{min}}` and the maximum is `{{max}}`",jp:"最小は`{{min}}`, 最大は`{{max}}`です"},pageMargin:{cn:"页间隔",en:"Page spacing",jp:"ページ間隔"},pageMarginTip:{cn:"页间隔",en:"Page spacing",jp:"ページ間隔"},oddEven:{cn:"奇偶切换",en:"Odd/Even",jp:"奇/偶"},oddEvenTip:{cn:"切换奇偶页拼接",en:"Switching odd or even page stitching",jp:"奇数または偶数ページステッチの切り替え"},openMagnifier:{cn:"打开放大镜",en:"Open magnifier",jp:"拡大鏡を開く"},closeMagnifier:{cn:"关闭放大镜",en:"Close magnifier",jp:"拡大鏡を閉じる"},zoomInMagnifier:{cn:"增大放大镜倍率",en:"Increase magnifier zoom",jp:"拡大率を上げる"},zoomOutMagnifier:{cn:"缩小放大镜倍率",en:"Decrease magnifier zoom",jp:"拡大率を下げる"},notSupportedInCurrentPlatform:{cn:"当前平台不支持",en:"Not supported on this platform",jp:"このプラットフォームでは非対応"},increaseMagnifierArea:{cn:"增大放大镜区域",en:"Increase magnifier area",jp:"拡大エリアを拡大"},decreaseMagnifierArea:{cn:"缩小放大镜区域",en:"Decrease magnifier area",jp:"拡大エリアを縮小"},magnifierZoom:{cn:"放大镜倍率",en:"Magnifier zoom",jp:"拡大倍率"},magnifierZoomTip:{cn:"设置放大镜倍率(2x-5x)",en:"Set magnifier zoom (2x-5x)",jp:"拡大倍率を設定 (2x-5x)"},magnifierAreaSize:{cn:"放大镜区域",en:"Magnifier area size",jp:"拡大エリアサイズ"},magnifierAreaSizeTip:{cn:"设置放大区域尺寸(20px-300px)",en:"Set focus area size (20px-300px)",jp:"フォーカス領域サイズを設定 (20px-300px)"}},Ul={cn:{},en:{},jp:{}};for(let e in qs)for(let t in qs[e])Ul[t][e]=qs[e][t];const mt=Z("");let lo=navigator.language.toLowerCase();switch(!0){case lo.startsWith("en"):mt.value="en";break;case lo.startsWith("zh"):mt.value="cn";break;case(lo.endsWith("jp")||lo.startsWith("ja")):mt.value="jp";break}const W=Y(()=>Ul[mt.value]),Fs="album_service",Ls={homePage:"https://github.com/hanFengSan/JM-EHunter",updateServer1:"https://jp.animesales.xyz/ehunter/update.json",updateServer2:"https://jp.animesales.xyz/ehunter/update.json"},wr={version:"2.0.0"},dg={cn:`
1.Change language/切换语言/言語を変更
![image-language](https://raw.githubusercontent.com/hanFengSan/JM-EHunter/master/github_image/language.jpg)

1.显示/隐藏顶栏和关闭JM-EHunter
![image-topbar_close](https://raw.githubusercontent.com/hanFengSan/JM-EHunter/master/github_image/topbar_close.jpg)

2.在页面右上角点击打开JM-EHunter
![image-open_ehunter](https://raw.githubusercontent.com/hanFengSan/JM-EHunter/master/github_image/open_ehunter.jpg)

3.\`滚动\`模式下, 支持\`A\`. \`D\`, \`Left(左)\`和\`Right(右)\`键翻页.

4.\`书页\`模式下, 点击屏幕下方翻下一页,点击屏幕上方翻到上一页。支持\`A\`. \`D\`, \`Left(左)\`, \`Right(右)\`键翻页. 你也可以用鼠标滚轮翻页.

5.\`分卷页数\`对性能要求较高,请不要设置过高,可能会导致卡顿.

6.有更多想要的功能, 可以反馈给我, 如果该功能可以有的话, 我有空的时候会支持的.

### iPhone和iPad使用指引
说明链接:[链接](https://github.com/FPV-G/JM-EHunter/blob/master/misc/iphone_ipad_cn.md)

### JM-EHunter-local
JM-EHunter-local是JM-EHunter的本地版本, 支持Windows和MacOS. [项目主页](https://github.com/FPV-G/JM-EHunter_local)

[Github下载](https://github.com/FPV-G/JM-EHunter_local/releases)

### 反馈和建议
* 可在[Github]({{HOME_PAGE}})上开issue给我.
* 可发邮件到我邮箱: [email protected]

### 关于
* 版本: {{VERSION}}
* 作者: Alex Chen (hanFeng)
* 项目开源地址: [Github]({{HOME_PAGE}})

如果你喜欢此插件的话,希望能在应用商店上给个好评 8-)
`,en:`
1.Change language/切换语言/言語を変更
![image-language](https://raw.githubusercontent.com/hanFengSan/JM-EHunter/master/github_image/language.jpg)

1.Show/hide top bar and close the JM-EHunter
![image-topbar_close](https://raw.githubusercontent.com/hanFengSan/JM-EHunter/master/github_image/topbar_close.jpg)

2.Click the button at the upper right corner of this page to open the JM-EHunter
![image-open_ehunter](https://raw.githubusercontent.com/hanFengSan/JM-EHunter/master/github_image/open_ehunter.jpg)

3.In \`Scroll\` mode, you can turn pages with \`A\`, \`D\`, \`Left\`, and \`Right\`.

4.In \`Book\` mode, click the lower part of the screen to go to the next page, and click the upper part to go to the previous page. You can also turn pages with \`A\`, \`D\`, \`Left\`, and \`Right\`, or use the mouse wheel.

5.\`Volume size\` has relatively high performance requirements. Avoid setting it too high, or the reader may lag.

6.If there are more features you would like, feel free to send feedback. If they are feasible, I will add them when time allows.

### iPhone and iPad Guide
Guide link: [Link](https://github.com/FPV-G/JM-EHunter/blob/master/misc/iphone_ipad_en.md)

### JM-EHunter-local
The JM-EHunter-local is local version of JM-EHunter, supporting Windows and MacOS. [Home Page](https://github.com/FPV-G/JM-EHunter_local)

[Github releases](https://github.com/FPV-G/JM-EHunter_local/releases)

### Feedback & Suggestions
* You can open an issue on [Github]({{HOME_PAGE}}).
* You can also email me at: [email protected]

### About
* Version: {{VERSION}}
* Author: Alex Chen (hanFeng)
* Home page of this project: [Github]({{HOME_PAGE}})

If you enjoy this extension, I would really appreciate a five-star rating in the store. 8-)
`,jp:`
1.Change language/切换语言/言語を変更
![image-language](https://raw.githubusercontent.com/hanFengSan/JM-EHunter/master/github_image/language.jpg)

1.トップバーを表示/非表示にしてJM-EHunterを閉じる
![image-topbar_close](https://raw.githubusercontent.com/hanFengSan/JM-EHunter/master/github_image/topbar_close.jpg)

2.このページの右上隅にあるボタンをクリックしてJM-EHunterを開きます
![image-open_ehunter](https://raw.githubusercontent.com/hanFengSan/JM-EHunter/master/github_image/open_ehunter.jpg)

3.\`スクロール\`モードでは、\`A\`、\`D\`、\`Left\`、\`Right\`キーでページをめくれます。

4.\`ブック\`モードでは、画面下部をクリックすると次のページ、画面上部をクリックすると前のページに移動します。\`A\`、\`D\`、\`Left\`、\`Right\`キー、またはマウスホイールでもページをめくれます。

5.\`分巻ページ数\`はパフォーマンス負荷が高いため、上げすぎると動作が重くなる場合があります。

6.追加してほしい機能があれば、ぜひフィードバックしてください。実現可能であれば、時間のあるときに対応します。

### iPhone と iPad の利用ガイド
案内リンク: [Link](https://github.com/FPV-G/JM-EHunter/blob/master/misc/iphone_ipad_jp.md)

### JM-EHunter-local
JM-EHunter-localはJM-EHunterのローカル版で、WindowsとMacOSをサポートしています。[Home Page](https://github.com/FPV-G/JM-EHunter_local)

[Github releases](https://github.com/FPV-G/JM-EHunter_local/releases)

### フィードバックと提案
* [Github]({{HOME_PAGE}}) で issue を作成できます。
* メール: [email protected]

### について
* バージョン: {{VERSION}}
* 著者: Alex Chen (hanFeng)
* このプロジェクトのホームページ: [Github]({{HOME_PAGE}})

この拡張機能を気に入っていただけたら、ストアで5つ星評価をいただけるとうれしいです。 8-)
`};function hg(e){return e==="cn"||e==="jp"||e==="en"?e:"en"}function pg(e,t){return e.replace(/\{\{([A-Z_]+)\}\}/g,(n,r)=>{const o=t[r];return typeof o=="string"?o:""})}function gg(e,t){const n=hg(e);return pg(dg[n],{HOME_PAGE:t,VERSION:wr.version})}const mg={cn:`
### v3.1.0 说明
* 新增放大镜功能(滚动模式:鼠标左键点击图片打开,书页模式:屏幕中间区域点击图片打开)
* 支持快捷键自定义(入口:更多设置)
* 修复”快捷设置“中的拖拽功能

### v3.0.0 说明
* 支持图片打包下载(触发入口:页面右上角的“更多”按钮)
* 支持iPhone使用,优化移动端使用体验
* 支持”快速预览“(入口:缩略图栏底部的悬浮按钮、页面右上角的“更多”按钮)
* 缩略图栏可拖拽改变位置(拖拽顶部的EHUNTER标识)
* 缩略图栏可改变宽度或高度
* 图片加载失败时,支持自动换源重试

### iPhone / iPad 支持
* 目前在 iOS 15/iPadOS 15 上可运行油猴脚本/userscript,因此 JM-EHunter 也可在 iPhone / iPad 使用
* 使用指南: [链接](https://github.com/FPV-G/JM-EHunter/blob/master/misc/iphone_ipad_cn.md)
`,en:`
### v3.1.0 Notes
* Added a magnifier feature (Scroll Mode: left-click an image to open; Book Mode: click an image in the center area of the screen to open)
* Added customizable keyboard shortcuts (entry: More Settings)
* Fixed drag behavior in "Quick Settings"

### v3.0.0 Notes
* Added image bundle download (entry: the "More" button in the top-right corner)
* Added iPhone support with improved mobile usability
* Added "Quick Preview" (entry: floating button at the bottom of the thumbnail bar, and the "More" button in the top-right corner)
* Thumbnail bar position can now be changed by drag-and-drop (drag the EHUNTER header)
* Thumbnail bar width/height is now resizable
* Automatically retries with an alternative source when image loading fails

### iPhone / iPad Support
* Userscripts can run on iOS 15 / iPadOS 15, so JM-EHunter is now available on iPhone and iPad
* Guide: [Link](https://github.com/FPV-G/JM-EHunter/blob/master/misc/iphone_ipad_en.md)
`,jp:`
### v3.1.0 リリースノート
* 拡大鏡機能を追加(スクロールモード: 画像を左クリックで起動、ブックモード: 画面中央エリアの画像をクリックで起動)
* ショートカットキーのカスタマイズに対応(入口: 「詳細設定」)
* 「クイック設定」のドラッグ機能を修正

### v3.0.0 リリースノート
* 画像の一括ダウンロードに対応(入口: 右上の「More」ボタン)
* iPhone での利用に対応し、モバイルでの操作性を改善
* 「クイックプレビュー」に対応(入口: サムネイルバー下部のフローティングボタン、または右上の「More」ボタン)
* サムネイルバーの位置をドラッグで変更可能(EHUNTER ヘッダーをドラッグ)
* サムネイルバーの幅・高さを調整可能
* 画像の読み込みに失敗した場合、別ソースで自動再試行

### iPhone / iPad 対応
* iOS 15 / iPadOS 15 では userscript が動作するため、JM-EHunter を iPhone / iPad でも利用できます
* ガイド: [リンク](https://github.com/FPV-G/JM-EHunter/blob/master/misc/iphone_ipad_jp.md)
`};function vg(e){return e==="cn"||e==="jp"||e==="en"?e:"en"}function bg(e){const t=vg(e);return mg[t]}if(typeof Cn=="undefined")var Cn={extension:null};const Zt={storage:{get sync(){return Cn&&Cn.storage?Cn.storage.sync.QUOTA_BYTES?Cn.storage.sync:Cn.storage.local:window.localStorage},local:window.localStorage},storageGet(e,t=null){try{if(typeof GM_getValue=="function")return GM_getValue(e,t)}catch(n){}try{let n=window.localStorage.getItem(e);return n===null?t:n}catch(n){return t}},storageSet(e,t){try{if(typeof GM_setValue=="function")return GM_setValue(e,t),!0}catch(n){}try{let n=t;return typeof t!="string"&&(n=JSON.stringify(t)),window.localStorage.setItem(e,n),!0}catch(n){return!1}},storageRemove(e){try{if(typeof GM_deleteValue=="function")return GM_deleteValue(e),!0}catch(t){}try{return window.localStorage.removeItem(e),!0}catch(t){return!1}},storageClear(){try{if(typeof GM_listValues=="function"&&typeof GM_deleteValue=="function"){const e=GM_listValues();Array.isArray(e)&&e.forEach(t=>{try{GM_deleteValue(t)}catch(n){}})}}catch(e){}try{return window.localStorage.clear(),!0}catch(e){return!1}},getExtension(){return Cn.extension},fetch(e,t){return typeof GM_info!="undefined"&&GM_info.version?new Promise((n,r)=>{GM_xmlhttpRequest({method:t.method,url:e,onload:o=>{let s=o.responseText;o.text=function(){return Ce(this,null,function*(){return s})},n(o)},onerror:o=>{r(`GM_xhr error, ${o.status}`)}})}):window.fetch(e,t)}};class Vn{constructor(t,n=!1,r=!0){re(this,"url");re(this,"method","GET");re(this,"credentials","include");re(this,"retryTimes",3);re(this,"timeoutTime",15);re(this,"curRetryTimes",0);re(this,"retryInterval",3);re(this,"enabledLog",!0);re(this,"fetchSetting",null);re(this,"noCache",!1);re(this,"rejectError",!0);this.url=t,this.noCache=n,this.rejectError=r}setMethod(t){return this.method=t,this}setCredentials(t){return this.credentials=t,this}setFetchSetting(t){return this.fetchSetting=t,this}setRetryTimes(t){this.retryTimes=t}setRetryInterval(t){this.retryInterval=t}setTimeOutTime(t){this.timeoutTime=t}request(){return new Promise((t,n)=>{this._request(r=>{r.text().then(o=>t(o))},r=>{this.rejectError?n(r):console.error(r)})})}printErrorLog(t){console.error(`TextReq: request error in ${this.url}, retry:(${this.curRetryTimes}/${this.retryTimes}), error: ${t}`)}_request(t,n){this.curRetryTimes++;let r=this.url.includes("http")?this.url:`${window.location.protocol}//${window.location.host}${this.url}`;this.noCache&&(r=`${r}?_t=${new Date().getTime()}`);let o=new Promise((i,a)=>{setTimeout(a,this.timeoutTime*1e3*this.curRetryTimes,"request timed out")}),s=Zt.fetch(r,this.fetchSetting?this.fetchSetting:{method:this.method,credentials:this.credentials});Promise.race([o,s]).then(i=>{if(i.status===200)t(i);else throw new Error(`${r}: ${i.status}`)}).catch(i=>{this.printErrorLog(i),this.curRetryTimes<this.retryTimes?setTimeout(()=>{this._request(t,n)},this.retryInterval*1e3):n(i)})}}function yg(){return document.querySelector(".ehunter-container")}let Wl=0;function Gl(){let e=yg();e&&(B.setViewportWidth(e.offsetWidth),B.setViewportHeight(e.offsetHeight))}function wg(){Gl(),window.addEventListener("resize",()=>{window.clearTimeout(Wl),Wl=window.setTimeout(()=>{Gl()},50)})}function Sg(e){const t="keyboard",n=typeof e.key=="string"?e.key:"";if(e.metaKey||e.ctrlKey&&n!=="Control")return;const r=e.target;if(r){const a=(r.tagName||"").toLowerCase();if(a==="input"||a==="textarea"||a==="select"||r.isContentEditable)return}const o=n.length===1?n.toLowerCase():n,i=kg()[o];if(!(!i||i.length===0))for(const a of i)switch(a){case"goPrev":if(d.readingMode==0)B.setCurViewIndex(d.curViewIndex-1,t);else if(d.readingMode==1){const c=d.IsReverseBookWheeFliplDirection;d.physicalFlipDirection=c?0:1;const u=d.pagesPerScreen,l=d.bookDirection===0?u:-u;B.setCurViewIndex(d.curViewIndex+l,t)}break;case"goNext":if(d.readingMode==0)B.setCurViewIndex(d.curViewIndex+1,t);else if(d.readingMode==1&&d.curViewIndex+d.pagesPerScreen<d.pageCount){const c=d.IsReverseBookWheeFliplDirection;d.physicalFlipDirection=c?1:0;const u=d.pagesPerScreen,l=d.bookDirection===0?-u:u;B.setCurViewIndex(d.curViewIndex+l,t)}break;case"toggleMoreSettings":B.toggleShowMoreSettingsDialog();break;case"toggleTopBar":B.toggleShowTopBar();break;case"toggleThumbView":d.readingMode==0?B.toggleShowThumbView():B.toggleShowBookThumbView();break;case"toggleQuickPreview":d.showThumbExpandDialog?B.closeThumbExpandDialog():B.openThumbExpandDialog();break;case"increaseWidthScale":B.setWidthScale(Math.min(100,d.widthScale+5));break;case"decreaseWidthScale":B.setWidthScale(Math.max(30,d.widthScale-5));break;case"togglePagination":d.readingMode==1&&B.toggleShowBookPagination();break;case"toggleAutoFlip":B.toggleIsAutoFlip();break;case"toggleOddEven":B.toggleIsChangeOddEven();break}}function _g(e){const t=e.trim();return t.length===1?t.toLowerCase():t}function kg(){const e={},t=d.shortcutBindings;for(const n of Object.keys(t)){const r=t[n].split(",").map(o=>_g(o)).filter(o=>o.length>0);for(const o of r)e[o]||(e[o]=[]),e[o].push(n)}return e}function xg(){document.addEventListener("keydown",Sg)}let Os=0;function Cg(){if(d.curViewIndex<d.pageCount-1){let e=d.readingMode==1?d.pagesPerScreen:1;B.setCurViewIndex(d.curViewIndex+e,"autoflip")}}function uo(){Os&&window.clearTimeout(Os),d.readingMode==1&&d.isAutoFlip&&d.autoFlipFrequency>0&&(Os=window.setTimeout(Cg,d.autoFlipFrequency*1e3))}let $n=0,fo=0;function Kl(e){if(typeof e.deltaY=="undefined"&&(e.deltaY=e.wheelDeltaY),e.metaKey||e.ctrlKey||e.deltaY===0||($n+=e.deltaY,fo>0&&window.clearTimeout(fo),fo=window.setTimeout(()=>{$n=0},100),Math.abs($n)<d.wheelSensitivity))return;let t=!1;($n>0&&!d.IsReverseBookWheeFliplDirection||$n<0&&d.IsReverseBookWheeFliplDirection)&&(t=!0),t?d.physicalFlipDirection=d.bookDirection===0?0:1:d.physicalFlipDirection=d.bookDirection===0?1:0,t&&d.curViewIndex+d.pagesPerScreen<d.pageCount&&B.setCurViewIndex(d.curViewIndex+d.pagesPerScreen,"wheel"),t||B.setCurViewIndex(d.curViewIndex-d.pagesPerScreen,"wheel"),$n=0,window.clearTimeout(fo)}function Ns(){if(!d.showInstructionDialog&&!d.hasShownWelcomeInstruction){let e=navigator.language.toLowerCase();e.startsWith("zh")?B.setLang("cn"):e.startsWith("ja")||e.includes("jp")?B.setLang("jp"):B.setLang("en"),B.markWelcomeInstructionShown(),Jl(!0);return}}function Jl(e=!1){B.openInstructionDialog({title:W.value.instructionsAndAbouts,mdText:gg(mt.value,Ls.homePage),isCompulsive:e})}function Tg(e){if(!e||typeof e!="object")return null;const t=mt.value==="cn"||mt.value==="jp"?mt.value:"en",n=e[t];if(!n||typeof n!="object")return null;const r=Array.isArray(n.operations)?n.operations.filter(o=>o&&typeof o.name=="string"&&typeof o.url=="string").map(o=>({name:o.name,url:o.url})):[];return{title:typeof n.title=="string"?n.title:"",version:typeof n.version=="string"?n.version:"",text:typeof n.text=="string"?n.text:"",operations:r,time:Number(n.time)||0,duration:Number(n.duration)||0}}function Eg(){return Ce(this,null,function*(){const e=[Ls.updateServer1,Ls.updateServer2].filter(t=>typeof t=="string"&&t.length>0).map(t=>new Vn(t,!0,!0).setCredentials("omit").request());if(e.length===0)return null;try{const t=yield Promise.race(e),n=JSON.parse(t);return Tg(n)}catch(t){return null}})}function Ig(){const e=wr.version;d.lastSeenVersionNotice!==e&&B.openInstructionDialog({title:`${W.value.versionUpdate} v${e}`,mdText:bg(mt.value),isCompulsive:!0,operations:[{name:W.value.confirm,btnType:"plain",isCloseModal:!0,onClick:()=>B.markVersionNoticeSeen(e)}]})}function Ag(){return Ce(this,null,function*(){const e=yield Eg();if(!e)return;const t=wr.version,n=Date.now(),r=e.version!==t,o=n>e.time,s=n-d.lastRemoteUpdateNoticeAt>e.duration;if(!r||!o||!s)return;B.markRemoteUpdateNoticeShown(n);const i=[{name:W.value.later,btnType:"plain",isCloseModal:!0},...e.operations.map(a=>({name:a.name,btnType:"plain",isCloseModal:!0,onClick:()=>window.open(a.url,"_blank")}))];B.openInstructionDialog({title:e.title,mdText:e.text,isCompulsive:!0,operations:i})})}let Ql=!1;function Dg(){Ql||(Ql=!0,window.setTimeout(()=>Ce(null,null,function*(){yield Ag(),Ig()}),5e3))}const ho="ehunter:reader:prefs:mode-layout",Zl=1,Mg=60,Pg=520,Rg=60,qg=420,Bs=150,Yl=160,Xl=.35,Fg=.78,eu=10,Lg=10,Og=10,Ng=2,tu=()=>new Date().toISOString();function Yt(e,t){return Number.isFinite(t)?e==="bottom"?Math.min(qg,Math.max(Rg,Math.round(t))):Math.min(Pg,Math.max(Mg,Math.round(t))):e==="bottom"?200:150}function po(e){return e==="left"||e==="right"||e==="bottom"?e:"left"}function Bg(e,t,n){return e==="bottom"?Math.max(Xl,n/Yl):Math.max(Xl,t/Bs)}function zg(e){return e==="bottom"?Math.round(Bs*Fg):Bs}function Hg(e){const t=Math.floor(e*.12);return Math.max(10,Math.min(18,t))}function Vg(e){const t=e*9e-4;return Math.max(.02,Math.min(.08,t))}function $g(e){const t=Math.floor(e*.065);return Math.max(8,Math.min(13,t))}function jg(e){const t=e*.0018;return Math.max(.02,Math.min(.2,t))}function zs(e){return{thumbSlot:"left",thumbSizePx:Yt("left",150),updatedAt:tu()}}function nu(){return{schemaVersion:Zl,updatedAt:tu(),layouts:{scroll:zs(),book:zs()}}}function ru(){return 1.45}function ou(e){return{pageCount:Math.max(0,Math.floor(e.pageCount||0)),pagesPerScreen:Math.max(1,Math.floor(e.pagesPerScreen||1)),isChangeOddEven:!!e.isChangeOddEven}}function Ug(e){const t=ou(e),n=[];t.isChangeOddEven||n.push(-1);for(let r=0;r<t.pageCount;r++)n.push(r);return n.push(t.pageCount),n}function Hs(e){const t=ou(e),n=Ug(t),r=[];for(let o=0;o<n.length;o+=t.pagesPerScreen)r.push(n.slice(o,o+t.pagesPerScreen));return r.length===0&&r.push([t.pageCount]),r}function Vs(e,t){const n=Math.floor(t),r=e.findIndex(o=>o.includes(n));return r>=0?r:0}function su(e,t){if(!e||e.length===0)return t;const n=e.filter(r=>r>=0);return n.length===0?t:n[0]}function Wg(e,t,n){const r=Hs(e),o=Vs(r,t),s=Math.max(0,Math.min(r.length-1,o+n));if(s===o)return Math.max(0,Math.min(e.pageCount-1,t));const i=r[s];return su(i,t)}const go=200;function $s(e,t){const n=iu(t)-1;return e<0?0:e>n?n:e}function iu(e){const t=Math.max(1,e);return Math.max(1,Math.ceil(t/go))}function au(e){return e<=0?0:Math.floor(e/go)}function Gg(e,t){const n=$s(e,t),r=n*go,o=Math.min(t-1,r+go-1);return{segmentIndex:n,startIndex:Math.max(0,r),endIndex:Math.max(0,o)}}function Kg(e,t,n){if(t<=0)return[];const r=Gg(n,t),o=[];for(let s=r.startIndex;s<=r.endIndex;s++){const i=e[s]||null;o.push({pageNumber:s+1,thumbInfo:i,renderState:i?"ready":"error"})}return o}function Jg(){const e=globalThis.GM_getValue;if(typeof e=="function")return e(ho,null);try{return Zt.storageGet(ho,null)}catch(t){return null}}function Qg(e){const t=globalThis.GM_setValue;if(typeof t=="function"){t(ho,e);return}try{Zt.storageSet(ho,e)}catch(n){}}function cu(e,t){const n=zs();if(!t||typeof t!="object")return n;const r=po(t.thumbSlot),o=Yt(r,Number(t.thumbSizePx)),s=typeof t.updatedAt=="string"?t.updatedAt:n.updatedAt;return{thumbSlot:r,thumbSizePx:o,updatedAt:s}}function lu(e){const t=nu();if(!e)return t;if(typeof e=="string")try{e=JSON.parse(e)}catch(r){return t}if(typeof e!="object")return t;const n=e.layouts&&typeof e.layouts=="object"?e.layouts:{};return{schemaVersion:Number(e.schemaVersion)||Zl,updatedAt:typeof e.updatedAt=="string"?e.updatedAt:new Date().toISOString(),layouts:{scroll:cu("scroll",n.scroll),book:cu("book",n.book)}}}function Zg(){return lu(Jg())}function Yg(e){const t=lu(e);return Qg(t),t}var ot=Uint8Array,vt=Uint16Array,js=Int32Array,Us=new ot([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),Ws=new ot([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),uu=new ot([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),fu=function(e,t){for(var n=new vt(31),r=0;r<31;++r)n[r]=t+=1<<e[r-1];for(var o=new js(n[30]),r=1;r<30;++r)for(var s=n[r];s<n[r+1];++s)o[s]=s-n[r]<<5|r;return{b:n,r:o}},du=fu(Us,2),Xg=du.b,Gs=du.r;Xg[28]=258,Gs[258]=28;for(var em=fu(Ws,0),hu=em.r,Ks=new vt(32768),Ne=0;Ne<32768;++Ne){var un=(Ne&43690)>>1|(Ne&21845)<<1;un=(un&52428)>>2|(un&13107)<<2,un=(un&61680)>>4|(un&3855)<<4,Ks[Ne]=((un&65280)>>8|(un&255)<<8)>>1}for(var Sr=(function(e,t,n){for(var r=e.length,o=0,s=new vt(t);o<r;++o)e[o]&&++s[e[o]-1];var i=new vt(t);for(o=1;o<t;++o)i[o]=i[o-1]+s[o-1]<<1;var a;if(n){a=new vt(1<<t);var c=15-t;for(o=0;o<r;++o)if(e[o])for(var u=o<<4|e[o],l=t-e[o],f=i[e[o]-1]++<<l,p=f|(1<<l)-1;f<=p;++f)a[Ks[f]>>c]=u}else for(a=new vt(r),o=0;o<r;++o)e[o]&&(a[o]=Ks[i[e[o]-1]++]>>15-e[o]);return a}),Tn=new ot(288),Ne=0;Ne<144;++Ne)Tn[Ne]=8;for(var Ne=144;Ne<256;++Ne)Tn[Ne]=9;for(var Ne=256;Ne<280;++Ne)Tn[Ne]=7;for(var Ne=280;Ne<288;++Ne)Tn[Ne]=8;for(var mo=new ot(32),Ne=0;Ne<32;++Ne)mo[Ne]=5;var tm=Sr(Tn,9,0),nm=Sr(mo,5,0),pu=function(e){return(e+7)/8|0},gu=function(e,t,n){return(n==null||n>e.length)&&(n=e.length),new ot(e.subarray(t,n))},rm=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],vo=function(e,t,n){var r=new Error(t||rm[e]);if(r.code=e,Error.captureStackTrace&&Error.captureStackTrace(r,vo),!n)throw r;return r},Xt=function(e,t,n){n<<=t&7;var r=t/8|0;e[r]|=n,e[r+1]|=n>>8},_r=function(e,t,n){n<<=t&7;var r=t/8|0;e[r]|=n,e[r+1]|=n>>8,e[r+2]|=n>>16},Js=function(e,t){for(var n=[],r=0;r<e.length;++r)e[r]&&n.push({s:r,f:e[r]});var o=n.length,s=n.slice();if(!o)return{t:yu,l:0};if(o==1){var i=new ot(n[0].s+1);return i[n[0].s]=1,{t:i,l:1}}n.sort(function(T,x){return T.f-x.f}),n.push({s:-1,f:25001});var a=n[0],c=n[1],u=0,l=1,f=2;for(n[0]={s:-1,f:a.f+c.f,l:a,r:c};l!=o-1;)a=n[n[u].f<n[f].f?u++:f++],c=n[u!=l&&n[u].f<n[f].f?u++:f++],n[l++]={s:-1,f:a.f+c.f,l:a,r:c};for(var p=s[0].s,r=1;r<o;++r)s[r].s>p&&(p=s[r].s);var h=new vt(p+1),g=Qs(n[l-1],h,0);if(g>t){var r=0,b=0,S=g-t,v=1<<S;for(s.sort(function(x,F){return h[F.s]-h[x.s]||x.f-F.f});r<o;++r){var w=s[r].s;if(h[w]>t)b+=v-(1<<g-h[w]),h[w]=t;else break}for(b>>=S;b>0;){var y=s[r].s;h[y]<t?b-=1<<t-h[y]++-1:++r}for(;r>=0&&b;--r){var m=s[r].s;h[m]==t&&(--h[m],++b)}g=t}return{t:new ot(h),l:g}},Qs=function(e,t,n){return e.s==-1?Math.max(Qs(e.l,t,n+1),Qs(e.r,t,n+1)):t[e.s]=n},mu=function(e){for(var t=e.length;t&&!e[--t];);for(var n=new vt(++t),r=0,o=e[0],s=1,i=function(c){n[r++]=c},a=1;a<=t;++a)if(e[a]==o&&a!=t)++s;else{if(!o&&s>2){for(;s>138;s-=138)i(32754);s>2&&(i(s>10?s-11<<5|28690:s-3<<5|12305),s=0)}else if(s>3){for(i(o),--s;s>6;s-=6)i(8304);s>2&&(i(s-3<<5|8208),s=0)}for(;s--;)i(o);s=1,o=e[a]}return{c:n.subarray(0,r),n:t}},kr=function(e,t){for(var n=0,r=0;r<t.length;++r)n+=e[r]*t[r];return n},vu=function(e,t,n){var r=n.length,o=pu(t+2);e[o]=r&255,e[o+1]=r>>8,e[o+2]=e[o]^255,e[o+3]=e[o+1]^255;for(var s=0;s<r;++s)e[o+s+4]=n[s];return(o+4+r)*8},bu=function(e,t,n,r,o,s,i,a,c,u,l){Xt(t,l++,n),++o[256];for(var f=Js(o,15),p=f.t,h=f.l,g=Js(s,15),b=g.t,S=g.l,v=mu(p),w=v.c,y=v.n,m=mu(b),T=m.c,x=m.n,F=new vt(19),C=0;C<w.length;++C)++F[w[C]&31];for(var C=0;C<T.length;++C)++F[T[C]&31];for(var D=Js(F,7),M=D.t,O=D.l,L=19;L>4&&!M[uu[L-1]];--L);var ce=u+5<<3,z=kr(o,Tn)+kr(s,mo)+i,oe=kr(o,p)+kr(s,b)+i+14+3*L+kr(F,M)+2*F[16]+3*F[17]+7*F[18];if(c>=0&&ce<=z&&ce<=oe)return vu(t,l,e.subarray(c,c+u));var se,ie,le,Se;if(Xt(t,l,1+(oe<z)),l+=2,oe<z){se=Sr(p,h,0),ie=p,le=Sr(b,S,0),Se=b;var me=Sr(M,O,0);Xt(t,l,y-257),Xt(t,l+5,x-1),Xt(t,l+10,L-4),l+=14;for(var C=0;C<L;++C)Xt(t,l+3*C,M[uu[C]]);l+=3*L;for(var xe=[w,T],Te=0;Te<2;++Te)for(var Ae=xe[Te],C=0;C<Ae.length;++C){var Ue=Ae[C]&31;Xt(t,l,me[Ue]),l+=M[Ue],Ue>15&&(Xt(t,l,Ae[C]>>5&127),l+=Ae[C]>>12)}}else se=tm,ie=Tn,le=nm,Se=mo;for(var C=0;C<a;++C){var He=r[C];if(He>255){var Ue=He>>18&31;_r(t,l,se[Ue+257]),l+=ie[Ue+257],Ue>7&&(Xt(t,l,He>>23&31),l+=Us[Ue]);var Ke=He&31;_r(t,l,le[Ke]),l+=Se[Ke],Ke>3&&(_r(t,l,He>>5&8191),l+=Ws[Ke])}else _r(t,l,se[He]),l+=ie[He]}return _r(t,l,se[256]),l+ie[256]},om=new js([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),yu=new ot(0),sm=function(e,t,n,r,o,s){var i=s.z||e.length,a=new ot(r+i+5*(1+Math.ceil(i/7e3))+o),c=a.subarray(r,a.length-o),u=s.l,l=(s.r||0)&7;if(t){l&&(c[0]=s.r>>3);for(var f=om[t-1],p=f>>13,h=f&8191,g=(1<<n)-1,b=s.p||new vt(32768),S=s.h||new vt(g+1),v=Math.ceil(n/3),w=2*v,y=function(q){return(e[q]^e[q+1]<<v^e[q+2]<<w)&g},m=new js(25e3),T=new vt(288),x=new vt(32),F=0,C=0,D=s.i||0,M=0,O=s.w||0,L=0;D+2<i;++D){var ce=y(D),z=D&32767,oe=S[ce];if(b[z]=oe,S[ce]=z,O<=D){var se=i-D;if((F>7e3||M>24576)&&(se>423||!u)){l=bu(e,c,0,m,T,x,C,M,L,D-L,l),M=F=C=0,L=D;for(var ie=0;ie<286;++ie)T[ie]=0;for(var ie=0;ie<30;++ie)x[ie]=0}var le=2,Se=0,me=h,xe=z-oe&32767;if(se>2&&ce==y(D-xe))for(var Te=Math.min(p,se)-1,Ae=Math.min(32767,D),Ue=Math.min(258,se);xe<=Ae&&--me&&z!=oe;){if(e[D+le]==e[D+le-xe]){for(var He=0;He<Ue&&e[D+He]==e[D+He-xe];++He);if(He>le){if(le=He,Se=xe,He>Te)break;for(var Ke=Math.min(xe,He-2),ee=0,ie=0;ie<Ke;++ie){var P=D-xe+ie&32767,A=b[P],G=P-A&32767;G>ee&&(ee=G,oe=P)}}}z=oe,oe=b[z],xe+=z-oe&32767}if(Se){m[M++]=268435456|Gs[le]<<18|hu[Se];var ye=Gs[le]&31,_=hu[Se]&31;C+=Us[ye]+Ws[_],++T[257+ye],++x[_],O=D+le,++F}else m[M++]=e[D],++T[e[D]]}}for(D=Math.max(D,O);D<i;++D)m[M++]=e[D],++T[e[D]];l=bu(e,c,u,m,T,x,C,M,L,D-L,l),u||(s.r=l&7|c[l/8|0]<<3,l-=7,s.h=S,s.p=b,s.i=D,s.w=O)}else{for(var D=s.w||0;D<i+u;D+=65535){var E=D+65535;E>=i&&(c[l/8|0]=u,E=i),l=vu(c,l+1,e.subarray(D,E))}s.i=i}return gu(a,0,r+pu(l)+o)},im=(function(){for(var e=new Int32Array(256),t=0;t<256;++t){for(var n=t,r=9;--r;)n=(n&1&&-306674912)^n>>>1;e[t]=n}return e})(),am=function(){var e=-1;return{p:function(t){for(var n=e,r=0;r<t.length;++r)n=im[n&255^t[r]]^n>>>8;e=n},d:function(){return~e}}},cm=function(e,t,n,r,o){if(!o&&(o={l:1},t.dictionary)){var s=t.dictionary.subarray(-32768),i=new ot(s.length+e.length);i.set(s),i.set(e,s.length),e=i,o.w=s.length}return sm(e,t.level==null?6:t.level,t.mem==null?o.l?Math.ceil(Math.max(8,Math.min(13,Math.log(e.length)))*1.5):20:12+t.mem,n,r,o)},wu=function(e,t){var n={};for(var r in e)n[r]=e[r];for(var r in t)n[r]=t[r];return n},Ze=function(e,t,n){for(;n;++t)e[t]=n,n>>>=8};function lm(e,t){return cm(e,t||{},0,0)}var Su=function(e,t,n,r){for(var o in e){var s=e[o],i=t+o,a=r;Array.isArray(s)&&(a=wu(r,s[1]),s=s[0]),s instanceof ot?n[i]=[s,a]:(n[i+="/"]=[new ot(0),a],Su(s,i,n,r))}},_u=typeof TextEncoder!="undefined"&&new TextEncoder,um=typeof TextDecoder!="undefined"&&new TextDecoder,fm=0;try{um.decode(yu,{stream:!0}),fm=1}catch(e){}function Zs(e,t){var n;if(_u)return _u.encode(e);for(var r=e.length,o=new ot(e.length+(e.length>>1)),s=0,i=function(u){o[s++]=u},n=0;n<r;++n){if(s+5>o.length){var a=new ot(s+8+(r-n<<1));a.set(o),o=a}var c=e.charCodeAt(n);c<128||t?i(c):c<2048?(i(192|c>>6),i(128|c&63)):c>55295&&c<57344?(c=65536+(c&1047552)|e.charCodeAt(++n)&1023,i(240|c>>18),i(128|c>>12&63),i(128|c>>6&63),i(128|c&63)):(i(224|c>>12),i(128|c>>6&63),i(128|c&63))}return gu(o,0,s)}var Ys=function(e){var t=0;if(e)for(var n in e){var r=e[n].length;r>65535&&vo(9),t+=r+4}return t},ku=function(e,t,n,r,o,s,i,a){var c=r.length,u=n.extra,l=a&&a.length,f=Ys(u);Ze(e,t,i!=null?33639248:67324752),t+=4,i!=null&&(e[t++]=20,e[t++]=n.os),e[t]=20,t+=2,e[t++]=n.flag<<1|(s<0&&8),e[t++]=o&&8,e[t++]=n.compression&255,e[t++]=n.compression>>8;var p=new Date(n.mtime==null?Date.now():n.mtime),h=p.getFullYear()-1980;if((h<0||h>119)&&vo(10),Ze(e,t,h<<25|p.getMonth()+1<<21|p.getDate()<<16|p.getHours()<<11|p.getMinutes()<<5|p.getSeconds()>>1),t+=4,s!=-1&&(Ze(e,t,n.crc),Ze(e,t+4,s<0?-s-2:s),Ze(e,t+8,n.size)),Ze(e,t+12,c),Ze(e,t+14,f),t+=16,i!=null&&(Ze(e,t,l),Ze(e,t+6,n.attrs),Ze(e,t+10,i),t+=14),e.set(r,t),t+=c,f)for(var g in u){var b=u[g],S=b.length;Ze(e,t,+g),Ze(e,t+2,S),e.set(b,t+4),t+=4+S}return l&&(e.set(a,t),t+=l),t},dm=function(e,t,n,r,o){Ze(e,t,101010256),Ze(e,t+8,n),Ze(e,t+10,n),Ze(e,t+12,r),Ze(e,t+16,o)};function hm(e,t){t||(t={});var n={},r=[];Su(e,"",n,t);var o=0,s=0;for(var i in n){var a=n[i],c=a[0],u=a[1],l=u.level==0?0:8,f=Zs(i),p=f.length,h=u.comment,g=h&&Zs(h),b=g&&g.length,S=Ys(u.extra);p>65535&&vo(11);var v=l?lm(c,u):c,w=v.length,y=am();y.p(c),r.push(wu(u,{size:c.length,crc:y.d(),c:v,f,m:g,u:p!=i.length||g&&h.length!=b,o,compression:l})),o+=30+p+S+w,s+=76+2*(p+S)+(b||0)+w}for(var m=new ot(s+22),T=o,x=s-o,F=0;F<r.length;++F){var f=r[F];ku(m,f.o,f,f.f,f.u,f.c.length);var C=30+f.f.length+Ys(f.extra);m.set(f.c,f.o+C),ku(m,o,f,f.f,f.u,f.c.length,f.o,f.m),o+=16+C+(f.m?f.m.length:0)}return dm(m,o,r.length,x,T),m}var En=(e=>(e[e.SPIRIT=0]="SPIRIT",e[e.IMG=1]="IMG",e))(En||{}),Ye=(e=>(e[e.Default=0]="Default",e[e.Fast=1]="Fast",e[e.Origin=2]="Origin",e[e.ChangeSource=3]="ChangeSource",e))(Ye||{});const pm=[{mode:Ye.Default,attempts:3}],gm=[{mode:Ye.Default,attempts:2},{mode:Ye.ChangeSource,attempts:2},{mode:Ye.Origin,attempts:2}];function xu(e){return e.autoRetryByOtherSource&&e.supportChangeSource?gm:pm}function mm(e,t){const n=xu(t),r=n.findIndex(a=>a.mode===e);if(r<0)return[];const o=[],s=n[r],i=Math.max(s.attempts-1,0);for(let a=0;a<i;a++)o.push(s.mode);for(let a=r+1;a<n.length;a++){const c=n[a];for(let u=0;u<c.attempts;u++)o.push(c.mode)}return o}function Cu(e){const t=e.trim();if(!t)return"";if(t.startsWith("[")){const r=t.indexOf("]");return r>0?t.slice(1,r):t}const n=t.indexOf(":");return n>-1?t.slice(0,n):t}function vm(e){const t=Cu(e);return/^\d{1,3}(?:\.\d{1,3}){3}$/.test(t)}function Tu(e){const t=Cu(e);return t==="localhost"||vm(t)}function Eu(){return Tu(window.location.host||"")}const bm=200;function ym(e){return new Promise(t=>setTimeout(t,e))}function wm(e){return!Number.isFinite(e)||e<=0?bm:Math.floor(e)}function Sm(){return"2.0.0"}function en(e,t){const n=W.value;let r=typeof n[e]=="string"?n[e]:e;if(!t)return r;for(const o of Object.keys(t))r=r.replace(new RegExp(`{{${o}}}`,"g"),String(t[o]));return r}function _m(e){const t=e.replace(/[<>:"/\\|?*\u0000-\u001F]/g,"_").replace(/[.\s]+$/g,"").trim();return t.length>0?t:"gallery"}function km(e,t){const n={"image/jpeg":"jpg","image/jpg":"jpg","image/png":"png","image/webp":"webp","image/gif":"gif","image/bmp":"bmp","image/avif":"avif"};if(t&&n[t])return n[t];const r=e.match(/\.([a-zA-Z0-9]{2,5})(?:$|\?)/);return r&&r[1]?r[1].toLowerCase():"jpg"}function xm(){return Eu()}function Cm(e,t=3e4){return Ce(this,null,function*(){const n=globalThis.GM_xmlhttpRequest;if(typeof n!="function")throw new Error("GM_XHR_NOT_AVAILABLE");return yield new Promise((r,o)=>{n({method:"GET",url:e,responseType:"arraybuffer",timeout:t,onload:s=>{if(!s||s.status<200||s.status>=300||!s.response){o(new Error(`GM_XHR_HTTP_${(s==null?void 0:s.status)||"UNKNOWN"}`));return}r(new Blob([s.response]))},onerror:()=>o(new Error("GM_XHR_ERROR")),ontimeout:()=>o(new Error("GM_XHR_TIMEOUT")),onabort:()=>o(new Error("GM_XHR_ABORT"))})})})}function Tm(e,t,n,r){return Ce(this,null,function*(){const o=xu({autoRetryByOtherSource:r,supportChangeSource:e.isSupportImgChangeSource()});let s=null;for(const i of o)for(let a=1;a<=i.attempts;a++)try{const c=yield e.getImgSrc(t,i.mode);if(c instanceof Error)throw c;if(!c.src)throw new Error("empty_image_src");typeof c.src=="string"&&c.src.startsWith("//")&&(c.src=`${window.location.protocol}${c.src}`),console.log("[GalleryDownloadService] image load begin",{pageIndex:t,pageNumber:n,mode:i.mode,attempt:a,src:c.src});const u=Date.now(),l=yield Cm(c.src,3e4),f=Date.now()-u;return console.log("[GalleryDownloadService] image load done",{pageIndex:t,pageNumber:n,mode:i.mode,attempt:a,src:c.src,blobSize:l.size,blobType:l.type,elapsedMs:f}),{pageNumber:n,blob:l,extension:km(c.src,l.type)}}catch(c){const u=c instanceof Error?c.message:String(c);console.log("[GalleryDownloadService] image load failed",{pageIndex:t,pageNumber:n,mode:i.mode,attempt:a,reason:u}),s=c,a<i.attempts&&(yield ym(350))}throw s instanceof Error?s:new Error(String(s||"resolve_image_failed"))})}function Em(e,t){const n=URL.createObjectURL(t),r=globalThis.GM_download;if(console.log("[GalleryDownloadService] download trigger start",{fileName:e,size:t.size}),!xm()&&typeof r=="function")try{r({url:n,name:e,saveAs:!1,onload:()=>{console.log("[GalleryDownloadService] download trigger done (GM_download onload)",{fileName:e}),URL.revokeObjectURL(n)},onerror:()=>{console.log("[GalleryDownloadService] download trigger done (GM_download onerror)",{fileName:e}),URL.revokeObjectURL(n)},ontimeout:()=>{console.log("[GalleryDownloadService] download trigger done (GM_download ontimeout)",{fileName:e}),URL.revokeObjectURL(n)},onabort:()=>{console.log("[GalleryDownloadService] download trigger done (GM_download onabort)",{fileName:e}),URL.revokeObjectURL(n)}}),console.log("[GalleryDownloadService] download trigger done (GM_download submitted)",{fileName:e});return}catch(s){URL.revokeObjectURL(n)}const o=document.createElement("a");o.href=n,o.download=e,o.style.display="none",document.body.appendChild(o),o.click(),document.body.removeChild(o),console.log("[GalleryDownloadService] download trigger done (anchor click)",{fileName:e}),window.setTimeout(()=>URL.revokeObjectURL(n),500)}class Im{constructor(){re(this,"abortedTaskSet",new Set)}abort(t){this.abortedTaskSet.add(t)}assertNotAborted(t){if(this.abortedTaskSet.has(t))throw new Error("DOWNLOAD_ABORTED")}run(t){return Ce(this,null,function*(){const n=dn(Xe({},t),{chunkSize:wm(t.chunkSize)});this.abortedTaskSet.delete(n.taskId);const r=Math.max(0,n.pageCount),o=Math.max(1,Math.ceil((r||1)/n.chunkSize)),s=[],i=[],a=Math.max(4,String(r).length),c=_m(n.galleryTitle),u=new Date().toISOString();if(n.onStatus({phase:"queued",severity:"info",message:en("downloadQueued"),processedPages:0,totalPages:r,failedPages:0}),r<=0)return n.onStatus({phase:"failed",severity:"error",message:en("downloadNoPages"),processedPages:0,totalPages:r,failedPages:0}),{status:"failed",totalPages:r,processedPages:0,failedPages:0,chunks:[],failures:[{pageNumber:0,reason:"no_pages"}]};let l=1,f=0,p=[],h=0;const g=S=>Ce(this,null,function*(){this.assertNotAborted(n.taskId);const v={introUrl:n.introUrl,galleryTitle:n.galleryTitle,totalPages:r,downloadTime:u,jmEHunterVersion:n.jmEHunterVersion||Sm(),totalChunks:o,chunkIndex:l},w={"metadata.json":Zs(`${JSON.stringify(v,null,2)}
`)},y=[...S].sort((C,D)=>C.pageNumber-D.pageNumber);for(const C of y)try{const M=`${String(C.pageNumber).padStart(a,"0")}.${C.extension}`;w[M]=new Uint8Array(yield C.blob.arrayBuffer())}catch(D){const M=D instanceof Error?D.message:String(D);s.push({pageNumber:C.pageNumber,reason:`ZIP_PREP_FAILED:${M}`}),p.push(C.pageNumber),h=Math.max(0,h-1)}finally{C.blob=new Blob}n.onStatus({phase:"compressing",severity:"info",message:en("downloadCompressing",{chunk:l,totalChunks:o}),processedPages:f,totalPages:r,failedPages:s.length}),console.log("[GalleryDownloadService] zip compress start",{chunkIndex:l,totalChunks:o,fileCount:y.length});const m=hm(w,{level:0}),T=new Uint8Array(m.length);T.set(m);const x=new Blob([T],{type:"application/zip"});console.log("[GalleryDownloadService] zip compress done",{chunkIndex:l,totalChunks:o,zipSize:x.size}),this.assertNotAborted(n.taskId);const F=o>1?`${c}_part-${String(l).padStart(2,"0")}-of-${String(o).padStart(2,"0")}.zip`:`${c}.zip`;Em(F,x),i.push({chunkIndex:l,totalChunks:o,zipFileName:F,successCount:h,failedCount:p.length,failedPageNumbers:[...p]}),l+=1,p=[],h=0});for(let S=1;S<=r;S+=n.chunkSize){this.assertNotAborted(n.taskId);const v=Math.min(r,S+n.chunkSize-1),w=[];for(let x=S;x<=v;x++)w.push(x);const y=[],m=[...w],T=()=>Ce(this,null,function*(){for(;m.length>0;){this.assertNotAborted(n.taskId);const x=m.shift();if(!x)return;n.onStatus({phase:"fetching",severity:"info",message:en("downloadFetching",{current:x,total:r}),processedPages:f,totalPages:r,failedPages:s.length});const F=x-1;try{const C=yield Tm(n.albumService,F,x,n.autoRetryByOtherSource);this.assertNotAborted(n.taskId),y.push(C),h+=1}catch(C){const D=C instanceof Error?C.message:String(C);s.push({pageNumber:x,reason:D}),p.push(x)}f+=1,n.onStatus({phase:"fetching",severity:"info",message:en("downloadFetching",{current:f,total:r}),processedPages:f,totalPages:r,failedPages:s.length})}});yield Promise.all([T(),T(),T()]);try{yield g(y)}catch(x){const F=x instanceof Error?x.message:String(x);s.push({pageNumber:S,reason:`CHUNK_FINALIZE_FAILED:${F}`}),n.onStatus({phase:"partial",severity:"warning",message:en("downloadChunkFailed",{chunk:l,reason:F}),processedPages:f,totalPages:r,failedPages:s.length}),l+=1,p=[],h=0}}this.assertNotAborted(n.taskId);const b=s.length===0?"completed":s.length===r?"failed":"partial";return n.onStatus({phase:b,severity:b==="completed"?"success":b==="partial"?"warning":"error",message:b==="completed"?en("downloadCompleted"):b==="partial"?en("downloadPartial",{failed:s.length}):en("downloadFailed"),processedPages:f,totalPages:r,failedPages:s.length}),{status:b,totalPages:r,processedPages:f,failedPages:s.length,chunks:i,failures:s}})}}function Am(e){return{title:e.title,mdText:e.mdText,isCompulsive:e.isCompulsive,operations:e.operations?[...e.operations]:[]}}let Iu=0;function Dm(e){Iu+=1;const t=Am(e);return dn(Xe({},t),{id:`dialog-${Date.now()}-${Iu}`})}function Au(){const e=d.instructionDialogStack,t=e.length>0?e[e.length-1]:null;if(!t){d.showInstructionDialog=!1,d.instructionDialogTitle="",d.instructionDialogMdText="",d.instructionDialogCompulsive=!1,d.instructionDialogOperations=[];return}d.showInstructionDialog=!0,d.instructionDialogTitle=t.title,d.instructionDialogMdText=t.mdText,d.instructionDialogCompulsive=t.isCompulsive!==!1,d.instructionDialogOperations=t.operations?[...t.operations]:[]}const bo="ehunter:reader:prefs:page-turn-animation",Du=1,Xs="horizontal-slide",yo="ehunter:reader:prefs:unified-settings",Mu=3;let St=0,xr=!1,jn=null,Un=nu(),Pu=null;const ei={},wo=[{id:"readingMode",i18nKey:"readingMode",modeScope:"both",fixed:!0},{id:"widthScale",i18nKey:"widthScale",modeScope:"scroll-only"},{id:"loadNum",i18nKey:"loadNum",modeScope:"both"},{id:"volumeSize",i18nKey:"volSize",modeScope:"scroll-only"},{id:"showThumbView",i18nKey:"thumbView",modeScope:"scroll-only"},{id:"scrollPageMargin",i18nKey:"pageMargin",modeScope:"scroll-only"},{id:"pagesPerScreen",i18nKey:"screenSize",modeScope:"book-only"},{id:"bookDirection",i18nKey:"bookDirection",modeScope:"book-only"},{id:"pageTurnAnimationMode",i18nKey:"pageTurnAnimation",modeScope:"book-only",fixed:!0},{id:"animationSpeed",i18nKey:"animationSpeed",modeScope:"book-only",fixed:!0},{id:"IsReverseBookWheeFliplDirection",i18nKey:"wheelDirection",modeScope:"book-only",fixed:!0},{id:"showBookPagination",i18nKey:"pagination",modeScope:"book-only"},{id:"isChangeOddEven",i18nKey:"oddEven",modeScope:"book-only"},{id:"isAutoFlip",i18nKey:"autoFlip",modeScope:"book-only"},{id:"autoFlipFrequency",i18nKey:"autoFlipFrequency",modeScope:"book-only"},{id:"showBookThumbView",i18nKey:"thumbView",modeScope:"book-only"},{id:"wheelSensitivity",i18nKey:"wheelSensitivity",modeScope:"book-only"},{id:"lang",i18nKey:"languageSetting",modeScope:"both"},{id:"autoRetryByOtherSource",i18nKey:"autoSourceRetry",modeScope:"both"}],Mm=[{id:"general",i18nKey:"settingsGeneral"},{id:"scroll",i18nKey:"settingsScrollMode"},{id:"book",i18nKey:"settingsBookMode"},{id:"quick",i18nKey:"settingsQuick"},{id:"shortcuts",i18nKey:"settingsShortcuts"},{id:"other",i18nKey:"settingsOther"}],Ru=[{id:"goPrev",labelI18nKey:"shortcutGoPrev",tipI18nKey:"shortcutGoPrevTip"},{id:"goNext",labelI18nKey:"shortcutGoNext",tipI18nKey:"shortcutGoNextTip"},{id:"toggleMoreSettings",labelI18nKey:"shortcutToggleMoreSettings",tipI18nKey:"shortcutToggleMoreSettingsTip"},{id:"toggleTopBar",labelI18nKey:"shortcutToggleTopBar",tipI18nKey:"shortcutToggleTopBarTip"},{id:"toggleThumbView",labelI18nKey:"shortcutToggleThumbView",tipI18nKey:"shortcutToggleThumbViewTip"},{id:"toggleQuickPreview",labelI18nKey:"shortcutToggleQuickPreview",tipI18nKey:"shortcutToggleQuickPreviewTip"},{id:"increaseWidthScale",labelI18nKey:"shortcutIncreaseWidthScale",tipI18nKey:"shortcutIncreaseWidthScaleTip"},{id:"decreaseWidthScale",labelI18nKey:"shortcutDecreaseWidthScale",tipI18nKey:"shortcutDecreaseWidthScaleTip"},{id:"togglePagination",labelI18nKey:"shortcutTogglePagination",tipI18nKey:"shortcutTogglePaginationTip"},{id:"toggleAutoFlip",labelI18nKey:"shortcutToggleAutoFlip",tipI18nKey:"shortcutToggleAutoFlipTip"},{id:"toggleOddEven",labelI18nKey:"shortcutToggleOddEven",tipI18nKey:"shortcutToggleOddEvenTip"}],Wn={goPrev:"ArrowLeft,ArrowUp,a",goNext:"ArrowRight,ArrowDown,d",toggleMoreSettings:"Shift",toggleTopBar:"q",toggleThumbView:"t",toggleQuickPreview:"f",increaseWidthScale:"]",decreaseWidthScale:"[",togglePagination:"",toggleAutoFlip:"",toggleOddEven:""},qu=[{key:"ArrowUp",label:"↑"},{key:"ArrowDown",label:"↓"},{key:"ArrowLeft",label:"←"},{key:"ArrowRight",label:"→"},{key:"Escape",label:"Esc"},{key:"Tab",label:"Tab"},{key:"CapsLock",label:"Caps"},{key:"Control",label:"Ctrl"},{key:"Shift",label:"Shift"},{key:"F1",label:"F1"},{key:"F2",label:"F2"},{key:"F3",label:"F3"},{key:"F4",label:"F4"},{key:"F5",label:"F5"},{key:"F6",label:"F6"},{key:"F7",label:"F7"},{key:"F8",label:"F8"},{key:"F9",label:"F9"},{key:"F10",label:"F10"},{key:"F11",label:"F11"},{key:"F12",label:"F12"},{key:"1",label:"1"},{key:"2",label:"2"},{key:"3",label:"3"},{key:"4",label:"4"},{key:"5",label:"5"},{key:"6",label:"6"},{key:"7",label:"7"},{key:"8",label:"8"},{key:"9",label:"9"},{key:"-",label:"-"},{key:"=",label:"="},{key:"[",label:"["},{key:"]",label:"]"},{key:"a",label:"A"},{key:"b",label:"B"},{key:"c",label:"C"},{key:"d",label:"D"},{key:"e",label:"E"},{key:"f",label:"F"},{key:"g",label:"G"},{key:"h",label:"H"},{key:"i",label:"I"},{key:"j",label:"J"},{key:"k",label:"K"},{key:"l",label:"L"},{key:"m",label:"M"},{key:"n",label:"N"},{key:"o",label:"O"},{key:"p",label:"P"},{key:"q",label:"Q"},{key:"r",label:"R"},{key:"s",label:"S"},{key:"t",label:"T"},{key:"u",label:"U"},{key:"v",label:"V"},{key:"w",label:"W"},{key:"x",label:"X"},{key:"y",label:"Y"},{key:"z",label:"Z"}],So=[{id:"readingMode",control:"drop",labelI18nKey:"readingMode",tipI18nKey:"readingModeTip",modeScope:"both",showInTopBar:!0,showInDialog:!1,dropKey:"readingModeList"},{id:"lang",control:"drop",labelI18nKey:"languageSetting",tipI18nKey:"languageSettingTip",modeScope:"both",showInTopBar:!0,showInDialog:!0,dialogCategory:"general",dropKey:"langList",useAbbrName:!0},{id:"loadNum",control:"num",labelI18nKey:"loadNum",tipI18nKey:"loadNumTip",modeScope:"both",showInTopBar:!0,showInDialog:!0,dialogCategory:"general",numKey:"loadNum",min:1,max:100},{id:"downloadChunkSize",control:"num",labelI18nKey:"downloadChunkSize",tipI18nKey:"downloadChunkSizeTip",modeScope:"both",showInTopBar:!1,showInDialog:!0,dialogCategory:"general",numKey:"downloadChunkSize",min:1,max:1e3},{id:"autoRetryByOtherSource",control:"switch",labelI18nKey:"autoSourceRetry",tipI18nKey:"autoSourceRetryTip",modeScope:"both",showInTopBar:!0,showInDialog:!0,dialogCategory:"general"},{id:"magnifierZoom",control:"num",labelI18nKey:"magnifierZoom",tipI18nKey:"magnifierZoomTip",modeScope:"both",showInTopBar:!1,showInDialog:!0,dialogCategory:"general",numKey:"magnifierZoom",min:2,max:5},{id:"magnifierAreaSize",control:"num",labelI18nKey:"magnifierAreaSize",tipI18nKey:"magnifierAreaSizeTip",modeScope:"both",showInTopBar:!1,showInDialog:!0,dialogCategory:"general",numKey:"magnifierAreaSize",min:20,max:300},{id:"widthScale",control:"num",labelI18nKey:"widthScale",tipI18nKey:"widthScaleTip",modeScope:"scroll-only",showInTopBar:!0,showInDialog:!0,dialogCategory:"scroll",numKey:"widthScale",min:30,max:100,isFloat:!0},{id:"volumeSize",control:"num",labelI18nKey:"volSize",tipI18nKey:"volSizeTip",modeScope:"scroll-only",showInTopBar:!0,showInDialog:!0,dialogCategory:"scroll",numKey:"volumeSize",min:1,max:200},{id:"showThumbView",control:"switch",labelI18nKey:"thumbView",tipI18nKey:"thumbViewTip",modeScope:"scroll-only",showInTopBar:!0,showInDialog:!0,dialogCategory:"scroll",requireThumbSupportInTopBar:!0},{id:"scrollPageMargin",control:"num",labelI18nKey:"pageMargin",tipI18nKey:"pageMarginTip",modeScope:"scroll-only",showInTopBar:!0,showInDialog:!0,dialogCategory:"scroll",numKey:"scrollPageMargin",min:0,max:300},{id:"pagesPerScreen",control:"num",labelI18nKey:"screenSize",tipI18nKey:"screenSizeTip",modeScope:"book-only",showInTopBar:!0,showInDialog:!0,dialogCategory:"book",numKey:"pagesPerScreen",min:1,max:10},{id:"bookDirection",control:"drop",labelI18nKey:"bookDirection",tipI18nKey:"bookDirectionTip",modeScope:"book-only",showInTopBar:!0,showInDialog:!0,dialogCategory:"book",dropKey:"bookDirection",useAbbrName:!0},{id:"pageTurnAnimationMode",control:"drop",labelI18nKey:"pageTurnAnimation",tipI18nKey:"pageTurnAnimationTip",modeScope:"book-only",showInTopBar:!0,showInDialog:!0,dialogCategory:"book",dropKey:"pageTurnAnimation"},{id:"animationSpeed",control:"num",labelI18nKey:"animationSpeed",tipI18nKey:"animationSpeedTip",modeScope:"book-only",showInTopBar:!0,showInDialog:!0,dialogCategory:"book",numKey:"animationSpeed",min:.5,max:3,isFloat:!0},{id:"showBookPagination",control:"switch",labelI18nKey:"pagination",tipI18nKey:"paginationTip",modeScope:"book-only",showInTopBar:!0,showInDialog:!0,dialogCategory:"book"},{id:"isChangeOddEven",control:"switch",labelI18nKey:"oddEven",tipI18nKey:"oddEvenTip",modeScope:"book-only",showInTopBar:!0,showInDialog:!0,dialogCategory:"book"},{id:"isAutoFlip",control:"switch",labelI18nKey:"autoFlip",tipI18nKey:"autoFlipTip",modeScope:"book-only",showInTopBar:!0,showInDialog:!0,dialogCategory:"book"},{id:"autoFlipFrequency",control:"num",labelI18nKey:"autoFlipFrequency",tipI18nKey:"autoFlipFrequencyTip",modeScope:"book-only",showInTopBar:!0,showInDialog:!0,dialogCategory:"book",numKey:"autoFlipFrequency",min:1,max:240},{id:"showBookThumbView",control:"switch",labelI18nKey:"thumbView",tipI18nKey:"thumbViewTip",modeScope:"book-only",showInTopBar:!0,showInDialog:!0,dialogCategory:"book"},{id:"IsReverseBookWheeFliplDirection",control:"switch",labelI18nKey:"wheelDirection",tipI18nKey:"wheelDirectionTip",modeScope:"book-only",showInTopBar:!0,showInDialog:!0,dialogCategory:"book"},{id:"wheelSensitivity",control:"num",labelI18nKey:"wheelSensitivity",tipI18nKey:"wheelSensitivityTip",modeScope:"book-only",showInTopBar:!0,showInDialog:!0,dialogCategory:"book",numKey:"wheelSensitivity",min:1,max:250}],Fe=So.reduce((e,t)=>(e[t.id]=t,e),{}),Pm={general:So.filter(e=>e.showInDialog&&e.dialogCategory==="general").map(e=>e.id),scroll:So.filter(e=>e.showInDialog&&e.dialogCategory==="scroll").map(e=>e.id),book:So.filter(e=>e.showInDialog&&e.dialogCategory==="book").map(e=>e.id)},Ot="readingMode",_o=wo.map(e=>e.id),ti=["readingMode","widthScale","loadNum","volumeSize","showThumbView","pagesPerScreen","bookDirection","isChangeOddEven","showBookPagination","showBookThumbView","IsReverseBookWheeFliplDirection","lang"];function Fu(e){return typeof e!="string"?"":e.trim()}function Lu(e){const t=Xe({},Wn);if(!e||typeof e!="object")return t;for(const n of Ru){const r=n.id;if(!Object.prototype.hasOwnProperty.call(e,r))continue;const o=Fu(e[r]);typeof o=="string"&&(t[r]=o)}return t}function ni(e){return e==="page-flip"||e==="rotate"||e==="slide"||e==="horizontal-slide"||e==="none"?e:e==="realistic"?"page-flip":Xs}function Rm(){try{if(window.matchMedia&&window.matchMedia("(prefers-reduced-motion: reduce)").matches)return"none"}catch(e){}return Xs}function qm(){const e=globalThis.GM_getValue;return typeof e=="function"?e(bo,null):null}function Fm(e){const t=globalThis.GM_setValue;return typeof t=="function"?(t(bo,e),!0):!1}function Lm(){try{return Zt.storageGet(bo,null)}catch(e){return null}}function Om(e){try{return Zt.storageSet(bo,e)}catch(t){return!1}}function Ou(e){if(!e)return null;if(typeof e=="string")try{e=JSON.parse(e)}catch(t){return null}return typeof e!="object"?null:{schemaVersion:Number(e.schemaVersion)||Du,updatedAt:typeof e.updatedAt=="string"?e.updatedAt:new Date().toISOString(),scope:"global",animationMode:ni(e.animationMode)}}function Nm(e){return{schemaVersion:Du,updatedAt:new Date().toISOString(),scope:"global",animationMode:e}}function Bm(e){const t=Nm(e);Fm(t)||Om(t)}function zm(){const e=Ou(qm());if(e)return e.animationMode;const t=Ou(Lm());return t?t.animationMode:Rm()}function Hm(){const e=globalThis.GM_getValue;if(typeof e=="function")return e(yo,null);try{return Zt.storageGet(yo,null)}catch(t){return null}}function Vm(e){const t=globalThis.GM_setValue;if(typeof t=="function"){t(yo,e);return}try{Zt.storageSet(yo,e)}catch(n){}}function Nu(e,t){const n=new Set(wo.map(c=>c.id)),r=Array.isArray(t)?t:_o,o=Array.isArray(e)?e:ti,s=[];for(const c of r)typeof c=="string"&&n.has(c)&&!s.includes(c)&&s.push(c);for(const c of _o)s.includes(c)||s.push(c);const i=[];for(const c of o)typeof c=="string"&&n.has(c)&&!i.includes(c)&&i.push(c);i.includes(Ot)||i.unshift(Ot);const a=s.filter(c=>c!==Ot);return{selected:i,order:[Ot,...a]}}function $m(e){if(!e)return null;if(typeof e=="string")try{e=JSON.parse(e)}catch(o){return null}if(typeof e!="object")return null;const t=Nu(e.quickSelection,e.quickOrder),n=Number(e.schemaVersion)||Mu,r=Lu(e.shortcuts);return n<2&&(!r.toggleQuickPreview||!r.toggleQuickPreview.trim())&&(r.toggleQuickPreview=Wn.toggleQuickPreview),n<3&&((!r.toggleTopBar||r.toggleTopBar.trim()===""||r.toggleTopBar==="Escape")&&(r.toggleTopBar=Wn.toggleTopBar),(!r.toggleThumbView||r.toggleThumbView.trim()===""||r.toggleThumbView==="~")&&(r.toggleThumbView=Wn.toggleThumbView)),{schemaVersion:n,updatedAt:typeof e.updatedAt=="string"?e.updatedAt:new Date().toISOString(),settings:typeof e.settings=="object"&&e.settings?e.settings:{},quickSelection:t.selected,quickOrder:t.order,shortcuts:r}}function ke(){const e={schemaVersion:Mu,updatedAt:new Date().toISOString(),settings:{readingMode:d.readingMode,widthScale:d.widthScale,loadNum:d.loadNum,downloadChunkSize:d.downloadChunkSize,volumeSize:d.volumeSize,showThumbView:d.showThumbView,scrollPageMargin:d.scrollPageMargin,pagesPerScreen:d.pagesPerScreen,bookDirection:d.bookDirection,pageTurnAnimationMode:d.pageTurnAnimationMode,showBookPagination:d.showBookPagination,isChangeOddEven:d.isChangeOddEven,isReverseFlip:d.isReverseFlip,isAutoFlip:d.isAutoFlip,autoFlipFrequency:d.autoFlipFrequency,showBookThumbView:d.showBookThumbView,IsReverseBookWheeFliplDirection:d.IsReverseBookWheeFliplDirection,wheelSensitivity:d.wheelSensitivity,magnifierZoom:d.magnifierZoom,magnifierAreaSize:d.magnifierAreaSize,lang:mt.value,autoRetryByOtherSource:d.autoRetryByOtherSource,hasShownWelcomeInstruction:d.hasShownWelcomeInstruction,hasShownBookInstruction:d.hasShownBookInstruction,lastSeenVersionNotice:d.lastSeenVersionNotice,lastRemoteUpdateNoticeAt:d.lastRemoteUpdateNoticeAt},quickSelection:[...d.quickSettingSelected],quickOrder:[...d.quickSettingOrder],shortcuts:Xe({},d.shortcutBindings)};Vm(e)}function jm(){const e=$m(Hm());if(!e){d.quickSettingSelected=[...ti],d.quickSettingOrder=[..._o];return}const t=e.settings||{},n=[["readingMode","readingMode"],["widthScale","widthScale"],["loadNum","loadNum"],["downloadChunkSize","downloadChunkSize"],["volumeSize","volumeSize"],["scrollPageMargin","scrollPageMargin"],["pagesPerScreen","pagesPerScreen"],["bookDirection","bookDirection"],["autoFlipFrequency","autoFlipFrequency"],["wheelSensitivity","wheelSensitivity"],["magnifierZoom","magnifierZoom"],["magnifierAreaSize","magnifierAreaSize"]];for(const[s,i]of n)typeof t[s]=="number"&&Number.isFinite(t[s])&&(d[i]=t[s]);const r=[["showThumbView","showThumbView"],["showBookPagination","showBookPagination"],["isChangeOddEven","isChangeOddEven"],["isReverseFlip","isReverseFlip"],["isAutoFlip","isAutoFlip"],["showBookThumbView","showBookThumbView"],["IsReverseBookWheeFliplDirection","IsReverseBookWheeFliplDirection"],["autoRetryByOtherSource","autoRetryByOtherSource"],["hasShownWelcomeInstruction","hasShownWelcomeInstruction"],["hasShownBookInstruction","hasShownBookInstruction"]];for(const[s,i]of r)typeof t[s]=="boolean"&&(d[i]=t[s]);d.pageTurnAnimationMode=ni(t.pageTurnAnimationMode),typeof t.lang=="string"&&["cn","en","jp"].includes(t.lang)&&(mt.value=t.lang),typeof t.hasShownWelcomeInstruction=="boolean"?d.hasShownWelcomeInstruction=t.hasShownWelcomeInstruction:d.hasShownWelcomeInstruction=!1,typeof t.hasShownBookInstruction=="boolean"?d.hasShownBookInstruction=t.hasShownBookInstruction:d.hasShownBookInstruction=!1,typeof t.lastSeenVersionNotice=="string"?d.lastSeenVersionNotice=t.lastSeenVersionNotice:d.lastSeenVersionNotice="",typeof t.lastRemoteUpdateNoticeAt=="number"&&Number.isFinite(t.lastRemoteUpdateNoticeAt)?d.lastRemoteUpdateNoticeAt=t.lastRemoteUpdateNoticeAt:d.lastRemoteUpdateNoticeAt=0;const o=Nu(e.quickSelection,e.quickOrder);d.quickSettingSelected=o.selected,d.quickSettingOrder=o.order,d.shortcutBindings=Lu(e.shortcuts),ke()}function Bu(e){return e===0?"scroll":"book"}function Cr(e){d.thumbItemWidth=Math.max(60,Math.round(e)),d.thumbImgWidth=Math.max(40,Math.round(d.thumbItemWidth*(100/150))),d.thumbItemHeight=Math.max(64,Math.round(d.thumbItemWidth*(160/150)))}function zu(){const e=Bu(d.readingMode),t=Un.layouts[e],n=po(t.thumbSlot);d.thumbDockSlot=n;const r=Yt(n,t.thumbSizePx);d.thumbViewWidth=r,d.thumbViewHeight=Yt("bottom",t.thumbSizePx),Cr(r)}function Hu(){const e=Bu(d.readingMode),t=po(d.thumbDockSlot),n=t==="bottom"?d.thumbViewHeight:d.thumbViewWidth;Un.layouts[e]={thumbSlot:t,thumbSizePx:Yt(t,n),updatedAt:new Date().toISOString()},Un.updatedAt=new Date().toISOString(),Un=Yg(Un)}const Um=Y(()=>{const e=new Set(d.quickSettingSelected);return d.quickSettingOrder.filter(t=>{const n=wo.find(r=>r.id===t);return!n||!e.has(t)&&!n.fixed?!1:n.modeScope==="both"?!0:n.modeScope==="scroll-only"?d.readingMode===0:d.readingMode===1})});function Wm(){const t=(typeof window!="undefined"?window.innerWidth:1024)<767;return{showThumbView:!t,showBookThumbView:!t,pagesPerScreen:t?1:2,showBookPagination:!t}}const ko=Wm(),d=Br({viewportWidth:0,viewportHeight:0,isSupportThumbView:!0,showTopBar:!1,showMoreSettings:!1,showMoreSettingsDialog:!1,showThumbExpandDialog:!1,showDownloadConfirmDialog:!1,showInstructionDialog:!1,instructionDialogTitle:"",instructionDialogMdText:"",instructionDialogCompulsive:!1,instructionDialogOperations:[],instructionDialogStack:[],activeSettingsCategory:"general",topBarHeight:40,readingMode:0,widthScale:80,loadNum:3,downloadChunkSize:200,volumeSize:100,showThumbView:ko.showThumbView,bookDirection:0,showBookPagination:ko.showBookPagination,isChangeOddEven:!1,isReverseFlip:!1,isAutoFlip:!1,autoFlipFrequency:10,showBookThumbView:ko.showBookThumbView,IsReverseBookWheeFliplDirection:!1,wheelSensitivity:100,scrollPageMargin:70,autoRetryByOtherSource:!0,magnifierZoom:3,magnifierAreaSize:80,hasShownWelcomeInstruction:!1,hasShownBookInstruction:!1,lastSeenVersionNotice:"",lastRemoteUpdateNoticeAt:0,quickSettingSelected:[...ti],quickSettingOrder:[..._o],shortcutBindings:Xe({},Wn),isFactoryResetDialogVisible:!1,factoryResetStatus:"idle",factoryResetErrorMessage:"",downloadNotifications:[],downloadTaskMap:{},thumbDockSlot:"left",thumbViewWidth:150,thumbViewHeight:200,thumbItemWidth:150,thumbItemHeight:160,thumbImgWidth:100,thumbExpandSegmentIndex:0,pagesPerScreen:ko.pagesPerScreen,flipDirection:0,physicalFlipDirection:0,pageTurnAnimationMode:Xs,animationSpeed:1,thumbInfos:[],imgPageInfos:[],pageCount:0,curViewIndex:0,curViewIndexUpdater:"",albumTitle:""}),xo=Y(()=>Math.ceil((d.curViewIndex+1)/d.volumeSize)),_t=Y(()=>(xo.value-1)*d.volumeSize),Vu=Y(()=>d.curViewIndex-_t.value),Tr=Y(()=>Math.ceil(d.pageCount/d.volumeSize)),Gm=Y(()=>{let e=[];const t=_t.value+d.volumeSize;for(let n=_t.value;n<t&&n<d.pageCount;n++)e.push(n);return e}),Km=Y(()=>{let e=[];if(xo.value>=Tr.value)return e;let t=d.curViewIndex+d.loadNum-(_t.value+d.volumeSize);if(t<=0)return e;for(let n=0;n<t;n++){let r=_t.value+d.volumeSize+n;r<=d.pageCount-1&&e.push(r)}return e}),ri=Y(()=>(d.readingMode==0&&d.showThumbView||d.readingMode==1&&d.showBookThumbView)&&d.thumbDockSlot!=="bottom"?d.viewportWidth-d.thumbViewWidth:d.viewportWidth),oi=Y(()=>{const e=d.readingMode==0&&d.showThumbView||d.readingMode==1&&d.showBookThumbView;let t=d.viewportHeight;return d.showTopBar&&(t-=d.topBarHeight),e&&d.thumbDockSlot==="bottom"&&(t-=d.thumbViewHeight),t}),Jm=Y(()=>oi.value/ri.value),si={readingModeList:[{i18nKey:"scrollMode",val:0},{i18nKey:"bookMode",val:1}],widthScale:{list:[40,50,55,60,65,70,75,80,85,90,95,100],suffix:"%"},loadNum:{list:[1,2,3,5,10,20,30,40,50,100],suffix:"P"},downloadChunkSize:{list:[50,100,150,200,300,500],suffix:"P"},volumeSize:{list:[10,20,30,50,100],suffix:"P"},pagesPerScreen:{list:[1,2,3,4,5],suffix:"P"},bookDirection:{list:[{i18nKey:"rtl",abbrI18nKey:"rtlAbbr",val:0},{i18nKey:"ltr",abbrI18nKey:"ltrAbbr",val:1}]},pageTurnAnimation:{list:[{i18nKey:"pageTurnAnimationHorizontalSlide",val:"horizontal-slide"},{i18nKey:"pageTurnAnimationPageFlip",val:"page-flip"},{i18nKey:"pageTurnAnimationRotate",val:"rotate"},{i18nKey:"pageTurnAnimationSlide",val:"slide"},{i18nKey:"pageTurnAnimationNone",val:"none"}]},animationSpeed:{list:[.5,.75,1,1.25,1.5,2],suffix:"x"},autoFlipFrequency:{list:[3,5,8,10,15,20,30,45,60],suffix:" sec"},wheelSensitivity:{list:[10,30,50,80,100,120,150,170,200,220,250]},magnifierZoom:{list:[2,3,4,5],suffix:"x"},magnifierAreaSize:{list:[50,80,120,150],suffix:"px"},scrollPageMargin:{list:[0,30,70,100,150],suffix:"px"},langList:[{name:"English",abbrName:"EN",val:"en"},{name:"简体中文",abbrName:"CN",val:"cn"},{name:"日本語",abbrName:"JP",val:"jp"}]},B={toggleShowMoreSettings:()=>{B.toggleShowMoreSettingsDialog()},toggleShowMoreSettingsDialog:()=>{d.showMoreSettingsDialog=!d.showMoreSettingsDialog,d.showMoreSettingsDialog&&(d.activeSettingsCategory="general")},openMoreSettingsDialog:()=>{d.showMoreSettingsDialog=!0,d.activeSettingsCategory="general"},closeMoreSettingsDialog:()=>{d.showMoreSettingsDialog=!1},openThumbExpandDialog:()=>{d.thumbExpandSegmentIndex=au(d.curViewIndex),d.showThumbExpandDialog=!0},closeThumbExpandDialog:()=>{d.showThumbExpandDialog=!1},openDownloadConfirmDialog:()=>{d.showDownloadConfirmDialog=!0},closeDownloadConfirmDialog:()=>{d.showDownloadConfirmDialog=!1},openInstructionDialog:e=>{d.instructionDialogStack.push(Dm(e)),Au()},closeInstructionDialog:e=>{if(e){const t=d.instructionDialogStack.findIndex(n=>n.id===e);t>=0&&d.instructionDialogStack.splice(t,1)}else d.instructionDialogStack.pop();Au(),d.showInstructionDialog||Ns()},openWelcomeInstructionDialog:()=>{Jl(!1)},markWelcomeInstructionShown:()=>{d.hasShownWelcomeInstruction=!0,ke()},markBookInstructionShown:()=>{d.hasShownBookInstruction=!0,ke()},markVersionNoticeSeen:e=>{d.lastSeenVersionNotice=e,ke()},markRemoteUpdateNoticeShown:e=>{d.lastRemoteUpdateNoticeAt=e,ke()},setThumbExpandSegmentIndex:e=>{d.thumbExpandSegmentIndex=$s(e,d.pageCount)},setActiveSettingsCategory:e=>{d.activeSettingsCategory=e},toggleShowTopBar:()=>{d.showTopBar=!d.showTopBar},setTopBar:e=>{d.showTopBar=e},setReadingMode:e=>{d.readingMode=e,zu(),uo(),Ns(),ke()},setThumbDockSlot:e=>{const t=po(e),n=d.thumbDockSlot;d.thumbDockSlot=t,t==="bottom"?(d.thumbViewHeight=Yt("bottom",n==="bottom"?d.thumbViewHeight:d.thumbViewWidth),Cr(d.thumbViewHeight)):(d.thumbViewWidth=Yt(t,n==="bottom"?d.thumbViewHeight:d.thumbViewWidth),Cr(d.thumbViewWidth)),Hu()},setThumbPanelSize:e=>{d.thumbDockSlot==="bottom"?(d.thumbViewHeight=Yt("bottom",e),Cr(d.thumbViewHeight)):(d.thumbViewWidth=Yt(d.thumbDockSlot,e),Cr(d.thumbViewWidth)),Hu()},setWidthScale:e=>{d.widthScale=e,ke()},setLoadNum:e=>{d.loadNum=e,ke()},setDownloadChunkSize:e=>{!Number.isFinite(e)||e<=0?d.downloadChunkSize=200:d.downloadChunkSize=Math.floor(e),ke()},setVolumeSize:e=>{d.volumeSize=e,ke()},toggleShowThumbView:()=>{d.showThumbView=!d.showThumbView,ke()},setPagesPerScreen:e=>{d.pagesPerScreen=e,ke()},setBookDirection:e=>{d.bookDirection=e,ke()},setPageTurnAnimationMode:e=>{let t=ni(e);d.pageTurnAnimationMode=t,Bm(t),t==="none"&&(St&&window.clearTimeout(St),St=0,xr=!1,jn=null),ke()},setAnimationSpeed:e=>{d.animationSpeed=e,ke()},toggleShowBookPagination:()=>{d.showBookPagination=!d.showBookPagination,ke()},toggleIsChangeOddEven:()=>{d.isChangeOddEven=!d.isChangeOddEven,ke()},toggleOddEvenFromPageMenu:()=>{d.isChangeOddEven=!d.isChangeOddEven,ke()},toggleIsReverseFlip:()=>{d.isReverseFlip=!d.isReverseFlip,ke()},toggleIsAutoFlip:()=>{d.isAutoFlip=!d.isAutoFlip,uo(),ke()},setAutoFlipFrequency:e=>{d.autoFlipFrequency=e,ke()},toggleShowBookThumbView:()=>{d.showBookThumbView=!d.showBookThumbView,ke()},toggleIsReverseBookWheeFliplDirection:()=>{d.IsReverseBookWheeFliplDirection=!d.IsReverseBookWheeFliplDirection,ke()},setWheelSensitivity:e=>{d.wheelSensitivity=e,ke()},setScrollPageMargin:e=>{d.scrollPageMargin=e,ke()},setMagnifierZoom:e=>{d.magnifierZoom=Math.max(2,Math.min(5,Math.round(e))),ke()},setMagnifierAreaSize:e=>{d.magnifierAreaSize=Math.max(20,Math.min(300,Math.round(e))),ke()},setLang:e=>{mt.value=e,ke()},setAutoRetryByOtherSource:e=>{d.autoRetryByOtherSource=e,ke()},setShortcutBinding:(e,t)=>{d.shortcutBindings[e]=Fu(t),ke()},resetShortcutBindings:()=>{d.shortcutBindings=Xe({},Wn),ke()},isQuickSettingSelected:e=>d.quickSettingSelected.includes(e),toggleQuickSettingSelection:e=>{if(e===Ot)return;let t=d.quickSettingSelected.indexOf(e);t>=0?d.quickSettingSelected.splice(t,1):d.quickSettingSelected.push(e),d.quickSettingSelected.includes(Ot)||d.quickSettingSelected.unshift(Ot),ke()},moveQuickSettingItem:(e,t)=>{if(e===Ot||d.quickSettingOrder.indexOf(e)<0)return;const r=d.quickSettingOrder.filter(i=>i!==Ot),o=r.indexOf(e);if(o<0)return;const s=Math.max(0,Math.min(t,r.length-1));s!==o&&(r.splice(o,1),r.splice(s,0,e),d.quickSettingOrder=[Ot,...r],ke())},showFactoryResetDialog:()=>{d.isFactoryResetDialogVisible=!0,d.factoryResetStatus="confirming",d.factoryResetErrorMessage=""},hideFactoryResetDialog:()=>{d.isFactoryResetDialogVisible=!1,d.factoryResetStatus==="confirming"&&(d.factoryResetStatus="idle")},runFactoryReset:()=>{try{d.factoryResetStatus="running",d.factoryResetErrorMessage="",localStorage.clear(),window.location.reload()}catch(e){d.factoryResetStatus="failed",d.factoryResetErrorMessage="Factory reset failed"}},setCurViewIndex:(e,t)=>{const n=i=>{if(d.readingMode!==1)return i;const a=Math.max(1,d.pagesPerScreen),c=i-d.curViewIndex;return Math.abs(c)!==a?i:Wg({pageCount:d.pageCount,pagesPerScreen:d.pagesPerScreen,isChangeOddEven:d.isChangeOddEven},d.curViewIndex,c>0?1:-1)},r=(i,a)=>{if(i==d.curViewIndex)return;let c=d.curViewIndex;i<0?c=0:i>=d.pageCount?c=d.pageCount-1:c=i,c>d.curViewIndex?d.flipDirection=0:c<d.curViewIndex&&(d.flipDirection=1),d.curViewIndex=c,a&&(d.curViewIndexUpdater=a),uo()},o=()=>{let i=0;switch(d.pageTurnAnimationMode){case"none":return 0;case"slide":case"horizontal-slide":case"page-flip":case"rotate":i=700;break;default:i=700;break}return Math.round(i/d.animationSpeed)},s=()=>{if(!jn){xr=!1,St=0;return}let i=jn;jn=null,r(i.val,i.updater);let a=o();if(a<=0){s();return}St=window.setTimeout(s,a)};if(d.readingMode==1&&d.pageTurnAnimationMode!=="none"){xr&&(St&&(window.clearTimeout(St),St=0),jn=null),xr=!0,r(n(e),t);let i=o();i<=0?s():St=window.setTimeout(s,i);return}St&&(window.clearTimeout(St),St=0),xr=!1,jn=null,r(n(e),t)},setThumbInfos:e=>{d.thumbInfos=e},setImgPageInfos:e=>{d.imgPageInfos=e},setImgPageInfoSrc:(e,t)=>{e<d.imgPageInfos.length&&(d.imgPageInfos[e].src=t)},setThumbInfoDecodedSource:(e,t,n)=>{e>=d.thumbInfos.length||(d.thumbInfos[e].src=t,n&&Number.isFinite(n)&&n>0&&(d.thumbInfos[e].height=140,d.thumbInfos[e].width=Math.max(1,Math.round(140/n))))},setImgPageInfoPreciseHeightOfWidth:(e,t)=>{e<d.imgPageInfos.length&&(d.imgPageInfos[e].preciseHeightOfWidth=t)},setViewportWidth:e=>{d.viewportWidth=e},setViewportHeight:e=>{d.viewportHeight=e},getAlbumService:()=>Pu,startDownloadTask:(e,t,n)=>{const r=new Date().toISOString(),o={id:`terminate-${e}`,label:W.value.terminate,variant:"danger",onClick:()=>{const s=ei[e];s&&s.abort(e)}};d.downloadTaskMap[e]={taskId:e,albumTitle:t,totalPages:n,processedPages:0,failedPages:0,status:"queued",actions:[o],createdAt:r,updatedAt:r}},registerDownloadRunner:(e,t)=>{ei[e]=t},clearDownloadRunner:e=>{delete ei[e]},applyDownloadStatusEvent:(e,t,n)=>{const r=new Date().toISOString();d.downloadTaskMap[e]||B.startDownloadTask(e,t,n.totalPages);const o=d.downloadTaskMap[e];o.status=n.phase,o.processedPages=n.processedPages,o.failedPages=n.failedPages,o.totalPages=n.totalPages,o.updatedAt=r;const s=`download:${e}`,i=d.downloadNotifications.findIndex(c=>c.notificationId===s),a={notificationId:s,taskId:e,title:t,phase:n.phase,severity:n.severity,message:n.message,progressCurrent:n.processedPages,progressTotal:n.totalPages,actions:["completed","failed","partial"].includes(n.phase)?[]:o.actions,createdAt:i>=0?d.downloadNotifications[i].createdAt:r,updatedAt:r};if(i>=0){d.downloadNotifications[i]=a;return}d.downloadNotifications.unshift(a)},dismissDownloadNotification:e=>{const t=d.downloadNotifications.findIndex(n=>n.notificationId===e);t>=0&&d.downloadNotifications.splice(t,1)},triggerDownloadNotificationAction:(e,t)=>{const n=d.downloadNotifications.find(o=>o.notificationId===e);if(!n||!n.actions)return;const r=n.actions.find(o=>o.id===t);r&&r.onClick&&r.onClick(n)},getImgPageInfo:e=>d.imgPageInfos[e],getImgPageHeightOfWidth:e=>{let t=B.getImgPageInfo(e);return t.preciseHeightOfWidth?t.preciseHeightOfWidth:t.heightOfWidth}};let $u=!1;function Qm(e){if($u)return;d.pageCount=e.getPageCount(),Pu=e;let t=e.getThumbInfos(!1);d.thumbInfos=JSON.parse(JSON.stringify(t));let n=e.getImgPageInfos();d.imgPageInfos=JSON.parse(JSON.stringify(n)),d.albumTitle=e.getTitle(),d.curViewIndex=e.getCurPageIndex(),d.pageTurnAnimationMode=zm(),jm(),Un=Zg(),zu(),wg(),xg(),uo(),Ns(),Dg(),$u=!0}je(()=>mt.value,()=>{ke()});const Zm={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"};function Ym(e,t){return R(),H("svg",Zm,[...t[0]||(t[0]=[I("path",{fill:"none",d:"M0 0h24v24H0z"},null,-1),I("path",{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"},null,-1)])])}const Xm={render:Ym},ev={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"};function tv(e,t){return R(),H("svg",ev,[...t[0]||(t[0]=[I("path",{fill:"none",d:"M0 0h24v24H0z"},null,-1),I("path",{d:"M12 5.83 15.17 9l1.41-1.41L12 3 7.41 7.59 8.83 9zm0 12.34L8.83 15l-1.41 1.41L12 21l4.59-4.59L15.17 15z"},null,-1)])])}const ju={render:tv},nv={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"};function rv(e,t){return R(),H("svg",nv,[...t[0]||(t[0]=[I("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"},null,-1),I("path",{fill:"none",d:"M0 0h24v24H0z"},null,-1)])])}const ov={render:rv},sv={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"};function iv(e,t){return R(),H("svg",sv,[...t[0]||(t[0]=[I("path",{d:"m15.41 16.09-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"},null,-1),I("path",{fill:"none",d:"M0-.5h24v24H0z"},null,-1)])])}const Uu={render:iv},av={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24"};function cv(e,t){return R(),H("svg",av,[...t[0]||(t[0]=[I("path",{d:"M6 20q-.825 0-1.412-.587Q4 18.825 4 18t.588-1.413Q5.175 16 6 16t1.412.587Q8 17.175 8 18t-.588 1.413Q6.825 20 6 20m6 0q-.825 0-1.412-.587Q10 18.825 10 18t.588-1.413Q11.175 16 12 16t1.413.587Q14 17.175 14 18t-.587 1.413Q12.825 20 12 20m6 0q-.825 0-1.413-.587Q16 18.825 16 18t.587-1.413Q17.175 16 18 16t1.413.587Q20 17.175 20 18t-.587 1.413Q18.825 20 18 20M6 14q-.825 0-1.412-.588Q4 12.825 4 12t.588-1.413Q5.175 10 6 10t1.412.587Q8 11.175 8 12t-.588 1.412Q6.825 14 6 14m6 0q-.825 0-1.412-.588Q10 12.825 10 12t.588-1.413Q11.175 10 12 10t1.413.587T14 12q0 .825-.587 1.412Q12.825 14 12 14m6 0q-.825 0-1.413-.588Q16 12.825 16 12t.587-1.413Q17.175 10 18 10t1.413.587Q20 11.175 20 12t-.587 1.412Q18.825 14 18 14M6 8q-.825 0-1.412-.588Q4 6.825 4 6t.588-1.412Q5.175 4 6 4t1.412.588Q8 5.175 8 6t-.588 1.412Q6.825 8 6 8m6 0q-.825 0-1.412-.588Q10 6.825 10 6t.588-1.412Q11.175 4 12 4t1.413.588Q14 5.175 14 6t-.587 1.412Q12.825 8 12 8m6 0q-.825 0-1.413-.588Q16 6.825 16 6t.587-1.412Q17.175 4 18 4t1.413.588Q20 5.175 20 6t-.587 1.412Q18.825 8 18 8"},null,-1)])])}const lv={render:cv},uv={xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48"};function fv(e,t){return R(),H("svg",uv,[...t[0]||(t[0]=[I("path",{d:"M24 40q-1 0-1.7-.7t-.7-1.7.7-1.7 1.7-.7 1.7.7.7 1.7-.7 1.7-1.7.7m0-13.6q-1 0-1.7-.7t-.7-1.7.7-1.7 1.7-.7 1.7.7.7 1.7-.7 1.7-1.7.7m0-13.6q-1 0-1.7-.7t-.7-1.7.7-1.7T24 8t1.7.7.7 1.7-.7 1.7-1.7.7"},null,-1)])])}const dv={render:fv},hv={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"#1f1f1f",viewBox:"0 -960 960 960"};function pv(e,t){return R(),H("svg",hv,[...t[0]||(t[0]=[I("path",{d:"M480-160q-33 0-56.5-23.5T400-240t23.5-56.5T480-320t56.5 23.5T560-240t-23.5 56.5T480-160m0-240q-33 0-56.5-23.5T400-480t23.5-56.5T480-560t56.5 23.5T560-480t-23.5 56.5T480-400m0-240q-33 0-56.5-23.5T400-720t23.5-56.5T480-800t56.5 23.5T560-720t-23.5 56.5T480-640"},null,-1)])])}const gv={render:pv},mv={xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 -960 960 960"};function vv(e,t){return R(),H("svg",mv,[...t[0]||(t[0]=[I("path",{d:"M200-200v-60h560v60zm9-152 271-408 271 408zm110-60h322L480-650z"},null,-1)])])}const bv={render:vv},yv=Ee({__name:"CircleIconButton",props:{iconType:String,size:String,rotate:{type:Boolean,default:!0}},emits:["click"],setup(e){return(t,n)=>(R(),H("div",{class:be(["circle-icon-button",{big:e.size=="big"}]),onClick:n[0]||(n[0]=r=>t.$emit("click"))},[e.iconType=="menu"?(R(),ge(k(Xm),{key:0,class:be({rotate:e.rotate})},null,8,["class"])):ue("",!0),e.iconType=="close"?(R(),ge(k(ov),{key:1,class:be({rotate:e.rotate})},null,8,["class"])):ue("",!0),e.iconType=="expand"?(R(),ge(k(ju),{key:2,class:be({rotate:e.rotate})},null,8,["class"])):ue("",!0),e.iconType=="up_arrow"?(R(),ge(k(Uu),{key:3,class:"rotate90"})):ue("",!0),e.iconType=="apps"?(R(),ge(k(lv),{key:4})):ue("",!0),e.iconType=="more_vert"?(R(),ge(k(dv),{key:5})):ue("",!0),e.iconType=="more"?(R(),ge(k(gv),{key:6})):ue("",!0),e.iconType=="eject"?(R(),ge(k(bv),{key:7,class:be({rotate180:!e.rotate})},null,8,["class"])):ue("",!0)],2))}}),Re=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n},ii=Re(yv,[["__scopeId","data-v-2a2205e2"]]),wv={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"};function Sv(e,t){return R(),H("svg",wv,[...t[0]||(t[0]=[I("path",{d:"m7 10 5 5 5-5z"},null,-1),I("path",{fill:"none",d:"M0 0h24v24H0z"},null,-1)])])}const _v={render:Sv},Co=Re(Ee({__name:"Popover",props:{active:Boolean,customStyle:Object,isCloseToRight:Boolean},emits:["close"],setup(e,{emit:t}){const n=e,r=t,o=Z(null),s=Z(0),i=Z(0),a=Y(()=>dn(Xe({},n.customStyle||{}),{transform:`translate(${s.value}px, ${i.value}px)`}));function c(){const f=o.value;if(!f)return;const p=()=>{let x=f.parentElement;for(;x&&x!==document.body;){const F=window.getComputedStyle(x),C=F.overflowX!=="visible",D=F.overflowY!=="visible";if(F.overflow!=="visible"||C||D)return x.getBoundingClientRect();x=x.parentElement}return new DOMRect(0,0,window.innerWidth,window.innerHeight)},h=f.getBoundingClientRect(),g=p(),b=8;let S=0,v=0;const w=Math.min(window.innerWidth,g.right)-b,y=Math.max(0,g.left)+b,m=Math.min(window.innerHeight,g.bottom)-b,T=Math.max(0,g.top)+b;h.right>w&&(S=w-h.right),h.left+S<y&&(S+=y-(h.left+S)),h.bottom>m&&(v=m-h.bottom),h.top+v<T&&(v+=T-(h.top+v)),s.value=S,i.value=v}function u(f){o.value&&f.target instanceof Node&&o.value.contains(f.target)||r("close")}let l;return je(()=>n.active,(f,p)=>Ce(null,null,function*(){f&&(s.value=0,i.value=0,yield Pt(),c(),l=setTimeout(()=>{document.addEventListener("click",u,!0)},100)),p&&(document.removeEventListener("click",u,!0),l&&clearTimeout(l))})),(f,p)=>(R(),ge(Qt,{name:"slide-fade"},{default:We(()=>[e.active?(R(),H("div",{key:0,ref_key:"popoverRef",ref:o,class:"popover",style:Ge(a.value),onClick:p[0]||(p[0]=Oe(()=>{},["stop"]))},[Sn(f.$slots,"default",{},void 0,!0)],4)):ue("",!0)]),_:3}))}}),[["__scopeId","data-v-e5801761"]]),kv={class:"text clickable no-select"},xv={class:"options no-select"},Cv=["onClick"],Er=Re(Ee({__name:"DropOption",props:{list:{},curVal:{},formatCurValByList:{type:Boolean,default:!1},useAbbrName:{type:Boolean,default:!1}},emits:["change"],setup(e,{emit:t}){const n=e,r=t;let o=Z(!1);function s(){o.value=!o.value}function i(){o.value=!1}function a(u){s(),r("change",n.list[u].val,u)}const c=Y(()=>{if(n.formatCurValByList){for(let u of n.list)if(u.val==n.curVal)return n.useAbbrName&&u.abbrI18nKey?W.value[u.abbrI18nKey]:u.i18nKey?W.value[u.i18nKey]:n.useAbbrName&&u.abbrName?u.abbrName:u.name}return String(n.curVal)});return(u,l)=>(R(),H("div",{class:"drop-option",onClick:s},[I("div",kv,J(c.value),1),ae(k(_v),{class:"icon-drop-down clickable no-select"}),ae(Co,{active:k(o),"custom-style":{"margin-left":"7px","margin-top":"4px"},onClose:i},{default:We(()=>[I("div",xv,[(R(!0),H(we,null,$e(e.list,(f,p)=>(R(),H("div",{class:"item",key:f.name||f.i18nKey,onClick:h=>a(p)},[I("span",null,J(f.i18nKey?k(W)[f.i18nKey]:f.name),1)],8,Cv))),128))])]),_:1},8,["active"])]))}}),[["__scopeId","data-v-da60e7c5"]]),Ir=Re(Ee({__name:"FlatButton",props:{label:{type:String},mode:{type:String,default:"default"},type:{type:String,default:"plain"}},emits:["click"],setup(e,{emit:t}){const n=t;function r(o){n("click",o)}return(o,s)=>(R(),H("div",{class:be(["flat-button",e.mode])},[I("a",{class:be([e.mode,e.type]),onClick:r},J(e.label),3)],2))}}),[["__scopeId","data-v-e69ed2a2"]]),Tv={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"};function Ev(e,t){return R(),H("svg",Tv,[...t[0]||(t[0]=[I("path",{d:"m8.59 16.34 4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"},null,-1),I("path",{fill:"none",d:"M0-.25h24v24H0z"},null,-1)])])}const Iv={render:Ev},Av=["onClick"],To=Re({__name:"Pagination",props:{curIndex:Number,pageSum:Number},emits:["change"],setup(e,{emit:t}){const n=e,r=t,o=Z(3),s=Y(()=>{let l=[];for(let f=1;f<=o.value;f++)n.curIndex-f>0&&l.push(n.curIndex-f);for(let f=1;f<=o.value;f++)n.curIndex+f<n.pageSum-1&&l.push(n.curIndex+f);if(l.push(0),l.push(n.curIndex),l.push(n.pageSum-1),l=[...new Set(l)].sort((f,p)=>f-p),l[1]-l[0]>1){let f=Math.floor((l[1]-l[0])/2+l[0]);l.unshift(f)}if(l[l.length-1]-l[l.length-2]>1){let f=Math.floor((l[l.length-1]-l[l.length-2])/2+l[l.length-2]);l.push(f)}return[...new Set(l)].sort((f,p)=>f-p)});function i(l){return Math.abs(l-n.curIndex)<=o.value||l===0||l===n.pageSum-1?l+1:"..."}function a(l){r("change",l)}function c(){n.curIndex!==0&&r("change",n.curIndex-1)}function u(){n.curIndex!==n.pageSum-1&&r("change",n.curIndex+1)}return(l,f)=>(R(),H("section",{class:"ehunter-pagination",onClick:f[2]||(f[2]=Oe(()=>{},["stop"])),onTouchstart:f[3]||(f[3]=Oe(()=>{},["stop"])),onTouchend:f[4]||(f[4]=Oe(()=>{},["stop"]))},[I("div",{class:be(["item",{disable:e.curIndex===0}]),onClick:f[0]||(f[0]=p=>c())},[ae(k(Uu),{class:"icon"})],2),(R(!0),H(we,null,$e(s.value,p=>(R(),H("span",{class:be(["item",{active:p===e.curIndex}]),key:p,onClick:h=>a(p)},J(i(p)),11,Av))),128)),I("div",{class:be(["item",{disable:e.curIndex===e.pageSum-1}]),onClick:f[1]||(f[1]=p=>u())},[ae(k(Iv),{class:"icon"})],2)],32))}},[["__scopeId","data-v-c3d57ccd"]]),Dv=Re(Ee({__name:"Slider",props:{min:{},max:{},step:{},init:{}},emits:["change"],setup(e,{emit:t}){const n=e,r=t,o=Z(n.init),s=Z(!1),i=Z(0),a=Z(0),c=Z(0),u=Z(null),l=Y(()=>(o.value-n.min)/((n.max-n.min)/100));je(()=>n.init,w=>{o.value=w});function f(){return u.value.offsetWidth/(n.max-n.min)}function p(w){const y=n.min+w.offsetX/f();g(y)}function h(w){for(let y=n.min;y<=n.max;y=y+n.step)if(y>w)return y===n.min?Number(y.toFixed(0)):Number((y-n.step).toFixed(0));return n.max}function g(w){w>n.max?o.value=h(n.max):o.value=h(w<n.min?n.min:w),r("change",o.value)}function b(w){s.value=!1,document.removeEventListener("mousemove",S),document.removeEventListener("mouseup",b),w.preventDefault()}function S(w){if(s.value){const y=a.value+(w.clientX-i.value)/c.value;g(y)}w.preventDefault()}function v(w){s.value=!0,p(w),i.value=w.clientX,a.value=o.value,c.value=f(),document.addEventListener("mousemove",S),document.addEventListener("mouseup",b),w.preventDefault()}return(w,y)=>(R(),H("div",{class:"slider",onMousedown:v,onClick:p,ref_key:"slider",ref:u},[y[0]||(y[0]=I("div",{class:"track"},null,-1)),I("div",{class:"fill",style:Ge({width:l.value+"%"})},null,4),I("div",{class:"thumb",style:Ge({left:l.value+"%",width:s.value?"15px":void 0,height:s.value?"15px":void 0})},null,4)],544))}}),[["__scopeId","data-v-5a202c7e"]]);function Mv(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Pv(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var ai={};const Rv={Aacute:"Á",aacute:"á",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"Â",acirc:"â",acute:"´",Acy:"А",acy:"а",AElig:"Æ",aelig:"æ",af:"⁡",Afr:"𝔄",afr:"𝔞",Agrave:"À",agrave:"à",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",amp:"&",AMP:"&",andand:"⩕",And:"⩓",and:"∧",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angmsd:"∡",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"𝔸",aopf:"𝕒",apacir:"⩯",ap:"≈",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"⁡",approx:"≈",approxeq:"≊",Aring:"Å",aring:"å",Ascr:"𝒜",ascr:"𝒶",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",barwed:"⌅",Barwed:"⌆",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",because:"∵",Because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"𝔅",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"𝔹",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxdl:"┐",boxdL:"╕",boxDl:"╖",boxDL:"╗",boxdr:"┌",boxdR:"╒",boxDr:"╓",boxDR:"╔",boxh:"─",boxH:"═",boxhd:"┬",boxHd:"╤",boxhD:"╥",boxHD:"╦",boxhu:"┴",boxHu:"╧",boxhU:"╨",boxHU:"╩",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxul:"┘",boxuL:"╛",boxUl:"╜",boxUL:"╝",boxur:"└",boxuR:"╘",boxUr:"╙",boxUR:"╚",boxv:"│",boxV:"║",boxvh:"┼",boxvH:"╪",boxVh:"╫",boxVH:"╬",boxvl:"┤",boxvL:"╡",boxVl:"╢",boxVL:"╣",boxvr:"├",boxvR:"╞",boxVr:"╟",boxVR:"╠",bprime:"‵",breve:"˘",Breve:"˘",brvbar:"¦",bscr:"𝒷",Bscr:"ℬ",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsolb:"⧅",bsol:"\\",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",capand:"⩄",capbrcup:"⩉",capcap:"⩋",cap:"∩",Cap:"⋒",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"Ç",ccedil:"ç",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",centerdot:"·",CenterDot:"·",cfr:"𝔠",Cfr:"ℭ",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cir:"○",cirE:"⧃",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",colon:":",Colon:"∷",Colone:"⩴",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",conint:"∮",Conint:"∯",ContourIntegral:"∮",copf:"𝕔",Copf:"ℂ",coprod:"∐",Coproduct:"∐",copy:"©",COPY:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",cross:"✗",Cross:"⨯",Cscr:"𝒞",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cupbrcap:"⩈",cupcap:"⩆",CupCap:"≍",cup:"∪",Cup:"⋓",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dagger:"†",Dagger:"‡",daleth:"ℸ",darr:"↓",Darr:"↡",dArr:"⇓",dash:"‐",Dashv:"⫤",dashv:"⊣",dbkarow:"⤏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"д",ddagger:"‡",ddarr:"⇊",DD:"ⅅ",dd:"ⅆ",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",Delta:"Δ",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"𝔇",dfr:"𝔡",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",diamond:"⋄",Diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"𝔻",dopf:"𝕕",Dot:"¨",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrowBar:"⤓",downarrow:"↓",DownArrow:"↓",Downarrow:"⇓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVectorBar:"⥖",DownLeftVector:"↽",DownRightTeeVector:"⥟",DownRightVectorBar:"⥗",DownRightVector:"⇁",DownTeeArrow:"↧",DownTee:"⊤",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"𝒟",dscr:"𝒹",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"É",eacute:"é",easter:"⩮",Ecaron:"Ě",ecaron:"ě",Ecirc:"Ê",ecirc:"ê",ecir:"≖",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",edot:"ė",eDot:"≑",ee:"ⅇ",efDot:"≒",Efr:"𝔈",efr:"𝔢",eg:"⪚",Egrave:"È",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp13:" ",emsp14:" ",emsp:" ",ENG:"Ŋ",eng:"ŋ",ensp:" ",Eogon:"Ę",eogon:"ę",Eopf:"𝔼",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",Epsilon:"Ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",escr:"ℯ",Escr:"ℰ",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",exponentiale:"ⅇ",ExponentialE:"ⅇ",fallingdotseq:"≒",Fcy:"Ф",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",Ffr:"𝔉",ffr:"𝔣",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",Fopf:"𝔽",fopf:"𝕗",forall:"∀",ForAll:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"𝒻",Fscr:"ℱ",gacute:"ǵ",Gamma:"Γ",gamma:"γ",Gammad:"Ϝ",gammad:"ϝ",gap:"⪆",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Ģ",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"г",Gdot:"Ġ",gdot:"ġ",ge:"≥",gE:"≧",gEl:"⪌",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",gescc:"⪩",ges:"⩾",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"𝔊",gfr:"𝔤",gg:"≫",Gg:"⋙",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gla:"⪥",gl:"≷",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gnE:"≩",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"𝔾",gopf:"𝕘",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",gtcc:"⪧",gtcir:"⩺",gt:">",GT:">",Gt:"≫",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",harrcir:"⥈",harr:"↔",hArr:"⇔",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",Hfr:"ℌ",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",Hopf:"ℍ",horbar:"―",HorizontalLine:"─",hscr:"𝒽",Hscr:"ℋ",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"Í",iacute:"í",ic:"⁣",Icirc:"Î",icirc:"î",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"¡",iff:"⇔",ifr:"𝔦",Ifr:"ℑ",Igrave:"Ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"IJ",ijlig:"ij",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",Im:"ℑ",imof:"⊷",imped:"Ƶ",Implies:"⇒",incare:"℅",in:"∈",infin:"∞",infintie:"⧝",inodot:"ı",intcal:"⊺",int:"∫",Int:"∬",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"⁣",InvisibleTimes:"⁢",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"𝕀",iopf:"𝕚",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"¿",iscr:"𝒾",Iscr:"ℐ",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"Ï",iuml:"ï",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"𝔍",jfr:"𝔧",jmath:"ȷ",Jopf:"𝕁",jopf:"𝕛",Jscr:"𝒥",jscr:"𝒿",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"𝔎",kfr:"𝔨",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"𝕂",kopf:"𝕜",Kscr:"𝒦",kscr:"𝓀",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",lang:"⟨",Lang:"⟪",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",larrb:"⇤",larrbfs:"⤟",larr:"←",Larr:"↞",lArr:"⇐",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",latail:"⤙",lAtail:"⤛",lat:"⪫",late:"⪭",lates:"⪭︀",lbarr:"⤌",lBarr:"⤎",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",lE:"≦",LeftAngleBracket:"⟨",LeftArrowBar:"⇤",leftarrow:"←",LeftArrow:"←",Leftarrow:"⇐",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVectorBar:"⥙",LeftDownVector:"⇃",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTeeArrow:"↤",LeftTee:"⊣",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangleBar:"⧏",LeftTriangle:"⊲",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVectorBar:"⥘",LeftUpVector:"↿",LeftVectorBar:"⥒",LeftVector:"↼",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",lescc:"⪨",les:"⩽",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"𝔏",lfr:"𝔩",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",llarr:"⇇",ll:"≪",Ll:"⋘",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoustache:"⎰",lmoust:"⎰",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lnE:"≨",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftrightarrow:"⟷",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longmapsto:"⟼",longrightarrow:"⟶",LongRightArrow:"⟶",Longrightarrow:"⟹",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"𝕃",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",Lscr:"ℒ",lsh:"↰",Lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",ltcc:"⪦",ltcir:"⩹",lt:"<",LT:"<",Lt:"≪",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",mfr:"𝔪",mho:"℧",micro:"µ",midast:"*",midcir:"⫰",mid:"∣",middot:"·",minusb:"⊟",minus:"−",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"𝕄",mopf:"𝕞",mp:"∓",mscr:"𝓂",Mscr:"ℳ",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natural:"♮",naturals:"ℕ",natur:"♮",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",nearhk:"⤤",nearr:"↗",neArr:"⇗",nearrow:"↗",ne:"≠",nedot:"≐̸",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:`
`,nexist:"∄",nexists:"∄",Nfr:"𝔑",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nharr:"↮",nhArr:"⇎",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlarr:"↚",nlArr:"⇍",nldr:"‥",nlE:"≦̸",nle:"≰",nleftarrow:"↚",nLeftarrow:"⇍",nleftrightarrow:"↮",nLeftrightarrow:"⇎",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"⁠",NonBreakingSpace:" ",nopf:"𝕟",Nopf:"ℕ",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangleBar:"⧏̸",NotLeftTriangle:"⋪",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangleBar:"⧐̸",NotRightTriangle:"⋫",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",nparallel:"∦",npar:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",nprec:"⊀",npreceq:"⪯̸",npre:"⪯̸",nrarrc:"⤳̸",nrarr:"↛",nrArr:"⇏",nrarrw:"↝̸",nrightarrow:"↛",nRightarrow:"⇏",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"𝒩",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nvdash:"⊬",nvDash:"⊭",nVdash:"⊮",nVDash:"⊯",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwarr:"↖",nwArr:"⇖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",Ocirc:"Ô",ocirc:"ô",ocir:"⊚",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"𝔒",ofr:"𝔬",ogon:"˛",Ograve:"Ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"𝕆",oopf:"𝕠",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",orarr:"↻",Or:"⩔",or:"∨",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"𝒪",oscr:"ℴ",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",otimesas:"⨶",Otimes:"⨷",otimes:"⊗",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",para:"¶",parallel:"∥",par:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"𝔓",pfr:"𝔭",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plus:"+",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",popf:"𝕡",Popf:"ℙ",pound:"£",prap:"⪷",Pr:"⪻",pr:"≺",prcue:"≼",precapprox:"⪷",prec:"≺",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",pre:"⪯",prE:"⪳",precsim:"≾",prime:"′",Prime:"″",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportional:"∝",Proportion:"∷",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"𝒫",pscr:"𝓅",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"𝔔",qfr:"𝔮",qint:"⨌",qopf:"𝕢",Qopf:"ℚ",qprime:"⁗",Qscr:"𝒬",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',QUOT:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",Rang:"⟫",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarr:"→",Rarr:"↠",rArr:"⇒",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",ratail:"⤚",rAtail:"⤜",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rBarr:"⤏",RBarr:"⤐",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",Re:"ℜ",rect:"▭",reg:"®",REG:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",Rfr:"ℜ",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrowBar:"⇥",rightarrow:"→",RightArrow:"→",Rightarrow:"⇒",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVectorBar:"⥕",RightDownVector:"⇂",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTeeArrow:"↦",RightTee:"⊢",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangleBar:"⧐",RightTriangle:"⊳",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVectorBar:"⥔",RightUpVector:"↾",RightVectorBar:"⥓",RightVector:"⇀",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoustache:"⎱",rmoust:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",Ropf:"ℝ",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",rscr:"𝓇",Rscr:"ℛ",rsh:"↱",Rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",scap:"⪸",Scaron:"Š",scaron:"š",Sc:"⪼",sc:"≻",sccue:"≽",sce:"⪰",scE:"⪴",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdotb:"⊡",sdot:"⋅",sdote:"⩦",searhk:"⤥",searr:"↘",seArr:"⇘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"𝔖",sfr:"𝔰",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"­",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",solbar:"⌿",solb:"⧄",sol:"/",Sopf:"𝕊",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",square:"□",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squ:"□",squf:"▪",srarr:"→",Sscr:"𝒮",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",Sub:"⋐",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",subset:"⊂",Subset:"⋐",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succapprox:"⪸",succ:"≻",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",sum:"∑",Sum:"∑",sung:"♪",sup1:"¹",sup2:"²",sup3:"³",sup:"⊃",Sup:"⋑",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",supset:"⊃",Supset:"⋑",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swarr:"↙",swArr:"⇙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:"	",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"𝔗",tfr:"𝔱",there4:"∴",therefore:"∴",Therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:"  ",ThinSpace:" ",thinsp:" ",thkap:"≈",thksim:"∼",THORN:"Þ",thorn:"þ",tilde:"˜",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",timesbar:"⨱",timesb:"⊠",times:"×",timesd:"⨰",tint:"∭",toea:"⤨",topbot:"⌶",topcir:"⫱",top:"⊤",Topf:"𝕋",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",TRADE:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"𝒯",tscr:"𝓉",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"ú",uarr:"↑",Uarr:"↟",uArr:"⇑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"Û",ucirc:"û",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"𝔘",ufr:"𝔲",Ugrave:"Ù",ugrave:"ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"𝕌",uopf:"𝕦",UpArrowBar:"⤒",uparrow:"↑",UpArrow:"↑",Uparrow:"⇑",UpArrowDownArrow:"⇅",updownarrow:"↕",UpDownArrow:"↕",Updownarrow:"⇕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",upsi:"υ",Upsi:"ϒ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTeeArrow:"↥",UpTee:"⊥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"𝒰",uscr:"𝓊",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"Ü",uuml:"ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",vArr:"⇕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vBar:"⫨",Vbar:"⫫",vBarv:"⫩",Vcy:"В",vcy:"в",vdash:"⊢",vDash:"⊨",Vdash:"⊩",VDash:"⊫",Vdashl:"⫦",veebar:"⊻",vee:"∨",Vee:"⋁",veeeq:"≚",vellip:"⋮",verbar:"|",Verbar:"‖",vert:"|",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"𝕍",vopf:"𝕧",vprop:"∝",vrtri:"⊳",Vscr:"𝒱",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",wedge:"∧",Wedge:"⋀",wedgeq:"≙",weierp:"℘",Wfr:"𝔚",wfr:"𝔴",Wopf:"𝕎",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",Wscr:"𝒲",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"𝔛",xfr:"𝔵",xharr:"⟷",xhArr:"⟺",Xi:"Ξ",xi:"ξ",xlarr:"⟵",xlArr:"⟸",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"𝕏",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrarr:"⟶",xrArr:"⟹",Xscr:"𝒳",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"Ý",yacute:"ý",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"¥",Yfr:"𝔜",yfr:"𝔶",YIcy:"Ї",yicy:"ї",Yopf:"𝕐",yopf:"𝕪",Yscr:"𝒴",yscr:"𝓎",YUcy:"Ю",yucy:"ю",yuml:"ÿ",Yuml:"Ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"​",Zeta:"Ζ",zeta:"ζ",zfr:"𝔷",Zfr:"ℨ",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",zopf:"𝕫",Zopf:"ℤ",Zscr:"𝒵",zscr:"𝓏",zwj:"‍",zwnj:"‌"};var ci,Wu;function Gu(){return Wu||(Wu=1,ci=Rv),ci}var li,Ku;function ui(){return Ku||(Ku=1,li=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/),li}var Gn={},fi,Ju;function qv(){if(Ju)return fi;Ju=1;var e={};function t(r){var o,s,i=e[r];if(i)return i;for(i=e[r]=[],o=0;o<128;o++)s=String.fromCharCode(o),/^[0-9a-z]$/i.test(s)?i.push(s):i.push("%"+("0"+o.toString(16).toUpperCase()).slice(-2));for(o=0;o<r.length;o++)i[r.charCodeAt(o)]=r[o];return i}function n(r,o,s){var i,a,c,u,l,f="";for(typeof o!="string"&&(s=o,o=n.defaultChars),typeof s=="undefined"&&(s=!0),l=t(o),i=0,a=r.length;i<a;i++){if(c=r.charCodeAt(i),s&&c===37&&i+2<a&&/^[0-9a-f]{2}$/i.test(r.slice(i+1,i+3))){f+=r.slice(i,i+3),i+=2;continue}if(c<128){f+=l[c];continue}if(c>=55296&&c<=57343){if(c>=55296&&c<=56319&&i+1<a&&(u=r.charCodeAt(i+1),u>=56320&&u<=57343)){f+=encodeURIComponent(r[i]+r[i+1]),i++;continue}f+="%EF%BF%BD";continue}f+=encodeURIComponent(r[i])}return f}return n.defaultChars=";/?:@&=+$,-_.!~*'()#",n.componentChars="-_.!~*'()",fi=n,fi}var di,Qu;function Fv(){if(Qu)return di;Qu=1;var e={};function t(r){var o,s,i=e[r];if(i)return i;for(i=e[r]=[],o=0;o<128;o++)s=String.fromCharCode(o),i.push(s);for(o=0;o<r.length;o++)s=r.charCodeAt(o),i[s]="%"+("0"+s.toString(16).toUpperCase()).slice(-2);return i}function n(r,o){var s;return typeof o!="string"&&(o=n.defaultChars),s=t(o),r.replace(/(%[a-f0-9]{2})+/gi,function(i){var a,c,u,l,f,p,h,g="";for(a=0,c=i.length;a<c;a+=3){if(u=parseInt(i.slice(a+1,a+3),16),u<128){g+=s[u];continue}if((u&224)===192&&a+3<c&&(l=parseInt(i.slice(a+4,a+6),16),(l&192)===128)){h=u<<6&1984|l&63,h<128?g+="��":g+=String.fromCharCode(h),a+=3;continue}if((u&240)===224&&a+6<c&&(l=parseInt(i.slice(a+4,a+6),16),f=parseInt(i.slice(a+7,a+9),16),(l&192)===128&&(f&192)===128)){h=u<<12&61440|l<<6&4032|f&63,h<2048||h>=55296&&h<=57343?g+="���":g+=String.fromCharCode(h),a+=6;continue}if((u&248)===240&&a+9<c&&(l=parseInt(i.slice(a+4,a+6),16),f=parseInt(i.slice(a+7,a+9),16),p=parseInt(i.slice(a+10,a+12),16),(l&192)===128&&(f&192)===128&&(p&192)===128)){h=u<<18&1835008|l<<12&258048|f<<6&4032|p&63,h<65536||h>1114111?g+="����":(h-=65536,g+=String.fromCharCode(55296+(h>>10),56320+(h&1023))),a+=9;continue}g+="�"}return g})}return n.defaultChars=";/?:@&=+$,#",n.componentChars="",di=n,di}var hi,Zu;function Lv(){return Zu||(Zu=1,hi=function(t){var n="";return n+=t.protocol||"",n+=t.slashes?"//":"",n+=t.auth?t.auth+"@":"",t.hostname&&t.hostname.indexOf(":")!==-1?n+="["+t.hostname+"]":n+=t.hostname||"",n+=t.port?":"+t.port:"",n+=t.pathname||"",n+=t.search||"",n+=t.hash||"",n}),hi}var pi,Yu;function Ov(){if(Yu)return pi;Yu=1;function e(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}var t=/^([a-z0-9.+-]+:)/i,n=/:[0-9]*$/,r=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,o=["<",">",'"',"`"," ","\r",`
`,"	"],s=["{","}","|","\\","^","`"].concat(o),i=["'"].concat(s),a=["%","/","?",";","#"].concat(i),c=["/","?","#"],u=255,l=/^[+a-z0-9A-Z_-]{0,63}$/,f=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,p={javascript:!0,"javascript:":!0},h={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function g(b,S){if(b&&b instanceof e)return b;var v=new e;return v.parse(b,S),v}return e.prototype.parse=function(b,S){var v,w,y,m,T,x=b;if(x=x.trim(),!S&&b.split("#").length===1){var F=r.exec(x);if(F)return this.pathname=F[1],F[2]&&(this.search=F[2]),this}var C=t.exec(x);if(C&&(C=C[0],y=C.toLowerCase(),this.protocol=C,x=x.substr(C.length)),(S||C||x.match(/^\/\/[^@\/]+@[^@\/]+/))&&(T=x.substr(0,2)==="//",T&&!(C&&p[C])&&(x=x.substr(2),this.slashes=!0)),!p[C]&&(T||C&&!h[C])){var D=-1;for(v=0;v<c.length;v++)m=x.indexOf(c[v]),m!==-1&&(D===-1||m<D)&&(D=m);var M,O;for(D===-1?O=x.lastIndexOf("@"):O=x.lastIndexOf("@",D),O!==-1&&(M=x.slice(0,O),x=x.slice(O+1),this.auth=M),D=-1,v=0;v<a.length;v++)m=x.indexOf(a[v]),m!==-1&&(D===-1||m<D)&&(D=m);D===-1&&(D=x.length),x[D-1]===":"&&D--;var L=x.slice(0,D);x=x.slice(D),this.parseHost(L),this.hostname=this.hostname||"";var ce=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!ce){var z=this.hostname.split(/\./);for(v=0,w=z.length;v<w;v++){var oe=z[v];if(oe&&!oe.match(l)){for(var se="",ie=0,le=oe.length;ie<le;ie++)oe.charCodeAt(ie)>127?se+="x":se+=oe[ie];if(!se.match(l)){var Se=z.slice(0,v),me=z.slice(v+1),xe=oe.match(f);xe&&(Se.push(xe[1]),me.unshift(xe[2])),me.length&&(x=me.join(".")+x),this.hostname=Se.join(".");break}}}}this.hostname.length>u&&(this.hostname=""),ce&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var Te=x.indexOf("#");Te!==-1&&(this.hash=x.substr(Te),x=x.slice(0,Te));var Ae=x.indexOf("?");return Ae!==-1&&(this.search=x.substr(Ae),x=x.slice(0,Ae)),x&&(this.pathname=x),h[y]&&this.hostname&&!this.pathname&&(this.pathname=""),this},e.prototype.parseHost=function(b){var S=n.exec(b);S&&(S=S[0],S!==":"&&(this.port=S.substr(1)),b=b.substr(0,b.length-S.length)),b&&(this.hostname=b)},pi=g,pi}var Xu;function ef(){return Xu||(Xu=1,Gn.encode=qv(),Gn.decode=Fv(),Gn.format=Lv(),Gn.parse=Ov()),Gn}var In={},gi,tf;function nf(){return tf||(tf=1,gi=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/),gi}var mi,rf;function of(){return rf||(rf=1,mi=/[\0-\x1F\x7F-\x9F]/),mi}var vi,sf;function Nv(){return sf||(sf=1,vi=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/),vi}var bi,af;function cf(){return af||(af=1,bi=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/),bi}var lf;function Bv(){return lf||(lf=1,In.Any=nf(),In.Cc=of(),In.Cf=Nv(),In.P=ui(),In.Z=cf()),In}var uf;function Ie(){return uf||(uf=1,(function(e){function t(z){return Object.prototype.toString.call(z)}function n(z){return t(z)==="[object String]"}var r=Object.prototype.hasOwnProperty;function o(z,oe){return r.call(z,oe)}function s(z){var oe=Array.prototype.slice.call(arguments,1);return oe.forEach(function(se){if(se){if(typeof se!="object")throw new TypeError(se+"must be object");Object.keys(se).forEach(function(ie){z[ie]=se[ie]})}}),z}function i(z,oe,se){return[].concat(z.slice(0,oe),se,z.slice(oe+1))}function a(z){return!(z>=55296&&z<=57343||z>=64976&&z<=65007||(z&65535)===65535||(z&65535)===65534||z>=0&&z<=8||z===11||z>=14&&z<=31||z>=127&&z<=159||z>1114111)}function c(z){if(z>65535){z-=65536;var oe=55296+(z>>10),se=56320+(z&1023);return String.fromCharCode(oe,se)}return String.fromCharCode(z)}var u=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,l=/&([a-z#][a-z0-9]{1,31});/gi,f=new RegExp(u.source+"|"+l.source,"gi"),p=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,h=Gu();function g(z,oe){var se=0;return o(h,oe)?h[oe]:oe.charCodeAt(0)===35&&p.test(oe)&&(se=oe[1].toLowerCase()==="x"?parseInt(oe.slice(2),16):parseInt(oe.slice(1),10),a(se))?c(se):z}function b(z){return z.indexOf("\\")<0?z:z.replace(u,"$1")}function S(z){return z.indexOf("\\")<0&&z.indexOf("&")<0?z:z.replace(f,function(oe,se,ie){return se||g(oe,ie)})}var v=/[&<>"]/,w=/[&<>"]/g,y={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};function m(z){return y[z]}function T(z){return v.test(z)?z.replace(w,m):z}var x=/[.?*+^$[\]\\(){}|-]/g;function F(z){return z.replace(x,"\\$&")}function C(z){switch(z){case 9:case 32:return!0}return!1}function D(z){if(z>=8192&&z<=8202)return!0;switch(z){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}var M=ui();function O(z){return M.test(z)}function L(z){switch(z){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function ce(z){return z.trim().replace(/\s+/g," ").toUpperCase()}e.lib={},e.lib.mdurl=ef(),e.lib.ucmicro=Bv(),e.assign=s,e.isString=n,e.has=o,e.unescapeMd=b,e.unescapeAll=S,e.isValidEntityCode=a,e.fromCodePoint=c,e.escapeHtml=T,e.arrayReplaceAt=i,e.isSpace=C,e.isWhiteSpace=D,e.isMdAsciiPunct=L,e.isPunctChar=O,e.escapeRE=F,e.normalizeReference=ce})(ai)),ai}var Ar={},yi,ff;function zv(){return ff||(ff=1,yi=function(t,n,r){var o,s,i,a,c=-1,u=t.posMax,l=t.pos;for(t.pos=n+1,o=1;t.pos<u;){if(i=t.src.charCodeAt(t.pos),i===93&&(o--,o===0)){s=!0;break}if(a=t.pos,t.md.inline.skipToken(t),i===91){if(a===t.pos-1)o++;else if(r)return t.pos=l,-1}}return s&&(c=t.pos),t.pos=l,c}),yi}var wi,df;function Hv(){if(df)return wi;df=1;var e=Ie().isSpace,t=Ie().unescapeAll;return wi=function(r,o,s){var i,a,c=0,u=o,l={ok:!1,pos:0,lines:0,str:""};if(r.charCodeAt(o)===60){for(o++;o<s;){if(i=r.charCodeAt(o),i===10||e(i))return l;if(i===62)return l.pos=o+1,l.str=t(r.slice(u+1,o)),l.ok=!0,l;if(i===92&&o+1<s){o+=2;continue}o++}return l}for(a=0;o<s&&(i=r.charCodeAt(o),!(i===32||i<32||i===127));){if(i===92&&o+1<s){o+=2;continue}if(i===40&&a++,i===41){if(a===0)break;a--}o++}return u===o||a!==0||(l.str=t(r.slice(u,o)),l.lines=c,l.pos=o,l.ok=!0),l},wi}var Si,hf;function Vv(){if(hf)return Si;hf=1;var e=Ie().unescapeAll;return Si=function(n,r,o){var s,i,a=0,c=r,u={ok:!1,pos:0,lines:0,str:""};if(r>=o||(i=n.charCodeAt(r),i!==34&&i!==39&&i!==40))return u;for(r++,i===40&&(i=41);r<o;){if(s=n.charCodeAt(r),s===i)return u.pos=r+1,u.lines=a,u.str=e(n.slice(c+1,r)),u.ok=!0,u;s===10?a++:s===92&&r+1<o&&(r++,n.charCodeAt(r)===10&&a++),r++}return u},Si}var pf;function $v(){return pf||(pf=1,Ar.parseLinkLabel=zv(),Ar.parseLinkDestination=Hv(),Ar.parseLinkTitle=Vv()),Ar}var _i,gf;function jv(){if(gf)return _i;gf=1;var e=Ie().assign,t=Ie().unescapeAll,n=Ie().escapeHtml,r={};r.code_inline=function(s,i,a,c,u){var l=s[i];return"<code"+u.renderAttrs(l)+">"+n(s[i].content)+"</code>"},r.code_block=function(s,i,a,c,u){var l=s[i];return"<pre"+u.renderAttrs(l)+"><code>"+n(s[i].content)+`</code></pre>
`},r.fence=function(s,i,a,c,u){var l=s[i],f=l.info?t(l.info).trim():"",p="",h,g,b,S;return f&&(p=f.split(/\s+/g)[0]),a.highlight?h=a.highlight(l.content,p)||n(l.content):h=n(l.content),h.indexOf("<pre")===0?h+`
`:f?(g=l.attrIndex("class"),b=l.attrs?l.attrs.slice():[],g<0?b.push(["class",a.langPrefix+p]):b[g][1]+=" "+a.langPrefix+p,S={attrs:b},"<pre><code"+u.renderAttrs(S)+">"+h+`</code></pre>
`):"<pre><code"+u.renderAttrs(l)+">"+h+`</code></pre>
`},r.image=function(s,i,a,c,u){var l=s[i];return l.attrs[l.attrIndex("alt")][1]=u.renderInlineAsText(l.children,a,c),u.renderToken(s,i,a)},r.hardbreak=function(s,i,a){return a.xhtmlOut?`<br />
`:`<br>
`},r.softbreak=function(s,i,a){return a.breaks?a.xhtmlOut?`<br />
`:`<br>
`:`
`},r.text=function(s,i){return n(s[i].content)},r.html_block=function(s,i){return s[i].content},r.html_inline=function(s,i){return s[i].content};function o(){this.rules=e({},r)}return o.prototype.renderAttrs=function(i){var a,c,u;if(!i.attrs)return"";for(u="",a=0,c=i.attrs.length;a<c;a++)u+=" "+n(i.attrs[a][0])+'="'+n(i.attrs[a][1])+'"';return u},o.prototype.renderToken=function(i,a,c){var u,l="",f=!1,p=i[a];return p.hidden?"":(p.block&&p.nesting!==-1&&a&&i[a-1].hidden&&(l+=`
`),l+=(p.nesting===-1?"</":"<")+p.tag,l+=this.renderAttrs(p),p.nesting===0&&c.xhtmlOut&&(l+=" /"),p.block&&(f=!0,p.nesting===1&&a+1<i.length&&(u=i[a+1],(u.type==="inline"||u.hidden||u.nesting===-1&&u.tag===p.tag)&&(f=!1))),l+=f?`>
`:">",l)},o.prototype.renderInline=function(s,i,a){for(var c,u="",l=this.rules,f=0,p=s.length;f<p;f++)c=s[f].type,typeof l[c]!="undefined"?u+=l[c](s,f,i,a,this):u+=this.renderToken(s,f,i);return u},o.prototype.renderInlineAsText=function(s,i,a){for(var c="",u=0,l=s.length;u<l;u++)s[u].type==="text"?c+=s[u].content:s[u].type==="image"&&(c+=this.renderInlineAsText(s[u].children,i,a));return c},o.prototype.render=function(s,i,a){var c,u,l,f="",p=this.rules;for(c=0,u=s.length;c<u;c++)l=s[c].type,l==="inline"?f+=this.renderInline(s[c].children,i,a):typeof p[l]!="undefined"?f+=p[s[c].type](s,c,i,a,this):f+=this.renderToken(s,c,i,a);return f},_i=o,_i}var ki,mf;function xi(){if(mf)return ki;mf=1;function e(){this.__rules__=[],this.__cache__=null}return e.prototype.__find__=function(t){for(var n=0;n<this.__rules__.length;n++)if(this.__rules__[n].name===t)return n;return-1},e.prototype.__compile__=function(){var t=this,n=[""];t.__rules__.forEach(function(r){r.enabled&&r.alt.forEach(function(o){n.indexOf(o)<0&&n.push(o)})}),t.__cache__={},n.forEach(function(r){t.__cache__[r]=[],t.__rules__.forEach(function(o){o.enabled&&(r&&o.alt.indexOf(r)<0||t.__cache__[r].push(o.fn))})})},e.prototype.at=function(t,n,r){var o=this.__find__(t),s=r||{};if(o===-1)throw new Error("Parser rule not found: "+t);this.__rules__[o].fn=n,this.__rules__[o].alt=s.alt||[],this.__cache__=null},e.prototype.before=function(t,n,r,o){var s=this.__find__(t),i=o||{};if(s===-1)throw new Error("Parser rule not found: "+t);this.__rules__.splice(s,0,{name:n,enabled:!0,fn:r,alt:i.alt||[]}),this.__cache__=null},e.prototype.after=function(t,n,r,o){var s=this.__find__(t),i=o||{};if(s===-1)throw new Error("Parser rule not found: "+t);this.__rules__.splice(s+1,0,{name:n,enabled:!0,fn:r,alt:i.alt||[]}),this.__cache__=null},e.prototype.push=function(t,n,r){var o=r||{};this.__rules__.push({name:t,enabled:!0,fn:n,alt:o.alt||[]}),this.__cache__=null},e.prototype.enable=function(t,n){Array.isArray(t)||(t=[t]);var r=[];return t.forEach(function(o){var s=this.__find__(o);if(s<0){if(n)return;throw new Error("Rules manager: invalid rule name "+o)}this.__rules__[s].enabled=!0,r.push(o)},this),this.__cache__=null,r},e.prototype.enableOnly=function(t,n){Array.isArray(t)||(t=[t]),this.__rules__.forEach(function(r){r.enabled=!1}),this.enable(t,n)},e.prototype.disable=function(t,n){Array.isArray(t)||(t=[t]);var r=[];return t.forEach(function(o){var s=this.__find__(o);if(s<0){if(n)return;throw new Error("Rules manager: invalid rule name "+o)}this.__rules__[s].enabled=!1,r.push(o)},this),this.__cache__=null,r},e.prototype.getRules=function(t){return this.__cache__===null&&this.__compile__(),this.__cache__[t]||[]},ki=e,ki}var Ci,vf;function Uv(){if(vf)return Ci;vf=1;var e=/\r[\n\u0085]?|[\u2424\u2028\u0085]/g,t=/\u0000/g;return Ci=function(r){var o;o=r.src.replace(e,`
`),o=o.replace(t,"�"),r.src=o},Ci}var Ti,bf;function Wv(){return bf||(bf=1,Ti=function(t){var n;t.inlineMode?(n=new t.Token("inline","",0),n.content=t.src,n.map=[0,1],n.children=[],t.tokens.push(n)):t.md.block.parse(t.src,t.md,t.env,t.tokens)}),Ti}var Ei,yf;function Gv(){return yf||(yf=1,Ei=function(t){var n=t.tokens,r,o,s;for(o=0,s=n.length;o<s;o++)r=n[o],r.type==="inline"&&t.md.inline.parse(r.content,t.md,t.env,r.children)}),Ei}var Ii,wf;function Kv(){if(wf)return Ii;wf=1;var e=Ie().arrayReplaceAt;function t(r){return/^<a[>\s]/i.test(r)}function n(r){return/^<\/a\s*>/i.test(r)}return Ii=function(o){var s,i,a,c,u,l,f,p,h,g,b,S,v,w,y,m,T=o.tokens,x;if(o.md.options.linkify){for(i=0,a=T.length;i<a;i++)if(!(T[i].type!=="inline"||!o.md.linkify.pretest(T[i].content)))for(c=T[i].children,v=0,s=c.length-1;s>=0;s--){if(l=c[s],l.type==="link_close"){for(s--;c[s].level!==l.level&&c[s].type!=="link_open";)s--;continue}if(l.type==="html_inline"&&(t(l.content)&&v>0&&v--,n(l.content)&&v++),!(v>0)&&l.type==="text"&&o.md.linkify.test(l.content)){for(h=l.content,x=o.md.linkify.match(h),f=[],S=l.level,b=0,p=0;p<x.length;p++)w=x[p].url,y=o.md.normalizeLink(w),o.md.validateLink(y)&&(m=x[p].text,x[p].schema?x[p].schema==="mailto:"&&!/^mailto:/i.test(m)?m=o.md.normalizeLinkText("mailto:"+m).replace(/^mailto:/,""):m=o.md.normalizeLinkText(m):m=o.md.normalizeLinkText("http://"+m).replace(/^http:\/\//,""),g=x[p].index,g>b&&(u=new o.Token("text","",0),u.content=h.slice(b,g),u.level=S,f.push(u)),u=new o.Token("link_open","a",1),u.attrs=[["href",y]],u.level=S++,u.markup="linkify",u.info="auto",f.push(u),u=new o.Token("text","",0),u.content=m,u.level=S,f.push(u),u=new o.Token("link_close","a",-1),u.level=--S,u.markup="linkify",u.info="auto",f.push(u),b=x[p].lastIndex);b<h.length&&(u=new o.Token("text","",0),u.content=h.slice(b),u.level=S,f.push(u)),T[i].children=c=e(c,s,f)}}}},Ii}var Ai,Sf;function Jv(){if(Sf)return Ai;Sf=1;var e=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,t=/\((c|tm|r|p)\)/i,n=/\((c|tm|r|p)\)/ig,r={c:"©",r:"®",p:"§",tm:"™"};function o(a,c){return r[c.toLowerCase()]}function s(a){var c,u,l=0;for(c=a.length-1;c>=0;c--)u=a[c],u.type==="text"&&!l&&(u.content=u.content.replace(n,o)),u.type==="link_open"&&u.info==="auto"&&l--,u.type==="link_close"&&u.info==="auto"&&l++}function i(a){var c,u,l=0;for(c=a.length-1;c>=0;c--)u=a[c],u.type==="text"&&!l&&e.test(u.content)&&(u.content=u.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---([^-]|$)/mg,"$1—$2").replace(/(^|\s)--(\s|$)/mg,"$1–$2").replace(/(^|[^-\s])--([^-\s]|$)/mg,"$1–$2")),u.type==="link_open"&&u.info==="auto"&&l--,u.type==="link_close"&&u.info==="auto"&&l++}return Ai=function(c){var u;if(c.md.options.typographer)for(u=c.tokens.length-1;u>=0;u--)c.tokens[u].type==="inline"&&(t.test(c.tokens[u].content)&&s(c.tokens[u].children),e.test(c.tokens[u].content)&&i(c.tokens[u].children))},Ai}var Di,_f;function Qv(){if(_f)return Di;_f=1;var e=Ie().isWhiteSpace,t=Ie().isPunctChar,n=Ie().isMdAsciiPunct,r=/['"]/,o=/['"]/g,s="’";function i(c,u,l){return c.substr(0,u)+l+c.substr(u+1)}function a(c,u){var l,f,p,h,g,b,S,v,w,y,m,T,x,F,C,D,M,O,L,ce,z;for(L=[],l=0;l<c.length;l++){for(f=c[l],S=c[l].level,M=L.length-1;M>=0&&!(L[M].level<=S);M--);if(L.length=M+1,f.type==="text"){p=f.content,g=0,b=p.length;e:for(;g<b&&(o.lastIndex=g,h=o.exec(p),!!h);){if(C=D=!0,g=h.index+1,O=h[0]==="'",w=32,h.index-1>=0)w=p.charCodeAt(h.index-1);else for(M=l-1;M>=0&&!(c[M].type==="softbreak"||c[M].type==="hardbreak");M--)if(c[M].type==="text"){w=c[M].content.charCodeAt(c[M].content.length-1);break}if(y=32,g<b)y=p.charCodeAt(g);else for(M=l+1;M<c.length&&!(c[M].type==="softbreak"||c[M].type==="hardbreak");M++)if(c[M].type==="text"){y=c[M].content.charCodeAt(0);break}if(m=n(w)||t(String.fromCharCode(w)),T=n(y)||t(String.fromCharCode(y)),x=e(w),F=e(y),F?C=!1:T&&(x||m||(C=!1)),x?D=!1:m&&(F||T||(D=!1)),y===34&&h[0]==='"'&&w>=48&&w<=57&&(D=C=!1),C&&D&&(C=!1,D=T),!C&&!D){O&&(f.content=i(f.content,h.index,s));continue}if(D){for(M=L.length-1;M>=0&&(v=L[M],!(L[M].level<S));M--)if(v.single===O&&L[M].level===S){v=L[M],O?(ce=u.md.options.quotes[2],z=u.md.options.quotes[3]):(ce=u.md.options.quotes[0],z=u.md.options.quotes[1]),f.content=i(f.content,h.index,z),c[v.token].content=i(c[v.token].content,v.pos,ce),g+=z.length-1,v.token===l&&(g+=ce.length-1),p=f.content,b=p.length,L.length=M;continue e}}C?L.push({token:l,pos:h.index,single:O,level:S}):D&&O&&(f.content=i(f.content,h.index,s))}}}}return Di=function(u){var l;if(u.md.options.typographer)for(l=u.tokens.length-1;l>=0;l--)u.tokens[l].type!=="inline"||!r.test(u.tokens[l].content)||a(u.tokens[l].children,u)},Di}var Mi,kf;function Pi(){if(kf)return Mi;kf=1;function e(t,n,r){this.type=t,this.tag=n,this.attrs=null,this.map=null,this.nesting=r,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}return e.prototype.attrIndex=function(n){var r,o,s;if(!this.attrs)return-1;for(r=this.attrs,o=0,s=r.length;o<s;o++)if(r[o][0]===n)return o;return-1},e.prototype.attrPush=function(n){this.attrs?this.attrs.push(n):this.attrs=[n]},e.prototype.attrSet=function(n,r){var o=this.attrIndex(n),s=[n,r];o<0?this.attrPush(s):this.attrs[o]=s},e.prototype.attrGet=function(n){var r=this.attrIndex(n),o=null;return r>=0&&(o=this.attrs[r][1]),o},e.prototype.attrJoin=function(n,r){var o=this.attrIndex(n);o<0?this.attrPush([n,r]):this.attrs[o][1]=this.attrs[o][1]+" "+r},Mi=e,Mi}var Ri,xf;function Zv(){if(xf)return Ri;xf=1;var e=Pi();function t(n,r,o){this.src=n,this.env=o,this.tokens=[],this.inlineMode=!1,this.md=r}return t.prototype.Token=e,Ri=t,Ri}var qi,Cf;function Yv(){if(Cf)return qi;Cf=1;var e=xi(),t=[["normalize",Uv()],["block",Wv()],["inline",Gv()],["linkify",Kv()],["replacements",Jv()],["smartquotes",Qv()]];function n(){this.ruler=new e;for(var r=0;r<t.length;r++)this.ruler.push(t[r][0],t[r][1])}return n.prototype.process=function(r){var o,s,i;for(i=this.ruler.getRules(""),o=0,s=i.length;o<s;o++)i[o](r)},n.prototype.State=Zv(),qi=n,qi}var Fi,Tf;function Xv(){if(Tf)return Fi;Tf=1;var e=Ie().isSpace;function t(r,o){var s=r.bMarks[o]+r.blkIndent,i=r.eMarks[o];return r.src.substr(s,i-s)}function n(r){var o=[],s=0,i=r.length,a,c=0,u=0,l=!1,f=0;for(a=r.charCodeAt(s);s<i;)a===96?l?(l=!1,f=s):c%2===0&&(l=!0,f=s):a===124&&c%2===0&&!l&&(o.push(r.substring(u,s)),u=s+1),a===92?c++:c=0,s++,s===i&&l&&(l=!1,s=f+1),a=r.charCodeAt(s);return o.push(r.substring(u)),o}return Fi=function(o,s,i,a){var c,u,l,f,p,h,g,b,S,v,w,y;if(s+2>i||(p=s+1,o.sCount[p]<o.blkIndent)||o.sCount[p]-o.blkIndent>=4||(l=o.bMarks[p]+o.tShift[p],l>=o.eMarks[p])||(c=o.src.charCodeAt(l++),c!==124&&c!==45&&c!==58))return!1;for(;l<o.eMarks[p];){if(c=o.src.charCodeAt(l),c!==124&&c!==45&&c!==58&&!e(c))return!1;l++}for(u=t(o,s+1),h=u.split("|"),S=[],f=0;f<h.length;f++){if(v=h[f].trim(),!v){if(f===0||f===h.length-1)continue;return!1}if(!/^:?-+:?$/.test(v))return!1;v.charCodeAt(v.length-1)===58?S.push(v.charCodeAt(0)===58?"center":"right"):v.charCodeAt(0)===58?S.push("left"):S.push("")}if(u=t(o,s).trim(),u.indexOf("|")===-1||o.sCount[s]-o.blkIndent>=4||(h=n(u.replace(/^\||\|$/g,"")),g=h.length,g>S.length))return!1;if(a)return!0;for(b=o.push("table_open","table",1),b.map=w=[s,0],b=o.push("thead_open","thead",1),b.map=[s,s+1],b=o.push("tr_open","tr",1),b.map=[s,s+1],f=0;f<h.length;f++)b=o.push("th_open","th",1),b.map=[s,s+1],S[f]&&(b.attrs=[["style","text-align:"+S[f]]]),b=o.push("inline","",0),b.content=h[f].trim(),b.map=[s,s+1],b.children=[],b=o.push("th_close","th",-1);for(b=o.push("tr_close","tr",-1),b=o.push("thead_close","thead",-1),b=o.push("tbody_open","tbody",1),b.map=y=[s+2,0],p=s+2;p<i&&!(o.sCount[p]<o.blkIndent||(u=t(o,p).trim(),u.indexOf("|")===-1)||o.sCount[p]-o.blkIndent>=4);p++){for(h=n(u.replace(/^\||\|$/g,"")),b=o.push("tr_open","tr",1),f=0;f<g;f++)b=o.push("td_open","td",1),S[f]&&(b.attrs=[["style","text-align:"+S[f]]]),b=o.push("inline","",0),b.content=h[f]?h[f].trim():"",b.children=[],b=o.push("td_close","td",-1);b=o.push("tr_close","tr",-1)}return b=o.push("tbody_close","tbody",-1),b=o.push("table_close","table",-1),w[1]=y[1]=p,o.line=p,!0},Fi}var Li,Ef;function eb(){return Ef||(Ef=1,Li=function(t,n,r){var o,s,i;if(t.sCount[n]-t.blkIndent<4)return!1;for(s=o=n+1;o<r;){if(t.isEmpty(o)){o++;continue}if(t.sCount[o]-t.blkIndent>=4){o++,s=o;continue}break}return t.line=s,i=t.push("code_block","code",0),i.content=t.getLines(n,s,4+t.blkIndent,!0),i.map=[n,t.line],!0}),Li}var Oi,If;function tb(){return If||(If=1,Oi=function(t,n,r,o){var s,i,a,c,u,l,f,p=!1,h=t.bMarks[n]+t.tShift[n],g=t.eMarks[n];if(t.sCount[n]-t.blkIndent>=4||h+3>g||(s=t.src.charCodeAt(h),s!==126&&s!==96)||(u=h,h=t.skipChars(h,s),i=h-u,i<3)||(f=t.src.slice(u,h),a=t.src.slice(h,g),a.indexOf(String.fromCharCode(s))>=0))return!1;if(o)return!0;for(c=n;c++,!(c>=r||(h=u=t.bMarks[c]+t.tShift[c],g=t.eMarks[c],h<g&&t.sCount[c]<t.blkIndent));)if(t.src.charCodeAt(h)===s&&!(t.sCount[c]-t.blkIndent>=4)&&(h=t.skipChars(h,s),!(h-u<i)&&(h=t.skipSpaces(h),!(h<g)))){p=!0;break}return i=t.sCount[n],t.line=c+(p?1:0),l=t.push("fence","code",0),l.info=a,l.content=t.getLines(n+1,c,i,!0),l.markup=f,l.map=[n,t.line],!0}),Oi}var Ni,Af;function nb(){if(Af)return Ni;Af=1;var e=Ie().isSpace;return Ni=function(n,r,o,s){var i,a,c,u,l,f,p,h,g,b,S,v,w,y,m,T,x,F,C,D,M=n.lineMax,O=n.bMarks[r]+n.tShift[r],L=n.eMarks[r];if(n.sCount[r]-n.blkIndent>=4||n.src.charCodeAt(O++)!==62)return!1;if(s)return!0;for(u=g=n.sCount[r]+O-(n.bMarks[r]+n.tShift[r]),n.src.charCodeAt(O)===32?(O++,u++,g++,i=!1,T=!0):n.src.charCodeAt(O)===9?(T=!0,(n.bsCount[r]+g)%4===3?(O++,u++,g++,i=!1):i=!0):T=!1,b=[n.bMarks[r]],n.bMarks[r]=O;O<L&&(a=n.src.charCodeAt(O),e(a));){a===9?g+=4-(g+n.bsCount[r]+(i?1:0))%4:g++;O++}for(S=[n.bsCount[r]],n.bsCount[r]=n.sCount[r]+1+(T?1:0),f=O>=L,y=[n.sCount[r]],n.sCount[r]=g-u,m=[n.tShift[r]],n.tShift[r]=O-n.bMarks[r],F=n.md.block.ruler.getRules("blockquote"),w=n.parentType,n.parentType="blockquote",D=!1,h=r+1;h<o&&(n.sCount[h]<n.blkIndent&&(D=!0),O=n.bMarks[h]+n.tShift[h],L=n.eMarks[h],!(O>=L));h++){if(n.src.charCodeAt(O++)===62&&!D){for(u=g=n.sCount[h]+O-(n.bMarks[h]+n.tShift[h]),n.src.charCodeAt(O)===32?(O++,u++,g++,i=!1,T=!0):n.src.charCodeAt(O)===9?(T=!0,(n.bsCount[h]+g)%4===3?(O++,u++,g++,i=!1):i=!0):T=!1,b.push(n.bMarks[h]),n.bMarks[h]=O;O<L&&(a=n.src.charCodeAt(O),e(a));){a===9?g+=4-(g+n.bsCount[h]+(i?1:0))%4:g++;O++}f=O>=L,S.push(n.bsCount[h]),n.bsCount[h]=n.sCount[h]+1+(T?1:0),y.push(n.sCount[h]),n.sCount[h]=g-u,m.push(n.tShift[h]),n.tShift[h]=O-n.bMarks[h];continue}if(f)break;for(x=!1,c=0,l=F.length;c<l;c++)if(F[c](n,h,o,!0)){x=!0;break}if(x){n.lineMax=h,n.blkIndent!==0&&(b.push(n.bMarks[h]),S.push(n.bsCount[h]),m.push(n.tShift[h]),y.push(n.sCount[h]),n.sCount[h]-=n.blkIndent);break}b.push(n.bMarks[h]),S.push(n.bsCount[h]),m.push(n.tShift[h]),y.push(n.sCount[h]),n.sCount[h]=-1}for(v=n.blkIndent,n.blkIndent=0,C=n.push("blockquote_open","blockquote",1),C.markup=">",C.map=p=[r,0],n.md.block.tokenize(n,r,h),C=n.push("blockquote_close","blockquote",-1),C.markup=">",n.lineMax=M,n.parentType=w,p[1]=n.line,c=0;c<m.length;c++)n.bMarks[c+r]=b[c],n.tShift[c+r]=m[c],n.sCount[c+r]=y[c],n.bsCount[c+r]=S[c];return n.blkIndent=v,!0},Ni}var Bi,Df;function rb(){if(Df)return Bi;Df=1;var e=Ie().isSpace;return Bi=function(n,r,o,s){var i,a,c,u,l=n.bMarks[r]+n.tShift[r],f=n.eMarks[r];if(n.sCount[r]-n.blkIndent>=4||(i=n.src.charCodeAt(l++),i!==42&&i!==45&&i!==95))return!1;for(a=1;l<f;){if(c=n.src.charCodeAt(l++),c!==i&&!e(c))return!1;c===i&&a++}return a<3?!1:(s||(n.line=r+1,u=n.push("hr","hr",0),u.map=[r,n.line],u.markup=Array(a+1).join(String.fromCharCode(i))),!0)},Bi}var zi,Mf;function ob(){if(Mf)return zi;Mf=1;var e=Ie().isSpace;function t(o,s){var i,a,c,u;return a=o.bMarks[s]+o.tShift[s],c=o.eMarks[s],i=o.src.charCodeAt(a++),i!==42&&i!==45&&i!==43||a<c&&(u=o.src.charCodeAt(a),!e(u))?-1:a}function n(o,s){var i,a=o.bMarks[s]+o.tShift[s],c=a,u=o.eMarks[s];if(c+1>=u||(i=o.src.charCodeAt(c++),i<48||i>57))return-1;for(;;){if(c>=u)return-1;if(i=o.src.charCodeAt(c++),i>=48&&i<=57){if(c-a>=10)return-1;continue}if(i===41||i===46)break;return-1}return c<u&&(i=o.src.charCodeAt(c),!e(i))?-1:c}function r(o,s){var i,a,c=o.level+2;for(i=s+2,a=o.tokens.length-2;i<a;i++)o.tokens[i].level===c&&o.tokens[i].type==="paragraph_open"&&(o.tokens[i+2].hidden=!0,o.tokens[i].hidden=!0,i+=2)}return zi=function(s,i,a,c){var u,l,f,p,h,g,b,S,v,w,y,m,T,x,F,C,D,M,O,L,ce,z,oe,se,ie,le,Se,me,xe=!1,Te=!0;if(s.sCount[i]-s.blkIndent>=4)return!1;if(c&&s.parentType==="paragraph"&&s.tShift[i]>=s.blkIndent&&(xe=!0),(oe=n(s,i))>=0){if(b=!0,ie=s.bMarks[i]+s.tShift[i],T=Number(s.src.substr(ie,oe-ie-1)),xe&&T!==1)return!1}else if((oe=t(s,i))>=0)b=!1;else return!1;if(xe&&s.skipSpaces(oe)>=s.eMarks[i])return!1;if(m=s.src.charCodeAt(oe-1),c)return!0;for(y=s.tokens.length,b?(me=s.push("ordered_list_open","ol",1),T!==1&&(me.attrs=[["start",T]])):me=s.push("bullet_list_open","ul",1),me.map=w=[i,0],me.markup=String.fromCharCode(m),F=i,se=!1,Se=s.md.block.ruler.getRules("list"),O=s.parentType,s.parentType="list";F<a;){for(z=oe,x=s.eMarks[F],g=C=s.sCount[F]+oe-(s.bMarks[i]+s.tShift[i]);z<x;){if(u=s.src.charCodeAt(z),u===9)C+=4-(C+s.bsCount[F])%4;else if(u===32)C++;else break;z++}if(l=z,l>=x?h=1:h=C-g,h>4&&(h=1),p=g+h,me=s.push("list_item_open","li",1),me.markup=String.fromCharCode(m),me.map=S=[i,0],D=s.blkIndent,ce=s.tight,L=s.tShift[i],M=s.sCount[i],s.blkIndent=p,s.tight=!0,s.tShift[i]=l-s.bMarks[i],s.sCount[i]=C,l>=x&&s.isEmpty(i+1)?s.line=Math.min(s.line+2,a):s.md.block.tokenize(s,i,a,!0),(!s.tight||se)&&(Te=!1),se=s.line-i>1&&s.isEmpty(s.line-1),s.blkIndent=D,s.tShift[i]=L,s.sCount[i]=M,s.tight=ce,me=s.push("list_item_close","li",-1),me.markup=String.fromCharCode(m),F=i=s.line,S[1]=F,l=s.bMarks[i],F>=a||s.sCount[F]<s.blkIndent)break;for(le=!1,f=0,v=Se.length;f<v;f++)if(Se[f](s,F,a,!0)){le=!0;break}if(le)break;if(b){if(oe=n(s,F),oe<0)break}else if(oe=t(s,F),oe<0)break;if(m!==s.src.charCodeAt(oe-1))break}return b?me=s.push("ordered_list_close","ol",-1):me=s.push("bullet_list_close","ul",-1),me.markup=String.fromCharCode(m),w[1]=F,s.line=F,s.parentType=O,Te&&r(s,y),!0},zi}var Hi,Pf;function sb(){if(Pf)return Hi;Pf=1;var e=Ie().normalizeReference,t=Ie().isSpace;return Hi=function(r,o,s,i){var a,c,u,l,f,p,h,g,b,S,v,w,y,m,T,x,F=0,C=r.bMarks[o]+r.tShift[o],D=r.eMarks[o],M=o+1;if(r.sCount[o]-r.blkIndent>=4||r.src.charCodeAt(C)!==91)return!1;for(;++C<D;)if(r.src.charCodeAt(C)===93&&r.src.charCodeAt(C-1)!==92){if(C+1===D||r.src.charCodeAt(C+1)!==58)return!1;break}for(l=r.lineMax,T=r.md.block.ruler.getRules("reference"),S=r.parentType,r.parentType="reference";M<l&&!r.isEmpty(M);M++)if(!(r.sCount[M]-r.blkIndent>3)&&!(r.sCount[M]<0)){for(m=!1,p=0,h=T.length;p<h;p++)if(T[p](r,M,l,!0)){m=!0;break}if(m)break}for(y=r.getLines(o,M,r.blkIndent,!1).trim(),D=y.length,C=1;C<D;C++){if(a=y.charCodeAt(C),a===91)return!1;if(a===93){b=C;break}else a===10?F++:a===92&&(C++,C<D&&y.charCodeAt(C)===10&&F++)}if(b<0||y.charCodeAt(b+1)!==58)return!1;for(C=b+2;C<D;C++)if(a=y.charCodeAt(C),a===10)F++;else if(!t(a))break;if(v=r.md.helpers.parseLinkDestination(y,C,D),!v.ok||(f=r.md.normalizeLink(v.str),!r.md.validateLink(f)))return!1;for(C=v.pos,F+=v.lines,c=C,u=F,w=C;C<D;C++)if(a=y.charCodeAt(C),a===10)F++;else if(!t(a))break;for(v=r.md.helpers.parseLinkTitle(y,C,D),C<D&&w!==C&&v.ok?(x=v.str,C=v.pos,F+=v.lines):(x="",C=c,F=u);C<D&&(a=y.charCodeAt(C),!!t(a));)C++;if(C<D&&y.charCodeAt(C)!==10&&x)for(x="",C=c,F=u;C<D&&(a=y.charCodeAt(C),!!t(a));)C++;return C<D&&y.charCodeAt(C)!==10||(g=e(y.slice(1,b)),!g)?!1:(i||(typeof r.env.references=="undefined"&&(r.env.references={}),typeof r.env.references[g]=="undefined"&&(r.env.references[g]={title:x,href:f}),r.parentType=S,r.line=o+F+1),!0)},Hi}var Vi,Rf;function ib(){if(Rf)return Vi;Rf=1;var e=Ie().isSpace;return Vi=function(n,r,o,s){var i,a,c,u,l=n.bMarks[r]+n.tShift[r],f=n.eMarks[r];if(n.sCount[r]-n.blkIndent>=4||(i=n.src.charCodeAt(l),i!==35||l>=f))return!1;for(a=1,i=n.src.charCodeAt(++l);i===35&&l<f&&a<=6;)a++,i=n.src.charCodeAt(++l);return a>6||l<f&&!e(i)?!1:(s||(f=n.skipSpacesBack(f,l),c=n.skipCharsBack(f,35,l),c>l&&e(n.src.charCodeAt(c-1))&&(f=c),n.line=r+1,u=n.push("heading_open","h"+String(a),1),u.markup="########".slice(0,a),u.map=[r,n.line],u=n.push("inline","",0),u.content=n.src.slice(l,f).trim(),u.map=[r,n.line],u.children=[],u=n.push("heading_close","h"+String(a),-1),u.markup="########".slice(0,a)),!0)},Vi}var $i,qf;function ab(){return qf||(qf=1,$i=function(t,n,r){var o,s,i,a,c,u,l,f,p,h=n+1,g,b=t.md.block.ruler.getRules("paragraph");if(t.sCount[n]-t.blkIndent>=4)return!1;for(g=t.parentType,t.parentType="paragraph";h<r&&!t.isEmpty(h);h++)if(!(t.sCount[h]-t.blkIndent>3)){if(t.sCount[h]>=t.blkIndent&&(u=t.bMarks[h]+t.tShift[h],l=t.eMarks[h],u<l&&(p=t.src.charCodeAt(u),(p===45||p===61)&&(u=t.skipChars(u,p),u=t.skipSpaces(u),u>=l)))){f=p===61?1:2;break}if(!(t.sCount[h]<0)){for(s=!1,i=0,a=b.length;i<a;i++)if(b[i](t,h,r,!0)){s=!0;break}if(s)break}}return f?(o=t.getLines(n,h,t.blkIndent,!1).trim(),t.line=h+1,c=t.push("heading_open","h"+String(f),1),c.markup=String.fromCharCode(p),c.map=[n,t.line],c=t.push("inline","",0),c.content=o,c.map=[n,t.line-1],c.children=[],c=t.push("heading_close","h"+String(f),-1),c.markup=String.fromCharCode(p),t.parentType=g,!0):!1}),$i}var ji,Ff;function cb(){return Ff||(Ff=1,ji=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","meta","nav","noframes","ol","optgroup","option","p","param","section","source","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"]),ji}var Eo={},Lf;function Of(){if(Lf)return Eo;Lf=1;var e="[a-zA-Z_:][a-zA-Z0-9:._-]*",t="[^\"'=<>`\\x00-\\x20]+",n="'[^']*'",r='"[^"]*"',o="(?:"+t+"|"+n+"|"+r+")",s="(?:\\s+"+e+"(?:\\s*=\\s*"+o+")?)",i="<[A-Za-z][A-Za-z0-9\\-]*"+s+"*\\s*\\/?>",a="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",c="<!---->|<!--(?:-?[^>-])(?:-?[^-])*-->",u="<[?].*?[?]>",l="<![A-Z]+\\s+[^>]*>",f="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",p=new RegExp("^(?:"+i+"|"+a+"|"+c+"|"+u+"|"+l+"|"+f+")"),h=new RegExp("^(?:"+i+"|"+a+")");return Eo.HTML_TAG_RE=p,Eo.HTML_OPEN_CLOSE_TAG_RE=h,Eo}var Ui,Nf;function lb(){if(Nf)return Ui;Nf=1;var e=cb(),t=Of().HTML_OPEN_CLOSE_TAG_RE,n=[[/^<(script|pre|style)(?=(\s|>|$))/i,/<\/(script|pre|style)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+e.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(t.source+"\\s*$"),/^$/,!1]];return Ui=function(o,s,i,a){var c,u,l,f,p=o.bMarks[s]+o.tShift[s],h=o.eMarks[s];if(o.sCount[s]-o.blkIndent>=4||!o.md.options.html||o.src.charCodeAt(p)!==60)return!1;for(f=o.src.slice(p,h),c=0;c<n.length&&!n[c][0].test(f);c++);if(c===n.length)return!1;if(a)return n[c][2];if(u=s+1,!n[c][1].test(f)){for(;u<i&&!(o.sCount[u]<o.blkIndent);u++)if(p=o.bMarks[u]+o.tShift[u],h=o.eMarks[u],f=o.src.slice(p,h),n[c][1].test(f)){f.length!==0&&u++;break}}return o.line=u,l=o.push("html_block","",0),l.map=[s,u],l.content=o.getLines(s,u,o.blkIndent,!0),!0},Ui}var Wi,Bf;function ub(){return Bf||(Bf=1,Wi=function(t,n){var r,o,s,i,a,c,u=n+1,l=t.md.block.ruler.getRules("paragraph"),f=t.lineMax;for(c=t.parentType,t.parentType="paragraph";u<f&&!t.isEmpty(u);u++)if(!(t.sCount[u]-t.blkIndent>3)&&!(t.sCount[u]<0)){for(o=!1,s=0,i=l.length;s<i;s++)if(l[s](t,u,f,!0)){o=!0;break}if(o)break}return r=t.getLines(n,u,t.blkIndent,!1).trim(),t.line=u,a=t.push("paragraph_open","p",1),a.map=[n,t.line],a=t.push("inline","",0),a.content=r,a.map=[n,t.line],a.children=[],a=t.push("paragraph_close","p",-1),t.parentType=c,!0}),Wi}var Gi,zf;function fb(){if(zf)return Gi;zf=1;var e=Pi(),t=Ie().isSpace;function n(r,o,s,i){var a,c,u,l,f,p,h,g;for(this.src=r,this.md=o,this.env=s,this.tokens=i,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.parentType="root",this.level=0,this.result="",c=this.src,g=!1,u=l=p=h=0,f=c.length;l<f;l++){if(a=c.charCodeAt(l),!g)if(t(a)){p++,a===9?h+=4-h%4:h++;continue}else g=!0;(a===10||l===f-1)&&(a!==10&&l++,this.bMarks.push(u),this.eMarks.push(l),this.tShift.push(p),this.sCount.push(h),this.bsCount.push(0),g=!1,p=0,h=0,u=l+1)}this.bMarks.push(c.length),this.eMarks.push(c.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}return n.prototype.push=function(r,o,s){var i=new e(r,o,s);return i.block=!0,s<0&&this.level--,i.level=this.level,s>0&&this.level++,this.tokens.push(i),i},n.prototype.isEmpty=function(o){return this.bMarks[o]+this.tShift[o]>=this.eMarks[o]},n.prototype.skipEmptyLines=function(o){for(var s=this.lineMax;o<s&&!(this.bMarks[o]+this.tShift[o]<this.eMarks[o]);o++);return o},n.prototype.skipSpaces=function(o){for(var s,i=this.src.length;o<i&&(s=this.src.charCodeAt(o),!!t(s));o++);return o},n.prototype.skipSpacesBack=function(o,s){if(o<=s)return o;for(;o>s;)if(!t(this.src.charCodeAt(--o)))return o+1;return o},n.prototype.skipChars=function(o,s){for(var i=this.src.length;o<i&&this.src.charCodeAt(o)===s;o++);return o},n.prototype.skipCharsBack=function(o,s,i){if(o<=i)return o;for(;o>i;)if(s!==this.src.charCodeAt(--o))return o+1;return o},n.prototype.getLines=function(o,s,i,a){var c,u,l,f,p,h,g,b=o;if(o>=s)return"";for(h=new Array(s-o),c=0;b<s;b++,c++){for(u=0,g=f=this.bMarks[b],b+1<s||a?p=this.eMarks[b]+1:p=this.eMarks[b];f<p&&u<i;){if(l=this.src.charCodeAt(f),t(l))l===9?u+=4-(u+this.bsCount[b])%4:u++;else if(f-g<this.tShift[b])u++;else break;f++}u>i?h[c]=new Array(u-i+1).join(" ")+this.src.slice(f,p):h[c]=this.src.slice(f,p)}return h.join("")},n.prototype.Token=e,Gi=n,Gi}var Ki,Hf;function db(){if(Hf)return Ki;Hf=1;var e=xi(),t=[["table",Xv(),["paragraph","reference"]],["code",eb()],["fence",tb(),["paragraph","reference","blockquote","list"]],["blockquote",nb(),["paragraph","reference","blockquote","list"]],["hr",rb(),["paragraph","reference","blockquote","list"]],["list",ob(),["paragraph","reference","blockquote"]],["reference",sb()],["heading",ib(),["paragraph","reference","blockquote"]],["lheading",ab()],["html_block",lb(),["paragraph","reference","blockquote"]],["paragraph",ub()]];function n(){this.ruler=new e;for(var r=0;r<t.length;r++)this.ruler.push(t[r][0],t[r][1],{alt:(t[r][2]||[]).slice()})}return n.prototype.tokenize=function(r,o,s){for(var i,a,c=this.ruler.getRules(""),u=c.length,l=o,f=!1,p=r.md.options.maxNesting;l<s&&(r.line=l=r.skipEmptyLines(l),!(l>=s||r.sCount[l]<r.blkIndent));){if(r.level>=p){r.line=s;break}for(a=0;a<u&&(i=c[a](r,l,s,!1),!i);a++);r.tight=!f,r.isEmpty(r.line-1)&&(f=!0),l=r.line,l<s&&r.isEmpty(l)&&(f=!0,l++,r.line=l)}},n.prototype.parse=function(r,o,s,i){var a;r&&(a=new this.State(r,o,s,i),this.tokenize(a,a.line,a.lineMax))},n.prototype.State=fb(),Ki=n,Ki}var Ji,Vf;function hb(){if(Vf)return Ji;Vf=1;function e(t){switch(t){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}return Ji=function(n,r){for(var o=n.pos;o<n.posMax&&!e(n.src.charCodeAt(o));)o++;return o===n.pos?!1:(r||(n.pending+=n.src.slice(n.pos,o)),n.pos=o,!0)},Ji}var Qi,$f;function pb(){if($f)return Qi;$f=1;var e=Ie().isSpace;return Qi=function(n,r){var o,s,i=n.pos;if(n.src.charCodeAt(i)!==10)return!1;for(o=n.pending.length-1,s=n.posMax,r||(o>=0&&n.pending.charCodeAt(o)===32?o>=1&&n.pending.charCodeAt(o-1)===32?(n.pending=n.pending.replace(/ +$/,""),n.push("hardbreak","br",0)):(n.pending=n.pending.slice(0,-1),n.push("softbreak","br",0)):n.push("softbreak","br",0)),i++;i<s&&e(n.src.charCodeAt(i));)i++;return n.pos=i,!0},Qi}var Zi,jf;function gb(){if(jf)return Zi;jf=1;for(var e=Ie().isSpace,t=[],n=0;n<256;n++)t.push(0);return"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(r){t[r.charCodeAt(0)]=1}),Zi=function(o,s){var i,a=o.pos,c=o.posMax;if(o.src.charCodeAt(a)!==92)return!1;if(a++,a<c){if(i=o.src.charCodeAt(a),i<256&&t[i]!==0)return s||(o.pending+=o.src[a]),o.pos+=2,!0;if(i===10){for(s||o.push("hardbreak","br",0),a++;a<c&&(i=o.src.charCodeAt(a),!!e(i));)a++;return o.pos=a,!0}}return s||(o.pending+="\\"),o.pos++,!0},Zi}var Yi,Uf;function mb(){return Uf||(Uf=1,Yi=function(t,n){var r,o,s,i,a,c,u=t.pos,l=t.src.charCodeAt(u);if(l!==96)return!1;for(r=u,u++,o=t.posMax;u<o&&t.src.charCodeAt(u)===96;)u++;for(s=t.src.slice(r,u),i=a=u;(i=t.src.indexOf("`",a))!==-1;){for(a=i+1;a<o&&t.src.charCodeAt(a)===96;)a++;if(a-i===s.length)return n||(c=t.push("code_inline","code",0),c.markup=s,c.content=t.src.slice(u,i).replace(/[ \n]+/g," ").trim()),t.pos=a,!0}return n||(t.pending+=s),t.pos+=s.length,!0}),Yi}var Io={},Wf;function Gf(){return Wf||(Wf=1,Io.tokenize=function(t,n){var r,o,s,i,a,c=t.pos,u=t.src.charCodeAt(c);if(n||u!==126||(o=t.scanDelims(t.pos,!0),i=o.length,a=String.fromCharCode(u),i<2))return!1;for(i%2&&(s=t.push("text","",0),s.content=a,i--),r=0;r<i;r+=2)s=t.push("text","",0),s.content=a+a,t.delimiters.push({marker:u,jump:r,token:t.tokens.length-1,level:t.level,end:-1,open:o.can_open,close:o.can_close});return t.pos+=o.length,!0},Io.postProcess=function(t){var n,r,o,s,i,a=[],c=t.delimiters,u=t.delimiters.length;for(n=0;n<u;n++)o=c[n],o.marker===126&&o.end!==-1&&(s=c[o.end],i=t.tokens[o.token],i.type="s_open",i.tag="s",i.nesting=1,i.markup="~~",i.content="",i=t.tokens[s.token],i.type="s_close",i.tag="s",i.nesting=-1,i.markup="~~",i.content="",t.tokens[s.token-1].type==="text"&&t.tokens[s.token-1].content==="~"&&a.push(s.token-1));for(;a.length;){for(n=a.pop(),r=n+1;r<t.tokens.length&&t.tokens[r].type==="s_close";)r++;r--,n!==r&&(i=t.tokens[r],t.tokens[r]=t.tokens[n],t.tokens[n]=i)}}),Io}var Ao={},Kf;function Jf(){return Kf||(Kf=1,Ao.tokenize=function(t,n){var r,o,s,i=t.pos,a=t.src.charCodeAt(i);if(n||a!==95&&a!==42)return!1;for(o=t.scanDelims(t.pos,a===42),r=0;r<o.length;r++)s=t.push("text","",0),s.content=String.fromCharCode(a),t.delimiters.push({marker:a,length:o.length,jump:r,token:t.tokens.length-1,level:t.level,end:-1,open:o.can_open,close:o.can_close});return t.pos+=o.length,!0},Ao.postProcess=function(t){var n,r,o,s,i,a,c=t.delimiters,u=t.delimiters.length;for(n=u-1;n>=0;n--)r=c[n],!(r.marker!==95&&r.marker!==42)&&r.end!==-1&&(o=c[r.end],a=n>0&&c[n-1].end===r.end+1&&c[n-1].token===r.token-1&&c[r.end+1].token===o.token+1&&c[n-1].marker===r.marker,i=String.fromCharCode(r.marker),s=t.tokens[r.token],s.type=a?"strong_open":"em_open",s.tag=a?"strong":"em",s.nesting=1,s.markup=a?i+i:i,s.content="",s=t.tokens[o.token],s.type=a?"strong_close":"em_close",s.tag=a?"strong":"em",s.nesting=-1,s.markup=a?i+i:i,s.content="",a&&(t.tokens[c[n-1].token].content="",t.tokens[c[r.end+1].token].content="",n--))}),Ao}var Xi,Qf;function vb(){if(Qf)return Xi;Qf=1;var e=Ie().normalizeReference,t=Ie().isSpace;return Xi=function(r,o){var s,i,a,c,u,l,f,p,h,g,b="",S=r.pos,v=r.posMax,w=r.pos,y=!0;if(r.src.charCodeAt(r.pos)!==91||(u=r.pos+1,c=r.md.helpers.parseLinkLabel(r,r.pos,!0),c<0))return!1;if(l=c+1,l<v&&r.src.charCodeAt(l)===40){for(y=!1,l++;l<v&&(i=r.src.charCodeAt(l),!(!t(i)&&i!==10));l++);if(l>=v)return!1;for(w=l,f=r.md.helpers.parseLinkDestination(r.src,l,r.posMax),f.ok&&(b=r.md.normalizeLink(f.str),r.md.validateLink(b)?l=f.pos:b=""),w=l;l<v&&(i=r.src.charCodeAt(l),!(!t(i)&&i!==10));l++);if(f=r.md.helpers.parseLinkTitle(r.src,l,r.posMax),l<v&&w!==l&&f.ok)for(h=f.str,l=f.pos;l<v&&(i=r.src.charCodeAt(l),!(!t(i)&&i!==10));l++);else h="";(l>=v||r.src.charCodeAt(l)!==41)&&(y=!0),l++}if(y){if(typeof r.env.references=="undefined")return!1;if(l<v&&r.src.charCodeAt(l)===91?(w=l+1,l=r.md.helpers.parseLinkLabel(r,l),l>=0?a=r.src.slice(w,l++):l=c+1):l=c+1,a||(a=r.src.slice(u,c)),p=r.env.references[e(a)],!p)return r.pos=S,!1;b=p.href,h=p.title}return o||(r.pos=u,r.posMax=c,g=r.push("link_open","a",1),g.attrs=s=[["href",b]],h&&s.push(["title",h]),r.md.inline.tokenize(r),g=r.push("link_close","a",-1)),r.pos=l,r.posMax=v,!0},Xi}var ea,Zf;function bb(){if(Zf)return ea;Zf=1;var e=Ie().normalizeReference,t=Ie().isSpace;return ea=function(r,o){var s,i,a,c,u,l,f,p,h,g,b,S,v,w="",y=r.pos,m=r.posMax;if(r.src.charCodeAt(r.pos)!==33||r.src.charCodeAt(r.pos+1)!==91||(l=r.pos+2,u=r.md.helpers.parseLinkLabel(r,r.pos+1,!1),u<0))return!1;if(f=u+1,f<m&&r.src.charCodeAt(f)===40){for(f++;f<m&&(i=r.src.charCodeAt(f),!(!t(i)&&i!==10));f++);if(f>=m)return!1;for(v=f,h=r.md.helpers.parseLinkDestination(r.src,f,r.posMax),h.ok&&(w=r.md.normalizeLink(h.str),r.md.validateLink(w)?f=h.pos:w=""),v=f;f<m&&(i=r.src.charCodeAt(f),!(!t(i)&&i!==10));f++);if(h=r.md.helpers.parseLinkTitle(r.src,f,r.posMax),f<m&&v!==f&&h.ok)for(g=h.str,f=h.pos;f<m&&(i=r.src.charCodeAt(f),!(!t(i)&&i!==10));f++);else g="";if(f>=m||r.src.charCodeAt(f)!==41)return r.pos=y,!1;f++}else{if(typeof r.env.references=="undefined")return!1;if(f<m&&r.src.charCodeAt(f)===91?(v=f+1,f=r.md.helpers.parseLinkLabel(r,f),f>=0?c=r.src.slice(v,f++):f=u+1):f=u+1,c||(c=r.src.slice(l,u)),p=r.env.references[e(c)],!p)return r.pos=y,!1;w=p.href,g=p.title}return o||(a=r.src.slice(l,u),r.md.inline.parse(a,r.md,r.env,S=[]),b=r.push("image","img",0),b.attrs=s=[["src",w],["alt",""]],b.children=S,b.content=a,g&&s.push(["title",g])),r.pos=f,r.posMax=m,!0},ea}var ta,Yf;function yb(){if(Yf)return ta;Yf=1;var e=/^<([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)>/,t=/^<([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)>/;return ta=function(r,o){var s,i,a,c,u,l,f=r.pos;return r.src.charCodeAt(f)!==60||(s=r.src.slice(f),s.indexOf(">")<0)?!1:t.test(s)?(i=s.match(t),c=i[0].slice(1,-1),u=r.md.normalizeLink(c),r.md.validateLink(u)?(o||(l=r.push("link_open","a",1),l.attrs=[["href",u]],l.markup="autolink",l.info="auto",l=r.push("text","",0),l.content=r.md.normalizeLinkText(c),l=r.push("link_close","a",-1),l.markup="autolink",l.info="auto"),r.pos+=i[0].length,!0):!1):e.test(s)?(a=s.match(e),c=a[0].slice(1,-1),u=r.md.normalizeLink("mailto:"+c),r.md.validateLink(u)?(o||(l=r.push("link_open","a",1),l.attrs=[["href",u]],l.markup="autolink",l.info="auto",l=r.push("text","",0),l.content=r.md.normalizeLinkText(c),l=r.push("link_close","a",-1),l.markup="autolink",l.info="auto"),r.pos+=a[0].length,!0):!1):!1},ta}var na,Xf;function wb(){if(Xf)return na;Xf=1;var e=Of().HTML_TAG_RE;function t(n){var r=n|32;return r>=97&&r<=122}return na=function(r,o){var s,i,a,c,u=r.pos;return!r.md.options.html||(a=r.posMax,r.src.charCodeAt(u)!==60||u+2>=a)||(s=r.src.charCodeAt(u+1),s!==33&&s!==63&&s!==47&&!t(s))||(i=r.src.slice(u).match(e),!i)?!1:(o||(c=r.push("html_inline","",0),c.content=r.src.slice(u,u+i[0].length)),r.pos+=i[0].length,!0)},na}var ra,ed;function Sb(){if(ed)return ra;ed=1;var e=Gu(),t=Ie().has,n=Ie().isValidEntityCode,r=Ie().fromCodePoint,o=/^&#((?:x[a-f0-9]{1,8}|[0-9]{1,8}));/i,s=/^&([a-z][a-z0-9]{1,31});/i;return ra=function(a,c){var u,l,f,p=a.pos,h=a.posMax;if(a.src.charCodeAt(p)!==38)return!1;if(p+1<h){if(u=a.src.charCodeAt(p+1),u===35){if(f=a.src.slice(p).match(o),f)return c||(l=f[1][0].toLowerCase()==="x"?parseInt(f[1].slice(1),16):parseInt(f[1],10),a.pending+=n(l)?r(l):r(65533)),a.pos+=f[0].length,!0}else if(f=a.src.slice(p).match(s),f&&t(e,f[1]))return c||(a.pending+=e[f[1]]),a.pos+=f[0].length,!0}return c||(a.pending+="&"),a.pos++,!0},ra}var oa,td;function _b(){return td||(td=1,oa=function(t){var n,r,o,s,i=t.delimiters,a=t.delimiters.length;for(n=0;n<a;n++)if(o=i[n],!!o.close)for(r=n-o.jump-1;r>=0;){if(s=i[r],s.open&&s.marker===o.marker&&s.end<0&&s.level===o.level){var c=(s.close||o.open)&&typeof s.length!="undefined"&&typeof o.length!="undefined"&&(s.length+o.length)%3===0;if(!c){o.jump=n-r,o.open=!1,s.end=n,s.jump=0;break}}r-=s.jump+1}}),oa}var sa,nd;function kb(){return nd||(nd=1,sa=function(t){var n,r,o=0,s=t.tokens,i=t.tokens.length;for(n=r=0;n<i;n++)o+=s[n].nesting,s[n].level=o,s[n].type==="text"&&n+1<i&&s[n+1].type==="text"?s[n+1].content=s[n].content+s[n+1].content:(n!==r&&(s[r]=s[n]),r++);n!==r&&(s.length=r)}),sa}var ia,rd;function xb(){if(rd)return ia;rd=1;var e=Pi(),t=Ie().isWhiteSpace,n=Ie().isPunctChar,r=Ie().isMdAsciiPunct;function o(s,i,a,c){this.src=s,this.env=a,this.md=i,this.tokens=c,this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[]}return o.prototype.pushPending=function(){var s=new e("text","",0);return s.content=this.pending,s.level=this.pendingLevel,this.tokens.push(s),this.pending="",s},o.prototype.push=function(s,i,a){this.pending&&this.pushPending();var c=new e(s,i,a);return a<0&&this.level--,c.level=this.level,a>0&&this.level++,this.pendingLevel=this.level,this.tokens.push(c),c},o.prototype.scanDelims=function(s,i){var a=s,c,u,l,f,p,h,g,b,S,v=!0,w=!0,y=this.posMax,m=this.src.charCodeAt(s);for(c=s>0?this.src.charCodeAt(s-1):32;a<y&&this.src.charCodeAt(a)===m;)a++;return l=a-s,u=a<y?this.src.charCodeAt(a):32,g=r(c)||n(String.fromCharCode(c)),S=r(u)||n(String.fromCharCode(u)),h=t(c),b=t(u),b?v=!1:S&&(h||g||(v=!1)),h?w=!1:g&&(b||S||(w=!1)),i?(f=v,p=w):(f=v&&(!w||g),p=w&&(!v||S)),{can_open:f,can_close:p,length:l}},o.prototype.Token=e,ia=o,ia}var aa,od;function Cb(){if(od)return aa;od=1;var e=xi(),t=[["text",hb()],["newline",pb()],["escape",gb()],["backticks",mb()],["strikethrough",Gf().tokenize],["emphasis",Jf().tokenize],["link",vb()],["image",bb()],["autolink",yb()],["html_inline",wb()],["entity",Sb()]],n=[["balance_pairs",_b()],["strikethrough",Gf().postProcess],["emphasis",Jf().postProcess],["text_collapse",kb()]];function r(){var o;for(this.ruler=new e,o=0;o<t.length;o++)this.ruler.push(t[o][0],t[o][1]);for(this.ruler2=new e,o=0;o<n.length;o++)this.ruler2.push(n[o][0],n[o][1])}return r.prototype.skipToken=function(o){var s,i,a=o.pos,c=this.ruler.getRules(""),u=c.length,l=o.md.options.maxNesting,f=o.cache;if(typeof f[a]!="undefined"){o.pos=f[a];return}if(o.level<l)for(i=0;i<u&&(o.level++,s=c[i](o,!0),o.level--,!s);i++);else o.pos=o.posMax;s||o.pos++,f[a]=o.pos},r.prototype.tokenize=function(o){for(var s,i,a=this.ruler.getRules(""),c=a.length,u=o.posMax,l=o.md.options.maxNesting;o.pos<u;){if(o.level<l)for(i=0;i<c&&(s=a[i](o,!1),!s);i++);if(s){if(o.pos>=u)break;continue}o.pending+=o.src[o.pos++]}o.pending&&o.pushPending()},r.prototype.parse=function(o,s,i,a){var c,u,l,f=new this.State(o,s,i,a);for(this.tokenize(f),u=this.ruler2.getRules(""),l=u.length,c=0;c<l;c++)u[c](f)},r.prototype.State=xb(),aa=r,aa}var ca,sd;function Tb(){return sd||(sd=1,ca=function(e){var t={};t.src_Any=nf().source,t.src_Cc=of().source,t.src_Z=cf().source,t.src_P=ui().source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");var n="[><|]";return t.src_pseudo_letter="(?:(?!"+n+"|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|"+n+"|"+t.src_ZPCc+")(?!-|_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|"+n+`|[()[\\]{}.,"'?!\\-]).|\\[(?:(?!`+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+`|["]).)+\\"|\\'(?:(?!`+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-]).|\\.{2,4}[a-zA-Z0-9%/]|\\.(?!"+t.src_ZCc+"|[.]).|"+(e&&e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+"\\,(?!"+t.src_ZCc+").|\\!(?!"+t.src_ZCc+"|[!]).|\\?(?!"+t.src_ZCc+"|[?]).)+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy="(^|"+n+'|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}),ca}var la,id;function Eb(){if(id)return la;id=1;function e(y){var m=Array.prototype.slice.call(arguments,1);return m.forEach(function(T){T&&Object.keys(T).forEach(function(x){y[x]=T[x]})}),y}function t(y){return Object.prototype.toString.call(y)}function n(y){return t(y)==="[object String]"}function r(y){return t(y)==="[object Object]"}function o(y){return t(y)==="[object RegExp]"}function s(y){return t(y)==="[object Function]"}function i(y){return y.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var a={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function c(y){return Object.keys(y||{}).reduce(function(m,T){return m||a.hasOwnProperty(T)},!1)}var u={"http:":{validate:function(y,m,T){var x=y.slice(m);return T.re.http||(T.re.http=new RegExp("^\\/\\/"+T.re.src_auth+T.re.src_host_port_strict+T.re.src_path,"i")),T.re.http.test(x)?x.match(T.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(y,m,T){var x=y.slice(m);return T.re.no_http||(T.re.no_http=new RegExp("^"+T.re.src_auth+"(?:localhost|(?:(?:"+T.re.src_domain+")\\.)+"+T.re.src_domain_root+")"+T.re.src_port+T.re.src_host_terminator+T.re.src_path,"i")),T.re.no_http.test(x)?m>=3&&y[m-3]===":"||m>=3&&y[m-3]==="/"?0:x.match(T.re.no_http)[0].length:0}},"mailto:":{validate:function(y,m,T){var x=y.slice(m);return T.re.mailto||(T.re.mailto=new RegExp("^"+T.re.src_email_name+"@"+T.re.src_host_strict,"i")),T.re.mailto.test(x)?x.match(T.re.mailto)[0].length:0}}},l="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",f="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function p(y){y.__index__=-1,y.__text_cache__=""}function h(y){return function(m,T){var x=m.slice(T);return y.test(x)?x.match(y)[0].length:0}}function g(){return function(y,m){m.normalize(y)}}function b(y){var m=y.re=Tb()(y.__opts__),T=y.__tlds__.slice();y.onCompile(),y.__tlds_replaced__||T.push(l),T.push(m.src_xn),m.src_tlds=T.join("|");function x(M){return M.replace("%TLDS%",m.src_tlds)}m.email_fuzzy=RegExp(x(m.tpl_email_fuzzy),"i"),m.link_fuzzy=RegExp(x(m.tpl_link_fuzzy),"i"),m.link_no_ip_fuzzy=RegExp(x(m.tpl_link_no_ip_fuzzy),"i"),m.host_fuzzy_test=RegExp(x(m.tpl_host_fuzzy_test),"i");var F=[];y.__compiled__={};function C(M,O){throw new Error('(LinkifyIt) Invalid schema "'+M+'": '+O)}Object.keys(y.__schemas__).forEach(function(M){var O=y.__schemas__[M];if(O!==null){var L={validate:null,link:null};if(y.__compiled__[M]=L,r(O)){o(O.validate)?L.validate=h(O.validate):s(O.validate)?L.validate=O.validate:C(M,O),s(O.normalize)?L.normalize=O.normalize:O.normalize?C(M,O):L.normalize=g();return}if(n(O)){F.push(M);return}C(M,O)}}),F.forEach(function(M){y.__compiled__[y.__schemas__[M]]&&(y.__compiled__[M].validate=y.__compiled__[y.__schemas__[M]].validate,y.__compiled__[M].normalize=y.__compiled__[y.__schemas__[M]].normalize)}),y.__compiled__[""]={validate:null,normalize:g()};var D=Object.keys(y.__compiled__).filter(function(M){return M.length>0&&y.__compiled__[M]}).map(i).join("|");y.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+m.src_ZPCc+"))("+D+")","i"),y.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+m.src_ZPCc+"))("+D+")","ig"),y.re.pretest=RegExp("("+y.re.schema_test.source+")|("+y.re.host_fuzzy_test.source+")|@","i"),p(y)}function S(y,m){var T=y.__index__,x=y.__last_index__,F=y.__text_cache__.slice(T,x);this.schema=y.__schema__.toLowerCase(),this.index=T+m,this.lastIndex=x+m,this.raw=F,this.text=F,this.url=F}function v(y,m){var T=new S(y,m);return y.__compiled__[T.schema].normalize(T,y),T}function w(y,m){if(!(this instanceof w))return new w(y,m);m||c(y)&&(m=y,y={}),this.__opts__=e({},a,m),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=e({},u,y),this.__compiled__={},this.__tlds__=f,this.__tlds_replaced__=!1,this.re={},b(this)}return w.prototype.add=function(m,T){return this.__schemas__[m]=T,b(this),this},w.prototype.set=function(m){return this.__opts__=e(this.__opts__,m),this},w.prototype.test=function(m){if(this.__text_cache__=m,this.__index__=-1,!m.length)return!1;var T,x,F,C,D,M,O,L,ce;if(this.re.schema_test.test(m)){for(O=this.re.schema_search,O.lastIndex=0;(T=O.exec(m))!==null;)if(C=this.testSchemaAt(m,T[2],O.lastIndex),C){this.__schema__=T[2],this.__index__=T.index+T[1].length,this.__last_index__=T.index+T[0].length+C;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(L=m.search(this.re.host_fuzzy_test),L>=0&&(this.__index__<0||L<this.__index__)&&(x=m.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(D=x.index+x[1].length,(this.__index__<0||D<this.__index__)&&(this.__schema__="",this.__index__=D,this.__last_index__=x.index+x[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(ce=m.indexOf("@"),ce>=0&&(F=m.match(this.re.email_fuzzy))!==null&&(D=F.index+F[1].length,M=F.index+F[0].length,(this.__index__<0||D<this.__index__||D===this.__index__&&M>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=D,this.__last_index__=M))),this.__index__>=0},w.prototype.pretest=function(m){return this.re.pretest.test(m)},w.prototype.testSchemaAt=function(m,T,x){return this.__compiled__[T.toLowerCase()]?this.__compiled__[T.toLowerCase()].validate(m,x,this):0},w.prototype.match=function(m){var T=0,x=[];this.__index__>=0&&this.__text_cache__===m&&(x.push(v(this,T)),T=this.__last_index__);for(var F=T?m.slice(T):m;this.test(F);)x.push(v(this,T)),F=F.slice(this.__last_index__),T+=this.__last_index__;return x.length?x:null},w.prototype.tlds=function(m,T){return m=Array.isArray(m)?m:[m],T?(this.__tlds__=this.__tlds__.concat(m).sort().filter(function(x,F,C){return x!==C[F-1]}).reverse(),b(this),this):(this.__tlds__=m.slice(),this.__tlds_replaced__=!0,b(this),this)},w.prototype.normalize=function(m){m.schema||(m.url="http://"+m.url),m.schema==="mailto:"&&!/^mailto:/i.test(m.url)&&(m.url="mailto:"+m.url)},w.prototype.onCompile=function(){},la=w,la}const Ib=Pv(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var ua,ad;function Ab(){return ad||(ad=1,ua={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}}),ua}var fa,cd;function Db(){return cd||(cd=1,fa={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","text_collapse"]}}}),fa}var da,ld;function Mb(){return ld||(ld=1,da={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","text_collapse"]}}}),da}var ha,ud;function Pb(){if(ud)return ha;ud=1;var e=Ie(),t=$v(),n=jv(),r=Yv(),o=db(),s=Cb(),i=Eb(),a=ef(),c=Ib,u={default:Ab(),zero:Db(),commonmark:Mb()},l=/^(vbscript|javascript|file|data):/,f=/^data:image\/(gif|png|jpeg|webp);/;function p(v){var w=v.trim().toLowerCase();return l.test(w)?!!f.test(w):!0}var h=["http:","https:","mailto:"];function g(v){var w=a.parse(v,!0);if(w.hostname&&(!w.protocol||h.indexOf(w.protocol)>=0))try{w.hostname=c.toASCII(w.hostname)}catch(y){}return a.encode(a.format(w))}function b(v){var w=a.parse(v,!0);if(w.hostname&&(!w.protocol||h.indexOf(w.protocol)>=0))try{w.hostname=c.toUnicode(w.hostname)}catch(y){}return a.decode(a.format(w))}function S(v,w){if(!(this instanceof S))return new S(v,w);w||e.isString(v)||(w=v||{},v="default"),this.inline=new s,this.block=new o,this.core=new r,this.renderer=new n,this.linkify=new i,this.validateLink=p,this.normalizeLink=g,this.normalizeLinkText=b,this.utils=e,this.helpers=e.assign({},t),this.options={},this.configure(v),w&&this.set(w)}return S.prototype.set=function(v){return e.assign(this.options,v),this},S.prototype.configure=function(v){var w=this,y;if(e.isString(v)&&(y=v,v=u[y],!v))throw new Error('Wrong `markdown-it` preset "'+y+'", check name');if(!v)throw new Error("Wrong `markdown-it` preset, can't be empty");return v.options&&w.set(v.options),v.components&&Object.keys(v.components).forEach(function(m){v.components[m].rules&&w[m].ruler.enableOnly(v.components[m].rules),v.components[m].rules2&&w[m].ruler2.enableOnly(v.components[m].rules2)}),this},S.prototype.enable=function(v,w){var y=[];Array.isArray(v)||(v=[v]),["core","block","inline"].forEach(function(T){y=y.concat(this[T].ruler.enable(v,!0))},this),y=y.concat(this.inline.ruler2.enable(v,!0));var m=v.filter(function(T){return y.indexOf(T)<0});if(m.length&&!w)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+m);return this},S.prototype.disable=function(v,w){var y=[];Array.isArray(v)||(v=[v]),["core","block","inline"].forEach(function(T){y=y.concat(this[T].ruler.disable(v,!0))},this),y=y.concat(this.inline.ruler2.disable(v,!0));var m=v.filter(function(T){return y.indexOf(T)<0});if(m.length&&!w)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+m);return this},S.prototype.use=function(v){var w=[this].concat(Array.prototype.slice.call(arguments,1));return v.apply(v,w),this},S.prototype.parse=function(v,w){if(typeof v!="string")throw new Error("Input data should be a String");var y=new this.core.State(v,this,w);return this.core.process(y),y.tokens},S.prototype.render=function(v,w){return w=w||{},this.renderer.render(this.parse(v,w),this.options,w)},S.prototype.parseInline=function(v,w){var y=new this.core.State(v,this,w);return y.inlineMode=!0,this.core.process(y),y.tokens},S.prototype.renderInline=function(v,w){return w=w||{},this.renderer.render(this.parseInline(v,w),this.options,w)},ha=S,ha}var pa,fd;function Rb(){return fd||(fd=1,pa=Pb()),pa}var qb=Rb();const Fb=Mv(qb);class Lb{constructor(){this.md=new Fb;let t=this.md.renderer.rules.link_open||function(n,r,o,s,i){return i.renderToken(n,r,o)};this.md.renderer.rules.link_open=(n,r,o,s,i)=>{var a=n[r].attrIndex("target");return a<0?n[r].attrPush(["target","_blank"]):n[r].attrs[a][1]="_blank",t(n,r,o,s,i)}}render(t){return this.md.render(t)}}let Ob=new Lb;const Nb=["innerHTML"],Bb={class:"operation-bar"},Do=Re(Ee({__name:"SimpleDialog",props:{active:{type:Boolean},title:{},isCompulsive:{type:Boolean,default:!1},mdText:{},operations:{}},emits:["close"],setup(e,{emit:t}){const n=e,r=t,o=Z(null),s=Y(()=>n.operations!=null&&n.operations.length>0?n.operations:[{name:"CONFIRM",btnType:"plain",isCloseModal:!0}]);function i(){n.isCompulsive||r("close")}function a(u){u.onClick&&u.onClick(),u.isCloseModal&&r("close")}function c(u){if(u.key==="Enter"&&s.value.length===1){let l=document.querySelectorAll(".simple-modal");(l.length<=1||l[l.length-1]===o.value)&&a(s.value[0])}return u.stopPropagation(),!0}return je(()=>n.active,u=>{u?setTimeout(()=>{document.addEventListener("keydown",c)},200):document.removeEventListener("keydown",c)}),(u,l)=>(R(),ge(us,{to:"#ehunter-app"},[ae(Qt,{name:"slow-opacity-fade",appear:""},{default:We(()=>[e.active?(R(),H("div",{key:0,ref_key:"modal",ref:o,class:"simple-modal"},[I("div",{class:"simple-dialog",onClick:l[0]||(l[0]=Oe(()=>{},["stop"])),onWheel:l[1]||(l[1]=Oe(()=>{},["stop"]))},[I("div",{class:"background",onClick:i}),I("article",null,[I("h4",null,J(e.title),1),e.mdText!=null?(R(),H("p",{key:0,class:"markdown",innerHTML:k(Ob).render(e.mdText)},null,8,Nb)):ue("",!0),I("div",Bb,[(R(!0),H(we,null,$e(s.value,f=>(R(),ge(Ir,{class:"operation",key:f.name,label:f.name,type:f.btnType,mode:"inline",onClick:p=>a(f)},null,8,["label","type","onClick"]))),128))])])],32)],512)):ue("",!0)]),_:1})]))}}),[["__scopeId","data-v-ea2849fc"]]),zb=Re(Ee({__name:"PopSlider",props:{active:{type:Boolean},min:{},max:{},step:{default:1},init:{},isFloat:{type:Boolean,default:!1}},emits:["close","change"],setup(e,{emit:t}){const n=e,r=t,o=Z(n.init),s=Z(null),i=Z(!1),a=Y(()=>W.value.numberInputTip.replace("{{min}}",n.min).replace("{{max}}",n.max));je(()=>n.init,h=>{o.value=h});function c(){l(),r("close")}function u(h){r("change",h)}function l(){s.value.blur(),n.isFloat||(o.value=Math.floor(o.value)),o.value<n.min||o.value>n.max?(o.value=n.init,i.value=!0):u(o.value)}function f(h){h.key==="Enter"&&l()}function p(h){(h.key==="ArrowLeft"||h.key==="ArrowRight")&&h.stopPropagation()}return(h,g)=>(R(),ge(Co,{class:"PopSlider",active:e.active,"custom-style":{maxWidth:"min(92vw, 360px)"},onClose:g[2]||(g[2]=b=>r("close"))},{default:We(()=>[I("div",{class:"content",onKeydown:p},[vn(I("input",{ref_key:"inputElem",ref:s,class:"value",type:"number",onKeydown:f,"onUpdate:modelValue":g[0]||(g[0]=b=>o.value=b)},null,544),[[og,o.value]]),ae(Dv,{class:"slider",min:e.min,max:e.max,step:e.step,init:e.init,onChange:u},null,8,["min","max","step","init"]),ae(Ir,{class:"button",label:k(W).confirm,type:"positive",onClick:c},null,8,["label"])],32),ae(Do,{title:k(W).tips,active:i.value,"md-text":a.value,onClose:g[1]||(g[1]=()=>i.value=!1)},null,8,["title","active","md-text"])]),_:1},8,["active"]))}}),[["__scopeId","data-v-ffc66e8a"]]),Hb={class:"num-drop-option"},Mo=Re(Ee({__name:"NumDropOption",props:{min:{},max:{},curVal:{},quickOptions:{},formatFn:{},suffix:{},isFloat:{type:Boolean,default:!1}},emits:["change"],setup(e,{emit:t}){const n=e;function r(l){let f=String(l);return n.suffix?f+=n.suffix:n.formatFn?n.formatFn(l):f}const o=Y(()=>{let l=n.quickOptions.map(f=>({name:r(f),val:f}));return l.push({i18nKey:"custom",val:-1}),l}),s=t,i=Z(!1);function a(l,f){f==n.quickOptions.length?i.value=!0:s("change",n.quickOptions[f])}function c(l){s("change",l)}function u(){i.value=!1}return(l,f)=>(R(),H("div",Hb,[ae(Er,{list:o.value,"has-custom-option":!0,"cur-val":r(n.curVal),onChange:a,"format-fn":n.formatFn},null,8,["list","cur-val","format-fn"]),ae(zb,{active:i.value,init:n.curVal,"is-float":n.isFloat,max:n.max,min:n.min,step:1,onChange:c,onClose:u},null,8,["active","init","is-float","max","min"])]))}}),[["__scopeId","data-v-c7457182"]]),Po=Re(Ee({__name:"SimpleSwitch",props:{active:{type:Boolean}},emits:["change"],setup(e,{emit:t}){const n=t;return(r,o)=>(R(),H("div",{class:"switch",onClick:o[0]||(o[0]=s=>n("change",!e.active))},[I("div",{class:be({track:!0,active:e.active})},null,2),I("div",{class:be({thumb:!0,active:e.active})},null,2)]))}}),[["__scopeId","data-v-7622434e"]]),Vb={class:"options no-select"},$b=Re(Ee({__name:"MoreMenuPopover",props:{active:Boolean},emits:["close","more-settings","quick-preview","download"],setup(e,{emit:t}){const n=t;function r(){n("more-settings"),n("close")}function o(){n("quick-preview"),n("close")}function s(){n("download"),n("close")}return(i,a)=>(R(),ge(Co,{active:e.active,"custom-style":{"margin-left":"7px","margin-top":"4px"},onClose:a[0]||(a[0]=c=>i.$emit("close"))},{default:We(()=>[I("div",Vb,[I("div",{class:"item",onClick:r},[I("span",null,J(k(W).moreSettings),1)]),I("div",{class:"item",onClick:o},[I("span",null,J(k(W).quickPreview),1)]),I("div",{class:"item",onClick:s},[I("span",null,J(k(W).download),1)])])]),_:1},8,["active"]))}}),[["__scopeId","data-v-f51bd597"]]);function kt(e){switch(e){case"readingMode":return d.readingMode;case"widthScale":return d.widthScale;case"loadNum":return d.loadNum;case"downloadChunkSize":return d.downloadChunkSize;case"volumeSize":return d.volumeSize;case"showThumbView":return d.showThumbView;case"scrollPageMargin":return d.scrollPageMargin;case"pagesPerScreen":return d.pagesPerScreen;case"bookDirection":return d.bookDirection;case"pageTurnAnimationMode":return d.pageTurnAnimationMode;case"animationSpeed":return d.animationSpeed;case"showBookPagination":return d.showBookPagination;case"isChangeOddEven":return d.isChangeOddEven;case"isReverseFlip":return d.isReverseFlip;case"isAutoFlip":return d.isAutoFlip;case"autoFlipFrequency":return d.autoFlipFrequency;case"showBookThumbView":return d.showBookThumbView;case"IsReverseBookWheeFliplDirection":return d.IsReverseBookWheeFliplDirection;case"wheelSensitivity":return d.wheelSensitivity;case"magnifierZoom":return d.magnifierZoom;case"magnifierAreaSize":return d.magnifierAreaSize;case"lang":return W.value.lang;case"autoRetryByOtherSource":return d.autoRetryByOtherSource;default:return null}}function dd(e,t){switch(e){case"readingMode":B.setReadingMode(t);break;case"widthScale":B.setWidthScale(t);break;case"loadNum":B.setLoadNum(t);break;case"downloadChunkSize":B.setDownloadChunkSize(t);break;case"volumeSize":B.setVolumeSize(t);break;case"showThumbView":d.showThumbView!==t&&B.toggleShowThumbView();break;case"scrollPageMargin":B.setScrollPageMargin(t);break;case"pagesPerScreen":B.setPagesPerScreen(t);break;case"bookDirection":B.setBookDirection(t);break;case"pageTurnAnimationMode":B.setPageTurnAnimationMode(t);break;case"animationSpeed":B.setAnimationSpeed(t);break;case"showBookPagination":d.showBookPagination!==t&&B.toggleShowBookPagination();break;case"isChangeOddEven":d.isChangeOddEven!==t&&B.toggleIsChangeOddEven();break;case"isReverseFlip":d.isReverseFlip!==t&&B.toggleIsReverseFlip();break;case"isAutoFlip":d.isAutoFlip!==t&&B.toggleIsAutoFlip();break;case"autoFlipFrequency":B.setAutoFlipFrequency(t);break;case"showBookThumbView":d.showBookThumbView!==t&&B.toggleShowBookThumbView();break;case"IsReverseBookWheeFliplDirection":d.IsReverseBookWheeFliplDirection!==t&&B.toggleIsReverseBookWheeFliplDirection();break;case"wheelSensitivity":B.setWheelSensitivity(t);break;case"magnifierZoom":B.setMagnifierZoom(t);break;case"magnifierAreaSize":B.setMagnifierAreaSize(t);break;case"lang":B.setLang(t);break;case"autoRetryByOtherSource":B.setAutoRetryByOtherSource(t);break}}function Ro(e){const t=Fe[e];if(!t||!t.dropKey)return[];const n=si[t.dropKey];return Array.isArray(n)?n:(n==null?void 0:n.list)||[]}function qo(e){const t=Fe[e];return!t||!t.numKey?[]:si[t.numKey].list}function Fo(e){const t=Fe[e];return!t||!t.numKey?"":si[t.numKey].suffix||""}function ga(e){return Pm[e]}const jb={class:"ehunter-panel-header"},Ub=["aria-label"],Wb={class:"ehunter-panel-body"},Gb={class:"ehunter-left-nav"},Kb=["onClick"],Jb={class:"ehunter-label-block"},Qb={class:"ehunter-label"},Zb={key:0,class:"ehunter-tip"},Yb={class:"ehunter-label-block"},Xb={class:"ehunter-label"},e0={key:0,class:"ehunter-tip"},t0={class:"ehunter-label-block"},n0={class:"ehunter-label"},r0={key:0,class:"ehunter-tip"},o0={class:"ehunter-quick-lanes"},s0={class:"ehunter-lane-intro"},i0={class:"ehunter-lane-header"},a0={class:"ehunter-lane-desc"},c0=["data-id","onDragstart","onDrop"],l0={class:"ehunter-label"},u0={key:0,class:"ehunter-mode-tag"},f0={class:"ehunter-lane-header"},d0={class:"ehunter-lane-desc"},h0=["data-id","onDragstart","onDrop"],p0={class:"ehunter-label"},g0={key:0,class:"ehunter-mode-tag"},m0={class:"ehunter-shortcut-intro"},v0={class:"ehunter-label-block"},b0={class:"ehunter-label"},y0={key:0,class:"ehunter-tip"},w0={class:"ehunter-shortcut-editor"},S0=["onClick"],_0={class:"ehunter-chip-key"},k0={class:"ehunter-shortcut-add"},x0=["onClick"],C0=["onChange"],T0={value:"",disabled:"",selected:""},E0=["value"],I0={class:"ehunter-row"},A0={class:"ehunter-label"},D0={class:"ehunter-row"},M0={class:"ehunter-label"},P0={class:"ehunter-value"},R0={class:"ehunter-row"},q0={class:"ehunter-label"},F0={class:"ehunter-row"},L0={class:"ehunter-label"},ma="readingMode",O0=Re(Ee({__name:"MoreSettingsDialog",setup(e){const t=Z(null),n=Z(null),r=Z(null),o=Z(null),s=Z(null),i=Z(null),a=Z(null),c=Z(""),u=Z(""),l=Y(()=>wr.version);function f(ee){c.value&&ee.preventDefault()}const p=Y(()=>d.quickSettingOrder.map(ee=>wo.find(P=>P.id===ee)).filter(ee=>!!ee)),h=Y(()=>p.value.filter(ee=>!ee.fixed)),g=Y(()=>h.value.filter(ee=>B.isQuickSettingSelected(ee.id))),b=Y(()=>h.value.filter(ee=>!B.isQuickSettingSelected(ee.id))),S=ga("general"),v=ga("scroll"),w=ga("book"),y=Y(()=>[{name:W.value.cancel,btnType:"plain",isCloseModal:!0,onClick:()=>B.hideFactoryResetDialog()},{name:W.value.confirm,btnType:"positive",isCloseModal:!0,onClick:()=>B.runFactoryReset()}]);function m(ee){return ee==="scroll-only"?W.value.scrollMode:ee==="book-only"?W.value.bookMode:""}function T(ee,P){return ee==="lang"?W.value.languageSetting:W.value[P]}function x(ee){const P=Fe[ee];return P?W.value[P.labelI18nKey]:ee}function F(ee){const P=Fe[ee];if(!P||!P.tipI18nKey)return"";const A=W.value[P.tipI18nKey]||"",G=W.value[P.labelI18nKey]||"";return!A||A===G?"":A}function C(ee,P){dd(ee,P)}function D(ee){switch(ee){case"general":return n.value;case"scroll":return r.value;case"book":return o.value;case"quick":return s.value;case"shortcuts":return i.value;case"other":return a.value;default:return null}}function M(ee){B.setActiveSettingsCategory(ee);const P=D(ee);if(!P||!t.value)return;const A=t.value.getBoundingClientRect(),G=P.getBoundingClientRect(),ye=t.value.scrollTop+(G.top-A.top);t.value.scrollTo({top:Math.max(0,ye),behavior:"smooth"})}function O(){if(!t.value)return;const ee=t.value.scrollTop,P=[{id:"general",elem:n.value},{id:"scroll",elem:r.value},{id:"book",elem:o.value},{id:"quick",elem:s.value},{id:"shortcuts",elem:i.value},{id:"other",elem:a.value}];let A="general";for(const G of P)G.elem&&ee+20>=G.elem.offsetTop&&(A=G.id);A!==d.activeSettingsCategory&&B.setActiveSettingsCategory(A)}function L(ee,P){h.value.find(A=>A.id===P)&&(c.value=P,ee.dataTransfer&&(ee.dataTransfer.effectAllowed="move",ee.dataTransfer.setData("text/plain",P)))}function ce(){c.value=""}function z(ee,P){if(ee===P)return;const A=h.value.map(q=>q.id),G=A.indexOf(ee),ye=A.includes(P)?P:"";if(!ye||G<0)return;const _=A.indexOf(ye);if(_<0)return;const E=G<_?_-1:_;B.moveQuickSettingItem(ee,E)}function oe(ee,P){B.isQuickSettingSelected(ee)!==P&&B.toggleQuickSettingSelection(ee)}function se(ee,P,A){if(c.value){if(P===ma&&c.value!==ma){const G=h.value.find(ye=>B.isQuickSettingSelected(ye.id));G&&(P=G.id)}oe(c.value,A),z(c.value,P),c.value=""}}function ie(ee,P){if(!c.value)return;oe(c.value,P);const A=(P?g.value:b.value).filter(G=>G.id!==ma);if(A.length>0){const G=A[A.length-1];G&&z(c.value,G.id)}else if(P){const G=h.value.find(ye=>B.isQuickSettingSelected(ye.id));G&&z(c.value,G.id)}c.value=""}function le(ee,P){const A=P&&W.value[P]||"",G=me(ee);return G.length>0?`${A?`${A} · `:""}${W.value.currentShortcut}: ${G.map(Se).join(" / ")}`:A}function Se(ee){const P=qu.find(A=>A.key.toLowerCase()===ee.toLowerCase());return P?P.label:ee}function me(ee){const P=d.shortcutBindings[ee];return P?P.split(",").map(A=>A.trim()).filter(A=>A.length>0):[]}function xe(ee){const P=new Set(me(ee).map(A=>A.toLowerCase()));return qu.map(A=>A.key).filter(A=>!P.has(A.toLowerCase()))}function Te(ee,P){B.setShortcutBinding(ee,P.join(","))}function Ae(ee,P){const A=me(ee).filter(G=>G.toLowerCase()!==P.toLowerCase());Te(ee,A)}function Ue(ee){u.value===ee?u.value="":u.value=ee}function He(ee){if(!u.value)return;const P=ee.target;P&&P.closest(".ehunter-shortcut-add")||(u.value="")}function Ke(ee,P){const A=P.trim();if(!A)return;const G=me(ee);if(G.some(ye=>ye.toLowerCase()===A.toLowerCase())){u.value="";return}G.push(A),Te(ee,G),u.value=""}return ut(()=>{O(),t.value&&t.value.addEventListener("dragover",f)}),Wt(()=>{t.value&&t.value.removeEventListener("dragover",f)}),(ee,P)=>(R(),H(we,null,[(R(),ge(us,{to:".ehunter-app"},[ae(Qt,{name:"slow-opacity-fade",appear:""},{default:We(()=>[k(d).showMoreSettingsDialog?(R(),H("div",{key:0,class:"ehunter-more-settings-modal",onClick:P[14]||(P[14]=Oe((...A)=>k(B).closeMoreSettingsDialog&&k(B).closeMoreSettingsDialog(...A),["self"]))},[I("div",{class:"ehunter-panel",onClick:Oe(He,["stop"])},[I("header",jb,[I("h3",null,J(k(W).openMoreSettingsModal),1),I("button",{class:"ehunter-close-btn",type:"button","aria-label":k(W).cancel,onClick:P[0]||(P[0]=(...A)=>k(B).closeMoreSettingsDialog&&k(B).closeMoreSettingsDialog(...A))},"×",8,Ub)]),I("div",Wb,[I("nav",Gb,[(R(!0),H(we,null,$e(k(Mm),A=>(R(),H("button",{key:A.id,class:be(["ehunter-category",{"ehunter-active":k(d).activeSettingsCategory===A.id}]),onClick:G=>M(A.id)},J(k(W)[A.i18nKey]),11,Kb))),128))]),I("section",{ref_key:"contentRef",ref:t,class:"ehunter-content",onScroll:O},[I("article",{ref_key:"generalRef",ref:n,class:"ehunter-group","data-category":"general"},[I("h4",null,J(k(W).settingsGeneral),1),(R(!0),H(we,null,$e(k(S),A=>{var G,ye,_,E,q,j,V;return R(),H("div",{class:"ehunter-row",key:A},[I("div",Jb,[I("span",Qb,J(x(A)),1),F(A)?(R(),H("p",Zb,J(F(A)),1)):ue("",!0)]),((G=k(Fe)[A])==null?void 0:G.control)==="drop"?(R(),ge(Er,{key:0,list:k(Ro)(A),"cur-val":k(kt)(A),"format-cur-val-by-list":!0,"use-abbr-name":!!((ye=k(Fe)[A])!=null&&ye.useAbbrName),onChange:N=>C(A,N)},null,8,["list","cur-val","use-abbr-name","onChange"])):((_=k(Fe)[A])==null?void 0:_.control)==="num"?(R(),ge(Mo,{key:1,"quick-options":k(qo)(A),"cur-val":k(kt)(A),suffix:k(Fo)(A),min:((E=k(Fe)[A])==null?void 0:E.min)||0,max:((q=k(Fe)[A])==null?void 0:q.max)||999,"is-float":!!((j=k(Fe)[A])!=null&&j.isFloat),onChange:N=>C(A,N)},null,8,["quick-options","cur-val","suffix","min","max","is-float","onChange"])):((V=k(Fe)[A])==null?void 0:V.control)==="switch"?(R(),ge(Po,{key:2,active:!!k(kt)(A),onChange:N=>C(A,N)},null,8,["active","onChange"])):ue("",!0)])}),128))],512),I("article",{ref_key:"scrollRef",ref:r,class:"ehunter-group","data-category":"scroll"},[I("h4",null,J(k(W).settingsScrollMode),1),(R(!0),H(we,null,$e(k(v),A=>{var G,ye,_,E,q,j,V;return R(),H("div",{class:"ehunter-row",key:A},[I("div",Yb,[I("span",Xb,J(x(A)),1),F(A)?(R(),H("p",e0,J(F(A)),1)):ue("",!0)]),((G=k(Fe)[A])==null?void 0:G.control)==="drop"?(R(),ge(Er,{key:0,list:k(Ro)(A),"cur-val":k(kt)(A),"format-cur-val-by-list":!0,"use-abbr-name":!!((ye=k(Fe)[A])!=null&&ye.useAbbrName),onChange:N=>C(A,N)},null,8,["list","cur-val","use-abbr-name","onChange"])):((_=k(Fe)[A])==null?void 0:_.control)==="num"?(R(),ge(Mo,{key:1,"quick-options":k(qo)(A),"cur-val":k(kt)(A),suffix:k(Fo)(A),min:((E=k(Fe)[A])==null?void 0:E.min)||0,max:((q=k(Fe)[A])==null?void 0:q.max)||999,"is-float":!!((j=k(Fe)[A])!=null&&j.isFloat),onChange:N=>C(A,N)},null,8,["quick-options","cur-val","suffix","min","max","is-float","onChange"])):((V=k(Fe)[A])==null?void 0:V.control)==="switch"?(R(),ge(Po,{key:2,active:!!k(kt)(A),onChange:N=>C(A,N)},null,8,["active","onChange"])):ue("",!0)])}),128))],512),I("article",{ref_key:"bookRef",ref:o,class:"ehunter-group","data-category":"book"},[I("h4",null,J(k(W).settingsBookMode),1),(R(!0),H(we,null,$e(k(w),A=>{var G,ye,_,E,q,j,V;return R(),H("div",{class:"ehunter-row",key:A},[I("div",t0,[I("span",n0,J(x(A)),1),F(A)?(R(),H("p",r0,J(F(A)),1)):ue("",!0)]),((G=k(Fe)[A])==null?void 0:G.control)==="drop"?(R(),ge(Er,{key:0,list:k(Ro)(A),"cur-val":k(kt)(A),"format-cur-val-by-list":!0,"use-abbr-name":!!((ye=k(Fe)[A])!=null&&ye.useAbbrName),onChange:N=>C(A,N)},null,8,["list","cur-val","use-abbr-name","onChange"])):((_=k(Fe)[A])==null?void 0:_.control)==="num"?(R(),ge(Mo,{key:1,"quick-options":k(qo)(A),"cur-val":k(kt)(A),suffix:k(Fo)(A),min:((E=k(Fe)[A])==null?void 0:E.min)||0,max:((q=k(Fe)[A])==null?void 0:q.max)||999,"is-float":!!((j=k(Fe)[A])!=null&&j.isFloat),onChange:N=>C(A,N)},null,8,["quick-options","cur-val","suffix","min","max","is-float","onChange"])):((V=k(Fe)[A])==null?void 0:V.control)==="switch"?(R(),ge(Po,{key:2,active:!!k(kt)(A),onChange:N=>C(A,N)},null,8,["active","onChange"])):ue("",!0)])}),128))],512),I("article",{ref_key:"quickRef",ref:s,class:"ehunter-group","data-category":"quick"},[I("h4",null,J(k(W).settingsQuick),1),I("div",o0,[I("p",s0,J(k(W).quickDragHint),1),I("div",{class:"ehunter-quick-lane",onDragover:P[4]||(P[4]=Oe(()=>{},["prevent"])),onDrop:P[5]||(P[5]=Oe(A=>ie(A,!0),["stop"]))},[I("header",i0,J(k(W).enabled),1),I("p",a0,J(k(W).quickEnabledHint),1),(R(!0),H(we,null,$e(g.value,A=>(R(),H("div",{key:`enabled-${A.id}`,class:"ehunter-quick-item",draggable:"true","data-id":A.id,onContextmenu:P[1]||(P[1]=Oe(()=>{},["prevent"])),onSelectstart:P[2]||(P[2]=Oe(()=>{},["prevent"])),onDragstart:G=>L(G,A.id),onDragend:ce,onDragover:P[3]||(P[3]=Oe(()=>{},["prevent"])),onDrop:Oe(G=>se(G,A.id,!0),["stop"])},[P[15]||(P[15]=I("span",{class:"ehunter-drag-handle","aria-hidden":"true"},null,-1)),I("span",l0,J(T(A.id,A.i18nKey)),1),m(A.modeScope)?(R(),H("span",u0,J(m(A.modeScope)),1)):ue("",!0)],40,c0))),128))],32),P[17]||(P[17]=I("div",{class:"ehunter-lane-divider"},null,-1)),I("div",{class:"ehunter-quick-lane ehunter-hidden",onDragover:P[9]||(P[9]=Oe(()=>{},["prevent"])),onDrop:P[10]||(P[10]=Oe(A=>ie(A,!1),["stop"]))},[I("header",f0,J(k(W).hidden),1),I("p",d0,J(k(W).quickHiddenHint),1),(R(!0),H(we,null,$e(b.value,A=>(R(),H("div",{key:`hidden-${A.id}`,class:"ehunter-quick-item",draggable:"true","data-id":A.id,onContextmenu:P[6]||(P[6]=Oe(()=>{},["prevent"])),onSelectstart:P[7]||(P[7]=Oe(()=>{},["prevent"])),onDragstart:G=>L(G,A.id),onDragend:ce,onDragover:P[8]||(P[8]=Oe(()=>{},["prevent"])),onDrop:Oe(G=>se(G,A.id,!1),["stop"])},[P[16]||(P[16]=I("span",{class:"ehunter-drag-handle","aria-hidden":"true"},null,-1)),I("span",p0,J(T(A.id,A.i18nKey)),1),m(A.modeScope)?(R(),H("span",g0,J(m(A.modeScope)),1)):ue("",!0)],40,h0))),128))],32)])],512),I("article",{ref_key:"shortcutsRef",ref:i,class:"ehunter-group","data-category":"shortcuts"},[I("h4",null,J(k(W).settingsShortcuts),1),I("p",m0,J(k(W).shortcutEditHint),1),(R(!0),H(we,null,$e(k(Ru),A=>(R(),H("div",{class:"ehunter-row",key:A.id},[I("div",v0,[I("span",b0,J(k(W)[A.labelI18nKey]),1),le(A.id,A.tipI18nKey)?(R(),H("p",y0,J(le(A.id,A.tipI18nKey)),1)):ue("",!0)]),I("div",w0,[ae(Bl,{name:"ehunter-shortcut-chip-list",tag:"div",class:"ehunter-shortcut-chips"},{default:We(()=>[(R(!0),H(we,null,$e(me(A.id),G=>(R(),H("button",{key:`${A.id}-${G}`,class:"ehunter-shortcut-chip",onClick:ye=>Ae(A.id,G)},[I("span",_0,J(Se(G)),1),P[18]||(P[18]=I("span",{class:"ehunter-chip-remove"},"×",-1))],8,S0))),128))]),_:2},1024),I("div",k0,[I("button",{class:"ehunter-shortcut-add-btn",onClick:G=>Ue(A.id)},[...P[19]||(P[19]=[I("span",{class:"ehunter-shortcut-add-icon"},"+",-1)])],8,x0),u.value===A.id?(R(),H("select",{key:0,class:"ehunter-shortcut-select",value:"",onChange:G=>Ke(A.id,G.target.value)},[I("option",T0,J(k(W).shortcutAddPlaceholder),1),(R(!0),H(we,null,$e(xe(A.id),G=>(R(),H("option",{key:`${A.id}-candidate-${G}`,value:G},J(Se(G)),9,E0))),128))],40,C0)):ue("",!0)])])]))),128)),I("div",I0,[I("span",A0,J(k(W).shortcutResetLabel),1),I("button",{class:"ehunter-action",onClick:P[11]||(P[11]=(...A)=>k(B).resetShortcutBindings&&k(B).resetShortcutBindings(...A))},J(k(W).shortcutResetAction),1)])],512),I("article",{ref_key:"otherRef",ref:a,class:"ehunter-group","data-category":"other"},[I("h4",null,J(k(W).settingsOther),1),I("div",D0,[I("span",M0,J(k(W).versionLabel),1),I("span",P0,J(l.value),1)]),I("div",R0,[I("span",q0,J(k(W).infoTip),1),I("button",{class:"ehunter-action",onClick:P[12]||(P[12]=(...A)=>k(B).openWelcomeInstructionDialog&&k(B).openWelcomeInstructionDialog(...A))},J(k(W).infoTip),1)]),P[20]||(P[20]=I("div",{class:"ehunter-row"},[I("span",{class:"ehunter-label"},"Github"),I("a",{target:"_blank",href:"https://github.com/FPV-G/JM-EHunter",class:"ehunter-link"},"https://github.com/FPV-G/JM-EHunter")],-1)),I("div",F0,[I("span",L0,J(k(W).resetTip),1),I("button",{class:"ehunter-danger",onClick:P[13]||(P[13]=(...A)=>k(B).showFactoryResetDialog&&k(B).showFactoryResetDialog(...A))},J(k(W).resetTip),1)])],512)],544)])])])):ue("",!0)]),_:1})])),ae(Do,{active:k(d).isFactoryResetDialogVisible,title:k(W).resetAllConfirmTitle,"md-text":k(W).resetAllConfirmDesc,operations:y.value,onClose:k(B).hideFactoryResetDialog},null,8,["active","title","md-text","operations","onClose"])],64))}}),[["__scopeId","data-v-b3713ec5"]]),N0=Ee({__name:"DownloadConfirmDialog",setup(e){const t=[{name:W.value.cancel,btnType:"plain",isCloseModal:!0},{name:W.value.confirm,btnType:"positive",isCloseModal:!0,onClick:()=>Ce(null,null,function*(){const r=B.getAlbumService();if(!r)return;const o=new Im,s=`download-${Date.now()}-${Math.round(Math.random()*1e3)}`,i=d.pageCount;B.registerDownloadRunner(s,o),B.startDownloadTask(s,d.albumTitle,i);try{yield o.run({taskId:s,albumService:r,galleryTitle:d.albumTitle,introUrl:r.getIntroUrl(),pageCount:i,chunkSize:d.downloadChunkSize,autoRetryByOtherSource:d.autoRetryByOtherSource,jmEHunterVersion:"",onStatus:a=>{B.applyDownloadStatusEvent(s,d.albumTitle,a)}})}catch(a){const c=a instanceof Error&&a.message==="DOWNLOAD_ABORTED";B.applyDownloadStatusEvent(s,d.albumTitle,{phase:c?"partial":"failed",severity:c?"warning":"error",message:c?W.value.downloadAborted:W.value.downloadFailed,processedPages:0,totalPages:i,failedPages:i})}finally{B.clearDownloadRunner(s)}})}];function n(){B.closeDownloadConfirmDialog()}return(r,o)=>(R(),ge(Do,{active:k(d).showDownloadConfirmDialog,title:k(W).downloadConfirmTitle,"md-text":`${k(W).downloadConfirmMessage}

${k(W).downloadAuthorizeTip}`,operations:t,onClose:n},null,8,["active","title","md-text"]))}}),B0={class:"top-bar"},z0={class:"more-button-wrapper"},H0=["title-content"],V0=Re(Ee({__name:"TopBar",emits:["closeJMEHunter"],setup(e,{emit:t}){As(w=>({v0daa2faa:k(d).topBarHeight+"px"}));const n=t,r=Z(!1),o=Z(null),s=Z(null),i=Z([]),a=Z(!1);let c=null;function u(w){return a.value?{visibility:"hidden"}:i.value[w]===!1?{display:"none"}:{}}const l=Y(()=>Um.value.map(w=>Fe[w]).filter(w=>!!w).filter(w=>!(!w.showInTopBar||w.modeScope==="scroll-only"&&d.readingMode!==0||w.modeScope==="book-only"&&d.readingMode!==1||w.requireThumbSupportInTopBar&&!d.isSupportThumbView)));function f(w,y){dd(w,y)}function p(){r.value=!r.value}function h(){n("closeJMEHunter")}function g(){!o.value||!s.value||d.showTopBar&&(a.value=!0,i.value=new Array(l.value.length).fill(!0),Pt(()=>{var x,F;const w=(x=o.value)==null?void 0:x.querySelectorAll(".item");if(!w||w.length===0){a.value=!1;return}const y=(F=s.value)==null?void 0:F.getBoundingClientRect();if(!y){a.value=!1;return}const m=y.left,T=[];for(let C=0;C<w.length;C++){const M=w[C].getBoundingClientRect().right;T[C]=M+10<=m}a.value=!1,i.value=T}))}let b=null;function S(w=!1){c&&clearTimeout(c),w?g():c=window.setTimeout(()=>{g(),c=null},100)}const v=()=>S();return ut(()=>{Pt(()=>{g()}),window.addEventListener("resize",v),o.value&&(b=new ResizeObserver(()=>{S()}),b.observe(o.value))}),Wt(()=>{window.removeEventListener("resize",v),b&&b.disconnect(),c&&clearTimeout(c)}),je(l,()=>{Pt(()=>{g()})},{deep:!0}),je(()=>d.showTopBar,w=>{w&&setTimeout(()=>{g()},350)}),je(()=>d.readingMode,()=>{setTimeout(()=>{g()},500)}),(w,y)=>(R(),H("nav",B0,[I("div",{class:"float-content",ref_key:"floatContentRef",ref:s},[I("div",z0,[ae(ii,{class:"button tips tips-left tips-down","icon-type":"more","title-content":k(W).more,onClick:p,size:"normal"},null,8,["title-content"]),ae($b,{active:r.value,onClose:y[0]||(y[0]=m=>r.value=!1),onMoreSettings:y[1]||(y[1]=m=>k(B).openMoreSettingsDialog()),onQuickPreview:y[2]||(y[2]=m=>k(B).openThumbExpandDialog()),onDownload:y[3]||(y[3]=m=>k(B).openDownloadConfirmDialog())},null,8,["active"])]),ae(ii,{class:"button tips tips-left tips-down","icon-type":"menu","title-content":k(W).toggleTopBar,rotate:k(d).showTopBar,onClick:y[4]||(y[4]=m=>k(B).toggleShowTopBar()),size:"normal"},null,8,["title-content","rotate"]),ae(ii,{class:"button tips tips-left tips-down","icon-type":"close","title-content":k(W).closeJMEHunter,onClick:h,size:"normal"},null,8,["title-content"])],512),I("div",{class:be(["inner-content",{hide:!k(d).showTopBar}]),ref_key:"innerContentRef",ref:o},[(R(!0),H(we,null,$e(l.value,(m,T)=>(R(),H("div",{class:be(["item",{"less-margin":m.id==="lang"}]),key:m.id,style:Ge(u(T))},[I("span",{class:"label tips tips-down tips-right","title-content":m.tipI18nKey?k(W)[m.tipI18nKey]:""},J(k(W)[m.labelI18nKey])+": ",9,H0),m.control==="drop"?(R(),ge(Er,{key:0,list:k(Ro)(m.id),"cur-val":k(kt)(m.id),"format-cur-val-by-list":!0,"use-abbr-name":!!m.useAbbrName,onChange:x=>f(m.id,x)},null,8,["list","cur-val","use-abbr-name","onChange"])):m.control==="num"?(R(),ge(Mo,{key:1,"quick-options":k(qo)(m.id),"cur-val":k(kt)(m.id),suffix:k(Fo)(m.id),min:m.min||0,max:m.max||999,"is-float":!!m.isFloat,onChange:x=>f(m.id,x)},null,8,["quick-options","cur-val","suffix","min","max","is-float","onChange"])):m.control==="switch"?(R(),ge(Po,{key:2,active:!!k(kt)(m.id),onChange:x=>f(m.id,x)},null,8,["active","onChange"])):ue("",!0)],6))),128))],2),ae(O0),ae(N0)]))}}),[["__scopeId","data-v-f31c6980"]]);var $0=4,j0=.001,U0=1e-7,W0=10,Dr=11,Lo=1/(Dr-1),G0=typeof Float32Array=="function";function hd(e,t){return 1-3*t+3*e}function pd(e,t){return 3*t-6*e}function gd(e){return 3*e}function Oo(e,t,n){return((hd(t,n)*e+pd(t,n))*e+gd(t))*e}function md(e,t,n){return 3*hd(t,n)*e*e+2*pd(t,n)*e+gd(t)}function K0(e,t,n,r,o){var s,i,a=0;do i=t+(n-t)/2,s=Oo(i,r,o)-e,s>0?n=i:t=i;while(Math.abs(s)>U0&&++a<W0);return i}function J0(e,t,n,r){for(var o=0;o<$0;++o){var s=md(t,n,r);if(s===0)return t;var i=Oo(t,n,r)-e;t-=i/s}return t}function Q0(e,t,n,r){for(var o=G0?new Float32Array(Dr):new Array(Dr),s=0;s<Dr;++s)o[s]=Oo(s*Lo,e,n);function i(a){for(var c=0,u=1,l=Dr-1;u!==l&&o[u]<=a;++u)c+=Lo;--u;var f=(a-o[u])/(o[u+1]-o[u]),p=c+f*Lo,h=md(p,e,n);return h>=j0?J0(a,p,e,n):h===0?p:K0(a,c,c+Lo,e,n)}return function(c){return c===0?0:c===1?1:Oo(i(c),t,r)}}const vd=Re(Ee({__name:"AwesomeScrollView",props:{color:{default:"rgba(0,0,0,0.4)"},isHidden:{type:Boolean,default:!1},offsetInterval:{default:150},onScrollStopped:{type:Function,default:e=>{}},listenScroll:{type:Boolean,default:!1},axis:{default:"y"}},emits:["topIn","topLeave"],setup(e,{expose:t,emit:n}){const r=n,o=e,s=Z(null);let i,a=!1,c=!0,u=0;function l(g){const b=g<=0;if(b!==c){if(c=b,b){r("topIn");return}r("topLeave")}}function f(){if(!s.value)return;const g=o.axis==="y"?s.value.scrollTop:s.value.scrollLeft;if(o.axis==="y"&&l(g),!(!a&&g===i)){if(!a&&g!==i){i=g,a=!0;return}if(a&&g!==i){i=g;return}a=!1,o.onScrollStopped(g)}}let p;ut(()=>{o.listenScroll&&s.value&&(i=o.axis==="y"?s.value.scrollTop:s.value.scrollLeft,o.axis==="y"&&(c=i<=0,c&&r("topIn")),p=window.setInterval(f,50))}),Wt(()=>{u&&(window.cancelAnimationFrame(u),u=0),p&&clearInterval(p)});function h(g,b,S="y"){const v=S||o.axis;if(!s.value)return;if(u&&(window.cancelAnimationFrame(u),u=0),b<=0){v==="y"?s.value.scrollTop=g:s.value.scrollLeft=g;return}const w=v==="y"?s.value.scrollTop:s.value.scrollLeft,y=g-w;if(Math.abs(y)<.5)return;let m=0;const T=Q0(.61,.29,.3,.97);u=window.requestAnimationFrame(function x(F){if(!s.value){u=0;return}m||(m=F);const C=F-m,D=Math.min(C/b,1),M=w+y*T(D);if(v==="y"?s.value.scrollTop=M:s.value.scrollLeft=M,C<b){u=window.requestAnimationFrame(x);return}u=0})}return t({scrollTo:h}),(g,b)=>(R(),H("div",{ref_key:"asv",ref:s,class:be(["awesome-scroll-view","scrollbar",`axis-${e.axis}`,{isHidden:e.isHidden}])},[Sn(g.$slots,"default",{},void 0)],2))}}),[["__scopeId","data-v-4f224e6d"]]);function bd(e){var p;let t=0,n=0,r=0,o=!1;const s=(p=e.moveTolerance)!=null?p:8,i=()=>{t&&(window.clearTimeout(t),t=0)},a=()=>{i(),o=!1},c=(h,g,b,S)=>{o=!0,e.onActivate({clientX:h,clientY:g,pointerType:b,sourceEvent:S})},u=h=>{const g=h.pointerType||"mouse";if(n=h.clientX,r=h.clientY,g==="mouse"){c(h.clientX,h.clientY,"mouse",h);return}i(),t=window.setTimeout(()=>{c(h.clientX,h.clientY,g,h)},e.longPressMs)},l=h=>{if(o||!t)return;(Math.abs(h.clientX-n)>s||Math.abs(h.clientY-r)>s)&&a()},f=()=>{o||a()};return{onPointerDown:u,onPointerMove:l,onPointerUp:f,onPointerCancel:f,cancel:a}}const Z0=["aria-label"],Y0=Re(Ee({__name:"DockHandle",props:{label:{default:"JM-EHUNTER"},ariaLabel:{default:"Dock handle"},longPressMs:{default:500}},emits:["drag-start"],setup(e,{emit:t}){const n=e,r=t,o=Z(!1),s=bd({longPressMs:n.longPressMs,onActivate:l=>{o.value=!0,r("drag-start",l)}});function i(l){o.value=!1,s.onPointerDown(l)}function a(l){s.onPointerMove(l)}function c(){o.value=!1,s.onPointerUp()}function u(){o.value=!1,s.onPointerCancel()}return(l,f)=>(R(),H("button",{type:"button",class:be(["dock-handle",{armed:o.value}]),"aria-label":e.ariaLabel,onPointerdown:i,onPointermove:a,onPointerup:c,onPointercancel:u},[Sn(l.$slots,"default",{},()=>[Gt(J(e.label),1)])],42,Z0))}}),[["__scopeId","data-v-5a311fbe"]]),X0=["src"],ey={key:1,class:"thumb-fallback"},ty=100,ny=144,va=Re(Ee({__name:"ThumbView",props:{thumbInfo:{},fallbackText:{}},setup(e){const t=e,n=Z(null),r=Z(0),o=Z(0);let s=null;const i=Y(()=>{var h;const p=((h=t.thumbInfo)==null?void 0:h.width)||0;return p>0?p:ty}),a=Y(()=>{var h;const p=((h=t.thumbInfo)==null?void 0:h.height)||0;return p>0?p:ny}),c=Y(()=>{if(r.value<=0||o.value<=0)return 1;const p=r.value/i.value,h=o.value/a.value,g=Math.min(p,h);return Number.isFinite(g)&&g>0?g:1}),u=Y(()=>({width:`${i.value}px`,height:`${a.value}px`,transform:`scale(${c.value})`})),l=Y(()=>{var g,b;const p=((g=t.thumbInfo)==null?void 0:g.offset)||0;return{background:`transparent url(${((b=t.thumbInfo)==null?void 0:b.src)||""}) -${p}px 0 no-repeat`}});function f(){n.value&&(r.value=n.value.clientWidth,o.value=n.value.clientHeight)}return ut(()=>{f(),!(!n.value||typeof ResizeObserver=="undefined")&&(s=new ResizeObserver(()=>{f()}),s.observe(n.value))}),wn(()=>{s&&(s.disconnect(),s=null)}),(p,h)=>(R(),H("div",{ref_key:"root",ref:n,class:"thumb-view"},[e.thumbInfo?(R(),H("div",{key:0,class:"thumb-stage",style:Ge(u.value)},[e.thumbInfo.mode===k(En).SPIRIT?(R(),H("div",{key:0,class:"thumb-sprite",style:Ge(l.value)},null,4)):(R(),H("img",{key:1,class:"thumb-image",src:e.thumbInfo.src,alt:"",draggable:"false"},null,8,X0))],4)):e.fallbackText?(R(),H("div",ey,J(e.fallbackText),1)):ue("",!0)],512))}}),[["__scopeId","data-v-88a65bb0"]]),ry={class:"header"},oy=["onClick"],sy={class:"thumb-stage"},iy={class:"index"},ay=["aria-label"],yd="thumb",cy=Re(Ee({__name:"ThumbScrollView",emits:["dock-drag-start","open-thumb-expand"],setup(e,{emit:t}){As(C=>({v5a8223be:s.value,v6df6e1a2:i.value,v3276ebb2:v.value+"px",v44d27a72:S.value+"px",v928be0aa:w.value+"px",v6297f873:y.value+"px",v4f06c231:k(Lg)+"px",v595b4c6c:k(eu)+"px",v3d2994ea:p.value+"px",v15069c5b:c.value,v3b1f8b12:a.value,v0891a98a:k(Og)+"px",d8540348:k(Ng)+"px"}));const n=Y(()=>d.thumbDockSlot==="bottom"),r=Y(()=>Number(_t.value)),o=Y(()=>Math.max(0,d.curViewIndex-r.value)),s=Y(()=>`${Hg(d.thumbItemWidth)}px`),i=Y(()=>`${Vg(d.thumbItemWidth).toFixed(3)}em`),a=Y(()=>`${$g(d.thumbViewHeight)}px`),c=Y(()=>`${jg(d.thumbViewHeight).toFixed(3)}em`),u=t,l=Z(null),f=Z(null),p=Y(()=>n.value?S.value*o.value:(v.value+eu)*o.value),h=Y(()=>d.thumbInfos.slice(_t.value,_t.value+d.volumeSize)),g=Y(()=>Bg(d.thumbDockSlot,d.thumbItemWidth,d.thumbItemHeight)),b=Y(()=>zg(d.thumbDockSlot)),S=Y(()=>Math.round(b.value*g.value)),v=Y(()=>Math.round(Yl*g.value)),w=Y(()=>{const C=Math.min(S.value,v.value);return Math.max(14,Math.min(40,Math.round(C*.4)))}),y=Y(()=>{const C=Math.min(S.value,v.value),D=Math.max(20,Math.min(60,Math.round(C*.6)));return Math.max(D,w.value+4)});function m(C){const D=Number(C);B.setCurViewIndex(r.value+D,yd)}function T(C){u("dock-drag-start",C)}function x(){u("open-thumb-expand")}function F(C){if(!l.value||!f.value||C<0)return;const D=d.readingMode===1?260:1e3;if(n.value){const ce=[...f.value].sort((z,oe)=>z.offsetLeft-oe.offsetLeft)[C];if(ce){l.value.scrollTo(ce.offsetLeft,D,"x");return}l.value.scrollTo(0,D,"x");return}const O=[...f.value].sort((L,ce)=>L.offsetTop-ce.offsetTop)[C];if(O){l.value.scrollTo(O.offsetTop,D,"y");return}l.value.scrollTo(0,D,"y")}return je(()=>d.curViewIndex,C=>{if(d.curViewIndexUpdater!==yd){if(C===_t.value){F(0);return}F(C-_t.value)}}),(C,D)=>(R(),H("aside",{class:be(["thumb-content",{"dock-bottom":k(d).thumbDockSlot==="bottom"}])},[ae(vd,{ref_key:"scrollView",ref:l,class:be(["thumb-scroll-view",{"dock-bottom":k(d).thumbDockSlot==="bottom"}]),axis:k(d).thumbDockSlot==="bottom"?"x":"y"},{default:We(()=>[I("div",ry,[ae(Y0,{class:"app-name",label:"JM-EHUNTER","aria-label":"JM-EHUNTER Dock Handle",onDragStart:T})]),D[1]||(D[1]=I("div",{class:"indicator"},null,-1)),(R(!0),H(we,null,$e(h.value,(M,O)=>(R(),H("div",{class:"thumb-container",onClick:L=>m(O),key:M.id,ref_for:!0,ref_key:"thumbContainers",ref:f},[I("div",sy,[ae(va,{class:"thumb","thumb-info":M},null,8,["thumb-info"]),D[0]||(D[0]=I("div",{class:"hover-mask"},null,-1)),I("div",iy,J(r.value+Number(O)+1),1)])],8,oy))),128))]),_:1},8,["class","axis"]),I("button",{type:"button",class:be(["thumb-expand-trigger",{"dock-bottom":k(d).thumbDockSlot==="bottom"}]),"aria-label":k(W).expandThumbs,onClick:x},[ae(k(ju),{class:"expand-icon"})],10,ay)],2))}}),[["__scopeId","data-v-2665bf4a"]]),ly={key:0,class:"ehunter-loading"},uy={key:1,class:"ehunter-error"},fy={class:"error-message"},dy={key:0,class:"init-steps"},hy={class:"step-label"},py={key:0,class:"step-detail"},gy={class:"error-details",open:""},my={class:"error-info"},vy={key:0,class:"error-stack"},by=Re(Ee({__name:"LoadingView",props:{isLoading:{type:Boolean,default:!1},error:{default:null}},emits:["close"],setup(e,{emit:t}){const n=e,r=t,o=()=>{r("close")};function s(){var m,T,x;const S=navigator,v=(m=S.userAgentData)==null?void 0:m.model;if(typeof v=="string"&&v.trim())return v;const w=((T=S.userAgentData)==null?void 0:T.platform)||navigator.platform||"Unknown Device",y=(x=S.userAgentData)!=null&&x.mobile?" Mobile":"";return`${w}${y}`.trim()}function i(){var w;const S=navigator;if((w=S.userAgentData)!=null&&w.platform)return S.userAgentData.platform;const v=navigator.userAgent;return/Windows NT/i.test(v)?"Windows":/Mac OS X|Macintosh/i.test(v)?"macOS":/Android/i.test(v)?"Android":/iPhone|iPad|iPod/i.test(v)?"iOS":/Linux/i.test(v)?"Linux":"Unknown OS"}const a=wr.version,c=s(),u=i(),l=Z(!1),f=Y(()=>l.value?"Copied":"Copy"),p=Y(()=>{const S=n.error;return!(S!=null&&S.steps)||!Array.isArray(S.steps)?[]:S.steps.slice().sort((v,w)=>{var T,x;const y=(T=v.order)!=null?T:Number.MAX_SAFE_INTEGER,m=(x=w.order)!=null?x:Number.MAX_SAFE_INTEGER;return y-m})});function h(S){return S==="success"?"Done":S==="failed"?"Failed":"Pending"}const g=Y(()=>{const S=n.error;if(!S)return"";const v=["Initialization Steps:"];return p.value.length?p.value.forEach(w=>{const y=w.detail?` (${w.detail})`:"";v.push(`- [${h(w.status)}] ${w.label}${y}`)}):v.push("- (No step data)"),v.push(""),v.push("Technical Details:"),v.push(`Error: ${S.message}`,`Platform: ${S.platform}`,`JM-EHunter Version: ${a}`,`Device: ${c}`,`OS: ${u}`,`URL: ${S.url}`,`Timestamp: ${S.timestamp}`),S.stack&&(v.push(""),v.push(`Stack:
${S.stack}`)),v.join(`
`)}),b=()=>Ce(null,null,function*(){if(g.value)try{yield navigator.clipboard.writeText(g.value),l.value=!0,window.setTimeout(()=>{l.value=!1},1500)}catch(S){l.value=!1}});return(S,v)=>e.isLoading?(R(),H("div",ly,[...v[0]||(v[0]=[Sp('<div class="ehunter-loading-view" data-v-5a40b588><div class="loading-animation" data-v-5a40b588><div class="book" data-v-5a40b588><div class="book__page" data-v-5a40b588></div><div class="book__page" data-v-5a40b588></div><div class="book__page" data-v-5a40b588></div></div><h4 data-v-5a40b588>Reading</h4></div></div>',1)])])):e.error?(R(),H("div",uy,[I("div",{class:"error-header"},[v[1]||(v[1]=I("h3",null,"Initialization Error",-1)),I("button",{onClick:o,class:"close-button","aria-label":"Close"},"x")]),v[11]||(v[11]=I("p",{class:"feedback-link"},[I("strong",null,"Feedback / Bug Report:"),I("a",{href:"https://github.com/FPV-G/JM-EHunter/issues",target:"_blank",rel:"noopener noreferrer"},"Open GitHub Issues")],-1)),I("p",fy,J(e.error.message),1),p.value.length?(R(),H("div",dy,[v[2]||(v[2]=I("h4",null,"Initialization Steps",-1)),I("ul",null,[(R(!0),H(we,null,$e(p.value,w=>(R(),H("li",{key:w.id},[I("span",{class:be(["step-status",`step-status--${w.status}`])},J(h(w.status)),3),I("span",hy,J(w.label),1),w.detail?(R(),H("span",py,"- "+J(w.detail),1)):ue("",!0)]))),128))])])):ue("",!0),I("details",gy,[I("summary",null,[v[3]||(v[3]=I("span",null,"Technical Details (for bug reports)",-1)),I("button",{class:"copy-button",onClick:Oe(b,["stop"])},J(f.value),1)]),I("div",my,[I("p",null,[v[4]||(v[4]=I("strong",null,"Error:",-1)),Gt(" "+J(e.error.message),1)]),I("p",null,[v[5]||(v[5]=I("strong",null,"Platform:",-1)),Gt(" "+J(e.error.platform),1)]),I("p",null,[v[6]||(v[6]=I("strong",null,"JM-EHunter Version:",-1)),Gt(" "+J(k(a)),1)]),I("p",null,[v[7]||(v[7]=I("strong",null,"Device:",-1)),Gt(" "+J(k(c)),1)]),I("p",null,[v[8]||(v[8]=I("strong",null,"OS:",-1)),Gt(" "+J(k(u)),1)]),I("p",null,[v[9]||(v[9]=I("strong",null,"URL:",-1)),Gt(" "+J(e.error.url),1)]),I("p",null,[v[10]||(v[10]=I("strong",null,"Timestamp:",-1)),Gt(" "+J(e.error.timestamp),1)]),e.error.stack?(R(),H("pre",vy,J(e.error.stack),1)):ue("",!0)])])])):Sn(S.$slots,"default",{key:2},void 0)}}),[["__scopeId","data-v-5a40b588"]]);function wd(e,t,n){return Math.max(t,Math.min(n,e))}function yy(e){const{pageViewRef:t,menuOwnerId:n}=e,r=Z(!1),o=Z(12),s=Z(12),i=Y(()=>({left:`${o.value}px`,top:`${s.value}px`}));function a(){var h;return((h=t.value)==null?void 0:h.getBoundingClientRect())||null}function c(h,g){const b=a();if(!b){o.value=12,s.value=12;return}o.value=wd(h-b.left,8,Math.max(8,b.width-8)),s.value=wd(g-b.top,8,Math.max(8,b.height-8))}function u(h,g){document.dispatchEvent(new CustomEvent("ehunter:page-menu-open",{detail:{owner:n}})),c(h,g),r.value=!0}function l(){r.value=!1}function f(h){var g;((g=h.detail)==null?void 0:g.owner)!==n&&r.value&&l()}function p(h){if(!r.value)return;const g=t.value,b=h.target;if(!g||!b){l();return}const S=g.querySelector(".menu-anchor");S&&S.contains(b)||l()}return ut(()=>{document.addEventListener("ehunter:page-menu-open",f),document.addEventListener("click",p,!0)}),wn(()=>{document.removeEventListener("ehunter:page-menu-open",f),document.removeEventListener("click",p,!0)}),{menuOpen:r,menuAnchorStyle:i,openMenuAt:u,closeMenu:l}}class wy{executeInPage(t){const n=document.createElement("script");n.textContent=t,(document.head||document.documentElement).appendChild(n),n.remove()}serializeForPage(t){if(t===null)return"null";if(t===void 0)return"undefined";if(typeof t=="string")return JSON.stringify(t);if(typeof t=="number"||typeof t=="boolean")return String(t);if(typeof t=="function")return t.toString();try{return JSON.stringify(t,null,2)}catch(n){return String(t)}}logText(t,n){const r=JSON.stringify(`[${t}]`),o=JSON.stringify(String(n)),s=`console.log('%c' + ${r} + ' %c' + ${o}, 'color:red', 'color:black');`;this.executeInPage(s)}logObj(t,n,r=!1){this.logText(t,":");const o=this.serializeForPage(n),s=r?`console.log(JSON.parse(${JSON.stringify(o)}));`:`console.log(${o});`;this.executeInPage(s),this.logText(t,"----------")}}let No=new wy;function tn(e,t,n){return Math.max(t,Math.min(n,e))}function Sy(e){const{pageViewRef:t,imgRef:n,magnifierCanvasRef:r,imgSrc:o,isDesktopPointer:s,magnifierZoom:i,magnifierAreaSize:a,pendingRevealDelayMs:c,lensGap:u,onSyncEnabled:l}=e,f=Z(!1),p=Z(0),h=Z(0),g=Z(!1),b=Z("right"),S=Z(0),v=Z(0),w=Z("pending"),y=Z(!1),m=Z(!1),T=Z(null),x=Z(0),F=Y(()=>a.value),C=Y(()=>a.value*i.value),D=Y(()=>s.value&&f.value&&g.value&&w.value==="ready"),M=Y(()=>s.value&&f.value&&g.value),O=Y(()=>M.value&&w.value==="pending"&&m.value);function L(){var P;return((P=t.value)==null?void 0:P.getBoundingClientRect())||null}const ce=Y(()=>{const P=L();if(!P)return{};const A=F.value/2,G=tn(p.value-P.left-A,0,P.width-F.value),ye=tn(h.value-P.top-A,0,P.height-F.value);return{width:`${F.value}px`,height:`${F.value}px`,transform:`translate(${G}px, ${ye}px)`}}),z=Y(()=>L()?{width:`${C.value}px`,height:`${C.value}px`,transform:`translate(${S.value}px, ${v.value}px)`}:{});function oe(){T.value!==null&&(window.clearTimeout(T.value),T.value=null)}function se(P){return P.complete&&P.naturalWidth>0?Promise.resolve():new Promise((A,G)=>{const ye=()=>{E(),A()},_=()=>{E(),G(new Error("IMG_LOAD_FAILED"))},E=()=>{P.removeEventListener("load",ye),P.removeEventListener("error",_)};P.addEventListener("load",ye,{once:!0}),P.addEventListener("error",_,{once:!0})})}function ie(P){return Ce(this,null,function*(){const A=++x.value;y.value=!1,w.value="pending",yield Pt();const G=n.value;if(!(!G||o.value!==P))try{if(yield se(G),typeof G.decode=="function")try{yield G.decode()}catch(ye){No.logText("MAGNIFIER",`image decode failed: ${String(ye)}`)}if(A!==x.value||o.value!==P)return;y.value=!0,w.value="ready",M.value&&le()}catch(ye){if(No.logText("MAGNIFIER",`warm magnifier source failed: ${String(ye)}`),A!==x.value)return;y.value=!1,w.value="pending"}})}function le(){const P=r.value,A=n.value,G=L();if(!P||!A||!G||!y.value)return;const ye=i.value,_=a.value,E=_*ye,q=window.devicePixelRatio||1,j=Math.max(1,Math.round(E*q)),V=Math.max(1,Math.round(E*q));(P.width!==j||P.height!==V)&&(P.width=j,P.height=V);const N=P.getContext("2d");if(!N)return;N.setTransform(q,0,0,q,0,0),N.clearRect(0,0,E,E),N.imageSmoothingEnabled=!0;const te=tn(p.value-G.left,0,G.width),Q=tn(h.value-G.top,0,G.height),K=Math.min(_,G.width),U=Math.min(_,G.height),ne=tn(te-K/2,0,Math.max(0,G.width-K)),$=tn(Q-U/2,0,Math.max(0,G.height-U)),X=A.naturalWidth/Math.max(1,G.width),fe=A.naturalHeight/Math.max(1,G.height),ve=ne*X,qe=$*fe,De=K*X,st=U*fe;N.drawImage(A,ve,qe,De,st,0,0,E,E)}function Se(){const P=L();if(!P)return;const A=8,G=tn(p.value-P.left,0,P.width),ye=tn(h.value-P.top,0,P.height),_=F.value/2,E=G+_+u,q=G-_-u-C.value,j=P.left+E+C.value>window.innerWidth-A,V=P.left+q<A;j&&!V?b.value="left":b.value="right",S.value=b.value==="right"?E:q;const N=ye-C.value/2,te=A-P.top,Q=window.innerHeight-A-P.top-C.value;v.value=tn(N,Math.min(te,Q),Math.max(te,Q)),w.value==="ready"&&le()}function me(){g.value=!1}function xe(P){!s.value||!f.value||(p.value=P.clientX,h.value=P.clientY,g.value=!0,Se())}function Te(){me()}function Ae(P){f.value=P,l==null||l(P),P&&o.value&&w.value!=="ready"&&ie(o.value),P||me()}function Ue(P){var A;Ae(!!((A=P.detail)!=null&&A.enabled))}function He(P){document.dispatchEvent(new CustomEvent("ehunter:magnifier-toggle",{detail:{enabled:P}}))}function Ke(){const P=!f.value;He(P),Ae(P)}function ee(P){Ae(P)}return je([M,w],([P,A])=>{oe(),m.value=!1,P&&A==="pending"&&(T.value=window.setTimeout(()=>{M.value&&w.value==="pending"&&(m.value=!0)},c))}),je([i,a,M],()=>{M.value&&w.value==="ready"&&le()}),je(o,(P,A)=>{P!==A&&(y.value=!1,w.value="pending",P&&ie(P))}),ut(()=>{document.addEventListener("ehunter:magnifier-toggle",Ue)}),wn(()=>{oe(),document.removeEventListener("ehunter:magnifier-toggle",Ue)}),{magnifierEnabled:f,lensWarmState:w,showFocusIndicator:D,showMagnifierLens:M,showMagnifierPending:O,focusIndicatorStyle:ce,magnifierLensStyle:z,warmMagnifierSource:ie,updateLensPosition:Se,hideMagnifierPointerArtifacts:me,onMouseMove:xe,onMouseLeave:Te,toggleMagnifier:Ke,setEnabledFromSession:ee}}const _y={timeout(e){return new Promise(t=>setTimeout(t,e))}};var Sd=(e=>(e[e.Waiting=0]="Waiting",e[e.Loading=1]="Loading",e[e.Error=2]="Error",e[e.Loaded=3]="Loaded",e))(Sd||{});function ky(e){const{index:t,albumService:n,imgPageInfo:r,warmMagnifierSource:o}=e,s=Z(0),i=Z(""),a=Z(0),c=Z(Ye.Default),u=Z([]),l=Z(!1),f=Z(!1),p=Y(()=>{const m=s.value?`[${W.value.reload}-${s.value}] `:"";if(i.value)return m+i.value;switch(a.value){case 2:return m+W.value.loadingImgFailed;case 3:return m+W.value.imgLoaded;case 0:return m+W.value.waiting;default:return m+W.value.loadingImg}});function h(){return{autoRetryByOtherSource:d.autoRetryByOtherSource,supportChangeSource:n.isSupportImgChangeSource()}}function g(m){return mm(m,h())}function b(m){return Ce(this,null,function*(){c.value=m,f.value=!1;const T=yield n.getImgSrc(t,m);if(T instanceof Error){m===Ye.Default&&(u.value=g(m),yield S());return}r.value.src!==T.src&&B.setImgPageInfoSrc(t,T.src),T.preciseHeightOfWidth&&r.value.preciseHeightOfWidth!==T.preciseHeightOfWidth&&B.setImgPageInfoPreciseHeightOfWidth(t,T.preciseHeightOfWidth),T.src&&B.setThumbInfoDecodedSource(t,T.src,T.preciseHeightOfWidth)})}function S(){return Ce(this,null,function*(){if(!l.value){l.value=!0;try{for(;u.value.length>0;){const m=u.value.shift();if(m===void 0)break;if(yield v(m,!0))return}f.value=!0}finally{l.value=!1}}})}function v(m,T=!1){return Ce(this,null,function*(){T||(u.value=[]),f.value=!1,s.value++,i.value="",B.setImgPageInfoSrc(t,""),a.value=1,c.value=m;const x=yield n.getImgSrc(t,m);if(x instanceof Error){switch(x.message){case"ERROR_NO_ORIGIN":i.value=W.value.noOriginalImg;break;default:i.value=W.value.loadingFailed}return T||(u.value=g(m),yield S()),!1}return yield Pt(),yield _y.timeout(300),r.value.src!==x.src&&B.setImgPageInfoSrc(t,x.src),x.preciseHeightOfWidth&&r.value.preciseHeightOfWidth!==x.preciseHeightOfWidth&&B.setImgPageInfoPreciseHeightOfWidth(t,x.preciseHeightOfWidth),x.src&&B.setThumbInfoDecodedSource(t,x.src,x.preciseHeightOfWidth),!0})}function w(m){m.preventDefault(),r.value.src&&(a.value=2,No.logText("LOADING","loading image failed"),!f.value&&u.value.length===0&&(u.value=g(c.value)),u.value.length>0&&(No.logText("LOADING","reloading image"),S()))}function y(){a.value=3,u.value=[],f.value=!1,r.value.src&&o(r.value.src)}return{curLoadStatus:a,loadingInfo:p,loadImgSrc:b,getNewImgSrc:v,failLoad:w,loaded:y}}function xy(e){const{touchLongPressMs:t,touchMoveTolerance:n,shouldHandle:r,onLongPress:o}=e,s=Z(null),i=Z(0),a=Z(0),c=Z(!1);function u(){s.value!==null&&(window.clearTimeout(s.value),s.value=null)}function l(g){if(!r())return;if(!g.touches||g.touches.length!==1){u();return}const b=g.touches[0];i.value=b.clientX,a.value=b.clientY,c.value=!1,u(),s.value=window.setTimeout(()=>{c.value||o(b.clientX,b.clientY),u()},t)}function f(g){if(s.value===null||!g.touches||g.touches.length!==1)return;const b=g.touches[0],S=Math.abs(b.clientX-i.value),v=Math.abs(b.clientY-a.value);(S>n||v>n)&&(c.value=!0,u())}function p(){u()}function h(){u()}return wn(()=>{u()}),{onTouchStart:l,onTouchMove:f,onTouchEnd:p,onTouchCancel:h,clearTouchLongPressTimer:u}}const Cy={class:"layer preview-layer"},Ty={class:"layer loading-layer"},Ey={class:"index"},Iy={key:0,class:"loading-info-panel"},Ay={class:"text"},Dy={class:"operation"},My={class:"layer img-layer"},Py=["src"],Ry={class:"page-menu-options no-select"},qy=["title"],Fy={key:0},Ly=["disabled"],Oy=["disabled"],Ny=["disabled"],By=["disabled"],zy={key:0,class:"magnifier-pending"},ba="__ehunterMagnifierSessionState__",Hy=500,Vy=10,$y=120,jy=6,ya=Re(Ee({__name:"PageView",props:{index:{},active:{type:Boolean},activeLoad:{type:Boolean}},emits:["clickBackground","toggleOddEven"],setup(e,{emit:t}){const n=globalThis;n[ba]||(n[ba]={enabled:!1});const r=n[ba],o=e,s=t,i=Ln(Fs),a=Z(null),c=Z(null),u=Z(null),l=`pageview-menu-${o.index}`,f=[50,80,120,150],p=Y(()=>B.getImgPageInfo(o.index)),h=Y(()=>d.readingMode===1),g=Y(()=>typeof window=="undefined"||!window.matchMedia?!0:window.matchMedia("(hover: hover) and (pointer: fine)").matches),b=Y(()=>g.value),S=Y(()=>h.value),v=Y(()=>Math.max(2,Math.min(5,Math.round(d.magnifierZoom||3)))),w=Y(()=>Math.max(20,Math.min(300,Math.round(d.magnifierAreaSize||80)))),y=Y(()=>i.isSupportImgChangeSource()),m=Y(()=>W.value.notSupportedInCurrentPlatform||W.value.disabled),{menuOpen:T,menuAnchorStyle:x,openMenuAt:F,closeMenu:C}=yy({pageViewRef:a,menuOwnerId:l}),{magnifierEnabled:D,lensWarmState:M,showFocusIndicator:O,showMagnifierLens:L,showMagnifierPending:ce,focusIndicatorStyle:z,magnifierLensStyle:oe,warmMagnifierSource:se,updateLensPosition:ie,hideMagnifierPointerArtifacts:le,onMouseMove:Se,onMouseLeave:me,toggleMagnifier:xe,setEnabledFromSession:Te}=Sy({pageViewRef:a,imgRef:c,magnifierCanvasRef:u,imgSrc:Y(()=>{var ne;return((ne=p.value)==null?void 0:ne.src)||""}),isDesktopPointer:g,magnifierZoom:v,magnifierAreaSize:w,pendingRevealDelayMs:$y,lensGap:jy,onSyncEnabled:ne=>{r.enabled=ne}}),Ae=Y(()=>g.value&&D.value),{curLoadStatus:Ue,loadingInfo:He,loadImgSrc:Ke,getNewImgSrc:ee,failLoad:P,loaded:A}=ky({index:o.index,albumService:i,imgPageInfo:p,warmMagnifierSource:se}),{onTouchStart:G,onTouchMove:ye,onTouchEnd:_,onTouchCancel:E}=xy({touchLongPressMs:Hy,touchMoveTolerance:Vy,shouldHandle:()=>!h.value&&!g.value,onLongPress:(ne,$)=>F(ne,$)});ut(()=>{o.active&&!p.value.src?Ke(Ye.Default):p.value.src&&se(p.value.src),Te(r.enabled)}),je(()=>o.active,ne=>{if(ne&&!p.value.src){Ke(Ye.Default);return}ne&&p.value.src&&se(p.value.src)}),je(()=>o.index,()=>{Te(r.enabled),le()});function q(ne,$,X){return Math.max($,Math.min(X,ne))}function j(ne){return ne>=d.viewportHeight*.3&&ne<=d.viewportHeight*.7}function V(){g.value&&(xe(),C())}function N(){s("toggleOddEven"),C()}function te(ne){const $=q(v.value+ne,2,5);B.setMagnifierZoom($),ie(),C()}function Q(ne){const $=w.value,X=f.slice().sort((fe,ve)=>fe-ve);if(ne>0){const fe=X.find(ve=>ve>$);fe!==void 0&&B.setMagnifierAreaSize(fe)}else{const fe=X.slice().reverse().find(ve=>ve<$);fe!==void 0&&B.setMagnifierAreaSize(fe)}ie(),C()}function K(){y.value&&(ee(Ye.Origin),C())}function U(ne){if(T.value){C();return}if(h.value){if(j(ne.clientY)){ne.stopPropagation(),F(ne.clientX,ne.clientY);return}s("clickBackground");return}if(g.value){ne.stopPropagation(),F(ne.clientX,ne.clientY);return}s("clickBackground")}return(ne,$)=>(R(),H("section",{ref_key:"pageViewRef",ref:a,class:"page-view",onClick:U,onMousemove:$[10]||($[10]=(...X)=>k(Se)&&k(Se)(...X)),onMouseleave:$[11]||($[11]=(...X)=>k(me)&&k(me)(...X)),onTouchstart:$[12]||($[12]=(...X)=>k(G)&&k(G)(...X)),onTouchmove:$[13]||($[13]=(...X)=>k(ye)&&k(ye)(...X)),onTouchend:$[14]||($[14]=(...X)=>k(_)&&k(_)(...X)),onTouchcancel:$[15]||($[15]=(...X)=>k(E)&&k(E)(...X))},[I("div",Cy,[ae(va,{class:"preview-thumb","thumb-info":k(d).thumbInfos[e.index]},null,8,["thumb-info"])]),I("div",Ty,[I("h6",Ey,J(e.index+1),1),e.active?(R(),H("article",Iy,[ae(Qt,{name:"slide-fade"},{default:We(()=>[k(Ue)!=k(Sd).Loaded?(R(),H("p",{key:0,class:"loading-info",onClick:Oe(()=>{},["stop"])},[I("span",Ay,J(k(He)),1),I("span",Dy,[k(i).isSupportOriginImg()?(R(),ge(Ir,{key:0,class:"tips tips-down no-margin","title-content":k(W).originImgTip,label:k(W).originImg,mode:"inline",type:"positive",onClick:$[0]||($[0]=X=>k(ee)(k(Ye).Origin))},null,8,["title-content","label"])):ue("",!0),ae(Ir,{class:"tips tips-down","title-content":k(W).refreshTip,label:k(W).refresh,mode:"inline",type:"positive",onClick:$[1]||($[1]=X=>k(ee)(k(Ye).Default))},null,8,["title-content","label"]),k(i).isSupportImgChangeSource()?(R(),ge(Ir,{key:1,class:"tips tips-down","title-content":k(W).refreshByOtherSourceTip,label:k(W).refreshByOtherSource,mode:"inline",type:"positive",onClick:$[2]||($[2]=X=>k(ee)(k(Ye).ChangeSource))},null,8,["title-content","label"])):ue("",!0)])])):ue("",!0)]),_:1})])):ue("",!0)]),I("div",My,[e.active&&p.value&&p.value.src?(R(),H("img",{key:0,ref_key:"imgRef",ref:c,class:"album-item",src:p.value.src,onLoad:$[3]||($[3]=X=>k(A)()),onError:$[4]||($[4]=X=>k(P)(X))},null,40,Py)):ue("",!0)]),k(T)?(R(),H("div",{key:0,class:"layer menu-layer",onClick:$[9]||($[9]=Oe(()=>{},["stop"]))},[I("div",{class:"menu-anchor",style:Ge(k(x))},[ae(Co,{active:k(T),"custom-style":{"margin-left":"0px","margin-top":"0px"},onClose:k(C)},{default:We(()=>[I("div",Ry,[b.value?(R(),H("button",{key:0,type:"button",class:"item",onClick:V},[I("span",null,J(k(D)?k(W).closeMagnifier:k(W).openMagnifier),1)])):ue("",!0),I("button",{type:"button",class:be(["item",{disabled:!y.value}]),title:m.value,onClick:K},[I("span",null,J(k(W).originImg),1),y.value?ue("",!0):(R(),H("small",Fy,J(m.value),1))],10,qy),S.value?(R(),H("button",{key:1,type:"button",class:"item",onClick:N},[I("span",null,J(k(W).oddEven),1)])):ue("",!0),Ae.value?(R(),H("button",{key:2,type:"button",class:"item",disabled:v.value>=5,onClick:$[5]||($[5]=X=>te(1))},[I("span",null,J(k(W).zoomInMagnifier),1)],8,Ly)):ue("",!0),Ae.value?(R(),H("button",{key:3,type:"button",class:"item",disabled:v.value<=2,onClick:$[6]||($[6]=X=>te(-1))},[I("span",null,J(k(W).zoomOutMagnifier),1)],8,Oy)):ue("",!0),Ae.value?(R(),H("button",{key:4,type:"button",class:"item",disabled:w.value>=150,onClick:$[7]||($[7]=X=>Q(1))},[I("span",null,J(k(W).increaseMagnifierArea),1)],8,Ny)):ue("",!0),Ae.value?(R(),H("button",{key:5,type:"button",class:"item",disabled:w.value<=50,onClick:$[8]||($[8]=X=>Q(-1))},[I("span",null,J(k(W).decreaseMagnifierArea),1)],8,By)):ue("",!0)])]),_:1},8,["active","onClose"])],4)])):ue("",!0),k(O)?(R(),H("div",{key:1,class:"focus-indicator",style:Ge(k(z))},null,4)):ue("",!0),k(L)?(R(),H("div",{key:2,class:"magnifier-lens",style:Ge(k(oe))},[vn(I("canvas",{ref_key:"magnifierCanvasRef",ref:u,class:"magnifier-canvas"},null,512),[[zn,k(M)==="ready"]]),k(ce)?(R(),H("div",zy,[$[16]||($[16]=I("span",{class:"spinner"},null,-1)),I("span",null,J(k(W).loadingImg),1)])):ue("",!0)],4)):ue("",!0)],544))}}),[["__scopeId","data-v-34f09df5"]]),Uy={class:"album-scroll-view"},Wy={class:"preload"},Gy={class:"preload-item"},_d="album_scroll_view",wa=800,Ky=Re(Ee({__name:"AlbumScrollView",setup(e){const t=Z(0),n=Z(null),r=Z(null);function o(c){t.value=c}je(t,()=>{if(!r.value)return;let c=r.value.sort((l,f)=>l.offsetTop-f.offsetTop),u;if(c){if(t.value!==0){const l=c.concat().reverse();let f=c.indexOf(l.find(h=>h.offsetTop<=t.value+window.innerHeight));u=(f===-1?r.value.length-1:f)+_t.value}else u=_t.value;u!==d.curViewIndex&&B.setCurViewIndex(u,_d)}});function s(){return Ce(this,null,function*(){if(yield Pt(),!r.value)return;if(Vu.value==0){n.value.scrollTo(0,wa);return}const c=r.value[Vu.value];if(!c){n.value.scrollTo(0,wa);return}n.value.scrollTo(c.offsetTop-100,wa)})}ut(()=>{setTimeout(()=>{s()},200)});const i=Y(()=>{let c=d.curViewIndex-d.loadNum;c<0&&(c=0);let u=d.curViewIndex+d.loadNum;u>d.pageCount-1&&(u=d.pageCount-1);let l=[];for(let f=c;f<=u;f++)l.push(f);return l});je(()=>d.curViewIndex,(c,u)=>{d.curViewIndexUpdater!==_d&&s()});function a(c){B.setCurViewIndex(c*d.volumeSize,"scroll_view_vol")}return(c,u)=>(R(),H("div",Uy,[I("div",Wy,[(R(!0),H(we,null,$e(k(Km),l=>(R(),H("div",Gy,[ae(ya,{active:!0,index:l},null,8,["index"])]))),256))]),k(d).imgPageInfos&&k(d).imgPageInfos.length>0?(R(),ge(vd,{key:0,ref_key:"scrollView",ref:n,class:"scroll-view","on-scroll-stopped":o,onTopIn:u[0]||(u[0]=l=>k(B).setTopBar(!0)),"listen-scroll":!0,onTopLeave:u[1]||(u[1]=l=>k(B).setTopBar(!1))},{default:We(()=>[I("h1",null,J(k(d).albumTitle),1),k(Tr)>1?(R(),ge(To,{key:0,class:"top-pagination","cur-index":k(xo)-1,"page-sum":k(Tr),onChange:a},null,8,["cur-index","page-sum"])):ue("",!0),(R(!0),H(we,null,$e(k(Gm),l=>(R(),H("div",{class:"page-container",ref_for:!0,ref_key:"pageContainers",ref:r,key:l,style:Ge({width:`${k(d).widthScale}%`,"padding-bottom":`${k(d).widthScale*k(B).getImgPageHeightOfWidth(l)}%`,margin:`${k(d).scrollPageMargin}px auto`})},[ae(ya,{index:l,active:i.value.indexOf(l)>-1},null,8,["index","active"])],4))),128)),k(Tr)>1?(R(),ge(To,{key:1,class:"bottom-pagination","cur-index":k(xo)-1,"page-sum":k(Tr),onChange:a},null,8,["cur-index","page-sum"])):ue("",!0)]),_:1},512)):ue("",!0)]))}}),[["__scopeId","data-v-c08983c3"]]),Jy={class:"book-page-view"},Qy={key:1,class:"page start-page"},Zy={key:2,class:"page end-page"},Yy=Re(Ee({__name:"BookPageView",props:{index:{},active:{type:Boolean},activeLoad:{type:Boolean}},setup(e){function t(){B.toggleOddEvenFromPageMenu()}return(n,r)=>(R(),H("div",Jy,[e.index>=0&&e.index<k(d).pageCount?(R(),ge(ya,{key:0,index:e.index,active:e.active,"active-load":e.activeLoad,onToggleOddEven:t},null,8,["index","active","active-load"])):ue("",!0),e.index==-1?(R(),H("div",Qy,[I("div",{class:be(["ehunter-tag",{left:k(d).bookDirection===1}])},"JM-EHUNTER",2),I("h1",null,J(k(d).albumTitle),1)])):ue("",!0),e.index==k(d).pageCount?(R(),H("div",Zy,[I("div",{class:be(["ehunter-tag",{left:k(d).bookDirection===0}])},"JM-EHUNTER",2),r[0]||(r[0]=I("h1",null,"END",-1))])):ue("",!0)]))}}),[["__scopeId","data-v-26accc38"]]),Xy=Re(Ee({__name:"AlbumBookView",setup(e){As(h=>({v540b8e92:f.value.unified}));function t(h){return{width:h.width+"px",height:h.height+"px",top:h.top+"px",right:h.right+"px",zIndex:d.pageCount-h.pageIndex}}function n(h){return{zIndex:h===a.value?2:1,pointerEvents:h===a.value?"auto":"none"}}function r(h,g){let b=(ri.value-h*d.pagesPerScreen)/2,S=g;return d.bookDirection==1&&(S=d.pagesPerScreen-S-1),b+S*h}function o(h){let g=[];if(h.length===0)return g;let b=h.reduce((w,y)=>{let m=y>=0&&y<d.pageCount?B.getImgPageHeightOfWidth(y):ru();return m>w?m:w},0),S=b/h.length,v=0;S>=Jm.value?v=oi.value/b:v=ri.value/h.length;for(let w=0;w<h.length;w++){let y=h[w],m=y>=0&&y<d.pageCount?B.getImgPageHeightOfWidth(y):ru(),T=v*m,x=oi.value/2-T/2;d.showTopBar&&(x+=d.topBarHeight),g.push({pageIndex:y,height:T,width:v,top:x,right:r(v,w)})}return g}const s=Y(()=>{const h=Hs({pageCount:d.pageCount,pagesPerScreen:d.pagesPerScreen,isChangeOddEven:d.isChangeOddEven}),g=Vs(h,d.curViewIndex),b=Math.max(1,Math.ceil(d.loadNum/Math.max(1,d.pagesPerScreen))),S=Math.max(0,g-b),v=Math.min(h.length-1,g+b),w=[];for(let y=S;y<=v;y++){const m=h[y];w.push({spreadIndex:y,pageList:o(m)})}if(!w.some(y=>y.spreadIndex===g)){const y=h[g]||[];w.unshift({spreadIndex:g,pageList:o(y)})}return w}),i=Y(()=>Hs({pageCount:d.pageCount,pagesPerScreen:d.pagesPerScreen,isChangeOddEven:d.isChangeOddEven})),a=Y(()=>Vs(i.value,d.curViewIndex)),c=Y(()=>i.value.length);function u(h){const g=i.value[h],b=su(g,d.curViewIndex);B.setCurViewIndex(b,"book-pagination")}const l=Y(()=>{if(d.pageTurnAnimationMode==="none")return"screen-none";const h=d.flipDirection===0,g=d.physicalFlipDirection===0;return d.pageTurnAnimationMode==="slide"?h?"screen-slide-next":"screen-slide-prev":d.pageTurnAnimationMode==="horizontal-slide"?g?"screen-horizontal-rtl":"screen-horizontal-ltr":d.pageTurnAnimationMode==="page-flip"?g?"screen-page-flip":"screen-page-flip-reverse":g?"screen-flip":"screen-flip-reverse"}),f=Y(()=>({unified:(.7/d.animationSpeed).toFixed(2)+"s"}));function p(h){let g=h.clientY;switch(!0){case(g>=0&&g<d.viewportHeight*.3):d.physicalFlipDirection=d.bookDirection===0?0:1,B.setCurViewIndex(d.curViewIndex-d.pagesPerScreen,"click");break;case(g>=d.viewportHeight*.3&&g<=d.viewportHeight*.7):break;case(g>=d.viewportHeight*.7&&g<=d.viewportHeight):d.physicalFlipDirection=d.bookDirection===0?1:0,B.setCurViewIndex(d.curViewIndex+d.pagesPerScreen,"click");break}}return(h,g)=>(R(),H("section",{class:be(["album-book-view",`mode-${k(d).pageTurnAnimationMode}`]),onWheel:g[0]||(g[0]=(...b)=>k(Kl)&&k(Kl)(...b)),onClick:p},[(R(!0),H(we,null,$e(s.value,b=>(R(),ge(Qt,{key:b.spreadIndex,name:l.value},{default:We(()=>[vn(I("div",{class:"book-spread",style:Ge(n(b.spreadIndex))},[(R(!0),H(we,null,$e(b.pageList,S=>(R(),H("div",{class:"book-page-container",key:`${b.spreadIndex}-${S.pageIndex}`,style:Ge(t(S))},[ae(Yy,{index:S.pageIndex,active:!0,"active-load":!0},null,8,["index"])],4))),128))],4),[[zn,b.spreadIndex===a.value]])]),_:2},1032,["name"]))),128)),ae(Qt,{name:"center-horizontal-fade"},{default:We(()=>[k(d).showBookPagination&&c.value>1?(R(),ge(To,{key:0,class:"bottom-pagination","cur-index":a.value,"page-sum":c.value,onChange:u},null,8,["cur-index","page-sum"])):ue("",!0)]),_:1}),g[1]||(g[1]=I("div",{class:"action-panel"},[I("div",{class:"next"}),I("div",{class:"setting"}),I("div",{class:"pre"})],-1))],34))}}),[["__scopeId","data-v-8501a27e"]]),ew=["aria-label"],tw=["onClick"],nw={class:"page-label"},rw={class:"pager-row"},ow=Re(Ee({__name:"ThumbExpandDialog",emits:["select-page"],setup(e,{emit:t}){const n=Y(()=>iu(d.pageCount)),r=Y(()=>$s(d.thumbExpandSegmentIndex,d.pageCount)),o=Y(()=>Kg(d.thumbInfos,d.pageCount,r.value)),s=Z(null),i=Z(1),a=Y(()=>o.value.length>Math.max(1,i.value)),c=t;je(()=>d.showThumbExpandDialog,g=>Ce(null,null,function*(){g&&(B.setThumbExpandSegmentIndex(au(d.curViewIndex)),yield Pt(),u(),l())})),je(o,()=>Ce(null,null,function*(){d.showThumbExpandDialog&&(yield Pt(),u())})),ut(()=>{window.addEventListener("resize",u)}),wn(()=>{window.removeEventListener("resize",u)});function u(){const g=s.value;if(!g){i.value=1;return}const S=getComputedStyle(g).gridTemplateColumns.split(" ").map(v=>v.trim()).filter(Boolean).length;i.value=Math.max(1,S)}function l(){const g=s.value;if(!g)return;const b=g.querySelector(".thumb-item.active");b&&b.scrollIntoView({behavior:"auto",block:"center",inline:"center"})}function f(){B.closeThumbExpandDialog()}function p(g){B.setThumbExpandSegmentIndex(Number(g))}function h(g){c("select-page",g)}return(g,b)=>(R(),ge(us,{to:"#ehunter-app"},[ae(Qt,{name:"slow-opacity-fade",appear:""},{default:We(()=>[k(d).showThumbExpandDialog?(R(),H("div",{key:0,class:"thumb-expand-modal",onClick:Oe(f,["self"])},[I("section",{class:"panel",onClick:b[0]||(b[0]=Oe(()=>{},["stop"]))},[I("button",{class:"close-btn",type:"button","aria-label":k(W).cancel,onClick:f},"×",8,ew),I("div",{ref_key:"gridWrapRef",ref:s,class:be(["grid-wrap",{distributed:a.value}])},[(R(!0),H(we,null,$e(o.value,S=>(R(),H("button",{key:S.pageNumber,type:"button",class:be(["thumb-item",{active:S.pageNumber-1===k(d).curViewIndex}]),onClick:v=>h(S.pageNumber)},[I("div",{class:be(["thumb-frame",{error:S.renderState==="error"}])},[ae(va,{"thumb-info":S.thumbInfo,"fallback-text":k(W).loadingFailed},null,8,["thumb-info","fallback-text"])],2),I("div",nw,J(S.pageNumber),1)],10,tw))),128))],2),I("footer",rw,[ae(To,{"cur-index":r.value,"page-sum":n.value,onChange:p},null,8,["cur-index","page-sum"])])])])):ue("",!0)]),_:1})]))}}),[["__scopeId","data-v-a86570b6"]]),sw=Ee({__name:"InstructionDialog",setup(e){function t(n,r){return r&&r.length>0?r:[{name:W.value.confirm,btnType:"plain",isCloseModal:!0,onClick:()=>{B.closeInstructionDialog(n)}}]}return(n,r)=>(R(!0),H(we,null,$e(k(d).instructionDialogStack,(o,s)=>(R(),ge(Do,{key:o.id,active:!0,title:o.title||k(W).instructionsAndAbouts,"is-compulsive":o.isCompulsive!==!1,"md-text":o.mdText,operations:t(o.id,o.operations),style:Ge({zIndex:10030+s}),onClose:i=>k(B).closeInstructionDialog(o.id)},null,8,["title","is-compulsive","md-text","operations","style","onClose"]))),128))}}),kd=Re(Ee({__name:"SplitHandle",props:{orientation:{},longPressMs:{default:500}},emits:["resize-start","hover-change"],setup(e,{emit:t}){const n=e,r=t,o=Z(!1);function s(){o.value=!1}const i=bd({longPressMs:n.longPressMs,onActivate:f=>{o.value=!0,r("resize-start",f)}});function a(f){o.value=!1;const p=f.currentTarget;p&&typeof p.setPointerCapture=="function"&&p.setPointerCapture(f.pointerId),i.onPointerDown(f)}function c(f){i.onPointerMove(f)}function u(){s(),i.onPointerUp()}function l(){s(),i.onPointerCancel()}return window.addEventListener("pointerup",s),window.addEventListener("pointercancel",s),window.addEventListener("blur",s),Wt(()=>{window.removeEventListener("pointerup",s),window.removeEventListener("pointercancel",s),window.removeEventListener("blur",s)}),(f,p)=>(R(),H("div",{class:be(["split-handle",[e.orientation,{active:o.value}]]),onPointerdown:a,onPointermove:c,onPointerup:u,onPointercancel:l,onMouseenter:p[0]||(p[0]=h=>r("hover-change",!0)),onMouseleave:p[1]||(p[1]=h=>r("hover-change",!1))},[...p[2]||(p[2]=[I("div",{class:"grip"},null,-1)])],34))}}),[["__scopeId","data-v-100ef373"]]),iw={key:0,class:"drop-overlay"},xd=8,aw=Re(Ee({__name:"DockWorkspace",props:{thumbSlot:{},thumbSizePx:{},showThumb:{type:Boolean},longPressMs:{default:500}},emits:["request-dock","request-resize"],setup(e,{expose:t,emit:n}){const r=e,o=n,s=Z(null),i=Z(!1),a=Z(!1),c=Z(!1),u=Z("left"),l=Y(()=>({width:r.showThumb&&(r.thumbSlot==="left"||r.thumbSlot==="right")?`${r.thumbSizePx}px`:"0px"})),f=Y(()=>({height:r.showThumb&&r.thumbSlot==="bottom"?`${r.thumbSizePx}px`:"0px"}));let p=0,h=0,g=!1;function b(M,O){if(!s.value)return r.thumbSlot;const L=s.value.getBoundingClientRect(),ce=M-L.left,z=L.right-M,oe=L.bottom-O,se=Math.max(120,L.width*.24),ie=Math.max(120,L.height*.24),le=[];if(ce<=se&&le.push({slot:"left",score:ce/se}),z<=se&&le.push({slot:"right",score:z/se}),oe<=ie&&le.push({slot:"bottom",score:oe/ie}),le.length>0){const Se=Math.abs(M-p),me=Math.abs(O-h),xe=le.some(Ae=>Ae.slot==="bottom"),Te=le.some(Ae=>Ae.slot==="left"||Ae.slot==="right");if(xe&&Te){if(Se>me*1.15)return ce<=z?"left":"right";if(me>Se*1.15)return"bottom"}return le.sort((Ae,Ue)=>Ae.score-Ue.score),le[0].slot}return r.thumbSlot}function S(M){i.value=!0,g=!1,p=M.clientX,h=M.clientY,u.value=b(M.clientX,M.clientY);const O=M.sourceEvent;Number.isFinite(O.pointerId)&&O.pointerId,window.addEventListener("pointermove",v),window.addEventListener("pointerup",y),window.addEventListener("pointercancel",m)}function v(M){if(!i.value)return;const O=Math.abs(M.clientX-p),L=Math.abs(M.clientY-h);(O>=xd||L>=xd)&&(g=!0),u.value=b(M.clientX,M.clientY)}function w(){i.value=!1,window.removeEventListener("pointermove",v),window.removeEventListener("pointerup",y),window.removeEventListener("pointercancel",m)}function y(M){if(!i.value)return;if(!g){w();return}const O=b(M.clientX,M.clientY);o("request-dock",O),w()}function m(){w()}function T(){w()}function x(M){a.value=!0,document.body.style.userSelect="none";const O=M.sourceEvent;Number.isFinite(O.pointerId)&&O.pointerId,window.addEventListener("pointermove",F),window.addEventListener("pointerup",C),window.addEventListener("pointercancel",C)}function F(M){if(!a.value||!s.value)return;const O=s.value.getBoundingClientRect();let L=r.thumbSizePx;r.thumbSlot==="left"?L=M.clientX-O.left:r.thumbSlot==="right"?L=O.right-M.clientX:L=O.bottom-M.clientY,o("request-resize",L)}function C(){a.value=!1,document.body.style.userSelect="",window.removeEventListener("pointermove",F),window.removeEventListener("pointerup",C),window.removeEventListener("pointercancel",C)}function D(){T(),C()}return window.addEventListener("blur",D),Wt(()=>{document.body.style.userSelect="",window.removeEventListener("blur",D),T(),C()}),t({startDockDrag:S}),(M,O)=>(R(),H("div",{ref_key:"rootRef",ref:s,class:be(["dock-workspace",`slot-${e.thumbSlot}`])},[vn(I("div",{class:be(["thumb-panel side",{collapsed:!e.showThumb}]),style:Ge(l.value)},[Sn(M.$slots,"thumb",{},void 0)],6),[[zn,e.thumbSlot==="left"||e.thumbSlot==="right"]]),vn(ae(kd,{orientation:"vertical","long-press-ms":e.longPressMs,onResizeStart:x,onHoverChange:O[0]||(O[0]=L=>c.value=L)},null,8,["long-press-ms"]),[[zn,e.showThumb&&(e.thumbSlot==="left"||e.thumbSlot==="right")]]),I("div",{class:be(["main-panel",{resizing:c.value||a.value}])},[Sn(M.$slots,"main",{},void 0)],2),vn(ae(kd,{orientation:"horizontal","long-press-ms":e.longPressMs,onResizeStart:x,onHoverChange:O[1]||(O[1]=L=>c.value=L)},null,8,["long-press-ms"]),[[zn,e.showThumb&&e.thumbSlot==="bottom"]]),vn(I("div",{class:be(["thumb-panel bottom",{collapsed:!e.showThumb}]),style:Ge(f.value)},[Sn(M.$slots,"thumb",{},void 0)],6),[[zn,e.thumbSlot==="bottom"]]),i.value?(R(),H("div",iw,[I("div",{class:be(["drop-zone left",{active:u.value==="left"}])},J(k(W).dockLeft),3),I("div",{class:be(["drop-zone right",{active:u.value==="right"}])},J(k(W).dockRight),3),I("div",{class:be(["drop-zone bottom",{active:u.value==="bottom"}])},J(k(W).dockBottom),3)])):ue("",!0)],2))}}),[["__scopeId","data-v-fa3343db"]]),cw={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"};function lw(e,t){return R(),H("svg",cw,[...t[0]||(t[0]=[I("path",{fill:"none",d:"M0 0h24v24H0z"},null,-1),I("path",{d:"M7 14H5v5h5v-2H7zm-2-4h2V7h3V5H5zm12 7h-3v2h5v-5h-2zM14 5v2h3v3h2V5z"},null,-1)])])}const uw={render:lw},fw={class:"reader-view"},dw={class:"main-content"},hw={class:"status-pannel"},pw=["aria-label"],gw={class:"progress"},mw=Re(Ee({__name:"ReaderView",setup(e){const t=Z(!1),n=Z(null),r=Y(()=>d.readingMode===0?d.showThumbView:d.showBookThumbView);function o(){const l=document;t.value=!!(l.fullscreenElement||l.webkitFullscreenElement||l.mozFullScreenElement)}function s(){const l=window;if(l.__EHUNTER_UI__){l.__EHUNTER_UI__.close();return}const f=document.querySelector("#ehunter-app .ehunter-container");f&&(f.style.top="-100%",document.body.style.overflow="")}function i(){const l=document;if(!!(l.fullscreenElement||l.webkitFullscreenElement||l.mozFullScreenElement)){if(l.exitFullscreen){l.exitFullscreen();return}if(l.webkitExitFullscreen){l.webkitExitFullscreen();return}l.mozCancelFullScreen&&l.mozCancelFullScreen();return}const h=document.querySelector(".ehunter-container")||document.documentElement;if(h.requestFullscreen){h.requestFullscreen();return}if(h.webkitRequestFullscreen){h.webkitRequestFullscreen();return}if(h.webkitRequestFullScreen){h.webkitRequestFullScreen();return}h.mozRequestFullScreen&&h.mozRequestFullScreen()}function a(l){var f;(f=n.value)==null||f.startDockDrag(l)}function c(){B.openThumbExpandDialog()}function u(l){B.closeThumbExpandDialog(),B.setCurViewIndex(l-1,"thumb-expand")}return ut(()=>{o(),document.addEventListener("fullscreenchange",o),document.addEventListener("webkitfullscreenchange",o),document.addEventListener("mozfullscreenchange",o)}),Wt(()=>{document.removeEventListener("fullscreenchange",o),document.removeEventListener("webkitfullscreenchange",o),document.removeEventListener("mozfullscreenchange",o)}),(l,f)=>(R(),H("div",fw,[ae(aw,{ref_key:"dockWorkspaceRef",ref:n,"thumb-slot":k(d).thumbDockSlot,"thumb-size-px":k(d).thumbDockSlot==="bottom"?k(d).thumbViewHeight:k(d).thumbViewWidth,"show-thumb":r.value,"long-press-ms":500,onRequestDock:f[0]||(f[0]=p=>k(B).setThumbDockSlot(p)),onRequestResize:f[1]||(f[1]=p=>k(B).setThumbPanelSize(p))},{thumb:We(()=>[ae(cy,{onDockDragStart:a,onOpenThumbExpand:c})]),main:We(()=>[I("div",dw,[ae(V0,{class:"top-bar",onCloseJMEHunter:s}),ae(Qt,{name:"slow-horizontal-fade"},{default:We(()=>[k(d).readingMode===0?(R(),ge(Ky,{key:0,class:"content scroll-mode"})):ue("",!0)]),_:1}),ae(Qt,{name:"slow-vertical-fade"},{default:We(()=>[k(d).readingMode===1?(R(),ge(Xy,{key:0,class:"content book-mode"})):ue("",!0)]),_:1})])]),_:1},8,["thumb-slot","thumb-size-px","show-thumb"]),I("div",hw,[I("button",{class:"full-screen","aria-label":k(W).fullScreen,onClick:i,type:"button"},[ae(k(uw))],8,pw),I("div",gw,J(`${k(d).curViewIndex+1} / ${k(d).pageCount}`),1)]),ae(ow,{onSelectPage:u}),ae(sw)]))}}),[["__scopeId","data-v-bd0ec685"]]),vw={key:0},bw={class:"bar"},yw={key:1,class:"actions"},ww=["onClick"],Sw=Re(Ee({__name:"StatusNotificationItem",props:{item:{}},emits:["dismiss","action"],setup(e){const t=e,n=Y(()=>typeof t.item.progressCurrent!="number"||typeof t.item.progressTotal!="number"||t.item.progressTotal<=0?0:Math.max(0,Math.min(100,Math.round(t.item.progressCurrent/t.item.progressTotal*100))));return(r,o)=>(R(),H("article",{class:be(["status-notification-item",`phase-${e.item.phase}`,`severity-${e.item.severity}`])},[I("header",null,[I("strong",null,J(e.item.title),1),I("button",{type:"button",class:"close",onClick:o[0]||(o[0]=s=>r.$emit("dismiss",e.item.notificationId))},"×")]),I("p",null,J(e.item.message),1),typeof e.item.progressCurrent=="number"&&typeof e.item.progressTotal=="number"?(R(),H("footer",vw,[I("span",null,J(`${e.item.progressCurrent} / ${e.item.progressTotal}`),1),I("div",bw,[I("i",{style:Ge({width:`${n.value}%`})},null,4)])])):ue("",!0),e.item.actions&&e.item.actions.length>0?(R(),H("div",yw,[(R(!0),H(we,null,$e(e.item.actions,s=>(R(),H("button",{key:s.id,type:"button",class:be(["action-btn",s.variant||"plain"]),onClick:i=>r.$emit("action",e.item.notificationId,s.id)},J(s.label),11,ww))),128))])):ue("",!0)],2))}}),[["__scopeId","data-v-19f1746c"]]),_w={key:0,class:"status-notification-stack"},kw=Re(Ee({__name:"StatusNotificationStack",setup(e){function t(r){B.dismissDownloadNotification(r)}function n(r,o){B.triggerDownloadNotificationAction(r,o)}return(r,o)=>k(d).downloadNotifications.length>0?(R(),H("div",_w,[ae(Bl,{name:"vertical-list",tag:"div",class:"list"},{default:We(()=>[(R(!0),H(we,null,$e(k(d).downloadNotifications,s=>(R(),ge(Sw,{key:s.notificationId,item:s,onDismiss:t,onAction:n},null,8,["item"]))),128))]),_:1})])):ue("",!0)}}),[["__scopeId","data-v-cded4c82"]]),xw={class:"ehunter-app normalize"},Cw={key:0,style:{display:"flex","flex-direction":"row",width:"100%",height:"100%"}},Tw=Ee({__name:"App",setup(e){const t=Z(!1),n=Ln(Fs);return ut(()=>{Qm(n),t.value=!0}),(r,o)=>(R(),H("div",xw,[t.value?(R(),H("div",Cw,[ae(mw),ae(kw)])):ue("",!0)]))}}),Ew={class:"ehunter-container vue-container"},Iw=Ee({__name:"TestApp",setup(e){return(t,n)=>(R(),H("div",Ew,[ae(Tw)]))}});var ft=(e=>(e.EH="EH",e.NH="NH",e.C18="C18",e.TEST="TEST",e))(ft||{});class Bo extends Error{constructor(n,r,o,s=[]){super(n);re(this,"platform");re(this,"url");re(this,"timestamp");re(this,"steps");this.name="InitializationError",this.platform=r,this.url=o,this.timestamp=new Date,this.steps=s}}function Aw(){const e=window.location.host,t=window.location.hostname,n=window.location.pathname,r=t==="e-hentai.org"||t==="exhentai.org",o=/^\/s\/[^/]+\/\d+-\d+\/?$/.test(n);if(r&&o)return{platform:ft.EH,host:e,pathname:n,isAlbumPage:!0};const s=/^\/g\/\d+\/\d+\/$/.test(n);if(t==="nhentai.net"&&s)return{platform:ft.NH,host:e,pathname:n,isAlbumPage:!0};const i=t==="18comic.vip",a=/^\/photo\/\d+/.test(n);return i&&a?{platform:ft.C18,host:e,pathname:n,isAlbumPage:!0}:Tu(e)?{platform:ft.TEST,host:e,pathname:n,isAlbumPage:!0}:{platform:null,host:e,pathname:n,isAlbumPage:!1}}let Sa=class{constructor(t){re(this,"htmlText");re(this,"html");re(this,"document");re(this,"i2");re(this,"imgSizeInfo");return this.htmlText=t.replace(/src=/g,"x-src="),this.html=document.createElement("html"),this.html.innerHTML=this.htmlText,this.document=this.html.ownerDocument,this._initI2Element(),this._initImgSizeInfo(),this}_initI2Element(){if(this.i2=this.html.querySelector("#i2"),!this.i2)throw new Error("ImgHtmlParser: i2 is undefined")}_initImgSizeInfo(){this.imgSizeInfo=this.i2.children[1].textContent.split("::")[1].split("x")}getTitle(){let t=this.html.querySelector("h1");return t&&t.textContent||""}getCurPageNum(){return Number(this.i2.getElementsByTagName("span")[0].textContent)}getPageCount(){return Number(this.i2.getElementsByTagName("span")[1].textContent)}getImgHeight(){return Number(this.imgSizeInfo[1].trim())}getImgWidth(){return Number(this.imgSizeInfo[0].trim())}getPreciseHeightOfWidth(){return Number(this.getImgHeight()/this.getImgWidth())}getIntroUrl(){return this.html.querySelectorAll(".sb")[0].children[0].getAttribute("href").replace(/^.*?org/g,"").replace(/\?p=.*?$/g,"")}getAlbumId(){return this.getIntroUrl().match(/g\/\d+(?=\/)/)[0].replace("g/","")}getImgId(){return window.location.pathname.split("/")[2]}getNextImgId(){return this.document.getElementById("i3").children[0].getAttribute("href").split("/")[4]}getImgUrl(){return this.htmlText.match('id="img" x-src="(.*?)"'),RegExp.$1}getOriginalImgUrl(){let t=this.html.querySelector("#i6").children;return t[t.length-1].children[1].getAttribute("href")}getSourceId(){return this.html.querySelector("#loadfail").attributes.onclick.value.match(/nl\('(.*?)'\)/g),RegExp.$1}},Cd=class{constructor(t,n){re(this,"html");re(this,"reqUrl");this.html=document.createElement("html"),this.reqUrl=n,this.html.innerHTML=t.replace(/src=/g,"x-src=")}getImgUrls(){return this._isValidIntroPage()?this.html.querySelectorAll("#gdt>.gdtm").length==0?Array.prototype.slice.call(this.html.querySelector("#gdt").children).map(n=>{n.innerHTML.match(/width:(.*?)px;height:(.*?)px;/g);const r=Number(RegExp.$2),o=Number(RegExp.$1);let s=n.getAttribute("href").match(/\/s.*$/)+"";const i=/background:transparent\s+url\(([^)]+)\)\s*([-0-9px\s]+)no-repeat/,a=n.innerHTML.match(i),c=`background:transparent url(${a[1]}) ${a[2]} no-repeat`;return{id:s,index:0,pageUrl:s,src:"",thumbHeight:r,thumbWidth:o,heightOfWidth:r/o,thumbStyle:c}}):Array.prototype.slice.call(this.html.getElementsByClassName("gdtm"),0).map(n=>{n.children[0].getAttribute("style").match(/width:(.*?)px; height:(.*?)px;/g);const r=Number(RegExp.$2),o=Number(RegExp.$1);let s=n.getElementsByTagName("a")[0].getAttribute("href").match(/\/s.*$/)+"";return{id:s,index:0,pageUrl:s,src:"",thumbHeight:r,thumbWidth:o,heightOfWidth:r/o,thumbStyle:""}}):[]}getThumbObjList(t,n){return this._computeThumbList(this._getThumbImgList(n,t),t)}_getThumbKeyId(){let t=this.html.querySelector("#gdt").children[0].innerHTML.match(/url\(https.*?\)/g)[0].replace("url(","").replace(")","");return t.replace(t.match(/[0-9-]{3,20}\./)[0],"__PLACE_HOLDER__")}_getThumbPageCount(t){if(t<20)return 1;let n=t%20;return n>1?(t-n)/20+1:t/20}_getThumbImgList(t,n){let r=this._getThumbKeyId(),o=[];for(let s=0;s<this._getThumbPageCount(n);s++)if(r.includes("__PLACE_HOLDER__")){let i=r.replace("__PLACE_HOLDER__",`${t}-${s<10?"0"+s:s}.`);o.push(i)}else o.push(`${r}/${t}-${s<10?"0"+s:s}.jpg`);return o}_getTruePageIndex(){return Number(this.html.getElementsByClassName("ptds")[0].textContent)-1}_isValidIntroPage(){if(this.reqUrl&&this.reqUrl.includes("?p=")){let t=Number(this.reqUrl.match(/\?p=[0-9]+/g)[0].replace("?p=",""));if(this._getTruePageIndex()!==t)return!1}return!0}_computeThumbList(t,n){let r=[];for(let o=0;o<t.length;o++)for(let s=0;s<20;s++)(o!==t.length-1||s<(n%20||20))&&r.push({id:t[o]+s,src:t[o],mode:En.SPIRIT,offset:s*100,style:"",height:0,width:0});return r}getMaxPageNumber(){const t=this.html.querySelectorAll("body>.gtb .ptb td a");let n=0;return t.forEach(r=>{const o=parseInt(r.textContent,10);!isNaN(o)&&o>n&&(n=o)}),n}};class Dw{constructor(t){re(this,"urls",[]);re(this,"resultMap",new Map);re(this,"fetchSetting",null);re(this,"gen");this.urls=t,this.fetchSetting=null}request(){return new Promise((t,n)=>{this._initGenerator(t,n),this._request()})}setFetchSetting(t){return this.fetchSetting=t,this}_initGenerator(t,n){let r=this;this.gen=(function*(){try{for(let o of r.urls){let s=yield o;r.resultMap.set(s.url,s.html)}t(r.resultMap)}catch(o){n(o)}})(),this.gen.next()}_request(){for(let t of this.urls)new Vn(t).setFetchSetting(this.fetchSetting).request().then(n=>this.gen.next({url:t,html:n},r=>this.gen.throw(r)))}}class Td{constructor(t){re(this,"urls",[]);re(this,"maxConcurrentedNum",5);re(this,"resultMap",new Map);re(this,"fetchSetting",null);this.urls=t}setNumOfConcurrented(t){return this.maxConcurrentedNum=t,this}setFetchSetting(t){return this.fetchSetting=t,this}request(){return new Promise((t,n)=>{let r=this._splitReqs();this._request(r,t,n)})}_splitReqs(){if(this.urls.length<this.maxConcurrentedNum)return[this.urls];let t=[],n=JSON.parse(JSON.stringify(this.urls));for(;;){let r=n.splice(0,this.maxConcurrentedNum);if(r.length>0)t.push(r);else return t}}_addMap(t,n){return n.forEach((r,o)=>{t.set(o,r)}),t}_request(t,n,r){t.length>0?new Dw(t[0]).setFetchSetting(this.fetchSetting).request().then(o=>{this._addMap(this.resultMap,o),t.splice(0,1),this._request(t,n,r)},o=>{r(o)}):n(this.resultMap)}}class Mw{constructor(t,n){re(this,"introUrl");re(this,"sumOfIntroPage");re(this,"introPageUrls");this.introUrl=t,this.sumOfIntroPage=0,this.introPageUrls=[]}request(){return Ce(this,null,function*(){let t=yield new Td([this.introUrl]).request();return this.sumOfIntroPage=new Cd(t.get(this.introUrl),this.introUrl).getMaxPageNumber(),this.introPageUrls=this._getIntroPageUrls(),yield this._request()})}_getIntroPageUrls(){let t=[];for(let n=0;n<this.sumOfIntroPage;n++)t.push(`${this.introUrl}?p=${n}`);return t}_request(){return Ce(this,null,function*(){let t=yield new Td(this.introPageUrls).request(),n=this.introPageUrls.reduce((o,s)=>(o=o.concat(new Cd(t.get(s),s).getImgUrls()),o),[]),r=0;return n.forEach(o=>{o.index=r++}),n})}}const _a=[{id:"parseImagePageMetadata",label:"Parse image page metadata",order:1},{id:"fetchIntroPages",label:"Fetch intro pages",order:2},{id:"extractImagePagesAndThumbnails",label:"Extract image pages and thumbnails",order:3}],ka=[{id:"parseImagePageMetadata",label:"Parse image page metadata",order:1},{id:"fetchIntroPage",label:"Fetch intro page",order:2},{id:"extractTitle",label:"Extract title",order:3},{id:"extractImagePagesAndThumbnails",label:"Extract image pages and thumbnails",order:4}],xa=[{id:"parseReadingPageMetadata",label:"Parse reading page metadata",order:1},{id:"extractImagePages",label:"Extract image pages from DOM",order:2},{id:"buildThumbnails",label:"Build thumbnails",order:3}];function Ca(e){return e.reduce((t,n)=>(t[n.id]=n,t),{})}function dt(e,t,n){return{id:e.id,label:e.label,order:e.order,status:t,detail:n}}function zo(e,t,n,r,o){const s=e.find(a=>t[a]==="pending");if(!s)return;const i=n[s];i&&o(dt(i,"failed",r))}const Pw="ehunterMockThumbParseError";function Rw(){try{return new URLSearchParams(window.location.search).get(Pw)==="1"}catch(e){return!1}}class qw{constructor(){re(this,"imgHtmlParser");re(this,"thumbInfos",[]);re(this,"imgPageInfos",[]);re(this,"pageCount",0);re(this,"introUrl","");re(this,"albumId","");re(this,"curPageIndex",0);re(this,"title","");re(this,"isInitialized",!1);re(this,"reportInitializationStep",()=>{});re(this,"initializationStepStatus",{});re(this,"initializationStepOrder",_a.map(t=>t.id));re(this,"initializationStepMap",Ca(_a));const t=document.documentElement.outerHTML;this.imgHtmlParser=new Sa(t)}isSupportOriginImg(){return!0}isSupportImgChangeSource(){return!0}isSupportThumbView(){return!0}getTitle(){return this.title}getAlbumId(){return this.albumId}getPageCount(){return this.pageCount}getCurPageIndex(){return this.curPageIndex}setInitializationStepReporter(t){this.reportInitializationStep=t}updateInitializationStep(t){this.initializationStepStatus[t.id]=t.status,this.reportInitializationStep(t)}failCurrentInitializationStep(t){zo(this.initializationStepOrder,this.initializationStepStatus,this.initializationStepMap,t,n=>this.updateInitializationStep(n))}init(){return Ce(this,null,function*(){this.initializationStepStatus={},_a.forEach(t=>{this.updateInitializationStep(dt(t,"pending"))});try{this.title=this.imgHtmlParser.getTitle(),this.pageCount=this.imgHtmlParser.getPageCount(),this.albumId=this.imgHtmlParser.getAlbumId(),this.introUrl=this.imgHtmlParser.getIntroUrl(),this.curPageIndex=this.imgHtmlParser.getCurPageNum()-1,this.updateInitializationStep(dt(this.initializationStepMap.parseImagePageMetadata,"success",`Parsed title and ${this.pageCount} pages`));const t=new Mw(this.introUrl,this.pageCount);if(Rw())return new Error("MOCK_THUMB_PARSE_ERROR: failed to parse thumbnail list");this.imgPageInfos=yield t.request(),this.updateInitializationStep(dt(this.initializationStepMap.fetchIntroPages,"success","Intro pages fetched successfully")),this.thumbInfos=this.imgPageInfos.map((n,r)=>{if(n.thumbStyle){const o=n.thumbStyle.match(/url\(([^)]+)\)/),s=n.thumbStyle.match(/-(\d+)px/),i=o?o[1]:"",a=s?parseInt(s[1],10):0;return{id:n.id,src:i,mode:En.SPIRIT,style:n.thumbStyle,height:n.thumbHeight||0,width:n.thumbWidth||0,offset:a}}else return{id:n.id,src:"",mode:En.IMG,height:n.thumbHeight||0,width:n.thumbWidth||0}}),this.updateInitializationStep(dt(this.initializationStepMap.extractImagePagesAndThumbnails,"success",`${this.imgPageInfos.length} image pages and ${this.thumbInfos.length} thumbnails extracted`)),this.isInitialized=!0,console.log("EH Platform initialized successfully",{title:this.title,pageCount:this.pageCount,albumId:this.albumId,curPageIndex:this.curPageIndex,thumbCount:this.thumbInfos.length,imgPageCount:this.imgPageInfos.length})}catch(t){const n=t instanceof Error?t.message:String(t);return this.failCurrentInitializationStep(n),console.error("EH Platform initialization failed:",t),t instanceof Error?t:new Error(String(t))}})}getThumbInfos(t){return this.thumbInfos}getImgPageInfos(){return this.imgPageInfos}getImgSrc(t,n){return Ce(this,null,function*(){try{const r=this.imgPageInfos[t];if(!r)return new Error(`Image page info not found for index ${t}`);if(r.src&&n!==Ye.ChangeSource&&n!==Ye.Origin)return r;const s=yield new Vn(r.pageUrl).request(),i=new Sa(s);switch(n){case Ye.Origin:try{r.src=i.getOriginalImgUrl()}catch(a){return new Error("ERROR_NO_ORIGIN")}break;case Ye.ChangeSource:try{const a=i.getSourceId();if(!a)return new Error("ERROR_CHANGE_SOURCE");const u=yield new Vn(`${r.pageUrl}?nl=${a}`).request(),l=new Sa(u);return r.src=l.getImgUrl(),r.preciseHeightOfWidth=l.getPreciseHeightOfWidth(),r}catch(a){return new Error("ERROR_CHANGE_SOURCE")}default:r.src=i.getImgUrl()}return r.preciseHeightOfWidth=i.getPreciseHeightOfWidth(),r}catch(r){return r instanceof Error?r:new Error(String(r))}})}getPreviewThumbnailStyle(t){const n=this.thumbInfos[t];if(!n||!n.style)return{"background-image":"","background-position":"","background-size":""};const r={"background-image":"","background-position":"","background-size":""},o=n.style.match(/url\(([^)]+)\)\s*([-0-9px\s]+)/);return o&&(r["background-image"]=`url(${o[1]})`,r["background-position"]=o[2].trim()),r}getIntroUrl(){return this.introUrl}setIntroUrl(t){this.introUrl=t}}class Ed{constructor(t){re(this,"htmlText");re(this,"html");return this.htmlText=t.replace(/src=/g,"x-src="),this.html=document.createElement("html"),this.html.innerHTML=this.htmlText,this}getCurPageNum(){return Number(this.html.querySelector(".current").textContent)}getPageCount(){return Number(this.html.querySelector(".num-pages").textContent)}getImgHeight(){return Number(this.html.querySelector("#image-container").children[0].children[0].getAttribute("height"))}getImgWidth(){return Number(this.html.querySelector("#image-container").children[0].children[0].getAttribute("width"))}getIntroUrl(){return this.html.querySelector(".go-back").getAttribute("href")}getAlbumId(){return this.getIntroUrl().replace(/(\/|g)/g,"")}getImgUrl(){return this.html.querySelector("#image-container").children[0].children[0].getAttribute("x-src")}}class Fw{constructor(t){re(this,"html");re(this,"imgPageInfos",[]);re(this,"thumbInfos",[]);this.html=document.createElement("html"),this.html.innerHTML=t.replace(/src=/g,"x-src="),this.parseData()}getTitle(){return this.html.querySelector("h1").textContent}parseData(){Array.prototype.slice.call(this.html.querySelectorAll(".gallerythumb"),0).forEach(t=>{const n=t.children[0].getAttribute("data-x-src"),r=t.children[0].getAttribute("height")*1,o=t.children[0].getAttribute("width")*1,s=t.getAttribute("href");this.imgPageInfos.push({id:s,index:this.imgPageInfos.length,pageUrl:s,thumbHeight:r,thumbWidth:o,thumbStyle:"",src:"",heightOfWidth:r/o}),this.thumbInfos.push({id:s,mode:En.IMG,src:n,style:"",height:0,width:0})})}getImgPageInfos(){return this.imgPageInfos}getThumbInfos(){return this.thumbInfos}}class Lw{constructor(){re(this,"imgHtmlParser");re(this,"thumbInfos",[]);re(this,"imgPageInfos",[]);re(this,"pageCount",0);re(this,"introUrl","");re(this,"albumId","");re(this,"curPageIndex",0);re(this,"title","");re(this,"reportInitializationStep",()=>{});re(this,"initializationStepStatus",{});re(this,"initializationStepOrder",ka.map(t=>t.id));re(this,"initializationStepMap",Ca(ka));const t=document.documentElement.outerHTML;this.imgHtmlParser=new Ed(t)}isSupportOriginImg(){return!1}isSupportImgChangeSource(){return!1}isSupportThumbView(){return!0}getTitle(){return this.title}getAlbumId(){return this.albumId}getIntroUrl(){return this.introUrl}getPageCount(){return this.pageCount}getCurPageIndex(){return this.curPageIndex}setInitializationStepReporter(t){this.reportInitializationStep=t}updateInitializationStep(t){this.initializationStepStatus[t.id]=t.status,this.reportInitializationStep(t)}failCurrentInitializationStep(t){zo(this.initializationStepOrder,this.initializationStepStatus,this.initializationStepMap,t,n=>this.updateInitializationStep(n))}init(){return Ce(this,null,function*(){this.initializationStepStatus={},ka.forEach(t=>{this.updateInitializationStep(dt(t,"pending"))});try{this.pageCount=this.imgHtmlParser.getPageCount(),this.albumId=this.imgHtmlParser.getAlbumId(),this.introUrl=this.imgHtmlParser.getIntroUrl(),this.curPageIndex=this.imgHtmlParser.getCurPageNum()-1,this.updateInitializationStep(dt(this.initializationStepMap.parseImagePageMetadata,"success",`${this.pageCount} pages detected`));const t=yield new Vn(this.introUrl).request();this.updateInitializationStep(dt(this.initializationStepMap.fetchIntroPage,"success","Intro page loaded"));const n=new Fw(t);if(this.title=n.getTitle(),!this.title||!this.title.trim())throw new Error("Title is empty");this.updateInitializationStep(dt(this.initializationStepMap.extractTitle,"success","Title extracted successfully")),this.imgPageInfos=n.getImgPageInfos(),this.thumbInfos=n.getThumbInfos(),this.updateInitializationStep(dt(this.initializationStepMap.extractImagePagesAndThumbnails,"success",`${this.imgPageInfos.length} image pages and ${this.thumbInfos.length} thumbnails extracted`))}catch(t){const n=t instanceof Error?t.message:String(t);return this.failCurrentInitializationStep(n),t instanceof Error?t:new Error(String(t))}})}getThumbInfos(t){return this.thumbInfos}getImgPageInfos(){return this.imgPageInfos}getImgSrc(t,n){return Ce(this,null,function*(){try{const r=this.imgPageInfos[t];if(!r)return new Error(`Image page info not found for index ${t}`);if(r.src)return Xe({},r);const o=new Vn(r.pageUrl);o.setTimeOutTime(5);const s=yield o.request(),i=new Ed(s),a=i.getImgUrl(),c=i.getImgHeight(),u=i.getImgWidth();return this.imgPageInfos[t].src=a,c>0&&u>0&&(this.imgPageInfos[t].preciseHeightOfWidth=c/u),Xe({},this.imgPageInfos[t])}catch(r){return r instanceof Error?r:new Error(String(r))}})}getPreviewThumbnailStyle(t){const n=this.thumbInfos[t];return{"background-image":n!=null&&n.src?`url(${n.src})`:"","background-position":"0% 0%","background-size":"cover"}}}const Ta="https://cdn-msp.18comic.vip",Ea=1.42;function Ow(e){const t=e.match(/page_arr\s*=\s*(\[[^\]]*?\])/);if(!t)return[];try{return JSON.parse(t[1])}catch(n){return[]}}function Nw(e){const t=e.match(/cdnImgHost\s*:\s*'([^']+)'/);if(t)return t[1];const n=e.match(/cdnImgHost\s*:\s*"([^"]+)"/);return n?n[1]:Ta}function Bw(e){const t=e.match(/currentAid\s*:\s*'(\d+)'/);if(t)return t[1];const n=e.match(/currentAid\s*:\s*"(\d+)"/);return n?n[1]:""}function zw(e){const t=e.match(/scramble_id\s*=\s*(\d+)/);return t?Number(t[1]):220980}function Id(e){const t=Ow(e);if(!t.length)return null;const n=t.filter(s=>!s.includes("blank")&&s.endsWith(".webp"));if(!n.length)return null;const r=Nw(e),o=Bw(e)||"";return{cdn:r,aid:o,files:n,scrambleId:zw(e)}}class Hw{constructor(t){re(this,"albumId","");re(this,"title","");this.albumId=this.fromUrl(),this.title=this.fromTitle()}fromUrl(){const t=window.location.pathname.match(/\/photo\/(\d+)/);return t?t[1]:""}fromTitle(){const t=document.querySelector("h1");if(t&&t.textContent){const n=t.textContent.split("|")[0].trim();if(n)return n}return document.title.split("|")[0].trim()}getAlbumId(){return this.albumId}getTitle(){return this.title}getCurPageIndex(){return 0}getPageCount(){const t=this.readData();return t?t.files.length:document.querySelectorAll('img[id*="album_photo"]:not([src*="blank"])').length}readData(){const t=document.querySelectorAll("script:not([src])");for(const r of t){if(!r.textContent||!r.textContent.includes("page_arr"))continue;const o=Id(r.textContent);if(o)return o}const n=document.documentElement.outerHTML;return n.includes("page_arr")?Id(n):null}getScrambleId(){var t,n;return(n=(t=this.readData())==null?void 0:t.scrambleId)!=null?n:220980}getFileName(t){var n,r;return(r=(n=this.readData())==null?void 0:n.files[t])!=null?r:`${String(t+1).padStart(5,"0")}.webp`}getPageNumber(t){return this.getFileName(t).replace(/\.[^.]+(?:\?.*)?$/,"")}getImgPageInfos(){const t=this.readData(),n=[];if(t)return t.files.forEach((i,a)=>{const c=t.cdn+"/media/photos/"+(t.aid||this.albumId)+"/"+i;n.push({id:a+1,index:a,pageUrl:c,src:"",heightOfWidth:Ea})}),n;const r=document.querySelectorAll('img[id*="album_photo"]');let o=Ea,s=Ta;return r.forEach(i=>{const a=i,c=a.src||"";if(c.includes("blank.jpg"))return;if(s===Ta&&c.startsWith("http")){const h=c.match(/^(https?:\/\/[^\/]+)/);h&&(s=h[1])}let u=a.naturalWidth||a.width||0,l=a.naturalHeight||a.height||0;const f=u>0&&l>0?l/u:o;f>.01&&(o=f);const p=c||s+"/media/photos/"+this.albumId+"/"+String(n.length+1).padStart(5,"0")+".webp";n.push({id:n.length+1,index:n.length,pageUrl:p,src:"",heightOfWidth:f})}),n}getThumbInfos(t){return t.map(n=>{const r=n.heightOfWidth||Ea,o=140;return{id:n.id,src:"",mode:En.IMG,height:o,width:Math.round(o/r)}})}}class Vw{constructor(){re(this,"parser",new Hw);re(this,"thumbInfos",[]);re(this,"imgPageInfos",[]);re(this,"reportStep",()=>{});re(this,"stepStatus",{});re(this,"stepOrder",xa.map(t=>t.id));re(this,"stepMap",Ca(xa));re(this,"decodedImages",new Map);re(this,"decodePromises",new Map)}isSupportOriginImg(){return!1}isSupportImgChangeSource(){return!1}isSupportThumbView(){return!0}getTitle(){return this.parser.getTitle()}getAlbumId(){return this.parser.getAlbumId()}getIntroUrl(){return window.location.href}getPageCount(){return this.imgPageInfos.length}getCurPageIndex(){return 0}setInitializationStepReporter(t){this.reportStep=t}step(t){this.stepStatus[t.id]=t.status,this.reportStep(t)}fail(t){zo(this.stepOrder,this.stepStatus,this.stepMap,t,n=>this.step(n))}init(){return Ce(this,null,function*(){this.stepStatus={},xa.forEach(n=>this.step(dt(n,"pending")));const t=this.parser.getTitle();try{for(let n=0;n<50&&(this.imgPageInfos=this.parser.getImgPageInfos(),!(this.imgPageInfos.length>0));n++)yield new Promise(r=>setTimeout(r,200));if(!this.imgPageInfos.length)throw new Error("Timed out waiting for images");this.step(dt(this.stepMap.parseReadingPageMetadata,"success",t+" ("+this.imgPageInfos.length+"p)")),this.step(dt(this.stepMap.extractImagePages,"success",String(this.imgPageInfos.length))),this.thumbInfos=this.parser.getThumbInfos(this.imgPageInfos),this.step(dt(this.stepMap.buildThumbnails,"success","done")),console.log("JM-EHunter 18comic:",this.imgPageInfos.length,"pages")}catch(n){return this.fail(n instanceof Error?n.message:String(n)),n instanceof Error?n:new Error(String(n))}})}getThumbInfos(t){return this.thumbInfos}getImgPageInfos(){return this.imgPageInfos}getSegmentCount(t){const n=Number(this.parser.getAlbumId()),r=this.parser.getScrambleId();if(n<r)return 0;if(n<268850)return 10;const s=(typeof unsafeWindow!="undefined"?unsafeWindow:window).md5;if(typeof s!="function")throw new Error("18comic MD5 function is not available yet");const i=this.parser.getPageNumber(t),a=s(`${n}${i}`),c=n<421926?10:8,l=a.slice(-1).charCodeAt(0)%c;return l<10?2+2*l:10}requestImageBlob(t){return new Promise((n,r)=>{GM_xmlhttpRequest({method:"GET",url:t,responseType:"blob",onload:o=>{if(o.status>=200&&o.status<300&&o.response instanceof Blob){n(o.response);return}r(new Error(`Image request failed: ${o.status} ${t}`))},onerror:o=>r(new Error(`Image request error: ${o.status} ${t}`)),ontimeout:()=>r(new Error(`Image request timed out: ${t}`))})})}getCdnCandidates(t){const n=[t];for(const r of["","2","3"]){const o=t.replace(/\/\/cdn-msp\d?\./,`//cdn-msp${r}.`);n.includes(o)||n.push(o)}return n}requestImageBlobWithRetry(t){return Ce(this,null,function*(){let n=new Error(`No CDN candidates for ${t}`);for(const r of this.getCdnCandidates(t))try{return yield this.requestImageBlob(r)}catch(o){n=o}throw n})}decodeImage(t,n){return Ce(this,null,function*(){const r=yield this.requestImageBlobWithRetry(t),o=yield createImageBitmap(r),s=this.getSegmentCount(n),i=o.height/o.width;if(s===0)return o.close(),{url:URL.createObjectURL(r),ratio:i};const a=document.createElement("canvas");a.width=o.width,a.height=o.height;const c=a.getContext("2d");if(!c)throw o.close(),new Error("Could not create a 2D canvas context");const u=Math.floor(o.height/s),l=o.height%s;for(let p=0;p<s;p++){const h=o.height-u*(p+1)-l,g=u*p+(p===0?0:l),b=u+(p===0?l:0);c.drawImage(o,0,h,o.width,b,0,g,o.width,b)}o.close();const f=yield new Promise((p,h)=>{a.toBlob(g=>g?p(g):h(new Error("Canvas export failed")),"image/webp",.95)});return{url:URL.createObjectURL(f),ratio:i}})}getImgSrc(t,n){return Ce(this,null,function*(){const r=this.imgPageInfos[t];if(!r)return new Error(`Image not found: ${t}`);try{const o=this.decodedImages.get(t);if(o)return dn(Xe({},r),{src:o.url,preciseHeightOfWidth:o.ratio});let s=this.decodePromises.get(t);s||(s=this.decodeImage(r.pageUrl,t),this.decodePromises.set(t,s));const i=yield s;return this.decodePromises.delete(t),this.decodedImages.set(t,i),r.preciseHeightOfWidth=i.ratio,dn(Xe({},r),{src:i.url,preciseHeightOfWidth:i.ratio})}catch(o){return o instanceof Error?o:new Error(String(o))}})}getPreviewThumbnailStyle(t){const n=this.thumbInfos[t];return{"background-image":n&&n.src?"url("+n.src+")":"","background-position":"center","background-size":"contain"}}}let Ia=[],$w={0:"/2195608-00.jpg",1:"/2195608-01.jpg",2:"/2195608-02.jpg",3:"/2195608-03.jpg"};for(let e=0;e<64;e++)Ia.push({id:String(e),src:$w[Math.floor(e/20)],mode:0,offset:e%20*100});let Ho=[];for(let e=0;e<64;e++)Ho.push({id:e,index:e,pageUrl:"/"+(e+1+"").padStart(2,"0")+".jpg",src:"",heightOfWidth:1.4});class jw{constructor(t){re(this,"pageCount");re(this,"thumbInfos");re(this,"imgPageInfos");const n=new URLSearchParams(window.location.search),r=Number.parseInt(n.get("pageTotal")||"",10),o=Number.isFinite(r)&&r>0,s=Ho.length;this.pageCount=Eu()&&o?r:s,this.thumbInfos=Uw(this.pageCount),this.imgPageInfos=Ww(this.pageCount)}isSupportOriginImg(){return!0}isSupportImgChangeSource(){return!0}isSupportThumbView(){return!0}getTitle(){return"title"}getAlbumId(){return"id"}getIntroUrl(){return"/g/id/test/"}getPageCount(){return this.pageCount}getCurPageIndex(){return 0}init(){return Ce(this,null,function*(){})}getThumbInfos(t){return this.thumbInfos}getImgPageInfos(){return this.imgPageInfos}getImgSrc(t,n){return Ce(this,null,function*(){return this.imgPageInfos[t].src=this.imgPageInfos[t].pageUrl,this.imgPageInfos[t]})}getPreviewThumbnailStyle(t){let n=this.getImgPageInfos()[t],r=this.getThumbInfos(!1)[t];const o=t%20,s=this.getPageCount()-(t+1)>=this.getPageCount()%20?20:this.getPageCount()%20;let i;n.heightOfWidth>=1.43?i=1/(s*(1-1/n.heightOfWidth*(n.thumbHeight/(s*100)))):i=1/(s-1);let a=o*i;return{"background-image":`url(${r.src})`,"background-position":`${a*100}% 0`,"background-size":n.heightOfWidth>=1.43?"cover":`${s*100}%`}}}function Uw(e){const t=[],n=Ia.length;for(let r=0;r<e;r++){const o=Ia[r%n];t.push(dn(Xe({},o),{id:String(r)}))}return t}function Ww(e){const t=[],n=Ho.length;for(let r=0;r<e;r++){const o=Ho[r%n];t.push(dn(Xe({},o),{id:r,index:r,src:""}))}return t}function Gw(e){switch(e){case ft.EH:return new qw;case ft.NH:return new Lw;case ft.C18:return new Vw(document.documentElement.innerHTML);case ft.TEST:return new jw("");default:throw new Error(`Unsupported platform: ${e}`)}}function Kw(e,t){return Ce(this,null,function*(){var f;const r=[],o=p=>{const h=r.findIndex(g=>g.id===p.id);if(h>=0){r[h]=Xe(Xe({},r[h]),p);return}r.push(Xe({},p))},s=()=>r.slice().sort((p,h)=>{var S,v;const g=(S=p.order)!=null?S:Number.MAX_SAFE_INTEGER,b=(v=h.order)!=null?v:Number.MAX_SAFE_INTEGER;return g-b}).map(p=>p.id),i=()=>r.reduce((p,h)=>(p[h.id]=h.status,p),{}),a=()=>r.reduce((p,h)=>(p[h.id]={id:h.id,label:h.label,order:h.order},p),{}),c=p=>{zo(s(),i(),a(),p,o)},u=e;(f=u.setInitializationStepReporter)==null||f.call(u,o);const l=new Promise((p,h)=>{setTimeout(()=>{r.some(g=>g.status==="failed")||c(`Timed out after ${12e4/1e3} seconds`),h(new Bo("Platform initialization timed out after 120 seconds",t,window.location.href,r))},12e4)});try{const p=yield Promise.race([e.init(),l]);if(p instanceof Error)throw r.some(h=>h.status==="failed")||c(p.message),new Bo(`Platform initialization failed: ${p.message}`,t,window.location.href,r)}catch(p){throw p instanceof Bo?p:new Bo(p instanceof Error?p.message:"Unknown initialization error",t,window.location.href,r)}})}const Jw="ehunter-host-block-style-nh",Qw="ehunter-host-block-script-eh",Zw="ehunter-host-block-script-nh";function Yw(e,t){if(document.getElementById(e))return;const n=document.createElement("style");n.id=e,n.textContent=t,(document.head||document.documentElement).appendChild(n)}function Ad(e,t){if(document.getElementById(e))return;const n=document.createElement("script");n.id=e,n.textContent=t,(document.head||document.documentElement).appendChild(n)}function Xw(){Ad(Qw,`
      if (typeof timerId === 'undefined') {
        const timerId = window.setInterval(() => {
          if (document.onkeyup) {
            window.onpopstate = null;
            window.clearInterval(timerId);
            load_image_dispatch = () => {};
            api_response = () => {};
            _load_image = () => {};
            nl = () => {};
            hookEvent = () => {};
            scroll_space = () => {};
            document.onkeydown = () => {};
            document.onkeyup = () => {};
          }
        }, 1000);
      }
    `)}function e1(){Ad(Zw,"console._clear = console.clear; console.clear = function () {};"),Yw(Jw,".ts-im-container { display: none !important; }")}function t1(){console.log("JM-EHunter: 18comic host actions initialized")}function n1(e){if(e===ft.EH){Xw();return}if(e===ft.NH){e1();return}if(e===ft.C18){t1();return}}const fn=Aw(),Dd="jmehunter:reader:open",Md="jmehunter-switch",Vo="jmehunter-app",Pd=720,Aa=580,Rd="cubic-bezier(0.22, 1, 0.36, 1)",r1="cubic-bezier(0.55, 0.08, 0.68, 0.53)";function o1(){const e=Zt.storageGet(Dd,!0);return typeof e=="boolean"?e:e==="true"?!0:e!=="false"}function Da(e){Zt.storageSet(Dd,e)}function s1(e,t){const n=document.getElementById(Md);n&&n.remove();const r=document.createElement("div");r.style.display="flex",r.style.flexDirection="column",r.style.justifyContent="center",r.style.alignItems="center",r.style.position="fixed",r.style.right="100px",r.style.top="-150px",r.style.zIndex="2147483646",r.style.cursor="pointer",r.style.transition="all 0.2s cubic-bezier(.46,-0.23,.37,2.38)",r.setAttribute("title","open JM-EHunter"),r.setAttribute("id",Md),r.addEventListener("click",()=>{r.style.top="-50px",window.setTimeout(()=>{r.style.top="-150px"},2e3),e()});const o=document.createElement("span");o.style.width="2px",o.style.height="200px",o.style.background=t,o.style.boxShadow="0 1px 6px rgba(0,0,0,.117647), 0 1px 4px rgba(0,0,0,.117647)",r.appendChild(o);const s=document.createElement("span");s.style.border=`2px solid ${t}`,s.style.borderRadius="50%",s.style.width="15px",s.style.height="15px",s.style.boxShadow="0 1px 6px rgba(0,0,0,.117647), 0 1px 4px rgba(0,0,0,.117647)",r.appendChild(s),document.body.appendChild(r)}if(!fn.platform)console.log("JM-EHunter: No platform detected (non-album page), skipping initialization");else{console.log(`JM-EHunter: Platform detected: ${fn.platform}`);let e=!1,t=!1,n=null,r=null,o=!1,s=!1;const i=()=>window.matchMedia("(pointer: coarse)").matches||/iphone|ipad|ipod|android|mobile/i.test(navigator.userAgent),a=()=>{if(fn.platform!==ft.EH||!i())return;let S=document.querySelector('meta[name="viewport"]');const v="width=device-width, initial-scale=1, viewport-fit=cover";s||(o=!!S,r=S?S.getAttribute("content"):null,s=!0),S||(S=document.createElement("meta"),S.name="viewport",S.setAttribute("data-ehunter-managed","1"),(document.head||document.documentElement).appendChild(S)),S.setAttribute("content",v)},c=()=>{if(!s)return;const S=document.querySelector('meta[name="viewport"]');o?S&&(r===null?S.removeAttribute("content"):S.setAttribute("content",r)):(S==null?void 0:S.getAttribute("data-ehunter-managed"))==="1"&&S.remove(),r=null,o=!1,s=!1},u=()=>{n!==null&&(window.clearTimeout(n),n=null)},l=(S,v)=>{u(),n=window.setTimeout(()=>{S.style.visibility="hidden",S.style.pointerEvents="none",n=null},v)},f=()=>{let S=document.getElementById(Vo);if(S||(S=document.createElement("div"),S.id=Vo,S.classList.add("normalize"),S.style.position="fixed",S.style.height="100%",S.style.width="100%",S.style.transitionProperty="top",S.style.transitionDuration=`${Pd}ms`,S.style.transitionTimingFunction=Rd,S.style.background="#333333",S.style.zIndex="2147483647",S.style.top="-100%",S.style.left="0",S.style.visibility="hidden",S.style.pointerEvents="none",document.body.appendChild(S)),S.dataset.ehunterPlatform=fn.platform,!e){const v=lg({setup(){const w=Z(!0),y=Z(null);return Ce(null,null,function*(){try{t||(n1(fn.platform),t=!0);const x=Gw(fn.platform);v.provide(Fs,x),yield Kw(x,fn.platform),w.value=!1}catch(x){w.value=!1,y.value=x,console.error("JM-EHunter initialization failed:",{message:y.value.message,stack:y.value.stack,platform:y.value.platform,url:y.value.url,timestamp:y.value.timestamp})}}),{isLoading:w,error:y,handleClose:()=>{Da(!1),c(),document.body.style.overflow="";const x=document.getElementById(Vo);x&&(x.style.top="-100%",l(x,Aa))}}},render(){return Cs(by,{isLoading:this.isLoading,error:this.error,onClose:this.handleClose},{default:()=>Cs(Iw)})}});v.mount(`#${Vo}`),e=!0}return S},p=S=>{const v=f();if(u(),v.style.transitionProperty="top",v.style.transitionDuration=S?`${Pd}ms`:`${Aa}ms`,v.style.transitionTimingFunction=S?Rd:r1,document.body.style.overflow=S?"hidden":"",S){a(),v.style.visibility="visible",v.style.pointerEvents="auto",requestAnimationFrame(()=>{v.style.top="0"});return}c(),v.style.top="-100%",l(v,Aa)},h=()=>{Da(!0),p(!0)},g=()=>{Da(!1),p(!1)};window.__JMEHUNTER_UI__={open:h,close:g,toggle:p};const b=fn.platform===ft.C18?"#FF7A00":"#2ecc71";s1(h,b),o1()&&h()}})();