diff --git a/public/lib/kookit/kookit.umd.js b/public/lib/kookit/kookit.umd.js index 084fdf53..0d0ffcdc 100644 --- a/public/lib/kookit/kookit.umd.js +++ b/public/lib/kookit/kookit.umd.js @@ -1 +1 @@ -!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).Kookit={})}(this,function(t){"use strict";function o(t,s,u,a){return new(u=u||Promise)(function(n,e){function r(t){try{o(a.next(t))}catch(t){e(t)}}function i(t){try{o(a.throw(t))}catch(t){e(t)}}function o(t){var e;t.done?n(t.value):((e=t.value)instanceof u?e:new u(function(t){t(e)})).then(r,i)}o((a=a.apply(t,s||[])).next())})}function s(n,r){var i,o,s,u={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]},t={next:e(0),throw:e(1),return:e(2)};return"function"==typeof Symbol&&(t[Symbol.iterator]=function(){return this}),t;function e(e){return function(t){return function(e){if(i)throw new TypeError("Generator is already executing.");for(;u;)try{if(i=1,o&&(s=2&e[0]?o.return:e[0]?o.throw||((s=o.return)&&s.call(o),0):o.next)&&!(s=s.call(o,e[1])).done)return s;switch(o=0,(e=s?[2&e[0],s.value]:e)[0]){case 0:case 1:s=e;break;case 4:return u.label++,{value:e[1],done:!1};case 5:u.label++,o=e[1],e=[0];continue;case 7:e=u.ops.pop(),u.trys.pop();continue;default:if(!(s=0<(s=u.trys).length&&s[s.length-1])&&(6===e[0]||2===e[0])){u=0;continue}if(3===e[0]&&(!s||e[1]>s[0]&&e[1]":">",'"':""","'":"'","`":"`"},ne=te(ee),re=te(Ut(ee)),ie=mt.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g},oe=/(.)^/,se={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},ue=/\\|'|\r|\n|\u2028|\u2029/g;function ae(t){return"\\"+se[t]}var ce=/^\s*(\w|\$)+\s*$/;var he=0;function fe(t,e,n,r,i){if(!(r instanceof e))return t.apply(n,i);n=Ht(t.prototype),i=t.apply(n,i);return E(i)?i:n}var le=j(function(i,o){function s(){for(var t=0,e=o.length,n=Array(e),r=0;ri.clientHeight+i.offsetTop?e:i),Ye.isElement(o)&&o.clientHeight+o.offsetTop>s.clientHeight+s.offsetTop&&(s=o);i=0;(n||s||r)&&(3!==r.nodeType||n||s)&&(3===r.nodeType&&document.createRange&&((o=document.createRange()).selectNodeContents(r),!o.getBoundingClientRect||(o=o.getBoundingClientRect())&&(i=o.bottom-o.top)),t.height=Math.max(Ye.isElement(n)?n.clientHeight+n.offsetTop:0,Ye.isElement(r)?r.clientHeight+r.offsetTop:0,Ye.isElement(s)?s.clientHeight+s.offsetTop:0)+400+(3===r.nodeType?i:0))},500)):e.height=i.offsetHeight,function(){var t=document.getElementsByTagName("iframe")[0];if(t){t=t.contentDocument;if(t)for(var e,n,r=0,i=t.getElementsByTagName("img");rs.clientHeight/s.clientWidth?n=(e=s.clientHeight)*o.width/o.height:e=(n=s.clientWidth)*o.height/o.width:n=s.clientWidth,o.setAttribute("style","max-width: "+n+"px;max-height:"+e+"px")}}}(),nn(n,r)}function nn(t,e,n,r){void 0===r&&(r="0");var i=(n=void 0===n?"":n)||u.getKookitConfig("text")||"";i?(n=Array.from(window.frames[0].document.body.querySelectorAll("h1,h2,h3,h4,p")).filter(function(t,e){return t.innerText===i&&e===parseInt(u.getKookitConfig("count")||r)})[0],"scroll"!==e?window.frames[0].document.body.scrollTo(i&&n?n.offsetLeft:0,0):t.scrollTo(0,i&&n?n.offsetTop:0)):("scroll"!==e?window.frames[0].document.body:t).scrollTo(0,0)}function rn(e,n){if(!sn){for(var t=Array.from(window.frames[0].document.body.querySelectorAll("h1,h2,h3,h4,p")).filter(function(t){return on(e,t,n)&&t.innerText.trim()}),r=t["scroll"===n?Math.floor(t.length/2):0],i=0,o=Array.from(window.frames[0].document.body.querySelectorAll("h1,h2,h3,h4,p")),s=0;s=t.scrollTop&&i<=t.scrollTop+t.offsetHeight),r}var sn=!1,un=function(t,e,n,r){var i=u.getKookitConfig("chapterTitle"),i=Ye.findIndex(e,{label:i});i!==e.length-1&&-1!==i&&(u.setKookitConfig("chapterTitle",e[i+1].label),en(e[i+1].label,n,t,r))},an=(cn.prototype.getChapterDoc=function(){for(var t=-1")?this.bookStr.split(""):this.bookStr.split("
"),e=[],n=[],r="",i=0;i "),n=0;nthis.chapterList.length&&0===n&&(t=Math.floor(9e5*Math.random())+1e5,this.chapterList.unshift({label:"Forword#"+n,id:"title"+t,href:"#title"+t,subitems:[]})),this.chapterDocList.push({title:this.chapterList[n].label,text:e[n]});return this.chapterDocList},fn);function fn(t){this.bookStr=t,this.chapterList=[],this.chapterDocList=[],this.bookDoc=(new DOMParser).parseFromString(this.bookStr,"text/html"),this.chapterDomList=[]}ln.prototype.renderTo=function(r){var e=this;return new Promise(function(n,t){return o(e,void 0,void 0,function(){var e;return s(this,function(t){return i(),this.element=r,e=new hn(this.bookStr),this.chapterList=e.getChapter(),this.chapterDocList=e.getChapterDoc(),e=u.getKookitConfig("chapterTitle")||this.chapterDocList[0].title,Ze(r),en(e,this.chapterDocList,this.element,this.mode),Ge(r,this.mode),n(),[2]})})})},ln.prototype.getChapter=function(){return this.chapterList},ln.prototype.goToChapter=function(t){en(t,this.chapterDocList,this.element,this.mode)},ln.prototype.goToPosition=function(t,e,n){en(e,this.chapterDocList,this.element,this.mode),nn(this.element,this.mode,t,n)},ln.prototype.record=function(){rn(this.element,this.mode)},ln.prototype.prev=function(){"scroll"===this.mode||0===window.frames[0].document.body.scrollLeft?tn(this.element,this.chapterList,this.chapterDocList,this.mode):Qe(this.element,this.chapterList,this.chapterDocList,this.mode,1),rn(this.element,this.mode)},ln.prototype.next=function(){Math.abs(window.frames[0].document.body.scrollWidth-window.frames[0].document.body.scrollLeft-window.frames[0].document.body.clientWidth)<10||"scroll"===this.mode?un(this.element,this.chapterList,this.chapterDocList,this.mode):Qe(this.element,this.chapterList,this.chapterDocList,this.mode,-1),rn(this.element,this.mode)},ln.prototype.getPosition=function(){return{text:u.getKookitConfig("text"),chapterTitle:u.getKookitConfig("chapterTitle"),count:u.getKookitConfig("count")}},ln.prototype.setStyle=function(t){window.frames[0].document.body.setAttribute("style",t+window.frames[0].document.body.getAttribute("style"))},Tt=ln;function ln(t,e){this.bookStr=t,this.mode=e,this.chapterList=[],this.chapterDocList=[],this.element=""}function pn(t){return t instanceof ArrayBuffer&&(t=new Uint8Array(t)),new TextDecoder("utf-8").decode(t)}var dn=new DOMParser,mn=(gn.prototype.write=function(t){this.cur_fragment.write(t)||(this.cur_fragment=new yn(this.capacity),this.fragment_list.push(this.cur_fragment),this.cur_fragment.write(t))},gn.prototype.get=function(t){for(var e=0;e=this.capacity)&&(this.buffer[this.size]=t,this.size+=1,!0)},bn.prototype.full=function(){return this.size===this.capacity},bn.prototype.get=function(t){return this.buffer[t]},bn);function bn(t){this.buffer=new Uint8Array(t),this.capacity=t,this.size=0}var vn=(wn.prototype.parse=function(){},wn.prototype.getUint8=function(){var t=this.view.getUint8(this.offset);return this.offset+=1,t},wn.prototype.getUint16=function(){var t=this.view.getUint16(this.offset);return this.offset+=2,t},wn.prototype.getUint32=function(){var t=this.view.getUint32(this.offset);return this.offset+=4,t},wn.prototype.getStr=function(t){var e=pn(this.buffer.slice(this.offset,this.offset+t));return this.offset+=t,e},wn.prototype.skip=function(t){this.offset+=t},wn.prototype.setoffset=function(t){this.offset=t},wn.prototype.get_record_extrasize=function(t,e){for(var n,r,i,o=t.length-1,s=0,u=15;0>3&2047,a=3+(7&s),c=r.size(),h=0;hpagebreak"),n=0;nthis.chapterList.length&&0===n&&(t=Math.floor(9e5*Math.random())+1e5,this.chapterList.unshift({label:"Forword#"+n,id:"title"+t,href:"#title"+t,subitems:[]})),this.chapterDocList.push({title:this.chapterList[n].label,text:e[n]});return this.chapterDocList},Tn);function Tn(t){this.bookStr=t,this.chapterList=[],this.chapterDocList=[],this.bookDoc=(new DOMParser).parseFromString(this.bookStr,"text/html"),this.chapterDomList=[]}Dn.prototype.renderTo=function(r){var e=this;return new Promise(function(n,t){return o(e,void 0,void 0,function(){var e;return s(this,function(t){return i(),e=new TextDecoder(this.encoding).decode(this.txtBuffer),e=function(t){for(var e="",n=!1,r=0,i=t.split("\n");r"+o+""):e+="

"+o+"

")}return e}(e),this.bookStr=e,this.element=r,e=new _n(this.bookStr),this.chapterList=e.getChapter(),this.chapterDocList=e.getChapterDoc(),e=u.getKookitConfig("chapterTitle")||this.chapterDocList[0].title,Ze(r),Ge(r,this.mode),en(e,this.chapterDocList,this.element,this.mode),n(),[2]})})})},Dn.prototype.getChapter=function(){return this.chapterList},Dn.prototype.goToChapter=function(t){en(t,this.chapterDocList,this.element,this.mode)},Dn.prototype.goToPosition=function(t,e,n){en(e,this.chapterDocList,this.element,this.mode),nn(this.element,this.mode,t,n)},Dn.prototype.record=function(){rn(this.element,this.mode)},Dn.prototype.prev=function(){"scroll"===this.mode||0===window.frames[0].document.body.scrollLeft?tn(this.element,this.chapterList,this.chapterDocList,this.mode):Qe(this.element,this.chapterList,this.chapterDocList,this.mode,1),rn(this.element,this.mode)},Dn.prototype.next=function(){Math.abs(window.frames[0].document.body.scrollWidth-window.frames[0].document.body.scrollLeft-window.frames[0].document.body.clientWidth)<10||"scroll"===this.mode?un(this.element,this.chapterList,this.chapterDocList,this.mode):Qe(this.element,this.chapterList,this.chapterDocList,this.mode,-1),rn(this.element,this.mode)},Dn.prototype.getPosition=function(){return{text:u.getKookitConfig("text"),chapterTitle:u.getKookitConfig("chapterTitle"),count:u.getKookitConfig("count")}},Dn.prototype.setStyle=function(t){window.frames[0].document.body.setAttribute("style",t+window.frames[0].document.body.getAttribute("style"))},ee=Dn;function Dn(t,e,n){void 0===n&&(n="utf-8"),this.txtBuffer=t,this.encoding=n,this.mode=e,this.chapterList=[],this.chapterDocList=[],this.bookStr="",this.element=""}t.Azw3Render=Y,t.MobiRender=kt,t.StrRender=Tt,t.TxtRender=ee,Object.defineProperty(t,"__esModule",{value:!0})}); +!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).Kookit={})}(this,function(t){"use strict";function o(t,s,u,a){return new(u=u||Promise)(function(n,e){function r(t){try{o(a.next(t))}catch(t){e(t)}}function i(t){try{o(a.throw(t))}catch(t){e(t)}}function o(t){var e;t.done?n(t.value):((e=t.value)instanceof u?e:new u(function(t){t(e)})).then(r,i)}o((a=a.apply(t,s||[])).next())})}function s(n,r){var i,o,s,u={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]},t={next:e(0),throw:e(1),return:e(2)};return"function"==typeof Symbol&&(t[Symbol.iterator]=function(){return this}),t;function e(e){return function(t){return function(e){if(i)throw new TypeError("Generator is already executing.");for(;u;)try{if(i=1,o&&(s=2&e[0]?o.return:e[0]?o.throw||((s=o.return)&&s.call(o),0):o.next)&&!(s=s.call(o,e[1])).done)return s;switch(o=0,(e=s?[2&e[0],s.value]:e)[0]){case 0:case 1:s=e;break;case 4:return u.label++,{value:e[1],done:!1};case 5:u.label++,o=e[1],e=[0];continue;case 7:e=u.ops.pop(),u.trys.pop();continue;default:if(!(s=0<(s=u.trys).length&&s[s.length-1])&&(6===e[0]||2===e[0])){u=0;continue}if(3===e[0]&&(!s||e[1]>s[0]&&e[1]":">",'"':""","'":"'","`":"`"},ie=ne(re),oe=ne(jt(re)),se=yt.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g},ue=/(.)^/,ae={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},ce=/\\|'|\r|\n|\u2028|\u2029/g;function he(t){return"\\"+ae[t]}var fe=/^\s*(\w|\$)+\s*$/;var le=0;function pe(t,e,n,r,i){if(!(r instanceof e))return t.apply(n,i);n=Kt(t.prototype),i=t.apply(n,i);return B(i)?i:n}var de=W(function(i,o){function s(){for(var t=0,e=o.length,n=Array(e),r=0;ri.clientHeight+i.offsetTop?e:i),Xe.isElement(o)&&o.clientHeight+o.offsetTop>s.clientHeight+s.offsetTop&&(s=o);i=0;(n||s||r)&&(3!==r.nodeType||n||s)&&(3===r.nodeType&&document.createRange&&((o=document.createRange()).selectNodeContents(r),!o.getBoundingClientRect||(o=o.getBoundingClientRect())&&(i=o.bottom-o.top)),t.height=Math.max(Xe.isElement(n)?n.clientHeight+n.offsetTop:0,Xe.isElement(r)?r.clientHeight+r.offsetTop:0,Xe.isElement(s)?s.clientHeight+s.offsetTop:0)+400+(3===r.nodeType?i:0))},500)):e.height=i.offsetHeight,function(){var t=document.getElementsByTagName("iframe")[0];if(t){t=t.contentDocument;if(t)for(var e,n,r=0,i=t.getElementsByTagName("img");rs.clientHeight/s.clientWidth?n=(e=s.clientHeight)*o.width/o.height:e=(n=s.clientWidth)*o.height/o.width:n=s.clientWidth,o.setAttribute("style","max-width: "+n+"px;max-height:"+e+"px")}}}(),on(n,r)}function on(t,e,n,r){void 0===r&&(r="0");var i=(n=void 0===n?"":n)||u.getKookitConfig("text")||"";i?(n=Array.from(window.frames[0].document.body.querySelectorAll("h1,h2,h3,h4,p")).filter(function(t,e){return t.innerText===i&&e===parseInt(u.getKookitConfig("count")||r)})[0],"scroll"!==e?window.frames[0].document.body.scrollTo(i&&n?n.offsetLeft:0,0):t.scrollTo(0,i&&n?n.offsetTop:0)):("scroll"!==e?window.frames[0].document.body:t).scrollTo(0,0)}function sn(e,n){if(!an){for(var t=Array.from(window.frames[0].document.body.querySelectorAll("h1,h2,h3,h4,p")).filter(function(t){return un(e,t,n)&&t.innerText.trim()}),r=t["scroll"===n?Math.floor(t.length/2):0],i=0,o=Array.from(window.frames[0].document.body.querySelectorAll("h1,h2,h3,h4,p")),s=0;s=t.scrollTop&&i<=t.scrollTop+t.offsetHeight),r}var an=!1,cn=function(t,e,n,r){var i=u.getKookitConfig("chapterTitle"),i=Xe.findIndex(e,{label:i});i!==e.length-1&&-1!==i&&(u.setKookitConfig("chapterTitle",e[i+1].label),rn(e[i+1].label,n,t,r))},hn=(fn.prototype.getChapterDoc=function(){for(var t=-1")?this.bookStr.split(""):this.bookStr.split("
"),e=[],n=[],r="",i=0;i "),n=0;nthis.chapterList.length&&0===n&&(t=Math.floor(9e5*Math.random())+1e5,this.chapterList.unshift({label:"Forword#"+n,id:"title"+t,href:"#title"+t,subitems:[]})),this.chapterDocList.push({title:this.chapterList[n].label,text:e[n]});return this.chapterDocList},pn);function pn(t){this.bookStr=t,this.chapterList=[],this.chapterDocList=[],this.bookDoc=(new DOMParser).parseFromString(this.bookStr,"text/html"),this.chapterDomList=[]}dn.prototype.renderTo=function(r){var e=this;return new Promise(function(n,t){return o(e,void 0,void 0,function(){var e;return s(this,function(t){switch(t.label){case 0:return[4,i()];case 1:return t.sent()?(this.element=r,e=new ln(this.bookStr),this.chapterList=e.getChapter(),this.chapterDocList=e.getChapterDoc(),e=u.getKookitConfig("chapterTitle")||this.chapterDocList[0].title,Ye(r),rn(e,this.chapterDocList,this.element,this.mode),tn(r,this.mode),n(),[2]):(n(),[2])}})})})},dn.prototype.getChapter=function(){return this.chapterList},dn.prototype.goToChapter=function(t){rn(t,this.chapterDocList,this.element,this.mode)},dn.prototype.goToPosition=function(t,e,n){rn(e,this.chapterDocList,this.element,this.mode),on(this.element,this.mode,t,n)},dn.prototype.record=function(){sn(this.element,this.mode)},dn.prototype.prev=function(){"scroll"===this.mode||0===window.frames[0].document.body.scrollLeft?nn(this.element,this.chapterList,this.chapterDocList,this.mode):en(this.element,this.chapterList,this.chapterDocList,this.mode,1),sn(this.element,this.mode)},dn.prototype.next=function(){Math.abs(window.frames[0].document.body.scrollWidth-window.frames[0].document.body.scrollLeft-window.frames[0].document.body.clientWidth)<10||"scroll"===this.mode?cn(this.element,this.chapterList,this.chapterDocList,this.mode):en(this.element,this.chapterList,this.chapterDocList,this.mode,-1),sn(this.element,this.mode)},dn.prototype.getPosition=function(){return{text:u.getKookitConfig("text"),chapterTitle:u.getKookitConfig("chapterTitle"),count:u.getKookitConfig("count")}},dn.prototype.setStyle=function(t){window.frames[0].document.body.setAttribute("style",t+window.frames[0].document.body.getAttribute("style"))},kt=dn;function dn(t,e){this.bookStr=t,this.mode=e,this.chapterList=[],this.chapterDocList=[],this.element=""}function mn(t){return t instanceof ArrayBuffer&&(t=new Uint8Array(t)),new TextDecoder("utf-8").decode(t)}var gn=new DOMParser,yn=(bn.prototype.write=function(t){this.cur_fragment.write(t)||(this.cur_fragment=new vn(this.capacity),this.fragment_list.push(this.cur_fragment),this.cur_fragment.write(t))},bn.prototype.get=function(t){for(var e=0;e=this.capacity)&&(this.buffer[this.size]=t,this.size+=1,!0)},wn.prototype.full=function(){return this.size===this.capacity},wn.prototype.get=function(t){return this.buffer[t]},wn);function wn(t){this.buffer=new Uint8Array(t),this.capacity=t,this.size=0}var xn=(Ln.prototype.parse=function(){},Ln.prototype.getUint8=function(){var t=this.view.getUint8(this.offset);return this.offset+=1,t},Ln.prototype.getUint16=function(){var t=this.view.getUint16(this.offset);return this.offset+=2,t},Ln.prototype.getUint32=function(){var t=this.view.getUint32(this.offset);return this.offset+=4,t},Ln.prototype.getStr=function(t){var e=mn(this.buffer.slice(this.offset,this.offset+t));return this.offset+=t,e},Ln.prototype.skip=function(t){this.offset+=t},Ln.prototype.setoffset=function(t){this.offset=t},Ln.prototype.get_record_extrasize=function(t,e){for(var n,r,i,o=t.length-1,s=0,u=15;0>3&2047,a=3+(7&s),c=r.size(),h=0;hpagebreak"),n=0;nthis.chapterList.length&&0===n&&(t=Math.floor(9e5*Math.random())+1e5,this.chapterList.unshift({label:"Forword#"+n,id:"title"+t,href:"#title"+t,subitems:[]})),this.chapterDocList.push({title:this.chapterList[n].label,text:e[n]});return this.chapterDocList},kn);function kn(t){this.bookStr=t,this.chapterList=[],this.chapterDocList=[],this.bookDoc=(new DOMParser).parseFromString(this.bookStr,"text/html"),this.chapterDomList=[]}On.prototype.renderTo=function(r){var e=this;return new Promise(function(n,t){return o(e,void 0,void 0,function(){var e;return s(this,function(t){switch(t.label){case 0:return[4,i()];case 1:return t.sent()?(e=new TextDecoder(this.encoding).decode(this.txtBuffer),e=function(t){for(var e="",n=!1,r=0,i=t.split("\n");r"+o+""):e+="

"+o+"

")}return e}(e),this.bookStr=e,this.element=r,e=new Dn(this.bookStr),this.chapterList=e.getChapter(),this.chapterDocList=e.getChapterDoc(),e=u.getKookitConfig("chapterTitle")||this.chapterDocList[0].title,Ye(r),tn(r,this.mode),rn(e,this.chapterDocList,this.element,this.mode),n(),[2]):(n(),[2])}})})})},On.prototype.getChapter=function(){return this.chapterList},On.prototype.goToChapter=function(t){rn(t,this.chapterDocList,this.element,this.mode)},On.prototype.goToPosition=function(t,e,n){rn(e,this.chapterDocList,this.element,this.mode),on(this.element,this.mode,t,n)},On.prototype.record=function(){sn(this.element,this.mode)},On.prototype.prev=function(){"scroll"===this.mode||0===window.frames[0].document.body.scrollLeft?nn(this.element,this.chapterList,this.chapterDocList,this.mode):en(this.element,this.chapterList,this.chapterDocList,this.mode,1),sn(this.element,this.mode)},On.prototype.next=function(){Math.abs(window.frames[0].document.body.scrollWidth-window.frames[0].document.body.scrollLeft-window.frames[0].document.body.clientWidth)<10||"scroll"===this.mode?cn(this.element,this.chapterList,this.chapterDocList,this.mode):en(this.element,this.chapterList,this.chapterDocList,this.mode,-1),sn(this.element,this.mode)},On.prototype.getPosition=function(){return{text:u.getKookitConfig("text"),chapterTitle:u.getKookitConfig("chapterTitle"),count:u.getKookitConfig("count")}},On.prototype.setStyle=function(t){window.frames[0].document.body.setAttribute("style",t+window.frames[0].document.body.getAttribute("style"))},re=On;function On(t,e,n){void 0===n&&(n="utf-8"),this.txtBuffer=t,this.encoding=n,this.mode=e,this.chapterList=[],this.chapterDocList=[],this.bookStr="",this.element=""}window.e=window.eval,window.a=window.atob,t.Azw3Render=X,t.MobiRender=St,t.StrRender=kt,t.TxtRender=re,Object.defineProperty(t,"__esModule",{value:!0})}); diff --git a/src/containers/epubReader/component.tsx b/src/containers/epubReader/component.tsx index 9e9447de..13ec8701 100644 --- a/src/containers/epubReader/component.tsx +++ b/src/containers/epubReader/component.tsx @@ -84,7 +84,7 @@ class Reader extends React.Component { this.setState({ rendition: null }, () => { (window as any).rangy.init(); // 初始化 this.rendition = epub.renderTo(page, { - manager: this.state.readerMode === "scroll" ? "continuous" : "default", + manager: "default", flow: this.state.readerMode === "scroll" ? "scrolled" : "auto", width: "100%", height: "100%",