1
0
mirror of https://github.com/devfake/flox.git synced 2024-11-15 14:42:31 +01:00
flox/public/assets/app.js
2016-11-23 21:17:22 +01:00

7 lines
74 KiB
JavaScript

webpackJsonp([1],[function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}var o=n(8),i=r(o),a=n(19),s=r(a),c=n(6),u=n(139),l=r(u),f=n(141),p=r(f),h=n(138),d=r(h),v=n(140),m=r(v),g=n(73),y=r(g),_=n(38),w=r(_);n(129);var b=new s.default({store:w.default,router:y.default,created:function(){this.checkForUserColorScheme()},computed:(0,i.default)({},(0,c.mapState)({colorScheme:function(t){return t.colorScheme}})),components:{SiteHeader:l.default,Search:p.default,SiteFooter:d.default,Login:m.default},methods:(0,i.default)({},(0,c.mapActions)(["setColorScheme"]),{checkForUserColorScheme:function(){localStorage.getItem("color")||localStorage.setItem("color","dark"),this.setColorScheme(localStorage.getItem("color"))}})});b.$mount("#app")},,function(t,e,n){var r=n(49)("wks"),o=n(51),i=n(3).Symbol,a="function"==typeof i,s=t.exports=function(t){return r[t]||(r[t]=a&&i[t]||(a?i:o)("Symbol."+t))};s.store=r},function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},,function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={methods:{scrollToTop:function(){function t(i){r+=Math.PI/(e/(i-o)),r>=Math.PI&&window.scrollTo(0,0),0!==window.scrollY&&(window.scrollTo(0,Math.round(n+n*Math.cos(r))),o=i,window.requestAnimationFrame(t))}var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:300,n=window.scrollY/2,r=0,o=performance.now();window.requestAnimationFrame(t)},lang:function(t){var e=JSON.parse(config.language);return e[t]}}}},,function(t,e){var n=t.exports={version:"2.4.0"};"number"==typeof __e&&(__e=n)},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var o=n(87),i=r(o);e.default=i.default||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}},function(t,e,n){var r=n(18);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,e,n){t.exports=!n(23)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e,n){var r=n(12),o=n(24);t.exports=n(10)?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var r=n(9),o=n(103),i=n(121),a=Object.defineProperty;e.f=n(10)?Object.defineProperty:function(t,e,n){if(r(t),e=i(e,!0),r(n),o)try{return a(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){var r=n(20);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},function(t,e,n){var r=n(3),o=n(7),i=n(13),a=n(11),s="prototype",c=function(t,e,n){var u,l,f,p=t&c.F,h=t&c.G,d=t&c.S,v=t&c.P,m=t&c.B,g=t&c.W,y=h?o:o[e]||(o[e]={}),_=y[s],w=h?r:d?r[e]:(r[e]||{})[s];h&&(n=e);for(u in n)l=!p&&w&&void 0!==w[u],l&&u in y||(f=l?w[u]:n[u],y[u]=h&&"function"!=typeof w[u]?n[u]:m&&l?i(f,r):g&&w[u]==f?function(t){var e=function(e,n,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,r)}return t.apply(this,arguments)};return e[s]=t[s],e}(f):v&&"function"==typeof f?i(Function.call,f):f,v&&((y.virtual||(y.virtual={}))[u]=f,t&c.R&&_&&!_[u]&&a(_,u,f)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},function(t,e){t.exports={}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},,function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,n){var r=n(18),o=n(3).document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,n){var r=n(12).f,o=n(17),i=n(2)("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,i)&&r(t,i,{configurable:!0,value:e})}},function(t,e,n){var r=n(49)("keys"),o=n(51);t.exports=function(t){return r[t]||(r[t]=o(t))}},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},function(t,e,n){var r=n(42),o=n(21);t.exports=function(t){return r(o(t))}},function(t,e,n){var r=n(27),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,e,n){var r=n(21);t.exports=function(t){return Object(r(t))}},function(t,e,n){var r,o;r=n(78);var i=n(143);o=r=r||{},"object"!=typeof r.default&&"function"!=typeof r.default||(o=r=r.default),"function"==typeof o&&(o=o.options),o.render=i.render,o.staticRenderFns=i.staticRenderFns,t.exports=r},,,,,,,function(t,e,n){"use strict";function r(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function o(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(19),a=o(i),s=n(6),c=o(s),u=n(74),l=r(u),f=n(75),p=o(f);a.default.use(c.default),e.default=new c.default.Store({state:{items:[],searchTitle:"",userFilter:"",loading:!1,clickedMoreLoading:!1,paginator:null,colorScheme:""},mutations:p.default,actions:l})},function(t,e,n){var r=n(16),o=n(2)("toStringTag"),i="Arguments"==r(function(){return arguments}()),a=function(t,e){try{return t[e]}catch(t){}};t.exports=function(t){var e,n,s;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=a(e=Object(t),o))?n:i?r(e):"Object"==(s=r(e))&&"function"==typeof e.callee?"Arguments":s}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e,n){t.exports=n(3).document&&document.documentElement},function(t,e,n){var r=n(16);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,e,n){var r=n(15),o=n(2)("iterator"),i=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||i[o]===t)}},function(t,e,n){var r=n(9);t.exports=function(t,e,n,o){try{return o?e(r(n)[0],n[1]):e(n)}catch(e){var i=t.return;throw void 0!==i&&r(i.call(t)),e}}},function(t,e,n){"use strict";var r=n(47),o=n(14),i=n(116),a=n(11),s=n(17),c=n(15),u=n(105),l=n(25),f=n(112),p=n(2)("iterator"),h=!([].keys&&"next"in[].keys()),d="@@iterator",v="keys",m="values",g=function(){return this};t.exports=function(t,e,n,y,_,w,b){u(n,e,y);var x,S,E,T=function(t){if(!h&&t in R)return R[t];switch(t){case v:return function(){return new n(this,t)};case m:return function(){return new n(this,t)}}return function(){return new n(this,t)}},A=e+" Iterator",O=_==m,M=!1,R=t.prototype,I=R[p]||R[d]||_&&R[_],C=I||T(_),k=_?O?T("entries"):C:void 0,j="Array"==e?R.entries||I:I;if(j&&(E=f(j.call(new t)),E!==Object.prototype&&(l(E,A,!0),r||s(E,p)||a(E,p,g))),O&&I&&I.name!==m&&(M=!0,C=function(){return I.call(this)}),r&&!b||!h&&!M&&R[p]||a(R,p,C),c[e]=C,c[A]=g,_)if(x={values:O?C:T(m),keys:w?C:T(v),entries:k},b)for(S in x)S in R||i(R,S,x[S]);else o(o.P+o.F*(h||M),e,x);return x}},function(t,e,n){var r=n(2)("iterator"),o=!1;try{var i=[7][r]();i.return=function(){o=!0},Array.from(i,function(){throw 2})}catch(t){}t.exports=function(t,e){if(!e&&!o)return!1;var n=!1;try{var i=[7],a=i[r]();a.next=function(){return{done:n=!0}},i[r]=function(){return a},t(i)}catch(t){}return n}},function(t,e){t.exports=!0},function(t,e,n){var r=n(113),o=n(40);t.exports=Object.keys||function(t){return r(t,o)}},function(t,e,n){var r=n(3),o="__core-js_shared__",i=r[o]||(r[o]={});t.exports=function(t){return i[t]||(i[t]={})}},function(t,e,n){var r,o,i,a=n(13),s=n(104),c=n(41),u=n(22),l=n(3),f=l.process,p=l.setImmediate,h=l.clearImmediate,d=l.MessageChannel,v=0,m={},g="onreadystatechange",y=function(){var t=+this;if(m.hasOwnProperty(t)){var e=m[t];delete m[t],e()}},_=function(t){y.call(t.data)};p&&h||(p=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return m[++v]=function(){s("function"==typeof t?t:Function(t),e)},r(v),v},h=function(t){delete m[t]},"process"==n(16)(f)?r=function(t){f.nextTick(a(y,t,1))}:d?(o=new d,i=o.port2,o.port1.onmessage=_,r=a(i.postMessage,i,1)):l.addEventListener&&"function"==typeof postMessage&&!l.importScripts?(r=function(t){l.postMessage(t+"","*")},l.addEventListener("message",_,!1)):r=g in u("script")?function(t){c.appendChild(u("script"))[g]=function(){c.removeChild(this),y.call(t)}}:function(t){setTimeout(a(y,t,1),0)}),t.exports={set:p,clear:h}},function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},function(t,e,n){var r=n(39),o=n(2)("iterator"),i=n(15);t.exports=n(7).getIteratorMethod=function(t){if(void 0!=t)return t[o]||t["@@iterator"]||i[r(t)]}},function(t,e,n){"use strict";var r=n(119)(!0);n(45)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=r(e,n),this._i+=t.length,{value:t,done:!1})})},,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(4),i=r(o);i.default.defaults.headers.common["X-CSRF-TOKEN"]=document.querySelector("#token").getAttribute("content");var a=document.body.dataset,s=a.url,c=a.uri,u=a.auth,l=a.scoutDriver,f=a.language,p={uri:c,url:s,auth:u,language:f,scoutDriver:l,poster:s+"/assets/poster",posterTMDB:"http://image.tmdb.org/t/p/w185",api:s+"/api"};window.config=p,e.default=p},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(19),i=r(o),a=n(151),s=r(a),c=n(72),u=r(c),l=n(134),f=r(l),p=n(135),h=r(p),d=n(136),v=r(d),m=n(137),g=r(m);i.default.use(s.default),e.default=new s.default({mode:"history",base:u.default.uri,routes:[{path:"/",component:f.default},{path:"/search",component:h.default},{path:"/settings",component:v.default},{path:"/suggestions",component:g.default},{path:"/trending",component:g.default},{path:"/upcoming",component:g.default},{path:"*",component:f.default}]})},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){var n=t.commit;n("SET_LOADING",!0),(0,u.default)(config.api+"/items/"+e).then(function(t){var e=t.data,r=e.data,o=e.next_page_url;n("SET_ITEMS",r),n("SET_PAGINATOR",o),setTimeout(function(){n("SET_LOADING",!1)},500)},function(t){404==t.status&&(window.location.href=config.url)})}function i(t,e){var n=t.commit;n("SET_CLICKED_LOADING",!0),(0,u.default)(e).then(function(t){var e=t.data,r=e.data,o=e.next_page_url;n("SET_PAGINATOR",o),setTimeout(function(){n("PUSH_TO_ITEMS",r),n("SET_CLICKED_LOADING",!1)},500)})}function a(t,e){var n=t.commit;n("SET_SEARCH_TITLE",e)}function s(t,e){var n=t.commit;localStorage.setItem("color",e),n("SET_COLOR_SCHEME",e)}Object.defineProperty(e,"__esModule",{value:!0}),e.loadItems=o,e.loadMoreItems=i,e.setSearchTitle=a,e.setColorScheme=s;var c=n(4),u=r(c)},function(t,e,n){"use strict";function r(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function o(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i,a=n(91),s=o(a),c=n(92),u=o(c),l=n(76),f=r(l);e.default=(i={},(0,s.default)(i,f.SET_SEARCH_TITLE,function(t,e){t.searchTitle=e}),(0,s.default)(i,f.SET_USER_FILTER,function(t,e){t.userFilter=e}),(0,s.default)(i,f.SET_ITEMS,function(t,e){t.items=e}),(0,s.default)(i,f.PUSH_TO_ITEMS,function(t,e){var n;(n=t.items).push.apply(n,(0,u.default)(e))}),(0,s.default)(i,f.SET_LOADING,function(t,e){t.loading=e}),(0,s.default)(i,f.SET_PAGINATOR,function(t,e){t.paginator=e}),(0,s.default)(i,f.SET_CLICKED_LOADING,function(t,e){t.clickedMoreLoading=e}),(0,s.default)(i,f.SET_COLOR_SCHEME,function(t,e){t.colorScheme=e}),i)},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.SET_SEARCH_TITLE="SET_SEARCH_TITLE",e.SET_USER_FILTER="SET_USER_FILTER",e.SET_ITEMS="SET_ITEMS",e.PUSH_TO_ITEMS="PUSH_TO_ITEMS",e.SET_LOADING="SET_LOADING",e.SET_PAGINATOR="SET_PAGINATOR",e.SET_CLICKED_LOADING="SET_CLICKED_LOADING",e.SET_COLOR_SCHEME="SET_COLOR_SCHEME"},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(8),i=r(o),a=n(31),s=r(a),c=n(6),u=n(5),l=r(u),f=n(4),p=r(f);e.default={mixins:[l.default],created:function(){this.fetchData(),this.fetchSettings()},data:function(){return{displayGenre:null,displayDate:null}},computed:(0,i.default)({},(0,c.mapState)({loading:function(t){return t.loading},items:function(t){return t.items},userFilter:function(t){return t.userFilter},clickedMoreLoading:function(t){return t.clickedMoreLoading},paginator:function(t){return t.paginator}})),methods:(0,i.default)({},(0,c.mapActions)(["loadItems","loadMoreItems","setSearchTitle"]),{fetchData:function(){this.loadItems(this.userFilter),this.setSearchTitle("")},fetchSettings:function(){var t=this;(0,p.default)(config.api+"/settings").then(function(e){var n=e.data;t.displayGenre=n.genre,t.displayDate=n.date})},loadMore:function(){this.loadMoreItems(this.paginator)}}),components:{Item:s.default},watch:{$route:function(){this.fetchData()}}}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(4),i=r(o),a=n(5),s=r(a);e.default={mixins:[s.default],props:["item","genre","date"],data:function(){return{localItem:this.item,saveTimeout:null,auth:config.auth,prevRating:null,rated:!1,disabled:!1}},computed:{poster:function(){return this.localItem.rating?config.poster+this.localItem.poster:config.posterTMDB+this.localItem.poster},noImage:function(){return config.url+"/assets/img/no-image.png"},released:function t(){var e=this.$route.path,t=new Date(1e3*this.localItem.released);if("/upcoming"==e){var n=navigator.language||navigator.userLanguage;return t.toLocaleDateString(n,{year:"numeric",month:"numeric",day:"numeric"})}return t.getFullYear()}},methods:{changeRating:function(){var t=this;this.auth&&(clearTimeout(this.saveTimeout),this.prevRating=this.localItem.rating,this.localItem.rating=3==this.prevRating?1:+this.prevRating+1,this.saveTimeout=setTimeout(function(){t.saveNewRating()},500))},saveNewRating:function(){var t=this;i.default.patch(config.api+"/change-rating/"+this.localItem.id,{rating:this.localItem.rating}).catch(function(e){t.localItem.rating=t.prevRating,alert("Error in saveNewRating()")})},addNewItem:function(){var t=this;this.auth&&(this.disabled=!0,this.rated=!0,i.default.post(config.api+"/add",{item:this.localItem}).then(function(e){t.localItem=e.data,t.disabled=!1},function(e){409==e.status&&alert(t.localItem.title+" already exists!")}))},removeItem:function(){var t=this;if(this.auth){var e=window.confirm(this.lang("confirm delete"));e&&i.default.delete(config.api+"/remove/"+this.localItem.id).then(function(e){t.localItem.rating=null},function(t){alert("Error in removeItem()")})}}}}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(93),i=r(o),a=n(90),s=r(a),c=n(8),u=r(c),l=n(31),f=r(l),p=n(5),h=r(p),d=n(4),v=r(d),m=n(6);e.default={mixins:[h.default],created:function(){this.initSearch()},data:function(){return{floxItems:[],tmdbItems:[]}},computed:(0,u.default)({},(0,m.mapState)({searchTitle:function(t){return t.searchTitle},loading:function(t){return t.loading}})),methods:(0,u.default)({},(0,m.mapMutations)(["SET_SEARCH_TITLE","SET_LOADING"]),{initSearch:function(){var t=this;this.SET_SEARCH_TITLE(this.$route.query.q),this.SET_LOADING(!0),this.searchFlox(),this.searchTMDB().then(function(){setTimeout(function(){t.SET_LOADING(!1)},500)})},searchFlox:function(){var t=this;(0,v.default)(config.api+"/search-items?q="+this.searchTitle).then(function(e){t.floxItems=e.data},function(t){console.log(t)})},searchTMDB:function(){var t=this;return(0,s.default)(i.default.mark(function e(){return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!config.auth){e.next=3;break}return e.next=3,(0,v.default)(config.api+"/search-tmdb?q="+t.searchTitle).then(function(e){var n=t.floxItems.map(function(t){return t.tmdb_id});t.tmdbItems=e.data.filter(function(t){return!n.includes(t.tmdb_id)})}).catch(function(t){alert("Error in searchTMDB(): "+t)});case 3:case"end":return e.stop()}},e,t)}))()}}),components:{Item:f.default},watch:{$route:function(){this.scrollToTop(),this.initSearch()}}}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(8),i=r(o),a=n(6),s=n(5),c=r(s),u=n(4),l=r(u);e.default={mixins:[c.default],created:function(){this.fetchSettings()},data:function(){return{username:"",password:"",displayGenre:null,displayDate:null,success:!1,uploadSuccess:!1,uploadedFile:null}},computed:(0,i.default)({},(0,a.mapState)({loading:function(t){return t.loading}}),{exportLink:function(){return config.api+"/export"}}),methods:(0,i.default)({},(0,a.mapMutations)(["SET_LOADING"]),{upload:function(t){var e=t.target.files||t.dataTransfer.files;this.uploadedFile=new FormData,this.uploadedFile.append("import",e[0])},updateSettings:function(){var t=this.displayDate,e=this.displayGenre;l.default.patch(config.api+"/settings",{date:t,genre:e}).catch(function(t){alert("Error")})},importMovies:function(){var t=this;if(this.uploadedFile){var e=window.confirm(this.lang("import warn"));e&&(this.SET_LOADING(!0),l.default.post(config.api+"/import",this.uploadedFile).then(function(e){t.SET_LOADING(!1),t.uploadSuccess=!0},function(e){t.SET_LOADING(!1),alert("Error: "+e.data)}))}},fetchSettings:function(){var t=this;this.SET_LOADING(!0),(0,l.default)(config.api+"/settings").then(function(e){var n=e.data;t.SET_LOADING(!1),t.username=n.username,t.displayGenre=n.genre,t.displayDate=n.date})},editUser:function(){var t=this,e=this.username,n=this.password;""!=e&&l.default.patch(config.api+"/userdata",{username:e,password:n}).then(function(e){t.success=!0,t.clearSuccessMessage()})},updateGenre:function(){var t=this;this.SET_LOADING(!0),(0,l.default)(config.api+"/update-genre").then(function(e){t.SET_LOADING(!1)})},syncScout:function(){var t=this;this.SET_LOADING(!0),(0,l.default)(config.api+"/sync-scout").then(function(e){t.SET_LOADING(!1)})},clearSuccessMessage:function(){var t=this;setTimeout(function(){t.success=!1},2e3)}})}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(8),i=r(o),a=n(31),s=r(a),c=n(5),u=r(c),l=n(4),f=r(l),p=n(6);e.default={mixins:[u.default],created:function(){this.init()},data:function(){return{items:[]}},computed:(0,i.default)({},(0,p.mapState)({loading:function(t){return t.loading}})),methods:(0,i.default)({},(0,p.mapMutations)(["SET_LOADING"]),{init:function(){this.SET_LOADING(!0);var t=this.$route.path;"/trending"==t?this.initTrending():"/suggestions"==t?this.initSuggestions():"/upcoming"==t&&this.initUpcoming()},initSuggestions:function(){var t=this,e=this.$route.query.for;(0,f.default)(config.api+"/suggestions/"+e).then(function(e){t.items=e.data,t.SET_LOADING(!1)})},initTrending:function(){var t=this;(0,f.default)(config.api+"/trending").then(function(e){t.items=e.data,t.SET_LOADING(!1)})},initUpcoming:function(){var t=this;(0,f.default)(config.api+"/upcoming").then(function(e){t.items=e.data,t.SET_LOADING(!1)})}}),components:{Item:s.default},watch:{$route:function(){this.scrollToTop(),this.init()}}}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(8),i=r(o),a=n(6),s=n(5),c=r(s);e.default={mixins:[c.default],data:function(){return{auth:config.auth,logout:config.api+"/logout",login:config.url+"/login",settings:config.url+"/settings"}},computed:(0,i.default)({},(0,a.mapState)({loading:function(t){return t.loading}}))}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(8),i=r(o),a=n(5),s=r(a),c=n(38),u=(r(c),n(6));e.default={mixins:[s.default],created:function(){this.checkForUserFilter()},computed:(0,i.default)({},(0,u.mapState)({userFilter:function(t){return t.userFilter},colorScheme:function(t){return t.colorScheme}}),{root:function(){return config.uri}}),methods:(0,i.default)({},(0,u.mapActions)(["setColorScheme","loadItems"]),(0,u.mapMutations)(["SET_USER_FILTER"]),{toggleColorScheme:function(){var t="light"==this.colorScheme?"dark":"light";this.setColorScheme(t)},checkForUserFilter:function(){localStorage.getItem("filter")||localStorage.setItem("filter","created_at"),this.SET_USER_FILTER(localStorage.getItem("filter"))},setUserFilter:function(t){localStorage.setItem("filter",t),this.SET_USER_FILTER(t),this.loadItems(t)}})}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(4),i=r(o),a=n(5),s=r(a);e.default={mixins:[s.default],created:function(){document.body.className+=" dark"},data:function(){return{username:"",password:"",error:!1,errorShake:!1}},methods:{login:function(){var t=this;this.error=!1;var e=this.username,n=this.password;i.default.post(config.api+"/login",{username:e,password:n}).then(function(t){window.location.href=config.url},function(e){t.error=!0,t.errorShake=!0,setTimeout(function(){t.errorShake=!1},500)})}}}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(5),i=r(o);e.default={mixins:[i.default],mounted:function(){this.initSticky()},data:function(){return{sticky:!1}},computed:{algolia:function(){return"algolia"==config.scoutDriver&&this.$route.query.q},title:{get:function(){return this.$store.state.searchTitle},set:function(t){this.$store.commit("SET_SEARCH_TITLE",t)}},placeholder:function(){return config.auth?this.lang("search or add"):this.lang("search")}},methods:{initSticky:function(){var t=this,e=document.querySelector("header").scrollHeight;window.onscroll=function(){t.sticky=document.body.scrollTop+document.documentElement.scrollTop>e}},search:function(){""!=this.title&&this.$router.push({path:"/search?q="+this.title})}}}},function(t,e,n){t.exports={default:n(94),__esModule:!0}},function(t,e,n){t.exports={default:n(95),__esModule:!0}},function(t,e,n){t.exports={default:n(96),__esModule:!0}},function(t,e,n){t.exports={default:n(97),__esModule:!0}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var o=n(89),i=r(o);e.default=function(t){return function(){var e=t.apply(this,arguments);return new i.default(function(t,n){function r(o,a){try{var s=e[o](a),c=s.value}catch(t){return void n(t)}return s.done?void t(c):i.default.resolve(c).then(function(t){r("next",t)},function(t){r("throw",t)})}return r("next")})}}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var o=n(88),i=r(o);e.default=function(t,e,n){return e in t?(0,i.default)(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var o=n(86),i=r(o);e.default=function(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return(0,i.default)(t)}},function(t,e,n){t.exports=n(130)},function(t,e,n){n(53),n(122),t.exports=n(7).Array.from},function(t,e,n){n(124),t.exports=n(7).Object.assign},function(t,e,n){n(125);var r=n(7).Object;t.exports=function(t,e,n){return r.defineProperty(t,e,n)}},function(t,e,n){n(126),n(53),n(128),n(127),t.exports=n(7).Promise},function(t,e){t.exports=function(){}},function(t,e){t.exports=function(t,e,n,r){if(!(t instanceof e)||void 0!==r&&r in t)throw TypeError(n+": incorrect invocation!");return t}},function(t,e,n){var r=n(28),o=n(29),i=n(120);t.exports=function(t){return function(e,n,a){var s,c=r(e),u=o(c.length),l=i(a,u);if(t&&n!=n){for(;u>l;)if(s=c[l++],s!=s)return!0}else for(;u>l;l++)if((t||l in c)&&c[l]===n)return t||l||0;return!t&&-1}}},function(t,e,n){"use strict";var r=n(12),o=n(24);t.exports=function(t,e,n){e in t?r.f(t,e,o(0,n)):t[e]=n}},function(t,e,n){var r=n(13),o=n(44),i=n(43),a=n(9),s=n(29),c=n(52),u={},l={},e=t.exports=function(t,e,n,f,p){var h,d,v,m,g=p?function(){return t}:c(t),y=r(n,f,e?2:1),_=0;if("function"!=typeof g)throw TypeError(t+" is not iterable!");if(i(g)){for(h=s(t.length);h>_;_++)if(m=e?y(a(d=t[_])[0],d[1]):y(t[_]),m===u||m===l)return m}else for(v=g.call(t);!(d=v.next()).done;)if(m=o(v,y,d.value,e),m===u||m===l)return m};e.BREAK=u,e.RETURN=l},function(t,e,n){t.exports=!n(10)&&!n(23)(function(){return 7!=Object.defineProperty(n(22)("div"),"a",{get:function(){return 7}}).a})},function(t,e){t.exports=function(t,e,n){var r=void 0===n;switch(e.length){case 0:return r?t():t.call(n);case 1:return r?t(e[0]):t.call(n,e[0]);case 2:return r?t(e[0],e[1]):t.call(n,e[0],e[1]);case 3:return r?t(e[0],e[1],e[2]):t.call(n,e[0],e[1],e[2]);case 4:return r?t(e[0],e[1],e[2],e[3]):t.call(n,e[0],e[1],e[2],e[3])}return t.apply(n,e)}},function(t,e,n){"use strict";var r=n(109),o=n(24),i=n(25),a={};n(11)(a,n(2)("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=r(a,{next:o(1,n)}),i(t,e+" Iterator")}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,n){var r=n(3),o=n(50).set,i=r.MutationObserver||r.WebKitMutationObserver,a=r.process,s=r.Promise,c="process"==n(16)(a);t.exports=function(){var t,e,n,u=function(){var r,o;for(c&&(r=a.domain)&&r.exit();t;){o=t.fn,t=t.next;try{o()}catch(r){throw t?n():e=void 0,r}}e=void 0,r&&r.enter()};if(c)n=function(){a.nextTick(u)};else if(i){var l=!0,f=document.createTextNode("");new i(u).observe(f,{characterData:!0}),n=function(){f.data=l=!l}}else if(s&&s.resolve){var p=s.resolve();n=function(){p.then(u)}}else n=function(){o.call(r,u)};return function(r){var o={fn:r,next:void 0};e&&(e.next=o),t||(t=o,n()),e=o}}},function(t,e,n){"use strict";var r=n(48),o=n(111),i=n(114),a=n(30),s=n(42),c=Object.assign;t.exports=!c||n(23)(function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach(function(t){e[t]=t}),7!=c({},t)[n]||Object.keys(c({},e)).join("")!=r})?function(t,e){for(var n=a(t),c=arguments.length,u=1,l=o.f,f=i.f;c>u;)for(var p,h=s(arguments[u++]),d=l?r(h).concat(l(h)):r(h),v=d.length,m=0;v>m;)f.call(h,p=d[m++])&&(n[p]=h[p]);return n}:c},function(t,e,n){var r=n(9),o=n(110),i=n(40),a=n(26)("IE_PROTO"),s=function(){},c="prototype",u=function(){var t,e=n(22)("iframe"),r=i.length,o="<",a=">";for(e.style.display="none",n(41).appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write(o+"script"+a+"document.F=Object"+o+"/script"+a),t.close(),u=t.F;r--;)delete u[c][i[r]];return u()};t.exports=Object.create||function(t,e){var n;return null!==t?(s[c]=r(t),n=new s,s[c]=null,n[a]=t):n=u(),void 0===e?n:o(n,e)}},function(t,e,n){var r=n(12),o=n(9),i=n(48);t.exports=n(10)?Object.defineProperties:function(t,e){o(t);for(var n,a=i(e),s=a.length,c=0;s>c;)r.f(t,n=a[c++],e[n]);return t}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){var r=n(17),o=n(30),i=n(26)("IE_PROTO"),a=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),r(t,i)?t[i]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},function(t,e,n){var r=n(17),o=n(28),i=n(100)(!1),a=n(26)("IE_PROTO");t.exports=function(t,e){var n,s=o(t),c=0,u=[];for(n in s)n!=a&&r(s,n)&&u.push(n);for(;e.length>c;)r(s,n=e[c++])&&(~i(u,n)||u.push(n));return u}},function(t,e){e.f={}.propertyIsEnumerable},function(t,e,n){var r=n(11);t.exports=function(t,e,n){for(var o in e)n&&t[o]?t[o]=e[o]:r(t,o,e[o]);return t}},function(t,e,n){t.exports=n(11)},function(t,e,n){"use strict";var r=n(3),o=n(7),i=n(12),a=n(10),s=n(2)("species");t.exports=function(t){var e="function"==typeof o[t]?o[t]:r[t];a&&e&&!e[s]&&i.f(e,s,{configurable:!0,get:function(){return this}})}},function(t,e,n){var r=n(9),o=n(20),i=n(2)("species");t.exports=function(t,e){var n,a=r(t).constructor;return void 0===a||void 0==(n=r(a)[i])?e:o(n)}},function(t,e,n){var r=n(27),o=n(21);t.exports=function(t){return function(e,n){var i,a,s=String(o(e)),c=r(n),u=s.length;return c<0||c>=u?t?"":void 0:(i=s.charCodeAt(c),i<55296||i>56319||c+1===u||(a=s.charCodeAt(c+1))<56320||a>57343?t?s.charAt(c):i:t?s.slice(c,c+2):(i-55296<<10)+(a-56320)+65536)}}},function(t,e,n){var r=n(27),o=Math.max,i=Math.min;t.exports=function(t,e){return t=r(t),t<0?o(t+e,0):i(t,e)}},function(t,e,n){var r=n(18);t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,e,n){"use strict";var r=n(13),o=n(14),i=n(30),a=n(44),s=n(43),c=n(29),u=n(101),l=n(52);o(o.S+o.F*!n(46)(function(t){Array.from(t)}),"Array",{from:function(t){var e,n,o,f,p=i(t),h="function"==typeof this?this:Array,d=arguments.length,v=d>1?arguments[1]:void 0,m=void 0!==v,g=0,y=l(p);if(m&&(v=r(v,d>2?arguments[2]:void 0,2)),void 0==y||h==Array&&s(y))for(e=c(p.length),n=new h(e);e>g;g++)u(n,g,m?v(p[g],g):p[g]);else for(f=y.call(p),n=new h;!(o=f.next()).done;g++)u(n,g,m?a(f,v,[o.value,g],!0):o.value);return n.length=g,n}})},function(t,e,n){"use strict";var r=n(98),o=n(106),i=n(15),a=n(28);t.exports=n(45)(Array,"Array",function(t,e){this._t=a(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,o(1)):"keys"==e?o(0,n):"values"==e?o(0,t[n]):o(0,[n,t[n]])},"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},function(t,e,n){var r=n(14);r(r.S+r.F,"Object",{assign:n(108)})},function(t,e,n){var r=n(14);r(r.S+r.F*!n(10),"Object",{defineProperty:n(12).f})},function(t,e){},function(t,e,n){"use strict";var r,o,i,a=n(47),s=n(3),c=n(13),u=n(39),l=n(14),f=n(18),p=n(20),h=n(99),d=n(102),v=n(118),m=n(50).set,g=n(107)(),y="Promise",_=s.TypeError,w=s.process,b=s[y],w=s.process,x="process"==u(w),S=function(){},E=!!function(){try{var t=b.resolve(1),e=(t.constructor={})[n(2)("species")]=function(t){t(S,S)};return(x||"function"==typeof PromiseRejectionEvent)&&t.then(S)instanceof e}catch(t){}}(),T=function(t,e){return t===e||t===b&&e===i},A=function(t){var e;return!(!f(t)||"function"!=typeof(e=t.then))&&e},O=function(t){return T(b,t)?new M(t):new o(t)},M=o=function(t){var e,n;this.promise=new t(function(t,r){if(void 0!==e||void 0!==n)throw _("Bad Promise constructor");e=t,n=r}),this.resolve=p(e),this.reject=p(n)},R=function(t){try{t()}catch(t){return{error:t}}},I=function(t,e){if(!t._n){t._n=!0;var n=t._c;g(function(){for(var r=t._v,o=1==t._s,i=0,a=function(e){var n,i,a=o?e.ok:e.fail,s=e.resolve,c=e.reject,u=e.domain;try{a?(o||(2==t._h&&j(t),t._h=1),a===!0?n=r:(u&&u.enter(),n=a(r),u&&u.exit()),n===e.promise?c(_("Promise-chain cycle")):(i=A(n))?i.call(n,s,c):s(n)):c(r)}catch(t){c(t)}};n.length>i;)a(n[i++]);t._c=[],t._n=!1,e&&!t._h&&C(t)})}},C=function(t){m.call(s,function(){var e,n,r,o=t._v;if(k(t)&&(e=R(function(){x?w.emit("unhandledRejection",o,t):(n=s.onunhandledrejection)?n({
promise:t,reason:o}):(r=s.console)&&r.error&&r.error("Unhandled promise rejection",o)}),t._h=x||k(t)?2:1),t._a=void 0,e)throw e.error})},k=function(t){if(1==t._h)return!1;for(var e,n=t._a||t._c,r=0;n.length>r;)if(e=n[r++],e.fail||!k(e.promise))return!1;return!0},j=function(t){m.call(s,function(){var e;x?w.emit("rejectionHandled",t):(e=s.onrejectionhandled)&&e({promise:t,reason:t._v})})},L=function(t){var e=this;e._d||(e._d=!0,e=e._w||e,e._v=t,e._s=2,e._a||(e._a=e._c.slice()),I(e,!0))},P=function(t){var e,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===t)throw _("Promise can't be resolved itself");(e=A(t))?g(function(){var r={_w:n,_d:!1};try{e.call(t,c(P,r,1),c(L,r,1))}catch(t){L.call(r,t)}}):(n._v=t,n._s=1,I(n,!1))}catch(t){L.call({_w:n,_d:!1},t)}}};E||(b=function(t){h(this,b,y,"_h"),p(t),r.call(this);try{t(c(P,this,1),c(L,this,1))}catch(t){L.call(this,t)}},r=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},r.prototype=n(115)(b.prototype,{then:function(t,e){var n=O(v(this,b));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=x?w.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&I(this,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),M=function(){var t=new r;this.promise=t,this.resolve=c(P,t,1),this.reject=c(L,t,1)}),l(l.G+l.W+l.F*!E,{Promise:b}),n(25)(b,y),n(117)(y),i=n(7)[y],l(l.S+l.F*!E,y,{reject:function(t){var e=O(this),n=e.reject;return n(t),e.promise}}),l(l.S+l.F*(a||!E),y,{resolve:function(t){if(t instanceof b&&T(t.constructor,this))return t;var e=O(this),n=e.resolve;return n(t),e.promise}}),l(l.S+l.F*!(E&&n(46)(function(t){b.all(t).catch(S)})),y,{all:function(t){var e=this,n=O(e),r=n.resolve,o=n.reject,i=R(function(){var n=[],i=0,a=1;d(t,!1,function(t){var s=i++,c=!1;n.push(void 0),a++,e.resolve(t).then(function(t){c||(c=!0,n[s]=t,--a||r(n))},o)}),--a||r(n)});return i&&o(i.error),n.promise},race:function(t){var e=this,n=O(e),r=n.reject,o=R(function(){d(t,!1,function(t){e.resolve(t).then(n.resolve,r)})});return o&&r(o.error),n.promise}})},function(t,e,n){n(123);for(var r=n(3),o=n(11),i=n(15),a=n(2)("toStringTag"),s=["NodeList","DOMTokenList","MediaList","StyleSheetList","CSSRuleList"],c=0;c<5;c++){var u=s[c],l=r[u],f=l&&l.prototype;f&&!f[a]&&o(f,a,u),i[u]=i.Array}},function(t,e){},function(t,e,n){(function(e){var r="object"==typeof e?e:"object"==typeof window?window:"object"==typeof self?self:this,o=r.regeneratorRuntime&&Object.getOwnPropertyNames(r).indexOf("regeneratorRuntime")>=0,i=o&&r.regeneratorRuntime;if(r.regeneratorRuntime=void 0,t.exports=n(131),o)r.regeneratorRuntime=i;else try{delete r.regeneratorRuntime}catch(t){r.regeneratorRuntime=void 0}}).call(e,function(){return this}())},function(t,e,n){(function(e,n){!function(e){"use strict";function r(t,e,n,r){var o=e&&e.prototype instanceof i?e:i,a=Object.create(o.prototype),s=new d(r||[]);return a._invoke=f(t,n,s),a}function o(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}function i(){}function a(){}function s(){}function c(t){["next","throw","return"].forEach(function(e){t[e]=function(t){return this._invoke(e,t)}})}function u(t){this.arg=t}function l(t){function e(n,r,i,a){var s=o(t[n],t,r);if("throw"!==s.type){var c=s.arg,l=c.value;return l instanceof u?Promise.resolve(l.arg).then(function(t){e("next",t,i,a)},function(t){e("throw",t,i,a)}):Promise.resolve(l).then(function(t){c.value=t,i(c)},a)}a(s.arg)}function r(t,n){function r(){return new Promise(function(r,o){e(t,n,r,o)})}return i=i?i.then(r,r):r()}"object"==typeof n&&n.domain&&(e=n.domain.bind(e));var i;this._invoke=r}function f(t,e,n){var r=E;return function(i,a){if(r===A)throw new Error("Generator is already running");if(r===O){if("throw"===i)throw a;return m()}for(;;){var s=n.delegate;if(s){if("return"===i||"throw"===i&&s.iterator[i]===g){n.delegate=null;var c=s.iterator.return;if(c){var u=o(c,s.iterator,a);if("throw"===u.type){i="throw",a=u.arg;continue}}if("return"===i)continue}var u=o(s.iterator[i],s.iterator,a);if("throw"===u.type){n.delegate=null,i="throw",a=u.arg;continue}i="next",a=g;var l=u.arg;if(!l.done)return r=T,l;n[s.resultName]=l.value,n.next=s.nextLoc,n.delegate=null}if("next"===i)n.sent=n._sent=a;else if("throw"===i){if(r===E)throw r=O,a;n.dispatchException(a)&&(i="next",a=g)}else"return"===i&&n.abrupt("return",a);r=A;var u=o(t,e,n);if("normal"===u.type){r=n.done?O:T;var l={value:u.arg,done:n.done};if(u.arg!==M)return l;n.delegate&&"next"===i&&(a=g)}else"throw"===u.type&&(r=O,i="throw",a=u.arg)}}}function p(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function h(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function d(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(p,this),this.reset(!0)}function v(t){if(t){var e=t[w];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,r=function e(){for(;++n<t.length;)if(y.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=g,e.done=!0,e};return r.next=r}}return{next:m}}function m(){return{value:g,done:!0}}var g,y=Object.prototype.hasOwnProperty,_="function"==typeof Symbol?Symbol:{},w=_.iterator||"@@iterator",b=_.toStringTag||"@@toStringTag",x="object"==typeof t,S=e.regeneratorRuntime;if(S)return void(x&&(t.exports=S));S=e.regeneratorRuntime=x?t.exports:{},S.wrap=r;var E="suspendedStart",T="suspendedYield",A="executing",O="completed",M={},R=s.prototype=i.prototype;a.prototype=R.constructor=s,s.constructor=a,s[b]=a.displayName="GeneratorFunction",S.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===a||"GeneratorFunction"===(e.displayName||e.name))},S.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,s):(t.__proto__=s,b in t||(t[b]="GeneratorFunction")),t.prototype=Object.create(R),t},S.awrap=function(t){return new u(t)},c(l.prototype),S.async=function(t,e,n,o){var i=new l(r(t,e,n,o));return S.isGeneratorFunction(e)?i:i.next().then(function(t){return t.done?t.value:i.next()})},c(R),R[w]=function(){return this},R[b]="Generator",R.toString=function(){return"[object Generator]"},S.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},S.values=v,d.prototype={constructor:d,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=g,this.done=!1,this.delegate=null,this.tryEntries.forEach(h),!t)for(var e in this)"t"===e.charAt(0)&&y.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=g)},stop:function(){this.done=!0;var t=this.tryEntries[0],e=t.completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){function e(e,r){return i.type="throw",i.arg=t,n.next=e,!!r}if(this.done)throw t;for(var n=this,r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r],i=o.completion;if("root"===o.tryLoc)return e("end");if(o.tryLoc<=this.prev){var a=y.call(o,"catchLoc"),s=y.call(o,"finallyLoc");if(a&&s){if(this.prev<o.catchLoc)return e(o.catchLoc,!0);if(this.prev<o.finallyLoc)return e(o.finallyLoc)}else if(a){if(this.prev<o.catchLoc)return e(o.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return e(o.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&y.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=t,i.arg=e,o?this.next=o.finallyLoc:this.complete(i),M},complete:function(t,e){if("throw"===t.type)throw t.arg;"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=t.arg,this.next="end"):"normal"===t.type&&e&&(this.next=e)},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),h(n),M}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;h(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:v(t),resultName:e,nextLoc:n},M}}}("object"==typeof e?e:"object"==typeof window?window:"object"==typeof self?self:this)}).call(e,function(){return this}(),n(54))},function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGwAAAAgCAMAAADAIm3oAAACE1BMVEUAAACKW/+cU+yaVO6KW/7GQsSQWPnnNKToNKOSV/e8Rs7QPruMWv2PWfqhUejGQsXEQsaqTeDoNKS7Rs+TV/bkNae/RcvtMZ6+RczGQsWVVvSlT+SrTd7sMp/wMJvtMZ7nNKS/RcvNP77QPrvTPbjNP73uMZ2RWPigUenhN6u6RtDSPbnGQsSwStqxStnARMrPPrvVPLbLQL/GQsTqM6LRPbrGQsTwMJy4R9LLQL/TPLe0SdbKQMHWO7XnNKStTN3eOK7QPruSV/fEQ8azSdfjNqjoNKPARMvmNaXmNKXEQsbdOK+6RtDuMZ29Rc3sMp/ARMnrM6DiNqntMZ3vMJy5R9HTPbiwS9m/RcvbObCKW/66R9DRPbnLQL+JW//IQcKtTNzdOK7oNKPfN6zXO7PJQcHYOrLKQMC1SdTqM6LEQ8axStjZOrG8Rs25R9HjNqjmNKWWVvLTPbi6R9CwS9m8Rs3PPrvlNabrMqDjNqivS9rNP73cOa/ARMrARMnGQsPBRMicU+zEQ8bfOKztMZ23SNPVPLa1SdXYOrPKQMG6R9GbU+2JW//RPbq8Rs7EQ8fBRMnPPrzWO7SwS9rGQsOyStfIQcLTPbixStjFQsXZOrHLQL/vMZyTV/boNKPrM6HtMZ6MWv2+RczbObDiNqmPWPm/RcvNP73cOa/lNafmNKWtTN2KW/6kUOaeUurdOK6pTeCVJkKBAAAAhXRSTlMAVd1V3QszETNVER3d3TMDhzMhFN27U0QpCN3d3d3dzEQsLCkU7+7d3d3b29HIwsG/vrarq56dmY+Pj4eHendfX1NEOh3u7uvdzMvBwLu4mY+Hd3dV+Pjz8/Pu7Ovm3d3R0czKyMbDwLu7tqioopmZmYeHfXdoaGZmVTk5OSH4+PPu3Ydmpzv5zwAAAydJREFUSMe9l+dX01AYxl+R0lpUakspRQsFBCx7FMosIntPF25w4QInoOJmCwVBFI1J1DqSovInmqQ3F9rGtoFTfx96evIhv3Pf3PvkCWwRRWyMpuBaZmZ+QXlVsgJCie5+24mFBYdjdXllevpjSv6DgxAqdHfT579835D9WFzMqAhSd+RsePhujj0caWnR0dFxcbf5y2FhIElM+sy8t2xuLqMKMP2WQfBElRpvAJ4dr9fWPvN84/gkwMt2zkrKFMXjM1KydxOlCnxrp3MUPEggbIBkvTsEdmEi/imruTqOZU1FGk3RJSybyIsERJezVgubsBHxSlEWDr5Iy2qyJpGsviNRIaw0qSQFyd5cxDa9Uw8bGAjCALJl6uxJJMtJBExSLpJNXVaiS9paxg4iShPRCbJlUdffItlNhcdzLESyqRtR6NIww6gA0UongHzZvfdI1oJc2JaLZB8qAGFlGtG/ETpVK1/28DiSnRJnqK6ORJM8jWQnH4uza2CH3FuTpl+BbFlU9hKSFQMidvlcuXuRpUj2tVkcpJllzcKup60gX1a5hGRHY3GWPF2ZvqIGjuRjSPbzMCA62Tol90uZlPJl6vOirMWIw4Q/1CXAYcwTZRfwvRvJATBTlAHkyypdouwW9jfxsjPCcysUZX/w0lQkaTdR7bAFWRaWlQmiMXVMkzuuHgHHHSzrBxE7SVIm8JKteQdxELLqJ88cDklZM2D6SI8hSgZxXBBjHKvng9jvGMHMrWzAW9Yb4UUwG6SDl/ndIMoG0lpHdQNsf+vrcniZn60PerIPRihKBbD9Q63QvFj1c6jBzpKcx0qhYNxyXKFTHVktxlWyT1yBimWHhcin2wG2E8RtRvDA6BvE0MjqgcdA0z0AIX3FwCBTh3ZKu7zUx+gCvTxxxxplGDMuIHQrAISiFuA39RCIqGiiW6bMt/DkSBQe3EEaYINuglAFlMmvcrhdOT1OV2vgdvV8L2KfG3Xgkop7YxdsRptK2ALIZn9z/OJZX193uVxlQdZvpUUscpgegugR6zf4INTvsEMc+3kO8JQF+WHx0mLRghe2eDTI//bJ9BcGDf91+LWedQAAAABJRU5ErkJggg=="},function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGwAAAAgCAMAAADAIm3oAAAAilBMVEUAAAD////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////2N2iNAAAALXRSTlMA3VUzEYcLwLuZj0R37swdFCks88gh69G2q19TA8M5+Ahm2KiinWg75n597FBo4OziAAACOklEQVRIx71Xf3eqMAxtocUCFlDHlCnqfvq29/L9v947FtLMyCadx90/PBporklvL0H8EMlsrZvVcrlq9HqWiFuielstwGOxeqvErVB9SGCQHyPpcnkG3YXFINZPMICnNd1RyJStia3M3ZcIzqBdeJAsyeALZIlPDRCdriqgp4/ARgzxl2SlAY+7V61f7+i3KfGuKdj686oUpEIylvWbcOlz32fzxFU6z+49u2czYAQhB8hFMJlqMe9kTtH5BKOt6kO1hSmtkqBFMNnmGbO+JCf7+ILx500fegSIqcxChJNNfV0JUw3WRvU0UHheW4eTbRe4X9hDtS37TuK+LbbUuxSl+SiCyTYTL3IMzUDqrsjMF71hqiigEeFkD5hvN/NesgOYKEe7w6sPeFGDVcdPqcLJ1NL/+T3G/vk6977spaKTbLC+QDIqDFLPXxx//im7c0ulkZFMcecCycgqtCOqVVSAg9OEJmM5Ua/kWUEyjCA77FCbnKz9bImQczIOOaKNNYp9qI0kSDCczMYMFwWCYv9WIEpCg7Z1pfQrl35Q+mRTaFtXH+pESxg81CSPGG3rCrv625/q8nAoeythdoU2hbZ1jRGb/emFvWFG3B1pVEmEsRs9YkQKVuG3ENcnVJcenhWthpzVeLOxoLZup8i2gsn4wNMeB56WDTwdDC4mXQaQBY1ylJ241QUybixqxJDK+0ZdvUDGoVEm7+fj93snDbQpc54swvF73FSuR75YaClrni2V2MjfemX6D0AKmiHCtfAOAAAAAElFTkSuQmCC"},function(t,e,n){var r,o;r=n(77);var i=n(146);o=r=r||{},"object"!=typeof r.default&&"function"!=typeof r.default||(o=r=r.default),"function"==typeof o&&(o=o.options),o.render=i.render,o.staticRenderFns=i.staticRenderFns,t.exports=r},function(t,e,n){var r,o;r=n(79);var i=n(145);o=r=r||{},"object"!=typeof r.default&&"function"!=typeof r.default||(o=r=r.default),"function"==typeof o&&(o=o.options),o.render=i.render,o.staticRenderFns=i.staticRenderFns,t.exports=r},function(t,e,n){var r,o;r=n(80);var i=n(142);o=r=r||{},"object"!=typeof r.default&&"function"!=typeof r.default||(o=r=r.default),"function"==typeof o&&(o=o.options),o.render=i.render,o.staticRenderFns=i.staticRenderFns,t.exports=r},function(t,e,n){var r,o;r=n(81);var i=n(148);o=r=r||{},"object"!=typeof r.default&&"function"!=typeof r.default||(o=r=r.default),"function"==typeof o&&(o=o.options),o.render=i.render,o.staticRenderFns=i.staticRenderFns,t.exports=r},function(t,e,n){var r,o;r=n(82);var i=n(149);o=r=r||{},"object"!=typeof r.default&&"function"!=typeof r.default||(o=r=r.default),"function"==typeof o&&(o=o.options),o.render=i.render,o.staticRenderFns=i.staticRenderFns,t.exports=r},function(t,e,n){var r,o;r=n(83);var i=n(147);o=r=r||{},"object"!=typeof r.default&&"function"!=typeof r.default||(o=r=r.default),"function"==typeof o&&(o=o.options),o.render=i.render,o.staticRenderFns=i.staticRenderFns,t.exports=r},function(t,e,n){var r,o;r=n(84);var i=n(150);o=r=r||{},"object"!=typeof r.default&&"function"!=typeof r.default||(o=r=r.default),"function"==typeof o&&(o=o.options),o.render=i.render,o.staticRenderFns=i.staticRenderFns,t.exports=r},function(t,e,n){var r,o;r=n(85);var i=n(144);o=r=r||{},"object"!=typeof r.default&&"function"!=typeof r.default||(o=r=r.default),"function"==typeof o&&(o=o.options),o.render=i.render,o.staticRenderFns=i.staticRenderFns,t.exports=r},function(t,e){t.exports={render:function(){var t=this;return t._h("main",[t.loading?t._e():t._h("div",{staticClass:"wrap-content"},[t._h("div",{staticClass:"settings-box"},[t._h("span",{staticClass:"nothing-found"},[t._s(t.lang("headline user"))])," ",t._h("form",{staticClass:"login-form",on:{submit:function(e){e.preventDefault(),t.editUser()}}},[t._h("input",{directives:[{name:"model",rawName:"v-model",value:t.username,expression:"username"}],attrs:{type:"text",placeholder:t.lang("username")},domProps:{value:t._s(t.username)},on:{input:function(e){e.target.composing||(t.username=e.target.value)}}})," ",t._h("input",{directives:[{name:"model",rawName:"v-model",value:t.password,expression:"password"}],attrs:{type:"password",placeholder:t.lang("password"),autocomplete:"off"},domProps:{value:t._s(t.password)},on:{input:function(e){e.target.composing||(t.password=e.target.value)}}})," ",t._h("span",{staticClass:"userdata-info"},[t._s(t.lang("password message"))])," ",t._h("span",{staticClass:"userdata-changed"},[t.success?t._h("span",[t._s(t.lang("success message"))]):t._e()])," ",t._h("input",{attrs:{type:"submit"},domProps:{value:t.lang("save button")}})])])," ",t._h("div",{staticClass:"settings-box"},[t._h("span",{staticClass:"nothing-found"},[t._s(t.lang("headline export import"))])," ",t._h("a",{staticClass:"export-btn",attrs:{href:t.exportLink}},[t._s(t.lang("export button"))])," ",t._h("form",{staticClass:"login-form",on:{submit:function(e){e.preventDefault(),t.importMovies()}}},[t._h("span",{staticClass:"import-info"},[t._s(t.lang("or divider"))])," ",t._h("input",{staticClass:"file-btn",attrs:{type:"file",required:""},on:{change:t.upload}})," ",t._h("span",{staticClass:"userdata-changed"},[t.uploadSuccess?t._h("span",[t._s(t.lang("success import"))]):t._e()])," ",t._h("input",{attrs:{type:"submit"},domProps:{value:t.lang("import button")}})])])," ",t._h("div",{staticClass:"settings-box"},[t._h("span",{staticClass:"nothing-found"},[t._s(t.lang("headline misc"))])," ",t._h("button",{staticClass:"export-btn",on:{click:function(e){t.updateGenre()}}},[t._s(t.lang("update genre"))])," ",t._h("span",{staticClass:"import-info"},[t._s(t.lang("or divider"))])," ",t._h("button",{staticClass:"export-btn",on:{click:function(e){t.syncScout()}}},[t._s(t.lang("sync scout"))])," ",t._h("span",{staticClass:"import-info"},[t._s(t.lang("or divider"))])," ",t._h("div",{staticClass:"checkbox"},[t._h("input",{directives:[{name:"model",rawName:"v-model",value:t.displayGenre,expression:"displayGenre"}],attrs:{type:"checkbox",value:"genre",id:"genre"},domProps:{checked:Array.isArray(t.displayGenre)?t._i(t.displayGenre,"genre")>-1:t._q(t.displayGenre,!0)},on:{change:[function(e){var n=t.displayGenre,r=e.target,o=!!r.checked;if(Array.isArray(n)){var i="genre",a=t._i(n,i);o?a<0&&(t.displayGenre=n.concat(i)):a>-1&&(t.displayGenre=n.slice(0,a).concat(n.slice(a+1)))}else t.displayGenre=o},t.updateSettings]}}),t._h("label",{attrs:{for:"genre"}},[t._s(t.lang("display genre"))])])," ",t._h("div",{staticClass:"checkbox"},[t._h("input",{directives:[{name:"model",rawName:"v-model",value:t.displayDate,expression:"displayDate"}],attrs:{type:"checkbox",value:"date",id:"date"},domProps:{checked:Array.isArray(t.displayDate)?t._i(t.displayDate,"date")>-1:t._q(t.displayDate,!0)},on:{change:[function(e){var n=t.displayDate,r=e.target,o=!!r.checked;if(Array.isArray(n)){var i="date",a=t._i(n,i);o?a<0&&(t.displayDate=n.concat(i)):a>-1&&(t.displayDate=n.slice(0,a).concat(n.slice(a+1)))}else t.displayDate=o},t.updateSettings]}}),t._h("label",{attrs:{for:"date"}},[t._s(t.lang("display date"))])])])])," ",t.loading?t._h("span",{staticClass:"loader fullsize-loader"},[t._h("i")]):t._e()])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this;return t._h("transition",{attrs:{mode:"out-in",name:"fade"}},[t._h("div",{staticClass:"item-wrap"},[t._h("div",{staticClass:"item-image-wrap"},[t.localItem.rating?t._h("span",{class:"item-rating rating-"+t.localItem.rating,on:{click:function(e){t.changeRating()}}},[t._h("i",{staticClass:"icon-rating"})]):t._e()," ",t.localItem.rating?t._e():t._h("span",{staticClass:"item-rating item-new",class:{disabled:t.disabled},on:{click:function(e){t.addNewItem()}}},[t.rated?t._h("span",{staticClass:"loader smallsize-loader"},[t._h("i")]):t._e()," ",t.rated?t._e():t._h("i",{staticClass:"icon-add"})])," ",t._h("router-link",{staticClass:"recommend-item",attrs:{to:"/suggestions?for="+t.localItem.tmdb_id}},[t._s(t.lang("suggestions"))])," ",t.localItem.rating&&t.auth?t._h("span",{staticClass:"remove-item",on:{click:function(e){t.removeItem()}}},[t._s(t.lang("delete movie"))]):t._e()," ",t.localItem.poster?t._h("img",{staticClass:"item-image",attrs:{src:t.poster,width:"185",height:"278"}}):t._e()," ",t.localItem.poster?t._e():t._h("img",{staticClass:"item-image",attrs:{src:t.noImage,width:"185",height:"278"}})])," ",t._h("div",{staticClass:"item-content"},[1==t.date?t._h("span",{staticClass:"item-year"},[t._s(t.released)]):t._e()," ",t._h("a",{staticClass:"item-title",attrs:{href:"https://www.youtube.com/results?search_query="+t.localItem.title+" "+t.released+" Trailer",target:"_blank",title:t.localItem.title}},[t._s(t.localItem.title)])," ",1==t.genre?t._h("span",{staticClass:"item-genre"},[t._s(t.localItem.genre)]):t._e()])])])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this;return t._h("section",{staticClass:"search-wrap",class:{sticky:t.sticky}},[t._h("div",{staticClass:"wrap"},[t._h("form",{staticClass:"search-form",on:{submit:function(e){e.preventDefault(),t.search()}}},[t._h("router-link",{attrs:{to:"/"}},[t._h("i",{staticClass:"icon-logo-small",on:{click:function(e){t.scrollToTop()}}})])," ",t._h("i",{staticClass:"icon-search"})," ",t._h("input",{directives:[{name:"model",rawName:"v-model",value:t.title,expression:"title"}],staticClass:"search-input",attrs:{type:"text",placeholder:t.placeholder,autofocus:""},domProps:{value:t._s(t.title)},on:{input:function(e){e.target.composing||(t.title=e.target.value)}}})," ",t.algolia?t._h("i",{staticClass:"icon-algolia"}):t._e()])])])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this;return t._h("main",[t.loading?t._e():t._h("div",{staticClass:"wrap-content"},[t._l(t.floxItems,function(e,n){return t._h("Item",{key:n,attrs:{item:e,genre:!0,date:!0}})})," ",t._l(t.tmdbItems,function(e,n){return t._h("Item",{key:n,attrs:{item:e,genre:!0,date:!0}})})," ",t.floxItems.length||t.tmdbItems.length?t._e():t._h("span",{staticClass:"nothing-found"},[t._s(t.lang("nothing found"))])])," ",t.loading?t._h("span",{staticClass:"loader fullsize-loader"},[t._h("i")]):t._e()])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this;return t._h("main",[t.loading?t._e():t._h("div",{staticClass:"wrap-content"},[t._l(t.items,function(e,n){return t._h("Item",{key:n,attrs:{item:e,genre:t.displayGenre,date:t.displayDate}})})," ",t.items.length?t._e():t._h("span",{staticClass:"nothing-found"},[t._s(t.lang("nothing found"))])," ",t._h("div",{staticClass:"load-more-wrap"},[!t.clickedMoreLoading&&t.paginator?t._h("span",{staticClass:"load-more",on:{click:function(e){t.loadMore()}}},[t._s(t.lang("load more"))]):t._e()," ",t.clickedMoreLoading?t._h("span",{staticClass:"loader"},[t._h("i")]):t._e()])])," ",t.loading?t._h("span",{staticClass:"loader fullsize-loader"},[t._h("i")]):t._e()])},staticRenderFns:[]}},function(t,e,n){t.exports={render:function(){var t=this;return t._h("header",[t._h("div",{staticClass:"wrap"},[t._h("router-link",{staticClass:"logo",attrs:{to:"/"}},[t._h("img",{attrs:{src:n(133),alt:"Flox",width:"108",height:"32"}})])," ",t._h("span",{staticClass:"sort-wrap"},[t._h("i",{staticClass:"icon-sort-time",class:{active:"created_at"==t.userFilter},attrs:{title:t.lang("last seen")},on:{click:function(e){t.setUserFilter("created_at")}}})," ",t._h("i",{staticClass:"icon-sort-star",class:{active:"rating"==t.userFilter},attrs:{title:t.lang("best rated")},on:{click:function(e){t.setUserFilter("rating")}}})," ",t._h("span",{staticClass:"icon-constrast",attrs:{title:t.lang("change color")},on:{click:function(e){t.toggleColorScheme()}}},[t._h("i")])])," ",t._h("nav",{staticClass:"site-nav"},[t._h("ul",[t._h("li",[t._h("router-link",{attrs:{to:"/trending"}},[t._s(t.lang("trending"))])])," ",t._h("li",[t._h("router-link",{attrs:{to:"/upcoming"}},[t._s(t.lang("upcoming"))])])])])])])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this;return t._h("main",[t.loading?t._e():t._h("div",{staticClass:"wrap-content"},[t._l(t.items,function(e,n){return t._h("Item",{key:n,attrs:{item:e,genre:!0,date:!0}})})])," ",t.loading?t._h("span",{staticClass:"loader fullsize-loader"},[t._h("i")]):t._e()])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this;return t._h("footer",{directives:[{name:"show",rawName:"v-show",value:!t.loading,expression:" ! loading"}]},[t._h("div",{staticClass:"wrap"},[t._m(0)," ",t._h("a",{staticClass:"icon-github",attrs:{href:"https://github.com/devfake/flox",target:"_blank"}})," ",t._h("div",{staticClass:"sub-links"},[t.auth?t._h("a",{staticClass:"login-btn",attrs:{href:t.settings}},[t._s(t.lang("settings"))]):t._e()," ",t.auth?t._h("a",{staticClass:"login-btn",attrs:{href:t.logout}},[t._s(t.lang("logout"))]):t._e()," ",t.auth?t._e():t._h("a",{staticClass:"login-btn",attrs:{href:t.login}},["Login"])])])])},staticRenderFns:[function(){var t=this;return t._h("span",{staticClass:"attribution"},[t._h("a",{attrs:{href:"https://www.themoviedb.org/",target:"_blank"}},[t._h("i",{staticClass:"icon-tmdb"})]),"\n This product uses the TMDb API but is not endorsed or certified by TMDb\n "])}]}},function(t,e,n){t.exports={render:function(){var t=this;return t._h("div",[t._h("span",{staticClass:"top-bar"})," ",t._h("div",{staticClass:"login-wrap"},[t._h("img",{staticClass:"logo-login",attrs:{src:n(132),alt:"Flox",width:"108",height:"32"}})," ",t._h("form",{staticClass:"login-form",on:{submit:function(e){e.preventDefault(),t.login()}}},[t._h("input",{directives:[{name:"model",rawName:"v-model",value:t.username,expression:"username"}],attrs:{type:"text",placeholder:t.lang("username"),autofocus:""},domProps:{value:t._s(t.username)},on:{input:function(e){e.target.composing||(t.username=e.target.value)}}})," ",t._h("input",{directives:[{name:"model",rawName:"v-model",value:t.password,expression:"password"}],attrs:{type:"password",placeholder:t.lang("password")},domProps:{value:t._s(t.password)},on:{input:function(e){e.target.composing||(t.password=e.target.value)}}})," ",t._h("span",{staticClass:"login-error"},[t.error?t._h("span",[t._s(t.lang("login error"))]):t._e()])," ",t._h("input",{class:t.errorShake?"shake-horizontal shake-constant":"",attrs:{type:"submit"},domProps:{value:t.lang("login button")}})])])])},staticRenderFns:[]}},function(t,e,n){/**
* vue-router v2.0.3
* (c) 2016 Evan You
* @license MIT
*/
!function(e,n){t.exports=n()}(this,function(){"use strict";function t(t,e,n){if("/"===t.charAt(0))return t;if("?"===t.charAt(0)||"#"===t.charAt(0))return e+t;var r=e.split("/");n&&r[r.length-1]||r.pop();for(var o=t.replace(/^\//,"").split("/"),i=0;i<o.length;i++){var a=o[i];"."!==a&&(".."===a?r.pop():r.push(a))}return""!==r[0]&&r.unshift(""),r.join("/")}function e(t){var e="",n="",r=t.indexOf("#");r>=0&&(e=t.slice(r),t=t.slice(0,r));var o=t.indexOf("?");return o>=0&&(n=t.slice(o+1),t=t.slice(0,o)),{path:t,query:n,hash:e}}function n(t){return t.replace(/\/\//g,"/")}function r(t,e){if(!t)throw new Error("[vue-router] "+e)}function o(t,e){t||"undefined"!=typeof console&&console.warn("[vue-router] "+e)}function i(t,e){if(void 0===e&&(e={}),t){var n;try{n=a(t)}catch(t){o(!1,t.message),n={}}for(var r in e)n[r]=e[r];return n}return e}function a(t){var e={};return(t=t.trim().replace(/^(\?|#|&)/,""))?(t.split("&").forEach(function(t){var n=t.replace(/\+/g," ").split("="),r=mt(n.shift()),o=n.length>0?mt(n.join("=")):null;void 0===e[r]?e[r]=o:Array.isArray(e[r])?e[r].push(o):e[r]=[e[r],o]}),e):e}function s(t){var e=t?Object.keys(t).sort().map(function(e){var n=t[e];if(void 0===n)return"";if(null===n)return vt(e);if(Array.isArray(n)){var r=[];return n.slice().forEach(function(t){void 0!==t&&(null===t?r.push(vt(e)):r.push(vt(e)+"="+vt(t)))}),r.join("&")}return vt(e)+"="+vt(n)}).filter(function(t){return t.length>0}).join("&"):null;return e?"?"+e:""}function c(t,e,n){var r={name:e.name||t&&t.name,meta:t&&t.meta||{},path:e.path||"/",hash:e.hash||"",query:e.query||{},params:e.params||{},fullPath:l(e),matched:t?u(t):[]};return n&&(r.redirectedFrom=l(n)),Object.freeze(r)}function u(t){for(var e=[];t;)e.unshift(t),t=t.parent;return e}function l(t){var e=t.path,n=t.query;void 0===n&&(n={});var r=t.hash;return void 0===r&&(r=""),(e||"/")+s(n)+r}function f(t,e){return e===gt?t===e:!!e&&(t.path&&e.path?t.path.replace(yt,"")===e.path.replace(yt,"")&&t.hash===e.hash&&p(t.query,e.query):!(!t.name||!e.name)&&(t.name===e.name&&t.hash===e.hash&&p(t.query,e.query)&&p(t.params,e.params)))}function p(t,e){void 0===t&&(t={}),void 0===e&&(e={});var n=Object.keys(t),r=Object.keys(e);return n.length===r.length&&n.every(function(n){return String(t[n])===String(e[n])})}function h(t,e){return 0===t.path.indexOf(e.path.replace(/\/$/,""))&&(!e.hash||t.hash===e.hash)&&d(t.query,e.query)}function d(t,e){for(var n in e)if(!(n in t))return!1;return!0}function v(n,r,o){var a="string"==typeof n?{path:n}:n;if(a.name||a._normalized)return a;var s=e(a.path||""),c=r&&r.path||"/",u=s.path?t(s.path,c,o):r&&r.path||"/",l=i(s.query,a.query),f=a.hash||s.hash;return f&&"#"!==f.charAt(0)&&(f="#"+f),{_normalized:!0,path:u,query:l,hash:f}}function m(t){if(t)for(var e,n=0;n<t.length;n++){if(e=t[n],"a"===e.tag)return e;if(e.children&&(e=m(e.children)))return e}}function g(t,e,r){var o="hash"===r?"/#"+e:e;return t?n(t+o):o}function y(t){if(!y.installed){y.installed=!0,ht=t,Object.defineProperty(t.prototype,"$router",{get:function(){return this.$root._router}}),Object.defineProperty(t.prototype,"$route",{get:function(){return this.$root._route}}),t.mixin({beforeCreate:function(){this.$options.router&&(this._router=this.$options.router,this._router.init(this),t.util.defineReactive(this,"_route",this._router.history.current))}}),t.component("router-view",dt),t.component("router-link",wt);var e=t.config.optionMergeStrategies;e.beforeRouteEnter=e.beforeRouteLeave=e.created}}function _(t,e){for(var n,r=[],o=0,i=0,a="",s=e&&e.delimiter||"/";null!=(n=Mt.exec(t));){var c=n[0],u=n[1],l=n.index;if(a+=t.slice(i,l),i=l+c.length,u)a+=u[1];else{var f=t[i],p=n[2],h=n[3],d=n[4],v=n[5],m=n[6],g=n[7];a&&(r.push(a),a="");var y=null!=p&&null!=f&&f!==p,_="+"===m||"*"===m,w="?"===m||"*"===m,b=n[2]||s,x=d||v;r.push({name:h||o++,prefix:p||"",delimiter:b,optional:w,repeat:_,partial:y,asterisk:!!g,pattern:x?T(x):g?".*":"[^"+E(b)+"]+?"})}}return i<t.length&&(a+=t.substr(i)),a&&r.push(a),r}function w(t,e){return S(_(t,e))}function b(t){return encodeURI(t).replace(/[\/?#]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}function x(t){return encodeURI(t).replace(/[?#]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}function S(t){for(var e=new Array(t.length),n=0;n<t.length;n++)"object"==typeof t[n]&&(e[n]=new RegExp("^(?:"+t[n].pattern+")$"));return function(n,r){for(var o="",i=n||{},a=r||{},s=a.pretty?b:encodeURIComponent,c=0;c<t.length;c++){var u=t[c];if("string"!=typeof u){var l,f=i[u.name];if(null==f){if(u.optional){u.partial&&(o+=u.prefix);continue}throw new TypeError('Expected "'+u.name+'" to be defined')}if(xt(f)){if(!u.repeat)throw new TypeError('Expected "'+u.name+'" to not repeat, but received `'+JSON.stringify(f)+"`");if(0===f.length){if(u.optional)continue;throw new TypeError('Expected "'+u.name+'" to not be empty')}for(var p=0;p<f.length;p++){if(l=s(f[p]),!e[c].test(l))throw new TypeError('Expected all "'+u.name+'" to match "'+u.pattern+'", but received `'+JSON.stringify(l)+"`");o+=(0===p?u.prefix:u.delimiter)+l}}else{if(l=u.asterisk?x(f):s(f),!e[c].test(l))throw new TypeError('Expected "'+u.name+'" to match "'+u.pattern+'", but received "'+l+'"');o+=u.prefix+l}}else o+=u}return o}}function E(t){return t.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function T(t){return t.replace(/([=!:$\/()])/g,"\\$1")}function A(t,e){return t.keys=e,t}function O(t){return t.sensitive?"":"i"}function M(t,e){var n=t.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)e.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return A(t,e)}function R(t,e,n){for(var r=[],o=0;o<t.length;o++)r.push(k(t[o],e,n).source);var i=new RegExp("(?:"+r.join("|")+")",O(n));return A(i,e)}function I(t,e,n){return C(_(t,n),e,n)}function C(t,e,n){xt(e)||(n=e||n,e=[]),n=n||{};for(var r=n.strict,o=n.end!==!1,i="",a=0;a<t.length;a++){var s=t[a];if("string"==typeof s)i+=E(s);else{var c=E(s.prefix),u="(?:"+s.pattern+")";e.push(s),s.repeat&&(u+="(?:"+c+u+")*"),u=s.optional?s.partial?c+"("+u+")?":"(?:"+c+"("+u+"))?":c+"("+u+")",i+=u}}var l=E(n.delimiter||"/"),f=i.slice(-l.length)===l;return r||(i=(f?i.slice(0,-l.length):i)+"(?:"+l+"(?=$))?"),i+=o?"$":r&&f?"":"(?="+l+"|$)",A(new RegExp("^"+i,O(n)),e)}function k(t,e,n){return xt(e)||(n=e||n,e=[]),n=n||{},t instanceof RegExp?M(t,e):xt(t)?R(t,e,n):I(t,e,n)}function j(t){var e=Object.create(null),n=Object.create(null);return t.forEach(function(t){L(e,n,t)}),{pathMap:e,nameMap:n}}function L(t,e,n,i,a){var s=n.path,c=n.name;r(null!=s,'"path" is required in a route configuration.');var u={path:P(s,i),components:n.components||{default:n.component},instances:{},name:c,parent:i,matchAs:a,redirect:n.redirect,beforeEnter:n.beforeEnter,meta:n.meta||{}};n.children&&n.children.forEach(function(n){L(t,e,n,u)}),void 0!==n.alias&&(Array.isArray(n.alias)?n.alias.forEach(function(n){L(t,e,{path:n},i,u.path)}):L(t,e,{path:n.alias},i,u.path)),t[u.path]=u,c&&(e[c]?o(!1,'Duplicate named routes definition: { name: "'+c+'", path: "'+u.path+'" }'):e[c]=u)}function P(t,e){return t=t.replace(/\/$/,""),"/"===t[0]?t:null==e?t:n(e.path+"/"+t)}function F(t){function e(t,e,n){var r=v(t,e),o=r.name;if(o){var i=l[o],s=q(i.path);if("object"!=typeof r.params&&(r.params={}),e&&"object"==typeof e.params)for(var c in e.params)!(c in r.params)&&s.indexOf(c)>-1&&(r.params[c]=e.params[c]);if(i)return r.path=G(i.path,r.params,'named route "'+o+'"'),a(i,r,n)}else if(r.path){r.params={};for(var f in u)if(D(f,r.params,r.path))return a(u[f],r,n)}return a(null,r)}function n(t,n){var i=t.redirect,s="function"==typeof i?i(c(t,n)):i;if("string"==typeof s&&(s={path:s}),!s||"object"!=typeof s)return o(!1,"invalid redirect option: "+JSON.stringify(s)),a(null,n);var u=s,f=u.name,p=u.path,h=n.query,d=n.hash,v=n.params;if(h=u.hasOwnProperty("query")?u.query:h,d=u.hasOwnProperty("hash")?u.hash:d,v=u.hasOwnProperty("params")?u.params:v,f){var m=l[f];return r(m,'redirect failed: named route "'+f+'" not found.'),e({_normalized:!0,name:f,query:h,hash:d,params:v},void 0,n)}if(p){var g=U(p,t),y=G(g,v,'redirect route with path "'+g+'"');return e({_normalized:!0,path:y,query:h,hash:d},void 0,n)}return o(!1,"invalid redirect option: "+JSON.stringify(s)),a(null,n)}function i(t,n,r){var o=G(r,n.params,'aliased route with path "'+r+'"'),i=e({_normalized:!0,path:o});if(i){var s=i.matched,c=s[s.length-1];return n.params=i.params,a(c,n)}return a(null,n)}function a(t,e,r){return t&&t.redirect?n(t,r||e):t&&t.matchAs?i(t,e,t.matchAs):c(t,e,r)}var s=j(t),u=s.pathMap,l=s.nameMap;return e}function N(t){var e,n,r=Rt[t];return r?(e=r.keys,n=r.regexp):(e=[],n=St(t,e),Rt[t]={keys:e,regexp:n}),{keys:e,regexp:n}}function D(t,e,n){var r=N(t),o=r.regexp,i=r.keys,a=n.match(o);if(!a)return!1;if(!e)return!0;for(var s=1,c=a.length;s<c;++s){var u=i[s-1],l="string"==typeof a[s]?decodeURIComponent(a[s]):a[s];u&&(e[u.name]=l)}return!0}function G(t,e,n){try{var o=Ct[t]||(Ct[t]=St.compile(t));return o(e||{},{pretty:!0})}catch(t){return r(!1,"missing param for "+n+": "+t.message),""}}function q(t){return It[t]||(It[t]=N(t).keys.map(function(t){return t.name}))}function U(e,n){return t(e,n.parent?n.parent.path:"/",!0)}function K(t,e,n){var r=function(o){o>=t.length?n():t[o]?e(t[o],function(){r(o+1)}):r(o+1)};r(0)}function Q(t){if(!t)if(kt){var e=document.querySelector("base");t=e?e.getAttribute("href"):"/"}else t="/";return"/"!==t.charAt(0)&&(t="/"+t),t.replace(/\/$/,"")}function H(t,e){var n,r=Math.max(t.length,e.length);for(n=0;n<r&&t[n]===e[n];n++);return{activated:e.slice(n),deactivated:t.slice(n)}}function z(t,e){return"function"!=typeof t&&(t=ht.extend(t)),t.options[e]}function B(t){return Y(X(t,function(t,e){var n=z(t,"beforeRouteLeave");if(n)return Array.isArray(n)?n.map(function(t){return V(t,e)}):V(n,e)}).reverse())}function V(t,e){return function(){return t.apply(e,arguments)}}function W(t,e,n){return Y(X(t,function(t,r,o,i){var a=z(t,"beforeRouteEnter");if(a)return Array.isArray(a)?a.map(function(t){return J(t,e,o,i,n)}):J(a,e,o,i,n)}))}function J(t,e,n,r,o){return function(i,a,s){return t(i,a,function(t){s(t),"function"==typeof t&&e.push(function(){$(t,n.instances,r,o)})})}}function $(t,e,n,r){e[n]?t(e[n]):r()&&setTimeout(function(){$(t,e,n,r)},16)}function Z(t){return X(t,function(t,e,n,r){if("function"==typeof t&&!t.options)return function(e,i,a){var s=function(t){n.components[r]=t,a()},c=function(t){o(!1,"Failed to resolve async component "+r+": "+t),a(!1)},u=t(s,c);u&&"function"==typeof u.then&&u.then(s,c)}})}function X(t,e){return Y(t.map(function(t){return Object.keys(t.components).map(function(n){return e(t.components[n],t.instances[n],t,n)})}))}function Y(t){return Array.prototype.concat.apply([],t)}function tt(t){t&&(Pt[t]={x:window.pageXOffset,y:window.pageYOffset})}function et(t){if(t)return Pt[t]}function nt(t){var e=document.documentElement.getBoundingClientRect(),n=t.getBoundingClientRect();return{x:n.left-e.left,y:n.top-e.top}}function rt(t){return it(t.x)||it(t.y)}function ot(t){return{x:it(t.x)?t.x:window.pageXOffset,y:it(t.y)?t.y:window.pageYOffset}}function it(t){return"number"==typeof t}function at(t){var e=window.location.pathname;return t&&0===e.indexOf(t)&&(e=e.slice(t.length)),(e||"/")+window.location.search+window.location.hash}function st(t,e){var n=window.history;try{e?n.replaceState({key:Nt},"",t):(Nt=Ft(),n.pushState({key:Nt},"",t)),tt(Nt)}catch(n){window.location[e?"assign":"replace"](t)}}function ct(t){st(t,!0)}function ut(){var t=lt();return"/"===t.charAt(0)||(pt("/"+t),!1)}function lt(){var t=window.location.href,e=t.indexOf("#");return e===-1?"":t.slice(e+1)}function ft(t){window.location.hash=t}function pt(t){var e=window.location.href.indexOf("#");window.location.replace(window.location.href.slice(0,e>=0?e:0)+"#"+t)}var ht,dt={name:"router-view",functional:!0,props:{name:{type:String,default:"default"}},render:function(t,e){var n=e.props,r=e.children,o=e.parent,i=e.data;i.routerView=!0;for(var a=o.$route,s=o._routerViewCache||(o._routerViewCache={}),c=0,u=!1;o;)o.$vnode&&o.$vnode.data.routerView&&c++,o._inactive&&(u=!0),o=o.$parent;i.routerViewDepth=c;var l=a.matched[c];if(!l)return t();var f=n.name,p=u?s[f]:s[f]=l.components[f];if(!u){var h=i.hook||(i.hook={});h.init=function(t){l.instances[f]=t.child},h.prepatch=function(t,e){l.instances[f]=e.child},h.destroy=function(t){l.instances[f]===t.child&&(l.instances[f]=void 0)}}return t(p,i,r)}},vt=encodeURIComponent,mt=decodeURIComponent,gt=c(null,{path:"/"}),yt=/\/$/,_t=[String,Object],wt={name:"router-link",props:{to:{type:_t,required:!0},tag:{type:String,default:"a"},exact:Boolean,append:Boolean,replace:Boolean,activeClass:String},render:function(t){var e=this,n=this.$router,r=this.$route,o=v(this.to,r,this.append),i=n.match(o,r),a=i.redirectedFrom||i.fullPath,s=n.history.base,u=g(s,a,n.mode),l={},p=this.activeClass||n.options.linkActiveClass||"router-link-active",d=o.path?c(null,o):i;l[p]=this.exact?f(r,d):h(r,d);var y={click:function(t){if(!(t.metaKey||t.ctrlKey||t.shiftKey||t.defaultPrevented||0!==t.button)){var r=t.target.getAttribute("target");/\b_blank\b/i.test(r)||(t.preventDefault(),e.replace?n.replace(o):n.push(o))}}},_={class:l};if("a"===this.tag)_.on=y,_.attrs={href:u};else{var w=m(this.$slots.default);if(w){w.isStatic=!1;var b=ht.util.extend,x=w.data=b({},w.data);x.on=y;var S=w.data.attrs=b({},w.data.attrs);S.href=u}else _.on=y}return t(this.tag,_,this.$slots.default)}},bt=Array.isArray||function(t){return"[object Array]"==Object.prototype.toString.call(t)},xt=bt,St=k,Et=_,Tt=w,At=S,Ot=C,Mt=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");St.parse=Et,St.compile=Tt,St.tokensToFunction=At,St.tokensToRegExp=Ot;var Rt=Object.create(null),It=Object.create(null),Ct=Object.create(null),kt="undefined"!=typeof window,jt=kt&&function(){var t=window.navigator.userAgent;return(t.indexOf("Android 2.")===-1&&t.indexOf("Android 4.0")===-1||t.indexOf("Mobile Safari")===-1||t.indexOf("Chrome")!==-1||t.indexOf("Windows Phone")!==-1)&&(window.history&&"pushState"in window.history)}(),Lt=function(t,e){this.router=t,this.base=Q(e),this.current=gt,this.pending=null};Lt.prototype.listen=function(t){this.cb=t},Lt.prototype.transitionTo=function(t,e){var n=this,r=this.router.match(t,this.current);this.confirmTransition(r,function(){n.updateRoute(r),e&&e(r),n.ensureURL()})},Lt.prototype.confirmTransition=function(t,e){var n=this,r=this.current;if(f(t,r))return void this.ensureURL();var o=H(this.current.matched,t.matched),i=o.deactivated,a=o.activated,s=[].concat(B(i),this.router.beforeHooks,a.map(function(t){return t.beforeEnter}),Z(a));this.pending=t;var c=function(e,o){n.pending===t&&e(t,r,function(t){t===!1?n.ensureURL(!0):"string"==typeof t||"object"==typeof t?n.push(t):o(t)})};K(s,c,function(){var r=[],o=W(a,r,function(){return n.current===t});K(o,c,function(){n.pending===t&&(n.pending=null,e(t),n.router.app.$nextTick(function(){r.forEach(function(t){return t()})}))})})},Lt.prototype.updateRoute=function(t){var e=this.current;this.current=t,this.cb&&this.cb(t),this.router.afterHooks.forEach(function(n){n&&n(t,e)})};var Pt=Object.create(null),Ft=function(){return String(Date.now())},Nt=Ft(),Dt=function(t){function e(e,n){var r=this;t.call(this,e,n);var o=e.options.scrollBehavior;window.addEventListener("popstate",function(t){Nt=t.state&&t.state.key;var e=r.current;r.transitionTo(at(r.base),function(t){o&&r.handleScroll(t,e,!0)})}),o&&window.addEventListener("scroll",function(){tt(Nt)})}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.go=function(t){window.history.go(t)},e.prototype.push=function(t){var e=this,r=this.current;this.transitionTo(t,function(t){st(n(e.base+t.fullPath)),e.handleScroll(t,r,!1)})},e.prototype.replace=function(t){var e=this,r=this.current;this.transitionTo(t,function(t){ct(n(e.base+t.fullPath)),e.handleScroll(t,r,!1)})},e.prototype.ensureURL=function(t){if(at(this.base)!==this.current.fullPath){var e=n(this.base+this.current.fullPath);t?st(e):ct(e)}},e.prototype.handleScroll=function(t,e,n){var o=this.router;if(o.app){var i=o.options.scrollBehavior;i&&(r("function"==typeof i,"scrollBehavior must be a function"),o.app.$nextTick(function(){var r=et(Nt),o=i(t,e,n?r:null);if(o){var a="object"==typeof o;if(a&&"string"==typeof o.selector){var s=document.querySelector(o.selector);s?r=nt(s):rt(o)&&(r=ot(o))}else a&&rt(o)&&(r=ot(o));r&&window.scrollTo(r.x,r.y)}}))}},e}(Lt),Gt=function(t){function e(e,n,r){t.call(this,e,n),r&&this.checkFallback()||ut()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.checkFallback=function(){var t=at(this.base);if(!/^\/#/.test(t))return window.location.replace(n(this.base+"/#"+t)),!0},e.prototype.onHashChange=function(){ut()&&this.transitionTo(lt(),function(t){pt(t.fullPath)})},e.prototype.push=function(t){this.transitionTo(t,function(t){ft(t.fullPath)})},e.prototype.replace=function(t){this.transitionTo(t,function(t){pt(t.fullPath)})},e.prototype.go=function(t){window.history.go(t)},e.prototype.ensureURL=function(t){var e=this.current.fullPath;lt()!==e&&(t?ft(e):pt(e))},e}(Lt),qt=function(t){function e(e){t.call(this,e),this.stack=[],this.index=-1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.push=function(t){var e=this;this.transitionTo(t,function(t){e.stack=e.stack.slice(0,e.index+1).concat(t),e.index++})},e.prototype.replace=function(t){var e=this;this.transitionTo(t,function(t){e.stack=e.stack.slice(0,e.index).concat(t)})},e.prototype.go=function(t){var e=this,n=this.index+t;if(!(n<0||n>=this.stack.length)){var r=this.stack[n];this.confirmTransition(r,function(){e.index=n,e.updateRoute(r)})}},e.prototype.ensureURL=function(){},e}(Lt),Ut=function(t){void 0===t&&(t={}),this.app=null,this.options=t,this.beforeHooks=[],this.afterHooks=[],this.match=F(t.routes||[]);var e=t.mode||"hash";switch(this.fallback="history"===e&&!jt,this.fallback&&(e="hash"),kt||(e="abstract"),this.mode=e,e){case"history":this.history=new Dt(this,t.base);break;case"hash":this.history=new Gt(this,t.base,this.fallback);break;case"abstract":this.history=new qt(this);break;default:r(!1,"invalid mode: "+e)}},Kt={currentRoute:{}};return Kt.currentRoute.get=function(){return this.history&&this.history.current},Ut.prototype.init=function(t){var e=this;r(y.installed,"not installed. Make sure to call `Vue.use(VueRouter)` before creating root instance."),this.app=t;var n=this.history;n instanceof Dt?n.transitionTo(at(n.base)):n instanceof Gt&&n.transitionTo(lt(),function(){window.addEventListener("hashchange",function(){n.onHashChange()})}),n.listen(function(t){e.app._route=t})},Ut.prototype.beforeEach=function(t){this.beforeHooks.push(t)},Ut.prototype.afterEach=function(t){this.afterHooks.push(t)},Ut.prototype.push=function(t){this.history.push(t)},Ut.prototype.replace=function(t){this.history.replace(t)},Ut.prototype.go=function(t){this.history.go(t)},Ut.prototype.back=function(){this.go(-1)},Ut.prototype.forward=function(){this.go(1)},Ut.prototype.getMatchedComponents=function(){return this.currentRoute?[].concat.apply([],this.currentRoute.matched.map(function(t){return Object.keys(t.components).map(function(e){return t.components[e]})})):[]},Object.defineProperties(Ut.prototype,Kt),Ut.install=y,kt&&window.Vue&&window.Vue.use(Ut),Ut})}]);