mirror of
https://github.com/devfake/flox.git
synced 2024-11-15 14:42:31 +01:00
7 lines
69 KiB
JavaScript
7 lines
69 KiB
JavaScript
webpackJsonp([1],[function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}var o=n(10),i=r(o),a=n(9),u=r(a),s=n(4),c=n(112),f=r(c),l=n(114),h=r(l),p=n(111),d=r(p),v=n(113),m=r(v),g=n(48),y=r(g),_=n(30),w=r(_);n(105);var b=new u["default"]({store:w["default"],router:y["default"],created:function(){this.checkForUserColorScheme()},computed:(0,i["default"])({},(0,s.mapState)({colorScheme:function(t){return t.colorScheme}})),components:{SiteHeader:f["default"],Search:h["default"],SiteFooter:d["default"],Login:m["default"]},methods:(0,i["default"])({},(0,s.mapActions)(["setColorScheme"]),{checkForUserColorScheme:function(){localStorage.getItem("color")||localStorage.setItem("color","light"),this.setColorScheme(localStorage.getItem("color"))}})});b.$mount("#app")},function(t,e,n){var r=n(41)("wks"),o=n(43),i=n(2).Symbol,a="function"==typeof i,u=t.exports=function(t){return r[t]||(r[t]=a&&i[t]||(a?i:o)("Symbol."+t))};u.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){var n=t.exports={version:"2.4.0"};"number"==typeof __e&&(__e=n)},,function(t,e,n){var r=n(16);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,e,n){t.exports=!n(20)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e,n){var r=n(8),o=n(21);t.exports=n(6)?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(5),o=n(76),i=n(94),a=Object.defineProperty;e.f=n(6)?Object.defineProperty:function(t,e,n){if(r(t),e=i(e,!0),r(n),o)try{return a(t,e,n)}catch(u){}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){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var o=n(61),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(17);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(2),o=n(3),i=n(11),a=n(7),u="prototype",s=function(t,e,n){var c,f,l,h=t&s.F,p=t&s.G,d=t&s.S,v=t&s.P,m=t&s.B,g=t&s.W,y=p?o:o[e]||(o[e]={}),_=y[u],w=p?r:d?r[e]:(r[e]||{})[u];p&&(n=e);for(c in n)f=!h&&w&&void 0!==w[c],f&&c in y||(l=f?w[c]:n[c],y[c]=p&&"function"!=typeof w[c]?n[c]:m&&f?i(l,r):g&&w[c]==l?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[u]=t[u],e}(l):v&&"function"==typeof l?i(Function.call,l):l,v&&((y.virtual||(y.virtual={}))[c]=l,t&s.R&&_&&!_[c]&&a(_,c,l)))};s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,s.U=64,s.R=128,t.exports=s},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(16),o=n(2).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(e){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(8).f,o=n(15),i=n(1)("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(41)("keys"),o=n(43);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(34),o=n(18);t.exports=function(t){return r(o(t))}},function(t,e,n){var r=n(24),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,e,n){var r=n(18);t.exports=function(t){return Object(r(t))}},,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)}}}},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(9),a=o(i),u=n(4),s=o(u),c=n(49),f=r(c),l=n(50),h=o(l);a["default"].use(s["default"]),e["default"]=new s["default"].Store({state:{items:[],searchTitle:"",userFilter:"",loading:!1,clickedMoreLoading:!1,paginator:null,colorScheme:""},mutations:h["default"],actions:f})},function(t,e,n){var r=n(14),o=n(1)("toStringTag"),i="Arguments"==r(function(){return arguments}()),a=function(t,e){try{return t[e]}catch(n){}};t.exports=function(t){var e,n,u;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=a(e=Object(t),o))?n:i?r(e):"Object"==(u=r(e))&&"function"==typeof e.callee?"Arguments":u}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e,n){t.exports=n(2).document&&document.documentElement},function(t,e,n){var r=n(14);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,e,n){var r=n(13),o=n(1)("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(5);t.exports=function(t,e,n,o){try{return o?e(r(n)[0],n[1]):e(n)}catch(i){var a=t["return"];throw void 0!==a&&r(a.call(t)),i}}},function(t,e,n){"use strict";var r=n(39),o=n(12),i=n(89),a=n(7),u=n(15),s=n(13),c=n(78),f=n(22),l=n(85),h=n(1)("iterator"),p=!([].keys&&"next"in[].keys()),d="@@iterator",v="keys",m="values",g=function(){return this};t.exports=function(t,e,n,y,_,w,b){c(n,e,y);var x,S,T,E=function(t){if(!p&&t in M)return M[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,R=!1,M=t.prototype,C=M[h]||M[d]||_&&M[_],I=C||E(_),k=_?O?E("entries"):I:void 0,P="Array"==e?M.entries||C:C;if(P&&(T=l(P.call(new t)),T!==Object.prototype&&(f(T,A,!0),r||u(T,h)||a(T,h,g))),O&&C&&C.name!==m&&(R=!0,I=function(){return C.call(this)}),r&&!b||!p&&!R&&M[h]||a(M,h,I),s[e]=I,s[A]=g,_)if(x={values:O?I:E(m),keys:w?I:E(v),entries:k},b)for(S in x)S in M||i(M,S,x[S]);else o(o.P+o.F*(p||R),e,x);return x}},function(t,e,n){var r=n(1)("iterator"),o=!1;try{var i=[7][r]();i["return"]=function(){o=!0},Array.from(i,function(){throw 2})}catch(a){}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(u){}return n}},function(t,e){t.exports=!0},function(t,e,n){var r=n(86),o=n(32);t.exports=Object.keys||function(t){return r(t,o)}},function(t,e,n){var r=n(2),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(11),u=n(77),s=n(33),c=n(19),f=n(2),l=f.process,h=f.setImmediate,p=f.clearImmediate,d=f.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)};h&&p||(h=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return m[++v]=function(){u("function"==typeof t?t:Function(t),e)},r(v),v},p=function(t){delete m[t]},"process"==n(14)(l)?r=function(t){l.nextTick(a(y,t,1))}:d?(o=new d,i=o.port2,o.port1.onmessage=_,r=a(i.postMessage,i,1)):f.addEventListener&&"function"==typeof postMessage&&!f.importScripts?(r=function(t){f.postMessage(t+"","*")},f.addEventListener("message",_,!1)):r=g in c("script")?function(t){s.appendChild(c("script"))[g]=function(){s.removeChild(this),y.call(t)}}:function(t){setTimeout(a(y,t,1),0)}),t.exports={set:h,clear:p}},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(31),o=n(1)("iterator"),i=n(13);t.exports=n(3).getIteratorMethod=function(t){if(void 0!=t)return t[o]||t["@@iterator"]||i[r(t)]}},function(t,e,n){"use strict";var r=n(92)(!0);n(37)(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){var r,o;r=n(53);var i=n(122);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){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(9),i=r(o),a=n(28),u=r(a);i["default"].use(u["default"]),i["default"].http.headers.common["X-CSRF-TOKEN"]=document.querySelector("#token").getAttribute("content");var s=document.body.dataset,c=s.url,f=s.uri,l=s.auth,h=s.scoutDriver,p={uri:f,url:c,auth:l,scoutDriver:h,poster:c+"/assets/poster",posterTMDB:"http://image.tmdb.org/t/p/w185",api:c+"/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(9),i=r(o),a=n(123),u=r(a),s=n(47),c=r(s),f=n(108),l=r(f),h=n(109),p=r(h),d=n(110),v=r(d);i["default"].use(u["default"]),e["default"]=new u["default"]({mode:"history",base:c["default"].uri,routes:[{path:"/",component:l["default"]},{path:"/search",component:p["default"]},{path:"/settings",component:v["default"]},{path:"*",component:l["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),c["default"].http.get(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),c["default"].http.get(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 u(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=u;var s=n(9),c=r(s),f=n(28),l=r(f);c["default"].use(l["default"])},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(65),u=o(a),s=n(66),c=o(s),f=n(51),l=r(f);e["default"]=(i={},(0,u["default"])(i,l.SET_SEARCH_TITLE,function(t,e){t.searchTitle=e}),(0,u["default"])(i,l.SET_USER_FILTER,function(t,e){t.userFilter=e}),(0,u["default"])(i,l.SET_ITEMS,function(t,e){t.items=e}),(0,u["default"])(i,l.PUSH_TO_ITEMS,function(t,e){var n;(n=t.items).push.apply(n,(0,c["default"])(e))}),(0,u["default"])(i,l.SET_LOADING,function(t,e){t.loading=e}),(0,u["default"])(i,l.SET_PAGINATOR,function(t,e){t.paginator=e}),(0,u["default"])(i,l.SET_CLICKED_LOADING,function(t,e){t.clickedMoreLoading=e}),(0,u["default"])(i,l.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(10),i=r(o),a=n(46),u=r(a),s=n(4);e["default"]={created:function(){this.fetchData()},computed:(0,i["default"])({},(0,s.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,s.mapActions)(["loadItems","loadMoreItems","setSearchTitle"]),{fetchData:function(){this.loadItems(this.userFilter),this.setSearchTitle("")},loadMore:function(){this.loadMoreItems(this.paginator)}}),components:{Item:u["default"]},watch:{$route:"fetchData"}}},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e["default"]={props:["item"],data:function(){return{localItem:this.item,saveTimeout:null,auth:config.auth,prevRating:null,rated:!1}},computed:{title:function(){return this.localItem.alternative_title?this.localItem.alternative_title:this.localItem.title},poster:function(){return this.localItem.rating?config.poster+this.localItem.poster:config.posterTMDB+this.localItem.poster},released:function n(){var n=new Date(1e3*this.localItem.released);return n.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;this.$http.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.rated=!0,this.$http.post(config.api+"/add",{item:this.localItem}).then(function(e){t.localItem=e.data},function(e){409==e.status&&alert(t.title+" already exists!")}))},removeItem:function(){var t=this;if(this.auth){var e=window.confirm("Are you sure?");e&&this.$http["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(104),i=r(o),a=n(64),u=r(a),s=n(10),c=r(s),f=n(46),l=r(f),h=n(29),p=r(h),d=n(4);e["default"]={mixins:[p["default"]],created:function(){this.initSearch()},data:function(){return{floxItems:[],tmdbItems:[]}},computed:(0,c["default"])({},(0,d.mapState)({searchTitle:function(t){return t.searchTitle},loading:function(t){return t.loading}})),methods:{initSearch:function(){var t=this;this.$store.commit("SET_SEARCH_TITLE",this.$route.query.q),this.$store.commit("SET_LOADING",!0),this.searchFlox(),this.searchTMDB().then(function(){setTimeout(function(){t.$store.commit("SET_LOADING",!1)},500)})},searchFlox:function(){var t=this;this.$http.get(config.api+"/search-items?q="+this.searchTitle).then(function(e){t.floxItems=e.data})},searchTMDB:function(){var t=this;return(0,u["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,t.$http.get(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:l["default"]},watch:{$route:function(){this.scrollToTop(),this.initSearch()}}}},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e["default"]={created:function(){this.fetchUserData()},data:function(){return{loading:!0,username:"",password:"",success:!1,uploadSuccess:!1,uploadedFile:null}},computed:{exportLink:function(){return config.api+"/export"}},methods:{upload:function(t){var e=t.target.files||t.dataTransfer.files;this.uploadedFile=new FormData,this.uploadedFile.append("import",e[0])},importMovies:function(){var t=this;if(this.uploadedFile){var e=window.confirm("All movies will be replaced. Be sure you have made an backup!");e&&(this.loading=!0,this.$http.post(config.api+"/import",this.uploadedFile).then(function(e){t.loading=!1,t.uploadSuccess=!0},function(e){t.loading=!1,alert("Error: "+e.body)}))}},fetchUserData:function(){var t=this;this.$http.get(config.api+"/get-userdata").then(function(e){var n=e.body;t.loading=!1,t.username=n.username})},editUser:function(){var t=this,e=this.username,n=this.password;""!=e&&this.$http.patch(config.api+"/change-userdata",{username:e,password:n}).then(function(e){t.success=!0,t.clearSuccessMessage()})},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(10),i=r(o),a=n(4);e["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(10),i=r(o),a=n(30),u=(r(a),n(4));e["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){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e["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;this.$http.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(29),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?"Search or add movie":"Search movie"}},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(67),__esModule:!0}},function(t,e,n){t.exports={"default":n(68),__esModule:!0}},function(t,e,n){t.exports={"default":n(69),__esModule:!0}},function(t,e,n){t.exports={"default":n(70),__esModule:!0}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var o=n(63),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 u=e[o](a),s=u.value}catch(c){return void n(c)}return u.done?void t(s):i["default"].resolve(s).then(function(t){return r("next",t)},function(t){return 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(62),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(60),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){n(45),n(95),t.exports=n(3).Array.from},function(t,e,n){n(97),t.exports=n(3).Object.assign},function(t,e,n){n(98);var r=n(3).Object;t.exports=function(t,e,n){return r.defineProperty(t,e,n)}},function(t,e,n){n(99),n(45),n(101),n(100),t.exports=n(3).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(25),o=n(26),i=n(93);t.exports=function(t){return function(e,n,a){var u,s=r(e),c=o(s.length),f=i(a,c);if(t&&n!=n){for(;c>f;)if(u=s[f++],u!=u)return!0}else for(;c>f;f++)if((t||f in s)&&s[f]===n)return t||f||0;return!t&&-1}}},function(t,e,n){"use strict";var r=n(8),o=n(21);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(11),o=n(36),i=n(35),a=n(5),u=n(26),s=n(44),c={},f={},e=t.exports=function(t,e,n,l,h){var p,d,v,m,g=h?function(){return t}:s(t),y=r(n,l,e?2:1),_=0;if("function"!=typeof g)throw TypeError(t+" is not iterable!");if(i(g)){for(p=u(t.length);p>_;_++)if(m=e?y(a(d=t[_])[0],d[1]):y(t[_]),m===c||m===f)return m}else for(v=g.call(t);!(d=v.next()).done;)if(m=o(v,y,d.value,e),m===c||m===f)return m};e.BREAK=c,e.RETURN=f},function(t,e,n){t.exports=!n(6)&&!n(20)(function(){return 7!=Object.defineProperty(n(19)("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(82),o=n(21),i=n(22),a={};n(7)(a,n(1)("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(2),o=n(42).set,i=r.MutationObserver||r.WebKitMutationObserver,a=r.process,u=r.Promise,s="process"==n(14)(a);t.exports=function(){var t,e,n,c=function(){var r,o;for(s&&(r=a.domain)&&r.exit();t;){o=t.fn,t=t.next;try{o()}catch(i){throw t?n():e=void 0,i}}e=void 0,r&&r.enter()};if(s)n=function(){a.nextTick(c)};else if(i){var f=!0,l=document.createTextNode("");new i(c).observe(l,{characterData:!0}),n=function(){l.data=f=!f}}else if(u&&u.resolve){var h=u.resolve();n=function(){h.then(c)}}else n=function(){o.call(r,c)};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(40),o=n(84),i=n(87),a=n(27),u=n(34),s=Object.assign;t.exports=!s||n(20)(function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach(function(t){e[t]=t}),7!=s({},t)[n]||Object.keys(s({},e)).join("")!=r})?function(t,e){for(var n=a(t),s=arguments.length,c=1,f=o.f,l=i.f;s>c;)for(var h,p=u(arguments[c++]),d=f?r(p).concat(f(p)):r(p),v=d.length,m=0;v>m;)l.call(p,h=d[m++])&&(n[h]=p[h]);return n}:s},function(t,e,n){var r=n(5),o=n(83),i=n(32),a=n(23)("IE_PROTO"),u=function(){},s="prototype",c=function(){var t,e=n(19)("iframe"),r=i.length,o="<",a=">";for(e.style.display="none",n(33).appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write(o+"script"+a+"document.F=Object"+o+"/script"+a),t.close(),c=t.F;r--;)delete c[s][i[r]];return c()};t.exports=Object.create||function(t,e){var n;return null!==t?(u[s]=r(t),n=new u,u[s]=null,n[a]=t):n=c(),void 0===e?n:o(n,e)}},function(t,e,n){var r=n(8),o=n(5),i=n(40);t.exports=n(6)?Object.defineProperties:function(t,e){o(t);for(var n,a=i(e),u=a.length,s=0;u>s;)r.f(t,n=a[s++],e[n]);return t}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){var r=n(15),o=n(27),i=n(23)("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(15),o=n(25),i=n(73)(!1),a=n(23)("IE_PROTO");t.exports=function(t,e){var n,u=o(t),s=0,c=[];for(n in u)n!=a&&r(u,n)&&c.push(n);for(;e.length>s;)r(u,n=e[s++])&&(~i(c,n)||c.push(n));return c}},function(t,e){e.f={}.propertyIsEnumerable},function(t,e,n){var r=n(7);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(7)},function(t,e,n){"use strict";var r=n(2),o=n(3),i=n(8),a=n(6),u=n(1)("species");t.exports=function(t){var e="function"==typeof o[t]?o[t]:r[t];a&&e&&!e[u]&&i.f(e,u,{configurable:!0,get:function(){return this}})}},function(t,e,n){var r=n(5),o=n(17),i=n(1)("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(24),o=n(18);t.exports=function(t){return function(e,n){var i,a,u=String(o(e)),s=r(n),c=u.length;return s<0||s>=c?t?"":void 0:(i=u.charCodeAt(s),i<55296||i>56319||s+1===c||(a=u.charCodeAt(s+1))<56320||a>57343?t?u.charAt(s):i:t?u.slice(s,s+2):(i-55296<<10)+(a-56320)+65536)}}},function(t,e,n){var r=n(24),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(16);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(11),o=n(12),i=n(27),a=n(36),u=n(35),s=n(26),c=n(74),f=n(44);o(o.S+o.F*!n(38)(function(t){Array.from(t)}),"Array",{from:function(t){var e,n,o,l,h=i(t),p="function"==typeof this?this:Array,d=arguments.length,v=d>1?arguments[1]:void 0,m=void 0!==v,g=0,y=f(h);if(m&&(v=r(v,d>2?arguments[2]:void 0,2)),void 0==y||p==Array&&u(y))for(e=s(h.length),n=new p(e);e>g;g++)c(n,g,m?v(h[g],g):h[g]);else for(l=y.call(h),n=new p;!(o=l.next()).done;g++)c(n,g,m?a(l,v,[o.value,g],!0):o.value);return n.length=g,n}})},function(t,e,n){"use strict";var r=n(71),o=n(79),i=n(13),a=n(25);t.exports=n(37)(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(12);r(r.S+r.F,"Object",{assign:n(81)})},function(t,e,n){var r=n(12);r(r.S+r.F*!n(6),"Object",{defineProperty:n(8).f})},function(t,e){},function(t,e,n){"use strict";var r,o,i,a=n(39),u=n(2),s=n(11),c=n(31),f=n(12),l=n(16),h=n(17),p=n(72),d=n(75),v=n(91),m=n(42).set,g=n(80)(),y="Promise",_=u.TypeError,w=u.process,b=u[y],w=u.process,x="process"==c(w),S=function(){},T=!!function(){try{var t=b.resolve(1),e=(t.constructor={})[n(1)("species")]=function(t){t(S,S)};return(x||"function"==typeof PromiseRejectionEvent)&&t.then(S)instanceof e}catch(r){}}(),E=function(t,e){return t===e||t===b&&e===i},A=function(t){var e;return!(!l(t)||"function"!=typeof(e=t.then))&&e},O=function(t){return E(b,t)?new R(t):new o(t)},R=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=h(e),this.reject=h(n)},M=function(t){try{t()}catch(e){return{error:e}}},C=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,u=e.resolve,s=e.reject,c=e.domain;try{a?(o||(2==t._h&&P(t),t._h=1),a===!0?n=r:(c&&c.enter(),n=a(r),c&&c.exit()),n===e.promise?s(_("Promise-chain cycle")):(i=A(n))?i.call(n,u,s):u(n)):s(r)}catch(f){s(f)}};n.length>i;)a(n[i++]);t._c=[],t._n=!1,e&&!t._h&&I(t)})}},I=function(t){m.call(u,function(){var e,n,r,o=t._v;if(k(t)&&(e=M(function(){x?w.emit("unhandledRejection",o,t):(n=u.onunhandledrejection)?n({promise:t,reason:o}):(r=u.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},P=function(t){m.call(u,function(){var e;x?w.emit("rejectionHandled",t):(e=u.onrejectionhandled)&&e({promise:t,reason:t._v})})},j=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()),C(e,!0))},L=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,s(L,r,1),s(j,r,1))}catch(o){j.call(r,o)}}):(n._v=t,n._s=1,C(n,!1))}catch(r){j.call({_w:n,_d:!1},r)}}};T||(b=function(t){p(this,b,y,"_h"),h(t),r.call(this);try{t(s(L,this,1),s(j,this,1))}catch(e){j.call(this,e)}},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(88)(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&&C(this,!1),n.promise},"catch":function(t){return this.then(void 0,t)}}),R=function(){var t=new r;this.promise=t,this.resolve=s(L,t,1),this.reject=s(j,t,1)}),f(f.G+f.W+f.F*!T,{Promise:b}),n(22)(b,y),n(90)(y),i=n(3)[y],f(f.S+f.F*!T,y,{reject:function(t){var e=O(this),n=e.reject;return n(t),e.promise}}),f(f.S+f.F*(a||!T),y,{resolve:function(t){if(t instanceof b&&E(t.constructor,this))return t;var e=O(this),n=e.resolve;return n(t),e.promise}}),f(f.S+f.F*!(T&&n(38)(function(t){b.all(t)["catch"](S)})),y,{all:function(t){var e=this,n=O(e),r=n.resolve,o=n.reject,i=M(function(){var n=[],i=0,a=1;d(t,!1,function(t){var u=i++,s=!1;n.push(void 0),a++,e.resolve(t).then(function(t){s||(s=!0,n[u]=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=M(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(96);for(var r=n(2),o=n(7),i=n(13),a=n(1)("toStringTag"),u=["NodeList","DOMTokenList","MediaList","StyleSheetList","CSSRuleList"],s=0;s<5;s++){var c=u[s],f=r[c],l=f&&f.prototype;l&&!l[a]&&o(l,a,c),i[c]=i.Array}},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(103),
|
|
o)r.regeneratorRuntime=i;else try{delete r.regeneratorRuntime}catch(a){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=Object.create((e||i).prototype),a=new d(r||[]);return o._invoke=l(t,n,a),o}function o(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(r){return{type:"throw",arg:r}}}function i(){}function a(){}function u(){}function s(t){["next","throw","return"].forEach(function(e){t[e]=function(t){return this._invoke(e,t)}})}function c(t){this.arg=t}function f(t){function e(n,r,i,a){var u=o(t[n],t,r);if("throw"!==u.type){var s=u.arg,f=s.value;return f instanceof c?Promise.resolve(f.arg).then(function(t){e("next",t,i,a)},function(t){e("throw",t,i,a)}):Promise.resolve(f).then(function(t){s.value=t,i(s)},a)}a(u.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 l(t,e,n){var r=T;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 u=n.delegate;if(u){if("return"===i||"throw"===i&&u.iterator[i]===g){n.delegate=null;var s=u.iterator["return"];if(s){var c=o(s,u.iterator,a);if("throw"===c.type){i="throw",a=c.arg;continue}}if("return"===i)continue}var c=o(u.iterator[i],u.iterator,a);if("throw"===c.type){n.delegate=null,i="throw",a=c.arg;continue}i="next",a=g;var f=c.arg;if(!f.done)return r=E,f;n[u.resultName]=f.value,n.next=u.nextLoc,n.delegate=null}if("next"===i)n.sent=n._sent=a;else if("throw"===i){if(r===T)throw r=O,a;n.dispatchException(a)&&(i="next",a=g)}else"return"===i&&n.abrupt("return",a);r=A;var c=o(t,e,n);if("normal"===c.type){r=n.done?O:E;var f={value:c.arg,done:n.done};if(c.arg!==R)return f;n.delegate&&"next"===i&&(a=g)}else"throw"===c.type&&(r=O,i="throw",a=c.arg)}}}function h(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 p(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function d(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(h,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 o(){for(;++n<t.length;)if(y.call(t,n))return o.value=t[n],o.done=!1,o;return o.value=g,o.done=!0,o};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 T="suspendedStart",E="suspendedYield",A="executing",O="completed",R={},M=u.prototype=i.prototype;a.prototype=M.constructor=u,u.constructor=a,u[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,u):(t.__proto__=u,b in t||(t[b]="GeneratorFunction")),t.prototype=Object.create(M),t},S.awrap=function(t){return new c(t)},s(f.prototype),S.async=function(t,e,n,o){var i=new f(r(t,e,n,o));return S.isGeneratorFunction(e)?i:i.next().then(function(t){return t.done?t.value:i.next()})},s(M),M[w]=function(){return this},M[b]="Generator",M.toString=function(){return"[object Generator]"},S.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},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(p),!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"),u=y.call(o,"finallyLoc");if(a&&u){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(!u)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),R},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),p(n),R}},"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;p(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:v(t),resultName:e,nextLoc:n},R}}}("object"==typeof e?e:"object"==typeof window?window:"object"==typeof self?self:this)}).call(e,function(){return this}(),n(124))},function(t,e,n){t.exports=n(102)},function(t,e){},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(52);var i=n(119);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(54);var i=n(120);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(55);var i=n(117);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(56);var i=n(115);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(57);var i=n(121);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(58);var i=n(118);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(59);var i=n(116);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(module,exports){module.exports={render:function(){with(this)return _h("footer",{directives:[{name:"show",value:!loading,expression:" ! loading"}]},[_h("div",{staticClass:"wrap"},[_m(0)," ",_m(1)," ",_h("div",{staticClass:"sub-links"},[auth?_h("a",{staticClass:"login-btn",attrs:{href:settings}},["Settings"]):_e()," ",auth?_h("a",{staticClass:"login-btn",attrs:{href:logout}},["Logout"]):_e()," ",auth?_e():_h("a",{staticClass:"login-btn",attrs:{href:login}},["Login"])])])])},staticRenderFns:[function(){with(this)return _h("span",{staticClass:"attribution"},[_h("a",{attrs:{href:"https://www.themoviedb.org/",target:"_blank"}},[_h("i",{staticClass:"icon-tmdb"})]),"\n This product uses the TMDb API but is not endorsed or certified by TMDb\n "])},function(){with(this)return _h("a",{staticClass:"icon-github",attrs:{href:"https://github.com/devfake/flox",target:"_blank"}})}]}},function(module,exports){module.exports={render:function(){with(this)return _h("section",{staticClass:"search-wrap","class":{sticky:sticky}},[_h("div",{staticClass:"wrap"},[_h("form",{staticClass:"search-form",on:{submit:function(t){t.preventDefault(),search()}}},[_h("router-link",{attrs:{to:"/"}},[_h("i",{staticClass:"icon-logo-small",on:{click:function(t){scrollToTop()}}})])," ",_m(0)," ",_h("input",{directives:[{name:"model",value:title,expression:"title"}],staticClass:"search-input",attrs:{type:"text",placeholder:placeholder,autofocus:""},domProps:{value:_s(title)},on:{input:function(t){t.target.composing||(title=t.target.value)}}})," ",algolia?_h("i",{staticClass:"icon-algolia"}):_e()])])])},staticRenderFns:[function(){with(this)return _h("i",{staticClass:"icon-search"})}]}},function(module,exports){module.exports={render:function(){with(this)return _h("main",[loading?_e():_h("div",{staticClass:"wrap-content"},[_h("div",{staticClass:"settings-box"},[_m(0)," ",_h("form",{staticClass:"login-form",on:{submit:function(t){t.preventDefault(),editUser()}}},[_h("input",{directives:[{name:"model",value:username,expression:"username"}],attrs:{type:"text",placeholder:"Username"},domProps:{value:_s(username)},on:{input:function(t){t.target.composing||(username=t.target.value)}}})," ",_h("input",{directives:[{name:"model",value:password,expression:"password"}],attrs:{type:"password",placeholder:"Password",autocomplete:"off"},domProps:{value:_s(password)},on:{input:function(t){t.target.composing||(password=t.target.value)}}})," ",_m(1)," ",_h("span",{staticClass:"userdata-changed"},[success?_h("span",["Successful changed"]):_e()])," ",_m(2)])])," ",_h("div",{staticClass:"settings-box"},[_m(3)," ",_h("a",{staticClass:"export-btn",attrs:{href:exportLink}},["Export movies"])," ",_h("form",{staticClass:"login-form",on:{submit:function(t){t.preventDefault(),importMovies()}}},[_m(4)," ",_h("input",{staticClass:"file-btn",attrs:{type:"file",required:""},on:{change:upload}})," ",_h("span",{staticClass:"userdata-changed"},[uploadSuccess?_h("span",["Movies successful imported"]):_e()])," ",_m(5)])])])," ",loading?_h("span",{staticClass:"loader fullsize-loader"},[_m(6)]):_e()])},staticRenderFns:[function(){with(this)return _h("span",{staticClass:"nothing-found"},["User"])},function(){with(this)return _h("span",{staticClass:"userdata-info"},["Leave the password field blank if you don't want to change it"])},function(){with(this)return _h("input",{attrs:{type:"submit",value:"Save"}})},function(){with(this)return _h("span",{staticClass:"nothing-found"},["Export / Import"])},function(){with(this)return _h("span",{staticClass:"import-info"},["OR"])},function(){with(this)return _h("input",{attrs:{type:"submit",value:"Import movies"}})},function(){with(this)return _h("i")}]}},function(module,exports,__webpack_require__){module.exports={render:function(){with(this)return _h("div",[_m(0)," ",_h("div",{staticClass:"login-wrap"},[_m(1)," ",_h("form",{staticClass:"login-form",on:{submit:function(t){t.preventDefault(),login()}}},[_h("input",{directives:[{name:"model",value:username,expression:"username"}],attrs:{type:"text",placeholder:"Username",autofocus:""},domProps:{value:_s(username)},on:{input:function(t){t.target.composing||(username=t.target.value)}}})," ",_h("input",{directives:[{name:"model",value:password,expression:"password"}],attrs:{type:"password",placeholder:"Password"},domProps:{value:_s(password)},on:{input:function(t){t.target.composing||(password=t.target.value)}}})," ",_h("span",{staticClass:"login-error"},[error?_h("span",["Wrong username or password"]):_e()])," ",_h("input",{"class":errorShake?"shake-horizontal shake-constant":"",attrs:{type:"submit",value:"Sign In"}})])])])},staticRenderFns:[function(){with(this)return _h("span",{staticClass:"top-bar"})},function(){with(this)return _h("img",{staticClass:"logo-login",attrs:{src:__webpack_require__(106),alt:"Flox",width:"108",height:"32"}})}]}},function(module,exports){module.exports={render:function(){with(this)return _h("main",[loading?_e():_h("div",{staticClass:"wrap-content"},[_l(items,function(t,e){return _h("Item",{key:e,attrs:{item:t}})})," ",items.length?_e():_h("span",{staticClass:"nothing-found"},["No Movies Found"])," ",_h("div",{staticClass:"load-more-wrap"},[!clickedMoreLoading&&paginator?_h("span",{staticClass:"load-more",on:{click:function(t){loadMore()}}},["LOAD MORE"]):_e()," ",clickedMoreLoading?_h("span",{staticClass:"loader"},[_m(0)]):_e()])])," ",loading?_h("span",{staticClass:"loader fullsize-loader"},[_m(1)]):_e()])},staticRenderFns:[function(){with(this)return _h("i")},function(){with(this)return _h("i")}]}},function(module,exports){module.exports={render:function(){with(this)return _h("main",[loading?_e():_h("div",{staticClass:"wrap-content"},[_l(floxItems,function(t,e){return _h("Item",{key:e,attrs:{item:t}})})," ",_l(tmdbItems,function(t,e){return _h("Item",{key:e,attrs:{item:t}})})," ",floxItems.length||tmdbItems.length?_e():_h("span",{staticClass:"nothing-found"},["Nothing Found"])])," ",loading?_h("span",{staticClass:"loader fullsize-loader"},[_m(0)]):_e()])},staticRenderFns:[function(){with(this)return _h("i")}]}},function(module,exports,__webpack_require__){module.exports={render:function(){with(this)return _h("header",[_h("div",{staticClass:"wrap"},[_h("router-link",{staticClass:"logo",attrs:{to:"/"}},[_m(0)])," ",_h("span",{staticClass:"sort-wrap"},[_h("i",{staticClass:"icon-sort-time","class":{active:"created_at"==userFilter},on:{click:function(t){setUserFilter("created_at")}}})," ",_h("i",{staticClass:"icon-sort-star","class":{active:"rating"==userFilter},on:{click:function(t){setUserFilter("rating")}}})," ",_h("span",{staticClass:"icon-constrast",on:{click:function(t){toggleColorScheme()}}},[_m(1)])])])])},staticRenderFns:[function(){with(this)return _h("img",{attrs:{src:__webpack_require__(107),alt:"Flox",width:"108",height:"32"}})},function(){with(this)return _h("i")}]}},function(module,exports){module.exports={render:function(){with(this)return _h("transition",{attrs:{mode:"out-in",name:"fade"}},[_h("div",{staticClass:"item-wrap"},[_h("div",{staticClass:"item-image-wrap"},[localItem.rating?_h("span",{"class":"item-rating rating-"+localItem.rating,on:{click:function(t){changeRating()}}},[_m(0)]):_e()," ",localItem.rating?_e():_h("span",{staticClass:"item-rating item-new",on:{click:function(t){addNewItem()}}},[rated?_h("span",{staticClass:"loader smallsize-loader"},[_m(1)]):_e()," ",rated?_e():_h("i",{staticClass:"icon-add"})])," ",localItem.rating&&auth?_h("span",{staticClass:"remove-item",on:{click:function(t){removeItem()}}},[_m(2)]):_e()," ",localItem.poster?_h("img",{staticClass:"item-image",attrs:{src:poster,width:"185",height:"278"}}):_e()," ",localItem.poster?_e():_h("span",{staticClass:"no-image"})])," ",_h("div",{staticClass:"item-content"},[_h("span",{staticClass:"item-year"},[_s(released)])," ",_h("a",{staticClass:"item-title",attrs:{href:"https://www.youtube.com/results?search_query="+title+" Trailer",target:"_blank",title:title}},[_s(title)])])])])},staticRenderFns:[function(){with(this)return _h("i",{staticClass:"icon-rating"})},function(){with(this)return _h("i")},function(){with(this)return _h("i",{staticClass:"icon-remove"})}]}},function(t,e,n){/**
|
|
* vue-router v2.0.0
|
|
* (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(r){o(!1,r.message),n={}}for(var i in e)n[i]=e[i];return n}return e}function a(t){var e=Object.create(null);return(t=t.trim().replace(/^(\?|#|&)/,""))?(t.split("&").forEach(function(t){var n=t.replace(/\+/g," ").split("="),r=ut(n.shift()),o=n.length>0?ut(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 u(t){var e=t?Object.keys(t).sort().map(function(e){var n=t[e];if(void 0===n)return"";if(null===n)return at(e);if(Array.isArray(n)){var r=[];return n.slice().forEach(function(t){void 0!==t&&(null===t?r.push(at(e)):r.push(at(e)+"="+at(t)))}),r.join("&")}return at(e)+"="+at(n)}).filter(function(t){return t.length>0}).join("&"):null;return e?"?"+e:""}function s(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:f(e),matched:t?c(t):[]};return n&&(r.redirectedFrom=f(n)),Object.freeze(r)}function c(t){for(var e=[];t;)e.unshift(t),t=t.parent;return e}function f(t){var e=t.path,n=t.query;void 0===n&&(n={});var r=t.hash;return void 0===r&&(r=""),(e||"/")+u(n)+r}function l(t,e){return e===st?t===e:!!e&&(t.path&&e.path?t.path.replace(ct,"")===e.path.replace(ct,"")&&t.hash===e.hash&&h(t.query,e.query):!(!t.name||!e.name)&&(t.name===e.name&&t.hash===e.hash&&h(t.query,e.query)&&h(t.params,e.params)))}function h(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 p(t,e){return 0===t.path.indexOf(e.path)&&(!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 u=e(a.path||""),s=r&&r.path||"/",c=u.path?t(u.path,s,o):r&&r.path||"/",f=i(u.query,a.query),l=a.hash||u.hash;return l&&"#"!==l.charAt(0)&&(l="#"+l),{_normalized:!0,path:c,query:f,hash:l}}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){g.installed||(g.installed=!0,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",it),t.component("router-link",lt))}function y(t){for(var e,n=[],r=0,o=0,i="";null!=(e=_t.exec(t));){var a=e[0],u=e[1],s=e.index;if(i+=t.slice(o,s),o=s+a.length,u)i+=u[1];else{var c=t[o],f=e[2],l=e[3],h=e[4],p=e[5],d=e[6],v=e[7];i&&(n.push(i),i="");var m=null!=f&&null!=c&&c!==f,g="+"===d||"*"===d,y="?"===d||"*"===d,_=e[2]||"/",w=h||p||(v?".*":"[^"+_+"]+?");n.push({name:l||r++,prefix:f||"",delimiter:_,optional:y,repeat:g,partial:m,asterisk:!!v,pattern:T(w)})}}return o<t.length&&(i+=t.substr(o)),i&&n.push(i),n}function _(t){return x(y(t))}function w(t){return encodeURI(t).replace(/[\/?#]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}function b(t){return encodeURI(t).replace(/[?#]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}function x(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||{},u=a.pretty?w:encodeURIComponent,s=0;s<t.length;s++){var c=t[s];if("string"!=typeof c){var f,l=i[c.name];if(null==l){if(c.optional){c.partial&&(o+=c.prefix);continue}throw new TypeError('Expected "'+c.name+'" to be defined')}if(pt(l)){if(!c.repeat)throw new TypeError('Expected "'+c.name+'" to not repeat, but received `'+JSON.stringify(l)+"`");if(0===l.length){if(c.optional)continue;throw new TypeError('Expected "'+c.name+'" to not be empty')}for(var h=0;h<l.length;h++){if(f=u(l[h]),!e[s].test(f))throw new TypeError('Expected all "'+c.name+'" to match "'+c.pattern+'", but received `'+JSON.stringify(f)+"`");o+=(0===h?c.prefix:c.delimiter)+f}}else{if(f=c.asterisk?b(l):u(l),!e[s].test(f))throw new TypeError('Expected "'+c.name+'" to match "'+c.pattern+'", but received "'+f+'"');o+=c.prefix+f}}else o+=c}return o}}function S(t){return t.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function T(t){return t.replace(/([=!:$\/()])/g,"\\$1")}function E(t,e){return t.keys=e,t}function A(t){return t.sensitive?"":"i"}function O(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 E(t,e)}function R(t,e,n){for(var r=[],o=0;o<t.length;o++)r.push(I(t[o],e,n).source);var i=new RegExp("(?:"+r.join("|")+")",A(n));return E(i,e)}function M(t,e,n){for(var r=y(t),o=C(r,n),i=0;i<r.length;i++)"string"!=typeof r[i]&&e.push(r[i]);return E(o,e)}function C(t,e){e=e||{};for(var n=e.strict,r=e.end!==!1,o="",i=t[t.length-1],a="string"==typeof i&&/\/$/.test(i),u=0;u<t.length;u++){var s=t[u];if("string"==typeof s)o+=S(s);else{var c=S(s.prefix),f="(?:"+s.pattern+")";s.repeat&&(f+="(?:"+c+f+")*"),f=s.optional?s.partial?c+"("+f+")?":"(?:"+c+"("+f+"))?":c+"("+f+")",o+=f}}return n||(o=(a?o.slice(0,-2):o)+"(?:\\/(?=$))?"),o+=r?"$":n&&a?"":"(?=\\/|$)",new RegExp("^"+o,A(e))}function I(t,e,n){return e=e||[],pt(e)?n||(n={}):(n=e,e=[]),t instanceof RegExp?O(t,e):pt(t)?R(t,e,n):M(t,e,n)}function k(t){var e=Object.create(null),n=Object.create(null);return t.forEach(function(t){P(e,n,t)}),{pathMap:e,nameMap:n}}function P(t,e,n,o,i){var a=n.path,u=n.name;r(null!=a,'"path" is required in a route configuration.');var s={path:j(a,o),components:n.components||{"default":n.component},instances:{},name:u,parent:o,matchAs:i,redirect:n.redirect,beforeEnter:n.beforeEnter,meta:n.meta||{}};n.children&&n.children.forEach(function(n){P(t,e,n,s)}),n.alias&&(Array.isArray(n.alias)?n.alias.forEach(function(n){P(t,e,{path:n},o,s.path)}):P(t,e,{path:n.alias},o,s.path)),t[s.path]=s,u&&(e[u]=s)}function j(t,e){return t=t.replace(/\/$/,""),"/"===t[0]?t:null==e?t:n(e.path+"/"+t)}function L(t){function e(t,e,n){var r=v(t,e),o=r.name;if(o){var i=f[o];if(i)return r.path=N(i.path,r.params,'named route "'+o+'"'),a(i,r,n)}else if(r.path){r.params={};for(var u in c)if(F(u,r.params,r.path))return a(c[u],r,n)}return a(null,r)}function n(t,n){var i=t.redirect,u="function"==typeof i?i(s(t,n)):i;if("string"==typeof u&&(u={path:u}),!u||"object"!=typeof u)return o(!1,"invalid redirect option: "+JSON.stringify(u)),a(null,n);var c=u,l=c.name,h=c.path,p=n.query,d=n.hash,v=n.params;if(p=c.hasOwnProperty("query")?c.query:p,d=c.hasOwnProperty("hash")?c.hash:d,v=c.hasOwnProperty("params")?c.params:v,l){var m=f[l];return r(m,'redirect failed: named route "'+l+'" not found.'),e({_normalized:!0,name:l,query:p,hash:d,params:v},void 0,n)}if(h){var g=q(h,t),y=N(g,v,'redirect route with path "'+g+'"');return e({_normalized:!0,path:y,query:p,hash:d},void 0,n)}return o(!1,"invalid redirect option: "+JSON.stringify(u)),a(null,n)}function i(t,n,r){var o=N(r,n.params,'aliased route with path "'+r+'"'),i=e({_normalized:!0,path:o});if(i){var u=i.matched,s=u[u.length-1];return n.params=i.params,a(s,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):s(t,e,r)}var u=k(t),c=u.pathMap,f=u.nameMap;return e}function F(t,e,n){var r,o,i=wt[t];i?(r=i.keys,o=i.regexp):(r=[],o=dt(t,r),wt[t]={keys:r,regexp:o});var a=n.match(o);if(!a)return!1;if(!e)return!0;for(var u=1,s=a.length;u<s;++u){var c=r[u-1],f="string"==typeof a[u]?decodeURIComponent(a[u]):a[u];c&&(e[c.name]=f)}return!0}function N(t,e,n){try{var o=bt[t]||(bt[t]=dt.compile(t));return o(e||{},{pretty:!0})}catch(i){return r(!1,"missing param for "+n+": "+i.message),""}}function q(e,n){return t(e,n.parent?n.parent.path:"/",!0)}function U(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 D(t){if(!t)if(xt){var e=document.querySelector("base");t=e?e.getAttribute("href"):"/"}else t="/";return"/"!==t.charAt(0)&&(t="/"+t),t.replace(/\/$/,"")}function G(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 Q(t){return B(t,function(t,e){var n=t&&t.beforeRouteLeave;if(n)return function(){return n.apply(e,arguments)}}).reverse()}function K(t,e){return B(t,function(t,n,r,o){var i=t&&t.beforeRouteEnter;if(i)return function(t,n,a){return i(t,n,function(t){a(t),"function"==typeof t&&e.push(function(){t(r.instances[o])})})}})}function H(t){return B(t,function(t,e,n,r){if("function"==typeof t&&!t.options)return function(e,i,a){var u=function(t){n.components[r]=t,a()},s=function(t){o(!1,"Failed to resolve async component "+r+": "+t),a(!1)},c=t(u,s);c&&"function"==typeof c.then&&c.then(u,s)}})}function B(t,e){return Array.prototype.concat.apply([],t.map(function(t){return Object.keys(t.components).map(function(n){return e(t.components[n],t.instances[n],t,n)})}))}function z(t){t&&window.sessionStorage.setItem(t,JSON.stringify({x:window.pageXOffset,y:window.pageYOffset}))}function V(t){if(t)return JSON.parse(window.sessionStorage.getItem(t))}function W(t){var e=document.documentElement.getBoundingClientRect(),n=t.getBoundingClientRect();return{x:n.left-e.left,y:n.top-e.top}}function J(t){return Z(t.x)||Z(t.y)}function $(t){return{x:Z(t.x)?t.x:window.pageXOffset,y:Z(t.y)?t.y:window.pageYOffset}}function Z(t){return"number"==typeof t}function X(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 Y(t,e){var n=window.history;try{e?n.replaceState({key:At},"",t):(At=Et(),n.pushState({key:At},"",t)),z(At)}catch(r){window.location[e?"assign":"replace"](t)}}function tt(t){Y(t,!0)}function et(){var t=nt();return"/"===t.charAt(0)||(ot("/"+t),!1)}function nt(){var t=window.location.href,e=t.indexOf("#");return e===-1?"":t.slice(e+1)}function rt(t){window.location.hash=t}function ot(t){var e=window.location.href.indexOf("#");window.location.replace(window.location.href.slice(0,e>=0?e:0)+"#"+t)}var it={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,u=o._routerViewCache||(o._routerViewCache={}),s=0,c=!1;o;)o.$vnode&&o.$vnode.data.routerView&&s++,o._inactive&&(c=!0),o=o.$parent;i.routerViewDepth=s;var f=a.matched[s];if(!f)return t();var l=c?u[n.name]:u[n.name]=f.components[n.name];return c||((i.hook||(i.hook={})).init=function(t){f.instances[n.name]=t.child}),t(l,i,r)}},at=encodeURIComponent,ut=decodeURIComponent,st=s(null,{path:"/"}),ct=/\/$/,ft=[String,Object],lt={name:"router-link",props:{to:{type:ft,required:!0},tag:{type:String,"default":"a"},exact:Boolean,append:Boolean,replace:Boolean,activeClass:String},render:function(t){var e=this,r=this.$router,o=this.$route,i=v(this.to,o,this.append),a=r.match(i),u=a.redirectedFrom||a.fullPath,c=r.history.base,f=c?n(c+u):u,h={},d=this.activeClass||r.options.linkActiveClass||"router-link-active",g=i.path?s(null,i):a;h[d]=this.exact?l(o,g):p(o,g);var y={click:function(t){t.preventDefault(),e.replace?r.replace(i):r.push(i)}},_={"class":h};if("a"===this.tag)_.on=y,_.attrs={href:f};else{var w=m(this.$slots["default"]);if(w){var b=w.data||(w.data={});b.on=y;var x=b.attrs||(b.attrs={});x.href=f}}return t(this.tag,_,this.$slots["default"])}},ht=Array.isArray||function(t){return"[object Array]"==Object.prototype.toString.call(t)},pt=ht,dt=I,vt=y,mt=_,gt=x,yt=C,_t=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");dt.parse=vt,dt.compile=mt,dt.tokensToFunction=gt,dt.tokensToRegExp=yt;var wt=Object.create(null),bt=Object.create(null),xt="undefined"!=typeof window,St=xt&&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)}(),Tt=function(t,e){this.router=t,this.base=D(e),this.current=st,this.pending=null};Tt.prototype.listen=function(t){this.cb=t},Tt.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()})},Tt.prototype.confirmTransition=function(t,e){var n=this,r=this.current;if(l(t,r))return void this.ensureURL();var o=G(this.current.matched,t.matched),i=o.deactivated,a=o.activated,u=[].concat(Q(i),this.router.beforeHooks,a.map(function(t){return t.beforeEnter}),H(a));this.pending=t;var s=function(e,o){n.pending===t&&e(t,r,function(t){t===!1?n.ensureURL():"string"==typeof t||"object"==typeof t?n.push(t):o(t)})};U(u,s,function(){var r=[];U(K(a,r),s,function(){n.pending===t&&(n.pending=null,e(t),n.router.app.$nextTick(function(){r.forEach(function(t){return t()})}))})})},Tt.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 Et=function(){return String(Date.now())},At=Et(),Ot=function(t){function e(e,n){var r=this;t.call(this,e,n),this.transitionTo(X(this.base));var o=e.options.scrollBehavior;window.addEventListener("popstate",function(t){At=t.state&&t.state.key;var e=r.current;r.transitionTo(X(r.base),function(t){o&&r.handleScroll(t,e,!0)})}),o&&window.addEventListener("scroll",function(){z(At)})}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){Y(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){tt(n(e.base+t.fullPath)),e.handleScroll(t,r,!1)})},e.prototype.ensureURL=function(){X(this.base)!==this.current.fullPath&&tt(n(this.base+this.current.fullPath))},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=V(At),o=i(t,e,n?r:null);if(o){var a="object"==typeof o;if(a&&"string"==typeof o.selector){var u=document.querySelector(o.selector);u?r=W(u):J(o)&&(r=$(o))}else a&&J(o)&&(r=$(o));r&&window.scrollTo(r.x,r.y)}}))}},e}(Tt),Rt=function(t){function e(e,n,r){var o=this;t.call(this,e,n),r&&this.checkFallback()||(et(),this.transitionTo(nt()),window.addEventListener("hashchange",function(){o.onHashChange()}))}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.checkFallback=function(){var t=X(this.base);if(!/^\/#/.test(t))return window.location.replace(n(this.base+"/#"+t)),!0},e.prototype.onHashChange=function(){et()&&this.transitionTo(nt(),function(t){ot(t.fullPath)})},e.prototype.push=function(e){t.prototype.transitionTo.call(this,e,function(t){rt(t.fullPath)})},e.prototype.replace=function(e){t.prototype.transitionTo.call(this,e,function(t){ot(t.fullPath)})},e.prototype.go=function(t){window.history.go(t)},e.prototype.ensureURL=function(){nt()!==this.current.fullPath&&ot(this.current.fullPath)},e}(Tt),Mt=function(t){function e(e){t.call(this,e),this.stack=[],this.index=0}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.push=function(e){var n=this;t.prototype.transitionTo.call(this,e,function(t){n.stack=n.stack.slice(0,n.index+1).concat(t),n.index++})},e.prototype.replace=function(e){var n=this;t.prototype.transitionTo.call(this,e,function(t){n.stack=n.stack.slice(0,n.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}(Tt),Ct=function(t){void 0===t&&(t={}),this.app=null,this.options=t,this.beforeHooks=[],this.afterHooks=[],this.match=L(t.routes||[]);var e=t.mode||"hash";this.fallback="history"===e&&!St,this.fallback&&(e="hash"),xt||(e="abstract"),this.mode=e},It={currentRoute:{}};return It.currentRoute.get=function(){return this.history&&this.history.current},Ct.prototype.init=function(t){var e=this;r(g.installed,"not installed. Make sure to call `Vue.use(VueRouter)` before creating root instance."),this.app=t;var n=this,o=n.mode,i=n.options,a=n.fallback;switch(o){case"history":this.history=new Ot(this,i.base);break;case"hash":this.history=new Rt(this,i.base,a);break;case"abstract":this.history=new Mt(this);break;default:r(!1,"invalid mode: "+o)}this.history.listen(function(t){e.app._route=t})},Ct.prototype.beforeEach=function(t){this.beforeHooks.push(t)},Ct.prototype.afterEach=function(t){this.afterHooks.push(t)},Ct.prototype.push=function(t){this.history.push(t)},Ct.prototype.replace=function(t){this.history.replace(t)},Ct.prototype.go=function(t){this.history.go(t)},Ct.prototype.back=function(){this.go(-1)},Ct.prototype.forward=function(){this.go(1)},Ct.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(Ct.prototype,It),Ct.install=g,xt&&window.Vue&&window.Vue.use(Ct),Ct})},function(t,e){function n(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function o(t){if(f===setTimeout)return setTimeout(t,0);if((f===n||!f)&&setTimeout)return f=setTimeout,setTimeout(t,0);try{return f(t,0)}catch(e){try{return f.call(null,t,0)}catch(e){return f.call(this,t,0)}}}function i(t){if(l===clearTimeout)return clearTimeout(t);if((l===r||!l)&&clearTimeout)return l=clearTimeout,clearTimeout(t);try{return l(t)}catch(e){try{return l.call(null,t)}catch(e){return l.call(this,t)}}}function a(){v&&p&&(v=!1,p.length?d=p.concat(d):m=-1,d.length&&u())}function u(){if(!v){var t=o(a);v=!0;for(var e=d.length;e;){for(p=d,d=[];++m<e;)p&&p[m].run();m=-1,e=d.length}p=null,v=!1,i(t)}}function s(t,e){this.fun=t,this.array=e}function c(){}var f,l,h=t.exports={};!function(){try{f="function"==typeof setTimeout?setTimeout:n}catch(t){f=n}try{l="function"==typeof clearTimeout?clearTimeout:r}catch(t){l=r}}();var p,d=[],v=!1,m=-1;h.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];d.push(new s(t,e)),1!==d.length||v||o(u)},s.prototype.run=function(){this.fun.apply(null,this.array)},h.title="browser",h.browser=!0,h.env={},h.argv=[],h.version="",h.versions={},h.on=c,h.addListener=c,h.once=c,h.off=c,h.removeListener=c,h.removeAllListeners=c,h.emit=c,h.binding=function(t){throw new Error("process.binding is not supported")},h.cwd=function(){return"/"},h.chdir=function(t){throw new Error("process.chdir is not supported")},h.umask=function(){return 0}}]); |