cdn.stickyadstv.com
Open in
urlscan Pro
2a02:26f0:3500:f::1732:8319
Public Scan
URL:
https://cdn.stickyadstv.com/mustang/vpaid-adapter.min.js
Submission: On October 16 via api from IT — Scanned from IT
Submission: On October 16 via api from IT — Scanned from IT
Form analysis
0 forms found in the DOMText Content
/* almond 0.1.1 Copyright (c) 2011, The Dojo Foundation All Rights Reserved. Available via the MIT or new BSD license. see: http://github.com/jrburke/almond for details Copyright (c) 2013 Open VideoView Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(l,M,E){l!=Array.prototype&&l!=Object.prototype&&(l[M]=E.value)};$jscomp.getGlobal=function(l){return"undefined"!=typeof window&&window===l?l:"undefined"!=typeof global&&null!=global?global:l};$jscomp.global=$jscomp.getGlobal(this);$jscomp.SYMBOL_PREFIX="jscomp_symbol_"; $jscomp.initSymbol=function(){$jscomp.initSymbol=function(){};$jscomp.global.Symbol||($jscomp.global.Symbol=$jscomp.Symbol)};$jscomp.Symbol=function(){var l=0;return function(M){return $jscomp.SYMBOL_PREFIX+(M||"")+l++}}(); $jscomp.initSymbolIterator=function(){$jscomp.initSymbol();var l=$jscomp.global.Symbol.iterator;l||(l=$jscomp.global.Symbol.iterator=$jscomp.global.Symbol("iterator"));"function"!=typeof Array.prototype[l]&&$jscomp.defineProperty(Array.prototype,l,{configurable:!0,writable:!0,value:function(){return $jscomp.arrayIterator(this)}});$jscomp.initSymbolIterator=function(){}};$jscomp.arrayIterator=function(l){var M=0;return $jscomp.iteratorPrototype(function(){return M<l.length?{done:!1,value:l[M++]}:{done:!0}})}; $jscomp.iteratorPrototype=function(l){$jscomp.initSymbolIterator();l={next:l};l[$jscomp.global.Symbol.iterator]=function(){return this};return l};$jscomp.iteratorFromArray=function(l,M){$jscomp.initSymbolIterator();l instanceof String&&(l+="");var E=0,H={next:function(){if(E<l.length){var x=E++;return{value:M(x,l[x]),done:!1}}H.next=function(){return{done:!0,value:void 0}};return H.next()}};H[Symbol.iterator]=function(){return H};return H}; $jscomp.polyfill=function(l,M,E,H){if(M){E=$jscomp.global;l=l.split(".");for(H=0;H<l.length-1;H++){var x=l[H];x in E||(E[x]={});E=E[x]}l=l[l.length-1];H=E[l];M=M(H);M!=H&&null!=M&&$jscomp.defineProperty(E,l,{configurable:!0,writable:!0,value:M})}};$jscomp.polyfill("Array.prototype.keys",function(l){return l?l:function(){return $jscomp.iteratorFromArray(this,function(l){return l})}},"es6","es3"); $jscomp.findInternal=function(l,M,E){l instanceof String&&(l=String(l));for(var H=l.length,x=0;x<H;x++){var X=l[x];if(M.call(E,X,x,l))return{i:x,v:X}}return{i:-1,v:void 0}};$jscomp.polyfill("Array.prototype.find",function(l){return l?l:function(l,E){return $jscomp.findInternal(this,l,E).v}},"es6","es3");$jscomp.polyfill("Object.is",function(l){return l?l:function(l,E){return l===E?0!==l||1/l===1/E:l!==l&&E!==E}},"es6","es3"); $jscomp.polyfill("Array.prototype.includes",function(l){return l?l:function(l,E){var H=this;H instanceof String&&(H=String(H));var x=H.length;for(E=E||0;E<x;E++)if(H[E]==l||Object.is(H[E],l))return!0;return!1}},"es7","es3"); $jscomp.checkStringArgs=function(l,M,E){if(null==l)throw new TypeError("The 'this' value for String.prototype."+E+" must not be null or undefined");if(M instanceof RegExp)throw new TypeError("First argument to String.prototype."+E+" must not be a regular expression");return l+""};$jscomp.polyfill("String.prototype.includes",function(l){return l?l:function(l,E){return-1!==$jscomp.checkStringArgs(this,l,"includes").indexOf(l,E||0)}},"es6","es3"); $jscomp.makeIterator=function(l){$jscomp.initSymbolIterator();var M=l[Symbol.iterator];return M?M.call(l):$jscomp.arrayIterator(l)};$jscomp.FORCE_POLYFILL_PROMISE=!1; $jscomp.polyfill("Promise",function(l){function M(){this.batch_=null}function E(l){return l instanceof x?l:new x(function(n,x){n(l)})}if(l&&!$jscomp.FORCE_POLYFILL_PROMISE)return l;M.prototype.asyncExecute=function(l){null==this.batch_&&(this.batch_=[],this.asyncExecuteBatch_());this.batch_.push(l);return this};M.prototype.asyncExecuteBatch_=function(){var l=this;this.asyncExecuteFunction(function(){l.executeBatch_()})};var H=$jscomp.global.setTimeout;M.prototype.asyncExecuteFunction=function(l){H(l, 0)};M.prototype.executeBatch_=function(){for(;this.batch_&&this.batch_.length;){var l=this.batch_;this.batch_=[];for(var n=0;n<l.length;++n){var x=l[n];delete l[n];try{x()}catch(qa){this.asyncThrow_(qa)}}}this.batch_=null};M.prototype.asyncThrow_=function(l){this.asyncExecuteFunction(function(){throw l;})};var x=function(l){this.state_=0;this.result_=void 0;this.onSettledCallbacks_=[];var n=this.createResolveAndReject_();try{l(n.resolve,n.reject)}catch(P){n.reject(P)}};x.prototype.createResolveAndReject_= function(){function l(l){return function(W){x||(x=!0,l.call(n,W))}}var n=this,x=!1;return{resolve:l(this.resolveTo_),reject:l(this.reject_)}};x.prototype.resolveTo_=function(l){if(l===this)this.reject_(new TypeError("A Promise cannot resolve to itself"));else if(l instanceof x)this.settleSameAsPromise_(l);else{a:switch(typeof l){case "object":var n=null!=l;break a;case "function":n=!0;break a;default:n=!1}n?this.resolveToNonPromiseObj_(l):this.fulfill_(l)}};x.prototype.resolveToNonPromiseObj_=function(l){var n= void 0;try{n=l.then}catch(P){this.reject_(P);return}"function"==typeof n?this.settleSameAsThenable_(n,l):this.fulfill_(l)};x.prototype.reject_=function(l){this.settle_(2,l)};x.prototype.fulfill_=function(l){this.settle_(1,l)};x.prototype.settle_=function(l,n){if(0!=this.state_)throw Error("Cannot settle("+l+", "+n|"): Promise already settled in state"+this.state_);this.state_=l;this.result_=n;this.executeOnSettledCallbacks_()};x.prototype.executeOnSettledCallbacks_=function(){if(null!=this.onSettledCallbacks_){for(var l= this.onSettledCallbacks_,n=0;n<l.length;++n)l[n].call(),l[n]=null;this.onSettledCallbacks_=null}};var X=new M;x.prototype.settleSameAsPromise_=function(l){var n=this.createResolveAndReject_();l.callWhenSettled_(n.resolve,n.reject)};x.prototype.settleSameAsThenable_=function(l,n){var x=this.createResolveAndReject_();try{l.call(n,x.resolve,x.reject)}catch(qa){x.reject(qa)}};x.prototype.then=function(l,n){function E(n,l){return"function"==typeof n?function(l){try{H(n(l))}catch(ma){C(ma)}}:l}var H,C, M=new x(function(n,l){H=n;C=l});this.callWhenSettled_(E(l,H),E(n,C));return M};x.prototype.catch=function(l){return this.then(void 0,l)};x.prototype.callWhenSettled_=function(l,n){function x(){switch(E.state_){case 1:l(E.result_);break;case 2:n(E.result_);break;default:throw Error("Unexpected state: "+E.state_);}}var E=this;null==this.onSettledCallbacks_?X.asyncExecute(x):this.onSettledCallbacks_.push(function(){X.asyncExecute(x)})};x.resolve=E;x.reject=function(l){return new x(function(n,x){x(l)})}; x.race=function(l){return new x(function(n,x){for(var H=$jscomp.makeIterator(l),C=H.next();!C.done;C=H.next())E(C.value).callWhenSettled_(n,x)})};x.all=function(l){var n=$jscomp.makeIterator(l),H=n.next();return H.done?E([]):new x(function(l,x){function C(n){return function(x){M[n]=x;P--;0==P&&l(M)}}var M=[],P=0;do M.push(void 0),P++,E(H.value).callWhenSettled_(C(M.length-1),x),H=n.next();while(!H.done)})};return x},"es6","es3"); $jscomp.polyfill("String.prototype.startsWith",function(l){return l?l:function(l,E){var H=$jscomp.checkStringArgs(this,l,"startsWith");l+="";var x=H.length,M=l.length;E=Math.max(0,Math.min(E|0,H.length));for(var W=0;W<M&&E<x;)if(H[E++]!=l[W++])return!1;return W>=M}},"es6","es3"); (function(){function l(d){var e=gb.slice;return e.apply(d,e.call(arguments,1))}function M(d){return d.message||d.description||"???"}function E(){}function H(d){return"string"==typeof d}function x(d){return"function"==typeof d}function X(d){return"[object Array]"==Sa.call(d)}function W(d){return"object"==typeof d}function n(d){return"undefined"==typeof d}function P(d){return"number"==typeof d&&!isNaN(d)}function qa(d,e,c,b){var a=c;r(d,function(b){a=e(a,b)},b);return a}function C(){for(var d=arguments[0], e=1;e<arguments.length;++e)r(arguments[e],function(c,b){void 0!==c&&(d[b]=c)});return d}function ba(d){return W(d)?X(d)||"[object Arguments]"==Sa.call(d)?l(d):C({},d):d}function Qa(d){function e(b,a){c.push(encodeURIComponent(b)+"="+encodeURIComponent(a))}if(H(d))return d;var c=[];r(d,function(b,a){n(b)||(W(b)?r(b,function(b,c){e(a+"/"+c,b)}):e(a,b))});return c.join("&")}function ra(d){if(!d)return{};if(!H(d))return d;var e={};r(d.split("&"),function(c){c=c.split("=");var b=decodeURIComponent(c.shift()).split("/"); c=decodeURIComponent(c.join("="));for(var a=e;1<b.length;){var f=b.shift();a[f]=a[f]||{};a=a[f]}a[b.shift()]=c});return e}function Ra(){return"undefined"!=typeof navigator&&"undefined"!=typeof navigator.userAgent?null!==navigator.userAgent.match(/AppleTV/i):!1}function ma(d,e){return Math.floor(Math.random()*(e-d+1))+d}function R(d){"undefined"!=typeof d&&d&&(Ra()?Fa(d,!0):clearTimeout(d))}function xa(d){if("undefined"==typeof d)return[];for(var e=[],c=0;c<d.length;c++)e.push(d.item(c));return e} function D(){var d=arguments[0],e=arguments[1],c=arguments[2];if(P(e))var b=l(arguments,3);else c=e,e=0,b=l(arguments,2);if(Ra()){var a={currentPointer:setTimeout(function(){var f=new Date;if(100<e-(f.getTime()-a.startTime.getTime())){f.getTime();a.startTime.getTime();f=a.originalPointer;Fa(a.originalPointer,!0);var g=D(d,e,c);g=Ta(g);var h=la[g];h.originalPointer=f;la[g]=h}else Fa(a.originalPointer,!1),d.apply(c,b)},e),startTime:new Date};a.originalPointer=a.currentPointer;la.push(a);return a.currentPointer}return setTimeout(function(){d.apply(c, b)},e)}function Fa(d,e){d=Ta(d);"undefined"!=typeof d&&(e&&clearTimeout(la[d].currentPointer),la.splice(d,1))}function Ta(d){if("undefined"!=typeof la)for(var e=0;e<la.length;){if(la[e].originalPointer==d)return e;e++}}function Ba(){function d(){f.value=D(d,c);e.apply(b,a)}var e=arguments[0],c=arguments[1],b=arguments[2];if(P(c))var a=l(arguments,3);else b=c,c=0,a=l(arguments,2);var f={};f.value=D(d,c);return f}function sa(d){d&&R(d.value)}function ca(){return(new Date).getTime()}function Ga(d,e){return d> e?1:d<e?-1:0}function Ua(){var d=arguments;return function(e,c){for(var b=0;b<d.length;++b){var a=(0,d[b])(e,c);if(a)return a}return 0}}function Ca(d,e){if(P(d))return Math.round(d);if(!d)return e;d=parseInt(d);return isNaN(d)?e:d}function G(d,e){if(P(d)&&!isNaN(d))return d;if(!d)return n(e)?NaN:e;d=parseFloat(d);return isNaN(d)?n(e)?NaN:e:d}function na(d){return"undefined"!=typeof d&&null!=d}function S(d,e){return"boolean"==typeof d?d:d?"true"==d||"1"==d:e}function ya(d,e){return d!=e}function Va(){return!0} function hb(d,e){return n(e)?function(c){return H(c.attr(d))}:function(c){return c.attr(d)==e}}function ib(d,e,c){var b={},a;for(a in d){var f=d[a];x(f)&&(b[a]=function(a){return function(){e.call(c);a.apply(this,arguments)}}(f))}return b}function aa(d,e){var c={},b;for(b in d){var a=d[b];x(a)&&(c[b]=u(a,e))}return c}function oa(d,e,c,b){if(d.length){var a=0;r(d,function(f){e.call(b,f,function(){a++;a<d.length||c.call(b)})})}else c.call(b)}function jb(d,e){for(var c=d[0],b=1;b<d.length;++b)0<e(d[b], c)&&(c=d[b]);return c}function Wa(d){return d?d.split("?")[0].split("/").pop():""}function ea(d,e,c){if(!e||ha(e))return d;var b=d.indexOf("?");if(-1!=b){var a=Ha(d);d=d.substr(0,b);e=c?C({},a,e):C({},e,a)}e=Xa(e);return d+(e?"?"+e:"")}function Ha(d){if(d){var e=d.indexOf("?");d=-1!=e?d.substr(e+1):""}else d="";return d?kb(d):{}}function Da(d){return d?d.replace(/^\s+|\s+$/g,""):d}function kb(d){var e={};r(d.split("&"),function(c){c=c.split("=");var b=decodeURIComponent(c.shift());c=c.length?decodeURIComponent(c.join("=")): null;e[b]=c});return e}function Xa(d){var e=[];r(d,function(c,b){W(c)||x(c)||e.push(encodeURIComponent(b)+"="+encodeURIComponent(c))});return e.join("&")}function za(d,e){d=""+d;for(e=e||2;d.length<e;)d="0"+d;return d}function Ya(d){return[za(d.getHours()),za(d.getMinutes()),za(d.getSeconds())+","+za(d.getMilliseconds(),3)].join(":")}function ka(d,e){if(!W(d))return null===d||void 0===d?e:e||d;if(!W(e))return d||e;if(d===e)return d;if(X(d)&&X(e))d=d.concat(e);else{e=e||{};for(var c in e){var b=ka(d[c], e[c]);null===b||void 0===b?delete d[c]:d[c]=b}}return d}function ha(d){return n(U(d,function(d,c){return"undefined"!==typeof d}))}function ia(d,e){e=e||0;var c="";if(X(d))return r(d,function(a){x(a)||(c&&(c+=","),c+=ia(a,e+1))}),"["+c+"]";if(d instanceof Error||d instanceof TypeError){var b={};r(["number","line","expressionBeginOffset","sourceURL"],function(a){n(d[a])||(b[a]=d[a])});H(d.stack)&&(b.stack=d.stack.split(/\s*(@|at)\s*/));return"[Error] "+M(d)+" ("+ia(b)+")"}if(W(d)){if(2<=e)return"...."; r(d,function(a,b){c&&(c+=",");c+=b+"="+ia(a,e+1)});return"{"+c+"}"}return H(d)?'"'+d+'"':d}function O(d){if(!d)return{};var e=d.hasOwnProperty("data")?d.data:null;d=d.hasOwnProperty("detail")?d.detail:null;return e||d||{}}function Za(d,e,c){r(e,function(b,a){a=d+"/"+a;W(b)?Za(a,b,c):c(b,a)})}function $a(d){if(d&&d.nodeType&&1===d.nodeType)return d;var e=null;try{e=document.getElementById(d)}catch(c){}return e}function ab(d,e){e.id=e.id||d.id;var c=d.style.cssText;c&&(e.style.cssText+=c);if(c=d.className)e.className= c;(c=d.parentNode)&&c.replaceChild(e,d);return e}function Ia(d,e,c,b){c=b.dispatch;if(!c.attached)return c.attached=!0,d.addEventListener?d=d.addEventListener(e,c,b.useCapture||!1):d.attachEvent?d=d.attachEvent("on"+e,c):(d["on"+e]=c,d=void 0),d}function Ja(d,e,c,b){if(!b.listenerCount)return c=b.dispatch,c.attached&&delete c.attached,d.removeEventListener?d=d.removeEventListener(e,c,b.useCapture||!1):d.attachEvent?d=d.detachEvent("on"+e,c):(d["on"+e]=null,d=void 0),d}function lb(d,e){var c={},b; for(b in e){var a=e[b];x(a)&&x(d[b])&&-1==a.toString().indexOf("this._super")?c[b]=function(a){return function(){this._super.apply(this,arguments);return a.apply(this,arguments)}}(a):c[b]=a}return c}function J(){this.clientWidth=this.clientHeight=-1;this.error="";this.focus=null;this.fps=-1;this.id="";this.geometrySupported=this.beaconsSupported=null;this.technique=this.domViewabilityState=this.cssViewabilityState=this.beaconViewabilityState=this.geometryViewabilityState="";this.beacons=[];this.inIframe= null;this.percentViewable=this.objTop=this.objRight=this.objLeft=this.objBottom=-1;this.percentObscured=0;this.viewabilityState=""}function bb(d){var e={MSIE:1,Firefox:2,Chrome:3,Opera:4,safari:5},c=function(b,a){var c=[{id:4,name:"Opera",brRegex:"OPR|Opera",verRegex:"(OPR/|Version/)"},{id:1,name:"MSIE",brRegex:"MSIE|Trident/7.*rv:11|rv:11.*Trident/7",verRegex:"(MSIE |rv:)"},{id:2,name:"Firefox",brRegex:"Firefox",verRegex:"Firefox/"},{id:3,name:"Chrome",brRegex:"Chrome",verRegex:"Chrome/"},{id:5, name:"Safari",brRegex:"Safari|(OS |OS X )[0-9].*AppleWebKit",verRegex:"Version/"}];a={ID:0,name:"",version:""};for(var g=0;g<c.length;g++)if(null!=b.match(new RegExp(c[g].brRegex))){a.ID=c[g].id;a.name=c[g].name;if(null==c[g].verRegex)break;var d=b.match(new RegExp(c[g].verRegex+"[0-9]*"));null!=d&&(c=d[0].match(new RegExp(c[g].verRegex)),a.version=d[0].replace(c[0],""));b=b.match(/(Windows NT )[0-9\.]*/);null!=b&&(a.os=b[0]);break}return a}(d);this.getBrowser=function(){return c};this.getBrowserIDEnum= function(){return e}}function mb(){var d=new bb(window.$fw_ovv.userAgent),e=d.getBrowser(),c=d.getBrowserIDEnum();this.supportsBeacons=function(){var b=e.ID==c.MSIE,a=11<=e.version,f=e.os?e.os.split(" "):[0];f=f[f.length-1];return!b||a&&6.3<=f}}function nb(){function d(a){a&&a.length&&"undefined"!==a[0].intersectionRatio&&(e=100*a[0].intersectionRatio)}var e=0,c=[0,.1,.2,.3,.4,.5,.6,.7,.8,.9,1],b;window.$fw_ovv.intersectionObserverSupported&&(b=new IntersectionObserver(d,{threshold:c}));this.getPercentViewable= function(){return e};this.beginMonitoring=function(a){a&&b.observe(a)}}var Ka={},gb=Array.prototype,Sa=Object.prototype.toString,r=function(d,e,c){if(null!=d)if(d.length===+d.length)for(var b=0,a=d.length;b<a&&!(b in d&&e.call(c,d[b])===Ka);b++);else for(b in d)if(d.hasOwnProperty(b)&&e.call(c,d[b],b)===Ka)break},u=function(d,e){var c=l(arguments,2);return function(){var b=c.concat(l(arguments));return d.apply(e,b)}},fa=function(d,e,c){var b=[];if(null==d)return b;r(d,function(a,f){b[b.length]=e.call(c, a,f)});return b},U=function(d,e,c){var b;r(d,function(a,f){if(e.call(c,a))return b=a,Ka});return b},Y=function(d,e,c){var b=[];if(null==d)return b;r(d,function(a,f){e.call(c,a,f)&&(b[b.length]=a)},c);return b},ob=this,N=function(){var d=!1,e=/xyz/.test(function(){})?/\b_super\b/:/.*/,c=function(){};c.extend=function g(a,c){function f(a){if(this===ob)return a instanceof f?a:new f(a);!d&&this.init&&this.init.apply(this,arguments)}n(c)&&(c=a,a=null);var k=this.prototype;d=!0;var m=new this;d=!1;for(var q in c)m[q]= x(c[q])&&x(k[q])&&e.test(c[q])?function(a,c){return function(){var f=this._super;this._super=k[a];var g=c.apply(this,arguments);this._super=f;return g}}(q,c[q]):c[q];C(f,a);f.prototype=m;f.prototype.constructor=f;f.extend=g;return f};return c}(),La="Shockwave Flash",cb="ShockwaveFlash.ShockwaveFlash",ta="application/x-shockwave-flash",la=[],Ma=null;this.document&&(Ma=this.document.currentScript);var pb={hasNext:function(){return!1}},Q=N.extend(new function(d){this.init=function(d){this._data=d&&d instanceof Q?ba(d._data):d||{}};this.merge=function(d){this._data=ka(this._data,d);return this};this.integer=function(d,c){return Ca(this.value(d),c)};this.number=function(d,c){return G(this.value(d),c)};this.bool=function(d,c){return S(this.value(d),c)};this.string=function(d,c){d=this.value(d);return n(d)||null===d?c:String(d)};this.func=function(d,c){d=this.value(d);c=x(d)?d:c;return c};this.array=function(d,c){d=this.value(d);return X(d)?d:c};this.each=function(d){Za("",this._data,d)};this.object=function(d){var c= {};r(d.split(","),function(b){var a=this.value(b);b=b.split("/").pop();c[b]=a},this);return c};this.value=function(d,c){if(n(c)){a:{c=this._data;for(var b=d.split("/");1<b.length;){d=b.shift();if(!W(c[d])){c=void 0;break a}c=c[d]}c=c[b[0]]}return c}b=this._data;for(d=d.split("/");1<d.length;){var a=d.shift();W(b[a])||(b[a]={});b=b[a]}b[d[0]]=c;return this};this.exist=function(d){var c=this._data;for(d=d.split("/");d.length;){var b=d.shift();if(!(b in c))return!1;c=c[b]}return!0};this.remove=function(d){r(d.split(","), function(c){var b=this;for(c=c.split("/");1<c.length;){var a=c.shift();if(!W(b[a]))return;b=b[a]}delete b[c[0]]},this._data);return this};this.data=function(){return this._data};this.loadFromUrl=function(d,c){r(d?Ha(d):{},function(b,a){0==a.indexOf(c)&&this.value(a.substr(c.length).replace(/-/g,"/"),b)},this)};this.toString=function(){return Qa(this._data)}}),I=new Q({trace:{level:1,type:"console"}}),ua=!1,Na=N.extend(new function(){this.init=function(d,e){this._context=e||this;this._handler=D(function(){this.onTimeout()}, d,this)};this.abort=this._dispose=function(){this._disposed||(this._disposed=!0,R(this._handler),this.onDispose())};this.onDispose=function(){this._onDispose&&this._onDispose.call(this._context)};this.onTimeout=function(){this._onTimeout&&this._onTimeout.call(this._context)};this.onSuccess=function(d){this._disposed||(this._dispose(),this._onSuccess&&this._onSuccess.call(this._context,d))};this.onError=function(d){this._disposed||(this._dispose(),this._onError&&this._onError.call(this._context,d))}}); La="Shockwave Flash";cb="ShockwaveFlash.ShockwaveFlash";ta="application/x-shockwave-flash";var qb=window,va=document,ja=navigator;"undefined"!=typeof window.sticky_config&&I.merge(window.sticky_config);I.loadFromUrl(location.href,"sticky-");(ua=I.exist("debug"))&&I.merge({debug:!0,trace:{level:5},muteAd:!1,"cors/credentials":!0});var t=function(){function d(a){a&&(clearInterval(b),a.innerHTML+=c,c="")}function e(a,f){a?(d(a),f&&(a.innerHTML+=f),a.scrollTop+a.offsetHeight+150>=a.scrollHeight&&(a.scrollTop= a.scrollHeight)):(c+=f,b||(b=setInterval(function(){d(a)},100)))}var c="",b;return N.extend(new function(){function a(a,b,c,f){return[Ya(b),c].concat(f)}function b(a,b,c,f){return"/"+c+"?log="+ia(f)}function c(b,c,f,d){return ia(a(b,c,f,d))}function d(a){return String(a).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""")}function k(a,b,c,f){var g="color:"+["red","orange","black","grey"][a]+";",m="<div style='color:blue; width:300px; white-space: nowrap; text-overflow:ellipsis; overflow:hidden;float:left;'>"+ Ya(b)+" - "+c+"</div> ";r(f,function(a,b){a=W(a)?ia(a):a;m=b?m+("<span style='padding-left:10px; font-size:small; "+g+"'>"+d(a)+"</span>"):m+("<div style='font-size:large; width:500px; "+g+"white-space: nowrap; text-overflow:ellipsis; overflow:hidden;float:left;'>"+d(a)+"</div>")});return"<div style='clear:both; text-align:left; padding-left:5px; font-size:12px;'>"+m+"</div>"}this.modules=[/.*/];this.init=function(a){this._name=a||"";this._domId=I.string("trace/dom","sticky-log")};this._level=function(){var a= I.integer("trace/level");return P(a)?a:I.exist("debug")?3:1};this._type=function(){var a=I.string("trace/type");if(H(a))return a;a=[];$a(this._domId)&&a.push("dom");I.exist("debug")&&a.push("console?format=json");return a.join(",")};this.clear=function(){this._domElement&&(this._domElement.innerHTML="")};this._createDom=function(){if(va&&va.body){var a=document.createElement("div");a.id=this._domId;a.style.cssText="width:100%; border:1px solid red; overflow:auto; height:200px; background:white;"; va.body.insertBefore(a,va.body.firstChild);return a}};this._traceDom=function(a,b){a=I.string("trace/dom","sticky-log");this._domElement=$a(a);this._domElement||(this._domElement=this._createDom());e(this._domElement,b)};this._traceConsole=function(a,b){if("undefined"!=typeof console&&console)if(console.firebug)if(X(b))console[a].apply(window,b);else console[a](b);else if(x(console[a]))if(X(b))console[a].apply(console,b);else console[a](b);else console.log(b)};this._traceMessage=function(a,b){t.targetMessageUrl&& top.postMessage("sticky-log:"+a+":"+ia(b),t.targetMessageUrl)};this._traceIOS=function(a,b){document.location.href="console:/"+a+b};this._format=function(f){switch(f){case "uri":return b;case "html":return k;case "json":return c;default:return a}};r({verbose:4,debug:3,info:2,warn:1,error:0},function(a,b){this[b]=function(){if(!(this._level()<a)&&U(this.modules,u(function(a){return this._name.match(a)},this))){var c=new Date,f=l(arguments);r(this._type().split(","),function(d){var g=Ha(d);switch(Wa(d)){case "ios":this._traceIOS(b, this._format(g.format||"uri")(a,c,this._name,f));break;case "dom":this._traceDom(b,this._format(g.format||"html")(a,c,this._name,f));break;case "message":this._traceMessage(b,this._format(g.format||"array")(a,c,this._name,f));break;case "console":this._traceConsole(b,this._format(g.format||"array")(a,c,this._name,f));break;default:"undefined"!=typeof console&&console.log(this._format(g.format||"array")(a,c,this._name,f))}},this)}}},this)})}(),pa=function(d){var e=d.getBoundingClientRect?d.getBoundingClientRect(): null;if(!e||"OBJECT"==d.nodeName&&0<d.getClientRects().length&&-1<navigator.userAgent.toLowerCase().indexOf("firefox"))e=d.getClientRects()[0];return e};J.UNMEASURABLE="unmeasurable";J.VIEWABLE="viewable";J.UNVIEWABLE="unviewable";J.NOT_READY="not_ready";J.BEACON="beacon";J.GEOMETRY="geometry";J.INTERSECTIONOBSERVER="intersectionobserver";J.CSS_INVISIBILITY="css_invisibility";J.DOM_OBSCURING="dom_obscuring";Function.prototype.memoized=function(d){this._cacheValue=this._cacheValue||{};return void 0!== this._cacheValue[d]?this._cacheValue[d]:this._cacheValue[d]=this.apply(this,arguments)};Function.prototype.memoize=function(){var d=this;return function(){return d.memoized.apply(d,arguments)}};var Oa=new function(){this.DEBUG=!1;this.asset=null;this.userAgent=window.testOvvConfig&&window.testOvvConfig.userAgent?window.testOvvConfig.userAgent:navigator.userAgent;this.servingScenarioEnum={OnPage:1,SameDomainIframe:2,CrossDomainIframe:3};this.intersectionObserverSupported=!!window.IntersectionObserver; this.servingScenario=function(a){try{if("undefined"!=typeof window.isAppleTV||window.top==window)return a.OnPage;for(var b=window;b.parent!=b;){if(b.parent.document.domain!=b.document.domain)return a.CrossDomainIframe;b=b.parent}return a.SameDomainIframe}catch(k){}return a.CrossDomainIframe}(this.servingScenarioEnum);this.IN_IFRAME=this.servingScenario!=this.servingScenarioEnum.OnPage;this.IN_XD_IFRAME=this.servingScenario==this.servingScenarioEnum.CrossDomainIframe;this.geometrySupported=!this.IN_XD_IFRAME; var d=new bb(this.userAgent);this.browser=d.getBrowser();this.browserIDEnum=d.getBrowserIDEnum();this.interval=0;this.releaseVersion="OVVRELEASEVERSION";this.buildVersion="OVVBUILDVERSION";var e={},c=[],b=[];this.addAsset=function(a){e.hasOwnProperty(a.getId())||(this.asset=e[a.getId()]=a)};this.removeAsset=function(a){delete e[a.getId()]};this.getAssetById=function(a){return e[a]};this.getAds=function(){var a={},b;for(b in e)e.hasOwnProperty(b)&&(a[b]=e[b]);return a};this.subscribe=function(d,h, e,m){if(m)for(var g in c[h])c[h][g]&&a(c[h][g].eventName,d)&&f(function(){e(h,c[h][g])});for(g in d)b[d[g]+h]||(b[d[g]+h]=[]),b[d[g]+h].push({Func:e})};this.publish=function(a,d,e){var g=Date.now?Date.now():(new Date).getTime();var h={eventName:a,eventTime:g,ovvArgs:e};c[d]||(c[d]=[]);1E3>c[d].length&&c[d].push(h);if(a&&d&&b[a+d]instanceof Array)for(e=0;e<b[a+d].length;e++){var k=b[a+d][e];k&&k.Func&&"function"===typeof k.Func&&f(function(){k.Func(d,h)})}};this.getAllReceivedEvents=function(a){return c[a]}; this.getViewPortSize=function(a){var b={width:Infinity,height:Infinity,area:Infinity};a.document.body&&(!isNaN(a.document.body.clientWidth)&&0<a.document.body.clientWidth&&(b.width=a.document.body.clientWidth),!isNaN(a.document.body.clientHeight)&&0<a.document.body.clientHeight&&(b.height=a.document.body.clientHeight));a.document.documentElement&&a.document.documentElement.clientWidth&&!isNaN(a.document.documentElement.clientWidth)&&(b.width=a.document.documentElement.clientWidth);a.document.documentElement&& a.document.documentElement.clientHeight&&!isNaN(a.document.documentElement.clientHeight)&&(b.height=a.document.documentElement.clientHeight);a.innerWidth&&!isNaN(a.innerWidth)&&(b.width=Math.min(b.width,a.innerWidth));a.innerHeight&&!isNaN(a.innerHeight)&&(b.height=Math.min(b.height,a.innerHeight));b.area=b.height*b.width;return b};var a=function(a,b){for(var c=0;c<b.length;c++)if(b[c]===a)return!0;return!1},f=function(a){try{var b=a();return void 0!==b?b:!0}catch(k){return!1}}};window.$fw_ovv=window.$fw_ovv|| Oa;for(var wa in Oa)window.$fw_ovv.hasOwnProperty(wa)||(window.$fw_ovv[wa]=Oa[wa]);window.$fw_ovv.addAsset(new function(d,e){var c=Math.sqrt(2),b=0,a=window.$fw_ovv.DEBUG?20:1,f,g=e.geometryViewabilityCalculator,h=function(){return null},k=function(){return null},m=new mb;this.checkViewability=function(a,c){L!=a&&(L=a,window.$fw_ovv.intersectionObserverSupported&&l.beginMonitoring(L));a=new J;a.id=d;a.inIframe=window.$fw_ovv.IN_IFRAME;a.geometrySupported=window.$fw_ovv.geometrySupported;a.focus="undefined"!== document.hidden&&!0===document.hidden?!1:window.$fw_ovv.IN_XD_IFRAME?!0:window.top.document.hasFocus?window.top.document.hasFocus():!0;if(!L)return a.error="Player not found!",a;if(window.$fw_ovv.intersectionObserverSupported&&c){a.technique=J.INTERSECTIONOBSERVER;var f=L;a.percentViewable=l.getPercentViewable();f=f.getBoundingClientRect?f.getBoundingClientRect():{top:-1,bottom:-1,left:-1,right:-1};a.objTop=f.top;a.objBottom=f.bottom;a.objLeft=f.left;a.objRight=f.right;a.geometrySupported&&(f=window.$fw_ovv.getViewPortSize(window), a.clientWidth=f.width,a.clientHeight=f.height);a.viewabilityState=50<=a.percentViewable?J.VIEWABLE:J.UNVIEWABLE;return a}a:{var e=window.getComputedStyle(L,null);if(e&&(c=e.getPropertyValue("visibility"),e=e.getPropertyValue("display"),"hidden"==c||"none"==e)){a.technique=J.CSS_INVISIBILITY;a.viewabilityState=J.UNVIEWABLE;c=!0;break a}c=!1}if(!0===c)if(window.$fw_ovv.DEBUG)a.cssViewabilityState=J.UNVIEWABLE;else return a;a:{c=L;e=pa(c);if(c.parentElement&&"hidden"==c.parentElement.style.overflow){var h= pa(c.parentElement);h.width*h.height<e.width*e.height&&(e=h)}h=e.left+12;var k=e.right-12,B=e.top+12,v=e.bottom-12,y=Math.floor(e.left+e.width/2),V=Math.floor(e.top+e.height/2);h=[{x:h,y:B},{x:y,y:B},{x:k,y:B},{x:h,y:V},{x:y,y:V},{x:k,y:V},{x:h,y:v},{x:y,y:v},{x:k,y:v}];for(f in h)if(h[f]&&0<=h[f].x&&0<=h[f].y&&(k=c.ownerDocument.elementFromPoint(h[f].x,h[f].y),null!=k&&!k.isEqualNode(c)&&!c.contains(k)&&!k.contains(c)&&(B=(k.parentElement?((k.parentElement.getAttribute("class")||"")+(k.parentElement.getAttribute("classes")|| "")).toLowerCase():"")+((k.getAttribute("class")||"")+(k.getAttribute("classes")||"")).toLowerCase(),v=0<=B.indexOf("ima")&&k.style.width==c.style.width&&k.style.height==c.style.height,0>B.indexOf("freewheel")&&0>B.indexOf("sticky")&&!v&&0<q(e,pa(k))&&(a.percentObscured=100*q(e,pa(k)),50<a.percentObscured)))){a.percentViewable=100-a.percentObscured;a.technique=J.DOM_OBSCURING;a.viewabilityState=J.UNVIEWABLE;f=!0;break a}f=!1}if(!0===f)if(window.$fw_ovv.DEBUG)a.domViewabilityState=J.UNVIEWABLE;else return a; if(!m.supportsBeacons()&&!1===a.geometrySupported&&(a.viewabilityState=J.UNMEASURABLE,!window.$fw_ovv.DEBUG))return a;if(a.geometrySupported){a.technique=J.GEOMETRY;f=L;a.percentObscured=a.percentObscured||0;c=window;try{for(;f.ownerDocument!=c.document&&c.parent&&c.parent!=c;)c=c.parent}catch(Ea){console.debug("Can't find player owner document in page. viewability will be unmeasurable")}f=g.getViewabilityState(f,c);f.error||(a.clientWidth=f.clientWidth,a.clientHeight=f.clientHeight,a.percentViewable= f.percentViewable-a.percentObscured,a.objTop=f.objTop,a.objBottom=f.objBottom,a.objLeft=f.objLeft,a.objRight=f.objRight);a.viewabilityState=50<=a.percentViewable?J.VIEWABLE:J.UNVIEWABLE;if(window.$fw_ovv.DEBUG)a.geometryViewabilityState=a.viewabilityState;else return a}f=w(0);c=A(0);f&&f.isViewable&&c?(f=z(c)&&f.isViewable(),a.beaconsSupported=!f):a.beaconsSupported=!1;if(L&&13===b)if(a.beaconsSupported){a.technique=J.BEACON;if(L&&13===b){e=c=f=h=0;a.beacons=Array(13);k=L.getClientRects?L.getClientRects()[0]: {top:-1,bottom:-1,left:-1,right:-1};a.objTop=k.top;a.objBottom=k.bottom;a.objLeft=k.left;a.objRight=k.right;for(k=0;13>=k;k++)if(0!==k&&(v=w(k),B=A(k),v=v.isViewable(),B=z(B),a.beacons[k]=v&&B,v))switch(h++,k){case 2:case 3:case 4:case 5:f++;break;case 6:case 7:case 8:case 9:c++;break;case 10:case 11:case 12:case 13:e++}13===h?f=!0:(h=a.beacons,f=!1===h[1]?3<=e||3<=c||3<=f?null:!1:!0===h[1]&&(!0===h[2]&&!0===h[3]||!0===h[2]&&!0===h[4]||!0===h[3]&&!0===h[5]||!0===h[4]&&!0===h[5])||!0===h[1]&&4==c? !0:h[2]&&h[5]&&!(h[6]&&h[10]&&h[1]&&h[13]&&h[9])||h[4]&&h[3]&&!(h[8]&&h[12]&&h[1]&&h[11]&&h[7])?null:!1)}else f=null;null===f?(a.viewabilityState=J.UNMEASURABLE,window.$fw_ovv.DEBUG&&(a.beaconViewabilityState=J.UNMEASURABLE)):(a.viewabilityState=f?J.VIEWABLE:J.UNVIEWABLE,window.$fw_ovv.DEBUG&&(a.beaconViewabilityState=f?J.VIEWABLE:J.UNVIEWABLE))}else a.viewabilityState=J.UNMEASURABLE;else a.technique=J.BEACON,a.viewabilityState=J.NOT_READY;window.$fw_ovv.DEBUG&&(a.technique="",null===a.geometryViewabilityState&& null===a.beaconViewabilityState?a.viewabilityState=J.UNMEASURABLE:(f=a.beaconViewabilityState===J.VIEWABLE,c=a.domViewabilityState===J.VIEWABLE,e=a.geometryViewabilityState===J.VIEWABLE,a.viewabilityState=a.cssViewabilityState===J.VIEWABLE||c||f||e?J.VIEWABLE:J.UNVIEWABLE));return a};this.beaconStarted=function(a){window.$fw_ovv.DEBUG&&w(a).debug&&w(a).debug();if(0!==a&&(b++,L&&13===b))L["onJsReady"+d]()};this.dispose=function(){for(var a=1;13>=a;a++){var c=A(a);c&&(delete b[a],c.parentElement.removeChild(c))}clearInterval(window.$fw_ovv.positionInterval); window.$fw_ovv.removeAsset(this)};this.getId=function(){return d};this.getPlayer=function(){return L};var q=function(a,b){return Math.max(0,Math.min(a.right,b.right)-Math.max(a.left,b.left))*Math.max(0,Math.min(a.bottom,b.bottom)-Math.max(a.top,b.top))/(a.width*a.height)};e=function(b){var c="LRU_FWS_NOCAEB".split("").reverse().join("");if(""!=b&&b!=c){for(c=0;13>=c;c++){var f=document.createElement("DIV");f.id="OVVBeaconContainer_"+c+"_"+d;f.style.position="absolute";f.style.zIndex=window.$fw_ovv.DEBUG? 99999:-99999;f.innerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+a+'" height="'+a+'"><param name="movie" value="'+b+'" /><param name="quality" value="low" /><param name="flashvars" value="id='+d+"&index="+c+'" /><param name="bgcolor" value="#ffffff" /><param name="wmode" value="transparent" /><param name="allowScriptAccess" value="always" /><param name="allowFullScreen" value="false" />\x3c!--[if !IE]>--\x3e<object id="OVVBeacon_'+c+"_"+d+'" type="application/x-shockwave-flash" data="'+ b+'" width="'+a+'" height="'+a+'"><param name="quality" value="low" /><param name="flashvars" value="id='+d+"&index="+c+'" /><param name="bgcolor" value="#ff0000" /><param name="wmode" value="transparent" /><param name="allowScriptAccess" value="always" /><param name="allowFullScreen" value="false" />\x3c!--<![endif]--\x3e</object>';document.body.insertBefore(f,document.body.firstChild)}F.bind(this)();this.positionInterval=setInterval(F.bind(this),500)}};var v=function(){for(var a=0;13>=a;a++){var b= document.createElement("iframe");b.name=b.id="OVVFrame_"+d+"_"+a;b.width=window.$fw_ovv.DEBUG?20:1;b.height=window.$fw_ovv.DEBUG?20:1;b.frameBorder=0;b.style.position="absolute";b.style.zIndex=window.$fw_ovv.DEBUG?99999:-99999;b.src="javascript: window.isInViewArea = undefined; window.wasInViewArea = false; window.isInView = undefined; window.wasViewed = false; window.started = false; window.index = "+a+';window.isViewable = function() { return window.isInView; }; var cnt = 0; setTimeout(function() {var span = document.createElement("span");span.id = "ad1";document.body.insertBefore(span, document.body.firstChild);},300);setTimeout(function() {setInterval(function() { ad1 = document.getElementById("ad1");ad1.innerHTML = window.mozPaintCount > cnt ? "In View" : "Out of View";var paintCount = window.mozPaintCount; window.isInView = (paintCount>cnt); cnt = paintCount; if (parent.$fw_ovv.DEBUG == true) {if(window.isInView === true){document.body.style.background = "green";} else {document.body.style.background = "red";}}if (window.started === false) {parent.$fw_ovv.getAssetById("'+ d+'").beaconStarted(window.index);window.started = true;}}, 500)},400);';document.body.insertBefore(b,document.body.firstChild)}F.bind(this)();this.positionInterval=setInterval(F.bind(this),500)},F=function(){if(L&&13===b){var d=L.getClientRects()[0];if(d&&(!f||!d||f.left!==d.left||f.right!==d.right||f.top!==d.top||f.bottom!==d.bottom)){f=d;for(var g=d.right-d.left,h=d.bottom-d.top,m=g/(1+c),e=h/(1+c),q=g/c,k=h/c,B=0;13>=B;B++){var v=Math.round(5*Math.random()),V=d.left+document.body.scrollLeft,w= d.top+document.body.scrollTop;switch(B){case 0:w=V=-1E5;break;case 1:V+=(g-a)/2+v;w+=(h-a)/2+v;break;case 2:V+=v;w+=v;break;case 3:w+=v;V+=g-a-v;break;case 4:V+=v;w+=h-a-v;break;case 5:V+=g-a-v;w+=h-a-v;break;case 6:V+=(g-q)/2+v;w+=(h-k)/2+v;break;case 7:V+=(g-q)/2+q-v;w+=(h-k)/2+v;break;case 8:V+=(g-q)/2+v;w+=(h-k)/2+k-v;break;case 9:V+=(g-q)/2+q-v;w+=(h-k)/2+k-v;break;case 10:V+=(g-m)/2+v;w+=(h-e)/2+v;break;case 11:V+=(g-m)/2+m-v;w+=(h-e)/2+v;break;case 12:V+=(g-m)/2+v;w+=(h-e)/2+e-v;break;case 13:V+= (g-m)/2+m-v,w+=(h-e)/2+e-v}6<=B&&(V-=a/2,w-=a/2);V=Math.round(V);w=Math.round(w);v=A(B);v.style.left=V+"px";v.style.top=w+"px"}}}},z=function(a){if(!a)return!1;var b=Math.max(document.body.clientWidth,window.innerWidth),c=Math.max(document.body.clientHeight,window.innerHeight);a=a.getClientRects()[0];return a.top<c&&0<a.bottom&&a.left<b&&0<a.right},w=function(a){return h(a)}.memoize(),B=function(a){return document.getElementById("OVVBeacon_"+a+"_"+d)},K=function(a){a=document.getElementById("OVVFrame_"+ d+"_"+a);var b=null;a&&(b=a.contentWindow);return b},A=function(a){return k(a)}.memoize(),y=function(a){return document.getElementById("OVVBeaconContainer_"+a+"_"+d)},T=function(a){return document.getElementById("OVVFrame_"+d+"_"+a)};var L=function(){for(var a=document.getElementsByTagName("embed"),b=0;b<a.length;b++)if(a[b][d]||a[b]["onJsReady"+d])return a[b];a=document.getElementsByTagName("object");for(b=0;b<a.length;b++)if(a[b][d]||a[b]["onJsReady"+d])return a[b];return null}();if(window.$fw_ovv.intersectionObserverSupported){var l= new nb;L&&(l.beginMonitoring(L),L["onJsReady"+d]&&setTimeout(function(){L["onJsReady"+d]()},5))}else 0==window.$fw_ovv.geometrySupported||window.$fw_ovv.DEBUG?window.$fw_ovv.browser.ID===window.$fw_ovv.browserIDEnum.Firefox?(h=K,k=T,v.bind(this)()):(h=B,k=y,e.bind(this)("BEACON_SWF_URL")):L&&L["onJsReady"+d]&&setTimeout(function(){L["onJsReady"+d]()},5)}("OVVID",{geometryViewabilityCalculator:new function(){this.getViewabilityState=function(c,b){var a=window;try{if(c&&c.ownerDocument)for(;c.ownerDocument!= a.document&&a.parent&&a.parent!=a;)a=a.parent}catch(m){console.debug("getMinViewPortSize: Can't find player owner document in page. ")}for(var f=window.$fw_ovv.getViewPortSize(a),g=f.area;a!=window.top;){a=a.parent;var h=window.$fw_ovv.getViewPortSize(a);h.area<g&&(g=h.area,f=h)}a=f;if(Infinity==a.area)return{error:"Failed to determine viewport"};f=pa(c);g=f.width*f.height;if(.5>a.area/g)b=Math.floor(100*a.area/g);else{var e=window.$fw_ovv.getViewPortSize(window.top);c=d(c,b);b=0==g?0<=f.top&&0<= f.left&&f.bottom<=(b.innerHeight||document.documentElement.clientHeight)&&f.right<=(b.innerWidth||document.documentElement.clientWidth)?100:0:Math.floor(100*c.width*c.height/g)}return{clientWidth:e.width,clientHeight:e.height,objTop:f.top,objBottom:f.bottom,objLeft:f.left,objRight:f.right,percentViewable:b}};var d=function(c,b){var a=b.parent,f={width:0,height:0,left:0,right:0,top:0,bottom:0};c&&(f=e(c,b),b!=a&&(c=d(b.frameElement,a),c.bottom<f.bottom&&(c.bottom<f.top&&(f.top=c.bottom),f.bottom=c.bottom), c.right<f.right&&(c.right<f.left&&(f.left=c.right),f.right=c.right),c.top>f.top&&(c.top>f.bottom&&(f.bottom=c.top),f.top=c.top),c.left>f.left&&(c.left>f.right&&(f.right=c.left),f.left=c.left)),f.height=Math.max(0,Math.min(b.top.innerHeight-f.top,f.bottom-Math.max(0,f.top))),f.width=Math.max(0,Math.min(b.top.innerWidth-f.left,f.right-Math.max(0,f.left))));return f},e=function(c,b){var a=b.parent,f={left:0,right:0,top:0,bottom:0},d=null;try{for(var h=c,k=c.offsetWidth*c.offsetHeight;h;)if(h=h.parentElement, "hidden"==h.style.overflow){var m=Math.max(h.scrollHeight,h.offsetHeight)*h.offsetWidth;m<k&&(k=m,d=h)}}catch(q){}c&&(c=pa(c),d&&(c=pa(d)),b.frameElement&&(f=e(b.frameElement,a)),b=c.top,a=c.left,f={left:a+f.left,right:Math.max(a,c.right)+f.left,top:b+f.top,bottom:Math.max(b,c.bottom)+f.top});return f}}}));var wb=function(d){var e,c=function(){var a={};return function(b,c){if(!a[b])try{a[b]=!0,(new Image).src="//fw.adsafeprotected.com/jsdiagnostic?code:vans-js_"+encodeURIComponent(e)+"_"+b+"&err:"+ encodeURIComponent(c.message)}catch(q){}}}(),b=function(a){try{(new Image).src="//pixel.adsafeprotected.com/mon?anId=10173&campId="+encodeURIComponent(e)+"&pubId="+encodeURIComponent("vans-js_"+a)}catch(k){c("smp",k)}},a=function(){var a,b=!1,d=Math.floor(1E5*Math.random()),g=function(a){a==d&&(b=!0,f.flushUnsentEvents());return b?"jv3":null},e=function(b){try{a(b?"block":"safe")}catch(z){c("ba",z)}};return{getVideoId:function(){return d},setNodeInterface:function(b,f){try{var h="blockAd"+d;var m= "IASid"+d;b.className+=" integral-vid-"+d;a=f||function(){};b[h]=e;b[m]=g;b.getVersion=function(){return"3.1.0"}}catch(K){c("sni")}},isEstablished:function(){return b}}}(),f=function(){var f=[],d=function(d){if(a.isEstablished())try{window.postMessage(JSON.stringify(d),"*")}catch(q){b("pm_err")}else try{f.push(d)}catch(q){c("cm",q)}};return{sendEvent:function(b,f){try{d({messageType:b,id:a.getVideoId(),time:(new Date).getTime(),partner:e,eventData:f})}catch(v){c("se",v)}},flushUnsentEvents:function(){try{f.forEach(d)}catch(m){c("fue", m)}}}}(),g=function(){var f=function(b,f){var g=d||"fw.adsafeprotected.com",h=function(a){var b="";Object.keys(a).forEach(function(c){"advEntityId"!=c&&"pubEntityId"!=c&&"partner"!=c&&(b+="&"+c+"="+a[c])});return b};try{var e="//"+g+b+"?videoId="+a.getVideoId()+h(f)}catch(w){c("bsurl",w)}return e},g=function(a,c){try{var d=document.createElement("script");d.src=f(a,c);if(document.body)document.body.insertBefore(d,document.body.firstChild);else if(document.head)document.head.appendChild(d);else if(document.documentElement)document.documentElement.appendChild(d); else throw Error();}catch(F){b("inj_err")}};return{initCM:function(f,d){if(!f.partner)throw Error("missing partnerId");e=f.partner;try{if(!f.anId)throw Error("missing anId");b("cminit");a.setNodeInterface(d,void 0);g("/jsvid",f)}catch(v){c("icm",v)}},initFW:function(f,d,h){if(!f.partner)throw Error("missing partnerId");e=f.partner;try{if(!f.advEntityId||!f.pubEntityId)throw Error("missing client id: advEntityId: "+f.advEntityId+" ,pubEntityId: "+f.pubEntityId);b("fwinit");var m="/fwjsvid/st/"+f.advEntityId+ "/"+f.pubEntityId+"/skeleton.js";a.setNodeInterface(d,h);g(m,f)}catch(z){c("ifw",z)}}}}();return{initFW:g.initFW,initCM:g.initCM,sendEvent:f.sendEvent}},fb,p;(function(d){function e(a,b){var c=b&&b.split("/"),f=q.map,d=f&&f["*"]||{},g,h,e;if(a&&"."===a.charAt(0)&&b){c=c.slice(0,c.length-1);a=c.concat(a.split("/"));for(b=0;g=a[b];b++)if("."===g)a.splice(b,1),--b;else if(".."===g){if(1===b&&(".."===a[2]||".."===a[0]))return!0;0<b&&(a.splice(b-1,2),b-=2)}a=a.join("/")}if((c||d)&&f)for(g=a.split("/"), b=g.length;0<b;--b){var m=g.slice(0,b).join("/");if(c)for(e=c.length;0<e;--e)if(h=f[c.slice(0,e).join("/")])if(h=h[m]){var k=h;break}if(k=k||d[m]){g.splice(0,b,k);a=g.join("/");break}}return a}function c(a,b){return function(){return z.apply(d,F.call(arguments,0).concat([a,b]))}}function b(a){return function(b){return e(b,a)}}function a(a){return function(b){k[a]=b}}function f(a){if(m.hasOwnProperty(a)){var b=m[a];delete m[a];v[a]=!0;w.apply(d,b)}if(!k.hasOwnProperty(a))throw Error("No "+a);return k[a]} function g(a,c){var d,g=a.indexOf("!");if(-1!==g){var h=e(a.slice(0,g),c);a=a.slice(g+1);a=(d=f(h))&&d.normalize?d.normalize(a,b(c)):e(a,c)}else a=e(a,c);return{f:h?h+"!"+a:a,n:a,p:d}}function h(a){return function(){return q&&q.config&&q.config[a]||{}}}var k={},m={},q={},v={},F=[].slice,z;var w=function(b,e,q,w){var A=[],B;w=w||b;if("function"===typeof q){e=!e.length&&q.length?["require","exports","module"]:e;for(B=0;B<e.length;B++){var y=g(e[B],w);var F=y.f;if("require"===F)A[B]=c(b);else if("exports"=== F){A[B]=k[b]={};var z=!0}else if("module"===F)var K=A[B]={id:b,uri:"",exports:k[b],config:h(b)};else if(k.hasOwnProperty(F)||m.hasOwnProperty(F))A[B]=f(F);else if(y.p)y.p.load(y.n,c(w,!0),a(F),{}),A[B]=k[F];else if(!v[F])throw Error(b+" missing "+F);}e=q.apply(k[b],A);b&&(K&&K.exports!==d&&K.exports!==k[b]?k[b]=K.exports:e===d&&z||(k[b]=e))}else b&&(k[b]=q)};fb=z=function(a,b,c,h){if("string"===typeof a)return f(g(a,b).f);a.splice||(q=a,b.splice?(a=b,b=c,c=null):a=d);b=b||function(){};h||"undefined"== typeof h?w(d,a,b,c):setTimeout(function(){w(d,a,b,c)},15);return z};z.config=function(a){q=a;return z};p=function(a,b,c){b.splice||(c=b,b=[]);m[a]=[a,b,c]};p.amd={jQuery:!0}})();p("build/almond",[],function(){});p("mod",{load:function(d,e,c,b){e(["mustang/"+d.split(".").join("/")],function(a){return c(a)})}});p("mustang/com/stickyadstv/event/StickyEvent",[],function(){new t("com.stickyadstv.event.StickyEvent");return N.extend({MOUSE_OVER:"mouseenter",MOUSE_OUT:"mouseout"},new function(){this.init= function(d,e,c){if(c){if(n(c.stopPropagation)&&n(c.cancelBubble))this.detail=c;else{for(var b in c){var a=c[b];x(a)||(this[b]=a)}this._domEvent=c}this.target||(this.target=c.srcElement||document)}else this._domEvent={},this.detail=null;this.type=d;this.target=e;this._isDefaultPrevented=this._isPropagationStopped=this._isImmediatePropagationStopped=!1};this.isPropagationStopped=function(){if(this._isPropagationStopped)return!0;var d=this._domEvent;return d?d.cancelBubble:!1};this.isImmediatePropagationStopped= function(){return this._isImmediatePropagationStopped};this.isDefaultPrevented=function(){return this._isDefaultPrevented};this.preventDefault=function(){this._isDefaultPrevented=!0;var d=this._domEvent;d&&(d.preventDefault?d.preventDefault():d.returnValue=!1)};this.stopPropagation=function(){this._isPropagationStopped=!0;var d=this._domEvent;d&&(d.stopPropagation&&d.stopPropagation(),d.cancelBubble=!0)};this.stopImmediatePropagation=function(){this._isImmediatePropagationStopped=!0;var d=this._domEvent; d&&(d.stopImmediatePropagation?d.stopImmediatePropagation():this.stopPropagation())};this.domEvent=function(){return this._domEvent}})});p("mustang/com/stickyadstv/event/EventDispatcher",["mod!com.stickyadstv.event.StickyEvent"],function(d){function e(a,b){if(a==b)return!0;if(!a||!b||a.length!=b.length)return!1;for(var c=0;c<a.length;++c)if(a[c]!=b[c])return!1;return!0}function c(a,c){if(a.useCapture!=c.useCapture){if(a.useCapture)return 1;if(c.useCapture)return-1;b.info("Unexpected left.useCapture or right.useCapture value")}c= c.options||{};return G((a.options||{}).priority,0)-G(c.priority,0)}var b=new t("com.stickyadstv.event.EventDispatcher"),a=N.extend(new function(){this.init=function(a,b){this._entries=[];this._type=b;this._source=a;this.dispatchCapture=u(this._dispatchCapture,this);this.dispatchBubble=u(this._dispatchBubble,this)};this.removeAll=function(){for(;this._entries.length;)this._removeEntry(this._entries,0)};this._getVPAIDEventArgs=function(a){return[a]};this._dispatch=function(a,c){c=new d(this._type,this._source, c);if(c.isPropagationStopped())return c;var f=this._getVPAIDEventArgs(c);for(X(c.detail)&&(f=f.concat(c.detail));a.length&&!c.isImmediatePropagationStopped();)try{a.shift().realHandler.apply(null,f)}catch(k){b.error("error while dispatching '"+this._type+"' event",k)}return c};this._dispatchCapture=function(a){return this._dispatch(Y(this._entries,function(a){return a.useCapture}),a)};this._dispatchBubble=function(a){return this._dispatch(Y(this._entries,function(a){return!a.useCapture}),a)};this.dispatch= function(a){return this._dispatch(ba(this._entries),a)};this.find=function(a){return U(this._entries,a)};this.each=function(a){return r(this._entries,a)};this._remove=function(a,b,c){!X(c)&&c&&(c=[c]);for(var f=0;f<a.length;){var d=a[f],g=d,h=b;if(g=n(h)||g.handler==h)g=c,g=n(g)||e(d.context,g);g?this._removeEntry(a,f):f++}};this.remove=function(a,b){this._remove(this._entries,a,b)};this._removeEntry=function(a,b){var c=a[b];a.splice(b,1);this._source._onListenerRemoved(this._type,c.realHandler,C({listenerCount:a.length}, c.options))};this._addEntry=function(a,b,d,k,m){var f=S(m.useCapture,!1);if(!U(a,function(a){return a.handler==m.handler&&e(a.context,k)&&f==a.useCapture})){b={useCapture:f,handler:b,context:k,realHandler:d,options:m};m.dispatch=f?this.dispatchCapture:this.dispatchBubble;for(var g=0;g<a.length&&!(0>c(a[g],b));++g);g==a.length?a.push(b):a.splice(g,0,b);this._source._onListenerAdded(this._type,d,m)}};this.add=function(a,b){b=b||{};b.handler=b.handler||a;"boolean"==typeof b.context&&(b.one=b.context, delete b.context);var c=b.handler,f=b.context;f&&(X(f)||(f=[f]),c=u.apply(null,[c].concat(f)));if(b.one){var d=c;c=u(function(c){this.remove(a,b.context);d(c)},this)}this._addEntry(this._entries,a,c,f,b)}});return N.extend(new function(){this.init=function(){this._eventSent={}};this._dispatcher=function(a,b){if(n(a))return this._dispatcherMap;this._dispatcherMap||(this._dispatcherMap={});if(n(b))return this._dispatcherMap[a];this._dispatcherMap[a]=b;return this};this._onListenerAdded=function(a,b){}; this._forwardEvent=function(a){var b=this._dispatchEvent(a.type,a);b.isDefaultPrevented()&&a.preventDefault();return b};this._forwardOnce=function(a){var b=a.type;return this._eventSent[b]?new d(b):this._forwardEvent(a)};this._dispatchOnce=function(a,b){return this._eventSent[a]?new d(a):this._dispatchEvent(a,b)};this.fire=function(a,b){return this._dispatchEvent(a,b)};this._dispatchEvent=function(a,b){this._eventSent[a]=!0;var c=this._dispatcher(a);return c?c.dispatch(b):new d(a)};this._eachDispatcher= function(a,b,c){if(!a)throw Error("Unexcepted event type.");r(a.split(" "),function(a){if(a){var d=this._dispatcher(a);d&&b.call(c,d,a)}},this);return this};this._addListener=function(b,c,d){if(!x(c))throw Error("EventDispatcher: Bad argument.");if(!b)throw Error("Unexcepted event type.");r(H(b)?b.split(" "):b,function(b){if(b){var f=this._dispatcher(b);f||(f=new a(this,b),this._dispatcher(b,f));f.add(c,d)}},this);return this};this.one=function(a,b,c,d,e,q){return this._addListener(a,b,{context:c, useCapture:d,priority:e,weak:q,one:!0})};this.addEventListener=function(a,b,c){return this.on(a,b,null,c)};this.on=function(a,b,c,d,e,q){return this._addListener(a,b,{context:c,useCapture:d,priority:e,weak:q})};this._onListenerRemoved=function(a,b){};this._remListener=function(a,b,c){a=this._dispatcher(a);if(!a)return this;a.remove(b,c);return this};this.removeEventListener=this.off=function(a,b,c){r(H(a)?a.split(" "):a,function(a){a&&this._remListener(a,b,c)},this);return this};this.hasListener= function(a,b){return(a=this._dispatcher(a))?null!=a.find(function(a){return a.options.useCapture==b&&!a.options.weak}):!1};this._eachEventType=function(a,b){r(this._dispatcherMap,function(c,d){return a.call(b,d)})};this._eachListener=function(a,b){r(this._dispatcherMap,function(c,d){c.each(function(c){a.call(b,d,c.handler,c.options)})})};this.removeAllListener=function(){var a=this._dispatcherMap;this._dispatcherMap={};r(a,function(a,b){a.removeAll()})}})});p("mustang/com/stickyadstv/vast/VastError", [],function(){var d=new t("com.stickyadstv.vast.VastError"),e={100:"XML parsing error.",101:"VAST schema validation error.",102:"VAST version of response not supported.",200:"Video player received an ad type that it was not expecting and/or cannot display.",201:"Video player expecting different linearity.",202:"Video player expecting different duration.",203:"Video player expecting different size.",204:"Ad category was required but not provided.",300:"General Wrapper error.",301:"Timeout of VAST URI provided in Wrapper element, or of VAST URI provided in a subsequent Wrapper element. Includes request errors such as invalid URI, unreachable or request timeout for URI, and security or other exceptions related to requesting a VAST URI.", 302:"Wrapper limit reached, as defined by the video player. Too many Wrapper responses have been received with no InLine response.",303:"No ads VAST response after one or more Wrappers. Also includes number of empty VAST responses from fallback.",304:"InLine response returned ad unit that failed to result in ad display within defined time limit.",400:"General linear error. Video player is unable to display the linear ad.",401:"File not found. Unable to find Linear/MediaFile from URI.",402:"Timeout of MediaFile URI.", 403:"Could not find MediaFile that is supported by this video player, based on the attributes of the MediaFile element.",405:"Problem displaying MediaFile.",406:"Mezzanine was required but not provided. Ad not served.",407:"Mezzanine is in the process of being downloaded for the first time. ",408:"Conditional ad rejected.",409:"Interactive unit in the InteractiveCreativeFile node was not executed",410:"Verification unit in the Verification node was not executed",411:"Mezzanine was provided as required, but file did not meet required specification. Ad not served.", 500:"General NonLinearAds error.",501:"Unable to display NonLinear Ad because creative dimensions do not align with creative display area (i.e., creative dimension too large).",502:"Unable to fetch NonLinearAds/NonLinear resource.",503:"Could not find NonLinearresource with supported type.",600:"General CompanionAds error.",601:"Unable to display companion because creative dimensions do not fit within Companion display area (i.e., no available space).",602:"Unable to display Required Companion.", 603:"Unable to fetch CompanionAds/Companion resource.",604:"Could not find Companion resource with supported type.",900:"Undefined error.",901:"General VPAID error."},c=N.extend({messages:e,getMessage:function(b){return b in e?e[b]:""}},new function(){});c.prototype=Error();c.prototype.init=function(b,a){d.info("Initialize VastError Class");this.name="VastError";this.errorcode=a;this.message=b;this.stack=I._data.test?"":Error().stack};c.fromEventData=function(b){if(b&&(b instanceof Error||b instanceof TypeError))return b;var a="Unknown error",f=900;b&&(b.detail&&(b=b.detail),b.message?a=b.message:b.reason?a=b.reason:d.info("Unexpected data value, Unknown error"),b.errorcode&&(f=b.errorcode));return new c(a,f)};return c});p("mustang/com/stickyadstv/vpaid/Base",["mod!com.stickyadstv.event.EventDispatcher","mod!com.stickyadstv.vast.VastError"],function(d,e){var c=new t("com.stickyadstv.vpaid.Base"),b={AD_LOADED:"AdLoaded",AD_STARTED:"AdStarted",AD_STOPPED:"AdStopped",AD_SKIPPED:"AdSkipped",AD_SKIPPABLE_STATE_CHANGE:"AdSkippableStateChange", AD_SIZE_CHANGE:"AdSizeChange",AD_LINEAR_CHANGE:"AdLinearChange",AD_DURATION_CHANGE:"AdDurationChange",AD_REMAINING_TIME_CHANGE:"AdRemainingTimeChange",AD_EXPANDED_CHANGE:"AdExpandedChange",AD_VOLUME_CHANGE:"AdVolumeChange",AD_IMPRESSION:"AdImpression",AD_VIDEO_START:"AdVideoStart",AD_VIDEO_FIRST_QUARTILE:"AdVideoFirstQuartile",AD_VIDEO_MIDPOINT:"AdVideoMidpoint",AD_VIDEO_THIRD_QUARTILE:"AdVideoThirdQuartile",AD_VIDEO_COMPLETE:"AdVideoComplete",AD_CLICK_THRU:"AdClickThru",AD_INTERACTION:"AdInteraction", AD_USER_ACCEPT_INVITATION:"AdUserAcceptInvitation",AD_USER_MINIMIZE:"AdUserMinimize",AD_USER_CLOSE:"AdUserClose",AD_PAUSED:"AdPaused",AD_PLAYING:"AdPlaying",AD_LOG:"AdLog",AD_ERROR:"AdError"},a=C({AD_VAST_LOADED:"AdVastLoaded",AD_PRE_LOADED:"AdPreLoaded",AD_DISPOSE:"adDispose",EXTERNAL_AD_SKIPPED:"extAdSkipped",AD_COMPLETE:"adComplete",AD_SLOT_COMPLETE:"adSlotComplete",VIDEO_ENTER_FULLSCREEN:"fullscreen",VIDEO_EXIT_FULLSCREEN:"exitFullscreen",SALES_OPPORTUNITY:"salesOpportunity",OPEN_CONTAINER:"OpenContainer"}, b);return d.extend({events:a,isVPAIDEvent:function(a){a=a||"";return!ha(Y(b,function(b,c){return b==a}))}},new function(){this.init=function(){this._super();this._vpaid2=!1};this.handshakeVersion=function(a){if(0==a.indexOf("2."))return this._vpaid2=!0,"2.0";this._vpaid2=!1;return"1.1"};this.adSequenceNumber=this.adSequenceNumber=function(){var a=-1;this._ad&&"adSequenceNumber"in this._ad&&(a=this._ad.adSequenceNumber());return a};this.setSequenceIndex=this.setSequenceIndex=function(a,b){this._ad&& "setSequenceIndex"in this._ad&&this._ad.setSequenceIndex(a,b)};this._checkVPAID2=function(a){(a=a.handshakeVersion("2.0"))&&0!=a.indexOf("2.")&&c.warn("VPAID 2 : Unsupported version : '"+a+"'")};this._checkAbortState=function(){if(this._stopRequest)throw Error("Ad aborted.");};this._catchError=function(a){a=e.fromEventData(a);this._dispatchEvent("AdError",a)};this.whoRU=function(){var a="UNKNOWN - No _logger set on this object.";this._logger&&(a=this._logger._name);1<this._adsNumber&&(a+="\n ->SEQUENTIAL, _ads.length: "+ this._adsNumber+"\n current ad:");this._ad&&(a+="\n\t _ad: "+("function"==typeof this._ad.whoRU?this._ad.whoRU():"External Ad."));return a};this._bubble=function(a){return u(function(b){a&&a.call(this,b);this._forwardEvent(b)},this)};this.adMediaDuration=function(){return"undefined"!=typeof this._ad&&"adMediaDuration"in this._ad?this._ad.adMediaDuration():"undefined"!=typeof this.adDuration?"function"==typeof this.adDuration?this.adDuration():this.adDuration:0};this.clickThrough=function(){this._ad&& "function"==typeof this._ad.clickThrough&&this._ad.clickThrough()}})});p("mustang/com/stickyadstv/vpaid/iab/Adapter",["mod!com.stickyadstv.vpaid.Base"],function(d){new t("com.stickyadstv.vpaid.iab.Adapter");return d.extend(new function(){this.init=function(d,c){this._super();this._environments=d;this._factory=c};this.initAd=function(e,c,b,a,f,g){"object"===typeof f&&(f.AdParameters=f.AdParameters);"object"===typeof g&&(g.duration=g.duration,g.frameSlot=g.frameSlot,g.playerSize=g.playerSize,g.slot= g.slot,g.supportsFlash=g.supportsFlash,g.supportsJavascript=g.supportsJavascript,g.videoAd=g.videoAd,g.videoSlot=g.videoSlot,g.videoSlotCanAutoPlay=g.videoSlotCanAutoPlay,g.videoSlotClass=g.videoSlotClass,g.wrapperExtensions=g.wrapperExtensions,g.zoneId=g.zoneId,g.learnMoreButton=g.learnMoreButton,g.learnMoreButtonText=g.learnMoreButtonText);this._factory(g,aa(new function(){this.onSuccess=function(h){var k=h.ad;this._checkVPAID2(k);[{type:"AdError",function:function(a){return a.detail&&a.detail.message? [a.detail.message]:a.message?[a.message]:[""]}},{type:"AdLog",function:function(a){return a.detail&&a.detail.message?[a.detail.message]:a.message?[a.message]:[""]}}].forEach(function(a){this._dispatcher(a.type)&&(this._dispatcher(a.type)._getVPAIDEventArgs=a.function)},this);r(d.events,function(a){k.on(a,this._forwardEvent,this)},this);this._ad=k;h={};for(var m in g)"frameSlot"!=m&&"duration"!=m&&"fullscreen"!=m&&(h[m]=g[m]);this._ad.initAd(e,c,b,a,f,C({},h,this._environments))};this.onError=function(a){this._dispatchEvent("AdError", a)}},this))};this.subscribe=function(d,c,b){this.on(c,d,b)};this.unsubscribe=function(d,c){this.off(c,d)};this.resizeAd=function(d,c,b){this._width=d;this._height=c;this._ad.resizeAd(d,c,b)};this.handshakeVersion=function(d){return"2.0"};this.startAd=function(){this._ad.startAd()};this.pauseAd=function(){this._ad.pauseAd()};this.stopAd=function(){this._ad.stopAd()};this.resumeAd=function(){this._ad.resumeAd()};this.expandAd=function(){this._ad.expandAd()};this.collapseAd=function(){this._ad.collapseAd()}; this.setAdVolume=function(d){this._ad.adVolume(d)};this.getAdVolume=function(){return this._ad.adVolume()};this.getAdExpanded=function(){return this._ad.adExpanded()};this.getAdLinear=function(){return this._ad.adLinear()};this.getAdRemainingTime=function(){return this._ad.adRemainingTime()};this.getAdSkippableState=function(){return this._ad.adSkippableState()};this.getAdIcons=function(){return this._ad.adIcons()};this.getAdCompanions=function(){return this._ad.adCompanions()};this.getAdWidth=function(){return this._ad.adWidth()}; this.getAdHeight=function(){return this._ad.adHeight()};this.skipAd=function(){return this._ad.stopAd()};this.getAdDuration=function(){return this._ad.adDuration()};this.dispose=function(){if(this._ad){var e=this._ad;r(d.events,function(c){e.off(c,this._forwardEvent,this)},this)}};this.initAd=this.initAd;this.subscribe=this.subscribe;this.unsubscribe=this.unsubscribe;this.resizeAd=this.resizeAd;this.handshakeVersion=this.handshakeVersion;this.startAd=this.startAd;this.pauseAd=this.pauseAd;this.stopAd= this.stopAd;this.resumeAd=this.resumeAd;this.expandAd=this.expandAd;this.collapseAd=this.collapseAd;this.setAdVolume=this.setAdVolume;this.getAdVolume=this.getAdVolume;this.getAdExpanded=this.getAdExpanded;this.getAdLinear=this.getAdLinear;this.getAdRemainingTime=this.getAdRemainingTime;this.getAdSkippableState=this.getAdSkippableState;this.getAdIcons=this.getAdIcons;this.getAdCompanions=this.getAdCompanions;this.getAdWidth=this.getAdWidth;this.getAdHeight=this.getAdHeight;this.skipAd=this.skipAd; this.getAdDuration=this.getAdDuration;this.dispose=this.dispose})});p("mustang/com/stickyadstv/utils/HedgehogUtils",[],function(){var d=new t("com.stickyadstv.utils.HedgehogUtils");return N.extend({getExtensionFromUrl:function(e){if("undefined"!=typeof e&&e.match(/[^=]*\.([a-zA-Z0-9]+)/))return e=e.match(/[^=]*\.([a-zA-Z0-9]+)/),e[e.length-1];d.warn("Can't get extension from url : "+e);return""},getParams:function(d){for(var c=document.getElementsByTagName("script"),b={},a=0;a<c.length;a++){var f= c[a].getAttribute("src");var e=f;if(e){var h=e.indexOf("?");e=e.indexOf("#");-1==h&&(h=1E3);-1==e&&(e=1E3);h=e==h?"":e>h?"?":"#"}else h="";e=new RegExp(d+"(.min|)\\.js(\\"+h+".*)?$","g");if(h&&f&&null!=f.match(e)){f=f.split(h);if(2>f.length)return;f.shift();h=f.join("&");h=h.replace(/[\?|#]/g,"&");f=[h];-1!=h.indexOf("&")&&(f=h.split("&"));for(e=0;e<f.length;e++)h=f[e].split("="),b[h[0]]=h[1]}}return b},getProtocol:function(d){if(location.protocol&&0==location.protocol.indexOf("https"))return"https"; var c="http",b=d;d&&-1<d.indexOf("-plugin")&&(b="mustang");if(d=U(document.getElementsByTagName("script"),function(a){return 0==Wa(a.src).indexOf(b)}))if(d=d.src.split("://")[0],"http"==d||"https"==d)c=d;return c},getDocumentProtocol:function(){var d="http:";0==document.location.protocol.indexOf("http")&&(d=document.location.protocol);return d}},{})});p("mustang/com/stickyadstv/vpaid/Wrapper",["mod!com.stickyadstv.vpaid.Base","mod!com.stickyadstv.vast.VastError"],function(d,e){var c=new t("com.stickyadstv.vpaid.Wrapper"); return d.extend({events:d.events},new function(){this.init=function(b,a,f){this._super();this._factory=b;this._completed=this._loaded=!1;this.__loadedHandler=u(function(a){this._loaded=!0},this);this._duration=G(f,-2);a=a||{};this._handlers={};r(d.events,function(b,c){this._handlers[b]=u(a[b]||this._defaultHandler(b),this)},this);this._logger=c};this._defaultHandler=function(b){return"AdStopped"==b||"AdError"==b?this._completeHandler:"AdDurationChange"==b?this._durationChangeHandler:this._forwardEvent}; this._durationChangeHandler=function(b){this._dispatchEvent(this._vpaid2?"AdDurationChange":"AdRemainingTimeChange")};this._completeHandler=function(b){this._dispose();this._forwardEvent(b)};this._registerListener=function(b){b.addEventListener("AdLoaded",this.__loadedHandler);r(this._handlers,function(a,c){b.addEventListener(c,a)})};this._unregisterVPAIDEvents=function(b){b.removeEventListener("AdLoaded",this.__loadedHandler);r(this._handlers,function(a,c){d.isVPAIDEvent(c)&&b.removeEventListener(c, a)})};this._create=function(b){if(this._factory)this._factory.call(this,b);else b.onSuccess({ad:this})};this.create=function(b){if(this._ad&&"create"in this._ad&&"function"==typeof this._ad.create)this._ad.create(b);else if(this._ad)b.onSuccess({ad:this});else this._create(aa(new function(){this.onSuccess=function(a){a.ad!=this&&(this._ad=a.ad);b.onSuccess({ad:this})};this.onError=function(a){D(function(){b.onError(a)},this)}},this))};this._initAd=function(b,a,d){try{this._registerListener(this._ad), this._checkVersion(this._ad),this._ad.initAd(this._width,this._height,this._viewMode,b,a,d)}catch(g){c.error(g),this._catchError(g),this._dispose()}};this._createAd=function(b,a,c){this.create(aa(new function(){this.onSuccess=function(d){this._initAd(b,a,c)};this.onError=function(a){this._catchError(a);this._dispose()}},this))};this.initAd=function(b,a,c,d,e,k){this._width=b;this._height=a;this._viewMode=c;try{this._createAd(d,e,k)}catch(m){this._catchError(m),this._dispose()}};this._checkVersion= function(b){if(x(b.handshakeVersion))if((b=b.handshakeVersion("2.0"))&&0==b.indexOf("2."))this._supportVPAID20=!0;else{if(b&&0!=b.indexOf("1."))throw new e("Unsupported vpaid version. ('"+b+"')",901);this._supportVPAID20=!1}};this._dispose=function(){if(this._ad){var b=this._ad;this._ad=null;this._unregisterVPAIDEvents(b)}};this.resizeAd=function(b,a,c){this._width=b;this._height=a;this._viewMode=c;this._ad&&this._ad.resizeAd(b,a,c)};this.loadAd=function(){var b=this._ad;x(b.loadAd)&&b.loadAd()}; this.startAd=function(){this._ad?this._ad.startAd():(this._dispatchEvent("AdStarted"),D(function(){this._dispatchEvent("AdStopped")},this))};this.pauseAd=function(){this._ad&&this._ad.pauseAd()};this.stopAd=function(){this._ad?this._ad.stopAd():this._dispatchEvent("AdStopped")};this.resumeAd=function(){this._ad.resumeAd()};this.expandAd=function(){this._ad.expandAd()};this.collapseAd=function(){this._ad.collapseAd()};this.skipAd=function(){"undefined"!=typeof this._ad.skipAd?this._ad.skipAd():this._ad.stopAd()}; this.adVolume=function(b){if(n(b))return this._ad?this._ad.adVolume():0;this._ad&&this._ad.adVolume(b)};this.adExpanded=function(){return this._ad?this._ad.adExpanded():!1};this.adLinear=function(){return this._ad?this._ad.adLinear():!0};this.adRemainingTime=function(){return this._ad?this._ad.adRemainingTime():0};this.adDuration=function(){var b=0;this._ad&&this._supportVPAID20&&(b=this._ad.adDuration());return 0!=b?b:this._duration};this.universalAdId=function(){return this._ad.universalAdId()}; this.universalAdIdValue=function(){return this._ad.universalAdIdValue()};this.universalAdIdRegistry=function(){return this._ad.universalAdIdRegistry()};this.adSkippableState=function(){return this._ad&&"adSkippableState"in this._ad?this._ad.adSkippableState():!1};this.adIcons=function(){return!1};this.adCompanions=function(){return""};this.adWidth=function(){return this._width};this.adHeight=function(){return this._height}})});p("mustang/com/stickyadstv/utils/URLUtils",["mod!com.stickyadstv.utils.HedgehogUtils"], function(d){new t("com.stickyadstv.utils.URLUtils");return N.extend({getSwf:function(e){return d.getDocumentProtocol()+"//cdn.stickyadstv.com/mustang/"+e+".swf"},isStickyAdServer:function(d){return(d=d.match(/^[http?s:\/\/]*ads\.stickyadstv\.com/))&&d.length},getDomainFromUrl:function(d){var c="";(d=d.match(/^(?:https?:\/\/)?(?:[^@\n]+@)?(?:www\.)?([^:\/\n\?=]+)/im))&&d.length&&(c=d[1],(d=c.match(/^[^\.]+\.(.+\..+)$/))&&d.length&&(c=d[1]));return c}},{})});p("mustang/com/stickyadstv/utils/BandwidthDetection", [],function(){var d=new t("com.stickyadstv.utils.BandwidthDetection"),e="https://cdn.stickyadstv.com/mustang/bandwidth-test-25ko";return N.extend({},new function(){this.init=function(c){this._xhr=new XMLHttpRequest;if((this._isAppleTV="undefined"!=typeof navigator&&"undefined"!=typeof navigator.userAgent?null!==navigator.userAgent.match(/AppleTV/i):!1)||0==c.indexOf("https"))e=e.replace("http:","https:");this._calculate()};this._calculate=function(){"undefined"==typeof this._bandwidth&&(this._xhr.addEventListener("loadend", u(function(c){this._isAppleTV&&this._calculateBitrate(c.loaded,(new Date).getTime()-this._timeOnDownloadStart);c.loaded==c.total&&(this._ended=!0,d.debug("bandwidth test - file downloaded"))},this)),this._xhr.addEventListener("loadstart",u(function(c){this._timeOnDownloadStart=(new Date).getTime();D(function(){"undefined"==typeof this._ended&&(this._xhr.abort(),d.debug("bandwidth test aborted after 3000 ms"))},3E3,this)},this)),this._xhr.addEventListener("progress",u(function(c){this._calculateBitrate(c.loaded, (new Date).getTime()-this._timeOnDownloadStart)},this)),this._xhr.open("GET",e+"?cachebuster="+(new Date).getTime(),!0),this._xhr.send())};this.getBandwidth=function(){return this._bandwidth};this._calculateBitrate=function(c,b){this._bandwidth=Math.round(c/b*1E3/1024);d.debug("bandwidth is "+this._bandwidth+" ko/s")}})});p("mustang/com/stickyadstv/utils/Browser",["mod!com.stickyadstv.utils.URLUtils","mod!com.stickyadstv.utils.HedgehogUtils","mod!com.stickyadstv.utils.BandwidthDetection"],function(d, e,c){function b(a,b,c,d){if("undefined"!=typeof XDomainRequest)d=new XDomainRequest,d.open(a,b);else if("undefined"!=typeof XMLHttpRequest){d=new XMLHttpRequest;var f="withCredentials"in d;d.open(a,b,!0);if(c){if(!f)throw Error("XMLHttpRequest not support credentials.");d.withCredentials="true"}}else throw Error("'XMLHttpRequest' not available.");return d}function a(a){var b="",c;for(c in a)"function"!=typeof a[c]&&(b+=""!=b?"&":"",b+=c+"="+a[c]);return b}function f(a){a&&(a.ontimeout=a.onload=a.onerror= null)}var g=new t("com.stickyadstv.utils.Browser"),h=ja.userAgent.toLowerCase(),k=ja.platform.toLowerCase(),m=k?/win/.test(k):/win/.test(h),q=k?/mac/.test(k):/mac/.test(h),v=/webkit/.test(h)?parseFloat(h.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):!1,F=!+"\v1",z=null,w=ja.userAgent;h=N.extend(new function(){this.init=function(){this._GDPRConsentCallbacks=[];this._CCPAConsentCallbacks=[];this._GPPCallbacks=[];this._ccpaParams=this._gdprParams=this._fwGDPRConsent=this._fwGDPR=null;this._CMP_GPP_VERSION= 1.1;this._gpp=null;this._isGppExecuted=!1;this._gppSid=this._gppString=this._tcfapiImpl=this._fwUSPString=null;this._retrieveGDPRData();this._retrieveCCPAData();this._findGppFunction();this._vpaidParams=new Q("undefined"==typeof e.getParams("vpaid-adapter")?e.getParams("vpaid-adapter.min"):e.getParams("vpaid-adapter"));""!=this._vpaidParams.string("_fw_gdpr","")&&(this._fwGDPR=this._vpaidParams.string("_fw_gdpr"));""!=this._vpaidParams.string("_fw_gdpr_consent","")&&(this._fwGDPRConsent=this._vpaidParams.string("_fw_gdpr_consent")); ""!=this._vpaidParams.string("gpp_string","")&&(this._gppString=this._vpaidParams.string("gpp_string"));""!=this._vpaidParams.string("gpp_sid","")&&(this._gppSid=this._vpaidParams.string("gpp_sid"));this._bandwidthDetection=new c(this._getPageProtocol());if(!this.isAppleTV()){var a="https://ads.stickyadstv.com/auto-user-sync?gdpr="+Number(this._fwGDPR)+"&gdpr_consent="+this._fwGDPRConsent;var b=this.getGPPValues();a=a+"&gpp_string="+b.gpp_string+"&gpp_sid="+b.gpp_sid;this.touch(a.replace("http:", this._getPageProtocol()))}};this.getContext=function(){if(this.isAppleTV())return"tvos";var a=this.getBrowser();return"other"==a&&this.isMobile()?this.isIOS()?"ios":"android":this.isMobile()?"mobile/"+a:"web/"+a};this.getBrowser=function(){return this.isIE()?"ie":this.isChrome()||navigator.webdriver?"chrome":this.isFirefox()?"firefox":this.isSafari()?"safari":"other"};this.open=function(a){a&&(g.debug("open link",a),this.getTopMostWindow().open(a,"_blank"))};this.getLanguage=function(){return navigator.language|| navigator.userLanguage};this.extractGetParamsFromUrl=function(a){var b=a.split("?");a=[];if(2>b.length)return a;b.shift();var c=b.join("&");c=c.replace(/[\?|#]/g,"&");b=[c];-1!=c.indexOf("&")&&(b=c.split("&"));for(var d=0;d<b.length;d++)c=b[d].split("="),a[c[0]]=decodeURI(c[1]);return a};this.getWindow=function(a){if(this.isIE()&&window!==document.parentWindow){a.parentWindow.execScript("document._parentWindow = window;","Javascript");var b=a._parentWindow;a._parentWindow=null;return b}return a.parentWindow|| a.defaultView};this.toDeviceCoord=function(a){var b=G(window.devicePixelRatio,1)||1;return Math.round(a*b)};this._getPageProtocol=function(){return this.isAppleTV()?"https:":0==this.getTopMostWindow().document.location.protocol.indexOf("https")?"https:":"http:"};this.flashPlayerVersion=function(){if(!this._flashPlayerVersion){var a=[0,0,0];if("undefined"!=typeof ja.plugins&&"object"==typeof ja.plugins[La])!(z=ja.plugins[La].description)||"undefined"!=typeof ja.mimeTypes&&ja.mimeTypes[ta]&&!ja.mimeTypes[ta].enabledPlugin|| (F=!1,z=z.replace(/^.*\s+(\S+\s+\S+$)/,"$1"),a[0]=parseInt(z.replace(/^(.*)\..*$/,"$1"),10),a[1]=parseInt(z.replace(/^.*\.(.*)\s.*$/,"$1"),10),a[2]=/[a-zA-Z]/.test(z)?parseInt(z.replace(/^.*[a-zA-Z]+(.*)$/,"$1"),10):0);else if("undefined"!=typeof qb.ActiveXObject)try{if(z=(new ActiveXObject(cb)).GetVariable("$version"))F=!0,z=z.split(" ")[1].split(","),a=[parseInt(z[0],10),parseInt(z[1],10),parseInt(z[2],10)]}catch(y){}else g.info("Unexpected nav.plugins or nav.plugins[SHOCKWAVE_FLASH] or win.ActiveXObject value"); this._flashPlayerVersion=a}return this._flashPlayerVersion};this.description=function(){return"flash version:'"+ia(this.flashPlayerVersion())+"', cors:'"+this.isSupportCORS()+"', platform:'"+ja.platform+"'"};this.hasPlayerVersion=function(a){a+="";var b=this.flashPlayerVersion();a=a.split(".");a[0]=Ca(a[0]);a[1]=Ca(a[1])||0;a[2]=Ca(a[2])||0;return b[0]>a[0]||b[0]==a[0]&&b[1]>a[1]||b[0]==a[0]&&b[1]==a[1]&&b[2]>=a[2]?!0:!1};this.isFlashSupported=function(a){this._flashEnabled=!this.isAppleTV()&&!this.isMobile()&& this.hasPlayerVersion("9.0.0");if(a)a(this._flashEnabled);else return this._flashEnabled};this.isFlashComponent=function(){return!1};this.getBandwidth=function(){return this._bandwidthDetection.getBandwidth()};this.chromeVersion=function(){var a=navigator.userAgent.match(/Chrom(e|ium)\/([0-9]+)\./);return a?parseInt(a[2],10):!1};this.firefoxVersion=function(){var a=navigator.userAgent.match(/Firefox\/(.*)$/);return a?parseInt(a[1],10):!1};this.isSupportCORS=function(){return"undefined"!=typeof XDomainRequest|| "undefined"!=typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest};this.isWebkit=function(){return v};this.isWin=function(){return m};this.isMac=function(){return q};this.isIE=function(){return F};this.isChrome=function(){return!!window.chrome&&!(window.opera||0<=navigator.userAgent.indexOf(" OPR/"))};this.isSafari=function(){return 0<=navigator.userAgent.indexOf("Safari")||!this.isChrome()};this.isFirefox=function(){return"undefined"!==typeof window.InstallTrigger};this.IEVersion=function(){var a= w.indexOf("MSIE ");if(0<a)return parseInt(w.substring(a+5,w.indexOf(".",a)),10);if(0<w.indexOf("Trident/"))return a=w.indexOf("rv:"),parseInt(w.substring(a+3,w.indexOf(".",a)),10);g.info("Unexpected msie or userAgent value");return"??"};this.isIPad=function(){return null!==w.match(/iPad/i)};this.isIPhone=function(){return null!==w.match(/iPhone/i)};this.isAppleTV=function(){return null!==w.match(/AppleTV/i)};this.isAppleTVNative=function(){return this.isAppleTV()&&"native"==navigator.platform};this.isAppleTVJS= function(){return this.isAppleTV()&&"tvjs"==navigator.platform};this.isIOS=function(){return this.isIPhone()||this.isIPad()};this.isWindowsPhone=function(){return null!=w.match(/Windows Phone OS/i)};this.iOSVersion=function(){var a=w.match(/OS (\d+)_/i);return a?a[1]:"??"};this.isMobile=function(){return this.isIOS()||this.isAndroid()};this.isAndroid=function(){return null!==w.match(/Android.*AppleWebKit/i)};this.isAMP=function(){return"undefined"!=typeof window._freewheel_amp};this.androidVersion= function(){var a=w.match(/Android ([\d.]+)\./i);return a?a[1]:"??"};this.isSupportMultiSource=function(){return!this.isAndroid()&&!this.isIOS()};this.stringifyXML=function(a){return 3==a.nodeType?a.nodeValue:4==a.nodeType?a.data:"undefined"!=typeof window.XMLSerializer?(new window.XMLSerializer).serializeToString(a):"undefined"!=typeof a.xml?a.xml:""};this.parseXML=function(a){try{if(window.DOMParser){var b=new DOMParser;var c=b.parseFromString(a,"text/xml")}else c=new ActiveXObject("Microsoft.XMLDOM"), c.async="false",c.loadXML(a)}catch(L){c=void 0}if(!c||!c.documentElement)throw Error("Invalid XML: "+a);a=c.getElementsByTagName("parsererror");if(a.length)throw Error("XML parsing error. ('"+a[0].innerText+"')");return c.documentElement};this.isValidURL=function(a){return a?0==a.indexOf("http://localhost/")?!0:/^(https?|ftp|file):\/\/([a-zA-Z0-9.-]+(:[a-zA-Z0-9.&%$-]+)*@)*((25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]?)(\.(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])){3}|([a-zA-Z0-9-]+\.)*[a-zA-Z0-9-]+\.(com|edu|gov|int|mil|net|org|biz|arpa|info|name|pro|aero|coop|museum|[a-zA-Z]{2}))(:[0-9]+)*(\/($|[a-zA-Z0-9.,?'\\+&%${}:#=~_-]+))*$/.test(a): !1};var h,k;this.location=function(){if(!k&&!h){var a=!0;try{top.document.location}catch(y){a=!1}a?(k=top.document.location.href,this.isValidURL(k)||(h="LOC-ERRJS001 - top window location: "+k)):this.isAMP()?(k=window.context.location.href,this.isValidURL(k)||(h="LOC-ERRJS001 - top window location: "+k)):(a=this.getTopMostWindow().document.referrer,this.isValidURL(a)?k=a:(k=document.location.href,this.isValidURL(k)||(h="LOC-ERRJS002 - iframe location: "+k)))}return k};this.locationDebug=function(){this.location(); return h};this.locationToSend=function(){this.location();return h?h&&0==h.indexOf("LOC-ERRJS002")?{locDebug:h}:{loc:k,locDebug:h}:{loc:k}};this._retrieveCCPAWithPostMessage=function(){g.debug("retrieveCCPAWithPostMessage");var a=this.getFrameAncestor("__uspapiLocator"),b={};window.__uspapi=function(c,d,f){if(a){var e=Math.random()+"";c={__uspapiCall:{command:c,parameter:d,callId:e}};b[e]=f;a.postMessage(c,"*")}else"function"===typeof f?f({msg:"USPAPI not found"},!1):g.warn("USPAPI not found.")};window.addEventListener("message", function(a){a="string"===typeof a.data?JSON.parse(a.data):a.data;a.__uspapiReturn&&(a=a.__uspapiReturn,"function"===typeof b[a.callId]&&(b[a.callId](a.returnValue,a.success),delete b[a.callId]))},!1);this._getUSPData(window.__uspapi)};this._retrieveCCPAData=function(){g.debug("fetchCCPAData");this._ccpaParams=null;var a=this.getTopMostWindow();try{var b=a.__uspapi;this._getUSPData(b)}catch(T){g.debug("__uspapi function on top window is inaccessible due to the following error: "+T.description),this._retrieveCCPAWithPostMessage()}}; this._getUSPData=function(a){if("function"==typeof a)try{var b=this;a("getUSPData",1,function(a,c){c?(a=a.uspString,null!=a?"string"==typeof a?b._ccpaParams={_fw_us_privacy:a}:(b._ccpaParams={_fw_us_privacy:a.toString()},g.debug("USPData's uspString value is malformed.")):g.debug("USPData's uspString value is missing.")):g.debug("Cannot retrieve CCPA params from USPAPI.")},this)}catch(T){g.debug("getUSPData "+T.description)}else g.debug("USPAPI function cannot be found. _fw_us_privacy: "+this._fwUspString)}; this.getCCPAData=function(a,b){a&&this._ccpaParams?a(this._ccpaParams):a?(this._CCPAConsentCallbacks.push(a),this._ccpaTimeout=D(function(){var b=this._CCPAConsentCallbacks.indexOf(a);-1<b&&this._CCPAConsentCallbacks.splice(b,1);a(this._ccpaParams)}.bind(this),b),this._retrieveCCPAData()):g.info("Unexpected callback value");return this._ccpaParams};this._findGppFunction=function(){g.debug("Browser._findGppFunction");this._gpp=this.getTopMostWindow().__gpp;this._pingForGPPVersion();"1.0"==this._CMP_GPP_VERSION? this._checkIfGppIsExecuted():this._gpp?this._addGppEventListener(this._gpp,this._gppEventListener):(g.warn("__gpp function not found"),this._retrieveGPPWithPostMessage())};this._checkIfGppIsExecuted=function(){g.debug("Browser._checkIfGppIsExecuted");if(this._gpp){var a=this._gpp("getGPPData");a&&"loaded"==a.pingData.cmpStatus&&"visible"!=a.pingData.cmpDisplayStatus?(this._isGppExecuted=!0,g.debug("GPP function found and consent executed")):this._addGppEventListener(this._gpp,this._gppEventListenerFor1_0)}else g.warn("__gpp function not found"), this._isGppExecuted=!0};this._addGppEventListener=function(a,b){g.debug("Browser._addGppEventListener");try{a("addEventListener",b.bind(this)),this._isListeningForGpp=!0}catch(T){this._isGppExecuted=!0,g.warn("_addGppEventListener failed with err: "+T.name+": "+T.message)}};this._removeGppEventListener=function(a){g.debug("Browser._removeGppEventListener");this._isListeningForGpp=!1;try{a("removeEventListener",null,this._listenerId)}catch(y){g.warn("_removeGppEventListener failed with err: "+y.name+ ": "+y.message)}this._listenerId=null};this._gppEventListenerFor1_0=function(a){g.debug("Browser._gppEventListenerFor1_0");this._listenerId=a.listenerId;"loaded"==a.pingData.cmpStatus&&"visible"!=a.pingData.cmpDisplayStatus&&(this._isGppExecuted=!0,this._isListeningForGpp&&this._removeGppEventListener(this._gpp))};this._gppEventListener=function(a,b){g.debug("Browser._gppEventListener");if(!1===b)this._isGppExecuted=!0,_fwsdk.warn("CMP failed to process GPP call.");else if(this._listenerId=a.listenerId, "signalStatus"==a.eventName&&"ready"==a.data||"ready"==a.pingData.signalStatus)(b=a.pingData)?"loaded"==b.cmpStatus&&"visible"!=b.cmpDisplayStatus?(this._isGppExecuted=!0,this._isListeningForGpp&&this._removeGppEventListener(this._gpp)):(null!=a.pingData.gppString?("string"!=typeof b.gppString&&g.warn("gppData's gppString value is malformed."),this._gppString=b.gppString.toString()):g.warn("gppData's gppString value is missing."),null!=b.applicableSections&&null!=b.applicableSections[0]?("number"!= typeof b.applicableSections[0]&&g.warn("gppData's applicableSections value is malformed."),this._gppSid=b.applicableSections[0].toString(),null!=b.applicableSections[1]&&("number"!=typeof b.applicableSections[1]&&g.warn("gppData's applicableSections value is malformed."),this._gppSid+=","+b.applicableSections[1].toString())):g.warn("gppData's applicableSections value is missing.")):_fwsdk.warn("GPPData is missing.")};this._retrieveGPPWithPostMessage=function(){g.debug("_retrieveGPPWithPostMessage"); var a=this.getFrameAncestor("__gppLocator"),b={};window.__gpp=function(c,d,f){if(a){var e=Math.random()+"";c={__gppCall:{command:c,parameter:d,callId:e,version:"1.1"}};b[e]=f;a.postMessage(c,"*")}else"function"===typeof f?f({msg:"GPP API not found"},!1):g.warn("GPP API not found.")};window.addEventListener("message",function(a){a="string"===typeof a.data?JSON.parse(a.data):a.data;a.__gppReturn&&(a=a.__gppReturn,"function"===typeof b[a.callId]&&(b[a.callId](a.returnValue,a.success),delete b[a.callId]))}, !1);this._gpp=window.__gpp;this._addGppEventListener(this._gpp,this._gppEventListener)};this._retrieveGDPRData=function(){g.debug("retrieveGDPRData");this._gdprParams=null;try{this._tcfapiImpl=this.getTopMostWindow().__tcfapi,this._addEventListenerForTCData()}catch(A){g.debug("GDPR 2.2 - __tcfapi function on top window is inaccessible due to the following error: "+A.description),this._retrieveGDPRWithPostMessage()}};this._addEventListenerForTCData=function(){g.debug("addEventListenerForTCData");try{"function"== typeof this._tcfapiImpl&&(this._tcfapiImpl("addEventListener",2,this._tcfapiCallback.bind(this)),this._isListeningForTCData=!0)}catch(A){g.warn("addEventListenerForTCData failed with err: ",A,A.description)}};this._tcfapiCallback=function(a,b){b?this._onTCFSuccess(a):(this._isListeningForTCData=!1,g.warn("GDPR 2.2 - Cannot retrieve gdpr params from TCFAPI."))};this._onTCFSuccess=function(a){g.debug("GDPR 2.2 - onTCFSuccess with event status ",a.eventStatus);this._getTCStringFromTCData(a);a.listenerId&& (this._tcfListenerId=a.listenerId);("tcloaded"==a.eventStatus||"useractioncomplete"==a.eventStatus)&&this._isListeningForTCData&&this._removeEventListenerForTCData()};this._getTCStringFromTCData=function(a){var b=a.gdprApplies;null!=b?""==b?this._fwGDPR="":"boolean"==typeof b?this._fwGDPR=b?1:0:(this._fwGDPR=b.toString(),g.warn("VendorConsentData's gdprApplies value is malformed.")):g.warn("VendorConsentData's gdprApplies value is missing.");a=a.tcString;null!=a?"string"==typeof a?this._fwGDPRConsent= a:(this._fwGDPRConsent=a.toString(),g.warn("VendorConsentData's tcString value is malformed.")):g.warn("VendorConsentData's tcString value is missing.");this._gdprParams={gdpr:this._fwGDPR,gdpr_consent:this._fwGDPRConsent}};this._removeEventListenerForTCData=function(){g.debug("removeEventListenerForTCData");this._isListeningForTCData=!1;try{this._tcfapiImpl("removeEventListener",2,function(a){a?g.debug("TCFAPI removeEventListener succeeded"):g.warn("TCFAPI remove listener failed.")},this._tcfListenerId)}catch(A){g.warn("removeEventListenerForTCData failed with err: ", A,A.description)}this._tcfListenerId=null};this.getGDPRData=function(a,b){a&&this._gdprParams?a(this._gdprParams):a&&(this._GDPRConsentCallbacks.push(a),this._gdprTimeout=D(function(){var b=this._GDPRConsentCallbacks.indexOf(a);-1<b&&this._GDPRConsentCallbacks.splice(b,1);a(this._gdprParams)}.bind(this),b));return this._gdprParams};this._retrieveGDPRWithPostMessage=function(){g.debug("GDPR 2.2 - retrieveGDPRWithPostMessage");var a=this.getFrameAncestor("__tcfapiLocator"),b={};window.__tcfapi=function(c, d,f){if(a){var e=Math.random()+"";c={__tcfapiCall:{command:c,parameter:d,callId:e}};b[e]=f;a.postMessage(c,"*")}else"function"===typeof f?f({msg:"__tcfapiLocator not found"},!1):g.warn("__tcfapiLocator not found.")};window.addEventListener("message",function(a){a="string"===typeof a.data?JSON.parse(a.data):a.data;a.__tcfapiReturn&&(a=a.__tcfapiReturn,"function"===typeof b[a.callId]&&(b[a.callId](a.returnValue,a.success),delete b[a.callId]))},!1);this._tcfapiImpl=window.__tcfapi;this._addEventListenerForTCData()}; this.getGPPData=function(a,b){a&&this._isGppExecuted?a(this.getGPPValues()):a?(this._GPPCallbacks.push(a),this._gppTimeout=D(function(){var b=this._GPPCallbacks.indexOf(a);-1<b&&this._GPPCallbacks.splice(b,1);a(this.getGPPValues())}.bind(this),b)):g.warn("No callback passed to Browser.getGPPData")};this.getGPPValues=function(){g.debug("Browser.getGPPValues");var a={gpp_string:this._gppString,gpp_sid:this._gppSid};if("1.0"==this._CMP_GPP_VERSION){try{var b=this._gpp("getGPPData")}catch(T){g.warn("getGPPValues failed with err: "+ JSON.stringify(T))}if(!b)return g.warn("GPPData is missing."),a;null!=b.gppString?("string"!=typeof b.gppString&&g.warn("GPPData's gppString value is malformed."),a.gpp_string=b.gppString.toString()):g.warn("GPPData's gppString value is missing.");null!=b.applicableSections&&null!=b.applicableSections[0]?("number"!=typeof b.applicableSections[0]&&g.warn("GPPData's applicableSections value is malformed."),a.gpp_sid=b.applicableSections[0].toString(),null!=b.applicableSections[1]&&("number"!=typeof b.applicableSections[1]&& g.warn("GPPData's applicableSections value is malformed."),a.gpp_sid+=","+b.applicableSections[1].toString())):g.warn("GPPData's applicableSections value is missing.")}return a};this._setGPPVersion=function(a,b){g.debug("Browser._setGPPVersion");!1===b?g.warn("CMP failed to process GPP ping."):this._CMP_GPP_VERSION="number"===typeof a.gppVersion?a.gppVersion.toFixed(1):a.gppVersion};this._pingForGPPVersion=function(){if(this._gpp){var a=this._gpp("ping",this._setGPPVersion);a&&this._setGPPVersion(a, !0)}else g.debug("Browser.pingForGPPVersion: __gpp function not found.")};this.touch=function(a,b){g.debug("touch",a);if(this.isAppleTV())return this.ajax(a,{timeout:3E3,credentials:!1},b);var c=new Image;c.onload=function(){if(b)b.onSuccess({});c.onload=c.onerror=null;c.parentNode&&c.parentNode.removeChild(c)};c.onerror=function(d){if(b)b.onError(Error("tracking failed. ('"+a+"')"));if(b)b.onSuccess({});c.onload=c.onerror=null;c.parentNode&&c.parentNode.removeChild(c)};c.src=a;c.style.width="0"; c.style.height="0";c.style.border="none";c.id="stickyTrackImg"+ma(0,1E6);var d=this.getTopMostWindow();d.document.body&&d.document.body.appendChild(c)};this.getTopMostWindow=function(){var a=window;try{for(;top!=a;)a.parent.location.href.length&&(a=a.parent)}catch(y){}return a};this.getFrameAncestor=function(a){for(var b=window,c;!c;){try{b.frames[a]&&(c=b)}catch(L){g.debug("Error while trying to access window with "+a)}if(b===window.top)break;b=b.parent}return c};this.ajax=function(c,e,h){g.debug("request", c);try{var m=e.method,q=e.body,k=b(m||(q?"POST":"GET"),c,("undefined"==typeof I._data["cors/credentials"]?!0:I._data["cors/credentials"])||e.credentials||!1,this.isMobile()),v=function(a){if(this.isFlashSupported()||!e.credentials||d.isStickyAdServer(c)){var b=a="???";try{a=k.status,b=k.statusText||"error"}catch(Ea){}if(h&&"function"==typeof h.onError)h.onError(Error("Unable to access the following url : '"+c+"' reason:'"+b+"',status:'"+a+"'"));f(k)}else e.credentials=!1,this.ajax(c,e,h)};v=u(v,this); try{var B=e.headers;for(wa in B)k.setRequestHeader(wa,B[wa]);var w="undefined"==typeof I._data.extra_header_for_domain?"":I._data.extra_header_for_domain,F="undefined"==typeof I._data.extra_header_object?{}:I._data.extra_header_object,z=d.getDomainFromUrl(c);if(""!=w&&0!=Object.keys(F).length&&z.includes(w))for(var A in F)F.hasOwnProperty(A)&&k.setRequestHeader(A,F[A])}catch(eb){}k.onload=function(){if(h&&"function"==typeof h.onSuccess)h.onSuccess(k.responseText);f(k)};k.onerror=v;k.ontimeout=function(){var a= "???",b="???";try{a=k.status,b=k.statusText||"timeout"}catch(Ea){}if(h&&"function"==typeof h.onError)h.onError(Error("Unable to access the following url : '"+c+"' reason:'"+b+"',status:'"+a+"'"));f(k)};var K=D(function(){if(h&&"function"==typeof h.onError)h.onError(Error("Request timeout. (url:'"+c+"'"));h.onSuccess=h.onError=E;f(k)},G(e.timeout,I.integer("ajax/timeout",5E3)));h=ib(h,function(){R(K)});"POST"==m&&"undefined"!=typeof e.params?e.contentType?(k.setRequestHeader("Content-Type",e.contentType), k.send(e.params)):(k.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),k.send(a(e.params))):k.send(q)}catch(eb){v(eb)}};this.injectInIFrame=function(a,b){if(this.isAppleTV())return this.touch(a);var c=document.createElement("iframe");c.className="freewheel";c.style.display="none";var d=document.createElement("script");d.src=a;d.type="text/javascript";b&&(d.addEventListener("load",function(){b.onSuccess(c)},this),d.addEventListener("error",function(){b.onError(c)},this));c.addEventListener("load", function(){c.contentDocument.head.append(d)},this);document.body.append(c)};this.injectJS=function(a,b,c){if(this.isAppleTV())return this.touch(a);if(b){b=!1;var d=document.head.getElementsByTagName("script");for(f in d)d[f].src==a&&(b=!0);if(b)return!1}var f=this.getTopMostWindow().document;b=f.createElement("script");c&&b.addEventListener("load",c);b.src=a;b.type="text/javascript";f.head.appendChild(b);return!0};this.isPortrait=function(){return window.innerWidth<=window.innerHeight};this.getZoomLevel= function(){return this.isIOS()?(this.isPortrait()?window.screen.width:window.screen.height)/window.innerWidth:this.isMobile()?window.screen.width/window.innerWidth:window.devicePixelRatio};this.getClient=function(a){var b;window.document.body&&(b=window.document.body["client"+a]);window.document.documentElement&&(b=window.document.documentElement["client"+a]);window["inner"+a]&&(b=Math.min(b,window["inner"+a]));return b};this.createEvent=function(a){if("function"===typeof Event)var b=new Event(a); else b=window.document.createEvent("UIEvents"),b.initUIEvent(a,!0,!1,window,0);return b};this.getGdprApplies=function(){return this._fwGDPR};this.getGdprConsentString=function(){return this._fwGDPRConsent}});h.prototype.isMobile=h.prototype.isMobile;h=new h;window.com||(window.com={});window.com.stickyadstv||(window.com.stickyadstv={});return window.com.stickyadstv.browser=h});p("mustang/com/stickyadstv/vpaid/SafeWrapper",["mod!com.stickyadstv.vpaid.Wrapper","mod!com.stickyadstv.vast.VastError","mod!com.stickyadstv.utils.Browser"], function(d,e,c){var b=new t("com.stickyadstv.vpaid.SafeWrapper");return d.extend({events:d.events},new function(){this.init=function(a,c,d,e){this.loadingTimeout="undefined"!=typeof e?e:-1;c=c||{};c.AdLoaded=this._loadedHandler;c.AdStarted=this._startedHandler;c.AdError=this._errorHandler;this._super(a,c,d);this._logger=b};this._dispose=function(){this._super();R(this._loadedTimeout);R(this._startedTimeout);R(this._completeTimeout)};this.initAd=function(a,c,d,h,k,m){var f=-1!=this.loadingTimeout? this.loadingTimeout:I.integer("loaded/timeout",15E3);b.debug("Safe initAd with applied timeout : "+f);this._loadedTimeout=D(function(){this._dispose();this._dispatchEvent("AdError",new e("Loading timeout after "+f+"ms",304))},f,this);this._super(a,c,d,h,k,m)};this._loadedHandler=function(a){R(this._loadedTimeout);this._forwardEvent(a)};this._startedHandler=function(a){R(this._startedTimeout);this._forwardEvent(a)};this._errorHandler=function(a){R(this._loadedTimeout);this._forwardEvent(a)};this.startAd= function(){var a=I.integer("started/timeout",15E3);this._started||(this._ad&&!c.isAppleTVJS()&&(this._startedTimeout&&R(this._startedTimeout),this._startedTimeout=D(function(){var c=this._ad;this._dispose();try{c.stopAd()}catch(g){b.warn("'stopAd' failed.",g)}this._dispatchEvent("AdError",Error("SafeWrapper - starting timeout after "+a+"ms"))},a,this)),this._super());this._started=!0};this._completeHandler=function(a){R(this._completeTimeout);this._super(a)};this.stopAd=function(){var a=I.integer("completed/timeout", 15E3);this._ad?(this._completeTimeout=D(function(){this._dispose();this._dispatchEvent("AdError",Error("SafeWrapper - completing timeout after "+a+"ms"))},a,this),this._super()):this._dispatchEvent("AdStopped")}})});p("mustang/com/stickyadstv/utils/Timer",["mod!com.stickyadstv.event.EventDispatcher","mod!com.stickyadstv.utils.Browser"],function(d,e){new t("com.stickyadstv.utils.Timer");return d.extend({FIRST_QUARTILE:"quartile-1",MIDPOINT:"quartile-2",THIRD_QUARTILE:"quartile-3",COMPLETE:"complete"}, new function(){this.init=function(c){this._super();this._offsetCount=0;this._options=c||{};this._timeouts={};this._paused=!0;this.duration(this._options.duration)};this._refresh=function(){this._paused||this.pause().play()};this.duration=function(c){if(n(c))return G(this._duration,0);c=Math.max(0,G(c,0));if(this._duration===c)return this;this._duration=c;this._refresh();return this};this.time=function(c){if(!this._dateStart)return 0;var b=ca()-this._dateStart,a=this._datePause?ca()-this._datePause: 0;if(n(c))return b-this._offsetCount-a;c=G(c);if(isNaN(c))return this;this._offsetCount=b-a-c;this._refresh();return this};this.remainingTime=function(){return this.duration()-this.time()};this._nextEvent=function(c){return(c=this.duration())?{at:c}:null};this._clearTimers=function(){var c=this._timeouts;this._timeouts={};r(c,function(b,a){R(b)})};this.onBeforeEnd=function(c,b,a){this.on("before-end-"+c,b,a);this._refresh()};this._configureTimers=function(c,b,a){this._clearTimers();if(this._options.loop)this._dispatchEvent("complete", a),this._timeouts.complete=D(function(){delete this._timeouts.complete;this._dateStart=this._offsetCount=0;D(this._next,1,this)},e.isMobile()?0:c,this);else{var d=Math.floor(b/this._duration*4);this._eachEventType(function(f){if(0==f.indexOf("quartile-")){if(P(this._duration)){var e=G(f.substr(9));if(!P(e))throw Error("Corrupted quartile index");e<d||(e==d?this._dispatchOnce(f):this._timeouts[f]=D(function(){delete this._timeouts[f];this._dispatchOnce(f)},this._duration*e/4-b,this))}}else if(0==f.indexOf("before-end-"))e= G(f.substr(11)),this._timeouts[f]=D(function(){delete this._timeouts[f];this._dispatchOnce(f)},Math.max(0,c-e),this);else if("complete"==f)this._timeouts[f]=D(function(){delete this._timeouts[f];this._dispatchEvent(f,a)},c,this);else throw Error("Unknown event type. ('"+f+"')");},this)}};this._next=function(){if(!this._paused){this._dateStart||(this._dateStart=ca());this._datePause&&(this._offsetCount+=ca()-this._datePause,this._datePause=0);var c=this.time(),b=this._nextEvent(c);b&&this._configureTimers(Math.max(0, b.at-c),c,b)}};this.play=function(){if(!this._paused)return this;this._paused=!1;this._next();return this};this.paused=function(){return this._paused};this.pause=function(){if(this._paused)return this;this._paused=!0;this._clearTimers();this._datePause=ca();return this};this.dispose=function(){this._dispatchEvent("dispose");this.pause()}})});p("mustang/com/stickyadstv/vpaid/composite/Sequential",["mod!com.stickyadstv.vpaid.Base","mod!com.stickyadstv.utils.Timer"],function(d,e){var c=new t("com.stickyadstv.vpaid.composite.Sequential"); return d.extend({events:d.events},new function(){this.init=function(b,a){this._logger=c;this._super();this._ads=[];this._buffetAds=[];this._linear=!0;this._duration=0;this._preload=G(a,0);this._loaded=!1;this._adsNumber=this._adPlayed=0;this._waitingAds=[];this._waitingHandlers={};this._waitingHandlers.AdPreLoaded=this._preLoadedHandler;this._waitingHandlers.AdLoaded=this._loadedHandler;this._waitingHandlers.AdStopped=this._loadingStoppedHandler;this._waitingHandlers.AdError=this._loadingErrorHandler; this._waitingHandlers.AdImpression=this._impressionHandler;this._waitingHandlers.AdStarted=this._startedHandler;this._waitingHandlers.AdVolumeChange=this._volumeChangeHandler;this._handlers={};this._handlers.AdStopped=this._stoppedHandler;this._handlers.AdError=this._tryNextAd;this._handlers.AdStarted=this._startedHandler;this._handlers.AdPaused=this._pausedHandler;this._handlers.AdPlaying=this._playingHandler;this._handlers.AdDurationChange=this._durationChangeHandler;this._handlers.AdRemainingTimeChange= this._remainingTimeChangeHandler;this._handlers.AdImpression=this._impressionHandler;this._handlers.AdLinearChange=this._linearChangeHandler;this._handlers.AdVideoStart=this._videoStartHandler;this._handlers.AdVideoFirstQuartile=this._videoQuartileHandler;this._handlers.AdVideoMidpoint=this._videoQuartileHandler;this._handlers.AdVideoThirdQuartile=this._videoQuartileHandler;this._handlers.AdVideoComplete=this._videoCompleteHandler;this._handlers.adComplete=this._adCompleteHandler;this._handlers.adSlotComplete= this._adSlotCompleteHandler;r(d.events,function(a,b){this._handlers[a]=this._handlers[a]||this._forwardEvent},this);this._adsTimeline=new e;this._adsTimeline.on("quartile-1",this._firstQuartileHandler,this).on("quartile-2",this._midPointHandler,this).on("quartile-3",this._thirdQuartileHandler,this).on("complete",this._timerCompleteHandler,this);n(b)||this._add(b)};this._createAds=function(b,a){a.onSuccess({ads:[],environment:b})};this.initAd=function(b,a,c,d,e,k){this._width=b;this._height=a;this._viewMode= c;this._desiredBitrate=d;this._creativeData=e;this._createAds(ra(k),aa(new function(){this.onSuccess=function(a){this._environmentVars=a.environment;this._add(a.ads?a.ads:a.ad);try{this._loadAd()}catch(q){this._catchError(q)}};this.onError=function(a){this._catchError(a)}},this))};this._add=function(b){this._ads=this._ads.concat(b);this._manageAdPods();this._ads.length>this._adsNumber&&(this._adsNumber=this._ads.length,this._updateDuration())};this._manageAdPods=function(){this._isAdPod=!1;for(var b= 0;!this._isAdPod&&b<this._ads.length;)this._isAdPod=-1<this._ads[b].adSequenceNumber(),b++;this._isAdPod&&(this._buffetAds=this._ads.filter(function(a,b,c){return-1==a.adSequenceNumber()},this),this._ads=this._ads.filter(function(a,b,c){return-1<a.adSequenceNumber()},this).sort(function(a,b){return a.adSequenceNumber()>b.adSequenceNumber()}))};this._hasNext=function(){return 0<this._ads.length};this._loadAd=function(){if(this._stopRequest)this._dispatchStoppedEvent();else if(this._ads.length){var b= this._ads.shift();this._checkVPAID2(b);this._waitingAds.push(b);r(this._waitingHandlers,function(a,c){b.on(c,a,this)},this);b.initAd(this._width,this._height,this._viewMode,this._desiredBitrate,this._creativeData,this._environmentVars)}else this._ad||this._dispatchStoppedEvent()};this._cleanAd=function(){this._ad&&(this._adPlayed++,this._unregisterListener(this._ad));this._adTimeline&&(this._adTimeline.dispose(),this._duration+=this._adTimeline.duration()/1E3);this._adTimeline=this._ad=this._adRemaining= null};this._isComplete=function(){return!(this._hasNext()||this._waitingAds.length)};this._firstQuartileHandler=function(b){this._eventSent.AdStarted||this._startedHandler(b);this._dispatchOnce("AdVideoFirstQuartile")};this._midPointHandler=function(b){this._eventSent.AdStarted||this._startedHandler(b);this._dispatchOnce("AdVideoMidpoint")};this._thirdQuartileHandler=function(b){this._eventSent.AdStarted||this._startedHandler(b);this._dispatchOnce("AdVideoThirdQuartile")};this._timerCompleteHandler= function(b){};this._videoStartHandler=function(b){this._eventSent.AdStarted||this._startedHandler(b);this._forwardOnce(b)};this._videoQuartileHandler=function(b){1==this._adsNumber&&(this._eventSent.AdStarted||this._startedHandler(b),this._forwardOnce(b))};this._videoCompleteHandler=function(b){this._eventSent.AdStarted||this._startedHandler(b);this._forwardEvent(b)};this._adCompleteHandler=function(b){this._adCloseTimeout&&(R(this._adCloseTimeout),this._adCloseTimeout=!1);this._isComplete()?this._forwardEvent(b): b.stopImmediatePropagation()};this._adSlotCompleteHandler=function(b){this._isComplete()?this._forwardOnce(b):b.stopImmediatePropagation()};this._impressionHandler=function(b){this._forwardOnce(b)};this._updateDuration=function(){var b=this.adDuration();this._lastDuration!=b&&(this._lastDuration=b,this._adsTimeline.duration(1E3*b),this._loaded&&this._dispatchEvent(this._vpaid2?"AdDurationChange":"AdRemainingTimeChange"))};this._updateRemainingTime=function(){if(this._ad){var b=1E3*("function"==typeof this._ad.adRemainingTime? this._ad.adRemainingTime():this._ad.adRemainingTime),a=this._adTimeline.duration();(!this._ad||!this._ad._started)&&0<b&&5E3>b&&(b=0);var c=!this._ad&&this._started||this._ad&&this._ad._started;b>a||b<a&&!c?(this._adTimeline.duration(b).time(0),a="function"==typeof this.adDuration?this.adDuration():this.adDuration,this._lastDuration!=a&&(this._lastDuration=a,this._adsTimeline.duration(1E3*a))):0<=a&&0<=b&&this._adTimeline.time(a-b)}};this._durationChangeHandler=function(b){this._ad&&(this._adTimeline.duration(1E3* this._ad.adDuration()),this._updateDuration())};this._remainingTimeChangeHandler=function(b){this._updateRemainingTime();this._dispatchEvent("AdRemainingTimeChange")};this._pausedHandler=function(b){this._adsTimeline.pause();this._adTimeline.pause();this._forwardEvent(b)};this._playingHandler=function(b){this._adsTimeline.play();this._adTimeline.play();this._forwardEvent(b)};this._startedHandler=function(b){this._adsTimeline.play();this._adTimeline.play();this._forwardOnce(b);0!=this._adPlayed&&this._dispatchEvent("AdPlaying")}; this._dispose=function(){for(this._cleanAd();this._waitingAds.length;)this._removeWaitingAd(this._waitingAds[0]);this._adsTimeline.dispose()};this._removeWaitingAd=function(b){r(this._waitingHandlers,function(a,c){b.off(c,a,this)},this);this._waitingAds=Y(this._waitingAds,u(ya,0,b))};this._loadingErrorHandler=function(b){this._removeWaitingAd(b.target);0<this._buffetAds.length?(c.warn("Error while playing an ad from ad pod. Picking an ad from ad buffet."),b=this._buffetAds.splice(0,1)[0],this._ads.splice(0, 0,b),this._nextAd()):this._tryNextAd(b)};this._tryNextAd=function(b){this._isComplete()?(this._dispatchOnce("adSlotComplete",O(b)),this._errorHandler(b)):(c.warn(O(b)),this._cleanAd(),this._nextAd(),b.stopImmediatePropagation())};this._onNextAd=function(b){this._onNextCallback=u(b,this);this._nextAd()};this._nextAd=function(){if(this._stopRequest)this._dispose(),this._dispatchStoppedEvent();else if(null==this._ad)if(this._onNextCallback&&this._waitingAds.length){var b=this._waitingAds[0];this._removeWaitingAd(b); this._onNextCallback(b);this._onNextCallback=null}else this._ads.length?this._loadAd():this._isComplete()?this._dispatchStoppedEvent():c.info("Unexpected _ads.length or _isComplete value")};this._loadingStoppedHandler=function(b){this._removeWaitingAd(b.target);this._nextAd()};this._stoppedHandler=function(b){this._adPlayed<this._adsNumber-1&&this._dispatchEvent("AdPaused");this._cleanAd();this._nextAd();b.stopImmediatePropagation()};this._dispatchStoppedEvent=function(){this._dispatchOnce("AdStopped"); this._dispatchOnce("adSlotComplete")};this._errorHandler=function(b){this._dispose();this._dispatchEvent(b.type,O(b))};this._preLoadedHandler=function(b){try{this._oldLinear=S(this._oldLinear,this._linear),this._linear=b.target.adLinear()}catch(a){c.warn("'adLinear' property not available on pre loaded ad.",a)}this._eventSent.AdPreLoaded||(this._preLoadingAd=b.target,this._adVerifications&&0<this._adVerifications.length&&(b.detail=b.detail?b.detail:{},b.detail.adVerifications=b.detail.adVerifications? b.detail.adVerifications.concat(this._adVerifications):this._adVerifications),this._dispatchEvent("AdPreLoaded",O(b)).isDefaultPrevented()&&b.preventDefault())};this._linearChangeHandler=function(b){var a=this._ad.adLinear();a!=this._linear&&(this._linear=a,this._forwardEvent(b))};this._volumeChangeHandler=function(b){b=O(b);b.volume=this.adVolume();this._dispatchOnce("AdVolumeChange",b)};this._unregisterListener=function(b){r(this._handlers,function(a,c){b.off(c,a,this)},this)};this._registerListener= function(b){r(this._handlers,function(a,c){b.on(c,a,this)},this)};this._loadedHandler=function(b){var a=O(b);this._dispatchOnce("AdPreLoaded",a);this._updateDuration();var d=this._loaded;this._loaded=!0;this._onNextAd(function(b){this._ad=b;this._ad.resizeAd(this._width,this._height,this._viewMode);var f=this._ad.adDuration();0<f&&5>f?(c.warn("Ad duration seems wrong : "+f),this._adTimeline=new e):this._adTimeline=new e({duration:1E3*f});this._updateDuration();1<this._adsNumber&&this._ad.setSequenceIndex(this._adPlayed+ 1,this._adsNumber);this._registerListener(b);if(0<this._preload)this._adTimeline.onBeforeEnd(this._preload,function(a){this._loadAd()},this);this._oldLinear=S(this._oldLinear,this._linear);this._linear=this._ad.adLinear();b=this._startRequest;this._startRequest=!1;a.duration=f;a.adVolume=this.adVolume();this._dispatchOnce("AdLoaded",a);d&&this._oldLinear!=this._linear&&this._dispatchEvent("AdLinearChange");delete this._oldLinear;b&&!this._startRequest&&this.startAd();this._expandRequest&&this.expandAd()})}; this.loadAd=function(){var b=this._preLoadingAd||this._ad;b&&(x(b.loadAd)&&b.loadAd(),this._preLoadingAd=null)};this.resizeAd=function(b,a,c){this._width=b;this._height=a;this._viewMode=c;this._ad&&this._ad.resizeAd(b,a,c)};this.startAd=function(){this._startRequest=!0;this._ad&&this._ad.startAd()};this.skipAd=function(){"undefined"!=typeof this._ad.skipAd?this._ad.skipAd():this._ad.stopAd()};this.stopAd=function(){this._stopRequest=!0;this._ad&&this._ad.stopAd()};this.pauseAd=function(){this._startRequest= !1;this._ad&&this._ad.pauseAd()};this.resumeAd=function(){this._startRequest=!0;this._ad&&this._ad.resumeAd()};this.expandAd=function(){this._expandRequest=!0;this._ad&&this._ad.expandAd()};this.collapseAd=function(){this._expandRequest=!1;this._ad&&this._ad.collapseAd()};this.adVolume=function(b){if(n(b))return this._ad?this._ad.adVolume():Nan;this._volume=b;this._ad&&this._ad.adVolume(b)};this.adExpanded=function(){return this._ad?this._ad.adExpanded():!1};this.universalAdId=function(){return this._ad.universalAdId()}; this.universalAdIdValue=function(){return this._ad.universalAdIdValue()};this.universalAdIdRegistry=function(){return this._ad.universalAdIdRegistry()};this.adRemainingTime=function(){var b=0;if(this._adTimeline){var a=0!=this._adTimeline.duration()||"undefined"==typeof this.adMediaDuration()?this._adTimeline.duration():1E3*this.adMediaDuration();b+=(a-this._adTimeline.time())/1E3;b=Math.max(b,0)}r(this._waitingAds.concat(this._ads),function(a){a.adLinear()&&(b+=a.adDuration())});return b};this.adLinear= function(){return this._linear};this.adDuration=function(){var b=this._duration;this._adTimeline&&(b+=this._adTimeline.duration()/1E3);r(this._waitingAds.concat(this._ads),function(a){a.adLinear()&&(b+=a.adDuration())});return b}})});p("mustang/com/stickyadstv/vpaid/composite/Parallel",["mod!com.stickyadstv.vpaid.Base"],function(d){var e=new t("com.stickyadstv.vpaid.composite.Parallel");return d.extend({events:d.events},new function(){this.init=function(c){this._logger=e;this._super();this._ads=[]; this._handlers={};this._handlers.AdStopped=this._stoppedHandler;this._handlers.AdError=this._errorHandler;this._handlers.AdImpression=this._impressionHandler;this._masterHandlers={};this._masterHandlers.AdDurationChange=this._masterDurationChangeHandler;r(d.events,function(b,a){this._handlers[b]||"AdLoaded"==b||"AdPreLoaded"==b||"AdDurationChange"==b||(this._masterHandlers[b]=this._forwardEvent)},this);this._slaveHandlers={};this._slaveHandlers.AdDurationChange=this._slaveDurationChangeHandler;n(c)|| this._add(c)};this._add=function(c){this._ads=this._ads.concat(c)};this.initAd=function(c,b,a,d,e,h){var f={},m,g=this._dispatchEvent("AdPreLoaded");oa(ba(this._ads),function(q,k){function v(a){q.off("AdPreLoaded",w,this).off("AdLoaded",v,this).off("AdError",B,this);(a=O(a))&&C(f,a);a=q.adDuration();if(!this._masterAd||this._maxDuration<a)this._masterAd=q,this._maxDuration=a;k()}function w(a){q.off("AdPreLoaded",w,this);g.isDefaultPrevented()&&a.preventDefault()}function B(a){m=O(a);q.off("AdPreLoaded", w,this).off("AdLoaded",v,this).off("AdError",B,this);this._ads=Y(this._ads,u(ya,0,q));k()}try{this._checkVPAID2(q),q.on("AdPreLoaded",w,this).on("AdLoaded",v,this).on("AdError",B,this),r(this._handlers,function(a,b){q.on(b,a,this)},this),q.initAd(c,b,a,d,e,h)}catch(K){m=K,k()}},function(){this._ads.length?(r(this._ads,function(a){r(a==this._masterAd?this._masterHandlers:this._slaveHandlers,function(b,c){a.on(c,b,this)},this)},this),this._dispatchEvent("AdLoaded",f)):this._catchError(m||Error("Ads not found."))}, this)};this._disposeAd=function(c){r(this._handlers,function(b,a){c.off(a,b,this)},this);r(this._masterHandlers,function(b,a){c.off(a,b,this)},this);r(this._slaveHandlers,function(b,a){c.off(a,b,this)},this);this._ads=Y(this._ads,u(ya,0,c));this._ads.length||this._dispatchEvent("AdStopped")};this._masterDurationChangeHandler=function(c){var b=jb(this._ads,function(a,b){return a.adDuration()-b.adDuration()});b!=this._masterAd&&(r(this._slaveHandlers,function(a,c){b.off(c,a,this);this._masterAd.on(c, a,this)},this),r(this._masterHandlers,function(a,c){b.on(c,a,this);this._masterAd.off(c,a,this)},this),this._masterAd=b,this._maxDuration=b.adDuration());this._dispatchEvent(this._vpaid2?"AdDurationChange":"AdRemainingTimeChange")};this._slaveDurationChangeHandler=function(c){var b=c.target;c=b.adDuration();c<=this._maxDuration||(r(this._slaveHandlers,function(a,c){b.off(c,a,this);this._masterAd.on(c,a,this)},this),r(this._masterHandlers,function(a,c){b.on(c,a,this);this._masterAd.off(c,a,this)}, this),this._masterAd=b,this._maxDuration=c,this._dispatchEvent(this._vpaid2?"AdDurationChange":"AdRemainingTimeChange"))};this._impressionHandler=function(c){this._forwardOnce(c)};this._errorHandler=function(c){this._disposeAd(c.target)};this._stoppedHandler=function(c){this._disposeAd(c.target)};this.loadAd=function(){r(this._ads,function(c){x(c.loadAd)&&c.loadAd()})};this.resizeAd=function(c,b,a){r(this._ads,function(d){d.resizeAd(c,b,a)})};this.startAd=function(){r(this._ads,function(c){c.startAd()})}; this.skipAd=function(){"undefined"!=typeof this._ad.skipAd?this._ad.skipAd():this._ad.stopAd()};this.stopAd=function(){this._stopRequest=!0;r(this._ads,function(c){c.stopAd()})};this.pauseAd=function(){r(this._ads,function(c){c.pauseAd()})};this.resumeAd=function(){r(this._ads,function(c){c.resumeAd()})};this.expandAd=function(){r(this._ads,function(c){c.expandAd()})};this.collapseAd=function(){r(this._ads,function(c){c.collapseAd()})};this.adVolume=function(c){if(n(c)){var b=0;r(this._ads,function(a){b= Math.max(b,G(a.adVolume(),0))});return b}this._volume=c;r(this._ads,function(a){a.adVolume(c)})};this.adExpanded=function(){var c=!1;r(this._ads,function(b){c=c||S(b.adExpanded(),!1)});return c};this.adRemainingTime=function(){var c=0;r(this._ads,function(b){c=Math.max(b.adRemainingTime(),c)});return c};this.adLinear=function(){var c=!1;r(this._ads,function(b){c=c||S(b.adLinear(),!1)});return c};this.adDuration=function(){var c=0;r(this._ads,function(b){c=Math.max(c,b.adDuration())});return c}})}); p("mustang/com/stickyadstv/vpaid/composite/MasterSlave",["mod!com.stickyadstv.vpaid.Base"],function(d){var e=new t("com.stickyadstv.vpaid.composite.MasterSlave");return d.extend({events:d.events},new function(){this.init=function(c,b){this._logger=e;this._super();if(!c)throw Error("'master' ad undefined.");this._ad=this._master=c;this._slave=b;this._masterHandlers={};this._masterHandlers.AdStopped=this._masterStoppedHandler;this._masterHandlers.AdError=this._masterErrorHandler;this._masterHandlers.AdPreLoaded= this._preloadedHandler;this._masterHandlers.AdLoaded=E;this._masterHandlers.AdImpression=this._impressionHandler;r(d.events,function(a,b){this._masterHandlers[a]=this._masterHandlers[a]||this._forwardEvent},this);this._slaveHandlers={};this._slaveHandlers.AdStopped=this._slaveStoppedHandler;this._slaveHandlers.AdError=this._slaveErrorHandler;this._slaveHandlers.AdPreLoaded=this._preloadedHandler;this._slaveHandlers.AdImpression=this._impressionHandler};this.adId=function(){var c=[];this._master&& c.push(this._master.adId());this._slave&&c.push(this._slave.adId());return c.join(",")};this.initAd=function(c,b,a,d,e,h){r(this._masterHandlers,function(a,b){this._master.on(b,a,this)},this);this._slave&&r(this._slaveHandlers,function(a,b){this._slave.on(b,a,this)},this);var f={},m=this._dispatchEvent("AdPreLoaded");oa(this._ads(),function(g,k){function q(a){g.off("AdPreLoaded",v,this).off("AdLoaded",q,this).off("AdError",w,this);(a=O(a))&&C(f,a);k()}function v(a){g.off("AdPreLoaded",v,this);m.isDefaultPrevented()&& a.preventDefault()}function w(a){g.off("AdPreLoaded",v,this).off("AdLoaded",q,this).off("AdError",w,this);g==this._master?this._catchError(a):(this._slave=null,k())}g.on("AdPreLoaded",v,this).on("AdLoaded",q,this).on("AdError",w,this);try{this._checkVPAID2(g),g.initAd(c,b,a,d,e,h)}catch(B){this._catchError(B)}},function(){this._dispatchEvent("AdLoaded",f)},this)};this._ads=function(){var c=[];this._master&&c.push(this._master);this._slave&&c.push(this._slave);return c};this._disposeAd=function(c){r(this._handlers, function(a,b){this._master.off(b,a,this)},this);this._master=null;if(this._slave){var b=function(d){a.off("AdStopped",b,this).off("AdError",b,this);c.call(this)},a=this._slave;a.on("AdStopped",b,this).on("AdError",b,this);a.stopAd()}else c.call(this)};this._impressionHandler=function(c){this._dispatchOnce("AdImpression")};this._preloadedHandler=function(c){this._dispatchOnce("AdPreLoaded")};this._slaveErrorHandler=function(c){e.error(O(c));this._slave=null};this._slaveStoppedHandler=function(c){this._slave= null};this._masterErrorHandler=function(c){this._disposeAd(function(){this._catchError(c)})};this._masterStoppedHandler=function(c){this._disposeAd(function(){this._dispatchEvent("AdStopped",O(c))})};this.loadAd=function(){r(this._ads(),function(c){x(c.loadAd)&&c.loadAd()})};this.resizeAd=function(c,b,a){r(this._ads(),function(d){d.resizeAd(c,b,a)})};this.startAd=function(){r(this._ads(),function(c){c.startAd()})};this.skipAd=function(){this._stopRequest=!0;r(this._ads(),function(c){"undefined"!= typeof c.skipAd?c.skipAd():c.stopAd()})};this.stopAd=function(){this._stopRequest=!0;r(this._ads(),function(c){c.stopAd()})};this.pauseAd=function(){r(this._ads(),function(c){c.pauseAd()})};this.resumeAd=function(){r(this._ads(),function(c){c.resumeAd()})};this.expandAd=function(){r(this._ads(),function(c){c.expandAd()})};this.collapseAd=function(){r(this._ads(),function(c){c.collapseAd()})};this.adVolume=function(c){if(n(c)){var b=0;r(this._ads(),function(a){b=Math.max(b,G(a.adVolume(),0))});return b}this._volume= c;r(this._ads(),function(a){a.adVolume(c)})};this.adExpanded=function(){return this._master.adExpanded()};this.adRemainingTime=function(){return this._master?this._master.adRemainingTime():0};this.adLinear=function(){return this._master?this._master.adLinear():!0};this.adDuration=function(){return this._master?this._master.adDuration():0}})});p("conf",[],function(){var d={vast:{creative:{classes:["mod!com.stickyadstv.vast.creative.Linear","mod!com.stickyadstv.vast.creative.CompanionAds","mod!com.stickyadstv.vast.creative.NonLinearAds"]}}, vpaid:{factory:{content:"mod!com.stickyadstv.vpaid.factory.content.all",linear:"mod!com.stickyadstv.vpaid.factory.linearFactory",decorated:"mod!com.stickyadstv.vpaid.factory.decoratorFactory",companion:"mod!com.stickyadstv.vpaid.factory.companionFactory",overlay:"mod!com.stickyadstv.vpaid.factory.overlayFactory",scheduler:"mod!com.stickyadstv.vpaid.factory.schedulerFactory"}}};return{load:function(e,c,b,a){e=e.split(".");for(a=d;e.length;)if(a=a[e.shift()],!a)return b({});"string"==typeof a?c([a], function(a){b(a)}):c(a,function(){var a=arguments;b(function(){return a})})}}});p("mustang/com/stickyadstv/xml/List",[],function(){new t("com.stickyadstv.xml.List");var d=N.extend(new function(){this.init=function(e){e&&(e instanceof d?e=e._nodeList:X(e)||(e=[e]));this._nodeList=[];e&&r(e,function(c){this.add(c)},this)};this.add=function(d){this._nodeList.push(d)};this.first=function(){return this._nodeList[0]};this.unshift=function(d){this._nodeList.unshift(d)};this.shift=function(){return this._nodeList.shift()}; this.isEmpty=function(){return 0==this._nodeList.length};this.concat=function(e){return new d(this._nodeList.concat(e._nodeList))};this.remove=function(){r(this._nodeList,function(d){d.remove()})};this.query=function(e){var c=new d;r(this._nodeList,function(b){c=c.concat(b.query(e))});return c};this.firstChild=function(e){return new d(fa(this._nodeList,function(c){return c.firstChild(e)}))};this.children=function(){return this.query(arguments)};this.find=function(e){var c=new d;r(this._nodeList,function(b){c= c.concat(b.find(e))});return c};this.sort=function(e){return new d(this._nodeList.sort(e))};this.each=function(d,c){r(this._nodeList,d,c)};this.filter=function(e,c){return new d(Y(this._nodeList,e,c))};this.transform=function(e,c){return new d(this.map(e,c))};this.map=function(d,c){return fa(this._nodeList,d,c)};this.groupBy=function(d,c){var b=this._nodeList;d=u(d,c);c=b.sort(d);for(var a=[];b.length;){for(var f=c.shift(),e=[f];c.length&&!d(c[0],f);)e.push(c.shift());a.push(e)}return a};this.clone= function(){return new d(ba(this._nodeList))};this.toArray=function(){return ba(this._nodeList)};this.xml=function(){return qa(this._nodeList,function(d,c){return d+c.xml()},"")};this.attr=function(d){var c=null;this.each(function(b){(b=b.attr(d))&&(c=b)});return c};this.text=function(){var d="";this.each(function(c){(c=c.text())&&0<c.length&&(d=c)});return d}});return d});p("mustang/com/stickyadstv/dom/Scroll",["mod!com.stickyadstv.utils.Browser"],function(d){new t("com.stickyadstv.dom.Scroll");var e= N.extend(new function(){this.disableScroll=function(){document.body.style.overflow="hidden"};this.enableScroll=function(){document.body.style.overflow="scroll"}}),c=N.extend(new function(){this._firstMove=function(){this._moved=!0};this._preventEvent=function(b){this._moved&&(b.preventDefault(),this._moved=!1)};this.disableScroll=function(b){window.addEventListener("touchstart",this._firstMove);window.addEventListener("touchmove",this._preventEvent)};this.enableScroll=function(){window.removeEventListener("touchstart", this._firstMove);window.removeEventListener("touchmove",this._preventEvent)}});return d.isMobile()?c:e});p("mustang/com/stickyadstv/dom/document",["mod!com.stickyadstv.event.EventDispatcher","mod!com.stickyadstv.dom.Scroll"],function(d,e){function c(a){var b;return function(){var c=a();P(c)&&(b=c);return b}}function b(a){var b=document.documentElement["client"+a],c=document.body;return(a="CSS1Compat"===document.compatMode&&b||c&&c["client"+a]||b)?a:"complete"===document.readyState?0:void 0}function a(a, b){function c(){d||(d=!0,function y(){c.fired||a.call(b,function(){setTimeout(y,5)})}())}var d=!1;return c}function f(a,b){return a?a+b.substr(0,1).toUpperCase()+ +b.substr(1):b}function g(a){if(!0===a&&!--v||!0!==a&&!q){if(!document.body)return setTimeout(g,1);q=!0;if(!0!==a&&(v--,0<v))return;k._onReady();k._onBodyReady();k._onSize()}}function h(){if(!q){try{document.documentElement.doScroll("left")}catch(z){setTimeout(h,1);return}g()}}new t("com.stickyadstv.dom.document");var k=new (d.extend(new function(){this.init= function(b){this._super();this._document=b;this._scroll=new e;this._lookupBodyReady=a(function(a){var b=document.body;b?this._onBodyReady({body:b}):a()},this);this._lookupSize=a(function(a){var b=this.width(),c=this.height();b&&c?this._onSize({width:b,height:c}):a()},this)};this._doc=function(){this._document||(this._document=document);return this._document};this._visibilityChangeType=function(){return U(["moz","ms","webkit",""],function(a){if("undefined"!==typeof k[f(a,"hidden")])return a+"visibilitychange"})}; this.isHidden=function(){return S(U(["moz","ms","webkit",""],function(a){a=f(a,"hidden");if("undefined"!==typeof k[a])return k[a]}),!1)};this._onReady=function(a){this._dispatchEvent("ready",a)};this._onSize=function(a){this._lookupSize.fired=!0;this._dispatchEvent("size",a||{width:this.width(),height:this.height()})};this._onBodyReady=function(a){this._lookupBodyReady.fired=!0;this._dispatchEvent("body",a||{body:document.body})};this.isReady=function(){return"complete"===this._doc().readyState}; this.width=c(function(){return b("Width")});this.height=c(function(){return b("Height")});this.clientRect=function(){var a=this.clientRectSize(),b=0,c=0,d=this._doc();"undefined"!=typeof d.defaultView&&(b=d.defaultView.pageXOffset,c=d.defaultView.pageYOffset);return{left:b,top:c,right:a.width+b,bottom:a.height+c,width:a.width,height:a.height}};this.clientRectSize=function(){var a=this.width(),b=this.height();return{left:0,top:0,right:a,bottom:b,width:a,height:b}};this._onListenerAdded=function(a, b,c){if("ready"==a){if(!F)if(F=!0,"complete"===document.readyState)setTimeout(g,1);else if(document.addEventListener)document.addEventListener("DOMContentLoaded",m,!1),window.addEventListener("load",g,!1);else if(document.attachEvent){document.attachEvent("onreadystatechange",m);window.attachEvent("onload",g);a=!1;try{a=null==window.frameElement}catch(K){}document.documentElement.doScroll&&a&&h()}}else"body"==a?this._lookupBodyReady.fired?this._onBodyReady():this._lookupBodyReady():"size"==a?this._lookupSize.fired? this._onSize():this._lookupSize():"visibilitychange"==a?Ia(this._doc(),this._visibilityChangeType(),b,c):Ia(this._doc(),a,b,c)};this._onListenerRemoved=function(a,b,c){"visibilitychange"==a?Ja(this._doc(),this._visibilityChangeType(),b,c):Ja(this._doc(),a,b,c)};this.disableScroll=function(){this._scroll.disableScroll()};this.enableScroll=function(){this._scroll.enableScroll()}})),m;document.addEventListener?m=function(){document.removeEventListener("DOMContentLoaded",m,!1);g()}:document.attachEvent&& (m=function(){"complete"===document.readyState&&(document.detachEvent("onreadystatechange",m),g())});var q=!1,v=1,F=!1;return k});p("mustang/com/stickyadstv/dom/Element","mod!com.stickyadstv.event.EventDispatcher mod!com.stickyadstv.event.StickyEvent mod!com.stickyadstv.xml.List mod!com.stickyadstv.utils.Timer mod!com.stickyadstv.utils.Browser mod!com.stickyadstv.dom.document".split(" "),function(d,e,c,b,a,f){function g(a){if(H(a)){var b={};r(a.split(";"),function(a){a=a.split(":");2==a.length&&(b[Da(a[0])]= Da(a[1]))});return b}return a||{}}function h(a,b){for(var c=0,d=0,f=a.clientWidth,e=a.clientHeight;a&&(b?"absolute"!=k(a)&&"fixed"!=k(a)&&"relative"!=k(a):1);)c+=parseInt(a.offsetTop),d+=parseInt(a.offsetLeft),a=a.offsetParent;return{top:c,left:d,width:f,height:e,right:d+f,bottom:c+e}}function k(a){var b=window.getComputedStyle(a,null);null==b&&(b=a.style);return b?b.position:""}function m(a){var b=a.nodeType;var c="";if(b)if(1===b||9===b){if("string"===typeof a.textContent)return a.textContent;if("string"=== typeof a.innerText)return a.innerText.replace(p,"");for(a=a.firstChild;a;a=a.nextSibling)c+=m(a)}else{if(3===b||4===b)return a.nodeValue}else for(b=0;b<a.length;b++){var d=a[b];8!==d.nodeType&&(c+=m(d))}return c}function q(a){if(y.test(a)||T.test(a)){if(a=parseInt(a),0<=a)return a+"px"}else return v(a)}function v(a){return P(a)?a+"px":a}function F(a,b){a=parseFloat(Z(a,b));return isNaN(a)?0:a}function z(a,b){if(9===a.nodeType)return Math.round(Math.max(a.documentElement["client"+b],a.body["scroll"+ b],a.documentElement["scroll"+b],a.body["offset"+b],a.documentElement["offset"+b]));var c=a["offset"+b];r({Width:["Left","Right"],Height:["Top","Bottom"]}[b],function(b){c-=F(a,"padding"+b)+F(a,"border"+b+"Width")},this);return Math.round(c)}function w(a){if(H(a)){var b=a.split(",");return function(a){return 1!=a.nodeType?!1:U(b,function(b){if("*"==b)return!0;if("#"==b.charAt(0))return a.id==b.substr(1);if("."==b.charAt(0))return a.getAttribute("class")==b.substr(1);var c=a.nodeName;return b.toLowerCase()== c.toLowerCase()})}}return n(a)?Va:a}function B(a,b){try{var c=a.implementation.createHTMLDocument("");c.documentElement.innerHTML=b;var d=c.body;return fa(xa(d.childNodes),function(b){d.removeChild(b);return a.importNode(b)})}catch(zb){return c=a.createElement("div"),c.innerHTML=b,xa(c.childNodes)}}var K=new t("com.stickyadstv.dom.Element"),A=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,y=/^-?\d+(?:px)?$/i,T=/^-?\d+\.\d+(?:px)?$/i,L=/^-?\d/,p=/\r\n/g;var rb=document.documentElement.contains? function(a,b){return a!==b&&(a.contains?a.contains(b):!0)}:document.documentElement.compareDocumentPosition?function(a,b){return!!(a.compareDocumentPosition(b)&16)}:function(){return!1};var Z;document.defaultView&&document.defaultView.getComputedStyle&&(Z=function(a,b){var c,d;b=b.replace(/([A-Z]|^ms)/g,"-$1").toLowerCase();if(a.ownerDocument&&(c=a.ownerDocument.defaultView)&&(d=c.getComputedStyle(a,null))){var f=d.getPropertyValue(b);""!==f||rb(a.ownerDocument.documentElement,a)||(f=a.style[b])}return f}); if(document.documentElement.currentStyle){var Pa=function(a,b){var c,d,f=a.currentStyle&&a.currentStyle[b],e=a.style;null===f&&e&&(c=e[b])&&(f=c);if(!y.test(f)&&L.test(f)){c=e.left;if(d=a.runtimeStyle&&a.runtimeStyle.left)a.runtimeStyle.left=a.currentStyle.left;e.left="fontSize"===b?"1em":f||0;f=e.pixelLeft+"px";e.left=c;d&&(a.runtimeStyle.left=d)}return""===f?"auto":f};Z||(Z=Pa)}var db=b.extend(new function(){this.init=function(a){this._super({duration:30,loop:!0});this._element=a;this.on("complete", this._update,this)};this.play=function(){this._resizeHandler();this._element.on("resize",this._resizeHandler,this,!1,!0);this._super()};this.pause=function(){this._element.off("resize",this._resizeHandler,this);this._super()};this._dimension=function(){var a=this._element;try{var b=a.clientRect();return{width:b.right-b.left,height:b.bottom-b.top}}catch(xb){return{width:a.offsetWidth,height:a.offsetHeight}}};this._resizeHandler=function(){try{var a=this._dimension();this._width=a.width;this._height= a.height}catch(Ea){K.warn(Ea)}};this._update=function(){var a=this._dimension();if(this._width!=a.width||this._height!=a.height)this._width=a.width,this._height=a.height,this._element._dispatchEvent("resize",{width:a.width,height:a.height})};this.dispose=function(){this._super();this._element.off("resize",this._resizeHandler,this)}}),sb=b.extend(new function(){this.init=function(a){this._super({duration:200,loop:!0});this._element=a;this.on("complete",this._update,this)};this.play=function(){this._moveHandler(); this._element.on("move",this._moveHandler,this,!1,!0);this._super()};this.pause=function(){this._element.off("move",this._moveHandler,this);this._super()};this._offset=function(){var a=this._element;try{var b=a.clientRect();return{left:b.left,top:b.top}}catch(xb){return{left:a.offsetLeft,top:a.offsetTop}}};this._moveHandler=function(){var a=this._offset();this._left=a.left;this._top=a.top};this._update=function(){var a=this._offset();if(this._left!=a.left||this._top!=a.top)this._left=a.left,this._top= a.top,this._element._dispatchEvent("move",{left:a.left,top:a.top})};this.dispose=function(){this._super();this._element.off("move",this._moveHandler,this)}}),C=c.extend(new function(){this.add=function(a){this._super(new J(a))};r(["attr","css"],function(a){this[a]=function(b,c){if(n(c)){var d=this._nodeList[0];return d?d[a](b):null}r(this._nodeList,function(d){d[a](b,c)});return this}},this);r("show hide remove detach on off empty style".split(" "),function(a){this[a]=function(){var b=arguments;r(this._nodeList, function(c){c[a].apply(c,b)});return this}},this);r(["xml","text","html","width","height"],function(a){this[a]=function(b){if(n(b))return qa(this._nodeList,function(b,c){return b+c[a]()},"width"==a||"height"==a?0:"");r(this._nodeList,function(c){c[a](b)});return this}},this)}),E=1,I={},J=d.extend({listenPauseEvent:!0},new function(){this.init=function(a,b,c){this._super();if(!a)throw Error("Element.init: Bad argument 'type'.");"undefined"!=typeof a._videoTag?a=a._videoTag:"undefined"!=typeof a._audioTag&& (a=a._audioTag);if(W(a)||x(a))if(a.hasOwnProperty("_player"))this._element=a;else if(a.domElement)this._element=x(a.domElement)?a.domElement():a.domElement;else if(n(a.nodeType))if(a.hasOwnProperty("src"))K.debug("We were given a fake video element. try to manage it as a real dom element."),this._element=a,this._element.nodeType=1,this._element.nodeName="VIDEO";else throw Error("Unexpected dom element.");else this._element=a;else if(H(a))if("<"==a.charAt(0))if(a=B(document,a),1==a.length)this._element= a[0];else{var d=document.createElement("div");r(a,function(a){d.appendChild(a)});this._element=d}else this._element=document.createElement(a);if(!this._element)throw Error("Element.init: Bad argument.");this.on("replaced",this._replacedHandler,this);if(b){if(b instanceof J)throw Error("Element.init: Bad argument 'attributes'.");for(var e in b)b.hasOwnProperty(e)&&(a=b[e],n(a)||(x(this[e])?this[e].call(this,a):this.attr(e,a)))}if(J.listenPauseEvent)f.on("pause",this._onAppPauseHandler,this);c&&this.children(c)}; this._replacedHandler=function(a){"undefined"!=typeof a&&"undefined"!=typeof a.detail&&"undefined"!=typeof a.detail.newElement&&a.detail.newElement!=this._element&&(this._element=a.detail.newElement)};this._dispatcher=function(a,b){var c=this._super()||this.data("dispatcherMap");c||(c={},this.data("dispatcherMap",c));this._dispatcherMap=c;return this._super(a,b)};this.uid=function(a){if(n(a)){a=this._element;var b=this._uid||a.__sticky_dispatcher__||a.id;b||(b="id__"+E,E++,a.__sticky_dispatcher__= b);return b}this._uid=a;return this};this._globalInit=function(){return!1};this.data=function(a,b){if(n(a)){a=this.uid();var c=I[a];c||(c={},I[a]=c);c.globalInitialized||D(function(){c.globalInitialized||(c.globalInitialized=this._globalInit())},this);return c}if(n(b))return this.data()[a];this.data()[a]=b;return this};this._installDog=function(a,b){var c=this.data("watchDogs");c||(c={},this.data("watchDogs",c));c[a]||(b=new b(this),c[a]=b,b.one("dispose",function(){delete c[a]},this),b.play())}; this._uninstallDog=function(a){var b=this.data("watchDogs");b&&b[a]&&b[a].dispose()};this.id=function(a){if(n(a))return this._element.id;this._element.id=a;return this};this.nodeType=function(){return this._element.nodeType};this.nodeName=function(){return String(this._element.nodeName)};this.style=function(a){var b=this._element;if(n(a))return b.style;W(a)&&(a=fa(a,function(a,c){if("width"==c||"height"==c)if(a=q(a),n(a))return;if("background"==c){var d=a.match(/rgba\((.+)\)/);if(d)return d=d[1].split(","), c="#"+fa([d[3],d[0],d[1],d[2]],function(a){return za(Math.round(100*parseFloat(a)).toString(16),2)}).join(""),["background: rgb(0, 0, 0)","background:"+a,"filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="+c+", endColorstr="+c+")",'-ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr='+c+", endColorstr="+c+')"'].join(";")}else if("opacity"==c)return b.style.zoom=1,c=Math.round(100*a),["opacity:"+a,'-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity='+c+')"', "filter: alpha(opacity="+c+")"].join(";");return c+":"+a}).join(";"));b.style.cssText+=""+a;return this};this.css=function(a,b){var c=this._element;if(n(b))return Z(c,a);c.style[a]=b;return this};this.cssRotate=function(a){var b=this._element;b.style["-webkit-transform"]="rotate("+a+"deg)";b.style["-moz-transform"]="rotate("+a+"deg)";b.style["-o-transform"]="rotate("+a+"deg)";b.style["-ms-transform"]="rotate("+a+"deg)";b.style.transform="rotate("+a+"deg)"};this.cssFloat=function(a,b){return F(this._element, a)};this.domElement=function(){return this._element};this.getNextBrother=function(){if("undefined"!=typeof this.parent()){for(var a=this.parent().children().filter(function(a){return"#text"!=a.nodeName()&&"#comment"!=a.nodeName()}).toArray(),b=0,c=!1;b<a.length&&!c;)a[b].domElement()==this.domElement()&&(c=!0),b++;if(c)return a[b]}};this.backup=function(a){a(this)};this.restore=function(a,b){b(this)};this.detach=function(){var a=this._element.parentNode;if(!a)return this;a.removeChild(this._element); return this};this.appendTo=function(a){(new C(a)).each(function(a){a.append(this)},this);return this};this.append=function(a){(new C(a)).each(function(a){this._element.appendChild(a._element)},this);return this};this.insertBefore=function(a,b){this._element.insertBefore(a._element,b._element);return this};this.prependTo=function(a){(new C(a)).each(function(a){a.prepend(this)},this);return this};this.prepend=function(a){var b=this._element.firstChild;(new C(a)).each(function(a){this._element.insertBefore(a._element, b)},this);return this};this.replace=function(a){var b=this._element;this._eachListener(function(c,d,f){this._element=b;this._remListener(c,d,f.context);this._element=a;this._addListener(c,d,f)},this);this._element=a;ab(b,a);this.fire("replaced",{newElement:a})};this.replaceWith=function(a){ab(this._element,a);this._element=a};this.attr=function(a,b){var c=this._element;if(n(b))return a=c.getAttribute(a),null===a?void 0:a;n(b)||null===b?c.removeAttribute(a):c.setAttribute(a,String(b));return this}; this.isEmpty=function(){return!this._element.firstChild};this.empty=function(){for(var a=this._element;a.firstChild;)a.removeChild(a.firstChild);return this};this.left=function(a){if(n(a))return F(this._element,"left");this._element.style.left=v(a);return this};this.top=function(a){if(n(a))return F(this._element,"top");this._element.style.top=v(a);return this};this.resize=function(a,b){this._element.style.width=q(a);this._element.style.height=q(b);return this};this.width=function(a){if(n(a))return z(this._element, "Width");this._element.style.width=q(a);return this};this.height=function(a){if(n(a))return z(this._element,"Height");if(a=q(a))this._element.style.height=a;return this};this.clientRect=function(){if(!this._element.getBoundingClientRect&&0<this._element.getClientRects().length){var b=this._element.getClientRects()[0];this._element.getBoundingClientRect=function(){return b}}var c=a.isMobile()&&"fixed"!=this.css("position")?h(this._element):this._element.getBoundingClientRect(),d={},f;for(f in c)"function"!= typeof c[f]&&(d[f]=Math.round(G(c[f],0)));return d};this.getAbsolutePositionInPage=function(){var a=h(this._element);return{x:a.left,y:a.top,width:a.width,height:a.height}};this.clientRectFromFirstPositionedParent=function(){var a=h(this._element,!0),b={},c;for(c in a)b[c]=Math.round(G(a[c],0));return b};this.getZIndex=function(a){"undefined"==typeof a&&(a=this._element);var b=document.defaultView.getComputedStyle(a).getPropertyValue("z-index");return isNaN(b)?1==a.parentNode.nodeType?this.getZIndex(a.parentNode): 0:b};this.ownerDocument=function(){return this._element?this._element.ownerDocument:null};this.bodyRect=function(b){var c=this.clientRect(),d=this.ownerDocument(),f=d.documentElement,e=a.getWindow(d),h=d.body;d=f.clientTop||h.clientTop||0;var m=f.clientLeft||h.clientLeft||(f.offsetWidth>h.offsetWidth?(f.offsetWidth-h.offsetWidth)/2:0)||0;-1==this.getAllStyles(h).indexOf("position:relative")&&(m=0);b||(d+=F(h,"marginTop")+F(h,"paddingTop"),m+=F(h,"marginLeft")+F(h,"paddingLeft"));b=a.isMobile()&&"fixed"!= this.css("position")?0:e.pageYOffset||f.scrollTop;f=a.isMobile()&&"fixed"!=this.css("position")?0:e.pageXOffset||f.scrollLeft;e={};e.top=Math.round(c.top+b-d);e.left=Math.round(c.left+f-m);e.bottom=Math.round(c.bottom+b-d);e.right=Math.round(c.right+f-m);e.width=Math.round(G(c.width,c.right-c.left));e.height=Math.round(G(c.height,c.bottom-c.top));return e};this.getAllStyles=function(a){"undefined"==typeof a&&(a=this._element);var b=f.defaultView||window,c=[];if(b.getComputedStyle){a=b.getComputedStyle(a, "");for(var d=0;d<a.length;d++)c.push(a[d]+":"+a.getPropertyValue(a[d]))}else if(a.currentStyle)for(d in a=a.currentStyle,a)a.hasOwnProperty(d)&&c.push(d+":"+a[d]);else for(a=a.style,d=0;d<a.length;d++)c.push(a[d]+":"+a[a[d]]);return c};this.cssText=function(){var a=this.style();return a?a.cssText:""};this.nextSibling=function(){var a=this._element.nextSibling;return a?this._constructor(a):null};this.after=function(a){a=new C(a);var b=this._element.parentNode,c=this._element.nextSibling;a.each(function(a){b.insertBefore(a._element, c)},this);return this};this.isVisible=function(){return"hidden"!=this.css("visibility")};this.show=function(){this._element.style||(this._element.style={display:""});var a=this._element.style.display;if(""===a||"none"===a)this._element.style.display="";a=this._element.style.visibility;if(""===a||"hidden"===a)this._element.style.visibility="";if(0==this._element.style.height||"0px"==this._element.style.height)this._element.style.height=this._backupHeight||null,this._backupHeight=null;return this}; this.hide=function(){if("hidden"==this._element.style.visibility&&"0px"==this._element.style.height)return this;this._element.style.height&&(this._backupHeight=this._element.style.height);this._element.style.height="0px";this._element.style.visibility="hidden";return this};this._onListenerAdded=function(a,b,c){"resize"==a?this._installDog("resize",db):"move"==a?this._installDog("move",sb):Ia(this._element,a,b,c)};this._onListenerRemoved=function(a,b,c){"resize"==a?this.hasListener("resize")||this._uninstallDog("resize"): "move"==a?this.hasListener("move")||this._uninstallDog("move"):Ja(this._element,a,b,c)};this.html=function(a){if(n(a))return this._element.innerHTML;this._element.innerHTML=a.replace(A,"<$1></$2>");return this};this.text=function(a){if(n(a))return m(this._element);this.empty().append((this.ownerDocument()||document).createTextNode(a));return this};this.toXMLString=function(){return a.stringifyXML(this._element)};this._constructor=function(a){return new J(a)};this._nodesToList=function(a){return new c(fa(a, function(a){return this._constructor(a)},this))};this.query=function(a){var b=this._element,c;a&&a.length||(a=[Va]);var d=xa(b.childNodes);r(a,function(a){a=w(a);var b=[];c?(b=c,c=[],r(b,function(b){c=c.concat(Y(xa(b.childNodes),a))})):c=Y(d,a)});return this._nodesToList(c)};this.parent=function(){var a=this._element.parentNode;return a?this._constructor(a):null};this.firstChild=function(a){var b=this._element;n(a)?b=b.firstChild:(a=w(a),b=U(xa(b.childNodes),a));return b?this._constructor(b):null}; this.children=function(a){if(!W(a)||x(a))return this.query(arguments);for(var b in a)if(a.hasOwnProperty(b)){var c=a[b];H(c)?c=new J(b,null,c):r(c,function(a){a=new J(b,a);this._element.appendChild(a._element)})}};this.find=function(a){var b=this._element;a=b.querySelectorAll?b.querySelectorAll(a):"#"==a.charAt(0)?(a=b.getElementById(a.substr(1)))?[a]:[]:[];return this._nodesToList(a)};this.is=function(a){var b=va.documentElement;return(b.matchesSelector||b.mozMatchesSelector||b.webkitMatchesSelector|| b.msMatchesSelector)(this._element,a)};this._dispatchEvent=function(a,b){var c="resize"==a||"move"==a;if(b&&!S(b.domEvent,!0)||c)return this._super(a,b);try{var d=this._element,f=!b||X(b)?b:b.detail||b,h=va.createEvent("CustomEvent");h.initCustomEvent(a,!1,!1,f);d.dispatchEvent(h);return new e(a,this,h)}catch(Ab){return K.warn("dom event sending failed.('"+a+"')"),this._super(a,b)}};this._domMethod=function(a,b){var c=this.data("domMethods");if(n(b))return c?c[a]:void 0;c||(c={},this.data("domMethods", c));c[a]=b;return this};this._invoke=function(){var a=this._element,b=l(arguments),c=b.shift();return(this._domMethod(c)||a[c]).apply(a,b)};this.detachExtendedDom=function(a){r(a.split(" "),function(a){function b(){return c.apply(this,l(arguments,1))}var c=this._element[a],d=this[a];x(c)&&x(d)&&!this._domMethod(a)&&(this._domMethod(a,c),this._element[a]=u(function(){var c=this._invoke;this._invoke=u(b,this._element);try{var f=d.apply(this,arguments)}catch(yb){K.error("An error occurred while calling the following method : '"+ a+"'. '"+yb.message+"'")}this._invoke=c;return f},this))},this);return this._element};this.remove=function(){var a=this.uid();this.detach();this._dispatchEvent("removed",{});this.removeAllListener();var b=this.data("watchDogs");b&&r(b,function(a){a.dispose()});delete I[a];return this};this._onAppPauseHandler=function(a){f.on("resume",this._onAppResumeHandler,this).off("pause",this._onAppPauseHandler,this,!0)};this._onAppResumeHandler=function(a){f.off("resume",this._onAppResumeHandler,this).on("pause", this._onAppPauseHandler,this,!0)};this.dispose=function(){f.off("pause",this._onAppPauseHandler,this).off("resume",this._onAppResumeHandler,this)};this.setLayout=function(a){this.layout="function"==typeof g?g(a):a}});return J});p("mustang/com/stickyadstv/xml/XmlNode",["mod!com.stickyadstv.dom.Element","mod!com.stickyadstv.utils.Browser"],function(d,e){new t("com.stickyadstv.xml.XmlNode");var c=d.extend(new function(){this.init=function(b){this._super(H(b)?e.parseXML(b):b)};this._constructor=function(b){return new c(b)}; this.attr=function(b){return Da(this._super(b))};this.text=function(){return Da(this._super())};this.json=function(){var b={},a="";this.children().each(function(c){if(1==c.nodeType()){var d=c.nodeName();if(d in b){var f=b[d];X(f)||(f=[f]);f.push(c.json());b[d]=f}else b[d]=c.json()}else a+=c.text()});if(!ha(b)||a)return a?a:b};this.xml=function(){return this.toXMLString()}});return c});p("mustang/com/stickyadstv/utils/JsonParser",[],function(){new t("com.stickyadstv.utils.JsonParser");return new (N.extend(new function(){this.encode= function(d){return JSON.stringify(d)};this.decode=function(d){return JSON.parse(d)}}))});p("mustang/com/stickyadstv/vast/decorator/DecoratorData",[],function(){new t("com.stickyadstv.vast.decorator.DecoratorData");return N.extend(new function(){this.init=function(d){"undefined"==typeof d&&(d={});"function"==typeof d.children?this._extension=d:this._configuration=new Q(d);this._data=new Q;this._fillData()};this.getData=function(d){if(this._extension){var e=this._extension.children(d),c=e.text();if(c){d= e.children().toArray();if(1<d.length){c="";for(var b in d)c+=d[b].nodeName()+":"+d[b].text()+";"}return c}}return this._data.value(d)};this.setData=function(d,e){this._data.value(d,e)};this._fillData=function(){this._configuration&&this._configuration.each(u(function(d,e){this._data.value(e.substring(1),d)},this))}})});p("mustang/com/stickyadstv/vast/decorator/SoundButtonData",["mod!com.stickyadstv.vast.decorator.DecoratorData"],function(d){new t("com.stickyadstv.vast.decorator.SoundButtonData"); return d.extend(new function(){this.init=function(d){this._super(d)};this._fillData=function(){this._data.value("layout",{halign:"right",valign:"bottom",padding:null,width:null,height:null});this._super()}})});p("mustang/com/stickyadstv/vast/decorator/AdvertisingBannerData",["mod!com.stickyadstv.utils.Browser","mod!com.stickyadstv.vast.decorator.DecoratorData"],function(d,e){new t("com.stickyadstv.vast.decorator.AdvertisingBannerData");return e.extend(new function(){this.init=function(c){this._super(c); this._advertisingLanguages={fr:"PUBLICIT\u00c9",de:"WERBUNG",en:"ADVERTISEMENT",es:"PUBLICIDAD",it:"PUBBLICIT\u00c0",nl:"ADVERTENTIE",pt:"PUBLICIDADE",se:"ANNONS",no:"ANNONSE",dk:"REKLAME",ru:"\u0420\u0415\u041a\u041b\u0410\u041c\u0410",pl:"REKLAMA"};this._associateLabel()};this._fillData=function(){this._data.value("layout",{valign:"bottom",width:null,height:null});this._data.value("label",!1);this._super()};this._associateLabel=function(){var c=this.getData("label");c&&"boolean"!=typeof c?this._data.value("label", this._advertisingLanguages[c]?this._advertisingLanguages[c]:this._advertisingLanguages.en):c&&(c=d.getLanguage()?d.getLanguage().substring(0,2):"en",c=this._advertisingLanguages[c],this._data.value("label",c&&""!=c?c:"en"))}})});p("mustang/com/stickyadstv/utils/ZIndexUtils",[],function(){new t("com.stickyadstv.utils.ZIndexUtils");var d={pageOverlay:0,companion:0,overlayOfOverlay:3,info:2,click:1,slot:0,adPlayer:-1},e,c=function(){e||(e=new b);return e},b=N.extend({PAGE_OVERLAY_ELEMENT:"pageOverlay", COMPANION_ELEMENT:"companion",OVER_OVERLAY_ELEMENT:"overlayOfOverlay",INFO_ELEMENT:"info",CLICK_ELEMENT:"click",SLOT_ELEMENT:"slot",AD_PLAYER_ELEMENT:"adPlayer",getZIndex:function(a){return c()._getZIndex(a)},setBaseZIndex:function(a){c()._setBaseZIndex(a)}},new function(){this.init=function(){this._baseZIndex=4100};this._getZIndex=function(a){return this._baseZIndex+d[a]};this._setBaseZIndex=function(a){P(a)&&(this._baseZIndex=a)}});return b});p("mustang/com/stickyadstv/vast/decorator/CloseTimeOutData", ["mod!com.stickyadstv.utils.Browser","mod!com.stickyadstv.vast.decorator.DecoratorData","mod!com.stickyadstv.utils.ZIndexUtils","mod!com.stickyadstv.utils.HedgehogUtils"],function(d,e,c,b){new t("com.stickyadstv.vast.decorator.CloseTimeOutData");return e.extend(new function(){this.init=function(a){this._super(a);this._advertisingLanguages={fr:"Fermer",de:"Schlie\u00dfen",en:"Close",es:"Cerca",it:"Vicino",nl:"Sichtbij",pt:"Fechar",se:"St\u00e4nga",no:"Lukk",dk:"T\u00e6t",ru:"\u0417\u0430\u043a\u0440\u044b\u0442\u044c", pl:"Zamkn\u0105\u0107"};this._associateLabel()};this._fillData=function(){this._params=new Q("undefined"==typeof b.getParams("vpaid-adapter")?b.getParams("vpaid-adapter.min"):b.getParams("vpaid-adapter"));var a="top",d="right";switch(this._params.string("skipButtonAnchor","")){case "tl":case "lt":d="left";a="top";break;case "tr":case "rt":d="right";a="top";break;case "bl":case "lb":d="left";a="bottom";break;case "br":case "rb":d="right",a="bottom"}this._data.value("layout",{valign:a,halign:d,padding:null, zIndex:c.getZIndex(c.INFO_ELEMENT),height:null,width:null});this._data.value("countDown",5E3);this._data.value("label",!1);this._super();this.getData("label")&&delete this._data.value("layout").width};this._associateLabel=function(){var a=this.getData("label");a&&"boolean"!=typeof a?this._data.value("label",this._advertisingLanguages[a]?this._advertisingLanguages[a]:this._advertisingLanguages.en):a&&(a=d.getLanguage()?d.getLanguage().substring(0,2):"en",a=this._advertisingLanguages[a],this._data.value("label", a&&""!=a?a:"en"))}})});p("mustang/com/stickyadstv/vast/decorator/ProgressBarData",["mod!com.stickyadstv.vast.decorator.DecoratorData","mod!com.stickyadstv.utils.ZIndexUtils"],function(d,e){new t("com.stickyadstv.vast.decorator.ProgressBarData");return d.extend(new function(){this.init=function(c){this._super(c)};this._fillData=function(){this._data.value("layout",{valign:"bottom",halign:"center",height:"auto",zIndex:e.getZIndex(e.INFO_ELEMENT)});this._super()}})});p("mustang/com/stickyadstv/vast/decorator/SkipButtonData", ["mod!com.stickyadstv.utils.Browser","mod!com.stickyadstv.vast.decorator.CloseTimeOutData"],function(d,e){var c=new t("com.stickyadstv.vast.decorator.SkipButtonData");return e.extend(new function(){this.init=function(b){this._super(b);this._data.value("skipTrackingArray",[]);this._data.value("skipButtonDisplayArray",[]);na(this.getData("skipTracking"))&&this.addTrackingUrl("skipTrackingArray",this.getData("skipTracking"));na(this.getData("skipButtonDisplay"))&&this.addTrackingUrl("skipButtonDisplayArray", this.getData("skipButtonDisplay"))};this._fillData=function(){this._super();try{var b=JSON.parse(this._extension.firstChild().text())}catch(f){c.debug("Can't read extension parameters as JSON")}if(b)for(var a in b)this._data.value(a,b[a])};this.addSkipTrackingUrl=function(b){this.addTrackingUrl("skipTrackingArray",b)};this.addSkipButtonDisplayedUrl=function(b){this.addTrackingUrl("skipButtonDisplayArray",b)};this.addTrackingUrl=function(b,a){a:{var c=this._data.value(b);for(var d=0;d<c.length;d++)if(a.replace("http://", "").replace("https://","")==c[d].replace("http://","").replace("https://","")){c=!0;break a}c=!1}!c&&na(a)&&""!=a&&this._data.value(b).push(a)}})});p("mustang/com/stickyadstv/vast/decorator/StartButtonData",["mod!com.stickyadstv.utils.Browser","mod!com.stickyadstv.vast.decorator.DecoratorData","mod!com.stickyadstv.utils.ZIndexUtils"],function(d,e,c){new t("com.stickyadstv.vast.decorator.StartButtonData");return e.extend(new function(){this.init=function(b){this._super(b)};this._fillData=function(){this._data.value("layout", {halign:"center",valign:"center",zIndex:c.getZIndex(c.INFO_ELEMENT),width:null,height:null});this._data.value("playButton",!0);this._data.value("componentId","none");this._data.value("openingTime",0);this._data.value("poster",!1);this._super()}})});p("mustang/com/stickyadstv/vast/decorator/SoundOffLogoData",["mod!com.stickyadstv.vast.decorator.DecoratorData"],function(d){new t("com.stickyadstv.vast.decorator.SoundOffLogoData");return d.extend(new function(){this.init=function(d){this._super(d)};this._fillData= function(){this._data.value("layout",{valign:"bottom",halign:"left",padding:null,height:null,width:null});this._super()}})});p("mustang/com/stickyadstv/vast/decorator/SoundOffMessageData",["mod!com.stickyadstv.vast.decorator.DecoratorData"],function(d){new t("com.stickyadstv.vast.decorator.SoundOffMessageData");return d.extend(new function(){this.init=function(d){this._super(d)};this._fillData=function(){this._data.value("layout",{padding:null,valign:"top",halign:"left",height:null});this._data.value("opacity", .2);this._data.value("messageColor","#777777");this._super()}})});p("mustang/com/stickyadstv/vast/decorator/MoreInfoData",["mod!com.stickyadstv.vast.decorator.DecoratorData","mod!com.stickyadstv.utils.ZIndexUtils"],function(d,e){new t("com.stickyadstv.vast.decorator.MoreInfoData");return d.extend(new function(){this.init=function(c){this._super(c)};this._fillData=function(){this._data.value("layout",{valign:"bottom",halign:this.getData("layoutAlign"),padding:null,zIndex:e.getZIndex(e.INFO_ELEMENT)}); this._super()}})});p("mustang/com/stickyadstv/vast/decorator/ExplayButtonData",["mod!com.stickyadstv.vast.decorator.DecoratorData"],function(d){new t("com.stickyadstv.vast.decorator.ExplayButtonData");return d.extend(new function(){this.init=function(d){this._super(d)}})});p("mustang/com/stickyadstv/vast/decorator/LearnMoreButtonData",["mod!com.stickyadstv.vast.decorator.DecoratorData","mod!com.stickyadstv.utils.ZIndexUtils"],function(d,e){return d.extend(new function(){this.init=function(c){this._super(c)}; this._fillData=function(){this._super();this._data.value("layout",{halign:"right",valign:"top",padding:null,width:null,height:null,zIndex:e.getZIndex(e.CLICK_ELEMENT)})}})});p("mustang/com/stickyadstv/vast/decorator/RemainingData",["mod!com.stickyadstv.vast.decorator.DecoratorData","mod!com.stickyadstv.utils.ZIndexUtils"],function(d,e){new t("com.stickyadstv.vast.decorator.RemainingData");return d.extend(new function(){this.init=function(c){this._super(c)};this._fillData=function(){this._data.value("layout", {halign:"left",valign:"bottom",padding:null,zIndex:e.getZIndex(e.INFO_ELEMENT)});this._super()}})});p("mustang/com/stickyadstv/vast/decorator/DecoratorDataFactory","mod!com.stickyadstv.xml.XmlNode mod!com.stickyadstv.utils.JsonParser mod!com.stickyadstv.utils.Browser mod!com.stickyadstv.vast.decorator.SoundButtonData mod!com.stickyadstv.vast.decorator.AdvertisingBannerData mod!com.stickyadstv.vast.decorator.CloseTimeOutData mod!com.stickyadstv.vast.decorator.ProgressBarData mod!com.stickyadstv.vast.decorator.SkipButtonData mod!com.stickyadstv.vast.decorator.StartButtonData mod!com.stickyadstv.vast.decorator.SoundOffLogoData mod!com.stickyadstv.vast.decorator.SoundOffMessageData mod!com.stickyadstv.vast.decorator.MoreInfoData mod!com.stickyadstv.vast.decorator.ExplayButtonData mod!com.stickyadstv.vast.decorator.LearnMoreButtonData mod!com.stickyadstv.vast.decorator.RemainingData".split(" "), function(d,e,c,b,a,f,g,h,k,m,q,v,F,z,w){new t("com.stickyadstv.vast.decorator.DecoratorDataFactory");return new (N.extend(new function(){this.init=function(){};this.getData=function(c,K){switch(c){case "sticky-soundbutton":return new b(K);case "sticky-advertisingbanner":return new a(K);case "sticky-progressbar":return new g(K);case "sticky-skipbutton":return na(K)&&"String"==typeof K&&"skip"==(new d(K)).attr("type")&&(K=e.decode((new d(K)).text())),new h(K);case "sticky-startbutton":return new k(K); case "sticky-closetimeout":return new f(K);case "sticky-soundoff-logo":return new m(K);case "sticky-soundoff-msg":return new q(K);case "sticky-moreInfo":return new v(K);case "sticky-explaybutton":return new F(K);case "sticky-learnmorebutton":return new z(K);case "sticky-remainingAdTime":return new w(K);default:return null}}}))});p("mustang/com/stickyadstv/vpaid/decorator/DisplayWrapper",["mod!com.stickyadstv.vpaid.Wrapper","mod!com.stickyadstv.vast.decorator.DecoratorDataFactory","mod!com.stickyadstv.utils.Browser"], function(d,e,c){var b=new t("com.stickyadstv.vpaid.decorator.DisplayWrapper");return d.extend(new function(){this.init=function(a,c,d,h){this._super(a,c,d);this._initBaseListeners();this._layoutData=new Q;this._data=e.getData(this._getID(),h);this._ui=this.getUI();this._zoomLevel=1;this._data&&this._data.getData("zoomLevel")&&(this._zoomLevel=this._data.getData("zoomLevel"));this._ui&&"function"==typeof this._ui.applyZoom&&this._ui.applyZoom(this._zoomLevel);this._dragging=!1;this._logger=b};this._initBaseListeners= function(){this.on("adDispose",this._adWillDisposeHandler,this);this.on("AdStarted",this._startedHandler,this)};this.getUI=function(){this._buildUI();this._addUIListeners();return this._ui};this.getSlot=function(){return this._slot};this._addUIListeners=function(){this._ui&&(this._ui.addEventListener("mouseover",u(this._forwardDomEventToAdContainer,this)),this._ui.addEventListener("mouseout",u(this._forwardDomEventToAdContainer,this)))};this._touchMoveHandler=function(a){this._dragging=!0};this._addSlotListener= function(){if(this._slot&&this._clickThruHandler)if(c.isMobile())this._slot.on("touchend",this._clickThruHandler,this),this._slot.on("touchmove",this._touchMoveHandler,this);else this._slot.on("click",this._clickThruHandler,this)};this._startedHandler=function(a){if(a.target.adLinear()){a=this.getLayout();this._slot=this._container.slot(a,this._getID(),this._ui);this.refreshDisplay();if(this._pausedHandler)this.on("AdPaused",this._pausedHandler,this);if(this._playingHandler)this.on("AdPlaying",this._playingHandler, this);this.on("AdStopped",this.dispose,this);this.on("AdError",this.dispose,this);this.on("adSlotComplete",this.dispose,this);window.addEventListener("resize",this._resizedHandler);this._addSlotListener()}};this._resizedHandler=u(function(){this.updateLayout();this.refreshDisplay()},this);this.dispose=function(){this.off("AdStarted",this._startedHandler,this);this.off("AdPaused",this._pausedHandler,this);this.off("AdPlaying",this._playingHandler,this);this.off("AdStopped",this.dispose,this);this.off("AdError", this.dispose,this);this.off("adSlotComplete",this.dispose,this);this._slot&&(this._slot.remove(),this._slot=null);this._ui&&(this._ui.remove(),this._ui=null);window.removeEventListener("resize",this._resizedHandler)};this._adWillDisposeHandler=function(){this._ui&&this._ui.hide()};this._forwardDomEventToAdContainer=function(a){this._container&&"function"==typeof this._container.domElement&&1==a.target.nodeType&&!a.target.isEqualNode(this._container.domElement())?this._container.domElement().dispatchEvent(new Event(a.type)): this._forwardEvent(a)};this.getWidth=function(){if(this._ui)return this._ui.getWidth()};this.getHeight=function(){if(this._ui)return this._ui.getHeight()};this.getClass=function(){if(this._ui&&this._ui.getClass)return this._ui.getClass()};this.refreshDisplay=function(){this.updateLayout();this._ui&&this._ui.display&&this._ui.display()};this.updateLayout=function(){this._slot&&this._slot.setLayout(this.getLayout())};this.updateZoomLevel=function(a){this._zoomLevel=a;this._ui&&(this._ui.resetSize(), this._ui.applyZoom(this._zoomLevel))};this.setLayout=function(a){this._layout=a};this.getLayout=function(){return this._layout?this._layout:this._data.getData("layout")};this._buildUI=function(){b.warn("buildUI must be redefined")};this._getID=function(){b.warn("getID must be redefined")}})});p("mustang/com/stickyadstv/vpaid/decorator/display/AbstractDecoratorUI",["mod!com.stickyadstv.dom.Element"],function(d){var e=new t("com.stickyadstv.vpaid.decorator.display.AbstractDecoratorUI");return d.extend(new function(){this.init= function(){this._setStyle();this._super("div",{"class":this.getClass(),style:this._style})};this._setStyle=function(){this._style={}};this.display=function(){e.warn("Not Implemented")};this.getHeight=function(){e.warn("Not Implemented")};this.getWidth=function(){e.warn("Not Implemented")};this.getClass=function(){return"sticky-view"}})});p("mustang/com/stickyadstv/vpaid/decorator/display/RemainingUI",["mod!com.stickyadstv.vpaid.decorator.display.AbstractDecoratorUI"],function(d){new t("com.stickyadstv.vpaid.decorator.display.RemainingUI"); return d.extend(new function(){this.init=function(){this._super()};this._setStyle=function(){this._style={};this._style.position="absolute";this._style.color="white";this._style["font-size"]="small";this._style["background-color"]="rgba(255,255,255,0.2)"};this.display=function(){this.show().fire("resize")};this.getClass=function(){return"freewheel-remainingadtime"}})});p("mustang/com/stickyadstv/vpaid/decorator/Remaining",["mod!com.stickyadstv.utils.Browser","mod!com.stickyadstv.vpaid.decorator.DisplayWrapper", "mod!com.stickyadstv.xml.XmlNode","mod!com.stickyadstv.vpaid.decorator.display.RemainingUI"],function(d,e,c,b){var a=new t("com.stickyadstv.vpaid.decorator.Remaining");return e.extend(new function(){this.init=function(b,c,d){this._container=b;this._super(c,null,null,d);this._logger=a};this._buildUI=function(){var a=this._container.children(".remainingAdTime").first();if(a){a.detach();var c=this._data.getData("remainingAdTime");this._data.setData("remainingAdTime",c||a.text())}this._ui=new b};this.setSequenceIndex= function(a,b){this._sequenceIndex=a;this._sequenceSize=b};this._getID=function(){return"sticky-remainingAdTime"};this._startedHandler=function(a){this._super(a);this._ui.hide();this._paused=!1;this._interval=Ba(this._update,300,this);this._update()};this.getLayout=function(){var a=ba(this._super());"undefined"!=typeof a.padding&&null==a.padding&&(a.padding=7/this._zoomLevel);return a};this._update=function(){if(this._ui&&this._slot){var a=Math.round(this.adRemainingTime()||0),b=this._data.getData("remainingAdTime"); if(!this._paused&&P(a)&&0<a){if(b){-1<this._sequenceIndex&&1<this._sequenceSize&&(b=this._sequenceIndex+" / "+this._sequenceSize+" - "+b);var c=this._container.domElement().getElementsByClassName(this.getClass());d.isMobile()&&c&&c[0]?(c[0].style||(c[0].style={display:""}),c[0].style.visibility="",c[0].style.height="",c[0].textContent=b.split("[sec]").join(a)):this._ui.show().text(b.split("[sec]").join(a));this._slot.fire("resize")}}else this._ui.hide()}};this._pausedHandler=function(){this._paused= !0;this._update.call(this)};this._playingHandler=function(){this._paused=!1;this._update.call(this)};this.dispose=function(){this._super();sa(this._repeat)}})});p("mustang/com/stickyadstv/vpaid/decorator/display/SVGUI",["mod!com.stickyadstv.vpaid.decorator.display.AbstractDecoratorUI","mod!com.stickyadstv.utils.Browser"],function(d,e){var c=new t("com.stickyadstv.vpaid.decorator.display.GenericSVGUI");return d.extend(new function(){this.init=function(){this.resetSize();this._super()};this.resetSize= function(){e.isMobile()?(this._height=Math.ceil(1.2*this.getSVGHeight()),this._width=Math.ceil(1.2*this.getSVGWidth())):(this._height=Math.ceil(this.getSVGHeight()),this._width=Math.ceil(this.getSVGWidth()))};this.applyZoom=function(b){this._height/=b;this._width/=b};this.getSVGWidth=function(){return 30};this.getSVGHeight=function(){return 30};this._getViewBoxSize=function(){return 30};this.getHeight=function(){return this._height};this.getWidth=function(){return this._width};this._setStyle=function(){this._style= {};this._style.cursor="pointer";this._style.height=this.getHeight();this._style.width=this.getWidth();this._style["-webkit-tap-highlight-color"]="rgba(0, 0, 0, 0)";this._style["-webkit-filter"]="drop-shadow(0 1px 3px rgba(0,0,0,0.35))";this._style.filter="drop-shadow(0 1px 3px rgba(0,0,0,0.35))";this._style.display="flex";this._style["align-items"]="center"};this.getInnerSVG=function(){c.warn("getInnerSVG method must be redefined, giving the svg's inner code")};this.getAdditionnalTags=function(){return""}; this.display=function(){var b="<svg width='"+this.getSVGWidth()+"px' height='"+this.getSVGHeight()+"px' viewBox='0 0 "+this._getViewBoxSize()+" "+this._getViewBoxSize()+"' xmlns='http://www.w3.org/2000/svg'>"+this.getInnerSVG()+"</svg>";b="<img width='"+this.getWidth()+"' height='"+this.getHeight()+"' style='float:right;' src='data:image/svg+xml;base64,"+window.btoa(b)+"'>";this.show().html(this.getAdditionnalTags()+b).fire("resize")}})});p("mustang/com/stickyadstv/vpaid/decorator/display/StartButtonUI", ["mod!com.stickyadstv.vpaid.decorator.display.SVGUI"],function(d){var e=new t("com.stickyadstv.vpaid.decorator.display.StartButtonUI");return d.extend(new function(){this.init=function(){e.info("StartButtonUI");this._super()};this._setStyle=function(){this._super();this._style.cursor="pointer"};this.getInnerSVG=function(){return'<circle fill="#FFF" cx="30" cy="30" r="30"/><path fill="#52565F" d="M38.107 28.256l-11.868-7.98a2.096 2.096 0 0 0-2.163-.11 2.097 2.097 0 0 0-1.115 1.854v15.96a2.103 2.103 0 0 0 2.103 2.102c.41 0 .82-.121 1.174-.354l11.869-7.98A2.112 2.112 0 0 0 39.038 30a2.09 2.09 0 0 0-.931-1.744z"/>'}; this.getClass=function(){return"freewheel-startbutton"};this.getSVGWidth=function(){return 60};this.getSVGHeight=function(){return 60};this._getViewBoxSize=function(){return 60}})});p("mustang/com/stickyadstv/vpaid/decorator/StartButton",["mod!com.stickyadstv.vpaid.decorator.DisplayWrapper","mod!com.stickyadstv.utils.Browser","mod!com.stickyadstv.vpaid.decorator.display.StartButtonUI"],function(d,e,c){var b=new t("com.stickyadstv.vpaid.decorator.StartButton");return d.extend(new function(){this.init= function(a,c,d){this._super(c,null,null,d);this._container=a;this._adPlaying=!1;var f=this._data.getData("openingTime");a=u(function(a){0>f?this._initHandler(a):D(u(function(){this._initHandler(a)},this),f)},this);this._data.getData("playButton")&&(c="intext-roll"==this._data.getData("componentId")&&e.isMobile(),this.on(c?"OpenContainer":"AdLoaded",a,this));this._logger=b};this._initBaseListeners=function(){this.on("adDispose",this._adWillDisposeHandler,this);this.on("AdStarted",this._playingHandler, this)};this._playingHandler=function(){R(this._pausedDelay);this._pausedDelay=0;this._adPlaying=!0;this._slot&&this._slot.hide()};this._initHandler=function(a){this._startedHandler(a);this._initialized=!0;if(this._slot)this._slot.on("click",this._clickHandler,this)};this._clickHandler=function(a){this._slot&&this._slot.hide();this.resumeAd()};this._pausedHandler=function(){this._pausedDelay||(this._pausedDelay=D(u(function(){this._adPlaying=!1;this.refreshDisplay()},this),500))};this._buildUI=function(){this._ui= new c};this.getLayout=function(){var a=ba(this._super());"undefined"!=typeof a.width&&null==a.width&&(a.width=this._ui.getWidth());"undefined"!=typeof a.height&&null==a.height&&(a.height=this._ui.getHeight());return a};this._getID=function(){return"sticky-startbutton"};this.refreshDisplay=function(){this._initialized&&this._super()};this.dispose=function(){this.off("AdPaused",this._pausedHandler,this);this.off("AdPlaying",this._playingHandler,this);this.off("AdStopped",this.dispose,this);this.off("AdError", this.dispose,this);this.off("adSlotComplete",this.dispose,this);this._slot&&(this._slot.remove(),this._slot=null)}})});p("mustang/com/stickyadstv/vpaid/decorator/display/LearnMoreButtonUI",["mod!com.stickyadstv.vpaid.decorator.display.SVGUI"],function(d){return d.extend(new function(){this.init=function(d,c){this._learnMoreButtonText=d;this._hasCloseTimeout=c;this._super()};this.getClass=function(){return"freewheel-learnmorebutton"};this.getSVGWidth=function(){return 150};this.getSVGHeight=function(){return 40}; this._setStyle=function(){this._super();this._hasCloseTimeout&&(this._style["margin-top"]="50px")};this.display=function(){var d=this.getHeight()-4;d="<div style='padding:1px;border:1px;border-color:white;border-style:solid;color:white;width:"+this.getSVGWidth()+"px;height:"+d+"px;line-height:"+d+"px;text-align:center;'>"+this._learnMoreButtonText+"</div>";this.show().html(this.getAdditionnalTags()+d).fire("resize")}})});p("mustang/com/stickyadstv/vpaid/decorator/LearnMoreButton",["mod!com.stickyadstv.vpaid.decorator.DisplayWrapper", "mod!com.stickyadstv.vpaid.decorator.display.LearnMoreButtonUI","mod!com.stickyadstv.utils.Browser","mod!com.stickyadstv.event.EventDispatcher"],function(d,e,c){var b=new t("com.stickyadstv.vpaid.decorator.LearnMoreButton");return d.extend(new function(){this.init=function(a,c,d){this._super(c,null,null,d);this._container=a;this._logger=b};this._buildUI=function(){var a=this._data._configuration._data;this._ui=new e(a.learnMoreButtonText,a.hasCloseTimeout)};this._clickThruHandler=function(a){this._dispatchEvent("AdClickThru", {playerHandles:!0,clickX:Math.round(a.pageX),clickY:Math.round(a.pageY),learnMoreButtonHandles:!0});this._dragging=!1};this._getID=function(){return"sticky-learnmorebutton"};this.getLayout=function(){var a=ba(this._super());"undefined"!=typeof a.padding&&null==a.padding&&(a.padding=10/this._zoomLevel);"undefined"!=typeof a.width&&null==a.width&&(a.width=this._ui.getWidth());"undefined"!=typeof a.height&&null==a.height&&(a.height=this._ui.getHeight());return a}})});p("mustang/com/stickyadstv/dom/IFrame", ["mod!com.stickyadstv.dom.Element"],function(d){new t("com.stickyadstv.dom.IFrame");return d.extend(new function(){this.init=function(d,c){if(d)throw Error("Unexpected dom element");this._super("iframe",c)};this.resize=function(d,c){if(!P(d)||!P(c))return this;this.width(d).height(c);return this};this.loadMedia=function(d,c){function b(d){this.off("init",b).off("error",a);c.onSuccess(d)}function a(d){this.off("init",b).off("error",a);c.onError(d)}this._mediaFile=d;D(b,5,this)};this.document=function(){return this._element.contentDocument}; this.body=function(){var d=this.document();return d?d.body:null};this.window=function(){return this._element.contentWindow};this.remove=function(){var d=this.body();d&&(d.innerHTML="");this.attr("src","about:blank");this._super()}})});p("mustang/com/stickyadstv/vpaid/loader/Ad",["mod!com.stickyadstv.vpaid.Base","mod!com.stickyadstv.dom.Element","mod!com.stickyadstv.dom.IFrame"],function(d,e,c){function b(a,c,d){D(function(){var f=a[c];if(f)return d(f);b(a,c,d)},50)}new t("com.stickyadstv.vpaid.loader.Ad"); return d.extend(new function(){this.init=function(a,b,c,d){this._super();if(!a||!b||!d)throw Error("vpaid.Frame : Bad argument.");this._mediaFiles=b;this._container=new e(a);this._config=new Q(d);this._duration=c;this._handlers={}};this.initAd=function(a,f,g,h,k,m){this._width=a;this._height=f;var q=this._mediaFiles[0],v=new e(document.body),F=new c({frameBorder:"0",allowTransparency:"true",style:{display:"none"}});v.append(F);v=F.domElement().contentWindow;v.document.write('<script src="'+q.url()+ '">\x3c/script><body style="border:0;padding:0;margin:0;background-color:transparent"></body>');var z=D(function(){this._dispatchEvent("AdError",Error("'getVPAIDAd' detection timeout."));this.dispose()},5E3,this);b(v,"getVPAIDAd",u(function(b){R(z);try{if(!x(b))throw Error("'getVPAIDAd' missing or corrupted.");var c=b();r(d.events,function(a){var b=u(function(b){"AdStopped"!=a&&"AdError"!=a||this.dispose();this._dispatchEvent(a,b)},this);c.subscribe(b,a);this._handlers[a]=b},this);this._ad=c;var e= this._container.nodeName().toLowerCase()?this._container.domElement():null,q=C(this._config.value("env")||{},ra(m),{slot:this._container.domElement(),videoSlot:e,duration:this._duration});this._ad.initAd(a,f,g,h,k,q)}catch(y){this._dispatchEvent("AdError",Error("Third party ad initialization failed.('"+M(y)+"')")),this.dispose()}},this))};this.resizeAd=function(a,b,c){this._width=a;this._height=b;this._ad&&this._ad.resizeAd(a,b,c)};this.handshakeVersion=function(a){return"1.1"};this.startAd=function(){this._ad.startAd()}; this.pauseAd=function(){this._ad.pauseAd()};this.stopAd=function(){this._ad.stopAd()};this.resumeAd=function(){this._ad.resumeAd()};this.expandAd=function(){this._ad.expandAd()};this.collapseAd=function(){this._ad.collapseAd()};this.adVolume=function(a){if(n(a))return this._ad.getAdVolume();this._ad.setAdVolume(a);return this};this.adExpanded=function(){return this._ad.getAdExpanded()};this.adLinear=function(){return this._ad.getAdLinear()};this.adRemainingTime=function(){return this._ad.getAdRemainingTime()}; this.dispose=function(){this._ad&&r(d.events,function(a){this._ad.unsubscribe(this._handlers[a],a)},this)}})});p("mustang/com/stickyadstv/utils/Global",["mod!com.stickyadstv.utils.Browser"],function(d){new t("com.stickyadstv.utils.Global");var e=N.extend(new function(){this.init=function(b){var a=b.value("com/stickyadstv/global/callbacks");a||(a={},b.value("com/stickyadstv/global/callbacks",a));this._callbacks=a};this.createFunction=function(b,a){var c="bridge"+ma(0,4294967295).toString(16);this._callbacks[c]= u(b,a);return("com/stickyadstv/global/callbacks/"+c).split("/").join(".")}}),c=[];return function(b){var a=new Q(n(b)?window:d.getWindow(b));b=U(c,function(b){return b.win==a});b||(b={win:a,global:new e(a)},c.push(b));return b.global}});p("mustang/com/stickyadstv/dom/Object",["mod!com.stickyadstv.dom.Element","mod!com.stickyadstv.utils.Browser","mod!com.stickyadstv.utils.Global","mod!com.stickyadstv.event.EventDispatcher","mod!com.stickyadstv.vast.VastError"],function(d,e,c,b,a){function f(a,b,c){var d= document.createElement("param");d.setAttribute("name",b);d.setAttribute("value",c);a.appendChild(d)}function g(){return"flash_"+Math.round(4294967295*Math.random()).toString(16)}var h=new t("com.stickyadstv.dom.Object");d=d.extend(new function(){this.init=function(b,c,d){if(b){if("div"!=b.nodeName.toLowerCase()||/[^\s]/.test(b.innerHTML))throw new a("Unexpected dom element.",405);this._container=b;this._super(b,C({id:b.id||g(),name:b.id||g()},c))}else this._super("div",C({id:g(),name:g()},c));if(d&& !e.hasPlayerVersion(d))throw new a("Flash player version unsupported. ("+e.description()+")",405);e.firefoxVersion()||this.width(0).height(0)};this.createSwf=function(a,b,c,d){if(d)var e=d.initTimeout||2E4,m=d.onTimeout;if(a.wk&&312>a.wk)return k;if(this._element){"undefined"==typeof b.id&&(b.id="");if(a.ie&&a.win){a="";for(var g in b)b[g]!=Object.prototype[g]&&("data"==g.toLowerCase()?c.movie=b[g]:"styleclass"==g.toLowerCase()?a+=' class="'+b[g]+'"':"classid"!=g.toLowerCase()?a+=" "+g+'="'+b[g]+ '"':h.info("Unexpected attObj value"));b="";for(var q in c)c[q]!=Object.prototype[q]&&(b+='<param name="'+q+'" value="'+c[q]+'" />');c=document.createElement("div");c.innerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+a+">"+b+"</object>";var k=c.firstChild;this.replace(k)}else{var v=document.createElement("object");v.setAttribute("type",ta);for(var y in b)b[y]!=Object.prototype[y]&&("styleclass"==y.toLowerCase()?v.setAttribute("class",b[y]):"classid"!=y.toLowerCase()?v.setAttribute(y, b[y]):h.info("Unexpected attObj value"));for(var T in c)console.log("parObj.n : "+T),c[T]!=Object.prototype[T]&&"movie"!=T.toLowerCase()&&f(v,T,c[T]);this.replace(v);k=v}if(d){var l=(new Date).getTime();this._embedTimeoutInterval=setInterval(u(function(){"undefined"!==typeof v.PercentLoaded&&0<v.PercentLoaded()?clearInterval(this._embedTimeoutInterval):(new Date).getTime()-l>e?(h.warn("Flash object start loading timeout."),this.dispose(m),v.parentNode&&v.parentNode.removeChild(v)):h.info("Unexpected Time value")}, this),1)}}return k};this._dispatchEvent=function(a,c){this._swfId?b.prototype._dispatchEvent.call(this,a,c):this._super(a,c)};this.resize=function(a,b){if(!P(a)||!P(b))return this;this.width(a).height(b);return this};this.loadMedia=function(a,b){function c(a){this.off("init",c).off("error",d);b.onSuccess(a)}function d(a){this.off("init",c).off("error",d);b.onError(a)}D(c,5,this);this.embed(a.url(),a.width(),a.height(),{})};this.embed=function(a,b,d,f,h,g){var m={};h=h||{};h=ka({allowScriptAccess:"always", allowFullScreen:"true",wmode:"window"},h);for(var q in h)m[q]=h[q];f=f||{};f.jsBridgeObject=c(this._element.ownerDocument).createFunction(this.swfInvoke,this);m.flashvars=Xa(f);this._swfId=this.id();a={id:this.id(),name:this.id(),"class":"freewheel-flash-object",width:b,height:d,data:a,wmode:h.wmode};H(h.style)&&(a.style=h.style,delete h.style);h={ie:e.isIE(),win:e.isWin(),wk:e.isWebkit()};this.createSwf(h,a,m,g);this.width(b).height(d)};this.width=function(a){if(n(a))return this._super();this.attr("width", a);a=this._super(a);a.fire("resize");return a};this.height=function(a){if(n(a))return this._super();this.attr("height",a);a=this._super(a);a.fire("resize");return a};this.canPlayType=function(a){return"maybe"};this.swfInvoke=function(){try{var b=l(arguments),c=b.shift(),d=this[c];if(!d)throw new a("Unable to find the following method : '"+c+"'",901);return d.apply(this,b)}catch(v){h.warn(v)}};this.onInit=function(){this._disposed||(h.debug("swf initialized."),D(function(){this._dispatchEvent("init")}, 0,this))};this.onError=function(b){this._disposed||(h.error("An error occurred while loading swf. ('"+b+"')"),this._dispatchEvent("error",new a(b),405))};this.invoke=function(){var b=l(arguments),c=b.shift(),d=this._swfId;var f=null;var e=(this._element.ownerDocument||this._element.parentNode.ownerDocument).getElementById(d);!e||e.nodeName&&"OBJECT"!==e.nodeName.toUpperCase()||(f="undefined"!==typeof e.SetVariable?e:e.getElementsByTagName("object")[0]||e);if(!f)throw new a("Unable to find the following swf object : "+ d,405);e=f[c];e||"undefined"==typeof window.__flash__addCallback||(window.__flash__addCallback(f,c),e=f[c]);if(!e)throw new a("Unable to find the method '"+c+"' from the swf object '"+d+"'",901);return e.apply(f,b)};this.dispose=function(a){this._disposed=!0;this._embedTimeoutInterval&&clearInterval(this._embedTimeoutInterval);this._element.parentNode&&this._element.parentNode.removeChild(this._element);this._super();a()}});d.prototype.swfInvoke=d.prototype.swfInvoke;d.prototype.onInit=d.prototype.onInit; d.prototype.onError=d.prototype.onError;return d});p("mustang/com/stickyadstv/vpaid/Flash","mod!com.stickyadstv.vpaid.Base mod!com.stickyadstv.dom.Element mod!com.stickyadstv.dom.Object mod!com.stickyadstv.utils.Browser mod!com.stickyadstv.dom.document mod!com.stickyadstv.vast.VastError mod!com.stickyadstv.utils.ZIndexUtils".split(" "),function(d,e,c,b,a,f,g){var h=new t("com.stickyadstv.vpaid.Flash"),k=c.extend(new function(){this.dispatchVPAIDEvent=function(a,b){this._dispatchEvent("vpaid",[a,b])}; this.log=function(a,b){h[a].apply(h,b)}});k.prototype.dispatchVPAIDEvent=k.prototype.dispatchVPAIDEvent;k.prototype.log=k.prototype.log;return d.extend(new function(){this.init=function(a,b,c,d,f){this._super();if(!a||!b||!f)throw Error("vpaid.flash : Bad argument.");if(!f.swf)throw Error("'swf' property missing.");this._mediaFiles=b;this._container=a;this._config=new Q(f);this._linear=d;this._duration=c;this._adStopping=!1;this._logger=h};this._createVPAID=function(a,b){var c=new k(null,{},this._config.string("flashVersion", "9.0.0"));"undefined"!=typeof this._container._iFreewheelPlayer&&(c.domElement().style.position="absolute",c.domElement().style.top=0,c.domElement().style.left=0,c.domElement().style.zIndex=g.getZIndex(g.AD_PLAYER_ELEMENT));var d=a.newSlot(b);this._onDispose=function(f){c.dispose(u(function(){this._adStopping=!0;D(function(){a.restoreSlot(d,b);c.remove();D(function(){f.call(this);this._adStopping=!1},this)},350,this)},this))};this.one("AdLoaded",function(a){a=a.detail;d.setCreativeSize&&a&&d.setCreativeSize(a.width, a.height)});this.one("AdStarted",function(b){d.fire("playing");a.fire("play")});if("undefined"!=typeof this._container._iFreewheelPlayer){var f=this._container._iFreewheelPlayer._layout||{};f.zIndex=g.getZIndex(g.AD_PLAYER_ELEMENT);d.slot(f,"iFreewheelPlayer-flash",c)}else c.domElement().setAttribute("class","freewheel-flash-overlay"),d.append(c);return c};this.create=function(c){try{var d=function(a){this._object.off("init",f).off("error",d);R(e);c.onError(a)},f=function(a){this._object.off("init", f).off("error",d);R(e);c.onSuccess({ad:this})};if(this._object)return c.onSuccess({ad:this});this._object=this._createVPAID(this._container,this._config.data());this._object.on("vpaid",u(function(a,b,c){"AdLoaded"==b?this._loadedHandler({detail:c}):"AdStopped"==b?this._stoppedHandler({detail:c}):"AdError"==b?this._errorHandler({detail:c}):this._dispatchEvent(b,c)},this));var e=D(function(){this.dispose(function(){c.onError(Error("Swf initialization timeout. ("+b.description()+")"))})},I.integer("flash/timeout", 2E4),this);this._object.on("init",f,this).on("error",d,this);a.one("body",u(function(){var a=this._config.value("flashVars")||{};a.linear=this._linear;a.duration=this._duration;var d=0;r(this._mediaFiles,function(b){var c="mediaFile"+d;d++;a[c+".src"]=b.url();a[c+".type"]=b.type();a[c+".bitrate"]=b.bitrate();a[c+".apiFramework"]=b.apiFramework();a[c+".width"]=b.width();a[c+".height"]=b.height()});I.exist("debug")&&(a.debug="true",a.jsLog="log");"undefined"!=typeof a.vastUrlParams&&(a.vastUrlParams= JSON.stringify(a.vastUrlParams));this._object.embed(this._config.string("swf"),this._container.width(),this._container.height(),a,this._config.value("options"),{initTimeout:I.integer("flash/embedTimeout",2E4),onTimeout:u(function(a){R(e);c.onError(Error("Embed object timeout. Is Flash blocked? ("+b.description()+")"))},this)})},this))}catch(z){e&&R(e),c.onError(z)}};this.initAd=function(a,b,c,d,f,e){this._width=a;this._height=b;this._container.show();10>this._container.width()&&this._container.width(a); 10>this._container.height()&&this._container.height(b);this.create(aa(new function(){this.onSuccess=function(h){try{this._object.invoke("initAd",a,b,c,d,f,Qa(e))}catch(K){this._catchError(K)}};this.onError=function(a){this._catchError("AdError",a)}},this))};this._catchError=function(a){this.dispose(function(){this._dispatchEvent("AdError",a)})};this._errorHandler=function(a){this._catchError(new f("Third party swf ad failed.('"+O(a)+"')",901))};this._stoppedHandler=function(a){this.dispose(function(){this._dispatchEvent("AdStopped", a.detail)})};this._loadedHandler=function(a){this._object.resize(this._width,this._height);this._dispatchOnce("AdLoaded",O(a))};this.resizeAd=function(a,b,c){this._width=a;this._height=b;this._object.width(a).height(b);this._object.invoke("resizeAd",a,b,c)};this.handshakeVersion=function(a){try{return this._config.value("version")||this._object.invoke("handshakeVersion",a)}catch(q){return h.error("'handshakeVersion' failed.",q),"0.0"}};this.startAd=function(){try{this._object.width(this._width).height(this._height), this._object.invoke("startAd")}catch(m){this._catchError(m)}};this.pauseAd=function(){if(!this._adStopping)try{this._object.invoke("pauseAd")}catch(m){this._catchError(m)}};this.stopAd=function(){try{this._object&&this._object.invoke("stopAd")}catch(m){this._catchError(m)}};this.resumeAd=function(){this._adStopping||this._object.invoke("resumeAd")};this.expandAd=function(){this._object.invoke("expandAd")};this.collapseAd=function(){this._object.invoke("collapseAd")};this.adVolume=function(a){if(this._adStopping)return this; if(n(a))return this._object.invoke("getAdVolume");this._object.invoke("setAdVolume",a);return this};this.adExpanded=function(){return this._object.invoke("getAdExpanded")};this.adLinear=function(){return this._object.invoke("getAdLinear")};this.adRemainingTime=function(){return this._object.invoke("getAdRemainingTime")};this.adDuration=function(){return this._object.invoke("getAdDuration")};this.dispose=function(a){this._onDispose?(this._onDispose(a),this._onDispose=null):a.call(this)}})});p("mustang/com/stickyadstv/vpaid/BaseMedia", ["mod!com.stickyadstv.vpaid.Base","mod!com.stickyadstv.utils.Timer","mod!com.stickyadstv.utils.Browser"],function(d,e,c){var b=new t("com.stickyadstv.vpaid.BaseMedia");return d.extend({events:d.events},new function(){this.init=function(a,c,d,h,k){this._super();if(!c||!d)throw Error("BaseMedia : Bad argument.");this._config=new Q(k);this._mediaFiles=d;this._duration=h;this._container=c;this._mediaFactory=a;this._timeline=new e;this._timeline.delta=0;this._timeline.on("quartile-1",this._firstQuartileHandler, this).on("quartile-2",this._midPointHandler,this).on("quartile-3",this._thirdQuartileHandler,this);this._handlers={click:this._clickHandler,closed:this._closedHandler,ended:this._endedHandler,pause:this._pauseHandler,error:this._errorHandler,volumechange:this._volumeChangeHandler,playing:this._playingHandler,fullscreen:this._fullscreenHandler,exitFullscreen:this._exitFullscreenHandler};this._handlers["poster-visible"]=this._posterVisible;this._setInitCallback(null);this._setDisposeCallback(null); this._media=this._createMedia(this._container,this._mediaFiles,this._duration,this._config);this._logger=b};this._posterVisible=function(a){this._dispatchOnce("AdImpression")};this.create=function(a){a.onSuccess({ad:this})};this._createMedia=function(a,b,c,d){function f(){this.stopAd()}var e=this._mediaFactory(null,{style:{cursor:"pointer"}},d,c);if(x(e.canPlayType)&&!U(b,function(a){return e.canPlayType(a.type())}))throw Error("Unsupported media files.");e.resize(a.width(),a.height(),"");var h=a.newSlot(d); h.one("removed",f,this);this._setDisposeCallback(function(b){e.dispose(function(){h.off("removed",f);e.remove();a.restoreSlot(h,d);a.fire("pause");b()})});this.one("AdStarted",function(b){h.setCreativeSize(e.creativeWidth(),e.creativeHeight());h.fire("playing");a.fire("playing")});h.append(e);return e};this.initAd=function(a,b,c,d,e,m){try{this._width=G(a),this._height=G(b),this._viewMode=c,this._desiredBitrate=d,r(ra(m),function(a,b){this._config[b]=a},this),this._currentQuartile=0,this._onInit(u(function(a){this._media= a;this._dispatchEvent("AdPreLoaded").isDefaultPrevented()||this.loadAd()},this))}catch(q){this.dispose(function(){this._catchError(q)},this)}};this._setInitCallback=function(a){this._onInit=a||function(a){a.call(this,this._media)}};this._setDisposeCallback=function(a){this._onDispose=a||function(a){a.call(this)}};this.loadAd=function(a){this._config.bool("invisibleinit",!1)&&!a?this._dispatchOnce("AdLoaded"):this._media.loadBestMedia(this._mediaFiles,this._width,this._height,this._viewMode,this._desiredBitrate, this._config,aa(new function(){this.onSuccess=function(b){this._mediaLoaded=!0;this._onLoaded({});a&&"function"==typeof a&&a()};this.onError=function(a){this.dispose(function(){this._catchError(a)},this)}},this))};this._onLoaded=function(a){r(this._handlers,function(a,b){this._media.on(b,a,this,!1)},this);this._dispatchOnce("AdLoaded");this._mediaLoaded&&this._checkVisibility();this._config.bool("autoPauseOnVisibilityChange",!1)&&this._pauseAdOnVisibilitychange()};this._pauseAdOnVisibilitychange= function(){document.addEventListener("visibilitychange",function(){"visible"===document.visibilityState?this._started&&this._media.play():this._media.pause()}.bind(this))};this._checkVisibility=function(){"undefined"!=typeof this._container._iFreewheelPlayer&&(I._data.asseturi=this._container._iFreewheelPlayer.getSrc());this._media.isVisible()&&(!this._config.bool("poster",!1)||this._started)&&this._dispatchOnce("AdImpression")};this.dispose=function(a,c){if("undefined"!=typeof this._container._iFreewheelPlayer)if("function"== typeof this._container._iFreewheelPlayer.getHTML5InitializedAudioTag&&void 0!=this._container._iFreewheelPlayer.getHTML5InitializedAudioTag()){var d=this._container._iFreewheelPlayer.getHTML5InitializedAudioTag();"freewheel-ad-audio-player"==d.id&&(d.style.display="none")}else"function"==typeof this._container._iFreewheelPlayer.getHTML5InitializedVideoTag&&void 0!=this._container._iFreewheelPlayer.getHTML5InitializedVideoTag()?(d=this._container._iFreewheelPlayer.getHTML5InitializedVideoTag(),"freewheel-ad-video-player"== d.id&&(d.style.display="none")):b.debug("getHTML5InitializedAudioTag and getHTML5InitializedVideoTag returned undefined");a=a||E;sa(this.__synchronizationHandler);this._timeline&&this._timeline.dispose();r(this._handlers,function(a,b){this._media.off(b,a,this)},this);document.removeEventListener("visibilitychange",this._pauseAdOnVisibilitychange,!1);this._media.off("durationchange",this._durationChangeHandler,this);"function"==typeof this._container.source&&this._container.source("");d=u(function(){this._onDispose(u(a, c))},this);this._needRestore?this._container.restore(null,d,d):d()};this._durationChangeHandler=function(a){this._synchronizeTimelineHandler()};this._fullscreenHandler=function(a){this._dispatchEvent("fullscreen")};this._exitFullscreenHandler=function(a){this._dispatchEvent("exitFullscreen")};this._playingHandler=function(a){this._started=!0;if("undefined"!=typeof this._container._iFreewheelPlayer)if("function"==typeof this._container._iFreewheelPlayer.getHTML5InitializedVideoTag&&void 0!=this._container._iFreewheelPlayer.getHTML5InitializedVideoTag()){var c= this._container._iFreewheelPlayer.getHTML5InitializedVideoTag();"freewheel-ad-video-player"==c.id&&(a=U(this._mediaFiles,function(a){return a.url()==c.src}),ha(a)||(c.style.display=""))}else if("function"==typeof this._container._iFreewheelPlayer.getHTML5InitializedAudioTag&&void 0!=this._container._iFreewheelPlayer.getHTML5InitializedAudioTag()){var d=this._container._iFreewheelPlayer.getHTML5InitializedAudioTag();"freewheel-ad-audio-player"==d.id&&(a=U(this._mediaFiles,function(a){return a.url()== d.src}),ha(a)||(d.style.display=""))}else b.info("Unexpected getHTML5InitializedAudioTag or getHTML5InitializedAudioTag return value");this._playing||(this._playing=!0,this._dispatchOnce("AdStarted"),this._dispatchOnce("AdImpression"),this._dispatchOnce("AdVideoStart"),this._timeline.duration(1E3*this._media.duration()),this._media.on("durationchange",this._durationChangeHandler,this));this._dispatchEvent("AdPlaying");this._paused=!1;this._media.controls(!1);this._timeline.play();this.__synchronizationHandler|| (this.__synchronizationHandler=Ba(this._synchronizeTimelineHandler,500,this))};this._volumeChangeHandler=function(a){var b={volume:this._media.volume()};(a=O(a))&&(b=C(a,b));this._dispatchEvent("AdVolumeChange",b)};this._errorHandler=function(a){a.stopImmediatePropagation();if((this._started||c.isAppleTVJS())&&!(c.isAndroid()&&a.srcElement&&a.srcElement.id&&-1!=a.srcElement.id.indexOf("stickyTrackImg"))){var d=this._media.error(a)||O(a);d&&b.error(M(d));this.dispose(function(){this._catchError(d)}, this)}};this._pauseHandler=function(a){var c=this._timeline.duration()-this._timeline.time();this._playing||this._started?this._media.ended()?b.debug("Ad media source ended. Skip Pause."):500>=c?b.debug("Ad remaining time: ",c," less than 0.5 second. Skip Pause."):(this._paused=!0,this._timeline.pause(),a=C({controls:!0},O(a)),this._dispatchEvent("AdPaused",a)):b.debug("Ad not started. Skip Pause.")};this._closedHandler=function(a){this.dispose(function(){this._dispatchEvent("AdStopped",O(a))},this)}; this._endedHandler=function(a){b.debug("ended",this._media.ended());a.stopImmediatePropagation();this._dispatchEvent("AdVideoComplete",O(a));this._closedHandler(a)};this._clickHandler=function(a){var d=this._media.paused(),e=this._started;!e||d?b.debug("click cancelled.(started:"+e+",paused:"+d+")"):(a=c.isMobile()?{playerHandles:!0,clickX:Math.round(a.changedTouches[0].pageX),clickY:Math.round(a.changedTouches[0].pageY)}:{playerHandles:!0,clickX:a.offsetX,clickY:a.offsetY},"true"!==this._config.learnMoreButton&& !0!==this._config.learnMoreButton&&this._dispatchEvent("AdClickThru",a))};this._firstQuartileHandler=function(a){this._dispatchOnce("AdVideoFirstQuartile")};this._midPointHandler=function(a){this._dispatchOnce("AdVideoMidpoint")};this._thirdQuartileHandler=function(a){this._dispatchOnce("AdVideoThirdQuartile")};this._synchronizeTimelineHandler=function(){this._media.controls(!1);var a=1E3*this._media.duration(),c=1E3*this._media.currentTime(),d=this._timeline.duration(),e=this._timeline.time();if(Math.round((a- c)/500)!=Math.round((d-e)/500)||Math.round(a/500)!=Math.round(d/500))this._timeline.delta+=c-e,b.debug("synchronizing",this._timeline.delta,"media("+a+","+c+")","timeline("+d+","+e+")"),Math.abs(this._timeline.delta)>=this._config.number("maxDelta",1E4)?this.dispose(function(){this._catchError(Error("Media too much desynchronized."))},this):(this._timeline.duration(a).time(c),this._dispatchEvent(this._vpaid2?"AdDurationChange":"AdRemainingTimeChange"))};this.resizeAd=function(a,b,c){a=G(a);b=G(b); if(this._width!=a||this._height!=b||this._viewMode!=c)this._width=a,this._height=b,this._viewMode=c,this._media.resize(a,b,c)};this.startAd=function(){this._mediaLoaded?(this._started=!0,b.debug("media size",this._width+"x"+this._height),this._media.resize(this._width,this._height,this._viewMode).show(),"function"==typeof this._media.controls&&this._media.controls(!1),this._media.play()):(this._needRestore=!0,this._container.backup(u(function(a){this.loadAd(u(this.startAd,this))},this)))};this.pauseAd= function(){this._media.pause()};this.stopAd=function(){this.dispose(function(){this._dispatchEvent("AdStopped")},this)};this.resumeAd=function(){this._started&&this._media.play()};this.expandAd=function(){};this.collapseAd=function(){};this.adVolume=function(a){if(n(a))return this._media.volume();this._media.volume(a)};this.adExpanded=function(){return!0};this.adLinear=function(){return!0};this.adRemainingTime=function(){return Math.round(this._media.duration()-this._media.currentTime())};this._mediaDuration= function(){return Math.ceil(this._media.duration())};this.adDuration=function(){var a=this._mediaDuration();return 0<a?a:this._duration}})});p("mustang/com/stickyadstv/vpaid/Media",["mod!com.stickyadstv.vpaid.BaseMedia"],function(d){var e=new t("com.stickyadstv.vpaid.Media"),c=d.extend({});c.extend=function(b){var a=this,e=d.extend.call(a,b);e.extend=function(a){return c.extend.call(this,a)};e.extend.fromMedia=function(c){return a.extend.fromMedia(c).extend(b)};return e};c.extend.fromMedia=function(b){return d.extend(new function(){this.init= function(a,b,c,d){this._super(u(this._createMedia,this),a,b,c,d);this._logger=e};this._createMediaWithoutContainer=function(a,c,d,e,k){function f(){this.stopAd()}var h=new b(null,d,e,k);if(h.canPlayType&&!U(c,function(a){return h.canPlayType(a.type())}))throw Error("Unsupported media files.");h.resize(a.width(),a.height());var g=a.newSlot(e);g.one("removed",f,this);this._setDisposeCallback(function(b){h.dispose(function(){h.remove();g.off("removed",f,this);a.restoreSlot(g,e);b()})});this.one("AdImpression", function(a){g.setCreativeSize(h.creativeWidth(),h.creativeHeight())});this.one("AdStarted",function(b){g.setCreativeSize(h.creativeWidth(),h.creativeHeight());g.fire("playing");a.fire("playing")});g.append(h);return h};this._createMediaWithContainer=function(a,c,d,e,k){if(a instanceof b){var f=a;if(f.canPlayType&&(c=U(c,function(a){return f.canPlayType(a.type())}),!c))throw Error("Unsupported media files.");this._setInitCallback(function(b){a.backup(u(function(c){this._onDispose=function(b){a.restore(c, b,b)};b(c)},this))});this.one(["AdImpression","AdStarted"],function(b){a.setCreativeSize(f.creativeWidth(),f.creativeHeight())})}else if("undefined"!=typeof a._iFreewheelPlayer){f=new b(a.domElement(),a._iFreewheelPlayer);if(f.canPlayType&&(c=U(c,function(a){return f.canPlayType(a.type())}),!c))throw Error("Unsupported media files.");this._setInitCallback(function(b){a.backup(function(c){this._onDispose=function(b){f.dispose(function(){a.restore(c,b)})};b(f)})});this.one(["AdImpression","AdStarted"], function(b){a.setCreativeSize(f.creativeWidth(),f.creativeHeight())})}else{f=new b(a.domElement(),d,e,k);if(f.canPlayType&&(c=U(c,function(a){return f.canPlayType(a.type())}),!c))throw Error("Unsupported media files.");this._setInitCallback(function(b){a.backup(function(c){this._onDispose=function(b){f.dispose(function(){a.restore(c,b)})};b(f)})});this.one(["AdImpression","AdStarted"],function(b){a.setCreativeSize(f.creativeWidth(),f.creativeHeight())})}return f};this._createMedia=function(a,b,c, d,e){e={style:{cursor:"pointer"}};try{return this._createMediaWithContainer(a,b,e,d,c)}catch(m){return this._createMediaWithoutContainer(a,b,e,d,c)}}})};return c.extend({})});p("mustang/com/stickyadstv/dom/overlay/Base",["mod!com.stickyadstv.dom.Element","mod!com.stickyadstv.utils.ZIndexUtils"],function(d,e){new t("com.stickyadstv.dom.overlay.Base");return d.extend(new function(){this.init=function(c,b){this._attributes=b||{};b=["stickyads-overlay"];this._attributes.classes&&(b=b.concat(this._attributes.classes)); c?b.unshift(c.attr("class")):c="div";this._super(c,{"class":b.join(" ")})};this.attach=function(){var c={position:"absolute",overflow:"hidden","z-index":e.getZIndex(e.SLOT_ELEMENT)};c=C(c,this._attributes.style);var b=this._followed?this._followed.ownerDocument():this.ownerDocument(),a=new d(b.body);this._element.parentElement!=b.body&&a.prepend(this);this.style(c);c.position&&this.css("position",c.position)}})});p("mustang/com/stickyadstv/dom/overlay/OverlayElement",["mod!com.stickyadstv.dom.overlay.Base", "mod!com.stickyadstv.dom.Element"],function(d,e){var c=new t("com.stickyadstv.dom.overlay.OverlayElement");d=d.extend(new function(){this.init=function(){this._left=this._top=this._offsetLeft=this._offsetTop=0;this._super.apply(this,arguments)};this.follow=function(b,a){if(this._followed==b)this._resizeHandler(),this._moveHandler();else{this._followed&&this.unfollow();this._options=C({size:!0,move:!0},a);this._followed=b;var c={};r(["Left","Right","Top","Bottom"],function(a){var d=b.cssFloat("padding"+ a)+b.cssFloat("border"+a+"Width");c["padding-"+a.toLowerCase()]=d+"px"},this);this.style(c);b.on("removed",this._removeHandler,this);this._options.size&&(b.on("resize",this._resizeHandler,this),this._resizeHandler());this._options.move&&(b.on("move",this._moveHandler,this),this._moveHandler());this.on("mouseover",this._onOverHandler,this,!0);this.on("mouseout",this._onOverHandler,this,!0)}};this.unfollow=function(){this._followed&&(this.off("mouseover",this._onOverHandler,this),this.off("mouseout", this._onOverHandler,this),this._options.move&&this.css("left","").css("top",""),this._options.size&&this.css("width","").css("height",""),this.offsetLeft(0).offsetTop(0),this._followed.off("removed",this._removeHandler,this),this._followed.off("move",this._moveHandler,this),this._followed.off("resize",this._resizeHandler,this),this._followed=null)};this._removeHandler=function(){this.remove()};this._resizeHandler=function(b){if(x(this._options.size))this._options.size(b);else if(null!=this._followed){if(null== this._followed.parent())return this.remove();b=this._followed.clientRect();this.width(b.right-b.left).height(b.bottom-b.top)}else c.info("Unexpected _followed value")};this._moveHandler=function(b){if(this._options&&x(this._options.move))this._options.move(b);else if(null!=this._followed){if(null==this._followed.parent())return this.remove();null!=this._followed?(b=this._followed.bodyRect(!0),this.offsetLeft(b.left).offsetTop(b.top)):c.info("Unexpected _followed value")}else c.info("Unexpected _options or _options.move or _followed value")}; this._onOverHandler=function(b){this._followed&&this._followed.fire(b.type)};this.left=function(b){if(n(b))return this._left;this._left=b;return this._super(this._offsetLeft+this._left)};this.top=function(b){if(n(b))return this._top;this._top=b;return this._super(this._offsetTop+this._top)};this.offsetLeft=function(b){if(n(b))return this._offsetLeft;var a=this.left();this._offsetLeft=b;return this.left(a)};this.offsetTop=function(b){if(n(b))return this._offsetTop;var a=this.top();this._offsetTop= b;return this.top(a)};this.remove=function(){this._super();this.unfollow()}});d.prototype.attach=d.prototype.attach;d.prototype.follow=d.prototype.follow;d.prototype.unfollow=d.prototype.unfollow;d.prototype.one=d.prototype.one;d.prototype.on=d.prototype.on;d.prototype.off=d.prototype.off;return d});p("mustang/com/stickyadstv/display/Image",["mod!com.stickyadstv.dom.Element"],function(d){var e=new t("com.stickyadstv.display.Image");return d.extend(new function(){this.init=function(c,b){if(c)if("img"== c.nodeName.toLowerCase())this._super(c,b);else throw Error("Unexpected dom element");else this._super("img",b)};this.width=function(c){return n(c)?this._element.width:this._super(c)};this.height=function(c){return n(c)?this._element.height:this._super(c)};this.resize=function(c,b){if(!c||!b)return this;var a=this._element,d=a.width||this.width();a=a.height||this.height();var e=Math.min(c/d,b/a);d*=e;a*=e;b=Math.floor((b-a)/2);this.css("padding-left",Math.floor((c-d)/2)+"px").css("padding-top",b+"px").width(Math.floor(d)).height(Math.floor(a)); return this};this.loadMedia=function(c,b){function a(){this._mediaFile=c;this._creativeWidth=this._element.width;this._creativeHeight=this._element.height;this._scalable="false"!=c.scalable();e.info("loading ok",g);this._loadingListener.onSuccess({})}function d(a){e.info("loading ko",g);this._loadingListener.onError(Error("Unable to load the following resource : '"+g+"'"))}var g=c.url();this._loadingListener=new (Na.extend(new function(){this.onTimeout=function(){this.onError(Error("Loading timeout on the following resource : '"+ g+"'"))};this._onDispose=function(){delete this._loadingListener;this.off("load",a).off("error",d)};this._onSuccess=function(a){b.onSuccess(a)};this._onError=function(a){b.onError(a)}}))(this._config.number("loading/timeout",1E4),this);e.info("loading image",g);this.on("load",a,this).on("error",d,this).hide().attr("src",g)};this.dispose=function(c){this._super();this._loadingListener&&this._loadingListener.abort();c()}})});p("mustang/com/stickyadstv/dom/extension/Slot",["mod!com.stickyadstv.dom.Element", "mod!com.stickyadstv.dom.overlay.OverlayElement","mod!com.stickyadstv.display.Image","mod!com.stickyadstv.utils.Browser","mod!com.stickyadstv.utils.ZIndexUtils"],function(d,e,c,b,a){function f(c){return lb(c.prototype,new function(){this.init=function(){if(!(this instanceof c))throw Error("Slot extension only applied on Element");"undefined"!=typeof this.attr&&this.attr("data-ad-processed","");this._overlaySlots={};this.slot=this.slot};this.newSlot=function(a){var c=this.nodeName().toLowerCase(); if("video"==c){var f=new d(this);this._width=G(this._width,this.width());this._height=G(this._height,this.height());var m=C({width:this._width,height:this._height,"background-color":"#DDDDDD",overflow:"visible"},a.style),k=new (g(d))(this.ownerDocument().createElement("div"),{style:{"line-height":0,width:1,height:1,overflow:"hidden"}});k.one("playing",function(){D(function(){S(a.videoSlotCanAutoPlay,!b.isIOS())?f.hide():(f.width(1).height(1),m=C(m,{position:"relative",top:"-10px"}))},1);k.style(m); this._adSlot=k},this);f.after(k);return k}if("body"==c)return this;"div"!=c&&h.warn("Incorrect ad container element. ('"+c+"')");if(!/[^\s]/.test(this.html())&&!this.firstChild("*"))return this;c=this.css("position")||this.style().position;if("relative"==c||"absolute"==c||"undefined"!=typeof this._iFreewheelPlayer)return this;c=new (g(e));c.follow(this);c.attach();return c};this.restoreSlot=function(a,c){this._adSlot=null;a!=this&&("body"!=a.nodeName().toLowerCase()&&a.remove(),a.html(""));"video"== this.nodeName().toLowerCase()&&(a=new d(this),S(c.videoSupportHidden,!b.isIOS())?a.show():(a.width(this._width),a.height(this._height)))};this.resize=function(a,b){if(this._adSlot)return this._adSlot.resize(a,b);a=G(a,0);b=G(b,0);this._width=a;this._height=b;this._super(a,b).fire("resize");return this};this.containerWidth=function(){return this._element.width};this.containerHeight=function(){return this._element.height};this.width=function(a){if(this._adSlot)return this._adSlot.width(a);if(n(a))return a= this._super(),Math.round(a?a:G(this._width,0));a=Math.round(G(a,0));if(this.domElement().style.width==a+"px")return this;this._width=a;this._super(a).fire("resize");return this};this.height=function(a){if(this._adSlot)return this._adSlot.height(a);if(n(a))return a=this._super(),Math.round(a?a:G(this._height,0));a=Math.round(G(a,0));if(this.domElement().style.height==a+"px")return this;this._height=a;this._super(a).fire("resize");return this};this.setCreativeSize=function(a,b){this._adSlot&&this._adSlot.setCreativeSize(a, b);this._contentWidth=G(a,0);this._contentHeight=G(b,0);this._updateSlots();return this};this.contentRect=function(){var a=this.clientRect(),b=a.right-a.left;a=a.bottom-a.top;var c=this._contentWidth||b,d=this._contentHeight||a,e=Math.min(b/c,a/d);c=Math.floor(c*e);d=Math.floor(d*e);return{left:Math.round((b-c)/2),top:Math.round((a-d)/2),width:c-this.cssFloat("borderLeftWidth")-this.cssFloat("borderRightWidth"),height:d-this.cssFloat("borderTopWidth")-this.cssFloat("borderBottomWidth")}};this.tagRect= function(){var a=this.clientRect(),b=a.bottom-a.top;return{left:0,top:0,width:Math.round(a.right-a.left-this.cssFloat("borderLeftWidth")-this.cssFloat("borderRightWidth")),height:Math.round(b-this.cssFloat("borderTopWidth")-this.cssFloat("borderBottomWidth"))}};this._slotResizeHandler=function(a,b){var c=a.layout,d=this.contentRect(),e=G(c.width,0);c=G(c.height,0);e&&a.width()!=e&&a.width(Math.min(e,d.width));c&&a.height()!=c&&a.height(Math.min(c,d.height));this._slotMoveHandler(a,b)};this._slotMoveHandler= function(a,b){function c(a){d.padding=d.padding||d.padding;return G(d["padding-"+a],G(d.padding,0))}if(a.isVisible()){var d=a.layout;if("undefined"!=typeof this._iFreewheelPlayer){b=this.clientRectFromFirstPositionedParent();d=a.layout;d.halign=d.halign||d.halign;d.valign=d.valign||d.valign;var e=a.width()-a.cssFloat("borderLeftWidth")-a.cssFloat("borderRightWidth");var f=a.height()-a.cssFloat("borderTopWidth")-a.cssFloat("borderBottomWidth")}else d=a.layout,d.position=d.position||d.position,d.halign= d.halign||d.halign,d.valign=d.valign||d.valign,b=d.position,e=this.tagRect(),b="relative"!=b&&b?{left:0,right:0,width:e.width,height:e.height}:e,f=a.clientRect(),e=f.right-f.left-a.cssFloat("borderLeftWidth")-a.cssFloat("borderRightWidth"),f=f.bottom-f.top-a.cssFloat("borderTopWidth")-a.cssFloat("borderBottomWidth");switch(d.halign){default:case "left":e=b.left+c("left");break;case "center":e=b.left+(b.width-e)/2;break;case "right":e=b.left+(b.width-e)-c("right")}switch(d.valign){default:case "top":b= b.top+c("top");break;case "center":b=b.top+(b.height-f)/2;break;case "bottom":b=b.top+(b.height-f)-c("bottom")}a.left(Math.round(e)).top(Math.round(b)).fire("move")}};this._moveHandler=function(a){if(!this._inMoveHandler){this._inMoveHandler=!0;try{r(this._overlaySlots,function(a){this._slotMoveHandler(a)},this)}catch(q){h.error(q)}this._inMoveHandler=!1}};this._updateSlots=function(){r(this._overlaySlots,function(a){this._slotResizeHandler(a)},this)};this._resizeHandler=function(a){this._updateSlots()}; this.getAdSlot=function(){return this._adSlot};this.slot=function(b,c,f){b||(b={});b.zIndex=b.zIndex||b.zIndex;if(this._adSlot)return this._adSlot.slot(b,c,f);c&&this._overlaySlots[c]&&(this._overlaySlots[c].dispose(),this._overlaySlots[c].off("removed",this._onSlotRemovedFromDom,this),this.removeSlot(c));var h=G(b.zIndex,a.getZIndex(a.INFO_ELEMENT));if("undefined"!=typeof this._iFreewheelPlayer){var k=new (g(d))(f,{classes:["iFreewheelPlayer-overlay"],style:{"z-index":h,position:"absolute"}});k.setLayout(b); this.append(k)}else k=new (g(e))(f,{classes:["sticky-nonlinear"],style:{"z-index":h}}),k.setLayout(b),k.follow(this,{size:!1}),k.attach();this._slotMoveHandler(k);this._resizeAfterImgLoad(k,f);k.on("resize",this._slotResizeHandler,[this,k]);k.on("move",k._moveHandler,k);k.name=c;this._overlaySlots[c]=k;this.on("resize",this._resizeHandler,this).on("move",this._moveHandler,this);k.on("removed",this._onSlotRemovedFromDom,this);D(function(){this._slotResizeHandler(k)},1,this);return k};this._resizeAfterImgLoad= function(a,b){if(b&&b.find&&(b=b.find("img"),!b.isEmpty())){var c=0;b.each(function(b){if(!b._element.complete){c++;var d=this;a._element.style.visibility="hidden";b._element.onload=function(){c--;0==c&&(a._element.style.visibility="",d._slotResizeHandler(a))}}},this)}};this.findBestSlot=function(a,b){var c=[{name:"bottom",layout:{halign:"center",valign:"bottom"}},{name:"top",layout:{halign:"center",valign:"top"}}],e=[{name:"left",layout:{halign:"left",valign:"center"}},{name:"right",layout:{halign:"right", valign:"center"}}];c=a>b?c.concat(e):e.concat(c);for(e=0;e<c.length;++e){var f;"undefined"!=typeof this._iFreewheelPlayer&&(f=new d("div",{"class":"iFreewheelPlayer-nonLinear"}));var h=this.slot(C({width:a,height:b},c[e].layout),c[e].name,f);if(h)return h.width(a).height(b),h}return null};this._onSlotRemovedFromDom=function(a){this.removeSlot(a.target.name);ha(this._overlaySlots)&&this.off("resize",this._resizeHandler,this).off("move",this._moveHandler,this)};this.removeSlot=function(a){this._overlaySlots[a]&& delete this._overlaySlots[a]};this.dispose=function(){r(this._overlaySlots,function(a){a.remove()});this._element.remove()}})}function g(a){a=a||d;return a.extend(f(a))}var h=new t("com.stickyadstv.dom.extension.Slot");return g});p("mustang/com/stickyadstv/dom/proxy/VideoProxy",["mod!com.stickyadstv.utils.Browser"],function(d){new t("com.stickyadstv.dom.proxy.VideoProxy");return N.extend(new function(){this.init=function(e){this._videoTag=this._videoTag=e;this.style={setProperty:function(a,b){}}; var c="src currentTime duration playbackRate ended paused type muted".split(" "),b;for(b in c)this[c[b]]=e[b],function(a,b){Object.defineProperty(a,b,{get:function(){return a._videoTag[b]},set:function(c){a._videoTag[b]=c}})}(this,c[b]);this._videoTag.videoSlotCanAutoPlay=!0;d.isMobile()&&(I._data.muteAd=!0);this.originalVolume=this._videoTag.volume;I._data.muteAd?(this.volume=0,this.muted=!0):(this.volume=0<this.originalVolume?.5:0,this.muted=!1);setInterval(this._attributeChangeCheck.bind(this), 300)};this._attributeChangeCheck=function(){I._data.muteAd?(this.volume=0,this.muted=!0):(this.volume=0<this.originalVolume?.5:0,this.muted=0<this.originalVolume?!1:!0);this._videoTag.muted=this.muted;this._videoTag.volume=this.volume};this.dispatchEvent=function(d,c,b){return this._videoTag.dispatchEvent(d,c,b)};this.addEventListener=function(d,c,b){return this._videoTag.addEventListener(d,c,b)};this.removeEventListener=function(d,c,b){return this._videoTag.removeEventListener(d,c,b)};this.canPlayType= function(d){return this._videoTag.canPlayType(d)};this.load=function(){return this._videoTag.load()};this.play=function(){return this._videoTag.play()};this.pause=function(){return this._videoTag.pause()};this.getAttribute=function(d,c){return this._videoTag.getAttribute(d,c)};this.setAttribute=function(d,c){this[d]=c;return this._videoTag.setAttribute(d,c)};this.removeAttribute=function(d){return this._videoTag.removeAttribute(d)};this.appendChild=function(d){return this._videoTag.appendChild(d)}})}); p("mustang/com/stickyadstv/vpaid/decorator/display/CloseTimeOutUI",["mod!com.stickyadstv.dom.Element","mod!com.stickyadstv.utils.Browser","mod!com.stickyadstv.vpaid.decorator.display.SVGUI"],function(d,e,c){new t("com.stickyadstv.vpaid.decorator.display.CloseTimeOutUI");return c.extend(new function(){this.init=function(b){this._label=b;this._margin=10;this._super()};this._setStyle=function(){this._super();this._style.display="flex";this._style["align-items"]="center";this._label&&(this._setLabelStyle(), delete this._style.width)};this.getHeight=function(){return this._super()};this._setLabelStyle=function(){this._style["border-radius"]=this.getHeight()+"px";this._style.font="bold 1em Arial";this._style["font-size"]=.4*this.getHeight()+"px";this._style["letter-spacing"]="2%";this._style.color="white";this._style["background-color"]="rgba(255, 255, 255, 0.5)"};this.getInnerSVG=function(){return'<circle fill="#FFF" cx="15" cy="15" r="15"/><path fill="#52565F" d="M20.895 18.824L17.07 15l3.824-3.824a1.42 1.42 0 0 0 0-2.01l-.062-.061a1.42 1.42 0 0 0-2.011 0L15 12.932l-3.823-3.824a1.42 1.42 0 0 0-2.012 0l-.06.06a1.421 1.421 0 0 0 0 2.01L12.932 15l-3.826 3.824a1.424 1.424 0 0 0 0 2.011l.061.06a1.42 1.42 0 0 0 2.012 0L15 17.07l3.824 3.824a1.423 1.423 0 0 0 2.011 0l.06-.062a1.419 1.419 0 0 0 0-2.008z"/>'}; this.applyZoom=function(b){this._margin/=b;this._super(b)};this.getAdditionnalTags=function(){return this._label?'<p style="float:left;text-transform: uppercase;margin-right:'+this._margin+"px;margin-left:"+this._margin+'px;">'+this._label+"</p>":""};this.getClass=function(){return"freewheel-closetimeout"}})});p("mustang/com/stickyadstv/vpaid/decorator/display/SkipButtonUI",["mod!com.stickyadstv.vpaid.decorator.display.CloseTimeOutUI","mod!com.stickyadstv.utils.Browser"],function(d,e){new t("com.stickyadstv.vpaid.decorator.display.SkipButtonUI"); return d.extend(new function(){this.init=function(c){this._super(c)};this.displayRemaining=function(c){this._remaining=c;this.display()};this._setStyle=function(){this._super();this._style["justify-content"]="center";this._setLabelStyle()};this.display=function(){if(this._remaining){var c=this.height()/2;this.show().html("<p style='margin:"+c+"px;'>"+this._remaining+"</p>").fire("resize")}else this._super()};this.getClass=function(){return"freewheel-skipbutton"}})});p("mustang/com/stickyadstv/vpaid/loader/VpaidFrame", "mod!com.stickyadstv.vpaid.Base mod!com.stickyadstv.dom.Element mod!com.stickyadstv.dom.IFrame mod!com.stickyadstv.utils.Browser mod!com.stickyadstv.utils.Timer mod!com.stickyadstv.dom.extension.Slot mod!com.stickyadstv.dom.proxy.VideoProxy mod!com.stickyadstv.dom.overlay.OverlayElement mod!com.stickyadstv.vast.VastError mod!com.stickyadstv.vpaid.decorator.display.SkipButtonUI mod!com.stickyadstv.event.StickyEvent mod!com.stickyadstv.utils.ZIndexUtils".split(" "),function(d,e,c,b,a,f,g,h,k,m,q,v){function F(a, b,c){D(function(){var d=a[b];if(d)return c(d);F(a,b,c)},0)}var z=new t("com.stickyadstv.vpaid.loader.VpaidFrame");return d.extend({events:d.events},new function(){this.init=function(b,c,d,e){this._super();if(!b||!c)throw new k("Bad argument.",901);this._loaded=!1;this._mediaFiles=c;this._container=b;this._videoSlot;this._config=new Q(e);this._vastDuration=d;this._durationTimeout=new a({duration:1E3*(d+3)});this._durationTimeout.one("complete",function(a){z.warn("Third party ad should be over now."); e.hasCloseTimeout||this.showSkipButton()},this);this._handlers={};this._logger=z};this._createIFrame=function(a,b,d){a.backup(u(function(h){var g=new c(null,{frameBorder:"0",allowTransparency:"true","class":"freewheel-ad-frame",style:{"background-color":"transparent"},allow:"autoplay"}),k=new (f(e))("div",{id:"slot","class":"freewheel-ad-slot",style:"width:100%; height:100%;"}),m=a.newSlot(b);this._onDispose=function(c){D(u(function(){g.remove();if("undefined"!=typeof this._videoSlot&&this._videoSlot&& "undefined"!=typeof this._videoSlot._videoTag&&this._videoSlot._videoTag){var d=this._videoSlot._videoTag;if("sticky-video"==d.id&&d.parentNode)d.parentNode.removeChild(d);else{if("freewheel-ad-video-player"==d.id){document.location.href==d.src&&d.removeAttribute("src");d.style.display="none";a.restoreSlot(m,b);a.restore(h,c);return}z.info("Unexpected videoTag.id value")}}a.restoreSlot(m,b);a.fire("pause");a.restore(h,c)},this),0)};this.one("AdStarted",u(function(b){this._slot.resize(this._width, this._height);this._slot.show();b=O(b)||{};S(b.useIframe,!1)&&m.fire("playing");a.fire("playing")},this));"undefined"!=typeof this._container._iFreewheelPlayer&&m.slot(null,"iframe-vpaidjs",g);m.append(g);d.onSuccess(k,g)},this))};this._createAd=function(a){var b=a();if(!b)return z.warn("Third party ad is not defined."),null;var c={};c.AdPaused=this._pausedHandler;c.AdPlaying=this._playingHandler;c.AdStarted=this._startedHandler;c.AdDurationChange=this._durationChangeHandler;c.AdRemainingTimeChange= this._remainingTimeHandler;c.AdStopped=this._stoppedHandler;c.AdError=this._errorHandler;c.AdLoaded=this._loadedHandler;c.AdClickThru=this._clickThruHandler;r(d.events,function(a){var e=c[a]||function(b){d.isVPAIDEvent(a)?(this._dispatchEvent(a,b),z.debug("Received a VPAID event type: "+a)):z.debug("Received a non VPAID event type: "+a)},f=u(function(a){if(a&&W(a)){var b=G(a.creativeWidth,0),c=G(a.creativeHeight,0);b&&c&&this._container.setCreativeSize(b,c);return e.call(this,a)}return e.call(this, Array.prototype.slice.call(arguments))},this);b.subscribe(f,a);this._handlers[a]=f},this);return b};this._loadedHandler=function(a){this._loaded=!0;var b=1E3*(this.adDuration()+3);this._durationTimeout.duration(b);this._dispatchEvent("AdLoaded",a);this._ad.getAdLinear&&!this._ad.getAdLinear()&&"undefined"!=typeof this._videoSlot._videoTag&&(this._videoSlot._videoTag.style.display="none")};this._pausedHandler=function(a){this._dispatchEvent("AdPaused")};this._startedHandler=function(a){this._durationTimeout.play(); this._dispatchEvent("AdStarted")};this._playingHandler=function(a){this._durationTimeout.play();this._dispatchEvent("AdPlaying")};this._durationChangeHandler=function(a){a=this._ad.getAdDuration();var b=this.adRemainingTime();isNaN(a)||0>=a||600<a?z.warn("getAdDuration() on external vpaid returned "+a+" and has been ignored (cf. VPAID standard)"):(this._durationTimeout.duration(1E3*(a+3)),-2==Math.round(b)?this._durationTimeout.time(0):this._durationTimeout.time(1E3*(a-b)),z.debug("duration",a,"remaining", b));this._dispatchEvent(this._vpaid2?"AdDurationChange":"AdRemainingTimeChange")};this._remainingTimeHandler=function(a){a=this.adRemainingTime();var b=this.adDuration();0==a||isNaN(a)||(b<a&&(z.debug("vpaid remaining time is greater than vast duration. (duration:",b,",remaining time:",a,")"),this._durationTimeout.duration(1E3*(a+3))),-2==Math.round(a)?this._durationTimeout.time(0):this._durationTimeout.time(1E3*(b-a)),z.debug("duration",b,"remaining",a),this._dispatchEvent(this._vpaid2?"AdDurationChange": "AdRemainingTimeChange"))};this._clickThruHandler=function(a){if(Array.isArray(a)&&0<a.length){var b={url:a[0]};3<=a.length&&(b.playerHandles=a[2])}this._forwardEvent(new q("AdClickThru",this,b))};this._stoppedHandler=function(a){this.dispose(function(){this._dispatchEvent("AdStopped",a)},this);"video"==this._container.nodeName().toLowerCase()&&this._container.domElement().play()};this._errorHandler=function(a){Array.isArray(a)&&0<a.length&&(a={message:"string"==typeof a[0]?"Error from VPAID Ad: "+ a[0]:"Unknown error from VPAID ad.",errorcode:901});"object"==typeof a?a.errorcode=a.errorcode?a.errorcode:901:"string"==typeof a?a={message:a,errorcode:901}:z.info("Unexpected data type");this.dispose(function(){this._dispatchEvent("AdError",a)},this)};this.create=function(a){if(this._frame)return a.onSuccess({ad:this});this._createIFrame(this._container,this._config.data(),aa(new function(){this.onSuccess=function(b,c){this._frame=c;this._slot=b;a.onSuccess({ad:this})};this.onError=function(b){a.onError(b)}}, this))};this.initAd=function(a,c,d,h,m,q){this._width=a;this._height=c;this._creativeData=m;this.create(aa(new function(){this.onSuccess=function(a){var c=this._mediaFiles[0],m=this._frame;m.hide();if(a=m.document()){if(b.isChrome()){var B=a.createElement("script");B.async=!0;B.src=c.url();c=a.getElementsByTagName("head")[0];c.appendChild(B);B=a.createElement("script");B.innerHTML="window.open = window.parent.open;";B.type="text/javascript";c.appendChild(B)}else{B="";var w=this._config.string("componentId"); if("arnage"==w||"nova"==w)B='<script type="text/javascript"> window.open = window.parent.open; \x3c/script>';a.write("<html><head>"+B+'<script type="text/javascript" src="'+c.url()+'">\x3c/script></head></html>')}a.body||(c=(new e("body")).domElement(),m.document().body=c);c=a.body;c.style.overflow="hidden";c.style.margin="0px";c.appendChild(this._slot.domElement());this._videoSlot=q&&q.videoSlot?q.videoSlot:"video"==this._container.nodeName().toLowerCase()?this._container.domElement():null;"undefined"!= typeof this._container._iFreewheelPlayer?("function"==typeof this._container._iFreewheelPlayer.isInstreamPlayer&&this._container._iFreewheelPlayer.isInstreamPlayer()?this._videoSlot=new g(this._container._iFreewheelPlayer._originalPlayer):"function"==typeof this._container._iFreewheelPlayer.getHTML5InitializedVideoTag?(a=this._container._iFreewheelPlayer.getHTML5InitializedVideoTag(),a.style.display="",this._videoSlot=new g(a)):(a=f(e),a=new a("video",{id:"sticky-video"}),c=a.domElement(),c.style.position= "absolute",c.style.zIndex=v.getZIndex(v.AD_PLAYER_ELEMENT),c.style.width=this._container._iFreewheelPlayer.getWidth()+"px",c.style.height=this._container._iFreewheelPlayer.getHeight()+"px",c.style.backgroundColor="black",this._container.prepend(c),this._videoSlot=new g(a.domElement())),m.domElement().style.zIndex=v.getZIndex(v.SLOT_ELEMENT),m.domElement().style.position="absolute",m.domElement().style.top="0",m.domElement().style.left="0"):this._videoSlot?(m.parent().css("top",this._videoSlot.offsetTop+ "px"),m.parent().css("left",this._videoSlot.offsetLeft+"px"),this._videoSlot.controls=!1,this._videoSlot=new g(this._videoSlot)):(a=f(e),a=new a("video",{id:"sticky-video"}),this._managedVideoElement=a.domElement(),this._managedVideoElement.style.width=this._width+"px",this._managedVideoElement.style.height=this._height+"px",this._managedVideoElement.style.backgroundColor=this._config.bool("nonLinear",!1)?"transparent":"black",this._managedVideoElement.style.position="absolute",m.domElement().style.zIndex= v.getZIndex(v.SLOT_ELEMENT),this._slot.prepend(this._managedVideoElement),this._videoSlot=new g(a.domElement()));var A=D(function(){this.dispose(function(){this._dispatchEvent("AdError",new k("'getVPAIDAd' detection timeout.",402))},this)},5E3,this);F(m.window(),"getVPAIDAd",u(function(a){R(A);try{if(!x(a))throw new k("'getVPAIDAd' missing or corrupted.",901);m.width(this._width).height(this._height);m.show();this._ad=this._createAd(function(){return a({Logger:t})});if(!this._ad)return this._dispatchEvent("AdStopped", {reason:"Third party ad not defined"});this._checkVersion(this._ad);d&&""!=d||(d="normal");var b=!0;"undefined"!=typeof this._videoSlot&&"undefined"!=typeof this._videoSlot._videoTag&&"undefined"!=typeof this._videoSlot._videoTag.videoSlotCanAutoPlay&&(b=this._videoSlot._videoTag.videoSlotCanAutoPlay);var c=C({videoSlotCanAutoPlay:b,frameSlot:m.domElement(),videoSlot:this._videoSlot._videoTag,duration:this.adDuration()},this._config.value("env")||{},ra(q),{slot:this._slot.domElement()});this._ad.initAd(this._width, this._height,d,h,this._creativeData,c)}catch(vb){this.dispose(function(){this._dispatchEvent("AdError",new k("Third party ad initialization failed.('"+M(vb)+"')",901))},this)}},this))}else this.dispose(function(){this._dispatchEvent("AdError",new k("Can't load VPAID Ad. AdContainer doesn't seem added to the page body.",400))},this)};this.onError=function(a){this._dispatchEvent("AdError",a)}},this))};this._checkVersion=function(a){x(a.handshakeVersion)&&((a=a.handshakeVersion("2.0"))&&0==a.indexOf("2.")? this._supportVPAID20=!0:a&&0!=a.indexOf("1.")?z.warn("Unknown vpaid version. ('"+a+"')"):this._supportVPAID20=!1)};this.resizeAd=function(a,b,c){this._width=a;this._height=b;if(this._frame){this._frame.width(a).height(b);var d=this._frame.parent();d&&"BODY"!=d.nodeName()&&(10>d.width()&&d.width()<a&&d.width(a),10>d.height()&&d.height()<b&&d.height(b))}c&&""!=c||(c="normal");this._managedVideoElement&&(this._managedVideoElement.style.width=this._width+"px",this._managedVideoElement.style.height=this._height+ "px");this._slot&&this._slot.resize(a,b);if(this._ad)try{this._ad.resizeAd(a,b,c)}catch(y){z.warn("VPAIDJS resizeAd failed! - "+y)}};this.startAd=function(){this._frame.width(this._width).height(this._height);this._ad.startAd()};this.pauseAd=function(){this._ad.pauseAd()};this.stopAd=function(){this._ad.stopAd()};this.resumeAd=function(){this._ad.resumeAd()};this.expandAd=function(){try{this._ad.expandAd()}catch(w){z.warn("expandAd failed! - "+w)}};this.collapseAd=function(){try{this._ad.collapseAd()}catch(w){z.warn("collapseAd failed! - "+ w)}};this.adVolume=function(a){if(n(a))return this._ad.getAdVolume();this._ad.setAdVolume(a);return this};this.adExpanded=function(){return this._ad.getAdExpanded()};this.adLinear=function(){return this._ad.getAdLinear()};this.adRemainingTime=function(){try{var a=this._ad.getAdRemainingTime();if(0!=a&&NaN!=a||this._hasRemainingBeenDifferentOfZero)return this._hasRemainingBeenDifferentOfZero=!0,a;z.warn("It appears that this external VPAID returns '0' instead of '-2' for an unknown adRemainingTime. Value has been changed to -2"); return-2}catch(B){return z.warn("getAdRemainingTime failed.",B),-2}};this.adDuration=function(){var a=this._loaded&&this._ad&&this._supportVPAID20?this._ad.getAdDuration():0;a="number"==typeof a?Math.max(0,a):0;return 0<a&&600>a?a:this._vastDuration};this.showSkipButton=function(){var a=new m,b={valign:"top",halign:"right",height:"auto",width:"auto",padding:"7",zIndex:v.getZIndex(v.INFO_ELEMENT)};this._skipSlot=this._container.slot(b,"sticky-skipbutton",a);a.display();this._skipSlot.on("click",function(){this._skipSlot.hide(); this.stopAd()},this)};this.dispose=function(a,b){this._durationTimeout.dispose();this._skipSlot&&this._skipSlot.remove();this._ad&&r(d.events,function(a){this._ad.unsubscribe(this._handlers[a],a)},this);this._onDispose?this._onDispose(u(a,b)):a.call(b)}})});p("mustang/com/stickyadstv/vpaid/loader/Vpaid2Frame",["mod!com.stickyadstv.vpaid.loader.VpaidFrame"],function(d){new t("com.stickyadstv.vpaid.adapter.Vpaid2Wrapper");return d.extend(new function(){this.init=function(d,c,b,a){this._super(d,c,b, a)};this.adSkippableState=function(){return this._ad&&this._vpaid2&&"getAdSkippableState"in this._ad?this._ad.getAdSkippableState():!1};this._checkVersion=function(d){this._super(d);this._supportVPAID20&&"string"==typeof this._creativeData&&(this._creativeData={AdParameters:this._creativeData})};this._createAd=function(d){d=this._super(d);d.subscribe(u(function(c){return this._adSkippedHandler.call(this,c)},this),"AdSkipped");return d};this._adSkippedHandler=function(d){this._dispatchEvent("extAdSkipped"); this._stoppedHandler(d)};this.skipAd=function(){this._supportVPAID20&&this._ad.getAdSkippableState()?this._ad.skipAd():this._ad.stopAd()}})});p("mustang/com/stickyadstv/vpaid/MediaClickable",["mod!com.stickyadstv.vpaid.Media"],function(d){var e=new t("com.stickyadstv.vpaid.MediaClickable");return d.extend(new function(){this.init=function(c,b,a,d){this._super(c,b,a,d);this._logger=e;this._dragging=!1;delete this._handlers.click};this.initAd=function(c,b,a,d,e,h){this._super(c,b,a,d,e,h);this._envSlot= h.slot};this._playingHandler=function(c){this._super(c);this._media.on("click",this._mediaClickHandler,this,!0).on("touchstart",this._mediaTouchStartHandler,this,!0).on("touchmove",this._mediaTouchMoveHandler,this,!0).on("touchend",this._mediaTouchEndHandler,this,!0).show();if(this._envSlot&&"function"==typeof this._envSlot.addEventListener){c=G(this._envSlot.style.width||0);var b=G(this._envSlot.style.width||0);if(0==c||0==b)this._envSlot.style.width=this._container.width()+"px",this._envSlot.style.height= this._container.height()+"px";this._envSlot.addEventListener("mouseover",u(this._forwardDomEventToAdContainer,this),!0);this._envSlot.addEventListener("mouseout",u(this._forwardDomEventToAdContainer,this),!0);this._envSlot.addEventListener("click",u(this._mediaClickHandler,this),!0);this._envSlot.addEventListener("touchstart",u(this._mediaTouchStartHandler,this),!0);this._envSlot.addEventListener("touchmove",u(this._mediaTouchMoveHandler,this),!0);this._envSlot.addEventListener("touchend",u(this._mediaTouchEndHandler, this),!0);this._envSlot.style&&(this._envSlot.style.cursor="pointer")}};this._mediaTouchStartHandler=function(c){e.debug("Media touched start!");c.defaultPrevented||this._shouldBeIgnored(c)||(c.preventDefault(),this._touchTarget=c.target,this._touchMoveCount=0)};this._mediaTouchMoveHandler=function(c){e.debug("Media touched move!");this._dragging=!0};this._mediaTouchEndHandler=function(c){e.debug("Media touched end!");this._dragging?this._dragging=!1:this._mediaClickHandler(c)};this._mediaClickHandler= function(c){this._shouldBeIgnored(c)||(c.stopImmediatePropagation(),c.preventDefault(),this._media.paused()?this._media.play():this._clickHandler(c));return!1};this._shouldBeIgnored=function(c){return(c=(c="function"==typeof c.domEvent?c.domEvent().target:c.target)?c.getAttribute("classes")+c.parentNode.getAttribute("classes"):"")&&-1!=c.indexOf("iFreewheelPlayer-overlay")};this._forwardDomEventToAdContainer=function(c){this._container&&"function"==typeof this._container.domElement&&1==c.target.nodeType&& !c.target.isEqualNode(this._container.domElement())?this._container.domElement().dispatchEvent(new Event(c.type)):this._forwardEvent(c)};this.dispose=function(c,b){this._ended=!0;this._media.off("click",this._mediaClickHandler,this);this._media.off("touchstart",this._mediaTouchHandler,this);this._super(c,b)}})});p("mustang/com/stickyadstv/media/Image",["mod!com.stickyadstv.display.Image","mod!com.stickyadstv.utils.Timer"],function(d,e){new t("com.stickyadstv.media.Image");return d.extend(new function(){this.init= function(c,b,a,d){this._super(c,ka({style:{display:"none"}},b));this._config=new Q(a);this._timer=new e({duration:1E3*(d||3600)});this._timer.on("complete",function(){this._ended=!0;this._dispatchEvent("ended")},this);this._ended=!1};this.paused=function(){return this._timer.paused()};this.fullscreen=function(){return!1};this.controls=function(c){return n(c)?!1:void 0};this.loop=function(c){return n(c)?!1:void 0};this.creativeWidth=function(){return this._creativeWidth||this.width()};this.creativeHeight= function(){return this._creativeHeight||this.height()};this.canPlayType=function(c){return"maybe"};this.quartile=function(){return 1};this.ended=function(){return this._ended};this.error=function(){return null};this.loadBestMedia=function(c,b,a,d,e,h,k){this.loadMedia(c[0],k)};this.play=function(){this._mediaFile?(this.show(),this._timer.play(),this._dispatchEvent("playing")):this._dispatchEvent("error",Error("media not loaded."))};this.pause=function(){this._timer.pause()};this.volume=function(){return 0}; this.duration=function(){return Math.round(this._timer.duration()/1E3)};this.currentTime=function(){return Math.round(this._timer.time()/1E3)}})});p("mustang/com/stickyadstv/media/IFrame",["mod!com.stickyadstv.dom.IFrame","mod!com.stickyadstv.utils.Timer"],function(d,e){new t("com.stickyadstv.media.IFrame");return d.extend(new function(){this.init=function(c,b,a,d){this._super(c,ka({style:{display:"none"}},b));this._timer=new e({duration:1E3*(d||3600)});this._ended=!1;this._timer.on("complete",function(){this._ended= !0;this._dispatchEvent("ended")},this);this.hide()};this.paused=function(){return this._timer.paused()};this.fullscreen=function(){};this.creativeWidth=function(){return this._mediaFile?this._mediaFile.width():0};this.creativeHeight=function(){return this._mediaFile?this._mediaFile.height():0};this.canPlayType=function(c){return"maybe"};this.quartile=function(){return 1};this.ended=function(){return this._ended};this.error=function(){return null};this.loadBestMedia=function(c,b,a,d,e,h,k){this.loadMedia(c[0], k)};this.play=function(){this._mediaFile?(this.show(),this.attr("src",this._mediaFile.url()),this._timer.play(),this._dispatchEvent("playing")):this._dispatchEvent("error",Error("media not loaded."))};this.pause=function(){this._timer.pause();this._dispatchEvent("pause")};this.volume=function(){return 0};this.duration=function(){return Math.round(this._timer.duration()/1E3)};this.currentTime=function(){return Math.round(this._timer.time()/1E3)}})});p("mustang/com/stickyadstv/media/Html",["mod!com.stickyadstv.dom.Element", "mod!com.stickyadstv.utils.Timer"],function(d,e){new t("com.stickyadstv.media.Html");return d.extend(new function(){this.init=function(c,b,a,d){if(c)throw Error("Unexpected dom element");this._super("div",ka({style:{display:"none"}},b));this._timer=new e({duration:1E3*(d||3600)});this._ended=!1;this._timer.on("complete",function(){this._ended=!0;this._dispatchEvent("ended")},this);this.hide()};this.paused=function(){return this._timer.paused()};this.fullscreen=function(){};this.controls=function(c){return n(c)? !1:this};this.loop=function(c){return n(c)?!1:this};this.creativeWidth=function(){return this._mediaFile?this._mediaFile.width():0};this.creativeHeight=function(){return this._mediaFile?this._mediaFile.height():0};this.canPlayType=function(c){return"maybe"};this.quartile=function(){return 1};this.ended=function(){return this._ended};this.error=function(){return null};this.resize=function(c,b){if(!P(c)||!P(b))return this;this.width(c).height(b);return this};this.loadMedia=function(c,b){try{this._creative= new d(c.url()),this.append(this._creative),this._mediaFile=c,D(function(){b.onSuccess({})},5,this)}catch(a){b.onError(a)}};this.loadBestMedia=function(c,b,a,d,e,h,k){this.loadMedia(c[0],k)};this.play=function(){this._mediaFile?(this.show(),this._timer.play(),this._dispatchEvent("playing")):this._dispatchEvent("error",Error("media not loaded."))};this.pause=function(){this._timer.pause();this._dispatchEvent("pause")};this.volume=function(){return 0};this.duration=function(){return Math.round(this._timer.duration()/ 1E3)};this.currentTime=function(){return Math.round(this._timer.time()/1E3)};this.dispose=function(c){this._super();this._creative&&this._creative.remove();c()}})});p("mustang/com/stickyadstv/dom/Video",["mod!com.stickyadstv.dom.Element","mod!com.stickyadstv.utils.Browser","mod!com.stickyadstv.vast.VastError"],function(d,e,c){var b=new t("com.stickyadstv.dom.Video"),a={};if(ua){var f=function(a,b){return"fullscreen"==b?!1:"url"==b?this.currentSrc:""};r([{type:"abort",message:"Sent when the browser stops fetching the media data before the media resource was completely downloaded."}, {type:"canplay",message:"Sent when the browser can resume playback of the media data, but estimates that if playback is started now, the media resource could not be rendered at the current playback rate up to its end without having to stop for further buffering of content."},{type:"canplaythrough",message:"Sent when the browser estimates that if playback is started now, the media resource could be rendered at the current playback rate all the way to its end without having to stop for further buffering."}, {type:"durationchange",message:"Sent when the duration property changes."},{type:"emptied",message:"Sent when the media element network state changes to the NETWORK_EMPTY state."},{type:"ended",message:"Sent when playback has stopped at the end of the media resource and the ended property is set to true."},{type:"error",message:"Sent when an error occurs while fetching the media data. Use the error property to get the current error."},{type:"loadeddata",message:"Sent when the browser can render the media data at the current playback position for the first time."}, {type:"loadedmetadata",message:"Sent when the browser knows the duration and dimensions of the media resource."},{type:"loadstart",message:"Sent when the browser begins loading the media data."},{type:"pause",message:"Sent when playback pauses after the pause method returns."},{type:"play",message:"Sent when playback starts after the play method returns.('[url]')"},{type:"playing",message:"Sent when playback starts."},{type:"ratechange",message:"Sent when either the defaultPlaybackRate or the playbackRate property changes."}, {type:"seeked",message:"Sent when the seeking property is set to false"},{type:"seeking",message:"Sent when the seeking property is set to true and there is time to send this event."},{type:"stalled",message:"Sent when the browser is fetching media data but it has stopped arriving."},{type:"volumechange",message:"Sent when either the volume property or the muted property changes."},{type:"waiting",message:"Sent when the browser stops playback because it is waiting for the next frame."}],function(c){a[c.type]= function(a){b.debug(c.type+","+c.message.replace(/\[(\w+)\]/ig,u(f,this)))}})}var g=d.extend(new function(){this.init=function(a,d,e){d=d||{};e=e||{};this._config=new Q(e);this._preReadyEvents=this._config.value("preReadyEvents")||"loadstart loadedmetadata stalled canplay";this._readyEvents=this._config.value("readyEvents")||"loadedmetadata stalled canplay";this._fullscreen=S(e.fullscreen,!1);this._controls=S(e.controls,!S(e.videoSlotCanAutoPlay,!0));this._isFullScreen=!1;if(a&&!n(a.nodeType)){if("video"!= a.nodeName.toLowerCase())throw new c("Unexpected video tag.",405);this._super(a)}else e=[],this._fullscreen||(e.push("playsinline"),e.push("webkit-playsinline")),this._controls&&e.push("controls"),this._super(e.length?"<video "+e.join(" ")+"/>":"video",a||d),a&&a.sources&&X(a.sources)&&this.sources(a.sources);this._registerListeners();this._logger=b};this._registerListeners=function(){document.addEventListener("webkitfullscreenchange",u(this._fullscreenChangeHandler,this));document.addEventListener("mozfullscreenchange", u(this._fullscreenChangeHandler,this));document.addEventListener("msfullscreenchange",u(this._fullscreenChangeHandler,this));document.addEventListener("fullscreenchange",u(this._fullscreenChangeHandler,this));ua&&this._traceEvents(!0)};this._onAppPauseHandler=function(a){this._super(a);this.pause()};this._onAppResumeHandler=function(a){this._super(a);this.play()};this.fullscreen=function(a){if(n(a))return this.attr("playsinline");a?this.attr("playsinline",null):this.attr("playsinline","");return this}; this.resize=function(a,b,c){if(!P(a)||!P(b))return this;this._element.width=a;this._element.height=b;this.parent()&&"floorad"!=this._config.value("componentId")&&"expand-banner"!=this._config.value("componentId")&&(this.parent().width()!=a&&this.parent().width(a),this.parent().height()!=b&&this.parent().height(b));return this};this.width=function(a){if(n(a))return this._super();this._element.width=a;return this};this.height=function(a){if(n(a))return this._super();this._element.height=a;return this}; this.readyState=function(){return this._element.readyState};this.networkState=function(){return this._element.networkState};this.scale=function(){var a=this._element;return Math.min(a.width/a.videoWidth,a.height/a.videoHeight)};this.creativeWidth=function(){var a=this._element.videoWidth;return a?a:this._media?this._media.width:0};this.creativeHeight=function(){var a=this._element.videoHeight;return a?a:this._media?this._media.height:0};this.onMetadataReady=function(a){var c=this.readyState();b.debug("readyState", c);if(1<=c)a();else{var d=function(){this.off("loadedmetadata stalled",d,this);a()};this.on("loadedmetadata stalled",d,this);this.load()}};this._traceEvents=function(b){r(a,function(a,c){if(b)this.on(c,a,this,!1,9);else this.off(c,a,this,!1,9)},this)};this.supportFullScreen=function(){return"undefined"==typeof this._element.webkitSupportsFullscreen?!1:this._element.webkitSupportsFullscreen};this.displayingFullScreen=function(){return"undefined"==typeof this._element.webkitDisplayingFullscreen?!1: this._element.webkitDisplayingFullscreen};this.requestFullScreen=function(){var a=this._element;a.requestFullScreen?a.requestFullScreen():a.mozRequestFullScreen?a.mozRequestFullScreen():a.webkitRequestFullScreen?a.webkitRequestFullScreen():b.warn("requestFullScreen not supported.")};this.enterFullScreen=function(){"function"==typeof this._element.webkitRequestFullScreen?this._element.webkitRequestFullScreen():"function"==typeof this._element.mozRequestFullScreen?this._element.mozRequestFullScreen(): b.warn("enterFullScreen not supported");return this};this.exitFullScreen=function(){var a=this._element;document.cancelFullScreen?document.cancelFullScreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitCancelFullScreen?document.webkitCancelFullScreen():a.webkitExitFullScreen?a.webkitExitFullScreen():b.warn("exitFullScreen not supported");return this};this._fullscreenChangeHandler=function(a){var c=document.webkitFullscreenElement||document.mozFullscreenElement||document.msFullscreenElement|| document.fullscreenElement;null==c&&this._isFullScreen?(this._isFullScreen=!1,this._dispatchEvent("exitFullscreen",O(a))):null!=c&&!this._isFullScreen&&this.hasSource(c.currentSrc)?(this._isFullScreen=!0,this._dispatchEvent("fullscreen",O(a))):b.info("Unexpected fullScreenElement value")};this.loop=function(a){if(n(a))return this._element.loop;this._element.loop=a;return this};this.canPlayType=function(a){a=this._invoke("canPlayType",a);return"no"==a?"":a};this.play=function(){b.debug("play",this.width()+ "x"+this.height());this._fullscreen||(this.domElement().setAttribute("playsinline",""),this.domElement().setAttribute("webkit-playsinline",""));this.domElement().controls=this._controls;this.domElement().style.backgroundColor="black";var a=this,c=!0,d=this._invoke("play");d instanceof Promise&&d.catch(function(a){"NotAllowedError"==a.name&&(c=!1)}).then(function(){c?a._dispatchEvent("playing"):(b.warn("Autoplay not allowed!"),a._dispatchEvent("playing"),a._dispatchEvent("pause"))});return this};this.pause= function(){b.debug("pause");this._invoke("pause");return this};this.load=function(){b.debug("load");this._invoke("load");return this};this.paused=function(){return this._element.paused};this.seekTo=function(a){this.currentTime(a/1E3)};this.currentTime=function(a){if(n(a))return Math.max(0,G(this._element.currentTime,0));a=G(a);if(isNaN(a))throw new c("Video.currentTime: Bad argument.",405);this._element.currentTime=a;return this};this.playbackRate=function(a){if(n(a))return this._element.playbackRate; a=G(a);if(isNaN(a))throw new c("Video.playbackRate: Bad argument.",405);this._element.playbackRate=a;return this};this.duration=function(){return Math.max(0,G(this._element.duration,0))};this.error=function(){var a=this._element.error;return a?new c("video error. (source:'"+this.source()+"',error code:'"+a.code+"')",405):null};this.volume=function(a){if(n(a))return this._element.muted?0:this._element.volume;if(this.volume()!=a)return this._element.muted=0<a?!1:!0,this._element.volume=a};this.findBestMedia= function(a){for(var c,d=0;d<a.length;++d){var e=a[d],f=this.canPlayType(e.type).toLowerCase();b.debug("canPlay:"+e.type+"->"+f);if("maybe"==f)c||(c=e);else{if("probably"==f)return e;b.info("Unexpected canPlay value")}}return c};this.clear=function(){this.source(null);this.load();return this};this.loadMedias=function(a,d){function e(a){a.stopImmediatePropagation();a.preventDefault();return!1}function f(a){b.error("video loading error",this.error());a.stopImmediatePropagation();0>=k?(k--,a=a.target.domElement().error, this._loadingListener.onError(new c("An error occurred while loading media data. '"+(a?"code: "+a.code:"")+"'",405))):(k--,this.load())}function h(a){a.stopImmediatePropagation();try{if(3==this.networkState())throw new c("No supported media found.",403);this._media=U(g,function(a){return a.src==this.source()},this);this._dispatchEvent("loaded");b.debug("video ready");this._loadingListener.onSuccess(a)}catch(B){this._loadingListener.onError(B)}}var g=[];r(a,function(a){x(a.type)?-1==a.type().indexOf("application")&& g.push({src:a.url(),type:a.type()}):g.push(a)});if(!g.length)throw new c("Media list empty.",405);g=Y(g,function(a){return!a.type||this.canPlayType(a.type)},this);if(!g.length)throw new c("No supported media type found.",403);this.on("ended emptied abort",e,this,!1,8);this._loadingListener=new (Na.extend(new function(){this.onTimeout=function(){this.onError(new c("Timeout while loading video media.",402))};this._onDispose=function(){this.off(this._readyEvents,h).off("error",f);this.off("ended emptied abort", e)};this._onSuccess=function(a){if(d)d.onSuccess(a)};this._onError=function(a){if(d)d.onError(a)}}))(I.number("loading/timeout",2E4),this);var k=I.integer("video/tryCount",2);if(1==g.length){a=g[0];if(""!=a.src&&this.source()==a.src&&null==this.error()&&3!=this.networkState()&&0<this.readyState())return d.onSuccess({});if(""!=a.src)this.on(this._readyEvents,h,this).on("error",f,this);this.source(a.src);"string"==typeof a.innerHTML&&(this._element.innerHTML=a.innerHTML)}else this.on(this._readyEvents, h,this).on("error",f,this),this.sources(g);this.load()};this.loadMedia=function(a,b){return this.loadMedias([a],b)};this.ended=function(){return this._element.ended};this.type=function(){return this._element.type};this.controls=function(a){if(n(a))return this._element.controls;this._controls=a;this._element.controls=a;return this};this.hasSource=function(a){if(this._element.src==a)return!0;var b=!1;this.sources().each(function(c){if(c.attr("src")==a||c.text()==a)b=!0});return b};this.sources=function(a){if(n(a))return this.children("source"); "function"==typeof this._element.removeAttribute&&this._element.removeAttribute("src");this.children("source").remove();this.prepend(fa(a,function(a){return new d("source",a)}))};this.currentSource=function(a){if(n(a))return this._element.currentSrc;b.info("new source('"+this._element.id+"'):",a);"function"==typeof this._element.removeAttribute&&this._element.removeAttribute("src");this.children("source").remove();a&&(this._element.src=a);return this};this.source=function(a){if(n(a))return this._element.src; this.currentSource(a);return this};this.remove=function(){this._super();this.source("").load()};this.dispose=function(a){this._super();ua&&this._traceEvents(!1);this._loadingListener&&this._loadingListener.abort();a()}});return e.isAndroid()?(g=g.extend(new function(){this.init=function(a,b,c){c=new Q(c);c.value("readyEvents","loadstart loadedmetadata stalled canplay");this._super(a,b,c)};this.canPlayType=function(a){var b=e.androidVersion();return 0==b.indexOf("2.1")||0==b.indexOf("2.2")?null!== a.match(/video\/(mp4|m4v)/gi)?"maybe":"":this._super(a)};this.sources=function(a){if(n(a))return this._super();a=this.findBestMedia(a);if(!a)throw new c("Unable to find a supported media.",403);return this.source(a.src)}}),0==e.androidVersion().indexOf("2.3")?g.extend(new function(){this._globalInit=function(){this.on("ended",function(a){this.ended()||a.stopImmediatePropagation()},this,!1,2);var a;this.on("pause ended error abort suspend waiting",function(b){R(a)});this.on("playing timeupdate",function(c){R(a); var d=I.integer("video/timeout",3E3);a=D(function(){b.debug("android:closed(timeout:'"+d+"')");this._dispatchEvent("closed")},d,this)},this);return!0}}):0==e.androidVersion().indexOf("2.2")?g.extend(new function(){this._globalInit=function(){this.on("ended",function(a){if(!this.ended())return b.debug("closed(ended)"),a.stopImmediatePropagation(),this._dispatchEvent("closed")},this,!1,2);return!0}}):g):e.isIOS()?(g=g.extend(new function(){this.sources=function(a){if(n(a))return this._super();a=this.findBestMedia(a); if(!a)throw new c("Unable to find a supported media.",403);return this.source(a.src)}}),e.isIPhone()&&(g=g.extend(new function(){this.init=function(a,b,c){c=new Q(c);c.value("readyEvents","loadstart loadedmetadata stalled canplay");this._super(a,b,c)};this._globalInit=function(){function a(a){if(!this.displayingFullScreen())return b.debug("iphone:closed(pause)"),a.stopImmediatePropagation(),this._dispatchEvent("closed")}var c;this.on("playing",function(b){clearInterval(c);c=setInterval(u(function(){this.displayingFullScreen()&& (clearInterval(c),this.on("pause",a,this,!1,1))},this),5)},this);this.on("ended closed",function(b){clearInterval(c);this.off("pause",a)},this);return!0}})),g):e.isWindowsPhone()?g.extend(new function(){this.play=function(){var a=I.integer("wp/timeout",300);b.debug("wp:start timeout",a);var c=ca();R(this._underWater);this._underWater=D(function(){var d=ca()-c;b.debug("wp:under water time",d,a);d>=2*a&&this._dispatchEvent("ended")},this,a);return this._super()};this.dispose=function(a){R(this._underWater); this._super(a)}}):g});p("mustang/com/stickyadstv/media/Video",["mod!com.stickyadstv.dom.Video"],function(d){var e=new t("com.stickyadstv.media.Video");return d.extend(new function(){this.loadBestMedia=function(c,b,a,d,e,h,k){h=h||{};"fullscreen"in h&&this.fullscreen(S(h.fullscreen,!1));var f=S(h.videoSlotCanAutoPlay,!0);f?this.controls(!1):this.controls(!0).resize(b,a).show();this.loadMedias(c,new function(){this.onSuccess=function(a){if(f)k.onSuccess(a)};this.onError=function(a){k.onError(a)}}); if(!f)k.onSuccess({})};this.isVisible=function(){return this._super()&&2<this.width()&&2<this.height()};this.backup=function(c){var b=u(this._super,this);e.debug("backup");if(""==this._element.src){var a=this._element;this._backupMedia={id:a.id,src:"",className:a.className,cssText:this.cssText(),parent:a.parentNode,nextSibling:this.nextSibling(),ended:this.ended(),time:this.currentTime(),controls:this.controls(),loop:this.loop(),width:this.creativeWidth(),height:this.creativeHeight(),innerHTML:a.innerHTML}; this.loop(!1);b(c)}else this._onReady(function(a){e.debug("backup ok");var d=this._element;this._backupMedia={id:d.id,src:a,className:d.className,cssText:this.cssText(),parent:d.parentNode,nextSibling:this.nextSibling(),ended:this.ended(),time:this.currentTime(),controls:this.controls(),loop:this.loop(),width:this.creativeWidth(),height:this.creativeHeight()};this.loop(!1);b(c)},this)};this.restore=function(c,b,a){function d(a){this.off("seeked",d);k()}var g=u(this._super,this),h=this._backupMedia; if(!h)return this._backupMedia=null,g(c,b);e.debug("restore",h);var k=u(function(){this._backupMedia=null;e.debug("restore ok",h);h.loop&&this.loop(h.loop);h.controls&&this.controls(h.controls);g(c,b)},this),m=this._element;m.id=h.id;h.cssText&&H(h.cssText)&&(m.style.cssText=h.cssText);"string"==typeof h.innerHTML&&(m.innerHTML=h.innerHTML);m.className=h.className;var q=h.nextSibling?h.nextSibling.domElement():null;if(m.parentNode!=h.parent)try{this._havePlay=!1,h.parent.ownerDocument.importNode(m), h.parent.insertBefore(m,q)}catch(z){e.warn(z)}else if(h.src==this.currentSource())return k();if(!this._config.bool("restoreOnComplete",!0)&&h.ended)return k();var v=u(function(a){this.off("loadedmetadata stalled",v);try{this.on("seeked",d,this),this.currentTime(h.time)}catch(w){this.off("seeked",d),k()}},this),F=this.source();m=Na.extend(new function(){this._onSuccess=function(a){this._backupMedia=null;if(h.ended||this.currentTime()==h.time||F!=h.src&&!h.time)return k();if(1<=this.readyState())v(); else this.on("loadedmetadata stalled",v)};this._onError=function(d){e.error(d);a?this._dispatchEvent("error",d):this.restore(c,b,!0)}});if("undefined"!=typeof h&&"undefined"!=typeof h.src&&""==h.src)return this.loadMedia(h),k();this.loadMedia(h,new m(5E3,this))};this._onReady=function(c,b){var a=this.source();if(a)D(c,b,a);else{var d=this.readyState();e.debug("readyState",d);a=this.currentSource();if(1<=d&&a)D(c,b,a);else{var g=function(){this.off(this._preReadyEvents,g);c.call(b,this.currentSource())}; this.on(this._preReadyEvents,g,this);this.load()}}};this.controls=function(c){if(n(c))return this._super();var b=this._backupMedia;if(b){var a=this._super();a!=c&&(b.controls=a)}return this._super(c)};this.quartile=function(){var c=this.currentTime();if(isNaN(c))return 1;var b=this.duration();if(isNaN(b))return 1;c=Math.min(c,b);return b?Math.ceil(4*Math.max(c,.01)/b):0}})});p("mustang/com/stickyadstv/dom/IFreewheelPlayer",["mod!com.stickyadstv.dom.Element","mod!com.stickyadstv.utils.Browser","mod!com.stickyadstv.vast.VastError"], function(d,e,c){var b=new t("com.stickyadstv.dom.IFreewheelPlayer"),a={};return d.extend(new function(){this.init=function(a,b){this._super(a);this._container=a;this._iFreewheelPlayer=b;this.initListeners()};this.initListeners=function(){this._iFreewheelPlayer.on("playing",function(){this._dispatchEvent("playing",{domEvent:!1})},this);this._iFreewheelPlayer.on("paused",function(a){this._dispatchEvent("pause",{domEvent:!1})},this);this._iFreewheelPlayer.on("ended",function(){this._dispatchEvent("ended", {domEvent:!1})},this);this._iFreewheelPlayer.on("loaded",function(){"undefined"!=typeof this.initListener?(this.initListener.onSuccess(),delete this.initListener):this._dispatchEvent("ready",{domEvent:!1})},this);this._iFreewheelPlayer.on("error",function(){"undefined"!=typeof this.initListener?(this.initListener.onError(),delete this.initListener):this._dispatchEvent("error",{domEvent:!1})},this)};this._onAppPauseHandler=function(a){this._super(a);this.pause()};this._onAppResumeHandler=function(a){this._super(a); this.play()};this.fullscreen=function(a){return n(a)?!1:this};this.resize=function(a,b,c){return this};this.readyState=function(){return"loaded"==this._iFreewheelPlayer.getPlayerState()};this.creativeWidth=function(){return this.width()};this.creativeHeight=function(){return this.height()};this._traceEvents=function(b){r(a,function(a,c){if(b)this.on(c,a,this,!1,9);else this.off(c,a,this,!1,9)},this)};this.supportFullScreen=function(){return!1};this.displayingFullScreen=function(){return!1};this.requestFullScreen= function(){};this.enterFullScreen=function(){return this};this.exitFullScreen=function(){return this};this._fullscreenChangeHandler=function(a){this._dispatchEvent("fullscreenchange",O(a))};this.loop=function(a){return n(a)?!1:this};this.canPlayType=function(a){return this._iFreewheelPlayer.canPlayType(a)};this.play=function(){this._iFreewheelPlayer.play();return this};this.pause=function(){this._iFreewheelPlayer.pause();return this};this.load=function(){b.debug("load"+this._playlist[0].src);this.source(this._playlist[0].src); return this};this.paused=function(){return"paused"==this._iFreewheelPlayer.getPlayerState()};this.seekTo=function(a){this.currentTime(a/1E3)};this.currentTime=function(a){if(n(a))return Math.ceil(Math.max(0,G(this._iFreewheelPlayer.getCurrentTime(),0)));a=G(a);if(isNaN(a))throw new c("Video.currentTime: Bad argument.",405);this._iFreewheelPlayer.seek(a);return this};this.playbackRate=function(a){return n(a)?1:this};this.duration=function(){return Math.max(0,G(this._iFreewheelPlayer.getDuration(), 0))};this.error=function(a){return new c("video error. (source:'"+this.source()+"',error code:'"+a.code+"')",405)};this.volume=function(a){if(n(a))return this._iFreewheelPlayer.getVolume();if(this.volume()==a)return this;var c=this._iFreewheelPlayer.isMuted();0<a&&c?this._iFreewheelPlayer.mute(!1):0!=a||c?b.info("Unexpected volume value and mute setting"):this._iFreewheelPlayer.mute(!0);this._iFreewheelPlayer.setVolume(a);this._dispatchEvent("volumechange",{domEvent:!1});return this};this.findBestMedia= function(a){for(var c,d=0;d<a.length;++d){var e=a[d],f=this.canPlayType(e.type).toLowerCase();b.debug("canPlay:"+e.type+"->"+f);if("maybe"==f)c||(c=e);else{if("probably"==f)return e;b.info("Unexpected canPlay value")}}return c};this.clear=function(){this.source(null);this.load();return this};this.loadMedias=function(a,b){var c=[];r(a,function(a){x(a.type)?-1==a.type().indexOf("application")&&c.push({src:a.url(),type:a.type()}):c.push(a)});if(!c.length)throw Error("Media list empty.");c=Y(c,function(a){return!a.type|| this.canPlayType(a.type)},this);if(!c.length)throw Error("No supported media type found.");this.initListener=b;this.sources(c);this.load()};this.loadMedia=function(a,b){return this.loadMedias([a],b)};this.ended=function(){return"ended"==this._iFreewheelPlayer.getPlayerState()};this.controls=function(a){if(n(a))return this._iFreewheelPlayer.isControlsEnabled();a?this._iFreewheelPlayer.enableControls():this._iFreewheelPlayer.disableControls();return this};this.sources=function(a){if(n(a))return this._source; this._playlist=a};this.currentSource=function(a){if(n(a))return this._iFreewheelPlayer.getSrc();this._iFreewheelPlayer.setSrc(a);return this};this.source=function(a){if(n(a))return this._iFreewheelPlayer.getSrc();this._iFreewheelPlayer.setSrc(a);return this};this.remove=function(){this._super();this._iFreewheelPlayer.setSrc("")};this.dispose=function(a){this._super();ua&&this._traceEvents(!1);this._loadingListener&&this._loadingListener.abort();a()}})});p("mustang/com/stickyadstv/vpaid/viewability/openVV/OpenVVTools", ["mod!com.stickyadstv.utils.Browser"],function(d){var e=new t("com.stickyadstv.vpaid.viewability.openVV.OpenVVTools"),c=0;d.isAMP()&&window.context.observeIntersection(function(b){b.forEach(function(a){c=100*a.intersectionRatio})});return N.extend({checkViewability:function(b,a){if(d.isAppleTV())return{percentViewable:100,focus:!0,viewabilityState:J.VIEWABLE};if(d.isAMP())return{percentViewable:c,focus:!0,viewabilityState:50<=c?J.VIEWABLE:J.UNVIEWABLE};e.info("Browser is not AppleTV nor AMP");a=!a; var f;if((f=b)&&f._iFreewheelPlayer&&b._iFreewheelPlayer._originalPlayer){var g=b._iFreewheelPlayer._originalPlayer;g.style&&"none"!==g.style.display&&(f=g);f&&1!=f.nodeType&&(f=f._videoTag||b);b._overlaySlots&&(g=b._overlaySlots,g["iFreewheelPlayer-flash"]&&(g=g["iFreewheelPlayer-flash"].domElement())&&document.body.contains(g)&&(f=g))}f&&"undefined"==typeof f.getBoundingClientRect&&"undefined"!=typeof f._element&&(f=f._element);g={};if("undefined"==typeof window.$fw_ovv)e.warn("Viewability is unmeasurable. OVV lib is missing."), g.viewabilityState="unmeasurable";else if("undefined"==typeof b)e.warn("Viewability is unmeasurable. missing player Element!"),g.viewabilityState=J.UNMEASURABLE;else{try{g=window.$fw_ovv.asset.checkViewability(f,a)}catch(h){g.viewabilityState=J.UNMEASURABLE}if(g.viewabilityState!=J.VIEWABLE&&a)try{g=window.$fw_ovv.asset.checkViewability(f,!1)}catch(h){g.viewabilityState=J.UNMEASURABLE}}g.percentViewable=P(g.percentViewable)?Math.round(g.percentViewable):-1;0>g.percentViewable&&(g.viewabilityState= "unmeasurable");g.isXDomain=window.$fw_ovv.IN_XD_IFRAME;return g}},new function(){})});p("mustang/com/stickyadstv/media/IFreewheelPlayer",["mod!com.stickyadstv.dom.IFreewheelPlayer","mod!com.stickyadstv.vpaid.viewability.openVV.OpenVVTools"],function(d,e){var c=new t("com.stickyadstv.media.IFreewheelPlayer");return d.extend(new function(){this.init=function(b,a){this._super(b,a);this._backupCount=0};this.loadBestMedia=function(b,a,c,d,e,k,m){k=k||{};"fullscreen"in k&&this.fullscreen(S(k.fullscreen, !1));var f=S(k.videoSlotCanAutoPlay,!0);f||this.controls(!0).resize(a,c).show();this.loadMedias(b,new function(){this.onSuccess=function(a){if(f)m.onSuccess(a)};this.onError=function(a){m.onError(a)}});if(!f)m.onSuccess({})};this.isVisible=function(){return"viewable"==e.checkViewability(this,!0).viewabilityState};this.backup=function(b,a){this._backupCount++;"undefined"==typeof this._backup&&(this._backup={src:this._iFreewheelPlayer.getSrc(),time:this._iFreewheelPlayer.getCurrentTime(!0),controls:this._iFreewheelPlayer.isControlsEnabled(), isEnded:"ended"==this._iFreewheelPlayer.getPlayerState(),type:this._iFreewheelPlayer.getMediaType?this._iFreewheelPlayer.getMediaType():void 0},"function"==typeof this._iFreewheelPlayer.getVideoAsset&&this._iFreewheelPlayer.getVideoAsset()&&(this._backup.asset=this._iFreewheelPlayer.getVideoAsset()));if("unknown"==this._backup.time){var c="undefined"!=typeof a?a+1:0;if(20>c){delete this._backup;D(function(){this.backup(b,c)},200,this);return}}b(this)};this.restore=function(b,a,c){function d(b){delete this._backup; this._iFreewheelPlayer.off("loaded",d);this._iFreewheelPlayer.off("error",d);"loaded"==b.type?a():"error"==b.type&&"function"==typeof c&&c()}this._backupCount--;0<this._backupCount||!this._backup||!this._backup.src?a():(this._backup.controls?this._iFreewheelPlayer.enableControls():this._iFreewheelPlayer.disableControls(),this._iFreewheelPlayer.on("loaded",d,this),this._iFreewheelPlayer.on("error",d,this),this._iFreewheelPlayer.setSrcToTime(this._backup.asset?this._backup.asset:this._backup.src,this._backup.time, this._backup.type,this._backup.isEnded))};this._onReady=function(b,a){var d=this.source();if(d)D(b,a,d);else{var e=this.readyState();c.debug("readyState",e);d=this.currentSource();if(1<=e&&d)D(b,a,d);else{var h=function(){this.off(this._preReadyEvents,h);b.call(a,this.currentSource())};this.on(this._preReadyEvents,h,this);this.load()}}};this.quartile=function(){var b=this.currentTime();if(isNaN(b))return 1;var a=this.duration();if(isNaN(a))return 1;b=Math.min(b,a);return a?Math.ceil(4*Math.max(b, .01)/a):0}})});p("mustang/com/stickyadstv/dom/appleTV/AppleTVNativePlayer",["mod!com.stickyadstv.dom.Element","mod!com.stickyadstv.utils.Browser","mod!com.stickyadstv.event.EventDispatcher","mod!com.stickyadstv.event.StickyEvent"],function(d,e,c,b){var a=new t("com.stickyadstv.dom.appleTV.AppleTVNativPlayer"),f={},g=["webkitfullscreenchange","mozfullscreenchange"];if(ua){var h=function(a,b){return"fullscreen"==b?!1:"url"==b?this.currentSrc:""};r([{type:"abort",message:"Sent when the browser stops fetching the media data before the media resource was completely downloaded."}, {type:"canplay",message:"Sent when the browser can resume playback of the media data, but estimates that if playback is started now, the media resource could not be rendered at the current playback rate up to its end without having to stop for further buffering of content."},{type:"canplaythrough",message:"Sent when the browser estimates that if playback is started now, the media resource could be rendered at the current playback rate all the way to its end without having to stop for further buffering."}, {type:"durationchange",message:"Sent when the duration property changes."},{type:"emptied",message:"Sent when the media element network state changes to the NETWORK_EMPTY state."},{type:"ended",message:"Sent when playback has stopped at the end of the media resource and the ended property is set to true."},{type:"error",message:"Sent when an error occurs while fetching the media data. Use the error property to get the current error."},{type:"loadeddata",message:"Sent when the browser can render the media data at the current playback position for the first time."}, {type:"loadedmetadata",message:"Sent when the browser knows the duration and dimensions of the media resource."},{type:"loadstart",message:"Sent when the browser begins loading the media data."},{type:"pause",message:"Sent when playback pauses after the pause method returns."},{type:"play",message:"Sent when playback starts after the play method returns.('[url]')"},{type:"playing",message:"Sent when playback starts."},{type:"ratechange",message:"Sent when either the defaultPlaybackRate or the playbackRate property changes."}, {type:"seeked",message:"Sent when the seeking property is set to false"},{type:"seeking",message:"Sent when the seeking property is set to true and there is time to send this event."},{type:"stalled",message:"Sent when the browser is fetching media data but it has stopped arriving."},{type:"suspend",message:"Sent when the browser suspends loading the media data and does not have the entire media resource downloaded."},{type:"volumechange",message:"Sent when either the volume property or the muted property changes."}, {type:"waiting",message:"Sent when the browser stops playback because it is waiting for the next frame."},{type:"fullscreenchange",message:"full screen change [fullscreenMode]."}],function(b){f[b.type]=function(c){a.debug(b.type+","+b.message.replace(/\[(\w+)\]/ig,u(h,this)))}})}return c.extend(new function(){this.init=function(a,b,c){c=c||{};this._super();this._preReadyEvents=c.preReadyEvents||"loadstart loadedmetadata stalled canplay";this._readyEvents=c.readyEvents||"loadedmetadata stalled canplay"; this._player=a;c=c||{};this._config=new Q(c);this._player.on=this._player.on;this._player.clearError=this._player.clearError;this._player.getSrc=this._player.getSrc;this._player.setSrc=this._player.setSrc;this._player.controls=this._player.controls;this._player.enableControls=this._player.enableControls;this._player.disableControls=this._player.disableControls;this._player.getPlayerState=this._player.getPlayerState;this._player.getDuration=this._player.getDuration;this._player.getVolume=this._player.getVolume; this._player.getCurrentTime=this._player.getCurrentTime;this._player.disableControls=this._player.disableControls;this._player.seek=this._player.seek;this._player.play=this._player.play;this._player.pause=this._player.pause;this._player.getWidth=this._player.getWidth;this._player.getHeight=this._player.getHeight;this._player.setSrcToTime=this._player.setSrcToTime;this._player.on("playing",function(){this._dispatchEvent("playing")},this);this._player.on("paused",function(){this._dispatchEvent("pause")}, this);this._player.on("ended",function(){this._dispatchEvent("ended")},this);this._player.on("ready",function(){if("undefined"!=typeof this.initListener){var a=this.initListener;delete this.initListener;a.onSuccess()}},this);this._player.on("error",function(){this._isNativePlayer()||(this._player.clearError(this._backup),this._dispatchEvent("error"));if("undefined"!=typeof this.initListener)this.initListener.onError()},this);this._player.backup=this.backup};this._onAppPauseHandler=function(a){this._super(a); this.pause()};this._isNativePlayer=function(){return"undefined"==typeof this._player||"undefined"==typeof this._player._player||this._player._player.constructor!=window.Player};this._onAppResumeHandler=function(a){this._super(a);this.play()};this.fullscreen=function(a){return n(a)?!1:this};this.resize=function(a,b,c){return this};this.width=function(a){return n(a)?this._player.getWidth():this};this.height=function(a){return n(a)?this._player.getHeight():this};this.readyState=function(){return"error"!= this._player.getPlayerState()&&"created"!=this._player.getPlayerState()};this.networkState=function(){return"unknown"};this.scale=function(){return 1};this.creativeWidth=function(){return this._player.getWidth()};this.creativeHeight=function(){return this._player.getHeight()};this.onMetadataReady=function(a){};this._traceEvents=function(a){r(f,function(b,c){if(a)this.on(c,b,this,!1,9);else this.off(c,b,this,!1,9)},this)};this.supportFullScreen=function(){return!1};this.displayingFullScreen=function(){return!1}; this.requestFullScreen=function(){};this.enterFullScreen=function(){return this};this.exitFullScreen=function(){return this};this._fullscreenChangeHandler=function(a){this._dispatchEvent("fullscreenchange",O(a))};this._onListenerAdded=function(a,b,c){this._super(a,b,c);U(g,function(b){return b==a})&&r(g,u(function(b){b!=a&&this._addListener(b,c.handler,c)},this))};this.error=function(){};this._onListenerRemoved=function(a,b,c){this._super(a,b,c);U(g,function(b){return b==a})&&r(g,u(function(c){c!= a&&this.off(c,b)},this))};this.loop=function(a){return n(a)?!1:this};this.canPlayType=function(a){return-1!="application/x-mpegURL,application/x-troff-msvideo,video/avi,video/msvideo,video/x-msvideo,video/quicktime,video/mp4,video/m4v".indexOf(a)};this.play=function(){a.debug("play",this.width()+"x"+this.height());this._player.play();return this};this.pause=function(){a.debug("pause");this._player.pause();return this};this.load=function(){a.debug("load");this.source(this._playlist[0].src);return this}; this.paused=function(){return"paused"==this._player.getPlayerState()};this.seekTo=function(a){this._player.seek(a/1E3)};this.currentTime=function(a){if(n(a))return this._player.getCurrentTime();this.seekTo(a)};this.playbackRate=function(a){return n(a)?1:this};this.duration=function(){return Math.max(0,G(this._player.getDuration(),0))};this.volume=function(a){if(n(a))return this._player.getVolume()};this.findBestMedia=function(b){for(var c=0;c<b.length;++c){var d=b[c],e=this.canPlayType(d.type);a.debug("canPlay:"+ d.type+"->"+e);if(e)return d}};this.clear=function(){return this};this.loadMedias=function(a,b){var c=[];r(a,function(a){x(a.type)?-1==a.type().indexOf("application")&&c.push({src:a.url(),type:a.type()}):c.push(a)});if(!c.length)throw Error("Media list empty.");c=Y(c,function(a){return!a.type||this.canPlayType(a.type)},this);if(!c.length)throw Error("No supported media type found.");this.initListener=b;this.sources(c);this.load()};this.loadMedia=function(a,b){return this.loadMedias([a],b)};this.ended= function(){return"ended"==this._player.getPlayerState()};this.type=function(){return"video"};this.controls=function(a){"undefined"==typeof this._controls&&(this._controls=!1);if(n(a))return this._controls;a?this._player.enableControls():this._player.disableControls();this._controls=a;return this};this.sources=function(a){if(n(a))return this._source;this._playlist=a};this.currentSource=function(b){if(n(b))return this._player.getSrc();""!==b&&(a.info("new source :",b),this._player.setSrc(b));return this}; this.show=function(){};this.source=function(a){if(n(a))return this._player.getSrc();this.currentSource(a);return this};this.remove=function(){};this.dispose=function(a){a()}})});p("mustang/com/stickyadstv/media/appleTV/AppleTVNativePlayer",["mod!com.stickyadstv.dom.appleTV.AppleTVNativePlayer"],function(d){new t("com.stickyadstv.media.appleTV.AppleTVNativePlayer");return d.extend(new function(){this.loadBestMedia=function(d,c,b,a,f,g,h){g=g||{};var e=S(g.videoSlotCanAutoPlay,!0);this.loadMedias(d, new function(){this.onSuccess=function(a){if(e)h.onSuccess(a)};this.onError=function(a){h.onError(a)}});if(!e)h.onSuccess({})};this.isVisible=function(){return"undefined"==typeof this._player||"undefined"==typeof this._player._player||this._player._player.constructor!=window.Player};this.backup=function(d){if("undefined"!=typeof this._backup)return d(this);this._backup={src:this._player.getSrc(),time:this._player.getCurrentTime(),controls:this._player.controls};d(this)};this.restore=function(d,c, b){if(1<this._playlist.length&&"undefined"!=typeof this.initListener||"undefined"===typeof this._backup||""==this._backup.src)return c();this._player.setSrcToTime(this._backup.src+" "+this._backup.time);this._backup.controls&&this._player.enableControls();"undefined"!=typeof this._player._player&&"undefined"!=typeof this._player._player.playbackState&&"end"==this._player._player.playbackState||D(function(){this._player.play()},1E3,this);delete this._backup;c()};this._onReady=function(d,c){d.call(c, this.currentSource())};this.controls=function(d){return n(d)?this._super():this._super(d)};this.quartile=function(){var d=this.currentTime();if(isNaN(d))return 1;var c=this.duration();if(isNaN(c))return 1;d=Math.min(d,c);return c?Math.ceil(4*Math.max(d,.01)/c):0}})});p("mustang/com/stickyadstv/media/Object",["mod!com.stickyadstv.dom.Object","mod!com.stickyadstv.utils.Timer"],function(d,e){new t("com.stickyadstv.media.Object");return d.extend(new function(){this.init=function(c,b,a,d){if(c)throw Error("Unexpected dom element"); this._super(c,ka({style:{display:"none"}},b));this._timer=new e({duration:1E3*(d||3600)});this._ended=!1;this._timer.on("complete",function(){this._ended=!0;this._dispatchEvent("ended")},this)};this.paused=function(){return this._timer.paused()};this.fullscreen=function(){};this.controls=function(){};this.creativeWidth=function(){return this._element.width};this.creativeHeight=function(){return this._element.height};this.canPlayType=function(c){return"maybe"};this.quartile=function(){return 1};this.ended= function(){return this._ended};this.error=function(){return null};this.loadBestMedia=function(c,b,a,d,e,h,k){this.loadMedia(c[0],k)};this.play=function(){this.show();this._timer.play();this._dispatchEvent("playing")};this.pause=function(){this._timer.pause();this._dispatchEvent("pause")};this.volume=function(){return 0};this.duration=function(){return Math.round(this._timer.duration()/1E3)};this.currentTime=function(){return Math.round(this._timer.time()/1E3)}})});p("mustang/com/stickyadstv/display/Slot", "mod!com.stickyadstv.dom.Element mod!com.stickyadstv.dom.extension.Slot mod!com.stickyadstv.media.Video mod!com.stickyadstv.media.appleTV.AppleTVNativePlayer mod!com.stickyadstv.media.IFreewheelPlayer mod!com.stickyadstv.utils.Browser".split(" "),function(d,e,c,b,a,f){new t("com.stickyadstv.display.Slot");return N.extend({factory:function(g,h){if(!g||g.slot)return g;if(f.isAppleTV()){g=d(g);var k=e(b);return new k(g.domElement())}if(h)return k=e(a),new k(g,h);g=d(g);k="video"==g.nodeName().toLowerCase()? e(c):e(d);return new k(g.domElement())}},{})});p("mustang/com/stickyadstv/utils/MediaFiles",[],function(){function d(){}new t("com.stickyadstv.utils.MediaFiles");d.prototype=[];d.prototype.isOneOrMoreFlashMediafile=function(){0<this.filter(function(d,c,b){return d.useFlash()}).length};return d});p("mustang/com/stickyadstv/utils/MediaFileManager",["mod!com.stickyadstv.utils.HedgehogUtils","mod!com.stickyadstv.utils.Browser","mod!com.stickyadstv.utils.MediaFiles"],function(d,e,c){function b(a,b){return(a= d.getExtensionFromUrl(a))?f[b]?-1==f[b].indexOf(a):!0:!1}var a=new t("com.stickyadstv.utils.MediaFileManager"),f={"web/chrome":"mov avi rpm wma wmv 3gp".split(" "),"web/firefox":"mov avi rpm wma wmv 3gp".split(" "),"web/ie":"mov avi rpm wma wmv 3gp webm ogg".split(" "),"web/safari":"mov avi rpm wma wmv 3gp webm ogg".split(" "),"mobile/chrome":"mov avi flv rpm wma wmv 3gp swf".split(" "),"mobile/firefox":"mov avi flv rpm wma wmv 3gp swf".split(" "),"mobile/safari":"mov avi flv rpm wma wmv 3gp webm ogg swf".split(" "), flash:["js","webm","3gp","ogg"],android:"mov avi flv rpm wma wmv 3gp swf".split(" "),ios:"mov avi flv rpm wma wmv 3gp swf".split(" "),tvos:"ogg ogv webm 3gp js swf flv jpeg png".split(" ")},g="application/javascript video/x-flv video/mp4 application/x-shockwave-flash video/webm video/x-ms-wmv video/ts video/mp2t".split(" "),h=["audio/mpeg","audio/aac"];return N.extend({isUrlCompatibleWith:b,filterMediaFiles:function(a){return"undefined"==typeof a?a:a=a.filter(function(c,d,f){return 0<=c.url().indexOf("/hedgehog.min.js")|| 0<=c.url().indexOf("/Hedgehog.swf")?1==a.length:c.type()&&("application/x-shockwave-flash"==c.type()||-1!=c.type().indexOf("flv"))&&!e.isFlashSupported()||e.isAppleTV()&&0==c.type().indexOf("application")||I.bool("isAudio",!1)&&-1==c.type().indexOf("audio")?!1:b(c.url(),e.getContext())})},sortMediaFiles:function(b,d){function f(b,c){function d(a){return null!==/^video\//.exec(a.type())}function e(a){return null!==/^application\//.exec(a.type())}function f(a,b,c){return a.type()==c?-1:b.type()==c? 1:0}if(b.apiFramework()&&"VPAID"==b.apiFramework()||c.apiFramework()&&"VPAID"==c.apiFramework())return"VPAID"==b.apiFramework()&&"VPAID"==c.apiFramework()?b.type()==c.type()?0:f(b,c,"application/javascript"):"VPAID"==b.apiFramework()?-1:1;if(d(b)||d(c))return d(b)&&d(c)?0:d(b)?-1:1;if(e(b)||e(c))return e(b)&&e(c)?b.type()==c.type()?0:f(b,c,"application/javascript"):e(b)?-1:1;a.warn("Unsortable mediafiles");return 0}function m(a,b){if(a.bitrate()==b.bitrate())return 0;if(a.bitrate()<B&&b.bitrate()< B){if(!(a.bitrate()>b.bitrate())&&a.bitrate()<b.bitrate())return 1}else if(a.bitrate()>B&&b.bitrate()>B){if(a.bitrate()>b.bitrate())return 1;a.bitrate();b.bitrate()}else if(a.bitrate()>B)return 1;return-1}function k(a,b){a=Math.abs(a.width()-A)+Math.abs(a.height()-y);b=Math.abs(b.width()-A)+Math.abs(b.height()-y);return a>b?1:a<b?-1:0}function l(a,b){a=a.type();b=b.type();return-1<g.indexOf(a)&&-1==g.indexOf(b)?-1:-1==g.indexOf(a)&&-1<g.indexOf(b)?1:0}function w(a,b){a=a.type();b=b.type();return-1< h.indexOf(a)&&-1==h.indexOf(b)?-1:-1==h.indexOf(a)&&-1<h.indexOf(b)?1:0}if("undefined"==typeof b)return b;e.getContext();var B=8*e.getBandwidth(),K=new c;if("undefined"!=typeof d&&d.playerSize&&-1!=d.playerSize.indexOf("x")){var A=d.playerSize.split("x")[0];var y=d.playerSize.split("x")[1];I.bool("isAudio",!1)||b.sort(k)}0<B&&b.sort(m);I.bool("isAudio",!1)?b.sort(w):(b.sort(f),b.sort(l));for(d=0;d<b.length;d++)K.push(b[d]);return K}},{})});p("mustang/com/stickyadstv/vpaid/decorator/CloseTimeOut", ["mod!com.stickyadstv.utils.Browser","mod!com.stickyadstv.vpaid.decorator.DisplayWrapper","mod!com.stickyadstv.vpaid.decorator.display.CloseTimeOutUI"],function(d,e,c){var b=new t("com.stickyadstv.vpaid.decorator.CloseTimeOut");return e.extend(new function(){this.init=function(a,c,d){this._super(c,null,null,d);this._container=a;this._updateTimeoutValue();this._logger=b};this._buildUI=function(){this._ui=new c(this._data.getData("label"))};this._clickThruHandler=function(a){this._timerEnd?(a.stopImmediatePropagation(), this.skipAd()):this._dispatchEvent("AdClickThru")};this._getID=function(){return"sticky-closetimeout"};this._updateTimeoutValue=function(){this._timeoutMS=this._data.getData("countDown");0===Math.round(this._timeoutMS/1E3)&&(this._timeoutMS*=1E3)};this._startedHandler=function(a){this._super(a);this._ui.hide();this._repeat=Ba(this._update,300,this);this._update()};this._pausedHandler=function(){this._update()};this._playingHandler=function(){this._update()};this._update=function(){0>=Math.round(this._timeoutMS/ 1E3-(this.adDuration()-this.adRemainingTime())||0)&&(this._timerEnd=!0,sa(this._repeat),this.refreshDisplay(),window.dispatchEvent(d.createEvent("resize")))};this.dispose=function(){this._super();sa(this._repeat);delete this._repeat};this.getLayout=function(){var a=ba(this._super());"undefined"!=typeof a.padding&&null==a.padding&&(a.padding=10/this._zoomLevel);"undefined"!=typeof a.width&&null==a.width&&(a.width=this._ui.getWidth());"undefined"!=typeof a.height&&null==a.height&&(a.height=this._ui.getHeight()); return a};this.refreshDisplay=function(){this._timerEnd&&(this._data.getData("label")&&this._slot&&(this._slot.css("border-radius",this._ui.getHeight()+"px"),this._slot.css("font-size",.4*this._ui.getHeight()+"px")),this._super())}})});p("mustang/com/stickyadstv/utils/VastUtils",[],function(){var d=new t("com.stickyadstv.utils.VastUtils");return N.extend({convertDuration:function(e){if(!e)return d.warn("empty Duration field."),0;var c=e.split(":").reverse();e=parseFloat(c[0].split(",").join(".")); if(isNaN(e))return d.warn("Corrupted duration data. Second field is not a number."),0;var b=parseInt(c[1],10);isNaN(b)&&(b=0,d.warn("Corrupted duration data. Minute field is not a number."));c=parseInt(c[2],10);isNaN(c)&&(c=0,d.warn("Corrupted duration data. Hour field is not a number."));return 3600*c+60*b+e},getAdVerificationsString:function(e){return e?JSON.stringify(e.map(function(c){return{vendor:c.vendor,verificationParameters:c.verificationParameters,urls:c.javaScriptResources.map(function(b){return b.url}).concat(c.executableResources.map(function(b){return b.url})), trackingEvents:c.trackingEvents}})):(d.warn("No AdVerifications found"),null)}},{})});p("mustang/com/stickyadstv/vpaid/decorator/SkipButton",["mod!com.stickyadstv.vpaid.decorator.display.SkipButtonUI","mod!com.stickyadstv.xml.XmlNode","mod!com.stickyadstv.utils.Browser","mod!com.stickyadstv.vpaid.decorator.CloseTimeOut","mod!com.stickyadstv.utils.VastUtils"],function(d,e,c,b,a){var f=new t("com.stickyadstv.vpaid.decorator.SkipButton");return b.extend(new function(){this.init=function(a,b,c){this._super(a, b,c);this._container=a;this._logger=f};this._createAd=function(a,b,c){this._super(a,b,c);"undefined"!=typeof this._data.getData("skipOffset")&&this.setSkipOffset(this._data.getData("skipOffset"))};this._getID=function(){return"sticky-skipbutton"};this._update=function(){var a=this.adRemainingTime();0<a&&(a=Math.round(this._timeoutMS/1E3-(this.adDuration()-a)||0),0>=a?(this._timerEnd=!0,sa(this._repeat),this._ui.displayRemaining(null),window.dispatchEvent(c.createEvent("resize")),this._trackSkipButtonDisplayedOnce()): (this._ui.displayRemaining(a),window.dispatchEvent(c.createEvent("resize"))))};this._buildUI=function(){this._ui=new d(this._label)};this._startedHandler=function(a){this._super(a);this.on("AdDurationChange",this._durationChangeHandler,this)};this.dispose=function(){this._super();this.off("AdDurationChange",this._durationChangeHandler,this)};this.setSkipOffset=function(b){b=b.toString();b.indexOf("%")==b.length-1?this.setSkipOffsetPercent(parseInt(b.substr(0,b.length-1),10)):this._data.setData("countDown", a.convertDuration(b));this._updateTimeoutValue()};this.setSkipOffsetPercent=function(a){var b=this.adDuration();0<b&&this._data.setData("countDown",Math.round(a/100*b));this._updateTimeoutValue()};this._clickThruHandler=function(a){this._timerEnd&&this._trackSkipTrackingOnce();this._super(a)};this._durationChangeHandler=function(a){this._data.getData("skipOffset")&&this.setSkipOffset(this._data.getData("skipOffset"))};this._trackSkipTrackingOnce=function(){if("undefined"==typeof this._trackedSkipTracking)for(var a= this._data.getData("skipTrackingArray"),b=0;b<a.length;b++)c.touch(a[b],null);this._trackedSkipTracking=!0};this._trackSkipButtonDisplayedOnce=function(){if("undefined"==typeof this._trackedSkipButtonDisplayed)for(var a=this._data.getData("skipButtonDisplayArray"),b=0;b<a.length;b++)c.touch(a[b],null);this._trackedSkipButtonDisplayed=!0}})});p("mustang/com/stickyadstv/vpaid/decorator/display/ExplayButtonUI",["mod!com.stickyadstv.vpaid.decorator.display.AbstractDecoratorUI"],function(d){new t("com.stickyadstv.vpaid.decorator.display.ExplayButtonUI"); return d.extend(new function(){this.init=function(d){this._logo=d;this._super()};this._setStyle=function(){this._style={};this._style.cursor="pointer"};this.display=function(){this.show().html("<img src="+this._logo+"/>").fire("resize")}})});p("mustang/com/stickyadstv/vpaid/decorator/ExplayButton",["mod!com.stickyadstv.vpaid.decorator.DisplayWrapper","mod!com.stickyadstv.vpaid.decorator.display.ExplayButtonUI"],function(d,e){var c=new t("com.stickyadstv.vpaid.decorator.ExplayButton");return d.extend(new function(){this.init= function(b,a,d){this._super(a,null,null,d);this._container=b;this._isClicked=!1;this._logger=c};this._buildUI=function(){this._ui=new e(this._data.getData("logo"))};this._clickThruHandler=function(b){b.stopImmediatePropagation();b.preventDefault();this._isClicked=!0;this._ui.hide()};this._getID=function(){return"sticky-explaybutton"};this._startedHandler=function(b){this._super(b);this._ui.hide();this._repeat=Ba(this._update,300,this);this._update.call(this)};this._update=function(){isNaN(this._data.getData("displayAt")&& !this._isClicked)||0<=this.adRemainingTime()&&this._data.getData("displayAt")>=this.adRemainingTime()&&!this._isClicked?this._ui.show():c.info("Unexpected _data or _isClicked or adRemainingTime value, unable to show UI");!isNaN(this._data.getData("stopAt"))&&0<=this.adRemainingTime()&&this._data.getData("stopAt")>=this.adRemainingTime()&&!this._isClicked&&this.skipAd()};this._pausedHandler=function(){this._paused=!0;this._update.call(this)};this._playingHandler=function(){this._paused=!1;this._update.call(this)}; this.dispose=function(){this._super();sa(this._repeat)}})});p("mustang/com/stickyadstv/vast/decorator/CustomTracking",["mod!com.stickyadstv.dom.Element"],function(d){new t("com.stickyadstv.vast.decorator.CustomTracking");return N.extend(new function(){this.init=function(d){this._extension=d.children("trackingevents").first().children("tracking")};this.findCustomTrackings=function(d){if(d)return this._extension.filter(function(c){return c.attr("event")==d}).toArray();throw Error("com.stickyadstv.vast.decorator.CustomTracking: function _findCustomTracking() require a parameter."); };this.parseCutsomTrackingsToAdditionalScriptXml=function(){var e="";this._extension.each(function(c){if(c.text().match(/(<script).*(><\/script>)/)){var b=(new d("div")).html(c.text()).firstChild().attr("src");e+='<Script trigger="'+c.attr("event")+'"><![CDATA['+b+"]]\x3e\x3c/Script>"}});return e}})});p("mustang/com/stickyadstv/utils/network",["mod!com.stickyadstv.xml.XmlNode","mod!com.stickyadstv.utils.Browser","mod!com.stickyadstv.utils.URLUtils","mod!com.stickyadstv.vast.VastError"],function(d, e,c,b){new t("com.stickyadstv.utils.network");var a=new function(){this.getXml=function(a,g,h,k){n(k)&&(k=h,h={});n(k)&&(k=g,g=null);c.isStickyAdServer(a)&&(a=ea(a,g,!0));h.headers=C({Accept:"application/xml, text/xml"},h.headers||{});e.ajax(a,h,new function(){this.onSuccess=function(a){try{a=new d(a)}catch(q){q=new b(q.message,100);k.onError(q);return}k.onSuccess({xml:a})};this.onError=function(a){k.onError(a)}})};this.track=function(a,b){e.touch(a,b)};this.trackEach=function(a,b){b=b||{};var c; oa(a,function(a,b){e.touch(a,new function(){this.onSuccess=function(a){b()};this.onError=function(a){c=a;b()}})},function(){if(c){if(b.onError)b.onError(c)}else if(b.onSuccess)b.onSuccess({uriList:a})})};this.expandUrl=function(b,c){function d(b){var c=f(b);if(!n(c))return c;switch(b.toLowerCase()){case "timestamp":return ca();case "random":return ma(0,1E3);case "cb":return a.random();case "cachebusting":return a.random();case "refurl":return e.location();case "errorcode":return 900;case "contentplayhead":case "mediaplayhead":return I._data.mediaplayhead; case "adplayhead":return I._data.adplayhead;case "asseturi":return I._data.asseturi}}if(!b)return b;var f=x(c)?c:function(a){var b=c&&a in c?c[a]:void 0;"undefined"==typeof b&&(a=a.toLowerCase(),b=c&&a in c?c[a]:void 0);return b};b=b.replace(/\[([a-zA-Z0-9]+)\]/g,function(a,b,c,e){a=d(b);return n(a)?"["+b+"]":encodeURIComponent(a)});if(e.isFlashComponent()){var g=Math.floor(99999*Math.random()+1E4)+(new Date).getTime();b=ea(b,{cb:g},!0)}return b};this.random=function(){return ma(0,4294967295).toString(16)}}; return N.extend(a,{})});p("mustang/com/stickyadstv/vpaid/iab/IVpaid",["mod!com.stickyadstv.event.EventDispatcher"],function(d){new t("com.stickyadstv.iab.IVpaid");var e=C({AD_VAST_LOADED:"AdVastLoaded",AD_PRE_LOADED:"AdPreLoaded",AD_DISPOSE:"adDispose",EXTERNAL_AD_SKIPPED:"extAdSkipped",AD_SLOT_COMPLETE:"adSlotComplete",VIDEO_ENTER_FULLSCREEN:"fullscreen",VIDEO_EXIT_FULLSCREEN:"exitFullscreen",SALES_OPPORTUNITY:"salesOpportunity",OPEN_CONTAINER:"OpenContainer"},{AD_LOADED:"AdLoaded",AD_STARTED:"AdStarted", AD_STOPPED:"AdStopped",AD_SKIPPED:"AdSkipped",AD_SKIPPABLE_STATE_CHANGE:"AdSkippableStateChange",AD_SIZE_CHANGE:"AdSizeChange",AD_LINEAR_CHANGE:"AdLinearChange",AD_DURATION_CHANGE:"AdDurationChange",AD_REMAINING_TIME_CHANGE:"AdRemainingTimeChange",AD_EXPANDED_CHANGE:"AdExpandedChange",AD_VOLUME_CHANGE:"AdVolumeChange",AD_IMPRESSION:"AdImpression",AD_VIDEO_START:"AdVideoStart",AD_VIDEO_FIRST_QUARTILE:"AdVideoFirstQuartile",AD_VIDEO_MIDPOINT:"AdVideoMidpoint",AD_VIDEO_THIRD_QUARTILE:"AdVideoThirdQuartile", AD_VIDEO_COMPLETE:"AdVideoComplete",AD_CLICK_THRU:"AdClickThru",AD_INTERACTION:"AdInteraction",AD_USER_ACCEPT_INVITATION:"AdUserAcceptInvitation",AD_USER_MINIMIZE:"AdUserMinimize",AD_USER_CLOSE:"AdUserClose",AD_PAUSED:"AdPaused",AD_PLAYING:"AdPlaying",AD_LOG:"AdLog",AD_ERROR:"AdError"});return d.extend({events:e},new function(){this.init=function(){this._super()};this.initAd=function(c,b,a,d,e,h){};this.subscribe=function(c,b,a){};this.unsubscribe=function(c,b){};this.resizeAd=function(c,b,a){};this.startAd= function(){};this.pauseAd=function(){};this.stopAd=function(){};this.resumeAd=function(){};this.expandAd=function(){};this.collapseAd=function(){};this.setAdVolume=function(c){};this.getAdVolume=function(){};this.getAdExpanded=function(){};this.getAdLinear=function(){};this.getAdRemainingTime=function(){};this.getAdSkippableState=function(){};this.getAdIcons=function(){};this.getAdCompanions=function(){};this.getAdWidth=function(){};this.getAdHeight=function(){};this.skipAd=function(){};this.getAdDuration= function(){};this.dispose=function(){};this.handshakeVersion=function(c){return"2.0"}})});p("mustang/com/stickyadstv/vpaid/decorator/AdditionalScripts","mod!com.stickyadstv.vpaid.Wrapper mod!com.stickyadstv.utils.Browser mod!com.stickyadstv.utils.network mod!com.stickyadstv.vpaid.iab.IVpaid mod!com.stickyadstv.utils.Timer mod!com.stickyadstv.event.StickyEvent".split(" "),function(d,e,c,b,a,f){var g=new t("com.stickyadstv.vpaid.decorator.AdditionalScripts");return d.extend(new function(){this.init= function(c,d,e){this._super(d,{},null);this.scriptsToLoad=0;this._container=c;this._zones=e;this._vpaidAdditionalScripts=[];this.scriptArrays={};this.scriptArrays.asap=[];this.scriptArrays.impression=[];this.scriptArrays.start=[];this.scriptArrays.firstQuartile=[];this.scriptArrays.midpoint=[];this.scriptArrays.thirdQuartile=[];this.scriptArrays.complete=[];this.scriptArrays.click=[];this.scriptArrays["5seconds"]=[];this.pixelArrays={};this.pixelArrays.asap=[];this._vpaidCalls=[];this._vpaidEventsReceived= [];this._eventReceived=[];for(c=0;c<e.length;c++)this.loadScripts(e[c]);this.on("AdImpression",this.adEventHandler,this);this.on("AdVideoStart",this.adEventHandler,this);this.on("AdVideoFirstQuartile",this.adEventHandler,this);this.on("AdVideoMidpoint",this.adEventHandler,this);this.on("AdVideoThirdQuartile",this.adEventHandler,this);this.on("AdVideoComplete",this.adEventHandler,this);this.on("AdClickThru",this.adEventHandler,this);for(var h in b.events)this.on(b.events[h],function(a){this.notifyVpaids(a)}, this);this._timer=new a({duration:5E3});this._timer.on("complete",function(){this.adEventHandler(new f("5seconds"));this.notifyVpaids(new f("5seconds"))},this);this.on("AdStarted",this._playTimer,this);this.on("AdPlaying",this._playTimer,this);this.on("AdPaused",this._pauseTimer,this);this._logger=g};this.notifyVpaids=function(a){this._vpaidEventsReceived.push(a);for(var b=0;b<this._vpaidAdditionalScripts.length;b++)"function"==typeof this._vpaidAdditionalScripts[b].vpaid.notifyEvent&&this._vpaidAdditionalScripts[b].vpaid.notifyEvent(a)}; this.setContainer=function(a){this._container=a};this.setFactory=function(a){this._factory=a;return this};this.loadScripts=function(a){this.scriptsToLoad+=1;var b="https://ads.stickyadstv.com/additional-scripts/?zoneId=[zoneId]".replace("[zoneId]",a);a=e.locationToSend();a.loc&&(b=b+"&loc="+encodeURIComponent(a.loc));null!=e.getGdprApplies()&&null!=e.getGdprConsentString()&&(b=b+"&gdpr="+Number(e.getGdprApplies())+"&gdpr_consent="+e.getGdprConsentString());a=e.getGPPValues();if(""!=a.gpp_string|| ""!=a.gpp_sid)b=b+"&gpp_string="+a.gpp_string+"&gpp_sid="+a.gpp_sid;c.getXml(b,aa(new function(){this.onSuccess=function(a){try{--this.scriptsToLoad;var c=a.xml;"Scripts"==c.nodeName()?(this.populateScripts(c.children("Script")),this.dispatchPixels(c.children("Pixel"))):g.debug('Xml format error - can\'t find "Scripts" tag.')}catch(v){g.debug("Additional script "+b+" falls:",v)}};this.onError=function(a){--this.scriptsToLoad;g.debug("Additional script "+b+" falls:",a)}},this))};this.populateScripts= function(a){a.each(function(a){if("Script"==a.nodeName()){var b=this.scriptArrays[a.attr("trigger")];a=a.text();b.push(a)}}.bind(this));if(0>=this.scriptsToLoad)for(this.runVpaids(),this.runScriptsForTrigger("asap"),a=0;a<this._eventReceived.length;a++)this.runScriptsForTrigger(this._eventReceived[a])};this.dispatchPixels=function(a){a.each(function(a){if("Pixel"==a.nodeName()){var b=this.pixelArrays[a.attr("trigger")];a=a.text();b.push(a)}}.bind(this));a=this.pixelArrays.asap;for(var b in a)a.hasOwnProperty(b)&& e.touch(a[b],new function(){this.onSuccess=function(){g.debug("Additional pixel dispatched.")};this.onError=function(a){g.debug("Additional pixel dispatching failed.")}})};this.runVpaids=function(){for(var a="asap impression start firstQuartile midpoint thirdQuartile complete 5seconds click".split(" "),b=0;b<a.length;b++){var c=a[b],d=this.scriptArrays[c],f;for(f in d)if(d.hasOwnProperty(f)){var g=d[f],l=e.extractGetParamsFromUrl(g);l.apiFramework&&"VPAID"==l.apiFramework&&this._loadScript(g,c)}}}; this.runScriptsForTrigger=function(a){a=this.scriptArrays[a];for(var b in a)if(a.hasOwnProperty(b)){var c=a[b];"VPAID"!=e.extractGetParamsFromUrl(c).apiFramework&&(e.injectJS(c,!1)?g.debug("Additional script injected: "+c):g.debug("Additional script injection fall: "+c))}};this._loadScript=function(a,b){e.injectInIFrame(a,{onSuccess:function(c){"function"==typeof c.contentWindow.getVPAIDAd&&(c={vpaid:c.contentWindow.getVPAIDAd(),url:a,trigger:b},this._recallVpaidFunctionAndEvents(c),this._vpaidAdditionalScripts.push(c))}.bind(this), onError:function(b){g.warn("additional script "+a+"can't be loaded")}.bind(this)})};this._recallVpaidFunctionAndEvents=function(a){for(var b=0;b<this._vpaidCalls.length;b++){var c=this._vpaidCalls[b];if("initAd"==c.functionName){var d="string"==typeof c.args[5]?{data:c.args[5]}:c.args[5];d=C({slot:this._container,url:a.url,trigger:a.trigger,loader:Ma,additionalScripts:this.scriptArrays},d);a.vpaid.initAd(c.args[0],c.args[1],c.args[2],c.args[3],c.args[4],d)}else a.vpaid[c.functionName].apply(a.vpaid, c.args)}for(b=0;b<this._vpaidEventsReceived.length;b++)"function"==typeof a.vpaid.notifyEvent&&a.vpaid.notifyEvent(this._vpaidEventsReceived[b])};this.adEventHandler=function(a){var b="";"AdImpression"==a.type?b="impression":"AdVideoStart"==a.type?b="start":"AdVideoFirstQuartile"==a.type?b="firstQuartile":"AdVideoMidpoint"==a.type?b="midpoint":"AdVideoThirdQuartile"==a.type?b="thirdQuartile":"AdVideoComplete"==a.type?b="complete":"AdClickThru"==a.type?b="click":"5seconds"==a.type?b="5seconds":g.info("Unexpected event.type value"); b&&this._eventReceived.push(b);this.runScriptsForTrigger(b)};this.initAd=function(a,b,c,d,e,f){this._forwardVpaidCall("initAd",arguments);"function"==typeof this._super&&this._super(a,b,c,d,e,f)};this.resizeAd=function(a,b,c){this._forwardVpaidCall("resizeAd",arguments);"function"==typeof this._super&&this._super(a,b,c)};this.startAd=function(){this._forwardVpaidCall("startAd",arguments);"function"==typeof this._super&&this._super()};this.pauseAd=function(){this._forwardVpaidCall("pauseAd",arguments); "function"==typeof this._super&&this._super()};this.stopAd=function(){this._forwardVpaidCall("stopAd",arguments);"function"==typeof this._super&&this._super()};this.resumeAd=function(){this._forwardVpaidCall("resumeAd",arguments);"function"==typeof this._super&&this._super()};this.expandAd=function(){this._forwardVpaidCall("expandAd",arguments);"function"==typeof this._super&&this._super()};this.collapseAd=function(){this._forwardVpaidCall("collapseAd",arguments);"function"==typeof this._super&&this._super()}; this.skipAd=function(){this._forwardVpaidCall("skipAd",arguments);"function"==typeof this._super&&this._super()};this._forwardVpaidCall=function(a,b){this._vpaidCalls.push({functionName:a,args:b});try{for(var c=0;c<this._vpaidAdditionalScripts.length;c++){var d=this._vpaidAdditionalScripts[c].vpaid;if("function"==typeof d[a])if("initAd"==a){var e="string"==typeof b[5]?{data:b[5]}:b[5];e=C({slot:this._container,url:this._vpaidAdditionalScripts[c].url,trigger:this._vpaidAdditionalScripts[c].trigger, loader:Ma,additionalScripts:this.scriptArrays},e);d.initAd(b[0],b[1],b[2],b[3],b[4],e)}else d[a].apply(d,b)}}catch(F){g.warn("Error while calling '"+a+"' on ad verification file.")}};this.dispose=function(){for(var a=0;a<this._vpaidAdditionalScripts.length;a++){var b=this._vpaidAdditionalScripts[a].vpaid;"function"==typeof b.dispose&&b.dispose()}"function"==typeof this._super&&this._super()};this._pauseTimer=function(a){this._timer&&this._timer.pause()};this._playTimer=function(a){this._timer&&this._timer.play()}})}); p("mustang/com/stickyadstv/vpaid/decorator/CustomTracking","mod!com.stickyadstv.vpaid.Wrapper mod!com.stickyadstv.vast.decorator.CustomTracking mod!com.stickyadstv.utils.network mod!com.stickyadstv.utils.Timer mod!com.stickyadstv.xml.XmlNode mod!com.stickyadstv.dom.Element mod!com.stickyadstv.utils.Browser mod!com.stickyadstv.vpaid.decorator.AdditionalScripts".split(" "),function(d,e,c,b,a,f,g,h){var k=new t("com.stickyadstv.vpaid.decorator.CustomTracking");return d.extend(new function(){this.init= function(c,d,f){this._additionalScripts=new h(c,d,[]);this._super(function(a){a.onSuccess({ad:this._additionalScripts})},{},null);this._container=c;this._data=new e(f);c=[["AdImpression","impression"],["AdVideoFirstQuartile","firstQuartile"],["AdVideoMidpoint","midpoint"],["AdVideoThirdQuartile","thirdQuartile"],["AdVideoComplete","complete"],["AdClickThru","click"]];if(0!=this._data.findCustomTrackings("start").length||0!=this._data.findCustomTrackings("5seconds").length)this.on("AdVideoStart",this._track, [this,this._data.findCustomTrackings("start")]);for(d=0;d<c.length;d++)if(f=this._data.findCustomTrackings(c[d][1]))this.on(c[d][0],this._track,[this,f]);0!=this._data.findCustomTrackings("5seconds").length&&(this._timer=new b({duration:5E3}),this._timer.on("complete",function(){this._track(this._data.findCustomTrackings("5seconds"),null)},this),this.on("AdPlaying",this._playTimer,this),this.on("AdPaused",this._pauseTimer,this));c=(new a("<Scripts>"+this._data.parseCutsomTrackingsToAdditionalScriptXml()+ "\x3c/Scripts>")).children();this._additionalScripts.populateScripts(c);this._logger=k};this._track=function(a,b){b&&"AdVideoStart"==b.type&&this._playTimer(null);if(a&&0<a.length)for(b=0;b<a.length;b++){var d=a[b].text();d.match(/(<script).*(><\/script>)/)||c.track(d,null)}};this._pauseTimer=function(a){this._timer&&this._timer.pause()};this._playTimer=function(a){this._timer&&this._timer.play()}})});p("mustang/com/stickyadstv/vpaid/decorator/display/SoundButtonUI",["mod!com.stickyadstv.vpaid.decorator.display.SVGUI"], function(d){new t("com.stickyadstv.vpaid.decorator.display.SoundButtonUI");return d.extend(new function(){this.init=function(){this._super()};this.getInnerSVG=function(){return"on"==this._soundState?'<circle fill="#FFF" cx="15" cy="15" r="15"/><g fill="#52565F"><path d="M14.523 8.365a.842.842 0 0 0-.888.1l-3.969 3.176H7.441a.84.84 0 0 0-.84.84v5.039c0 .465.375.84.84.84h2.225l3.969 3.177a.844.844 0 0 0 .888.1.843.843 0 0 0 .477-.758V9.121a.84.84 0 0 0-.477-.756zM18.807 12.027a.841.841 0 0 0-1.187 1.19c.479.477.74 1.11.74 1.783 0 .674-.264 1.307-.738 1.781a.842.842 0 0 0-.002 1.188.842.842 0 0 0 1.19.002A4.174 4.174 0 0 0 20.04 15a4.179 4.179 0 0 0-1.233-2.973z"/><path d="M21.182 9.65a.842.842 0 0 0-1.189.002.842.842 0 0 0 .002 1.188c1.113 1.112 1.727 2.59 1.727 4.16s-.611 3.046-1.724 4.156a.84.84 0 1 0 1.189 1.188A7.51 7.51 0 0 0 23.4 15a7.528 7.528 0 0 0-2.218-5.35z"/></g>': '<circle fill="#FFF" cx="15" cy="15" r="15"/><g fill="#52565F"><path d="M14.523 8.365a.842.842 0 0 0-.888.1l-3.969 3.176H7.441a.84.84 0 0 0-.84.84v5.039c0 .465.375.84.84.84h2.225l3.969 3.177a.844.844 0 0 0 .888.1.843.843 0 0 0 .477-.758V9.121a.84.84 0 0 0-.477-.756zM21.227 15l1.926-1.926a.84.84 0 0 0-1.188-1.188l-1.926 1.927-1.926-1.927a.842.842 0 0 0-1.188 0 .842.842 0 0 0 0 1.188L18.852 15l-1.926 1.926a.84.84 0 1 0 1.189 1.188l1.926-1.927 1.926 1.927a.843.843 0 0 0 1.189 0 .84.84 0 0 0 0-1.188L21.227 15z"/></g>'}; this.updateImgBySoundState=function(d){this._soundState=d;this.display()};this.getClass=function(){return"freewheel-soundbutton"}})});p("mustang/com/stickyadstv/vpaid/decorator/SoundButton",["mod!com.stickyadstv.vpaid.decorator.DisplayWrapper","mod!com.stickyadstv.vpaid.decorator.display.SoundButtonUI"],function(d,e){var c=new t("com.stickyadstv.vpaid.decorator.SoundButton");return d.extend(new function(){this.init=function(b,a,d){this._super(a,null,null,d);this._container=b;this.on("AdVolumeChange", this._volumeChanged,this);this._logger=c};this._volumeChanged=function(b){b=b.detail&&0==b.detail.volume||0==this.adVolume();I._data.muteAd=b;this._updateUiByBool(b)};this._buildUI=function(){this._ui=new e};this._clickThruHandler=function(b){b.stopImmediatePropagation();b.preventDefault();this.mute(!this.mute())};this.mute=function(b){var a=this.adVolume();if(void 0==b)return 0==a?!0:!1;b?(this._adVolumeBeforeMute=a&&0<a?a:1,this.adVolume(0)):this._adVolumeBeforeMute&&this.adVolume(this._adVolumeBeforeMute)}; this._startedHandler=function(b){this._super(b);b=this.adVolume();b="true"===this._data.getData("defaultMute")||!0===this._data.getData("defaultMute")||0==b;this.mute(b);this._updateUiByBool(b)};this._updateUiByBool=function(b){this._ui&&this._ui.updateImgBySoundState(b?"off":"on")};this._getID=function(){return"sticky-soundbutton"};this.getLayout=function(){var b=ba(this._super());"undefined"!=typeof b.padding&&null==b.padding&&(b.padding=10/this._zoomLevel);"undefined"!=typeof b.width&&null==b.width&& (b.width=this._ui.getWidth());"undefined"!=typeof b.height&&null==b.height&&(b.height=this._ui.getHeight());return b}})});p("mustang/com/stickyadstv/vpaid/decorator/display/ButtonUI",["mod!com.stickyadstv.dom.Element"],function(d){new t("com.stickyadstv.vpaid.decorator.display.ButtonUI");return d.extend(new function(){this.init=function(d){this._super("img",{style:{cursor:"pointer","-webkit-tap-highlight-color":"rgba(0, 0, 0, 0)"}},null);this.attr("src",d)}})});p("mustang/com/stickyadstv/vast/decorator/ButtonData", [],function(){new t("com.stickyadstv.vast.decorator.ButtonData");return N.extend(new function(){this.init=function(d){this._extension=d};this.layout=function(){return this._extension.children("layout").text()};this.logo=function(){return this._extension.children("logo").text()};this.click=function(){var d=this._extension.children("click").text(),e=d;try{e=/{custom:type=(.*),url=(.*)}/g.exec(d)[2]}catch(c){}0!=e.indexOf("http")&&(e="http://"+e);return e}})});p("mustang/com/stickyadstv/vpaid/decorator/Button", ["mod!com.stickyadstv.vpaid.Wrapper","mod!com.stickyadstv.vpaid.decorator.display.ButtonUI","mod!com.stickyadstv.vast.decorator.ButtonData","mod!com.stickyadstv.utils.Browser"],function(d,e,c,b){var a=new t("com.stickyadstv.vpaid.decorator.Button");return d.extend(new function(){this.init=function(b,d,e){this._super(d,null,null);this._container=b;this._data=new c(e);this.on("AdStarted",this._startedHandler,this);this._dragging=!1;this._logger=a};this._getButton=function(){this._data.layout();return this._button= new e(this._data.logo())};this._clickThruHandler=function(a){this._dragging?this._dragging=!1:(a.stopImmediatePropagation(),a.preventDefault(),b.open(this._data.click()))};this._touchMoveHandler=function(a){this._dragging=!0};this._startedHandler=function(a){function c(a){this.off(["AdStopped","AdError","AdVideoComplete"],c,this);this._slot&&(this._slot.remove(),this._slot=null)}var d=this._getButton();d.show();if(a.target.adLinear()){this._slot=this._container.slot(this._data.layout(),"sticky-button-"+ ma(0,4294967295).toString(16),d);if(b.isMobile())this._slot.on("touchend",this._clickThruHandler,this),this._slot.on("touchmove",this._touchMoveHandler,this);else this._slot.on("click",this._clickThruHandler,this);this.on("AdStopped",c,this);this.on("AdError",c,this);this.on("AdVideoComplete",c,this)}}})});p("mustang/com/stickyadstv/vpaid/viewability/openVV/OpenVVTracker",["mod!com.stickyadstv.vpaid.viewability.openVV.OpenVVTools","mod!com.stickyadstv.utils.network"],function(d,e){var c=new t("com.stickyadstv.vpaid.viewability.openVV.OpenVVTracker"); return N.extend(new function(){this.init=function(b){this.player=b;this.trackingUrls=[];this.pauseStartTime=this.visibleFrom=0;this.viewabilitySent=!1;this.checkLoopTimer;this.maxPercentViewable=0;this.hasBeenFocused=!1;this.nonViewableTimer;this.adStarted=this.openVVReady=!1;this.measureFrom=0};this.registerUrl=function(b){this.trackingUrls.push(b)};this.checkLoop=function(){if(!this.viewabilitySent){var b=!1;this.adStarted=!0;var a=ca(),e=d.checkViewability(this.player);if(-1!=e.clientHeight||-1!= e.clientWidth||window.location!==window.parent.location)c.debug("viewability : "+e.percentViewable+"% ; "+(e.focus?"focused":"no focus")+" ; "+e.viewabilityState),e.percentViewable>this.maxPercentViewable&&(this.maxPercentViewable=e.percentViewable),this.hasBeenFocused=this.hasBeenFocused||e.focus,this.openVVReady=!0,"not_ready"==e.viewabilityState?this.openVVReady=!1:"unmeasurable"==e.viewabilityState?-1!==e.percentViewable?(c.debug("Send unmeasureable impression due to technical incompatibility"), this.sendUnmeasurableViewability(),b=!0):(0===this.measureFrom&&(this.measureFrom=a),2E3<=a-this.measureFrom&&(c.debug("Send unmeasureable impression, due to percentage is -1"),this.sendUnmeasurableViewability(),b=!0)):"unviewable"==e.viewabilityState?this.visibleFrom=0:"viewable"==e.viewabilityState?(0==this.visibleFrom&&(this.visibleFrom=a),0<this.pauseStartTime&&(e=a-this.pauseStartTime,this.visibleFrom+=e,c.debug("Viewability event : Ad RESUMES. pause time : "+e),this.pauseStartTime=0),2E3<=a- this.visibleFrom&&(this.sendViewableImpression(),b=!0)):c.info("Unexpected viewabilityCheck.viewabilityState value"),b||(R(this.checkLoopTimer),this.checkLoopTimer=D(u(this.checkLoop,this),400))}};this.pauseCheckLoop=function(){c.debug("Viewability event : Ad is PAUSED");this.pauseStartTime=ca();R(this.checkLoopTimer)};this.sendNonViewableBeforeEnd=function(){this.openVVReady&&0==this.visibleFrom&&this.sendNonViewableImpression()};this.sendNonViewableImpression=function(){c.debug("Viewability event : UNVIEWABLE ! with "+ this.maxPercentViewable+"% , focus : "+this.hasBeenFocused);this.sendTracking("unviewable",this.maxPercentViewable,this.hasBeenFocused)};this.sendViewableImpression=function(){c.debug("Viewability event : VIEWABLE !with "+this.maxPercentViewable+"% , focus : "+this.hasBeenFocused);this.sendTracking("viewable",this.maxPercentViewable,this.hasBeenFocused)};this.sendUnmeasurableViewability=function(){c.debug("Viewability event : UNMEASURABLE !");this.sendTracking("unmeasurable")};this.sendTracking=function(b, a,d){if(0==this.trackingUrls.length)c.warn("StickyViewability doesn't have tracking url set.");else{this.viewabilitySent=!0;for(var f=0;f<this.trackingUrls.length;f++){var h=this.trackingUrls[f];-1!=h.indexOf("[viewabilityState]")&&(h=h.replace("[viewabilityState]",b));-1!=h.indexOf("[percent]")&&(h=h.replace("[percent]",a));-1!=h.indexOf("[focus]")&&(h=h.replace("[focus]",d));e.track(h,null)}}};this.adStartedHandler=function(b){this.checkLoop()};this.adStoppedHandler=function(b){!this.viewabilitySent&& this.adStarted&&(this.openVVReady?this.sendNonViewableImpression():this.sendUnmeasurableViewability())};this.adVideoStartHandler=function(b){this.checkLoop()};this.adVideoCompleteHandler=function(b){!this.viewabilitySent&&this.adStarted&&(this.openVVReady?this.sendNonViewableImpression():this.sendUnmeasurableViewability())};this.adPausedHandler=function(b){this.pauseCheckLoop()};this.adPlayingHandler=function(b){this.checkLoop()};this.registerEvents=function(b){b.on("AdStarted",this.adStartedHandler, this);b.on("AdStopped",this.adStoppedHandler,this);b.on("AdVideoStart",this.adVideoStartHandler,this);b.on("AdVideoComplete",this.adVideoCompleteHandler,this);b.on("AdPaused",this.adPausedHandler,this);b.on("AdPlaying",this.adPlayingHandler,this)};this.resizeAd=function(b,a,c){};this.setAdRemainingTime=function(b){2E3<b&&(R(this.nonViewableTimer),this.nonViewableTimer=D(u(this.sendNonViewableBeforeEnd,this),b-2E3))}})});p("mustang/com/stickyadstv/vpaid/viewability/meetrics/MeetricsTrackerData",[], function(){new t("com.stickyadstv.vpaid.viewability.meetrics.MeetricsTrackerData");return N.extend(new function(){this.init=function(d){this._extension=d};this.projectId=function(){return this._extension.children("ProjectID").text()};this.adUnitId=function(){return this._extension.children("AdUnitID").text()};this.adPlacement=function(){return this._extension.children("AdPlacement").text()};this.zoneId=function(){return this._extension.children("ZoneID").text()};this.creativeId=function(){return this._extension.children("CreativeID").text()}})}); p("mustang/com/stickyadstv/vpaid/viewability/meetrics/MeetricsTracker",["mod!com.stickyadstv.vpaid.Wrapper","mod!com.stickyadstv.utils.network","mod!com.stickyadstv.vpaid.viewability.meetrics.MeetricsTrackerData"],function(d,e,c){return d.extend(new function(){var b=new t("com.stickyadstv.vpaid.viewability.meetrics.MeetricsTracker"),a,d,g;this.init=function(b,e,f){this._super(e,null,null);d=b.width();g=b.height();a=new c(f);this.injectMeetricsJS();this.on("AdStarted",u(this.adStartedHandler,this)); this.on("AdStopped",u(this.adStoppedHandler,this));this.on("AdPaused",u(this.adPausedHandler,this));this.on("AdPlaying",u(this.adPlayingHandler,this));this.on("AdClickThru",u(this.adClickThruHandler,this));this.on("AdVolumeChange",u(this.adVolumeChangeHandler,this));this.on("AdExpandedChange",u(this.adExpandedChangeHandler,this))};this.getScriptUrl=function(){return"//s315.meetrics.net/bb-mx/prime/mtrcs_"+a.projectId()+".js?pjid="+a.projectId()+"&size=VPAID&realsize="+d+"x"+g+"&realvmode=normal&realbitrate=0&place="+ a.adPlacement()+"&cid="+a.creativeId()+"&zone="+a.zoneId()+"&adUnit="+a.adUnitId()+"&tm="+e.random()};this.injectMeetricsJS=function(){var a=document.createElement("script");a.async="async";a.src=this.getScriptUrl();document.getElementsByTagName("head")[0].appendChild(a)};this.callMtrcsTrigger=function(c,d){b.debug("Meetrics event : "+c);"undefined"==typeof d&&(d=0);"function"==typeof window.mtrcs_vpaid_trigger?window.mtrcs_vpaid_trigger(c,d,a.adUnitId):b.debug("Waiting for meetrics initialization... ")}; this.getFallbackUrl=function(b){return"//s315.meetrics.net/bb-mx/prime?pjid="+a.projectId+"&size=VPAID&mod="+b+"&dur="+(1==b?0:100)+"&realsize="+d+"x"+g+"&realvmode=normal&realbitrate=0&place="+a.adPlacement+"&cid="+a.creativeId+"&zone="+a.zoneId+"&adUnit="+a.adUnitId+"&tm="+e.random()};this.adStartedHandler=function(a){b.debug("AdStarted");this.callMtrcsTrigger(1)};this.adStoppedHandler=function(a){b.debug("AdStopped");this.callMtrcsTrigger(2)};this.adExpandedChangeHandler=function(a){b.debug("AdExpendedChande"); a.data.expanded?this.callMtrcsTrigger(13,11):this.callMtrcsTrigger(13,12)};this.adVolumeChangeHandler=function(a){b.debug("AdVolumeChange");this.callMtrcsTrigger(13,10)};this.adClickThruHandler=function(a){b.debug("AdClickThru");this.callMtrcsTrigger(9)};this.adPausedHandler=function(a){b.debug("AdPaused");this.callMtrcsTrigger(8)};this.adPlayingHandler=function(a){b.debug("AdPlaying");this.callMtrcsTrigger(7)};this.resizeAd=function(a,c,e){b.debug("resize ad");d=a;g=c;this.callMtrcsTrigger(12,a); this._super(a,c,e)};this.setAdRemainingTime=function(a){}})});p("mustang/com/stickyadstv/vpaid/viewability/ias/IASTrackerData",[],function(){new t("com.stickyadstv.vpaid.viewability.ias.IASTrackerData");return N.extend(new function(){this.init=function(d){this._extension=d};this.advEntityId=function(){return this._extension.children("AdvEntityId").text()};this.pubEntityId=function(){return this._extension.children("PubEntityId").text()}})});p("mustang/com/stickyadstv/vpaid/viewability/ias/IASTracker", ["mod!com.stickyadstv.vpaid.Base","mod!com.stickyadstv.vpaid.Wrapper","mod!com.stickyadstv.utils.network","mod!com.stickyadstv.vpaid.viewability.ias.IASTrackerData"],function(d,e,c,b){return e.extend(new function(){var a=new t("com.stickyadstv.vpaid.viewability.ias.IASTracker"),c,e,h,k=!1,m=-1,q,v=null,F=!1;this.init=function(f,g,B){this._super(g,null,null);e=f.width();h=f.height();c=new b(B);g={advEntityId:c.advEntityId(),pubEntityId:c.pubEntityId(),partner:"StickyAds"};a.debug("IAS new __IASVANS()"); this.integral=new wb;q=D(function(){a.debug("IAS blocking callback timeout! time to decision set to 600ms");m=600;k=!1;this.onIASBlockingCallback();v=null},600,this);var w=ca();a.debug("IAS InitFW()");var A=this;this.integral.initFW(g,f._element,function(b){F||(R(q),m=ca()-w,a.debug("IAS blocking callback result : "+b+", time to decision = "+m+"ms"),"block"===b?k=!0:"safe"===b?k=!1:a.info("Unexpected result value"),A.onIASBlockingCallback())});a.debug("IAS InitFW done, waiting blocking callback..."); r(d.events,function(a,b){this.on(a,u(this._eventHandler,this))},this)};this._eventHandler=function(a){e=this.adWidth();h=this.adHeight();var b=a.detail,c={ad_duration:Math.max(this.adDuration(),0),ad_dimensions:e+"x"+h,player_dimensions:e+"x"+h,ad_offset_left:0,ad_offset_top:0,volume:this.adVolume(),adRemainingTime:this.adRemainingTime(),adExpanded:this.adExpanded(),adLinear:this.adLinear()};b&&(c=ka(b,c));"AdImpression"==a.type&&(c=ka(c,{integral_didBlock:k,integral_timeToDecision:m}));"AdImpression"== a.type&&-1==m?v=c:this.sendToIAS(a.type,c)};this.sendToIAS=function(b,c){"AdImpression"==b&&(F=!0);a.debug("IAS Send event type : "+b);this.integral.sendEvent(b,c)};this.onIASBlockingCallback=function(){null!=v&&(v.integral_didBlock=k,v.integral_timeToDecision=m,this.sendToIAS("AdImpression",v))}})});p("mustang/com/stickyadstv/vpaid/viewability/adloox/AdLooxTracker",["mod!com.stickyadstv.vpaid.Wrapper","mod!com.stickyadstv.utils.network"],function(d,e){return d.extend(new function(){var c=new t("com.stickyadstv.vpaid.viewability.adloox.AdLooxTracker"), b=!1;this.init=function(a,b,c){this._super(b,null,null);a.width();a.height();this.injectAdLooxJS();this.on("AdVideoStart",this.adEventHandler,this);this.on("AdPaused",this.adEventHandler,this);this.on("AdPlaying",this.adEventHandler,this);this.on("AdVideoFirstQuartile",this.adEventHandler,this);this.on("AdVideoMidpoint",this.adEventHandler,this);this.on("AdVideoThirdQuartile",this.adEventHandler,this);this.on("AdVideoComplete",this.adEventHandler,this)};this.getScriptUrl=function(){return"https://j.adlooxtracking.com/ads/js/tfav_sticky_s01.js"}; this.injectAdLooxJS=function(){var a=document.createElement("script");a.async="async";a.src=this.getScriptUrl();document.getElementsByTagName("head")[0].appendChild(a)};this.adEventHandler=function(a){c.debug("AdLoox, event : "+a.type);var d="";"AdVideoStart"==a.type?(d="start",b=!0):"AdPaused"==a.type?(d="pause",b=!1):"AdPlaying"!=a.type||b?"AdVideoFirstQuartile"==a.type?d="firstQuartile":"AdVideoMidpoint"==a.type?d="midPoint":"AdVideoThirdQuartile"==a.type?d="thirdQuartile":"AdVideoComplete"==a.type? d="end":c.info("Unexpected event type"):(b=!0,d="resume");""==d?c.debug("AdLoox unknown state. event was :"+a.type):window.adlst&&"function"==typeof window.adlst.setState?(c.debug("AdLoox, setState : "+d),window.adlst.setState(a.type)):c.warn("AdLoox isn't ready yet. state : "+a.type)}})});p("mustang/com/stickyadstv/vpaid/decorator/display/MoreInfoUI",["mod!com.stickyadstv.vpaid.decorator.display.AbstractDecoratorUI"],function(d){new t("com.stickyadstv.vpaid.decorator.display.MoreInfoUI");return d.extend(new function(){this.init= function(d,c,b,a,f){this._bcColor=b?b.replace("0x",""):b;this._logoUrl=d;this._buttonUrl=c;this._paddingX=Math.max(a,4);this._paddingY=Math.max(f,4);this._super();d=this._htmlContentPattern='<img style="border:0;padding-top:[PADDINGY]px;padding-bottom:[PADDINGY]px;padding-left:[PADDINGX]px;" src="[LOGOURL]"/><img id="moreInfo-button" style="cursor:pointer;border:0;padding-top:[PADDINGY]px;padding-bottom:[PADDINGY]px;padding-right:[PADDINGX]px;padding-left:[PADDINGX]px;" src="[BUTTONURL]"/>';d=d.split("[LOGOURL]").join(this._logoUrl); d=d.split("[BUTTONURL]").join(this._buttonUrl);d=d.split("[PADDINGY]").join(String(this._paddingY));d=d.split("[PADDINGX]").join(String(this._paddingX));this.html(d).fire("resize")};this._setStyle=function(){this._style={};this._style["border-radius"]="5px";this._style["line-height"]="0px";var d=parseInt(this._bcColor.substr(0,2),16),c=parseInt(this._bcColor.substr(2,2),16),b=parseInt(this._bcColor.substr(4,2),16);this._style["background-color"]="rgba("+d+","+c+","+b+",0.3)"};this.display=function(){this.show().fire("resize")}; this.setShadow=function(d){var c=this._element.children[1];d?(c.style.paddingTop=this._paddingY-4+"px",c.style.paddingBottom=this._paddingY+4+"px",c.style.paddingLeft=this._paddingX-4+"px",c.style.paddingRight=this._paddingX+4+"px",c.style["-webkit-filter"]="drop-shadow(5px 5px 5px #000)",c.style["-webkit-filter"]="drop-shadow(5px 5px 5px #000)"):(c.style.paddingTop=this._paddingY+"px",c.style.paddingBottom=this._paddingY+"px",c.style.paddingLeft=this._paddingX+"px",c.style.paddingRight=this._paddingX+ "px",c.style.boxShadow="",c.style["-webkit-filter"]="",c.style.filter="")}})});p("mustang/com/stickyadstv/vpaid/decorator/MoreInfo",["mod!com.stickyadstv.vpaid.decorator.DisplayWrapper","mod!com.stickyadstv.vpaid.decorator.display.MoreInfoUI","mod!com.stickyadstv.vast.decorator.MoreInfoData","mod!com.stickyadstv.utils.Browser","mod!com.stickyadstv.event.StickyEvent"],function(d,e,c,b,a){var f=new t("com.stickyadstv.vpaid.decorator.MoreInfo");return d.extend(new function(){this.init=function(a,b,c){this._mouseOnMessage= this._mouseOnContainer=!1;this._super(b,null,null,c);this._container=a;this._logger=f};this._buildUI=function(){this._ui=new e(this._data.getData("logo"),this._data.getData("button"),this._data.getData("color"),this._data.getData("paddingX"),this._data.getData("paddingY"))};this._clickThruHandler=function(a){a.stopImmediatePropagation();a.preventDefault();b.open(this._data.getData("click"))};this._getID=function(){return"sticky-moreInfo"};this.getLayout=function(){var a=ba(this._super());"undefined"!= typeof a.padding&&null==a.padding&&(a.padding=7/this._zoomLevel+"px");return a};this._startedHandler=function(b){this._super(b);this._slot.on(a.MOUSE_OVER,this._msgMouseOver,this,!0);this._slot.on(a.MOUSE_OUT,this._msgMouseOut,this,!0);b=this._container.getAdSlot()||this._container;b.on(a.MOUSE_OVER,this._mouseOver,this,!0);b.on(a.MOUSE_OUT,this._mouseOut,this,!0);"mouse_over"==this._data.getData("visibility")&&D(function(){this._updateDisplay()},2E3,this)};this._mouseOver=function(a){this._mouseOnContainer= !0;this._updateDisplay()};this._mouseOut=function(a){this._mouseOnContainer=!1;this._updateDisplay()};this._msgMouseOver=function(a){this._mouseOnMessage=!0;this._updateDisplay()};this._msgMouseOut=function(a){this._mouseOnMessage=!1;this._updateDisplay()};this._updateDisplay=function(){f.debug("msg:"+this._mouseOnMessage+" cont:"+this._mouseOnContainer);this._ui.setShadow(this._mouseOnMessage);"mouse_over"==this._data.getData("visibility")&&(this._mouseOnMessage||this._mouseOnContainer?this._ui.show(): this._ui.hide())}})});p("mustang/com/stickyadstv/utils/ExtensionsManager","mod!com.stickyadstv.xml.XmlNode mod!com.stickyadstv.xml.List mod!com.stickyadstv.utils.HedgehogUtils mod!com.stickyadstv.vpaid.decorator.SkipButton mod!com.stickyadstv.vpaid.decorator.ExplayButton mod!com.stickyadstv.vpaid.decorator.CustomTracking mod!com.stickyadstv.vpaid.decorator.SoundButton mod!com.stickyadstv.vpaid.decorator.Button mod!com.stickyadstv.vpaid.viewability.openVV.OpenVVTracker mod!com.stickyadstv.vpaid.viewability.meetrics.MeetricsTracker mod!com.stickyadstv.vpaid.viewability.ias.IASTracker mod!com.stickyadstv.vpaid.viewability.adloox.AdLooxTracker mod!com.stickyadstv.vpaid.decorator.MoreInfo mod!com.stickyadstv.utils.Browser mod!com.stickyadstv.utils.VastUtils mod!com.stickyadstv.utils.JsonParser".split(" "), function(d,e,c,b,a,f,g,h,k,m,q,v,F,l,w,B){function K(){0==r.length&&(r=u.concat(p));return r}function A(a,b){return-1!=a.toString().indexOf("%")?0<b?(a=parseInt(a.replace("%",""),10),a/100*b):99999:w.convertDuration(a.toString())}function y(a){var b="<Extensions>";a.each(function(a,c){b+=a.xml?a.xml():""});b+="</Extensions>";return new d(b)}var n=new t("com.stickyadstv.utils.ExtensionsManager"),z=["video/x-flv","video/mp4","application/x-shockwave-flash","application/x-javascript","image/jpeg"],p= "creativeData button explay-button sound-button sticky-view MoreInfo CustomTracking decorator StickyViewability skip StickyMeetricsTracker StickyAdSafeProtected StickyAdloox".split(" "),u=["media"],r=[];return N.extend({decorateAd:function(c,d,e,w){var K=c._duration?c._duration:c.adDuration(),y=w.filter(function(a){return a&&"sticky-view"==a.attr("type")}).first();if(y&&!l.isAppleTV()&&!e.hasCloseTimeout){var n=c;c=new b(d,function(a){a.onSuccess({ad:n})},y)}y=w.filter(function(a){return a&&"CustomTracking"== a.attr("type")});y.isEmpty()||y.each(function(a){if(null!=a.children("trackingevents").first()){var b=c;c=new f(d,function(a){a.onSuccess({ad:b})},a)}});if((y=w.filter(function(a){return a&&"explay-button"==a.attr("type")}).first())&&!l.isAppleTV()){var z=c;c=new a(d,function(a){a.onSuccess({ad:z})},y)}y=w.filter(function(a){return a&&"button"==a.attr("type")});y.isEmpty()||l.isAppleTV()||y.each(function(a){var b=c;c=new h(d,function(a){a.onSuccess({ad:b})},a)},null);if((y=w.filter(function(a){return a&& "sound-button"==a.attr("type")}).first())&&!l.isAppleTV()){var p=c;c=new g(d,function(a){a.onSuccess({ad:p})},y)}if((y=w.filter(function(a){return a&&"MoreInfo"==a.attr("type")}).first())&&!l.isAppleTV()){var t=c;c=new F(d,function(a){a.onSuccess({ad:t})},y)}y=w.filter(function(a){return a&&"StickyViewability"==a.attr("type")});if(!y.isEmpty()&&!l.isAppleTV()){var u=new k(d);u.registerEvents(c);y.each(function(a){a=a.text();u.registerUrl(a)},null)}if((y=w.filter(function(a){return a&&"StickyMeetricsTracker"== a.attr("type")}).first())&&!l.isAppleTV()){var T=c;c=new m(d,function(a){a.onSuccess({ad:T})},y)}if((y=w.filter(function(a){return a&&"StickyAdSafeProtected"==a.attr("type")}).first())&&!l.isAppleTV()){var r=c;c=new q(d,function(a){a.onSuccess({ad:r})},y)}if((y=w.filter(function(a){return a&&"StickyAdloox"==a.attr("type")}).first())&&!l.isAppleTV()){var Pa=c;c=new v(d,function(a){a.onSuccess({ad:Pa})},y)}var x=w.filter(function(a){return a&&"skip"==a.attr("type")});if(1<=x.toArray().length&&!e.hasCloseTimeout){e= 99999;w=[];y=[];x=x.toArray();var L;for(L=0;L<x.length;L++){var C=B.decode(x[L].text());if(na(C.skipOffset)){var D=A(C.skipOffset,K);e=Math.min(e,D)}na(C.skipTracking)&&w.push(C.skipTracking);na(C.skipButtonDisplay)&&y.push(C.skipButtonDisplay)}var da=c;c=new b(d,function(a){a.onSuccess({ad:da})});c.setSkipOffset(e);for(L=0;L<w.length;L++)c._data.addSkipTrackingUrl(w[L]);for(L=0;L<y.length;L++)c._data.addSkipButtonDisplayedUrl(y[L])}return c},removeManagedExtensions:function(a,b){return a.filter(function(a){if(a.attr){var c= a.attr("type");if(0<=p.indexOf(c))return 0==b.filter(function(a){return a.attr("type")==c})._nodeList.length}return!0})},toExtensionsNode:y,replaceExtensionsNode:function(a,b){if("Extensions"==a.nodeName())return b;var c=a.find("Extensions").first();c&&(c.remove(),a.append(b));return a},mergeExtensionsNodes:function(a,b){if(!a)return b;if(!b)return a;var c=new d(a),e=new d(b),f="Extensions"==c.nodeName(),g="Extensions"==e.nodeName();if(f)if(g)n.info("Unexpected nodeAIsExtensions or nodeBIsExtensions value"); else return n.debug("Merge extensions : nodeB isn't an extension."),a;else return n.debug("Merge extensions : nodeA isn't an extension."),g?b:null;a=c.children();e=e.children();return y(a.concat(e)).xml()}},new function(){this.init=function(a){try{this._creativeData=new d(a)}catch(db){this._creativeData=new d("<Extensions></Extensions>")}this._extensionsCleaned=new d("<Extensions></Extensions>");this.isLinear=!0};this.getCreativeDataExtensions=function(){return this._creativeData.children("Extension")}; this.getExtensionsUpdated=function(){if(-1==this._creativeData.xml().indexOf("<Extensions>"))return this._extensionsCleaned.children("Extension");this.mergeCreativeDataIfExtist();this.parseStickyViewIfExist();this.mergeLastExtensions();return this._extensionsCleaned.children("Extension")};this.mergeCreativeDataAndExtensions=function(){if(-1==this._creativeData.xml().indexOf("<Extensions>"))return this.parseMedia(),this._extensionsCleaned.xml();if(this._creativeData.children("Extension").filter(function(a){return"media"== a.attr("type")}).first())return this._creativeData.xml();this.clean();this.mergeCreativeDataIfExtist();this.parseMedia();this.parseStickyViewIfExist();this.mergeLastExtensions();return this._extensionsCleaned.xml()};this.forceMergeCreativeDataAndExtensions=function(){if(-1==this._creativeData.xml().indexOf("<Extensions>"))return this.parseMedia(),this._extensionsCleaned.xml();this.clean();this.mergeCreativeDataIfExtist();this.parseStickyViewIfExist();this.mergeLastExtensions();return this._extensionsCleaned.xml()}; this.mergeCreativeDataIfExtist=function(){var a=this._creativeData.children("Extension").filter(function(a){return"creativeData"==a.attr("type")}).first();"undefined"!=typeof a&&a&&this._extensionsCleaned.append(new d(a.text()))};this.clean=function(){var a=new d("<Extensions></Extensions>");this._creativeData.children("Extension").each(function(b){for(var c=!1,d=0,e=b.attr("type");d<K().length&&!c;)K()[d]==e&&(c=!0),d++;c&&a.append(b)},this);this._creativeData=a};this.mergeLastExtensions=function(){this._creativeData.children("Extension").each(function(a){this._extensionsCleaned.append(a)}, this)};this.parseStickyViewIfExist=function(){var a=this._creativeData.children("Extension").filter(function(a){return"decorator"==a.attr("type")}).first();"undefined"!=typeof a&&a&&"http://cdn.stickyadstv.com/sticky-view/sticky-view.swf"==a.text().split("?")[0]&&(a=a.text().split("="),a=1<a.length?'<Extension type="sticky-view"><CountDown>5</CountDown><Layout>valign:top;halign:right;padding-right:20px;padding-top:10px;</Layout></Extension>'.replace("5",a[1].split("&")[0]):'<Extension type="sticky-view"><CountDown>5</CountDown><Layout>valign:top;halign:right;padding-right:20px;padding-top:10px;</Layout></Extension>', this._extensionsCleaned.append(new d(a)),this.deleteExtension("decorator"))};this.deleteExtension=function(a){var b=new d("<Extensions></Extensions>");this._creativeData.children("Extension").each(function(c){c.attr("type")!=a&&b.append(c)},this);this._creativeData=b};this.parseMedia=function(){var a=c.getParams("hedgehog");if("undefined"==typeof a)throw n.error("There is no params to display the add."),Error("Media params missing");a.firstStage?a.url=decodeURIComponent(a.firstStage||""):a.secondStage? a.url=decodeURIComponent(a.secondStage||""):a.videoUrl?a.url=decodeURIComponent(a.videoUrl||""):n.info("Unexpected params value");this.isLinear="undefined"!=typeof a.linear?a.linear:!0;a='<Extension type="media"><Duration>'+this.getXmlParam(a.firstStage_adDuration)+"</Duration><Linear>"+this.isLinear+"</Linear><Url>"+this.getXmlParam(a.url)+"</Url><Width>"+this.getXmlParam(a.firstStage_adWidth)+"</Width><Height>"+this.getXmlParam(a.firstStage_adHeight)+"</Height><ClickTag>"+this.getXmlParam(a.clickTAG)+ "</ClickTag><Delivery>"+this.getXmlParam(a[""])+"</Delivery><Bitrate>"+this.getXmlParam(a[""])+"</Bitrate><Scalable>"+this.getXmlParam(a[""])+"</Scalable><AdParameters>"+this.getXmlParam(decodeURIComponent(a.extensions||""))+"</AdParameters><Type>"+this.getXmlParam(this.getTypeMedia(a.url))+"</Type><MaintainAspectRatio>"+this.getXmlParam(a[""])+"</MaintainAspectRatio><ApiFramework>"+this.getXmlParam(this.getApiFramework(a.url))+"</ApiFramework></Extension>";this._extensionsCleaned.append(new d(a))}; this.getXmlParam=function(a){return a&&"null"!=a?a:""};this.getTypeMedia=function(a){switch(c.getExtensionFromUrl(a)){case "m4v":a=z[1];break;case "ogg":a=z[1];break;case "webm":a=z[1];break;case "mp4":a=z[1];break;case "js":a=z[3];break;case "swf":a=z[2];break;case "jpg":a=z[4];break;case "png":a=z[4];break;default:a=z[0]}return a};this.getApiFramework=function(a){return-1!=this.getTypeMedia(a).indexOf("application")&&"true"==this.isLinear?"VPAID":""}})});p("mustang/com/stickyadstv/vpaid/factory/content/all", "mod!com.stickyadstv.vpaid.loader.Ad mod!com.stickyadstv.vpaid.Flash mod!com.stickyadstv.vpaid.Media mod!com.stickyadstv.vpaid.iab.Adapter mod!com.stickyadstv.vpaid.loader.Vpaid2Frame mod!com.stickyadstv.vpaid.MediaClickable mod!com.stickyadstv.media.Image mod!com.stickyadstv.media.IFrame mod!com.stickyadstv.media.Html mod!com.stickyadstv.media.Video mod!com.stickyadstv.media.IFreewheelPlayer mod!com.stickyadstv.media.appleTV.AppleTVNativePlayer mod!com.stickyadstv.media.Object mod!com.stickyadstv.utils.Browser mod!com.stickyadstv.display.Slot mod!com.stickyadstv.utils.MediaFileManager mod!com.stickyadstv.utils.ExtensionsManager mod!com.stickyadstv.utils.MediaFiles mod!com.stickyadstv.vast.VastError mod!com.stickyadstv.utils.HedgehogUtils mod!com.stickyadstv.utils.URLUtils".split(" "), function(d,e,c,b,a,f,g,h,k,m,q,v,F,l,w,B,K,A,y,p,u){var z=new t("com.stickyadstv.vpaid.factory.content.all");return function(A,p,t,T,r,L){function D(a,b){for(var d,f=0;f<a.length;++f){var q=a[f],m=q.apiFramework();if(m&&"VPAID"==m.toUpperCase()){b.learnMoreButton=!1;if(-1<q.type().indexOf("javascript"))return J;if(S(b.flashEnabled,da))return e;z.info("Unexpected mediaFile or unsupported Flash value")}m=b;q=0==q.type().indexOf("image/")?g:"iframe"==q.type()?h:"html"==q.type()?k:S(m.flashEnabled,da)&& !q.apiFramework()&&q.type()==ta?F:null;null==q&&(d=null);n(d)&&(d=c.extend.fromMedia(q))}return d}var E=l.isAppleTV()?I.func("VideoClass",v):"undefined"!=typeof A._iFreewheelPlayer&&"function"==typeof A._iFreewheelPlayer.isInstanceOf&&A._iFreewheelPlayer.isInstanceOf("IFreewheelPlayer")?I.func("VideoClass",q):I.func("VideoClass",m);var da=l.isFlashSupported()&&!l.isAndroid();e=e.extend(new function(){this.init=function(a,b,c,d,e){e||(e=d);"function"==typeof e.string&&e.string("componentId");var f= {swf:u.getSwf("jsBridge"),options:{bgcolor:"#000000",wmode:"transparent"}};this._super(a,b,c,d,C(f,e))}});var H=b.extend(new function(){this.init=function(){this._super({},this._factory)};this._factory=function(a,b){var d=w.factory(a.videoSlot||a.slot);a=new (c.extend.fromMedia(E))(d,a.mediaFiles,a.duration,a);return b.onSuccess({ad:a})}});d.extend(new function(){this.initAd=function(a,b,c,d,e,f){f=C({videoAd:H,videoSlotClass:E},ra(f));this._super(a,b,c,d,e,f)}});var J=a.extend(new function(){this.initAd= function(a,b,c,d,e,f){f=C({videoAd:H,videoSlotClass:E},ra(f));this._super(a,b,c,d,e,f)}});try{r=r||{};var G=p.slice();G=B.filterMediaFiles(G);if(0==G.length)throw new y("Could not find a supported MediaFile.",403);G=B.sortMediaFiles(G,r);p.length=0;p.push.apply(p,G);var M=D(p,r),N=(new K(r.extensions)).getExtensionsUpdated();if(M){var Z=new M(A,p,t,r);if(r.adParameters){var O=(new K(r.adParameters)).getExtensionsUpdated();if(0<O._nodeList.length){var Q=K.removeManagedExtensions(O,N);r.adParameters= K.toExtensionsNode(Q).xml()}}Z=K.decorateAd(Z,A,r,N);x(Z.create)?Z.create(L):L.onSuccess({ad:Z});return p}try{if(!I.bool("html5video",!0))throw Error("HTML5 video support disabled.");l.isAppleTV()?Z=new (c.extend.fromMedia(E))(A,p,t,r):(Z=new (f.extend.fromMedia(E))(A,p,t,r),Z=K.decorateAd(Z,A,r,N));Z.create(L);return p}catch(Aa){z.warn(Aa);var P=new e(A,p,t,T,r);P=K.decorateAd(P,A,r,N);P.create(L);return p}}catch(Aa){Aa.errorcode||(Aa.errorcode=405),L.onError(Aa)}}});p("mustang/com/stickyadstv/vpaid/core/Linear", "mod!com.stickyadstv.vpaid.SafeWrapper mod!com.stickyadstv.utils.Browser mod!com.stickyadstv.event.StickyEvent mod!com.stickyadstv.vpaid.decorator.Remaining mod!com.stickyadstv.vpaid.decorator.StartButton mod!com.stickyadstv.vpaid.decorator.LearnMoreButton conf!vpaid.factory.content mod!com.stickyadstv.utils.JsonParser mod!com.stickyadstv.vpaid.decorator.SoundButton".split(" "),function(d,e,c,b,a,f,g,h,k){var m=new t("com.stickyadstv.vpaid.core.Linear");return d.extend(new function(){this.init=function(a, b,c){c=c||{};"undefined"==typeof c.adParameters&&(c.adParameters=b.adParameters());this._creative=b;this._container=a;this._config=c;this._loaded=!1;a={};a.AdClickThru=this._clickThruHandler;a.AdPaused=this._bubble(this._pausedHandler);a.AdPlaying=this._bubble(this._playingHandler);a.AdRemainingTimeChange=this._bubble(this._remainingTimeChangeHandler);a.AdVolumeChange=this._bubble(this._volumeChangeHandler);a.AdImpression=this._bubble(this._impressionHandler);a.AdVideoStart=this._bubble(this._videoStartHandler); a.AdVideoFirstQuartile=this._bubble(this._videoFirstQuartileHandler);a.AdVideoMidpoint=this._bubble(this._videoMidpointHandler);a.AdVideoThirdQuartile=this._bubble(this._videoThirdQuartileHandler);a.AdVideoComplete=this._bubble(this._videoCompleteHandler);a.AdUserAcceptInvitation=this._bubble(this._userAcceptInvitationHandler);a.AdUserClose=this._bubble(this._userCloseHandler);a.extAdSkipped=this._bubble(this._userSkipHandler);a.AdExpandedChange=this._bubble(this._expandedChangeHandler);a.AdPreLoaded= this._preloadedHandler;a.AdLoaded=this._loadedHandler;a.AdError=this._errorHandler;a.AdStopped=this._adStoppedHandler;a.fullscreen=this._bubble(this._videoFullscreenChangeHandler);a.exitFullscreen=this._bubble(this._videoFullscreenChangeHandler);b=b.duration();this._super(function(a){var b=a.onSuccess,d=a.onError;a={onError:u(function(b){1<this._creative.mediaFiles().length?(b=this._creative.mediaFiles().shift(),m.warn("Error creating the mediaFile: "+b.url()+"\ntry to load: "+this._creative.mediaFiles()[0].url()), this._instantiateLinearAd(c,a)):d(b)},this),onSuccess:u(function(a){a=this.decorateWithLinearFeatures(a.ad);b({ad:a})},this)};var f=this._creative.attr("skipoffset");if("undefined"!=typeof f&&null!=f&&""!=f&&!e.isAppleTV()){var g=this._creative.find("Tracking").filter(function(a){return"skip"==a.attr("event")}).text();f={skipOffset:f};g&&(f.skipTracking=g);g='<Extension type="skip">'+h.encode(f)+"</Extension>";"undefined"==typeof c.extensions||null==c.extensions||-1==c.extensions.indexOf("</Extensions>")? c.extensions="<Extensions>"+g+"</Extensions>":-1!=c.extensions.indexOf("</Extensions>")?c.extensions=c.extensions.replace("</Extensions>",g+"</Extensions>"):m.info("Unexpected config.extensions value")}1<this._creative.mediaFiles().length&&I.value("flash/embedTimeout",500);this._instantiateLinearAd(c,a)},a,b);this._logger=m;this.on("AdStarted",function(a){this._adStarted=!0},this)};this._instantiateLinearAd=function(a,b){var c=a.type;if(c)if(a=new c(this._container,this._creative.mediaFiles(),this._creative.duration(), a),x(a.create))a.create(b);else b.onSuccess({ad:a});else this._creative.setMediaFiles(g(this._container,this._creative.mediaFiles(),this._creative.duration(),!0,a,b))};this.decorateWithLinearFeatures=function(c){var d=c,g=this._config.remainingAdTime;"undefined"==typeof g||e.isAppleTV()||(d=new Q,d.value("remainingAdTime",g),d=new b(this._container,function(a){a.onSuccess({ad:c})},d));if(!e.isAppleTV()&&(e.isMobile()&&(!e.isIPhone()||10<=e.iOSVersion())||!e.isMobile())){var h=d;d=new Q;d=new a(this._container, function(a){a.onSuccess({ad:h})},d)}if("true"===this._config.learnMoreButton||!0===this._config.learnMoreButton){this._config.learnMoreButton=!0;g="Learn More >>";this._config.learnMoreButtonText&&(g=decodeURIComponent(this._config.learnMoreButtonText).replace(/\+/g," "));var q=d;d=new Q;d.value("learnMoreButtonText",g);d.value("hasCloseTimeout","true"==this._config.hasCloseTimeout);d=new f(this._container,function(a){a.onSuccess({ad:q})},d)}g=this._config.soundButton;if("true"===g||!0===g||1===g){g= this._config.defaultMute;g="true"===g||!0===g||1===g;var m=d;d=new Q;d.value("defaultMute",g);d=new k(this._container,function(a){a.onSuccess({ad:m})},d)}return d};this.adId=function(){return this._creative.id()};this.universalAdId=function(){return this._creative.universalAdId()};this._trackEvent=function(a,b){this._creative.trackEvent(a,null,b);this._container.hasOwnProperty("_iFreewheelPlayer")&&this._container._iFreewheelPlayer.hasOwnProperty("getCurrentTime")&&"function"==typeof this._container._iFreewheelPlayer.getCurrentTime&& (I._data.adplayhead=this._container._iFreewheelPlayer.getCurrentTime())};this._click=function(a,b,c){c=c||this._creative.clickThrough();-1<c.indexOf("ads.stickyadstv.com")&&(c="&"==c[c.length-1]?c:c+"&",c+="clickX="+a+"&clickY="+b+"&");a={url:c,playerHandles:!0,clickX:a,clickY:b};this._creative.trackClick(a);c&&(a.playerHandles=!1,e.open(c));this._dispatchEvent("AdClickThru",a)};this.clickThrough=function(){this._click();this._super()};this._preloadedHandler=function(a){this._triedNextMediafile?a.stopImmediatePropagation(): this._forwardEvent(a)};this._loadedHandler=function(a){this._super(a);this._loaded=!0;this._forwardEvent(a)};this._clickThruHandler=function(a){var b=O(a);"boolean"===typeof this._config.learnMoreButton&&this._config.learnMoreButton?S(b.learnMoreButtonHandles,!1)&&this._click(b.clickX,b.clickY,b.url):S(b.playerHandles,!0)?this._click(b.clickX,b.clickY,b.url):(this._creative.trackClick(a),this._forwardEvent(a))};this._pausedHandler=function(a){this._adPaused=!0;this._trackEvent("pause")};this._errorHandler= function(a){if(!this._adStarted&&1<this._creative.mediaFiles().length){a.stopImmediatePropagation();var b=this._creative.mediaFiles().shift();m.warn("Error reading the mediaFile: "+b.url()+"\ntry to read: "+this._creative.mediaFiles()[0].url());delete this._ad;this._triedNextMediafile=!0;this.initAd(this.initAdContext[0],this.initAdContext[1],this.initAdContext[2],this.initAdContext[3],this.initAdContext[4],this.initAdContext[5])}else b=O(a),a=new c("AdError",a,b),a.errorcode=b&&"errorcode"in b?b.errorcode: 400,this._super(a)};this._playingHandler=function(a){this._adPaused&&(this._adPaused=!1,this._trackEvent("resume"))};this._remainingTimeChangeHandler=function(a){a=this.adRemainingTime();this._adStarted?this.adDuration()==a&&(this._trackEvent("rewind"),this._adStarted=!1):this.adDuration()>a&&(this._adStarted=!0)};this._volumeChangeHandler=function(a){a=this.adVolume();this._adStarted&&0<a!=0<this._volume&&this._trackEvent(0>=a?"mute":"unmute");this._volume=a};this._impressionHandler=function(a){this._trackEvent("creativeView")}; this._videoStartHandler=function(a){this._trackEvent("start")};this._videoFirstQuartileHandler=function(a){this._trackEvent("firstQuartile")};this._videoMidpointHandler=function(a){this._trackEvent("midpoint")};this._videoThirdQuartileHandler=function(a){this._trackEvent("thirdQuartile")};this._videoCompleteHandler=function(a){this._waitingCompleteTracking=!0;a=u(function(){this._waitingCompleteTracking=!1;this._adStoppedEvent&&this._adStoppedHandler(this._adStoppedEvent);this._adStoppedSecureTimer&& R(this._adStoppedSecureTimer)},this);this._trackEvent("complete",{onSuccess:a,onError:a})};this._videoFullscreenChangeHandler=function(a){this._trackEvent(a.type)};this._adStoppedHandler=function(a){this._waitingCompleteTracking?(this._adStoppedEvent=a,this._adStoppedSecureTimer=D(u(function(){m.debug("This security timer should never be triggered. Are we missing a tracking callback?");this._waitingCompleteTracking=!1;this._adStoppedHandler(this._adStoppedEvent)},this),1E3)):this._forwardEvent(a)}; this._userAcceptInvitationHandler=function(a){this._trackEvent("acceptInvitation")};this._userSkipHandler=function(a){this._trackEvent("skip")};this._userCloseHandler=function(a){this._trackEvent("close")};this._expandedChangeHandler=function(a){this.adExpanded()?(this._trackEvent("expand"),this._trackEvent("adExpand")):(this._trackEvent("collapse"),this._trackEvent("adCollapse"))};this.initAd=function(a,b,c,d,e,f){this.initAdContext=[a,b,c,d,e||this._config.adParameters,f];this._super(a,b,c,d,e|| this._config.adParameters,f)};this.adLinear=function(){return!0}})});p("mustang/com/stickyadstv/vpaid/factory/linearFactory",["mod!com.stickyadstv.vpaid.core.Linear"],function(d){new t("com.stickyadstv.vpaid.factory.linearFactory");return function(e,c,b,a){(new d(e,c,b)).create(a)}});p("mustang/com/stickyadstv/vpaid/core/NonLinear",["mod!com.stickyadstv.vpaid.Wrapper","mod!com.stickyadstv.utils.Browser","mod!com.stickyadstv.vast.VastError","conf!vpaid.factory.content","mod!com.stickyadstv.dom.Element"], function(d,e,c,b,a){new t("com.stickyadstv.vpaid.core.NonLinear");return d.extend(new function(){this.init=function(d,e,h){h=h||{};this._creative=e;this._config=h;this._initialPlayerWidth=d.width();this._initialPlayerHeight=d.height();this._playerContainer=d;this._playerContainer.on("resize",this._playerResizeHandler,this);this._config.nonLinear=!0;var f={};f.AdImpression=this._bubble(this._impressionHandler);f.AdClickThru=this._clickThruHandler;f.AdStopped=this._stoppedHandler;f.AdLoaded=this._loadedHandler; f.AdExpandedChange=this._adExpandedChangeHandler;this._mediaFile=e.mediaFile();var g=this._mediaFile.duration();this._super(function(e){this._layout={width:1,height:1,halign:"center",valign:"bottom",padding:20};if(this._container=d.slot(this._layout,null,new a("div",{"class":"iFreewheelPlayer-nonLinear"})))b(this._container,[this._mediaFile],g,!1,h,e);else e.onError(new c("overlay container initialization failed.",500))},f,g)};this.adId=function(){return this._creative.id()};this.universalAdId=function(){return this._creative.universalAdId()}; this._dispose=function(){this._super();this._container&&this._container.remove()};this.resizeAd=function(a,b,c){var d=a/this._initialPlayerWidth,e=b/this._initialPlayerHeight;a-=2*this._layout.padding;b-=2*this._layout.padding;d*=this._mediaFile.width();e*=this._mediaFile.height();if(d>a||e>b)if(d/e>a/b){var f=a/d;d=a;e*=f}else f=b/e,e=b,d*=f;this._layout.width=d;this._layout.height=e;this._container.setLayout(this._layout);this._super(d,e,c)};this._playerResizeHandler=function(a){this.resizeAd(this._playerContainer.width(), this._playerContainer.height(),"")};this._loadedHandler=function(a){this._forwardEvent(a)};this._stoppedHandler=function(a){this._creative.trackEvent("complete",a);this._dispose();this._dispatchEvent("AdStopped")};this._adExpandedChangeHandler=function(a){this.adExpanded()?this._creative.trackEvent("expand"):this._creative.trackEvent("collapse")};this._impressionHandler=function(a){this._creative.trackEvent("creativeView")};this._click=function(a,b,c){c=this._creative.clickThrough()||c;-1<c.indexOf("ads.stickyadstv.com")&& (c="&"==c[c.length-1]?c:c+"&",c+="clickX="+a+"&clickY="+b+"&");a={url:c,playerHandles:!1,clickX:a,clickY:b};this._creative.trackClick(a);c&&e.open(c);this._dispatchEvent("AdClickThru",a)};this._clickThruHandler=function(a){var b=O(a);S(b.playerHandles,!0)?this._click(b.clickX,b.clickY,b.url):(this._creative.trackClick(a),this._forwardEvent(a))};this.initAd=function(a,b,c,d,e,q){this._super(this._container.width(),this._container.height(),"",d,e||this._creative.adParameters(),q)};this.adLinear=function(){return!1}})}); p("mustang/com/stickyadstv/vpaid/decorator/display/AbstractButtonUI",["mod!com.stickyadstv.dom.Element"],function(d){new t("com.stickyadstv.vpaid.decorator.display.AbstractButtonUI");return d.extend(new function(){this.init=function(e,c,b){this._super("div",{style:{cursor:"pointer",width:e+"px",height:e+"px"}},null);this._button=c;this._hoverButton=b;this._buttonSlot=new d("img",{style:{width:"100%",height:"100%"}},null);this.append(this._buttonSlot);this.displayButton()};this.displayHoverButton= function(){this._buttonSlot.attr("src",this._button)};this.displayButton=function(){this._buttonSlot.attr("src",this._hoverButton)}})});p("mustang/com/stickyadstv/vpaid/decorator/display/ButtonCloseUI",["mod!com.stickyadstv.vpaid.decorator.display.AbstractButtonUI"],function(d){new t("com.stickyadstv.vpaid.decorator.display.ButtonCloseUI");return d.extend(new function(){this.closeButtonHover="data:image/jpeg;base64,/9j/4QAYRXhpZgAASUkqAAgAAAAAAAAAAAAAAP/sABFEdWNreQABAAQAAABQAAD/4QMtaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLwA8P3hwYWNrZXQgYmVnaW49Iu+7vyIgaWQ9Ilc1TTBNcENlaGlIenJlU3pOVGN6a2M5ZCI/PiA8eDp4bXBtZXRhIHhtbG5zOng9ImFkb2JlOm5zOm1ldGEvIiB4OnhtcHRrPSJBZG9iZSBYTVAgQ29yZSA1LjMtYzAxMSA2Ni4xNDU2NjEsIDIwMTIvMDIvMDYtMTQ6NTY6MjcgICAgICAgICI+IDxyZGY6UkRGIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyI+IDxyZGY6RGVzY3JpcHRpb24gcmRmOmFib3V0PSIiIHhtbG5zOnhtcD0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLyIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bXA6Q3JlYXRvclRvb2w9IkFkb2JlIFBob3Rvc2hvcCBDUzYgKE1hY2ludG9zaCkiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6RDNCNTQ0NzgxQ0E3MTFFNTgxREM4MDI5N0QzQTE1NzYiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6RDNCNTQ0NzkxQ0E3MTFFNTgxREM4MDI5N0QzQTE1NzYiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDpCMjNCMTFGRjFDQTcxMUU1ODFEQzgwMjk3RDNBMTU3NiIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDpCMjNCMTIwMDFDQTcxMUU1ODFEQzgwMjk3RDNBMTU3NiIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/Pv/uAA5BZG9iZQBkwAAAAAH/2wCEAAICAgICAgICAgIDAgICAwQDAgIDBAUEBAQEBAUGBQUFBQUFBgYHBwgHBwYJCQoKCQkMDAwMDAwMDAwMDAwMDAwBAwMDBQQFCQYGCQ0LCQsNDw4ODg4PDwwMDAwMDw8MDAwMDAwPDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDP/AABEIACgAKAMBEQACEQEDEQH/xACfAAEBAQEAAAAAAAAAAAAAAAAABwgJAQEBAQEAAAAAAAAAAAAAAAAABgcIEAAAAgUGDAQHAQAAAAAAAAABEQMTFAUWACECEgQHQWEixOSFpRdHZwgYcWNEJvAxMoI0FQaUEQAAAwMCEQsEAwEAAAAAAAABERIAAgYDEyExQWGhQmKCIwQURGQFFQcXUYFSosLig6PD4xbwwdEikTIzkv/aAAwDAQACEQMRAD8A7AX4X4bmYY9sRJEjb61jUsajyE9asvxEWE5paJYl2NN4Na1WySSVZ4zU13BUFfJJ7DTU0i0Wa1XTpEmuZtA++HlhtrQJS3ErRuv3Gu+Cmm+V7jO+HlhtrQJOJWjdfuM4Kab5XuM74eWG2tAk4laN1+4zgppvle418uPvw3zRP7YhuG2L1rYubF/kIKtVRjM8BT1MNRLtmcwaEJtlGo6zpEloSNYK+NzOGnZ1dogkJunjNVYiaB9cPDDXWYSlt5WbX/Ya73KZ74XqNle6m6l/3sv9K5nMkRWKzWJEvez2Tzo7OjEwoZICA0qVMQIADxmAJRGotRS2tpYZOTEAAAN54an5NtQimKcWh/FglpYBeF4SddCm8NWjUAKo/dm53+/j/dt+kpxHX+c7Ozn+WtIlJT1vtKtkyfHsdy3I0YSwXSPo1+anQZ8v1bs3aM4EyV8roJ6dbn/rRZetdS/7pn+icz5SIrbZraiXul7IJkdoRgQUskREaNKgIkID4zgMmvdRS2qZYJOUEBAQN14KQh9hBkLRTi0QYsMtIgLouiTzo03RqUaoDUH7tqjoe4n6lz+Vvu1zm87bZfvrzLxfTZ1w8MNdZhJvKza/7DNyme+F6jZXudj+P3Lu2rxHXnM2ZmMFrXgUl9R4quVVlEQ9luWuZH/pYKqq55bFEm1CL9m7NlNolMlfKtUXfJZ/U27G/wCKIWL48xUs+Dl0H/Cy+q5G3IX/AFNK+rlSfom45XxR/H763k14jrzEbMzGKpkwKS+ksdbKrS58iHLctfyz/SwVRNzyWaJt17CGzdmyezimSvlWy7vlsfqTao6HuJ+pc/lb7tc5vO22X768y8X02dcPDDXWYSbys2v+wzcpnvheo2V7qb1n/dM/0r5cyJFbbNbUSh7OlPMjtCMDGjlgA0qFKjSEwEPATAZRGotey2qZYZSTABAQJ50av4JtQimFsWiDFgkZYRdF0TdeCm6NWhSEBCmDN8X9/H+8n91TiOuRTszMf4ioyUlNV+462VJ8hx3LcsXhLBdEujW56dFnxDVuzdnTYTJXyumrp1+b+tBl616z/vZf6J8vlEisVmsSJQ6XSgnR2dGJDSyxAKVOlSpAYiPgBAEmvdey2tpYJSUAAAAJ10Kn5NkLQti0P4sMjIiLwvCbzw03hqUKQAAUgbVHQ9xP1Ln8rfdrnN522y/fXmXi+m18vwuP3zQx7nhuG230TYubFHnoKtVRjM8BT1MSw1tmbwiEKtVGoq7pEloSCo1+Nz2BnZ1FugkKuXjNVYiaB9j3M/YunyluGuk9Tvtd8a9C8322dj3M/YunycNdJ6nfZxr0LzfbZ2Pcz9i6fJw10nqd9nGvQvN9tr5cfcfuZif3PEkSMXomNSxr/PT1qy/ERYTmqYahrY05hFrTapJJ13jNTQkaxr8kmcDNTS7dZrTcukSa5m3/2Q=="; this.closeButton="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyRpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoTWFjaW50b3NoKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDoyOURFMzVBNjFDMEYxMUU1QkZGMThFQkVBQkZDOTJGQiIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDoyOURFMzVBNzFDMEYxMUU1QkZGMThFQkVBQkZDOTJGQiI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOjE2NURDNzdGMUMwRjExRTVCRkYxOEVCRUFCRkM5MkZCIiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOjE2NURDNzgwMUMwRjExRTVCRkYxOEVCRUFCRkM5MkZCIi8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+lkVc5QAAAZ9JREFUeNrs2EtOwzAQBuBJRdiw7TVYIC5AShLYcQfEEUClvBa0EFA5CkJIbGj6CBdALDhKYZMsjH9oopAHSagDFngkV23tkT9ZHjstMcaavF3zNmXyxHRmamr85ZaItkjOuAPwhb9ZkhToA8hI4lhIfrG8svqroOenx0+fGyR5KKACKuC/BW7YFl1dOrSo67lj0IcxtmWKO6jL4pxel3QOQNtrd8gPghSuz3Etw3hvmqbRwB3Wv4JxHAKT9xMrGcchMBY5yK0daJvrES6MODKJCwM5yK0aqYeForv4Y19dkGGspfomnheBk+F5D7Tb3k9thaK7uDKwCJkVZXHCHhYwESbExCJxQo+ZMsh5cUIOakbsW321A/OqNa+6fxRYBicK2RCJw57L2pPzICsDz3unX55zeYWDHOTWDhyNPQoSVRmv1rzqRg5yawfeuy4dHJ1EyKyjJInEWOQgt/arLoxN2ybLbFHn8Dj3nMOec866NBxNSuOEXHXqd7ECKqAC/iGg9H9gYgVfJfb5AI4lBg4A3OHtBne6RLBgZtp+E2AA3QGGomPPNE0AAAAASUVORK5CYII="; this.init=function(d){this._super(d,this.closeButton,this.closeButtonHover)}})});p("mustang/com/stickyadstv/vpaid/decorator/display/ButtonRediuceUI",["mod!com.stickyadstv.vpaid.decorator.display.AbstractButtonUI"],function(d){new t("com.stickyadstv.vpaid.decorator.display.ButtonRediuceUI");return d.extend(new function(){this.reduceButtonHover="data:image/jpeg;base64,/9j/4QAYRXhpZgAASUkqAAgAAAAAAAAAAAAAAP/sABFEdWNreQABAAQAAABQAAD/4QMtaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLwA8P3hwYWNrZXQgYmVnaW49Iu+7vyIgaWQ9Ilc1TTBNcENlaGlIenJlU3pOVGN6a2M5ZCI/PiA8eDp4bXBtZXRhIHhtbG5zOng9ImFkb2JlOm5zOm1ldGEvIiB4OnhtcHRrPSJBZG9iZSBYTVAgQ29yZSA1LjMtYzAxMSA2Ni4xNDU2NjEsIDIwMTIvMDIvMDYtMTQ6NTY6MjcgICAgICAgICI+IDxyZGY6UkRGIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyI+IDxyZGY6RGVzY3JpcHRpb24gcmRmOmFib3V0PSIiIHhtbG5zOnhtcD0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLyIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bXA6Q3JlYXRvclRvb2w9IkFkb2JlIFBob3Rvc2hvcCBDUzYgKE1hY2ludG9zaCkiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6QjIzQjExRjkxQ0E3MTFFNTgxREM4MDI5N0QzQTE1NzYiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6QjIzQjExRkExQ0E3MTFFNTgxREM4MDI5N0QzQTE1NzYiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDpCMjNCMTFGNzFDQTcxMUU1ODFEQzgwMjk3RDNBMTU3NiIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDpCMjNCMTFGODFDQTcxMUU1ODFEQzgwMjk3RDNBMTU3NiIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/Pv/uAA5BZG9iZQBkwAAAAAH/2wCEAAICAgICAgICAgIDAgICAwQDAgIDBAUEBAQEBAUGBQUFBQUFBgYHBwgHBwYJCQoKCQkMDAwMDAwMDAwMDAwMDAwBAwMDBQQFCQYGCQ0LCQsNDw4ODg4PDwwMDAwMDw8MDAwMDAwPDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDP/AABEIACgAKAMBEQACEQEDEQH/xACeAAADAQEAAAAAAAAAAAAAAAAABwgFCQEBAQEBAQAAAAAAAAAAAAAABgADBwUQAAABCAULBAIDAAAAAAAAAAMAARECBAUGByESExQWQWHE5IWlJkdnCBgxY0QXUZGDdFYRAAACBgMJDgUFAAAAAAAAAAECABESAwUGYRMEMUFCgiNEZAcXIVFxgcFiosLig6PD4xWRIjJyFvBSUyQl/9oADAMBAAIRAxEAPwDsBPCeH0zhjhjEmJL78252NzsPYHrVrfMhGVNBaZZl9mq8m221hMqZVQZa2kdyVJX5JXZaqqmMBtbbXOKpTNK1og/OHphvrUCLbStG6fYR3sU03wvUQ84emG+tQK2laN0+wlsU03wvUQ84emG+tQK2laN0+wlsU03wvUR+SPnh9zYn4Yw3hu5fNvltfLf2AKtWwzpTkRSplqZfeazJsMM4TS2l0FUplAk6yV+N1OWra1vAYUwzzjLW1QpSIPvh5Yba0Ai2srNsfqI71KZ73XmJA5ctTuyM6TkGu6YExXFB72FFAYnyE8FF2gA6BAxAmBoGCXMmg9UQNU6D+voXtS9D3cQtxLO8EQKYDboXlFMIDxCAIam+MPYRC3trdAAmIJNwbggLwpTBxlEQXeupnzHlxEcsYjHh+IAPyI7HmGY9g2AJQYUI5/0sqelU9ByyjEHfwx+Lp6HAN4wb4coXk3l2YrLHLKFos40GKP1ENvDyDcEErrse5n7F08nurXOcTrpyfXXmXe+Wh3w8sNtaAVrKzbH6iWpTPe68xJVg2TkxZgO0V7Qe4gnyxACnAaF1HgwBCBiGpQuEM0KCKpNSZKtOQg8Pl63RB3WWcgGKAq+ooK4QEwCHwTqMYm+Fwh6Dq1vRIYQWHyPBAQoMUolGlQ7l9M/jmTMc/wCbjWG/6zZY3xm/nBWrAj50JyLGox/twa1/sfE+0ymi4xRWU36FN/8APmSH/wAtne/cRbBsU4KOWhat5NCMpxzFmA7gnTGD9CfLEAKYdnUXd7AEIGIahKgoLOGIqk1B0LU5S2iEw26IOwd2g4GKArD5SgrgECgIfFMIPKELhD0XtkdCQwgofneCAhSUxhKNCw3LyVV2Pcz9i6eTjVrnOJ105drrzLvfLQ74eWG2tAK1lZtj9RLUpnvdeYkiy4mPEcsYjAiCHx/wG83YIc9g2AJScIUxv2qsalU9JiBQeMP4W/B66HhC8YN4eQbydYmKXbLHLKNntAUlMH1ENvhyhcEE0Jxxk7ZgTFfsYOkIUBifITvXUZxzIEDECYGcEVQ6KD1RFFjJN6+pazDEHcQtx7Q7WBTAW7eUUoCHEICmEoQd7CIW6sj0QExBPuhcEBeGMUeMogKr1xFiXiolS+Ox7mfsXTy6lq1znE66cJ115l3vlo/J4SP+5sMcT4bw3ffhXy2vlh74FWrYZ0pyIpUzLLXvNXlGGGsFpbSqSqUygSSp1/G67I1taxhsKYa5plraoUpEH4PdT9y6+RbZrpPQ7aO9teheL6aHg91P3Lr5WzXSeh20tteheL6aHg91P3Lr5WzXSeh20tteheL6aPyR8j/pnE/E+JMSXL4Vzsbnb++PWrW+ZCMqaFMtS17NWZRttnBZUyuky1tIEnWdfySpyNVVN4ba22eaVSmaVrT/2Q=="; this.reduceButton="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyRpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoTWFjaW50b3NoKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDoxNjVEQzc3OTFDMEYxMUU1QkZGMThFQkVBQkZDOTJGQiIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDoxNjVEQzc3QTFDMEYxMUU1QkZGMThFQkVBQkZDOTJGQiI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOjE2NURDNzc3MUMwRjExRTVCRkYxOEVCRUFCRkM5MkZCIiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOjE2NURDNzc4MUMwRjExRTVCRkYxOEVCRUFCRkM5MkZCIi8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+EVW8ZAAAAPhJREFUeNpi+P//vwgQrwHiz/8HD/gMdZMII5DYwMDA4M8wOMFmkAO/ABncg9SBv0AO/M8wiAELuoCuofGAOujy+bMofCaGQQ5GHTjqwGHrwNyszMHtwLTUFKo4kqZRTA1H0jwNUupIumQSShxJt1xMriPpWsyQ40i6l4OkOpKFVg6hVqtotKob9g4kOg2CEjYogdM6zZEdgpOnTWeYNXvO4I7igXAkyWmQ3o4kK5PQ05Fk52J6OZKiYoYejqS4qgM5kpYAY+hjdGRhtC4edeAQc+CgH8AEheDXQey+XyAH7h3EDtwJciCoFboOiH8PIof9hropCSDAAO+K7TQeVnEUAAAAAElFTkSuQmCC"; this.init=function(d){this._super(d,this.reduceButton,this.reduceButtonHover)}})});p("mustang/com/stickyadstv/vpaid/decorator/display/ButtonResizeUI",["mod!com.stickyadstv.vpaid.decorator.display.AbstractButtonUI"],function(d){new t("com.stickyadstv.vpaid.decorator.display.ButtonResizeUI");return d.extend(new function(){this.resizeButtonHover="data:image/jpeg;base64,/9j/4QAYRXhpZgAASUkqAAgAAAAAAAAAAAAAAP/sABFEdWNreQABAAQAAABQAAD/4QMtaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLwA8P3hwYWNrZXQgYmVnaW49Iu+7vyIgaWQ9Ilc1TTBNcENlaGlIenJlU3pOVGN6a2M5ZCI/PiA8eDp4bXBtZXRhIHhtbG5zOng9ImFkb2JlOm5zOm1ldGEvIiB4OnhtcHRrPSJBZG9iZSBYTVAgQ29yZSA1LjMtYzAxMSA2Ni4xNDU2NjEsIDIwMTIvMDIvMDYtMTQ6NTY6MjcgICAgICAgICI+IDxyZGY6UkRGIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyI+IDxyZGY6RGVzY3JpcHRpb24gcmRmOmFib3V0PSIiIHhtbG5zOnhtcD0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLyIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bXA6Q3JlYXRvclRvb2w9IkFkb2JlIFBob3Rvc2hvcCBDUzYgKE1hY2ludG9zaCkiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6QjIzQjExRkQxQ0E3MTFFNTgxREM4MDI5N0QzQTE1NzYiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6QjIzQjExRkUxQ0E3MTFFNTgxREM4MDI5N0QzQTE1NzYiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDpCMjNCMTFGQjFDQTcxMUU1ODFEQzgwMjk3RDNBMTU3NiIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDpCMjNCMTFGQzFDQTcxMUU1ODFEQzgwMjk3RDNBMTU3NiIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/Pv/uAA5BZG9iZQBkwAAAAAH/2wCEAAICAgICAgICAgIDAgICAwQDAgIDBAUEBAQEBAUGBQUFBQUFBgYHBwgHBwYJCQoKCQkMDAwMDAwMDAwMDAwMDAwBAwMDBQQFCQYGCQ0LCQsNDw4ODg4PDwwMDAwMDw8MDAwMDAwPDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDP/AABEIACgAKAMBEQACEQEDEQH/xACXAAADAQEBAAAAAAAAAAAAAAAABwgEBgkBAQEBAQEAAAAAAAAAAAAAAAYABwUDEAAAAgUHCwQDAQAAAAAAAAADBQERAgQHACESExQGFkFhQsTkhaVHZwgYY0QmF/AxM1ERAAEBBAMLDAMBAQAAAAAAAAECABESAxMFBiFBUWFCIwREZAcXMXEiYoKiwuKDo8Pj8BUWgST/2gAMAwEAAhEDEQA/APYCOEcPpnDHxjEmJLb72x1NjqPQHpUq/MpWVcxa0tpf01Hm444sqF0LsSnviZ3YqxX9JTZ6iooMiN8cXWS50ON72QfnD0w41sEi3ErZu/5Gd8FNt9r7GPOHphxrYJXErZu/5GuCm2+19jHnD0w41sEriVs3f8jXBTbfa+xn5A+OH3Nif4xhvDdi97bK62V/oAUaNRnWvIqdTZq0v7mkzcEEOVE+J+JLnQsEtrYr+boc9S0seRA6CHrKe+LE5zIPvh5Yb61CRbeVq3b8DO9ymu+l8jQPLLW3ZmlDKFBrFV8fCwhvCRlpq6MVrJWajPAIwwWkICgJ3GZbQzpIWtH7UqeXbqWoplaqKJUxCVC8okEjCHJL8d9jFpbUyahQmZPlTVINyJASQk4FPUkh96444XtjidDE+hQfOl3bxPZe+vr6XhmIQpcIKIEgIQUUFDLSRggWqVIFK0KUpU8vOuqlnVTOEmcUklIV0SSHEkXwLtxvazVpdGr/AEZWkaOlaUpWUdMAF4AVklQc5QvtWXY9zP3Lr8ne7XWex42yrfXqXq/Gx3w8sN9ahK3lat2/A1uU130vkaWYUQyfIqmt4SEsfGHQ1LSMY1K2Rf5DDAvDuEgERrRQ2yMlTWRKlzLkIqKpVVrMmSkFykoKhgJBSHHnfy4W0+1NpUVDJlT5iXoVNCFO5UgpUYhhcUi5fD77cZ8juPeP3V3rzXees4Y7uOGn8zJR/qEy5+f0GffRMQeYgj8/1ux/y1pouTMkzE86VJP5zg427OK8TXyKprd4+M3Nh0NS0jBKjRoL+QwwLw8CpGDZ0UNsjIWzkStUypdCva6VWsyXNWHKSgJOAkFReOd/Jhbj2Ws0ioZM2RLU9CppWl/KkFKRCcLik3b4dfapux7mfuXX5N92us9jxtmG+vUvV+Njvh5Yb61CVvK1bt+BrcprvpfI0mwxicfQoPnu8V3XQvfX19LxC4UIxDFECQEIKEMlplAIoLVKkChSVqUuaQSpa6nVTOM6SEklJT0gSHEg3iLtxtVtLZrRq/0ZOj6QpaUpWF9AgF4BTlBQc5RvNsibFc1iq+OZmfXeIy01dGKpo0KgXgEYYLRDGSK8DMtoZ0UqWj9LVNL0rqvZlaqC5stCVC+kEEjAXqL8V9vGzVlpNQoVLkTZqkG7CspIScKXJSQ+/dccD2VsuIydr47HuZ+5dflqW7XWex42wnfXqXq/Gz8jhA/7mwx8nw3hu2+ytldbKj1wKNGozrXkVOptLZr9zR5yCCLJifE7GlzoWCWKtr/N02ZpaWDLgdBF1VPfFic5kH4PdT+C7fItw12nuednfGvYvd+tjwe6n8F2+Vw12nuedrjXsXu/Wx4PdT+C7fK4a7T3PO1xr2L3frZ+QPgf9M4n+T4kxJYvZWOpsdf649KlX5lKyrmU2as1+mpM5HHDkwuhfjU98TBLa21/pKHM0VFHlxvjh6qXOhxve3//2Q=="; this.resizeButton="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyRpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoTWFjaW50b3NoKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDoyOURFMzVBQTFDMEYxMUU1QkZGMThFQkVBQkZDOTJGQiIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDoyOURFMzVBQjFDMEYxMUU1QkZGMThFQkVBQkZDOTJGQiI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOjI5REUzNUE4MUMwRjExRTVCRkYxOEVCRUFCRkM5MkZCIiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOjI5REUzNUE5MUMwRjExRTVCRkYxOEVCRUFCRkM5MkZCIi8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+xtc8kAAAAPRJREFUeNpi+P//vwgQrwHiz/8HD/gMdZMII5DYwMDA4M8wOMFmkAO/ABncg9SBv0AO/M8wiAELuoCuofGAOujy+bMofCaGQQ5GHTjqwFEHjjqQ3gU1JSA3K5MhLTUFpzw5lQBVQ3DytOkMs2bPGdxRTG1H0iQNUtORNMsk1HIkTXMxNRzJRG5upZcjySpmYEUJyHJiHUn3KAY5ktSQpHsaJNWRA5JJaO1IquRiWjqSasUMrRxJ1XKQFo4kq5ihZ9d0tME66sBRB446cKQ7cNAPYIJC8Osgdt8vkAP3DmIH7gQ5ENR+XwfEvweRw35D3ZQEEGAAKWvoecuY03wAAAAASUVORK5CYII="; this.init=function(d){this._super(d,this.resizeButton,this.resizeButtonHover)}})});p("mustang/com/stickyadstv/vpaid/decorator/NonLinearOverlay",["mod!com.stickyadstv.vpaid.core.NonLinear","mod!com.stickyadstv.vpaid.decorator.display.ButtonCloseUI","mod!com.stickyadstv.vpaid.decorator.display.ButtonRediuceUI","mod!com.stickyadstv.vpaid.decorator.display.ButtonResizeUI","mod!com.stickyadstv.utils.ZIndexUtils"],function(d,e,c,b,a){var f=new t("com.stickyadstv.vpaid.decorator.NonLinearOverlay");return d.extend(new function(){this.init= function(a,b,c){this._super(a,b,c);this._container=a;this._nonLinear=b;this._config=c;this._containerResize;this.closeButton;this.reduiceButton;this.resizeButton;this.on("AdStarted",this._startedHandler,this);this._logger=f};this._startedHandler=function(d){d=this._height/6;this.closeButton=new e(d);this.reduiceButton=new c(d);this.resizeButton=new b(d);this._buttonCloseSlot=this._container.slot("valign:top;overflow:hidden;padding-left:"+(this._width-d-2)+"px;zIndex:"+a.getZIndex(a.OVER_OVERLAY_ELEMENT)+ ";","sticky-close",this.closeButton);this._buttonCloseSlot.on("mouseover",this.closeButton.displayHoverButton,this.closeButton);this._buttonCloseSlot.on("mouseout",this.closeButton.displayButton,this.closeButton);this._buttonCloseSlot.on("click",this._stopAdHandler,this);this._buttonCloseSlot.show();this._buttonReduiceSlot=this._container.slot("valign:top;overflow:hidden;padding-left:"+(this._width-2*d-4)+"px;zIndex:"+a.getZIndex(a.OVER_OVERLAY_ELEMENT)+";","sticky-reduce",this.reduiceButton);this._buttonReduiceSlot.on("mouseover", this.reduiceButton.displayHoverButton,this.reduiceButton);this._buttonReduiceSlot.on("mouseout",this.reduiceButton.displayButton,this.reduiceButton);this._buttonReduiceSlot.on("click",this._minimizeHandler,this);this._buttonReduiceSlot.show();this._buttonResizeSlot=this._container.slot("valign:bottom;padding-left:"+(this._width-d-2)+"px;zIndex:"+a.getZIndex(a.OVER_OVERLAY_ELEMENT)+";","sticky-resize",this.resizeButton);this._buttonResizeSlot.on("mouseover",this.resizeButton.displayHoverButton,this.resizeButton); this._buttonResizeSlot.on("mouseout",this.resizeButton.displayButton,this.resizeButton);this._buttonResizeSlot.on("click",this._maximizeHandler,this);this._buttonResizeSlot.hide()};this._stopAdHandler=function(a){this.stopAd()};this._minimizeHandler=function(a){this._backupHeight=this._container.height();this._container.css("height","0px");this._buttonCloseSlot.hide();this._buttonReduiceSlot.hide();this._buttonResizeSlot.show()};this._maximizeHandler=function(a){this._buttonResizeSlot.hide();this._container.css("height", this._backupHeight+"px");this._buttonCloseSlot.show();this._buttonReduiceSlot.show()};this._durationChangeHandler=function(a){}})});p("mustang/com/stickyadstv/vpaid/factory/overlayFactory",["mod!com.stickyadstv.vpaid.core.NonLinear","mod!com.stickyadstv.dom.Element","mod!com.stickyadstv.utils.Browser","mod!com.stickyadstv.vpaid.decorator.NonLinearOverlay","mod!com.stickyadstv.utils.MediaFileManager"],function(d,e,c,b,a){function f(a){for(var b=[],c=0;c<a.length;c++)b.push(a[c].mediaFile());return b} function g(a,b){for(var c=[],d=0,e=b.length;0!=b.length&&d<e;){for(var f=-1,g=0;-1==f&&g<b.length;){var h=b[g].mediaFile();a[0].xml()==h.xml()&&(f=g);g++}a.shift();c.push(b[f]);b.splice(f,1);d++}return c}function h(a,b,c){return(b=U(c,function(b){return b.width()<=a.width()&&b.height()<=a.height()}))?b:c[0]}function k(a){return a.exist("anchor")||a.exist("minimize")||a.exist("close")}new t("com.stickyadstv.vpaid.factory.overlayFactory");return function(e,q,v,l){var m=Y(q.nonLinears(),function(a){return!a.mediaFile().useFlash()|| c.isFlashSupported()}),w=f(m);w=a.filterMediaFiles(w);w=a.sortMediaFiles(w,v);m=g(w,m);if(q=h(e,q,m))(k(new Q(v))?new b(e,q,v):new d(e,q,v)).create(l);else l.onSuccess({})}});p("mustang/com/stickyadstv/vpaid/core/Companion",["mod!com.stickyadstv.vpaid.Wrapper","mod!com.stickyadstv.utils.Browser","mod!com.stickyadstv.vast.VastError","conf!vpaid.factory.content","mod!com.stickyadstv.utils.ZIndexUtils"],function(d,e,c,b,a){var f=new t("com.stickyadstv.vpaid.core.Companion");return d.extend(new function(){this.init= function(d,e,k){k=k||{};this._creative=e;this._config=k||{};this._zone=d;e={};e.AdImpression=this._bubble(this._impressionHandler);e.AdClickThru=this._clickHandler;e.AdLoaded=this._loadedHandler;var g=this._creative.mediaFile(),h=g.duration();this._super(function(e){if(this._container=d.lock({classes:["sticky-companion"],style:{"z-index":a.getZIndex(a.COMPANION_ELEMENT)}}))this._zone.available(!1),b(this._container,[g],h,!1,k,e);else e.onError(new c("companion container initialization failed.",602))}, e,h);this._logger=f};this.adId=function(){return this._creative.id()};this.universalAdId=function(){return this._creative.universalAdId()};this._dispose=function(){this._super();this._container.off("resize",this._resizeHandler,this);this._zone.unlock(this._container)};this._resizeHandler=function(a){this.resizeAd(this._container.width(),this._container.height(),"")};this._loadedHandler=function(a){this._container.on("resize",this._resizeHandler,this);this._forwardEvent(a)};this._impressionHandler= function(a){this._creative.trackEvent("creativeView")};this._click=function(a,b,c){c=this._creative.clickThrough()||c;-1<c.indexOf("ads.stickyadstv.com")&&(c="&"==c[c.length-1]?c:c+"&",c+="clickX="+a+"&clickY="+b+"&");a={url:c,playerHandles:!1,clickX:a,clickY:b};this._creative.trackClick(a);c&&e.open(c);this._dispatchEvent("AdClickThru",a)};this._clickThruHandler=function(a){var b=O(a);S(b.playerHandles,!0)?this._click(b.clickX,b.clickY,b.url):(this._creative.trackClick(a),this._forwardEvent(a))}; this.resizeAd=function(a,b,c){this._super(this._container.width(),this._container.height(),"")};this.initAd=function(a,b,c,d,e,f){this._super(this._container.width(),this._container.height(),"",d,e||this._creative.adParameters(),f)};this.adLinear=function(){return!1}})});p("mustang/com/stickyadstv/vpaid/factory/companionFactory",["mod!com.stickyadstv.vpaid.core.Companion","mod!com.stickyadstv.utils.Browser"],function(d,e){function c(a,e,g,h,k){if(a.length&&g.length){var f=[],q=[];r(a,function(a){var b= a.container();b&&r(g,function(c){if(c.width()>b.width()||c.height()>b.height()){var d=Math.max(0,c.width()-b.width())*c.height()+Math.max(0,c.height()-b.height())*c.width();q.push({value:d,companion:c,zone:a})}else d=c.width()*c.height()/(b.width()*b.height()),f.push({value:d,companion:c,zone:a})})});if(f.length){f=f.sort(function(a,b){return b.value-a.value});var v=f[0]}else q=q.sort(function(a,b){return a.value-b.value}),v=q[0];if(v){var l=v.zone;var n=v.companion;(new d(l,n,h)).create(new function(){this.onSuccess= function(d){var f=d.ad;c(Y(a,u(ya,0,l)),e,Y(g,u(ya,0,n)),h,new function(){this.onSuccess=function(a){k.onSuccess({companions:a.companions.concat(f?[f]:[])})};this.onError=function(a){b.warn(a);k.onSuccess({companions:[f]})}})};this.onError=function(a){k.onError(a)}})}else k.onError(Error("No valid companion container found."))}else k.onSuccess({companions:[]})}var b=new t("com.stickyadstv.vpaid.factory.companion");return function(a,b,d,h){c(a,b,Y(b.companions(),function(a){return!a.mediaFile().useFlash()|| e.isFlashSupported()}),d,h)}});p("mustang/com/stickyadstv/vpaid/core/Ad","mod!com.stickyadstv.vpaid.Base mod!com.stickyadstv.vpaid.composite.Sequential mod!com.stickyadstv.vpaid.composite.Parallel mod!com.stickyadstv.vpaid.composite.MasterSlave conf!vpaid.factory.linear conf!vpaid.factory.overlay conf!vpaid.factory.companion mod!com.stickyadstv.utils.Browser mod!com.stickyadstv.utils.ExtensionsManager mod!com.stickyadstv.vast.VastError".split(" "),function(d,e,c,b,a,f,g,h,k,m){function q(d,e,h,m, q,k){function B(a){return a.available()}var A=[],l=[],w=[];oa(d,function(b,c){try{var d=b.tagName();if("Linear"==d)a(e,b,C({},q.linear,m),new function(){this.onSuccess=function(a){w.push(a.ad);c()};this.onError=function(a){k.onError(a)}});else if("CompanionAds"==d){var y=Y(h,B);g(y,b,C({},q.companion,m),new function(){this.onSuccess=function(a){A=A.concat(a.companions);c()};this.onError=function(a){if(S(q.strict,!1))k.onError(a);else v.warn(a),c()}})}else if("NonLinearAds"==d)f(e,b,C({},q.overlay, m),new function(){this.onSuccess=function(a){(a=a.ad)&&l.push(a);c()};this.onError=function(a){k.onError(a)}});else k.onError(Error("Unkwnown creative type.('"+d+"')"))}catch(ub){k.onError(ub)}},function(){try{var a;if(w.length){1<w.length&&v.warn("Multiple linear creative not allowed ('"+w.length+"'). Only the fist linear will be used.");var d=w[0];var e=A.concat(l);e.length&&(a=new c(e))}else if(l.length)d=new c(l),A.length&&(a=new c(A));else if(A.length)d=new c(A);else throw Error("No ad found."); k.onSuccess({ad:new b(d,a)})}catch(tb){k.onError(tb)}})}var v=new t("com.stickyadstv.vpaid.core.Ad"),l={},n=C({AD_START:"adStart",AD_COMPLETE:"adComplete",AD_SLOT_COMPLETE:"adSlotComplete"},e.events);return e.extend({events:n},new function(){this.init=function(a,b,c,e,f){f=new Q(f);this._super([],f.number("preload",1500));this._logger=v;this._vastAd=a;this._container=b;this._playerState=c;this._companionZones=e;this._vastLoader=null;this._config=f;this._adVerifications=a._adVerifications;0<f.number("preload", 1500)&&!h.isAppleTV()&&this._config.value("invisibleinit",!0);l.AdError="error";l.AdVideoStart="start";l.AdStarted="start";l.AdVideoFirstQuartile="firstQuartile";l.AdVideoMidpoint="midpoint";l.AdVideoThirdQuartile="thirdQuartile";l.AdVideoComplete="complete";l.adComplete="complete";l.AdPaused="pause";l.adResume="resume";l.AdSkipped="close";this._handlers.AdClickThru=this._clickThruHandler;r(d.events,function(a,b){this._handlers[a]=this._handlers[a]||this._forwardEvent},this)};this.setVastLoader=function(a){this._vastLoader= a};this._createAds=function(a,b){if(this._vastAd.vastTagUri()&&ha(this._vastAd.ads())){if(!this._vastLoader)throw Error("Ad wrapper doesn't have a vast loader set.");this._vastLoader.followRedirect(this._vastAd,aa(new function(){this.onSuccess=function(){this._createAds(a,b)};this.onError=function(a){b.onError(a)}},this))}else ha(this._vastAd.ads())?this._createCreativeSequence(a,b):this._createAdSequence(a,b)};this._createAdSequence=function(a,b){a.wrapperExtensions=k.mergeExtensionsNodes(this._vastAd.extensions(), a.wrapperExtensions);try{var c=this._vastLoader.getAdCores(this._vastAd,this._container,this._playerState,this._companionZones,this._config);b.onSuccess({ads:c,environment:a})}catch(A){b.onError(A)}};this._createCreativeSequence=function(a,b){try{var c=[],d=null,e=C({clientExtensions:this._config.string("clientExtensions","")},a);e.extensions=k.mergeExtensionsNodes(this._vastAd.extensions(),a.wrapperExtensions);a.wrapperExtensions=null;var f=this._config.object("linear,companion,overlay,strict"); "object"!=typeof f.linear&&delete f.linear;f.linear=C({},f.linear,this._config.object("componentId,adParameters,playButton,remainingAdTime,learnMoreButton,learnMoreButtonText,soundButton,defaultMute,autoPauseOnVisibilityChange,stickyView,poster,videoSlotCanAutoPlay,fullscreen,invisibleinit"));f.overlay=C({},f.overlay,this._config.object("componentId,close,anchor,minimize"));oa(this._vastAd.creatives(),function(a,b){q(a,this._container,this._companionZones,e,f,aa(new function(){this.onSuccess=function(a){var d= a.ad;if(!d.adLinear()){var e=function(){d.off("AdStopped",e).off("AdError",e);g.off("playerstop",f)},f=function(a){d.stopAd()},g=this._playerState;this._playerState.on("playerstop",f);d.on("AdStopped",e).on("AdError",e)}c.push(d);b()};this.onError=function(a){d=a;v.warn("An error occurred while creating ad.",a);b()}},this))},function(){if(this._ads.length||c.length||!d)b.onSuccess({ads:c,environment:a});else b.onError(d)},this)}catch(L){b.onError(L)}};this.adId=function(){return this._vastAd.id()}; this.adSequenceNumber=function(){return this._vastAd.getSequenceNumber()};this.universalAdId=function(){return this._vastAd.universalAdId()};this.universalAdIdValue=function(){return this._vastAd.universalAdIdValue()};this.universalAdIdRegistry=function(){return this._vastAd.universalAdIdRegistry()};this._impressionHandler=function(a){this._started=!0;this._dispatchEvent("adStart",O(a));this._eventSent[a.type]&&!this._vastAd.vastTagUri()||this._vastAd.trackImpression();this._super(a)};this._stoppedHandler= function(a){this._started&&this._dispatchEvent("adComplete",O(a));this._started=!1;this._super(a)};this._errorHandler=function(a){this._started&&this._dispatchEvent("adComplete",O(a));this._started=!1;this._vastAd.trackError(m.fromEventData(O(a)));this._super(a)};this._clickThruHandler=function(a){this._vastAd.hasWrapper()&&this._vastAd.trackClick(a);this._forwardEvent(a)};this._videoStartHandler=function(a){this._vastAd.hasWrapper()&&this._trackEvent(l[a.type]);this._super(a)};this._videoQuartileHandler= function(a){this._vastAd.hasWrapper()&&this._trackEvent(l[a.type]);this._super(a)};this._videoCompleteHandler=function(a){this._vastAd.hasWrapper()&&this._trackEvent(l[a.type]);this._super(a)};this._trackEvent=function(a){this._vastAd.trackEvent(a)}})});p("mustang/com/stickyadstv/vpaid/core/VpaidAdapterCore","mod!com.stickyadstv.vpaid.composite.Sequential mod!com.stickyadstv.vpaid.core.Ad mod!com.stickyadstv.utils.Browser mod!com.stickyadstv.utils.network mod!com.stickyadstv.xml.XmlNode mod!com.stickyadstv.utils.ExtensionsManager mod!com.stickyadstv.vast.VastError".split(" "), function(d,e,c,b,a,f,g){var h=new t("com.stickyadstv.vpaid.core.VpaidAdapterCore");c=C({AD_START:"adStart",AD_COMPLETE:"adComplete"},d.events);return d.extend({events:c},new function(){this.init=function(a,b,c,d,e,f){e=new Q(e);this._super([],e.number("preload",1500));this._vastLoader=a;this._vast=a.getVast();this._container=b;this._companionZones=d;this._playerState=c;this._config=e;this._creativeData=f;this._logger=h};this._createAds=function(b,c){this._vastLoader.load(b,aa(new function(){this.onSuccess= function(){try{if(this._vast.empty())this._dispatchOnce("AdVastLoaded",{vast:this._vast}),h.warn("Empty vast. (env:"+ia(this._environment)+")"),this._dispatchOnce("AdError",{reason:"vast empty",errorcode:303});else{this._dispatchOnce("AdVastLoaded",{vast:this._vast});var d=fa(this._vast.ads(),function(b){var c=this._vast.getExtensionsNode().children("Extension"),d=b.getAdParameters().xml();try{var g=d,m=(new f(g)).getCreativeDataExtensions();if(!m.isEmpty()){m=f.removeManagedExtensions(m,c);var q= f.toExtensionsNode(m);d=f.replaceExtensionsNode(new a(g),q).xml()}}catch(y){h.debug("Ad parameters can't be parse as extension data")}this._config=new Q(C(this._config.data(),{adParameters:d}));b=new e(b,this._container,this._playerState,this._companionZones,this._config);b.setVastLoader(this._vastLoader);this._creativeData&&(c=(new f(this._creativeData)).getCreativeDataExtensions(),b=f.decorateAd(b,this._container,this._config,c));return b},this),g={};r(b,function(a,b){"loc"!=b&&"zoneId"!=b&&"zone"!= b&&(g[b]=a)});c.onSuccess({ads:d,environment:g})}}catch(F){c.onError(F)}};this.onError=function(a){c.onError(a)}},this))};this._loadingErrorHandler=function(a){this._dispatchEvent("AdError",a)};this._registerListener=function(a){this._super(a);a.on("adStart",this._forwardEvent,this)};this._unregisterListener=function(a){this._super(a);a.off("adStart",this._forwardEvent,this)}})});p("mustang/com/stickyadstv/vast/creative/Creative",["mod!com.stickyadstv.xml.List","mod!com.stickyadstv.utils.network", "mod!com.stickyadstv.vast.VastError"],function(d,e,c){var b=new t("com.stickyadstv.vast.creative.Creative");return d.extend(new function(){this.init=function(a,b,e){this._super(e);if(this.isEmpty())throw new c("Empty creative",101);this._creative=new d(b);this._tagName=a;this._universalAdId={}};this.merge=function(a){this._nodeList=a._nodeList};this.id=function(){return this._creative.attr("AdID")};this.universalAdId=function(){var a=this._creative.children("UniversalAdId");a.isEmpty()?b.warn("No Universal Ad ID is present in the VAST response."): (this._universalAdId.idRegistry=a.attr("idRegistry"),this._universalAdId.idValue=a.text());return this._universalAdId};this.tagName=function(){return this._tagName};this.trackClick=function(a,b){var c=this.children("VideoClicks","ClickTracking").map(function(b){return e.expandUrl(b.text(),a)});c=c.concat(this.children("VideoClicks","CustomClick").map(function(b){return e.expandUrl(b.text(),a)}));a="undefined"!=typeof a.detail?a.detail:a;for(var d=0;d<c.length;d++)c[d]=this.processXAndYToUrl(a.clickX, a.clickY,c[d]);e.trackEach(c,b)};this.processXAndYToUrl=function(a,b,c){"undefined"!=typeof a&&"undefined"!=typeof b?(-1<c.indexOf("clickX")?c=c.replace(/\[clickX\]/g,Math.round(a)):(c="&"==c[c.length-1]?c:c+"&",c+="clickX="+Math.round(a)+"&"),-1<c.indexOf("clickY")?c=c.replace(/\[clickY\]/g,Math.round(b)):(c="&"==c[c.length-1]?c:c+"&",c+="clickY="+Math.round(b)+"&")):(c=c.replace(/click[X|Y]=\[click[X|Y]][(&|#]/g,""),c=c.replace(/click[X|Y]=\[click[X|Y]][(&|#]/g,""));return c};this.trackEvent=function(a, b,c){if(!a)throw Error("Bad argument.");a=this.children("TrackingEvents","Tracking").filter(hb("event",a)).map(function(a){return e.expandUrl(a.text(),b)});e.trackEach(a,c)}})});p("mustang/com/stickyadstv/vpaid/viewability/omid/OmsdkConstants",[],function(){return N.extend({OmidPartnerName:"freewheeltv",OmidPartnerVersion:"1.12.11.0",OmsdkServiceScriptUrl:"https://cdn.stickyadstv.com/prime-time/omsdk/1.4.7/omweb-v1.js",OmsdkSessionScriptUrl:"https://cdn.stickyadstv.com/prime-time/omsdk/1.4.7/omid-session-client-v1.js", AccessMode:{LIMITED:"limited",DOMAIN:"domain",CREATIVE:"creative",FULL:"full"},CreativeType:{VIDEO:"video",AUDIO:"audio"},VerificationNotExecutedReason:{VERIFICATION_RESOURCE_REJECTED:1,VERIFICATION_NOT_SUPPORTED:2,VERIFICATION_RESOURCE_LOAD_ERROR:3},AD_VERIFICATION_EVENT_NOT_EXECUTED:"verificationNotExecuted"},{})});p("mustang/com/stickyadstv/vast/Verification",["mod!com.stickyadstv.vpaid.viewability.omid.OmsdkConstants","mod!com.stickyadstv.utils.Browser"],function(d,e){var c=new t("com.stickyadstv.vast.Verification"); return N.extend(new function(){this.init=function(b){this.vendor=b.attr("vendor")||"";this.javaScriptResources=[];this._parseJavaScriptResources(b,this.javaScriptResources);this.executableResources=[];this._parseExecutableResources(b,this.executableResources);this.trackingEvents=[];this._parseTrackingEvents(b,this.trackingEvents);this.verificationParameters=(b=b.firstChild("VerificationParameters"))?b.text():""};this._parseJavaScriptResources=function(b,a){b=b.children().filter(function(a){return"JavaScriptResource"== a.nodeName()});b.isEmpty()||b.map(function(b){a.push({url:b.text(),apiFramework:b.attr("apiFramework")||"",browserOptional:b.attr("browserOptional")||""})})};this._parseExecutableResources=function(b,a){b=b.children().filter(function(a){return"ExecutableResource"==a.nodeName()});b.isEmpty()||b.map(function(b){a.push({url:b.text(),apiFramework:b.attr("apiFramework")||"",type:b.attr("type")||""})})};this._parseTrackingEvents=function(b,a){b=b.children().filter(function(a){return"TrackingEvents"==a.nodeName()}).children("Tracking"); b.isEmpty()||b.map(function(b){a.push({event:b.attr("event"),url:b.text()})})};this.getTrackingEventsByName=function(b){var a=[];this.trackingEvents.map(function(c){c.event===b&&a.push(c.url)});return a};this.dispatchVerificationNotExecutedCallback=function(b,a){c.warn("Dispatch Verification Not Executed Callback for ",b);this.getTrackingEventsByName(d.AD_VERIFICATION_EVENT_NOT_EXECUTED).each(function(b){b=b.replace("[REASON]",a);e.touch(b)})}})});p("mustang/com/stickyadstv/vast/creative/MediaFile", ["mod!com.stickyadstv.xml.List"],function(d){new t("com.stickyadstv.vast.creative.MediaFile");return d.extend(new function(){this.width=function(){return G(this.attr("width"))};this.height=function(){return G(this.attr("height"))};this.type=function(){return this.attr("type")};this.scalable=function(){return S(this.attr("scalable"),!0)};this.maintainAspectRatio=function(){return S(this.attr("maintainAspectRatio"),!1)};this.apiFramework=function(){return this.attr("apiFramework")};this.useFlash=function(){var d= this.type();return d&&d.toLowerCase()==ta};this.url=function(){return this.text()};this.bitrate=function(){return G(this.attr("bitrate"))}})});p("mustang/com/stickyadstv/vast/creative/Linear",["mod!com.stickyadstv.vast.creative.Creative","mod!com.stickyadstv.vast.creative.MediaFile","mod!com.stickyadstv.utils.VastUtils","mod!com.stickyadstv.utils.MediaFiles"],function(d,e,c,b){new t("com.stickyadstv.vast.creative.Linear");return d.extend(C({tagName:"Linear"},{EVENT_ERROR:"error",EVENT_START:"start", EVENT_FIRST_QUARTILE:"firstQuartile",EVENT_MIDPOINT:"midpoint",EVENT_THIRD_QUARTILE:"thirdQuartile",EVENT_COMPLETE:"complete",EVENT_MUTE:"mute",EVENT_UNMUTE:"unmute",EVENT_PAUSE:"pause",EVENT_REWIND:"rewind",EVENT_RESUME:"resume",EVENT_FULLSCREEN:"fullscreen",EVENT_EXPAND:"expand",EVENT_COLLAPSE:"collapse",EVENT_ACCEPT_INVITATION:"acceptInvitation",EVENT_CLOSE:"close"}),new function(){this.init=function(a,b,c){this._super("Linear",a,b);this._sequence=c};this.sequence=function(){return this._sequence}; this.clickThrough=function(){return this.children("VideoClicks","ClickThrough").text()};this.adParameters=function(){var a=this.children("AdParameters");return a.isEmpty()?"":a.children().text()};this.duration=function(){return c.convertDuration(this.children("Duration").text())};this.skipOffset=function(){var a=this.attr("skipoffset");return a&&-1!=a.indexOf(":")?c.convertDuration(this.attr("skipoffset")).toString():a};this.mediaFiles=function(){if("undefined"==typeof this._mediaFiles){var a=new b; this.children("MediaFiles","MediaFile").each(function(b){a.push(new e(b))});this._mediaFiles=a}return this._mediaFiles};this.setMediaFiles=function(a){this._mediaFiles=a}})});p("mustang/com/stickyadstv/vast/creative/media/CompanionMedia",["mod!com.stickyadstv.vast.creative.MediaFile"],function(d){new t("com.stickyadstv.vast.creative.media.CompanionMedia");var e={IFrameResource:"iframe",HTMLResource:"html"};return d.extend(new function(){this.init=function(c,b){this._super(c);this._content=b};this.type= function(){return e[this._content.nodeName()]||this._content.attr("creativeType")};this.content=function(){return this._content.text()};this.url=function(){return this.content()};this.duration=function(){return 3600}})});p("mustang/com/stickyadstv/vast/creative/Companion",["mod!com.stickyadstv.vast.creative.Creative","mod!com.stickyadstv.vast.creative.media.CompanionMedia"],function(d,e){var c=new t("com.stickyadstv.vast.creative.Companion");return d.extend(C({tagName:"Companion"},{EVENT_CREATIVE_VIEW:"creativeView", CREATIVE_EVENT_COMPLETE:"complete"}),new function(){this.init=function(b,a){this._super("Companion",b,a);b=this.children("IFrameResource,HTMLResource,StaticResource");b.isEmpty()?(c.warn("Unexpected companion type."),this._content=null):this._content=b.first()};this.isValid=function(){return null!=this._content};this.adParameters=function(){var b=this.children("AdParameters");return b.isEmpty()?"":b.children().xml()};this.type=function(){return this._content?this._content.nodeName():""};this.mediaFile= function(){return this._content?new e(this,this._content):null};this.width=function(){return this._content?this.mediaFile().width():0};this.height=function(){return this._content?this.mediaFile().height():0};this.clickThrough=function(){return this._content?this.children("CompanionClickThrough").text():""}})});p("mustang/com/stickyadstv/vast/creative/CompanionAds",["mod!com.stickyadstv.vast.creative.Creative","mod!com.stickyadstv.vast.creative.Companion","mod!com.stickyadstv.xml.XmlNode"],function(d, e,c){function b(a){return function(b,c){return Ga(b.attr(a),c.attr(a))}}new t("com.stickyadstv.vast.creative.CompanionAds");Ua(b("width"),b("height"),function(a,b){return Ga(a.firstChild().nodeName(),b.firstChild().nodeName())});return d.extend({tagName:"CompanionAds"},new function(){this.init=function(a,b,c){this._super("CompanionAds",a,b);this._sequence=c};this.sequence=function(){return this._sequence};this.companions=function(){var a=[];this.children("Companion").each(function(b){b=new e(this._creative, [b]);b.isValid()&&a.push(b)},this);return a}})});p("mustang/com/stickyadstv/vast/creative/media/NonLinearMedia",["mod!com.stickyadstv.vast.creative.MediaFile","mod!com.stickyadstv.utils.VastUtils"],function(d,e){new t("com.stickyadstv.vast.creative.media.NonLinearMedia");var c={IFrameResource:"iframe",HTMLResource:"html"};return d.extend(new function(){this.init=function(b,a){this._super(b);this._content=a};this.type=function(){return c[this._content.nodeName()]||this._content.attr("creativeType")}; this.content=function(){return this._content.text()};this.url=function(){return this.content()};this.duration=function(){var b=this.attr("minSuggestedDuration");return b?e.convertDuration(b):20};this.layout=function(){return this.attr("layout")};this.name=function(){return this.attr("name")}})});p("mustang/com/stickyadstv/vast/creative/NonLinear",["mod!com.stickyadstv.vast.creative.Creative","mod!com.stickyadstv.vast.creative.media.NonLinearMedia","mod!com.stickyadstv.vast.VastError"],function(d, e,c){new t("com.stickyadstv.vast.creative.NonLinear");return d.extend(C({tagName:"NonLinear"},{EVENT_CREATIVE_VIEW:"creativeView",CREATIVE_EVENT_COMPLETE:"complete"}),new function(){this.init=function(b,a){this._super("NonLinear",b,a);b=this.children("IFrameResource,HTMLResource,StaticResource");if(b.isEmpty())throw new c("Unexpected non linear type.",500);this._content=b.first()};this.adParameters=function(){var b=this.children("AdParameters");return b.isEmpty()?"":b.children().xml()};this.type= function(){return this._content.nodeName()};this.mediaFile=function(){return new e(this,this._content)};this.width=function(){return this.mediaFile().width()};this.height=function(){return this.mediaFile().height()};this.clickThrough=function(){return this.children("NonLinearClickThrough").text()}})});p("mustang/com/stickyadstv/vast/creative/NonLinearAds",["mod!com.stickyadstv.vast.creative.Creative","mod!com.stickyadstv.vast.creative.NonLinear"],function(d,e){new t("com.stickyadstv.vast.creative.NonLinearAds"); return d.extend(C({tagName:"NonLinearAds"},{EVENT_CREATIVE_VIEW:"creativeView",EVENT_ERROR:"error",EVENT_START:"start",EVENT_FIRST_QUARTILE:"firstQuartile",EVENT_MIDPOINT:"midpoint",EVENT_THIRD_QUARTILE:"thirdQuartile",EVENT_COMPLETE:"complete",EVENT_MUTE:"mute",EVENT_UNMUTE:"unmute",EVENT_PAUSE:"pause",EVENT_REWIND:"rewind",EVENT_RESUME:"resume",EVENT_FULLSCREEN:"fullscreen",EVENT_EXPAND:"expand",EVENT_COLLAPSE:"collapse",EVENT_ACCEPT_INVITATION:"acceptInvitation",EVENT_CLOSE:"close"}),new function(){this.init= function(c,b,a){this._super("NonLinearAds",c,b);this._sequence=a;if(!this.firstChild("NonLinear"))throw Error("NonlinearAds is missing NonLinear child.");};this.sequence=function(){return this._sequence};this.nonLinears=function(){var c=[];this.children("NonLinear").each(function(b){c.push(new e(this._creative,[b]))},this);return c}})});p("mustang/com/stickyadstv/vast/Ad","mod!com.stickyadstv.xml.XmlNode mod!com.stickyadstv.xml.List mod!com.stickyadstv.utils.network mod!com.stickyadstv.vast.creative.Creative mod!com.stickyadstv.vast.VastError mod!com.stickyadstv.vast.Verification conf!vast.creative.classes".split(" "), function(d,e,c,b,a,f,g){function h(a){var b=a?a.tagName||"*":"*";return function(a){return a.firstChild(b)}}function k(a,b,c){try{var d=U(a,function(a){return b(a)});d||w.warn("Unkwown creative type. "+c+" cannot be read in this context.");return d}catch(T){return w.warn(T),null}}function m(a,b){return k(a,function(a){return b.firstChild(a.tagName)},b.firstChild().nodeName())}function q(a,b){a=a.attr("sequence");if(!a)return b||0;b=parseInt(a,10);isNaN(b)&&(w.warn("Corrupted sequence number. ('"+ a+"')"),b=-1);return b}function v(a,b,c){return q(a,c)-q(b,c)}function l(a){return function(b,c){c=m(a,c);return c?(b=m(a,b))?Ga(b.tagName,c.tagName):-1:1}}function p(a){var b=Ua(v,l(a));return function(a,c){return b(a[0],c[0])}}var w=new t("com.stickyadstv.vast.Ad");return d.extend(new function(){this.init=function(a,b,c){this._super(a);this._options=new Q(b);this._creativeClasses=this._options.array("creativeClasses")||g();this._vastTagUri="";this._ads=[];this._vastTagIndex=-1;this._primaryCreativeUniversalAdId= {};this._adVerifications=[];this._vastVersion=c};this.id=function(){return this.attr("id")};this.adType=function(){return this.attr("adType")};this.ads=function(a){n(a)||(this._ads=a);return ba(this._ads)};this.leafDoc=function(a){n(a)||(this._leafDoc=a);return this._leafDoc};this.leafXml=function(){return this._leafDoc?this._leafDoc.xml():null};this.vastTagUri=function(a){n(a)||(this._vastTagUri=a);return this._vastTagUri};this.getAdParameters=function(){return(this._leafDoc||this).find("AdParameters").children()}; this.getSequenceNumber=function(){return G(this.attr("sequence"),-1)};this.vastTagIndex=function(){return this._vastTagIndex};this._parseVast=function(b,c,d){try{if(b&&!b.isEmpty()){var e=b.children("Wrapper,InLine").first();if(!e)throw new a("Unexpected ad content.",101);this._nodeList.unshift(e);this._parseAdVerifications();if("Wrapper"==e.nodeName()){var f=e.children("VASTAdTagURI").text();if(!f)throw new a("Empty 'VASTAdTagURI' tag.",300);if(0==f.indexOf("already-loaded://")){var g=G(f.substr(17)); if(!P(g)||0>g)throw Error("Corrupted index. ('"+g+"')");this._vastTagIndex=g}else this.vastTagUri(f)}}d.onSuccess({ad:this})}catch(da){b=new a(da.message,100),d.onError(b)}};this.trackError=function(b,d){b.errorcode=b.errorcode;b.message=b.message;var e=a.getMessage(900);"errorcode"in b&&!isNaN(b.errorcode)?(e=a.getMessage(b.errorcode),"message"in b&&(e=b.message),w.warn("Error code : "+b.errorcode+" - "+e)):b.detail&&"errorcode"in b.detail?(e=a.getMessage(b.detail.errorcode),"message"in b&&(e=b.message), w.warn("Error code : "+b.detail.errorcode+" - "+e),b.errorcode=b.detail.errorcode):("message"in b&&(e=b.message),w.error("Error without any code. Sending 900 - "+e));d=d||{};var f=this._nodeList.children("Error").map(function(a){a=c.expandUrl(a.text(),b);if(-1<a.indexOf("ads.stickyadstv.com")){var d=encodeURIComponent(e).slice(0,500),f=d.lastIndexOf("%");0<f&&(d=d.slice(0,f));a+="errorMessage="+d+"&"}return a});c.trackEach(f,d)};this.trackImpression=function(a){var b={};a=a||{};var d=this._nodeList.children("Impression").map(function(a){return c.expandUrl(a.text(), b)});c.trackEach(d,a)};this.trackEvent=function(a,b){b=b||{};for(var c=this.creatives(),d=0;d<c.length;d++)for(var e=c[d],f=0;f<e.length;f++)e[f].trackEvent(a,b)};this.trackClick=function(a){a=a||{};for(var b=this.creatives(),c=0;c<b.length;c++)for(var d=b[c],e=0;e<d.length;e++)d[e].trackClick(a)};this._groupCreative=function(a){var b=this._nodeList.clone(),c=[],d=b.shift().children("Creatives","Creative").filter(a),e=b.children("Creatives","Creative").filter(a).toArray(),f=l(this._creativeClasses), g=0;a=d.children("UniversalAdId");a.isEmpty()?w.warn("No Universal Ad ID is present in the VAST response."):(this._primaryCreativeUniversalAdId.idRegistry=a.attr("idRegistry"),this._primaryCreativeUniversalAdId.idValue=a.text());d.each(function(a){var b=[a];g=q(a,g);b.sequence=g;for(var d=0;d<e.length;){var h=e[d];f(h,a)||v(h,a,g)?d++:(e.splice(d,1),b.unshift(h))}c.push(b)});return c};this.creativesIterator=function(a){if(H(a)&&(a=k(this._creativeClasses,function(b){return b.tagName==a}),!a))return pb; var c=this._groupCreative(h(a||b)).sort(p(this._creativeClasses)),d=new function(){this.hasNext=function(){return 0!=c.length};this.sequence=function(){return c[0].sequence};this.next=function(){for(var b=d.sequence(),e=[];c.length;){var f=c[0],g=f[0];if(b!=q(g,b))break;c.shift();try{var h=a||m(this._creativeClasses,g);h&&e.push(new h(f,fa(f,function(a){return a.firstChild("Linear,NonLinearAds,CompanionAds")}),b))}catch(Z){w.warn(Z)}}return e};this.toArray=function(){for(var a=[];d.hasNext();)a.push(d.next()); return a}};return d=aa(d,this)};this.creatives=function(){if(this.empty())return[];if(!this._creatives){var b=this.creativesIterator().toArray();if(0==b.length&&!this.vastTagUri())throw new a("Can't find any Creative.",101);this._creatives=b}return this._creatives};this.creativeLinears=function(){var a=this.creatives();return fa(a,function(a){return Y(a,function(a){return"Linear"==a.tagName()})})};this.creativeLinear=function(){var a=this.creativesIterator("Linear");return a.hasNext()?a.next()[0]: null};this.universalAdId=function(){return this._primaryCreativeUniversalAdId};this.universalAdIdValue=function(){return this._primaryCreativeUniversalAdId.idValue};this.universalAdIdRegistry=function(){return this._primaryCreativeUniversalAdId.idRegistry};this.extensions=function(){return"<Extensions>"+this._nodeList.children("Extensions","Extension").xml()+"</Extensions>"};this._parseAdVerifications=function(){this._adVerifications=4>=this._vastVersion?this._parseAdVerificationsNode(this._nodeList.children("Extensions", "Extension").filter(function(a){return"AdVerifications"==a.attr("type")})):this._parseAdVerificationsNode(this._nodeList)};this._parseAdVerificationsNode=function(a){var b=[];a.children("AdVerifications","Verification").each(function(a){b.push(new f(a))});return b};this.adVerifications=function(){return this._adVerifications};this.parse=function(a,b){if(this._parsed)b.onSuccess({ad:this});else this._parsed=!0,this._nodeList=new e,this._parseVast(this,a,b)};this.hasInline=function(){return!this._nodeList.filter(function(a){return"InLine"== a.nodeName()}).isEmpty()};this.hasWrapper=function(){return!this._nodeList.filter(function(a){return"Wrapper"==a.nodeName()}).isEmpty()};this.empty=function(){return this._nodeList?this.hasInline()?!1:this.hasWrapper()&&this._ads.length?!(0<this._ads.filter(function(a,b,c){return!a.empty()}).length):!1:!0};this.isAdRedirect=function(){var a=this.children("Wrapper").first();return a&&"undefined"!=typeof a.children("VASTAdTagURI")?!0:!1};this.merge=function(a){a._nodeList.each(u(function(a){this._nodeList.add(a)}, this));var b=this.creativesIterator().toArray();if(this._creatives)for(var c=this._creatives,d=0;d<c.length;++d)for(var e=0;e<c[d].length;++e)c[d][e].merge(b[d][e]);else this._creatives=b;a.adVerifications()&&(this._adVerifications=this._adVerifications.concat(a.adVerifications()))}})});p("mustang/com/stickyadstv/vast/Vast","mod!com.stickyadstv.xml.XmlNode mod!com.stickyadstv.xml.List mod!com.stickyadstv.utils.network mod!com.stickyadstv.utils.Browser mod!com.stickyadstv.vast.Ad mod!com.stickyadstv.utils.HedgehogUtils mod!com.stickyadstv.utils.JsonParser mod!com.stickyadstv.vast.VastError".split(" "), function(d,e,c,b,a,f,g,h){var k=new t("com.stickyadstv.vast.Vast");b=N.extend(new function(){this.init=function(a){this._url=a;this._doc;this._ads=[];this._version=""};this.url=function(a){n(a)||(this._url=a);return this._url};this.ads=function(a){n(a)||(this._ads=a);return ba(this._ads)};this.leafDoc=function(){if(this._ads)for(var a=0;this._ads.length>a&&!b;){var b=this._ads[a].leafDoc();a++}return b||this.doc()};this.leafXml=function(){var a=this.leafDoc();return a?a.xml():null};this.hasInline= function(){var a=!1;if(this._ads.length)for(var b=0;!a&&b<this._ads.length;)this._ads[b].hasInline()&&(a=!0),b++;return a};this.empty=function(){var a=!0;if(this._ads.length)for(var b=0;a&&b<this._ads.length;)this._ads[b].empty()||(a=!1),b++;return a};this.setXmlString=function(a,b){try{var c=new d(a)}catch(F){k.warn("Cannot parse xml document: "+F)}this.xml(c,b)};this.xml=function(b,c){if(n(b))return this._doc?this._doc.xml():null;this._doc=b;this._version=this._doc.attr("version");if("VAST"!=this._doc.nodeName()|| !this._version)throw new h("Corrupted VAST document. ("+this._doc.nodeName()+" v:"+this._version+")",101);if(0!=this._version.indexOf("2.0")&&0!=this._version.indexOf("3.0"))if(4<=parseFloat(this._version)&&4.2>=parseFloat(this._version))k.warn("VAST "+this._version);else throw new h("Unsupported VAST version. ("+this._version+")",102);this._ads=this._doc.children("Ad").map(function(b){return new a(b,c,this._version)},this);return null};this.doc=function(){return this._doc};this.getAdParameters=function(){return this._ads&& this._ads.length?this._ads[0].getAdParameters():this._doc.find("AdParameters").children()};this.getExtensionsNode=function(){var a=this._doc.find("Extensions");return a?a:new e};this.getStickyTrackingExtension=function(){var a,b=this._doc.firstChild("Extensions");b&&(a=b.children("Extension").filter(function(a){return"StickyTracking"==a.attr("type")}).first());return a};this.getPricing=function(){var a,b=this._doc.find("Extensions");b&&(a=b.children("Extension").filter(function(a){return"StickyPricing"== a.attr("type")}).first());if(a){a=a.children("Price").first();var c={currency:a.attr("currency"),price:a.text()}}else k.debug("Can't get pricing data in current VAST. Is pricing extension enabled?");return c};this.merge=function(a){a=a.ads();for(var b=0;b<this._ads.length;++b)this._ads[b].merge(a[b])};this.trackError=function(a,b){a.errorcode=a.errorcode;a.message=a.message;var d=h.getMessage(900);if("errorcode"in a&&!isNaN(a.errorcode))d=h.getMessage(a.errorcode),"message"in a&&(d=a.message),k.warn("ERROR CODE : "+ a.errorcode+" - "+d);else if("detail"in a&&"errorcode"in a.detail){var e=a.detail;d=h.getMessage(e.errorcode);"message"in a&&(d=a.message);k.warn("ERROR CODE : "+e.errorcode+" - "+d);a.errorcode=e.errorcode}else"message"in a&&(d=a.message),k.error("Error without any code. Sending 900 - "+d);this._doc&&(b=b||{},e=this._doc.find("Error").map(function(b){b=c.expandUrl(b.text(),a);if(-1<b.indexOf("ads.stickyadstv.com")){var e=encodeURIComponent(d).slice(0,500),f=e.lastIndexOf("%");0<f&&(e=e.slice(0,f)); b+="errorMessage="+e+"&"}return b}),c.trackEach(e,b))}});b.prototype.empty=b.prototype.empty;b.prototype.ads=b.prototype.ads;b.prototype.getPricing=b.prototype.getPricing;b.prototype.setXmlString=b.prototype.setXmlString;return b});p("mustang/com/stickyadstv/vast/VastLoader","mod!com.stickyadstv.utils.network mod!com.stickyadstv.utils.Browser mod!com.stickyadstv.vast.Vast mod!com.stickyadstv.vast.Ad mod!com.stickyadstv.vpaid.core.Ad mod!com.stickyadstv.utils.HedgehogUtils mod!com.stickyadstv.utils.JsonParser mod!com.stickyadstv.vast.VastError".split(" "), function(d,e,c,b,a,f,g,h){var k=new t("com.stickyadstv.vast.VastLoader");b=N.extend(new function(){this.init=function(a,b){this._options=new Q(a);a=this._getProtocol();a=this._options.string("url",a+"://ads.stickyadstv.com/www/delivery/swfIndex.php");if(this._options.exist("vastUrlParams")){if("string"==typeof this._options.value("vastUrlParams"))try{this._options.value("vastUrlParams",g.decode(this._options.value("vastUrlParams")))}catch(z){k.warn("vastUrlParams json decode error : "+z.message); return}var d=this._options.value("vastUrlParams");d.hasOwnProperty("extra_header")&&d.extra_header.hasOwnProperty("for_domain")&&""!=d.extra_header.for_domain&&(I._data.extra_header_for_domain=d.extra_header.for_domain,delete d.extra_header.for_domain,I._data.extra_header_object=d.extra_header);delete this._options.value("vastUrlParams").extra_header;a=ea(a,this._options.value("vastUrlParams"),!0)}this._options.exist("loadWithCookie")&&(I._data["cors/credentials"]=this._options.value("loadWithCookie")? !0:!1);if(-1!=a.indexOf("swfIndex.php")){a=ea(a,{reqType:"AdsSetup",protocolVersion:"2.0",mustangVersion:"1.12.11.0"},!0);b&&(d={focus:b.focus},"unmeasurable"!=b.viewabilityState&&(d.percentViewable=b.percentViewable),a=ea(a,d,!0));this._options.exist("stickyViewability")&&0==this._options.bool("stickyViewability")&&(a=ea(a,{stickyViewability:"false"},!0));this._options.exist("vastVersion")&&(b=this._options.string("vastVersion"),2>parseInt(b)||4.2<parseFloat(b)?k.warn("Unsupported VAST version. ("+ b+")"," use VAST 2.0"):a=ea(a,{protocolVersion:b},!0));this._options.exist("componentId")&&(a=ea(a,{componentId:this._options.string("componentId")},!0));this._options.exist("playbackMethod")&&(a=ea(a,{playbackMethod:this._options.string("playbackMethod")},!0));this._options.exist("playbackEnd")&&(a=ea(a,{playbackEnd:this._options.string("playbackEnd")},!0));b=this._options.value("parameters");for(var e in b)"function"!=typeof b[e]&&"object"!=typeof b[e]&&(d={},d[e]=b[e],a=ea(a,d,!0))}this._vast= new c(a)};this._getGDPRData=function(a){this._options.value("useGDPR_TCFAPI")&&"false"!==this._options.value("useGDPR_TCFAPI")?e.getGDPRData(u(function(b){var c={},d=this._options.value("gdprParams")||{},e=b||{};b="undefined"!==typeof d.gdpr?d.gdpr&&"false"!==d.gdpr:e.gdpr;d=d.gdpr_consent||e.gdpr_consent;"undefined"!==typeof b&&(c.gdpr=b);"undefined"!==typeof d&&(c.gdpr_consent=d);a(c)},this),this._options.number("TCFTimeout",2E3)):a(this._options.value("gdprParams")||{})};this._getCCPAData=function(a){this._options.value("useCCPA_USPAPI")&& "false"!==this._options.value("useCCPA_USPAPI")?e.getCCPAData(u(function(b){var c={},d=this._options.value("ccpaParams")||{};b=b||{};d="undefined"!==typeof d._fw_us_privacy?d._fw_us_privacy:b._fw_us_privacy;"undefined"!==typeof d&&(c._fw_us_privacy=d);a(c)},this),this._options.number("USPAPITimeout",2E3)):a(this._options.value("ccpaParams")||{})};this._getGPPData=function(a){this._options.value("useGPP_TCFAPI")&&"false"!==this._options.value("useGPP_TCFAPI")?e.getGPPData(u(function(b){var c={},d= this._options.value("gppParams")||{},e=b||{};b=d.gpp_string||e.gpp_string;d=d.gpp_sid||e.gpp_sid;"undefined"!==typeof b&&(c.gpp_string=b);"undefined"!==typeof d&&(c.gpp_sid=d);a(c)},this),this._options.number("GPPTimeout",2E3)):a(this._options.value("gppParams")||{})};this.environment=function(){return C(e.locationToSend(),this._options.value("environment"))};this._getProtocol=function(){return!this._options.exist("protocol")||"http"!=this._options.string("protocol")&&"https"!=this._options.string("protocol")? f.getProtocol(this._options.string("componentId")):this._options.string("protocol")};this._loadVastWithConsentData=function(a,b){if(this._vast.xml())b.onSuccess({});else{a=C(this.environment(),this._options.bool("useEnv",!0)?a:{});var c=I._data["cors/credentials"];c={timeout:this._options.integer("timeout",3E3),credentials:this._options.bool("credentials",e.isAppleTV()?c:!0)};var d=this._options.string("body");d&&(c.body=d);if(d=this._options.value("headers"))c.headers=d;this._loadVast(this._vast, a,c,b)}};this.load=function(a,b){b.onSuccess||(b.onSuccess=b.onSuccess,b.onError=b.onError);e.isFlashSupported(u(function(c){a.supportsFlash=c;a.supportsJavascript=!("flash"==e.getContext()||e.isAppleTV());var d=!1,f=!1,g=!1;this._getCCPAData(u(function(c){c._fw_us_privacy&&(a._fw_us_privacy=c._fw_us_privacy);(d=!0,f)&&g&&this._loadVastWithConsentData(a,b)},this));this._getGDPRData(u(function(c){c.gdpr&&(a._fw_gdpr=c.gdpr);c.gdpr_consent&&(a._fw_gdpr_consent=c.gdpr_consent);c.gdpr_consented_providers&& (a._fw_gdpr_consented_providers=c.gdpr_consented_providers);f=!0;d&&f&&g&&this._loadVastWithConsentData(a,b)},this));this._getGPPData(u(function(c){c.gpp_string&&(a.gpp_string=c.gpp_string);c.gpp_sid&&(a.gpp_sid=c.gpp_sid);g=!0;d&&f&&g&&this._loadVastWithConsentData(a,b)},this))},this))};this._loadVast=function(a,b,c,e){d.getXml(a.url(),b,c,aa(new function(){this.onSuccess=function(b){try{a.xml(b.xml,this._options),this.parseAds(a,e)}catch(w){e.onError(w)}};this.onError=function(a){e.onError(a)}}, this))};this.parseAds=function(a,b){b&&!b.onSuccess&&(b.onSuccess=b.onSuccess,b.onError=b.onError);var c=a.ads(),d=[],e;oa(c,function(a,b){a.parse({},new function(){this.onSuccess=function(c){d.push(a);"undefined"!=a.adType()&&"audio"==a.adType()&&(I._data.isAudio=!0);b()};this.onError=function(a){e=a;b()}})},function(){ha(d)?(null==e&&(e=new h("No Ad found.",303)),b.onError(e)):(a.ads(d),this._onVastLoaded(a,b))},this)};this._onVastLoaded=function(a,b){var c=a.ads();if(this._options.bool("lazy", !1))if(a.hasInline())b.onSuccess({});else this._checkAdsInSequence(c,0,new function(){this.onSuccess=function(){b.onSuccess({})};this.onError=function(a){if(303==a.errorcode)b.onSuccess({});else b.onError(a)}},this);else{var d=[],e;oa(c,function(a,b){this.followRedirect(a,new function(){this.onSuccess=function(){d.push(a);b()};this.onError=function(a){e=a;b()}})},function(){ha(d)?(e||(e=new h("Error loading wrapper VAST file.",300)),b.onError(e)):(a.ads(d),b.onSuccess({}))},this)}};this.followRedirect= function(a,b){var d=a.vastTagUri();if(d){-1!=d.indexOf("://")&&e.isFlashComponent()&&(d=this._getProtocol()+d.substr(d.indexOf("://")));var f=new c(d);d=I._data["cors/credentials"];d={timeout:this._options.integer("timeout",3E3),credentials:this._options.bool("credentials",e.isAppleTV()?d:!0)};this._loadVast(f,{},d,new function(){this.onSuccess=function(){a.leafDoc(f.leafDoc());a.ads(f.ads());b.onSuccess({})};this.onError=function(a){b.onError(a)}})}else b.onSuccess({})};this._checkAdsInSequence= function(a,b,d,e){if(b<a.length){var f=a[b];if(f.hasInline())d.onSuccess({});else if(f.hasWrapper()){var g=new c(f.vastTagUri());this._loadVast(g,{},{},new function(){this.onSuccess=function(c){f.ads(g.ads());if(g.hasInline())d.onSuccess({});else e._checkAdsInSequence(a,b+1,d,e)};this.onError=function(c){if("errorcode"in c&&303==c.errorcode)e._checkAdsInSequence(a,b+1,d,e);else d.onError(new h(c.message,300))}})}else e._checkAdsInSequence(a,b+1,d,e)}else d.onError(new h("VastLoader: checkAdInSequence can't find any Inline ad.", 303))};this.getAdCores=function(b,c,d,e,f){return fa(b.ads(),function(b){b=new a(b,c,d,e,f);b.setVastLoader(this);return b},this)};this.getVast=function(){return this._vast};this.setVast=function(a){this._vast=a}});b.prototype.load=b.prototype.load;b.prototype.getVast=b.prototype.getVast;b.prototype.parseAds=b.prototype.parseAds;return b});p("mustang/com/stickyadstv/utils/ConfigUtils",[],function(){function d(a){return a&&"object"!=typeof a&&"-1"!=a&&-1!=a?(a+"").split("-").filter(function(a,b,c){return""!= a&&!isNaN(a)}).length==(a+"").split("-").length:!1}function e(a){if(!a||!a.vast||!a.vast.url)return!1;a=a.vast.url;return a.startsWith("https://vi.rnd.fwmrm.net/")||a.startsWith("http://vi.rnd.fwmrm.net/")?(a=a.split("zone=")[1])&&d(a)?!0:!1:!1}function c(a){var c=a.value("ads/zones/preroll"),g=a.value("ads/zones/midroll"),h=a.value("ads/zones/postroll"),k=a.value("zone"),m={};e(c)&&(c=c.vast.url.split("zone=")[1]);m.preroll=d(c)?(""+c).split("-"):[];c=[];if(g)if("object"!=typeof g)c=d(g)?(""+g).split("-"): [];else if("object"==typeof g&&0<g.length)for(var q=0;q<g.length;q++)c=c.concat(d(g[q].zone)?(""+g[q].zone).split("-"):[]);else b.info("Unexpected midrollZone value");m.midroll=c;m.postroll=d(h)?(""+h).split("-"):[];m.outstream=d(k)?(""+k).split("-"):[];(a=a.value("ads/companionZones"))&&(m.companion=a.split(";").filter(function(a,b,c){return d(a)}));return m}var b=new t("com.stickyadstv.utils.ConfigUtils");return N.extend({isZoneId:d,getAllZones:function(a){a=c(a);var b=[],e=a.midroll,h=a.postroll, k=a.outstream,m=a.companion;b=b.concat(a.preroll);b=b.concat(e);b=b.concat(h);b=b.concat(m);b=b.concat(k);return b.filter(function(a,b,c){return d(a)})},isNQATestZone:e,getZonesBySlot:c,playerSizeToSend:function(a,b,c,d){var e={width:a||0,height:b||0},f={width:0,height:0};c&&"object"==typeof c&&"playerSize"in c&&"string"==typeof c.playerSize&&(c=c.playerSize.split("x"),f.width=c[0],f.height=c[1]);c={width:0,height:0};d&&"function"==typeof d.width&&"function"==typeof d.height&&(c={width:d.width(), height:d.height()});d=0!=c.width&&0!=c.height?c:Math.max(e.width,1)*Math.max(e.height,1)>Math.max(f.width,1)*Math.max(f.height,1)?e:f;e={playerSize:d.width+"x"+d.height};if(0==d.width||0==d.height)e.sizeDebug=ia({w:a,h:b,envPS:f,contS:c});return e}},new function(){})});p("mustang/com/stickyadstv/vpaid/viewability/omid/OmsdkManager",["mod!com.stickyadstv.vpaid.viewability.omid.OmsdkConstants","mod!com.stickyadstv.utils.network","mod!com.stickyadstv.vpaid.Wrapper","mod!com.stickyadstv.utils.Browser"], function(d,e,c,b){var a=new t("com.stickyadstv.vpaid.viewability.omid.OmsdkManager"),f=null;return c.extend(new function(){this.init=function(b,c,e){a.debug("OMSDK: Init");this._verificationSettings=b;this._videoElement=c;this._mediaEvents=this._adEvents=this._adSession=null;this._accessMode=d.AccessMode.FULL;this._isPaused=this._sessionScriptLoaded=this._serviceScriptLoaded=!1;this._omsdkSessionScript=this._addSessionScript();this._omsdkServiceScript=this._addServiceScript();this.addEventListener("error", u(this._videoEventListener,this));this._videoElement.addEventListener("loadeddata",u(this._videoDidLoad,this));e.addEventListener("AdVideoStart",u(this._videoEventListener,this));e.addEventListener("AdVideoFirstQuartile",u(this._videoEventListener,this));e.addEventListener("AdVideoMidpoint",u(this._videoEventListener,this));e.addEventListener("AdVideoThirdQuartile",u(this._videoEventListener,this));e.addEventListener("AdVideoComplete",u(this._videoEventListener,this));e.addEventListener("adSlotComplete", u(this._videoEventListener,this));e.addEventListener("AdPlaying",u(this._videoEventListener,this));e.addEventListener("AdPaused",u(this._videoEventListener,this));e.addEventListener("AdVolumeChange",u(this._videoEventListener,this));e.addEventListener("AdClickThru",u(this._videoEventListener,this))};this._addServiceScript=function(){this._addScript(d.OmsdkServiceScriptUrl,"_fw_omsdk_service_script_",function(){a.debug("OMSDK: on service script load");this._serviceScriptLoaded=!0;this._checkIfAdSessionShouldStart()})}; this._addSessionScript=function(){this._addScript(d.OmsdkSessionScriptUrl,"_fw_omsdk_session_script_",function(){a.debug("OMSDK: on session script load");window.OmidSessionClient&&window.OmidSessionClient.default?(a.debug("OMSDK: setting session client."),this._sessionScriptLoaded=!0,f=window.OmidSessionClient.default,this._checkIfAdSessionShouldStart()):(a.debug("OMSDK: OmidSessionClient can not be accessed."),this._dispose())})};this._addScript=function(b,c,d){a.debug("OMSDK: Add Script "+b);var e= document.createElement("script");e.type="text/javascript";e.src=b;e.id=c;e.onload=d.bind(this);e.onerror=function(){a.debug("OMSDK: Error loading script: "+b);this._dispose()}.bind(this);return document.body.appendChild(e)};this._checkIfAdSessionShouldStart=function(){a.debug("OMSDK: Check if Ad Session should start");this._serviceScriptLoaded&&this._sessionScriptLoaded&&(this._adSession=this._createAdSession(),null!=this._adSession&&this._adSession.isSupported()?(this._adSession.setCreativeType(d.CreativeType.VIDEO), this._adSession.setImpressionType("beginToRender"),this._createAdEvents(),this._createMediaEvents(),a.debug("OMSDK: Start Ad Session"),this._adSession.start()):a.debug("OMSDK: Cannot use OMSDK because adSession was not supported."))};this._createAdSession=function(){a.debug("OMSDK: Create AdSession");try{var c=new f.Partner(d.OmidPartnerName,d.OmidPartnerVersion)}catch(da){a.debug("OMSDK: An error occured while initiating partner: "+da)}for(var e=b.location(),k=[],m=0;m<this._verificationSettings.length;m++){var q= this._verificationSettings[m],l=this._getOmidAccessMode(),n=[],p=q.vendor,t=q.verificationParameters,r=null;q.javaScriptResources&&0<q.javaScriptResources.length?n=q.javaScriptResources:q.executableResources&&0<q.executableResources.length?n=q.executableResources:a.info("OMSDK: adVerification javaScriptResources and executableResources are empty.");for(var u=0;u<n.length;u++){r=n[u];var A=r.url;if(b.isValidURL(A))try{var y=new f.VerificationScriptResource(A,p,t,l);k.push(y)}catch(da){a.debug("OMSDK: An error occured while trying to create a verification script resource: "+ da)}else a.debug("OMSDK: invalid javaScriptResource url: "+A)}r||(a.debug("OMSDK: Failed to create a verification script resource."),q.dispatchVerificationNotExecutedCallback(q,d.VerificationNotExecutedReason.VERIFICATION_RESOURCE_LOAD_ERROR))}try{var x=new f.Context(c,k,e);x.setVideoElement(this._videoElement);var L=new f.AdSession(x)}catch(da){a.debug("OMSDK: An error occured while creating omsdk context and adSession: "+da),this._cleanOMSDKAfterAdSession()}return L};this._createAdEvents=function(){a.debug("OMSDK: Create AdEvents"); null!=this._adSession&&(this._adEvents=new f.AdEvents(this._adSession))};this._createMediaEvents=function(){a.debug("OMSDK: Create MediaEvents");null!=this._adSession&&(this._mediaEvents=new f.MediaEvents(this._adSession))};this._getOmidAccessMode=function(){switch(this._accessMode){case d.AccessMode.LIMITED:return d.AccessMode.LIMITED;case d.AccessMode.DOMAIN:return d.AccessMode.DOMAIN;default:return d.AccessMode.FULL}};this._cleanOMSDKAfterAdSession=function(){a.debug("OMSDK: Clean _adSession, _adEvents, _mediaEvents, _contentURL and _videoElement"); this._contentURL=this._mediaEvents=this._adEvents=this._adSession=null;this._videoElement&&(this._videoElement.removeEventListener("loadeddata",this._videoDidLoad),this._videoElement=null)};this._dispose=function(){a.debug("OMSDK: Dispose OMSDK");this._cleanOMSDKAfterAdSession();var b=document.getElementById("_fw_omsdk_service_script_");b&&b.remove();(b=document.getElementById("_fw_omsdk_session_script_"))&&b.remove();this._sessionScriptLoaded=this._serviceScriptLoaded=!1;this._omsdkServiceScript= this._omsdkSessionScript=null};this._videoDidLoad=function(b){a.debug("OMSDK: videoDidLoad");this._videoEventListener(b)};this._videoEventListener=function(b){a.debug("OMSDK: AdVideoEvent : "+b.type);if(this._adSession)if(this._adEvents)if(this._mediaEvents){var c=this._videoElement.volume,d=this._videoElement.duration;this._videoElement.hasOwnProperty("getVolume")&&(c=this._videoElement.getVolume());this._videoElement.hasOwnProperty("getDuration")&&(d=this._videoElement.getDuration());switch(b.type){case "error":this._adSession.error("video", this._videoElement.error.message);this._adSession.finish();this._cleanOMSDKAfterAdSession();break;case "loaded":case "loadeddata":b=new f.VastProperties(!1,0,!0,"preroll");this._adEvents.loaded(b);break;case "AdVideoStart":this._adEvents.impressionOccurred();try{this._mediaEvents.start(parseFloat(d),parseFloat(c))}catch(m){a.debug("OMSDK: An error occured while starting _mediaEvents: "+m)}break;case "AdVideoFirstQuartile":this._mediaEvents.firstQuartile();break;case "AdVideoMidpoint":this._mediaEvents.midpoint(); break;case "AdVideoThirdQuartile":this._mediaEvents.thirdQuartile();break;case "AdVideoComplete":this._mediaEvents.complete();this._adSession.finish();this._cleanOMSDKAfterAdSession();break;case "AdPaused":this._isPaused=!0;this._mediaEvents.pause();break;case "AdPlaying":this._isPaused&&(this._mediaEvents.resume(),this._isPaused=!1);break;case "AdClickThru":this._mediaEvents.adUserInteraction("click");break;case "AdVolumeChange":this._mediaEvents.volumeChange(parseFloat(c));break;case "adSlotComplete":setTimeout(function(){this._dispose()}, 3E3)}}else a.warn("OMSDK: MediaEvents is null.");else a.warn("OMSDK: AdEvents is null.");else a.warn("OMSDK: AdSession is null.")}})});p("mustang/com/stickyadstv/vpaid/VpaidAdapter","mod!com.stickyadstv.utils.HedgehogUtils mod!com.stickyadstv.vpaid.SafeWrapper mod!com.stickyadstv.vpaid.core.VpaidAdapterCore mod!com.stickyadstv.event.EventDispatcher mod!com.stickyadstv.utils.Browser mod!com.stickyadstv.vast.Vast mod!com.stickyadstv.vast.VastLoader mod!com.stickyadstv.display.Slot mod!com.stickyadstv.xml.XmlNode mod!com.stickyadstv.vpaid.viewability.openVV.OpenVVTools mod!com.stickyadstv.utils.ConfigUtils mod!com.stickyadstv.vpaid.decorator.AdditionalScripts mod!com.stickyadstv.vpaid.viewability.omid.OmsdkManager".split(" "), function(d,e,c,b,a,f,g,h,k,m,q,l,n){var p=new t("com.stickyadstv.vpaid.VpaidAdapter");return e.extend(C({},e.events,{events:e.events}),new function(){this.init=function(a,c,e,f){this._logger=p;"undefined"!=typeof c.value?c.value("componentId","vpaid-adapter"):c.componentId="vpaid-adapter";"undefined"!=typeof a._videoTag&&(a=a._videoTag);this._adLoaded=!1;this._cdnUrl="http://ads.stickyadstv.com/www/delivery/swfIndex.php";this._params=new Q("undefined"==typeof d.getParams("vpaid-adapter")?d.getParams("vpaid-adapter.min"): d.getParams("vpaid-adapter"));this._super(null);this._params.exist("vastVersion")&&(c.vastVersion=decodeURIComponent(this._params.string("vastVersion")));"true"===this._params._data.learnMoreButton&&(c.learnMoreButton=!0,c.learnMoreButtonText="Learn More >>",this._params._data.learnMoreButtonText&&(c.learnMoreButtonText=decodeURIComponent(this._params._data.learnMoreButtonText).replace(/\+/g," ")));c.soundButton=this._params._data.soundButton;c.defaultMute=this._params._data.defaultMute;c.soundButton&& c.defaultMute&&(I._data.muteAd=!0);I._data.mediaplayhead=this._params._data.contentPlayheadTime;this._config=new Q(c);this._container=h.factory(a,null);this._playerState=e||new b;this._companionZones=f||[];c=this._params.string("zoneId","");q.isZoneId(c)&&(this._additionalScripts=new l(a,null,c.split("-")));this._config.bool("autoPlay",!1)&&(a=this._container.containerWidth(),c=this._container.containerHeight(),this.initAd(a,c,"",0,"",""))};this.initAd=function(b,e,f,h,k,l){l=C({componentId:this._config.value("componentId")}, this._config.value("environment"),a.locationToSend(),q.playerSizeToSend(b,e,l,this._container));if(""!=this._params.string("vastUrl","")){var A=this._params.string("vastUrl");A=decodeURIComponent(A)}else if(""!=this._params.string("zoneId","")){var y="?",r=this._params.data(),t=0;for(A in r)0!=t&&(y+="&"),"vastVersion"!==A&&(y+=A+"="+r[A],t++);A=this._cdnUrl.replace("http",d.getProtocol("vpaid-adapter"))+y}else throw Error("zoneId parameter missing.");if(A){A={url:A,componentId:this._config.string("componentId")}; this._config.exist("vastVersion")&&(A.vastVersion=this._config.string("vastVersion"));y=m.checkViewability(this._container,!0);A=new g(A,y);A.getVast();this._ad=new c(A,this._container,this._playerState,this._companionZones,this._config,k);if(this._additionalScripts){var u=this._ad;this._ad=this._additionalScripts.setFactory(function(a){a.onSuccess({ad:u})})}this._super(b,e,f,h,"",l);this._ad.on("AdPreLoaded",function(a){var b=null!=this._params.string("withOMSDK")?this._params.string("withOMSDK"): "true";a=a.detail&&a.detail.adVerifications?a.detail.adVerifications:[];"true"==b&&0<a.length&&this._container._iFreewheelPlayer._originalPlayer&&(p.debug("Initiate VpaidAdapter omsdk usage"),new n(a,this._container._iFreewheelPlayer._originalPlayer,this._ad))},this)}};this.startAd=function(){if(this._adLoaded)this._super();else{this._config=new Q(C(this._config.data(),{autoPlay:!0}));var a=this._container.containerWidth(),b=this._container.containerHeight();this.initAd(a,b,"",0,"","")}};this.getAdHeight= function(){return this._container.containerHeight()};this.getAdWidth=function(){return this._container.containerWidth()};this._registerListener=function(a){this._super(a);a.on("adStart",this._forwardEvent,this)};this._unregisterListener=function(a){this._super(a);a.off("adStart",this._forwardEvent,this)};this._loadedHandler=function(a){this._adLoaded=!0;this._super(a);this._config.bool("autoPlay",!1)&&this.startAd()}})});p("mustang/com/stickyadstv/player/freewheelPlayer/IFreewheelPlayer",["mod!com.stickyadstv.event.EventDispatcher"], function(d){var e=new t("com.stickyadstv.player.freewheelPlayer.IFreewheelPlayer"),c={PLAYER_CREATED:"created",PLAYER_LOADED:"loaded",PLAYER_PLAYING:"playing",PLAYER_PAUSED:"paused",PLAYER_ENDED:"ended",PLAYER_CLOSED:"closed",PLAYER_ERROR:"error"};c.PLAYER_CREATED=c.PLAYER_CREATED;c.PLAYER_LOADED=c.PLAYER_LOADED;c.PLAYER_PLAYING=c.PLAYER_PLAYING;c.PLAYER_PAUSED=c.PLAYER_PAUSED;c.PLAYER_ENDED=c.PLAYER_ENDED;c.PLAYER_CLOSED=c.PLAYER_CLOSED;c.PLAYER_ERROR=c.PLAYER_ERROR;d=d.extend(C({exportInterface:function(b){b.prototype.play= b.prototype.play;b.prototype.pause=b.prototype.pause;b.prototype.getDuration=b.prototype.getDuration;b.prototype.getCurrentTime=b.prototype.getCurrentTime;b.prototype.setSrc=b.prototype.setSrc;b.prototype.canPlayType=b.prototype.canPlayType;b.prototype.setSrcToTime=b.prototype.setSrcToTime;b.prototype.getSrc=b.prototype.getSrc;b.prototype.seek=b.prototype.seek;b.prototype.getPlayerState=b.prototype.getPlayerState;b.prototype.isControlsEnabled=b.prototype.isControlsEnabled;b.prototype.mockControls= b.prototype.mockControls;b.prototype.unmockControls=b.prototype.unmockControls;b.prototype.enableControls=b.prototype.enableControls;b.prototype.disableControls=b.prototype.disableControls;b.prototype.getWidth=b.prototype.getWidth;b.prototype.getHeight=b.prototype.getHeight;b.prototype.getVolume=b.prototype.getVolume;b.prototype.setVolume=b.prototype.setVolume;b.prototype.mute=b.prototype.mute;b.prototype.isMuted=b.prototype.isMuted;b.prototype.isInstanceOf=b.prototype.isInstanceOf;b.prototype.getHTML5InitializedVideoTag= b.prototype.getHTML5InitializedVideoTag;b.prototype.setHTML5InitializedVideoTag=b.prototype.setHTML5InitializedVideoTag;b.prototype.getHTML5InitializedAudioTag=b.prototype.getHTML5InitializedAudioTag;b.prototype.setHTML5InitializedAudioTag=b.prototype.setHTML5InitializedAudioTag;b.prototype.on=b.prototype.on;b.prototype.one=b.prototype.one;b.prototype.off=b.prototype.off}},c,{events:c}),new function(){this.init=function(){this._super()};this.play=function(){e.warn("play not implemented")};this.pause= function(){e.warn("pause not implemented")};this.getDuration=function(){e.warn("getDuration not implemented")};this.getCurrentTime=function(){e.warn("getCurrentTime not implemented")};this.setSrc=function(b){e.warn("setSrc not implemented")};this.canPlayType=function(b){e.warn("canPlayType not implemented")};this.setSrcToTime=function(b,a){e.warn("setSrcToTime not implemented")};this.getSrc=function(){e.warn("getSrc not implemented")};this.seek=function(b){e.warn("seek not implemented")};this.getPlayerState= function(){e.warn("getPlayerState not implemented")};this.isControlsEnabled=function(){e.warn("isControlsEnabled not implemented")};this.mockControls=function(b){e.warn("mockControls not implemented")};this.unmockControls=function(){e.warn("unmockControls not implemented")};this.enableControls=function(){e.warn("enableControls not implemented")};this.disableControls=function(){e.warn("disableControls not implemented")};this.getWidth=function(){e.warn("getWidth not implemented")};this.getHeight=function(){e.warn("getHeight not implemented")}; this.getVolume=function(){e.warn("getVolume not implemented")};this.setVolume=function(){e.warn("setVolume not implemented")};this.mute=function(){e.warn("mute not implemented")};this.isMuted=function(){e.warn("isMuted not implemented")};this.isInstanceOf=function(b){return"IFreewheelPlayer"==b};this.getHTML5InitializedVideoTag=function(){e.warn("getHTML5InitializedVideoTag not implemented")};this.setHTML5InitializedVideoTag=function(){e.warn("setHTML5InitializedVideoTag not implemented")};this.getHTML5InitializedAudioTag= function(){e.warn("getHTML5InitializedAudioTag not implemented")};this.setHTML5InitializedAudioTag=function(){e.warn("setHTML5InitializedAudioTag not implemented")}});d.exportInterface(d);return d});p("mustang/com/stickyadstv/player/freewheelPlayer/implementation/Html5FreewheelPlayer",["mod!com.stickyadstv.player.freewheelPlayer.IFreewheelPlayer","mod!com.stickyadstv.utils.Browser"],function(d,e){var c=new t("com.stickyadstv.player.freewheelPlayer.implementation.Html5FreewheelPlayer"),b=d.extend(new function(){this.init= function(a){this._super();this._isInstreamPlayer=a.videoSlotCanAutoPlay=!0;this._originalPlayer=a;this._originalPlayer.loop&&(this._loop=!0,this._originalPlayer.loop=!1);e.isIOS()&&(this._originalPlayer.setAttribute("playsinline",""),this._originalPlayer.setAttribute("webkit-playsinline",""));this._state=this._originalPlayer.paused?d.PLAYER_CREATED:d.PLAYER_PLAYING;this._mockControls;this._originalPlayer.addEventListener("loadedmetadata",u(function(a){this._state=d.PLAYER_LOADED;this._dispatchEvent(d.PLAYER_LOADED, a)},this));this._originalPlayer.addEventListener("playing",u(function(a){this._state=d.PLAYER_PLAYING;this._dispatchEvent(d.PLAYER_PLAYING,a)},this));this._originalPlayer.addEventListener("pause",u(function(a){this._state=d.PLAYER_PAUSED;this._dispatchEvent(d.PLAYER_PAUSED,a)},this));this._originalPlayer.addEventListener("ended",u(function(a){this._state=d.PLAYER_ENDED;this._dispatchEvent(d.PLAYER_ENDED,a)},this));this._originalPlayer.addEventListener("error",u(function(a){this._state=d.PLAYER_ERROR; this._dispatchEvent(d.PLAYER_ERROR,a)},this))};this.isInstreamPlayer=function(a){if("undefined"!=typeof a)this._isInstreamPlayer=a;else return this._isInstreamPlayer};this.canPlayType=function(a){return""!=this._originalPlayer.canPlayType(a)};this.restoreLoopIfNeeded=function(){this._loop&&(this._originalPlayer.loop=!0,delete this._loop,this.play())};this.play=function(){var a=this._originalPlayer.play();if(a){var b=!0;a.catch(function(a){"NotAllowedError"==a.name&&(c.warn(a),b=!1)}).then(u(function(){b? this._dispatchEvent(d.PLAYER_PLAYING):(c.warn("Autoplay not allowed on mobile devices!"),this._dispatchEvent(d.PLAYER_PLAYING),this._state=d.PLAYER_PAUSED,this._dispatchEvent(d.PLAYER_PAUSED))},this))}};this.pause=function(){this._originalPlayer.removeAttribute&&this._originalPlayer.removeAttribute("autoplay");this._originalPlayer.pause()};this.setSrc=function(a){this._originalPlayer.src=a;this._originalPlayer.load()};this.getSrc=function(){return""==this._originalPlayer.src?this._originalPlayer.currentSrc: this._originalPlayer.src};this.getWidth=function(){return this._originalPlayer.clientWidth};this.getHeight=function(){return this._originalPlayer.clientHeight};this.getVolume=function(){return this._originalPlayer.volume};this.setVolume=function(a){this._originalPlayer.volume=a};this.isMuted=function(){return this._originalPlayer.muted};this.mute=function(a){this._originalPlayer.muted=a};this.seek=function(a){this._originalPlayer.currentTime=a};this.setSrcToTime=function(a,b){this.setSrc(a);this.seek(b)}; this.getCurrentTime=function(){return this._originalPlayer.currentTime};this.getDuration=function(){return this._originalPlayer.duration};this.getPlayerState=function(){return this._state};this.isControlsEnabled=function(){return this._mockControls?this._mockControls:this._originalPlayer.controls};this.mockControls=function(a){this._mockControls=a};this.unmockControls=function(){this._mockControls=null};this.enableControls=function(){this._originalPlayer.controls=!0};this.disableControls=function(){this._originalPlayer.controls= !1};this.getHTML5InitializedVideoTag=function(){return this._originalPlayer};this.getHTML5InitializedAudioTag=function(){return this._originalPlayer}});d.exportInterface(b);return b});p("mustang/com/stickyadstv/player/freewheelPlayer/abstract/JWFreewheelPlayer",["mod!com.stickyadstv.player.freewheelPlayer.IFreewheelPlayer","mod!com.stickyadstv.utils.Browser"],function(d,e){var c=new t("com.stickyadstv.player.freewheelPlayer.abstract.JWFreewheelPlayer"),b=d.extend(new function(){this.init=function(a){this._super(); this._jwPlayer=a;this._state=d.PLAYER_CREATED;this._initListeners();"playing"==this._getOriginalPlayerState()&&(this._state=d.PLAYER_PLAYING);this._mockControls;this._isEnded=!1};this._loadedHandler=function(a){this._loaded||(this._loaded=!0,this._state=d.PLAYER_LOADED,this._dispatchEvent(d.PLAYER_LOADED,a))};this._playingHandler=function(a){this._loaded||(this._loaded=!0,this._state=d.PLAYER_LOADED,this._dispatchEvent(d.PLAYER_LOADED,a));this._originalSrc||(this._originalSrc=this.getSrc());this._state= d.PLAYER_PLAYING;this._dispatchEvent(d.PLAYER_PLAYING,a)};this._pausedHandler=function(a){this._state=d.PLAYER_PAUSED;this._dispatchEvent(d.PLAYER_PAUSED,a)};this._completeHandler=function(a){this._state=d.PLAYER_ENDED;this._dispatchEvent(d.PLAYER_ENDED,a)};this._errorHandler=function(a){this._state=d.PLAYER_ERROR;this._dispatchEvent(d.PLAYER_ERROR,a)};this.play=function(){this._jwPlayer.play(!0)};this.pause=function(){this._jwPlayer.pause(!0)};this.getDuration=function(){return this._jwPlayer.getDuration()}; this.getCurrentTime=function(){return this._seekTo?this._seekTo.time:this._jwPlayer.getPosition()};this._getRealCurrentTime=function(){return this._jwPlayer.getPosition()};this.getSrc=function(){var a=this._jwPlayer.getPlaylistItem();return a&&"undefined"!=typeof a.file?a.file:""};this.getVideoAsset=function(){var a=this._jwPlayer.getPlaylistItem();return a&&"undefined"!=typeof a.file?a:null};this.setSrc=function(a){this.off(d.PLAYER_LOADED,this._seekAfterPlaying);delete this._loaded;delete this._seekTo; delete this._seeked;"string"==typeof a?this._jwPlayer.load({file:a,preload:"metadata"}):this._jwPlayer.load(a);this._isEnded||(this.isFlashIntegration()||e.isMobile()||"undefined"==typeof this._jwPlayer.on)&&this.play()};this.isFlashIntegration=function(){throw Error("isFlashIntegration() is not implemented");};this.setSrcToTime=function(a,b,e,h){this._isEnded=!0===h;this.setSrc(a);this._isEnded?c.debug("Won't play the content again since it's already ended"):(this._seekTo={time:b,src:a},this.one(d.PLAYER_PLAYING, this._seekAfterPlaying,this),this.play())};this._seekAfterPlaying=function(a){this._seekTo&&this.seek(this._seekTo.time)};this.seek=function(a){delete this._seeked;this._tryToSeek(a,this._seekTo.src,1)};this._tryToSeek=function(a,b,c){"string"==typeof b&&this.getSrc()!=b||"object"==typeof b&&this.getSrc()!=b.file||(this._registerSeekHandler(function(b){D(function(){this._getRealCurrentTime()<=a+2&&this._getRealCurrentTime()>=a-2&&this._seekTo&&(!this._oldDuration||this._getRealCurrentTime()!=this._oldDuration)&& (this._seeked=!0,delete this._seekTo)},0,this)}.bind(this)),this._jwPlayer.seek(a),D(function(){!this._seeked&&10>c&&this._tryToSeek(a,b,++c)},500,this))};this._registerSeekHandler=function(a){throw Error("_registerSeekHandler(handler) is not implemented");};this.getPlayerState=function(){"playing"==this._getOriginalPlayerState()?this._state=d.PLAYER_PLAYING:"paused"==this._getOriginalPlayerState()?this._state=d.PLAYER_PAUSED:c.info("Unexpected _getOriginalPlayerState value");return this._state}; this._getOriginalPlayerState=function(){return this._jwPlayer.getState()?this._jwPlayer.getState().toLocaleLowerCase():this._state};this.canPlayType=function(a){a=a.toUpperCase();return-1<a.indexOf("MP4")||-1<a.indexOf("WEBM")||-1<a.indexOf("FLV")};this.getWidth=function(){return this._jwPlayer.getWidth()};this.getHeight=function(){return this._jwPlayer.getHeight()};this.getVolume=function(){return this._jwPlayer.getVolume()/100};this.setVolume=function(a){this._jwPlayer.setVolume(100*a)};this.mute= function(a){this._jwPlayer.setMute(a)};this.isMuted=function(){return this._jwPlayer.getMute()};this.enableControls=function(){this._jwPlayer.setControls(!0)};this.disableControls=function(){this._jwPlayer.setControls(!1)};this.isControlsEnabled=function(){return this._mockControls?this._mockControls:this._jwPlayer.getControls()};this.mockControls=function(a){this._mockControls=a};this.unmockControls=function(){this._mockControls=null};this.getHTML5InitializedVideoTag=function(){return this._html5VideoTag}; this.setHTML5InitializedVideoTag=function(a){a.id="freewheel-ad-video-player";this._html5VideoTag=a};this._initListeners=function(){throw Error("_initListeners() is not implemented");}});d.exportInterface(b);return b});p("mustang/com/stickyadstv/player/freewheelPlayer/implementation/JW6FreewheelPlayer",["mod!com.stickyadstv.player.freewheelPlayer.IFreewheelPlayer","mod!com.stickyadstv.player.freewheelPlayer.abstract.JWFreewheelPlayer","mod!com.stickyadstv.utils.Browser"],function(d,e,c){var b=new t("com.stickyadstv.player.freewheelPlayer.implementation.JW6FreewheelPlayer"); e=e.extend(new function(){this.init=function(a){b.info("JW6FreewheelPlayer");this._super(a);this._oldDuration=0;this._endedInterval=setInterval(this._endedIntervalHandler.bind(this),500)};this._endedIntervalHandler=function(){this._jwPlayer.getFullscreen()&&0<this.getDuration()&&this._state==d.PLAYER_PLAYING&&1>Math.abs(this.getCurrentTime()-this.getDuration())&&(this._completeHandler(),this._ignoreCompleteEvents=!0,D(u(function(){this._ignoreCompleteEvents=!1},this),1E3))};this._completeHandler= function(a){this._ignoreCompleteEvents||this._super(a)};this._initListeners=function(){this._jwPlayer.onMeta(u(this._loadedHandler,this));this._jwPlayer.onPlay(u(this._playingHandler,this));this._jwPlayer.onPause(u(this._pausedHandler,this));this._jwPlayer.onComplete(u(this._completeHandler,this));this._jwPlayer.onError(u(this._errorHandler,this))};this._registerSeekHandler=function(a){this._jwPlayer.onSeek(a)};this.getDuration=function(){var a=this._super();return this._oldDuration=a};this.getCurrentTime= function(a){var b=this._super();return 0!=b&&b==this._oldDuration&&"undefined"!=typeof a&&1==a?"unknown":b};this.isFlashIntegration=function(){return"flash"==this._jwPlayer.getRenderingMode()};this._loadedHandler=function(a){this._loaded||(this._loaded=!0,this._state=d.PLAYER_LOADED,this._dispatchEvent(d.PLAYER_LOADED,a))};this._playingHandler=function(a){this._state=d.PLAYER_PLAYING;this._dispatchEvent(d.PLAYER_PLAYING,a)}});d.exportInterface(e);return e});p("mustang/com/stickyadstv/player/freewheelPlayer/implementation/JW7FreewheelPlayer", ["mod!com.stickyadstv.player.freewheelPlayer.IFreewheelPlayer","mod!com.stickyadstv.player.freewheelPlayer.abstract.JWFreewheelPlayer","mod!com.stickyadstv.utils.Browser"],function(d,e,c){new t("com.stickyadstv.player.freewheelPlayer.implementation.JW7FreewheelPlayer");e=e.extend(new function(){this.init=function(b){this._super(b)};this._initListeners=function(){this._jwPlayer.on("meta",u(this._loadedHandler,this));this._jwPlayer.on("play",u(this._playingHandler,this));this._jwPlayer.on("pause",u(this._pausedHandler, this));this._jwPlayer.on("complete",u(this._completeHandler,this));this._jwPlayer.on("error",u(this._errorHandler,this));this._jwPlayer.on("playlistItem",u(this._completeHandler,this))};this._registerSeekHandler=function(b){this._jwPlayer.on("seeked",b)};this.isFlashIntegration=function(){this._jwPlayer.getProvider()&&(this._isFlashIntegration=-1!=this._jwPlayer.getProvider().name.indexOf("flash"));return this._isFlashIntegration};this._playingHandler=function(b){this._isEnded?(this._jwPlayer.stop(!0), this._isEnded=!1):this._super(b)}});d.exportInterface(e);return e});p("mustang/com/stickyadstv/player/freewheelPlayer/implementation/BCFreewheelPlayer",["mod!com.stickyadstv.player.freewheelPlayer.IFreewheelPlayer","mod!com.stickyadstv.utils.Browser"],function(d,e){var c=new t("com.stickyadstv.player.freewheelPlayer.implementation.BCFreewheelPlayer"),b=d.extend(new function(){this.init=function(a){c.info("BCFreewheelPlayer");this._super();this._bcPlayer=a;this._container=this._bcPlayer.el();this._bcTextContainers= this._container.getElementsByClassName("vjs-dock-text");this._bcPlayer.paused()||0==this._bcPlayer.currentTime()?this._state=d.PLAYER_CREATED:this._state=d.PLAYER_PLAYING;e.isIOS()&&this._bcPlayer.playsinline(!0);this._mockControls;this._initListeners()};this._loadedHandler=function(a){this._loaded||(this._loaded=!0,this._state=d.PLAYER_LOADED,this._dispatchEvent(d.PLAYER_LOADED,a))};this._playingHandler=function(a){this._loaded||(this._loaded=!0,this._state=d.PLAYER_LOADED,this._dispatchEvent(d.PLAYER_LOADED, a));this._state=d.PLAYER_PLAYING;this._dispatchEvent(d.PLAYER_PLAYING,a)};this._pausedHandler=function(a){this._state=d.PLAYER_PAUSED;this._dispatchEvent(d.PLAYER_PAUSED,a)};this._completeHandler=function(a){this._state=d.PLAYER_ENDED;this._dispatchEvent(d.PLAYER_ENDED,a)};this._errorHandler=function(a){this._state=d.PLAYER_ERROR;this._dispatchEvent(d.PLAYER_ERROR,a)};this.play=function(){this._bcPlayer.play()};this.pause=function(){this._bcPlayer.pause()};this.getDuration=function(){return this._bcPlayer.duration()}; this.getCurrentTime=function(){return this._seekTo?this._seekTo.time:this._bcPlayer.currentTime()};this._getRealCurrentTime=function(){return this._bcPlayer.currentTime()};this.getSrc=function(){return this._bcPlayer.currentSrc()};this.getMediaType=function(){return this._bcPlayer.currentType()};this.setSrc=function(a,b){this.off(d.PLAYER_LOADED,this._seekAfterPlaying);delete this._loaded;delete this._seekTo;delete this._seeked;a=b?{type:b,src:a}:a;this._bcPlayer.src(a)};this.setSrcToTime=function(a, b,c){this.one(d.PLAYER_LOADED,function(){this.play()},this);this.one(d.PLAYER_PLAYING,this._seekAfterPlaying,this);a=c?{type:c,src:a}:a;this.setSrc(a);this._seekTo={time:b,src:a}};this._seekAfterPlaying=function(a){this._seekTo&&(this.seek(this._seekTo.time),delete this._seekTo)};this.seek=function(a){this._bcPlayer.currentTime(a)};this.getPlayerState=function(){return this._state};this.canPlayType=function(a){return!0};this.getWidth=function(){return this._bcPlayer.currentDimension("width")};this.getHeight= function(){return this._bcPlayer.currentDimension("height")};this.getVolume=function(){return this._bcPlayer.volume()};this.setVolume=function(a){this._bcPlayer.volume(a)};this.mute=function(a){this._bcPlayer.muted(a)};this.isMuted=function(){return this._bcPlayer.muted()};this.enableControls=function(){this._bcPlayer.controls(!0);for(var a=0;a<this._bcTextContainers.length;a++)this._bcTextContainers[a].style.display="inline"};this.disableControls=function(){this._bcPlayer.controls(!1);for(var a= 0;a<this._bcTextContainers.length;a++)this._bcTextContainers[a].style.display="none"};this.isControlsEnabled=function(){return this._mockControls?this._mockControls:this._bcPlayer.controls()};this.mockControls=function(a){this._mockControls=a};this.unmockControls=function(){this._mockControls=null};this.getHTML5InitializedVideoTag=function(){return this._html5VideoTag};this.setHTML5InitializedVideoTag=function(a){a.id="freewheel-ad-video-player";a.videoSlotCanAutoPlay=!0;this._html5VideoTag=a};this._initListeners= function(){this._bcPlayer.on("loadeddata",u(this._loadedHandler,this));this._bcPlayer.on("playing",u(this._playingHandler,this));this._bcPlayer.on("pause",u(this._pausedHandler,this));this._bcPlayer.on("ended",u(this._completeHandler,this));this._bcPlayer.on("error",u(this._errorHandler,this))};this._loadedHandler=function(a){this._state=d.PLAYER_LOADED;this._dispatchEvent(d.PLAYER_LOADED,a)};this._playingHandler=function(a){this._state!=d.PLAYER_PLAYING&&(this._state=d.PLAYER_PLAYING,this._dispatchEvent(d.PLAYER_PLAYING, a))};this._pausedHandler=function(a){this._state=d.PLAYER_PAUSED;this._dispatchEvent(d.PLAYER_PAUSED,a)};this._completeHandler=function(a){this._state=d.PLAYER_ENDED;this._dispatchEvent(d.PLAYER_ENDED,a)};this._errorHandler=function(a){this._state=d.PLAYER_ERROR;this._dispatchEvent(d.PLAYER_ERROR,a)}});d.exportInterface(b);return b});p("mustang/com/stickyadstv/player/freewheelPlayer/abstract/FlowplayerFreewheelPlayer",["mod!com.stickyadstv.player.freewheelPlayer.IFreewheelPlayer"],function(d){var e= new t("com.stickyadstv.player.freewheelPlayer.abstract.FlowplayerFreewheelPlayer"),c=d.extend(new function(){this.init=function(b,a){this._mimeTypeTranslation={hls:"application/x-mpegurl",m3u8:"application/x-mpegurl",webm:"video/webm",mp4:"video/mp4",ogg:"video/ogg",flv:"video/flash"};this._super();this._flowplayer=b;this._adContainer=a;this._state=d.PLAYER_CREATED;this._originalSrc=this._src="";this._isControlsEnabled=this._loaded=!0;this._mockControls;this._initListeners();this._flowplayer.playing&& (this._state=d.PLAYER_PLAYING,this._dispatchEvent(d.PLAYER_PLAYING))};this._getMimeTypeFromURL=function(b){return(b=b.split(".").pop())&&this._mimeTypeTranslation[b]?this._mimeTypeTranslation[b]:""};this._loadedHandler=function(b){"undefined"==typeof this._flowplayer.video||"undefined"==typeof this._flowplayer.video.src||this._flowplayer.video.src!=this._src&&""!=this._src?this._loaded?e.info("Unexpected _loaded value"):(e.debug("Bad ready event sent from flowplayer, check if the video is really loaded in a moment"), D(this._loadedHandler,50,this)):"undefined"!=typeof this._seekTo?this._isLoadedEventWaiting=!0:(this._loaded=!0,this._state=d.PLAYER_LOADED,this._dispatchEvent(d.PLAYER_LOADED),""==this._src&&this._flowplayer.playing&&this._playingHandler())};this._seekedHandler=function(b){delete this._seekTo;this._isLoadedEventWaiting&&(delete this._isLoadedEventWaiting,this._loadedHandler())};this._playingHandler=function(b){if(this._loaded)this._state=d.PLAYER_PLAYING,this._dispatchEvent(d.PLAYER_PLAYING,b);else this.one("loaded", function(){D(function(){this._state=d.PLAYER_PLAYING;this._dispatchEvent(d.PLAYER_PLAYING,b)},0,this)},this)};this._pausedHandler=function(b){this._state=d.PLAYER_PAUSED;this._dispatchEvent(d.PLAYER_PAUSED,b)};this._endedHandler=function(b){this._state=d.PLAYER_ENDED;this._dispatchEvent(d.PLAYER_ENDED,b)};this._errorHandler=function(b){this._state=d.PLAYER_ERROR;this._dispatchEvent(d.PLAYER_ERROR,b)};this.play=function(){this._flowplayer.play()};this.pause=function(){this._flowplayer.pause()};this.getDuration= function(){return"undefined"==typeof this._flowplayer.video||"undefined"==typeof this._flowplayer.video.duration||isNaN(this._flowplayer.video.duration)?-2:this._flowplayer.video.duration};this.getCurrentTime=function(){return"undefined"==typeof this._flowplayer.video||"undefined"==typeof this._flowplayer.video.time||isNaN(this._flowplayer.video.time)?-2:this._flowplayer.video.time};this.setSrc=function(b,a){b?(this._loaded=!1,this._src=b,this._flowplayer.load([{type:this._getMimeTypeFromURL(b),src:b}], a)):e.debug("FlowPlayer doesn't support empty src. return.")};this.setSrcToTime=function(b,a){this._seekTo=a;this.setSrc(b,u(function(){this.seek(a)},this))};this.seek=function(b){this._flowplayer.seek(b)};this.getSrc=function(){return"undefined"!==typeof this._flowplayer.video&&"undefined"!==typeof this._flowplayer.video.src?(""==this._originalSrc&&(this._originalSrc=this._flowplayer.video.src),this._flowplayer.video.src):this._src};this.canPlayType=function(b){for(var a in this._mimeTypeTranslation)if(this._mimeTypeTranslation[a]== b)return!0;return!1};this.getPlayerState=function(){return this._state};this.isControlsEnabled=function(){return this._mockControls?this._mockControls:this._isControlsEnabled};this.mockControls=function(b){this._mockControls=b};this.unmockControls=function(){this._mockControls=null};this.disableControls=function(){try{this._adContainer.getElementsByClassName("fp-controls")[0].style.display="none",this._adContainer.getElementsByClassName("fp-time")[0]&&(this._adContainer.getElementsByClassName("fp-time")[0].style.display= "none"),this._adContainer.getElementsByClassName("fp-waiting")[0]&&(this._adContainer.getElementsByClassName("fp-waiting")[0].style.display="none"),this._isControlsEnabled=!1}catch(b){e.error("Can't hide flowplayer controls")}};this.enableControls=function(){try{this._adContainer.getElementsByClassName("fp-controls")[0].style.display="",this._adContainer.getElementsByClassName("fp-time")[0]&&(this._adContainer.getElementsByClassName("fp-time")[0].style.display=""),this._adContainer.getElementsByClassName("fp-waiting")[0]&& (this._adContainer.getElementsByClassName("fp-waiting")[0].style.display=""),this._isControlsEnabled=!0}catch(b){e.error("Can't show flowplayer controls")}};this.getWidth=function(){return this._adContainer.clientWidth};this.getHeight=function(){return this._adContainer.clientHeight};this.mute=function(b){this._flowplayer.mute(b)};this.isMuted=function(){return!0===this._flowplayer.muted};this.setVolume=function(b){this._flowplayer.volume(b)};this.getVolume=function(){return this._flowplayer.volumeLevel}; this._initListeners=function(){e.warn("_initListeners() is not implemented")};this.setHTML5InitializedVideoTag=function(b){b.id="freewheel-ad-video-player";this._html5VideoTag=b};this.getHTML5InitializedVideoTag=function(){return this._html5VideoTag}});d.exportInterface(c);return c});p("mustang/com/stickyadstv/player/freewheelPlayer/implementation/Flowplayer5AndLessFreewheelPlayer",["mod!com.stickyadstv.player.freewheelPlayer.IFreewheelPlayer","mod!com.stickyadstv.player.freewheelPlayer.abstract.FlowplayerFreewheelPlayer", "mod!com.stickyadstv.utils.Browser"],function(d,e,c){var b=new t("com.stickyadstv.player.freewheelPlayer.implementation.Flowplayer5AndLessFreewheelPlayer");e=e.extend(new function(){this.init=function(a,c){b.info("Flowplayer5AndLessFreewheelPlayer");this._super(a,c)};this._initListeners=function(){this._flowplayer.bind("ready",u(this._loadedHandler,this));this._flowplayer.bind("resume",u(this._playingHandler,this));this._flowplayer.bind("pause",u(this._pausedHandler,this));this._flowplayer.bind("finish", u(this._endedHandler,this));this._flowplayer.bind("error",u(this._errorHandler,this));this._flowplayer.bind("seek",u(this._seekedHandler,this))};this.pause=function(){"undefined"==typeof this._pauseTry&&(this._pauseTry=0);this._loaded||delete this._pauseTry;this._flowplayer.loading&&5>this._pauseTry?(this._pauseTry++,D(this.pause,500,this)):(delete this._pauseTry,this._super())};this._setSrc=function(a,b){this._loaded=!1;this._src=a;var c={};c[this._getMimeTypeFromURL(a)]=a;this._flowplayer.load([c], b)};this.setSrc=function(a,d){if(c.isMobile()){this._tryToSetSrc||(this._loadedSuccess=!1,this._tryToSetSrc={src:a,nbTry:0});var e=function(b){this._tryToSetSrc&&this._tryToSetSrc.src==a&&delete this._tryToSetSrc;this._loadedSuccess||(this._loadedSuccess=!0,"function"==typeof d&&d(b))}.bind(this);e.bind(this);this._tryToSetSrc.nbTry++;D(function(){this._tryToSetSrc&&3>this._tryToSetSrc.nbTry&&this.getSrc()!=a?this.setSrc(a,d):this._tryToSetSrc&&this._tryToSetSrc.src==a?delete this._tryToSetSrc:b.info("Unexpected _tryToSetSrc value")}, 3E3,this);this._setSrc(a,e)}else this._setSrc(a,d)}});d.exportInterface(e);return e});p("mustang/com/stickyadstv/player/freewheelPlayer/implementation/Flowplayer6AndPlusFreewheelPlayer",["mod!com.stickyadstv.player.freewheelPlayer.IFreewheelPlayer","mod!com.stickyadstv.player.freewheelPlayer.abstract.FlowplayerFreewheelPlayer"],function(d,e){var c=new t("com.stickyadstv.player.freewheelPlayer.implementation.Flowplayer6AndPlusFreewheelPlayer");e=e.extend(new function(){this.init=function(b,a){c.info("Flowplayer6AndPlusFreewheelPlayer"); this._super(b,a)};this._initListeners=function(){this._flowplayer.on("ready",u(this._loadedHandler,this));this._flowplayer.on("resume",u(this._playingHandler,this));this._flowplayer.on("pause",u(this._pausedHandler,this));this._flowplayer.on("finish",u(this._endedHandler,this));this._flowplayer.on("error",u(this._errorHandler,this));this._flowplayer.on("seek",u(this._seekedHandler,this))}});d.exportInterface(e);return e});p("mustang/com/stickyadstv/player/freewheelPlayer/implementation/ArnageFreewheelPlayer", ["mod!com.stickyadstv.player.freewheelPlayer.IFreewheelPlayer"],function(d){var e=new t("com.stickyadstv.player.freewheelPlayer.implementation.ArnageFreewheelPlayer"),c=window.IFreewheelPlayerBridge,b=d.extend(new function(){this.init=function(a){e.info("ArnageFreewheelPlayer");this._html5Video=a;this._super()};this.dispatchProxy=function(a){this._dispatchEvent(a)};this.canPlayType=function(a){return c.canPlayType(a)};this.play=function(){c.play()};this.pause=function(){c.pause()};this.setSrc=function(a){try{c.setSrc(a)}catch(f){}}; this.getSrc=function(){return c.getSrc()};this.getWidth=function(){return document.body.clientWidth};this.getHeight=function(){return document.body.clientHeight};this.getVolume=function(){return c.getVolume()};this.setVolume=function(a){c.setVolume(a)};this.isMuted=function(){return c.isMuted()};this.mute=function(a){c.mute(a)};this.seek=function(a){c.seek(a)};this.setSrcToTime=function(a,b){c.setSrcToTime(a,b)};this.getCurrentTime=function(){return c.getCurrentTime()};this.getDuration=function(){return c.getDuration()}; this.getPlayerState=function(){return c.getPlayerState()};this.isControlsEnabled=function(){return c.isControlsEnabled()};this.enableControls=function(){c.enableControls()};this.disableControls=function(){c.disableControls()};this.getHTML5InitializedVideoTag=function(){return this._html5Video}});d.exportInterface(b);return b});p("mustang/com/stickyadstv/player/freewheelPlayer/implementation/NovaFreewheelPlayer",["mod!com.stickyadstv.player.freewheelPlayer.IFreewheelPlayer"],function(d){var e=new t("com.stickyadstv.player.freewheelPlayer.implementation.NovaFreewheelPlayer"), c=window.iOSExecutor,b=d.extend(new function(){this.init=function(a){e.info("NovaFreewheelPlayer");this._html5Video=a;this._super()};this.dispatchProxy=function(a){this._dispatchEvent(a)};this.canPlayType=function(a){return c.syncExecute("canPlayType",a)};this.play=function(){c.syncExecute("play",null)};this.pause=function(){c.syncExecute("pause",null)};this.setSrc=function(a){try{c.syncExecute("setSrc",a)}catch(f){}};this.getSrc=function(){return c.syncExecute("getSrc",null)};this.getWidth=function(){return document.body.clientWidth}; this.getHeight=function(){return document.body.clientHeight};this.getVolume=function(){return c.syncExecute("getVolume",null)};this.setVolume=function(a){c.syncExecute("setVolume",a)};this.isMuted=function(){return c.syncExecute("isMuted",null)};this.mute=function(a){c.syncExecute("mute",a)};this.seek=function(a){c.syncExecute("seek",a)};this.setSrcToTime=function(a,b){c.syncExecute("setSrcToTime",{src:a,time:b})};this.getCurrentTime=function(){return c.syncExecute("getCurrentTime",null)};this.getDuration= function(){return c.syncExecute("getDuration",null)};this.getPlayerState=function(){return c.syncExecute("getPlayerState",null)};this.isControlsEnabled=function(){return c.syncExecute("isControlsEnabled",null)};this.enableControls=function(){c.syncExecute("enableControls",null)};this.disableControls=function(){c.syncExecute("disableControls",null)};this.getHTML5InitializedVideoTag=function(){return this._html5Video}});d.exportInterface(b);return b});p("mustang/com/stickyadstv/player/freewheelPlayer/IFreewheelPlayerAdapter", "mod!com.stickyadstv.player.freewheelPlayer.implementation.Html5FreewheelPlayer mod!com.stickyadstv.player.freewheelPlayer.implementation.JW6FreewheelPlayer mod!com.stickyadstv.player.freewheelPlayer.implementation.JW7FreewheelPlayer mod!com.stickyadstv.player.freewheelPlayer.implementation.BCFreewheelPlayer mod!com.stickyadstv.player.freewheelPlayer.implementation.Flowplayer5AndLessFreewheelPlayer mod!com.stickyadstv.player.freewheelPlayer.implementation.Flowplayer6AndPlusFreewheelPlayer mod!com.stickyadstv.player.freewheelPlayer.implementation.ArnageFreewheelPlayer mod!com.stickyadstv.player.freewheelPlayer.implementation.NovaFreewheelPlayer".split(" "), function(d,e,c,b,a,f,g,h){var k=new t("com.stickyadstv.player.freewheelPlayer.IFreewheelPlayerAdapter"),l=N.extend({getIFreewheelPlayerFromHtml5VideoTag:function(a){return new d(a)},getIFreewheelPlayerFromHtml5AudioTag:function(a){I._data.isAudio=!0;return new d(a)},getIFreewheelPlayerFromJW6Player:function(a){return new e(a)},getIFreewheelPlayerFromJW7Player:function(a){return new c(a)},getIFreewheelPlayerFromBCPlayer:function(a){return new b(a)},getIFreewheelPlayerFromFlowplayer5AndLess:function(b, c){return new a(b,c)},getIFreewheelPlayerFromFlowplayer6AndPlus:function(a,b){return new f(a,b)},getIFreewheelPlayerFromAndroidNative:function(a){return new g(a)},getIFreewheelPlayerFromiOSNative:function(a){return new h(a)},checkInterface:function(a){function b(){function b(){this._onChecked?(d.isTestOK=!1,d.descripion+="Listener keep been called after remove it by calling 'off'"):(this._onChecked=!0,c.isTestOK=!0,D(function(){"undefined"!=typeof a.getCurrentTime&&4<a.getCurrentTime()&&6>a.getCurrentTime()? e.isTestOK=!0:(e.isTestOK=!1,e.descripion+="Cant check time or the time is not correct. ");a.off("playing",b);a.pause();a.play()},200,this))}var c=f("on(event: String, callback: Function, contect: Obecjt)"),d=f("off(event: String, callback: Function)"),e=f("setSrcToTime(src: String, time: Number)");0!=c.isTestOK&&0!=d.isTestOK&&(a.setSrcToTime("http://cdn.stickyadstv.com/www/images/4882-mobile-web-low-56f00dac487ff.mp4",5),a.on("playing",b,this),a.play());D(function(){1!=c.isTestOK?(c.isTestOK=!1, c.descripion="On never sent events (test on playin event with setSrcToTime. ",d.isTestOK=!1,d.descripion="Off can't be checked because on fall. "):0!=d.isTestOK&&(d.isTestOK=!0)},700,this)}function c(){var b=f("error"),c=f("loaded");0!=b.isTestOK&&1==c.isTestOK&&(a.on("error",function(a){b.isTestOK=!0;e("error")},this),a.setSrc("http://wrongUrlToTestIFreeewheelPlayerInterface"));D(function(){1!=b.isTestOK&&(f("getPlayerState() -> String").isTestOK=!1,f("getPlayerState() -> String").isTestOK="Error can't be checked", b.isTestOK=!1,b.descripion+="Error not thown when src is wrong. ");for(var a="",c=!1,d=0;d<g.length;d++)a=""==g[d].descripion?a+((g[d].isTestOK?"SUCCESS":"FAIL")+' // NAME: "'+g[d].name+"\n"):a+((g[d].isTestOK?"SUCCESS":"FAIL")+' // NAME: "'+g[d].name+'" // DESCRIPTION: "'+g[d].descripion+'"\n'),g[d].isTestOK&&"Not over"!=g[d].isTestOK||(c=!0);d="IFreewheelPlayer interface tester: "+(c?"FAIL":"SUCCESS")+"\n";c?k.error(d+a):k.debug(d+a)},1E3,this)}function d(){function a(a){"Not over"==a.isTestOK&& (a.isTestOK=!1,a.descripion+="This event is not thrown when expected. ")}a(f("loaded"));a(f("playing"));a(f("pause"));a(f("ended"))}function e(b){var c=f("getPlayerState() -> String");"undefined"!=typeof a.getPlayerState&&b!=a.getPlayerState()&&(c.isTestOK=!1,c.descripion+="GetPlayerState returned: "+a.getPlayerState()+", expect: "+b+". ")}function f(a){for(var b=!1,c=0;c<g.length&&!b;)g[c].name==a?b=!0:c++;if(b)return g[c]}var g=[];g.push({name:"isInstanceOf(interface: String) -> Bool",isTestOK:"Not over", descripion:""});g.push({name:"play()",isTestOK:"Not over",descripion:""});g.push({name:"pause()",isTestOK:"Not over",descripion:""});g.push({name:"getDuration() -> Number",isTestOK:"Not over",descripion:""});g.push({name:"getCurrentTime() -> Number",isTestOK:"Not over",descripion:""});g.push({name:"setSrc(src: String)",isTestOK:"Not over",descripion:""});g.push({name:"setSrcToTime(src: String, time: Number)",isTestOK:"Not over",descripion:""});g.push({name:"getSrc() -> String",isTestOK:"Not over", descripion:""});g.push({name:"canPlayType(type: String)",isTestOK:"Not over",descripion:""});g.push({name:"seek(time: Number)",isTestOK:"Not over",descripion:""});g.push({name:"getPlayerState() -> String",isTestOK:"Not over",descripion:""});g.push({name:"isControlsEnabled() -> bool",isTestOK:"Not over",descripion:""});g.push({name:"enableControls()",isTestOK:"Not over",descripion:""});g.push({name:"disableControls()",isTestOK:"Not over",descripion:""});g.push({name:"getWidth() -> Number",isTestOK:"Not over", descripion:""});g.push({name:"getHeight() -> Number",isTestOK:"Not over",descripion:""});g.push({name:"getVolume() -> Number",isTestOK:"Not over",descripion:""});g.push({name:"mute(isMute: Bool)",isTestOK:"Not over",descripion:""});g.push({name:"isMuted() -> Bool",isTestOK:"Not over",descripion:""});g.push({name:"setVolume(value: Number)",isTestOK:"Not over",descripion:""});g.push({name:"on(event: String, callback: Function, contect: Obecjt)",isTestOK:"Not over",descripion:""});g.push({name:"off(event: String, callback: Function)", isTestOK:"Not over",descripion:""});g.push({name:"getHTML5InitializedVideoTag() -> Html5VideoTag",isTestOK:"Not over",descripion:""});g.push({name:"getHTML5InitializedAudioTag() -> Html5AudioTag",isTestOK:"Not over",descripion:""});g.push({name:"created",isTestOK:"Not over",descripion:""});g.push({name:"loaded",isTestOK:"Not over",descripion:""});g.push({name:"playing",isTestOK:"Not over",descripion:""});g.push({name:"pause",isTestOK:"Not over",descripion:""});g.push({name:"ended",isTestOK:"Not over", descripion:""});g.push({name:"error",isTestOK:"Not over",descripion:""});(function(){function b(b,c){"function"!=typeof a[b]&&(b=f(c),b.descripion+="Function not implemented. ",b.isTestOK=!1)}b("isInstanceOf","isInstanceOf(interface: String) -> Bool");b("play","play()");b("pause","pause()");b("getDuration","getDuration() -> Number");b("getCurrentTime","getCurrentTime() -> Number");b("setSrc","setSrc(src: String)");b("setSrcToTime","setSrcToTime(src: String, time: Number)");b("canPlayType","canPlayType(type: String)"); b("seek","seek(time: Number)");b("getPlayerState","getPlayerState() -> String");b("isControlsEnabled","isControlsEnabled() -> bool");b("enableControls","enableControls()");b("disableControls","disableControls()");b("getWidth","getWidth() -> Number");b("getHeight","getHeight() -> Number");b("getVolume","getVolume() -> Number");b("setVolume","setVolume(value: Number)");b("mute","mute(isMute: Bool)");b("isMuted","isMuted() -> Bool");b("on","on(event: String, callback: Function, contect: Obecjt)");b("off", "off(event: String, callback: Function)");b("getHTML5InitializedVideoTag","getHTML5InitializedVideoTag() -> Html5VideoTag");b("getHTML5InitializedAudioTag","getHTML5InitializedAudioTag() -> Html5AudioTag")})();(function(){var b=f("isInstanceOf(interface: String) -> Bool");b.isTestOK&&a.isInstanceOf("IFreewheelPlayer")?b.isTestOK=!0:(b.isTestOK=!1,b.descripion+="isInstantOf(\"IFreewheelPlayer\") doesn't return 'true' or is undefined. ")})();(function(){var b=f("canPlayType(type: String)");if(0!=b.isTestOK){var c= a.canPlayType("test");!0===c||!1===c?b.isTestOK=!0:(b.isTestOK=!1,b.descripion+="Value returned is not a boolean. ")}})();(function(){var b=f("getHTML5InitializedVideoTag() -> Html5VideoTag");if(b.isTestOK){var c=a.getHTML5InitializedVideoTag();c?(c.tagName&&"VIDEO"==c.tagName||(b.descripion+="Not an HTML5 video tag. ",b.isTestOK=!1),a._originalPlayer||c.id&&"freewheel-ad-video-player"==c.id||(b.descripion+="id should be 'freewheel-ad-video-player'. ",b.isTestOK=!1),a._originalPlayer||"undefined"!= typeof c.videoSlotCanAutoPlay||(b.descripion+="'videoSlotCanAutoPlay' property have to be set on the video tag element. ",b.isTestOK=!1),0!=b.isTestOK&&(b.isTestOK=!0)):(b.descripion+="Undefined returned element. ",b.isTestOK=!1)}})();(function(){var b=f("getHTML5InitializedAudioTag() -> Html5AudioTag");if(b.isTestOK){var c=a.getHTML5InitializedAudioTag();c?(c.tagName&&"AUDIO"==c.tagName||(b.descripion+="Not an HTML5 audio tag. ",b.isTestOK=!1),a._originalPlayer||c.id&&"freewheel-ad-audio-player"== c.id||(b.descripion+="id should be 'freewheel-ad-audio-player'. ",b.isTestOK=!1),a._originalPlayer||"undefined"!=typeof c.audioSlotCanAutoPlay||(b.descripion+="'audioSlotCanAutoPlay' property have to be set on the audio tag element. ",b.isTestOK=!1),0!=b.isTestOK&&(b.isTestOK=!0)):(b.descripion+="Undefined returned element. ",b.isTestOK=!1)}})();(function(){var b=f("isControlsEnabled() -> bool"),c=f("disableControls()"),d=f("enableControls()");if(c.isTestOK)try{a.disableControls(),c.isTestOK=!0,c.descripion+= "WARN: Test ok but can't check graphically if controls are disabled. ",b.isTestOK&&a.isControlsEnabled()&&(b.isTestOK=!1,b.descripion+="False expected after calling disableControls().")}catch(L){c.isTestOK=!1,c.descripion+="Error thrown when calling the function. "}if(d.isTestOK)try{a.enableControls(),d.isTestOK=!0,d.descripion+="WARN: Test ok but can't check graphically if controls are enabled. ",b.isTestOK&&!a.isControlsEnabled()&&(b.isTestOK=!1,b.descripion+="true expected after calling disableControls().")}catch(L){d.isTestOK= !1,d.descripion+="Error thrown when calling the function. "}0!=b.isTestOK&&(b.isTestOK=!0)})();(function(){var b=f("created"),c=f("getPlayerState() -> String");c.isTestOK?"created"==a.getPlayerState()?b.isTestOK=!0:(b.isTestOK=!1,b.descripion+='Initial state from playerState should be "created"'):(b.isTestOK=!1,b.descripion+="PlayerState not implemented ",c.isTestOK=!1,c.descripion+="PlayerState not implemented ")})();(function(){function b(){c.isTestOK=!1;c.descripion+="Can't get src after behing set. "; d.isTestOK=!1;d.descripion+="Can't get src after behing set. "}var c=f("getSrc() -> String"),d=f("setSrc(src: String)");c.isTestOK&&d.isTestOK?(a.setSrc("http://cdn.stickyadstv.com/www/images/4882-mobile-web-low-56f00dac487ff.mp4"),"http://cdn.stickyadstv.com/www/images/4882-mobile-web-low-56f00dac487ff.mp4"==a.getSrc()?(c.isTestOK=!0,d.isTestOK=!0):b()):b()})();(function(){function b(b,c){!b.isTestOK||isNaN(a[c]())?(b.isTestOK=!1,b.descripion+="There is Number returned"):b.isTestOK=!0}b(f("getWidth() -> Number"), "getWidth");b(f("getHeight() -> Number"),"getHeight")})();(function(){var b=f("getVolume() -> Number"),c=f("setVolume(value: Number)");if(b.isTestOK)if(isNaN(a.getVolume())){var d="Can't check the volume because getVolume return is not a Number. ";b.isTestOK=!1;b.descripion+=d;c.isTestOK=!1;c.descripion+=d}else b.isTestOK=!0,c.isTestOK?(a.setVolume(.4),.4!=a.getVolume()?(c.isTestOK=!1,c.descripion+="Fail to set a new volume to 0.4. "):c.isTestOK=!0):(c.isTestOK=!1,c.descripion+="Can't check the volume because setVolume is not implemented. "); else d="Can't check the volume because getVolume is not implemented. ",b.isTestOK=!1,b.descripion+=d,c.isTestOK=!1,c.descripion+=d})();(function(){var b=f("mute(isMute: Bool)"),c=f("isMuted() -> Bool");if(c.isTestOK)if("boolean"!=typeof a.isMuted()){var d="Can't check the mute because isMuted don't return a bool. ";b.isTestOK=!1;b.descripion+=d;c.isTestOK=!1;c.descripion+=d}else c.isTestOK=!0,b.isTestOK?(a.mute(!0),a.mute(!1),a.isMuted()?(b.isTestOK=!1,b.descripion+="Fail to unmute. "):b.isTestOK= !0):(b.isTestOK=!1,b.descripion+="Can't check the mute because isMuted is not implemented. ");else d="Can't check mute because isMuted is not implemented. ",b.isTestOK=!1,b.descripion+=d,c.isTestOK=!1,c.descripion+=d})();(function(){var b=f("play()"),c=f("pause()"),d=f("getPlayerState() -> String"),g=f("getDuration() -> Number"),h=f("seek(time: Number)"),k=f("on(event: String, callback: Function, contect: Obecjt)"),l=f("off(event: String, callback: Function)"),m=f("loaded"),n=f("playing"),p=f("pause"), q=f("ended");if(f("setSrc(src: String)").isTestOK&&b.isTestOK&&c.isTestOK&&d.isTestOK&&h.isTestOK&&k.isTestOK&&l.isTestOK)a.on("loaded",function(b){this._loadedProc||(this._loadedProc=!0,m.isTestOK=!0,e("loaded"),0!=g.isTestOK&&(8.8!=a.getDuration()?(g.isTestOK=!1,g.descripion="Wrong duration returned. "+a.getDuration()):g.isTestOK=!0),a.play())},this),a.on("playing",function(c){this._playProc||(this._playProc=!0,e("playing"),n.isTestOK=!0,b.isTestOK=!0,b.isTestOK=!0,a.pause(),a.pause())},this),a.on("pause", function(b){this._pauseProc||(this._pauseProc=!0,e("pause"),p.isTestOK=!0,c.isTestOK=!0,a.seek(5),D(function(){if(f("getCurrentTime() -> Number").isTestOK&&"undefined"!=typeof a.getCurrentTime())if(isNaN(a.getCurrentTime()))f("getCurrentTime() -> Number").descripion+="The returned value is not a Number. ",f("getCurrentTime() -> Number").isTestOK=!1;else{var b=a.getCurrentTime();4<b||6>b?(h.isTestOK=!0,f("getCurrentTime() -> Number").isTestOK=!0):(b="Expected seek is 5, real current time is "+b+". ", f("getCurrentTime() -> Number").descripion+=b,f("getCurrentTime() -> Number").isTestOK=!1,h.descripion+=b,h.isTestOK=!1)}else f("getCurrentTime() -> Number").descripion+="No value returned. ",f("getCurrentTime() -> Number").isTestOK=!1;a.seek(8)},100,this),a.play())},this),a.on("ended",function(a){this._endedProc||(this._endedProc=!0,e("ended"),0!=d.isTestOK&&(d.isTestOK=!0),q.isTestOK=!0)},this),a.setSrc("http://cdn.stickyadstv.com/www/images/4882-mobile-web-low-56f00dac487ff.mp4");else for(k=[b, c,d,h,m,b,c,q],l=0;l<k.length;l++)k[l].isTestOK=!1,k[l].descripion+="Can't test because some functions are not defined. "})();D(function(){d();b();D(function(){c()},1E3,this)},4E3,this)}},{});l.getIFreewheelPlayerFromHtml5VideoTag=l.getIFreewheelPlayerFromHtml5VideoTag;l.getIFreewheelPlayerFromHtml5AudioTag=l.getIFreewheelPlayerFromHtml5AudioTag;l.getIFreewheelPlayerFromJW6Player=l.getIFreewheelPlayerFromJW6Player;l.getIFreewheelPlayerFromJW7Player=l.getIFreewheelPlayerFromJW7Player;l.getIFreewheelPlayerFromBCPlayer= l.getIFreewheelPlayerFromBCPlayer;l.getIFreewheelPlayerFromFlowplayer5AndLess=l.getIFreewheelPlayerFromFlowplayer5AndLess;l.getIFreewheelPlayerFromFlowplayer6AndPlus=l.getIFreewheelPlayerFromFlowplayer6AndPlus;l.getIFreewheelPlayerFromAndroidNative=l.getIFreewheelPlayerFromAndroidNative;l.getIFreewheelPlayerFromiOSNative=l.getIFreewheelPlayerFromiOSNative;l.checkInterface=l.checkInterface;return l});p("mustang/build/VpaidAdapter",["mod!com.stickyadstv.vpaid.iab.Adapter","mod!com.stickyadstv.vpaid.VpaidAdapter", "mod!com.stickyadstv.player.freewheelPlayer.IFreewheelPlayerAdapter","mod!com.stickyadstv.display.Slot"],function(d,e,c,b){var a=new t("com.stickyadstv.vpaid.VpaidAdapter"),f=d.extend(new function(){this.init=function(d){this._super({},function(f,g){f.slot=f.slot;f.videoSlot=f.videoSlot;var h=f.slot,k=f.videoSlot;h&&!h.nodeType&&"src"in h&&(h=f.videoSlot,k=f.slot);var l=h||k;f.videoSlot&&f.slot&&(l=c.getIFreewheelPlayerFromHtml5VideoTag(f.videoSlot),l=b.factory(f.slot,l));a.debug("init VpaidAdapter with adContainer: "+ h+" videoSlot: "+k);f=new e(l,d);g.onSuccess({ad:f})})}});(function(){var a;window.getVPAIDAd=function(){"undefined"==typeof a&&(a=new f({}));return a}.bind(this)})()});fb(["mod!build.VpaidAdapter"])})();