Bump web v3.23.051523

This commit is contained in:
Xwite authored and github-actions[bot] committed 2023-05-15 15:30:37 +00:00
1 parent a777c4781e
commit 170cb308b4
14 files changed
+11 -11

No files matched your search

@@ -1 +0,0 @@
import{a2 as Ke,n as r,z as b,T as be,a5 as _e,o as p,d as v,g as e,t as H,F as oe,P as ie,u as o,a6 as q,a7 as Ve,a8 as Ne,v as _,e as W,w as J,a9 as ze,A as ue,aa as He,f as $,M as Ae,ab as Je,x as We,ac as Me,p as Ie,i as ke,s as Re,ad as Te,V as qe,a4 as Ge,O as Qe,k as K,c as Ze}from"./vendor-b9134af1.js";import{i as Ye,g as De,u as Xe}from"./loading-004d5aaf.js";import{_ as ce,u as Be,A as de}from"./index-7b5c29c2.js";const je=(n,s,d,u)=>(n/=u/2,n<1?d/2*n*n+s:(n--,-d/2*(n*(n-2)-1)+s)),$e=()=>{let n,s,d,u,a,E,m,w,h,y,i,I,A;function k(){let C=n.scrollTop||n.scrollY||n.pageYOffset;return C=typeof C>"u"?0:C,C}function c(C){const S=C.getBoundingClientRect().top,Z=n.getBoundingClientRect?n.getBoundingClientRect().top:0;return S-Z+d}function B(C){n.scrollTo?n.scrollTo(0,C):n.scrollTop=C}function P(C){y||(y=C),i=C-y,I=E(i,d,w,h),B(I),i<h?requestAnimationFrame(P):R()}function R(){B(d+w),s&&m&&(s.setAttribute("tabindex","-1"),s.focus()),typeof A=="function"&&A(),y=!1}function ne(C,S={}){switch(h=S.duration||1e3,a=S.offset||0,A=S.callback,E=S.easing||je,m=S.a11y||!1,typeof S.container){case"object":n=S.container;break;case"string":n=document.querySelector(S.container);break;default:n=window}switch(d=k(),typeof C){case"number":s=void 0,m=!1,u=d+C;break;case"object":s=C,u=c(s);break;case"string":s=document.querySelector(C),u=c(s);break}switch(w=u-d+a,typeof S.duration){case"number":h=S.duration;break;case"function":h=S.duration(w);break}requestAnimationFrame(P)}return ne},ee=$e();const et=["data-chapterpos"],tt=["src"],ot=["innerHTML"],nt={__name:"ChapterContent",props:{chapterIndex:{type:Number,required:!0},contents:{type:Array,required:!0},title:{type:String,required:!0},spacing:{type:Object,required:!0},fontFamily:{type:String,required:!0},fontSize:{type:String,required:!0}},emits:["readedLengthChange"],setup(n,{expose:s,emit:d}){const u=n;Ke(A=>({"1a12e47d":u.spacing.letter,"61869a0b":u.spacing.line,"63fd95b7":u.spacing.paragraph}));const a=A=>{const k=/<img[^>]*src="([^"]*(?:"[^>]+\})?)"[^>]*>/,c=A.match(k)[1];return Ye(c)?De(c):c},E=A=>{A.target.src=De(A.target.src)},m=A=>{const k=/<img[^>]*src="[^"]*(?:"[^>]+\})?"[^>]*>/g,c=" ";return A.replaceAll(k,c).length},w=r(()=>{let A=-1;return Array.from(u.contents,k=>(A+=m(k)+1,A))}),h=b(),y=b();s({scrollToReadedLength:A=>{if(A===0)return;let k=w.value.findIndex(c=>c>=A);k!==-1&&Ve(()=>{ee(y.value[k],{duration:0})})}});let I=null;return be(()=>{I=new IntersectionObserver(A=>{for(let{target:k,isIntersecting:c}of A)c&&d("readedLengthChange",u.chapterIndex,parseInt(k.dataset.chapterpos))},{rootMargin:`0px 0px -${window.innerHeight-24}px 0px`}),I.observe(h.value),y.value.forEach(A=>{I.observe(A)})}),_e(()=>{I==null||I.disconnect(),I=null}),(A,k)=>(p(),v(oe,null,[e("div",{class:"title","data-chapterpos":"0",ref_key:"titleRef",ref:h},H(n.title),513),(p(!0),v(oe,null,ie(n.contents,(c,B)=>(p(),v("div",{key:B,ref_for:!0,ref_key:"paragraphRef",ref:y,"data-chapterpos":o(w)[B]},[/^\s*<img[^>]*src[^>]+>$/.test(c)?(p(),v("img",{key:0,class:"full",src:a(c),onErrorOnce:E,loading:"lazy"},null,40,tt)):(p(),v("p",{key:1,style:q({fontFamily:n.fontFamily,fontSize:n.fontSize}),innerHTML:c},null,12,ot))],8,et))),128))],64))}},st=ce(nt,[["__scopeId","data-v-dfec3d18"]]);const at="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyAgMAAABjUWAiAAAADFBMVEXr5djn4dTp49bt59rT6LKxAAACnElEQVQozw3NUUwScRzA8d8R6MF8YMIx8uk47hDSJbj14IPzOGc7jPLvwTGg5uAYDbe2tt56cLtznvEnS6yDqCcEaWi91DvrbLJZz7b1aFtz1aO+2OZWvn+/+4CHeB6BMYaqBLfjPNRY6RFT2JJYby+uAk4WUTrtlmJ4hgPYb2q1XGDQjaK8pgJHvqNaAX+KyuIkDXpgQinb46nOulnn4b5laUHTxLfseeArAoNOeJlOIjdoal0n1FA7tKFv5roK+YaHOqP3P0XyKHPHY+MhTRe5uCZnKhtJKw2eSrSoBDPLtpZuNcFNJcFyiCMxOaaHIfXz1e8HQbWLySrBQ4x0x1qlhnHlnz2HQEC6TNb0gTHXa7IKhcaHqkE015hk9whA0YeWiLIXf7Fa2CZo3DjqjB4tTuF8jIcbfcEx5z/w4sXpQhXW+ju0cqh7icTFmRMaG+v6CIvTjcSpHcH8JEsF3EPh3fRthYdVLLgI2fWXm85/pGFE4l046s70L+yKCcirGFR+jbpy3kMmiCGHrSezVONsn1RBixncyk2PcVWk7DlgxHo8iZwDyq5uAUD854dZhdIFYzKoQig2haUKi1lVufz2RZUZPZ41n/hrOQB6h0Hhg8I367FNoEHgeM/KY7szSeQwD8q2WE3HM35ZLl0K1MJiOtHIkBclRQUwZnyOWcNsRQQgVLj1PSqkjF9DsoOSaSg3iinKzvfmgsNFFfpP/2T3GLGvL4fHEfwIX1sVvXcPqLztehWGcfn9nI2U9nTfCgJPe/jFPLZwgVEzimBgAm0VIyK2tt1cE/AzQdLK+SxLSQ4aDCZnnId94OG2S1XwvnTbNk/ZnhyRCQT+sZM6z9g6LXL1BOBe+zJySiFkHAINCtnQokbCJ/apCv0foqPiZVfhpywAAAAASUVORK5CYII=",it="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyAgMAAABjUWAiAAAACVBMVEX28ef48+n69esoK7jYAAAB4UlEQVQozw2OsW4bQQxEhwLXkDrysGdEqRRgVShfQQq8wOr2jD0jSpXCLvwXbtKfADlFqgSwC/9ljqweZgYzQFnb/QGepYhA9jzmTc1WaSEtQpbFgjWATI00ZZtIckXx8q2Oe5yEByBy+RHOTcM+VVTadULsvxvRC/q8WTwgcWGD+Mnaqa0oy2gw2pKFzK+PzEsus5hP9AHojKslVynLlioVTBEN8cjDNnZoR1uMGTiZAAN47HxMtEkGUE9b8HWzkqNX5Lpk0yVziAJOs46rK1pG/xNuXLjz95fSDoJE5IqG23MAYPtWoeWPvfVtIV/Ng9oH3W0gGMPIOqd4MK4QZ55dV61gOb8Zxp7I9qayaGxp6Q91cmC0ZRdBwEQVHWzSAanlZwVWc9yljeTCeaHjBVvlPSLeyeBUT2rPdJegQI103jVS3uYkyIx1il6mslMDedZuOkwzolsagvPuQAfp7cYg7k9V1NOxfq64PNSvMdwONV4VYEmqlbpZy5OAakRKkjPnL4CBv5/OZRgoWHBmNbxB0LgB1I4vXFj93UoF2/0TPEsWwV9EhbIiTPqYoTHYoMn3enTDjmrFeDTIzaL1bUC/PBIMuF+vSSYSaxoLine truncated
@@ -1 +0,0 @@
@charset "UTF-8";.title[data-v-dfec3d18]{margin-bottom:57px;font:24px/32px PingFangSC-Regular,HelveticaNeue-Light,Helvetica Neue Light,Microsoft YaHei,sans-serif}p[data-v-dfec3d18]{display:block;word-wrap:break-word;word-break:break-all;letter-spacing:calc(var(--1a12e47d) * 1em);line-height:calc(1 + var(--61869a0b));margin:calc(var(--63fd95b7) * 1em) 0}p[data-v-dfec3d18] img{height:1em}.full[data-v-dfec3d18]{display:block;width:100%}.el-popover{--el-popover-bg-color:var(--el-bg-color-overlay);--el-popover-font-size:var(--el-font-size-base);--el-popover-border-color:var(--el-border-color-lighter);--el-popover-padding:12px;--el-popover-padding-large:18px 20px;--el-popover-title-font-size:16px;--el-popover-title-text-color:var(--el-text-color-primary);--el-popover-border-radius:4px}.el-popover.el-popper{background:var(--el-popover-bg-color);min-width:150px;border-radius:var(--el-popover-border-radius);border:1px solid var(--el-popover-border-color);padding:var(--el-popover-padding);z-index:var(--el-index-popper);color:var(--el-text-color-regular);line-height:1.4;text-align:justify;font-size:var(--el-popover-font-size);box-shadow:var(--el-box-shadow-light);word-break:break-all;box-sizing:border-box}.el-popover.el-popper--plain{padding:var(--el-popover-padding-large)}.el-popover__title{color:var(--el-popover-title-text-color);font-size:var(--el-popover-title-font-size);line-height:1;margin-bottom:12px}.el-popover__reference:focus:hover,.el-popover__reference:focus:not(.focusing){outline-width:0}.el-popover.el-popper.is-dark{--el-popover-bg-color:var(--el-text-color-primary);--el-popover-border-color:var(--el-text-color-primary);--el-popover-title-text-color:var(--el-bg-color);color:var(--el-bg-color)}.el-popover.el-popper:focus,.el-popover.el-popper:focus:active{outline-width:0}@font-face{font-family:FZZCYSK;src:local("☺"),url(./popfont-a80d6a88.ttf);font-style:normal;font-weight:400}@font-face{font-family:iconfont;src:url(./iconfont-9aaccea3.woff) format("woff")}[data-v-7c8b23a7] .iconfont,[data-v-7c8b23a7] .moon-icon{font-family:iconfont;font-style:normal}.settings-wrapper[data-v-7c8b23a7]{user-select:none;margin:-13px;text-align:left;padding:40px 0 40px 24px;background:#ede7da url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyBAMAAADsEZWCAAAAD1BMVEX48dr48Nf58tv379X17NJtIBxUAAACFUlEQVQ4y1XRUZakMAgF0Af2AiDWApDZgHZqAV1nZv9rGh7Rj7Y8McUFEg1wvcMESMNVD/neU8Xcaz7nYYkYlYO6Ti82PBI4BvIEg1aj3wKwRvIMgZsUy5LdhCawPFh1sZs4SrlyN9fQKpv8s5dgZ2eLyqqJiu+WkCmUEybXkm3INS01WAiv0PapJ0CZc0SJQUzcWnZYbOOY20iFD8Bk+/j2A3wNxH7GdShFYS5ff237kXh9I9zSkQmIAhOsOSVfJ6DIXTMDaPnzkRJ92S1BQQmXl5LdirgRLLDdcYqcGPwe3QN4xCBiGNbrqq9wpW1XCecChwaQdVOsRDpPCpeoolPdxeXp3WNB9PHVzWBHlygy4NJCCrFHREv6bDt0VGwJZASkpONmm1UseGeFKAQexgaAkrfYWl3AGxWOLL2AIMBNbCXpktmS3k3vHeYjGCPBa43wJTurO3ZFVpQSJdAZGLoHTyk1upkjxMEaIxum3iIARcCa5kSkFAW5fi1mUlL9eyOsaanFmOMruwvEdE3ZYzsRSzo5ewRLXyVPPEvknt8ij4DvCg2O7xOgBCUprEzV4z1WekSpUgI8DT2mrnSOXKRfQavwuKA1F+tFnMKdJSUpMA7wQAifWRkMgjUKKZE4lBl6MCM4B1pq1P4uIjDE6Pq6rL0FnW1nIFmta5vrSvq/Ch4tpqG/ZNyyWa5jZPktq81eYv8Bt5s4iFITOp4AAAAASUVORK5CYII=) repeat}.settings-wrapper .settings-title[data-v-7c8b23a7]{font-size:18px;line-height:22px;margin-bottom:28px;font-family:FZZCYSK;font-weight:400}.settings-wrapper .setting-list[data-v-7c8b23a7]{max-height:calc(70vh - 50px);overflow:auto}.settings-wrapper .setting-list ul[data-v-7c8b23a7]{list-style:none outside none;margin:0;padding:0}.settings-wrapper .setting-list ul li[data-v-7c8b23a7]{list-style:none outside none}.settings-wrapper .setting-list ul li i[data-v-7c8b23a7]{font:12px/16px PingFangSC-Regular,-apple-system,Simsun;display:inline-block;min-width:48px;margin-right:16px;vertical-align:middle;color:#666}.settings-wrapper .setting-list ul li .theme-item[data-v-7c8b23a7]{line-height:32px;width:34px;height:34px;margin-right:16px;margin-top:5px;border-radius:100%;display:inline-block;cursor:pointer;text-align:center;vertical-align:middle}.settings-wrapper .setting-list ul li .theme-item .iconfont[data-v-7c8b23a7]{display:none}.settings-wrapper .setting-list ul li .selected[data-v-7c8b23a7]{color:#ed4259}.settings-wrapper .setting-list ul li .selected .iconfont[data-v-7c8b23a7]{display:inline}.settings-wrapper .setting-list ul .font-list[data-v-7c8b23a7],.settings-wrapper .setting-list ul .infinite-loading[data-v-7c8b23a7]{margin-top:28px}.settings-wrapper .setting-list ul .font-list .font-item[data-v-7c8b23a7],.settings-wrapper .setting-list ul .font-list .infinite-loading-item[data-v-7c8b23a7],.settings-wrapper .setting-list ul .infinite-loading .font-item[data-v-7c8b23a7],.settings-wrapper .setting-list ul .infinite-loading .infinite-loading-item[data-v-7c8b23a7]{width:78px;height:34px;cursor:pointer;margin-right:16px;border-radius:2px;text-align:center;vertical-align:middle;display:inline-block;font:14px/34px PingFangSC-Regular,HelveticaNeue-Light,Helvetica Neue Light,Microsoft YaHei,sans-serif}.settings-wrapper .setting-list ul .font-list .font-item-input[data-v-7c8b23a7],.settings-wrapperLine truncated
@@ -0,0 +1 @@
@charset "UTF-8";.title[data-v-976ea6dd]{margin-bottom:57px;font:24px/32px PingFangSC-Regular,HelveticaNeue-Light,Helvetica Neue Light,Microsoft YaHei,sans-serif}p[data-v-976ea6dd]{display:block;word-wrap:break-word;word-break:break-all;letter-spacing:calc(var(--864924b2) * 1em);line-height:calc(1 + var(--f7593496));margin:calc(var(--aae0f766) * 1em) 0}p[data-v-976ea6dd] img{height:1em}.full[data-v-976ea6dd]{display:block;width:100%}.el-popover{--el-popover-bg-color:var(--el-bg-color-overlay);--el-popover-font-size:var(--el-font-size-base);--el-popover-border-color:var(--el-border-color-lighter);--el-popover-padding:12px;--el-popover-padding-large:18px 20px;--el-popover-title-font-size:16px;--el-popover-title-text-color:var(--el-text-color-primary);--el-popover-border-radius:4px}.el-popover.el-popper{background:var(--el-popover-bg-color);min-width:150px;border-radius:var(--el-popover-border-radius);border:1px solid var(--el-popover-border-color);padding:var(--el-popover-padding);z-index:var(--el-index-popper);color:var(--el-text-color-regular);line-height:1.4;text-align:justify;font-size:var(--el-popover-font-size);box-shadow:var(--el-box-shadow-light);word-break:break-all;box-sizing:border-box}.el-popover.el-popper--plain{padding:var(--el-popover-padding-large)}.el-popover__title{color:var(--el-popover-title-text-color);font-size:var(--el-popover-title-font-size);line-height:1;margin-bottom:12px}.el-popover__reference:focus:hover,.el-popover__reference:focus:not(.focusing){outline-width:0}.el-popover.el-popper.is-dark{--el-popover-bg-color:var(--el-text-color-primary);--el-popover-border-color:var(--el-text-color-primary);--el-popover-title-text-color:var(--el-bg-color);color:var(--el-bg-color)}.el-popover.el-popper:focus,.el-popover.el-popper:focus:active{outline-width:0}@font-face{font-family:FZZCYSK;src:local("☺"),url(./popfont-a80d6a88.ttf);font-style:normal;font-weight:400}@font-face{font-family:iconfont;src:url(./iconfont-9aaccea3.woff) format("woff")}[data-v-e93e95b1] .iconfont,[data-v-e93e95b1] .moon-icon{font-family:iconfont;font-style:normal}.settings-wrapper[data-v-e93e95b1]{user-select:none;margin:-13px;text-align:left;padding:40px 0 40px 24px;background:#ede7da url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyBAMAAADsEZWCAAAAD1BMVEX48dr48Nf58tv379X17NJtIBxUAAACFUlEQVQ4y1XRUZakMAgF0Af2AiDWApDZgHZqAV1nZv9rGh7Rj7Y8McUFEg1wvcMESMNVD/neU8Xcaz7nYYkYlYO6Ti82PBI4BvIEg1aj3wKwRvIMgZsUy5LdhCawPFh1sZs4SrlyN9fQKpv8s5dgZ2eLyqqJiu+WkCmUEybXkm3INS01WAiv0PapJ0CZc0SJQUzcWnZYbOOY20iFD8Bk+/j2A3wNxH7GdShFYS5ff237kXh9I9zSkQmIAhOsOSVfJ6DIXTMDaPnzkRJ92S1BQQmXl5LdirgRLLDdcYqcGPwe3QN4xCBiGNbrqq9wpW1XCecChwaQdVOsRDpPCpeoolPdxeXp3WNB9PHVzWBHlygy4NJCCrFHREv6bDt0VGwJZASkpONmm1UseGeFKAQexgaAkrfYWl3AGxWOLL2AIMBNbCXpktmS3k3vHeYjGCPBa43wJTurO3ZFVpQSJdAZGLoHTyk1upkjxMEaIxum3iIARcCa5kSkFAW5fi1mUlL9eyOsaanFmOMruwvEdE3ZYzsRSzo5ewRLXyVPPEvknt8ij4DvCg2O7xOgBCUprEzV4z1WekSpUgI8DT2mrnSOXKRfQavwuKA1F+tFnMKdJSUpMA7wQAifWRkMgjUKKZE4lBl6MCM4B1pq1P4uIjDE6Pq6rL0FnW1nIFmta5vrSvq/Ch4tpqG/ZNyyWa5jZPktq81eYv8Bt5s4iFITOp4AAAAASUVORK5CYII=) repeat}.settings-wrapper .settings-title[data-v-e93e95b1]{font-size:18px;line-height:22px;margin-bottom:28px;font-family:FZZCYSK;font-weight:400}.settings-wrapper .setting-list[data-v-e93e95b1]{max-height:calc(70vh - 50px);overflow:auto}.settings-wrapper .setting-list ul[data-v-e93e95b1]{list-style:none outside none;margin:0;padding:0}.settings-wrapper .setting-list ul li[data-v-e93e95b1]{list-style:none outside none}.settings-wrapper .setting-list ul li i[data-v-e93e95b1]{font:12px/16px PingFangSC-Regular,-apple-system,Simsun;display:inline-block;min-width:48px;margin-right:16px;vertical-align:middle;color:#666}.settings-wrapper .setting-list ul li .theme-item[data-v-e93e95b1]{line-height:32px;width:34px;height:34px;margin-right:16px;margin-top:5px;border-radius:100%;display:inline-block;cursor:pointer;text-align:center;vertical-align:middle}.settings-wrapper .setting-list ul li .theme-item .iconfont[data-v-e93e95b1]{display:none}.settings-wrapper .setting-list ul li .selected[data-v-e93e95b1]{color:#ed4259}.settings-wrapper .setting-list ul li .selected .iconfont[data-v-e93e95b1]{display:inline}.settings-wrapper .setting-list ul .font-list[data-v-e93e95b1],.settings-wrapper .setting-list ul .infinite-loading[data-v-e93e95b1]{margin-top:28px}.settings-wrapper .setting-list ul .font-list .font-item[data-v-e93e95b1],.settings-wrapper .setting-list ul .font-list .infinite-loading-item[data-v-e93e95b1],.settings-wrapper .setting-list ul .infinite-loading .font-item[data-v-e93e95b1],.settings-wrapper .setting-list ul .infinite-loading .infinite-loading-item[data-v-e93e95b1]{width:78px;height:34px;cursor:pointer;margin-right:16px;border-radius:2px;text-align:center;vertical-align:middle;display:inline-block;font:14px/34px PingFangSC-Regular,HelveticaNeue-Light,Helvetica Neue Light,Microsoft YaHei,sans-serif}.settings-wrapper .setting-list ul .font-list .font-item-input[data-v-e93e95b1],.settings-wrapperLine truncated
@@ -0,0 +1 @@
import{a2 as Ne,n as r,z as w,T as be,a5 as Ve,o as p,d as f,g as e,t as H,F as te,P as ae,u as o,a6 as q,a7 as Re,a8 as He,v as _,e as J,w as W,a9 as We,A as ue,aa as Je,f as j,M as Ae,ab as Te,x as qe,ac as Me,p as ke,i as Be,s as Fe,ad as Ge,V as Ze,K as Ye,a4 as Xe,O as De,k as O,c as je}from"./vendor-b9134af1.js";import{i as $e,g as _e,u as et}from"./loading-c709a05a.js";import{_ as ie,u as Se,A as de}from"./index-09b6d8d8.js";const tt=(s,a,d,u)=>(s/=u/2,s<1?d/2*s*s+a:(s--,-d/2*(s*(s-2)-1)+a)),ot=()=>{let s,a,d,u,n,U,m,E,h,y,i,I,A;function b(){let v=s.scrollTop||s.scrollY||s.pageYOffset;return v=typeof v>"u"?0:v,v}function c(v){const B=v.getBoundingClientRect().top,G=s.getBoundingClientRect?s.getBoundingClientRect().top:0;return B-G+d}function k(v){s.scrollTo?s.scrollTo(0,v):s.scrollTop=v}function L(v){y||(y=v),i=v-y,I=U(i,d,E,h),k(I),i<h?requestAnimationFrame(L):F()}function F(){k(d+E),a&&m&&(a.setAttribute("tabindex","-1"),a.focus()),typeof A=="function"&&A(),y=!1}function oe(v,B={}){switch(h=B.duration||1e3,n=B.offset||0,A=B.callback,U=B.easing||tt,m=B.a11y||!1,typeof B.container){case"object":s=B.container;break;case"string":s=document.querySelector(B.container);break;default:s=window}switch(d=b(),typeof v){case"number":a=void 0,m=!1,u=d+v;break;case"object":a=v,u=c(a);break;case"string":a=document.querySelector(v),u=c(a);break}switch(E=u-d+n,typeof B.duration){case"number":h=B.duration;break;case"function":h=B.duration(E);break}requestAnimationFrame(L)}return oe},$=ot();const nt=["data-chapterpos"],st=["src"],at=["innerHTML"],it={__name:"ChapterContent",props:{chapterIndex:{type:Number,required:!0},contents:{type:Array,required:!0},title:{type:String,required:!0},spacing:{type:Object,required:!0},fontFamily:{type:String,required:!0},fontSize:{type:String,required:!0}},emits:["readedLengthChange"],setup(s,{expose:a,emit:d}){const u=s;Ne(A=>({"864924b2":u.spacing.letter,f7593496:u.spacing.line,aae0f766:u.spacing.paragraph}));const n=A=>{const b=/<img[^>]*src="([^"]*(?:"[^>]+\})?)"[^>]*>/,c=A.match(b)[1];return $e(c)?_e(c):c},U=A=>{A.target.src=_e(A.target.src)},m=A=>{const b=/<img[^>]*src="[^"]*(?:"[^>]+\})?"[^>]*>/g,c=" ";return A.replaceAll(b,c).length},E=r(()=>{let A=-1;return Array.from(u.contents,b=>(A+=m(b)+1,A))}),h=w(),y=w();a({scrollToReadedLength:A=>{if(A===0)return;let b=E.value.findIndex(c=>c>=A);b!==-1&&Re(()=>{$(y.value[b],{duration:0})})}});let I=null;return be(()=>{I=new IntersectionObserver(A=>{for(let{target:b,isIntersecting:c}of A)c&&d("readedLengthChange",u.chapterIndex,parseInt(b.dataset.chapterpos))},{rootMargin:`0px 0px -${window.innerHeight-24}px 0px`}),I.observe(h.value),y.value.forEach(A=>{I.observe(A)})}),Ve(()=>{I==null||I.disconnect(),I=null}),(A,b)=>(p(),f(te,null,[e("div",{class:"title","data-chapterpos":"0",ref_key:"titleRef",ref:h},H(s.title),513),(p(!0),f(te,null,ae(s.contents,(c,k)=>(p(),f("div",{key:k,ref_for:!0,ref_key:"paragraphRef",ref:y,"data-chapterpos":o(E)[k]},[/^\s*<img[^>]*src[^>]+>$/.test(c)?(p(),f("img",{key:0,class:"full",src:n(c),onErrorOnce:U,loading:"lazy"},null,40,st)):(p(),f("p",{key:1,style:q({fontFamily:s.fontFamily,fontSize:s.fontSize}),innerHTML:c},null,12,at))],8,nt))),128))],64))}},ct=ie(it,[["__scopeId","data-v-976ea6dd"]]);const lt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyAgMAAABjUWAiAAAADFBMVEXr5djn4dTp49bt59rT6LKxAAACnElEQVQozw3NUUwScRzA8d8R6MF8YMIx8uk47hDSJbj14IPzOGc7jPLvwTGg5uAYDbe2tt56cLtznvEnS6yDqCcEaWi91DvrbLJZz7b1aFtz1aO+2OZWvn+/+4CHeB6BMYaqBLfjPNRY6RFT2JJYby+uAk4WUTrtlmJ4hgPYb2q1XGDQjaK8pgJHvqNaAX+KyuIkDXpgQinb46nOulnn4b5laUHTxLfseeArAoNOeJlOIjdoal0n1FA7tKFv5roK+YaHOqP3P0XyKHPHY+MhTRe5uCZnKhtJKw2eSrSoBDPLtpZuNcFNJcFyiCMxOaaHIfXz1e8HQbWLySrBQ4x0x1qlhnHlnz2HQEC6TNb0gTHXa7IKhcaHqkE015hk9whA0YeWiLIXf7Fa2CZo3DjqjB4tTuF8jIcbfcEx5z/w4sXpQhXW+ju0cqh7icTFmRMaG+v6CIvTjcSpHcH8JEsF3EPh3fRthYdVLLgI2fWXm85/pGFE4l046s70L+yKCcirGFR+jbpy3kMmiCGHrSezVONsn1RBixncyk2PcVWk7DlgxHo8iZwDyq5uAUD854dZhdIFYzKoQig2haUKi1lVufz2RZUZPZ41n/hrOQB6h0Hhg8I367FNoEHgeM/KY7szSeQwD8q2WE3HM35ZLl0K1MJiOtHIkBclRQUwZnyOWcNsRQQgVLj1PSqkjF9DsoOSaSg3iinKzvfmgsNFFfpP/2T3GLGvL4fHEfwIX1sVvXcPqLztehWGcfn9nI2U9nTfCgJPe/jFPLZwgVEzimBgAm0VIyK2tt1cE/AzQdLK+SxLSQ4aDCZnnId94OG2S1XwvnTbNk/ZnhyRCQT+sZM6z9g6LXL1BOBe+zJySiFkHAINCtnQokbCJ/apCv0foqPiZVfhpywAAAAASUVORK5CYII=",rt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyAgMAAABjUWAiAAAACVBMVEX28ef48+n69esoK7jYAAAB4UlEQVQozw2OsW4bQQxEhwLXkDrysGdEqRRgVShfQQq8wOr2jD0jSpXCLvwXbtKfADlFqgSwC/9ljqweZgYzQFnb/QGepYhA9jzmTc1WaSEtQpbFgjWATI00ZZtIckXx8q2Oe5yEByBy+RHOTcM+VVTadULsvxvRC/q8WTwgcWGD+Mnaqa0oy2gw2pKFzK+PzEsus5hP9AHojKslVynLlioVTBEN8cjDNnZoR1uMGTiZAAN47HxMtEkGUE9b8HWzkqNX5Lpk0yVziAJOs46rK1pG/xNuXLjz95fSDoJE5IqG23MAYPtWoeWPvfVtIV/Ng9oH3W0gGMPIOqd4MK4QZ55dV61gOb8Zxp7I9qayaGxp6Q91cmC0ZRdBwEQVHWzSAanlZwVWc9yljeTCeaHjBVvlPSLeyeBUT2rPdJegQI103jVS3uYkyIx1il6mslMDedZuOkwzolsagvPuQAfp7cYg7k9V1NOxfq64PNSvMdwONV4VYEmqlbpZy5OAakRKkjPnL4CBv5/OZRgoWHBmNbxB0LgB1I4vXFj93UoF2/0TPEsWwV9EhbIiTPqYoTHYoMn3enTDjmrFeDTIzaL1bUC/PBIMuF+vSSYSaLine truncated
@@ -1 +0,0 @@
@charset "UTF-8";.books-wrapper[data-v-907d02e8]{overflow:scroll}.books-wrapper .wrapper[data-v-907d02e8]{display:grid;grid-template-columns:repeat(auto-fill,380px);justify-content:space-around;grid-gap:10px}.books-wrapper .wrapper .book[data-v-907d02e8]{user-select:none;display:flex;cursor:pointer;margin-bottom:18px;padding:24px;width:360px;flex-direction:row;justify-content:space-around}.books-wrapper .wrapper .book .cover-img[data-v-907d02e8],.books-wrapper .wrapper .book .cover-img .cover[data-v-907d02e8]{width:84px;height:112px}.books-wrapper .wrapper .book .info[data-v-907d02e8]{display:flex;flex-direction:column;justify-content:space-around;align-items:left;height:112px;margin-left:20px;flex:1}.books-wrapper .wrapper .book .info .name[data-v-907d02e8]{width:fit-content;font-size:16px;font-weight:700;color:#33373d}.books-wrapper .wrapper .book .info .sub[data-v-907d02e8]{display:flex;flex-direction:row;align-items:baseline;justify-content:var(--4253f082);font-size:12px;font-weight:600;color:#6b6b6b}.books-wrapper .wrapper .book .info .sub .tags[data-v-907d02e8] .el-tag{margin-right:.5em}.books-wrapper .wrapper .book .info .sub .update-info[data-v-907d02e8]{display:flex}.books-wrapper .wrapper .book .info .sub .update-info .dot[data-v-907d02e8]{margin:0 7px}.books-wrapper .wrapper .book .info .intro[data-v-907d02e8],.books-wrapper .wrapper .book .info .dur-chapter[data-v-907d02e8],.books-wrapper .wrapper .book .info .last-chapter[data-v-907d02e8]{color:#969ba3;font-size:13px;margin-top:3px;font-weight:500;word-wrap:break-word;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;text-align:left}.books-wrapper .wrapper .book[data-v-907d02e8]:hover{background:rgba(0,0,0,.1);transition-duration:.5s}.books-wrapper .wrapper[data-v-907d02e8]:last-child{margin-right:auto}.books-wrapper[data-v-907d02e8]::-webkit-scrollbar{width:0!important}@media screen and (max-width: 750px){.books-wrapper .wrapper[data-v-907d02e8]{display:flex;flex-direction:column}.books-wrapper .wrapper .book[data-v-907d02e8]{box-sizing:border-box;width:100%;margin-bottom:0;padding:10px 20px}}@font-face{font-family:FZZCYSK;src:local("☺"),url(./shelffont-16b1b95a.ttf);font-style:normal;font-weight:400}.index-wrapper[data-v-1fc5c811]{height:100%;width:100%;display:flex;flex-direction:row}.index-wrapper .navigation-wrapper[data-v-1fc5c811]{width:260px;min-width:260px;padding:48px 36px;background-color:#f7f7f7}.index-wrapper .navigation-wrapper .navigation-title[data-v-1fc5c811]{font-size:24px;font-weight:500;font-family:FZZCYSK}.index-wrapper .navigation-wrapper .navigation-sub-title[data-v-1fc5c811]{font-size:16px;font-weight:300;font-family:FZZCYSK;margin-top:16px;color:#b1b1b1}.index-wrapper .navigation-wrapper .search-wrapper .search-input[data-v-1fc5c811]{border-radius:50%;margin-top:24px}.index-wrapper .navigation-wrapper .search-wrapper .search-input[data-v-1fc5c811] .el-input__wrapper{border-radius:50px;border-color:#e3e3e3}.index-wrapper .navigation-wrapper .recent-wrapper[data-v-1fc5c811]{margin-top:36px}.index-wrapper .navigation-wrapper .recent-wrapper .recent-title[data-v-1fc5c811]{font-size:14px;color:#b1b1b1;font-family:FZZCYSK}.index-wrapper .navigation-wrapper .recent-wrapper .reading-recent[data-v-1fc5c811]{margin:18px 0}.index-wrapper .navigation-wrapper .recent-wrapper .reading-recent .recent-book[data-v-1fc5c811]{font-size:10px;cursor:pointer}.index-wrapper .navigation-wrapper .setting-wrapper[data-v-1fc5c811]{margin-top:36px}.index-wrapper .navigation-wrapper .setting-wrapper .setting-title[data-v-1fc5c811]{font-size:14px;color:#b1b1b1;font-family:FZZCYSK}.index-wrapper .navigation-wrapper .setting-wrapper .no-point[data-v-1fc5c811]{pointer-events:none}.index-wrapper .navigation-wrapper .setting-wrapper .setting-connect[data-v-1fc5c811]{font-size:8px;margin-top:16px;cursor:pointer}.index-wrapper .navigation-wrapper .bottom-icons[data-v-1fc5c811]{position:fixed;bottom:0;height:120px;width:260px;align-items:center;display:flex;flex-direction:row}.index-wrapper .shelf-wrapper[data-v-1fc5c811]{padding:48px;width:100%;display:flex;flex-direction:column}.index-wrapper .shelf-wrapper[data-v-1fc5c811] .el-loading-mask{background-color:#0000}.index-wrapper .shelf-wrapper[data-v-1fc5c811] .el-loading-spinner{font-size:36px;color:#b5b5b5}.index-wrapper .shelf-wrapper[data-v-1fc5c811] .el-loading-text{font-weight:500;color:#b5b5b5}@media screen and (max-width: 750px){.index-wrapper[data-v-1fc5c811]{overflow-x:hidden;flex-direction:column}.index-wrapper .navigation-wrapper[data-v-1fc5c811]{padding:20px 24px;box-sizing:border-box;width:100%}.index-wrapper .navigation-wrapper .navigation-title-wrapper[data-v-1fc5c811]{white-space:nowrap;display:flex;justify-content:space-between;align-items:flex-end}.index-wrapper .navigation-wrapper .bottom-wrapper[data-v-1fc5c811],.index-wrapper .navigation-wrapper .bottom-icons[data-v-1fc5c811]{display:none}.index-wrapper .shelf-wrapper[data-vLine truncated
@@ -0,0 +1 @@
import{a2 as U,n as Q,o as l,d,g as e,F as V,P,t as u,c as $,w as b,f as z,M as I,u as a,a3 as N,p as J,i as D,s as q,z as g,O as G,a4 as X,T as j,k,e as B,A as ee,L as te,v as L,I as se,B as ae}from"./vendor-b9134af1.js";import{d as oe,u as ne}from"./loading-c709a05a.js";import{_ as W,u as ce,A as E}from"./index-09b6d8d8.js";const O=n=>(J("data-v-6da0ccca"),n=n(),D(),n),re={class:"books-wrapper"},ie={class:"wrapper"},le=["onClick"],de={class:"cover-img"},ue=["src"],he={class:"info"},pe={class:"name"},_e={class:"sub"},ve={class:"author"},ge={key:0,class:"tags"},me={key:1,class:"update-info"},fe=O(()=>e("div",{class:"dot"},"•",-1)),we={class:"size"},Ae=O(()=>e("div",{class:"dot"},"•",-1)),Ie={class:"date"},ke={key:0,class:"intro"},Be={key:1,class:"dur-chapter"},ye={class:"last-chapter"},Se={__name:"BookItems",props:["books","isSearch"],emits:["bookClick"],setup(n,{emit:c}){const y=n;U(t=>({"247f0a81":a(m)}));const S=t=>c("bookClick",t),x=t=>/^data:/.test(t)?t:location.origin+"/cover?path="+encodeURIComponent(t),m=Q(()=>y.isSearch?"space-between":"flex-start");return(t,C)=>{const R=N;return l(),d("div",re,[e("div",ie,[(l(!0),d(V,null,P(n.books,r=>{var f;return l(),d("div",{class:"book",key:r.bookUrl,onClick:i=>S(r)},[e("div",de,[(l(),d("img",{class:"cover",src:x(r.coverUrl),key:r.coverUrl,alt:"",loading:"lazy"},null,8,ue))]),e("div",he,[e("div",pe,u(r.name),1),e("div",_e,[e("div",ve,u(r.author),1),n.isSearch?(l(),d("div",ge,[(l(!0),d(V,null,P((f=r.kind)==null?void 0:f.split(",").slice(0,2),i=>(l(),$(R,{key:i},{default:b(()=>[z(u(i),1)]),_:2},1024))),128))])):I("",!0),n.isSearch?I("",!0):(l(),d("div",me,[fe,e("div",we,"共"+u(r.totalChapterNum)+"章",1),Ae,e("div",Ie,u(a(oe)(r.lastCheckTime)),1)]))]),n.isSearch?(l(),d("div",ke,u(r.intro),1)):I("",!0),n.isSearch?I("",!0):(l(),d("div",Be," 已读:"+u(r.durChapterTitle),1)),e("div",ye,"最新:"+u(r.latestChapterTitle),1)])],8,le)}),128))])])}}},xe=W(Se,[["__scopeId","data-v-6da0ccca"]]);const Ce="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAECUlEQVRYR7WXTYhcRRDHq3pY9yKrYBQ8KBsjgvHgwRhiQBTjYZm4Xe8NusawhwS/o9GLoKhgBGPAgJd1NdGIXwtZTbRf9Rqzl6gHTVyDeIkIgnEOghAM6oKHzTJd0sO8Zaa338zb7NjwmJn++Ndv+lVVVyOsoM3Ozl69sLBAiHiDc26NUuoKv9w5d14p9aeI/DI4OMgjIyN/lJXFMhOttQ8BgBaR0TLzEXEGAKzW+lCv+V0BmLmGiLtF5M5eQrFxRPxaRCaI6LOi9YUAzPwGADxxMYYjayaJ6MkoZKyTmU8AwF19Mp7LfElEW0LNZTvAzIcBYFufjedy00T0QLt2B4AxZo9S6qX/yXhT1jn3cpqme3IbSwDM/DgAvNlu3Dm3Uyl1HAA2IOJ2EdleEu5Io9H4EBHPVCqVLSISRsMuInrLazUBpqamhoaGhr4TkRsDgLVpmtbzPmPMLQBwOwD4vvzxw8P5IyJztVrtVL4my7L1iPhTx7Yj/jw/P79pfHx8vgmQZdkLiPhK+O8GBgauqVarv5f819FpxpjLlVJ/hYMi8mKSJHubAMz8KwBcF1EYI6IjqwRIlFImonGWiNZhlmVVRDxWYGTVAMx8HwB8EtMXka1orT0gIo9GJrxNRLH+FW8IMx8EgEeW5QDEgx5gTkQ2Bk7yr9b60hVb6rKAmc8BwJWBne+x4P3XiWhtPwGstV9FzpSzHuBvALgsMHaaiDp2ZbUwWZZNIuKuQOcfD7AAAJeEcaq1Xr9ao+3rmdknnscCzQse4LdWEukYazQaa2q12vl+QTDztwCwOdCr+zA8iYi3RQwREdl+ADDz9QDwIwB0OLaInPJRcEhEHoyEyAmt9d39ALDW2lg1hYjv+lfgC4WJgkTxcJIkPcuqbpC+qgKATwvm7PYAGwDgdBeRZ4notYvZCWPMDqXUe13W3to8C6y10yJyv//u6zj/2R6ziPiRiBwt6xPMrBExFZEdRcYR8WOt9bb8MNoKAJ+3Jvtwed05d4dSKtz+c4h4VGsdrRWttZMici8AXFVix+4homNLBUmWZQcQMc/9x4mommXZ84i4t11MKbV5dHR06bxvH5uZmbnZOfdN6O0RmMNE1CxulgCstdeKyBcAcFPrVTyltZ4wxiSVSuXplkhda72zh9P1rClFZFOSJHMdAP5Hq3rxR6eH+IGIvIOuqFlr94nIc10WdRzxy6riAMJnr2nn3JlcME3TppMWNWvtfhF5pmB8WX0RvZgEEEtaYUUbM2KtfUdE/FUubNHipvBmZIxZp5TaDwBprlQGIHLqzSHiPq01x4B7Xk6Z2d8TfDwPlwFozfd1f90598Hi4uKrY2NjFwrzQVkP81nNi/byAWOMv8gOp2n6fhnt/wDqJrRWLmhIrwAAAABJRU5ErkJggg==";const M=n=>(J("data-v-b636eaeb"),n=n(),D(),n),Re={class:"index-wrapper"},Ee={class:"navigation-wrapper"},be=M(()=>e("div",{class:"navigation-title-wrapper"},[e("div",{class:"navigation-title"},"阅读"),e("div",{class:"navigation-sub-title"},"清风不识字,何故乱翻书")],-1)),ze={class:"search-wrapper"},Me={class:"bottom-wrapper"},Te={class:"recent-wrapper"},Ve=M(()=>e("div",{class:"recent-title"},"最近阅读",-1)),Pe={class:"reading-recent"},Le={class:"setting-wrapper"},Ne=M(()=>e("div",{class:"setting-title"},"基本设定",-1)),Je={class:"setting-item"},De={class:"bottom-icons"},We={href:"https://github.com/gedoor/legado_web_bookshelf",target:"_blank"},Oe={class:"bottom-icon"},Ze=["src"],He={__name:"BookShelf",setup(n){const c=ce(),{connectStatus:y,connectType:S,newConnect:x,shelf:m}=q(c),t=g({name:"尚无阅读记录",author:"",url:"",chapterIndex:0,chapterPos:0}),C=g(null),{showLoading:R,closeLoading:r,loadingWrapper:f}=ne(C,"正在获取书籍信息"),i=g([]),h=g(""),w=g(!1);G(()=>{if(!(w.value&&h.value!="")){if(w.value=!1,i.value=[],h.value==""){i.value=m.value;return}i.value=m.value.filter(s=>s.name.includes(h.value)||s.author.includes(h.value))}});const Z=()=>{h.value!=""&&(i.value=[],c.clearSearchBooks(),R(),w.value=!0,E.search(h.value,s=>{try{c.setSearchBooks(JSON.parse(s)),c.searchBooks.forEach(o=>i.value.push(o))}catch(o){throw k.error("后端数据错误"),o}},()=>{r(),i.value.length==0&&k.info("搜索结果为空")}))},H=()=>{},F=X(),K=async s=>{const{bookUrl:o,name:_,author:p,durChapteLine truncated
@@ -1 +0,0 @@
import{a2 as U,n as Q,o as l,d,g as e,F as P,P as L,t as u,c as $,w as z,f as M,M as I,u as a,a3 as N,p as J,i as D,s as q,z as g,O as G,a4 as X,T as j,k,e as B,A as ee,L as te,v as b,I as se,B as ae}from"./vendor-b9134af1.js";import{d as oe,u as ne}from"./loading-004d5aaf.js";import{_ as W,u as ce,A as E}from"./index-7b5c29c2.js";const O=n=>(J("data-v-907d02e8"),n=n(),D(),n),re={class:"books-wrapper"},ie={class:"wrapper"},le=["onClick"],de={class:"cover-img"},ue=["src"],he={class:"info"},pe={class:"name"},_e={class:"sub"},ve={class:"author"},ge={key:0,class:"tags"},me={key:1,class:"update-info"},fe=O(()=>e("div",{class:"dot"},"•",-1)),we={class:"size"},Ae=O(()=>e("div",{class:"dot"},"•",-1)),Ie={class:"date"},ke={key:0,class:"intro"},Be={key:1,class:"dur-chapter"},ye={class:"last-chapter"},Se={__name:"BookItems",props:["books","isSearch"],emits:["bookClick"],setup(n,{emit:c}){const y=n;U(t=>({"4253f082":a(m)}));const S=t=>c("bookClick",t),x=t=>/^data:/.test(t)?t:location.origin+"/cover?path="+encodeURIComponent(t),m=Q(()=>y.isSearch?"space-between":"flex-start");return(t,C)=>{const R=N;return l(),d("div",re,[e("div",ie,[(l(!0),d(P,null,L(n.books,r=>{var f;return l(),d("div",{class:"book",key:r.bookUrl,onClick:i=>S(r)},[e("div",de,[(l(),d("img",{class:"cover",src:x(r.coverUrl),key:r.coverUrl,alt:"",loading:"lazy"},null,8,ue))]),e("div",he,[e("div",pe,u(r.name),1),e("div",_e,[e("div",ve,u(r.author),1),n.isSearch?(l(),d("div",ge,[(l(!0),d(P,null,L((f=r.kind)==null?void 0:f.split(",").slice(0,2),i=>(l(),$(R,{key:i},{default:z(()=>[M(u(i),1)]),_:2},1024))),128))])):I("",!0),n.isSearch?I("",!0):(l(),d("div",me,[fe,e("div",we,"共"+u(r.totalChapterNum)+"章",1),Ae,e("div",Ie,u(a(oe)(r.lastCheckTime)),1)]))]),n.isSearch?(l(),d("div",ke,u(r.intro),1)):I("",!0),n.isSearch?I("",!0):(l(),d("div",Be," 已读:"+u(r.durChapterTitle),1)),e("div",ye,"最新:"+u(r.latestChapterTitle),1)])],8,le)}),128))])])}}},xe=W(Se,[["__scopeId","data-v-907d02e8"]]);const Ce="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAECUlEQVRYR7WXTYhcRRDHq3pY9yKrYBQ8KBsjgvHgwRhiQBTjYZm4Xe8NusawhwS/o9GLoKhgBGPAgJd1NdGIXwtZTbRf9Rqzl6gHTVyDeIkIgnEOghAM6oKHzTJd0sO8Zaa338zb7NjwmJn++Ndv+lVVVyOsoM3Ozl69sLBAiHiDc26NUuoKv9w5d14p9aeI/DI4OMgjIyN/lJXFMhOttQ8BgBaR0TLzEXEGAKzW+lCv+V0BmLmGiLtF5M5eQrFxRPxaRCaI6LOi9YUAzPwGADxxMYYjayaJ6MkoZKyTmU8AwF19Mp7LfElEW0LNZTvAzIcBYFufjedy00T0QLt2B4AxZo9S6qX/yXhT1jn3cpqme3IbSwDM/DgAvNlu3Dm3Uyl1HAA2IOJ2EdleEu5Io9H4EBHPVCqVLSISRsMuInrLazUBpqamhoaGhr4TkRsDgLVpmtbzPmPMLQBwOwD4vvzxw8P5IyJztVrtVL4my7L1iPhTx7Yj/jw/P79pfHx8vgmQZdkLiPhK+O8GBgauqVarv5f819FpxpjLlVJ/hYMi8mKSJHubAMz8KwBcF1EYI6IjqwRIlFImonGWiNZhlmVVRDxWYGTVAMx8HwB8EtMXka1orT0gIo9GJrxNRLH+FW8IMx8EgEeW5QDEgx5gTkQ2Bk7yr9b60hVb6rKAmc8BwJWBne+x4P3XiWhtPwGstV9FzpSzHuBvALgsMHaaiDp2ZbUwWZZNIuKuQOcfD7AAAJeEcaq1Xr9ao+3rmdknnscCzQse4LdWEukYazQaa2q12vl+QTDztwCwOdCr+zA8iYi3RQwREdl+ADDz9QDwIwB0OLaInPJRcEhEHoyEyAmt9d39ALDW2lg1hYjv+lfgC4WJgkTxcJIkPcuqbpC+qgKATwvm7PYAGwDgdBeRZ4notYvZCWPMDqXUe13W3to8C6y10yJyv//u6zj/2R6ziPiRiBwt6xPMrBExFZEdRcYR8WOt9bb8MNoKAJ+3Jvtwed05d4dSKtz+c4h4VGsdrRWttZMici8AXFVix+4homNLBUmWZQcQMc/9x4mommXZ84i4t11MKbV5dHR06bxvH5uZmbnZOfdN6O0RmMNE1CxulgCstdeKyBcAcFPrVTyltZ4wxiSVSuXplkhda72zh9P1rClFZFOSJHMdAP5Hq3rxR6eH+IGIvIOuqFlr94nIc10WdRzxy6riAMJnr2nn3JlcME3TppMWNWvtfhF5pmB8WX0RvZgEEEtaYUUbM2KtfUdE/FUubNHipvBmZIxZp5TaDwBprlQGIHLqzSHiPq01x4B7Xk6Z2d8TfDwPlwFozfd1f90598Hi4uKrY2NjFwrzQVkP81nNi/byAWOMv8gOp2n6fhnt/wDqJrRWLmhIrwAAAABJRU5ErkJggg==";const T=n=>(J("data-v-1fc5c811"),n=n(),D(),n),Re={class:"index-wrapper"},Ee={class:"navigation-wrapper"},ze=T(()=>e("div",{class:"navigation-title-wrapper"},[e("div",{class:"navigation-title"},"阅读"),e("div",{class:"navigation-sub-title"},"清风不识字,何故乱翻书")],-1)),Me={class:"search-wrapper"},Te={class:"bottom-wrapper"},Ve={class:"recent-wrapper"},Pe=T(()=>e("div",{class:"recent-title"},"最近阅读",-1)),Le={class:"reading-recent"},be={class:"setting-wrapper"},Ne=T(()=>e("div",{class:"setting-title"},"基本设定",-1)),Je={class:"setting-item"},De={class:"bottom-icons"},We={href:"https://github.com/gedoor/legado_web_bookshelf",target:"_blank"},Oe={class:"bottom-icon"},Ze=["src"],He={__name:"BookShelf",setup(n){const c=ce(),{connectStatus:y,connectType:S,newConnect:x,shelf:m}=q(c),t=g({name:"尚无阅读记录",author:"",url:"",chapterIndex:0,chapterPos:0}),C=g(null),{showLoading:R,closeLoading:r,loadingWrapper:f}=ne(C,"正在获取书籍信息"),i=g([]),h=g(""),w=g(!1);G(()=>{if(!(w.value&&h.value!="")){if(w.value=!1,i.value=[],h.value==""){i.value=m.value;return}i.value=m.value.filter(s=>s.name.includes(h.value)||s.author.includes(h.value))}});const Z=()=>{h.value!=""&&(i.value=[],c.clearSearchBooks(),R(),w.value=!0,E.search(h.value,s=>{try{c.setSearchBooks(JSON.parse(s)),c.searchBooks.forEach(o=>i.value.push(o))}catch(o){throw k.error("后端数据错误"),o}},()=>{r(),i.value.length==0&&k.info("搜索结果为空")}))},H=()=>{},F=X(),K=async s=>{const{bookUrl:o,name:_,author:p,durCLine truncated
@@ -0,0 +1 @@
@charset "UTF-8";.books-wrapper[data-v-6da0ccca]{overflow:scroll}.books-wrapper .wrapper[data-v-6da0ccca]{display:grid;grid-template-columns:repeat(auto-fill,380px);justify-content:space-around;grid-gap:10px}.books-wrapper .wrapper .book[data-v-6da0ccca]{user-select:none;display:flex;cursor:pointer;margin-bottom:18px;padding:24px;width:360px;flex-direction:row;justify-content:space-around}.books-wrapper .wrapper .book .cover-img[data-v-6da0ccca],.books-wrapper .wrapper .book .cover-img .cover[data-v-6da0ccca]{width:84px;height:112px}.books-wrapper .wrapper .book .info[data-v-6da0ccca]{display:flex;flex-direction:column;justify-content:space-around;align-items:left;height:112px;margin-left:20px;flex:1}.books-wrapper .wrapper .book .info .name[data-v-6da0ccca]{width:fit-content;font-size:16px;font-weight:700;color:#33373d}.books-wrapper .wrapper .book .info .sub[data-v-6da0ccca]{display:flex;flex-direction:row;align-items:baseline;justify-content:var(--247f0a81);font-size:12px;font-weight:600;color:#6b6b6b}.books-wrapper .wrapper .book .info .sub .tags[data-v-6da0ccca] .el-tag{margin-right:.5em}.books-wrapper .wrapper .book .info .sub .update-info[data-v-6da0ccca]{display:flex}.books-wrapper .wrapper .book .info .sub .update-info .dot[data-v-6da0ccca]{margin:0 7px}.books-wrapper .wrapper .book .info .intro[data-v-6da0ccca],.books-wrapper .wrapper .book .info .dur-chapter[data-v-6da0ccca],.books-wrapper .wrapper .book .info .last-chapter[data-v-6da0ccca]{color:#969ba3;font-size:13px;margin-top:3px;font-weight:500;word-wrap:break-word;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;text-align:left}.books-wrapper .wrapper .book[data-v-6da0ccca]:hover{background:rgba(0,0,0,.1);transition-duration:.5s}.books-wrapper .wrapper[data-v-6da0ccca]:last-child{margin-right:auto}.books-wrapper[data-v-6da0ccca]::-webkit-scrollbar{width:0!important}@media screen and (max-width: 750px){.books-wrapper .wrapper[data-v-6da0ccca]{display:flex;flex-direction:column}.books-wrapper .wrapper .book[data-v-6da0ccca]{box-sizing:border-box;width:100%;margin-bottom:0;padding:10px 20px}}@font-face{font-family:FZZCYSK;src:local("☺"),url(./shelffont-16b1b95a.ttf);font-style:normal;font-weight:400}.index-wrapper[data-v-b636eaeb]{height:100%;width:100%;display:flex;flex-direction:row}.index-wrapper .navigation-wrapper[data-v-b636eaeb]{width:260px;min-width:260px;padding:48px 36px;background-color:#f7f7f7}.index-wrapper .navigation-wrapper .navigation-title[data-v-b636eaeb]{font-size:24px;font-weight:500;font-family:FZZCYSK}.index-wrapper .navigation-wrapper .navigation-sub-title[data-v-b636eaeb]{font-size:16px;font-weight:300;font-family:FZZCYSK;margin-top:16px;color:#b1b1b1}.index-wrapper .navigation-wrapper .search-wrapper .search-input[data-v-b636eaeb]{border-radius:50%;margin-top:24px}.index-wrapper .navigation-wrapper .search-wrapper .search-input[data-v-b636eaeb] .el-input__wrapper{border-radius:50px;border-color:#e3e3e3}.index-wrapper .navigation-wrapper .recent-wrapper[data-v-b636eaeb]{margin-top:36px}.index-wrapper .navigation-wrapper .recent-wrapper .recent-title[data-v-b636eaeb]{font-size:14px;color:#b1b1b1;font-family:FZZCYSK}.index-wrapper .navigation-wrapper .recent-wrapper .reading-recent[data-v-b636eaeb]{margin:18px 0}.index-wrapper .navigation-wrapper .recent-wrapper .reading-recent .recent-book[data-v-b636eaeb]{font-size:10px;cursor:pointer}.index-wrapper .navigation-wrapper .setting-wrapper[data-v-b636eaeb]{margin-top:36px}.index-wrapper .navigation-wrapper .setting-wrapper .setting-title[data-v-b636eaeb]{font-size:14px;color:#b1b1b1;font-family:FZZCYSK}.index-wrapper .navigation-wrapper .setting-wrapper .no-point[data-v-b636eaeb]{pointer-events:none}.index-wrapper .navigation-wrapper .setting-wrapper .setting-connect[data-v-b636eaeb]{font-size:8px;margin-top:16px;cursor:pointer}.index-wrapper .navigation-wrapper .bottom-icons[data-v-b636eaeb]{position:fixed;bottom:0;height:120px;width:260px;align-items:center;display:flex;flex-direction:row}.index-wrapper .shelf-wrapper[data-v-b636eaeb]{padding:48px;width:100%;display:flex;flex-direction:column}@media screen and (max-width: 428px){.index-wrapper[data-v-b636eaeb]{overflow-x:hidden;flex-direction:column}.index-wrapper .navigation-wrapper[data-v-b636eaeb]{padding:20px 24px;box-sizing:border-box;width:100%}.index-wrapper .navigation-wrapper .navigation-title-wrapper[data-v-b636eaeb]{white-space:nowrap;display:flex;justify-content:space-between;align-items:flex-end}.index-wrapper .navigation-wrapper .bottom-wrapper[data-v-b636eaeb],.index-wrapper .navigation-wrapper .bottom-icons[data-v-b636eaeb]{display:none}.index-wrapper .shelf-wrapper[data-v-b636eaeb]{padding:0}.index-wrapper .shelf-wrapper[data-v-b636eaeb] .el-loading-spinner{display:none}}
@@ -0,0 +1 @@
import{A as f,u as i}from"./index-09b6d8d8.js";import"./vendor-b9134af1.js";f.getReadConfig().then(e=>{var t=e.data.data;if(t){const a=i();let o=JSON.parse(t),s=a.config;o=Object.assign(s,o),a.setConfig(o)}});
@@ -1 +0,0 @@
import{u as n,A as r}from"./index-7b5c29c2.js";import"./vendor-b9134af1.js";const i=n();i.setMiniInterface(window.innerWidth<750);window.onresize=()=>{i.setMiniInterface(window.innerWidth<750)};r.getReadConfig().then(a=>{var e=a.data.data;if(e){const t=n();let o=JSON.parse(e),s=t.config;o=Object.assign(s,o),t.setConfig(o)}});
@@ -1,4 +1,4 @@
import{r as Ue,o as l,c as C,a as se,b as ie,d as E,e as p,w as u,f as b,u as i,l as H,g,F as P,E as Ee,h as he,p as Ve,i as Ne,j as Te,k as U,m as ge,s as X,n as W,t as Q,q as _e,v as me,x as le,y as Ie,z as D,A as j,B as Se,C as $e,D as Le,G as ce,V as Re,H as Oe,I as Y,J as Pe,K as ye,L as De,M as L,N as Je,O as Ae,P as A,Q as fe,R as be,S as q,T as Ke,U as je,W as Me,X as Fe,Y as He,Z as qe,_ as ze,$ as We,a0 as Ge,a1 as Qe}from"./vendor-b9134af1.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const n of document.querySelectorAll('link[rel="modulepreload"]'))s(n);new MutationObserver(n=>{for(const r of n)if(r.type==="childList")for(const a of r.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&s(a)}).observe(document,{childList:!0,subtree:!0});function o(n){const r={};return n.integrity&&(r.integrity=n.integrity),n.referrerPolicy&&(r.referrerPolicy=n.referrerPolicy),n.crossOrigin==="use-credentials"?r.credentials="include":n.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function s(n){if(n.ep)return;n.ep=!0;const r=o(n);fetch(n.href,r)}})();const Xe="modulepreload",Ye=function(e,t){return new URL(e,t).href},ue={},ne=function(t,o,s){if(!o||o.length===0)return t();const n=document.getElementsByTagName("link");return Promise.all(o.map(r=>{if(r=Ye(r,s),r in ue)return;ue[r]=!0;const a=r.endsWith(".css"),k=a?'[rel="stylesheet"]':"";if(!!s)for(let w=n.length-1;w>=0;w--){const x=n[w];if(x.href===r&&(!a||x.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${r}"]${k}`))return;const m=document.createElement("link");if(m.rel=a?"stylesheet":Xe,a||(m.as="script",m.crossOrigin=""),m.href=r,document.head.appendChild(m),a)return new Promise((w,x)=>{m.addEventListener("load",w),m.addEventListener("error",()=>x(new Error(`Unable to preload CSS for ${r}`)))})})).then(()=>t())},J=(e,t)=>{const o=e.__vccOpts||e;for(const[s,n]of t)o[s]=n;return o},Ze={};function et(e,t){const o=Ue("router-view");return l(),C(o)}const tt=J(Ze,[["render",et]]),ke=[{path:"/",name:"shelf",component:()=>ne(()=>import("./BookShelf-a8c630a5.js"),["./BookShelf-a8c630a5.js","./vendor-b9134af1.js","./vendor-5578283d.css","./loading-004d5aaf.js","./loading-c009631e.css","./BookShelf-14e1aaec.css"],import.meta.url)},{path:"/chapter",name:"chapter",component:()=>ne(()=>import("./BookChapter-25bb8757.js"),["./BookChapter-25bb8757.js","./vendor-b9134af1.js","./vendor-5578283d.css","./loading-004d5aaf.js","./loading-c009631e.css","./BookChapter-5107369c.css"],import.meta.url)}];se({history:ie(),routes:ke});const R=e=>(Ve("data-v-aee57c78"),e=e(),Ne(),e),ot=R(()=>g("br",null,null,-1)),nt=R(()=>g("br",null,null,-1)),rt=R(()=>g("br",null,null,-1)),st=R(()=>g("br",null,null,-1)),it=R(()=>g("br",null,null,-1)),lt={style:{"margin-top":"20px"}},at=R(()=>g("code",null,"^$()[]{}.?+*|",-1)),ct=R(()=>g("br",null,null,-1)),ut=R(()=>g("code",null,"(?s)",-1)),dt=R(()=>g("br",null,null,-1)),pt=R(()=>g("code",null,"(?m)",-1)),ht=R(()=>g("br",null,null,-1)),gt=R(()=>g("code",null,"(?i)",-1)),_t=R(()=>g("br",null,null,-1)),mt={__name:"SourceHelp",setup(e){return(t,o)=>{const s=Ee,n=he;return l(),E(P,null,[p(s,{icon:i(H),href:"https://alanskycn.gitee.io/teachme/",target:"_blank"},{default:u(()=>[b("书源制作教程")]),_:1},8,["icon"]),ot,p(s,{icon:i(H),href:"https://zhuanlan.zhihu.com/p/29436838",target:"_blank"},{default:u(()=>[b("xpath基础教程")]),_:1},8,["icon"]),nt,p(s,{icon:i(H),href:"https://zhuanlan.zhihu.com/p/32187820",target:"_blank"},{default:u(()=>[b("xpath高级教程")]),_:1},8,["icon"]),rt,p(s,{icon:i(H),href:"https://www.w3cschool.cn/regex_rmjc",target:"_blank"},{default:u(()=>[b("正则表达式教程")]),_:1},8,["icon"]),st,p(s,{icon:i(H),href:"https://regexr-cn.com/",target:"_blank"},{default:u(()=>[b("正则表达式在线验证工具")]),_:1},8,["icon"]),it,g("div",lt,[g("span",null,[p(n,null,{default:u(()=>[at,b(" 这些是Java正则特殊符号,匹配需转义")]),_:1})]),ct,g("span",null,[p(n,null,{default:u(()=>[ut,b(" 前缀表示跨行解析")]),_:1})]),dt,g("span",null,[p(n,null,{default:u(()=>[pt,b(" 前缀表示逐行匹配")]),_:1})]),ht,g("span",null,[p(n,null,{default:u(()=>[gt,b(" 前缀表示忽略大小写")]),_:1})]),_t])],64)}}},St=J(mt,[["__scopeId","data-v-aee57c78"]]),yt=1e3,V=Te.create({baseURL:location.origin,timeout:120*yt}),{hostname:ve,port:Ce}=new URL(location.origin),ft=/source/i.test(location.href),bt=e=>{throw ft&&U({message:"后端错误,检查网络或者阅读app",type:"error"}),e};V.interceptors.response.use(e=>e,bt);const kt=()=>V.get("/getReadConfig"),vt=e=>V.post("/saveReadConfig",e),Ct=e=>V.post("/saveBookProgress",e),wt=e=>{e&&navigator.sendBeacon(`${location.origin}/saveBookProgress`,JSON.stringify(e))},xt=()=>V.get("/getBookshelf"),Bt=e=>V.get("/getChapterList?url="+encodeURIComponent(e)),Ut=(e,t)=>V.get("/getBookContent?url="+encodeURIComponent(e)+"&index="+t),Et=(e,t,o)=>{const sLine truncated
import{r as Ue,o as l,c as C,a as se,b as ie,d as E,e as p,w as u,f as b,u as i,l as H,g,F as P,E as Ee,h as he,p as Ve,i as Ne,j as Te,k as U,m as ge,s as X,n as W,t as Q,q as _e,v as me,x as le,y as Ie,z as D,A as j,B as Se,C as $e,D as Le,G as ce,V as Re,H as Oe,I as Y,J as Pe,K as ye,L as De,M as L,N as Je,O as Ae,P as A,Q as fe,R as be,S as q,T as Ke,U as je,W as Me,X as Fe,Y as He,Z as qe,_ as ze,$ as We,a0 as Ge,a1 as Qe}from"./vendor-b9134af1.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const n of document.querySelectorAll('link[rel="modulepreload"]'))s(n);new MutationObserver(n=>{for(const r of n)if(r.type==="childList")for(const a of r.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&s(a)}).observe(document,{childList:!0,subtree:!0});function o(n){const r={};return n.integrity&&(r.integrity=n.integrity),n.referrerPolicy&&(r.referrerPolicy=n.referrerPolicy),n.crossOrigin==="use-credentials"?r.credentials="include":n.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function s(n){if(n.ep)return;n.ep=!0;const r=o(n);fetch(n.href,r)}})();const Xe="modulepreload",Ye=function(e,t){return new URL(e,t).href},ue={},ne=function(t,o,s){if(!o||o.length===0)return t();const n=document.getElementsByTagName("link");return Promise.all(o.map(r=>{if(r=Ye(r,s),r in ue)return;ue[r]=!0;const a=r.endsWith(".css"),k=a?'[rel="stylesheet"]':"";if(!!s)for(let w=n.length-1;w>=0;w--){const x=n[w];if(x.href===r&&(!a||x.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${r}"]${k}`))return;const m=document.createElement("link");if(m.rel=a?"stylesheet":Xe,a||(m.as="script",m.crossOrigin=""),m.href=r,document.head.appendChild(m),a)return new Promise((w,x)=>{m.addEventListener("load",w),m.addEventListener("error",()=>x(new Error(`Unable to preload CSS for ${r}`)))})})).then(()=>t())},J=(e,t)=>{const o=e.__vccOpts||e;for(const[s,n]of t)o[s]=n;return o},Ze={};function et(e,t){const o=Ue("router-view");return l(),C(o)}const tt=J(Ze,[["render",et]]),ke=[{path:"/",name:"shelf",component:()=>ne(()=>import("./BookShelf-a19e5e8f.js"),["./BookShelf-a19e5e8f.js","./vendor-b9134af1.js","./vendor-5578283d.css","./loading-c709a05a.js","./loading-c009631e.css","./BookShelf-c514e936.css"],import.meta.url)},{path:"/chapter",name:"chapter",component:()=>ne(()=>import("./BookChapter-d9aa70d3.js"),["./BookChapter-d9aa70d3.js","./vendor-b9134af1.js","./vendor-5578283d.css","./loading-c709a05a.js","./loading-c009631e.css","./BookChapter-b8b76f81.css"],import.meta.url)}];se({history:ie(),routes:ke});const R=e=>(Ve("data-v-aee57c78"),e=e(),Ne(),e),ot=R(()=>g("br",null,null,-1)),nt=R(()=>g("br",null,null,-1)),rt=R(()=>g("br",null,null,-1)),st=R(()=>g("br",null,null,-1)),it=R(()=>g("br",null,null,-1)),lt={style:{"margin-top":"20px"}},at=R(()=>g("code",null,"^$()[]{}.?+*|",-1)),ct=R(()=>g("br",null,null,-1)),ut=R(()=>g("code",null,"(?s)",-1)),dt=R(()=>g("br",null,null,-1)),pt=R(()=>g("code",null,"(?m)",-1)),ht=R(()=>g("br",null,null,-1)),gt=R(()=>g("code",null,"(?i)",-1)),_t=R(()=>g("br",null,null,-1)),mt={__name:"SourceHelp",setup(e){return(t,o)=>{const s=Ee,n=he;return l(),E(P,null,[p(s,{icon:i(H),href:"https://alanskycn.gitee.io/teachme/",target:"_blank"},{default:u(()=>[b("书源制作教程")]),_:1},8,["icon"]),ot,p(s,{icon:i(H),href:"https://zhuanlan.zhihu.com/p/29436838",target:"_blank"},{default:u(()=>[b("xpath基础教程")]),_:1},8,["icon"]),nt,p(s,{icon:i(H),href:"https://zhuanlan.zhihu.com/p/32187820",target:"_blank"},{default:u(()=>[b("xpath高级教程")]),_:1},8,["icon"]),rt,p(s,{icon:i(H),href:"https://www.w3cschool.cn/regex_rmjc",target:"_blank"},{default:u(()=>[b("正则表达式教程")]),_:1},8,["icon"]),st,p(s,{icon:i(H),href:"https://regexr-cn.com/",target:"_blank"},{default:u(()=>[b("正则表达式在线验证工具")]),_:1},8,["icon"]),it,g("div",lt,[g("span",null,[p(n,null,{default:u(()=>[at,b(" 这些是Java正则特殊符号,匹配需转义")]),_:1})]),ct,g("span",null,[p(n,null,{default:u(()=>[ut,b(" 前缀表示跨行解析")]),_:1})]),dt,g("span",null,[p(n,null,{default:u(()=>[pt,b(" 前缀表示逐行匹配")]),_:1})]),ht,g("span",null,[p(n,null,{default:u(()=>[gt,b(" 前缀表示忽略大小写")]),_:1})]),_t])],64)}}},St=J(mt,[["__scopeId","data-v-aee57c78"]]),yt=1e3,V=Te.create({baseURL:location.origin,timeout:120*yt}),{hostname:ve,port:Ce}=new URL(location.origin),ft=/source/i.test(location.href),bt=e=>{throw ft&&U({message:"后端错误,检查网络或者阅读app",type:"error"}),e};V.interceptors.response.use(e=>e,bt);const kt=()=>V.get("/getReadConfig"),vt=e=>V.post("/saveReadConfig",e),Ct=e=>V.post("/saveBookProgress",e),wt=e=>{e&&navigator.sendBeacon(`${location.origin}/saveBookProgress`,JSON.stringify(e))},xt=()=>V.get("/getBookshelf"),Bt=e=>V.get("/getChapterList?url="+encodeURIComponent(e)),Ut=(e,t)=>V.get("/getBookContent?url="+encodeURIComponent(e)+"&index="+t),Et=(e,t,o)=>{const sLine truncated
`},r=async()=>{o.value="",await K.saveSource(t.currentSource),K.debug(t.currentSourceUrl,s.value||t.searchKey,n,t.debugFinish)},a=W(()=>/bookSource/.test(window.location.href));return(k,_)=>{const m=Y;return l(),E(P,null,[i(a)?(l(),C(m,{key:0,id:"debug-key",modelValue:i(s),"onUpdate:modelValue":_[0]||(_[0]=w=>j(s)?s.value=w:null),placeholder:"搜索书名、作者","prefix-icon":i(Se),style:{"padding-bottom":"4px"},onKeydown:De(r,["enter"])},null,8,["modelValue","prefix-icon","onKeydown"])):L("",!0),p(m,{id:"debug-text",modelValue:i(o),"onUpdate:modelValue":_[1]||(_[1]=w=>j(o)?o.value=w:null),type:"textarea",readonly:"",rows:"29",placeholder:"这里用于输出调试信息"},null,8,["modelValue"])],64)}}},qt=J(Ht,[["__scopeId","data-v-372e8d43"]]),So=ge("book",{state:()=>({connectStatus:"正在连接后端服务器……",connectType:"",newConnect:!0,searchBooks:[],shelf:[],catalog:[],readingBook:{index:0,chapterPos:0},popCataVisible:!1,contentLoading:!0,showContent:!1,config:{theme:0,font:0,fontSize:18,readWidth:800,infiniteLoading:!1,customFontName:"",spacing:{paragraph:1,line:.8,letter:0}},miniInterface:!1,readSettingsVisible:!1}),getters:{bookProgress:e=>{var a;if(e.catalog.length==0)return;const{index:t,chapterPos:o,bookName:s,bookAuthor:n}=e.readingBook;let r=(a=e.catalog[t])==null?void 0:a.title;if(r)return{name:s,author:n,durChapterIndex:t,durChapterPos:o,durChapterTime:new Date().getTime(),durChapterTitle:r}}},actions:{setConnectStatus(e){this.connectStatus=e},setConnectType(e){this.connectType=e},setNewConnect(e){this.newConnect=e},addBooks(e){this.shelf=e},setCatalog(e){this.catalog=e},setPopCataVisible(e){this.popCataVisible=e},setContentLoading(e){this.contentLoading=e},setReadingBook(e){this.readingBook=e},setConfig(e){Object.assign(this.config,e)},setReadSettingsVisible(e){this.readSettingsVisible=e},setShowContent(e){this.showContent=e},setMiniInterface(e){this.miniInterface=e},async setSearchBooks(e){e.forEach(t=>{this.shelf.find(s=>s.bookUrl==t.bookUrl)===void 0&&this.searchBooks.push(t)})},clearSearchBooks(){this.searchBooks=[]},async saveBookProgress(){return this.bookProgress?K.saveBookProgress(this.bookProgress):Promise.resolve()}}}),zt=Je();const Wt={__name:"SourceJson",setup(e){const t=M(),o=D(""),s=async n=>{try{t.changeEditTabSource(JSON.parse(n))}catch{U({message:"粘贴的源格式错误",type:"error"})}};return Ae(async()=>{let n=t.editTabSource;Object.keys(n).length>0?o.value=JSON.stringify(n,null,4):o.value=""}),(n,r)=>{const a=Y;return l(),C(a,{id:"source-json",modelValue:i(o),"onUpdate:modelValue":r[0]||(r[0]=k=>j(o)?o.value=k:null),type:"textarea",placeholder:"这里输出序列化的JSON数据,可直接导入'阅读'APP",rows:"30",onChange:s,style:{"margin-bottom":"4px"}},null,8,["modelValue"])}}},Gt=J(Wt,[["__scopeId","data-v-7e91a802"]]);const Qt={__name:"SourceTabTools",setup(e){const t=M(),{currentTab:o}=X(t),s=D([["editTab","编辑源"],["editDebug","调试源"],["editList","源列表"],["editHelp","帮助信息"]]);return(n,r)=>{const a=Gt,k=qt,_=Ft,m=St,w=fe,x=be;return l(),C(x,{modelValue:i(o),"onUpdate:modelValue":r[0]||(r[0]=B=>j(o)?o.value=B:null)},{default:u(()=>[(l(!0),E(P,null,A(i(s),(B,c)=>(l(),C(w,{key:B[0],name:B[0],label:B[1]},{default:u(()=>[c==0?(l(),C(a,{key:0})):L("",!0),c==1?(l(),C(k,{key:1})):L("",!0),c==2?(l(),C(_,{key:2})):L("",!0),c==3?(l(),C(m,{key:3})):L("",!0)]),_:2},1032,["name","label"]))),128))]),_:1},8,["modelValue"])}}},Xt=J(Qt,[["__scopeId","data-v-dcce2457"]]);const Yt={class:"menu flex-column-center"},Zt={class:"hotkeys-header flex-space-between"},eo=["id"],to={key:0},oo={class:"hotkeys-settings flex-column-center"},no={class:"title"},ro={class:"hotkeys-item__content"},so={key:0},io={key:0},lo={__name:"ToolBar",setup(e){const t=M(),o=()=>{const h=U({message:"加载中……",showClose:!0,duration:0});K.getSources().then(({data:d})=>{d.isSuccess?(t.changeTabName("editList"),t.saveSources(d.data),U({message:`成功拉取${d.data.length}条源`,type:"success"})):U({message:d.errorMsg??"后端错误",type:"error"})}).finally(()=>h.close())},s=()=>{let h=t.sources;if(t.changeTabName("editList"),h.length===0)return U({message:"空空如也",type:"info"});U({message:"正在推送中",type:"info"}),K.saveSources(h).then(({data:d})=>{if(d.isSuccess){let S=d.data;if(Array.isArray(S)){let v="";h.length>S.length&&(v=`
推送失败的源将用红色字体标注!`,t.setPushReturnSources(S)),U({message:`批量推送源到「阅读3.0APP」
共计: ${h.length} 条
@@ -10,4 +10,4 @@ ErrorMsg: ${S.errorMsg}`,type:"error"})}):U({message:"请检查<必填>项是否
名称1::网址(Url)1
名称2::网址(Url)2
...`},{title:"发现筛选",id:"exploreScreen",type:"String",hint:"发现筛选规则"},{title:"列表规则",namespace:"ruleExplore",id:"bookList",type:"String",hint:"选择书籍节点 (规则结果为List<Element>)"},{title:"书名规则",namespace:"ruleExplore",id:"name",type:"String",hint:"选择节点书名 (规则结果为String)"},{title:"作者规则",namespace:"ruleExplore",id:"author",type:"String",hint:"选择节点作者 (规则结果为String)"},{title:"分类规则",namespace:"ruleExplore",id:"kind",type:"String",hint:"选择节点分类信息 (规则结果为String)"},{title:"字数规则",namespace:"ruleExplore",id:"wordCount",type:"String",hint:"选择节点字数信息 (规则结果为String)"},{title:"最新章节",namespace:"ruleExplore",id:"lastChapter",type:"String",hint:"选择节点最新章节 (规则结果为String)"},{title:"简介规则",namespace:"ruleExplore",id:"intro",type:"String",hint:"选择节点书籍简介 (规则结果为String)"},{title:"封面规则",namespace:"ruleExplore",id:"coverUrl",type:"String",hint:"选择节点书籍封面 (规则结果为String类型的url)"},{title:"详情地址",namespace:"ruleExplore",id:"bookUrl",type:"String",hint:"选择书籍详情页网址 (规则结果为String类型的url)"}]},detail:{name:"详情",children:[{title:"预处理",namespace:"ruleBookInfo",id:"init",type:"String",hint:"用于加速详情信息检索,只支持AllInOne规则"},{title:"书名规则",namespace:"ruleBookInfo",id:"name",type:"String",hint:"选择节点书名 (规则结果为String)"},{title:"作者规则",namespace:"ruleBookInfo",id:"author",type:"String",hint:"选择节点作者 (规则结果为String)"},{title:"分类规则",namespace:"ruleBookInfo",id:"kind",type:"String",hint:"选择节点分类信息 (规则结果为String)"},{title:"字数规则",namespace:"ruleBookInfo",id:"wordCount",type:"String",hint:"选择节点字数信息 (规则结果为String)"},{title:"最新章节",namespace:"ruleBookInfo",id:"lastChapter",type:"String",hint:"选择节点最新章节 (规则结果为String)"},{title:"简介规则",namespace:"ruleBookInfo",id:"intro",type:"String",hint:"选择节点书籍简介 (规则结果为String)"},{title:"封面规则",namespace:"ruleBookInfo",id:"coverUrl",type:"String",hint:"选择节点书籍封面 (规则结果为String类型的url)"},{title:"目录地址",namespace:"ruleBookInfo",id:"tocUrl",type:"String",hint:"选择书籍详情页网址 (规则结果为String类型的url, 与详情页相同时可省略)"},{title:"下载URL",namespace:"ruleBookInfo",id:"downloadUrls",type:"String",hint:"文件类书源下载地址 (规则结果为String类型的url, 多个链接返回数组)"},{title:"修改书籍",namespace:"ruleBookInfo",id:"canReName",type:"String",hint:"允许修改书名作者(规则结果为String类型, 默认不允许)"}]},directory:{name:"目录",children:[{title:"预处理",namespace:"ruleToc",id:"preUpdateJs",type:"String",hint:"更新目录前调用JS 动态更新目录链接"},{title:"列表规则",namespace:"ruleToc",id:"chapterList",type:"String",hint:"选择目录列表的章节节点 (规则结果为List<Element>)"},{title:"章节名称",namespace:"ruleToc",id:"chapterName",type:"String",hint:"选择章节名称 (规则结果为String)"},{title:"章节地址",namespace:"ruleToc",id:"chapterUrl",type:"String",hint:"选择章节链接 (规则结果为String类型的Url)"},{title:"卷名标识",namespace:"ruleToc",id:"isVolume",type:"String",hint:"章节名称是否是卷名 (规则结果为Bool)"},{title:"收费标识",namespace:"ruleToc",id:"isVip",type:"String",hint:"章节是否为VIP章节 (规则结果为Bool)"},{title:"购买标识",namespace:"ruleToc",id:"isPay",type:"String",hint:"章节是否为已购买 (规则结果为Bool)"},{title:"章节信息",namespace:"ruleToc",id:"updateTime",type:"String",hint:"选择章节信息 (规则结果为String)"},{title:"翻页规则",namespace:"ruleToc",id:"nextTocUrl",type:"String",hint:"选择目录下一页链接 (规则结果为List<String>或String)"}]},content:{name:"正文",children:[{title:"脚本注入",namespace:"ruleContent",id:"webJs",type:"String",hint:"注入javascript,用于模拟鼠标点击等,必须有返回值,一般为String类型"},{title:"正文规则",namespace:"ruleContent",id:"content",type:"String",hint:"选择正文内容 (规则结果为String)"},{title:"翻页规则",namespace:"ruleContent",id:"nextContentUrl",type:"String",hint:"选择下一分页(不是下一章)链接 (规则结果为String类型的Url)"},{title:"资源正则",namespace:"ruleContent",id:"sourceRegex",type:"String",hint:"匹配资源的url特征,用于嗅探"},{title:"替换规则",namespace:"ruleContent",id:"replaceRegex",type:"String",hint:"多页内容合并后替换,用于正文净化"},{title:"图片样式",namespace:"ruleContent",id:"imageStyle",type:"String",hint:"FULL:铺满 不填:默认样式"},{title:"购买操作",namespace:"ruleContent",id:"payAc Line truncated
名称2::链接2`},{title:"登录地址",id:"loginUrl",type:"String",hint:"填写网站登录网址,仅在需要登录的源有用"},{title:"登录界面",id:"loginUi",type:"String",hint:"自定义登录界面"},{title:"登录检测",id:"loginCheckJs",type:"String",hint:"登录检测js"},{title:"封面解密",id:"coverDecodeJs",type:"String",hint:"封面解密js"},{title:"请求头",id:"header",type:"String",hint:"客户端标识"},{title:"变量说明",id:"variableComment",type:"String",hint:"源变量说明"},{title:"并发率",id:"concurrentRate",type:"String",hint:"并发率"}]},list:{name:"列表",children:[{title:"列表规则",id:"ruleArticles",type:"String",hint:"规则结果为List<Element>"},{title:"翻页规则",id:"ruleNextPage",type:"String",hint:"下一页链接 规则结果为List<String>或String"},{title:"标题规则",id:"ruleTitle",type:"String",hint:"文章标题 规则结果为String"},{title:"时间规则",id:"rulePubDate",type:"String",hint:"文章发布时间 规则结果为String"},{title:"描述规则",id:"ruleDescription",type:"String",hint:"文章简要描述 规则结果为String"},{title:"图片规则",id:"ruleImage",type:"String",hint:"文章图片链接 规则结果为String"},{title:"链接规则",id:"ruleLink",type:"String",hint:"文章链接 规则结果为String"}]},webView:{name:"WebView",children:[{title:"内容规则",id:"ruleContent",type:"String",hint:"文章正文"},{title:"样式规则",id:"style",type:"String",hint:"文章正文样式 填写css"},{title:"注入规则",id:"injectJs",type:"String",hint:"注入网页的JavaScript"},{title:"黑名单",id:"contentBlacklist",type:"String",hint:"webView链接加载黑名单,英文逗号隔开"},{title:"白名单",id:"contentWhitelist",type:"String",hint:"webView链接加载白名单,英文逗号隔开"}]},other:{name:"其他",children:[{title:"列表样式",id:"articleStyle",type:"Array",array:["默认","大图","双列"]},{title:"加载地址",id:"loadWithBaseUrl",type:"Boolean"},{title:"启用JS",id:"enableJs",type:"Boolean"},{title:"启用",id:"enabled",type:"Boolean"},{title:"Cookie",id:"enabledCookieJar",type:"Boolean"},{title:"单URL",id:"singleUrl",type:"Boolean"},{title:"排序编号",id:"customOrder",type:"Number"}]}};const go={class:"editor"},_o={__name:"SourceEditor",setup(e){let t;return/bookSource/i.test(location.href)?(t=po,document.title="书源管理"):(t=ho,document.title="订阅源管理"),(o,s)=>{const n=uo,r=ao,a=Xt;return l(),E("div",go,[p(n,{class:"left",config:i(t)},null,8,["config"]),p(r),p(a,{class:"right"})])}}},pe=J(_o,[["__scopeId","data-v-f572f1de"]]),we=[{path:"/bookSource",name:"book-home",component:pe},{path:"/rssSource",name:"rss-home",component:pe}];se({history:ie(),routes:we});const xe=se({history:ie(),routes:ke.concat(we)});xe.afterEach(e=>{e.name=="shelf"&&(document.title="书架")});Qe(tt).use(zt).use(xe).mount("#app");ne(()=>import("./config-ca1d6d9e.js"),["./config-ca1d6d9e.js","./vendor-b9134af1.js","./vendor-5578283d.css","./config-811f2a0b.css"],import.meta.url);export{K as A,J as _,So as u};
名称2::链接2`},{title:"登录地址",id:"loginUrl",type:"String",hint:"填写网站登录网址,仅在需要登录的源有用"},{title:"登录界面",id:"loginUi",type:"String",hint:"自定义登录界面"},{title:"登录检测",id:"loginCheckJs",type:"String",hint:"登录检测js"},{title:"封面解密",id:"coverDecodeJs",type:"String",hint:"封面解密js"},{title:"请求头",id:"header",type:"String",hint:"客户端标识"},{title:"变量说明",id:"variableComment",type:"String",hint:"源变量说明"},{title:"并发率",id:"concurrentRate",type:"String",hint:"并发率"}]},list:{name:"列表",children:[{title:"列表规则",id:"ruleArticles",type:"String",hint:"规则结果为List<Element>"},{title:"翻页规则",id:"ruleNextPage",type:"String",hint:"下一页链接 规则结果为List<String>或String"},{title:"标题规则",id:"ruleTitle",type:"String",hint:"文章标题 规则结果为String"},{title:"时间规则",id:"rulePubDate",type:"String",hint:"文章发布时间 规则结果为String"},{title:"描述规则",id:"ruleDescription",type:"String",hint:"文章简要描述 规则结果为String"},{title:"图片规则",id:"ruleImage",type:"String",hint:"文章图片链接 规则结果为String"},{title:"链接规则",id:"ruleLink",type:"String",hint:"文章链接 规则结果为String"}]},webView:{name:"WebView",children:[{title:"内容规则",id:"ruleContent",type:"String",hint:"文章正文"},{title:"样式规则",id:"style",type:"String",hint:"文章正文样式 填写css"},{title:"注入规则",id:"injectJs",type:"String",hint:"注入网页的JavaScript"},{title:"黑名单",id:"contentBlacklist",type:"String",hint:"webView链接加载黑名单,英文逗号隔开"},{title:"白名单",id:"contentWhitelist",type:"String",hint:"webView链接加载白名单,英文逗号隔开"}]},other:{name:"其他",children:[{title:"列表样式",id:"articleStyle",type:"Array",array:["默认","大图","双列"]},{title:"加载地址",id:"loadWithBaseUrl",type:"Boolean"},{title:"启用JS",id:"enableJs",type:"Boolean"},{title:"启用",id:"enabled",type:"Boolean"},{title:"Cookie",id:"enabledCookieJar",type:"Boolean"},{title:"单URL",id:"singleUrl",type:"Boolean"},{title:"排序编号",id:"customOrder",type:"Number"}]}};const go={class:"editor"},_o={__name:"SourceEditor",setup(e){let t;return/bookSource/i.test(location.href)?(t=po,document.title="书源管理"):(t=ho,document.title="订阅源管理"),(o,s)=>{const n=uo,r=ao,a=Xt;return l(),E("div",go,[p(n,{class:"left",config:i(t)},null,8,["config"]),p(r),p(a,{class:"right"})])}}},pe=J(_o,[["__scopeId","data-v-5fe2b79d"]]),we=[{path:"/bookSource",name:"book-home",component:pe},{path:"/rssSource",name:"rss-home",component:pe}];se({history:ie(),routes:we});const xe=se({history:ie(),routes:ke.concat(we)});xe.afterEach(e=>{e.name=="shelf"&&(document.title="书架")});Qe(tt).use(zt).use(xe).mount("#app");ne(()=>import("./config-9c465f3f.js"),["./config-9c465f3f.js","./vendor-b9134af1.js","./vendor-5578283d.css","./config-811f2a0b.css"],import.meta.url);export{K as A,J as _,So as u};
@@ -1 +1 @@
.el-link[data-v-aee57c78]{padding:4px}.el-text[data-v-aee57c78]{padding-top:20px}[data-v-830cee5a] .el-checkbox__label{flex:1;display:flex;justify-content:space-between;align-items:center}.error[data-v-830cee5a]{border-color:var(--el-color-error)!important;color:var(--el-color-error)!important;--el-checkbox-checked-text-color: var(--el-color-error);--el-checkbox-checked-bg-color: var(--el-color-error);--el-checkbox-checked-input-border-color: var(--el-color-error)}.edit[data-v-830cee5a]{border-color:var(--el-color-dark)!important}.tool[data-v-cd1572ca]{display:flex;margin:4px 0;justify-content:center}#source-list[data-v-cd1572ca]{margin-top:6px;height:calc(100vh - 119px)}#source-list[data-v-cd1572ca] .el-checkbox{margin-bottom:4px;width:100%}[data-v-372e8d43] #debug-text{height:calc(100vh - 86px)}[data-v-7e91a802] .el-input{width:100%}[data-v-7e91a802] #source-json{height:calc(100vh - 50px)}[data-v-dcce2457] .el-tabs__header{margin-bottom:5px}.flex-space-between[data-v-e3b61f1f]{display:flex;justify-content:space-between;align-items:baseline}.flex-column-center[data-v-e3b61f1f]{display:flex;flex-direction:column;justify-content:center}.menu>.el-button[data-v-e3b61f1f]{margin:4px;padding:1em;width:6em}.hotkeys-item .title[data-v-e3b61f1f]{width:5em;display:flex;justify-content:flex-end;margin-right:1em}.hotkeys-item__content[data-v-e3b61f1f]{display:flex;flex-wrap:wrap;flex:1}.hotkeys-item__content div[data-v-e3b61f1f]{margin-bottom:1em}.hotkeys-item__content span[data-v-e3b61f1f]{margin:.5em}[data-v-2cfb5302] .el-tab-pane{height:calc(100vh - 55px);padding-top:15px;padding-right:5px;overflow-y:auto}[data-v-2cfb5302] .el-tabs__header{margin:0}kbd{background-color:#fcfcfc;border-radius:3px;border:1px solid hsl(0deg,0%,80%);padding:4px 5px;font-weight:700}code{background-color:#f2f1f1;padding:.125rem .25rem;border-radius:.25rem;font-size:.835rem}body{padding:0;margin:0}.el-tabs__header{position:sticky;top:0px;z-index:2;background-color:#fff}.editor[data-v-f572f1de]{display:flex;height:100vh;overflow:hidden}.editor .left[data-v-f572f1de]{flex:1;margin-left:20px}.editor .right[data-v-f572f1de]{flex:1;width:360px;margin-right:20px}
.el-link[data-v-aee57c78]{padding:4px}.el-text[data-v-aee57c78]{padding-top:20px}[data-v-830cee5a] .el-checkbox__label{flex:1;display:flex;justify-content:space-between;align-items:center}.error[data-v-830cee5a]{border-color:var(--el-color-error)!important;color:var(--el-color-error)!important;--el-checkbox-checked-text-color: var(--el-color-error);--el-checkbox-checked-bg-color: var(--el-color-error);--el-checkbox-checked-input-border-color: var(--el-color-error)}.edit[data-v-830cee5a]{border-color:var(--el-color-dark)!important}.tool[data-v-cd1572ca]{display:flex;margin:4px 0;justify-content:center}#source-list[data-v-cd1572ca]{margin-top:6px;height:calc(100vh - 119px)}#source-list[data-v-cd1572ca] .el-checkbox{margin-bottom:4px;width:100%}[data-v-372e8d43] #debug-text{height:calc(100vh - 86px)}[data-v-7e91a802] .el-input{width:100%}[data-v-7e91a802] #source-json{height:calc(100vh - 50px)}[data-v-dcce2457] .el-tabs__header{margin-bottom:5px}.flex-space-between[data-v-e3b61f1f]{display:flex;justify-content:space-between;align-items:baseline}.flex-column-center[data-v-e3b61f1f]{display:flex;flex-direction:column;justify-content:center}.menu>.el-button[data-v-e3b61f1f]{margin:4px;padding:1em;width:6em}.hotkeys-item .title[data-v-e3b61f1f]{width:5em;display:flex;justify-content:flex-end;margin-right:1em}.hotkeys-item__content[data-v-e3b61f1f]{display:flex;flex-wrap:wrap;flex:1}.hotkeys-item__content div[data-v-e3b61f1f]{margin-bottom:1em}.hotkeys-item__content span[data-v-e3b61f1f]{margin:.5em}[data-v-2cfb5302] .el-tab-pane{height:calc(100vh - 55px);padding-top:15px;padding-right:5px;overflow-y:auto}[data-v-2cfb5302] .el-tabs__header{margin:0}kbd{background-color:#fcfcfc;border-radius:3px;border:1px solid hsl(0deg,0%,80%);padding:4px 5px;font-weight:700}code{background-color:#f2f1f1;padding:.125rem .25rem;border-radius:.25rem;font-size:.835rem}body{padding:0;margin:0}.el-tabs__header{position:sticky;top:0px;z-index:2;background-color:#fff}.editor[data-v-5fe2b79d]{display:flex;height:100vh;overflow:hidden}.editor .left[data-v-5fe2b79d]{flex:1;margin-left:20px}.editor .right[data-v-5fe2b79d]{flex:1;width:360px;margin-right:20px}
@@ -1 +1 @@
import{u as S}from"./index-7b5c29c2.js";import{z as L,K as p,a5 as w,ae as D,u as v}from"./vendor-b9134af1.js";const Y=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a{1,2}|A{1,2}|m{1,2}|s{1,2}|Z{1,2}|SSS/g;function y(t,i,e,a){let o=t<12?"AM":"PM";return a&&(o=o.split("").reduce((n,l)=>n+=`${l}.`,"")),e?o.toLowerCase():o}function z(t,i,e={}){var a;const o=t.getFullYear(),n=t.getMonth(),l=t.getDate(),s=t.getHours(),r=t.getMinutes(),g=t.getSeconds(),f=t.getMilliseconds(),h=t.getDay(),c=(a=e.customMeridiem)!=null?a:y,d={YY:()=>String(o).slice(-2),YYYY:()=>o,M:()=>n+1,MM:()=>`${n+1}`.padStart(2,"0"),MMM:()=>t.toLocaleDateString(e.locales,{month:"short"}),MMMM:()=>t.toLocaleDateString(e.locales,{month:"long"}),D:()=>String(l),DD:()=>`${l}`.padStart(2,"0"),H:()=>String(s),HH:()=>`${s}`.padStart(2,"0"),h:()=>`${s%12||12}`.padStart(1,"0"),hh:()=>`${s%12||12}`.padStart(2,"0"),m:()=>String(r),mm:()=>`${r}`.padStart(2,"0"),s:()=>String(g),ss:()=>`${g}`.padStart(2,"0"),SSS:()=>`${f}`.padStart(3,"0"),d:()=>h,dd:()=>t.toLocaleDateString(e.locales,{weekday:"narrow"}),ddd:()=>t.toLocaleDateString(e.locales,{weekday:"short"}),dddd:()=>t.toLocaleDateString(e.locales,{weekday:"long"}),A:()=>c(s,r),AA:()=>c(s,r,!1,!0),a:()=>c(s,r,!0),aa:()=>c(s,r,!0,!0)};return i.replace(Y,(m,M)=>{var u;return M||((u=d[m])==null?void 0:u.call(d))||m})}const b=t=>/,\s*\{/.test(t)||!(t.startsWith("http")||t.startsWith("data:")||t.startsWith("blob:"));function A(t){return location.origin+"/image?path="+encodeURIComponent(t)+"&url="+encodeURIComponent(sessionStorage.getItem("bookUrl"))+"&width="+S().config.readWidth}const W=t=>{let i=new Date().getTime(),e=Math.floor((i-t)/1e3),a="";return e<=30?a="刚刚":e<60?a=e+"秒前":e<3600?a=Math.floor(e/60)+"分钟前":e<86400?a=Math.floor(e/3600)+"小时前":e<2592e3?a=Math.floor(e/86400)+"天前":a=z(new Date(t),"YYYY-MM-DD"),a},$='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024"><path fill="currentColor" d="M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32zm0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32zm448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32zm-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32zM195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248zm452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248zM828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0zm-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0z"/></svg>';const U=(t,i,e=$)=>{const a=L(!1);let o=null;const n=()=>a.value=!1,l=()=>a.value=!0;p(a,r=>{if(!r)return o==null?void 0:o.close();o=D.service({target:v(t),spinner:e,text:i,lock:!0,background:"rgba(0, 0, 0, 0)"})});const s=r=>{if(!(r instanceof Promise))throw TypeError("loadingWrapper argument must be Promise");return l(),r.finally(n)};return w(()=>{n()}),{isLoading:a,showLoading:l,closeLoading:n,loadingWrapper:s}};export{W as d,A as g,b as i,U as u};
import{u as S}from"./index-09b6d8d8.js";import{z as L,K as p,a5 as w,ae as D,u as v}from"./vendor-b9134af1.js";const Y=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a{1,2}|A{1,2}|m{1,2}|s{1,2}|Z{1,2}|SSS/g;function y(t,i,e,a){let o=t<12?"AM":"PM";return a&&(o=o.split("").reduce((n,l)=>n+=`${l}.`,"")),e?o.toLowerCase():o}function z(t,i,e={}){var a;const o=t.getFullYear(),n=t.getMonth(),l=t.getDate(),s=t.getHours(),r=t.getMinutes(),g=t.getSeconds(),f=t.getMilliseconds(),h=t.getDay(),c=(a=e.customMeridiem)!=null?a:y,d={YY:()=>String(o).slice(-2),YYYY:()=>o,M:()=>n+1,MM:()=>`${n+1}`.padStart(2,"0"),MMM:()=>t.toLocaleDateString(e.locales,{month:"short"}),MMMM:()=>t.toLocaleDateString(e.locales,{month:"long"}),D:()=>String(l),DD:()=>`${l}`.padStart(2,"0"),H:()=>String(s),HH:()=>`${s}`.padStart(2,"0"),h:()=>`${s%12||12}`.padStart(1,"0"),hh:()=>`${s%12||12}`.padStart(2,"0"),m:()=>String(r),mm:()=>`${r}`.padStart(2,"0"),s:()=>String(g),ss:()=>`${g}`.padStart(2,"0"),SSS:()=>`${f}`.padStart(3,"0"),d:()=>h,dd:()=>t.toLocaleDateString(e.locales,{weekday:"narrow"}),ddd:()=>t.toLocaleDateString(e.locales,{weekday:"short"}),dddd:()=>t.toLocaleDateString(e.locales,{weekday:"long"}),A:()=>c(s,r),AA:()=>c(s,r,!1,!0),a:()=>c(s,r,!0),aa:()=>c(s,r,!0,!0)};return i.replace(Y,(m,M)=>{var u;return M||((u=d[m])==null?void 0:u.call(d))||m})}const b=t=>/,\s*\{/.test(t)||!(t.startsWith("http")||t.startsWith("data:")||t.startsWith("blob:"));function A(t){return location.origin+"/image?path="+encodeURIComponent(t)+"&url="+encodeURIComponent(sessionStorage.getItem("bookUrl"))+"&width="+S().config.readWidth}const W=t=>{let i=new Date().getTime(),e=Math.floor((i-t)/1e3),a="";return e<=30?a="刚刚":e<60?a=e+"秒前":e<3600?a=Math.floor(e/60)+"分钟前":e<86400?a=Math.floor(e/3600)+"小时前":e<2592e3?a=Math.floor(e/86400)+"天前":a=z(new Date(t),"YYYY-MM-DD"),a},$='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024"><path fill="currentColor" d="M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32zm0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32zm448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32zm-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32zM195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248zm452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248zM828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0zm-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0z"/></svg>';const U=(t,i,e=$)=>{const a=L(!1);let o=null;const n=()=>a.value=!1,l=()=>a.value=!0;p(a,r=>{if(!r)return o==null?void 0:o.close();o=D.service({target:v(t),spinner:e,text:i,lock:!0,background:"rgba(0, 0, 0, 0)"})});const s=r=>{if(!(r instanceof Promise))throw TypeError("loadingWrapper argument must be Promise");return l(),r.finally(n)};return w(()=>{n()}),{isLoading:a,showLoading:l,closeLoading:n,loadingWrapper:s}};export{W as d,A as g,b as i,U as u};
+2 -2
View File
@@ -4,10 +4,10 @@
<meta charset="UTF-8" />
<link rel="icon" href="./favicon.ico" />
<meta name="viewport" content="width=device-width,initial-scale=1.0" />
<script type="module" crossorigin src="./assets/index-7b5c29c2.js"></script>
<script type="module" crossorigin src="./assets/index-09b6d8d8.js"></script>
<link rel="modulepreload" crossorigin href="./assets/vendor-b9134af1.js">
<link rel="stylesheet" href="./assets/vendor-5578283d.css">
<link rel="stylesheet" href="./assets/index-a09d307b.css">
<link rel="stylesheet" href="./assets/index-f0744ec1.css">
</head>
<body>