(function(){'use strict';/* Copyright The Closure Library Authors. SPDX-License-Identifier: Apache-2.0 */ var g=this||self;function h(a){h[" "](a);return a}h[" "]=function(){};function l(a){let b=g,c=0;for(;b&&40>c++;){var d=!1;try{var e;if(e=!!b&&null!=b.location.href)b:{try{h(b.foo);e=!0;break b}catch(f){}e=!1}d=e}catch{d=!1}if(d&&a(b))break;a:{try{const f=b.parent;if(f&&f!=b){b=f;break a}}catch{}b=null}}}function n(a,b){if(a)for(const c in a)Object.prototype.hasOwnProperty.call(a,c)&&b(a[c],c,a)}function p(a=document){return a.createElement("img")};function q(){return new r(a=>a(void 0))}function t(a,b){if(!a.h)if(b instanceof r)b.then(c=>{t(a,c)});else{a.h=!0;a.i=b;for(b=0;b{t(this,b)})}then(a){return new r(b=>{u(this,c=>{b(a(c))})})}};var w=a=>{let b="https://pagead2.googlesyndication.com/pagead/gen_204?id=rhmss";n(a,(c,d)=>{if(c||0===c)b+=`&${d}=${encodeURIComponent(""+c)}`});v(b)},v=a=>{var b=window;if(b.fetch)b.fetch(a,{keepalive:!0,credentials:"include",redirect:"follow",method:"get",mode:"no-cors"});else{b.google_image_requests||(b.google_image_requests=[]);const c=p(b.document);c.src=a;b.google_image_requests.push(c)}};var x={s:"app",u:"web"};function y(a){if(!a)throw Error("functionToExecute must not be truthy.");};function z(){return/\d+\.\d+\.\d+(-.*)?/.test("1.4.10-google_20240110")}function A(){const a=["1","4","10"],b=["1","0","3"];for(let c=0;3>c;c++){const d=parseInt(a[c],10),e=parseInt(b[c],10);if(d>e)break;else if(dG(a,b))}function I(a){for(const b of Object.values(x))if(G(a,{app:"omid_v1_present_app",web:"omid_v1_present_web"}[b]))return b;return null};function J(a,b){return a&&(a[b]||(a[b]={}))};function K(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,a=>{let b=16*Math.random()|0;return"y"===a?(b&3|8).toString(16):b.toString(16)})};function L(...a){M(()=>{throw Error("Could not complete the test successfully - ",...a);},()=>console.error(...a))}function M(a,b){"undefined"!==typeof jasmine&&jasmine?a():"undefined"!==typeof console&&console&&console.error&&b()};var N=function(){if("undefined"!==typeof omidGlobal&&omidGlobal)return omidGlobal;if("undefined"!==typeof global&&global)return global;if("undefined"!==typeof window&&window)return window;if("undefined"!==typeof globalThis&&globalThis)return globalThis;const a=Function("return this")();if(a)return a;throw Error("Could not determine global object context.");}();class O extends F{constructor(a){super(a);this.handleExportedMessage=O.prototype.i.bind(this)}sendMessage(a,b=this.h){if(!b)throw Error("Message destination must be defined at construction time or when sending the message.");b.handleExportedMessage(E(a),this)}i(a,b){B(a)&&this.g&&this.g(C(a),b)}};function P(a){return null!=a&&"undefined"!==typeof a.top&&null!=a.top}function Q(a){if(a===N)return!1;try{if("undefined"===typeof a.location.hostname)return!0}catch(b){return!0}return!1}function R(){var a;"undefined"===typeof a&&"undefined"!==typeof window&&window&&(a=window);return P(a)?a:N};class S extends F{constructor(a,b=N){super(b);a.addEventListener("message",c=>{if("object"===typeof c.data){var d=c.data;B(d)&&c.source&&this.g&&this.g(C(d),c.source)}})}sendMessage(a,b=this.h){if(!b)throw Error("Message destination must be defined at construction time or when sending the message.");b.postMessage(E(a),"*")}};const T=["omid","v1_VerificationServiceCommunication"],U=["omidVerificationProperties","serviceWindow"];function V(a,b){return b.reduce((c,d)=>c&&c[d],a)};function W(a,b,c,...d){if(a.g){var e=K();c&&(a.i[e]=c);b="VerificationService."+b;d=z()&&A()?d:JSON.stringify(d);a.g.sendMessage(new D(e,b,"1.4.10-google_20240110",d))}} class X{constructor(a){if(!a){a=R();var b=[],c=V(a,U);c&&b.push(c);b.push(P(a)?a.top:N);a:{for(const e of b){b:{b=a;c=H;if(!Q(e))try{const f=V(e,T);if(f){var d=new O(f);break b}}catch(f){}d=c(e)?new S(b,e):null}if(b=d){a=b;break a}}a=null}}if(this.g=a)this.g.g=this.j.bind(this);else if(d=(d=N.omid3p)&&"function"===typeof d.registerSessionObserver&&"function"===typeof d.addEventListener?d:null)this.omid3p=d;this.i={};this.h=(d=N.omidVerificationProperties)?d.injectionId:void 0}registerSessionObserver(a, b){y(a);this.omid3p?this.omid3p.registerSessionObserver(a,b,this.h):W(this,"addSessionListener",a,b,this.h)}addEventListener(a,b){if(!a)throw Error("Value for eventType is undefined, null or blank.");if("string"!==typeof a&&!(a instanceof String))throw Error("Value for eventType is not a string.");if(""===a.trim())throw Error("Value for eventType is empty string.");y(b);this.omid3p?this.omid3p.addEventListener(a,b,this.h):W(this,"addEventListener",b,a,this.h)}j(a){const b=a.method,c=a.h;a=a.g;if("response"=== b&&this.i[c]){var d=z()&&A()?a?a:[]:a&&"string"===typeof a?JSON.parse(a):[];this.i[c].apply(this,d)}"error"===b&&window.console&&L(a)}}(function(a,b,c="undefined"===typeof omidExports?null:omidExports){c&&(a=a.split("."),a.slice(0,a.length-1).reduce(J,c)[a[a.length-1]]=b)})("OmidVerificationClient",X);function aa(){let a=null;l(b=>(b=b.mraid)&&b.IS_GMA_SDK?(a=b,!0):!1);return a}function ba(){return new r(a=>{g.document.readyState&&"complete"===g.document.readyState?a():g.addEventListener("load",a)})}function ca(){return new r(a=>{const b=aa();b&&("loading"===b.getState()?b.addEventListener("ready",()=>{a(b)}):a(b))})}function da(a,b=null){b=new ea({timeout:b});b.h||fa(b);b.h.then(a)} function ha(){return new r(a=>{ba().then(()=>{ca().then(b=>{const c=(d,e)=>{0{const c=new r(e=>{let f=!1,m;const ia=(new Date).getTime();a.j.registerSessionObserver(k=>{"sessionStart"===k.type&&(m&&g.clearTimeout(m),f?(f=!1,k=(new Date).getTime()-ia,a.m||(a.m=!0,w({te:k,to:a.i}))):(k=k.data,e("app"==k.context.environment),k.context.omidNativeInfo&&(a.g.sdk=k.context.omidNativeInfo.partnerName)))});null!=a.i&&(m=g.setTimeout(()=>{f=!0;e(!1)},a.i))}),d=new r(e=>{a.j.addEventListener("geometryChange",f=>{f=f.data;const m=f.adView.reasons;m&&-1!= m.indexOf("hidden")||(f=f.adView,(f=f.onScreenContainerGeometry||f.onScreenGeometry)&&f.width&&f.height&&e())})});c.then(e=>{e?(d.then(()=>{a.g.src=1;b(a.g)}),ha().then(()=>{a.g.src=2;b(a.g)})):b()})}),a.h.then(()=>{a.l=!1})):a.h=q()} var ea=class{constructor(a={}){var b=this.j=a.client??new X;const c=R();var d=(d=N.omidVerificationProperties)&&d.injectionSource?d.injectionSource:void 0;this.o="web"!==(d||I(c)||I(P(c)?c.top:N))||b.h?!(!b.g&&!b.omid3p):!1;this.h=null;this.l=this.o;this.g={};this.i=a.timeout??null;this.m=!1}};const Y=function(a,b=null){return b&&b.getAttribute("data-jc")===String(a)?b:document.querySelector(`[${"data-jc"}="${a}"]`)}(86,document.currentScript);var Z;if(Y){const a={},b=Y.attributes;for(let c=b.length-1;0<=c;c--){const d=b[c].name;0===d.indexOf("data-jcp-")&&(a[d.substring(9)]=b[c].value)}Z=a}else Z={};window.omrhp=function(a){let b=+a?.owwt;Number.isNaN(b)&&(b=null);return c=>{da(c,b)}}(Z);}).call(this);