/* VimeoPlayer - v2.4.13 - 2014-07-24 */
(function(p,y,ca){var Ga,Ha,Z,ha,ua,na,ya,oa,Ja,Qa,Sa,Ta,Oa,Pa,Ka,Wa,Xa,Ya,Za,$a,La,Ma,la,za,fa,va,ab;(function(c){(function(){for(var b=["webkit","moz"],a=0;a<b.length&&!p.requestAnimationFrame;++a){var c=b[a];p.requestAnimationFrame=p[c+"RequestAnimationFrame"];p.cancelAnimationFrame=p[c+"CancelAnimationFrame"]||p[c+"CancelRequestAnimationFrame"]}!/iP(ad|hone|od).*OS 6/.test(p.navigator.userAgent)&&p.requestAnimationFrame&&p.cancelAnimationFrame||(p.requestAnimationFrame=function(a){return setTimeout(a,
0)},p.cancelAnimationFrame=clearTimeout)})();!Object.defineProperty&&Object.prototype.__defineGetter__&&(Object.defineProperty=function(b,a,c){"get"in c&&b.__defineGetter__(a,c.get);"set"in c&&b.__defineSetter__(a,c.set);c.get||c.set||(b[a]=c.value)});!Object.defineProperties&&Object.defineProperty&&(Object.defineProperties=function(b,a){for(var c in a)try{Object.defineProperty(b,c,a[c])}catch(d){"'enumerable' attribute on the property descriptor cannot be set to 'true' on this object"===d.message&&
(a[c].enumerable=!1,Object.defineProperty(b,c,a[c]))}return b});!Object.create&&Object.defineProperty&&(Object.create=function(b,a){function d(){}if("object"!==typeof b&&"function"!==typeof b)throw new TypeError("Object prototype may only be an Object or null");d.prototype=b;var f=new d;f.__proto__=b;a!==c&&Object.defineProperties(f,a);return f});Object.keys||(Object.keys=function(b){if("object"!==typeof b&&"function"!==typeof b||null===b)throw new TypeError("Object.keys called on a non-object");
var a=[],c;for(c in b)b.hasOwnProperty(c)&&a.push(c);return a});Array.prototype.indexOf||(Array.prototype.indexOf=function(b){for(var a=0,c=this.length;a<c;a++)if(a in this&&this[a]===b)return a;return-1});"classList"in y.documentElement||!Object.defineProperty||"undefined"===typeof HTMLElement||Object.defineProperty(HTMLElement.prototype,"classList",{get:function(){function b(b){return function(c){var d=a.className.split(/\s+/),e=d.indexOf(c);b(d,e,c);a.className=d.join(" ")}}var a=this,c={add:b(function(a,
b,c){return~b||a.push(c)}),remove:b(function(a,b){return~b&&a.splice(b,1)}),toggle:b(function(a,b,c){return~b?a.splice(b,1):a.push(c)}),contains:function(b){return!!~a.className.split(/\s+/).indexOf(b)},item:function(b){return a.className.split(/\s+/)[b]||null}};Object.defineProperty(c,"length",{get:function(){return a.className.split(/\s+/).length}});return c}})})();(function(c,b,a){function d(a){var b=null;"VIDEO"===a.tagName?b=a:(a=a.getElementsByTagName("video"),a[0]&&(b=a[0]));return b}function f(a){var b=
d(a);if(b&&b.webkitEnterFullscreen){try{b.readyState<b.HAVE_METADATA?(b.addEventListener("loadedmetadata",function K(){b.removeEventListener("loadedmetadata",K,!1);b.webkitEnterFullscreen();w=!!b.getAttribute("controls")},!1),b.load()):(b.webkitEnterFullscreen(),w=!!b.getAttribute("controls")),A=b}catch(c){return F("not_supported",a)}return!0}return F(t.request===ca?"not_supported":"not_enabled",a)}function m(){H.element||(s(),l())}function l(){a&&"webkitfullscreenchange"===t.change&&c.removeEventListener("resize",
m,!1)}var r="undefined"!==typeof Element&&"ALLOW_KEYBOARD_INPUT"in Element,q=/i(Pad|Phone|Pod)/.test(navigator.userAgent)&&7<=parseInt(navigator.userAgent.replace(/^.*OS (\d+)_(\d+).*$/,"$1.$2"),10),t=function(){var a=b.createElement("video"),c={request:["requestFullscreen","webkitRequestFullscreen","webkitRequestFullScreen","mozRequestFullScreen","msRequestFullscreen"],exit:["exitFullscreen","webkitCancelFullScreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],enabled:["fullscreenEnabled",
"webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],element:["fullscreenElement","webkitFullscreenElement","webkitCurrentFullScreenElement","mozFullScreenElement","msFullscreenElement"],change:["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],error:["fullscreenerror","webkitfullscreenerror","mozfullscreenerror","MSFullscreenError"]},d={},e;for(e in c)for(var g=0,f=c[e].length;g<f;g++)if(c[e][g]in a||c[e][g]in b||"on"+c[e][g].toLowerCase()in
b){d[e]=c[e][g];break}return d}(),A=null,w=null,g=function(){},C=[],E=!1;-1<navigator.userAgent.indexOf("Android")&&-1<navigator.userAgent.indexOf("Chrome")&&(E=parseInt(navigator.userAgent.replace(/^.*Chrome\/(\d+).*$/,"$1"),10)||!0);var G=function(a){var b=C[C.length-1];if(a!==b.element&&a!==A||!b.hasEntered){"VIDEO"===a.tagName&&(A=a);if(1===C.length)H.onenter(H.element);b.enter.call(b.element,a||b.element);b.hasEntered=!0}},s=function(){!A||w||q||(A.setAttribute("controls","controls"),A.removeAttribute("controls"));
w=A=null;var a=C.pop();a&&(a.exit.call(a.element),H.element||(C.forEach(function(a){a.exit.call(a.element)}),C=[],H.onexit()))},F=function(a,b){if(0<C.length){var c=C.pop();b=b||c.element;c.error.call(b,a);H.onerror(b,a)}},H={request:function(c,d,e,v){c=c||b.body;C.push({element:c,enter:d||g,exit:e||g,error:v||g});if(t.request===ca||a&&!1===b[t.enabled]||!1!==E&&32>E)return f(c);if(a&&t.enabled===ca)t.enabled="webkitFullscreenEnabled",c[t.request](),setTimeout(function(){b[t.element]?b[t.enabled]=
!0:(b[t.enabled]=!1,f(c))},250);else try{if(/5\.1[\.\d]* Safari/.test(navigator.userAgent))c[t.request]();else c[t.request](r&&Element.ALLOW_KEYBOARD_INPUT);setTimeout(function(){b[t.element]||F(a?"not_enabled":"not_allowed",c)},100)}catch(w){F("not_enabled",c)}},exit:function(){l();b[t.exit]()},toggle:function(a,b,c,d){H.element?H.exit():H.request(a,b,c,d)},videoEnabled:function(a){if(H.enabled)return!0;a=a||b.body;return(a=d(a))&&a.webkitSupportsFullscreen!==ca?a.readyState<a.HAVE_METADATA?"maybe":
a.webkitSupportsFullscreen:!1},onenter:g,onexit:g,onchange:g,onerror:g};try{Object.defineProperties(H,{element:{enumerable:!0,get:function(){return A&&A.webkitDisplayingFullscreen?A:b[t.element]||null}},enabled:{enumerable:!0,get:function(){return"webkitCancelFullScreen"!==t.exit||a?!1!==E&&32>E?!1:b[t.enabled]||!1:!0}}})}catch(p){H.element=null,H.enabled=!1}t.change&&b.addEventListener(t.change,function(b){H.onchange(H.element);H.element?(b=C[C.length-2])&&b.element===H.element?s():(G(H.element),
a&&"webkitfullscreenchange"===t.change&&c.addEventListener("resize",m,!1)):s()},!1);b.addEventListener("webkitbeginfullscreen",function(a){C.push({element:a.srcElement,enter:g,exit:g,error:g});H.onchange(a.srcElement);G(a.srcElement)},!0);b.addEventListener("webkitendfullscreen",function(a){H.onchange(a.srcElement);s(a.srcElement)},!0);t.error&&b.addEventListener(t.error,function(a){F("not_allowed")},!1);c.BigScreen=H})(p,y,self!==top);var T=function(){function c(){var b=arguments;if(1===b.length&&
b[0]instanceof c)return b=b[0],this.red=b.red,this.green=b.green,this.blue=b.blue,this.alpha=b.alpha,this.hue=b.hue,this.saturation=b.saturation,this.lightness=b.lightness,this;if(1===b.length){if("string"===typeof b[0]&&0<=b[0].indexOf("rgb")){b=/rgba?\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})(,\s*([\d\.]+))?\)/.exec(b[0]);if(!b)throw Error("Invalid rgb value");this.rgba={red:parseInt(b[1],10),green:parseInt(b[2],10),blue:parseInt(b[3],10),alpha:parseFloat(b[5])||1}}else{var a=b[0]+"",a=a.replace("#",
"");if("string"!==typeof a||3!==a.length&&6!==a.length||isNaN(parseInt(a,16)))throw Error("Invalid hex value");this.hex=b[0]}return this}if(3===b.length||4===b.length){for(a=0;3>a;a++)if(isNaN(parseInt(b[a],10))||0>parseInt(b[a],10)||255<parseInt(b[a],10))throw Error("Invalid rgb value");if(b[3]&&0>parseFloat(b[3])||1<parseFloat(b[3]))throw Error("Invalid alpha value");this.rgba={red:b[0],green:b[1],blue:b[2],alpha:parseFloat(b[3])||1};return this}throw Error("Invalid color");}c.prototype={get complement(){var b=
this.clone();b.rgb={red:255-this.red,green:255-this.green,blue:255-this.blue};return b},get hex(){return c.rgbToHex(this.red,this.green,this.blue)},set hex(b){this.rgba=c.hexToRgb(b);return this},get hsl(){return"hsl("+this.hue+","+this.saturation+"%,"+Math.round(this.lightness)+"%)"},set hsl(b){this.hue=b.hue;this.saturation=b.saturation;this.lightness=b.lightness;b=c.hslToRgb(b.hue,b.saturation,b.lightness);this.red=b.red;this.green=b.green;this.blue=b.blue;this.alpha=b.alpha;return this},get luminance(){function b(a){return 0.03928>=
a?a/12.92:Math.pow((a+0.055)/1.055,2.4)}var a=b(this.red/255),c=b(this.green/255),d=b(this.blue/255);return 0.2126*a+0.7152*c+0.0722*d},get rgb(){return"rgb("+this.red+","+this.green+","+this.blue+")"},set rgb(b){this.rgba=b;return this},get rgba(){return"rgba("+this.red+","+this.green+","+this.blue+","+this.alpha+")"},set rgba(b){this.red=b.red;this.green=b.green;this.blue=b.blue;this.alpha=b.alpha||1;b=c.rgbToHsl(b.red,b.green,b.blue);this.hue=b.hue;this.saturation=b.saturation;this.lightness=b.lightness;
return this},get yiq(){return(299*this.red+587*this.green+114*this.blue)/1E3},clone:function(){return new c(this)},lighten:function(b,a,c){this.hsl={hue:this.hue,saturation:this.saturation,lightness:this.lightness+b};if(a&&c)for(b=c.contrast(this).ratio;b<a&&!(this.lighten(5),b=c.contrast(this).ratio,100<=this.lightness););return this},darken:function(b,a,c){this.hsl={hue:this.hue,saturation:this.saturation,lightness:this.lightness-b};if(a&&c)for(b=c.contrast(this).ratio;b<a&&!(this.darken(5),b=c.contrast(this).ratio,
0>=this.lightness););return this},overlayOn:function(b){if(1<=this.alpha)return this;var a=this.clone();a.rgba={red:a.red*this.alpha+b.red*b.alpha*(1-this.alpha),green:a.green*this.alpha+b.green*b.alpha*(1-this.alpha),blue:a.blue*this.alpha+b.blue*b.alpha*(1-this.alpha),alpha:a.alpha+b.alpha*(1-this.alpha)};return a},contrast:function(b){var a=this.alpha;if(1<=a){1>b.alpha&&(b=b.overlayOn(this));var d=this.luminance+0.05;b=b.luminance+0.05;var f=d/b;b>d&&(f=1/f);f=Math.round(10*f)/10;return{ratio:f,
error:0,min:f,max:f}}var f=this.overlayOn(c.white).contrast(b).ratio,d=this.overlayOn(c.black).contrast(b).ratio,f=Math.max(f,d),m={red:Math.min(Math.max(0,(b.red-this.red*a)/(1-a)),255),green:Math.min(Math.max(0,(b.green-this.green*a)/(1-a)),255),blue:Math.min(Math.max(0,(b.blue-this.blue*a)/(1-a)),255)},a=this.clone();a.rgb=m;b=this.overlayOn(a).contrast(b).ratio;return{ratio:Math.round((b+f)/2*10)/10,error:Math.round((f-b)/2*10)/10,min:b,max:f,closest:a,farthest:d===f?c.white:c.black}},wcagAACompliant:function(b){return 4.5<=
this.contrast(b).ratio},wcagAAACompliant:function(b){return 7<=this.contrast(b).ratio},yiqContrastColor:function(){return 120<=this.yiq?new c(0,0,0):new c(255,255,255)}};c.hexToRgb=function(b){b+="";if(3===b.length||4===b.length){if(b=/^#?([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])$/i.exec(b))b[1]+=b[1],b[2]+=b[2],b[3]+=b[3]}else b=/^#?([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})$/i.exec(b);return b?{red:parseInt(b[1],16),green:parseInt(b[2],16),blue:parseInt(b[3],16),alpha:1}:null};c.rgbToHex=function(b,
a,c){return"#"+(16777216+(Math.round(b)<<16)+(Math.round(a)<<8)+Math.round(c)).toString(16).slice(1)};c.rgbToHsl=function(b,a,c){b/=255;a/=255;c/=255;var d=Math.max(b,a,c),m=Math.min(b,a,c),l=(d+m)/2,r=l,q=l;if(d===m)return{hue:0,saturation:0,lightness:100*q};var t=d-m,r=0.5<q?t/(2-d-m):t/(d+m);d===b?l=(a-c)/t+(a<c?6:0):d===a?l=(c-b)/t+2:d===c&&(l=(b-a)/t+4);return{hue:Math.round(l/6*360),saturation:Math.round(100*r),lightness:Math.round(100*q)}};c.hslToRgb=function(b,a,c){function d(a,b,c){0>c&&
(c+=1);1<c&&(c-=1);return 1>6*c?a+6*(b-a)*c:1>2*c?b:2>3*c?a+6*(b-a)*(2/3-c):a}b/=360;a/=100;c/=100;if(0===a)return{red:Math.floor(255*c),green:Math.floor(255*c),blue:Math.floor(255*c)};a=0.5>c?c*(1+a):c+a-a*c;c=2*c-a;return{red:Math.floor(255*d(c,a,b+1/3)),green:Math.floor(255*d(c,a,b)),blue:Math.floor(255*d(c,a,b-1/3))}};c.hslToHex=function(b,a,d){b=c.hslToRgb(b,a,d);return c.rgbToHex(b.red,b.green,b.blue)};c.white=new c("fff");c.black=new c("000");return c}(),Aa=function(){return{make:function(c){c=
c||{};var b={};c.on=function(a,d){a=[].concat(a);for(var f=0,m=a.length;f<m;f++){var l=a[f];l&&(b[l]||(b[l]=[]),b[l].push(d))}return c};c.once=function(a,b){function d(){b.apply(c.off(a,d),arguments)}d.handler=b;return c.on(a,d)};c.off=function(a,d){a=[].concat(a);for(var f=0,m=a.length;f<m;f++){var l=a[f];if(l&&l in b){var r=b[l].indexOf(d);if(-1===r){for(var q=0,t=b[l].length;q<t;q++)if(b[l][q].handler===d){r=f;break}if(-1===r)break}b[l].splice(r,1)}}return c};c.fire=function(a){if(!a)return c;
if(a in b)for(var d=b[a].slice(0),f=0,m=d.length;f<m;f++)d[f].apply(c,d.slice.call(arguments,1));return c};return c}}}();(function(){function c(a,b,d){if("_root"==b)return d;if(a!==d){var e;l||(a.matches&&(l=a.matches),a.webkitMatchesSelector&&(l=a.webkitMatchesSelector),a.mozMatchesSelector&&(l=a.mozMatchesSelector),a.msMatchesSelector&&(l=a.msMatchesSelector),a.oMatchesSelector&&(l=a.oMatchesSelector),l||(l=m.matchesSelector));e=l;if(e.call(a,b))return a;if(a.parentNode)return r++,c(a.parentNode,
b,d)}}function b(a,b,c,d){t[a.id]||(t[a.id]={});t[a.id][b]||(t[a.id][b]={});t[a.id][b][c]||(t[a.id][b][c]=[]);t[a.id][b][c].push(d)}function a(a,b,c,d){if(t[a.id])if(!b)for(var e in t[a.id])t[a.id].hasOwnProperty(e)&&(t[a.id][e]={});else if(!d&&!c)t[a.id][b]={};else if(!d)delete t[a.id][b][c];else if(t[a.id][b][c])for(e=0;e<t[a.id][b][c].length;e++)if(t[a.id][b][c][e]===d){t[a.id][b][c].splice(e,1);break}}function d(a,b,e){if(t[a][e]){var f=b.target||b.srcElement,l,s,q={},H=s=0;r=0;for(l in t[a][e])t[a][e].hasOwnProperty(l)&&
(s=c(f,l,A[a].element))&&m.matchesEvent(e,A[a].element,s,"_root"==l,b)&&(r++,t[a][e][l].match=s,q[r]=t[a][e][l]);b.stopPropagation=function(){b.cancelBubble=!0};for(s=0;s<=r;s++)if(q[s])for(H=0;H<q[s].length;H++){if(!1===q[s][H].call(q[s].match,b)){m.cancel(b);return}if(b.cancelBubble)return}}}function f(c,g,f,l){function q(a){return function(b){d(s,b,a)}}if(this.element){c instanceof Array||(c=[c]);f||"function"!=typeof g||(f=g,g="_root");var s=this.id,r;for(r=0;r<c.length;r++)l?a(this,c[r],g,f):
(t[s]&&t[s][c[r]]||m.addEvent(this,c[r],q(c[r])),b(this,c[r],g,f));return this}}function m(a,b){if(!(this instanceof m)){for(var c in A)if(A[c].element===a)return A[c];q++;A[q]=new m(a,q);return A[q]}this.element=a;this.id=b}var l,r=0,q=0,t={},A={};m.prototype.on=function(a,b,c){return f.call(this,a,b,c)};m.prototype.off=function(a,b,c){return f.call(this,a,b,c,!0)};m.matchesSelector=function(){};m.cancel=function(a){a.preventDefault();a.stopPropagation()};m.addEvent=function(a,b,c){a.element.addEventListener(b,
c,"blur"==b||"focus"==b)};m.matchesEvent=function(){return!0};p.Gator=m})();(function(c){var b=c.addEvent,a="onmspointerenter"in y,d="onmspointerleave"in y;c.addEvent=function(c,m,l){"mouseenter"===m&&(m="mouseover");"mouseleave"===m&&(m="mouseout");"MSPointerEnter"!==m||a||(m="MSPointerOver");"MSPointerLeave"!==m||d||(m="MSPointerOut");b(c,m,l)};c.matchesEvent=function(b,c,l,r,q){return"mouseenter"===b||"mouseleave"===b||!a&&"MSPointerEnter"===b||!d&&"MSPointerLeave"===b?(b=q.relatedTarget?r&&c!==
l?!1:l===q.relatedTarget?!1:l.contains(q.relatedTarget)?!1:!0:!0,b):!0}})(Gator);(function(c,b){var a=c.addEvent;c.addEvent=function(b,c,d){"transitionend"===c&&(a(b,"webkitTransitionEnd",d),a(b,"otransitionend",d));a(b,c,d)}})(Gator,y);(function(c,b,a){function d(a,b,c){a.addEventListener?a.addEventListener(b,c,!1):a.attachEvent("on"+b,c)}function f(a){if("keypress"==a.type){var b=String.fromCharCode(a.which);a.shiftKey||(b=b.toLowerCase());return b}return E[a.which]?E[a.which]:G[a.which]?G[a.which]:
String.fromCharCode(a.which).toLowerCase()}function m(a){a=a||{};var b=!1,c;for(c in u)a[c]?b=!0:u[c]=0;b||(I=!1)}function l(a,b,c,d,e,g){var f,v,k=[],s=c.type;if(!p[a])return[];"keyup"==s&&A(a)&&(b=[a]);for(f=0;f<p[a].length;++f)if(v=p[a][f],!(!d&&v.seq&&u[v.seq]!=v.level||s!=v.action||("keypress"!=s||c.metaKey||c.ctrlKey)&&b.sort().join(",")!==v.modifiers.sort().join(","))){var m=d&&v.seq==d&&v.level==g;(!d&&v.combo==e||m)&&p[a].splice(f,1);k.push(v)}return k}function r(a){var b=[];a.shiftKey&&
b.push("shift");a.altKey&&b.push("alt");a.ctrlKey&&b.push("ctrl");a.metaKey&&b.push("meta");return b}function q(a,b,c,d){N.stopCallback(b,b.target||b.srcElement,c,d)||!1!==a(b,c)||(b.preventDefault?b.preventDefault():b.returnValue=!1,b.stopPropagation?b.stopPropagation():b.cancelBubble=!0)}function t(a){"number"!==typeof a.which&&(a.which=a.keyCode);var b=f(a);b&&("keyup"==a.type&&v===b?v=!1:N.handleKey(b,r(a),a))}function A(a){return"shift"==a||"ctrl"==a||"alt"==a||"meta"==a}function w(a,b,c,d){function e(b){return function(){I=
b;++u[a];clearTimeout(B);B=setTimeout(m,1E3)}}function k(b){q(c,b,a);"keyup"!==d&&(v=f(b));setTimeout(m,10)}for(var s=u[a]=0;s<b.length;++s){var H=s+1===b.length?k:e(d||g(b[s+1]).action);C(b[s],H,d,a,s)}}function g(a,b){var c,d,e,g=[];c="+"===a?["+"]:a.split("+");for(e=0;e<c.length;++e)d=c[e],F[d]&&(d=F[d]),b&&"keypress"!=b&&s[d]&&(d=s[d],g.push("shift")),A(d)&&g.push(d);c=d;e=b;if(!e){if(!H){H={};for(var f in E)95<f&&112>f||E.hasOwnProperty(f)&&(H[E[f]]=f)}e=H[c]?"keydown":"keypress"}"keypress"==
e&&g.length&&(e="keydown");return{key:d,modifiers:g,action:e}}function C(a,b,c,d,e){k[a+":"+c]=b;a=a.replace(/\s+/g," ");var f=a.split(" ");1<f.length?w(a,f,b,c):(c=g(a,c),p[c.key]=p[c.key]||[],l(c.key,c.modifiers,{type:c.action},d,a,e),p[c.key][d?"unshift":"push"]({callback:b,modifiers:c.modifiers,action:c.action,seq:d,level:e,combo:a}))}var E={8:"backspace",9:"tab",13:"enter",16:"shift",17:"ctrl",18:"alt",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",
39:"right",40:"down",45:"ins",46:"del",91:"meta",93:"meta",224:"meta"},G={106:"*",107:"+",109:"-",110:".",111:"/",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},s={"~":"`","!":"1","@":"2","#":"3",$:"4","%":"5","^":"6","&":"7","*":"8","(":"9",")":"0",_:"-","+":"=",":":";",'"':"'","<":",",">":".","?":"/","|":"\\"},F={option:"alt",command:"meta","return":"enter",escape:"esc",mod:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl"},H,p={},k={},u={},
B,v=!1,K=!1,I=!1;for(a=1;20>a;++a)E[111+a]="f"+a;for(a=0;9>=a;++a)E[a+96]=a;d(b,"keypress",t);d(b,"keydown",t);d(b,"keyup",t);var N={bind:function(a,b,c){a=a instanceof Array?a:[a];for(var d=0;d<a.length;++d)C(a[d],b,c);return this},unbind:function(a,b){return N.bind(a,function(){},b)},trigger:function(a,b){if(k[a+":"+b])k[a+":"+b]({},a);return this},reset:function(){p={};k={};return this},stopCallback:function(a,b){return-1<(" "+b.className+" ").indexOf(" mousetrap ")?!1:"INPUT"==b.tagName||"SELECT"==
b.tagName||"TEXTAREA"==b.tagName||b.isContentEditable},handleKey:function(a,b,c){var d=l(a,b,c),e;b={};var g=0,f=!1;for(e=0;e<d.length;++e)d[e].seq&&(g=Math.max(g,d[e].level));for(e=0;e<d.length;++e)d[e].seq?d[e].level==g&&(f=!0,b[d[e].seq]=1,q(d[e].callback,c,d[e].combo,d[e].seq)):f||q(d[e].callback,c,d[e].combo);d="keypress"==c.type&&K;c.type!=I||A(a)||d||m(b);K=f&&"keydown"==c.type}};c.Mousetrap=N;"function"===typeof define&&define.amd&&define(N)})(p,y);Mousetrap=function(c){var b=c.stopCallback,
a=!0;c.stopCallback=function(c,d){return a?b(c,d):!0};c.pause=function(){a=!1};c.unpause=function(){a=!0};return c}(Mousetrap);var u=function(c,b){return{addCssRule:function(a,b,d){try{d=d||c.styleSheets[0],d.addRule?d.addRule(a,b):d.insertRule(a+"{"+b+"}",(d.cssRules||d.rules).length)}catch(m){}},attachClickHandler:function(a,d,f,m){m="function"===typeof d?f:m;f="function"===typeof d?d:f;var l=function(a){if("touchend"===a.type){if(a.changedTouches){var d=c.elementFromPoint(a.changedTouches[0].pageX-
b.pageXOffset,a.changedTouches[0].pageY-b.pageYOffset);null!==d&&this.contains(d)&&f.call(this,a)}"function"===typeof m&&m.call(this,a);return!1}return f.call(this,a)};if("function"===typeof d)Gator(a).on(["click","touchend"],l);else Gator(a).on(["click","touchend"],d,l)},isArray:function(a){return"[object Array]"===Object.prototype.toString.call(a)},limit:function(a,b,c){return a<c?b>a?b:a:c},openWindow:function(a,c,d,m,l){var r=(b.screenY||b.screenTop||0)+b.outerHeight/2-d/2,q=(b.screenX||b.screenLeft||
0)+b.outerWidth/2-c/2;z.browser.chrome&&z.mac&&(d+=27);return b.open(a,m,l+",width="+c+",height="+d+",left="+q+",top="+r)},parseTime:function(a){var b=a.match(/t=([0-9hms:]+)/);null!==b&&(a=b[1]);var c=!1,d=0,l=0,r=0,q=0;(b=a.match(/^([0-9]+)$/))&&b.length&&(c=!0,q=b[1]);!1===c&&(b=a.match(/^(([0-9]+)h)?(([0-9]+)m)?(([0-9]+)s)?/),null!==b&&""!==b[0]&&(c=!0,l=b[2],r=b[4],q=b[6]));!1===c&&(b=a.match(/^([0-9:]+)/),null!==b&&(c=!0,a=a.split(":").reverse(),q=a[0],a[1]&&(r=a[1]),a[2]&&(l=a[2])));if(!c)return null;
l&&(d+=3600*l);r&&(d+=60*r);q&&(d+=parseInt(q,10));return d},resetFocus:function(a){a=(a||c).querySelectorAll("*[tabindex]");for(var d=[],f=0,m,l,r=0,q=a.length;r<q;r++)m=a[r],l=b.getComputedStyle(m,""),0<m.tabIndex&&"none"!==l.display&&0<l.opacity&&"hidden"!==l.visibility&&(d[f++]=m);if(a=d.shift())a.focus(),a.blur()},round:function(a,b){a=parseFloat(a);if(isNaN(a))return 0;var c=Math.pow(10,b||3);return Math.round(a*c)/c},throttle:function(a,b){var c,d,l,r,q=0,t=function(){q=new Date;l=null;r=a.apply(c,
d)};return function(){var A=new Date,w=b-(A-q);c=this;d=arguments;0>=w?(clearTimeout(l),l=null,q=A,r=a.apply(c,d)):l||(l=setTimeout(t,w));return r}}}}(y,p),Ba=function(c,b){function a(a,b,c){return s?Object.create(DOMException.prototype,{code:{enumerable:!0,value:a},message:{enumerable:!0,value:b},name:{enumerable:!0,value:c},toString:{value:function(){return"Error: "+this.message}}}):(b=Error(b),b.code=a,b.name=c,b)}function d(a){return s?Object.create(MediaError.prototype,{code:{enumerable:!0,value:a}}):
{code:a,MEDIA_ERR_ABORTED:1,MEDIA_ERR_DECODE:3,MEDIA_ERR_NETWORK:2,MEDIA_ERR_SRC_NOT_SUPPORTED:4}}function f(b,d,e){var g=function(b,d){if(!b||b[d]===ca)throw a("DOMException"in c?DOMException.INDEX_SIZE_ERR:1,"INDEX_SIZE_ERR: DOM Exception 1","INDEX_SIZE_ERR");return b[d]};return s?Object.create("object"===typeof TimeRanges?TimeRanges.prototype:Object.prototype,{length:{enumerable:!0,value:b},start:{value:function(a){return g(d,a)}},end:{value:function(a){return g(e,a)}}}):{length:b,start:function(a){return g(d,
a)},end:function(a){return g(e,a)}}}function m(a){return"undefined"===typeof TextTrackList?Object.create(Object.prototype,{length:{enumerable:!0,value:a.length},item:{enumerable:!0,value:function(b){return a[b]}}}):Object.create(TextTrackList.prototype,{length:{enumerable:!0,value:0}})}function l(a,b){return function(){if(a.type===g.TYPE_FLASH&&a.swf&&a.swfLoaded){var c="get"+b.charAt(0).toUpperCase()+b.slice(1);return a.swf[c]()}return a.type===g.TYPE_HTML&&a.video?a.video[b]:b in a.propertyValues?
a.propertyValues[b]:g.properties[b].value}}function r(a,b){return function(c){a.propertyValues[b]=c;try{if(a.type===g.TYPE_FLASH&&a.swf&&a.swfLoaded){var d="set"+b.charAt(0).toUpperCase()+b.slice(1);a.swf[d](c)}else a.type===g.TYPE_HTML&&a.video&&(a.video[b]=c)}catch(e){}}}function q(a,b){return function(){if(a.type===g.TYPE_FLASH)return a.swfLoaded?a.swf["_"+b]():a.queuedMethodCalls.push({method:b,args:arguments});if(a.type===g.TYPE_HTML)return a.video[b]()}}function t(a){if(!a)return null;a=a.split("?")[0].split(".");
switch(a[a.length-1]){case "mp4":case "m3u8":return"video/mp4";case "web":case "webm":return"video/webm";case "flv":return"video/x-flv"}return null}function A(a){a.style.display="none";a.setAttribute("hidden","");a.pause();a.src=""}function w(a){a.style.display="none";a.setAttribute("hidden","");try{a._pause(),a.setSrc("")}catch(b){}}function g(a,G){if(!a)throw Error("You must pass a valid element");var k=this;k.uuid=Math.round(1E3*Math.random()+(new Date).getTime());k.global="flideo_"+k.uuid;c[k.global]=
k;var F={};s||(F=b.createElement("flideo"),b.body.appendChild(F));var p=Aa.make({});k.queuedMethodCalls=[];k.propertyValues={};k.textTracks=[];var v=["webkitplaybacktargetavailabilitychanged","webkitcurrentplaybacktargetiswirelesschanged"],K={src:{enumerable:!0,get:l(k,"src"),set:function(c){k.propertyValues.src=c;var v=null;switch(t(c)){case "video/mp4":v=C&&C.h264.baseline?g.TYPE_HTML:g.TYPE_FLASH;break;case "video/webm":v=C&&C.webm?g.TYPE_HTML:g.TYPE_FLASH;break;case "video/x-flv":v=g.TYPE_FLASH}c=
v!==g.TYPE_FLASH||z.flash.versionAtLeast(10,1)?v:null;0;k.type=c;if(c===g.TYPE_HTML){if(!k.video){var f=k.eventCallback,s=k.textTracks,v=b.createElement("video");v.setAttribute("x-webkit-airplay","allow");for(var h=0,m=g.events.length;h<m;h++)v.addEventListener(g.events[h],f);f=0;for(h=s.length;f<h;f++)v.appendChild(s[f]);k.video=v;a.appendChild(k.video)}for(var l in k.propertyValues)"currentTime"!==l&&(0,k.video[l]=k.propertyValues[l]);k.swf&&w(k.swf);k.video.style.display="";k.video.removeAttribute("hidden")}else if(c===
g.TYPE_FLASH){if(!k.swf){v=k.global;f=G.swf;l=b.createElement("object");l.setAttribute("type","application/x-shockwave-flash");l.setAttribute("width","100%");l.setAttribute("height","100%");l.setAttribute("data",f);v={flashvars:"ready="+v+".flashReady",movie:f,allowfullscreen:"true",allowscriptaccess:"always",bgcolor:"#000000",wmode:"opaque",quality:"high",scalemode:"noscale"};for(s in v)f=b.createElement("param"),f.setAttribute("name",s),f.setAttribute("value",v[s]),l.appendChild(f);k.swf=l;a.appendChild(k.swf)}k.video&&
A(k.video);k.swf.style.display="";k.swf.removeAttribute("hidden");k.swfLoaded&&k.flashReady()}else k.video&&A(k.video),k.swf&&w(k.swf);k.type=c;null===c&&p.fire("error",{type:"error",target:{error:d(g.MEDIA_ERR_SRC_NOT_SUPPORTED)}})}},buffered:{enumerable:!0,get:function(){if(k.type===g.TYPE_HTML&&k.video)return k.video.buffered;if(k.type===g.TYPE_FLASH&&k.swf&&k.swfLoaded){var a=k.swf.getBuffered();if(a)return f(a.length,a.start,a.end)}return f(0)}},seekable:{enumerable:!0,get:function(){if(k.type===
g.TYPE_HTML&&k.video)return k.video.seekable;if(k.type===g.TYPE_FLASH&&k.swf&&k.swfLoaded){var a=k.swf.getSeekable();if(a)return f(a.length,a.start,a.end)}return f(0)}},error:{enumerable:!0,get:function(){if(k.type===g.TYPE_HTML&&k.video)return k.video.error;if(k.type===g.TYPE_FLASH&&k.swf&&k.swfLoaded){var a=k.swf.getError();if(a)return d(a.code)}return null}},textTracks:{enumerable:!0,get:function(){if(k.type===g.TYPE_HTML&&k.video&&E){if(z.browser.firefox){for(var a=k.video.querySelectorAll("track"),
b=[],c=0,d=a.length;c<d;c++)b.push(a[c].track);return b}return k.video.textTracks}return m([])}},canvasImageSource:{enumerable:!0,get:function(){return k.type===g.TYPE_HTML?k.video:null}},renderer:{enumerable:!0,get:function(){return k.type}},addEventListener:{enumerable:!0,value:function(a,b){if(0<=v.indexOf(a))k.video&&k.video.addEventListener(a,b);else return p.on(a,b)}},removeEventListener:{enumerable:!0,value:function(a,b){if(0<=v.indexOf(a))k.video&&k.video.removeEventListener(a,b);else return p.off(a,
b)}},appendChild:{enumerable:!0,value:function(a){k.type===g.TYPE_HTML&&k.video?("TRACK"===a.nodeName&&k.textTracks.push(a),k.video.appendChild(a)):0}},removeChild:{enumerable:!0,value:function(a){if(k.type===g.TYPE_HTML&&k.video){if("TRACK"===a.nodeName){var b=k.textTracks.indexOf(a);0<=b&&k.textTracks.splice(b,1)}k.video.removeChild(a);0===k.video.children.length&&k.video.removeAttribute("crossorigin")}else 0}},firstChild:{enumerable:!0,get:function(){return k.type===g.TYPE_HTML&&k.video?k.video.firstChild:
null}},children:{enumerable:!1,get:function(){return k.type===g.TYPE_HTML&&k.video?k.video.children:[]}}},I,N;for(N in g.properties)N in K||(I={enumerable:!0,get:l(k,N)},g.properties[N].readOnly||(I.set=r(k,N)),K[N]=I);I=0;for(N=g.methods.length;I<N;I++)K[g.methods[I]]={enumerable:!0,value:q(k,g.methods[I])};"WebKitPlaybackTargetAvailabilityEvent"in c&&(K.webkitShowPlaybackTargetPicker={enumerable:!0,value:function(){k.video&&"webkitShowPlaybackTargetPicker"in k.video&&k.video.webkitShowPlaybackTargetPicker()}},
K.webkitCurrentPlaybackTargetIsWireless={enumerable:!0,get:function(){return k.video&&"webkitCurrentPlaybackTargetIsWireless"in k.video?k.video.webkitCurrentPlaybackTargetIsWireless:!1}});Object.defineProperties(F,K);k.eventCallback=function(a){k.type===g.TYPE_HTML&&("error"===a.type&&a.target.error&&a.target.error.code===g.MEDIA_ERR_DECODE?(C.h264.baseline="",C.h264.high="",F.src=F.src):p.fire(a.type,a))};k.flashEventCallback=function(a){k.type===g.TYPE_FLASH&&("error"===a.type&&(a.target=k.node),
p.fire(a.type,a))};k.flashReady=function(){if(!k.swfLoaded){for(var a=0,b=g.events.length;a<b;a++)k.swf.api_addEventListener(g.events[a],k.global+".flashEventCallback");k.swfLoaded=!0}for(var c in k.propertyValues)a="set"+c.charAt(0).toUpperCase()+c.slice(1),k.swf[a](k.propertyValues[c]);for(c=k.queuedMethodCalls.shift();c;)k.swf["_"+c.method](),c=k.queuedMethodCalls.shift()};return F}var C=function(){function a(b){return RegExp(b.toLowerCase()).test(d)}var d=navigator.userAgent.toLowerCase(),e=a("android")?
parseFloat(d.replace(/^.* android (\d+)\.(\d+).*$/,"$1.$2"))||!0:!1,g=e&&a("mobile"),f=a("iphone"),v=a("firefox"),s=b.createElement("video"),l=!1;try{s.canPlayType&&(l={h264:{baseline:s.canPlayType('video/mp4; codecs="avc1.42E01E"').replace(/^no$/,""),high:s.canPlayType('video/mp4; codecs="avc1.64001E"').replace(/^no$/,"")},webm:s.canPlayType('video/webm; codecs="vp8, vorbis"').replace(/^no$/,""),flv:s.canPlayType('video/x-flv; codecs="vp6"'),hls:s.canPlayType("application/vnd.apple.mpegurl")})}catch(m){}e&&
(2.1===e||2.2===e||v&&!l.h264.baseline)&&(l.h264.baseline="probably");e&&!g&&(l.h264.high="probably");e&&(l.hls="");f&&2>c.devicePixelRatio&&(l.h264.high="");return l}(),E=function(){var a=b.createElement("video");return"undefined"!==typeof a.textTracks&&a.textTracks instanceof TextTrackList}(),G=E&&"oncuechange"in b.createElement("video").addTextTrack("captions","","en"),s;a:{try{Object.defineProperty({},"fakeprop",{})}catch(F){s=!1;break a}s=!0}g.TYPE_HTML="html";g.TYPE_FLASH="flash";g.NETWORK_EMPTY=
0;g.NETWORK_IDLE=1;g.NETWORK_LOADING=2;g.NETWORK_NO_SOURCE=3;g.HAVE_NOTHING=0;g.HAVE_METADATA=1;g.HAVE_CURRENT_DATA=2;g.HAVE_FUTURE_DATA=3;g.HAVE_ENOUGH_DATA=4;g.MEDIA_ERR_ABORTED=1;g.MEDIA_ERR_DECODE=3;g.MEDIA_ERR_NETWORK=2;g.MEDIA_ERR_SRC_NOT_SUPPORTED=4;g.properties={error:{value:null,readOnly:!0},src:{value:""},currentSrc:{value:"",readOnly:!0},networkState:{value:g.NETWORK_EMPTY,readOnly:!0},preload:{value:"auto"},buffered:{value:f(0),readOnly:!0},readyState:{value:g.HAVE_NOTHING,readOnly:!0},
seeking:{value:!1,readOnly:!0},currentTime:{value:0},duration:{value:NaN,readOnly:!0},paused:{value:!0,readOnly:!0},defaultPlaybackRate:{value:1},playbackRate:{value:1},played:{value:f(0),readOnly:!0},seekable:{value:f(0),readOnly:!0},ended:{value:!1,readOnly:!0},autoplay:{value:!1},loop:{value:!1},controls:{value:!1},volume:{value:1},muted:{value:!1},defaultMuted:{value:!1},textTracks:{value:m([]),readOnly:!0},width:{value:0},height:{value:0},videoWidth:{value:0,readOnly:!0},videoHeight:{value:0,
readOnly:!0},poster:{value:""}};g.methods=["load","play","pause","canPlayType"];g.events="abort canplay canplaythrough durationchange emptied ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" ");g.support={video:C,textTracks:E,cueChange:G};return g}(this,y);(function(){var c={templates:{},render:function(b,a){return c.templates[b]?c.templates[b].call(c,a||{}):""}};c.templates.buffer=function(b){return'<svg width="110%"><defs><pattern id="buffer" patternUnits="userSpaceOnUse" x="0" y="0" width="10" height="10" viewBox="0 0 10 10"><line x1="5" y1="-1" x2="-5" y2="10" stroke-width="2" stroke="#666" stroke-linecap="butt" /><line x1="10" y1="-1" x2="0" y2="10" stroke-width="2" stroke="#666" stroke-linecap="butt" /><line x1="15" y1="-1" x2="5" y2="10" stroke-width="2" stroke="#666" stroke-linecap="butt" /></pattern></defs><rect fill="url(#buffer)" width="100%" height="100%" /></svg>'};
c.templates.content_rating=function(b){return'<div class="content-rating"><h1>Hold up!</h1><p class="subtitle">This video does not match your content rating preferences.</p><p>It may contain content indended for mature audiences including: nudity, strong language, and violence. <a href="">Edit your content rating preferences.</a></p><button>I still want to watch this video</button><div class="logo">'+b.logo+"</div></div>"};c.templates.controls=function(b){var a='<section class="play-button-cell"><div class="play-wrapper"><button tabindex="20" class="play rounded-box state-'+
b.playState+'" title="Play" data-title-play="Play" data-title-pause="Pause" aria-label="Play"><div class="tiny-bars"></div><div class="play-icon">',a=a+(this.render("icon_play")||""),a=a+'</div><div class="pause-icon">'+(this.render("icon_pause")||""),a=a+'</div></button></div></section><section class="play-bar-cell"><div class="play-bar rounded-box"><div class="progress-container"><div class="progress"><div class="buffer hidden">',a=a+(this.render("buffer")||""),a=a+('</div><div class="loaded" role="progressbar" aria-label="loaded" aria-valuemin="0" aria-valuemax="'+
b.rawDuration+'" aria-valuenow="0"></div><div class="played" role="progressbar" aria-label="played" aria-valuemin="0" aria-valuemax="'+b.rawDuration+'" aria-valuenow="0"></div><div class="ghost-timecode invisible" role="presentation" aria-hidden="true"><div class="box">00:00</div></div><div class="timecode" role="presentation" aria-hidden="true"><div class="box">'+b.duration+"</div></div></div></div> ");b.volume&&(a+=' <div class="volume-container"><div class="volume" role="slider" aria-label="volume" aria-valuemin="0" aria-valuemax="1" tabindex="20"><div></div><div></div><div></div><div></div><div></div></div></div> ');
b.ccButton&&(a+=' <div class="button-wrapper"><div class="cc-container"><button class="toggle cc '+(b.ccOn?"on":"off")+'" tabindex="20" title="Choose captions"> ',a+=this.render("icon_cc")||"",a+=" </button></div></div> ");b.hdButton&&(a+=' <div class="button-wrapper"><div class="hd-container"><button class="toggle hd '+(b.hdOn?"on":"off")+'" tabindex="30" title="Turn HD '+(b.hdOn?"off":"on")+'" data-title-on="Turn HD off" data-title-off="Turn HD on" aria-label="HD"> ',a+=this.render("icon_hd")||
"",a+=" </button></div></div> ");b.airplayButton&&(a+=' <div class="button-wrapper"><div class="airplay-container hidden" hidden><button class="toggle airplay" tabindex="30" title="Choose an AirPlay device" data-title-off="Choose an AirPlay device" data-title-on="Turn off AirPlay"> ',a+=this.render("icon_airplay")||"",a+=" </button></div></div> ");b.scalingButton&&(a+=' <div class="button-wrapper only-in-fullscreen"><div class="scaling-container"><button class="scaling" tabindex="30" data-full-size="'+
b.fullSize+'" data-title-full-size="View actual size" data-title-actual-size="View full size"> ',a+=this.render("icon_scaling")||"",a+=" </button></div></div> ");a+=' <div class="button-wrapper';b.fullscreenButton||(a+=" only-in-fullscreen");a+='"><div class="fullscreen-container"><button class="fullscreen" tabindex="30" title="Enter full screen" data-title-fullscreen="Enter full screen" data-title-unfullscreen="Exit full screen" aria-label="Fullscreen"><div class="fullscreen-icon">';a+=this.render("icon_fullscreen")||
"";a+='</div><div class="unfullscreen-icon">';a+=this.render("icon_unfullscreen")||"";a+="</div></button></div></div> ";b.vimeoLogo.show&&(a+=' <div class="logo-container"><div class="logo"><div> ',b.vimeoLogo.showLink&&(a+=' <a href="'+b.vimeoLogo.url+'"',b.targetBlank&&(a+=' target="_blank"'),a+=' tabindex="30" title="Watch on vimeo.com" aria-label="Watch on vimeo.com" data-clip-link> '),a+=this.render("logo")||"",b.vimeoLogo.showLink&&(a+=" </a> "),a+=" </div></div></div> ");a+=" </div></section> ";
b.customLogo&&(a+=' <section class="custom-logo-cell',b.customLogo.sticky&&(a+=" sticky"),a+='"><div class="custom-logo" style="width:'+b.customLogo.width+"px;height:"+b.customLogo.height+'px"> ',b.customLogo.showLink&&(a+='<a href="'+b.customLogo.url+'" target="_blank" tabindex="30">'),a+=' <img src="'+b.customLogo.img+'" alt=""> ',b.customLogo.showLink&&(a+="</a>"),a+=" </div></section>");b.fullscreenButton&&(a+=' <section class="tiny-fullscreen-cell rounded-box"><button class="fullscreen" tabindex="30" title="Enter full screen" data-title-fullscreen="Enter full screen" data-title-unfullscreen="Exit full screen" aria-label="Fullscreen"><div class="fullscreen-icon">',
a+=this.render("icon_fullscreen")||"",a+="</div></button></section>");b.ccButton&&(a+=' <section class="tiny-cc-cell rounded-box"><button class="toggle cc off" tabindex="20" title="Choose captions"> ',a+=this.render("icon_cc")||"",a+=" </button></section>");return a+=' <div class="mobile-timecode" role="presentation" aria-hidden="true">'+b.duration+"</div>"};c.templates.error=function(b){var a='<div class="window-wrapper error"><h1>'+b.title+"</h1> ";b.message&&(a+=" <p>"+b.message+"</p> ");return a+
"</div>"};c.templates.hd_not_allowed=function(b){return'<div class="window-wrapper no-hd"><h1>'+b.title+'</h1><p class="subtitle">'+b.subtitle+'</p><a href="'+b.url+'" target="_blank" role="button" data-clip-link>'+b.button+"</button></div>"};c.templates.hd_notification=function(b){return'<div class="hd-notification"><div class="hd-stroke"> '+b.stroke+' </div><div class="hd-fill-wrapper"><div class="hd-fill"> '+b.fill+" </div></div></div>"};c.templates.help=function(b){var a='<div class="window-wrapper help"><h1>Keyboard Shortcuts</h1><dl><div class="volume-up secondary"><dt class="arrow">\u2191</dt><dd>Volume up</dd></div><div class="volume-down secondary"><dt class="arrow">\u2193</dt><dd>Volume down</dd></div><div class="scrub-forward secondary"><dt class="arrow">\u2192</dt><dd>Scrub forward</dd></div><div class="scrub-backwards secondary"><dt class="arrow">\u2190</dt><dd>Scrub backwards</dd></div><div class="like"><dt>L</dt><dd>Like</dd></div><div class="share"><dt>S</dt><dd>Share</dd></div><div class="watch-later"><dt>W</dt><dd>Watch Later</dd></div><div class="toggle-hd"><dt>H</dt><dd>Toggle HD</dd></div><div class="fullscreen"><dt>F</dt><dd>Fullscreen</dd></div> ';
b.onSite||(a+='<div class="view-on-vimeo"><dt>V</dt><dd>View on Vimeo</dd></div>');return a+' </dl><a href="http://vimeo.com" class="off-site" role="button">View on Vimeo.com</a></div>'};c.templates.icon_airplay=function(b){return'<svg class="airplay-icon" viewBox="0 0 44 36"><defs><clipPath id="triangle"><polygon points="-2,-2 -2,36 2,36 22,15 42,36 46,36 46,-2"/></clipPath></defs><rect class="stroke" stroke-width="5" width="44" height="26" x="0" y="2" clip-path="url(#triangle)"/><polygon class="fill" points="7,36 22,18 37,36"/></svg>'};
c.templates.icon_broken_heart=function(b){return'<svg class="unlike-icon" viewBox="0 0 110 81" preserveAspectRatio="xMidYMid"><path class="fill" d="M82.496 1c-14.594 0-23.198 10.043-25.948 14.48l-6.77 10.727 13.661 8.543-13.661 12.535 5.695 15.348-9.686-15.348 11.389-11.975-11.969-7.402s4.22-14.27 4.621-15.521c.782-2.438.782-2.438-.813-3.289-5.516-2.944-12.608-8.098-21.509-8.098-16.299 0-27.506 15.037-27.506 27.885 0 12.795 12.562 22.558 22.245 27.592 9.186 4.771 30.601 18.349 32.755 24.523 2.154-6.174 23.57-19.752 32.753-24.523 9.684-5.034 22.247-14.797 22.247-27.592 0-12.848-11.208-27.885-27.504-27.885z"/></svg>'};
c.templates.icon_cc=function(b){return'<svg viewBox="0 0 20 14"><path class="fill" fill-rule="evenodd" clip-rule="evenodd" d="M17 0h-14c-1.657 0-3 1.343-3 3v8c0 1.656 1.343 3 3 3h14c1.657 0 3-1.344 3-3v-8c0-1.657-1.343-3-3-3zm-7.271 8.282c-.145.923-.516 1.686-1.105 2.268-.597.591-1.369.89-2.294.89-1.138 0-2.049-.402-2.706-1.195-.647-.786-.975-1.866-.975-3.215 0-1.458.372-2.603 1.105-3.403.65-.708 1.487-1.067 2.487-1.067 1.33 0 2.321.482 2.947 1.435.34.53.526 1.072.553 1.611l.013.236h-1.984l-.044-.169c-.092-.355-.207-.622-.343-.793-.239-.298-.591-.443-1.076-.443-.483 0-.856.209-1.14.641-.298.455-.449 1.12-.449 1.977 0 .851.156 1.49.466 1.898.298.395.666.588 1.122.588.469 0 .814-.16 1.058-.491.138-.183.255-.472.351-.856l.042-.17h2.013l-.041.258zm7.582 0c-.145.923-.516 1.686-1.104 2.268-.598.591-1.369.89-2.294.89-1.139 0-2.049-.402-2.707-1.195-.646-.785-.975-1.865-.975-3.214 0-1.458.372-2.603 1.106-3.403.649-.708 1.485-1.067 2.486-1.067 1.33 0 2.32.482 2.946 1.435.34.53.526 1.072.554 1.611l.012.236h-1.9829999999999999l-.043-.169c-.092-.355-.208-.623-.344-.793-.238-.298-.591-.443-1.076-.443-.483 0-.856.209-1.139.641-.299.455-.45 1.12-.45 1.977 0 .851.157 1.49.467 1.898.299.395.666.588 1.121.588.469 0 .814-.16 1.058-.491.138-.183.256-.472.352-.856l.042-.17h2.012l-.041.257z"/></svg>'};
c.templates.icon_clock=function(b){return'<svg class="watch-later-icon" viewBox="0 0 20 20" preserveAspectRatio="xMidYMid"><polyline class="fill hour-hand" points="9.64,4.68 10.56,4.68 11.28,11.21 8.93,11.21 9.64,4.68" /><polyline class="fill minute-hand" points="14.19,13.65 13.7,14.14 8.58,10.4 10.44,8.5 14.19,13.65" /><circle class="stroke" cx="10" cy="10" r="8" stroke-width="2" /></svg>'};c.templates.icon_fullscreen=function(b){return'<svg viewBox="0 0 12 12" preserveAspectRatio="xMidYMid"><polyline class="fill" points="6,6 5.9,2 4.9,3 2.9,1 1,2.9 3,4.9 2,5.9" transform="translate(6,6)" /><polyline class="fill" points="6,6 5.9,2 4.9,3 2.9,1 1,2.9 3,4.9 2,5.9" transform="translate(6,6) rotate(90)" /><polyline class="fill" points="6,6 5.9,2 4.9,3 2.9,1 1,2.9 3,4.9 2,5.9" transform="translate(6,6) rotate(180)" /><polyline class="fill" points="6,6 5.9,2 4.9,3 2.9,1 1,2.9 3,4.9 2,5.9" transform="translate(6,6) rotate(270)" /></svg>'};
c.templates.icon_hd=function(b){var a='<svg viewBox="',a=b.notification?a+"-1 -1 104.717 49.035":a+"0 0 102.717 47.035",a=a+'" preserveAspectRatio="xMidYMid"><path class="',a=b.stroke?a+"stroke":a+"fill",a=a+'" d="M100.014 6.758c-1.352-2.162-3.244-3.781-5.676-5.134-2.434-1.083-5.947-1.624-10.274-1.624h-21.625l-7.297 47.035h21.895c2.434 0 5.676-.274 8.92-1.352 2.434-.542 4.596-1.627 7.03-3.785 2.161-1.621 4.324-4.055 5.675-7.028 1.621-2.701 2.973-6.757 3.786-11.623.269-3.244.269-6.487.269-9.19-.54-2.704-1.352-5.138-2.703-7.299zm-12.433 16.76c-.541 3.783-1.352 6.485-2.165 8.109-1.08 1.893-2.162 2.703-3.782 3.514-1.083.541-3.515 1.082-6.217 1.082h-3.517l3.517-25.41h3.782c3.514 0 6.217.811 7.568 2.703 1.083 1.625 1.352 5.135.814 10.002z"/><path class="',
a=b.stroke?a+"stroke":a+"fill";return a+'" d="M37.572,0L35.14,16.491H19.463L21.895,0H7.027L0,47.035h14.866l2.703-18.922h15.677l-2.971,18.922h14.866L52.439,0H37.572z"/></svg>'};c.templates.icon_heart=function(b){return'<svg class="like-icon" viewBox="0 0 110 81" preserveAspectRatio="xMidYMid"><path class="fill" d="M82.496 1c-14.698 0-25.969 11.785-27.496 13.457-1.526-1.672-12.798-13.457-27.494-13.457-16.299 0-27.506 15.037-27.506 27.885 0 12.795 12.562 22.558 22.245 27.592 9.186 4.771 30.601 18.349 32.755 24.523 2.154-6.174 23.57-19.752 32.755-24.523 9.684-5.034 22.245-14.797 22.245-27.592 0-12.848-11.206-27.885-27.504-27.885z"/></svg>'};
c.templates.icon_lock=function(b){return'<svg viewBox="0 0 46 76" preserveAspectRatio="xMidYMid"><path class="fill bolt" d="M5,42v-15C8,5 39,5 42,27v30h-7v-30C32,14 15,14 12,27v15z"/><rect class="fill" x="0" y="41" height="35" width="46" rx="4" ry="4"/></svg>'};c.templates.icon_pause=function(b){return'<svg viewBox="0 0 20 20" preserveAspectRatio="xMidYMid"><rect class="fill" width="6" height="20" x="0" y="0" /><rect class="fill" width="6" height="20" x="12" y="0" /></svg>'};c.templates.icon_play=
function(b){return'<svg viewBox="0 0 20 20" preserveAspectRatio="xMidYMid"><polygon class="fill" points="1,0 20,10 1,20" /></svg>'};c.templates.icon_scaling=function(b){return'<svg viewBox="0 0 14 12" preserveAspectRatio="xMidYMid"><rect class="fill" y="6" width="8" height="6"/><polygon class="fill stroked" points="1,0 1,4 3,4 3,2 12,2 12,8 10,8 10,10 14,10 14,0"/><polygon class="fill filled" points="1,0 1,4 10,4 10,10 14,10 14,0"/></svg>'};c.templates.icon_share=function(b){return'<svg class="share-icon" viewBox="0 0 20 20" preserveAspectRatio="xMidYMid"><polygon class="fill" points="20,0 0,12 5,15 17,4 7,16 7,19 9,17 14,20"/></svg>'};
c.templates.icon_unfullscreen=function(b){return'<svg viewBox="0 0 12 12" preserveAspectRatio="xMidYMid"><polyline class="fill" points="-1,-1 -1.1,-5 -2.1,-4 -4.1,-6 -6,-4.1 -4,-2.1 -5,-1.1" transform="translate(6,6) "/><polyline class="fill" points="-1,-1 -1.1,-5 -2.1,-4 -4.1,-6 -6,-4.1 -4,-2.1 -5,-1.1" transform="translate(6,6) rotate(90)" /><polyline class="fill" points="-1,-1 -1.1,-5 -2.1,-4 -4.1,-6 -6,-4.1 -4,-2.1 -5,-1.1" transform="translate(6,6) rotate(180)" /><polyline class="fill" points="-1,-1 -1.1,-5 -2.1,-4 -4.1,-6 -6,-4.1 -4,-2.1 -5,-1.1" transform="translate(6,6) rotate(270)" /></svg>'};
c.templates.icon_vod=function(b){return'<svg class="vod-icon" viewBox="0 0 21 23"><path class="fill" d="M19.602,4.716l-7.665-4.385C11.169-0.108,9.91-0.111,9.139,0.327L1.4,4.721C0.63,5.158,0,6.234,0,7.112v8.776c0,0.878,0.63,1.955,1.398,2.393l0.526,0.3l7.176,4.09c0.77,0.438,2.028,0.438,2.798,0l7.702-4.39c0.77-0.438,1.4-1.516,1.4-2.393V7.112C21,6.234,20.37,5.156,19.602,4.716z M7.336,15.761L7.337,7.24l8.008,4.26L7.336,15.761z"/></svg>'};c.templates.logo=function(b){return'<svg viewBox="0 0 140 40" preserveAspectRatio="xMidYMid" role="img" aria-label="Vimeo"><title>Vimeo</title><g><path class="fill logo-v" d="M31.277 18.832c-.14 3.052-2.27 7.229-6.39 12.531-4.259 5.536-7.863 8.306-10.811 8.306-1.825 0-3.371-1.687-4.633-5.059l-2.529-9.275c-.938-3.372-1.943-5.06-3.019-5.06-.234 0-1.054.494-2.458 1.477l-1.474-1.901c1.546-1.358 3.071-2.717 4.572-4.078 2.062-1.783 3.609-2.72 4.642-2.814 2.438-.234 3.938 1.433 4.502 5.001.608 3.851 1.03 6.246 1.266 7.182.704 3.195 1.476 4.791 2.321 4.791.657 0 1.641-1.037 2.954-3.108 1.312-2.072 2.015-3.649 2.109-4.732.188-1.789-.516-2.686-2.109-2.686-.75 0-1.522.173-2.318.514 1.54-5.044 4.481-7.495 8.823-7.355 3.22.095 4.737 2.184 4.552 6.266z"/><path class="fill logo-i" d="M50.613 28.713c-1.313 2.484-3.119 4.733-5.417 6.748-3.143 2.718-6.285 4.076-9.425 4.076-1.456 0-2.57-.469-3.343-1.406-.773-.938-1.137-2.153-1.09-3.653.045-1.548.526-3.938 1.441-7.173.914-3.232 1.373-4.967 1.373-5.201 0-1.218-.423-1.828-1.266-1.828-.282 0-1.079.494-2.393 1.477l-1.618-1.901c1.501-1.358 3.001-2.717 4.502-4.078 2.017-1.783 3.518-2.72 4.504-2.814 1.546-.14 2.684.314 3.411 1.367.726 1.052.996 2.417.81 4.098-.61 2.852-1.268 6.472-1.972 10.864-.046 2.01.681 3.014 2.182 3.014.656 0 1.827-.693 3.518-2.083 1.406-1.156 2.555-2.243 3.447-3.262l1.336 1.755zm-6.12-25.016c-.047 1.168-.633 2.288-1.76 3.361-1.266 1.212-2.767 1.82-4.501 1.82-2.672 0-3.963-1.166-3.869-3.499.045-1.213.76-2.381 2.144-3.501 1.384-1.119 2.919-1.68 4.609-1.68.984 0 1.805.387 2.462 1.155.656.772.961 1.553.915 2.344z"/><path class="fill logo-m" d="M94.543 28.713c-1.314 2.484-3.117 4.733-5.416 6.748-3.145 2.718-6.285 4.076-9.426 4.076-3.051 0-4.527-1.687-4.432-5.06.045-1.501.338-3.306.877-5.415.539-2.108.832-3.748.879-4.921.049-1.779-.492-2.673-1.623-2.673-1.223 0-2.682 1.456-4.375 4.362-1.788 3.05-2.754 6.003-2.894 8.861-.095 2.02.103 3.568.592 4.645-3.272.096-5.565-.444-6.873-1.617-1.171-1.032-1.708-2.742-1.614-5.135.045-1.501.276-3.001.69-4.502.414-1.5.644-2.837.69-4.011.095-1.734-.54-2.604-1.9-2.604-1.177 0-2.444 1.339-3.806 4.011-1.361 2.673-2.113 5.465-2.253 8.371-.094 2.627.074 4.456.503 5.486-3.219.096-5.505-.582-6.857-2.035-1.122-1.214-1.634-3.06-1.539-5.54.044-1.214.258-2.911.645-5.084.386-2.175.603-3.87.647-5.087.093-.841-.119-1.263-.633-1.263-.281 0-1.079.475-2.393 1.424l-1.687-1.901c.234-.184 1.71-1.545 4.432-4.078 1.969-1.828 3.306-2.766 4.009-2.812 1.219-.095 2.204.409 2.954 1.511s1.126 2.38 1.126 3.834c0 .469-.047.915-.14 1.336.703-1.077 1.523-2.017 2.463-2.814 2.156-1.874 4.572-2.931 7.245-3.166 2.298-.187 3.938.352 4.925 1.617.795 1.033 1.17 2.511 1.125 4.433.329-.28.681-.586 1.056-.915 1.078-1.267 2.133-2.273 3.164-3.023 1.736-1.267 3.541-1.97 5.418-2.112 2.25-.187 3.867.35 4.852 1.611.844 1.028 1.219 2.5 1.127 4.415-.047 1.309-.363 3.213-.949 5.712-.588 2.501-.879 3.936-.879 4.31-.049.982.047 1.659.279 2.034.236.373.797.559 1.689.559.656 0 1.826-.693 3.518-2.083 1.406-1.156 2.555-2.243 3.447-3.262l1.337 1.757z"/><path class="fill logo-e" d="M120.922 28.642c-1.361 2.249-4.033 4.495-8.02 6.743-4.971 2.856-10.012 4.284-15.125 4.284-3.797 0-6.52-1.267-8.16-3.797-1.172-1.735-1.734-3.797-1.688-6.189.045-3.797 1.736-7.407 5.064-10.832 3.658-3.75 7.973-5.627 12.945-5.627 4.596 0 7.033 1.873 7.314 5.615.188 2.384-1.125 4.842-3.938 7.368-3.004 2.76-6.781 4.515-11.328 5.263.842 1.169 2.109 1.752 3.799 1.752 3.375 0 7.059-.855 11.045-2.574 2.859-1.207 5.111-2.461 6.754-3.76l1.338 1.754zm-15.969-7.345c.045-1.259-.469-1.89-1.547-1.89-1.406 0-2.83.969-4.283 2.906-1.451 1.936-2.201 3.789-2.248 5.562-.025 0-.025.305 0 .911 2.295-.839 4.287-2.122 5.971-3.849 1.357-1.491 2.06-2.707 2.107-3.64z"/><path class="fill logo-o" d="M140.018 23.926c-.189 4.31-1.781 8.031-4.783 11.169-3.002 3.137-6.73 4.706-11.186 4.706-3.705 0-6.52-1.195-8.441-3.585-1.404-1.777-2.182-4.001-2.32-6.668-.236-4.029 1.217-7.729 4.361-11.101 3.377-3.746 7.619-5.618 12.732-5.618 3.281 0 5.766 1.102 7.457 3.301 1.594 2.015 2.32 4.614 2.18 7.796zm-7.95-.264c.047-1.269-.129-2.434-.527-3.49-.4-1.057-.975-1.587-1.725-1.587-2.391 0-4.361 1.293-5.906 3.877-1.316 2.115-2.02 4.371-2.111 6.766-.049 1.176.164 2.21.633 3.104.514 1.032 1.242 1.549 2.182 1.549 2.109 0 3.914-1.244 5.416-3.735 1.267-2.068 1.945-4.23 2.038-6.484z"/></g></svg>'};
c.templates.outer=function(b){var a='<div class="video-wrapper"><div class="video"><div class="flideo"></div></div></div><div class="target"></div><div class="captions with-controls hidden" hidden aria-live="assertive"><span></span></div><div class="outro-wrapper hidden" hidden><div class="outro-inner"><div class="outro" role="dialog" aria-live="assertive"></div></div></div><div class="controls-wrapper"><div class="title" role="contentinfo"></div><div class="sidedock';b.hideSidedock&&(a+=" hidden");
a+='" role="toolbar"';b.hideSidedock&&(a+=" hidden");return a+'></div><div class="controls"></div></div><div class="overlay-wrapper hidden" hidden><div class="overlay-cell"><div class="overlay" role="dialog" aria-live="assertive"></div><div class="overlay-icon-wrapper hidden"><div class="overlay-icon"></div></div><div class="overlay-logo logo"></div></div><nav><button tabindex="100" class="back cloaked" aria-label="Back">&#xe605;</a><button tabindex="101" class="close" aria-label="Close overlay">&#xe602;</button></nav></div><div class="notification-wrapper hidden" hidden><div class="notification-cell"><div class="notification" role="dialog" aria-live="assertive"></div></div></div>'};
c.templates.outro_link=function(b){return'<h1><a href="'+b.url+'" target="_blank" tabindex="100">'+(b.text?b.text:b.url)+"</a></h1>"};c.templates.outro_text=function(b){return'<div class="text-wrapper"><div class="text">'+b.text+"</div></div>"};c.templates.outro_videos=function(b){for(var a="<h1>"+b.context+'</h1><ul class="videos"> ',c=0,d=b.videos.length;c<d;c++)a+=' <li><a href="'+b.videos[c].url+'" target="_blank" title="\''+b.videos[c].title+"'",b.videos[c].owner.id!==b.owner&&(a+=" from "+b.videos[c].owner.name+
""),a+='" tabindex="1" data-video-id="'+b.videos[c].id+'"><div class="img-wrapper"><img src="'+b.videos[c].thumbnail+'" alt="" width="295" height="166"></div><div class="header-wrapper"><header><h1>'+b.videos[c].title+"</h1> ",b.videos[c].owner.id!==b.owner&&(a+=" <h2><span>from</span>&nbsp;"+b.videos[c].owner.name+"</h2> "),a+=" </header></div></a> ";return a+"</ul>"};c.templates.outro_vod=function(b){var a='<h1 class="vod-header"><a href="'+b.url+'" target="_blank">'+b.title+"</a></h1>";if(b.purchased)a+=
' <a class="vod-watch-button" role="button" href="'+b.url+'" target="_blank">',a=b.preorder?a+("Watch on "+b.preorder+""):a+"Watch Now",a+="</a>";else{for(var a=a+' <ul class="vod"> ',c=0,d=b.buttons.length;c<d;c++)a+=' <li><a class="vod-button '+b.buttons[c].type+'" role="button" href="'+b.url+"#buy="+b.buttons[c].product_id+'" target="_blank" data-product-id="'+b.buttons[c].product_id+'"><span class="icon"> ',a="buy"===b.buttons[c].type?a+"&#xe603;":a+"&#xe604;",a+=' </span><span class="price"> '+
b.buttons[c].price+' <span class="type">'+b.buttons[c].type.substr(0,1).toUpperCase()+b.buttons[c].type.substr(1)+"</span></span></a></li> ";a+=" </ul> ";b.preorder&&(a+=" <p>Preorder now. Watch on "+b.preorder+".</p> ");a+=""}return a+""};c.templates.password=function(b){return'<div class="window-wrapper password form"><h1>'+b.title+'</h1><p class="subtitle">'+b.subtitle+'</p><form action="'+b.action+'" method="post" novalidate><div class="validation-bubble hidden"><div class="validation-bubble-arrow-clipper"><div class="validation-bubble-arrow"></div></div><div class="validation-bubble-message"></div></div><input type="password" name="password" placeholder="Password" required aria-required="true" tabindex="2" aria-label="Password"><input type="submit" value="Watch Video" tabindex="3"></form></div>'};
c.templates.private_locked=function(b){return'<div class="window-wrapper login"><h1>'+b.title+'</h1><p class="subtitle">'+b.subtitle+'</p><a href="'+b.action+'" class="popup" target="_blank" role="button" aria-label="Log in (opens in a new window)">Log in</a></div>'};c.templates.private_unlocked=function(b){return'<div class="window-wrapper form unlocked"><h1>Private Video</h1><p class="subtitle">You are logged in and have permission to watch (congrats).</p><button>Watch Video</button></div>'};c.templates.share=
function(b){var a='<div class="share-wrapper"><section class="share-screen'+(b.embedOnly?" cloaked":"")+'"><h1>Share</h1><ul class="buttons"><li><a tabindex="1" href="'+b.playerShareUrl+'/facebook" target="_blank" class="facebook" title="Share on Facebook" role="button" aria-label="Share on Facebook">&#xe606;</a><li><a tabindex="1" href="'+b.playerShareUrl+'/twitter" target="_blank" class="twitter" title="Share on Twitter" role="button" aria-label="Share on Twitter">&#xe607;</a> ';b.tumblr&&(a+=' <li><a tabindex="1" href="'+
b.playerShareUrl+'/tumblr" target="_blank" class="tumblr" title="Share on Tumblr" role="button" aria-label="Share on Tumblr">&#xe007;</a> ');b.url&&(a=a+' <li><a tabindex="1" href="mailto:?subject='+(encodeURIComponent("Check out \u201c"+b.title+"\u201d by "+b.owner+" on Vimeo")||""),a+="&amp;body=",a+=encodeURIComponent("Check out \u201c"+b.title+"\u201d by "+b.owner+" on Vimeo.\n\nThe video is available for your viewing pleasure at "+b.shareUrl+"\n\nIf you like this video, make sure you share it, too!\n\nVimeo is filled with lots of amazing videos. See more at http://vimeo.com.")||
"",a+='" class="email" title="Share via E-mail" role="button" aria-label="Share via E-Mail">&#xe600;</a> ');a+=" </ul> ";b.embed&&(a+=' <ul class="buttons"><li><a tabindex="1" href="'+b.url+'#share" target="_blank" class="embed" title="Get embed code" role="button" aria-label="Get embed code">&#xe601;</a></li></ul> ');b.url&&(a+=' <p class="footnote share"><a class="clip_url" tabindex="1" href="'+b.url+'" target="_blank">'+b.shareUrl+"</a></p> ");a+=" </section> ";b.embed&&(a+=' <section class="embed-screen'+
(b.embedOnly?"":" cloaked")+'"><div class="embed-wrapper"><h1>Embed</h1><p class="subtitle">Add this video to your site with the embed code below.</p><div class="embed-code form"><div><input type="text" tabindex="1" name="embed_code" title="Embed code" value="'+b.embedCode+'" spellcheck="false" aria-readonly="true"',b.readOnly&&(a+=" readonly"),a+="></div> ",b.copyButton&&(a+=' <button class="embed-copy" tabindex="1" id="copy-button" data-clipboard-text=\''+b.embedCode+"'>Copy</button> "),a+=" </div> ",
b.customizeEmbed&&(a+=' <p class="footnote"><a tabindex="1" href="'+b.url+'#embed" target="_blank">Customize this embed</a> on Vimeo</p> '),a+=" </div></section> ");return a+="</div>"};c.templates.sidedock=function(b){var a="";b.vodButton&&(a+=' <div class="box" data-vod-preorder="'+b.vodPreorder+'" data-vod-expiring="'+b.expiring+'" data-vod-purchased="'+b.purchased+'"><label class="rounded-box vod-label visible',b.expiring&&(a+=" expiring"),a+='" role="presentation"><span>'+b.vodLabel+'</span></label><button tabindex="50" class="vod-button rounded-box',
b.purchased&&(a+=" on"),a=a+'"> '+(this.render("icon_vod")||""),a+=" </button></div>");b.likeButton&&(a+=' <div class="box"><label class="rounded-box hidden like-label" role="presentation"><span>',a=b.liked?a+"Unlike":a+"Like",a+='</span></label><button tabindex="50" class="like-button rounded-box',b.liked&&(a+=" on"),a+='" aria-label="',a=b.liked?a+"Unlike":a+"Like",b.loggedIn||(a+=" (opens in a new window)"),a+='" data-label-add="Like" data-label-add-logged-out="Like (opens in a new window)" data-label-remove="Unlike"> ',
a+=this.render("icon_heart")||"",a+=" </button></div>");b.watchLaterButton&&(a+=' <div class="box"><label class="rounded-box hidden watch-later-label" role="presentation"><span>',a=b.addedToWatchLater?a+"Remove from":a+"Add to",a+=' Watch Later</span></label><button tabindex="50" class="watch-later-button rounded-box',b.addedToWatchLater&&(a+=" on"),a+='" aria-label="',a=b.addedToWatchLater?a+"Remove from":a+"Add to",a+=" Watch Later",b.loggedIn||(a+=" (opens in a new window)"),a+='" data-label-add="Add to Watch Later" data-label-add-logged-out="Add to Watch Later (opens in a new window)" data-label-remove="Remove from Watch Later"> ',
a+=this.render("icon_clock")||"",a+=" </button></div>");b.shareButton&&(a+=' <div class="box"><label class="rounded-box hidden share-label" role="presentation"><span>'+b.shareButtonLabel+'</span></label><button tabindex="50" class="share-button rounded-box" aria-label="'+b.shareButtonLabel+'"> ',a+=this.render("icon_share")||"",a+=" </button></div>");return a+=""};c.templates.title=function(b){var a="<header> ";b.badge&&(a+=' <div class="badge"><a tabindex="10" href="'+b.badge.link+'"',b.targetBlank&&
(a+=' target="_blank"'),a+='><img src="'+b.badge.img+'"',b.badge.offset&&(a+=' style="margin-top:'+b.badge.offset.y+"px;margin-left:"+b.badge.offset.x+'px"'),a+=' width="'+b.badge.width+'" height="'+b.badge.height+'" alt="'+b.badge.name+' Badge"></a></div> ');b.showPortrait&&(a+=' <div class="portrait" aria-hidden="true"> ',b.linkToOwner&&(a+='<a tabindex="-1" href="'+b.ownerLink+'"',b.targetBlank&&(a+=' target="_blank"'),a+=">"),a+=' <img src="'+b.portraitImg+'" alt="Portrait image for '+b.owner+
'" width="60" height="60"> ',b.linkToOwner&&(a+="</a>"),a+=" </div> ");a+=" <div> ";b.showTitle&&(a+=" <h1> ",b.showTitleLink&&(a+='<a tabindex="10" href="'+b.titleLink+'"',b.targetBlank&&(a+=' target="_blank"'),a+=" data-clip-link>"),a+=" "+b.title+" ",b.showTitleLink&&(a+="</a>"),a+=" </h1> ");b.showByline&&(a+=" <h2> from ",b.linkToOwner?(a+='<a tabindex="10" href="'+b.ownerLink+'"',b.targetBlank&&(a+=' target="_blank"'),a+=">"):a+='<span class="user">',a+=""+b.owner+"",a=b.linkToOwner?a+"</a>":
a+"</span>",b.bylineBadge&&(a+="&nbsp; ",b.bylineBadge.link&&(a+='<a tabindex="-1" href="'+b.bylineBadge.link+'"',b.targetBlank&&(a+=' target="_blank"'),a+=">"),a+=' <span class="byline-badge '+b.bylineBadge.cssClass+'">'+b.bylineBadge.cssClass+"</span> ",b.bylineBadge.link&&(a+="</a>")),a+=" </h2> ");return a+" </div></header>"};"undefined"!==typeof module&&module.exports?module.exports=c:p.Aftershave=c})();la=1;za=2;fa=3;va=4;ab=9;Wa={will:"willLikeVideo",did:"didLikeVideo"};Xa={will:"willUnlikeVideo",
did:"didUnlikeVideo"};Ya={will:"willAddToWatchLater",did:"didAddToWatchLater"};Za={will:"willRemoveFromWatchLater",did:"didRemoveFromWatchLater"};$a={will:"willOpenVodPurchaseForm",did:"didOpenVodPurchaseForm"};La={will:"willOpenShareOverlay",did:"didOpenShareOverlay"};Ma={will:"willOpenLoginForm",did:"didOpenLoginForm"};Ga=1;Ha=2;Z=3;ha=5;ua=6;na=7;ya=10;oa=11;Ja=12;Qa=14;Sa=15;Ta=16;Oa=17;Pa=18;Ka=19;var d={error:49,playInitiated:50,paused:51,played:52,loadProgress:53,playProgress:54,seeked:55,
ended:56,bufferStarted:57,bufferEnded:58,volumeChanged:59,qualityChanged:60,targetTimeReached:61,cueChanged:62,fullscreenButtonClicked:100,pauseButtonClicked:101,playButtonClicked:102,hdButtonClicked:103,ccButtonClicked:104,scrubbingStarted:105,scrubbingEnded:106,volumeScrubbingStarted:107,volumeScrubbingEnded:108,controlBarVisibilityChanged:109,sidedockVisibilityChanged:110,menuVisibilityChanged:111,captionsChanged:112,willEnterFullscreen:150,didEnterFullscreen:151,willExitFullscreen:152,didExitFullscreen:153,
likeButtonClicked:200,watchLaterButtonClicked:201,shareButtonClicked:202,embedButtonClicked:203,scalingButtonClicked:204,vodButtonPressed:205,overlayOpened:250,overlayClosed:251,overlayCleared:252,overlayCloseButtonClicked:253,facebookButtonClicked:254,twitterButtonClicked:255,tumblrButtonClicked:256,emailButtonClicked:257,embedCodeCopied:258,popupOpened:259,mousedOut:300,mousedOver:301,mouseTimeout:302,liked:303,unliked:304,addedToWatchLater:305,removedFromWatchLater:306,userLogIn:307,userLoggedIn:308,
userLoggedOut:309,loginFailure:310,colorChanged:311,configChanged:312,passwordUnlocked:313,privateUnlocked:314,enteredTinyMode:315,enteredMiniMode:320,enteredNormalMode:316,signatureExpired:317,requestConfigReloaded:318,embedSettingChanged:319,outroDisplayed:321,outroHidden:322,outroVideoPressed:323,titleModuleReady:350,sidedockModuleReady:351,controlBarModuleReady:352,videoModuleReady:353,overlayModuleReady:354,notificationModuleReady:355,statsModuleReady:356,apiModuleReady:357,analyticsModuleReady:358,
ready:359,notificationHidden:400,airPlayAvailable:500,airPlayNotAvailable:501,airPlayActivated:502,airPlayDeactivated:503,airPlayButtonPressed:504},cb=function(){return function(c,b,a,e){function f(a){if(a&&0<a.clientX&&0<a.clientY)try{y.activeElement.blur()}catch(b){}}function m(a){a&&(h.config=a,h.storageModule.reset(h.config),x.fire(oa,h.config.embed.color),x.fire(d.configChanged,h.config));h.videoModule||h.config.view===va||h.config.view===za?L.style.backgroundImage="none":(w(h.config.video.thumbs),
h.videoModule=new bb(h.config,x,P))}function l(){switch(h.config.view){case va:0;Q=["password"];R=!0;r();break;case za:0;Y=!0;Q=h.config.user.logged_in?["error",{title:"Private Video",message:"Sorry, you don&rsquo;t have permission to watch.",modal:!0,logo:!!h.config.embed.settings.branding,icon:"lock"}]:["private-locked"];R=!0;r();return;case fa:0;0;m();h.config.embed.autoplay||Y||(Q=["private-unlocked"]);r();break;case ab:L.classList.add("invisible"),x.fire(ha,"content-rating"),x.once(d.overlayClosed,
function(){L.classList.remove("invisible")})}Y=null}function r(){R&&aa&&J&&(Q?(Q.unshift(ha),x.fire.apply(null,Q),Q=null,p.requestAnimationFrame(function(){h.element.classList.remove("loading")})):h.element.classList.remove("loading"))}function q(a,b){0;var c=(new Date).getTime(),d=h.config&&h.config.video.id,e=h.config&&h.config.request.session,g=h.config&&h.config.request.referrer,v=a;isNaN(a)||(v=(h.config?"//"+h.config.player_url:"")+"/video/"+a+"/config"+p.location.search);var f=new XMLHttpRequest;
f.open("GET",v,!0);f.withCredentials=!0;f.onload=function(){h.config=JSON.parse(f.responseText);U=(new Date).getTime()+1E3*h.config.request.expires;h.config.video.id===d&&(h.config.request.session=e);g&&(h.config.request.referrer=g);var a=(new Date).getTime()-c;p._gaq&&p._gaq.push(["player._trackTiming","Player","Config Load",a]);0;h.storageModule&&h.storageModule.reset(h.config);x.fire(oa,h.config.embed.color);l();h.config.embed.on_site||(y.title=h.config.view===la||h.config.view===fa?h.config.video.title+
" from "+h.config.video.owner.name+" on Vimeo":"Private Video on Vimeo");b.call(f)};f.send()}function t(a){0;var b=(new Date).getTime(),c=h.config&&h.config.request.referrer,d=new XMLHttpRequest;d.open("GET","//"+h.config.player_url+"/video/"+h.config.video.id+"/config/request?session="+h.config.request.session+"&signature="+h.config.request.signature+"&time="+h.config.request.timestamp+"&expires="+h.config.request.expires,!0);d.withCredentials=!0;d.onload=function(){h.config.request=JSON.parse(d.responseText);
c&&(h.config.request.referrer=c);U=(new Date).getTime()+1E3*h.config.request.expires;0;var e=(new Date).getTime()-b;p._gaq&&p._gaq.push(["player._trackTiming","Player","Config.Request Load",e]);0;a.call(d)};d.send()}function A(a,b){h.element.classList.add("loading");J=R=n=!1;q(a,function(){0;x.fire(oa,h.config.embed.color);history&&history.replaceState&&history.replaceState({id:h.config.video.id},"","/video/"+h.config.video.id);x.fire(d.configChanged,h.config,!0);x.fire(na,!0);J=!0;s();p.requestAnimationFrame(r);
b&&b()})}function w(a){if(0!==h.element.clientWidth){var b=h.element.clientWidth*z.devicePixelRatio,c=a["640"];900<=b&&a["960"]&&(c=a["960"]);1E3<=b&&a["1280"]&&(c=a["1280"]);L.setAttribute("data-thumb",c);n=!0;h.config.embed.autoplay&&"beginning"!==h.config.embed.outro?g():(a=new Image,a.src=c,h.config.embed.autoplay?g():(a.onload=function(){"none"!==L.style.backgroundImage&&(L.style.backgroundImage="url("+c+")");g()},a.onerror=g,setTimeout(g,2E3)))}}function g(){R=!0;r()}function C(){var a=h.element.clientWidth,
b=h.element.clientHeight,c=h.config.video.width/h.config.video.height,d=a-b*c,e=b-a/c,c=L.querySelector(".flideo");0<d&&10>d||0<e&&10>e?(0,a=Math.max(a/(a-d),b/(b-e)),L.classList.add("cover"),c.style.webkitTransform="scale("+a+")",c.style.transform="scale("+a+")"):(L.classList.remove("cover"),c.style.webkitTransform="",c.style.transform="")}function E(a,b,c){if(e&&e[a.will]&&!1===e[a.will].apply(null,[h.config.video.id].concat(c)))0;else if(b.apply(null,[h.config.video.id].concat(c)),e&&e[a.did])e[a.did]()}
function G(){h.config.view===la&&h.config.embed.settings&&!h.config.embed.settings.playbar?h.element.classList.add("no-playbar"):h.element.classList.remove("no-playbar");h.config.embed.settings.fullscreen?h.element.classList.add("with-fullscreen"):h.element.classList.remove("with-fullscreen");h.config.embed.settings.custom_logo?h.element.classList.add("with-custom-logo"):h.element.classList.remove("with-custom-logo")}function s(){h.config.video.thumbs&&w(h.config.video.thumbs);x.on([d.playInitiated,
d.playButtonClicked],function(){L.style.backgroundImage="none"});C();Gator(p).on("resize",C);x.on(d.didEnterFullscreen,function(){"none"!==L.style.backgroundImage&&w(h.config.video.thumbs)});Gator(p).on("resize",function(){n||w(h.config.video.thumbs)})}function F(){h.apiModule=new db(h.config,x);Object.keys(h.apiModule).forEach(function(a){if("function"===typeof h.apiModule[a])Object.defineProperty(S,a,{enumerable:!0,value:h.apiModule[a]});else{var b={enumerable:!0,get:h.apiModule[a].get};h.apiModule[a].set&&
(b.set=h.apiModule[a].set);Object.defineProperty(S,a,b)}});h.colorModule=new eb(h.config,x,h.uuid,h.element.id,$);h.overlayModule=new fb(h.config,x,Ia);h.statsModule=new gb(h.config,x);h.analyticsModule=new hb(h.config,x);h.controlsModule=new ib(h.config,x,h.element);h.titleModule=new jb(h.config,x,Z);h.controlBarModule=new kb(h.config,x,ka);h.sidedockModule=new lb(h.config,x,ea);h.notificationModule=new mb(h.config,x,T);h.outroModule=new nb(h.config,x,ga);h.popupModule=new ob(h.config,x);h.captionsModule=
new pb(h.config,x,pa,h.element);h.keyboardModule=new qb(h.config,x,h.element);Object.defineProperties(S,{pauseKeyboard:{enumerable:!0,value:h.keyboardModule.pause},unpauseKeyboard:{enumerable:!0,value:h.keyboardModule.unpause}});h.config.view!==va&&h.config.view!==za&&(h.videoModule=new bb(h.config,x,P));J=!0;r()}function H(){h.config.embed.fullscreen=!0;if(!BigScreen.enabled||z.browser.bb10)h.element.classList.add("no-fullscreen-api-support"),BigScreen.videoEnabled(h.element)||(h.element.classList.add("no-fullscreen-support"),
h.config.embed.fullscreen=!1);var a=!1,b=!1;x.on(Ta,function(){BigScreen.enabled||BigScreen.videoEnabled(h.element)?(x.fire(d.willEnterFullscreen),b=!1,BigScreen.request(h.element)):x.fire(Ka,!0)});x.on(d.fullscreenButtonClicked,function(){BigScreen.element?(x.fire(d.willExitFullscreen),BigScreen.exit()):(x.fire(d.willEnterFullscreen),b=!0,BigScreen.request(h.element))});var c=BigScreen.onenter,e=BigScreen.onexit;BigScreen.onenter=function(e){a||(h.element.contains(e)?a||(a=!0,x.fire(d.didEnterFullscreen,
h.element===e,b)):"function"===typeof c&&c(e))};BigScreen.onexit=function(){a?a&&(a=!1,x.fire(d.didExitFullscreen,b),b||x.fire(Ka,!1),b=!1):"function"===typeof e&&c()};Gator(h.element).on("click","a",function(a){BigScreen.element===h.element&&BigScreen.exit()});Gator(h.element).on("gestureend",function(a){1<a.scale&&x.fire(d.fullscreenButtonClicked)});if("undefined"!==typeof MSGesture){var g=1,v=new MSGesture;v.target=h.element;Gator(h.element).on("pointerdown",function(a){v.addPointer(a.pointerId)}).on(["MSGestureChange"],
function(a){g*=a.scale}).on(["MSGestureEnd"],function(){(!a&&2<=g||a&&1>g)&&x.fire(d.fullscreenButtonClicked);g=1})}}function M(){x.on([d.scrubbingStarted,d.volumeScrubbingStarted],function(){h.element.classList.add("scrubbing")});x.on([d.scrubbingEnded,d.volumeScrubbingEnded],function(){h.element.classList.remove("scrubbing")})}function k(){function a(b){var c=h.config.video.url;if(!(!c||b&&b.metaKey))if(0<h.config._video.currentTime&&h.config._video.currentTime<h.config.video.duration-30&&!h.config._video.paused&&
(c+="#at="+Math.floor(h.config._video.currentTime)),h.config.embed.on_site)p.location=c;else return p.open(c),f(b),x.fire(d.pauseButtonClicked),!1}Gator(h.element).on("click","a[data-clip-link]",a);x.on(ya,a)}function D(a,b){x.fire(Ja);if(null===U)X.push([a,b]);else{var c=new XMLHttpRequest;c.open(b,"//"+h.config.player_url+"/video/"+h.config.video.id+"/"+a+"?signature="+h.config.request.signature+"&session="+h.config.request.session+"&time="+h.config.request.timestamp+"&expires="+h.config.request.expires,
!0);c.withCredentials=!0;c.send()}}function B(){x.on(d.vodButtonPressed,function(a){if(h.config.user.purchased){if(!h.config.video.vod.is_feature&&h.config.video.vod.feature_id)return A(h.config.video.vod.feature_id,function(){x.fire(d.playButtonClicked)});x.fire(d.playButtonClicked)}else E($a,function(){x.fire(ua,"purchase",{productId:a})},a)})}function v(){x.on(d.likeButtonClicked,function(){h.config.user.logged_in?h.config.user.liked?E(Xa,function(){D("like","DELETE");h.config.user.liked=!1;x.fire(d.unliked)}):
E(Wa,function(){D("like","PUT");h.config.user.liked=!0;x.fire(d.liked)}):E(Ma,function(){x.fire(ua,"login-like")},"like")})}function K(){x.on(d.watchLaterButtonClicked,function(){h.config.video.url&&(h.config.user.logged_in?h.config.user.watch_later?E(Za,function(){D("watch-later","DELETE");h.config.user.watch_later=!1;x.fire(d.removedFromWatchLater)}):E(Ya,function(){D("watch-later","PUT");h.config.user.watch_later=!0;x.fire(d.addedToWatchLater)}):E(Ma,function(){x.fire(ua,"login-watch-later")},
"watch-later"))})}function I(){x.on(d.shareButtonClicked,function(){E(La,function(){x.fire(ha,"share",h.config.embed.settings.share&&h.config.embed.settings.share.embed_only)})});x.on(d.embedButtonClicked,function(){h.config.embed.settings.share.embed_only&&E(La,function(){x.fire(ha,"share",!0)})});x.on(d.overlayClosed,function(){u.resetFocus(h.element)})}function N(){x.on(Ha,A);x.on(d.configChanged,function(){G()});x.on(d.userLoggedOut,function(){q(h.config.video.id,function(){x.fire(d.configChanged,
h.config)})});x.on(d.userLogIn,function(a){q(h.config.video.id,function(){0;x.fire(d.configChanged,h.config);if(h.config.user.logged_in)switch(x.fire(d.userLoggedIn,a),a){case "like":h.config.user.liked&&x.fire(d.liked);break;case "watch-later":h.config.user.watch_later&&x.fire(d.addedToWatchLater);break;case "private":x.fire(d.privateUnlocked)}else x.fire(d.loginFailure)})})}function O(){function a(){var d=b;b=p.getComputedStyle(h.element,":after").getPropertyValue("content");d!==b&&x.fire(c[b])}
var b=null,c={tiny:d.enteredTinyMode,mini:d.enteredMiniMode,normal:d.enteredNormalMode};a();Gator(p).on("resize",a)}function qa(){var a=!1;x.on(Ja,function(){U&&U-1E3<=(new Date).getTime()&&(x.fire(d.signatureExpired),U=null)});x.on(d.signatureExpired,function(){a||(a=!0,t(function(){a=!1;x.fire(d.requestConfigReloaded,h.config.request)}))});x.on(d.requestConfigReloaded,function(){if(0<X.length)for(var a=X.shift();a;)D.apply(null,a),a=X.shift()})}function wa(){function a(){if(0===p.innerWidth)0,setTimeout(a,
250);else{var b,c=90===Math.abs(p.orientation)?screen.height:screen.width;z.mobileAndroid&&!z.browser.chrome&&!z.browser.opera&&4<=z.android&&(c/=p.devicePixelRatio);b=c/p.innerWidth;c=Math.round(10*Math.pow(b,-1.2));c=Math.max(c,10)+"px";b=Math.round(10*Math.pow(b,-0.7));b=Math.max(b,10)+"px";ka.style.fontSize=c;ea.style.fontSize=b;Z.style.fontSize=b}}x.on(d.didEnterFullscreen,function(){ka.style.fontSize="";ea.style.fontSize="";Z.style.fontSize=""}).on(d.didExitFullscreen,a);z.touch&&h.element.classList.add("touch-support");
$&&(h.element.classList.add("mobile"),a())}function ia(){if(!h.config)return q(b,ia);U=(new Date).getTime()+1E3*h.config.request.expires;0;h.config._video={};if($||z.iPad)h.config.embed.autoplay=0;h.storageModule=new rb(h.config,x);var a=u.parseTime(y.location.hash);null!==a&&(h.config.embed.time=u.limit(a,0,h.config.video.duration),z.touch||(h.config.embed.autoplay=1),-1<y.location.hash.indexOf("at=")&&history&&history.replaceState&&history.replaceState("",y.title,p.location.pathname));h.element.innerHTML+=
Aftershave.render("outer",{hideSidedock:!h.config.embed.settings.instant_sidedock});L=h.element.querySelector(".video");P=h.element.querySelector(".video-wrapper");h.element.querySelector(".target");Z=h.element.querySelector(".title");ea=h.element.querySelector(".sidedock");ka=h.element.querySelector(".controls");Ia=h.element.querySelector(".overlay-wrapper");T=h.element.querySelector(".notification-wrapper");ga=h.element.querySelector(".outro-wrapper");pa=h.element.querySelector(".captions");G();
s();F();H();M();k();B();v();K();I();N();x.on([d.passwordUnlocked,d.privateUnlocked],m);O();qa();wa();Gator(h.element).on("click",["a[tabindex]","button[tabindex]"],f);l();Object.preventExtensions&&Object.preventExtensions(S);for(x.fire(d.ready);ma.length;)ma.shift().call(S)}var h=this;h.element=c;h.uuid=Math.round(1E3*Math.random()+(new Date).getTime());c.classList.add("player-"+h.uuid);c.id||(c.id="player"+h.uuid);h.config=null;isNaN(b)&&"string"!==typeof b&&(h.config=b);e=e||null;var $=z.mobileAndroid||
z.iPhone||z.windowsPhone||z.browser.bb10,U=null,X=[],x=Aa.make(),n=!1,R=!1,J=!1,Q,Y=null,L=null,P=null,Z=null,ea=null,ka=null,Ia=null,T=null,ga=null,pa=null,S={},ma=[];Object.defineProperties(S,{config:{enumerable:!0,get:function(){return h.config},set:function(a){h.config=a;x.fire(d.configChanged,h.config)}},delegate:{enumerable:!0,set:function(a){e=a}},ready:{enumerable:!0,value:function(a){if("function"!==typeof a)throw new TypeError("You can only pass a function to ready().");ma.push(a)}}});var aa=
!0===a;if(!0!==a){var ba=function(){if(!aa){aa=!0;setTimeout(r,100);var b=(new Date).getTime()-a.startTime;p._gaq&&p._gaq.push(["player._trackTiming","Player","CSS Load",b]);0}};a.link.addEventListener("load",ba,!1);var W=function(){var b=!1;try{var c=a.link.sheet,d;c&&(d=c.cssRules,b=null===d,!b&&d&&(c.insertRule("-curl-css-test {}",0),c.deleteRule(0),b=!0))}catch(e){b="[object Opera]"!==Object.prototype.toString.call(p.opera)&&/security|denied/i.test(e.message)}if(!b)return setTimeout(W,50);ba()};
W()}ia();return S}}(),hb=function(){return function(c,b){function a(){switch(c._video&&c._video.currentRenderer){case "html":return"HTML5";case "flash":return"Flideo";case "moogaloop":return"Moogaloop";default:return"Player"}}function e(b,d){d||(d=c.video.id,c.video.title&&c.video.owner&&c.video.owner.name&&(d+=" - "+c.video.title+" from "+c.video.owner.name));0;p._gaq&&p._gaq.push(["player._trackEvent",a(),b,d])}function f(a,b){0;p._gaq&&p._gaq.push(["player._trackSocial",a,b,c.video.share_url])}
var m=c.request.session,l=!1,r=!1,q=!0;(function(){b.on(d.playInitiated,function(){r||(e("Play"),r=!0)});b.on(d.didEnterFullscreen,function(a){e("Entered Fullscreen"+(a?"":" (native)"))});b.on(d.didExitFullscreen,function(){e("Exited Fullscreen")});b.on(9,function(a){"hd"===a?e("HD Turned On"):e("HD Turned Off")});b.on(ha,function(a){"hd-not-allowed"===a&&e("HD Attempt")});b.on(d.liked,function(){e("Liked")});b.on(d.unliked,function(){e("Unliked")});b.on(d.addedToWatchLater,function(){e("Added to Watch Later")});
b.on(d.removedFromWatchLater,function(){e("Removed from Watch Later")});b.on(d.shareButtonClicked,function(){e("Share Button Clicked")});b.on(d.embedButtonClicked,function(){e("Embed Button Clicked")});b.on(d.embedCodeCopied,function(){l||(l=!0,e("Embed Code Copied"))});b.on(d.overlayClosed,function(){l=!1});b.on(d.scalingButtonClicked,function(a){a?e("Scaling Turned On"):e("Scaling Turned Off")});b.on(d.userLogIn,function(){e("Logged In")})})();(function(){b.on(d.facebookButtonClicked,function(){f("Facebook",
"share")});b.on(d.twitterButtonClicked,function(){f("Twitter","tweet")});b.on(d.emailButtonClicked,function(){f("Email","email")})})();(function(){var e;b.on([d.bufferStarted,d.scrubbingStarted],function(a){e||(e=a||(new Date).getTime())});b.on(d.bufferEnded,function(){if(0<e){var b=c._video.currentFile.quality,d="Buffer Time";q&&(q=!1,d="Start Time");var g=e,g=(new Date).getTime()-g;0;p._gaq&&p._gaq.push(["player._trackTiming",a(),d,g,b]);e=null}})})();(function(){b.on(d.configChanged,function(a){c=
a;m!==a.request.session&&(p._gaq&&p._gaq.push(["player._trackPageview","/video/"+c.video.id]),q=!0,r=!1)})})();b.fire(d.analyticsModuleReady);return{}}}(),db=function(c){return function(b,a){function e(a,b){this.message=b;try{l({event:"error",data:{message:b,code:a}})}catch(c){}}function f(){if(b.view===za)throw new e("private_video","The video is private.");if(b.view===va)throw new e("password_video","The video is password-protected. The viewer must enter the password first.");}function m(a){if(a&&
""!==a){if("object"===typeof a)return a;try{return JSON.parse(a)}catch(b){var c={};a.split("&").forEach(function(a){try{var b=a.split("="),d=decodeURIComponent(b[0]),e=decodeURIComponent(b[1]);"id"!==d&&("params"===d&&(d="value"),e=e.split(",")[0],c[d]=e)}catch(g){}});return c}}}function l(a){if(a.event&&(g.fire(a.event,a.data),!w[a.event]))return;if(C){var d="";b.embed.player_id&&(a.player_id=b.embed.player_id);if(1===b.embed.api){d=a.event;if(1===b.embed.api){for(var e in D)if(D[e]===a.event){d=
e;break}switch(d){case "onSeek":case "onProgress":delete a.data.percent;delete a.data.duration;break;case "onLoading":delete a.data.seconds,delete a.data.duration}}e="method="+encodeURIComponent(d||a.method);e+="&params=";d=[];if(a.value!==ca)d.push(encodeURIComponent(a.value));else if("object"===typeof a.data)for(var f in a.data)d.push(encodeURIComponent(a.data[f]));else a.data!==ca&&d.push(encodeURIComponent(a.data));a.player_id&&d.push(a.player_id);d=e+=d.join(",")}else try{d=JSON.stringify(a)}catch(s){}0;
if(c.parent!=c)try{c.parent.postMessage(d,A)}catch(l){}}}function r(a){if(a&&"_"!==a.substr(0,1)){1===b.embed.api&&(a=a.replace("api_",""));switch(a){case "changeColor":return B.color.set;case "paused":return B.paused.get;case "seekTo":return B.currentTime.set}if("function"===typeof B[a])return B[a];var c=a.substr(0,3);a=a.substr(3,1).toLowerCase()+a.substr(4);return B[a]&&B[a][c]?B[a][c]:!1}}function q(a){if(0===(y.referrer||c.location.origin||c.location.href).indexOf(a.origin)){var b=m(a.data);
a=b.method;var b=b.value,d=r(a);d&&(0,b=d.call(null,b),b!==ca&&""!==b&&l({method:a,value:b}))}}function t(){if(G&&F){try{switch(F){case "not-supported":throw new e("not_supported","This video is not supported in this browser.");case "no-files":throw new e("file_error","There was an error loading the files for this video.");default:throw new e("playback","An error occurred during playback.");}}catch(a){}F=null}}var A=decodeURIComponent(y.referrer||b.request.referrer),w={ready:!0,error:!0},g=Aa.make({}),
C=!(!c.postMessage||!c.parent.postMessage),E=null,G=!1,s=!1,F=null,p=!1,M,k="play pause finish playProgress loadProgress seek cuechange".split(" "),D={onFinish:"finish",onLoading:"loadProgress",onLoad:"ready",onProgress:"playProgress",onPlay:"play",onPause:"pause",onSeek:"seek"};e.prototype=Error();var B={addEventListener:function(a,b){a in D&&(a=D[a]);if(0>k.indexOf(a))throw new e("invalid_event",'"'+a+'" is not a valid event. Valid events are: '+k.join(", ")+".");if(b)g.on(a,b);else w[a]=!0;0},
removeEventListener:function(a,b){b?g.off(a,b):w[a]=!1;0},play:function(){f();if("undefined"!==typeof z&&(z.iPhone||z.iPad)&&!p)throw new e("play","The viewer must initiate playback first.");a.fire(d.playButtonClicked,!0)},pause:function(){f();a.fire(d.pauseButtonClicked)},loadVideo:function(c){if(!b.embed.on_site&&isNaN(c))throw new e("invalid_video","The video id must be a number.");a.fire(Ha,c)},unload:function(){b.view!==la&&b.view!==fa||a.fire(na)},_setEmbedSetting:function(c,e){b.embed.on_site&&
(c in b.embed.settings||"custom_logo"===c)&&(e="object"===typeof e?e:Number(e),"badge"===c&&(e?e=M:M=b.embed.settings.badge),b.embed.settings[c]=e,a.fire(d.embedSettingChanged,c,e),a.fire(d.configChanged,b))},color:{get:function(){return b.embed.color.replace("#","")},set:function(c){if(b.embed.settings.color&&!b.embed.on_site)throw new e("color_locked","The creator of the video has chosen to always use "+(new T(b.embed.color)).hex+".");c=(c+"").replace("#","");if("string"!==typeof c||3!==c.length&&
6!==c.length||isNaN(parseInt(c,16)))throw new e("invalid_color","The color should be 3- or 6-digit hex value.");if("undefined"===typeof T||"implement"in T)a.fire(oa,c);else try{var d=new T(c);a.fire(oa,d);if(3>(new T(23,35,34,0.75)).contrast(d).ratio)throw new e("color_contrast","Specified color does not meet minimum contrast ratio. We recommend using brighter colors. See WCAG 2.0 guidelines: http://www.w3.org/TR/WCAG/#visual-audio-contrast");}catch(g){}}},currentTime:{get:function(){return b._video&&
0.1<b._video.currentTime?u.round(b._video.currentTime):0},set:function(c){c=parseFloat(c);if(isNaN(c)||0>c||c>b._video.duration)throw new e("invalid_time","Seconds must be a positive float less than the duration of the video ("+b._video.duration+").");a.fire(Ga,null,c);a.fire(d.mousedOver)}},duration:{get:function(){return u.round(b.video.duration)}},loop:{get:function(){return!!b.embed.loop},set:function(b){a.fire(8,b)}},paused:{get:function(){return b._video&&"paused"in b._video?!!b._video.paused:
!0}},videoEmbedCode:{get:function(){return b.video.embed_code}},videoHeight:{get:function(){return b.video.video_height||b.video.height}},videoId:{get:function(){return b.video.id}},videoTitle:{get:function(){return b.video.title}},videoWidth:{get:function(){return b.video.video_width||b.video.width}},videoUrl:{get:function(){return b.video.url}},volume:{get:function(){var a=u.round(b.request.cookie.volume);return 1===b.embed.api?Math.round(100*a):a},set:function(c){c=parseFloat(c);1===b.embed.api&&
(c/=100);if(isNaN(c)||0>c||1<c)throw new e("invalid_volume","Volume should be a float between 0 and 1.");E=c;a.fire(Z,c,!0)}}};a.on(d.playInitiated,function(){p=!0});c.addEventListener?c.addEventListener("message",q,!1):c.attachEvent("onmessage",q);(function(){a.on(d.played,function(){s||(s=!0,l({event:"play"}))});a.on(d.paused,function(){s=!1;l({event:"pause"})});a.on(d.ended,function(){s=!1;l({event:"finish"})});a.on(d.playProgress,function(a,b,c){l({event:"playProgress",data:{seconds:u.round(a),
percent:u.round(c),duration:u.round(b)}})});a.on(d.loadProgress,function(a,b,c){l({event:"loadProgress",data:{bytesLoaded:-1,bytesTotal:-1,percent:u.round(c),duration:u.round(b),seconds:u.round(a)}})});a.on(d.seeked,function(a,b,c){l({event:"seek",data:{seconds:u.round(a),percent:u.round(c),duration:u.round(b)}})});a.on(d.error,function(a){F=a;t()});a.on(d.cueChanged,function(a,b){var c=null,d=null;a&&(d=a.split("."),c=d[0],d=d[1]);l({event:"cuechange",data:{language:c,kind:d,cues:b}})})})();(function(){a.on(na,
function(){F=null;p=!1})})();(function(){a.on(d.configChanged,function(c){b=c;E&&setTimeout(function(){0;a.fire(Z,E,!0)},0)})})();a.fire(d.apiModuleReady);a.on(d.ready,function(){G=!0;l({event:"ready"});t()});return B}}(this),pb=function(){return function(c,b,a,e){function f(){a.style.fontSize=Math.max(10,Math.round(0.045*e.clientHeight))+"px"}function m(){a.classList.remove("hidden");a.removeAttribute("hidden")}var l=!1,r=!1;(function(){b.on(d.cueChanged,function(b,c){for(;a.firstChild;)a.removeChild(a.firstChild);
if(c.length){var d=y.createDocumentFragment();c.forEach(function(a){var b=y.createElement("span");b.innerHTML=a.html;d.appendChild(b)});a.appendChild(d);l?m():r=!0}else a.classList.add("hidden"),a.setAttribute("hidden","")});b.on(d.playInitiated,function(){l=!0;r&&(r=!1,m())}).on(na,function(){l=!1})})();f();p.addEventListener("resize",f,!1);b.on([d.didEnterFullscreen,d.didExitFullscreen],f);(function(){b.on(d.controlBarVisibilityChanged,function(b){b?a.classList.add("with-controls"):a.classList.remove("with-controls")})})();
(function(){b.on(d.overlayOpened,function(){a.classList.add("invisible")}).on(d.overlayClosed,function(){a.classList.remove("invisible")})})();(function(){b.on(d.ended,function(){"nothing"!==c.embed.outro&&a.classList.add("invisible")}).on([d.played,d.scrubbingStarted],function(){a.classList.remove("invisible")})})();return{}}}(),eb=function(){var c=[".title a"],b=[".title a:hover"],a="a;.overlay-wrapper .footnote.share a:hover;.title h1;.title span.user;.outro .videos h1;.outro .videos h2;.menu li:hover;.menu li.active".split(";"),
e=["a:hover",".overlay-wrapper .close:hover",".overlay-wrapper .back:hover",".outro .videos li h1:hover"],f=[".play-bar .on .fill",".play-bar a:hover .fill",".play-bar button:not(.toggle):hover .fill",".tiny-cc-cell .on .fill",".sidedock .on .fill"],m=[".sidedock .on:hover .fill"],l=[".play-bar .on .stroke",".sidedock .on .stroke"],r=[".sidedock .on:hover .stroke"],q='.sidedock button:hover;.player.touch-support .sidedock button:active;.controls .play:hover;.controls .play-bar .played;.controls .tiny-fullscreen-cell:hover;.controls .volume div;.overlay .buttons li;.overlay .window-wrapper button;.overlay .window-wrapper input[type="submit"];.overlay .window-wrapper a[role="button"];.overlay .embed-copy;.outro a[role="button"];.outro .videos li:hover img;.outro .videos li a:focus img;.outro .vod li;.menu li.active:before'.split(";"),
p=[".outro .videos li:hover img",".outro .videos li a:focus img",".menu li:hover:before",".menu li.active:before"],A='.overlay-wrapper .overlay .buttons li a;.overlay-wrapper .overlay button.embed-copy;.overlay-wrapper .footnote.share a:hover;.overlay .window-wrapper button;.overlay .window-wrapper input[type="submit"];.overlay .window-wrapper a[role="button"];.outro-wrapper .outro-inner a[role="button"];.sidedock button:hover'.split(";"),w=".controls .play:hover .fill;.sidedock button:hover .fill;.play-bar a:hover .fill;.play-bar button:not(.toggle):hover .fill;.controls .tiny-fullscreen-cell:hover .fill;.sidedock .on .fill".split(";"),
g=[".controls .play:hover .stroke",".sidedock button:hover .stroke",".sidedock .on .stroke"],C=['.overlay-wrapper .overlay a[role="button"]',".overlay-wrapper .overlay button.embed-copy",".sidedock button:hover"],E=[".controls .play:hover .fill",".sidedock button:hover .fill",".controls .tiny-fullscreen-cell:hover .fill"],G=[".sidedock button:hover .stroke"],s=['.overlay .window-wrapper input[type="submit"]:active',".overlay .embed-copy.zeroclipboard-is-active",".outro .vod-watch-button:active",".sidedock button:active"];
return function(F,H,z,k,D){function B(a,b){var c=".player-"+z+" ",c=c+a.join(","+c);if(b)var d="#"+k+" ",c=c+(","+d+a.join(","+d));D&&(c=c.replace(/:hover/g,":active"));return c}var v=null;(function(){H.on(oa,function(k){var I;try{I=new T(k)}catch(N){I=new T("00adef")}var O;k=I;if(v)for(;0<v.cssRules.length;)v.deleteRule(0);else I=y.createElement("style"),I.setAttribute("data-player",z),y.querySelector("head").appendChild(I),v=I.sheet;I=k.complement;var D=new T(23,35,34,0.75);D.contrast(k);var wa=
(new T(0,0,0,0.15)).overlayOn(k);3>D.contrast(I).ratio&&I.lighten(5,3,D);D=40>k.lightness?k.clone().lighten(15,3,k):k.clone().darken(15,3,k);u.addCssRule(B(c,!0),"color:"+k.hex+" !important",v);u.addCssRule(B(b,!0),"color:"+I.hex+" !important",v);u.addCssRule(B(a),"color:"+k.hex,v);u.addCssRule(B(f),"fill:"+k.hex,v);u.addCssRule(B(l),"stroke:"+k.hex,v);u.addCssRule(B(q),"background-color:"+k.hex,v);u.addCssRule(B(p),"border-color:"+k.hex,v);u.addCssRule(B(e),"color:"+I.hex,v);u.addCssRule(B(m),"fill:"+
D.hex,v);u.addCssRule(B(r),"stroke:"+D.hex,v);u.addCssRule(B(s),"background-color:"+wa.hex,v);0.95<k.luminance&&(I=k.clone().darken(15,3,k),u.addCssRule(B(A),"color:"+I.hex,v),u.addCssRule(B(w),"fill:"+I.hex,v),u.addCssRule(B(g),"stroke:"+I.hex,v),D=I.clone().darken(15,3,I),u.addCssRule(B(m),"fill:"+D.hex,v),u.addCssRule(B(r),"stroke:"+D.hex,v));175<k.yiq&&0.95>k.luminance&&(O=D.clone().darken(15,3,D),u.addCssRule(B(m),"fill:"+O.hex,v),u.addCssRule(B(r),"stroke:"+O.hex,v),u.addCssRule(B(C),"color:"+
D.hex,v),u.addCssRule(B(E),"fill:"+D.hex,v),u.addCssRule(B(G),"stroke:"+D.hex,v));O={main:k.hex,selected:D.hex,sidedockHover:O?D.hex:0.95<k.luminance?I.hex:T.white.hex,sidedockSelected:0.95<k.luminance?I.hex:k.hex,sidedockSelectedHover:O?O.hex:D.hex};F._colors=O;F.embed.color=O.main.replace("#","");H.fire(d.colorChanged,F.embed.color)});H.fire(oa,F.embed.color)})();return{}}}(),ib=function(){return function(c,b,a){function e(){F&&(clearTimeout(A),A=setTimeout(m,w))}function f(){BigScreen.element&&
BigScreen.element===a&&!E&&(a.style.cursor="none",E=C=!0)}function m(a){if(s||G)clearTimeout(A),A=null,y.activeElement&&(k.contains(y.activeElement)||D.contains(y.activeElement))||(b.fire(a?d.mousedOut:d.mouseTimeout),C=!0,M.classList.add("hidden"),M.setAttribute("hidden",""),g=!0,f())}function l(){s&&G||(b.fire(d.mousedOver),M.classList.remove("hidden"),M.removeAttribute("hidden"));e()}function r(){b.on([d.playProgress,d.seeked],function K(a){a>=u&&null===A&&(b.fire(d.targetTimeReached),b.off([d.playProgress,
d.seeked],K))})}var q=2E3,t=4500,A=null,w=z.touch?t:q,g=!0,C=!0,E=!1,G=!0,s=!1,F=!1,u=1.75,M=a.querySelector(".target"),k=a.querySelector(".sidedock"),D=a.querySelector(".controls"),B=a.querySelector(".title");(function(){function c(){b.fire(Ja);l()}function d(b){w=q;C?C=!1:(E&&(a.style.cursor="default",E=!1),0===b.screenX||b.screenX===screen.width-1||0===b.screenY||b.screenY===screen.height-1?(clearTimeout(A),A=null,f(),h&&(m(!0),h=!1)):(h=!0,g&&l(),e()))}function r(){w=t;e()}function p(){m(!0)}
function F(a){a=D.contains(a.target)||k.contains(a.target);s&&G?a||!s&&!G||m(!0):l();return!1}function u(a){if("mouse"===a.pointerType||a.pointerType===a.MSPOINTER_TYPE_MOUSE)return w=q,c(a);w=t;F(a)}function wa(a){if("mouse"===a.pointerType||a.pointerType===a.MSPOINTER_TYPE_MOUSE)return d(a)}function H(a){if("mouse"===a.pointerType||a.pointerType===a.MSPOINTER_TYPE_MOUSE)return p(a)}var h=!0;if(z.pointerEvents)Gator(a).on(["pointerenter","MSPointerEnter"],u).on(["pointermove","MSPointerMove"],wa).on(["pointerleave",
"MSPointerLeave"],H);else Gator(a).on("touchmove",r).on("touchend",F).on("mouseenter",c).on("mousemove",d).on("mouseleave",p)})();(function(){b.on([d.ended,d.played,d.paused],l).on([d.bufferEnded,d.scrubbingEnded,d.volumeChanged],e).on(d.playInitiated,function(){F=!0});b.on(d.controlBarVisibilityChanged,function(a){G=a}).on(d.sidedockVisibilityChanged,function(a){s=a})})();(function(){function e(a){return a.classList.contains("title")||a.classList.contains("sidedock")||a.classList.contains("target")||
B.contains(a.parentNode)&&"HEADER"===a.parentNode.tagName}var g=!1,f=!1,s=0;b.on(d.menuVisibilityChanged,function(a){f=a});Gator(a).on(z.pointerEvents?["pointerup","MSPointerUp"]:"click",function(a){!f&&2!==a.button&&a.target.classList&&e(a.target)&&("pointerup"!==a.type&&"MSPointerUp"!==a.type||"mouse"===a.pointerType||a.pointerType===a.MSPOINTER_TYPE_MOUSE)&&e(a.target)&&(s++,1===s&&setTimeout(function(){1===s?b.fire(c._video.paused?d.playButtonClicked:d.pauseButtonClicked):b.fire(d.fullscreenButtonClicked);
s=0},200))});Gator(a).on("mousedown",".video-wrapper",function(a){if(!g)return M.classList.remove("hidden"),M.removeAttribute("hidden"),2!==a.button&&y.createEvent&&(a=y.createEvent("MouseEvents"),a.initMouseEvent("click",!0,!0,p,1,0,0,0,0,!1,!1,!1,!1,0,null),M.dispatchEvent(a)),!1}).on("contextmenu",".video",function(a){M.classList.remove("hidden");M.removeAttribute("hidden");return!1});b.on(Ka,function(a){a?(g=!0,M.classList.add("hidden")):(g=!1,M.classList.remove("hidden"))})})();(function(){if(!z.touch){var b;
Gator(a).on("focus","*[tabindex]",function(){clearTimeout(b);b=null;y.activeElement===this&&l()});Gator(a).on("blur","*[tabindex]",function(){y.activeElement===this&&(b=setTimeout(m,50))})}})();(function(){b.on(d.didEnterFullscreen,f).on(d.didExitFullscreen,function(a){g=!0;a&&m()})})();r();(function(){b.on(na,function(){G=C=g=!0;F=s=!1;r();clearTimeout(A);A=null})})();return{}}}(),kb=function(){function c(a,b,c){a+="";return Array(b-a.length+1).join(c||"0")+a}function b(a,b){var d=Math.floor(a/3600%
60),m=Math.floor(a/60%60);a=Math.floor(a%60);if(b){var l=a+" second"+(1===a?"":"s");0<m&&(l=m+" minute"+(1===m?"":"s")+", "+l);0<d&&(l=d+" hour"+(1===d?"":"s")+", "+l);return l}return(0<d?d+":":"")+c(m,2)+":"+c(a,2)}return function(a,c,f){function m(){if(!n){var a=L.getBoundingClientRect().right,b=parseInt(p.getComputedStyle(L,"").borderRightWidth,10);n=a-b}return n}function l(a){var b;if(!R){b=L.getBoundingClientRect().left;var c=parseInt(p.getComputedStyle(L,"").borderLeftWidth,10);R=b+c}b=R;c=
m()-b;return u.limit((a-b)/c,0,1)}function r(){if($&&!U&&X&&(a._video.loadProgress||a._video.currentTime)){var b='data:image/svg+xml,<svg width="65" height="40" xmlns="http://www.w3.org/2000/svg"><rect height="3" width="'+(a._video.loadProgress||0)/a.video.duration*65+'" x="0" y="37" fill="#666"/><rect height="3" width="'+(a._video.currentTime||0)/a.video.duration*65+'" x="0" y="37" fill="#'+a.embed.color+'"/></svg>';p.requestAnimationFrame(function(){ka.style.backgroundImage='url("'+b.replace(/"/g,
"'")+'")'})}}function q(c,d){B&&!h&&(d=d||a.video.duration*c||0,p.requestAnimationFrame(function(){var a=d;Ia.style.left=u.round(100*c)+"%";ca.innerHTML=b(a);t(c,d)}))}function t(a,c){ea.style.width=u.round(100*a)+"%";ea.setAttribute("aria-valuenow",u.round(c));ea.setAttribute("aria-valuetext",b(Math.round(c),!0)+" played")}function A(a,c){T.style.width=u.round(100*a)+"%";T.setAttribute("aria-valuenow",u.round(c));T.setAttribute("aria-valuetext",b(c,!0)+" loaded")}function w(){B=!0;Q.classList.contains("state-playing")?
(c.fire(d.pauseButtonClicked),g()):(c.fire(d.playButtonClicked),C())}function g(){x=!1;Q.classList.remove("state-playing");Q.classList.add("state-paused");var a=Q.getAttribute("data-title-play");Q.setAttribute("title",a);Q.setAttribute("aria-label",a)}function C(){x=!0;Q.classList.add("state-playing");Q.classList.remove("state-paused");var a=Q.getAttribute("data-title-pause");Q.setAttribute("title",a);Q.setAttribute("aria-label",a)}function E(){!X||!(B&&ia||K)||v||xa&&!K||K&&a.view===fa||O||I||(X=
!1,c.fire(d.controlBarVisibilityChanged,X),f.classList.add("invisible"))}function G(){X||K||!J||(f.classList.remove("hidden"),f.removeAttribute("hidden"),J.classList.add("hidden"),J.setAttribute("hidden",""),r(),setTimeout(function(){X=!0;c.fire(d.controlBarVisibilityChanged,X);f.classList.remove("invisible")},0))}function s(b,d){var g=[];"text_tracks"in a.request&&(a.request.text_tracks.forEach(function(a){var b=a.lang+"."+a.kind,c="CC"===a.label.substring(a.label.length-2);g.push({label:a.label+
("captions"!==a.kind||c?"":" CC"),id:b,active:Ca===b})}),g.push({label:"None",id:"off",active:null===Ca}));var h=new sb(g,b,d,c);h.on("selected",function(a){"off"===a?c.fire(Pa):c.fire(Oa,a)});return h}function F(){p.requestAnimationFrame(function(){var c=a.video.duration;Ia.style.left=u.round(0)+"%";ca.innerHTML=b(c);t(0,0);A(0,0);ka.style.backgroundImage=""})}function H(){if(a.view===la||a.view===fa){var c=a.embed.settings,d="text_tracks"in a.request&&a.request.text_tracks.length,d={targetBlank:0===
a.embed.on_site,playState:x?"playing":"paused",volume:k&&c.volume,ccButton:Ba.support.textTracks&&d,ccOn:null!==Ca,hdButton:a.video.hd,hdOn:a.video.allow_hd&&(null===a.request.cookie.hd?a.video.default_to_hd:a.request.cookie.hd),airplayButton:z.airPlay,scalingButton:c.scaling,fullSize:a.request.cookie.scaling?1:0,fullscreenButton:c.fullscreen,vimeoLogo:{show:c.logo,showLink:!!a.video.url,url:a.video.url},duration:b(a.video.duration),rawDuration:a.video.duration};c.custom_logo&&(c=c.custom_logo,d.customLogo=
{showLink:null!==c.url,url:c.url,img:c.img,sticky:c.sticky,width:c.width,height:c.height});f.innerHTML=Aftershave.render("controls",d);Q=f.querySelector(".play");Y=f.querySelector(".play-bar");L=f.querySelector(".progress");P=Y.querySelector(".buffer");T=Y.querySelector(".loaded");ea=Y.querySelector(".played");ka=Q.querySelector(".tiny-bars");Ia=f.querySelector(".timecode");ca=Ia.querySelector(".box");ga=f.querySelector(".ghost-timecode");pa=ga.querySelector(".box");(S=f.querySelector(".volume"))&&
(ma=[].slice.call(S.querySelectorAll("div"),0));aa=f.querySelector(".hd");ba=f.querySelector(".play-bar .cc");ra=f.querySelector(".tiny-cc-cell .cc");z.airPlay&&(da=f.querySelector(".airplay-container"),ja=f.querySelector(".airplay"));sa=f.querySelector(".scaling");Da=f.querySelector(".fullscreen");J||(J=y.createElement("button"),J.className="focus-dummy hidden",J.setAttribute("tabindex","2"),J.setAttribute("hidden",""),J.setAttribute("aria-hidden","true"),J.setAttribute("title","Focus dummy (focuses the play button when the controls are hidden)"),
f.parentElement.insertBefore(J,f))}}function M(){c.on(d.loadProgress,function(a,b,c){D||p.requestAnimationFrame(function(){A(c,a);ta()})})}var k=!0,D=!1,B=!1,v=!1,K=!1,I=!1,N=!1,O=!1,qa=!1,wa=!1,ia=!1,h=!1,$,U=!1,X=!0,x=!1,n=null,R=null,J,Q,Y,L,P,T,ea,ka,Ia,ca,ga,pa,S,ma,aa,ba,W,ra,V,Ca=null,da,ja,xa=!1,sa,Da,ta=u.throttle(r,1E3);H();(function(){u.attachClickHandler(f,".play",w);c.on([d.playInitiated,d.playButtonClicked],C);c.on([d.pauseButtonClicked,d.paused,d.error],g);c.on(d.played,function(){C()});
c.on(d.ended,function(){h=!1;g();q(1)});c.on(d.overlayOpened,function(a){"notsupported"===a&&g()})})();(function(){function b(a){if(s===a.pointerId&&!1!==a.isPrimary){var d=a.clientX;a.targetTouches&&0<a.targetTouches.length&&(d=a.targetTouches[0].clientX,a.preventDefault());a=l(d);q(a);c.fire(Ga,a)}}function g(a){var h=a.type;"pointerup"===h||"MSPointerUp"===h?Gator(f).off(["pointermove","MSPointerMove"],".progress",b).off(["pointerup","MSPointerUp"],".progress",g):"touchend"===a.type?Gator(f).off("touchmove",
b).off("touchend",g):Gator(y).off("mousemove",b).off("mouseup",g);c.fire(d.scrubbingEnded)}c.on(d.playProgress,function(b,c,d){h&&(0===a.embed.time||0<a.embed.time&&b>=a.embed.time)&&(h=!1);I||(q(d,b),ta())});c.on(d.scrubbingStarted,function(a){I=!0;N=a});c.on(d.scrubbingEnded,function(){N=I=!1});var s;c.on(d.seeked,function(a,b,c){N&&q(c)});Gator(f).on(["pointerdown","MSPointerDown","touchstart","mousedown"],".progress",function(a){if(!a.button||2!==a.button){c.fire(d.scrubbingStarted);var h=a.type;
if("pointerdown"===h||"MSPointerDown"===h){s=a.pointerId;try{a.target.msSetPointerCapture?a.target.msSetPointerCapture(s):a.target.setPointerCapture(s)}catch(k){}Gator(f).on(["pointermove","MSPointerMove"],".progress",b).on(["pointerup","MSPointerUp"],".progress",g)}else if("touchstart"===h)Gator(f).on("touchmove",b).on("touchend",g);else Gator(y).on("mousemove",b).on("mouseup",g);h=a.clientX;a.targetTouches&&0<a.targetTouches.length&&(h=a.targetTouches[0].clientX,a.preventDefault());a=l(h);q(a);
c.fire(Ga,a,null);return!1}})})();(function(){c.on(d.bufferStarted,function(){P.classList.remove("hidden");O=!0;G()});c.on(d.bufferEnded,function(){P.classList.add("hidden");O=!1})})();(function(){function g(a){a.target===Y&&(a=l(a.clientX),q(a),c.fire(Ga,a))}function h(){ga&&ga.classList.add("invisible");wa=!1;Gator(Y).off("click",g)}Gator(f).on("mouseenter",".progress",function(a){wa||(p.requestAnimationFrame(function(){ga.classList.remove("invisible");wa=!0}),Gator(Y).on("click",g))}).on("mousemove",
".play-bar",function(c){if(wa){var d=l(c.clientX),g=(100*d).toFixed(3);p.requestAnimationFrame(function(){ga.style.left=g+"%";pa.innerHTML=b(a.video.duration*d);c.clientX>m()+10&&h()})}}).on("mouseleave",".play-bar",h);Gator(f).on("transitionend",".ghost-timecode",function(a){"opacity"===a.propertyName&&"0"===p.getComputedStyle(this,"").opacity&&(ga.style.left=0)},!1);c.on(d.mousedOut,h)})();(function(){function a(b){var d=b.clientX;b.targetTouches&&(d=b.targetTouches[0].clientX,b.preventDefault());
b=h(d);c.fire(Z,b);g(b)}function b(g){qa=!1;c.fire(d.volumeScrubbingEnded);var h=g.type;"pointerup"===h||"MSPointerUp"===h?Gator(f).off(["pointermove","MSPointerMove"],".volume",a).off(["pointerup","MSPointerUp"],".volume",b):"touchend"===g.type?Gator(y).off("touchmove",a).off("touchend",b):Gator(y).off("mousemove",a).off("mouseup",b);S.setAttribute("tabindex",S.getAttribute("data-tabindex"));S.removeAttribute("data-tabindex")}function g(a){if(S){var b=a/(1/ma.length),c=Math.ceil(b),d=b%1,h;0.33>=
d&&(h="fill1");0.33<d&&0.66>=d&&(h="fill2");ma.forEach(function(a,b){a.classList.remove("fill0");a.classList.remove("fill1");a.classList.remove("fill2");b===c-1&&d&&0.66>=d?a.classList.add(h):b>c-1&&a.classList.add("fill0")});S.setAttribute("aria-valuenow",a.toFixed(3));S.setAttribute("aria-valuetext",Math.round(100*a)+"%")}}function h(a){var b=S.getBoundingClientRect().left,c=S.getBoundingClientRect().right-b;return u.limit((a-b)/c,0,1)}Gator(f).on("mouseover",".volume div",function(){var a=this;
a.classList.add("hover");p.requestAnimationFrame(function(){a.classList.remove("hover");a.classList.add("animate")})});Gator(f).on("transitionend",".volume div",function(a){"height"===a.propertyName&&12===this.clientHeight&&this.classList.remove("animate")});Gator(y).on("contextmenu",".volume",function(){this.blur()});var s;Gator(f).on(["pointerdown","MSPointerDown","touchstart","mousedown"],".volume",function(k){if(1===k.which){S.setAttribute("data-tabindex",S.getAttribute("tabindex"));S.removeAttribute("tabindex");
qa=!0;c.fire(d.volumeScrubbingStarted);var l=k.type;if("pointerdown"===l||"MSPointerDown"===l){s=k.pointerId;try{k.target.msSetPointerCapture?k.target.msSetPointerCapture(s):k.target.setPointerCapture(s)}catch(m){}Gator(f).on(["pointermove","MSPointerMove"],".volume",a).on(["pointerup","MSPointerUp"],".volume",b)}else if("touchstart"===l)Gator(y).on("touchmove",a).on("touchend",b);else Gator(y).on("mousemove",a).on("mouseup",b);l=k.clientX;k.targetTouches&&(l=k.targetTouches[0].clientX);k=h(l);c.fire(Z,
k);g(k)}});c.on(d.volumeChanged,function(a){!qa&&ma&&g(a)})})();(function(){function a(b){Ca=b;W&&(W.setActiveItem(b),setTimeout(function(){W.hide()},100));V&&(V.setActiveItem(b),setTimeout(function(){V.hide()},100));ba&&(ba.classList.add("on"),ba.classList.remove("off"));ra&&(ra.classList.add("on"),ra.classList.remove("off"))}function b(){Ca=null;W&&(W.setActiveItem("off"),setTimeout(function(){W.hide()},100));V&&(V.setActiveItem("off"),setTimeout(function(){V.hide()},100));ba.classList.add("off");
ba.classList.remove("on");ra.classList.add("off");ra.classList.remove("on")}u.attachClickHandler(f,".cc",function(){ba.contains(this)&&!W?(0,W=s(ba,Y),W.show()):ra.contains(this)&&!V&&(0,V=s(ra,f),V.show());c.fire(d.ccButtonClicked)});c.on(d.captionsChanged,function(c){if(c)return a(c);b()}).on(d.controlBarVisibilityChanged,function(a){a||(W&&W.hide(),V&&V.hide())})})();(function(){u.attachClickHandler(f,".hd",function(){c.fire(d.hdButtonClicked)});c.on(d.hdButtonClicked,function(){if(!a.video.allow_hd)return c.fire(ha,
"hd-not-allowed");var b=aa.classList.contains("on")?"sd":"hd";c.fire(9,b)});c.on(9,function(a){"hd"===a?(aa.classList.add("on"),aa.classList.remove("off"),aa.setAttribute("title",aa.getAttribute("data-title-on"))):(aa.classList.add("off"),aa.classList.remove("on"),aa.setAttribute("title",aa.getAttribute("data-title-off")))});c.on(Qa,function(){H()}).on(Sa,function(){k=!1;H()})})();(function(){z.airPlay&&(u.attachClickHandler(f,".airplay",function(){c.fire(d.airPlayButtonPressed)}),c.on(d.airPlayAvailable,
function(){da.classList.remove("hidden");da.hidden=!1}).on(d.airPlayNotAvailable,function(){da.classList.add("hidden");da.hidden=!0}).on(d.airPlayActivated,function(){xa=!0;ja.classList.add("on");ja.setAttribute("title",ja.getAttribute("data-title-on"));G()}).on(d.airPlayDeactivated,function(){xa=!1;ja.classList.remove("on");ja.setAttribute("title",ja.getAttribute("data-title-off"))}))})();(function(){function b(a){sa&&(sa.setAttribute("data-full-size",a?"1":"0"),sa.setAttribute("title",sa.getAttribute(a?
"data-title-full-size":"data-title-actual-size")))}u.attachClickHandler(f,".scaling",function(){c.fire(d.scalingButtonClicked);c.fire(4,!a.request.cookie.scaling)});c.on(4,b);b(a.request.cookie.scaling)})();(function(){u.attachClickHandler(f,".fullscreen",function(){c.fire(d.fullscreenButtonClicked)});c.on(d.didEnterFullscreen,function(){U=!0;Da.setAttribute("title",Da.getAttribute("data-title-unfullscreen"))});c.on(d.didExitFullscreen,function(a){U=!1;Da.setAttribute("title",Da.getAttribute("data-title-fullscreen"));
r();a||(D=!0,F())})})();(function(){c.on([d.mousedOver,d.bufferStarted,d.scrubbingStarted,Z],G).on([d.mousedOut,d.mouseTimeout],E).on(d.willEnterFullscreen,function(){v=!1;E()}).on(d.willExitFullscreen,function(){v=!1}).on(d.targetTimeReached,function(){ia=!0;E()}).on(Z,function(a,b){b||G()});Gator(f).on(["MSPointerEnter","MSPointerLeave","mouseenter","mouseleave"],".play .play-bar-cell .custom-logo-cell .tiny-fullscreen-cell .tiny-cc-cell .menu".split(" "),function(a){if("pointerType"in a){if("mouse"===
a.pointerType||a.pointerType===a.MSPOINTER_TYPE_MOUSE)v="MSPointerEnter"===a.type}else v="mouseover"===a.type});Gator(f).on("transitionend",function(b){this===f&&"opacity"===b.propertyName&&f.classList.contains("invisible")&&(a.embed.settings.custom_logo&&a.embed.settings.custom_logo.sticky||(f.classList.add("hidden"),f.setAttribute("hidden","")),!K&&J&&(J.classList.remove("hidden"),J.removeAttribute("hidden")))});Gator(f.parentElement).on("focus",".focus-dummy",function(){var a=[].slice.call(f.querySelectorAll('[tabindex="'+
this.getAttribute("tabindex")+'"]'),0),b=a.indexOf(this);p.requestAnimationFrame(function(){a[b+1].focus()})})})();(function(){c.on(d.overlayOpened,function(a){"notsupported"!==a&&"private-unlocked"!==a&&"help"!==a&&(K=!0,E())}).on(d.overlayClosed,function(){K=!1;G()})})();(function(){c.on(d.configChanged,function(b){a=b;H();a.view===fa&&G();R=n=null})})();(function(){c.on(na,function(){F();G();ia=D=h=qa=I=v=B=!1;W&&(W.destroy(),W=null);V&&(V.destroy(),V=null)});Gator(p).on("resize",function(){R=
n=null})})();(function(){c.on(d.enteredTinyMode,function(){$=!0}).on(d.enteredMiniMode,function(){$=!1}).on(d.enteredNormalMode,function(){$=!1})})();c.on(d.playInitiated,function(){M();B=!0;var b=a.embed.time||a._video.currentTime;q(b/a.video.duration,b);h=!0});c.fire(d.controlBarModuleReady);return{}}}(),qb=function(){var c=0.05;return function(b,a,e){function f(){return b.view===la||b.view===fa}function m(){G&&"help"===s&&a.fire(d.overlayCloseButtonClicked)}function l(b){b=u.isArray(b)?b:[b];return function(){if(f()){if(G&&
"help"===s){a.fire(d.overlayCloseButtonClicked);if(b[0]===ha&&"help"===b[1])return!1;if(b[0]!==ya)return setTimeout(function(){a.fire.apply(null,b)},250),!1}a.fire.apply(null,b);return!1}}}function r(c,g){v||(g&&!b._video.paused&&a.fire(d.pauseButtonClicked),a.fire(d.scrubbingStarted,!0),v=!0);var e=B,f=Math.ceil(H),s=Math.ceil(z-H),e=e/k;e--;D=s*(e*e*e+1)+f;B++;1===B&&(D=b.video.fps);f=g?1:D;f="right"===c?f:-f;f=(Math["right"===c?"ceil":"floor"](b._video.currentTime*b.video.fps)+f)/b.video.fps;a.fire(Ga,
null,f)}function q(b){D=H;B=0;a.fire(d.scrubbingEnded,b.shiftKey);v=!1}function p(){if(f()){if(F)return!1;if(!y.activeElement||y.activeElement===y.body)return a.fire(d[b._video.paused?"playButtonClicked":"pauseButtonClicked"]),m(),!1}}function A(){if(f()){if(y.activeElement&&e.contains(y.activeElement))return y.activeElement.blur(),!1;if(G)return a.fire(d.overlayCloseButtonClicked),!1;if(F)return F.hide(),F=!1}}function w(){if(f()){if(F)return!1;m();a.fire(Z,c,!1,!0);return!1}}function g(){if(f()){if(F)return!1;
m();a.fire(Z,-c,!1,!0);return!1}}function C(b,d){if(f()){m();var g=-1<d.indexOf("shift");g&&(d=d.replace("shift+",""));if(y.activeElement&&y.activeElement===E)return a.fire(Z,"left"===d?-c:c,!1,!0),!1;g||0===B?r(d,g):K(d,g)}}e.querySelector(".controls_wrapper");var E=e.querySelector(".volume"),G=!1,s,F=!1,H=b.video.fps/5,z=Math.max(H,0.618*b.video.duration),k=100,D=H,B=0,v=!1,K=u.throttle(r,80);(function(){a.on(d.overlayOpened,function(a){G=!0;s=a;"notsupported"===a&&Mousetrap.pause()});a.on(d.overlayClosed,
function(){G=!1;s=null})})();(function(){a.on(d.menuVisibilityChanged,function(a,b){F=a?b:!1})})();(function(){a.on(d.configChanged,function(a,c){b=a;c&&Mousetrap.unpause()})})();(function(){var a={l:d.likeButtonClicked,w:d.watchLaterButtonClicked,s:d.shareButtonClicked,c:d.ccButtonClicked,h:d.hdButtonClicked,f:d.fullscreenButtonClicked,space:p,up:w,down:g,left:C,right:C,"shift+left":C,"shift+right":C,esc:A,"?":[ha,"help"]};b.embed.on_site||(a.v=ya);for(var c in a)"function"===typeof a[c]?Mousetrap.bind(c,
a[c]):Mousetrap.bind(c,l(a[c]));Mousetrap.bind(["shift+left","shift+right","left","right"],q,"keyup")})();return{pause:Mousetrap.pause,unpause:Mousetrap.unpause}}}(),sb=function(){return function(c,b,a,e){function f(){var c=b.getBoundingClientRect(),d=a.getBoundingClientRect(),g=w.getBoundingClientRect(),e=c.left+c.width/2-g.width/2-d.left,f=a.classList.contains("play-bar")?d.height:d.height-c.top,g=d.left+e+g.width,l=a.classList.contains("play-bar")?d.right:d.width-parseInt(p.getComputedStyle(a).paddingRight,
10);g>l&&(e-=g-l,c=c.left-(d.left+e)+c.width/2,c!==E&&(u.addCssRule(".player .menu::after","left:"+c+"px",y.styleSheets[y.styleSheets.length-1]),E=c));w.style.left=e+"px";w.style.bottom=f+"px"}function m(a){var b=y.createElement("ul");b.classList.add("menu");b.classList.add("rounded-box");b.classList.add("hidden");b.classList.add("invisible");b.setAttribute("hidden","");var c=y.createDocumentFragment();a.forEach(function(a){var b=y.createElement("li");b.setAttribute("data-id",a.id);b.innerHTML='<span tabindex="'+
G+'">'+a.label+"</span>";a.active&&(b.classList.add("active"),g=b);c.appendChild(b)});b.appendChild(c);return b}function l(){w.classList.remove("hidden");w.removeAttribute("hidden");f();C=!0;e.fire(d.menuVisibilityChanged,C,t);p.requestAnimationFrame(function(){w.classList.remove("invisible");w.classList.add("open")})}function r(){C=!1;e.fire(d.menuVisibilityChanged,C,t);w.classList.add("invisible")}function q(){C?r():l()}var t,A=Aa.make(),w=null,g=null,C=!1,E,G=b.getAttribute("tabindex")||"0";(function(){w=
m(c);u.attachClickHandler(w,["li","span"],function(){A.fire("selected",("SPAN"===this.tagName?this.parentElement:this).getAttribute("data-id"));u.resetFocus(w)});u.attachClickHandler(b,function(){q()});Gator(p).on("focus",function(){w.contains(y.activeElement)||y.activeElement===b||r()});Gator(b).on("keyup",function(a){if(38===a.which&&C){var b=[].slice.call(w.querySelectorAll("[tabindex]"),0);b[b.length-1].focus();a.preventDefault();a.stopPropagation();return!1}});Gator(w).on("keyup",function(a){if(C){var c=
y.activeElement;switch(a.which){case 13:case 32:if(w.contains(c))return A.fire("selected",("SPAN"===c.tagName?c.parentElement:c).getAttribute("data-id")),a.preventDefault(),a.stopPropagation(),!1;break;case 38:case 40:var d=38===a.which?"up":"down",g=[].slice.call(w.querySelectorAll("[tabindex]"),0),c=g.indexOf(c),d="up"===d?c-1:c+1;if(d>=g.length)return b.focus(),a.preventDefault(),a.stopPropagation(),!1;if(-1<d&&d<g.length)return g[d].focus(),a.preventDefault(),a.stopPropagation(),!1}}});a.parentElement.appendChild(w)})();
(function(){Gator(y).on("click",function(a){C&&!b.contains(a.target)&&r()});Gator(w).on("transitionend",function(a){this===w&&"opacity"===a.propertyName&&w.classList.contains("invisible")&&(w.classList.add("hidden"),w.setAttribute("hidden",""),w.classList.remove("open"))});p.addEventListener("blur",r,!1);e.on(d.didExitFullscreen,r).on(d.controlBarVisibilityChanged,function(a){a||r()})})();return t={show:l,hide:r,toggle:q,setActiveItem:function(a){g&&g.classList.remove("active");if(a=w.querySelector('[data-id="'+
a+'"]'))a.classList.add("active"),g=a},on:A.on,off:A.off,destroy:function(){w.parentElement.removeChild(w)}}}}(),mb=function(){return function(c,b,a){function e(b){b="watchlater"===b||"unwatchlater"===b?0.5:0.4;var c=a.clientHeight;a.clientHeight>a.clientWidth&&(c=a.clientWidth);return{height:Math.round(c*b),width:Math.round(c*b*1.6)}}function f(a,b){var c=a.querySelector(".hour-hand"),d=a.querySelector(".minute-hand");if(c&&d){var e=b?1:-1,f=new Date,l=Math.abs(f.getHours()-12),m=f.getMinutes(),
f=m/60*360-135,l=l/12*360+m/60*5,q=l+45*e,r=f+540*e;if(z.browser.firefox||z.browser.opera){c.setAttribute("transform","rotate("+l+",10 10)");d.setAttribute("transform","rotate("+f+",10 10)");m=y.createElementNS("http://www.w3.org/2000/svg","animateTransform");m.setAttribute("attributeName","transform");m.setAttribute("type","rotate");m.setAttribute("begin","0.1s");m.setAttribute("repeatCount","indefinite");var k=m.cloneNode(!1);k.setAttribute("from",l+" 10 10");k.setAttribute("to",l+360*e+" 10 10");
k.setAttribute("dur","0.8s");c.appendChild(k);l=m.cloneNode(!1);l.setAttribute("from",f+" 10 10");l.setAttribute("to",f+360*e+" 10 10");l.setAttribute("dur","9.6s");d.appendChild(l)}else c.style[z.transformProperty+"Origin"]="46% 81.5%",d.style[z.transformProperty+"Origin"]="25.5% 26.5%",c.style[z.transformProperty]="rotate("+l+"deg)",d.style[z.transformProperty]="rotate("+f+"deg)";p.requestAnimationFrame(function(){a.classList.add("animate");z.browser.firefox||z.browser.opera||p.requestAnimationFrame(function(){c.style[z.transformProperty]=
"rotate("+q+"deg)";d.style[z.transformProperty]="rotate("+r+"deg)"})})}}function m(b,c){a.classList.remove("hidden");a.removeAttribute("hidden");a.setAttribute("data-name",b);var d=e(b),d="width:"+d.width+"px;height:"+d.height+"px";q.style.cssText=d;q.innerHTML=c;"watchlater"!==b&&"unwatchlater"!==b||f(q,"watchlater"===b);"hd"===b&&(q.querySelector(".hd-notification").style.cssText=d,q.querySelector(".hd-fill").style.cssText=d);clearTimeout(t);a.classList.remove("animate");p.requestAnimationFrame(function(){a.classList.remove("invisible");
"hd"!==b&&(t=setTimeout(l,750))})}function l(){a.classList.add("animate");a.classList.add("invisible")}function r(){a.classList.remove("animate");a.classList.remove("invisible");a.classList.add("hidden");a.setAttribute("hidden","");a.removeAttribute("data-name");q.innerHTML="";q.classList.remove("filled");q.classList.remove("animate");b.fire(d.notificationHidden)}var q=a.querySelector(".notification"),t;(function(){Gator(a).on("transitionend",function(b){q.contains(b.target)&&"height"===b.propertyName?
setTimeout(l,100):b.target===a&&"opacity"===b.propertyName&&p.requestAnimationFrame(r)})})();(function(){b.on(d.liked,function(a){a||m("like",Aftershave.render("icon_heart"))});b.on(d.unliked,function(a){a||m("unlike",Aftershave.render("icon_broken_heart"))})})();(function(){b.on(d.addedToWatchLater,function(a){a||m("watchlater",Aftershave.render("icon_clock"))});b.on(d.removedFromWatchLater,function(a){a||m("unwatchlater",Aftershave.render("icon_clock"))})})();(function(){b.on(9,function(a,b){0;
b||("sd"===a&&q.classList.add("filled"),p.requestAnimationFrame(function(){m("hd",Aftershave.render("hd_notification",{stroke:Aftershave.render("icon_hd",{stroke:!0,notification:!0}),fill:Aftershave.render("icon_hd",{notification:!0})}),!0);p.requestAnimationFrame(function(){"sd"===a?q.classList.remove("filled"):q.classList.add("filled")})}))})})();(function(){b.on(d.configChanged,function(a){})})();b.fire(d.notificationModuleReady);return{}}}(),nb=function(){return function(c,b,a){function e(){if("vod"===
c.embed.outro)q={purchased:c.user.purchased,title:c.video.vod.feature_title,url:c.video.vod.url,buttons:c.video.vod.purchase_options,preorder:c.video.vod.date_available},!0===t&&m();else{0;A=!0;var a=new XMLHttpRequest;a.open("GET","//"+c.player_url+"/video/"+c.video.id+"/outro",!0);a.withCredentials=!0;a.onload=function(){try{var b=JSON.parse(a.response);0;q=b.data;if("videos"===b.type){q.owner=c.video.owner.id;for(var b=0,d=q.videos.length;b<d;b++)(new Image).src=q.videos[b].thumbnail}!0===t&&m()}catch(e){}};
a.send()}}function f(){var a=p.getComputedStyle(r.querySelector("header h1"),null),b=a.getPropertyValue("-webkit-line-clamp"),a=a.textOverflow;if(!b)for(var b=r.querySelectorAll("header h1"),c=0,d=b.length;c<d;c++)if("clip"===a)for(var e=b[c],f=e.innerHTML;e.scrollHeight>e.offsetHeight;)f=f.substring(0,f.length-1),e.innerHTML=f+"&hellip;";else b[c].style.display="inherit"}function m(){if("beginning"===c.embed.outro)return b.fire(na);!q||"videos"===c.embed.outro&&0===q.videos.length||(r.innerHTML=
Aftershave.render("outro_"+c.embed.outro,q),a.classList.remove("hidden"),a.removeAttribute("hidden"),"videos"===c.embed.outro&&f(),p.requestAnimationFrame(function(){a.classList.add("in");var c=[];if(q.videos)for(var e=0;e<q.videos.length;e++){var f=r.querySelector('[data-video-id="'+q.videos[e].id+'"]');f&&0<f.clientWidth&&c.push(q.videos[e].id)}b.fire(d.outroDisplayed,c)}))}function l(){p.requestAnimationFrame(function(){a.classList.remove("in");b.fire(d.outroHidden)})}var r=a.querySelector(".outro"),
q=null,t=!1,A=!1;(function(){b.on(d.playProgress,function(a,b,c){t=!1;!A&&null===q&&a>=b-10&&e()})})();(function(){b.on(d.playInitiated,function(){if("nothing"===c.embed.outro||"beginning"===c.embed.outro)q=!1});b.on(d.ended,function(){t=!0;null!==q||A?m():e()});Gator(a).on("click",".videos a",function(a){b.fire(d.outroVideoPressed,parseInt(this.getAttribute("data-video-id"),10))});Gator(a).on("transitionend",function(b){a.classList.contains("in")||(a.classList.add("hidden"),a.setAttribute("hidden",
""))},!1);b.on([d.played,d.seeked,d.scrubbingStarted],l)})();(function(){b.on(ha,function(){setTimeout(function(){a.classList.add("hidden")},150)});b.on(d.overlayClosed,function(){a.classList.contains("in")&&a.classList.remove("hidden")})})();(function(){b.on(na,function(){q=null;A=!1})})();(function(){b.on(d.configChanged,function(a){c=a})})();(function(){u.attachClickHandler(a,".vod-button",function(){var a=this.getAttribute("data-product-id");b.fire(d.vodButtonPressed,a);return!1});u.attachClickHandler(a,
".vod-watch-button",function(){if(!("date_available"in c.video.vod))return l(),b.fire(d.vodButtonPressed),!1})})();return{}}}(),fb=function(){var c="Uh Oh!{D&rsquo;Oh!{Aw fiddlesticks!{Jeepers!{Oh dear!{Ouch!{Zoinks!{Awww, snap!{Blast!{Curses!{ACK!{Aw shucks.{Major bummer.{Dag-nab-it!{Aargh!{Boo-hoo!{&iexcl;Ay caramba!".split("{");return function(b,a,e){function f(){var a=e.getBoundingClientRect(),b=k.getBoundingClientRect(),c=v.getBoundingClientRect();return a.height-(b.bottom+(a.height-b.bottom)/
2)-c.height/2+"px"}function m(){var a=e.getBoundingClientRect(),b=k.getBoundingClientRect(),c=D.getBoundingClientRect();0;0;0;var d=a.height/2,a=b.bottom+(a.height-b.bottom)/2;0;0;return{top:d-c.height/2+"px",transform:"translateY("+(a-d)+"px)"}}function l(b,c){0;e.setAttribute("data-name",b);k.innerHTML=c.template;c.modal&&(e.classList.add("modal"),e.setAttribute("data-modal","true"));c.wrapperClass&&e.classList.add(c.wrapperClass);c.icon.type&&(c.logo&&(v.classList.remove("hidden"),D.classList.add("cloaked"),
p.requestAnimationFrame(function(){v.innerHTML=Aftershave.render("logo");v.style.bottom=f()})),D.classList.remove("hidden"),B.innerHTML=c.icon.html,p.requestAnimationFrame(function(){var a=m();D.style.top=a.top;D.style[z.transformProperty]=a.transform}),e.setAttribute("data-icon",c.icon.type),D.setAttribute("data-icon",c.icon.type),B.setAttribute("data-icon",c.icon.type),"private-unlocked"===b&&B.classList.add("open"));e.classList.add("invisible");e.classList.remove("hidden");e.removeAttribute("hidden");
e.classList.add("in");qa=c;O=b;N=!0;a.fire(d.overlayOpened,b);-1<["share","hd-not-allowed"].indexOf(b)&&u.resetFocus(e);p.requestAnimationFrame(function(){e.classList.remove("invisible");p.requestAnimationFrame(function(){k.classList.add("in");M.classList.add("in")})})}function r(){k.classList.remove("in");k.classList.add("out")}function q(b){"true"!==e.getAttribute("data-modal")&&N&&(M.classList.remove("in"),M.classList.add("out"),r(),e.classList.remove("in"),e.classList.add("out"),clearTimeout(K),
K=setTimeout(t,200),b&&b.preventDefault&&b.preventDefault(),(b=e.querySelector(".back"))&&b.classList.add("cloaked"),a.fire(d.overlayClosed),N=!1,qa=O=null)}function t(){e.setAttribute("hidden","");e.removeAttribute("data-name");e.removeAttribute("data-icon");e.classList.add("hidden");e.classList.remove("out");e.classList.remove("embed-active");e.classList.remove("modal");e.classList.remove("embed-only");M.classList.remove("out");M.classList.remove("in");D.removeAttribute("data-icon");D.classList.add("hidden");
D.classList.remove("animate");B.removeAttribute("data-icon");B.innerHTML="";v.classList.add("hidden");k.classList.remove("out");k.innerHTML="";a.fire(d.overlayCleared)}function A(){e.setAttribute("data-modal","false")}function w(a){if("yes"===a.form.getAttribute("data-bubble")){a.form.setAttribute("data-bubble","no");var b=e.querySelector(".validation-bubble");b.querySelector(".validation-bubble-message").innerHTML=a.validationMessage||"There is an error with this input.";var c=a.getBoundingClientRect(),
d=a.form.getBoundingClientRect();b.style.left=c.left-d.left+"px";b.style.top=c.height+1+"px";b.classList.remove("hidden");a.focus();p.requestAnimationFrame(function(){b.classList.add("animate")});g()}}function g(a){var b=e.querySelector(".validation-bubble");if(b){if(a)return clearTimeout(I),b.classList.remove("animate");clearTimeout(I);I=setTimeout(function(){b.classList.remove("animate")},5E3)}}function C(a){var b=e.querySelector("input[type=password]");if(b.form.classList.contains("submitted")){b.setAttribute("aria-invalid",
"false");b.setCustomValidity("");if(b.checkValidity&&!b.checkValidity())return b.setAttribute("aria-invalid","true"),b.validity.valueMissing&&b.setCustomValidity("Please enter the password."),a||w(b),!1;g(!0);return!0}}function E(a,b,c){u.resetFocus(e);var d=Array.prototype.slice.call(a.querySelectorAll("input"),0).map(function(a){if(a.name)return encodeURIComponent(a.name)+"="+encodeURIComponent(a.value)}).join("&"),g=new XMLHttpRequest;g.open(a.method,a.action+p.location.search);g.setRequestHeader("Content-Type",
"application/x-www-form-urlencoded");g.withCredentials=!0;g.timeout=3E3;g.onload=function(){var a;try{a=JSON.parse(g.responseText)}catch(c){}b(a,g)};g.onerror=function(a){c(a)};g.send(d)}function G(){D.classList.remove("cloaked");D.classList.add("animate");p.requestAnimationFrame(function(){D.style[z.transformProperty]="translateY(-10px)"})}function s(){B.classList.add("open")}function F(){return{modal:!1,template:null,logo:!1,icon:{type:null,html:null}}}function H(a,c){a.template=Aftershave.render("share",
{url:b.video.url,shareUrl:b.video.share_url,playerShareUrl:"//"+b.player_url+"/video/"+b.video.id+"/share",title:b.video.title,owner:b.video.owner.name,embed:"public"===b.video.embed_permission&&b.embed.settings.embed,embedOnly:b.embed.settings.share&&b.embed.settings.share.embed_only,embedCode:b.video.embed_code.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"),copyButton:z.flash.installed,customizeEmbed:!!b.video.url,readOnly:!z.touch});b.embed.settings.share&&
b.embed.settings.share.embed_only&&(a.wrapperClass="embed-only");return a}var M=e.querySelector(".overlay-cell"),k=e.querySelector(".overlay"),D=e.querySelector(".overlay-icon-wrapper"),B=D.querySelector(".overlay-icon"),v=e.querySelector(".overlay-logo"),K,I,N=!1,O=null,qa=null;(function(){a.on(ha,function(c,e){0;var g=function(){var a=F();switch(c){case "share":return l(c,H(a,e));case "private-locked":return a.icon={type:"lock",html:Aftershave.render("icon_lock")},a.modal=!0,a.logo=!0,a.template=
Aftershave.render("private_locked",{title:"Private Video",subtitle:"Log in to watch (if you have permission).",action:("dev"===b.build.rpc?"http":"https")+"://"+b.vimeo_url+"/log_in"}),l(c,a);case "hd-not-allowed":return a.icon={type:"hd",html:Aftershave.render("icon_hd")},a.template=Aftershave.render("hd_not_allowed",{title:"Sorry, HD not available here",subtitle:"Watch this video in HD on Vimeo.com",button:"Watch in HD now",url:b.video.url}),l(c,a);case "password":return a.icon={type:"lock",html:Aftershave.render("icon_lock")},
a.template=Aftershave.render("password",{title:"Password Required",subtitle:"If you&rsquo;ve got it, enter it below.",action:"//"+b.player_url+"/video/"+b.video.id+"/check-password"}),a.modal=!0,a.logo=!!b.embed.settings.branding,l(c,a);case "private-unlocked":return a.icon={type:"lock",html:Aftershave.render("icon_lock")},a.template=Aftershave.render("private_unlocked"),l(c,a);case "error":return a.template=Aftershave.render("error",{title:e.title,message:e.message}),a.modal=!!e.modal,a.logo=!!e.logo,
e.icon&&"lock"===e.icon&&(a.icon={type:"lock",html:Aftershave.render("icon_lock")}),l(c,a);case "help":return a.template=Aftershave.render("help",{onSite:b.embed.on_site}),l(c,a);case "content-rating":return a.template=Aftershave.render("content_rating",{logo:Aftershave.render("logo")}),a.modal=!0,l(c,a)}};if(N){if("share"!==O&&"help"!==O&&"hd-not-allowed"!==O||O!==c)a.once(d.overlayCleared,g),A();q()}else g()});Gator(e).on("input","input",function(){this.form.classList.add("interacted")}).on(["focus",
"blur"],"input",function(){g(!0)}).on("transitionend",".validation-bubble",function(a){"opacity"===a.propertyName&&"0"===p.getComputedStyle(this,"").opacity&&this.classList.add("hidden")});a.on([d.overlayCloseButtonClicked,d.played],q);a.on(d.privateUnlocked,function(){"private-locked"===O&&(A(),q())});a.on(d.configChanged,function(a){"share"===O&&(qa=H(F(),a.embed.settings.share.embed_only),k.innerHTML=qa.template)});Gator(p).on("resize",function(){if(N){v.style.bottom=f();var a=m();D.style.top=
a.top;D.style[z.transformProperty]=a.transform}})})();(function(){Gator(e).on("transitionend",".overlay-logo",function(a){"opacity"===a.propertyName&&this.classList.contains("animate")&&(v.classList.add("hidden"),v.classList.remove("animate"))});Gator(e).on("transitionend",".overlay-icon-wrapper",function(a){-1<a.propertyName.indexOf("transform")&&(""===this.style[z.transformProperty]?(this.classList.remove("centered"),"lock"!==this.getAttribute("data-icon")||B.classList.contains("open")||B.querySelector("canvas")?
B.classList.add("pulled-back"):setTimeout(s,100)):"translateY(-10px)"===this.style[z.transformProperty]&&(D.classList.add("centered"),D.style[z.transformProperty]=""))});Gator(e).on("transitionend",".overlay-icon",function(a){-1<a.propertyName.indexOf("transform")&&(this.classList.contains("out")?(A(),q()):this.classList.contains("pulled-back")?(B.classList.add("out"),B.classList.remove("pulled-back")):this.classList.contains("open")&&B.classList.add("pulled-back"))})})();(function(){Gator(e).on("transitionend",
".share-screen",function(a){"opacity"===a.propertyName&&"0"===p.getComputedStyle(this,"").opacity&&this.classList.add("cloaked")}).on("transitionend",".embed-screen",function(a){"opacity"===a.propertyName&&"0"===p.getComputedStyle(this,"").opacity&&(e.querySelector(".back").classList.add("cloaked"),this.classList.add("cloaked"),u.resetFocus(e))}).on("copy","input[name=embed_code]",function(){a.fire(d.embedCodeCopied)});u.attachClickHandler(e,".back",function(){e.querySelector(".share-screen").classList.remove("cloaked");
e.classList.remove("embed-active");return!1});u.attachClickHandler(e,".facebook",function(){a.fire(d.facebookButtonClicked,this.href);y.activeElement.blur();return!1});u.attachClickHandler(e,".twitter",function(){a.fire(d.twitterButtonClicked,this.href);y.activeElement.blur();return!1});u.attachClickHandler(e,".email",function(){a.fire(d.emailButtonClicked)});u.attachClickHandler(e,".embed",function(){a.fire(d.embedButtonClicked);y.activeElement.blur();return!1});if(z.touch)Gator(k).on("focus","input[name=embed_code]",
function(){0;var a=this;setTimeout(function(){a.setSelectionRange(0,9999);a.setAttribute("readonly","readonly")},0)}).on("blur","input",function(){this.removeAttribute("readonly")});else Gator(k).on("click","input[name=embed_code]",function(){this.setSelectionRange(0,9999)});a.on(d.facebookButtonClicked,function(a){u.openWindow(a,580,400,"facebook","scrollbars=yes,resizable=yes,toolbar=no")}).on(d.twitterButtonClicked,function(a){u.openWindow(a,550,420,"twitter","scrollbars=yes,resizable=yes,toolbar=no")}).on(d.embedButtonClicked,
function(){function a(){var d=y.getElementById("copy-button");(new ZeroClipboard(d,{moviePath:b.request.urls.zeroclip_swf,trustedDomains:["*"],allowScriptAccess:"always"})).on("complete",function(a,b){var d=y.getElementById("copy-button");d.innerHTML="Copied!";clearTimeout(c);c=setTimeout(function(){d.innerHTML="Copy"},2E3);u.resetFocus(e)})}b.embed.settings.share.embed_only||(e.querySelector(".back").classList.remove("cloaked"),e.querySelector(".embed-screen").classList.remove("cloaked"),e.classList.add("embed-active"));
var c;if(z.flash.installed)if(y.getElementById("zc_script_loaded"))a();else{var d=y.createElement("script"),g;d.setAttribute("id","zc_script_loaded");d.setAttribute("src",b.request.urls.zeroclip_js);d.onreadystatechange=d.onload=function(){g||(0,a());g=!0};y.getElementsByTagName("head")[0].appendChild(d)}})})();(function(){Gator(k).on("click",".popup",function(){a.fire(ua,"login-private-locked");return!1})})();(function(){function b(c){function e(a){f.classList.remove("loading");g.setCustomValidity("Uh oh. There was a problem. Please try again.");
g.setAttribute("aria-invalid","true");w(g)}if(!C())return!1;var g=c.querySelector("input[type=password]"),f=c.querySelector("input[type=submit]");f.classList.add("loading");E(c,function(b,c){if(!1===b)return e(c.status,c);a.fire(d.passwordUnlocked,b);"icon-hidden"===p.getComputedStyle(M,":after").content?(A(),q()):(v.classList.add("animate"),G(),A(),r())},e)}Gator(k).on("click",".password input[type=submit]",function(){this.form.classList.add("submitted");this.form.setAttribute("data-bubble","yes");
C(!0)}).on("submit",".password form",function(){b(this);return!1}).on(["focus","input"],[".password input[type=email]",".password input[type=password]"],function(){C()})})();(function(){u.attachClickHandler(k,".unlocked button",function(){v.classList.add("animate");G();A();r();if(!z.iPad&&!z.iPhone)a.once(d.overlayCleared,function(){a.fire(d.playButtonClicked)})})})();(function(){u.attachClickHandler(k,".content-rating button",function(){A();q()})})();(function(){a.on(d.error,function(e,g){var h=
e,f=g&&g.title||"Sorry",k=g&&g.message||"There was an issue with playback.",m=-1<p.location.search.indexOf("partypooper=1")||-1<p.location.search.indexOf("fun=0");switch(e){case "no-files":h="notsupported";f=m?"Sorry":c[Math.floor(Math.random()*c.length)];k="There was an error loading the files for this video.";break;case "not-supported":h="notsupported";f=m?"Sorry":c[Math.floor(Math.random()*c.length)];k="This video can&rsquo;t be played with your current setup.";0.5<b._video.currentTime&&(k="There was an issue playing this video.");
break;case "decode":h="decode",f="Oops!",k="There was a problem with this video."}var s=F();s.modal=g&&g.modal||!0;s.template=Aftershave.render("error",{title:f,message:k});N?(q(),a.once(d.overlayClosed,function(){l(h,s)})):l(h,s)})})();(function(){a.on(d.configChanged,function(a){b=a;p.requestAnimationFrame(function(){A();q()})})})();(function(){u.attachClickHandler(e,".close",function(){a.fire(d.overlayCloseButtonClicked)});Gator(e).on(["click","touchend"],[".window-wrapper",".share-wrapper",".overlay-logo"],
function(a){a.stopPropagation()}).on(["click","touchend"],[".overlay-cell","nav"],function(){a.fire(d.overlayCloseButtonClicked);return!1})})();a.fire(d.overlayModuleReady);return{}}}(),lb=function(){return function(c,b,a){function e(){!t||!(A&&I||g)||w||C&&!g||(t=!1,b.fire(d.sidedockVisibilityChanged,t),a.classList.add("invisible"))}function f(){t||g||(a.classList.add("invisible"),a.classList.remove("hidden"),a.removeAttribute("hidden"),a.classList.contains("vod")&&(a.classList.remove("vod"),a.setAttribute("data-vod-highlight",
"no"),E.classList.remove("bouncing")),setTimeout(function(){t=!0;b.fire(d.sidedockVisibilityChanged,t);a.classList.remove("invisible")},0))}function m(a,b,d){var e="data-label-"+d;a.setAttribute("aria-label",a.getAttribute("add"!==d||c.user.logged_in?e:"data-label-add-logged-out"));b.classList.add("hidden");b.setAttribute("hidden","");b.firstChild.innerHTML=a.getAttribute(e)}function l(){var a=B.indexOf(this);v.forEach(function(b,c){c!==a&&b&&b.classList.add("invisible")});0<=a&&(v[a].classList.add("invisible"),
v[a].classList.remove("hidden"),v[a].removeAttribute("hidden",""),K=p.requestAnimationFrame(function(){v[a].classList.remove("invisible");v[a].classList.add("visible")}))}function r(){var a="BUTTON"===this.tagName?this:this.querySelector("button"),a=B.indexOf(a);0<=a&&(K&&(p.cancelAnimationFrame(K),K=null),v[a].classList.add("invisible"))}function q(){if(c.view===la||c.view===fa){c.video.vod&&"purchase_options"in c.video.vod&&c.video.vod.purchase_options.length&&"no"!==a.getAttribute("data-vod-highlight")?
a.classList.add("vod"):z.touch&&(t=!0,b.fire(d.sidedockVisibilityChanged,t),a.classList.remove("hidden"),a.removeAttribute("hidden"),a.classList.remove("invisible"));var e=c.embed.settings,g=c.video.vod&&"purchase_options"in c.video.vod&&c.video.vod.purchase_options.length;a.innerHTML=Aftershave.render("sidedock",{loggedIn:!!c.user.logged_in,vodButton:g&&e.vod,purchased:c.video.vod&&c.user.purchased?1:0,vodLabel:g&&c.video.vod.purchase_options[0].label,vodPreorder:g&&"date_available"in c.video.vod?
1:0,expiring:g&&c.video.vod.purchase_options[0].expiring?1:0,likeButton:e.like,liked:c.user.liked,watchLaterButton:e.watch_later,addedToWatchLater:c.user.watch_later,shareButton:e.share,shareButtonLabel:e.share&&e.share.embed_only?"Embed":"Share"});E=a.querySelector(".vod-button");G=a.querySelector(".vod-label");s=a.querySelector(".like-button");F=a.querySelector(".like-label");y=a.querySelector(".watch-later-button");M=a.querySelector(".watch-later-label");k=a.querySelector(".share-button");D=a.querySelector(".share-label");
B=[E,s,y,k];v=[G,F,M,D]}}var t=!1,A=!1,w=!1,g=!1,C=!1,E,G,s,F,y,M,k,D,B=[],v=[],K=null,I=!1;q();(function(){u.attachClickHandler(a,".vod-button",function(){b.fire(d.vodButtonPressed);G.classList.add("hidden");G.setAttribute("hidden","")},r)})();(function(){u.attachClickHandler(a,".like-button",function(){b.fire(d.likeButtonClicked)},r);b.on(d.liked,function(){s&&(s.classList.add("on"),m(s,F,"remove"))});b.on(d.unliked,function(){s&&(s.classList.remove("on"),m(s,F,"add"))})})();(function(){u.attachClickHandler(a,
".watch-later-button",function(){b.fire(d.watchLaterButtonClicked)},r);b.on(d.addedToWatchLater,function(){y&&(y.classList.add("on"),m(y,M,"remove"))});b.on(d.removedFromWatchLater,function(){y&&(y.classList.remove("on"),m(y,M,"add"))})})();(function(){u.attachClickHandler(a,".share-button",function(){b.fire(c.embed.settings.share.embed_only?d.embedButtonClicked:d.shareButtonClicked)},r)})();(function(){Gator(a).on("blur","button",r).on("mouseleave",".box",r).on(["focus","pointerdown","MSPointerDown",
"touchstart","mouseenter"],"button",l).on("transitionend","label",function(a){"opacity"===a.propertyName&&a.target.classList.contains("invisible")&&(a.target.classList.add("hidden"),a.target.setAttribute("hidden",""),a.target.classList.remove("visible"))}).on(["MSPointerEnter","MSPointerLeave","mouseenter","mouseleave"],".vod-label",function(a){});u.attachClickHandler(a,"label",function(){var a=v.indexOf(this);0<=a&&B[a].click()})})();(function(){b.on([d.mousedOut,d.mouseTimeout],e).on(d.mousedOver,
f).on(d.targetTimeReached,function(){I=!0;e()}).on(d.played,function(){A=!0});Gator(a).on(["MSPointerEnter","MSPointerLeave","mouseenter","mouseleave"],function(a){if("pointerType"in a){if("mouse"===a.pointerType||a.pointerType===a.MSPOINTER_TYPE_MOUSE)w="MSPointerEnter"===a.type}else w="mouseover"===a.type});Gator(a).on("transitionend",function(b){"opacity"===b.propertyName&&a.classList.contains("invisible")&&(a.classList.add("hidden"),a.setAttribute("hidden",""))})})();(function(){b.on(d.willEnterFullscreen,
function(){w=!1;e()}).on(d.didExitFullscreen,function(a){})})();(function(){b.on(d.airPlayActivated,function(){C=!0;f()}).on(d.airPlayDeactivated,function(){C=!1})})();(function(){b.on(d.overlayOpened,function(){g=!0;w=!1;e()}).on(d.overlayClosed,function(){g=!1;f()})})();(function(){b.on(d.configChanged,function(b,d){c=b;d&&a.removeAttribute("data-vod-highlight");q()})})();(function(){b.on(na,function(){I=w=!1;e();w=A=!1})})();b.fire(d.sidedockModuleReady);return{}}}(),gb=function(){return function(c,
b){function a(a){return Object.keys(a).map(function(b){return encodeURIComponent(b)+"="+encodeURIComponent(a[b])}).join("&")}function e(d,e,g,f){b.fire(Ja);if(r)C.push([d,e,g,0]);else{e.signature=c.request.signature;e.session=c.request.session;e.time=c.request.timestamp;e.expires=c.request.expires;var l=a(e),m=new XMLHttpRequest;m.open("POST","//"+c.player_url+d,!g);m.setRequestHeader("Content-Type","application/x-www-form-urlencoded");m.onload=function(){200!==m.status&&2>f&&C.push([d,e,g,f+1])};
m.send(l)}}function f(a,b,d){e(a,{referrer:c.request.referrer,embed:!c.embed.on_site,context:c.embed.context,id:c.video.id,vodId:c.video.vod&&c.video.vod.id?c.video.vod.id:null,userId:c.user.id,userAccountType:c.user.account_type,userIsMod:c.user.mod?1:0,ownerId:c.video.owner.id,ownerAccountType:c.video.owner.account_type,privacy:c.video.privacy,rating:c.video.rating?c.video.rating.id:null,type:c._video.currentRenderer,videoFileId:c._video.currentFile.id||0,delivery:c._video.currentFile.hls?"hls":
"progressive",quality:c._video.currentFile.quality,duration:u.round(c.video.duration),seconds:u.round(b)},d)}function m(a,b){c.request.flags.partials&&c.request.flags.plays&&(a=Math.round(1E3*a)/1E3||0,a>q&&!t&&(0,q=a,f("/log/partial",a,b)))}function l(a,b){b=b||{};var d={referrer:c.request.referrer,embed:!c.embed.on_site,context:c.embed.context,id:c.video.id,vodId:c.video.vod&&c.video.vod.id?c.video.vod.id:null,userId:c.user.id,userAccountType:c.user.account_type,ownerId:c.video.owner?c.video.owner.id:
0,duration:u.round(c.video.duration),seconds:u.round(c._video.currentTime)},g;for(g in b)b.hasOwnProperty(g)&&(d[g]=b[g]);e("/log/"+a,d)}var r=!1,q=0,t=!1,A=0,w=!1,g,C=[];g={};(function(){b.on(d.playProgress,function(a,b,c){b=Math.floor(a);0!==b%30||g[b]||(m(a),g[b]=!0)});b.on(d.playInitiated,function(){!w&&c.request.flags.plays&&(w=!0,f("/log/play",0))});b.on(d.paused,function(a){m(a)});b.on(d.seeked,function(a,b,c){A=a;t||m(A)});b.on(d.scrubbingStarted,function(){t=!0});b.on(d.scrubbingEnded,function(){t=
!1;m(A)});b.on(d.hdButtonClicked,function(){m(c._video.currentTime)});b.on(d.ended,function(){m(c.video.duration)});p.addEventListener("beforeunload",function(){0<c._video.currentTime&&m(c._video.currentTime,!0)})})();(function(){function a(b){return function(){l(b)}}[{type:"share_press",event:d.shareButtonClicked},{type:"facebook_press",event:d.facebookButtonClicked},{type:"twitter_press",event:d.twitterButtonClicked},{type:"email_press",event:d.emailButtonClicked},{type:"embed_press",event:d.embedButtonClicked},
{type:"login_success",event:d.userLoggedIn},{type:"airplay",event:d.airPlayActivated},{type:"vod_press",event:d.vodButtonPressed}].forEach(function(c){b.on(c.event,a(c.type))});b.on(d.outroDisplayed,function(a){var b={outroType:c.embed.outro,ownerAccountType:c.video.owner.account_type};a.length&&(b.outroVideos=a.join(","));l("outro_displayed",b)}).on(d.outroVideoPressed,function(a){l("outro_video_press",{ownerAccountType:c.video.owner.account_type,videoId:a})}).on(d.likeButtonClicked,function(){l("like_press",
{add:!c.user.liked})}).on(d.watchLaterButtonClicked,function(){l("watch_later_press",{add:!c.user.watch_later})}).on(d.popupOpened,function(a){0===a.indexOf("login-")&&l("login_attempt")})})();(function(){b.on(d.signatureExpired,function(){r=!0});b.on(d.requestConfigReloaded,function(a){c.request=a;r=!1;if(0<C.length)for(a=C.shift();a;)e.apply(null,a),a=C.shift()});b.on(d.configChanged,function(a,b){c=a;b&&(q=0,t=w=!1,g={})})})();(function(){var a=["not-supported","decode","network","aborted","unknown"];
b.on(d.error,function(b,d){0<=a.indexOf(b)&&e("/log/"+b.replace("-","")+"_error",{id:c.video.id,context:c.embed.context})})})();b.fire(d.statsModuleReady);return{}}}(),rb=function(c){var b=["hd","scaling","volume","captions"];return function(a,e){function f(a){if(w.loaded)try{w.frame.contentWindow.postMessage(a,w.origin)}catch(b){}else w.queue.push(a)}function m(a){return!0===a||!1===a?+a:"null"===a?null:a}function l(a){var b=y.cookie;return b&&""!==b?b.split(";").reduce(function(b,c){c=c.trim();
return 0===c.indexOf(a+"=")?decodeURIComponent(c.substr(a.length+1)):b},null):null}function r(c,d){d=m(d);0<=b.indexOf(c)&&(a.request.cookie[c]=d);f({method:"set",key:"sync_"+c,val:d,session:a.request.session});var e=[c+"="+d],l=q(b),s;for(s in l)s in l&&null!==l[s]&&s!==c&&e.push(s+"="+l[s]);e='"'+e.join("&")+'"';l=new Date;l.setFullYear(l.getFullYear()+1);l=l.toGMTString();e=m(e);e="player="+e+";"+("expires="+l+";");e+="path=/;";e+="domain="+a.request.cookie_domain+";";y.cookie=e}function q(a){var b=
l("player");if(!b)return null;var b=b.substring(1,b.length-1),c={};b.split("&").forEach(function(a){a=a.split("=");c[a[0]]=decodeURIComponent(a[1]||"")});var b=[].concat(a),d=b.reduce(function(a,b){if(b in c){var d=parseFloat(c[b]);a[b]=isNaN(d)?c[b]:d;return a}a[b]=null;return a},{});return 1===b.length?d[a]:d}function t(b){b&&(a=b);r("login",!!a.user.logged_in)}if(!c.localStorageProxy){var u=y.createElement("a");u.href=a.request.urls.proxy;c.localStorageProxy={src:u.href,origin:u.origin||u.protocol.replace(":",
"")+"://"+u.host,loaded:!1,queue:[],frame:null,loadTimeout:null,pingTimeout:null}}var w=c.localStorageProxy;t();(function(){e.on(d.qualityChanged,function(b,c){a.request.cookie.hd="hd"===b?1:0;c||r("hd","hd"===b)})})();(function(){e.on(4,function(a){r("scaling",!!a)})})();(function(){e.on(d.volumeChanged,function(b,c){a.request.cookie.volume=m(b);c||r("volume",b)})})();(function(){e.on(d.captionsChanged,function(b,c){a.request.cookie.captions=m(b);c||r("captions",b)})})();(function(){e.on(d.playButtonClicked,
function(b){b||r("active",a.request.session)});e.on([d.pauseButtonClicked,d.ended],function(){q("active")===a.request.session&&r("active",null)})})();(function(){e.on(d.userLoggedIn,function(){r("login",!0)})})();(function(){if(!w.frame){var a=y.createElement("iframe");a.src=w.src;a.setAttribute("title","Vimeo LocalStorage Proxy");a.setAttribute("aria-hidden","true");a.setAttribute("hidden","");a.onload=function(b){w.loaded||(a.contentWindow.postMessage({method:"ping"},w.origin),w.pingTimeout=setTimeout(function(){0},
500));w.loadTimeout&&(clearTimeout(w.loadTimeout),w.loadTimeout=null)};w.loadTimeout=setTimeout(function(){0},1E4);y.body.appendChild(a);w.frame=a}})();(function(){p.addEventListener("message",function(b){if(b.origin===w.origin)if("ready"===b.data||"ping"===b.data){if(!w.loaded)for(clearTimeout(w.pingTimeout),w.pingTimeout=null,w.loaded=!0;w.queue.length;)b=w.queue.shift(),f(b)}else if("object"===typeof b.data&&"key"in b.data){var c=b.data.newValue;switch(b.data.key){case "sync_hd":a.video.allow_hd&&
e.fire(9,1===c?"hd":"sd",!0);break;case "sync_scaling":e.fire(4,!!c);break;case "sync_volume":e.fire(Z,c,!0);break;case "sync_captions":if(null===c){e.fire(Pa,!0);break}e.fire(Oa,c,!0);break;case "sync_login":if(c){e.fire(d.userLogIn);break}e.fire(d.userLoggedOut);break;case "sync_active":null!==c&&c!==a.request.session&&!a._video.paused&&0>p.location.search.indexOf("autopause=0")&&e.fire(d.pauseButtonClicked)}}},!1)})();(function(){b.concat("login","active").forEach(function(a){try{p.localStorage.removeItem(a)}catch(b){}})})();
return{reset:t}}}(cb),ob=function(){return function(c,b){(function(){b.on(ua,function(a,e){var f="//"+c.player_url,m=f+"/video/"+c.video.id;switch(a){case "login-like":u.openWindow(m+"/login/like",670,545,"login");b.fire(d.popupOpened,a);break;case "login-watch-later":u.openWindow(m+"/login/watch-later",670,545,"login");b.fire(d.popupOpened,a);break;case "login-private-locked":u.openWindow(m+"/login/private",670,545,"login");b.fire(d.popupOpened,a);break;case "purchase":f=f+"/video/"+(c.video.vod.feature_id||
c.video.id)+"/purchase/vod",e&&e.productId&&(f+="/"+e.productId),f+="?referrer="+encodeURIComponent(c.request.referrer),u.openWindow(f,670,545,"purchase"),b.fire(d.popupOpened,a)}})})();(function(){c.embed.on_site||(p.confirmPurchase=function(a,c,f){if(c)return b.fire(Ha,a);f&&b.fire(d.playButtonClicked)})})();(function(){c.embed.on_site||(p.confirmLoginAction=function(a,c){b.fire(d.userLogIn,c)})})();return{}}}(),z=function(){function c(a){return RegExp(a.toLowerCase()).test(b)}var b=navigator.userAgent.toLowerCase(),
a=c("android")?parseFloat(b.replace(/^.* android (\d+)\.(\d+).*$/,"$1.$2"))||!0:!1,d=p.devicePixelRatio||1,f=c("windows phone")||c("iemobile")?parseFloat(b.replace(/^.* windows phone (os )?(\d+)\.(\d+).*$/,"$2.$3"))||!0:!1;return{airPlay:"WebKitPlaybackTargetAvailabilityEvent"in p,android:a,mobileAndroid:a&&c("mobile"),browser:{bb10:c("bb10"),chrome:c("chrome"),firefox:c("firefox"),opera:c("opera"),safari:c("safari")&&c("apple")&&!c("chrome")&&!c("android")},devicePixelRatio:d,flash:function(){var a=
navigator,b=!1,c=[0,0,0],d=null;if("undefined"!==typeof a.plugins&&"object"===typeof a.plugins["Shockwave Flash"])!(d=a.plugins["Shockwave Flash"].description)||"undefined"!==typeof a.mimeTypes&&a.mimeTypes["application/x-shockwave-flash"]&&!a.mimeTypes["application/x-shockwave-flash"].enabledPlugin||(b=!0,d=d.replace(/^.*\s+(\S+\s+\S+$)/,"$1"),c[0]=parseInt(d.replace(/^(.*)\..*$/,"$1"),10),c[1]=parseInt(d.replace(/^.*\.(.*)\s.*$/,"$1"),10),c[2]=/[a-zA-Z]/.test(d)?parseInt(d.replace(/^.*[a-zA-Z]+(.*)$/,
"$1"),10):0);else if("undefined"!==typeof p.ActiveXObject)try{var e=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");e&&(d=e.GetVariable("$version"))&&(b=!0,d=d.split(" ")[1].split(","),c=[parseInt(d[0],10),parseInt(d[1],10),parseInt(d[2],10)])}catch(f){}return{installed:b,version:c.join("."),major:c[0],minor:c[1],revision:c[2],versionAtLeast:function(a,b,d){a=a||10;b=b||1;d=d||0;for(var e=c,f=arguments,l=Math.min(e.length,f.length),m=0;m<l;m++){if(e[m]>=f[m]){if(m+1<l&&e[m]===f[m])continue;return!0}return!1}}}}(),
iPhone:c("iphone;")||c("ipod touch;"),iPad:c("ipad;"),iPadNonRetina:c("ipad;")&&2>d,mac:c("mac os"),pointerEvents:p.navigator.pointerEnabled||p.navigator.msPointerEnabled||!1,svg:!!y.createElementNS&&!!y.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect,touch:"ontouchstart"in p||p.DocumentTouch&&y instanceof DocumentTouch||c("windows phone")||1<p.navigator.maxTouchPoints||p.navigator.msMaxTouchPoints||!1,transformProperty:function(a){var b=y.createElement("div"),c=a.charAt(0).toUpperCase()+
a.slice(1);a=(a+" "+["Webkit","Moz","O","ms"].join(c+" ")+c).split(" ");for(var d in a)if(c=a[d],b.style[c]!==ca)return c}("transform"),windowsPhone:f}}(),jb=function(){return function(c,b,a){function e(){a.classList.remove("hidden");a.removeAttribute("hidden");setTimeout(function(){p=!0;a.classList.remove("invisible")},0)}function f(){p&&(t||y||!(u||!w||g&&q))&&(p=!1,a.classList.add("invisible"))}function m(){if(!p&&g&&!E&&!y&&(u||!w&&!t||c.embed.settings.info_on_pause&&g&&!t))return e()}function l(){if(c.view===
la||c.view===fa){var b={targetBlank:0===c.embed.on_site,linkToOwner:null!==c.video.owner.url,ownerLink:c.video.owner.url,showPortrait:!!c.embed.settings.portrait,portraitImg:c.video.owner[1<z.devicePixelRatio?"img_2x":"img"],showTitle:!!c.embed.settings.title,showTitleLink:null!==c.video.url,titleLink:c.video.url,title:c.video.title,showByline:!!c.embed.settings.byline,owner:c.video.owner.name};c.embed.settings.byline_badge&&(b.bylineBadge={cssClass:c.embed.settings.byline_badge.type,link:c.embed.settings.byline_badge.url||
!1});var d=c.embed.settings.badge;if(d){var e=1<z.devicePixelRatio?"img_2x":"img";z.svg&&d.svg&&(e="svg");b.showPortrait=!1;b.badge={link:d.link,img:d[e],offset:d.offset||!1,width:d.width,height:d.height,name:d.name}}c.embed.autoplay&&(a.classList.add("hidden"),a.setAttribute("hidden",""));a.innerHTML=Aftershave.render("title",b)}}var p=!0,q=!1,t=!1,u=!1,w=!1,g=!0,y=!1,E=!1,G=!1;l();(function(){b.on([d.mousedOut,d.mouseTimeout],f).on(d.mousedOver,m).on(d.playInitiated,function(){w=!0;g=!1;f()}).on([d.playButtonClicked,
d.played],function(){E=g=!1;f()}).on(d.paused,function(a,b){b||(g=!0,m())}).on(d.ended,function(){y=!0;f()}).on(d.scrubbingStarted,function(){G=g;E=!0}).on(d.scrubbingEnded,function(){G&&(E=!1)}).on(d.willEnterFullscreen,function(){f()}).on(d.didExitFullscreen,function(a){a||m()});Gator(a).on(["MSPointerEnter","MSPointerLeave","mouseenter","mouseleave"],function(a){if("pointerType"in a){if("mouse"===a.pointerType||a.pointerType===a.MSPOINTER_TYPE_MOUSE)q="MSPointerEnter"===a.type}else q="mouseover"===
a.type});Gator(a).on("transitionend",function(b){"opacity"===b.propertyName&&a.classList.contains("invisible")&&(a.classList.add("hidden"),a.setAttribute("hidden",""))},!1)})();(function(){b.on(d.ended,function(a){f()})})();(function(){b.on(d.airPlayActivated,function(){u=!0;m()}).on(d.airPlayDeactivated,function(){u=!1;f()})})();(function(){b.on(d.overlayOpened,function(a){"notsupported"!==a&&"private-unlocked"!==a&&"help"!==a&&(t=!0,q=!1,f())}).on(d.overlayClosed,function(){q=t=!1;setTimeout(m,
0)})})();(function(){b.on(d.configChanged,function(a){c=a;l();c.view===fa&&m()})})();(function(){b.on(na,function(){w=!1;g=!0;E=y=!1;m()})})();b.fire(d.titleModuleReady);return{}}}(),bb=function(){return function(c,b,a){function e(a){var b={},c,d;for(d in a.codecs)if(c=a.codecs[d],a[c])for(var e in a[c]){var f;if(f=a[c].hasOwnProperty(e))f=ia?"h264"===c?2<=ca?""!==ia.h264.high:""===("mobile"===e?ia.h264.baseline:ia.h264.high)||2>ca&&"1080p"===e&&h?!1:!0:"vp8"===c?""!==ia.webm:void 0:!1,f=f&&!(z.iPadNonRetina&&
921600<a[c][e].width*a[c][e].height);f&&(b[e]=a[c][e],b[e].quality=e)}0;return b}function f(a){var b={},c,d;for(d in a.codecs)if(c=a.codecs[d],a[c])for(var e in a[c])a[c].hasOwnProperty(e)&&(b[e]=a[c][e],b[e].quality=e);0;return b}function m(){b.fire(d.bufferStarted);ea=ka=!0;Q||c._video.currentFile.hls||n.pause()}function l(){n.preload="";J||D();x.classList.remove("cloaked");sa?(b.fire(d.error,sa),M(),B()):(b.fire(Ja),P||(0,ja||n.load(),b.fire(d.playInitiated),m(),P=!0,z.android&&!z.browser.chrome&&
n.play()),L=Y=!0,Q&&(Fa=!0,b.fire(Ta)),ja&&r())}function r(){pa||za||(Ca=ka=!1,L&&n.paused&&(0,da&&t(da,function(){da=null}),n.play()))}function q(a){var b=n.duration;b&&a>b&&(a=b);if(0<n.seekable.length)for(var b=0,c=n.seekable.length;b<c;b++)if(n.seekable.start(b)<=a&&n.seekable.end(b)>=a)return!0;return!1}function t(a,b){q(a)?(a=u.limit(a,0,(n.duration||c.duration)-0.01),n.currentTime=a,c._video.currentTime=a,b&&b()):(ta=a,la=b,ua||(Ba.events.forEach(function(a){n.addEventListener(a,A,!1)}),ua=
!0))}function A(){ta&&q(ta)&&(Ba.events.forEach(function(a){n.removeEventListener(a,A,!1)}),ua=!1,ta=u.limit(ta,0,(n.duration||c.duration)-0.01),n.currentTime=ta,c._video.currentTime=ta,la&&la(),r(),la=ta=null)}function w(a,b,c,d){return a+b}function g(){if(n.buffered.length){var a=(new Date).getTime(),b=n.buffered.end(n.buffered.length-1);aa||(aa=a);ba.push(b-ra);ba=ba.slice(-10);W=ba.reduce(w)/ba.length;ma=null;aa=a;ra=b;ma=!0;Math.round(b)!==Math.round(n.duration)?ma=setTimeout(g,1E3):0}}function C(a,
b){var c=a.length-1;if(1<a.length)for(var d=0,e=a.length;d<e;d++)if(a.start(d)<=b&&a.end(d)>=b){c=d;break}return c}function E(a){P&&(S||(S=(new Date).getTime()),ma||g());if(!xa&&n.buffered&&0<n.buffered.length){a=a||n.currentTime;a=C(n.buffered,a);a=n.buffered.end(a);var e=a/n.duration;c._video.loadProgress=a;b.fire(d.loadProgress,a,n.duration,e);ea&&(L&&a===n.duration?r():(n.duration-n.buffered.end(n.buffered.length-1))/W+2<=n.duration-n.currentTime&&(0,r()))}}function G(a){var b=["hd","sd","mobile"];
for(a=b.indexOf(a);3>a;a++){var c=b[a];if($[c])return $[c];if(U[c])return U[c]}return null}function s(a,b,c){var d=0,e=0,f=0,h=0,f=a.clientWidth;a=a.clientHeight;b/=c;f/a>=b?(e=a,d=(b*a).toFixed(2)):(d=f,e=(f/b).toFixed(2));f=Math.max((f-d)/2,0);h=Math.max((a-e)/2,0);return{width:d,height:e,left:f,top:h}}function F(a,c){!P||n.ended?(k(G(a)),b.fire(d.qualityChanged,a,c)):(xa=!0,da||(da=n.currentTime),L=!n.paused,Ca=!0,n.pause(),m(),b.once(d.notificationHidden,function(){H(a,c)}))}function H(e,f){R||
(x.insertAdjacentHTML("beforebegin",'<canvas class="snapshot"></canvas>'),R=a.querySelector(".snapshot"));var h=R.getContext("2d");if(h&&n.canvasImageSource){R.setAttribute("width",n.videoWidth+"px");R.setAttribute("height",n.videoHeight+"px");var g=s(X,c.video.width,c.video.height);R.style.cssText="width:"+g.width+"px;height:"+g.height+"px;left:"+g.left+"px;top:"+g.top+"px";h.drawImage(n.canvasImageSource,0,0,R.width,R.height);R.classList.remove("hidden")}k(G(e));n.load();b.fire(d.qualityChanged,
e,f);t(da,function(){xa=!1})}function M(){X.style.backgroundImage="url("+X.getAttribute("data-thumb")+")"}function k(a){if(a&&(ja=!1,c._video.currentFile=a,n.src=c._video.currentFile.url,c._video.currentRenderer=n.renderer,0<a.bitrate&&J&&J.setCurrentBitrate(a.bitrate),!Ha)){a=n.volume;n.volume=0.999;if(0.999!==u.round(n.volume)||z.android)0,b.fire(Sa);n.volume=a;Ha=!0}}function D(){if("undefined"===typeof Conviva)0,Da=!0;else{Da=!1;var a=Conviva.ConvivaContentInfo.createInfoForLightSession("["+c.video.id+
"] "+c.video.title+" from "+c.video.owner.name);a.cdnName=Conviva.ConvivaContentInfo.CDN_NAME_AKAMAI;a.streamUrl=c._video.currentFile.url;a.isLive=!!c._video.currentFile.hls;a.playerName="HTML";a.tags={location:c.embed.on_site?"on_site":"embed",context:c.embed.context,player_type:"html",player_sub_type:n.renderer,player_version:c.request.build.js,build_num:c.build.player,profile_id:c._video.currentFile.profile,availability_id:c._video.currentFile.availability,video_quality:c._video.currentFile.quality,
delivery_method:c._video.currentFile.hls?"hls":"progressive",user_account_type:c.user.account_type,owner_account_type:c.video.owner.account_type,auto_play:c.embed.autoplay,is_vod:c.video.vod?c.video.vod.is_feature:0,purchased_status:c.user.purchased||0,origin:c._video.currentFile.origin||"unknown",secure:"https:"===y.location.protocol?1:0};J=Conviva.LivePass.createSession(n,a);0<c._video.currentFile.bitrate&&J.setCurrentBitrate(c._video.currentFile.bitrate);J.setContentLength(c.video.duration)}}function B(){J&&
(Conviva.LivePass.cleanupMonitoringSession(n),J=null)}function v(a){for(var b=!1,c=null,d=a.split(".")[0],e=d.substr(0,2),f=null,h=null,g=n.textTracks,k=0,l=g.length;k<l;k++){var m=g[k].language+"."+g[k].kind;if(m===a)b=!0,c=m,f=g[k];else if(g[k].mode=Ua,!b){var p=g[k].language===e;if(g[k].language===d||!c&&p)c=m,h=g[k]}}!b&&h&&(f=h);ja||(ya=c,f=null);f&&(f.mode=Ra);return c}function K(a){a=a.target;if(a.mode!==Va||Fa){var c=a.activeCues,e=[],f;if(c&&0<c.length)for(var g=0,h=a.activeCues.length;g<
h;g++)""!==c[g].text.replace(/^\s+|\s+$/gm,"")&&(f=y.createElement("span"),f.appendChild(c[g].getCueAsHTML()),e.push({html:f.innerHTML.replace("\n","<br>"),text:c[g].text}));b.fire(d.cueChanged,a.id,e)}else{a:{c=0;for(e=n.children.length;c<e;c++)if(n.children[c].track===a){c=n.children[c];break a}c=null}c&&c.id!==Ea&&(a.mode=Ua)}}function I(){if(0===Object.keys($).length&&0===Object.keys(U).length)b.fire(d.error,"no-files");else{var a=c.video.hd&&c.video.allow_hd,e=a&&(null===c.request.cookie.hd?
c.video.default_to_hd:c.request.cookie.hd);if(z.touch&&2E3>screen.width){if(ia.hls&&c.request.files.hls)return c.video.hd=!1,b.fire(Qa),k({url:c.request.files.hls.all,quality:"sd",hls:!0});a&&(z.windowsPhone||z.android&&z.mobileAndroid||z.browser.bb10?0:ia.h264.high)?a=G(e?"hd":"sd"):(c.video.hd=!1,b.fire(Qa),a=G("sd"))}else a=G(e?"hd":"sd");if(!a)return b.fire(d.error,"not-supported");k(a)}}function N(){if("text_tracks"in c.request&&0<c.request.text_tracks.length)c.request.text_tracks.forEach(function(a){var b=
y.createElement("track");b.setAttribute("data-id",a.id);b.setAttribute("src",z.browser.firefox?a.direct_url:a.url);b.setAttribute("kind",a.kind);b.setAttribute("srclang",a.lang);b.setAttribute("label",a.label);n.appendChild(b);Ba.support.cueChange&&b.track.addEventListener("cuechange",K)});else{for(;n.firstChild;)n.removeChild(n.firstChild);b.fire(d.cueChanged,null,[])}}function O(){"Conviva"in p?Conviva.LivePass.init(c.request.urls.conviva_service,c.request.conviva_account,function(a){0===a.code?
(0,Da&&(0,D()),Array.prototype.slice.call(y.querySelectorAll("iframe")).forEach(function(a){a.getAttribute("id")&&0===a.getAttribute("id").indexOf("_convivaRemoteFrame")&&(a.setAttribute("title","Conviva Communication Proxy"),a.setAttribute("aria-hidden","true"),a.setAttribute("hidden",""))})):0}):0}var T=!1,ca=z.devicePixelRatio,ia=Ba.support.video,h=z.touch,$,U,X=a.querySelector(".video"),x=a.querySelector(".flideo"),n=null,R=null,J=null,Q=z.mobileAndroid||z.android&&!z.browser.chrome&&!z.browser.firefox&&
!z.browser.opera||z.windowsPhone,Y=!1,L=!1,P=!1,ha=!1,ea=!1,ka=!1,fa=!1,oa=!1,ga=!1,pa=!1,S,ma,aa,ba=[],W=0,ra=0,V,Ca=!1,da,ja=!1,xa=!0,sa=null,Da=!1,ta=null,la=null,ua=!1,za=!1,Fa=!1,va=!1,Ha=!1,Ea=null,ya=null,Aa=[],La=0,Ma=0;c._video={};c._video.paused=!0;c._video.ended=!1;c._video.currentTime=0;c._video.loadProgress=0;c._video.currentFile={};var Na="undefined"!==typeof TextTrack?TextTrack:{},Ua="DISABLED"in Na?Na.DISABLED:"disabled",Ra="HIDDEN"in Na?Na.HIDDEN:"hidden",Va="SHOWING"in Na?Na.SHOWING:
"showing";x.classList.add("cloaked");$=e(c.request.files);U=f(c.request.files);(function(){if(c.request.flags.conviva&&!("Conviva"in p)){var a=y.getElementsByTagName("script")[0],b=y.createElement("script"),d=!1;b.src=c.request.urls.conviva;b.async=!0;a.parentNode.insertBefore(b,a);b["onreadystatechange"in b?"onreadystatechange":"onload"]=function(){d||this.readyState&&"loaded"!==this.readyState&&"complete"!==this.readyState||(d=!0,Conviva&&Conviva.LivePass.toggleTraces(!1),O())}}})();n=new Ba(x,
{swf:c.request.urls.flideo});n.preload="none";z.mobileAndroid&&z.browser.chrome&&(n.preload="metadata");(function(){b.on(d.mousedOver,function(){T||!c.request.flags.preload_video||ja||"metadata"===n.preload||(n.preload="metadata")})})();(function(){n.addEventListener("loadedmetadata",function(a){ja=!0;ya&&(Ea=v(ya),ya=null);a=n.duration;isFinite(a)&&0<a&&(c.video.duration=a);c.video.video_width=n.videoWidth;c.video.video_height=n.videoHeight;L&&(n.preload="")});n.addEventListener("durationchange",
function(a){a=n.duration;isFinite(a)&&0<a&&(c.video.duration=a);J&&J.setContentLength(c.video.duration)});n.addEventListener("waiting",function(){oa||z.browser.firefox||m()},!1);n.addEventListener("canplay",function(){ha=!0;if(c.embed.autoplay||L||Y&&!P)0,r()},!1);n.addEventListener("canplaythrough",function(){(ka||L&&n.paused)&&r()},!1);n.addEventListener("progress",function(a){E()},!1)})();(function(){b.on(d.playInitiated,function(){x.classList.remove("cloaked");a.classList.remove("invisible")});
b.on(d.playButtonClicked,l);b.on(d.pauseButtonClicked,function(){L=!1;n.pause()});n.addEventListener("play",function(a){xa=!1;P||ha?(x.classList.remove("invisible"),b.fire(d.played,n.currentTime),c._video.paused=!1,c._video.ended=!1):(b.fire(d.playInitiated),L=Y=P=!0)},!1);n.addEventListener("pause",function(a){c._video.paused=!0;!P||ka||pa||Ca||b.fire(d.paused,n.currentTime,n.ended);V&&(clearTimeout(V),V=null)},!1);n.addEventListener("playing",function(a){P||(b.fire(d.playInitiated),P=!0);E();fa=
!0},!1);n.addEventListener("timeupdate",function(a){a=n.currentTime;c._video.currentRenderer=n.renderer;P&&0<a&&!ga&&!Fa&&(clearTimeout(V),V=setTimeout(function(){!1!==n.paused||ga||Fa||(0,m())},2E3));fa&&ea&&0<a&&(0,fa=!1,ea&&(b.fire(d.bufferEnded),ea=ka=!1));if(0<n.buffered.length&&!ea){var e=C(n.buffered,a),e=n.buffered.end(e);if(!Fa&&0<a&&a<n.duration&&e===a){0;m();return}}xa||(e=n.duration,b.fire(d.playProgress,a,e,a/e),c._video.currentTime=a,da&&a>da&&(da=null));R&&(R.classList.add("hidden"),
R=null);if(Ba.support.textTracks&&!Ba.support.cueChange){a=n.textTracks;for(var e=0,f=a.length;e<f;e++)if(a[e].mode===Ra){if(Aa.length!==a[e].activeCues.length){K({target:a[e]});Aa=[].slice.call(a[e].activeCues);break}for(var g=0,h=a[e].activeCues.length;g<h;g++)if(a[e].activeCues[g].startTime!==Aa[g].startTime){K({target:a[e]});Aa=[].slice.call(a[e].activeCues);break}}}},!1);n.addEventListener("ended",function(a){pa||(c.embed.loop?n.play():(b.fire(d.ended),L=!1,c._video.paused=!0,c._video.ended=
!0))},!1)})();(function(){var a=!1;p.addEventListener("beforeunload",function(){a=!0});n.addEventListener("error",function(e){if(!a&&e.target.error){var f=c._video.currentFile?c._video.currentFile.quality:null;if(null!==n.currentSrc&&f)switch(J||D(),e.target.error.code){case e.target.error.MEDIA_ERR_SRC_NOT_SUPPORTED:0;e=f;$[f]&&U[f]&&$[f].url!==U[f].url||(delete U[f],e="hd"===f?"sd":"sd"===f?"mobile":null);delete $[f];c._video.currentFile=G(e);0;if(c._video.currentFile){k(c._video.currentFile);break}Y&&
J&&J.reportError(Conviva.ConvivaLightSession.ERROR_STREAMING_FAILURE);if("metadata"===n.preload){0;sa="not-supported";break}b.fire(d.error,"not-supported");sa="not-supported";B();break;case e.target.error.MEDIA_ERR_DECODE:0;b.fire(d.error,"decode");J&&(J.reportError(Conviva.ConvivaLightSession.ERROR_STREAMING_FAILURE),B());break;case e.target.error.MEDIA_ERR_NETWORK:0;b.fire(d.error,"network");J&&(J.reportError(Conviva.ConvivaLightSession.ERROR_CONNECTION_FAILURE),B());break;case e.target.error.MEDIA_ERR_ABORTED:0;
break;default:0,b.fire(d.error,"unknown"),J&&(J.reportError(Conviva.ConvivaLightSession.ERROR_STREAMING_FAILURE),B())}else 0}})})();(function(){function a(){var b=y.createElement("style");y.querySelector("head").appendChild(b);f=b.sheet}function d(){var b=Math.min(n.videoWidth||c.video.width,screen.width),e=Math.min(n.videoHeight||c.video.height,screen.height);if(Ma!==b||La!==e){var g="width:"+b+"px;",g=g+("height:"+e+"px;"),g=g+("margin-left:-"+(b/2).toFixed(2)+"px;"),g=g+("margin-top:-"+(e/2).toFixed(2)+
"px;"),g=g+"top:50%;",g=g+"left:50%;";f||a();[".player:-webkit-full-screen .video-wrapper .video.native-size",".player:-moz-full-screen .video-wrapper .video.native-size",".player:-ms-full-screen .video-wrapper .video.native-size",".player:fullscreen .video-wrapper .video.native-size"].forEach(function(a){u.addCssRule(a,g,f)});La=e;for(Ma=b;1<f.cssRules.length;)f.deleteRule(0)}}function e(a){a?X.classList.remove("native-size"):(d(),X.classList.add("native-size"))}var f;n.addEventListener("loadedmetadata",
function(){d()});b.on(4,e);e(c.request.cookie.scaling)})();(function(){b.on(8,function(a){c.embed.loop=!!a;n.loop=!!a});b.fire(8,c.embed.loop)})();(function(){b.on(d.scrubbingStarted,function(){L=!n.paused;pa=ga=!0;n.pause();clearTimeout(V)});b.on(d.scrubbingEnded,function(a){pa=!1;a||r()});b.on(Ga,function(a,e){e||(e=(n.duration||c.video.duration)*u.limit(a,0,1));e=u.limit(e,0,n.duration||c.video.duration);P||(b.fire(d.playButtonClicked),L=Y=P=!0);t(e,function(){b.fire(d.seeked,n.currentTime,n.duration,
n.currentTime/n.duration)})});n.addEventListener("seeking",function(){oa=!0},!1);n.addEventListener("seeked",function(){E();ga=oa=!1;n.readyState!==HTMLMediaElement.HAVE_ENOUGH_DATA||pa||r()},!1)})();(function(){b.on(Z,function(a,c,e){e&&(a+=n.volume);n.volume=u.limit(a,0,1);b.fire(d.volumeChanged,u.limit(a,0,1),c)});b.fire(Z,c.request.cookie.volume,!0)})();(function(){b.on(9,function(a,b){"hd"===a?(0,F("hd",b)):(0,F("sd",b))})})();(function(){b.on(d.overlayOpened,function(){za=!0;P&&!va&&(L=!n.paused,
n.pause())});b.on(d.overlayClosed,function(){za=!1;L&&!va&&r()})})();(function(){b.on(d.didEnterFullscreen,function(a,c){a||(x.classList.remove("cloaked"),P||z.browser.safari||(n.poster=X.getAttribute("data-thumb")),Fa=!0);!c&&z.windowsPhone&&b.fire(Ka,!0)});b.on(d.didExitFullscreen,function(a){n.poster="";P||x.classList.add("cloaked");Fa=!1;a||(M(),x.classList.add("cloaked"));Q&&n.pause()});b.on(d.playInitiated,function(){n.poster=""})})();(function(){b.on(Ka,function(b){b?(n.controls=!0,a.classList.add("native-controls")):
(n.controls=!1,a.classList.remove("native-controls"))})})();(function(){b.on(d.signatureExpired,function(){T=!0;da=n.currentTime});b.on(d.requestConfigReloaded,function(a){c.request=a;T=!1;$=e(c.request.files);U=f(c.request.files);1===n.buffered.length&&n.buffered.end(0)===n.duration||I();L&&n.paused&&r()});b.on(d.configChanged,function(a,b){var d=c._video.currentFile;c=a;$=e(c.request.files);U=f(c.request.files);c._video={paused:n.paused,ended:n.ended,currentTime:n.currentTime,currentFile:d,currentRenderer:n.renderer};
E()})})();(function(){Gator(x).on("transitionend",function(a){"opacity"===a.propertyName&&"0"===p.getComputedStyle(this,"").opacity&&x.classList.remove("transition")},!1);b.on(na,function(a){0;xa=!0;n.paused||(n.pause(),b.fire(d.paused,n.currentTime));M();x.classList.add("transition");x.classList.add("invisible");L=P=!1;sa=null;c._video.paused=!0;c._video.ended=!1;c._video.currentTime=0;c._video.loadProgress=0;setTimeout(function(){n.currentTime=0},300);a&&(n.preload="none",I(),B(),N())})})();I();
(function(){0<c.embed.time&&t(c.embed.time,function(){c.embed.time=0})})();(function(){z.airPlay&&(0,n.addEventListener("webkitplaybacktargetavailabilitychanged",function(a){switch(a.availability){case "available":0;b.fire(d.airPlayAvailable);break;case "not-available":0,b.fire(d.airPlayNotAvailable)}}),n.addEventListener("webkitcurrentplaybacktargetiswirelesschanged",function(a){if(n.webkitCurrentPlaybackTargetIsWireless)return va=!0,b.fire(d.airPlayActivated);va=!1;b.fire(d.airPlayDeactivated)}),
b.on(d.airPlayButtonPressed,function(){n.webkitShowPlaybackTargetPicker()}))})();(function(){Ba.support.textTracks&&(b.on(d.didEnterFullscreen,function(a){var b=n.textTracks;Fa=!a;if(!a&&0<b.length){a=0;for(var c=b.length;a<c;a++)b[a].mode===Ra&&(b[a].mode=Va)}}).on(d.didExitFullscreen,function(){var a=n.textTracks;Fa=!1;if(0<a.length)for(var c=0,e=a.length;c<e;c++)if(a[c].mode===Va){a[c].mode=Ra;var f=a[c].language+"."+a[c].kind;f!==Ea&&(Ea=f,b.fire(d.captionsChanged,Ea))}}).on(Oa,function(a){Ea=
v(a);b.fire(d.cueChanged,null,[]);var c=!1;Ea!==a&&(c=!0);b.fire(d.captionsChanged,Ea,c)}).on(Pa,function(){for(var a=n.textTracks,c=0,e=a.length;c<e;c++)a[c].mode=Ua;Ea=null;b.fire(d.cueChanged,null,[]);b.fire(d.captionsChanged,null)}),N(),"text_tracks"in c.request&&0<c.request.text_tracks.length&&(null!==c.request.cookie.captions?b.fire(Oa,c.request.cookie.captions,!0):b.fire(Pa,!0)))})();c.embed.autoplay&&(n.preload="",Y=!0,b.fire(d.playButtonClicked));b.fire(d.videoModuleReady)}}();p.VimeoPlayer=
cb})(window,document);
