diff --git a/app/src/main/assets/web/bookSource/css/app.944d83f6.css b/app/src/main/assets/web/bookSource/css/app.944d83f6.css new file mode 100644 index 000000000..a048f159d --- /dev/null +++ b/app/src/main/assets/web/bookSource/css/app.944d83f6.css @@ -0,0 +1 @@ +@font-face{font-family:Cascadia;src:url(../fonts/Cascadia-Code-Regular-2.97c09831.ttf)}.editor{display:flex;align-items:stretch;height:100vh}.left{width:calc(50% - 55px);min-width:500px;display:inline-block}.main{width:100%;height:calc(100vh - 64px);overflow-y:auto}textarea{min-height:20px;flex:1;outline:none;border-radius:4px;border:1px solid #ccc;font-size:14px;font-family:Cascadia,Microsoft YaHei UI,Arial,serif;line-height:20px;padding:10px 10px 10px}.fixed[data-v-ab8a8a34]{position:fixed;top:100px;left:50%;transform:translateX(-50%)}.half-circle-spinner [data-v-ab8a8a34],.half-circle-spinner[data-v-ab8a8a34]{box-sizing:border-box}.half-circle-spinner[data-v-ab8a8a34]{width:60px;height:60px;border-radius:100%;position:relative}.half-circle-spinner .circle[data-v-ab8a8a34]{content:"";position:absolute;width:100%;height:100%;border-radius:100%;border:6px solid transparent}.half-circle-spinner .circle.circle-1[data-v-ab8a8a34]{border-top-color:#ff1d5e;-webkit-animation:half-circle-spinner-animation-ab8a8a34 1s infinite;animation:half-circle-spinner-animation-ab8a8a34 1s infinite}.half-circle-spinner .circle.circle-2[data-v-ab8a8a34]{border-bottom-color:#ff1d5e;-webkit-animation:half-circle-spinner-animation-ab8a8a34 1s infinite alternate;animation:half-circle-spinner-animation-ab8a8a34 1s infinite alternate}@-webkit-keyframes half-circle-spinner-animation-ab8a8a34{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes half-circle-spinner-animation-ab8a8a34{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.warm[data-v-27eae50d]{position:fixed;top:100px;left:50%;transform:translateX(-50%);color:#eee;background-color:#ff1d5e;padding:20px;border-radius:8px;font-size:18px}button[data-v-27eae50d]{float:right;width:70px;height:35px;outline:none;border:unset;border-radius:8px;font-size:14px;transition:background-color .3s ease}.success[data-v-bef92f74],button[data-v-27eae50d]:hover{color:#333;background-color:#7fffd4}.success[data-v-bef92f74]{z-index:3;position:fixed;top:100px;left:50%;transform:translateX(-50%);padding:10px;border-radius:8px}p[data-v-bef92f74]{margin:0}.menu{display:flex;flex-direction:column;justify-content:center}button[data-v-3fa941b0]{width:100px;height:50px;margin:5px;outline:none;padding:10px;font-size:16px;border-radius:4px;box-sizing:border-box;border:1px solid #333;background-color:transparent;transition:all .3s ease;overflow:hidden}button span[data-v-3fa941b0]{display:inline-block;transform:translateY(20px);opacity:0;font-size:12px;transition:all .3s ease}button[data-v-3fa941b0]:hover{color:#fff;background-color:gray}button:hover span[data-v-3fa941b0]{transform:translateY(0);opacity:1}textarea[data-v-4301c68c]{font-size:14px}input[data-v-f11ea0d0]{outline:none;height:25px;font-size:16px}textarea[data-v-f11ea0d0]{font-size:14px}.search[data-v-7d0424af]{border:1px solid #ddd;border-radius:4px}input[data-v-7d0424af]{text-align:center;font-size:16px;height:25px;outline:none}.tool[data-v-7d0424af]{display:flex;justify-content:space-around;padding:4px 0}.tool button[data-v-7d0424af]{border-radius:4px;padding:5px;outline:none;border:none;flex:1;margin:0 2px}.tool button[data-v-7d0424af]:hover{background-color:#ddd}input[type=checkbox][data-v-7d0424af]{transform:scale(2);margin:0 15px 0}.book_item[data-v-7d0424af]{display:flex;align-items:center;margin-top:10px;padding:10px;cursor:pointer;background-color:#eee}.book_active[data-v-7d0424af]{background-color:#32cd32}.book_index[data-v-7d0424af]{width:30px;height:30px;text-align:center;line-height:30px;border-radius:50%;background-color:#ffb6c1}.book_info[data-v-7d0424af]{width:500px;display:flex;justify-content:space-between}.book_list[data-v-7d0424af]{height:calc(100vh - 125px);overflow-y:auto}a[data-v-d4554fa8]{display:block;height:25px;transition:margin-left .3s ease}a[data-v-d4554fa8]:hover{color:red;margin-left:10px}code[data-v-d4554fa8]{display:inline-block;font-size:16px;font-family:Cascadia Mono,JetBrains Mono,Microsoft YaHei UI,serif;background-color:#f3f4f4;border-radius:4px}.author[data-v-d4554fa8]{position:fixed;right:20px;bottom:20px}.author a[data-v-d4554fa8]{padding:5px 10px;border-radius:4px}.author a[data-v-d4554fa8]:hover{box-shadow:0 0 3px 3px #ccc;background-color:#ddd}.out{min-width:620px}.out,.out .box{flex:1;display:flex;flex-flow:column}a{text-decoration:none;color:#333}body,ul{margin:0;padding:0}ul{width:100%;height:40px;display:flex}ul li{display:block;text-align:center;line-height:40px;width:16%;list-style:none;cursor:pointer}ul li:hover{color:red}.active{color:#fff!important;background-color:hsla(0,0%,50%,.459);border-bottom:unset!important}ul li[data-v-de4729c0]{border-bottom:2px solid #333}a[data-v-de4729c0]{font-size:18px;color:blue}span[data-v-3974490a]{display:flex;justify-content:space-around;width:70px;white-space:nowrap}span i[data-v-3974490a]{font-style:normal}.edit_input[data-v-3974490a]{display:flex;justify-content:space-between;align-items:center;margin:10px 5px} \ No newline at end of file diff --git a/app/src/main/assets/web/bookSource/favicon.ico b/app/src/main/assets/web/bookSource/favicon.ico new file mode 100644 index 000000000..c3d5e6bc0 Binary files /dev/null and b/app/src/main/assets/web/bookSource/favicon.ico differ diff --git a/app/src/main/assets/web/bookSource/fonts/Cascadia-Code-Regular-2.97c09831.ttf b/app/src/main/assets/web/bookSource/fonts/Cascadia-Code-Regular-2.97c09831.ttf new file mode 100644 index 000000000..1453bc271 Binary files /dev/null and b/app/src/main/assets/web/bookSource/fonts/Cascadia-Code-Regular-2.97c09831.ttf differ diff --git a/app/src/main/assets/web/bookSource/index.css b/app/src/main/assets/web/bookSource/index.css deleted file mode 100644 index 97cd3ca6e..000000000 --- a/app/src/main/assets/web/bookSource/index.css +++ /dev/null @@ -1,150 +0,0 @@ -body { - margin: 0; -} -.editor { - display: flex; - align-items: stretch; -} -.setbox, -.menu, -.outbox { - flex: 1; - display: flex; - flex-flow: column; - max-height: 100vh; - overflow-y: auto; -} -.menu { - justify-content: center; - max-width: 90px; - margin: 0 5px; -} -.menu .button { - width: 90px; - height: 30px; - min-height: 30px; - margin: 5px 0px; - cursor: pointer; -} -@keyframes stroker { - 0% { - stroke-dashoffset: 0; - } - 100% { - stroke-dashoffset: -240; - } -} -.button rect { - width: 100%; - height: 100%; - fill: transparent; - stroke: #666; - stroke-width: 2px; -} -.button rect.busy { - stroke: #fd1850; - stroke-dasharray: 30 90; - animation: stroker 1s linear infinite; -} -.button text { - text-anchor: middle; - dominant-baseline: middle; -} -.setbox { - min-width: 40em; -} -.rules { - overflow: auto; -} -.tabbox { - flex: 1; - display: flex; - flex-flow: column; -} -.rules > * { - display: flex; - margin: 2px 0; -} -.rules textarea { - flex: 1; - margin-left: 5px; -} -.rules > *, -.rules > * > div, -.rules textarea { - min-height: 1em; -} -textarea { - word-break: break-all; -} -.tabtitle { - display: flex; - z-index: 1; - justify-content: flex-end; -} -.tabtitle > div { - cursor: pointer; - padding: 1px 10px 0 10px; - border-bottom: 3px solid transparent; - font-weight: bold; -} -.tabtitle > .this { - color: #4f9da6; - border-bottom-color: #4ebbe4; -} -.tabbody { - flex: 1; - display: flex; - margin-top: -1px; - border: 1px solid #a9a9a9; - height: 0; -} -.tabbody > * { - flex: 1; - flex-flow: column; - display: none; -} -.tabbody > .this { - display: flex; -} -.tabbody > * > .titlebar { - display: flex; -} -.tabbody > * > .titlebar > * { - flex: 1; - margin: 1px 1px 1px 1px; -} -.tabbody > * > .context { - flex: 1; - flex-flow: column; - border: 0; - padding: 5px; - overflow-y: auto; -} -.tabbody > * > .inputbox { - border: 0; - border-bottom: #a9a9a9 solid 1px; - height: 15px; - text-align: center; -} -.link > * { - display: flex; - margin: 5px; - border-bottom: 1px solid; - text-decoration: none; -} -#RuleList > label > * { - background: #eee; - padding-left: 3px; - margin: 2px 0; - cursor: pointer; -} -#RuleList input[type="radio"] { - display: none; -} -#RuleList input[type="radio"]:checked + * { - background: #15cda8; -} -.isError { - color: #ff0000; -} diff --git a/app/src/main/assets/web/bookSource/index.html b/app/src/main/assets/web/bookSource/index.html index c67a810f7..eeee89eb5 100644 --- a/app/src/main/assets/web/bookSource/index.html +++ b/app/src/main/assets/web/bookSource/index.html @@ -1,439 +1 @@ - - - - - - 阅读3.0源编辑器_V4.0 - - - - - -
-
-
- ←主页 - 书源 -
-
-
基本
-
-
源域名 :
- -
-
-
源类型 :
- -
-
-
源名称 :
- -
-
-
源分组 :
- -
-
-
源注释 :
- -
-
-
登录地址:
- -
-
-
登录界面:
- -
-
-
登录检测:
- -
-
-
并发率 :
- -
-
-
请求头 :
- -
-
-
链接验证:
- -
-

-
搜索
-
-
搜索地址:
- -
-
-
校验文字:
- -
-
-
列表规则:
- -
-
-
书名规则:
- -
-
-
作者规则:
- -
-
-
分类规则:
- -
-
-
字数规则:
- -
-
-
最新章节:
- -
-
-
简介规则:
- -
-
-
封面规则:
- -
-
-
详情地址:
- -
-

-
发现
-
-
发现地址:
- -
-
-
列表规则:
- -
-
-
书名规则:
- -
-
-
作者规则:
- -
-
-
分类规则:
- -
-
-
字数规则:
- -
-
-
最新章节:
- -
-
-
简介规则:
- -
-
-
封面规则:
- -
-
-
详情地址:
- -
-

-
详情
-
-
预处理 :
- -
-
-
书名规则:
- -
-
-
作者规则:
- -
-
-
分类规则:
- -
-
-
字数规则:
- -
-
-
最新章节:
- -
-
-
简介规则:
- -
-
-
封面规则:
- -
-
-
目录地址:
- -
-

-
目录
-
-
列表规则:
- -
-
-
章节名称:
- -
-
-
章节地址:
- -
-
-
卷名标识:
- -
-
-
收费标识:
- -
-
-
购买标识:
- -
-
-
章节信息:
- -
-
-
翻页规则:
- -
-

-
正文
-
-
脚本注入:
- -
-
-
正文规则:
- -
-
-
翻页规则:
- -
-
-
资源正则:
- -
-
-
替换规则:
- -
-
-
图片样式:
- -
-
-
购买操作:
- -
-

-
其它规则
-
-
启用搜索:
- -
-
-
启用发现:
- -
-
-
搜索权重:
- -
-
-
排序编号:
- -
-
-
更新时间:
- -
-
-
- -
-
-
-
编辑源
-
调试源
-
源列表
-
帮助信息
-
-
-
- -
-
- - -
-
- -
- - - - -
-
-
-
- -
-
-
-
-
- - - - \ No newline at end of file +legado_web_editor
\ No newline at end of file diff --git a/app/src/main/assets/web/bookSource/index.js b/app/src/main/assets/web/bookSource/index.js deleted file mode 100644 index b93661bc1..000000000 --- a/app/src/main/assets/web/bookSource/index.js +++ /dev/null @@ -1,516 +0,0 @@ -// 简化js原生选择器 -function $(selector) { return document.querySelector(selector); } -function $$(selector) { return document.querySelectorAll(selector); } -// 读写Hash值(val未赋值时为读取) -function hashParam(key, val) { - let hashstr = decodeURIComponent(window.location.hash); - let regKey = new RegExp(`${key}=([^&]*)`); - let getVal = regKey.test(hashstr) ? hashstr.match(regKey)[1] : null; - if (val == undefined) return getVal; - if (hashstr == '' || hashstr == '#') { - window.location.hash = `#${key}=${val}`; - } - else { - if (getVal) window.location.hash = hashstr.replace(getVal, val); - else { - window.location.hash = hashstr.indexOf(key) > -1 ? hashstr.replace(regKey, `${key}=${val}`) : `${hashstr}&${key}=${val}`; - } - } -} -// 创建源规则容器对象 -function Container() { - let ruleJson = {}; - let searchJson = {}; - let exploreJson = {}; - let bookInfoJson = {}; - let tocJson = {}; - let contentJson = {}; - - // 基本以及其他 - $$('.rules .base').forEach(item => ruleJson[item.title] = ''); - ruleJson.lastUpdateTime = 0; - ruleJson.customOrder = 0; - ruleJson.weight = 0; - ruleJson.enabled = true; - ruleJson.enabledExplore = true; - - // 搜索规则 - $$('.rules .ruleSearch').forEach(item => searchJson[item.title] = ''); - ruleJson.ruleSearch = searchJson; - - // 发现规则 - $$('.rules .ruleExplore').forEach(item => exploreJson[item.title] = ''); - ruleJson.ruleExplore = exploreJson; - - // 详情页规则 - $$('.rules .ruleBookInfo').forEach(item => bookInfoJson[item.title] = ''); - ruleJson.ruleBookInfo = bookInfoJson; - - // 目录规则 - $$('.rules .ruleToc').forEach(item => tocJson[item.title] = ''); - ruleJson.ruleToc = tocJson; - - // 正文规则 - $$('.rules .ruleContent').forEach(item => contentJson[item.title] = ''); - ruleJson.ruleContent = contentJson; - - return ruleJson; -} -// 选项卡Tab切换事件处理 -function showTab(tabName) { - $$('.tabtitle>*').forEach(node => { node.className = node.className.replace(' this', ''); }); - $$('.tabbody>*').forEach(node => { node.className = node.className.replace(' this', ''); }); - $(`.tabbody>.${$(`.tabtitle>*[name=${tabName}]`).className}`).className += ' this'; - $(`.tabtitle>*[name=${tabName}]`).className += ' this'; - hashParam('tab', tabName); -} -// 源列表列表标签构造函数 -function newRule(rule) { - return ``; -} -// 缓存规则列表 -var RuleSources = []; -if (localStorage.getItem('BookSources')) { - RuleSources = JSON.parse(localStorage.getItem('BookSources')); - RuleSources.forEach(item => $('#RuleList').innerHTML += newRule(item)); -} -// 页面加载完成事件 -window.onload = () => { - $$('.tabtitle>*').forEach(item => { - item.addEventListener('click', () => { - showTab(item.innerHTML); - }); - }); - if (hashParam('tab')) showTab(hashParam('tab')); -} -// 获取数据 -function HttpGet(url) { - return fetch(hashParam('domain') ? hashParam('domain') + url : url) - .then(res => res.json()).catch(err => console.error('Error:', err)); -} -// 提交数据 -function HttpPost(url, data) { - return fetch(hashParam('domain') ? hashParam('domain') + url : url, { - body: JSON.stringify(data), - method: 'POST', - mode: "cors", - headers: new Headers({ - 'Content-Type': 'application/json;charset=utf-8' - }) - }).then(res => res.json()).catch(err => console.error('Error:', err)); -} -// 将源表单转化为源对象 -function rule2json() { - let RuleJSON = Container(); - // 转换base - Object.keys(RuleJSON).forEach(key => { - if (!key.startsWith("rule")) { - RuleJSON[key] = $('#' + key).value; - } - }); - - // 转换搜索规则 - let searchJson = {}; - Object.keys(RuleJSON.ruleSearch).forEach(key => { - if ($('#' + 'ruleSearch_' + key).value) - searchJson[key] = $('#' + 'ruleSearch_' + key).value; - }); - RuleJSON.ruleSearch = searchJson; - - // 转换发现规则 - let exploreJson = {}; - Object.keys(RuleJSON.ruleExplore).forEach(key => { - if ($('#' + 'ruleExplore_' + key).value) - exploreJson[key] = $('#' + 'ruleExplore_' + key).value; - }); - RuleJSON.ruleExplore = exploreJson; - - // 转换详情页规则 - let bookInfoJson = {}; - Object.keys(RuleJSON.ruleBookInfo).forEach(key => { - if ($('#' + 'ruleBookInfo_' + key).value) - bookInfoJson[key] = $('#' + 'ruleBookInfo_' + key).value; - }); - RuleJSON.ruleBookInfo = bookInfoJson; - - // 转换目录规则 - let tocJson = {}; - Object.keys(RuleJSON.ruleToc).forEach(key => { - if ($('#' + 'ruleToc_' + key).value) - tocJson[key] = $('#' + 'ruleToc_' + key).value; - }); - RuleJSON.ruleToc = tocJson; - - // 转换正文规则 - let contentJson = {}; - Object.keys(RuleJSON.ruleContent).forEach(key => { - if ($('#' + 'ruleContent_' + key).value) - contentJson[key] = $('#' + 'ruleContent_' + key).value; - }); - RuleJSON.ruleContent = contentJson; - - RuleJSON.lastUpdateTime = new Date().getTime(); - RuleJSON.customOrder = RuleJSON.customOrder == '' ? 0 : parseInt(RuleJSON.customOrder); - RuleJSON.weight = RuleJSON.weight == '' ? 0 : parseInt(RuleJSON.weight); - RuleJSON.bookSourceType == RuleJSON.bookSourceType == '' ? 0 : parseInt(RuleJSON.bookSourceType); - RuleJSON.enabled = RuleJSON.enabled == '' || String(RuleJSON.enabled).toLocaleLowerCase().replace(/^\s*|\s*$/g, '') == 'true'; - RuleJSON.enabledExplore = RuleJSON.enabledExplore == '' || String(RuleJSON.enabledExplore).toLocaleLowerCase().replace(/^\s*|\s*$/g, '') == 'true'; - return RuleJSON; -} -// 将源对象填充到源表单 -function json2rule(RuleEditor) { - let RuleJSON = Container(); - // 转换base - Object.keys(RuleJSON).forEach(key => { - if (!key.startsWith("rule")) { - let val = RuleEditor[key]; - if (typeof val == "number") { - $("#" + key).value = val ? String(val) : '0'; - } - else if (typeof val == "boolean") { - $("#" + key).value = val ? String(val) : 'false'; - } - else { - $("#" + key).value = val ? String(val) : ''; - } - } - }); - - // 转换搜索规则 - if (RuleEditor.ruleSearch) { - let searchJson = RuleEditor.ruleSearch; - Object.keys(RuleJSON.ruleSearch).forEach(key => { - $('#' + 'ruleSearch_' + key).value = searchJson[key] ? searchJson[key] : ''; - }); - } - - // 转换发现规则 - if (RuleEditor.ruleExplore) { - let exploreJson = RuleEditor.ruleExplore; - Object.keys(RuleJSON.ruleExplore).forEach(key => { - $('#' + 'ruleExplore_' + key).value = exploreJson[key] ? exploreJson[key] : ''; - }); - } - - // 转换详情页规则 - if (RuleEditor.ruleBookInfo) { - let bookInfoJson = RuleEditor.ruleBookInfo; - Object.keys(RuleJSON.ruleBookInfo).forEach(key => { - $('#' + 'ruleBookInfo_' + key).value = bookInfoJson[key] ? bookInfoJson[key] : ''; - }); - } - - // 转换目录规则 - if (RuleEditor.ruleToc) { - let tocJson = RuleEditor.ruleToc; - Object.keys(RuleJSON.ruleToc).forEach(key => { - $('#' + 'ruleToc_' + key).value = tocJson[key] ? tocJson[key] : ''; - }); - } - - // 转换正文规则 - if (RuleEditor.ruleContent) { - let contentJson = RuleEditor.ruleContent; - Object.keys(RuleJSON.ruleContent).forEach(key => { - $('#' + 'ruleContent_' + key).value = contentJson[key] ? contentJson[key] : ''; - }); - } -} -// 记录操作过程 -var course = { "old": [], "now": {}, "new": [] }; -if (localStorage.getItem('bookSourceCourse')) { - course = JSON.parse(localStorage.getItem('bookSourceCourse')); - json2rule(course.now); -} -else { - course.now = rule2json(); - window.localStorage.setItem('bookSourceCourse', JSON.stringify(course)); -} -function todo() { - course.old.push(Object.assign({}, course.now)); - course.now = rule2json(); - course.new = []; - if (course.old.length > 50) course.old.shift(); // 限制历史记录堆栈大小 - localStorage.setItem('bookSourceCourse', JSON.stringify(course)); -} -function undo() { - course = JSON.parse(localStorage.getItem('bookSourceCourse')); - if (course.old.length > 0) { - course.new.push(course.now); - course.now = course.old.pop(); - localStorage.setItem('bookSourceCourse', JSON.stringify(course)); - json2rule(course.now); - } -} -function redo() { - course = JSON.parse(localStorage.getItem('bookSourceCourse')); - if (course.new.length > 0) { - course.old.push(course.now); - course.now = course.new.pop(); - localStorage.setItem('bookSourceCourse', JSON.stringify(course)); - json2rule(course.now); - } -} -function setRule(editRule) { - let checkRule = RuleSources.find(x => x.bookSourceUrl == editRule.bookSourceUrl); - if ($(`input[id="${editRule.bookSourceUrl}"]`)) { - Object.keys(checkRule).forEach(key => { checkRule[key] = editRule[key]; }); - $(`input[id="${editRule.bookSourceUrl}"]+*`).innerHTML = `${editRule.bookSourceName}
${editRule.bookSourceUrl}`; - } else { - RuleSources.push(editRule); - $('#RuleList').innerHTML += newRule(editRule); - } -} -$$('input').forEach((item) => { item.addEventListener('change', () => { todo() }) }); -$$('textarea').forEach((item) => { item.addEventListener('change', () => { todo() }) }); -// 处理按钮点击事件 -$('.menu').addEventListener('click', e => { - let thisNode = e.target; - thisNode = thisNode.parentNode.nodeName == 'svg' ? thisNode.parentNode.querySelector('rect') : - thisNode.nodeName == 'svg' ? thisNode.querySelector('rect') : null; - if (!thisNode) return; - if (thisNode.getAttribute('class') == 'busy') return; - thisNode.setAttribute('class', 'busy'); - switch (thisNode.id) { - case 'push': - $$('#RuleList>label>div').forEach(item => { item.className = ''; }); - (async () => { - await HttpPost(`/saveBookSources`, RuleSources).then(json => { - if (json.isSuccess) { - let okData = json.data; - if (Array.isArray(okData)) { - let failMsg = ``; - if (RuleSources.length > okData.length) { - RuleSources.forEach(item => { - if (okData.find(x => x.bookSourceUrl == item.bookSourceUrl)) { } - else { $(`#RuleList #${item.bookSourceUrl}+*`).className += 'isError'; } - }); - failMsg = '\n推送失败的源将用红色字体标注!'; - } - alert(`批量推送源到「阅读3.0APP」\n共计: ${RuleSources.length} 条\n成功: ${okData.length} 条\n失败: ${RuleSources.length - okData.length} 条${failMsg}`); - } - else { - alert(`批量推送源到「阅读3.0APP」成功!\n共计: ${RuleSources.length} 条`); - } - } - else { - alert(`批量推送源失败!\nErrorMsg: ${json.errorMsg}`); - } - }).catch(err => { alert(`批量推送源失败,无法连接到「阅读3.0APP」!\n${err}`); }); - thisNode.setAttribute('class', ''); - })(); - return; - case 'pull': - showTab('源列表'); - (async () => { - await HttpGet(`/getBookSources`).then(json => { - if (json.isSuccess) { - $('#RuleList').innerHTML = '' - localStorage.setItem('BookSources', JSON.stringify(RuleSources = json.data)); - RuleSources.forEach(item => { - $('#RuleList').innerHTML += newRule(item); - }); - alert(`成功拉取 ${RuleSources.length} 条源`); - } - else { - alert(`批量拉取源失败!\nErrorMsg: ${json.errorMsg}`); - } - }).catch(err => { alert(`批量拉取源失败,无法连接到「阅读3.0APP」!\n${err}`); }); - thisNode.setAttribute('class', ''); - })(); - return; - case 'editor': - if ($('#RuleJsonString').value == '') break; - try { - json2rule(JSON.parse($('#RuleJsonString').value)); - todo(); - } catch (error) { - console.log(error); - alert(error); - } - break; - case 'conver': - showTab('编辑源'); - $('#RuleJsonString').value = JSON.stringify(rule2json(), null, 4); - break; - case 'initial': - $$('.rules textarea').forEach(item => { item.value = '' }); - todo(); - break; - case 'undo': - undo() - break; - case 'redo': - redo() - break; - case 'debug': - showTab('调试源'); - let wsOrigin = (hashParam('domain') || location.origin).replace(/^.*?:/, 'ws:').replace(/\d+$/, (port) => (parseInt(port) + 1)); - let DebugInfos = $('#DebugConsole'); - function DebugPrint(msg) { DebugInfos.value += `\n${msg}`; DebugInfos.scrollTop = DebugInfos.scrollHeight; } - let saveRule = [rule2json()]; - HttpPost(`/saveBookSources`, saveRule).then(sResult => { - if (sResult.isSuccess) { - let sKey = DebugKey.value ? DebugKey.value : '我的'; - $('#DebugConsole').value = `源《${saveRule[0].bookSourceName}》保存成功!使用搜索关键字“${sKey}”开始调试...`; - let ws = new WebSocket(`${wsOrigin}/bookSourceDebug`); - ws.onopen = () => { - ws.send(`{"tag":"${saveRule[0].bookSourceUrl}", "key":"${sKey}"}`); - }; - ws.onmessage = (msg) => { - console.log('[调试]', msg); - DebugPrint(msg.data); - }; - ws.onerror = (err) => { - throw `${err.data}`; - } - ws.onclose = () => { - thisNode.setAttribute('class', ''); - DebugPrint(`\n调试服务已关闭!`); - } - } else throw `${sResult.errorMsg}`; - }).catch(err => { - DebugPrint(`调试过程意外中止,以下是详细错误信息:\n${err}`); - thisNode.setAttribute('class', ''); - }); - return; - case 'accept': - (async () => { - let saveRule = [rule2json()]; - await HttpPost(`/saveBookSource`, saveRule[0]).then(json => { - alert(json.isSuccess ? `源《${saveRule[0].bookSourceName}》已成功保存到「阅读3.0APP」` : `源《${saveRule[0].bookSourceName}》保存失败!\nErrorMsg: ${json.errorMsg}`); - setRule(saveRule[0]); - }).catch(err => { alert(`保存源失败,无法连接到「阅读3.0APP」!\n${err}`); }); - thisNode.setAttribute('class', ''); - })(); - return; - default: - } - setTimeout(() => { thisNode.setAttribute('class', ''); }, 500); -}); -$('#DebugKey').addEventListener('keydown', e => { - if (e.keyCode == 13) { - let clickEvent = document.createEvent('MouseEvents'); - clickEvent.initEvent("click", true, false); - $('#debug').dispatchEvent(clickEvent); - } -}); -$('#Filter').addEventListener('keydown', e => { - if (e.keyCode == 13) { - let cashList = []; - $('#RuleList').innerHTML = ""; - let sKey = Filter.value ? Filter.value : ''; - if (sKey == '') { - cashList = RuleSources; - } else { - let patt = new RegExp(sKey); - RuleSources.forEach(source => { - if (patt.test(source.bookSourceUrl) || patt.test(source.bookSourceName) || patt.test(source.bookSourceGroup)) { - cashList.push(source); - } - }) - } - cashList.forEach(source => { - $('#RuleList').innerHTML += newRule(source); - }) - } -}); - -// 列表规则更改事件 -$('#RuleList').addEventListener('click', e => { - let editRule = null; - if (e.target && e.target.getAttribute('name') == 'rule') { - editRule = rule2json(); - json2rule(RuleSources.find(x => x.bookSourceUrl == e.target.id)); - } else return; - if (editRule.bookSourceUrl == '') return; - if (editRule.bookSourceName == '') editRule.bookSourceName = editRule.bookSourceUrl.replace(/.*?\/\/|\/.*/g, ''); - setRule(editRule); - localStorage.setItem('BookSources', JSON.stringify(RuleSources)); -}); -// 处理列表按钮事件 -$('.tab3>.titlebar').addEventListener('click', e => { - let thisNode = e.target; - if (thisNode.nodeName != 'BUTTON') return; - switch (thisNode.id) { - case 'Import': - let fileImport = document.createElement('input'); - fileImport.type = 'file'; - fileImport.accept = '.json'; - fileImport.addEventListener('change', () => { - let file = fileImport.files[0]; - let reader = new FileReader(); - reader.onloadend = function (evt) { - if (evt.target.readyState == FileReader.DONE) { - let fileText = evt.target.result; - try { - let fileJson = JSON.parse(fileText); - let newSources = []; - newSources.push(...fileJson); - if (window.confirm(`如何处理导入的源?\n"确定": 覆盖当前列表(不会删除APP源)\n"取消": 插入列表尾部(自动忽略重复源)`)) { - localStorage.setItem('BookSources', JSON.stringify(RuleSources = newSources)); - $('#RuleList').innerHTML = '' - RuleSources.forEach(item => { - $('#RuleList').innerHTML += newRule(item); - }); - } - else { - newSources = newSources.filter(item => !JSON.stringify(RuleSources).includes(item.bookSourceUrl)); - RuleSources.push(...newSources); - localStorage.setItem('BookSources', JSON.stringify(RuleSources)); - newSources.forEach(item => { - $('#RuleList').innerHTML += newRule(item); - }); - } - alert(`成功导入 ${newSources.length} 条源`); - } - catch (err) { - alert(`导入源文件失败!\n${err}`); - } - } - }; - reader.readAsText(file); - }, false); - fileImport.click(); - break; - case 'Export': - let fileExport = document.createElement('a'); - fileExport.download = `Rules${Date().replace(/.*?\s(\d+)\s(\d+)\s(\d+:\d+:\d+).*/, '$2$1$3').replace(/:/g, '')}.json`; - let myBlob = new Blob([JSON.stringify(RuleSources, null, 4)], { type: "application/json" }); - fileExport.href = window.URL.createObjectURL(myBlob); - fileExport.click(); - break; - case 'Delete': - let selectRule = $('#RuleList input:checked'); - if (!selectRule) { - alert(`没有源被选中!`); - return; - } - if (confirm(`确定要删除选定源吗?\n(同时删除APP内源)`)) { - let selectRuleUrl = selectRule.id; - let deleteSources = RuleSources.filter(item => item.bookSourceUrl == selectRuleUrl); // 提取待删除的源 - let laveSources = RuleSources.filter(item => !(item.bookSourceUrl == selectRuleUrl)); // 提取待留下的源 - HttpPost(`/deleteBookSources`, deleteSources).then(json => { - if (json.isSuccess) { - let selectNode = document.getElementById(selectRuleUrl).parentNode; - selectNode.parentNode.removeChild(selectNode); - localStorage.setItem('BookSources', JSON.stringify(RuleSources = laveSources)); - if ($('#bookSourceUrl').value == selectRuleUrl) { - $$('.rules textarea').forEach(item => { item.value = '' }); - todo(); - } - console.log(deleteSources); - console.log(`以上源已删除!`) - } - }).catch(err => { alert(`删除源失败,无法连接到「阅读3.0APP」!\n${err}`); }); - } - break; - case 'ClrAll': - if (confirm(`确定要清空当前源列表吗?\n(不会删除APP内源)`)) { - localStorage.setItem('BookSources', JSON.stringify(RuleSources = [])); - $('#RuleList').innerHTML = '' - } - break; - default: - } -}); diff --git a/app/src/main/assets/web/bookSource/js/app.d3bb1ff0.js b/app/src/main/assets/web/bookSource/js/app.d3bb1ff0.js new file mode 100644 index 000000000..e688b361d --- /dev/null +++ b/app/src/main/assets/web/bookSource/js/app.d3bb1ff0.js @@ -0,0 +1,2 @@ +(function(){"use strict";var t={163:function(t,e,o){var n=o(963),r=o(252);const a={class:"editor"};function i(t,e,o,n,i,l){const c=(0,r.up)("router-view");return(0,r.wg)(),(0,r.iD)("div",a,[(0,r.Wm)(c)])}var l={setup(){}},c=o(744);const s=(0,c.Z)(l,[["render",i]]);var u=s,d=o(201),h=o(577);const p=t=>((0,r.dD)("data-v-de4729c0"),t=t(),(0,r.Cn)(),t),g={class:"left"},m=p((()=>(0,r._)("div",null,[(0,r._)("a",{href:"/"},"←主页"),(0,r._)("b",null,"书源")],-1))),v=["onClick"],b=["onClick"],k=["onClick"],w=["onClick"],S=["onClick"],C=["onClick"],f=["onClick"];function _(t,e,o,n,a,i){const l=(0,r.up)("router-link"),c=(0,r.up)("router-view"),s=(0,r.up)("edit-menu"),u=(0,r.up)("edit-out");return(0,r.wg)(),(0,r.iD)(r.HY,null,[(0,r._)("div",g,[(0,r._)("div",null,[m,(0,r._)("ul",null,[(0,r.Wm)(l,{to:{name:"base"},custom:""},{default:(0,r.w5)((({navigate:t,isActive:e})=>[(0,r._)("li",{onClick:t,class:(0,h.C_)({active:e?"active":""})}," 基础 ",10,v)])),_:1}),(0,r.Wm)(l,{to:{name:"search"},custom:""},{default:(0,r.w5)((({navigate:t,isActive:e})=>[(0,r._)("li",{onClick:t,class:(0,h.C_)({active:e?"active":""})}," 搜索 ",10,b)])),_:1}),(0,r.Wm)(l,{to:{name:"find"},custom:""},{default:(0,r.w5)((({navigate:t,isActive:e})=>[(0,r._)("li",{onClick:t,class:(0,h.C_)({active:e?"active":""})}," 发现 ",10,k)])),_:1}),(0,r.Wm)(l,{custom:"",to:{name:"detail"}},{default:(0,r.w5)((({navigate:t,isActive:e})=>[(0,r._)("li",{onClick:t,class:(0,h.C_)({active:e?"active":""})}," 详情 ",10,w)])),_:1}),(0,r.Wm)(l,{custom:"",to:{name:"directory"}},{default:(0,r.w5)((({navigate:t,isActive:e})=>[(0,r._)("li",{onClick:t,class:(0,h.C_)({active:e?"active":""})}," 目录 ",10,S)])),_:1}),(0,r.Wm)(l,{custom:"",to:{name:"content"}},{default:(0,r.w5)((({navigate:t,isActive:e})=>[(0,r._)("li",{onClick:t,class:(0,h.C_)({active:e?"active":""})}," 正文 ",10,C)])),_:1}),(0,r.Wm)(l,{custom:"",to:{name:"other"}},{default:(0,r.w5)((({navigate:t,isActive:e})=>[(0,r._)("li",{onClick:t,class:(0,h.C_)({active:e?"active":""})}," 其他 ",10,f)])),_:1})])]),(0,r.Wm)(c,null,{default:(0,r.w5)((({Component:t})=>[((0,r.wg)(),(0,r.j4)(r.Ob,null,[((0,r.wg)(),(0,r.j4)((0,r.LL)(t)))],1024))])),_:1})]),(0,r.Wm)(s),(0,r.Wm)(u)],64)}var y=o(262);const I=t=>((0,r.dD)("data-v-3fa941b0"),t=t(),(0,r.Cn)(),t),D={class:"menu"},U=(0,r.Uk)("⇈推送源 "),x=I((()=>(0,r._)("span",null,"Ctrl+P",-1))),T=[U,x],B=(0,r.Uk)("⇊拉取源 "),K=I((()=>(0,r._)("span",null,"Shift+P",-1))),A=[B,K],j=(0,r.Uk)("⋙生成源"),E=I((()=>(0,r._)("span",null,"Ctrl+E",-1))),H=[j,E],N=(0,r.Uk)(" ✗清空表单"),O=I((()=>(0,r._)("span",null,"Shift+C",-1))),L=[N,O],P=(0,r.Uk)("↶撤销操作"),J=I((()=>(0,r._)("span",null,"Ctrl+Z",-1))),Z=[P,J],q=(0,r.Uk)("↷重做操作"),W=I((()=>(0,r._)("span",null,"Shift+R",-1))),$=[q,W],M=(0,r.Uk)(" ⇏调试源 "),R=I((()=>(0,r._)("span",null,"Ctrl+Enter",-1))),Y=[M,R],z=(0,r.Uk)(" ✓保存源"),V=I((()=>(0,r._)("span",null,"Ctrl+S",-1))),F=[z,V];function G(t,e,o,n,a,i){const l=(0,r.up)("edit-loading"),c=(0,r.up)("edit-warn"),s=(0,r.up)("edit-success");return(0,r.wg)(),(0,r.iD)("div",D,[(0,r._)("div",null,[n.isShow?((0,r.wg)(),(0,r.j4)(l,{key:0})):(0,r.kq)("",!0),(0,r.Wm)(c,{text:n.warnText,"is-show":n.warnShow,onChangeShow:n.changeShow},null,8,["text","is-show","onChangeShow"]),n.successShow?((0,r.wg)(),(0,r.j4)(s,{key:1,isShow:n.successShow,onChangeShow:n.changeSuccessShow,text:n.successText},null,8,["isShow","onChangeShow","text"])):(0,r.kq)("",!0)]),(0,r._)("button",{onClick:e[0]||(e[0]=(...t)=>n.push&&n.push(...t)),title:"Ctrl+P"},T),(0,r._)("button",{onClick:e[1]||(e[1]=(...t)=>n.pull&&n.pull(...t)),title:"Shift+P"},A),(0,r._)("button",{onClick:e[2]||(e[2]=(...t)=>n.conver&&n.conver(...t)),title:"Ctrl+E"},H),(0,r._)("button",{onClick:e[3]||(e[3]=(...t)=>n.clearEdit&&n.clearEdit(...t)),title:"Shift+C"},L),(0,r._)("button",{onClick:e[4]||(e[4]=(...t)=>n.undo&&n.undo(...t)),title:"Ctrl+Z"},Z),(0,r._)("button",{onClick:e[5]||(e[5]=(...t)=>n.redo&&n.redo(...t)),title:"Shift+R"},$),(0,r._)("button",{onClick:e[6]||(e[6]=(...t)=>n.debug&&n.debug(...t)),title:"Ctrl+Enter"},Y),(0,r._)("button",{onClick:e[7]||(e[7]=(...t)=>n.saveSource&&n.saveSource(...t)),title:"Ctrl+S"},F)])}function Q(t,e){const o=`http://${localStorage.getItem("url")||""}/${t}`;switch(t){case"getBookSources":return tt(o);case"saveBookSources":return X(o,e);case"deleteBookSources":return X(o,e)}}function X(t,e){return fetch(t,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}).then((t=>t.json()))}function tt(t){return fetch(t).then((t=>t.json()))}var et=o(907),ot=JSON.parse('{"bookSourceUrl":"","bookSourceType":"","bookSourceName":"","bookSourceGroup":"","bookSourceComment":"","loginUrl":"","loginUi":"","loginCheckJs":"","concurrentRate":"","header":"","bookUrlPattern":"","searchUrl":"","exploreUrl":"","enabled":true,"enabledExplore":true,"weight":null,"customOrder":null,"lastUpdateTime":0,"ruleSearch":{"checkKeyWord":"","bookList":"","name":"","author":"","kind":"","wordCount":"","lastChapter":"","intro":"","coverUrl":"","bookUrl":""},"ruleExplore":{"bookList":"","name":"","author":"","kind":"","wordCount":"","lastChapter":"","intro":"","coverUrl":"","bookUrl":""},"ruleBookInfo":{"init":"","name":"","author":"","kind":"","wordCount":"","lastChapter":"","intro":"","coverUrl":"","tocUrl":""},"ruleToc":{"chapterList":"","chapterName":"","chapterUrl":"","isVolume":"","isVip":"","isPay":"","updateTime":"","nextTocUrl":""},"ruleContent":{"webJs":"","content":"","nextContentUrl":"","sourceRegex":"","replaceRegex":"","imageStyle":"","payAction":""}}'),nt=(0,et.MT)({state:{url:localStorage.getItem("url")||"",bookSource:[],bookItemContent:ot,currentTab:localStorage.getItem("tabName")||"editTab",editTabSourceInfo:{},deBugMsg:"",searchKey:"",deleteSources:[]},getters:{},mutations:{delBookSources(t){const e=t.deleteSources;console.log("删除的列表",e),e.forEach((e=>t.bookSource.splice(e-1,1)))},changeSearchKey(t,e){t.searchKey=e},changeUrl(t,e){t.url=e,localStorage.setItem("url",e)},changeSource(t,e){t.bookSource=e},changeBookItemContent(t,e){const o=JSON.stringify(e);t.bookItemContent=JSON.parse(o)},changeBookItemNewContent(t,e){if(e.type.includes("_")){let o=e.type.split("_")[0],n=e.type.split("_")[1];t.bookItemContent[o][n]=e.value}else t.bookItemContent[e.type]=e.value,t.bookItemContent.lastUpdateTime=(new Date).getTime()},changeTabName(t,e){t.currentTab=e,localStorage.setItem("tabName",e),console.log(e)},changeEidtTabSourceInfo(t){for(const e in ot)t.editTabSourceInfo[e]=ot[e];for(const e in t.bookItemContent)t.editTabSourceInfo[e]=t.bookItemContent[e]},editHistory(t,e){let o;if(localStorage.getItem("history"))o=JSON.parse(localStorage.getItem("history")),o.new.push(e),o.new.length>50&&o.new.shift(),o.old.length>50&&o.old.shift(),localStorage.setItem("history",JSON.stringify(o));else{const t={new:[e],old:[]};localStorage.setItem("history",JSON.stringify(t))}},editHistoryUndo(t){if(localStorage.getItem("history")){let e=JSON.parse(localStorage.getItem("history"));e.old.push(t.bookItemContent),e.new.length&&(t.bookItemContent=e.new.pop()),localStorage.setItem("history",JSON.stringify(e))}},clearAllHistory(){localStorage.setItem("history",JSON.stringify({new:[],old:[]}))},clearEdit(t){t.editTabSourceInfo={},t.bookItemContent={...ot}},changeDeBugMsg(t,e){let o=document.querySelector("#debug_text");o.scrollTop=o.scrollHeight,t.deBugMsg=t.deBugMsg+e+"\n"},deBugMsgClear(t){t.deBugMsg=""},clearAllSource(t){t.bookSource=[],console.log("clear all source ")}},actions:{},modules:{}});const rt=t=>((0,r.dD)("data-v-ab8a8a34"),t=t(),(0,r.Cn)(),t),at={class:"fixed"},it=rt((()=>(0,r._)("div",{class:"half-circle-spinner"},[(0,r._)("div",{class:"circle circle-1"}),(0,r._)("div",{class:"circle circle-2"})],-1))),lt=[it];function ct(t,e,o,n,a,i){return(0,r.wg)(),(0,r.iD)("div",at,lt)}var st={name:"editLoading"};const ut=(0,c.Z)(st,[["render",ct],["__scopeId","data-v-ab8a8a34"]]);var dt=ut;const ht={key:0,class:"warm"};function pt(t,e,o,n,a,i){return o.isShow?((0,r.wg)(),(0,r.iD)("div",ht,[(0,r._)("p",null,(0,h.zw)(o.text),1),(0,r._)("div",null,[(0,r._)("button",{onClick:e[0]||(e[0]=(...t)=>n.changeShow&&n.changeShow(...t))},"关闭")])])):(0,r.kq)("",!0)}var gt={name:"editWarm",props:{isShow:{default:!1,type:Boolean},text:{type:String,default:""}},setup(t,{emit:e}){const o=()=>{e("changeShow",!t.isShow)};return{changeShow:o}}};const mt=(0,c.Z)(gt,[["render",pt],["__scopeId","data-v-27eae50d"]]);var vt=mt;const bt={class:"success"};function kt(t,e,o,n,a,i){return(0,r.wg)(),(0,r.iD)("div",bt,[(0,r._)("p",null,(0,h.zw)(o.text),1)])}var wt={props:{text:{type:String,default:""},isShow:{type:Boolean,default:!1}},emits:["changeShow"],setup(t,{emit:e}){return setTimeout((()=>{e("changeShow",!t.isShow)}),3e3),{}}};const St=(0,c.Z)(wt,[["render",kt],["__scopeId","data-v-bef92f74"]]);var Ct=St,ft={components:{editLoading:dt,editWarn:vt,editSuccess:Ct},setup(){const t=(0,y.iH)(!1),e=(0,y.iH)(!1),o=(0,y.iH)(""),n=(0,y.iH)(!1),a=(0,y.iH)(""),i=t=>{e.value=t},l=t=>{console.log(t),n.value=t},c=()=>{t.value=!0,console.log(nt.state.url),Q("getBookSources").then((e=>{nt.commit("changeTabName","editList"),nt.commit("changeSource",e.data),localStorage.setItem("url",nt.state.url),t.value=!1,o.value=`成功拉取${e.data.length}条源`,n.value=!0})).catch((o=>{console.log(o),t.value=!1,a.value=" 请求发生了错误,请检查你的后端地址,填写是否正确,或者 阅读APP\n确认开启web服务",e.value=!0,nt.commit("changeUrl","")}))},s=()=>{o.value="正在推送中",n.value=!0,t.value=!0,Q("saveBookSources",nt.state.bookSource).then((r=>{if(r.isSuccess){let t=r.data;if(Array.isArray(t)){let e="";nt.state.bookSource.length>t.length&&(nt.state.bookSource.forEach((e=>{t.find((t=>t.bookSourceUrl===e.bookSourceUrl))||console.log(e.bookSourceUrl)})),e="\n推送失败的源将用红色字体标注!"),o.value=`批量推送源到「阅读3.0APP」\n共计: ${nt.state.bookSource.length} 条\n成功: ${t.length} 条\n失败: ${nt.state.bookSource.length-t.length} 条${e}`,n.value=!0}else o.value=`批量推送源到「阅读3.0APP」成功!\n共计: ${nt.state.bookSource.length} 条`,n.value=!0}else a.value=`批量推送源失败!\nErrorMsg: ${r.errorMsg}`,e.value=!0;t.value=!1})).catch((o=>{console.log(o),t.value=!1,e.value=!0,a.value="请求发生了错误,请检查你的后端地址,填写是否正确,或者 阅读APP\n确认开启web服务"}))},u=()=>{nt.commit("changeEidtTabSourceInfo"),nt.commit("changeTabName","editTab")},d=()=>{nt.commit("editHistoryUndo")},h=()=>{nt.commit("clearEdit"),console.log("已清除"),o.value="已清除",n.value=!0},p=()=>{nt.commit("clearEdit"),nt.commit("clearAllHistory"),o.value="已清除所有历史记录",n.value=!0},g=()=>{""!==nt.state.bookItemContent.bookSourceUrl&&""!==nt.state.bookItemContent.bookSourceType&&""!==nt.state.bookItemContent.bookSourceName?Q("saveBookSources",nt.state.bookItemContent).then((t=>{t.isSuccess?(o.value=`源《${nt.state.bookItemContent.bookSourceName}》已成功保存到「阅读3.0APP」`,n.value=!0):(a.value=`源《${nt.state.bookItemContent.bookSourceName}》保存失败!\nErrorMsg: ${t.errorMsg}`,e.value=!0)})):(a.value="请检查你的 源域名 源名称 源类型 <必填>项是否全部填写",e.value=!0)},m=()=>{t.value=!0,nt.commit("deBugMsgClear"),nt.commit("changeTabName","editDebug"),Q("saveBookSources",nt.state.bookItemContent).then((e=>{console.log(e);const r=new WebSocket("ws://"+nt.state.url.replace(/\d+$/,(t=>parseInt(t)+1))+"/bookSourceDebug");let a;nt.state.bookItemContent.ruleSearch.checkKeyWord?(a=nt.state.bookItemContent.ruleSearch.checkKeyWord,console.log(a,"-------- bookItemContent")):nt.state.searchKey?(a=nt.state.searchKey,console.log(a,"----------- searchKey")):(a="我的",console.log(a,"-------------- sKey")),r.onopen=()=>{r.send(`{"tag":"${nt.state.bookItemContent.bookSourceUrl}", "key":"${a}"}`)},r.onmessage=t=>{nt.commit("changeDeBugMsg",t.data)},r.onclose=()=>{t.value=!1,o.value="调试已关闭!",n.value=!0,nt.commit("changeDeBugMsg","调试已关闭!")}}))};return(0,r.bv)((()=>{document.onkeydown=t=>{(t.ctrlKey||t.metaKey)&&"Enter"===t.key&&m(),(t.ctrlKey||t.metaKey)&&"s"===t.key&&(g(),t.preventDefault()),t.shiftKey&&"R"===t.key&&p(),t.shiftKey&&"C"===t.key&&h(),t.ctrlKey&&"e"===t.key&&(u(),t.preventDefault()),t.shiftKey&&"P"===t.key&&c(),t.ctrlKey&&"p"===t.key&&(s(),t.preventDefault())}})),{debug:m,push:s,pull:c,clearEdit:h,isShow:t,changeShow:i,warnShow:e,successText:o,changeSuccessShow:l,successShow:n,undo:d,redo:p,conver:u,warnText:a,saveSource:g}}};const _t=(0,c.Z)(ft,[["render",G],["__scopeId","data-v-3fa941b0"]]);var yt=_t;const It={class:"out"},Dt={key:0,class:"box"},Ut={key:1,class:"box"};function xt(t,e,o,n,a,i){return(0,r.wg)(),(0,r.iD)("div",It,[(0,r._)("ul",null,[(0,r._)("li",{class:(0,h.C_)("editTab"===t.current_tab?"active":""),onClick:e[0]||(e[0]=t=>n.handleSetActive("editTab"))}," 编辑源 ",2),(0,r._)("li",{class:(0,h.C_)("editDebug"===t.current_tab?"active":""),onClick:e[1]||(e[1]=t=>n.handleSetActive("editDebug"))}," 调试源 ",2),(0,r._)("li",{class:(0,h.C_)("editList"===t.current_tab?"active":""),onClick:e[2]||(e[2]=t=>n.handleSetActive("editList"))}," 源列表 ",2),(0,r._)("li",{class:(0,h.C_)("editHelp"===t.current_tab?"active":""),onClick:e[3]||(e[3]=t=>n.handleSetActive("editHelp"))}," 帮助信息 ",2)]),"editList"===t.current_tab?((0,r.wg)(),(0,r.iD)("div",Dt,[((0,r.wg)(),(0,r.j4)((0,r.LL)(t.current_tab)))])):((0,r.wg)(),(0,r.iD)("div",Ut,[((0,r.wg)(),(0,r.j4)(r.Ob,null,[((0,r.wg)(),(0,r.j4)((0,r.LL)(t.current_tab)))],1024))]))])}function Tt(t,e,o,a,i,l){return(0,r.wy)(((0,r.wg)(),(0,r.iD)("textarea",{placeholder:"这里输出序列化的JSON数据,可直接导入'阅读'APP","onUpdate:modelValue":e[0]||(e[0]=e=>t.sourceInfo=e)},null,512)),[[n.nr,t.sourceInfo]])}var Bt={name:"editTab",setup(){const t=(0,y.qj)({sourceInfo:""});return(0,r.m0)((()=>{let e=nt.state.editTabSourceInfo;Object.keys(e).length>0?(e.lastUpdateTime=(new Date).getTime(),t.sourceInfo=JSON.stringify(e,null,4)):t.sourceInfo=""})),{...(0,y.BK)(t)}}};const Kt=(0,c.Z)(Bt,[["render",Tt],["__scopeId","data-v-4301c68c"]]);var At=Kt;function jt(t,e,o,a,i,l){return(0,r.wg)(),(0,r.iD)(r.HY,null,[(0,r.wy)((0,r._)("input",{type:"text",style:{"text-align":"center",border:"1px solid #dddddd","border-radius":"4px"},placeholder:"输入搜索关键字,默认搜「我的」","onUpdate:modelValue":e[0]||(e[0]=e=>t.searchKey=e),onInput:e[1]||(e[1]=e=>a.changeSearch(t.searchKey)),onKeydown:e[2]||(e[2]=(0,n.D2)(((...t)=>a.startSearch&&a.startSearch(...t)),["enter"])),title:"输入关键词 enter(回车键)快捷搜索"},null,544),[[n.nr,t.searchKey]]),(0,r.wy)((0,r._)("textarea",{placeholder:"这里用于输出调试信息","onUpdate:modelValue":e[3]||(e[3]=e=>t.printDebug=e),ref:"textareaDom",id:"debug_text"},null,512),[[n.nr,t.printDebug]])],64)}var Et={name:"editDebug",setup(){const t=(0,y.iH)(""),e=(0,y.qj)({printDebug:nt.state.deBugMsg,searchKey:""}),o=t=>{nt.commit("changeSearchKey",t)};(0,r.m0)((()=>{e.printDebug=nt.state.deBugMsg}));const n=()=>{document.querySelectorAll(".menu>button")[6].click()};return{...(0,y.BK)(e),textareaDom:t,changeSearch:o,startSearch:n}}};const Ht=(0,c.Z)(Et,[["render",jt],["__scopeId","data-v-f11ea0d0"]]);var Nt=Ht;const Ot={style:{display:"flex","flex-flow":"column"}},Lt={class:"tool"},Pt={class:"book_list"},Jt=["value"],Zt={class:"book_index"},qt=["onClick"],Wt={class:"book_info"};function $t(t,e,o,a,i,l){return(0,r.wg)(),(0,r.iD)("div",Ot,[(0,r.wy)((0,r._)("input",{class:"search",type:"text",placeholder:"输入筛选关键词(源名称、源URL或源分组)输入自动筛选源","onUpdate:modelValue":e[0]||(e[0]=e=>t.searchKey=e),onInput:e[1]||(e[1]=e=>a.sourcesList(t.searchKey))},null,544),[[n.nr,t.searchKey]]),(0,r._)("div",null,[(0,r._)("div",Lt,[(0,r._)("button",{onClick:e[2]||(e[2]=(...t)=>a.upFile&&a.upFile(...t))},"导入书源文件"),(0,r._)("button",{onClick:e[3]||(e[3]=(...t)=>a.outExport&&a.outExport(...t))},"导出书源文件"),(0,r._)("button",{onClick:e[4]||(e[4]=(...t)=>a.deleteActiveSource&&a.deleteActiveSource(...t))},"删除选中源"),(0,r._)("button",{onClick:e[5]||(e[5]=(...t)=>a.clearAllSources&&a.clearAllSources(...t))},"清空列表")]),(0,r._)("div",Pt,[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(a.sourcesList(t.searchKey),((o,i)=>((0,r.wg)(),(0,r.iD)("div",{key:o.bookSourceUrl,class:(0,h.C_)(["book_item",i===a.currentActive?"book_active":""])},[(0,r.wy)((0,r._)("input",{type:"checkbox",value:i,"onUpdate:modelValue":e[6]||(e[6]=e=>t.delArr=e)},null,8,Jt),[[n.e8,t.delArr]]),(0,r._)("div",Zt,(0,h.zw)(i+1),1),(0,r._)("div",{style:{"margin-left":"10px",flex:"1"},onClick:t=>a.handleItemClick(i)},[(0,r._)("div",Wt,[(0,r._)("span",null,(0,h.zw)(o.bookSourceName),1),(0,r._)("span",null,"最后修改:"+(0,h.zw)(a.formatTime(o.lastUpdateTime)),1),(0,r._)("span",null,"分组:"+(0,h.zw)(o.bookSourceGroup||"无分组"),1)]),(0,r._)("div",null,(0,h.zw)(o.bookSourceUrl),1)],8,qt)],2)))),128))])])])}var Mt={name:"editList",setup(){const t=(0,y.iH)(nt.state.bookSource);let e=(0,y.qj)({searchKey:"",delArr:[]}),o=(0,y.iH)(null);const n=t=>{o.value=t,nt.commit("clearEdit"),nt.commit("changeBookItemContent",l(e.searchKey)[t])},a=()=>{nt.commit("clearAllSource")},i=t=>{const e=new Date(t),o=e.getFullYear();let n=e.getMonth()+1;n=n<10?"0"+n:n;let r=e.getDate();r=r<10?"0"+r:r;let a=e.getHours();a=a<10?"0"+a:a;let i=e.getMinutes();i=i<10?"0"+i:i;let l=e.getSeconds();return l=l<10?"0"+l:l,o+"-"+n+"-"+r+" "+a+":"+i+":"+l},l=e=>""===e?t.value:t.value.filter((t=>t.bookSourceName.toUpperCase().includes(e.toUpperCase())))||t.value.filter((t=>t.bookSourceGroup.toUpperCase().includes(e.toUpperCase())))||t.value.filter((t=>t.bookSourceUrl.toUpperCase().includes(e.toUpperCase())));(0,r.m0)((()=>{t.value=nt.state.bookSource}));const c=()=>{if(0===e.delArr.length)return console.log("没有选中的书源"),!1;const o=[],n=l(e.searchKey);e.delArr.forEach((t=>{o.push(n[t])})),Q("deleteBookSources",o).then((o=>{o.isSuccess?(console.log("删除成功"),e.delArr.forEach((t=>{n.splice(t,1),console.log(t)})),e.delArr=[],Q("getBookSources").then((e=>{t.value=e.data,console.log("同步完成!")}))):console.log("错误",o)}))},s=()=>{const t=document.createElement("input");t.type="file",t.accept=".json",t.addEventListener("change",(t=>{const e=t.target.files[0];var o=new FileReader;o.readAsText(e),o.onload=()=>{const t=JSON.parse(o.result);nt.commit("changeBookItemContent",t)}})),t.click()},u=()=>{const t=document.createElement("a");t.download=`BookSources${Date().replace(/.*?\s(\d+)\s(\d+)\s(\d+:\d+:\d+).*/,"$2$1$3").replace(/:/g,"")}.json`;let e=new Blob([JSON.stringify(nt.state.bookSource,null,4)],{type:"application/json"});t.href=window.URL.createObjectURL(e),t.click()};return{currentActive:o,deleteActiveSource:c,handleItemClick:n,...(0,y.BK)(e),formatTime:i,sourcesList:l,clearAllSources:a,bookSources:t,upFile:s,outExport:u}}};const Rt=(0,c.Z)(Mt,[["render",$t],["__scopeId","data-v-7d0424af"]]);var Yt=Rt;const zt=(0,r.uE)('书源制作教程xpath基础教程xpath高级教程正则表达式教程正则表达式在线验证工具
^$()[]{}.?+*| 这些是Java正则特殊符号,匹配需转义
(?s) 前缀表示跨行解析
(?m) 前缀表示逐行匹配
(?i) 前缀表示忽略大小写
',6);function Vt(t,e,o,n,r,a){return zt}var Ft={name:"editHelp"};const Gt=(0,c.Z)(Ft,[["render",Vt],["__scopeId","data-v-d4554fa8"]]);var Qt=Gt,Xt={name:"editOut",components:{editDebug:Nt,editTab:At,editList:Yt,editHelp:Qt},setup(){const t=(0,y.qj)({url:localStorage.getItem("url")||"",current_tab:nt.state.currentTab||"editTab"}),e=t=>{nt.commit("changeTabName",t),localStorage.setItem("tabName",t)},o=t=>{nt.commit("changeUrl",t)};(0,r.m0)((()=>{t.current_tab=nt.state.currentTab}));const n=()=>{document.querySelectorAll(".menu>button")[1].click()};return{...(0,y.BK)(t),handleSetActive:e,changInput:o,pullSource:n}}};const te=(0,c.Z)(Xt,[["render",xt]]);var ee=te,oe={components:{editMenu:yt,editOut:ee},setup(){const t=(0,y.qj)({});return(0,r.bv)((()=>{})),{...(0,y.BK)(t)}}};const ne=(0,c.Z)(oe,[["render",_],["__scopeId","data-v-de4729c0"]]);var re=ne;const ae={class:"main"};function ie(t,e,o,n,a,i){const l=(0,r.up)("edit-input");return(0,r.wg)(),(0,r.iD)("div",ae,[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(t.data,((e,o)=>((0,r.wg)(),(0,r.j4)(l,{key:o,type:e.id,hint:e.hint,title:e.title,rows:e.rows,content:t.bookContent[e.id],onChangeContent:n.upData},null,8,["type","hint","title","rows","content","onChangeContent"])))),128))])}const le=t=>((0,r.dD)("data-v-3974490a"),t=t(),(0,r.Cn)(),t),ce={class:"edit_input"},se=le((()=>(0,r._)("i",null,":",-1))),ue=["id","placeholder","rows","value"];function de(t,e,o,n,a,i){return(0,r.wg)(),(0,r.iD)("div",ce,[(0,r._)("span",null,[(0,r.Uk)((0,h.zw)(o.title),1),se]),(0,r._)("textarea",{id:o.type,placeholder:o.hint,rows:o.rows,value:o.content,ref:"attr",onInput:e[0]||(e[0]=(...t)=>n.change&&n.change(...t)),onBlur:e[1]||(e[1]=(...t)=>n.changeHistory&&n.changeHistory(...t)),onFocus:e[2]||(e[2]=(...t)=>n.changeHeight&&n.changeHeight(...t))},null,40,ue)])}var he={props:{title:{type:String,default:""},rows:{type:Number,default:1},hint:{type:String,default:""},type:{type:String,default:""},content:{type:[String,Number,Boolean],default:""}},emits:["changeContent"],setup(t,{emit:e}){const o=(0,y.iH)(""),n=()=>{e("changeContent",{value:o.value.value,type:o.value.getAttribute("id")})},a=()=>{localStorage.getItem("history")||localStorage.setItem("history",JSON.stringify({new:[],old:[]}));const t=JSON.parse(localStorage.getItem("history")),e=t.new;if(e.length)if(e[e.length-1][o.value.getAttribute("id")]!==nt.state.bookItemContent[o.value.getAttribute("id")])nt.commit("editHistory",nt.state.bookItemContent);else{const t=o.value.getAttribute("id");if(t.includes("_")){let o=t.split("_")[0],n=t.split("_")[1];e[e.length-1][o][n]!==nt.state.bookItemContent[o][n]&&(nt.commit("editHistory",nt.state.bookItemContent),console.log("添加记录"))}else console.log("重复历史,不记录")}else nt.commit("editHistory",nt.state.bookItemContent),console.log("第一次记录")},i=()=>{(0,r.Y3)((()=>{let t=o.value;const e=t.scrollHeight,n=t.offsetHeight;n<=e&&(t.style.height="auto",t.style.height=t.scrollHeight+"px")}))};return{changeHistory:a,change:n,attr:o,changeHeight:i}}};const pe=(0,c.Z)(he,[["render",de],["__scopeId","data-v-3974490a"]]);var ge=pe,me={base:[{title:"源域名",rows:1,id:"bookSourceUrl",hint:"<必填>通常填写网站主页,例: https://www.qidian.com"},{title:"源类型",rows:1,id:"bookSourceType",hint:"<必填>0:文本 1:音频 2:图片 3:文件(只提供下载的网站)"},{title:"源名称",rows:1,id:"bookSourceName",hint:"<必填>会显示在源列表"},{title:"源分组",rows:1,id:"bookSourceGroup",hint:"<选填>描述源的特征信息"},{title:"源注释",rows:1,id:"bookSourceComment",hint:"<选填>描述源作者和状态"},{title:"登录地址",rows:1,id:"loginUrl",hint:"<选填>填写网站登录网址,仅在需要登录的源有用"},{title:"登录界面",rows:3,id:"loginUi",hint:"<选填>自定义登录界面"},{title:"登录检测",rows:3,id:"loginCheckJs",hint:"<选填>登录检测js"},{title:"并发率",rows:1,id:"concurrentRate",hint:"<选填>并发率"},{title:"请求头",rows:3,id:"header",hint:"<选填>客户端标识"},{title:"链接验证",rows:1,id:"bookUrlPattern",hint:"<选填>当详情页URL与源URL的域名不一致时有效,用于添加网址"}],search:[{title:"搜索地址",rows:1,id:"searchUrl",hint:"[域名可省略]/search.php@kw={{key}}"},{title:"校验文字",rows:1,id:"ruleSearch_checkKeyWord",hint:"校验关键字"},{title:"列表规则",rows:1,id:"ruleSearch_bookList",hint:"选择书籍节点 (规则结果为List)"},{title:"书名规则",rows:1,id:"ruleSearch_name",hint:"选择节点书名 (规则结果为String)"},{title:"作者规则",rows:1,id:"ruleSearch_author",hint:"选择节点作者 (规则结果为String)"},{title:"分类规则",rows:1,id:"ruleSearch_kind",hint:"选择节点分类信息 (规则结果为String)"},{title:"字数规则",rows:1,id:"ruleSearch_wordCount",hint:"选择节点字数信息 (规则结果为String)"},{title:"最新章节",rows:1,id:"ruleSearch_lastChapter",hint:"选择节点最新章节 (规则结果为String)"},{title:"简介规则",rows:1,id:"ruleSearch_intro",hint:"选择节点书籍简介 (规则结果为String)"},{title:"封面规则",rows:1,id:"ruleSearch_coverUrl",hint:"选择节点书籍封面 (规则结果为String类型的url)"},{title:"详情地址",rows:1,id:"ruleSearch_bookUrl",hint:"选择书籍详情页网址 (规则结果为String类型的url)"}],find:[{title:"发现地址",rows:6,id:"exploreUrl",hint:"内容能显示在发现菜单\n每行一条发现分类(网址域名可省略),例:\n名称1::网址(Url)1\n名称2::网址(Url)2\n..."},{title:"列表规则",rows:1,id:"ruleExplore_bookList",hint:"选择书籍节点 (规则结果为List)"},{title:"书名规则",rows:1,id:"ruleExplore_name",hint:"选择节点书名 (规则结果为String)"},{title:"作者规则",rows:1,id:"ruleExplore_author",hint:"选择节点作者 (规则结果为String)"},{title:"分类规则",rows:1,id:"ruleExplore_kind",hint:"选择节点分类信息 (规则结果为String)"},{title:"字数规则",rows:1,id:"ruleExplore_wordCount",hint:"选择节点字数信息 (规则结果为String)"},{title:"最新章节",rows:1,id:"ruleExplore_lastChapter",hint:"选择节点最新章节 (规则结果为String)"},{title:"简介规则",rows:1,id:"ruleExplore_intro",hint:"选择节点书籍简介 (规则结果为String)"},{title:"封面规则",rows:1,id:"ruleExplore_coverUrl",hint:"选择节点书籍封面 (规则结果为String类型的url)"},{title:"详情地址",rows:1,id:"ruleExplore_bookUrl",hint:"选择书籍详情页网址 (规则结果为String类型的url)"}],detail:[{title:"预处理",rows:3,id:"ruleBookInfo_init",hint:"用于加速详情信息检索,只支持AllInOne规则"},{title:"书名规则",rows:1,id:"ruleBookInfo_name",hint:"选择节点书名 (规则结果为String)"},{title:"作者规则",rows:1,id:"ruleBookInfo_author",hint:"选择节点作者 (规则结果为String)"},{title:"分类规则",rows:1,id:"ruleBookInfo_kind",hint:"选择节点分类信息 (规则结果为String)"},{title:"字数规则",rows:1,id:"ruleBookInfo_wordCount",hint:"选择节点字数信息 (规则结果为String)"},{title:"最新章节",rows:1,id:"ruleBookInfo_lastChapter",hint:"选择节点最新章节 (规则结果为String)"},{title:"简介规则",rows:1,id:"ruleBookInfo_intro",hint:"选择节点书籍简介 (规则结果为String)"},{title:"封面规则",rows:1,id:"ruleBookInfo_coverUrl",hint:"选择节点书籍封面 (规则结果为String类型的url)"},{title:"目录地址",rows:1,id:"ruleBookInfo_tocUrl",hint:"选择书籍详情页网址 (规则结果为String类型的url, 与详情页相同时可省略)"}],directory:[{title:"列表规则",rows:3,id:"ruleToc_chapterList",hint:"选择目录列表的章节节点 (规则结果为List)"},{title:"章节名称",rows:1,id:"ruleToc_chapterName",hint:"选择章节名称 (规则结果为String)"},{title:"章节地址",rows:1,id:"ruleToc_chapterUrl",hint:"选择章节链接 (规则结果为String类型的Url)"},{title:"卷名标识",rows:1,id:"ruleToc_isVolume",hint:"章节名称是否是卷名 (规则结果为Bool)"},{title:"收费标识",rows:1,id:"ruleToc_isVip",hint:"章节是否为VIP章节 (规则结果为Bool)"},{title:"购买标识",rows:1,id:"ruleToc_isPay",hint:"章节是否为已购买 (规则结果为Bool)"},{title:"章节信息",rows:1,id:"ruleToc_updateTime",hint:"选择章节信息 (规则结果为String)"},{title:"翻页规则",rows:1,id:"ruleToc_nextTocUrl",hint:"选择目录下一页链接 (规则结果为List或String)"}],content:[{title:"脚本注入",rows:3,id:"ruleContent_webJs",hint:"注入javascript,用于模拟鼠标点击等,必须有返回值,一般为String类型"},{title:"正文规则",rows:1,id:"ruleContent_content",hint:"选择正文内容 (规则结果为String)"},{title:"翻页规则",rows:1,id:"ruleContent_nextContentUrl",hint:"选择下一分页(不是下一章)链接 (规则结果为String类型的Url)"},{title:"资源正则",rows:1,id:"ruleContent_sourceRegex",hint:"匹配资源的url特征,用于嗅探"},{title:"替换规则",rows:1,id:"ruleContent_replaceRegex",hint:"多页内容合并后替换,用于正文净化"},{title:"图片样式",rows:1,id:"ruleContent_imageStyle",hint:"FULL:铺满 不填:默认样式"},{title:"购买操作",rows:1,id:"ruleContent_payAction",hint:"购买章节 返回链接或js"}],other:[{title:"启用搜索",rows:1,id:"enabled",hint:"启用: true 关闭: false (可选,默认true)"},{title:"启用发现",rows:1,id:"enabledExplore",hint:"启用: true 关闭: false (可选,默认true)"},{title:"搜索权重",rows:1,id:"weight",hint:"整数: 0~N (可选,默认0) | 数字越大越靠前"},{title:"排序编号",rows:1,id:"customOrder",hint:"整数: 0~N (可选,默认0) | 数字越小越靠前"}]},ve={components:{editInput:ge},setup(){const t=(0,y.qj)({data:me.base,bookContent:nt.state.bookItemContent}),e=t=>{nt.commit("changeBookItemNewContent",t)};return(0,r.m0)((()=>{t.bookContent=nt.state.bookItemContent})),{...(0,y.BK)(t),upData:e}}};const be=(0,c.Z)(ve,[["render",ie]]);var ke=be;const we={class:"main"};function Se(t,e,o,n,a,i){const l=(0,r.up)("edit-input");return(0,r.wg)(),(0,r.iD)("div",we,[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(t.data,((t,e)=>((0,r.wg)(),(0,r.j4)(l,{key:e,type:t.id,hint:t.hint,title:t.title,rows:t.rows,content:n.setContent(t.id),onChangeContent:n.upData},null,8,["type","hint","title","rows","content","onChangeContent"])))),128))])}function Ce(){const t=(0,y.qj)({bookContent:nt.state.bookItemContent}),e=t=>{nt.commit("changeBookItemNewContent",t)},o=e=>{try{if(e.includes("_")){let o=e.split("_")[0],n=e.split("_")[1];return t.bookContent[o][n]}return t.bookContent[e]}catch(o){console.log("导入错误",o.TypeError),nt.commit("clearEdit")}};return(0,r.m0)((()=>{t.bookContent=nt.state.bookItemContent})),{...(0,y.BK)(t),upData:e,setContent:o}}var fe={components:{editInput:ge},setup(){const{upData:t,bookContent:e,setContent:o}=Ce(),n=(0,y.qj)({data:me.search});return{...(0,y.BK)(n),upData:t,bookContent:e,setContent:o}}};const _e=(0,c.Z)(fe,[["render",Se]]);var ye=_e;const Ie={class:"main"};function De(t,e,o,n,a,i){const l=(0,r.up)("edit-input");return(0,r.wg)(),(0,r.iD)("div",Ie,[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(t.data,((t,e)=>((0,r.wg)(),(0,r.j4)(l,{key:e,type:t.id,hint:t.hint,title:t.title,rows:t.rows,content:n.setContent(t.id),onChangeContent:n.upData},null,8,["type","hint","title","rows","content","onChangeContent"])))),128))])}var Ue={components:{editInput:ge},setup(){const{upData:t,setContent:e,bookContent:o}=Ce(),n=(0,y.qj)({data:me.directory});return{...(0,y.BK)(n),upData:t,setContent:e,bookContent:o}}};const xe=(0,c.Z)(Ue,[["render",De]]);var Te=xe;const Be={class:"main"};function Ke(t,e,o,n,a,i){const l=(0,r.up)("edit-input");return(0,r.wg)(),(0,r.iD)("div",Be,[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(t.data,((t,e)=>((0,r.wg)(),(0,r.j4)(l,{key:e,type:t.id,hint:t.hint,title:t.title,rows:t.rows,content:n.setContent(t.id),onChangeContent:n.upData},null,8,["type","hint","title","rows","content","onChangeContent"])))),128))])}var Ae={components:{editInput:ge},setup(){const{setContent:t,upData:e,bookContent:o}=Ce(),n=(0,y.qj)({data:me.content});return{...(0,y.BK)(n),upData:e,setContent:t,bookContent:o}}};const je=(0,c.Z)(Ae,[["render",Ke]]);var Ee=je;const He={class:"main"};function Ne(t,e,o,n,a,i){const l=(0,r.up)("edit-input");return(0,r.wg)(),(0,r.iD)("div",He,[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(t.data,((t,e)=>((0,r.wg)(),(0,r.j4)(l,{key:e,type:t.id,hint:t.hint,title:t.title,rows:t.rows,content:n.setContent(t.id),onChangeContent:n.upData},null,8,["type","hint","title","rows","content","onChangeContent"])))),128))])}var Oe={components:{editInput:ge},setup(){const{upData:t,bookContent:e,setContent:o}=Ce(),n=(0,y.qj)({data:me.detail});return{...(0,y.BK)(n),upData:t,bookContent:e,setContent:o}}};const Le=(0,c.Z)(Oe,[["render",Ne]]);var Pe=Le;const Je={class:"main"};function Ze(t,e,o,n,a,i){const l=(0,r.up)("edit-input"),c=(0,r.up)("router-view");return(0,r.wg)(),(0,r.iD)(r.HY,null,[(0,r._)("div",Je,[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(t.data,((t,e)=>((0,r.wg)(),(0,r.j4)(l,{key:e,type:t.id,hint:t.hint,title:t.title,rows:t.rows,content:n.setContent(t.id),onChangeContent:n.upData},null,8,["type","hint","title","rows","content","onChangeContent"])))),128))]),(0,r.Wm)(c)],64)}var qe={components:{editInput:ge},setup(){const{upData:t,bookContent:e,setContent:o}=Ce(),n=(0,y.qj)({data:me.other});return{...(0,y.BK)(n),upData:t,bookContent:e,setContent:o}}};const We=(0,c.Z)(qe,[["render",Ze]]);var $e=We;const Me={class:"main"};function Re(t,e,o,n,a,i){const l=(0,r.up)("edit-input");return(0,r.wg)(),(0,r.iD)("div",Me,[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(t.data,((t,e)=>((0,r.wg)(),(0,r.j4)(l,{key:e,type:t.id,hint:t.hint,title:t.title,rows:t.rows,content:n.setContent(t.id),onChangeContent:n.upData},null,8,["type","hint","title","rows","content","onChangeContent"])))),128))])}var Ye={components:{editInput:ge},setup(){const{upData:t,setContent:e,bookContent:o}=Ce(),n=(0,y.qj)({data:me.find});return{...(0,y.BK)(n),upData:t,setContent:e,bookContent:o}}};const ze=(0,c.Z)(Ye,[["render",Re]]);var Ve=ze;const Fe=[{path:"/",redirect:{name:"home"}},{path:"/bookSource",name:"home",component:re,redirect:{name:"base"},children:[{path:"/bookSource/base",name:"base",component:ke},{path:"/bookSource/search",name:"search",component:ye},{path:"/bookSource/find",name:"find",component:Ve},{path:"/bookSource/detail",name:"detail",component:Pe},{path:"/bookSource/directory",name:"directory",component:Te},{path:"/bookSource/content",name:"content",component:Ee},{path:"/bookSource/other",name:"other",component:$e},{path:"/bookSource/:asdasdasd/:asdasdas",redirect:{name:"home"}}]},{path:"/:asdasdasd",redirect:{name:"home"}},{path:"/bookSource/:asdasdasda",redirect:{name:"home"}}],Ge=(0,d.p7)({history:(0,d.r5)(),routes:Fe});var Qe=Ge;(0,n.ri)(u).use(nt).use(Qe).mount("#app")}},e={};function o(n){var r=e[n];if(void 0!==r)return r.exports;var a=e[n]={exports:{}};return t[n](a,a.exports,o),a.exports}o.m=t,function(){var t=[];o.O=function(e,n,r,a){if(!n){var i=1/0;for(u=0;u=a)&&Object.keys(o.O).every((function(t){return o.O[t](n[c])}))?n.splice(c--,1):(l=!1,a0&&t[u-1][2]>a;u--)t[u]=t[u-1];t[u]=[n,r,a]}}(),function(){o.d=function(t,e){for(var n in e)o.o(e,n)&&!o.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})}}(),function(){o.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"===typeof window)return window}}()}(),function(){o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)}}(),function(){var t={143:0};o.O.j=function(e){return 0===t[e]};var e=function(e,n){var r,a,i=n[0],l=n[1],c=n[2],s=0;if(i.some((function(e){return 0!==t[e]}))){for(r in l)o.o(l,r)&&(o.m[r]=l[r]);if(c)var u=c(o)}for(e&&e(n);s\n
\n \n
\n\n\n\n\n\n","import { render } from \"./App.vue?vue&type=template&id=c114d7a2\"\nimport script from \"./App.vue?vue&type=script&lang=js\"\nexport * from \"./App.vue?vue&type=script&lang=js\"\n\nimport \"./App.vue?vue&type=style&index=0&id=c114d7a2&lang=scss\"\n\nimport exportComponent from \"F:\\\\study\\\\legado_web_editor\\\\node_modules\\\\vue-loader\\\\dist\\\\exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n","\n\n\n\n\n\n","/**\n * 发送后端请求\n * @param type 请求资源URL\n * @param data 保存数据\n * @returns {Promise}\n */\nfunction http(type, data) {\n const formatUrl = `http://${localStorage.getItem(\"url\") || \"\"}/${type}`;\n switch (type) {\n case \"getBookSources\":\n return Get(formatUrl);\n case \"saveBookSources\":\n return Post(formatUrl, data);\n case \"deleteBookSources\":\n return Post(formatUrl, data);\n }\n}\n\nexport { http };\n\n/**\n * POST请求\n * @param url\n * @param body\n * @returns {Promise}\n * @constructor\n */\nfunction Post(url, body) {\n return fetch(url, {\n method: \"POST\",\n headers: {\n \"Content-Type\": \"application/json\",\n },\n body: JSON.stringify(body),\n }).then((res) => res.json());\n}\n\n/**\n * GET请求\n * @param url\n * @returns {Promise}\n * @constructor\n */\nfunction Get(url) {\n return fetch(url).then((res) => res.json());\n}\n","import { createStore } from \"vuex\";\nimport source_json from \"@/utils/bookSource.json\";\n\nexport default createStore({\n state: {\n url: localStorage.getItem(\"url\") || \"\",\n bookSource: [], // 临时存放所有书源\n bookItemContent: source_json, // 当前点击的书源项\n currentTab: localStorage.getItem(\"tabName\") || \"editTab\",\n editTabSourceInfo: {},\n deBugMsg: \"\",\n searchKey: \"\",\n deleteSources: [],\n },\n getters: {},\n mutations: {\n delBookSources(state) {\n const delArr = state.deleteSources;\n console.log(\"删除的列表\", delArr);\n delArr.forEach((item) => state.bookSource.splice(item - 1, 1));\n },\n changeSearchKey(state, key) {\n state.searchKey = key;\n },\n changeUrl(state, url) {\n state.url = url;\n localStorage.setItem(\"url\", url);\n },\n changeSource(state, data) {\n state.bookSource = data;\n },\n // editList Click\n changeBookItemContent(state, content) {\n const newContent = JSON.stringify(content);\n state.bookItemContent = JSON.parse(newContent);\n // console.log(content);\n },\n // edit Content\n changeBookItemNewContent(state, newContent) {\n if (newContent.type.includes(\"_\")) {\n let rule1 = newContent.type.split(\"_\")[0];\n let rule2 = newContent.type.split(\"_\")[1];\n state.bookItemContent[rule1][rule2] = newContent.value;\n // console.log(rule1, rule2, state.bookItemContent);\n // console.log(newContent);\n } else {\n state.bookItemContent[newContent.type] = newContent.value;\n // edit last time\n state.bookItemContent.lastUpdateTime = new Date().getTime();\n }\n // console.log(state.bookItemContent);\n },\n // update editTab tabName and editTab info\n changeTabName(state, tabName) {\n state.currentTab = tabName;\n localStorage.setItem(\"tabName\", tabName);\n\n console.log(tabName);\n },\n changeEidtTabSourceInfo(state) {\n // edit last time\n for (const sourceJsonKey in source_json) {\n state.editTabSourceInfo[sourceJsonKey] = source_json[sourceJsonKey];\n }\n for (const bookItemContentKey in state.bookItemContent) {\n state.editTabSourceInfo[bookItemContentKey] =\n state.bookItemContent[bookItemContentKey];\n }\n },\n editHistory(state, history) {\n let historyObj;\n if (localStorage.getItem(\"history\")) {\n historyObj = JSON.parse(localStorage.getItem(\"history\"));\n historyObj.new.push(history);\n if (historyObj.new.length > 50) {\n historyObj.new.shift();\n }\n if (historyObj.old.length > 50) {\n historyObj.old.shift();\n }\n localStorage.setItem(\"history\", JSON.stringify(historyObj));\n } else {\n const arr = { new: [history], old: [] };\n localStorage.setItem(\"history\", JSON.stringify(arr));\n }\n },\n editHistoryUndo(state) {\n if (localStorage.getItem(\"history\")) {\n let historyObj = JSON.parse(localStorage.getItem(\"history\"));\n historyObj.old.push(state.bookItemContent);\n if (historyObj.new.length) {\n state.bookItemContent = historyObj.new.pop();\n }\n localStorage.setItem(\"history\", JSON.stringify(historyObj));\n }\n },\n clearAllHistory() {\n localStorage.setItem(\"history\", JSON.stringify({ new: [], old: [] }));\n },\n clearEdit(state) {\n state.editTabSourceInfo = {};\n state.bookItemContent = { ...source_json };\n // console.log(source_json);\n // console.log(state.bookItemContent);\n },\n changeDeBugMsg(state, msg) {\n let el = document.querySelector(\"#debug_text\");\n el.scrollTop = el.scrollHeight;\n state.deBugMsg = state.deBugMsg + msg + \"\\n\";\n },\n deBugMsgClear(state) {\n state.deBugMsg = \"\";\n },\n\n // clear all source\n clearAllSource(state) {\n state.bookSource = [];\n console.log(\"clear all source \");\n },\n },\n actions: {},\n modules: {},\n});\n","\n\n\n\n\n","import { render } from \"./editLoading.vue?vue&type=template&id=ab8a8a34&scoped=true\"\nimport script from \"./editLoading.vue?vue&type=script&lang=js\"\nexport * from \"./editLoading.vue?vue&type=script&lang=js\"\n\nimport \"./editLoading.vue?vue&type=style&index=0&id=ab8a8a34&scoped=true&lang=css\"\n\nimport exportComponent from \"F:\\\\study\\\\legado_web_editor\\\\node_modules\\\\vue-loader\\\\dist\\\\exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-ab8a8a34\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./editWarn.vue?vue&type=template&id=27eae50d&scoped=true\"\nimport script from \"./editWarn.vue?vue&type=script&lang=js\"\nexport * from \"./editWarn.vue?vue&type=script&lang=js\"\n\nimport \"./editWarn.vue?vue&type=style&index=0&id=27eae50d&lang=scss&scoped=true\"\n\nimport exportComponent from \"F:\\\\study\\\\legado_web_editor\\\\node_modules\\\\vue-loader\\\\dist\\\\exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-27eae50d\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./editSuccess.vue?vue&type=template&id=bef92f74&scoped=true\"\nimport script from \"./editSuccess.vue?vue&type=script&lang=js\"\nexport * from \"./editSuccess.vue?vue&type=script&lang=js\"\n\nimport \"./editSuccess.vue?vue&type=style&index=0&id=bef92f74&scoped=true&lang=css\"\n\nimport exportComponent from \"F:\\\\study\\\\legado_web_editor\\\\node_modules\\\\vue-loader\\\\dist\\\\exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-bef92f74\"]])\n\nexport default __exports__","import { render } from \"./editMenu.vue?vue&type=template&id=3fa941b0&scoped=true\"\nimport script from \"./editMenu.vue?vue&type=script&lang=js\"\nexport * from \"./editMenu.vue?vue&type=script&lang=js\"\n\nimport \"./editMenu.vue?vue&type=style&index=0&id=3fa941b0&lang=css\"\nimport \"./editMenu.vue?vue&type=style&index=1&id=3fa941b0&lang=scss&scoped=true\"\n\nimport exportComponent from \"F:\\\\study\\\\legado_web_editor\\\\node_modules\\\\vue-loader\\\\dist\\\\exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-3fa941b0\"]])\n\nexport default __exports__","\n\n\n\n\n","\n\n\n\n","import { render } from \"./editTab.vue?vue&type=template&id=4301c68c&scoped=true\"\nimport script from \"./editTab.vue?vue&type=script&lang=js\"\nexport * from \"./editTab.vue?vue&type=script&lang=js\"\n\nimport \"./editTab.vue?vue&type=style&index=0&id=4301c68c&scoped=true&lang=css\"\n\nimport exportComponent from \"F:\\\\study\\\\legado_web_editor\\\\node_modules\\\\vue-loader\\\\dist\\\\exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-4301c68c\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./editDebug.vue?vue&type=template&id=f11ea0d0&scoped=true\"\nimport script from \"./editDebug.vue?vue&type=script&lang=js\"\nexport * from \"./editDebug.vue?vue&type=script&lang=js\"\n\nimport \"./editDebug.vue?vue&type=style&index=0&id=f11ea0d0&lang=scss&scoped=true\"\n\nimport exportComponent from \"F:\\\\study\\\\legado_web_editor\\\\node_modules\\\\vue-loader\\\\dist\\\\exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-f11ea0d0\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./editList.vue?vue&type=template&id=7d0424af&scoped=true\"\nimport script from \"./editList.vue?vue&type=script&lang=js\"\nexport * from \"./editList.vue?vue&type=script&lang=js\"\n\nimport \"./editList.vue?vue&type=style&index=0&id=7d0424af&lang=scss&scoped=true\"\n\nimport exportComponent from \"F:\\\\study\\\\legado_web_editor\\\\node_modules\\\\vue-loader\\\\dist\\\\exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-7d0424af\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./editHelp.vue?vue&type=template&id=d4554fa8&scoped=true\"\nimport script from \"./editHelp.vue?vue&type=script&lang=js\"\nexport * from \"./editHelp.vue?vue&type=script&lang=js\"\n\nimport \"./editHelp.vue?vue&type=style&index=0&id=d4554fa8&lang=scss&scoped=true\"\n\nimport exportComponent from \"F:\\\\study\\\\legado_web_editor\\\\node_modules\\\\vue-loader\\\\dist\\\\exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-d4554fa8\"]])\n\nexport default __exports__","import { render } from \"./editOut.vue?vue&type=template&id=7fd34fab\"\nimport script from \"./editOut.vue?vue&type=script&lang=js\"\nexport * from \"./editOut.vue?vue&type=script&lang=js\"\n\nimport \"./editOut.vue?vue&type=style&index=0&id=7fd34fab&lang=scss\"\n\nimport exportComponent from \"F:\\\\study\\\\legado_web_editor\\\\node_modules\\\\vue-loader\\\\dist\\\\exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { render } from \"./bookSource.vue?vue&type=template&id=de4729c0&scoped=true\"\nimport script from \"./bookSource.vue?vue&type=script&lang=js\"\nexport * from \"./bookSource.vue?vue&type=script&lang=js\"\n\nimport \"./bookSource.vue?vue&type=style&index=0&id=de4729c0&lang=scss\"\nimport \"./bookSource.vue?vue&type=style&index=1&id=de4729c0&lang=scss&scoped=true\"\n\nimport exportComponent from \"F:\\\\study\\\\legado_web_editor\\\\node_modules\\\\vue-loader\\\\dist\\\\exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-de4729c0\"]])\n\nexport default __exports__","\n\n\n\n\n","\n\n\n\n\n","import { render } from \"./editInput.vue?vue&type=template&id=3974490a&scoped=true\"\nimport script from \"./editInput.vue?vue&type=script&lang=js\"\nexport * from \"./editInput.vue?vue&type=script&lang=js\"\n\nimport \"./editInput.vue?vue&type=style&index=0&id=3974490a&lang=scss&scoped=true\"\n\nimport exportComponent from \"F:\\\\study\\\\legado_web_editor\\\\node_modules\\\\vue-loader\\\\dist\\\\exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-3974490a\"]])\n\nexport default __exports__","export default {\n base: [\n {\n title: \"源域名\",\n rows: 1,\n id: \"bookSourceUrl\",\n hint: \"<必填>通常填写网站主页,例: https://www.qidian.com\",\n },\n {\n title: \"源类型\",\n rows: 1,\n id: \"bookSourceType\",\n hint: \"<必填>0:文本 1:音频 2:图片 3:文件(只提供下载的网站)\",\n },\n {\n title: \"源名称\",\n rows: 1,\n id: \"bookSourceName\",\n hint: \"<必填>会显示在源列表\",\n },\n {\n title: \"源分组\",\n rows: 1,\n id: \"bookSourceGroup\",\n hint: \"<选填>描述源的特征信息\",\n },\n {\n title: \"源注释\",\n rows: 1,\n id: \"bookSourceComment\",\n hint: \"<选填>描述源作者和状态\",\n },\n {\n title: \"登录地址\",\n rows: 1,\n id: \"loginUrl\",\n hint: \"<选填>填写网站登录网址,仅在需要登录的源有用\",\n },\n {\n title: \"登录界面\",\n rows: 3,\n id: \"loginUi\",\n hint: \"<选填>自定义登录界面\",\n },\n {\n title: \"登录检测\",\n rows: 3,\n id: \"loginCheckJs\",\n hint: \"<选填>登录检测js\",\n },\n {\n title: \"并发率\",\n rows: 1,\n id: \"concurrentRate\",\n hint: \"<选填>并发率\",\n },\n {\n title: \"请求头\",\n rows: 3,\n id: \"header\",\n hint: \"<选填>客户端标识\",\n },\n {\n title: \"链接验证\",\n rows: 1,\n id: \"bookUrlPattern\",\n hint: \"<选填>当详情页URL与源URL的域名不一致时有效,用于添加网址\",\n },\n ],\n search: [\n {\n title: \"搜索地址\",\n rows: 1,\n id: \"searchUrl\",\n hint: \"[域名可省略]/search.php@kw={{key}}\",\n },\n {\n title: \"校验文字\",\n rows: 1,\n id: \"ruleSearch_checkKeyWord\",\n hint: \"校验关键字\",\n },\n {\n title: \"列表规则\",\n rows: 1,\n id: \"ruleSearch_bookList\",\n hint: \"选择书籍节点 (规则结果为List)\",\n },\n {\n title: \"书名规则\",\n rows: 1,\n id: \"ruleSearch_name\",\n hint: \"选择节点书名 (规则结果为String)\",\n },\n {\n title: \"作者规则\",\n rows: 1,\n id: \"ruleSearch_author\",\n hint: \"选择节点作者 (规则结果为String)\",\n },\n {\n title: \"分类规则\",\n rows: 1,\n id: \"ruleSearch_kind\",\n hint: \"选择节点分类信息 (规则结果为String)\",\n },\n {\n title: \"字数规则\",\n rows: 1,\n id: \"ruleSearch_wordCount\",\n hint: \"选择节点字数信息 (规则结果为String)\",\n },\n {\n title: \"最新章节\",\n rows: 1,\n id: \"ruleSearch_lastChapter\",\n hint: \"选择节点最新章节 (规则结果为String)\",\n },\n {\n title: \"简介规则\",\n rows: 1,\n id: \"ruleSearch_intro\",\n hint: \"选择节点书籍简介 (规则结果为String)\",\n },\n {\n title: \"封面规则\",\n rows: 1,\n id: \"ruleSearch_coverUrl\",\n hint: \"选择节点书籍封面 (规则结果为String类型的url)\",\n },\n {\n title: \"详情地址\",\n rows: 1,\n id: \"ruleSearch_bookUrl\",\n hint: \"选择书籍详情页网址 (规则结果为String类型的url)\",\n },\n ],\n find: [\n {\n title: \"发现地址\",\n rows: 6,\n id: \"exploreUrl\",\n hint: \"内容能显示在发现菜单\\n每行一条发现分类(网址域名可省略),例:\\n名称1::网址(Url)1\\n名称2::网址(Url)2\\n...\",\n },\n {\n title: \"列表规则\",\n rows: 1,\n id: \"ruleExplore_bookList\",\n hint: \"选择书籍节点 (规则结果为List)\",\n },\n {\n title: \"书名规则\",\n rows: 1,\n id: \"ruleExplore_name\",\n hint: \"选择节点书名 (规则结果为String)\",\n },\n {\n title: \"作者规则\",\n rows: 1,\n id: \"ruleExplore_author\",\n hint: \"选择节点作者 (规则结果为String)\",\n },\n {\n title: \"分类规则\",\n rows: 1,\n id: \"ruleExplore_kind\",\n hint: \"选择节点分类信息 (规则结果为String)\",\n },\n {\n title: \"字数规则\",\n rows: 1,\n id: \"ruleExplore_wordCount\",\n hint: \"选择节点字数信息 (规则结果为String)\",\n },\n {\n title: \"最新章节\",\n rows: 1,\n id: \"ruleExplore_lastChapter\",\n hint: \"选择节点最新章节 (规则结果为String)\",\n },\n {\n title: \"简介规则\",\n rows: 1,\n id: \"ruleExplore_intro\",\n hint: \"选择节点书籍简介 (规则结果为String)\",\n },\n {\n title: \"封面规则\",\n rows: 1,\n id: \"ruleExplore_coverUrl\",\n hint: \"选择节点书籍封面 (规则结果为String类型的url)\",\n },\n {\n title: \"详情地址\",\n rows: 1,\n id: \"ruleExplore_bookUrl\",\n hint: \"选择书籍详情页网址 (规则结果为String类型的url)\",\n },\n ],\n detail: [\n {\n title: \"预处理\",\n rows: 3,\n id: \"ruleBookInfo_init\",\n hint: \"用于加速详情信息检索,只支持AllInOne规则\",\n },\n {\n title: \"书名规则\",\n rows: 1,\n id: \"ruleBookInfo_name\",\n hint: \"选择节点书名 (规则结果为String)\",\n },\n {\n title: \"作者规则\",\n rows: 1,\n id: \"ruleBookInfo_author\",\n hint: \"选择节点作者 (规则结果为String)\",\n },\n {\n title: \"分类规则\",\n rows: 1,\n id: \"ruleBookInfo_kind\",\n hint: \"选择节点分类信息 (规则结果为String)\",\n },\n {\n title: \"字数规则\",\n rows: 1,\n id: \"ruleBookInfo_wordCount\",\n hint: \"选择节点字数信息 (规则结果为String)\",\n },\n {\n title: \"最新章节\",\n rows: 1,\n id: \"ruleBookInfo_lastChapter\",\n hint: \"选择节点最新章节 (规则结果为String)\",\n },\n {\n title: \"简介规则\",\n rows: 1,\n id: \"ruleBookInfo_intro\",\n hint: \"选择节点书籍简介 (规则结果为String)\",\n },\n {\n title: \"封面规则\",\n rows: 1,\n id: \"ruleBookInfo_coverUrl\",\n hint: \"选择节点书籍封面 (规则结果为String类型的url)\",\n },\n {\n title: \"目录地址\",\n rows: 1,\n id: \"ruleBookInfo_tocUrl\",\n hint: \"选择书籍详情页网址 (规则结果为String类型的url, 与详情页相同时可省略)\",\n },\n ],\n directory: [\n {\n title: \"列表规则\",\n rows: 3,\n id: \"ruleToc_chapterList\",\n hint: \"选择目录列表的章节节点 (规则结果为List)\",\n },\n {\n title: \"章节名称\",\n rows: 1,\n id: \"ruleToc_chapterName\",\n hint: \"选择章节名称 (规则结果为String)\",\n },\n {\n title: \"章节地址\",\n rows: 1,\n id: \"ruleToc_chapterUrl\",\n hint: \"选择章节链接 (规则结果为String类型的Url)\",\n },\n {\n title: \"卷名标识\",\n rows: 1,\n id: \"ruleToc_isVolume\",\n hint: \"章节名称是否是卷名 (规则结果为Bool)\",\n },\n {\n title: \"收费标识\",\n rows: 1,\n id: \"ruleToc_isVip\",\n hint: \"章节是否为VIP章节 (规则结果为Bool)\",\n },\n {\n title: \"购买标识\",\n rows: 1,\n id: \"ruleToc_isPay\",\n hint: \"章节是否为已购买 (规则结果为Bool)\",\n },\n {\n title: \"章节信息\",\n rows: 1,\n id: \"ruleToc_updateTime\",\n hint: \"选择章节信息 (规则结果为String)\",\n },\n {\n title: \"翻页规则\",\n rows: 1,\n id: \"ruleToc_nextTocUrl\",\n hint: \"选择目录下一页链接 (规则结果为List或String)\",\n },\n ],\n content: [\n {\n title: \"脚本注入\",\n rows: 3,\n id: \"ruleContent_webJs\",\n hint: \"注入javascript,用于模拟鼠标点击等,必须有返回值,一般为String类型\",\n },\n {\n title: \"正文规则\",\n rows: 1,\n id: \"ruleContent_content\",\n hint: \"选择正文内容 (规则结果为String)\",\n },\n {\n title: \"翻页规则\",\n rows: 1,\n id: \"ruleContent_nextContentUrl\",\n hint: \"选择下一分页(不是下一章)链接 (规则结果为String类型的Url)\",\n },\n {\n title: \"资源正则\",\n rows: 1,\n id: \"ruleContent_sourceRegex\",\n hint: \"匹配资源的url特征,用于嗅探\",\n },\n {\n title: \"替换规则\",\n rows: 1,\n id: \"ruleContent_replaceRegex\",\n hint: \"多页内容合并后替换,用于正文净化\",\n },\n {\n title: \"图片样式\",\n rows: 1,\n id: \"ruleContent_imageStyle\",\n hint: \"FULL:铺满 不填:默认样式\",\n },\n {\n title: \"购买操作\",\n rows: 1,\n id: \"ruleContent_payAction\",\n hint: \"购买章节 返回链接或js\",\n },\n ],\n other: [\n {\n title: \"启用搜索\",\n rows: 1,\n id: \"enabled\",\n hint: \"启用: true 关闭: false (可选,默认true)\",\n },\n {\n title: \"启用发现\",\n rows: 1,\n id: \"enabledExplore\",\n hint: \"启用: true 关闭: false (可选,默认true)\",\n },\n {\n title: \"搜索权重\",\n rows: 1,\n id: \"weight\",\n hint: \"整数: 0~N (可选,默认0) | 数字越大越靠前\",\n },\n {\n title: \"排序编号\",\n rows: 1,\n id: \"customOrder\",\n hint: \"整数: 0~N (可选,默认0) | 数字越小越靠前\",\n },\n ],\n};\n","import { render } from \"./bookBase.vue?vue&type=template&id=62934290\"\nimport script from \"./bookBase.vue?vue&type=script&lang=js\"\nexport * from \"./bookBase.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"F:\\\\study\\\\legado_web_editor\\\\node_modules\\\\vue-loader\\\\dist\\\\exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n","import { reactive, toRefs, watchEffect } from \"vue\";\nimport store from \"@/store\";\n\nexport default function () {\n const data = reactive({\n bookContent: store.state.bookItemContent,\n });\n const upData = (newContent) => {\n // console.log(newContent);\n store.commit(\"changeBookItemNewContent\", newContent);\n };\n const setContent = (elId) => {\n try {\n if (elId.includes(\"_\")) {\n let rule1 = elId.split(\"_\")[0];\n let rule2 = elId.split(\"_\")[1];\n return data.bookContent[rule1][rule2];\n } else {\n return data.bookContent[elId];\n }\n } catch (e) {\n console.log(\"导入错误\", e.TypeError);\n store.commit(\"clearEdit\");\n }\n };\n\n watchEffect(() => {\n data.bookContent = store.state.bookItemContent;\n });\n return {\n ...toRefs(data),\n upData,\n setContent,\n };\n}\n","import { render } from \"./bookSearch.vue?vue&type=template&id=2d21a82c\"\nimport script from \"./bookSearch.vue?vue&type=script&lang=js\"\nexport * from \"./bookSearch.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"F:\\\\study\\\\legado_web_editor\\\\node_modules\\\\vue-loader\\\\dist\\\\exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./bookDirectory.vue?vue&type=template&id=d341382e\"\nimport script from \"./bookDirectory.vue?vue&type=script&lang=js\"\nexport * from \"./bookDirectory.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"F:\\\\study\\\\legado_web_editor\\\\node_modules\\\\vue-loader\\\\dist\\\\exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./bookContent.vue?vue&type=template&id=93f5f75e\"\nimport script from \"./bookContent.vue?vue&type=script&lang=js\"\nexport * from \"./bookContent.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"F:\\\\study\\\\legado_web_editor\\\\node_modules\\\\vue-loader\\\\dist\\\\exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./bookDetail.vue?vue&type=template&id=48657fe9\"\nimport script from \"./bookDetail.vue?vue&type=script&lang=js\"\nexport * from \"./bookDetail.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"F:\\\\study\\\\legado_web_editor\\\\node_modules\\\\vue-loader\\\\dist\\\\exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./bookOther.vue?vue&type=template&id=0e205a98\"\nimport script from \"./bookOther.vue?vue&type=script&lang=js\"\nexport * from \"./bookOther.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"F:\\\\study\\\\legado_web_editor\\\\node_modules\\\\vue-loader\\\\dist\\\\exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n","import { render } from \"./bookFind.vue?vue&type=template&id=4eb0e864\"\nimport script from \"./bookFind.vue?vue&type=script&lang=js\"\nexport * from \"./bookFind.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"F:\\\\study\\\\legado_web_editor\\\\node_modules\\\\vue-loader\\\\dist\\\\exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { createRouter, createWebHashHistory } from \"vue-router\";\n\nimport bookSource from \"@/views/bookSource\";\nimport bookBase from \"@/views/bookBase\";\nimport bookSearch from \"@/views/bookSearch\";\nimport bookDirectory from \"@/views/bookDirectory\";\nimport bookContent from \"@/views/bookContent\";\nimport bookDetail from \"@/views/bookDetail\";\nimport bookOther from \"@/views/bookOther\";\nimport bookFind from \"@/views/bookFind\";\n\nconst routes = [\n {\n path: \"/\",\n redirect: { name: \"home\" },\n },\n {\n path: \"/bookSource\",\n name: \"home\",\n component: bookSource,\n redirect: { name: \"base\" },\n children: [\n {\n path: \"/bookSource/base\",\n name: \"base\",\n component: bookBase,\n },\n {\n path: \"/bookSource/search\",\n name: \"search\",\n component: bookSearch,\n },\n {\n path: \"/bookSource/find\",\n name: \"find\",\n component: bookFind,\n },\n {\n path: \"/bookSource/detail\",\n name: \"detail\",\n component: bookDetail,\n },\n {\n path: \"/bookSource/directory\",\n name: \"directory\",\n component: bookDirectory,\n },\n {\n path: \"/bookSource/content\",\n name: \"content\",\n component: bookContent,\n },\n {\n path: \"/bookSource/other\",\n name: \"other\",\n component: bookOther,\n },\n {\n path: \"/bookSource/:asdasdasd/:asdasdas\",\n redirect: { name: \"home\" },\n },\n ],\n },\n {\n path: \"/:asdasdasd\",\n redirect: { name: \"home\" },\n },\n {\n path: \"/bookSource/:asdasdasda\",\n redirect: { name: \"home\" },\n },\n];\n\nconst router = createRouter({\n // history: createWebHistory(process.env.BASE_URL),\n history: createWebHashHistory(),\n routes,\n});\n\nexport default router;\n","import { createApp } from \"vue\";\nimport App from \"./App.vue\";\nimport router from \"./router\";\nimport store from \"./store\";\n\ncreateApp(App).use(store).use(router).mount(\"#app\");\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","var deferred = [];\n__webpack_require__.O = function(result, chunkIds, fn, priority) {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar chunkIds = deferred[i][0];\n\t\tvar fn = deferred[i][1];\n\t\tvar priority = deferred[i][2];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every(function(key) { return __webpack_require__.O[key](chunkIds[j]); })) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","// define getter functions for harmony exports\n__webpack_require__.d = function(exports, definition) {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.g = (function() {\n\tif (typeof globalThis === 'object') return globalThis;\n\ttry {\n\t\treturn this || new Function('return this')();\n\t} catch (e) {\n\t\tif (typeof window === 'object') return window;\n\t}\n})();","__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t143: 0\n};\n\n// no chunk on demand loading\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = function(chunkId) { return installedChunks[chunkId] === 0; };\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = function(parentChunkLoadingFunction, data) {\n\tvar chunkIds = data[0];\n\tvar moreModules = data[1];\n\tvar runtime = data[2];\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some(function(id) { return installedChunks[id] !== 0; })) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = self[\"webpackChunklegado_web_editor\"] = self[\"webpackChunklegado_web_editor\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","// startup\n// Load entry module and return exports\n// This entry module depends on other loaded chunks and execution need to be delayed\nvar __webpack_exports__ = __webpack_require__.O(undefined, [998], function() { return __webpack_require__(163); })\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n"],"names":["class","_createElementBlock","_createVNode","_component_router_view","setup","__exports__","render","_createElementVNode","href","_hoisted_2","_component_router_link","to","name","custom","navigate","isActive","onClick","active","_hoisted_3","_hoisted_4","_hoisted_5","_hoisted_6","_hoisted_7","_hoisted_8","_hoisted_9","Component","_createBlock","_KeepAlive","_resolveDynamicComponent","_component_edit_menu","_component_edit_out","_hoisted_12","_hoisted_15","_hoisted_18","_hoisted_21","_hoisted_24","$setup","_component_edit_loading","key","_component_edit_warn","text","onChangeShow","_component_edit_success","isShow","title","http","type","data","formatUrl","localStorage","getItem","Get","Post","url","body","fetch","method","headers","JSON","stringify","then","res","json","createStore","state","bookSource","bookItemContent","source_json","currentTab","editTabSourceInfo","deBugMsg","searchKey","deleteSources","getters","mutations","delBookSources","delArr","console","log","forEach","item","splice","changeSearchKey","changeUrl","setItem","changeSource","changeBookItemContent","content","newContent","parse","changeBookItemNewContent","includes","rule1","split","rule2","value","lastUpdateTime","Date","getTime","changeTabName","tabName","changeEidtTabSourceInfo","sourceJsonKey","bookItemContentKey","editHistory","history","historyObj","new","push","length","shift","old","arr","editHistoryUndo","pop","clearAllHistory","clearEdit","changeDeBugMsg","msg","el","document","querySelector","scrollTop","scrollHeight","deBugMsgClear","clearAllSource","actions","modules","$props","_toDisplayString","props","default","Boolean","String","emit","changeShow","emits","setTimeout","components","editLoading","editWarn","editSuccess","ref","warnShow","successText","successShow","warnText","bool","changeSuccessShow","pull","store","commit","catch","err","isSuccess","okData","Array","isArray","failMsg","find","x","bookSourceUrl","errorMsg","conver","undo","redo","saveSource","bookSourceType","bookSourceName","debug","socket","WebSocket","replace","port","parseInt","sKey","ruleSearch","checkKeyWord","onopen","send","onmessage","onclose","onMounted","onkeydown","e","ctrlKey","metaKey","preventDefault","shiftKey","_ctx","placeholder","$event","reactive","sourceInfo","watchEffect","Object","keys","toRefs","style","onInput","onKeydown","id","textareaDom","printDebug","changeSearch","startSearch","querySelectorAll","click","_Fragment","_renderList","index","bookSourceGroup","bookSources","currentActive","handleItemClick","sourcesList","clearAllSources","formatTime","date","time","year","getFullYear","month","getMonth","day","getDate","hour","getHours","minute","getMinutes","seconds","getSeconds","filter","toUpperCase","deleteActiveSource","delSources","source","upFile","input","createElement","accept","addEventListener","file","target","files","reader","FileReader","readAsText","onload","jsonData","result","outExport","exportFile","download","myBlob","Blob","window","URL","createObjectURL","_hoisted_1","editDebug","editTab","editList","editHelp","current_tab","handleSetActive","changInput","pullSource","editMenu","editOut","_component_edit_input","hint","rows","onChangeContent","onBlur","onFocus","Number","attr","change","getAttribute","changeHistory","newHistory","idName","changeHeight","nextTick","textArea","height","offsetHeight","base","search","detail","directory","other","editInput","bookinfo","bookContent","upData","setContent","elId","TypeError","useCounter","routes","path","redirect","component","children","bookBase","bookSearch","bookFind","bookDetail","bookDirectory","bookOther","router","createRouter","createWebHashHistory","createApp","App","use","mount","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","exports","module","__webpack_modules__","m","deferred","O","chunkIds","fn","priority","notFulfilled","Infinity","i","fulfilled","j","every","r","d","definition","o","defineProperty","enumerable","get","g","globalThis","this","Function","obj","prop","prototype","hasOwnProperty","call","installedChunks","chunkId","webpackJsonpCallback","parentChunkLoadingFunction","moreModules","runtime","some","chunkLoadingGlobal","self","bind","__webpack_exports__"],"sourceRoot":""} \ No newline at end of file diff --git a/app/src/main/assets/web/bookSource/js/chunk-vendors.86212f98.js b/app/src/main/assets/web/bookSource/js/chunk-vendors.86212f98.js new file mode 100644 index 000000000..929f39b08 --- /dev/null +++ b/app/src/main/assets/web/bookSource/js/chunk-vendors.86212f98.js @@ -0,0 +1,14 @@ +"use strict";(self["webpackChunklegado_web_editor"]=self["webpackChunklegado_web_editor"]||[]).push([[998],{262:function(e,t,n){n.d(t,{BK:function(){return De},Bj:function(){return s},Fl:function(){return He},IU:function(){return Re},Jd:function(){return x},PG:function(){return Ce},SU:function(){return Ne},Um:function(){return we},WL:function(){return Ve},X$:function(){return O},X3:function(){return Oe},XI:function(){return Le},Xl:function(){return Ae},dq:function(){return Fe},iH:function(){return Me},j:function(){return S},lk:function(){return C},qj:function(){return be},qq:function(){return _},yT:function(){return Ee}});var r=n(577);let o;class s{constructor(e=!1){this.active=!0,this.effects=[],this.cleanups=[],!e&&o&&(this.parent=o,this.index=(o.scopes||(o.scopes=[])).push(this)-1)}run(e){if(this.active){const t=o;try{return o=this,e()}finally{o=t}}else 0}on(){o=this}off(){o=this.parent}stop(e){if(this.active){let t,n;for(t=0,n=this.effects.length;t{const t=new Set(e);return t.w=0,t.n=0,t},l=e=>(e.w&h)>0,u=e=>(e.n&h)>0,a=({deps:e})=>{if(e.length)for(let t=0;t{const{deps:t}=e;if(t.length){let n=0;for(let r=0;r{("length"===t||t>=o)&&u.push(e)}));else switch(void 0!==n&&u.push(l.get(n)),t){case"add":(0,r.kJ)(e)?(0,r.S0)(n)&&u.push(l.get("length")):(u.push(l.get(v)),(0,r._N)(e)&&u.push(l.get(y)));break;case"delete":(0,r.kJ)(e)||(u.push(l.get(v)),(0,r._N)(e)&&u.push(l.get(y)));break;case"set":(0,r._N)(e)&&u.push(l.get(v));break}if(1===u.length)u[0]&&R(u[0]);else{const e=[];for(const t of u)t&&e.push(...t);R(c(e))}}function R(e,t){const n=(0,r.kJ)(e)?e:[...e];for(const r of n)r.computed&&A(r,t);for(const r of n)r.computed||A(r,t)}function A(e,t){(e!==g||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}const j=(0,r.fY)("__proto__,__v_isRef,__isVue"),I=new Set(Object.getOwnPropertyNames(Symbol).filter((e=>"arguments"!==e&&"caller"!==e)).map((e=>Symbol[e])).filter(r.yk)),T=$(),P=$(!1,!0),F=$(!0),M=L();function L(){const e={};return["includes","indexOf","lastIndexOf"].forEach((t=>{e[t]=function(...e){const n=Re(this);for(let t=0,o=this.length;t{e[t]=function(...e){x();const n=Re(this)[t].apply(this,e);return C(),n}})),e}function $(e=!1,t=!1){return function(n,o,s){if("__v_isReactive"===o)return!e;if("__v_isReadonly"===o)return e;if("__v_isShallow"===o)return t;if("__v_raw"===o&&s===(e?t?ve:ge:t?me:he).get(n))return n;const i=(0,r.kJ)(n);if(!e&&i&&(0,r.RI)(M,o))return Reflect.get(M,o,s);const c=Reflect.get(n,o,s);return((0,r.yk)(o)?I.has(o):j(o))?c:(e||S(n,"get",o),t?c:Fe(c)?i&&(0,r.S0)(o)?c:c.value:(0,r.Kn)(c)?e?ke(c):be(c):c)}}const U=J(),N=J(!0);function J(e=!1){return function(t,n,o,s){let i=t[n];if(Se(i)&&Fe(i)&&!Fe(o))return!1;if(!e&&!Se(o)&&(Ee(o)||(o=Re(o),i=Re(i)),!(0,r.kJ)(t)&&Fe(i)&&!Fe(o)))return i.value=o,!0;const c=(0,r.kJ)(t)&&(0,r.S0)(n)?Number(n)e,K=e=>Reflect.getPrototypeOf(e);function z(e,t,n=!1,r=!1){e=e["__v_raw"];const o=Re(e),s=Re(t);n||(t!==s&&S(o,"get",t),S(o,"get",s));const{has:i}=K(o),c=r?W:n?Ie:je;return i.call(o,t)?c(e.get(t)):i.call(o,s)?c(e.get(s)):void(e!==o&&e.get(t))}function X(e,t=!1){const n=this["__v_raw"],r=Re(n),o=Re(e);return t||(e!==o&&S(r,"has",e),S(r,"has",o)),e===o?n.has(e):n.has(e)||n.has(o)}function Z(e,t=!1){return e=e["__v_raw"],!t&&S(Re(e),"iterate",v),Reflect.get(e,"size",e)}function Y(e){e=Re(e);const t=Re(this),n=K(t),r=n.has.call(t,e);return r||(t.add(e),O(t,"add",e,e)),this}function Q(e,t){t=Re(t);const n=Re(this),{has:o,get:s}=K(n);let i=o.call(n,e);i||(e=Re(e),i=o.call(n,e));const c=s.call(n,e);return n.set(e,t),i?(0,r.aU)(t,c)&&O(n,"set",e,t,c):O(n,"add",e,t),this}function ee(e){const t=Re(this),{has:n,get:r}=K(t);let o=n.call(t,e);o||(e=Re(e),o=n.call(t,e));const s=r?r.call(t,e):void 0,i=t.delete(e);return o&&O(t,"delete",e,void 0,s),i}function te(){const e=Re(this),t=0!==e.size,n=void 0,r=e.clear();return t&&O(e,"clear",void 0,void 0,n),r}function ne(e,t){return function(n,r){const o=this,s=o["__v_raw"],i=Re(s),c=t?W:e?Ie:je;return!e&&S(i,"iterate",v),s.forEach(((e,t)=>n.call(r,c(e),c(t),o)))}}function re(e,t,n){return function(...o){const s=this["__v_raw"],i=Re(s),c=(0,r._N)(i),l="entries"===e||e===Symbol.iterator&&c,u="keys"===e&&c,a=s[e](...o),f=n?W:t?Ie:je;return!t&&S(i,"iterate",u?y:v),{next(){const{value:e,done:t}=a.next();return t?{value:e,done:t}:{value:l?[f(e[0]),f(e[1])]:f(e),done:t}},[Symbol.iterator](){return this}}}}function oe(e){return function(...t){return"delete"!==e&&this}}function se(){const e={get(e){return z(this,e)},get size(){return Z(this)},has:X,add:Y,set:Q,delete:ee,clear:te,forEach:ne(!1,!1)},t={get(e){return z(this,e,!1,!0)},get size(){return Z(this)},has:X,add:Y,set:Q,delete:ee,clear:te,forEach:ne(!1,!0)},n={get(e){return z(this,e,!0)},get size(){return Z(this,!0)},has(e){return X.call(this,e,!0)},add:oe("add"),set:oe("set"),delete:oe("delete"),clear:oe("clear"),forEach:ne(!0,!1)},r={get(e){return z(this,e,!0,!0)},get size(){return Z(this,!0)},has(e){return X.call(this,e,!0)},add:oe("add"),set:oe("set"),delete:oe("delete"),clear:oe("clear"),forEach:ne(!0,!0)},o=["keys","values","entries",Symbol.iterator];return o.forEach((o=>{e[o]=re(o,!1,!1),n[o]=re(o,!0,!1),t[o]=re(o,!1,!0),r[o]=re(o,!0,!0)})),[e,n,t,r]}const[ie,ce,le,ue]=se();function ae(e,t){const n=t?e?ue:le:e?ce:ie;return(t,o,s)=>"__v_isReactive"===o?!e:"__v_isReadonly"===o?e:"__v_raw"===o?t:Reflect.get((0,r.RI)(n,o)&&o in t?n:t,o,s)}const fe={get:ae(!1,!1)},pe={get:ae(!1,!0)},de={get:ae(!0,!1)};const he=new WeakMap,me=new WeakMap,ge=new WeakMap,ve=new WeakMap;function ye(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function _e(e){return e["__v_skip"]||!Object.isExtensible(e)?0:ye((0,r.W7)(e))}function be(e){return Se(e)?e:xe(e,!1,B,fe,he)}function we(e){return xe(e,!1,H,pe,me)}function ke(e){return xe(e,!0,q,de,ge)}function xe(e,t,n,o,s){if(!(0,r.Kn)(e))return e;if(e["__v_raw"]&&(!t||!e["__v_isReactive"]))return e;const i=s.get(e);if(i)return i;const c=_e(e);if(0===c)return e;const l=new Proxy(e,2===c?o:n);return s.set(e,l),l}function Ce(e){return Se(e)?Ce(e["__v_raw"]):!(!e||!e["__v_isReactive"])}function Se(e){return!(!e||!e["__v_isReadonly"])}function Ee(e){return!(!e||!e["__v_isShallow"])}function Oe(e){return Ce(e)||Se(e)}function Re(e){const t=e&&e["__v_raw"];return t?Re(t):e}function Ae(e){return(0,r.Nj)(e,"__v_skip",!0),e}const je=e=>(0,r.Kn)(e)?be(e):e,Ie=e=>(0,r.Kn)(e)?ke(e):e;function Te(e){w&&g&&(e=Re(e),E(e.dep||(e.dep=c())))}function Pe(e,t){e=Re(e),e.dep&&R(e.dep)}function Fe(e){return!(!e||!0!==e.__v_isRef)}function Me(e){return $e(e,!1)}function Le(e){return $e(e,!0)}function $e(e,t){return Fe(e)?e:new Ue(e,t)}class Ue{constructor(e,t){this.__v_isShallow=t,this.dep=void 0,this.__v_isRef=!0,this._rawValue=t?e:Re(e),this._value=t?e:je(e)}get value(){return Te(this),this._value}set value(e){e=this.__v_isShallow?e:Re(e),(0,r.aU)(e,this._rawValue)&&(this._rawValue=e,this._value=this.__v_isShallow?e:je(e),Pe(this,e))}}function Ne(e){return Fe(e)?e.value:e}const Je={get:(e,t,n)=>Ne(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const o=e[t];return Fe(o)&&!Fe(n)?(o.value=n,!0):Reflect.set(e,t,n,r)}};function Ve(e){return Ce(e)?e:new Proxy(e,Je)}function De(e){const t=(0,r.kJ)(e)?new Array(e.length):{};for(const n in e)t[n]=Be(e,n);return t}class Ge{constructor(e,t,n){this._object=e,this._key=t,this._defaultValue=n,this.__v_isRef=!0}get value(){const e=this._object[this._key];return void 0===e?this._defaultValue:e}set value(e){this._object[this._key]=e}}function Be(e,t,n){const r=e[t];return Fe(r)?r:new Ge(e,t,n)}class qe{constructor(e,t,n,r){this._setter=t,this.dep=void 0,this.__v_isRef=!0,this._dirty=!0,this.effect=new _(e,(()=>{this._dirty||(this._dirty=!0,Pe(this))})),this.effect.computed=this,this.effect.active=this._cacheable=!r,this["__v_isReadonly"]=n}get value(){const e=Re(this);return Te(e),!e._dirty&&e._cacheable||(e._dirty=!1,e._value=e.effect.run()),e._value}set value(e){this._setter(e)}}function He(e,t,n=!1){let o,s;const i=(0,r.mf)(e);i?(o=e,s=r.dG):(o=e.get,s=e.set);const c=new qe(o,s,i||!s,n);return c}},252:function(e,t,n){n.d(t,{$d:function(){return i},Cn:function(){return V},FN:function(){return kn},Fl:function(){return Un},HY:function(){return Jt},JJ:function(){return Z},Ko:function(){return Ke},LL:function(){return qe},Ob:function(){return be},P$:function(){return ue},Q6:function(){return me},U2:function(){return fe},Uk:function(){return an},Us:function(){return Ft},Wm:function(){return sn},Y3:function(){return k},Y8:function(){return ie},YP:function(){return te},_:function(){return on},aZ:function(){return ge},bv:function(){return Ie},dD:function(){return J},f3:function(){return Y},h:function(){return Nn},iD:function(){return Zt},ic:function(){return Pe},j4:function(){return Yt},kq:function(){return pn},m0:function(){return Q},nK:function(){return he},uE:function(){return fn},up:function(){return Ge},w5:function(){return D},wg:function(){return Ht},wy:function(){return Je}});var r=n(262),o=n(577);function s(e,t,n,r){let o;try{o=r?e(...r):e()}catch(s){c(s,t,n)}return o}function i(e,t,n,r){if((0,o.mf)(e)){const i=s(e,t,n,r);return i&&(0,o.tI)(i)&&i.catch((e=>{c(e,t,n)})),i}const l=[];for(let o=0;o>>1,o=T(f[r]);op&&f.splice(t,1)}function O(e,t,n,r){(0,o.kJ)(e)?n.push(...e):t&&t.includes(e,e.allowRecurse?r+1:r)||n.push(e),S()}function R(e){O(e,h,d,m)}function A(e){O(e,v,g,y)}function j(e,t=null){if(d.length){for(w=t,h=[...new Set(d)],d.length=0,m=0;mT(e)-T(t))),y=0;ynull==e.id?1/0:e.id;function P(e){a=!1,u=!0,j(e),f.sort(((e,t)=>T(e)-T(t)));o.dG;try{for(p=0;pe.trim()))),t&&(s=n.map(o.He))}let u;let a=r[u=(0,o.hR)(t)]||r[u=(0,o.hR)((0,o._A)(t))];!a&&c&&(a=r[u=(0,o.hR)((0,o.rs)(t))]),a&&i(a,e,6,s);const f=r[u+"Once"];if(f){if(e.emitted){if(e.emitted[u])return}else e.emitted={};e.emitted[u]=!0,i(f,e,6,s)}}function M(e,t,n=!1){const r=t.emitsCache,s=r.get(e);if(void 0!==s)return s;const i=e.emits;let c={},l=!1;if(!(0,o.mf)(e)){const r=e=>{const n=M(e,t,!0);n&&(l=!0,(0,o.l7)(c,n))};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}return i||l?((0,o.kJ)(i)?i.forEach((e=>c[e]=null)):(0,o.l7)(c,i),r.set(e,c),c):(r.set(e,null),null)}function L(e,t){return!(!e||!(0,o.F7)(t))&&(t=t.slice(2).replace(/Once$/,""),(0,o.RI)(e,t[0].toLowerCase()+t.slice(1))||(0,o.RI)(e,(0,o.rs)(t))||(0,o.RI)(e,t))}let $=null,U=null;function N(e){const t=$;return $=e,U=e&&e.type.__scopeId||null,t}function J(e){U=e}function V(){U=null}function D(e,t=$,n){if(!t)return e;if(e._n)return e;const r=(...n)=>{r._d&&zt(-1);const o=N(t),s=e(...n);return N(o),r._d&&zt(1),s};return r._n=!0,r._c=!0,r._d=!0,r}function G(e){const{type:t,vnode:n,proxy:r,withProxy:s,props:i,propsOptions:[l],slots:u,attrs:a,emit:f,render:p,renderCache:d,data:h,setupState:m,ctx:g,inheritAttrs:v}=e;let y,_;const b=N(e);try{if(4&n.shapeFlag){const e=s||r;y=dn(p.call(e,e,d,i,m,h,g)),_=a}else{const e=t;0,y=dn(e.length>1?e(i,{attrs:a,slots:u,emit:f}):e(i,null)),_=t.props?a:B(a)}}catch(k){Bt.length=0,c(k,e,1),y=sn(Dt)}let w=y;if(_&&!1!==v){const e=Object.keys(_),{shapeFlag:t}=w;e.length&&7&t&&(l&&e.some(o.tR)&&(_=q(_,l)),w=un(w,_))}return n.dirs&&(w=un(w),w.dirs=w.dirs?w.dirs.concat(n.dirs):n.dirs),n.transition&&(w.transition=n.transition),y=w,N(b),y}const B=e=>{let t;for(const n in e)("class"===n||"style"===n||(0,o.F7)(n))&&((t||(t={}))[n]=e[n]);return t},q=(e,t)=>{const n={};for(const r in e)(0,o.tR)(r)&&r.slice(9)in t||(n[r]=e[r]);return n};function H(e,t,n){const{props:r,children:o,component:s}=e,{props:i,children:c,patchFlag:l}=t,u=s.emitsOptions;if(t.dirs||t.transition)return!0;if(!(n&&l>=0))return!(!o&&!c||c&&c.$stable)||r!==i&&(r?!i||W(r,i,u):!!i);if(1024&l)return!0;if(16&l)return r?W(r,i,u):!!i;if(8&l){const e=t.dynamicProps;for(let t=0;te.__isSuspense;function X(e,t){t&&t.pendingBranch?(0,o.kJ)(e)?t.effects.push(...e):t.effects.push(e):A(e)}function Z(e,t){if(wn){let n=wn.provides;const r=wn.parent&&wn.parent.provides;r===n&&(n=wn.provides=Object.create(r)),n[e]=t}else 0}function Y(e,t,n=!1){const r=wn||$;if(r){const s=null==r.parent?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides;if(s&&e in s)return s[e];if(arguments.length>1)return n&&(0,o.mf)(t)?t.call(r.proxy):t}else 0}function Q(e,t){return ne(e,null,t)}const ee={};function te(e,t,n){return ne(e,t,n)}function ne(e,t,{immediate:n,deep:c,flush:l,onTrack:u,onTrigger:a}=o.kT){const f=wn;let p,d,h=!1,m=!1;if((0,r.dq)(e)?(p=()=>e.value,h=(0,r.yT)(e)):(0,r.PG)(e)?(p=()=>e,c=!0):(0,o.kJ)(e)?(m=!0,h=e.some((e=>(0,r.PG)(e)||(0,r.yT)(e))),p=()=>e.map((e=>(0,r.dq)(e)?e.value:(0,r.PG)(e)?se(e):(0,o.mf)(e)?s(e,f,2):void 0))):p=(0,o.mf)(e)?t?()=>s(e,f,2):()=>{if(!f||!f.isUnmounted)return d&&d(),i(e,f,3,[g])}:o.dG,t&&c){const e=p;p=()=>se(e())}let g=e=>{d=b.onStop=()=>{s(e,f,4)}};if(Rn)return g=o.dG,t?n&&i(t,f,3,[p(),m?[]:void 0,g]):p(),o.dG;let v=m?[]:ee;const y=()=>{if(b.active)if(t){const e=b.run();(c||h||(m?e.some(((e,t)=>(0,o.aU)(e,v[t]))):(0,o.aU)(e,v)))&&(d&&d(),i(t,f,3,[e,v===ee?void 0:v,g]),v=e)}else b.run()};let _;y.allowRecurse=!!t,_="sync"===l?y:"post"===l?()=>Pt(y,f&&f.suspense):()=>R(y);const b=new r.qq(p,_);return t?n?y():v=b.run():"post"===l?Pt(b.run.bind(b),f&&f.suspense):b.run(),()=>{b.stop(),f&&f.scope&&(0,o.Od)(f.scope.effects,b)}}function re(e,t,n){const r=this.proxy,s=(0,o.HD)(e)?e.includes(".")?oe(r,e):()=>r[e]:e.bind(r,r);let i;(0,o.mf)(t)?i=t:(i=t.handler,n=t);const c=wn;xn(this);const l=ne(s,i.bind(r),n);return c?xn(c):Cn(),l}function oe(e,t){const n=t.split(".");return()=>{let t=e;for(let e=0;e{se(e,t)}));else if((0,o.PO)(e))for(const n in e)se(e[n],t);return e}function ie(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Ie((()=>{e.isMounted=!0})),Fe((()=>{e.isUnmounting=!0})),e}const ce=[Function,Array],le={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:ce,onEnter:ce,onAfterEnter:ce,onEnterCancelled:ce,onBeforeLeave:ce,onLeave:ce,onAfterLeave:ce,onLeaveCancelled:ce,onBeforeAppear:ce,onAppear:ce,onAfterAppear:ce,onAppearCancelled:ce},setup(e,{slots:t}){const n=kn(),o=ie();let s;return()=>{const i=t.default&&me(t.default(),!0);if(!i||!i.length)return;let c=i[0];if(i.length>1){let e=!1;for(const t of i)if(t.type!==Dt){0,c=t,e=!0;break}}const l=(0,r.IU)(e),{mode:u}=l;if(o.isLeaving)return pe(c);const a=de(c);if(!a)return pe(c);const f=fe(a,l,o,n);he(a,f);const p=n.subTree,d=p&&de(p);let h=!1;const{getTransitionKey:m}=a.type;if(m){const e=m();void 0===s?s=e:e!==s&&(s=e,h=!0)}if(d&&d.type!==Dt&&(!en(a,d)||h)){const e=fe(d,l,o,n);if(he(d,e),"out-in"===u)return o.isLeaving=!0,e.afterLeave=()=>{o.isLeaving=!1,n.update()},pe(c);"in-out"===u&&a.type!==Dt&&(e.delayLeave=(e,t,n)=>{const r=ae(o,d);r[String(d.key)]=d,e._leaveCb=()=>{t(),e._leaveCb=void 0,delete f.delayedLeave},f.delayedLeave=n})}return c}}},ue=le;function ae(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 fe(e,t,n,r){const{appear:s,mode:c,persisted:l=!1,onBeforeEnter:u,onEnter:a,onAfterEnter:f,onEnterCancelled:p,onBeforeLeave:d,onLeave:h,onAfterLeave:m,onLeaveCancelled:g,onBeforeAppear:v,onAppear:y,onAfterAppear:_,onAppearCancelled:b}=t,w=String(e.key),k=ae(n,e),x=(e,t)=>{e&&i(e,r,9,t)},C=(e,t)=>{const n=t[1];x(e,t),(0,o.kJ)(e)?e.every((e=>e.length<=1))&&n():e.length<=1&&n()},S={mode:c,persisted:l,beforeEnter(t){let r=u;if(!n.isMounted){if(!s)return;r=v||u}t._leaveCb&&t._leaveCb(!0);const o=k[w];o&&en(e,o)&&o.el._leaveCb&&o.el._leaveCb(),x(r,[t])},enter(e){let t=a,r=f,o=p;if(!n.isMounted){if(!s)return;t=y||a,r=_||f,o=b||p}let i=!1;const c=e._enterCb=t=>{i||(i=!0,x(t?o:r,[e]),S.delayedLeave&&S.delayedLeave(),e._enterCb=void 0)};t?C(t,[e,c]):c()},leave(t,r){const o=String(e.key);if(t._enterCb&&t._enterCb(!0),n.isUnmounting)return r();x(d,[t]);let s=!1;const i=t._leaveCb=n=>{s||(s=!0,r(),x(n?g:m,[t]),t._leaveCb=void 0,k[o]===e&&delete k[o])};k[o]=e,h?C(h,[t,i]):i()},clone(e){return fe(e,t,n,r)}};return S}function pe(e){if(ye(e))return e=un(e),e.children=null,e}function de(e){return ye(e)?e.children?e.children[0]:void 0:e}function he(e,t){6&e.shapeFlag&&e.component?he(e.component.subTree,t):128&e.shapeFlag?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function me(e,t=!1,n){let r=[],o=0;for(let s=0;s1)for(let s=0;s!!e.type.__asyncLoader;const ye=e=>e.type.__isKeepAlive,_e={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=kn(),r=n.ctx;if(!r.renderer)return()=>{const e=t.default&&t.default();return e&&1===e.length?e[0]:e};const s=new Map,i=new Set;let c=null;const l=n.suspense,{renderer:{p:u,m:a,um:f,o:{createElement:p}}}=r,d=p("div");function h(e){Ee(e),f(e,n,l,!0)}function m(e){s.forEach(((t,n)=>{const r=Ln(t.type);!r||e&&e(r)||g(n)}))}function g(e){const t=s.get(e);c&&t.type===c.type?c&&Ee(c):h(t),s.delete(e),i.delete(e)}r.activate=(e,t,n,r,s)=>{const i=e.component;a(e,t,n,0,l),u(i.vnode,e,t,n,i,l,r,e.slotScopeIds,s),Pt((()=>{i.isDeactivated=!1,i.a&&(0,o.ir)(i.a);const t=e.props&&e.props.onVnodeMounted;t&&vn(t,i.parent,e)}),l)},r.deactivate=e=>{const t=e.component;a(e,d,null,1,l),Pt((()=>{t.da&&(0,o.ir)(t.da);const n=e.props&&e.props.onVnodeUnmounted;n&&vn(n,t.parent,e),t.isDeactivated=!0}),l)},te((()=>[e.include,e.exclude]),(([e,t])=>{e&&m((t=>we(e,t))),t&&m((e=>!we(t,e)))}),{flush:"post",deep:!0});let v=null;const y=()=>{null!=v&&s.set(v,Oe(n.subTree))};return Ie(y),Pe(y),Fe((()=>{s.forEach((e=>{const{subTree:t,suspense:r}=n,o=Oe(t);if(e.type!==o.type)h(e);else{Ee(o);const e=o.component.da;e&&Pt(e,r)}}))})),()=>{if(v=null,!t.default)return null;const n=t.default(),r=n[0];if(n.length>1)return c=null,n;if(!Qt(r)||!(4&r.shapeFlag)&&!(128&r.shapeFlag))return c=null,r;let o=Oe(r);const l=o.type,u=Ln(ve(o)?o.type.__asyncResolved||{}:l),{include:a,exclude:f,max:p}=e;if(a&&(!u||!we(a,u))||f&&u&&we(f,u))return c=o,r;const d=null==o.key?l:o.key,h=s.get(d);return o.el&&(o=un(o),128&r.shapeFlag&&(r.ssContent=o)),v=d,h?(o.el=h.el,o.component=h.component,o.transition&&he(o,o.transition),o.shapeFlag|=512,i.delete(d),i.add(d)):(i.add(d),p&&i.size>parseInt(p,10)&&g(i.values().next().value)),o.shapeFlag|=256,c=o,z(r.type)?r:o}}},be=_e;function we(e,t){return(0,o.kJ)(e)?e.some((e=>we(e,t))):(0,o.HD)(e)?e.split(",").includes(t):!!e.test&&e.test(t)}function ke(e,t){Ce(e,"a",t)}function xe(e,t){Ce(e,"da",t)}function Ce(e,t,n=wn){const r=e.__wdc||(e.__wdc=()=>{let t=n;while(t){if(t.isDeactivated)return;t=t.parent}return e()});if(Re(t,r,n),n){let e=n.parent;while(e&&e.parent)ye(e.parent.vnode)&&Se(r,t,n,e),e=e.parent}}function Se(e,t,n,r){const s=Re(t,e,r,!0);Me((()=>{(0,o.Od)(r[t],s)}),n)}function Ee(e){let t=e.shapeFlag;256&t&&(t-=256),512&t&&(t-=512),e.shapeFlag=t}function Oe(e){return 128&e.shapeFlag?e.ssContent:e}function Re(e,t,n=wn,o=!1){if(n){const s=n[e]||(n[e]=[]),c=t.__weh||(t.__weh=(...o)=>{if(n.isUnmounted)return;(0,r.Jd)(),xn(n);const s=i(t,n,e,o);return Cn(),(0,r.lk)(),s});return o?s.unshift(c):s.push(c),c}}const Ae=e=>(t,n=wn)=>(!Rn||"sp"===e)&&Re(e,t,n),je=Ae("bm"),Ie=Ae("m"),Te=Ae("bu"),Pe=Ae("u"),Fe=Ae("bum"),Me=Ae("um"),Le=Ae("sp"),$e=Ae("rtg"),Ue=Ae("rtc");function Ne(e,t=wn){Re("ec",e,t)}function Je(e,t){const n=$;if(null===n)return e;const r=Mn(n)||n.proxy,s=e.dirs||(e.dirs=[]);for(let i=0;it(e,n,void 0,i&&i[n])));else{const n=Object.keys(e);s=new Array(n.length);for(let r=0,o=n.length;re?Sn(e)?Mn(e)||e.proxy:ze(e.parent):null,Xe=(0,o.l7)(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=>ze(e.parent),$root:e=>ze(e.root),$emit:e=>e.emit,$options:e=>rt(e),$forceUpdate:e=>e.f||(e.f=()=>C(e.update)),$nextTick:e=>e.n||(e.n=k.bind(e.proxy)),$watch:e=>re.bind(e)}),Ze={get({_:e},t){const{ctx:n,setupState:s,data:i,props:c,accessCache:l,type:u,appContext:a}=e;let f;if("$"!==t[0]){const r=l[t];if(void 0!==r)switch(r){case 1:return s[t];case 2:return i[t];case 4:return n[t];case 3:return c[t]}else{if(s!==o.kT&&(0,o.RI)(s,t))return l[t]=1,s[t];if(i!==o.kT&&(0,o.RI)(i,t))return l[t]=2,i[t];if((f=e.propsOptions[0])&&(0,o.RI)(f,t))return l[t]=3,c[t];if(n!==o.kT&&(0,o.RI)(n,t))return l[t]=4,n[t];Ye&&(l[t]=0)}}const p=Xe[t];let d,h;return p?("$attrs"===t&&(0,r.j)(e,"get",t),p(e)):(d=u.__cssModules)&&(d=d[t])?d:n!==o.kT&&(0,o.RI)(n,t)?(l[t]=4,n[t]):(h=a.config.globalProperties,(0,o.RI)(h,t)?h[t]:void 0)},set({_:e},t,n){const{data:r,setupState:s,ctx:i}=e;return s!==o.kT&&(0,o.RI)(s,t)?(s[t]=n,!0):r!==o.kT&&(0,o.RI)(r,t)?(r[t]=n,!0):!(0,o.RI)(e.props,t)&&(("$"!==t[0]||!(t.slice(1)in e))&&(i[t]=n,!0))},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:s,propsOptions:i}},c){let l;return!!n[c]||e!==o.kT&&(0,o.RI)(e,c)||t!==o.kT&&(0,o.RI)(t,c)||(l=i[0])&&(0,o.RI)(l,c)||(0,o.RI)(r,c)||(0,o.RI)(Xe,c)||(0,o.RI)(s.config.globalProperties,c)},defineProperty(e,t,n){return null!=n.get?e._.accessCache[t]=0:(0,o.RI)(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};let Ye=!0;function Qe(e){const t=rt(e),n=e.proxy,s=e.ctx;Ye=!1,t.beforeCreate&&tt(t.beforeCreate,e,"bc");const{data:i,computed:c,methods:l,watch:u,provide:a,inject:f,created:p,beforeMount:d,mounted:h,beforeUpdate:m,updated:g,activated:v,deactivated:y,beforeDestroy:_,beforeUnmount:b,destroyed:w,unmounted:k,render:x,renderTracked:C,renderTriggered:S,errorCaptured:E,serverPrefetch:O,expose:R,inheritAttrs:A,components:j,directives:I,filters:T}=t,P=null;if(f&&et(f,s,P,e.appContext.config.unwrapInjectedRef),l)for(const r in l){const e=l[r];(0,o.mf)(e)&&(s[r]=e.bind(n))}if(i){0;const t=i.call(n,n);0,(0,o.Kn)(t)&&(e.data=(0,r.qj)(t))}if(Ye=!0,c)for(const r in c){const e=c[r],t=(0,o.mf)(e)?e.bind(n,n):(0,o.mf)(e.get)?e.get.bind(n,n):o.dG;0;const i=!(0,o.mf)(e)&&(0,o.mf)(e.set)?e.set.bind(n):o.dG,l=Un({get:t,set:i});Object.defineProperty(s,r,{enumerable:!0,configurable:!0,get:()=>l.value,set:e=>l.value=e})}if(u)for(const r in u)nt(u[r],s,n,r);if(a){const e=(0,o.mf)(a)?a.call(n):a;Reflect.ownKeys(e).forEach((t=>{Z(t,e[t])}))}function F(e,t){(0,o.kJ)(t)?t.forEach((t=>e(t.bind(n)))):t&&e(t.bind(n))}if(p&&tt(p,e,"c"),F(je,d),F(Ie,h),F(Te,m),F(Pe,g),F(ke,v),F(xe,y),F(Ne,E),F(Ue,C),F($e,S),F(Fe,b),F(Me,k),F(Le,O),(0,o.kJ)(R))if(R.length){const t=e.exposed||(e.exposed={});R.forEach((e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t})}))}else e.exposed||(e.exposed={});x&&e.render===o.dG&&(e.render=x),null!=A&&(e.inheritAttrs=A),j&&(e.components=j),I&&(e.directives=I)}function et(e,t,n=o.dG,s=!1){(0,o.kJ)(e)&&(e=lt(e));for(const i in e){const n=e[i];let c;c=(0,o.Kn)(n)?"default"in n?Y(n.from||i,n.default,!0):Y(n.from||i):Y(n),(0,r.dq)(c)&&s?Object.defineProperty(t,i,{enumerable:!0,configurable:!0,get:()=>c.value,set:e=>c.value=e}):t[i]=c}}function tt(e,t,n){i((0,o.kJ)(e)?e.map((e=>e.bind(t.proxy))):e.bind(t.proxy),t,n)}function nt(e,t,n,r){const s=r.includes(".")?oe(n,r):()=>n[r];if((0,o.HD)(e)){const n=t[e];(0,o.mf)(n)&&te(s,n)}else if((0,o.mf)(e))te(s,e.bind(n));else if((0,o.Kn)(e))if((0,o.kJ)(e))e.forEach((e=>nt(e,t,n,r)));else{const r=(0,o.mf)(e.handler)?e.handler.bind(n):t[e.handler];(0,o.mf)(r)&&te(s,r,e)}else 0}function rt(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:o,optionsCache:s,config:{optionMergeStrategies:i}}=e.appContext,c=s.get(t);let l;return c?l=c:o.length||n||r?(l={},o.length&&o.forEach((e=>ot(l,e,i,!0))),ot(l,t,i)):l=t,s.set(t,l),l}function ot(e,t,n,r=!1){const{mixins:o,extends:s}=t;s&&ot(e,s,n,!0),o&&o.forEach((t=>ot(e,t,n,!0)));for(const i in t)if(r&&"expose"===i);else{const r=st[i]||n&&n[i];e[i]=r?r(e[i],t[i]):t[i]}return e}const st={data:it,props:at,emits:at,methods:at,computed:at,beforeCreate:ut,created:ut,beforeMount:ut,mounted:ut,beforeUpdate:ut,updated:ut,beforeDestroy:ut,beforeUnmount:ut,destroyed:ut,unmounted:ut,activated:ut,deactivated:ut,errorCaptured:ut,serverPrefetch:ut,components:at,directives:at,watch:ft,provide:it,inject:ct};function it(e,t){return t?e?function(){return(0,o.l7)((0,o.mf)(e)?e.call(this,this):e,(0,o.mf)(t)?t.call(this,this):t)}:t:e}function ct(e,t){return at(lt(e),lt(t))}function lt(e){if((0,o.kJ)(e)){const t={};for(let n=0;n0)||16&l){let r;ht(e,t,i,c)&&(f=!0);for(const s in u)t&&((0,o.RI)(t,s)||(r=(0,o.rs)(s))!==s&&(0,o.RI)(t,r))||(a?!n||void 0===n[s]&&void 0===n[r]||(i[s]=mt(a,u,s,void 0,e,!0)):delete i[s]);if(c!==u)for(const e in c)t&&(0,o.RI)(t,e)||(delete c[e],f=!0)}else if(8&l){const n=e.vnode.dynamicProps;for(let r=0;r{u=!0;const[n,r]=gt(e,t,!0);(0,o.l7)(c,n),r&&l.push(...r)};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}if(!i&&!u)return r.set(e,o.Z6),o.Z6;if((0,o.kJ)(i))for(let f=0;f-1,r[1]=n<0||e-1||(0,o.RI)(r,"default"))&&l.push(t)}}}}const a=[c,l];return r.set(e,a),a}function vt(e){return"$"!==e[0]}function yt(e){const t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:null===e?"null":""}function _t(e,t){return yt(e)===yt(t)}function bt(e,t){return(0,o.kJ)(t)?t.findIndex((t=>_t(t,e))):(0,o.mf)(t)&&_t(t,e)?0:-1}const wt=e=>"_"===e[0]||"$stable"===e,kt=e=>(0,o.kJ)(e)?e.map(dn):[dn(e)],xt=(e,t,n)=>{if(t._n)return t;const r=D(((...e)=>kt(t(...e))),n);return r._c=!1,r},Ct=(e,t,n)=>{const r=e._ctx;for(const s in e){if(wt(s))continue;const n=e[s];if((0,o.mf)(n))t[s]=xt(s,n,r);else if(null!=n){0;const e=kt(n);t[s]=()=>e}}},St=(e,t)=>{const n=kt(t);e.slots.default=()=>n},Et=(e,t)=>{if(32&e.vnode.shapeFlag){const n=t._;n?(e.slots=(0,r.IU)(t),(0,o.Nj)(t,"_",n)):Ct(t,e.slots={})}else e.slots={},t&&St(e,t);(0,o.Nj)(e.slots,tn,1)},Ot=(e,t,n)=>{const{vnode:r,slots:s}=e;let i=!0,c=o.kT;if(32&r.shapeFlag){const e=t._;e?n&&1===e?i=!1:((0,o.l7)(s,t),n||1!==e||delete s._):(i=!t.$stable,Ct(t,s)),c=t}else t&&(St(e,t),c={default:1});if(i)for(const o in s)wt(o)||o in c||delete s[o]};function Rt(){return{app:null,config:{isNativeTag:o.NO,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 At=0;function jt(e,t){return function(n,r=null){(0,o.mf)(n)||(n=Object.assign({},n)),null==r||(0,o.Kn)(r)||(r=null);const s=Rt(),i=new Set;let c=!1;const l=s.app={_uid:At++,_component:n,_props:r,_container:null,_context:s,_instance:null,version:Jn,get config(){return s.config},set config(e){0},use(e,...t){return i.has(e)||(e&&(0,o.mf)(e.install)?(i.add(e),e.install(l,...t)):(0,o.mf)(e)&&(i.add(e),e(l,...t))),l},mixin(e){return s.mixins.includes(e)||s.mixins.push(e),l},component(e,t){return t?(s.components[e]=t,l):s.components[e]},directive(e,t){return t?(s.directives[e]=t,l):s.directives[e]},mount(o,i,u){if(!c){0;const a=sn(n,r);return a.appContext=s,i&&t?t(a,o):e(a,o,u),c=!0,l._container=o,o.__vue_app__=l,Mn(a.component)||a.component.proxy}},unmount(){c&&(e(null,l._container),delete l._container.__vue_app__)},provide(e,t){return s.provides[e]=t,l}};return l}}function It(e,t,n,i,c=!1){if((0,o.kJ)(e))return void e.forEach(((e,r)=>It(e,t&&((0,o.kJ)(t)?t[r]:t),n,i,c)));if(ve(i)&&!c)return;const l=4&i.shapeFlag?Mn(i.component)||i.component.proxy:i.el,u=c?null:l,{i:a,r:f}=e;const p=t&&t.r,d=a.refs===o.kT?a.refs={}:a.refs,h=a.setupState;if(null!=p&&p!==f&&((0,o.HD)(p)?(d[p]=null,(0,o.RI)(h,p)&&(h[p]=null)):(0,r.dq)(p)&&(p.value=null)),(0,o.mf)(f))s(f,a,12,[u,d]);else{const t=(0,o.HD)(f),s=(0,r.dq)(f);if(t||s){const r=()=>{if(e.f){const n=t?d[f]:f.value;c?(0,o.kJ)(n)&&(0,o.Od)(n,l):(0,o.kJ)(n)?n.includes(l)||n.push(l):t?(d[f]=[l],(0,o.RI)(h,f)&&(h[f]=d[f])):(f.value=[l],e.k&&(d[e.k]=f.value))}else t?(d[f]=u,(0,o.RI)(h,f)&&(h[f]=u)):s&&(f.value=u,e.k&&(d[e.k]=u))};u?(r.id=-1,Pt(r,n)):r()}else 0}}function Tt(){}const Pt=X;function Ft(e){return Mt(e)}function Mt(e,t){Tt();const n=(0,o.E9)();n.__VUE__=!0;const{insert:s,remove:i,patchProp:c,createElement:l,createText:u,createComment:a,setText:f,setElementText:p,parentNode:d,nextSibling:h,setScopeId:m=o.dG,cloneNode:g,insertStaticContent:v}=e,y=(e,t,n,r=null,o=null,s=null,i=!1,c=null,l=!!t.dynamicChildren)=>{if(e===t)return;e&&!en(e,t)&&(r=Q(e),W(e,o,s,!0),e=null),-2===t.patchFlag&&(l=!1,t.dynamicChildren=null);const{type:u,ref:a,shapeFlag:f}=t;switch(u){case Vt:_(e,t,n,r);break;case Dt:b(e,t,n,r);break;case Gt:null==e&&w(t,n,r,i);break;case Jt:M(e,t,n,r,o,s,i,c,l);break;default:1&f?S(e,t,n,r,o,s,i,c,l):6&f?L(e,t,n,r,o,s,i,c,l):(64&f||128&f)&&u.process(e,t,n,r,o,s,i,c,l,te)}null!=a&&o&&It(a,e&&e.ref,s,t||e,!t)},_=(e,t,n,r)=>{if(null==e)s(t.el=u(t.children),n,r);else{const n=t.el=e.el;t.children!==e.children&&f(n,t.children)}},b=(e,t,n,r)=>{null==e?s(t.el=a(t.children||""),n,r):t.el=e.el},w=(e,t,n,r)=>{[e.el,e.anchor]=v(e.children,t,n,r,e.el,e.anchor)},k=({el:e,anchor:t},n,r)=>{let o;while(e&&e!==t)o=h(e),s(e,n,r),e=o;s(t,n,r)},x=({el:e,anchor:t})=>{let n;while(e&&e!==t)n=h(e),i(e),e=n;i(t)},S=(e,t,n,r,o,s,i,c,l)=>{i=i||"svg"===t.type,null==e?O(t,n,r,o,s,i,c,l):T(e,t,o,s,i,c,l)},O=(e,t,n,r,i,u,a,f)=>{let d,h;const{type:m,props:v,shapeFlag:y,transition:_,patchFlag:b,dirs:w}=e;if(e.el&&void 0!==g&&-1===b)d=e.el=g(e.el);else{if(d=e.el=l(e.type,u,v&&v.is,v),8&y?p(d,e.children):16&y&&A(e.children,d,null,r,i,u&&"foreignObject"!==m,a,f),w&&Ve(e,null,r,"created"),v){for(const t in v)"value"===t||(0,o.Gg)(t)||c(d,t,null,v[t],u,e.children,r,i,Y);"value"in v&&c(d,"value",null,v.value),(h=v.onVnodeBeforeMount)&&vn(h,r,e)}R(d,e,e.scopeId,a,r)}w&&Ve(e,null,r,"beforeMount");const k=(!i||i&&!i.pendingBranch)&&_&&!_.persisted;k&&_.beforeEnter(d),s(d,t,n),((h=v&&v.onVnodeMounted)||k||w)&&Pt((()=>{h&&vn(h,r,e),k&&_.enter(d),w&&Ve(e,null,r,"mounted")}),i)},R=(e,t,n,r,o)=>{if(n&&m(e,n),r)for(let s=0;s{for(let u=l;u{const u=t.el=e.el;let{patchFlag:a,dynamicChildren:f,dirs:d}=t;a|=16&e.patchFlag;const h=e.props||o.kT,m=t.props||o.kT;let g;n&&Lt(n,!1),(g=m.onVnodeBeforeUpdate)&&vn(g,n,t,e),d&&Ve(t,e,n,"beforeUpdate"),n&&Lt(n,!0);const v=s&&"foreignObject"!==t.type;if(f?P(e.dynamicChildren,f,u,n,r,v,i):l||V(e,t,u,null,n,r,v,i,!1),a>0){if(16&a)F(u,t,h,m,n,r,s);else if(2&a&&h.class!==m.class&&c(u,"class",null,m.class,s),4&a&&c(u,"style",h.style,m.style,s),8&a){const o=t.dynamicProps;for(let t=0;t{g&&vn(g,n,t,e),d&&Ve(t,e,n,"updated")}),r)},P=(e,t,n,r,o,s,i)=>{for(let c=0;c{if(n!==r){for(const u in r){if((0,o.Gg)(u))continue;const a=r[u],f=n[u];a!==f&&"value"!==u&&c(e,u,f,a,l,t.children,s,i,Y)}if(n!==o.kT)for(const u in n)(0,o.Gg)(u)||u in r||c(e,u,n[u],null,l,t.children,s,i,Y);"value"in r&&c(e,"value",n.value,r.value)}},M=(e,t,n,r,o,i,c,l,a)=>{const f=t.el=e?e.el:u(""),p=t.anchor=e?e.anchor:u("");let{patchFlag:d,dynamicChildren:h,slotScopeIds:m}=t;m&&(l=l?l.concat(m):m),null==e?(s(f,n,r),s(p,n,r),A(t.children,n,p,o,i,c,l,a)):d>0&&64&d&&h&&e.dynamicChildren?(P(e.dynamicChildren,h,n,o,i,c,l),(null!=t.key||o&&t===o.subTree)&&$t(e,t,!0)):V(e,t,n,p,o,i,c,l,a)},L=(e,t,n,r,o,s,i,c,l)=>{t.slotScopeIds=c,null==e?512&t.shapeFlag?o.ctx.activate(t,n,r,i,l):$(t,n,r,o,s,i,l):U(e,t,l)},$=(e,t,n,r,o,s,i)=>{const c=e.component=bn(e,r,o);if(ye(e)&&(c.ctx.renderer=te),An(c),c.asyncDep){if(o&&o.registerDep(c,N),!e.el){const e=c.subTree=sn(Dt);b(null,e,t,n)}}else N(c,e,t,n,o,s,i)},U=(e,t,n)=>{const r=t.component=e.component;if(H(e,t,n)){if(r.asyncDep&&!r.asyncResolved)return void J(r,t,n);r.next=t,E(r.update),r.update()}else t.el=e.el,r.vnode=t},N=(e,t,n,s,i,c,l)=>{const u=()=>{if(e.isMounted){let t,{next:n,bu:r,u:s,parent:u,vnode:a}=e,f=n;0,Lt(e,!1),n?(n.el=a.el,J(e,n,l)):n=a,r&&(0,o.ir)(r),(t=n.props&&n.props.onVnodeBeforeUpdate)&&vn(t,u,n,a),Lt(e,!0);const p=G(e);0;const h=e.subTree;e.subTree=p,y(h,p,d(h.el),Q(h),e,i,c),n.el=p.el,null===f&&K(e,p.el),s&&Pt(s,i),(t=n.props&&n.props.onVnodeUpdated)&&Pt((()=>vn(t,u,n,a)),i)}else{let r;const{el:l,props:u}=t,{bm:a,m:f,parent:p}=e,d=ve(t);if(Lt(e,!1),a&&(0,o.ir)(a),!d&&(r=u&&u.onVnodeBeforeMount)&&vn(r,p,t),Lt(e,!0),l&&re){const n=()=>{e.subTree=G(e),re(l,e.subTree,e,i,null)};d?t.type.__asyncLoader().then((()=>!e.isUnmounted&&n())):n()}else{0;const r=e.subTree=G(e);0,y(null,r,n,s,e,i,c),t.el=r.el}if(f&&Pt(f,i),!d&&(r=u&&u.onVnodeMounted)){const e=t;Pt((()=>vn(r,p,e)),i)}(256&t.shapeFlag||p&&ve(p.vnode)&&256&p.vnode.shapeFlag)&&e.a&&Pt(e.a,i),e.isMounted=!0,t=n=s=null}},a=e.effect=new r.qq(u,(()=>C(f)),e.scope),f=e.update=()=>a.run();f.id=e.uid,Lt(e,!0),f()},J=(e,t,n)=>{t.component=e;const o=e.vnode.props;e.vnode=t,e.next=null,dt(e,t.props,o,n),Ot(e,t.children,n),(0,r.Jd)(),j(void 0,e.update),(0,r.lk)()},V=(e,t,n,r,o,s,i,c,l=!1)=>{const u=e&&e.children,a=e?e.shapeFlag:0,f=t.children,{patchFlag:d,shapeFlag:h}=t;if(d>0){if(128&d)return void B(u,f,n,r,o,s,i,c,l);if(256&d)return void D(u,f,n,r,o,s,i,c,l)}8&h?(16&a&&Y(u,o,s),f!==u&&p(n,f)):16&a?16&h?B(u,f,n,r,o,s,i,c,l):Y(u,o,s,!0):(8&a&&p(n,""),16&h&&A(f,n,r,o,s,i,c,l))},D=(e,t,n,r,s,i,c,l,u)=>{e=e||o.Z6,t=t||o.Z6;const a=e.length,f=t.length,p=Math.min(a,f);let d;for(d=0;df?Y(e,s,i,!0,!1,p):A(t,n,r,s,i,c,l,u,p)},B=(e,t,n,r,s,i,c,l,u)=>{let a=0;const f=t.length;let p=e.length-1,d=f-1;while(a<=p&&a<=d){const r=e[a],o=t[a]=u?hn(t[a]):dn(t[a]);if(!en(r,o))break;y(r,o,n,null,s,i,c,l,u),a++}while(a<=p&&a<=d){const r=e[p],o=t[d]=u?hn(t[d]):dn(t[d]);if(!en(r,o))break;y(r,o,n,null,s,i,c,l,u),p--,d--}if(a>p){if(a<=d){const e=d+1,o=ed)while(a<=p)W(e[a],s,i,!0),a++;else{const h=a,m=a,g=new Map;for(a=m;a<=d;a++){const e=t[a]=u?hn(t[a]):dn(t[a]);null!=e.key&&g.set(e.key,a)}let v,_=0;const b=d-m+1;let w=!1,k=0;const x=new Array(b);for(a=0;a=b){W(r,s,i,!0);continue}let o;if(null!=r.key)o=g.get(r.key);else for(v=m;v<=d;v++)if(0===x[v-m]&&en(r,t[v])){o=v;break}void 0===o?W(r,s,i,!0):(x[o-m]=a+1,o>=k?k=o:w=!0,y(r,t[o],n,null,s,i,c,l,u),_++)}const C=w?Ut(x):o.Z6;for(v=C.length-1,a=b-1;a>=0;a--){const e=m+a,o=t[e],p=e+1{const{el:i,type:c,transition:l,children:u,shapeFlag:a}=e;if(6&a)return void q(e.component.subTree,t,n,r);if(128&a)return void e.suspense.move(t,n,r);if(64&a)return void c.move(e,t,n,te);if(c===Jt){s(i,t,n);for(let e=0;el.enter(i)),o);else{const{leave:e,delayLeave:r,afterLeave:o}=l,c=()=>s(i,t,n),u=()=>{e(i,(()=>{c(),o&&o()}))};r?r(i,c,u):u()}else s(i,t,n)},W=(e,t,n,r=!1,o=!1)=>{const{type:s,props:i,ref:c,children:l,dynamicChildren:u,shapeFlag:a,patchFlag:f,dirs:p}=e;if(null!=c&&It(c,null,n,e,!0),256&a)return void t.ctx.deactivate(e);const d=1&a&&p,h=!ve(e);let m;if(h&&(m=i&&i.onVnodeBeforeUnmount)&&vn(m,t,e),6&a)Z(e.component,n,r);else{if(128&a)return void e.suspense.unmount(n,r);d&&Ve(e,null,t,"beforeUnmount"),64&a?e.type.remove(e,t,n,o,te,r):u&&(s!==Jt||f>0&&64&f)?Y(u,t,n,!1,!0):(s===Jt&&384&f||!o&&16&a)&&Y(l,t,n),r&&z(e)}(h&&(m=i&&i.onVnodeUnmounted)||d)&&Pt((()=>{m&&vn(m,t,e),d&&Ve(e,null,t,"unmounted")}),n)},z=e=>{const{type:t,el:n,anchor:r,transition:o}=e;if(t===Jt)return void X(n,r);if(t===Gt)return void x(e);const s=()=>{i(n),o&&!o.persisted&&o.afterLeave&&o.afterLeave()};if(1&e.shapeFlag&&o&&!o.persisted){const{leave:t,delayLeave:r}=o,i=()=>t(n,s);r?r(e.el,s,i):i()}else s()},X=(e,t)=>{let n;while(e!==t)n=h(e),i(e),e=n;i(t)},Z=(e,t,n)=>{const{bum:r,scope:s,update:i,subTree:c,um:l}=e;r&&(0,o.ir)(r),s.stop(),i&&(i.active=!1,W(c,e,t,n)),l&&Pt(l,t),Pt((()=>{e.isUnmounted=!0}),t),t&&t.pendingBranch&&!t.isUnmounted&&e.asyncDep&&!e.asyncResolved&&e.suspenseId===t.pendingId&&(t.deps--,0===t.deps&&t.resolve())},Y=(e,t,n,r=!1,o=!1,s=0)=>{for(let i=s;i6&e.shapeFlag?Q(e.component.subTree):128&e.shapeFlag?e.suspense.next():h(e.anchor||e.el),ee=(e,t,n)=>{null==e?t._vnode&&W(t._vnode,null,null,!0):y(t._vnode||null,e,t,null,null,null,n),I(),t._vnode=e},te={p:y,um:W,m:q,r:z,mt:$,mc:A,pc:V,pbc:P,n:Q,o:e};let ne,re;return t&&([ne,re]=t(te)),{render:ee,hydrate:ne,createApp:jt(ee,ne)}}function Lt({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function $t(e,t,n=!1){const r=e.children,s=t.children;if((0,o.kJ)(r)&&(0,o.kJ)(s))for(let o=0;o>1,e[n[c]]0&&(t[r]=n[s-1]),n[s]=r)}}s=n.length,i=n[s-1];while(s-- >0)n[s]=i,i=t[i];return n}const Nt=e=>e.__isTeleport;const Jt=Symbol(void 0),Vt=Symbol(void 0),Dt=Symbol(void 0),Gt=Symbol(void 0),Bt=[];let qt=null;function Ht(e=!1){Bt.push(qt=e?null:[])}function Wt(){Bt.pop(),qt=Bt[Bt.length-1]||null}let Kt=1;function zt(e){Kt+=e}function Xt(e){return e.dynamicChildren=Kt>0?qt||o.Z6:null,Wt(),Kt>0&&qt&&qt.push(e),e}function Zt(e,t,n,r,o,s){return Xt(on(e,t,n,r,o,s,!0))}function Yt(e,t,n,r,o){return Xt(sn(e,t,n,r,o,!0))}function Qt(e){return!!e&&!0===e.__v_isVNode}function en(e,t){return e.type===t.type&&e.key===t.key}const tn="__vInternal",nn=({key:e})=>null!=e?e:null,rn=({ref:e,ref_key:t,ref_for:n})=>null!=e?(0,o.HD)(e)||(0,r.dq)(e)||(0,o.mf)(e)?{i:$,r:e,k:t,f:!!n}:e:null;function on(e,t=null,n=null,r=0,s=null,i=(e===Jt?0:1),c=!1,l=!1){const u={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&nn(t),ref:t&&rn(t),scopeId:U,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:r,dynamicProps:s,dynamicChildren:null,appContext:null};return l?(mn(u,n),128&i&&e.normalize(u)):n&&(u.shapeFlag|=(0,o.HD)(n)?8:16),Kt>0&&!c&&qt&&(u.patchFlag>0||6&i)&&32!==u.patchFlag&&qt.push(u),u}const sn=cn;function cn(e,t=null,n=null,s=0,i=null,c=!1){if(e&&e!==Be||(e=Dt),Qt(e)){const r=un(e,t,!0);return n&&mn(r,n),Kt>0&&!c&&qt&&(6&r.shapeFlag?qt[qt.indexOf(e)]=r:qt.push(r)),r.patchFlag|=-2,r}if($n(e)&&(e=e.__vccOpts),t){t=ln(t);let{class:e,style:n}=t;e&&!(0,o.HD)(e)&&(t.class=(0,o.C_)(e)),(0,o.Kn)(n)&&((0,r.X3)(n)&&!(0,o.kJ)(n)&&(n=(0,o.l7)({},n)),t.style=(0,o.j5)(n))}const l=(0,o.HD)(e)?1:z(e)?128:Nt(e)?64:(0,o.Kn)(e)?4:(0,o.mf)(e)?2:0;return on(e,t,n,s,i,l,c,!0)}function ln(e){return e?(0,r.X3)(e)||tn in e?(0,o.l7)({},e):e:null}function un(e,t,n=!1){const{props:r,ref:s,patchFlag:i,children:c}=e,l=t?gn(r||{},t):r,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&nn(l),ref:t&&t.ref?n&&s?(0,o.kJ)(s)?s.concat(rn(t)):[s,rn(t)]:rn(t):s,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:c,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Jt?-1===i?16:16|i:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&un(e.ssContent),ssFallback:e.ssFallback&&un(e.ssFallback),el:e.el,anchor:e.anchor};return u}function an(e=" ",t=0){return sn(Vt,null,e,t)}function fn(e,t){const n=sn(Gt,null,e);return n.staticCount=t,n}function pn(e="",t=!1){return t?(Ht(),Yt(Dt,null,e)):sn(Dt,null,e)}function dn(e){return null==e||"boolean"===typeof e?sn(Dt):(0,o.kJ)(e)?sn(Jt,null,e.slice()):"object"===typeof e?hn(e):sn(Vt,null,String(e))}function hn(e){return null===e.el||e.memo?e:un(e)}function mn(e,t){let n=0;const{shapeFlag:r}=e;if(null==t)t=null;else if((0,o.kJ)(t))n=16;else if("object"===typeof t){if(65&r){const n=t.default;return void(n&&(n._c&&(n._d=!1),mn(e,n()),n._c&&(n._d=!0)))}{n=32;const r=t._;r||tn in t?3===r&&$&&(1===$.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=$}}else(0,o.mf)(t)?(t={default:t,_ctx:$},n=32):(t=String(t),64&r?(n=16,t=[an(t)]):n=8);e.children=t,e.shapeFlag|=n}function gn(...e){const t={};for(let n=0;nwn||$,xn=e=>{wn=e,e.scope.on()},Cn=()=>{wn&&wn.scope.off(),wn=null};function Sn(e){return 4&e.vnode.shapeFlag}let En,On,Rn=!1;function An(e,t=!1){Rn=t;const{props:n,children:r}=e.vnode,o=Sn(e);pt(e,n,o,t),Et(e,r);const s=o?jn(e,t):void 0;return Rn=!1,s}function jn(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=(0,r.Xl)(new Proxy(e.ctx,Ze));const{setup:i}=n;if(i){const n=e.setupContext=i.length>1?Fn(e):null;xn(e),(0,r.Jd)();const l=s(i,e,0,[e.props,n]);if((0,r.lk)(),Cn(),(0,o.tI)(l)){if(l.then(Cn,Cn),t)return l.then((n=>{In(e,n,t)})).catch((t=>{c(t,e,0)}));e.asyncDep=l}else In(e,l,t)}else Tn(e,t)}function In(e,t,n){(0,o.mf)(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:(0,o.Kn)(t)&&(e.setupState=(0,r.WL)(t)),Tn(e,n)}function Tn(e,t,n){const s=e.type;if(!e.render){if(!t&&En&&!s.render){const t=s.template;if(t){0;const{isCustomElement:n,compilerOptions:r}=e.appContext.config,{delimiters:i,compilerOptions:c}=s,l=(0,o.l7)((0,o.l7)({isCustomElement:n,delimiters:i},r),c);s.render=En(t,l)}}e.render=s.render||o.dG,On&&On(e)}xn(e),(0,r.Jd)(),Qe(e),(0,r.lk)(),Cn()}function Pn(e){return new Proxy(e.attrs,{get(t,n){return(0,r.j)(e,"get","$attrs"),t[n]}})}function Fn(e){const t=t=>{e.exposed=t||{}};let n;return{get attrs(){return n||(n=Pn(e))},slots:e.slots,emit:e.emit,expose:t}}function Mn(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy((0,r.WL)((0,r.Xl)(e.exposed)),{get(t,n){return n in t?t[n]:n in Xe?Xe[n](e):void 0}}))}function Ln(e,t=!0){return(0,o.mf)(e)?e.displayName||e.name:e.name||t&&e.__name}function $n(e){return(0,o.mf)(e)&&"__vccOpts"in e}const Un=(e,t)=>(0,r.Fl)(e,t,Rn);function Nn(e,t,n){const r=arguments.length;return 2===r?(0,o.Kn)(t)&&!(0,o.kJ)(t)?Qt(t)?sn(e,null,[t]):sn(e,t):sn(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):3===r&&Qt(n)&&(n=[n]),sn(e,t,n))}Symbol("");const Jn="3.2.37"},963:function(e,t,n){n.d(t,{D2:function(){return le},e8:function(){return re},nr:function(){return ne},ri:function(){return pe}});var r=n(577),o=n(252);n(262);const s="http://www.w3.org/2000/svg",i="undefined"!==typeof document?document:null,c=i&&i.createElement("template"),l={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?i.createElementNS(s,e):i.createElement(e,n?{is:n}:void 0);return"select"===e&&r&&null!=r.multiple&&o.setAttribute("multiple",r.multiple),o},createText:e=>i.createTextNode(e),createComment:e=>i.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>i.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},cloneNode(e){const t=e.cloneNode(!0);return"_value"in e&&(t._value=e._value),t},insertStaticContent(e,t,n,r,o,s){const i=n?n.previousSibling:t.lastChild;if(o&&(o===s||o.nextSibling)){while(1)if(t.insertBefore(o.cloneNode(!0),n),o===s||!(o=o.nextSibling))break}else{c.innerHTML=r?`${e}`:e;const o=c.content;if(r){const e=o.firstChild;while(e.firstChild)o.appendChild(e.firstChild);o.removeChild(e)}t.insertBefore(o,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function u(e,t,n){const r=e._vtc;r&&(t=(t?[t,...r]:[...r]).join(" ")),null==t?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}function a(e,t,n){const o=e.style,s=(0,r.HD)(n);if(n&&!s){for(const e in n)p(o,e,n[e]);if(t&&!(0,r.HD)(t))for(const e in t)null==n[e]&&p(o,e,"")}else{const r=o.display;s?t!==n&&(o.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(o.display=r)}}const f=/\s*!important$/;function p(e,t,n){if((0,r.kJ)(n))n.forEach((n=>p(e,t,n)));else if(null==n&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const o=m(e,t);f.test(n)?e.setProperty((0,r.rs)(o),n.replace(f,""),"important"):e[o]=n}}const d=["Webkit","Moz","ms"],h={};function m(e,t){const n=h[t];if(n)return n;let o=(0,r._A)(t);if("filter"!==o&&o in e)return h[t]=o;o=(0,r.kC)(o);for(let r=0;r{let e=Date.now,t=!1;if("undefined"!==typeof window){Date.now()>document.createEvent("Event").timeStamp&&(e=performance.now.bind(performance));const n=navigator.userAgent.match(/firefox\/(\d+)/i);t=!!(n&&Number(n[1])<=53)}return[e,t]})();let w=0;const k=Promise.resolve(),x=()=>{w=0},C=()=>w||(k.then(x),w=_());function S(e,t,n,r){e.addEventListener(t,n,r)}function E(e,t,n,r){e.removeEventListener(t,n,r)}function O(e,t,n,r,o=null){const s=e._vei||(e._vei={}),i=s[t];if(r&&i)i.value=r;else{const[n,c]=A(t);if(r){const i=s[t]=j(r,o);S(e,n,i,c)}else i&&(E(e,n,i,c),s[t]=void 0)}}const R=/(?:Once|Passive|Capture)$/;function A(e){let t;if(R.test(e)){let n;t={};while(n=e.match(R))e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[(0,r.rs)(e.slice(2)),t]}function j(e,t){const n=e=>{const r=e.timeStamp||_();(b||r>=n.attached-1)&&(0,o.$d)(I(e,n.value),t,5,[e])};return n.value=e,n.attached=C(),n}function I(e,t){if((0,r.kJ)(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map((e=>t=>!t._stopped&&e&&e(t)))}return t}const T=/^on[a-z]/,P=(e,t,n,o,s=!1,i,c,l,f)=>{"class"===t?u(e,o,s):"style"===t?a(e,n,o):(0,r.F7)(t)?(0,r.tR)(t)||O(e,t,n,o,c):("."===t[0]?(t=t.slice(1),1):"^"===t[0]?(t=t.slice(1),0):F(e,t,o,s))?y(e,t,o,i,c,l,f):("true-value"===t?e._trueValue=o:"false-value"===t&&(e._falseValue=o),v(e,t,o,s))};function F(e,t,n,o){return o?"innerHTML"===t||"textContent"===t||!!(t in e&&T.test(t)&&(0,r.mf)(n)):"spellcheck"!==t&&"draggable"!==t&&"translate"!==t&&("form"!==t&&(("list"!==t||"INPUT"!==e.tagName)&&(("type"!==t||"TEXTAREA"!==e.tagName)&&((!T.test(t)||!(0,r.HD)(n))&&t in e))))}"undefined"!==typeof HTMLElement&&HTMLElement;const M="transition",L="animation",$=(e,{slots:t})=>(0,o.h)(o.P$,V(e),t);$.displayName="Transition";const U={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},N=($.props=(0,r.l7)({},o.P$.props,U),(e,t=[])=>{(0,r.kJ)(e)?e.forEach((e=>e(...t))):e&&e(...t)}),J=e=>!!e&&((0,r.kJ)(e)?e.some((e=>e.length>1)):e.length>1);function V(e){const t={};for(const r in e)r in U||(t[r]=e[r]);if(!1===e.css)return t;const{name:n="v",type:o,duration:s,enterFromClass:i=`${n}-enter-from`,enterActiveClass:c=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:u=i,appearActiveClass:a=c,appearToClass:f=l,leaveFromClass:p=`${n}-leave-from`,leaveActiveClass:d=`${n}-leave-active`,leaveToClass:h=`${n}-leave-to`}=e,m=D(s),g=m&&m[0],v=m&&m[1],{onBeforeEnter:y,onEnter:_,onEnterCancelled:b,onLeave:w,onLeaveCancelled:k,onBeforeAppear:x=y,onAppear:C=_,onAppearCancelled:S=b}=t,E=(e,t,n)=>{q(e,t?f:l),q(e,t?a:c),n&&n()},O=(e,t)=>{e._isLeaving=!1,q(e,p),q(e,h),q(e,d),t&&t()},R=e=>(t,n)=>{const r=e?C:_,s=()=>E(t,e,n);N(r,[t,s]),H((()=>{q(t,e?u:i),B(t,e?f:l),J(r)||K(t,o,g,s)}))};return(0,r.l7)(t,{onBeforeEnter(e){N(y,[e]),B(e,i),B(e,c)},onBeforeAppear(e){N(x,[e]),B(e,u),B(e,a)},onEnter:R(!1),onAppear:R(!0),onLeave(e,t){e._isLeaving=!0;const n=()=>O(e,t);B(e,p),Y(),B(e,d),H((()=>{e._isLeaving&&(q(e,p),B(e,h),J(w)||K(e,o,v,n))})),N(w,[e,n])},onEnterCancelled(e){E(e,!1),N(b,[e])},onAppearCancelled(e){E(e,!0),N(S,[e])},onLeaveCancelled(e){O(e),N(k,[e])}})}function D(e){if(null==e)return null;if((0,r.Kn)(e))return[G(e.enter),G(e.leave)];{const t=G(e);return[t,t]}}function G(e){const t=(0,r.He)(e);return t}function B(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.add(t))),(e._vtc||(e._vtc=new Set)).add(t)}function q(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.remove(t)));const{_vtc:n}=e;n&&(n.delete(t),n.size||(e._vtc=void 0))}function H(e){requestAnimationFrame((()=>{requestAnimationFrame(e)}))}let W=0;function K(e,t,n,r){const o=e._endId=++W,s=()=>{o===e._endId&&r()};if(n)return setTimeout(s,n);const{type:i,timeout:c,propCount:l}=z(e,t);if(!i)return r();const u=i+"end";let a=0;const f=()=>{e.removeEventListener(u,p),s()},p=t=>{t.target===e&&++a>=l&&f()};setTimeout((()=>{a(n[e]||"").split(", "),o=r(M+"Delay"),s=r(M+"Duration"),i=X(o,s),c=r(L+"Delay"),l=r(L+"Duration"),u=X(c,l);let a=null,f=0,p=0;t===M?i>0&&(a=M,f=i,p=s.length):t===L?u>0&&(a=L,f=u,p=l.length):(f=Math.max(i,u),a=f>0?i>u?M:L:null,p=a?a===M?s.length:l.length:0);const d=a===M&&/\b(transform|all)(,|$)/.test(n[M+"Property"]);return{type:a,timeout:f,propCount:p,hasTransform:d}}function X(e,t){while(e.lengthZ(t)+Z(e[n]))))}function Z(e){return 1e3*Number(e.slice(0,-1).replace(",","."))}function Y(){return document.body.offsetHeight}new WeakMap,new WeakMap;const Q=e=>{const t=e.props["onUpdate:modelValue"]||!1;return(0,r.kJ)(t)?e=>(0,r.ir)(t,e):t};function ee(e){e.target.composing=!0}function te(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const ne={created(e,{modifiers:{lazy:t,trim:n,number:o}},s){e._assign=Q(s);const i=o||s.props&&"number"===s.props.type;S(e,t?"change":"input",(t=>{if(t.target.composing)return;let o=e.value;n&&(o=o.trim()),i&&(o=(0,r.He)(o)),e._assign(o)})),n&&S(e,"change",(()=>{e.value=e.value.trim()})),t||(S(e,"compositionstart",ee),S(e,"compositionend",te),S(e,"change",te))},mounted(e,{value:t}){e.value=null==t?"":t},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:o,number:s}},i){if(e._assign=Q(i),e.composing)return;if(document.activeElement===e&&"range"!==e.type){if(n)return;if(o&&e.value.trim()===t)return;if((s||"number"===e.type)&&(0,r.He)(e.value)===t)return}const c=null==t?"":t;e.value!==c&&(e.value=c)}},re={deep:!0,created(e,t,n){e._assign=Q(n),S(e,"change",(()=>{const t=e._modelValue,n=se(e),o=e.checked,s=e._assign;if((0,r.kJ)(t)){const e=(0,r.hq)(t,n),i=-1!==e;if(o&&!i)s(t.concat(n));else if(!o&&i){const n=[...t];n.splice(e,1),s(n)}}else if((0,r.DM)(t)){const e=new Set(t);o?e.add(n):e.delete(n),s(e)}else s(ie(e,o))}))},mounted:oe,beforeUpdate(e,t,n){e._assign=Q(n),oe(e,t,n)}};function oe(e,{value:t,oldValue:n},o){e._modelValue=t,(0,r.kJ)(t)?e.checked=(0,r.hq)(t,o.props.value)>-1:(0,r.DM)(t)?e.checked=t.has(o.props.value):t!==n&&(e.checked=(0,r.WV)(t,ie(e,!0)))}function se(e){return"_value"in e?e._value:e.value}function ie(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const ce={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},le=(e,t)=>n=>{if(!("key"in n))return;const o=(0,r.rs)(n.key);return t.some((e=>e===o||ce[e]===o))?e(n):void 0};const ue=(0,r.l7)({patchProp:P},l);let ae;function fe(){return ae||(ae=(0,o.Us)(ue))}const pe=(...e)=>{const t=fe().createApp(...e);const{mount:n}=t;return t.mount=e=>{const o=de(e);if(!o)return;const s=t._component;(0,r.mf)(s)||s.render||s.template||(s.template=o.innerHTML),o.innerHTML="";const i=n(o,!1,o instanceof SVGElement);return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),i},t};function de(e){if((0,r.HD)(e)){const t=document.querySelector(e);return t}return e}},577:function(e,t,n){function r(e,t){const n=Object.create(null),r=e.split(",");for(let o=0;o!!n[e.toLowerCase()]:e=>!!n[e]}n.d(t,{C_:function(){return d},DM:function(){return T},E9:function(){return re},F7:function(){return C},Gg:function(){return B},HD:function(){return M},He:function(){return te},Kn:function(){return $},NO:function(){return k},Nj:function(){return ee},Od:function(){return O},PO:function(){return D},Pq:function(){return c},RI:function(){return A},S0:function(){return G},W7:function(){return V},WV:function(){return m},Z6:function(){return b},_A:function(){return W},_N:function(){return I},aU:function(){return Y},dG:function(){return w},e1:function(){return s},fY:function(){return r},hR:function(){return Z},hq:function(){return g},ir:function(){return Q},j5:function(){return u},kC:function(){return X},kJ:function(){return j},kT:function(){return _},l7:function(){return E},mf:function(){return F},rs:function(){return z},tI:function(){return U},tR:function(){return S},yA:function(){return l},yk:function(){return L},zw:function(){return v}});const o="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt",s=r(o);const i="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",c=r(i);function l(e){return!!e||""===e}function u(e){if(j(e)){const t={};for(let n=0;n{if(e){const n=e.split(f);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}function d(e){let t="";if(M(e))t=e;else if(j(e))for(let n=0;nm(e,t)))}const v=e=>M(e)?e:null==e?"":j(e)||$(e)&&(e.toString===N||!F(e.toString))?JSON.stringify(e,y,2):String(e),y=(e,t)=>t&&t.__v_isRef?y(e,t.value):I(t)?{[`Map(${t.size})`]:[...t.entries()].reduce(((e,[t,n])=>(e[`${t} =>`]=n,e)),{})}:T(t)?{[`Set(${t.size})`]:[...t.values()]}:!$(t)||j(t)||D(t)?t:String(t),_={},b=[],w=()=>{},k=()=>!1,x=/^on[^a-z]/,C=e=>x.test(e),S=e=>e.startsWith("onUpdate:"),E=Object.assign,O=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},R=Object.prototype.hasOwnProperty,A=(e,t)=>R.call(e,t),j=Array.isArray,I=e=>"[object Map]"===J(e),T=e=>"[object Set]"===J(e),P=e=>"[object Date]"===J(e),F=e=>"function"===typeof e,M=e=>"string"===typeof e,L=e=>"symbol"===typeof e,$=e=>null!==e&&"object"===typeof e,U=e=>$(e)&&F(e.then)&&F(e.catch),N=Object.prototype.toString,J=e=>N.call(e),V=e=>J(e).slice(8,-1),D=e=>"[object Object]"===J(e),G=e=>M(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,B=r(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),q=e=>{const t=Object.create(null);return n=>{const r=t[n];return r||(t[n]=e(n))}},H=/-(\w)/g,W=q((e=>e.replace(H,((e,t)=>t?t.toUpperCase():"")))),K=/\B([A-Z])/g,z=q((e=>e.replace(K,"-$1").toLowerCase())),X=q((e=>e.charAt(0).toUpperCase()+e.slice(1))),Z=q((e=>e?`on${X(e)}`:"")),Y=(e,t)=>!Object.is(e,t),Q=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},te=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let ne;const re=()=>ne||(ne="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:{})},744:function(e,t){t.Z=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n}},907:function(e,t,n){n.d(t,{MT:function(){return ee}});var r=n(252),o=n(262);function s(){return i().__VUE_DEVTOOLS_GLOBAL_HOOK__}function i(){return"undefined"!==typeof navigator&&"undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:{}}const c="function"===typeof Proxy,l="devtools-plugin:setup",u="plugin:settings:set";let a,f;function p(){var e;return void 0!==a||("undefined"!==typeof window&&window.performance?(a=!0,f=window.performance):"undefined"!==typeof n.g&&(null===(e=n.g.perf_hooks)||void 0===e?void 0:e.performance)?(a=!0,f=n.g.perf_hooks.performance):a=!1),a}function d(){return p()?f.now():Date.now()}class h{constructor(e,t){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=e,this.hook=t;const n={};if(e.settings)for(const i in e.settings){const t=e.settings[i];n[i]=t.defaultValue}const r=`__vue-devtools-plugin-settings__${e.id}`;let o=Object.assign({},n);try{const e=localStorage.getItem(r),t=JSON.parse(e);Object.assign(o,t)}catch(s){}this.fallbacks={getSettings(){return o},setSettings(e){try{localStorage.setItem(r,JSON.stringify(e))}catch(s){}o=e},now(){return d()}},t&&t.on(u,((e,t)=>{e===this.plugin.id&&this.fallbacks.setSettings(t)})),this.proxiedOn=new Proxy({},{get:(e,t)=>this.target?this.target.on[t]:(...e)=>{this.onQueue.push({method:t,args:e})}}),this.proxiedTarget=new Proxy({},{get:(e,t)=>this.target?this.target[t]:"on"===t?this.proxiedOn:Object.keys(this.fallbacks).includes(t)?(...e)=>(this.targetQueue.push({method:t,args:e,resolve:()=>{}}),this.fallbacks[t](...e)):(...e)=>new Promise((n=>{this.targetQueue.push({method:t,args:e,resolve:n})}))})}async setRealTarget(e){this.target=e;for(const t of this.onQueue)this.target.on[t.method](...t.args);for(const t of this.targetQueue)t.resolve(await this.target[t.method](...t.args))}}function m(e,t){const n=e,r=i(),o=s(),u=c&&n.enableEarlyProxy;if(!o||!r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__&&u){const e=u?new h(n,o):null,s=r.__VUE_DEVTOOLS_PLUGINS__=r.__VUE_DEVTOOLS_PLUGINS__||[];s.push({pluginDescriptor:n,setupFn:t,proxy:e}),e&&t(e.proxiedTarget)}else o.emit(l,e,t)} +/*! + * vuex v4.0.2 + * (c) 2021 Evan You + * @license MIT + */ +var g="store";function v(e,t){Object.keys(e).forEach((function(n){return t(e[n],n)}))}function y(e){return null!==e&&"object"===typeof e}function _(e){return e&&"function"===typeof e.then}function b(e,t){return function(){return e(t)}}function w(e,t,n){return t.indexOf(e)<0&&(n&&n.prepend?t.unshift(e):t.push(e)),function(){var n=t.indexOf(e);n>-1&&t.splice(n,1)}}function k(e,t){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var n=e.state;C(e,n,[],e._modules.root,!0),x(e,n,t)}function x(e,t,n){var r=e._state;e.getters={},e._makeLocalGettersCache=Object.create(null);var s=e._wrappedGetters,i={};v(s,(function(t,n){i[n]=b(t,e),Object.defineProperty(e.getters,n,{get:function(){return i[n]()},enumerable:!0})})),e._state=(0,o.qj)({data:t}),e.strict&&j(e),r&&n&&e._withCommit((function(){r.data=null}))}function C(e,t,n,r,o){var s=!n.length,i=e._modules.getNamespace(n);if(r.namespaced&&(e._modulesNamespaceMap[i],e._modulesNamespaceMap[i]=r),!s&&!o){var c=I(t,n.slice(0,-1)),l=n[n.length-1];e._withCommit((function(){c[l]=r.state}))}var u=r.context=S(e,i,n);r.forEachMutation((function(t,n){var r=i+n;O(e,r,t,u)})),r.forEachAction((function(t,n){var r=t.root?n:i+n,o=t.handler||t;R(e,r,o,u)})),r.forEachGetter((function(t,n){var r=i+n;A(e,r,t,u)})),r.forEachChild((function(r,s){C(e,t,n.concat(s),r,o)}))}function S(e,t,n){var r=""===t,o={dispatch:r?e.dispatch:function(n,r,o){var s=T(n,r,o),i=s.payload,c=s.options,l=s.type;return c&&c.root||(l=t+l),e.dispatch(l,i)},commit:r?e.commit:function(n,r,o){var s=T(n,r,o),i=s.payload,c=s.options,l=s.type;c&&c.root||(l=t+l),e.commit(l,i,c)}};return Object.defineProperties(o,{getters:{get:r?function(){return e.getters}:function(){return E(e,t)}},state:{get:function(){return I(e.state,n)}}}),o}function E(e,t){if(!e._makeLocalGettersCache[t]){var n={},r=t.length;Object.keys(e.getters).forEach((function(o){if(o.slice(0,r)===t){var s=o.slice(r);Object.defineProperty(n,s,{get:function(){return e.getters[o]},enumerable:!0})}})),e._makeLocalGettersCache[t]=n}return e._makeLocalGettersCache[t]}function O(e,t,n,r){var o=e._mutations[t]||(e._mutations[t]=[]);o.push((function(t){n.call(e,r.state,t)}))}function R(e,t,n,r){var o=e._actions[t]||(e._actions[t]=[]);o.push((function(t){var o=n.call(e,{dispatch:r.dispatch,commit:r.commit,getters:r.getters,state:r.state,rootGetters:e.getters,rootState:e.state},t);return _(o)||(o=Promise.resolve(o)),e._devtoolHook?o.catch((function(t){throw e._devtoolHook.emit("vuex:error",t),t})):o}))}function A(e,t,n,r){e._wrappedGetters[t]||(e._wrappedGetters[t]=function(e){return n(r.state,r.getters,e.state,e.getters)})}function j(e){(0,r.YP)((function(){return e._state.data}),(function(){0}),{deep:!0,flush:"sync"})}function I(e,t){return t.reduce((function(e,t){return e[t]}),e)}function T(e,t,n){return y(e)&&e.type&&(n=t,t=e,e=e.type),{type:e,payload:t,options:n}}var P="vuex bindings",F="vuex:mutations",M="vuex:actions",L="vuex",$=0;function U(e,t){m({id:"org.vuejs.vuex",app:e,label:"Vuex",homepage:"https://next.vuex.vuejs.org/",logo:"https://vuejs.org/images/icons/favicon-96x96.png",packageName:"vuex",componentStateTypes:[P]},(function(n){n.addTimelineLayer({id:F,label:"Vuex Mutations",color:N}),n.addTimelineLayer({id:M,label:"Vuex Actions",color:N}),n.addInspector({id:L,label:"Vuex",icon:"storage",treeFilterPlaceholder:"Filter stores..."}),n.on.getInspectorTree((function(n){if(n.app===e&&n.inspectorId===L)if(n.filter){var r=[];q(r,t._modules.root,n.filter,""),n.rootNodes=r}else n.rootNodes=[B(t._modules.root,"")]})),n.on.getInspectorState((function(n){if(n.app===e&&n.inspectorId===L){var r=n.nodeId;E(t,r),n.state=H(K(t._modules,r),"root"===r?t.getters:t._makeLocalGettersCache,r)}})),n.on.editInspectorState((function(n){if(n.app===e&&n.inspectorId===L){var r=n.nodeId,o=n.path;"root"!==r&&(o=r.split("/").filter(Boolean).concat(o)),t._withCommit((function(){n.set(t._state.data,o,n.state.value)}))}})),t.subscribe((function(e,t){var r={};e.payload&&(r.payload=e.payload),r.state=t,n.notifyComponentUpdate(),n.sendInspectorTree(L),n.sendInspectorState(L),n.addTimelineEvent({layerId:F,event:{time:Date.now(),title:e.type,data:r}})})),t.subscribeAction({before:function(e,t){var r={};e.payload&&(r.payload=e.payload),e._id=$++,e._time=Date.now(),r.state=t,n.addTimelineEvent({layerId:M,event:{time:e._time,title:e.type,groupId:e._id,subtitle:"start",data:r}})},after:function(e,t){var r={},o=Date.now()-e._time;r.duration={_custom:{type:"duration",display:o+"ms",tooltip:"Action duration",value:o}},e.payload&&(r.payload=e.payload),r.state=t,n.addTimelineEvent({layerId:M,event:{time:Date.now(),title:e.type,groupId:e._id,subtitle:"end",data:r}})}})}))}var N=8702998,J=6710886,V=16777215,D={label:"namespaced",textColor:V,backgroundColor:J};function G(e){return e&&"root"!==e?e.split("/").slice(-2,-1)[0]:"Root"}function B(e,t){return{id:t||"root",label:G(t),tags:e.namespaced?[D]:[],children:Object.keys(e._children).map((function(n){return B(e._children[n],t+n+"/")}))}}function q(e,t,n,r){r.includes(n)&&e.push({id:r||"root",label:r.endsWith("/")?r.slice(0,r.length-1):r||"Root",tags:t.namespaced?[D]:[]}),Object.keys(t._children).forEach((function(o){q(e,t._children[o],n,r+o+"/")}))}function H(e,t,n){t="root"===n?t:t[n];var r=Object.keys(t),o={state:Object.keys(e.state).map((function(t){return{key:t,editable:!0,value:e.state[t]}}))};if(r.length){var s=W(t);o.getters=Object.keys(s).map((function(e){return{key:e.endsWith("/")?G(e):e,editable:!1,value:z((function(){return s[e]}))}}))}return o}function W(e){var t={};return Object.keys(e).forEach((function(n){var r=n.split("/");if(r.length>1){var o=t,s=r.pop();r.forEach((function(e){o[e]||(o[e]={_custom:{value:{},display:e,tooltip:"Module",abstract:!0}}),o=o[e]._custom.value})),o[s]=z((function(){return e[n]}))}else t[n]=z((function(){return e[n]}))})),t}function K(e,t){var n=t.split("/").filter((function(e){return e}));return n.reduce((function(e,r,o){var s=e[r];if(!s)throw new Error('Missing module "'+r+'" for path "'+t+'".');return o===n.length-1?s:s._children}),"root"===t?e:e.root._children)}function z(e){try{return e()}catch(t){return t}}var X=function(e,t){this.runtime=t,this._children=Object.create(null),this._rawModule=e;var n=e.state;this.state=("function"===typeof n?n():n)||{}},Z={namespaced:{configurable:!0}};Z.namespaced.get=function(){return!!this._rawModule.namespaced},X.prototype.addChild=function(e,t){this._children[e]=t},X.prototype.removeChild=function(e){delete this._children[e]},X.prototype.getChild=function(e){return this._children[e]},X.prototype.hasChild=function(e){return e in this._children},X.prototype.update=function(e){this._rawModule.namespaced=e.namespaced,e.actions&&(this._rawModule.actions=e.actions),e.mutations&&(this._rawModule.mutations=e.mutations),e.getters&&(this._rawModule.getters=e.getters)},X.prototype.forEachChild=function(e){v(this._children,e)},X.prototype.forEachGetter=function(e){this._rawModule.getters&&v(this._rawModule.getters,e)},X.prototype.forEachAction=function(e){this._rawModule.actions&&v(this._rawModule.actions,e)},X.prototype.forEachMutation=function(e){this._rawModule.mutations&&v(this._rawModule.mutations,e)},Object.defineProperties(X.prototype,Z);var Y=function(e){this.register([],e,!1)};function Q(e,t,n){if(t.update(n),n.modules)for(var r in n.modules){if(!t.getChild(r))return void 0;Q(e.concat(r),t.getChild(r),n.modules[r])}}Y.prototype.get=function(e){return e.reduce((function(e,t){return e.getChild(t)}),this.root)},Y.prototype.getNamespace=function(e){var t=this.root;return e.reduce((function(e,n){return t=t.getChild(n),e+(t.namespaced?n+"/":"")}),"")},Y.prototype.update=function(e){Q([],this.root,e)},Y.prototype.register=function(e,t,n){var r=this;void 0===n&&(n=!0);var o=new X(t,n);if(0===e.length)this.root=o;else{var s=this.get(e.slice(0,-1));s.addChild(e[e.length-1],o)}t.modules&&v(t.modules,(function(t,o){r.register(e.concat(o),t,n)}))},Y.prototype.unregister=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1],r=t.getChild(n);r&&r.runtime&&t.removeChild(n)},Y.prototype.isRegistered=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1];return!!t&&t.hasChild(n)};function ee(e){return new te(e)}var te=function(e){var t=this;void 0===e&&(e={});var n=e.plugins;void 0===n&&(n=[]);var r=e.strict;void 0===r&&(r=!1);var o=e.devtools;this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new Y(e),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._makeLocalGettersCache=Object.create(null),this._devtools=o;var s=this,i=this,c=i.dispatch,l=i.commit;this.dispatch=function(e,t){return c.call(s,e,t)},this.commit=function(e,t,n){return l.call(s,e,t,n)},this.strict=r;var u=this._modules.root.state;C(this,u,[],this._modules.root),x(this,u),n.forEach((function(e){return e(t)}))},ne={state:{configurable:!0}};te.prototype.install=function(e,t){e.provide(t||g,this),e.config.globalProperties.$store=this;var n=void 0!==this._devtools&&this._devtools;n&&U(e,this)},ne.state.get=function(){return this._state.data},ne.state.set=function(e){0},te.prototype.commit=function(e,t,n){var r=this,o=T(e,t,n),s=o.type,i=o.payload,c=(o.options,{type:s,payload:i}),l=this._mutations[s];l&&(this._withCommit((function(){l.forEach((function(e){e(i)}))})),this._subscribers.slice().forEach((function(e){return e(c,r.state)})))},te.prototype.dispatch=function(e,t){var n=this,r=T(e,t),o=r.type,s=r.payload,i={type:o,payload:s},c=this._actions[o];if(c){try{this._actionSubscribers.slice().filter((function(e){return e.before})).forEach((function(e){return e.before(i,n.state)}))}catch(u){0}var l=c.length>1?Promise.all(c.map((function(e){return e(s)}))):c[0](s);return new Promise((function(e,t){l.then((function(t){try{n._actionSubscribers.filter((function(e){return e.after})).forEach((function(e){return e.after(i,n.state)}))}catch(u){0}e(t)}),(function(e){try{n._actionSubscribers.filter((function(e){return e.error})).forEach((function(t){return t.error(i,n.state,e)}))}catch(u){0}t(e)}))}))}},te.prototype.subscribe=function(e,t){return w(e,this._subscribers,t)},te.prototype.subscribeAction=function(e,t){var n="function"===typeof e?{before:e}:e;return w(n,this._actionSubscribers,t)},te.prototype.watch=function(e,t,n){var o=this;return(0,r.YP)((function(){return e(o.state,o.getters)}),t,Object.assign({},n))},te.prototype.replaceState=function(e){var t=this;this._withCommit((function(){t._state.data=e}))},te.prototype.registerModule=function(e,t,n){void 0===n&&(n={}),"string"===typeof e&&(e=[e]),this._modules.register(e,t),C(this,this.state,e,this._modules.get(e),n.preserveState),x(this,this.state)},te.prototype.unregisterModule=function(e){var t=this;"string"===typeof e&&(e=[e]),this._modules.unregister(e),this._withCommit((function(){var n=I(t.state,e.slice(0,-1));delete n[e[e.length-1]]})),k(this)},te.prototype.hasModule=function(e){return"string"===typeof e&&(e=[e]),this._modules.isRegistered(e)},te.prototype.hotUpdate=function(e){this._modules.update(e),k(this,!0)},te.prototype._withCommit=function(e){var t=this._committing;this._committing=!0,e(),this._committing=t},Object.defineProperties(te.prototype,ne);se((function(e,t){var n={};return re(t).forEach((function(t){var r=t.key,o=t.val;n[r]=function(){var t=this.$store.state,n=this.$store.getters;if(e){var r=ie(this.$store,"mapState",e);if(!r)return;t=r.context.state,n=r.context.getters}return"function"===typeof o?o.call(this,t,n):t[o]},n[r].vuex=!0})),n})),se((function(e,t){var n={};return re(t).forEach((function(t){var r=t.key,o=t.val;n[r]=function(){var t=[],n=arguments.length;while(n--)t[n]=arguments[n];var r=this.$store.commit;if(e){var s=ie(this.$store,"mapMutations",e);if(!s)return;r=s.context.commit}return"function"===typeof o?o.apply(this,[r].concat(t)):r.apply(this.$store,[o].concat(t))}})),n})),se((function(e,t){var n={};return re(t).forEach((function(t){var r=t.key,o=t.val;o=e+o,n[r]=function(){if(!e||ie(this.$store,"mapGetters",e))return this.$store.getters[o]},n[r].vuex=!0})),n})),se((function(e,t){var n={};return re(t).forEach((function(t){var r=t.key,o=t.val;n[r]=function(){var t=[],n=arguments.length;while(n--)t[n]=arguments[n];var r=this.$store.dispatch;if(e){var s=ie(this.$store,"mapActions",e);if(!s)return;r=s.context.dispatch}return"function"===typeof o?o.apply(this,[r].concat(t)):r.apply(this.$store,[o].concat(t))}})),n}));function re(e){return oe(e)?Array.isArray(e)?e.map((function(e){return{key:e,val:e}})):Object.keys(e).map((function(t){return{key:t,val:e[t]}})):[]}function oe(e){return Array.isArray(e)||y(e)}function se(e){return function(t,n){return"string"!==typeof t?(n=t,t=""):"/"!==t.charAt(t.length-1)&&(t+="/"),e(t,n)}}function ie(e,t,n){var r=e._modulesNamespaceMap[n];return r}},201:function(e,t,n){n.d(t,{p7:function(){return nt},r5:function(){return J}});var r=n(252),o=n(262); +/*! + * vue-router v4.1.4 + * (c) 2022 Eduardo San Martin Morote + * @license MIT + */ +const s="undefined"!==typeof window;function i(e){return e.__esModule||"Module"===e[Symbol.toStringTag]}const c=Object.assign;function l(e,t){const n={};for(const r in t){const o=t[r];n[r]=a(o)?o.map(e):e(o)}return n}const u=()=>{},a=Array.isArray;const f=/\/$/,p=e=>e.replace(f,"");function d(e,t,n="/"){let r,o={},s="",i="";const c=t.indexOf("#");let l=t.indexOf("?");return c=0&&(l=-1),l>-1&&(r=t.slice(0,l),s=t.slice(l+1,c>-1?c:t.length),o=e(s)),c>-1&&(r=r||t.slice(0,c),i=t.slice(c,t.length)),r=w(null!=r?r:t,n),{fullPath:r+(s&&"?")+s+i,path:r,query:o,hash:i}}function h(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function m(e,t){return t&&e.toLowerCase().startsWith(t.toLowerCase())?e.slice(t.length)||"/":e}function g(e,t,n){const r=t.matched.length-1,o=n.matched.length-1;return r>-1&&r===o&&v(t.matched[r],n.matched[o])&&y(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function v(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function y(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!_(e[n],t[n]))return!1;return!0}function _(e,t){return a(e)?b(e,t):a(t)?b(t,e):e===t}function b(e,t){return a(t)?e.length===t.length&&e.every(((e,n)=>e===t[n])):1===e.length&&e[0]===t}function w(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/");let o,s,i=n.length-1;for(o=0;o1&&i--}return n.slice(0,i).join("/")+"/"+r.slice(o-(o===r.length?1:0)).join("/")}var k,x;(function(e){e["pop"]="pop",e["push"]="push"})(k||(k={})),function(e){e["back"]="back",e["forward"]="forward",e["unknown"]=""}(x||(x={}));function C(e){if(!e)if(s){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return"/"!==e[0]&&"#"!==e[0]&&(e="/"+e),p(e)}const S=/^[^#]+#/;function E(e,t){return e.replace(S,"#")+t}function O(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const R=()=>({left:window.pageXOffset,top:window.pageYOffset});function A(e){let t;if("el"in e){const n=e.el,r="string"===typeof n&&n.startsWith("#");0;const o="string"===typeof n?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o)return;t=O(o,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(null!=t.left?t.left:window.pageXOffset,null!=t.top?t.top:window.pageYOffset)}function j(e,t){const n=history.state?history.state.position-t:-1;return n+e}const I=new Map;function T(e,t){I.set(e,t)}function P(e){const t=I.get(e);return I.delete(e),t}let F=()=>location.protocol+"//"+location.host;function M(e,t){const{pathname:n,search:r,hash:o}=t,s=e.indexOf("#");if(s>-1){let t=o.includes(e.slice(s))?e.slice(s).length:1,n=o.slice(t);return"/"!==n[0]&&(n="/"+n),m(n,"")}const i=m(n,e);return i+r+o}function L(e,t,n,r){let o=[],s=[],i=null;const l=({state:s})=>{const c=M(e,location),l=n.value,u=t.value;let a=0;if(s){if(n.value=c,t.value=s,i&&i===l)return void(i=null);a=u?s.position-u.position:0}else r(c);o.forEach((e=>{e(n.value,l,{delta:a,type:k.pop,direction:a?a>0?x.forward:x.back:x.unknown})}))};function u(){i=n.value}function a(e){o.push(e);const t=()=>{const t=o.indexOf(e);t>-1&&o.splice(t,1)};return s.push(t),t}function f(){const{history:e}=window;e.state&&e.replaceState(c({},e.state,{scroll:R()}),"")}function p(){for(const e of s)e();s=[],window.removeEventListener("popstate",l),window.removeEventListener("beforeunload",f)}return window.addEventListener("popstate",l),window.addEventListener("beforeunload",f),{pauseListeners:u,listen:a,destroy:p}}function $(e,t,n,r=!1,o=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:o?R():null}}function U(e){const{history:t,location:n}=window,r={value:M(e,n)},o={value:t.state};function s(r,s,i){const c=e.indexOf("#"),l=c>-1?(n.host&&document.querySelector("base")?e:e.slice(c))+r:F()+e+r;try{t[i?"replaceState":"pushState"](s,"",l),o.value=s}catch(u){console.error(u),n[i?"replace":"assign"](l)}}function i(e,n){const i=c({},t.state,$(o.value.back,e,o.value.forward,!0),n,{position:o.value.position});s(e,i,!0),r.value=e}function l(e,n){const i=c({},o.value,t.state,{forward:e,scroll:R()});s(i.current,i,!0);const l=c({},$(r.value,e,null),{position:i.position+1},n);s(e,l,!1),r.value=e}return o.value||s(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0),{location:r,state:o,push:l,replace:i}}function N(e){e=C(e);const t=U(e),n=L(e,t.state,t.location,t.replace);function r(e,t=!0){t||n.pauseListeners(),history.go(e)}const o=c({location:"",base:e,go:r,createHref:E.bind(null,e)},t,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}function J(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),N(e)}function V(e){return"string"===typeof e||e&&"object"===typeof e}function D(e){return"string"===typeof e||"symbol"===typeof e}const G={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},B=Symbol("");var q;(function(e){e[e["aborted"]=4]="aborted",e[e["cancelled"]=8]="cancelled",e[e["duplicated"]=16]="duplicated"})(q||(q={}));function H(e,t){return c(new Error,{type:e,[B]:!0},t)}function W(e,t){return e instanceof Error&&B in e&&(null==t||!!(e.type&t))}const K="[^/]+?",z={sensitive:!1,strict:!1,start:!0,end:!0},X=/[.+*?^${}()[\]/\\]/g;function Z(e,t){const n=c({},z,t),r=[];let o=n.start?"^":"";const s=[];for(const c of e){const e=c.length?[]:[90];n.strict&&!c.length&&(o+="/");for(let t=0;tt.length?1===t.length&&80===t[0]?1:-1:0}function Q(e,t){let n=0;const r=e.score,o=t.score;while(n0&&t[t.length-1]<0}const te={type:0,value:""},ne=/[a-zA-Z0-9_]/;function re(e){if(!e)return[[]];if("/"===e)return[[te]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(e){throw new Error(`ERR (${n})/"${u}": ${e}`)}let n=0,r=n;const o=[];let s;function i(){s&&o.push(s),s=[]}let c,l=0,u="",a="";function f(){u&&(0===n?s.push({type:0,value:u}):1===n||2===n||3===n?(s.length>1&&("*"===c||"+"===c)&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),s.push({type:1,value:u,regexp:a,repeatable:"*"===c||"+"===c,optional:"*"===c||"?"===c})):t("Invalid state to consume buffer"),u="")}function p(){u+=c}while(l{i(h)}:u}function i(e){if(D(e)){const t=r.get(e);t&&(r.delete(e),n.splice(n.indexOf(t),1),t.children.forEach(i),t.alias.forEach(i))}else{const t=n.indexOf(e);t>-1&&(n.splice(t,1),e.record.name&&r.delete(e.record.name),e.children.forEach(i),e.alias.forEach(i))}}function l(){return n}function a(e){let t=0;while(t=0&&(e.record.path!==n[t].record.path||!pe(e,n[t])))t++;n.splice(t,0,e),e.record.name&&!ue(e)&&r.set(e.record.name,e)}function f(e,t){let o,s,i,l={};if("name"in e&&e.name){if(o=r.get(e.name),!o)throw H(1,{location:e});i=o.record.name,l=c(ie(t.params,o.keys.filter((e=>!e.optional)).map((e=>e.name))),e.params&&ie(e.params,o.keys.map((e=>e.name)))),s=o.stringify(l)}else if("path"in e)s=e.path,o=n.find((e=>e.re.test(s))),o&&(l=o.parse(s),i=o.record.name);else{if(o=t.name?r.get(t.name):n.find((e=>e.re.test(t.path))),!o)throw H(1,{location:e,currentLocation:t});i=o.record.name,l=c({},t.params,e.params),s=o.stringify(l)}const u=[];let a=o;while(a)u.unshift(a.record),a=a.parent;return{name:i,path:s,params:l,matched:u,meta:ae(u)}}return t=fe({strict:!1,end:!0,sensitive:!1},t),e.forEach((e=>s(e))),{addRoute:s,resolve:f,removeRoute:i,getRoutes:l,getRecordMatcher:o}}function ie(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function ce(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:le(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function le(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]="boolean"===typeof n?n:n[r];return t}function ue(e){while(e){if(e.record.aliasOf)return!0;e=e.parent}return!1}function ae(e){return e.reduce(((e,t)=>c(e,t.meta)),{})}function fe(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function pe(e,t){return t.children.some((t=>t===e||pe(e,t)))}const de=/#/g,he=/&/g,me=/\//g,ge=/=/g,ve=/\?/g,ye=/\+/g,_e=/%5B/g,be=/%5D/g,we=/%5E/g,ke=/%60/g,xe=/%7B/g,Ce=/%7C/g,Se=/%7D/g,Ee=/%20/g;function Oe(e){return encodeURI(""+e).replace(Ce,"|").replace(_e,"[").replace(be,"]")}function Re(e){return Oe(e).replace(xe,"{").replace(Se,"}").replace(we,"^")}function Ae(e){return Oe(e).replace(ye,"%2B").replace(Ee,"+").replace(de,"%23").replace(he,"%26").replace(ke,"`").replace(xe,"{").replace(Se,"}").replace(we,"^")}function je(e){return Ae(e).replace(ge,"%3D")}function Ie(e){return Oe(e).replace(de,"%23").replace(ve,"%3F")}function Te(e){return null==e?"":Ie(e).replace(me,"%2F")}function Pe(e){try{return decodeURIComponent(""+e)}catch(t){}return""+e}function Fe(e){const t={};if(""===e||"?"===e)return t;const n="?"===e[0],r=(n?e.slice(1):e).split("&");for(let o=0;oe&&Ae(e))):[r&&Ae(r)];o.forEach((e=>{void 0!==e&&(t+=(t.length?"&":"")+n,null!=e&&(t+="="+e))}))}return t}function Le(e){const t={};for(const n in e){const r=e[n];void 0!==r&&(t[n]=a(r)?r.map((e=>null==e?null:""+e)):null==r?r:""+r)}return t}const $e=Symbol(""),Ue=Symbol(""),Ne=Symbol(""),Je=Symbol(""),Ve=Symbol("");function De(){let e=[];function t(t){return e.push(t),()=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)}}function n(){e=[]}return{add:t,list:()=>e,reset:n}}function Ge(e,t,n,r,o){const s=r&&(r.enterCallbacks[o]=r.enterCallbacks[o]||[]);return()=>new Promise(((i,c)=>{const l=e=>{!1===e?c(H(4,{from:n,to:t})):e instanceof Error?c(e):V(e)?c(H(2,{from:t,to:e})):(s&&r.enterCallbacks[o]===s&&"function"===typeof e&&s.push(e),i())},u=e.call(r&&r.instances[o],t,n,l);let a=Promise.resolve(u);e.length<3&&(a=a.then(l)),a.catch((e=>c(e)))}))}function Be(e,t,n,r){const o=[];for(const s of e){0;for(const e in s.components){let c=s.components[e];if("beforeRouteEnter"===t||s.instances[e])if(qe(c)){const i=c.__vccOpts||c,l=i[t];l&&o.push(Ge(l,n,r,s,e))}else{let l=c();0,o.push((()=>l.then((o=>{if(!o)return Promise.reject(new Error(`Couldn't resolve component "${e}" at "${s.path}"`));const c=i(o)?o.default:o;s.components[e]=c;const l=c.__vccOpts||c,u=l[t];return u&&Ge(u,n,r,s,e)()}))))}}}return o}function qe(e){return"object"===typeof e||"displayName"in e||"props"in e||"__vccOpts"in e}function He(e){const t=(0,r.f3)(Ne),n=(0,r.f3)(Je),s=(0,r.Fl)((()=>t.resolve((0,o.SU)(e.to)))),i=(0,r.Fl)((()=>{const{matched:e}=s.value,{length:t}=e,r=e[t-1],o=n.matched;if(!r||!o.length)return-1;const i=o.findIndex(v.bind(null,r));if(i>-1)return i;const c=Ze(e[t-2]);return t>1&&Ze(r)===c&&o[o.length-1].path!==c?o.findIndex(v.bind(null,e[t-2])):i})),c=(0,r.Fl)((()=>i.value>-1&&Xe(n.params,s.value.params))),l=(0,r.Fl)((()=>i.value>-1&&i.value===n.matched.length-1&&y(n.params,s.value.params)));function a(n={}){return ze(n)?t[(0,o.SU)(e.replace)?"replace":"push"]((0,o.SU)(e.to)).catch(u):Promise.resolve()}return{route:s,href:(0,r.Fl)((()=>s.value.href)),isActive:c,isExactActive:l,navigate:a}}const We=(0,r.aZ)({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:He,setup(e,{slots:t}){const n=(0,o.qj)(He(e)),{options:s}=(0,r.f3)(Ne),i=(0,r.Fl)((()=>({[Ye(e.activeClass,s.linkActiveClass,"router-link-active")]:n.isActive,[Ye(e.exactActiveClass,s.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive})));return()=>{const o=t.default&&t.default(n);return e.custom?o:(0,r.h)("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:i.value},o)}}}),Ke=We;function ze(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&(void 0===e.button||0===e.button)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function Xe(e,t){for(const n in t){const r=t[n],o=e[n];if("string"===typeof r){if(r!==o)return!1}else if(!a(o)||o.length!==r.length||r.some(((e,t)=>e!==o[t])))return!1}return!0}function Ze(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Ye=(e,t,n)=>null!=e?e:null!=t?t:n,Qe=(0,r.aZ)({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const s=(0,r.f3)(Ve),i=(0,r.Fl)((()=>e.route||s.value)),l=(0,r.f3)(Ue,0),u=(0,r.Fl)((()=>{let e=(0,o.SU)(l);const{matched:t}=i.value;let n;while((n=t[e])&&!n.components)e++;return e})),a=(0,r.Fl)((()=>i.value.matched[u.value]));(0,r.JJ)(Ue,(0,r.Fl)((()=>u.value+1))),(0,r.JJ)($e,a),(0,r.JJ)(Ve,i);const f=(0,o.iH)();return(0,r.YP)((()=>[f.value,a.value,e.name]),(([e,t,n],[r,o,s])=>{t&&(t.instances[n]=e,o&&o!==t&&e&&e===r&&(t.leaveGuards.size||(t.leaveGuards=o.leaveGuards),t.updateGuards.size||(t.updateGuards=o.updateGuards))),!e||!t||o&&v(t,o)&&r||(t.enterCallbacks[n]||[]).forEach((t=>t(e)))}),{flush:"post"}),()=>{const o=i.value,s=e.name,l=a.value,u=l&&l.components[s];if(!u)return et(n.default,{Component:u,route:o});const p=l.props[s],d=p?!0===p?o.params:"function"===typeof p?p(o):p:null,h=e=>{e.component.isUnmounted&&(l.instances[s]=null)},m=(0,r.h)(u,c({},d,t,{onVnodeUnmounted:h,ref:f}));return et(n.default,{Component:m,route:o})||m}}});function et(e,t){if(!e)return null;const n=e(t);return 1===n.length?n[0]:n}const tt=Qe;function nt(e){const t=se(e.routes,e),n=e.parseQuery||Fe,i=e.stringifyQuery||Me,f=e.history;const p=De(),m=De(),v=De(),y=(0,o.XI)(G);let _=G;s&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const b=l.bind(null,(e=>""+e)),w=l.bind(null,Te),x=l.bind(null,Pe);function C(e,n){let r,o;return D(e)?(r=t.getRecordMatcher(e),o=n):o=e,t.addRoute(o,r)}function S(e){const n=t.getRecordMatcher(e);n&&t.removeRoute(n)}function E(){return t.getRoutes().map((e=>e.record))}function O(e){return!!t.getRecordMatcher(e)}function I(e,r){if(r=c({},r||y.value),"string"===typeof e){const o=d(n,e,r.path),s=t.resolve({path:o.path},r),i=f.createHref(o.fullPath);return c(o,s,{params:x(s.params),hash:Pe(o.hash),redirectedFrom:void 0,href:i})}let o;if("path"in e)o=c({},e,{path:d(n,e.path,r.path).path});else{const t=c({},e.params);for(const e in t)null==t[e]&&delete t[e];o=c({},e,{params:w(e.params)}),r.params=w(r.params)}const s=t.resolve(o,r),l=e.hash||"";s.params=b(x(s.params));const u=h(i,c({},e,{hash:Re(l),path:s.path})),a=f.createHref(u);return c({fullPath:u,hash:l,query:i===Me?Le(e.query):e.query||{}},s,{redirectedFrom:void 0,href:a})}function F(e){return"string"===typeof e?d(n,e,y.value.path):c({},e)}function M(e,t){if(_!==e)return H(8,{from:t,to:e})}function L(e){return N(e)}function $(e){return L(c(F(e),{replace:!0}))}function U(e){const t=e.matched[e.matched.length-1];if(t&&t.redirect){const{redirect:n}=t;let r="function"===typeof n?n(e):n;return"string"===typeof r&&(r=r.includes("?")||r.includes("#")?r=F(r):{path:r},r.params={}),c({query:e.query,hash:e.hash,params:"path"in r?{}:e.params},r)}}function N(e,t){const n=_=I(e),r=y.value,o=e.state,s=e.force,l=!0===e.replace,u=U(n);if(u)return N(c(F(u),{state:"object"===typeof u?c({},o,u.state):o,force:s,replace:l}),t||n);const a=n;let f;return a.redirectedFrom=t,!s&&g(i,r,n)&&(f=H(16,{to:a,from:r}),ne(r,r,!0,!1)),(f?Promise.resolve(f):V(a,r)).catch((e=>W(e)?W(e,2)?e:te(e):Q(e,a,r))).then((e=>{if(e){if(W(e,2))return N(c({replace:l},F(e.to),{state:"object"===typeof e.to?c({},o,e.to.state):o,force:s}),t||a)}else e=q(a,r,!0,l,o);return B(a,r,e),e}))}function J(e,t){const n=M(e,t);return n?Promise.reject(n):Promise.resolve()}function V(e,t){let n;const[r,o,s]=ot(e,t);n=Be(r.reverse(),"beforeRouteLeave",e,t);for(const c of r)c.leaveGuards.forEach((r=>{n.push(Ge(r,e,t))}));const i=J.bind(null,e,t);return n.push(i),rt(n).then((()=>{n=[];for(const r of p.list())n.push(Ge(r,e,t));return n.push(i),rt(n)})).then((()=>{n=Be(o,"beforeRouteUpdate",e,t);for(const r of o)r.updateGuards.forEach((r=>{n.push(Ge(r,e,t))}));return n.push(i),rt(n)})).then((()=>{n=[];for(const r of e.matched)if(r.beforeEnter&&!t.matched.includes(r))if(a(r.beforeEnter))for(const o of r.beforeEnter)n.push(Ge(o,e,t));else n.push(Ge(r.beforeEnter,e,t));return n.push(i),rt(n)})).then((()=>(e.matched.forEach((e=>e.enterCallbacks={})),n=Be(s,"beforeRouteEnter",e,t),n.push(i),rt(n)))).then((()=>{n=[];for(const r of m.list())n.push(Ge(r,e,t));return n.push(i),rt(n)})).catch((e=>W(e,8)?e:Promise.reject(e)))}function B(e,t,n){for(const r of v.list())r(e,t,n)}function q(e,t,n,r,o){const i=M(e,t);if(i)return i;const l=t===G,u=s?history.state:{};n&&(r||l?f.replace(e.fullPath,c({scroll:l&&u&&u.scroll},o)):f.push(e.fullPath,o)),y.value=e,ne(e,t,n,l),te()}let K;function z(){K||(K=f.listen(((e,t,n)=>{if(!ce.listening)return;const r=I(e),o=U(r);if(o)return void N(c(o,{replace:!0}),r).catch(u);_=r;const i=y.value;s&&T(j(i.fullPath,n.delta),R()),V(r,i).catch((e=>W(e,12)?e:W(e,2)?(N(e.to,r).then((e=>{W(e,20)&&!n.delta&&n.type===k.pop&&f.go(-1,!1)})).catch(u),Promise.reject()):(n.delta&&f.go(-n.delta,!1),Q(e,r,i)))).then((e=>{e=e||q(r,i,!1),e&&(n.delta&&!W(e,8)?f.go(-n.delta,!1):n.type===k.pop&&W(e,20)&&f.go(-1,!1)),B(r,i,e)})).catch(u)})))}let X,Z=De(),Y=De();function Q(e,t,n){te(e);const r=Y.list();return r.length?r.forEach((r=>r(e,t,n))):console.error(e),Promise.reject(e)}function ee(){return X&&y.value!==G?Promise.resolve():new Promise(((e,t)=>{Z.add([e,t])}))}function te(e){return X||(X=!e,z(),Z.list().forEach((([t,n])=>e?n(e):t())),Z.reset()),e}function ne(t,n,o,i){const{scrollBehavior:c}=e;if(!s||!c)return Promise.resolve();const l=!o&&P(j(t.fullPath,0))||(i||!o)&&history.state&&history.state.scroll||null;return(0,r.Y3)().then((()=>c(t,n,l))).then((e=>e&&A(e))).catch((e=>Q(e,t,n)))}const re=e=>f.go(e);let oe;const ie=new Set,ce={currentRoute:y,listening:!0,addRoute:C,removeRoute:S,hasRoute:O,getRoutes:E,resolve:I,options:e,push:L,replace:$,go:re,back:()=>re(-1),forward:()=>re(1),beforeEach:p.add,beforeResolve:m.add,afterEach:v.add,onError:Y.add,isReady:ee,install(e){const t=this;e.component("RouterLink",Ke),e.component("RouterView",tt),e.config.globalProperties.$router=t,Object.defineProperty(e.config.globalProperties,"$route",{enumerable:!0,get:()=>(0,o.SU)(y)}),s&&!oe&&y.value===G&&(oe=!0,L(f.location).catch((e=>{0})));const n={};for(const o in G)n[o]=(0,r.Fl)((()=>y.value[o]));e.provide(Ne,t),e.provide(Je,(0,o.qj)(n)),e.provide(Ve,y);const i=e.unmount;ie.add(e),e.unmount=function(){ie.delete(e),ie.size<1&&(_=G,K&&K(),K=null,y.value=G,oe=!1,X=!1),i()}}};return ce}function rt(e){return e.reduce(((e,t)=>e.then((()=>t()))),Promise.resolve())}function ot(e,t){const n=[],r=[],o=[],s=Math.max(t.matched.length,e.matched.length);for(let i=0;iv(e,s)))?r.push(s):n.push(s));const c=e.matched[i];c&&(t.matched.find((e=>v(e,c)))||o.push(c))}return[n,r,o]}}}]); +//# sourceMappingURL=chunk-vendors.86212f98.js.map \ No newline at end of file diff --git a/app/src/main/assets/web/bookSource/js/chunk-vendors.86212f98.js.map b/app/src/main/assets/web/bookSource/js/chunk-vendors.86212f98.js.map new file mode 100644 index 000000000..d70add749 --- /dev/null +++ b/app/src/main/assets/web/bookSource/js/chunk-vendors.86212f98.js.map @@ -0,0 +1 @@ +{"version":3,"file":"js/chunk-vendors.86212f98.js","mappings":"moBAMA,IAAIA,EACJ,MAAMC,EACFC,YAAYC,GAAW,GAInBC,KAAKC,QAAS,EAIdD,KAAKE,QAAU,GAIfF,KAAKG,SAAW,IACXJ,GAAYH,IACbI,KAAKI,OAASR,EACdI,KAAKK,OACAT,EAAkBU,SAAWV,EAAkBU,OAAS,KAAKC,KAAKP,MAAQ,EAEvF,CACAQ,IAAIC,GACA,GAAIT,KAAKC,OAAQ,CACb,MAAMS,EAAqBd,EAC3B,IAEI,OADAA,EAAoBI,KACbS,GAIX,CAFA,QACIb,EAAoBc,CACxB,CACJ,MACS,CAGb,CAKAC,KACIf,EAAoBI,IACxB,CAKAY,MACIhB,EAAoBI,KAAKI,MAC7B,CACAS,KAAKC,GACD,GAAId,KAAKC,OAAQ,CACb,IAAIc,EAAGC,EACP,IAAKD,EAAI,EAAGC,EAAIhB,KAAKE,QAAQe,OAAQF,EAAIC,EAAGD,IACxCf,KAAKE,QAAQa,GAAGF,OAEpB,IAAKE,EAAI,EAAGC,EAAIhB,KAAKG,SAASc,OAAQF,EAAIC,EAAGD,IACzCf,KAAKG,SAASY,KAElB,GAAIf,KAAKM,OACL,IAAKS,EAAI,EAAGC,EAAIhB,KAAKM,OAAOW,OAAQF,EAAIC,EAAGD,IACvCf,KAAKM,OAAOS,GAAGF,MAAK,GAI5B,GAAIb,KAAKI,SAAWU,EAAY,CAE5B,MAAMI,EAAOlB,KAAKI,OAAOE,OAAOa,MAC5BD,GAAQA,IAASlB,OACjBA,KAAKI,OAAOE,OAAON,KAAKK,OAASa,EACjCA,EAAKb,MAAQL,KAAKK,MAE1B,CACAL,KAAKC,QAAS,CAClB,CACJ,EAKJ,SAASmB,EAAkBC,EAAQC,EAAQ1B,GACnC0B,GAASA,EAAMrB,QACfqB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D0qB,EAAI/V,QAAQwzC,GAAWmB,GACvB5+B,EAAI/V,QAAQyzC,IAAkB,QAAS6I,IACvCvmC,EAAI/V,QAAQ0zC,GAAuBkB,GACnC,MAAM2H,EAAaxmC,EAAIrN,QACvBszC,GAAclwD,IAAIiqB,GAClBA,EAAIrN,QAAU,WACVszC,GAAclyD,OAAOisB,GAEjBimC,GAAclsD,KAAO,IAErB+oD,EAAkB3M,EAClBoP,GAAyBA,IACzBA,EAAwB,KACxB1G,EAAaxmD,MAAQ89C,EACrB6P,IAAU,EACVJ,GAAQ,GAEZY,GACJ,CAKJ,GAEJ,OAAO5H,EACX,CACA,SAASwG,GAAc9G,GACnB,OAAOA,EAAOlf,QAAO,CAACqnB,EAAS1I,IAAU0I,EAAQ7kD,MAAK,IAAMm8C,OAAUz8C,QAAQC,UAClF,CACA,SAAS0jD,GAAuB5oC,EAAI/E,GAChC,MAAMwtC,EAAiB,GACjBC,EAAkB,GAClBC,EAAkB,GAClBh5B,EAAM5C,KAAKtX,IAAIwF,EAAKu5B,QAAQh+C,OAAQwpB,EAAGw0B,QAAQh+C,QACrD,IAAK,IAAIF,EAAI,EAAGA,EAAIq5B,EAAKr5B,IAAK,CAC1B,MAAM+zD,EAAapvC,EAAKu5B,QAAQl+C,GAC5B+zD,IACIrqC,EAAGw0B,QAAQgK,MAAK5B,GAAUlI,EAAkBkI,EAAQyN,KACpD3B,EAAgB5yD,KAAKu0D,GAErB5B,EAAe3yD,KAAKu0D,IAE5B,MAAMC,EAAWtqC,EAAGw0B,QAAQl+C,GACxBg0D,IAEKrvC,EAAKu5B,QAAQgK,MAAK5B,GAAUlI,EAAkBkI,EAAQ0N,MACvD3B,EAAgB7yD,KAAKw0D,GAGjC,CACA,MAAO,CAAC7B,EAAgBC,EAAiBC,EAC7C,C","sources":["webpack://legado_web_editor/./node_modules/@vue/reactivity/dist/reactivity.esm-bundler.js","webpack://legado_web_editor/./node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js","webpack://legado_web_editor/./node_modules/@vue/runtime-dom/dist/runtime-dom.esm-bundler.js","webpack://legado_web_editor/./node_modules/@vue/shared/dist/shared.esm-bundler.js","webpack://legado_web_editor/./node_modules/vue-loader/dist/exportHelper.js","webpack://legado_web_editor/./node_modules/@vue/devtools-api/lib/esm/env.js","webpack://legado_web_editor/./node_modules/@vue/devtools-api/lib/esm/const.js","webpack://legado_web_editor/./node_modules/@vue/devtools-api/lib/esm/time.js","webpack://legado_web_editor/./node_modules/@vue/devtools-api/lib/esm/proxy.js","webpack://legado_web_editor/./node_modules/@vue/devtools-api/lib/esm/index.js","webpack://legado_web_editor/./node_modules/vuex/dist/vuex.esm-bundler.js","webpack://legado_web_editor/./node_modules/vue-router/dist/vue-router.mjs"],"sourcesContent":["import { extend, isArray, isMap, isIntegerKey, hasOwn, isSymbol, isObject, hasChanged, makeMap, capitalize, toRawType, def, isFunction, NOOP } from '@vue/shared';\n\nfunction warn(msg, ...args) {\r\n console.warn(`[Vue warn] ${msg}`, ...args);\r\n}\n\nlet activeEffectScope;\r\nclass EffectScope {\r\n constructor(detached = false) {\r\n /**\r\n * @internal\r\n */\r\n this.active = true;\r\n /**\r\n * @internal\r\n */\r\n this.effects = [];\r\n /**\r\n * @internal\r\n */\r\n this.cleanups = [];\r\n if (!detached && activeEffectScope) {\r\n this.parent = activeEffectScope;\r\n this.index =\r\n (activeEffectScope.scopes || (activeEffectScope.scopes = [])).push(this) - 1;\r\n }\r\n }\r\n run(fn) {\r\n if (this.active) {\r\n const currentEffectScope = activeEffectScope;\r\n try {\r\n activeEffectScope = this;\r\n return fn();\r\n }\r\n finally {\r\n activeEffectScope = currentEffectScope;\r\n }\r\n }\r\n else if ((process.env.NODE_ENV !== 'production')) {\r\n warn(`cannot run an inactive effect scope.`);\r\n }\r\n }\r\n /**\r\n * This should only be called on non-detached scopes\r\n * @internal\r\n */\r\n on() {\r\n activeEffectScope = this;\r\n }\r\n /**\r\n * This should only be called on non-detached scopes\r\n * @internal\r\n */\r\n off() {\r\n activeEffectScope = this.parent;\r\n }\r\n stop(fromParent) {\r\n if (this.active) {\r\n let i, l;\r\n for (i = 0, l = this.effects.length; i < l; i++) {\r\n this.effects[i].stop();\r\n }\r\n for (i = 0, l = this.cleanups.length; i < l; i++) {\r\n this.cleanups[i]();\r\n }\r\n if (this.scopes) {\r\n for (i = 0, l = this.scopes.length; i < l; i++) {\r\n this.scopes[i].stop(true);\r\n }\r\n }\r\n // nested scope, dereference from parent to avoid memory leaks\r\n if (this.parent && !fromParent) {\r\n // optimized O(1) removal\r\n const last = this.parent.scopes.pop();\r\n if (last && last !== this) {\r\n this.parent.scopes[this.index] = last;\r\n last.index = this.index;\r\n }\r\n }\r\n this.active = false;\r\n }\r\n }\r\n}\r\nfunction effectScope(detached) {\r\n return new EffectScope(detached);\r\n}\r\nfunction recordEffectScope(effect, scope = activeEffectScope) {\r\n if (scope && scope.active) {\r\n scope.effects.push(effect);\r\n }\r\n}\r\nfunction getCurrentScope() {\r\n return activeEffectScope;\r\n}\r\nfunction onScopeDispose(fn) {\r\n if (activeEffectScope) {\r\n activeEffectScope.cleanups.push(fn);\r\n }\r\n else if ((process.env.NODE_ENV !== 'production')) {\r\n warn(`onScopeDispose() is called when there is no active effect scope` +\r\n ` to be associated with.`);\r\n }\r\n}\n\nconst createDep = (effects) => {\r\n const dep = new Set(effects);\r\n dep.w = 0;\r\n dep.n = 0;\r\n return dep;\r\n};\r\nconst wasTracked = (dep) => (dep.w & trackOpBit) > 0;\r\nconst newTracked = (dep) => (dep.n & trackOpBit) > 0;\r\nconst initDepMarkers = ({ deps }) => {\r\n if (deps.length) {\r\n for (let i = 0; i < deps.length; i++) {\r\n deps[i].w |= trackOpBit; // set was tracked\r\n }\r\n }\r\n};\r\nconst finalizeDepMarkers = (effect) => {\r\n const { deps } = effect;\r\n if (deps.length) {\r\n let ptr = 0;\r\n for (let i = 0; i < deps.length; i++) {\r\n const dep = deps[i];\r\n if (wasTracked(dep) && !newTracked(dep)) {\r\n dep.delete(effect);\r\n }\r\n else {\r\n deps[ptr++] = dep;\r\n }\r\n // clear bits\r\n dep.w &= ~trackOpBit;\r\n dep.n &= ~trackOpBit;\r\n }\r\n deps.length = ptr;\r\n }\r\n};\n\nconst targetMap = new WeakMap();\r\n// The number of effects currently being tracked recursively.\r\nlet effectTrackDepth = 0;\r\nlet trackOpBit = 1;\r\n/**\r\n * The bitwise track markers support at most 30 levels of recursion.\r\n * This value is chosen to enable modern JS engines to use a SMI on all platforms.\r\n * When recursion depth is greater, fall back to using a full cleanup.\r\n */\r\nconst maxMarkerBits = 30;\r\nlet activeEffect;\r\nconst ITERATE_KEY = Symbol((process.env.NODE_ENV !== 'production') ? 'iterate' : '');\r\nconst MAP_KEY_ITERATE_KEY = Symbol((process.env.NODE_ENV !== 'production') ? 'Map key iterate' : '');\r\nclass ReactiveEffect {\r\n constructor(fn, scheduler = null, scope) {\r\n this.fn = fn;\r\n this.scheduler = scheduler;\r\n this.active = true;\r\n this.deps = [];\r\n this.parent = undefined;\r\n recordEffectScope(this, scope);\r\n }\r\n run() {\r\n if (!this.active) {\r\n return this.fn();\r\n }\r\n let parent = activeEffect;\r\n let lastShouldTrack = shouldTrack;\r\n while (parent) {\r\n if (parent === this) {\r\n return;\r\n }\r\n parent = parent.parent;\r\n }\r\n try {\r\n this.parent = activeEffect;\r\n activeEffect = this;\r\n shouldTrack = true;\r\n trackOpBit = 1 << ++effectTrackDepth;\r\n if (effectTrackDepth <= maxMarkerBits) {\r\n initDepMarkers(this);\r\n }\r\n else {\r\n cleanupEffect(this);\r\n }\r\n return this.fn();\r\n }\r\n finally {\r\n if (effectTrackDepth <= maxMarkerBits) {\r\n finalizeDepMarkers(this);\r\n }\r\n trackOpBit = 1 << --effectTrackDepth;\r\n activeEffect = this.parent;\r\n shouldTrack = lastShouldTrack;\r\n this.parent = undefined;\r\n if (this.deferStop) {\r\n this.stop();\r\n }\r\n }\r\n }\r\n stop() {\r\n // stopped while running itself - defer the cleanup\r\n if (activeEffect === this) {\r\n this.deferStop = true;\r\n }\r\n else if (this.active) {\r\n cleanupEffect(this);\r\n if (this.onStop) {\r\n this.onStop();\r\n }\r\n this.active = false;\r\n }\r\n }\r\n}\r\nfunction cleanupEffect(effect) {\r\n const { deps } = effect;\r\n if (deps.length) {\r\n for (let i = 0; i < deps.length; i++) {\r\n deps[i].delete(effect);\r\n }\r\n deps.length = 0;\r\n }\r\n}\r\nfunction effect(fn, options) {\r\n if (fn.effect) {\r\n fn = fn.effect.fn;\r\n }\r\n const _effect = new ReactiveEffect(fn);\r\n if (options) {\r\n extend(_effect, options);\r\n if (options.scope)\r\n recordEffectScope(_effect, options.scope);\r\n }\r\n if (!options || !options.lazy) {\r\n _effect.run();\r\n }\r\n const runner = _effect.run.bind(_effect);\r\n runner.effect = _effect;\r\n return runner;\r\n}\r\nfunction stop(runner) {\r\n runner.effect.stop();\r\n}\r\nlet shouldTrack = true;\r\nconst trackStack = [];\r\nfunction pauseTracking() {\r\n trackStack.push(shouldTrack);\r\n shouldTrack = false;\r\n}\r\nfunction enableTracking() {\r\n trackStack.push(shouldTrack);\r\n shouldTrack = true;\r\n}\r\nfunction resetTracking() {\r\n const last = trackStack.pop();\r\n shouldTrack = last === undefined ? true : last;\r\n}\r\nfunction track(target, type, key) {\r\n if (shouldTrack && activeEffect) {\r\n let depsMap = targetMap.get(target);\r\n if (!depsMap) {\r\n targetMap.set(target, (depsMap = new Map()));\r\n }\r\n let dep = depsMap.get(key);\r\n if (!dep) {\r\n depsMap.set(key, (dep = createDep()));\r\n }\r\n const eventInfo = (process.env.NODE_ENV !== 'production')\r\n ? { effect: activeEffect, target, type, key }\r\n : undefined;\r\n trackEffects(dep, eventInfo);\r\n }\r\n}\r\nfunction trackEffects(dep, debuggerEventExtraInfo) {\r\n let shouldTrack = false;\r\n if (effectTrackDepth <= maxMarkerBits) {\r\n if (!newTracked(dep)) {\r\n dep.n |= trackOpBit; // set newly tracked\r\n shouldTrack = !wasTracked(dep);\r\n }\r\n }\r\n else {\r\n // Full cleanup mode.\r\n shouldTrack = !dep.has(activeEffect);\r\n }\r\n if (shouldTrack) {\r\n dep.add(activeEffect);\r\n activeEffect.deps.push(dep);\r\n if ((process.env.NODE_ENV !== 'production') && activeEffect.onTrack) {\r\n activeEffect.onTrack(Object.assign({ effect: activeEffect }, debuggerEventExtraInfo));\r\n }\r\n }\r\n}\r\nfunction trigger(target, type, key, newValue, oldValue, oldTarget) {\r\n const depsMap = targetMap.get(target);\r\n if (!depsMap) {\r\n // never been tracked\r\n return;\r\n }\r\n let deps = [];\r\n if (type === \"clear\" /* CLEAR */) {\r\n // collection being cleared\r\n // trigger all effects for target\r\n deps = [...depsMap.values()];\r\n }\r\n else if (key === 'length' && isArray(target)) {\r\n depsMap.forEach((dep, key) => {\r\n if (key === 'length' || key >= newValue) {\r\n deps.push(dep);\r\n }\r\n });\r\n }\r\n else {\r\n // schedule runs for SET | ADD | DELETE\r\n if (key !== void 0) {\r\n deps.push(depsMap.get(key));\r\n }\r\n // also run for iteration key on ADD | DELETE | Map.SET\r\n switch (type) {\r\n case \"add\" /* ADD */:\r\n if (!isArray(target)) {\r\n deps.push(depsMap.get(ITERATE_KEY));\r\n if (isMap(target)) {\r\n deps.push(depsMap.get(MAP_KEY_ITERATE_KEY));\r\n }\r\n }\r\n else if (isIntegerKey(key)) {\r\n // new index added to array -> length changes\r\n deps.push(depsMap.get('length'));\r\n }\r\n break;\r\n case \"delete\" /* DELETE */:\r\n if (!isArray(target)) {\r\n deps.push(depsMap.get(ITERATE_KEY));\r\n if (isMap(target)) {\r\n deps.push(depsMap.get(MAP_KEY_ITERATE_KEY));\r\n }\r\n }\r\n break;\r\n case \"set\" /* SET */:\r\n if (isMap(target)) {\r\n deps.push(depsMap.get(ITERATE_KEY));\r\n }\r\n break;\r\n }\r\n }\r\n const eventInfo = (process.env.NODE_ENV !== 'production')\r\n ? { target, type, key, newValue, oldValue, oldTarget }\r\n : undefined;\r\n if (deps.length === 1) {\r\n if (deps[0]) {\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n triggerEffects(deps[0], eventInfo);\r\n }\r\n else {\r\n triggerEffects(deps[0]);\r\n }\r\n }\r\n }\r\n else {\r\n const effects = [];\r\n for (const dep of deps) {\r\n if (dep) {\r\n effects.push(...dep);\r\n }\r\n }\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n triggerEffects(createDep(effects), eventInfo);\r\n }\r\n else {\r\n triggerEffects(createDep(effects));\r\n }\r\n }\r\n}\r\nfunction triggerEffects(dep, debuggerEventExtraInfo) {\r\n // spread into array for stabilization\r\n const effects = isArray(dep) ? dep : [...dep];\r\n for (const effect of effects) {\r\n if (effect.computed) {\r\n triggerEffect(effect, debuggerEventExtraInfo);\r\n }\r\n }\r\n for (const effect of effects) {\r\n if (!effect.computed) {\r\n triggerEffect(effect, debuggerEventExtraInfo);\r\n }\r\n }\r\n}\r\nfunction triggerEffect(effect, debuggerEventExtraInfo) {\r\n if (effect !== activeEffect || effect.allowRecurse) {\r\n if ((process.env.NODE_ENV !== 'production') && effect.onTrigger) {\r\n effect.onTrigger(extend({ effect }, debuggerEventExtraInfo));\r\n }\r\n if (effect.scheduler) {\r\n effect.scheduler();\r\n }\r\n else {\r\n effect.run();\r\n }\r\n }\r\n}\n\nconst isNonTrackableKeys = /*#__PURE__*/ makeMap(`__proto__,__v_isRef,__isVue`);\r\nconst builtInSymbols = new Set(\r\n/*#__PURE__*/\r\nObject.getOwnPropertyNames(Symbol)\r\n // ios10.x Object.getOwnPropertyNames(Symbol) can enumerate 'arguments' and 'caller'\r\n // but accessing them on Symbol leads to TypeError because Symbol is a strict mode\r\n // function\r\n .filter(key => key !== 'arguments' && key !== 'caller')\r\n .map(key => Symbol[key])\r\n .filter(isSymbol));\r\nconst get = /*#__PURE__*/ createGetter();\r\nconst shallowGet = /*#__PURE__*/ createGetter(false, true);\r\nconst readonlyGet = /*#__PURE__*/ createGetter(true);\r\nconst shallowReadonlyGet = /*#__PURE__*/ createGetter(true, true);\r\nconst arrayInstrumentations = /*#__PURE__*/ createArrayInstrumentations();\r\nfunction createArrayInstrumentations() {\r\n const instrumentations = {};\r\n ['includes', 'indexOf', 'lastIndexOf'].forEach(key => {\r\n instrumentations[key] = function (...args) {\r\n const arr = toRaw(this);\r\n for (let i = 0, l = this.length; i < l; i++) {\r\n track(arr, \"get\" /* GET */, i + '');\r\n }\r\n // we run the method using the original args first (which may be reactive)\r\n const res = arr[key](...args);\r\n if (res === -1 || res === false) {\r\n // if that didn't work, run it again using raw values.\r\n return arr[key](...args.map(toRaw));\r\n }\r\n else {\r\n return res;\r\n }\r\n };\r\n });\r\n ['push', 'pop', 'shift', 'unshift', 'splice'].forEach(key => {\r\n instrumentations[key] = function (...args) {\r\n pauseTracking();\r\n const res = toRaw(this)[key].apply(this, args);\r\n resetTracking();\r\n return res;\r\n };\r\n });\r\n return instrumentations;\r\n}\r\nfunction createGetter(isReadonly = false, shallow = false) {\r\n return function get(target, key, receiver) {\r\n if (key === \"__v_isReactive\" /* IS_REACTIVE */) {\r\n return !isReadonly;\r\n }\r\n else if (key === \"__v_isReadonly\" /* IS_READONLY */) {\r\n return isReadonly;\r\n }\r\n else if (key === \"__v_isShallow\" /* IS_SHALLOW */) {\r\n return shallow;\r\n }\r\n else if (key === \"__v_raw\" /* RAW */ &&\r\n receiver ===\r\n (isReadonly\r\n ? shallow\r\n ? shallowReadonlyMap\r\n : readonlyMap\r\n : shallow\r\n ? shallowReactiveMap\r\n : reactiveMap).get(target)) {\r\n return target;\r\n }\r\n const targetIsArray = isArray(target);\r\n if (!isReadonly && targetIsArray && hasOwn(arrayInstrumentations, key)) {\r\n return Reflect.get(arrayInstrumentations, key, receiver);\r\n }\r\n const res = Reflect.get(target, key, receiver);\r\n if (isSymbol(key) ? builtInSymbols.has(key) : isNonTrackableKeys(key)) {\r\n return res;\r\n }\r\n if (!isReadonly) {\r\n track(target, \"get\" /* GET */, key);\r\n }\r\n if (shallow) {\r\n return res;\r\n }\r\n if (isRef(res)) {\r\n // ref unwrapping - skip unwrap for Array + integer key.\r\n return targetIsArray && isIntegerKey(key) ? res : res.value;\r\n }\r\n if (isObject(res)) {\r\n // Convert returned value into a proxy as well. we do the isObject check\r\n // here to avoid invalid value warning. Also need to lazy access readonly\r\n // and reactive here to avoid circular dependency.\r\n return isReadonly ? readonly(res) : reactive(res);\r\n }\r\n return res;\r\n };\r\n}\r\nconst set = /*#__PURE__*/ createSetter();\r\nconst shallowSet = /*#__PURE__*/ createSetter(true);\r\nfunction createSetter(shallow = false) {\r\n return function set(target, key, value, receiver) {\r\n let oldValue = target[key];\r\n if (isReadonly(oldValue) && isRef(oldValue) && !isRef(value)) {\r\n return false;\r\n }\r\n if (!shallow && !isReadonly(value)) {\r\n if (!isShallow(value)) {\r\n value = toRaw(value);\r\n oldValue = toRaw(oldValue);\r\n }\r\n if (!isArray(target) && isRef(oldValue) && !isRef(value)) {\r\n oldValue.value = value;\r\n return true;\r\n }\r\n }\r\n const hadKey = isArray(target) && isIntegerKey(key)\r\n ? Number(key) < target.length\r\n : hasOwn(target, key);\r\n const result = Reflect.set(target, key, value, receiver);\r\n // don't trigger if target is something up in the prototype chain of original\r\n if (target === toRaw(receiver)) {\r\n if (!hadKey) {\r\n trigger(target, \"add\" /* ADD */, key, value);\r\n }\r\n else if (hasChanged(value, oldValue)) {\r\n trigger(target, \"set\" /* SET */, key, value, oldValue);\r\n }\r\n }\r\n return result;\r\n };\r\n}\r\nfunction deleteProperty(target, key) {\r\n const hadKey = hasOwn(target, key);\r\n const oldValue = target[key];\r\n const result = Reflect.deleteProperty(target, key);\r\n if (result && hadKey) {\r\n trigger(target, \"delete\" /* DELETE */, key, undefined, oldValue);\r\n }\r\n return result;\r\n}\r\nfunction has(target, key) {\r\n const result = Reflect.has(target, key);\r\n if (!isSymbol(key) || !builtInSymbols.has(key)) {\r\n track(target, \"has\" /* HAS */, key);\r\n }\r\n return result;\r\n}\r\nfunction ownKeys(target) {\r\n track(target, \"iterate\" /* ITERATE */, isArray(target) ? 'length' : ITERATE_KEY);\r\n return Reflect.ownKeys(target);\r\n}\r\nconst mutableHandlers = {\r\n get,\r\n set,\r\n deleteProperty,\r\n has,\r\n ownKeys\r\n};\r\nconst readonlyHandlers = {\r\n get: readonlyGet,\r\n set(target, key) {\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n warn(`Set operation on key \"${String(key)}\" failed: target is readonly.`, target);\r\n }\r\n return true;\r\n },\r\n deleteProperty(target, key) {\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n warn(`Delete operation on key \"${String(key)}\" failed: target is readonly.`, target);\r\n }\r\n return true;\r\n }\r\n};\r\nconst shallowReactiveHandlers = /*#__PURE__*/ extend({}, mutableHandlers, {\r\n get: shallowGet,\r\n set: shallowSet\r\n});\r\n// Props handlers are special in the sense that it should not unwrap top-level\r\n// refs (in order to allow refs to be explicitly passed down), but should\r\n// retain the reactivity of the normal readonly object.\r\nconst shallowReadonlyHandlers = /*#__PURE__*/ extend({}, readonlyHandlers, {\r\n get: shallowReadonlyGet\r\n});\n\nconst toShallow = (value) => value;\r\nconst getProto = (v) => Reflect.getPrototypeOf(v);\r\nfunction get$1(target, key, isReadonly = false, isShallow = false) {\r\n // #1772: readonly(reactive(Map)) should return readonly + reactive version\r\n // of the value\r\n target = target[\"__v_raw\" /* RAW */];\r\n const rawTarget = toRaw(target);\r\n const rawKey = toRaw(key);\r\n if (!isReadonly) {\r\n if (key !== rawKey) {\r\n track(rawTarget, \"get\" /* GET */, key);\r\n }\r\n track(rawTarget, \"get\" /* GET */, rawKey);\r\n }\r\n const { has } = getProto(rawTarget);\r\n const wrap = isShallow ? toShallow : isReadonly ? toReadonly : toReactive;\r\n if (has.call(rawTarget, key)) {\r\n return wrap(target.get(key));\r\n }\r\n else if (has.call(rawTarget, rawKey)) {\r\n return wrap(target.get(rawKey));\r\n }\r\n else if (target !== rawTarget) {\r\n // #3602 readonly(reactive(Map))\r\n // ensure that the nested reactive `Map` can do tracking for itself\r\n target.get(key);\r\n }\r\n}\r\nfunction has$1(key, isReadonly = false) {\r\n const target = this[\"__v_raw\" /* RAW */];\r\n const rawTarget = toRaw(target);\r\n const rawKey = toRaw(key);\r\n if (!isReadonly) {\r\n if (key !== rawKey) {\r\n track(rawTarget, \"has\" /* HAS */, key);\r\n }\r\n track(rawTarget, \"has\" /* HAS */, rawKey);\r\n }\r\n return key === rawKey\r\n ? target.has(key)\r\n : target.has(key) || target.has(rawKey);\r\n}\r\nfunction size(target, isReadonly = false) {\r\n target = target[\"__v_raw\" /* RAW */];\r\n !isReadonly && track(toRaw(target), \"iterate\" /* ITERATE */, ITERATE_KEY);\r\n return Reflect.get(target, 'size', target);\r\n}\r\nfunction add(value) {\r\n value = toRaw(value);\r\n const target = toRaw(this);\r\n const proto = getProto(target);\r\n const hadKey = proto.has.call(target, value);\r\n if (!hadKey) {\r\n target.add(value);\r\n trigger(target, \"add\" /* ADD */, value, value);\r\n }\r\n return this;\r\n}\r\nfunction set$1(key, value) {\r\n value = toRaw(value);\r\n const target = toRaw(this);\r\n const { has, get } = getProto(target);\r\n let hadKey = has.call(target, key);\r\n if (!hadKey) {\r\n key = toRaw(key);\r\n hadKey = has.call(target, key);\r\n }\r\n else if ((process.env.NODE_ENV !== 'production')) {\r\n checkIdentityKeys(target, has, key);\r\n }\r\n const oldValue = get.call(target, key);\r\n target.set(key, value);\r\n if (!hadKey) {\r\n trigger(target, \"add\" /* ADD */, key, value);\r\n }\r\n else if (hasChanged(value, oldValue)) {\r\n trigger(target, \"set\" /* SET */, key, value, oldValue);\r\n }\r\n return this;\r\n}\r\nfunction deleteEntry(key) {\r\n const target = toRaw(this);\r\n const { has, get } = getProto(target);\r\n let hadKey = has.call(target, key);\r\n if (!hadKey) {\r\n key = toRaw(key);\r\n hadKey = has.call(target, key);\r\n }\r\n else if ((process.env.NODE_ENV !== 'production')) {\r\n checkIdentityKeys(target, has, key);\r\n }\r\n const oldValue = get ? get.call(target, key) : undefined;\r\n // forward the operation before queueing reactions\r\n const result = target.delete(key);\r\n if (hadKey) {\r\n trigger(target, \"delete\" /* DELETE */, key, undefined, oldValue);\r\n }\r\n return result;\r\n}\r\nfunction clear() {\r\n const target = toRaw(this);\r\n const hadItems = target.size !== 0;\r\n const oldTarget = (process.env.NODE_ENV !== 'production')\r\n ? isMap(target)\r\n ? new Map(target)\r\n : new Set(target)\r\n : undefined;\r\n // forward the operation before queueing reactions\r\n const result = target.clear();\r\n if (hadItems) {\r\n trigger(target, \"clear\" /* CLEAR */, undefined, undefined, oldTarget);\r\n }\r\n return result;\r\n}\r\nfunction createForEach(isReadonly, isShallow) {\r\n return function forEach(callback, thisArg) {\r\n const observed = this;\r\n const target = observed[\"__v_raw\" /* RAW */];\r\n const rawTarget = toRaw(target);\r\n const wrap = isShallow ? toShallow : isReadonly ? toReadonly : toReactive;\r\n !isReadonly && track(rawTarget, \"iterate\" /* ITERATE */, ITERATE_KEY);\r\n return target.forEach((value, key) => {\r\n // important: make sure the callback is\r\n // 1. invoked with the reactive map as `this` and 3rd arg\r\n // 2. the value received should be a corresponding reactive/readonly.\r\n return callback.call(thisArg, wrap(value), wrap(key), observed);\r\n });\r\n };\r\n}\r\nfunction createIterableMethod(method, isReadonly, isShallow) {\r\n return function (...args) {\r\n const target = this[\"__v_raw\" /* RAW */];\r\n const rawTarget = toRaw(target);\r\n const targetIsMap = isMap(rawTarget);\r\n const isPair = method === 'entries' || (method === Symbol.iterator && targetIsMap);\r\n const isKeyOnly = method === 'keys' && targetIsMap;\r\n const innerIterator = target[method](...args);\r\n const wrap = isShallow ? toShallow : isReadonly ? toReadonly : toReactive;\r\n !isReadonly &&\r\n track(rawTarget, \"iterate\" /* ITERATE */, isKeyOnly ? MAP_KEY_ITERATE_KEY : ITERATE_KEY);\r\n // return a wrapped iterator which returns observed versions of the\r\n // values emitted from the real iterator\r\n return {\r\n // iterator protocol\r\n next() {\r\n const { value, done } = innerIterator.next();\r\n return done\r\n ? { value, done }\r\n : {\r\n value: isPair ? [wrap(value[0]), wrap(value[1])] : wrap(value),\r\n done\r\n };\r\n },\r\n // iterable protocol\r\n [Symbol.iterator]() {\r\n return this;\r\n }\r\n };\r\n };\r\n}\r\nfunction createReadonlyMethod(type) {\r\n return function (...args) {\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n const key = args[0] ? `on key \"${args[0]}\" ` : ``;\r\n console.warn(`${capitalize(type)} operation ${key}failed: target is readonly.`, toRaw(this));\r\n }\r\n return type === \"delete\" /* DELETE */ ? false : this;\r\n };\r\n}\r\nfunction createInstrumentations() {\r\n const mutableInstrumentations = {\r\n get(key) {\r\n return get$1(this, key);\r\n },\r\n get size() {\r\n return size(this);\r\n },\r\n has: has$1,\r\n add,\r\n set: set$1,\r\n delete: deleteEntry,\r\n clear,\r\n forEach: createForEach(false, false)\r\n };\r\n const shallowInstrumentations = {\r\n get(key) {\r\n return get$1(this, key, false, true);\r\n },\r\n get size() {\r\n return size(this);\r\n },\r\n has: has$1,\r\n add,\r\n set: set$1,\r\n delete: deleteEntry,\r\n clear,\r\n forEach: createForEach(false, true)\r\n };\r\n const readonlyInstrumentations = {\r\n get(key) {\r\n return get$1(this, key, true);\r\n },\r\n get size() {\r\n return size(this, true);\r\n },\r\n has(key) {\r\n return has$1.call(this, key, true);\r\n },\r\n add: createReadonlyMethod(\"add\" /* ADD */),\r\n set: createReadonlyMethod(\"set\" /* SET */),\r\n delete: createReadonlyMethod(\"delete\" /* DELETE */),\r\n clear: createReadonlyMethod(\"clear\" /* CLEAR */),\r\n forEach: createForEach(true, false)\r\n };\r\n const shallowReadonlyInstrumentations = {\r\n get(key) {\r\n return get$1(this, key, true, true);\r\n },\r\n get size() {\r\n return size(this, true);\r\n },\r\n has(key) {\r\n return has$1.call(this, key, true);\r\n },\r\n add: createReadonlyMethod(\"add\" /* ADD */),\r\n set: createReadonlyMethod(\"set\" /* SET */),\r\n delete: createReadonlyMethod(\"delete\" /* DELETE */),\r\n clear: createReadonlyMethod(\"clear\" /* CLEAR */),\r\n forEach: createForEach(true, true)\r\n };\r\n const iteratorMethods = ['keys', 'values', 'entries', Symbol.iterator];\r\n iteratorMethods.forEach(method => {\r\n mutableInstrumentations[method] = createIterableMethod(method, false, false);\r\n readonlyInstrumentations[method] = createIterableMethod(method, true, false);\r\n shallowInstrumentations[method] = createIterableMethod(method, false, true);\r\n shallowReadonlyInstrumentations[method] = createIterableMethod(method, true, true);\r\n });\r\n return [\r\n mutableInstrumentations,\r\n readonlyInstrumentations,\r\n shallowInstrumentations,\r\n shallowReadonlyInstrumentations\r\n ];\r\n}\r\nconst [mutableInstrumentations, readonlyInstrumentations, shallowInstrumentations, shallowReadonlyInstrumentations] = /* #__PURE__*/ createInstrumentations();\r\nfunction createInstrumentationGetter(isReadonly, shallow) {\r\n const instrumentations = shallow\r\n ? isReadonly\r\n ? shallowReadonlyInstrumentations\r\n : shallowInstrumentations\r\n : isReadonly\r\n ? readonlyInstrumentations\r\n : mutableInstrumentations;\r\n return (target, key, receiver) => {\r\n if (key === \"__v_isReactive\" /* IS_REACTIVE */) {\r\n return !isReadonly;\r\n }\r\n else if (key === \"__v_isReadonly\" /* IS_READONLY */) {\r\n return isReadonly;\r\n }\r\n else if (key === \"__v_raw\" /* RAW */) {\r\n return target;\r\n }\r\n return Reflect.get(hasOwn(instrumentations, key) && key in target\r\n ? instrumentations\r\n : target, key, receiver);\r\n };\r\n}\r\nconst mutableCollectionHandlers = {\r\n get: /*#__PURE__*/ createInstrumentationGetter(false, false)\r\n};\r\nconst shallowCollectionHandlers = {\r\n get: /*#__PURE__*/ createInstrumentationGetter(false, true)\r\n};\r\nconst readonlyCollectionHandlers = {\r\n get: /*#__PURE__*/ createInstrumentationGetter(true, false)\r\n};\r\nconst shallowReadonlyCollectionHandlers = {\r\n get: /*#__PURE__*/ createInstrumentationGetter(true, true)\r\n};\r\nfunction checkIdentityKeys(target, has, key) {\r\n const rawKey = toRaw(key);\r\n if (rawKey !== key && has.call(target, rawKey)) {\r\n const type = toRawType(target);\r\n console.warn(`Reactive ${type} contains both the raw and reactive ` +\r\n `versions of the same object${type === `Map` ? ` as keys` : ``}, ` +\r\n `which can lead to inconsistencies. ` +\r\n `Avoid differentiating between the raw and reactive versions ` +\r\n `of an object and only use the reactive version if possible.`);\r\n }\r\n}\n\nconst reactiveMap = new WeakMap();\r\nconst shallowReactiveMap = new WeakMap();\r\nconst readonlyMap = new WeakMap();\r\nconst shallowReadonlyMap = new WeakMap();\r\nfunction targetTypeMap(rawType) {\r\n switch (rawType) {\r\n case 'Object':\r\n case 'Array':\r\n return 1 /* COMMON */;\r\n case 'Map':\r\n case 'Set':\r\n case 'WeakMap':\r\n case 'WeakSet':\r\n return 2 /* COLLECTION */;\r\n default:\r\n return 0 /* INVALID */;\r\n }\r\n}\r\nfunction getTargetType(value) {\r\n return value[\"__v_skip\" /* SKIP */] || !Object.isExtensible(value)\r\n ? 0 /* INVALID */\r\n : targetTypeMap(toRawType(value));\r\n}\r\nfunction reactive(target) {\r\n // if trying to observe a readonly proxy, return the readonly version.\r\n if (isReadonly(target)) {\r\n return target;\r\n }\r\n return createReactiveObject(target, false, mutableHandlers, mutableCollectionHandlers, reactiveMap);\r\n}\r\n/**\r\n * Return a shallowly-reactive copy of the original object, where only the root\r\n * level properties are reactive. It also does not auto-unwrap refs (even at the\r\n * root level).\r\n */\r\nfunction shallowReactive(target) {\r\n return createReactiveObject(target, false, shallowReactiveHandlers, shallowCollectionHandlers, shallowReactiveMap);\r\n}\r\n/**\r\n * Creates a readonly copy of the original object. Note the returned copy is not\r\n * made reactive, but `readonly` can be called on an already reactive object.\r\n */\r\nfunction readonly(target) {\r\n return createReactiveObject(target, true, readonlyHandlers, readonlyCollectionHandlers, readonlyMap);\r\n}\r\n/**\r\n * Returns a reactive-copy of the original object, where only the root level\r\n * properties are readonly, and does NOT unwrap refs nor recursively convert\r\n * returned properties.\r\n * This is used for creating the props proxy object for stateful components.\r\n */\r\nfunction shallowReadonly(target) {\r\n return createReactiveObject(target, true, shallowReadonlyHandlers, shallowReadonlyCollectionHandlers, shallowReadonlyMap);\r\n}\r\nfunction createReactiveObject(target, isReadonly, baseHandlers, collectionHandlers, proxyMap) {\r\n if (!isObject(target)) {\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n console.warn(`value cannot be made reactive: ${String(target)}`);\r\n }\r\n return target;\r\n }\r\n // target is already a Proxy, return it.\r\n // exception: calling readonly() on a reactive object\r\n if (target[\"__v_raw\" /* RAW */] &&\r\n !(isReadonly && target[\"__v_isReactive\" /* IS_REACTIVE */])) {\r\n return target;\r\n }\r\n // target already has corresponding Proxy\r\n const existingProxy = proxyMap.get(target);\r\n if (existingProxy) {\r\n return existingProxy;\r\n }\r\n // only specific value types can be observed.\r\n const targetType = getTargetType(target);\r\n if (targetType === 0 /* INVALID */) {\r\n return target;\r\n }\r\n const proxy = new Proxy(target, targetType === 2 /* COLLECTION */ ? collectionHandlers : baseHandlers);\r\n proxyMap.set(target, proxy);\r\n return proxy;\r\n}\r\nfunction isReactive(value) {\r\n if (isReadonly(value)) {\r\n return isReactive(value[\"__v_raw\" /* RAW */]);\r\n }\r\n return !!(value && value[\"__v_isReactive\" /* IS_REACTIVE */]);\r\n}\r\nfunction isReadonly(value) {\r\n return !!(value && value[\"__v_isReadonly\" /* IS_READONLY */]);\r\n}\r\nfunction isShallow(value) {\r\n return !!(value && value[\"__v_isShallow\" /* IS_SHALLOW */]);\r\n}\r\nfunction isProxy(value) {\r\n return isReactive(value) || isReadonly(value);\r\n}\r\nfunction toRaw(observed) {\r\n const raw = observed && observed[\"__v_raw\" /* RAW */];\r\n return raw ? toRaw(raw) : observed;\r\n}\r\nfunction markRaw(value) {\r\n def(value, \"__v_skip\" /* SKIP */, true);\r\n return value;\r\n}\r\nconst toReactive = (value) => isObject(value) ? reactive(value) : value;\r\nconst toReadonly = (value) => isObject(value) ? readonly(value) : value;\n\nfunction trackRefValue(ref) {\r\n if (shouldTrack && activeEffect) {\r\n ref = toRaw(ref);\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n trackEffects(ref.dep || (ref.dep = createDep()), {\r\n target: ref,\r\n type: \"get\" /* GET */,\r\n key: 'value'\r\n });\r\n }\r\n else {\r\n trackEffects(ref.dep || (ref.dep = createDep()));\r\n }\r\n }\r\n}\r\nfunction triggerRefValue(ref, newVal) {\r\n ref = toRaw(ref);\r\n if (ref.dep) {\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n triggerEffects(ref.dep, {\r\n target: ref,\r\n type: \"set\" /* SET */,\r\n key: 'value',\r\n newValue: newVal\r\n });\r\n }\r\n else {\r\n triggerEffects(ref.dep);\r\n }\r\n }\r\n}\r\nfunction isRef(r) {\r\n return !!(r && r.__v_isRef === true);\r\n}\r\nfunction ref(value) {\r\n return createRef(value, false);\r\n}\r\nfunction shallowRef(value) {\r\n return createRef(value, true);\r\n}\r\nfunction createRef(rawValue, shallow) {\r\n if (isRef(rawValue)) {\r\n return rawValue;\r\n }\r\n return new RefImpl(rawValue, shallow);\r\n}\r\nclass RefImpl {\r\n constructor(value, __v_isShallow) {\r\n this.__v_isShallow = __v_isShallow;\r\n this.dep = undefined;\r\n this.__v_isRef = true;\r\n this._rawValue = __v_isShallow ? value : toRaw(value);\r\n this._value = __v_isShallow ? value : toReactive(value);\r\n }\r\n get value() {\r\n trackRefValue(this);\r\n return this._value;\r\n }\r\n set value(newVal) {\r\n newVal = this.__v_isShallow ? newVal : toRaw(newVal);\r\n if (hasChanged(newVal, this._rawValue)) {\r\n this._rawValue = newVal;\r\n this._value = this.__v_isShallow ? newVal : toReactive(newVal);\r\n triggerRefValue(this, newVal);\r\n }\r\n }\r\n}\r\nfunction triggerRef(ref) {\r\n triggerRefValue(ref, (process.env.NODE_ENV !== 'production') ? ref.value : void 0);\r\n}\r\nfunction unref(ref) {\r\n return isRef(ref) ? ref.value : ref;\r\n}\r\nconst shallowUnwrapHandlers = {\r\n get: (target, key, receiver) => unref(Reflect.get(target, key, receiver)),\r\n set: (target, key, value, receiver) => {\r\n const oldValue = target[key];\r\n if (isRef(oldValue) && !isRef(value)) {\r\n oldValue.value = value;\r\n return true;\r\n }\r\n else {\r\n return Reflect.set(target, key, value, receiver);\r\n }\r\n }\r\n};\r\nfunction proxyRefs(objectWithRefs) {\r\n return isReactive(objectWithRefs)\r\n ? objectWithRefs\r\n : new Proxy(objectWithRefs, shallowUnwrapHandlers);\r\n}\r\nclass CustomRefImpl {\r\n constructor(factory) {\r\n this.dep = undefined;\r\n this.__v_isRef = true;\r\n const { get, set } = factory(() => trackRefValue(this), () => triggerRefValue(this));\r\n this._get = get;\r\n this._set = set;\r\n }\r\n get value() {\r\n return this._get();\r\n }\r\n set value(newVal) {\r\n this._set(newVal);\r\n }\r\n}\r\nfunction customRef(factory) {\r\n return new CustomRefImpl(factory);\r\n}\r\nfunction toRefs(object) {\r\n if ((process.env.NODE_ENV !== 'production') && !isProxy(object)) {\r\n console.warn(`toRefs() expects a reactive object but received a plain one.`);\r\n }\r\n const ret = isArray(object) ? new Array(object.length) : {};\r\n for (const key in object) {\r\n ret[key] = toRef(object, key);\r\n }\r\n return ret;\r\n}\r\nclass ObjectRefImpl {\r\n constructor(_object, _key, _defaultValue) {\r\n this._object = _object;\r\n this._key = _key;\r\n this._defaultValue = _defaultValue;\r\n this.__v_isRef = true;\r\n }\r\n get value() {\r\n const val = this._object[this._key];\r\n return val === undefined ? this._defaultValue : val;\r\n }\r\n set value(newVal) {\r\n this._object[this._key] = newVal;\r\n }\r\n}\r\nfunction toRef(object, key, defaultValue) {\r\n const val = object[key];\r\n return isRef(val)\r\n ? val\r\n : new ObjectRefImpl(object, key, defaultValue);\r\n}\n\nclass ComputedRefImpl {\r\n constructor(getter, _setter, isReadonly, isSSR) {\r\n this._setter = _setter;\r\n this.dep = undefined;\r\n this.__v_isRef = true;\r\n this._dirty = true;\r\n this.effect = new ReactiveEffect(getter, () => {\r\n if (!this._dirty) {\r\n this._dirty = true;\r\n triggerRefValue(this);\r\n }\r\n });\r\n this.effect.computed = this;\r\n this.effect.active = this._cacheable = !isSSR;\r\n this[\"__v_isReadonly\" /* IS_READONLY */] = isReadonly;\r\n }\r\n get value() {\r\n // the computed ref may get wrapped by other proxies e.g. readonly() #3376\r\n const self = toRaw(this);\r\n trackRefValue(self);\r\n if (self._dirty || !self._cacheable) {\r\n self._dirty = false;\r\n self._value = self.effect.run();\r\n }\r\n return self._value;\r\n }\r\n set value(newValue) {\r\n this._setter(newValue);\r\n }\r\n}\r\nfunction computed(getterOrOptions, debugOptions, isSSR = false) {\r\n let getter;\r\n let setter;\r\n const onlyGetter = isFunction(getterOrOptions);\r\n if (onlyGetter) {\r\n getter = getterOrOptions;\r\n setter = (process.env.NODE_ENV !== 'production')\r\n ? () => {\r\n console.warn('Write operation failed: computed value is readonly');\r\n }\r\n : NOOP;\r\n }\r\n else {\r\n getter = getterOrOptions.get;\r\n setter = getterOrOptions.set;\r\n }\r\n const cRef = new ComputedRefImpl(getter, setter, onlyGetter || !setter, isSSR);\r\n if ((process.env.NODE_ENV !== 'production') && debugOptions && !isSSR) {\r\n cRef.effect.onTrack = debugOptions.onTrack;\r\n cRef.effect.onTrigger = debugOptions.onTrigger;\r\n }\r\n return cRef;\r\n}\n\nvar _a;\r\nconst tick = /*#__PURE__*/ Promise.resolve();\r\nconst queue = [];\r\nlet queued = false;\r\nconst scheduler = (fn) => {\r\n queue.push(fn);\r\n if (!queued) {\r\n queued = true;\r\n tick.then(flush);\r\n }\r\n};\r\nconst flush = () => {\r\n for (let i = 0; i < queue.length; i++) {\r\n queue[i]();\r\n }\r\n queue.length = 0;\r\n queued = false;\r\n};\r\nclass DeferredComputedRefImpl {\r\n constructor(getter) {\r\n this.dep = undefined;\r\n this._dirty = true;\r\n this.__v_isRef = true;\r\n this[_a] = true;\r\n let compareTarget;\r\n let hasCompareTarget = false;\r\n let scheduled = false;\r\n this.effect = new ReactiveEffect(getter, (computedTrigger) => {\r\n if (this.dep) {\r\n if (computedTrigger) {\r\n compareTarget = this._value;\r\n hasCompareTarget = true;\r\n }\r\n else if (!scheduled) {\r\n const valueToCompare = hasCompareTarget ? compareTarget : this._value;\r\n scheduled = true;\r\n hasCompareTarget = false;\r\n scheduler(() => {\r\n if (this.effect.active && this._get() !== valueToCompare) {\r\n triggerRefValue(this);\r\n }\r\n scheduled = false;\r\n });\r\n }\r\n // chained upstream computeds are notified synchronously to ensure\r\n // value invalidation in case of sync access; normal effects are\r\n // deferred to be triggered in scheduler.\r\n for (const e of this.dep) {\r\n if (e.computed instanceof DeferredComputedRefImpl) {\r\n e.scheduler(true /* computedTrigger */);\r\n }\r\n }\r\n }\r\n this._dirty = true;\r\n });\r\n this.effect.computed = this;\r\n }\r\n _get() {\r\n if (this._dirty) {\r\n this._dirty = false;\r\n return (this._value = this.effect.run());\r\n }\r\n return this._value;\r\n }\r\n get value() {\r\n trackRefValue(this);\r\n // the computed ref may get wrapped by other proxies e.g. readonly() #3376\r\n return toRaw(this)._get();\r\n }\r\n}\r\n_a = \"__v_isReadonly\" /* IS_READONLY */;\r\nfunction deferredComputed(getter) {\r\n return new DeferredComputedRefImpl(getter);\r\n}\n\nexport { EffectScope, ITERATE_KEY, ReactiveEffect, computed, customRef, deferredComputed, effect, effectScope, enableTracking, getCurrentScope, isProxy, isReactive, isReadonly, isRef, isShallow, markRaw, onScopeDispose, pauseTracking, proxyRefs, reactive, readonly, ref, resetTracking, shallowReactive, shallowReadonly, shallowRef, stop, toRaw, toRef, toRefs, track, trigger, triggerRef, unref };\n","import { pauseTracking, resetTracking, isRef, toRaw, isShallow as isShallow$1, isReactive, ReactiveEffect, ref, shallowReadonly, track, reactive, shallowReactive, trigger, isProxy, EffectScope, markRaw, proxyRefs, computed as computed$1, isReadonly } from '@vue/reactivity';\nexport { EffectScope, ReactiveEffect, customRef, effect, effectScope, getCurrentScope, isProxy, isReactive, isReadonly, isRef, isShallow, markRaw, onScopeDispose, proxyRefs, reactive, readonly, ref, shallowReactive, shallowReadonly, shallowRef, stop, toRaw, toRef, toRefs, triggerRef, unref } from '@vue/reactivity';\nimport { isString, isFunction, isPromise, isArray, NOOP, getGlobalThis, extend, EMPTY_OBJ, toHandlerKey, toNumber, hyphenate, camelize, isOn, hasOwn, isModelListener, hasChanged, remove, isObject, isSet, isMap, isPlainObject, invokeArrayFns, isBuiltInDirective, capitalize, isGloballyWhitelisted, def, isReservedProp, EMPTY_ARR, toRawType, makeMap, NO, normalizeClass, normalizeStyle } from '@vue/shared';\nexport { camelize, capitalize, normalizeClass, normalizeProps, normalizeStyle, toDisplayString, toHandlerKey } from '@vue/shared';\n\nconst stack = [];\r\nfunction pushWarningContext(vnode) {\r\n stack.push(vnode);\r\n}\r\nfunction popWarningContext() {\r\n stack.pop();\r\n}\r\nfunction warn(msg, ...args) {\r\n // avoid props formatting or warn handler tracking deps that might be mutated\r\n // during patch, leading to infinite recursion.\r\n pauseTracking();\r\n const instance = stack.length ? stack[stack.length - 1].component : null;\r\n const appWarnHandler = instance && instance.appContext.config.warnHandler;\r\n const trace = getComponentTrace();\r\n if (appWarnHandler) {\r\n callWithErrorHandling(appWarnHandler, instance, 11 /* APP_WARN_HANDLER */, [\r\n msg + args.join(''),\r\n instance && instance.proxy,\r\n trace\r\n .map(({ vnode }) => `at <${formatComponentName(instance, vnode.type)}>`)\r\n .join('\\n'),\r\n trace\r\n ]);\r\n }\r\n else {\r\n const warnArgs = [`[Vue warn]: ${msg}`, ...args];\r\n /* istanbul ignore if */\r\n if (trace.length &&\r\n // avoid spamming console during tests\r\n !false) {\r\n warnArgs.push(`\\n`, ...formatTrace(trace));\r\n }\r\n console.warn(...warnArgs);\r\n }\r\n resetTracking();\r\n}\r\nfunction getComponentTrace() {\r\n let currentVNode = stack[stack.length - 1];\r\n if (!currentVNode) {\r\n return [];\r\n }\r\n // we can't just use the stack because it will be incomplete during updates\r\n // that did not start from the root. Re-construct the parent chain using\r\n // instance parent pointers.\r\n const normalizedStack = [];\r\n while (currentVNode) {\r\n const last = normalizedStack[0];\r\n if (last && last.vnode === currentVNode) {\r\n last.recurseCount++;\r\n }\r\n else {\r\n normalizedStack.push({\r\n vnode: currentVNode,\r\n recurseCount: 0\r\n });\r\n }\r\n const parentInstance = currentVNode.component && currentVNode.component.parent;\r\n currentVNode = parentInstance && parentInstance.vnode;\r\n }\r\n return normalizedStack;\r\n}\r\n/* istanbul ignore next */\r\nfunction formatTrace(trace) {\r\n const logs = [];\r\n trace.forEach((entry, i) => {\r\n logs.push(...(i === 0 ? [] : [`\\n`]), ...formatTraceEntry(entry));\r\n });\r\n return logs;\r\n}\r\nfunction formatTraceEntry({ vnode, recurseCount }) {\r\n const postfix = recurseCount > 0 ? `... (${recurseCount} recursive calls)` : ``;\r\n const isRoot = vnode.component ? vnode.component.parent == null : false;\r\n const open = ` at <${formatComponentName(vnode.component, vnode.type, isRoot)}`;\r\n const close = `>` + postfix;\r\n return vnode.props\r\n ? [open, ...formatProps(vnode.props), close]\r\n : [open + close];\r\n}\r\n/* istanbul ignore next */\r\nfunction formatProps(props) {\r\n const res = [];\r\n const keys = Object.keys(props);\r\n keys.slice(0, 3).forEach(key => {\r\n res.push(...formatProp(key, props[key]));\r\n });\r\n if (keys.length > 3) {\r\n res.push(` ...`);\r\n }\r\n return res;\r\n}\r\n/* istanbul ignore next */\r\nfunction formatProp(key, value, raw) {\r\n if (isString(value)) {\r\n value = JSON.stringify(value);\r\n return raw ? value : [`${key}=${value}`];\r\n }\r\n else if (typeof value === 'number' ||\r\n typeof value === 'boolean' ||\r\n value == null) {\r\n return raw ? value : [`${key}=${value}`];\r\n }\r\n else if (isRef(value)) {\r\n value = formatProp(key, toRaw(value.value), true);\r\n return raw ? value : [`${key}=Ref<`, value, `>`];\r\n }\r\n else if (isFunction(value)) {\r\n return [`${key}=fn${value.name ? `<${value.name}>` : ``}`];\r\n }\r\n else {\r\n value = toRaw(value);\r\n return raw ? value : [`${key}=`, value];\r\n }\r\n}\n\nconst ErrorTypeStrings = {\r\n [\"sp\" /* SERVER_PREFETCH */]: 'serverPrefetch hook',\r\n [\"bc\" /* BEFORE_CREATE */]: 'beforeCreate hook',\r\n [\"c\" /* CREATED */]: 'created hook',\r\n [\"bm\" /* BEFORE_MOUNT */]: 'beforeMount hook',\r\n [\"m\" /* MOUNTED */]: 'mounted hook',\r\n [\"bu\" /* BEFORE_UPDATE */]: 'beforeUpdate hook',\r\n [\"u\" /* UPDATED */]: 'updated',\r\n [\"bum\" /* BEFORE_UNMOUNT */]: 'beforeUnmount hook',\r\n [\"um\" /* UNMOUNTED */]: 'unmounted hook',\r\n [\"a\" /* ACTIVATED */]: 'activated hook',\r\n [\"da\" /* DEACTIVATED */]: 'deactivated hook',\r\n [\"ec\" /* ERROR_CAPTURED */]: 'errorCaptured hook',\r\n [\"rtc\" /* RENDER_TRACKED */]: 'renderTracked hook',\r\n [\"rtg\" /* RENDER_TRIGGERED */]: 'renderTriggered hook',\r\n [0 /* SETUP_FUNCTION */]: 'setup function',\r\n [1 /* RENDER_FUNCTION */]: 'render function',\r\n [2 /* WATCH_GETTER */]: 'watcher getter',\r\n [3 /* WATCH_CALLBACK */]: 'watcher callback',\r\n [4 /* WATCH_CLEANUP */]: 'watcher cleanup function',\r\n [5 /* NATIVE_EVENT_HANDLER */]: 'native event handler',\r\n [6 /* COMPONENT_EVENT_HANDLER */]: 'component event handler',\r\n [7 /* VNODE_HOOK */]: 'vnode hook',\r\n [8 /* DIRECTIVE_HOOK */]: 'directive hook',\r\n [9 /* TRANSITION_HOOK */]: 'transition hook',\r\n [10 /* APP_ERROR_HANDLER */]: 'app errorHandler',\r\n [11 /* APP_WARN_HANDLER */]: 'app warnHandler',\r\n [12 /* FUNCTION_REF */]: 'ref function',\r\n [13 /* ASYNC_COMPONENT_LOADER */]: 'async component loader',\r\n [14 /* SCHEDULER */]: 'scheduler flush. This is likely a Vue internals bug. ' +\r\n 'Please open an issue at https://new-issue.vuejs.org/?repo=vuejs/core'\r\n};\r\nfunction callWithErrorHandling(fn, instance, type, args) {\r\n let res;\r\n try {\r\n res = args ? fn(...args) : fn();\r\n }\r\n catch (err) {\r\n handleError(err, instance, type);\r\n }\r\n return res;\r\n}\r\nfunction callWithAsyncErrorHandling(fn, instance, type, args) {\r\n if (isFunction(fn)) {\r\n const res = callWithErrorHandling(fn, instance, type, args);\r\n if (res && isPromise(res)) {\r\n res.catch(err => {\r\n handleError(err, instance, type);\r\n });\r\n }\r\n return res;\r\n }\r\n const values = [];\r\n for (let i = 0; i < fn.length; i++) {\r\n values.push(callWithAsyncErrorHandling(fn[i], instance, type, args));\r\n }\r\n return values;\r\n}\r\nfunction handleError(err, instance, type, throwInDev = true) {\r\n const contextVNode = instance ? instance.vnode : null;\r\n if (instance) {\r\n let cur = instance.parent;\r\n // the exposed instance is the render proxy to keep it consistent with 2.x\r\n const exposedInstance = instance.proxy;\r\n // in production the hook receives only the error code\r\n const errorInfo = (process.env.NODE_ENV !== 'production') ? ErrorTypeStrings[type] : type;\r\n while (cur) {\r\n const errorCapturedHooks = cur.ec;\r\n if (errorCapturedHooks) {\r\n for (let i = 0; i < errorCapturedHooks.length; i++) {\r\n if (errorCapturedHooks[i](err, exposedInstance, errorInfo) === false) {\r\n return;\r\n }\r\n }\r\n }\r\n cur = cur.parent;\r\n }\r\n // app-level handling\r\n const appErrorHandler = instance.appContext.config.errorHandler;\r\n if (appErrorHandler) {\r\n callWithErrorHandling(appErrorHandler, null, 10 /* APP_ERROR_HANDLER */, [err, exposedInstance, errorInfo]);\r\n return;\r\n }\r\n }\r\n logError(err, type, contextVNode, throwInDev);\r\n}\r\nfunction logError(err, type, contextVNode, throwInDev = true) {\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n const info = ErrorTypeStrings[type];\r\n if (contextVNode) {\r\n pushWarningContext(contextVNode);\r\n }\r\n warn(`Unhandled error${info ? ` during execution of ${info}` : ``}`);\r\n if (contextVNode) {\r\n popWarningContext();\r\n }\r\n // crash in dev by default so it's more noticeable\r\n if (throwInDev) {\r\n throw err;\r\n }\r\n else {\r\n console.error(err);\r\n }\r\n }\r\n else {\r\n // recover in prod to reduce the impact on end-user\r\n console.error(err);\r\n }\r\n}\n\nlet isFlushing = false;\r\nlet isFlushPending = false;\r\nconst queue = [];\r\nlet flushIndex = 0;\r\nconst pendingPreFlushCbs = [];\r\nlet activePreFlushCbs = null;\r\nlet preFlushIndex = 0;\r\nconst pendingPostFlushCbs = [];\r\nlet activePostFlushCbs = null;\r\nlet postFlushIndex = 0;\r\nconst resolvedPromise = /*#__PURE__*/ Promise.resolve();\r\nlet currentFlushPromise = null;\r\nlet currentPreFlushParentJob = null;\r\nconst RECURSION_LIMIT = 100;\r\nfunction nextTick(fn) {\r\n const p = currentFlushPromise || resolvedPromise;\r\n return fn ? p.then(this ? fn.bind(this) : fn) : p;\r\n}\r\n// #2768\r\n// Use binary-search to find a suitable position in the queue,\r\n// so that the queue maintains the increasing order of job's id,\r\n// which can prevent the job from being skipped and also can avoid repeated patching.\r\nfunction findInsertionIndex(id) {\r\n // the start index should be `flushIndex + 1`\r\n let start = flushIndex + 1;\r\n let end = queue.length;\r\n while (start < end) {\r\n const middle = (start + end) >>> 1;\r\n const middleJobId = getId(queue[middle]);\r\n middleJobId < id ? (start = middle + 1) : (end = middle);\r\n }\r\n return start;\r\n}\r\nfunction queueJob(job) {\r\n // the dedupe search uses the startIndex argument of Array.includes()\r\n // by default the search index includes the current job that is being run\r\n // so it cannot recursively trigger itself again.\r\n // if the job is a watch() callback, the search will start with a +1 index to\r\n // allow it recursively trigger itself - it is the user's responsibility to\r\n // ensure it doesn't end up in an infinite loop.\r\n if ((!queue.length ||\r\n !queue.includes(job, isFlushing && job.allowRecurse ? flushIndex + 1 : flushIndex)) &&\r\n job !== currentPreFlushParentJob) {\r\n if (job.id == null) {\r\n queue.push(job);\r\n }\r\n else {\r\n queue.splice(findInsertionIndex(job.id), 0, job);\r\n }\r\n queueFlush();\r\n }\r\n}\r\nfunction queueFlush() {\r\n if (!isFlushing && !isFlushPending) {\r\n isFlushPending = true;\r\n currentFlushPromise = resolvedPromise.then(flushJobs);\r\n }\r\n}\r\nfunction invalidateJob(job) {\r\n const i = queue.indexOf(job);\r\n if (i > flushIndex) {\r\n queue.splice(i, 1);\r\n }\r\n}\r\nfunction queueCb(cb, activeQueue, pendingQueue, index) {\r\n if (!isArray(cb)) {\r\n if (!activeQueue ||\r\n !activeQueue.includes(cb, cb.allowRecurse ? index + 1 : index)) {\r\n pendingQueue.push(cb);\r\n }\r\n }\r\n else {\r\n // if cb is an array, it is a component lifecycle hook which can only be\r\n // triggered by a job, which is already deduped in the main queue, so\r\n // we can skip duplicate check here to improve perf\r\n pendingQueue.push(...cb);\r\n }\r\n queueFlush();\r\n}\r\nfunction queuePreFlushCb(cb) {\r\n queueCb(cb, activePreFlushCbs, pendingPreFlushCbs, preFlushIndex);\r\n}\r\nfunction queuePostFlushCb(cb) {\r\n queueCb(cb, activePostFlushCbs, pendingPostFlushCbs, postFlushIndex);\r\n}\r\nfunction flushPreFlushCbs(seen, parentJob = null) {\r\n if (pendingPreFlushCbs.length) {\r\n currentPreFlushParentJob = parentJob;\r\n activePreFlushCbs = [...new Set(pendingPreFlushCbs)];\r\n pendingPreFlushCbs.length = 0;\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n seen = seen || new Map();\r\n }\r\n for (preFlushIndex = 0; preFlushIndex < activePreFlushCbs.length; preFlushIndex++) {\r\n if ((process.env.NODE_ENV !== 'production') &&\r\n checkRecursiveUpdates(seen, activePreFlushCbs[preFlushIndex])) {\r\n continue;\r\n }\r\n activePreFlushCbs[preFlushIndex]();\r\n }\r\n activePreFlushCbs = null;\r\n preFlushIndex = 0;\r\n currentPreFlushParentJob = null;\r\n // recursively flush until it drains\r\n flushPreFlushCbs(seen, parentJob);\r\n }\r\n}\r\nfunction flushPostFlushCbs(seen) {\r\n // flush any pre cbs queued during the flush (e.g. pre watchers)\r\n flushPreFlushCbs();\r\n if (pendingPostFlushCbs.length) {\r\n const deduped = [...new Set(pendingPostFlushCbs)];\r\n pendingPostFlushCbs.length = 0;\r\n // #1947 already has active queue, nested flushPostFlushCbs call\r\n if (activePostFlushCbs) {\r\n activePostFlushCbs.push(...deduped);\r\n return;\r\n }\r\n activePostFlushCbs = deduped;\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n seen = seen || new Map();\r\n }\r\n activePostFlushCbs.sort((a, b) => getId(a) - getId(b));\r\n for (postFlushIndex = 0; postFlushIndex < activePostFlushCbs.length; postFlushIndex++) {\r\n if ((process.env.NODE_ENV !== 'production') &&\r\n checkRecursiveUpdates(seen, activePostFlushCbs[postFlushIndex])) {\r\n continue;\r\n }\r\n activePostFlushCbs[postFlushIndex]();\r\n }\r\n activePostFlushCbs = null;\r\n postFlushIndex = 0;\r\n }\r\n}\r\nconst getId = (job) => job.id == null ? Infinity : job.id;\r\nfunction flushJobs(seen) {\r\n isFlushPending = false;\r\n isFlushing = true;\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n seen = seen || new Map();\r\n }\r\n flushPreFlushCbs(seen);\r\n // Sort queue before flush.\r\n // This ensures that:\r\n // 1. Components are updated from parent to child. (because parent is always\r\n // created before the child so its render effect will have smaller\r\n // priority number)\r\n // 2. If a component is unmounted during a parent component's update,\r\n // its update can be skipped.\r\n queue.sort((a, b) => getId(a) - getId(b));\r\n // conditional usage of checkRecursiveUpdate must be determined out of\r\n // try ... catch block since Rollup by default de-optimizes treeshaking\r\n // inside try-catch. This can leave all warning code unshaked. Although\r\n // they would get eventually shaken by a minifier like terser, some minifiers\r\n // would fail to do that (e.g. https://github.com/evanw/esbuild/issues/1610)\r\n const check = (process.env.NODE_ENV !== 'production')\r\n ? (job) => checkRecursiveUpdates(seen, job)\r\n : NOOP;\r\n try {\r\n for (flushIndex = 0; flushIndex < queue.length; flushIndex++) {\r\n const job = queue[flushIndex];\r\n if (job && job.active !== false) {\r\n if ((process.env.NODE_ENV !== 'production') && check(job)) {\r\n continue;\r\n }\r\n // console.log(`running:`, job.id)\r\n callWithErrorHandling(job, null, 14 /* SCHEDULER */);\r\n }\r\n }\r\n }\r\n finally {\r\n flushIndex = 0;\r\n queue.length = 0;\r\n flushPostFlushCbs(seen);\r\n isFlushing = false;\r\n currentFlushPromise = null;\r\n // some postFlushCb queued jobs!\r\n // keep flushing until it drains.\r\n if (queue.length ||\r\n pendingPreFlushCbs.length ||\r\n pendingPostFlushCbs.length) {\r\n flushJobs(seen);\r\n }\r\n }\r\n}\r\nfunction checkRecursiveUpdates(seen, fn) {\r\n if (!seen.has(fn)) {\r\n seen.set(fn, 1);\r\n }\r\n else {\r\n const count = seen.get(fn);\r\n if (count > RECURSION_LIMIT) {\r\n const instance = fn.ownerInstance;\r\n const componentName = instance && getComponentName(instance.type);\r\n warn(`Maximum recursive updates exceeded${componentName ? ` in component <${componentName}>` : ``}. ` +\r\n `This means you have a reactive effect that is mutating its own ` +\r\n `dependencies and thus recursively triggering itself. Possible sources ` +\r\n `include component template, render function, updated hook or ` +\r\n `watcher source function.`);\r\n return true;\r\n }\r\n else {\r\n seen.set(fn, count + 1);\r\n }\r\n }\r\n}\n\n/* eslint-disable no-restricted-globals */\r\nlet isHmrUpdating = false;\r\nconst hmrDirtyComponents = new Set();\r\n// Expose the HMR runtime on the global object\r\n// This makes it entirely tree-shakable without polluting the exports and makes\r\n// it easier to be used in toolings like vue-loader\r\n// Note: for a component to be eligible for HMR it also needs the __hmrId option\r\n// to be set so that its instances can be registered / removed.\r\nif ((process.env.NODE_ENV !== 'production')) {\r\n getGlobalThis().__VUE_HMR_RUNTIME__ = {\r\n createRecord: tryWrap(createRecord),\r\n rerender: tryWrap(rerender),\r\n reload: tryWrap(reload)\r\n };\r\n}\r\nconst map = new Map();\r\nfunction registerHMR(instance) {\r\n const id = instance.type.__hmrId;\r\n let record = map.get(id);\r\n if (!record) {\r\n createRecord(id, instance.type);\r\n record = map.get(id);\r\n }\r\n record.instances.add(instance);\r\n}\r\nfunction unregisterHMR(instance) {\r\n map.get(instance.type.__hmrId).instances.delete(instance);\r\n}\r\nfunction createRecord(id, initialDef) {\r\n if (map.has(id)) {\r\n return false;\r\n }\r\n map.set(id, {\r\n initialDef: normalizeClassComponent(initialDef),\r\n instances: new Set()\r\n });\r\n return true;\r\n}\r\nfunction normalizeClassComponent(component) {\r\n return isClassComponent(component) ? component.__vccOpts : component;\r\n}\r\nfunction rerender(id, newRender) {\r\n const record = map.get(id);\r\n if (!record) {\r\n return;\r\n }\r\n // update initial record (for not-yet-rendered component)\r\n record.initialDef.render = newRender;\r\n [...record.instances].forEach(instance => {\r\n if (newRender) {\r\n instance.render = newRender;\r\n normalizeClassComponent(instance.type).render = newRender;\r\n }\r\n instance.renderCache = [];\r\n // this flag forces child components with slot content to update\r\n isHmrUpdating = true;\r\n instance.update();\r\n isHmrUpdating = false;\r\n });\r\n}\r\nfunction reload(id, newComp) {\r\n const record = map.get(id);\r\n if (!record)\r\n return;\r\n newComp = normalizeClassComponent(newComp);\r\n // update initial def (for not-yet-rendered components)\r\n updateComponentDef(record.initialDef, newComp);\r\n // create a snapshot which avoids the set being mutated during updates\r\n const instances = [...record.instances];\r\n for (const instance of instances) {\r\n const oldComp = normalizeClassComponent(instance.type);\r\n if (!hmrDirtyComponents.has(oldComp)) {\r\n // 1. Update existing comp definition to match new one\r\n if (oldComp !== record.initialDef) {\r\n updateComponentDef(oldComp, newComp);\r\n }\r\n // 2. mark definition dirty. This forces the renderer to replace the\r\n // component on patch.\r\n hmrDirtyComponents.add(oldComp);\r\n }\r\n // 3. invalidate options resolution cache\r\n instance.appContext.optionsCache.delete(instance.type);\r\n // 4. actually update\r\n if (instance.ceReload) {\r\n // custom element\r\n hmrDirtyComponents.add(oldComp);\r\n instance.ceReload(newComp.styles);\r\n hmrDirtyComponents.delete(oldComp);\r\n }\r\n else if (instance.parent) {\r\n // 4. Force the parent instance to re-render. This will cause all updated\r\n // components to be unmounted and re-mounted. Queue the update so that we\r\n // don't end up forcing the same parent to re-render multiple times.\r\n queueJob(instance.parent.update);\r\n // instance is the inner component of an async custom element\r\n // invoke to reset styles\r\n if (instance.parent.type.__asyncLoader &&\r\n instance.parent.ceReload) {\r\n instance.parent.ceReload(newComp.styles);\r\n }\r\n }\r\n else if (instance.appContext.reload) {\r\n // root instance mounted via createApp() has a reload method\r\n instance.appContext.reload();\r\n }\r\n else if (typeof window !== 'undefined') {\r\n // root instance inside tree created via raw render(). Force reload.\r\n window.location.reload();\r\n }\r\n else {\r\n console.warn('[HMR] Root or manually mounted instance modified. Full reload required.');\r\n }\r\n }\r\n // 5. make sure to cleanup dirty hmr components after update\r\n queuePostFlushCb(() => {\r\n for (const instance of instances) {\r\n hmrDirtyComponents.delete(normalizeClassComponent(instance.type));\r\n }\r\n });\r\n}\r\nfunction updateComponentDef(oldComp, newComp) {\r\n extend(oldComp, newComp);\r\n for (const key in oldComp) {\r\n if (key !== '__file' && !(key in newComp)) {\r\n delete oldComp[key];\r\n }\r\n }\r\n}\r\nfunction tryWrap(fn) {\r\n return (id, arg) => {\r\n try {\r\n return fn(id, arg);\r\n }\r\n catch (e) {\r\n console.error(e);\r\n console.warn(`[HMR] Something went wrong during Vue component hot-reload. ` +\r\n `Full reload required.`);\r\n }\r\n };\r\n}\n\nlet devtools;\r\nlet buffer = [];\r\nlet devtoolsNotInstalled = false;\r\nfunction emit(event, ...args) {\r\n if (devtools) {\r\n devtools.emit(event, ...args);\r\n }\r\n else if (!devtoolsNotInstalled) {\r\n buffer.push({ event, args });\r\n }\r\n}\r\nfunction setDevtoolsHook(hook, target) {\r\n var _a, _b;\r\n devtools = hook;\r\n if (devtools) {\r\n devtools.enabled = true;\r\n buffer.forEach(({ event, args }) => devtools.emit(event, ...args));\r\n buffer = [];\r\n }\r\n else if (\r\n // handle late devtools injection - only do this if we are in an actual\r\n // browser environment to avoid the timer handle stalling test runner exit\r\n // (#4815)\r\n typeof window !== 'undefined' &&\r\n // some envs mock window but not fully\r\n window.HTMLElement &&\r\n // also exclude jsdom\r\n !((_b = (_a = window.navigator) === null || _a === void 0 ? void 0 : _a.userAgent) === null || _b === void 0 ? void 0 : _b.includes('jsdom'))) {\r\n const replay = (target.__VUE_DEVTOOLS_HOOK_REPLAY__ =\r\n target.__VUE_DEVTOOLS_HOOK_REPLAY__ || []);\r\n replay.push((newHook) => {\r\n setDevtoolsHook(newHook, target);\r\n });\r\n // clear buffer after 3s - the user probably doesn't have devtools installed\r\n // at all, and keeping the buffer will cause memory leaks (#4738)\r\n setTimeout(() => {\r\n if (!devtools) {\r\n target.__VUE_DEVTOOLS_HOOK_REPLAY__ = null;\r\n devtoolsNotInstalled = true;\r\n buffer = [];\r\n }\r\n }, 3000);\r\n }\r\n else {\r\n // non-browser env, assume not installed\r\n devtoolsNotInstalled = true;\r\n buffer = [];\r\n }\r\n}\r\nfunction devtoolsInitApp(app, version) {\r\n emit(\"app:init\" /* APP_INIT */, app, version, {\r\n Fragment,\r\n Text,\r\n Comment,\r\n Static\r\n });\r\n}\r\nfunction devtoolsUnmountApp(app) {\r\n emit(\"app:unmount\" /* APP_UNMOUNT */, app);\r\n}\r\nconst devtoolsComponentAdded = /*#__PURE__*/ createDevtoolsComponentHook(\"component:added\" /* COMPONENT_ADDED */);\r\nconst devtoolsComponentUpdated = \r\n/*#__PURE__*/ createDevtoolsComponentHook(\"component:updated\" /* COMPONENT_UPDATED */);\r\nconst devtoolsComponentRemoved = \r\n/*#__PURE__*/ createDevtoolsComponentHook(\"component:removed\" /* COMPONENT_REMOVED */);\r\nfunction createDevtoolsComponentHook(hook) {\r\n return (component) => {\r\n emit(hook, component.appContext.app, component.uid, component.parent ? component.parent.uid : undefined, component);\r\n };\r\n}\r\nconst devtoolsPerfStart = /*#__PURE__*/ createDevtoolsPerformanceHook(\"perf:start\" /* PERFORMANCE_START */);\r\nconst devtoolsPerfEnd = /*#__PURE__*/ createDevtoolsPerformanceHook(\"perf:end\" /* PERFORMANCE_END */);\r\nfunction createDevtoolsPerformanceHook(hook) {\r\n return (component, type, time) => {\r\n emit(hook, component.appContext.app, component.uid, component, type, time);\r\n };\r\n}\r\nfunction devtoolsComponentEmit(component, event, params) {\r\n emit(\"component:emit\" /* COMPONENT_EMIT */, component.appContext.app, component, event, params);\r\n}\n\nfunction emit$1(instance, event, ...rawArgs) {\r\n if (instance.isUnmounted)\r\n return;\r\n const props = instance.vnode.props || EMPTY_OBJ;\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n const { emitsOptions, propsOptions: [propsOptions] } = instance;\r\n if (emitsOptions) {\r\n if (!(event in emitsOptions) &&\r\n !(false )) {\r\n if (!propsOptions || !(toHandlerKey(event) in propsOptions)) {\r\n warn(`Component emitted event \"${event}\" but it is neither declared in ` +\r\n `the emits option nor as an \"${toHandlerKey(event)}\" prop.`);\r\n }\r\n }\r\n else {\r\n const validator = emitsOptions[event];\r\n if (isFunction(validator)) {\r\n const isValid = validator(...rawArgs);\r\n if (!isValid) {\r\n warn(`Invalid event arguments: event validation failed for event \"${event}\".`);\r\n }\r\n }\r\n }\r\n }\r\n }\r\n let args = rawArgs;\r\n const isModelListener = event.startsWith('update:');\r\n // for v-model update:xxx events, apply modifiers on args\r\n const modelArg = isModelListener && event.slice(7);\r\n if (modelArg && modelArg in props) {\r\n const modifiersKey = `${modelArg === 'modelValue' ? 'model' : modelArg}Modifiers`;\r\n const { number, trim } = props[modifiersKey] || EMPTY_OBJ;\r\n if (trim) {\r\n args = rawArgs.map(a => a.trim());\r\n }\r\n if (number) {\r\n args = rawArgs.map(toNumber);\r\n }\r\n }\r\n if ((process.env.NODE_ENV !== 'production') || __VUE_PROD_DEVTOOLS__) {\r\n devtoolsComponentEmit(instance, event, args);\r\n }\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n const lowerCaseEvent = event.toLowerCase();\r\n if (lowerCaseEvent !== event && props[toHandlerKey(lowerCaseEvent)]) {\r\n warn(`Event \"${lowerCaseEvent}\" is emitted in component ` +\r\n `${formatComponentName(instance, instance.type)} but the handler is registered for \"${event}\". ` +\r\n `Note that HTML attributes are case-insensitive and you cannot use ` +\r\n `v-on to listen to camelCase events when using in-DOM templates. ` +\r\n `You should probably use \"${hyphenate(event)}\" instead of \"${event}\".`);\r\n }\r\n }\r\n let handlerName;\r\n let handler = props[(handlerName = toHandlerKey(event))] ||\r\n // also try camelCase event handler (#2249)\r\n props[(handlerName = toHandlerKey(camelize(event)))];\r\n // for v-model update:xxx events, also trigger kebab-case equivalent\r\n // for props passed via kebab-case\r\n if (!handler && isModelListener) {\r\n handler = props[(handlerName = toHandlerKey(hyphenate(event)))];\r\n }\r\n if (handler) {\r\n callWithAsyncErrorHandling(handler, instance, 6 /* COMPONENT_EVENT_HANDLER */, args);\r\n }\r\n const onceHandler = props[handlerName + `Once`];\r\n if (onceHandler) {\r\n if (!instance.emitted) {\r\n instance.emitted = {};\r\n }\r\n else if (instance.emitted[handlerName]) {\r\n return;\r\n }\r\n instance.emitted[handlerName] = true;\r\n callWithAsyncErrorHandling(onceHandler, instance, 6 /* COMPONENT_EVENT_HANDLER */, args);\r\n }\r\n}\r\nfunction normalizeEmitsOptions(comp, appContext, asMixin = false) {\r\n const cache = appContext.emitsCache;\r\n const cached = cache.get(comp);\r\n if (cached !== undefined) {\r\n return cached;\r\n }\r\n const raw = comp.emits;\r\n let normalized = {};\r\n // apply mixin/extends props\r\n let hasExtends = false;\r\n if (__VUE_OPTIONS_API__ && !isFunction(comp)) {\r\n const extendEmits = (raw) => {\r\n const normalizedFromExtend = normalizeEmitsOptions(raw, appContext, true);\r\n if (normalizedFromExtend) {\r\n hasExtends = true;\r\n extend(normalized, normalizedFromExtend);\r\n }\r\n };\r\n if (!asMixin && appContext.mixins.length) {\r\n appContext.mixins.forEach(extendEmits);\r\n }\r\n if (comp.extends) {\r\n extendEmits(comp.extends);\r\n }\r\n if (comp.mixins) {\r\n comp.mixins.forEach(extendEmits);\r\n }\r\n }\r\n if (!raw && !hasExtends) {\r\n cache.set(comp, null);\r\n return null;\r\n }\r\n if (isArray(raw)) {\r\n raw.forEach(key => (normalized[key] = null));\r\n }\r\n else {\r\n extend(normalized, raw);\r\n }\r\n cache.set(comp, normalized);\r\n return normalized;\r\n}\r\n// Check if an incoming prop key is a declared emit event listener.\r\n// e.g. With `emits: { click: null }`, props named `onClick` and `onclick` are\r\n// both considered matched listeners.\r\nfunction isEmitListener(options, key) {\r\n if (!options || !isOn(key)) {\r\n return false;\r\n }\r\n key = key.slice(2).replace(/Once$/, '');\r\n return (hasOwn(options, key[0].toLowerCase() + key.slice(1)) ||\r\n hasOwn(options, hyphenate(key)) ||\r\n hasOwn(options, key));\r\n}\n\n/**\r\n * mark the current rendering instance for asset resolution (e.g.\r\n * resolveComponent, resolveDirective) during render\r\n */\r\nlet currentRenderingInstance = null;\r\nlet currentScopeId = null;\r\n/**\r\n * Note: rendering calls maybe nested. The function returns the parent rendering\r\n * instance if present, which should be restored after the render is done:\r\n *\r\n * ```js\r\n * const prev = setCurrentRenderingInstance(i)\r\n * // ...render\r\n * setCurrentRenderingInstance(prev)\r\n * ```\r\n */\r\nfunction setCurrentRenderingInstance(instance) {\r\n const prev = currentRenderingInstance;\r\n currentRenderingInstance = instance;\r\n currentScopeId = (instance && instance.type.__scopeId) || null;\r\n return prev;\r\n}\r\n/**\r\n * Set scope id when creating hoisted vnodes.\r\n * @private compiler helper\r\n */\r\nfunction pushScopeId(id) {\r\n currentScopeId = id;\r\n}\r\n/**\r\n * Technically we no longer need this after 3.0.8 but we need to keep the same\r\n * API for backwards compat w/ code generated by compilers.\r\n * @private\r\n */\r\nfunction popScopeId() {\r\n currentScopeId = null;\r\n}\r\n/**\r\n * Only for backwards compat\r\n * @private\r\n */\r\nconst withScopeId = (_id) => withCtx;\r\n/**\r\n * Wrap a slot function to memoize current rendering instance\r\n * @private compiler helper\r\n */\r\nfunction withCtx(fn, ctx = currentRenderingInstance, isNonScopedSlot // false only\r\n) {\r\n if (!ctx)\r\n return fn;\r\n // already normalized\r\n if (fn._n) {\r\n return fn;\r\n }\r\n const renderFnWithContext = (...args) => {\r\n // If a user calls a compiled slot inside a template expression (#1745), it\r\n // can mess up block tracking, so by default we disable block tracking and\r\n // force bail out when invoking a compiled slot (indicated by the ._d flag).\r\n // This isn't necessary if rendering a compiled ``, so we flip the\r\n // ._d flag off when invoking the wrapped fn inside `renderSlot`.\r\n if (renderFnWithContext._d) {\r\n setBlockTracking(-1);\r\n }\r\n const prevInstance = setCurrentRenderingInstance(ctx);\r\n const res = fn(...args);\r\n setCurrentRenderingInstance(prevInstance);\r\n if (renderFnWithContext._d) {\r\n setBlockTracking(1);\r\n }\r\n if ((process.env.NODE_ENV !== 'production') || __VUE_PROD_DEVTOOLS__) {\r\n devtoolsComponentUpdated(ctx);\r\n }\r\n return res;\r\n };\r\n // mark normalized to avoid duplicated wrapping\r\n renderFnWithContext._n = true;\r\n // mark this as compiled by default\r\n // this is used in vnode.ts -> normalizeChildren() to set the slot\r\n // rendering flag.\r\n renderFnWithContext._c = true;\r\n // disable block tracking by default\r\n renderFnWithContext._d = true;\r\n return renderFnWithContext;\r\n}\n\n/**\r\n * dev only flag to track whether $attrs was used during render.\r\n * If $attrs was used during render then the warning for failed attrs\r\n * fallthrough can be suppressed.\r\n */\r\nlet accessedAttrs = false;\r\nfunction markAttrsAccessed() {\r\n accessedAttrs = true;\r\n}\r\nfunction renderComponentRoot(instance) {\r\n const { type: Component, vnode, proxy, withProxy, props, propsOptions: [propsOptions], slots, attrs, emit, render, renderCache, data, setupState, ctx, inheritAttrs } = instance;\r\n let result;\r\n let fallthroughAttrs;\r\n const prev = setCurrentRenderingInstance(instance);\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n accessedAttrs = false;\r\n }\r\n try {\r\n if (vnode.shapeFlag & 4 /* STATEFUL_COMPONENT */) {\r\n // withProxy is a proxy with a different `has` trap only for\r\n // runtime-compiled render functions using `with` block.\r\n const proxyToUse = withProxy || proxy;\r\n result = normalizeVNode(render.call(proxyToUse, proxyToUse, renderCache, props, setupState, data, ctx));\r\n fallthroughAttrs = attrs;\r\n }\r\n else {\r\n // functional\r\n const render = Component;\r\n // in dev, mark attrs accessed if optional props (attrs === props)\r\n if ((process.env.NODE_ENV !== 'production') && attrs === props) {\r\n markAttrsAccessed();\r\n }\r\n result = normalizeVNode(render.length > 1\r\n ? render(props, (process.env.NODE_ENV !== 'production')\r\n ? {\r\n get attrs() {\r\n markAttrsAccessed();\r\n return attrs;\r\n },\r\n slots,\r\n emit\r\n }\r\n : { attrs, slots, emit })\r\n : render(props, null /* we know it doesn't need it */));\r\n fallthroughAttrs = Component.props\r\n ? attrs\r\n : getFunctionalFallthrough(attrs);\r\n }\r\n }\r\n catch (err) {\r\n blockStack.length = 0;\r\n handleError(err, instance, 1 /* RENDER_FUNCTION */);\r\n result = createVNode(Comment);\r\n }\r\n // attr merging\r\n // in dev mode, comments are preserved, and it's possible for a template\r\n // to have comments along side the root element which makes it a fragment\r\n let root = result;\r\n let setRoot = undefined;\r\n if ((process.env.NODE_ENV !== 'production') &&\r\n result.patchFlag > 0 &&\r\n result.patchFlag & 2048 /* DEV_ROOT_FRAGMENT */) {\r\n [root, setRoot] = getChildRoot(result);\r\n }\r\n if (fallthroughAttrs && inheritAttrs !== false) {\r\n const keys = Object.keys(fallthroughAttrs);\r\n const { shapeFlag } = root;\r\n if (keys.length) {\r\n if (shapeFlag & (1 /* ELEMENT */ | 6 /* COMPONENT */)) {\r\n if (propsOptions && keys.some(isModelListener)) {\r\n // If a v-model listener (onUpdate:xxx) has a corresponding declared\r\n // prop, it indicates this component expects to handle v-model and\r\n // it should not fallthrough.\r\n // related: #1543, #1643, #1989\r\n fallthroughAttrs = filterModelListeners(fallthroughAttrs, propsOptions);\r\n }\r\n root = cloneVNode(root, fallthroughAttrs);\r\n }\r\n else if ((process.env.NODE_ENV !== 'production') && !accessedAttrs && root.type !== Comment) {\r\n const allAttrs = Object.keys(attrs);\r\n const eventAttrs = [];\r\n const extraAttrs = [];\r\n for (let i = 0, l = allAttrs.length; i < l; i++) {\r\n const key = allAttrs[i];\r\n if (isOn(key)) {\r\n // ignore v-model handlers when they fail to fallthrough\r\n if (!isModelListener(key)) {\r\n // remove `on`, lowercase first letter to reflect event casing\r\n // accurately\r\n eventAttrs.push(key[2].toLowerCase() + key.slice(3));\r\n }\r\n }\r\n else {\r\n extraAttrs.push(key);\r\n }\r\n }\r\n if (extraAttrs.length) {\r\n warn(`Extraneous non-props attributes (` +\r\n `${extraAttrs.join(', ')}) ` +\r\n `were passed to component but could not be automatically inherited ` +\r\n `because component renders fragment or text root nodes.`);\r\n }\r\n if (eventAttrs.length) {\r\n warn(`Extraneous non-emits event listeners (` +\r\n `${eventAttrs.join(', ')}) ` +\r\n `were passed to component but could not be automatically inherited ` +\r\n `because component renders fragment or text root nodes. ` +\r\n `If the listener is intended to be a component custom event listener only, ` +\r\n `declare it using the \"emits\" option.`);\r\n }\r\n }\r\n }\r\n }\r\n // inherit directives\r\n if (vnode.dirs) {\r\n if ((process.env.NODE_ENV !== 'production') && !isElementRoot(root)) {\r\n warn(`Runtime directive used on component with non-element root node. ` +\r\n `The directives will not function as intended.`);\r\n }\r\n // clone before mutating since the root may be a hoisted vnode\r\n root = cloneVNode(root);\r\n root.dirs = root.dirs ? root.dirs.concat(vnode.dirs) : vnode.dirs;\r\n }\r\n // inherit transition data\r\n if (vnode.transition) {\r\n if ((process.env.NODE_ENV !== 'production') && !isElementRoot(root)) {\r\n warn(`Component inside renders non-element root node ` +\r\n `that cannot be animated.`);\r\n }\r\n root.transition = vnode.transition;\r\n }\r\n if ((process.env.NODE_ENV !== 'production') && setRoot) {\r\n setRoot(root);\r\n }\r\n else {\r\n result = root;\r\n }\r\n setCurrentRenderingInstance(prev);\r\n return result;\r\n}\r\n/**\r\n * dev only\r\n * In dev mode, template root level comments are rendered, which turns the\r\n * template into a fragment root, but we need to locate the single element\r\n * root for attrs and scope id processing.\r\n */\r\nconst getChildRoot = (vnode) => {\r\n const rawChildren = vnode.children;\r\n const dynamicChildren = vnode.dynamicChildren;\r\n const childRoot = filterSingleRoot(rawChildren);\r\n if (!childRoot) {\r\n return [vnode, undefined];\r\n }\r\n const index = rawChildren.indexOf(childRoot);\r\n const dynamicIndex = dynamicChildren ? dynamicChildren.indexOf(childRoot) : -1;\r\n const setRoot = (updatedRoot) => {\r\n rawChildren[index] = updatedRoot;\r\n if (dynamicChildren) {\r\n if (dynamicIndex > -1) {\r\n dynamicChildren[dynamicIndex] = updatedRoot;\r\n }\r\n else if (updatedRoot.patchFlag > 0) {\r\n vnode.dynamicChildren = [...dynamicChildren, updatedRoot];\r\n }\r\n }\r\n };\r\n return [normalizeVNode(childRoot), setRoot];\r\n};\r\nfunction filterSingleRoot(children) {\r\n let singleRoot;\r\n for (let i = 0; i < children.length; i++) {\r\n const child = children[i];\r\n if (isVNode(child)) {\r\n // ignore user comment\r\n if (child.type !== Comment || child.children === 'v-if') {\r\n if (singleRoot) {\r\n // has more than 1 non-comment child, return now\r\n return;\r\n }\r\n else {\r\n singleRoot = child;\r\n }\r\n }\r\n }\r\n else {\r\n return;\r\n }\r\n }\r\n return singleRoot;\r\n}\r\nconst getFunctionalFallthrough = (attrs) => {\r\n let res;\r\n for (const key in attrs) {\r\n if (key === 'class' || key === 'style' || isOn(key)) {\r\n (res || (res = {}))[key] = attrs[key];\r\n }\r\n }\r\n return res;\r\n};\r\nconst filterModelListeners = (attrs, props) => {\r\n const res = {};\r\n for (const key in attrs) {\r\n if (!isModelListener(key) || !(key.slice(9) in props)) {\r\n res[key] = attrs[key];\r\n }\r\n }\r\n return res;\r\n};\r\nconst isElementRoot = (vnode) => {\r\n return (vnode.shapeFlag & (6 /* COMPONENT */ | 1 /* ELEMENT */) ||\r\n vnode.type === Comment // potential v-if branch switch\r\n );\r\n};\r\nfunction shouldUpdateComponent(prevVNode, nextVNode, optimized) {\r\n const { props: prevProps, children: prevChildren, component } = prevVNode;\r\n const { props: nextProps, children: nextChildren, patchFlag } = nextVNode;\r\n const emits = component.emitsOptions;\r\n // Parent component's render function was hot-updated. Since this may have\r\n // caused the child component's slots content to have changed, we need to\r\n // force the child to update as well.\r\n if ((process.env.NODE_ENV !== 'production') && (prevChildren || nextChildren) && isHmrUpdating) {\r\n return true;\r\n }\r\n // force child update for runtime directive or transition on component vnode.\r\n if (nextVNode.dirs || nextVNode.transition) {\r\n return true;\r\n }\r\n if (optimized && patchFlag >= 0) {\r\n if (patchFlag & 1024 /* DYNAMIC_SLOTS */) {\r\n // slot content that references values that might have changed,\r\n // e.g. in a v-for\r\n return true;\r\n }\r\n if (patchFlag & 16 /* FULL_PROPS */) {\r\n if (!prevProps) {\r\n return !!nextProps;\r\n }\r\n // presence of this flag indicates props are always non-null\r\n return hasPropsChanged(prevProps, nextProps, emits);\r\n }\r\n else if (patchFlag & 8 /* PROPS */) {\r\n const dynamicProps = nextVNode.dynamicProps;\r\n for (let i = 0; i < dynamicProps.length; i++) {\r\n const key = dynamicProps[i];\r\n if (nextProps[key] !== prevProps[key] &&\r\n !isEmitListener(emits, key)) {\r\n return true;\r\n }\r\n }\r\n }\r\n }\r\n else {\r\n // this path is only taken by manually written render functions\r\n // so presence of any children leads to a forced update\r\n if (prevChildren || nextChildren) {\r\n if (!nextChildren || !nextChildren.$stable) {\r\n return true;\r\n }\r\n }\r\n if (prevProps === nextProps) {\r\n return false;\r\n }\r\n if (!prevProps) {\r\n return !!nextProps;\r\n }\r\n if (!nextProps) {\r\n return true;\r\n }\r\n return hasPropsChanged(prevProps, nextProps, emits);\r\n }\r\n return false;\r\n}\r\nfunction hasPropsChanged(prevProps, nextProps, emitsOptions) {\r\n const nextKeys = Object.keys(nextProps);\r\n if (nextKeys.length !== Object.keys(prevProps).length) {\r\n return true;\r\n }\r\n for (let i = 0; i < nextKeys.length; i++) {\r\n const key = nextKeys[i];\r\n if (nextProps[key] !== prevProps[key] &&\r\n !isEmitListener(emitsOptions, key)) {\r\n return true;\r\n }\r\n }\r\n return false;\r\n}\r\nfunction updateHOCHostEl({ vnode, parent }, el // HostNode\r\n) {\r\n while (parent && parent.subTree === vnode) {\r\n (vnode = parent.vnode).el = el;\r\n parent = parent.parent;\r\n }\r\n}\n\nconst isSuspense = (type) => type.__isSuspense;\r\n// Suspense exposes a component-like API, and is treated like a component\r\n// in the compiler, but internally it's a special built-in type that hooks\r\n// directly into the renderer.\r\nconst SuspenseImpl = {\r\n name: 'Suspense',\r\n // In order to make Suspense tree-shakable, we need to avoid importing it\r\n // directly in the renderer. The renderer checks for the __isSuspense flag\r\n // on a vnode's type and calls the `process` method, passing in renderer\r\n // internals.\r\n __isSuspense: true,\r\n process(n1, n2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized, \r\n // platform-specific impl passed from renderer\r\n rendererInternals) {\r\n if (n1 == null) {\r\n mountSuspense(n2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized, rendererInternals);\r\n }\r\n else {\r\n patchSuspense(n1, n2, container, anchor, parentComponent, isSVG, slotScopeIds, optimized, rendererInternals);\r\n }\r\n },\r\n hydrate: hydrateSuspense,\r\n create: createSuspenseBoundary,\r\n normalize: normalizeSuspenseChildren\r\n};\r\n// Force-casted public typing for h and TSX props inference\r\nconst Suspense = (SuspenseImpl );\r\nfunction triggerEvent(vnode, name) {\r\n const eventListener = vnode.props && vnode.props[name];\r\n if (isFunction(eventListener)) {\r\n eventListener();\r\n }\r\n}\r\nfunction mountSuspense(vnode, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized, rendererInternals) {\r\n const { p: patch, o: { createElement } } = rendererInternals;\r\n const hiddenContainer = createElement('div');\r\n const suspense = (vnode.suspense = createSuspenseBoundary(vnode, parentSuspense, parentComponent, container, hiddenContainer, anchor, isSVG, slotScopeIds, optimized, rendererInternals));\r\n // start mounting the content subtree in an off-dom container\r\n patch(null, (suspense.pendingBranch = vnode.ssContent), hiddenContainer, null, parentComponent, suspense, isSVG, slotScopeIds);\r\n // now check if we have encountered any async deps\r\n if (suspense.deps > 0) {\r\n // has async\r\n // invoke @fallback event\r\n triggerEvent(vnode, 'onPending');\r\n triggerEvent(vnode, 'onFallback');\r\n // mount the fallback tree\r\n patch(null, vnode.ssFallback, container, anchor, parentComponent, null, // fallback tree will not have suspense context\r\n isSVG, slotScopeIds);\r\n setActiveBranch(suspense, vnode.ssFallback);\r\n }\r\n else {\r\n // Suspense has no async deps. Just resolve.\r\n suspense.resolve();\r\n }\r\n}\r\nfunction patchSuspense(n1, n2, container, anchor, parentComponent, isSVG, slotScopeIds, optimized, { p: patch, um: unmount, o: { createElement } }) {\r\n const suspense = (n2.suspense = n1.suspense);\r\n suspense.vnode = n2;\r\n n2.el = n1.el;\r\n const newBranch = n2.ssContent;\r\n const newFallback = n2.ssFallback;\r\n const { activeBranch, pendingBranch, isInFallback, isHydrating } = suspense;\r\n if (pendingBranch) {\r\n suspense.pendingBranch = newBranch;\r\n if (isSameVNodeType(newBranch, pendingBranch)) {\r\n // same root type but content may have changed.\r\n patch(pendingBranch, newBranch, suspense.hiddenContainer, null, parentComponent, suspense, isSVG, slotScopeIds, optimized);\r\n if (suspense.deps <= 0) {\r\n suspense.resolve();\r\n }\r\n else if (isInFallback) {\r\n patch(activeBranch, newFallback, container, anchor, parentComponent, null, // fallback tree will not have suspense context\r\n isSVG, slotScopeIds, optimized);\r\n setActiveBranch(suspense, newFallback);\r\n }\r\n }\r\n else {\r\n // toggled before pending tree is resolved\r\n suspense.pendingId++;\r\n if (isHydrating) {\r\n // if toggled before hydration is finished, the current DOM tree is\r\n // no longer valid. set it as the active branch so it will be unmounted\r\n // when resolved\r\n suspense.isHydrating = false;\r\n suspense.activeBranch = pendingBranch;\r\n }\r\n else {\r\n unmount(pendingBranch, parentComponent, suspense);\r\n }\r\n // increment pending ID. this is used to invalidate async callbacks\r\n // reset suspense state\r\n suspense.deps = 0;\r\n // discard effects from pending branch\r\n suspense.effects.length = 0;\r\n // discard previous container\r\n suspense.hiddenContainer = createElement('div');\r\n if (isInFallback) {\r\n // already in fallback state\r\n patch(null, newBranch, suspense.hiddenContainer, null, parentComponent, suspense, isSVG, slotScopeIds, optimized);\r\n if (suspense.deps <= 0) {\r\n suspense.resolve();\r\n }\r\n else {\r\n patch(activeBranch, newFallback, container, anchor, parentComponent, null, // fallback tree will not have suspense context\r\n isSVG, slotScopeIds, optimized);\r\n setActiveBranch(suspense, newFallback);\r\n }\r\n }\r\n else if (activeBranch && isSameVNodeType(newBranch, activeBranch)) {\r\n // toggled \"back\" to current active branch\r\n patch(activeBranch, newBranch, container, anchor, parentComponent, suspense, isSVG, slotScopeIds, optimized);\r\n // force resolve\r\n suspense.resolve(true);\r\n }\r\n else {\r\n // switched to a 3rd branch\r\n patch(null, newBranch, suspense.hiddenContainer, null, parentComponent, suspense, isSVG, slotScopeIds, optimized);\r\n if (suspense.deps <= 0) {\r\n suspense.resolve();\r\n }\r\n }\r\n }\r\n }\r\n else {\r\n if (activeBranch && isSameVNodeType(newBranch, activeBranch)) {\r\n // root did not change, just normal patch\r\n patch(activeBranch, newBranch, container, anchor, parentComponent, suspense, isSVG, slotScopeIds, optimized);\r\n setActiveBranch(suspense, newBranch);\r\n }\r\n else {\r\n // root node toggled\r\n // invoke @pending event\r\n triggerEvent(n2, 'onPending');\r\n // mount pending branch in off-dom container\r\n suspense.pendingBranch = newBranch;\r\n suspense.pendingId++;\r\n patch(null, newBranch, suspense.hiddenContainer, null, parentComponent, suspense, isSVG, slotScopeIds, optimized);\r\n if (suspense.deps <= 0) {\r\n // incoming branch has no async deps, resolve now.\r\n suspense.resolve();\r\n }\r\n else {\r\n const { timeout, pendingId } = suspense;\r\n if (timeout > 0) {\r\n setTimeout(() => {\r\n if (suspense.pendingId === pendingId) {\r\n suspense.fallback(newFallback);\r\n }\r\n }, timeout);\r\n }\r\n else if (timeout === 0) {\r\n suspense.fallback(newFallback);\r\n }\r\n }\r\n }\r\n }\r\n}\r\nlet hasWarned = false;\r\nfunction createSuspenseBoundary(vnode, parent, parentComponent, container, hiddenContainer, anchor, isSVG, slotScopeIds, optimized, rendererInternals, isHydrating = false) {\r\n /* istanbul ignore if */\r\n if ((process.env.NODE_ENV !== 'production') && !false && !hasWarned) {\r\n hasWarned = true;\r\n // @ts-ignore `console.info` cannot be null error\r\n console[console.info ? 'info' : 'log'](` is an experimental feature and its API will likely change.`);\r\n }\r\n const { p: patch, m: move, um: unmount, n: next, o: { parentNode, remove } } = rendererInternals;\r\n const timeout = toNumber(vnode.props && vnode.props.timeout);\r\n const suspense = {\r\n vnode,\r\n parent,\r\n parentComponent,\r\n isSVG,\r\n container,\r\n hiddenContainer,\r\n anchor,\r\n deps: 0,\r\n pendingId: 0,\r\n timeout: typeof timeout === 'number' ? timeout : -1,\r\n activeBranch: null,\r\n pendingBranch: null,\r\n isInFallback: true,\r\n isHydrating,\r\n isUnmounted: false,\r\n effects: [],\r\n resolve(resume = false) {\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n if (!resume && !suspense.pendingBranch) {\r\n throw new Error(`suspense.resolve() is called without a pending branch.`);\r\n }\r\n if (suspense.isUnmounted) {\r\n throw new Error(`suspense.resolve() is called on an already unmounted suspense boundary.`);\r\n }\r\n }\r\n const { vnode, activeBranch, pendingBranch, pendingId, effects, parentComponent, container } = suspense;\r\n if (suspense.isHydrating) {\r\n suspense.isHydrating = false;\r\n }\r\n else if (!resume) {\r\n const delayEnter = activeBranch &&\r\n pendingBranch.transition &&\r\n pendingBranch.transition.mode === 'out-in';\r\n if (delayEnter) {\r\n activeBranch.transition.afterLeave = () => {\r\n if (pendingId === suspense.pendingId) {\r\n move(pendingBranch, container, anchor, 0 /* ENTER */);\r\n }\r\n };\r\n }\r\n // this is initial anchor on mount\r\n let { anchor } = suspense;\r\n // unmount current active tree\r\n if (activeBranch) {\r\n // if the fallback tree was mounted, it may have been moved\r\n // as part of a parent suspense. get the latest anchor for insertion\r\n anchor = next(activeBranch);\r\n unmount(activeBranch, parentComponent, suspense, true);\r\n }\r\n if (!delayEnter) {\r\n // move content from off-dom container to actual container\r\n move(pendingBranch, container, anchor, 0 /* ENTER */);\r\n }\r\n }\r\n setActiveBranch(suspense, pendingBranch);\r\n suspense.pendingBranch = null;\r\n suspense.isInFallback = false;\r\n // flush buffered effects\r\n // check if there is a pending parent suspense\r\n let parent = suspense.parent;\r\n let hasUnresolvedAncestor = false;\r\n while (parent) {\r\n if (parent.pendingBranch) {\r\n // found a pending parent suspense, merge buffered post jobs\r\n // into that parent\r\n parent.effects.push(...effects);\r\n hasUnresolvedAncestor = true;\r\n break;\r\n }\r\n parent = parent.parent;\r\n }\r\n // no pending parent suspense, flush all jobs\r\n if (!hasUnresolvedAncestor) {\r\n queuePostFlushCb(effects);\r\n }\r\n suspense.effects = [];\r\n // invoke @resolve event\r\n triggerEvent(vnode, 'onResolve');\r\n },\r\n fallback(fallbackVNode) {\r\n if (!suspense.pendingBranch) {\r\n return;\r\n }\r\n const { vnode, activeBranch, parentComponent, container, isSVG } = suspense;\r\n // invoke @fallback event\r\n triggerEvent(vnode, 'onFallback');\r\n const anchor = next(activeBranch);\r\n const mountFallback = () => {\r\n if (!suspense.isInFallback) {\r\n return;\r\n }\r\n // mount the fallback tree\r\n patch(null, fallbackVNode, container, anchor, parentComponent, null, // fallback tree will not have suspense context\r\n isSVG, slotScopeIds, optimized);\r\n setActiveBranch(suspense, fallbackVNode);\r\n };\r\n const delayEnter = fallbackVNode.transition && fallbackVNode.transition.mode === 'out-in';\r\n if (delayEnter) {\r\n activeBranch.transition.afterLeave = mountFallback;\r\n }\r\n suspense.isInFallback = true;\r\n // unmount current active branch\r\n unmount(activeBranch, parentComponent, null, // no suspense so unmount hooks fire now\r\n true // shouldRemove\r\n );\r\n if (!delayEnter) {\r\n mountFallback();\r\n }\r\n },\r\n move(container, anchor, type) {\r\n suspense.activeBranch &&\r\n move(suspense.activeBranch, container, anchor, type);\r\n suspense.container = container;\r\n },\r\n next() {\r\n return suspense.activeBranch && next(suspense.activeBranch);\r\n },\r\n registerDep(instance, setupRenderEffect) {\r\n const isInPendingSuspense = !!suspense.pendingBranch;\r\n if (isInPendingSuspense) {\r\n suspense.deps++;\r\n }\r\n const hydratedEl = instance.vnode.el;\r\n instance\r\n .asyncDep.catch(err => {\r\n handleError(err, instance, 0 /* SETUP_FUNCTION */);\r\n })\r\n .then(asyncSetupResult => {\r\n // retry when the setup() promise resolves.\r\n // component may have been unmounted before resolve.\r\n if (instance.isUnmounted ||\r\n suspense.isUnmounted ||\r\n suspense.pendingId !== instance.suspenseId) {\r\n return;\r\n }\r\n // retry from this component\r\n instance.asyncResolved = true;\r\n const { vnode } = instance;\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n pushWarningContext(vnode);\r\n }\r\n handleSetupResult(instance, asyncSetupResult, false);\r\n if (hydratedEl) {\r\n // vnode may have been replaced if an update happened before the\r\n // async dep is resolved.\r\n vnode.el = hydratedEl;\r\n }\r\n const placeholder = !hydratedEl && instance.subTree.el;\r\n setupRenderEffect(instance, vnode, \r\n // component may have been moved before resolve.\r\n // if this is not a hydration, instance.subTree will be the comment\r\n // placeholder.\r\n parentNode(hydratedEl || instance.subTree.el), \r\n // anchor will not be used if this is hydration, so only need to\r\n // consider the comment placeholder case.\r\n hydratedEl ? null : next(instance.subTree), suspense, isSVG, optimized);\r\n if (placeholder) {\r\n remove(placeholder);\r\n }\r\n updateHOCHostEl(instance, vnode.el);\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n popWarningContext();\r\n }\r\n // only decrease deps count if suspense is not already resolved\r\n if (isInPendingSuspense && --suspense.deps === 0) {\r\n suspense.resolve();\r\n }\r\n });\r\n },\r\n unmount(parentSuspense, doRemove) {\r\n suspense.isUnmounted = true;\r\n if (suspense.activeBranch) {\r\n unmount(suspense.activeBranch, parentComponent, parentSuspense, doRemove);\r\n }\r\n if (suspense.pendingBranch) {\r\n unmount(suspense.pendingBranch, parentComponent, parentSuspense, doRemove);\r\n }\r\n }\r\n };\r\n return suspense;\r\n}\r\nfunction hydrateSuspense(node, vnode, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized, rendererInternals, hydrateNode) {\r\n /* eslint-disable no-restricted-globals */\r\n const suspense = (vnode.suspense = createSuspenseBoundary(vnode, parentSuspense, parentComponent, node.parentNode, document.createElement('div'), null, isSVG, slotScopeIds, optimized, rendererInternals, true /* hydrating */));\r\n // there are two possible scenarios for server-rendered suspense:\r\n // - success: ssr content should be fully resolved\r\n // - failure: ssr content should be the fallback branch.\r\n // however, on the client we don't really know if it has failed or not\r\n // attempt to hydrate the DOM assuming it has succeeded, but we still\r\n // need to construct a suspense boundary first\r\n const result = hydrateNode(node, (suspense.pendingBranch = vnode.ssContent), parentComponent, suspense, slotScopeIds, optimized);\r\n if (suspense.deps === 0) {\r\n suspense.resolve();\r\n }\r\n return result;\r\n /* eslint-enable no-restricted-globals */\r\n}\r\nfunction normalizeSuspenseChildren(vnode) {\r\n const { shapeFlag, children } = vnode;\r\n const isSlotChildren = shapeFlag & 32 /* SLOTS_CHILDREN */;\r\n vnode.ssContent = normalizeSuspenseSlot(isSlotChildren ? children.default : children);\r\n vnode.ssFallback = isSlotChildren\r\n ? normalizeSuspenseSlot(children.fallback)\r\n : createVNode(Comment);\r\n}\r\nfunction normalizeSuspenseSlot(s) {\r\n let block;\r\n if (isFunction(s)) {\r\n const trackBlock = isBlockTreeEnabled && s._c;\r\n if (trackBlock) {\r\n // disableTracking: false\r\n // allow block tracking for compiled slots\r\n // (see ./componentRenderContext.ts)\r\n s._d = false;\r\n openBlock();\r\n }\r\n s = s();\r\n if (trackBlock) {\r\n s._d = true;\r\n block = currentBlock;\r\n closeBlock();\r\n }\r\n }\r\n if (isArray(s)) {\r\n const singleChild = filterSingleRoot(s);\r\n if ((process.env.NODE_ENV !== 'production') && !singleChild) {\r\n warn(` slots expect a single root node.`);\r\n }\r\n s = singleChild;\r\n }\r\n s = normalizeVNode(s);\r\n if (block && !s.dynamicChildren) {\r\n s.dynamicChildren = block.filter(c => c !== s);\r\n }\r\n return s;\r\n}\r\nfunction queueEffectWithSuspense(fn, suspense) {\r\n if (suspense && suspense.pendingBranch) {\r\n if (isArray(fn)) {\r\n suspense.effects.push(...fn);\r\n }\r\n else {\r\n suspense.effects.push(fn);\r\n }\r\n }\r\n else {\r\n queuePostFlushCb(fn);\r\n }\r\n}\r\nfunction setActiveBranch(suspense, branch) {\r\n suspense.activeBranch = branch;\r\n const { vnode, parentComponent } = suspense;\r\n const el = (vnode.el = branch.el);\r\n // in case suspense is the root node of a component,\r\n // recursively update the HOC el\r\n if (parentComponent && parentComponent.subTree === vnode) {\r\n parentComponent.vnode.el = el;\r\n updateHOCHostEl(parentComponent, el);\r\n }\r\n}\n\nfunction provide(key, value) {\r\n if (!currentInstance) {\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n warn(`provide() can only be used inside setup().`);\r\n }\r\n }\r\n else {\r\n let provides = currentInstance.provides;\r\n // by default an instance inherits its parent's provides object\r\n // but when it needs to provide values of its own, it creates its\r\n // own provides object using parent provides object as prototype.\r\n // this way in `inject` we can simply look up injections from direct\r\n // parent and let the prototype chain do the work.\r\n const parentProvides = currentInstance.parent && currentInstance.parent.provides;\r\n if (parentProvides === provides) {\r\n provides = currentInstance.provides = Object.create(parentProvides);\r\n }\r\n // TS doesn't allow symbol as index type\r\n provides[key] = value;\r\n }\r\n}\r\nfunction inject(key, defaultValue, treatDefaultAsFactory = false) {\r\n // fallback to `currentRenderingInstance` so that this can be called in\r\n // a functional component\r\n const instance = currentInstance || currentRenderingInstance;\r\n if (instance) {\r\n // #2400\r\n // to support `app.use` plugins,\r\n // fallback to appContext's `provides` if the instance is at root\r\n const provides = instance.parent == null\r\n ? instance.vnode.appContext && instance.vnode.appContext.provides\r\n : instance.parent.provides;\r\n if (provides && key in provides) {\r\n // TS doesn't allow symbol as index type\r\n return provides[key];\r\n }\r\n else if (arguments.length > 1) {\r\n return treatDefaultAsFactory && isFunction(defaultValue)\r\n ? defaultValue.call(instance.proxy)\r\n : defaultValue;\r\n }\r\n else if ((process.env.NODE_ENV !== 'production')) {\r\n warn(`injection \"${String(key)}\" not found.`);\r\n }\r\n }\r\n else if ((process.env.NODE_ENV !== 'production')) {\r\n warn(`inject() can only be used inside setup() or functional components.`);\r\n }\r\n}\n\n// Simple effect.\r\nfunction watchEffect(effect, options) {\r\n return doWatch(effect, null, options);\r\n}\r\nfunction watchPostEffect(effect, options) {\r\n return doWatch(effect, null, ((process.env.NODE_ENV !== 'production')\r\n ? Object.assign(Object.assign({}, options), { flush: 'post' }) : { flush: 'post' }));\r\n}\r\nfunction watchSyncEffect(effect, options) {\r\n return doWatch(effect, null, ((process.env.NODE_ENV !== 'production')\r\n ? Object.assign(Object.assign({}, options), { flush: 'sync' }) : { flush: 'sync' }));\r\n}\r\n// initial value for watchers to trigger on undefined initial values\r\nconst INITIAL_WATCHER_VALUE = {};\r\n// implementation\r\nfunction watch(source, cb, options) {\r\n if ((process.env.NODE_ENV !== 'production') && !isFunction(cb)) {\r\n warn(`\\`watch(fn, options?)\\` signature has been moved to a separate API. ` +\r\n `Use \\`watchEffect(fn, options?)\\` instead. \\`watch\\` now only ` +\r\n `supports \\`watch(source, cb, options?) signature.`);\r\n }\r\n return doWatch(source, cb, options);\r\n}\r\nfunction doWatch(source, cb, { immediate, deep, flush, onTrack, onTrigger } = EMPTY_OBJ) {\r\n if ((process.env.NODE_ENV !== 'production') && !cb) {\r\n if (immediate !== undefined) {\r\n warn(`watch() \"immediate\" option is only respected when using the ` +\r\n `watch(source, callback, options?) signature.`);\r\n }\r\n if (deep !== undefined) {\r\n warn(`watch() \"deep\" option is only respected when using the ` +\r\n `watch(source, callback, options?) signature.`);\r\n }\r\n }\r\n const warnInvalidSource = (s) => {\r\n warn(`Invalid watch source: `, s, `A watch source can only be a getter/effect function, a ref, ` +\r\n `a reactive object, or an array of these types.`);\r\n };\r\n const instance = currentInstance;\r\n let getter;\r\n let forceTrigger = false;\r\n let isMultiSource = false;\r\n if (isRef(source)) {\r\n getter = () => source.value;\r\n forceTrigger = isShallow$1(source);\r\n }\r\n else if (isReactive(source)) {\r\n getter = () => source;\r\n deep = true;\r\n }\r\n else if (isArray(source)) {\r\n isMultiSource = true;\r\n forceTrigger = source.some(s => isReactive(s) || isShallow$1(s));\r\n getter = () => source.map(s => {\r\n if (isRef(s)) {\r\n return s.value;\r\n }\r\n else if (isReactive(s)) {\r\n return traverse(s);\r\n }\r\n else if (isFunction(s)) {\r\n return callWithErrorHandling(s, instance, 2 /* WATCH_GETTER */);\r\n }\r\n else {\r\n (process.env.NODE_ENV !== 'production') && warnInvalidSource(s);\r\n }\r\n });\r\n }\r\n else if (isFunction(source)) {\r\n if (cb) {\r\n // getter with cb\r\n getter = () => callWithErrorHandling(source, instance, 2 /* WATCH_GETTER */);\r\n }\r\n else {\r\n // no cb -> simple effect\r\n getter = () => {\r\n if (instance && instance.isUnmounted) {\r\n return;\r\n }\r\n if (cleanup) {\r\n cleanup();\r\n }\r\n return callWithAsyncErrorHandling(source, instance, 3 /* WATCH_CALLBACK */, [onCleanup]);\r\n };\r\n }\r\n }\r\n else {\r\n getter = NOOP;\r\n (process.env.NODE_ENV !== 'production') && warnInvalidSource(source);\r\n }\r\n if (cb && deep) {\r\n const baseGetter = getter;\r\n getter = () => traverse(baseGetter());\r\n }\r\n let cleanup;\r\n let onCleanup = (fn) => {\r\n cleanup = effect.onStop = () => {\r\n callWithErrorHandling(fn, instance, 4 /* WATCH_CLEANUP */);\r\n };\r\n };\r\n // in SSR there is no need to setup an actual effect, and it should be noop\r\n // unless it's eager\r\n if (isInSSRComponentSetup) {\r\n // we will also not call the invalidate callback (+ runner is not set up)\r\n onCleanup = NOOP;\r\n if (!cb) {\r\n getter();\r\n }\r\n else if (immediate) {\r\n callWithAsyncErrorHandling(cb, instance, 3 /* WATCH_CALLBACK */, [\r\n getter(),\r\n isMultiSource ? [] : undefined,\r\n onCleanup\r\n ]);\r\n }\r\n return NOOP;\r\n }\r\n let oldValue = isMultiSource ? [] : INITIAL_WATCHER_VALUE;\r\n const job = () => {\r\n if (!effect.active) {\r\n return;\r\n }\r\n if (cb) {\r\n // watch(source, cb)\r\n const newValue = effect.run();\r\n if (deep ||\r\n forceTrigger ||\r\n (isMultiSource\r\n ? newValue.some((v, i) => hasChanged(v, oldValue[i]))\r\n : hasChanged(newValue, oldValue)) ||\r\n (false )) {\r\n // cleanup before running cb again\r\n if (cleanup) {\r\n cleanup();\r\n }\r\n callWithAsyncErrorHandling(cb, instance, 3 /* WATCH_CALLBACK */, [\r\n newValue,\r\n // pass undefined as the old value when it's changed for the first time\r\n oldValue === INITIAL_WATCHER_VALUE ? undefined : oldValue,\r\n onCleanup\r\n ]);\r\n oldValue = newValue;\r\n }\r\n }\r\n else {\r\n // watchEffect\r\n effect.run();\r\n }\r\n };\r\n // important: mark the job as a watcher callback so that scheduler knows\r\n // it is allowed to self-trigger (#1727)\r\n job.allowRecurse = !!cb;\r\n let scheduler;\r\n if (flush === 'sync') {\r\n scheduler = job; // the scheduler function gets called directly\r\n }\r\n else if (flush === 'post') {\r\n scheduler = () => queuePostRenderEffect(job, instance && instance.suspense);\r\n }\r\n else {\r\n // default: 'pre'\r\n scheduler = () => queuePreFlushCb(job);\r\n }\r\n const effect = new ReactiveEffect(getter, scheduler);\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n effect.onTrack = onTrack;\r\n effect.onTrigger = onTrigger;\r\n }\r\n // initial run\r\n if (cb) {\r\n if (immediate) {\r\n job();\r\n }\r\n else {\r\n oldValue = effect.run();\r\n }\r\n }\r\n else if (flush === 'post') {\r\n queuePostRenderEffect(effect.run.bind(effect), instance && instance.suspense);\r\n }\r\n else {\r\n effect.run();\r\n }\r\n return () => {\r\n effect.stop();\r\n if (instance && instance.scope) {\r\n remove(instance.scope.effects, effect);\r\n }\r\n };\r\n}\r\n// this.$watch\r\nfunction instanceWatch(source, value, options) {\r\n const publicThis = this.proxy;\r\n const getter = isString(source)\r\n ? source.includes('.')\r\n ? createPathGetter(publicThis, source)\r\n : () => publicThis[source]\r\n : source.bind(publicThis, publicThis);\r\n let cb;\r\n if (isFunction(value)) {\r\n cb = value;\r\n }\r\n else {\r\n cb = value.handler;\r\n options = value;\r\n }\r\n const cur = currentInstance;\r\n setCurrentInstance(this);\r\n const res = doWatch(getter, cb.bind(publicThis), options);\r\n if (cur) {\r\n setCurrentInstance(cur);\r\n }\r\n else {\r\n unsetCurrentInstance();\r\n }\r\n return res;\r\n}\r\nfunction createPathGetter(ctx, path) {\r\n const segments = path.split('.');\r\n return () => {\r\n let cur = ctx;\r\n for (let i = 0; i < segments.length && cur; i++) {\r\n cur = cur[segments[i]];\r\n }\r\n return cur;\r\n };\r\n}\r\nfunction traverse(value, seen) {\r\n if (!isObject(value) || value[\"__v_skip\" /* SKIP */]) {\r\n return value;\r\n }\r\n seen = seen || new Set();\r\n if (seen.has(value)) {\r\n return value;\r\n }\r\n seen.add(value);\r\n if (isRef(value)) {\r\n traverse(value.value, seen);\r\n }\r\n else if (isArray(value)) {\r\n for (let i = 0; i < value.length; i++) {\r\n traverse(value[i], seen);\r\n }\r\n }\r\n else if (isSet(value) || isMap(value)) {\r\n value.forEach((v) => {\r\n traverse(v, seen);\r\n });\r\n }\r\n else if (isPlainObject(value)) {\r\n for (const key in value) {\r\n traverse(value[key], seen);\r\n }\r\n }\r\n return value;\r\n}\n\nfunction useTransitionState() {\r\n const state = {\r\n isMounted: false,\r\n isLeaving: false,\r\n isUnmounting: false,\r\n leavingVNodes: new Map()\r\n };\r\n onMounted(() => {\r\n state.isMounted = true;\r\n });\r\n onBeforeUnmount(() => {\r\n state.isUnmounting = true;\r\n });\r\n return state;\r\n}\r\nconst TransitionHookValidator = [Function, Array];\r\nconst BaseTransitionImpl = {\r\n name: `BaseTransition`,\r\n props: {\r\n mode: String,\r\n appear: Boolean,\r\n persisted: Boolean,\r\n // enter\r\n onBeforeEnter: TransitionHookValidator,\r\n onEnter: TransitionHookValidator,\r\n onAfterEnter: TransitionHookValidator,\r\n onEnterCancelled: TransitionHookValidator,\r\n // leave\r\n onBeforeLeave: TransitionHookValidator,\r\n onLeave: TransitionHookValidator,\r\n onAfterLeave: TransitionHookValidator,\r\n onLeaveCancelled: TransitionHookValidator,\r\n // appear\r\n onBeforeAppear: TransitionHookValidator,\r\n onAppear: TransitionHookValidator,\r\n onAfterAppear: TransitionHookValidator,\r\n onAppearCancelled: TransitionHookValidator\r\n },\r\n setup(props, { slots }) {\r\n const instance = getCurrentInstance();\r\n const state = useTransitionState();\r\n let prevTransitionKey;\r\n return () => {\r\n const children = slots.default && getTransitionRawChildren(slots.default(), true);\r\n if (!children || !children.length) {\r\n return;\r\n }\r\n let child = children[0];\r\n if (children.length > 1) {\r\n let hasFound = false;\r\n // locate first non-comment child\r\n for (const c of children) {\r\n if (c.type !== Comment) {\r\n if ((process.env.NODE_ENV !== 'production') && hasFound) {\r\n // warn more than one non-comment child\r\n warn(' can only be used on a single element or component. ' +\r\n 'Use for lists.');\r\n break;\r\n }\r\n child = c;\r\n hasFound = true;\r\n if (!(process.env.NODE_ENV !== 'production'))\r\n break;\r\n }\r\n }\r\n }\r\n // there's no need to track reactivity for these props so use the raw\r\n // props for a bit better perf\r\n const rawProps = toRaw(props);\r\n const { mode } = rawProps;\r\n // check mode\r\n if ((process.env.NODE_ENV !== 'production') &&\r\n mode &&\r\n mode !== 'in-out' &&\r\n mode !== 'out-in' &&\r\n mode !== 'default') {\r\n warn(`invalid mode: ${mode}`);\r\n }\r\n if (state.isLeaving) {\r\n return emptyPlaceholder(child);\r\n }\r\n // in the case of , we need to\r\n // compare the type of the kept-alive children.\r\n const innerChild = getKeepAliveChild(child);\r\n if (!innerChild) {\r\n return emptyPlaceholder(child);\r\n }\r\n const enterHooks = resolveTransitionHooks(innerChild, rawProps, state, instance);\r\n setTransitionHooks(innerChild, enterHooks);\r\n const oldChild = instance.subTree;\r\n const oldInnerChild = oldChild && getKeepAliveChild(oldChild);\r\n let transitionKeyChanged = false;\r\n const { getTransitionKey } = innerChild.type;\r\n if (getTransitionKey) {\r\n const key = getTransitionKey();\r\n if (prevTransitionKey === undefined) {\r\n prevTransitionKey = key;\r\n }\r\n else if (key !== prevTransitionKey) {\r\n prevTransitionKey = key;\r\n transitionKeyChanged = true;\r\n }\r\n }\r\n // handle mode\r\n if (oldInnerChild &&\r\n oldInnerChild.type !== Comment &&\r\n (!isSameVNodeType(innerChild, oldInnerChild) || transitionKeyChanged)) {\r\n const leavingHooks = resolveTransitionHooks(oldInnerChild, rawProps, state, instance);\r\n // update old tree's hooks in case of dynamic transition\r\n setTransitionHooks(oldInnerChild, leavingHooks);\r\n // switching between different views\r\n if (mode === 'out-in') {\r\n state.isLeaving = true;\r\n // return placeholder node and queue update when leave finishes\r\n leavingHooks.afterLeave = () => {\r\n state.isLeaving = false;\r\n instance.update();\r\n };\r\n return emptyPlaceholder(child);\r\n }\r\n else if (mode === 'in-out' && innerChild.type !== Comment) {\r\n leavingHooks.delayLeave = (el, earlyRemove, delayedLeave) => {\r\n const leavingVNodesCache = getLeavingNodesForType(state, oldInnerChild);\r\n leavingVNodesCache[String(oldInnerChild.key)] = oldInnerChild;\r\n // early removal callback\r\n el._leaveCb = () => {\r\n earlyRemove();\r\n el._leaveCb = undefined;\r\n delete enterHooks.delayedLeave;\r\n };\r\n enterHooks.delayedLeave = delayedLeave;\r\n };\r\n }\r\n }\r\n return child;\r\n };\r\n }\r\n};\r\n// export the public type for h/tsx inference\r\n// also to avoid inline import() in generated d.ts files\r\nconst BaseTransition = BaseTransitionImpl;\r\nfunction getLeavingNodesForType(state, vnode) {\r\n const { leavingVNodes } = state;\r\n let leavingVNodesCache = leavingVNodes.get(vnode.type);\r\n if (!leavingVNodesCache) {\r\n leavingVNodesCache = Object.create(null);\r\n leavingVNodes.set(vnode.type, leavingVNodesCache);\r\n }\r\n return leavingVNodesCache;\r\n}\r\n// The transition hooks are attached to the vnode as vnode.transition\r\n// and will be called at appropriate timing in the renderer.\r\nfunction resolveTransitionHooks(vnode, props, state, instance) {\r\n const { appear, mode, persisted = false, onBeforeEnter, onEnter, onAfterEnter, onEnterCancelled, onBeforeLeave, onLeave, onAfterLeave, onLeaveCancelled, onBeforeAppear, onAppear, onAfterAppear, onAppearCancelled } = props;\r\n const key = String(vnode.key);\r\n const leavingVNodesCache = getLeavingNodesForType(state, vnode);\r\n const callHook = (hook, args) => {\r\n hook &&\r\n callWithAsyncErrorHandling(hook, instance, 9 /* TRANSITION_HOOK */, args);\r\n };\r\n const callAsyncHook = (hook, args) => {\r\n const done = args[1];\r\n callHook(hook, args);\r\n if (isArray(hook)) {\r\n if (hook.every(hook => hook.length <= 1))\r\n done();\r\n }\r\n else if (hook.length <= 1) {\r\n done();\r\n }\r\n };\r\n const hooks = {\r\n mode,\r\n persisted,\r\n beforeEnter(el) {\r\n let hook = onBeforeEnter;\r\n if (!state.isMounted) {\r\n if (appear) {\r\n hook = onBeforeAppear || onBeforeEnter;\r\n }\r\n else {\r\n return;\r\n }\r\n }\r\n // for same element (v-show)\r\n if (el._leaveCb) {\r\n el._leaveCb(true /* cancelled */);\r\n }\r\n // for toggled element with same key (v-if)\r\n const leavingVNode = leavingVNodesCache[key];\r\n if (leavingVNode &&\r\n isSameVNodeType(vnode, leavingVNode) &&\r\n leavingVNode.el._leaveCb) {\r\n // force early removal (not cancelled)\r\n leavingVNode.el._leaveCb();\r\n }\r\n callHook(hook, [el]);\r\n },\r\n enter(el) {\r\n let hook = onEnter;\r\n let afterHook = onAfterEnter;\r\n let cancelHook = onEnterCancelled;\r\n if (!state.isMounted) {\r\n if (appear) {\r\n hook = onAppear || onEnter;\r\n afterHook = onAfterAppear || onAfterEnter;\r\n cancelHook = onAppearCancelled || onEnterCancelled;\r\n }\r\n else {\r\n return;\r\n }\r\n }\r\n let called = false;\r\n const done = (el._enterCb = (cancelled) => {\r\n if (called)\r\n return;\r\n called = true;\r\n if (cancelled) {\r\n callHook(cancelHook, [el]);\r\n }\r\n else {\r\n callHook(afterHook, [el]);\r\n }\r\n if (hooks.delayedLeave) {\r\n hooks.delayedLeave();\r\n }\r\n el._enterCb = undefined;\r\n });\r\n if (hook) {\r\n callAsyncHook(hook, [el, done]);\r\n }\r\n else {\r\n done();\r\n }\r\n },\r\n leave(el, remove) {\r\n const key = String(vnode.key);\r\n if (el._enterCb) {\r\n el._enterCb(true /* cancelled */);\r\n }\r\n if (state.isUnmounting) {\r\n return remove();\r\n }\r\n callHook(onBeforeLeave, [el]);\r\n let called = false;\r\n const done = (el._leaveCb = (cancelled) => {\r\n if (called)\r\n return;\r\n called = true;\r\n remove();\r\n if (cancelled) {\r\n callHook(onLeaveCancelled, [el]);\r\n }\r\n else {\r\n callHook(onAfterLeave, [el]);\r\n }\r\n el._leaveCb = undefined;\r\n if (leavingVNodesCache[key] === vnode) {\r\n delete leavingVNodesCache[key];\r\n }\r\n });\r\n leavingVNodesCache[key] = vnode;\r\n if (onLeave) {\r\n callAsyncHook(onLeave, [el, done]);\r\n }\r\n else {\r\n done();\r\n }\r\n },\r\n clone(vnode) {\r\n return resolveTransitionHooks(vnode, props, state, instance);\r\n }\r\n };\r\n return hooks;\r\n}\r\n// the placeholder really only handles one special case: KeepAlive\r\n// in the case of a KeepAlive in a leave phase we need to return a KeepAlive\r\n// placeholder with empty content to avoid the KeepAlive instance from being\r\n// unmounted.\r\nfunction emptyPlaceholder(vnode) {\r\n if (isKeepAlive(vnode)) {\r\n vnode = cloneVNode(vnode);\r\n vnode.children = null;\r\n return vnode;\r\n }\r\n}\r\nfunction getKeepAliveChild(vnode) {\r\n return isKeepAlive(vnode)\r\n ? vnode.children\r\n ? vnode.children[0]\r\n : undefined\r\n : vnode;\r\n}\r\nfunction setTransitionHooks(vnode, hooks) {\r\n if (vnode.shapeFlag & 6 /* COMPONENT */ && vnode.component) {\r\n setTransitionHooks(vnode.component.subTree, hooks);\r\n }\r\n else if (vnode.shapeFlag & 128 /* SUSPENSE */) {\r\n vnode.ssContent.transition = hooks.clone(vnode.ssContent);\r\n vnode.ssFallback.transition = hooks.clone(vnode.ssFallback);\r\n }\r\n else {\r\n vnode.transition = hooks;\r\n }\r\n}\r\nfunction getTransitionRawChildren(children, keepComment = false, parentKey) {\r\n let ret = [];\r\n let keyedFragmentCount = 0;\r\n for (let i = 0; i < children.length; i++) {\r\n let child = children[i];\r\n // #5360 inherit parent key in case of