var style = document.createElement('style'); style.type = 'text/css'; style.innerHTML = '.mob-rek-a {width:100%;text-align:center;display: none;} @media screen and (max-width: 510px) {.mob-rek-a {display: block;grid-column-start: 1;grid-column-end: 3;}}'; document.getElementsByTagName('head')[0].appendChild(style); var VAST=function(e){"use strict";function t(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,i)}return r}function r(e){for(var r=1;re.length)&&(t=e.length);for(var r=0,i=Array(t);r0&&void 0!==arguments[0]?arguments[0]:{};return{id:e.id||null,adId:e.adId||null,sequence:e.sequence||null,apiFramework:e.apiFramework||null,universalAdIds:[],creativeExtensions:[]}}var m=["ADCATEGORIES","ADCOUNT","ADPLAYHEAD","ADSERVINGID","ADTYPE","APIFRAMEWORKS","APPBUNDLE","ASSETURI","BLOCKEDADCATEGORIES","BREAKMAXADLENGTH","BREAKMAXADS","BREAKMAXDURATION","BREAKMINADLENGTH","BREAKMINDURATION","BREAKPOSITION","CLICKPOS","CLICKTYPE","CLIENTUA","CONTENTID","CONTENTPLAYHEAD","CONTENTURI","DEVICEIP","DEVICEUA","DOMAIN","EXTENSIONS","GDPRCONSENT","IFA","IFATYPE","INVENTORYSTATE","LATLONG","LIMITADTRACKING","MEDIAMIME","MEDIAPLAYHEAD","OMIDPARTNER","PAGEURL","PLACEMENTTYPE","PLAYERCAPABILITIES","PLAYERSIZE","PLAYERSTATE","PODSEQUENCE","REGULATIONS","SERVERSIDE","SERVERUA","TRANSACTIONID","UNIVERSALADID","VASTVERSIONS","VERIFICATIONVENDORS"];function f(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=[],n=y(e);for(var a in!t.ERRORCODE||r.isCustomCode||/^[0-9]{3}$/.test(t.ERRORCODE)||(t.ERRORCODE=900),t.CACHEBUSTING=R(Math.round(1e8*Math.random())),t.TIMESTAMP=(new Date).toISOString(),t.RANDOM=t.random=t.CACHEBUSTING,t)t[a]=A(t[a]);for(var o in n){var s=n[o];"string"==typeof s&&i.push(g(s,t))}return i}function g(e,t){var r=(e=$(e,t)).match(/[^[\]]+(?=])/g);if(!r)return e;var i=r.filter(function(e){return m.indexOf(e)>-1});return 0===i.length?e:$(e,i=i.reduce(function(e,t){return e[t]=-1,e},{}))}function $(e,t){var r=e;for(var i in t){var n=t[i];r=r.replace(RegExp("(?:\\[|%%)(".concat(i,")(?:\\]|%%)"),"g"),n)}return r}function y(e){return Array.isArray(e)?e.map(function(e){return e&&e.hasOwnProperty("url")?e.url:e}):e}function T(e,t){for(var r=0;r1&&void 0!==arguments[1]?arguments[1]:8;return e.toString().padStart(t,"0")}var b={track:function(e,t,r){f(e,t,r).forEach(function(e){"undefined"!=typeof window&&null!==window&&((new Image).src=e)})},resolveURLTemplates:f,extractURLsFromTemplates:y,containsTemplateObject:T,isTemplateObjectEqual:k,encodeURIComponentRFC3986:A,replaceUrlMacros:g,isNumeric:function(e){return!isNaN(parseFloat(e))&&isFinite(e)},flatten:function e(t){return t.reduce(function(t,r){return t.concat(Array.isArray(r)?e(r):r)},[])},joinArrayOfUniqueTemplateObjs:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=Array.isArray(e)?e:[],i=Array.isArray(t)?t:[];return r.concat(i).reduce(function(e,t){return T(t,e)||e.push(t),e},[])},isValidTimeValue:function(e){return Number.isFinite(e)&&e>=-2},addLeadingZeros:R};function E(e){return -1!==["true","TRUE","True","1"].indexOf(e)}var L={childByName:function(e,t){var r=e.childNodes;for(var i in r){var n=r[i];if(n.nodeName===t)return n}},childrenByName:function(e,t){var r=[],i=e.childNodes;for(var n in i){var a=i[n];a.nodeName===t&&r.push(a)}return r},resolveVastAdTagURI:function(e,t){if(!t)return e;if(0===e.indexOf("//")){var r=location.protocol;return"".concat(r).concat(e)}if(-1===e.indexOf("://")){var i=t.slice(0,t.lastIndexOf("/"));return"".concat(i,"/").concat(e)}return e},parseBoolean:E,parseNodeText:function(e){return e&&(e.textContent||e.text||"").trim()},copyNodeAttribute:function(e,t,r){var i=t.getAttribute(e);i&&r.setAttribute(e,i)},parseAttributes:function(e){for(var t=e.attributes,r={},i=0;i3600||i>60?-1:a+n+i},splitVAST:function(e){var t=[],r=null;return e.forEach(function(i,n){if(i.sequence&&(i.sequence=parseInt(i.sequence,10)),i.sequence>1){var a=e[n-1];if(a&&a.sequence===i.sequence-1)return void(r&&r.push(i));delete i.sequence}r=[i],t.push(r)}),t},assignAttributes:function(e,t){if(e)for(var r in e){var i=e[r];if(i.nodeName&&i.nodeValue&&t.hasOwnProperty(i.nodeName)){var n=i.nodeValue;"boolean"==typeof t[i.nodeName]&&(n=E(n)),t[i.nodeName]=n}}},mergeWrapperAdData:function(e,t){e.errorURLTemplates=t.errorURLTemplates.concat(e.errorURLTemplates),e.impressionURLTemplates=t.impressionURLTemplates.concat(e.impressionURLTemplates),e.extensions=t.extensions.concat(e.extensions),t.viewableImpression.length>0&&(e.viewableImpression=[].concat(p(e.viewableImpression),p(t.viewableImpression))),e.followAdditionalWrappers=t.followAdditionalWrappers,e.allowMultipleAds=t.allowMultipleAds,e.fallbackOnNoAd=t.fallbackOnNoAd;var r=(t.creatives||[]).filter(function(e){return e&&"companion"===e.type}),i=r.reduce(function(e,t){return(t.variations||[]).forEach(function(t){(t.companionClickTrackingURLTemplates||[]).forEach(function(t){b.containsTemplateObject(t,e)||e.push(t)})}),e},[]);e.creatives=r.concat(e.creatives);var n=t.videoClickTrackingURLTemplates&&t.videoClickTrackingURLTemplates.length,a=t.videoCustomClickURLTemplates&&t.videoCustomClickURLTemplates.length;e.creatives.forEach(function(e){if(t.trackingEvents&&t.trackingEvents[e.type])for(var r in t.trackingEvents[e.type]){var o=t.trackingEvents[e.type][r];Array.isArray(e.trackingEvents[r])||(e.trackingEvents[r]=[]),e.trackingEvents[r]=e.trackingEvents[r].concat(o)}"linear"!==e.type||(n&&(e.videoClickTrackingURLTemplates=e.videoClickTrackingURLTemplates.concat(t.videoClickTrackingURLTemplates)),a&&(e.videoCustomClickURLTemplates=e.videoCustomClickURLTemplates.concat(t.videoCustomClickURLTemplates)),t.videoClickThroughURLTemplate&&(null===e.videoClickThroughURLTemplate||void 0===e.videoClickThroughURLTemplate)&&(e.videoClickThroughURLTemplate=t.videoClickThroughURLTemplate)),"companion"===e.type&&i.length&&(e.variations||[]).forEach(function(e){e.companionClickTrackingURLTemplates=b.joinArrayOfUniqueTemplateObjs(e.companionClickTrackingURLTemplates,i)})}),t.adVerifications&&(e.adVerifications=e.adVerifications.concat(t.adVerifications)),t.blockedAdCategories&&(e.blockedAdCategories=e.blockedAdCategories.concat(t.blockedAdCategories))}};function N(e,t){var r=function(){var e,t=v(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),r=t.id,i=t.adId;return{id:r,adId:i,sequence:t.sequence,apiFramework:t.apiFramework,type:"companion",required:null,variations:[]}}(t);return r.required=e.getAttribute("required")||null,r.variations=L.childrenByName(e,"Companion").map(function(e){var t=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{id:e.id||null,adType:"companionAd",width:e.width||0,height:e.height||0,assetWidth:e.assetWidth||null,assetHeight:e.assetHeight||null,expandedWidth:e.expandedWidth||null,expandedHeight:e.expandedHeight||null,apiFramework:e.apiFramework||null,adSlotID:e.adSlotID||null,pxratio:e.pxratio||"1",renderingMode:e.renderingMode||"default",staticResources:[],htmlResources:[],iframeResources:[],adParameters:null,xmlEncoded:null,altText:null,companionClickThroughURLTemplate:null,companionClickTrackingURLTemplates:[],trackingEvents:{}}}(L.parseAttributes(e));t.htmlResources=L.childrenByName(e,"HTMLResource").reduce(function(e,t){var r=L.parseNodeText(t);return r?e.concat(r):e},[]),t.iframeResources=L.childrenByName(e,"IFrameResource").reduce(function(e,t){var r=L.parseNodeText(t);return r?e.concat(r):e},[]),t.staticResources=L.childrenByName(e,"StaticResource").reduce(function(e,t){var r=L.parseNodeText(t);return r?e.concat({url:r,creativeType:t.getAttribute("creativeType")||null}):e},[]),t.altText=L.parseNodeText(L.childByName(e,"AltText"))||null;var r=L.childByName(e,"TrackingEvents");r&&L.childrenByName(r,"Tracking").forEach(function(e){var r=e.getAttribute("event"),i=L.parseNodeText(e);r&&i&&(Array.isArray(t.trackingEvents[r])||(t.trackingEvents[r]=[]),t.trackingEvents[r].push(i))}),t.companionClickTrackingURLTemplates=L.childrenByName(e,"CompanionClickTracking").map(function(e){return{id:e.getAttribute("id")||null,url:L.parseNodeText(e)}}),t.companionClickThroughURLTemplate=L.parseNodeText(L.childByName(e,"CompanionClickThrough"))||null;var i=L.childByName(e,"AdParameters");return i&&(t.adParameters=L.parseNodeText(i),t.xmlEncoded=i.getAttribute("xmlEncoded")||null),t}),r}function _(e,t){var r,i=function(){var e,t=v(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),r=t.id,i=t.adId;return{id:r,adId:i,sequence:t.sequence,apiFramework:t.apiFramework,type:"linear",duration:0,skipDelay:null,mediaFiles:[],mezzanine:null,interactiveCreativeFile:null,closedCaptionFiles:[],videoClickThroughURLTemplate:null,videoClickTrackingURLTemplates:[],videoCustomClickURLTemplates:[],adParameters:null,icons:[],trackingEvents:{}}}(t);i.duration=L.parseDuration(L.parseNodeText(L.childByName(e,"Duration")));var n=e.getAttribute("skipoffset");if(null==n)i.skipDelay=null;else if("%"===n.charAt(n.length-1)&&-1!==i.duration){var a=parseInt(n,10);i.skipDelay=i.duration*(a/100)}else i.skipDelay=L.parseDuration(n);var o=L.childByName(e,"VideoClicks");if(o){var s=L.childByName(o,"ClickThrough");i.videoClickThroughURLTemplate=s?{id:s.getAttribute("id")||null,url:L.parseNodeText(s)}:null,L.childrenByName(o,"ClickTracking").forEach(function(e){i.videoClickTrackingURLTemplates.push({id:e.getAttribute("id")||null,url:L.parseNodeText(e)})}),L.childrenByName(o,"CustomClick").forEach(function(e){i.videoCustomClickURLTemplates.push({id:e.getAttribute("id")||null,url:L.parseNodeText(e)})})}var l=L.childByName(e,"AdParameters");l&&(i.adParameters=L.parseNodeText(l)),L.childrenByName(e,"TrackingEvents").forEach(function(e){L.childrenByName(e,"Tracking").forEach(function(e){var t=e.getAttribute("event"),n=L.parseNodeText(e);if(t&&n){if("progress"===t){if(!(r=e.getAttribute("offset")))return;t="%"===r.charAt(r.length-1)?"progress-".concat(r):"progress-".concat(Math.round(L.parseDuration(r)))}Array.isArray(i.trackingEvents[t])||(i.trackingEvents[t]=[]),i.trackingEvents[t].push(n)}})}),L.childrenByName(e,"MediaFiles").forEach(function(e){L.childrenByName(e,"MediaFile").forEach(function(e){var t,r,n,a;i.mediaFiles.push((t=e,(r={id:null,fileURL:null,fileSize:0,deliveryType:"progressive",mimeType:null,mediaType:null,codec:null,bitrate:0,minBitrate:0,maxBitrate:0,width:0,height:0,apiFramework:null,scalable:null,maintainAspectRatio:null}).id=t.getAttribute("id"),r.fileURL=L.parseNodeText(t),r.deliveryType=t.getAttribute("delivery"),r.codec=t.getAttribute("codec"),r.mimeType=t.getAttribute("type"),r.mediaType=t.getAttribute("mediaType")||"2D",r.apiFramework=t.getAttribute("apiFramework"),r.fileSize=parseInt(t.getAttribute("fileSize")||0),r.bitrate=parseInt(t.getAttribute("bitrate")||0),r.minBitrate=parseInt(t.getAttribute("minBitrate")||0),r.maxBitrate=parseInt(t.getAttribute("maxBitrate")||0),r.width=parseInt(t.getAttribute("width")||0),r.height=parseInt(t.getAttribute("height")||0),(n=t.getAttribute("scalable"))&&"string"==typeof n&&(r.scalable=L.parseBoolean(n)),(a=t.getAttribute("maintainAspectRatio"))&&"string"==typeof a&&(r.maintainAspectRatio=L.parseBoolean(a)),r))});var t,r,n=L.childByName(e,"InteractiveCreativeFile");n&&(i.interactiveCreativeFile=(t=n,(r=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{type:e.type||null,apiFramework:e.apiFramework||null,variableDuration:L.parseBoolean(e.variableDuration),fileURL:null}}(L.parseAttributes(t))).fileURL=L.parseNodeText(t),r));var a=L.childByName(e,"ClosedCaptionFiles");a&&L.childrenByName(a,"ClosedCaptionFile").forEach(function(e){var t=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{type:e.type||null,language:e.language||null,fileURL:null}}(L.parseAttributes(e));t.fileURL=L.parseNodeText(e),i.closedCaptionFiles.push(t)});var o,s,l,c=L.childByName(e,"Mezzanine"),u=(o=c,s={},l=!1,["delivery","type","width","height"].forEach(function(e){o&&o.getAttribute(e)?s[e]=o.getAttribute(e):l=!0}),l?null:s);if(u){var d={id:null,fileURL:null,delivery:null,codec:null,type:null,width:0,height:0,fileSize:0,mediaType:"2D"};d.id=c.getAttribute("id"),d.fileURL=L.parseNodeText(c),d.delivery=u.delivery,d.codec=c.getAttribute("codec"),d.type=u.type,d.width=parseInt(u.width,10),d.height=parseInt(u.height,10),d.fileSize=parseInt(c.getAttribute("fileSize"),10),d.mediaType=c.getAttribute("mediaType")||"2D",i.mezzanine=d}});var c=L.childByName(e,"Icons");return c&&L.childrenByName(c,"Icon").forEach(function(e){var t,r,n,a,o;i.icons.push((t=e,(r={program:null,height:0,width:0,xPosition:0,yPosition:0,apiFramework:null,offset:null,duration:0,type:null,staticResource:null,htmlResource:null,iframeResource:null,pxratio:"1",iconClickThroughURLTemplate:null,iconClickTrackingURLTemplates:[],iconViewTrackingURLTemplate:null}).program=t.getAttribute("program"),r.height=parseInt(t.getAttribute("height")||0),r.width=parseInt(t.getAttribute("width")||0),r.xPosition=-1!==["left","right"].indexOf(n=t.getAttribute("xPosition"))?n:parseInt(n||0),r.yPosition=-1!==["top","bottom"].indexOf(a=t.getAttribute("yPosition"))?a:parseInt(a||0),r.apiFramework=t.getAttribute("apiFramework"),r.pxratio=t.getAttribute("pxratio")||"1",r.offset=L.parseDuration(t.getAttribute("offset")),r.duration=L.parseDuration(t.getAttribute("duration")),L.childrenByName(t,"HTMLResource").forEach(function(e){r.type=e.getAttribute("creativeType")||"text/html",r.htmlResource=L.parseNodeText(e)}),L.childrenByName(t,"IFrameResource").forEach(function(e){r.type=e.getAttribute("creativeType")||0,r.iframeResource=L.parseNodeText(e)}),L.childrenByName(t,"StaticResource").forEach(function(e){r.type=e.getAttribute("creativeType")||0,r.staticResource=L.parseNodeText(e)}),(o=L.childByName(t,"IconClicks"))&&(r.iconClickThroughURLTemplate=L.parseNodeText(L.childByName(o,"IconClickThrough")),L.childrenByName(o,"IconClickTracking").forEach(function(e){r.iconClickTrackingURLTemplates.push({id:e.getAttribute("id")||null,url:L.parseNodeText(e)})})),r.iconViewTrackingURLTemplate=L.parseNodeText(L.childByName(t,"IconViewTracking")),r))}),i}function x(e,t){var r=function(){var e,t=v(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),r=t.id,i=t.adId;return{id:r,adId:i,sequence:t.sequence,apiFramework:t.apiFramework,type:"nonlinear",variations:[],trackingEvents:{}}}(t);return L.childrenByName(e,"TrackingEvents").forEach(function(e){var t,i;L.childrenByName(e,"Tracking").forEach(function(e){t=e.getAttribute("event"),i=L.parseNodeText(e),t&&i&&(Array.isArray(r.trackingEvents[t])||(r.trackingEvents[t]=[]),r.trackingEvents[t].push(i))})}),L.childrenByName(e,"NonLinear").forEach(function(e){var t={id:null,width:0,height:0,expandedWidth:0,expandedHeight:0,scalable:!0,maintainAspectRatio:!0,minSuggestedDuration:0,apiFramework:"static",adType:"nonLinearAd",type:null,staticResource:null,htmlResource:null,iframeResource:null,nonlinearClickThroughURLTemplate:null,nonlinearClickTrackingURLTemplates:[],adParameters:null};t.id=e.getAttribute("id")||null,t.width=e.getAttribute("width"),t.height=e.getAttribute("height"),t.expandedWidth=e.getAttribute("expandedWidth"),t.expandedHeight=e.getAttribute("expandedHeight"),t.scalable=L.parseBoolean(e.getAttribute("scalable")),t.maintainAspectRatio=L.parseBoolean(e.getAttribute("maintainAspectRatio")),t.minSuggestedDuration=L.parseDuration(e.getAttribute("minSuggestedDuration")),t.apiFramework=e.getAttribute("apiFramework"),L.childrenByName(e,"HTMLResource").forEach(function(e){t.type=e.getAttribute("creativeType")||"text/html",t.htmlResource=L.parseNodeText(e)}),L.childrenByName(e,"IFrameResource").forEach(function(e){t.type=e.getAttribute("creativeType")||0,t.iframeResource=L.parseNodeText(e)}),L.childrenByName(e,"StaticResource").forEach(function(e){t.type=e.getAttribute("creativeType")||0,t.staticResource=L.parseNodeText(e)});var i=L.childByName(e,"AdParameters");i&&(t.adParameters=L.parseNodeText(i)),t.nonlinearClickThroughURLTemplate=L.parseNodeText(L.childByName(e,"NonLinearClickThrough")),L.childrenByName(e,"NonLinearClickTracking").forEach(function(e){t.nonlinearClickTrackingURLTemplates.push({id:e.getAttribute("id")||null,url:L.parseNodeText(e)})}),r.variations.push(t)}),r}function C(e){var t=[];return e.forEach(function(e){var r=function e(t){if("#comment"===t.nodeName)return null;var r,i={name:null,value:null,attributes:{},children:[]},n=t.attributes,a=t.childNodes;if(i.name=t.nodeName,t.attributes){for(var o in n)if(n.hasOwnProperty(o)){var s=n[o];s.nodeName&&s.nodeValue&&(i.attributes[s.nodeName]=s.nodeValue)}}for(var l in a)if(a.hasOwnProperty(l)){var c=e(a[l]);c&&i.children.push(c)}if(0===i.children.length||1===i.children.length&&["#cdata-section","#text"].indexOf(i.children[0].name)>=0){var u=L.parseNodeText(t);""!==u&&(i.value=u),i.children=[]}return null===(r=i).value&&0===Object.keys(r.attributes).length&&0===r.children.length?null:i}(e);r&&t.push(r)}),t}function w(e){var t=[];return e.forEach(function(e){var r,i,n={id:e.getAttribute("id")||null,adId:(r=e,r.getAttribute("AdID")||r.getAttribute("adID")||r.getAttribute("adId")||null),sequence:e.getAttribute("sequence")||null,apiFramework:e.getAttribute("apiFramework")||null},a=[];L.childrenByName(e,"UniversalAdId").forEach(function(e){var t={idRegistry:e.getAttribute("idRegistry")||"unknown",value:L.parseNodeText(e)};a.push(t)});var o=L.childByName(e,"CreativeExtensions");for(var s in o&&(i=C(L.childrenByName(o,"CreativeExtension"))),e.childNodes){var l=e.childNodes[s],c=void 0;switch(l.nodeName){case"Linear":c=_(l,n);break;case"NonLinearAds":c=x(l,n);break;case"CompanionAds":c=N(l,n)}c&&(a&&(c.universalAdIds=a),i&&(c.creativeExtensions=i),t.push(c))}}),t}var U={Wrapper:{subElements:["VASTAdTagURI","Impression"]},BlockedAdCategories:{attributes:["authority"]},InLine:{subElements:["AdSystem","AdTitle","Impression","AdServingId","Creatives"]},Category:{attributes:["authority"]},Pricing:{attributes:["model","currency"]},Verification:{oneOfinLineResources:["JavaScriptResource","ExecutableResource"],attributes:["vendor"]},UniversalAdId:{attributes:["idRegistry"]},JavaScriptResource:{attributes:["apiFramework","browserOptional"]},ExecutableResource:{attributes:["apiFramework","type"]},Tracking:{attributes:["event"]},Creatives:{subElements:["Creative"]},Creative:{subElements:["UniversalAdId"]},Linear:{subElements:["MediaFiles","Duration"]},MediaFiles:{subElements:["MediaFile"]},MediaFile:{attributes:["delivery","type","width","height"]},Mezzanine:{attributes:["delivery","type","width","height"]},NonLinear:{oneOfinLineResources:["StaticResource","IFrameResource","HTMLResource"],attributes:["width","height"]},Companion:{oneOfinLineResources:["StaticResource","IFrameResource","HTMLResource"],attributes:["width","height"]},StaticResource:{attributes:["creativeType"]},Icons:{subElements:["Icon"]},Icon:{oneOfinLineResources:["StaticResource","IFrameResource","HTMLResource"]}};function I(e,t){if(U[e.nodeName]&&U[e.nodeName].attributes){var r=U[e.nodeName].attributes.filter(function(t){return!e.getAttribute(t)});r.length>0&&D({name:e.nodeName,parentName:e.parentNode.nodeName,attributes:r},t)}}function S(e,t,r){var i=U[e.nodeName],n=!r&&"Wrapper"!==e.nodeName;if(i&&!n){if(i.subElements){var a=i.subElements.filter(function(t){return!L.childByName(e,t)});a.length>0&&D({name:e.nodeName,parentName:e.parentNode.nodeName,subElements:a},t)}r&&i.oneOfinLineResources&&(i.oneOfinLineResources.some(function(t){return L.childByName(e,t)})||D({name:e.nodeName,parentName:e.parentNode.nodeName,oneOfResources:i.oneOfinLineResources},t))}}function V(e){return e.children&&0!==e.children.length}function D(e,t){var r=e.name,i=e.parentName,n=e.attributes,a=e.subElements,o=e.oneOfResources,s="Element '".concat(r,"'");t("VAST-warning",{message:s+=n?" missing required attribute(s) '".concat(n.join(", "),"' "):a?" missing required sub element(s) '".concat(a.join(", "),"' "):o?" must provide one of the following '".concat(o.join(", "),"' "):" is empty",parentElement:i,specVersion:4.1})}var O={verifyRequiredValues:function e(t,r,i){if(t&&t.nodeName){if("InLine"===t.nodeName&&(i=!0),I(t,r),V(t)){S(t,r,i);for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:{},i=r.allowMultipleAds,n=r.followAdditionalWrappers,a=e.childNodes;for(var o in a){var s=a[o];if(-1!==["Wrapper","InLine"].indexOf(s.nodeName)&&("Wrapper"!==s.nodeName||!1!==n)){if(L.copyNodeAttribute("id",e,s),L.copyNodeAttribute("sequence",e,s),L.copyNodeAttribute("adType",e,s),"Wrapper"===s.nodeName)return{ad:M(s,t),type:"WRAPPER"};if("InLine"===s.nodeName)return{ad:P(s,t,{allowMultipleAds:i}),type:"INLINE"}}}}function P(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return!1===r.allowMultipleAds&&e.getAttribute("sequence")?null:F(e,t)}function F(e,t){var r=[];t&&O.verifyRequiredValues(e,t);var i=e.childNodes,n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{id:e.id||null,sequence:e.sequence||null,adType:e.adType||null,adServingId:null,categories:[],expires:null,viewableImpression:[],system:null,title:null,description:null,advertiser:null,pricing:null,survey:null,errorURLTemplates:[],impressionURLTemplates:[],creatives:[],extensions:[],adVerifications:[],blockedAdCategories:[],followAdditionalWrappers:!0,allowMultipleAds:!1,fallbackOnNoAd:null}}(L.parseAttributes(e));for(var a in i){var o=i[a];switch(o.nodeName){case"Error":n.errorURLTemplates.push(L.parseNodeText(o));break;case"Impression":n.impressionURLTemplates.push({id:o.getAttribute("id")||null,url:L.parseNodeText(o)});break;case"Creatives":n.creatives=w(L.childrenByName(o,"Creative"));break;case"Extensions":var s=L.childrenByName(o,"Extension");n.extensions=C(s),n.adVerifications.length||(r=j(s));break;case"AdVerifications":n.adVerifications=W(L.childrenByName(o,"Verification"));break;case"AdSystem":n.system={value:L.parseNodeText(o),version:o.getAttribute("version")||null};break;case"AdTitle":n.title=L.parseNodeText(o);break;case"AdServingId":n.adServingId=L.parseNodeText(o);break;case"Category":n.categories.push({authority:o.getAttribute("authority")||null,value:L.parseNodeText(o)});break;case"Expires":n.expires=parseInt(L.parseNodeText(o),10);break;case"ViewableImpression":n.viewableImpression.push(q(o));break;case"Description":n.description=L.parseNodeText(o);break;case"Advertiser":n.advertiser={id:o.getAttribute("id")||null,value:L.parseNodeText(o)};break;case"Pricing":n.pricing={value:L.parseNodeText(o),model:o.getAttribute("model")||null,currency:o.getAttribute("currency")||null};break;case"Survey":n.survey=L.parseNodeText(o);break;case"BlockedAdCategories":n.blockedAdCategories.push({authority:o.getAttribute("authority")||null,value:L.parseNodeText(o)})}}return r.length&&(n.adVerifications=n.adVerifications.concat(r)),n}function M(e,t){var r=F(e,t),i=e.getAttribute("followAdditionalWrappers"),n=e.getAttribute("allowMultipleAds"),a=e.getAttribute("fallbackOnNoAd");r.followAdditionalWrappers=!i||L.parseBoolean(i),r.allowMultipleAds=!!n&&L.parseBoolean(n),r.fallbackOnNoAd=a?L.parseBoolean(a):null;var o=L.childByName(e,"VASTAdTagURI");if(o?r.nextWrapperURL=L.parseNodeText(o):(o=L.childByName(e,"VASTAdTagURL"))&&(r.nextWrapperURL=L.parseNodeText(L.childByName(o,"URL"))),r.creatives.forEach(function(e){if(-1!==["linear","nonlinear"].indexOf(e.type)){if(e.trackingEvents){r.trackingEvents||(r.trackingEvents={}),r.trackingEvents[e.type]||(r.trackingEvents[e.type]={});var t=function(t){var i=e.trackingEvents[t];Array.isArray(r.trackingEvents[e.type][t])||(r.trackingEvents[e.type][t]=[]),i.forEach(function(i){r.trackingEvents[e.type][t].push(i)})};for(var i in e.trackingEvents)t(i)}e.videoClickTrackingURLTemplates&&(Array.isArray(r.videoClickTrackingURLTemplates)||(r.videoClickTrackingURLTemplates=[]),e.videoClickTrackingURLTemplates.forEach(function(e){r.videoClickTrackingURLTemplates.push(e)})),e.videoClickThroughURLTemplate&&(r.videoClickThroughURLTemplate=e.videoClickThroughURLTemplate),e.videoCustomClickURLTemplates&&(Array.isArray(r.videoCustomClickURLTemplates)||(r.videoCustomClickURLTemplates=[]),e.videoCustomClickURLTemplates.forEach(function(e){r.videoCustomClickURLTemplates.push(e)}))}}),r.nextWrapperURL)return r}function W(e){var t=[];return e.forEach(function(e){var r={resource:null,vendor:null,browserOptional:!1,apiFramework:null,type:null,parameters:null,trackingEvents:{}},i=e.childNodes;for(var n in L.assignAttributes(e.attributes,r),i){var a=i[n];switch(a.nodeName){case"JavaScriptResource":case"ExecutableResource":r.resource=L.parseNodeText(a),L.assignAttributes(a.attributes,r);break;case"VerificationParameters":r.parameters=L.parseNodeText(a)}}var o=L.childByName(e,"TrackingEvents");o&&L.childrenByName(o,"Tracking").forEach(function(e){var t=e.getAttribute("event"),i=L.parseNodeText(e);t&&i&&(Array.isArray(r.trackingEvents[t])||(r.trackingEvents[t]=[]),r.trackingEvents[t].push(i))}),t.push(r)}),t}function j(e){var t=null,r=[];return e.some(function(e){return t=L.childByName(e,"AdVerifications")}),t&&(r=W(L.childrenByName(t,"Verification"))),r}function q(e){var t={};t.id=e.getAttribute("id")||null;var r=e.childNodes;for(var i in r){var n=r[i],a=n.nodeName,o=L.parseNodeText(n);if(("Viewable"===a||"NotViewable"===a||"ViewUndetermined"===a)&&o){var s=a.toLowerCase();Array.isArray(t[s])||(t[s]=[]),t[s].push(o)}}return t}var H=function(){function e(){n(this,e),this._handlers=[]}return o(e,[{key:"on",value:function(e,t){if("function"!=typeof t)throw TypeError("The handler argument must be of type Function. Received type ".concat(i(t)));if(!e)throw TypeError("The event argument must be of type String. Received type ".concat(i(e)));return this._handlers.push({event:e,handler:t}),this}},{key:"once",value:function(e,t){return this.on(e,function(e,t,r){var i={fired:!1,wrapFn:void 0};function n(){i.fired||(e.off(t,i.wrapFn),i.fired=!0,r.bind(e).apply(void 0,arguments))}return i.wrapFn=n,n}(this,e,t))}},{key:"off",value:function(e,t){return this._handlers=this._handlers.filter(function(r){return r.event!==e||r.handler!==t}),this}},{key:"emit",value:function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),i=1;i2?r-2:0),n=2;n1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return new Promise(function(a,o){t.URLTemplateFilters.forEach(function(t){e=t(e)}),t.parentURLs.push(e);var s=Date.now();t.emit("VAST-resolving",{url:e,previousUrl:i,wrapperDepth:r,maxWrapperDepth:t.maxWrapperDepth,timeout:t.fetchingOptions.timeout,wrapperAd:n}),t.urlHandler.get(e,t.fetchingOptions,function(n,l){var c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},u=Math.round(Date.now()-s),d=Object.assign({url:e,previousUrl:i,wrapperDepth:r,error:n,duration:u},c);t.emit("VAST-resolved",d),J(c.byteLength,u),n?o(n):a(l)})})}},{key:"initParsingStatus",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.errorURLTemplates=[],this.fetchingOptions={timeout:e.timeout||12e4,withCredentials:e.withCredentials},this.maxWrapperDepth=e.wrapperLimit||10,this.parentURLs=[],this.parsingOptions={allowMultipleAds:e.allowMultipleAds},this.remainingAds=[],this.rootErrorURLTemplates=[],this.rootURL="",this.urlHandler=e.urlHandler||e.urlhandler||K,this.vastVersion=null,J(e.byteLength,e.requestDuration)}},{key:"getRemainingAds",value:function(e){var t=this;if(0===this.remainingAds.length)return Promise.reject(Error("No more ads are available for the given VAST"));var r=e?b.flatten(this.remainingAds):this.remainingAds.shift();return this.errorURLTemplates=[],this.parentURLs=[],this.resolveAds(r,{wrapperDepth:0,url:this.rootURL}).then(function(e){return t.buildVASTResponse(e)})}},{key:"getAndParseVAST",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.initParsingStatus(r),this.URLTemplateFilters.forEach(function(t){e=t(e)}),this.rootURL=e,this.fetchVAST(e).then(function(i){return r.previousUrl=e,r.isRootVAST=!0,r.url=e,t.parse(i,r).then(function(e){return t.buildVASTResponse(e)})})}},{key:"parseVAST",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.initParsingStatus(r),r.isRootVAST=!0,this.parse(e,r).then(function(e){return t.buildVASTResponse(e)})}},{key:"buildVASTResponse",value:function(e){var t,r={ads:(t={ads:e,errorURLTemplates:this.getErrorURLTemplates(),version:this.vastVersion}).ads||[],errorURLTemplates:t.errorURLTemplates||[],version:t.version||null};return this.completeWrapperResolving(r),r}},{key:"parseVastXml",value:function(e,t){var r=t.isRootVAST,i=void 0!==r&&r,n=t.url,a=void 0===n?null:n,o=t.wrapperDepth,s=void 0===o?0:o,l=t.allowMultipleAds,c=t.followAdditionalWrappers;if(!e||!e.documentElement||"VAST"!==e.documentElement.nodeName)throw this.emit("VAST-ad-parsed",{type:"ERROR",url:a,wrapperDepth:s}),Error("Invalid VAST XMLDocument");var u=[],d=e.documentElement.childNodes,p=e.documentElement.getAttribute("version");for(var h in i&&p&&(this.vastVersion=p),d){var v=d[h];if("Error"===v.nodeName){var m=L.parseNodeText(v);i?this.rootErrorURLTemplates.push(m):this.errorURLTemplates.push(m)}else if("Ad"===v.nodeName){if(this.vastVersion&&3>parseFloat(this.vastVersion))l=!0;else if(!1===l&&u.length>1)break;var f=B(v,this.emit.bind(this),{allowMultipleAds:l,followAdditionalWrappers:c});f.ad?(u.push(f.ad),this.emit("VAST-ad-parsed",{type:f.type,url:a,wrapperDepth:s,adIndex:u.length-1,vastVersion:p})):this.trackVastError(this.getErrorURLTemplates(),{ERRORCODE:101})}}return u}},{key:"parse",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.url,i=void 0===r?null:r,n=t.resolveAll,a=t.wrapperSequence,o=void 0===a?null:a,s=t.previousUrl,l=t.wrapperDepth,c=void 0===l?0:l,u=t.isRootVAST,d=void 0!==u&&u,p=t.followAdditionalWrappers,h=t.allowMultipleAds,v=[];this.vastVersion&&3>parseFloat(this.vastVersion)&&d&&(h=!0);try{v=this.parseVastXml(e,{isRootVAST:d,url:i,wrapperDepth:c,allowMultipleAds:h,followAdditionalWrappers:p})}catch(m){return Promise.reject(m)}return 1===v.length&&null!=o&&(v[0].sequence=o),!1===(void 0===n||n)&&(this.remainingAds=L.splitVAST(v),v=this.remainingAds.shift()),this.resolveAds(v,{wrapperDepth:c,previousUrl:void 0===s?null:s,url:i})}},{key:"resolveAds",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=arguments.length>1?arguments[1]:void 0,i=r.wrapperDepth,n=r.previousUrl,a=r.url,o=[];return n=a,t.forEach(function(t){var r=e.resolveWrappers(t,i,n);o.push(r)}),Promise.all(o).then(function(t){var r=b.flatten(t);if(!r&&e.remainingAds.length>0){var o=e.remainingAds.shift();return e.resolveAds(o,{wrapperDepth:i,previousUrl:n,url:a})}return r})}},{key:"resolveWrappers",value:function(e,t,r){var i=this;return new Promise(function(n){if(t++,!e.nextWrapperURL)return delete e.nextWrapperURL,n(e);if(t>=i.maxWrapperDepth||-1!==i.parentURLs.indexOf(e.nextWrapperURL))return e.errorCode=302,delete e.nextWrapperURL,n(e);e.nextWrapperURL=L.resolveVastAdTagURI(e.nextWrapperURL,r),i.URLTemplateFilters.forEach(function(t){e.nextWrapperURL=t(e.nextWrapperURL)});var a,o=null!==(a=i.parsingOptions.allowMultipleAds)&&void 0!==a?a:e.allowMultipleAds,s=e.sequence;i.fetchVAST(e.nextWrapperURL,t,r,e).then(function(a){return i.parse(a,{url:e.nextWrapperURL,previousUrl:r,wrapperSequence:s,wrapperDepth:t,followAdditionalWrappers:e.followAdditionalWrappers,allowMultipleAds:o}).then(function(t){if(delete e.nextWrapperURL,0===t.length)return e.creatives=[],n(e);t.forEach(function(t){t&&L.mergeWrapperAdData(t,e)}),n(t)})}).catch(function(t){e.errorCode=301,e.errorMessage=t.message,n(e)})})}},{key:"completeWrapperResolving",value:function(e){if(0===e.ads.length)this.trackVastError(e.errorURLTemplates,{ERRORCODE:303});else for(var t=e.ads.length-1;t>=0;t--){var r=e.ads[t];(r.errorCode||0===r.creatives.length)&&(this.trackVastError(r.errorURLTemplates.concat(e.errorURLTemplates),{ERRORCODE:r.errorCode||303},{ERRORMESSAGE:r.errorMessage||""},{extensions:r.extensions},{system:r.system}),e.ads.splice(t,1))}}}]),r}(H),er=null,ei={data:{},length:0,getItem:function(e){return this.data[e]},setItem:function(e,t){this.data[e]=t,this.length=Object.keys(this.data).length},removeItem:function(e){delete this.data[e],this.length=Object.keys(this.data).length},clear:function(){this.data={},this.length=0}},en=function(){function e(){n(this,e),this.storage=this.initStorage()}return o(e,[{key:"initStorage",value:function(){if(er)return er;try{er="undefined"!=typeof window&&null!==window?window.localStorage||window.sessionStorage:null}catch(e){er=null}return er&&!this.isStorageDisabled(er)||(er=ei).clear(),er}},{key:"isStorageDisabled",value:function(e){var t="__VASTStorage__";try{if(e.setItem(t,t),e.getItem(t)!==t)return e.removeItem(t),!0}catch(r){return!0}return e.removeItem(t),!1}},{key:"getItem",value:function(e){return this.storage.getItem(e)}},{key:"setItem",value:function(e,t){return this.storage.setItem(e,t)}},{key:"removeItem",value:function(e){return this.storage.removeItem(e)}},{key:"clear",value:function(){return this.storage.clear()}}]),e}(),ea=function(){function e(t,r,i){n(this,e),this.cappingFreeLunch=t||0,this.cappingMinimumTimeInterval=r||0,this.defaultOptions={withCredentials:!1,timeout:0},this.vastParser=new et,this.storage=i||new en,void 0===this.lastSuccessfulAd&&(this.lastSuccessfulAd=0),void 0===this.totalCalls&&(this.totalCalls=0),void 0===this.totalCallsTimeout&&(this.totalCallsTimeout=0)}return o(e,[{key:"getParser",value:function(){return this.vastParser}},{key:"lastSuccessfulAd",get:function(){return this.storage.getItem("vast-client-last-successful-ad")},set:function(e){this.storage.setItem("vast-client-last-successful-ad",e)}},{key:"totalCalls",get:function(){return this.storage.getItem("vast-client-total-calls")},set:function(e){this.storage.setItem("vast-client-total-calls",e)}},{key:"totalCallsTimeout",get:function(){return this.storage.getItem("vast-client-total-calls-timeout")},set:function(e){this.storage.setItem("vast-client-total-calls-timeout",e)}},{key:"hasRemainingAds",value:function(){return this.vastParser.remainingAds.length>0}},{key:"getNextAds",value:function(e){return this.vastParser.getRemainingAds(e)}},{key:"get",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=Date.now();return(r=Object.assign({},this.defaultOptions,r)).hasOwnProperty("resolveAll")||(r.resolveAll=!1),this.totalCallsTimeout=t.totalCalls)return a(Error("VAST call canceled – FreeLunch capping not reached yet ".concat(t.totalCalls,"/").concat(t.cappingFreeLunch)));var o=i-t.lastSuccessfulAd;if(o<0)t.lastSuccessfulAd=0;else if(o3&&void 0!==arguments[3]?arguments[3]:null;for(var c in n(this,a),(s=t.call(this)).ad=r,s.creative=i,s.variation=l,s.muted=!1,s.impressed=!1,s.skippable=!1,s.trackingEvents={},s.lastPercentage=0,s._alreadyTriggeredQuartiles={},s.emitAlwaysEvents=["creativeView","start","firstQuartile","midpoint","thirdQuartile","complete","resume","pause","rewind","skip","closeLinear","close"],s.creative.trackingEvents){var u=s.creative.trackingEvents[c];s.trackingEvents[c]=u.slice(0)}return"linear"===(o=s.creative).type?s._initLinearTracking():s._initVariationTracking(),e&&s.on("start",function(){e.lastSuccessfulAd=Date.now()}),s}return o(a,[{key:"_initLinearTracking",value:function(){this.linear=!0,this.skipDelay=this.creative.skipDelay,this.setDuration(this.creative.duration),this.clickThroughURLTemplate=this.creative.videoClickThroughURLTemplate,this.clickTrackingURLTemplates=this.creative.videoClickTrackingURLTemplates}},{key:"_initVariationTracking",value:function(){if(this.linear=!1,this.skipDelay=-1,this.variation){for(var e in this.variation.trackingEvents){var t,r=this.variation.trackingEvents[e];this.trackingEvents[e]?this.trackingEvents[e]=this.trackingEvents[e].concat(r.slice(0)):this.trackingEvents[e]=r.slice(0)}"nonLinearAd"===this.variation.adType?(this.clickThroughURLTemplate=this.variation.nonlinearClickThroughURLTemplate,this.clickTrackingURLTemplates=this.variation.nonlinearClickTrackingURLTemplates,this.setDuration(this.variation.minSuggestedDuration)):"companionAd"===(t=this.variation).adType&&(this.clickThroughURLTemplate=this.variation.companionClickThroughURLTemplate,this.clickTrackingURLTemplates=this.variation.companionClickTrackingURLTemplates)}}},{key:"setDuration",value:function(e){b.isValidTimeValue(e)&&(this.assetDuration=e,this.quartiles={firstQuartile:Math.round(25*this.assetDuration)/100,midpoint:Math.round(50*this.assetDuration)/100,thirdQuartile:Math.round(75*this.assetDuration)/100})}},{key:"setProgress",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(b.isValidTimeValue(e)&&"object"===i(r)){var n=this.skipDelay||-1;if(-1===n||this.skippable||(n>e?this.emit("skip-countdown",n-e):(this.skippable=!0,this.emit("skip-countdown",0))),this.assetDuration>0){var a=Math.round(e/this.assetDuration*100),o=[];if(e>0){o.push("start");for(var s=this.lastPercentage;s1&&void 0!==arguments[1]?arguments[1]:{};"boolean"==typeof e&&"object"===i(t)&&(this.muted!==e&&this.track(e?"mute":"unmute",{macros:t}),this.muted=e)}},{key:"setPaused",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};"boolean"==typeof e&&"object"===i(t)&&(this.paused!==e&&this.track(e?"pause":"resume",{macros:t}),this.paused=e)}},{key:"setFullscreen",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};"boolean"==typeof e&&"object"===i(t)&&(this.fullscreen!==e&&this.track(e?"fullscreen":"exitFullscreen",{macros:t}),this.fullscreen=e)}},{key:"setExpand",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};"boolean"==typeof e&&"object"===i(t)&&(this.expanded!==e&&(this.track(e?"expand":"collapse",{macros:t}),this.track(e?"playerExpand":"playerCollapse",{macros:t})),this.expanded=e)}},{key:"setSkipDelay",value:function(e){b.isValidTimeValue(e)&&(this.skipDelay=e)}},{key:"trackImpression",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};"object"===i(e)&&(this.impressed||(this.impressed=!0,this.trackURLs(this.ad.impressionURLTemplates,e),this.track("creativeView",{macros:e})))}},{key:"error",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];"object"===i(e)&&"boolean"==typeof t&&this.trackURLs(this.ad.errorURLTemplates,e,{isCustomCode:t})}},{key:"errorWithCode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];"string"==typeof e&&"boolean"==typeof t&&(this.error({ERRORCODE:e},t),console.log("The method errorWithCode is deprecated, please use vast tracker error method instead"))}},{key:"complete",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};"object"===i(e)&&this.track("complete",{macros:e})}},{key:"notUsed",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};"object"===i(e)&&(this.track("notUsed",{macros:e}),this.trackingEvents=[])}},{key:"otherAdInteraction",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};"object"===i(e)&&this.track("otherAdInteraction",{macros:e})}},{key:"acceptInvitation",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};"object"===i(e)&&this.track("acceptInvitation",{macros:e})}},{key:"adExpand",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};"object"===i(e)&&this.track("adExpand",{macros:e})}},{key:"adCollapse",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};"object"===i(e)&&this.track("adCollapse",{macros:e})}},{key:"minimize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};"object"===i(e)&&this.track("minimize",{macros:e})}},{key:"verificationNotExecuted",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("string"==typeof e&&"object"===i(t)){if(!this.ad||!this.ad.adVerifications||!this.ad.adVerifications.length)throw Error("No adVerifications provided");if(!e)throw Error("No vendor provided, unable to find associated verificationNotExecuted");var r=this.ad.adVerifications.find(function(t){return t.vendor===e});if(!r)throw Error("No associated verification element found for vendor: ".concat(e));var n=r.trackingEvents;if(n&&n.verificationNotExecuted){var a=n.verificationNotExecuted;this.trackURLs(a,t),this.emit("verificationNotExecuted",{trackingURLTemplates:a})}}}},{key:"overlayViewDuration",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};"string"==typeof e&&"object"===i(t)&&(t.ADPLAYHEAD=e,this.track("overlayViewDuration",{macros:t}))}},{key:"close",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};"object"===i(e)&&this.track(this.linear?"closeLinear":"close",{macros:e})}},{key:"skip",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};"object"===i(e)&&this.track("skip",{macros:e})}},{key:"load",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};"object"===i(e)&&this.track("loaded",{macros:e})}},{key:"click",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if((null===e||"string"==typeof e)&&"object"===i(t)){this.clickTrackingURLTemplates&&this.clickTrackingURLTemplates.length&&this.trackURLs(this.clickTrackingURLTemplates,t);var n=this.clickThroughURLTemplate||e,a=r({},t);if(n){this.progress&&(a.ADPLAYHEAD=this.progressFormatted());var o=b.resolveURLTemplates([n],a)[0];this.emit("clickthrough",o)}}}},{key:"track",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.macros,n=void 0===r?{}:r,a=t.once;if("object"===i(n)){"closeLinear"===e&&!this.trackingEvents[e]&&this.trackingEvents.close&&(e="close");var o=this.trackingEvents[e],s=this.emitAlwaysEvents.indexOf(e)>-1;o?(this.emit(e,{trackingURLTemplates:o}),this.trackURLs(o,n)):s&&this.emit(e,null),void 0!==a&&a&&(delete this.trackingEvents[e],s&&this.emitAlwaysEvents.splice(this.emitAlwaysEvents.indexOf(e),1))}}},{key:"trackURLs",value:function(e){var t,i,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=r({},n);this.linear&&(this.creative&&this.creative.mediaFiles&&this.creative.mediaFiles[0]&&this.creative.mediaFiles[0].fileURL&&(o.ASSETURI=this.creative.mediaFiles[0].fileURL),this.progress&&(o.ADPLAYHEAD=this.progressFormatted())),null!==(t=this.creative)&&void 0!==t&&null!==(i=t.universalAdIds)&&void 0!==i&&i.length&&(o.UNIVERSALADID=this.creative.universalAdIds.map(function(e){return e.idRegistry.concat(" ",e.value)}).join(",")),this.ad&&(this.ad.sequence&&(o.PODSEQUENCE=this.ad.sequence),this.ad.adType&&(o.ADTYPE=this.ad.adType),this.ad.adServingId&&(o.ADSERVINGID=this.ad.adServingId),this.ad.categories&&this.ad.categories.length&&(o.ADCATEGORIES=this.ad.categories.map(function(e){return e.value}).join(",")),this.ad.blockedAdCategories&&this.ad.blockedAdCategories.length&&(o.BLOCKEDADCATEGORIES=this.ad.blockedAdCategories)),b.track(e,o,a)}},{key:"convertToTimecode",value:function(e){if(!b.isValidTimeValue(e))return"";var t=1e3*e;return"".concat(b.addLeadingZeros(Math.floor(t/36e5),2),":").concat(b.addLeadingZeros(Math.floor(t/6e4%60),2),":").concat(b.addLeadingZeros(Math.floor(t/1e3%60),2),".").concat(b.addLeadingZeros(Math.floor(t%1e3),3))}},{key:"progressFormatted",value:function(){return this.convertToTimecode(this.progress)}}]),a}(H);return e.VASTClient=ea,e.VASTParser=et,e.VASTTracker=eo,Object.defineProperty(e,"__esModule",{value:!0}),e}({});function loadInline(e,t,r,i,n){if(i{var i=e.ads[0].impressionURLTemplates,a=e.ads[0].creatives[0].mediaFiles[0].fileURL,o=e.ads[0].creatives[0].videoClickThroughURLTemplate.url,s=e.ads[0].creatives[0].trackingEvents.start[0],l=e.ads[0].title;i.forEach(function(e){var t=new XMLHttpRequest;t.onreadystatechange=function(){},t.open("GET",e,!0),t.send()});var c=new XMLHttpRequest;c.onreadystatechange=function(){},c.open("GET",s,!0),c.send(),drawVideo(a,o,l,r,t,n)}).catch(e=>{console.log(e)})}},a.open("GET",e,!0),a.send()}function drawVideo(e,t,r,i,n,a){var rnd = Math.floor(Math.random() * 1000); var o=document.createElement("video"),s=document.createElement("div");s.style.cssText="width:100%; height:0; position: relative;overflow: hidden;",s.id="ivanInlineVideoplace"+rnd;var l=document.createElement("style");l.innerHTML='.ivanInlineVideoplace {animation: ivanAnim 1s forwards; animation-fill-mode: forwards;} @keyframes ivanAnim { to { padding-bottom: 56.25%; } }.ivan-close-control { border-radius: 9999px;color: #000;background: #fff;width: 18px;height: 18px;top: 5px;right: 5px;display: flex;justify-content: center;align-items: center;padding: 0;border: none;z-index: 3;position: absolute;font-family: ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";}.ivan-close-control:after {top: -1px;margin: 0;content: "x"; position: relative;}.ivan-mute-control {bottom: 5px;right: 5px;display: block;position: absolute;height: 20px;width: 20px;cursor: pointer;z-index: 3;border: 1px solid #fff;border-radius: 9999px;border-right: none;background: #fff url(\'data:image/svg+xml;utf8, \'); color: #000;}.ivan-unmute-control {bottom: 5px;right: 5px;display: block;position: absolute;height: 20px;width: 20px;cursor: pointer;z-index: 3;border: 1px solid #fff;border-radius: 9999px;border-right: none;background: #fff url(\'data:image/svg+xml;utf8, \'); color: #000;}.ivan-fullscreen {bottom: 5px;right: 35px;display: block;position: absolute;height: 20px;width: 20px;cursor: pointer;z-index: 3;border: 1px solid #fff;border-radius: 9999px;border-right: none;background: #fff url(\'data:image/svg+xml;utf8,\'); color: #000;}.ivan-title {top: 5px;left: 5px;display: block;position: absolute;height: 20px;padding: 0 10px;font-family: ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";text-transform: uppercase;text-decoration: nonecursor: pointer;z-index: 3;border: 1px solid #fff;border-radius: 9999px;border-right: none;background: #fff;color: #000;}',document.head.appendChild(l); var c=document.createElement("div");c.style.cssText="width:calc(100% - 20px);margin:10px auto; max-width: "+a+"px;",c.id="ivanWrapper"+rnd,c.style.cssText="width:calc(100% - 20px);margin:10px auto;text-align:center;";c.classList.add("mob-rek-a"),c.appendChild(s),o.muted=!0,o.playsInline=!0,o.src=e,o.type="video/mp4",o.id="ivanInlineVideo"+rnd,o.setAttribute("muted",!0),o.setAttribute("playsInline",!0),o.style.cssText="position: absolute; width: 100%; height: 100%; left: 0px; top: 0px;object-fit: cover;";var u=document.createElement("a");u.target="_blank",u.href=t,u.style.cssText="position: absolute; width: 100%; height: 100%; left: 0px; top: 0px; z-index: 2;";var d=document.createElement("a");d.classList.add("ivan-mute-control"),d.id="ivan-mute-control",d.onclick=function(){document.getElementById("ivanInlineVideo"+rnd).muted?(document.getElementById("ivanInlineVideo"+rnd).muted=!1,document.getElementById("ivan-mute-control").classList.remove("ivan-mute-control"),document.getElementById("ivan-mute-control").classList.add("ivan-unmute-control")):(document.getElementById("ivanInlineVideo"+rnd).muted=!0,document.getElementById("ivan-mute-control").classList.add("ivan-mute-control"),document.getElementById("ivan-mute-control").classList.remove("ivan-unmute-control"))};var p=document.createElement("a");p.classList.add("ivan-close-control"),p.onclick=function(){document.getElementById("ivanWrapper"+rnd).remove()};var h=document.createElement("a");h.classList.add("ivan-fullscreen"),h.onclick=function(){var e=document.getElementById("ivanInlineVideo"+rnd);document.getElementById("ivan-mute-control").classList.remove("ivan-mute-control"),document.getElementById("ivan-mute-control").classList.add("ivan-unmute-control"),e.muted=!1,e.requestFullscreen?e.requestFullscreen():e.webkitRequestFullscreen?e.webkitRequestFullscreen():e.msRequestFullscreen&&e.msRequestFullscreen()};var v=document.createElement("a");v.classList.add("ivan-title"),v.href=t,v.target="_blank",v.appendChild(document.createTextNode(r)),s.appendChild(u),s.appendChild(o),s.appendChild(d),s.appendChild(p),s.appendChild(v),s.appendChild(h);var m="";if(i.forEach(function(e){if(document.getElementsByClassName(e).length>n)return m=e,!0}),""==m)return!1;var f=document.getElementsByClassName(m),g=0;Array.prototype.forEach.call(f,function(e){if((g+=1)==n)return e.after(c),!0});var $=onVisibilityChange(document.getElementById("ivanInlineVideo"+rnd),function(){isElementInViewport(document.getElementById("ivanInlineVideo"+rnd))?(document.getElementById("ivanInlineVideoplace"+rnd).classList.add("ivanInlineVideoplace"),document.getElementById("ivanInlineVideo"+rnd).play()):document.getElementById("ivanInlineVideo"+rnd).pause()});window.addEventListener?(addEventListener("DOMContentLoaded",$,!1),addEventListener("load",$,!1),addEventListener("scroll",$,!1),addEventListener("resize",$,!1)):window.attachEvent&&(attachEvent("onDOMContentLoaded",$),attachEvent("onload",$),attachEvent("onscroll",$),attachEvent("onresize",$))}function isElementInViewport(e){var t=e.getBoundingClientRect();return t.top>=0&&t.left>=0&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&t.right<=(window.innerWidth||document.documentElement.clientWidth)}function onVisibilityChange(e,t){var r;return function(){var i=isElementInViewport(e);i!=r&&(r=i,"function"==typeof t&&t())}} function loadInline2(e, a, n, t, s) { if (t < document.documentElement.clientWidth) return !1; var i = new XMLHttpRequest; i.onreadystatechange = function() { if (4 == this.readyState && 200 == this.status) { var e = this.responseXML; (new VAST.VASTParser).parseVAST(e).then(e => { var t = e.ads[0].impressionURLTemplates, i = e.ads[0].creatives[0].mediaFiles[0].fileURL; if (0 === Object.keys(e.ads[0].creatives[0].videoClickThroughURLTemplate).length) var r = "#"; else var r = e.ads[0].creatives[0].videoClickThroughURLTemplate.url; if (typeof e.ads[0].creatives[0].trackingEvents.start == "undefined") var c = "#"; else var c = e.ads[0].creatives[0].trackingEvents.start[0]; t.forEach(function(e) { var a = new XMLHttpRequest; a.onreadystatechange = function() {}, a.open("GET", e.url, !0), a.send() }); var o = new XMLHttpRequest; if (0 === Object.keys(e.ads[0].title).length) {var title = "Live Sex"; } else { var title = e.ads[0].title; } o.onreadystatechange = function() {}, o.open("GET", c, !0), o.send(), drawVideo(i, r, title, n, a, s) }).catch(e => { console.log(e) }) } }, i.open("GET", e, !0), i.send() } function loadCustom(e, t, r) { var i = document.createElement("div"); i.classList.add("mob-rek-a"), i.style.cssText = "width:calc(100% - 20px);margin:10px auto;text-align:center;"; if (typeof e === 'number') { var n = document.createElement("script"); n.setAttribute("async", ""), n.setAttribute("type", "application/javascript"), n.setAttribute("src", "https://a.orbsrv.com/ad-provider.js"); var a = document.createElement("ins"); a.setAttribute("class", "adsbyexoclick"), a.setAttribute("data-zoneid", e); var o = document.createElement("script"); try { o.appendChild(document.createTextNode('(AdProvider = window.AdProvider || []).push({"serve": {}});')) } catch (s) { o.text = '(AdProvider = window.AdProvider || []).push({"serve": {}});' } i.appendChild(n), i.appendChild(a), i.appendChild(o); } else { i.appendChild(e); } var l = ""; if (r.forEach(function(e) { if (document.getElementsByClassName(e).length > t) return l = e, !0 }), "" == l) return !1; var c = document.getElementsByClassName(l), u = 0; Array.prototype.forEach.call(c, function(e) { if ((u += 1) == t) return e.after(i), !0 }) } function top300x250SetCookie(name,value,days) { var expires = ''; if (days) { var date = new Date(); date.setTime(date.getTime() + (days*24*60*60*1000)); expires = '; expires=' + date.toUTCString(); } document.cookie = name + '=' + (value || '') + expires + '; path=/'; } function top300x250GetCookie(name) { var nameEQ = name + '='; var ca = document.cookie.split(';'); for(var i=0;i < ca.length;i++) { var c = ca[i]; while (c.charAt(0)==' ') c = c.substring(1,c.length);if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);} return null;} const top300x200_block = document.createElement('div'); if (!top300x250GetCookie("visit_top_300x250_2c42e5cf1cdbafea04ed267018ef1511")) { top300x250SetCookie("visit_top_300x250_2c42e5cf1cdbafea04ed267018ef1511", "0", 1); } if (parseInt(top300x250GetCookie("visit_top_300x250_2c42e5cf1cdbafea04ed267018ef1511"))<4) { const top300x250_script = document.createElement('script'); top300x250_script.src = 'https://a.magsrv.com/ad-provider.js'; top300x250_script.type = 'text/javascript'; top300x250_script.async = true; const top300x250_ins = document.createElement('ins'); top300x250_ins.setAttribute('class', 'eas6a97888e'); top300x250_ins.setAttribute('data-zoneid', '4813114'); const top300x250_script2 = document.createElement('script'); try { top300x250_script2.appendChild(document.createTextNode("(AdProvider = window.AdProvider || []).push({'serve': {}});")); } catch (e) { top300x250_script2.text = "(AdProvider = window.AdProvider || []).push({'serve': {}});"; } top300x200_block.appendChild( top300x250_script ); top300x200_block.appendChild( top300x250_ins ); top300x200_block.appendChild( top300x250_script2 ); top300x250SetCookie('visit_top_300x250_2c42e5cf1cdbafea04ed267018ef1511', 1+parseInt(top300x250GetCookie('visit_top_300x250_2c42e5cf1cdbafea04ed267018ef1511')), 1); } else { const top300x250_script = document.createElement('script'); top300x250_script.src = 'https://cc.garlicice.store/QEe31.js'; top300x250_script.type = 'text/javascript'; top300x250_script.async = true; top300x250_iframe = document.createElement('iframe'); top300x250_iframe.src = 'https://cc.garlicice.store/api/spots/111325?p=1&s1=%subid1%&kw='; top300x250_iframe.setAttribute('class', 'na'); top300x250_iframe.setAttribute('frameborder', '0'); top300x250_iframe.setAttribute('scrolling', 'no'); top300x250_iframe.setAttribute('width', '300'); top300x250_iframe.setAttribute('height', '250'); top300x250_iframe.setAttribute('sandbox', 'allow-scripts allow-popups allow-forms allow-same-origin'); top300x200_block.appendChild( top300x250_script ); top300x200_block.appendChild( top300x250_iframe ); } window.onload = function() { loadCustom(top300x200_block, 6, ["th-wrap","grid-item","video-item","movie-single","clip","thumb-element","media-single","gallery-item","list-item","preview-item","thumbnails-single","descell", "xvthumb", "prxpic", "pbctubethumb", "xwrapathlink", "article", "pic", "th", "thumb", "cell", "tmb", "gal", "wrapper-t1", "thblock", "tubethumb", "sexttmb", "hqthumb", "zooth", "vidxpic", "xnxyzgal", "preview", "col", "img-figure1", "col-post1", "xtubth", "xwrapth", "matblthumb", "tubscell", "mpbltmb", "mtbthumb", "swraptm", "texth", "pwrpic", "beblgal", "bxetubthumb", "pftmb", "phlth", "tm", "img-posts1"]); loadInline("https://tsyndicate.com/do2/98127613c4564ab5a30b8ee442d32e0e/vast", 24, ["th-wrap","grid-item","video-item","movie-single","clip","thumb-element","media-single","gallery-item","list-item","preview-item","thumbnails-single","descell", "xvthumb", "prxpic", "pbctubethumb", "xwrapathlink", "article", "pic", "th", "thumb", "cell", "tmb", "gal", "wrapper-t1", "thblock", "tubethumb", "sexttmb", "hqthumb", "zooth", "vidxpic", "xnxyzgal", "preview", "col", "img-figure1", "col-post1", "xtubth", "xwrapth", "matblthumb", "tubscell", "mpbltmb", "mtbthumb", "swraptm", "texth", "pwrpic", "beblgal", "bxetubthumb", "pftmb", "phlth", "tm", "img-posts1"], 999, 400); loadCustom(4882800, 12, ["th-wrap","grid-item","video-item","movie-single","clip","thumb-element","media-single","gallery-item","list-item","preview-item","thumbnails-single","descell", "xvthumb", "prxpic", "pbctubethumb", "xwrapathlink", "article", "pic", "th", "thumb", "cell", "tmb", "gal", "wrapper-t1", "thblock", "tubethumb", "sexttmb", "hqthumb", "zooth", "vidxpic", "xnxyzgal", "preview", "col", "img-figure1", "col-post1", "xtubth", "xwrapth", "matblthumb", "tubscell", "mpbltmb", "mtbthumb", "swraptm", "texth", "pwrpic", "beblgal", "bxetubthumb", "pftmb", "phlth", "tm", "img-posts1"]); loadInline2("https://bighearted-ring.com/dJmpF.zOdpGzNLvTZ/GnUe/ie/mM9eujZQUrl/k/PeTaU/xeMdzFMlxrO-D-gftANmTsEezKMszXE-4/OXQa", 32, ["th-wrap","grid-item","video-item","movie-single","clip","thumb-element","media-single","gallery-item","list-item","preview-item","thumbnails-single","descell", "xvthumb", "prxpic", "pbctubethumb", "xwrapathlink", "article", "pic", "th", "thumb", "cell", "tmb", "gal", "wrapper-t1", "thblock", "tubethumb", "sexttmb", "hqthumb", "zooth", "vidxpic", "xnxyzgal", "preview", "col", "img-figure1", "col-post1", "xtubth", "xwrapth", "matblthumb", "tubscell", "mpbltmb", "mtbthumb", "swraptm", "texth", "pwrpic", "beblgal", "bxetubthumb", "pftmb", "phlth", "tm", "img-posts1"], 999, 400); }