(window.webpackJsonp=window.webpackJsonp||[]).push([[2],{100:function(e,n,t){"use strict";t.r(n),t.d(n,"SET_URSER_INFO",(function(){return r})),t.d(n,"SET_TOKEN",(function(){return o})),t.d(n,"SET_DOWNLOAD_URL",(function(){return c}));var r="SET_URSER_INFO",o="SET_TOKEN",c="SET_DOWNLOAD_URL"},202:function(e,n,t){"use strict";var r=t(3);n.a=function(e){var n=e.$fire,t={install:function(e){e.prototype.jsFirebase={upload:function(e){n.analytics.logEvent(e.eventName,e.params?e.params:{})}}}};r.a.use(t)}},209:function(e,n,t){"use strict";t(49),t(8),t(22),t(88),t(104),t(39),t(43),t(53),t(24),t(108),t(41),t(33),t(45),t(65),t(92),t(44);var r=t(3);function o(e,n){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=function(e,n){if(!e)return;if("string"==typeof e)return c(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return c(e,n)}(e))||n&&e&&"number"==typeof e.length){t&&(e=t);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,l=!0,d=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return l=e.done,e},e:function(e){d=!0,o=e},f:function(){try{l||null==t.return||t.return()}finally{if(d)throw o}}}}function c(e,n){(null==n||n>e.length)&&(n=e.length);for(var i=0,t=new Array(n);i0},canPrefetch:function(){var e=navigator.connection;return!(this.$nuxt.isOffline||e&&((e.effectiveType||"").includes("2g")||e.saveData))},getPrefetchComponents:function(){return this.$router.resolve(this.to,this.$route,this.append).resolved.matched.map((function(e){return e.components.default})).filter((function(e){return"function"==typeof e&&!e.options&&!e.__prefetched}))},prefetchLink:function(){if(this.canPrefetch()){f.unobserve(this.$el);var e,n=o(this.getPrefetchComponents());try{for(n.s();!(e=n.n()).done;){var t=e.value,r=t();r instanceof Promise&&r.catch((function(){})),t.__prefetched=!0}}catch(e){n.e(e)}finally{n.f()}}}}}},210:function(e,n,t){"use strict";t.d(n,"b",(function(){return d})),t.d(n,"f",(function(){return f})),t.d(n,"e",(function(){return h})),t.d(n,"i",(function(){return m})),t.d(n,"c",(function(){return _})),t.d(n,"a",(function(){return x})),t.d(n,"g",(function(){return y})),t.d(n,"h",(function(){return w})),t.d(n,"d",(function(){return k}));t(38),t(45),t(43),t(102),t(22),t(103);var r=t(29),o=(t(8),t(89),t(273),t(41),t(44),t(559),t(314),t(33),t(151),t(88),t(104),t(49),t(53),t(63));t(202);function c(object,e){var n=Object.keys(object);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(object);e&&(t=t.filter((function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable}))),n.push.apply(n,t)}return n}function l(e){for(var i=1;i=3?(n/1e3).toFixed(1)+"k":void 0},f=function(){return!!navigator.userAgent.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/)},h=function(){var u=navigator.userAgent;return u.indexOf("Android")>-1||u.indexOf("Adr")>-1},m=function(e,param){var n={eventName:e,parameters:l(l({},param),{},{sr_usertoken:o.a.getcookiesInClient("access_token")?o.a.getcookiesInClient("access_token"):""})};dsBridge.call("firAnalytics",JSON.stringify(n),(function(e){}))},v=function(e,n){for(var t=e.split("."),r=n.split("."),o=Math.min(t.length,r.length),i=0;iparseInt(r[i])?1:-1;return t.length==r.length?0:t.length>r.length?1:-1},_=function(e,n){var t=o.a.getcookiesInClient("x-plat"),r=o.a.getcookiesInClient("x-ver");return!!r.includes("debug")||(v(r,e)>=0&&t==n||v(r,e)>=0&&t==n)},x=function(e,n){var t,r=n||500;return function(){var n=arguments;t&&clearTimeout(t);var o=!t;t=setTimeout((function(){t=null}),r),o&&e.apply(this,n)}},y=function(){return navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i)||navigator.userAgent.toLowerCase().indexOf("macintosh")>-1&&navigator.maxTouchPoints&&navigator.maxTouchPoints>2},w=function(e,n){var t,r=n||500;return function(){var n=this,o=Array.prototype.slice.call(arguments);t&&clearTimeout(t),t=setTimeout((function(){e.apply(n,o)}),r)}},k=function(e,n,t){var r=!0;setTimeout((function(){r?t.jsFirebase.upload({eventName:"h5_linkToApp"}):(t.jsFirebase.upload({eventName:"h5_downloadApp"}),window.open(e,"_blank")),document.body.removeChild(c)}),2e3);var o=Date.now(),c=document.createElement("iframe");c.setAttribute("src",n),c.setAttribute("style","display:none"),document.body.appendChild(c),setTimeout((function(){var e=Date.now();(!o||e-o<1100)&&(r=!1)}),1e3)}},212:function(e,n,t){"use strict";t.r(n);t(33),t(235),t(24);var r=[function(){var e=this._self._c;return e("div",{staticClass:"logo"},[e("img",{attrs:{src:t(272),alt:""}})])}],o=t(132),c=(t(49),t(52),t(88),t(104),t(78),t(210)),l={data:function(){return{searchFocus:-1,searchKey:"",searchList:[],searchTipsFlag:!1,noListen:!1,recommendList:[],authorList:[],classifyList:[],inquireList:[],menuShow:!1,page:0,limit:20,loadFlag:!1,loadEnd:!1}},watch:{searchTipsFlag:function(e){e||(this.authorList=[],this.classifyList=[],this.inquireList=[],this.page=0,this.loadFlag=!1,this.loadEnd=!1)},noListen:function(e){e?window.setTimeout((function(){this.noListen=!1}),500):this.searchFocus=-1},searchKey:function(e){this.noListen||(e?this.fuzzySearch():(this.searchTipsFlag=!1,this.authorList=[],this.classifyList=[],this.inquireList=[],this.page=0,this.loadFlag=!1,this.loadEnd=!1))}},methods:{keyup:function(e){var n=this.searchList.length>=8?8:this.searchList.length;40==e.keyCode?this.searchFocus=(this.searchFocus+1)%n:38==e.keyCode&&-1!=this.searchFocus&&(this.searchFocus=(this.searchFocus-1+n)%n)},getBookList:function(){var e=this;this.loadFlag||this.loadEnd||(this.loadFlag=!0,this.$axios.$get("novel/books",{params:{offset:this.limit*this.page,limit:this.limit,keyword:this.searchKey}}).then((function(data){e.page++,e.inquireList=[].concat(Object(o.a)(e.inquireList),Object(o.a)(data)),e.loadFlag=!1,data.length"+this.searchKey+""):e},search:function(){this.fuzzySearch()},fuzzySearch:Object(c.h)((function(){var e=this;this.searchKey&&this.$axios.$get("app/search",{params:{start:0,q:this.searchKey}}).then((function(n){n.body.length>0?(e.searchList=n.body,e.searchTipsFlag=!0):e.searchTipsFlag=!1}))}),300),toCategory:function(e){this.close(),this.$router.push({path:"/web/category"})},toAuthor:function(e){this.close(),this.$router.push({path:"/web/author",query:{author:e.word,authorId:e.author_id}})},toBookDetail:function(e){this.close(),this.$router.push({path:"/web/bookDetail",query:{id:e.id}})},handleScroll:function(){var e=this.$refs.dotPosition.offsetTop,n=this.$refs.popUpBody.pageYOffset||this.$refs.popUpBody.scrollTop;this.menuShow=n>e;var t=Math.max(this.$refs.popUpBody.scrollHeight);window.innerHeight+n+100>=t&&this.getBookList()},close:function(){this.searchKey="",this.searchList=[],this.searchTipsFlag=!1,this.noListen=!1,this.recommendList=[],this.authorList=[],this.classifyList=[],this.inquireList=[],this.page=0,this.loadFlag=!1,this.loadEnd=!1,this.searchFocus=-1,this.menuShow=!1,this.$emit("close")},arouseSearch:function(){this.$refs.searchInput.focus()}}},d=(t(563),t(58)),component=Object(d.a)(l,(function(){var e=this,n=e._self._c;return n("div",{staticClass:"searchPopUp",on:{click:e.close}},[n("div",{staticClass:"popUpClose"}),e._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:e.menuShow,expression:"menuShow"}],staticClass:"popUpTitle",on:{click:function(e){e.stopPropagation()}}},[n("div",{staticClass:"searchBox"},[n("input",{ref:"searchInput",staticClass:"searchInput",attrs:{type:"text",placeholder:"search"}}),e._v(" "),n("a-icon",{staticClass:"searchIcon",attrs:{type:"search"}})],1)]),e._v(" "),n("div",{ref:"popUpBody",staticClass:"popUpBody",on:{scroll:e.handleScroll}},[n("div",{staticClass:"searchBanner",on:{click:function(e){e.stopPropagation()}}},[e._m(0),e._v(" "),n("div",{staticClass:"searchBox"},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.searchKey,expression:"searchKey"}],ref:"searchInput",staticClass:"searchInput",attrs:{type:"text",placeholder:"search"},domProps:{value:e.searchKey},on:{keyup:[function(n){if(!n.type.indexOf("key")&&e._k(n.keyCode,"enter",13,n.key,"Enter"))return null;-1!=e.searchFocus?e.checkedTips(e.searchList[e.searchFocus]):e.advancedSearch()},e.keyup],input:function(n){n.target.composing||(e.searchKey=n.target.value)}}}),e._v(" "),n("a-icon",{staticClass:"searchIcon",attrs:{type:"search"}}),e._v(" "),n("div",{staticClass:"enter",on:{click:function(n){return e.search()}}}),e._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:e.searchTipsFlag,expression:"searchTipsFlag"}],staticClass:"searchTips"},e._l(e.searchList,(function(t,r){return n("div",{key:r,staticClass:"searchLink",class:e.searchFocus==r?"checked":"",on:{click:function(n){return e.checkedTips(t)}}},[e._v("\n "+e._s(t.title)+"\n ")])})),0)],1)]),e._v(" "),n("div",{ref:"dotPosition"}),e._v(" "),e._e(),e._v(" "),n("div",{staticClass:"searchResult"},[n("div",{staticClass:"authorListCard",on:{click:function(e){e.stopPropagation()}}},e._l(e.authorList,(function(t,r){return n("div",{key:r,staticClass:"authorBox",on:{click:function(n){return e.toAuthor(t)}}},[n("div",{staticClass:"authorHead"}),e._v(" "),n("div",{staticClass:"authorInfoBox"},[n("div",{staticClass:"authorName",domProps:{innerHTML:e._s(e.highlight(t.word))}},[e._v("{{}}")]),e._v(" "),n("div",{staticClass:"authorProduction"},[e._v("\n 查看作家全部书籍 · 共 "+e._s(t.totalCount)+" 本\n ")])])])})),0),e._v(" "),e._e(),e._v(" "),n("div",{staticClass:"inquireListBox",on:{click:function(e){e.stopPropagation()}}},e._l(e.inquireList,(function(t,r){return n("div",{key:r,staticClass:"inquireBox",on:{click:function(n){return e.toBookDetail(t)}}},[n("van-image",{staticClass:"cover",attrs:{src:t.picture}}),e._v(" "),n("div",{staticClass:"info"},[n("div",{staticClass:"title",domProps:{innerHTML:e._s(e.highlight(t.title))}},[e._v("{{}}")]),e._v(" "),n("div",{staticClass:"author",domProps:{innerHTML:e._s(e.highlight(t.author))}},[e._v("{{}}")]),e._v(" "),n("div",{staticClass:"intro"},[e._v("\n "+e._s(t.summary)+"\n ")])])],1)})),0)])])])}),r,!1,null,"ef4975fe",null);n.default=component.exports},264:function(e,n,t){"use strict";t.r(n);var r=t(265);n.default={user:r.default}},265:function(e,n,t){"use strict";t.r(n);var r,o=t(29),c=t(100);n.default={namespaced:!0,state:{token:"",userInfo:{},downloadAppUrl:{}},getters:{userInfo:function(e){return e.userInfo},token:function(e){return e.token},downloadAppUrl:function(e){return e.downloadAppUrl}},actions:{setUserInfo:function(e,n){(0,e.commit)(c.SET_URSER_INFO,n)},setToken:function(e,n){(0,e.commit)(c.SET_TOKEN,n)},setDownloadAppUrl:function(e,n){(0,e.commit)(c.SET_DOWNLOAD_URL,n)}},mutations:(r={},Object(o.a)(r,c.SET_URSER_INFO,(function(e,data){e.userInfo=data})),Object(o.a)(r,c.SET_TOKEN,(function(e,data){e.token=data})),Object(o.a)(r,c.SET_DOWNLOAD_URL,(function(e,data){e.downloadAppUrl=data})),r)}},266:function(e,n,t){"use strict";n.a={}},269:function(e,n,t){"use strict";t.r(n);var r=t(338),o=t.n(r);t.d(n,"SmileOutline",(function(){return o.a}));var c=t(339),l=t.n(c);t.d(n,"CheckSquareOutline",(function(){return l.a}));var d=t(340),f=t.n(d);t.d(n,"CloseSquareOutline",(function(){return f.a}));var h=t(341),m=t.n(h);t.d(n,"DownOutline",(function(){return m.a}));var v=t(342),_=t.n(v);t.d(n,"MehOutline",(function(){return _.a}));var x=t(343),y=t.n(x);t.d(n,"CloseOutline",(function(){return y.a}));var w=t(344),k=t.n(w);t.d(n,"ArrowLeftOutline",(function(){return k.a}));var O=t(345),j=t.n(O);t.d(n,"RightOutline",(function(){return j.a}));var C=t(346),S=t.n(C);t.d(n,"LeftOutline",(function(){return S.a}));var P=t(347),E=t.n(P);t.d(n,"UpOutline",(function(){return E.a}));var $=t(348),R=t.n($);t.d(n,"MenuFoldOutline",(function(){return R.a}));var A=t(349),T=t.n(A);t.d(n,"MenuUnfoldOutline",(function(){return T.a}));var L=t(350),U=t.n(L);t.d(n,"CheckCircleOutline",(function(){return U.a}));var I=t(351),B=t.n(I);t.d(n,"QuestionCircleOutline",(function(){return B.a}));var D=t(352),N=t.n(D);t.d(n,"ClockCircleOutline",(function(){return N.a}));var F=t(353),z=t.n(F);t.d(n,"EyeInvisibleOutline",(function(){return z.a}));var M=t(354),H=t.n(M);t.d(n,"EyeOutline",(function(){return H.a}));var K=t(355),J=t.n(K);t.d(n,"CalendarOutline",(function(){return J.a}));var X=t(356),Q=t.n(X);t.d(n,"LoadingOutline",(function(){return Q.a}));var V=t(357),W=t.n(V);t.d(n,"CheckOutline",(function(){return W.a}));var G=t(358),Y=t.n(G);t.d(n,"MinusCircleOutline",(function(){return Y.a}));var Z=t(359),ee=t.n(Z);t.d(n,"PlusCircleOutline",(function(){return ee.a}));var ne=t(360),te=t.n(ne);t.d(n,"BarsOutline",(function(){return te.a}));var re=t(361),oe=t.n(re);t.d(n,"SearchOutline",(function(){return oe.a}));var ae=t(362),ie=t.n(ae);t.d(n,"CloseCircleFill",(function(){return ie.a}));var se=t(363),ce=t.n(se);t.d(n,"InfoCircleFill",(function(){return ce.a}));var ue=t(364),pe=t.n(ue);t.d(n,"CheckCircleFill",(function(){return pe.a}));var le=t(365),de=t.n(le);t.d(n,"ExclamationCircleFill",(function(){return de.a}));var fe=t(366),he=t.n(fe);t.d(n,"ClockCircleFill",(function(){return he.a}));var me=t(367),ge=t.n(me);t.d(n,"DownCircleFill",(function(){return ge.a}))},272:function(e,n,t){e.exports=t.p+"img/ic_icon.67ce85e.png"},370:function(e,n,t){var content=t(547);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[e.i,content,""]]),content.locals&&(e.exports=content.locals);(0,t(28).default)("12cfb42b",content,!0,{sourceMap:!1})},371:function(e,n,t){var content=t(549);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[e.i,content,""]]),content.locals&&(e.exports=content.locals);(0,t(28).default)("79666feb",content,!0,{sourceMap:!1})},372:function(e,n,t){var content=t(556);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[e.i,content,""]]),content.locals&&(e.exports=content.locals);(0,t(28).default)("2d6f6081",content,!0,{sourceMap:!1})},373:function(e,n,t){var content=t(558);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[e.i,content,""]]),content.locals&&(e.exports=content.locals);(0,t(28).default)("484c1728",content,!0,{sourceMap:!1})},374:function(e,n,t){var content=t(564);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[e.i,content,""]]),content.locals&&(e.exports=content.locals);(0,t(28).default)("ee96a7ac",content,!0,{sourceMap:!1})},375:function(e,n,t){var content=t(566);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[e.i,content,""]]),content.locals&&(e.exports=content.locals);(0,t(28).default)("20bafc29",content,!0,{sourceMap:!1})},398:function(e,n){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKIAAADYCAMAAABflciOAAAAAXNSR0IArs4c6QAAAFdQTFRFAAAA6+vr5O3t6Ojv5+rx6Orx6Ovw5+rw5unv5+nv5+nw6Orw5+nv5+nv6Orw6uzx6+3y7e/z7u/07vD07/D07/H18PH18fP29PX49fb49fb59vf59/j6by2nbwAAAA10Uk5TABocTmttmrbk8vj7/UOjRE8AAAJ0SURBVHja7d3JkqJQEIXhZJBBuIoDg5Lv/5y9aK0yWtQbUVGdScR/lte7+JQAOckCkb9J87LaBjfZVmWeymOSognu0hTJtzCrg8vU2V24aYPTtJvbb+hWGEKbiYgkdXCcOhGRIrhOIZI2volNKnlwnlxK78RSKu/ESrbeiVsJ7gMRIkSIECFChAgRIkSIECFChAgRIkSIECFChAgRIkSIECFChAgRIkSIECFChAgRIkSIECH+D+L+cDov5HTY+yDuhou+zGXY2ROPs77NfLQmjqqq17FfOtD9eFVVHW2Jo6pO3evPu+nnxp8Rj6o6vN8yqOrRjribPwpDGFTnnRlxUJ0+75oivsevES+q3eddnerFirhXvcbsu6rujYiHyJN1VD0YEU+qfcy+XvVkRDyrniOJZ+fE0T/x6p7YqXvi5J44qHfioM6J3aSqswPii+5yv6U1vy6+7S6q8zH64vRbxPfd5TLsgjGxX+gu/Xxbu5dUW+K80F2e+owtcaG7PPcZa+Lwuc8YE6eIPmNM7CL6jC3xGtNnbIljTJ8xvi7G9BlD4imSaFivDpEH2rCk7iNPF8OqvzgweV6zHJgsjp2e10zHTkvDu6c12+Hd4gj0nzXjEejyIPlxzX6QvDiO/7ql9TGOX8NDjTU8GnpTUt08YPv1QIQIESJEiBAhQoQIESJEiBAhQoQIESJEiBAhQoQIESJEiBAhQoQIESJEiBAhQoQIESJEiJ+IK3jF9QpeFL6C162v4KX1aeNb2KQihW9iISJJ7VlYJyIiWetX2GYiIiIbt8Z2I7dkTo91nclXksLhed0UiTwmzcvK0X/htirz9Eb7AxEbDW4uWpd3AAAAAElFTkSuQmCC"},415:function(e,n,t){"use strict";var r=t(20),o=(t(77),t(8),t(49),t(3)),c=t(5),l=window.__NUXT__;function d(){if(!this._hydrated)return this.$fetch()}function f(){if((e=this).$vnode&&e.$vnode.elm&&e.$vnode.elm.dataset&&e.$vnode.elm.dataset.fetchKey){var e;this._hydrated=!0,this._fetchKey=this.$vnode.elm.dataset.fetchKey;var data=l.fetch[this._fetchKey];if(data&&data._error)this.$fetchState.error=data._error;else for(var n in data)o.a.set(this.$data,n,data[n])}}function h(){var e=this;return this._fetchPromise||(this._fetchPromise=m.call(this).then((function(){delete e._fetchPromise}))),this._fetchPromise}function m(){return v.apply(this,arguments)}function v(){return(v=Object(r.a)(regeneratorRuntime.mark((function e(){var n,t,r,o=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.$nuxt.nbFetching++,this.$fetchState.pending=!0,this.$fetchState.error=null,this._hydrated=!1,n=null,t=Date.now(),e.prev=6,e.next=9,this.$options.fetch.call(this);case 9:e.next=15;break;case 11:e.prev=11,e.t0=e.catch(6),n=Object(c.p)(e.t0);case 15:if(!((r=this._fetchDelay-(Date.now()-t))>0)){e.next=19;break}return e.next=19,new Promise((function(e){return setTimeout(e,r)}));case 19:this.$fetchState.error=n,this.$fetchState.pending=!1,this.$fetchState.timestamp=Date.now(),this.$nextTick((function(){return o.$nuxt.nbFetching--}));case 23:case"end":return e.stop()}}),e,this,[[6,11]])})))).apply(this,arguments)}n.a={beforeCreate:function(){Object(c.l)(this)&&(this._fetchDelay="number"==typeof this.$options.fetchDelay?this.$options.fetchDelay:200,o.a.util.defineReactive(this,"$fetchState",{pending:!1,error:null,timestamp:Date.now()}),this.$fetch=h.bind(this),Object(c.a)(this,"created",f),Object(c.a)(this,"beforeMount",d))}}},421:function(e,n,t){t(422),e.exports=t(423)},423:function(e,n,t){"use strict";t.r(n),function(e){t(53),t(108),t(45),t(65),t(92);var n=t(46),r=t(20),o=(t(221),t(438),t(452),t(453),t(77),t(24),t(8),t(22),t(43),t(38),t(88),t(104),t(52),t(39),t(33),t(41),t(44),t(49),t(3)),c=t(399),l=t(266),d=t(5),f=t(86),h=t(415),m=t(209);function v(e,n){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=function(e,n){if(!e)return;if("string"==typeof e)return _(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return _(e,n)}(e))||n&&e&&"number"==typeof e.length){t&&(e=t);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,c=!0,l=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return c=e.done,e},e:function(e){l=!0,o=e},f:function(){try{c||null==t.return||t.return()}finally{if(l)throw o}}}}function _(e,n){(null==n||n>e.length)&&(n=e.length);for(var i=0,t=new Array(n);i2?n-2:0),r=2;r=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,c=!0,l=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return c=e.done,e},e:function(e){l=!0,o=e},f:function(){try{c||null==t.return||t.return()}finally{if(l)throw o}}}}function _(e,n){(null==n||n>e.length)&&(n=e.length);for(var i=0,t=new Array(n);i1&&void 0!==arguments[1]?arguments[1]:[],r=e.$children||[],o=v(r);try{for(o.s();!(n=o.n()).done;){var c=n.value;c.$fetch?t.push(c):c.$children&&k(c,t)}}catch(e){o.e(e)}finally{o.f()}return t}function O(e,n){if(n||!e.options.__hasNuxtData){var t=e.options._originDataFn||e.options.data||function(){return{}};e.options._originDataFn=t,e.options.data=function(){var data=t.call(this,this);return this.$ssrContext&&(n=this.$ssrContext.asyncData[e.cid]),m(m({},data),n)},e.options.__hasNuxtData=!0,e._Ctor&&e._Ctor.options&&(e._Ctor.options.data=e.options.data)}}function j(e){return e.options&&e._Ctor===e||(e.options?(e._Ctor=e,e.extendOptions=e.options):(e=d.a.extend(e))._Ctor=e,!e.options.name&&e.options.__file&&(e.options.name=e.options.__file)),e}function C(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"components";return Array.prototype.concat.apply([],e.matched.map((function(e,r){return Object.keys(e[t]).map((function(o){return n&&n.push(r),e[t][o]}))})))}function S(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return C(e,n,"instances")}function P(e,n){return Array.prototype.concat.apply([],e.matched.map((function(e,t){return Object.keys(e.components).reduce((function(r,o){return e.components[o]?r.push(n(e.components[o],e.instances[o],e,o,t)):delete e.components[o],r}),[])})))}function E(e,n){return Promise.all(P(e,function(){var e=Object(o.a)(regeneratorRuntime.mark((function e(t,r,o,c){var l,d;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("function"!=typeof t||t.options){e.next=11;break}return e.prev=1,e.next=4,t();case 4:t=e.sent,e.next=11;break;case 7:throw e.prev=7,e.t0=e.catch(1),e.t0&&"ChunkLoadError"===e.t0.name&&"undefined"!=typeof window&&window.sessionStorage&&(l=Date.now(),(!(d=parseInt(window.sessionStorage.getItem("nuxt-reload")))||d+6e41&&void 0!==arguments[1]?arguments[1]:j,t=arguments.length>2?arguments[2]:void 0;return r.call(this,e,n,t)};var o=t.resolve.bind(t);return t.resolve=function(e,n,t){return"string"==typeof e&&(e=Object(y.c)(e)),o(e,n,t)},t}var P={name:"NuxtChild",functional:!0,props:{nuxtChildKey:{type:String,default:""},keepAlive:Boolean,keepAliveProps:{type:Object,default:void 0}},render:function(e,n){var t=n.parent,data=n.data,r=n.props,o=t.$createElement;data.nuxtChild=!0;for(var c=t,l=t.$nuxt.nuxt.transitions,d=t.$nuxt.nuxt.defaultTransition,f=0;t;)t.$vnode&&t.$vnode.data.nuxtChild&&f++,t=t.$parent;data.nuxtChildDepth=f;var h=l[f]||d,m={};E.forEach((function(e){void 0!==h[e]&&(m[e]=h[e])}));var v={};$.forEach((function(e){"function"==typeof h[e]&&(v[e]=h[e].bind(c))}));var _=v.beforeEnter;if(v.beforeEnter=function(e){if(window.$nuxt.$nextTick((function(){window.$nuxt.$emit("triggerScroll")})),_)return _.call(c,e)},!1===h.css){var x=v.leave;(!x||x.length<2)&&(v.leave=function(e,n){x&&x.call(c,e),c.$nextTick(n)})}var y=o("routerView",data);return r.keepAlive&&(y=o("keep-alive",{props:r.keepAliveProps},[y])),o("transition",{props:m,on:v},[y])}},E=["name","mode","appear","css","type","duration","enterClass","leaveClass","appearClass","enterActiveClass","enterActiveClass","leaveActiveClass","appearActiveClass","enterToClass","leaveToClass","appearToClass"],$=["beforeEnter","enter","afterEnter","enterCancelled","beforeLeave","leave","afterLeave","leaveCancelled","beforeAppear","appear","afterAppear","appearCancelled"],R=(t(467),t(271)),A={components:Object(c.a)({},R.a.name,R.a),props:["error"],layout:"default",methods:{Back:function(){this.$router.push("/subject")}}},T=(t(546),t(58)),L=Object(T.a)(A,(function(){var e=this,n=e._self._c;return n("div",{staticClass:"error"},[n("a-result",{attrs:{status:String(e.error.statusCode),title:e.error.statusCode,"sub-title":e.error.msg}})],1)}),[],!1,null,"5d388b78",null).exports,U=t(51),I=(t(89),{name:"Nuxt",components:{NuxtChild:P,NuxtError:L},props:{nuxtChildKey:{type:String,default:void 0},keepAlive:Boolean,keepAliveProps:{type:Object,default:void 0},name:{type:String,default:"default"}},errorCaptured:function(e){this.displayingNuxtError&&(this.errorFromNuxtError=e,this.$forceUpdate())},computed:{routerViewKey:function(){if(void 0!==this.nuxtChildKey||this.$route.matched.length>1)return this.nuxtChildKey||Object(w.c)(this.$route.matched[0].path)(this.$route.params);var e=Object(U.a)(this.$route.matched,1)[0];if(!e)return this.$route.path;var n=e.components.default;if(n&&n.options){var t=n.options;if(t.key)return"function"==typeof t.key?t.key(this.$route):t.key}return/\/$/.test(e.path)?this.$route.path:this.$route.path.replace(/\/$/,"")}},beforeCreate:function(){l.a.util.defineReactive(this,"nuxt",this.$root.$options.nuxt)},render:function(e){var n=this;return this.nuxt.err?this.errorFromNuxtError?(this.$nextTick((function(){return n.errorFromNuxtError=!1})),e("div",{},[e("h2","An error occurred while showing the error page"),e("p","Unfortunately an error occurred and while showing the error page another error occurred"),e("p","Error details: ".concat(this.errorFromNuxtError.toString())),e("nuxt-link",{props:{to:"/"}},"Go back to home")])):(this.displayingNuxtError=!0,this.$nextTick((function(){return n.displayingNuxtError=!1})),e(L,{props:{error:this.nuxt.err}})):e("NuxtChild",{key:this.routerViewKey,props:this.$props})}}),B=(t(53),t(108),t(65),t(92),t(49),{name:"NuxtLoading",data:function(){return{percent:0,show:!1,canSucceed:!0,reversed:!1,skipTimerCount:0,rtl:!1,throttle:200,duration:5e3,continuous:!1}},computed:{left:function(){return!(!this.continuous&&!this.rtl)&&(this.rtl?this.reversed?"0px":"auto":this.reversed?"auto":"0px")}},beforeDestroy:function(){this.clear()},methods:{clear:function(){clearInterval(this._timer),clearTimeout(this._throttle),this._timer=null},start:function(){var e=this;return this.clear(),this.percent=0,this.reversed=!1,this.skipTimerCount=0,this.canSucceed=!0,this.throttle?this._throttle=setTimeout((function(){return e.startTimer()}),this.throttle):this.startTimer(),this},set:function(e){return this.show=!0,this.canSucceed=!0,this.percent=Math.min(100,Math.max(0,Math.floor(e))),this},get:function(){return this.percent},increase:function(e){return this.percent=Math.min(100,Math.floor(this.percent+e)),this},decrease:function(e){return this.percent=Math.max(0,Math.floor(this.percent-e)),this},pause:function(){return clearInterval(this._timer),this},resume:function(){return this.startTimer(),this},finish:function(){return this.percent=this.reversed?0:100,this.hide(),this},hide:function(){var e=this;return this.clear(),setTimeout((function(){e.show=!1,e.$nextTick((function(){e.percent=0,e.reversed=!1}))}),500),this},fail:function(e){return this.canSucceed=!1,this},startTimer:function(){var e=this;this.show||(this.show=!0),void 0===this._cut&&(this._cut=1e4/Math.floor(this.duration)),this._timer=setInterval((function(){e.skipTimerCount>0?e.skipTimerCount--:(e.reversed?e.decrease(e._cut):e.increase(e._cut),e.continuous&&(e.percent>=100||e.percent<=0)&&(e.skipTimerCount=1,e.reversed=!e.reversed))}),100)}},render:function(e){var n=e(!1);return this.show&&(n=e("div",{staticClass:"nuxt-progress",class:{"nuxt-progress-notransition":this.skipTimerCount>0,"nuxt-progress-failed":!this.canSucceed},style:{width:this.percent+"%",left:this.left}})),n}}),D=(t(548),Object(T.a)(B,undefined,undefined,!1,null,null,null).exports),N=(t(550),t(552),t(555),Object(T.a)({},(function(){var e=this._self._c;return e("div",{staticClass:"container"},[e("Nuxt")],1)}),[],!1,null,"373c1a4e",null).exports),F={data:function(){return{id:2,tabbars:[{id:2,text:"Discover",name:"discover",path:""},{id:3,text:"Profile",name:"me",path:"/user/me"}]}},methods:{goto:function(e){this.id!=e.id&&(this.id=e.id,console.log(e),this.$router.push({path:e.path}))}}},z=(t(557),Object(T.a)(F,(function(){var e=this._self._c;return e("div",{staticClass:"mainLayout"},[e("main",{staticClass:"mainWrapper"},[e("Nuxt")],1)])}),[],!1,null,"c11f112e",null).exports),M={components:{SearchPopUp:t(212).default},data:function(){return{searchPopUpFlag:!1}},methods:{toHome:function(){this.$router.push({path:"/"})},arouseSearch:function(){var e=this;this.searchPopUpFlag=!0,this.$nextTick((function(){e.$refs.searchPopUp.arouseSearch()}))}}},H=(t(565),Object(T.a)(M,(function(){var e=this,n=e._self._c;return n("div",{staticClass:"container"},[n("div",{staticClass:"searchHeader"},[n("div",{staticClass:"searchCard"},[n("img",{staticClass:"icon",attrs:{src:t(272),alt:""}}),e._v(" "),n("div",{staticClass:"searchBox"},[n("input",{staticClass:"inputText",attrs:{type:"text",placeholder:"search"},on:{focus:function(n){return e.arouseSearch()}}})]),e._v(" "),n("div")])]),e._v(" "),n("div",{staticClass:"layoutBody"},[n("Nuxt")],1),e._v(" "),n("SearchPopUp",{directives:[{name:"show",rawName:"v-show",value:e.searchPopUpFlag,expression:"searchPopUpFlag"}],ref:"searchPopUp",on:{close:function(n){e.searchPopUpFlag=!1}}})],1)}),[],!1,null,"ae91d2c6",null)),K=H.exports;function J(e,n){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=function(e,n){if(!e)return;if("string"==typeof e)return X(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return X(e,n)}(e))||n&&e&&"number"==typeof e.length){t&&(e=t);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,c=!0,l=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return c=e.done,e},e:function(e){l=!0,o=e},f:function(){try{c||null==t.return||t.return()}finally{if(l)throw o}}}}function X(e,n){(null==n||n>e.length)&&(n=e.length);for(var i=0,t=new Array(n);i0}},methods:{refreshOnlineStatus:function(){void 0===window.navigator.onLine?this.isOnline=!0:this.isOnline=window.navigator.onLine},refresh:function(){var e=this;return Object(o.a)(regeneratorRuntime.mark((function n(){var t,r;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if((t=Object(w.h)(e.$route)).length){n.next=3;break}return n.abrupt("return");case 3:return e.$loading.start(),r=t.map((function(n){var p=[];if(n.$options.fetch&&n.$options.fetch.length&&p.push(Object(w.q)(n.$options.fetch,e.context)),n.$fetch)p.push(n.$fetch());else{var t,r=J(Object(w.e)(n.$vnode.componentInstance));try{for(r.s();!(t=r.n()).done;){var component=t.value;p.push(component.$fetch())}}catch(e){r.e(e)}finally{r.f()}}return n.$options.asyncData&&p.push(Object(w.q)(n.$options.asyncData,e.context).then((function(e){for(var t in e)l.a.set(n.$data,t,e[t])}))),Promise.all(p)})),n.prev=5,n.next=8,Promise.all(r);case 8:n.next=15;break;case 10:n.prev=10,n.t0=n.catch(5),e.$loading.fail(n.t0),Object(w.k)(n.t0),e.error(n.t0);case 15:e.$loading.finish();case 16:case"end":return n.stop()}}),n,null,[[5,10]])})))()},errorChanged:function(){if(this.nuxt.err){this.$loading&&(this.$loading.fail&&this.$loading.fail(this.nuxt.err),this.$loading.finish&&this.$loading.finish());var e=(L.options||L).layout;"function"==typeof e&&(e=e(this.context)),this.setLayout(e)}},setLayout:function(e){return e&&Q["_"+e]||(e="default"),this.layoutName=e,this.layout=Q["_"+e],this.layout},loadLayout:function(e){return e&&Q["_"+e]||(e="default"),Promise.resolve(Q["_"+e])}},components:{NuxtLoading:D}};t(88);function W(e,n){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=function(e,n){if(!e)return;if("string"==typeof e)return G(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return G(e,n)}(e))||n&&e&&"number"==typeof e.length){t&&(e=t);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,c=!0,l=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return c=e.done,e},e:function(e){l=!0,o=e},f:function(){try{c||null==t.return||t.return()}finally{if(l)throw o}}}}function G(e,n){(null==n||n>e.length)&&(n=e.length);for(var i=0,t=new Array(n);i2&&void 0!==arguments[2]?arguments[2]:{},r=t.isProperty,o=void 0!==r&&r;if(!n.length||o&&1===n.length)return e;var c=n.shift();return e.modules[c]=e.modules[c]||{},e.modules[c].namespaced=!0,e.modules[c].modules=e.modules[c].modules||{},re(e.modules[c],n,{isProperty:o})}function oe(e,n,t){n&&("state"===t?e.state=n||e.state:e[t]=Object.assign({},e[t],n))}t(104);var ae=function(){return t.e(3).then(t.bind(null,705)).then((function(e){return xe(e.default||e)}))},ie=function(){return t.e(4).then(t.bind(null,718)).then((function(e){return xe(e.default||e)}))},se=function(){return t.e(8).then(t.bind(null,895)).then((function(e){return xe(e.default||e)}))},ce=function(){return t.e(13).then(t.bind(null,891)).then((function(e){return xe(e.default||e)}))},ue=function(){return t.e(14).then(t.bind(null,755)).then((function(e){return xe(e.default||e)}))},pe=function(){return Promise.resolve().then(t.bind(null,212)).then((function(e){return xe(e.default||e)}))},le=function(){return t.e(15).then(t.bind(null,896)).then((function(e){return xe(e.default||e)}))},de=function(){return t.e(16).then(t.bind(null,715)).then((function(e){return xe(e.default||e)}))},fe=function(){return t.e(5).then(t.bind(null,761)).then((function(e){return xe(e.default||e)}))},he=function(){return t.e(6).then(t.bind(null,757)).then((function(e){return xe(e.default||e)}))},me=function(){return t.e(7).then(t.bind(null,788)).then((function(e){return xe(e.default||e)}))},ge=function(){return t.e(9).then(t.bind(null,758)).then((function(e){return xe(e.default||e)}))},ve=function(){return t.e(10).then(t.bind(null,756)).then((function(e){return xe(e.default||e)}))},_e=function(){return Promise.all([t.e(0),t.e(11)]).then(t.bind(null,759)).then((function(e){return xe(e.default||e)}))},be=function(){return t.e(12).then(t.bind(null,760)).then((function(e){return xe(e.default||e)}))};function xe(e){if(!e||!e.functional)return e;var n=Array.isArray(e.props)?e.props:Object.keys(e.props||{});return{render:function(t){var r={},o={};for(var c in this.$attrs)n.includes(c)?o[c]=this.$attrs[c]:r[c]=this.$attrs[c];return t(e,{on:this.$listeners,attrs:r,props:o,scopedSlots:this.$scopedSlots},this.$slots.default)}}}for(var ye in r)l.a.component(ye,r[ye]),l.a.component("Lazy"+ye,r[ye]);function we(e,n){return ke.apply(this,arguments)}function ke(){return(ke=Object(o.a)(regeneratorRuntime.mark((function e(n,r){var o,c,l;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r.res,e.next=3,Promise.all([t.e(1),t.e(46)]).then(t.bind(null,866));case 3:return o=e.sent,(c=o.default).apps.length||c.initializeApp(n),l=c.apps[0],e.abrupt("return",{firebase:c,session:l});case 8:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var Oe=function(e,n,t,r){return je.apply(this,arguments)};function je(){return(je=Object(o.a)(regeneratorRuntime.mark((function e(n,r,o,c){var l;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([t.e(1),t.e(44)]).then(t.bind(null,867));case 2:return l=n.auth(),e.abrupt("return",l);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var Ce=function(e,n){return Se.apply(this,arguments)};function Se(){return(Se=Object(o.a)(regeneratorRuntime.mark((function e(n,r){var o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:e.next=2;break;case 2:return e.next=4,Promise.all([t.e(1),t.e(45)]).then(t.bind(null,892));case 4:return e.next=6,r.analytics.isSupported();case 6:if(e.sent){e.next=10;break}return console.info("[@nuxtjs/firebase]: Firebase Analytics was not initialized because it is not supported on this browser."),e.abrupt("return");case 10:return(o=n.analytics()).setAnalyticsCollectionEnabled(!0),e.abrupt("return",o);case 13:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var Pe={apiKey:"AIzaSyDiJuzm3SA6d0UGTjDUXtYICLGcyO47w1g",authDomain:"ethereader-e6833.firebaseapp.com",projectId:"ethereader-e6833",storageBucket:"ethereader-e6833.appspot.com",messagingSenderId:"141962630464",appId:"1:141962630464:web:ace51ff35ade7df65196a5",measurementId:"G-2DR46E4MQ1"},Ee=function(){var e=Object(o.a)(regeneratorRuntime.mark((function e(n,t){var r,o,c,l,d,f,h,m,v;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,we(Pe,n);case 2:return r=e.sent,o=r.firebase,c=r.session,l=[],l=[Oe(c,o,n,t),Ce(c,o,n,t)],e.next=10,Promise.all(l);case 10:d=e.sent,f=Object(U.a)(d,2),h=f[0],m=f[1],v={auth:h,analytics:m},t("fireModule",o),n.$fireModule=o,t("fire",v),n.$fire=v;case 19:case"end":return e.stop()}}),e)})));return function(n,t){return e.apply(this,arguments)}}();var $e=t(161),Re=t.n($e),Ae=t(405);function Te(object,e){var n=Object.keys(object);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(object);e&&(t=t.filter((function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable}))),n.push.apply(n,t)}return n}function Le(e){for(var i=1;i=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,c=!0,l=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return c=e.done,e},e:function(e){l=!0,o=e},f:function(){try{c||null==t.return||t.return()}finally{if(l)throw o}}}}function Ie(e,n){(null==n||n>e.length)&&(n=e.length);for(var i=0,t=new Array(n);i2&&void 0!==arguments[2]?arguments[2]:"common",o=Ue(Array.isArray(r)?r:[r]);try{for(o.s();!(t=o.n()).done;){var c=t.value;n?this.defaults.headers[c][e]=n:delete this.defaults.headers[c][e]}}catch(e){o.e(e)}finally{o.f()}},setToken:function(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"common",r=e?(n?n+" ":"")+e:null;this.setHeader("Authorization",r,t)},onRequest:function(e){this.interceptors.request.use((function(n){return e(n)||n}))},onResponse:function(e){this.interceptors.response.use((function(n){return e(n)||n}))},onRequestError:function(e){this.interceptors.request.use(void 0,(function(n){return e(n)||Promise.reject(n)}))},onResponseError:function(e){this.interceptors.response.use(void 0,(function(n){return e(n)||Promise.reject(n)}))},onError:function(e){this.onRequestError(e),this.onResponseError(e)},create:function(e){return ze(Object(Ae.a)(e,this.defaults))}},De=function(){var e=Fe[Ne];Be["$"+e]=function(){return this[e].apply(this,arguments).then((function(e){return e&&e.data}))}},Ne=0,Fe=["request","delete","get","head","options","post","put","patch"];Ne has been deprecated and will be removed in Nuxt 3, please use instead")),_.a.render(e,n)}})),l.a.component(P.name,P),l.a.component("NChild",P),l.a.component(I.name,I),Object.defineProperty(l.a.prototype,"$nuxt",{get:function(){var e=this.$root.$options.$nuxt;return e||"undefined"==typeof window?e:window.$nuxt},configurable:!0}),l.a.use(f.a,{keyName:"head",attribute:"data-n-head",ssrAttribute:"data-n-head-ssr",tagIDKeyName:"hid"});var yn={name:"page",mode:"out-in",appear:!1,appearClass:"appear",appearActiveClass:"appear-active",appearToClass:"appear-to"},wn=d.a.Store.prototype.registerModule;function kn(path,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},t=Array.isArray(path)?!!path.reduce((function(e,path){return e&&e[path]}),this.state):path in this.state;return wn.call(this,path,e,xn({preserveState:t},n))}function On(e){return jn.apply(this,arguments)}function jn(){return jn=Object(o.a)(regeneratorRuntime.mark((function e(n){var t,r,c,d,f,h,path,m,v=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return m=function(e,n){if(!e)throw new Error("inject(key, value) has no key provided");if(void 0===n)throw new Error("inject('".concat(e,"', value) has no value provided"));d[e="$"+e]=n,d.context[e]||(d.context[e]=n),c[e]=d[e];var t="__nuxt_"+e+"_installed__";l.a[t]||(l.a[t]=!0,l.a.use((function(){Object.prototype.hasOwnProperty.call(l.a.prototype,e)||Object.defineProperty(l.a.prototype,e,{get:function(){return this.$root.$options[e]}})})))},t=v.length>1&&void 0!==v[1]?v[1]:{},e.next=4,S(0,t);case 4:return r=e.sent,(c=ee(n)).$router=r,c.registerModule=kn,d=xn({head:{title:"SheRead",script:[{type:"text/javascript",src:"https://static.beidouclass.com/static/dsbridge/dsbridge.js",defer:!0}],htmlAttrs:{lang:"en"},meta:[{charset:"utf-8"},{name:"viewport",content:"width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"},{hid:"description",name:"description",content:"SheRead"},{name:"format-detection",content:"telephone=no"},{name:"theme-color",content:"#FB7299"},{name:"apple-mobile-web-app-capable",content:"yes"},{name:"apple-mobile-web-app-status-bar-style",content:"default"}],link:[{rel:"icon",type:"image/x-icon",href:"/favicon.ico"},{rel:"dns-prefetch",href:"//shereadapp.com"},{rel:"dns-prefetch",href:"//cdn.shereadscontent.com"},{rel:"dns-prefetch",href:"//api.ethereader.net"}],style:[]},store:c,router:r,nuxt:{defaultTransition:yn,transitions:[yn],setTransitions:function(e){return Array.isArray(e)||(e=[e]),e=e.map((function(e){return e=e?"string"==typeof e?Object.assign({},yn,{name:e}):Object.assign({},yn,e):yn})),this.$options.nuxt.transitions=e,e},err:null,dateErr:null,error:function(e){e=e||null,d.context._errored=Boolean(e),e=e?Object(w.p)(e):null;var t=d.nuxt;return this&&(t=this.nuxt||this.$options.nuxt),t.dateErr=Date.now(),t.err=e,n&&(n.nuxt.error=e),e}}},V),c.app=d,f=n?n.next:function(e){return d.router.push(e)},n?h=r.resolve(n.url).route:(path=Object(w.f)(r.options.base,r.options.mode),h=r.resolve(path).route),e.next=14,Object(w.t)(d,{store:c,route:h,next:f,error:d.nuxt.error.bind(d),payload:n?n.payload:void 0,req:n?n.req:void 0,res:n?n.res:void 0,beforeRenderFns:n?n.beforeRenderFns:void 0,ssrContext:n});case 14:m("config",t),window.__NUXT__&&window.__NUXT__.state&&c.replaceState(window.__NUXT__.state),e.next=20;break;case 20:if("function"!=typeof Ee){e.next=23;break}return e.next=23,Ee(d.context,m);case 23:return e.next=26,Me(d.context,m);case 26:e.next=29;break;case 29:e.next=32;break;case 32:return e.next=35,sn(d.context);case 35:return e.next=38,un(d.context);case 38:if("function"!=typeof an.a){e.next=41;break}return e.next=41,Object(an.a)(d.context,m);case 41:e.next=44;break;case 44:return e.next=47,fn(d.context);case 47:if("function"!=typeof hn.a){e.next=50;break}return e.next=50,Object(hn.a)(d.context,m);case 50:e.next=53;break;case 53:return e.next=56,new Promise((function(e,n){if(!r.resolve(d.context.route.fullPath).route.matched.length)return e();r.replace(d.context.route.fullPath,e,(function(t){if(!t._isRouter)return n(t);if(2!==t.type)return e();var c=r.afterEach(function(){var n=Object(o.a)(regeneratorRuntime.mark((function n(t,r){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,Object(w.j)(t);case 3:d.context.route=n.sent,d.context.params=t.params||{},d.context.query=t.query||{},c(),e();case 8:case"end":return n.stop()}}),n)})));return function(e,t){return n.apply(this,arguments)}}())}))}));case 56:return e.abrupt("return",{store:c,app:d,router:r});case 57:case"end":return e.stop()}}),e)}))),jn.apply(this,arguments)}}},[[421,42,43]]]);