eHunter

This extension provides a scroll mode and book mode to e-hentai/exhentai/nhentai, for the best reading experince! 此扩展为e-hentai/exhentai/nhentai提供一个滚动模式和书本模式, 提供良好的阅读体验.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

You will need to install an extension such as Tampermonkey to install this script.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

You will need to install an extension such as Tampermonkey to install this script.

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

// ==UserScript==
// @name         eHunter
// @namespace    http://tampermonkey.net/
// @version      3.0.0
// @description  This extension provides a scroll mode and book mode to e-hentai/exhentai/nhentai, for the best reading experince!  此扩展为e-hentai/exhentai/nhentai提供一个滚动模式和书本模式, 提供良好的阅读体验.
// @supportURL   https://github.com/hanFengSan/eHunter/issues
// @author       Alex Chen
// @match        https://exhentai.org/*
// @match        https://e-hentai.org/*
// @match        https://nhentai.net/*
// @connect      hath.network
// @connect      nhentai.net
// @connect      githubusercontent.com
// @connect      jp.animesales.xyz
// @grant        GM_xmlhttpRequest
// @grant        GM_download
// @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-ed651547]{display:flex}.drop-option[data-v-ed651547]{position:relative;justify-content:center;align-items:center;overflow:visible;cursor:pointer}.drop-option>.text[data-v-ed651547]{margin-left:7px;padding:3px 5px;background:#0003;white-space:nowrap;color:#fff;font-size:14px}.drop-option>.icon-drop-down[data-v-ed651547]{fill:#fff;height:18px;width:18px;margin-left:2px}.drop-option .options[data-v-ed651547]{flex-direction:column;transition:all .3s ease}.drop-option .options>.item[data-v-ed651547]{white-space:nowrap;color:#000c;padding:7px 11px;min-width:52px;transition:all .3s ease}.drop-option .options>.item>span[data-v-ed651547]{transition:all .3s ease}.drop-option .options>.item[data-v-ed651547]:hover{cursor:pointer;background:#0000001a}.drop-option .options>.item:hover>span[data-v-ed651547]{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-a86efd32]{display:flex}.switch[data-v-a86efd32]{width:28px;margin:auto 15px;position:relative;cursor:pointer}.switch>.track[data-v-a86efd32]{height:14px;width:100%;border-radius:30px;background:#bdbdbd;transition:all .45s cubic-bezier(.23,1,.32,1)}.switch>.track.active[data-v-a86efd32]{background:#71ca96}.switch>.thumb[data-v-a86efd32]{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-a86efd32]{background:#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-95b7d150]{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-95b7d150]{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-95b7d150]{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-95b7d150]{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-95b7d150]{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-95b7d150]: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-95b7d150]:active{transform:scale(.96)}.ehunter-more-settings-modal>.ehunter-panel>.ehunter-panel-body[data-v-95b7d150]{flex:1;min-height:0;display:flex}.ehunter-more-settings-modal>.ehunter-panel>.ehunter-panel-body>.ehunter-left-nav[data-v-95b7d150]{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-95b7d150]{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-95b7d150]:hover{background:#d0e1ff8c;color:#2b4f86}.ehunter-more-settings-modal>.ehunter-panel>.ehunter-panel-body>.ehunter-left-nav>.ehunter-category.ehunter-active[data-v-95b7d150]{background:linear-gradient(180deg,#dce9ff,#cfe2ff);color:#1f447d;font-weight:700;box-shadow:inset 0 0 0 1px #3f6ab13d}.ehunter-more-settings-modal>.ehunter-panel>.ehunter-panel-body>.ehunter-content[data-v-95b7d150]{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-95b7d150]{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-95b7d150]{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-95b7d150]{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-95b7d150]: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-95b7d150]{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-95b7d150]{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-95b7d150]{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-95b7d150]{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-95b7d150]>: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-95b7d150]{font-size:13px;color:#476088}.ehunter-more-settings-modal>.ehunter-panel>.ehunter-panel-body>.ehunter-content>.ehunter-group>.ehunter-row>.ehunter-link[data-v-95b7d150]{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-95b7d150]{border:none;border-radius:8px;background:linear-gradient(180deg,#e65f5f,#cc3f3f);color:#fff;font-size:13px;padding:8px 12px;cursor:pointer;box-shadow:0 8px 16px #c9434342}.ehunter-more-settings-modal>.ehunter-panel>.ehunter-panel-body>.ehunter-content>.ehunter-group>.ehunter-row>.ehunter-action[data-v-95b7d150]{border:1px solid rgba(76,111,172,.36);border-radius:8px;background:linear-gradient(180deg,#f6f9ff,#e7efff);color:#274b7e;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-95b7d150]:hover{background:linear-gradient(180deg,#edf4ff,#dceaff)}.ehunter-more-settings-modal>.ehunter-panel>.ehunter-panel-body>.ehunter-content>.ehunter-group>.ehunter-quick-lanes[data-v-95b7d150]{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-95b7d150]{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-95b7d150]{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-95b7d150]{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-95b7d150]{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-95b7d150]{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-95b7d150]{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;-webkit-user-drag: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-95b7d150] *{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-95b7d150]: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-95b7d150]{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-95b7d150]{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-95b7d150]{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-95b7d150]{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-95b7d150]{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-95b7d150]{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-95b7d150],.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-95b7d150]{color:#7e889a}@media only screen and (max-width:767px){.ehunter-more-settings-modal[data-v-95b7d150]{padding:0}.ehunter-more-settings-modal>.ehunter-panel[data-v-95b7d150]{width:100%;height:100%;border-radius:0}.ehunter-more-settings-modal>.ehunter-panel>.ehunter-panel-body[data-v-95b7d150]{flex-direction:column}.ehunter-more-settings-modal>.ehunter-panel>.ehunter-panel-body>.ehunter-left-nav[data-v-95b7d150]{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-95b7d150]{flex-shrink:0;padding:8px 10px;font-size:13px}.ehunter-more-settings-modal>.ehunter-panel>.ehunter-panel-body>.ehunter-content[data-v-95b7d150]{padding:12px 14px}.ehunter-more-settings-modal>.ehunter-panel>.ehunter-panel-body>.ehunter-content>.ehunter-group>.ehunter-row>.ehunter-label-block[data-v-95b7d150]{min-width:0}.ehunter-more-settings-modal>.ehunter-panel>.ehunter-panel-body>.ehunter-content>.ehunter-group>.ehunter-row>.ehunter-link[data-v-95b7d150]{max-width:58%}}[data-v-95b7d150] .drop-option>.text{background:linear-gradient(180deg,#f2f7ff,#e5efff);border:1px solid rgba(93,124,176,.34);border-radius:8px;color:#2f4f7e;font-weight:600;padding:4px 10px}[data-v-95b7d150] .drop-option>.icon-drop-down{fill:#2f4f7e}[data-v-95b7d150] .drop-option .options{background:#fff;border:1px solid rgba(95,124,169,.28);border-radius:10px;box-shadow:0 10px 22px #182c5029}div[data-v-775e5895]{display:flex}.top-bar[data-v-775e5895]{width:100%;padding:0;margin:0;background:transparent;position:relative}.top-bar>.float-content[data-v-775e5895]{position:absolute;top:0;right:0;align-items:center;z-index:20000;height:var(--b43ab3a8)}.top-bar>.float-content>.more-button-wrapper[data-v-775e5895]{position:relative;display:flex;flex-direction:row;align-items:center}.top-bar>.float-content>.button[data-v-775e5895],.top-bar>.float-content>.more-button-wrapper[data-v-775e5895]{margin-right:13px}.top-bar>.inner-content[data-v-775e5895]{color:#fff;flex-grow:1;background:#28af60;font-size:14px;transition:all .3s ease;height:var(--v7cbba036)}.top-bar>.inner-content>.item[data-v-775e5895]{margin-left:18px;position:relative;height:40px}.top-bar>.inner-content>.item.less-margin[data-v-775e5895]{margin-left:10px}.top-bar>.inner-content>.item.icon-margin[data-v-775e5895]{margin-left:15px}.top-bar>.inner-content>.item>.label[data-v-775e5895]{display:flex;align-items:center;font-size:14px;margin:auto;white-space:nowrap;cursor:default}.top-bar>.inner-content>.item>.label.icon>svg[data-v-775e5895]{fill:#fff;height:18px;width:18px}.top-bar>.inner-content>.item>.label.icon>svg.reset[data-v-775e5895]{height:18px;width:18px}.top-bar>.inner-content>.item>.label.icon>svg.info[data-v-775e5895]{height:20px;width:20px}.top-bar>.inner-content>.item>.label.icon>svg.github[data-v-775e5895]{height:17px}.top-bar>.inner-content>.item>.label.clickable[data-v-775e5895]{cursor:pointer}.top-bar>.inner-content.hide[data-v-775e5895]{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-3c634b84]{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-3c634b84]:hover{background:#ffffff14}.dock-handle.armed[data-v-3c634b84]{background:#0003}.dock-handle[data-v-3c634b84]: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-45b2aba1]{position:relative;height:100%;width:100%;display:flex;flex-direction:column;min-height:0;min-width:0}.thumb-content .thumb-scroll-view[data-v-45b2aba1]{position:relative;background:#444;height:100%;flex:1;min-height:0;min-width:0;width:100%}.thumb-content .thumb-scroll-view[data-v-45b2aba1]:not(.dock-bottom){display:flex;flex-direction:column;align-items:stretch}.thumb-content .thumb-scroll-view>.header[data-v-45b2aba1]{position:relative;height:40px;background:#2ecc71;flex-shrink:0}.thumb-content .thumb-scroll-view>.header>.app-name[data-v-45b2aba1]{color:#fff;font-weight:bolder;font-size:var(--v8b69ed28);letter-spacing:var(--v1623f37e);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-45b2aba1]{position:relative;width:100%;padding:3px 0;margin:0;height:var(--v83a6f68e);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-45b2aba1]{position:relative;width:var(--d3d034c0);height:var(--v83a6f68e);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-45b2aba1]{width:100%;height:100%;transition:all .5s ease}.thumb-content .thumb-scroll-view .thumb-container>.thumb-stage>.index[data-v-45b2aba1]{position:absolute;display:block;font-weight:bolder;font-size:var(--v1682f559);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-45b2aba1]:hover{background:#0006}.thumb-content .thumb-scroll-view .thumb-container:hover>.thumb-stage>.index[data-v-45b2aba1]{font-size:var(--e2fd20f6);color:#333;-webkit-text-stroke:1px white}.thumb-content .thumb-scroll-view:not(.dock-bottom) .thumb-container[data-v-45b2aba1]{padding:3px var(--v6c05c142)}.thumb-content .thumb-scroll-view:not(.dock-bottom) .thumb-container>.thumb-stage[data-v-45b2aba1]{width:100%}.thumb-content .thumb-scroll-view:not(.dock-bottom) .thumb-container+.thumb-container[data-v-45b2aba1]{margin-top:var(--v12a22b04)}.thumb-content .thumb-scroll-view .indicator[data-v-45b2aba1]{position:absolute;box-sizing:border-box;margin-top:40px;height:var(--v83a6f68e);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(--v729167b9)}.thumb-content .thumb-expand-trigger[data-v-45b2aba1]{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-45b2aba1]{width:16px;height:16px;fill:currentColor;transform:rotate(0)}.thumb-content .thumb-expand-trigger[data-v-45b2aba1]:hover{opacity:1;background:#000000a6}.thumb-content .thumb-expand-trigger.dock-bottom[data-v-45b2aba1]{inset:50% 8px auto auto;transform:translateY(-50%)}.thumb-content .thumb-expand-trigger.dock-bottom>.expand-icon[data-v-45b2aba1]{transform:rotate(90deg)}.thumb-content.dock-bottom .thumb-scroll-view[data-v-45b2aba1]{width:100%;height:100%;flex-direction:row;overflow-x:overlay;overflow-y:hidden}.thumb-content.dock-bottom .thumb-scroll-view>.header[data-v-45b2aba1]{width:40px;height:100%}.thumb-content.dock-bottom .thumb-scroll-view>.header>.app-name[data-v-45b2aba1]{writing-mode:vertical-rl;text-orientation:upright;white-space:normal;letter-spacing:var(--v2722d226);top:0;left:0;transform:none;width:100%;height:100%;display:flex;align-items:center;justify-content:center;font-size:var(--v67748580);line-height:1}.thumb-content.dock-bottom .thumb-scroll-view .indicator[data-v-45b2aba1]{display:block;margin-top:0;margin-left:40px;top:0;left:var(--v729167b9);width:var(--d3d034c0);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-45b2aba1]{width:var(--d3d034c0);min-width:var(--d3d034c0);height:100%;padding:var(--v415efbe9) var(--v4d0461ec);flex-direction:column}.thumb-content.dock-bottom .thumb-scroll-view .thumb-container>.thumb-stage[data-v-45b2aba1]{width:100%;height:100%;transform-origin:center center}.ehunter-loading-view[data-v-d9fed19f]{display:flex;flex-direction:column;justify-content:center;align-items:center;width:100%;height:100%;background:#333}.ehunter-loading-view .loading-animation[data-v-d9fed19f]{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:24px}.ehunter-loading-view .loading-animation .book[data-v-d9fed19f]{position:relative;margin:0 auto;border:5px solid #ecf0f1;width:100px;height:60px}.ehunter-loading-view .loading-animation .book__page[data-v-d9fed19f]{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-d9fed19f .85s infinite linear;animation-fill-mode:forwards;backface-visibility:hidden}.ehunter-loading-view .loading-animation .book__page[data-v-d9fed19f]:nth-child(1){z-index:3;animation-delay:-.28s}.ehunter-loading-view .loading-animation .book__page[data-v-d9fed19f]:nth-child(2){z-index:2;animation-delay:-.56s}.ehunter-loading-view .loading-animation .book__page[data-v-d9fed19f]:nth-child(3){z-index:1;animation-delay:-.84s}@keyframes flip-d9fed19f{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-d9fed19f]{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-d9fed19f]:after{position:absolute;content:"";-webkit-animation:Dots-d9fed19f 1.4s cubic-bezier(0,.39,1,.68) infinite;animation:Dots-d9fed19f 1.4s cubic-bezier(0,.39,1,.68) infinite}@-webkit-keyframes Dots-d9fed19f{0%{content:""}33%{content:"."}66%{content:".."}to{content:"..."}}@keyframes Dots-d9fed19f{0%{content:""}33%{content:"."}66%{content:".."}to{content:"..."}}.ehunter-loading[data-v-d9fed19f]{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100vh}.ehunter-error[data-v-d9fed19f]{display:flex;flex-direction:column;padding:20px;background:#333;color:#fff;min-height:100vh;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif}.error-header[data-v-d9fed19f]{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-d9fed19f]{margin:0;font-size:24px;color:#ff6b6b}.close-button[data-v-d9fed19f]{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-d9fed19f]:hover{background:#ffffff1a}.error-message[data-v-d9fed19f]{font-size:16px;line-height:1.5;margin-bottom:20px;color:#ffffffe6}.error-details[data-v-d9fed19f]{background:#0000004d;border:1px solid rgba(255,255,255,.2);border-radius:4px;padding:15px}.error-details summary[data-v-d9fed19f]{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-d9fed19f]:hover{color:#4fc3f7}.error-info[data-v-d9fed19f]{display:flex;flex-direction:column;gap:10px;margin-top:10px}.error-info p[data-v-d9fed19f]{margin:0;font-size:14px;line-height:1.4}.error-info strong[data-v-d9fed19f]{color:#4fc3f7}.copy-button[data-v-d9fed19f]{border:1px solid rgba(255,255,255,.35);background:#ffffff14;color:#fff;border-radius:4px;padding:4px 10px;cursor:pointer}.copy-button[data-v-d9fed19f]:hover{background:#ffffff29}.error-stack[data-v-d9fed19f]{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-d9fed19f]{margin-top:14px;margin-bottom:0;color:#ffffffd9}.feedback-link a[data-v-d9fed19f]{color:#4fc3f7}div[data-v-86051176],span[data-v-86051176]{display:flex}.page-view[data-v-86051176]{position:absolute;inset:0;transition:all .3s ease;overflow:hidden}.page-view>.layer[data-v-86051176]{position:absolute;top:0;left:0;width:100%;height:100%}.page-view>.preview-layer[data-v-86051176]{overflow:hidden;background-color:#000;display:flex;flex-direction:column;align-items:stretch;justify-content:stretch}.page-view>.preview-layer>.preview-thumb[data-v-86051176]{width:100%;height:100%}.page-view>.preview-layer[data-v-86051176]:after{display:block;content:"";position:absolute;inset:0;background:#00000080}.page-view>.loading-layer[data-v-86051176]{box-shadow:inset 0 0 0 5px #565861}.page-view>.loading-layer>.index[data-v-86051176]{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-86051176]{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-86051176]{padding:20px;display:flex;align-items:center;flex-direction:column}.page-view>.loading-layer>.loading-info-panel .loading-info>.operation[data-v-86051176]{margin-top:2px}.page-view>.loading-layer>.loading-info-panel .loading-info>.operation>.no-margin[data-v-86051176]{margin-left:0}.page-view>.img-layer>.album-item[data-v-86051176]{width:inherit;min-width:inherit;height:inherit}.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-f47dc869]{position:relative;transition:all .3s ease;user-select:none;width:100%;height:100%}.book-page-view>.page[data-v-f47dc869]{background:#fff;flex:1;align-self:stretch;overflow:hidden}.book-page-view>.page>.ehunter-tag[data-v-f47dc869]{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-f47dc869]{left:7vh;right:initial;transform:translate(-50%,50%) rotate(45deg)}.book-page-view>.page.start-page[data-v-f47dc869]{position:relative;justify-content:center}.book-page-view>.page.start-page>h1[data-v-f47dc869]{font-size:4vh;font-weight:lighter;margin:40% 20px;text-align:left;color:#000c}.book-page-view>.page.end-page[data-v-f47dc869]{position:relative;justify-content:center;align-items:center}.book-page-view>.page.end-page>h1[data-v-f47dc869]{color:#000000b3;font-size:6vh;padding-bottom:20%}.album-book-view[data-v-436fab78]{display:flex;flex-direction:column;position:relative;overflow:hidden;height:100%;width:100%}.album-book-view>.book-spread[data-v-436fab78]{position:absolute;inset:0;width:100%;height:100%;transform-style:preserve-3d}.album-book-view>.book-spread>.book-page-container[data-v-436fab78]{user-select:none;position:absolute;box-sizing:border-box;box-shadow:0 19px 10px -8px #00000059}.album-book-view>.book-page-container[data-v-436fab78]{user-select:none;position:absolute;box-sizing:border-box;box-shadow:0 19px 10px -8px #00000059}.album-book-view.mode-realistic[data-v-436fab78]{perspective:1800px;perspective-origin:50% 50%}.album-book-view.mode-realistic>.book-spread[data-v-436fab78]{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-realistic>.book-spread[data-v-436fab78]:before,.album-book-view.mode-realistic>.book-spread[data-v-436fab78]: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-realistic>.book-spread[data-v-436fab78]:before{background:radial-gradient(120% 85% at 52% 50%,#ffffff52,#ffffff1f 26%,#ffffff05 62%,#fff0);mix-blend-mode:screen}.album-book-view.mode-realistic>.book-spread[data-v-436fab78]: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-realistic>.book-spread[data-v-436fab78]:before{transform:var(--curl-before-transform)}.album-book-view.mode-realistic>.book-spread>.book-page-container[data-v-436fab78]{overflow:hidden}.album-book-view.mode-realistic>.book-spread>.book-page-container[data-v-436fab78]: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-436fab78]{will-change:transform,opacity;backface-visibility:hidden;box-shadow:0 16px 26px -14px #00000061}.album-book-view>.bottom-pagination[data-v-436fab78]{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-436fab78]:hover{opacity:1}.action-panel[data-v-436fab78]{position:absolute;inset:0;z-index:10000;opacity:.5;display:none;background-color:#000;pointer-events:none}.action-panel .next[data-v-436fab78]{position:absolute;left:0;right:0;height:30%;bottom:0;background-color:red;pointer-events:none}.action-panel .pre[data-v-436fab78]{position:absolute;left:0;right:0;height:30%;top:0;background-color:green;pointer-events:none}.action-panel .setting[data-v-436fab78]{position:absolute;left:0;right:0;height:40%;top:50%;transform:translateY(-50%);background-color:purple;pointer-events:none}.screen-flip-enter-active[data-v-436fab78],.screen-flip-leave-active[data-v-436fab78]{transition:transform .46s cubic-bezier(.22,.61,.36,1),opacity .46s ease}.screen-flip-enter-from[data-v-436fab78]{transform-origin:right center;transform:translate3d(10%,0,0) rotateY(66deg) rotateX(3.2deg) skewY(-2.4deg) scale(.95,.98);opacity:.64;--curl-before-opacity: .62;--curl-after-opacity: .72;--curl-before-transform: translateX(-3.2%) scaleX(.9);--curl-after-transform: translateX(-2.2%) scaleX(1.12)}.screen-flip-leave-to[data-v-436fab78]{transform-origin:left center;transform:translate3d(-16%,0,0) rotateY(-80deg) rotateX(-2.8deg) skewY(2.6deg) scale(.91,.97);opacity:0;--curl-before-opacity: .78;--curl-after-opacity: .82;--curl-before-transform: translateX(5.2%) scaleX(1.16);--curl-after-transform: translateX(3.8%) scaleX(1.24)}.screen-flip-reverse-enter-active[data-v-436fab78],.screen-flip-reverse-leave-active[data-v-436fab78]{transition:transform .46s cubic-bezier(.22,.61,.36,1),opacity .46s ease}.screen-flip-reverse-enter-from[data-v-436fab78]{transform-origin:left center;transform:translate3d(-10%,0,0) rotateY(-66deg) rotateX(-3.2deg) skewY(2.4deg) scale(.95,.98);opacity:.64;--curl-before-opacity: .62;--curl-after-opacity: .72;--curl-before-transform: translateX(3.2%) scaleX(-.9);--curl-after-transform: translateX(2.2%) scaleX(-1.12)}.screen-flip-reverse-leave-to[data-v-436fab78]{transform-origin:right center;transform:translate3d(16%,0,0) rotateY(80deg) rotateX(2.8deg) skewY(-2.6deg) scale(.91,.97);opacity:0;--curl-before-opacity: .78;--curl-after-opacity: .82;--curl-before-transform: translateX(-5.2%) scaleX(-1.16);--curl-after-transform: translateX(-3.8%) scaleX(-1.24)}.screen-slide-next-enter-active[data-v-436fab78],.screen-slide-next-leave-active[data-v-436fab78],.screen-slide-prev-enter-active[data-v-436fab78],.screen-slide-prev-leave-active[data-v-436fab78]{transition:transform .44s cubic-bezier(.22,.74,.2,1),opacity .44s ease}.screen-slide-next-enter-from[data-v-436fab78]{transform:translate3d(0,102%,0);opacity:.95}.screen-slide-next-leave-to[data-v-436fab78]{transform:translate3d(0,-102%,0);opacity:0}.screen-slide-prev-enter-from[data-v-436fab78]{transform:translate3d(0,-102%,0);opacity:.95}.screen-slide-prev-leave-to[data-v-436fab78]{transform:translate3d(0,102%,0);opacity:0}.screen-none-enter-active[data-v-436fab78],.screen-none-leave-active[data-v-436fab78]{transition-duration:0s}.screen-none-enter-from[data-v-436fab78],.screen-none-leave-to[data-v-436fab78]{opacity:1;transform:none}.thumb-expand-modal[data-v-a4d1fb66]{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-a4d1fb66]{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-a4d1fb66]{width:min(1400px,100%)}}.thumb-expand-modal>.panel[data-v-a4d1fb66]{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-a4d1fb66]{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-a4d1fb66]:hover{background:#ebf3ff;color:#2d5a9e;transform:scale(1.08);box-shadow:0 4px 12px #1f447d2e}.thumb-expand-modal>.panel>.close-btn[data-v-a4d1fb66]:active{transform:scale(.96)}.thumb-expand-modal>.panel>.grid-wrap[data-v-a4d1fb66]{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:space-between;min-height:640px}.thumb-expand-modal>.panel>.grid-wrap>.thumb-item[data-v-a4d1fb66]{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-a4d1fb66]: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-a4d1fb66]{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-a4d1fb66]{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-a4d1fb66]{border:1px dashed rgba(122,136,162,.4);background:#dce3ee80}.thumb-expand-modal>.panel>.grid-wrap>.thumb-item>.thumb-frame[data-v-a4d1fb66]>.thumb-view{width:100%;height:100%}.thumb-expand-modal>.panel>.grid-wrap>.thumb-item>.thumb-frame[data-v-a4d1fb66]>.thumb-view .thumb-fallback{font-size:12px;color:#5d6f8f}.thumb-expand-modal>.panel>.grid-wrap>.thumb-item>.page-label[data-v-a4d1fb66]{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-a4d1fb66]{background:linear-gradient(135deg,#c1f1d5b3,#d5f6e399);color:#1c7d44}.thumb-expand-modal>.panel>.grid-wrap>.thumb-item.active>.page-label[data-v-a4d1fb66]{background:linear-gradient(135deg,#97e7b9d9,#acecc7bf);color:#186839;font-weight:700}.thumb-expand-modal>.panel>.pager-row[data-v-a4d1fb66]{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-a4d1fb66]{padding:14px}.thumb-expand-modal>.panel[data-v-a4d1fb66]{min-height:min(86vh,840px)}.thumb-expand-modal>.panel>.grid-wrap[data-v-a4d1fb66]{padding:44px 14px 12px;gap:10px}}@media only screen and (max-width:767px){.thumb-expand-modal[data-v-a4d1fb66]{padding:0}.thumb-expand-modal>.panel[data-v-a4d1fb66]{width:100%;height:100%;max-height:none;min-height:100%;border-radius:0}.thumb-expand-modal>.panel>.grid-wrap[data-v-a4d1fb66]{padding:44px 0 10px;gap:10px}.thumb-expand-modal>.panel>.grid-wrap>.thumb-item[data-v-a4d1fb66]{padding:7px;gap:7px}.thumb-expand-modal>.panel>.grid-wrap>.thumb-item>.page-label[data-v-a4d1fb66]{height:22px;font-size:11px}}.split-handle[data-v-e8a9bd37]{position:relative;background:transparent;transition:background-color .2s ease;user-select:none;-webkit-tap-highlight-color:transparent;touch-action:none}.split-handle.vertical[data-v-e8a9bd37]{width:0}.split-handle.horizontal[data-v-e8a9bd37]{height:0}.split-handle .grip[data-v-e8a9bd37]{position:absolute;border-radius:2px;background:transparent;transition:background-color .2s ease}.split-handle.vertical .grip[data-v-e8a9bd37]{top:0;bottom:0;left:-5px;width:10px;cursor:col-resize}.split-handle.horizontal .grip[data-v-e8a9bd37]{left:0;right:0;top:-5px;height:10px;cursor:row-resize}.split-handle.active .grip[data-v-e8a9bd37],.split-handle:hover .grip[data-v-e8a9bd37]{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-f4d7c623]{display:flex}.reader-view[data-v-f4d7c623]{position:relative;flex-direction:row;align-items:center;height:100%;width:100%}.reader-view[data-v-f4d7c623] .main-content{height:100%;width:100%;flex-grow:1;position:relative;display:flex;flex-direction:column}.reader-view[data-v-f4d7c623] .main-content>.top-bar{position:absolute;z-index:10000;left:0;top:0;width:100%}.reader-view[data-v-f4d7c623] .main-content>.content{position:absolute;left:0;top:0;width:100%;height:100%}.reader-view>.panel[data-v-f4d7c623]{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-f4d7c623]:hover{opacity:1}.reader-view>.panel>.location[data-v-f4d7c623]{color:#28af60;display:inline-block;font-size:16px;line-height:16px;margin-top:2px}.reader-view>.panel .icon-container[data-v-f4d7c623]{position:relative;display:inline-block}.reader-view>.panel>.full-screen[data-v-f4d7c623]{cursor:pointer;margin-left:5px}.reader-view>.panel>.full-screen>svg[data-v-f4d7c623]{fill:#28af60;width:26px;height:26px}.reader-view>.status-pannel[data-v-f4d7c623]{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-f4d7c623]{display:flex;flex-direction:row;align-items:center;font-size:11px;line-height:11px;color:#fff}.reader-view>.status-pannel>.full-screen[data-v-f4d7c623]{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-f4d7c623]:hover{color:#28af60}.reader-view>.status-pannel>.full-screen>svg[data-v-f4d7c623]{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{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%)}.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 Gy=Object.defineProperty,Ky=Object.defineProperties;var Qy=Object.getOwnPropertyDescriptors;var ph=Object.getOwnPropertySymbols;var Zy=Object.prototype.hasOwnProperty,Yy=Object.prototype.propertyIsEnumerable;var mc=(ze,ce,Me)=>ce in ze?Gy(ze,ce,{enumerable:!0,configurable:!0,writable:!0,value:Me}):ze[ce]=Me,Bn=(ze,ce)=>{for(var Me in ce||(ce={}))Zy.call(ce,Me)&&mc(ze,Me,ce[Me]);if(ph)for(var Me of ph(ce))Yy.call(ce,Me)&&mc(ze,Me,ce[Me]);return ze},Ro=(ze,ce)=>Ky(ze,Qy(ce));var re=(ze,ce,Me)=>mc(ze,typeof ce!="symbol"?ce+"":ce,Me);var Ie=(ze,ce,Me)=>new Promise((ot,Vn)=>{var yn=pt=>{try{Fe(Me.next(pt))}catch(Hn){Vn(Hn)}},zn=pt=>{try{Fe(Me.throw(pt))}catch(Hn){Vn(Hn)}},Fe=pt=>pt.done?ot(pt.value):Promise.resolve(pt.value).then(yn,zn);Fe((Me=Me.apply(ze,ce)).next())});(function(){"use strict";/**
* @vue/shared v3.5.28
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/function ze(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const ce={},Me=[],ot=()=>{},Vn=()=>!1,yn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),zn=e=>e.startsWith("onUpdate:"),Fe=Object.assign,pt=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Hn=Object.prototype.hasOwnProperty,xe=(e,t)=>Hn.call(e,t),ie=Array.isArray,wn=e=>$n(e)==="[object Map]",vc=e=>$n(e)==="[object Set]",bc=e=>$n(e)==="[object Date]",ae=e=>typeof e=="function",Le=e=>typeof e=="string",gt=e=>typeof e=="symbol",Se=e=>e!==null&&typeof e=="object",yc=e=>(Se(e)||ae(e))&&ae(e.then)&&ae(e.catch),wc=Object.prototype.toString,$n=e=>wc.call(e),gh=e=>$n(e).slice(8,-1),_c=e=>$n(e)==="[object Object]",Mo=e=>Le(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Un=ze(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Tr=e=>{const t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},mh=/-\w/g,Wt=Tr(e=>e.replace(mh,t=>t.slice(1).toUpperCase())),vh=/\B([A-Z])/g,rn=Tr(e=>e.replace(vh,"-$1").toLowerCase()),kc=Tr(e=>e.charAt(0).toUpperCase()+e.slice(1)),Fo=Tr(e=>e?`on${kc(e)}`:""),Gt=(e,t)=>!Object.is(e,t),Er=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},xc=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},Lo=e=>{const t=parseFloat(e);return isNaN(t)?e:t},bh=e=>{const t=Le(e)?Number(e):NaN;return isNaN(t)?e:t};let Sc;const Ar=()=>Sc||(Sc=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:typeof global!="undefined"?global:{});function je(e){if(ie(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],o=Le(r)?kh(r):je(r);if(o)for(const s in o)t[s]=o[s]}return t}else if(Le(e)||Se(e))return e}const yh=/;(?![^(]*\))/g,wh=/:([^]+)/,_h=/\/\*[^]*?\*\//g;function kh(e){const t={};return e.replace(_h,"").split(yh).forEach(n=>{if(n){const r=n.split(wh);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function pe(e){let t="";if(Le(e))t=e;else if(ie(e))for(let n=0;n<e.length;n++){const r=pe(e[n]);r&&(t+=r+" ")}else if(Se(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const xh=ze("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function Cc(e){return!!e||e===""}function Sh(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=No(e[r],t[r]);return n}function No(e,t){if(e===t)return!0;let n=bc(e),r=bc(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=gt(e),r=gt(t),n||r)return e===t;if(n=ie(e),r=ie(t),n||r)return n&&r?Sh(e,t):!1;if(n=Se(e),r=Se(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 c=e.hasOwnProperty(i),a=t.hasOwnProperty(i);if(c&&!a||!c&&a||!No(e[i],t[i]))return!1}}return String(e)===String(t)}const Tc=e=>!!(e&&e.__v_isRef===!0),J=e=>Le(e)?e:e==null?"":ie(e)||Se(e)&&(e.toString===wc||!ae(e.toString))?Tc(e)?J(e.value):JSON.stringify(e,Ec,2):String(e),Ec=(e,t)=>Tc(t)?Ec(e,t.value):wn(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,o],s)=>(n[Oo(r,s)+" =>"]=o,n),{})}:vc(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Oo(n))}:gt(t)?Oo(t):Se(t)&&!ie(t)&&!_c(t)?String(t):t,Oo=(e,t="")=>{var n;return gt(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};function Ch(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 tt;class Th{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=tt,!t&&tt&&(this.index=(tt.scopes||(tt.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=tt;try{return tt=this,t()}finally{tt=n}}}on(){++this._on===1&&(this.prevScope=tt,tt=this)}off(){this._on>0&&--this._on===0&&(tt=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 Eh(){return tt}let qe;const Bo=new WeakSet;class Ac{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,tt&&tt.active&&tt.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Bo.has(this)&&(Bo.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Dc(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Fc(this),qc(this);const t=qe,n=mt;qe=this,mt=!0;try{return this.fn()}finally{Pc(this),qe=t,mt=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)$o(t);this.deps=this.depsTail=void 0,Fc(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Bo.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Ho(this)&&this.run()}get dirty(){return Ho(this)}}let Ic=0,jn,Wn;function Dc(e,t=!1){if(e.flags|=8,t){e.next=Wn,Wn=e;return}e.next=jn,jn=e}function Vo(){Ic++}function zo(){if(--Ic>0)return;if(Wn){let t=Wn;for(Wn=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;jn;){let t=jn;for(jn=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 qc(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Pc(e){let t,n=e.depsTail,r=n;for(;r;){const o=r.prevDep;r.version===-1?(r===n&&(n=o),$o(r),Ah(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=o}e.deps=t,e.depsTail=n}function Ho(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Rc(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Rc(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Gn)||(e.globalVersion=Gn,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Ho(e))))return;e.flags|=2;const t=e.dep,n=qe,r=mt;qe=e,mt=!0;try{qc(e);const o=e.fn(e._value);(t.version===0||Gt(o,e._value))&&(e.flags|=128,e._value=o,t.version++)}catch(o){throw t.version++,o}finally{qe=n,mt=r,Pc(e),e.flags&=-3}}function $o(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)$o(s,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function Ah(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let mt=!0;const Mc=[];function wt(){Mc.push(mt),mt=!1}function _t(){const e=Mc.pop();mt=e===void 0?!0:e}function Fc(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=qe;qe=void 0;try{t()}finally{qe=n}}}let Gn=0;class Ih{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 Uo{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(!qe||!mt||qe===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==qe)n=this.activeLink=new Ih(qe,this),qe.deps?(n.prevDep=qe.depsTail,qe.depsTail.nextDep=n,qe.depsTail=n):qe.deps=qe.depsTail=n,Lc(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=qe.depsTail,n.nextDep=void 0,qe.depsTail.nextDep=n,qe.depsTail=n,qe.deps===n&&(qe.deps=r)}return n}trigger(t){this.version++,Gn++,this.notify(t)}notify(t){Vo();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{zo()}}}function Lc(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)Lc(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const jo=new WeakMap,on=Symbol(""),Wo=Symbol(""),Kn=Symbol("");function We(e,t,n){if(mt&&qe){let r=jo.get(e);r||jo.set(e,r=new Map);let o=r.get(n);o||(r.set(n,o=new Uo),o.map=r,o.key=n),o.track()}}function Rt(e,t,n,r,o,s){const i=jo.get(e);if(!i){Gn++;return}const c=a=>{a&&a.trigger()};if(Vo(),t==="clear")i.forEach(c);else{const a=ie(e),u=a&&Mo(n);if(a&&n==="length"){const l=Number(r);i.forEach((f,p)=>{(p==="length"||p===Kn||!gt(p)&&p>=l)&&c(f)})}else switch((n!==void 0||i.has(void 0))&&c(i.get(n)),u&&c(i.get(Kn)),t){case"add":a?u&&c(i.get("length")):(c(i.get(on)),wn(e)&&c(i.get(Wo)));break;case"delete":a||(c(i.get(on)),wn(e)&&c(i.get(Wo)));break;case"set":wn(e)&&c(i.get(on));break}}zo()}function _n(e){const t=be(e);return t===e?t:(We(t,"iterate",Kn),lt(e)?t:t.map(vt))}function Ir(e){return We(e=be(e),"iterate",Kn),e}function Kt(e,t){return Ft(e)?kn(sn(e)?vt(t):t):vt(t)}const Dh={__proto__:null,[Symbol.iterator](){return Go(this,Symbol.iterator,e=>Kt(this,e))},concat(...e){return _n(this).concat(...e.map(t=>ie(t)?_n(t):t))},entries(){return Go(this,"entries",e=>(e[1]=Kt(this,e[1]),e))},every(e,t){return Mt(this,"every",e,t,void 0,arguments)},filter(e,t){return Mt(this,"filter",e,t,n=>n.map(r=>Kt(this,r)),arguments)},find(e,t){return Mt(this,"find",e,t,n=>Kt(this,n),arguments)},findIndex(e,t){return Mt(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Mt(this,"findLast",e,t,n=>Kt(this,n),arguments)},findLastIndex(e,t){return Mt(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Mt(this,"forEach",e,t,void 0,arguments)},includes(...e){return Ko(this,"includes",e)},indexOf(...e){return Ko(this,"indexOf",e)},join(e){return _n(this).join(e)},lastIndexOf(...e){return Ko(this,"lastIndexOf",e)},map(e,t){return Mt(this,"map",e,t,void 0,arguments)},pop(){return Qn(this,"pop")},push(...e){return Qn(this,"push",e)},reduce(e,...t){return Nc(this,"reduce",e,t)},reduceRight(e,...t){return Nc(this,"reduceRight",e,t)},shift(){return Qn(this,"shift")},some(e,t){return Mt(this,"some",e,t,void 0,arguments)},splice(...e){return Qn(this,"splice",e)},toReversed(){return _n(this).toReversed()},toSorted(e){return _n(this).toSorted(e)},toSpliced(...e){return _n(this).toSpliced(...e)},unshift(...e){return Qn(this,"unshift",e)},values(){return Go(this,"values",e=>Kt(this,e))}};function Go(e,t,n){const r=Ir(e),o=r[t]();return r!==e&&!lt(e)&&(o._next=o.next,o.next=()=>{const s=o._next();return s.done||(s.value=n(s.value)),s}),o}const qh=Array.prototype;function Mt(e,t,n,r,o,s){const i=Ir(e),c=i!==e&&!lt(e),a=i[t];if(a!==qh[t]){const f=a.apply(e,s);return c?vt(f):f}let u=n;i!==e&&(c?u=function(f,p){return n.call(this,Kt(e,f),p,e)}:n.length>2&&(u=function(f,p){return n.call(this,f,p,e)}));const l=a.call(i,u,r);return c&&o?o(l):l}function Nc(e,t,n,r){const o=Ir(e);let s=n;return o!==e&&(lt(e)?n.length>3&&(s=function(i,c,a){return n.call(this,i,c,a,e)}):s=function(i,c,a){return n.call(this,i,Kt(e,c),a,e)}),o[t](s,...r)}function Ko(e,t,n){const r=be(e);We(r,"iterate",Kn);const o=r[t](...n);return(o===-1||o===!1)&&Yo(n[0])?(n[0]=be(n[0]),r[t](...n)):o}function Qn(e,t,n=[]){wt(),Vo();const r=be(e)[t].apply(e,n);return zo(),_t(),r}const Ph=ze("__proto__,__v_isRef,__isVue"),Oc=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(gt));function Rh(e){gt(e)||(e=String(e));const t=be(this);return We(t,"has",e),t.hasOwnProperty(e)}class Bc{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?jc:Uc:s?$c:Hc).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const i=ie(t);if(!o){let a;if(i&&(a=Dh[n]))return a;if(n==="hasOwnProperty")return Rh}const c=Reflect.get(t,n,He(t)?t:r);if((gt(n)?Oc.has(n):Ph(n))||(o||We(t,"get",n),s))return c;if(He(c)){const a=i&&Mo(n)?c:c.value;return o&&Se(a)?Zo(a):a}return Se(c)?o?Zo(c):Rr(c):c}}class Vc extends Bc{constructor(t=!1){super(!1,t)}set(t,n,r,o){let s=t[n];const i=ie(t)&&Mo(n);if(!this._isShallow){const u=Ft(s);if(!lt(r)&&!Ft(r)&&(s=be(s),r=be(r)),!i&&He(s)&&!He(r))return u||(s.value=r),!0}const c=i?Number(n)<t.length:xe(t,n),a=Reflect.set(t,n,r,He(t)?t:o);return t===be(o)&&(c?Gt(r,s)&&Rt(t,"set",n,r):Rt(t,"add",n,r)),a}deleteProperty(t,n){const r=xe(t,n);t[n];const o=Reflect.deleteProperty(t,n);return o&&r&&Rt(t,"delete",n,void 0),o}has(t,n){const r=Reflect.has(t,n);return(!gt(n)||!Oc.has(n))&&We(t,"has",n),r}ownKeys(t){return We(t,"iterate",ie(t)?"length":on),Reflect.ownKeys(t)}}class zc extends Bc{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const Mh=new Vc,Fh=new zc,Lh=new Vc(!0),Nh=new zc(!0),Qo=e=>e,Dr=e=>Reflect.getPrototypeOf(e);function Oh(e,t,n){return function(...r){const o=this.__v_raw,s=be(o),i=wn(s),c=e==="entries"||e===Symbol.iterator&&i,a=e==="keys"&&i,u=o[e](...r),l=n?Qo:t?kn:vt;return!t&&We(s,"iterate",a?Wo:on),Fe(Object.create(u),{next(){const{value:f,done:p}=u.next();return p?{value:f,done:p}:{value:c?[l(f[0]),l(f[1])]:l(f),done:p}}})}}function qr(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Bh(e,t){const n={get(o){const s=this.__v_raw,i=be(s),c=be(o);e||(Gt(o,c)&&We(i,"get",o),We(i,"get",c));const{has:a}=Dr(i),u=t?Qo:e?kn:vt;if(a.call(i,o))return u(s.get(o));if(a.call(i,c))return u(s.get(c));s!==i&&s.get(o)},get size(){const o=this.__v_raw;return!e&&We(be(o),"iterate",on),o.size},has(o){const s=this.__v_raw,i=be(s),c=be(o);return e||(Gt(o,c)&&We(i,"has",o),We(i,"has",c)),o===c?s.has(o):s.has(o)||s.has(c)},forEach(o,s){const i=this,c=i.__v_raw,a=be(c),u=t?Qo:e?kn:vt;return!e&&We(a,"iterate",on),c.forEach((l,f)=>o.call(s,u(l),u(f),i))}};return Fe(n,e?{add:qr("add"),set:qr("set"),delete:qr("delete"),clear:qr("clear")}:{add(o){!t&&!lt(o)&&!Ft(o)&&(o=be(o));const s=be(this);return Dr(s).has.call(s,o)||(s.add(o),Rt(s,"add",o,o)),this},set(o,s){!t&&!lt(s)&&!Ft(s)&&(s=be(s));const i=be(this),{has:c,get:a}=Dr(i);let u=c.call(i,o);u||(o=be(o),u=c.call(i,o));const l=a.call(i,o);return i.set(o,s),u?Gt(s,l)&&Rt(i,"set",o,s):Rt(i,"add",o,s),this},delete(o){const s=be(this),{has:i,get:c}=Dr(s);let a=i.call(s,o);a||(o=be(o),a=i.call(s,o)),c&&c.call(s,o);const u=s.delete(o);return a&&Rt(s,"delete",o,void 0),u},clear(){const o=be(this),s=o.size!==0,i=o.clear();return s&&Rt(o,"clear",void 0,void 0),i}}),["keys","values","entries",Symbol.iterator].forEach(o=>{n[o]=Oh(o,e,t)}),n}function Pr(e,t){const n=Bh(e,t);return(r,o,s)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?r:Reflect.get(xe(n,o)&&o in r?n:r,o,s)}const Vh={get:Pr(!1,!1)},zh={get:Pr(!1,!0)},Hh={get:Pr(!0,!1)},$h={get:Pr(!0,!0)},Hc=new WeakMap,$c=new WeakMap,Uc=new WeakMap,jc=new WeakMap;function Uh(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function jh(e){return e.__v_skip||!Object.isExtensible(e)?0:Uh(gh(e))}function Rr(e){return Ft(e)?e:Mr(e,!1,Mh,Vh,Hc)}function Wh(e){return Mr(e,!1,Lh,zh,$c)}function Zo(e){return Mr(e,!0,Fh,Hh,Uc)}function Xy(e){return Mr(e,!0,Nh,$h,jc)}function Mr(e,t,n,r,o){if(!Se(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const s=jh(e);if(s===0)return e;const i=o.get(e);if(i)return i;const c=new Proxy(e,s===2?r:n);return o.set(e,c),c}function sn(e){return Ft(e)?sn(e.__v_raw):!!(e&&e.__v_isReactive)}function Ft(e){return!!(e&&e.__v_isReadonly)}function lt(e){return!!(e&&e.__v_isShallow)}function Yo(e){return e?!!e.__v_raw:!1}function be(e){const t=e&&e.__v_raw;return t?be(t):e}function Gh(e){return!xe(e,"__v_skip")&&Object.isExtensible(e)&&xc(e,"__v_skip",!0),e}const vt=e=>Se(e)?Rr(e):e,kn=e=>Se(e)?Zo(e):e;function He(e){return e?e.__v_isRef===!0:!1}function te(e){return Kh(e,!1)}function Kh(e,t){return He(e)?e:new Qh(e,t)}class Qh{constructor(t,n){this.dep=new Uo,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:be(t),this._value=n?t:vt(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,r=this.__v_isShallow||lt(t)||Ft(t);t=r?t:be(t),Gt(t,n)&&(this._rawValue=t,this._value=r?t:vt(t),this.dep.trigger())}}function C(e){return He(e)?e.value:e}const Zh={get:(e,t,n)=>t==="__v_raw"?e:C(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const o=e[t];return He(o)&&!He(n)?(o.value=n,!0):Reflect.set(e,t,n,r)}};function Wc(e){return sn(e)?e:new Proxy(e,Zh)}class Yh{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Uo(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Gn-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&qe!==this)return Dc(this,!0),!0}get value(){const t=this.dep.track();return Rc(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Jh(e,t,n=!1){let r,o;return ae(e)?r=e:(r=e.get,o=e.set),new Yh(r,o,n)}const Fr={},Lr=new WeakMap;let cn;function Xh(e,t=!1,n=cn){if(n){let r=Lr.get(n);r||Lr.set(n,r=[]),r.push(e)}}function ed(e,t,n=ce){const{immediate:r,deep:o,once:s,scheduler:i,augmentJob:c,call:a}=n,u=m=>o?m:lt(m)||o===!1||o===0?Lt(m,1):Lt(m);let l,f,p,d,v=!1,g=!1;if(He(e)?(f=()=>e.value,v=lt(e)):sn(e)?(f=()=>u(e),v=!0):ie(e)?(g=!0,v=e.some(m=>sn(m)||lt(m)),f=()=>e.map(m=>{if(He(m))return m.value;if(sn(m))return u(m);if(ae(m))return a?a(m,2):m()})):ae(e)?t?f=a?()=>a(e,2):e:f=()=>{if(p){wt();try{p()}finally{_t()}}const m=cn;cn=l;try{return a?a(e,3,[d]):e(d)}finally{cn=m}}:f=ot,t&&o){const m=f,S=o===!0?1/0:o;f=()=>Lt(m(),S)}const T=Eh(),w=()=>{l.stop(),T&&T.active&&pt(T.effects,l)};if(s&&t){const m=t;t=(...S)=>{m(...S),w()}}let y=g?new Array(e.length).fill(Fr):Fr;const b=m=>{if(!(!(l.flags&1)||!l.dirty&&!m))if(t){const S=l.run();if(o||v||(g?S.some((k,P)=>Gt(k,y[P])):Gt(S,y))){p&&p();const k=cn;cn=l;try{const P=[S,y===Fr?void 0:g&&y[0]===Fr?[]:y,d];y=S,a?a(t,3,P):t(...P)}finally{cn=k}}}else l.run()};return c&&c(b),l=new Ac(f),l.scheduler=i?()=>i(b,!1):b,d=m=>Xh(m,!1,l),p=l.onStop=()=>{const m=Lr.get(l);if(m){if(a)a(m,4);else for(const S of m)S();Lr.delete(l)}},t?r?b(!0):y=l.run():i?i(b.bind(null,!0),!0):l.run(),w.pause=l.pause.bind(l),w.resume=l.resume.bind(l),w.stop=w,w}function Lt(e,t=1/0,n){if(t<=0||!Se(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,He(e))Lt(e.value,t,n);else if(ie(e))for(let r=0;r<e.length;r++)Lt(e[r],t,n);else if(vc(e)||wn(e))e.forEach(r=>{Lt(r,t,n)});else if(_c(e)){for(const r in e)Lt(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&Lt(e[r],t,n)}return e}/**
* @vue/runtime-core v3.5.28
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/const Zn=[];let Jo=!1;function ew(e,...t){if(Jo)return;Jo=!0,wt();const n=Zn.length?Zn[Zn.length-1].component:null,r=n&&n.appContext.config.warnHandler,o=td();if(r)xn(r,n,11,[e+t.map(s=>{var i,c;return(c=(i=s.toString)==null?void 0:i.call(s))!=null?c:JSON.stringify(s)}).join(""),n&&n.proxy,o.map(({vnode:s})=>`at <${Ja(n,s.type)}>`).join(`
`),o]);else{const s=[`[Vue warn]: ${e}`,...t];o.length&&s.push(`
`,...nd(o)),console.warn(...s)}_t(),Jo=!1}function td(){let e=Zn[Zn.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 nd(e){const t=[];return e.forEach((n,r)=>{t.push(...r===0?[]:[`
`],...rd(n))}),t}function rd({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",r=e.component?e.component.parent==null:!1,o=` at <${Ja(e.component,e.type,r)}`,s=">"+n;return e.props?[o,...od(e.props),s]:[o+s]}function od(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(r=>{t.push(...Gc(r,e[r]))}),n.length>3&&t.push(" ..."),t}function Gc(e,t,n){return Le(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?n?t:[`${e}=${t}`]:He(t)?(t=Gc(e,be(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):ae(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=be(t),n?t:[`${e}=`,t])}function xn(e,t,n,r){try{return r?e(...r):e()}catch(o){Nr(o,t,n)}}function bt(e,t,n,r){if(ae(e)){const o=xn(e,t,n,r);return o&&yc(o)&&o.catch(s=>{Nr(s,t,n)}),o}if(ie(e)){const o=[];for(let s=0;s<e.length;s++)o.push(bt(e[s],t,n,r));return o}}function Nr(e,t,n,r=!0){const o=t?t.vnode:null,{errorHandler:s,throwUnhandledErrorInProduction:i}=t&&t.appContext.config||ce;if(t){let c=t.parent;const a=t.proxy,u=`https://vuejs.org/error-reference/#runtime-${n}`;for(;c;){const l=c.ec;if(l){for(let f=0;f<l.length;f++)if(l[f](e,a,u)===!1)return}c=c.parent}if(s){wt(),xn(s,null,10,[e,a,u]),_t();return}}sd(e,n,o,r,i)}function sd(e,t,n,r=!0,o=!1){if(o)throw e;console.error(e)}const Je=[];let kt=-1;const Sn=[];let Qt=null,Cn=0;const Kc=Promise.resolve();let Or=null;function Zt(e){const t=Or||Kc;return e?t.then(this?e.bind(this):e):t}function id(e){let t=kt+1,n=Je.length;for(;t<n;){const r=t+n>>>1,o=Je[r],s=Yn(o);s<e||s===e&&o.flags&2?t=r+1:n=r}return t}function Xo(e){if(!(e.flags&1)){const t=Yn(e),n=Je[Je.length-1];!n||!(e.flags&2)&&t>=Yn(n)?Je.push(e):Je.splice(id(t),0,e),e.flags|=1,Qc()}}function Qc(){Or||(Or=Kc.then(Xc))}function Zc(e){ie(e)?Sn.push(...e):Qt&&e.id===-1?Qt.splice(Cn+1,0,e):e.flags&1||(Sn.push(e),e.flags|=1),Qc()}function Yc(e,t,n=kt+1){for(;n<Je.length;n++){const r=Je[n];if(r&&r.flags&2){if(e&&r.id!==e.uid)continue;Je.splice(n,1),n--,r.flags&4&&(r.flags&=-2),r(),r.flags&4||(r.flags&=-2)}}}function Jc(e){if(Sn.length){const t=[...new Set(Sn)].sort((n,r)=>Yn(n)-Yn(r));if(Sn.length=0,Qt){Qt.push(...t);return}for(Qt=t,Cn=0;Cn<Qt.length;Cn++){const n=Qt[Cn];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}Qt=null,Cn=0}}const Yn=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Xc(e){try{for(kt=0;kt<Je.length;kt++){const t=Je[kt];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),xn(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;kt<Je.length;kt++){const t=Je[kt];t&&(t.flags&=-2)}kt=-1,Je.length=0,Jc(),Or=null,(Je.length||Sn.length)&&Xc()}}let Ge=null,ea=null;function Br(e){const t=Ge;return Ge=e,ea=e&&e.type.__scopeId||null,t}function Ve(e,t=Ge,n){if(!t||e._n)return e;const r=(...o)=>{r._d&&Kr(-1);const s=Br(t);let i;try{i=e(...o)}finally{Br(s),r._d&&Kr(1)}return i};return r._n=!0,r._c=!0,r._d=!0,r}function Tn(e,t){if(Ge===null)return e;const n=Jr(Ge),r=e.dirs||(e.dirs=[]);for(let o=0;o<t.length;o++){let[s,i,c,a=ce]=t[o];s&&(ae(s)&&(s={mounted:s,updated:s}),s.deep&&Lt(i),r.push({dir:s,instance:n,value:i,oldValue:void 0,arg:c,modifiers:a}))}return e}function an(e,t,n,r){const o=e.dirs,s=t&&t.dirs;for(let i=0;i<o.length;i++){const c=o[i];s&&(c.oldValue=s[i].value);let a=c.dir[r];a&&(wt(),bt(a,n,8,[e.el,c,e,t]),_t())}}function cd(e,t){if(et){let n=et.provides;const r=et.parent&&et.parent.provides;r===n&&(n=et.provides=Object.create(r)),n[e]=t}}function En(e,t,n=!1){const r=Zr();if(r||In){let o=In?In._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&&ae(t)?t.call(r&&r.proxy):t}}const ad=Symbol.for("v-scx"),ld=()=>En(ad);function $e(e,t,n){return ta(e,t,n)}function ta(e,t,n=ce){const{immediate:r,deep:o,flush:s,once:i}=n,c=Fe({},n),a=t&&r||!t&&s!=="post";let u;if(lr){if(s==="sync"){const d=ld();u=d.__watcherHandles||(d.__watcherHandles=[])}else if(!a){const d=()=>{};return d.stop=ot,d.resume=ot,d.pause=ot,d}}const l=et;c.call=(d,v,g)=>bt(d,l,v,g);let f=!1;s==="post"?c.scheduler=d=>{Ke(d,l&&l.suspense)}:s!=="sync"&&(f=!0,c.scheduler=(d,v)=>{v?d():Xo(d)}),c.augmentJob=d=>{t&&(d.flags|=4),f&&(d.flags|=2,l&&(d.id=l.uid,d.i=l))};const p=ed(e,t,c);return lr&&(u?u.push(p):a&&p()),p}function ud(e,t,n){const r=this.proxy,o=Le(e)?e.includes(".")?na(r,e):()=>r[e]:e.bind(r,r);let s;ae(t)?s=t:(s=t.handler,n=t);const i=ar(this),c=ta(o,s.bind(r),n);return i(),c}function na(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 ra=Symbol("_vte"),oa=e=>e.__isTeleport,Jn=e=>e&&(e.disabled||e.disabled===""),sa=e=>e&&(e.defer||e.defer===""),ia=e=>typeof SVGElement!="undefined"&&e instanceof SVGElement,ca=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,es=(e,t)=>{const n=e&&e.to;return Le(n)?t?t(n):null:n},aa={name:"Teleport",__isTeleport:!0,process(e,t,n,r,o,s,i,c,a,u){const{mc:l,pc:f,pbc:p,o:{insert:d,querySelector:v,createText:g,createComment:T}}=u,w=Jn(t.props);let{shapeFlag:y,children:b,dynamicChildren:m}=t;if(e==null){const S=t.el=g(""),k=t.anchor=g("");d(S,n,r),d(k,n,r);const P=(A,q)=>{y&16&&l(b,A,q,o,s,i,c,a)},x=()=>{const A=t.target=es(t.props,v),q=ns(A,t,g,d);A&&(i!=="svg"&&ia(A)?i="svg":i!=="mathml"&&ca(A)&&(i="mathml"),o&&o.isCE&&(o.ce._teleportTargets||(o.ce._teleportTargets=new Set)).add(A),w||(P(A,q),zr(t,!1)))};w&&(P(n,k),zr(t,!0)),sa(t.props)?(t.el.__isMounted=!1,Ke(()=>{x(),delete t.el.__isMounted},s)):x()}else{if(sa(t.props)&&e.el.__isMounted===!1){Ke(()=>{aa.process(e,t,n,r,o,s,i,c,a,u)},s);return}t.el=e.el,t.targetStart=e.targetStart;const S=t.anchor=e.anchor,k=t.target=e.target,P=t.targetAnchor=e.targetAnchor,x=Jn(e.props),A=x?n:k,q=x?S:P;if(i==="svg"||ia(k)?i="svg":(i==="mathml"||ca(k))&&(i="mathml"),m?(p(e.dynamicChildren,m,A,o,s,i,c),ps(e,t,!0)):a||f(e,t,A,q,o,s,i,c,!1),w)x?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Vr(t,n,S,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const L=t.target=es(t.props,v);L&&Vr(t,L,null,u,0)}else x&&Vr(t,k,P,u,1);zr(t,w)}},remove(e,t,n,{um:r,o:{remove:o}},s){const{shapeFlag:i,children:c,anchor:a,targetStart:u,targetAnchor:l,target:f,props:p}=e;if(f&&(o(u),o(l)),s&&o(a),i&16){const d=s||!Jn(p);for(let v=0;v<c.length;v++){const g=c[v];r(g,t,n,d,!!g.dynamicChildren)}}},move:Vr,hydrate:fd};function Vr(e,t,n,{o:{insert:r},m:o},s=2){s===0&&r(e.targetAnchor,t,n);const{el:i,anchor:c,shapeFlag:a,children:u,props:l}=e,f=s===2;if(f&&r(i,t,n),(!f||Jn(l))&&a&16)for(let p=0;p<u.length;p++)o(u[p],t,n,2);f&&r(c,t,n)}function fd(e,t,n,r,o,s,{o:{nextSibling:i,parentNode:c,querySelector:a,insert:u,createText:l}},f){function p(T,w){let y=w;for(;y;){if(y&&y.nodeType===8){if(y.data==="teleport start anchor")t.targetStart=y;else if(y.data==="teleport anchor"){t.targetAnchor=y,T._lpa=t.targetAnchor&&i(t.targetAnchor);break}}y=i(y)}}function d(T,w){w.anchor=f(i(T),w,c(T),n,r,o,s)}const v=t.target=es(t.props,a),g=Jn(t.props);if(v){const T=v._lpa||v.firstChild;t.shapeFlag&16&&(g?(d(e,t),p(v,T),t.targetAnchor||ns(v,t,l,u,c(e)===v?e:null)):(t.anchor=i(e),p(v,T),t.targetAnchor||ns(v,t,l,u),f(T&&i(T),t,v,n,r,o,s))),zr(t,g)}else g&&t.shapeFlag&16&&(d(e,t),t.targetStart=e,t.targetAnchor=i(e));return t.anchor&&i(t.anchor)}const ts=aa;function zr(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 ns(e,t,n,r,o=null){const s=t.targetStart=n(""),i=t.targetAnchor=n("");return s[ra]=i,e&&(r(s,e,o),r(i,e,o)),i}const xt=Symbol("_leaveCb"),Xn=Symbol("_enterCb");function la(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return yt(()=>{e.isMounted=!0}),ss(()=>{e.isUnmounting=!0}),e}const ut=[Function,Array],ua={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:ut,onEnter:ut,onAfterEnter:ut,onEnterCancelled:ut,onBeforeLeave:ut,onLeave:ut,onAfterLeave:ut,onLeaveCancelled:ut,onBeforeAppear:ut,onAppear:ut,onAfterAppear:ut,onAppearCancelled:ut},fa=e=>{const t=e.subTree;return t.component?fa(t.component):t},hd={name:"BaseTransition",props:ua,setup(e,{slots:t}){const n=Zr(),r=la();return()=>{const o=t.default&&os(t.default(),!0);if(!o||!o.length)return;const s=ha(o),i=be(e),{mode:c}=i;if(r.isLeaving)return rs(s);const a=pa(s);if(!a)return rs(s);let u=er(a,i,r,n,f=>u=f);a.type!==Qe&&ln(a,u);let l=n.subTree&&pa(n.subTree);if(l&&l.type!==Qe&&!hn(l,a)&&fa(n).type!==Qe){let f=er(l,i,r,n);if(ln(l,f),c==="out-in"&&a.type!==Qe)return r.isLeaving=!0,f.afterLeave=()=>{r.isLeaving=!1,n.job.flags&8||n.update(),delete f.afterLeave,l=void 0},rs(s);c==="in-out"&&a.type!==Qe?f.delayLeave=(p,d,v)=>{const g=da(r,l);g[String(l.key)]=l,p[xt]=()=>{d(),p[xt]=void 0,delete u.delayedLeave,l=void 0},u.delayedLeave=()=>{v(),delete u.delayedLeave,l=void 0}}:l=void 0}else l&&(l=void 0);return s}}};function ha(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==Qe){t=n;break}}return t}const dd=hd;function da(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 er(e,t,n,r,o){const{appear:s,mode:i,persisted:c=!1,onBeforeEnter:a,onEnter:u,onAfterEnter:l,onEnterCancelled:f,onBeforeLeave:p,onLeave:d,onAfterLeave:v,onLeaveCancelled:g,onBeforeAppear:T,onAppear:w,onAfterAppear:y,onAppearCancelled:b}=t,m=String(e.key),S=da(n,e),k=(A,q)=>{A&&bt(A,r,9,q)},P=(A,q)=>{const L=q[1];k(A,q),ie(A)?A.every(M=>M.length<=1)&&L():A.length<=1&&L()},x={mode:i,persisted:c,beforeEnter(A){let q=a;if(!n.isMounted)if(s)q=T||a;else return;A[xt]&&A[xt](!0);const L=S[m];L&&hn(e,L)&&L.el[xt]&&L.el[xt](),k(q,[A])},enter(A){let q=u,L=l,M=f;if(!n.isMounted)if(s)q=w||u,L=y||l,M=b||f;else return;let ne=!1;A[Xn]=B=>{ne||(ne=!0,B?k(M,[A]):k(L,[A]),x.delayedLeave&&x.delayedLeave(),A[Xn]=void 0)};const O=A[Xn].bind(null,!1);q?P(q,[A,O]):O()},leave(A,q){const L=String(e.key);if(A[Xn]&&A[Xn](!0),n.isUnmounting)return q();k(p,[A]);let M=!1;A[xt]=O=>{M||(M=!0,q(),O?k(g,[A]):k(v,[A]),A[xt]=void 0,S[L]===e&&delete S[L])};const ne=A[xt].bind(null,!1);S[L]=e,d?P(d,[A,ne]):ne()},clone(A){const q=er(A,t,n,r,o);return o&&o(q),q}};return x}function rs(e){if($r(e))return e=Jt(e),e.children=null,e}function pa(e){if(!$r(e))return oa(e.type)&&e.children?ha(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&&ae(n.default))return n.default()}}function ln(e,t){e.shapeFlag&6&&e.component?(e.transition=t,ln(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 os(e,t=!1,n){let r=[],o=0;for(let s=0;s<e.length;s++){let i=e[s];const c=n==null?i.key:String(n)+String(i.key!=null?i.key:s);i.type===ve?(i.patchFlag&128&&o++,r=r.concat(os(i.children,t,c))):(t||i.type!==Qe)&&r.push(c!=null?Jt(i,{key:c}):i)}if(o>1)for(let s=0;s<r.length;s++)r[s].patchFlag=-2;return r}function _e(e,t){return ae(e)?Fe({name:e.name},t,{setup:e}):e}function ga(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function ma(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}const Hr=new WeakMap;function tr(e,t,n,r,o=!1){if(ie(e)){e.forEach((g,T)=>tr(g,t&&(ie(t)?t[T]:t),n,r,o));return}if(An(r)&&!o){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&tr(e,t,n,r.component.subTree);return}const s=r.shapeFlag&4?Jr(r.component):r.el,i=o?null:s,{i:c,r:a}=e,u=t&&t.r,l=c.refs===ce?c.refs={}:c.refs,f=c.setupState,p=be(f),d=f===ce?Vn:g=>ma(l,g)?!1:xe(p,g),v=(g,T)=>!(T&&ma(l,T));if(u!=null&&u!==a){if(va(t),Le(u))l[u]=null,d(u)&&(f[u]=null);else if(He(u)){const g=t;v(u,g.k)&&(u.value=null),g.k&&(l[g.k]=null)}}if(ae(a))xn(a,c,12,[i,l]);else{const g=Le(a),T=He(a);if(g||T){const w=()=>{if(e.f){const y=g?d(a)?f[a]:l[a]:v()||!e.k?a.value:l[e.k];if(o)ie(y)&&pt(y,s);else if(ie(y))y.includes(s)||y.push(s);else if(g)l[a]=[s],d(a)&&(f[a]=l[a]);else{const b=[s];v(a,e.k)&&(a.value=b),e.k&&(l[e.k]=b)}}else g?(l[a]=i,d(a)&&(f[a]=i)):T&&(v(a,e.k)&&(a.value=i),e.k&&(l[e.k]=i))};if(i){const y=()=>{w(),Hr.delete(e)};y.id=-1,Hr.set(e,y),Ke(y,n)}else va(e),w()}}}function va(e){const t=Hr.get(e);t&&(t.flags|=8,Hr.delete(e))}Ar().requestIdleCallback,Ar().cancelIdleCallback;const An=e=>!!e.type.__asyncLoader,$r=e=>e.type.__isKeepAlive;function pd(e,t){ba(e,"a",t)}function gd(e,t){ba(e,"da",t)}function ba(e,t,n=et){const r=e.__wdc||(e.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(Ur(t,r,n),n){let o=n.parent;for(;o&&o.parent;)$r(o.parent.vnode)&&md(r,t,n,o),o=o.parent}}function md(e,t,n,r){const o=Ur(t,e,r,!0);Yt(()=>{pt(r[t],o)},n)}function Ur(e,t,n=et,r=!1){if(n){const o=n[e]||(n[e]=[]),s=t.__weh||(t.__weh=(...i)=>{wt();const c=ar(n),a=bt(t,n,e,i);return c(),_t(),a});return r?o.unshift(s):o.push(s),s}}const Nt=e=>(t,n=et)=>{(!lr||e==="sp")&&Ur(e,(...r)=>t(...r),n)},vd=Nt("bm"),yt=Nt("m"),ya=Nt("bu"),wa=Nt("u"),ss=Nt("bum"),Yt=Nt("um"),bd=Nt("sp"),yd=Nt("rtg"),wd=Nt("rtc");function _d(e,t=et){Ur("ec",e,t)}const kd=Symbol.for("v-ndc");function Be(e,t,n,r){let o;const s=n,i=ie(e);if(i||Le(e)){const c=i&&sn(e);let a=!1,u=!1;c&&(a=!lt(e),u=Ft(e),e=Ir(e)),o=new Array(e.length);for(let l=0,f=e.length;l<f;l++)o[l]=t(a?u?kn(vt(e[l])):vt(e[l]):e[l],l,void 0,s)}else if(typeof e=="number"){o=new Array(e);for(let c=0;c<e;c++)o[c]=t(c+1,c,void 0,s)}else if(Se(e))if(e[Symbol.iterator])o=Array.from(e,(c,a)=>t(c,a,void 0,s));else{const c=Object.keys(e);o=new Array(c.length);for(let a=0,u=c.length;a<u;a++){const l=c[a];o[a]=t(e[l],l,a,s)}}else o=[];return o}function un(e,t,n={},r,o){if(Ge.ce||Ge.parent&&An(Ge.parent)&&Ge.parent.ce){const u=Object.keys(n).length>0;return t!=="default"&&(n.name=t),R(),ue(ve,null,[ee("slot",n,r&&r())],u?-2:64)}let s=e[t];s&&s._c&&(s._d=!1),R();const i=s&&_a(s(n)),c=n.key||i&&i.key,a=ue(ve,{key:(c&&!gt(c)?c:`_${t}`)+(!i&&r?"_fb":"")},i||(r?r():[]),i&&e._===1?64:-2);return s&&s._c&&(s._d=!0),a}function _a(e){return e.some(t=>cr(t)?!(t.type===Qe||t.type===ve&&!_a(t.children)):!0)?e:null}const is=e=>e?Qa(e)?Jr(e):is(e.parent):null,nr=Fe(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=>is(e.parent),$root:e=>is(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Ca(e),$forceUpdate:e=>e.f||(e.f=()=>{Xo(e.update)}),$nextTick:e=>e.n||(e.n=Zt.bind(e.proxy)),$watch:e=>ud.bind(e)}),cs=(e,t)=>e!==ce&&!e.__isScriptSetup&&xe(e,t),xd={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:r,data:o,props:s,accessCache:i,type:c,appContext:a}=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(cs(r,t))return i[t]=1,r[t];if(o!==ce&&xe(o,t))return i[t]=2,o[t];if(xe(s,t))return i[t]=3,s[t];if(n!==ce&&xe(n,t))return i[t]=4,n[t];as&&(i[t]=0)}}const u=nr[t];let l,f;if(u)return t==="$attrs"&&We(e.attrs,"get",""),u(e);if((l=c.__cssModules)&&(l=l[t]))return l;if(n!==ce&&xe(n,t))return i[t]=4,n[t];if(f=a.config.globalProperties,xe(f,t))return f[t]},set({_:e},t,n){const{data:r,setupState:o,ctx:s}=e;return cs(o,t)?(o[t]=n,!0):r!==ce&&xe(r,t)?(r[t]=n,!0):xe(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}},c){let a;return!!(n[c]||e!==ce&&c[0]!=="$"&&xe(e,c)||cs(t,c)||xe(s,c)||xe(r,c)||xe(nr,c)||xe(o.config.globalProperties,c)||(a=i.__cssModules)&&a[c])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:xe(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function ka(e){return ie(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let as=!0;function Sd(e){const t=Ca(e),n=e.proxy,r=e.ctx;as=!1,t.beforeCreate&&xa(t.beforeCreate,e,"bc");const{data:o,computed:s,methods:i,watch:c,provide:a,inject:u,created:l,beforeMount:f,mounted:p,beforeUpdate:d,updated:v,activated:g,deactivated:T,beforeDestroy:w,beforeUnmount:y,destroyed:b,unmounted:m,render:S,renderTracked:k,renderTriggered:P,errorCaptured:x,serverPrefetch:A,expose:q,inheritAttrs:L,components:M,directives:ne,filters:O}=t;if(u&&Cd(u,r,null),i)for(const I in i){const W=i[I];ae(W)&&(r[I]=W.bind(n))}if(o){const I=o.call(n,n);Se(I)&&(e.data=Rr(I))}if(as=!0,s)for(const I in s){const W=s[I],he=ae(W)?W.bind(n,n):ae(W.get)?W.get.bind(n,n):ot,de=!ae(W)&&ae(W.set)?W.set.bind(n):ot,ge=X({get:he,set:de});Object.defineProperty(r,I,{enumerable:!0,configurable:!0,get:()=>ge.value,set:ye=>ge.value=ye})}if(c)for(const I in c)Sa(c[I],r,n,I);if(a){const I=ae(a)?a.call(n):a;Reflect.ownKeys(I).forEach(W=>{cd(W,I[W])})}l&&xa(l,e,"c");function F(I,W){ie(W)?W.forEach(he=>I(he.bind(n))):W&&I(W.bind(n))}if(F(vd,f),F(yt,p),F(ya,d),F(wa,v),F(pd,g),F(gd,T),F(_d,x),F(wd,k),F(yd,P),F(ss,y),F(Yt,m),F(bd,A),ie(q))if(q.length){const I=e.exposed||(e.exposed={});q.forEach(W=>{Object.defineProperty(I,W,{get:()=>n[W],set:he=>n[W]=he,enumerable:!0})})}else e.exposed||(e.exposed={});S&&e.render===ot&&(e.render=S),L!=null&&(e.inheritAttrs=L),M&&(e.components=M),ne&&(e.directives=ne),A&&ga(e)}function Cd(e,t,n=ot){ie(e)&&(e=ls(e));for(const r in e){const o=e[r];let s;Se(o)?"default"in o?s=En(o.from||r,o.default,!0):s=En(o.from||r):s=En(o),He(s)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>s.value,set:i=>s.value=i}):t[r]=s}}function xa(e,t,n){bt(ie(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function Sa(e,t,n,r){let o=r.includes(".")?na(n,r):()=>n[r];if(Le(e)){const s=t[e];ae(s)&&$e(o,s)}else if(ae(e))$e(o,e.bind(n));else if(Se(e))if(ie(e))e.forEach(s=>Sa(s,t,n,r));else{const s=ae(e.handler)?e.handler.bind(n):t[e.handler];ae(s)&&$e(o,s,e)}}function Ca(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:o,optionsCache:s,config:{optionMergeStrategies:i}}=e.appContext,c=s.get(t);let a;return c?a=c:!o.length&&!n&&!r?a=t:(a={},o.length&&o.forEach(u=>jr(a,u,i,!0)),jr(a,t,i)),Se(t)&&s.set(t,a),a}function jr(e,t,n,r=!1){const{mixins:o,extends:s}=t;s&&jr(e,s,n,!0),o&&o.forEach(i=>jr(e,i,n,!0));for(const i in t)if(!(r&&i==="expose")){const c=Td[i]||n&&n[i];e[i]=c?c(e[i],t[i]):t[i]}return e}const Td={data:Ta,props:Ea,emits:Ea,methods:rr,computed:rr,beforeCreate:Xe,created:Xe,beforeMount:Xe,mounted:Xe,beforeUpdate:Xe,updated:Xe,beforeDestroy:Xe,beforeUnmount:Xe,destroyed:Xe,unmounted:Xe,activated:Xe,deactivated:Xe,errorCaptured:Xe,serverPrefetch:Xe,components:rr,directives:rr,watch:Ad,provide:Ta,inject:Ed};function Ta(e,t){return t?e?function(){return Fe(ae(e)?e.call(this,this):e,ae(t)?t.call(this,this):t)}:t:e}function Ed(e,t){return rr(ls(e),ls(t))}function ls(e){if(ie(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Xe(e,t){return e?[...new Set([].concat(e,t))]:t}function rr(e,t){return e?Fe(Object.create(null),e,t):t}function Ea(e,t){return e?ie(e)&&ie(t)?[...new Set([...e,...t])]:Fe(Object.create(null),ka(e),ka(t!=null?t:{})):t}function Ad(e,t){if(!e)return t;if(!t)return e;const n=Fe(Object.create(null),e);for(const r in t)n[r]=Xe(e[r],t[r]);return n}function Aa(){return{app:null,config:{isNativeTag:Vn,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 Id=0;function Dd(e,t){return function(r,o=null){ae(r)||(r=Fe({},r)),o!=null&&!Se(o)&&(o=null);const s=Aa(),i=new WeakSet,c=[];let a=!1;const u=s.app={_uid:Id++,_component:r,_props:o,_container:null,_context:s,_instance:null,version:fp,get config(){return s.config},set config(l){},use(l,...f){return i.has(l)||(l&&ae(l.install)?(i.add(l),l.install(u,...f)):ae(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(!a){const d=u._ceVNode||ee(r,o);return d.appContext=s,p===!0?p="svg":p===!1&&(p=void 0),e(d,l,p),a=!0,u._container=l,l.__vue_app__=u,Jr(d.component)}},onUnmount(l){c.push(l)},unmount(){a&&(bt(c,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=In;In=u;try{return l()}finally{In=f}}};return u}}let In=null;const qd=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Wt(t)}Modifiers`]||e[`${rn(t)}Modifiers`];function Pd(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||ce;let o=n;const s=t.startsWith("update:"),i=s&&qd(r,t.slice(7));i&&(i.trim&&(o=n.map(l=>Le(l)?l.trim():l)),i.number&&(o=n.map(Lo)));let c,a=r[c=Fo(t)]||r[c=Fo(Wt(t))];!a&&s&&(a=r[c=Fo(rn(t))]),a&&bt(a,e,6,o);const u=r[c+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[c])return;e.emitted[c]=!0,bt(u,e,6,o)}}const Rd=new WeakMap;function Ia(e,t,n=!1){const r=n?Rd:t.emitsCache,o=r.get(e);if(o!==void 0)return o;const s=e.emits;let i={},c=!1;if(!ae(e)){const a=u=>{const l=Ia(u,t,!0);l&&(c=!0,Fe(i,l))};!n&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}return!s&&!c?(Se(e)&&r.set(e,null),null):(ie(s)?s.forEach(a=>i[a]=null):Fe(i,s),Se(e)&&r.set(e,i),i)}function Wr(e,t){return!e||!yn(t)?!1:(t=t.slice(2).replace(/Once$/,""),xe(e,t[0].toLowerCase()+t.slice(1))||xe(e,rn(t))||xe(e,t))}function tw(){}function Da(e){const{type:t,vnode:n,proxy:r,withProxy:o,propsOptions:[s],slots:i,attrs:c,emit:a,render:u,renderCache:l,props:f,data:p,setupState:d,ctx:v,inheritAttrs:g}=e,T=Br(e);let w,y;try{if(n.shapeFlag&4){const m=o||r,S=m;w=Ct(u.call(S,m,l,f,d,p,v)),y=c}else{const m=t;w=Ct(m.length>1?m(f,{attrs:c,slots:i,emit:a}):m(f,null)),y=t.props?c:Md(c)}}catch(m){sr.length=0,Nr(m,e,1),w=ee(Qe)}let b=w;if(y&&g!==!1){const m=Object.keys(y),{shapeFlag:S}=b;m.length&&S&7&&(s&&m.some(zn)&&(y=Fd(y,s)),b=Jt(b,y,!1,!0))}return n.dirs&&(b=Jt(b,null,!1,!0),b.dirs=b.dirs?b.dirs.concat(n.dirs):n.dirs),n.transition&&ln(b,n.transition),w=b,Br(T),w}const Md=e=>{let t;for(const n in e)(n==="class"||n==="style"||yn(n))&&((t||(t={}))[n]=e[n]);return t},Fd=(e,t)=>{const n={};for(const r in e)(!zn(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function Ld(e,t,n){const{props:r,children:o,component:s}=e,{props:i,children:c,patchFlag:a}=t,u=s.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&a>=0){if(a&1024)return!0;if(a&16)return r?qa(r,i,u):!!i;if(a&8){const l=t.dynamicProps;for(let f=0;f<l.length;f++){const p=l[f];if(Pa(i,r,p)&&!Wr(u,p))return!0}}}else return(o||c)&&(!c||!c.$stable)?!0:r===i?!1:r?i?qa(r,i,u):!0:!!i;return!1}function qa(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(Pa(t,e,s)&&!Wr(n,s))return!0}return!1}function Pa(e,t,n){const r=e[n],o=t[n];return n==="style"&&Se(r)&&Se(o)?!No(r,o):r!==o}function Nd({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 Ra={},Ma=()=>Object.create(Ra),Fa=e=>Object.getPrototypeOf(e)===Ra;function Od(e,t,n,r=!1){const o={},s=Ma();e.propsDefaults=Object.create(null),La(e,t,o,s);for(const i in e.propsOptions[0])i in o||(o[i]=void 0);n?e.props=r?o:Wh(o):e.type.props?e.props=o:e.props=s,e.attrs=s}function Bd(e,t,n,r){const{props:o,attrs:s,vnode:{patchFlag:i}}=e,c=be(o),[a]=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(Wr(e.emitsOptions,p))continue;const d=t[p];if(a)if(xe(s,p))d!==s[p]&&(s[p]=d,u=!0);else{const v=Wt(p);o[v]=us(a,c,v,d,e,!1)}else d!==s[p]&&(s[p]=d,u=!0)}}}else{La(e,t,o,s)&&(u=!0);let l;for(const f in c)(!t||!xe(t,f)&&((l=rn(f))===f||!xe(t,l)))&&(a?n&&(n[f]!==void 0||n[l]!==void 0)&&(o[f]=us(a,c,f,void 0,e,!0)):delete o[f]);if(s!==c)for(const f in s)(!t||!xe(t,f))&&(delete s[f],u=!0)}u&&Rt(e.attrs,"set","")}function La(e,t,n,r){const[o,s]=e.propsOptions;let i=!1,c;if(t)for(let a in t){if(Un(a))continue;const u=t[a];let l;o&&xe(o,l=Wt(a))?!s||!s.includes(l)?n[l]=u:(c||(c={}))[l]=u:Wr(e.emitsOptions,a)||(!(a in r)||u!==r[a])&&(r[a]=u,i=!0)}if(s){const a=be(n),u=c||ce;for(let l=0;l<s.length;l++){const f=s[l];n[f]=us(o,a,f,u[f],e,!xe(u,f))}}return i}function us(e,t,n,r,o,s){const i=e[n];if(i!=null){const c=xe(i,"default");if(c&&r===void 0){const a=i.default;if(i.type!==Function&&!i.skipFactory&&ae(a)){const{propsDefaults:u}=o;if(n in u)r=u[n];else{const l=ar(o);r=u[n]=a.call(null,t),l()}}else r=a;o.ce&&o.ce._setProp(n,r)}i[0]&&(s&&!c?r=!1:i[1]&&(r===""||r===rn(n))&&(r=!0))}return r}const Vd=new WeakMap;function Na(e,t,n=!1){const r=n?Vd:t.propsCache,o=r.get(e);if(o)return o;const s=e.props,i={},c=[];let a=!1;if(!ae(e)){const l=f=>{a=!0;const[p,d]=Na(f,t,!0);Fe(i,p),d&&c.push(...d)};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}if(!s&&!a)return Se(e)&&r.set(e,Me),Me;if(ie(s))for(let l=0;l<s.length;l++){const f=Wt(s[l]);Oa(f)&&(i[f]=ce)}else if(s)for(const l in s){const f=Wt(l);if(Oa(f)){const p=s[l],d=i[f]=ie(p)||ae(p)?{type:p}:Fe({},p),v=d.type;let g=!1,T=!0;if(ie(v))for(let w=0;w<v.length;++w){const y=v[w],b=ae(y)&&y.name;if(b==="Boolean"){g=!0;break}else b==="String"&&(T=!1)}else g=ae(v)&&v.name==="Boolean";d[0]=g,d[1]=T,(g||xe(d,"default"))&&c.push(f)}}const u=[i,c];return Se(e)&&r.set(e,u),u}function Oa(e){return e[0]!=="$"&&!Un(e)}const fs=e=>e==="_"||e==="_ctx"||e==="$stable",hs=e=>ie(e)?e.map(Ct):[Ct(e)],zd=(e,t,n)=>{if(t._n)return t;const r=Ve((...o)=>hs(t(...o)),n);return r._c=!1,r},Ba=(e,t,n)=>{const r=e._ctx;for(const o in e){if(fs(o))continue;const s=e[o];if(ae(s))t[o]=zd(o,s,r);else if(s!=null){const i=hs(s);t[o]=()=>i}}},Va=(e,t)=>{const n=hs(t);e.slots.default=()=>n},za=(e,t,n)=>{for(const r in t)(n||!fs(r))&&(e[r]=t[r])},Hd=(e,t,n)=>{const r=e.slots=Ma();if(e.vnode.shapeFlag&32){const o=t._;o?(za(r,t,n),n&&xc(r,"_",o,!0)):Ba(t,r)}else t&&Va(e,t)},$d=(e,t,n)=>{const{vnode:r,slots:o}=e;let s=!0,i=ce;if(r.shapeFlag&32){const c=t._;c?n&&c===1?s=!1:za(o,t,n):(s=!t.$stable,Ba(t,o)),i=t}else t&&(Va(e,t),i={default:1});if(s)for(const c in o)!fs(c)&&i[c]==null&&delete o[c]},Ke=Kd;function Ud(e){return jd(e)}function jd(e,t){const n=Ar();n.__VUE__=!0;const{insert:r,remove:o,patchProp:s,createElement:i,createText:c,createComment:a,setText:u,setElementText:l,parentNode:f,nextSibling:p,setScopeId:d=ot,insertStaticContent:v}=e,g=(_,E,N,j=null,z=null,H=null,Z=void 0,Q=null,G=!!E.dynamicChildren)=>{if(_===E)return;_&&!hn(_,E)&&(j=vn(_),ye(_,z,H,!0),_=null),E.patchFlag===-2&&(G=!1,E.dynamicChildren=null);const{type:$,ref:se,shapeFlag:Y}=E;switch($){case Gr:T(_,E,N,j);break;case Qe:w(_,E,N,j);break;case or:_==null&&y(E,N,j,Z);break;case ve:M(_,E,N,j,z,H,Z,Q,G);break;default:Y&1?S(_,E,N,j,z,H,Z,Q,G):Y&6?ne(_,E,N,j,z,H,Z,Q,G):(Y&64||Y&128)&&$.process(_,E,N,j,z,H,Z,Q,G,nn)}se!=null&&z?tr(se,_&&_.ref,H,E||_,!E):se==null&&_&&_.ref!=null&&tr(_.ref,null,H,_,!0)},T=(_,E,N,j)=>{if(_==null)r(E.el=c(E.children),N,j);else{const z=E.el=_.el;E.children!==_.children&&u(z,E.children)}},w=(_,E,N,j)=>{_==null?r(E.el=a(E.children||""),N,j):E.el=_.el},y=(_,E,N,j)=>{[_.el,_.anchor]=v(_.children,E,N,j,_.el,_.anchor)},b=({el:_,anchor:E},N,j)=>{let z;for(;_&&_!==E;)z=p(_),r(_,N,j),_=z;r(E,N,j)},m=({el:_,anchor:E})=>{let N;for(;_&&_!==E;)N=p(_),o(_),_=N;o(E)},S=(_,E,N,j,z,H,Z,Q,G)=>{if(E.type==="svg"?Z="svg":E.type==="math"&&(Z="mathml"),_==null)k(E,N,j,z,H,Z,Q,G);else{const $=_.el&&_.el._isVueCE?_.el:null;try{$&&$._beginPatch(),A(_,E,z,H,Z,Q,G)}finally{$&&$._endPatch()}}},k=(_,E,N,j,z,H,Z,Q)=>{let G,$;const{props:se,shapeFlag:Y,transition:oe,dirs:le}=_;if(G=_.el=i(_.type,H,se&&se.is,se),Y&8?l(G,_.children):Y&16&&x(_.children,G,null,j,z,ds(_,H),Z,Q),le&&an(_,null,j,"created"),P(G,_,_.scopeId,Z,j),se){for(const Pe in se)Pe!=="value"&&!Un(Pe)&&s(G,Pe,null,se[Pe],H,j);"value"in se&&s(G,"value",null,se.value,H),($=se.onVnodeBeforeMount)&&Tt($,j,_)}le&&an(_,null,j,"beforeMount");const we=Wd(z,oe);we&&oe.beforeEnter(G),r(G,E,N),(($=se&&se.onVnodeMounted)||we||le)&&Ke(()=>{$&&Tt($,j,_),we&&oe.enter(G),le&&an(_,null,j,"mounted")},z)},P=(_,E,N,j,z)=>{if(N&&d(_,N),j)for(let H=0;H<j.length;H++)d(_,j[H]);if(z){let H=z.subTree;if(E===H||ja(H.type)&&(H.ssContent===E||H.ssFallback===E)){const Z=z.vnode;P(_,Z,Z.scopeId,Z.slotScopeIds,z.parent)}}},x=(_,E,N,j,z,H,Z,Q,G=0)=>{for(let $=G;$<_.length;$++){const se=_[$]=Q?Ot(_[$]):Ct(_[$]);g(null,se,E,N,j,z,H,Z,Q)}},A=(_,E,N,j,z,H,Z)=>{const Q=E.el=_.el;let{patchFlag:G,dynamicChildren:$,dirs:se}=E;G|=_.patchFlag&16;const Y=_.props||ce,oe=E.props||ce;let le;if(N&&fn(N,!1),(le=oe.onVnodeBeforeUpdate)&&Tt(le,N,E,_),se&&an(E,_,N,"beforeUpdate"),N&&fn(N,!0),(Y.innerHTML&&oe.innerHTML==null||Y.textContent&&oe.textContent==null)&&l(Q,""),$?q(_.dynamicChildren,$,Q,N,j,ds(E,z),H):Z||W(_,E,Q,null,N,j,ds(E,z),H,!1),G>0){if(G&16)L(Q,Y,oe,N,z);else if(G&2&&Y.class!==oe.class&&s(Q,"class",null,oe.class,z),G&4&&s(Q,"style",Y.style,oe.style,z),G&8){const we=E.dynamicProps;for(let Pe=0;Pe<we.length;Pe++){const Te=we[Pe],nt=Y[Te],rt=oe[Te];(rt!==nt||Te==="value")&&s(Q,Te,nt,rt,z,N)}}G&1&&_.children!==E.children&&l(Q,E.children)}else!Z&&$==null&&L(Q,Y,oe,N,z);((le=oe.onVnodeUpdated)||se)&&Ke(()=>{le&&Tt(le,N,E,_),se&&an(E,_,N,"updated")},j)},q=(_,E,N,j,z,H,Z)=>{for(let Q=0;Q<E.length;Q++){const G=_[Q],$=E[Q],se=G.el&&(G.type===ve||!hn(G,$)||G.shapeFlag&198)?f(G.el):N;g(G,$,se,null,j,z,H,Z,!0)}},L=(_,E,N,j,z)=>{if(E!==N){if(E!==ce)for(const H in E)!Un(H)&&!(H in N)&&s(_,H,E[H],null,z,j);for(const H in N){if(Un(H))continue;const Z=N[H],Q=E[H];Z!==Q&&H!=="value"&&s(_,H,Q,Z,z,j)}"value"in N&&s(_,"value",E.value,N.value,z)}},M=(_,E,N,j,z,H,Z,Q,G)=>{const $=E.el=_?_.el:c(""),se=E.anchor=_?_.anchor:c("");let{patchFlag:Y,dynamicChildren:oe,slotScopeIds:le}=E;le&&(Q=Q?Q.concat(le):le),_==null?(r($,N,j),r(se,N,j),x(E.children||[],N,se,z,H,Z,Q,G)):Y>0&&Y&64&&oe&&_.dynamicChildren&&_.dynamicChildren.length===oe.length?(q(_.dynamicChildren,oe,N,z,H,Z,Q),(E.key!=null||z&&E===z.subTree)&&ps(_,E,!0)):W(_,E,N,se,z,H,Z,Q,G)},ne=(_,E,N,j,z,H,Z,Q,G)=>{E.slotScopeIds=Q,_==null?E.shapeFlag&512?z.ctx.activate(E,N,j,Z,G):O(E,N,j,z,H,Z,G):B(_,E,G)},O=(_,E,N,j,z,H,Z)=>{const Q=_.component=np(_,j,z);if($r(_)&&(Q.ctx.renderer=nn),rp(Q,!1,Z),Q.asyncDep){if(z&&z.registerDep(Q,F,Z),!_.el){const G=Q.subTree=ee(Qe);w(null,G,E,N),_.placeholder=G.el}}else F(Q,_,E,N,z,H,Z)},B=(_,E,N)=>{const j=E.component=_.component;if(Ld(_,E,N))if(j.asyncDep&&!j.asyncResolved){I(j,E,N);return}else j.next=E,j.update();else E.el=_.el,j.vnode=E},F=(_,E,N,j,z,H,Z)=>{const Q=()=>{if(_.isMounted){let{next:Y,bu:oe,u:le,parent:we,vnode:Pe}=_;{const qt=Ha(_);if(qt){Y&&(Y.el=Pe.el,I(_,Y,Z)),qt.asyncDep.then(()=>{Ke(()=>{_.isUnmounted||$()},z)});return}}let Te=Y,nt;fn(_,!1),Y?(Y.el=Pe.el,I(_,Y,Z)):Y=Pe,oe&&Er(oe),(nt=Y.props&&Y.props.onVnodeBeforeUpdate)&&Tt(nt,we,Y,Pe),fn(_,!0);const rt=Da(_),Dt=_.subTree;_.subTree=rt,g(Dt,rt,f(Dt.el),vn(Dt),_,z,H),Y.el=rt.el,Te===null&&Nd(_,rt.el),le&&Ke(le,z),(nt=Y.props&&Y.props.onVnodeUpdated)&&Ke(()=>Tt(nt,we,Y,Pe),z)}else{let Y;const{el:oe,props:le}=E,{bm:we,m:Pe,parent:Te,root:nt,type:rt}=_,Dt=An(E);fn(_,!1),we&&Er(we),!Dt&&(Y=le&&le.onVnodeBeforeMount)&&Tt(Y,Te,E),fn(_,!0);{nt.ce&&nt.ce._hasShadowRoot()&&nt.ce._injectChildStyle(rt);const qt=_.subTree=Da(_);g(null,qt,N,j,_,z,H),E.el=qt.el}if(Pe&&Ke(Pe,z),!Dt&&(Y=le&&le.onVnodeMounted)){const qt=E;Ke(()=>Tt(Y,Te,qt),z)}(E.shapeFlag&256||Te&&An(Te.vnode)&&Te.vnode.shapeFlag&256)&&_.a&&Ke(_.a,z),_.isMounted=!0,E=N=j=null}};_.scope.on();const G=_.effect=new Ac(Q);_.scope.off();const $=_.update=G.run.bind(G),se=_.job=G.runIfDirty.bind(G);se.i=_,se.id=_.uid,G.scheduler=()=>Xo(se),fn(_,!0),$()},I=(_,E,N)=>{E.component=_;const j=_.vnode.props;_.vnode=E,_.next=null,Bd(_,E.props,j,N),$d(_,E.children,N),wt(),Yc(_),_t()},W=(_,E,N,j,z,H,Z,Q,G=!1)=>{const $=_&&_.children,se=_?_.shapeFlag:0,Y=E.children,{patchFlag:oe,shapeFlag:le}=E;if(oe>0){if(oe&128){de($,Y,N,j,z,H,Z,Q,G);return}else if(oe&256){he($,Y,N,j,z,H,Z,Q,G);return}}le&8?(se&16&&dt($,z,H),Y!==$&&l(N,Y)):se&16?le&16?de($,Y,N,j,z,H,Z,Q,G):dt($,z,H,!0):(se&8&&l(N,""),le&16&&x(Y,N,j,z,H,Z,Q,G))},he=(_,E,N,j,z,H,Z,Q,G)=>{_=_||Me,E=E||Me;const $=_.length,se=E.length,Y=Math.min($,se);let oe;for(oe=0;oe<Y;oe++){const le=E[oe]=G?Ot(E[oe]):Ct(E[oe]);g(_[oe],le,N,null,z,H,Z,Q,G)}$>se?dt(_,z,H,!0,!1,Y):x(E,N,j,z,H,Z,Q,G,Y)},de=(_,E,N,j,z,H,Z,Q,G)=>{let $=0;const se=E.length;let Y=_.length-1,oe=se-1;for(;$<=Y&&$<=oe;){const le=_[$],we=E[$]=G?Ot(E[$]):Ct(E[$]);if(hn(le,we))g(le,we,N,null,z,H,Z,Q,G);else break;$++}for(;$<=Y&&$<=oe;){const le=_[Y],we=E[oe]=G?Ot(E[oe]):Ct(E[oe]);if(hn(le,we))g(le,we,N,null,z,H,Z,Q,G);else break;Y--,oe--}if($>Y){if($<=oe){const le=oe+1,we=le<se?E[le].el:j;for(;$<=oe;)g(null,E[$]=G?Ot(E[$]):Ct(E[$]),N,we,z,H,Z,Q,G),$++}}else if($>oe)for(;$<=Y;)ye(_[$],z,H,!0),$++;else{const le=$,we=$,Pe=new Map;for($=we;$<=oe;$++){const at=E[$]=G?Ot(E[$]):Ct(E[$]);at.key!=null&&Pe.set(at.key,$)}let Te,nt=0;const rt=oe-we+1;let Dt=!1,qt=0;const Cr=new Array(rt);for($=0;$<rt;$++)Cr[$]=0;for($=le;$<=Y;$++){const at=_[$];if(nt>=rt){ye(at,z,H,!0);continue}let Pt;if(at.key!=null)Pt=Pe.get(at.key);else for(Te=we;Te<=oe;Te++)if(Cr[Te-we]===0&&hn(at,E[Te])){Pt=Te;break}Pt===void 0?ye(at,z,H,!0):(Cr[Pt-we]=$+1,Pt>=qt?qt=Pt:Dt=!0,g(at,E[Pt],N,null,z,H,Z,Q,G),nt++)}const fh=Dt?Gd(Cr):Me;for(Te=fh.length-1,$=rt-1;$>=0;$--){const at=we+$,Pt=E[at],hh=E[at+1],dh=at+1<se?hh.el||Ua(hh):j;Cr[$]===0?g(null,Pt,N,dh,z,H,Z,Q,G):Dt&&(Te<0||$!==fh[Te]?ge(Pt,N,dh,2):Te--)}}},ge=(_,E,N,j,z=null)=>{const{el:H,type:Z,transition:Q,children:G,shapeFlag:$}=_;if($&6){ge(_.component.subTree,E,N,j);return}if($&128){_.suspense.move(E,N,j);return}if($&64){Z.move(_,E,N,nn);return}if(Z===ve){r(H,E,N);for(let Y=0;Y<G.length;Y++)ge(G[Y],E,N,j);r(_.anchor,E,N);return}if(Z===or){b(_,E,N);return}if(j!==2&&$&1&&Q)if(j===0)Q.beforeEnter(H),r(H,E,N),Ke(()=>Q.enter(H),z);else{const{leave:Y,delayLeave:oe,afterLeave:le}=Q,we=()=>{_.ctx.isUnmounted?o(H):r(H,E,N)},Pe=()=>{H._isLeaving&&H[xt](!0),Y(H,()=>{we(),le&&le()})};oe?oe(H,we,Pe):Pe()}else r(H,E,N)},ye=(_,E,N,j=!1,z=!1)=>{const{type:H,props:Z,ref:Q,children:G,dynamicChildren:$,shapeFlag:se,patchFlag:Y,dirs:oe,cacheIndex:le}=_;if(Y===-2&&(z=!1),Q!=null&&(wt(),tr(Q,null,N,_,!0),_t()),le!=null&&(E.renderCache[le]=void 0),se&256){E.ctx.deactivate(_);return}const we=se&1&&oe,Pe=!An(_);let Te;if(Pe&&(Te=Z&&Z.onVnodeBeforeUnmount)&&Tt(Te,E,_),se&6)me(_.component,N,j);else{if(se&128){_.suspense.unmount(N,j);return}we&&an(_,null,E,"beforeUnmount"),se&64?_.type.remove(_,E,N,nn,j):$&&!$.hasOnce&&(H!==ve||Y>0&&Y&64)?dt($,E,N,!1,!0):(H===ve&&Y&384||!z&&se&16)&&dt(G,E,N),j&&Ce(_)}(Pe&&(Te=Z&&Z.onVnodeUnmounted)||we)&&Ke(()=>{Te&&Tt(Te,E,_),we&&an(_,null,E,"unmounted")},N)},Ce=_=>{const{type:E,el:N,anchor:j,transition:z}=_;if(E===ve){Ne(N,j);return}if(E===or){m(_);return}const H=()=>{o(N),z&&!z.persisted&&z.afterLeave&&z.afterLeave()};if(_.shapeFlag&1&&z&&!z.persisted){const{leave:Z,delayLeave:Q}=z,G=()=>Z(N,H);Q?Q(_.el,H,G):G()}else H()},Ne=(_,E)=>{let N;for(;_!==E;)N=p(_),o(_),_=N;o(E)},me=(_,E,N)=>{const{bum:j,scope:z,job:H,subTree:Z,um:Q,m:G,a:$}=_;$a(G),$a($),j&&Er(j),z.stop(),H&&(H.flags|=8,ye(Z,_,E,N)),Q&&Ke(Q,E),Ke(()=>{_.isUnmounted=!0},E)},dt=(_,E,N,j=!1,z=!1,H=0)=>{for(let Z=H;Z<_.length;Z++)ye(_[Z],E,N,j,z)},vn=_=>{if(_.shapeFlag&6)return vn(_.component.subTree);if(_.shapeFlag&128)return _.suspense.next();const E=p(_.anchor||_.el),N=E&&E[ra];return N?p(N):E};let bn=!1;const Po=(_,E,N)=>{let j;_==null?E._vnode&&(ye(E._vnode,null,null,!0),j=E._vnode.component):g(E._vnode||null,_,E,null,null,null,N),E._vnode=_,bn||(bn=!0,Yc(j),Jc(),bn=!1)},nn={p:g,um:ye,m:ge,r:Ce,mt:O,mc:x,pc:W,pbc:q,n:vn,o:e};return{render:Po,hydrate:void 0,createApp:Dd(Po)}}function ds({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 fn({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Wd(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function ps(e,t,n=!1){const r=e.children,o=t.children;if(ie(r)&&ie(o))for(let s=0;s<r.length;s++){const i=r[s];let c=o[s];c.shapeFlag&1&&!c.dynamicChildren&&((c.patchFlag<=0||c.patchFlag===32)&&(c=o[s]=Ot(o[s]),c.el=i.el),!n&&c.patchFlag!==-2&&ps(i,c)),c.type===Gr&&(c.patchFlag===-1&&(c=o[s]=Ot(c)),c.el=i.el),c.type===Qe&&!c.el&&(c.el=i.el)}}function Gd(e){const t=e.slice(),n=[0];let r,o,s,i,c;const a=e.length;for(r=0;r<a;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;)c=s+i>>1,e[n[c]]<u?s=c+1:i=c;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 Ha(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Ha(t)}function $a(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function Ua(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?Ua(t.subTree):null}const ja=e=>e.__isSuspense;function Kd(e,t){t&&t.pendingBranch?ie(e)?t.effects.push(...e):t.effects.push(e):Zc(e)}const ve=Symbol.for("v-fgt"),Gr=Symbol.for("v-txt"),Qe=Symbol.for("v-cmt"),or=Symbol.for("v-stc"),sr=[];let st=null;function R(e=!1){sr.push(st=e?null:[])}function Qd(){sr.pop(),st=sr[sr.length-1]||null}let ir=1;function Kr(e,t=!1){ir+=e,e<0&&st&&t&&(st.hasOnce=!0)}function Wa(e){return e.dynamicChildren=ir>0?st||Me:null,Qd(),ir>0&&st&&st.push(e),e}function U(e,t,n,r,o,s){return Wa(D(e,t,n,r,o,s,!0))}function ue(e,t,n,r,o){return Wa(ee(e,t,n,r,o,!0))}function cr(e){return e?e.__v_isVNode===!0:!1}function hn(e,t){return e.type===t.type&&e.key===t.key}const Ga=({key:e})=>e!=null?e:null,Qr=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Le(e)||He(e)||ae(e)?{i:Ge,r:e,k:t,f:!!n}:e:null);function D(e,t=null,n=null,r=0,o=null,s=e===ve?0:1,i=!1,c=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Ga(t),ref:t&&Qr(t),scopeId:ea,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:Ge};return c?(gs(a,n),s&128&&e.normalize(a)):n&&(a.shapeFlag|=Le(n)?8:16),ir>0&&!i&&st&&(a.patchFlag>0||s&6)&&a.patchFlag!==32&&st.push(a),a}const ee=Zd;function Zd(e,t=null,n=null,r=0,o=null,s=!1){if((!e||e===kd)&&(e=Qe),cr(e)){const c=Jt(e,t,!0);return n&&gs(c,n),ir>0&&!s&&st&&(c.shapeFlag&6?st[st.indexOf(e)]=c:st.push(c)),c.patchFlag=-2,c}if(up(e)&&(e=e.__vccOpts),t){t=Yd(t);let{class:c,style:a}=t;c&&!Le(c)&&(t.class=pe(c)),Se(a)&&(Yo(a)&&!ie(a)&&(a=Fe({},a)),t.style=je(a))}const i=Le(e)?1:ja(e)?128:oa(e)?64:Se(e)?4:ae(e)?2:0;return D(e,t,n,r,o,i,s,!0)}function Yd(e){return e?Yo(e)||Fa(e)?Fe({},e):e:null}function Jt(e,t,n=!1,r=!1){const{props:o,ref:s,patchFlag:i,children:c,transition:a}=e,u=t?Xd(o||{},t):o,l={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&Ga(u),ref:t&&t.ref?n&&s?ie(s)?s.concat(Qr(t)):[s,Qr(t)]:Qr(t):s,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:c,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ve?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:a,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Jt(e.ssContent),ssFallback:e.ssFallback&&Jt(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return a&&r&&ln(l,a.clone(l)),l}function St(e=" ",t=0){return ee(Gr,null,e,t)}function Jd(e,t){const n=ee(or,null,e);return n.staticCount=t,n}function fe(e="",t=!1){return t?(R(),ue(Qe,null,e)):ee(Qe,null,e)}function Ct(e){return e==null||typeof e=="boolean"?ee(Qe):ie(e)?ee(ve,null,e.slice()):cr(e)?Ot(e):ee(Gr,null,String(e))}function Ot(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Jt(e)}function gs(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(ie(t))n=16;else if(typeof t=="object")if(r&65){const o=t.default;o&&(o._c&&(o._d=!1),gs(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!Fa(t)?t._ctx=Ge:o===3&&Ge&&(Ge.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else ae(t)?(t={default:t,_ctx:Ge},n=32):(t=String(t),r&64?(n=16,t=[St(t)]):n=8);e.children=t,e.shapeFlag|=n}function Xd(...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=pe([t.class,r.class]));else if(o==="style")t.style=je([t.style,r.style]);else if(yn(o)){const s=t[o],i=r[o];i&&s!==i&&!(ie(s)&&s.includes(i))&&(t[o]=s?[].concat(s,i):i)}else o!==""&&(t[o]=r[o])}return t}function Tt(e,t,n,r=null){bt(e,t,7,[n,r])}const ep=Aa();let tp=0;function np(e,t,n){const r=e.type,o=(t?t.appContext:e.appContext)||ep,s={uid:tp++,vnode:e,type:r,parent:t,appContext:o,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Th(!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:Na(r,o),emitsOptions:Ia(r,o),emit:null,emitted:null,propsDefaults:ce,inheritAttrs:r.inheritAttrs,ctx:ce,data:ce,props:ce,attrs:ce,slots:ce,refs:ce,setupState:ce,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=Pd.bind(null,s),e.ce&&e.ce(s),s}let et=null;const Zr=()=>et||Ge;let Yr,ms;{const e=Ar(),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)}};Yr=t("__VUE_INSTANCE_SETTERS__",n=>et=n),ms=t("__VUE_SSR_SETTERS__",n=>lr=n)}const ar=e=>{const t=et;return Yr(e),e.scope.on(),()=>{e.scope.off(),Yr(t)}},Ka=()=>{et&&et.scope.off(),Yr(null)};function Qa(e){return e.vnode.shapeFlag&4}let lr=!1;function rp(e,t=!1,n=!1){t&&ms(t);const{props:r,children:o}=e.vnode,s=Qa(e);Od(e,r,s,t),Hd(e,o,n||t);const i=s?op(e,t):void 0;return t&&ms(!1),i}function op(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,xd);const{setup:r}=n;if(r){wt();const o=e.setupContext=r.length>1?ip(e):null,s=ar(e),i=xn(r,e,0,[e.props,o]),c=yc(i);if(_t(),s(),(c||e.sp)&&!An(e)&&ga(e),c){if(i.then(Ka,Ka),t)return i.then(a=>{Za(e,a)}).catch(a=>{Nr(a,e,0)});e.asyncDep=i}else Za(e,i)}else Ya(e)}function Za(e,t,n){ae(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Se(t)&&(e.setupState=Wc(t)),Ya(e)}function Ya(e,t,n){const r=e.type;e.render||(e.render=r.render||ot);{const o=ar(e);wt();try{Sd(e)}finally{_t(),o()}}}const sp={get(e,t){return We(e,"get",""),e[t]}};function ip(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,sp),slots:e.slots,emit:e.emit,expose:t}}function Jr(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Wc(Gh(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in nr)return nr[n](e)},has(t,n){return n in t||n in nr}})):e.proxy}const cp=/(?:^|[-_])\w/g,ap=e=>e.replace(cp,t=>t.toUpperCase()).replace(/[-_]/g,"");function lp(e,t=!0){return ae(e)?e.displayName||e.name:e.name||t&&e.__name}function Ja(e,t,n=!1){let r=lp(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?ap(r):n?"App":"Anonymous"}function up(e){return ae(e)&&"__vccOpts"in e}const X=(e,t)=>Jh(e,t,lr);function vs(e,t,n){try{Kr(-1);const r=arguments.length;return r===2?Se(t)&&!ie(t)?cr(t)?ee(e,null,[t]):ee(e,t):ee(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&cr(n)&&(n=[n]),ee(e,t,n))}finally{Kr(1)}}const fp="3.5.28";/**
* @vue/runtime-dom v3.5.28
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/let bs;const Xa=typeof window!="undefined"&&window.trustedTypes;if(Xa)try{bs=Xa.createPolicy("vue",{createHTML:e=>e})}catch(e){}const el=bs?e=>bs.createHTML(e):e=>e,hp="http://www.w3.org/2000/svg",dp="http://www.w3.org/1998/Math/MathML",Bt=typeof document!="undefined"?document:null,tl=Bt&&Bt.createElement("template"),pp={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"?Bt.createElementNS(hp,e):t==="mathml"?Bt.createElementNS(dp,e):n?Bt.createElement(e,{is:n}):Bt.createElement(e);return e==="select"&&r&&r.multiple!=null&&o.setAttribute("multiple",r.multiple),o},createText:e=>Bt.createTextNode(e),createComment:e=>Bt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Bt.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{tl.innerHTML=el(r==="svg"?`<svg>${e}</svg>`:r==="mathml"?`<math>${e}</math>`:e);const c=tl.content;if(r==="svg"||r==="mathml"){const a=c.firstChild;for(;a.firstChild;)c.appendChild(a.firstChild);c.removeChild(a)}t.insertBefore(c,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Xt="transition",ur="animation",Dn=Symbol("_vtc"),nl={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},rl=Fe({},ua,nl),Vt=(e=>(e.displayName="Transition",e.props=rl,e))((e,{slots:t})=>vs(dd,sl(e),t)),dn=(e,t=[])=>{ie(e)?e.forEach(n=>n(...t)):e&&e(...t)},ol=e=>e?ie(e)?e.some(t=>t.length>1):e.length>1:!1;function sl(e){const t={};for(const M in e)M in nl||(t[M]=e[M]);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:c=`${n}-enter-to`,appearFromClass:a=s,appearActiveClass:u=i,appearToClass:l=c,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:p=`${n}-leave-active`,leaveToClass:d=`${n}-leave-to`}=e,v=gp(o),g=v&&v[0],T=v&&v[1],{onBeforeEnter:w,onEnter:y,onEnterCancelled:b,onLeave:m,onLeaveCancelled:S,onBeforeAppear:k=w,onAppear:P=y,onAppearCancelled:x=b}=t,A=(M,ne,O,B)=>{M._enterCancelled=B,en(M,ne?l:c),en(M,ne?u:i),O&&O()},q=(M,ne)=>{M._isLeaving=!1,en(M,f),en(M,d),en(M,p),ne&&ne()},L=M=>(ne,O)=>{const B=M?P:y,F=()=>A(ne,M,O);dn(B,[ne,F]),il(()=>{en(ne,M?a:s),Et(ne,M?l:c),ol(B)||cl(ne,r,g,F)})};return Fe(t,{onBeforeEnter(M){dn(w,[M]),Et(M,s),Et(M,i)},onBeforeAppear(M){dn(k,[M]),Et(M,a),Et(M,u)},onEnter:L(!1),onAppear:L(!0),onLeave(M,ne){M._isLeaving=!0;const O=()=>q(M,ne);Et(M,f),M._enterCancelled?(Et(M,p),ws(M)):(ws(M),Et(M,p)),il(()=>{M._isLeaving&&(en(M,f),Et(M,d),ol(m)||cl(M,r,T,O))}),dn(m,[M,O])},onEnterCancelled(M){A(M,!1,void 0,!0),dn(b,[M])},onAppearCancelled(M){A(M,!0,void 0,!0),dn(x,[M])},onLeaveCancelled(M){q(M),dn(S,[M])}})}function gp(e){if(e==null)return null;if(Se(e))return[ys(e.enter),ys(e.leave)];{const t=ys(e);return[t,t]}}function ys(e){return bh(e)}function Et(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[Dn]||(e[Dn]=new Set)).add(t)}function en(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const n=e[Dn];n&&(n.delete(t),n.size||(e[Dn]=void 0))}function il(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let mp=0;function cl(e,t,n,r){const o=e._endId=++mp,s=()=>{o===e._endId&&r()};if(n!=null)return setTimeout(s,n);const{type:i,timeout:c,propCount:a}=al(e,t);if(!i)return r();const u=i+"end";let l=0;const f=()=>{e.removeEventListener(u,p),s()},p=d=>{d.target===e&&++l>=a&&f()};setTimeout(()=>{l<a&&f()},c+1),e.addEventListener(u,p)}function al(e,t){const n=window.getComputedStyle(e),r=v=>(n[v]||"").split(", "),o=r(`${Xt}Delay`),s=r(`${Xt}Duration`),i=ll(o,s),c=r(`${ur}Delay`),a=r(`${ur}Duration`),u=ll(c,a);let l=null,f=0,p=0;t===Xt?i>0&&(l=Xt,f=i,p=s.length):t===ur?u>0&&(l=ur,f=u,p=a.length):(f=Math.max(i,u),l=f>0?i>u?Xt:ur:null,p=l?l===Xt?s.length:a.length:0);const d=l===Xt&&/\b(?:transform|all)(?:,|$)/.test(r(`${Xt}Property`).toString());return{type:l,timeout:f,propCount:p,hasTransform:d}}function ll(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,r)=>ul(n)+ul(e[r])))}function ul(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function ws(e){return(e?e.ownerDocument:document).body.offsetHeight}function vp(e,t,n){const r=e[Dn];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Xr=Symbol("_vod"),fl=Symbol("_vsh"),fr={name:"show",beforeMount(e,{value:t},{transition:n}){e[Xr]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):hr(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),hr(e,!0),r.enter(e)):r.leave(e,()=>{hr(e,!1)}):hr(e,t))},beforeUnmount(e,{value:t}){hr(e,t)}};function hr(e,t){e.style.display=t?e[Xr]:"none",e[fl]=!t}const hl=Symbol("");function dl(e){const t=Zr();if(!t)return;const n=t.ut=(o=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(s=>eo(s,o))},r=()=>{const o=e(t.proxy);t.ce?eo(t.ce,o):_s(t.subTree,o),n(o)};ya(()=>{Zc(r)}),yt(()=>{$e(r,ot,{flush:"post"});const o=new MutationObserver(r);o.observe(t.subTree.el.parentNode,{childList:!0}),Yt(()=>o.disconnect())})}function _s(e,t){if(e.shapeFlag&128){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{_s(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)eo(e.el,t);else if(e.type===ve)e.children.forEach(n=>_s(n,t));else if(e.type===or){let{el:n,anchor:r}=e;for(;n&&(eo(n,t),n!==r);)n=n.nextSibling}}function eo(e,t){if(e.nodeType===1){const n=e.style;let r="";for(const o in t){const s=Ch(t[o]);n.setProperty(`--${o}`,s),r+=`--${o}: ${s};`}n[hl]=r}}const bp=/(?:^|;)\s*display\s*:/;function yp(e,t,n){const r=e.style,o=Le(n);let s=!1;if(n&&!o){if(t)if(Le(t))for(const i of t.split(";")){const c=i.slice(0,i.indexOf(":")).trim();n[c]==null&&to(r,c,"")}else for(const i in t)n[i]==null&&to(r,i,"");for(const i in n)i==="display"&&(s=!0),to(r,i,n[i])}else if(o){if(t!==n){const i=r[hl];i&&(n+=";"+i),r.cssText=n,s=bp.test(n)}}else t&&e.removeAttribute("style");Xr in e&&(e[Xr]=s?r.display:"",e[fl]&&(r.display="none"))}const pl=/\s*!important$/;function to(e,t,n){if(ie(n))n.forEach(r=>to(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=wp(e,t);pl.test(n)?e.setProperty(rn(r),n.replace(pl,""),"important"):e[r]=n}}const gl=["Webkit","Moz","ms"],ks={};function wp(e,t){const n=ks[t];if(n)return n;let r=Wt(t);if(r!=="filter"&&r in e)return ks[t]=r;r=kc(r);for(let o=0;o<gl.length;o++){const s=gl[o]+r;if(s in e)return ks[t]=s}return t}const ml="http://www.w3.org/1999/xlink";function vl(e,t,n,r,o,s=xh(t)){r&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(ml,t.slice(6,t.length)):e.setAttributeNS(ml,t,n):n==null||s&&!Cc(n)?e.removeAttribute(t):e.setAttribute(t,s?"":gt(n)?String(n):n)}function bl(e,t,n,r,o){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?el(n):n);return}const s=e.tagName;if(t==="value"&&s!=="PROGRESS"&&!s.includes("-")){const c=s==="OPTION"?e.getAttribute("value")||"":e.value,a=n==null?e.type==="checkbox"?"on":"":String(n);(c!==a||!("_value"in e))&&(e.value=a),n==null&&e.removeAttribute(t),e._value=n;return}let i=!1;if(n===""||n==null){const c=typeof e[t];c==="boolean"?n=Cc(n):n==null&&c==="string"?(n="",i=!0):c==="number"&&(n=0,i=!0)}try{e[t]=n}catch(c){}i&&e.removeAttribute(o||t)}function qn(e,t,n,r){e.addEventListener(t,n,r)}function _p(e,t,n,r){e.removeEventListener(t,n,r)}const yl=Symbol("_vei");function kp(e,t,n,r,o=null){const s=e[yl]||(e[yl]={}),i=s[t];if(r&&i)i.value=r;else{const[c,a]=xp(t);if(r){const u=s[t]=Tp(r,o);qn(e,c,u,a)}else i&&(_p(e,c,i,a),s[t]=void 0)}}const wl=/(?:Once|Passive|Capture)$/;function xp(e){let t;if(wl.test(e)){t={};let r;for(;r=e.match(wl);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):rn(e.slice(2)),t]}let xs=0;const Sp=Promise.resolve(),Cp=()=>xs||(Sp.then(()=>xs=0),xs=Date.now());function Tp(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;bt(Ep(r,n.value),t,5,[r])};return n.value=e,n.attached=Cp(),n}function Ep(e,t){if(ie(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 _l=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Ap=(e,t,n,r,o,s)=>{const i=o==="svg";t==="class"?vp(e,r,i):t==="style"?yp(e,n,r):yn(t)?zn(t)||kp(e,t,n,r,s):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Ip(e,t,r,i))?(bl(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&vl(e,t,r,i,s,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!Le(r))?bl(e,Wt(t),r,s,t):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),vl(e,t,r,i))};function Ip(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&_l(t)&&ae(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 _l(t)&&Le(n)?!1:t in e}const kl=new WeakMap,xl=new WeakMap,no=Symbol("_moveCb"),Sl=Symbol("_enterCb"),Dp=(e=>(delete e.props.mode,e))({name:"TransitionGroup",props:Fe({},rl,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=Zr(),r=la();let o,s;return wa(()=>{if(!o.length)return;const i=e.moveClass||`${e.name||"v"}-move`;if(!Mp(o[0].el,n.vnode.el,i)){o=[];return}o.forEach(qp),o.forEach(Pp);const c=o.filter(Rp);ws(n.vnode.el),c.forEach(a=>{const u=a.el,l=u.style;Et(u,i),l.transform=l.webkitTransform=l.transitionDuration="";const f=u[no]=p=>{p&&p.target!==u||(!p||p.propertyName.endsWith("transform"))&&(u.removeEventListener("transitionend",f),u[no]=null,en(u,i))};u.addEventListener("transitionend",f)}),o=[]}),()=>{const i=be(e),c=sl(i);let a=i.tag||ve;if(o=[],s)for(let u=0;u<s.length;u++){const l=s[u];l.el&&l.el instanceof Element&&(o.push(l),ln(l,er(l,c,r,n)),kl.set(l,Cl(l.el)))}s=t.default?os(t.default()):[];for(let u=0;u<s.length;u++){const l=s[u];l.key!=null&&ln(l,er(l,c,r,n))}return ee(a,null,s)}}});function qp(e){const t=e.el;t[no]&&t[no](),t[Sl]&&t[Sl]()}function Pp(e){xl.set(e,Cl(e.el))}function Rp(e){const t=kl.get(e),n=xl.get(e),r=t.left-n.left,o=t.top-n.top;if(r||o){const s=e.el,i=s.style,c=s.getBoundingClientRect();let a=1,u=1;return s.offsetWidth&&(a=c.width/s.offsetWidth),s.offsetHeight&&(u=c.height/s.offsetHeight),(!Number.isFinite(a)||a===0)&&(a=1),(!Number.isFinite(u)||u===0)&&(u=1),Math.abs(a-1)<.01&&(a=1),Math.abs(u-1)<.01&&(u=1),i.transform=i.webkitTransform=`translate(${r/a}px,${o/u}px)`,i.transitionDuration="0s",e}}function Cl(e){const t=e.getBoundingClientRect();return{left:t.left,top:t.top}}function Mp(e,t,n){const r=e.cloneNode(),o=e[Dn];o&&o.forEach(c=>{c.split(/\s+/).forEach(a=>a&&r.classList.remove(a))}),n.split(/\s+/).forEach(c=>c&&r.classList.add(c)),r.style.display="none";const s=t.nodeType===1?t:t.parentNode;s.appendChild(r);const{hasTransform:i}=al(r);return s.removeChild(r),i}const Tl=e=>{const t=e.props["onUpdate:modelValue"]||!1;return ie(t)?n=>Er(t,n):t};function Fp(e){e.target.composing=!0}function El(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Ss=Symbol("_assign");function Al(e,t,n){return t&&(e=e.trim()),n&&(e=Lo(e)),e}const Lp={created(e,{modifiers:{lazy:t,trim:n,number:r}},o){e[Ss]=Tl(o);const s=r||o.props&&o.props.type==="number";qn(e,t?"change":"input",i=>{i.target.composing||e[Ss](Al(e.value,n,s))}),(n||s)&&qn(e,"change",()=>{e.value=Al(e.value,n,s)}),t||(qn(e,"compositionstart",Fp),qn(e,"compositionend",El),qn(e,"change",El))},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[Ss]=Tl(i),e.composing)return;const c=(s||e.type==="number")&&!/^0\d/.test(e.value)?Lo(e.value):e.value,a=t==null?"":t;c!==a&&(document.activeElement===e&&e.type!=="range"&&(r&&t===n||o&&e.value.trim()===a)||(e.value=a))}},Np=["ctrl","shift","alt","meta"],Op={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)=>Np.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 c=Op[t[i]];if(c&&c(o,t))return}return e(o,...s)}))},Bp=Fe({patchProp:Ap},pp);let Il;function Vp(){return Il||(Il=Ud(Bp))}const zp=((...e)=>{const t=Vp().createApp(...e),{mount:n}=t;return t.mount=r=>{const o=$p(r);if(!o)return;const s=t._component;!ae(s)&&!s.render&&!s.template&&(s.template=o.innerHTML),o.nodeType===1&&(o.textContent="");const i=n(o,!1,Hp(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),i},t});function Hp(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function $p(e){return Le(e)?document.querySelector(e):e}const Cs={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:"ページモードのアニメーションを設定"},pageTurnAnimationRealistic:{cn:"拟真翻页",en:"Realistic",jp:"リアル"},pageTurnAnimationSlide:{cn:"平移翻页",en:"Slide",jp:"スライド"},pageTurnAnimationNone:{cn:"无动效",en:"None",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:"パネルサイズ調整"},closeEHunter:{cn:"关闭eHunter",en:"Close eHunter",jp:"eHunter閉じる"},toggleTopBar:{cn:"显示/隐藏顶栏 [Esc]",en:"Show/hide top bar [Esc]",jp:"トップバーの表示/非表示 [Esc]"},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:"クイック設定"},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:"Wheel Direction",jp:"ホイール方向"},wheelDirectionTip:{cn:"反转滚轮翻页方向",en:"Reverse Wheel Direction to flip",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:"奇数または偶数ページステッチの切り替え"}},Dl={cn:{},en:{},jp:{}};for(let e in Cs)for(let t in Cs[e])Dl[t][e]=Cs[e][t];const it=te("");let ro=navigator.language.toLowerCase();switch(!0){case ro.startsWith("en"):it.value="en";break;case ro.startsWith("zh"):it.value="cn";break;case(ro.endsWith("jp")||ro.startsWith("ja")):it.value="jp";break}const K=X(()=>Dl[it.value]),Ts="album_service",Es={homePage:"https://github.com/hanFengSan/eHunter",updateServer1:"https://jp.animesales.xyz/ehunter/update.json",updateServer2:"https://jp.animesales.xyz/ehunter/update.json"},dr={version:"3.0.0"},Up={cn:`
1.Change language/切换语言/言語を変更
![image-language](https://raw.githubusercontent.com/hanFengSan/eHunter/master/github_image/language.jpg)

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

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

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

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

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

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

### iPhone和iPad使用指引
说明链接:[链接](https://github.com/hanFengSan/eHunter/blob/master/misc/iphone_ipad_cn.md)

### eHunter-local
eHunter-local是eHunter的本地版本, 支持Windows和MacOS. [项目主页](https://github.com/hanFengSan/eHunter_local)

[Github下载](https://github.com/hanFengSan/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/eHunter/master/github_image/language.jpg)

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

2.Click the button at the upper right corner of this page to open the eHunter
![image-open_ehunter](https://raw.githubusercontent.com/hanFengSan/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/hanFengSan/eHunter/blob/master/misc/iphone_ipad_en.md)

### eHunter-local
The eHunter-local is local version of eHunter, supporting Windows and MacOS. [Home Page](https://github.com/hanFengSan/eHunter_local)

[Github releases](https://github.com/hanFengSan/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/eHunter/master/github_image/language.jpg)

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

2.このページの右上隅にあるボタンをクリックしてeHunterを開きます
![image-open_ehunter](https://raw.githubusercontent.com/hanFengSan/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/hanFengSan/eHunter/blob/master/misc/iphone_ipad_jp.md)

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

[Github releases](https://github.com/hanFengSan/eHunter_local/releases)

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

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

この拡張機能を気に入っていただけたら、ストアで5つ星評価をいただけるとうれしいです。 8-)
`};function jp(e){return e==="cn"||e==="jp"||e==="en"?e:"en"}function Wp(e,t){return e.replace(/\{\{([A-Z_]+)\}\}/g,(n,r)=>{const o=t[r];return typeof o=="string"?o:""})}function Gp(e,t){const n=jp(e);return Wp(Up[n],{HOME_PAGE:t,VERSION:dr.version})}const Kp={cn:`
* 支持图片打包下载(触发入口:页面右上角的“更多”按钮)
* 支持iPhone使用,优化移动端使用体验
* 支持”快速预览“(入口:缩略图栏底部的悬浮按钮、页面右上角的“更多”按钮)
* 缩略图栏可拖拽改变位置(拖拽顶部的EHUNTER标识)
* 缩略图栏可改变宽度或高度
* 图片加载失败时,支持自动换源重试

### iPhone / iPad 支持
* 目前在 iOS 15/iPadOS 15 上可运行油猴脚本/userscirpt,因此 eHunter 也可在 iPhone / iPad 使用
* 使用指南: [链接](https://github.com/hanFengSan/eHunter/blob/master/misc/iphone_ipad_cn.md)
`,en:`
* 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 eHunter is now available on iPhone and iPad
* Guide: [Link](https://github.com/hanFengSan/eHunter/blob/master/misc/iphone_ipad_en.md)
`,jp:`
* 画像の一括ダウンロードに対応(入口: 右上の「More」ボタン)
* iPhone での利用に対応し、モバイルでの操作性を改善
* 「クイックプレビュー」に対応(入口: サムネイルバー下部のフローティングボタン、または右上の「More」ボタン)
* サムネイルバーの位置をドラッグで変更可能(EHUNTER ヘッダーをドラッグ)
* サムネイルバーの幅・高さを調整可能
* 画像の読み込みに失敗した場合、別ソースで自動再試行

### iPhone / iPad 対応
* iOS 15 / iPadOS 15 では userscript が動作するため、eHunter を iPhone / iPad でも利用できます
* ガイド: [リンク](https://github.com/hanFengSan/eHunter/blob/master/misc/iphone_ipad_jp.md)
`};function Qp(e){return e==="cn"||e==="jp"||e==="en"?e:"en"}function Zp(e){const t=Qp(e);return Kp[t]}if(typeof pn=="undefined")var pn={extension:null};const zt={storage:{get sync(){return pn&&pn.storage?pn.storage.sync.QUOTA_BYTES?pn.storage.sync:pn.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 pn.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 Ie(this,null,function*(){return s})},n(o)},onerror:o=>{r(`GM_xhr error, ${o.status}`)}})}):window.fetch(e,t)}};class Pn{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,c)=>{setTimeout(c,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 Yp(){return document.querySelector(".ehunter-container")}let ql=0;function Pl(){let e=Yp();e&&(V.setViewportWidth(e.offsetWidth),V.setViewportHeight(e.offsetHeight))}function Jp(){Pl(),window.addEventListener("resize",()=>{window.clearTimeout(ql),ql=window.setTimeout(()=>{Pl()},50)})}function Xp(e){const t="keyboard";if(!(e.metaKey||e.ctrlKey))switch(e.key){case"ArrowLeft":case"ArrowUp":case"a":h.readingMode==0?V.setCurViewIndex(h.curViewIndex-1,t):h.readingMode==1&&V.setCurViewIndex(h.curViewIndex-h.pagesPerScreen,t);break;case"ArrowRight":case"ArrowDown":case"d":h.readingMode==0?V.setCurViewIndex(h.curViewIndex+1,t):h.readingMode==1&&h.curViewIndex+h.pagesPerScreen<h.pageCount&&V.setCurViewIndex(h.curViewIndex+h.pagesPerScreen,t);break;case"Shift":V.toggleShowMoreSettingsDialog();break;case"Escape":V.toggleShowTopBar();break}}function eg(){document.addEventListener("keydown",Xp)}let As=0;function tg(){if(h.curViewIndex<h.pageCount-1){let e=h.readingMode==1?h.pagesPerScreen:1;V.setCurViewIndex(h.curViewIndex+e,"autoflip")}}function oo(){As&&window.clearTimeout(As),h.readingMode==1&&h.isAutoFlip&&h.autoFlipFrequency>0&&(As=window.setTimeout(tg,h.autoFlipFrequency*1e3))}let Rn=0,so=0;function Rl(e){if(typeof e.deltaY=="undefined"&&(e.deltaY=e.wheelDeltaY),e.metaKey||e.ctrlKey||e.deltaY===0||(Rn+=e.deltaY,so>0&&window.clearTimeout(so),so=window.setTimeout(()=>{Rn=0},100),Math.abs(Rn)<h.wheelSensitivity))return;let t=!1;(Rn>0&&!h.IsReverseBookWheeFliplDirection||Rn<0&&h.IsReverseBookWheeFliplDirection)&&(t=!0),t&&h.curViewIndex+h.pagesPerScreen<h.pageCount&&V.setCurViewIndex(h.curViewIndex+h.pagesPerScreen,"wheel"),t||V.setCurViewIndex(h.curViewIndex-h.pagesPerScreen,"wheel"),Rn=0,window.clearTimeout(so)}function Is(){if(!h.showInstructionDialog&&!h.hasShownWelcomeInstruction){let e=navigator.language.toLowerCase();e.startsWith("zh")?V.setLang("cn"):e.startsWith("ja")||e.includes("jp")?V.setLang("jp"):V.setLang("en"),V.markWelcomeInstructionShown(),Ml(!0);return}}function Ml(e=!1){V.openInstructionDialog({title:K.value.instructionsAndAbouts,mdText:Gp(it.value,Es.homePage),isCompulsive:e})}function ng(e){if(!e||typeof e!="object")return null;const t=it.value==="cn"||it.value==="jp"?it.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 rg(){return Ie(this,null,function*(){const e=[Es.updateServer1,Es.updateServer2].filter(t=>typeof t=="string"&&t.length>0).map(t=>new Pn(t,!0,!0).setCredentials("omit").request());if(e.length===0)return null;try{const t=yield Promise.race(e),n=JSON.parse(t);return ng(n)}catch(t){return null}})}function og(){const e=dr.version;h.lastSeenVersionNotice!==e&&V.openInstructionDialog({title:`${K.value.versionUpdate} v${e}`,mdText:Zp(it.value),isCompulsive:!0,operations:[{name:K.value.confirm,btnType:"plain",isCloseModal:!0,onClick:()=>V.markVersionNoticeSeen(e)}]})}function sg(){return Ie(this,null,function*(){const e=yield rg();if(!e)return;const t=dr.version,n=Date.now(),r=e.version!==t,o=n>e.time,s=n-h.lastRemoteUpdateNoticeAt>e.duration;if(!r||!o||!s)return;V.markRemoteUpdateNoticeShown(n);const i=[{name:K.value.later,btnType:"plain",isCloseModal:!0},...e.operations.map(c=>({name:c.name,btnType:"plain",isCloseModal:!0,onClick:()=>window.open(c.url,"_blank")}))];V.openInstructionDialog({title:e.title,mdText:e.text,isCompulsive:!0,operations:i})})}let Fl=!1;function ig(){Fl||(Fl=!0,window.setTimeout(()=>Ie(null,null,function*(){yield sg(),og()}),5e3))}const io="ehunter:reader:prefs:mode-layout",Ll=1,cg=60,ag=520,lg=60,ug=420,Ds=150,Nl=160,Ol=.35,fg=.78,Bl=10,hg=10,dg=10,pg=2,Vl=()=>new Date().toISOString();function Ht(e,t){return Number.isFinite(t)?e==="bottom"?Math.min(ug,Math.max(lg,Math.round(t))):Math.min(ag,Math.max(cg,Math.round(t))):e==="bottom"?200:150}function co(e){return e==="left"||e==="right"||e==="bottom"?e:"left"}function gg(e,t,n){return e==="bottom"?Math.max(Ol,n/Nl):Math.max(Ol,t/Ds)}function mg(e){return e==="bottom"?Math.round(Ds*fg):Ds}function vg(e){const t=Math.floor(e*.12);return Math.max(10,Math.min(18,t))}function bg(e){const t=e*9e-4;return Math.max(.02,Math.min(.08,t))}function yg(e){const t=Math.floor(e*.065);return Math.max(8,Math.min(13,t))}function wg(e){const t=e*.0018;return Math.max(.02,Math.min(.2,t))}function qs(e){return{thumbSlot:"left",thumbSizePx:Ht("left",150),updatedAt:Vl()}}function zl(){return{schemaVersion:Ll,updatedAt:Vl(),layouts:{scroll:qs(),book:qs()}}}function Hl(){return 1.45}function $l(e){return{pageCount:Math.max(0,Math.floor(e.pageCount||0)),pagesPerScreen:Math.max(1,Math.floor(e.pagesPerScreen||1)),isChangeOddEven:!!e.isChangeOddEven}}function _g(e){const t=$l(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 Ps(e){const t=$l(e),n=_g(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 Rs(e,t){const n=Math.floor(t),r=e.findIndex(o=>o.includes(n));return r>=0?r:0}function Ul(e,t){if(!e||e.length===0)return t;const n=e.filter(r=>r>=0);return n.length===0?t:n[0]}function kg(e,t,n){const r=Ps(e),o=Rs(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 Ul(i,t)}const ao=100;function Ms(e,t){const n=jl(t)-1;return e<0?0:e>n?n:e}function jl(e){const t=Math.max(1,e);return Math.max(1,Math.ceil(t/ao))}function Wl(e){return e<=0?0:Math.floor(e/ao)}function xg(e,t){const n=Ms(e,t),r=n*ao,o=Math.min(t-1,r+ao-1);return{segmentIndex:n,startIndex:Math.max(0,r),endIndex:Math.max(0,o)}}function Sg(e,t,n){if(t<=0)return[];const r=xg(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 Cg(){const e=globalThis.GM_getValue;if(typeof e=="function")return e(io,null);try{return zt.storageGet(io,null)}catch(t){return null}}function Tg(e){const t=globalThis.GM_setValue;if(typeof t=="function"){t(io,e);return}try{zt.storageSet(io,e)}catch(n){}}function Gl(e,t){const n=qs();if(!t||typeof t!="object")return n;const r=co(t.thumbSlot),o=Ht(r,Number(t.thumbSizePx)),s=typeof t.updatedAt=="string"?t.updatedAt:n.updatedAt;return{thumbSlot:r,thumbSizePx:o,updatedAt:s}}function Kl(e){const t=zl();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)||Ll,updatedAt:typeof e.updatedAt=="string"?e.updatedAt:new Date().toISOString(),layouts:{scroll:Gl("scroll",n.scroll),book:Gl("book",n.book)}}}function Eg(){return Kl(Cg())}function Ag(e){const t=Kl(e);return Tg(t),t}var Ze=Uint8Array,ct=Uint16Array,Fs=Int32Array,Ls=new Ze([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]),Ns=new Ze([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]),Ql=new Ze([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Zl=function(e,t){for(var n=new ct(31),r=0;r<31;++r)n[r]=t+=1<<e[r-1];for(var o=new Fs(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}},Yl=Zl(Ls,2),Ig=Yl.b,Os=Yl.r;Ig[28]=258,Os[258]=28;for(var Dg=Zl(Ns,0),Jl=Dg.r,Bs=new ct(32768),Re=0;Re<32768;++Re){var tn=(Re&43690)>>1|(Re&21845)<<1;tn=(tn&52428)>>2|(tn&13107)<<2,tn=(tn&61680)>>4|(tn&3855)<<4,Bs[Re]=((tn&65280)>>8|(tn&255)<<8)>>1}for(var pr=(function(e,t,n){for(var r=e.length,o=0,s=new ct(t);o<r;++o)e[o]&&++s[e[o]-1];var i=new ct(t);for(o=1;o<t;++o)i[o]=i[o-1]+s[o-1]<<1;var c;if(n){c=new ct(1<<t);var a=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)c[Bs[f]>>a]=u}else for(c=new ct(r),o=0;o<r;++o)e[o]&&(c[o]=Bs[i[e[o]-1]++]>>15-e[o]);return c}),gn=new Ze(288),Re=0;Re<144;++Re)gn[Re]=8;for(var Re=144;Re<256;++Re)gn[Re]=9;for(var Re=256;Re<280;++Re)gn[Re]=7;for(var Re=280;Re<288;++Re)gn[Re]=8;for(var lo=new Ze(32),Re=0;Re<32;++Re)lo[Re]=5;var qg=pr(gn,9,0),Pg=pr(lo,5,0),Xl=function(e){return(e+7)/8|0},eu=function(e,t,n){return(n==null||n>e.length)&&(n=e.length),new Ze(e.subarray(t,n))},Rg=["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"],uo=function(e,t,n){var r=new Error(t||Rg[e]);if(r.code=e,Error.captureStackTrace&&Error.captureStackTrace(r,uo),!n)throw r;return r},$t=function(e,t,n){n<<=t&7;var r=t/8|0;e[r]|=n,e[r+1]|=n>>8},gr=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},Vs=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:ou,l:0};if(o==1){var i=new Ze(n[0].s+1);return i[n[0].s]=1,{t:i,l:1}}n.sort(function(S,k){return S.f-k.f}),n.push({s:-1,f:25001});var c=n[0],a=n[1],u=0,l=1,f=2;for(n[0]={s:-1,f:c.f+a.f,l:c,r:a};l!=o-1;)c=n[n[u].f<n[f].f?u++:f++],a=n[u!=l&&n[u].f<n[f].f?u++:f++],n[l++]={s:-1,f:c.f+a.f,l:c,r:a};for(var p=s[0].s,r=1;r<o;++r)s[r].s>p&&(p=s[r].s);var d=new ct(p+1),v=zs(n[l-1],d,0);if(v>t){var r=0,g=0,T=v-t,w=1<<T;for(s.sort(function(k,P){return d[P.s]-d[k.s]||k.f-P.f});r<o;++r){var y=s[r].s;if(d[y]>t)g+=w-(1<<v-d[y]),d[y]=t;else break}for(g>>=T;g>0;){var b=s[r].s;d[b]<t?g-=1<<t-d[b]++-1:++r}for(;r>=0&&g;--r){var m=s[r].s;d[m]==t&&(--d[m],++g)}v=t}return{t:new Ze(d),l:v}},zs=function(e,t,n){return e.s==-1?Math.max(zs(e.l,t,n+1),zs(e.r,t,n+1)):t[e.s]=n},tu=function(e){for(var t=e.length;t&&!e[--t];);for(var n=new ct(++t),r=0,o=e[0],s=1,i=function(a){n[r++]=a},c=1;c<=t;++c)if(e[c]==o&&c!=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[c]}return{c:n.subarray(0,r),n:t}},mr=function(e,t){for(var n=0,r=0;r<t.length;++r)n+=e[r]*t[r];return n},nu=function(e,t,n){var r=n.length,o=Xl(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},ru=function(e,t,n,r,o,s,i,c,a,u,l){$t(t,l++,n),++o[256];for(var f=Vs(o,15),p=f.t,d=f.l,v=Vs(s,15),g=v.t,T=v.l,w=tu(p),y=w.c,b=w.n,m=tu(g),S=m.c,k=m.n,P=new ct(19),x=0;x<y.length;++x)++P[y[x]&31];for(var x=0;x<S.length;++x)++P[S[x]&31];for(var A=Vs(P,7),q=A.t,L=A.l,M=19;M>4&&!q[Ql[M-1]];--M);var ne=u+5<<3,O=mr(o,gn)+mr(s,lo)+i,B=mr(o,p)+mr(s,g)+i+14+3*M+mr(P,q)+2*P[16]+3*P[17]+7*P[18];if(a>=0&&ne<=O&&ne<=B)return nu(t,l,e.subarray(a,a+u));var F,I,W,he;if($t(t,l,1+(B<O)),l+=2,B<O){F=pr(p,d,0),I=p,W=pr(g,T,0),he=g;var de=pr(q,L,0);$t(t,l,b-257),$t(t,l+5,k-1),$t(t,l+10,M-4),l+=14;for(var x=0;x<M;++x)$t(t,l+3*x,q[Ql[x]]);l+=3*M;for(var ge=[y,S],ye=0;ye<2;++ye)for(var Ce=ge[ye],x=0;x<Ce.length;++x){var Ne=Ce[x]&31;$t(t,l,de[Ne]),l+=q[Ne],Ne>15&&($t(t,l,Ce[x]>>5&127),l+=Ce[x]>>12)}}else F=qg,I=gn,W=Pg,he=lo;for(var x=0;x<c;++x){var me=r[x];if(me>255){var Ne=me>>18&31;gr(t,l,F[Ne+257]),l+=I[Ne+257],Ne>7&&($t(t,l,me>>23&31),l+=Ls[Ne]);var dt=me&31;gr(t,l,W[dt]),l+=he[dt],dt>3&&(gr(t,l,me>>5&8191),l+=Ns[dt])}else gr(t,l,F[me]),l+=I[me]}return gr(t,l,F[256]),l+I[256]},Mg=new Fs([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),ou=new Ze(0),Fg=function(e,t,n,r,o,s){var i=s.z||e.length,c=new Ze(r+i+5*(1+Math.ceil(i/7e3))+o),a=c.subarray(r,c.length-o),u=s.l,l=(s.r||0)&7;if(t){l&&(a[0]=s.r>>3);for(var f=Mg[t-1],p=f>>13,d=f&8191,v=(1<<n)-1,g=s.p||new ct(32768),T=s.h||new ct(v+1),w=Math.ceil(n/3),y=2*w,b=function(N){return(e[N]^e[N+1]<<w^e[N+2]<<y)&v},m=new Fs(25e3),S=new ct(288),k=new ct(32),P=0,x=0,A=s.i||0,q=0,L=s.w||0,M=0;A+2<i;++A){var ne=b(A),O=A&32767,B=T[ne];if(g[O]=B,T[ne]=O,L<=A){var F=i-A;if((P>7e3||q>24576)&&(F>423||!u)){l=ru(e,a,0,m,S,k,x,q,M,A-M,l),q=P=x=0,M=A;for(var I=0;I<286;++I)S[I]=0;for(var I=0;I<30;++I)k[I]=0}var W=2,he=0,de=d,ge=O-B&32767;if(F>2&&ne==b(A-ge))for(var ye=Math.min(p,F)-1,Ce=Math.min(32767,A),Ne=Math.min(258,F);ge<=Ce&&--de&&O!=B;){if(e[A+W]==e[A+W-ge]){for(var me=0;me<Ne&&e[A+me]==e[A+me-ge];++me);if(me>W){if(W=me,he=ge,me>ye)break;for(var dt=Math.min(ge,me-2),vn=0,I=0;I<dt;++I){var bn=A-ge+I&32767,Po=g[bn],nn=bn-Po&32767;nn>vn&&(vn=nn,B=bn)}}}O=B,B=g[O],ge+=O-B&32767}if(he){m[q++]=268435456|Os[W]<<18|Jl[he];var gc=Os[W]&31,_=Jl[he]&31;x+=Ls[gc]+Ns[_],++S[257+gc],++k[_],L=A+W,++P}else m[q++]=e[A],++S[e[A]]}}for(A=Math.max(A,L);A<i;++A)m[q++]=e[A],++S[e[A]];l=ru(e,a,u,m,S,k,x,q,M,A-M,l),u||(s.r=l&7|a[l/8|0]<<3,l-=7,s.h=T,s.p=g,s.i=A,s.w=L)}else{for(var A=s.w||0;A<i+u;A+=65535){var E=A+65535;E>=i&&(a[l/8|0]=u,E=i),l=nu(a,l+1,e.subarray(A,E))}s.i=i}return eu(c,0,r+Xl(l)+o)},Lg=(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})(),Ng=function(){var e=-1;return{p:function(t){for(var n=e,r=0;r<t.length;++r)n=Lg[n&255^t[r]]^n>>>8;e=n},d:function(){return~e}}},Og=function(e,t,n,r,o){if(!o&&(o={l:1},t.dictionary)){var s=t.dictionary.subarray(-32768),i=new Ze(s.length+e.length);i.set(s),i.set(e,s.length),e=i,o.w=s.length}return Fg(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)},su=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},Ue=function(e,t,n){for(;n;++t)e[t]=n,n>>>=8};function Bg(e,t){return Og(e,t||{},0,0)}var iu=function(e,t,n,r){for(var o in e){var s=e[o],i=t+o,c=r;Array.isArray(s)&&(c=su(r,s[1]),s=s[0]),s instanceof Ze?n[i]=[s,c]:(n[i+="/"]=[new Ze(0),c],iu(s,i,n,r))}},cu=typeof TextEncoder!="undefined"&&new TextEncoder,Vg=typeof TextDecoder!="undefined"&&new TextDecoder,zg=0;try{Vg.decode(ou,{stream:!0}),zg=1}catch(e){}function Hs(e,t){var n;if(cu)return cu.encode(e);for(var r=e.length,o=new Ze(e.length+(e.length>>1)),s=0,i=function(u){o[s++]=u},n=0;n<r;++n){if(s+5>o.length){var c=new Ze(s+8+(r-n<<1));c.set(o),o=c}var a=e.charCodeAt(n);a<128||t?i(a):a<2048?(i(192|a>>6),i(128|a&63)):a>55295&&a<57344?(a=65536+(a&1047552)|e.charCodeAt(++n)&1023,i(240|a>>18),i(128|a>>12&63),i(128|a>>6&63),i(128|a&63)):(i(224|a>>12),i(128|a>>6&63),i(128|a&63))}return eu(o,0,s)}var $s=function(e){var t=0;if(e)for(var n in e){var r=e[n].length;r>65535&&uo(9),t+=r+4}return t},au=function(e,t,n,r,o,s,i,c){var a=r.length,u=n.extra,l=c&&c.length,f=$s(u);Ue(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),d=p.getFullYear()-1980;if((d<0||d>119)&&uo(10),Ue(e,t,d<<25|p.getMonth()+1<<21|p.getDate()<<16|p.getHours()<<11|p.getMinutes()<<5|p.getSeconds()>>1),t+=4,s!=-1&&(Ue(e,t,n.crc),Ue(e,t+4,s<0?-s-2:s),Ue(e,t+8,n.size)),Ue(e,t+12,a),Ue(e,t+14,f),t+=16,i!=null&&(Ue(e,t,l),Ue(e,t+6,n.attrs),Ue(e,t+10,i),t+=14),e.set(r,t),t+=a,f)for(var v in u){var g=u[v],T=g.length;Ue(e,t,+v),Ue(e,t+2,T),e.set(g,t+4),t+=4+T}return l&&(e.set(c,t),t+=l),t},Hg=function(e,t,n,r,o){Ue(e,t,101010256),Ue(e,t+8,n),Ue(e,t+10,n),Ue(e,t+12,r),Ue(e,t+16,o)};function $g(e,t){t||(t={});var n={},r=[];iu(e,"",n,t);var o=0,s=0;for(var i in n){var c=n[i],a=c[0],u=c[1],l=u.level==0?0:8,f=Hs(i),p=f.length,d=u.comment,v=d&&Hs(d),g=v&&v.length,T=$s(u.extra);p>65535&&uo(11);var w=l?Bg(a,u):a,y=w.length,b=Ng();b.p(a),r.push(su(u,{size:a.length,crc:b.d(),c:w,f,m:v,u:p!=i.length||v&&d.length!=g,o,compression:l})),o+=30+p+T+y,s+=76+2*(p+T)+(g||0)+y}for(var m=new Ze(s+22),S=o,k=s-o,P=0;P<r.length;++P){var f=r[P];au(m,f.o,f,f.f,f.u,f.c.length);var x=30+f.f.length+$s(f.extra);m.set(f.c,f.o+x),au(m,o,f,f.f,f.u,f.c.length,f.o,f.m),o+=16+x+(f.m?f.m.length:0)}return Hg(m,o,r.length,k,S),m}var Mn=(e=>(e[e.SPIRIT=0]="SPIRIT",e[e.IMG=1]="IMG",e))(Mn||{}),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 Ug=[{mode:Ye.Default,attempts:3}],jg=[{mode:Ye.Default,attempts:2},{mode:Ye.ChangeSource,attempts:2},{mode:Ye.Origin,attempts:2}];function lu(e){return e.autoRetryByOtherSource&&e.supportChangeSource?jg:Ug}function Wg(e,t){const n=lu(t),r=n.findIndex(c=>c.mode===e);if(r<0)return[];const o=[],s=n[r],i=Math.max(s.attempts-1,0);for(let c=0;c<i;c++)o.push(s.mode);for(let c=r+1;c<n.length;c++){const a=n[c];for(let u=0;u<a.attempts;u++)o.push(a.mode)}return o}const Gg=200;function Kg(e){return new Promise(t=>setTimeout(t,e))}function Qg(e){return!Number.isFinite(e)||e<=0?Gg:Math.floor(e)}function Zg(){return"3.0.0"}function Ut(e,t){const n=K.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 Yg(e){const t=e.replace(/[<>:"/\\|?*\u0000-\u001F]/g,"_").replace(/[.\s]+$/g,"").trim();return t.length>0?t:"gallery"}function Jg(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 Xg(){const e=window.location.hostname||"";return!!(e==="localhost"||/^\d{1,3}(?:\.\d{1,3}){3}$/.test(e))}function em(e,t=3e4){return Ie(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 Ie(this,null,function*(){const o=lu({autoRetryByOtherSource:r,supportChangeSource:e.isSupportImgChangeSource()});let s=null;for(const i of o)for(let c=1;c<=i.attempts;c++)try{const a=yield e.getImgSrc(t,i.mode);if(a instanceof Error)throw a;if(!a.src)throw new Error("empty_image_src");typeof a.src=="string"&&a.src.startsWith("//")&&(a.src=`${window.location.protocol}${a.src}`),console.log("[GalleryDownloadService] image load begin",{pageIndex:t,pageNumber:n,mode:i.mode,attempt:c,src:a.src});const u=Date.now(),l=yield em(a.src,3e4),f=Date.now()-u;return console.log("[GalleryDownloadService] image load done",{pageIndex:t,pageNumber:n,mode:i.mode,attempt:c,src:a.src,blobSize:l.size,blobType:l.type,elapsedMs:f}),{pageNumber:n,blob:l,extension:Jg(a.src,l.type)}}catch(a){const u=a instanceof Error?a.message:String(a);console.log("[GalleryDownloadService] image load failed",{pageIndex:t,pageNumber:n,mode:i.mode,attempt:c,reason:u}),s=a,c<i.attempts&&(yield Kg(350))}throw s instanceof Error?s:new Error(String(s||"resolve_image_failed"))})}function nm(e,t){const n=URL.createObjectURL(t),r=globalThis.GM_download;if(console.log("[GalleryDownloadService] download trigger start",{fileName:e,size:t.size}),!Xg()&&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 rm{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 Ie(this,null,function*(){const n=Ro(Bn({},t),{chunkSize:Qg(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=[],c=Math.max(4,String(r).length),a=Yg(n.galleryTitle),u=new Date().toISOString();if(n.onStatus({phase:"queued",severity:"info",message:Ut("downloadQueued"),processedPages:0,totalPages:r,failedPages:0}),r<=0)return n.onStatus({phase:"failed",severity:"error",message:Ut("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=[],d=0;const v=T=>Ie(this,null,function*(){this.assertNotAborted(n.taskId);const w={introUrl:n.introUrl,galleryTitle:n.galleryTitle,totalPages:r,downloadTime:u,eHunterVersion:n.eHunterVersion||Zg(),totalChunks:o,chunkIndex:l},y={"metadata.json":Hs(`${JSON.stringify(w,null,2)}
`)},b=[...T].sort((x,A)=>x.pageNumber-A.pageNumber);for(const x of b)try{const q=`${String(x.pageNumber).padStart(c,"0")}.${x.extension}`;y[q]=new Uint8Array(yield x.blob.arrayBuffer())}catch(A){const q=A instanceof Error?A.message:String(A);s.push({pageNumber:x.pageNumber,reason:`ZIP_PREP_FAILED:${q}`}),p.push(x.pageNumber),d=Math.max(0,d-1)}finally{x.blob=new Blob}n.onStatus({phase:"compressing",severity:"info",message:Ut("downloadCompressing",{chunk:l,totalChunks:o}),processedPages:f,totalPages:r,failedPages:s.length}),console.log("[GalleryDownloadService] zip compress start",{chunkIndex:l,totalChunks:o,fileCount:b.length});const m=$g(y,{level:0}),S=new Uint8Array(m.length);S.set(m);const k=new Blob([S],{type:"application/zip"});console.log("[GalleryDownloadService] zip compress done",{chunkIndex:l,totalChunks:o,zipSize:k.size}),this.assertNotAborted(n.taskId);const P=o>1?`${a}_part-${String(l).padStart(2,"0")}-of-${String(o).padStart(2,"0")}.zip`:`${a}.zip`;nm(P,k),i.push({chunkIndex:l,totalChunks:o,zipFileName:P,successCount:d,failedCount:p.length,failedPageNumbers:[...p]}),l+=1,p=[],d=0});for(let T=1;T<=r;T+=n.chunkSize){this.assertNotAborted(n.taskId);const w=Math.min(r,T+n.chunkSize-1),y=[];for(let k=T;k<=w;k++)y.push(k);const b=[],m=[...y],S=()=>Ie(this,null,function*(){for(;m.length>0;){this.assertNotAborted(n.taskId);const k=m.shift();if(!k)return;n.onStatus({phase:"fetching",severity:"info",message:Ut("downloadFetching",{current:k,total:r}),processedPages:f,totalPages:r,failedPages:s.length});const P=k-1;try{const x=yield tm(n.albumService,P,k,n.autoRetryByOtherSource);this.assertNotAborted(n.taskId),b.push(x),d+=1}catch(x){const A=x instanceof Error?x.message:String(x);s.push({pageNumber:k,reason:A}),p.push(k)}f+=1,n.onStatus({phase:"fetching",severity:"info",message:Ut("downloadFetching",{current:f,total:r}),processedPages:f,totalPages:r,failedPages:s.length})}});yield Promise.all([S(),S(),S()]);try{yield v(b)}catch(k){const P=k instanceof Error?k.message:String(k);s.push({pageNumber:T,reason:`CHUNK_FINALIZE_FAILED:${P}`}),n.onStatus({phase:"partial",severity:"warning",message:Ut("downloadChunkFailed",{chunk:l,reason:P}),processedPages:f,totalPages:r,failedPages:s.length}),l+=1,p=[],d=0}}this.assertNotAborted(n.taskId);const g=s.length===0?"completed":s.length===r?"failed":"partial";return n.onStatus({phase:g,severity:g==="completed"?"success":g==="partial"?"warning":"error",message:g==="completed"?Ut("downloadCompleted"):g==="partial"?Ut("downloadPartial",{failed:s.length}):Ut("downloadFailed"),processedPages:f,totalPages:r,failedPages:s.length}),{status:g,totalPages:r,processedPages:f,failedPages:s.length,chunks:i,failures:s}})}}function om(e){return{title:e.title,mdText:e.mdText,isCompulsive:e.isCompulsive,operations:e.operations?[...e.operations]:[]}}let uu=0;function sm(e){uu+=1;const t=om(e);return Ro(Bn({},t),{id:`dialog-${Date.now()}-${uu}`})}function fu(){const e=h.instructionDialogStack,t=e.length>0?e[e.length-1]:null;if(!t){h.showInstructionDialog=!1,h.instructionDialogTitle="",h.instructionDialogMdText="",h.instructionDialogCompulsive=!1,h.instructionDialogOperations=[];return}h.showInstructionDialog=!0,h.instructionDialogTitle=t.title,h.instructionDialogMdText=t.mdText,h.instructionDialogCompulsive=t.isCompulsive!==!1,h.instructionDialogOperations=t.operations?[...t.operations]:[]}const fo="ehunter:reader:prefs:page-turn-animation",hu=1,Us="realistic",ho="ehunter:reader:prefs:unified-settings",du=1;let jt=0,vr=!1,Fn=null,Ln=zl(),pu=null;const js={},po=[{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"},{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:"IsReverseBookWheeFliplDirection",i18nKey:"wheelDirection",modeScope:"book-only"},{id:"wheelSensitivity",i18nKey:"wheelSensitivity",modeScope:"book-only"},{id:"lang",i18nKey:"languageSetting",modeScope:"both"},{id:"autoRetryByOtherSource",i18nKey:"autoSourceRetry",modeScope:"both"}],im=[{id:"general",i18nKey:"settingsGeneral"},{id:"scroll",i18nKey:"settingsScrollMode"},{id:"book",i18nKey:"settingsBookMode"},{id:"quick",i18nKey:"settingsQuick"},{id:"other",i18nKey:"settingsOther"}],go=[{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:"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:"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}],De=go.reduce((e,t)=>(e[t.id]=t,e),{}),cm={general:go.filter(e=>e.showInDialog&&e.dialogCategory==="general").map(e=>e.id),scroll:go.filter(e=>e.showInDialog&&e.dialogCategory==="scroll").map(e=>e.id),book:go.filter(e=>e.showInDialog&&e.dialogCategory==="book").map(e=>e.id)},At="readingMode",mo=po.map(e=>e.id),Ws=["readingMode","widthScale","loadNum","volumeSize","showThumbView","pagesPerScreen","bookDirection","isChangeOddEven","showBookPagination","showBookThumbView","lang"];function Gs(e){return e==="slide"||e==="none"||e==="realistic"?e:Us}function am(){try{if(window.matchMedia&&window.matchMedia("(prefers-reduced-motion: reduce)").matches)return"none"}catch(e){}return Us}function lm(){const e=globalThis.GM_getValue;return typeof e=="function"?e(fo,null):null}function um(e){const t=globalThis.GM_setValue;return typeof t=="function"?(t(fo,e),!0):!1}function fm(){try{return zt.storageGet(fo,null)}catch(e){return null}}function hm(e){try{return zt.storageSet(fo,e)}catch(t){return!1}}function gu(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)||hu,updatedAt:typeof e.updatedAt=="string"?e.updatedAt:new Date().toISOString(),scope:"global",animationMode:Gs(e.animationMode)}}function dm(e){return{schemaVersion:hu,updatedAt:new Date().toISOString(),scope:"global",animationMode:e}}function pm(e){const t=dm(e);um(t)||hm(t)}function gm(){const e=gu(lm());if(e)return e.animationMode;const t=gu(fm());return t?t.animationMode:am()}function mm(){const e=globalThis.GM_getValue;if(typeof e=="function")return e(ho,null);try{return zt.storageGet(ho,null)}catch(t){return null}}function vm(e){const t=globalThis.GM_setValue;if(typeof t=="function"){t(ho,e);return}try{zt.storageSet(ho,e)}catch(n){}}function mu(e,t){const n=new Set(po.map(a=>a.id)),r=Array.isArray(t)?t:mo,o=Array.isArray(e)?e:Ws,s=[];for(const a of r)typeof a=="string"&&n.has(a)&&!s.includes(a)&&s.push(a);for(const a of mo)s.includes(a)||s.push(a);const i=[];for(const a of o)typeof a=="string"&&n.has(a)&&!i.includes(a)&&i.push(a);i.includes(At)||i.unshift(At);const c=s.filter(a=>a!==At);return{selected:i,order:[At,...c]}}function bm(e){if(!e)return null;if(typeof e=="string")try{e=JSON.parse(e)}catch(n){return null}if(typeof e!="object")return null;const t=mu(e.quickSelection,e.quickOrder);return{schemaVersion:Number(e.schemaVersion)||du,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}}function Ee(){const e={schemaVersion:du,updatedAt:new Date().toISOString(),settings:{readingMode:h.readingMode,widthScale:h.widthScale,loadNum:h.loadNum,downloadChunkSize:h.downloadChunkSize,volumeSize:h.volumeSize,showThumbView:h.showThumbView,scrollPageMargin:h.scrollPageMargin,pagesPerScreen:h.pagesPerScreen,bookDirection:h.bookDirection,pageTurnAnimationMode:h.pageTurnAnimationMode,showBookPagination:h.showBookPagination,isChangeOddEven:h.isChangeOddEven,isReverseFlip:h.isReverseFlip,isAutoFlip:h.isAutoFlip,autoFlipFrequency:h.autoFlipFrequency,showBookThumbView:h.showBookThumbView,IsReverseBookWheeFliplDirection:h.IsReverseBookWheeFliplDirection,wheelSensitivity:h.wheelSensitivity,lang:it.value,autoRetryByOtherSource:h.autoRetryByOtherSource,hasShownWelcomeInstruction:h.hasShownWelcomeInstruction,hasShownBookInstruction:h.hasShownBookInstruction,lastSeenVersionNotice:h.lastSeenVersionNotice,lastRemoteUpdateNoticeAt:h.lastRemoteUpdateNoticeAt},quickSelection:[...h.quickSettingSelected],quickOrder:[...h.quickSettingOrder]};vm(e)}function ym(){const e=bm(mm());if(!e){h.quickSettingSelected=[...Ws],h.quickSettingOrder=[...mo];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"]];for(const[s,i]of n)typeof t[s]=="number"&&Number.isFinite(t[s])&&(h[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"&&(h[i]=t[s]);h.pageTurnAnimationMode=Gs(t.pageTurnAnimationMode),typeof t.lang=="string"&&["cn","en","jp"].includes(t.lang)&&(it.value=t.lang),typeof t.hasShownWelcomeInstruction=="boolean"?h.hasShownWelcomeInstruction=t.hasShownWelcomeInstruction:h.hasShownWelcomeInstruction=!1,typeof t.hasShownBookInstruction=="boolean"?h.hasShownBookInstruction=t.hasShownBookInstruction:h.hasShownBookInstruction=!1,typeof t.lastSeenVersionNotice=="string"?h.lastSeenVersionNotice=t.lastSeenVersionNotice:h.lastSeenVersionNotice="",typeof t.lastRemoteUpdateNoticeAt=="number"&&Number.isFinite(t.lastRemoteUpdateNoticeAt)?h.lastRemoteUpdateNoticeAt=t.lastRemoteUpdateNoticeAt:h.lastRemoteUpdateNoticeAt=0;const o=mu(e.quickSelection,e.quickOrder);h.quickSettingSelected=o.selected,h.quickSettingOrder=o.order,Ee()}function vu(e){return e===0?"scroll":"book"}function br(e){h.thumbItemWidth=Math.max(60,Math.round(e)),h.thumbImgWidth=Math.max(40,Math.round(h.thumbItemWidth*(100/150))),h.thumbItemHeight=Math.max(64,Math.round(h.thumbItemWidth*(160/150)))}function bu(){const e=vu(h.readingMode),t=Ln.layouts[e],n=co(t.thumbSlot);h.thumbDockSlot=n;const r=Ht(n,t.thumbSizePx);h.thumbViewWidth=r,h.thumbViewHeight=Ht("bottom",t.thumbSizePx),br(r)}function yu(){const e=vu(h.readingMode),t=co(h.thumbDockSlot),n=t==="bottom"?h.thumbViewHeight:h.thumbViewWidth;Ln.layouts[e]={thumbSlot:t,thumbSizePx:Ht(t,n),updatedAt:new Date().toISOString()},Ln.updatedAt=new Date().toISOString(),Ln=Ag(Ln)}const wm=X(()=>{const e=new Set(h.quickSettingSelected);return h.quickSettingOrder.filter(t=>{if(!e.has(t))return!1;const n=po.find(r=>r.id===t);return n?n.modeScope==="both"?!0:n.modeScope==="scroll-only"?h.readingMode===0:h.readingMode===1:!1})});function _m(){const t=(typeof window!="undefined"?window.innerWidth:1024)<767;return{showThumbView:!t,showBookThumbView:!t,pagesPerScreen:t?1:2}}const Ks=_m(),h=Rr({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:Ks.showThumbView,bookDirection:0,showBookPagination:!0,isChangeOddEven:!1,isReverseFlip:!1,isAutoFlip:!1,autoFlipFrequency:10,showBookThumbView:Ks.showBookThumbView,IsReverseBookWheeFliplDirection:!1,wheelSensitivity:100,scrollPageMargin:70,autoRetryByOtherSource:!0,hasShownWelcomeInstruction:!1,hasShownBookInstruction:!1,lastSeenVersionNotice:"",lastRemoteUpdateNoticeAt:0,quickSettingSelected:[...Ws],quickSettingOrder:[...mo],isFactoryResetDialogVisible:!1,factoryResetStatus:"idle",factoryResetErrorMessage:"",downloadNotifications:[],downloadTaskMap:{},thumbDockSlot:"left",thumbViewWidth:150,thumbViewHeight:200,thumbItemWidth:150,thumbItemHeight:160,thumbImgWidth:100,thumbExpandSegmentIndex:0,pagesPerScreen:Ks.pagesPerScreen,flipDirection:0,pageTurnAnimationMode:Us,thumbInfos:[],imgPageInfos:[],pageCount:0,curViewIndex:0,curViewIndexUpdater:"",albumTitle:""}),vo=X(()=>Math.ceil((h.curViewIndex+1)/h.volumeSize)),ft=X(()=>(vo.value-1)*h.volumeSize),wu=X(()=>h.curViewIndex-ft.value),yr=X(()=>Math.ceil(h.pageCount/h.volumeSize)),km=X(()=>{let e=[];const t=ft.value+h.volumeSize;for(let n=ft.value;n<t&&n<h.pageCount;n++)e.push(n);return e}),xm=X(()=>{let e=[];if(vo.value>=yr.value)return e;let t=h.curViewIndex+h.loadNum-(ft.value+h.volumeSize);if(t<=0)return e;for(let n=0;n<t;n++){let r=ft.value+h.volumeSize+n;r<=h.pageCount-1&&e.push(r)}return e}),Qs=X(()=>(h.readingMode==0&&h.showThumbView||h.readingMode==1&&h.showBookThumbView)&&h.thumbDockSlot!=="bottom"?h.viewportWidth-h.thumbViewWidth:h.viewportWidth),Zs=X(()=>{const e=h.readingMode==0&&h.showThumbView||h.readingMode==1&&h.showBookThumbView;let t=h.viewportHeight;return h.showTopBar&&(t-=h.topBarHeight),e&&h.thumbDockSlot==="bottom"&&(t-=h.thumbViewHeight),t}),Sm=X(()=>Zs.value/Qs.value),Ys={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:"pageTurnAnimationRealistic",val:"realistic"},{i18nKey:"pageTurnAnimationSlide",val:"slide"},{i18nKey:"pageTurnAnimationNone",val:"none"}]},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]},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"}]},V={toggleShowMoreSettings:()=>{V.toggleShowMoreSettingsDialog()},toggleShowMoreSettingsDialog:()=>{h.showMoreSettingsDialog=!h.showMoreSettingsDialog,h.showMoreSettingsDialog&&(h.activeSettingsCategory="general")},openMoreSettingsDialog:()=>{h.showMoreSettingsDialog=!0,h.activeSettingsCategory="general"},closeMoreSettingsDialog:()=>{h.showMoreSettingsDialog=!1},openThumbExpandDialog:()=>{h.thumbExpandSegmentIndex=Wl(h.curViewIndex),h.showThumbExpandDialog=!0},closeThumbExpandDialog:()=>{h.showThumbExpandDialog=!1},openDownloadConfirmDialog:()=>{h.showDownloadConfirmDialog=!0},closeDownloadConfirmDialog:()=>{h.showDownloadConfirmDialog=!1},openInstructionDialog:e=>{h.instructionDialogStack.push(sm(e)),fu()},closeInstructionDialog:e=>{if(e){const t=h.instructionDialogStack.findIndex(n=>n.id===e);t>=0&&h.instructionDialogStack.splice(t,1)}else h.instructionDialogStack.pop();fu(),h.showInstructionDialog||Is()},openWelcomeInstructionDialog:()=>{Ml(!1)},markWelcomeInstructionShown:()=>{h.hasShownWelcomeInstruction=!0,Ee()},markBookInstructionShown:()=>{h.hasShownBookInstruction=!0,Ee()},markVersionNoticeSeen:e=>{h.lastSeenVersionNotice=e,Ee()},markRemoteUpdateNoticeShown:e=>{h.lastRemoteUpdateNoticeAt=e,Ee()},setThumbExpandSegmentIndex:e=>{h.thumbExpandSegmentIndex=Ms(e,h.pageCount)},setActiveSettingsCategory:e=>{h.activeSettingsCategory=e},toggleShowTopBar:()=>{h.showTopBar=!h.showTopBar},setTopBar:e=>{h.showTopBar=e},setReadingMode:e=>{h.readingMode=e,bu(),oo(),Is(),Ee()},setThumbDockSlot:e=>{const t=co(e),n=h.thumbDockSlot;h.thumbDockSlot=t,t==="bottom"?(h.thumbViewHeight=Ht("bottom",n==="bottom"?h.thumbViewHeight:h.thumbViewWidth),br(h.thumbViewHeight)):(h.thumbViewWidth=Ht(t,n==="bottom"?h.thumbViewHeight:h.thumbViewWidth),br(h.thumbViewWidth)),yu()},setThumbPanelSize:e=>{h.thumbDockSlot==="bottom"?(h.thumbViewHeight=Ht("bottom",e),br(h.thumbViewHeight)):(h.thumbViewWidth=Ht(h.thumbDockSlot,e),br(h.thumbViewWidth)),yu()},setWidthScale:e=>{h.widthScale=e,Ee()},setLoadNum:e=>{h.loadNum=e,Ee()},setDownloadChunkSize:e=>{!Number.isFinite(e)||e<=0?h.downloadChunkSize=200:h.downloadChunkSize=Math.floor(e),Ee()},setVolumeSize:e=>{h.volumeSize=e,Ee()},toggleShowThumbView:()=>{h.showThumbView=!h.showThumbView,Ee()},setPagesPerScreen:e=>{h.pagesPerScreen=e,Ee()},setBookDirection:e=>{h.bookDirection=e,Ee()},setPageTurnAnimationMode:e=>{let t=Gs(e);h.pageTurnAnimationMode=t,pm(t),t==="none"&&(jt&&window.clearTimeout(jt),jt=0,vr=!1,Fn=null),Ee()},toggleShowBookPagination:()=>{h.showBookPagination=!h.showBookPagination,Ee()},toggleIsChangeOddEven:()=>{h.isChangeOddEven=!h.isChangeOddEven,Ee()},toggleIsReverseFlip:()=>{h.isReverseFlip=!h.isReverseFlip,Ee()},toggleIsAutoFlip:()=>{h.isAutoFlip=!h.isAutoFlip,oo(),Ee()},setAutoFlipFrequency:e=>{h.autoFlipFrequency=e,Ee()},toggleShowBookThumbView:()=>{h.showBookThumbView=!h.showBookThumbView,Ee()},toggleIsReverseBookWheeFliplDirection:()=>{h.IsReverseBookWheeFliplDirection=!h.IsReverseBookWheeFliplDirection,Ee()},setWheelSensitivity:e=>{h.wheelSensitivity=e,Ee()},setScrollPageMargin:e=>{h.scrollPageMargin=e,Ee()},setLang:e=>{it.value=e,Ee()},setAutoRetryByOtherSource:e=>{h.autoRetryByOtherSource=e,Ee()},isQuickSettingSelected:e=>h.quickSettingSelected.includes(e),toggleQuickSettingSelection:e=>{if(e===At)return;let t=h.quickSettingSelected.indexOf(e);t>=0?h.quickSettingSelected.splice(t,1):h.quickSettingSelected.push(e),h.quickSettingSelected.includes(At)||h.quickSettingSelected.unshift(At),Ee()},moveQuickSettingItem:(e,t)=>{if(e===At||h.quickSettingOrder.indexOf(e)<0)return;const r=h.quickSettingOrder.filter(i=>i!==At),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),h.quickSettingOrder=[At,...r],Ee())},showFactoryResetDialog:()=>{h.isFactoryResetDialogVisible=!0,h.factoryResetStatus="confirming",h.factoryResetErrorMessage=""},hideFactoryResetDialog:()=>{h.isFactoryResetDialogVisible=!1,h.factoryResetStatus==="confirming"&&(h.factoryResetStatus="idle")},runFactoryReset:()=>{try{h.factoryResetStatus="running",h.factoryResetErrorMessage="",localStorage.clear(),window.location.reload()}catch(e){h.factoryResetStatus="failed",h.factoryResetErrorMessage="Factory reset failed"}},setCurViewIndex:(e,t)=>{const n=i=>{if(h.readingMode!==1)return i;const c=Math.max(1,h.pagesPerScreen),a=i-h.curViewIndex;return Math.abs(a)!==c?i:kg({pageCount:h.pageCount,pagesPerScreen:h.pagesPerScreen,isChangeOddEven:h.isChangeOddEven},h.curViewIndex,a>0?1:-1)},r=(i,c)=>{if(i==h.curViewIndex)return;let a=h.curViewIndex;i<0?a=0:i>=h.pageCount?a=h.pageCount-1:a=i,a>h.curViewIndex?h.flipDirection=0:a<h.curViewIndex&&(h.flipDirection=1),h.curViewIndex=a,c&&(h.curViewIndexUpdater=c),oo()},o=()=>{switch(h.pageTurnAnimationMode){case"none":return 0;case"slide":return 220;default:return 280}},s=()=>{if(!Fn){vr=!1,jt=0;return}let i=Fn;Fn=null,r(i.val,i.updater);let c=o();if(c<=0){s();return}jt=window.setTimeout(s,c)};if(h.readingMode==1&&h.pageTurnAnimationMode!=="none"){if(vr){Fn={val:n(e),updater:t};return}vr=!0,r(n(e),t);let i=o();i<=0?s():jt=window.setTimeout(s,i);return}jt&&(window.clearTimeout(jt),jt=0),vr=!1,Fn=null,r(n(e),t)},setThumbInfos:e=>{h.thumbInfos=e},setImgPageInfos:e=>{h.imgPageInfos=e},setImgPageInfoSrc:(e,t)=>{e<h.imgPageInfos.length&&(h.imgPageInfos[e].src=t)},setImgPageInfoPreciseHeightOfWidth:(e,t)=>{e<h.imgPageInfos.length&&(h.imgPageInfos[e].preciseHeightOfWidth=t)},setViewportWidth:e=>{h.viewportWidth=e},setViewportHeight:e=>{h.viewportHeight=e},getAlbumService:()=>pu,startDownloadTask:(e,t,n)=>{const r=new Date().toISOString(),o={id:`terminate-${e}`,label:K.value.terminate,variant:"danger",onClick:()=>{const s=js[e];s&&s.abort(e)}};h.downloadTaskMap[e]={taskId:e,albumTitle:t,totalPages:n,processedPages:0,failedPages:0,status:"queued",actions:[o],createdAt:r,updatedAt:r}},registerDownloadRunner:(e,t)=>{js[e]=t},clearDownloadRunner:e=>{delete js[e]},applyDownloadStatusEvent:(e,t,n)=>{const r=new Date().toISOString();h.downloadTaskMap[e]||V.startDownloadTask(e,t,n.totalPages);const o=h.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=h.downloadNotifications.findIndex(a=>a.notificationId===s),c={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?h.downloadNotifications[i].createdAt:r,updatedAt:r};if(i>=0){h.downloadNotifications[i]=c;return}h.downloadNotifications.unshift(c)},dismissDownloadNotification:e=>{const t=h.downloadNotifications.findIndex(n=>n.notificationId===e);t>=0&&h.downloadNotifications.splice(t,1)},triggerDownloadNotificationAction:(e,t)=>{const n=h.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=>h.imgPageInfos[e],getImgPageHeightOfWidth:e=>{let t=V.getImgPageInfo(e);return t.preciseHeightOfWidth?t.preciseHeightOfWidth:t.heightOfWidth}};let _u=!1;function Cm(e){if(_u)return;h.pageCount=e.getPageCount(),pu=e;let t=e.getThumbInfos(!1);h.thumbInfos=JSON.parse(JSON.stringify(t));let n=e.getImgPageInfos();h.imgPageInfos=JSON.parse(JSON.stringify(n)),h.albumTitle=e.getTitle(),h.curViewIndex=e.getCurPageIndex(),h.pageTurnAnimationMode=gm(),ym(),Ln=Eg(),bu(),Jp(),eg(),oo(),Is(),ig(),_u=!0}$e(()=>it.value,()=>{Ee()});const Tm={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"};function Em(e,t){return R(),U("svg",Tm,[...t[0]||(t[0]=[D("path",{fill:"none",d:"M0 0h24v24H0z"},null,-1),D("path",{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"},null,-1)])])}const Am={render:Em},Im={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"};function Dm(e,t){return R(),U("svg",Im,[...t[0]||(t[0]=[D("path",{fill:"none",d:"M0 0h24v24H0z"},null,-1),D("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 ku={render:Dm},qm={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"};function Pm(e,t){return R(),U("svg",qm,[...t[0]||(t[0]=[D("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),D("path",{fill:"none",d:"M0 0h24v24H0z"},null,-1)])])}const Rm={render:Pm},Mm={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"};function Fm(e,t){return R(),U("svg",Mm,[...t[0]||(t[0]=[D("path",{d:"m15.41 16.09-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"},null,-1),D("path",{fill:"none",d:"M0-.5h24v24H0z"},null,-1)])])}const xu={render:Fm},Lm={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24"};function Nm(e,t){return R(),U("svg",Lm,[...t[0]||(t[0]=[D("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 Om={render:Nm},Bm={xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48"};function Vm(e,t){return R(),U("svg",Bm,[...t[0]||(t[0]=[D("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 zm={render:Vm},Hm={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"#1f1f1f",viewBox:"0 -960 960 960"};function $m(e,t){return R(),U("svg",Hm,[...t[0]||(t[0]=[D("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 Um={render:$m},jm={xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 -960 960 960"};function Wm(e,t){return R(),U("svg",jm,[...t[0]||(t[0]=[D("path",{d:"M200-200v-60h560v60zm9-152 271-408 271 408zm110-60h322L480-650z"},null,-1)])])}const Gm={render:Wm},Km=_e({__name:"CircleIconButton",props:{iconType:String,size:String,rotate:{type:Boolean,default:!0}},emits:["click"],setup(e){return(t,n)=>(R(),U("div",{class:pe(["circle-icon-button",{big:e.size=="big"}]),onClick:n[0]||(n[0]=r=>t.$emit("click"))},[e.iconType=="menu"?(R(),ue(C(Am),{key:0,class:pe({rotate:e.rotate})},null,8,["class"])):fe("",!0),e.iconType=="close"?(R(),ue(C(Rm),{key:1,class:pe({rotate:e.rotate})},null,8,["class"])):fe("",!0),e.iconType=="expand"?(R(),ue(C(ku),{key:2,class:pe({rotate:e.rotate})},null,8,["class"])):fe("",!0),e.iconType=="up_arrow"?(R(),ue(C(xu),{key:3,class:"rotate90"})):fe("",!0),e.iconType=="apps"?(R(),ue(C(Om),{key:4})):fe("",!0),e.iconType=="more_vert"?(R(),ue(C(zm),{key:5})):fe("",!0),e.iconType=="more"?(R(),ue(C(Um),{key:6})):fe("",!0),e.iconType=="eject"?(R(),ue(C(Gm),{key:7,class:pe({rotate180:!e.rotate})},null,8,["class"])):fe("",!0)],2))}}),Ae=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n},Js=Ae(Km,[["__scopeId","data-v-2a2205e2"]]),Qm={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"};function Zm(e,t){return R(),U("svg",Qm,[...t[0]||(t[0]=[D("path",{d:"m7 10 5 5 5-5z"},null,-1),D("path",{fill:"none",d:"M0 0h24v24H0z"},null,-1)])])}const Ym={render:Zm},Xs=Ae(_e({__name:"Popover",props:{active:Boolean,customStyle:Object,isCloseToRight:Boolean},emits:["close"],setup(e,{emit:t}){const n=e,r=t,o=te(null),s=te(0),i=te(0),c=X(()=>Ro(Bn({},n.customStyle||{}),{transform:`translate(${s.value}px, ${i.value}px)`}));function a(){const f=o.value;if(!f)return;const p=()=>{let k=f.parentElement;for(;k&&k!==document.body;){const P=window.getComputedStyle(k),x=P.overflowX!=="visible",A=P.overflowY!=="visible";if(P.overflow!=="visible"||x||A)return k.getBoundingClientRect();k=k.parentElement}return new DOMRect(0,0,window.innerWidth,window.innerHeight)},d=f.getBoundingClientRect(),v=p(),g=8;let T=0,w=0;const y=Math.min(window.innerWidth,v.right)-g,b=Math.max(0,v.left)+g,m=Math.min(window.innerHeight,v.bottom)-g,S=Math.max(0,v.top)+g;d.right>y&&(T=y-d.right),d.left+T<b&&(T+=b-(d.left+T)),d.bottom>m&&(w=m-d.bottom),d.top+w<S&&(w+=S-(d.top+w)),s.value=T,i.value=w}function u(f){o.value&&f.target instanceof Node&&o.value.contains(f.target)||r("close")}let l;return $e(()=>n.active,(f,p)=>Ie(null,null,function*(){f&&(s.value=0,i.value=0,yield Zt(),a(),l=setTimeout(()=>{document.addEventListener("click",u,!0)},100)),p&&(document.removeEventListener("click",u,!0),l&&clearTimeout(l))})),(f,p)=>(R(),ue(Vt,{name:"slide-fade"},{default:Ve(()=>[e.active?(R(),U("div",{key:0,ref_key:"popoverRef",ref:o,class:"popover",style:je(c.value),onClick:p[0]||(p[0]=Oe(()=>{},["stop"]))},[un(f.$slots,"default",{},void 0,!0)],4)):fe("",!0)]),_:3}))}}),[["__scopeId","data-v-e5801761"]]),Jm={class:"text clickable no-select"},Xm={class:"options no-select"},ev=["onClick"],wr=Ae(_e({__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=te(!1);function s(){o.value=!o.value}function i(){o.value=!1}function c(u){s(),r("change",n.list[u].val,u)}const a=X(()=>{if(n.formatCurValByList){for(let u of n.list)if(u.val==n.curVal)return n.useAbbrName&&u.abbrI18nKey?K.value[u.abbrI18nKey]:u.i18nKey?K.value[u.i18nKey]:n.useAbbrName&&u.abbrName?u.abbrName:u.name}return String(n.curVal)});return(u,l)=>(R(),U("div",{class:"drop-option",onClick:s},[D("div",Jm,J(a.value),1),ee(C(Ym),{class:"icon-drop-down clickable no-select"}),ee(Xs,{active:C(o),"custom-style":{"margin-left":"7px","margin-top":"4px"},onClose:i},{default:Ve(()=>[D("div",Xm,[(R(!0),U(ve,null,Be(e.list,(f,p)=>(R(),U("div",{class:"item",key:f.name||f.i18nKey,onClick:d=>c(p)},[D("span",null,J(f.i18nKey?C(K)[f.i18nKey]:f.name),1)],8,ev))),128))])]),_:1},8,["active"])]))}}),[["__scopeId","data-v-ed651547"]]),_r=Ae(_e({__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(),U("div",{class:pe(["flat-button",e.mode])},[D("a",{class:pe([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 nv(e,t){return R(),U("svg",tv,[...t[0]||(t[0]=[D("path",{d:"m8.59 16.34 4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"},null,-1),D("path",{fill:"none",d:"M0-.25h24v24H0z"},null,-1)])])}const rv={render:nv},ov=["onClick"],bo=Ae({__name:"Pagination",props:{curIndex:Number,pageSum:Number},emits:["change"],setup(e,{emit:t}){const n=e,r=t,o=te(3),s=X(()=>{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 c(l){r("change",l)}function a(){n.curIndex!==0&&r("change",n.curIndex-1)}function u(){n.curIndex!==n.pageSum-1&&r("change",n.curIndex+1)}return(l,f)=>(R(),U("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"]))},[D("div",{class:pe(["item",{disable:e.curIndex===0}]),onClick:f[0]||(f[0]=p=>a())},[ee(C(xu),{class:"icon"})],2),(R(!0),U(ve,null,Be(s.value,p=>(R(),U("span",{class:pe(["item",{active:p===e.curIndex}]),key:p,onClick:d=>c(p)},J(i(p)),11,ov))),128)),D("div",{class:pe(["item",{disable:e.curIndex===e.pageSum-1}]),onClick:f[1]||(f[1]=p=>u())},[ee(C(rv),{class:"icon"})],2)],32))}},[["__scopeId","data-v-c3d57ccd"]]),sv=Ae(_e({__name:"Slider",props:{min:{},max:{},step:{},init:{}},emits:["change"],setup(e,{emit:t}){const n=e,r=t,o=te(n.init),s=te(!1),i=te(0),c=te(0),a=te(0),u=te(null),l=X(()=>(o.value-n.min)/((n.max-n.min)/100));$e(()=>n.init,y=>{o.value=y});function f(){return u.value.offsetWidth/(n.max-n.min)}function p(y){const b=n.min+y.offsetX/f();v(b)}function d(y){for(let b=n.min;b<=n.max;b=b+n.step)if(b>y)return b===n.min?Number(b.toFixed(0)):Number((b-n.step).toFixed(0));return n.max}function v(y){y>n.max?o.value=d(n.max):o.value=d(y<n.min?n.min:y),r("change",o.value)}function g(y){s.value=!1,document.removeEventListener("mousemove",T),document.removeEventListener("mouseup",g),y.preventDefault()}function T(y){if(s.value){const b=c.value+(y.clientX-i.value)/a.value;v(b)}y.preventDefault()}function w(y){s.value=!0,p(y),i.value=y.clientX,c.value=o.value,a.value=f(),document.addEventListener("mousemove",T),document.addEventListener("mouseup",g),y.preventDefault()}return(y,b)=>(R(),U("div",{class:"slider",onMousedown:w,onClick:p,ref_key:"slider",ref:u},[b[0]||(b[0]=D("div",{class:"track"},null,-1)),D("div",{class:"fill",style:je({width:l.value+"%"})},null,4),D("div",{class:"thumb",style:je({left:l.value+"%",width:s.value?"15px":void 0,height:s.value?"15px":void 0})},null,4)],544))}}),[["__scopeId","data-v-5a202c7e"]]);function iv(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function cv(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 ei={};const av={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 ti,Su;function Cu(){return Su||(Su=1,ti=av),ti}var ni,Tu;function ri(){return Tu||(Tu=1,ni=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\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]/),ni}var Nn={},oi,Eu;function lv(){if(Eu)return oi;Eu=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,c,a,u,l,f="";for(typeof o!="string"&&(s=o,o=n.defaultChars),typeof s=="undefined"&&(s=!0),l=t(o),i=0,c=r.length;i<c;i++){if(a=r.charCodeAt(i),s&&a===37&&i+2<c&&/^[0-9a-f]{2}$/i.test(r.slice(i+1,i+3))){f+=r.slice(i,i+3),i+=2;continue}if(a<128){f+=l[a];continue}if(a>=55296&&a<=57343){if(a>=55296&&a<=56319&&i+1<c&&(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="-_.!~*'()",oi=n,oi}var si,Au;function uv(){if(Au)return si;Au=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 c,a,u,l,f,p,d,v="";for(c=0,a=i.length;c<a;c+=3){if(u=parseInt(i.slice(c+1,c+3),16),u<128){v+=s[u];continue}if((u&224)===192&&c+3<a&&(l=parseInt(i.slice(c+4,c+6),16),(l&192)===128)){d=u<<6&1984|l&63,d<128?v+="��":v+=String.fromCharCode(d),c+=3;continue}if((u&240)===224&&c+6<a&&(l=parseInt(i.slice(c+4,c+6),16),f=parseInt(i.slice(c+7,c+9),16),(l&192)===128&&(f&192)===128)){d=u<<12&61440|l<<6&4032|f&63,d<2048||d>=55296&&d<=57343?v+="���":v+=String.fromCharCode(d),c+=6;continue}if((u&248)===240&&c+9<a&&(l=parseInt(i.slice(c+4,c+6),16),f=parseInt(i.slice(c+7,c+9),16),p=parseInt(i.slice(c+10,c+12),16),(l&192)===128&&(f&192)===128&&(p&192)===128)){d=u<<18&1835008|l<<12&258048|f<<6&4032|p&63,d<65536||d>1114111?v+="����":(d-=65536,v+=String.fromCharCode(55296+(d>>10),56320+(d&1023))),c+=9;continue}v+="�"}return v})}return n.defaultChars=";/?:@&=+$,#",n.componentChars="",si=n,si}var ii,Iu;function fv(){return Iu||(Iu=1,ii=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}),ii}var ci,Du;function hv(){if(Du)return ci;Du=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),c=["%","/","?",";","#"].concat(i),a=["/","?","#"],u=255,l=/^[+a-z0-9A-Z_-]{0,63}$/,f=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,p={javascript:!0,"javascript:":!0},d={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function v(g,T){if(g&&g instanceof e)return g;var w=new e;return w.parse(g,T),w}return e.prototype.parse=function(g,T){var w,y,b,m,S,k=g;if(k=k.trim(),!T&&g.split("#").length===1){var P=r.exec(k);if(P)return this.pathname=P[1],P[2]&&(this.search=P[2]),this}var x=t.exec(k);if(x&&(x=x[0],b=x.toLowerCase(),this.protocol=x,k=k.substr(x.length)),(T||x||k.match(/^\/\/[^@\/]+@[^@\/]+/))&&(S=k.substr(0,2)==="//",S&&!(x&&p[x])&&(k=k.substr(2),this.slashes=!0)),!p[x]&&(S||x&&!d[x])){var A=-1;for(w=0;w<a.length;w++)m=k.indexOf(a[w]),m!==-1&&(A===-1||m<A)&&(A=m);var q,L;for(A===-1?L=k.lastIndexOf("@"):L=k.lastIndexOf("@",A),L!==-1&&(q=k.slice(0,L),k=k.slice(L+1),this.auth=q),A=-1,w=0;w<c.length;w++)m=k.indexOf(c[w]),m!==-1&&(A===-1||m<A)&&(A=m);A===-1&&(A=k.length),k[A-1]===":"&&A--;var M=k.slice(0,A);k=k.slice(A),this.parseHost(M),this.hostname=this.hostname||"";var ne=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!ne){var O=this.hostname.split(/\./);for(w=0,y=O.length;w<y;w++){var B=O[w];if(B&&!B.match(l)){for(var F="",I=0,W=B.length;I<W;I++)B.charCodeAt(I)>127?F+="x":F+=B[I];if(!F.match(l)){var he=O.slice(0,w),de=O.slice(w+1),ge=B.match(f);ge&&(he.push(ge[1]),de.unshift(ge[2])),de.length&&(k=de.join(".")+k),this.hostname=he.join(".");break}}}}this.hostname.length>u&&(this.hostname=""),ne&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var ye=k.indexOf("#");ye!==-1&&(this.hash=k.substr(ye),k=k.slice(0,ye));var Ce=k.indexOf("?");return Ce!==-1&&(this.search=k.substr(Ce),k=k.slice(0,Ce)),k&&(this.pathname=k),d[b]&&this.hostname&&!this.pathname&&(this.pathname=""),this},e.prototype.parseHost=function(g){var T=n.exec(g);T&&(T=T[0],T!==":"&&(this.port=T.substr(1)),g=g.substr(0,g.length-T.length)),g&&(this.hostname=g)},ci=v,ci}var qu;function Pu(){return qu||(qu=1,Nn.encode=lv(),Nn.decode=uv(),Nn.format=fv(),Nn.parse=hv()),Nn}var mn={},ai,Ru;function Mu(){return Ru||(Ru=1,ai=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/),ai}var li,Fu;function Lu(){return Fu||(Fu=1,li=/[\0-\x1F\x7F-\x9F]/),li}var ui,Nu;function dv(){return Nu||(Nu=1,ui=/[\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]/),ui}var fi,Ou;function Bu(){return Ou||(Ou=1,fi=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/),fi}var Vu;function pv(){return Vu||(Vu=1,mn.Any=Mu(),mn.Cc=Lu(),mn.Cf=dv(),mn.P=ri(),mn.Z=Bu()),mn}var zu;function ke(){return zu||(zu=1,(function(e){function t(O){return Object.prototype.toString.call(O)}function n(O){return t(O)==="[object String]"}var r=Object.prototype.hasOwnProperty;function o(O,B){return r.call(O,B)}function s(O){var B=Array.prototype.slice.call(arguments,1);return B.forEach(function(F){if(F){if(typeof F!="object")throw new TypeError(F+"must be object");Object.keys(F).forEach(function(I){O[I]=F[I]})}}),O}function i(O,B,F){return[].concat(O.slice(0,B),F,O.slice(B+1))}function c(O){return!(O>=55296&&O<=57343||O>=64976&&O<=65007||(O&65535)===65535||(O&65535)===65534||O>=0&&O<=8||O===11||O>=14&&O<=31||O>=127&&O<=159||O>1114111)}function a(O){if(O>65535){O-=65536;var B=55296+(O>>10),F=56320+(O&1023);return String.fromCharCode(B,F)}return String.fromCharCode(O)}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,d=Cu();function v(O,B){var F=0;return o(d,B)?d[B]:B.charCodeAt(0)===35&&p.test(B)&&(F=B[1].toLowerCase()==="x"?parseInt(B.slice(2),16):parseInt(B.slice(1),10),c(F))?a(F):O}function g(O){return O.indexOf("\\")<0?O:O.replace(u,"$1")}function T(O){return O.indexOf("\\")<0&&O.indexOf("&")<0?O:O.replace(f,function(B,F,I){return F||v(B,I)})}var w=/[&<>"]/,y=/[&<>"]/g,b={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};function m(O){return b[O]}function S(O){return w.test(O)?O.replace(y,m):O}var k=/[.?*+^$[\]\\(){}|-]/g;function P(O){return O.replace(k,"\\$&")}function x(O){switch(O){case 9:case 32:return!0}return!1}function A(O){if(O>=8192&&O<=8202)return!0;switch(O){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 q=ri();function L(O){return q.test(O)}function M(O){switch(O){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 ne(O){return O.trim().replace(/\s+/g," ").toUpperCase()}e.lib={},e.lib.mdurl=Pu(),e.lib.ucmicro=pv(),e.assign=s,e.isString=n,e.has=o,e.unescapeMd=g,e.unescapeAll=T,e.isValidEntityCode=c,e.fromCodePoint=a,e.escapeHtml=S,e.arrayReplaceAt=i,e.isSpace=x,e.isWhiteSpace=A,e.isMdAsciiPunct=M,e.isPunctChar=L,e.escapeRE=P,e.normalizeReference=ne})(ei)),ei}var kr={},hi,Hu;function gv(){return Hu||(Hu=1,hi=function(t,n,r){var o,s,i,c,a=-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(c=t.pos,t.md.inline.skipToken(t),i===91){if(c===t.pos-1)o++;else if(r)return t.pos=l,-1}}return s&&(a=t.pos),t.pos=l,a}),hi}var di,$u;function mv(){if($u)return di;$u=1;var e=ke().isSpace,t=ke().unescapeAll;return di=function(r,o,s){var i,c,a=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(c=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&&c++,i===41){if(c===0)break;c--}o++}return u===o||c!==0||(l.str=t(r.slice(u,o)),l.lines=a,l.pos=o,l.ok=!0),l},di}var pi,Uu;function vv(){if(Uu)return pi;Uu=1;var e=ke().unescapeAll;return pi=function(n,r,o){var s,i,c=0,a=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=c,u.str=e(n.slice(a+1,r)),u.ok=!0,u;s===10?c++:s===92&&r+1<o&&(r++,n.charCodeAt(r)===10&&c++),r++}return u},pi}var ju;function bv(){return ju||(ju=1,kr.parseLinkLabel=gv(),kr.parseLinkDestination=mv(),kr.parseLinkTitle=vv()),kr}var gi,Wu;function yv(){if(Wu)return gi;Wu=1;var e=ke().assign,t=ke().unescapeAll,n=ke().escapeHtml,r={};r.code_inline=function(s,i,c,a,u){var l=s[i];return"<code"+u.renderAttrs(l)+">"+n(s[i].content)+"</code>"},r.code_block=function(s,i,c,a,u){var l=s[i];return"<pre"+u.renderAttrs(l)+"><code>"+n(s[i].content)+`</code></pre>
`},r.fence=function(s,i,c,a,u){var l=s[i],f=l.info?t(l.info).trim():"",p="",d,v,g,T;return f&&(p=f.split(/\s+/g)[0]),c.highlight?d=c.highlight(l.content,p)||n(l.content):d=n(l.content),d.indexOf("<pre")===0?d+`
`:f?(v=l.attrIndex("class"),g=l.attrs?l.attrs.slice():[],v<0?g.push(["class",c.langPrefix+p]):g[v][1]+=" "+c.langPrefix+p,T={attrs:g},"<pre><code"+u.renderAttrs(T)+">"+d+`</code></pre>
`):"<pre><code"+u.renderAttrs(l)+">"+d+`</code></pre>
`},r.image=function(s,i,c,a,u){var l=s[i];return l.attrs[l.attrIndex("alt")][1]=u.renderInlineAsText(l.children,c,a),u.renderToken(s,i,c)},r.hardbreak=function(s,i,c){return c.xhtmlOut?`<br />
`:`<br>
`},r.softbreak=function(s,i,c){return c.breaks?c.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 c,a,u;if(!i.attrs)return"";for(u="",c=0,a=i.attrs.length;c<a;c++)u+=" "+n(i.attrs[c][0])+'="'+n(i.attrs[c][1])+'"';return u},o.prototype.renderToken=function(i,c,a){var u,l="",f=!1,p=i[c];return p.hidden?"":(p.block&&p.nesting!==-1&&c&&i[c-1].hidden&&(l+=`
`),l+=(p.nesting===-1?"</":"<")+p.tag,l+=this.renderAttrs(p),p.nesting===0&&a.xhtmlOut&&(l+=" /"),p.block&&(f=!0,p.nesting===1&&c+1<i.length&&(u=i[c+1],(u.type==="inline"||u.hidden||u.nesting===-1&&u.tag===p.tag)&&(f=!1))),l+=f?`>
`:">",l)},o.prototype.renderInline=function(s,i,c){for(var a,u="",l=this.rules,f=0,p=s.length;f<p;f++)a=s[f].type,typeof l[a]!="undefined"?u+=l[a](s,f,i,c,this):u+=this.renderToken(s,f,i);return u},o.prototype.renderInlineAsText=function(s,i,c){for(var a="",u=0,l=s.length;u<l;u++)s[u].type==="text"?a+=s[u].content:s[u].type==="image"&&(a+=this.renderInlineAsText(s[u].children,i,c));return a},o.prototype.render=function(s,i,c){var a,u,l,f="",p=this.rules;for(a=0,u=s.length;a<u;a++)l=s[a].type,l==="inline"?f+=this.renderInline(s[a].children,i,c):typeof p[l]!="undefined"?f+=p[s[a].type](s,a,i,c,this):f+=this.renderToken(s,a,i,c);return f},gi=o,gi}var mi,Gu;function vi(){if(Gu)return mi;Gu=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]||[]},mi=e,mi}var bi,Ku;function wv(){if(Ku)return bi;Ku=1;var e=/\r[\n\u0085]?|[\u2424\u2028\u0085]/g,t=/\u0000/g;return bi=function(r){var o;o=r.src.replace(e,`
`),o=o.replace(t,"�"),r.src=o},bi}var yi,Qu;function _v(){return Qu||(Qu=1,yi=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)}),yi}var wi,Zu;function kv(){return Zu||(Zu=1,wi=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)}),wi}var _i,Yu;function xv(){if(Yu)return _i;Yu=1;var e=ke().arrayReplaceAt;function t(r){return/^<a[>\s]/i.test(r)}function n(r){return/^<\/a\s*>/i.test(r)}return _i=function(o){var s,i,c,a,u,l,f,p,d,v,g,T,w,y,b,m,S=o.tokens,k;if(o.md.options.linkify){for(i=0,c=S.length;i<c;i++)if(!(S[i].type!=="inline"||!o.md.linkify.pretest(S[i].content)))for(a=S[i].children,w=0,s=a.length-1;s>=0;s--){if(l=a[s],l.type==="link_close"){for(s--;a[s].level!==l.level&&a[s].type!=="link_open";)s--;continue}if(l.type==="html_inline"&&(t(l.content)&&w>0&&w--,n(l.content)&&w++),!(w>0)&&l.type==="text"&&o.md.linkify.test(l.content)){for(d=l.content,k=o.md.linkify.match(d),f=[],T=l.level,g=0,p=0;p<k.length;p++)y=k[p].url,b=o.md.normalizeLink(y),o.md.validateLink(b)&&(m=k[p].text,k[p].schema?k[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:\/\//,""),v=k[p].index,v>g&&(u=new o.Token("text","",0),u.content=d.slice(g,v),u.level=T,f.push(u)),u=new o.Token("link_open","a",1),u.attrs=[["href",b]],u.level=T++,u.markup="linkify",u.info="auto",f.push(u),u=new o.Token("text","",0),u.content=m,u.level=T,f.push(u),u=new o.Token("link_close","a",-1),u.level=--T,u.markup="linkify",u.info="auto",f.push(u),g=k[p].lastIndex);g<d.length&&(u=new o.Token("text","",0),u.content=d.slice(g),u.level=T,f.push(u)),S[i].children=a=e(a,s,f)}}}},_i}var ki,Ju;function Sv(){if(Ju)return ki;Ju=1;var e=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,t=/\((c|tm|r|p)\)/i,n=/\((c|tm|r|p)\)/ig,r={c:"©",r:"®",p:"§",tm:"™"};function o(c,a){return r[a.toLowerCase()]}function s(c){var a,u,l=0;for(a=c.length-1;a>=0;a--)u=c[a],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(c){var a,u,l=0;for(a=c.length-1;a>=0;a--)u=c[a],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 ki=function(a){var u;if(a.md.options.typographer)for(u=a.tokens.length-1;u>=0;u--)a.tokens[u].type==="inline"&&(t.test(a.tokens[u].content)&&s(a.tokens[u].children),e.test(a.tokens[u].content)&&i(a.tokens[u].children))},ki}var xi,Xu;function Cv(){if(Xu)return xi;Xu=1;var e=ke().isWhiteSpace,t=ke().isPunctChar,n=ke().isMdAsciiPunct,r=/['"]/,o=/['"]/g,s="’";function i(a,u,l){return a.substr(0,u)+l+a.substr(u+1)}function c(a,u){var l,f,p,d,v,g,T,w,y,b,m,S,k,P,x,A,q,L,M,ne,O;for(M=[],l=0;l<a.length;l++){for(f=a[l],T=a[l].level,q=M.length-1;q>=0&&!(M[q].level<=T);q--);if(M.length=q+1,f.type==="text"){p=f.content,v=0,g=p.length;e:for(;v<g&&(o.lastIndex=v,d=o.exec(p),!!d);){if(x=A=!0,v=d.index+1,L=d[0]==="'",y=32,d.index-1>=0)y=p.charCodeAt(d.index-1);else for(q=l-1;q>=0&&!(a[q].type==="softbreak"||a[q].type==="hardbreak");q--)if(a[q].type==="text"){y=a[q].content.charCodeAt(a[q].content.length-1);break}if(b=32,v<g)b=p.charCodeAt(v);else for(q=l+1;q<a.length&&!(a[q].type==="softbreak"||a[q].type==="hardbreak");q++)if(a[q].type==="text"){b=a[q].content.charCodeAt(0);break}if(m=n(y)||t(String.fromCharCode(y)),S=n(b)||t(String.fromCharCode(b)),k=e(y),P=e(b),P?x=!1:S&&(k||m||(x=!1)),k?A=!1:m&&(P||S||(A=!1)),b===34&&d[0]==='"'&&y>=48&&y<=57&&(A=x=!1),x&&A&&(x=!1,A=S),!x&&!A){L&&(f.content=i(f.content,d.index,s));continue}if(A){for(q=M.length-1;q>=0&&(w=M[q],!(M[q].level<T));q--)if(w.single===L&&M[q].level===T){w=M[q],L?(ne=u.md.options.quotes[2],O=u.md.options.quotes[3]):(ne=u.md.options.quotes[0],O=u.md.options.quotes[1]),f.content=i(f.content,d.index,O),a[w.token].content=i(a[w.token].content,w.pos,ne),v+=O.length-1,w.token===l&&(v+=ne.length-1),p=f.content,g=p.length,M.length=q;continue e}}x?M.push({token:l,pos:d.index,single:L,level:T}):A&&L&&(f.content=i(f.content,d.index,s))}}}}return xi=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)||c(u.tokens[l].children,u)},xi}var Si,ef;function Ci(){if(ef)return Si;ef=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},Si=e,Si}var Ti,tf;function Tv(){if(tf)return Ti;tf=1;var e=Ci();function t(n,r,o){this.src=n,this.env=o,this.tokens=[],this.inlineMode=!1,this.md=r}return t.prototype.Token=e,Ti=t,Ti}var Ei,nf;function Ev(){if(nf)return Ei;nf=1;var e=vi(),t=[["normalize",wv()],["block",_v()],["inline",kv()],["linkify",xv()],["replacements",Sv()],["smartquotes",Cv()]];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=Tv(),Ei=n,Ei}var Ai,rf;function Av(){if(rf)return Ai;rf=1;var e=ke().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,c,a=0,u=0,l=!1,f=0;for(c=r.charCodeAt(s);s<i;)c===96?l?(l=!1,f=s):a%2===0&&(l=!0,f=s):c===124&&a%2===0&&!l&&(o.push(r.substring(u,s)),u=s+1),c===92?a++:a=0,s++,s===i&&l&&(l=!1,s=f+1),c=r.charCodeAt(s);return o.push(r.substring(u)),o}return Ai=function(o,s,i,c){var a,u,l,f,p,d,v,g,T,w,y,b;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])||(a=o.src.charCodeAt(l++),a!==124&&a!==45&&a!==58))return!1;for(;l<o.eMarks[p];){if(a=o.src.charCodeAt(l),a!==124&&a!==45&&a!==58&&!e(a))return!1;l++}for(u=t(o,s+1),d=u.split("|"),T=[],f=0;f<d.length;f++){if(w=d[f].trim(),!w){if(f===0||f===d.length-1)continue;return!1}if(!/^:?-+:?$/.test(w))return!1;w.charCodeAt(w.length-1)===58?T.push(w.charCodeAt(0)===58?"center":"right"):w.charCodeAt(0)===58?T.push("left"):T.push("")}if(u=t(o,s).trim(),u.indexOf("|")===-1||o.sCount[s]-o.blkIndent>=4||(d=n(u.replace(/^\||\|$/g,"")),v=d.length,v>T.length))return!1;if(c)return!0;for(g=o.push("table_open","table",1),g.map=y=[s,0],g=o.push("thead_open","thead",1),g.map=[s,s+1],g=o.push("tr_open","tr",1),g.map=[s,s+1],f=0;f<d.length;f++)g=o.push("th_open","th",1),g.map=[s,s+1],T[f]&&(g.attrs=[["style","text-align:"+T[f]]]),g=o.push("inline","",0),g.content=d[f].trim(),g.map=[s,s+1],g.children=[],g=o.push("th_close","th",-1);for(g=o.push("tr_close","tr",-1),g=o.push("thead_close","thead",-1),g=o.push("tbody_open","tbody",1),g.map=b=[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(d=n(u.replace(/^\||\|$/g,"")),g=o.push("tr_open","tr",1),f=0;f<v;f++)g=o.push("td_open","td",1),T[f]&&(g.attrs=[["style","text-align:"+T[f]]]),g=o.push("inline","",0),g.content=d[f]?d[f].trim():"",g.children=[],g=o.push("td_close","td",-1);g=o.push("tr_close","tr",-1)}return g=o.push("tbody_close","tbody",-1),g=o.push("table_close","table",-1),y[1]=b[1]=p,o.line=p,!0},Ai}var Ii,of;function Iv(){return of||(of=1,Ii=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}),Ii}var Di,sf;function Dv(){return sf||(sf=1,Di=function(t,n,r,o){var s,i,c,a,u,l,f,p=!1,d=t.bMarks[n]+t.tShift[n],v=t.eMarks[n];if(t.sCount[n]-t.blkIndent>=4||d+3>v||(s=t.src.charCodeAt(d),s!==126&&s!==96)||(u=d,d=t.skipChars(d,s),i=d-u,i<3)||(f=t.src.slice(u,d),c=t.src.slice(d,v),c.indexOf(String.fromCharCode(s))>=0))return!1;if(o)return!0;for(a=n;a++,!(a>=r||(d=u=t.bMarks[a]+t.tShift[a],v=t.eMarks[a],d<v&&t.sCount[a]<t.blkIndent));)if(t.src.charCodeAt(d)===s&&!(t.sCount[a]-t.blkIndent>=4)&&(d=t.skipChars(d,s),!(d-u<i)&&(d=t.skipSpaces(d),!(d<v)))){p=!0;break}return i=t.sCount[n],t.line=a+(p?1:0),l=t.push("fence","code",0),l.info=c,l.content=t.getLines(n+1,a,i,!0),l.markup=f,l.map=[n,t.line],!0}),Di}var qi,cf;function qv(){if(cf)return qi;cf=1;var e=ke().isSpace;return qi=function(n,r,o,s){var i,c,a,u,l,f,p,d,v,g,T,w,y,b,m,S,k,P,x,A,q=n.lineMax,L=n.bMarks[r]+n.tShift[r],M=n.eMarks[r];if(n.sCount[r]-n.blkIndent>=4||n.src.charCodeAt(L++)!==62)return!1;if(s)return!0;for(u=v=n.sCount[r]+L-(n.bMarks[r]+n.tShift[r]),n.src.charCodeAt(L)===32?(L++,u++,v++,i=!1,S=!0):n.src.charCodeAt(L)===9?(S=!0,(n.bsCount[r]+v)%4===3?(L++,u++,v++,i=!1):i=!0):S=!1,g=[n.bMarks[r]],n.bMarks[r]=L;L<M&&(c=n.src.charCodeAt(L),e(c));){c===9?v+=4-(v+n.bsCount[r]+(i?1:0))%4:v++;L++}for(T=[n.bsCount[r]],n.bsCount[r]=n.sCount[r]+1+(S?1:0),f=L>=M,b=[n.sCount[r]],n.sCount[r]=v-u,m=[n.tShift[r]],n.tShift[r]=L-n.bMarks[r],P=n.md.block.ruler.getRules("blockquote"),y=n.parentType,n.parentType="blockquote",A=!1,d=r+1;d<o&&(n.sCount[d]<n.blkIndent&&(A=!0),L=n.bMarks[d]+n.tShift[d],M=n.eMarks[d],!(L>=M));d++){if(n.src.charCodeAt(L++)===62&&!A){for(u=v=n.sCount[d]+L-(n.bMarks[d]+n.tShift[d]),n.src.charCodeAt(L)===32?(L++,u++,v++,i=!1,S=!0):n.src.charCodeAt(L)===9?(S=!0,(n.bsCount[d]+v)%4===3?(L++,u++,v++,i=!1):i=!0):S=!1,g.push(n.bMarks[d]),n.bMarks[d]=L;L<M&&(c=n.src.charCodeAt(L),e(c));){c===9?v+=4-(v+n.bsCount[d]+(i?1:0))%4:v++;L++}f=L>=M,T.push(n.bsCount[d]),n.bsCount[d]=n.sCount[d]+1+(S?1:0),b.push(n.sCount[d]),n.sCount[d]=v-u,m.push(n.tShift[d]),n.tShift[d]=L-n.bMarks[d];continue}if(f)break;for(k=!1,a=0,l=P.length;a<l;a++)if(P[a](n,d,o,!0)){k=!0;break}if(k){n.lineMax=d,n.blkIndent!==0&&(g.push(n.bMarks[d]),T.push(n.bsCount[d]),m.push(n.tShift[d]),b.push(n.sCount[d]),n.sCount[d]-=n.blkIndent);break}g.push(n.bMarks[d]),T.push(n.bsCount[d]),m.push(n.tShift[d]),b.push(n.sCount[d]),n.sCount[d]=-1}for(w=n.blkIndent,n.blkIndent=0,x=n.push("blockquote_open","blockquote",1),x.markup=">",x.map=p=[r,0],n.md.block.tokenize(n,r,d),x=n.push("blockquote_close","blockquote",-1),x.markup=">",n.lineMax=q,n.parentType=y,p[1]=n.line,a=0;a<m.length;a++)n.bMarks[a+r]=g[a],n.tShift[a+r]=m[a],n.sCount[a+r]=b[a],n.bsCount[a+r]=T[a];return n.blkIndent=w,!0},qi}var Pi,af;function Pv(){if(af)return Pi;af=1;var e=ke().isSpace;return Pi=function(n,r,o,s){var i,c,a,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(c=1;l<f;){if(a=n.src.charCodeAt(l++),a!==i&&!e(a))return!1;a===i&&c++}return c<3?!1:(s||(n.line=r+1,u=n.push("hr","hr",0),u.map=[r,n.line],u.markup=Array(c+1).join(String.fromCharCode(i))),!0)},Pi}var Ri,lf;function Rv(){if(lf)return Ri;lf=1;var e=ke().isSpace;function t(o,s){var i,c,a,u;return c=o.bMarks[s]+o.tShift[s],a=o.eMarks[s],i=o.src.charCodeAt(c++),i!==42&&i!==45&&i!==43||c<a&&(u=o.src.charCodeAt(c),!e(u))?-1:c}function n(o,s){var i,c=o.bMarks[s]+o.tShift[s],a=c,u=o.eMarks[s];if(a+1>=u||(i=o.src.charCodeAt(a++),i<48||i>57))return-1;for(;;){if(a>=u)return-1;if(i=o.src.charCodeAt(a++),i>=48&&i<=57){if(a-c>=10)return-1;continue}if(i===41||i===46)break;return-1}return a<u&&(i=o.src.charCodeAt(a),!e(i))?-1:a}function r(o,s){var i,c,a=o.level+2;for(i=s+2,c=o.tokens.length-2;i<c;i++)o.tokens[i].level===a&&o.tokens[i].type==="paragraph_open"&&(o.tokens[i+2].hidden=!0,o.tokens[i].hidden=!0,i+=2)}return Ri=function(s,i,c,a){var u,l,f,p,d,v,g,T,w,y,b,m,S,k,P,x,A,q,L,M,ne,O,B,F,I,W,he,de,ge=!1,ye=!0;if(s.sCount[i]-s.blkIndent>=4)return!1;if(a&&s.parentType==="paragraph"&&s.tShift[i]>=s.blkIndent&&(ge=!0),(B=n(s,i))>=0){if(g=!0,I=s.bMarks[i]+s.tShift[i],S=Number(s.src.substr(I,B-I-1)),ge&&S!==1)return!1}else if((B=t(s,i))>=0)g=!1;else return!1;if(ge&&s.skipSpaces(B)>=s.eMarks[i])return!1;if(m=s.src.charCodeAt(B-1),a)return!0;for(b=s.tokens.length,g?(de=s.push("ordered_list_open","ol",1),S!==1&&(de.attrs=[["start",S]])):de=s.push("bullet_list_open","ul",1),de.map=y=[i,0],de.markup=String.fromCharCode(m),P=i,F=!1,he=s.md.block.ruler.getRules("list"),L=s.parentType,s.parentType="list";P<c;){for(O=B,k=s.eMarks[P],v=x=s.sCount[P]+B-(s.bMarks[i]+s.tShift[i]);O<k;){if(u=s.src.charCodeAt(O),u===9)x+=4-(x+s.bsCount[P])%4;else if(u===32)x++;else break;O++}if(l=O,l>=k?d=1:d=x-v,d>4&&(d=1),p=v+d,de=s.push("list_item_open","li",1),de.markup=String.fromCharCode(m),de.map=T=[i,0],A=s.blkIndent,ne=s.tight,M=s.tShift[i],q=s.sCount[i],s.blkIndent=p,s.tight=!0,s.tShift[i]=l-s.bMarks[i],s.sCount[i]=x,l>=k&&s.isEmpty(i+1)?s.line=Math.min(s.line+2,c):s.md.block.tokenize(s,i,c,!0),(!s.tight||F)&&(ye=!1),F=s.line-i>1&&s.isEmpty(s.line-1),s.blkIndent=A,s.tShift[i]=M,s.sCount[i]=q,s.tight=ne,de=s.push("list_item_close","li",-1),de.markup=String.fromCharCode(m),P=i=s.line,T[1]=P,l=s.bMarks[i],P>=c||s.sCount[P]<s.blkIndent)break;for(W=!1,f=0,w=he.length;f<w;f++)if(he[f](s,P,c,!0)){W=!0;break}if(W)break;if(g){if(B=n(s,P),B<0)break}else if(B=t(s,P),B<0)break;if(m!==s.src.charCodeAt(B-1))break}return g?de=s.push("ordered_list_close","ol",-1):de=s.push("bullet_list_close","ul",-1),de.markup=String.fromCharCode(m),y[1]=P,s.line=P,s.parentType=L,ye&&r(s,b),!0},Ri}var Mi,uf;function Mv(){if(uf)return Mi;uf=1;var e=ke().normalizeReference,t=ke().isSpace;return Mi=function(r,o,s,i){var c,a,u,l,f,p,d,v,g,T,w,y,b,m,S,k,P=0,x=r.bMarks[o]+r.tShift[o],A=r.eMarks[o],q=o+1;if(r.sCount[o]-r.blkIndent>=4||r.src.charCodeAt(x)!==91)return!1;for(;++x<A;)if(r.src.charCodeAt(x)===93&&r.src.charCodeAt(x-1)!==92){if(x+1===A||r.src.charCodeAt(x+1)!==58)return!1;break}for(l=r.lineMax,S=r.md.block.ruler.getRules("reference"),T=r.parentType,r.parentType="reference";q<l&&!r.isEmpty(q);q++)if(!(r.sCount[q]-r.blkIndent>3)&&!(r.sCount[q]<0)){for(m=!1,p=0,d=S.length;p<d;p++)if(S[p](r,q,l,!0)){m=!0;break}if(m)break}for(b=r.getLines(o,q,r.blkIndent,!1).trim(),A=b.length,x=1;x<A;x++){if(c=b.charCodeAt(x),c===91)return!1;if(c===93){g=x;break}else c===10?P++:c===92&&(x++,x<A&&b.charCodeAt(x)===10&&P++)}if(g<0||b.charCodeAt(g+1)!==58)return!1;for(x=g+2;x<A;x++)if(c=b.charCodeAt(x),c===10)P++;else if(!t(c))break;if(w=r.md.helpers.parseLinkDestination(b,x,A),!w.ok||(f=r.md.normalizeLink(w.str),!r.md.validateLink(f)))return!1;for(x=w.pos,P+=w.lines,a=x,u=P,y=x;x<A;x++)if(c=b.charCodeAt(x),c===10)P++;else if(!t(c))break;for(w=r.md.helpers.parseLinkTitle(b,x,A),x<A&&y!==x&&w.ok?(k=w.str,x=w.pos,P+=w.lines):(k="",x=a,P=u);x<A&&(c=b.charCodeAt(x),!!t(c));)x++;if(x<A&&b.charCodeAt(x)!==10&&k)for(k="",x=a,P=u;x<A&&(c=b.charCodeAt(x),!!t(c));)x++;return x<A&&b.charCodeAt(x)!==10||(v=e(b.slice(1,g)),!v)?!1:(i||(typeof r.env.references=="undefined"&&(r.env.references={}),typeof r.env.references[v]=="undefined"&&(r.env.references[v]={title:k,href:f}),r.parentType=T,r.line=o+P+1),!0)},Mi}var Fi,ff;function Fv(){if(ff)return Fi;ff=1;var e=ke().isSpace;return Fi=function(n,r,o,s){var i,c,a,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(c=1,i=n.src.charCodeAt(++l);i===35&&l<f&&c<=6;)c++,i=n.src.charCodeAt(++l);return c>6||l<f&&!e(i)?!1:(s||(f=n.skipSpacesBack(f,l),a=n.skipCharsBack(f,35,l),a>l&&e(n.src.charCodeAt(a-1))&&(f=a),n.line=r+1,u=n.push("heading_open","h"+String(c),1),u.markup="########".slice(0,c),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(c),-1),u.markup="########".slice(0,c)),!0)},Fi}var Li,hf;function Lv(){return hf||(hf=1,Li=function(t,n,r){var o,s,i,c,a,u,l,f,p,d=n+1,v,g=t.md.block.ruler.getRules("paragraph");if(t.sCount[n]-t.blkIndent>=4)return!1;for(v=t.parentType,t.parentType="paragraph";d<r&&!t.isEmpty(d);d++)if(!(t.sCount[d]-t.blkIndent>3)){if(t.sCount[d]>=t.blkIndent&&(u=t.bMarks[d]+t.tShift[d],l=t.eMarks[d],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[d]<0)){for(s=!1,i=0,c=g.length;i<c;i++)if(g[i](t,d,r,!0)){s=!0;break}if(s)break}}return f?(o=t.getLines(n,d,t.blkIndent,!1).trim(),t.line=d+1,a=t.push("heading_open","h"+String(f),1),a.markup=String.fromCharCode(p),a.map=[n,t.line],a=t.push("inline","",0),a.content=o,a.map=[n,t.line-1],a.children=[],a=t.push("heading_close","h"+String(f),-1),a.markup=String.fromCharCode(p),t.parentType=v,!0):!1}),Li}var Ni,df;function Nv(){return df||(df=1,Ni=["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"]),Ni}var yo={},pf;function gf(){if(pf)return yo;pf=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*\\/?>",c="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",a="<!---->|<!--(?:-?[^>-])(?:-?[^-])*-->",u="<[?].*?[?]>",l="<![A-Z]+\\s+[^>]*>",f="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",p=new RegExp("^(?:"+i+"|"+c+"|"+a+"|"+u+"|"+l+"|"+f+")"),d=new RegExp("^(?:"+i+"|"+c+")");return yo.HTML_TAG_RE=p,yo.HTML_OPEN_CLOSE_TAG_RE=d,yo}var Oi,mf;function Ov(){if(mf)return Oi;mf=1;var e=Nv(),t=gf().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 Oi=function(o,s,i,c){var a,u,l,f,p=o.bMarks[s]+o.tShift[s],d=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,d),a=0;a<n.length&&!n[a][0].test(f);a++);if(a===n.length)return!1;if(c)return n[a][2];if(u=s+1,!n[a][1].test(f)){for(;u<i&&!(o.sCount[u]<o.blkIndent);u++)if(p=o.bMarks[u]+o.tShift[u],d=o.eMarks[u],f=o.src.slice(p,d),n[a][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},Oi}var Bi,vf;function Bv(){return vf||(vf=1,Bi=function(t,n){var r,o,s,i,c,a,u=n+1,l=t.md.block.ruler.getRules("paragraph"),f=t.lineMax;for(a=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,c=t.push("paragraph_open","p",1),c.map=[n,t.line],c=t.push("inline","",0),c.content=r,c.map=[n,t.line],c.children=[],c=t.push("paragraph_close","p",-1),t.parentType=a,!0}),Bi}var Vi,bf;function Vv(){if(bf)return Vi;bf=1;var e=Ci(),t=ke().isSpace;function n(r,o,s,i){var c,a,u,l,f,p,d,v;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="",a=this.src,v=!1,u=l=p=d=0,f=a.length;l<f;l++){if(c=a.charCodeAt(l),!v)if(t(c)){p++,c===9?d+=4-d%4:d++;continue}else v=!0;(c===10||l===f-1)&&(c!==10&&l++,this.bMarks.push(u),this.eMarks.push(l),this.tShift.push(p),this.sCount.push(d),this.bsCount.push(0),v=!1,p=0,d=0,u=l+1)}this.bMarks.push(a.length),this.eMarks.push(a.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,c){var a,u,l,f,p,d,v,g=o;if(o>=s)return"";for(d=new Array(s-o),a=0;g<s;g++,a++){for(u=0,v=f=this.bMarks[g],g+1<s||c?p=this.eMarks[g]+1:p=this.eMarks[g];f<p&&u<i;){if(l=this.src.charCodeAt(f),t(l))l===9?u+=4-(u+this.bsCount[g])%4:u++;else if(f-v<this.tShift[g])u++;else break;f++}u>i?d[a]=new Array(u-i+1).join(" ")+this.src.slice(f,p):d[a]=this.src.slice(f,p)}return d.join("")},n.prototype.Token=e,Vi=n,Vi}var zi,yf;function zv(){if(yf)return zi;yf=1;var e=vi(),t=[["table",Av(),["paragraph","reference"]],["code",Iv()],["fence",Dv(),["paragraph","reference","blockquote","list"]],["blockquote",qv(),["paragraph","reference","blockquote","list"]],["hr",Pv(),["paragraph","reference","blockquote","list"]],["list",Rv(),["paragraph","reference","blockquote"]],["reference",Mv()],["heading",Fv(),["paragraph","reference","blockquote"]],["lheading",Lv()],["html_block",Ov(),["paragraph","reference","blockquote"]],["paragraph",Bv()]];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,c,a=this.ruler.getRules(""),u=a.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(c=0;c<u&&(i=a[c](r,l,s,!1),!i);c++);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 c;r&&(c=new this.State(r,o,s,i),this.tokenize(c,c.line,c.lineMax))},n.prototype.State=Vv(),zi=n,zi}var Hi,wf;function Hv(){if(wf)return Hi;wf=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 Hi=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)},Hi}var $i,_f;function $v(){if(_f)return $i;_f=1;var e=ke().isSpace;return $i=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},$i}var Ui,kf;function Uv(){if(kf)return Ui;kf=1;for(var e=ke().isSpace,t=[],n=0;n<256;n++)t.push(0);return"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(r){t[r.charCodeAt(0)]=1}),Ui=function(o,s){var i,c=o.pos,a=o.posMax;if(o.src.charCodeAt(c)!==92)return!1;if(c++,c<a){if(i=o.src.charCodeAt(c),i<256&&t[i]!==0)return s||(o.pending+=o.src[c]),o.pos+=2,!0;if(i===10){for(s||o.push("hardbreak","br",0),c++;c<a&&(i=o.src.charCodeAt(c),!!e(i));)c++;return o.pos=c,!0}}return s||(o.pending+="\\"),o.pos++,!0},Ui}var ji,xf;function jv(){return xf||(xf=1,ji=function(t,n){var r,o,s,i,c,a,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=c=u;(i=t.src.indexOf("`",c))!==-1;){for(c=i+1;c<o&&t.src.charCodeAt(c)===96;)c++;if(c-i===s.length)return n||(a=t.push("code_inline","code",0),a.markup=s,a.content=t.src.slice(u,i).replace(/[ \n]+/g," ").trim()),t.pos=c,!0}return n||(t.pending+=s),t.pos+=s.length,!0}),ji}var wo={},Sf;function Cf(){return Sf||(Sf=1,wo.tokenize=function(t,n){var r,o,s,i,c,a=t.pos,u=t.src.charCodeAt(a);if(n||u!==126||(o=t.scanDelims(t.pos,!0),i=o.length,c=String.fromCharCode(u),i<2))return!1;for(i%2&&(s=t.push("text","",0),s.content=c,i--),r=0;r<i;r+=2)s=t.push("text","",0),s.content=c+c,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},wo.postProcess=function(t){var n,r,o,s,i,c=[],a=t.delimiters,u=t.delimiters.length;for(n=0;n<u;n++)o=a[n],o.marker===126&&o.end!==-1&&(s=a[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==="~"&&c.push(s.token-1));for(;c.length;){for(n=c.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)}}),wo}var _o={},Tf;function Ef(){return Tf||(Tf=1,_o.tokenize=function(t,n){var r,o,s,i=t.pos,c=t.src.charCodeAt(i);if(n||c!==95&&c!==42)return!1;for(o=t.scanDelims(t.pos,c===42),r=0;r<o.length;r++)s=t.push("text","",0),s.content=String.fromCharCode(c),t.delimiters.push({marker:c,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},_o.postProcess=function(t){var n,r,o,s,i,c,a=t.delimiters,u=t.delimiters.length;for(n=u-1;n>=0;n--)r=a[n],!(r.marker!==95&&r.marker!==42)&&r.end!==-1&&(o=a[r.end],c=n>0&&a[n-1].end===r.end+1&&a[n-1].token===r.token-1&&a[r.end+1].token===o.token+1&&a[n-1].marker===r.marker,i=String.fromCharCode(r.marker),s=t.tokens[r.token],s.type=c?"strong_open":"em_open",s.tag=c?"strong":"em",s.nesting=1,s.markup=c?i+i:i,s.content="",s=t.tokens[o.token],s.type=c?"strong_close":"em_close",s.tag=c?"strong":"em",s.nesting=-1,s.markup=c?i+i:i,s.content="",c&&(t.tokens[a[n-1].token].content="",t.tokens[a[r.end+1].token].content="",n--))}),_o}var Wi,Af;function Wv(){if(Af)return Wi;Af=1;var e=ke().normalizeReference,t=ke().isSpace;return Wi=function(r,o){var s,i,c,a,u,l,f,p,d,v,g="",T=r.pos,w=r.posMax,y=r.pos,b=!0;if(r.src.charCodeAt(r.pos)!==91||(u=r.pos+1,a=r.md.helpers.parseLinkLabel(r,r.pos,!0),a<0))return!1;if(l=a+1,l<w&&r.src.charCodeAt(l)===40){for(b=!1,l++;l<w&&(i=r.src.charCodeAt(l),!(!t(i)&&i!==10));l++);if(l>=w)return!1;for(y=l,f=r.md.helpers.parseLinkDestination(r.src,l,r.posMax),f.ok&&(g=r.md.normalizeLink(f.str),r.md.validateLink(g)?l=f.pos:g=""),y=l;l<w&&(i=r.src.charCodeAt(l),!(!t(i)&&i!==10));l++);if(f=r.md.helpers.parseLinkTitle(r.src,l,r.posMax),l<w&&y!==l&&f.ok)for(d=f.str,l=f.pos;l<w&&(i=r.src.charCodeAt(l),!(!t(i)&&i!==10));l++);else d="";(l>=w||r.src.charCodeAt(l)!==41)&&(b=!0),l++}if(b){if(typeof r.env.references=="undefined")return!1;if(l<w&&r.src.charCodeAt(l)===91?(y=l+1,l=r.md.helpers.parseLinkLabel(r,l),l>=0?c=r.src.slice(y,l++):l=a+1):l=a+1,c||(c=r.src.slice(u,a)),p=r.env.references[e(c)],!p)return r.pos=T,!1;g=p.href,d=p.title}return o||(r.pos=u,r.posMax=a,v=r.push("link_open","a",1),v.attrs=s=[["href",g]],d&&s.push(["title",d]),r.md.inline.tokenize(r),v=r.push("link_close","a",-1)),r.pos=l,r.posMax=w,!0},Wi}var Gi,If;function Gv(){if(If)return Gi;If=1;var e=ke().normalizeReference,t=ke().isSpace;return Gi=function(r,o){var s,i,c,a,u,l,f,p,d,v,g,T,w,y="",b=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(w=f,d=r.md.helpers.parseLinkDestination(r.src,f,r.posMax),d.ok&&(y=r.md.normalizeLink(d.str),r.md.validateLink(y)?f=d.pos:y=""),w=f;f<m&&(i=r.src.charCodeAt(f),!(!t(i)&&i!==10));f++);if(d=r.md.helpers.parseLinkTitle(r.src,f,r.posMax),f<m&&w!==f&&d.ok)for(v=d.str,f=d.pos;f<m&&(i=r.src.charCodeAt(f),!(!t(i)&&i!==10));f++);else v="";if(f>=m||r.src.charCodeAt(f)!==41)return r.pos=b,!1;f++}else{if(typeof r.env.references=="undefined")return!1;if(f<m&&r.src.charCodeAt(f)===91?(w=f+1,f=r.md.helpers.parseLinkLabel(r,f),f>=0?a=r.src.slice(w,f++):f=u+1):f=u+1,a||(a=r.src.slice(l,u)),p=r.env.references[e(a)],!p)return r.pos=b,!1;y=p.href,v=p.title}return o||(c=r.src.slice(l,u),r.md.inline.parse(c,r.md,r.env,T=[]),g=r.push("image","img",0),g.attrs=s=[["src",y],["alt",""]],g.children=T,g.content=c,v&&s.push(["title",v])),r.pos=f,r.posMax=m,!0},Gi}var Ki,Df;function Kv(){if(Df)return Ki;Df=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 Ki=function(r,o){var s,i,c,a,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),a=i[0].slice(1,-1),u=r.md.normalizeLink(a),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(a),l=r.push("link_close","a",-1),l.markup="autolink",l.info="auto"),r.pos+=i[0].length,!0):!1):e.test(s)?(c=s.match(e),a=c[0].slice(1,-1),u=r.md.normalizeLink("mailto:"+a),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(a),l=r.push("link_close","a",-1),l.markup="autolink",l.info="auto"),r.pos+=c[0].length,!0):!1):!1},Ki}var Qi,qf;function Qv(){if(qf)return Qi;qf=1;var e=gf().HTML_TAG_RE;function t(n){var r=n|32;return r>=97&&r<=122}return Qi=function(r,o){var s,i,c,a,u=r.pos;return!r.md.options.html||(c=r.posMax,r.src.charCodeAt(u)!==60||u+2>=c)||(s=r.src.charCodeAt(u+1),s!==33&&s!==63&&s!==47&&!t(s))||(i=r.src.slice(u).match(e),!i)?!1:(o||(a=r.push("html_inline","",0),a.content=r.src.slice(u,u+i[0].length)),r.pos+=i[0].length,!0)},Qi}var Zi,Pf;function Zv(){if(Pf)return Zi;Pf=1;var e=Cu(),t=ke().has,n=ke().isValidEntityCode,r=ke().fromCodePoint,o=/^&#((?:x[a-f0-9]{1,8}|[0-9]{1,8}));/i,s=/^&([a-z][a-z0-9]{1,31});/i;return Zi=function(c,a){var u,l,f,p=c.pos,d=c.posMax;if(c.src.charCodeAt(p)!==38)return!1;if(p+1<d){if(u=c.src.charCodeAt(p+1),u===35){if(f=c.src.slice(p).match(o),f)return a||(l=f[1][0].toLowerCase()==="x"?parseInt(f[1].slice(1),16):parseInt(f[1],10),c.pending+=n(l)?r(l):r(65533)),c.pos+=f[0].length,!0}else if(f=c.src.slice(p).match(s),f&&t(e,f[1]))return a||(c.pending+=e[f[1]]),c.pos+=f[0].length,!0}return a||(c.pending+="&"),c.pos++,!0},Zi}var Yi,Rf;function Yv(){return Rf||(Rf=1,Yi=function(t){var n,r,o,s,i=t.delimiters,c=t.delimiters.length;for(n=0;n<c;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 a=(s.close||o.open)&&typeof s.length!="undefined"&&typeof o.length!="undefined"&&(s.length+o.length)%3===0;if(!a){o.jump=n-r,o.open=!1,s.end=n,s.jump=0;break}}r-=s.jump+1}}),Yi}var Ji,Mf;function Jv(){return Mf||(Mf=1,Ji=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)}),Ji}var Xi,Ff;function Xv(){if(Ff)return Xi;Ff=1;var e=Ci(),t=ke().isWhiteSpace,n=ke().isPunctChar,r=ke().isMdAsciiPunct;function o(s,i,c,a){this.src=s,this.env=c,this.md=i,this.tokens=a,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,c){this.pending&&this.pushPending();var a=new e(s,i,c);return c<0&&this.level--,a.level=this.level,c>0&&this.level++,this.pendingLevel=this.level,this.tokens.push(a),a},o.prototype.scanDelims=function(s,i){var c=s,a,u,l,f,p,d,v,g,T,w=!0,y=!0,b=this.posMax,m=this.src.charCodeAt(s);for(a=s>0?this.src.charCodeAt(s-1):32;c<b&&this.src.charCodeAt(c)===m;)c++;return l=c-s,u=c<b?this.src.charCodeAt(c):32,v=r(a)||n(String.fromCharCode(a)),T=r(u)||n(String.fromCharCode(u)),d=t(a),g=t(u),g?w=!1:T&&(d||v||(w=!1)),d?y=!1:v&&(g||T||(y=!1)),i?(f=w,p=y):(f=w&&(!y||v),p=y&&(!w||T)),{can_open:f,can_close:p,length:l}},o.prototype.Token=e,Xi=o,Xi}var ec,Lf;function eb(){if(Lf)return ec;Lf=1;var e=vi(),t=[["text",Hv()],["newline",$v()],["escape",Uv()],["backticks",jv()],["strikethrough",Cf().tokenize],["emphasis",Ef().tokenize],["link",Wv()],["image",Gv()],["autolink",Kv()],["html_inline",Qv()],["entity",Zv()]],n=[["balance_pairs",Yv()],["strikethrough",Cf().postProcess],["emphasis",Ef().postProcess],["text_collapse",Jv()]];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,c=o.pos,a=this.ruler.getRules(""),u=a.length,l=o.md.options.maxNesting,f=o.cache;if(typeof f[c]!="undefined"){o.pos=f[c];return}if(o.level<l)for(i=0;i<u&&(o.level++,s=a[i](o,!0),o.level--,!s);i++);else o.pos=o.posMax;s||o.pos++,f[c]=o.pos},r.prototype.tokenize=function(o){for(var s,i,c=this.ruler.getRules(""),a=c.length,u=o.posMax,l=o.md.options.maxNesting;o.pos<u;){if(o.level<l)for(i=0;i<a&&(s=c[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,c){var a,u,l,f=new this.State(o,s,i,c);for(this.tokenize(f),u=this.ruler2.getRules(""),l=u.length,a=0;a<l;a++)u[a](f)},r.prototype.State=Xv(),ec=r,ec}var tc,Nf;function tb(){return Nf||(Nf=1,tc=function(e){var t={};t.src_Any=Mu().source,t.src_Cc=Lu().source,t.src_Z=Bu().source,t.src_P=ri().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}),tc}var nc,Of;function nb(){if(Of)return nc;Of=1;function e(b){var m=Array.prototype.slice.call(arguments,1);return m.forEach(function(S){S&&Object.keys(S).forEach(function(k){b[k]=S[k]})}),b}function t(b){return Object.prototype.toString.call(b)}function n(b){return t(b)==="[object String]"}function r(b){return t(b)==="[object Object]"}function o(b){return t(b)==="[object RegExp]"}function s(b){return t(b)==="[object Function]"}function i(b){return b.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var c={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function a(b){return Object.keys(b||{}).reduce(function(m,S){return m||c.hasOwnProperty(S)},!1)}var u={"http:":{validate:function(b,m,S){var k=b.slice(m);return S.re.http||(S.re.http=new RegExp("^\\/\\/"+S.re.src_auth+S.re.src_host_port_strict+S.re.src_path,"i")),S.re.http.test(k)?k.match(S.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(b,m,S){var k=b.slice(m);return S.re.no_http||(S.re.no_http=new RegExp("^"+S.re.src_auth+"(?:localhost|(?:(?:"+S.re.src_domain+")\\.)+"+S.re.src_domain_root+")"+S.re.src_port+S.re.src_host_terminator+S.re.src_path,"i")),S.re.no_http.test(k)?m>=3&&b[m-3]===":"||m>=3&&b[m-3]==="/"?0:k.match(S.re.no_http)[0].length:0}},"mailto:":{validate:function(b,m,S){var k=b.slice(m);return S.re.mailto||(S.re.mailto=new RegExp("^"+S.re.src_email_name+"@"+S.re.src_host_strict,"i")),S.re.mailto.test(k)?k.match(S.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(b){b.__index__=-1,b.__text_cache__=""}function d(b){return function(m,S){var k=m.slice(S);return b.test(k)?k.match(b)[0].length:0}}function v(){return function(b,m){m.normalize(b)}}function g(b){var m=b.re=tb()(b.__opts__),S=b.__tlds__.slice();b.onCompile(),b.__tlds_replaced__||S.push(l),S.push(m.src_xn),m.src_tlds=S.join("|");function k(q){return q.replace("%TLDS%",m.src_tlds)}m.email_fuzzy=RegExp(k(m.tpl_email_fuzzy),"i"),m.link_fuzzy=RegExp(k(m.tpl_link_fuzzy),"i"),m.link_no_ip_fuzzy=RegExp(k(m.tpl_link_no_ip_fuzzy),"i"),m.host_fuzzy_test=RegExp(k(m.tpl_host_fuzzy_test),"i");var P=[];b.__compiled__={};function x(q,L){throw new Error('(LinkifyIt) Invalid schema "'+q+'": '+L)}Object.keys(b.__schemas__).forEach(function(q){var L=b.__schemas__[q];if(L!==null){var M={validate:null,link:null};if(b.__compiled__[q]=M,r(L)){o(L.validate)?M.validate=d(L.validate):s(L.validate)?M.validate=L.validate:x(q,L),s(L.normalize)?M.normalize=L.normalize:L.normalize?x(q,L):M.normalize=v();return}if(n(L)){P.push(q);return}x(q,L)}}),P.forEach(function(q){b.__compiled__[b.__schemas__[q]]&&(b.__compiled__[q].validate=b.__compiled__[b.__schemas__[q]].validate,b.__compiled__[q].normalize=b.__compiled__[b.__schemas__[q]].normalize)}),b.__compiled__[""]={validate:null,normalize:v()};var A=Object.keys(b.__compiled__).filter(function(q){return q.length>0&&b.__compiled__[q]}).map(i).join("|");b.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+m.src_ZPCc+"))("+A+")","i"),b.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+m.src_ZPCc+"))("+A+")","ig"),b.re.pretest=RegExp("("+b.re.schema_test.source+")|("+b.re.host_fuzzy_test.source+")|@","i"),p(b)}function T(b,m){var S=b.__index__,k=b.__last_index__,P=b.__text_cache__.slice(S,k);this.schema=b.__schema__.toLowerCase(),this.index=S+m,this.lastIndex=k+m,this.raw=P,this.text=P,this.url=P}function w(b,m){var S=new T(b,m);return b.__compiled__[S.schema].normalize(S,b),S}function y(b,m){if(!(this instanceof y))return new y(b,m);m||a(b)&&(m=b,b={}),this.__opts__=e({},c,m),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=e({},u,b),this.__compiled__={},this.__tlds__=f,this.__tlds_replaced__=!1,this.re={},g(this)}return y.prototype.add=function(m,S){return this.__schemas__[m]=S,g(this),this},y.prototype.set=function(m){return this.__opts__=e(this.__opts__,m),this},y.prototype.test=function(m){if(this.__text_cache__=m,this.__index__=-1,!m.length)return!1;var S,k,P,x,A,q,L,M,ne;if(this.re.schema_test.test(m)){for(L=this.re.schema_search,L.lastIndex=0;(S=L.exec(m))!==null;)if(x=this.testSchemaAt(m,S[2],L.lastIndex),x){this.__schema__=S[2],this.__index__=S.index+S[1].length,this.__last_index__=S.index+S[0].length+x;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(M=m.search(this.re.host_fuzzy_test),M>=0&&(this.__index__<0||M<this.__index__)&&(k=m.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(A=k.index+k[1].length,(this.__index__<0||A<this.__index__)&&(this.__schema__="",this.__index__=A,this.__last_index__=k.index+k[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(ne=m.indexOf("@"),ne>=0&&(P=m.match(this.re.email_fuzzy))!==null&&(A=P.index+P[1].length,q=P.index+P[0].length,(this.__index__<0||A<this.__index__||A===this.__index__&&q>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=A,this.__last_index__=q))),this.__index__>=0},y.prototype.pretest=function(m){return this.re.pretest.test(m)},y.prototype.testSchemaAt=function(m,S,k){return this.__compiled__[S.toLowerCase()]?this.__compiled__[S.toLowerCase()].validate(m,k,this):0},y.prototype.match=function(m){var S=0,k=[];this.__index__>=0&&this.__text_cache__===m&&(k.push(w(this,S)),S=this.__last_index__);for(var P=S?m.slice(S):m;this.test(P);)k.push(w(this,S)),P=P.slice(this.__last_index__),S+=this.__last_index__;return k.length?k:null},y.prototype.tlds=function(m,S){return m=Array.isArray(m)?m:[m],S?(this.__tlds__=this.__tlds__.concat(m).sort().filter(function(k,P,x){return k!==x[P-1]}).reverse(),g(this),this):(this.__tlds__=m.slice(),this.__tlds_replaced__=!0,g(this),this)},y.prototype.normalize=function(m){m.schema||(m.url="http://"+m.url),m.schema==="mailto:"&&!/^mailto:/i.test(m.url)&&(m.url="mailto:"+m.url)},y.prototype.onCompile=function(){},nc=y,nc}const rb=cv(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var rc,Bf;function ob(){return Bf||(Bf=1,rc={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}}),rc}var oc,Vf;function sb(){return Vf||(Vf=1,oc={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"]}}}),oc}var sc,zf;function ib(){return zf||(zf=1,sc={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"]}}}),sc}var ic,Hf;function cb(){if(Hf)return ic;Hf=1;var e=ke(),t=bv(),n=yv(),r=Ev(),o=zv(),s=eb(),i=nb(),c=Pu(),a=rb,u={default:ob(),zero:sb(),commonmark:ib()},l=/^(vbscript|javascript|file|data):/,f=/^data:image\/(gif|png|jpeg|webp);/;function p(w){var y=w.trim().toLowerCase();return l.test(y)?!!f.test(y):!0}var d=["http:","https:","mailto:"];function v(w){var y=c.parse(w,!0);if(y.hostname&&(!y.protocol||d.indexOf(y.protocol)>=0))try{y.hostname=a.toASCII(y.hostname)}catch(b){}return c.encode(c.format(y))}function g(w){var y=c.parse(w,!0);if(y.hostname&&(!y.protocol||d.indexOf(y.protocol)>=0))try{y.hostname=a.toUnicode(y.hostname)}catch(b){}return c.decode(c.format(y))}function T(w,y){if(!(this instanceof T))return new T(w,y);y||e.isString(w)||(y=w||{},w="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=v,this.normalizeLinkText=g,this.utils=e,this.helpers=e.assign({},t),this.options={},this.configure(w),y&&this.set(y)}return T.prototype.set=function(w){return e.assign(this.options,w),this},T.prototype.configure=function(w){var y=this,b;if(e.isString(w)&&(b=w,w=u[b],!w))throw new Error('Wrong `markdown-it` preset "'+b+'", check name');if(!w)throw new Error("Wrong `markdown-it` preset, can't be empty");return w.options&&y.set(w.options),w.components&&Object.keys(w.components).forEach(function(m){w.components[m].rules&&y[m].ruler.enableOnly(w.components[m].rules),w.components[m].rules2&&y[m].ruler2.enableOnly(w.components[m].rules2)}),this},T.prototype.enable=function(w,y){var b=[];Array.isArray(w)||(w=[w]),["core","block","inline"].forEach(function(S){b=b.concat(this[S].ruler.enable(w,!0))},this),b=b.concat(this.inline.ruler2.enable(w,!0));var m=w.filter(function(S){return b.indexOf(S)<0});if(m.length&&!y)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+m);return this},T.prototype.disable=function(w,y){var b=[];Array.isArray(w)||(w=[w]),["core","block","inline"].forEach(function(S){b=b.concat(this[S].ruler.disable(w,!0))},this),b=b.concat(this.inline.ruler2.disable(w,!0));var m=w.filter(function(S){return b.indexOf(S)<0});if(m.length&&!y)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+m);return this},T.prototype.use=function(w){var y=[this].concat(Array.prototype.slice.call(arguments,1));return w.apply(w,y),this},T.prototype.parse=function(w,y){if(typeof w!="string")throw new Error("Input data should be a String");var b=new this.core.State(w,this,y);return this.core.process(b),b.tokens},T.prototype.render=function(w,y){return y=y||{},this.renderer.render(this.parse(w,y),this.options,y)},T.prototype.parseInline=function(w,y){var b=new this.core.State(w,this,y);return b.inlineMode=!0,this.core.process(b),b.tokens},T.prototype.renderInline=function(w,y){return y=y||{},this.renderer.render(this.parseInline(w,y),this.options,y)},ic=T,ic}var cc,$f;function ab(){return $f||($f=1,cc=cb()),cc}var lb=ab();const ub=iv(lb);class fb{constructor(){this.md=new ub;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 c=n[r].attrIndex("target");return c<0?n[r].attrPush(["target","_blank"]):n[r].attrs[c][1]="_blank",t(n,r,o,s,i)}}render(t){return this.md.render(t)}}let hb=new fb;const db=["innerHTML"],pb={class:"operation-bar"},ko=Ae(_e({__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=te(null),s=X(()=>n.operations!=null&&n.operations.length>0?n.operations:[{name:"CONFIRM",btnType:"plain",isCloseModal:!0}]);function i(){n.isCompulsive||r("close")}function c(u){u.onClick&&u.onClick(),u.isCloseModal&&r("close")}function a(u){if(u.key==="Enter"&&s.value.length===1){let l=document.querySelectorAll(".simple-modal");(l.length<=1||l[l.length-1]===o.value)&&c(s.value[0])}return u.stopPropagation(),!0}return $e(()=>n.active,u=>{u?setTimeout(()=>{document.addEventListener("keydown",a)},200):document.removeEventListener("keydown",a)}),(u,l)=>(R(),ue(ts,{to:"#ehunter-app"},[ee(Vt,{name:"slow-opacity-fade",appear:""},{default:Ve(()=>[e.active?(R(),U("div",{key:0,ref_key:"modal",ref:o,class:"simple-modal"},[D("div",{class:"simple-dialog",onClick:l[0]||(l[0]=Oe(()=>{},["stop"])),onWheel:l[1]||(l[1]=Oe(()=>{},["stop"]))},[D("div",{class:"background",onClick:i}),D("article",null,[D("h4",null,J(e.title),1),e.mdText!=null?(R(),U("p",{key:0,class:"markdown",innerHTML:C(hb).render(e.mdText)},null,8,db)):fe("",!0),D("div",pb,[(R(!0),U(ve,null,Be(s.value,f=>(R(),ue(_r,{class:"operation",key:f.name,label:f.name,type:f.btnType,mode:"inline",onClick:p=>c(f)},null,8,["label","type","onClick"]))),128))])])],32)],512)):fe("",!0)]),_:1})]))}}),[["__scopeId","data-v-ea2849fc"]]),gb=Ae(_e({__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=te(n.init),s=te(null),i=te(!1),c=X(()=>K.value.numberInputTip.replace("{{min}}",n.min).replace("{{max}}",n.max));$e(()=>n.init,d=>{o.value=d});function a(){l(),r("close")}function u(d){r("change",d)}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(d){d.key==="Enter"&&l()}function p(d){(d.key==="ArrowLeft"||d.key==="ArrowRight")&&d.stopPropagation()}return(d,v)=>(R(),ue(Xs,{class:"PopSlider",active:e.active,"custom-style":{maxWidth:"min(92vw, 360px)"},onClose:v[2]||(v[2]=g=>r("close"))},{default:Ve(()=>[D("div",{class:"content",onKeydown:p},[Tn(D("input",{ref_key:"inputElem",ref:s,class:"value",type:"number",onKeydown:f,"onUpdate:modelValue":v[0]||(v[0]=g=>o.value=g)},null,544),[[Lp,o.value]]),ee(sv,{class:"slider",min:e.min,max:e.max,step:e.step,init:e.init,onChange:u},null,8,["min","max","step","init"]),ee(_r,{class:"button",label:C(K).confirm,type:"positive",onClick:a},null,8,["label"])],32),ee(ko,{title:C(K).tips,active:i.value,"md-text":c.value,onClose:v[1]||(v[1]=()=>i.value=!1)},null,8,["title","active","md-text"])]),_:1},8,["active"]))}}),[["__scopeId","data-v-ffc66e8a"]]),mb={class:"num-drop-option"},xo=Ae(_e({__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=X(()=>{let l=n.quickOptions.map(f=>({name:r(f),val:f}));return l.push({i18nKey:"custom",val:-1}),l}),s=t,i=te(!1);function c(l,f){f==n.quickOptions.length?i.value=!0:s("change",n.quickOptions[f])}function a(l){s("change",l)}function u(){i.value=!1}return(l,f)=>(R(),U("div",mb,[ee(wr,{list:o.value,"has-custom-option":!0,"cur-val":r(n.curVal),onChange:c,"format-fn":n.formatFn},null,8,["list","cur-val","format-fn"]),ee(gb,{active:i.value,init:n.curVal,"is-float":n.isFloat,max:n.max,min:n.min,step:1,onChange:a,onClose:u},null,8,["active","init","is-float","max","min"])]))}}),[["__scopeId","data-v-c7457182"]]),So=Ae(_e({__name:"SimpleSwitch",props:{active:{type:Boolean}},emits:["change"],setup(e,{emit:t}){const n=t;return(r,o)=>(R(),U("div",{class:"switch",onClick:o[0]||(o[0]=s=>n("change",!e.active))},[D("div",{class:pe({track:!0,active:e.active})},null,2),D("div",{class:pe({thumb:!0,active:e.active})},null,2)]))}}),[["__scopeId","data-v-a86efd32"]]),vb={class:"options no-select"},bb=Ae(_e({__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,c)=>(R(),ue(Xs,{active:e.active,"custom-style":{"margin-left":"7px","margin-top":"4px"},onClose:c[0]||(c[0]=a=>i.$emit("close"))},{default:Ve(()=>[D("div",vb,[D("div",{class:"item",onClick:r},[D("span",null,J(C(K).moreSettings),1)]),D("div",{class:"item",onClick:o},[D("span",null,J(C(K).quickPreview),1)]),D("div",{class:"item",onClick:s},[D("span",null,J(C(K).download),1)])])]),_:1},8,["active"]))}}),[["__scopeId","data-v-f51bd597"]]);function ht(e){switch(e){case"readingMode":return h.readingMode;case"widthScale":return h.widthScale;case"loadNum":return h.loadNum;case"downloadChunkSize":return h.downloadChunkSize;case"volumeSize":return h.volumeSize;case"showThumbView":return h.showThumbView;case"scrollPageMargin":return h.scrollPageMargin;case"pagesPerScreen":return h.pagesPerScreen;case"bookDirection":return h.bookDirection;case"pageTurnAnimationMode":return h.pageTurnAnimationMode;case"showBookPagination":return h.showBookPagination;case"isChangeOddEven":return h.isChangeOddEven;case"isReverseFlip":return h.isReverseFlip;case"isAutoFlip":return h.isAutoFlip;case"autoFlipFrequency":return h.autoFlipFrequency;case"showBookThumbView":return h.showBookThumbView;case"IsReverseBookWheeFliplDirection":return h.IsReverseBookWheeFliplDirection;case"wheelSensitivity":return h.wheelSensitivity;case"lang":return K.value.lang;case"autoRetryByOtherSource":return h.autoRetryByOtherSource;default:return null}}function Uf(e,t){switch(e){case"readingMode":V.setReadingMode(t);break;case"widthScale":V.setWidthScale(t);break;case"loadNum":V.setLoadNum(t);break;case"downloadChunkSize":V.setDownloadChunkSize(t);break;case"volumeSize":V.setVolumeSize(t);break;case"showThumbView":h.showThumbView!==t&&V.toggleShowThumbView();break;case"scrollPageMargin":V.setScrollPageMargin(t);break;case"pagesPerScreen":V.setPagesPerScreen(t);break;case"bookDirection":V.setBookDirection(t);break;case"pageTurnAnimationMode":V.setPageTurnAnimationMode(t);break;case"showBookPagination":h.showBookPagination!==t&&V.toggleShowBookPagination();break;case"isChangeOddEven":h.isChangeOddEven!==t&&V.toggleIsChangeOddEven();break;case"isReverseFlip":h.isReverseFlip!==t&&V.toggleIsReverseFlip();break;case"isAutoFlip":h.isAutoFlip!==t&&V.toggleIsAutoFlip();break;case"autoFlipFrequency":V.setAutoFlipFrequency(t);break;case"showBookThumbView":h.showBookThumbView!==t&&V.toggleShowBookThumbView();break;case"IsReverseBookWheeFliplDirection":h.IsReverseBookWheeFliplDirection!==t&&V.toggleIsReverseBookWheeFliplDirection();break;case"wheelSensitivity":V.setWheelSensitivity(t);break;case"lang":V.setLang(t);break;case"autoRetryByOtherSource":V.setAutoRetryByOtherSource(t);break}}function Co(e){const t=De[e];if(!t||!t.dropKey)return[];const n=Ys[t.dropKey];return Array.isArray(n)?n:(n==null?void 0:n.list)||[]}function To(e){const t=De[e];return!t||!t.numKey?[]:Ys[t.numKey].list}function Eo(e){const t=De[e];return!t||!t.numKey?"":Ys[t.numKey].suffix||""}function ac(e){return cm[e]}const yb={class:"ehunter-panel-header"},wb=["aria-label"],_b={class:"ehunter-panel-body"},kb={class:"ehunter-left-nav"},xb=["onClick"],Sb={class:"ehunter-label-block"},Cb={class:"ehunter-label"},Tb={key:0,class:"ehunter-tip"},Eb={class:"ehunter-label-block"},Ab={class:"ehunter-label"},Ib={key:0,class:"ehunter-tip"},Db={class:"ehunter-label-block"},qb={class:"ehunter-label"},Pb={key:0,class:"ehunter-tip"},Rb={class:"ehunter-quick-lanes"},Mb={class:"ehunter-lane-intro"},Fb={class:"ehunter-lane-header"},Lb={class:"ehunter-lane-desc"},Nb=["data-id","onDragstart","onDrop"],Ob={class:"ehunter-label"},Bb={key:0,class:"ehunter-mode-tag"},Vb={class:"ehunter-lane-header"},zb={class:"ehunter-lane-desc"},Hb=["data-id","onDragstart","onDrop"],$b={class:"ehunter-label"},Ub={key:0,class:"ehunter-mode-tag"},jb={class:"ehunter-row"},Wb={class:"ehunter-label"},Gb={class:"ehunter-value"},Kb={class:"ehunter-row"},Qb={class:"ehunter-label"},Zb={class:"ehunter-row"},Yb={class:"ehunter-label"},Jb=Ae(_e({__name:"MoreSettingsDialog",setup(e){const t=te(null),n=te(null),r=te(null),o=te(null),s=te(null),i=te(null),c=te(""),a=X(()=>dr.version),u=X(()=>h.quickSettingOrder.map(B=>po.find(F=>F.id===B)).filter(B=>!!B)),l=X(()=>u.value.filter(B=>!B.fixed)),f=X(()=>l.value.filter(B=>V.isQuickSettingSelected(B.id))),p=X(()=>l.value.filter(B=>!V.isQuickSettingSelected(B.id))),d=ac("general"),v=ac("scroll"),g=ac("book"),T=X(()=>[{name:K.value.cancel,btnType:"plain",isCloseModal:!0,onClick:()=>V.hideFactoryResetDialog()},{name:K.value.confirm,btnType:"positive",isCloseModal:!0,onClick:()=>V.runFactoryReset()}]);function w(B){return B==="scroll-only"?K.value.scrollMode:B==="book-only"?K.value.bookMode:""}function y(B,F){return B==="lang"?K.value.languageSetting:K.value[F]}function b(B){const F=De[B];return F?K.value[F.labelI18nKey]:B}function m(B){const F=De[B];if(!F||!F.tipI18nKey)return"";const I=K.value[F.tipI18nKey]||"",W=K.value[F.labelI18nKey]||"";return!I||I===W?"":I}function S(B,F){Uf(B,F)}function k(B){switch(B){case"general":return n.value;case"scroll":return r.value;case"book":return o.value;case"quick":return s.value;case"other":return i.value;default:return null}}function P(B){V.setActiveSettingsCategory(B);const F=k(B);if(!F||!t.value)return;const I=t.value.getBoundingClientRect(),W=F.getBoundingClientRect(),he=t.value.scrollTop+(W.top-I.top);t.value.scrollTo({top:Math.max(0,he),behavior:"smooth"})}function x(){if(!t.value)return;const B=t.value.scrollTop,F=[{id:"general",elem:n.value},{id:"scroll",elem:r.value},{id:"book",elem:o.value},{id:"quick",elem:s.value},{id:"other",elem:i.value}];let I="general";for(const W of F)W.elem&&B+20>=W.elem.offsetTop&&(I=W.id);I!==h.activeSettingsCategory&&V.setActiveSettingsCategory(I)}function A(B,F){l.value.find(I=>I.id===F)&&(c.value=F,B.dataTransfer&&(B.dataTransfer.effectAllowed="move",B.dataTransfer.setData("text/plain",F)))}function q(){c.value=""}function L(B,F){if(B===F)return;const I=l.value.map(de=>de.id),W=I.includes(F)?F:"";if(!W)return;const he=I.indexOf(W);he<0||V.moveQuickSettingItem(B,he)}function M(B,F){V.isQuickSettingSelected(B)!==F&&V.toggleQuickSettingSelection(B)}function ne(B,F,I){c.value&&(M(c.value,I),L(c.value,F),c.value="")}function O(B,F){if(!c.value)return;M(c.value,F);const I=F?f.value:p.value;if(I.length>0){const W=I[I.length-1];W&&L(c.value,W.id)}c.value=""}return yt(()=>{x()}),(B,F)=>(R(),U(ve,null,[(R(),ue(ts,{to:".ehunter-app"},[ee(Vt,{name:"slow-opacity-fade",appear:""},{default:Ve(()=>[C(h).showMoreSettingsDialog?(R(),U("div",{key:0,class:"ehunter-more-settings-modal",onClick:F[14]||(F[14]=Oe((...I)=>C(V).closeMoreSettingsDialog&&C(V).closeMoreSettingsDialog(...I),["self"]))},[D("div",{class:"ehunter-panel",onClick:F[13]||(F[13]=Oe(()=>{},["stop"]))},[D("header",yb,[D("h3",null,J(C(K).openMoreSettingsModal),1),D("button",{class:"ehunter-close-btn",type:"button","aria-label":C(K).cancel,onClick:F[0]||(F[0]=(...I)=>C(V).closeMoreSettingsDialog&&C(V).closeMoreSettingsDialog(...I))},"×",8,wb)]),D("div",_b,[D("nav",kb,[(R(!0),U(ve,null,Be(C(im),I=>(R(),U("button",{key:I.id,class:pe(["ehunter-category",{"ehunter-active":C(h).activeSettingsCategory===I.id}]),onClick:W=>P(I.id)},J(C(K)[I.i18nKey]),11,xb))),128))]),D("section",{ref_key:"contentRef",ref:t,class:"ehunter-content",onScroll:x},[D("article",{ref_key:"generalRef",ref:n,class:"ehunter-group","data-category":"general"},[D("h4",null,J(C(K).settingsGeneral),1),(R(!0),U(ve,null,Be(C(d),I=>{var W,he,de,ge,ye,Ce,Ne;return R(),U("div",{class:"ehunter-row",key:I},[D("div",Sb,[D("span",Cb,J(b(I)),1),m(I)?(R(),U("p",Tb,J(m(I)),1)):fe("",!0)]),((W=C(De)[I])==null?void 0:W.control)==="drop"?(R(),ue(wr,{key:0,list:C(Co)(I),"cur-val":C(ht)(I),"format-cur-val-by-list":!0,"use-abbr-name":!!((he=C(De)[I])!=null&&he.useAbbrName),onChange:me=>S(I,me)},null,8,["list","cur-val","use-abbr-name","onChange"])):((de=C(De)[I])==null?void 0:de.control)==="num"?(R(),ue(xo,{key:1,"quick-options":C(To)(I),"cur-val":C(ht)(I),suffix:C(Eo)(I),min:((ge=C(De)[I])==null?void 0:ge.min)||0,max:((ye=C(De)[I])==null?void 0:ye.max)||999,"is-float":!!((Ce=C(De)[I])!=null&&Ce.isFloat),onChange:me=>S(I,me)},null,8,["quick-options","cur-val","suffix","min","max","is-float","onChange"])):((Ne=C(De)[I])==null?void 0:Ne.control)==="switch"?(R(),ue(So,{key:2,active:!!C(ht)(I),onChange:me=>S(I,me)},null,8,["active","onChange"])):fe("",!0)])}),128))],512),D("article",{ref_key:"scrollRef",ref:r,class:"ehunter-group","data-category":"scroll"},[D("h4",null,J(C(K).settingsScrollMode),1),(R(!0),U(ve,null,Be(C(v),I=>{var W,he,de,ge,ye,Ce,Ne;return R(),U("div",{class:"ehunter-row",key:I},[D("div",Eb,[D("span",Ab,J(b(I)),1),m(I)?(R(),U("p",Ib,J(m(I)),1)):fe("",!0)]),((W=C(De)[I])==null?void 0:W.control)==="drop"?(R(),ue(wr,{key:0,list:C(Co)(I),"cur-val":C(ht)(I),"format-cur-val-by-list":!0,"use-abbr-name":!!((he=C(De)[I])!=null&&he.useAbbrName),onChange:me=>S(I,me)},null,8,["list","cur-val","use-abbr-name","onChange"])):((de=C(De)[I])==null?void 0:de.control)==="num"?(R(),ue(xo,{key:1,"quick-options":C(To)(I),"cur-val":C(ht)(I),suffix:C(Eo)(I),min:((ge=C(De)[I])==null?void 0:ge.min)||0,max:((ye=C(De)[I])==null?void 0:ye.max)||999,"is-float":!!((Ce=C(De)[I])!=null&&Ce.isFloat),onChange:me=>S(I,me)},null,8,["quick-options","cur-val","suffix","min","max","is-float","onChange"])):((Ne=C(De)[I])==null?void 0:Ne.control)==="switch"?(R(),ue(So,{key:2,active:!!C(ht)(I),onChange:me=>S(I,me)},null,8,["active","onChange"])):fe("",!0)])}),128))],512),D("article",{ref_key:"bookRef",ref:o,class:"ehunter-group","data-category":"book"},[D("h4",null,J(C(K).settingsBookMode),1),(R(!0),U(ve,null,Be(C(g),I=>{var W,he,de,ge,ye,Ce,Ne;return R(),U("div",{class:"ehunter-row",key:I},[D("div",Db,[D("span",qb,J(b(I)),1),m(I)?(R(),U("p",Pb,J(m(I)),1)):fe("",!0)]),((W=C(De)[I])==null?void 0:W.control)==="drop"?(R(),ue(wr,{key:0,list:C(Co)(I),"cur-val":C(ht)(I),"format-cur-val-by-list":!0,"use-abbr-name":!!((he=C(De)[I])!=null&&he.useAbbrName),onChange:me=>S(I,me)},null,8,["list","cur-val","use-abbr-name","onChange"])):((de=C(De)[I])==null?void 0:de.control)==="num"?(R(),ue(xo,{key:1,"quick-options":C(To)(I),"cur-val":C(ht)(I),suffix:C(Eo)(I),min:((ge=C(De)[I])==null?void 0:ge.min)||0,max:((ye=C(De)[I])==null?void 0:ye.max)||999,"is-float":!!((Ce=C(De)[I])!=null&&Ce.isFloat),onChange:me=>S(I,me)},null,8,["quick-options","cur-val","suffix","min","max","is-float","onChange"])):((Ne=C(De)[I])==null?void 0:Ne.control)==="switch"?(R(),ue(So,{key:2,active:!!C(ht)(I),onChange:me=>S(I,me)},null,8,["active","onChange"])):fe("",!0)])}),128))],512),D("article",{ref_key:"quickRef",ref:s,class:"ehunter-group","data-category":"quick"},[D("h4",null,J(C(K).settingsQuick),1),D("div",Rb,[D("p",Mb,J(C(K).quickDragHint),1),D("div",{class:"ehunter-quick-lane",onDragover:F[4]||(F[4]=Oe(()=>{},["prevent"])),onDrop:F[5]||(F[5]=I=>O(I,!0))},[D("header",Fb,J(C(K).enabled),1),D("p",Lb,J(C(K).quickEnabledHint),1),(R(!0),U(ve,null,Be(f.value,I=>(R(),U("div",{key:`enabled-${I.id}`,class:"ehunter-quick-item",draggable:"true","data-id":I.id,onContextmenu:F[1]||(F[1]=Oe(()=>{},["prevent"])),onSelectstart:F[2]||(F[2]=Oe(()=>{},["prevent"])),onDragstart:W=>A(W,I.id),onDragend:q,onDragover:F[3]||(F[3]=Oe(()=>{},["prevent"])),onDrop:W=>ne(W,I.id,!0)},[F[15]||(F[15]=D("span",{class:"ehunter-drag-handle","aria-hidden":"true"},null,-1)),D("span",Ob,J(y(I.id,I.i18nKey)),1),w(I.modeScope)?(R(),U("span",Bb,J(w(I.modeScope)),1)):fe("",!0)],40,Nb))),128))],32),F[17]||(F[17]=D("div",{class:"ehunter-lane-divider"},null,-1)),D("div",{class:"ehunter-quick-lane ehunter-hidden",onDragover:F[9]||(F[9]=Oe(()=>{},["prevent"])),onDrop:F[10]||(F[10]=I=>O(I,!1))},[D("header",Vb,J(C(K).hidden),1),D("p",zb,J(C(K).quickHiddenHint),1),(R(!0),U(ve,null,Be(p.value,I=>(R(),U("div",{key:`hidden-${I.id}`,class:"ehunter-quick-item",draggable:"true","data-id":I.id,onContextmenu:F[6]||(F[6]=Oe(()=>{},["prevent"])),onSelectstart:F[7]||(F[7]=Oe(()=>{},["prevent"])),onDragstart:W=>A(W,I.id),onDragend:q,onDragover:F[8]||(F[8]=Oe(()=>{},["prevent"])),onDrop:W=>ne(W,I.id,!1)},[F[16]||(F[16]=D("span",{class:"ehunter-drag-handle","aria-hidden":"true"},null,-1)),D("span",$b,J(y(I.id,I.i18nKey)),1),w(I.modeScope)?(R(),U("span",Ub,J(w(I.modeScope)),1)):fe("",!0)],40,Hb))),128))],32)])],512),D("article",{ref_key:"otherRef",ref:i,class:"ehunter-group","data-category":"other"},[D("h4",null,J(C(K).settingsOther),1),D("div",jb,[D("span",Wb,J(C(K).versionLabel),1),D("span",Gb,J(a.value),1)]),D("div",Kb,[D("span",Qb,J(C(K).infoTip),1),D("button",{class:"ehunter-action",onClick:F[11]||(F[11]=(...I)=>C(V).openWelcomeInstructionDialog&&C(V).openWelcomeInstructionDialog(...I))},J(C(K).infoTip),1)]),F[18]||(F[18]=D("div",{class:"ehunter-row"},[D("span",{class:"ehunter-label"},"Github"),D("a",{target:"_blank",href:"https://github.com/hanFengSan/eHunter",class:"ehunter-link"},"https://github.com/hanFengSan/eHunter")],-1)),D("div",Zb,[D("span",Yb,J(C(K).resetTip),1),D("button",{class:"ehunter-danger",onClick:F[12]||(F[12]=(...I)=>C(V).showFactoryResetDialog&&C(V).showFactoryResetDialog(...I))},J(C(K).resetTip),1)])],512)],544)])])])):fe("",!0)]),_:1})])),ee(ko,{active:C(h).isFactoryResetDialogVisible,title:C(K).resetAllConfirmTitle,"md-text":C(K).resetAllConfirmDesc,operations:T.value,onClose:C(V).hideFactoryResetDialog},null,8,["active","title","md-text","operations","onClose"])],64))}}),[["__scopeId","data-v-95b7d150"]]),Xb=_e({__name:"DownloadConfirmDialog",setup(e){const t=[{name:K.value.cancel,btnType:"plain",isCloseModal:!0},{name:K.value.confirm,btnType:"positive",isCloseModal:!0,onClick:()=>Ie(null,null,function*(){const r=V.getAlbumService();if(!r)return;const o=new rm,s=`download-${Date.now()}-${Math.round(Math.random()*1e3)}`,i=h.pageCount;V.registerDownloadRunner(s,o),V.startDownloadTask(s,h.albumTitle,i);try{yield o.run({taskId:s,albumService:r,galleryTitle:h.albumTitle,introUrl:r.getIntroUrl(),pageCount:i,chunkSize:h.downloadChunkSize,autoRetryByOtherSource:h.autoRetryByOtherSource,eHunterVersion:"",onStatus:c=>{V.applyDownloadStatusEvent(s,h.albumTitle,c)}})}catch(c){const a=c instanceof Error&&c.message==="DOWNLOAD_ABORTED";V.applyDownloadStatusEvent(s,h.albumTitle,{phase:a?"partial":"failed",severity:a?"warning":"error",message:a?K.value.downloadAborted:K.value.downloadFailed,processedPages:0,totalPages:i,failedPages:i})}finally{V.clearDownloadRunner(s)}})}];function n(){V.closeDownloadConfirmDialog()}return(r,o)=>(R(),ue(ko,{active:C(h).showDownloadConfirmDialog,title:C(K).downloadConfirmTitle,"md-text":`${C(K).downloadConfirmMessage}

${C(K).downloadAuthorizeTip}`,operations:t,onClose:n},null,8,["active","title","md-text"]))}}),e0={class:"top-bar"},t0={class:"more-button-wrapper"},n0=["title-content"],r0=Ae(_e({__name:"TopBar",emits:["closeEHunter"],setup(e,{emit:t}){dl(y=>({b43ab3a8:C(h).topBarHeight+"px",v7cbba036:C(h).topBarHeight+"px"}));const n=t,r=te(!1),o=te(null),s=te(null),i=te([]),c=te(!1);let a=null;function u(y){return c.value?{visibility:"hidden"}:i.value[y]===!1?{display:"none"}:{}}const l=X(()=>wm.value.map(y=>De[y]).filter(y=>!!y).filter(y=>!(!y.showInTopBar||y.modeScope==="scroll-only"&&h.readingMode!==0||y.modeScope==="book-only"&&h.readingMode!==1||y.requireThumbSupportInTopBar&&!h.isSupportThumbView)));function f(y,b){Uf(y,b)}function p(){r.value=!r.value}function d(){n("closeEHunter")}function v(){!o.value||!s.value||h.showTopBar&&(c.value=!0,i.value=new Array(l.value.length).fill(!0),Zt(()=>{var k,P;const y=(k=o.value)==null?void 0:k.querySelectorAll(".item");if(!y||y.length===0){c.value=!1;return}const b=(P=s.value)==null?void 0:P.getBoundingClientRect();if(!b){c.value=!1;return}const m=b.left,S=[];for(let x=0;x<y.length;x++){const q=y[x].getBoundingClientRect().right;S[x]=q+10<=m}c.value=!1,i.value=S}))}let g=null;function T(y=!1){a&&clearTimeout(a),y?v():a=window.setTimeout(()=>{v(),a=null},100)}const w=()=>T();return yt(()=>{Zt(()=>{v()}),window.addEventListener("resize",w),o.value&&(g=new ResizeObserver(()=>{T()}),g.observe(o.value))}),Yt(()=>{window.removeEventListener("resize",w),g&&g.disconnect(),a&&clearTimeout(a)}),$e(l,()=>{Zt(()=>{v()})},{deep:!0}),$e(()=>h.showTopBar,y=>{y&&setTimeout(()=>{v()},350)}),$e(()=>h.readingMode,()=>{setTimeout(()=>{v()},500)}),(y,b)=>(R(),U("nav",e0,[D("div",{class:"float-content",ref_key:"floatContentRef",ref:s},[D("div",t0,[ee(Js,{class:"button tips tips-left tips-down","icon-type":"more","title-content":C(K).more,onClick:p,size:"normal"},null,8,["title-content"]),ee(bb,{active:r.value,onClose:b[0]||(b[0]=m=>r.value=!1),onMoreSettings:b[1]||(b[1]=m=>C(V).openMoreSettingsDialog()),onQuickPreview:b[2]||(b[2]=m=>C(V).openThumbExpandDialog()),onDownload:b[3]||(b[3]=m=>C(V).openDownloadConfirmDialog())},null,8,["active"])]),ee(Js,{class:"button tips tips-left tips-down","icon-type":"menu","title-content":C(K).toggleTopBar,rotate:C(h).showTopBar,onClick:b[4]||(b[4]=m=>C(V).toggleShowTopBar()),size:"normal"},null,8,["title-content","rotate"]),ee(Js,{class:"button tips tips-left tips-down","icon-type":"close","title-content":C(K).closeEHunter,onClick:d,size:"normal"},null,8,["title-content"])],512),D("div",{class:pe(["inner-content",{hide:!C(h).showTopBar}]),ref_key:"innerContentRef",ref:o},[(R(!0),U(ve,null,Be(l.value,(m,S)=>(R(),U("div",{class:pe(["item",{"less-margin":m.id==="lang"}]),key:m.id,style:je(u(S))},[D("span",{class:"label tips tips-down tips-right","title-content":m.tipI18nKey?C(K)[m.tipI18nKey]:""},J(C(K)[m.labelI18nKey])+": ",9,n0),m.control==="drop"?(R(),ue(wr,{key:0,list:C(Co)(m.id),"cur-val":C(ht)(m.id),"format-cur-val-by-list":!0,"use-abbr-name":!!m.useAbbrName,onChange:k=>f(m.id,k)},null,8,["list","cur-val","use-abbr-name","onChange"])):m.control==="num"?(R(),ue(xo,{key:1,"quick-options":C(To)(m.id),"cur-val":C(ht)(m.id),suffix:C(Eo)(m.id),min:m.min||0,max:m.max||999,"is-float":!!m.isFloat,onChange:k=>f(m.id,k)},null,8,["quick-options","cur-val","suffix","min","max","is-float","onChange"])):m.control==="switch"?(R(),ue(So,{key:2,active:!!C(ht)(m.id),onChange:k=>f(m.id,k)},null,8,["active","onChange"])):fe("",!0)],6))),128))],2),ee(Jb),ee(Xb)]))}}),[["__scopeId","data-v-775e5895"]]);var o0=4,s0=.001,i0=1e-7,c0=10,xr=11,Ao=1/(xr-1),a0=typeof Float32Array=="function";function jf(e,t){return 1-3*t+3*e}function Wf(e,t){return 3*t-6*e}function Gf(e){return 3*e}function Io(e,t,n){return((jf(t,n)*e+Wf(t,n))*e+Gf(t))*e}function Kf(e,t,n){return 3*jf(t,n)*e*e+2*Wf(t,n)*e+Gf(t)}function l0(e,t,n,r,o){var s,i,c=0;do i=t+(n-t)/2,s=Io(i,r,o)-e,s>0?n=i:t=i;while(Math.abs(s)>i0&&++c<c0);return i}function u0(e,t,n,r){for(var o=0;o<o0;++o){var s=Kf(t,n,r);if(s===0)return t;var i=Io(t,n,r)-e;t-=i/s}return t}function f0(e,t,n,r){for(var o=a0?new Float32Array(xr):new Array(xr),s=0;s<xr;++s)o[s]=Io(s*Ao,e,n);function i(c){for(var a=0,u=1,l=xr-1;u!==l&&o[u]<=c;++u)a+=Ao;--u;var f=(c-o[u])/(o[u+1]-o[u]),p=a+f*Ao,d=Kf(p,e,n);return d>=s0?u0(c,p,e,n):d===0?p:l0(c,a,a+Ao,e,n)}return function(a){return a===0?0:a===1?1:Io(i(a),t,r)}}const Qf=Ae(_e({__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=te(null);let i,c=!1,a=!0,u=0;function l(v){const g=v<=0;if(g!==a){if(a=g,g){r("topIn");return}r("topLeave")}}function f(){if(!s.value)return;const v=o.axis==="y"?s.value.scrollTop:s.value.scrollLeft;if(o.axis==="y"&&l(v),!(!c&&v===i)){if(!c&&v!==i){i=v,c=!0;return}if(c&&v!==i){i=v;return}c=!1,o.onScrollStopped(v)}}let p;yt(()=>{o.listenScroll&&s.value&&(i=o.axis==="y"?s.value.scrollTop:s.value.scrollLeft,o.axis==="y"&&(a=i<=0,a&&r("topIn")),p=window.setInterval(f,50))}),Yt(()=>{u&&(window.cancelAnimationFrame(u),u=0),p&&clearInterval(p)});function d(v,g,T="y"){const w=T||o.axis;if(!s.value)return;if(u&&(window.cancelAnimationFrame(u),u=0),g<=0){w==="y"?s.value.scrollTop=v:s.value.scrollLeft=v;return}const y=w==="y"?s.value.scrollTop:s.value.scrollLeft,b=v-y;if(Math.abs(b)<.5)return;let m=0;const S=f0(.61,.29,.3,.97);u=window.requestAnimationFrame(function k(P){if(!s.value){u=0;return}m||(m=P);const x=P-m,A=Math.min(x/g,1),q=y+b*S(A);if(w==="y"?s.value.scrollTop=q:s.value.scrollLeft=q,x<g){u=window.requestAnimationFrame(k);return}u=0})}return t({scrollTo:d}),(v,g)=>(R(),U("div",{ref_key:"asv",ref:s,class:pe(["awesome-scroll-view","scrollbar",`axis-${e.axis}`,{isHidden:e.isHidden}])},[un(v.$slots,"default",{},void 0)],2))}}),[["__scopeId","data-v-4f224e6d"]]);function Zf(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)},c=()=>{i(),o=!1},a=(d,v,g,T)=>{o=!0,e.onActivate({clientX:d,clientY:v,pointerType:g,sourceEvent:T})},u=d=>{const v=d.pointerType||"mouse";if(n=d.clientX,r=d.clientY,v==="mouse"){a(d.clientX,d.clientY,"mouse",d);return}i(),t=window.setTimeout(()=>{a(d.clientX,d.clientY,v,d)},e.longPressMs)},l=d=>{if(o||!t)return;(Math.abs(d.clientX-n)>s||Math.abs(d.clientY-r)>s)&&c()},f=()=>{o||c()};return{onPointerDown:u,onPointerMove:l,onPointerUp:f,onPointerCancel:f,cancel:c}}const h0=["aria-label"],d0=Ae(_e({__name:"DockHandle",props:{label:{default:"EHUNTER"},ariaLabel:{default:"Dock handle"},longPressMs:{default:500}},emits:["drag-start"],setup(e,{emit:t}){const n=e,r=t,o=te(!1),s=Zf({longPressMs:n.longPressMs,onActivate:l=>{o.value=!0,r("drag-start",l)}});function i(l){o.value=!1,s.onPointerDown(l)}function c(l){s.onPointerMove(l)}function a(){o.value=!1,s.onPointerUp()}function u(){o.value=!1,s.onPointerCancel()}return(l,f)=>(R(),U("button",{type:"button",class:pe(["dock-handle",{armed:o.value}]),"aria-label":e.ariaLabel,onPointerdown:i,onPointermove:c,onPointerup:a,onPointercancel:u},[un(l.$slots,"default",{},()=>[St(J(e.label),1)])],42,h0))}}),[["__scopeId","data-v-3c634b84"]]),p0=["src"],g0={key:1,class:"thumb-fallback"},m0=100,v0=144,lc=Ae(_e({__name:"ThumbView",props:{thumbInfo:{},fallbackText:{}},setup(e){const t=e,n=te(null),r=te(0),o=te(0);let s=null;const i=X(()=>{var d;const p=((d=t.thumbInfo)==null?void 0:d.width)||0;return p>0?p:m0}),c=X(()=>{var d;const p=((d=t.thumbInfo)==null?void 0:d.height)||0;return p>0?p:v0}),a=X(()=>{if(r.value<=0||o.value<=0)return 1;const p=r.value/i.value,d=o.value/c.value,v=Math.min(p,d);return Number.isFinite(v)&&v>0?v:1}),u=X(()=>({width:`${i.value}px`,height:`${c.value}px`,transform:`scale(${a.value})`})),l=X(()=>{var v,g;const p=((v=t.thumbInfo)==null?void 0:v.offset)||0;return{background:`transparent url(${((g=t.thumbInfo)==null?void 0:g.src)||""}) -${p}px 0 no-repeat`}});function f(){n.value&&(r.value=n.value.clientWidth,o.value=n.value.clientHeight)}return yt(()=>{f(),!(!n.value||typeof ResizeObserver=="undefined")&&(s=new ResizeObserver(()=>{f()}),s.observe(n.value))}),ss(()=>{s&&(s.disconnect(),s=null)}),(p,d)=>(R(),U("div",{ref_key:"root",ref:n,class:"thumb-view"},[e.thumbInfo?(R(),U("div",{key:0,class:"thumb-stage",style:je(u.value)},[e.thumbInfo.mode===C(Mn).SPIRIT?(R(),U("div",{key:0,class:"thumb-sprite",style:je(l.value)},null,4)):(R(),U("img",{key:1,class:"thumb-image",src:e.thumbInfo.src,alt:"",draggable:"false"},null,8,p0))],4)):e.fallbackText?(R(),U("div",g0,J(e.fallbackText),1)):fe("",!0)],512))}}),[["__scopeId","data-v-88a65bb0"]]),b0={class:"header"},y0=["onClick"],w0={class:"thumb-stage"},_0={class:"index"},k0=["aria-label"],Yf="thumb",x0=Ae(_e({__name:"ThumbScrollView",emits:["dock-drag-start","open-thumb-expand"],setup(e,{emit:t}){dl(x=>({v8b69ed28:s.value,v1623f37e:i.value,v83a6f68e:w.value+"px",d3d034c0:T.value+"px",v1682f559:y.value+"px",e2fd20f6:b.value+"px",v6c05c142:C(hg)+"px",v12a22b04:C(Bl)+"px",v729167b9:p.value+"px",v2722d226:a.value,v67748580:c.value,v415efbe9:C(dg)+"px",v4d0461ec:C(pg)+"px"}));const n=X(()=>h.thumbDockSlot==="bottom"),r=X(()=>Number(ft.value)),o=X(()=>Math.max(0,h.curViewIndex-r.value)),s=X(()=>`${vg(h.thumbItemWidth)}px`),i=X(()=>`${bg(h.thumbItemWidth).toFixed(3)}em`),c=X(()=>`${yg(h.thumbViewHeight)}px`),a=X(()=>`${wg(h.thumbViewHeight).toFixed(3)}em`),u=t,l=te(null),f=te(null),p=X(()=>n.value?T.value*o.value:(w.value+Bl)*o.value),d=X(()=>h.thumbInfos.slice(ft.value,ft.value+h.volumeSize)),v=X(()=>gg(h.thumbDockSlot,h.thumbItemWidth,h.thumbItemHeight)),g=X(()=>mg(h.thumbDockSlot)),T=X(()=>Math.round(g.value*v.value)),w=X(()=>Math.round(Nl*v.value)),y=X(()=>{const x=Math.min(T.value,w.value);return Math.max(14,Math.min(40,Math.round(x*.4)))}),b=X(()=>{const x=Math.min(T.value,w.value),A=Math.max(20,Math.min(60,Math.round(x*.6)));return Math.max(A,y.value+4)});function m(x){const A=Number(x);V.setCurViewIndex(r.value+A,Yf)}function S(x){u("dock-drag-start",x)}function k(){u("open-thumb-expand")}function P(x){if(!l.value||!f.value||x<0)return;const A=h.readingMode===1?260:1e3;if(n.value){const ne=[...f.value].sort((O,B)=>O.offsetLeft-B.offsetLeft)[x];if(ne){l.value.scrollTo(ne.offsetLeft,A,"x");return}l.value.scrollTo(0,A,"x");return}const L=[...f.value].sort((M,ne)=>M.offsetTop-ne.offsetTop)[x];if(L){l.value.scrollTo(L.offsetTop,A,"y");return}l.value.scrollTo(0,A,"y")}return $e(()=>h.curViewIndex,x=>{if(h.curViewIndexUpdater!==Yf){if(x===ft.value){P(0);return}P(x-ft.value)}}),(x,A)=>(R(),U("aside",{class:pe(["thumb-content",{"dock-bottom":C(h).thumbDockSlot==="bottom"}])},[ee(Qf,{ref_key:"scrollView",ref:l,class:pe(["thumb-scroll-view",{"dock-bottom":C(h).thumbDockSlot==="bottom"}]),axis:C(h).thumbDockSlot==="bottom"?"x":"y"},{default:Ve(()=>[D("div",b0,[ee(d0,{class:"app-name",label:"EHUNTER","aria-label":"EHUNTER Dock Handle",onDragStart:S})]),A[1]||(A[1]=D("div",{class:"indicator"},null,-1)),(R(!0),U(ve,null,Be(d.value,(q,L)=>(R(),U("div",{class:"thumb-container",onClick:M=>m(L),key:q.id,ref_for:!0,ref_key:"thumbContainers",ref:f},[D("div",w0,[ee(lc,{class:"thumb","thumb-info":q},null,8,["thumb-info"]),A[0]||(A[0]=D("div",{class:"hover-mask"},null,-1)),D("div",_0,J(r.value+Number(L)+1),1)])],8,y0))),128))]),_:1},8,["class","axis"]),D("button",{type:"button",class:pe(["thumb-expand-trigger",{"dock-bottom":C(h).thumbDockSlot==="bottom"}]),"aria-label":C(K).expandThumbs,onClick:k},[ee(C(ku),{class:"expand-icon"})],10,k0)],2))}}),[["__scopeId","data-v-45b2aba1"]]),S0={key:0,class:"ehunter-loading"},C0={key:1,class:"ehunter-error"},T0={class:"error-message"},E0={class:"error-details",open:""},A0={class:"error-info"},I0={key:0,class:"error-stack"},D0=Ae(_e({__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 y,b,m;const v=navigator,g=(y=v.userAgentData)==null?void 0:y.model;if(typeof g=="string"&&g.trim())return g;const T=((b=v.userAgentData)==null?void 0:b.platform)||navigator.platform||"Unknown Device",w=(m=v.userAgentData)!=null&&m.mobile?" Mobile":"";return`${T}${w}`.trim()}function i(){var T;const v=navigator;if((T=v.userAgentData)!=null&&T.platform)return v.userAgentData.platform;const g=navigator.userAgent;return/Windows NT/i.test(g)?"Windows":/Mac OS X|Macintosh/i.test(g)?"macOS":/Android/i.test(g)?"Android":/iPhone|iPad|iPod/i.test(g)?"iOS":/Linux/i.test(g)?"Linux":"Unknown OS"}const c=dr.version,a=s(),u=i(),l=te(!1),f=X(()=>l.value?"Copied":"复制"),p=X(()=>{const v=n.error;if(!v)return"";const g=[`Error: ${v.message}`,`Platform: ${v.platform}`,`eHunter Version: ${c}`,`Device: ${a}`,`OS: ${u}`,`URL: ${v.url}`,`Timestamp: ${v.timestamp}`];return v.stack&&g.push(`Stack:
${v.stack}`),g.join(`
`)}),d=()=>Ie(null,null,function*(){if(p.value)try{yield navigator.clipboard.writeText(p.value),l.value=!0,window.setTimeout(()=>{l.value=!1},1500)}catch(v){l.value=!1}});return(v,g)=>e.isLoading?(R(),U("div",S0,[...g[0]||(g[0]=[Jd('<div class="ehunter-loading-view" data-v-d9fed19f><div class="loading-animation" data-v-d9fed19f><div class="book" data-v-d9fed19f><div class="book__page" data-v-d9fed19f></div><div class="book__page" data-v-d9fed19f></div><div class="book__page" data-v-d9fed19f></div></div><h4 data-v-d9fed19f>Reading</h4></div></div>',1)])])):e.error?(R(),U("div",C0,[D("div",{class:"error-header"},[g[1]||(g[1]=D("h3",null,"Initialization Error",-1)),D("button",{onClick:o,class:"close-button","aria-label":"Close"},"x")]),D("p",T0,J(e.error.message),1),D("details",E0,[D("summary",null,[g[2]||(g[2]=D("span",null,"Technical Details (for bug reports)",-1)),D("button",{class:"copy-button",onClick:Oe(d,["stop"])},J(f.value),1)]),D("div",A0,[D("p",null,[g[3]||(g[3]=D("strong",null,"Error:",-1)),St(" "+J(e.error.message),1)]),D("p",null,[g[4]||(g[4]=D("strong",null,"Platform:",-1)),St(" "+J(e.error.platform),1)]),D("p",null,[g[5]||(g[5]=D("strong",null,"eHunter Version:",-1)),St(" "+J(C(c)),1)]),D("p",null,[g[6]||(g[6]=D("strong",null,"Device:",-1)),St(" "+J(C(a)),1)]),D("p",null,[g[7]||(g[7]=D("strong",null,"OS:",-1)),St(" "+J(C(u)),1)]),D("p",null,[g[8]||(g[8]=D("strong",null,"URL:",-1)),St(" "+J(e.error.url),1)]),D("p",null,[g[9]||(g[9]=D("strong",null,"Timestamp:",-1)),St(" "+J(e.error.timestamp),1)]),e.error.stack?(R(),U("pre",I0,J(e.error.stack),1)):fe("",!0)])]),g[10]||(g[10]=D("p",{class:"feedback-link"},[St(" Feedback: "),D("a",{href:"https://github.com/hanFengSan/eHunter/issues",target:"_blank",rel:"noopener noreferrer"},"https://github.com/hanFengSan/eHunter/issues")],-1))])):un(v.$slots,"default",{key:2},void 0)}}),[["__scopeId","data-v-d9fed19f"]]),q0={timeout(e){return new Promise(t=>setTimeout(t,e))}};class P0{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 Jf=new P0;const R0={class:"layer preview-layer"},M0={class:"layer loading-layer"},F0={class:"index"},L0={key:0,class:"loading-info-panel"},N0={class:"text"},O0={class:"operation"},B0={class:"layer img-layer"},V0=["src"],uc=Ae(_e({__name:"PageView",props:{index:{},active:{type:Boolean}},emits:["clickBackground"],setup(e,{emit:t}){const n=e,r=t,o=En(Ts),s=te(0),i=te(""),c=te(0),a=te(Ye.Default),u=te([]),l=te(!1),f=te(!1),p=X(()=>V.getImgPageInfo(n.index));function d(k){return Ie(this,null,function*(){a.value=k,f.value=!1;let P=yield o.getImgSrc(n.index,k);if(P instanceof Error){k===Ye.Default&&(u.value=g(k),yield T());return}p.value.src!=P.src&&V.setImgPageInfoSrc(n.index,P.src),P.preciseHeightOfWidth&&p.value.preciseHeightOfWidth!=P.preciseHeightOfWidth&&V.setImgPageInfoPreciseHeightOfWidth(n.index,P.preciseHeightOfWidth)})}function v(){return{autoRetryByOtherSource:h.autoRetryByOtherSource,supportChangeSource:o.isSupportImgChangeSource()}}function g(k){return Wg(k,v())}function T(){return Ie(this,null,function*(){if(!l.value){l.value=!0;try{for(;u.value.length>0;){const k=u.value.shift();if(k===void 0)break;if(yield y(k,!0))return}f.value=!0}finally{l.value=!1}}})}const w=X(()=>{let k=s.value?`[${K.value.reload}-${s.value}] `:"";if(i.value)return k+i.value;switch(c.value){case 2:return k+K.value.loadingImgFailed;case 3:return k+K.value.imgLoaded;case 0:return k+K.value.waiting;case 1:default:return k+K.value.loadingImg}});yt(()=>{n.active&&!p.value.src&&d(Ye.Default)}),$e(()=>n.active,k=>{k&&!p.value.src&&d(Ye.Default)});function y(k,P=!1){return Ie(this,null,function*(){P||(u.value=[]),f.value=!1,s.value++,i.value="",V.setImgPageInfoSrc(n.index,""),c.value=1,a.value=k;let x=yield o.getImgSrc(n.index,k);if(x instanceof Error){switch(x.message){case"ERROR_NO_ORIGIN":i.value=K.value.noOriginalImg;break;default:i.value=K.value.loadingFailed}return P||(u.value=g(k),yield T()),!1}return yield Zt(),yield q0.timeout(300),p.value.src!=x.src&&V.setImgPageInfoSrc(n.index,x.src),x.preciseHeightOfWidth&&p.value.preciseHeightOfWidth!=x.preciseHeightOfWidth&&V.setImgPageInfoPreciseHeightOfWidth(n.index,x.preciseHeightOfWidth),!0})}function b(k){k.preventDefault(),p.value.src&&(c.value=2,Jf.logText("LOADING","loading image failed"),!f.value&&u.value.length===0&&(u.value=g(a.value)),u.value.length>0&&(Jf.logText("LOADING","reloading image"),T()))}function m(){c.value=3,u.value=[],f.value=!1}function S(){r("clickBackground")}return(k,P)=>(R(),U("section",{class:"page-view",onClick:P[5]||(P[5]=x=>S())},[D("div",R0,[ee(lc,{class:"preview-thumb","thumb-info":C(h).thumbInfos[e.index]},null,8,["thumb-info"])]),D("div",M0,[D("h6",F0,J(e.index+1),1),e.active?(R(),U("article",L0,[ee(Vt,{name:"slide-fade"},{default:Ve(()=>[c.value!=3?(R(),U("p",{key:0,class:"loading-info",onClick:Oe(()=>{},["stop"])},[D("span",N0,J(w.value),1),D("span",O0,[C(o).isSupportOriginImg()?(R(),ue(_r,{key:0,class:"tips tips-down no-margin","title-content":C(K).originImgTip,label:C(K).originImg,mode:"inline",type:"positive",onClick:P[0]||(P[0]=x=>y(C(Ye).Origin))},null,8,["title-content","label"])):fe("",!0),ee(_r,{class:"tips tips-down","title-content":C(K).refreshTip,label:C(K).refresh,mode:"inline",type:"positive",onClick:P[1]||(P[1]=x=>y(C(Ye).Default))},null,8,["title-content","label"]),C(o).isSupportImgChangeSource()?(R(),ue(_r,{key:1,class:"tips tips-down","title-content":C(K).refreshByOtherSourceTip,label:C(K).refreshByOtherSource,mode:"inline",type:"positive",onClick:P[2]||(P[2]=x=>y(C(Ye).ChangeSource))},null,8,["title-content","label"])):fe("",!0)])])):fe("",!0)]),_:1})])):fe("",!0)]),D("div",B0,[e.active&&p.value&&p.value.src?(R(),U("img",{key:0,class:"album-item",src:p.value.src,onLoad:P[3]||(P[3]=x=>m()),onError:P[4]||(P[4]=x=>b(x))},null,40,V0)):fe("",!0)])]))}}),[["__scopeId","data-v-86051176"]]),z0={class:"album-scroll-view"},H0={class:"preload"},$0={class:"preload-item"},Xf="album_scroll_view",fc=800,U0=Ae(_e({__name:"AlbumScrollView",setup(e){const t=te(0),n=te(null),r=te(null);function o(a){t.value=a}$e(t,()=>{if(!r.value)return;let a=r.value.sort((l,f)=>l.offsetTop-f.offsetTop),u;if(a){if(t.value!==0){const l=a.concat().reverse();let f=a.indexOf(l.find(d=>d.offsetTop<=t.value+window.innerHeight));u=(f===-1?r.value.length-1:f)+ft.value}else u=ft.value;u!==h.curViewIndex&&V.setCurViewIndex(u,Xf)}});function s(){return Ie(this,null,function*(){if(yield Zt(),!r.value)return;if(wu.value==0){n.value.scrollTo(0,fc);return}const a=r.value[wu.value];if(!a){n.value.scrollTo(0,fc);return}n.value.scrollTo(a.offsetTop-100,fc)})}yt(()=>{setTimeout(()=>{s()},200)});const i=X(()=>{let a=h.curViewIndex-h.loadNum;a<0&&(a=0);let u=h.curViewIndex+h.loadNum;u>h.pageCount-1&&(u=h.pageCount-1);let l=[];for(let f=a;f<=u;f++)l.push(f);return l});$e(()=>h.curViewIndex,(a,u)=>{h.curViewIndexUpdater!==Xf&&s()});function c(a){V.setCurViewIndex(a*h.volumeSize,"scroll_view_vol")}return(a,u)=>(R(),U("div",z0,[D("div",H0,[(R(!0),U(ve,null,Be(C(xm),l=>(R(),U("div",$0,[ee(uc,{active:!0,index:l},null,8,["index"])]))),256))]),C(h).imgPageInfos&&C(h).imgPageInfos.length>0?(R(),ue(Qf,{key:0,ref_key:"scrollView",ref:n,class:"scroll-view","on-scroll-stopped":o,onTopIn:u[0]||(u[0]=l=>C(V).setTopBar(!0)),"listen-scroll":!0,onTopLeave:u[1]||(u[1]=l=>C(V).setTopBar(!1))},{default:Ve(()=>[D("h1",null,J(C(h).albumTitle),1),C(yr)>1?(R(),ue(bo,{key:0,class:"top-pagination","cur-index":C(vo)-1,"page-sum":C(yr),onChange:c},null,8,["cur-index","page-sum"])):fe("",!0),(R(!0),U(ve,null,Be(C(km),l=>(R(),U("div",{class:"page-container",ref_for:!0,ref_key:"pageContainers",ref:r,key:l,style:je({width:`${C(h).widthScale}%`,"padding-bottom":`${C(h).widthScale*C(V).getImgPageHeightOfWidth(l)}%`,margin:`${C(h).scrollPageMargin}px auto`})},[ee(uc,{index:l,active:i.value.indexOf(l)>-1},null,8,["index","active"])],4))),128)),C(yr)>1?(R(),ue(bo,{key:1,class:"bottom-pagination","cur-index":C(vo)-1,"page-sum":C(yr),onChange:c},null,8,["cur-index","page-sum"])):fe("",!0)]),_:1},512)):fe("",!0)]))}}),[["__scopeId","data-v-c08983c3"]]),j0={class:"book-page-view"},W0={key:1,class:"page start-page"},G0={key:2,class:"page end-page"},K0=Ae(_e({__name:"BookPageView",props:{index:{},active:{type:Boolean},activeLoad:{type:Boolean}},setup(e){return(t,n)=>(R(),U("div",j0,[e.index>=0&&e.index<C(h).pageCount?(R(),ue(uc,{key:0,index:e.index,active:e.active,"active-load":e.activeLoad},null,8,["index","active","active-load"])):fe("",!0),e.index==-1?(R(),U("div",W0,[D("div",{class:pe(["ehunter-tag",{left:C(h).bookDirection===1}])},"EHUNTER",2),D("h1",null,J(C(h).albumTitle),1)])):fe("",!0),e.index==C(h).pageCount?(R(),U("div",G0,[D("div",{class:pe(["ehunter-tag",{left:C(h).bookDirection===0}])},"EHUNTER",2),n[0]||(n[0]=D("h1",null,"END",-1))])):fe("",!0)]))}}),[["__scopeId","data-v-f47dc869"]]),Q0=Ae(_e({__name:"AlbumBookView",setup(e){function t(p){return{width:p.width+"px",height:p.height+"px",top:p.top+"px",right:p.right+"px",zIndex:h.pageCount-p.pageIndex}}function n(p){return{zIndex:p===c.value?2:1,pointerEvents:p===c.value?"auto":"none"}}function r(p,d){let v=(Qs.value-p*h.pagesPerScreen)/2,g=d;return h.bookDirection==1&&(g=h.pagesPerScreen-g-1),v+g*p}function o(p){let d=[];if(p.length===0)return d;let v=p.reduce((w,y)=>{let b=y>=0&&y<h.pageCount?V.getImgPageHeightOfWidth(y):Hl();return b>w?b:w},0),g=v/p.length,T=0;g>=Sm.value?T=Zs.value/v:T=Qs.value/p.length;for(let w=0;w<p.length;w++){let y=p[w],b=y>=0&&y<h.pageCount?V.getImgPageHeightOfWidth(y):Hl(),m=T*b,S=Zs.value/2-m/2;h.showTopBar&&(S+=h.topBarHeight),d.push({pageIndex:y,height:m,width:T,top:S,right:r(T,w)})}return d}const s=X(()=>{const p=Ps({pageCount:h.pageCount,pagesPerScreen:h.pagesPerScreen,isChangeOddEven:h.isChangeOddEven}),d=Rs(p,h.curViewIndex),v=Math.max(1,Math.ceil(h.loadNum/Math.max(1,h.pagesPerScreen))),g=Math.max(0,d-v),T=Math.min(p.length-1,d+v),w=[];for(let y=g;y<=T;y++){const b=p[y];w.push({spreadIndex:y,pageList:o(b)})}if(!w.some(y=>y.spreadIndex===d)){const y=p[d]||[];w.unshift({spreadIndex:d,pageList:o(y)})}return w}),i=X(()=>Ps({pageCount:h.pageCount,pagesPerScreen:h.pagesPerScreen,isChangeOddEven:h.isChangeOddEven})),c=X(()=>Rs(i.value,h.curViewIndex)),a=X(()=>i.value.length);function u(p){const d=i.value[p],v=Ul(d,h.curViewIndex);V.setCurViewIndex(v,"book-pagination")}const l=X(()=>h.pageTurnAnimationMode==="none"?"screen-none":h.pageTurnAnimationMode==="slide"?h.flipDirection==0?"screen-slide-next":"screen-slide-prev":h.flipDirection==0?"screen-flip":"screen-flip-reverse");function f(p){let d=p.clientY;switch(!0){case(d>=0&&d<h.viewportHeight*.3):V.setCurViewIndex(h.curViewIndex-h.pagesPerScreen,"click");break;case(d>=h.viewportHeight*.3&&d<=h.viewportHeight*.7):break;case(d>=h.viewportHeight*.7&&d<=h.viewportHeight):V.setCurViewIndex(h.curViewIndex+h.pagesPerScreen,"click");break}}return(p,d)=>(R(),U("section",{class:pe(["album-book-view",`mode-${C(h).pageTurnAnimationMode}`]),onWheel:d[0]||(d[0]=(...v)=>C(Rl)&&C(Rl)(...v)),onClick:f},[(R(!0),U(ve,null,Be(s.value,v=>(R(),ue(Vt,{key:v.spreadIndex,name:l.value},{default:Ve(()=>[Tn(D("div",{class:"book-spread",style:je(n(v.spreadIndex))},[(R(!0),U(ve,null,Be(v.pageList,g=>(R(),U("div",{class:"book-page-container",key:`${v.spreadIndex}-${g.pageIndex}`,style:je(t(g))},[ee(K0,{index:g.pageIndex,active:!0,"active-load":!0},null,8,["index"])],4))),128))],4),[[fr,v.spreadIndex===c.value]])]),_:2},1032,["name"]))),128)),ee(Vt,{name:"center-horizontal-fade"},{default:Ve(()=>[C(h).showBookPagination&&a.value>1?(R(),ue(bo,{key:0,class:"bottom-pagination","cur-index":c.value,"page-sum":a.value,onChange:u},null,8,["cur-index","page-sum"])):fe("",!0)]),_:1}),d[1]||(d[1]=D("div",{class:"action-panel"},[D("div",{class:"next"}),D("div",{class:"setting"}),D("div",{class:"pre"})],-1))],34))}}),[["__scopeId","data-v-436fab78"]]),Z0=["aria-label"],Y0=["onClick"],J0={class:"page-label"},X0={class:"pager-row"},ey=Ae(_e({__name:"ThumbExpandDialog",emits:["select-page"],setup(e,{emit:t}){const n=X(()=>jl(h.pageCount)),r=X(()=>Ms(h.thumbExpandSegmentIndex,h.pageCount)),o=X(()=>Sg(h.thumbInfos,h.pageCount,r.value)),s=te(null),i=t;$e(()=>h.showThumbExpandDialog,f=>Ie(null,null,function*(){f&&(V.setThumbExpandSegmentIndex(Wl(h.curViewIndex)),yield Zt(),c())}));function c(){const f=s.value;if(!f)return;const p=f.querySelector(".thumb-item.active");p&&p.scrollIntoView({behavior:"auto",block:"center",inline:"center"})}function a(){V.closeThumbExpandDialog()}function u(f){V.setThumbExpandSegmentIndex(Number(f))}function l(f){i("select-page",f)}return(f,p)=>(R(),ue(ts,{to:"#ehunter-app"},[ee(Vt,{name:"slow-opacity-fade",appear:""},{default:Ve(()=>[C(h).showThumbExpandDialog?(R(),U("div",{key:0,class:"thumb-expand-modal",onClick:Oe(a,["self"])},[D("section",{class:"panel",onClick:p[0]||(p[0]=Oe(()=>{},["stop"]))},[D("button",{class:"close-btn",type:"button","aria-label":C(K).cancel,onClick:a},"×",8,Z0),D("div",{ref_key:"gridWrapRef",ref:s,class:"grid-wrap"},[(R(!0),U(ve,null,Be(o.value,d=>(R(),U("button",{key:d.pageNumber,type:"button",class:pe(["thumb-item",{active:d.pageNumber-1===C(h).curViewIndex}]),onClick:v=>l(d.pageNumber)},[D("div",{class:pe(["thumb-frame",{error:d.renderState==="error"}])},[ee(lc,{"thumb-info":d.thumbInfo,"fallback-text":C(K).loadingFailed},null,8,["thumb-info","fallback-text"])],2),D("div",J0,J(d.pageNumber),1)],10,Y0))),128))],512),D("footer",X0,[ee(bo,{"cur-index":r.value,"page-sum":n.value,onChange:u},null,8,["cur-index","page-sum"])])])])):fe("",!0)]),_:1})]))}}),[["__scopeId","data-v-a4d1fb66"]]),ty=_e({__name:"InstructionDialog",setup(e){function t(n,r){return r&&r.length>0?r:[{name:K.value.confirm,btnType:"plain",isCloseModal:!0,onClick:()=>{V.closeInstructionDialog(n)}}]}return(n,r)=>(R(!0),U(ve,null,Be(C(h).instructionDialogStack,(o,s)=>(R(),ue(ko,{key:o.id,active:!0,title:o.title||C(K).instructionsAndAbouts,"is-compulsive":o.isCompulsive!==!1,"md-text":o.mdText,operations:t(o.id,o.operations),style:je({zIndex:10030+s}),onClose:i=>C(V).closeInstructionDialog(o.id)},null,8,["title","is-compulsive","md-text","operations","style","onClose"]))),128))}}),eh=Ae(_e({__name:"SplitHandle",props:{orientation:{},longPressMs:{default:500}},emits:["resize-start","hover-change"],setup(e,{emit:t}){const n=e,r=t,o=te(!1);function s(){o.value=!1}const i=Zf({longPressMs:n.longPressMs,onActivate:f=>{o.value=!0,r("resize-start",f)}});function c(f){o.value=!1;const p=f.currentTarget;p&&typeof p.setPointerCapture=="function"&&p.setPointerCapture(f.pointerId),i.onPointerDown(f)}function a(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),Yt(()=>{window.removeEventListener("pointerup",s),window.removeEventListener("pointercancel",s),window.removeEventListener("blur",s)}),(f,p)=>(R(),U("div",{class:pe(["split-handle",[e.orientation,{active:o.value}]]),onPointerdown:c,onPointermove:a,onPointerup:u,onPointercancel:l,onMouseenter:p[0]||(p[0]=d=>r("hover-change",!0)),onMouseleave:p[1]||(p[1]=d=>r("hover-change",!1))},[...p[2]||(p[2]=[D("div",{class:"grip"},null,-1)])],34))}}),[["__scopeId","data-v-e8a9bd37"]]),ny={key:0,class:"drop-overlay"},th=8,ry=Ae(_e({__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=te(null),i=te(!1),c=te(!1),a=te(!1),u=te("left"),l=X(()=>({width:r.showThumb&&(r.thumbSlot==="left"||r.thumbSlot==="right")?`${r.thumbSizePx}px`:"0px"})),f=X(()=>({height:r.showThumb&&r.thumbSlot==="bottom"?`${r.thumbSizePx}px`:"0px"}));let p=0,d=0,v=!1;function g(q,L){if(!s.value)return r.thumbSlot;const M=s.value.getBoundingClientRect(),ne=q-M.left,O=M.right-q,B=M.bottom-L,F=Math.max(120,M.width*.24),I=Math.max(120,M.height*.24),W=[];if(ne<=F&&W.push({slot:"left",score:ne/F}),O<=F&&W.push({slot:"right",score:O/F}),B<=I&&W.push({slot:"bottom",score:B/I}),W.length>0){const he=Math.abs(q-p),de=Math.abs(L-d),ge=W.some(Ce=>Ce.slot==="bottom"),ye=W.some(Ce=>Ce.slot==="left"||Ce.slot==="right");if(ge&&ye){if(he>de*1.15)return ne<=O?"left":"right";if(de>he*1.15)return"bottom"}return W.sort((Ce,Ne)=>Ce.score-Ne.score),W[0].slot}return r.thumbSlot}function T(q){i.value=!0,v=!1,p=q.clientX,d=q.clientY,u.value=g(q.clientX,q.clientY);const L=q.sourceEvent;Number.isFinite(L.pointerId)&&L.pointerId,window.addEventListener("pointermove",w),window.addEventListener("pointerup",b),window.addEventListener("pointercancel",m)}function w(q){if(!i.value)return;const L=Math.abs(q.clientX-p),M=Math.abs(q.clientY-d);(L>=th||M>=th)&&(v=!0),u.value=g(q.clientX,q.clientY)}function y(){i.value=!1,window.removeEventListener("pointermove",w),window.removeEventListener("pointerup",b),window.removeEventListener("pointercancel",m)}function b(q){if(!i.value)return;if(!v){y();return}const L=g(q.clientX,q.clientY);o("request-dock",L),y()}function m(){y()}function S(){y()}function k(q){c.value=!0,document.body.style.userSelect="none";const L=q.sourceEvent;Number.isFinite(L.pointerId)&&L.pointerId,window.addEventListener("pointermove",P),window.addEventListener("pointerup",x),window.addEventListener("pointercancel",x)}function P(q){if(!c.value||!s.value)return;const L=s.value.getBoundingClientRect();let M=r.thumbSizePx;r.thumbSlot==="left"?M=q.clientX-L.left:r.thumbSlot==="right"?M=L.right-q.clientX:M=L.bottom-q.clientY,o("request-resize",M)}function x(){c.value=!1,document.body.style.userSelect="",window.removeEventListener("pointermove",P),window.removeEventListener("pointerup",x),window.removeEventListener("pointercancel",x)}function A(){S(),x()}return window.addEventListener("blur",A),Yt(()=>{document.body.style.userSelect="",window.removeEventListener("blur",A),S(),x()}),t({startDockDrag:T}),(q,L)=>(R(),U("div",{ref_key:"rootRef",ref:s,class:pe(["dock-workspace",`slot-${e.thumbSlot}`])},[Tn(D("div",{class:pe(["thumb-panel side",{collapsed:!e.showThumb}]),style:je(l.value)},[un(q.$slots,"thumb",{},void 0)],6),[[fr,e.thumbSlot==="left"||e.thumbSlot==="right"]]),Tn(ee(eh,{orientation:"vertical","long-press-ms":e.longPressMs,onResizeStart:k,onHoverChange:L[0]||(L[0]=M=>a.value=M)},null,8,["long-press-ms"]),[[fr,e.showThumb&&(e.thumbSlot==="left"||e.thumbSlot==="right")]]),D("div",{class:pe(["main-panel",{resizing:a.value||c.value}])},[un(q.$slots,"main",{},void 0)],2),Tn(ee(eh,{orientation:"horizontal","long-press-ms":e.longPressMs,onResizeStart:k,onHoverChange:L[1]||(L[1]=M=>a.value=M)},null,8,["long-press-ms"]),[[fr,e.showThumb&&e.thumbSlot==="bottom"]]),Tn(D("div",{class:pe(["thumb-panel bottom",{collapsed:!e.showThumb}]),style:je(f.value)},[un(q.$slots,"thumb",{},void 0)],6),[[fr,e.thumbSlot==="bottom"]]),i.value?(R(),U("div",ny,[D("div",{class:pe(["drop-zone left",{active:u.value==="left"}])},J(C(K).dockLeft),3),D("div",{class:pe(["drop-zone right",{active:u.value==="right"}])},J(C(K).dockRight),3),D("div",{class:pe(["drop-zone bottom",{active:u.value==="bottom"}])},J(C(K).dockBottom),3)])):fe("",!0)],2))}}),[["__scopeId","data-v-fa3343db"]]),oy={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"};function sy(e,t){return R(),U("svg",oy,[...t[0]||(t[0]=[D("path",{fill:"none",d:"M0 0h24v24H0z"},null,-1),D("path",{d:"M7 14H5v5h5v-2H7zm-2-4h2V7h3V5H5zm12 7h-3v2h5v-5h-2zM14 5v2h3v3h2V5z"},null,-1)])])}const iy={render:sy},cy={class:"reader-view"},ay={class:"main-content"},ly={class:"status-pannel"},uy=["aria-label"],fy={class:"progress"},hy=Ae(_e({__name:"ReaderView",setup(e){const t=te(!1),n=te(null),r=X(()=>h.readingMode===0?h.showThumbView:h.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 d=document.querySelector(".ehunter-container")||document.documentElement;if(d.requestFullscreen){d.requestFullscreen();return}if(d.webkitRequestFullscreen){d.webkitRequestFullscreen();return}if(d.webkitRequestFullScreen){d.webkitRequestFullScreen();return}d.mozRequestFullScreen&&d.mozRequestFullScreen()}function c(l){var f;(f=n.value)==null||f.startDockDrag(l)}function a(){V.openThumbExpandDialog()}function u(l){V.closeThumbExpandDialog(),V.setCurViewIndex(l-1,"thumb-expand")}return yt(()=>{o(),document.addEventListener("fullscreenchange",o),document.addEventListener("webkitfullscreenchange",o),document.addEventListener("mozfullscreenchange",o)}),Yt(()=>{document.removeEventListener("fullscreenchange",o),document.removeEventListener("webkitfullscreenchange",o),document.removeEventListener("mozfullscreenchange",o)}),(l,f)=>(R(),U("div",cy,[ee(ry,{ref_key:"dockWorkspaceRef",ref:n,"thumb-slot":C(h).thumbDockSlot,"thumb-size-px":C(h).thumbDockSlot==="bottom"?C(h).thumbViewHeight:C(h).thumbViewWidth,"show-thumb":r.value,"long-press-ms":500,onRequestDock:f[0]||(f[0]=p=>C(V).setThumbDockSlot(p)),onRequestResize:f[1]||(f[1]=p=>C(V).setThumbPanelSize(p))},{thumb:Ve(()=>[ee(x0,{onDockDragStart:c,onOpenThumbExpand:a})]),main:Ve(()=>[D("div",ay,[ee(r0,{class:"top-bar",onCloseEHunter:s}),ee(Vt,{name:"slow-horizontal-fade"},{default:Ve(()=>[C(h).readingMode===0?(R(),ue(U0,{key:0,class:"content scroll-mode"})):fe("",!0)]),_:1}),ee(Vt,{name:"slow-vertical-fade"},{default:Ve(()=>[C(h).readingMode===1?(R(),ue(Q0,{key:0,class:"content book-mode"})):fe("",!0)]),_:1})])]),_:1},8,["thumb-slot","thumb-size-px","show-thumb"]),D("div",ly,[D("button",{class:"full-screen","aria-label":C(K).fullScreen,onClick:i,type:"button"},[ee(C(iy))],8,uy),D("div",fy,J(`${C(h).curViewIndex+1} / ${C(h).pageCount}`),1)]),ee(ey,{onSelectPage:u}),ee(ty)]))}}),[["__scopeId","data-v-f4d7c623"]]),dy={key:0},py={class:"bar"},gy={key:1,class:"actions"},my=["onClick"],vy=Ae(_e({__name:"StatusNotificationItem",props:{item:{}},emits:["dismiss","action"],setup(e){const t=e,n=X(()=>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(),U("article",{class:pe(["status-notification-item",`phase-${e.item.phase}`,`severity-${e.item.severity}`])},[D("header",null,[D("strong",null,J(e.item.title),1),D("button",{type:"button",class:"close",onClick:o[0]||(o[0]=s=>r.$emit("dismiss",e.item.notificationId))},"×")]),D("p",null,J(e.item.message),1),typeof e.item.progressCurrent=="number"&&typeof e.item.progressTotal=="number"?(R(),U("footer",dy,[D("span",null,J(`${e.item.progressCurrent} / ${e.item.progressTotal}`),1),D("div",py,[D("i",{style:je({width:`${n.value}%`})},null,4)])])):fe("",!0),e.item.actions&&e.item.actions.length>0?(R(),U("div",gy,[(R(!0),U(ve,null,Be(e.item.actions,s=>(R(),U("button",{key:s.id,type:"button",class:pe(["action-btn",s.variant||"plain"]),onClick:i=>r.$emit("action",e.item.notificationId,s.id)},J(s.label),11,my))),128))])):fe("",!0)],2))}}),[["__scopeId","data-v-19f1746c"]]),by={key:0,class:"status-notification-stack"},yy=Ae(_e({__name:"StatusNotificationStack",setup(e){function t(r){V.dismissDownloadNotification(r)}function n(r,o){V.triggerDownloadNotificationAction(r,o)}return(r,o)=>C(h).downloadNotifications.length>0?(R(),U("div",by,[ee(Dp,{name:"vertical-list",tag:"div",class:"list"},{default:Ve(()=>[(R(!0),U(ve,null,Be(C(h).downloadNotifications,s=>(R(),ue(vy,{key:s.notificationId,item:s,onDismiss:t,onAction:n},null,8,["item"]))),128))]),_:1})])):fe("",!0)}}),[["__scopeId","data-v-cded4c82"]]),wy={class:"ehunter-app normalize"},_y={key:0,style:{display:"flex","flex-direction":"row",width:"100%",height:"100%"}},ky=_e({__name:"App",setup(e){const t=te(!1),n=En(Ts);return yt(()=>{Cm(n),t.value=!0}),(r,o)=>(R(),U("div",wy,[t.value?(R(),U("div",_y,[ee(hy),ee(yy)])):fe("",!0)]))}}),xy={class:"ehunter-container vue-container"},Sy=_e({__name:"TestApp",setup(e){return(t,n)=>(R(),U("div",xy,[ee(ky)]))}});var It=(e=>(e.EH="EH",e.NH="NH",e.TEST="TEST",e))(It||{});class Do extends Error{constructor(n,r,o){super(n);re(this,"platform");re(this,"url");re(this,"timestamp");this.name="InitializationError",this.platform=r,this.url=o,this.timestamp=new Date}}function Cy(){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:It.EH,host:e,pathname:n,isAlbumPage:!0};const s=/^\/g\/\d+\/\d+\/$/.test(n);return t==="nhentai.net"&&s?{platform:It.NH,host:e,pathname:n,isAlbumPage:!0}:t==="localhost"||/^\d{1,3}(?:\.\d{1,3}){3}$/.test(t)?{platform:It.TEST,host:e,pathname:n,isAlbumPage:!0}:{platform:null,host:e,pathname:n,isAlbumPage:!1}}let hc=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}},nh=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/,c=n.innerHTML.match(i),a=`background:transparent url(${c[1]}) ${c[2]} no-repeat`;return{id:s,index:0,pageUrl:s,src:"",thumbHeight:r,thumbWidth:o,heightOfWidth:r/o,thumbStyle:a}}):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:Mn.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 Ty{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 Pn(t).setFetchSetting(this.fetchSetting).request().then(n=>this.gen.next({url:t,html:n},r=>this.gen.throw(r)))}}class rh{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 Ty(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 Ey{constructor(t,n){re(this,"introUrl");re(this,"sumOfIntroPage");re(this,"introPageUrls");this.introUrl=t,this.sumOfIntroPage=0,this.introPageUrls=[]}request(){return Ie(this,null,function*(){let t=yield new rh([this.introUrl]).request();return this.sumOfIntroPage=new nh(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 Ie(this,null,function*(){let t=yield new rh(this.introPageUrls).request(),n=this.introPageUrls.reduce((o,s)=>(o=o.concat(new nh(t.get(s),s).getImgUrls()),o),[]),r=0;return n.forEach(o=>{o.index=r++}),n})}}const Ay="ehunterMockThumbParseError";function Iy(){try{return new URLSearchParams(window.location.search).get(Ay)==="1"}catch(e){return!1}}class Dy{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);const t=document.documentElement.outerHTML;this.imgHtmlParser=new hc(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}init(){return Ie(this,null,function*(){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;const t=new Ey(this.introUrl,this.pageCount);if(Iy())return new Error("MOCK_THUMB_PARSE_ERROR: failed to parse thumbnail list");this.imgPageInfos=yield t.request(),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]:"",c=s?parseInt(s[1],10):0;return{id:n.id,src:i,mode:Mn.SPIRIT,style:n.thumbStyle,height:n.thumbHeight||0,width:n.thumbWidth||0,offset:c}}else return{id:n.id,src:"",mode:Mn.IMG,height:n.thumbHeight||0,width:n.thumbWidth||0}}),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){return 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 Ie(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 Pn(r.pageUrl).request(),i=new hc(s);switch(n){case Ye.Origin:try{r.src=i.getOriginalImgUrl()}catch(c){return new Error("ERROR_NO_ORIGIN")}break;case Ye.ChangeSource:try{const c=i.getSourceId();if(!c)return new Error("ERROR_CHANGE_SOURCE");const u=yield new Pn(`${r.pageUrl}?nl=${c}`).request(),l=new hc(u);return r.src=l.getImgUrl(),r.preciseHeightOfWidth=l.getPreciseHeightOfWidth(),r}catch(c){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 oh{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 qy{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:Mn.IMG,src:n,style:"",height:0,width:0})})}getImgPageInfos(){return this.imgPageInfos}getThumbInfos(){return this.thumbInfos}}class Py{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","");const t=document.documentElement.outerHTML;this.imgHtmlParser=new oh(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}init(){return Ie(this,null,function*(){try{this.pageCount=this.imgHtmlParser.getPageCount(),this.albumId=this.imgHtmlParser.getAlbumId(),this.introUrl=this.imgHtmlParser.getIntroUrl(),this.curPageIndex=this.imgHtmlParser.getCurPageNum()-1;const t=yield new Pn(this.introUrl).request(),n=new qy(t);this.title=n.getTitle(),this.imgPageInfos=n.getImgPageInfos(),this.thumbInfos=n.getThumbInfos()}catch(t){return t instanceof Error?t:new Error(String(t))}})}getThumbInfos(t){return this.thumbInfos}getImgPageInfos(){return this.imgPageInfos}getImgSrc(t,n){return Ie(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 Bn({},r);const o=new Pn(r.pageUrl);o.setTimeOutTime(5);const s=yield o.request(),i=new oh(s),c=i.getImgUrl(),a=i.getImgHeight(),u=i.getImgWidth();return this.imgPageInfos[t].src=c,a>0&&u>0&&(this.imgPageInfos[t].preciseHeightOfWidth=a/u),Bn({},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"}}}let sh=[],Ry={0:"/2195608-00.jpg",1:"/2195608-01.jpg",2:"/2195608-02.jpg",3:"/2195608-03.jpg"};for(let e=0;e<64;e++)sh.push({id:String(e),src:Ry[Math.floor(e/20)],mode:0,offset:e%20*100});let Sr=[];for(let e=0;e<64;e++)Sr.push({id:e,index:e,pageUrl:"/"+(e+1+"").padStart(2,"0")+".jpg",src:"",heightOfWidth:1.4});class My{constructor(t){}isSupportOriginImg(){return!0}isSupportImgChangeSource(){return!0}isSupportThumbView(){return!0}getTitle(){return"title"}getAlbumId(){return"id"}getIntroUrl(){return"/g/id/test/"}getPageCount(){return 64}getCurPageIndex(){return 0}init(){return Ie(this,null,function*(){})}getThumbInfos(t){return sh}getImgPageInfos(){return Sr}getImgSrc(t,n){return Ie(this,null,function*(){return Sr[t].src=Sr[t].pageUrl,Sr[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 c=o*i;return{"background-image":`url(${r.src})`,"background-position":`${c*100}% 0`,"background-size":n.heightOfWidth>=1.43?"cover":`${s*100}%`}}}function Fy(e){switch(e){case It.EH:return new Dy;case It.NH:return new Py;case It.TEST:return new My("");default:throw new Error(`Unsupported platform: ${e}`)}}function Ly(e,t){return Ie(this,null,function*(){const r=new Promise((o,s)=>{setTimeout(()=>{s(new Do("Platform initialization timed out after 60 seconds",t,window.location.href))},6e4)});try{const o=yield Promise.race([e.init(),r]);if(o instanceof Error)throw new Do(`Platform initialization failed: ${o.message}`,t,window.location.href)}catch(o){throw o instanceof Do?o:new Do(o instanceof Error?o.message:"Unknown initialization error",t,window.location.href)}})}const Ny="ehunter-host-block-style-nh",Oy="ehunter-host-block-script-eh",By="ehunter-host-block-script-nh";function Vy(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 ih(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 zy(){ih(Oy,`
      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 Hy(){ih(By,`
      console._clear = console.clear;
      console.clear = function () {};
    `),Vy(Ny,".ts-im-container { display: none !important; }")}function $y(e){if(e===It.EH){zy();return}e===It.NH&&Hy()}const On=Cy(),ch="ehunter:reader:open",ah="ehunter-switch",qo="ehunter-app",lh=720,dc=580,uh="cubic-bezier(0.22, 1, 0.36, 1)",Uy="cubic-bezier(0.55, 0.08, 0.68, 0.53)";function jy(){const e=zt.storageGet(ch,!0);return typeof e=="boolean"?e:e==="true"?!0:e!=="false"}function pc(e){zt.storageSet(ch,e)}function Wy(e){const t=document.getElementById(ah);t&&t.remove();const n=document.createElement("div");n.style.display="flex",n.style.flexDirection="column",n.style.justifyContent="center",n.style.alignItems="center",n.style.position="fixed",n.style.right="100px",n.style.top="-150px",n.style.zIndex="2147483646",n.style.cursor="pointer",n.style.transition="all 0.2s cubic-bezier(.46,-0.23,.37,2.38)",n.setAttribute("title","open eHunter"),n.setAttribute("id",ah),n.addEventListener("click",()=>{n.style.top="-50px",window.setTimeout(()=>{n.style.top="-150px"},2e3),e()});const r=document.createElement("span");r.style.width="2px",r.style.height="200px",r.style.background="#2ecc71",r.style.boxShadow="0 1px 6px rgba(0,0,0,.117647), 0 1px 4px rgba(0,0,0,.117647)",n.appendChild(r);const o=document.createElement("span");o.style.border="2px solid #2ecc71",o.style.borderRadius="50%",o.style.width="15px",o.style.height="15px",o.style.boxShadow="0 1px 6px rgba(0,0,0,.117647), 0 1px 4px rgba(0,0,0,.117647)",n.appendChild(o),document.body.appendChild(n)}if(!On.platform)console.log("eHunter: No platform detected (non-album page), skipping initialization");else{console.log(`eHunter: Platform detected: ${On.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),c=()=>{if(On.platform!==It.EH||!i())return;let g=document.querySelector('meta[name="viewport"]');const T="width=device-width, initial-scale=1, viewport-fit=cover";s||(o=!!g,r=g?g.getAttribute("content"):null,s=!0),g||(g=document.createElement("meta"),g.name="viewport",g.setAttribute("data-ehunter-managed","1"),(document.head||document.documentElement).appendChild(g)),g.setAttribute("content",T)},a=()=>{if(!s)return;const g=document.querySelector('meta[name="viewport"]');o?g&&(r===null?g.removeAttribute("content"):g.setAttribute("content",r)):(g==null?void 0:g.getAttribute("data-ehunter-managed"))==="1"&&g.remove(),r=null,o=!1,s=!1},u=()=>{n!==null&&(window.clearTimeout(n),n=null)},l=(g,T)=>{u(),n=window.setTimeout(()=>{g.style.visibility="hidden",g.style.pointerEvents="none",n=null},T)},f=()=>{let g=document.getElementById(qo);if(g||(g=document.createElement("div"),g.id=qo,g.classList.add("normalize"),g.style.position="fixed",g.style.height="100%",g.style.width="100%",g.style.transitionProperty="top",g.style.transitionDuration=`${lh}ms`,g.style.transitionTimingFunction=uh,g.style.background="#333333",g.style.zIndex="2147483647",g.style.top="-100%",g.style.left="0",g.style.visibility="hidden",g.style.pointerEvents="none",document.body.appendChild(g)),!e){const T=zp({setup(){const w=te(!0),y=te(null);return Ie(null,null,function*(){try{t||($y(On.platform),t=!0);const S=Fy(On.platform);T.provide(Ts,S),yield Ly(S,On.platform),w.value=!1}catch(S){w.value=!1,y.value=S,console.error("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:()=>{pc(!1),a(),document.body.style.overflow="";const S=document.getElementById(qo);S&&(S.style.top="-100%",l(S,dc))}}},render(){return vs(D0,{isLoading:this.isLoading,error:this.error,onClose:this.handleClose},{default:()=>vs(Sy)})}});T.mount(`#${qo}`),e=!0}return g},p=g=>{const T=f();if(u(),T.style.transitionProperty="top",T.style.transitionDuration=g?`${lh}ms`:`${dc}ms`,T.style.transitionTimingFunction=g?uh:Uy,document.body.style.overflow=g?"hidden":"",g){c(),T.style.visibility="visible",T.style.pointerEvents="auto",requestAnimationFrame(()=>{T.style.top="0"});return}a(),T.style.top="-100%",l(T,dc)},d=()=>{pc(!0),p(!0)},v=()=>{pc(!1),p(!1)};window.__EHUNTER_UI__={open:d,close:v,toggle:p},Wy(d),jy()&&d()}})();