!function(e){function t(e){var t=document.getElementsByTagName("head")[0],n=document.createElement("script");n.type="text/javascript",n.charset="utf-8",n.src=p.p+""+e+"."+y+".hot-update.js",t.appendChild(n)}function n(e){if("undefined"==typeof XMLHttpRequest)return e(new Error("No browser support"));try{var t=new XMLHttpRequest,n=p.p+""+y+".hot-update.json";t.open("GET",n,!0),t.timeout=1e4,t.send(null)}catch(r){return e(r)}t.onreadystatechange=function(){if(4===t.readyState)if(0===t.status)e(new Error("Manifest request to "+n+" timed out."));else if(404===t.status)e();else if(200!==t.status&&304!==t.status)e(new Error("Manifest request to "+n+" failed."));else{try{var r=JSON.parse(t.responseText)}catch(o){return void e(o)}e(null,r)}}}function r(e){var t=E[e];if(!t)return p;var n=function(n){return t.hot.active?E[n]?(E[n].parents.indexOf(e)<0&&E[n].parents.push(e),t.children.indexOf(n)<0&&t.children.push(n)):w=[e]:(console.warn("[HMR] unexpected require("+n+") from disposed module "+e),w=[]),p(n)};for(var r in p)Object.prototype.hasOwnProperty.call(p,r)&&(n[r]=p[r]);return n.e=function(e,t){"ready"===_&&i("prepare"),M++,p.e(e,function(){function r(){M--,"prepare"===_&&(O[e]||s(e),0===M&&0===k&&c())}try{t.call(null,n)}finally{r()}})},n}function o(e){var t={_acceptedDependencies:{},_declinedDependencies:{},_selfAccepted:!1,_selfDeclined:!1,_disposeHandlers:[],active:!0,accept:function(e,n){if("undefined"==typeof e)t._selfAccepted=!0;else if("function"==typeof e)t._selfAccepted=e;else if("object"==typeof e)for(var r=0;r=0&&t._disposeHandlers.splice(n,1)},check:u,apply:f,status:function(e){return e?void x.push(e):_},addStatusHandler:function(e){x.push(e)},removeStatusHandler:function(e){var t=x.indexOf(e);t>=0&&x.splice(t,1)},data:b[e]};return t}function i(e){_=e;for(var t=0;t0;){var i=r.pop(),e=E[i];if(e&&!e.hot._selfAccepted){if(e.hot._selfDeclined)return new Error("Aborted because of self decline: "+i);if(0===i)return;for(var a=0;a=0||(l.hot._acceptedDependencies[i]?(n[u]||(n[u]=[]),o(n[u],[i])):(delete n[u],t.push(u),r.push(u)))}}}return[t,n]}function o(e,t){for(var n=0;n0;){var f=x.pop(),k=E[f];if(k){for(var M={},O=k.hot._disposeHandlers,j=0;j=0&&P.parents.splice(H,1)}}}}for(var f in u)if(Object.prototype.hasOwnProperty.call(u,f))for(var k=E[f],R=u[f],j=0;j=0&&k.children.splice(H,1)}i("apply"),y=g;for(var f in s)Object.prototype.hasOwnProperty.call(s,f)&&(e[f]=s[f]);var I=null;for(var f in u)if(Object.prototype.hasOwnProperty.call(u,f)){for(var k=E[f],R=u[f],S=[],m=0;m=0||S.push(A)}for(var m=0;m0){for(var s,p=0;s=l[p++];)if(i&s.user==e){if(s.video==t){u=!1,o=!1,r(s);break}}else if(s.video==t){u=!1,r(s);break}a=!0}(!a||u||i&o)&&(c.timestapArr.push({video:t,user:e,position:-1,date:new Date}),n.set(f,c.timestapArr),r(c.timestapArr[0]))}function u(e,t,r){a(e,t,function(e){e.position=r,e.date=new Date}),n.set(f,c.timestapArr)}function l(){w&&_(v),$(i).find(".finale-panel-wrapper").show().fadeIn(),setTimeout(function(){h&&$(i).find(".finale-panel-wrapper").fadeOut("slow")},1e4),$(document).on("click",".jump-to-play-btn",function(e){if(w)_(0);else{var t=$(e.target).attr("data-timestap");_(t)}$(i).find(".finale-panel").hide(),e.preventDefault()}),e.onTime(function(e){v=e.position}),e.onComplete(function(t){!function(){var t=e.getDuration();return m(t)}()}),$(window).bind("beforeunload",function(){u(d,p,v),function(){var t=e.getDuration();return y(v,t)}()})}if(!n.enabled)return void console.log('Local storage is not supported by your browser. Please disable "Private Mode", or upgrade to a modern browser.');var s={jwplayerID:null,videoGUID:"",position:-1,userID:"anonymous",authed:!1,autoJump:!0,lockSeek:!1,onBeforePlay:function(){},onBeforeClose:function(){},onCompletePlay:function(){},onUpdateAll:function(){}},c=$.extend(s,o),f="finale_store";c.timestapArr=[];var p=c.videoGUID,d=(c.jwplayerID,c.userID),h=!1,v=c.position,g=c.onBeforePlay,m=c.onCompletePlay,y=c.onBeforeClose,b={},w=c.autoJump,x=c.authed,_=(c.lockSeek,function(n){"hls"==e.getPlaylistItem().sources[0].type?(e.play(),setTimeout(function(){t().seek(n)},1e3)):"rtmp"==e.getPlaylistItem().sources[0].type?(e.once("play",function(t){e.seek(n)}),e.play()):e.seek(n)}),k=function(e){$(".finale-panel-wrapper").length&&$(".finale-panel-wrapper").remove(),b=r({position:e,timestap:e,autoJump:w}),$(b).appendTo(i),h=!0},M=function(e){k(e),function(){return g(e)}()};if(!x)return void 0;if("undefined"!=typeof v&&v>-1)i!==window&&M(v);else if(-1!=v)return void 0;e.onReady(function(){e.getConfig().skipButton?e.once("play",function(e){l()}):l()}),e.onMeta(function(e){e.duration||e.metadata&&e.metadata.duration}),this.resize=function(e,t){$(".finale-panel-wrapper").css("height",t)}})}.apply(t,r),!(void 0!==o&&(e.exports=o))},function(e,t){e.exports=jwplayer},,function(e,t,n){e.exports=n(4)["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}function i(){var e=new u.HandlebarsEnvironment;return d.extend(e,u),e.SafeString=s["default"],e.Exception=f["default"],e.Utils=d,e.escapeExpression=d.escapeExpression,e.VM=v,e.template=function(t){return v.template(t,e)},e}t.__esModule=!0;var a=n(5),u=o(a),l=n(19),s=r(l),c=n(7),f=r(c),p=n(6),d=o(p),h=n(20),v=o(h),g=n(21),m=r(g),y=i();y.create=i,m["default"](y),y["default"]=y,t["default"]=y,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,n){this.helpers=e||{},this.partials=t||{},this.decorators=n||{},l.registerDefaultHelpers(this),s.registerDefaultDecorators(this)}t.__esModule=!0,t.HandlebarsEnvironment=o;var i=n(6),a=n(7),u=r(a),l=n(8),s=n(16),c=n(18),f=r(c),p="4.0.2";t.VERSION=p;var d=7;t.COMPILER_REVISION=d;var h={1:"<= 1.0.rc.2",2:"== 1.0.0-rc.3",3:"== 1.0.0-rc.4",4:"== 1.x.x",5:"== 2.0.0-alpha.x",6:">= 2.0.0-beta.1",7:">= 4.0.0"};t.REVISION_CHANGES=h;var v="[object Object]";o.prototype={constructor:o,logger:f["default"],log:f["default"].log,registerHelper:function(e,t){if(i.toString.call(e)===v){if(t)throw new u["default"]("Arg not supported with multiple helpers");i.extend(this.helpers,e)}else this.helpers[e]=t},unregisterHelper:function(e){delete this.helpers[e]},registerPartial:function(e,t){if(i.toString.call(e)===v)i.extend(this.partials,e);else{if("undefined"==typeof t)throw new u["default"]("Attempting to register a partial as undefined");this.partials[e]=t}},unregisterPartial:function(e){delete this.partials[e]},registerDecorator:function(e,t){if(i.toString.call(e)===v){if(t)throw new u["default"]("Arg not supported with multiple decorators");i.extend(this.decorators,e)}else this.decorators[e]=t},unregisterDecorator:function(e){delete this.decorators[e]}};var g=f["default"].log;t.log=g,t.createFrame=i.createFrame,t.logger=f["default"]},function(e,t){"use strict";function n(e){return c[e]}function r(e){for(var t=1;tn;n++)if(e[n]===t)return n;return-1}function i(e){if("string"!=typeof e){if(e&&e.toHTML)return e.toHTML();if(null==e)return"";if(!e)return e+"";e=""+e}return p.test(e)?e.replace(f,n):e}function a(e){return e||0===e?v(e)&&0===e.length?!0:!1:!0}function u(e){var t=r({},e);return t._parent=e,t}function l(e,t){return e.path=t,e}function s(e,t){return(e?e+".":"")+t}t.__esModule=!0,t.extend=r,t.indexOf=o,t.escapeExpression=i,t.isEmpty=a,t.createFrame=u,t.blockParams=l,t.appendContextPath=s;var c={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`","=":"="},f=/[&<>"'`=]/g,p=/[&<>"'`=]/,d=Object.prototype.toString;t.toString=d;var h=function(e){return"function"==typeof e};h(/x/)&&(t.isFunction=h=function(e){return"function"==typeof e&&"[object Function]"===d.call(e)}),t.isFunction=h;var v=Array.isArray||function(e){return e&&"object"==typeof e?"[object Array]"===d.call(e):!1};t.isArray=v},function(e,t){"use strict";function n(e,t){var o=t&&t.loc,i=void 0,a=void 0;o&&(i=o.start.line,a=o.start.column,e+=" - "+i+":"+a);for(var u=Error.prototype.constructor.call(this,e),l=0;l0?(n.ids&&(n.ids=[n.name]),e.helpers.each(t,n)):o(this);if(n.data&&n.ids){var a=r.createFrame(n.data);a.contextPath=r.appendContextPath(n.data.contextPath,n.name),n={data:a}}return i(t,n)})},e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0;var o=n(6),i=n(7),a=r(i);t["default"]=function(e){e.registerHelper("each",function(e,t){function n(t,n,i){null!=e[t]&&(s&&(s.key=t,s.index=n,s.first=0===n,s.last=!!i,c&&(s.contextPath=c+t)),l+=r(e[t],{data:s,blockParams:o.blockParams([e[t],t],[c+t,null])}))}if(!t)throw new a["default"]("Must pass iterator to #each");var r=t.fn,i=t.inverse,u=0,l="",s=void 0,c=void 0;if(t.data&&t.ids&&(c=o.appendContextPath(t.data.contextPath,t.ids[0])+"."),o.isFunction(e)&&(e=e.call(this)),t.data&&(s=o.createFrame(t.data)),e&&"object"==typeof e)if(o.isArray(e))for(var f=e.length;f>u;u++)n(u,u,u===e.length-1);else{var p=void 0;for(var d in e)e.hasOwnProperty(d)&&(void 0!==p&&n(p,u-1),p=d,u++);void 0!==p&&n(p,u-1,!0)}return 0===u&&(l=i(this)),l})},e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0;var o=n(7),i=r(o);t["default"]=function(e){e.registerHelper("helperMissing",function(){if(1===arguments.length)return void 0;throw new i["default"]('Missing helper: "'+arguments[arguments.length-1].name+'"')})},e.exports=t["default"]},function(e,t,n){"use strict";t.__esModule=!0;var r=n(6);t["default"]=function(e){e.registerHelper("if",function(e,t){return r.isFunction(e)&&(e=e.call(this)),!t.hash.includeZero&&!e||r.isEmpty(e)?t.inverse(this):t.fn(this)}),e.registerHelper("unless",function(t,n){return e.helpers["if"].call(this,t,{fn:n.inverse,inverse:n.fn,hash:n.hash})})},e.exports=t["default"]},function(e,t){"use strict";t.__esModule=!0,t["default"]=function(e){e.registerHelper("log",function(){for(var t=[void 0],n=arguments[arguments.length-1],r=0;r=0?t:parseInt(e,10)}return e},log:function(e){if(e=n.lookupLevel(e),"undefined"!=typeof console&&n.lookupLevel(n.level)<=e){var t=n.methodMap[e];console[t]||(t="log");for(var r=arguments.length,o=Array(r>1?r-1:0),i=1;r>i;i++)o[i-1]=arguments[i];console[t].apply(console,o)}}};t["default"]=n,e.exports=t["default"]},function(e,t){"use strict";function n(e){this.string=e}t.__esModule=!0,n.prototype.toString=n.prototype.toHTML=function(){return""+this.string},t["default"]=n,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}function i(e){var t=e&&e[0]||1,n=m.COMPILER_REVISION;if(t!==n){if(n>t){var r=m.REVISION_CHANGES[n],o=m.REVISION_CHANGES[t];throw new g["default"]("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+r+") or downgrade your runtime to an older version ("+o+").")}throw new g["default"]("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+e[1]+").")}}function a(e,t){function n(n,r,o){o.hash&&(r=h.extend({},r,o.hash),o.ids&&(o.ids[0]=!0)),n=t.VM.resolvePartial.call(this,n,r,o);var i=t.VM.invokePartial.call(this,n,r,o);if(null==i&&t.compile&&(o.partials[o.name]=t.compile(n,e.compilerOptions,t),i=o.partials[o.name](r,o)),null!=i){if(o.indent){for(var a=i.split("\n"),u=0,l=a.length;l>u&&(a[u]||u+1!==l);u++)a[u]=o.indent+a[u];i=a.join("\n")}return i}throw new g["default"]("The partial "+o.name+" could not be compiled when running in runtime-only mode")}function r(t){function n(t){return""+e.main(o,t,o.helpers,o.partials,a,l,u)}var i=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],a=i.data;r._setup(i),!i.partial&&e.useData&&(a=f(t,a));var u=void 0,l=e.useBlockParams?[]:void 0;return e.useDepths&&(u=i.depths?t!==i.depths[0]?[t].concat(i.depths):i.depths:[t]),(n=p(e.main,n,o,i.depths||[],a,l))(t,i)}if(!t)throw new g["default"]("No environment passed to template");if(!e||!e.main)throw new g["default"]("Unknown template object: "+typeof e);e.main.decorator=e.main_d,t.VM.checkRevision(e.compiler);var o={strict:function(e,t){if(!(t in e))throw new g["default"]('"'+t+'" not defined in '+e);return e[t]},lookup:function(e,t){for(var n=e.length,r=0;n>r;r++)if(e[r]&&null!=e[r][t])return e[r][t]},lambda:function(e,t){return"function"==typeof e?e.call(t):e},escapeExpression:h.escapeExpression,invokePartial:n,fn:function(t){var n=e[t];return n.decorator=e[t+"_d"],n},programs:[],program:function(e,t,n,r,o){var i=this.programs[e],a=this.fn(e);return t||o||r||n?i=u(this,e,a,t,n,r,o):i||(i=this.programs[e]=u(this,e,a)),i},data:function(e,t){for(;e&&t--;)e=e._parent;return e},merge:function(e,t){var n=e||t;return e&&t&&e!==t&&(n=h.extend({},t,e)),n},noop:t.VM.noop,compilerInfo:e.compiler};return r.isTop=!0,r._setup=function(n){n.partial?(o.helpers=n.helpers,o.partials=n.partials,o.decorators=n.decorators):(o.helpers=o.merge(n.helpers,t.helpers),e.usePartial&&(o.partials=o.merge(n.partials,t.partials)),(e.usePartial||e.useDecorators)&&(o.decorators=o.merge(n.decorators,t.decorators)))},r._child=function(t,n,r,i){if(e.useBlockParams&&!r)throw new g["default"]("must pass block params");if(e.useDepths&&!i)throw new g["default"]("must pass parent depths");return u(o,t,e[t],n,0,r,i)},r}function u(e,t,n,r,o,i,a){function u(t){var o=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],u=a;return a&&t!==a[0]&&(u=[t].concat(a)),n(e,t,e.helpers,e.partials,o.data||r,i&&[o.blockParams].concat(i),u)}return u=p(n,u,e,a,r,i),u.program=t,u.depth=a?a.length:0,u.blockParams=o||0,u}function l(e,t,n){return e?e.call||n.name||(n.name=e,e=n.partials[e]):e="@partial-block"===n.name?n.data["partial-block"]:n.partials[n.name],e}function s(e,t,n){n.partial=!0,n.ids&&(n.data.contextPath=n.ids[0]||n.data.contextPath);var r=void 0;if(n.fn&&n.fn!==c&&(r=n.data["partial-block"]=n.fn,r.partials&&(n.partials=h.extend({},n.partials,r.partials))),void 0===e&&r&&(e=r),void 0===e)throw new g["default"]("The partial "+n.name+" could not be found");return e instanceof Function?e(t,n):void 0}function c(){return""}function f(e,t){return t&&"root"in t||(t=t?m.createFrame(t):{},t.root=e),t}function p(e,t,n,r,o,i){if(e.decorator){var a={};t=e.decorator(t,a,n,r&&r[0],o,i,r),h.extend(t,a)}return t}t.__esModule=!0,t.checkRevision=i,t.template=a,t.wrapProgram=u,t.resolvePartial=l,t.invokePartial=s,t.noop=c;var d=n(6),h=o(d),v=n(7),g=r(v),m=n(5)},function(e,t){(function(n){"use strict";t.__esModule=!0,t["default"]=function(e){var t="undefined"!=typeof n?n:window,r=t.Handlebars;e.noConflict=function(){t.Handlebars===e&&(t.Handlebars=r)}},e.exports=t["default"]}).call(t,function(){return this}())},,,function(e,t){e.exports=function(){var e=[];return e.toString=function(){for(var e=[],t=0;tdocument.w=window'),h.close(),d=h.w.frames[0].document,l=d.createElement("div")}catch(v){l=c.createElement("div"),d=c.body}var g=function(e){return function(){var t=Array.prototype.slice.call(arguments,0);t.unshift(l),d.appendChild(l),l.addBehavior("#default#userData"),l.load(f);var n=e.apply(s,t);return d.removeChild(l),n}},m=new RegExp("[!\"#$%&'()*+,/\\\\:;<=>?@[\\]^`{|}~]","g");s.set=g(function(e,t,n){return t=u(t),void 0===n?s.remove(t):(e.setAttribute(t,s.serialize(n)),e.save(f),n)}),s.get=g(function(e,t,n){t=u(t);var r=s.deserialize(e.getAttribute(t));return void 0===r?n:r}),s.remove=g(function(e,t){t=u(t),e.removeAttribute(t),e.save(f)}),s.clear=g(function(e){var t=e.XMLDocument.documentElement.attributes;e.load(f);for(var n,r=0;n=t[r];r++)e.removeAttribute(n.name);e.save(f)}),s.getAll=function(e){var t={};return s.forEach(function(e,n){t[e]=n}),t},s.forEach=g(function(e,t){for(var n,r=e.XMLDocument.documentElement.attributes,o=0;n=r[o];++o)t(n.name,s.deserialize(e.getAttribute(n.name)))})}try{var y="__storejs__";s.set(y,y),s.get(y)!=y&&(s.disabled=!0),s.remove(y)}catch(v){s.disabled=!0}s.enabled=!s.disabled,"undefined"!=typeof e&&e.exports&&this.module!==e?e.exports=s:(r=s,o="function"==typeof r?r.call(t,n,t,e):r,!(void 0!==o&&(e.exports=o)))}(Function("return this")())}).call(t,n(34)(e))},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children=[],e.webpackPolyfill=1),e}},function(e,t,n){var r=n(3);e.exports=(r["default"]||r).template({compiler:[7,">= 4.0.0"],main:function(e,t,r,o,i){return'
\n
\n

上次观看到 '+e.escapeExpression(n(29).call(t,null!=t?t.position:t,{name:"digits",hash:{},data:i}))+" \n

\n
\n
\n "},useData:!0})},function(e,t,n){var r=n(37);"string"==typeof r&&(r=[[e.id,r,""]]);var o=n(25)(r,{});r.locals&&(e.exports=r.locals),r.locals||e.hot.accept(37,function(){var t=n(37);"string"==typeof t&&(t=[[e.id,t,""]]),o(t)}),e.hot.dispose(function(){o()})},function(e,t,n){t=e.exports=n(24)(),t.push([e.id,".finale-panel-wrapper{position:relative}.finale-panel{position:absolute;left:0;bottom:25px;background:#2b2a2a;width:135px}.finale-panel p{font-size:9pt;margin:0;line-height:9pt;padding:10px;color:#ebc206}.finale-panel .jump-to-play-btn{padding:5px 10px;background:#151514;color:#b8b3b3;margin-left:10px}",""])}]); //# sourceMappingURL=finalehelper.js.map