Plugin Directory

Changeset 3364530


Ignore:
Timestamp:
09/19/2025 12:25:53 PM (5 months ago)
Author:
FolioVision
Message:

8.0.27: Analytics and Stats bugfixes

Location:
fv-player/trunk
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • fv-player/trunk/controller/s3-upload.php

    r3348866 r3364530  
    377377      'video/mkv',
    378378      'video/quicktime',
     379      'video/x-matroska',
    379380      'audio/mp3',
    380381      'audio/wav',
  • fv-player/trunk/controller/track.php

    r3280872 r3364530  
    297297    $guest_user_id = 0;
    298298
    299     if( absint( $_REQUEST['user_id'] ) == 0 && !empty($options['video_stats_enable_guest']) ) { // guest user
     299    if( absint( $_REQUEST['user_id'] ) == 0 && ! empty( $options['video_stats_enable_guest'] ) && 'true' === $options['video_stats_enable_guest']) { // guest user
    300300
    301301      if( isset( $_COOKIE['fv_player_stats_guest_user_id'] ) ) { // check if cookie is set
  • fv-player/trunk/freedom-video-player/freedomplayer.min.js

    r3326358 r3364530  
    44
    55*/
    6 !function(i){if(!document.createEvent){function e(e){return{enumerable:!0,writable:!0,configurable:!0,value:e}}var t,s,l,u,o=!0,n=!1,a="onreadystatechange",c="DOMContentLoaded",f="__IE8__"+Math.random(),d=Object.defineProperty||function(e,t,n){e[t]=n.value},r=Object.defineProperties||function(t,e){for(var n in e)if(h.call(e,n))try{d(t,n,e[n])}catch(e){i.console&&console.log(n+" failed on object:",t,e.message)}},p=Object.getOwnPropertyDescriptor,h=Object.prototype.hasOwnProperty,g=i.Element.prototype,m=i.Text.prototype,P=/^[a-z]+$/,v=/loaded|complete/,y={},b=document.createElement("div"),w=document.documentElement,z=w.removeAttribute,U=w.setAttribute,E=(A(i.HTMLCommentElement.prototype,g,"nodeValue"),A(i.HTMLScriptElement.prototype,null,"text"),A(m,null,"nodeValue"),A(i.HTMLTitleElement.prototype,null,"text"),d(i.HTMLStyleElement.prototype,"textContent",(t=p(i.CSSStyleSheet.prototype,"cssText"),T(function(){return t.get.call(this.styleSheet)},function(e){t.set.call(this.styleSheet,e)}))),/\b\s*alpha\s*\(\s*opacity\s*=\s*(\d+)\s*\)/),B=(d(i.CSSStyleDeclaration.prototype,"opacity",{get:function(){var e=this.filter.match(E);return e?(e[1]/100).toString():""},set:function(e){var t=!(this.zoom=1);e=e<1?" alpha(opacity="+Math.round(100*e)+")":"",this.filter=this.filter.replace(E,function(){return t=!0,e}),!t&&e&&(this.filter+=e)}}),r(g,{textContent:{get:k,set:S},firstElementChild:{get:function(){for(var e=this.childNodes||[],t=0,n=e.length;t<n;t++)if(1==e[t].nodeType)return e[t]}},lastElementChild:{get:function(){for(var e=this.childNodes||[],t=e.length;t--;)if(1==e[t].nodeType)return e[t]}},oninput:{get:function(){return this._oninput||null},set:function(e){this._oninput&&(this.removeEventListener("input",this._oninput),this._oninput=e)&&this.addEventListener("input",e)}},previousElementSibling:{get:function(){for(var e=this.previousSibling;e&&1!=e.nodeType;)e=e.previousSibling;return e}},nextElementSibling:{get:function(){for(var e=this.nextSibling;e&&1!=e.nodeType;)e=e.nextSibling;return e}},childElementCount:{get:function(){for(var e=0,t=this.childNodes||[],n=t.length;n--;e+=1==t[n].nodeType);return e}},addEventListener:e(function(e,t,n){if("function"==typeof t||"object"==typeof t){var r,o,i=this,a="on"+e,s=i[f]||d(i,f,{value:{}})[f],s=s[a]||(s[a]={}),l=s.h||(s.h=[]);if(!h.call(s,"w")){if(s.w=function(e){return e[f]||M(i,I(0,e),l,!1)},!h.call(y,a))if(P.test(e)){try{(r=document.createEventObject())[f]=!0,9!=i.nodeType&&(null==i.parentNode&&b.appendChild(i),o=i.getAttribute(a))&&z.call(i,a),i.fireEvent(a,r),y[a]=!0}catch(e){for(y[a]=!1;b.hasChildNodes();)b.removeChild(b.firstChild)}null!=o&&U.call(i,a,o)}else y[a]=!1;(s.n=y[a])&&i.attachEvent(a,s.w)}_(l,t)<0&&l[n?"unshift":"push"](t),"input"===e&&i.attachEvent("onkeyup",R)}}),dispatchEvent:e(function(e){var t=this,n="on"+e.type,r=t[f],r=r&&r[n],o=!!r;return e.target||(e.target=t),o?r.n?t.fireEvent(n,e):M(t,e,r.h,!0):(o=t.parentNode)&&o.dispatchEvent(e),!e.defaultPrevented}),removeEventListener:e(function(e,t,n){var r;"function"!=typeof t&&"object"!=typeof t||-1<(r=(e=(r=(r=this[f])&&r["on"+e])&&r.h)?_(e,t):-1)&&e.splice(r,1)})}),r(m,{addEventListener:e(g.addEventListener),dispatchEvent:e(g.dispatchEvent),removeEventListener:e(g.removeEventListener)}),r(i.XMLHttpRequest.prototype,{addEventListener:e(function(t,e,n){var r=this,o="on"+t,i=r[f]||d(r,f,{value:{}})[f],i=i[o]||(i[o]={}),i=i.h||(i.h=[]);_(i,e)<0&&(r[o]||(r[o]=function(){var e=document.createEvent("Event");e.initEvent(t,!0,!0),r.dispatchEvent(e)}),i[n?"unshift":"push"](e))}),dispatchEvent:e(function(e){var t="on"+e.type,n=this[f],n=n&&n[t];return!!n&&(n.n?this.fireEvent(t,e):M(this,e,n.h,!0))}),removeEventListener:e(g.removeEventListener)}),p(Event.prototype,"button").get),m=(r(i.Event.prototype,{bubbles:e(!0),cancelable:e(!0),preventDefault:e(function(){this.cancelable&&(this.returnValue=!1)}),stopPropagation:e(function(){this.stoppedPropagation=!0,this.cancelBubble=!0}),stopImmediatePropagation:e(function(){this.stoppedImmediatePropagation=!0,this.stopPropagation()}),initEvent:e(function(e,t,n){this.type=e,this.bubbles=!!t,this.cancelable=!!n,this.bubbles||this.stopPropagation()}),pageX:{get:function(){return this._pageX||(this._pageX=this.clientX+i.scrollX-(w.clientLeft||0))}},pageY:{get:function(){return this._pageY||(this._pageY=this.clientY+i.scrollY-(w.clientTop||0))}},which:{get:function(){return this.keyCode||(isNaN(this.button)?void 0:this.button+1)}},charCode:{get:function(){return this.keyCode&&"keypress"==this.type?this.keyCode:0}},buttons:{get:function(){return B.call(this)}},button:{get:function(){var e=this.buttons;return 1&e?0:2&e?2:4&e?1:void 0}},defaultPrevented:{get:function(){var e=this.returnValue;return!(void 0===e||e)}},relatedTarget:{get:function(){var e=this.type;return"mouseover"===e?this.fromElement:"mouseout"===e?this.toElement:null}}}),r(i.HTMLDocument.prototype,{defaultView:{get:function(){return this.parentWindow}},textContent:{get:function(){return 11===this.nodeType?k.call(this):null},set:function(e){11===this.nodeType&&S.call(this,e)}},addEventListener:e(function(e,t,n){var r=this;g.addEventListener.call(r,e,t,n),o&&e===c&&!v.test(r.readyState)&&(o=!1,r.attachEvent(a,N),i==top)&&function t(e){try{r.documentElement.doScroll("left"),N()}catch(e){setTimeout(t,50)}}()}),dispatchEvent:e(g.dispatchEvent),removeEventListener:e(g.removeEventListener),createEvent:e(function(e){if("Event"!==e)throw new Error("unsupported "+e);return(e=document.createEventObject()).timeStamp=(new Date).getTime(),e})}),r(i.Window.prototype,{getComputedStyle:e((s=/^(?:[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|))(?!px)[a-z%]+$/,l=/^(top|right|bottom|left)$/,u=/\-([a-z])/g,D.prototype.getPropertyValue=function(e){var t,n,r,o=this._,i=o.style,a=o.currentStyle,o=o.runtimeStyle;return"opacity"==e?i.opacity||"1":(t=(a||i)[e=("float"===e?"style-float":e).replace(u,Y)],s.test(t)&&!l.test(e)&&(n=i.left,(r=o&&o.left)&&(o.left=a.left),i.left="fontSize"===e?"1em":t,t=i.pixelLeft+"px",i.left=n,r)&&(o.left=r),null==t?t:t+""||"auto")},F.prototype.getPropertyValue=function(){return null},function(e,t){return t?new F:new D(e)})),addEventListener:e(function(e,t,n){var r,o=i,e="on"+e;o[e]||(o[e]=function(e){return M(o,I(0,e),r,!1)&&void 0}),_(r=o[e][f]||(o[e][f]=[]),t)<0&&r[n?"unshift":"push"](t)}),dispatchEvent:e(function(e){var t=i["on"+e.type];return!t||!1!==t.call(i,e)&&!e.defaultPrevented}),removeEventListener:e(function(e,t,n){e=(i["on"+e]||Object)[f],t=e?_(e,t):-1;-1<t&&e.splice(t,1)}),pageXOffset:{get:L("scrollLeft")},pageYOffset:{get:L("scrollTop")},scrollX:{get:L("scrollLeft")},scrollY:{get:L("scrollTop")},innerWidth:{get:L("clientWidth")},innerHeight:{get:L("clientHeight")}}),i.HTMLElement=i.Element,document.styleSheets),C=["header","nav","section","article","aside","footer"],x=void 0;for(x=0;x<C.length;x++)document.createElement(C[x]);m.length||document.createStyleSheet(""),m[0].addRule(C.join(","),"display:block;"),document.createRange||(document.createRange=function(){return new O},(r=O.prototype).cloneContents=function(){for(var e=this._start.ownerDocument.createDocumentFragment(),t=j(this._start,this._end),n=0,r=t.length;n<r;n++)e.appendChild(t[n].cloneNode(!0));return e},r.cloneRange=function(){var e=new O;return e._start=this._start,e._end=this._end,e},r.deleteContents=function(){for(var e=this._start.parentNode,t=j(this._start,this._end),n=0,r=t.length;n<r;n++)e.removeChild(t[n])},r.extractContents=function(){for(var e=this._start.ownerDocument.createDocumentFragment(),t=j(this._start,this._end),n=0,r=t.length;n<r;n++)e.appendChild(t[n]);return e},r.setEndAfter=function(e){this._end=e},r.setEndBefore=function(e){this._end=e.previousSibling},r.setStartAfter=function(e){this._start=e.nextSibling},r.setStartBefore=function(e){this._start=e})}function M(e,t,n,r){for(var o,i=n.slice(),a=((n=t).currentTarget=e,n.eventPhase=n.target===n.currentTarget?2:3,n),s=0,l=i.length;s<l&&("object"==typeof(o=i[s])?"function"==typeof o.handleEvent&&o.handleEvent(a):o.call(e,a),!a.stoppedImmediatePropagation);s++);return t=!a.stoppedPropagation,r&&t&&e.parentNode?e.parentNode.dispatchEvent(a):!a.defaultPrevented}function T(e,t){return{configurable:!0,get:e,set:t}}function A(e,t,n){var r=p(t||e,n);d(e,"textContent",T(function(){return r.get.call(this)},function(e){r.set.call(this,e)}))}function _(e,t){for(var n=e.length;n--&&e[n]!==t;);return n}function k(){if("BR"===this.tagName)return"\n";for(var e=this.firstChild,t=[];e;)8!==e.nodeType&&7!==e.nodeType&&t.push(e.textContent),e=e.nextSibling;return t.join("")}function R(e){var t=document.createEvent("Event");t.initEvent("input",!0,!0),(e.srcElement||e.fromElement||document).dispatchEvent(t)}function N(e){!n&&v.test(document.readyState)&&(n=!n,document.detachEvent(a,N),(e=document.createEvent("Event")).initEvent(c,!0,!0),document.dispatchEvent(e))}function L(e){return function(){return w[e]||document.body&&document.body[e]||0}}function S(e){for(var t;t=this.lastChild;)this.removeChild(t);null!=e&&this.appendChild(document.createTextNode(e))}function I(e,t){return(t=t||i.event).target||(t.target=t.srcElement||t.fromElement||document),t.timeStamp||(t.timeStamp=(new Date).getTime()),t}function Y(e,t){return t.toUpperCase()}function D(e){this._=e}function F(){}function j(e,t){for(var n=[e];e!==t;)n.push(e=e.nextSibling);return n}function O(){}}(this.window||global),function(e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).freedomplayer=e()}(function(){return function r(o,i,a){function s(t,e){if(!i[t]){if(!o[t]){var n="function"==typeof require&&require;if(!e&&n)return n(t,!0);if(l)return l(t,!0);throw(e=new Error("Cannot find module '"+t+"'")).code="MODULE_NOT_FOUND",e}n=i[t]={exports:{}},o[t][0].call(n.exports,function(e){return s(o[t][1][e]||e)},n,n.exports,r,o,i,a)}return i[t].exports}for(var l="function"==typeof require&&require,e=0;e<a.length;e++)s(a[e]);return s}({1:[function(e,t,n){"use strict";var i=t.exports={},r=e("class-list"),a=window.jQuery,o=e("punycode"),s=e("computed-style");function l(e){return e.replace(/-[a-z]/g,function(e){return e[1].toUpperCase()})}i.noop=function(){},i.identity=function(e){return e},i.removeNode=function(e){e&&e.parentNode&&e.parentNode.removeChild(e)},i.find=function(e,t){return a?a(e,t).toArray():(t=t||document,Array.prototype.map.call(t.querySelectorAll(e),function(e){return e}))},i.text=function(e,t){e["innerText"in e?"innerText":"textContent"]=t},i.findDirect=function(e,t){return i.find(e,t).filter(function(e){return e.parentNode===t})},i.hasClass=function(e,t){return"string"==typeof e.className&&r(e).contains(t)},i.isSameDomain=function(e){var t=window.location,e=i.createElement("a",{href:e});return t.hostname===e.hostname&&t.protocol===e.protocol&&t.port===e.port},i.css=function(t,n,e){return"object"==typeof n?Object.keys(n).forEach(function(e){i.css(t,e,n[e])}):void 0!==e?""===e?t?t.style.removeProperty(n):void 0:t?t.style.setProperty(n,e):void 0:t?s(t,n):void 0},i.createElement=function(t,n,r){try{var e,o=document.createElement(t);for(e in n)n.hasOwnProperty(e)&&("css"===e?i.css(o,n[e]):i.attr(o,e,n[e]));return r&&(o.innerHTML=r),o}catch(e){if(a)return a("<"+t+">"+r+"</"+t+">").attr(n)[0];throw e}},i.toggleClass=function(e,t,n){e&&(e=r(e),void 0===n?e.toggle(t):n?e.add(t):e.remove(t))},i.addClass=function(e,t){return i.toggleClass(e,t,!0)},i.removeClass=function(e,t){return i.toggleClass(e,t,!1)},i.append=function(e,t){return e.appendChild(t),e},i.appendTo=function(e,t){return i.append(t,e),e},i.prepend=function(e,t){e.insertBefore(t,e.firstChild)},i.insertAfter=function(e,t,n){t==i.lastChild(e)&&e.appendChild(n);t=Array.prototype.indexOf.call(e.children,t);e.insertBefore(n,e.children[t+1])},i.html=function(e,t){(e=e.length?e:[e]).forEach(function(e){e.innerHTML=t})},i.attr=function(t,n,r){if(i.hasOwnOrPrototypeProperty(t,n="class"===n?"className":n))try{t[n]=r}catch(e){if(!a)throw e;a(t).attr(n,r)}else!1===r?t.removeAttribute(n):t.setAttribute(n,r);return t},i.prop=function(e,t,n){if(void 0===n)return e&&e[t];e[t]=n},i.offset=function(e){var t=e.getBoundingClientRect();return t=e.offsetWidth/e.offsetHeight>e.clientWidth/e.clientHeight?{left:100*t.left,right:100*t.right,top:100*t.top,bottom:100*t.bottom,width:100*t.width,height:100*t.height}:t},i.width=function(e,t){return t?e.style.width=(""+t).replace(/px$/,"")+"px":void 0===(t=i.offset(e).width)?e.offsetWidth:t},i.height=function(e,t){return t?e.style.height=(""+t).replace(/px$/,"")+"px":void 0===(t=i.offset(e).height)?e.offsetHeight:t},i.lastChild=function(e){return e.children[e.children.length-1]},i.hasParent=function(e,t){for(var n=e.parentElement;n;){if("string"!=typeof t){if(n===t)return!0}else if(i.matches(n,t))return!0;n=n.parentElement}return!1},i.createAbsoluteUrl=function(e){return i.createElement("a",{href:e}).href},i.xhrGet=function(e,t,n){var r=new XMLHttpRequest;r.onreadystatechange=function(){if(4===this.readyState)return 400<=this.status?n():void t(this.responseText)},r.open("get",e,!0),r.send()},i.pick=function(t,e){var n={};return e.forEach(function(e){t.hasOwnProperty(e)&&(n[e]=t[e])}),n},i.hostname=function(e){return o.toUnicode(e||window.location.hostname)},i.browser={webkit:"WebkitAppearance"in document.documentElement.style},i.getPrototype=function(e){return Object.getPrototypeOf?Object.getPrototypeOf(e):e.__proto__},i.hasOwnOrPrototypeProperty=function(e,t){for(var n=e;n;){if(Object.prototype.hasOwnProperty.call(n,t))return!0;n=i.getPrototype(n)}return!1},i.matches=function(e,t){var n=Element.prototype;return(n.matches||n.matchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector||n.webkitMatchesSelector||function(e){for(var t=(this.document||this.ownerDocument).querySelectorAll(e),n=0;t[n]&&t[n]!==this;)n++;return!!t[n]}).call(e,t)},void 0!==(t=window.CSSStyleDeclaration.prototype).setAttribute&&(t.setProperty=function(e,t){return this.setAttribute(l(e),String(t))},t.getPropertyValue=function(e){return this.getAttribute(l(e))||null},t.removeProperty=function(e){var t=this.getPropertyValue(e);return this.removeAttribute(l(e)),t})},{"class-list":29,"computed-style":30,punycode:35}],2:[function(e,t,n){"use strict";var a,h=e("../freedomplayer"),r=h.support,g=h.common,m=h.bean,o=e("./html5-factory");function s(e){return void 0!==window.Hls&&/mpegurl/.test(e)&&window.Hls.isSupported()}(a=function(c,i){var f,d,p=window.Hls;return o("hlsjs-lite",c,i,s,function(s,l,e){function r(e){if(c.debug("hlsjs - recovery"),g.removeClass(i,"is-paused"),g.addClass(i,"is-seeking"),m.one(l,"seeked",function(){l.paused&&(g.removeClass(i,"is-poster"),c.poster=!1,l.play()),g.removeClass(i,"is-seeking")}),e)return u.startLoad();e=performance.now(),!t||3e3<e-t?(t=performance.now(),u.recoverMediaError()):(!n||3e3<e-n)&&(n=performance.now(),u.swapAudioCodec(),u.recoverMediaError())}var t,n,o=h.extend({startFragPrefetch:l.preload,recoverMediaError:!0},c.conf.hlsjs,s.hlsjs),u=(c.engine.hls&&c.engine.hls.destroy(),c.engine.hls=new p(o));return a.extensions.forEach(function(e){e({hls:u,player:c,root:i,videoTag:l})}),window.FV_Player_Pro&&window.fv_player_video_parse&&!i.getAttribute("fvhkey")&&FV_Player_Pro.is_dynamic(s.src)||u.loadSource(s.src),e.resume=function(){c.live&&!c.dvr&&(l.currentTime=u.liveSyncPosition||0),l.play()},!(e.seek=function(t){try{c.live||c.dvr?l.currentTime=Math.min(t,u.liveSyncPosition||l.duration-o.livePositionOffset):l.currentTime=t}catch(e){c.debug("Failed to seek to ",t,e)}})===o.bufferWhilePaused&&c.on("pause",function(){u.stopLoad(),c.one("resume",function(){u.startLoad()})}),c.on("quality",function(e,t,n){u.nextLevel=f=n}),u.on(p.Events.MANIFEST_PARSED,function(e,t){var r,o=s.hlsQualities||c.conf.hlsQualities,i={},n=t.levels;if(!1===o)return u.attachMedia(l);if("drive"===o)switch(n.length){case 4:r=[1,2,3];break;case 5:r=[1,2,3,4];break;case 6:r=[1,3,4,5];break;case 7:r=[1,3,5,6];break;case 8:r=[1,3,6,7];break;default:r=n.length<3||n[0].height&&n[2].height&&n[0].height===n[2].height?[]:[1,2]}s.qualities=[{value:-1,label:"Auto"}],Array.isArray(o)&&((t=o.find(function(e){return-1===e||e.level&&-1===e.level}))?s.qualities[0].label=("number"!=typeof t?t:s.qualities[0]).label:s.qualities=[],r=o.map(function(e){return void 0!==e.level&&(i[e.level]=e.label),void 0!==e.level?e.level:e}));var a=-2,t=(s.qualities=s.qualities.concat(n.map(function(e,t){var n;return(!r||-1!==r.indexOf(t))&&(n=i[t]||Math.min(e.width,e.height)+"p",i[t]||"drive"===o||(n+=" ("+Math.round(e.bitrate/1e3)+"k)"),t===f&&(a=t),{value:t,label:n,width:e.width,height:e.height})})).filter(g.identity),c.one("ready",function(){1<s.qualities.length&&(s.width=s.qualities[s.qualities.length-1].width,s.height=s.qualities[s.qualities.length-1].height)}),s.quality=-2===a?s.qualities[0].value||-1:a);t!==u.currentLevel&&(u.currentLevel=t),u.on(p.Events.LEVEL_LOADED,function(){c.preload&&c.trigger("ready",[c,s])}),u.attachMedia(l),d&&s.src!==d&&l.play(),d=s.src}),u.on(p.Events.ERROR,function(e,t){var n;t.fatal&&(o.recoverNetworkError&&t.type===p.ErrorTypes.NETWORK_ERROR?r(!0):o.recoverMediaError&&t.type===p.ErrorTypes.MEDIA_ERROR?r(!1):(n=5,t.type===p.ErrorTypes.NETWORK_ERROR&&(n=2),t.type===p.ErrorTypes.MEDIA_ERROR&&(n=3),u.destroy(),c.trigger("error",[c,{code:n}])))}),c.one("unload",function(){u.destroy()}),{handlers:{error:function(e,t){t=t.error&&t.error.code;return o.recoverMediaError&&3===t||!t?(e.preventDefault(),r(!1),!0):o.recoverNetworkError&&2===t?(e.preventDefault(),r(!0),!0):void 0}}}})}).canPlay=function(e,t){return!(!1===t.hlsjs||t.clip&&!1===t.clip.hlsjs)&&!(r.browser.safari&&!(t.clip&&t.clip.hlsjs||t.hlsjs||{}).safari)&&h.support.video&&s(e)},a.engineName="hlsjs-lite",a.plugin=function(e){a.extensions.push(e)},a.extensions=[],h.engines.push(a)},{"../freedomplayer":24,"./html5-factory":3}],3:[function(e,t,n){var e=e("../freedomplayer"),g=e.common,m=e.support,v=e.bean,y=e.extend,r=m.browser.safari&&!m.iOS,b={ended:"finish",pause:"pause",play:"resume",timeupdate:"progress",volumechange:"volume",ratechange:"speed",seeked:"seek",loadedmetadata:r?0:"ready",canplaythrough:r?"ready":0,durationchange:"ready",error:"error",dataunavailable:"error",webkitendfullscreen:!e.support.inlineVideo&&"unload",progress:"buffer"};function w(e,t){return t=t||100,Math.round(e*t)/t}t.exports=function(e,d,p,h,s){var t,l,u,c=g.findDirect("video",p)[0]||g.find(".fp-player > video",p)[0],f=d.conf;return u={engineName:e,pick:function(e){e=m.video&&e.filter(function(e){return h(e.type)})[0];if(e)return"string"==typeof e.src&&(e.src=g.createAbsoluteUrl(e.src)),e},load:function(e){if(window.FV_Player_Pro&&window.fv_player_video_parse&&!p.getAttribute("fvhkey")&&FV_Player_Pro.is_dynamic(e.src)){if(fv_player_video_parse(e,this,d,p),window.fv_player_pro_dammit[p.id])return!1;m.inlineVideo&&(window.fv_player_pro_dammit[p.id]=!0)}var t,n,r,o,i=g.find(".fp-player",p)[0],a=!1,i=(c||(c=document.createElement("video"),g.prepend(i,c),c.autoplay=!!f.splash,a=!0),g.addClass(c,"fp-engine"),g.find("track",c).forEach(g.removeNode),c.preload="none",f.nativesubtitles||g.attr(c,"crossorigin",!1),f.disableInline||(c.setAttribute("webkit-playsinline","true"),c.setAttribute("playsinline","true")),m.inlineVideo||g.css(c,{position:"absolute",top:"-9999em"}),f.video_cross_origin?g.attr(c,"crossorigin","anonymous"):g.attr(c,"crossorigin",!1),m.subtitles&&f.nativesubtitles&&e.subtitles&&e.subtitles.length&&(g.addClass(c,"native-subtitles"),i=e.subtitles,t=function(e){var t=c.textTracks;t.length&&(t[0].mode=e)},(!m.iOS||parseInt(m.iOS.version)<18)&&i.some(function(e){return!g.isSameDomain(e.src)})&&g.attr(c,"crossorigin","anonymous"),"function"==typeof c.textTracks.addEventListener&&c.textTracks.addEventListener("addtrack",function(){t("disabled"),t("showing")}),i.forEach(function(e){c.appendChild(g.createElement("track",{kind:"subtitles",srclang:e.srclang||"en",label:e.label||"en",src:e.src,default:e.default}))})),v.off(c,"timeupdate",g.noop),v.on(c,"timeupdate",g.noop),g.prop(c,"loop",!1),d.off(".loophack"),(e.loop||f.loop)&&d.on("finish.loophack",function(){d.resume()}),void 0!==l&&(c.volume=l),s(e,c,u));(f.autoplay||f.splash||e.autoplay)&&(d.debug("Autoplay / Splash setup, try to start video"),c.load(),n=function(){try{var t,e=c.play();e&&e.catch&&(t=function(e){if("AbortError"===e.name&&20===e.code)return a?void 0:c.play().catch(t);if(f.mutedAutoplay)return d.debug("Play errored, trying muted",e),d.mute(!0,!0),c.play();throw new Error("Unable to autoplay")},e.catch(t).catch(function(){f.autoplay=!1,d.mute(!1,!0),d.trigger("stop",[d]),g.addClass(p,"autoplay-failed")}))}catch(e){d.debug("play() error thrown",e)}},0<c.readyState?n():v.one(c,"canplay",n)),u._listeners=function(l,e,u,c){var t,n,f=p.getAttribute("data-freedomplayer-instance-id");if(!l.listeners||!l.listeners.hasOwnProperty(f))return(l.listeners||(l.listeners={}))[f]=u,v.on(e,"error",function(e){try{h(e.target.getAttribute("type"))&&d.trigger("error",[d,{code:4,video:y(u,{src:l.src,url:l.src})}])}catch(e){}}),d.on("shutdown",function(){v.off(e),v.off(l,".dvrhack"),d.off(".loophack")}),t={},n=function(e){"metadata"===e.kind&&(e.mode="hidden",e.addEventListener("cuechange",function(){e.activeCues.length&&d.trigger("metadata",[d,e.activeCues[0].value])},!1))},l&&l.textTracks&&l.textTracks.length&&Array.prototype.forEach.call(l.textTracks,n),l&&l.textTracks&&"function"==typeof l.textTracks.addEventListener&&l.textTracks.addEventListener("addtrack",function(e){n(e.track)},!1),(d.conf.dvr||d.dvr||u.dvr)&&v.on(l,"progress.dvrhack",function(){l.seekable.length&&(d.video.duration=l.seekable.end(null),d.video.seekOffset=l.seekable.start(null),d.trigger("dvrwindow",[d,{start:l.seekable.start(null),end:l.seekable.end(null)}]),l.currentTime>=l.seekable.start(null)||(l.currentTime=l.seekable.start(null)))}),Object.keys(b).forEach(function(a){var e,s=b[a];(s="webkitendfullscreen"===a&&d.conf.disableInline?"unload":s)&&(p.addEventListener(a,e=function(e){if(u=l.listeners[f],e.target&&g.hasClass(e.target,"fp-engine")){/progress/.test(s)||d.debug(a,"->",s,e);function t(e){d.trigger(e||s,[d,o])}var n,r,o;if((d.ready||/ready|error/.test(s))&&s&&g.find("video",p).length)if("unload"===s)d.unload();else{switch(s){case"ready":if(d.ready&&(d.live||d.dvr)&&(d.video.duration=l.duration),d.ready)return d.debug("Player already ready, not sending duplicate ready event");if(!(l.duration&&l.duration!==1/0||d.live))return(m.browser.safari||m.iOS)&&l.type&&l.type.match(/application\/x-mpegurl/i)&&l.addEventListener("progress",function(){l.addEventListener("progress",function(){l.ios_live_stream_ready_forced||d.ready||(l.ios_live_stream_ready_forced=!0,d.debug("HLS video continues buffering on iOS, send ready event"),(o=y(u,{duration:l.duration<Number.MAX_VALUE?l.duration:0,width:l.videoWidth,height:l.videoHeight,url:l.currentSrc})).seekable=o.duration,g.addClass(p,"is-live"),d.live=!0,t())})}),d.debug("No duration and VOD setup, not sending ready event");if((o=y(u,{duration:l.duration<Number.MAX_VALUE?l.duration:0,width:l.videoWidth,height:l.videoHeight,url:l.currentSrc})).seekable=o.duration,d.debug("Ready: ",o),d.live||o.duration||m.hlsDuration||"loadeddata"!==a)break;return l.addEventListener("durationchange",n=function(){o.duration=l.duration;try{o.seekable=l.seekable&&l.seekable.end(null)}catch(e){}t(),l.removeEventListener("durationchange",n),g.toggleClass(p,"is-live",!1)}),void l.addEventListener("timeupdate",r=function(){d.ready||l.duration||(o.duration=0,g.addClass(p,"is-live"),t()),l.removeEventListener("timeupdate",r)});case"progress":case"seek":if(0<l.currentTime||d.live)o=Math.max(l.currentTime,0);else if("seek"===s&&0===l.currentTime)o=0;else if("progress"==s)return;break;case"buffer":o=[];for(var i=0;i<l.buffered.length;i++)o.push({start:l.buffered.start(i),end:l.buffered.end(i)});l.buffered.length&&l.buffered.end(null)===l.duration&&t("buffered");break;case"speed":o=w(l.playbackRate);break;case"volume":o=w(l.muted?0:l.volume);break;case"error":if(window.FV_Player_Pro&&FV_Player_Pro.is_dynamic(l.src)){p.classList.remove("is-error");try{l.error=l.loading=!1}catch(e){}return p.classList.remove("is-error"),!1}l.src.match(/fv-player-mpd/)||u.manifest||u.src.match(/player.vimeo.com\/.*?\.mpd/)?(p.classList.remove("is-error"),s="dash-soft-error"):!h("application/x-mpegurl")&&l.src.match(/m3u8/)&&(p.classList.remove("is-error"),s="m3u8-soft-error");try{if(c&&c.handlers&&c.handlers.error)if(c.handlers.error(e,l))return;(o=(e.srcElement||e.originalTarget).error).video=y(u,{src:l.src,url:l.src})}catch(e){return}}t()}else"resume"===s&&d.one("ready",function(){setTimeout(function(){t()})})}},!0),t[a]||(t[a]=[]),t[a].push(e))}),t;l.listeners[f]=u}(c,g.find("source",c).concat(c),e,i)||u._listeners,f.autoplay||f.splash||e.autoplay||(r="scroll.preloadviewport-"+p.getAttribute("data-freedomplayer-instance-id"),o=function(){!function(e){e=e.getBoundingClientRect();return 0<=e.top&&0<=e.left&&e.bottom<=(window.innerHeight||document.documentElement.clientHeight)+e.height&&e.right<=(window.innerWidth||document.documentElement.clientWidth)+e.width}(p)||(m.preloadMetadata?c.preload="metadata":c.load(),v.off(document,r))},v.off(document,r),v.on(document,r,function(){window.requestAnimationFrame(o)}),o())},mute:function(e){c.muted=!!e,d.trigger("mute",[d,e]),d.trigger("volume",[d,e?0:c.volume])},pause:function(){c.pause()},resume:function(){c.play()},speed:function(e){c.playbackRate=e},seek:function(e){var t=c.paused||d.finished;try{c.currentTime=e,t&&v.one(c,"seeked",function(){c.pause()})}catch(e){}},volume:function(e){l=e,c&&(c.volume=e)&&u.mute(!1)},unload:function(){v.off(document,"scroll.preloadviewport"),g.find("video.fp-engine",p).forEach(function(e){"MediaSource"in window?e.src=URL.createObjectURL(new MediaSource):e.src="",g.removeNode(e)}),t=clearInterval(t);var e=p.getAttribute("data-freedomplayer-instance-id");c&&c.listeners&&c.listeners[e]&&delete c.listeners[e],c=0,u._listeners&&Object.keys(u._listeners).forEach(function(t){u._listeners[t].forEach(function(e){p.removeEventListener(t,e,!0)})})}}}},{"../freedomplayer":24}],4:[function(e,t,n){"use strict";var r=e("../freedomplayer"),o=r.common,i=e("./html5-factory"),a=document.createElement("video");function s(e){var t;return/^(video|application)/i.test(e)||(t=e,e=/mpegurl/i.test(t)?"application/x-mpegurl":t),!!a.canPlayType(e).replace("no","")}(e=function(e,t){return i("html5",e,t,s,function(e,t){t.currentSrc!==e.src?(o.find("source",t).forEach(o.removeNode),t.src=e.src,t.type=e.type):e.autoplay&&t.load()})}).canPlay=function(e){return r.support.video&&s(e)},e.engineName="html5",r.engines.push(e)},{"../freedomplayer":24,"./html5-factory":3}],5:[function(e,t,n){"use strict";var o=e("../freedomplayer"),i=e("../common"),a=e("bean");o(function(n,r){(n.conf.airplay||n.conf.skin_preview)&&(n.on("ready",function(){var t=i.find("video.fp-engine",r)[0];t&&(t.setAttribute("x-webkit-airplay","allow"),window.WebKitPlaybackTargetAvailabilityEvent)&&(t.addEventListener("webkitplaybacktargetavailabilitychanged",function(e){"available"!==e.availability&&!o.airplay_was_available||(o.airplay_was_available=!0,n.createAirplayButton())}),t.addEventListener("webkitcurrentplaybacktargetiswirelesschanged",function(){var e=i.find(".fp-airplay",r)[0];e&&i.toggleClass(e,"fp-active",t.webkitCurrentPlaybackTargetIsWireless)}),n.one("progress",function(){var e=i.find(".fp-airplay",r)[0];e&&("html5"==n.engine.engineName?e.style.display="inline-block":e.style.display="none")}))}),a.on(r,n.touch_events(),".fp-airplay",function(e){e.preventDefault(),n.conf.skin_preview?alert("This is just an admin preview for the Airplay button. Normally it will only show up when a video is playing with Safari and the video supports it."):i.find("video.fp-engine",r)[0].webkitShowPlaybackTargetPicker()}),n.createAirplayButton=function(){i.find(".fp-airplay",r).forEach(i.removeNode);var e=i.createElement("a",{class:"fp-airplay fp-icon",title:"Play on AirPlay device"}),t=(e.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" xmlns:xlink="http://www.w3.org/1999/xlink"><path d="M116.364 477.091h279.272L256 337.455z"/><path d="M465.455 34.909H46.545C20.945 34.909 0 55.855 0 81.455v279.273c0 25.6 20.945 46.545 46.545 46.545h93.091v-46.545H46.545V81.455h418.909v279.273h-93.091v46.545h93.091c25.6 0 46.545-20.945 46.545-46.545V81.455c.001-25.6-20.944-46.546-46.544-46.546z"/></svg>',i.find(".fp-fullscreen",r)[0]);t.parentNode.insertBefore(e,t)},n.conf.skin_preview)&&n.conf.airplay&&n.createAirplayButton()})},{"../common":1,"../freedomplayer":24,bean:27}],6:[function(e,t,n){"use strict";var r=e("../freedomplayer"),l=e("./resolve").TYPE_RE,u=e("scriptjs"),c=e("bean");r(function(r,o){var i,a,e,t=r.conf.analytics,s=0,n=0;t&&("undefined"==typeof _gat&&u("//google-analytics.com/ga.js"),a=function(){var e=_gat._getTracker(t);return e._setAllowLinker(!0),e},r.bind("load unload",e=function(e,t,n){n=n||r.video,s&&"undefined"!=typeof _gat&&(a()._trackEvent("Video / Seconds played",r.engine.engineName+"/"+n.type,n.title||o.getAttribute("title")||n.src.split("/").slice(-1)[0].replace(l,""),Math.round(s/1e3)),s=0,i)&&(clearTimeout(i),i=null)}).bind("progress",function(){r.seeking||(s+=n?+new Date-n:0,n=+new Date),i=i||setTimeout(function(){i=null,a()._trackEvent("Freedom Player heartbeat","Heartbeat","",0,!0)},6e5)}).bind("pause",function(){n=0}),r.bind("shutdown",function(){c.off(window,"unload",e)}),c.on(window,"unload",e))})},{"../freedomplayer":24,"./resolve":17,bean:27,scriptjs:36}],7:[function(e,t,n){"use strict";var r=e("../freedomplayer"),g=e("../common"),m=e("bean"),v=e("scriptjs");r(function(f,r){var t,n,o,i,a,s,l;function u(){i&&i.removeEventListener(cast.framework.RemotePlayerEventType.ANY_CHANGE,h),f.release(),g.toggleClass(r,"is-chromecast",!1),g.toggleClass(s,"fp-active",!1)}function c(){var e,t=!1,n=f.video.sources_fvqs||f.video.sources;for(e in n){var r=n[e].type;if("video/mp4"==r||"video/fv-mp4"==r||"application/dash+xml"==r&&!n[e].src.match(/.json/)){t=n[e];break}}if(!t)for(var o in n)if("application/x-mpegurl"==n[o].type){t=n[o];break}if(f.video.fvhkey&&!f.conf.hls_cast)return!1;if(t){var i,a=!1,s=["fullhd","hd","md","sd"];for(i in s){var l,u=new RegExp("-"+s[i]);for(l in f.video.sources_fvqs){var c=f.video.sources_fvqs[l];if(c.src.match(u)&&"video/mp4"==c.type){a=c;break}}if(a){t=a;break}}}return t}function d(){var e,t=c();t&&(e=a.getCastDevice().friendlyName,g.html(g.find(".fp-chromecast-engine-status",r)[0],"Playing on device "+e),e=new chrome.cast.media.MediaInfo(t.src,t.type),t=new chrome.cast.media.LoadRequest(e),f.live||(t.currentTime=f.video.time),cast.framework.CastContext.getInstance().getCurrentSession().loadMedia(t).then(p,function(e){console.log("Chromecast onMediaError: "+e)}))}function p(){var e=new CustomEvent("fv_player_chromecast_video_loaded",{detail:r.getAttribute("data-freedomplayer-instance-id")});document.dispatchEvent(e),o=new cast.framework.RemotePlayer,(i=new cast.framework.RemotePlayerController(o)).addEventListener(cast.framework.RemotePlayerEventType.ANY_CHANGE,h)}function h(e){a&&!f.hijacked&&(g.toggleClass(r,"is-chromecast",!0),g.toggleClass(s,"fp-active",!0),f.hijack({pause:function(){o.isPaused||i.playOrPause()},resume:function(){f.finished?(f.release(),d()):o.isPaused&&i.playOrPause()},seek:function(e){o.currentTime=e,i.seek()}})),"currentTime"===e.field?f.trigger("progress",[f,e.value]):"playerState"===e.field&&(g.toggleClass(r,"is-loading",e.value===chrome.cast.media.PlayerState.BUFFERING),f.paused&&e.value===chrome.cast.media.PlayerState.PLAYING?f.trigger("resume",[f]):f.playing&&e.value===chrome.cast.media.PlayerState.PAUSED?f.trigger("pause",[f]):e.value===chrome.cast.media.PlayerState.IDLE&&(f.trigger("pause",[f]),f.trigger("finish",[f])),f.seeking)&&(e.value===chrome.cast.media.PlayerState.BUFFERING?l=!0:e.value===chrome.cast.media.PlayerState.PLAYING&&l&&(l=!1,f.trigger("seek",[f])))}(!1!==f.conf.chromecast&&""!==f.conf.chromecast||f.conf.skin_preview)&&(window.__onGCastApiAvailable||(v("https://www.gstatic.com/cv/js/sender/v1/cast_sender.js?loadCastFramework=1"),window.__onGCastApiAvailable=function(e){e&&(cast.framework.CastContext.getInstance().setOptions({receiverApplicationId:t.applicationId||chrome.cast.media.DEFAULT_MEDIA_RECEIVER_APP_ID,autoJoinPolicy:chrome.cast.AutoJoinPolicy.ORIGIN_SCOPED}),cast.framework.CastContext.getInstance().addEventListener(cast.framework.CastContextEventType.CAST_STATE_CHANGED,function(e){console.log("Chromecast "+e.castState),e.castState===cast.framework.CastState.NOT_CONNECTED&&(a=!1,f.hijacked)&&u(),e.castState===cast.framework.CastState.NO_DEVICES_AVAILABLE||n||(e=new CustomEvent("fv_player_chromecast_loaded"),document.dispatchEvent(e))}))}),t=f.conf.chromecast||{},l=n=!1,f.createChromecastButton=function(){g.find(".fp-chromecast",r).forEach(g.removeNode),g.find(".fp-chromecast-engine",r).forEach(g.removeNode),(s=g.createElement("a",{class:"fp-chromecast fp-icon",title:"Play on Cast device"})).innerHTML='<svg xmlns="http://www.w3.org/2000/svg" viewBox="125 40 625 500"><path d="M644 486h37V98H181v83h-55V43h610v498H487v-55h157zm-224-24c6 22 9 44 10 66v13h-54c-1-69-25-128-74-176-48-48-107-73-176-73v-55l29 1a300 300 0 0 1 171 74 304 304 0 0 1 94 150zm-294-79v-34c87-4 192 69 194 192h-55a139 139 0 0 0-139-138v-20zm49 91c22 17 33 39 34 67h-83v-82c18 0 34 5 49 15z"/></svg>';var e=g.find(".fp-fullscreen",r)[0],e=(e.parentNode.insertBefore(s,e),g.createElement("div",{class:"fp-chromecast-engine"})),t=g.createElement("p",{class:"fp-chromecast-engine-status"}),n=g.createElement("p",{class:"fp-chromecast-engine-icon"}),n=(e.appendChild(n),e.appendChild(t),g.find(".fp-engine",r)[0]);n?n.parentNode.insertBefore(e,n):g.prepend(g.find(".fp-player",r)[0]||r,e)},f.conf.skin_preview&&f.conf.chromecast&&f.createChromecastButton(),document.addEventListener("fv_player_chromecast_loaded",function(){n=!0,c()?f.createChromecastButton():g.removeNode(s)}),document.addEventListener("fv_player_chromecast_video_loaded",function(e){r.getAttribute("data-freedomplayer-instance-id")!==e.detail&&(u(),f.trigger("pause",[f]))}),f.bind("ready",function(){n&&(c()?(f.createChromecastButton(),(a=window.cast&&cast.framework&&cast.framework.CastContext.getInstance().getCurrentSession())&&(console.log("Chromecast resume session"),f.one("progress",function(){f.release(),setTimeout(function(){f.pause()}),f.mute(!1,!0),d()}),f.mute(!0,!0))):(console.log("Chromecast: Can't find suitable video type"),g.removeNode(s)))}),m.on(r,f.touch_events(),".fp-chromecast",function(e){e.preventDefault(),a?(a.endSession(!0),a=null,u(),f.trigger("pause",[f]),f.video.time&&setTimeout(function(){f.seek(f.video.time)},0)):(f.playing&&f.pause(),cast.framework.CastContext.getInstance().requestSession().then(function(){a=cast.framework.CastContext.getInstance().getCurrentSession(),d()},function(e){"cancel"!==e&&console.error("Chromecast session "+e)}))}))})},{"../common":1,"../freedomplayer":24,bean:27,scriptjs:36}],8:[function(e,t,n){"use strict";var r=e("../freedomplayer"),f=e("../common"),d=e("bean");r(function(o,i){var t=/ ?cue\d+ ?/,a=!1;function r(e){i.className=i.className.replace(t," "),0<=e&&f.addClass(i,"cue"+e)}function s(e){r(e.index),o.trigger("cuepoint",[o,e])}var l={},u=-.125;function c(e){e=e&&!isNaN(e.time)?e.time:e;return e<0&&(e=o.video.duration+e),.125*Math.round(e/.125)}o.on("progress",function(e,t,n){if(!a)for(var r=c(n);u<r;)l[u+=.125]&&l[u].forEach(s)}).on("unload",r).on("beforeseek",function(e){setTimeout(function(){e.defaultPrevented||(a=!0)})}).on("seek",function(e,t,n){r(),u=c(n||0)-.125,a=!1,!n&&l[0]&&l[0].forEach(s)}).on("ready",function(e,t,n){u=-.125;n=n.cuepoints||o.conf.cuepoints||[];o.setCuepoints(n)}).on("finish",function(){for(var e=c(o.video.duration);u<e;)l[u+=.125]&&l[u].forEach(s);u=-.125}),o.conf.generate_cuepoints&&o.bind("load",function(){f.find(".fp-cuepoint",i).forEach(f.removeNode)}),o.setCuepoints=function(e){return o.cuepoints=[],l={},e.forEach(o.addCuepoint),o},o.addCuepoint=function(e){o.cuepoints||(o.cuepoints=[]),(e="number"==typeof e?{time:e}:e).index=0;var t,n,r=c(e);return l[r]||(l[r]=[]),l[r].push(e),o.cuepoints.length&&(e.index=Math.max.apply(null,o.cuepoints.map(function(e){return e.index}))+1),o.cuepoints.push(e),o.conf.generate_cuepoints&&!1!==e.visible&&(r=o.video.duration,t=f.find(".fp-timeline",i)[0],f.css(t,"overflow","visible"),(n=e.time||e)<0&&(n=r+n),e=f.createElement("a",{className:"fp-cuepoint fp-cuepoint"+e.index}),f.css(e,"left",n/r*100+"%"),t.appendChild(e),d.on(e,"mousedown",function(e){e.preventDefault(),e.stopPropagation(),o.seek(n)})),o},o.removeCuepoint=function(t){"number"==typeof t&&(t=o.cuepoints.filter(function(e){return e.index===t})[0]);var e=o.cuepoints.indexOf(t),n=c(t);if(-1!==e){o.cuepoints=o.cuepoints.slice(0,e).concat(o.cuepoints.slice(e+1));e=f.find(".fp-timeline",i)[0],e=(f.find(".fp-cuepoint"+t.index,e).forEach(f.removeNode),l[n].indexOf(t));if(-1!==e)return l[n]=l[n].slice(0,e).concat(l[n].slice(e+1)),o}}})},{"../common":1,"../freedomplayer":24,bean:27}],9:[function(e,t,n){"use strict";t.exports=function(o,a){a=a||document.createElement("div");function n(t,n,r){function o(e){r&&(a.removeEventListener(i,o),s[t].splice(s[t].indexOf(o),1)),e=[e].concat(l[e.timeStamp+e.type]||[]),n&&n.apply(void 0,e)}var i=t.split(".")[0];a.addEventListener(i,o),s[t]||(s[t]=[]),s[t].push(o)}var s={},l={};o.on=o.bind=function(e,t){return e.split(" ").forEach(function(e){n(e,t)}),o},o.one=function(e,t){return e.split(" ").forEach(function(e){n(e,t,!0)}),o};o.off=o.unbind=function(e){return e.split(" ").forEach(function(e){var r=e.split(".").slice(1),o=e.split(".")[0];Object.keys(s).filter(function(e){var t,n=e.split(".").slice(1);return(!o||0===e.indexOf(o))&&(t=n,0===r.filter(function(e){return-1===t.indexOf(e)}).length)}).forEach(function(e){var t=s[e],n=e.split(".")[0];s[e]=t.filter(function(e){return a.removeEventListener(n,e),!1})})}),o},o.trigger=function(e,t,n){var r;if(e)return t=(t||[]).length?t||[]:[t],r=document.createEvent("Event"),e=e.type||e,r.initEvent(e,!1,!0),Object.defineProperty&&(r.preventDefault=function(){Object.defineProperty(this,"defaultPrevented",{get:function(){return!0}})}),l[r.timeStamp+r.type]=t,a.dispatchEvent(r),n?r:o}},t.exports.EVENTS=["beforeseek","disable","error","finish","fullscreen","fullscreen-exit","load","mute","pause","progress","ready","resume","seek","speed","stop","unload","volume","boot","shutdown"]},{}],10:[function(e,t,n){"use strict";var s,r=e("../freedomplayer"),o=e("bean"),l=e("../common"),u="fullscreen",c="fullscreen-exit",f=r.support.fullscreen;o.on(document,"fullscreenchange.ffscr webkitfullscreenchange.ffscr mozfullscreenchange.ffscr MSFullscreenChange.ffscr",function(e){var t,n=document.webkitCurrentFullScreenElement||document.mozFullScreenElement||document.fullscreenElement||document.msFullscreenElement;(s||n.parentNode&&n.parentNode.getAttribute("data-freedomplayer-instance-id"))&&(t=s||r(n.parentNode),s=n?t.trigger(u,[t]):(s.trigger(c,[s]),null))}),r(function(t,n){var r,o,e,i=l.createElement("div",{className:"fp-player"}),a=(Array.prototype.map.call(n.children,l.identity).forEach(function(e){l.matches(e,".fp-ratio,script")||i.appendChild(e)}),n.appendChild(i),window);t.isFullscreen=!1,t.fullscreen=function(e){if(!t.disabled&&t.conf.fullscreen)return(e=void 0===e?!t.isFullscreen:e)&&(r=a.scrollY,o=a.scrollX),f?e?["requestFullScreen","webkitRequestFullScreen","mozRequestFullScreen","msRequestFullscreen"].forEach(function(e){"function"==typeof i[e]&&(i[e](Element.ALLOW_KEYBOARD_INPUT),"webkitRequestFullScreen"!==e||document.webkitFullscreenElement||i[e]())}):["exitFullscreen","webkitCancelFullScreen","mozCancelFullScreen","msExitFullscreen"].forEach(function(e){"function"==typeof document[e]&&document[e]()}):t.trigger(e?u:c,[t]),t},t.on("mousedown.fs",function(){+new Date-e<150&&t.ready&&t.fullscreen(),e=+new Date}),t.on(u,function(){l.addClass(n,"is-fullscreen"),l.toggleClass(n,"fp-minimal-fullscreen",l.hasClass(n,"fp-minimal")),l.removeClass(n,"fp-minimal"),f||l.css(n,"position","fixed"),t.isFullscreen=!0}).on(c,function(){var e;l.toggleClass(n,"fp-minimal",l.hasClass(n,"fp-minimal-fullscreen")),l.removeClass(n,"fp-minimal-fullscreen"),f||"html5"!==t.engine||(e=n.css("opacity")||"",l.css(n,"opacity",0)),f||l.css(n,"position",""),l.removeClass(n,"is-fullscreen"),f||"html5"!==t.engine||setTimeout(function(){n.css("opacity",e)}),t.isFullscreen=!1,a.scrollTo(o,r)}).on("unload",function(){t.isFullscreen&&t.fullscreen()}),t.on("shutdown",function(){s=null,l.removeNode(i)})})},{"../common":1,"../freedomplayer":24,bean:27}],11:[function(e,t,n){"use strict";var l,u,r=e("../freedomplayer"),o=e("bean"),c=e("../common");r(function(t,n){t.conf.keyboard&&(o.on(document,"keydown.fp",function(e){if(void 0!==l){var t,n=l,r=!!n&&u,o=n&&!n.disabled?n:0,i=e.ctrlKey||e.metaKey||e.altKey,a=e.which,s=o&&o.conf;if(!c.hasClass(r,"no-controlbar")&&!c.hasClass(r,"is-cva")&&o&&s.keyboard&&!o.disabled){if(9==a)return!1;if(-1!=[63,187,191].indexOf(a))return c.toggleClass(r,"is-help"),!1;if(27==a&&c.hasClass(r,"is-help"))return c.toggleClass(r,"is-help"),!1;if(!i&&o.ready)if(e.preventDefault(),e.shiftKey)39==a?o.speed(!0):37==a?o.speed(!1):78==a?o.next():80==a&&o.prev();else{if(a<58&&47<a)return o.seekTo(a-48);switch(a){case 38:case 75:o.volume(o.volumeLevel+.15);break;case 40:case 74:o.volume(o.volumeLevel-.15);break;case 39:case 76:o.seeking=!0,o.manual_seeking=!0,o.seek(n.video.time+5);break;case 37:case 72:o.seeking=!0,o.manual_seeking=!0,o.seek(n.video.time-5);break;case 32:n.playing&&(o.manual_pause=!0),o.toggle();break;case 70:s.fullscreen&&o.fullscreen();break;case 77:o.mute();break;case 81:o.unload();break;case 67:n.video.subtitles&&0!=n.video.subtitles.length&&(void 0===(t=r.querySelector(".fp-dropdown li.active[data-subtitle-index]").dataset.subtitleIndex)&&(t=-1),++t>n.video.subtitles.length-1&&(t=-1),n.trigger("subtitles-switched",[t]));break;case 190:case 188:n.playing&&(o.manual_pause=!0,o.pause()),o.seek(n.video.time+(190==a?1/30:-1/30))}}}}}),o.on(n,"mouseenter mouseleave focus",function(e){(l=t.disabled||"mouseover"!=e.type&&"focus"!=e.type?0:t)&&(u=n)}))})},{"../common":1,"../freedomplayer":24,bean:27}],12:[function(e,t,n){var r=e("../freedomplayer"),s=e("../common"),l=e("bean");r(function(i,a){i.showMenu=function(e,t){var n=s.find(".fp-ui",a)[0],r=(s.toggleClass(e,"fp-active",!0),setTimeout(function(){l.one(document,i.touch_events(),function(){i.hideMenu(e)})}),t);if(!(r=t&&t.tagName?{left:s.offset(t).left,rightFallbackOffset:s.width(t),top:s.offset(t).top+s.height(t)}:r))return s.css(e,"top","auto");r.rightFallbackOffset=r.rightFallbackOffset||0;var t=r.top-s.offset(n).top,o=r.left-s.offset(n).left;s.width(e)+o>s.width(n)&&(o=o-s.width(e)+r.rightFallbackOffset),s.height(e)+t>s.height(n)&&(t-=s.height(e)),s.css(e,{top:t+"px",left:o+"px",right:"auto"})},i.hideMenu=function(e){setTimeout(function(){s.toggleClass(e,"fp-active",!1),s.css(e,{top:"-9999em"})},60)}})},{"../common":1,"../freedomplayer":24,bean:27}],13:[function(e,t,n){var r=e("../freedomplayer"),s=e("../common"),o=e("bean");r(function(e,t){var i=s.find(".fp-header",t)[0],a=s.find(".fp-ui",t)[0];e.message=function(e,t){function n(){s.toggleClass(o,"fp-shown"),setTimeout(function(){s.removeNode(o)},500)}r=s.createElement("div",{className:"fp-message"},e),a.insertBefore(r,i),setTimeout(function(){s.toggleClass(r,"fp-shown")});var r,o=r;return t&&setTimeout(n,t),n},e.textarea=function(e){var t=document.createElement("textarea");t.value=e,t.className="fp-textarea",a.appendChild(t),o.on(document,"click.fptextarea",function(e){if(e.target===t)return t.select();e.stopPropagation(),e.preventDefault(),s.removeNode(t),o.off(document,"click.fptextarea")})}})},{"../common":1,"../freedomplayer":24,bean:27}],14:[function(n,e,t){!function(t){!function(){"use strict";var e="url("+window.location.href.replace(window.location.hash,"").replace(/\#$/g,"")+"#",_=t("PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGZpbHRlcj0idXJsKCNmMSkiIHZpZXdCb3g9Ijk1LjQgMTQzLjIgODEwLjMgNzUxLjYiPgogIDxwYXRoIGZpbGw9IiNmZmYiIGQ9Ik01MzguNiA4ODguMmEzOTUgMzk1IDAgMCAwIDE1OS43LTY3LjUgMzQzLjQgMzQzLjQgMCAwIDAgMTEyLjItMTM0LjNjOC0xNS43LTM5LjEtMzkuNS00Ny0yMy44YTMwMiAzMDIgMCAwIDEtOTggMTEzLjhBMzAxLjYgMzAxLjYgMCAwIDEgNTI5LjQgODM2Yy05MC4yIDE2LTE2OC41LTIuNC0yNDItNTMuOGEzMTQgMzE0IDAgMCAxLTEzMy40LTIwOSAzMTQgMzE0IDAgMCAxIDU0LTI0MkEzMTQgMzE0IDAgMCAxIDQxNi44IDE5OGEzMTEgMzExIDAgMCAxIDIzMy44IDQ4LjJjNzIuOCA0OCAxMTYuMiAxMTEuOCAxMzcuOCAxOTMuOGwtNzYuNy0yOS40Yy0xMS42LTUtMjkuMSAzNy4zLTE3LjUgNDIuNWwxNDIuNCA1N2MxMS42IDUuMiAyMC44LTMuNiAyMy0xMS4xbDQ1LjUtMTQ3LjVjNS4yLTExLjctMzYuNy0yNS43LTQ0LjYtMTBMODM1LjMgNDIxYy0yMy41LTkyLjQtNzkuMi0xNjQuOC0xNjAuMS0yMTguNS04MS01My43LTE3My4yLTY5LjYtMjY2LjktNTMtMTA0IDE4LjMtMTg0IDcxLjctMjQ0LjYgMTU0LTYwLjYgODIuMS04MCAxNzUtNjEuNyAyNzkgMTguNCAxMDQgNzEuOCAxODQgMTU0IDI0NC42IDg1LjcgNjAgMTc4LjUgNzkuNCAyODIuNiA2MVpNMzUzIDY0Ni41Yy0zIDAtMyAwLTMtM1Y0MzQuM2MwLTktNi0zLTktM2wtMjYuOCAxMmMwIDMtMyAwLTMtM2wtMTItMjdjLTMtMyAwLTYgMy02bDgwLjctMzUuOGMzIDAgMTIgMCAxMiA5djI2M2MwIDMgMCAzLTMgM0gzNTNaTTY0MCA1MTJjMCA4Ni43LTM4LjkgMTQwLjUtMTA0LjYgMTQwLjUtNjUuOCAwLTEwNC42LTUzLjgtMTA0LjYtMTQwLjVzMzguOC0xNDAuNSAxMDQuNi0xNDAuNUM2MDEgMzcxLjUgNjQwIDQyNS4zIDY0MCA1MTJabS0xNjEuNCAwYzAgNjIuOCAyMSAxMDEuNiA1OS44IDEwMS42czU5LjgtMzUuOCA1OS44LTEwMS42YzAtNjIuOC0yMS0xMDEuNi01OS44LTEwMS42LTM4LjkgMC01OS44IDM4LjgtNTkuOCAxMDEuNloiLz4KPC9zdmc+","base64").toString().replace(/url\(#/g,e),k=t("PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGZpbHRlcj0idXJsKCNmMSkiIHZpZXdCb3g9IjExOC4zIDE0My4yIDgxMC4zIDc1MS42Ij4KICA8cGF0aCBmaWxsPSIjZmZmIiBkPSJNNDg1LjQgODg4LjJhMzk1IDM5NSAwIDAgMS0xNTkuNy02Ny41IDM0My40IDM0My40IDAgMCAxLTExMi4yLTEzNC4zYy04LTE1LjcgMzkuMS0zOS41IDQ3LTIzLjhhMzAyIDMwMiAwIDAgMCA5OCAxMTMuOEEzMDEuNiAzMDEuNiAwIDAgMCA0OTQuNiA4MzZjOTAuMiAxNiAxNjguNS0yLjQgMjQyLTUzLjhhMzE0IDMxNCAwIDAgMCAxMzMuNC0yMDkgMzE0IDMxNCAwIDAgMC01NC0yNDJBMzE0IDMxNCAwIDAgMCA2MDcuMiAxOThhMzExIDMxMSAwIDAgMC0yMzMuOCA0OC4yQzMwMC42IDI5NC4yIDI1Ny4yIDM1OCAyMzUuNiA0NDBsNzYuNy0yOS40YzExLjYtNSAyOS4xIDM3LjMgMTcuNSA0Mi41bC0xNDIuNCA1N2MtMTEuNiA1LjItMjAuOC0zLjYtMjMtMTEuMWwtNDUuNS0xNDcuNWMtNS4yLTExLjcgMzYuNy0yNS43IDQ0LjYtMTBsMjUuMyA3OS41QzIxMi4yIDMyOC42IDI2OCAyNTYuMiAzNDkgMjAyLjVjODEtNTMuNyAxNzMuMS02OS42IDI2Ni44LTUzIDEwNCAxOC4zIDE4NCA3MS43IDI0NC42IDE1NCA2MC42IDgyLjEgODAgMTc1IDYxLjcgMjc5LTE4LjQgMTA0LTcxLjggMTg0LTE1NCAyNDQuNi04NS43IDYwLTE3OC41IDc5LjQtMjgyLjYgNjFaTTQzNiA2NDYuNWMtMyAwLTMgMC0zLTNWNDM0LjNjMC05LTYtMy05LTNsLTI2LjggMTJjMCAzLTMgMC0zLTNsLTEyLTI3Yy0zLTMgMC02IDMtNmw4MC43LTM1LjhjMyAwIDEyIDAgMTIgOXYyNjNjMCAzIDAgMy0zIDNINDM2Wk03MjMgNTEyYzAgODYuNy0zOC45IDE0MC41LTEwNC42IDE0MC41LTY1LjggMC0xMDQuNi01My44LTEwNC42LTE0MC41czM4LjgtMTQwLjUgMTA0LjYtMTQwLjVDNjg0IDM3MS41IDcyMyA0MjUuMyA3MjMgNTEyWm0tMTYxLjQgMGMwIDYyLjggMjEgMTAxLjYgNTkuOCAxMDEuNlM2ODEgNTc3LjggNjgxIDUxMmMwLTYyLjgtMjAuOS0xMDEuNi01OS43LTEwMS42LTM4LjkgMC01OS44IDM4LjgtNTkuOCAxMDEuNloiLz4KPC9zdmc+","base64").toString().replace(/url\(#/g,e),e=n("../freedomplayer"),N=/IEMobile/.test(window.navigator.userAgent),L=n("../common"),S=n("bean"),I=n("./ui").format,D=e.support,j=window.navigator.userAgent;(D.touch||N)&&e(function(i,a){var e,t,n,r,o,s=D.android,l=s&&!s.firefox,u=/Silk/.test(j),c=s.version||0,f=L.find(".fp-ui",a)[0],d=L.createElement("div",{className:"fp-forward"},_),p=L.createElement("div",{className:"fp-rewind"},k),h=L.find(".fp-timeline",a)[0],g=L.find(".fp-fullscreen",a)[0],m=0,v=!1,y=0;function b(e){y=y||i.video.time,y=e?y+10:y-10,i.seek(y,function(){y=0})}function w(){i.hover(!1),L.addClass(a,"is-mobile-seeking"),clearInterval(e),e=setTimeout(function(){L.hasClass(h,"is-fp-dragging")?w():L.removeClass(a,"is-mobile-seeking")},2e3)}f.appendChild(d),f.appendChild(p),S.on(L.find("svg",d)[0],i.touch_events(),function(e){i.disabled||(e.preventDefault(),e.stopPropagation(),w(),b(!0))}),S.on(L.find("svg",p)[0],i.touch_events(),function(e){i.disabled||(e.preventDefault(),e.stopPropagation(),w(),b())}),l&&!N&&((!/Chrome/.test(j)&&c<4||s.samsung&&c<5)&&(t=i.load,i.load=function(){var e=t.apply(i,arguments);return L.find("video.fp-engine",a)[0].load(),i.trigger("ready",[i,i.video]),e}),r=0,o=function(e){n=setInterval(function(){e.video.time=++r,e.trigger("progress",[e,r])},1e3)},i.on("ready pause unload",function(){n&&(clearInterval(n),n=null)}),i.on("ready",function(){r=0}),i.on("resume",function(e,t){if(t.live)return r?o(t):void i.one("progress",function(e,t,n){0===n&&o(t)})}));var E,C,x=new Audio,M=(x.volume=.5,setTimeout(function(){.5!=x.volume||D.android?(L.addClass(a,"no-volume"),D.volume=!1):D.volume=!0}),L.addClass(a,"is-touch"),i.sliders&&i.sliders.timeline&&i.sliders.timeline.disableAnimation(),!1),T=(S.on(a,"touchmove",function(){M=!0}),!0),A=!1;S.on(a,"touchend",function(e){if(void 0===i.video.click){var t=L.hasClass(e.target,"fp-rewind"),n=L.hasClass(e.target,"fp-forward"),r=(new Date).getTime()-A;if(A&&20<r&&r<300&&(t||n))if(i.video&&i.video.duration)return r=i.video.time,clearInterval(E),t?(r-=10)<0&&(r=0):(r+=10)>i.video.duration&&(r=i.video.duration),L.addClass(a,"is-mobile-seeking"),setTimeout(function(){L.removeClass(a,"is-mobile-seeking")},500),i.seek(r),A=(new Date).getTime(),e.preventDefault(),void e.stopPropagation();A=(new Date).getTime()}}),S.on(a,"touchend click",function(n){if(M)M=!1;else{var e=L.find("video.fp-engine",a)[0],r=(T&&i.conf.clickToUnMute&&e&&e.muted&&i.conf.autoplay&&(e.muted=!1),T=!1,L.hasClass(n.target,"fp-rewind")||L.hasClass(n.target.parentNode,"fp-rewind")||L.hasClass(n.target,"fp-forward")||L.hasClass(n.target.parentNode,"fp-forward")),o=L.hasClass(a,"is-mouseover")||L.hasClass(a,"is-mobile-seeking")&&r||L.hasClass(a,"fixed-controls")&&(L.hasClass(n.target,"fp-controls")||L.hasClass(n.target.parentNode,"fp-controls")||L.hasClass(n.target.parentNode.parentNode,"fp-controls"))||L.hasClass(a,"no-controlbar")&&!L.hasClass(a,"have-buttons");if(i.was_played&&(!o||L.hasClass(n.target,"fp-ui")||L.hasClass(n.target,"fp-engine")||L.hasClass(n.target,"fp-header")||r))return clearInterval(E),void 0!==i.video.click||(E=setTimeout(function(){var e,t;r?(i.hover(!1),L.addClass(a,"is-mobile-seeking"),w()):(e=(n.changedTouches&&n.changedTouches[0]&&n.changedTouches[0].clientX?n.changedTouches[0]:n).clientX,t=n.changedTouches&&n.changedTouches[0]&&n.changedTouches[0].clientY?n.changedTouches[0].clientY:n.clientY-window.scrollY,(!i.isFullscreen||e>window.innerWidth/6&&e<5*window.innerWidth/6&&10<t&&t<window.innerHeight-10||10<e&&e<window.innerWidth-10&&t>.8*window.innerHeight&&t<window.innerHeight-10)&&(i.hover(!o),o||L.removeClass(a,"is-mobile-seeking")),!L.hasClass(a,"is-mouseover")&&i.isFullscreen&&e>7*window.innerWidth/8&&e<window.innerWidth-10&&10<t&&t<window.innerHeight/8?2<=++m&&(m=0,L.addClass(a,"is-fullscreen-exit-hint"),setTimeout(function(){L.removeClass(a,"is-fullscreen-exit-hint"),clearInterval(v)},2e3),clearInterval(v),v=setInterval(function(){L.toggleClass(g,"bold")},300)):m=0)},150),i.playing&&L.hasParent(n.target,".fp-pause"))?void 0:void(o||(n.preventDefault(),n.stopPropagation()));i.was_played||i.splash||!L.hasClass(a,"is-mouseout")||L.hasClass(a,"is-mouseover")||setTimeout(function(){var e;i.disabled||i.playing||i.splash||(e=L.find("video.fp-engine",a))[0]&&e[0].play()},400)}}),!D.fullscreen&&i.conf.native_fullscreen&&"function"==typeof L.createElement("video").webkitEnterFullScreen&&(C=i.fullscreen,i.fullscreen=function(){var e=L.find("video.fp-engine",a)[0];if(!e)return C.apply(i);i.trigger("fullscreen",[i]),S.on(document,"webkitfullscreenchange.nativefullscreen",function(){document.webkitFullscreenElement===e&&(S.off(document,".nativefullscreen"),S.on(document,"webkitfullscreenchange.nativefullscreen",function(){document.webkitFullscreenElement||(S.off(document,".nativefullscreen"),i.trigger("fullscreen-exit",[i]))}))}),e.webkitEnterFullScreen(),S.one(e,"webkitendfullscreen",function(){S.off(document,"fullscreenchange.nativefullscreen"),i.trigger("fullscreen-exit",[i]),L.prop(e,"controls",!0),L.prop(e,"controls",!1)})}),(l||u)&&i.bind("ready",function(){var t=L.find("video.fp-engine",a)[0];t&&(i.conf.splash&&t.paused&&"hlsjs-lite"!==i.engine.engineName&&(S.one(t,"canplay",function(){t.play()}),t.load()),i.bind("progress.dur",function(){var e;i.live||i.conf.live||1!==(e=t.duration)&&(i.video.duration=e,L.find(".fp-duration",a)[0].innerHTML=I(i.get_video_duration()),i.unbind("progress.dur"))}))}),i.on("resume",function(){i.hover(!1)})})}.call(this)}.call(this,n("buffer").Buffer)},{"../common":1,"../freedomplayer":24,"./ui":21,bean:27,buffer:28}],15:[function(e,t,n){"use strict";var r=e("../freedomplayer"),i=e("extend-object"),a=e("bean"),h=e("../common"),s=e("./resolve"),g=new s,m=window.jQuery,v=/^#/;r(function(l,u){var c=i({active:"is-active",advance:!0,query:".fp-playlist a"},l.conf),f=c.active,t=h.find(".fp-ui",u)[0],r=-1,e=h.hasClass(u,"fp-custom-playlist")||!!c.customPlaylist;function n(){return h.find(c.query,d())}function d(){if(!v.test(c.query))return u}function p(){return h.find(c.query+"."+f,d())}function o(){var e,n=h.find(".fp-playlist",u)[0];n||(n=h.createElement("div",{className:"fp-playlist"}),(e=h.find(".fp-next,.fp-prev",u)).length?e[0].parentElement.insertBefore(n,e[0]):h.insertAfter(u,h.find("video",u)[0],n)),n.innerHTML="",l.conf.playlist[0].length&&(l.conf.playlist=l.conf.playlist.map(function(e){var t;return"string"==typeof e?{sources:[{type:"m3u8"===(t=e.split(s.TYPE_RE)[1]).toLowerCase()?"application/x-mpegurl":"video/"+t,src:e}]}:{sources:e.map(function(t){var n={};return Object.keys(t).forEach(function(e){n.type=/mpegurl/i.test(e)?"application/x-mpegurl":"video/"+e,n.src=t[e]}),n})}})),l.conf.playlist.forEach(function(e,t){e=e.sources[0].src;n.appendChild(h.createElement("a",{href:e,className:l.video.index===t?f:void 0,"data-index":t}))})}h.toggleClass(u,"fp-custom-playlist",e),h.toggleClass(u,"fp-default-playlist",!e),l.play=function(e){if(void 0===e)return l.resume();if("number"!=typeof e||l.conf.playlist[e]){if("number"!=typeof e)return l.load.apply(null,arguments);var t=i({index:e},l.conf.playlist[e]);if(l.off("beforeresume.fromfirst"),"number"==typeof e&&e===l.video.index)return l.seek(0,function(){l.resume()});l.load(t,function(){l.video.index=e})}return l},l.play_next=function(e){e>l.conf.playlist.length&&(e=l.conf.playlist.length-1),r=e},l.next=function(e){e&&e.preventDefault();e=l.video.index;return-1!=e&&(e=e===l.conf.playlist.length-1?0:e+1,l.play(e)),l},l.prev=function(e){e&&e.preventDefault();e=l.video.index;return-1!=e&&(e=0===e?l.conf.playlist.length-1:e-1,l.play(e)),l},l.setPlaylist=function(e,t){return l.conf.playlist=e,t||delete l.video.index,o(),l},l.addPlaylistItem=function(e){return delete l.video.is_last,l.setPlaylist(l.conf.playlist.concat([e]),!0)},l.removePlaylistItem=function(e){var t=l.conf.playlist;return l.setPlaylist(t.slice(0,e).concat(t.slice(e+1)))},l.have_visible_playlist=function(){var e=l.conf.playlist&&0<l.conf.playlist.length;if(e){var t,n=0;for(t in l.conf.playlist)void 0===l.conf.playlist[t].click&&n++;n<2&&(e=!1)}return e},a.on(u,l.touch_events(),".fp-next",l.next),a.on(u,l.touch_events(),".fp-prev",l.prev),l.off("finish.pl").on("finish.pl",function(e,t){if(void 0===t.conf.advance||t.conf.advance||-1!==r){if(t.video.loop)return t.seek(0,function(){t.resume()});var n=0<=t.video.index?t.video.index+1:void 0;(n=-1<r?r:n)<t.conf.playlist.length||c.loop?(n=n===t.conf.playlist.length?0:n,h.removeClass(u,"is-finished"),setTimeout(function(){t.play(n)})):1<t.conf.playlist.length&&(t.one("beforeresume.fromfirst",function(e){e.preventDefault(),t.play(0)}),t.one("seek",function(){t.off("beforeresume.fromfirst")}))}}),l.on("ready",function(e,t,n){r===t.video.index&&(r=-1)});e=!1;l.conf.playlist.length&&(e=!0,o(),l.conf.clip&&l.conf.clip.sources.length||(l.conf.clip=l.conf.playlist[l.conf.startIndex||0])),n().length&&!e&&(l.conf.playlist=[],delete l.conf.startIndex,n().forEach(function(e){var t=e.href,t=(e.setAttribute("data-index",l.conf.playlist.length),g.resolve(t,l.conf.clip.sources));m&&i(t,m(e).data()),l.conf.playlist.push(t)})),h.find(".fp-prev,.fp-next,.fp-playlist",u).forEach(function(e){t.appendChild(e)}),a.on(v.test(c.query)?document:u,"click",c.query,function(e){e.preventDefault();e=e.currentTarget,e=Number(e.getAttribute("data-index"));-1!=e&&l.play(e)}),l.on("load",function(e,t,n){var r,o,i,a,s;l.conf.playlist.length&&(o=(r=p()[0])&&r.getAttribute("data-index"),s=n.index=void 0!==(s=n).index?s.index:void 0!==l.video.index?l.video.index:l.conf.startIndex||0,i=h.find(c.query+'[data-index="'+s+'"]',d())[0],a=s==l.conf.playlist.length-1,r&&h.removeClass(r,f),i&&h.addClass(i,f),h.removeClass(u,"video"+o),h.addClass(u,"video"+s),h.toggleClass(u,"last-video",a),n.index=t.video.index=s,n.is_last=t.video.is_last=a)}).on("unload.pl",function(){l.conf.playlist.length&&(p().forEach(function(e){h.toggleClass(e,f)}),l.conf.playlist.forEach(function(e,t){h.removeClass(u,"video"+t)}),delete l.video.index)}),l.conf.playlist.length&&(l.conf.loop=!1)})},{"../common":1,"../freedomplayer":24,"./resolve":17,bean:27,"extend-object":31}],16:[function(e,t,n){var r=e("../freedomplayer"),u=e("../common"),o=e("bean");r(function(t,i){var a=u.find(".fp-ui",i)[0],s=u.find(".fp-controls",a)[0];function l(t){u.find(".fp-qsel-menu a",i).forEach(function(e){u.toggleClass(e,"fp-selected",e.getAttribute("data-quality")==t),u.toggleClass(e,"fp-color",e.getAttribute("data-quality")==t)})}o.on(i,t.touch_events(),".fp-qsel",function(){var e=u.find(".fp-qsel-menu",i)[0];u.hasClass(e,"fp-active")?t.hideMenu():t.showMenu(e)}),o.on(i,t.touch_events(),".fp-qsel-menu a",function(e){e=e.target.getAttribute("data-quality");t.quality(e)}),t.quality=function(e){e=isNaN(Number(e))?e:Number(e),t.trigger("quality",[t,e])},t.on("quality",function(e,t,n){l(n,t.video.qualities)}),t.on("ready",function(e,t,n){var r,o;u.find(".fp-qsel-menu",i).forEach(u.removeNode),u.find(".fp-qsel",i).forEach(u.removeNode),!n.qualities||n.qualities.filter(function(e){return void 0===e.value||-1<e.value}).length<2||(r=n.qualities,n.quality,s.appendChild(u.createElement("strong",{className:"fp-qsel"},"HD")),o=u.createElement("div",{className:"fp-menu fp-qsel-menu"},"<strong>Quality</strong>"),r.forEach(function(e){var t=document.createElement("a"),n=void 0!==e.value?e.value:e;t.setAttribute("data-quality",n),t.innerHTML=e.label||e,o.appendChild(t)}),a.appendChild(o),l(n.quality,n.qualities))})})},{"../common":1,"../freedomplayer":24,bean:27}],17:[function(e,t,n){"use strict";var o=/\.(\w{3,4})(\?.*)?$/i,i=e("extend-object");function r(e){var t=e.attr("src"),n=e.attr("type")||"",r=t.split(o)[1],n=n.toLowerCase();return i(e.data(),{src:t,suffix:r||n,type:n||r})}t.exports=function(){this.sourcesFromVideoTag=function(e,t){var n=[];return t("source",e).each(function(){n.push(r(t(this)))}),!n.length&&e.length&&n.push(r(e)),n},this.resolve=function(n,e){return n?("string"==typeof n&&((n={src:n,sources:[]}).sources=(e||[]).map(function(e){var t=e.src.split(o)[1];return{type:e.type,src:n.src.replace(o,"."+t+"$2")}})),n=n instanceof Array?{sources:n.map(function(n){return n.type&&n.src?n:Object.keys(n).reduce(function(e,t){return i(e,{type:/mpegurl/i.test(e=t)?"application/x-mpegurl":"video/"+e,src:n[t]})},{})})}:n):{sources:e}}},t.exports.TYPE_RE=o},{"extend-object":31}],18:[function(e,t,n){"use strict";var d=e("../freedomplayer"),p=e("../common"),h=e("bean"),e=e("./subtitles/parser");d.defaults.subtitleParser=e,d(function(o,i){var a,s,n,r,l,u=!1;function e(e,r,o){u&&(r.cuepoints||[]).forEach(function(e,t){var n=e.subtitle;n&&a!=t&&o>=e.time&&(!n.endTime||o<=n.endTime)&&r.trigger("cuepoint",[r,e])})}d.support.inlineVideo&&(d.support.fullscreen||!o.conf.native_fullscreen)||(o.conf.nativesubtitles=!0),o.ui||(o.ui={}),o.ui.createSubtitleControl=function(e,t){return l=t,n=n||p.createElement("strong",{className:"fp-cc"},"CC"),r=r||p.createElement("div",{className:"fp-menu fp-subtitle-menu"},"<strong>Closed Captions</strong>"),p.find("a",r).forEach(p.removeNode),r.appendChild(p.createElement("a",{"data-subtitle-index":-1},"No subtitles")),(e||[]).forEach(function(e,t){var n=e.srclang||"en",e=e.label||"Default ("+n+")",n=p.createElement("a",{"data-subtitle-index":t},e);r.appendChild(n)}),p.find(".fp-ui",i)[0].appendChild(r),p.find(".fp-controls",i)[0].appendChild(n),p.toggleClass(n,"fp-hidden",!e||!e.length),n},o.ui.setActiveSubtitleItem=function(e){f(e)},h.on(i,o.touch_events(),".fp-cc",function(){p.hasClass(r,"fp-active")?o.hideMenu():o.showMenu(r)}),h.on(i,o.touch_events(),".fp-subtitle-menu [data-subtitle-index]",function(e){e.preventDefault();e=e.target.getAttribute("data-subtitle-index");return l?l(e):"-1"===e?o.disableSubtitles():void o.loadSubtitles(e)});function c(e,t){var n=p.find("video.fp-engine",i)[0].textTracks;n.length&&(null===e?[].forEach.call(n,function(e){e.mode=t}):n[e].mode=t)}o.on("ready",function(e,t,n){var r;t.subtitles=[],s=(s=p.find(".fp-captions",i)[0])||p.appendTo(p.createElement("div",{class:"fp-captions"}),p.find(".fp-player",i)[0]),Array.prototype.forEach.call(s.children,p.removeNode),o.ui.createSubtitleControl(o.video.subtitles),p.removeClass(i,"has-menu"),o.disableSubtitles(),n.subtitles&&n.subtitles.length&&(r=n.subtitles.filter(function(e){return e.default})[0])&&t.loadSubtitles(n.subtitles.indexOf(r))}),o.showSubtitle=function(e){p.html(s,e),p.addClass(s,"fp-shown")},o.hideSubtitle=function(){p.removeClass(s,"fp-shown")},o.bind("cuepoint",function(e,t,n){u=!1,n.subtitle?(a=n.index,o.showSubtitle(n.subtitle.text)):n.subtitleEnd&&(o.hideSubtitle(),a=n.index)}),o.bind("seek",function(e,t,r){a&&o.cuepoints[a]&&o.cuepoints[a].time>r&&(p.removeClass(s,"fp-shown"),a=null),(o.cuepoints||[]).forEach(function(e,t){var n=e.subtitle;n&&a!=t?r>=e.time&&(!n.endTime||r<=n.endTime)&&o.trigger("cuepoint",[o,e]):e.subtitleEnd&&r>=e.time&&t==a+1&&o.trigger("cuepoint",[o,e])})}),o.on("unload",function(){p.find(".fp-captions",i).forEach(p.removeNode)});var f=function(e){p.toggleClass(p.find("a.fp-selected",r)[0],"fp-selected"),p.toggleClass(p.find('a[data-subtitle-index="'+e+'"]',r)[0],"fp-selected"),p.toggleClass(i,"has-subtitles",o.video.subtitles&&o.video.subtitles.length)};o.disableSubtitles=function(){return o.subtitles=[],(o.cuepoints||[]).forEach(function(e){(e.subtitle||e.subtitleEnd)&&o.removeCuepoint(e)}),s&&Array.prototype.forEach.call(s.children,p.removeNode),f(-1),d.support.subtitles&&o.conf.nativesubtitles&&"html5"==o.engine.engineName&&c(null,"disabled"),o},o.loadSubtitles=function(e){o.disableSubtitles();var t=o.video.subtitles[e],n=t.src;if(n)return f(e),void 0!==t.rtl&&t.rtl?p.addClass(i,"is-captions-rtl"):p.removeClass(i,"is-captions-rtl"),d.support.subtitles&&o.conf.nativesubtitles&&"html5"==o.engine.engineName&&c(e,"showing"),p.xhrGet(n,function(e){o.conf.subtitleParser(e).forEach(function(e,t){e.title||(e.title="subtitle"+t);var n={time:e.startTime,subtitle:e,visible:!1};o.subtitles.push(e),o.addCuepoint(n),o.addCuepoint({time:e.endTime,subtitleEnd:e.title,visible:!1}),0!==e.startTime||o.video.time||o.splash||o.trigger("cuepoint",[o,d.extend({},n,{index:0})]),o.splash&&o.one("ready",function(){o.trigger("cuepoint",[o,n])})})},function(){return o.trigger("error-subtitles",[o,{code:8,url:n}]),!1}),o},h.on(i,o.touch_events(),".fp-subtitle-menu a[data-subtitle-index]",function(){-1<this.dataset.subtitleIndex&&(u=!0,o.on("progress",e))})})},{"../common":1,"../freedomplayer":24,"./subtitles/parser":19,bean:27}],19:[function(e,t,n){t.exports=function(e){var t=/^(([0-9]+:){1,2}[0-9]{2}[,.][0-9]{3}) --\> (([0-9]+:){1,2}[0-9]{2}[,.][0-9]{3})(.*)/;function n(e){e=e.split(":");return 2==e.length&&e.unshift(0),60*e[0]*60+60*e[1]+parseFloat(e[2].replace(",","."))}for(var r,o,i,a=[],s=0,l=e.split("\n"),u=l.length;s<u;s++)if(o=t.exec(l[s])){for(r=l[s-1],i="<p>"+l[++s]+"</p><br/>";"string"==typeof l[++s]&&l[s].trim()&&s<l.length;)i+="<p>"+l[s]+"</p><br/>";r={title:r,startTime:n(o[1]),endTime:n(o[3]),text:i},a.push(r)}return a}},{}],20:[function(e,t,n){"use strict";var r=e("../freedomplayer"),e=e("extend-object"),o={},i=document.documentElement.style,a=navigator.userAgent.toLowerCase(),a=((s=/(chrome)[ \/]([\w.]+)/.exec(a)||/(safari)[ \/]([\w.]+)/.exec(a)||/(webkit)[ \/]([\w.]+)/.exec(a)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(a)||/(msie) ([\w.]+)/.exec(a)||a.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(a)||[])[1]&&(o[s[1]]=!0,o.version=s[2]||"0"),o.safari&&(o.version=(/version\/([\w.]+)/.exec(a)||[])[1]),(s=document.createElement("video")).loop=!0,s.autoplay=!0,s.preload=!0,s),s=navigator.userAgent,l=o.msie||/Trident\/7/.test(s),u=/iPad|MeeGo/.test(s)&&!/CriOS/.test(s),c=/iPad/.test(s)&&/CriOS/.test(s),f=/iP(hone|od)/i.test(s)&&!/iPad/.test(s)&&!/IEMobile/i.test(s),d=/Android/.test(s),p=d&&/Firefox/.test(s),h=d&&/SAMSUNG/.test(s),g=/Silk/.test(s),m=/IEMobile/.test(s),v=m?parseFloat(/Windows\ Phone\ (\d+\.\d+)/.exec(s)[1],10):0,y=m?parseFloat(/IEMobile\/(\d+\.\d+)/.exec(s)[1],10):0,b=u||f?function(e){e=/iP(ad|hone)(; CPU)? OS (\d+_\d)/.exec(e);return e&&1<e.length?parseFloat(e[e.length-1].replace("_","."),10):0}(s):0,w=d?parseFloat(/Android\ (\d+(\.\d+)?)/.exec(s)[1],10):0,E=(f||u||c)&&{iPhone:f,iPad:u||c,version:b,chrome:c};(s=e(r.support,{browser:o,iOS:E,android:!!d&&{firefox:p,opera:/Opera/.test(s),samsung:h,version:w},subtitles:!!a.addTextTrack,fullscreen:"boolean"==typeof document.webkitFullscreenEnabled?document.webkitFullscreenEnabled:"function"==typeof document.webkitCancelFullScreen&&!/Mac OS X 10_5.+Version\/5\.0\.\d Safari/.test(s)||document.mozFullScreenEnabled||"function"==typeof document.exitFullscreen||"function"==typeof document.msExitFullscreen,inlineBlock:!(l&&o.version<8),touch:"ontouchstart"in window,dataload:!u&&!f&&!m,flex:"flexWrap"in i||"WebkitFlexWrap"in i||"msFlexWrap"in i,svg:!0,zeropreload:!l&&!d,volume:!(u||f||g||c||d),cachedVideoTag:!(u||f||c||m),firstframe:!(g||m||p||h||b&&b<10||d&&w<4.4),inlineVideo:(!f||10<=b)&&(!m||8.1<=v&&11<=y)&&(!d||3<=w),hlsDuration:!d&&(!o.safari||u||f||c),seekable:!u&&!c,preloadMetadata:!E&&!o.safari})).autoplay=s.firstframe,m&&(s.browser.safari=!1);try{s.video=!!a.canPlayType,s.video&&a.canPlayType("video/mp4")}catch(e){s.video=!1}s.animation=function(){for(var e=["","Webkit","Moz","O","ms","Khtml"],t=document.createElement("p"),n=0;n<e.length;n++)if(void 0!==t.style[e[n]+"AnimationName"])return!0}()},{"../freedomplayer":24,"extend-object":31}],21:[function(e,t,n){"use strict";var U=e("../freedomplayer"),B=e("../common"),R=e("bean"),Y=e("./ui/slider"),F=e("./ui/bar-slider");function r(e){return 10<=(e=parseInt(e,10))?e:"0"+e}function q(e,t){e=Math.max(e||0,0),e=t?Math.ceil(e):Math.floor(e);var t=Math.floor(e/3600),n=Math.floor(e/60);return e-=60*n,1<=t?t+":"+r(n-=60*t)+":"+r(e):r(n)+":"+r(e)}U(function(i,a){if(!U.added_svg_filters){U.added_svg_filters=!0;try{document.body.appendChild(L=B.createElement("div",{},'<svg class="fp-filters" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 0 0">\n  <defs>\n    <filter id="f1" x="-20%" y="-20%" width="200%" height="200%">\n      <feOffset result="offOut" in="SourceAlpha" dx="0" dy="0" />\n      <feColorMatrix result="matrixOut" in="offOut" type="matrix"\n      values="0.3 0 0 0 0 0 0.3 0 0 0 0 0 0.3 0 0 0 0 0 0.4 0" />\n      <feGaussianBlur result="blurOut" in="matrixOut" stdDeviation="4" />\n      <feBlend in="SourceGraphic" in2="blurOut" mode="normal" />\n    </filter>\n  </defs>\n</svg>\n')),B.css(L,{width:0,height:0,overflow:"hidden",position:"absolute",margin:0,padding:0})}catch(e){}}var t,n,r=!1,s=(i.touch_events=function(){if(!r){r="click.player";for(var e=a,t=0;t<4;t++){if(B.hasClass(e,"mobx-item")){r+=" touchend";break}if(!e.parentElement)break;e=e.parentElement}}return r},i.touch_events(),i.conf),l=U.support,o=(B.find(".fp-ratio,.fp-ui",a).forEach(B.removeNode),B.addClass(a,"freedomplayer"),a.appendChild(B.createElement("div",{className:"fp-ratio"})),B.createElement("div",{className:"fp-ui",style:"display: none"},'         <div class="fp-waiting">          <div class="fp-preload"><b></b><b></b><b></b><b></b></div>         </div>         <div class="fp-header">         </div>         <p class="fp-speed-flash"></p>         <div class="fp-play fp-visible">           <a class="fp-icon fp-playbtn"></a>           {{ PLAY_ROUNDED_FILL }}           {{ PLAY_ROUNDED_OUTLINE }}           {{ PLAY_SHARP_FILL }}           {{ PLAY_SHARP_OUTLINE }}         </div>         <div class="fp-pause">           <a class="fp-icon fp-playbtn"></a>           {{ PAUSE_SHARP_OUTLINE }}           {{ PAUSE_SHARP_FILL }}           {{ PAUSE_ROUNDED_OUTLINE }}           {{ PAUSE_ROUNDED_FILL }}         </div>         <div class="fp-controls">            <a class="fp-icon fp-playbtn"></a>            <span class="fp-elapsed">00:00</span>            <div class="fp-timeline fp-bar">               <span class="fp-timestamp"></span>               <div class="fp-progress fp-color"></div>            </div>            <span class="fp-duration"></span>            <span class="fp-remaining"></span>            <div class="fp-volume">               <a class="fp-icon fp-volumebtn"></a>               <div class="fp-volumebar fp-bar-slider">                 <em></em><em></em><em></em><em></em><em></em><em></em><em></em>               </div>            </div>            <a class="fp-fullscreen fp-icon">               <svg class="fp-fullscreen-enter" xmlns="http://www.w3.org/2000/svg" viewBox="-2 -2 40 30" fill="none" xmlns:xlink="http://www.w3.org/1999/xlink"><path d="M1 9V1h12" fill="none" /><path d="M1 9V1h12" transform="matrix(1 0 0 -1 0 26)" fill="none" /><path d="M1 9V1h12" transform="matrix(-1 0 0 1 36 0)" fill="none" /><path d="M1 9V1h12" transform="rotate(180 18 13)" fill="none" /></svg>               <svg class="fp-fullscreen-exit" xmlns="http://www.w3.org/2000/svg" viewBox="-1 -2 40 30" xmlns:xlink="http://www.w3.org/1999/xlink"><path d="M1 9V1h12" transform="translate(22 17)" fill="none" /><path d="M1 9V1h12" transform="matrix(-1 0 0 1 13 17)" fill="none" /><path d="M1 9V1h12" transform="rotate(180 6.5 4.5)" fill="none" /><path d="M1 9V1h12" transform="matrix(1 0 0 -1 22 9)" fill="none" /></svg>            </a>            <a class="fp-unload fp-icon"></a>            <strong class="fp-speed fp-hidden"></strong>         </div>'.replace("{{ PAUSE_ROUNDED_FILL }}",'<svg class="fp-pause-rounded-fill" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><style>.fp-color-play{opacity:0.65;}.rect{fill:#fff;}</style>\n</defs><path class="fp-color-play" d="M49.9217-.078a50,50,0,1,0,50,50A50.0564,50.0564,0,0,0,49.9217-.078Z"/><g class="controlbutton" filter="url(#f1)"><rect class="rect" x="31.844" y="28.1231" width="13.4362" height="43.5973" rx="6.7181" ry="6.7181"/><rect class="rect" x="54.5638" y="28.1231" width="13.4362" height="43.5973" rx="6.7181" ry="6.7181"/></g></svg>\n').replace("{{ PAUSE_ROUNDED_OUTLINE }}",'<svg class="fp-pause-rounded-outline" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 99.8434 99.8434"><defs><style>.fp-color-play{opacity:0.65;}.rect{fill:#fff;}</style>\n</defs><path class="fp-color-play" d="M49.9212-.0783a50,50,0,1,0,50.0006,50A50.0562,50.0562,0,0,0,49.9212-.0783Z"/><g class="controlbutton"><path class="rect" d="M39.0036,71.9726a7.565,7.565,0,0,1-7.557-7.556v-28.99a7.5565,7.5565,0,0,1,15.113,0v28.99A7.5648,7.5648,0,0,1,39.0036,71.9726Zm0-41.904a5.3647,5.3647,0,0,0-5.3593,5.3582v28.99a5.3587,5.3587,0,0,0,10.7174,0v-28.99A5.3645,5.3645,0,0,0,39.0036,30.0686Z" filter="url(#f1)"/><path class="rect" d="M60.84,71.9726a7.5648,7.5648,0,0,1-7.556-7.556v-28.99a7.5565,7.5565,0,0,1,15.113,0v28.99A7.565,7.565,0,0,1,60.84,71.9726Zm0-41.904a5.3645,5.3645,0,0,0-5.3582,5.3582v28.99a5.3587,5.3587,0,0,0,10.7174,0v-28.99A5.3647,5.3647,0,0,0,60.84,30.0686Z" filter="url(#f1)"/></g></svg>\n').replace("{{ PAUSE_SHARP_FILL }}",'<svg class="fp-pause-sharp-fill" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><style>.fp-color-play{opacity:0.65;}.rect{fill:#fff;}</style>\n</defs><path class="fp-color-play" d="M49.9217-.078a50,50,0,1,0,50,50A50.0564,50.0564,0,0,0,49.9217-.078Z"/><g class="controlbutton" filter="url(#f1)"><rect class="rect" x="33.5" y="30.1042" width="12.2634" height="39.7917"/><rect class="rect" x="54.2366" y="30.1042" width="12.2634" height="39.7917"/></g></svg>\n').replace("{{ PAUSE_SHARP_OUTLINE }}",'<svg class="fp-pause-sharp-outline" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 99.8434 99.8434"><defs><style>.fp-color-play{opacity:0.65;}.rect{fill:#fff;}</style>\n</defs><path class="fp-color-play" d="M49.9212-.0783a50,50,0,1,0,50.0006,50A50.0562,50.0562,0,0,0,49.9212-.0783Z"/><g class="controlbutton" filter="url(#f1)"><path class="rect" d="M46.8709,69.9531H33.1385V29.89H46.8709ZM35.1416,67.95h9.7262V31.8935H35.1416Z"/><path class="rect" d="M66.7047,69.9531H52.9722V29.89H66.7047ZM54.9754,67.95h9.7262V31.8935H54.9754Z"/></g></svg>\n').replace("{{ PLAY_SHARP_OUTLINE }}",'<svg class="fp-play-sharp-outline" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 99.844 99.8434"><defs><style>.controlbuttonbg{opacity:0.65;}.controlbutton{fill:#fff;}</style>\n</defs><path class="fp-color-play" d="M49.9217-.078a50,50,0,1,0,50,50A50.0564,50.0564,0,0,0,49.9217-.078Z"/><path class="controlbutton" d="M36.9443,72.2473V27.2916L75.8776,49.77Zm2.2-41.1455V68.4371L71.4776,49.77Z" filter="url(#f1)"/></svg>\n').replace("{{ PLAY_SHARP_FILL }}",'<svg class="fp-play-sharp-fill" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100">\n  <defs>\n    <style>.fp-color-play{opacity:0.65;}.controlbutton{fill:#fff;}</style>\n  </defs>\n  \n  <path class="fp-color-play" d="M49.9217-.078a50,50,0,1,0,50,50A50.0564,50.0564,0,0,0,49.9217-.078Z"/>\n  <polygon class="controlbutton" points="73.601 50 37.968 70.573 37.968 29.427 73.601 50" filter="url(#f1)"/>\n</svg>\n').replace("{{ PLAY_ROUNDED_OUTLINE }}",'<svg class="fp-play-rounded-outline" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 99.844 99.8434"><defs><style>.fp-color-play{opacity:0.65;}.controlbutton{fill:#fff;}</style>\n</defs>\n<path class="fp-color-play" d="M49.9217-.078a50,50,0,1,0,50,50A50.0564,50.0564,0,0,0,49.9217-.078Z"/><path class="controlbutton" d="M41.0359,71.19a5.0492,5.0492,0,0,1-2.5575-.6673c-1.8031-1.041-2.7958-3.1248-2.7958-5.8664V35.1887c0-2.7429.9933-4.8272,2.797-5.8676,1.8025-1.0422,4.1034-.86,6.48.5143L70.4782,44.5672c2.3751,1.3711,3.6826,3.2725,3.6832,5.3545s-1.3076,3.9845-3.6832,5.3562L44.9592,70.0114A7.9384,7.9384,0,0,1,41.0359,71.19Zm.0065-40.123a2.6794,2.6794,0,0,0-1.3582.3413c-1.0263.5926-1.5912,1.9349-1.5912,3.78V64.6563c0,1.8449.5649,3.1866,1.5906,3.7791,1.0281.5932,2.4733.4108,4.07-.512L69.273,53.1906c1.5983-.9227,2.478-2.0838,2.478-3.2689s-.88-2.3445-2.478-3.2666L43.754,31.9227A5.5685,5.5685,0,0,0,41.0423,31.0671Z" filter="url(#f1)"/></svg>\n').replace("{{ PLAY_ROUNDED_FILL }}",'<svg class="fp-play-rounded-fill" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100">\n  <defs><style>.a{fill:#000;opacity:0.65;}.b{fill:#fff;opacity:1.0;}</style>\n  </defs>\n  <path class="fp-color-play" d="M49.9217-.078a50,50,0,1,0,50,50A50.0564,50.0564,0,0,0,49.9217-.078Z"/>\n  <path class="b" d="M35.942,35.2323c0-4.7289,3.3506-6.6637,7.446-4.2971L68.83,45.6235c4.0956,2.364,4.0956,6.2319,0,8.5977L43.388,68.91c-4.0954,2.364-7.446.43-7.446-4.2979Z" filter="url(#f1)"/>\n  </svg>\n  \n').replace(/url\(#/g,"url("+window.location.href.replace(window.location.hash,"").replace(/\#$/g,"")+"#")));function e(e){return B.find(".fp-"+e,a)[0]}a.appendChild(o),"function"==typeof window.requestAnimationFrame?window.requestAnimationFrame(function(){o.style.display=""}):o.style.display="";e("waiting");var u,c=e("elapsed"),f=e("ratio"),d=e("speed-flash"),p=e("duration"),h=e("remaining"),g=e("timestamp"),P=B.css(f,"padding-top"),m=e("play"),v=e("pause"),y=e("timeline"),b=Y(y,i,a),w=e("fullscreen"),E=e("volumebar"),C=F(E,{rtl:i.rtl}),x=B.hasClass(a,"no-toggle"),M=!1,T=(b.disableAnimation(B.hasClass(a,"is-touch")),i.sliders=i.sliders||{},i.sliders.timeline=b,i.sliders.volume=C,[]);function A(e){B.css(f,"padding-top",100*e+"%"),l.inlineBlock||B.height(B.find("object",a)[0],B.height(a))}function _(e){k(e&&i.was_played),e?(u=new Date,i.on("pause.x volume.x",e=function(e){var t;l.touch||"number"!=typeof e.clientY||(t=o.getBoundingClientRect(),t=e.clientY-t.top-document.documentElement.scrollTop,B.toggleClass(a,"is-mouseover-top",t<.33*o.clientHeight),B.hasClass(a,"is-fullscreen")&&t<.05*o.clientHeight&&e.clientX>.95*o.clientWidth?n=n||setTimeout(function(){B.addClass(a,"is-fullscreen-exit-hint"),setTimeout(function(){B.removeClass(a,"is-fullscreen-exit-hint"),clearInterval(n)},2e3),clearInterval(n),n=setInterval(function(){B.toggleClass(w,"bold")},300)},1e3):(B.toggleClass(a,"is-mouseover-bottom",t>.8*o.clientHeight||M),clearInterval(n),n=!1,B.toggleClass(w,"bold",!1),B.removeClass(a,"is-fullscreen-exit-hint"))),void 0===i.video.click&&(k(i.was_played),u=new Date)}),R.on(a,"mousemove.x touchmove.x",e),R.on(g,"mousemove",function(){M=!0}),R.on(g,"mouseleave",function(){M=!1}),clearInterval(t),t=setInterval(function(){if(new Date-u>s.mouseoutTimeout){if(!l.touch||i.playing){if(!l.touch&&(B.hasClass(a,"is-mouseover-bottom")||B.hasClass(a,"is-mouseover-top")))return;k(!1)}u=new Date}},250)):(R.off(a,"mousemove.x touchmove.x"),i.off("pause.x volume.x"),clearInterval(t))}function k(e){e?(B.addClass(a,"is-mouseover"),B.removeClass(a,"is-mouseout")):(B.addClass(a,"is-mouseout"),B.removeClass(a,"is-mouseover"),B.removeClass(a,"is-mouseover-top"),B.removeClass(a,"is-mouseover-bottom"))}i.hover=_,s.ratio&&A(s.ratio);try{s.fullscreen||(w.style.display="none")}catch(e){B.removeNode(w)}i.on("dvrwindow",function(){b.disable(!1)}),i.on("ready",function(e,t,n){var r=t.get_video_duration();b.disable(t.disabled||!r),s.adaptiveRatio&&!isNaN(n.height/n.width)&&A(n.height/n.width),B.html([p,h],t.live?"Live":q(r)),B.toggleClass(a,"is-long",3600<=r),C.slide(t.volumeLevel),"flash"===t.engine.engineName?b.disableAnimation(!0,!0):b.disableAnimation(!1),B.find(".fp-title",o).forEach(B.removeNode),n.title&&B.prepend(o,B.createElement("div",{className:"fp-message fp-title"},n.title)),B.toggleClass(a,"has-title",!!n.title)}).on("unload",function(){P||s.splash||B.css(f,"paddingTop",""),b.slide(0),B.addClass(m,"fp-visible")}).on("buffer",function(e,r,t){var n=r.video,o=n.buffer/r.get_video_duration(),i=(!n.seekable&&l.seekable&&b.max(r.conf.live?1/0:o),n.seekable&&l.seekable&&b.getMax()&&b.max(1),t&&"number"!=typeof t||(t=[{start:0,end:n.buffer}]),B.find(".fp-buffer",y));i.length!==t.length&&(i.forEach(B.removeNode),i=[]),t.forEach(function(e,t){e.start-=r.get_video_start(),e.start<0&&(e.start=0),e.end-=r.get_video_start(),e.end<0&&(e.end=0);var t=i[t]||B.createElement("div",{className:"fp-buffer"}),n=r.get_video_duration();e.end>n&&(e.end=n),r.rtl?B.css(t,{right:100*e.start/n+"%",width:100*(e.end-e.start)/n+"%"}):B.css(t,{left:100*e.start/n+"%",width:100*(e.end-e.start)/n+"%"}),B.prepend(y,t)})}).on("speed",function(e,t,n){t.video.time&&(B.text(d,n+"x"),B.addClass(d,"fp-shown"),(T=T.filter(function(e){return clearTimeout(e),!1})).push(setTimeout(function(){B.addClass(d,"fp-hilite"),T.push(setTimeout(function(){B.removeClass(d,"fp-hilite"),T.push(setTimeout(function(){B.removeClass(d,"fp-shown")},300))},1e3))})))}).on("buffered",function(){b.max(1)}).on("progress seek",function(e,t,n){var r=i.get_video_duration(),o=i.video.seekOffset||0,o=(void 0===n&&(n=i.video.time),((n=i.get_custom_time?i.get_custom_time(n):n)-o)/(r-o));b.dragging||"progress"==e.type&&t.seeking||b.slide(o,i.seeking?0:250),B.toggleClass(a,"is-live-position",r-n<s.livePositionOffset),B.html(c,q(n)),B.html(h,q(r-n,!0))}).on("finish resume seek",function(e){B.toggleClass(a,"is-finished","finish"==e.type)}).on("resume",function(){l.touch?(B.addClass(v,"fp-visible"),B.removeClass(m,"fp-visible"),B.addClass(m,"fp-visible-change"),setTimeout(function(){B.removeClass(m,"fp-visible-change")},300)):(B.addClass(m,"fp-visible"),setTimeout(function(){B.removeClass(m,"fp-visible")},300))}).on("pause",function(){l.touch?(B.addClass(m,"fp-visible"),B.removeClass(v,"fp-visible"),B.addClass(v,"fp-visible-change"),setTimeout(function(){B.removeClass(v,"fp-visible-change")},300)):(B.addClass(v,"fp-visible"),setTimeout(function(){B.removeClass(v,"fp-visible")},300))}).on("stop",function(){B.html(c,q(0)),b.slide(0,100)}).on("finish",function(){B.html(c,q(i.get_video_duration())),b.slide(1,100),B.removeClass(a,"is-seeking")}).on("beforeseek",function(){}).on("volume",function(){C.slide(i.volumeLevel)}).on("disable",function(){var e=i.disabled;b.disable(e),C.disable(e),B.toggleClass(a,"is-disabled",i.disabled)}).on("mute",function(e,t,n){B.toggleClass(a,"is-muted",n)}).on("error",function(e,t,n){var r,o;B.removeClass(a,"is-loading"),B.removeClass(a,"is-seeking"),B.addClass(a,"is-error"),n&&(t.error=!0,r=n.code,(n.message||"").match(/DECODER_ERROR_NOT_SUPPORTED/)&&(r=3),n=n.custom_message||(t.engine&&t.engine.engineName||"html5")+": "+s.errors[r],o=t.message(n),B.removeClass(a,"is-mouseover"),t.one("load progress",function(e){"progress"!=e.type||t.error||o()}))}).one("resume ready",function(){var e,t=B.find("video.fp-engine",a)[0];!t||B.width(t)&&B.height(t)||(e=a.style.overflow,a.style.overflow="visible",setTimeout(function(){e?a.style.overflow=e:a.style.removeProperty("overflow")}))}),R.on(a,"mouseenter mouseleave",function(e){x||_("mouseover"==e.type)}),R.on(a,"mouseleave",function(){(b.dragging||C.dragging)&&(B.addClass(a,"is-mouseover"),B.removeClass(a,"is-mouseout"))}),R.on(a,r,function(e){return!i.disabled&&(B.hasParent(e.target,".fp-play,.fp-pause")||(!i.was_played||!l.touch||B.hasClass(a,"no-controlbar"))&&(B.hasClass(e.target,"fp-ui")||B.hasClass(e.target,"fp-engine"))||void 0!==i.video.click)?(e.preventDefault&&e.preventDefault(),i.playing&&(i.manual_pause=!0),i.toggle()):void 0}),R.on(a,"mousemove touchmove",".fp-timeline",function(e){var r,t=e.pageX||e.clientX,e=(t=!t&&e.originalEvent&&e.originalEvent.touches&&e.originalEvent.touches.length?e.originalEvent.touches[0].pageX:t)-B.offset(y).left,t=e/B.width(y),n=i.video,n=i.get_video_duration()-(void 0===n.seekOffset?0:n.seekOffset),o=(i.rtl?1-t:t)*n;t<0||(r="",n=i.get_video_index(),i.fv_timeline_chapters_data&&i.fv_timeline_chapters_data[n]&&i.fv_timeline_chapters_data[n].forEach(function(e){var t=e.startTime-i.get_video_start(),n=e.endTime-i.get_video_start();t<=o&&o<=n&&(r=e.line)}),t=q(o),r&&(t=t+" "+r),B.html(g,t),!1!==(n=(n=(n=e-B.width(g)/2)<0?0:n)>B.width(y)-B.width(g)?!1:n)?B.css(g,{left:n+"px",right:"auto"}):B.css(g,{left:"auto",right:"0px"}))}),R.on(a,"contextmenu",function(e){var t=window,n=B.find(".fp-context-menu",a)[0];n&&(e.preventDefault(),i.showMenu(n,{left:e.clientX-t.scrollX,top:e.clientY-t.scrollY}),R.on(a,r,".fp-context-menu",function(e){e.stopPropagation()}))}),s.poster&&B.css(a,"background-image","url("+s.poster+")");var N,L=B.css(a,"background-color"),L="none"!=B.css(a,"background-image")||L&&"rgba(0, 0, 0, 0)"!=L&&"transparent"!=L;function S(){"function"==typeof window.requestAnimationFrame?requestAnimationFrame(I):I()}function I(){var e=(B.find(".fp-player",a)[0]||a).clientWidth;B.toggleClass(a,"is-tiny",e<400&&0<e),B.toggleClass(a,"is-small",400<=e&&e<600)}s.splash||(s.poster||(s.poster=!0),N=function(){B.addClass(a,"is-poster"),B.addClass(m,"fp-visible"),i.poster=!0,i.on("resume.poster progress.poster beforeseek.poster",function(e){"beforeseek"!==e.type&&!i.playing||(B.removeClass(a,"is-poster"),B.removeClass(m,"fp-visible"),i.poster=!1,i.off(".poster"))})},i.on("stop",function(){N()}),i.on("ready",function(e,t,n){n.index||n.autoplay||N()})),"string"==typeof s.splash&&B.css(a,"background-image","url('"+s.splash+"')"),!L&&i.forcedSplash&&B.css(a,"background-color","#555"),R.on(a,r,".fp-toggle, .fp-play, .fp-playbtn",function(){i.disabled||(i.playing&&(i.manual_pause=!0),i.toggle())}),R.on(a,r,".fp-volumebtn",function(){i.mute()}),R.on(a,r,".fp-fullscreen",function(){i.fullscreen()}),R.on(a,r,".fp-unload",function(){i.unload()}),R.on(y,"slide",function(e){var t=i.get_video_duration(),e=t?i.get_video_start()+e*t:0;i.seeking=!0,i.manual_seeking=!0,i.custom_seek?i.custom_seek(e):i.seek(e)}),R.on(E,"slide",function(e){i.volume(e)}),R.on(a,r,".fp-duration,.fp-remaining",function(){if(i.dvr)return i.seekTo(10);B.toggleClass(a,"is-inverted")}),k(x),i.on("shutdown",function(){R.off(y),R.off(E),B.removeNode(o),B.find(".fp-ratio",a).forEach(B.removeNode)}),S();function z(){clearTimeout(O),O=setTimeout(D,j)}var D,j,O;D=S,j=250;window.addEventListener("resize",z)}),t.exports.format=q},{"../common":1,"../freedomplayer":24,"./ui/bar-slider":22,"./ui/slider":23,bean:27}],22:[function(e,t,n){var c=e("bean"),f=e("../../common");t.exports=function(o,e){var r=(e=e||{}).activeClass||"fp-color",i=e.inactiveClass||"fp-grey",t=e.childSelector||"em",a=!!e.rtl,n=!1,s=f.find(t,o).length,l={unload:function(){c.off(o,".barslider")},slide:function(n,e){f.find(t,o).forEach(function(e,t){t=t/s<n;f.toggleClass(e,r,t),f.toggleClass(e,i,!t)}),e&&c.fire(o,"slide",[n])},disable:function(e){n=e}};return c.on(o,"mousedown.sld touchstart.sld",function(e){e.preventDefault(),n||(l.slide(u(e),!0),c.on(freedomplayer.support.touch?o:document,"mousemove.sld touchmove.sld",function(e){e.preventDefault(),l.slide(u(e),!0)}),c.one(document,"mouseup.sld touchup.sld",function(){c.off(freedomplayer.support.touch?o:document,"mousemove.sld touchmove.sld")}))}),l;function u(e){var t=e.pageX||e.clientX,n=f.offset(o),r=f.width(o),e=(t=!t&&e.originalEvent&&e.originalEvent.touches&&e.originalEvent.touches.length?e.originalEvent.touches[0].pageX:t)-n.left,t=Math.max(0,Math.min(r,e))/r;return t=a?1-t:t}}},{"../../common":1,bean:27}],23:[function(e,t,n){"use strict";var b=e("bean"),w=e("../../common");t.exports=function(i,a,s){function l(){var e;n=w.offset(i),t=w.width(i),o=w.height(i),p=d?o:t,e=h,g=Math.max(0,Math.min(p,d?(1-e)*o:e*t))}function u(e,t){f||e==y.value||h&&!(e<h)||t||(b.fire(i,"slide",[e]),y.value=e)}function c(e){!(t=!(t=!(t=e.pageX||e.clientX)&&e.originalEvent&&e.originalEvent.pageX?e.originalEvent.pageX:t)&&e.originalEvent&&e.originalEvent.touches&&e.originalEvent.touches.length?e.originalEvent.touches[0].pageX:t)&&e.originalEvent&&e.originalEvent.changedTouches&&e.originalEvent.changedTouches.length&&(t=e.originalEvent.changedTouches[0].pageX);var e=d?e.pageY-n.top:t-n.left,t=Math.max(0,Math.min(g||p,e))/p;return d&&(t=1-t),a.rtl&&(t=1-t),r(t,0)}function r(e,t){void 0===t&&(t=0),1<e&&(e=1);var n=Math.round(1e3*e)/10+"%";return(!h||e<=h)&&(v?w.removeClass(m,"animated"):(w.addClass(m,"animated"),w.css(m,"transition-duration",(t||0)+"ms")),w.css(m,"width",n)),e}var f,n,t,o,d,p,h,g,m=w.lastChild(i),v=!1,y={max:function(e){h=e},getMax:function(){return h},disable:function(e){f=e},slide:function(e,t,n){l(),n&&u(e),r(e,t)},disableAnimation:function(e,t){v=!1!==e,w.toggleClass(i,"no-animation",!!t)}};return l(),b.on(i,"mousedown.sld touchstart",function(e){var t,n,r,o;(!w.hasClass(s,"is-mouseout")||w.hasClass(s,"is-splash")||w.hasClass(s,"is-seeking")||w.hasClass(s,"fixed-controls")||w.hasClass(s,"is-mobile-seeking"))&&(e.preventDefault(),f||(n=u,r=100,t=function(){o||(n.apply(this,arguments),o=1,setTimeout(function(){o=0},r))},l(),y.dragging=!0,u(c(e)),b.on(document,"mousemove.sld touchmove.sld",function(e){w.addClass(i,"is-fp-dragging"),e.preventDefault(),t(c(e),a.video.timeline_vtt)}),b.one(document,"mouseup touchend",function(e){a.video.timeline_vtt?(u(c(e)),setTimeout(function(){y.dragging=!1},250)):y.dragging=!1,w.removeClass(i,"is-fp-dragging"),b.off(document,"mousemove.sld touchmove.sld")})))}),y}},{"../../common":1,bean:27}],24:[function(e,t,n){"use strict";var l,h=e("extend-object"),g=e("is-function"),m=e("bean"),r=e("./ext/ui/slider"),o=e("./ext/ui/bar-slider"),v=e("./common"),y=e("./ext/events"),b=[],w=[],i=window.onbeforeunload,a=(window.onbeforeunload=function(e){if(b.forEach(function(e){e.conf.splash?e.unload():e.bind("error",function(){v.find(".freedomplayer.is-error .fp-message").forEach(v.removeNode)})}),i)return i(e)},/Safari/.exec(navigator.userAgent)&&!/Chrome/.exec(navigator.userAgent)),s=/(\d+\.\d+) Safari/.exec(navigator.userAgent),s=s?Number(s[1]):100,E=t.exports=function(e,t,n){return g(e)?w.push(e):"number"==typeof e||void 0===e?b[e||0]:e.nodeType?null!==e.getAttribute("data-freedomplayer-instance-id")?b[e.getAttribute("data-freedomplayer-instance-id")]:t?u(e,t,n):void 0:e.jquery?E(e[0],t,n):"string"==typeof e?(e=v.find(e)[0])&&E(e,t,n):void 0},C=(h(E,{version:"8.0.20",engines:[],engine:function(t){return E.engines.filter(function(e){return e.engineName===t})[0]},extensions:[],conf:{},set:function(e,t){"string"==typeof e?E.conf[e]=t:h(E.conf,e)},registerExtension:function(e,t){E.extensions.push([e,t])},support:{},defaults:{debug:!1,disabled:!1,fullscreen:window==window.top,keyboard:!0,ratio:9/16,adaptiveRatio:!1,rtmp:0,proxy:"best",hlsQualities:!0,seekStep:!1,splash:!1,live:!1,livePositionOffset:120,speeds:[.25,.5,1,1.5,2],tooltip:!0,mouseoutTimeout:2e3,mutedAutoplay:!0,clickToUnMute:!0,volume:1,errors:["","Video loading aborted","Network error","Video not properly encoded","Video file not found","Unsupported video","Skin not found","SWF file not found","Subtitles not found","Invalid RTMP URL","Unsupported video format. Try installing Adobe Flash."],errorUrls:["","","","","","","","","","","http://get.adobe.com/flashplayer/"],playlist:[],hlsFix:a&&s<8,disableInline:!1},bean:m,common:v,slider:r,barSlider:o,extend:h}),0),x=e("./ext/resolve");function u(e,t,n){t&&t.embed&&(t.embed=h({},E.defaults.embed,t.embed));var r=!1;try{void 0===E.conf.storage&&"object"==typeof window.localStorage&&(window.localStorage.freedomplayerTestStorage="test",r=!0)}catch(e){}var o,i,a,s=e,l=h({},E.defaults,E.conf,t),u={},c=s.className,f=new x;v.addClass(s,"is-loading"),v.toggleClass(s,"no-flex",!E.support.flex);try{u=E.conf.storage||(r?window.localStorage:u)}catch(e){}l.volume="true"===u.muted?0:(l.volume!==E.defaults.volume||isNaN(u.volume)?l:u).volume,l.debug=!!u.freedomplayerDebug||l.debug,l.aspectRatio&&"string"==typeof l.aspectRatio&&(e=l.aspectRatio.split(/[:\/]/),l.ratio=e[1]/e[0]);var t=s.currentStyle&&"rtl"===s.currentStyle.direction||window.getComputedStyle&&null!==window.getComputedStyle(s,null)&&"rtl"===window.getComputedStyle(s,null).getPropertyValue("direction"),d=(t&&v.addClass(s,"is-rtl"),{conf:l,currentSpeed:1,volumeLevel:l.muted?0:void 0===l.volume?+u.volume:l.volume,video:{},disabled:!1,finished:!1,loading:!1,muted:"true"==u.muted||l.muted,paused:!1,playing:!1,ready:!1,splash:!1,rtl:t,hijack:function(e){try{d.engine.suspendEngine()}catch(e){}d.hijacked=e},release:function(){try{d.engine.resumeEngine()}catch(e){}d.hijacked=!1},debug:function(){l.debug&&console.log.apply(console,["DEBUG"].concat([].slice.call(arguments)))},load:function(e,t){if(!d.error&&!d.loading){d.video={},d.finished=!1,e=e||l.clip,e=h({},f.resolve(e,l.clip.sources)),(d.playing||d.engine)&&(e.autoplay=!0);var n=p(e);if(!n)return setTimeout(function(){d.trigger("error",[d,{code:5}])})&&d;if(n.engineName)return d.engine&&n.engineName===d.engine.engineName||(d.ready=!1,d.engine&&(d.engine.unload(),d.conf.autoplay=!0),i=d.engine=n(d,s),d.one("ready",function(){setTimeout(function(){d.muted?d.mute(!0,!0):i.volume(d.volumeLevel)})})),h(e,i.pick(e.sources.filter(function(e){return!e.engine||e.engine===i.engineName}))),e.src&&(d.trigger("load",[d,e,i],!0).defaultPrevented?d.loading=!1:(d.ready=!1,i.load(e),(t=g(e)?e:t)&&d.one("ready",t))),d;throw new Error("engineName property of factory should be exposed")}},pause:function(e){return d.hijacked?d.hijacked.pause(e)|d:(!d.ready||d.seeking||d.loading||(i.pause(),d.one("pause",e)),d)},resume:function(){var e=d.trigger("beforeresume",[d],!0);if(!e.defaultPrevented)return d.hijacked?d.hijacked.resume()|d:(d.ready&&d.paused&&(i.resume(),d.finished)&&(d.trigger("resume",[d]),d.finished=!1),d)},toggle:function(){return d.ready?d.paused?d.resume():d.pause():d.load()},seek:function(e,t){if("boolean"==typeof e&&(n=d.conf.seekStep||.1*d.video.duration,e=d.video.time+(e?n:-n),e=Math.min(Math.max(e,0),d.video.duration-.1)),void 0!==e){e<d.get_video_start()&&(e=d.get_video_start());var n=d.get_video_duration()+d.get_video_start();if(n<e&&(e=n),d.hijacked)return d.hijacked.seek(e,t)|d;d.ready&&(o=e,d.trigger("beforeseek",[d,e],!0).defaultPrevented?(d.seeking=!1,d.manual_seeking=!1,d.seeking?(clearInterval(a),a=setTimeout(function(){v.toggleClass(s,"is-seeking",d.seeking)},500)):v.removeClass(s,"is-seeking")):(i.seek(e),g(t)&&d.one("seek",t)))}return d},seekTo:function(e,t){return void 0===e?d.seek(o,t):void 0!==d.video.seekOffset?d.seek(d.video.seekOffset+.1*(d.video.duration-d.video.seekOffset)*e,t):d.seek(.1*d.video.duration*e,t)},mute:function(e,t){return void 0===e&&(e=!d.muted),d.muted=e,t||(u.muted=e,u.volume=(isNaN(u.volume)?l:u).volume,E.support.volume)||e||(u.volume=1),void 0!==i.mute?i.mute(e):(d.volume(e?0:u.volume,!0),d.trigger("mute",[d,e])),d},volume:function(e,t){if(0!=(e=E.support.android&&0<parseFloat(e)?1:e))return d.ready&&(e=Math.min(Math.max(e,0),1),t||(u.volume=e),i.volume(e)),d;d.mute(!0,t)},speed:function(e,t){return d.ready&&("boolean"==typeof e&&(e=l.speeds[l.speeds.indexOf(d.currentSpeed)+(e?1:-1)]||d.currentSpeed),i.speed(e),t)&&s.one("speed",t),d},stop:function(){return d.ready&&(d.pause(),!d.live||d.dvr?d.seek(0,function(){d.trigger("stop",[d])}):d.trigger("stop",[d])),d},unload:function(){return l.splash?(d.trigger("unload",[d]),i&&(i.unload(),d.engine=i=0)):d.stop(),d},shutdown:function(){d.unload(),d.trigger("shutdown",[d]),m.off(s),delete b[s.getAttribute("data-freedomplayer-instance-id")],s.removeAttribute("data-freedomplayer-instance-id")},disable:function(e){return(e=void 0===e?!d.disabled:e)!=d.disabled&&(d.disabled=e,d.trigger("disable",e)),d},is_playlist:function(){return d.conf.playlist&&1<d.conf.playlist.length},is_last_video:function(){return d.is_playlist()&&d.get_video_index()==d.conf.playlist.length-1},get_video_index:function(){return d.video.index||0},get_video_duration:function(){return d.get_custom_duration?d.get_custom_duration():d.video.duration},get_video_start:function(){return d.get_custom_start?d.get_custom_start():0},get_video_end:function(){return d.get_custom_end?d.get_custom_end():d.video.duration},registerExtension:function(e,t){"string"==typeof(t=t||[])&&(t=[t]),(e="string"==typeof(e=e||[])?[e]:e).forEach(function(e){d.extensions.js.push(e)}),t.forEach(function(e){d.extensions.css.push(e)})}}),p=(d.conf=h(d.conf,l),d.extensions={js:[],css:[]},E.extensions.forEach(function(e){d.registerExtension(e[0],e[1])}),y(d),function(e){var n,r=E.engines;if(l.engine){var t=r.filter(function(e){return e.engineName===l.engine})[0];if(t&&e.sources.some(function(e){return(!e.engine||e.engine===t.engineName)&&t.canPlay(e.type,d.conf)}))return t}return l.enginePreference&&(r=E.engines.filter(function(e){return-1<l.enginePreference.indexOf(e.engineName)}).sort(function(e,t){return l.enginePreference.indexOf(e.engineName)-l.enginePreference.indexOf(t.engineName)})),e.sources.some(function(t){var e=r.filter(function(e){return(!t.engine||t.engine===e.engineName)&&e.canPlay(t.type,d.conf)}).shift();return e&&(n=e),!!e}),n});return s.getAttribute("data-freedomplayer-instance-id")||(s.setAttribute("data-freedomplayer-instance-id",C++),s.setAttribute("tabindex",0),d.on("boot",function(){var e=E.support;!l.splash&&!v.hasClass(s,"is-splash")&&e.firstframe||(d.forcedSplash=!l.splash&&!v.hasClass(s,"is-splash"),d.splash=!0,l.splash||(l.splash=!0),v.addClass(s,"is-splash")),l.splash&&v.find("video",s).forEach(v.removeNode),(l.dvr||l.live||v.hasClass(s,"is-live"))&&(d.live=l.live=!0,d.dvr=l.dvr=!!l.dvr||v.hasClass(s,"is-dvr"),v.addClass(s,"is-live"),v.toggleClass(s,"is-dvr",d.dvr)),w.forEach(function(e){e(d,s)}),b.push(d),l.splash?d.unload():d.load(),l.disabled&&d.disable(),d.one("ready",n),d.one("shutdown",function(){s.className=c})}).on("load",function(e,t,n){l.splash&&v.find(".freedomplayer.is-ready,.freedomplayer.is-loading").forEach(function(e){var e=e.getAttribute("data-freedomplayer-instance-id");e!==s.getAttribute("data-freedomplayer-instance-id")&&(e=b[Number(e)])&&e.conf.splash&&e.unload()}),v.addClass(s,"is-loading"),t.loading=!0,void 0===n.live&&void 0===n.dvr||(v.toggleClass(s,"is-live",n.dvr||n.live),v.toggleClass(s,"is-dvr",!!n.dvr),t.live=n.dvr||n.live,t.dvr=!!n.dvr)}).on("ready",function(e,t,n){n.time=0,t.video=n,v.removeClass(s,"is-loading"),t.loading=!1,t.muted?t.mute(!0,!0):t.volume(t.volumeLevel);t=t.conf.hlsFix&&/mpegurl/i.exec(n.type);v.toggleClass(s,"hls-fix",!!t)}).on("unload",function(){v.removeClass(s,"is-loading"),d.loading=!1,v.removeClass(s,"was-played"),d.was_played=!1}).on("ready unload",function(e){e="ready"==e.type;v.toggleClass(s,"is-splash",!e),v.toggleClass(s,"is-ready",e),d.ready=e,d.splash=!e}).on("progress",function(e,t,n){t.was_played||(t.was_played=!0,v.addClass(s,"was-played")),t.video.time=n}).on("buffer",function(e,t,n){t.video.buffer="number"==typeof n?n:n.length?n[n.length-1].end:0}).on("speed",function(e,t,n){t.currentSpeed=n}).on("volume",function(e,t,n){t.volumeLevel=Math.round(100*n)/100,t.muted&&n&&t.mute(!1)}).on("beforeseek seek",function(e){d.seeking="beforeseek"==e.type,d.seeking?(clearInterval(a),a=setTimeout(function(){v.toggleClass(s,"is-seeking",d.seeking)},500)):v.removeClass(s,"is-seeking"),"seek"==e.type&&setTimeout(function(){d.manual_seeking=!1},0)}).on("ready pause resume unload finish stop",function(e){d.paused=/pause|finish|unload|stop/.test(e.type),d.paused=d.paused||"ready"===e.type&&!l.autoplay&&!d.playing,"pause"==e.type&&setTimeout(function(){d.manual_pause=!1},0),d.playing=!d.paused,v.toggleClass(s,"is-paused",d.paused),v.toggleClass(s,"is-playing",d.playing)}).on("finish",function(){d.finished=!0}).on("error",function(){})),d.trigger("boot",[d,s]),d}void 0!==window.jQuery&&((l=window.jQuery)(function(){"function"==typeof l.fn.freedomplayer&&l('.freedomplayer:has(video:not(.fp-engine),script[type="application/json"])').freedomplayer()}),l.fn.freedomplayer=function(a,s){return this.each(function(){g(a="string"==typeof a?{swf:a}:a)&&(s=a,a={});var r,o,i,t=l(this),e=t.find('script[type="application/json"]'),e=e.length?JSON.parse(e.text()):(r=t.find("video")).length?(o=r.data()||{},i={},l.each(["autoplay","loop","preload","poster"],function(e,t){var n=r.attr(t);void 0!==n&&-1!==["autoplay","poster"].indexOf(t)?i[t]=n||!0:void 0!==n&&(o[t]=n||!0)}),r[0].autoplay=r[0].preload=!1,o.subtitles=r.find("track").map(function(){var e=l(this);return{src:e.attr("src"),kind:e.attr("kind"),label:e.attr("label"),srclang:e.attr("srclang"),default:e.prop("default")}}).get(),o.sources=(new x).sourcesFromVideoTag(r,l),h(i,{clip:o})):{},n=u(this,l.extend({},a||{},e,t.data()),s);y.EVENTS.forEach(function(e){n.on(e+".jquery",function(e){t.trigger.call(t,e.type,e.detail&&e.detail.args)})}),t.data("freedomplayer",n),t.data("flowplayer",n)})})},{"./common":1,"./ext/events":9,"./ext/resolve":17,"./ext/ui/bar-slider":22,"./ext/ui/slider":23,bean:27,"extend-object":31,"is-function":34}],25:[function(e,t,n){t=t.exports=e("./freedomplayer");"undefined"==typeof flowplayer&&(window.flowplayer=t,"undefined"!=typeof jQuery)&&(jQuery.fn.flowplayer=jQuery.fn.freedomplayer),e("./ext/support"),e("./engine/hlsjs"),e("./engine/html5"),e("./ext/ui"),e("./ext/message"),e("./ext/keyboard"),e("./ext/playlist"),e("./ext/cuepoint"),e("./ext/subtitle"),e("./ext/analytics"),e("./ext/airplay"),e("./ext/chromecast"),e("./ext/qsel"),e("./ext/menu"),e("./ext/fullscreen"),e("./ext/mobile"),t(function(e,t){var n;void 0!==e.conf.logo&&((n=document.createElement("img")).src=e.conf.logo,(e=document.createElement("a")).className="fp-logo",e.appendChild(n),(t.querySelector(".fp-player")||t).appendChild(e))})},{"./engine/hlsjs":2,"./engine/html5":4,"./ext/airplay":5,"./ext/analytics":6,"./ext/chromecast":7,"./ext/cuepoint":8,"./ext/fullscreen":10,"./ext/keyboard":11,"./ext/menu":12,"./ext/message":13,"./ext/mobile":14,"./ext/playlist":15,"./ext/qsel":16,"./ext/subtitle":18,"./ext/support":20,"./ext/ui":21,"./freedomplayer":24}],26:[function(e,t,n){"use strict";n.byteLength=function(e){var e=c(e),t=e[0],e=e[1];return 3*(t+e)/4-e},n.toByteArray=function(e){var t,n,r=c(e),o=r[0],r=r[1],i=new u(function(e,t){return 3*(e+t)/4-t}(o,r)),a=0,s=0<r?o-4:o;for(n=0;n<s;n+=4)t=l[e.charCodeAt(n)]<<18|l[e.charCodeAt(n+1)]<<12|l[e.charCodeAt(n+2)]<<6|l[e.charCodeAt(n+3)],i[a++]=t>>16&255,i[a++]=t>>8&255,i[a++]=255&t;2===r&&(t=l[e.charCodeAt(n)]<<2|l[e.charCodeAt(n+1)]>>4,i[a++]=255&t);1===r&&(t=l[e.charCodeAt(n)]<<10|l[e.charCodeAt(n+1)]<<4|l[e.charCodeAt(n+2)]>>2,i[a++]=t>>8&255,i[a++]=255&t);return i},n.fromByteArray=function(e){for(var t,n=e.length,r=n%3,o=[],i=0,a=n-r;i<a;i+=16383)o.push(function(e,t,n){for(var r,o=[],i=t;i<n;i+=3)r=(e[i]<<16&16711680)+(e[i+1]<<8&65280)+(255&e[i+2]),o.push(function(e){return s[e>>18&63]+s[e>>12&63]+s[e>>6&63]+s[63&e]}(r));return o.join("")}(e,i,a<i+16383?a:i+16383));1==r?(t=e[n-1],o.push(s[t>>2]+s[t<<4&63]+"==")):2==r&&(t=(e[n-2]<<8)+e[n-1],o.push(s[t>>10]+s[t>>4&63]+s[t<<2&63]+"="));return o.join("")};for(var s=[],l=[],u="undefined"!=typeof Uint8Array?Uint8Array:Array,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,i=r.length;o<i;++o)s[o]=r[o],l[r.charCodeAt(o)]=o;function c(e){var t=e.length;if(0<t%4)throw new Error("Invalid string. Length must be a multiple of 4");e=e.indexOf("="),t=(e=-1===e?t:e)===t?0:4-e%4;return[e,t]}l["-".charCodeAt(0)]=62,l["_".charCodeAt(0)]=63},{}],27:[function(e,t,n){var r,o;r=this,o=function(e,t){e=e||"bean",t=t||this;function l(e,t){return T||t||e!==x&&e!==b?e:M}function n(e){a=arguments.length?e:x.querySelectorAll?function(e,t){return t.querySelectorAll(e)}:function(){throw new Error("Bean: No selector engine installed")}}function i(e,t){if(T||!t||!e||e.propertyName=="_on"+t){var n=S.get(this,t||e.type,null,!1),r=n.length,o=0;for(e=new H(e,this,!0),t&&(e.type=t);o<r&&!e.isImmediatePropagationStopped();o++)n[o].removed||n[o].handler.call(this,e)}}function P(o,n){function r(e,t){for(var n,r=N(o)?a(o,t):o;e&&e!==t;e=e.parentNode)for(n=r.length;n--;)if(r[n]===e)return e}function e(e){var t=r(e.target,this);t&&n.apply(t,arguments)}return e.__beanDel={ft:r,selector:o},e}function f(e,t,n,r){var o,i,a,s,l,u,c;if(void 0!==n||"object"!=typeof t){for(r=F(n)?(l=_.call(arguments,3),o=n):(o=r,l=_.call(arguments,4),P(n,o)),a=k(t),this===Y&&(r=X(D,e,t,r,o)),s=a.length;s--;)c=S.put(u=new V(e,a[s].replace(E,""),r,o,k(a[s].replace(w,""),"."),l,!1)),u[A]&&c&&Q(e,u.eventType,!0,u.customType);return e}for(i in t)t.hasOwnProperty(i)&&f.call(this,e,i,t[i])}var a,d,p,r,o,s,u,c,h,g,m,z,v,y,U,B,b=window,R=t[e],w=/[^\.]*(?=\..*)\.|.*/,E=/\..*/,C="addEventListener",x=document||{},M=x.documentElement||{},T=M[C],A=T?C:"attachEvent",Y={},_=Array.prototype.slice,k=function(e,t){return e.split(t||" ")},N=function(e){return"string"==typeof e},F=function(e){return"function"==typeof e},q=function(e,t,n){for(n=0;n<t.length;n++)t[n]&&(e[t[n]]=1);return e}({},k("click dblclick mouseup mousedown contextmenu mousewheel mousemultiwheel DOMMouseScroll mouseover mouseout mousemove selectstart selectend keydown keypress keyup orientationchange focus blur change reset select submit load unload beforeunload resize move DOMContentLoaded readystatechange message error abort scroll "+(T?"show input invalid touchstart touchmove touchend touchcancel gesturestart gesturechange gestureend textinput readystatechange pageshow pagehide popstate hashchange offline online afterprint beforeprint dragstart dragenter dragover dragleave drag drop dragend loadstart progress suspend emptied stalled loadmetadata loadeddata canplay canplaythrough playing waiting seeking seeked ended durationchange timeupdate play pause ratechange volumechange cuechange checking noupdate downloading cached updateready obsolete ":""))),L=(U="compareDocumentPosition"in M?function(e,t){return t.compareDocumentPosition&&16==(16&t.compareDocumentPosition(e))}:"contains"in M?function(e,t){return(t=9===t.nodeType||t===window?M:t)!==e&&t.contains(e)}:function(e,t){for(;e=e.parentNode;)if(e===t)return 1;return 0},{mouseenter:{base:"mouseover",condition:K},mouseleave:{base:"mouseout",condition:K},mousewheel:{base:/Firefox/.test(navigator.userAgent)?"DOMMouseScroll":"mousewheel"}}),H=(r=k("altKey attrChange attrName bubbles cancelable ctrlKey currentTarget detail eventPhase getModifierState isTrusted metaKey relatedNode relatedTarget shiftKey srcElement target timeStamp type view which propertyName"),o=r.concat(k("button buttons clientX clientY dataTransfer fromElement offsetX offsetY pageX pageY screenX screenY toElement")),s=o.concat(k("wheelDelta wheelDeltaX wheelDeltaY wheelDeltaZ axis")),u=r.concat(k("char charCode key keyCode keyIdentifier keyLocation location")),c=r.concat(k("data")),h=r.concat(k("touches targetTouches changedTouches scale rotation")),g=r.concat(k("data origin source")),m=r.concat(k("state")),z=/over|out/,v=[{reg:/key/i,fix:function(e,t){return t.keyCode=e.keyCode||e.which,u}},{reg:/click|mouse(?!(.*wheel|scroll))|menu|drag|drop/i,fix:function(e,t,n){return t.rightClick=3===e.which||2===e.button,t.pos={x:0,y:0},e.pageX||e.pageY?(t.clientX=e.pageX,t.clientY=e.pageY):(e.clientX||e.clientY)&&(t.clientX=e.clientX+x.body.scrollLeft+M.scrollLeft,t.clientY=e.clientY+x.body.scrollTop+M.scrollTop),z.test(n)&&(t.relatedTarget=e.relatedTarget||e[("mouseover"==n?"from":"to")+"Element"]),o}},{reg:/mouse.*(wheel|scroll)/i,fix:function(){return s}},{reg:/^text/i,fix:function(){return c}},{reg:/^touch|^gesture/i,fix:function(){return h}},{reg:/^message$/i,fix:function(){return g}},{reg:/^popstate$/i,fix:function(){return m}},{reg:/.*/,fix:function(){return r}}],y={},O.prototype.preventDefault=function(){this.originalEvent.preventDefault?this.originalEvent.preventDefault():this.originalEvent.returnValue=!1},O.prototype.stopPropagation=function(){this.originalEvent.stopPropagation?this.originalEvent.stopPropagation():this.originalEvent.cancelBubble=!0},O.prototype.stop=function(){this.preventDefault(),this.stopPropagation(),this.stopped=!0},O.prototype.stopImmediatePropagation=function(){this.originalEvent.stopImmediatePropagation&&this.originalEvent.stopImmediatePropagation(),this.isImmediatePropagationStopped=function(){return!0}},O.prototype.isImmediatePropagationStopped=function(){return this.originalEvent.isImmediatePropagationStopped&&this.originalEvent.isImmediatePropagationStopped()},O.prototype.clone=function(e){var t=new O(this,this.element,this.isNative);return t.currentTarget=e,t},O),V=(j.prototype.inNamespaces=function(e){var t,n,r=0;if(!e)return!0;if(!this.namespaces)return!1;for(t=e.length;t--;)for(n=this.namespaces.length;n--;)e[t]==this.namespaces[n]&&r++;return e.length===r},j.prototype.matches=function(e,t,n){return!(this.element!==e||t&&this.original!==t||n&&this.handler!==n)},j),S=(d={},p=function(e,t,n,r,o,i){var a=o?"r":"$";if(t&&"*"!=t){var s,l=0,u=d[a+t],c="*"==e;if(u)for(s=u.length;l<s;l++)if((c||u[l].matches(e,n,r))&&!i(u[l],u,l,t))return}else for(var f in d)f.charAt(0)==a&&p(e,f.substr(1),n,r,o,i)},{has:function(e,t,n,r){var o,i=d[(r?"r":"$")+t];if(i)for(o=i.length;o--;)if(!i[o].root&&i[o].matches(e,n,null))return!0;return!1},get:function(e,t,n,r){var o=[];return p(e,t,n,null,r,function(e){return o.push(e)}),o},put:function(e){var t=!e.root&&!this.has(e.element,e.type,null,!1),n=(e.root?"r":"$")+e.type;return(d[n]||(d[n]=[])).push(e),t},del:function(e){p(e.element,e.type,null,e.handler,e.root,function(e,t,n){return t.splice(n,1),e.removed=!0,0===t.length&&delete d[(e.root?"r":"$")+e.type],!1})},entries:function(){var e,t=[];for(e in d)"$"==e.charAt(0)&&(t=t.concat(d[e]));return t}}),Q=T?function(e,t,n){var r="touchstart"!==t&&"touchmove"!==t?!1:{passive:!0};e[n?C:"removeEventListener"](t,i,r)}:function(t,e,n,r){var o;n?(S.put(o=new V(t,r||e,function(e){i.call(t,e,r)},i,null,null,!0)),r&&null==t["_on"+r]&&(t["_on"+r]=0),o.target.attachEvent("on"+o.eventType,o.handler)):(o=S.get(t,r||e,i,!0)[0])&&(o.target.detachEvent("on"+o.eventType,o.handler),S.del(o))},X=function(e,t,n,r,o){return function(){r.apply(this,arguments),e(t,n,o)}},I=function(e,t,n,r){for(var t=t&&t.replace(E,""),o=S.get(e,t,null,!1),i={},a=0,s=o.length;a<s;a++)n&&o[a].original!==n||!o[a].inNamespaces(r)||(S.del(o[a]),!i[o[a].eventType]&&o[a][A]&&(i[o[a].eventType]={t:o[a].eventType,c:o[a].type}));for(a in i)S.has(e,i[a].t,null,!1)||Q(e,i[a].t,!1,i[a].c)},W=T?function(e,t,n){var r=x.createEvent(e?"HTMLEvents":"UIEvents");r[e?"initEvent":"initUIEvent"](t,!0,!0,b,1),n.dispatchEvent(r)}:function(e,t,n){n=l(n,e),e?n.fireEvent("on"+t,x.createEventObject()):n["_on"+t]++},D=function(e,t,n){var r,o,i,a=N(t);if(a&&0<t.indexOf(" "))for(i=(t=k(t)).length;i--;)D(e,t[i],n);else if((o=a&&t.replace(E,""))&&L[o]&&(o=L[o].base),!t||a)a=(a=a&&t.replace(w,""))&&k(a,"."),I(e,o,n,a);else if(F(t))I(e,null,t);else for(r in t)t.hasOwnProperty(r)&&D(e,r,t[r]);return e},Z={on:f,add:function(e,t,n,r){return f.apply(null,N(n)?[e,n,t,r].concat(3<arguments.length?_.call(arguments,5):[]):_.call(arguments))},one:function(){return f.apply(Y,arguments)},off:D,remove:D,clone:function(e,t,n){for(var r,o,i=S.get(t,n,null,!1),a=i.length,s=0;s<a;s++)i[s].original&&(r=[e,i[s].type],(o=i[s].handler.__beanDel)&&r.push(o.selector),r.push(i[s].original),f.apply(null,r));return e},fire:function(e,t,n){for(var r,o,i,a,s=k(t),l=s.length;l--;)if(t=s[l].replace(E,""),(i=(i=s[l].replace(w,""))&&k(i,"."))||n||!e[A])for(a=S.get(e,t,null,!1),n=[!1].concat(n),r=0,o=a.length;r<o;r++)a[r].inNamespaces(i)&&a[r].handler.apply(e,n);else W(q[t],t,e);return e},Event:H,setSelectorEngine:n,noConflict:function(){return t[e]=R,this}};function G(n,r,o,i){function a(e,t){return r.apply(n,i?_.call(t,e?0:1).concat(i):t)}function s(e,t){return r.__beanDel?r.__beanDel.ft(e.target,n):t}var e=o?function(e){var t=s(e,this);if(o.apply(t,arguments))return e&&(e.currentTarget=t),a(e,arguments)}:function(e){return r.__beanDel&&(e=e.clone(s(e))),a(e,arguments)};return e.__beanDel=r.__beanDel,e}function j(e,t,n,r,o,i,a){var s=L[t];"unload"==t&&(n=X(I,e,t,n,r)),s&&(s.condition&&(n=G(e,n,s.condition,i)),t=s.base||t),this.isNative=s=q[t]&&!!e[A],this.customType=!T&&!s&&t,this.element=e,this.type=t,this.original=r,this.namespaces=o,this.eventType=T||s?t:"propertychange",this.target=l(e,s),this[A]=!!this.target[A],this.root=a,this.handler=G(e,n,null,i)}function O(e,t,n){if(arguments.length&&(e=e||((t.ownerDocument||t.document||t).parentWindow||b).event,this.originalEvent=e,this.isNative=n,this.isBean=!0,e)){var r,o,i,a,s,l=e.type,u=e.target||e.srcElement;if(this.target=u&&3===u.nodeType?u.parentNode:u,n){if(!(s=y[l]))for(r=0,o=v.length;r<o;r++)if(v[r].reg.test(l)){y[l]=s=v[r].fix;break}for(r=(a=s(e,this,l)).length;r--;)!((i=a[r])in this)&&i in e&&(this[i]=e[i])}}}function K(e){return(e=e.relatedTarget)?e!==this&&"xul"!==e.prefix&&!/document/.test(this.toString())&&!U(e,this):null==e}return b.attachEvent&&b.attachEvent("onunload",B=function(){var e,t=S.entries();for(e in t)t[e].type&&"unload"!==t[e].type&&D(t[e].element,t[e].type);b.detachEvent("onunload",B),b.CollectGarbage&&b.CollectGarbage()}),n(),Z},void 0!==t&&t.exports?t.exports=o():r.bean=o()},{}],28:[function(S,e,I){!function(e){!function(){"use strict";var M=S("base64-js"),i=S("ieee754"),t=(I.Buffer=f,I.SlowBuffer=function(e){+e!=e&&(e=0);return f.alloc(+e)},I.INSPECT_MAX_BYTES=50,2147483647);function l(e){if(t<e)throw new RangeError('The value "'+e+'" is invalid for option "size"');e=new Uint8Array(e);return e.__proto__=f.prototype,e}function f(e,t,n){if("number"!=typeof e)return r(e,t,n);if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return a(e)}function r(e,t,n){if("string"==typeof e){var r=e,o=t;if(f.isEncoding(o="string"==typeof o&&""!==o?o:"utf8"))return i=0|d(r,o),a=l(i),a=(r=a.write(r,o))!==i?a.slice(0,r):a;throw new TypeError("Unknown encoding: "+o)}if(ArrayBuffer.isView(e))return u(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(N(e,ArrayBuffer)||e&&N(e.buffer,ArrayBuffer)){var i=e,r=t,a=n;if(r<0||i.byteLength<r)throw new RangeError('"offset" is outside of buffer bounds');if(i.byteLength<r+(a||0))throw new RangeError('"length" is outside of buffer bounds');return(i=void 0===r&&void 0===a?new Uint8Array(i):void 0===a?new Uint8Array(i,r):new Uint8Array(i,r,a)).__proto__=f.prototype,i}if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');o=e.valueOf&&e.valueOf();if(null!=o&&o!==e)return f.from(o,t,n);var s=function(e){{var t,n;if(f.isBuffer(e))return t=0|c(e.length),0!==(n=l(t)).length&&e.copy(n,0,0,t),n}if(void 0!==e.length)return"number"!=typeof e.length||L(e.length)?l(0):u(e);if("Buffer"===e.type&&Array.isArray(e.data))return u(e.data)}(e);if(s)return s;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return f.from(e[Symbol.toPrimitive]("string"),t,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function o(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function a(e){return o(e),l(e<0?0:0|c(e))}function u(e){for(var t=e.length<0?0:0|c(e.length),n=l(t),r=0;r<t;r+=1)n[r]=255&e[r];return n}function c(e){if(t<=e)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+t.toString(16)+" bytes");return 0|e}function d(e,t){if(f.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||N(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var n=e.length,r=2<arguments.length&&!0===arguments[2];if(!r&&0===n)return 0;for(var o=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return A(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return _(e).length;default:if(o)return r?-1:A(e).length;t=(""+t).toLowerCase(),o=!0}}function n(e,t,n){var r,o=!1;if((t=void 0===t||t<0?0:t)>this.length)return"";if((n=void 0===n||n>this.length?this.length:n)<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e=e||"utf8";;)switch(e){case"hex":var i=this,a=t,s=n,l=i.length;(!s||s<0||l<s)&&(s=l);for(var u="",c=a=!a||a<0?0:a;c<s;++c)u+=function(e){return e<16?"0"+e.toString(16):e.toString(16)}(i[c]);return u;case"utf8":case"utf-8":return T(this,t,n);case"ascii":var f=this,l=t,d=n,p="";d=Math.min(f.length,d);for(var h=l;h<d;++h)p+=String.fromCharCode(127&f[h]);return p;case"latin1":case"binary":var g=this,a=t,m=n,v="";m=Math.min(g.length,m);for(var y=a;y<m;++y)v+=String.fromCharCode(g[y]);return v;case"base64":return b=this,r=n,0===(w=t)&&r===b.length?M.fromByteArray(b):M.fromByteArray(b.slice(w,r));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":for(var b=t,w=n,E=this.slice(b,w),C="",x=0;x<E.length;x+=2)C+=String.fromCharCode(E[x]+256*E[x+1]);return C;default:if(o)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),o=!0}}function s(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function p(e,t,n,r,o){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):2147483647<n?n=2147483647:n<-2147483648&&(n=-2147483648),(n=(n=L(n=+n)?o?0:e.length-1:n)<0?e.length+n:n)>=e.length){if(o)return-1;n=e.length-1}else if(n<0){if(!o)return-1;n=0}if("string"==typeof t&&(t=f.from(t,r)),f.isBuffer(t))return 0===t.length?-1:h(e,t,n,r,o);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?(o?Uint8Array.prototype.indexOf:Uint8Array.prototype.lastIndexOf).call(e,t,n):h(e,[t],n,r,o);throw new TypeError("val must be string, number or Buffer")}function h(e,t,n,r,o){var i=1,a=e.length,s=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a/=i=2,s/=2,n/=2}function l(e,t){return 1===i?e[t]:e.readUInt16BE(t*i)}if(o)for(var u=-1,c=n;c<a;c++)if(l(e,c)===l(t,-1===u?0:c-u)){if(c-(u=-1===u?c:u)+1===s)return u*i}else-1!==u&&(c-=c-u),u=-1;else for(c=n=a<n+s?a-s:n;0<=c;c--){for(var f=!0,d=0;d<s;d++)if(l(e,c+d)!==l(t,d)){f=!1;break}if(f)return c}return-1}function m(e,t,n,r){return k(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function v(e,t,n,r){return k(function(e,t){for(var n,r,o=[],i=0;i<e.length&&!((t-=2)<0);++i)n=e.charCodeAt(i),r=n>>8,o.push(n%256),o.push(r);return o}(t,e.length-n),e,n,r)}function T(e,t,n){n=Math.min(e.length,n);for(var r=[],o=t;o<n;){var i,a,s,l,u=e[o],c=null,f=239<u?4:223<u?3:191<u?2:1;if(o+f<=n)switch(f){case 1:u<128&&(c=u);break;case 2:128==(192&(i=e[o+1]))&&127<(l=(31&u)<<6|63&i)&&(c=l);break;case 3:i=e[o+1],a=e[o+2],128==(192&i)&&128==(192&a)&&2047<(l=(15&u)<<12|(63&i)<<6|63&a)&&(l<55296||57343<l)&&(c=l);break;case 4:i=e[o+1],a=e[o+2],s=e[o+3],128==(192&i)&&128==(192&a)&&128==(192&s)&&65535<(l=(15&u)<<18|(63&i)<<12|(63&a)<<6|63&s)&&l<1114112&&(c=l)}null===c?(c=65533,f=1):65535<c&&(r.push((c-=65536)>>>10&1023|55296),c=56320|1023&c),r.push(c),o+=f}var d=r,p=d.length;if(p<=y)return String.fromCharCode.apply(String,d);for(var h="",g=0;g<p;)h+=String.fromCharCode.apply(String,d.slice(g,g+=y));return h}I.kMaxLength=t,(f.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()}catch(e){return!1}}())||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(f.prototype,"parent",{enumerable:!0,get:function(){if(f.isBuffer(this))return this.buffer}}),Object.defineProperty(f.prototype,"offset",{enumerable:!0,get:function(){if(f.isBuffer(this))return this.byteOffset}}),"undefined"!=typeof Symbol&&null!=Symbol.species&&f[Symbol.species]===f&&Object.defineProperty(f,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),f.poolSize=8192,f.from=r,f.prototype.__proto__=Uint8Array.prototype,f.__proto__=Uint8Array,f.alloc=function(e,t,n){return t=t,n=n,o(e=e),!(e<=0)&&void 0!==t?"string"==typeof n?l(e).fill(t,n):l(e).fill(t):l(e)},f.allocUnsafe=a,f.allocUnsafeSlow=a,f.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==f.prototype},f.compare=function(e,t){if(N(e,Uint8Array)&&(e=f.from(e,e.offset,e.byteLength)),N(t,Uint8Array)&&(t=f.from(t,t.offset,t.byteLength)),!f.isBuffer(e)||!f.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var n=e.length,r=t.length,o=0,i=Math.min(n,r);o<i;++o)if(e[o]!==t[o]){n=e[o],r=t[o];break}return n<r?-1:r<n?1:0},f.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},f.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return f.alloc(0);if(void 0===t)for(o=t=0;o<e.length;++o)t+=e[o].length;for(var n=f.allocUnsafe(t),r=0,o=0;o<e.length;++o){var i=e[o];if(N(i,Uint8Array)&&(i=f.from(i)),!f.isBuffer(i))throw new TypeError('"list" argument must be an Array of Buffers');i.copy(n,r),r+=i.length}return n},f.byteLength=d,f.prototype._isBuffer=!0,f.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)s(this,t,t+1);return this},f.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)s(this,t,t+3),s(this,t+1,t+2);return this},f.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)s(this,t,t+7),s(this,t+1,t+6),s(this,t+2,t+5),s(this,t+3,t+4);return this},f.prototype.toLocaleString=f.prototype.toString=function(){var e=this.length;return 0===e?"":0===arguments.length?T(this,0,e):n.apply(this,arguments)},f.prototype.equals=function(e){if(f.isBuffer(e))return this===e||0===f.compare(this,e);throw new TypeError("Argument must be a Buffer")},f.prototype.inspect=function(){var e="",t=I.INSPECT_MAX_BYTES,e=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim();return this.length>t&&(e+=" ... "),"<Buffer "+e+">"},f.prototype.compare=function(e,t,n,r,o){if(N(e,Uint8Array)&&(e=f.from(e,e.offset,e.byteLength)),!f.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),(t=void 0===t?0:t)<0||n>e.length||r<0||o>this.length)throw new RangeError("out of range index");if(o<=r&&n<=t)return 0;if(o<=r)return-1;if(n<=t)return 1;if(this===e)return 0;for(var i=(o>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0),s=Math.min(i,a),l=this.slice(r,o),u=e.slice(t,n),c=0;c<s;++c)if(l[c]!==u[c]){i=l[c],a=u[c];break}return i<a?-1:a<i?1:0},f.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},f.prototype.indexOf=function(e,t,n){return p(this,e,t,n,!0)},f.prototype.lastIndexOf=function(e,t,n){return p(this,e,t,n,!1)},f.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var o=this.length-t;if((void 0===n||o<n)&&(n=o),0<e.length&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r=r||"utf8";for(var i,a,s,l=!1;;)switch(r){case"hex":var u=this,c=e,f=t,d=n,p=(f=Number(f)||0,u.length-f);(!d||p<(d=Number(d)))&&(d=p),(p=c.length)/2<d&&(d=p/2);for(var h=0;h<d;++h){var g=parseInt(c.substr(2*h,2),16);if(L(g))return h;u[f+h]=g}return h;case"utf8":case"utf-8":return p=t,s=n,k(A(e,(a=this).length-p),a,p,s);case"ascii":return m(this,e,t,n);case"latin1":case"binary":return m(this,e,t,n);case"base64":return a=this,s=t,i=n,k(_(e),a,s,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return v(this,e,t,n);default:if(l)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),l=!0}},f.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var y=4096;function g(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(n<e+t)throw new RangeError("Trying to access beyond buffer length")}function b(e,t,n,r,o,i){if(!f.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(o<t||t<i)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function w(e,t,n,r){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function E(e,t,n,r,o){return t=+t,n>>>=0,o||w(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function C(e,t,n,r,o){return t=+t,n>>>=0,o||w(e,0,n,8),i.write(e,t,n,r,52,8),n+8}f.prototype.slice=function(e,t){var n=this.length,n=((e=~~e)<0?(e+=n)<0&&(e=0):n<e&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):n<t&&(t=n),t<e&&(t=e),this.subarray(e,t));return n.__proto__=f.prototype,n},f.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||g(e,t,this.length);for(var r=this[e],o=1,i=0;++i<t&&(o*=256);)r+=this[e+i]*o;return r},f.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||g(e,t,this.length);for(var r=this[e+--t],o=1;0<t&&(o*=256);)r+=this[e+--t]*o;return r},f.prototype.readUInt8=function(e,t){return e>>>=0,t||g(e,1,this.length),this[e]},f.prototype.readUInt16LE=function(e,t){return e>>>=0,t||g(e,2,this.length),this[e]|this[e+1]<<8},f.prototype.readUInt16BE=function(e,t){return e>>>=0,t||g(e,2,this.length),this[e]<<8|this[e+1]},f.prototype.readUInt32LE=function(e,t){return e>>>=0,t||g(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},f.prototype.readUInt32BE=function(e,t){return e>>>=0,t||g(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},f.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||g(e,t,this.length);for(var r=this[e],o=1,i=0;++i<t&&(o*=256);)r+=this[e+i]*o;return(o*=128)<=r&&(r-=Math.pow(2,8*t)),r},f.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||g(e,t,this.length);for(var r=t,o=1,i=this[e+--r];0<r&&(o*=256);)i+=this[e+--r]*o;return(o*=128)<=i&&(i-=Math.pow(2,8*t)),i},f.prototype.readInt8=function(e,t){return e>>>=0,t||g(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},f.prototype.readInt16LE=function(e,t){e>>>=0,t||g(e,2,this.length);t=this[e]|this[e+1]<<8;return 32768&t?4294901760|t:t},f.prototype.readInt16BE=function(e,t){e>>>=0,t||g(e,2,this.length);t=this[e+1]|this[e]<<8;return 32768&t?4294901760|t:t},f.prototype.readInt32LE=function(e,t){return e>>>=0,t||g(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},f.prototype.readInt32BE=function(e,t){return e>>>=0,t||g(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},f.prototype.readFloatLE=function(e,t){return e>>>=0,t||g(e,4,this.length),i.read(this,e,!0,23,4)},f.prototype.readFloatBE=function(e,t){return e>>>=0,t||g(e,4,this.length),i.read(this,e,!1,23,4)},f.prototype.readDoubleLE=function(e,t){return e>>>=0,t||g(e,8,this.length),i.read(this,e,!0,52,8)},f.prototype.readDoubleBE=function(e,t){return e>>>=0,t||g(e,8,this.length),i.read(this,e,!1,52,8)},f.prototype.writeUIntLE=function(e,t,n,r){e=+e,t>>>=0,n>>>=0,r||b(this,e,t,n,Math.pow(2,8*n)-1,0);var o=1,i=0;for(this[t]=255&e;++i<n&&(o*=256);)this[t+i]=e/o&255;return t+n},f.prototype.writeUIntBE=function(e,t,n,r){e=+e,t>>>=0,n>>>=0,r||b(this,e,t,n,Math.pow(2,8*n)-1,0);var o=n-1,i=1;for(this[t+o]=255&e;0<=--o&&(i*=256);)this[t+o]=e/i&255;return t+n},f.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||b(this,e,t,1,255,0),this[t]=255&e,t+1},f.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||b(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},f.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||b(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},f.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||b(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},f.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||b(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},f.prototype.writeIntLE=function(e,t,n,r){e=+e,t>>>=0,r||b(this,e,t,n,(r=Math.pow(2,8*n-1))-1,-r);var o=0,i=1,a=0;for(this[t]=255&e;++o<n&&(i*=256);)e<0&&0===a&&0!==this[t+o-1]&&(a=1),this[t+o]=(e/i>>0)-a&255;return t+n},f.prototype.writeIntBE=function(e,t,n,r){e=+e,t>>>=0,r||b(this,e,t,n,(r=Math.pow(2,8*n-1))-1,-r);var o=n-1,i=1,a=0;for(this[t+o]=255&e;0<=--o&&(i*=256);)e<0&&0===a&&0!==this[t+o+1]&&(a=1),this[t+o]=(e/i>>0)-a&255;return t+n},f.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||b(this,e,t,1,127,-128),this[t]=255&(e=e<0?255+e+1:e),t+1},f.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||b(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},f.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||b(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},f.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||b(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},f.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||b(this,e,t,4,2147483647,-2147483648),this[t]=(e=e<0?4294967295+e+1:e)>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},f.prototype.writeFloatLE=function(e,t,n){return E(this,e,t,!0,n)},f.prototype.writeFloatBE=function(e,t,n){return E(this,e,t,!1,n)},f.prototype.writeDoubleLE=function(e,t,n){return C(this,e,t,!0,n)},f.prototype.writeDoubleBE=function(e,t,n){return C(this,e,t,!1,n)},f.prototype.copy=function(e,t,n,r){if(!f.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n=n||0,r||0===r||(r=this.length),t>=e.length&&(t=e.length),(r=0<r&&r<n?n:r)===n)return 0;if(0===e.length||0===this.length)return 0;if((t=t||0)<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length);var o=(r=e.length-t<r-n?e.length-t+n:r)-n;if(this===e&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(t,n,r);else if(this===e&&n<t&&t<r)for(var i=o-1;0<=i;--i)e[i+t]=this[i+n];else Uint8Array.prototype.set.call(e,this.subarray(n,r),t);return o},f.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!f.isEncoding(r))throw new TypeError("Unknown encoding: "+r);var o;1===e.length&&(o=e.charCodeAt(0),"utf8"===r&&o<128||"latin1"===r)&&(e=o)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");var i;if(!(n<=t))if(t>>>=0,n=void 0===n?this.length:n>>>0,"number"==typeof(e=e||0))for(i=t;i<n;++i)this[i]=e;else{var a=f.isBuffer(e)?e:f.from(e,r),s=a.length;if(0===s)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<n-t;++i)this[i+t]=a[i%s]}return this};var x=/[^+/0-9A-Za-z-_]/g;function A(e,t){t=t||1/0;for(var n,r=e.length,o=null,i=[],a=0;a<r;++a){if(55295<(n=e.charCodeAt(a))&&n<57344){if(!o){if(56319<n){-1<(t-=3)&&i.push(239,191,189);continue}if(a+1===r){-1<(t-=3)&&i.push(239,191,189);continue}o=n;continue}if(n<56320){-1<(t-=3)&&i.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&-1<(t-=3)&&i.push(239,191,189);if(o=null,n<128){if(--t<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function _(e){return M.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(x,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function k(e,t,n,r){for(var o=0;o<r&&!(o+n>=t.length||o>=e.length);++o)t[o+n]=e[o];return o}function N(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function L(e){return e!=e}}.call(this)}.call(this,S("buffer").Buffer)},{"base64-js":26,buffer:28,ieee754:32}],29:[function(e,t,n){var l=e("indexof");function u(e){return!!e}t.exports=function(o){var e=o.classList;if(e)return e;var r={add:t,remove:n,contains:i,toggle:function(e){return i(e)?(n(e),!1):(t(e),!0)},toString:function(){return o.className},length:0,item:function(e){return a()[e]||null}};return r;function t(e){var t=a();-1<l(t,e)||(t.push(e),s(t))}function n(e){var t=a(),e=l(t,e);-1!==e&&(t.splice(e,1),s(t))}function i(e){return-1<l(a(),e)}function a(){for(var e=o.className.split(" "),t=u,n=[],r=0;r<e.length;r++)t(e[r])&&n.push(e[r]);return n}function s(e){var t=e.length;o.className=e.join(" "),r.length=t;for(var n=0;n<e.length;n++)r[n]=e[n];delete e[t]}}},{indexof:33}],30:[function(e,t,n){t.exports=function(e,t,n,r){if(r=(n=window.getComputedStyle)?n(e):e.currentStyle)return r[t.replace(/-(\w)/gi,function(e,t){return t.toUpperCase()})]}},{}],31:[function(e,t,n){var r=[],o=r.forEach,i=r.slice;t.exports=function(n){return o.call(i.call(arguments,1),function(e){if(e)for(var t in e)n[t]=e[t]}),n}},{}],32:[function(e,t,n){n.read=function(e,t,n,r,o){var i,a,s=8*o-r-1,l=(1<<s)-1,u=l>>1,c=-7,f=n?o-1:0,d=n?-1:1,o=e[t+f];for(f+=d,i=o&(1<<-c)-1,o>>=-c,c+=s;0<c;i=256*i+e[t+f],f+=d,c-=8);for(a=i&(1<<-c)-1,i>>=-c,c+=r;0<c;a=256*a+e[t+f],f+=d,c-=8);if(0===i)i=1-u;else{if(i===l)return a?NaN:1/0*(o?-1:1);a+=Math.pow(2,r),i-=u}return(o?-1:1)*a*Math.pow(2,i-r)},n.write=function(e,t,n,r,o,i){var a,s,l=8*i-o-1,u=(1<<l)-1,c=u>>1,f=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:i-1,p=r?1:-1,i=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(r=Math.pow(2,-a))<1&&(a--,r*=2),2<=(t+=1<=a+c?f/r:f*Math.pow(2,1-c))*r&&(a++,r/=2),u<=a+c?(s=0,a=u):1<=a+c?(s=(t*r-1)*Math.pow(2,o),a+=c):(s=t*Math.pow(2,c-1)*Math.pow(2,o),a=0));8<=o;e[n+d]=255&s,d+=p,s/=256,o-=8);for(a=a<<o|s,l+=o;0<l;e[n+d]=255&a,d+=p,a/=256,l-=8);e[n+d-p]|=128*i}},{}],33:[function(e,t,n){var r=[].indexOf;t.exports=function(e,t){if(r)return e.indexOf(t);for(var n=0;n<e.length;++n)if(e[n]===t)return n;return-1}},{}],34:[function(e,t,n){t.exports=function(e){var t;return!!e&&("[object Function]"===(t=r.call(e))||"function"==typeof e&&"[object RegExp]"!==t||"undefined"!=typeof window&&(e===window.setTimeout||e===window.alert||e===window.confirm||e===window.prompt))};var r=Object.prototype.toString},{}],35:[function(e,k,N){!function(_){!function(){var e=this,t="object"==typeof N&&N&&!N.nodeType&&N,n="object"==typeof k&&k&&!k.nodeType&&k,r="object"==typeof _&&_;r.global!==r&&r.window!==r&&r.self!==r||(e=r);var o,i,m=2147483647,v=36,y=26,a=38,s=700,l=/^xn--/,u=/[^\x20-\x7E]/,c=/[\x2E\u3002\uFF0E\uFF61]/g,f={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},d=v-1,b=Math.floor,w=String.fromCharCode;function E(e){throw new RangeError(f[e])}function p(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return r}function h(e,t){var n=e.split("@"),r="",n=(1<n.length&&(r=n[0]+"@",e=n[1]),(e=e.replace(c,".")).split("."));return r+p(n,t).join(".")}function C(e){for(var t,n,r=[],o=0,i=e.length;o<i;)55296<=(t=e.charCodeAt(o++))&&t<=56319&&o<i?56320==(64512&(n=e.charCodeAt(o++)))?r.push(((1023&t)<<10)+(1023&n)+65536):(r.push(t),o--):r.push(t);return r}function g(e){return p(e,function(e){var t="";return 65535<e&&(t+=w((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=w(e)}).join("")}function x(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function M(e,t,n){var r=0;for(e=n?b(e/s):e>>1,e+=b(e/t);d*y>>1<e;r+=v)e=b(e/d);return b(r+(d+1)*e/(e+a))}function T(e){var t,n,r,o,i,a,s,l=[],u=e.length,c=0,f=128,d=72,p=e.lastIndexOf("-");for(p<0&&(p=0),n=0;n<p;++n)128<=e.charCodeAt(n)&&E("not-basic"),l.push(e.charCodeAt(n));for(r=0<p?p+1:0;r<u;){for(o=c,i=1,a=v;u<=r&&E("invalid-input"),s=e.charCodeAt(r++),(v<=(s=s-48<10?s-22:s-65<26?s-65:s-97<26?s-97:v)||s>b((m-c)/i))&&E("overflow"),c+=s*i,!(s<(s=a<=d?1:d+y<=a?y:a-d));a+=v)i>b(m/(s=v-s))&&E("overflow"),i*=s;d=M(c-o,t=l.length+1,0==o),b(c/t)>m-f&&E("overflow"),f+=b(c/t),c%=t,l.splice(c++,0,f)}return g(l)}function A(e){for(var t,n,r,o,i,a,s,l,u,c,f=[],d=(e=C(e)).length,p=128,h=72,g=t=0;g<d;++g)(s=e[g])<128&&f.push(w(s));for(n=r=f.length,r&&f.push("-");n<d;){for(o=m,g=0;g<d;++g)p<=(s=e[g])&&s<o&&(o=s);for(o-p>b((m-t)/(l=n+1))&&E("overflow"),t+=(o-p)*l,p=o,g=0;g<d;++g)if((s=e[g])<p&&++t>m&&E("overflow"),s==p){for(i=t,a=v;!(i<(u=a<=h?1:h+y<=a?y:a-h));a+=v)f.push(w(x(u+(c=i-u)%(u=v-u),0))),i=b(c/u);f.push(w(x(i,0))),h=M(t,l,n==r),t=0,++n}++t,++p}return f.join("")}if(o={version:"1.4.1",ucs2:{decode:C,encode:g},decode:T,encode:A,toASCII:function(e){return h(e,function(e){return u.test(e)?"xn--"+A(e):e})},toUnicode:function(e){return h(e,function(e){return l.test(e)?T(e.slice(4).toLowerCase()):e})}},t&&n)if(k.exports==t)n.exports=o;else for(i in o)o.hasOwnProperty(i)&&(t[i]=o[i]);else e.punycode=o}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],36:[function(e,t,n){!function(e){void 0!==t&&t.exports?t.exports=e():this.$script=e()}(function(){var u,o,i=document,a=i.getElementsByTagName("head")[0],s=!1,c="push",l="readyState",f="onreadystatechange",d={},p={},h={};function g(e,t){for(var n=0,r=e.length;n<r;++n)if(!t(e[n]))return s;return 1}function m(e,t){g(e,function(e){return t(e),1})}function v(e,t,n){e=e[c]?e:[e];var r=t&&t.call,o=r?t:n,i=r?e.join(""):t,a=e.length;function s(e){return e.call?e():d[e]}function l(){if(!--a)for(var e in d[i]=1,o&&o(),p)g(e.split("|"),s)&&(m(p[e],s),p[e]=[])}return setTimeout(function(){m(e,function e(t,n){return null===t?l():(n||/^https?:\/\//.test(t)||!u||(t=-1===t.indexOf(".js")?u+t+".js":u+t),h[t]?(i&&(i,0),2==h[t]?l():setTimeout(function(){e(t,!0)},0)):(h[t]=1,i&&(i,0),void y(t,l)))})},0),v}function y(e,t){var n,r=i.createElement("script");r.onload=r.onerror=r[f]=function(){r[l]&&!/^c|loade/.test(r[l])||n||(r.onload=r[f]=null,n=1,h[e]=2,t())},r.async=1,r.src=o?e+(-1===e.indexOf("?")?"?":"&")+o:e,a.insertBefore(r,a.lastChild)}return v.get=y,v.order=function(n,r,o){!function e(t){t=n.shift(),n.length?v(t,e):v(t,r,o)}()},v.path=function(e){u=e},v.urlArgs=function(e){o=e},v.ready=function(e,t,n){e=e[c]?e:[e];var r=[];return m(e,function(e){d[e]||r[c](e)}),g(e,function(e){return d[e]})?t():(e=e.join("|"),p[e]=p[e]||[],p[e][c](t),n&&n(r)),v},v.done=function(e){v([null],e)},v})},{}]},{},[25])(25)});
     6!function(i){if(!document.createEvent){function e(e){return{enumerable:!0,writable:!0,configurable:!0,value:e}}var t,s,l,u,o=!0,n=!1,a="onreadystatechange",c="DOMContentLoaded",f="__IE8__"+Math.random(),d=Object.defineProperty||function(e,t,n){e[t]=n.value},r=Object.defineProperties||function(t,e){for(var n in e)if(h.call(e,n))try{d(t,n,e[n])}catch(e){i.console&&console.log(n+" failed on object:",t,e.message)}},p=Object.getOwnPropertyDescriptor,h=Object.prototype.hasOwnProperty,g=i.Element.prototype,m=i.Text.prototype,P=/^[a-z]+$/,v=/loaded|complete/,y={},b=document.createElement("div"),w=document.documentElement,z=w.removeAttribute,U=w.setAttribute,E=(A(i.HTMLCommentElement.prototype,g,"nodeValue"),A(i.HTMLScriptElement.prototype,null,"text"),A(m,null,"nodeValue"),A(i.HTMLTitleElement.prototype,null,"text"),d(i.HTMLStyleElement.prototype,"textContent",(t=p(i.CSSStyleSheet.prototype,"cssText"),T(function(){return t.get.call(this.styleSheet)},function(e){t.set.call(this.styleSheet,e)}))),/\b\s*alpha\s*\(\s*opacity\s*=\s*(\d+)\s*\)/),B=(d(i.CSSStyleDeclaration.prototype,"opacity",{get:function(){var e=this.filter.match(E);return e?(e[1]/100).toString():""},set:function(e){var t=!(this.zoom=1);e=e<1?" alpha(opacity="+Math.round(100*e)+")":"",this.filter=this.filter.replace(E,function(){return t=!0,e}),!t&&e&&(this.filter+=e)}}),r(g,{textContent:{get:k,set:S},firstElementChild:{get:function(){for(var e=this.childNodes||[],t=0,n=e.length;t<n;t++)if(1==e[t].nodeType)return e[t]}},lastElementChild:{get:function(){for(var e=this.childNodes||[],t=e.length;t--;)if(1==e[t].nodeType)return e[t]}},oninput:{get:function(){return this._oninput||null},set:function(e){this._oninput&&(this.removeEventListener("input",this._oninput),this._oninput=e)&&this.addEventListener("input",e)}},previousElementSibling:{get:function(){for(var e=this.previousSibling;e&&1!=e.nodeType;)e=e.previousSibling;return e}},nextElementSibling:{get:function(){for(var e=this.nextSibling;e&&1!=e.nodeType;)e=e.nextSibling;return e}},childElementCount:{get:function(){for(var e=0,t=this.childNodes||[],n=t.length;n--;e+=1==t[n].nodeType);return e}},addEventListener:e(function(e,t,n){if("function"==typeof t||"object"==typeof t){var r,o,i=this,a="on"+e,s=i[f]||d(i,f,{value:{}})[f],s=s[a]||(s[a]={}),l=s.h||(s.h=[]);if(!h.call(s,"w")){if(s.w=function(e){return e[f]||M(i,I(0,e),l,!1)},!h.call(y,a))if(P.test(e)){try{(r=document.createEventObject())[f]=!0,9!=i.nodeType&&(null==i.parentNode&&b.appendChild(i),o=i.getAttribute(a))&&z.call(i,a),i.fireEvent(a,r),y[a]=!0}catch(e){for(y[a]=!1;b.hasChildNodes();)b.removeChild(b.firstChild)}null!=o&&U.call(i,a,o)}else y[a]=!1;(s.n=y[a])&&i.attachEvent(a,s.w)}_(l,t)<0&&l[n?"unshift":"push"](t),"input"===e&&i.attachEvent("onkeyup",R)}}),dispatchEvent:e(function(e){var t=this,n="on"+e.type,r=t[f],r=r&&r[n],o=!!r;return e.target||(e.target=t),o?r.n?t.fireEvent(n,e):M(t,e,r.h,!0):(o=t.parentNode)&&o.dispatchEvent(e),!e.defaultPrevented}),removeEventListener:e(function(e,t,n){var r;"function"!=typeof t&&"object"!=typeof t||-1<(r=(e=(r=(r=this[f])&&r["on"+e])&&r.h)?_(e,t):-1)&&e.splice(r,1)})}),r(m,{addEventListener:e(g.addEventListener),dispatchEvent:e(g.dispatchEvent),removeEventListener:e(g.removeEventListener)}),r(i.XMLHttpRequest.prototype,{addEventListener:e(function(t,e,n){var r=this,o="on"+t,i=r[f]||d(r,f,{value:{}})[f],i=i[o]||(i[o]={}),i=i.h||(i.h=[]);_(i,e)<0&&(r[o]||(r[o]=function(){var e=document.createEvent("Event");e.initEvent(t,!0,!0),r.dispatchEvent(e)}),i[n?"unshift":"push"](e))}),dispatchEvent:e(function(e){var t="on"+e.type,n=this[f],n=n&&n[t];return!!n&&(n.n?this.fireEvent(t,e):M(this,e,n.h,!0))}),removeEventListener:e(g.removeEventListener)}),p(Event.prototype,"button").get),m=(r(i.Event.prototype,{bubbles:e(!0),cancelable:e(!0),preventDefault:e(function(){this.cancelable&&(this.returnValue=!1)}),stopPropagation:e(function(){this.stoppedPropagation=!0,this.cancelBubble=!0}),stopImmediatePropagation:e(function(){this.stoppedImmediatePropagation=!0,this.stopPropagation()}),initEvent:e(function(e,t,n){this.type=e,this.bubbles=!!t,this.cancelable=!!n,this.bubbles||this.stopPropagation()}),pageX:{get:function(){return this._pageX||(this._pageX=this.clientX+i.scrollX-(w.clientLeft||0))}},pageY:{get:function(){return this._pageY||(this._pageY=this.clientY+i.scrollY-(w.clientTop||0))}},which:{get:function(){return this.keyCode||(isNaN(this.button)?void 0:this.button+1)}},charCode:{get:function(){return this.keyCode&&"keypress"==this.type?this.keyCode:0}},buttons:{get:function(){return B.call(this)}},button:{get:function(){var e=this.buttons;return 1&e?0:2&e?2:4&e?1:void 0}},defaultPrevented:{get:function(){var e=this.returnValue;return!(void 0===e||e)}},relatedTarget:{get:function(){var e=this.type;return"mouseover"===e?this.fromElement:"mouseout"===e?this.toElement:null}}}),r(i.HTMLDocument.prototype,{defaultView:{get:function(){return this.parentWindow}},textContent:{get:function(){return 11===this.nodeType?k.call(this):null},set:function(e){11===this.nodeType&&S.call(this,e)}},addEventListener:e(function(e,t,n){var r=this;g.addEventListener.call(r,e,t,n),o&&e===c&&!v.test(r.readyState)&&(o=!1,r.attachEvent(a,N),i==top)&&function t(e){try{r.documentElement.doScroll("left"),N()}catch(e){setTimeout(t,50)}}()}),dispatchEvent:e(g.dispatchEvent),removeEventListener:e(g.removeEventListener),createEvent:e(function(e){if("Event"!==e)throw new Error("unsupported "+e);return(e=document.createEventObject()).timeStamp=(new Date).getTime(),e})}),r(i.Window.prototype,{getComputedStyle:e((s=/^(?:[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|))(?!px)[a-z%]+$/,l=/^(top|right|bottom|left)$/,u=/\-([a-z])/g,D.prototype.getPropertyValue=function(e){var t,n,r,o=this._,i=o.style,a=o.currentStyle,o=o.runtimeStyle;return"opacity"==e?i.opacity||"1":(t=(a||i)[e=("float"===e?"style-float":e).replace(u,Y)],s.test(t)&&!l.test(e)&&(n=i.left,(r=o&&o.left)&&(o.left=a.left),i.left="fontSize"===e?"1em":t,t=i.pixelLeft+"px",i.left=n,r)&&(o.left=r),null==t?t:t+""||"auto")},F.prototype.getPropertyValue=function(){return null},function(e,t){return t?new F:new D(e)})),addEventListener:e(function(e,t,n){var r,o=i,e="on"+e;o[e]||(o[e]=function(e){return M(o,I(0,e),r,!1)&&void 0}),_(r=o[e][f]||(o[e][f]=[]),t)<0&&r[n?"unshift":"push"](t)}),dispatchEvent:e(function(e){var t=i["on"+e.type];return!t||!1!==t.call(i,e)&&!e.defaultPrevented}),removeEventListener:e(function(e,t,n){e=(i["on"+e]||Object)[f],t=e?_(e,t):-1;-1<t&&e.splice(t,1)}),pageXOffset:{get:L("scrollLeft")},pageYOffset:{get:L("scrollTop")},scrollX:{get:L("scrollLeft")},scrollY:{get:L("scrollTop")},innerWidth:{get:L("clientWidth")},innerHeight:{get:L("clientHeight")}}),i.HTMLElement=i.Element,document.styleSheets),C=["header","nav","section","article","aside","footer"],x=void 0;for(x=0;x<C.length;x++)document.createElement(C[x]);m.length||document.createStyleSheet(""),m[0].addRule(C.join(","),"display:block;"),document.createRange||(document.createRange=function(){return new O},(r=O.prototype).cloneContents=function(){for(var e=this._start.ownerDocument.createDocumentFragment(),t=j(this._start,this._end),n=0,r=t.length;n<r;n++)e.appendChild(t[n].cloneNode(!0));return e},r.cloneRange=function(){var e=new O;return e._start=this._start,e._end=this._end,e},r.deleteContents=function(){for(var e=this._start.parentNode,t=j(this._start,this._end),n=0,r=t.length;n<r;n++)e.removeChild(t[n])},r.extractContents=function(){for(var e=this._start.ownerDocument.createDocumentFragment(),t=j(this._start,this._end),n=0,r=t.length;n<r;n++)e.appendChild(t[n]);return e},r.setEndAfter=function(e){this._end=e},r.setEndBefore=function(e){this._end=e.previousSibling},r.setStartAfter=function(e){this._start=e.nextSibling},r.setStartBefore=function(e){this._start=e})}function M(e,t,n,r){for(var o,i=n.slice(),a=((n=t).currentTarget=e,n.eventPhase=n.target===n.currentTarget?2:3,n),s=0,l=i.length;s<l&&("object"==typeof(o=i[s])?"function"==typeof o.handleEvent&&o.handleEvent(a):o.call(e,a),!a.stoppedImmediatePropagation);s++);return t=!a.stoppedPropagation,r&&t&&e.parentNode?e.parentNode.dispatchEvent(a):!a.defaultPrevented}function T(e,t){return{configurable:!0,get:e,set:t}}function A(e,t,n){var r=p(t||e,n);d(e,"textContent",T(function(){return r.get.call(this)},function(e){r.set.call(this,e)}))}function _(e,t){for(var n=e.length;n--&&e[n]!==t;);return n}function k(){if("BR"===this.tagName)return"\n";for(var e=this.firstChild,t=[];e;)8!==e.nodeType&&7!==e.nodeType&&t.push(e.textContent),e=e.nextSibling;return t.join("")}function R(e){var t=document.createEvent("Event");t.initEvent("input",!0,!0),(e.srcElement||e.fromElement||document).dispatchEvent(t)}function N(e){!n&&v.test(document.readyState)&&(n=!n,document.detachEvent(a,N),(e=document.createEvent("Event")).initEvent(c,!0,!0),document.dispatchEvent(e))}function L(e){return function(){return w[e]||document.body&&document.body[e]||0}}function S(e){for(var t;t=this.lastChild;)this.removeChild(t);null!=e&&this.appendChild(document.createTextNode(e))}function I(e,t){return(t=t||i.event).target||(t.target=t.srcElement||t.fromElement||document),t.timeStamp||(t.timeStamp=(new Date).getTime()),t}function Y(e,t){return t.toUpperCase()}function D(e){this._=e}function F(){}function j(e,t){for(var n=[e];e!==t;)n.push(e=e.nextSibling);return n}function O(){}}(this.window||global),function(e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).freedomplayer=e()}(function(){return function r(o,i,a){function s(t,e){if(!i[t]){if(!o[t]){var n="function"==typeof require&&require;if(!e&&n)return n(t,!0);if(l)return l(t,!0);throw(e=new Error("Cannot find module '"+t+"'")).code="MODULE_NOT_FOUND",e}n=i[t]={exports:{}},o[t][0].call(n.exports,function(e){return s(o[t][1][e]||e)},n,n.exports,r,o,i,a)}return i[t].exports}for(var l="function"==typeof require&&require,e=0;e<a.length;e++)s(a[e]);return s}({1:[function(e,t,n){"use strict";var i=t.exports={},r=e("class-list"),a=window.jQuery,o=e("punycode"),s=e("computed-style");function l(e){return e.replace(/-[a-z]/g,function(e){return e[1].toUpperCase()})}i.noop=function(){},i.identity=function(e){return e},i.removeNode=function(e){e&&e.parentNode&&e.parentNode.removeChild(e)},i.find=function(e,t){return a?a(e,t).toArray():(t=t||document,Array.prototype.map.call(t.querySelectorAll(e),function(e){return e}))},i.text=function(e,t){e["innerText"in e?"innerText":"textContent"]=t},i.findDirect=function(e,t){return i.find(e,t).filter(function(e){return e.parentNode===t})},i.hasClass=function(e,t){return"string"==typeof e.className&&r(e).contains(t)},i.isSameDomain=function(e){var t=window.location,e=i.createElement("a",{href:e});return t.hostname===e.hostname&&t.protocol===e.protocol&&t.port===e.port},i.css=function(t,n,e){return"object"==typeof n?Object.keys(n).forEach(function(e){i.css(t,e,n[e])}):void 0!==e?""===e?t?t.style.removeProperty(n):void 0:t?t.style.setProperty(n,e):void 0:t?s(t,n):void 0},i.createElement=function(t,n,r){try{var e,o=document.createElement(t);for(e in n)n.hasOwnProperty(e)&&("css"===e?i.css(o,n[e]):i.attr(o,e,n[e]));return r&&(o.innerHTML=r),o}catch(e){if(a)return a("<"+t+">"+r+"</"+t+">").attr(n)[0];throw e}},i.toggleClass=function(e,t,n){e&&(e=r(e),void 0===n?e.toggle(t):n?e.add(t):e.remove(t))},i.addClass=function(e,t){return i.toggleClass(e,t,!0)},i.removeClass=function(e,t){return i.toggleClass(e,t,!1)},i.append=function(e,t){return e.appendChild(t),e},i.appendTo=function(e,t){return i.append(t,e),e},i.prepend=function(e,t){e.insertBefore(t,e.firstChild)},i.insertAfter=function(e,t,n){t==i.lastChild(e)&&e.appendChild(n);t=Array.prototype.indexOf.call(e.children,t);e.insertBefore(n,e.children[t+1])},i.html=function(e,t){(e=e.length?e:[e]).forEach(function(e){e.innerHTML=t})},i.attr=function(t,n,r){if(i.hasOwnOrPrototypeProperty(t,n="class"===n?"className":n))try{t[n]=r}catch(e){if(!a)throw e;a(t).attr(n,r)}else!1===r?t.removeAttribute(n):t.setAttribute(n,r);return t},i.prop=function(e,t,n){if(void 0===n)return e&&e[t];e[t]=n},i.offset=function(e){var t=e.getBoundingClientRect();return t=e.offsetWidth/e.offsetHeight>e.clientWidth/e.clientHeight?{left:100*t.left,right:100*t.right,top:100*t.top,bottom:100*t.bottom,width:100*t.width,height:100*t.height}:t},i.width=function(e,t){return t?e.style.width=(""+t).replace(/px$/,"")+"px":void 0===(t=i.offset(e).width)?e.offsetWidth:t},i.height=function(e,t){return t?e.style.height=(""+t).replace(/px$/,"")+"px":void 0===(t=i.offset(e).height)?e.offsetHeight:t},i.lastChild=function(e){return e.children[e.children.length-1]},i.hasParent=function(e,t){for(var n=e.parentElement;n;){if("string"!=typeof t){if(n===t)return!0}else if(i.matches(n,t))return!0;n=n.parentElement}return!1},i.createAbsoluteUrl=function(e){return i.createElement("a",{href:e}).href},i.xhrGet=function(e,t,n){var r=new XMLHttpRequest;r.onreadystatechange=function(){if(4===this.readyState)return 400<=this.status?n():void t(this.responseText)},r.open("get",e,!0),r.send()},i.pick=function(t,e){var n={};return e.forEach(function(e){t.hasOwnProperty(e)&&(n[e]=t[e])}),n},i.hostname=function(e){return o.toUnicode(e||window.location.hostname)},i.browser={webkit:"WebkitAppearance"in document.documentElement.style},i.getPrototype=function(e){return Object.getPrototypeOf?Object.getPrototypeOf(e):e.__proto__},i.hasOwnOrPrototypeProperty=function(e,t){for(var n=e;n;){if(Object.prototype.hasOwnProperty.call(n,t))return!0;n=i.getPrototype(n)}return!1},i.matches=function(e,t){var n=Element.prototype;return(n.matches||n.matchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector||n.webkitMatchesSelector||function(e){for(var t=(this.document||this.ownerDocument).querySelectorAll(e),n=0;t[n]&&t[n]!==this;)n++;return!!t[n]}).call(e,t)},void 0!==(t=window.CSSStyleDeclaration.prototype).setAttribute&&(t.setProperty=function(e,t){return this.setAttribute(l(e),String(t))},t.getPropertyValue=function(e){return this.getAttribute(l(e))||null},t.removeProperty=function(e){var t=this.getPropertyValue(e);return this.removeAttribute(l(e)),t})},{"class-list":29,"computed-style":30,punycode:35}],2:[function(e,t,n){"use strict";var a,h=e("../freedomplayer"),r=h.support,g=h.common,m=h.bean,o=e("./html5-factory");function s(e){return void 0!==window.Hls&&/mpegurl/.test(e)&&window.Hls.isSupported()}(a=function(c,i){var f,d,p=window.Hls;return o("hlsjs-lite",c,i,s,function(s,l,e){function r(e){if(c.debug("hlsjs - recovery"),g.removeClass(i,"is-paused"),g.addClass(i,"is-seeking"),m.one(l,"seeked",function(){l.paused&&(g.removeClass(i,"is-poster"),c.poster=!1,l.play()),g.removeClass(i,"is-seeking")}),e)return u.startLoad();e=performance.now(),!t||3e3<e-t?(t=performance.now(),u.recoverMediaError()):(!n||3e3<e-n)&&(n=performance.now(),u.swapAudioCodec(),u.recoverMediaError())}var t,n,o=h.extend({startFragPrefetch:l.preload,recoverMediaError:!0},c.conf.hlsjs,s.hlsjs),u=(c.engine.hls&&c.engine.hls.destroy(),c.engine.hls=new p(o));return a.extensions.forEach(function(e){e({hls:u,player:c,root:i,videoTag:l})}),window.FV_Player_Pro&&window.fv_player_video_parse&&!i.getAttribute("fvhkey")&&FV_Player_Pro.is_dynamic(s.src)||u.loadSource(s.src),e.resume=function(){c.live&&!c.dvr&&(l.currentTime=u.liveSyncPosition||0),l.play()},!(e.seek=function(t){try{c.live||c.dvr?l.currentTime=Math.min(t,u.liveSyncPosition||l.duration-o.livePositionOffset):l.currentTime=t}catch(e){c.debug("Failed to seek to ",t,e)}})===o.bufferWhilePaused&&c.on("pause",function(){u.stopLoad(),c.one("resume",function(){u.startLoad()})}),c.on("quality",function(e,t,n){u.nextLevel=f=n}),u.on(p.Events.MANIFEST_PARSED,function(e,t){var r,o=s.hlsQualities||c.conf.hlsQualities,i={},n=t.levels;if(!1===o)return u.attachMedia(l);if("drive"===o)switch(n.length){case 4:r=[1,2,3];break;case 5:r=[1,2,3,4];break;case 6:r=[1,3,4,5];break;case 7:r=[1,3,5,6];break;case 8:r=[1,3,6,7];break;default:r=n.length<3||n[0].height&&n[2].height&&n[0].height===n[2].height?[]:[1,2]}s.qualities=[{value:-1,label:"Auto"}],Array.isArray(o)&&((t=o.find(function(e){return-1===e||e.level&&-1===e.level}))?s.qualities[0].label=("number"!=typeof t?t:s.qualities[0]).label:s.qualities=[],r=o.map(function(e){return void 0!==e.level&&(i[e.level]=e.label),void 0!==e.level?e.level:e}));var a=-2,t=(s.qualities=s.qualities.concat(n.map(function(e,t){var n;return(!r||-1!==r.indexOf(t))&&(n=i[t]||Math.min(e.width,e.height)+"p",i[t]||"drive"===o||(n+=" ("+Math.round(e.bitrate/1e3)+"k)"),t===f&&(a=t),{value:t,label:n,width:e.width,height:e.height})})).filter(g.identity),c.one("ready",function(){1<s.qualities.length&&(s.width=s.qualities[s.qualities.length-1].width,s.height=s.qualities[s.qualities.length-1].height)}),s.quality=-2===a?s.qualities[0].value||-1:a);t!==u.currentLevel&&(u.currentLevel=t),u.on(p.Events.LEVEL_LOADED,function(){c.preload&&c.trigger("ready",[c,s])}),u.attachMedia(l),d&&s.src!==d&&l.play(),d=s.src}),u.on(p.Events.ERROR,function(e,t){var n;t.fatal&&(o.recoverNetworkError&&t.type===p.ErrorTypes.NETWORK_ERROR?r(!0):o.recoverMediaError&&t.type===p.ErrorTypes.MEDIA_ERROR?r(!1):(n=5,t.type===p.ErrorTypes.NETWORK_ERROR&&(n=2),t.type===p.ErrorTypes.MEDIA_ERROR&&(n=3),u.destroy(),c.trigger("error",[c,{code:n}])))}),c.one("unload",function(){u.destroy()}),{handlers:{error:function(e,t){t=t.error&&t.error.code;return o.recoverMediaError&&3===t||!t?(e.preventDefault(),r(!1),!0):o.recoverNetworkError&&2===t?(e.preventDefault(),r(!0),!0):void 0}}}})}).canPlay=function(e,t){return!(!1===t.hlsjs||t.clip&&!1===t.clip.hlsjs)&&!(r.browser.safari&&!(t.clip&&t.clip.hlsjs||t.hlsjs||{}).safari)&&h.support.video&&s(e)},a.engineName="hlsjs-lite",a.plugin=function(e){a.extensions.push(e)},a.extensions=[],h.engines.push(a)},{"../freedomplayer":24,"./html5-factory":3}],3:[function(e,t,n){var e=e("../freedomplayer"),g=e.common,m=e.support,v=e.bean,y=e.extend,r=m.browser.safari&&!m.iOS,b={ended:"finish",pause:"pause",play:"resume",timeupdate:"progress",volumechange:"volume",ratechange:"speed",seeked:"seek",loadedmetadata:r?0:"ready",canplaythrough:r?"ready":0,durationchange:"ready",error:"error",dataunavailable:"error",webkitendfullscreen:!e.support.inlineVideo&&"unload",progress:"buffer"};function w(e,t){return t=t||100,Math.round(e*t)/t}t.exports=function(e,d,p,h,s){var t,l,u,c=g.findDirect("video",p)[0]||g.find(".fp-player > video",p)[0],f=d.conf;return u={engineName:e,pick:function(e){e=m.video&&e.filter(function(e){return h(e.type)})[0];if(e)return"string"==typeof e.src&&(e.src=g.createAbsoluteUrl(e.src)),e},load:function(e){if(window.FV_Player_Pro&&window.fv_player_video_parse&&!p.getAttribute("fvhkey")&&FV_Player_Pro.is_dynamic(e.src)){if(fv_player_video_parse(e,this,d,p),window.fv_player_pro_dammit[p.id])return!1;m.inlineVideo&&(window.fv_player_pro_dammit[p.id]=!0)}var t,n,r,o,i=g.find(".fp-player",p)[0],a=!1,i=(c||(c=document.createElement("video"),g.prepend(i,c),c.autoplay=!!f.splash,a=!0),g.addClass(c,"fp-engine"),g.find("track",c).forEach(g.removeNode),c.preload="none",f.nativesubtitles||g.attr(c,"crossorigin",!1),f.disableInline||(c.setAttribute("webkit-playsinline","true"),c.setAttribute("playsinline","true")),m.inlineVideo||g.css(c,{position:"absolute",top:"-9999em"}),f.video_cross_origin?g.attr(c,"crossorigin","anonymous"):g.attr(c,"crossorigin",!1),m.subtitles&&f.nativesubtitles&&e.subtitles&&e.subtitles.length&&(g.addClass(c,"native-subtitles"),i=e.subtitles,t=function(e){var t=c.textTracks;t.length&&(t[0].mode=e)},(!m.iOS||parseInt(m.iOS.version)<18)&&i.some(function(e){return!g.isSameDomain(e.src)})&&g.attr(c,"crossorigin","anonymous"),"function"==typeof c.textTracks.addEventListener&&c.textTracks.addEventListener("addtrack",function(){t("disabled"),t("showing")}),i.forEach(function(e){c.appendChild(g.createElement("track",{kind:"subtitles",srclang:e.srclang||"en",label:e.label||"en",src:e.src,default:e.default}))})),v.off(c,"timeupdate",g.noop),v.on(c,"timeupdate",g.noop),g.prop(c,"loop",!1),d.off(".loophack"),(e.loop||f.loop)&&d.on("finish.loophack",function(){d.resume(),setTimeout(function(){var e=g.find(".fp-play",p);e&&e[0]&&g.removeClass(e[0],"fp-visible")},0)}),void 0!==l&&(c.volume=l),s(e,c,u));(f.autoplay||f.splash||e.autoplay)&&(d.debug("Autoplay / Splash setup, try to start video"),c.load(),n=function(){try{var t,e=c.play();e&&e.catch&&(t=function(e){if("AbortError"===e.name&&20===e.code)return a?void 0:c.play().catch(t);if(f.mutedAutoplay)return d.debug("Play errored, trying muted",e),d.mute(!0,!0),c.play();throw new Error("Unable to autoplay")},e.catch(t).catch(function(){f.autoplay=!1,d.mute(!1,!0),d.trigger("stop",[d]),g.addClass(p,"autoplay-failed")}))}catch(e){d.debug("play() error thrown",e)}},0<c.readyState?n():v.one(c,"canplay",n)),u._listeners=function(l,e,u,c){var t,n,f=p.getAttribute("data-freedomplayer-instance-id");if(!l.listeners||!l.listeners.hasOwnProperty(f))return(l.listeners||(l.listeners={}))[f]=u,v.on(e,"error",function(e){try{h(e.target.getAttribute("type"))&&d.trigger("error",[d,{code:4,video:y(u,{src:l.src,url:l.src})}])}catch(e){}}),d.on("shutdown",function(){v.off(e),v.off(l,".dvrhack"),d.off(".loophack")}),t={},n=function(e){"metadata"===e.kind&&(e.mode="hidden",e.addEventListener("cuechange",function(){e.activeCues.length&&d.trigger("metadata",[d,e.activeCues[0].value])},!1))},l&&l.textTracks&&l.textTracks.length&&Array.prototype.forEach.call(l.textTracks,n),l&&l.textTracks&&"function"==typeof l.textTracks.addEventListener&&l.textTracks.addEventListener("addtrack",function(e){n(e.track)},!1),(d.conf.dvr||d.dvr||u.dvr)&&v.on(l,"progress.dvrhack",function(){l.seekable.length&&(d.video.duration=l.seekable.end(null),d.video.seekOffset=l.seekable.start(null),d.trigger("dvrwindow",[d,{start:l.seekable.start(null),end:l.seekable.end(null)}]),l.currentTime>=l.seekable.start(null)||(l.currentTime=l.seekable.start(null)))}),Object.keys(b).forEach(function(a){var e,s=b[a];(s="webkitendfullscreen"===a&&d.conf.disableInline?"unload":s)&&(p.addEventListener(a,e=function(e){if(u=l.listeners[f],e.target&&g.hasClass(e.target,"fp-engine")){/progress/.test(s)||d.debug(a,"->",s,e);function t(e){d.trigger(e||s,[d,o])}var n,r,o;if((d.ready||/ready|error/.test(s))&&s&&g.find("video",p).length)if("unload"===s)d.unload();else{switch(s){case"ready":if(d.ready&&(d.live||d.dvr)&&(d.video.duration=l.duration),d.ready)return d.debug("Player already ready, not sending duplicate ready event");if(!(l.duration&&l.duration!==1/0||d.live))return(m.browser.safari||m.iOS)&&l.type&&l.type.match(/application\/x-mpegurl/i)&&l.addEventListener("progress",function(){l.addEventListener("progress",function(){l.ios_live_stream_ready_forced||d.ready||(l.ios_live_stream_ready_forced=!0,d.debug("HLS video continues buffering on iOS, send ready event"),(o=y(u,{duration:l.duration<Number.MAX_VALUE?l.duration:0,width:l.videoWidth,height:l.videoHeight,url:l.currentSrc})).seekable=o.duration,g.addClass(p,"is-live"),d.live=!0,t())})}),d.debug("No duration and VOD setup, not sending ready event");if((o=y(u,{duration:l.duration<Number.MAX_VALUE?l.duration:0,width:l.videoWidth,height:l.videoHeight,url:l.currentSrc})).seekable=o.duration,d.debug("Ready: ",o),d.live||o.duration||m.hlsDuration||"loadeddata"!==a)break;return l.addEventListener("durationchange",n=function(){o.duration=l.duration;try{o.seekable=l.seekable&&l.seekable.end(null)}catch(e){}t(),l.removeEventListener("durationchange",n),g.toggleClass(p,"is-live",!1)}),void l.addEventListener("timeupdate",r=function(){d.ready||l.duration||(o.duration=0,g.addClass(p,"is-live"),t()),l.removeEventListener("timeupdate",r)});case"progress":case"seek":if(0<l.currentTime||d.live)o=Math.max(l.currentTime,0);else if("seek"===s&&0===l.currentTime)o=0;else if("progress"==s)return;break;case"buffer":o=[];for(var i=0;i<l.buffered.length;i++)o.push({start:l.buffered.start(i),end:l.buffered.end(i)});l.buffered.length&&l.buffered.end(null)===l.duration&&t("buffered");break;case"speed":o=w(l.playbackRate);break;case"volume":o=w(l.muted?0:l.volume);break;case"error":if(window.FV_Player_Pro&&FV_Player_Pro.is_dynamic(l.src)){p.classList.remove("is-error");try{l.error=l.loading=!1}catch(e){}return p.classList.remove("is-error"),!1}l.src.match(/fv-player-mpd/)||u.manifest||u.src.match(/player.vimeo.com\/.*?\.mpd/)?(p.classList.remove("is-error"),s="dash-soft-error"):!h("application/x-mpegurl")&&l.src.match(/m3u8/)&&(p.classList.remove("is-error"),s="m3u8-soft-error");try{if(c&&c.handlers&&c.handlers.error)if(c.handlers.error(e,l))return;(o=(e.srcElement||e.originalTarget).error).video=y(u,{src:l.src,url:l.src})}catch(e){return}}t()}else"resume"===s&&d.one("ready",function(){setTimeout(function(){t()})})}},!0),t[a]||(t[a]=[]),t[a].push(e))}),t;l.listeners[f]=u}(c,g.find("source",c).concat(c),e,i)||u._listeners,f.autoplay||f.splash||e.autoplay||(r="scroll.preloadviewport-"+p.getAttribute("data-freedomplayer-instance-id"),o=function(){!function(e){e=e.getBoundingClientRect();return 0<=e.top&&0<=e.left&&e.bottom<=(window.innerHeight||document.documentElement.clientHeight)+e.height&&e.right<=(window.innerWidth||document.documentElement.clientWidth)+e.width}(p)||(m.preloadMetadata?c.preload="metadata":c.load(),v.off(document,r))},v.off(document,r),v.on(document,r,function(){window.requestAnimationFrame(o)}),o())},mute:function(e){c.muted=!!e,d.trigger("mute",[d,e]),d.trigger("volume",[d,e?0:c.volume])},pause:function(){c.pause()},resume:function(){c.play()},speed:function(e){c.playbackRate=e},seek:function(e){var t=c.paused||d.finished;try{c.currentTime=e,t&&v.one(c,"seeked",function(){c.pause()})}catch(e){}},volume:function(e){l=e,c&&(c.volume=e)&&u.mute(!1)},unload:function(){v.off(document,"scroll.preloadviewport"),g.find("video.fp-engine",p).forEach(function(e){"MediaSource"in window?e.src=URL.createObjectURL(new MediaSource):e.src="",g.removeNode(e)}),t=clearInterval(t);var e=p.getAttribute("data-freedomplayer-instance-id");c&&c.listeners&&c.listeners[e]&&delete c.listeners[e],c=0,u._listeners&&Object.keys(u._listeners).forEach(function(t){u._listeners[t].forEach(function(e){p.removeEventListener(t,e,!0)})})}}}},{"../freedomplayer":24}],4:[function(e,t,n){"use strict";var r=e("../freedomplayer"),o=r.common,i=e("./html5-factory"),a=document.createElement("video");function s(e){var t;return/^(video|application)/i.test(e)||(t=e,e=/mpegurl/i.test(t)?"application/x-mpegurl":t),!!a.canPlayType(e).replace("no","")}(e=function(e,t){return i("html5",e,t,s,function(e,t){t.currentSrc!==e.src?(o.find("source",t).forEach(o.removeNode),t.src=e.src,t.type=e.type):e.autoplay&&t.load()})}).canPlay=function(e){return r.support.video&&s(e)},e.engineName="html5",r.engines.push(e)},{"../freedomplayer":24,"./html5-factory":3}],5:[function(e,t,n){"use strict";var o=e("../freedomplayer"),i=e("../common"),a=e("bean");o(function(n,r){(n.conf.airplay||n.conf.skin_preview)&&(n.on("ready",function(){var t=i.find("video.fp-engine",r)[0];t&&(t.setAttribute("x-webkit-airplay","allow"),window.WebKitPlaybackTargetAvailabilityEvent)&&(t.addEventListener("webkitplaybacktargetavailabilitychanged",function(e){"available"!==e.availability&&!o.airplay_was_available||(o.airplay_was_available=!0,n.createAirplayButton())}),t.addEventListener("webkitcurrentplaybacktargetiswirelesschanged",function(){var e=i.find(".fp-airplay",r)[0];e&&i.toggleClass(e,"fp-active",t.webkitCurrentPlaybackTargetIsWireless)}),n.one("progress",function(){var e=i.find(".fp-airplay",r)[0];e&&("html5"==n.engine.engineName?e.style.display="inline-block":e.style.display="none")}))}),a.on(r,n.touch_events(),".fp-airplay",function(e){e.preventDefault(),n.conf.skin_preview?alert("This is just an admin preview for the Airplay button. Normally it will only show up when a video is playing with Safari and the video supports it."):i.find("video.fp-engine",r)[0].webkitShowPlaybackTargetPicker()}),n.createAirplayButton=function(){i.find(".fp-airplay",r).forEach(i.removeNode);var e=i.createElement("a",{class:"fp-airplay fp-icon",title:"Play on AirPlay device"}),t=(e.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" xmlns:xlink="http://www.w3.org/1999/xlink"><path d="M116.364 477.091h279.272L256 337.455z"/><path d="M465.455 34.909H46.545C20.945 34.909 0 55.855 0 81.455v279.273c0 25.6 20.945 46.545 46.545 46.545h93.091v-46.545H46.545V81.455h418.909v279.273h-93.091v46.545h93.091c25.6 0 46.545-20.945 46.545-46.545V81.455c.001-25.6-20.944-46.546-46.544-46.546z"/></svg>',i.find(".fp-fullscreen",r)[0]);t.parentNode.insertBefore(e,t)},n.conf.skin_preview)&&n.conf.airplay&&n.createAirplayButton()})},{"../common":1,"../freedomplayer":24,bean:27}],6:[function(e,t,n){"use strict";var r=e("../freedomplayer"),l=e("./resolve").TYPE_RE,u=e("scriptjs"),c=e("bean");r(function(r,o){var i,a,e,t=r.conf.analytics,s=0,n=0;t&&("undefined"==typeof _gat&&u("//google-analytics.com/ga.js"),a=function(){var e=_gat._getTracker(t);return e._setAllowLinker(!0),e},r.bind("load unload",e=function(e,t,n){n=n||r.video,s&&"undefined"!=typeof _gat&&(a()._trackEvent("Video / Seconds played",r.engine.engineName+"/"+n.type,n.title||o.getAttribute("title")||n.src.split("/").slice(-1)[0].replace(l,""),Math.round(s/1e3)),s=0,i)&&(clearTimeout(i),i=null)}).bind("progress",function(){r.seeking||(s+=n?+new Date-n:0,n=+new Date),i=i||setTimeout(function(){i=null,a()._trackEvent("Freedom Player heartbeat","Heartbeat","",0,!0)},6e5)}).bind("pause",function(){n=0}),r.bind("shutdown",function(){c.off(window,"unload",e)}),c.on(window,"unload",e))})},{"../freedomplayer":24,"./resolve":17,bean:27,scriptjs:36}],7:[function(e,t,n){"use strict";var r=e("../freedomplayer"),g=e("../common"),m=e("bean"),v=e("scriptjs");r(function(f,r){var t,n,o,i,a,s,l;function u(){i&&i.removeEventListener(cast.framework.RemotePlayerEventType.ANY_CHANGE,h),f.release(),g.toggleClass(r,"is-chromecast",!1),g.toggleClass(s,"fp-active",!1)}function c(){var e,t=!1,n=f.video.sources_fvqs||f.video.sources;for(e in n){var r=n[e].type;if("video/mp4"==r||"video/fv-mp4"==r||"application/dash+xml"==r&&!n[e].src.match(/.json/)){t=n[e];break}}if(!t)for(var o in n)if("application/x-mpegurl"==n[o].type){t=n[o];break}if(f.video.fvhkey&&!f.conf.hls_cast)return!1;if(t){var i,a=!1,s=["fullhd","hd","md","sd"];for(i in s){var l,u=new RegExp("-"+s[i]);for(l in f.video.sources_fvqs){var c=f.video.sources_fvqs[l];if(c.src.match(u)&&"video/mp4"==c.type){a=c;break}}if(a){t=a;break}}}return t}function d(){var e,t=c();t&&(e=a.getCastDevice().friendlyName,g.html(g.find(".fp-chromecast-engine-status",r)[0],"Playing on device "+e),e=new chrome.cast.media.MediaInfo(t.src,t.type),t=new chrome.cast.media.LoadRequest(e),f.live||(t.currentTime=f.video.time),cast.framework.CastContext.getInstance().getCurrentSession().loadMedia(t).then(p,function(e){console.log("Chromecast onMediaError: "+e)}))}function p(){var e=new CustomEvent("fv_player_chromecast_video_loaded",{detail:r.getAttribute("data-freedomplayer-instance-id")});document.dispatchEvent(e),o=new cast.framework.RemotePlayer,(i=new cast.framework.RemotePlayerController(o)).addEventListener(cast.framework.RemotePlayerEventType.ANY_CHANGE,h)}function h(e){a&&!f.hijacked&&(g.toggleClass(r,"is-chromecast",!0),g.toggleClass(s,"fp-active",!0),f.hijack({pause:function(){o.isPaused||i.playOrPause()},resume:function(){f.finished?(f.release(),d()):o.isPaused&&i.playOrPause()},seek:function(e){o.currentTime=e,i.seek()}})),"currentTime"===e.field?f.trigger("progress",[f,e.value]):"playerState"===e.field&&(g.toggleClass(r,"is-loading",e.value===chrome.cast.media.PlayerState.BUFFERING),f.paused&&e.value===chrome.cast.media.PlayerState.PLAYING?f.trigger("resume",[f]):f.playing&&e.value===chrome.cast.media.PlayerState.PAUSED?f.trigger("pause",[f]):e.value===chrome.cast.media.PlayerState.IDLE&&(f.trigger("pause",[f]),f.trigger("finish",[f])),f.seeking)&&(e.value===chrome.cast.media.PlayerState.BUFFERING?l=!0:e.value===chrome.cast.media.PlayerState.PLAYING&&l&&(l=!1,f.trigger("seek",[f])))}(!1!==f.conf.chromecast&&""!==f.conf.chromecast||f.conf.skin_preview)&&(window.__onGCastApiAvailable||(v("https://www.gstatic.com/cv/js/sender/v1/cast_sender.js?loadCastFramework=1"),window.__onGCastApiAvailable=function(e){e&&(cast.framework.CastContext.getInstance().setOptions({receiverApplicationId:t.applicationId||chrome.cast.media.DEFAULT_MEDIA_RECEIVER_APP_ID,autoJoinPolicy:chrome.cast.AutoJoinPolicy.ORIGIN_SCOPED}),cast.framework.CastContext.getInstance().addEventListener(cast.framework.CastContextEventType.CAST_STATE_CHANGED,function(e){console.log("Chromecast "+e.castState),e.castState===cast.framework.CastState.NOT_CONNECTED&&(a=!1,f.hijacked)&&u(),e.castState===cast.framework.CastState.NO_DEVICES_AVAILABLE||n||(e=new CustomEvent("fv_player_chromecast_loaded"),document.dispatchEvent(e))}))}),t=f.conf.chromecast||{},l=n=!1,f.createChromecastButton=function(){g.find(".fp-chromecast",r).forEach(g.removeNode),g.find(".fp-chromecast-engine",r).forEach(g.removeNode),(s=g.createElement("a",{class:"fp-chromecast fp-icon",title:"Play on Cast device"})).innerHTML='<svg xmlns="http://www.w3.org/2000/svg" viewBox="125 40 625 500"><path d="M644 486h37V98H181v83h-55V43h610v498H487v-55h157zm-224-24c6 22 9 44 10 66v13h-54c-1-69-25-128-74-176-48-48-107-73-176-73v-55l29 1a300 300 0 0 1 171 74 304 304 0 0 1 94 150zm-294-79v-34c87-4 192 69 194 192h-55a139 139 0 0 0-139-138v-20zm49 91c22 17 33 39 34 67h-83v-82c18 0 34 5 49 15z"/></svg>';var e=g.find(".fp-fullscreen",r)[0],e=(e.parentNode.insertBefore(s,e),g.createElement("div",{class:"fp-chromecast-engine"})),t=g.createElement("p",{class:"fp-chromecast-engine-status"}),n=g.createElement("p",{class:"fp-chromecast-engine-icon"}),n=(e.appendChild(n),e.appendChild(t),g.find(".fp-engine",r)[0]);n?n.parentNode.insertBefore(e,n):g.prepend(g.find(".fp-player",r)[0]||r,e)},f.conf.skin_preview&&f.conf.chromecast&&f.createChromecastButton(),document.addEventListener("fv_player_chromecast_loaded",function(){n=!0,c()?f.createChromecastButton():g.removeNode(s)}),document.addEventListener("fv_player_chromecast_video_loaded",function(e){r.getAttribute("data-freedomplayer-instance-id")!==e.detail&&(u(),f.trigger("pause",[f]))}),f.bind("ready",function(){n&&(c()?(f.createChromecastButton(),(a=window.cast&&cast.framework&&cast.framework.CastContext.getInstance().getCurrentSession())&&(console.log("Chromecast resume session"),f.one("progress",function(){f.release(),setTimeout(function(){f.pause()}),f.mute(!1,!0),d()}),f.mute(!0,!0))):(console.log("Chromecast: Can't find suitable video type"),g.removeNode(s)))}),m.on(r,f.touch_events(),".fp-chromecast",function(e){e.preventDefault(),a?(a.endSession(!0),a=null,u(),f.trigger("pause",[f]),f.video.time&&setTimeout(function(){f.seek(f.video.time)},0)):(f.playing&&f.pause(),cast.framework.CastContext.getInstance().requestSession().then(function(){a=cast.framework.CastContext.getInstance().getCurrentSession(),d()},function(e){"cancel"!==e&&console.error("Chromecast session "+e)}))}))})},{"../common":1,"../freedomplayer":24,bean:27,scriptjs:36}],8:[function(e,t,n){"use strict";var r=e("../freedomplayer"),f=e("../common"),d=e("bean");r(function(o,i){var t=/ ?cue\d+ ?/,a=!1;function r(e){i.className=i.className.replace(t," "),0<=e&&f.addClass(i,"cue"+e)}function s(e){r(e.index),o.trigger("cuepoint",[o,e])}var l={},u=-.125;function c(e){e=e&&!isNaN(e.time)?e.time:e;return e<0&&(e=o.video.duration+e),.125*Math.round(e/.125)}o.on("progress",function(e,t,n){if(!a)for(var r=c(n);u<r;)l[u+=.125]&&l[u].forEach(s)}).on("unload",r).on("beforeseek",function(e){setTimeout(function(){e.defaultPrevented||(a=!0)})}).on("seek",function(e,t,n){r(),u=c(n||0)-.125,a=!1,!n&&l[0]&&l[0].forEach(s)}).on("ready",function(e,t,n){u=-.125;n=n.cuepoints||o.conf.cuepoints||[];o.setCuepoints(n)}).on("finish",function(){for(var e=c(o.video.duration);u<e;)l[u+=.125]&&l[u].forEach(s);u=-.125}),o.conf.generate_cuepoints&&o.bind("load",function(){f.find(".fp-cuepoint",i).forEach(f.removeNode)}),o.setCuepoints=function(e){return o.cuepoints=[],l={},e.forEach(o.addCuepoint),o},o.addCuepoint=function(e){o.cuepoints||(o.cuepoints=[]),(e="number"==typeof e?{time:e}:e).index=0;var t,n,r=c(e);return l[r]||(l[r]=[]),l[r].push(e),o.cuepoints.length&&(e.index=Math.max.apply(null,o.cuepoints.map(function(e){return e.index}))+1),o.cuepoints.push(e),o.conf.generate_cuepoints&&!1!==e.visible&&(r=o.video.duration,t=f.find(".fp-timeline",i)[0],f.css(t,"overflow","visible"),(n=e.time||e)<0&&(n=r+n),e=f.createElement("a",{className:"fp-cuepoint fp-cuepoint"+e.index}),f.css(e,"left",n/r*100+"%"),t.appendChild(e),d.on(e,"mousedown",function(e){e.preventDefault(),e.stopPropagation(),o.seek(n)})),o},o.removeCuepoint=function(t){"number"==typeof t&&(t=o.cuepoints.filter(function(e){return e.index===t})[0]);var e=o.cuepoints.indexOf(t),n=c(t);if(-1!==e){o.cuepoints=o.cuepoints.slice(0,e).concat(o.cuepoints.slice(e+1));e=f.find(".fp-timeline",i)[0],e=(f.find(".fp-cuepoint"+t.index,e).forEach(f.removeNode),l[n].indexOf(t));if(-1!==e)return l[n]=l[n].slice(0,e).concat(l[n].slice(e+1)),o}}})},{"../common":1,"../freedomplayer":24,bean:27}],9:[function(e,t,n){"use strict";t.exports=function(o,a){a=a||document.createElement("div");function n(t,n,r){function o(e){r&&(a.removeEventListener(i,o),s[t].splice(s[t].indexOf(o),1)),e=[e].concat(l[e.timeStamp+e.type]||[]),n&&n.apply(void 0,e)}var i=t.split(".")[0];a.addEventListener(i,o),s[t]||(s[t]=[]),s[t].push(o)}var s={},l={};o.on=o.bind=function(e,t){return e.split(" ").forEach(function(e){n(e,t)}),o},o.one=function(e,t){return e.split(" ").forEach(function(e){n(e,t,!0)}),o};o.off=o.unbind=function(e){return e.split(" ").forEach(function(e){var r=e.split(".").slice(1),o=e.split(".")[0];Object.keys(s).filter(function(e){var t,n=e.split(".").slice(1);return(!o||0===e.indexOf(o))&&(t=n,0===r.filter(function(e){return-1===t.indexOf(e)}).length)}).forEach(function(e){var t=s[e],n=e.split(".")[0];s[e]=t.filter(function(e){return a.removeEventListener(n,e),!1})})}),o},o.trigger=function(e,t,n){var r;if(e)return t=(t||[]).length?t||[]:[t],r=document.createEvent("Event"),e=e.type||e,r.initEvent(e,!1,!0),Object.defineProperty&&(r.preventDefault=function(){Object.defineProperty(this,"defaultPrevented",{get:function(){return!0}})}),l[r.timeStamp+r.type]=t,a.dispatchEvent(r),n?r:o}},t.exports.EVENTS=["beforeseek","disable","error","finish","fullscreen","fullscreen-exit","load","mute","pause","progress","ready","resume","seek","speed","stop","unload","volume","boot","shutdown"]},{}],10:[function(e,t,n){"use strict";var s,r=e("../freedomplayer"),o=e("bean"),l=e("../common"),u="fullscreen",c="fullscreen-exit",f=r.support.fullscreen;o.on(document,"fullscreenchange.ffscr webkitfullscreenchange.ffscr mozfullscreenchange.ffscr MSFullscreenChange.ffscr",function(e){var t,n=document.webkitCurrentFullScreenElement||document.mozFullScreenElement||document.fullscreenElement||document.msFullscreenElement;(s||n.parentNode&&n.parentNode.getAttribute("data-freedomplayer-instance-id"))&&(t=s||r(n.parentNode),s=n?t.trigger(u,[t]):(s.trigger(c,[s]),null))}),r(function(t,n){var r,o,e,i=l.createElement("div",{className:"fp-player"}),a=(Array.prototype.map.call(n.children,l.identity).forEach(function(e){l.matches(e,".fp-ratio,script")||i.appendChild(e)}),n.appendChild(i),window);t.isFullscreen=!1,t.fullscreen=function(e){if(!t.disabled&&t.conf.fullscreen)return(e=void 0===e?!t.isFullscreen:e)&&(r=a.scrollY,o=a.scrollX),f?e?["requestFullScreen","webkitRequestFullScreen","mozRequestFullScreen","msRequestFullscreen"].forEach(function(e){"function"==typeof i[e]&&(i[e](Element.ALLOW_KEYBOARD_INPUT),"webkitRequestFullScreen"!==e||document.webkitFullscreenElement||i[e]())}):["exitFullscreen","webkitCancelFullScreen","mozCancelFullScreen","msExitFullscreen"].forEach(function(e){"function"==typeof document[e]&&document[e]()}):t.trigger(e?u:c,[t]),t},t.on("mousedown.fs",function(){+new Date-e<150&&t.ready&&t.fullscreen(),e=+new Date}),t.on(u,function(){l.addClass(n,"is-fullscreen"),l.toggleClass(n,"fp-minimal-fullscreen",l.hasClass(n,"fp-minimal")),l.removeClass(n,"fp-minimal"),f||l.css(n,"position","fixed"),t.isFullscreen=!0}).on(c,function(){var e;l.toggleClass(n,"fp-minimal",l.hasClass(n,"fp-minimal-fullscreen")),l.removeClass(n,"fp-minimal-fullscreen"),f||"html5"!==t.engine||(e=n.css("opacity")||"",l.css(n,"opacity",0)),f||l.css(n,"position",""),l.removeClass(n,"is-fullscreen"),f||"html5"!==t.engine||setTimeout(function(){n.css("opacity",e)}),t.isFullscreen=!1,a.scrollTo(o,r)}).on("unload",function(){t.isFullscreen&&t.fullscreen()}),t.on("shutdown",function(){s=null,l.removeNode(i)})})},{"../common":1,"../freedomplayer":24,bean:27}],11:[function(e,t,n){"use strict";var l,u,r=e("../freedomplayer"),o=e("bean"),c=e("../common");r(function(t,n){t.conf.keyboard&&(o.on(document,"keydown.fp",function(e){if(void 0!==l){var t,n=l,r=!!n&&u,o=n&&!n.disabled?n:0,i=e.ctrlKey||e.metaKey||e.altKey,a=e.which,s=o&&o.conf;if(!c.hasClass(r,"no-controlbar")&&!c.hasClass(r,"is-cva")&&o&&s.keyboard&&!o.disabled){if(9==a)return!1;if(-1!=[63,187,191].indexOf(a))return c.toggleClass(r,"is-help"),!1;if(27==a&&c.hasClass(r,"is-help"))return c.toggleClass(r,"is-help"),!1;if(!i&&o.ready)if(e.preventDefault(),e.shiftKey)39==a?o.speed(!0):37==a?o.speed(!1):78==a?o.next():80==a&&o.prev();else{if(a<58&&47<a)return o.seekTo(a-48);switch(a){case 38:case 75:o.volume(o.volumeLevel+.15);break;case 40:case 74:o.volume(o.volumeLevel-.15);break;case 39:case 76:o.seeking=!0,o.manual_seeking=!0,o.seek(n.video.time+5);break;case 37:case 72:o.seeking=!0,o.manual_seeking=!0,o.seek(n.video.time-5);break;case 32:n.playing&&(o.manual_pause=!0),o.toggle();break;case 70:s.fullscreen&&o.fullscreen();break;case 77:o.mute();break;case 81:o.unload();break;case 67:n.video.subtitles&&0!=n.video.subtitles.length&&(void 0===(t=r.querySelector(".fp-dropdown li.active[data-subtitle-index]").dataset.subtitleIndex)&&(t=-1),++t>n.video.subtitles.length-1&&(t=-1),n.trigger("subtitles-switched",[t]));break;case 190:case 188:n.playing&&(o.manual_pause=!0,o.pause()),o.seek(n.video.time+(190==a?1/30:-1/30))}}}}}),o.on(n,"mouseenter mouseleave focus",function(e){(l=t.disabled||"mouseover"!=e.type&&"focus"!=e.type?0:t)&&(u=n)}))})},{"../common":1,"../freedomplayer":24,bean:27}],12:[function(e,t,n){var r=e("../freedomplayer"),s=e("../common"),l=e("bean");r(function(i,a){i.showMenu=function(e,t){var n=s.find(".fp-ui",a)[0],r=(s.toggleClass(e,"fp-active",!0),setTimeout(function(){l.one(document,i.touch_events(),function(){i.hideMenu(e)})}),t);if(!(r=t&&t.tagName?{left:s.offset(t).left,rightFallbackOffset:s.width(t),top:s.offset(t).top+s.height(t)}:r))return s.css(e,"top","auto");r.rightFallbackOffset=r.rightFallbackOffset||0;var t=r.top-s.offset(n).top,o=r.left-s.offset(n).left;s.width(e)+o>s.width(n)&&(o=o-s.width(e)+r.rightFallbackOffset),s.height(e)+t>s.height(n)&&(t-=s.height(e)),s.css(e,{top:t+"px",left:o+"px",right:"auto"})},i.hideMenu=function(e){setTimeout(function(){s.toggleClass(e,"fp-active",!1),s.css(e,{top:"-9999em"})},60)}})},{"../common":1,"../freedomplayer":24,bean:27}],13:[function(e,t,n){var r=e("../freedomplayer"),s=e("../common"),o=e("bean");r(function(e,t){var i=s.find(".fp-header",t)[0],a=s.find(".fp-ui",t)[0];e.message=function(e,t){function n(){s.toggleClass(o,"fp-shown"),setTimeout(function(){s.removeNode(o)},500)}r=s.createElement("div",{className:"fp-message"},e),a.insertBefore(r,i),setTimeout(function(){s.toggleClass(r,"fp-shown")});var r,o=r;return t&&setTimeout(n,t),n},e.textarea=function(e){var t=document.createElement("textarea");t.value=e,t.className="fp-textarea",a.appendChild(t),o.on(document,"click.fptextarea",function(e){if(e.target===t)return t.select();e.stopPropagation(),e.preventDefault(),s.removeNode(t),o.off(document,"click.fptextarea")})}})},{"../common":1,"../freedomplayer":24,bean:27}],14:[function(n,e,t){!function(t){!function(){"use strict";var e="url("+window.location.href.replace(window.location.hash,"").replace(/\#$/g,"")+"#",_=t("PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGZpbHRlcj0idXJsKCNmMSkiIHZpZXdCb3g9Ijk1LjQgMTQzLjIgODEwLjMgNzUxLjYiPgogIDxwYXRoIGZpbGw9IiNmZmYiIGQ9Ik01MzguNiA4ODguMmEzOTUgMzk1IDAgMCAwIDE1OS43LTY3LjUgMzQzLjQgMzQzLjQgMCAwIDAgMTEyLjItMTM0LjNjOC0xNS43LTM5LjEtMzkuNS00Ny0yMy44YTMwMiAzMDIgMCAwIDEtOTggMTEzLjhBMzAxLjYgMzAxLjYgMCAwIDEgNTI5LjQgODM2Yy05MC4yIDE2LTE2OC41LTIuNC0yNDItNTMuOGEzMTQgMzE0IDAgMCAxLTEzMy40LTIwOSAzMTQgMzE0IDAgMCAxIDU0LTI0MkEzMTQgMzE0IDAgMCAxIDQxNi44IDE5OGEzMTEgMzExIDAgMCAxIDIzMy44IDQ4LjJjNzIuOCA0OCAxMTYuMiAxMTEuOCAxMzcuOCAxOTMuOGwtNzYuNy0yOS40Yy0xMS42LTUtMjkuMSAzNy4zLTE3LjUgNDIuNWwxNDIuNCA1N2MxMS42IDUuMiAyMC44LTMuNiAyMy0xMS4xbDQ1LjUtMTQ3LjVjNS4yLTExLjctMzYuNy0yNS43LTQ0LjYtMTBMODM1LjMgNDIxYy0yMy41LTkyLjQtNzkuMi0xNjQuOC0xNjAuMS0yMTguNS04MS01My43LTE3My4yLTY5LjYtMjY2LjktNTMtMTA0IDE4LjMtMTg0IDcxLjctMjQ0LjYgMTU0LTYwLjYgODIuMS04MCAxNzUtNjEuNyAyNzkgMTguNCAxMDQgNzEuOCAxODQgMTU0IDI0NC42IDg1LjcgNjAgMTc4LjUgNzkuNCAyODIuNiA2MVpNMzUzIDY0Ni41Yy0zIDAtMyAwLTMtM1Y0MzQuM2MwLTktNi0zLTktM2wtMjYuOCAxMmMwIDMtMyAwLTMtM2wtMTItMjdjLTMtMyAwLTYgMy02bDgwLjctMzUuOGMzIDAgMTIgMCAxMiA5djI2M2MwIDMgMCAzLTMgM0gzNTNaTTY0MCA1MTJjMCA4Ni43LTM4LjkgMTQwLjUtMTA0LjYgMTQwLjUtNjUuOCAwLTEwNC42LTUzLjgtMTA0LjYtMTQwLjVzMzguOC0xNDAuNSAxMDQuNi0xNDAuNUM2MDEgMzcxLjUgNjQwIDQyNS4zIDY0MCA1MTJabS0xNjEuNCAwYzAgNjIuOCAyMSAxMDEuNiA1OS44IDEwMS42czU5LjgtMzUuOCA1OS44LTEwMS42YzAtNjIuOC0yMS0xMDEuNi01OS44LTEwMS42LTM4LjkgMC01OS44IDM4LjgtNTkuOCAxMDEuNloiLz4KPC9zdmc+","base64").toString().replace(/url\(#/g,e),k=t("PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGZpbHRlcj0idXJsKCNmMSkiIHZpZXdCb3g9IjExOC4zIDE0My4yIDgxMC4zIDc1MS42Ij4KICA8cGF0aCBmaWxsPSIjZmZmIiBkPSJNNDg1LjQgODg4LjJhMzk1IDM5NSAwIDAgMS0xNTkuNy02Ny41IDM0My40IDM0My40IDAgMCAxLTExMi4yLTEzNC4zYy04LTE1LjcgMzkuMS0zOS41IDQ3LTIzLjhhMzAyIDMwMiAwIDAgMCA5OCAxMTMuOEEzMDEuNiAzMDEuNiAwIDAgMCA0OTQuNiA4MzZjOTAuMiAxNiAxNjguNS0yLjQgMjQyLTUzLjhhMzE0IDMxNCAwIDAgMCAxMzMuNC0yMDkgMzE0IDMxNCAwIDAgMC01NC0yNDJBMzE0IDMxNCAwIDAgMCA2MDcuMiAxOThhMzExIDMxMSAwIDAgMC0yMzMuOCA0OC4yQzMwMC42IDI5NC4yIDI1Ny4yIDM1OCAyMzUuNiA0NDBsNzYuNy0yOS40YzExLjYtNSAyOS4xIDM3LjMgMTcuNSA0Mi41bC0xNDIuNCA1N2MtMTEuNiA1LjItMjAuOC0zLjYtMjMtMTEuMWwtNDUuNS0xNDcuNWMtNS4yLTExLjcgMzYuNy0yNS43IDQ0LjYtMTBsMjUuMyA3OS41QzIxMi4yIDMyOC42IDI2OCAyNTYuMiAzNDkgMjAyLjVjODEtNTMuNyAxNzMuMS02OS42IDI2Ni44LTUzIDEwNCAxOC4zIDE4NCA3MS43IDI0NC42IDE1NCA2MC42IDgyLjEgODAgMTc1IDYxLjcgMjc5LTE4LjQgMTA0LTcxLjggMTg0LTE1NCAyNDQuNi04NS43IDYwLTE3OC41IDc5LjQtMjgyLjYgNjFaTTQzNiA2NDYuNWMtMyAwLTMgMC0zLTNWNDM0LjNjMC05LTYtMy05LTNsLTI2LjggMTJjMCAzLTMgMC0zLTNsLTEyLTI3Yy0zLTMgMC02IDMtNmw4MC43LTM1LjhjMyAwIDEyIDAgMTIgOXYyNjNjMCAzIDAgMy0zIDNINDM2Wk03MjMgNTEyYzAgODYuNy0zOC45IDE0MC41LTEwNC42IDE0MC41LTY1LjggMC0xMDQuNi01My44LTEwNC42LTE0MC41czM4LjgtMTQwLjUgMTA0LjYtMTQwLjVDNjg0IDM3MS41IDcyMyA0MjUuMyA3MjMgNTEyWm0tMTYxLjQgMGMwIDYyLjggMjEgMTAxLjYgNTkuOCAxMDEuNlM2ODEgNTc3LjggNjgxIDUxMmMwLTYyLjgtMjAuOS0xMDEuNi01OS43LTEwMS42LTM4LjkgMC01OS44IDM4LjgtNTkuOCAxMDEuNloiLz4KPC9zdmc+","base64").toString().replace(/url\(#/g,e),e=n("../freedomplayer"),N=/IEMobile/.test(window.navigator.userAgent),L=n("../common"),S=n("bean"),I=n("./ui").format,D=e.support,j=window.navigator.userAgent;(D.touch||N)&&e(function(i,a){var e,t,n,r,o,s=D.android,l=s&&!s.firefox,u=/Silk/.test(j),c=s.version||0,f=L.find(".fp-ui",a)[0],d=L.createElement("div",{className:"fp-forward"},_),p=L.createElement("div",{className:"fp-rewind"},k),h=L.find(".fp-timeline",a)[0],g=L.find(".fp-fullscreen",a)[0],m=0,v=!1,y=0;function b(e){y=y||i.video.time,y=e?y+10:y-10,i.seek(y,function(){y=0})}function w(){i.hover(!1),L.addClass(a,"is-mobile-seeking"),clearInterval(e),e=setTimeout(function(){L.hasClass(h,"is-fp-dragging")?w():L.removeClass(a,"is-mobile-seeking")},2e3)}f.appendChild(d),f.appendChild(p),S.on(L.find("svg",d)[0],i.touch_events(),function(e){i.disabled||(e.preventDefault(),e.stopPropagation(),w(),b(!0))}),S.on(L.find("svg",p)[0],i.touch_events(),function(e){i.disabled||(e.preventDefault(),e.stopPropagation(),w(),b())}),l&&!N&&((!/Chrome/.test(j)&&c<4||s.samsung&&c<5)&&(t=i.load,i.load=function(){var e=t.apply(i,arguments);return L.find("video.fp-engine",a)[0].load(),i.trigger("ready",[i,i.video]),e}),r=0,o=function(e){n=setInterval(function(){e.video.time=++r,e.trigger("progress",[e,r])},1e3)},i.on("ready pause unload",function(){n&&(clearInterval(n),n=null)}),i.on("ready",function(){r=0}),i.on("resume",function(e,t){if(t.live)return r?o(t):void i.one("progress",function(e,t,n){0===n&&o(t)})}));var E,C,x=new Audio,M=(x.volume=.5,setTimeout(function(){.5!=x.volume||D.android?(L.addClass(a,"no-volume"),D.volume=!1):D.volume=!0}),L.addClass(a,"is-touch"),i.sliders&&i.sliders.timeline&&i.sliders.timeline.disableAnimation(),!1),T=(S.on(a,"touchmove",function(){M=!0}),!0),A=!1;S.on(a,"touchend",function(e){if(void 0===i.video.click){var t=L.hasClass(e.target,"fp-rewind"),n=L.hasClass(e.target,"fp-forward"),r=(new Date).getTime()-A;if(A&&20<r&&r<300&&(t||n))if(i.video&&i.video.duration)return r=i.video.time,clearInterval(E),t?(r-=10)<0&&(r=0):(r+=10)>i.video.duration&&(r=i.video.duration),L.addClass(a,"is-mobile-seeking"),setTimeout(function(){L.removeClass(a,"is-mobile-seeking")},500),i.seek(r),A=(new Date).getTime(),e.preventDefault(),void e.stopPropagation();A=(new Date).getTime()}}),S.on(a,"touchend click",function(n){if(M)M=!1;else{var e=L.find("video.fp-engine",a)[0],r=(T&&i.conf.clickToUnMute&&e&&e.muted&&i.conf.autoplay&&(e.muted=!1),T=!1,L.hasClass(n.target,"fp-rewind")||L.hasClass(n.target.parentNode,"fp-rewind")||L.hasClass(n.target,"fp-forward")||L.hasClass(n.target.parentNode,"fp-forward")),o=L.hasClass(a,"is-mouseover")||L.hasClass(a,"is-mobile-seeking")&&r||L.hasClass(a,"fixed-controls")&&(L.hasClass(n.target,"fp-controls")||L.hasClass(n.target.parentNode,"fp-controls")||L.hasClass(n.target.parentNode.parentNode,"fp-controls"))||L.hasClass(a,"no-controlbar")&&!L.hasClass(a,"have-buttons");if(i.was_played&&(!o||L.hasClass(n.target,"fp-ui")||L.hasClass(n.target,"fp-engine")||L.hasClass(n.target,"fp-header")||r))return clearInterval(E),void 0!==i.video.click||(E=setTimeout(function(){var e,t;r?(i.hover(!1),L.addClass(a,"is-mobile-seeking"),w()):(e=(n.changedTouches&&n.changedTouches[0]&&n.changedTouches[0].clientX?n.changedTouches[0]:n).clientX,t=n.changedTouches&&n.changedTouches[0]&&n.changedTouches[0].clientY?n.changedTouches[0].clientY:n.clientY-window.scrollY,(!i.isFullscreen||e>window.innerWidth/6&&e<5*window.innerWidth/6&&10<t&&t<window.innerHeight-10||10<e&&e<window.innerWidth-10&&t>.8*window.innerHeight&&t<window.innerHeight-10)&&(i.hover(!o),o||L.removeClass(a,"is-mobile-seeking")),!L.hasClass(a,"is-mouseover")&&i.isFullscreen&&e>7*window.innerWidth/8&&e<window.innerWidth-10&&10<t&&t<window.innerHeight/8?2<=++m&&(m=0,L.addClass(a,"is-fullscreen-exit-hint"),setTimeout(function(){L.removeClass(a,"is-fullscreen-exit-hint"),clearInterval(v)},2e3),clearInterval(v),v=setInterval(function(){L.toggleClass(g,"bold")},300)):m=0)},150),i.playing&&L.hasParent(n.target,".fp-pause"))?void 0:void(o||(n.preventDefault(),n.stopPropagation()));i.was_played||i.splash||!L.hasClass(a,"is-mouseout")||L.hasClass(a,"is-mouseover")||setTimeout(function(){var e;i.disabled||i.playing||i.splash||(e=L.find("video.fp-engine",a))[0]&&e[0].play()},400)}}),!D.fullscreen&&i.conf.native_fullscreen&&"function"==typeof L.createElement("video").webkitEnterFullScreen&&(C=i.fullscreen,i.fullscreen=function(){var e=L.find("video.fp-engine",a)[0];if(!e)return C.apply(i);i.trigger("fullscreen",[i]),S.on(document,"webkitfullscreenchange.nativefullscreen",function(){document.webkitFullscreenElement===e&&(S.off(document,".nativefullscreen"),S.on(document,"webkitfullscreenchange.nativefullscreen",function(){document.webkitFullscreenElement||(S.off(document,".nativefullscreen"),i.trigger("fullscreen-exit",[i]))}))}),e.webkitEnterFullScreen(),S.one(e,"webkitendfullscreen",function(){S.off(document,"fullscreenchange.nativefullscreen"),i.trigger("fullscreen-exit",[i]),L.prop(e,"controls",!0),L.prop(e,"controls",!1)})}),(l||u)&&i.bind("ready",function(){var t=L.find("video.fp-engine",a)[0];t&&(i.conf.splash&&t.paused&&"hlsjs-lite"!==i.engine.engineName&&(S.one(t,"canplay",function(){t.play()}),t.load()),i.bind("progress.dur",function(){var e;i.live||i.conf.live||1!==(e=t.duration)&&(i.video.duration=e,L.find(".fp-duration",a)[0].innerHTML=I(i.get_video_duration()),i.unbind("progress.dur"))}))}),i.on("resume",function(){i.hover(!1)})})}.call(this)}.call(this,n("buffer").Buffer)},{"../common":1,"../freedomplayer":24,"./ui":21,bean:27,buffer:28}],15:[function(e,t,n){"use strict";var r=e("../freedomplayer"),i=e("extend-object"),a=e("bean"),h=e("../common"),s=e("./resolve"),g=new s,m=window.jQuery,v=/^#/;r(function(l,u){var c=i({active:"is-active",advance:!0,query:".fp-playlist a"},l.conf),f=c.active,t=h.find(".fp-ui",u)[0],r=-1,e=h.hasClass(u,"fp-custom-playlist")||!!c.customPlaylist;function n(){return h.find(c.query,d())}function d(){if(!v.test(c.query))return u}function p(){return h.find(c.query+"."+f,d())}function o(){var e,n=h.find(".fp-playlist",u)[0];n||(n=h.createElement("div",{className:"fp-playlist"}),(e=h.find(".fp-next,.fp-prev",u)).length?e[0].parentElement.insertBefore(n,e[0]):h.insertAfter(u,h.find("video",u)[0],n)),n.innerHTML="",l.conf.playlist[0].length&&(l.conf.playlist=l.conf.playlist.map(function(e){var t;return"string"==typeof e?{sources:[{type:"m3u8"===(t=e.split(s.TYPE_RE)[1]).toLowerCase()?"application/x-mpegurl":"video/"+t,src:e}]}:{sources:e.map(function(t){var n={};return Object.keys(t).forEach(function(e){n.type=/mpegurl/i.test(e)?"application/x-mpegurl":"video/"+e,n.src=t[e]}),n})}})),l.conf.playlist.forEach(function(e,t){e=e.sources[0].src;n.appendChild(h.createElement("a",{href:e,className:l.video.index===t?f:void 0,"data-index":t}))})}h.toggleClass(u,"fp-custom-playlist",e),h.toggleClass(u,"fp-default-playlist",!e),l.play=function(e){if(void 0===e)return l.resume();if("number"!=typeof e||l.conf.playlist[e]){if("number"!=typeof e)return l.load.apply(null,arguments);var t=i({index:e},l.conf.playlist[e]);if(l.off("beforeresume.fromfirst"),"number"==typeof e&&e===l.video.index)return l.seek(0,function(){l.resume()});l.load(t,function(){l.video.index=e})}return l},l.play_next=function(e){e>l.conf.playlist.length&&(e=l.conf.playlist.length-1),r=e},l.next=function(e){e&&e.preventDefault();e=l.video.index;return-1!=e&&(e=e===l.conf.playlist.length-1?0:e+1,l.play(e)),l},l.prev=function(e){e&&e.preventDefault();e=l.video.index;return-1!=e&&(e=0===e?l.conf.playlist.length-1:e-1,l.play(e)),l},l.setPlaylist=function(e,t){return l.conf.playlist=e,t||delete l.video.index,o(),l},l.addPlaylistItem=function(e){return delete l.video.is_last,l.setPlaylist(l.conf.playlist.concat([e]),!0)},l.removePlaylistItem=function(e){var t=l.conf.playlist;return l.setPlaylist(t.slice(0,e).concat(t.slice(e+1)))},l.have_visible_playlist=function(){var e=l.conf.playlist&&0<l.conf.playlist.length;if(e){var t,n=0;for(t in l.conf.playlist)void 0===l.conf.playlist[t].click&&n++;n<2&&(e=!1)}return e},a.on(u,l.touch_events(),".fp-next",l.next),a.on(u,l.touch_events(),".fp-prev",l.prev),l.off("finish.pl").on("finish.pl",function(e,t){if(void 0===t.conf.advance||t.conf.advance||-1!==r){if(t.video.loop)return t.seek(0,function(){t.resume()});var n=0<=t.video.index?t.video.index+1:void 0;(n=-1<r?r:n)<t.conf.playlist.length||c.loop?(n=n===t.conf.playlist.length?0:n,h.removeClass(u,"is-finished"),setTimeout(function(){t.play(n)})):1<t.conf.playlist.length&&(t.one("beforeresume.fromfirst",function(e){e.preventDefault(),t.play(0)}),t.one("seek",function(){t.off("beforeresume.fromfirst")}))}}),l.on("ready",function(e,t,n){r===t.video.index&&(r=-1)});e=!1;l.conf.playlist.length&&(e=!0,o(),l.conf.clip&&l.conf.clip.sources.length||(l.conf.clip=l.conf.playlist[l.conf.startIndex||0])),n().length&&!e&&(l.conf.playlist=[],delete l.conf.startIndex,n().forEach(function(e){var t=e.href,t=(e.setAttribute("data-index",l.conf.playlist.length),g.resolve(t,l.conf.clip.sources));m&&i(t,m(e).data()),l.conf.playlist.push(t)})),h.find(".fp-prev,.fp-next,.fp-playlist",u).forEach(function(e){t.appendChild(e)}),a.on(v.test(c.query)?document:u,"click",c.query,function(e){e.preventDefault();e=e.currentTarget,e=Number(e.getAttribute("data-index"));-1!=e&&l.play(e)}),l.on("load",function(e,t,n){var r,o,i,a,s;l.conf.playlist.length&&(o=(r=p()[0])&&r.getAttribute("data-index"),s=n.index=void 0!==(s=n).index?s.index:void 0!==l.video.index?l.video.index:l.conf.startIndex||0,i=h.find(c.query+'[data-index="'+s+'"]',d())[0],a=s==l.conf.playlist.length-1,r&&h.removeClass(r,f),i&&h.addClass(i,f),h.removeClass(u,"video"+o),h.addClass(u,"video"+s),h.toggleClass(u,"last-video",a),n.index=t.video.index=s,n.is_last=t.video.is_last=a)}).on("unload.pl",function(){l.conf.playlist.length&&(p().forEach(function(e){h.toggleClass(e,f)}),l.conf.playlist.forEach(function(e,t){h.removeClass(u,"video"+t)}),delete l.video.index)}),l.conf.playlist.length&&(l.conf.loop=!1)})},{"../common":1,"../freedomplayer":24,"./resolve":17,bean:27,"extend-object":31}],16:[function(e,t,n){var r=e("../freedomplayer"),u=e("../common"),o=e("bean");r(function(t,i){var a=u.find(".fp-ui",i)[0],s=u.find(".fp-controls",a)[0];function l(t){u.find(".fp-qsel-menu a",i).forEach(function(e){u.toggleClass(e,"fp-selected",e.getAttribute("data-quality")==t),u.toggleClass(e,"fp-color",e.getAttribute("data-quality")==t)})}o.on(i,t.touch_events(),".fp-qsel",function(){var e=u.find(".fp-qsel-menu",i)[0];u.hasClass(e,"fp-active")?t.hideMenu():t.showMenu(e)}),o.on(i,t.touch_events(),".fp-qsel-menu a",function(e){e=e.target.getAttribute("data-quality");t.quality(e)}),t.quality=function(e){e=isNaN(Number(e))?e:Number(e),t.trigger("quality",[t,e])},t.on("quality",function(e,t,n){l(n,t.video.qualities)}),t.on("ready",function(e,t,n){var r,o;u.find(".fp-qsel-menu",i).forEach(u.removeNode),u.find(".fp-qsel",i).forEach(u.removeNode),!n.qualities||n.qualities.filter(function(e){return void 0===e.value||-1<e.value}).length<2||(r=n.qualities,n.quality,s.appendChild(u.createElement("strong",{className:"fp-qsel"},"HD")),o=u.createElement("div",{className:"fp-menu fp-qsel-menu"},"<strong>Quality</strong>"),r.forEach(function(e){var t=document.createElement("a"),n=void 0!==e.value?e.value:e;t.setAttribute("data-quality",n),t.innerHTML=e.label||e,o.appendChild(t)}),a.appendChild(o),l(n.quality,n.qualities))})})},{"../common":1,"../freedomplayer":24,bean:27}],17:[function(e,t,n){"use strict";var o=/\.(\w{3,4})(\?.*)?$/i,i=e("extend-object");function r(e){var t=e.attr("src"),n=e.attr("type")||"",r=t.split(o)[1],n=n.toLowerCase();return i(e.data(),{src:t,suffix:r||n,type:n||r})}t.exports=function(){this.sourcesFromVideoTag=function(e,t){var n=[];return t("source",e).each(function(){n.push(r(t(this)))}),!n.length&&e.length&&n.push(r(e)),n},this.resolve=function(n,e){return n?("string"==typeof n&&((n={src:n,sources:[]}).sources=(e||[]).map(function(e){var t=e.src.split(o)[1];return{type:e.type,src:n.src.replace(o,"."+t+"$2")}})),n=n instanceof Array?{sources:n.map(function(n){return n.type&&n.src?n:Object.keys(n).reduce(function(e,t){return i(e,{type:/mpegurl/i.test(e=t)?"application/x-mpegurl":"video/"+e,src:n[t]})},{})})}:n):{sources:e}}},t.exports.TYPE_RE=o},{"extend-object":31}],18:[function(e,t,n){"use strict";var d=e("../freedomplayer"),p=e("../common"),h=e("bean"),e=e("./subtitles/parser");d.defaults.subtitleParser=e,d(function(o,i){var a,s,n,r,l,u=!1;function e(e,r,o){u&&(r.cuepoints||[]).forEach(function(e,t){var n=e.subtitle;n&&a!=t&&o>=e.time&&(!n.endTime||o<=n.endTime)&&r.trigger("cuepoint",[r,e])})}d.support.inlineVideo&&(d.support.fullscreen||!o.conf.native_fullscreen)||(o.conf.nativesubtitles=!0),o.ui||(o.ui={}),o.ui.createSubtitleControl=function(e,t){return l=t,n=n||p.createElement("strong",{className:"fp-cc"},"CC"),r=r||p.createElement("div",{className:"fp-menu fp-subtitle-menu"},"<strong>Closed Captions</strong>"),p.find("a",r).forEach(p.removeNode),r.appendChild(p.createElement("a",{"data-subtitle-index":-1},"No subtitles")),(e||[]).forEach(function(e,t){var n=e.srclang||"en",e=e.label||"Default ("+n+")",n=p.createElement("a",{"data-subtitle-index":t},e);r.appendChild(n)}),p.find(".fp-ui",i)[0].appendChild(r),p.find(".fp-controls",i)[0].appendChild(n),p.toggleClass(n,"fp-hidden",!e||!e.length),n},o.ui.setActiveSubtitleItem=function(e){f(e)},h.on(i,o.touch_events(),".fp-cc",function(){p.hasClass(r,"fp-active")?o.hideMenu():o.showMenu(r)}),h.on(i,o.touch_events(),".fp-subtitle-menu [data-subtitle-index]",function(e){e.preventDefault();e=e.target.getAttribute("data-subtitle-index");return l?l(e):"-1"===e?o.disableSubtitles():void o.loadSubtitles(e)});function c(e,t){var n=p.find("video.fp-engine",i)[0].textTracks;n.length&&(null===e?[].forEach.call(n,function(e){e.mode=t}):n[e].mode=t)}o.on("ready",function(e,t,n){var r;t.subtitles=[],s=(s=p.find(".fp-captions",i)[0])||p.appendTo(p.createElement("div",{class:"fp-captions"}),p.find(".fp-player",i)[0]),Array.prototype.forEach.call(s.children,p.removeNode),o.ui.createSubtitleControl(o.video.subtitles),p.removeClass(i,"has-menu"),o.disableSubtitles(),n.subtitles&&n.subtitles.length&&(r=n.subtitles.filter(function(e){return e.default})[0])&&t.loadSubtitles(n.subtitles.indexOf(r))}),o.showSubtitle=function(e){p.html(s,e),p.addClass(s,"fp-shown")},o.hideSubtitle=function(){p.removeClass(s,"fp-shown")},o.bind("cuepoint",function(e,t,n){u=!1,n.subtitle?(a=n.index,o.showSubtitle(n.subtitle.text)):n.subtitleEnd&&(o.hideSubtitle(),a=n.index)}),o.bind("seek",function(e,t,r){a&&o.cuepoints[a]&&o.cuepoints[a].time>r&&(p.removeClass(s,"fp-shown"),a=null),(o.cuepoints||[]).forEach(function(e,t){var n=e.subtitle;n&&a!=t?r>=e.time&&(!n.endTime||r<=n.endTime)&&o.trigger("cuepoint",[o,e]):e.subtitleEnd&&r>=e.time&&t==a+1&&o.trigger("cuepoint",[o,e])})}),o.on("unload",function(){p.find(".fp-captions",i).forEach(p.removeNode)});var f=function(e){p.toggleClass(p.find("a.fp-selected",r)[0],"fp-selected"),p.toggleClass(p.find('a[data-subtitle-index="'+e+'"]',r)[0],"fp-selected"),p.toggleClass(i,"has-subtitles",o.video.subtitles&&o.video.subtitles.length)};o.disableSubtitles=function(){return o.subtitles=[],(o.cuepoints||[]).forEach(function(e){(e.subtitle||e.subtitleEnd)&&o.removeCuepoint(e)}),s&&Array.prototype.forEach.call(s.children,p.removeNode),f(-1),d.support.subtitles&&o.conf.nativesubtitles&&"html5"==o.engine.engineName&&c(null,"disabled"),o},o.loadSubtitles=function(e){o.disableSubtitles();var t=o.video.subtitles[e],n=t.src;if(n)return f(e),void 0!==t.rtl&&t.rtl?p.addClass(i,"is-captions-rtl"):p.removeClass(i,"is-captions-rtl"),d.support.subtitles&&o.conf.nativesubtitles&&"html5"==o.engine.engineName&&c(e,"showing"),p.xhrGet(n,function(e){o.conf.subtitleParser(e).forEach(function(e,t){e.title||(e.title="subtitle"+t);var n={time:e.startTime,subtitle:e,visible:!1};o.subtitles.push(e),o.addCuepoint(n),o.addCuepoint({time:e.endTime,subtitleEnd:e.title,visible:!1}),0!==e.startTime||o.video.time||o.splash||o.trigger("cuepoint",[o,d.extend({},n,{index:0})]),o.splash&&o.one("ready",function(){o.trigger("cuepoint",[o,n])})})},function(){return o.trigger("error-subtitles",[o,{code:8,url:n}]),!1}),o},h.on(i,o.touch_events(),".fp-subtitle-menu a[data-subtitle-index]",function(){-1<this.dataset.subtitleIndex&&(u=!0,o.on("progress",e))})})},{"../common":1,"../freedomplayer":24,"./subtitles/parser":19,bean:27}],19:[function(e,t,n){t.exports=function(e){var t=/^(([0-9]+:){1,2}[0-9]{2}[,.][0-9]{3}) --\> (([0-9]+:){1,2}[0-9]{2}[,.][0-9]{3})(.*)/;function n(e){e=e.split(":");return 2==e.length&&e.unshift(0),60*e[0]*60+60*e[1]+parseFloat(e[2].replace(",","."))}for(var r,o,i,a=[],s=0,l=e.split("\n"),u=l.length;s<u;s++)if(o=t.exec(l[s])){for(r=l[s-1],i="<p>"+l[++s]+"</p><br/>";"string"==typeof l[++s]&&l[s].trim()&&s<l.length;)i+="<p>"+l[s]+"</p><br/>";r={title:r,startTime:n(o[1]),endTime:n(o[3]),text:i},a.push(r)}return a}},{}],20:[function(e,t,n){"use strict";var r=e("../freedomplayer"),e=e("extend-object"),o={},i=document.documentElement.style,a=navigator.userAgent.toLowerCase(),a=((s=/(chrome)[ \/]([\w.]+)/.exec(a)||/(safari)[ \/]([\w.]+)/.exec(a)||/(webkit)[ \/]([\w.]+)/.exec(a)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(a)||/(msie) ([\w.]+)/.exec(a)||a.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(a)||[])[1]&&(o[s[1]]=!0,o.version=s[2]||"0"),o.safari&&(o.version=(/version\/([\w.]+)/.exec(a)||[])[1]),(s=document.createElement("video")).loop=!0,s.autoplay=!0,s.preload=!0,s),s=navigator.userAgent,l=o.msie||/Trident\/7/.test(s),u=/iPad|MeeGo/.test(s)&&!/CriOS/.test(s),c=/iPad/.test(s)&&/CriOS/.test(s),f=/iP(hone|od)/i.test(s)&&!/iPad/.test(s)&&!/IEMobile/i.test(s),d=/Android/.test(s),p=d&&/Firefox/.test(s),h=d&&/SAMSUNG/.test(s),g=/Silk/.test(s),m=/IEMobile/.test(s),v=m?parseFloat(/Windows\ Phone\ (\d+\.\d+)/.exec(s)[1],10):0,y=m?parseFloat(/IEMobile\/(\d+\.\d+)/.exec(s)[1],10):0,b=u||f?function(e){e=/iP(ad|hone)(; CPU)? OS (\d+_\d)/.exec(e);return e&&1<e.length?parseFloat(e[e.length-1].replace("_","."),10):0}(s):0,w=d?parseFloat(/Android\ (\d+(\.\d+)?)/.exec(s)[1],10):0,E=(f||u||c)&&{iPhone:f,iPad:u||c,version:b,chrome:c};(s=e(r.support,{browser:o,iOS:E,android:!!d&&{firefox:p,opera:/Opera/.test(s),samsung:h,version:w},subtitles:!!a.addTextTrack,fullscreen:"boolean"==typeof document.webkitFullscreenEnabled?document.webkitFullscreenEnabled:"function"==typeof document.webkitCancelFullScreen&&!/Mac OS X 10_5.+Version\/5\.0\.\d Safari/.test(s)||document.mozFullScreenEnabled||"function"==typeof document.exitFullscreen||"function"==typeof document.msExitFullscreen,inlineBlock:!(l&&o.version<8),touch:"ontouchstart"in window,dataload:!u&&!f&&!m,flex:"flexWrap"in i||"WebkitFlexWrap"in i||"msFlexWrap"in i,svg:!0,zeropreload:!l&&!d,volume:!(u||f||g||c||d),cachedVideoTag:!(u||f||c||m),firstframe:!(g||m||p||h||b&&b<10||d&&w<4.4),inlineVideo:(!f||10<=b)&&(!m||8.1<=v&&11<=y)&&(!d||3<=w),hlsDuration:!d&&(!o.safari||u||f||c),seekable:!u&&!c,preloadMetadata:!E&&!o.safari})).autoplay=s.firstframe,m&&(s.browser.safari=!1);try{s.video=!!a.canPlayType,s.video&&a.canPlayType("video/mp4")}catch(e){s.video=!1}s.animation=function(){for(var e=["","Webkit","Moz","O","ms","Khtml"],t=document.createElement("p"),n=0;n<e.length;n++)if(void 0!==t.style[e[n]+"AnimationName"])return!0}()},{"../freedomplayer":24,"extend-object":31}],21:[function(e,t,n){"use strict";var U=e("../freedomplayer"),B=e("../common"),R=e("bean"),Y=e("./ui/slider"),F=e("./ui/bar-slider");function r(e){return 10<=(e=parseInt(e,10))?e:"0"+e}function q(e,t){e=Math.max(e||0,0),e=t?Math.ceil(e):Math.floor(e);var t=Math.floor(e/3600),n=Math.floor(e/60);return e-=60*n,1<=t?t+":"+r(n-=60*t)+":"+r(e):r(n)+":"+r(e)}U(function(i,a){if(!U.added_svg_filters){U.added_svg_filters=!0;try{document.body.appendChild(L=B.createElement("div",{},'<svg class="fp-filters" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 0 0">\n  <defs>\n    <filter id="f1" x="-20%" y="-20%" width="200%" height="200%">\n      <feOffset result="offOut" in="SourceAlpha" dx="0" dy="0" />\n      <feColorMatrix result="matrixOut" in="offOut" type="matrix"\n      values="0.3 0 0 0 0 0 0.3 0 0 0 0 0 0.3 0 0 0 0 0 0.4 0" />\n      <feGaussianBlur result="blurOut" in="matrixOut" stdDeviation="4" />\n      <feBlend in="SourceGraphic" in2="blurOut" mode="normal" />\n    </filter>\n  </defs>\n</svg>\n')),B.css(L,{width:0,height:0,overflow:"hidden",position:"absolute",margin:0,padding:0})}catch(e){}}var t,n,r=!1,s=(i.touch_events=function(){if(!r){r="click.player";for(var e=a,t=0;t<4;t++){if(B.hasClass(e,"mobx-item")){r+=" touchend";break}if(!e.parentElement)break;e=e.parentElement}}return r},i.touch_events(),i.conf),l=U.support,o=(B.find(".fp-ratio,.fp-ui",a).forEach(B.removeNode),B.addClass(a,"freedomplayer"),a.appendChild(B.createElement("div",{className:"fp-ratio"})),B.createElement("div",{className:"fp-ui",style:"display: none"},'         <div class="fp-waiting">          <div class="fp-preload"><b></b><b></b><b></b><b></b></div>         </div>         <div class="fp-header">         </div>         <p class="fp-speed-flash"></p>         <div class="fp-play fp-visible">           <a class="fp-icon fp-playbtn"></a>           {{ PLAY_ROUNDED_FILL }}           {{ PLAY_ROUNDED_OUTLINE }}           {{ PLAY_SHARP_FILL }}           {{ PLAY_SHARP_OUTLINE }}         </div>         <div class="fp-pause">           <a class="fp-icon fp-playbtn"></a>           {{ PAUSE_SHARP_OUTLINE }}           {{ PAUSE_SHARP_FILL }}           {{ PAUSE_ROUNDED_OUTLINE }}           {{ PAUSE_ROUNDED_FILL }}         </div>         <div class="fp-controls">            <a class="fp-icon fp-playbtn"></a>            <span class="fp-elapsed">00:00</span>            <div class="fp-timeline fp-bar">               <span class="fp-timestamp"></span>               <div class="fp-progress fp-color"></div>            </div>            <span class="fp-duration"></span>            <span class="fp-remaining"></span>            <div class="fp-volume">               <a class="fp-icon fp-volumebtn"></a>               <div class="fp-volumebar fp-bar-slider">                 <em></em><em></em><em></em><em></em><em></em><em></em><em></em>               </div>            </div>            <a class="fp-fullscreen fp-icon">               <svg class="fp-fullscreen-enter" xmlns="http://www.w3.org/2000/svg" viewBox="-2 -2 40 30" fill="none" xmlns:xlink="http://www.w3.org/1999/xlink"><path d="M1 9V1h12" fill="none" /><path d="M1 9V1h12" transform="matrix(1 0 0 -1 0 26)" fill="none" /><path d="M1 9V1h12" transform="matrix(-1 0 0 1 36 0)" fill="none" /><path d="M1 9V1h12" transform="rotate(180 18 13)" fill="none" /></svg>               <svg class="fp-fullscreen-exit" xmlns="http://www.w3.org/2000/svg" viewBox="-1 -2 40 30" xmlns:xlink="http://www.w3.org/1999/xlink"><path d="M1 9V1h12" transform="translate(22 17)" fill="none" /><path d="M1 9V1h12" transform="matrix(-1 0 0 1 13 17)" fill="none" /><path d="M1 9V1h12" transform="rotate(180 6.5 4.5)" fill="none" /><path d="M1 9V1h12" transform="matrix(1 0 0 -1 22 9)" fill="none" /></svg>            </a>            <a class="fp-unload fp-icon"></a>            <strong class="fp-speed fp-hidden"></strong>         </div>'.replace("{{ PAUSE_ROUNDED_FILL }}",'<svg class="fp-pause-rounded-fill" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><style>.fp-color-play{opacity:0.65;}.rect{fill:#fff;}</style>\n</defs><path class="fp-color-play" d="M49.9217-.078a50,50,0,1,0,50,50A50.0564,50.0564,0,0,0,49.9217-.078Z"/><g class="controlbutton" filter="url(#f1)"><rect class="rect" x="31.844" y="28.1231" width="13.4362" height="43.5973" rx="6.7181" ry="6.7181"/><rect class="rect" x="54.5638" y="28.1231" width="13.4362" height="43.5973" rx="6.7181" ry="6.7181"/></g></svg>\n').replace("{{ PAUSE_ROUNDED_OUTLINE }}",'<svg class="fp-pause-rounded-outline" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 99.8434 99.8434"><defs><style>.fp-color-play{opacity:0.65;}.rect{fill:#fff;}</style>\n</defs><path class="fp-color-play" d="M49.9212-.0783a50,50,0,1,0,50.0006,50A50.0562,50.0562,0,0,0,49.9212-.0783Z"/><g class="controlbutton"><path class="rect" d="M39.0036,71.9726a7.565,7.565,0,0,1-7.557-7.556v-28.99a7.5565,7.5565,0,0,1,15.113,0v28.99A7.5648,7.5648,0,0,1,39.0036,71.9726Zm0-41.904a5.3647,5.3647,0,0,0-5.3593,5.3582v28.99a5.3587,5.3587,0,0,0,10.7174,0v-28.99A5.3645,5.3645,0,0,0,39.0036,30.0686Z" filter="url(#f1)"/><path class="rect" d="M60.84,71.9726a7.5648,7.5648,0,0,1-7.556-7.556v-28.99a7.5565,7.5565,0,0,1,15.113,0v28.99A7.565,7.565,0,0,1,60.84,71.9726Zm0-41.904a5.3645,5.3645,0,0,0-5.3582,5.3582v28.99a5.3587,5.3587,0,0,0,10.7174,0v-28.99A5.3647,5.3647,0,0,0,60.84,30.0686Z" filter="url(#f1)"/></g></svg>\n').replace("{{ PAUSE_SHARP_FILL }}",'<svg class="fp-pause-sharp-fill" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><style>.fp-color-play{opacity:0.65;}.rect{fill:#fff;}</style>\n</defs><path class="fp-color-play" d="M49.9217-.078a50,50,0,1,0,50,50A50.0564,50.0564,0,0,0,49.9217-.078Z"/><g class="controlbutton" filter="url(#f1)"><rect class="rect" x="33.5" y="30.1042" width="12.2634" height="39.7917"/><rect class="rect" x="54.2366" y="30.1042" width="12.2634" height="39.7917"/></g></svg>\n').replace("{{ PAUSE_SHARP_OUTLINE }}",'<svg class="fp-pause-sharp-outline" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 99.8434 99.8434"><defs><style>.fp-color-play{opacity:0.65;}.rect{fill:#fff;}</style>\n</defs><path class="fp-color-play" d="M49.9212-.0783a50,50,0,1,0,50.0006,50A50.0562,50.0562,0,0,0,49.9212-.0783Z"/><g class="controlbutton" filter="url(#f1)"><path class="rect" d="M46.8709,69.9531H33.1385V29.89H46.8709ZM35.1416,67.95h9.7262V31.8935H35.1416Z"/><path class="rect" d="M66.7047,69.9531H52.9722V29.89H66.7047ZM54.9754,67.95h9.7262V31.8935H54.9754Z"/></g></svg>\n').replace("{{ PLAY_SHARP_OUTLINE }}",'<svg class="fp-play-sharp-outline" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 99.844 99.8434"><defs><style>.controlbuttonbg{opacity:0.65;}.controlbutton{fill:#fff;}</style>\n</defs><path class="fp-color-play" d="M49.9217-.078a50,50,0,1,0,50,50A50.0564,50.0564,0,0,0,49.9217-.078Z"/><path class="controlbutton" d="M36.9443,72.2473V27.2916L75.8776,49.77Zm2.2-41.1455V68.4371L71.4776,49.77Z" filter="url(#f1)"/></svg>\n').replace("{{ PLAY_SHARP_FILL }}",'<svg class="fp-play-sharp-fill" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100">\n  <defs>\n    <style>.fp-color-play{opacity:0.65;}.controlbutton{fill:#fff;}</style>\n  </defs>\n  \n  <path class="fp-color-play" d="M49.9217-.078a50,50,0,1,0,50,50A50.0564,50.0564,0,0,0,49.9217-.078Z"/>\n  <polygon class="controlbutton" points="73.601 50 37.968 70.573 37.968 29.427 73.601 50" filter="url(#f1)"/>\n</svg>\n').replace("{{ PLAY_ROUNDED_OUTLINE }}",'<svg class="fp-play-rounded-outline" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 99.844 99.8434"><defs><style>.fp-color-play{opacity:0.65;}.controlbutton{fill:#fff;}</style>\n</defs>\n<path class="fp-color-play" d="M49.9217-.078a50,50,0,1,0,50,50A50.0564,50.0564,0,0,0,49.9217-.078Z"/><path class="controlbutton" d="M41.0359,71.19a5.0492,5.0492,0,0,1-2.5575-.6673c-1.8031-1.041-2.7958-3.1248-2.7958-5.8664V35.1887c0-2.7429.9933-4.8272,2.797-5.8676,1.8025-1.0422,4.1034-.86,6.48.5143L70.4782,44.5672c2.3751,1.3711,3.6826,3.2725,3.6832,5.3545s-1.3076,3.9845-3.6832,5.3562L44.9592,70.0114A7.9384,7.9384,0,0,1,41.0359,71.19Zm.0065-40.123a2.6794,2.6794,0,0,0-1.3582.3413c-1.0263.5926-1.5912,1.9349-1.5912,3.78V64.6563c0,1.8449.5649,3.1866,1.5906,3.7791,1.0281.5932,2.4733.4108,4.07-.512L69.273,53.1906c1.5983-.9227,2.478-2.0838,2.478-3.2689s-.88-2.3445-2.478-3.2666L43.754,31.9227A5.5685,5.5685,0,0,0,41.0423,31.0671Z" filter="url(#f1)"/></svg>\n').replace("{{ PLAY_ROUNDED_FILL }}",'<svg class="fp-play-rounded-fill" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100">\n  <defs><style>.a{fill:#000;opacity:0.65;}.b{fill:#fff;opacity:1.0;}</style>\n  </defs>\n  <path class="fp-color-play" d="M49.9217-.078a50,50,0,1,0,50,50A50.0564,50.0564,0,0,0,49.9217-.078Z"/>\n  <path class="b" d="M35.942,35.2323c0-4.7289,3.3506-6.6637,7.446-4.2971L68.83,45.6235c4.0956,2.364,4.0956,6.2319,0,8.5977L43.388,68.91c-4.0954,2.364-7.446.43-7.446-4.2979Z" filter="url(#f1)"/>\n  </svg>\n  \n').replace(/url\(#/g,"url("+window.location.href.replace(window.location.hash,"").replace(/\#$/g,"")+"#")));function e(e){return B.find(".fp-"+e,a)[0]}a.appendChild(o),"function"==typeof window.requestAnimationFrame?window.requestAnimationFrame(function(){o.style.display=""}):o.style.display="";e("waiting");var u,c=e("elapsed"),f=e("ratio"),d=e("speed-flash"),p=e("duration"),h=e("remaining"),g=e("timestamp"),P=B.css(f,"padding-top"),m=e("play"),v=e("pause"),y=e("timeline"),b=Y(y,i,a),w=e("fullscreen"),E=e("volumebar"),C=F(E,{rtl:i.rtl}),x=B.hasClass(a,"no-toggle"),M=!1,T=(b.disableAnimation(B.hasClass(a,"is-touch")),i.sliders=i.sliders||{},i.sliders.timeline=b,i.sliders.volume=C,[]);function A(e){B.css(f,"padding-top",100*e+"%"),l.inlineBlock||B.height(B.find("object",a)[0],B.height(a))}function _(e){k(e&&i.was_played),e?(u=new Date,i.on("pause.x volume.x",e=function(e){var t;l.touch||"number"!=typeof e.clientY||(t=o.getBoundingClientRect(),t=e.clientY-t.top-document.documentElement.scrollTop,B.toggleClass(a,"is-mouseover-top",t<.33*o.clientHeight),B.hasClass(a,"is-fullscreen")&&t<.05*o.clientHeight&&e.clientX>.95*o.clientWidth?n=n||setTimeout(function(){B.addClass(a,"is-fullscreen-exit-hint"),setTimeout(function(){B.removeClass(a,"is-fullscreen-exit-hint"),clearInterval(n)},2e3),clearInterval(n),n=setInterval(function(){B.toggleClass(w,"bold")},300)},1e3):(B.toggleClass(a,"is-mouseover-bottom",t>.8*o.clientHeight||M),clearInterval(n),n=!1,B.toggleClass(w,"bold",!1),B.removeClass(a,"is-fullscreen-exit-hint"))),void 0===i.video.click&&(k(i.was_played),u=new Date)}),R.on(a,"mousemove.x touchmove.x",e),R.on(g,"mousemove",function(){M=!0}),R.on(g,"mouseleave",function(){M=!1}),clearInterval(t),t=setInterval(function(){if(new Date-u>s.mouseoutTimeout){if(!l.touch||i.playing){if(!l.touch&&(B.hasClass(a,"is-mouseover-bottom")||B.hasClass(a,"is-mouseover-top")))return;k(!1)}u=new Date}},250)):(R.off(a,"mousemove.x touchmove.x"),i.off("pause.x volume.x"),clearInterval(t))}function k(e){e?(B.addClass(a,"is-mouseover"),B.removeClass(a,"is-mouseout")):(B.addClass(a,"is-mouseout"),B.removeClass(a,"is-mouseover"),B.removeClass(a,"is-mouseover-top"),B.removeClass(a,"is-mouseover-bottom"))}i.hover=_,s.ratio&&A(s.ratio);try{s.fullscreen||(w.style.display="none")}catch(e){B.removeNode(w)}i.on("dvrwindow",function(){b.disable(!1)}),i.on("ready",function(e,t,n){var r=t.get_video_duration();b.disable(t.disabled||!r),s.adaptiveRatio&&!isNaN(n.height/n.width)&&A(n.height/n.width),B.html([p,h],t.live?"Live":q(r)),B.toggleClass(a,"is-long",3600<=r),C.slide(t.volumeLevel),"flash"===t.engine.engineName?b.disableAnimation(!0,!0):b.disableAnimation(!1),B.find(".fp-title",o).forEach(B.removeNode),n.title&&B.prepend(o,B.createElement("div",{className:"fp-message fp-title"},n.title)),B.toggleClass(a,"has-title",!!n.title)}).on("unload",function(){P||s.splash||B.css(f,"paddingTop",""),b.slide(0),B.addClass(m,"fp-visible")}).on("buffer",function(e,r,t){var n=r.video,o=n.buffer/r.get_video_duration(),i=(!n.seekable&&l.seekable&&b.max(r.conf.live?1/0:o),n.seekable&&l.seekable&&b.getMax()&&b.max(1),t&&"number"!=typeof t||(t=[{start:0,end:n.buffer}]),B.find(".fp-buffer",y));i.length!==t.length&&(i.forEach(B.removeNode),i=[]),t.forEach(function(e,t){e.start-=r.get_video_start(),e.start<0&&(e.start=0),e.end-=r.get_video_start(),e.end<0&&(e.end=0);var t=i[t]||B.createElement("div",{className:"fp-buffer"}),n=r.get_video_duration();e.end>n&&(e.end=n),r.rtl?B.css(t,{right:100*e.start/n+"%",width:100*(e.end-e.start)/n+"%"}):B.css(t,{left:100*e.start/n+"%",width:100*(e.end-e.start)/n+"%"}),B.prepend(y,t)})}).on("speed",function(e,t,n){t.video.time&&(B.text(d,n+"x"),B.addClass(d,"fp-shown"),(T=T.filter(function(e){return clearTimeout(e),!1})).push(setTimeout(function(){B.addClass(d,"fp-hilite"),T.push(setTimeout(function(){B.removeClass(d,"fp-hilite"),T.push(setTimeout(function(){B.removeClass(d,"fp-shown")},300))},1e3))})))}).on("buffered",function(){b.max(1)}).on("progress seek",function(e,t,n){var r=i.get_video_duration(),o=i.video.seekOffset||0,o=(void 0===n&&(n=i.video.time),((n=i.get_custom_time?i.get_custom_time(n):n)-o)/(r-o));b.dragging||"progress"==e.type&&t.seeking||b.slide(o,i.seeking?0:250),B.toggleClass(a,"is-live-position",r-n<s.livePositionOffset),B.html(c,q(n)),B.html(h,q(r-n,!0))}).on("finish resume seek",function(e){B.toggleClass(a,"is-finished","finish"==e.type)}).on("resume",function(){l.touch?(B.addClass(v,"fp-visible"),B.removeClass(m,"fp-visible"),B.addClass(m,"fp-visible-change"),setTimeout(function(){B.removeClass(m,"fp-visible-change")},300)):(B.addClass(m,"fp-visible"),setTimeout(function(){B.removeClass(m,"fp-visible")},300))}).on("pause",function(){setTimeout(function(){i.finished||i.playing||(l.touch?(B.addClass(m,"fp-visible"),B.removeClass(v,"fp-visible"),B.addClass(v,"fp-visible-change"),setTimeout(function(){B.removeClass(v,"fp-visible-change")},300)):(B.addClass(v,"fp-visible"),setTimeout(function(){B.removeClass(v,"fp-visible")},300)))},0)}).on("stop",function(){B.html(c,q(0)),b.slide(0,100)}).on("finish",function(){B.html(c,q(i.get_video_duration())),b.slide(1,100),B.removeClass(a,"is-seeking")}).on("beforeseek",function(){}).on("volume",function(){C.slide(i.volumeLevel)}).on("disable",function(){var e=i.disabled;b.disable(e),C.disable(e),B.toggleClass(a,"is-disabled",i.disabled)}).on("mute",function(e,t,n){B.toggleClass(a,"is-muted",n)}).on("error",function(e,t,n){var r,o;B.removeClass(a,"is-loading"),B.removeClass(a,"is-seeking"),B.addClass(a,"is-error"),n&&(t.error=!0,r=n.code,(n.message||"").match(/DECODER_ERROR_NOT_SUPPORTED/)&&(r=3),n=n.custom_message||(t.engine&&t.engine.engineName||"html5")+": "+s.errors[r],o=t.message(n),B.removeClass(a,"is-mouseover"),t.one("load progress",function(e){"progress"!=e.type||t.error||o()}))}).one("resume ready",function(){var e,t=B.find("video.fp-engine",a)[0];!t||B.width(t)&&B.height(t)||(e=a.style.overflow,a.style.overflow="visible",setTimeout(function(){e?a.style.overflow=e:a.style.removeProperty("overflow")}))}),R.on(a,"mouseenter mouseleave",function(e){x||_("mouseover"==e.type)}),R.on(a,"mouseleave",function(){(b.dragging||C.dragging)&&(B.addClass(a,"is-mouseover"),B.removeClass(a,"is-mouseout"))}),R.on(a,r,function(e){return!i.disabled&&(B.hasParent(e.target,".fp-play,.fp-pause")||(!i.was_played||!l.touch||B.hasClass(a,"no-controlbar"))&&(B.hasClass(e.target,"fp-ui")||B.hasClass(e.target,"fp-engine"))||void 0!==i.video.click)?(e.preventDefault&&e.preventDefault(),i.playing&&(i.manual_pause=!0),i.toggle()):void 0}),R.on(a,"mousemove touchmove",".fp-timeline",function(e){var r,t=e.pageX||e.clientX,e=(t=!t&&e.originalEvent&&e.originalEvent.touches&&e.originalEvent.touches.length?e.originalEvent.touches[0].pageX:t)-B.offset(y).left,t=e/B.width(y),n=i.video,n=i.get_video_duration()-(void 0===n.seekOffset?0:n.seekOffset),o=(i.rtl?1-t:t)*n;t<0||(r="",n=i.get_video_index(),i.fv_timeline_chapters_data&&i.fv_timeline_chapters_data[n]&&i.fv_timeline_chapters_data[n].forEach(function(e){var t=e.startTime-i.get_video_start(),n=e.endTime-i.get_video_start();t<=o&&o<=n&&(r=e.line)}),t=q(o),r&&(t=t+" "+r),B.html(g,t),!1!==(n=(n=(n=e-B.width(g)/2)<0?0:n)>B.width(y)-B.width(g)?!1:n)?B.css(g,{left:n+"px",right:"auto"}):B.css(g,{left:"auto",right:"0px"}))}),R.on(a,"contextmenu",function(e){var t=window,n=B.find(".fp-context-menu",a)[0];n&&(e.preventDefault(),i.showMenu(n,{left:e.clientX-t.scrollX,top:e.clientY-t.scrollY}),R.on(a,r,".fp-context-menu",function(e){e.stopPropagation()}))}),s.poster&&B.css(a,"background-image","url("+s.poster+")");var N,L=B.css(a,"background-color"),L="none"!=B.css(a,"background-image")||L&&"rgba(0, 0, 0, 0)"!=L&&"transparent"!=L;function S(){"function"==typeof window.requestAnimationFrame?requestAnimationFrame(I):I()}function I(){var e=(B.find(".fp-player",a)[0]||a).clientWidth;B.toggleClass(a,"is-tiny",e<400&&0<e),B.toggleClass(a,"is-small",400<=e&&e<600)}s.splash||(s.poster||(s.poster=!0),N=function(){B.addClass(a,"is-poster"),B.addClass(m,"fp-visible"),i.poster=!0,i.on("resume.poster progress.poster beforeseek.poster",function(e){"beforeseek"!==e.type&&!i.playing||(B.removeClass(a,"is-poster"),B.removeClass(m,"fp-visible"),i.poster=!1,i.off(".poster"))})},i.on("stop",function(){N()}),i.on("ready",function(e,t,n){n.index||n.autoplay||N()})),"string"==typeof s.splash&&B.css(a,"background-image","url('"+s.splash+"')"),!L&&i.forcedSplash&&B.css(a,"background-color","#555"),R.on(a,r,".fp-toggle, .fp-play, .fp-playbtn",function(){i.disabled||(i.playing&&(i.manual_pause=!0),i.toggle())}),R.on(a,r,".fp-volumebtn",function(){i.mute()}),R.on(a,r,".fp-fullscreen",function(){i.fullscreen()}),R.on(a,r,".fp-unload",function(){i.unload()}),R.on(y,"slide",function(e){var t=i.get_video_duration(),e=t?i.get_video_start()+e*t:0;i.seeking=!0,i.manual_seeking=!0,i.custom_seek?i.custom_seek(e):i.seek(e)}),R.on(E,"slide",function(e){i.volume(e)}),R.on(a,r,".fp-duration,.fp-remaining",function(){if(i.dvr)return i.seekTo(10);B.toggleClass(a,"is-inverted")}),k(x),i.on("shutdown",function(){R.off(y),R.off(E),B.removeNode(o),B.find(".fp-ratio",a).forEach(B.removeNode)}),S();function z(){clearTimeout(O),O=setTimeout(D,j)}var D,j,O;D=S,j=250;window.addEventListener("resize",z)}),t.exports.format=q},{"../common":1,"../freedomplayer":24,"./ui/bar-slider":22,"./ui/slider":23,bean:27}],22:[function(e,t,n){var c=e("bean"),f=e("../../common");t.exports=function(o,e){var r=(e=e||{}).activeClass||"fp-color",i=e.inactiveClass||"fp-grey",t=e.childSelector||"em",a=!!e.rtl,n=!1,s=f.find(t,o).length,l={unload:function(){c.off(o,".barslider")},slide:function(n,e){f.find(t,o).forEach(function(e,t){t=t/s<n;f.toggleClass(e,r,t),f.toggleClass(e,i,!t)}),e&&c.fire(o,"slide",[n])},disable:function(e){n=e}};return c.on(o,"mousedown.sld touchstart.sld",function(e){e.preventDefault(),n||(l.slide(u(e),!0),c.on(freedomplayer.support.touch?o:document,"mousemove.sld touchmove.sld",function(e){e.preventDefault(),l.slide(u(e),!0)}),c.one(document,"mouseup.sld touchup.sld",function(){c.off(freedomplayer.support.touch?o:document,"mousemove.sld touchmove.sld")}))}),l;function u(e){var t=e.pageX||e.clientX,n=f.offset(o),r=f.width(o),e=(t=!t&&e.originalEvent&&e.originalEvent.touches&&e.originalEvent.touches.length?e.originalEvent.touches[0].pageX:t)-n.left,t=Math.max(0,Math.min(r,e))/r;return t=a?1-t:t}}},{"../../common":1,bean:27}],23:[function(e,t,n){"use strict";var b=e("bean"),w=e("../../common");t.exports=function(i,a,s){function l(){var e;n=w.offset(i),t=w.width(i),o=w.height(i),p=d?o:t,e=h,g=Math.max(0,Math.min(p,d?(1-e)*o:e*t))}function u(e,t){f||e==y.value||h&&!(e<h)||t||(b.fire(i,"slide",[e]),y.value=e)}function c(e){!(t=!(t=!(t=e.pageX||e.clientX)&&e.originalEvent&&e.originalEvent.pageX?e.originalEvent.pageX:t)&&e.originalEvent&&e.originalEvent.touches&&e.originalEvent.touches.length?e.originalEvent.touches[0].pageX:t)&&e.originalEvent&&e.originalEvent.changedTouches&&e.originalEvent.changedTouches.length&&(t=e.originalEvent.changedTouches[0].pageX);var e=d?e.pageY-n.top:t-n.left,t=Math.max(0,Math.min(g||p,e))/p;return d&&(t=1-t),a.rtl&&(t=1-t),r(t,0)}function r(e,t){void 0===t&&(t=0),1<e&&(e=1);var n=Math.round(1e3*e)/10+"%";return(!h||e<=h)&&(v?w.removeClass(m,"animated"):(w.addClass(m,"animated"),w.css(m,"transition-duration",(t||0)+"ms")),w.css(m,"width",n)),e}var f,n,t,o,d,p,h,g,m=w.lastChild(i),v=!1,y={max:function(e){h=e},getMax:function(){return h},disable:function(e){f=e},slide:function(e,t,n){l(),n&&u(e),r(e,t)},disableAnimation:function(e,t){v=!1!==e,w.toggleClass(i,"no-animation",!!t)}};return l(),b.on(i,"mousedown.sld touchstart",function(e){var t,n,r,o;(!w.hasClass(s,"is-mouseout")||w.hasClass(s,"is-splash")||w.hasClass(s,"is-seeking")||w.hasClass(s,"fixed-controls")||w.hasClass(s,"is-mobile-seeking"))&&(e.preventDefault(),f||(n=u,r=100,t=function(){o||(n.apply(this,arguments),o=1,setTimeout(function(){o=0},r))},l(),y.dragging=!0,u(c(e)),b.on(document,"mousemove.sld touchmove.sld",function(e){w.addClass(i,"is-fp-dragging"),e.preventDefault(),t(c(e),a.video.timeline_vtt)}),b.one(document,"mouseup touchend",function(e){a.video.timeline_vtt?(u(c(e)),setTimeout(function(){y.dragging=!1},250)):y.dragging=!1,w.removeClass(i,"is-fp-dragging"),b.off(document,"mousemove.sld touchmove.sld")})))}),y}},{"../../common":1,bean:27}],24:[function(e,t,n){"use strict";var l,h=e("extend-object"),g=e("is-function"),m=e("bean"),r=e("./ext/ui/slider"),o=e("./ext/ui/bar-slider"),v=e("./common"),y=e("./ext/events"),b=[],w=[],i=window.onbeforeunload,a=(window.onbeforeunload=function(e){if(b.forEach(function(e){e.conf.splash?e.unload():e.bind("error",function(){v.find(".freedomplayer.is-error .fp-message").forEach(v.removeNode)})}),i)return i(e)},/Safari/.exec(navigator.userAgent)&&!/Chrome/.exec(navigator.userAgent)),s=/(\d+\.\d+) Safari/.exec(navigator.userAgent),s=s?Number(s[1]):100,E=t.exports=function(e,t,n){return g(e)?w.push(e):"number"==typeof e||void 0===e?b[e||0]:e.nodeType?null!==e.getAttribute("data-freedomplayer-instance-id")?b[e.getAttribute("data-freedomplayer-instance-id")]:t?u(e,t,n):void 0:e.jquery?E(e[0],t,n):"string"==typeof e?(e=v.find(e)[0])&&E(e,t,n):void 0},C=(h(E,{version:"8.0.20",engines:[],engine:function(t){return E.engines.filter(function(e){return e.engineName===t})[0]},extensions:[],conf:{},set:function(e,t){"string"==typeof e?E.conf[e]=t:h(E.conf,e)},registerExtension:function(e,t){E.extensions.push([e,t])},support:{},defaults:{debug:!1,disabled:!1,fullscreen:window==window.top,keyboard:!0,ratio:9/16,adaptiveRatio:!1,rtmp:0,proxy:"best",hlsQualities:!0,seekStep:!1,splash:!1,live:!1,livePositionOffset:120,speeds:[.25,.5,1,1.5,2],tooltip:!0,mouseoutTimeout:2e3,mutedAutoplay:!0,clickToUnMute:!0,volume:1,errors:["","Video loading aborted","Network error","Video not properly encoded","Video file not found","Unsupported video","Skin not found","SWF file not found","Subtitles not found","Invalid RTMP URL","Unsupported video format. Try installing Adobe Flash."],errorUrls:["","","","","","","","","","","http://get.adobe.com/flashplayer/"],playlist:[],hlsFix:a&&s<8,disableInline:!1},bean:m,common:v,slider:r,barSlider:o,extend:h}),0),x=e("./ext/resolve");function u(e,t,n){t&&t.embed&&(t.embed=h({},E.defaults.embed,t.embed));var r=!1;try{void 0===E.conf.storage&&"object"==typeof window.localStorage&&(window.localStorage.freedomplayerTestStorage="test",r=!0)}catch(e){}var o,i,a,s=e,l=h({},E.defaults,E.conf,t),u={},c=s.className,f=new x;v.addClass(s,"is-loading"),v.toggleClass(s,"no-flex",!E.support.flex);try{u=E.conf.storage||(r?window.localStorage:u)}catch(e){}l.volume="true"===u.muted?0:(l.volume!==E.defaults.volume||isNaN(u.volume)?l:u).volume,l.debug=!!u.freedomplayerDebug||l.debug,l.aspectRatio&&"string"==typeof l.aspectRatio&&(e=l.aspectRatio.split(/[:\/]/),l.ratio=e[1]/e[0]);var t=s.currentStyle&&"rtl"===s.currentStyle.direction||window.getComputedStyle&&null!==window.getComputedStyle(s,null)&&"rtl"===window.getComputedStyle(s,null).getPropertyValue("direction"),d=(t&&v.addClass(s,"is-rtl"),{conf:l,currentSpeed:1,volumeLevel:l.muted?0:void 0===l.volume?+u.volume:l.volume,video:{},disabled:!1,finished:!1,loading:!1,muted:"true"==u.muted||l.muted,paused:!1,playing:!1,ready:!1,splash:!1,rtl:t,hijack:function(e){try{d.engine.suspendEngine()}catch(e){}d.hijacked=e},release:function(){try{d.engine.resumeEngine()}catch(e){}d.hijacked=!1},debug:function(){l.debug&&console.log.apply(console,["DEBUG"].concat([].slice.call(arguments)))},load:function(e,t){if(!d.error&&!d.loading){d.video={},d.finished=!1,e=e||l.clip,e=h({},f.resolve(e,l.clip.sources)),(d.playing||d.engine)&&(e.autoplay=!0);var n=p(e);if(!n)return setTimeout(function(){d.trigger("error",[d,{code:5}])})&&d;if(n.engineName)return d.engine&&n.engineName===d.engine.engineName||(d.ready=!1,d.engine&&(d.engine.unload(),d.conf.autoplay=!0),i=d.engine=n(d,s),d.one("ready",function(){setTimeout(function(){d.muted?d.mute(!0,!0):i.volume(d.volumeLevel)})})),h(e,i.pick(e.sources.filter(function(e){return!e.engine||e.engine===i.engineName}))),e.src&&(d.trigger("load",[d,e,i],!0).defaultPrevented?d.loading=!1:(d.ready=!1,i.load(e),(t=g(e)?e:t)&&d.one("ready",t))),d;throw new Error("engineName property of factory should be exposed")}},pause:function(e){return d.hijacked?d.hijacked.pause(e)|d:(!d.ready||d.seeking||d.loading||(i.pause(),d.one("pause",e)),d)},resume:function(){var e=d.trigger("beforeresume",[d],!0);if(!e.defaultPrevented)return d.hijacked?d.hijacked.resume()|d:(d.ready&&d.paused&&(i.resume(),d.finished)&&(d.trigger("resume",[d]),d.finished=!1),d)},toggle:function(){return d.ready?d.paused?d.resume():d.pause():d.load()},seek:function(e,t){if("boolean"==typeof e&&(n=d.conf.seekStep||.1*d.video.duration,e=d.video.time+(e?n:-n),e=Math.min(Math.max(e,0),d.video.duration-.1)),void 0!==e){e<d.get_video_start()&&(e=d.get_video_start());var n=d.get_video_duration()+d.get_video_start();if(n<e&&(e=n),d.hijacked)return d.hijacked.seek(e,t)|d;d.ready&&(o=e,d.trigger("beforeseek",[d,e],!0).defaultPrevented?(d.seeking=!1,d.manual_seeking=!1,d.seeking?(clearInterval(a),a=setTimeout(function(){v.toggleClass(s,"is-seeking",d.seeking)},500)):v.removeClass(s,"is-seeking")):(i.seek(e),g(t)&&d.one("seek",t)))}return d},seekTo:function(e,t){return void 0===e?d.seek(o,t):void 0!==d.video.seekOffset?d.seek(d.video.seekOffset+.1*(d.video.duration-d.video.seekOffset)*e,t):d.seek(.1*d.video.duration*e,t)},mute:function(e,t){return void 0===e&&(e=!d.muted),d.muted=e,t||(u.muted=e,u.volume=(isNaN(u.volume)?l:u).volume,E.support.volume)||e||(u.volume=1),void 0!==i.mute?i.mute(e):(d.volume(e?0:u.volume,!0),d.trigger("mute",[d,e])),d},volume:function(e,t){if(0!=(e=E.support.android&&0<parseFloat(e)?1:e))return d.ready&&(e=Math.min(Math.max(e,0),1),t||(u.volume=e),i.volume(e)),d;d.mute(!0,t)},speed:function(e,t){return d.ready&&("boolean"==typeof e&&(e=l.speeds[l.speeds.indexOf(d.currentSpeed)+(e?1:-1)]||d.currentSpeed),i.speed(e),t)&&s.one("speed",t),d},stop:function(){return d.ready&&(d.pause(),!d.live||d.dvr?d.seek(0,function(){d.trigger("stop",[d])}):d.trigger("stop",[d])),d},unload:function(){return l.splash?(d.trigger("unload",[d]),i&&(i.unload(),d.engine=i=0)):d.stop(),d},shutdown:function(){d.unload(),d.trigger("shutdown",[d]),m.off(s),delete b[s.getAttribute("data-freedomplayer-instance-id")],s.removeAttribute("data-freedomplayer-instance-id")},disable:function(e){return(e=void 0===e?!d.disabled:e)!=d.disabled&&(d.disabled=e,d.trigger("disable",e)),d},is_playlist:function(){return d.conf.playlist&&1<d.conf.playlist.length},is_last_video:function(){return d.is_playlist()&&d.get_video_index()==d.conf.playlist.length-1},get_video_index:function(){return d.video.index||0},get_video_duration:function(){return d.get_custom_duration?d.get_custom_duration():d.video.duration},get_video_start:function(){return d.get_custom_start?d.get_custom_start():0},get_video_end:function(){return d.get_custom_end?d.get_custom_end():d.video.duration},registerExtension:function(e,t){"string"==typeof(t=t||[])&&(t=[t]),(e="string"==typeof(e=e||[])?[e]:e).forEach(function(e){d.extensions.js.push(e)}),t.forEach(function(e){d.extensions.css.push(e)})}}),p=(d.conf=h(d.conf,l),d.extensions={js:[],css:[]},E.extensions.forEach(function(e){d.registerExtension(e[0],e[1])}),y(d),function(e){var n,r=E.engines;if(l.engine){var t=r.filter(function(e){return e.engineName===l.engine})[0];if(t&&e.sources.some(function(e){return(!e.engine||e.engine===t.engineName)&&t.canPlay(e.type,d.conf)}))return t}return l.enginePreference&&(r=E.engines.filter(function(e){return-1<l.enginePreference.indexOf(e.engineName)}).sort(function(e,t){return l.enginePreference.indexOf(e.engineName)-l.enginePreference.indexOf(t.engineName)})),e.sources.some(function(t){var e=r.filter(function(e){return(!t.engine||t.engine===e.engineName)&&e.canPlay(t.type,d.conf)}).shift();return e&&(n=e),!!e}),n});return s.getAttribute("data-freedomplayer-instance-id")||(s.setAttribute("data-freedomplayer-instance-id",C++),s.setAttribute("tabindex",0),d.on("boot",function(){var e=E.support;!l.splash&&!v.hasClass(s,"is-splash")&&e.firstframe||(d.forcedSplash=!l.splash&&!v.hasClass(s,"is-splash"),d.splash=!0,l.splash||(l.splash=!0),v.addClass(s,"is-splash")),l.splash&&v.find("video",s).forEach(v.removeNode),(l.dvr||l.live||v.hasClass(s,"is-live"))&&(d.live=l.live=!0,d.dvr=l.dvr=!!l.dvr||v.hasClass(s,"is-dvr"),v.addClass(s,"is-live"),v.toggleClass(s,"is-dvr",d.dvr)),w.forEach(function(e){e(d,s)}),b.push(d),l.splash?d.unload():d.load(),l.disabled&&d.disable(),d.one("ready",n),d.one("shutdown",function(){s.className=c})}).on("load",function(e,t,n){l.splash&&v.find(".freedomplayer.is-ready,.freedomplayer.is-loading").forEach(function(e){var e=e.getAttribute("data-freedomplayer-instance-id");e!==s.getAttribute("data-freedomplayer-instance-id")&&(e=b[Number(e)])&&e.conf.splash&&e.unload()}),v.addClass(s,"is-loading"),t.loading=!0,void 0===n.live&&void 0===n.dvr||(v.toggleClass(s,"is-live",n.dvr||n.live),v.toggleClass(s,"is-dvr",!!n.dvr),t.live=n.dvr||n.live,t.dvr=!!n.dvr)}).on("ready",function(e,t,n){n.time=0,t.video=n,v.removeClass(s,"is-loading"),t.loading=!1,t.muted?t.mute(!0,!0):t.volume(t.volumeLevel);t=t.conf.hlsFix&&/mpegurl/i.exec(n.type);v.toggleClass(s,"hls-fix",!!t)}).on("unload",function(){v.removeClass(s,"is-loading"),d.loading=!1,v.removeClass(s,"was-played"),d.was_played=!1}).on("ready unload",function(e){e="ready"==e.type;v.toggleClass(s,"is-splash",!e),v.toggleClass(s,"is-ready",e),d.ready=e,d.splash=!e}).on("progress",function(e,t,n){t.was_played||(t.was_played=!0,v.addClass(s,"was-played")),t.video.time=n}).on("buffer",function(e,t,n){t.video.buffer="number"==typeof n?n:n.length?n[n.length-1].end:0}).on("speed",function(e,t,n){t.currentSpeed=n}).on("volume",function(e,t,n){t.volumeLevel=Math.round(100*n)/100,t.muted&&n&&t.mute(!1)}).on("beforeseek seek",function(e){d.seeking="beforeseek"==e.type,d.seeking?(clearInterval(a),a=setTimeout(function(){v.toggleClass(s,"is-seeking",d.seeking)},500)):v.removeClass(s,"is-seeking"),"seek"==e.type&&setTimeout(function(){d.manual_seeking=!1},0)}).on("ready pause resume unload finish stop",function(e){d.paused=/pause|finish|unload|stop/.test(e.type),d.paused=d.paused||"ready"===e.type&&!l.autoplay&&!d.playing,"pause"==e.type&&setTimeout(function(){d.manual_pause=!1},0),d.playing=!d.paused,v.toggleClass(s,"is-paused",d.paused),v.toggleClass(s,"is-playing",d.playing)}).on("finish",function(){d.finished=!0}).on("error",function(){})),d.trigger("boot",[d,s]),d}void 0!==window.jQuery&&((l=window.jQuery)(function(){"function"==typeof l.fn.freedomplayer&&l('.freedomplayer:has(video:not(.fp-engine),script[type="application/json"])').freedomplayer()}),l.fn.freedomplayer=function(a,s){return this.each(function(){g(a="string"==typeof a?{swf:a}:a)&&(s=a,a={});var r,o,i,t=l(this),e=t.find('script[type="application/json"]'),e=e.length?JSON.parse(e.text()):(r=t.find("video")).length?(o=r.data()||{},i={},l.each(["autoplay","loop","preload","poster"],function(e,t){var n=r.attr(t);void 0!==n&&-1!==["autoplay","poster"].indexOf(t)?i[t]=n||!0:void 0!==n&&(o[t]=n||!0)}),r[0].autoplay=r[0].preload=!1,o.subtitles=r.find("track").map(function(){var e=l(this);return{src:e.attr("src"),kind:e.attr("kind"),label:e.attr("label"),srclang:e.attr("srclang"),default:e.prop("default")}}).get(),o.sources=(new x).sourcesFromVideoTag(r,l),h(i,{clip:o})):{},n=u(this,l.extend({},a||{},e,t.data()),s);y.EVENTS.forEach(function(e){n.on(e+".jquery",function(e){t.trigger.call(t,e.type,e.detail&&e.detail.args)})}),t.data("freedomplayer",n),t.data("flowplayer",n)})})},{"./common":1,"./ext/events":9,"./ext/resolve":17,"./ext/ui/bar-slider":22,"./ext/ui/slider":23,bean:27,"extend-object":31,"is-function":34}],25:[function(e,t,n){t=t.exports=e("./freedomplayer");"undefined"==typeof flowplayer&&(window.flowplayer=t,"undefined"!=typeof jQuery)&&(jQuery.fn.flowplayer=jQuery.fn.freedomplayer),e("./ext/support"),e("./engine/hlsjs"),e("./engine/html5"),e("./ext/ui"),e("./ext/message"),e("./ext/keyboard"),e("./ext/playlist"),e("./ext/cuepoint"),e("./ext/subtitle"),e("./ext/analytics"),e("./ext/airplay"),e("./ext/chromecast"),e("./ext/qsel"),e("./ext/menu"),e("./ext/fullscreen"),e("./ext/mobile"),t(function(e,t){var n;void 0!==e.conf.logo&&((n=document.createElement("img")).src=e.conf.logo,(e=document.createElement("a")).className="fp-logo",e.appendChild(n),(t.querySelector(".fp-player")||t).appendChild(e))})},{"./engine/hlsjs":2,"./engine/html5":4,"./ext/airplay":5,"./ext/analytics":6,"./ext/chromecast":7,"./ext/cuepoint":8,"./ext/fullscreen":10,"./ext/keyboard":11,"./ext/menu":12,"./ext/message":13,"./ext/mobile":14,"./ext/playlist":15,"./ext/qsel":16,"./ext/subtitle":18,"./ext/support":20,"./ext/ui":21,"./freedomplayer":24}],26:[function(e,t,n){"use strict";n.byteLength=function(e){var e=c(e),t=e[0],e=e[1];return 3*(t+e)/4-e},n.toByteArray=function(e){var t,n,r=c(e),o=r[0],r=r[1],i=new u(function(e,t){return 3*(e+t)/4-t}(o,r)),a=0,s=0<r?o-4:o;for(n=0;n<s;n+=4)t=l[e.charCodeAt(n)]<<18|l[e.charCodeAt(n+1)]<<12|l[e.charCodeAt(n+2)]<<6|l[e.charCodeAt(n+3)],i[a++]=t>>16&255,i[a++]=t>>8&255,i[a++]=255&t;2===r&&(t=l[e.charCodeAt(n)]<<2|l[e.charCodeAt(n+1)]>>4,i[a++]=255&t);1===r&&(t=l[e.charCodeAt(n)]<<10|l[e.charCodeAt(n+1)]<<4|l[e.charCodeAt(n+2)]>>2,i[a++]=t>>8&255,i[a++]=255&t);return i},n.fromByteArray=function(e){for(var t,n=e.length,r=n%3,o=[],i=0,a=n-r;i<a;i+=16383)o.push(function(e,t,n){for(var r,o=[],i=t;i<n;i+=3)r=(e[i]<<16&16711680)+(e[i+1]<<8&65280)+(255&e[i+2]),o.push(function(e){return s[e>>18&63]+s[e>>12&63]+s[e>>6&63]+s[63&e]}(r));return o.join("")}(e,i,a<i+16383?a:i+16383));1==r?(t=e[n-1],o.push(s[t>>2]+s[t<<4&63]+"==")):2==r&&(t=(e[n-2]<<8)+e[n-1],o.push(s[t>>10]+s[t>>4&63]+s[t<<2&63]+"="));return o.join("")};for(var s=[],l=[],u="undefined"!=typeof Uint8Array?Uint8Array:Array,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,i=r.length;o<i;++o)s[o]=r[o],l[r.charCodeAt(o)]=o;function c(e){var t=e.length;if(0<t%4)throw new Error("Invalid string. Length must be a multiple of 4");e=e.indexOf("="),t=(e=-1===e?t:e)===t?0:4-e%4;return[e,t]}l["-".charCodeAt(0)]=62,l["_".charCodeAt(0)]=63},{}],27:[function(e,t,n){var r,o;r=this,o=function(e,t){e=e||"bean",t=t||this;function l(e,t){return T||t||e!==x&&e!==b?e:M}function n(e){a=arguments.length?e:x.querySelectorAll?function(e,t){return t.querySelectorAll(e)}:function(){throw new Error("Bean: No selector engine installed")}}function i(e,t){if(T||!t||!e||e.propertyName=="_on"+t){var n=S.get(this,t||e.type,null,!1),r=n.length,o=0;for(e=new H(e,this,!0),t&&(e.type=t);o<r&&!e.isImmediatePropagationStopped();o++)n[o].removed||n[o].handler.call(this,e)}}function P(o,n){function r(e,t){for(var n,r=N(o)?a(o,t):o;e&&e!==t;e=e.parentNode)for(n=r.length;n--;)if(r[n]===e)return e}function e(e){var t=r(e.target,this);t&&n.apply(t,arguments)}return e.__beanDel={ft:r,selector:o},e}function f(e,t,n,r){var o,i,a,s,l,u,c;if(void 0!==n||"object"!=typeof t){for(r=F(n)?(l=_.call(arguments,3),o=n):(o=r,l=_.call(arguments,4),P(n,o)),a=k(t),this===Y&&(r=X(D,e,t,r,o)),s=a.length;s--;)c=S.put(u=new V(e,a[s].replace(E,""),r,o,k(a[s].replace(w,""),"."),l,!1)),u[A]&&c&&Q(e,u.eventType,!0,u.customType);return e}for(i in t)t.hasOwnProperty(i)&&f.call(this,e,i,t[i])}var a,d,p,r,o,s,u,c,h,g,m,z,v,y,U,B,b=window,R=t[e],w=/[^\.]*(?=\..*)\.|.*/,E=/\..*/,C="addEventListener",x=document||{},M=x.documentElement||{},T=M[C],A=T?C:"attachEvent",Y={},_=Array.prototype.slice,k=function(e,t){return e.split(t||" ")},N=function(e){return"string"==typeof e},F=function(e){return"function"==typeof e},q=function(e,t,n){for(n=0;n<t.length;n++)t[n]&&(e[t[n]]=1);return e}({},k("click dblclick mouseup mousedown contextmenu mousewheel mousemultiwheel DOMMouseScroll mouseover mouseout mousemove selectstart selectend keydown keypress keyup orientationchange focus blur change reset select submit load unload beforeunload resize move DOMContentLoaded readystatechange message error abort scroll "+(T?"show input invalid touchstart touchmove touchend touchcancel gesturestart gesturechange gestureend textinput readystatechange pageshow pagehide popstate hashchange offline online afterprint beforeprint dragstart dragenter dragover dragleave drag drop dragend loadstart progress suspend emptied stalled loadmetadata loadeddata canplay canplaythrough playing waiting seeking seeked ended durationchange timeupdate play pause ratechange volumechange cuechange checking noupdate downloading cached updateready obsolete ":""))),L=(U="compareDocumentPosition"in M?function(e,t){return t.compareDocumentPosition&&16==(16&t.compareDocumentPosition(e))}:"contains"in M?function(e,t){return(t=9===t.nodeType||t===window?M:t)!==e&&t.contains(e)}:function(e,t){for(;e=e.parentNode;)if(e===t)return 1;return 0},{mouseenter:{base:"mouseover",condition:K},mouseleave:{base:"mouseout",condition:K},mousewheel:{base:/Firefox/.test(navigator.userAgent)?"DOMMouseScroll":"mousewheel"}}),H=(r=k("altKey attrChange attrName bubbles cancelable ctrlKey currentTarget detail eventPhase getModifierState isTrusted metaKey relatedNode relatedTarget shiftKey srcElement target timeStamp type view which propertyName"),o=r.concat(k("button buttons clientX clientY dataTransfer fromElement offsetX offsetY pageX pageY screenX screenY toElement")),s=o.concat(k("wheelDelta wheelDeltaX wheelDeltaY wheelDeltaZ axis")),u=r.concat(k("char charCode key keyCode keyIdentifier keyLocation location")),c=r.concat(k("data")),h=r.concat(k("touches targetTouches changedTouches scale rotation")),g=r.concat(k("data origin source")),m=r.concat(k("state")),z=/over|out/,v=[{reg:/key/i,fix:function(e,t){return t.keyCode=e.keyCode||e.which,u}},{reg:/click|mouse(?!(.*wheel|scroll))|menu|drag|drop/i,fix:function(e,t,n){return t.rightClick=3===e.which||2===e.button,t.pos={x:0,y:0},e.pageX||e.pageY?(t.clientX=e.pageX,t.clientY=e.pageY):(e.clientX||e.clientY)&&(t.clientX=e.clientX+x.body.scrollLeft+M.scrollLeft,t.clientY=e.clientY+x.body.scrollTop+M.scrollTop),z.test(n)&&(t.relatedTarget=e.relatedTarget||e[("mouseover"==n?"from":"to")+"Element"]),o}},{reg:/mouse.*(wheel|scroll)/i,fix:function(){return s}},{reg:/^text/i,fix:function(){return c}},{reg:/^touch|^gesture/i,fix:function(){return h}},{reg:/^message$/i,fix:function(){return g}},{reg:/^popstate$/i,fix:function(){return m}},{reg:/.*/,fix:function(){return r}}],y={},O.prototype.preventDefault=function(){this.originalEvent.preventDefault?this.originalEvent.preventDefault():this.originalEvent.returnValue=!1},O.prototype.stopPropagation=function(){this.originalEvent.stopPropagation?this.originalEvent.stopPropagation():this.originalEvent.cancelBubble=!0},O.prototype.stop=function(){this.preventDefault(),this.stopPropagation(),this.stopped=!0},O.prototype.stopImmediatePropagation=function(){this.originalEvent.stopImmediatePropagation&&this.originalEvent.stopImmediatePropagation(),this.isImmediatePropagationStopped=function(){return!0}},O.prototype.isImmediatePropagationStopped=function(){return this.originalEvent.isImmediatePropagationStopped&&this.originalEvent.isImmediatePropagationStopped()},O.prototype.clone=function(e){var t=new O(this,this.element,this.isNative);return t.currentTarget=e,t},O),V=(j.prototype.inNamespaces=function(e){var t,n,r=0;if(!e)return!0;if(!this.namespaces)return!1;for(t=e.length;t--;)for(n=this.namespaces.length;n--;)e[t]==this.namespaces[n]&&r++;return e.length===r},j.prototype.matches=function(e,t,n){return!(this.element!==e||t&&this.original!==t||n&&this.handler!==n)},j),S=(d={},p=function(e,t,n,r,o,i){var a=o?"r":"$";if(t&&"*"!=t){var s,l=0,u=d[a+t],c="*"==e;if(u)for(s=u.length;l<s;l++)if((c||u[l].matches(e,n,r))&&!i(u[l],u,l,t))return}else for(var f in d)f.charAt(0)==a&&p(e,f.substr(1),n,r,o,i)},{has:function(e,t,n,r){var o,i=d[(r?"r":"$")+t];if(i)for(o=i.length;o--;)if(!i[o].root&&i[o].matches(e,n,null))return!0;return!1},get:function(e,t,n,r){var o=[];return p(e,t,n,null,r,function(e){return o.push(e)}),o},put:function(e){var t=!e.root&&!this.has(e.element,e.type,null,!1),n=(e.root?"r":"$")+e.type;return(d[n]||(d[n]=[])).push(e),t},del:function(e){p(e.element,e.type,null,e.handler,e.root,function(e,t,n){return t.splice(n,1),e.removed=!0,0===t.length&&delete d[(e.root?"r":"$")+e.type],!1})},entries:function(){var e,t=[];for(e in d)"$"==e.charAt(0)&&(t=t.concat(d[e]));return t}}),Q=T?function(e,t,n){var r="touchstart"!==t&&"touchmove"!==t?!1:{passive:!0};e[n?C:"removeEventListener"](t,i,r)}:function(t,e,n,r){var o;n?(S.put(o=new V(t,r||e,function(e){i.call(t,e,r)},i,null,null,!0)),r&&null==t["_on"+r]&&(t["_on"+r]=0),o.target.attachEvent("on"+o.eventType,o.handler)):(o=S.get(t,r||e,i,!0)[0])&&(o.target.detachEvent("on"+o.eventType,o.handler),S.del(o))},X=function(e,t,n,r,o){return function(){r.apply(this,arguments),e(t,n,o)}},I=function(e,t,n,r){for(var t=t&&t.replace(E,""),o=S.get(e,t,null,!1),i={},a=0,s=o.length;a<s;a++)n&&o[a].original!==n||!o[a].inNamespaces(r)||(S.del(o[a]),!i[o[a].eventType]&&o[a][A]&&(i[o[a].eventType]={t:o[a].eventType,c:o[a].type}));for(a in i)S.has(e,i[a].t,null,!1)||Q(e,i[a].t,!1,i[a].c)},W=T?function(e,t,n){var r=x.createEvent(e?"HTMLEvents":"UIEvents");r[e?"initEvent":"initUIEvent"](t,!0,!0,b,1),n.dispatchEvent(r)}:function(e,t,n){n=l(n,e),e?n.fireEvent("on"+t,x.createEventObject()):n["_on"+t]++},D=function(e,t,n){var r,o,i,a=N(t);if(a&&0<t.indexOf(" "))for(i=(t=k(t)).length;i--;)D(e,t[i],n);else if((o=a&&t.replace(E,""))&&L[o]&&(o=L[o].base),!t||a)a=(a=a&&t.replace(w,""))&&k(a,"."),I(e,o,n,a);else if(F(t))I(e,null,t);else for(r in t)t.hasOwnProperty(r)&&D(e,r,t[r]);return e},Z={on:f,add:function(e,t,n,r){return f.apply(null,N(n)?[e,n,t,r].concat(3<arguments.length?_.call(arguments,5):[]):_.call(arguments))},one:function(){return f.apply(Y,arguments)},off:D,remove:D,clone:function(e,t,n){for(var r,o,i=S.get(t,n,null,!1),a=i.length,s=0;s<a;s++)i[s].original&&(r=[e,i[s].type],(o=i[s].handler.__beanDel)&&r.push(o.selector),r.push(i[s].original),f.apply(null,r));return e},fire:function(e,t,n){for(var r,o,i,a,s=k(t),l=s.length;l--;)if(t=s[l].replace(E,""),(i=(i=s[l].replace(w,""))&&k(i,"."))||n||!e[A])for(a=S.get(e,t,null,!1),n=[!1].concat(n),r=0,o=a.length;r<o;r++)a[r].inNamespaces(i)&&a[r].handler.apply(e,n);else W(q[t],t,e);return e},Event:H,setSelectorEngine:n,noConflict:function(){return t[e]=R,this}};function G(n,r,o,i){function a(e,t){return r.apply(n,i?_.call(t,e?0:1).concat(i):t)}function s(e,t){return r.__beanDel?r.__beanDel.ft(e.target,n):t}var e=o?function(e){var t=s(e,this);if(o.apply(t,arguments))return e&&(e.currentTarget=t),a(e,arguments)}:function(e){return r.__beanDel&&(e=e.clone(s(e))),a(e,arguments)};return e.__beanDel=r.__beanDel,e}function j(e,t,n,r,o,i,a){var s=L[t];"unload"==t&&(n=X(I,e,t,n,r)),s&&(s.condition&&(n=G(e,n,s.condition,i)),t=s.base||t),this.isNative=s=q[t]&&!!e[A],this.customType=!T&&!s&&t,this.element=e,this.type=t,this.original=r,this.namespaces=o,this.eventType=T||s?t:"propertychange",this.target=l(e,s),this[A]=!!this.target[A],this.root=a,this.handler=G(e,n,null,i)}function O(e,t,n){if(arguments.length&&(e=e||((t.ownerDocument||t.document||t).parentWindow||b).event,this.originalEvent=e,this.isNative=n,this.isBean=!0,e)){var r,o,i,a,s,l=e.type,u=e.target||e.srcElement;if(this.target=u&&3===u.nodeType?u.parentNode:u,n){if(!(s=y[l]))for(r=0,o=v.length;r<o;r++)if(v[r].reg.test(l)){y[l]=s=v[r].fix;break}for(r=(a=s(e,this,l)).length;r--;)!((i=a[r])in this)&&i in e&&(this[i]=e[i])}}}function K(e){return(e=e.relatedTarget)?e!==this&&"xul"!==e.prefix&&!/document/.test(this.toString())&&!U(e,this):null==e}return b.attachEvent&&b.attachEvent("onunload",B=function(){var e,t=S.entries();for(e in t)t[e].type&&"unload"!==t[e].type&&D(t[e].element,t[e].type);b.detachEvent("onunload",B),b.CollectGarbage&&b.CollectGarbage()}),n(),Z},void 0!==t&&t.exports?t.exports=o():r.bean=o()},{}],28:[function(S,e,I){!function(e){!function(){"use strict";var M=S("base64-js"),i=S("ieee754"),t=(I.Buffer=f,I.SlowBuffer=function(e){+e!=e&&(e=0);return f.alloc(+e)},I.INSPECT_MAX_BYTES=50,2147483647);function l(e){if(t<e)throw new RangeError('The value "'+e+'" is invalid for option "size"');e=new Uint8Array(e);return e.__proto__=f.prototype,e}function f(e,t,n){if("number"!=typeof e)return r(e,t,n);if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return a(e)}function r(e,t,n){if("string"==typeof e){var r=e,o=t;if(f.isEncoding(o="string"==typeof o&&""!==o?o:"utf8"))return i=0|d(r,o),a=l(i),a=(r=a.write(r,o))!==i?a.slice(0,r):a;throw new TypeError("Unknown encoding: "+o)}if(ArrayBuffer.isView(e))return u(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(N(e,ArrayBuffer)||e&&N(e.buffer,ArrayBuffer)){var i=e,r=t,a=n;if(r<0||i.byteLength<r)throw new RangeError('"offset" is outside of buffer bounds');if(i.byteLength<r+(a||0))throw new RangeError('"length" is outside of buffer bounds');return(i=void 0===r&&void 0===a?new Uint8Array(i):void 0===a?new Uint8Array(i,r):new Uint8Array(i,r,a)).__proto__=f.prototype,i}if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');o=e.valueOf&&e.valueOf();if(null!=o&&o!==e)return f.from(o,t,n);var s=function(e){{var t,n;if(f.isBuffer(e))return t=0|c(e.length),0!==(n=l(t)).length&&e.copy(n,0,0,t),n}if(void 0!==e.length)return"number"!=typeof e.length||L(e.length)?l(0):u(e);if("Buffer"===e.type&&Array.isArray(e.data))return u(e.data)}(e);if(s)return s;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return f.from(e[Symbol.toPrimitive]("string"),t,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function o(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function a(e){return o(e),l(e<0?0:0|c(e))}function u(e){for(var t=e.length<0?0:0|c(e.length),n=l(t),r=0;r<t;r+=1)n[r]=255&e[r];return n}function c(e){if(t<=e)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+t.toString(16)+" bytes");return 0|e}function d(e,t){if(f.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||N(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var n=e.length,r=2<arguments.length&&!0===arguments[2];if(!r&&0===n)return 0;for(var o=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return A(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return _(e).length;default:if(o)return r?-1:A(e).length;t=(""+t).toLowerCase(),o=!0}}function n(e,t,n){var r,o=!1;if((t=void 0===t||t<0?0:t)>this.length)return"";if((n=void 0===n||n>this.length?this.length:n)<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e=e||"utf8";;)switch(e){case"hex":var i=this,a=t,s=n,l=i.length;(!s||s<0||l<s)&&(s=l);for(var u="",c=a=!a||a<0?0:a;c<s;++c)u+=function(e){return e<16?"0"+e.toString(16):e.toString(16)}(i[c]);return u;case"utf8":case"utf-8":return T(this,t,n);case"ascii":var f=this,l=t,d=n,p="";d=Math.min(f.length,d);for(var h=l;h<d;++h)p+=String.fromCharCode(127&f[h]);return p;case"latin1":case"binary":var g=this,a=t,m=n,v="";m=Math.min(g.length,m);for(var y=a;y<m;++y)v+=String.fromCharCode(g[y]);return v;case"base64":return b=this,r=n,0===(w=t)&&r===b.length?M.fromByteArray(b):M.fromByteArray(b.slice(w,r));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":for(var b=t,w=n,E=this.slice(b,w),C="",x=0;x<E.length;x+=2)C+=String.fromCharCode(E[x]+256*E[x+1]);return C;default:if(o)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),o=!0}}function s(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function p(e,t,n,r,o){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):2147483647<n?n=2147483647:n<-2147483648&&(n=-2147483648),(n=(n=L(n=+n)?o?0:e.length-1:n)<0?e.length+n:n)>=e.length){if(o)return-1;n=e.length-1}else if(n<0){if(!o)return-1;n=0}if("string"==typeof t&&(t=f.from(t,r)),f.isBuffer(t))return 0===t.length?-1:h(e,t,n,r,o);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?(o?Uint8Array.prototype.indexOf:Uint8Array.prototype.lastIndexOf).call(e,t,n):h(e,[t],n,r,o);throw new TypeError("val must be string, number or Buffer")}function h(e,t,n,r,o){var i=1,a=e.length,s=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a/=i=2,s/=2,n/=2}function l(e,t){return 1===i?e[t]:e.readUInt16BE(t*i)}if(o)for(var u=-1,c=n;c<a;c++)if(l(e,c)===l(t,-1===u?0:c-u)){if(c-(u=-1===u?c:u)+1===s)return u*i}else-1!==u&&(c-=c-u),u=-1;else for(c=n=a<n+s?a-s:n;0<=c;c--){for(var f=!0,d=0;d<s;d++)if(l(e,c+d)!==l(t,d)){f=!1;break}if(f)return c}return-1}function m(e,t,n,r){return k(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function v(e,t,n,r){return k(function(e,t){for(var n,r,o=[],i=0;i<e.length&&!((t-=2)<0);++i)n=e.charCodeAt(i),r=n>>8,o.push(n%256),o.push(r);return o}(t,e.length-n),e,n,r)}function T(e,t,n){n=Math.min(e.length,n);for(var r=[],o=t;o<n;){var i,a,s,l,u=e[o],c=null,f=239<u?4:223<u?3:191<u?2:1;if(o+f<=n)switch(f){case 1:u<128&&(c=u);break;case 2:128==(192&(i=e[o+1]))&&127<(l=(31&u)<<6|63&i)&&(c=l);break;case 3:i=e[o+1],a=e[o+2],128==(192&i)&&128==(192&a)&&2047<(l=(15&u)<<12|(63&i)<<6|63&a)&&(l<55296||57343<l)&&(c=l);break;case 4:i=e[o+1],a=e[o+2],s=e[o+3],128==(192&i)&&128==(192&a)&&128==(192&s)&&65535<(l=(15&u)<<18|(63&i)<<12|(63&a)<<6|63&s)&&l<1114112&&(c=l)}null===c?(c=65533,f=1):65535<c&&(r.push((c-=65536)>>>10&1023|55296),c=56320|1023&c),r.push(c),o+=f}var d=r,p=d.length;if(p<=y)return String.fromCharCode.apply(String,d);for(var h="",g=0;g<p;)h+=String.fromCharCode.apply(String,d.slice(g,g+=y));return h}I.kMaxLength=t,(f.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()}catch(e){return!1}}())||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(f.prototype,"parent",{enumerable:!0,get:function(){if(f.isBuffer(this))return this.buffer}}),Object.defineProperty(f.prototype,"offset",{enumerable:!0,get:function(){if(f.isBuffer(this))return this.byteOffset}}),"undefined"!=typeof Symbol&&null!=Symbol.species&&f[Symbol.species]===f&&Object.defineProperty(f,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),f.poolSize=8192,f.from=r,f.prototype.__proto__=Uint8Array.prototype,f.__proto__=Uint8Array,f.alloc=function(e,t,n){return t=t,n=n,o(e=e),!(e<=0)&&void 0!==t?"string"==typeof n?l(e).fill(t,n):l(e).fill(t):l(e)},f.allocUnsafe=a,f.allocUnsafeSlow=a,f.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==f.prototype},f.compare=function(e,t){if(N(e,Uint8Array)&&(e=f.from(e,e.offset,e.byteLength)),N(t,Uint8Array)&&(t=f.from(t,t.offset,t.byteLength)),!f.isBuffer(e)||!f.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var n=e.length,r=t.length,o=0,i=Math.min(n,r);o<i;++o)if(e[o]!==t[o]){n=e[o],r=t[o];break}return n<r?-1:r<n?1:0},f.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},f.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return f.alloc(0);if(void 0===t)for(o=t=0;o<e.length;++o)t+=e[o].length;for(var n=f.allocUnsafe(t),r=0,o=0;o<e.length;++o){var i=e[o];if(N(i,Uint8Array)&&(i=f.from(i)),!f.isBuffer(i))throw new TypeError('"list" argument must be an Array of Buffers');i.copy(n,r),r+=i.length}return n},f.byteLength=d,f.prototype._isBuffer=!0,f.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)s(this,t,t+1);return this},f.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)s(this,t,t+3),s(this,t+1,t+2);return this},f.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)s(this,t,t+7),s(this,t+1,t+6),s(this,t+2,t+5),s(this,t+3,t+4);return this},f.prototype.toLocaleString=f.prototype.toString=function(){var e=this.length;return 0===e?"":0===arguments.length?T(this,0,e):n.apply(this,arguments)},f.prototype.equals=function(e){if(f.isBuffer(e))return this===e||0===f.compare(this,e);throw new TypeError("Argument must be a Buffer")},f.prototype.inspect=function(){var e="",t=I.INSPECT_MAX_BYTES,e=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim();return this.length>t&&(e+=" ... "),"<Buffer "+e+">"},f.prototype.compare=function(e,t,n,r,o){if(N(e,Uint8Array)&&(e=f.from(e,e.offset,e.byteLength)),!f.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),(t=void 0===t?0:t)<0||n>e.length||r<0||o>this.length)throw new RangeError("out of range index");if(o<=r&&n<=t)return 0;if(o<=r)return-1;if(n<=t)return 1;if(this===e)return 0;for(var i=(o>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0),s=Math.min(i,a),l=this.slice(r,o),u=e.slice(t,n),c=0;c<s;++c)if(l[c]!==u[c]){i=l[c],a=u[c];break}return i<a?-1:a<i?1:0},f.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},f.prototype.indexOf=function(e,t,n){return p(this,e,t,n,!0)},f.prototype.lastIndexOf=function(e,t,n){return p(this,e,t,n,!1)},f.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var o=this.length-t;if((void 0===n||o<n)&&(n=o),0<e.length&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r=r||"utf8";for(var i,a,s,l=!1;;)switch(r){case"hex":var u=this,c=e,f=t,d=n,p=(f=Number(f)||0,u.length-f);(!d||p<(d=Number(d)))&&(d=p),(p=c.length)/2<d&&(d=p/2);for(var h=0;h<d;++h){var g=parseInt(c.substr(2*h,2),16);if(L(g))return h;u[f+h]=g}return h;case"utf8":case"utf-8":return p=t,s=n,k(A(e,(a=this).length-p),a,p,s);case"ascii":return m(this,e,t,n);case"latin1":case"binary":return m(this,e,t,n);case"base64":return a=this,s=t,i=n,k(_(e),a,s,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return v(this,e,t,n);default:if(l)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),l=!0}},f.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var y=4096;function g(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(n<e+t)throw new RangeError("Trying to access beyond buffer length")}function b(e,t,n,r,o,i){if(!f.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(o<t||t<i)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function w(e,t,n,r){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function E(e,t,n,r,o){return t=+t,n>>>=0,o||w(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function C(e,t,n,r,o){return t=+t,n>>>=0,o||w(e,0,n,8),i.write(e,t,n,r,52,8),n+8}f.prototype.slice=function(e,t){var n=this.length,n=((e=~~e)<0?(e+=n)<0&&(e=0):n<e&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):n<t&&(t=n),t<e&&(t=e),this.subarray(e,t));return n.__proto__=f.prototype,n},f.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||g(e,t,this.length);for(var r=this[e],o=1,i=0;++i<t&&(o*=256);)r+=this[e+i]*o;return r},f.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||g(e,t,this.length);for(var r=this[e+--t],o=1;0<t&&(o*=256);)r+=this[e+--t]*o;return r},f.prototype.readUInt8=function(e,t){return e>>>=0,t||g(e,1,this.length),this[e]},f.prototype.readUInt16LE=function(e,t){return e>>>=0,t||g(e,2,this.length),this[e]|this[e+1]<<8},f.prototype.readUInt16BE=function(e,t){return e>>>=0,t||g(e,2,this.length),this[e]<<8|this[e+1]},f.prototype.readUInt32LE=function(e,t){return e>>>=0,t||g(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},f.prototype.readUInt32BE=function(e,t){return e>>>=0,t||g(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},f.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||g(e,t,this.length);for(var r=this[e],o=1,i=0;++i<t&&(o*=256);)r+=this[e+i]*o;return(o*=128)<=r&&(r-=Math.pow(2,8*t)),r},f.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||g(e,t,this.length);for(var r=t,o=1,i=this[e+--r];0<r&&(o*=256);)i+=this[e+--r]*o;return(o*=128)<=i&&(i-=Math.pow(2,8*t)),i},f.prototype.readInt8=function(e,t){return e>>>=0,t||g(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},f.prototype.readInt16LE=function(e,t){e>>>=0,t||g(e,2,this.length);t=this[e]|this[e+1]<<8;return 32768&t?4294901760|t:t},f.prototype.readInt16BE=function(e,t){e>>>=0,t||g(e,2,this.length);t=this[e+1]|this[e]<<8;return 32768&t?4294901760|t:t},f.prototype.readInt32LE=function(e,t){return e>>>=0,t||g(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},f.prototype.readInt32BE=function(e,t){return e>>>=0,t||g(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},f.prototype.readFloatLE=function(e,t){return e>>>=0,t||g(e,4,this.length),i.read(this,e,!0,23,4)},f.prototype.readFloatBE=function(e,t){return e>>>=0,t||g(e,4,this.length),i.read(this,e,!1,23,4)},f.prototype.readDoubleLE=function(e,t){return e>>>=0,t||g(e,8,this.length),i.read(this,e,!0,52,8)},f.prototype.readDoubleBE=function(e,t){return e>>>=0,t||g(e,8,this.length),i.read(this,e,!1,52,8)},f.prototype.writeUIntLE=function(e,t,n,r){e=+e,t>>>=0,n>>>=0,r||b(this,e,t,n,Math.pow(2,8*n)-1,0);var o=1,i=0;for(this[t]=255&e;++i<n&&(o*=256);)this[t+i]=e/o&255;return t+n},f.prototype.writeUIntBE=function(e,t,n,r){e=+e,t>>>=0,n>>>=0,r||b(this,e,t,n,Math.pow(2,8*n)-1,0);var o=n-1,i=1;for(this[t+o]=255&e;0<=--o&&(i*=256);)this[t+o]=e/i&255;return t+n},f.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||b(this,e,t,1,255,0),this[t]=255&e,t+1},f.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||b(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},f.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||b(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},f.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||b(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},f.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||b(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},f.prototype.writeIntLE=function(e,t,n,r){e=+e,t>>>=0,r||b(this,e,t,n,(r=Math.pow(2,8*n-1))-1,-r);var o=0,i=1,a=0;for(this[t]=255&e;++o<n&&(i*=256);)e<0&&0===a&&0!==this[t+o-1]&&(a=1),this[t+o]=(e/i>>0)-a&255;return t+n},f.prototype.writeIntBE=function(e,t,n,r){e=+e,t>>>=0,r||b(this,e,t,n,(r=Math.pow(2,8*n-1))-1,-r);var o=n-1,i=1,a=0;for(this[t+o]=255&e;0<=--o&&(i*=256);)e<0&&0===a&&0!==this[t+o+1]&&(a=1),this[t+o]=(e/i>>0)-a&255;return t+n},f.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||b(this,e,t,1,127,-128),this[t]=255&(e=e<0?255+e+1:e),t+1},f.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||b(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},f.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||b(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},f.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||b(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},f.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||b(this,e,t,4,2147483647,-2147483648),this[t]=(e=e<0?4294967295+e+1:e)>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},f.prototype.writeFloatLE=function(e,t,n){return E(this,e,t,!0,n)},f.prototype.writeFloatBE=function(e,t,n){return E(this,e,t,!1,n)},f.prototype.writeDoubleLE=function(e,t,n){return C(this,e,t,!0,n)},f.prototype.writeDoubleBE=function(e,t,n){return C(this,e,t,!1,n)},f.prototype.copy=function(e,t,n,r){if(!f.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n=n||0,r||0===r||(r=this.length),t>=e.length&&(t=e.length),(r=0<r&&r<n?n:r)===n)return 0;if(0===e.length||0===this.length)return 0;if((t=t||0)<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length);var o=(r=e.length-t<r-n?e.length-t+n:r)-n;if(this===e&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(t,n,r);else if(this===e&&n<t&&t<r)for(var i=o-1;0<=i;--i)e[i+t]=this[i+n];else Uint8Array.prototype.set.call(e,this.subarray(n,r),t);return o},f.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!f.isEncoding(r))throw new TypeError("Unknown encoding: "+r);var o;1===e.length&&(o=e.charCodeAt(0),"utf8"===r&&o<128||"latin1"===r)&&(e=o)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");var i;if(!(n<=t))if(t>>>=0,n=void 0===n?this.length:n>>>0,"number"==typeof(e=e||0))for(i=t;i<n;++i)this[i]=e;else{var a=f.isBuffer(e)?e:f.from(e,r),s=a.length;if(0===s)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<n-t;++i)this[i+t]=a[i%s]}return this};var x=/[^+/0-9A-Za-z-_]/g;function A(e,t){t=t||1/0;for(var n,r=e.length,o=null,i=[],a=0;a<r;++a){if(55295<(n=e.charCodeAt(a))&&n<57344){if(!o){if(56319<n){-1<(t-=3)&&i.push(239,191,189);continue}if(a+1===r){-1<(t-=3)&&i.push(239,191,189);continue}o=n;continue}if(n<56320){-1<(t-=3)&&i.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&-1<(t-=3)&&i.push(239,191,189);if(o=null,n<128){if(--t<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function _(e){return M.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(x,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function k(e,t,n,r){for(var o=0;o<r&&!(o+n>=t.length||o>=e.length);++o)t[o+n]=e[o];return o}function N(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function L(e){return e!=e}}.call(this)}.call(this,S("buffer").Buffer)},{"base64-js":26,buffer:28,ieee754:32}],29:[function(e,t,n){var l=e("indexof");function u(e){return!!e}t.exports=function(o){var e=o.classList;if(e)return e;var r={add:t,remove:n,contains:i,toggle:function(e){return i(e)?(n(e),!1):(t(e),!0)},toString:function(){return o.className},length:0,item:function(e){return a()[e]||null}};return r;function t(e){var t=a();-1<l(t,e)||(t.push(e),s(t))}function n(e){var t=a(),e=l(t,e);-1!==e&&(t.splice(e,1),s(t))}function i(e){return-1<l(a(),e)}function a(){for(var e=o.className.split(" "),t=u,n=[],r=0;r<e.length;r++)t(e[r])&&n.push(e[r]);return n}function s(e){var t=e.length;o.className=e.join(" "),r.length=t;for(var n=0;n<e.length;n++)r[n]=e[n];delete e[t]}}},{indexof:33}],30:[function(e,t,n){t.exports=function(e,t,n,r){if(r=(n=window.getComputedStyle)?n(e):e.currentStyle)return r[t.replace(/-(\w)/gi,function(e,t){return t.toUpperCase()})]}},{}],31:[function(e,t,n){var r=[],o=r.forEach,i=r.slice;t.exports=function(n){return o.call(i.call(arguments,1),function(e){if(e)for(var t in e)n[t]=e[t]}),n}},{}],32:[function(e,t,n){n.read=function(e,t,n,r,o){var i,a,s=8*o-r-1,l=(1<<s)-1,u=l>>1,c=-7,f=n?o-1:0,d=n?-1:1,o=e[t+f];for(f+=d,i=o&(1<<-c)-1,o>>=-c,c+=s;0<c;i=256*i+e[t+f],f+=d,c-=8);for(a=i&(1<<-c)-1,i>>=-c,c+=r;0<c;a=256*a+e[t+f],f+=d,c-=8);if(0===i)i=1-u;else{if(i===l)return a?NaN:1/0*(o?-1:1);a+=Math.pow(2,r),i-=u}return(o?-1:1)*a*Math.pow(2,i-r)},n.write=function(e,t,n,r,o,i){var a,s,l=8*i-o-1,u=(1<<l)-1,c=u>>1,f=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:i-1,p=r?1:-1,i=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(r=Math.pow(2,-a))<1&&(a--,r*=2),2<=(t+=1<=a+c?f/r:f*Math.pow(2,1-c))*r&&(a++,r/=2),u<=a+c?(s=0,a=u):1<=a+c?(s=(t*r-1)*Math.pow(2,o),a+=c):(s=t*Math.pow(2,c-1)*Math.pow(2,o),a=0));8<=o;e[n+d]=255&s,d+=p,s/=256,o-=8);for(a=a<<o|s,l+=o;0<l;e[n+d]=255&a,d+=p,a/=256,l-=8);e[n+d-p]|=128*i}},{}],33:[function(e,t,n){var r=[].indexOf;t.exports=function(e,t){if(r)return e.indexOf(t);for(var n=0;n<e.length;++n)if(e[n]===t)return n;return-1}},{}],34:[function(e,t,n){t.exports=function(e){var t;return!!e&&("[object Function]"===(t=r.call(e))||"function"==typeof e&&"[object RegExp]"!==t||"undefined"!=typeof window&&(e===window.setTimeout||e===window.alert||e===window.confirm||e===window.prompt))};var r=Object.prototype.toString},{}],35:[function(e,k,N){!function(_){!function(){var e=this,t="object"==typeof N&&N&&!N.nodeType&&N,n="object"==typeof k&&k&&!k.nodeType&&k,r="object"==typeof _&&_;r.global!==r&&r.window!==r&&r.self!==r||(e=r);var o,i,m=2147483647,v=36,y=26,a=38,s=700,l=/^xn--/,u=/[^\x20-\x7E]/,c=/[\x2E\u3002\uFF0E\uFF61]/g,f={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},d=v-1,b=Math.floor,w=String.fromCharCode;function E(e){throw new RangeError(f[e])}function p(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return r}function h(e,t){var n=e.split("@"),r="",n=(1<n.length&&(r=n[0]+"@",e=n[1]),(e=e.replace(c,".")).split("."));return r+p(n,t).join(".")}function C(e){for(var t,n,r=[],o=0,i=e.length;o<i;)55296<=(t=e.charCodeAt(o++))&&t<=56319&&o<i?56320==(64512&(n=e.charCodeAt(o++)))?r.push(((1023&t)<<10)+(1023&n)+65536):(r.push(t),o--):r.push(t);return r}function g(e){return p(e,function(e){var t="";return 65535<e&&(t+=w((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=w(e)}).join("")}function x(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function M(e,t,n){var r=0;for(e=n?b(e/s):e>>1,e+=b(e/t);d*y>>1<e;r+=v)e=b(e/d);return b(r+(d+1)*e/(e+a))}function T(e){var t,n,r,o,i,a,s,l=[],u=e.length,c=0,f=128,d=72,p=e.lastIndexOf("-");for(p<0&&(p=0),n=0;n<p;++n)128<=e.charCodeAt(n)&&E("not-basic"),l.push(e.charCodeAt(n));for(r=0<p?p+1:0;r<u;){for(o=c,i=1,a=v;u<=r&&E("invalid-input"),s=e.charCodeAt(r++),(v<=(s=s-48<10?s-22:s-65<26?s-65:s-97<26?s-97:v)||s>b((m-c)/i))&&E("overflow"),c+=s*i,!(s<(s=a<=d?1:d+y<=a?y:a-d));a+=v)i>b(m/(s=v-s))&&E("overflow"),i*=s;d=M(c-o,t=l.length+1,0==o),b(c/t)>m-f&&E("overflow"),f+=b(c/t),c%=t,l.splice(c++,0,f)}return g(l)}function A(e){for(var t,n,r,o,i,a,s,l,u,c,f=[],d=(e=C(e)).length,p=128,h=72,g=t=0;g<d;++g)(s=e[g])<128&&f.push(w(s));for(n=r=f.length,r&&f.push("-");n<d;){for(o=m,g=0;g<d;++g)p<=(s=e[g])&&s<o&&(o=s);for(o-p>b((m-t)/(l=n+1))&&E("overflow"),t+=(o-p)*l,p=o,g=0;g<d;++g)if((s=e[g])<p&&++t>m&&E("overflow"),s==p){for(i=t,a=v;!(i<(u=a<=h?1:h+y<=a?y:a-h));a+=v)f.push(w(x(u+(c=i-u)%(u=v-u),0))),i=b(c/u);f.push(w(x(i,0))),h=M(t,l,n==r),t=0,++n}++t,++p}return f.join("")}if(o={version:"1.4.1",ucs2:{decode:C,encode:g},decode:T,encode:A,toASCII:function(e){return h(e,function(e){return u.test(e)?"xn--"+A(e):e})},toUnicode:function(e){return h(e,function(e){return l.test(e)?T(e.slice(4).toLowerCase()):e})}},t&&n)if(k.exports==t)n.exports=o;else for(i in o)o.hasOwnProperty(i)&&(t[i]=o[i]);else e.punycode=o}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],36:[function(e,t,n){!function(e){void 0!==t&&t.exports?t.exports=e():this.$script=e()}(function(){var u,o,i=document,a=i.getElementsByTagName("head")[0],s=!1,c="push",l="readyState",f="onreadystatechange",d={},p={},h={};function g(e,t){for(var n=0,r=e.length;n<r;++n)if(!t(e[n]))return s;return 1}function m(e,t){g(e,function(e){return t(e),1})}function v(e,t,n){e=e[c]?e:[e];var r=t&&t.call,o=r?t:n,i=r?e.join(""):t,a=e.length;function s(e){return e.call?e():d[e]}function l(){if(!--a)for(var e in d[i]=1,o&&o(),p)g(e.split("|"),s)&&(m(p[e],s),p[e]=[])}return setTimeout(function(){m(e,function e(t,n){return null===t?l():(n||/^https?:\/\//.test(t)||!u||(t=-1===t.indexOf(".js")?u+t+".js":u+t),h[t]?(i&&(i,0),2==h[t]?l():setTimeout(function(){e(t,!0)},0)):(h[t]=1,i&&(i,0),void y(t,l)))})},0),v}function y(e,t){var n,r=i.createElement("script");r.onload=r.onerror=r[f]=function(){r[l]&&!/^c|loade/.test(r[l])||n||(r.onload=r[f]=null,n=1,h[e]=2,t())},r.async=1,r.src=o?e+(-1===e.indexOf("?")?"?":"&")+o:e,a.insertBefore(r,a.lastChild)}return v.get=y,v.order=function(n,r,o){!function e(t){t=n.shift(),n.length?v(t,e):v(t,r,o)}()},v.path=function(e){u=e},v.urlArgs=function(e){o=e},v.ready=function(e,t,n){e=e[c]?e:[e];var r=[];return m(e,function(e){d[e]||r[c](e)}),g(e,function(e){return d[e]})?t():(e=e.join("|"),p[e]=p[e]||[],p[e][c](t),n&&n(r)),v},v.done=function(e){v([null],e)},v})},{}]},{},[25])(25)});
  • fv-player/trunk/freedom-video-player/fv-player.min.js

    r3363337 r3364530  
    1 function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}if("undefined"!=typeof fv_flowplayer_conf){var FVAbrController,parseIOSVersion=function(e){e=/iP(ad|hone)(; CPU)? OS (\d+_\d)/.exec(e);return e&&1<e.length?parseFloat(e[e.length-1].replace("_","."),10):0};try{"object"==_typeof(window.localStorage)&&void 0!==window.localStorage.volume&&delete fv_flowplayer_conf.volume}catch(e){}flowplayer.conf=fv_flowplayer_conf,flowplayer.conf.embed=!1,flowplayer.conf.share=!1,flowplayer.conf.analytics=!1,void 0!==fv_flowplayer_conf.disable_localstorage&&(flowplayer.conf.storage={});try{flowplayer.conf.key=atob(flowplayer.conf.key)}catch(e){}!flowplayer.support.android&&flowplayer.conf.dacast_hlsjs&&((FVAbrController=function(e){this.hls=e,this.nextAutoLevel=3}).prototype.nextAutoLevel=function(e){this.nextAutoLevel=e},FVAbrController.prototype.destroy=function(){},flowplayer.conf.hlsjs={startLevel:-1,abrController:FVAbrController}),flowplayer.support.iOS&&flowplayer.support.iOS.chrome&&0==flowplayer.support.iOS.version&&(flowplayer.support.iOS.version=parseIOSVersion(navigator.userAgent)),flowplayer.conf.hlsjs.use_for_safari&&(flowplayer.support.iOS&&13<=parseInt(flowplayer.support.iOS.version)||!flowplayer.support.iOS&&flowplayer.support.browser.safari&&8<=parseInt(flowplayer.support.browser.version))&&(flowplayer.conf.hlsjs.safari=!0),flowplayer.support.fvmobile=!(flowplayer.support.firstframe&&!flowplayer.support.iOS&&!flowplayer.support.android);var fls=flowplayer.support;flowplayer.conf.mobile_native_fullscreen&&"ontouchstart"in window&&fls.fvmobile&&(flowplayer.conf.native_fullscreen=!0),"ontouchstart"in window&&(fls.android&&fls.android.version<4.4&&!(fls.browser.chrome&&54<fls.browser.version)&&(flowplayer.conf.native_fullscreen=!0),fls.iOS)&&(fv_player_in_iframe()||fls.iOS.version<7)&&(flowplayer.conf.native_fullscreen=!0)}"undefined"!=typeof fv_flowplayer_translations&&(flowplayer.defaults.errors=fv_flowplayer_translations);var fv_player_did_autoplay=!1;function fv_player_videos_parse(e,o){try{var a=JSON.parse(e)}catch(e){return!1}var n;jQuery(a.sources).each(function(e,t){a.sources[e].src=t.src.replace(/(\?[a-z]+=){random}/,"$1"+Math.random())}),flowplayer.support.browser.safari&&(n=[],jQuery(a.sources).each(function(e,t){"video/webm"!=t.type&&n.push(t)}),0<n.length)&&(a.sources=n);var r,e=new RegExp("[\\?&]fv_flowplayer_mobile=([^&#]*)").exec(location.search);return!(null!=e&&"yes"==e[1]||jQuery(window).width()<=480||jQuery(window).height()<=480)||null!=e&&"no"==e[1]||(r=!1,jQuery(a.sources).each(function(e,t){if(!t)return!1;t.mobile&&(a.sources[e]=a.sources[0],a.sources[0]=t,r=!0),r&&jQuery(o).after('<p class="fv-flowplayer-mobile-switch">'+fv_flowplayer_translations.mobile_browser_detected_1+' <a href="'+document.URL+'?fv_flowplayer_mobile=no">'+fv_flowplayer_translations.mobile_browser_detected_2+"</a>.</p>")})),o.trigger("fv_player_videos_parse",a),a}function fv_player_in_iframe(){try{return window.self!==window.top}catch(e){return!0}}function fv_escape_attr(e){var t={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#039;"};return e.replace(/[&<>"']/g,function(e){return t[e]})}function fv_player_preload(){function e(){jQuery(".flowplayer.fp-is-embed").each(function(){var e=jQuery(this);e.hasClass("has-chapters")||e.hasClass("has-transcript")||0!=jQuery(".fp-playlist-external[rel="+e.attr("id")+"]").length||e.height(jQuery(window).height())})}if(flowplayer.support.touch&&(jQuery(".fp-playlist-external.fp-playlist-horizontal.fv-playlist-design-2017").addClass("visible-captions"),jQuery(".fp-playlist-external.fp-playlist-vertical.fv-playlist-design-2017").addClass("visible-captions")),flowplayer(function(n,r){localStorage.flowplayerTestStorage&&delete localStorage.flowplayerTestStorage;var e,t,o,i=(r=jQuery(r)).find(".fp-player"),l=!1,a=n.conf.splash,s=(r.hasClass("fixed-controls")&&r.find(".fp-controls").on("click",function(e){n.loading||n.ready||(e.preventDefault(),e.stopPropagation(),n.load())}),0==r.data("volume")&&r.hasClass("no-controlbar")&&r.find(".fp-volume").remove(),jQuery(".fp-playlist-external[rel="+r.attr("id")+"]")),f=((!n.conf.playlist||0==n.conf.playlist.length)&&s.length&&0<s.find("a[data-item]").length?(t=[],s.find("a[data-item]").each(function(){(e=fv_player_videos_parse(jQuery(this).attr("data-item"),r))?t.push(e):jQuery(this).remove()}),n.conf.playlist=t,n.conf.clip=t[0]):n.conf.clip||(n.conf.clip=fv_player_videos_parse(jQuery(r).attr("data-item"),r)),jQuery("a",s).on("click",function(e){e.preventDefault(),l=!0;var e=jQuery(this),t=jQuery(".fp-playlist-external[rel="+r.attr("id")+"]"),t=jQuery("a",t).index(this),o=e.prev("a"),a=e.data("item");if(e.closest(".fv-playlist-draggable.is-dragging").length)return!1;if(location.href.match(/wp-admin/)&&0<e.parents(".fv-player-editor-preview").length)return fv_flowplayer_conf.current_video_to_edit=t,e.parents(".fv-player-custom-video").find(".edit-video .fv-player-editor-button").trigger("click"),!1;if(o.length&&e.is(":visible")&&!o.is(":visible"))return o.trigger("click"),!1;if(!jQuery("#"+e.parent().attr("rel")).hasClass("dynamic-playlist")){if(fv_player_playlist_active(jQuery(".fp-playlist-external[rel="+r.attr("id")+"]"),this),n){if(n.error&&(n.pause(),n.error=n.loading=!1,r.removeClass("is-error"),r.find(".fp-message.fp-shown").remove()),!n.video||n.video.index==t)return;n.play(t)}o=(o=a.splash)||e.find("img").attr("src");u(r,i,a,o),r[0].getBoundingClientRect().bottom-100<0&&jQuery("html, body").animate({scrollTop:jQuery(r).offset().top-100},300)}}),jQuery("[rel="+r.attr("id")+"]")),p=!1,c=r.find(".fp-splash"),d=r.find(".fv-fp-splash-text");function u(e,t,o,a){e=e.find("img.fp-splash");a?(0==e.length&&(e=jQuery('<img class="fp-splash" />'),t.prepend(e)),e.attr("alt",o.fv_title?fv_escape_attr(o.fv_title):"video"),e.removeAttr("srcset"),e.attr("src",a)):e.length&&e.remove()}n.bind("load",function(e,t,o){var a;t.conf.playlist.length&&(o.type.match(/^audio/)&&!l&&(a=(a=(o=(t=f.find("a").eq(o.index)).data("item")).splash)||t.find("img").attr("src"),u(r,i,o,a)),l=!1)}),n.bind("ready",function(e,t,o){setTimeout(function(){var e;-1<o.index&&0<f.length&&(e=jQuery("a",f).eq(o.index),fv_player_playlist_active(f,e),p=e.find(".fvp-progress"))},100),c=r.find(".fp-splash"),o.is_audio_stream||o.type.match(/^audio/)||(window.fv_player_pro&&window.fv_player_pro.autoplay_scroll||r.data("fvautoplay")||!a||"application/x-mpegurl"==t.video.type?t.one("progress",function(){c.remove(),d.remove()}):(c.remove(),d.remove()))}),n.bind("unload",function(){jQuery(".fp-playlist-external .now-playing").remove(),jQuery(".fp-playlist-external a").removeClass("is-active");var e=i.find("iframe.fp-engine");e.length?(e.after(d),e.after(c)):(i.prepend(d),i.prepend(c)),p=!1}),n.bind("progress",function(e,t,o){p.length&&t.playlist_thumbnail_progress&&t.playlist_thumbnail_progress(p,t.video,o)}),n.bind("error-subtitles",function(){console.log("error-subtitles"),fv_player_notice(r,fv_flowplayer_translations[8],2e3)}),(s=jQuery(r).parent().find("div.fp-playlist-vertical[rel="+jQuery(r).attr("id")+"]")).length&&((o=function(){var e=s.hasClass("fp-playlist-only-captions")?"height":"max-height";s.parents(".fp-playlist-text-wrapper").hasClass("is-fv-narrow")&&(e="max-height"),s.css(e,(()=>{var e=r.height();return e=0==e?r.css("max-height"):e})()),"max-height"==e&&s.css("height","auto")})(),jQuery(window).on("resize tabsactivate",function(){setTimeout(o,0)})),n.show_status=function(e){var o="";["loading","ready","playing","paused","seeking"].every(function(e,t){return n[e]&&(o+=" "+e),!0}),console.log("FV Player Status ("+e+")",o)},window.fv_player_loaded||(window.fv_player_loaded=!0,setTimeout(function(){jQuery(document).trigger("fv_player_loaded");var e=new CustomEvent("fv_player_loaded",[]);document.dispatchEvent(e)},100)),setTimeout(function(){r.trigger("fv_player_loaded")},10),r.data("error")&&(n.message(r.data("error")),r.find(".fp-controls").remove(),r.find(".fp-header").css("opacity",1).show(),n.conf.clip={sources:[{src:!1,type:"video/mp4"}]},n.on("load",function(e){e.preventDefault(),e.stopPropagation()}))}),window.self==window.top||location.href.match(/fv_player_preview/)||(e(),jQuery(window.self).on("resize",e)),"undefined"!=typeof fv_flowplayer_playlists)for(var t in fv_flowplayer_playlists)fv_flowplayer_playlists.hasOwnProperty(t)&&jQuery("#"+t).flowplayer({playlist:fv_flowplayer_playlists[t]});fv_player_load(),fv_video_link_autoplay(),jQuery(document).ajaxComplete(function(){fv_player_load()}),jQuery(window).on("hashchange",fv_video_link_autoplay)}function fv_player_load(i){i&&1<i.lenght&&console.log("FV Player: Can't use fv_player_load with more than a single forced element!");var l=!1;if((i||jQuery(".flowplayer")).each(function(e,t){var o=jQuery(t),t=o.data("flowplayer");if(t)i&&(l=t);else{i&&(o.find(".fp-preload, .fvfp_admin_error").remove(),o.attr("data-item-lazy")?(o.attr("data-item",o.attr("data-item-lazy")),o.removeAttr("item-lazy")):(a=jQuery("[rel="+o.attr("id")+"]"))&&a.find("a[data-item-lazy]").each(function(e,t){(t=jQuery(t)).attr("data-item",t.attr("data-item-lazy")),t.removeAttr("data-item-lazy")}));var a,n,t=!1;if(o.attr("data-item"))t={clip:fv_player_videos_parse(o.attr("data-item"),o)};else if(a=jQuery("[rel="+o.attr("id")+"]")){if(0==a.find("a[data-item]").length)return;var r=[];a.find("a[data-item]").each(function(){(n=fv_player_videos_parse(jQuery(this).attr("data-item"),o))?r.push(n):jQuery(this).remove()}),t={playlist:r}}t&&(t=flowplayer.extend(t,o.data()),l=flowplayer(o[0],t),o.data("freedomplayer",l),o.data("flowplayer",l))}}),jQuery(".fv-playlist-slider-wrapper").each(function(){var e=jQuery(this).find("a:visible");(e=0===e.length?jQuery(this).find("a"):e).length&&(e=e.outerWidth()*e.length,jQuery(this).find(".fp-playlist-external").attr("style","width: "+e+"px; max-width: "+e+"px !important"))}),void 0!==jQuery().tabs&&(jQuery("body").removeClass("fv_flowplayer_tabs_hide"),jQuery(".fv_flowplayer_tabs_content").tabs()),i&&l)return l}function fv_player_playlist_active(e,t){e&&(jQuery("a",e).removeClass("is-active"),jQuery(".now-playing").remove());var o,e=jQuery(e),t=jQuery(t),a=!1,n=(t.addClass("is-active"),e.hasClass("fv-playlist-design-2014"));(n&&0==t.find("h4").length||!n)&&0==t.find(".now-playing").length&&t.prepend('<strong class="now-playing"><span>'+fv_flowplayer_translations.playlist_current+"</span></strong>"),e.parent().find(".flowplayer").length||(a=!0),(e.hasClass("fp-playlist-vertical")||e.hasClass("fp-playlist-horizontal")&&e.hasClass("is-audio"))&&!(e=>{var t=e.getBoundingClientRect(),o=t.top,a=o+t.height,e=e.parentNode;do{if(t=e.getBoundingClientRect(),a<=t.bottom==!1)return;if(o<=t.top)return;e=e.parentNode}while(e!=document.body);return a<=document.documentElement.clientHeight})(t.get(0))?(o=a?e.parent():e).animate({scrollTop:o.scrollTop()+(t.position().top-o.position().top)},750):e.hasClass("fp-playlist-horizontal")&&!(e=>{var t=e.getBoundingClientRect(),o=t.left,a=o+t.width,e=e.parentNode;do{if(t=e.getBoundingClientRect(),a<=t.right==!1)return;if(o<=t.left)return;e=e.parentNode}while(e!=document.body);return a<=document.documentElement.clientWidth})(t.get(0))&&(o=a?e.parent():e).animate({scrollLeft:o.scrollLeft()+(t.position().left-o.position().left)},750)}function fv_parse_sharelink(e){var t,o="fvp_";return(e=e.replace("https?://[^./].","")).match(/(youtube.com)/)?o+e.match(/(?:v=)([A-Za-z0-9_-]*)/)[1]:e.match(/(vimeo.com)|(youtu.be)/)?o+e.match(/(?:\/)([^/]*$)/)[1]:(t=e.match(/(?:\/)([^/]*$)/))?o+t[1].match(/^[^.]*/)[0]:o+e}function fv_player_get_video_link_hash(e){var t=fv_parse_sharelink((void 0!==e.video.sources_original&&void 0!==e.video.sources_original[0]?e.video.sources_original:e.video.sources)[0].src);return t=void 0!==e.video.id?fv_parse_sharelink(e.video.id.toString()):t}function fv_player_time_hms(e){var t,o,a;return isNaN(e)?NaN:(t=parseInt(e,10),o=Math.floor(t/3600),a=Math.floor(t/60)%60,e=t%60,o?o+="h":o="",o&&a<10?a="0"+a+"m":a?a+="m":a="",(o||a)&&e<10&&(e="0"+e),o+a+(e+="s"))}function fv_player_time_hms_ms(e){var t;return isNaN(e)?NaN:(t=void 0!==(t=((e=parseFloat(e).toFixed(3))+"").split("."))[1]&&0<t[1]?t[1]+"ms":"",fv_player_time_hms(e)+t)}function fv_player_time_seconds(e,t){var o;return e?(o=0,e.match(/(\d+[a-z]{1,2})/g).forEach(function(e){e.endsWith("h")?o+=3600*parseInt(e):e.endsWith("m")?o+=60*parseInt(e):e.endsWith("s")&&!e.endsWith("ms")?o+=parseInt(e):e.endsWith("ms")&&parseInt(e)&&(o+=parseInt(e)/1e3)}),t?Math.min(o,t):o):-1}function fv_autoplay_init(e,o,t,a,n){var r,i,l;!fv_autoplay_exec_in_progress&&(fv_autoplay_exec_in_progress=!0,r=e.data("flowplayer"))&&(i=fv_player_time_seconds(t),n=fv_player_time_seconds(n),a=fv_player_time_seconds(a),e.parent().hasClass("ui-tabs-panel")&&(t=e.parent().attr("id"),jQuery("[aria-controls="+t+"] a").trigger("click")),e.find(".fp-player").attr("class").match(/\bis-sticky/)||(l=jQuery(e).offset().top-(jQuery(window).height()-jQuery(e).height())/2,window.scrollTo(0,l),r.one("ready",function(){window.scrollTo(0,l)})),e.hasClass("lightboxed")&&setTimeout(function(){jQuery("[href=\\#"+e.attr("id")+"]").trigger("click")},0),o?fv_player_video_link_autoplay_can(r,parseInt(o))?r.ready?fv_player_video_link_seek(r,i,n,a):(r.play(parseInt(o)),r.one("ready",function(){fv_player_video_link_seek(r,i,n,a)})):flowplayer.support.inlineVideo&&(r.one(r.playing?"progress":"ready",function(e,t){t.play(parseInt(o)),t.one("ready",function(){fv_player_video_link_seek(t,i,n,a)})}),e.find(".fp-splash").attr("src",jQuery("[rel="+e.attr("id")+"] div").eq(o).find("img").attr("src")).removeAttr("srcset"),fv_player_in_iframe()||fv_player_notice(e,fv_flowplayer_translations[11],"progress")):r.ready?fv_player_video_link_seek(r,i,n,a):(fv_player_video_link_autoplay_can(r)?r.load():fv_player_in_iframe()||fv_player_notice(e,fv_flowplayer_translations[11],"progress"),r.one("ready",function(){fv_player_video_link_seek(r,i,n,a)})))}function fv_player_video_link_seek(e,t,o,a){fv_autoplay_exec_in_progress=!1;var n=setInterval(function(){e.loading||((0<t||0<e.video.time)&&(e.custom_seek?e.custom_seek(t):e.seek(t)),o&&a&&e.trigger("link-ab",[e,a,o]),clearInterval(n))},10)}jQuery(document).ready(function(){var e=0,t=setInterval(function(){++e<1e3&&(window.fv_vast_conf&&!window.FV_Player_IMA||window.fv_player_pro&&!window.FV_Flowplayer_Pro&&!window.FV_Player_Pro&&document.getElementById("fv_player_pro")!=fv_player_pro||window.fv_player_user_playlists&&!window.fv_player_user_playlists.is_loaded||window.FV_Player_JS_Loader_scripts_total&&window.FV_Player_JS_Loader_scripts_loaded<window.FV_Player_JS_Loader_scripts_total)||(clearInterval(t),fv_player_preload())},10)});var fv_autoplay_exec_in_progress=!1;function fv_video_link_autoplay(){var e,i,l,s,f,p=!0;"undefined"!=typeof flowplayer&&"undefined"!=typeof fv_flowplayer_conf&&fv_flowplayer_conf.video_hash_links&&window.location.hash.substring(1).length&&(e=window.location.hash.match(/\?t=/)?window.location.hash.substring(1).split("?t="):window.location.hash.substring(1).split(","),i=e[0],l=void 0!==e[1]&&e[1],s=void 0!==e[2]&&e[2],f=void 0!==e[3]&&e[3],jQuery(".flowplayer").each(function(){var e=jQuery(this),t=(e=e.hasClass("lightbox-starter")?jQuery(e.attr("href")):e).data("flowplayer");if(t){var o,a=void 0!==t.conf.playlist&&1<t.conf.playlist.length?t.conf.playlist:[t.conf.clip];for(o in a)if(a.hasOwnProperty(o)){var n=void 0!==a[o].id&&fv_parse_sharelink(a[o].id.toString());if(i===n&&p)return 0<t.conf.playlist.length?t.conf.playlist[o].prevent_position_restore=!0:t.conf.clip.prevent_position_restore=!0,console.log("fv_autoplay_exec for "+n,o),fv_autoplay_init(e,parseInt(o),l,s,f),p=!1}for(o in a)if(a.hasOwnProperty(o)){var r=fv_parse_sharelink(a[o].sources[0].src);if(i===r&&p)return 0<t.conf.playlist.length?t.conf.playlist[o].prevent_position_restore=!0:t.conf.clip.prevent_position_restore=!0,console.log("fv_autoplay_exec for "+r,o),fv_autoplay_init(e,parseInt(o),l,s,f),p=!1}}}))}function fv_player_video_link_autoplay_can(e,t){return!("video/youtube"==(t?e.conf.playlist[t]:e.conf.clip).sources[0].type&&(flowplayer.support.iOS||flowplayer.support.android)||fv_player_in_iframe())&&flowplayer.support.firstframe}function fv_player_notice(e,t,o){var a=jQuery(".fvfp-notices",e),n=(a.length||(a=jQuery('<div class="fvfp-notices">'),jQuery(".fp-player",e).append(a)),jQuery('<div class="fvfp-notice-content">'+t+"</div></div>"));return a.append(n),"string"==typeof o&&jQuery(e).data("flowplayer").on(o,function(){n.fadeOut(100,function(){jQuery(this).remove()})}),0<o&&setTimeout(function(){n.fadeOut(2e3,function(){jQuery(this).remove()})},o),n}var fv_player_clipboard=function(e,t,o){if(navigator.clipboard&&"function"==typeof navigator.clipboard.writeText)navigator.clipboard.writeText(e).then(function(){t()},function(){void 0!==o&&o()});else try{fv_player_doCopy(e)?t():void 0!==o&&o()}catch(e){void 0!==o&&o(e)}};function fv_player_doCopy(e){var t,o,a,n=document.createElement("textarea"),e=(n.value=e,n.style.opacity=0,n.style.position="absolute",n.setAttribute("readonly",!0),document.body.appendChild(n),0<document.getSelection().rangeCount&&document.getSelection().getRangeAt(0));navigator.userAgent.match(/ipad|ipod|iphone/i)?(t=n.contentEditable,n.contentEditable=!0,(o=document.createRange()).selectNodeContents(n),(a=window.getSelection()).removeAllRanges(),a.addRange(o),n.setSelectionRange(0,999999),n.contentEditable=t):n.select();try{var r=document.execCommand("copy");return e&&(document.getSelection().removeAllRanges(),document.getSelection().addRange(e)),document.body.removeChild(n),r}catch(e){throw new Error("Unsuccessfull")}}function fv_player_log(e,t){fv_flowplayer_conf.debug&&"undefined"!=typeof console&&"function"==typeof console.log&&(t?console.log(e,t):console.log(e)),fv_flowplayer_conf.debug&&void 0!==window.location.search&&window.location.search.match(/fvfp/)&&jQuery("body").prepend(e+"<br />")}function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function is_ga_4(e){return!(void 0===e.conf.fvanalytics||!e.conf.fvanalytics||!e.conf.fvanalytics.startsWith("G-"))}function fv_player_track(e,t,o,a,n,r){if("object"!=_typeof(e)&&(r=n,n=a,a=o,o=t,t=e,e=!1),t=t||flowplayer.conf.fvanalytics,void 0===a&&(a="Unknown engine"),/fv_player_track_debug/.test(window.location.href)&&console.log("FV Player Track: "+o+" - "+a+" '"+n+"'",r),"undefined"!=typeof gtag)is_ga_4(e)&&"Video Subtitles"!==o?gtag("event",o,{video_title:n,video_current_time:e.video.time,video_provider:a,video_duration:e.video.duration,value:r||1}):gtag("event",o,{event_category:a,event_label:n,value:r||1});else if(t&&"undefined"!=typeof ga)ga("create",t,"auto",n,{allowLinker:!0}),ga("require","linker"),r?ga("send","event",o,a,n,r):ga("send","event",o,a,n);else if(t&&"undefined"!=typeof _gat){e=_gat._getTracker(t);if(void 0===e._setAllowLinker)return;e._setAllowLinker(!0),r?e._trackEvent(o,a,n,r):e._trackEvent(o,a,n)}flowplayer.conf.matomo_domain&&flowplayer.conf.matomo_site_id&&"undefined"!=typeof _paq&&(r?_paq.push(["trackEvent",o,a,n,r]):_paq.push(["trackEvent",o,a,n]))}function fv_player_track_name(e,t){e=e.attr("title");return(e=(e=e||void 0===t.fv_title?e:t.fv_title)||void 0===t.title?e:t.title)||void 0===t.src||(e=t.src.split("/").slice(-1)[0].replace(/\.(\w{3,4})(\?.*)?$/i,""),t.type.match(/mpegurl/)&&(e=t.src.split("/").slice(-2)[0].replace(/\.(\w{3,4})(\?.*)?$/i,"")+"/"+e)),e}function freedomplayer_playlist_size_check(){jQuery(".fp-playlist-external").each(function(){var e=jQuery(this),t=e.parent().width(),o=e.css("max-width").match(/%/)?e.width():parseInt(e.css("max-width")),o=0<o&&o<t?o:t;900<=e.parent().width()?e.addClass("is-wide"):e.removeClass("is-wide"),(e.hasClass("fp-playlist-polaroid")||e.hasClass("fp-playlist-version-one")||e.hasClass("fp-playlist-version-two"))&&(t=e.hasClass("fp-playlist-version-one")||e.hasClass("fp-playlist-version-two")?200:150,8<(o=Math.floor(o/t))?o=8:o<2&&(o=2),e.css("--fp-playlist-items-per-row",String(o)))})}flowplayer(function(o,r){var n,i,t,l,a,s;function e(){var e;"dash"==o.engine.engineName?((e=l[o.engine.dash.getQualityFor("video")]).qualityIndex!=a&&(a=e.qualityIndex,f(e.qualityIndex,l)),t.match(/dash_debug/)&&p(e.width,e.height,e.bitrate)):"hlsjs-lite"==o.engine.engineName&&(n.currentLevel!=a&&(a=n.currentLevel,f(n.currentLevel,n.levels)),t.match(/hls_debug/))&&(e=n.levels[n.currentLevel])&&p(e.width,e.height,e.bitrate)}function f(e,t){var o,a,n;t[e]&&(o=t[e].height,a=541,n=1e5,jQuery(t).each(function(e,t){720<=t.height&&t.height<1400&&(a=720),t.height<n&&(n=t.height),localStorage.FVPlayerHLSQuality==t.height&&(r.find("a[data-quality]").removeClass("fp-selected fp-color"),r.find("a[data-quality="+e+"]").addClass("fp-selected fp-color"))}),r.find("a[data-quality]").removeClass("is-current"),r.find("a[data-quality="+e+"]").addClass("is-current"),t=1400<=o?"4K":a<=o?"HD":360<=o&&n<o?"SD":"SD",r.find(".fp-qsel").html(t))}function p(e,t,o){s.html("Using "+e+"x"+t+" at "+Math.round(o/1024)+" kbps")}function c(){var o=r.find(".fp-qsel-menu");o.children().each(function(e,t){o.prepend(t)}),o.children().each(function(e,t){var o;/^NaNp/.test(jQuery(t).html())?(o=jQuery(t).html().match(/\((.*?)\)/))&&void 0!==o[1]&&jQuery(t).html(o[1]):jQuery(t).html(jQuery(t).html().replace(/\(.*?\)/,""))}),o.prepend(o.find("a[data-quality=-1]")),o.prepend(o.find("strong"))}r=jQuery(r),void 0===o.conf.disable_localstorage&&(i=o.conf.splash,flowplayer.engine("hlsjs-lite").plugin(function(e){(n=e.hls).on(Hls.Events.ERROR,function(e,t){"mediaError"==t.type&&"fragParsingError"==t.details&&1==t.fatal&&(n.destroy(),o.trigger("error",[o,{code:3}]),setTimeout(function(){r.removeClass("is-seeking"),r.addClass("is-paused")},0))}),flowplayer.support.browser.safari&&n.on(Hls.Events.KEY_LOADED,function(e){"hlsKeyLoaded"==e&&setTimeout(function(){o.loading&&(console.log("FV Player: Safari stuck loading HLS, resuming playback..."),o.resume())},0)});var a=!(!flowplayer.conf.hd_streaming||flowplayer.support.fvmobile)&&720;localStorage.FVPlayerHLSQuality&&(a=localStorage.FVPlayerHLSQuality),(a=0==jQuery(e.root).data("hd_streaming")?!1:a)&&n.on(Hls.Events.MANIFEST_PARSED,function(e,t){var o=!1;jQuery.each(t.levels,function(e,t){t.height==a&&(o=e)}),localStorage.FVPlayerHLSQuality||o||jQuery.each(t.levels,function(e,t){t.height>o&&(o=e)}),o&&(console.log("FV Player: Picked "+t.levels[o].height+"p quality"),n.startLevel=o,n.currentLevel=o)})}),r=jQuery(r),t=document.location.search,localStorage.FVPlayerDashQuality&&(o.conf.dash||(o.conf.dash={}),o.conf.dash.initialVideoQuality="restore"),r.on("click",".fp-qsel-menu a",function(){var e;"hlsjs-lite"==o.engine.engineName&&(-1==(e=jQuery(this).data("quality"))?localStorage.removeItem("FVPlayerHLSQuality"):(e=n.levels[e],localStorage.FVPlayerHLSQuality=e.height))}),0!=r.data("hd_streaming")&&(localStorage.FVPlayerHLSQuality?(o.conf.hlsjs.startLevel=parseInt(localStorage.FVPlayerHLSQuality),o.conf.hlsjs.testBandwidth=!1,o.conf.hlsjs.autoLevelEnabled=!1):flowplayer.conf.hd_streaming&&!flowplayer.support.fvmobile&&(o.conf.hlsjs.startLevel=3,o.conf.hlsjs.testBandwidth=!1,o.conf.hlsjs.autoLevelEnabled=!1)),o.bind("quality",function(e,t,o){"dash"==t.engine.engineName&&(-1==o?localStorage.removeItem("FVPlayerDashQuality"):l[o]&&(localStorage.FVPlayerDashQuality=l[o].height))}),l=[],a=-1,o.bind("ready",function(e,t){var a;r.find(".fp-qsel-menu strong").text(fv_flowplayer_translations.quality),"dash"==t.engine.engineName?(l=t.engine.dash.getBitrateInfoListFor("video"),localStorage.FVPlayerDashQuality&&t.conf.dash.initialVideoQuality&&t.quality(t.conf.dash.initialVideoQuality),c()):"hlsjs-lite"==t.engine.engineName?(i&&(r.addClass("is-loading"),t.loading=!0,t.one("progress",function(){t.loading&&(r.removeClass("is-loading"),t.loading=!1)})),t.video.qualities&&2<t.video.qualities.length&&(a=-1,0!=r.data("hd_streaming")&&(localStorage.FVPlayerHLSQuality?jQuery(t.video.qualities).each(function(e,t){if(t.value==localStorage.FVPlayerHLSQuality)return a=localStorage.FVPlayerHLSQuality,!1}):flowplayer.conf.hd_streaming&&!flowplayer.support.fvmobile&&jQuery(t.video.qualities).each(function(e,t){var o=parseInt(t.label);0<o&&-1==a&&720<=o&&o<=720&&(a=t.value)}),-1<(a=parseInt(a)))&&r.one("progress",function(){setTimeout(function(){t.quality(a)})}),c())):t.video.sources_fvqs&&0<t.video.sources_fvqs.length&&t.video.src.match(/vimeo.*?\.mp4/)&&setTimeout(c,0),r.find("a[data-quality]").removeClass("is-current")}),(t.match(/dash_debug/)||t.match(/hls_debug/))&&(s=jQuery('<div class="fv-debug" style="background: gray; color: white; top: 10%; position: absolute; z-index: 1000">').appendTo(r.find(".fp-player"))),o.bind("ready progress",e),o.bind("quality",function(){setTimeout(e,0)}))}),flowplayer(function(a,s){var n,r,e,t,o,s=jQuery(s),i=flowplayer.bean,l=0,f=0,p=[],c=0,d=("undefined"==typeof ga&&a.conf.fvanalytics&&"undefined"==typeof _gat&&"undefined"==typeof gtag&&(is_ga_4(a)?jQuery.getScript({url:"https://www.googletagmanager.com/gtag/js?id="+a.conf.fvanalytics,cache:!0},function(){window.dataLayer=window.dataLayer||[],window.gtag=function(){window.dataLayer.push(arguments)},window.gtag("js",new Date),window.gtag("config",a.conf.fvanalytics)}):jQuery.getScript({url:"https://www.google-analytics.com/analytics.js",cache:!0},function(){ga("create",a.conf.fvanalytics,"auto")})),!window._paq&&a.conf.matomo_domain&&a.conf.matomo_site_id&&(e="//"+a.conf.matomo_domain+"/",(o=window._paq=window._paq||[]).push(["setTrackerUrl",e+"matomo.php"]),o.push(["setSiteId",a.conf.matomo_site_id]),t=(o=document).createElement("script"),o=o.getElementsByTagName("script")[0],t.type="text/javascript",t.async=!0,t.src=e+"matomo.js",o.parentNode.insertBefore(t,o)),a.bind("progress",function(e,t,o){if(1<o){var a=t.video,n=a.duration,r=0,i=fv_player_track_name(s,a);if(4<n&&(19*n/20<o?r=4:3*n/4<o?r=3:n/2<o?r=2:n/4<o&&(r=1)),t.live&&(r=0),!s.data("fv_track_"+d[r])){for(var l in d)if(d.hasOwnProperty(l)){if(l==r)break;if(!s.data("fv_track_"+d[l]))return}s.trigger("fv_track_"+d[r].replace(/ /,"_"),[t,i]),s.data("fv_track_"+d[r],!0),fv_player_track(t,!1,"Video "+(s.hasClass("is-cva")?"Ad ":"")+d[r],t.engine.engineName+"/"+a.type,i)}}}).bind("finish ready ",function(e,t){for(var o in d)d.hasOwnProperty(o)&&s.removeData("fv_track_"+d[o]);t=t.video.index||0;c!==t&&(p=[],c=t)}).bind("error",function(e,t,o){setTimeout(function(){var e;t.error&&((e=void 0!==t.video&&void 0!==t.video.src&&t.video)||void 0===t.conf.clip||void 0===t.conf.clip.sources||void 0===t.conf.clip.sources[0]||void 0===t.conf.clip.sources[0].src||(e=t.conf.clip.sources[0]),!(e=fv_player_track_name(s,e))||e.match(/\/\/vimeo.com\/\d/)||is_ga_4(t)||fv_player_track(t,!1,"Video "+(s.hasClass("is-cva")?"Ad ":"")+"error",o.message,e))},100)}),a.bind("load unload",u).bind("progress",function(e,t){t.seeking||(l+=f?+new Date-f:0,f=+new Date),n=n||setTimeout(function(){n=null,u({type:"heartbeat"})},6e5)}).bind("pause",function(){f=0}),a.bind("shutdown",function(){i.off(window,"visibilitychange pagehide",u)}),i.on(window,"visibilitychange pagehide",u),is_ga_4(a)?["Play","25 Percent Played","50  Percent Played","75 Percent Played","100 Percent Played"]:["start","first quartile","second quartile","third quartile","complete"]);function u(e,t,o){"visible"===document.visibilityState&&"load"!==e.type&&"heartbeat"!==e.type||(o=o||a.video,"load"===e.type&&(r=fv_player_track_name(s,o)),l&&(fv_player_track(a,!1,"Video / Seconds played",a.engine.engineName+"/"+a.video.type,r,Math.round(l/1e3)),l=0,n)&&(clearTimeout(n),n=null))}a.get_time_played=function(){return l/1e3};var y=a.loadSubtitles;a.loadSubtitles=function(e){var t;y(e),a.video.subtitles[e]&&(t=fv_player_track_name(s,a.video),e=a.video.subtitles[e].srclang,-1===p.indexOf(e))&&(fv_player_track(a,!1,"Video Subtitles",e,t),p.push(e))}}),flowplayer(function(n,r){var i=(r=jQuery(r)).find(".fp-player"),l=r.hasClass("fp-full"),s=0;function t(){var e=i.width()||r.width(),t=n.video.index||0,o=(900<e?jQuery(".fp-subtitle",r).addClass("is-wide"):jQuery(".fp-subtitle",r).removeClass("is-wide"),e<480+35*s),t=(void 0!==n.fv_timeline_chapters_data&&void 0!==n.fv_timeline_chapters_data[t]&&(o=!0),l||r.toggleClass("fp-full",r.hasClass("has-abloop")||o),""),o=(e<400?t="is-tiny":e<600&&400<=e&&(t="is-small"),r.trigger("fv-player-size",[t]),i),e=((o=r.parent().hasClass("fp-playlist-vertical-wrapper")||r.parent().hasClass("fp-playlist-text-wrapper")?r.parent():o).width()<=560?o.addClass("is-fv-narrow"):o.removeClass("is-fv-narrow"),r.find(".fp-controls")),t=e.parent().width(),o=e.find(".fp-duration, .fp-playbtn"),a=0;o.removeClass("wont-fit"),r.find(".fp-controls").children(":visible:not(.fp-timeline)").each(function(){a+=jQuery(this).outerWidth(!0)}),t<a&&o.addClass("wont-fit")}t();function e(){clearTimeout(f),f=setTimeout(o,a)}var o,a,f;o=t,a=250;window.addEventListener("resize",e),"fonts"in document&&n.one("load",function(){document.fonts.load("1em flowplayer")}),n.on("ready fullscreen fullscreen-exit sticky sticky-exit",function(e){setTimeout(function(){s=r.find(".fp-controls > strong:visible").length+r.find(".fp-controls > .fp-icon:visible").length,t()},0)}),n.on("unload pause finish error",function(){"undefined"!=typeof checker&&clearInterval(checker)})}),jQuery(window).on("resize tabsactivate",freedomplayer_playlist_size_check),jQuery(document).ready(freedomplayer_playlist_size_check),flowplayer(function(t,a){a=jQuery(a),t.setLogoPosition=function(){var e=freedomplayer.support.browser.safari&&parseFloat(freedomplayer.support.browser.version)<14.1||freedomplayer.support.iOS&&parseFloat(freedomplayer.support.iOS.version)<15;t.conf.logo_over_video&&t.video&&t.video.width&&t.video.height&&!e?a.find(".fp-logo").css("--fp-aspect-ratio",(t.video.width/t.video.height).toFixed(2)):a.find(".fp-logo").css("width","100%").css("height","100%")},t.bind("ready",function(e,t,o){t.setLogoPosition(),o.remove_black_bars?a.addClass("remove-black-bars"):a.removeClass("remove-black-bars"),/Chrome/.test(navigator.userAgent)&&54<parseFloat(/Chrome\/(\d\d)/.exec(navigator.userAgent)[1],10)&&(t.video.subtitles?jQuery(a).addClass("chrome55fix-subtitles"):jQuery(a).addClass("chrome55fix"))});var e=a.css("background-image");if(e){if(!(e=e.replace(/url\((['"])?(.*?)\1\)/gi,"$2").split(","))||!e[0].match(/^(https?:)?\/\//))return;var o=new Image,e=(o.src=e[0],o.height/o.width),o=a.height()/a.width();Math.abs(o-e)<.05&&a.css("background-size","cover")}var n=!1;jQuery(t.conf.playlist).each(function(e,t){t.sources[0].type.match(/youtube/)&&(n=!0)}),n&&a.addClass("is-youtube"),t.bind("ready",function(e,t,o){"video/youtube"==o.type?a.addClass("is-youtube"):a.removeClass("is-youtube")})}),(e=>{e(window).on("resize",function(){e("iframe[id][src][height][width]").each(function(){e(this).attr("id").match(/fv_vimeo_/)&&e(this).width()<=e(this).attr("width")&&e(this).height(e(this).width()*e(this).attr("height")/e(this).attr("width"))}),jQuery(".wistia_embed").each(function(){e(this).height(e(this).width()*e(this).data("ratio"))})}).trigger("resize")})(jQuery),jQuery(document).on("tabsactivate",".fv_flowplayer_tabs_content",function(e,t){var o=jQuery(t.oldPanel).find(".flowplayer").data("flowplayer");void 0!==o&&o.pause(),jQuery(".flowplayer",t.newPanel).data("flowplayer").load()}),flowplayer(function(t,a){a=jQuery(a);var e=flowplayer.bean;a.hasClass("is-audio")&&(e.off(a[0],"mouseenter"),e.off(a[0],"mouseleave"),a.removeClass("is-mouseout"),a.addClass("fixed-controls").addClass("is-mouseover"),t.on("error",function(e,t,o){jQuery(".fp-message",a).html(jQuery(".fp-message",a).html().replace(/video/,"audio"))}),a.on("click",function(e){t.ready||(e.preventDefault(),e.stopPropagation(),t.load())}))}),jQuery(document).on("mfpClose",function(){void 0!==jQuery(".flowplayer").data("flowplayer")&&jQuery(".flowplayer").data("flowplayer").unload()}),jQuery(document).on("click",".vc_tta-tab a",function(){var e=jQuery(".flowplayer.is-playing").data("flowplayer");e&&e.pause()}),flowplayer(function(e,t){t=jQuery(t),e.bind("ready",function(){setTimeout(function(){var e=jQuery("video",t);0<e.length&&e.prop("autoplay",!1)},100),t.find("video.fp-engine").addClass("intrinsic-ignore")})}),jQuery(".flowplayer").on("ready",function(e,t){/BB10/.test(navigator.userAgent)&&t.fullscreen()});var fv_flowplayer_safety_resize_arr=Array();function fv_flowplayer_safety_resize(){var t=!1;jQuery(".flowplayer").each(function(){if(jQuery(this).is(":visible")&&!jQuery(this).hasClass("lightboxed")&&!jQuery(this).hasClass("lightbox-starter")&&!jQuery(this).hasClass("is-audio")&&(jQuery(this).width()<30||jQuery(this).height()<20)){t=!0;var e=jQuery(this);while(jQuery(e).width()<30||jQuery(e).width()==jQuery(this).width()){if(0==jQuery(e).parent().length)break;(e=jQuery(e).parent()).hasClass("ld-video")&&(""==e[0].style.height&&e.css("height","auto"),0<parseInt(e.css("padding-bottom")))&&e.css("padding-bottom","0")}jQuery(this).width(jQuery(e).width()),jQuery(this).height(parseInt(jQuery(this).width()*jQuery(this).attr("data-ratio"))),fv_flowplayer_safety_resize_arr[jQuery(this).attr("id")]=e}}),t&&jQuery(window).resize(function(){jQuery(".flowplayer").each(function(){jQuery(this).hasClass("lightboxed")||jQuery(this).hasClass("lightbox-starter")||fv_flowplayer_safety_resize_arr[jQuery(this).attr("id")]&&(jQuery(this).width(fv_flowplayer_safety_resize_arr[jQuery(this).attr("id")].width()),jQuery(this).height(parseInt(jQuery(this).width()*jQuery(this).attr("data-ratio"))))})})}void 0!==flowplayer.conf.safety_resize&&flowplayer.conf.safety_resize&&jQuery(document).ready(function(){setTimeout(function(){fv_flowplayer_safety_resize()},10)});var fv_autoplay_type,fv_player_scroll_autoplay,fv_player_scroll_autoplay_last_winner,fv_player_scroll_int,fv_player_warning,isIE11=!!navigator.userAgent.match(/Trident.*rv[ :]*11\./);function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function fv_player_lightbox_bind(){jQuery(".freedomplayer.lightbox-starter").each(function(){var e,t=jQuery(this);(parseInt(t.css("width"))<10||parseInt(t.css("height"))<10)&&((e=t.find(".fp-ratio")).length<1&&(t.append('<div class="fp-ratio"></div>'),e=t.find(".fp-ratio")),e.css("paddingTop",100*t.data("ratio")+"%")),t.find(".fp-preload").remove()})}function fv_flowplayer_mobile_switch(e){var t,o=new RegExp("[\\?&]fv_flowplayer_mobile=([^&#]*)").exec(location.search);!(null!=o&&"yes"==o[1]||jQuery(window).width()<=480||jQuery(window).height()<=480)||null!=o&&"no"==o[1]||(t=!1,jQuery("#wpfp_"+e+" video source").each(function(){jQuery(this).attr("id")!="wpfp_"+e+"_mobile"&&(t=!0,jQuery(this).remove())}),t&&jQuery("#wpfp_"+e).after('<p class="fv-flowplayer-mobile-switch">'+fv_flowplayer_translations.mobile_browser_detected_1+' <a href="'+document.URL+'?fv_flowplayer_mobile=no">'+fv_flowplayer_translations.mobile_browser_detected_2+"</a>.</p>"))}if(isIE11&&(jQuery(document).ready(function(){jQuery(".fp-waiting").hide()}),flowplayer(function(e,t){e.bind("load",function(e){jQuery(e.currentTarget).find(".fp-waiting").show()}).bind("beforeseek",function(e){jQuery(e.currentTarget).find(".fp-waiting").show()}).bind("progress",function(e){jQuery(e.currentTarget).find(".fp-waiting").hide()}).bind("seek",function(e){jQuery(e.currentTarget).find(".fp-waiting").hide()}).bind("fullscreen",function(e){jQuery("#wpadminbar").hide()}).bind("fullscreen-exit",function(e){jQuery("#wpadminbar").show()})})),flowplayer.support.browser&&flowplayer.support.browser.msie&&parseInt(flowplayer.support.browser.version,10)<9&&jQuery(".flowplayer").each(function(){jQuery(this).css("width",jQuery(this).css("max-width")),jQuery(this).css("height",jQuery(this).css("max-height"))}),location.href.match(/elementor-preview=/)?(console.log("FV Player: Elementor editor is active"),setInterval(fv_player_load,1e3)):location.href.match(/brizy-edit-iframe/)?(console.log("FV Player: Brizy editor is active"),setInterval(fv_player_load,1e3)):"blob:"===location.protocol&&setTimeout(function(){jQuery("body.block-editor-iframe__body").length&&(console.log("FV Player: Site Editor is active"),setInterval(fv_player_load,1e3))},0),window.DELEGATE_NAMES&&flowplayer(function(e,t){fv_player_notice(t,fv_flowplayer_translations.chrome_extension_disable_html5_autoplay)}),flowplayer(function(e,t){flowplayer.bean.off(t,"contextmenu")}),location.href.match(/elementor-preview=/)&&(console.log("FV Player: Elementor editor is active"),setInterval(fv_player_load,1e3)),flowplayer(function(o,a){void 0!==(a=jQuery(a)).data("fv-embed")&&a.data("fv-embed")&&"false"!=a.data("fv-embed")&&(o.embedCode=function(){o.video;var e=a.width(),t=a.height();return t+=2,(a.hasClass("has-chapters")||a.hasClass("has-transcript"))&&(t+=300),0<jQuery(".fp-playlist-external[rel="+a.attr("id")+"]").length&&(t+=170),'<iframe src="'+(a.data("fv-embed")+"#"+fv_player_get_video_link_hash(o))+'" allowfullscreen allow="autoplay" width="'+parseInt(e)+'" height="'+parseInt(t)+'" frameborder="0" style="max-width:100%"></iframe>'})}),jQuery(document).on("click",".flowplayer .embed-code-toggle",function(){var e,t,o=jQuery(this).closest(".flowplayer");return"undefined"!=typeof fv_player_editor_conf?fv_player_notice(o,fv_player_editor_translations.embed_notice,2e3):(e=jQuery(this),"function"==typeof(o=(t=e.parents(".flowplayer")).data("flowplayer")).embedCode&&t.find(".embed-code textarea").val(o.embedCode()),fv_player_clipboard(t.find(".embed-code textarea").val(),function(){fv_player_notice(t,fv_flowplayer_translations.embed_copied,2e3)},function(){e.parents(".fvp-share-bar").find(".embed-code").toggle(),e.parents(".fvp-share-bar").toggleClass("visible")})),!1}),flowplayer(function(a,n){var r,i,l="fullscreen",s="fullscreen-exit",f=flowplayer.support.fullscreen,p=window,c=flowplayer.bean;a.fullscreen=function(e){if(!a.disabled&&0!=jQuery(n).data("fullscreen")){(e=void 0===e?!a.isFullscreen:e)&&(i=p.scrollY,r=p.scrollX,console.log("scrollY",i));var t,o=d.find("video.fp-engine",n)[0];if(!(flowplayer.conf.native_fullscreen&&o&&flowplayer.support.iOS))return t=jQuery(n).find(".fp-player")[0],flowplayer.support.browser.safari&&flowplayer.support.fullscreen&&e&&document.fullscreenElement&&(f=!1,document.addEventListener("fullscreenchange",function(e){flowplayer(".is-fullscreen").trigger(s)})),f?e?["requestFullScreen","webkitRequestFullScreen","mozRequestFullScreen","msRequestFullscreen"].forEach(function(e){"function"==typeof t[e]&&(t[e]({navigationUI:"hide"}),"webkitRequestFullScreen"!==e||document.webkitFullscreenElement||t[e]())}):["exitFullscreen","webkitCancelFullScreen","mozCancelFullScreen","msExitFullscreen"].forEach(function(e){"function"==typeof document[e]&&document[e]()}):a.trigger(e?l:s,[a]),a;a.trigger(l,[a]),c.on(document,"webkitfullscreenchange.nativefullscreen",function(){document.webkitFullscreenElement===o&&(c.off(document,".nativefullscreen"),c.on(document,"webkitfullscreenchange.nativefullscreen",function(){document.webkitFullscreenElement||(c.off(document,".nativefullscreen"),a.trigger(s,[a]))}))});try{o.webkitEnterFullScreen()}catch(e){a.pause(),d.find(".fp-play",n)[0].style.opacity=1,jQuery(n).on("touchstart",function(e){return d.find(".fp-play",n)[0].style.opacity="",a.resume(),o.webkitEnterFullScreen(),!1})}c.one(o,"webkitendfullscreen",function(){c.off(document,"fullscreenchange.nativefullscreen"),a.trigger(s,[a]),d.prop(o,"controls",!0),d.prop(o,"controls",!1)})}};var e,d=flowplayer.common;function o(e){var t=n;while(t){try{var o=getComputedStyle(t);o.transform&&(t.style.transform=e?"none":""),o.zIndex&&(t.style.zIndex=e?"auto":"")}catch(e){}t=t.parentNode}}a.on("mousedown.fs",function(){+new Date-e<150&&a.ready&&a.fullscreen(),e=+new Date}),a.on(l,function(){d.addClass(n,"is-fullscreen"),d.toggleClass(n,"fp-minimal-fullscreen",d.hasClass(n,"fp-minimal")),d.removeClass(n,"fp-minimal"),d.addClass(document.body,"has-fv-player-fullscreen"),f&&!document.fullscreenElement||(d.css(n,"position","fixed"),o(!0)),a.isFullscreen=!0}).on(s,function(){d.toggleClass(n,"fp-minimal",d.hasClass(n,"fp-minimal-fullscreen")),d.removeClass(n,"fp-minimal-fullscreen");var e,t=f&&jQuery(n).find(".fp-player")[0]==document.fullscreenElement;t||"html5"!==a.engine||(e=n.css("opacity")||"",d.css(n,"opacity",0)),t||(d.css(n,"position",""),o(!1)),d.removeClass(n,"is-fullscreen"),d.removeClass(document.body,"has-fv-player-fullscreen"),t||"html5"!==a.engine||setTimeout(function(){n.css("opacity",e)}),a.isFullscreen=!1,"fvyoutube"!=a.engine.engineName&&p.scrollTo(r,i)}).on("unload",function(){a.isFullscreen&&a.fullscreen()}),a.on("shutdown",function(){FULL_PLAYER=null,d.removeNode(wrapper)}),flowplayer.support.iOS&&n.querySelector(".fp-player").addEventListener("touchstart",function(e){a.isFullscreen&&e.pageX&&(16<e.pageX&&e.pageX<window.innerWidth-16||e.preventDefault())})}),flowplayer(function(t,o){o=jQuery(o);var e,a=jQuery(".fp-playlist-external[rel="+o.attr("id")+"]"),a=a.hasClass("fp-playlist-season")||a.hasClass("fp-playlist-polaroid"),n=1==o.data("fsforce");function r(){return!!(window.innerWidth>window.innerHeight&&window.screen&&window.screen.width&&26<window.screen.width-window.innerHeight)}function i(){t.isFullscreen&&window.innerWidth>window.innerHeight&&r()&&!e&&(fv_player_notice(o,fv_flowplayer_translations.iphone_swipe_up_location_bar,"resize-good"),e=setTimeout(function(){e=!1,t.trigger("resize-good")},5e3))}flowplayer.conf.wpadmin&&!a||jQuery(o).hasClass("is-audio")||0==o.data("fullscreen")||0==o.data("fsforce")||((flowplayer.conf.mobile_force_fullscreen&&flowplayer.support.fvmobile||n||a)&&(flowplayer.support.fullscreen?o.on("click",function(){t.ready&&!t.paused||t.fullscreen(!0)}):t.bind("ready",function(){t.video.vr||t.one("progress",function(){t.fullscreen(!0)})}),jQuery("[rel="+o.attr("id")+"] a").on("click",function(e){t.isFullscreen||(t.fullscreen(),t.resume())}),t.on("resume",function(){t.video.vr||t.isFullscreen||(flowplayer.support.fullscreen?t.fullscreen():t.one("progress",function(){t.fullscreen(!0)}))}),t.on("finish",function(){0!=t.conf.playlist.length&&t.conf.playlist.length-1!=t.video.index||t.fullscreen(!1)}).on("fullscreen",function(e,t){o.addClass("forced-fullscreen")}).on("fullscreen-exit",function(e,t){t.pause(),o.removeClass("forced-fullscreen")})),flowplayer.support.android&&flowplayer.conf.mobile_landscape_fullscreen&&window.screen&&window.screen.orientation&&t.on("fullscreen",function(e,t){void 0!==(t=t).video.width&&void 0!==t.video.height&&0!=t.video.width&&0!=t.video.height&&t.video.width<t.video.height?screen.orientation.lock("portrait-primary"):screen.orientation.lock("landscape-primary")}),e=!1,!flowplayer.support.iOS)||flowplayer.support.fullscreen||flowplayer.conf.native_fullscreen||(t.on("fullscreen",i),window.addEventListener("resize",i),window.addEventListener("resize",function(){r()||(clearTimeout(e),e=!1,t.trigger("resize-good"))}))}),flowplayer(function(e,t){t=jQuery(t);(document.body.classList.contains("block-editor-page")&&!t.closest("#fv-player-shortcode-editor-preview-target").length||jQuery("body.block-editor-iframe__body").length)&&jQuery('<div title="Click to edit" style="width: 40%; height: calc( 100% - 3em ); z-index: 19; position: absolute; top: 0; left: 0; cursor: context-menu" onclick="return false" title="Click to edit"></div><div style="width: 40%; height: calc( 100% - 3em ); z-index: 19; position: absolute; top: 0; right: 0; cursor: context-menu" onclick="return false" title="Click to edit"></div><div style="width: 20%; height: 40%; z-index: 19; position: absolute; top: 0; right: 40%; cursor: context-menu" onclick="return false" title="Click to edit"></div><div style="width: 20%; height: calc( 40% - 3em ); z-index: 19; position: absolute; top: 60%; right: 40%; cursor: context-menu" onclick="return false"></div>').insertAfter(t.find(".fp-ratio"))}),flowplayer(function(o,a){a=jQuery(a);var r,n,i,l,s;window.MediaSource||window.WebKitMediaSource;function f(){var e=a.find("video");return e.length&&e[0].audioTracks?e[0].audioTracks:[]}function p(o){o.name||(o.name=o.label),a.find(".fv-fp-hls-menu a").each(function(e,t){jQuery(t).toggleClass("fp-selected",jQuery(t).attr("data-audio")===o.name)})}function c(){if(n&&!(n.length<2))if(l=jQuery('<strong class="fv-fp-hls">'+fv_flowplayer_translations.audio_button+"</strong>"),(s=jQuery('<div class="fp-menu fv-fp-hls-menu"></div>').insertAfter(a.find(".fp-controls"))).append("<strong>"+fv_flowplayer_translations.audio_menu+"</strong>"),n.forEach(function(e){s.append('<a data-audio="'+e.name+'" data-lang="'+e.lang+'">'+e.name+"</a>")}),l.insertAfter(a.find(".fp-controls .fp-volume")).on("click",function(e){e.preventDefault(),e.stopPropagation(),s.hasClass("fp-active")?o.hideMenu(s[0]):(a.click(),o.showMenu(s[0]))}),jQuery("a",s).on("click",function(e){var t=e.target.getAttribute("data-audio");if(r){var o=r.audioTracks[r.audioTrack].groupId,e=r.audioTracks.filter(function(e){return e.groupId===o&&(e.name===t||e.lang===t)})[0];r.audioTrack=e.id,p(e)}else{var a,n=f();for(a in n)n.hasOwnProperty(a)&&n[a].label==t&&(n[a].enabled=!0,p(n[a]))}}),r)p(r.audioTracks[r.audioTrack]);else{var e,t=f();for(e in t)t.hasOwnProperty(e)&&t[e].enabled&&p(t[e])}}flowplayer.engine("hlsjs-lite").plugin(function(e){r=e.hls}),o.bind("ready",function(e,t){var o;jQuery(s).remove(),jQuery(l).remove(),r&&"application/x-mpegurl"==t.video.type&&(i=[],n=[],(o=r).levels.forEach(function(e){e=e.attrs.AUDIO;e&&i.indexOf(e)<0&&i.push(e),i.length&&(n=o.audioTracks.filter(function(e){return e.groupId===i[0]}))}),c())}),o.one("progress",function(){if("html5"==o.engine.engineName&&"application/x-mpegurl"==o.video.type){i=[],n=[];var e,t=f();for(e in t)t.hasOwnProperty(e)&&n.push({id:t[e].id,name:t[e].label});c()}})}),flowplayer(function(e,n){var r=-1,i=!1;e.on("error",function(e,t,o){var a;4==o.code&&"hlsjs"==t.engine.engineName&&(console.log("FV Player: HLSJS failed to play the video, switching to Flash HLS"),t.error=t.loading=!1,jQuery(n).removeClass("is-error"),jQuery(flowplayer.engines).each(function(e,t){"hlsjs"==flowplayer.engines[e].engineName&&(r=e,i=flowplayer.engines[e],delete flowplayer.engines[e])}),(a=(0<(o=void 0!==t.video.index?t.video.index:0)?t.conf.playlist[o]:t.conf.clip).sources).index=o,t.load({sources:a}),t.bind("unload error",function(){flowplayer.engines[r]=i}))})}),flowplayer(function(e,l){var s,t=e.conf.live_stream_reload||30,f=t,p=fv_flowplayer_translations.live_stream_retry;function c(e){e=Number(e);var t=Math.floor(e/86400),o=Math.floor(e%86400/3600),a=Math.floor(e%3600/60),e=Math.floor(e%60),n=fv_flowplayer_translations,t=0<t?(1==t?n.duration_1_day:n.duration_n_days).replace(/%s/,t):"";return t&&0<o&&(t+=", "),(t+=0<o?(1==o?n.duration_1_hour:n.duration_n_hours).replace(/%s/,o):"")&&0<a&&(t+=", "),(t+=0<a?(1==a?n.duration_1_minute:n.duration_n_minutes).replace(/%s/,a):"")&&0<e&&(t+=n.and),t+=0<e?(1==e?n.duration_1_second:n.duration_n_seconds).replace(/%s/,e):""}e.clearLiveStreamCountdown=function(){s&&(clearInterval(s),e.error=e.loading=!1,jQuery(l).removeClass("is-error"),jQuery(l).find(".fp-message.fp-shown").remove(),e.unload())},e.conf.flashls={manifestloadmaxretry:2},e.on("ready",function(){f=t,p=fv_flowplayer_translations.live_stream_retry}).on("progress",function(){f=10,p=fv_flowplayer_translations.live_stream_continue,clearInterval(s)}),e.on("error",function(e,r,i){setTimeout(function(){var e,t,o,a,n;(r.conf.clip.live||r.conf.live||i.video&&i.video.src&&i.video.src.match(/\/\/vimeo.com\/event\//))&&(e=f,r.conf.clip.streaming_time?e=r.conf.clip.streaming_time-Math.floor(Date.now()/1e3):r.conf.clip.live_starts_in&&(e=r.conf.clip.live_starts_in),t=fv_flowplayer_translations.live_stream_starting.replace(/%d/,c(e)),p=p.replace(/%d/,c(e)),o=r.conf.clip.live_starts_in?t:p,clearInterval(s),1!==i.code&&2!==i.code&&4!==i.code||(l.className+=" is-offline",flowplayer.support.flashVideo&&r.one("flashdisabled",function(){l.querySelector(".fp-flash-disabled").style.display="none"}),(a=l.querySelector(".fp-ui .fp-message")).innerHTML=o,n=300<e?300:e,s=setInterval(function(){--n,--e,a.innerHTML=o,0<n&&a?a.querySelector("span").innerHTML=c(e):(clearInterval(s),r.error&&(r.error=r.loading=!1,(a=l.querySelector(".fp-ui .fp-message"))&&l.querySelector(".fp-ui").removeChild(a),l.className=l.className.replace(/\bis-(error|offline)\b/g,""),r.load()))},1e3)))},1)})}),flowplayer(function(e,t){var o;t=jQuery(t),flowplayer.engine("hlsjs-lite").plugin(function(e){o=e.hls}),e.on("ready",function(e,t){o&&t.conf.playlist.length&&"hlsjs-lite"!=t.engine.engineName&&o.destroy()})}),flowplayer(function(o,a){var n,r,i,l,s;function f(){r&&n&&"html5"==o.engine.engineName&&(1<++l?3<l&&(console.log("FV Player: iOS video element needs a push, triggering 'stalled'"),n.trigger("stalled")):(console.log("FV Player: iOS video element will trigger error after 'stalled' arrives"),n.one("stalled",function(){var e,t=o.video.time;o.video.type.match(/video\//)?(console.log("FV Player: Running check of video file..."),(e=document.createElement("video")).src=o.video.src,e.onloadedmetadata=function(){l=0,console.log("FV Player: Video link works")},e.onerror=function(){console.log("FV Player: Video link issue!"),0<l&&o.trigger("error",[o,{code:4,video:o.video}])}):setTimeout(function(){console.log(o.video.time,t),o.video.time!=t?(l=0,console.log("FV Player: iOS video element continues playing, no need for error")):o.paused?(l=0,console.log("FV Player: iOS video element paused, no need for error")):o.trigger("error",[o,{code:4,video:o.video}])},5e3)})))}(flowplayer.support.browser.safari||flowplayer.support.iOS)&&(a=jQuery(a),i=r=n=!1,l=0,o.on("ready",function(e,t,o){l=0,r=!1,"html5"==t.engine.engineName&&o.src.match(/\?/)&&((n=a.find("video")).data("fv-ios-recovery")||(n.on("waiting",f),n.data("fv-ios-recovery",!0)),t.live&&o.src.match(/m3u8|stream_loader/)&&(console.log("FV Player: iOS video element is a live stream..."),clearInterval(i),i=setTimeout(function(){jQuery.get(o.src,function(e){e.match(/#EXT/)||(console.log("FV Player: iOS video element live stream does not look like a HLS file, triggering error..."),t.trigger("error",[t,{code:1,video:t.video}]))})},5e3)),t.one("progress",function(){r=!0,clearInterval(i)}))}),o.bind("beforeseek",f),s=0,o.on("ready",function(e,t){t.one("progress",function(e,t){s=t.video.duration,console.log("recorded_duration",s)})}),o.on("pause",function(e,t){var o=a.find("video");o.length&&parseInt(t.video.time)===parseInt(o[0].duration)&&s>t.video.time&&(console.log("suddenly the video is much shorter, why?",s,o[0].duration),t.video.duration=s,t.trigger("error",[t,{code:4,video:t.video}]))}))}),(e=>{var t,o,a=!1;"function"==typeof define&&define.amd&&(define(e),a=!0),"object"==("undefined"==typeof exports?"undefined":_typeof(exports))&&(module.exports=e(),a=!0),a||(t=window.Cookies,(o=window.Cookies=e()).noConflict=function(){return window.Cookies=t,o})})(function(){function v(){for(var e=0,t={};e<arguments.length;e++){var o,a=arguments[e];for(o in a)t[o]=a[o]}return t}return function e(u){function y(e,t,o){var a,n;if("undefined"!=typeof document){if(1<arguments.length){"number"==typeof(o=v({path:"/"},y.defaults,o)).expires&&((n=new Date).setMilliseconds(n.getMilliseconds()+864e5*o.expires),o.expires=n),o.expires=o.expires?o.expires.toUTCString():"";try{a=JSON.stringify(t),/^[\{\[]/.test(a)&&(t=a)}catch(e){}t=u.write?u.write(t,e):encodeURIComponent(t+"").replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),e=(e=(e=encodeURIComponent(e+"")).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent)).replace(/[\(\)]/g,escape);var r,i="";for(r in o)o[r]&&(i+="; "+r,!0!==o[r])&&(i+="="+o[r]);return document.cookie=e+"="+t+i}e||(a={});for(var l=document.cookie?document.cookie.split("; "):[],s=/(%[0-9A-Z]{2})+/g,f=0;f<l.length;f++){var p=l[f].split("="),c=p.slice(1).join("=");this.json||'"'!==c.charAt(0)||(c=c.slice(1,-1));try{var d=p[0].replace(s,decodeURIComponent),c=u.read?u.read(c,d):u(c,d)||c.replace(s,decodeURIComponent);if(this.json)try{c=JSON.parse(c)}catch(e){}if(e===d){a=c;break}e||(a[d]=c)}catch(e){}}return a}}return(y.set=y).get=function(e){return y.call(y,e)},y.getJSON=function(){return y.apply({json:!0},[].slice.call(arguments))},y.defaults={},y.remove=function(e,t){y(e,"",v(t,{expires:-1}))},y.withConverter=e,y}(function(){})}),flowplayer(function(e,t){t=jQuery(t),window.learndash_video_data&&"local"==learndash_video_data.videos_found_provider&&t.closest("[data-video-progression=true]").length&&(LearnDash_disable_assets(!0),LearnDash_watchPlayers(),e.on("finish",function(e,t,o){"string"!=typeof t.video.click&&((t=jQuery(".ld-video").data("video-cookie-key"))&&jQuery.cookie(t,JSON.stringify({video_state:"complete"})),window.LearnDash_disable_assets(!1))}))}),jQuery(fv_player_lightbox_bind),jQuery(document).ajaxComplete(fv_player_lightbox_bind),jQuery(function(){"undefined"!=typeof freedomplayer&&freedomplayer(function(e,t){var o,a,n=(t=jQuery(t)).closest(".fv_player_lightbox_hidden");e.is_in_lightbox=function(){return n.length},e.lightbox_visible=function(){return t.closest(".fancybox-slide--current").length},e.is_in_lightbox()&&(n.on("click",function(e){e.target==e.currentTarget&&jQuery.fancybox.close()}),freedomplayer.support.fullscreen?e.fullscreen=function(){jQuery.fancybox.getInstance().FullScreen.toggle()}:(a=!(o=".fancybox-caption, .fancybox-toolbar, .fancybox-infobar, .fancybox-navigation"),e.on("fullscreen",function(){jQuery(o).hide(),a=jQuery(".fancybox-container").hasClass("fancybox-show-thumbs"),jQuery(".fancybox-container").removeClass("fancybox-show-thumbs")}).on("fullscreen-exit",function(){jQuery(o).show(),a&&jQuery(".fancybox-container").addClass("fancybox-show-thumbs")})))})}),flowplayer(function(e,t){e.bind("load",function(e,t,o){var a,n=jQuery(e.currentTarget);n.data("live")&&(a=setTimeout(function(){n.find(".fp-ui").append('<div class="fp-message">'+fv_flowplayer_translations.live_stream_failed+"</div>"),n.addClass("is-error")},1e4),jQuery(e.currentTarget).data("live_check",a))}).bind("ready",function(e,t,o){clearInterval(jQuery(e.currentTarget).data("live_check"))}).bind("error",function(e,t,o){e=jQuery(e.currentTarget);e.data("live")&&e.find(".fp-message").html(fv_flowplayer_translations.live_stream_failed_2)})}),"undefined"!=typeof flowplayer&&flowplayer(function(e,a){var n,r,i,l,s,t=(a=jQuery(a)).closest(".ld-video");t.length&&"boolean"==typeof t.data("video-progression")&&0==t.data("video-progression")||a.data("lms_teaching")&&(s=[],e.on("ready",function(e,t,o){n=void 0===t.video.saw,l=t.video.index||0,r=t.video.position||0,i=t.video.top_position||0,void 0===s[l]&&(i?s[l]=i:r?s[l]=r:t.video.fv_start?s[l]=t.video.fv_start:s[l]=0)}),e.on("progress",function(e,t,o){s[l]<o&&(s[l]=o)}),e.on("beforeseek",function(e,t,o){n&&(o<=r||o<=s[l]?console.log("FV Player lms: allow seek to",o):(t.trigger("fv-lms-teaching-be-gone"),e.preventDefault(),e.stopPropagation(),fv_player_notice(a,"<p>"+fv_flowplayer_translations.msg_no_skipping+"<br />"+fv_flowplayer_translations.msg_watch_video+"</p>","fv-lms-teaching-be-gone").addClass("fv-player-lms-teaching"),setTimeout(function(){t.trigger("fv-lms-teaching-be-gone")},2e3),t.seek(s[l])))}))}),(a=>{flowplayer(function(e,o){jQuery(o).hasClass("is-cva")||a(document).on("submit","#"+jQuery(o).attr("id")+" .mailchimp-form",function(e){e.preventDefault(),a(".mailchimp-response",o).remove(),a("input[type=submit]",o).attr("disabled","disabled").addClass("fv-form-loading");var t={action:"fv_wp_flowplayer_email_signup",nonce:fv_player.email_signup_nonce};a("[name]",this).each(function(){t[this.name]=a(this).val()}),a.post(fv_player.ajaxurl,t,function(e){e=JSON.parse(e),a('<div class="mailchimp-response"></div>').insertAfter(".mailchimp-form",o),e.text.match(/already subscribed/)&&(e.status="ERROR"),"OK"===e.status?(a(".mailchimp-form input[type=text],.mailchimp-form input[type=email]",o).val(""),a(".mailchimp-response",o).removeClass("is-fv-error").html(e.text),setTimeout(function(){a(".wpfp_custom_popup",o).fadeOut()},2e3)):a(".mailchimp-response",o).addClass("is-fv-error").html(e.text),a("input[type=submit]",o).removeAttr("disabled").removeClass("fv-form-loading")})})})})(jQuery),"undefined"!=typeof fv_flowplayer_mobile_switch_array)for(var fv_flowplayer_mobile_switch_i in fv_flowplayer_mobile_switch_array)fv_flowplayer_mobile_switch_array.hasOwnProperty(fv_flowplayer_mobile_switch_i)&&fv_flowplayer_mobile_switch(fv_flowplayer_mobile_switch_i);function fv_flowplayer_browser_chrome_fail(a,n,r,i){jQuery("#wpfp_"+a).bind("error",function(e,t,o){!/chrom(e|ium)/.test(navigator.userAgent.toLowerCase())||null==o||3!=o.code&&4!=o.code&&5!=o.code||(t.unload(),jQuery("#wpfp_"+a).attr("id","bad_wpfp_"+a),jQuery("#bad_wpfp_"+a).after('<div id="wpfp_'+a+'" '+n+' data-engine="flash"></div>'),jQuery("#wpfp_"+a).flowplayer({playlist:[[{mp4:r}]]}),i?jQuery("#wpfp_"+a).bind("ready",function(e,t){t.play()}):jQuery("#wpfp_"+a).flowplayer().play(0),jQuery("#bad_wpfp_"+a).remove())})}if(freedomplayer(function(a,e){var n=(e=jQuery(e)).data("freedomplayer-instance-id");flowplayer.audible_instance=-1,a.one("load",function(){setTimeout(function(){a.conf.splash=!1},0)}),a.on("ready",function(){var o=0==e.data("volume");o||(flowplayer.audible_instance=n),jQuery(".freedomplayer[data-freedomplayer-instance-id]").each(function(){var e=jQuery(this).data("flowplayer"),t=jQuery(this).data("freedomplayer-instance-id");-1!=flowplayer.audible_instance&&t!=flowplayer.audible_instance&&t!=n&&e&&(e.ready?a.conf.multiple_playback?o||e.mute(!0,!0):e.playing&&(e.pause(),e.sticky(!1)):(e.clearLiveStreamCountdown(),e.unload()))})}).on("mute",function(e,t,o){o||flowplayer.audible_instance==n||(flowplayer(flowplayer.audible_instance).mute(!0,!0),flowplayer.audible_instance=n)}).on("resume",function(){a.muted||(flowplayer.audible_instance=n),a.conf.multiple_playback||jQuery(".flowplayer[data-freedomplayer-instance-id]").each(function(){var e;n!=jQuery(this).data("freedomplayer-instance-id")&&(e=jQuery(this).data("flowplayer"))&&e.playing&&(e.pause(),e.sticky(!1))})})}),"undefined"!=typeof fv_flowplayer_browser_chrome_fail_array)for(var fv_flowplayer_browser_chrome_fail_i in fv_flowplayer_browser_chrome_fail_array)fv_flowplayer_browser_chrome_fail_array.hasOwnProperty(fv_flowplayer_browser_chrome_fail_i)&&fv_flowplayer_browser_chrome_fail(fv_flowplayer_browser_chrome_fail_i,fv_flowplayer_browser_chrome_fail_array[fv_flowplayer_browser_chrome_fail_i].attrs,fv_flowplayer_browser_chrome_fail_array[fv_flowplayer_browser_chrome_fail_i].mp4,fv_flowplayer_browser_chrome_fail_array[fv_flowplayer_browser_chrome_fail_i].auto_buffer);function fv_flowplayer_browser_ie(e){(flowplayer.support.browser&&flowplayer.support.browser.msie&&9<=parseInt(flowplayer.support.browser.version,10)||navigator.userAgent.match(/Trident.*rv[ :]*11\./))&&jQuery("#wpfp_"+e).attr("data-engine","flash")}if("undefined"!=typeof fv_flowplayer_browser_ie_array)for(var fv_flowplayer_browser_ie_i in fv_flowplayer_browser_ie_array)fv_flowplayer_browser_ie_array.hasOwnProperty(fv_flowplayer_browser_ie_i)&&fv_flowplayer_browser_ie(fv_flowplayer_browser_ie_i);function fv_flowplayer_browser_chrome_mp4(e){var t=window.navigator.appVersion.match(/Chrome\/(\d+)\./);null!=t&&(t=parseInt(t[1],10),/chrom(e|ium)/.test(navigator.userAgent.toLowerCase())&&t<28&&-1!=navigator.appVersion.indexOf("Win")||/chrom(e|ium)/.test(navigator.userAgent.toLowerCase())&&t<27&&-1!=navigator.appVersion.indexOf("Linux")&&-1==navigator.userAgent.toLowerCase().indexOf("android"))&&jQuery("#wpfp_"+e).attr("data-engine","flash")}function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}-1==navigator.platform.indexOf("iPhone")&&-1==navigator.platform.indexOf("iPod")&&-1==navigator.platform.indexOf("iPad")&&-1==navigator.userAgent.toLowerCase().indexOf("android")||flowplayer(function(e,t){e.bind("error",function(e,t,o){10==o.code&&jQuery(e.target).find(".fp-message").html(fv_flowplayer_translations.unsupported_format)})}),jQuery(document).ready(function(){-1==navigator.platform.indexOf("iPhone")&&-1==navigator.platform.indexOf("iPod")&&-1==navigator.platform.indexOf("iPad")||jQuery(window).trigger("load"),jQuery(".flowplayer").on("mouseleave",function(){jQuery(this).find(".fvp-share-bar").removeClass("visible"),jQuery(this).find(".embed-code").hide()})}),flowplayer(function(a,n){var r=(n=jQuery(n)).attr("id"),i=!1;function l(){var t,o,e=n.attr("data-overlay");if(void 0!==e&&e.length){try{e=JSON.parse(e)}catch(e){return}!i&&!n.hasClass("is-cva")&&n.width()>=parseInt(e.width)&&(e=(e=e.html).replace("%random%",Math.random()),i=jQuery('<div id="'+r+'_ad" class="wpfp_custom_ad">'+e+"</div>"),n.find(".fp-player").append(i),i.find(".fv_fp_close").on("click touchend",function(){i.fadeOut();var e=i.find("video");return e.length&&e[0].pause(),!1}),t=0,o=setInterval(function(){var e=i&&i.find(".adsbygoogle").height();(200<++t||0<e)&&clearInterval(o),e>n.height()&&i.addClass("tall-overlay")},50),setTimeout(function(){n.find(".wpfp_custom_ad video").length&&a.pause()},500))}}function o(e){var t=a.get_popup();t&&("finish"==e||t.pause&&a.ready&&a.paused||t.html.match(/fv-player-ppv-purchase-btn-wrapper/))&&0==n.find(".wpfp_custom_popup").length&&(n.addClass("is-popup-showing"),n.addClass("is-mouseover"),n.find(".fp-player").append('<div id="'+r+'_custom_popup" class="wpfp_custom_popup">'+t.html+"</div>"))}n.data("end_popup_preview")&&jQuery(document).ready(function(){a.trigger("finish",[a])}),a.get_popup=function(){var e=n.attr("data-popup");if(void 0!==e&&e.length){try{e=JSON.parse(e)}catch(e){return!1}return e}},a.bind("ready",function(){1==i.length&&(i.remove(),i=!1),n.data("overlay_show_after")||l()}).bind("progress",function(e,t,o){o>n.data("overlay_show_after")&&l()}).bind("finish",function(e,t){void 0!==t.video.index&&t.video.index+1!=t.conf.playlist.length||o(e.type)}).bind("pause",function(e){if(void 0!==a.video.click)return!1;setTimeout(function(){o(e.type)},5)}).bind("resume unload seek",function(){n.hasClass("is-popup-showing")&&(n.find(".wpfp_custom_popup").remove(),n.removeClass("is-popup-showing"))})}),jQuery(document).on("focus",".fv_player_popup input[type=text], .fv_player_popup input[type=email], .fv_player_popup textarea",function(){var e=jQuery(this).parents(".flowplayer").data("flowplayer");e&&e.disable(!0)}),jQuery(document).on("blur",".fv_player_popup input[type=text], .fv_player_popup input[type=email], .fv_player_popup textarea",function(){var e=jQuery(this).parents(".flowplayer").data("flowplayer");e&&e.disable(!1)}),"undefined"!=typeof flowplayer&&flowplayer(function(e,a){a=jQuery(a);var n,r=!1,t=(flowplayer.engine("hlsjs-lite").plugin(function(e){n=e.hls}),e.conf.playlist.length?e.conf.playlist:[e.conf.clip]);function i(e){l();var t="Video is being processed",o="Please return later to see the actual video in this player.";e.pending_encoding_error?(t="Video unavailable",o="There was an error in the video encoding."):e.pending_encoding_progress&&(o+="<br /><br />("+e.pending_encoding_progress+" done)"),r=jQuery('<div class="fv-player-encoder-video-processing-modal"><div><h2>'+t+"</h2><p>"+o+"</p></div></div"),a.append(r)}function l(){r&&r.remove()}t[0]&&t[0].pending_encoding&&i(t[0]),e.on("load",function(e,t,o){if(o.pending_encoding)return i(o),n&&n.destroy(),!1;l()})}),Date.now||(Date.now=function(){return(new Date).getTime()}),(()=>{if("undefined"!=typeof fv_player_editor_conf)fv_player_log('FV Player: Editor detected, disabling "Remember video position"');else{var j=null,b=2500,o=null,Q="video_positions",k="player_playlist_item",x="video_positions_tmp",C="video_top_positions_tmp",S="player_playlist_item_tmp",P="video_saw_tmp",I="video_ab_loop_tmp",O=[],F=[],T=[],L=[],A=[],E=function(e){var t=JSON.stringify(e),o=N(t);if(b<o)while(b<o)for(var a in e)if(e.hasOwnProperty(a)){delete e[a],t=JSON.stringify(e),o=N(t);break}return t},V=function(e){var t;return e.id||(t=(void 0!==e.sources_original&&void 0!==e.sources_original[0]?e.sources_original:e.sources)[0].src,void 0!==e.sources_original&&void 0!==e.sources_original[0]?t:a(t))},N=function(e){return encodeURIComponent(e).length},z=function(e){return o?localStorage.getItem(e):Cookies.get(e)},q=function(e,t){return o?localStorage.setItem(e,t):Cookies.set(e,t)},B=function(e){o?localStorage.removeItem(e):Cookies.remove(e)},D=function(e,t){t.video.sources&&(t=V(t.video),F[t]=0,T[t]=0,A[t]=1)},a=function(e){return e.replace(/(X-Amz-Algorithm=[^&]+&?)/gm,"").replace(/(X-Amz-Credential=[^&]+&?)/gm,"").replace(/(X-Amz-Date=[^&]+&?)/gm,"").replace(/(X-Amz-Expires=[^&]+&?)/gm,"").replace(/(X-Amz-SignedHeaders=[^&]+&?)/gm,"").replace(/(X-Amz-Signature=[^&]+&?)/gm,"")},R=function(e,t){var o,a,n,r="sendBeacon"in navigator,i=(!0!==e&&(e=!1),t&&void 0!==t||(t=function(){}),[]),l=[];for(o in F)F.hasOwnProperty(o)&&(a={name:o,position:F[o],top_position:T[o],saw:void 0!==A[o]&&A[o]},O.hasOwnProperty(o)&&(a.ab_start=O[o][0],a.ab_end=O[o][1]),i.push(a));for(n in L)L.hasOwnProperty(n)&&l.push({player:n,item:L[n]});if(l.length||B(S),i.length){if("1"==flowplayer.conf.is_logged_in){if(r){try{var s,f={},p={},c={},d={},u={};for(w in i)i.hasOwnProperty(w)&&(f[s=i[w].name]=i[w].position,p[s]=i[w].top_position,c[s]=i[w].saw,void 0!==i[w].ab_start)&&void 0!==i[w].ab_end&&(u[s]=[i[w].ab_start,i[w].ab_end]);for(w in l)l.hasOwnProperty(w)&&(d[l[w].player]=l[w].item);q(x,E(f)),q(C,E(p)),q(P,E(c)),q(S,E(d)),q(I,E(u))}catch(e){return}r=new FormData;return r.append("action","fv_wp_flowplayer_video_position_save"),r.append("nonce",fv_player.video_position_save_nonce),r.append("videoTimes",encodeURIComponent(JSON.stringify(i))),r.append("playlistItems",encodeURIComponent(JSON.stringify(l))),navigator.sendBeacon(fv_player.ajaxurl,r),!1}return jQuery.ajax({type:"POST",async:e,url:fv_player.ajaxurl,complete:t,data:{action:"fv_wp_flowplayer_video_position_save",nonce:fv_player.video_position_save_nonce,videoTimes:i,playlistItems:l}})}try{var y=z(Q),v=z(k),y=y&&void 0!==y?JSON.parse(y):{},v=v&&void 0!==v?JSON.parse(v):{};for(w in i)i.hasOwnProperty(w)&&(y[i[w].name]=i[w].position);for(w in l)l.hasOwnProperty(w)&&(v[l[w].player]=l[w].item);var _=JSON.stringify(y),h=JSON.stringify(v),g=N(_),m=N(h);if(b<g)while(b<g)for(var w in y)if(y.hasOwnProperty(w)){delete y[w],_=JSON.stringify(y),g=N(_);break}if(b<m)while(b<m)for(var w in y)if(v.hasOwnProperty(w)){delete v[w],h=JSON.stringify(v),m=N(_);break}q(Q,_),q(k,h)}catch(e){return}return!1}B(I),B(x),B(C),B(P)};if(flowplayer(function(a,e){if(void 0===a.conf.disable_localstorage||"1"==flowplayer.conf.is_logged_in){var r=jQuery(e),t=flowplayer.conf.video_position_save_enable&&0!=r.data("save-position")||r.data("save-position")||r.data("lms_teaching"),i=0,l=!!r.data("player-id")&&r.data("player-id"),n=!1,s=function(){return!(a.live||a.video&&"string"==typeof a.video.click)},o=function(e,t){s()&&!t.video.prevent_position_restore&&(t=(e=>{var t=V(e.video),o=e.video.position;if("1"!=flowplayer.conf.is_logged_in){var a=z(Q);if(a&&void 0!==a)try{(a=JSON.parse(a))[t]&&(o=a[t])}catch(e){return}}return e.get_custom_end&&e.get_custom_end()<o&&(o=!1),o=e.get_custom_start&&0<e.get_custom_start()&&o<e.get_custom_start()?!1:o})(t))&&p(t)},f=function(e,t){var o,a,n;s()&&t.video.sources&&(o=V(t.video),a=Math.round(t.video.time),F[o]=a,void 0!==t.fv_noUiSlider&&r.find(".fv-player-ab.is-active").length&&(O[o]=t.fv_noUiSlider.get()),void 0===T[o]?(n=0,n=t.conf.playlist?t.conf.playlist[t.video.index]&&t.conf.playlist[t.video.index].sources[0]&&t.conf.playlist[t.video.index].sources[0].top_position?t.conf.playlist[t.video.index].sources[0].top_position:0:t.conf.clip.sources[0]&&t.conf.clip.sources[0].top_position?t.conf.clip.sources[0].top_position:0,T[o]=n):T[o]<a&&(T[o]=a),0<t.conf.playlist.length&&l&&(L[l]=t.video.index),60<=i++)&&flowplayer.conf.closingPage&&(j&&j.abort(),j=R(!0,function(){j=null}),i=0)},p=function(e){var t,o;a.custom_seek?a.custom_seek(e):(t=0,o=setInterval(function(){20<++t&&clearInterval(o),a.loading||(a.seek(parseInt(e)),clearInterval(o))},10))},c=function(e,t){var o=z(e),a=!1;if(o&&void 0!==o)try{if(void 0!==(o=JSON.parse(o))[t]){a=o[t],delete o[t];var n,r=!1;for(n in o)if(o.hasOwnProperty(n)){r=!0;break}r?q(e,JSON.stringify(o)):B(e)}return a}catch(e){}},d=function(e,t){if(void 0!==t&&0!=t.conf.playlist.length&&!t.conf.prevent_position_restore){var o=-1;if(l)if("1"!=flowplayer.conf.is_logged_in){var a=z(k);if(a&&void 0!==a)try{(a=JSON.parse(a))[l]&&(o=a[l])}catch(e){return}}else"1"==flowplayer.conf.is_logged_in&&(o=0<t.conf.playlist.length&&c(S,l));0<=o&&!n&&(t.video&&"video/youtube"!=t.video.type&&t.play(o),n=!0,r.data("position_changed",1))}};if(t){if(z(S)&&r.removeData("playlist_start"),a.bind("finish",D),a.on("ready",function(){a.conf.poster?a.one("resume",function(){a.one("progress",o)}):a.one("progress",o)}),a.bind("progress",f),a.bind("unload",function(){n=!1,a.one(a.conf.poster?"resume":"ready",d)}),a.one(a.conf.poster?"resume":"ready",d),jQuery(".fp-ui",e).on("click",function(){d()}),a.playlist_thumbnail_progress=function(e,t,o){a.get_custom_start&&0<a.get_custom_start(t)&&(o-=a.get_custom_start(t))<0&&(o=0);t=t.duration;(t=(t=a.get_custom_duration&&0<a.get_custom_duration()?a.get_custom_duration():t)||e.data("duration"))&&e.css("width",100*o/t+"%")},"1"==flowplayer.conf.is_logged_in){var u,y,v,_,h,g,m=0<a.conf.playlist.length,w=m?a.conf.playlist:[a.conf.clip],b=jQuery("[rel="+jQuery(e).attr("id")+"]");for(u in w)w.hasOwnProperty(u)&&(h=V(w[u]),y=c(x,h),v=c(C,h),_=c(P,h),h=c(I,h),y&&(m?(a.conf.playlist[u].sources[0].position=y,(g=jQuery("a",b).eq(u).find(".fvp-progress")).length&&a.playlist_thumbnail_progress(g,a.conf.playlist[u],y)):a.conf.clip.sources[0].position=y),v&&(!w[u].sources[0].top_position||w[u].sources[0].top_position<v)&&(m?a.conf.playlist[u].sources[0].top_position=v:a.conf.clip.sources[0].top_position=v),_&&(m?a.conf.playlist[u].sources[0].saw=!0:a.conf.clip.sources[0].saw=!0),h)&&(m?(a.conf.playlist[u].sources[0].ab_start=h[0],a.conf.playlist[u].sources[0].ab_end=h[1]):(a.conf.clip.sources[0].ab_start=h[0],a.conf.clip.sources[0].ab_end=h[1]))}a.bind("finish",function(e,t){t.conf.playlist.length?t.conf.playlist[t.video.index].sources[0].saw=!0:t.conf.clip.sources[0].saw=!0})}}}),jQuery(window).on("beforeunload pagehide",function(){flowplayer.conf.closingPage||(flowplayer.conf.closingPage=!0,R())}),null===(o=void 0!==fv_flowplayer_conf.disable_localstorage?!1:o)){o=!0;try{localStorage.setItem("t","t"),"t"!==localStorage.getItem("t")&&(o=!1),localStorage.removeItem("t")}catch(e){o=!1}}}})(jQuery),flowplayer(function(o,t){var a,r,i,l,n,s,f;function e(e){e.preventDefault(),e.stopPropagation(),l.hasClass("fp-active")?o.hideMenu(l[0]):(t.trigger("click"),o.showMenu(l[0]))}function p(e){e=e.clone();return e.find("i.dur").remove(),e.text()}t=jQuery(t),(o.have_visible_playlist||0!=o.conf.playlist.length)&&o.have_visible_playlist()&&(a=jQuery(".fp-playlist-external[rel="+t.attr("id")+"]"),r=jQuery('<strong class="fv-fp-list">Item 1.</strong>'),i=jQuery('<strong class="fv-fp-list-name">Item 1.</strong>'),l=jQuery('<div class="fp-menu fv-fp-list-menu"></div>').insertAfter(t.find(".fp-controls")),n=0,s=[],f=[],jQuery(o.conf.playlist).each(function(e,t){void 0===t.click&&(t=p(a.find("h4").eq(n)),l.append('<a data-index="'+e+'">'+(n+1)+". "+t+"</a>"),f[e]=t,s.push(e),n++)}),r.insertAfter(t.find(".fp-controls .fp-volume")).on("click",e),i.insertAfter(r).on("click",e),jQuery("a",l).on("click",function(){var e=jQuery(this).data("index"),t=e-1;void 0!==o.conf.playlist[t]&&void 0!==o.conf.playlist[t].click?o.play(t):o.play(e)}),o.on("ready",function(e,t,o){l.find("a").removeClass("fp-selected");var a=l.find("a[data-index="+o.index+"]"),n=(a.addClass("fp-selected"),fv_flowplayer_translations.playlist_item_no);n=(n=n.replace(/%d/,s.indexOf(o.index)+1)).replace(/%s/,p(a.find("h4"))),r.html(n),i.html(s.indexOf(o.index)+1+". "+f[o.index])}))}),flowplayer(function(e,a){a=jQuery(a);var n,r=e.conf.playlist,i=[];e.bind("load",function(e,t,o){n=o.index}),e.bind("error",function(e,t,o){setTimeout(function(){if(0<r.length&&1==t.error)return-1<i.indexOf(n)?(console.log("FV Player: Playlist item failure, already tried to play this item, not auto-advancing"),!1):(n=t.video.index,i.push(n),"1"==t.conf.video_checker&&r[n].video_checker&&0<r[n].video_checker.length?(console.log("FV Player: Video checker message present, stopping auto-advance to next playlist item"),!1):(t.error=t.loading=!1,a.removeClass("is-error"),a.find(".fp-message.fp-shown").remove(),++n>r.length-1&&(n=0),console.log("FV Player: Playlist item failure, auto-advancing to "+(n+1)+". item"),void t.play(n)))},1e3)})}),flowplayer(function(t,a){a=jQuery(a);var n,r,o,i,l,s=!1,f=!1,p=!1;function c(o){return o=[],jQuery(t.conf.playlist).each(function(e,t){o.push(e)}),o=(e=>{for(var t,o,a=e.length;a;a--)t=Math.floor(Math.random()*a),o=e[a-1],e[a-1]=e[t],e[t]=o;return e})(o),console.log("FV Player Randomizer random seed:",o),o}(a.data("button-no_picture")||a.data("button-repeat")||a.data("button-rewind")||t.conf.skin_preview)&&(l=!t.have_visible_playlist&&0<t.conf.playlist.length||t.have_visible_playlist(),t.bind("ready",function(e,t){var o;void 0===r&&void 0===n&&(r=t.next,n=t.prev),t.video&&t.video.type&&!t.video.type.match(/^audio/)&&a.data("button-no_picture")&&!f&&(f=!0,t.createNoPictureButton()),a.data("button-repeat")&&(l&&!p?(p=!0,t.createRepeatButton(),t.conf.playlist_shuffle=t.conf.track_repeat=!1,s=c(),t.conf.loop&&jQuery("a[data-action=repeat_playlist]",i).trigger("click")):0!=a.find(".fv-fp-track-repeat").length||l||((o=jQuery('<strong class="fv-fp-track-repeat"><svg viewBox="0 0 80.333 71" width="18px" height="18px" class="fvp-icon fvp-replay-track"><use xlink:href="#fvp-replay-track"></use></svg></strong>')).insertAfter(a.find(".fp-controls .fp-volume")).on("click",function(e){e.preventDefault(),e.stopPropagation(),t.video.loop?t.video.loop=!1:t.video.loop=!0,jQuery(this).toggleClass("is-active fp-color-fill",t.video.loop)}),t.conf.loop&&o.addClass("is-active fp-color-fill"),t.on("finish",function(e,t){t.video.loop&&(console.log("playlist-repeat.module",t.video.loop),t.resume())}))),a.data("button-rewind")&&!freedomplayer.support.touch&&t.createRewindForwardButtons()}).bind("progress",function(){a.data("button-repeat")&&(t.video.loop=t.conf.track_repeat)}).bind("finish.pl",function(e,t){a.data("button-repeat")&&l&&(console.log("playlist_repeat",t.conf.loop,"advance",t.conf.advance,"video.loop",t.video.loop),t.conf.playlist_shuffle)&&(t.play(s.pop()),0==s.length)&&(s=c())}).bind("unload",function(){a.find(".fv-fp-no-picture").remove(),a.find(".fv-fp-playlist").remove(),a.find(".fv-fp-track-repeat").remove()}),t.createNoPictureButton=function(){0<a.find(".fv-fp-no-picture").length||jQuery('<span class="fv-fp-no-picture"><svg viewBox="0 0 90 80" width="18px" height="18px" class="fvp-icon fvp-nopicture"><use xlink:href="#fvp-nopicture"></use></svg></span>').insertAfter(a.find(".fp-controls .fp-volume")).on("click",function(e){e.preventDefault(),e.stopPropagation(),jQuery(".fp-engine",a).slideToggle(20),jQuery(this).toggleClass("is-active fp-color-fill"),a.toggleClass("is-no-picture")})},t.createRepeatButton=function(){var e;0<a.find(".fv-fp-playlist").length||(e=fv_flowplayer_translations,(o=jQuery('<strong class="fv-fp-playlist mode-normal">      <svg viewBox="0 0 80.333 80" width="18px" height="18px" class="fvp-icon fvp-replay-list"><title>'+e.playlist_replay_all+'</title><use xlink:href="#fvp-replay-list"></use></svg>      <svg viewBox="0 0 80.333 71" width="18px" height="18px" class="fvp-icon fvp-shuffle"><title>'+e.playlist_shuffle+'</title><use xlink:href="#fvp-shuffle"></use></svg>      <svg viewBox="0 0 80.333 71" width="18px" height="18px" class="fvp-icon fvp-replay-track"><title>'+e.playlist_replay_video+'</title><use xlink:href="#fvp-replay-track"></use></svg>      <span id="fvp-playlist-play" title="'+e.playlist_play_all+'">'+e.playlist_play_all_button+"</span>      </strong>")).insertAfter(a.find(".fp-controls .fp-volume")).on("click",function(e){e.preventDefault(),e.stopPropagation(),"auto"!==i.css("right")&&i.css({right:"auto",left:o.position().left+"px"}),i.hasClass("fp-active")?t.hideMenu(i[0]):(a.trigger("click"),t.showMenu(i[0]))}),i=jQuery('<div class="fp-menu fv-fp-playlist-menu">        <a data-action="repeat_playlist"><svg viewBox="0 0 80.333 80" width="18px" height="18px" class="fvp-icon fvp-replay-list"><title>'+e.playlist_replay_all+'</title><use xlink:href="#fvp-replay-list"></use></svg> <span class="screen-reader-text">'+e.playlist_replay_all+'</span></a>        <a data-action="shuffle_playlist"><svg viewBox="0 0 80.333 71" width="18px" height="18px" class="fvp-icon fvp-shuffle"><title>'+e.playlist_shuffle+'</title><use xlink:href="#fvp-shuffle"></use></svg> <span class="screen-reader-text">'+e.playlist_shuffle+'</span></a>        <a data-action="repeat_track"><svg viewBox="0 0 80.333 71" width="18px" height="18px" class="fvp-icon fvp-replay-track"><title>'+e.playlist_replay_video+'</title><use xlink:href="#fvp-replay-track"></use></svg> <span class="screen-reader-text">'+e.playlist_replay_video+'</span></a>        <a class="fp-selected" data-action="normal"><span id="fvp-playlist-play" title="'+e.playlist_play_all+'">'+e.playlist_play_all_button+"</span></a>        </div>").insertAfter(a.find(".fp-controls")),jQuery("a",i).on("click",function(){jQuery(this).siblings("a").removeClass("fp-selected"),jQuery(this).addClass("fp-selected"),o.removeClass("mode-normal mode-repeat-track mode-repeat-playlist mode-shuffle-playlist");var e=jQuery(this).data("action");"repeat_playlist"==e?(o.addClass("mode-repeat-playlist"),t.conf.loop=!0,t.conf.advance=!0,t.video.loop=t.conf.track_repeat=!1,t.conf.playlist_shuffle=!1):"shuffle_playlist"==e?(s=s||c(),o.addClass("mode-shuffle-playlist"),t.conf.loop=!0,t.conf.advance=!0,t.conf.playlist_shuffle=!0):"repeat_track"==e?(o.addClass("mode-repeat-track"),t.conf.track_repeat=t.video.loop=!0,t.conf.loop=t.conf.playlist_shuffle=!1):"normal"==e&&(o.addClass("mode-normal"),t.conf.track_repeat=t.video.loop=!1,t.conf.loop=t.conf.playlist_shuffle=!1),t.conf.playlist_shuffle?(t.next=function(){t.play(s.pop()),0==s.length&&(s=c())},t.prev=function(){t.play(s.shift()),0==s.length&&(s=c())}):(t.next=r,t.prev=n)}))},t.createRewindForwardButtons=function(){var e;0==a.find(".fv-fp-rewind").length&&((e=jQuery('<span class="fv-fp-rewind"><svg viewBox="0 0 24 24" width="21px" height="21px" class="fvp-icon fvp-rewind"><use xlink:href="#fvp-rewind"></use></svg></span>')).insertBefore(a.find(".fp-controls .fp-playbtn")).on("click",function(e){e.preventDefault(),e.stopPropagation(),t.seek(t.video.time-10)}),e.toggle(!t.video.live||t.video.dvr)),0==a.find(".fv-fp-forward").length&&((e=jQuery('<span class="fv-fp-forward"><svg viewBox="0 0 24 24" width="21px" height="21px" class="fvp-icon fvp-forward"><use xlink:href="#fvp-forward"></use></svg></span>')).insertAfter(a.find(".fp-controls .fp-playbtn")).on("click",function(e){e.preventDefault(),e.stopPropagation(),t.seek(t.video.time+10)}),e.toggle(!t.video.live||t.video.dvr))},t.conf.skin_preview)&&(a.data("button-no_picture")&&setTimeout(function(){t.createNoPictureButton()},0),a.data("button-repeat")&&setTimeout(function(){t.createRepeatButton()},0),a.data("button-rewind"))&&setTimeout(function(){t.createRewindForwardButtons()},0)}),freedomplayer(function(e,t){var o,a,n,r,i=freedomplayer.bean,l=freedomplayer.common,t=t.getAttribute("id"),t=l.find('[rel="'+t+'"]'),s=!1,f=!1;function p(){s=!1,r.classList.remove("active"),setTimeout(function(){r.classList.remove("is-dragging")}),d()}function c(o){var e=Math.floor(r.clientWidth/r.children[0].clientWidth),t=r.children[0].clientWidth+20;n=o?r.scrollLeft+e*t:r.scrollLeft-e*t,o&&n>r.scrollWidth-r.clientWidth?n=r.scrollWidth-r.clientWidth:!o&&n<0&&(n=0),window.requestAnimationFrame(function e(){var t=o?30:-30;Math.abs(n-r.scrollLeft)<20&&(t=n-r.scrollLeft);r.scrollTo({top:0,left:r.scrollLeft+t});n==r.scrollLeft?d():window.requestAnimationFrame(e)})}function d(){r.classList.remove("leftmost","rightmost"),0===r.scrollLeft?r.classList.add("leftmost"):r.scrollLeft===r.scrollWidth-r.clientWidth&&r.classList.add("rightmost")}t[0]&&(r=l.find(".fv-playlist-draggable",t),l=l.find(".fv-playlist-left-arrow, .fv-playlist-right-arrow",t),r[0])&&l[0]&&l[1]&&(r=r[0],d(),i.on(r,"scroll",d),i.on(r,"mousedown",function(e){e.preventDefault(),s=!0,r.classList.add("active"),a=r.scrollLeft,o=e.pageX-r.offsetLeft}),i.on(r,"mouseup",p),r.onmouseleave=function(){f=!1,p()},i.on(r,"mousemove",function(e){f=!0,s&&(e.preventDefault(),e=e.pageX-r.offsetLeft-o,5<Math.abs(e)&&r.classList.add("is-dragging"),r.scrollLeft=a-e)}),l[0].onclick=function(){c(!1)},l[1].onclick=function(){c(!0)},i.on(document,"keydown",function(e){f&&(39===(e=e.keyCode)&&c(!0),37===e)&&c(!1)}))}),flowplayer(function(e,t){var o=jQuery(t),a=o.data("playlist_start");function n(){1!==o.data("position_changed")&&e.conf.playlist.length&&(a--,void 0===e.conf.playlist[a].click&&(e.engine&&"hlsjs-lite"==e.engine.engineName&&(e.loading=!1),e.play(a)),o.data("position_changed",1))}void 0!==a&&(e.bind("unload",function(){a=o.data("playlist_start"),o.removeData("position_changed"),e.one(e.conf.poster?"resume":"ready",n)}),e.one(e.conf.poster?"resume":"ready",n),jQuery(".fp-ui",t).on("click",function(){n(),o.data("position_changed",1)}))}),document.addEventListener("custombox:overlay:close",function(e){console.log("FV Player: Custombox/Popup anything ligtbox closed");var t=jQuery(this).find(".flowplayer");0!=t.length&&(console.log("FV Player: Custombox/Popup anything ligtbox contains a player"),t.each(function(e,t){var o=jQuery(t).data("flowplayer");void 0!==o&&(o.playing?(console.log("FV Player: Custombox/Popup anything ligtbox video pause"),o.pause()):o.loading&&o.one("ready",function(){console.log("FV Player: Custombox/Popup anything ligtbox video unload"),o.unload()}))}))}),"undefined"!=typeof flowplayer&&(freedomplayer.preload_count=0,freedomplayer.preload_limit=3,freedomplayer(function(e,t){t=jQuery(t);var o,a=!1,n=jQuery(t).data("playlist_start"),n=n?n-1:0;for(o in e.conf.clip&&(a=e.conf.clip.sources),a=e.conf.playlist[n]&&e.conf.playlist[n].sources?e.conf.playlist[n].sources:a){if("video/youtube"==a[o].type||a[o].src.match(/\/\/vimeo.com/))return r(),void e.debug("Preload not allowed beause of the video type");"application/x-mpegurl"==a[o].type&&(freedomplayer.preload_limit=1)}function r(){e.conf.splash=!0,e.preload=!1,t.removeClass("is-poster").addClass("is-splash")}e.conf.splash||freedomplayer.preload_count++,freedomplayer.preload_count>freedomplayer.preload_limit&&r()})),flowplayer(function(t,e){t.bind("finish",function(){var e=t.video.time;t.video.loop&&t.one("pause",function(){e<=t.video.time&&t.resume()})})}),"undefined"!=typeof flowplayer&&(fv_autoplay_type=fv_flowplayer_conf.autoplay_preload,fv_player_scroll_autoplay=!1,fv_player_scroll_autoplay_last_winner=-1,document.body.classList.contains("wp-admin")||document.body.classList.contains("elementor-editor-active")||(freedomplayer(function(e,o){fv_player_scroll_autoplay=!0,e.on("pause",function(e,t){t.manual_pause&&(console.log("Scroll autoplay: Manual pause for "+jQuery(o).attr("id")),t.non_viewport_pause=!0)})}),jQuery(window).on("scroll",function(){fv_player_scroll_autoplay=!0}),fv_player_scroll_int=setInterval(function(){var r,e,i,t,o;fv_player_scroll_autoplay&&(r=window.innerHeight||document.documentElement.clientHeight,e=jQuery(".flowplayer:not(.is-disabled)"),i=-1,e.each(function(e,t){var o,a,n=jQuery(this);void 0!==n.data("fvautoplay")&&-1==n.data("fvautoplay")||(o=n.data("flowplayer"),a=n.find(".fp-player"),n=void 0!==n.data("fvautoplay"),a.length&&!o.non_viewport_pause&&("viewport"==fv_autoplay_type||"sticky"==fv_autoplay_type||n)&&(n=a[0].getBoundingClientRect(),r-n.top>a.height()/4)&&n.bottom>a.height()/4&&(flowplayer.support.iOS&&"video/youtube"==o.conf.clip.sources[0].type||(i=e)))}),fv_player_scroll_autoplay_last_winner!=i&&(o=(t=e.eq(fv_player_scroll_autoplay_last_winner)).data("flowplayer"))&&o.playing&&(console.log("Scroll autoplay: Player not in viewport, pausing "+t.attr("id")),o.pause()),-1<i&&fv_player_scroll_autoplay_last_winner!=i&&((o=(t=e.eq(i)).data("flowplayer"))?o.ready?(console.log("Scroll autoplay: Resume "+t.attr("id")),o.resume()):o.loading||o.playing||o.error||(console.log("Scroll autoplay: Load "+t.attr("id")),o.load(),o.autoplayed=!0):(console.log("Scroll autoplay: Play "+t.attr("id")),fv_player_load(t),o.autoplayed=!0),fv_player_scroll_autoplay_last_winner=i),fv_player_scroll_autoplay=!1)},200))),flowplayer(function(o,a){(a=jQuery(a)).find(".fp-logo").removeAttr("href"),a.hasClass("no-controlbar")&&((e=o.sliders.timeline).disable(!0),o.bind("ready",function(){e.disable(!0)})),jQuery(".fvfp_admin_error",a).remove(),a.find(".fp-logo, .fp-header").on("click",function(e){e.target===this&&a.find(".fp-ui").trigger("click")}),jQuery(".fvp-share-bar .sharing-facebook",a).append('<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="#fff"><title>Facebook</title><path d="M11.9 5.2l-2.6 0 0-1.6c0-0.7 0.3-0.7 0.7-0.7 0.3 0 1.6 0 1.6 0l0-2.9 -2.3 0c-2.6 0-3.3 2-3.3 3.3l0 2 -1.6 0 0 2.9 1.6 0c0 3.6 0 7.8 0 7.8l3.3 0c0 0 0-4.2 0-7.8l2.3 0 0.3-2.9Z"/></svg>'),jQuery(".fvp-share-bar .sharing-twitter",a).append('<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="#fff"><title>Twitter</title><path d="M16 3.1c-0.6 0.3-1.2 0.4-1.9 0.5 0.7-0.4 1.2-1 1.4-1.8 -0.6 0.4-1.3 0.6-2.1 0.8 -0.6-0.6-1.4-1-2.4-1 -2 0.1-3.2 1.6-3.2 4 -2.7-0.1-5.1-1.4-6.7-3.4 -0.9 1.4 0.2 3.8 1 4.4 -0.5 0-1-0.1-1.5-0.4l0 0.1c0 1.6 1.1 2.9 2.6 3.2 -0.7 0.2-1.3 0.1-1.5 0.1 0.4 1.3 1.6 2.2 3 2.3 -1.6 1.7-4.6 1.4-4.8 1.3 1.4 0.9 3.2 1.4 5 1.4 6 0 9.3-5 9.3-9.3 0-0.1 0-0.3 0-0.4 0.6-0.4 1.2-1 1.6-1.7Z"/></svg>'),jQuery(".fvp-share-bar .sharing-email",a).append('<svg xmlns="http://www.w3.org/2000/svg" height="16" viewBox="0 0 16 16" width="16" fill="#fff"><title>Email</title><path d="M8 10c0 0 0 0-1 0L0 6v7c0 1 0 1 1 1h14c1 0 1 0 1-1V6L9 10C9 10 8 10 8 10zM15 2H1C0 2 0 2 0 3v1l8 4 8-4V3C16 2 16 2 15 2z"/></svg>'),jQuery(".fp-header",a).prepend(jQuery(".fvp-share-bar",a)),(!o.have_visible_playlist&&0<o.conf.playlist.length||o.have_visible_playlist())&&!freedomplayer.support.touch&&(t=jQuery('<a class="fp-icon fv-fp-prevbtn"></a>'),n=jQuery('<a class="fp-icon fv-fp-nextbtn"></a>'),a.find(".fp-controls .fp-playbtn").before(t).after(n),t.on("click",function(){o.trigger("prev",[o]),o.prev()}),n.on("click",function(){o.trigger("next",[o]),o.next()})),"undefined"!=typeof fv_player_editor_conf&&a.on("click",".fvp-sharing > li",function(e){return e.preventDefault(),fv_player_notice(a,fv_player_editor_translations.link_notice,2e3),!1}),o.bind("pause resume finish unload ready",function(e,t){a.addClass("no-brand")}),o.on("ready",function(e,t,o){setTimeout(function(){a.hasClass("is-youtube-standard")||a.hasClass("is-youtube-reduced")||jQuery(".fvp-share-bar",a).show(),jQuery(".fv-player-buttons-wrap",a).appendTo(jQuery(".fv-player-buttons-wrap",a).parent().find(".fp-ui"))},100)}),o.bind("finish",function(){var e,t=a.data("fv_redirect");!t||void 0!==o.video.is_last&&!o.video.is_last||(freedomplayer.conf.wpadmin||flowplayer.conf.is_logged_in_editor)&&(e=(e=fv_flowplayer_translations.redirection).replace(/%url%/,t),!confirm(e))||(location.href=t)}),flowplayer.support.iOS&&11==flowplayer.support.iOS.version&&o.bind("error",function(e,t,o){4==o.code&&a.find(".fp-engine").hide()}),jQuery(document).on("contextmenu",".flowplayer",function(e){e.preventDefault()}),o.one("ready",function(e,t,o){a.find(".fp-chromecast").insertAfter(a.find(".fp-header .fp-fullscreen"))});var e,t,n,r=a.attr("id"),i=!flowplayer.support.fullscreen&&!flowplayer.conf.native_fullscreen&&flowplayer.conf.mobile_alternative_fullscreen;o.bind("fullscreen",function(e,t){jQuery("#wpadminbar, .nc_wrapper").hide(),i&&"video/youtube"!=t.video.type&&(a.before('<span data-fv-placeholder="'+r+'"></span>'),a.appendTo("body"))}),o.bind("fullscreen-exit",function(e,t,o){jQuery("#wpadminbar, .nc_wrapper").show(),i&&jQuery("span[data-fv-placeholder="+r+"]").replaceWith(a)})}),(()=>{function e(p){p(function(o,a){var n,e,r,i,l;function s(e){return Math.round(100*e)/100}function f(t){n.find(".fp-speed",a)[0].innerHTML=t+"x",n.find(".fp-speed-menu a",a).forEach(function(e){n.toggleClass(e,"fp-selected",e.getAttribute("data-speed")==t),n.toggleClass(e,"fp-color",e.getAttribute("data-speed")==t)})}(jQuery(a).data("speedb")||o.conf.skin_preview)&&(e=p.support).video&&e.inlineVideo&&(n=p.common,e=p.bean,r=n.find(".fp-ui",a)[0],i=n.find(".fp-controls",r)[0],l=o.conf.speeds,e.on(a,"click",".fp-speed",function(){var e=n.find(".fp-speed-menu",a)[0];n.hasClass(e,"fp-active")?o.hideMenu():o.showMenu(e)}),e.on(a,"click",".fp-speed-menu a",function(e){e=e.target.getAttribute("data-speed");o.speed(e)}),o.on("speed",function(e,t,o){1<l.length&&f(o)}).on("ready",function(e,t){t.removeSpeedButton(),p.support.android&&"html5"==t.engine.engineName&&"application/x-mpegurl"==t.video.type||1<(l=t.conf.speeds).length&&t.createSpeedButton()}),o.removeSpeedButton=function(){n.find(".fp-speed-menu",a).forEach(n.removeNode),n.find(".fp-speed",a).forEach(n.removeNode)},o.createSpeedButton=function(){var t;jQuery(a).data("speedb")&&(o.removeSpeedButton(),i.appendChild(n.createElement("strong",{className:"fp-speed"},o.currentSpeed+"x")),t=n.createElement("div",{className:"fp-menu fp-speed-menu",css:{width:"auto"}},"<strong>Speed</strong>"),l.forEach(function(e){e=n.createElement("a",{"data-speed":s(e)},s(e)+"x");t.appendChild(e)}),r.appendChild(t),f(o.currentSpeed),jQuery(a).find(".fp-speed-menu strong").text(fv_flowplayer_translations.speed))},o.conf.skin_preview)&&o.createSpeedButton()})}"object"===("undefined"==typeof module?"undefined":_typeof(module))&&module.exports?module.exports=e:"function"==typeof window.flowplayer&&e(window.flowplayer)})(),flowplayer(function(e,t){void 0===fv_flowplayer_conf.disable_localstorage&&(e.on("speed",function(e,t,o){try{window.localStorage.fv_player_speed=o}catch(e){}}),e.on("ready",function(){window.localStorage.fv_player_speed&&jQuery(t).find("strong.fp-speed").is(":visible")&&e.speed(parseFloat(window.localStorage.fv_player_speed)),0==jQuery(t).data("volume")&&e.mute(!0,!0)}))}),(s=>{var f={},p=!1;function t(){for(var e in f)for(var t in f[e])for(var o in f[e][t])f[e][t][o]=Math.round(f[e][t][o]);var a=(window.freedomplayer?freedomplayer:flowplayer).conf,n=(a.debug&&fv_player_stats_watched(),new FormData);n.append("tag","seconds"),n.append("blog_id",a.fv_stats.blog_id),n.append("user_id",a.fv_stats.user_id),n.append("_wpnonce",a.fv_stats.nonce),n.append("watched",encodeURIComponent(JSON.stringify(f))),navigator.sendBeacon(a.fv_stats.url,n)}flowplayer(function(e,t){t=s(t);var a,n=-1,r=0;if(e.conf.fv_stats&&(e.conf.fv_stats.enabled||t.data("fv_stats")&&"no"!=t.data("fv_stats"))){try{var i=t.data("fv_stats_data");if(!i)return}catch(e){return!1}e.on("ready finish",function(e,t){t.on("progress",function(e,t,o){o<1||n==l()||(n=l(),s.post(t.conf.fv_stats.url,{blog_id:t.conf.fv_stats.blog_id,video_id:t.video.id||0,player_id:i.player_id,post_id:i.post_id,user_id:t.conf.fv_stats.user_id,tag:"play",_wpnonce:t.conf.fv_stats.nonce}))}),a=!(r=0)}).on("finish",function(){n=-1}).on("progress",function(e,t,o){0!=o&&(t.seeking?r=o:a?a=!1:r=(0==r||o<=r||(f[i.player_id]||(f[i.player_id]={}),f[i.player_id][i.post_id]||(f[i.player_id][i.post_id]={}),f[i.player_id][i.post_id][t.video.id]||(f[i.player_id][i.post_id][t.video.id]=0),f[i.player_id][i.post_id][t.video.id]+=o-r,p=!0),o))}),e.on("cva",function(e,t){s.post(t.conf.fv_stats.url,{blog_id:t.conf.fv_stats.blog_id,video_id:t.video.id||0,player_id:i.player_id,post_id:i.post_id,user_id:t.conf.fv_stats.user_id,tag:"click",_wpnonce:t.conf.fv_stats.nonce})})}function l(){return e.video.index||0}}),s(window).on("beforeunload pagehide",function(){var e="sendBeacon"in navigator;!flowplayer.conf.stats_sent&&e&&(flowplayer.conf.stats_sent=!0,p)&&t()}),setInterval(function(){p&&(t(),p=!(f={}))},3e5),window.fv_player_stats_watched=function(){s.each(f,function(e,t){console.log("player id: "+e),s.each(t,function(e,t){console.log("post id: "+e),s.each(t,function(e,t){console.log("video id: "+e+" seconds: "+t)})})})}})(jQuery),flowplayer(function(o,a){var n,r=jQuery(a),e=r.find(".fp-player"),t=r.data("fvsticky"),i=!1,l=r.find(".fp-ratio");if(o.is_sticky=!1,(i=flowplayer.conf.sticky_video&&"off"!=flowplayer.conf.sticky_video&&void 0===t?!0:i)||t){if(!flowplayer.support.firstframe)return;var s=flowplayer.conf.sticky_place;i=jQuery(window),n=r,o.on("unload",function(){p(),r.removeClass("is-unSticky")}),i.on("resize",function(){c()||"all"==flowplayer.conf.sticky_video||o.is_sticky&&p()}).on("scroll",function(){var e,t;if(c()||"all"==flowplayer.conf.sticky_video)if(e=n[0],(t=e.getBoundingClientRect()).top>=0-jQuery(e).outerHeight()/2&&0<=t.left&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)+jQuery(e).outerHeight()/2&&t.right<=(window.innerWidth||document.documentElement.clientWidth)||!(o.playing||o.loading||flowplayer.audible_instance==r.data("freedomplayer-instance-id")||"object"==_typeof(a.fv_player_vast)&&"object"==_typeof(a.fv_player_vast.adsManager_)&&"function"==typeof a.fv_player_vast.adsManager_.getRemainingTime&&0<a.fv_player_vast.adsManager_.getRemainingTime()))p();else{if(0<jQuery("div.flowplayer.is-unSticky").length)return!1;f()}else o.is_sticky&&p()})}function f(){e.hasClass("is-sticky-"+s)||(e.addClass("is-sticky"),e.addClass("is-sticky-"+s),0==r.find("a.fp-sticky").length&&r.find("div.fp-header").prepend('<a class="fp-sticky fp-icon"></a>'),e.prepend(l.clone()),d(!0),o.is_sticky=!0,o.trigger("sticky",[o]),e.parent(".flowplayer").addClass("is-stickable"))}function p(){e.removeClass("is-sticky"),e.removeClass("is-sticky-"+s),e.css("max-width",""),e.find(".fp-ratio").remove(),e.parent(".flowplayer").removeClass("is-stickable"),o.is_sticky&&(d(),o.is_sticky=!1,o.trigger("sticky-exit",[o]))}function c(){return o.autoplayed||jQuery(window).innerWidth()>=fv_flowplayer_conf.sticky_min_width}function d(e){var t=a;while(t){try{var o=getComputedStyle(t);o.transform&&(t.style.transform=e?"none":""),o.zIndex&&(t.style.zIndex=e?"auto":"")}catch(e){}t=t.parentNode}}o.sticky=function(e,t){void 0===e&&(e=!o.is_sticky),t&&r.toggleClass("is-unSticky",!e),(e?f:p)()}}),jQuery(function(o){o(document).on("click","a.fp-sticky",function(){var e=o("div.flowplayer.is-stickable"),t=e.data("flowplayer");e.addClass("is-unSticky"),e.find(".fp-player").removeClass(["is-sticky","is-sticky-right-bottom","is-sticky-left-bottom","is-sticky-right-top","is-sticky-left-top"]).css({width:"",height:"",maxHeight:""}),t.is_sticky&&(t.is_sticky=!1,t.trigger("sticky-exit",[t])),t.autoplayed&&t.pause()}),o(document).on("click","div.flowplayer.is-unSticky",function(){o("div.flowplayer").removeClass("is-unSticky")})}),flowplayer(function(e,n){n=jQuery(n);var r=window.localStorage;e.on("ready",function(e,o,t){var a;t.subtitles&&t.subtitles.length&&(r.fv_player_subtitle&&o.video.subtitles&&o.video.subtitles.length?"none"===r.fv_player_subtitle?o.disableSubtitles():o.video.subtitles.forEach(function(e,t){e.srclang===r.fv_player_subtitle&&o.loadSubtitles(t)}):(a=t.subtitles.filter(function(e){return e.fv_default})[0])&&o.loadSubtitles(t.subtitles.indexOf(a))),void 0===fv_flowplayer_conf.disable_localstorage&&n.find(".fp-subtitle-menu").on("click",function(e){var t=e.target.getAttribute("data-subtitle-index");if("string"==typeof t)try{r.fv_player_subtitle=-1<t?o.video.subtitles[t].srclang:"none"}catch(e){}})})}),flowplayer(function(e,o){o=jQuery(o),e.on("ready",function(e,t){o.find(".fp-subtitle-menu strong").text(fv_flowplayer_translations.closed_captions),o.find('.fp-subtitle-menu a[data-subtitle-index="-1"]').text(fv_flowplayer_translations.no_subtitles)})}),"undefined"!=typeof flowplayer&&"undefined"!=typeof fv_flowplayer_conf&&fv_flowplayer_conf.video_hash_links&&(flowplayer(function(o,a){var n,r,i,l,s,f,p="";0<jQuery(a).find(".sharing-link").length&&(n=function(e,t){l=fv_player_get_video_link_hash(o),s=","+fv_player_time_hms(o.video.time),e&&t?(i=","+fv_player_time_hms_ms(e+o.get_custom_start()),r=","+fv_player_time_hms_ms(t+o.get_custom_start())):(r=f&&void 0!==o.get_ab_end()&&o.get_ab_end()?","+fv_player_time_hms_ms(o.get_ab_end()):"",i=f&&void 0!==o.get_ab_start()&&o.get_ab_start()?","+fv_player_time_hms_ms(o.get_ab_start()):""),p=jQuery(".sharing-link",a).attr("href").replace(/#.*/,"")+"#"+l+s+i+r,jQuery(".sharing-link",a).attr("href",p)},o.on("ready",function(e,t,o){t.fv_noUiSlider&&t.fv_noUiSlider.on("set",function(e){n(e[0],e[1])})}),o.on("progress",function(e,t){t.video.sources&&t.video.sources[0]&&n()}),o.on("abloop",function(e,t,o){f=o,t.playing||n()}),jQuery(".sharing-link",a).on("click",function(e){e.preventDefault(),fv_player_clipboard(jQuery(this).attr("href"),function(){fv_player_notice(a,fv_flowplayer_translations.link_copied,2e3)},function(){fv_player_notice(a,fv_flowplayer_translations.error_copy_clipboard,2e3)})})),o.get_video_link=function(){return p}}),jQuery(document).on("click",'a[href*="fvp_"]',function(){var e=jQuery(this);setTimeout(function(){0==e.parents(".fvp-share-bar").length&&fv_video_link_autoplay()})})),flowplayer(function(e,a){a=jQuery(a);var n=!1;function r(){a.removeClass("has-fp-message-muted"),a.find(".fp-message-muted").remove()}e.one("ready",function(e,t){a.hasClass("is-audio")||(n=!0)}),e.on("progress",function(e,t,o){n&&1<o&&(n=!1,(o=jQuery("root").find("video")).length&&!(o=o[0]).mozHasAudio&&!Boolean(o.webkitAudioDecodedByteCount)&&!Boolean(o.audioTracks&&o.audioTracks.length)||!t.muted&&0!=t.volumeLevel||"true"==localStorage.muted||"0"==localStorage.volume||(o=jQuery('<div class="fp-message fp-message-muted"><span class="fp-icon fp-volumebtn-notice"></span> '+fv_flowplayer_translations.click_to_unmute+"</div>"),freedomplayer.bean.on(o[0],"click touchstart",function(){t.mute(!1),t.volume(1)}),a.find(".fp-ui").append(o),a.addClass("has-fp-message-muted"),setTimeout(r,1e4)))}),e.on("mute volume",function(){(!e.muted||0<e.volumeLevel)&&r()})}),"undefined"!=typeof flowplayer&&(fv_player_warning=function(e,t,o){var a=jQuery(e).prev(".fv-player-warning-wrapper");0==a.length&&(jQuery(e).before('<div class="fv-player-warning-wrapper">'),a=jQuery(e).prev(".fv-player-warning-wrapper")),0==a.find(".fv-player-warning-"+o).length&&(e=jQuery("<p style='display: none' "+(o?" class='fv-player-warning-"+o+"'":"")+">"+t+"</p>"),a.append(e),e.slideDown())},flowplayer(function(t,a){a=jQuery(a),navigator.userAgent.match(/iPhone.* OS [0-6]_/i)&&t.one("progress",function(e){void 0!==t.video.subtitles&&t.video.subtitles.length&&fv_player_warning(a,fv_flowplayer_translations.warning_iphone_subs)}),flowplayer.support.android&&flowplayer.support.android.version<5&&(flowplayer.support.android.samsung||flowplayer.support.browser.safari)&&fv_player_warning(a,fv_flowplayer_translations.warning_unstable_android,"firefox"),/Android 4/.test(navigator.userAgent)&&!/Firefox/.test(navigator.userAgent)&&(t.on("ready",function(e,t,o){setTimeout(function(){o.src&&o.src.match(/fpdl.vimeocdn.com/)&&(0==o.time||1==o.time)&&(fv_player_warning(a,fv_flowplayer_translations.warning_unstable_android,"firefox"),t.on("progress",function(e,t){a.prev().find(".fv-player-warning-firefox").remove()}))},1500)}),t.on("error",function(e,t,o){2==o.MEDIA_ERR_NETWORK&&o.video.src.match(/fpdl.vimeocdn.com/)&&fv_player_warning(a,fv_flowplayer_translations.warning_unstable_android,"firefox")})),/Safari/.test(navigator.userAgent)&&/Version\/5/.test(navigator.userAgent)&&t.on("error",function(e,t,o){o.video.src.match(/fpdl.vimeocdn.com/)&&fv_player_warning(a,fv_flowplayer_translations.warning_old_safari)});var e=flowplayer.support;e.android&&(e.android.samsung&&parseInt(e.browser.version)<66||e.browser.safari)&&t.on("error",function(e,t,o){fv_player_warning(a,fv_flowplayer_translations.warning_samsungbrowser,"warning_samsungbrowser")})})),flowplayer(function(o,a){a=jQuery(a);var n=!1;jQuery(o.conf.playlist).each(function(e,t){t.sources[0].type.match(/youtube/)&&(n=!0)}),n&&(a.addClass("is-youtube"),void 0!==fv_flowplayer_conf.youtube_browser_chrome)&&"none"==fv_flowplayer_conf.youtube_browser_chrome&&a.addClass("is-youtube-nl"),o.on("ready",function(e,t,o){a.find(".fp-youtube-wrap").remove(),a.find(".fp-youtube-logo").remove(),"video/youtube"==o.type?(a.addClass("is-youtube"),void 0!==fv_flowplayer_conf.youtube_browser_chrome&&("none"==fv_flowplayer_conf.youtube_browser_chrome&&a.addClass("is-youtube-nl"),"standard"==fv_flowplayer_conf.youtube_browser_chrome&&a.addClass("is-youtube-standard"),"reduced"==fv_flowplayer_conf.youtube_browser_chrome)&&(a.addClass("is-youtube-reduced"),a.addClass("is-youtube-nl"),a.find(".fp-ui").append('<div class="fp-youtube-wrap"><a class="fp-youtube-title" target="_blank" href="'+t.video.src+'">'+o.fv_title_clean+"</a></div>"),a.find(".fp-ui").append('<a class="fp-youtube-logo" target="_blank" href="'+t.video.src+'"><svg height="100%" version="1.1" viewBox="0 0 110 26" width="100%"><path class="ytp-svg-fill" d="M 16.68,.99 C 13.55,1.03 7.02,1.16 4.99,1.68 c -1.49,.4 -2.59,1.6 -2.99,3 -0.69,2.7 -0.68,8.31 -0.68,8.31 0,0 -0.01,5.61 .68,8.31 .39,1.5 1.59,2.6 2.99,3 2.69,.7 13.40,.68 13.40,.68 0,0 10.70,.01 13.40,-0.68 1.5,-0.4 2.59,-1.6 2.99,-3 .69,-2.7 .68,-8.31 .68,-8.31 0,0 .11,-5.61 -0.68,-8.31 -0.4,-1.5 -1.59,-2.6 -2.99,-3 C 29.11,.98 18.40,.99 18.40,.99 c 0,0 -0.67,-0.01 -1.71,0 z m 72.21,.90 0,21.28 2.78,0 .31,-1.37 .09,0 c .3,.5 .71,.88 1.21,1.18 .5,.3 1.08,.40 1.68,.40 1.1,0 1.99,-0.49 2.49,-1.59 .5,-1.1 .81,-2.70 .81,-4.90 l 0,-2.40 c 0,-1.6 -0.11,-2.90 -0.31,-3.90 -0.2,-0.89 -0.5,-1.59 -1,-2.09 -0.5,-0.4 -1.10,-0.59 -1.90,-0.59 -0.59,0 -1.18,.19 -1.68,.49 -0.49,.3 -1.01,.80 -1.21,1.40 l 0,-7.90 -3.28,0 z m -49.99,.78 3.90,13.90 .18,6.71 3.31,0 0,-6.71 3.87,-13.90 -3.37,0 -1.40,6.31 c -0.4,1.89 -0.71,3.19 -0.81,3.99 l -0.09,0 c -0.2,-1.1 -0.51,-2.4 -0.81,-3.99 l -1.37,-6.31 -3.40,0 z m 29.59,0 0,2.71 3.40,0 0,17.90 3.28,0 0,-17.90 3.40,0 c 0,0 .00,-2.71 -0.09,-2.71 l -9.99,0 z m -53.49,5.12 8.90,5.18 -8.90,5.09 0,-10.28 z m 89.40,.09 c -1.7,0 -2.89,.59 -3.59,1.59 -0.69,.99 -0.99,2.60 -0.99,4.90 l 0,2.59 c 0,2.2 .30,3.90 .99,4.90 .7,1.1 1.8,1.59 3.5,1.59 1.4,0 2.38,-0.3 3.18,-1 .7,-0.7 1.09,-1.69 1.09,-3.09 l 0,-0.5 -2.90,-0.21 c 0,1 -0.08,1.6 -0.28,2 -0.1,.4 -0.5,.62 -1,.62 -0.3,0 -0.61,-0.11 -0.81,-0.31 -0.2,-0.3 -0.30,-0.59 -0.40,-1.09 -0.1,-0.5 -0.09,-1.21 -0.09,-2.21 l 0,-0.78 5.71,-0.09 0,-2.62 c 0,-1.6 -0.10,-2.78 -0.40,-3.68 -0.2,-0.89 -0.71,-1.59 -1.31,-1.99 -0.7,-0.4 -1.48,-0.59 -2.68,-0.59 z m -50.49,.09 c -1.09,0 -2.01,.18 -2.71,.68 -0.7,.4 -1.2,1.12 -1.49,2.12 -0.3,1 -0.5,2.27 -0.5,3.87 l 0,2.21 c 0,1.5 .10,2.78 .40,3.78 .2,.9 .70,1.62 1.40,2.12 .69,.5 1.71,.68 2.81,.78 1.19,0 2.08,-0.28 2.78,-0.68 .69,-0.4 1.09,-1.09 1.49,-2.09 .39,-1 .49,-2.30 .49,-3.90 l 0,-2.21 c 0,-1.6 -0.2,-2.87 -0.49,-3.87 -0.3,-0.89 -0.8,-1.62 -1.49,-2.12 -0.7,-0.5 -1.58,-0.68 -2.68,-0.68 z m 12.18,.09 0,11.90 c -0.1,.3 -0.29,.48 -0.59,.68 -0.2,.2 -0.51,.31 -0.81,.31 -0.3,0 -0.58,-0.10 -0.68,-0.40 -0.1,-0.3 -0.18,-0.70 -0.18,-1.40 l 0,-10.99 -3.40,0 0,11.21 c 0,1.4 .18,2.39 .68,3.09 .49,.7 1.21,1 2.21,1 1.4,0 2.48,-0.69 3.18,-2.09 l .09,0 .31,1.78 2.59,0 0,-14.99 c 0,0 -3.40,.00 -3.40,-0.09 z m 17.31,0 0,11.90 c -0.1,.3 -0.29,.48 -0.59,.68 -0.2,.2 -0.51,.31 -0.81,.31 -0.3,0 -0.58,-0.10 -0.68,-0.40 -0.1,-0.3 -0.21,-0.70 -0.21,-1.40 l 0,-10.99 -3.40,0 0,11.21 c 0,1.4 .21,2.39 .71,3.09 .5,.7 1.18,1 2.18,1 1.39,0 2.51,-0.69 3.21,-2.09 l .09,0 .28,1.78 2.62,0 0,-14.99 c 0,0 -3.40,.00 -3.40,-0.09 z m 20.90,2.09 c .4,0 .58,.11 .78,.31 .2,.3 .30,.59 .40,1.09 .1,.5 .09,1.21 .09,2.21 l 0,1.09 -2.5,0 0,-1.09 c 0,-1 -0.00,-1.71 .09,-2.21 0,-0.4 .11,-0.8 .31,-1 .2,-0.3 .51,-0.40 .81,-0.40 z m -50.49,.12 c .5,0 .8,.18 1,.68 .19,.5 .28,1.30 .28,2.40 l 0,4.68 c 0,1.1 -0.08,1.90 -0.28,2.40 -0.2,.5 -0.5,.68 -1,.68 -0.5,0 -0.79,-0.18 -0.99,-0.68 -0.2,-0.5 -0.31,-1.30 -0.31,-2.40 l 0,-4.68 c 0,-1.1 .11,-1.90 .31,-2.40 .2,-0.5 .49,-0.68 .99,-0.68 z m 39.68,.09 c .3,0 .61,.10 .81,.40 .2,.3 .27,.67 .37,1.37 .1,.6 .12,1.51 .12,2.71 l .09,1.90 c 0,1.1 .00,1.99 -0.09,2.59 -0.1,.6 -0.19,1.08 -0.49,1.28 -0.2,.3 -0.50,.40 -0.90,.40 -0.3,0 -0.51,-0.08 -0.81,-0.18 -0.2,-0.1 -0.39,-0.29 -0.59,-0.59 l 0,-8.5 c .1,-0.4 .29,-0.7 .59,-1 .3,-0.3 .60,-0.40 .90,-0.40 z" id="ytp-id-14"></path></svg></a>'),void 0!==o.author_thumbnail)&&void 0!==o.author_url&&a.find(".fp-youtube-wrap").prepend('<a class="fp-youtube-channel-thumbnail" target="_blank" href="'+o.author_url+'" title="'+o.author_name+'"><img src="'+o.author_thumbnail+'" /></a>')):(a.removeClass("is-youtube"),a.removeClass("is-youtube-nl"),a.removeClass("is-youtube-standard"),a.removeClass("is-youtube-reduced"),a.find(".fp-youtube-wrap").remove(),a.find(".fp-youtube-logo").remove())}),a.on("click",".fp-youtube-title, .fp-youtube-logo",function(e){var t=o.video.time;0<t&&(t=flowplayer(0).video.sources[0].src+"&t="+parseInt(t)+"s",jQuery(this).attr("href",t))})});
     1function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}if("undefined"!=typeof fv_flowplayer_conf){var FVAbrController,parseIOSVersion=function(e){e=/iP(ad|hone)(; CPU)? OS (\d+_\d)/.exec(e);return e&&1<e.length?parseFloat(e[e.length-1].replace("_","."),10):0};try{"object"==_typeof(window.localStorage)&&void 0!==window.localStorage.volume&&delete fv_flowplayer_conf.volume}catch(e){}flowplayer.conf=fv_flowplayer_conf,flowplayer.conf.embed=!1,flowplayer.conf.share=!1,flowplayer.conf.analytics=!1,void 0!==fv_flowplayer_conf.disable_localstorage&&(flowplayer.conf.storage={});try{flowplayer.conf.key=atob(flowplayer.conf.key)}catch(e){}!flowplayer.support.android&&flowplayer.conf.dacast_hlsjs&&((FVAbrController=function(e){this.hls=e,this.nextAutoLevel=3}).prototype.nextAutoLevel=function(e){this.nextAutoLevel=e},FVAbrController.prototype.destroy=function(){},flowplayer.conf.hlsjs={startLevel:-1,abrController:FVAbrController}),flowplayer.support.iOS&&flowplayer.support.iOS.chrome&&0==flowplayer.support.iOS.version&&(flowplayer.support.iOS.version=parseIOSVersion(navigator.userAgent)),flowplayer.conf.hlsjs.use_for_safari&&(flowplayer.support.iOS&&13<=parseInt(flowplayer.support.iOS.version)||!flowplayer.support.iOS&&flowplayer.support.browser.safari&&8<=parseInt(flowplayer.support.browser.version))&&(flowplayer.conf.hlsjs.safari=!0),flowplayer.support.fvmobile=!(flowplayer.support.firstframe&&!flowplayer.support.iOS&&!flowplayer.support.android);var fls=flowplayer.support;flowplayer.conf.mobile_native_fullscreen&&"ontouchstart"in window&&fls.fvmobile&&(flowplayer.conf.native_fullscreen=!0),"ontouchstart"in window&&(fls.android&&fls.android.version<4.4&&!(fls.browser.chrome&&54<fls.browser.version)&&(flowplayer.conf.native_fullscreen=!0),fls.iOS)&&(fv_player_in_iframe()||fls.iOS.version<7)&&(flowplayer.conf.native_fullscreen=!0)}"undefined"!=typeof fv_flowplayer_translations&&(flowplayer.defaults.errors=fv_flowplayer_translations);var fv_player_did_autoplay=!1;function fv_player_videos_parse(e,t){try{var a=JSON.parse(e)}catch(e){return!1}var n;jQuery(a.sources).each(function(e,o){a.sources[e].src=o.src.replace(/(\?[a-z]+=){random}/,"$1"+Math.random())}),flowplayer.support.browser.safari&&(n=[],jQuery(a.sources).each(function(e,o){"video/webm"!=o.type&&n.push(o)}),0<n.length)&&(a.sources=n);var r,e=new RegExp("[\\?&]fv_flowplayer_mobile=([^&#]*)").exec(location.search);return!(null!=e&&"yes"==e[1]||jQuery(window).width()<=480||jQuery(window).height()<=480)||null!=e&&"no"==e[1]||(r=!1,jQuery(a.sources).each(function(e,o){if(!o)return!1;o.mobile&&(a.sources[e]=a.sources[0],a.sources[0]=o,r=!0),r&&jQuery(t).after('<p class="fv-flowplayer-mobile-switch">'+fv_flowplayer_translations.mobile_browser_detected_1+' <a href="'+document.URL+'?fv_flowplayer_mobile=no">'+fv_flowplayer_translations.mobile_browser_detected_2+"</a>.</p>")})),t.trigger("fv_player_videos_parse",a),a}function fv_player_in_iframe(){try{return window.self!==window.top}catch(e){return!0}}function fv_escape_attr(e){var o={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#039;"};return e.replace(/[&<>"']/g,function(e){return o[e]})}function fv_player_preload(){function e(){jQuery(".flowplayer.fp-is-embed").each(function(){var e=jQuery(this);e.hasClass("has-chapters")||e.hasClass("has-transcript")||0!=jQuery(".fp-playlist-external[rel="+e.attr("id")+"]").length||e.height(jQuery(window).height())})}if(flowplayer.support.touch&&(jQuery(".fp-playlist-external.fp-playlist-horizontal.fv-playlist-design-2017").addClass("visible-captions"),jQuery(".fp-playlist-external.fp-playlist-vertical.fv-playlist-design-2017").addClass("visible-captions")),flowplayer(function(n,r){localStorage.flowplayerTestStorage&&delete localStorage.flowplayerTestStorage;var e,o,t,i=(r=jQuery(r)).find(".fp-player"),l=!1,a=n.conf.splash,s=(r.hasClass("fixed-controls")&&r.find(".fp-controls").on("click",function(e){n.loading||n.ready||(e.preventDefault(),e.stopPropagation(),n.load())}),0==r.data("volume")&&r.hasClass("no-controlbar")&&r.find(".fp-volume").remove(),jQuery(".fp-playlist-external[rel="+r.attr("id")+"]")),f=((!n.conf.playlist||0==n.conf.playlist.length)&&s.length&&0<s.find("a[data-item]").length?(o=[],s.find("a[data-item]").each(function(){(e=fv_player_videos_parse(jQuery(this).attr("data-item"),r))?o.push(e):jQuery(this).remove()}),n.conf.playlist=o,n.conf.clip=o[0]):n.conf.clip||(n.conf.clip=fv_player_videos_parse(jQuery(r).attr("data-item"),r)),jQuery("a",s).on("click",function(e){e.preventDefault(),l=!0;var e=jQuery(this),o=jQuery(".fp-playlist-external[rel="+r.attr("id")+"]"),o=jQuery("a",o).index(this),t=e.prev("a"),a=e.data("item");if(e.closest(".fv-playlist-draggable.is-dragging").length)return!1;if(location.href.match(/wp-admin/)&&0<e.parents(".fv-player-editor-preview").length)return fv_flowplayer_conf.current_video_to_edit=o,e.parents(".fv-player-custom-video").find(".edit-video .fv-player-editor-button").trigger("click"),!1;if(t.length&&e.is(":visible")&&!t.is(":visible"))return t.trigger("click"),!1;if(!jQuery("#"+e.parent().attr("rel")).hasClass("dynamic-playlist")){if(fv_player_playlist_active(jQuery(".fp-playlist-external[rel="+r.attr("id")+"]"),this),n){if(n.error&&(n.pause(),n.error=n.loading=!1,r.removeClass("is-error"),r.find(".fp-message.fp-shown").remove()),!n.video||n.video.index==o)return;n.play(o)}t=(t=a.splash)||e.find("img").attr("src");u(r,i,a,t),r[0].getBoundingClientRect().bottom-100<0&&jQuery("html, body").animate({scrollTop:jQuery(r).offset().top-100},300)}}),jQuery("[rel="+r.attr("id")+"]")),p=!1,c=r.find(".fp-splash"),d=r.find(".fv-fp-splash-text");function u(e,o,t,a){e=e.find("img.fp-splash");a?(0==e.length&&(e=jQuery('<img class="fp-splash" />'),o.prepend(e)),e.attr("alt",t.fv_title?fv_escape_attr(t.fv_title):"video"),e.removeAttr("srcset"),e.attr("src",a)):e.length&&e.remove()}n.bind("load",function(e,o,t){var a;o.conf.playlist.length&&(t.type.match(/^audio/)&&!l&&(a=(a=(t=(o=f.find("a").eq(t.index)).data("item")).splash)||o.find("img").attr("src"),u(r,i,t,a)),l=!1)}),n.bind("ready",function(e,o,t){setTimeout(function(){var e;-1<t.index&&0<f.length&&(e=jQuery("a",f).eq(t.index),fv_player_playlist_active(f,e),p=e.find(".fvp-progress"))},100),c=r.find(".fp-splash"),t.is_audio_stream||t.type.match(/^audio/)||(window.fv_player_pro&&window.fv_player_pro.autoplay_scroll||r.data("fvautoplay")||!a||"application/x-mpegurl"==o.video.type?o.one("progress",function(){c.remove(),d.remove()}):(c.remove(),d.remove()))}),n.bind("unload",function(){jQuery(".fp-playlist-external .now-playing").remove(),jQuery(".fp-playlist-external a").removeClass("is-active");var e=i.find("iframe.fp-engine");e.length?(e.after(d),e.after(c)):(i.prepend(d),i.prepend(c)),p=!1}),n.bind("progress",function(e,o,t){p.length&&o.playlist_thumbnail_progress&&o.playlist_thumbnail_progress(p,o.video,t)}),n.bind("error-subtitles",function(){console.log("error-subtitles"),fv_player_notice(r,fv_flowplayer_translations[8],2e3)}),(s=jQuery(r).parent().find("div.fp-playlist-vertical[rel="+jQuery(r).attr("id")+"]")).length&&((t=function(){var e=s.hasClass("fp-playlist-only-captions")?"height":"max-height";s.parents(".fp-playlist-text-wrapper").hasClass("is-fv-narrow")&&(e="max-height"),s.css(e,(()=>{var e=r.height();return e=0==e?r.css("max-height"):e})()),"max-height"==e&&s.css("height","auto")})(),jQuery(window).on("resize tabsactivate",function(){setTimeout(t,0)})),n.show_status=function(e){var t="";["loading","ready","playing","paused","seeking"].every(function(e,o){return n[e]&&(t+=" "+e),!0}),console.log("FV Player Status ("+e+")",t)},window.fv_player_loaded||(window.fv_player_loaded=!0,setTimeout(function(){jQuery(document).trigger("fv_player_loaded");var e=new CustomEvent("fv_player_loaded",[]);document.dispatchEvent(e)},100)),setTimeout(function(){r.trigger("fv_player_loaded")},10),r.data("error")&&(n.message(r.data("error")),r.find(".fp-controls").remove(),r.find(".fp-header").css("opacity",1).show(),n.conf.clip={sources:[{src:!1,type:"video/mp4"}]},n.on("load",function(e){e.preventDefault(),e.stopPropagation()}))}),window.self==window.top||location.href.match(/fv_player_preview/)||(e(),jQuery(window.self).on("resize",e)),"undefined"!=typeof fv_flowplayer_playlists)for(var o in fv_flowplayer_playlists)fv_flowplayer_playlists.hasOwnProperty(o)&&jQuery("#"+o).flowplayer({playlist:fv_flowplayer_playlists[o]});fv_player_load(),fv_video_link_autoplay(),jQuery(document).ajaxComplete(function(){fv_player_load()}),jQuery(window).on("hashchange",fv_video_link_autoplay)}function fv_player_load(i){i&&1<i.lenght&&console.log("FV Player: Can't use fv_player_load with more than a single forced element!");var l=!1;if((i||jQuery(".flowplayer")).each(function(e,o){var t=jQuery(o),o=t.data("flowplayer");if(o)i&&(l=o);else{i&&(t.find(".fp-preload, .fvfp_admin_error").remove(),t.attr("data-item-lazy")?(t.attr("data-item",t.attr("data-item-lazy")),t.removeAttr("item-lazy")):(a=jQuery("[rel="+t.attr("id")+"]"))&&a.find("a[data-item-lazy]").each(function(e,o){(o=jQuery(o)).attr("data-item",o.attr("data-item-lazy")),o.removeAttr("data-item-lazy")}));var a,n,o=!1;if(t.attr("data-item"))o={clip:fv_player_videos_parse(t.attr("data-item"),t)};else if(a=jQuery("[rel="+t.attr("id")+"]")){if(0==a.find("a[data-item]").length)return;var r=[];a.find("a[data-item]").each(function(){(n=fv_player_videos_parse(jQuery(this).attr("data-item"),t))?r.push(n):jQuery(this).remove()}),o={playlist:r}}o&&(o=flowplayer.extend(o,t.data()),l=flowplayer(t[0],o),t.data("freedomplayer",l),t.data("flowplayer",l))}}),jQuery(".fv-playlist-slider-wrapper").each(function(){var e=jQuery(this).find("a:visible");(e=0===e.length?jQuery(this).find("a"):e).length&&(e=e.outerWidth()*e.length,jQuery(this).find(".fp-playlist-external").attr("style","width: "+e+"px; max-width: "+e+"px !important"))}),void 0!==jQuery().tabs&&(jQuery("body").removeClass("fv_flowplayer_tabs_hide"),jQuery(".fv_flowplayer_tabs_content").tabs()),i&&l)return l}function fv_player_playlist_active(e,o){e&&(jQuery("a",e).removeClass("is-active"),jQuery(".now-playing").remove());var t,e=jQuery(e),o=jQuery(o),a=!1,n=(o.addClass("is-active"),e.hasClass("fv-playlist-design-2014"));(n&&0==o.find("h4").length||!n)&&0==o.find(".now-playing").length&&o.prepend('<strong class="now-playing"><span>'+fv_flowplayer_translations.playlist_current+"</span></strong>"),e.parent().find(".flowplayer").length||(a=!0),(e.hasClass("fp-playlist-vertical")||e.hasClass("fp-playlist-horizontal")&&e.hasClass("is-audio"))&&!(e=>{var o=e.getBoundingClientRect(),t=o.top,a=t+o.height,e=e.parentNode;do{if(o=e.getBoundingClientRect(),a<=o.bottom==!1)return;if(t<=o.top)return;e=e.parentNode}while(e!=document.body);return a<=document.documentElement.clientHeight})(o.get(0))?(t=a?e.parent():e).animate({scrollTop:t.scrollTop()+(o.position().top-t.position().top)},750):e.hasClass("fp-playlist-horizontal")&&!(e=>{var o=e.getBoundingClientRect(),t=o.left,a=t+o.width,e=e.parentNode;do{if(o=e.getBoundingClientRect(),a<=o.right==!1)return;if(t<=o.left)return;e=e.parentNode}while(e!=document.body);return a<=document.documentElement.clientWidth})(o.get(0))&&(t=a?e.parent():e).animate({scrollLeft:t.scrollLeft()+(o.position().left-t.position().left)},750)}function fv_parse_sharelink(e){var o,t="fvp_";return(e=e.replace("https?://[^./].","")).match(/(youtube.com)/)?t+e.match(/(?:v=)([A-Za-z0-9_-]*)/)[1]:e.match(/(vimeo.com)|(youtu.be)/)?t+e.match(/(?:\/)([^/]*$)/)[1]:(o=e.match(/(?:\/)([^/]*$)/))?t+o[1].match(/^[^.]*/)[0]:t+e}function fv_player_get_video_link_hash(e){var o=fv_parse_sharelink((void 0!==e.video.sources_original&&void 0!==e.video.sources_original[0]?e.video.sources_original:e.video.sources)[0].src);return o=void 0!==e.video.id?fv_parse_sharelink(e.video.id.toString()):o}function fv_player_time_hms(e){var o,t,a;return isNaN(e)?NaN:(o=parseInt(e,10),t=Math.floor(o/3600),a=Math.floor(o/60)%60,e=o%60,t?t+="h":t="",t&&a<10?a="0"+a+"m":a?a+="m":a="",(t||a)&&e<10&&(e="0"+e),t+a+(e+="s"))}function fv_player_time_hms_ms(e){var o;return isNaN(e)?NaN:(o=void 0!==(o=((e=parseFloat(e).toFixed(3))+"").split("."))[1]&&0<o[1]?o[1]+"ms":"",fv_player_time_hms(e)+o)}function fv_player_time_seconds(e,o){var t;return e?(t=0,e.match(/(\d+[a-z]{1,2})/g).forEach(function(e){e.endsWith("h")?t+=3600*parseInt(e):e.endsWith("m")?t+=60*parseInt(e):e.endsWith("s")&&!e.endsWith("ms")?t+=parseInt(e):e.endsWith("ms")&&parseInt(e)&&(t+=parseInt(e)/1e3)}),o?Math.min(t,o):t):-1}function fv_autoplay_init(e,t,o,a,n){var r,i,l;!fv_autoplay_exec_in_progress&&(fv_autoplay_exec_in_progress=!0,r=e.data("flowplayer"))&&(i=fv_player_time_seconds(o),n=fv_player_time_seconds(n),a=fv_player_time_seconds(a),e.parent().hasClass("ui-tabs-panel")&&(o=e.parent().attr("id"),jQuery("[aria-controls="+o+"] a").trigger("click")),e.find(".fp-player").attr("class").match(/\bis-sticky/)||(l=jQuery(e).offset().top-(jQuery(window).height()-jQuery(e).height())/2,window.scrollTo(0,l),r.one("ready",function(){window.scrollTo(0,l)})),e.hasClass("lightboxed")&&setTimeout(function(){jQuery("[href=\\#"+e.attr("id")+"]").trigger("click")},0),t?fv_player_video_link_autoplay_can(r,parseInt(t))?r.ready?fv_player_video_link_seek(r,i,n,a):(r.play(parseInt(t)),r.one("ready",function(){fv_player_video_link_seek(r,i,n,a)})):flowplayer.support.inlineVideo&&(r.one(r.playing?"progress":"ready",function(e,o){o.play(parseInt(t)),o.one("ready",function(){fv_player_video_link_seek(o,i,n,a)})}),e.find(".fp-splash").attr("src",jQuery("[rel="+e.attr("id")+"] div").eq(t).find("img").attr("src")).removeAttr("srcset"),fv_player_in_iframe()||fv_player_notice(e,fv_flowplayer_translations[11],"progress")):r.ready?fv_player_video_link_seek(r,i,n,a):(fv_player_video_link_autoplay_can(r)?r.load():fv_player_in_iframe()||fv_player_notice(e,fv_flowplayer_translations[11],"progress"),r.one("ready",function(){fv_player_video_link_seek(r,i,n,a)})))}function fv_player_video_link_seek(e,o,t,a){fv_autoplay_exec_in_progress=!1;var n=setInterval(function(){e.loading||((0<o||0<e.video.time)&&(e.custom_seek?e.custom_seek(o):e.seek(o)),t&&a&&e.trigger("link-ab",[e,a,t]),clearInterval(n))},10)}jQuery(document).ready(function(){var e=0,o=setInterval(function(){++e<1e3&&(window.fv_vast_conf&&!window.FV_Player_IMA||window.fv_player_pro&&!window.FV_Flowplayer_Pro&&!window.FV_Player_Pro&&document.getElementById("fv_player_pro")!=fv_player_pro||window.fv_player_user_playlists&&!window.fv_player_user_playlists.is_loaded||window.FV_Player_JS_Loader_scripts_total&&window.FV_Player_JS_Loader_scripts_loaded<window.FV_Player_JS_Loader_scripts_total)||(clearInterval(o),fv_player_preload())},10)});var fv_autoplay_exec_in_progress=!1;function fv_video_link_autoplay(){var e,i,l,s,f,p=!0;"undefined"!=typeof flowplayer&&"undefined"!=typeof fv_flowplayer_conf&&fv_flowplayer_conf.video_hash_links&&window.location.hash.substring(1).length&&(e=window.location.hash.match(/\?t=/)?window.location.hash.substring(1).split("?t="):window.location.hash.substring(1).split(","),i=e[0],l=void 0!==e[1]&&e[1],s=void 0!==e[2]&&e[2],f=void 0!==e[3]&&e[3],jQuery(".flowplayer").each(function(){var e=jQuery(this),o=(e=e.hasClass("lightbox-starter")?jQuery(e.attr("href")):e).data("flowplayer");if(o){var t,a=void 0!==o.conf.playlist&&1<o.conf.playlist.length?o.conf.playlist:[o.conf.clip];for(t in a)if(a.hasOwnProperty(t)){var n=void 0!==a[t].id&&fv_parse_sharelink(a[t].id.toString());if(i===n&&p)return 0<o.conf.playlist.length?o.conf.playlist[t].prevent_position_restore=!0:o.conf.clip.prevent_position_restore=!0,console.log("fv_autoplay_exec for "+n,t),fv_autoplay_init(e,parseInt(t),l,s,f),p=!1}for(t in a)if(a.hasOwnProperty(t)){var r=fv_parse_sharelink(a[t].sources[0].src);if(i===r&&p)return 0<o.conf.playlist.length?o.conf.playlist[t].prevent_position_restore=!0:o.conf.clip.prevent_position_restore=!0,console.log("fv_autoplay_exec for "+r,t),fv_autoplay_init(e,parseInt(t),l,s,f),p=!1}}}))}function fv_player_video_link_autoplay_can(e,o){return!("video/youtube"==(o?e.conf.playlist[o]:e.conf.clip).sources[0].type&&(flowplayer.support.iOS||flowplayer.support.android)||fv_player_in_iframe())&&flowplayer.support.firstframe}function fv_player_notice(e,o,t){var a=jQuery(".fvfp-notices",e),n=(a.length||(a=jQuery('<div class="fvfp-notices">'),jQuery(".fp-player",e).append(a)),jQuery('<div class="fvfp-notice-content">'+o+"</div></div>"));return a.append(n),"string"==typeof t&&jQuery(e).data("flowplayer").on(t,function(){n.fadeOut(100,function(){jQuery(this).remove()})}),0<t&&setTimeout(function(){n.fadeOut(2e3,function(){jQuery(this).remove()})},t),n}var fv_player_clipboard=function(e,o,t){if(navigator.clipboard&&"function"==typeof navigator.clipboard.writeText)navigator.clipboard.writeText(e).then(function(){o()},function(){void 0!==t&&t()});else try{fv_player_doCopy(e)?o():void 0!==t&&t()}catch(e){void 0!==t&&t(e)}};function fv_player_doCopy(e){var o,t,a,n=document.createElement("textarea"),e=(n.value=e,n.style.opacity=0,n.style.position="absolute",n.setAttribute("readonly",!0),document.body.appendChild(n),0<document.getSelection().rangeCount&&document.getSelection().getRangeAt(0));navigator.userAgent.match(/ipad|ipod|iphone/i)?(o=n.contentEditable,n.contentEditable=!0,(t=document.createRange()).selectNodeContents(n),(a=window.getSelection()).removeAllRanges(),a.addRange(t),n.setSelectionRange(0,999999),n.contentEditable=o):n.select();try{var r=document.execCommand("copy");return e&&(document.getSelection().removeAllRanges(),document.getSelection().addRange(e)),document.body.removeChild(n),r}catch(e){throw new Error("Unsuccessfull")}}function fv_player_log(e,o){fv_flowplayer_conf.debug&&"undefined"!=typeof console&&"function"==typeof console.log&&(o?console.log(e,o):console.log(e)),fv_flowplayer_conf.debug&&void 0!==window.location.search&&window.location.search.match(/fvfp/)&&jQuery("body").prepend(e+"<br />")}function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function is_ga_4(e){return!(void 0===e.conf.fvanalytics||!e.conf.fvanalytics||!e.conf.fvanalytics.startsWith("G-"))}function fv_player_track(e,o,t,a,n,r){if("object"!=_typeof(e)&&(r=n,n=a,a=t,t=o,o=e,e=!1),o=o||flowplayer.conf.fvanalytics,void 0===a&&(a="Unknown engine"),/fv_player_track_debug/.test(window.location.href)&&console.log("FV Player Track: "+t+" - "+a+" '"+n+"'",r),"undefined"!=typeof gtag)is_ga_4(e)&&"Video Subtitles"!==t?gtag("event",t,{video_title:n,video_current_time:e.video.time,video_provider:a,video_duration:e.video.duration,value:r||1}):gtag("event",t,{event_category:a,event_label:n,value:r||1});else if(o&&"undefined"!=typeof ga)ga("create",o,"auto",n,{allowLinker:!0}),ga("require","linker"),r?ga("send","event",t,a,n,r):ga("send","event",t,a,n);else if(o&&"undefined"!=typeof _gat){e=_gat._getTracker(o);if(void 0===e._setAllowLinker)return;e._setAllowLinker(!0),r?e._trackEvent(t,a,n,r):e._trackEvent(t,a,n)}flowplayer.conf.matomo_domain&&flowplayer.conf.matomo_site_id&&"undefined"!=typeof _paq&&(r?_paq.push(["trackEvent",t,a,n,r]):_paq.push(["trackEvent",t,a,n]))}function fv_player_track_name(e,o){e=e.attr("title");return(e=(e=e||void 0===o.fv_title?e:o.fv_title)||void 0===o.title?e:o.title)||void 0===o.src||(e=o.src.split("/").slice(-1)[0].replace(/\.(\w{3,4})(\?.*)?$/i,""),o.type.match(/mpegurl/)&&(e=o.src.split("/").slice(-2)[0].replace(/\.(\w{3,4})(\?.*)?$/i,"")+"/"+e)),e}function freedomplayer_playlist_size_check(){jQuery(".fp-playlist-external").each(function(){var e=jQuery(this),o=e.parent().width(),t=e.css("max-width").match(/%/)?e.width():parseInt(e.css("max-width")),t=0<t&&t<o?t:o;900<=e.parent().width()?e.addClass("is-wide"):e.removeClass("is-wide"),(e.hasClass("fp-playlist-polaroid")||e.hasClass("fp-playlist-version-one")||e.hasClass("fp-playlist-version-two"))&&(o=e.hasClass("fp-playlist-version-one")||e.hasClass("fp-playlist-version-two")?200:150,8<(t=Math.floor(t/o))?t=8:t<2&&(t=2),e.css("--fp-playlist-items-per-row",String(t)))})}flowplayer(function(t,r){var n,i,o,l,a,s;function e(){var e;"dash"==t.engine.engineName?((e=l[t.engine.dash.getQualityFor("video")]).qualityIndex!=a&&(a=e.qualityIndex,f(e.qualityIndex,l)),o.match(/dash_debug/)&&p(e.width,e.height,e.bitrate)):"hlsjs-lite"==t.engine.engineName&&(n.currentLevel!=a&&(a=n.currentLevel,f(n.currentLevel,n.levels)),o.match(/hls_debug/))&&(e=n.levels[n.currentLevel])&&p(e.width,e.height,e.bitrate)}function f(e,o){var t,a,n;o[e]&&(t=o[e].height,a=541,n=1e5,jQuery(o).each(function(e,o){720<=o.height&&o.height<1400&&(a=720),o.height<n&&(n=o.height),localStorage.FVPlayerHLSQuality==o.height&&(r.find("a[data-quality]").removeClass("fp-selected fp-color"),r.find("a[data-quality="+e+"]").addClass("fp-selected fp-color"))}),r.find("a[data-quality]").removeClass("is-current"),r.find("a[data-quality="+e+"]").addClass("is-current"),o=1400<=t?"4K":a<=t?"HD":360<=t&&n<t?"SD":"SD",r.find(".fp-qsel").html(o))}function p(e,o,t){s.html("Using "+e+"x"+o+" at "+Math.round(t/1024)+" kbps")}function c(){var t=r.find(".fp-qsel-menu");t.children().each(function(e,o){t.prepend(o)}),t.children().each(function(e,o){var t;/^NaNp/.test(jQuery(o).html())?(t=jQuery(o).html().match(/\((.*?)\)/))&&void 0!==t[1]&&jQuery(o).html(t[1]):jQuery(o).html(jQuery(o).html().replace(/\(.*?\)/,""))}),t.prepend(t.find("a[data-quality=-1]")),t.prepend(t.find("strong"))}r=jQuery(r),void 0===t.conf.disable_localstorage&&(i=t.conf.splash,flowplayer.engine("hlsjs-lite").plugin(function(e){(n=e.hls).on(Hls.Events.ERROR,function(e,o){"mediaError"==o.type&&"fragParsingError"==o.details&&1==o.fatal&&(n.destroy(),t.trigger("error",[t,{code:3}]),setTimeout(function(){r.removeClass("is-seeking"),r.addClass("is-paused")},0))}),flowplayer.support.browser.safari&&n.on(Hls.Events.KEY_LOADED,function(e){"hlsKeyLoaded"==e&&setTimeout(function(){t.loading&&(console.log("FV Player: Safari stuck loading HLS, resuming playback..."),t.resume())},0)});var a=!(!flowplayer.conf.hd_streaming||flowplayer.support.fvmobile)&&720;localStorage.FVPlayerHLSQuality&&(a=localStorage.FVPlayerHLSQuality),(a=0==jQuery(e.root).data("hd_streaming")?!1:a)&&n.on(Hls.Events.MANIFEST_PARSED,function(e,o){var t=!1;jQuery.each(o.levels,function(e,o){o.height==a&&(t=e)}),localStorage.FVPlayerHLSQuality||t||jQuery.each(o.levels,function(e,o){o.height>t&&(t=e)}),t&&(console.log("FV Player: Picked "+o.levels[t].height+"p quality"),n.startLevel=t,n.currentLevel=t)})}),r=jQuery(r),o=document.location.search,localStorage.FVPlayerDashQuality&&(t.conf.dash||(t.conf.dash={}),t.conf.dash.initialVideoQuality="restore"),r.on("click",".fp-qsel-menu a",function(){var e;"hlsjs-lite"==t.engine.engineName&&(-1==(e=jQuery(this).data("quality"))?localStorage.removeItem("FVPlayerHLSQuality"):(e=n.levels[e],localStorage.FVPlayerHLSQuality=e.height))}),0!=r.data("hd_streaming")&&(localStorage.FVPlayerHLSQuality?(t.conf.hlsjs.startLevel=parseInt(localStorage.FVPlayerHLSQuality),t.conf.hlsjs.testBandwidth=!1,t.conf.hlsjs.autoLevelEnabled=!1):flowplayer.conf.hd_streaming&&!flowplayer.support.fvmobile&&(t.conf.hlsjs.startLevel=3,t.conf.hlsjs.testBandwidth=!1,t.conf.hlsjs.autoLevelEnabled=!1)),t.bind("quality",function(e,o,t){"dash"==o.engine.engineName&&(-1==t?localStorage.removeItem("FVPlayerDashQuality"):l[t]&&(localStorage.FVPlayerDashQuality=l[t].height))}),l=[],a=-1,t.bind("ready",function(e,o){var a;r.find(".fp-qsel-menu strong").text(fv_flowplayer_translations.quality),"dash"==o.engine.engineName?(l=o.engine.dash.getBitrateInfoListFor("video"),localStorage.FVPlayerDashQuality&&o.conf.dash.initialVideoQuality&&o.quality(o.conf.dash.initialVideoQuality),c()):"hlsjs-lite"==o.engine.engineName?(i&&(r.addClass("is-loading"),o.loading=!0,o.one("progress",function(){o.loading&&(r.removeClass("is-loading"),o.loading=!1)})),o.video.qualities&&2<o.video.qualities.length&&(a=-1,0!=r.data("hd_streaming")&&(localStorage.FVPlayerHLSQuality?jQuery(o.video.qualities).each(function(e,o){if(o.value==localStorage.FVPlayerHLSQuality)return a=localStorage.FVPlayerHLSQuality,!1}):flowplayer.conf.hd_streaming&&!flowplayer.support.fvmobile&&jQuery(o.video.qualities).each(function(e,o){var t=parseInt(o.label);0<t&&-1==a&&720<=t&&t<=720&&(a=o.value)}),-1<(a=parseInt(a)))&&r.one("progress",function(){setTimeout(function(){o.quality(a)})}),c())):o.video.sources_fvqs&&0<o.video.sources_fvqs.length&&o.video.src.match(/vimeo.*?\.mp4/)&&setTimeout(c,0),r.find("a[data-quality]").removeClass("is-current")}),(o.match(/dash_debug/)||o.match(/hls_debug/))&&(s=jQuery('<div class="fv-debug" style="background: gray; color: white; top: 10%; position: absolute; z-index: 1000">').appendTo(r.find(".fp-player"))),t.bind("ready progress",e),t.bind("quality",function(){setTimeout(e,0)}))}),flowplayer(function(a,s){var n,r,e,o,t,s=jQuery(s),i=flowplayer.bean,l=0,f=0,p=[],c=0,d=("undefined"==typeof ga&&a.conf.fvanalytics&&"undefined"==typeof _gat&&"undefined"==typeof gtag&&(is_ga_4(a)?jQuery.getScript({url:"https://www.googletagmanager.com/gtag/js?id="+a.conf.fvanalytics,cache:!0},function(){window.dataLayer=window.dataLayer||[],window.gtag=function(){window.dataLayer.push(arguments)},window.gtag("js",new Date),window.gtag("config",a.conf.fvanalytics)}):jQuery.getScript({url:"https://www.google-analytics.com/analytics.js",cache:!0},function(){ga("create",a.conf.fvanalytics,"auto")})),!window._paq&&a.conf.matomo_domain&&a.conf.matomo_site_id&&(e="//"+a.conf.matomo_domain+"/",(t=window._paq=window._paq||[]).push(["setTrackerUrl",e+"matomo.php"]),t.push(["setSiteId",a.conf.matomo_site_id]),o=(t=document).createElement("script"),t=t.getElementsByTagName("script")[0],o.type="text/javascript",o.async=!0,o.src=e+"matomo.js",t.parentNode.insertBefore(o,t)),a.bind("progress",function(e,o,t){if(1<t){var a=o.video,n=a.duration,r=0,i=fv_player_track_name(s,a);if(4<n&&(19*n/20<t?r=4:3*n/4<t?r=3:n/2<t?r=2:n/4<t&&(r=1)),o.live&&(r=0),!s.data("fv_track_"+d[r])){for(var l in d)if(d.hasOwnProperty(l)){if(l==r)break;if(!s.data("fv_track_"+d[l]))return}s.trigger("fv_track_"+d[r].replace(/ /,"_"),[o,i]),s.data("fv_track_"+d[r],!0),fv_player_track(o,!1,"Video "+(s.hasClass("is-cva")?"Ad ":"")+d[r],o.engine.engineName+"/"+a.type,i)}}}).bind("finish ready ",function(e,o){if("finish"!==e.type||!o.conf.loop){for(var t in d)d.hasOwnProperty(t)&&s.removeData("fv_track_"+d[t]);e=o.video.index||0;c!==e&&(p=[],c=e)}}).bind("error",function(e,o,t){setTimeout(function(){var e;o.error&&((e=void 0!==o.video&&void 0!==o.video.src&&o.video)||void 0===o.conf.clip||void 0===o.conf.clip.sources||void 0===o.conf.clip.sources[0]||void 0===o.conf.clip.sources[0].src||(e=o.conf.clip.sources[0]),!(e=fv_player_track_name(s,e))||e.match(/\/\/vimeo.com\/\d/)||is_ga_4(o)||fv_player_track(o,!1,"Video "+(s.hasClass("is-cva")?"Ad ":"")+"error",t.message,e))},100)}),a.bind("load unload",u).bind("progress",function(e,o){o.seeking||(l+=f?+new Date-f:0,f=+new Date),n=n||setTimeout(function(){n=null,u({type:"heartbeat"})},6e5)}).bind("pause",function(){f=0}),a.bind("shutdown",function(){i.off(window,"visibilitychange pagehide",u)}),i.on(window,"visibilitychange pagehide",u),is_ga_4(a)?["Play","25 Percent Played","50  Percent Played","75 Percent Played","100 Percent Played"]:["start","first quartile","second quartile","third quartile","complete"]);function u(e,o,t){"visible"===document.visibilityState&&"load"!==e.type&&"heartbeat"!==e.type||(t=t||a.video,"load"===e.type&&(r=fv_player_track_name(s,t)),l&&(fv_player_track(a,!1,"Video / Seconds played",a.engine.engineName+"/"+a.video.type,r,Math.round(l/1e3)),l=0,n)&&(clearTimeout(n),n=null))}a.get_time_played=function(){return l/1e3};var y=a.loadSubtitles;a.loadSubtitles=function(e){var o;y(e),a.video.subtitles[e]&&(o=fv_player_track_name(s,a.video),e=a.video.subtitles[e].srclang,-1===p.indexOf(e))&&(fv_player_track(a,!1,"Video Subtitles",e,o),p.push(e))}}),flowplayer(function(n,r){var i=(r=jQuery(r)).find(".fp-player"),l=r.hasClass("fp-full"),s=0;function o(){var e=i.width()||r.width(),o=n.video.index||0,t=(900<e?jQuery(".fp-subtitle",r).addClass("is-wide"):jQuery(".fp-subtitle",r).removeClass("is-wide"),e<480+35*s),o=(void 0!==n.fv_timeline_chapters_data&&void 0!==n.fv_timeline_chapters_data[o]&&(t=!0),l||r.toggleClass("fp-full",r.hasClass("has-abloop")||t),""),t=(e<400?o="is-tiny":e<600&&400<=e&&(o="is-small"),r.trigger("fv-player-size",[o]),i),e=((t=r.parent().hasClass("fp-playlist-vertical-wrapper")||r.parent().hasClass("fp-playlist-text-wrapper")?r.parent():t).width()<=560?t.addClass("is-fv-narrow"):t.removeClass("is-fv-narrow"),r.find(".fp-controls")),o=e.parent().width(),t=e.find(".fp-duration, .fp-playbtn"),a=0;t.removeClass("wont-fit"),r.find(".fp-controls").children(":visible:not(.fp-timeline)").each(function(){a+=jQuery(this).outerWidth(!0)}),o<a&&t.addClass("wont-fit")}o();function e(){clearTimeout(f),f=setTimeout(t,a)}var t,a,f;t=o,a=250;window.addEventListener("resize",e),"fonts"in document&&n.one("load",function(){document.fonts.load("1em flowplayer")}),n.on("ready fullscreen fullscreen-exit sticky sticky-exit",function(e){setTimeout(function(){s=r.find(".fp-controls > strong:visible").length+r.find(".fp-controls > .fp-icon:visible").length,o()},0)}),n.on("unload pause finish error",function(){"undefined"!=typeof checker&&clearInterval(checker)})}),jQuery(window).on("resize tabsactivate",freedomplayer_playlist_size_check),jQuery(document).ready(freedomplayer_playlist_size_check),flowplayer(function(o,a){a=jQuery(a),o.setLogoPosition=function(){var e=freedomplayer.support.browser.safari&&parseFloat(freedomplayer.support.browser.version)<14.1||freedomplayer.support.iOS&&parseFloat(freedomplayer.support.iOS.version)<15;o.conf.logo_over_video&&o.video&&o.video.width&&o.video.height&&!e?a.find(".fp-logo").css("--fp-aspect-ratio",(o.video.width/o.video.height).toFixed(2)):a.find(".fp-logo").css("width","100%").css("height","100%")},o.bind("ready",function(e,o,t){o.setLogoPosition(),t.remove_black_bars?a.addClass("remove-black-bars"):a.removeClass("remove-black-bars"),/Chrome/.test(navigator.userAgent)&&54<parseFloat(/Chrome\/(\d\d)/.exec(navigator.userAgent)[1],10)&&(o.video.subtitles?jQuery(a).addClass("chrome55fix-subtitles"):jQuery(a).addClass("chrome55fix"))});var e=a.css("background-image");if(e){if(!(e=e.replace(/url\((['"])?(.*?)\1\)/gi,"$2").split(","))||!e[0].match(/^(https?:)?\/\//))return;var t=new Image,e=(t.src=e[0],t.height/t.width),t=a.height()/a.width();Math.abs(t-e)<.05&&a.css("background-size","cover")}var n=!1;jQuery(o.conf.playlist).each(function(e,o){o.sources[0].type.match(/youtube/)&&(n=!0)}),n&&a.addClass("is-youtube"),o.bind("ready",function(e,o,t){"video/youtube"==t.type?a.addClass("is-youtube"):a.removeClass("is-youtube")})}),(e=>{e(window).on("resize",function(){e("iframe[id][src][height][width]").each(function(){e(this).attr("id").match(/fv_vimeo_/)&&e(this).width()<=e(this).attr("width")&&e(this).height(e(this).width()*e(this).attr("height")/e(this).attr("width"))}),jQuery(".wistia_embed").each(function(){e(this).height(e(this).width()*e(this).data("ratio"))})}).trigger("resize")})(jQuery),jQuery(document).on("tabsactivate",".fv_flowplayer_tabs_content",function(e,o){var t=jQuery(o.oldPanel).find(".flowplayer").data("flowplayer");void 0!==t&&t.pause(),jQuery(".flowplayer",o.newPanel).data("flowplayer").load()}),flowplayer(function(o,a){a=jQuery(a);var e=flowplayer.bean;a.hasClass("is-audio")&&(e.off(a[0],"mouseenter"),e.off(a[0],"mouseleave"),a.removeClass("is-mouseout"),a.addClass("fixed-controls").addClass("is-mouseover"),o.on("error",function(e,o,t){jQuery(".fp-message",a).html(jQuery(".fp-message",a).html().replace(/video/,"audio"))}),a.on("click",function(e){o.ready||(e.preventDefault(),e.stopPropagation(),o.load())}))}),jQuery(document).on("mfpClose",function(){void 0!==jQuery(".flowplayer").data("flowplayer")&&jQuery(".flowplayer").data("flowplayer").unload()}),jQuery(document).on("click",".vc_tta-tab a",function(){var e=jQuery(".flowplayer.is-playing").data("flowplayer");e&&e.pause()}),flowplayer(function(e,o){o=jQuery(o),e.bind("ready",function(){setTimeout(function(){var e=jQuery("video",o);0<e.length&&e.prop("autoplay",!1)},100),o.find("video.fp-engine").addClass("intrinsic-ignore")})}),jQuery(".flowplayer").on("ready",function(e,o){/BB10/.test(navigator.userAgent)&&o.fullscreen()});var fv_flowplayer_safety_resize_arr=Array();function fv_flowplayer_safety_resize(){var o=!1;jQuery(".flowplayer").each(function(){if(jQuery(this).is(":visible")&&!jQuery(this).hasClass("lightboxed")&&!jQuery(this).hasClass("lightbox-starter")&&!jQuery(this).hasClass("is-audio")&&(jQuery(this).width()<30||jQuery(this).height()<20)){o=!0;var e=jQuery(this);while(jQuery(e).width()<30||jQuery(e).width()==jQuery(this).width()){if(0==jQuery(e).parent().length)break;(e=jQuery(e).parent()).hasClass("ld-video")&&(""==e[0].style.height&&e.css("height","auto"),0<parseInt(e.css("padding-bottom")))&&e.css("padding-bottom","0")}jQuery(this).width(jQuery(e).width()),jQuery(this).height(parseInt(jQuery(this).width()*jQuery(this).attr("data-ratio"))),fv_flowplayer_safety_resize_arr[jQuery(this).attr("id")]=e}}),o&&jQuery(window).resize(function(){jQuery(".flowplayer").each(function(){jQuery(this).hasClass("lightboxed")||jQuery(this).hasClass("lightbox-starter")||fv_flowplayer_safety_resize_arr[jQuery(this).attr("id")]&&(jQuery(this).width(fv_flowplayer_safety_resize_arr[jQuery(this).attr("id")].width()),jQuery(this).height(parseInt(jQuery(this).width()*jQuery(this).attr("data-ratio"))))})})}void 0!==flowplayer.conf.safety_resize&&flowplayer.conf.safety_resize&&jQuery(document).ready(function(){setTimeout(function(){fv_flowplayer_safety_resize()},10)});var fv_autoplay_type,fv_player_scroll_autoplay,fv_player_scroll_autoplay_last_winner,fv_player_scroll_int,fv_player_warning,isIE11=!!navigator.userAgent.match(/Trident.*rv[ :]*11\./);function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function fv_player_lightbox_bind(){jQuery(".freedomplayer.lightbox-starter").each(function(){var e,o=jQuery(this);(parseInt(o.css("width"))<10||parseInt(o.css("height"))<10)&&((e=o.find(".fp-ratio")).length<1&&(o.append('<div class="fp-ratio"></div>'),e=o.find(".fp-ratio")),e.css("paddingTop",100*o.data("ratio")+"%")),o.find(".fp-preload").remove()})}function fv_flowplayer_mobile_switch(e){var o,t=new RegExp("[\\?&]fv_flowplayer_mobile=([^&#]*)").exec(location.search);!(null!=t&&"yes"==t[1]||jQuery(window).width()<=480||jQuery(window).height()<=480)||null!=t&&"no"==t[1]||(o=!1,jQuery("#wpfp_"+e+" video source").each(function(){jQuery(this).attr("id")!="wpfp_"+e+"_mobile"&&(o=!0,jQuery(this).remove())}),o&&jQuery("#wpfp_"+e).after('<p class="fv-flowplayer-mobile-switch">'+fv_flowplayer_translations.mobile_browser_detected_1+' <a href="'+document.URL+'?fv_flowplayer_mobile=no">'+fv_flowplayer_translations.mobile_browser_detected_2+"</a>.</p>"))}if(isIE11&&(jQuery(document).ready(function(){jQuery(".fp-waiting").hide()}),flowplayer(function(e,o){e.bind("load",function(e){jQuery(e.currentTarget).find(".fp-waiting").show()}).bind("beforeseek",function(e){jQuery(e.currentTarget).find(".fp-waiting").show()}).bind("progress",function(e){jQuery(e.currentTarget).find(".fp-waiting").hide()}).bind("seek",function(e){jQuery(e.currentTarget).find(".fp-waiting").hide()}).bind("fullscreen",function(e){jQuery("#wpadminbar").hide()}).bind("fullscreen-exit",function(e){jQuery("#wpadminbar").show()})})),flowplayer.support.browser&&flowplayer.support.browser.msie&&parseInt(flowplayer.support.browser.version,10)<9&&jQuery(".flowplayer").each(function(){jQuery(this).css("width",jQuery(this).css("max-width")),jQuery(this).css("height",jQuery(this).css("max-height"))}),location.href.match(/elementor-preview=/)?(console.log("FV Player: Elementor editor is active"),setInterval(fv_player_load,1e3)):location.href.match(/brizy-edit-iframe/)?(console.log("FV Player: Brizy editor is active"),setInterval(fv_player_load,1e3)):"blob:"===location.protocol&&setTimeout(function(){jQuery("body.block-editor-iframe__body").length&&(console.log("FV Player: Site Editor is active"),setInterval(fv_player_load,1e3))},0),window.DELEGATE_NAMES&&flowplayer(function(e,o){fv_player_notice(o,fv_flowplayer_translations.chrome_extension_disable_html5_autoplay)}),flowplayer(function(e,o){flowplayer.bean.off(o,"contextmenu")}),location.href.match(/elementor-preview=/)&&(console.log("FV Player: Elementor editor is active"),setInterval(fv_player_load,1e3)),flowplayer(function(t,a){void 0!==(a=jQuery(a)).data("fv-embed")&&a.data("fv-embed")&&"false"!=a.data("fv-embed")&&(t.embedCode=function(){t.video;var e=a.width(),o=a.height();return o+=2,(a.hasClass("has-chapters")||a.hasClass("has-transcript"))&&(o+=300),0<jQuery(".fp-playlist-external[rel="+a.attr("id")+"]").length&&(o+=170),'<iframe src="'+(a.data("fv-embed")+"#"+fv_player_get_video_link_hash(t))+'" allowfullscreen allow="autoplay" width="'+parseInt(e)+'" height="'+parseInt(o)+'" frameborder="0" style="max-width:100%"></iframe>'})}),jQuery(document).on("click",".flowplayer .embed-code-toggle",function(){var e,o,t=jQuery(this).closest(".flowplayer");return"undefined"!=typeof fv_player_editor_conf?fv_player_notice(t,fv_player_editor_translations.embed_notice,2e3):(e=jQuery(this),"function"==typeof(t=(o=e.parents(".flowplayer")).data("flowplayer")).embedCode&&o.find(".embed-code textarea").val(t.embedCode()),fv_player_clipboard(o.find(".embed-code textarea").val(),function(){fv_player_notice(o,fv_flowplayer_translations.embed_copied,2e3)},function(){e.parents(".fvp-share-bar").find(".embed-code").toggle(),e.parents(".fvp-share-bar").toggleClass("visible")})),!1}),flowplayer(function(a,n){var r,i,l="fullscreen",s="fullscreen-exit",f=flowplayer.support.fullscreen,p=window,c=flowplayer.bean;a.fullscreen=function(e){if(!a.disabled&&0!=jQuery(n).data("fullscreen")){(e=void 0===e?!a.isFullscreen:e)&&(i=p.scrollY,r=p.scrollX,console.log("scrollY",i));var o,t=d.find("video.fp-engine",n)[0];if(!(flowplayer.conf.native_fullscreen&&t&&flowplayer.support.iOS))return o=jQuery(n).find(".fp-player")[0],flowplayer.support.browser.safari&&flowplayer.support.fullscreen&&e&&document.fullscreenElement&&(f=!1,document.addEventListener("fullscreenchange",function(e){flowplayer(".is-fullscreen").trigger(s)})),f?e?["requestFullScreen","webkitRequestFullScreen","mozRequestFullScreen","msRequestFullscreen"].forEach(function(e){"function"==typeof o[e]&&(o[e]({navigationUI:"hide"}),"webkitRequestFullScreen"!==e||document.webkitFullscreenElement||o[e]())}):["exitFullscreen","webkitCancelFullScreen","mozCancelFullScreen","msExitFullscreen"].forEach(function(e){"function"==typeof document[e]&&document[e]()}):a.trigger(e?l:s,[a]),a;a.trigger(l,[a]),c.on(document,"webkitfullscreenchange.nativefullscreen",function(){document.webkitFullscreenElement===t&&(c.off(document,".nativefullscreen"),c.on(document,"webkitfullscreenchange.nativefullscreen",function(){document.webkitFullscreenElement||(c.off(document,".nativefullscreen"),a.trigger(s,[a]))}))});try{t.webkitEnterFullScreen()}catch(e){a.pause(),d.find(".fp-play",n)[0].style.opacity=1,jQuery(n).on("touchstart",function(e){return d.find(".fp-play",n)[0].style.opacity="",a.resume(),t.webkitEnterFullScreen(),!1})}c.one(t,"webkitendfullscreen",function(){c.off(document,"fullscreenchange.nativefullscreen"),a.trigger(s,[a]),d.prop(t,"controls",!0),d.prop(t,"controls",!1)})}};var e,d=flowplayer.common;function t(e){var o=n;while(o){try{var t=getComputedStyle(o);t.transform&&(o.style.transform=e?"none":""),t.zIndex&&(o.style.zIndex=e?"auto":"")}catch(e){}o=o.parentNode}}a.on("mousedown.fs",function(){+new Date-e<150&&a.ready&&a.fullscreen(),e=+new Date}),a.on(l,function(){d.addClass(n,"is-fullscreen"),d.toggleClass(n,"fp-minimal-fullscreen",d.hasClass(n,"fp-minimal")),d.removeClass(n,"fp-minimal"),d.addClass(document.body,"has-fv-player-fullscreen"),f&&!document.fullscreenElement||(d.css(n,"position","fixed"),t(!0)),a.isFullscreen=!0}).on(s,function(){d.toggleClass(n,"fp-minimal",d.hasClass(n,"fp-minimal-fullscreen")),d.removeClass(n,"fp-minimal-fullscreen");var e,o=f&&jQuery(n).find(".fp-player")[0]==document.fullscreenElement;o||"html5"!==a.engine||(e=n.css("opacity")||"",d.css(n,"opacity",0)),o||(d.css(n,"position",""),t(!1)),d.removeClass(n,"is-fullscreen"),d.removeClass(document.body,"has-fv-player-fullscreen"),o||"html5"!==a.engine||setTimeout(function(){n.css("opacity",e)}),a.isFullscreen=!1,"fvyoutube"!=a.engine.engineName&&p.scrollTo(r,i)}).on("unload",function(){a.isFullscreen&&a.fullscreen()}),a.on("shutdown",function(){FULL_PLAYER=null,d.removeNode(wrapper)}),flowplayer.support.iOS&&n.querySelector(".fp-player").addEventListener("touchstart",function(e){a.isFullscreen&&e.pageX&&(16<e.pageX&&e.pageX<window.innerWidth-16||e.preventDefault())})}),flowplayer(function(o,t){t=jQuery(t);var e,a=jQuery(".fp-playlist-external[rel="+t.attr("id")+"]"),a=a.hasClass("fp-playlist-season")||a.hasClass("fp-playlist-polaroid"),n=1==t.data("fsforce");function r(){return!!(window.innerWidth>window.innerHeight&&window.screen&&window.screen.width&&26<window.screen.width-window.innerHeight)}function i(){o.isFullscreen&&window.innerWidth>window.innerHeight&&r()&&!e&&(fv_player_notice(t,fv_flowplayer_translations.iphone_swipe_up_location_bar,"resize-good"),e=setTimeout(function(){e=!1,o.trigger("resize-good")},5e3))}flowplayer.conf.wpadmin&&!a||jQuery(t).hasClass("is-audio")||0==t.data("fullscreen")||0==t.data("fsforce")||((flowplayer.conf.mobile_force_fullscreen&&flowplayer.support.fvmobile||n||a)&&(flowplayer.support.fullscreen?t.on("click",function(){o.ready&&!o.paused||o.fullscreen(!0)}):o.bind("ready",function(){o.video.vr||o.one("progress",function(){o.fullscreen(!0)})}),jQuery("[rel="+t.attr("id")+"] a").on("click",function(e){o.isFullscreen||(o.fullscreen(),o.resume())}),o.on("resume",function(){o.video.vr||o.isFullscreen||(flowplayer.support.fullscreen?o.fullscreen():o.one("progress",function(){o.fullscreen(!0)}))}),o.on("finish",function(){0!=o.conf.playlist.length&&o.conf.playlist.length-1!=o.video.index||o.fullscreen(!1)}).on("fullscreen",function(e,o){t.addClass("forced-fullscreen")}).on("fullscreen-exit",function(e,o){o.pause(),t.removeClass("forced-fullscreen")})),flowplayer.support.android&&flowplayer.conf.mobile_landscape_fullscreen&&window.screen&&window.screen.orientation&&o.on("fullscreen",function(e,o){void 0!==(o=o).video.width&&void 0!==o.video.height&&0!=o.video.width&&0!=o.video.height&&o.video.width<o.video.height?screen.orientation.lock("portrait-primary"):screen.orientation.lock("landscape-primary")}),e=!1,!flowplayer.support.iOS)||flowplayer.support.fullscreen||flowplayer.conf.native_fullscreen||(o.on("fullscreen",i),window.addEventListener("resize",i),window.addEventListener("resize",function(){r()||(clearTimeout(e),e=!1,o.trigger("resize-good"))}))}),flowplayer(function(e,o){o=jQuery(o);(document.body.classList.contains("block-editor-page")&&!o.closest("#fv-player-shortcode-editor-preview-target").length||jQuery("body.block-editor-iframe__body").length)&&jQuery('<div title="Click to edit" style="width: 40%; height: calc( 100% - 3em ); z-index: 19; position: absolute; top: 0; left: 0; cursor: context-menu" onclick="return false" title="Click to edit"></div><div style="width: 40%; height: calc( 100% - 3em ); z-index: 19; position: absolute; top: 0; right: 0; cursor: context-menu" onclick="return false" title="Click to edit"></div><div style="width: 20%; height: 40%; z-index: 19; position: absolute; top: 0; right: 40%; cursor: context-menu" onclick="return false" title="Click to edit"></div><div style="width: 20%; height: calc( 40% - 3em ); z-index: 19; position: absolute; top: 60%; right: 40%; cursor: context-menu" onclick="return false"></div>').insertAfter(o.find(".fp-ratio"))}),flowplayer(function(t,a){a=jQuery(a);var r,n,i,l,s;window.MediaSource||window.WebKitMediaSource;function f(){var e=a.find("video");return e.length&&e[0].audioTracks?e[0].audioTracks:[]}function p(t){t.name||(t.name=t.label),a.find(".fv-fp-hls-menu a").each(function(e,o){jQuery(o).toggleClass("fp-selected",jQuery(o).attr("data-audio")===t.name)})}function c(){if(n&&!(n.length<2))if(l=jQuery('<strong class="fv-fp-hls">'+fv_flowplayer_translations.audio_button+"</strong>"),(s=jQuery('<div class="fp-menu fv-fp-hls-menu"></div>').insertAfter(a.find(".fp-controls"))).append("<strong>"+fv_flowplayer_translations.audio_menu+"</strong>"),n.forEach(function(e){s.append('<a data-audio="'+e.name+'" data-lang="'+e.lang+'">'+e.name+"</a>")}),l.insertAfter(a.find(".fp-controls .fp-volume")).on("click",function(e){e.preventDefault(),e.stopPropagation(),s.hasClass("fp-active")?t.hideMenu(s[0]):(a.click(),t.showMenu(s[0]))}),jQuery("a",s).on("click",function(e){var o=e.target.getAttribute("data-audio");if(r){var t=r.audioTracks[r.audioTrack].groupId,e=r.audioTracks.filter(function(e){return e.groupId===t&&(e.name===o||e.lang===o)})[0];r.audioTrack=e.id,p(e)}else{var a,n=f();for(a in n)n.hasOwnProperty(a)&&n[a].label==o&&(n[a].enabled=!0,p(n[a]))}}),r)p(r.audioTracks[r.audioTrack]);else{var e,o=f();for(e in o)o.hasOwnProperty(e)&&o[e].enabled&&p(o[e])}}flowplayer.engine("hlsjs-lite").plugin(function(e){r=e.hls}),t.bind("ready",function(e,o){var t;jQuery(s).remove(),jQuery(l).remove(),r&&"application/x-mpegurl"==o.video.type&&(i=[],n=[],(t=r).levels.forEach(function(e){e=e.attrs.AUDIO;e&&i.indexOf(e)<0&&i.push(e),i.length&&(n=t.audioTracks.filter(function(e){return e.groupId===i[0]}))}),c())}),t.one("progress",function(){if("html5"==t.engine.engineName&&"application/x-mpegurl"==t.video.type){i=[],n=[];var e,o=f();for(e in o)o.hasOwnProperty(e)&&n.push({id:o[e].id,name:o[e].label});c()}})}),flowplayer(function(e,n){var r=-1,i=!1;e.on("error",function(e,o,t){var a;4==t.code&&"hlsjs"==o.engine.engineName&&(console.log("FV Player: HLSJS failed to play the video, switching to Flash HLS"),o.error=o.loading=!1,jQuery(n).removeClass("is-error"),jQuery(flowplayer.engines).each(function(e,o){"hlsjs"==flowplayer.engines[e].engineName&&(r=e,i=flowplayer.engines[e],delete flowplayer.engines[e])}),(a=(0<(t=void 0!==o.video.index?o.video.index:0)?o.conf.playlist[t]:o.conf.clip).sources).index=t,o.load({sources:a}),o.bind("unload error",function(){flowplayer.engines[r]=i}))})}),flowplayer(function(e,l){var s,o=e.conf.live_stream_reload||30,f=o,p=fv_flowplayer_translations.live_stream_retry;function c(e){e=Number(e);var o=Math.floor(e/86400),t=Math.floor(e%86400/3600),a=Math.floor(e%3600/60),e=Math.floor(e%60),n=fv_flowplayer_translations,o=0<o?(1==o?n.duration_1_day:n.duration_n_days).replace(/%s/,o):"";return o&&0<t&&(o+=", "),(o+=0<t?(1==t?n.duration_1_hour:n.duration_n_hours).replace(/%s/,t):"")&&0<a&&(o+=", "),(o+=0<a?(1==a?n.duration_1_minute:n.duration_n_minutes).replace(/%s/,a):"")&&0<e&&(o+=n.and),o+=0<e?(1==e?n.duration_1_second:n.duration_n_seconds).replace(/%s/,e):""}e.clearLiveStreamCountdown=function(){s&&(clearInterval(s),e.error=e.loading=!1,jQuery(l).removeClass("is-error"),jQuery(l).find(".fp-message.fp-shown").remove(),e.unload())},e.conf.flashls={manifestloadmaxretry:2},e.on("ready",function(){f=o,p=fv_flowplayer_translations.live_stream_retry}).on("progress",function(){f=10,p=fv_flowplayer_translations.live_stream_continue,clearInterval(s)}),e.on("error",function(e,r,i){setTimeout(function(){var e,o,t,a,n;(r.conf.clip.live||r.conf.live||i.video&&i.video.src&&i.video.src.match(/\/\/vimeo.com\/event\//))&&(e=f,r.conf.clip.streaming_time?e=r.conf.clip.streaming_time-Math.floor(Date.now()/1e3):r.conf.clip.live_starts_in&&(e=r.conf.clip.live_starts_in),o=fv_flowplayer_translations.live_stream_starting.replace(/%d/,c(e)),p=p.replace(/%d/,c(e)),t=r.conf.clip.live_starts_in?o:p,clearInterval(s),1!==i.code&&2!==i.code&&4!==i.code||(l.className+=" is-offline",flowplayer.support.flashVideo&&r.one("flashdisabled",function(){l.querySelector(".fp-flash-disabled").style.display="none"}),(a=l.querySelector(".fp-ui .fp-message")).innerHTML=t,n=300<e?300:e,s=setInterval(function(){--n,--e,a.innerHTML=t,0<n&&a?a.querySelector("span").innerHTML=c(e):(clearInterval(s),r.error&&(r.error=r.loading=!1,(a=l.querySelector(".fp-ui .fp-message"))&&l.querySelector(".fp-ui").removeChild(a),l.className=l.className.replace(/\bis-(error|offline)\b/g,""),r.load()))},1e3)))},1)})}),flowplayer(function(e,o){var t;o=jQuery(o),flowplayer.engine("hlsjs-lite").plugin(function(e){t=e.hls}),e.on("ready",function(e,o){t&&o.conf.playlist.length&&"hlsjs-lite"!=o.engine.engineName&&t.destroy()})}),flowplayer(function(t,a){var n,r,i,l,s;function f(){r&&n&&"html5"==t.engine.engineName&&(1<++l?3<l&&(console.log("FV Player: iOS video element needs a push, triggering 'stalled'"),n.trigger("stalled")):(console.log("FV Player: iOS video element will trigger error after 'stalled' arrives"),n.one("stalled",function(){var e,o=t.video.time;t.video.type.match(/video\//)?(console.log("FV Player: Running check of video file..."),(e=document.createElement("video")).src=t.video.src,e.onloadedmetadata=function(){l=0,console.log("FV Player: Video link works")},e.onerror=function(){console.log("FV Player: Video link issue!"),0<l&&t.trigger("error",[t,{code:4,video:t.video}])}):setTimeout(function(){console.log(t.video.time,o),t.video.time!=o?(l=0,console.log("FV Player: iOS video element continues playing, no need for error")):t.paused?(l=0,console.log("FV Player: iOS video element paused, no need for error")):t.trigger("error",[t,{code:4,video:t.video}])},5e3)})))}(flowplayer.support.browser.safari||flowplayer.support.iOS)&&(a=jQuery(a),i=r=n=!1,l=0,t.on("ready",function(e,o,t){l=0,r=!1,"html5"==o.engine.engineName&&t.src.match(/\?/)&&((n=a.find("video")).data("fv-ios-recovery")||(n.on("waiting",f),n.data("fv-ios-recovery",!0)),o.live&&t.src.match(/m3u8|stream_loader/)&&(console.log("FV Player: iOS video element is a live stream..."),clearInterval(i),i=setTimeout(function(){jQuery.get(t.src,function(e){e.match(/#EXT/)||(console.log("FV Player: iOS video element live stream does not look like a HLS file, triggering error..."),o.trigger("error",[o,{code:1,video:o.video}]))})},5e3)),o.one("progress",function(){r=!0,clearInterval(i)}))}),t.bind("beforeseek",f),s=0,t.on("ready",function(e,o){o.one("progress",function(e,o){s=o.video.duration,console.log("recorded_duration",s)})}),t.on("pause",function(e,o){var t=a.find("video");t.length&&parseInt(o.video.time)===parseInt(t[0].duration)&&s>o.video.time&&(console.log("suddenly the video is much shorter, why?",s,t[0].duration),o.video.duration=s,o.trigger("error",[o,{code:4,video:o.video}]))}))}),(e=>{var o,t,a=!1;"function"==typeof define&&define.amd&&(define(e),a=!0),"object"==("undefined"==typeof exports?"undefined":_typeof(exports))&&(module.exports=e(),a=!0),a||(o=window.Cookies,(t=window.Cookies=e()).noConflict=function(){return window.Cookies=o,t})})(function(){function v(){for(var e=0,o={};e<arguments.length;e++){var t,a=arguments[e];for(t in a)o[t]=a[t]}return o}return function e(u){function y(e,o,t){var a,n;if("undefined"!=typeof document){if(1<arguments.length){"number"==typeof(t=v({path:"/"},y.defaults,t)).expires&&((n=new Date).setMilliseconds(n.getMilliseconds()+864e5*t.expires),t.expires=n),t.expires=t.expires?t.expires.toUTCString():"";try{a=JSON.stringify(o),/^[\{\[]/.test(a)&&(o=a)}catch(e){}o=u.write?u.write(o,e):encodeURIComponent(o+"").replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),e=(e=(e=encodeURIComponent(e+"")).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent)).replace(/[\(\)]/g,escape);var r,i="";for(r in t)t[r]&&(i+="; "+r,!0!==t[r])&&(i+="="+t[r]);return document.cookie=e+"="+o+i}e||(a={});for(var l=document.cookie?document.cookie.split("; "):[],s=/(%[0-9A-Z]{2})+/g,f=0;f<l.length;f++){var p=l[f].split("="),c=p.slice(1).join("=");this.json||'"'!==c.charAt(0)||(c=c.slice(1,-1));try{var d=p[0].replace(s,decodeURIComponent),c=u.read?u.read(c,d):u(c,d)||c.replace(s,decodeURIComponent);if(this.json)try{c=JSON.parse(c)}catch(e){}if(e===d){a=c;break}e||(a[d]=c)}catch(e){}}return a}}return(y.set=y).get=function(e){return y.call(y,e)},y.getJSON=function(){return y.apply({json:!0},[].slice.call(arguments))},y.defaults={},y.remove=function(e,o){y(e,"",v(o,{expires:-1}))},y.withConverter=e,y}(function(){})}),flowplayer(function(e,o){o=jQuery(o),window.learndash_video_data&&"local"==learndash_video_data.videos_found_provider&&o.closest("[data-video-progression=true]").length&&(LearnDash_disable_assets(!0),LearnDash_watchPlayers(),e.on("finish",function(e,o,t){"string"!=typeof o.video.click&&((o=jQuery(".ld-video").data("video-cookie-key"))&&jQuery.cookie(o,JSON.stringify({video_state:"complete"})),window.LearnDash_disable_assets(!1))}))}),jQuery(fv_player_lightbox_bind),jQuery(document).ajaxComplete(fv_player_lightbox_bind),jQuery(function(){"undefined"!=typeof freedomplayer&&freedomplayer(function(e,o){var t,a,n=(o=jQuery(o)).closest(".fv_player_lightbox_hidden");e.is_in_lightbox=function(){return n.length},e.lightbox_visible=function(){return o.closest(".fancybox-slide--current").length},e.is_in_lightbox()&&(n.on("click",function(e){e.target==e.currentTarget&&jQuery.fancybox.close()}),freedomplayer.support.fullscreen?e.fullscreen=function(){jQuery.fancybox.getInstance().FullScreen.toggle()}:(a=!(t=".fancybox-caption, .fancybox-toolbar, .fancybox-infobar, .fancybox-navigation"),e.on("fullscreen",function(){jQuery(t).hide(),a=jQuery(".fancybox-container").hasClass("fancybox-show-thumbs"),jQuery(".fancybox-container").removeClass("fancybox-show-thumbs")}).on("fullscreen-exit",function(){jQuery(t).show(),a&&jQuery(".fancybox-container").addClass("fancybox-show-thumbs")})))})}),flowplayer(function(e,o){e.bind("load",function(e,o,t){var a,n=jQuery(e.currentTarget);n.data("live")&&(a=setTimeout(function(){n.find(".fp-ui").append('<div class="fp-message">'+fv_flowplayer_translations.live_stream_failed+"</div>"),n.addClass("is-error")},1e4),jQuery(e.currentTarget).data("live_check",a))}).bind("ready",function(e,o,t){clearInterval(jQuery(e.currentTarget).data("live_check"))}).bind("error",function(e,o,t){e=jQuery(e.currentTarget);e.data("live")&&e.find(".fp-message").html(fv_flowplayer_translations.live_stream_failed_2)})}),"undefined"!=typeof flowplayer&&flowplayer(function(e,a){var n,r,i,l,s,o=(a=jQuery(a)).closest(".ld-video");o.length&&"boolean"==typeof o.data("video-progression")&&0==o.data("video-progression")||a.data("lms_teaching")&&(s=[],e.on("ready",function(e,o,t){n=void 0===o.video.saw,l=o.video.index||0,r=o.video.position||0,i=o.video.top_position||0,void 0===s[l]&&(i?s[l]=i:r?s[l]=r:o.video.fv_start?s[l]=o.video.fv_start:s[l]=0)}),e.on("progress",function(e,o,t){s[l]<t&&(s[l]=t)}),e.on("beforeseek",function(e,o,t){n&&(t<=r||t<=s[l]?console.log("FV Player lms: allow seek to",t):(o.trigger("fv-lms-teaching-be-gone"),e.preventDefault(),e.stopPropagation(),fv_player_notice(a,"<p>"+fv_flowplayer_translations.msg_no_skipping+"<br />"+fv_flowplayer_translations.msg_watch_video+"</p>","fv-lms-teaching-be-gone").addClass("fv-player-lms-teaching"),setTimeout(function(){o.trigger("fv-lms-teaching-be-gone")},2e3),o.seek(s[l])))}))}),(a=>{flowplayer(function(e,t){jQuery(t).hasClass("is-cva")||a(document).on("submit","#"+jQuery(t).attr("id")+" .mailchimp-form",function(e){e.preventDefault(),a(".mailchimp-response",t).remove(),a("input[type=submit]",t).attr("disabled","disabled").addClass("fv-form-loading");var o={action:"fv_wp_flowplayer_email_signup",nonce:fv_player.email_signup_nonce};a("[name]",this).each(function(){o[this.name]=a(this).val()}),a.post(fv_player.ajaxurl,o,function(e){e=JSON.parse(e),a('<div class="mailchimp-response"></div>').insertAfter(".mailchimp-form",t),e.text.match(/already subscribed/)&&(e.status="ERROR"),"OK"===e.status?(a(".mailchimp-form input[type=text],.mailchimp-form input[type=email]",t).val(""),a(".mailchimp-response",t).removeClass("is-fv-error").html(e.text),setTimeout(function(){a(".wpfp_custom_popup",t).fadeOut()},2e3)):a(".mailchimp-response",t).addClass("is-fv-error").html(e.text),a("input[type=submit]",t).removeAttr("disabled").removeClass("fv-form-loading")})})})})(jQuery),"undefined"!=typeof fv_flowplayer_mobile_switch_array)for(var fv_flowplayer_mobile_switch_i in fv_flowplayer_mobile_switch_array)fv_flowplayer_mobile_switch_array.hasOwnProperty(fv_flowplayer_mobile_switch_i)&&fv_flowplayer_mobile_switch(fv_flowplayer_mobile_switch_i);function fv_flowplayer_browser_chrome_fail(a,n,r,i){jQuery("#wpfp_"+a).bind("error",function(e,o,t){!/chrom(e|ium)/.test(navigator.userAgent.toLowerCase())||null==t||3!=t.code&&4!=t.code&&5!=t.code||(o.unload(),jQuery("#wpfp_"+a).attr("id","bad_wpfp_"+a),jQuery("#bad_wpfp_"+a).after('<div id="wpfp_'+a+'" '+n+' data-engine="flash"></div>'),jQuery("#wpfp_"+a).flowplayer({playlist:[[{mp4:r}]]}),i?jQuery("#wpfp_"+a).bind("ready",function(e,o){o.play()}):jQuery("#wpfp_"+a).flowplayer().play(0),jQuery("#bad_wpfp_"+a).remove())})}if(freedomplayer(function(a,e){var n=(e=jQuery(e)).data("freedomplayer-instance-id");flowplayer.audible_instance=-1,a.one("load",function(){setTimeout(function(){a.conf.splash=!1},0)}),a.on("ready",function(){var t=0==e.data("volume");t||(flowplayer.audible_instance=n),jQuery(".freedomplayer[data-freedomplayer-instance-id]").each(function(){var e=jQuery(this).data("flowplayer"),o=jQuery(this).data("freedomplayer-instance-id");-1!=flowplayer.audible_instance&&o!=flowplayer.audible_instance&&o!=n&&e&&(e.ready?a.conf.multiple_playback?t||e.mute(!0,!0):e.playing&&(e.pause(),e.sticky(!1)):(e.clearLiveStreamCountdown(),e.unload()))})}).on("mute",function(e,o,t){t||flowplayer.audible_instance==n||(flowplayer(flowplayer.audible_instance).mute(!0,!0),flowplayer.audible_instance=n)}).on("resume",function(){a.muted||(flowplayer.audible_instance=n),a.conf.multiple_playback||jQuery(".flowplayer[data-freedomplayer-instance-id]").each(function(){var e;n!=jQuery(this).data("freedomplayer-instance-id")&&(e=jQuery(this).data("flowplayer"))&&e.playing&&(e.pause(),e.sticky(!1))})})}),"undefined"!=typeof fv_flowplayer_browser_chrome_fail_array)for(var fv_flowplayer_browser_chrome_fail_i in fv_flowplayer_browser_chrome_fail_array)fv_flowplayer_browser_chrome_fail_array.hasOwnProperty(fv_flowplayer_browser_chrome_fail_i)&&fv_flowplayer_browser_chrome_fail(fv_flowplayer_browser_chrome_fail_i,fv_flowplayer_browser_chrome_fail_array[fv_flowplayer_browser_chrome_fail_i].attrs,fv_flowplayer_browser_chrome_fail_array[fv_flowplayer_browser_chrome_fail_i].mp4,fv_flowplayer_browser_chrome_fail_array[fv_flowplayer_browser_chrome_fail_i].auto_buffer);function fv_flowplayer_browser_ie(e){(flowplayer.support.browser&&flowplayer.support.browser.msie&&9<=parseInt(flowplayer.support.browser.version,10)||navigator.userAgent.match(/Trident.*rv[ :]*11\./))&&jQuery("#wpfp_"+e).attr("data-engine","flash")}if("undefined"!=typeof fv_flowplayer_browser_ie_array)for(var fv_flowplayer_browser_ie_i in fv_flowplayer_browser_ie_array)fv_flowplayer_browser_ie_array.hasOwnProperty(fv_flowplayer_browser_ie_i)&&fv_flowplayer_browser_ie(fv_flowplayer_browser_ie_i);function fv_flowplayer_browser_chrome_mp4(e){var o=window.navigator.appVersion.match(/Chrome\/(\d+)\./);null!=o&&(o=parseInt(o[1],10),/chrom(e|ium)/.test(navigator.userAgent.toLowerCase())&&o<28&&-1!=navigator.appVersion.indexOf("Win")||/chrom(e|ium)/.test(navigator.userAgent.toLowerCase())&&o<27&&-1!=navigator.appVersion.indexOf("Linux")&&-1==navigator.userAgent.toLowerCase().indexOf("android"))&&jQuery("#wpfp_"+e).attr("data-engine","flash")}function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}-1==navigator.platform.indexOf("iPhone")&&-1==navigator.platform.indexOf("iPod")&&-1==navigator.platform.indexOf("iPad")&&-1==navigator.userAgent.toLowerCase().indexOf("android")||flowplayer(function(e,o){e.bind("error",function(e,o,t){10==t.code&&jQuery(e.target).find(".fp-message").html(fv_flowplayer_translations.unsupported_format)})}),jQuery(document).ready(function(){-1==navigator.platform.indexOf("iPhone")&&-1==navigator.platform.indexOf("iPod")&&-1==navigator.platform.indexOf("iPad")||jQuery(window).trigger("load"),jQuery(".flowplayer").on("mouseleave",function(){jQuery(this).find(".fvp-share-bar").removeClass("visible"),jQuery(this).find(".embed-code").hide()})}),flowplayer(function(a,n){var r=(n=jQuery(n)).attr("id"),i=!1;function l(){var o,t,e=n.attr("data-overlay");if(void 0!==e&&e.length){try{e=JSON.parse(e)}catch(e){return}!i&&!n.hasClass("is-cva")&&n.width()>=parseInt(e.width)&&(e=(e=e.html).replace("%random%",Math.random()),i=jQuery('<div id="'+r+'_ad" class="wpfp_custom_ad">'+e+"</div>"),n.find(".fp-player").append(i),i.find(".fv_fp_close").on("click touchend",function(){i.fadeOut();var e=i.find("video");return e.length&&e[0].pause(),!1}),o=0,t=setInterval(function(){var e=i&&i.find(".adsbygoogle").height();(200<++o||0<e)&&clearInterval(t),e>n.height()&&i.addClass("tall-overlay")},50),setTimeout(function(){n.find(".wpfp_custom_ad video").length&&a.pause()},500))}}function t(e){var o=a.get_popup();o&&("finish"==e||o.pause&&a.ready&&a.paused||o.html.match(/fv-player-ppv-purchase-btn-wrapper/))&&0==n.find(".wpfp_custom_popup").length&&(n.addClass("is-popup-showing"),n.addClass("is-mouseover"),n.find(".fp-player").append('<div id="'+r+'_custom_popup" class="wpfp_custom_popup">'+o.html+"</div>"))}n.data("end_popup_preview")&&jQuery(document).ready(function(){a.trigger("finish",[a])}),a.get_popup=function(){var e=n.attr("data-popup");if(void 0!==e&&e.length){try{e=JSON.parse(e)}catch(e){return!1}return e}},a.bind("ready",function(){1==i.length&&(i.remove(),i=!1),n.data("overlay_show_after")||l()}).bind("progress",function(e,o,t){t>n.data("overlay_show_after")&&l()}).bind("finish",function(e,o){void 0!==o.video.index&&o.video.index+1!=o.conf.playlist.length||t(e.type)}).bind("pause",function(e){if(void 0!==a.video.click)return!1;setTimeout(function(){t(e.type)},5)}).bind("resume unload seek",function(){n.hasClass("is-popup-showing")&&(n.find(".wpfp_custom_popup").remove(),n.removeClass("is-popup-showing"))})}),jQuery(document).on("focus",".fv_player_popup input[type=text], .fv_player_popup input[type=email], .fv_player_popup textarea",function(){var e=jQuery(this).parents(".flowplayer").data("flowplayer");e&&e.disable(!0)}),jQuery(document).on("blur",".fv_player_popup input[type=text], .fv_player_popup input[type=email], .fv_player_popup textarea",function(){var e=jQuery(this).parents(".flowplayer").data("flowplayer");e&&e.disable(!1)}),"undefined"!=typeof flowplayer&&flowplayer(function(e,a){a=jQuery(a);var n,r=!1,o=(flowplayer.engine("hlsjs-lite").plugin(function(e){n=e.hls}),e.conf.playlist.length?e.conf.playlist:[e.conf.clip]);function i(e){l();var o="Video is being processed",t="Please return later to see the actual video in this player.";e.pending_encoding_error?(o="Video unavailable",t="There was an error in the video encoding."):e.pending_encoding_progress&&(t+="<br /><br />("+e.pending_encoding_progress+" done)"),r=jQuery('<div class="fv-player-encoder-video-processing-modal"><div><h2>'+o+"</h2><p>"+t+"</p></div></div"),a.append(r)}function l(){r&&r.remove()}o[0]&&o[0].pending_encoding&&i(o[0]),e.on("load",function(e,o,t){if(t.pending_encoding)return i(t),n&&n.destroy(),!1;l()})}),Date.now||(Date.now=function(){return(new Date).getTime()}),(()=>{if("undefined"!=typeof fv_player_editor_conf)fv_player_log('FV Player: Editor detected, disabling "Remember video position"');else{var j=null,b=2500,t=null,Q="video_positions",k="player_playlist_item",x="video_positions_tmp",C="video_top_positions_tmp",S="player_playlist_item_tmp",P="video_saw_tmp",I="video_ab_loop_tmp",O=[],F=[],T=[],L=[],A=[],E=function(e){var o=JSON.stringify(e),t=N(o);if(b<t)while(b<t)for(var a in e)if(e.hasOwnProperty(a)){delete e[a],o=JSON.stringify(e),t=N(o);break}return o},V=function(e){var o;return e.id||(o=(void 0!==e.sources_original&&void 0!==e.sources_original[0]?e.sources_original:e.sources)[0].src,void 0!==e.sources_original&&void 0!==e.sources_original[0]?o:a(o))},N=function(e){return encodeURIComponent(e).length},z=function(e){return t?localStorage.getItem(e):Cookies.get(e)},q=function(e,o){return t?localStorage.setItem(e,o):Cookies.set(e,o)},B=function(e){t?localStorage.removeItem(e):Cookies.remove(e)},D=function(e,o){o.video.sources&&(o=V(o.video),F[o]=0,T[o]=0,A[o]=1)},a=function(e){return e.replace(/(X-Amz-Algorithm=[^&]+&?)/gm,"").replace(/(X-Amz-Credential=[^&]+&?)/gm,"").replace(/(X-Amz-Date=[^&]+&?)/gm,"").replace(/(X-Amz-Expires=[^&]+&?)/gm,"").replace(/(X-Amz-SignedHeaders=[^&]+&?)/gm,"").replace(/(X-Amz-Signature=[^&]+&?)/gm,"")},R=function(e,o){var t,a,n,r="sendBeacon"in navigator,i=(!0!==e&&(e=!1),o&&void 0!==o||(o=function(){}),[]),l=[];for(t in F)F.hasOwnProperty(t)&&(a={name:t,position:F[t],top_position:T[t],saw:void 0!==A[t]&&A[t]},O.hasOwnProperty(t)&&(a.ab_start=O[t][0],a.ab_end=O[t][1]),i.push(a));for(n in L)L.hasOwnProperty(n)&&l.push({player:n,item:L[n]});if(l.length||B(S),i.length){if("1"==flowplayer.conf.is_logged_in){if(r){try{var s,f={},p={},c={},d={},u={};for(w in i)i.hasOwnProperty(w)&&(f[s=i[w].name]=i[w].position,p[s]=i[w].top_position,c[s]=i[w].saw,void 0!==i[w].ab_start)&&void 0!==i[w].ab_end&&(u[s]=[i[w].ab_start,i[w].ab_end]);for(w in l)l.hasOwnProperty(w)&&(d[l[w].player]=l[w].item);q(x,E(f)),q(C,E(p)),q(P,E(c)),q(S,E(d)),q(I,E(u))}catch(e){return}r=new FormData;return r.append("action","fv_wp_flowplayer_video_position_save"),r.append("nonce",fv_player.video_position_save_nonce),r.append("videoTimes",encodeURIComponent(JSON.stringify(i))),r.append("playlistItems",encodeURIComponent(JSON.stringify(l))),navigator.sendBeacon(fv_player.ajaxurl,r),!1}return jQuery.ajax({type:"POST",async:e,url:fv_player.ajaxurl,complete:o,data:{action:"fv_wp_flowplayer_video_position_save",nonce:fv_player.video_position_save_nonce,videoTimes:i,playlistItems:l}})}try{var y=z(Q),v=z(k),y=y&&void 0!==y?JSON.parse(y):{},v=v&&void 0!==v?JSON.parse(v):{};for(w in i)i.hasOwnProperty(w)&&(y[i[w].name]=i[w].position);for(w in l)l.hasOwnProperty(w)&&(v[l[w].player]=l[w].item);var _=JSON.stringify(y),h=JSON.stringify(v),g=N(_),m=N(h);if(b<g)while(b<g)for(var w in y)if(y.hasOwnProperty(w)){delete y[w],_=JSON.stringify(y),g=N(_);break}if(b<m)while(b<m)for(var w in y)if(v.hasOwnProperty(w)){delete v[w],h=JSON.stringify(v),m=N(_);break}q(Q,_),q(k,h)}catch(e){return}return!1}B(I),B(x),B(C),B(P)};if(flowplayer(function(a,e){if(void 0===a.conf.disable_localstorage||"1"==flowplayer.conf.is_logged_in){var r=jQuery(e),o=flowplayer.conf.video_position_save_enable&&0!=r.data("save-position")||r.data("save-position")||r.data("lms_teaching"),i=0,l=!!r.data("player-id")&&r.data("player-id"),n=!1,s=function(){return!(a.live||a.video&&"string"==typeof a.video.click)},t=function(e,o){s()&&!o.video.prevent_position_restore&&(o=(e=>{var o=V(e.video),t=e.video.position;if("1"!=flowplayer.conf.is_logged_in){var a=z(Q);if(a&&void 0!==a)try{(a=JSON.parse(a))[o]&&(t=a[o])}catch(e){return}}return e.get_custom_end&&e.get_custom_end()<t&&(t=!1),t=e.get_custom_start&&0<e.get_custom_start()&&t<e.get_custom_start()?!1:t})(o))&&p(o)},f=function(e,o){var t,a,n;s()&&o.video.sources&&(t=V(o.video),a=Math.round(o.video.time),F[t]=a,void 0!==o.fv_noUiSlider&&r.find(".fv-player-ab.is-active").length&&(O[t]=o.fv_noUiSlider.get()),void 0===T[t]?(n=0,n=o.conf.playlist?o.conf.playlist[o.video.index]&&o.conf.playlist[o.video.index].sources[0]&&o.conf.playlist[o.video.index].sources[0].top_position?o.conf.playlist[o.video.index].sources[0].top_position:0:o.conf.clip.sources[0]&&o.conf.clip.sources[0].top_position?o.conf.clip.sources[0].top_position:0,T[t]=n):T[t]<a&&(T[t]=a),0<o.conf.playlist.length&&l&&(L[l]=o.video.index),60<=i++)&&flowplayer.conf.closingPage&&(j&&j.abort(),j=R(!0,function(){j=null}),i=0)},p=function(e){var o,t;a.custom_seek?a.custom_seek(e):(o=0,t=setInterval(function(){20<++o&&clearInterval(t),a.loading||(a.seek(parseInt(e)),clearInterval(t))},10))},c=function(e,o){var t=z(e),a=!1;if(t&&void 0!==t)try{if(void 0!==(t=JSON.parse(t))[o]){a=t[o],delete t[o];var n,r=!1;for(n in t)if(t.hasOwnProperty(n)){r=!0;break}r?q(e,JSON.stringify(t)):B(e)}return a}catch(e){}},d=function(e,o){if(void 0!==o&&0!=o.conf.playlist.length&&!o.conf.prevent_position_restore){var t=-1;if(l)if("1"!=flowplayer.conf.is_logged_in){var a=z(k);if(a&&void 0!==a)try{(a=JSON.parse(a))[l]&&(t=a[l])}catch(e){return}}else"1"==flowplayer.conf.is_logged_in&&(t=0<o.conf.playlist.length&&c(S,l));0<=t&&!n&&(o.video&&"video/youtube"!=o.video.type&&o.play(t),n=!0,r.data("position_changed",1))}};if(o){if(z(S)&&r.removeData("playlist_start"),a.bind("finish",D),a.on("ready",function(){a.conf.poster?a.one("resume",function(){a.one("progress",t)}):a.one("progress",t)}),a.bind("progress",f),a.bind("unload",function(){n=!1,a.one(a.conf.poster?"resume":"ready",d)}),a.one(a.conf.poster?"resume":"ready",d),jQuery(".fp-ui",e).on("click",function(){d()}),a.playlist_thumbnail_progress=function(e,o,t){a.get_custom_start&&0<a.get_custom_start(o)&&(t-=a.get_custom_start(o))<0&&(t=0);o=o.duration;(o=(o=a.get_custom_duration&&0<a.get_custom_duration()?a.get_custom_duration():o)||e.data("duration"))&&e.css("width",100*t/o+"%")},"1"==flowplayer.conf.is_logged_in){var u,y,v,_,h,g,m=0<a.conf.playlist.length,w=m?a.conf.playlist:[a.conf.clip],b=jQuery("[rel="+jQuery(e).attr("id")+"]");for(u in w)w.hasOwnProperty(u)&&(h=V(w[u]),y=c(x,h),v=c(C,h),_=c(P,h),h=c(I,h),y&&(m?(a.conf.playlist[u].sources[0].position=y,(g=jQuery("a",b).eq(u).find(".fvp-progress")).length&&a.playlist_thumbnail_progress(g,a.conf.playlist[u],y)):a.conf.clip.sources[0].position=y),v&&(!w[u].sources[0].top_position||w[u].sources[0].top_position<v)&&(m?a.conf.playlist[u].sources[0].top_position=v:a.conf.clip.sources[0].top_position=v),_&&(m?a.conf.playlist[u].sources[0].saw=!0:a.conf.clip.sources[0].saw=!0),h)&&(m?(a.conf.playlist[u].sources[0].ab_start=h[0],a.conf.playlist[u].sources[0].ab_end=h[1]):(a.conf.clip.sources[0].ab_start=h[0],a.conf.clip.sources[0].ab_end=h[1]))}a.bind("finish",function(e,o){o.conf.playlist.length?o.conf.playlist[o.video.index].sources[0].saw=!0:o.conf.clip.sources[0].saw=!0})}}}),jQuery(window).on("beforeunload pagehide",function(){flowplayer.conf.closingPage||(flowplayer.conf.closingPage=!0,R())}),null===(t=void 0!==fv_flowplayer_conf.disable_localstorage?!1:t)){t=!0;try{localStorage.setItem("t","t"),"t"!==localStorage.getItem("t")&&(t=!1),localStorage.removeItem("t")}catch(e){t=!1}}}})(jQuery),flowplayer(function(t,o){var a,r,i,l,n,s,f;function e(e){e.preventDefault(),e.stopPropagation(),l.hasClass("fp-active")?t.hideMenu(l[0]):(o.trigger("click"),t.showMenu(l[0]))}function p(e){e=e.clone();return e.find("i.dur").remove(),e.text()}o=jQuery(o),(t.have_visible_playlist||0!=t.conf.playlist.length)&&t.have_visible_playlist()&&(a=jQuery(".fp-playlist-external[rel="+o.attr("id")+"]"),r=jQuery('<strong class="fv-fp-list">Item 1.</strong>'),i=jQuery('<strong class="fv-fp-list-name">Item 1.</strong>'),l=jQuery('<div class="fp-menu fv-fp-list-menu"></div>').insertAfter(o.find(".fp-controls")),n=0,s=[],f=[],jQuery(t.conf.playlist).each(function(e,o){void 0===o.click&&(o=p(a.find("h4").eq(n)),l.append('<a data-index="'+e+'">'+(n+1)+". "+o+"</a>"),f[e]=o,s.push(e),n++)}),r.insertAfter(o.find(".fp-controls .fp-volume")).on("click",e),i.insertAfter(r).on("click",e),jQuery("a",l).on("click",function(){var e=jQuery(this).data("index"),o=e-1;void 0!==t.conf.playlist[o]&&void 0!==t.conf.playlist[o].click?t.play(o):t.play(e)}),t.on("ready",function(e,o,t){l.find("a").removeClass("fp-selected");var a=l.find("a[data-index="+t.index+"]"),n=(a.addClass("fp-selected"),fv_flowplayer_translations.playlist_item_no);n=(n=n.replace(/%d/,s.indexOf(t.index)+1)).replace(/%s/,p(a.find("h4"))),r.html(n),i.html(s.indexOf(t.index)+1+". "+f[t.index])}))}),flowplayer(function(e,a){a=jQuery(a);var n,r=e.conf.playlist,i=[];e.bind("load",function(e,o,t){n=t.index}),e.bind("error",function(e,o,t){setTimeout(function(){if(0<r.length&&1==o.error)return-1<i.indexOf(n)?(console.log("FV Player: Playlist item failure, already tried to play this item, not auto-advancing"),!1):(n=o.video.index,i.push(n),"1"==o.conf.video_checker&&r[n].video_checker&&0<r[n].video_checker.length?(console.log("FV Player: Video checker message present, stopping auto-advance to next playlist item"),!1):(o.error=o.loading=!1,a.removeClass("is-error"),a.find(".fp-message.fp-shown").remove(),++n>r.length-1&&(n=0),console.log("FV Player: Playlist item failure, auto-advancing to "+(n+1)+". item"),void o.play(n)))},1e3)})}),flowplayer(function(o,a){a=jQuery(a);var n,r,t,i,l,s=!1,f=!1,p=!1;function c(t){return t=[],jQuery(o.conf.playlist).each(function(e,o){t.push(e)}),t=(e=>{for(var o,t,a=e.length;a;a--)o=Math.floor(Math.random()*a),t=e[a-1],e[a-1]=e[o],e[o]=t;return e})(t),console.log("FV Player Randomizer random seed:",t),t}(a.data("button-no_picture")||a.data("button-repeat")||a.data("button-rewind")||o.conf.skin_preview)&&(l=!o.have_visible_playlist&&0<o.conf.playlist.length||o.have_visible_playlist(),o.bind("ready",function(e,o){var t;void 0===r&&void 0===n&&(r=o.next,n=o.prev),o.video&&o.video.type&&!o.video.type.match(/^audio/)&&a.data("button-no_picture")&&!f&&(f=!0,o.createNoPictureButton()),a.data("button-repeat")&&(l&&!p?(p=!0,o.createRepeatButton(),o.conf.playlist_shuffle=o.conf.track_repeat=!1,s=c(),o.conf.loop&&jQuery("a[data-action=repeat_playlist]",i).trigger("click")):0!=a.find(".fv-fp-track-repeat").length||l||((t=jQuery('<strong class="fv-fp-track-repeat"><svg viewBox="0 0 80.333 71" width="18px" height="18px" class="fvp-icon fvp-replay-track"><use xlink:href="#fvp-replay-track"></use></svg></strong>')).insertAfter(a.find(".fp-controls .fp-volume")).on("click",function(e){e.preventDefault(),e.stopPropagation(),o.video.loop?o.video.loop=!1:o.video.loop=!0,jQuery(this).toggleClass("is-active fp-color-fill",o.video.loop)}),o.conf.loop&&t.addClass("is-active fp-color-fill"),o.on("finish",function(e,o){o.video.loop&&(console.log("playlist-repeat.module",o.video.loop),o.resume())}))),a.data("button-rewind")&&!freedomplayer.support.touch&&o.createRewindForwardButtons()}).bind("progress",function(){a.data("button-repeat")&&(o.video.loop=o.conf.track_repeat)}).bind("finish.pl",function(e,o){a.data("button-repeat")&&l&&(console.log("playlist_repeat",o.conf.loop,"advance",o.conf.advance,"video.loop",o.video.loop),o.conf.playlist_shuffle)&&(o.play(s.pop()),0==s.length)&&(s=c())}).bind("unload",function(){a.find(".fv-fp-no-picture").remove(),a.find(".fv-fp-playlist").remove(),a.find(".fv-fp-track-repeat").remove()}),o.createNoPictureButton=function(){0<a.find(".fv-fp-no-picture").length||jQuery('<span class="fv-fp-no-picture"><svg viewBox="0 0 90 80" width="18px" height="18px" class="fvp-icon fvp-nopicture"><use xlink:href="#fvp-nopicture"></use></svg></span>').insertAfter(a.find(".fp-controls .fp-volume")).on("click",function(e){e.preventDefault(),e.stopPropagation(),jQuery(".fp-engine",a).slideToggle(20),jQuery(this).toggleClass("is-active fp-color-fill"),a.toggleClass("is-no-picture")})},o.createRepeatButton=function(){var e;0<a.find(".fv-fp-playlist").length||(e=fv_flowplayer_translations,(t=jQuery('<strong class="fv-fp-playlist mode-normal">      <svg viewBox="0 0 80.333 80" width="18px" height="18px" class="fvp-icon fvp-replay-list"><title>'+e.playlist_replay_all+'</title><use xlink:href="#fvp-replay-list"></use></svg>      <svg viewBox="0 0 80.333 71" width="18px" height="18px" class="fvp-icon fvp-shuffle"><title>'+e.playlist_shuffle+'</title><use xlink:href="#fvp-shuffle"></use></svg>      <svg viewBox="0 0 80.333 71" width="18px" height="18px" class="fvp-icon fvp-replay-track"><title>'+e.playlist_replay_video+'</title><use xlink:href="#fvp-replay-track"></use></svg>      <span id="fvp-playlist-play" title="'+e.playlist_play_all+'">'+e.playlist_play_all_button+"</span>      </strong>")).insertAfter(a.find(".fp-controls .fp-volume")).on("click",function(e){e.preventDefault(),e.stopPropagation(),"auto"!==i.css("right")&&i.css({right:"auto",left:t.position().left+"px"}),i.hasClass("fp-active")?o.hideMenu(i[0]):(a.trigger("click"),o.showMenu(i[0]))}),i=jQuery('<div class="fp-menu fv-fp-playlist-menu">        <a data-action="repeat_playlist"><svg viewBox="0 0 80.333 80" width="18px" height="18px" class="fvp-icon fvp-replay-list"><title>'+e.playlist_replay_all+'</title><use xlink:href="#fvp-replay-list"></use></svg> <span class="screen-reader-text">'+e.playlist_replay_all+'</span></a>        <a data-action="shuffle_playlist"><svg viewBox="0 0 80.333 71" width="18px" height="18px" class="fvp-icon fvp-shuffle"><title>'+e.playlist_shuffle+'</title><use xlink:href="#fvp-shuffle"></use></svg> <span class="screen-reader-text">'+e.playlist_shuffle+'</span></a>        <a data-action="repeat_track"><svg viewBox="0 0 80.333 71" width="18px" height="18px" class="fvp-icon fvp-replay-track"><title>'+e.playlist_replay_video+'</title><use xlink:href="#fvp-replay-track"></use></svg> <span class="screen-reader-text">'+e.playlist_replay_video+'</span></a>        <a class="fp-selected" data-action="normal"><span id="fvp-playlist-play" title="'+e.playlist_play_all+'">'+e.playlist_play_all_button+"</span></a>        </div>").insertAfter(a.find(".fp-controls")),jQuery("a",i).on("click",function(){jQuery(this).siblings("a").removeClass("fp-selected"),jQuery(this).addClass("fp-selected"),t.removeClass("mode-normal mode-repeat-track mode-repeat-playlist mode-shuffle-playlist");var e=jQuery(this).data("action");"repeat_playlist"==e?(t.addClass("mode-repeat-playlist"),o.conf.loop=!0,o.conf.advance=!0,o.video.loop=o.conf.track_repeat=!1,o.conf.playlist_shuffle=!1):"shuffle_playlist"==e?(s=s||c(),t.addClass("mode-shuffle-playlist"),o.conf.loop=!0,o.conf.advance=!0,o.conf.playlist_shuffle=!0):"repeat_track"==e?(t.addClass("mode-repeat-track"),o.conf.track_repeat=o.video.loop=!0,o.conf.loop=o.conf.playlist_shuffle=!1):"normal"==e&&(t.addClass("mode-normal"),o.conf.track_repeat=o.video.loop=!1,o.conf.loop=o.conf.playlist_shuffle=!1),o.conf.playlist_shuffle?(o.next=function(){o.play(s.pop()),0==s.length&&(s=c())},o.prev=function(){o.play(s.shift()),0==s.length&&(s=c())}):(o.next=r,o.prev=n)}))},o.createRewindForwardButtons=function(){var e;0==a.find(".fv-fp-rewind").length&&((e=jQuery('<span class="fv-fp-rewind"><svg viewBox="0 0 24 24" width="21px" height="21px" class="fvp-icon fvp-rewind"><use xlink:href="#fvp-rewind"></use></svg></span>')).insertBefore(a.find(".fp-controls .fp-playbtn")).on("click",function(e){e.preventDefault(),e.stopPropagation(),o.seek(o.video.time-10)}),e.toggle(!o.video.live||o.video.dvr)),0==a.find(".fv-fp-forward").length&&((e=jQuery('<span class="fv-fp-forward"><svg viewBox="0 0 24 24" width="21px" height="21px" class="fvp-icon fvp-forward"><use xlink:href="#fvp-forward"></use></svg></span>')).insertAfter(a.find(".fp-controls .fp-playbtn")).on("click",function(e){e.preventDefault(),e.stopPropagation(),o.seek(o.video.time+10)}),e.toggle(!o.video.live||o.video.dvr))},o.conf.skin_preview)&&(a.data("button-no_picture")&&setTimeout(function(){o.createNoPictureButton()},0),a.data("button-repeat")&&setTimeout(function(){o.createRepeatButton()},0),a.data("button-rewind"))&&setTimeout(function(){o.createRewindForwardButtons()},0)}),freedomplayer(function(e,o){var t,a,n,r,i=freedomplayer.bean,l=freedomplayer.common,o=o.getAttribute("id"),o=l.find('[rel="'+o+'"]'),s=!1,f=!1;function p(){s=!1,r.classList.remove("active"),setTimeout(function(){r.classList.remove("is-dragging")}),d()}function c(t){var e=Math.floor(r.clientWidth/r.children[0].clientWidth),o=r.children[0].clientWidth+20;n=t?r.scrollLeft+e*o:r.scrollLeft-e*o,t&&n>r.scrollWidth-r.clientWidth?n=r.scrollWidth-r.clientWidth:!t&&n<0&&(n=0),window.requestAnimationFrame(function e(){var o=t?30:-30;Math.abs(n-r.scrollLeft)<20&&(o=n-r.scrollLeft);r.scrollTo({top:0,left:r.scrollLeft+o});n==r.scrollLeft?d():window.requestAnimationFrame(e)})}function d(){r.classList.remove("leftmost","rightmost"),0===r.scrollLeft?r.classList.add("leftmost"):r.scrollLeft===r.scrollWidth-r.clientWidth&&r.classList.add("rightmost")}o[0]&&(r=l.find(".fv-playlist-draggable",o),l=l.find(".fv-playlist-left-arrow, .fv-playlist-right-arrow",o),r[0])&&l[0]&&l[1]&&(r=r[0],d(),i.on(r,"scroll",d),i.on(r,"mousedown",function(e){e.preventDefault(),s=!0,r.classList.add("active"),a=r.scrollLeft,t=e.pageX-r.offsetLeft}),i.on(r,"mouseup",p),r.onmouseleave=function(){f=!1,p()},i.on(r,"mousemove",function(e){f=!0,s&&(e.preventDefault(),e=e.pageX-r.offsetLeft-t,5<Math.abs(e)&&r.classList.add("is-dragging"),r.scrollLeft=a-e)}),l[0].onclick=function(){c(!1)},l[1].onclick=function(){c(!0)},i.on(document,"keydown",function(e){f&&(39===(e=e.keyCode)&&c(!0),37===e)&&c(!1)}))}),flowplayer(function(e,o){var t=jQuery(o),a=t.data("playlist_start");function n(){1!==t.data("position_changed")&&e.conf.playlist.length&&(a--,void 0===e.conf.playlist[a].click&&(e.engine&&"hlsjs-lite"==e.engine.engineName&&(e.loading=!1),e.play(a)),t.data("position_changed",1))}void 0!==a&&(e.bind("unload",function(){a=t.data("playlist_start"),t.removeData("position_changed"),e.one(e.conf.poster?"resume":"ready",n)}),e.one(e.conf.poster?"resume":"ready",n),jQuery(".fp-ui",o).on("click",function(){n(),t.data("position_changed",1)}))}),document.addEventListener("custombox:overlay:close",function(e){console.log("FV Player: Custombox/Popup anything ligtbox closed");var o=jQuery(this).find(".flowplayer");0!=o.length&&(console.log("FV Player: Custombox/Popup anything ligtbox contains a player"),o.each(function(e,o){var t=jQuery(o).data("flowplayer");void 0!==t&&(t.playing?(console.log("FV Player: Custombox/Popup anything ligtbox video pause"),t.pause()):t.loading&&t.one("ready",function(){console.log("FV Player: Custombox/Popup anything ligtbox video unload"),t.unload()}))}))}),"undefined"!=typeof flowplayer&&(freedomplayer.preload_count=0,freedomplayer.preload_limit=3,freedomplayer(function(e,o){o=jQuery(o);var t,a=!1,n=jQuery(o).data("playlist_start"),n=n?n-1:0;for(t in e.conf.clip&&(a=e.conf.clip.sources),a=e.conf.playlist[n]&&e.conf.playlist[n].sources?e.conf.playlist[n].sources:a){if("video/youtube"==a[t].type||a[t].src.match(/\/\/vimeo.com/))return r(),void e.debug("Preload not allowed beause of the video type");"application/x-mpegurl"==a[t].type&&(freedomplayer.preload_limit=1)}function r(){e.conf.splash=!0,e.preload=!1,o.removeClass("is-poster").addClass("is-splash")}e.conf.splash||freedomplayer.preload_count++,freedomplayer.preload_count>freedomplayer.preload_limit&&r()})),flowplayer(function(o,e){o.bind("finish",function(){var e=o.video.time;o.video.loop&&o.one("pause",function(){e<=o.video.time&&o.resume()})})}),"undefined"!=typeof flowplayer&&(fv_autoplay_type=fv_flowplayer_conf.autoplay_preload,fv_player_scroll_autoplay=!1,fv_player_scroll_autoplay_last_winner=-1,document.body.classList.contains("wp-admin")||document.body.classList.contains("elementor-editor-active")||(freedomplayer(function(e,t){fv_player_scroll_autoplay=!0,e.on("pause",function(e,o){o.manual_pause&&(console.log("Scroll autoplay: Manual pause for "+jQuery(t).attr("id")),o.non_viewport_pause=!0)})}),jQuery(window).on("scroll",function(){fv_player_scroll_autoplay=!0}),fv_player_scroll_int=setInterval(function(){var r,e,i,o,t;fv_player_scroll_autoplay&&(r=window.innerHeight||document.documentElement.clientHeight,e=jQuery(".flowplayer:not(.is-disabled)"),i=-1,e.each(function(e,o){var t,a,n=jQuery(this);void 0!==n.data("fvautoplay")&&-1==n.data("fvautoplay")||(t=n.data("flowplayer"),a=n.find(".fp-player"),n=void 0!==n.data("fvautoplay"),a.length&&!t.non_viewport_pause&&("viewport"==fv_autoplay_type||"sticky"==fv_autoplay_type||n)&&(n=a[0].getBoundingClientRect(),r-n.top>a.height()/4)&&n.bottom>a.height()/4&&(flowplayer.support.iOS&&"video/youtube"==t.conf.clip.sources[0].type||(i=e)))}),fv_player_scroll_autoplay_last_winner!=i&&(t=(o=e.eq(fv_player_scroll_autoplay_last_winner)).data("flowplayer"))&&t.playing&&(console.log("Scroll autoplay: Player not in viewport, pausing "+o.attr("id")),t.pause()),-1<i&&fv_player_scroll_autoplay_last_winner!=i&&((t=(o=e.eq(i)).data("flowplayer"))?t.ready?(console.log("Scroll autoplay: Resume "+o.attr("id")),t.resume()):t.loading||t.playing||t.error||(console.log("Scroll autoplay: Load "+o.attr("id")),t.load(),t.autoplayed=!0):(console.log("Scroll autoplay: Play "+o.attr("id")),fv_player_load(o),t.autoplayed=!0),fv_player_scroll_autoplay_last_winner=i),fv_player_scroll_autoplay=!1)},200))),flowplayer(function(t,a){(a=jQuery(a)).find(".fp-logo").removeAttr("href"),a.hasClass("no-controlbar")&&((e=t.sliders.timeline).disable(!0),t.bind("ready",function(){e.disable(!0)})),jQuery(".fvfp_admin_error",a).remove(),a.find(".fp-logo, .fp-header").on("click",function(e){e.target===this&&a.find(".fp-ui").trigger("click")}),jQuery(".fvp-share-bar .sharing-facebook",a).append('<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="#fff"><title>Facebook</title><path d="M11.9 5.2l-2.6 0 0-1.6c0-0.7 0.3-0.7 0.7-0.7 0.3 0 1.6 0 1.6 0l0-2.9 -2.3 0c-2.6 0-3.3 2-3.3 3.3l0 2 -1.6 0 0 2.9 1.6 0c0 3.6 0 7.8 0 7.8l3.3 0c0 0 0-4.2 0-7.8l2.3 0 0.3-2.9Z"/></svg>'),jQuery(".fvp-share-bar .sharing-twitter",a).append('<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="#fff"><title>Twitter</title><path d="M16 3.1c-0.6 0.3-1.2 0.4-1.9 0.5 0.7-0.4 1.2-1 1.4-1.8 -0.6 0.4-1.3 0.6-2.1 0.8 -0.6-0.6-1.4-1-2.4-1 -2 0.1-3.2 1.6-3.2 4 -2.7-0.1-5.1-1.4-6.7-3.4 -0.9 1.4 0.2 3.8 1 4.4 -0.5 0-1-0.1-1.5-0.4l0 0.1c0 1.6 1.1 2.9 2.6 3.2 -0.7 0.2-1.3 0.1-1.5 0.1 0.4 1.3 1.6 2.2 3 2.3 -1.6 1.7-4.6 1.4-4.8 1.3 1.4 0.9 3.2 1.4 5 1.4 6 0 9.3-5 9.3-9.3 0-0.1 0-0.3 0-0.4 0.6-0.4 1.2-1 1.6-1.7Z"/></svg>'),jQuery(".fvp-share-bar .sharing-email",a).append('<svg xmlns="http://www.w3.org/2000/svg" height="16" viewBox="0 0 16 16" width="16" fill="#fff"><title>Email</title><path d="M8 10c0 0 0 0-1 0L0 6v7c0 1 0 1 1 1h14c1 0 1 0 1-1V6L9 10C9 10 8 10 8 10zM15 2H1C0 2 0 2 0 3v1l8 4 8-4V3C16 2 16 2 15 2z"/></svg>'),jQuery(".fp-header",a).prepend(jQuery(".fvp-share-bar",a)),(!t.have_visible_playlist&&0<t.conf.playlist.length||t.have_visible_playlist())&&!freedomplayer.support.touch&&(o=jQuery('<a class="fp-icon fv-fp-prevbtn"></a>'),n=jQuery('<a class="fp-icon fv-fp-nextbtn"></a>'),a.find(".fp-controls .fp-playbtn").before(o).after(n),o.on("click",function(){t.trigger("prev",[t]),t.prev()}),n.on("click",function(){t.trigger("next",[t]),t.next()})),"undefined"!=typeof fv_player_editor_conf&&a.on("click",".fvp-sharing > li",function(e){return e.preventDefault(),fv_player_notice(a,fv_player_editor_translations.link_notice,2e3),!1}),t.bind("pause resume finish unload ready",function(e,o){a.addClass("no-brand")}),t.on("ready",function(e,o,t){setTimeout(function(){a.hasClass("is-youtube-standard")||a.hasClass("is-youtube-reduced")||jQuery(".fvp-share-bar",a).show(),jQuery(".fv-player-buttons-wrap",a).appendTo(jQuery(".fv-player-buttons-wrap",a).parent().find(".fp-ui"))},100)}),t.bind("finish",function(){var e,o=a.data("fv_redirect");!o||void 0!==t.video.is_last&&!t.video.is_last||(freedomplayer.conf.wpadmin||flowplayer.conf.is_logged_in_editor)&&(e=(e=fv_flowplayer_translations.redirection).replace(/%url%/,o),!confirm(e))||(location.href=o)}),flowplayer.support.iOS&&11==flowplayer.support.iOS.version&&t.bind("error",function(e,o,t){4==t.code&&a.find(".fp-engine").hide()}),jQuery(document).on("contextmenu",".flowplayer",function(e){e.preventDefault()}),t.one("ready",function(e,o,t){a.find(".fp-chromecast").insertAfter(a.find(".fp-header .fp-fullscreen"))});var e,o,n,r=a.attr("id"),i=!flowplayer.support.fullscreen&&!flowplayer.conf.native_fullscreen&&flowplayer.conf.mobile_alternative_fullscreen;t.bind("fullscreen",function(e,o){jQuery("#wpadminbar, .nc_wrapper").hide(),i&&"video/youtube"!=o.video.type&&(a.before('<span data-fv-placeholder="'+r+'"></span>'),a.appendTo("body"))}),t.bind("fullscreen-exit",function(e,o,t){jQuery("#wpadminbar, .nc_wrapper").show(),i&&jQuery("span[data-fv-placeholder="+r+"]").replaceWith(a)})}),(()=>{function e(p){p(function(t,a){var n,e,r,i,l;function s(e){return Math.round(100*e)/100}function f(o){n.find(".fp-speed",a)[0].innerHTML=o+"x",n.find(".fp-speed-menu a",a).forEach(function(e){n.toggleClass(e,"fp-selected",e.getAttribute("data-speed")==o),n.toggleClass(e,"fp-color",e.getAttribute("data-speed")==o)})}(jQuery(a).data("speedb")||t.conf.skin_preview)&&(e=p.support).video&&e.inlineVideo&&(n=p.common,e=p.bean,r=n.find(".fp-ui",a)[0],i=n.find(".fp-controls",r)[0],l=t.conf.speeds,e.on(a,"click",".fp-speed",function(){var e=n.find(".fp-speed-menu",a)[0];n.hasClass(e,"fp-active")?t.hideMenu():t.showMenu(e)}),e.on(a,"click",".fp-speed-menu a",function(e){e=e.target.getAttribute("data-speed");t.speed(e)}),t.on("speed",function(e,o,t){1<l.length&&f(t)}).on("ready",function(e,o){o.removeSpeedButton(),p.support.android&&"html5"==o.engine.engineName&&"application/x-mpegurl"==o.video.type||1<(l=o.conf.speeds).length&&o.createSpeedButton()}),t.removeSpeedButton=function(){n.find(".fp-speed-menu",a).forEach(n.removeNode),n.find(".fp-speed",a).forEach(n.removeNode)},t.createSpeedButton=function(){var o;jQuery(a).data("speedb")&&(t.removeSpeedButton(),i.appendChild(n.createElement("strong",{className:"fp-speed"},t.currentSpeed+"x")),o=n.createElement("div",{className:"fp-menu fp-speed-menu",css:{width:"auto"}},"<strong>Speed</strong>"),l.forEach(function(e){e=n.createElement("a",{"data-speed":s(e)},s(e)+"x");o.appendChild(e)}),r.appendChild(o),f(t.currentSpeed),jQuery(a).find(".fp-speed-menu strong").text(fv_flowplayer_translations.speed))},t.conf.skin_preview)&&t.createSpeedButton()})}"object"===("undefined"==typeof module?"undefined":_typeof(module))&&module.exports?module.exports=e:"function"==typeof window.flowplayer&&e(window.flowplayer)})(),flowplayer(function(e,o){void 0===fv_flowplayer_conf.disable_localstorage&&(e.on("speed",function(e,o,t){try{window.localStorage.fv_player_speed=t}catch(e){}}),e.on("ready",function(){window.localStorage.fv_player_speed&&jQuery(o).find("strong.fp-speed").is(":visible")&&e.speed(parseFloat(window.localStorage.fv_player_speed)),0==jQuery(o).data("volume")&&e.mute(!0,!0)}))}),(s=>{var f={},p=!1;function o(){for(var e in f)for(var o in f[e])for(var t in f[e][o])f[e][o][t]=Math.round(f[e][o][t]);var a=(window.freedomplayer?freedomplayer:flowplayer).conf,n=(a.debug&&fv_player_stats_watched(),new FormData);n.append("tag","seconds"),n.append("blog_id",a.fv_stats.blog_id),n.append("user_id",a.fv_stats.user_id),n.append("_wpnonce",a.fv_stats.nonce),n.append("watched",encodeURIComponent(JSON.stringify(f))),navigator.sendBeacon(a.fv_stats.url,n)}flowplayer(function(e,o){o=s(o);var a,n=-1,r=0;if(e.conf.fv_stats&&(e.conf.fv_stats.enabled||o.data("fv_stats")&&"no"!=o.data("fv_stats"))){try{var i=o.data("fv_stats_data");if(!i)return}catch(e){return!1}e.on("ready finish",function(e,o){o.on("progress",function(e,o,t){t<1||o.video.duration&&t>o.video.duration-1||n==l()||(n=l(),s.post(o.conf.fv_stats.url,{blog_id:o.conf.fv_stats.blog_id,video_id:o.video.id||0,player_id:i.player_id,post_id:i.post_id,user_id:o.conf.fv_stats.user_id,tag:"play",_wpnonce:o.conf.fv_stats.nonce}))}),a=!(r=0)}).on("finish",function(){e.conf.loop||(n=-1)}).on("progress",function(e,o,t){0!=t&&(o.seeking?r=t:a?a=!1:r=(0==r||t<=r||(f[i.player_id]||(f[i.player_id]={}),f[i.player_id][i.post_id]||(f[i.player_id][i.post_id]={}),f[i.player_id][i.post_id][o.video.id]||(f[i.player_id][i.post_id][o.video.id]=0),f[i.player_id][i.post_id][o.video.id]+=t-r,p=!0),t))}),e.on("cva",function(e,o){s.post(o.conf.fv_stats.url,{blog_id:o.conf.fv_stats.blog_id,video_id:o.video.id||0,player_id:i.player_id,post_id:i.post_id,user_id:o.conf.fv_stats.user_id,tag:"click",_wpnonce:o.conf.fv_stats.nonce})})}function l(){return e.video.index||0}}),s(window).on("beforeunload pagehide",function(){var e="sendBeacon"in navigator;!flowplayer.conf.stats_sent&&e&&(flowplayer.conf.stats_sent=!0,p)&&o()}),setInterval(function(){p&&(o(),p=!(f={}))},3e5),window.fv_player_stats_watched=function(){s.each(f,function(e,o){console.log("player id: "+e),s.each(o,function(e,o){console.log("post id: "+e),s.each(o,function(e,o){console.log("video id: "+e+" seconds: "+o)})})})}})(jQuery),flowplayer(function(t,a){var n,r=jQuery(a),e=r.find(".fp-player"),o=r.data("fvsticky"),i=!1,l=r.find(".fp-ratio");if(t.is_sticky=!1,(i=flowplayer.conf.sticky_video&&"off"!=flowplayer.conf.sticky_video&&void 0===o?!0:i)||o){if(!flowplayer.support.firstframe)return;var s=flowplayer.conf.sticky_place;i=jQuery(window),n=r,t.on("unload",function(){p(),r.removeClass("is-unSticky")}),i.on("resize",function(){c()||"all"==flowplayer.conf.sticky_video||t.is_sticky&&p()}).on("scroll",function(){var e,o;if(c()||"all"==flowplayer.conf.sticky_video)if(e=n[0],(o=e.getBoundingClientRect()).top>=0-jQuery(e).outerHeight()/2&&0<=o.left&&o.bottom<=(window.innerHeight||document.documentElement.clientHeight)+jQuery(e).outerHeight()/2&&o.right<=(window.innerWidth||document.documentElement.clientWidth)||!(t.playing||t.loading||flowplayer.audible_instance==r.data("freedomplayer-instance-id")||"object"==_typeof(a.fv_player_vast)&&"object"==_typeof(a.fv_player_vast.adsManager_)&&"function"==typeof a.fv_player_vast.adsManager_.getRemainingTime&&0<a.fv_player_vast.adsManager_.getRemainingTime()))p();else{if(0<jQuery("div.flowplayer.is-unSticky").length)return!1;f()}else t.is_sticky&&p()})}function f(){e.hasClass("is-sticky-"+s)||(e.addClass("is-sticky"),e.addClass("is-sticky-"+s),0==r.find("a.fp-sticky").length&&r.find("div.fp-header").prepend('<a class="fp-sticky fp-icon"></a>'),e.prepend(l.clone()),d(!0),t.is_sticky=!0,t.trigger("sticky",[t]),e.parent(".flowplayer").addClass("is-stickable"))}function p(){e.removeClass("is-sticky"),e.removeClass("is-sticky-"+s),e.css("max-width",""),e.find(".fp-ratio").remove(),e.parent(".flowplayer").removeClass("is-stickable"),t.is_sticky&&(d(),t.is_sticky=!1,t.trigger("sticky-exit",[t]))}function c(){return t.autoplayed||jQuery(window).innerWidth()>=fv_flowplayer_conf.sticky_min_width}function d(e){var o=a;while(o){try{var t=getComputedStyle(o);t.transform&&(o.style.transform=e?"none":""),t.zIndex&&(o.style.zIndex=e?"auto":"")}catch(e){}o=o.parentNode}}t.sticky=function(e,o){void 0===e&&(e=!t.is_sticky),o&&r.toggleClass("is-unSticky",!e),(e?f:p)()}}),jQuery(function(t){t(document).on("click","a.fp-sticky",function(){var e=t("div.flowplayer.is-stickable"),o=e.data("flowplayer");e.addClass("is-unSticky"),e.find(".fp-player").removeClass(["is-sticky","is-sticky-right-bottom","is-sticky-left-bottom","is-sticky-right-top","is-sticky-left-top"]).css({width:"",height:"",maxHeight:""}),o.is_sticky&&(o.is_sticky=!1,o.trigger("sticky-exit",[o])),o.autoplayed&&o.pause()}),t(document).on("click","div.flowplayer.is-unSticky",function(){t("div.flowplayer").removeClass("is-unSticky")})}),flowplayer(function(e,n){n=jQuery(n);var r=window.localStorage;e.on("ready",function(e,t,o){var a;o.subtitles&&o.subtitles.length&&(r.fv_player_subtitle&&t.video.subtitles&&t.video.subtitles.length?"none"===r.fv_player_subtitle?t.disableSubtitles():t.video.subtitles.forEach(function(e,o){e.srclang===r.fv_player_subtitle&&t.loadSubtitles(o)}):(a=o.subtitles.filter(function(e){return e.fv_default})[0])&&t.loadSubtitles(o.subtitles.indexOf(a))),void 0===fv_flowplayer_conf.disable_localstorage&&n.find(".fp-subtitle-menu").on("click",function(e){var o=e.target.getAttribute("data-subtitle-index");if("string"==typeof o)try{r.fv_player_subtitle=-1<o?t.video.subtitles[o].srclang:"none"}catch(e){}})})}),flowplayer(function(e,t){t=jQuery(t),e.on("ready",function(e,o){t.find(".fp-subtitle-menu strong").text(fv_flowplayer_translations.closed_captions),t.find('.fp-subtitle-menu a[data-subtitle-index="-1"]').text(fv_flowplayer_translations.no_subtitles)})}),"undefined"!=typeof flowplayer&&"undefined"!=typeof fv_flowplayer_conf&&fv_flowplayer_conf.video_hash_links&&(flowplayer(function(t,a){var n,r,i,l,s,f,p="";0<jQuery(a).find(".sharing-link").length&&(n=function(e,o){l=fv_player_get_video_link_hash(t),s=","+fv_player_time_hms(t.video.time),e&&o?(i=","+fv_player_time_hms_ms(e+t.get_custom_start()),r=","+fv_player_time_hms_ms(o+t.get_custom_start())):(r=f&&void 0!==t.get_ab_end()&&t.get_ab_end()?","+fv_player_time_hms_ms(t.get_ab_end()):"",i=f&&void 0!==t.get_ab_start()&&t.get_ab_start()?","+fv_player_time_hms_ms(t.get_ab_start()):""),p=jQuery(".sharing-link",a).attr("href").replace(/#.*/,"")+"#"+l+s+i+r,jQuery(".sharing-link",a).attr("href",p)},t.on("ready",function(e,o,t){o.fv_noUiSlider&&o.fv_noUiSlider.on("set",function(e){n(e[0],e[1])})}),t.on("progress",function(e,o){o.video.sources&&o.video.sources[0]&&n()}),t.on("abloop",function(e,o,t){f=t,o.playing||n()}),jQuery(".sharing-link",a).on("click",function(e){e.preventDefault(),fv_player_clipboard(jQuery(this).attr("href"),function(){fv_player_notice(a,fv_flowplayer_translations.link_copied,2e3)},function(){fv_player_notice(a,fv_flowplayer_translations.error_copy_clipboard,2e3)})})),t.get_video_link=function(){return p}}),jQuery(document).on("click",'a[href*="fvp_"]',function(){var e=jQuery(this);setTimeout(function(){0==e.parents(".fvp-share-bar").length&&fv_video_link_autoplay()})})),flowplayer(function(e,a){a=jQuery(a);var n=!1;function r(){a.removeClass("has-fp-message-muted"),a.find(".fp-message-muted").remove()}e.one("ready",function(e,o){a.hasClass("is-audio")||(n=!0)}),e.on("progress",function(e,o,t){n&&1<t&&(n=!1,(t=jQuery("root").find("video")).length&&!(t=t[0]).mozHasAudio&&!Boolean(t.webkitAudioDecodedByteCount)&&!Boolean(t.audioTracks&&t.audioTracks.length)||!o.muted&&0!=o.volumeLevel||"true"==localStorage.muted||"0"==localStorage.volume||(t=jQuery('<div class="fp-message fp-message-muted"><span class="fp-icon fp-volumebtn-notice"></span> '+fv_flowplayer_translations.click_to_unmute+"</div>"),freedomplayer.bean.on(t[0],"click touchstart",function(){o.mute(!1),o.volume(1)}),a.find(".fp-ui").append(t),a.addClass("has-fp-message-muted"),setTimeout(r,1e4)))}),e.on("mute volume",function(){(!e.muted||0<e.volumeLevel)&&r()})}),"undefined"!=typeof flowplayer&&(fv_player_warning=function(e,o,t){var a=jQuery(e).prev(".fv-player-warning-wrapper");0==a.length&&(jQuery(e).before('<div class="fv-player-warning-wrapper">'),a=jQuery(e).prev(".fv-player-warning-wrapper")),0==a.find(".fv-player-warning-"+t).length&&(e=jQuery("<p style='display: none' "+(t?" class='fv-player-warning-"+t+"'":"")+">"+o+"</p>"),a.append(e),e.slideDown())},flowplayer(function(o,a){a=jQuery(a),navigator.userAgent.match(/iPhone.* OS [0-6]_/i)&&o.one("progress",function(e){void 0!==o.video.subtitles&&o.video.subtitles.length&&fv_player_warning(a,fv_flowplayer_translations.warning_iphone_subs)}),flowplayer.support.android&&flowplayer.support.android.version<5&&(flowplayer.support.android.samsung||flowplayer.support.browser.safari)&&fv_player_warning(a,fv_flowplayer_translations.warning_unstable_android,"firefox"),/Android 4/.test(navigator.userAgent)&&!/Firefox/.test(navigator.userAgent)&&(o.on("ready",function(e,o,t){setTimeout(function(){t.src&&t.src.match(/fpdl.vimeocdn.com/)&&(0==t.time||1==t.time)&&(fv_player_warning(a,fv_flowplayer_translations.warning_unstable_android,"firefox"),o.on("progress",function(e,o){a.prev().find(".fv-player-warning-firefox").remove()}))},1500)}),o.on("error",function(e,o,t){2==t.MEDIA_ERR_NETWORK&&t.video.src.match(/fpdl.vimeocdn.com/)&&fv_player_warning(a,fv_flowplayer_translations.warning_unstable_android,"firefox")})),/Safari/.test(navigator.userAgent)&&/Version\/5/.test(navigator.userAgent)&&o.on("error",function(e,o,t){t.video.src.match(/fpdl.vimeocdn.com/)&&fv_player_warning(a,fv_flowplayer_translations.warning_old_safari)});var e=flowplayer.support;e.android&&(e.android.samsung&&parseInt(e.browser.version)<66||e.browser.safari)&&o.on("error",function(e,o,t){fv_player_warning(a,fv_flowplayer_translations.warning_samsungbrowser,"warning_samsungbrowser")})})),flowplayer(function(t,a){a=jQuery(a);var n=!1;jQuery(t.conf.playlist).each(function(e,o){o.sources[0].type.match(/youtube/)&&(n=!0)}),n&&(a.addClass("is-youtube"),void 0!==fv_flowplayer_conf.youtube_browser_chrome)&&"none"==fv_flowplayer_conf.youtube_browser_chrome&&a.addClass("is-youtube-nl"),t.on("ready",function(e,o,t){a.find(".fp-youtube-wrap").remove(),a.find(".fp-youtube-logo").remove(),"video/youtube"==t.type?(a.addClass("is-youtube"),void 0!==fv_flowplayer_conf.youtube_browser_chrome&&("none"==fv_flowplayer_conf.youtube_browser_chrome&&a.addClass("is-youtube-nl"),"standard"==fv_flowplayer_conf.youtube_browser_chrome&&a.addClass("is-youtube-standard"),"reduced"==fv_flowplayer_conf.youtube_browser_chrome)&&(a.addClass("is-youtube-reduced"),a.addClass("is-youtube-nl"),a.find(".fp-ui").append('<div class="fp-youtube-wrap"><a class="fp-youtube-title" target="_blank" href="'+o.video.src+'">'+t.fv_title_clean+"</a></div>"),a.find(".fp-ui").append('<a class="fp-youtube-logo" target="_blank" href="'+o.video.src+'"><svg height="100%" version="1.1" viewBox="0 0 110 26" width="100%"><path class="ytp-svg-fill" d="M 16.68,.99 C 13.55,1.03 7.02,1.16 4.99,1.68 c -1.49,.4 -2.59,1.6 -2.99,3 -0.69,2.7 -0.68,8.31 -0.68,8.31 0,0 -0.01,5.61 .68,8.31 .39,1.5 1.59,2.6 2.99,3 2.69,.7 13.40,.68 13.40,.68 0,0 10.70,.01 13.40,-0.68 1.5,-0.4 2.59,-1.6 2.99,-3 .69,-2.7 .68,-8.31 .68,-8.31 0,0 .11,-5.61 -0.68,-8.31 -0.4,-1.5 -1.59,-2.6 -2.99,-3 C 29.11,.98 18.40,.99 18.40,.99 c 0,0 -0.67,-0.01 -1.71,0 z m 72.21,.90 0,21.28 2.78,0 .31,-1.37 .09,0 c .3,.5 .71,.88 1.21,1.18 .5,.3 1.08,.40 1.68,.40 1.1,0 1.99,-0.49 2.49,-1.59 .5,-1.1 .81,-2.70 .81,-4.90 l 0,-2.40 c 0,-1.6 -0.11,-2.90 -0.31,-3.90 -0.2,-0.89 -0.5,-1.59 -1,-2.09 -0.5,-0.4 -1.10,-0.59 -1.90,-0.59 -0.59,0 -1.18,.19 -1.68,.49 -0.49,.3 -1.01,.80 -1.21,1.40 l 0,-7.90 -3.28,0 z m -49.99,.78 3.90,13.90 .18,6.71 3.31,0 0,-6.71 3.87,-13.90 -3.37,0 -1.40,6.31 c -0.4,1.89 -0.71,3.19 -0.81,3.99 l -0.09,0 c -0.2,-1.1 -0.51,-2.4 -0.81,-3.99 l -1.37,-6.31 -3.40,0 z m 29.59,0 0,2.71 3.40,0 0,17.90 3.28,0 0,-17.90 3.40,0 c 0,0 .00,-2.71 -0.09,-2.71 l -9.99,0 z m -53.49,5.12 8.90,5.18 -8.90,5.09 0,-10.28 z m 89.40,.09 c -1.7,0 -2.89,.59 -3.59,1.59 -0.69,.99 -0.99,2.60 -0.99,4.90 l 0,2.59 c 0,2.2 .30,3.90 .99,4.90 .7,1.1 1.8,1.59 3.5,1.59 1.4,0 2.38,-0.3 3.18,-1 .7,-0.7 1.09,-1.69 1.09,-3.09 l 0,-0.5 -2.90,-0.21 c 0,1 -0.08,1.6 -0.28,2 -0.1,.4 -0.5,.62 -1,.62 -0.3,0 -0.61,-0.11 -0.81,-0.31 -0.2,-0.3 -0.30,-0.59 -0.40,-1.09 -0.1,-0.5 -0.09,-1.21 -0.09,-2.21 l 0,-0.78 5.71,-0.09 0,-2.62 c 0,-1.6 -0.10,-2.78 -0.40,-3.68 -0.2,-0.89 -0.71,-1.59 -1.31,-1.99 -0.7,-0.4 -1.48,-0.59 -2.68,-0.59 z m -50.49,.09 c -1.09,0 -2.01,.18 -2.71,.68 -0.7,.4 -1.2,1.12 -1.49,2.12 -0.3,1 -0.5,2.27 -0.5,3.87 l 0,2.21 c 0,1.5 .10,2.78 .40,3.78 .2,.9 .70,1.62 1.40,2.12 .69,.5 1.71,.68 2.81,.78 1.19,0 2.08,-0.28 2.78,-0.68 .69,-0.4 1.09,-1.09 1.49,-2.09 .39,-1 .49,-2.30 .49,-3.90 l 0,-2.21 c 0,-1.6 -0.2,-2.87 -0.49,-3.87 -0.3,-0.89 -0.8,-1.62 -1.49,-2.12 -0.7,-0.5 -1.58,-0.68 -2.68,-0.68 z m 12.18,.09 0,11.90 c -0.1,.3 -0.29,.48 -0.59,.68 -0.2,.2 -0.51,.31 -0.81,.31 -0.3,0 -0.58,-0.10 -0.68,-0.40 -0.1,-0.3 -0.18,-0.70 -0.18,-1.40 l 0,-10.99 -3.40,0 0,11.21 c 0,1.4 .18,2.39 .68,3.09 .49,.7 1.21,1 2.21,1 1.4,0 2.48,-0.69 3.18,-2.09 l .09,0 .31,1.78 2.59,0 0,-14.99 c 0,0 -3.40,.00 -3.40,-0.09 z m 17.31,0 0,11.90 c -0.1,.3 -0.29,.48 -0.59,.68 -0.2,.2 -0.51,.31 -0.81,.31 -0.3,0 -0.58,-0.10 -0.68,-0.40 -0.1,-0.3 -0.21,-0.70 -0.21,-1.40 l 0,-10.99 -3.40,0 0,11.21 c 0,1.4 .21,2.39 .71,3.09 .5,.7 1.18,1 2.18,1 1.39,0 2.51,-0.69 3.21,-2.09 l .09,0 .28,1.78 2.62,0 0,-14.99 c 0,0 -3.40,.00 -3.40,-0.09 z m 20.90,2.09 c .4,0 .58,.11 .78,.31 .2,.3 .30,.59 .40,1.09 .1,.5 .09,1.21 .09,2.21 l 0,1.09 -2.5,0 0,-1.09 c 0,-1 -0.00,-1.71 .09,-2.21 0,-0.4 .11,-0.8 .31,-1 .2,-0.3 .51,-0.40 .81,-0.40 z m -50.49,.12 c .5,0 .8,.18 1,.68 .19,.5 .28,1.30 .28,2.40 l 0,4.68 c 0,1.1 -0.08,1.90 -0.28,2.40 -0.2,.5 -0.5,.68 -1,.68 -0.5,0 -0.79,-0.18 -0.99,-0.68 -0.2,-0.5 -0.31,-1.30 -0.31,-2.40 l 0,-4.68 c 0,-1.1 .11,-1.90 .31,-2.40 .2,-0.5 .49,-0.68 .99,-0.68 z m 39.68,.09 c .3,0 .61,.10 .81,.40 .2,.3 .27,.67 .37,1.37 .1,.6 .12,1.51 .12,2.71 l .09,1.90 c 0,1.1 .00,1.99 -0.09,2.59 -0.1,.6 -0.19,1.08 -0.49,1.28 -0.2,.3 -0.50,.40 -0.90,.40 -0.3,0 -0.51,-0.08 -0.81,-0.18 -0.2,-0.1 -0.39,-0.29 -0.59,-0.59 l 0,-8.5 c .1,-0.4 .29,-0.7 .59,-1 .3,-0.3 .60,-0.40 .90,-0.40 z" id="ytp-id-14"></path></svg></a>'),void 0!==t.author_thumbnail)&&void 0!==t.author_url&&a.find(".fp-youtube-wrap").prepend('<a class="fp-youtube-channel-thumbnail" target="_blank" href="'+t.author_url+'" title="'+t.author_name+'"><img src="'+t.author_thumbnail+'" /></a>')):(a.removeClass("is-youtube"),a.removeClass("is-youtube-nl"),a.removeClass("is-youtube-standard"),a.removeClass("is-youtube-reduced"),a.find(".fp-youtube-wrap").remove(),a.find(".fp-youtube-logo").remove())}),a.on("click",".fp-youtube-title, .fp-youtube-logo",function(e){var o=t.video.time;0<o&&(o=flowplayer(0).video.sources[0].src+"&t="+parseInt(o)+"s",jQuery(this).attr("href",o))})});
  • fv-player/trunk/freedom-video-player/modules/analytics.module.js

    r3348866 r3364530  
    4949
    5050  }).bind('finish ready ', function(e,api) {
    51     //if( typeof(aFVPlayersSwitching[root.attr('id')]) != "undefined" ) { //  todo: problem that it won't work on video replay or playlist
    52       //return;
    53     //}
     51    // Do not track video again if it's the finish event and the video is set to loop
     52    if ( 'finish' === e.type && api.conf.loop ) {
     53      return;
     54    }
     55
    5456    for( var j in fv_ga_events ) {
    5557      if( !fv_ga_events.hasOwnProperty(j) ) continue;
  • fv-player/trunk/freedom-video-player/modules/stats.module.js

    r3280872 r3364530  
    2626    api.on('ready finish', function(e,api) { // first play and replay
    2727      api.on('progress', function( e, api, time ) {
    28         // each video must really play for at least 1 second to be tracked and it should be only tracked once!
    29         if( time < 1 || last_tracked == get_index() ) return;
     28       
     29        // Do not track "play" if
     30        if(
     31          // it's too early in the video
     32          time < 1 ||
     33          // if it's the end of the video, as the progress even might run if it's the "waiting" event for MPEG-DASH
     34          api.video.duration && time > api.video.duration - 1 ||
     35          // if the video was already trackedd
     36          last_tracked == get_index()
     37        ) return;
    3038
    3139        last_tracked = get_index();
     
    4654
    4755    }).on('finish', function() {
    48       last_tracked = -1; // reset on finish to allow tracking video again
     56      // If the video is not set to loop...
     57      if ( ! api.conf.loop ) {
     58        last_tracked = -1; // reset to allow tracking video again
     59      }
    4960
    5061    }).on( 'progress', function( e, api, time ) {
  • fv-player/trunk/fv-player.php

    r3363337 r3364530  
    44Plugin URI: http://foliovision.com/player
    55Description: Formerly FV WordPress Flowplayer. Supports MP4, HLS, MPEG-DASH, WebM and OGV. Advanced features such as overlay ads or popups.
    6 Version: 8.0.26
     6Version: 8.0.27
    77Author URI: http://foliovision.com/
    88Requires PHP: 5.6
     
    3636global $fv_wp_flowplayer_ver;
    3737
    38 $fv_wp_flowplayer_ver = '8.0.26';
    39 $fv_wp_flowplayer_core_ver = '8.0.20.1';
     38$fv_wp_flowplayer_ver = '8.0.27';
     39$fv_wp_flowplayer_core_ver = '8.0.20.2';
    4040
    4141function fv_player_8_activate() {
  • fv-player/trunk/languages/fv-player.pot

    r3363337 r3364530  
    88"Content-Transfer-Encoding: 8bit\n"
    99"Language-Team: foliovision\n"
    10 "POT-Creation-Date: 2025-09-17 15:13+0000\n"
     10"POT-Creation-Date: 2025-09-19 10:36+0000\n"
    1111"Report-Msgid-Bugs-To: https://foliovision.com/support\n"
    1212"Plural-Forms: nplurals=2; plural=(n != 1);\n"
  • fv-player/trunk/models/stats.php

    r3363337 r3364530  
    182182      }
    183183
    184       $attributes['data-fv_stats'] = $fv_fp->aCurArgs['stats'];
     184      if( !empty($fv_fp->aCurArgs['stats']) ) {
     185        $attributes['data-fv_stats'] = $fv_fp->aCurArgs['stats'];
     186      }
    185187
    186188      $player_id = 0; // 0 if shortcode
  • fv-player/trunk/readme.txt

    r3363337 r3364530  
    257257
    258258== Changelog ==
     259
     260= 8.0.27 - 2025-09-19 =
     261
     262* Bugfix: Analytics: Looping a video should not count as invidual plays
     263* Bugfix: Loop: Do not show the play/pause button animation
     264* Bugfix: Stats: Looping a video should not count as invidual plays
     265* Bugfix: Stats: Fix stats being disabled after changes in 8.0.26
     266* Bugfix: Stats: Fix "Track Guest Users" being always on
    259267
    260268= 8.0.26 - 2025-09-17 =
Note: See TracChangeset for help on using the changeset viewer.