!function(e,t,n){if("object"==typeof n&&"string"!=typeof n.nodeName)t(e,n);else{n={};var r=["1.6.1-iab283"],i="default";function o(e){for(var t in e)e.hasOwnProperty(t)&&(e[t]=o(e[t]));return Object.freeze(e)}for(var s in r.push(i),t(e,n),n)n.hasOwnProperty(s)&&(null==Object.getOwnPropertyDescriptor(e,s)&&Object.defineProperty(e,s,{value:{}}),r.forEach((function(t){if(null==Object.getOwnPropertyDescriptor(e[s],t)){var r=o(n[s]);Object.defineProperty(e[s],t,{get:function(){return r},enumerable:!0})}})))}}("undefined"==typeof global?this:global,(function(e,t){var n=n||{};n.scope={},n.createTemplateTagFirstArg=function(e){return e.raw=e},n.createTemplateTagFirstArgWithRaw=function(e,t){return e.raw=t,e},n.arrayIteratorImpl=function(e){var t=0;return function(){return t>>0,n.propertyToPolyfillSymbol[o]=n.IS_SYMBOL_NATIVE?n.global.Symbol(o):n.POLYFILL_PREFIX+r+"$"+o),n.defineProperty(i,n.propertyToPolyfillSymbol[o],{configurable:!0,writable:!0,value:t})))},n.getConstructImplementation=function(){if(n.TRUST_ES6_POLYFILLS&&"undefined"!=typeof Reflect&&Reflect.construct){if(function(){function e(){}return new e,Reflect.construct(e,[],(function(){})),new e instanceof e}())return Reflect.construct;var e=Reflect.construct;return function(t,n,r){return t=e(t,n),r&&Reflect.setPrototypeOf(t,r.prototype),t}}return function(e,t,r){return void 0===r&&(r=e),r=n.objectCreate(r.prototype||Object.prototype),Function.prototype.apply.call(e,r,t)||r}},n.construct=n.getConstructImplementation(),n.underscoreProtoCanBeSet=function(){var e={};try{return e.__proto__={a:!0},e.a}catch(e){}return!1},n.setPrototypeOf=n.TRUST_ES6_POLYFILLS&&"function"==typeof Object.setPrototypeOf?Object.setPrototypeOf:n.underscoreProtoCanBeSet()?function(e,t){if(e.__proto__=t,e.__proto__!==t)throw new TypeError(e+" is not extensible");return e}:null,n.inherits=function(e,t){if(e.prototype=n.objectCreate(t.prototype),e.prototype.constructor=e,n.setPrototypeOf){var r=n.setPrototypeOf;r(e,t)}else for(r in t)if("prototype"!=r)if(Object.defineProperties){var i=Object.getOwnPropertyDescriptor(t,r);i&&Object.defineProperty(e,r,i)}else e[r]=t[r];e.superClass_=t.prototype},n.getRestArguments=function(){for(var e=Number(this),t=[],n=e;n>>0)+"_",i=0,o=function(e){if(this instanceof o)throw new TypeError("Symbol is not a constructor");return new t(r+(e||"")+"_"+i++,e)};return o}),"es6","es3"),n.polyfill("Symbol.iterator",(function(e){if(e)return e;e=Symbol("Symbol.iterator");for(var t="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),r=0;rr)throw Error("Value for "+e+" is outside the range ["+n+","+r+"]")}c.assertTruthyString=l,c.assertNotNullObject=p,c.assertNumber=f,c.assertNumberBetween=h,c.assertFunction=function(e,t){if(!t)throw Error(e+" must not be truthy.")},c.assertPositiveNumber=function(e,t){if(f(e,t),0>t)throw Error(e+" must be a positive number.")};function E(e,t){return e&&(e[t]||(e[t]={}))}function y(e,n,r){(r=void 0===r?void 0===t?null:t:r)&&((e=e.split(".")).slice(0,e.length-1).reduce(E,r)[e[e.length-1]]=n)}y("OmidSessionClient.Partner",(function(e,t){l("Partner.name",e),l("Partner.version",t),this.name=e,this.version=t}));var S=function(e,t,n,r){r=void 0===r?u.AccessMode.FULL:r,l("VerificationScriptResource.resourceUrl",e),this.resourceUrl=e,this.vendorKey=t,this.verificationParameters=n,this.accessMode=r};S.prototype.toJSON=function(){return{accessMode:this.accessMode,resourceUrl:this.resourceUrl,vendorKey:this.vendorKey,verificationParameters:this.verificationParameters}},y("OmidSessionClient.VerificationScriptResource",S);var _=function(e,t){l("UniversalAdId.value",e),l("UniversalAdId.idRegistry",t),this.value=e,this.idRegistry=t};_.prototype.toSerialisedValue=function(){return this.value+"; "+this.idRegistry},y("OmidSessionClient.UniversalAdId",_);var v=function(e,t,n,r,i){n=void 0===n?null:n,r=void 0===r?null:r,i=void 0===i?null:i,p("Context.partner",e),this.partner=e,this.verificationScriptResources=t,this.videoElement=this.slotElement=null,this.contentUrl=n,this.customReferenceData=r,this.underEvaluation=!1,this.serviceWindow=null,this.universalAdId=i};v.prototype.setVideoElement=function(e){p("Context.videoElement",e),this.videoElement=e},v.prototype.setSlotElement=function(e){p("Context.slotElement",e),this.slotElement=e},v.prototype.setServiceWindow=function(e){p("Context.serviceWindow",e),this.serviceWindow=e},y("OmidSessionClient.Context",v);var m={};m.omidGlobal=function(){if(void 0!==e&&e)return e;if("undefined"!=typeof global&&global)return global;if("undefined"!=typeof window&&window)return window;if("undefined"!=typeof globalThis&&globalThis)return globalThis;var t=Function("return this")();if(t)return t;throw Error("Could not determine global object context.")}();var I="omidSessionInterface",O="adEvents",g="mediaEvents",A={sessionError:"reportError"},T=Object.keys(u.MediaEventType).map((function(e){return u.MediaEventType[e]})),M=["impressionOccurred"],b=function(e){e=void 0===e?m.omidGlobal:e,this.interfaceRoot_=e[I]};b.prototype.isSupported=function(){return null!=this.interfaceRoot_},b.prototype.sendMessage=function(e,t,r){if("registerSessionObserver"==e&&(r=[t]),A[e]&&(e=A[e]),t=this.interfaceRoot_,0<=M.indexOf(e)&&(t=t[O]),0<=T.indexOf(e)&&(t=t[g]),!(t=t[e]))throw Error("Unrecognized method name: "+e+".");t.apply(null,n.arrayFromIterable(r))};function R(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return e="y"===e?(3&t|8).toString(16):t.toString(16)}))}var N={};function C(){var e=n.getRestArguments.apply(0,arguments);P((function(){throw new(Function.prototype.bind.apply(Error,[null,"Could not complete the test successfully - "].concat(n.arrayFromIterable(e))))}),(function(){return console.error.apply(console,n.arrayFromIterable(e))}))}function P(e,t){"undefined"!=typeof jasmine&&jasmine?e():"undefined"!=typeof console&&console&&console.error&&t()}N.error=C,N.debug=function(){var e=n.getRestArguments.apply(0,arguments);P((function(){}),(function(){return console.error.apply(console,n.arrayFromIterable(e))}))};var w="1.6.1-iab283",D={},V=3;function L(e){return/\d+\.\d+\.\d+(-.*)?/.test(e)}function x(e,t){e=e.split("-")[0].split("."),t=t.split("-")[0].split(".");for(var n=0;ni)break;if(r