1;(function(omidGlobal, factory, exports) { 2 // CommonJS support 3 if (typeof exports === 'object' && typeof exports.nodeName !== 'string') { 4 factory(omidGlobal, exports); 5 6 // If neither AMD nor CommonJS are used, export to a versioned name in the 7 // global context. 8 } else { 9 var exports = {}; 10 var versions = ['1.6.6-iab457']; 11 var additionalVersionString = 'default'; 12 if (!!additionalVersionString) { 13 versions.push(additionalVersionString); 14 } 15 16 factory(omidGlobal, exports); 17 18 function deepFreeze(object) { 19 if (typeof object === 'string') { 20 return object; 21 } 22 for (var key in object) { 23 if (object.hasOwnProperty(key)) { 24 object[key] = deepFreeze(object[key]); 25 } 26 } 27 return Object.freeze(object); 28 } 29 30 // Inject and freeze the exported components of omid. 31 for (var key in exports) { 32 if (exports.hasOwnProperty(key)) { 33 if (Object.getOwnPropertyDescriptor(omidGlobal, key) == null) { 34 // Define the top level property in the global scope 35 Object.defineProperty(omidGlobal, key, { 36 value: {}, 37 }); 38 } 39 versions.forEach(function(version) { 40 if (Object.getOwnPropertyDescriptor(omidGlobal[key], version) == null) { 41 var frozenObject = deepFreeze(exports[key]); 42 // Define the object exports keyed-off versions 43 Object.defineProperty(omidGlobal[key], version, { 44 get: function () { 45 return frozenObject; 46 }, 47 enumerable: true, 48 }); 49 } 50 }); 51 } 52 } 53 } 54}(typeof global === 'undefined' ? this : global, function(omidGlobal, omidExports) { 55 var $jscomp = $jscomp || {}; 56$jscomp.scope = {}; 57$jscomp.createTemplateTagFirstArg = function(a) { 58 return a.raw = a; 59}; 60$jscomp.createTemplateTagFirstArgWithRaw = function(a, b) { 61 a.raw = b; 62 return a; 63}; 64$jscomp.arrayIteratorImpl = function(a) { 65 var b = 0; 66 return function() { 67 return b < a.length ? {done:!1, value:a[b++],} : {done:!0}; 68 }; 69}; 70$jscomp.arrayIterator = function(a) { 71 return {next:$jscomp.arrayIteratorImpl(a)}; 72}; 73$jscomp.makeIterator = function(a) { 74 var b = "undefined" != typeof Symbol && Symbol.iterator && a[Symbol.iterator]; 75 if (b) { 76 return b.call(a); 77 } 78 if ("number" == typeof a.length) { 79 return $jscomp.arrayIterator(a); 80 } 81 throw Error(String(a) + " is not an iterable or ArrayLike"); 82}; 83$jscomp.arrayFromIterator = function(a) { 84 for (var b, c = []; !(b = a.next()).done;) { 85 c.push(b.value); 86 } 87 return c; 88}; 89$jscomp.arrayFromIterable = function(a) { 90 return a instanceof Array ? a : $jscomp.arrayFromIterator($jscomp.makeIterator(a)); 91}; 92$jscomp.ASSUME_ES5 = !1; 93$jscomp.ASSUME_NO_NATIVE_MAP = !1; 94$jscomp.ASSUME_NO_NATIVE_SET = !1; 95$jscomp.SIMPLE_FROUND_POLYFILL = !1; 96$jscomp.ISOLATE_POLYFILLS = !1; 97$jscomp.FORCE_POLYFILL_PROMISE = !1; 98$jscomp.FORCE_POLYFILL_PROMISE_WHEN_NO_UNHANDLED_REJECTION = !1; 99$jscomp.objectCreate = $jscomp.ASSUME_ES5 || "function" == typeof Object.create ? Object.create : function(a) { 100 var b = function() { 101 }; 102 b.prototype = a; 103 return new b(); 104}; 105$jscomp.defineProperty = $jscomp.ASSUME_ES5 || "function" == typeof Object.defineProperties ? Object.defineProperty : function(a, b, c) { 106 if (a == Array.prototype || a == Object.prototype) { 107 return a; 108 } 109 a[b] = c.value; 110 return a; 111}; 112$jscomp.getGlobal = function(a) { 113 a = ["object" == typeof globalThis && globalThis, a, "object" == typeof window && window, "object" == typeof self && self, "object" == typeof global && global,]; 114 for (var b = 0; b < a.length; ++b) { 115 var c = a[b]; 116 if (c && c.Math == Math) { 117 return c; 118 } 119 } 120 throw Error("Cannot find global object"); 121}; 122$jscomp.global = $jscomp.getGlobal(this); 123$jscomp.IS_SYMBOL_NATIVE = "function" === typeof Symbol && "symbol" === typeof Symbol("x"); 124$jscomp.TRUST_ES6_POLYFILLS = !$jscomp.ISOLATE_POLYFILLS || $jscomp.IS_SYMBOL_NATIVE; 125$jscomp.polyfills = {}; 126$jscomp.propertyToPolyfillSymbol = {}; 127$jscomp.POLYFILL_PREFIX = "$jscp$"; 128var $jscomp$lookupPolyfilledValue = function(a, b, c) { 129 if (!c || null != a) { 130 c = $jscomp.propertyToPolyfillSymbol[b]; 131 if (null == c) { 132 return a[b]; 133 } 134 c = a[c]; 135 return void 0 !== c ? c : a[b]; 136 } 137}; 138$jscomp.polyfill = function(a, b, c, d) { 139 b && ($jscomp.ISOLATE_POLYFILLS ? $jscomp.polyfillIsolated(a, b, c, d) : $jscomp.polyfillUnisolated(a, b, c, d)); 140}; 141$jscomp.polyfillUnisolated = function(a, b, c, d) { 142 c = $jscomp.global; 143 a = a.split("."); 144 for (d = 0; d < a.length - 1; d++) { 145 var e = a[d]; 146 if (!(e in c)) { 147 return; 148 } 149 c = c[e]; 150 } 151 a = a[a.length - 1]; 152 d = c[a]; 153 b = b(d); 154 b != d && null != b && $jscomp.defineProperty(c, a, {configurable:!0, writable:!0, value:b}); 155}; 156$jscomp.polyfillIsolated = function(a, b, c, d) { 157 var e = a.split("."); 158 a = 1 === e.length; 159 d = e[0]; 160 d = !a && d in $jscomp.polyfills ? $jscomp.polyfills : $jscomp.global; 161 for (var l = 0; l < e.length - 1; l++) { 162 var m = e[l]; 163 if (!(m in d)) { 164 return; 165 } 166 d = d[m]; 167 } 168 e = e[e.length - 1];
169 c = $jscomp.IS_SYMBOL_NATIVE && "es6" === c ? d[e] : null; 170 b = b(c); 171 null != b && (a ? $jscomp.defineProperty($jscomp.polyfills, e, {configurable:!0, writable:!0, value:b}) : b !== c && (void 0 === $jscomp.propertyToPolyfillSymbol[e] && (c = 1E9 * Math.random() >>> 0, $jscomp.propertyToPolyfillSymbol[e] = $jscomp.IS_SYMBOL_NATIVE ? $jscomp.global.Symbol(e) : $jscomp.POLYFILL_PREFIX + c + "$" + e), $jscomp.defineProperty(d, $jscomp.propertyToPolyfillSymbol[e], {configurable:!0, writable:!0, value:b}))); 172}; 173$jscomp.getConstructImplementation = function() { 174 function a() { 175 function c() { 176 } 177 new c(); 178 Reflect.construct(c, [], function() { 179 }); 180 return new c() instanceof c; 181 } 182 if ($jscomp.TRUST_ES6_POLYFILLS && "undefined" != typeof Reflect && Reflect.construct) { 183 if (a()) { 184 return Reflect.construct; 185 } 186 var b = Reflect.construct; 187 return function(c, d, e) { 188 c = b(c, d); 189 e && Reflect.setPrototypeOf(c, e.prototype); 190 return c; 191 }; 192 } 193 return function(c, d, e) { 194 void 0 === e && (e = c); 195 e = $jscomp.objectCreate(e.prototype || Object.prototype); 196 return Function.prototype.apply.call(c, e, d) || e; 197 }; 198}; 199$jscomp.construct = {valueOf:$jscomp.getConstructImplementation}.valueOf(); 200$jscomp.underscoreProtoCanBeSet = function() { 201 var a = {a:!0}, b = {}; 202 try { 203 return b.__proto__ = a, b.a; 204 } catch (c) { 205 } 206 return !1; 207}; 208$jscomp.setPrototypeOf = $jscomp.TRUST_ES6_POLYFILLS && "function" == typeof Object.setPrototypeOf ? Object.setPrototypeOf : $jscomp.underscoreProtoCanBeSet() ? function(a, b) { 209 a.__proto__ = b; 210 if (a.__proto__ !== b) { 211 throw new TypeError(a + " is not extensible"); 212 } 213 return a; 214} : null; 215$jscomp.inherits = function(a, b) { 216 a.prototype = $jscomp.objectCreate(b.prototype); 217 a.prototype.constructor = a; 218 if ($jscomp.setPrototypeOf) { 219 var c = $jscomp.setPrototypeOf; 220 c(a, b); 221 } else { 222 for (c in b) { 223 if ("prototype" != c) { 224 if (Object.defineProperties) { 225 var d = Object.getOwnPropertyDescriptor(b, c); 226 d && Object.defineProperty(a, c, d); 227 } else { 228 a[c] = b[c]; 229 } 230 } 231 } 232 } 233 a.superClass_ = b.prototype; 234}; 235$jscomp.getRestArguments = function() { 236 for (var a = Number(this), b = [], c = a; c < arguments.length; c++) { 237 b[c - a] = arguments[c]; 238 } 239 return b; 240}; 241$jscomp.polyfill("Reflect", function(a) { 242 return a ? a : {}; 243}, "es6", "es3"); 244$jscomp.polyfill("Reflect.construct", function(a) { 245 return $jscomp.construct; 246}, "es6", "es3"); 247$jscomp.polyfill("Reflect.setPrototypeOf", function(a) { 248 if (a) { 249 return a; 250 } 251 if ($jscomp.setPrototypeOf) { 252 var b = $jscomp.setPrototypeOf; 253 return function(c, d) { 254 try { 255 return b(c, d), !0; 256 } catch (e) { 257 return !1; 258 } 259 }; 260 } 261 return null; 262}, "es6", "es5"); 263$jscomp.initSymbol = function() { 264}; 265$jscomp.polyfill("Symbol", function(a) { 266 if (a) { 267 return a; 268 } 269 var b = function(l, m) { 270 this.$jscomp$symbol$id_ = l; 271 $jscomp.defineProperty(this, "description", {configurable:!0, writable:!0, value:m}); 272 }; 273 b.prototype.toString = function() { 274 return this.$jscomp$symbol$id_; 275 }; 276 var c = "jscomp_symbol_" + (1E9 * Math.random() >>> 0) + "_", d = 0, e = function(l) { 277 if (this instanceof e) { 278 throw new TypeError("Symbol is not a constructor"); 279 } 280 return new b(c + (l || "") + "_" + d++, l); 281 }; 282 return e; 283}, "es6", "es3"); 284$jscomp.polyfill("Symbol.iterator", function(a) { 285 if (a) { 286 return a; 287 } 288 a = Symbol("Symbol.iterator"); 289 for (var b = "Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "), c = 0; c < b.length; c++) { 290 var d = $jscomp.global[b[c]]; 291 "function" === typeof d && "function" != typeof d.prototype[a] && $jscomp.defineProperty(d.prototype, a, {configurable:!0, writable:!0, value:function() { 292 return $jscomp.iteratorPrototype($jscomp.arrayIteratorImpl(this)); 293 }}); 294 } 295 return a; 296}, "es6", "es3"); 297$jscomp.iteratorPrototype = function(a) { 298 a = {next:a}; 299 a[Symbol.iterator] = function() { 300 return this; 301 }; 302 return a; 303}; 304$jscomp.iteratorFromArray = function(a, b) { 305 a instanceof String && (a += ""); 306 var c = 0, d = !1, e = {next:function() { 307 if (!d && c < a.length) { 308 var l = c++; 309 return {value:b(l, a[l]), done:!1}; 310 } 311 d = !0; 312 return {done:!0, value:void 0}; 313 }}; 314 e[Symbol.iterator] = function() { 315 return e; 316 }; 317 return e; 318}; 319$jscomp.polyfill("Array.prototype.keys", function(a) { 320 return a ? a : function() { 321 return $jscomp.iteratorFromArray(this, function(b) { 322 return b; 323 }); 324 }; 325}, "es6", "es3"); 326$jscomp.checkStringArgs = function(a, b, c) { 327 if (null == a) { 328 throw new TypeError("The 'this' value for String.prototype." + c + " must not be null or undefined"); 329 } 330 if (b instanceof RegExp) { 331 throw new TypeError("First argument to String.prototype." + c + " must not be a regular expression"); 332 } 333 return a + ""; 334}; 335$jscomp.polyfill("String.prototype.repeat", function(a) { 336 return a ? a : function(b) { 337 var c = $jscomp.checkStringArgs(this, null, "repeat"); 338 if (0 > b || 1342177279 < b) { 339 throw new RangeError("Invalid count value"); 340 } 341 b |= 0; 342 for (var d = ""; b;) { 343 if (b & 1 && (d += c), b >>>= 1) { 344 c += c; 345 } 346 } 347 return d; 348 }; 349}, "es6", "es3"); 350$jscomp.stringPadding = function(a, b) { 351 a = void 0 !== a ? String(a) : " "; 352 return 0 < b && a ? a.repeat(Math.ceil(b / a.length)).substring(0, b) : ""; 353}; 354$jscomp.polyfill("String.prototype.padStart", function(a) { 355 return a ? a : function(b, c) { 356 var d = $jscomp.checkStringArgs(this, null, "padStart"); 357 return $jscomp.stringPadding(c, b - d.length) + d; 358 }; 359}, "es8", "es3"); 360$jscomp.owns = function(a, b) { 361 return Object.prototype.hasOwnProperty.call(a, b); 362}; 363$jscomp.polyfill("Object.values", function(a) { 364 return a ? a : function(b) { 365 var c = [], d; 366 for (d in b) { 367 $jscomp.owns(b, d) && c.push(b[d]); 368 } 369 return c; 370 }; 371}, "es8", "es3"); 372$jscomp.checkEs6ConformanceViaProxy = function() { 373 try { 374 var a = {}, b = Object.create(new $jscomp.global.Proxy(a, {get:function(c, d, e) { 375 return c == a && "q" == d && e == b; 376 }})); 377 return !0 === b.q; 378 } catch (c) { 379 return !1; 380 } 381}; 382$jscomp.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS = !1; 383$jscomp.ES6_CONFORMANCE = $jscomp.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS && $jscomp.checkEs6ConformanceViaProxy(); 384$jscomp.polyfill("WeakMap", function(a) { 385 function b() { 386 if (!a || !Object.seal) { 387 return !1; 388 } 389 try { 390 var f = Object.seal({}), h = Object.seal({}), k = new a([[f, 2], [h, 3]]); 391 if (2 != k.get(f) || 3 != k.get(h)) { 392 return !1; 393 } 394 k.delete(f); 395 k.set(h, 4); 396 return !k.has(f) && 4 == k.get(h); 397 } catch (n) { 398 return !1; 399 } 400 } 401 function c() { 402 } 403 function d(f) { 404 var h = typeof f; 405 return "object" === h && null !== f || "function" === h; 406 } 407 function e(f) { 408 if (!$jscomp.owns(f, m)) { 409 var h = new c(); 410 $jscomp.defineProperty(f, m, {value:h}); 411 } 412 } 413 function l(f) { 414 if (!$jscomp.ISOLATE_POLYFILLS) { 415 var h = Object[f]; 416 h && (Object[f] = function(k) { 417 if (k instanceof c) { 418 return k; 419 } 420 Object.isExtensible(k) && e(k); 421 return h(k); 422 }); 423 } 424 } 425 if ($jscomp.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS) { 426 if (a && $jscomp.ES6_CONFORMANCE) { 427 return a; 428 } 429 } else { 430 if (b()) { 431 return a; 432 } 433 } 434 var m = "$jscomp_hidden_" + Math.random(); 435 l("freeze"); 436 l("preventExtensions"); 437 l("seal"); 438 var p = 0, g = function(f) { 439 this.id_ = (p += Math.random() + 1).toString(); 440 if (f) { 441 f = $jscomp.makeIterator(f); 442 for (var h; !(h = f.next()).done;) { 443 h = h.value, this.set(h[0], h[1]); 444 } 445 } 446 }; 447 g.prototype.set = function(f, h) { 448 if (!d(f)) { 449 throw Error("Invalid WeakMap key"); 450 } 451 e(f); 452 if (!$jscomp.owns(f, m)) { 453 throw Error("WeakMap key fail: " + f); 454 } 455 f[m][this.id_] = h; 456 return this; 457 }; 458 g.prototype.get = function(f) { 459 return d(f) && $jscomp.owns(f, m) ? f[m][this.id_] : void 0; 460 }; 461 g.prototype.has = function(f) { 462 return d(f) && $jscomp.owns(f, m) && $jscomp.owns(f[m], this.id_); 463 }; 464 g.prototype.delete = function(f) { 465 return d(f) && $jscomp.owns(f, m) && $jscomp.owns(f[m], this.id_) ? delete f[m][this.id_] : !1; 466 }; 467 return g; 468}, "es6", "es3"); 469$jscomp.MapEntry = function() { 470}; 471$jscomp.polyfill("Map", function(a) { 472 function b() { 473 if ($jscomp.ASSUME_NO_NATIVE_MAP || !a || "function" != typeof a || !a.prototype.entries || "function" != typeof Object.seal) { 474 return !1; 475 } 476 try { 477 var g = Object.seal({x:4}), f = new a($jscomp.makeIterator([[g, "s"]])); 478 if ("s" != f.get(g) || 1 != f.size || f.get({x:4}) || f.set({x:4}, "t") != f || 2 != f.size) { 479 return !1; 480 } 481 var h = f.entries(), k = h.next(); 482 if (k.done || k.value[0] != g || "s" != k.value[1]) { 483 return !1; 484 } 485 k = h.next(); 486 return k.done || 4 != k.value[0].x || "t" != k.value[1] || !h.next().done ? !1 : !0; 487 } catch (n) { 488 return !1; 489 } 490 } 491 if ($jscomp.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS) { 492 if (a && $jscomp.ES6_CONFORMANCE) { 493 return a; 494 } 495 } else { 496 if (b()) { 497 return a; 498 } 499 } 500 var c = new WeakMap(), d = function(g) { 501 this.data_ = {}; 502 this.head_ = m(); 503 this.size = 0; 504 if (g) { 505 g = $jscomp.makeIterator(g); 506 for (var f; !(f = g.next()).done;) { 507 f = f.value, this.set(f[0], f[1]); 508 } 509 } 510 }; 511 d.prototype.set = function(g, f) { 512 g = 0 === g ? 0 : g; 513 var h = e(this, g); 514 h.list || (h.list = this.data_[h.id] = []); 515 h.entry ? h.entry.value = f : (h.entry = {next:this.head_, previous:this.head_.previous, head:this.head_, key:g, value:f,}, h.list.push(h.entry), this.head_.previous.next = h.entry, this.head_.previous = h.entry, this.size++); 516 return this; 517 }; 518 d.prototype.delete = function(g) { 519 g = e(this, g); 520 return g.entry && g.list ? (g.list.splice(g.index, 1), g.list.length || delete this.data_[g.id], g.entry.previous.next = g.entry.next, g.entry.next.previous = g.entry.previous, g.entry.head = null, this.size--, !0) : !1; 521 }; 522 d.prototype.clear = function() { 523 this.data_ = {}; 524 this.head_ = this.head_.previous = m(); 525 this.size = 0; 526 }; 527 d.prototype.has = function(g) { 528 return !!e(this, g).entry; 529 }; 530 d.prototype.get = function(g) { 531 return (g = e(this, g).entry) && g.value; 532 }; 533 d.prototype.entries = function() { 534 return l(this, function(g) {
535 return [g.key, g.value]; 536 }); 537 }; 538 d.prototype.keys = function() { 539 return l(this, function(g) { 540 return g.key; 541 }); 542 }; 543 d.prototype.values = function() { 544 return l(this, function(g) { 545 return g.value; 546 }); 547 }; 548 d.prototype.forEach = function(g, f) { 549 for (var h = this.entries(), k; !(k = h.next()).done;) { 550 k = k.value, g.call(f, k[1], k[0], this); 551 } 552 }; 553 d.prototype[Symbol.iterator] = d.prototype.entries; 554 var e = function(g, f) { 555 var h = f && typeof f; 556 "object" == h || "function" == h ? c.has(f) ? h = c.get(f) : (h = "" + ++p, c.set(f, h)) : h = "p_" + f; 557 var k = g.data_[h]; 558 if (k && $jscomp.owns(g.data_, h)) { 559 for (g = 0; g < k.length; g++) { 560 var n = k[g]; 561 if (f !== f && n.key !== n.key || f === n.key) { 562 return {id:h, list:k, index:g, entry:n}; 563 } 564 } 565 } 566 return {id:h, list:k, index:-1, entry:void 0}; 567 }, l = function(g, f) { 568 var h = g.head_; 569 return $jscomp.iteratorPrototype(function() { 570 if (h) { 571 for (; h.head != g.head_;) { 572 h = h.previous; 573 } 574 for (; h.next != h.head;) { 575 return h = h.next, {done:!1, value:f(h)}; 576 } 577 h = null; 578 } 579 return {done:!0, value:void 0}; 580 }); 581 }, m = function() { 582 var g = {}; 583 return g.previous = g.next = g.head = g; 584 }, p = 0; 585 return d; 586}, "es6", "es3"); 587var module$contents$omid$common$InternalMessage_GUID_KEY = "omid_message_guid", module$contents$omid$common$InternalMessage_METHOD_KEY = "omid_message_method", module$contents$omid$common$InternalMessage_VERSION_KEY = "omid_message_version", module$contents$omid$common$InternalMessage_ARGS_KEY = "omid_message_args", module$exports$omid$common$InternalMessage = function(a, b, c, d) { 588 this.guid = a; 589 this.method = b; 590 this.version = c; 591 this.args = d; 592}; 593module$exports$omid$common$InternalMessage.isValidSerializedMessage = function(a) { 594 return !!a && void 0 !== a[module$contents$omid$common$InternalMessage_GUID_KEY] && void 0 !== a[module$contents$omid$common$InternalMessage_METHOD_KEY] && void 0 !== a[module$contents$omid$common$InternalMessage_VERSION_KEY] && "string" === typeof a[module$contents$omid$common$InternalMessage_GUID_KEY] && "string" === typeof a[module$contents$omid$common$InternalMessage_METHOD_KEY] && "string" === typeof a[module$contents$omid$common$InternalMessage_VERSION_KEY] && (void 0 === a[module$contents$omid$common$InternalMessage_ARGS_KEY] || 595 void 0 !== a[module$contents$omid$common$InternalMessage_ARGS_KEY]); 596}; 597module$exports$omid$common$InternalMessage.deserialize = function(a) { 598 return new module$exports$omid$common$InternalMessage(a[module$contents$omid$common$InternalMessage_GUID_KEY], a[module$contents$omid$common$InternalMessage_METHOD_KEY], a[module$contents$omid$common$InternalMessage_VERSION_KEY], a[module$contents$omid$common$InternalMessage_ARGS_KEY]); 599}; 600module$exports$omid$common$InternalMessage.prototype.serialize = function() { 601 var a = {}; 602 a = (a[module$contents$omid$common$InternalMessage_GUID_KEY] = this.guid, a[module$contents$omid$common$InternalMessage_METHOD_KEY] = this.method, a[module$contents$omid$common$InternalMessage_VERSION_KEY] = this.version, a); 603 void 0 !== this.args && (a[module$contents$omid$common$InternalMessage_ARGS_KEY] = this.args); 604 return a; 605}; 606var module$exports$omid$common$constants = {AdEventType:{IMPRESSION:"impression", LOADED:"loaded", GEOMETRY_CHANGE:"geometryChange", SESSION_START:"sessionStart", SESSION_ERROR:"sessionError", SESSION_FINISH:"sessionFinish", MEDIA:"media", VIDEO:"video", START:"start", FIRST_QUARTILE:"firstQuartile", MIDPOINT:"midpoint", THIRD_QUARTILE:"thirdQuartile", COMPLETE:"complete", PAUSE:"pause", RESUME:"resume", BUFFER_START:"bufferStart", BUFFER_FINISH:"bufferFinish", SKIPPED:"skipped", VOLUME_CHANGE:"volumeChange", 607PLAYER_STATE_CHANGE:"playerStateChange", AD_USER_INTERACTION:"adUserInteraction", STATE_CHANGE:"stateChange",}, MediaEventType:{LOADED:"loaded", START:"start", FIRST_QUARTILE:"firstQuartile", MIDPOINT:"midpoint", THIRD_QUARTILE:"thirdQuartile", COMPLETE:"complete", PAUSE:"pause", RESUME:"resume", BUFFER_START:"bufferStart", BUFFER_FINISH:"bufferFinish", SKIPPED:"skipped", VOLUME_CHANGE:"volumeChange", PLAYER_STATE_CHANGE:"playerStateChange", AD_USER_INTERACTION:"adUserInteraction",}, ImpressionType:{DEFINED_BY_JAVASCRIPT:"definedByJavaScript", 608UNSPECIFIED:"unspecified", LOADED:"loaded", BEGIN_TO_RENDER:"beginToRender", ONE_PIXEL:"onePixel", VIEWABLE:"viewable", AUDIBLE:"audible", OTHER:"other",}, ErrorType:{GENERIC:"generic", VIDEO:"video", MEDIA:"media",}, AdSessionType:{NATIVE:"native", HTML:"html", JAVASCRIPT:"javascript",}, EventOwner:{NATIVE:"native", JAVASCRIPT:"javascript", NONE:"none",}, SessionOwner:{JAVASCRIPT:"javascript", NATIVE:"native",}, AccessMode:{FULL:"full", DOMAIN:"domain", LIMITED:"limited",}, AppState:{BACKGROUNDED:"backgrounded", 609FOREGROUNDED:"foregrounded",}, DeviceLockState:{LOCKED:"locked", UNLOCKED:"unlocked",}, Environment:{APP:"app", WEB:"web",}, DeviceCategory:{CTV:"ctv", DESKTOP:"desktop", MOBILE:"mobile", OTHER:"other",}, InteractionType:{CLICK:"click", INVITATION_ACCEPT:"invitationAccept",}, CreativeType:{DEFINED_BY_JAVASCRIPT:"definedByJavaScript", HTML_DISPLAY:"htmlDisplay", NATIVE_DISPLAY:"nativeDisplay", VIDEO:"video", AUDIO:"audio",}, MediaType:{DISPLAY:"display", VIDEO:"video",}, Reason:{NOT_FOUND:"notFound", 610HIDDEN:"hidden", BACKGROUNDED:"backgrounded", PICTURE_IN_PICTURE:"pictureInPicture", DEVICE_LOCKED:"deviceLocked", VIEWPORT:"viewport", OBSTRUCTED:"obstructed", CLIPPED:"clipped", UNMEASURABLE:"unmeasurable", NO_WINDOW_FOCUS:"noWindowFocus", NO_OUTPUT_DEVICE:"noOutputDevice",}, SupportedFeatures:{CONTAINER:"clid", VIDEO:"vlid",}
610, VideoPosition:{PREROLL:"preroll", MIDROLL:"midroll", POSTROLL:"postroll", STANDALONE:"standalone",}, VideoPlayerState:{MINIMIZED:"minimized", COLLAPSED:"collapsed", NORMAL:"normal", 611EXPANDED:"expanded", FULLSCREEN:"fullscreen",}, NativeViewKeys:{X:"x", LEFT:"left", Y:"y", TOP:"top", WIDTH:"width", HEIGHT:"height", AD_SESSION_ID:"adSessionId", IS_FRIENDLY_OBSTRUCTION_FOR:"isFriendlyObstructionFor", CLIPS_TO_BOUNDS:"clipsToBounds", CHILD_VIEWS:"childViews", END_X:"endX", END_Y:"endY", OBSTRUCTIONS:"obstructions", OBSTRUCTION_CLASS:"obstructionClass", OBSTRUCTION_PURPOSE:"obstructionPurpose", OBSTRUCTION_REASON:"obstructionReason", PIXELS:"pixels", HAS_WINDOW_FOCUS:"hasWindowFocus", 612}, MeasurementStateChangeSource:{CONTAINER:"container", CREATIVE:"creative",}, ElementMarkup:{OMID_ELEMENT_CLASS_NAME:"omid-element",}, CommunicationType:{NONE:"NONE", DIRECT:"DIRECT", POST_MESSAGE:"POST_MESSAGE",}, OmidImplementer:{OMSDK:"omsdk",}, MessageMethod:{IDENTIFY_SERVICE_WINDOW:"identifyServiceWindow",}}; 613var module$exports$omid$common$Communication = function(a) { 614 this.to = a; 615 this.communicationType_ = module$exports$omid$common$constants.CommunicationType.NONE; 616}; 617module$exports$omid$common$Communication.prototype.sendMessage = function(a, b) { 618}; 619module$exports$omid$common$Communication.prototype.handleMessage = function(a, b) { 620 if (this.onMessage) { 621 this.onMessage(a, b); 622 } 623}; 624module$exports$omid$common$Communication.prototype.serialize = function(a) { 625 return JSON.stringify(a); 626}; 627module$exports$omid$common$Communication.prototype.deserialize = function(a) { 628 return JSON.parse(a); 629}; 630module$exports$omid$common$Communication.prototype.isDirectCommunication = function() { 631 return this.communicationType_ === module$exports$omid$common$constants.CommunicationType.DIRECT; 632}; 633module$exports$omid$common$Communication.prototype.isCrossOrigin = function() { 634}; 635var module$exports$omid$common$argsChecker = {}; 636function module$contents$omid$common$argsChecker_assertTruthyString(a, b) { 637 if (!b) { 638 throw Error("Value for " + a + " is undefined, null or blank."); 639 } 640 if ("string" !== typeof b && !(b instanceof String)) { 641 throw Error("Value for " + a + " is not a string."); 642 } 643 if ("" === b.trim()) { 644 throw Error("Value for " + a + " is empty string."); 645 } 646} 647function module$contents$omid$common$argsChecker_assertNotNullObject(a, b) { 648 if (null == b) { 649 throw Error("Value for " + a + " is undefined or null"); 650 } 651} 652function module$contents$omid$common$argsChecker_assertNumber(a, b) { 653 if (null == b) { 654 throw Error(a + " must not be null or undefined."); 655 } 656 if ("number" !== typeof b || isNaN(b)) { 657 throw Error("Value for " + a + " is not a number"); 658 } 659} 660function module$contents$omid$common$argsChecker_assertNumberBetween(a, b, c, d) { 661 module$contents$omid$common$argsChecker_assertNumber(a, b); 662 if (b < c || b > d) { 663 throw Error("Value for " + a + " is outside the range [" + c + "," + d + "]"); 664 } 665} 666function module$contents$omid$common$argsChecker_assertFunction(a, b) { 667 if (!b) { 668 throw Error(a + " must not be truthy."); 669 } 670} 671function module$contents$omid$common$argsChecker_assertPositiveNumber(a, b) { 672 module$contents$omid$common$argsChecker_assertNumber(a, b); 673 if (0 > b) { 674 throw Error(a + " must be a positive number."); 675 } 676} 677module$exports$omid$common$argsChecker.assertTruthyString = module$contents$omid$common$argsChecker_assertTruthyString; 678module$exports$omid$common$argsChecker.assertNotNullObject = module$contents$omid$common$argsChecker_assertNotNullObject; 679module$exports$omid$common$argsChecker.assertNumber = module$contents$omid$common$argsChecker_assertNumber; 680module$exports$omid$common$argsChecker.assertNumberBetween = module$contents$omid$common$argsChecker_assertNumberBetween; 681module$exports$omid$common$argsChecker.assertFunction = module$contents$omid$common$argsChecker_assertFunction; 682module$exports$omid$common$argsChecker.assertPositiveNumber = module$contents$omid$common$argsChecker_assertPositiveNumber; 683var module$exports$omid$common$exporter = {}; 684function module$contents$omid$common$exporter_getOmidExports() { 685 return "undefined" === typeof omidExports ? null : omidExports; 686} 687function module$contents$omid$common$exporter_getOrCreateName(a, b) { 688 return a && (a[b] || (a[b] = {})); 689} 690function module$contents$omid$common$exporter_packageExport(a, b, c) { 691 if (c = void 0 === c ? module$contents$omid$common$exporter_getOmidExports() : c) { 692 a = a.split("."), a.slice(0, a.length - 1).reduce(module$contents$omid$common$exporter_getOrCreateName, c)[a[a.length - 1]] = b; 693 } 694}
695module$exports$omid$common$exporter.packageExport = module$contents$omid$common$exporter_packageExport; 696var module$exports$omid$sessionClient$Partner = function(a, b) { 697 module$contents$omid$common$argsChecker_assertTruthyString("Partner.name", a); 698 module$contents$omid$common$argsChecker_assertTruthyString("Partner.version", b); 699 this.name = a; 700 this.version = b; 701}; 702module$contents$omid$common$exporter_packageExport("OmidSessionClient.Partner", module$exports$omid$sessionClient$Partner); 703var module$exports$omid$sessionClient$VerificationScriptResource = function(a, b, c, d) { 704 d = void 0 === d ? module$exports$omid$common$constants.AccessMode.FULL : d; 705 module$contents$omid$common$argsChecker_assertTruthyString("VerificationScriptResource.resourceUrl", a); 706 this.resourceUrl = a; 707 this.vendorKey = b; 708 this.verificationParameters = c; 709 this.accessMode = d; 710}; 711module$exports$omid$sessionClient$VerificationScriptResource.prototype.toJSON = function() { 712 return {accessMode:this.accessMode, resourceUrl:this.resourceUrl, vendorKey:this.vendorKey, verificationParameters:this.verificationParameters,}; 713}; 714module$contents$omid$common$exporter_packageExport("OmidSessionClient.VerificationScriptResource", module$exports$omid$sessionClient$VerificationScriptResource); 715var module$exports$omid$sessionClient$UniversalAdId = function(a, b) { 716 module$contents$omid$common$argsChecker_assertTruthyString("UniversalAdId.value", a); 717 module$contents$omid$common$argsChecker_assertTruthyString("UniversalAdId.idRegistry", b); 718 this.value = a; 719 this.idRegistry = b; 720}; 721module$exports$omid$sessionClient$UniversalAdId.prototype.toSerialisedValue = function() { 722 return this.value + "; " + this.idRegistry; 723}; 724module$contents$omid$common$exporter_packageExport("OmidSessionClient.UniversalAdId", module$exports$omid$sessionClient$UniversalAdId); 725var module$exports$omid$sessionClient$Context = function(a, b, c, d, e) { 726 c = void 0 === c ? null : c; 727 d = void 0 === d ? null : d; 728 e = void 0 === e ? null : e; 729 module$contents$omid$common$argsChecker_assertNotNullObject("Context.partner", a); 730 this.partner = a; 731 this.verificationScriptResources = b; 732 this.videoElement = this.slotElement = null; 733 this.contentUrl = c; 734 this.customReferenceData = d; 735 this.underEvaluation = !1; 736 this.serviceWindow = null; 737 this.universalAdId = e; 738}; 739module$exports$omid$sessionClient$Context.prototype.setVideoElement = function(a) { 740 module$contents$omid$common$argsChecker_assertNotNullObject("Context.videoElement", a); 741 this.videoElement = a; 742}; 743module$exports$omid$sessionClient$Context.prototype.setSlotElement = function(a) { 744 module$contents$omid$common$argsChecker_assertNotNullObject("Context.slotElement", a); 745 this.slotElement = a; 746}; 747module$exports$omid$sessionClient$Context.prototype.setServiceWindow = function(a) { 748 module$contents$omid$common$argsChecker_assertNotNullObject("Context.serviceWindow", a); 749 this.serviceWindow = a; 750}; 751module$contents$omid$common$exporter_packageExport("OmidSessionClient.Context", module$exports$omid$sessionClient$Context); 752var module$exports$omid$common$OmidGlobalProvider = {}; 753function module$contents$omid$common$OmidGlobalProvider_getOmidGlobal() { 754 if ("undefined" !== typeof omidGlobal && omidGlobal) { 755 return omidGlobal; 756 } 757 if ("undefined" !== typeof global && global) { 758 return global; 759 } 760 if ("undefined" !== typeof window && window) { 761 return window; 762 } 763 if ("undefined" !== typeof globalThis && globalThis) { 764 return globalThis; 765 } 766 var a = Function("return this")(); 767 if (a) { 768 return a; 769 } 770 throw Error("Could not determine global object context."); 771} 772module$exports$omid$common$OmidGlobalProvider.omidGlobal = module$contents$omid$common$OmidGlobalProvider_getOmidGlobal(); 773var module$contents$omid$sessionClient$OmidJsSessionInterface_ExportedNodeKeys = {ROOT:"omidSessionInterface", AD_EVENTS:"adEvents", MEDIA_EVENTS:"mediaEvents",}, module$contents$omid$sessionClient$OmidJsSessionInterface_MethodNameMap = {sessionError:"reportError",}, module$contents$omid$sessionClient$OmidJsSessionInterface_MediaEventMethodNames = Object.keys(module$exports$omi
773d$common$constants.MediaEventType).map(function(a) { 774 return module$exports$omid$common$constants.MediaEventType[a]; 775}), module$contents$omid$sessionClient$OmidJsSessionInterface_AdEventMethodNames = ["impressionOccurred",], module$exports$omid$sessionClient$OmidJsSessionInterface = function(a) { 776 a = void 0 === a ? module$exports$omid$common$OmidGlobalProvider.omidGlobal : a; 777 this.interfaceRoot_ = a[module$contents$omid$sessionClient$OmidJsSessionInterface_ExportedNodeKeys.ROOT]; 778}; 779module$exports$omid$sessionClient$OmidJsSessionInterface.prototype.isSupported = function() { 780 return null != this.interfaceRoot_; 781}; 782module$exports$omid$sessionClient$OmidJsSessionInterface.prototype.sendMessage = function(a, b, c) { 783 "registerSessionObserver" == a && (c = [b]); 784 module$contents$omid$sessionClient$OmidJsSessionInterface_MethodNameMap[a] && (a = module$contents$omid$sessionClient$OmidJsSessionInterface_MethodNameMap[a]); 785 b = this.interfaceRoot_; 786 0 <= module$contents$omid$sessionClient$OmidJsSessionInterface_AdEventMethodNames.indexOf(a) && (b = b[module$contents$omid$sessionClient$OmidJsSessionInterface_ExportedNodeKeys.AD_EVENTS]); 787 0 <= module$contents$omid$sessionClient$OmidJsSessionInterface_MediaEventMethodNames.indexOf(a) && (b = b[module$contents$omid$sessionClient$OmidJsSessionInterface_ExportedNodeKeys.MEDIA_EVENTS]); 788 b = b[a]; 789 if (!b) { 790 throw Error("Unrecognized method name: " + a + "."); 791 } 792 b.apply(null, $jscomp.arrayFromIterable(c)); 793}; 794var module$exports$omid$common$Rectangle = function(a, b, c, d) { 795 this.x = a; 796 this.y = b; 797 this.width = c; 798 this.height = d; 799}; 800var module$exports$omid$common$guid = {}; 801function module$contents$omid$common$guid_isCryptoAvailable() { 802 return "undefined" !== typeof crypto && "function" === typeof crypto.getRandomValues; 803} 804function module$contents$omid$common$guid_generateGuid() { 805 return module$contents$omid$common$guid_isCryptoAvailable() ? module$contents$omid$common$guid_generateSecureGuid() : module$contents$omid$common$guid_generateFallbackGuid(); 806} 807function module$contents$omid$common$guid_generateSecureGuid() { 808 var a = new Uint8Array(16); 809 crypto.getRandomValues(a); 810 a[6] = a[6] & 15 | 64; 811 a[8] = a[8] & 63 | 128; 812 for (var b = [], c = 0; 16 > c; c++) { 813 b.push(a[c].toString(16).padStart(2, "0")); 814 } 815 return b[0] + b[1] + b[2] + b[3] + "-" + b[4] + b[5] + "-" + b[6] + b[7] + "-" + b[8] + b[9] + "-" + b[10] + b[11] + b[12] + b[13] + b[14] + b[15]; 816} 817function module$contents$omid$common$guid_generateFallbackGuid() { 818 return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(a) { 819 var b = 16 * Math.random() | 0; 820 a = "y" === a ? (b & 3 | 8).toString(16) : b.toString(16); 821 return a; 822 }); 823} 824module$exports$omid$common$guid.generateGuid = module$contents$omid$common$guid_generateGuid; 825module$exports$omid$common$guid.generateSecureGuid = module$contents$omid$common$guid_generateSecureGuid; 826module$exports$omid$common$guid.generateFallbackGuid = module$contents$omid$common$guid_generateFallbackGuid; 827module$exports$omid$common$guid.isCryptoAvailable = module$contents$omid$common$guid_isCryptoAvailable; 828var module$exports$omid$common$logger = {}; 829function module$contents$omid$common$logger_error() { 830 var a = $jscomp.getRestArguments.apply(0, arguments); 831 module$contents$omid$common$logger_executeLog(function() { 832 throw new (Function.prototype.bind.apply(Error, [null, "Could not complete the test successfully - "].concat($jscomp.arrayFromIterable(a))))(); 833 }, function() { 834 return console.error.apply(console, $jscomp.arrayFromIterable(a)); 835 }); 836} 837function module$contents$omid$common$logger_debug() { 838 var a = $jscomp.getRestArguments.apply(0, arguments); 839 module$contents$omid$common$logger_executeLog(function() { 840 }, function() { 841 return console.error.apply(console, $jscomp.arrayFromIterable(a)); 842 }); 843} 844function module$contents$omid$common$logger_executeLog(a, b) { 845 "undefined" !== typeof jasmine && jasmine ? a() : "undefined" !== typeof console && console && console.error && b(); 846} 847module$exports$omid$common$logger.error = module$contents$omid$common$logger_error;
848module$exports$omid$common$logger.debug = module$contents$omid$common$logger_debug; 849var module$exports$omid$common$eventTypedefs = {}, module$contents$omid$common$eventTypedefs_SupportedAttestationMechanism; 850var module$exports$omid$common$version = {ApiVersion:"1.0", Version:"1.6.6-iab457"}; 851var module$exports$omid$common$VersionUtils = {}, module$contents$omid$common$VersionUtils_SEMVER_DIGITS_NUMBER = 3; 852function module$contents$omid$common$VersionUtils_isValidVersion(a) { 853 return /\d+\.\d+\.\d+(-.*)?/.test(a); 854} 855function module$contents$omid$common$VersionUtils_versionGreaterOrEqual(a, b) { 856 a = a.split("-")[0].split("."); 857 b = b.split("-")[0].split("."); 858 for (var c = 0; c < module$contents$omid$common$VersionUtils_SEMVER_DIGITS_NUMBER; c++) { 859 var d = parseInt(a[c], 10), e = parseInt(b[c], 10); 860 if (d > e) { 861 break; 862 } else if (d < e) { 863 return !1; 864 } 865 } 866 return !0; 867} 868module$exports$omid$common$VersionUtils.isValidVersion = module$contents$omid$common$VersionUtils_isValidVersion; 869module$exports$omid$common$VersionUtils.versionGreaterOrEqual = module$contents$omid$common$VersionUtils_versionGreaterOrEqual; 870var module$exports$omid$common$ArgsSerDe = {}, module$contents$omid$common$ArgsSerDe_ARGS_NOT_SERIALIZED_VERSION = "1.0.3"; 871function module$contents$omid$common$ArgsSerDe_serializeMessageArgs(a, b) { 872 return module$contents$omid$common$VersionUtils_isValidVersion(a) && module$contents$omid$common$VersionUtils_versionGreaterOrEqual(a, module$contents$omid$common$ArgsSerDe_ARGS_NOT_SERIALIZED_VERSION) ? b : JSON.stringify(b); 873} 874function module$contents$omid$common$ArgsSerDe_deserializeMessageArgs(a, b) { 875 return module$contents$omid$common$VersionUtils_isValidVersion(a) && module$contents$omid$common$VersionUtils_versionGreaterOrEqual(a, module$contents$omid$common$ArgsSerDe_ARGS_NOT_SERIALIZED_VERSION) ? b ? b : [] : b && "string" === typeof b ? JSON.parse(b) : []; 876} 877module$exports$omid$common$ArgsSerDe.serializeMessageArgs = module$contents$omid$common$ArgsSerDe_serializeMessageArgs; 878module$exports$omid$common$ArgsSerDe.deserializeMessageArgs = module$contents$omid$common$ArgsSerDe_deserializeMessageArgs; 879var module$exports$omid$common$serviceMethodUtils = {}, module$contents$omid$common$serviceMethodUtils_ServiceMethodPrefix = {SESSION_SERVICE:"SessionService.", VERIFICATION_SERVICE:"VerificationService.",}; 880function module$contents$omid$common$serviceMethodUtils_getPrefixedSessionServiceMethod(a) { 881 return module$contents$omid$common$serviceMethodUtils_getPrefixedMethod(a, module$contents$omid$common$serviceMethodUtils_ServiceMethodPrefix.SESSION_SERVICE); 882} 883function module$contents$omid$common$serviceMethodUtils_getUnprefixedSessionServiceMethod(a) { 884 return module$contents$omid$common$serviceMethodUtils_getUnprefixedMethod(a, module$contents$omid$common$serviceMethodUtils_ServiceMethodPrefix.SESSION_SERVICE); 885} 886function module$contents$omid$common$serviceMethodUtils_isPrefixedSessionServiceMethod(a) { 887 return null != module$contents$omid$common$serviceMethodUtils_getUnprefixedSessionServiceMethod(a); 888} 889function module$contents$omid$common$serviceMethodUtils_getPrefixedVerificationServiceMethod(a) { 890 return module$contents$omid$common$serviceMethodUtils_getPrefixedMethod(a, module$contents$omid$common$serviceMethodUtils_ServiceMethodPrefix.VERIFICATION_SERVICE); 891} 892function module$contents$omid$common$serviceMethodUtils_getUnprefixedVerificationServiceMethod(a) { 893 return module$contents$omid$common$serviceMethodUtils_getUnprefixedMethod(a, module$contents$omid$common$serviceMethodUtils_ServiceMethodPrefix.VERIFICATION_SERVICE); 894} 895function module$contents$omid$common$serviceMethodUtils_isPrefixedVerificationServiceMethod(a) { 896 return null != module$contents$omid$common$serviceMethodUtils_getUnprefixedVerificationServiceMethod(a); 897} 898function module$contents$omid$common$serviceMethodUtils_getPrefixedMethod(a, b) { 899 return b + a; 900} 901function module$contents$omid$common$serviceMethodUtils_getUnprefixedMethod(a, b) { 902 return (a = a.match(new RegExp("^" + b + "(.*)"))) && a[1]; 903}
904module$exports$omid$common$serviceMethodUtils.getPrefixedSessionServiceMethod = module$contents$omid$common$serviceMethodUtils_getPrefixedSessionServiceMethod; 905module$exports$omid$common$serviceMethodUtils.getPrefixedVerificationServiceMethod = module$contents$omid$common$serviceMethodUtils_getPrefixedVerificationServiceMethod; 906module$exports$omid$common$serviceMethodUtils.getUnprefixedSessionServiceMethod = module$contents$omid$common$serviceMethodUtils_getUnprefixedSessionServiceMethod; 907module$exports$omid$common$serviceMethodUtils.getUnprefixedVerificationServiceMethod = module$contents$omid$common$serviceMethodUtils_getUnprefixedVerificationServiceMethod; 908module$exports$omid$common$serviceMethodUtils.isPrefixedSessionServiceMethod = module$contents$omid$common$serviceMethodUtils_isPrefixedSessionServiceMethod; 909module$exports$omid$common$serviceMethodUtils.isPrefixedVerificationServiceMethod = module$contents$omid$common$serviceMethodUtils_isPrefixedVerificationServiceMethod; 910var module$exports$omid$common$windowUtils = {}; 911function module$contents$omid$common$windowUtils_isValidWindow(a) { 912 return null != a && "undefined" !== typeof a.top && null != a.top; 913} 914function module$contents$omid$common$windowUtils_isCrossOrigin(a) { 915 if (a === module$exports$omid$common$OmidGlobalProvider.omidGlobal) { 916 return !1; 917 } 918 try { 919 if ("undefined" === typeof a.location.hostname) { 920 return !0; 921 } 922 module$contents$omid$common$windowUtils_isSameOriginForIE(a); 923 } catch (b) { 924 return !0; 925 } 926 return !1; 927} 928function module$contents$omid$common$windowUtils_isSameOriginForIE(a) { 929 return "" === a.x || "" !== a.x; 930} 931function module$contents$omid$common$windowUtils_resolveGlobalContext(a) { 932 "undefined" === typeof a && "undefined" !== typeof window && window && (a = window); 933 return module$contents$omid$common$windowUtils_isValidWindow(a) ? a : module$exports$omid$common$OmidGlobalProvider.omidGlobal; 934} 935function module$contents$omid$common$windowUtils_resolveTopWindowContext(a) { 936 return module$contents$omid$common$windowUtils_isValidWindow(a) ? a.top : module$exports$omid$common$OmidGlobalProvider.omidGlobal; 937} 938function module$contents$omid$common$windowUtils_isTopWindowAccessible(a) { 939 try { 940 return a.top.location.href ? !0 : !1; 941 } catch (b) { 942 return !1; 943 } 944} 945function module$contents$omid$common$windowUtils_removeDomElements(a) { 946 a.type === module$exports$omid$common$constants.AdEventType.SESSION_START && ("undefined" !== typeof a.data.context.videoElement && (a.data.context.videoElement = "Video Element (" + a.data.context.videoElement.id + ")"), "undefined" !== typeof a.data.context.slotElement && (a.data.context.slotElement = "Slot Element (" + a.data.context.slotElement.id + ")")); 947 return a; 948} 949function module$contents$omid$common$windowUtils_roundToTwoDecimals_(a) { 950 return Math.round(100 * a) / 100; 951} 952function module$contents$omid$common$windowUtils_roundNumbersInObject_(a) { 953 if (null != a) { 954 if (Array.isArray(a)) { 955 for (var b = 0; b < a.length; b++) { 956 var c = a[b]; 957 "number" === typeof c ? a[b] = module$contents$omid$common$windowUtils_roundToTwoDecimals_(c) : null != c && "object" === typeof c && module$contents$omid$common$windowUtils_roundNumbersInObject_(c); 958 } 959 } else { 960 for (b in a) { 961 a.hasOwnProperty(b) && (c = a[b], "number" === typeof c ? a[b] = module$contents$omid$common$windowUtils_roundToTwoDecimals_(c) : null != c && "object" === typeof c && module$contents$omid$common$windowUtils_roundNumbersInObject_(c)); 962 } 963 } 964 } 965} 966function module$contents$omid$common$windowUtils_prepareVerificationEventForSerialization(a) { 967 if (null == a || "object" !== typeof a) { 968 return a; 969 } 970 var b = a.data; 971 if (null == b || "object" !== typeof b) { 972 return a; 973 } 974 try { 975 var c = JSON.parse(JSON.stringify(a)), d = c.data; 976 null != d && "object" === typeof d && module$contents$omid$common$windowUtils_roundNumbersInObject_(d); 977 return c; 978 } catch (e) { 979 return a; 980 } 981} 982function module$contents$omid$common$windowUtils_evaluatePageUrl(a) { 983 if (!module$contents$omid$common$windowUtils_isValidWindow(a)) { 984 return null; 985 } 986 try { 987 var b = a.top; 988 return module$contents$omid$common$windowUtils_isCrossOrigin(b) ? null : b.location.href; 989 } catch (c) { 990 return null; 991 } 992}
993module$exports$omid$common$windowUtils.evaluatePageUrl = module$contents$omid$common$windowUtils_evaluatePageUrl; 994module$exports$omid$common$windowUtils.prepareVerificationEventForSerialization = module$contents$omid$common$windowUtils_prepareVerificationEventForSerialization; 995module$exports$omid$common$windowUtils.isCrossOrigin = module$contents$omid$common$windowUtils_isCrossOrigin; 996module$exports$omid$common$windowUtils.removeDomElements = module$contents$omid$common$windowUtils_removeDomElements; 997module$exports$omid$common$windowUtils.resolveGlobalContext = module$contents$omid$common$windowUtils_resolveGlobalContext; 998module$exports$omid$common$windowUtils.resolveTopWindowContext = module$contents$omid$common$windowUtils_resolveTopWindowContext; 999module$exports$omid$common$windowUtils.isTopWindowAccessible = module$contents$omid$common$windowUtils_isTopWindowAccessible; 1000var module$exports$omid$common$DirectCommunication = function(a) { 1001 module$exports$omid$common$Communication.call(this, a); 1002 this.communicationType_ = module$exports$omid$common$constants.CommunicationType.DIRECT; 1003 this.handleExportedMessage = module$exports$omid$common$DirectCommunication.prototype.handleExportedMessage.bind(this); 1004}; 1005$jscomp.inherits(module$exports$omid$common$DirectCommunication, module$exports$omid$common$Communication); 1006module$exports$omid$common$DirectCommunication.prototype.sendMessage = function(a, b) { 1007 b = void 0 === b ? this.to : b; 1008 if (!b) { 1009 throw Error("Message destination must be defined at construction time or when sending the message."); 1010 } 1011 b.handleExportedMessage(a.serialize(), this); 1012}; 1013module$exports$omid$common$DirectCommunication.prototype.handleExportedMessage = function(a, b) { 1014 module$exports$omid$common$InternalMessage.isValidSerializedMessage(a) && this.handleMessage(module$exports$omid$common$InternalMessage.deserialize(a), b); 1015}; 1016module$exports$omid$common$DirectCommunication.prototype.isCrossOrigin = function() { 1017 return !1; 1018}; 1019var module$exports$omid$common$PostMessageCommunication = function(a, b) { 1020 b = void 0 === b ? module$exports$omid$common$OmidGlobalProvider.omidGlobal : b; 1021 module$exports$omid$common$Communication.call(this, b); 1022 var c = this; 1023 this.communicationType_ = module$exports$omid$common$constants.CommunicationType.POST_MESSAGE; 1024 a.addEventListener("message", function(d) { 1025 if ("object" === typeof d.data) { 1026 var e = d.data; 1027 module$exports$omid$common$InternalMessage.isValidSerializedMessage(e) && (e = module$exports$omid$common$InternalMessage.deserialize(e), d.source && c.handleMessage(e, d.source)); 1028 } 1029 }); 1030}; 1031$jscomp.inherits(module$exports$omid$common$PostMessageCommunication, module$exports$omid$common$Communication); 1032module$exports$omid$common$PostMessageCommunication.isCompatibleContext = function(a) { 1033 return !!(a && a.addEventListener && a.postMessage); 1034}; 1035module$exports$omid$common$PostMessageCommunication.prototype.sendMessage = function(a, b) { 1036 b = void 0 === b ? this.to : b; 1037 if (!b) { 1038 throw Error("Message destination must be defined at construction time or when sending the message."); 1039 } 1040 b.postMessage(a.serialize(), "*"); 1041}; 1042module$exports$omid$common$PostMessageCommunication.prototype.isCrossOrigin = function() { 1043 return this.to ? module$contents$omid$common$windowUtils_isCrossOrigin(this.to) : !0; 1044}; 1045var module$exports$omid$common$DetectOmid = {OMID_PRESENT_FRAME_NAME:"omid_v1_present", OMID_PRESENT_FRAME_NAME_WEB:"omid_v1_present_web", OMID_PRESENT_FRAME_NAME_APP:"omid_v1_present_app", getEnvironmentIframeName:function(a) { 1046 var b = {}; 1047 return (b[module$exports$omid$common$constants.Environment.APP] = module$exports$omid$common$DetectOmid.OMID_PRESENT_FRAME_NAME_APP, b[module$exports$omid$common$constants.Environment.WEB] = module$exports$omid$common$DetectOmid.OMID_PRESENT_FRAME_NAME_WEB, b)[a]; 1048}}; 1049function module$contents$omid$common$DetectOmid_isIframePresent(a, b) { 1050 try { 1051 return a.frames && !!a.frames[b]; 1052 } catch (c) { 1053 return !1; 1054 } 1055} 1056module$exports$omid$common$DetectOmid.isOmidPresent = function(a) {
1057 return [module$exports$omid$common$DetectOmid.OMID_PRESENT_FRAME_NAME, module$exports$omid$common$DetectOmid.OMID_PRESENT_FRAME_NAME_WEB, module$exports$omid$common$DetectOmid.OMID_PRESENT_FRAME_NAME_APP,].some(function(b) { 1058 return module$contents$omid$common$DetectOmid_isIframePresent(a, b); 1059 }); 1060}; 1061module$exports$omid$common$DetectOmid.getOmidEnvironment = function(a) { 1062 for (var b = $jscomp.makeIterator(Object.values(module$exports$omid$common$constants.Environment)), c = b.next(); !c.done; c = b.next()) { 1063 c = c.value; 1064 var d = module$exports$omid$common$DetectOmid.getEnvironmentIframeName(c); 1065 if (module$contents$omid$common$DetectOmid_isIframePresent(a, d)) { 1066 return c; 1067 } 1068 } 1069 return null; 1070}; 1071function module$contents$omid$common$DetectOmid_writePresenceIframe_(a, b) { 1072 a.document.write('<iframe style="display:none" id="' + (b + '" name="' + b + '" sandbox></iframe>')); 1073} 1074module$exports$omid$common$DetectOmid.declareOmidPresence = function(a, b) { 1075 a.frames && a.document && ![module$exports$omid$common$DetectOmid.OMID_PRESENT_FRAME_NAME, module$exports$omid$common$DetectOmid.OMID_PRESENT_FRAME_NAME_WEB, module$exports$omid$common$DetectOmid.OMID_PRESENT_FRAME_NAME_APP,].some(function(c) { 1076 return !!a.frames[c]; 1077 }) && (null == a.document.body && module$exports$omid$common$DetectOmid.isMutationObserverAvailable_(a) ? module$exports$omid$common$DetectOmid.registerMutationObserver_(a, b) : (b = module$exports$omid$common$DetectOmid.getEnvironmentIframeName(b), a.document.body ? (module$exports$omid$common$DetectOmid.appendPresenceIframe_(a, module$exports$omid$common$DetectOmid.OMID_PRESENT_FRAME_NAME), module$exports$omid$common$DetectOmid.appendPresenceIframe_(a, b)) : (module$contents$omid$common$DetectOmid_writePresenceIframe_(a, 1078 module$exports$omid$common$DetectOmid.OMID_PRESENT_FRAME_NAME), module$contents$omid$common$DetectOmid_writePresenceIframe_(a, b)))); 1079}; 1080module$exports$omid$common$DetectOmid.appendPresenceIframe_ = function(a, b) { 1081 var c = a.document.createElement("iframe"); 1082 c.id = b; 1083 c.name = b; 1084 c.style.display = "none"; 1085 c.sandbox = ""; 1086 a.document.body.appendChild(c); 1087}; 1088module$exports$omid$common$DetectOmid.isMutationObserverAvailable_ = function(a) { 1089 return "MutationObserver" in a; 1090}; 1091module$exports$omid$common$DetectOmid.registerMutationObserver_ = function(a, b) { 1092 var c = new MutationObserver(function(d) { 1093 d.forEach(function(e) { 1094 "BODY" === e.addedNodes[0].nodeName && (e = module$exports$omid$common$DetectOmid.getEnvironmentIframeName(b), module$exports$omid$common$DetectOmid.appendPresenceIframe_(a, module$exports$omid$common$DetectOmid.OMID_PRESENT_FRAME_NAME), module$exports$omid$common$DetectOmid.appendPresenceIframe_(a, e), c.disconnect()); 1095 }); 1096 }); 1097 c.observe(a.document.documentElement, {childList:!0}); 1098}; 1099var module$exports$omid$common$serviceCommunication = {}, module$contents$omid$common$serviceCommunication_EXPORTED_SESSION_COMMUNICATION_NAME = ["omid", "v1_SessionServiceCommunication"], module$contents$omid$common$serviceCommunication_EXPORTED_VERIFICATION_COMMUNICATION_NAME = ["omid", "v1_VerificationServiceCommunication"], module$contents$omid$common$serviceCommunication_EXPORTED_SERVICE_WINDOW_NAME = ["omidVerificationProperties", "serviceWindow"]; 1100function module$contents$omid$common$serviceCommunication_getValueForKeypath(a, b) { 1101 return b.reduce(function(c, d) { 1102 return c && c[d]; 1103 }, a); 1104} 1105function module$contents$omid$common$serviceCommunication_startServiceCommunication(a, b, c, d) { 1106 if (!module$contents$omid$common$windowUtils_isCrossOrigin(b)) { 1107 try { 1108 var e = module$contents$omid$common$serviceCommunication_getValueForKeypath(b, c); 1109 if (e) { 1110 return new module$exports$omid$common$DirectCommunication(e); 1111 } 1112 } catch (l) { 1113 } 1114 } 1115 return d(b) ? new module$exports$omid$common$PostMessageCommunication(a, b) : null; 1116} 1117function module$contents$omid$common$serviceCommunication_startServiceCommunicationFromCandidates(a, b, c, d) { 1118 b = $jscomp.makeIterator(b); 1119 for (var e = b.next(); !e.done; e = b.next()) { 1120 if (e = module$contents$omid$common$serviceCommunication_startServiceCommunication(a, e.value, c, d)) { 1121 return e; 1122 } 1123 } 1124 return null; 1125} 1126function module$contents$omid$common$serviceCommunication_startSessionServiceCommunication(a, b, c) {
1127 c = void 0 === c ? module$exports$omid$common$DetectOmid.isOmidPresent : c; 1128 var d = [a, module$contents$omid$common$windowUtils_resolveTopWindowContext(a)]; 1129 b && d.unshift(b); 1130 return module$contents$omid$common$serviceCommunication_startServiceCommunicationFromCandidates(a, d, module$contents$omid$common$serviceCommunication_EXPORTED_SESSION_COMMUNICATION_NAME, c); 1131} 1132function module$contents$omid$common$serviceCommunication_startVerificationServiceCommunication(a, b) { 1133 b = void 0 === b ? module$exports$omid$common$DetectOmid.isOmidPresent : b; 1134 var c = [], d = module$contents$omid$common$serviceCommunication_getValueForKeypath(a, module$contents$omid$common$serviceCommunication_EXPORTED_SERVICE_WINDOW_NAME); 1135 d && c.push(d); 1136 c.push(module$contents$omid$common$windowUtils_resolveTopWindowContext(a)); 1137 return module$contents$omid$common$serviceCommunication_startServiceCommunicationFromCandidates(a, c, module$contents$omid$common$serviceCommunication_EXPORTED_VERIFICATION_COMMUNICATION_NAME, b); 1138} 1139module$exports$omid$common$serviceCommunication.startSessionServiceCommunication = module$contents$omid$common$serviceCommunication_startSessionServiceCommunication; 1140module$exports$omid$common$serviceCommunication.startVerificationServiceCommunication = module$contents$omid$common$serviceCommunication_startVerificationServiceCommunication; 1141var module$contents$omid$sessionClient$AdSession_SESSION_CLIENT_VERSION = module$exports$omid$common$version.Version, module$exports$omid$sessionClient$AdSession = function(a, b, c) { 1142 module$contents$omid$common$argsChecker_assertNotNullObject("AdSession.context", a); 1143 this.adSessionId_ = module$contents$omid$common$guid_generateGuid(); 1144 this.context_ = a; 1145 this.impressionOccurred_ = !1; 1146 var d = this.context_.serviceWindow || void 0; 1147 this.communication_ = b || module$contents$omid$common$serviceCommunication_startSessionServiceCommunication(module$contents$omid$common$windowUtils_resolveGlobalContext(), d); 1148 this.sessionInterface_ = c || new module$exports$omid$sessionClient$OmidJsSessionInterface(); 1149 this.isSessionRunning_ = this.hasMediaEvents_ = this.hasAdEvents_ = !1; 1150 this.impressionType_ = this.creativeType_ = null; 1151 this.creativeLoaded_ = !1; 1152 this.callbackMap_ = {}; 1153 this.communication_ && (this.communication_.onMessage = this.handleInternalMessage_.bind(this)); 1154 this.setClientInfo_(); 1155 this.injectVerificationScripts_(a.verificationScriptResources); 1156 this.sendSlotElement_(a.slotElement); 1157 this.sendVideoElement_(a.videoElement); 1158 this.sendContentUrl_(a.contentUrl); 1159 this.watchSessionEvents_(); 1160}; 1161module$exports$omid$sessionClient$AdSession.prototype.getAdSessionId = function() { 1162 return this.adSessionId_; 1163}; 1164module$exports$omid$sessionClient$AdSession.prototype.setCreativeType = function(a) { 1165 if (a === module$exports$omid$common$constants.CreativeType.DEFINED_BY_JAVASCRIPT) { 1166 throw Error("Creative type cannot be redefined with value " + module$exports$omid$common$constants.CreativeType.DEFINED_BY_JAVASCRIPT); 1167 } 1168 if (this.impressionOccurred_) { 1169 throw Error("Impression has already occurred"); 1170 } 1171 if (this.creativeLoaded_) { 1172 throw Error("Creative has already loaded"); 1173 } 1174 if (this.creativeType_ && this.creativeType_ !== module$exports$omid$common$constants.CreativeType.DEFINED_BY_JAVASCRIPT) { 1175 throw Error("Creative type cannot be redefined"); 1176 } 1177 if (void 0 === this.creativeType_) { 1178 throw Error("Native integration is using OMID 1.2 or earlier"); 1179 } 1180 this.sendOneWayMessage("setCreativeType", a, this.adSessionId_); 1181 this.creativeType_ = a; 1182}; 1183module$exports$omid$sessionClient$AdSession.prototype.setImpressionType = function(a) { 1184 if (a === module$exports$omid$common$constants.ImpressionType.DEFINED_BY_JAVASCRIPT) { 1185 throw Error("Impression type cannot be redefined with value " + module$exports$omid$common$constants.ImpressionType.DEFINED_BY_JAVASCRIPT); 1186 } 1187 if (this.impressionOccurred_) { 1188 throw Error("Impression has already occurred"); 1189 } 1190 if (this.creativeLoaded_) { 1191 throw Error("Creative has already loaded"); 1192 } 1193 if (this.impressionType_ && this.impressionType_ !== module$exports$omi
1193d$common$constants.ImpressionType.DEFINED_BY_JAVASCRIPT) { 1194 throw Error("Impression type cannot be redefined"); 1195 } 1196 if (void 0 === this.impressionType_) { 1197 throw Error("Native integration is using OMID 1.2 or earlier"); 1198 } 1199 this.sendOneWayMessage("setImpressionType", a, this.adSessionId_); 1200 this.impressionType_ = a; 1201}; 1202module$exports$omid$sessionClient$AdSession.prototype.isSupported = function() { 1203 return !!this.communication_ || this.sessionInterface_.isSupported(); 1204}; 1205module$exports$omid$sessionClient$AdSession.prototype.isSendingElementsSupported_ = function() { 1206 return this.communication_ ? this.communication_.isDirectCommunication() : this.sessionInterface_.isSupported(); 1207}; 1208module$exports$omid$sessionClient$AdSession.prototype.registerSessionObserver = function(a) { 1209 this.sendMessage("registerSessionObserver", a, this.adSessionId_); 1210}; 1211module$exports$omid$sessionClient$AdSession.prototype.start = function() { 1212 var a = {customReferenceData:this.context_.customReferenceData, underEvaluation:this.context_.underEvaluation,}; 1213 this.context_.universalAdId && (a.universalAdId = this.context_.universalAdId.toSerialisedValue()); 1214 this.sendOneWayMessage("startSession", a, this.adSessionId_); 1215}; 1216module$exports$omid$sessionClient$AdSession.prototype.finish = function() { 1217 this.sendOneWayMessage("finishSession", this.adSessionId_); 1218}; 1219module$exports$omid$sessionClient$AdSession.prototype.error = function(a, b) { 1220 this.sendOneWayMessage("sessionError", a, b, this.adSessionId_); 1221}; 1222module$exports$omid$sessionClient$AdSession.prototype.registerAdEvents = function() { 1223 if (this.hasAdEvents_) { 1224 throw Error("AdEvents already registered."); 1225 } 1226 this.hasAdEvents_ = !0; 1227 this.sendOneWayMessage("registerAdEvents", this.adSessionId_); 1228}; 1229module$exports$omid$sessionClient$AdSession.prototype.registerMediaEvents = function() { 1230 if (this.hasMediaEvents_) { 1231 throw Error("MediaEvents already registered."); 1232 } 1233 this.hasMediaEvents_ = !0; 1234 this.sendOneWayMessage("registerMediaEvents", this.adSessionId_); 1235}; 1236module$exports$omid$sessionClient$AdSession.prototype.sendOneWayMessage = function(a) { 1237 var b = $jscomp.getRestArguments.apply(1, arguments); 1238 this.sendMessage.apply(this, [a, null].concat($jscomp.arrayFromIterable(b))); 1239}; 1240module$exports$omid$sessionClient$AdSession.prototype.sendMessage = function(a, b) { 1241 var c = $jscomp.getRestArguments.apply(2, arguments); 1242 this.communication_ ? this.sendInternalMessage_(a, b, c) : this.sessionInterface_.isSupported() && this.sendInterfaceMessage_(a, b, c); 1243}; 1244module$exports$omid$sessionClient$AdSession.prototype.sendInternalMessage_ = function(a, b, c) { 1245 var d = module$contents$omid$common$guid_generateGuid(); 1246 b && (this.callbackMap_[d] = b); 1247 a = new module$exports$omid$common$InternalMessage(d, module$contents$omid$common$serviceMethodUtils_getPrefixedSessionServiceMethod(a), module$exports$omid$common$version.Version, module$contents$omid$common$ArgsSerDe_serializeMessageArgs(module$exports$omid$common$version.Version, c)); 1248 this.communication_.sendMessage(a); 1249}; 1250module$exports$omid$sessionClient$AdSession.prototype.handleInternalMessage_ = function(a, b) { 1251 b = a.method; 1252 var c = a.guid; 1253 a = a.args; 1254 if ("response" === b && this.callbackMap_[c]) { 1255 var d = module$contents$omid$common$ArgsSerDe_deserializeMessageArgs(module$exports$omid$common$version.Version, a); 1256 this.callbackMap_[c].apply(this, d); 1257 } 1258 "error" === b && window.console && module$contents$omid$common$logger_error(a); 1259}; 1260module$exports$omid$sessionClient$AdSession.prototype.sendInterfaceMessage_ = function(a, b, c) { 1261 try { 1262 this.sessionInterface_.sendMessage(a, b, c); 1263 } catch (d) { 1264 module$contents$omid$common$logger_error("Failed to communicate with SessionInterface with error:"), module$contents$omid$common$logger_error(d); 1265 } 1266}; 1267module$exports$omid$sessionClient$AdSession.prototype.assertSessionRunning = function() { 1268 if (!this.isSessionRunning_) { 1269 throw Error("Session not started."); 1270 } 1271}; 1272module$exports$omid$sessionClient$AdSession.prototype.impressionOccurred = function() {
1273 if (this.creativeType_ === module$exports$omid$common$constants.CreativeType.DEFINED_BY_JAVASCRIPT) { 1274 throw Error("Creative type has not been redefined"); 1275 } 1276 if (this.impressionType_ === module$exports$omid$common$constants.ImpressionType.DEFINED_BY_JAVASCRIPT) { 1277 throw Error("Impression type has not been redefined"); 1278 } 1279 this.impressionOccurred_ = !0; 1280}; 1281module$exports$omid$sessionClient$AdSession.prototype.creativeLoaded = function() { 1282 if (this.creativeType_ === module$exports$omid$common$constants.CreativeType.DEFINED_BY_JAVASCRIPT) { 1283 throw Error("Creative type has not been redefined"); 1284 } 1285 if (this.impressionType_ === module$exports$omid$common$constants.ImpressionType.DEFINED_BY_JAVASCRIPT) { 1286 throw Error("Impression type has not been redefined"); 1287 } 1288 this.creativeLoaded_ = !0; 1289}; 1290module$exports$omid$sessionClient$AdSession.prototype.setClientInfo_ = function() { 1291 this.sendOneWayMessage("setClientInfo", module$exports$omid$common$version.Version, this.context_.partner.name, this.context_.partner.version, this.adSessionId_); 1292}; 1293module$exports$omid$sessionClient$AdSession.prototype.injectVerificationScripts_ = function(a) { 1294 a && (a = a.map(function(b) { 1295 return b.toJSON(); 1296 }), this.sendOneWayMessage("injectVerificationScriptResources", a, this.adSessionId_)); 1297}; 1298module$exports$omid$sessionClient$AdSession.prototype.sendSlotElement_ = function(a) { 1299 this.sendElement_(a, "setSlotElement"); 1300}; 1301module$exports$omid$sessionClient$AdSession.prototype.sendVideoElement_ = function(a) { 1302 this.sendElement_(a, "setVideoElement"); 1303}; 1304module$exports$omid$sessionClient$AdSession.prototype.sendElement_ = function(a, b) { 1305 a && (this.isSendingElementsSupported_() ? this.sendOneWayMessage(b, a, this.adSessionId_) : this.error(module$exports$omid$common$constants.ErrorType.GENERIC, "Session Client " + b + " called when communication is cross-origin")); 1306}; 1307module$exports$omid$sessionClient$AdSession.prototype.sendContentUrl_ = function(a) { 1308 a && this.sendOneWayMessage("setContentUrl", a, this.adSessionId_); 1309}; 1310module$exports$omid$sessionClient$AdSession.prototype.setElementBounds = function(a) { 1311 module$contents$omid$common$argsChecker_assertNotNullObject("AdSession.elementBounds", a); 1312 this.sendOneWayMessage("setElementBounds", a, this.adSessionId_); 1313}; 1314module$exports$omid$sessionClient$AdSession.prototype.watchSessionEvents_ = function() { 1315 var a = this; 1316 this.registerSessionObserver(function(b) { 1317 b.type === module$exports$omid$common$constants.AdEventType.SESSION_START && (a.isSessionRunning_ = !0, a.creativeType_ = b.data.creativeType, a.impressionType_ = b.data.impressionType); 1318 b.type === module$exports$omid$common$constants.AdEventType.SESSION_FINISH && (a.isSessionRunning_ = !1); 1319 }); 1320}; 1321module$contents$omid$common$exporter_packageExport("OmidSessionClient.AdSession", module$exports$omid$sessionClient$AdSession); 1322var module$exports$omid$common$VastProperties = function(a, b, c, d) { 1323 this.isSkippable = a; 1324 this.skipOffset = b; 1325 this.isAutoPlay = c; 1326 this.position = d; 1327}; 1328module$exports$omid$common$VastProperties.prototype.toJSON = function() { 1329 return {isSkippable:this.isSkippable, skipOffset:this.skipOffset, isAutoPlay:this.isAutoPlay, position:this.position,}; 1330}; 1331var module$exports$omid$sessionClient$AdEvents = function(a) { 1332 module$contents$omid$common$argsChecker_assertNotNullObject("AdEvents.adSession", a); 1333 this.adSessionId_ = a.getAdSessionId(); 1334 try { 1335 a.registerAdEvents(), this.adSession = a; 1336 } catch (b) { 1337 throw Error("AdSession already has an ad events instance registered"); 1338 } 1339}; 1340module$exports$omid$sessionClient$AdEvents.prototype.impressionOccurred = function() { 1341 this.adSession.assertSessionRunning(); 1342 this.adSession.impressionOccurred(); 1343 this.adSession.sendOneWayMessage("impressionOccurred", this.adSessionId_); 1344}; 1345module$exports$omid$sessionClient$AdEvents.prototype.loaded = function(a) { 1346 a = void 0 === a ? null : a; 1347 this.adSession.creativeLoaded(); 1348 a = a ? a.toJSON() : null; 1349 this.adSession.sendOneWayMessage("loaded", a, this.adSessionId_); 1350}; 1351module$contents$omid$common$exporter_packageExport("OmidSessionClient.AdEvents", module$exports$omi
1351d$sessionClient$AdEvents); 1352var module$exports$omid$sessionClient$ConstantsExport = {}; 1353module$contents$omid$common$exporter_packageExport("OmidSessionClient.CreativeType", module$exports$omid$common$constants.CreativeType); 1354module$contents$omid$common$exporter_packageExport("OmidSessionClient.ImpressionType", module$exports$omid$common$constants.ImpressionType); 1355module$contents$omid$common$exporter_packageExport("OmidSessionClient.VideoPlayerState", module$exports$omid$common$constants.VideoPlayerState); 1356module$contents$omid$common$exporter_packageExport("OmidSessionClient.InteractionType", module$exports$omid$common$constants.InteractionType); 1357module$contents$omid$common$exporter_packageExport("OmidSessionClient.ErrorType", module$exports$omid$common$constants.ErrorType); 1358module$contents$omid$common$exporter_packageExport("OmidSessionClient.VastProperties", module$exports$omid$common$VastProperties); 1359var module$exports$omid$sessionClient$MediaEvents = function(a) { 1360 module$contents$omid$common$argsChecker_assertNotNullObject("MediaEvents.adSession", a); 1361 this.adSessionId_ = a.getAdSessionId(); 1362 try { 1363 a.registerMediaEvents(), this.adSession = a; 1364 } catch (b) { 1365 throw Error("AdSession already has a media events instance registered"); 1366 } 1367}; 1368module$exports$omid$sessionClient$MediaEvents.prototype.start = function(a, b) { 1369 module$contents$omid$common$argsChecker_assertNumber("MediaEvents.start.duration", a); 1370 module$contents$omid$common$argsChecker_assertNumberBetween("MediaEvents.start.mediaPlayerVolume", b, 0, 1); 1371 this.adSession.sendOneWayMessage("start", a, b, this.adSessionId_); 1372}; 1373module$exports$omid$sessionClient$MediaEvents.prototype.firstQuartile = function() { 1374 this.adSession.sendOneWayMessage("firstQuartile", this.adSessionId_); 1375}; 1376module$exports$omid$sessionClient$MediaEvents.prototype.midpoint = function() { 1377 this.adSession.sendOneWayMessage("midpoint", this.adSessionId_); 1378}; 1379module$exports$omid$sessionClient$MediaEvents.prototype.thirdQuartile = function() { 1380 this.adSession.sendOneWayMessage("thirdQuartile", this.adSessionId_); 1381}; 1382module$exports$omid$sessionClient$MediaEvents.prototype.complete = function() { 1383 this.adSession.sendOneWayMessage("complete", this.adSessionId_); 1384}; 1385module$exports$omid$sessionClient$MediaEvents.prototype.pause = function() { 1386 this.adSession.sendOneWayMessage("pause", this.adSessionId_); 1387}; 1388module$exports$omid$sessionClient$MediaEvents.prototype.resume = function() { 1389 this.adSession.sendOneWayMessage("resume", this.adSessionId_); 1390}; 1391module$exports$omid$sessionClient$MediaEvents.prototype.bufferStart = function() { 1392 this.adSession.sendOneWayMessage("bufferStart", this.adSessionId_); 1393}; 1394module$exports$omid$sessionClient$MediaEvents.prototype.bufferFinish = function() { 1395 this.adSession.sendOneWayMessage("bufferFinish", this.adSessionId_); 1396}; 1397module$exports$omid$sessionClient$MediaEvents.prototype.skipped = function() { 1398 this.adSession.sendOneWayMessage("skipped", this.adSessionId_); 1399}; 1400module$exports$omid$sessionClient$MediaEvents.prototype.volumeChange = function(a) { 1401 module$contents$omid$common$argsChecker_assertNumberBetween("MediaEvents.volumeChange.mediaPlayerVolume", a, 0, 1); 1402 this.adSession.sendOneWayMessage("volumeChange", a, this.adSessionId_); 1403}; 1404module$exports$omid$sessionClient$MediaEvents.prototype.playerStateChange = function(a) { 1405 module$contents$omid$common$argsChecker_assertNotNullObject("MediaEvents.playerStateChange.playerState", a); 1406 this.adSession.sendOneWayMessage("playerStateChange", a, this.adSessionId_); 1407}; 1408module$exports$omid$sessionClient$MediaEvents.prototype.adUserInteraction = function(a) { 1409 module$contents$omid$common$argsChecker_assertNotNullObject("MediaEvents.adUserInteraction.interactionType", a); 1410 this.adSession.sendOneWayMessage("adUserInteraction", a, this.adSessionId_); 1411}; 1412module$contents$omid$common$exporter_packageExport("OmidSessionClient.MediaEvents", module$exports$omid$sessionClient$MediaEvents); 1413var module$exports$omid$sessionClient$OmidVersion = function(a, b) { 1414 module$contents$omid$common$argsChecker_assertTruthyString("OmidVersion.semanticVersion", a); 1415 module$contents$omid$common$argsChecker_assertTruthyString("OmidVersion.apiLevel", b); 1416}; 1417module$contents$omid$common$exporter_packageExport("OmidSessionClient.OmidVersion", module$exports$omi
1417d$sessionClient$OmidVersion); 1418var module$exports$omid$sessionClient$ServiceCommunication = {}; 1419function module$contents$omid$sessionClient$ServiceCommunication_listenForServiceWindow(a) { 1420 var b = module$contents$omid$common$windowUtils_resolveGlobalContext(); 1421 (new module$exports$omid$common$PostMessageCommunication(b)).onMessage = function(c, d) { 1422 c.method === module$exports$omid$common$constants.MessageMethod.IDENTIFY_SERVICE_WINDOW && a(d); 1423 }; 1424} 1425module$contents$omid$common$exporter_packageExport("OmidSessionClient.listenForServiceWindow", module$contents$omid$sessionClient$ServiceCommunication_listenForServiceWindow); 1426module$exports$omid$sessionClient$ServiceCommunication.listenForServiceWindow = module$contents$omid$sessionClient$ServiceCommunication_listenForServiceWindow; 1427var module$exports$omid$sessionClient$VerificationVendor = {VerificationVendorId:{OTHER:1, MOAT:2, DOUBLEVERIFY:3, INTEGRAL_AD_SCIENCE:4, PIXELATE:5, NIELSEN:6, COMSCORE:7, MEETRICS:8, GOOGLE:9, HUMAN:10, MOBIAN:11,}}; 1428function module$contents$omid$sessionClient$VerificationVendor_verificationVendorIdForScriptUrl(a) { 1429 for (var b = $jscomp.makeIterator(module$contents$omid$sessionClient$VerificationVendor_VERIFICATION_VENDORS.keys()), c = b.next(); !c.done; c = b.next()) { 1430 c = c.value; 1431 for (var d = $jscomp.makeIterator(module$contents$omid$sessionClient$VerificationVendor_VERIFICATION_VENDORS.get(c)), e = d.next(); !e.done; e = d.next()) { 1432 if (e.value.test(a)) { 1433 return c; 1434 } 1435 } 1436 } 1437 return module$exports$omid$sessionClient$VerificationVendor.VerificationVendorId.OTHER; 1438} 1439var module$contents$omid$sessionClient$VerificationVendor_VERIFICATION_VENDORS = new Map([[module$exports$omid$sessionClient$VerificationVendor.VerificationVendorId.DOUBLEVERIFY, [/^(https?:\/\/|\/\/)?[-a-zA-Z0-9.]+\.doubleverify\.com\/.*$/, /^(https?:\/\/|\/\/)?c\.[\w\-]+\.com\/vfw\/dv\/.*$/, /^(https?:\/\/|\/\/)?(www\.)?[\w]+\.tv\/r\/s\/d\/.*$/, /^(https?:\/\/|\/\/)?(\w\.?)+\.dv\.tech\/.*$/,],], [module$exports$omid$sessionClient$VerificationVendor.VerificationVendorId.INTEGRAL_AD_SCIENCE, [/^(https?:\/\/|\/\/)?[-a-zA-Z0-9.]+\.adsafeprotected\.com\/.*$/, 1440],], [module$exports$omid$sessionClient$VerificationVendor.VerificationVendorId.PIXELATE, [/^https?:\/\/(q|cdn)\.adrta\.com\/s\/.*\/(aa|aanf)\.js.*$/, /^https:\/\/cdn\.rta247\.com\/s\/.*\/(aa|aanf)\.js.*$/,],], [module$exports$omid$sessionClient$VerificationVendor.VerificationVendorId.NIELSEN, [],], [module$exports$omid$sessionClient$VerificationVendor.VerificationVendorId.COMSCORE, [/^(https?:\/\/|\/\/)?[-a-zA-Z0-9.]+\.voicefive\.com\/.*$/, /^(https?:\/\/|\/\/)?[-a-zA-Z0-9.]+\.measuread\.com\/.*$/, 1441/^(https?:\/\/|\/\/)?[-a-zA-Z0-9.]+\.scorecardresearch\.com\/.*$/,],], [module$exports$omid$sessionClient$VerificationVendor.VerificationVendorId.MEETRICS, [/^(https?:\/\/|\/\/)?s418\.mxcdn\.net\/bb-serve\/omid-meetrics.*\.js$/,],], [module$exports$omid$sessionClient$VerificationVendor.VerificationVendorId.GOOGLE, [/^(https?:\/\/|\/\/)?pagead2\.googlesyndication\.com\/.*$/, /^(https?:\/\/|\/\/)?www\.googletagservices\.com\/.*$/,],], [module$exports$omid$sessionClient$VerificationVendor.VerificationVendorId.HUMAN, 1442[/^(https?:\/\/|\/\/)?[-a-zA-Z0-9.]+\.script\.ac\/.*$/, /^(https?:\/\/|\/\/)?[-a-zA-Z0-9.]+\/(2|ag|static)\/[a-zA-Z0-9.]*\/analytics.js.*$/,],], [module$exports$omid$sessionClient$VerificationVendor.VerificationVendorId.MOBIAN, [/^(https?:\/\/|\/\/)?[-a-zA-Z0-9.]+\.outcomes\.net\/.*$/,],],]); 1443module$contents$omid$common$exporter_packageExport("OmidSessionClient.verificationVendorIdForScriptUrl", module$contents$omid$sessionClient$VerificationVendor_verificationVendorIdForScriptUrl); 1444module$contents$omid$common$exporter_packageExport("OmidSessionClient.VerificationVendorId", module$exports$omid$sessionClient$VerificationVendor.VerificationVendorId); 1445module$exports$omid$sessionClient$VerificationVendor.verificationVendorIdForScriptUrl = module$contents$omid$sessionClient$VerificationVendor_verificationVendorIdForScriptUrl; 1446var module$exports$omid$common$FloatComparer = {}, module$contents$omid$common$FloatComparer_FLOAT_ROUGH_DIFF_TOLERANCE = 0.01; 1447function module$contents$omid$common$FloatComparer_roughlyEqual(a, b) { 1448 return Math.abs(a - b) < module$contents$omid$common$FloatComparer_FLOAT_ROUGH_DIFF_TOLERANCE; 1449} 1450function module$contents$omid$common$FloatComparer_roughlyLessThan(a, b) { 1451 return b - a > module$contents$omid$common$FloatComparer_FLOAT_ROUGH_DIFF_TOLERANCE; 1452} 1453function module$contents$omid$common$FloatComparer_lessThanOrRoughlyEqual(a, b) { 1454 return a < b || module$contents$omid$common$FloatComparer_roughlyEqual(a, b); 1455} 1456function module$contents$omid$common$FloatComparer_greaterThanOrRoughlyEqual(a, b) { 1457 return a > b || module$contents$omid$common$FloatComparer_roughlyEqual(a, b); 1458}
1459module$exports$omid$common$FloatComparer.roughlyEqual = module$contents$omid$common$FloatComparer_roughlyEqual; 1460module$exports$omid$common$FloatComparer.roughlyLessThan = module$contents$omid$common$FloatComparer_roughlyLessThan; 1461module$exports$omid$common$FloatComparer.lessThanOrRoughlyEqual = module$contents$omid$common$FloatComparer_lessThanOrRoughlyEqual; 1462module$exports$omid$common$FloatComparer.greaterThanOrRoughlyEqual = module$contents$omid$common$FloatComparer_greaterThanOrRoughlyEqual; 1463var module$exports$omid$common$webtvUtils = {}, module$contents$omid$common$webtvUtils_WebOSSystem, module$contents$omid$common$webtvUtils_WEBOSSYSTEM = "webOSSystem"; 1464function module$contents$omid$common$webtvUtils_getWebOSSystem(a) { 1465 if ("object" === typeof a && "object" === typeof a[module$contents$omid$common$webtvUtils_WEBOSSYSTEM]) { 1466 return a[module$contents$omid$common$webtvUtils_WEBOSSYSTEM]; 1467 } 1468} 1469module$exports$omid$common$webtvUtils.getWebOSSystem = module$contents$omid$common$webtvUtils_getWebOSSystem; 1470function module$contents$omid$common$webtvUtils_isWebOS(a) { 1471 return "object" === typeof module$contents$omid$common$webtvUtils_getWebOSSystem(a); 1472} 1473module$exports$omid$common$webtvUtils.isWebOS = module$contents$omid$common$webtvUtils_isWebOS; 1474var module$contents$omid$common$webtvUtils_Tizen, module$contents$omid$common$webtvUtils_TIZEN = "tizen"; 1475function module$contents$omid$common$webtvUtils_getTizen(a) { 1476 if ("object" === typeof a && "object" === typeof a[module$contents$omid$common$webtvUtils_TIZEN]) { 1477 return a[module$contents$omid$common$webtvUtils_TIZEN]; 1478 } 1479} 1480module$exports$omid$common$webtvUtils.getTizen = module$contents$omid$common$webtvUtils_getTizen; 1481function module$contents$omid$common$webtvUtils_isTizen(a) { 1482 return "object" === typeof module$contents$omid$common$webtvUtils_getTizen(a); 1483} 1484module$exports$omid$common$webtvUtils.isTizen = module$contents$omid$common$webtvUtils_isTizen; 1485 1486}, typeof exports === 'undefined' ? undefined : exports)); 1487
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.