/*! copyright 2025 Aditude, Inc - Prebid - production - Updated: 2025-07-16T04:15:52.518Z, v1.4.0, wordpress-2Pvwql52OT/wordpress-longform/prebid-load cc9f9aeb09a2157d4eba e5a06e71fce9e0c003f2 */ !function(){var e={86964:function(e,t,r){e.exports=function(){"use strict";function e(e){return"function"==typeof e}var t,o,i,s,n=void 0,a=Array.isArray?Array.isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)},l=0,d=void 0,u=void 0,c=function(e,t){m[l]=e,m[l+1]=t,2===(l+=2)&&(u?u(w):_())},h="undefined"!=typeof window?window:void 0,p=h||{},f=p.MutationObserver||p.WebKitMutationObserver,b="undefined"==typeof self&&"undefined"!=typeof process&&"[object process]"===({}).toString.call(process),g="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel;function y(){var e=setTimeout;return function(){return e(w,1)}}var m=Array(1e3);function w(){for(var e=0;e{let n=document.createElement("script");n.async=r,o&&(n.defer=!0),i.forEach(e=>{n.setAttribute("data-"+e.key,e.value)}),s.forEach(e=>{n.setAttribute(e.key,e.value)}),n.src=e,document[t].appendChild(n)},a=((i=a||{}).Head="head",i);/*! js-cookie v3.0.5 | MIT */function l(e){for(var t=1;td.get(e)||!1,c=e=>{let t=window.location.search.match("[?&]"+e+"(?:&|$|=([^&]*))");return t?t[1]?decodeURIComponent(t[1]):"":null},h=e=>{let t=window.location.hash.match("[#&]"+e+"(?:&|$|=([^&]*))");return t?t[1]?decodeURIComponent(t[1]):"":null};function p(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}let f="#339933";var b=((s=b||{})[s.Advanced=0]="Advanced",s[s.None=1]="None",s[s.Standard=2]="Standard",s);let g=1,y=u("aditude_debug")||c("aditude_debug")||h("aditude_debug");y&&(g=2*("99"!=y));class m{setLabel(e,t=f){return this.label={text:e,color:t},this}tag(e,t="black"){return this.tempTag={text:e,color:t},this}clearTag(){this.tempTag=null}enable(e=2){return this.setLevel(e),this}setLevel(e){return this.level=e,this}isAdvanced(){return 0===this.level}isEnabled(){return 1!==this.level}advancedLog(...e){this.isAdvanced()&&this._sendLog("log",this._decorate(e,""))}log(...e){this.isEnabled()&&this._sendLog("log",this._decorate(e,""))}warn(...e){this.isEnabled()&&this._sendLog("warn",this._decorate(e,""))}error(...e){this._sendLog("error",this._decorate(e,""))}table(e=Array,t=null){this.isEnabled()&&console.table(e,t)}group(e,t){this.isEnabled()&&(console.group(e),t(this),console.groupEnd(),this.clearTag())}_sendLog(e,t){let r=[e,"log","debug","info"].find(e=>String(console[e])===`function ${e}() { [native code] }`)||e;console[r](...t)}_getElapsedTime(){if(!m.firstLogTime)return m.firstLogTime=Date.now(),"0ms";let e=Date.now()-m.firstLogTime;return`${e}ms`}_decorate(e,t=""){e=[].slice.call(e),t&&e.unshift(t);let r=[],o=[];if(this.isAdvanced()){let e=this._getElapsedTime();r.push(`%c[${e}]`),o.push("background: grey; color: white; font-size: 9px; padding: 1px 4px; border-radius: 0; margin-right: 1px;")}return r.push("%cCW"),o.push(i("#61B321")),this.label&&this.label.text.length>0&&(r.push("%c"+this.label.text),o.push(i(this.label.color))),this.tempTag&&(r.push("%c"+this.tempTag.text),o.push(i(this.tempTag.color))),e.unshift(...o),e.unshift(r.join("")),e;function i(e){return`display: inline-block; color: #fff; font-size: 9px; background: ${e}; padding: 1px 4px; border-radius: 0; margin-right: 1px;`}}constructor(e){p(this,"labelColor",void 0),p(this,"label",{text:"",color:f}),p(this,"level",g),p(this,"namespace",void 0),p(this,"tempTag",void 0),this.namespace=e}}p(m,"firstLogTime",null);let w={};var _=function(e="default"){return w[e]||(w[e]=new m(e)),w[e]};let v=new class{get isDisabled(){return"boolean"==typeof window.__RAVEN_ENABLED&&!1===window.__RAVEN_ENABLED}disableTracking(){window.__RAVEN_ENABLED=!1}getGlobal(){return window.Raven=window.Raven||{cmd:[]},window.Raven.cmd=window.Raven.cmd||[],window.Raven}setCustomParams(e){this.push(({config:t})=>{t.setCustom(e)})}setTudeMeta(e){this.push(({config:t})=>{t.setTudeMeta(e)})}recordPageview(){this.push(({events:e})=>{e.pageview()})}recordCustomEvent(e,t){this.push(({events:r})=>{r.sendCustomEvent(e,t)})}recordEvent(e,t){this.push(({events:r})=>{r.send(e,t)})}constructor(){var e,t;e="push",t=e=>{this.isDisabled||this.getGlobal().cmd.push(e)},e in this?Object.defineProperty(this,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):this[e]=t}};window.Raven=window.Raven||{cmd:[]};let R=_("analytics").setLabel("Analytics"),T=async()=>{v.disableTracking()};(async e=>{if(e.disableTrackingExplicitly)return R.log("Tracking explicitly disabled");let{raven:t="standalone"}=e,r="none",o=r&&["standalone","legacy"].includes(r)?r:t;if("legacy"===o){let t=`${e.publisherKeyCw}/${e.wrapper}`,r=new URL(`https://edge.aditude.io/wrapper/${t}/info.json`);try{let e=await fetch(r.toString());if(e.ok){let{p:t,a:r}=await e.json();t&&r||(_().advancedLog("publisher not configured for analytics"),T())}else throw Error(`${e.status} ${e.statusText}`)}catch(e){_().error("analytics config failed to load",e)}}else if("standalone"===o){if(!e.propertyId||""===e.propertyId||window.RavenLoaded)return;let{pbjsGlobals:t,propertyId:r,wrapper:o}=e;window.__RAVEN_ENABLED=!0,window.RavenLoaded=!0,window.Raven=window.Raven||{cmd:[]},window.Raven.initialConfig={globalParams:{wrapper:o},pbjsGlobals:t||["pbjs"],propertyId:r},n(`https://raven-edge.aditude.io/raven/${r}/library.js`,a.Head,!1,!1)}})({publisherKeyCw:"wordpress-2Pvwql52OT",propertyId:"wordpress-main-Uv94n",wrapper:"wordpress-longform"});var E="d5ac32e859ab1e26c3f186cb6feb62a2";class L extends Error{response;request;options;constructor(e,t,r){let o=e.status||0===e.status?e.status:"",i=e.statusText||"",s=`${o} ${i}`.trim();super(`Request failed with ${s?`status code ${s}`:"an unknown error"}: ${t.method} ${t.url}`),this.name="HTTPError",this.response=e,this.request=t,this.options=r}}class A extends Error{request;constructor(e){super(`Request timed out: ${e.method} ${e.url}`),this.name="TimeoutError",this.request=e}}let P=(()=>{let e=!1,t=!1,r="function"==typeof globalThis.Request;if("function"==typeof globalThis.ReadableStream&&r)try{t=new globalThis.Request("https://empty.invalid",{body:new globalThis.ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type")}catch(e){if(e instanceof Error&&"unsupported BodyInit type"===e.message)return!1;throw e}return e&&!t})(),C="function"==typeof globalThis.AbortController,x="function"==typeof globalThis.ReadableStream,S="function"==typeof globalThis.FormData,j=["get","post","put","patch","head","delete"],q={json:"application/json",text:"text/*",formData:"multipart/form-data",arrayBuffer:"*/*",blob:"*/*"},D=new TextEncoder().encode("------WebKitFormBoundaryaxpyiPgbbPti10Rw").length,k=Symbol("stop"),I={json:!0,parseJson:!0,stringifyJson:!0,searchParams:!0,prefixUrl:!0,retry:!0,timeout:!0,hooks:!0,throwHttpErrors:!0,onDownloadProgress:!0,onUploadProgress:!0,fetch:!0},U={method:!0,headers:!0,body:!0,mode:!0,credentials:!0,cache:!0,redirect:!0,referrer:!0,referrerPolicy:!0,integrity:!0,keepalive:!0,signal:!0,window:!0,dispatcher:!0,duplex:!0,priority:!0},N=e=>{if(!e)return 0;if(e instanceof FormData){let t=0;for(let[r,o]of e)t+=D,t+=new TextEncoder().encode(`Content-Disposition: form-data; name="${r}"`).length,t+="string"==typeof o?new TextEncoder().encode(o).length:o.size;return t}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength;if("string"==typeof e)return new TextEncoder().encode(e).length;if(e instanceof URLSearchParams)return new TextEncoder().encode(e.toString()).length;if("byteLength"in e)return e.byteLength;if("object"==typeof e&&null!==e)try{let t=JSON.stringify(e);return new TextEncoder().encode(t).length}catch{}return 0},B=(e,t)=>{let r=Number(e.headers.get("content-length"))||0,o=0;return 204===e.status?(t&&t({percent:1,totalBytes:r,transferredBytes:o},new Uint8Array),new Response(null,{status:e.status,statusText:e.statusText,headers:e.headers})):new Response(new ReadableStream({async start(i){let s=e.body.getReader();async function n(){let{done:e,value:a}=await s.read();if(e)return void i.close();t&&(o+=a.byteLength,t({percent:0===r?0:o/r,transferredBytes:o,totalBytes:r},a)),i.enqueue(a),await n()}t&&t({percent:0,transferredBytes:0,totalBytes:r},new Uint8Array),await n()}}),{status:e.status,statusText:e.statusText,headers:e.headers})},F=(e,t)=>{let r=N(e.body),o=0;return new Request(e,{duplex:"half",body:new ReadableStream({async start(i){let s=e.body instanceof ReadableStream?e.body.getReader():new Response("").body.getReader();async function n(){let{done:e,value:a}=await s.read();if(e){t&&t({percent:1,transferredBytes:o,totalBytes:Math.max(r,o)},new Uint8Array),i.close();return}o+=a.byteLength;let l=0===r?0:o/r;(rnull!==e&&"object"==typeof e,$=(...e)=>{for(let t of e)if((!O(t)||Array.isArray(t))&&void 0!==t)throw TypeError("The `options` argument must be an object");return H({},...e)},M=(e={},t={})=>{let r=new globalThis.Headers(e),o=t instanceof globalThis.Headers;for(let[e,i]of new globalThis.Headers(t).entries())o&&"undefined"===i||void 0===i?r.delete(e):r.set(e,i);return r};function G(e,t,r){return Object.hasOwn(t,r)&&void 0===t[r]?[]:H(e[r]??[],t[r]??[])}let W=(e={},t={})=>({beforeRequest:G(e,t,"beforeRequest"),beforeRetry:G(e,t,"beforeRetry"),afterResponse:G(e,t,"afterResponse"),beforeError:G(e,t,"beforeError")}),H=(...e)=>{let t={},r={},o={};for(let i of e)if(Array.isArray(i))Array.isArray(t)||(t=[]),t=[...t,...i];else if(O(i)){for(let[e,r]of Object.entries(i))O(r)&&e in t&&(r=H(t[e],r)),t={...t,[e]:r};O(i.hooks)&&(o=W(o,i.hooks),t.hooks=o),O(i.headers)&&(r=M(r,i.headers),t.headers=r)}return t},J=e=>j.includes(e)?e.toUpperCase():e,K={limit:2,methods:["get","put","head","delete","options","trace"],statusCodes:[408,413,429,500,502,503,504],afterStatusCodes:[413,429,503],maxRetryAfter:Number.POSITIVE_INFINITY,backoffLimit:Number.POSITIVE_INFINITY,delay:e=>.3*2**(e-1)*1e3},V=(e={})=>{if("number"==typeof e)return{...K,limit:e};if(e.methods&&!Array.isArray(e.methods))throw Error("retry.methods must be an array");if(e.statusCodes&&!Array.isArray(e.statusCodes))throw Error("retry.statusCodes must be an array");return{...K,...e}};var z=r(86964).Promise;async function Y(e,t,r,o){return new z((i,s)=>{let n=setTimeout(()=>{r&&r.abort(),s(new A(e))},o.timeout);o.fetch(e,t).then(i).catch(s).then(()=>{clearTimeout(n)})})}var X=r(86964).Promise;async function Q(e,{signal:t}){return new X((r,o)=>{function i(){clearTimeout(s),o(t.reason)}t&&(t.throwIfAborted(),t.addEventListener("abort",i,{once:!0}));let s=setTimeout(()=>{t?.removeEventListener("abort",i),r()},e)})}let Z=(e,t)=>{let r={};for(let o in t)o in U||o in I||o in e||(r[o]=t[o]);return r};var ee=r(86964).Promise;class et{static create(e,t){let r=new et(e,t),o=async()=>{if("number"==typeof r._options.timeout&&r._options.timeout>0x7fffffff)throw RangeError("The `timeout` option cannot be greater than 2147483647");await ee.resolve();let e=await r._fetch();for(let t of r._options.hooks.afterResponse){let o=await t(r.request,r._options,r._decorateResponse(e.clone()));o instanceof globalThis.Response&&(e=o)}if(r._decorateResponse(e),!e.ok&&r._options.throwHttpErrors){let t=new L(e,r.request,r._options);for(let e of r._options.hooks.beforeError)t=await e(t);throw t}if(r.request.bodyUsed||await r.request.body?.cancel(),r._options.onDownloadProgress){if("function"!=typeof r._options.onDownloadProgress)throw TypeError("The `onDownloadProgress` option must be a function");if(!x)throw Error("Streams are not supported in your environment. `ReadableStream` is missing.");return B(e.clone(),r._options.onDownloadProgress)}return e},i=r._options.retry.methods.includes(r.request.method.toLowerCase())?r._retry(o):o();for(let[e,o]of Object.entries(q))i[e]=async()=>{r.request.headers.set("accept",r.request.headers.get("accept")||o);let s=await i;if("json"===e){if(204===s.status||0===(await s.clone().arrayBuffer()).byteLength)return"";if(t.parseJson)return t.parseJson(await s.text())}return s[e]()};return i}request;abortController;_retryCount=0;_input;_options;constructor(e,t={}){if(this._input=e,this._options={...t,headers:M(this._input.headers,t.headers),hooks:W({beforeRequest:[],beforeRetry:[],beforeError:[],afterResponse:[]},t.hooks),method:J(t.method??this._input.method??"GET"),prefixUrl:String(t.prefixUrl||""),retry:V(t.retry),throwHttpErrors:!1!==t.throwHttpErrors,timeout:t.timeout??1e4,fetch:t.fetch??globalThis.fetch.bind(globalThis)},"string"!=typeof this._input&&!(this._input instanceof URL||this._input instanceof globalThis.Request))throw TypeError("`input` must be a string, URL, or Request");if(this._options.prefixUrl&&"string"==typeof this._input){if(this._input.startsWith("/"))throw Error("`input` must not begin with a slash when using `prefixUrl`");this._options.prefixUrl.endsWith("/")||(this._options.prefixUrl+="/"),this._input=this._options.prefixUrl+this._input}if(C){let e=this._options.signal??this._input.signal;this.abortController=new globalThis.AbortController,this._options.signal=e?AbortSignal.any([e,this.abortController.signal]):this.abortController.signal}if(P&&(this._options.duplex="half"),void 0!==this._options.json&&(this._options.body=this._options.stringifyJson?.(this._options.json)??JSON.stringify(this._options.json),this._options.headers.set("content-type",this._options.headers.get("content-type")??"application/json")),this.request=new globalThis.Request(this._input,this._options),this._options.searchParams){let e="string"==typeof this._options.searchParams?this._options.searchParams.replace(/^\?/,""):new URLSearchParams(this._options.searchParams).toString(),t=this.request.url.replace(/(?:\?.*?)?(?=#|$)/,"?"+e);(S&&this._options.body instanceof globalThis.FormData||this._options.body instanceof URLSearchParams)&&!(this._options.headers&&this._options.headers["content-type"])&&this.request.headers.delete("content-type"),this.request=new globalThis.Request(new globalThis.Request(t,{...this.request}),this._options)}if(this._options.onUploadProgress){if("function"!=typeof this._options.onUploadProgress)throw TypeError("The `onUploadProgress` option must be a function");if(!P)throw Error("Request streams are not supported in your environment. The `duplex` option for `Request` is not available.");this.request.body&&(this.request=F(this.request,this._options.onUploadProgress))}}_calculateRetryDelay(e){if(this._retryCount++,this._retryCount>this._options.retry.limit||e instanceof A)throw e;if(e instanceof L){if(!this._options.retry.statusCodes.includes(e.response.status))throw e;let t=e.response.headers.get("Retry-After")??e.response.headers.get("RateLimit-Reset")??e.response.headers.get("X-RateLimit-Reset")??e.response.headers.get("X-Rate-Limit-Reset");if(t&&this._options.retry.afterStatusCodes.includes(e.response.status)){let e=1e3*Number(t);Number.isNaN(e)?e=Date.parse(t)-Date.now():e>=Date.parse("2024-01-01")&&(e-=Date.now());let r=this._options.retry.maxRetryAfter??e;return ethis._options.parseJson(await e.text())),e}async _retry(e){try{return await e()}catch(r){let t=Math.min(this._calculateRetryDelay(r),0x7fffffff);if(this._retryCount<1)throw r;for(let e of(await Q(t,{signal:this._options.signal}),this._options.hooks.beforeRetry))if(await e({request:this.request,options:this._options,error:r,retryCount:this._retryCount})===k)return;return this._retry(e)}}async _fetch(){for(let e of this._options.hooks.beforeRequest){let t=await e(this.request,this._options);if(t instanceof Request){this.request=t;break}if(t instanceof Response)return t}let e=Z(this.request,this._options),t=this.request;return(this.request=t.clone(),!1===this._options.timeout)?this._options.fetch(t,e):Y(t,e,this.abortController,this._options)}}/*! MIT License © Sindre Sorhus */let er=e=>{let t=(t,r)=>et.create(t,$(e,r));for(let r of j)t[r]=(t,o)=>et.create(t,$(e,o,{method:r}));return t.create=e=>er($(e)),t.extend=t=>("function"==typeof t&&(t=t(e??{})),er($(e,t))),t.stop=k,t},eo=er();var ei=r(86964).Promise;let es={gdpr:{country:"GB",region:"ENG",city:"London",postalCode:"W1B"},ccpa:{country:"US",region:"CA",city:"San Francisco",postalCode:"94107"},none:{country:"US",region:"IL",city:"Chicago",postalCode:"60007"}},en="aditude_geo";if(c(en)){let t=c(en);es[t]&&(e=es[t])}let ea=!1,el=new ei(e=>{o=e});async function ed(r="https://geo-location.prebid.cloud/v1/geo"){if(e)return e;if(t||ea)return el;let i=window.localStorage.getItem("cwgl");if(i){let e=window.localStorage.getItem("cwglt");(c("aditude_nocache")||!e||Date.now()-parseInt(e)>36e5)&&(i=!1)}if(i)t=JSON.parse(i),o(t);else{ea=!0;try{let e=await eo.get(r||"https://geo-location.prebid.cloud/v1/geo",{timeout:3e3}).json();window.localStorage.setItem("cwgl",JSON.stringify(e)),window.localStorage.setItem("cwglt",JSON.stringify(Date.now())),t=e,o(t)}catch(e){_().error(e),o(t)}}return el}let eu=u("tude_dev")||c("tude_dev")||h("tude_dev");if(eu){let e=new URL(document.currentScript.src);if(eu&&e.pathname.match("prebid-load.js")&&!e.searchParams.has("testing")){let t=e.pathname,r=document.createElement("script");throw r.src=`${"stage"===eu?"https://d3g98hgqjqzwq5.cloudfront.net":"https://localhost:9000/static"}${t}?testing`.replace("/static/static/","/static/"),r.async=!1,document.currentScript.after(r),Error("prebid-load.js -- bailing to load script from another environment")}}let ec=document.currentScript;if(null==ec?void 0:ec.src){let e=new URL(ec.src);if(null==e?void 0:e.pathname){if(r.g.__tudeLoadedScripts=r.g.__tudeLoadedScripts||[],r.g.__tudeLoadedScripts.includes(e.pathname))throw Error(`attempted to load file multiple times: ${ec.src}`);r.g.__tudeLoadedScripts.push(e.pathname)}}let eh=(e="",t="")=>{let r="https://dn0qt3r0xannq.cloudfront.net";return(-1!==e.indexOf("vendor/")||-1!==t.indexOf("vendor/"))&&(r="https://dn0qt3r0xannq.cloudfront.net"),r+e+t};var ep=(e,t=!1)=>{let r=document.createElement("link");t&&(r.id=t),r.rel="stylesheet",r.type="text/css",r.href=e,r.media="all",document.getElementsByTagName("head")[0].appendChild(r)},ef=r(86964).Promise;function eb(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}let eg='"1.4.0"'.replace(/"/g,""),ey="Loader";_(ey).setLabel("Loader","red");var em=class{setForcedModules(e=[]){this.forcedModules=e}appendForcedModules(e=[]){this.forcedModules=[...this.forcedModules,...e]}forceEnablePrebidFork(){this._forceEnablePrebidFork=!0}forcePrebidVersion(e){this._forcePrebidVersion=e}getLibraryLocation(){return this.libraryFolder?this.publisherKey+"/"+this.libraryFolder:this.publisherKey}setLibraryFolder(e){this.libraryFolder=e}setPrebidBuild(e){this.dynamicLibrary=e,c("prebid_version_override")&&(this.dynamicLibrary.version=c("prebid_version_override"))}setDynamicLibrary(e,t){this.dynamicLibrary={version:e,modules:t}}setLoadRemoteConfig(e=!0){this.loadRemoteConfig=e}disableAnalytics(){this.checkForAnalytics=!1}enableAnalyticsExperiment(){this.checkForAnalytics=!0}disableLibrary(){this.hasLibrary=!1}setGeo(e=!0){this.geo=e}setGeoEndpoint(e="https://geo-location.prebid.cloud/v1/geo"){_(ey).advancedLog("Endpoint set: ",e),this.geoEndpoint=e}setGeoTimeout(e=500){this.geoTimeout=e}setWhitelistDomains(e){this.whitelistDomains=e}isDomainWhitelisted(){if(!this.whitelistDomains||0===this.whitelistDomains.length)return!0;let e=window.location.hostname.replace(/^www\./,"");return this.whitelistDomains.some(t=>t.replace(/^www\./,"")===e)}async getGeo(){let e=await ed(this.geoEndpoint);r.g._tudeGeo=e,_(ey).advancedLog("Global Geo Set",e)}setGlobalPbjsName(e){this.globalPbjsName=e,r.g._tudePbjsGlobal=this.globalPbjsName}setPublisherKey(e){this.publisherKey=e}setResourceVersion(e){this.version=e}setWrapper(e){this.wrapper=e}addPreset(e){e.forEach(e=>{this.addResource(e)})}addResource(e){this.resources[e.name]=e}getCurrentWrapperUrl(e,t=!0){let r="";return this.version&&t&&(r="?v="+this.version),eh(`/${this.publisherKey}/${this.wrapper}`,`/${e}`)+r}createCloudResource(e,t,r,o,i){let s="";this.version&&(s="?v="+this.version);let n={name:e,appendTo:a.Head,async:o,trigger:i,url:eh(`/${t}`,`/${r}`)+s};this.addResource(n)}async start(){if(_(ey).advancedLog("Loader starting at: ",Math.floor(performance.now()).toString()),!this.isDomainWhitelisted())return void _(ey).advancedLog("Domain not whitelisted, skipping loader");if(await this.maybeLoadRemoteConfig(),this.hasLibrary&&this.addLibrary(),this.addWrapper(),Object.keys(this.resources).reverse().forEach(e=>{try{let t=this.resources[e];if((!t.type||"js"===t.type)&&!document.querySelector(`link[rel="preload"][as="script"][href="${t.url}"]`)){let e=document.createElement("link");e.rel="preload",e.as="script",e.href=t.url,document.head&&document.head.appendChild(e)}}catch(e){}}),this.geo){_(ey).advancedLog("Fetching geo from loader with timeout: ",this.geoTimeout);let e=this.getGeo(),t=new ef(e=>setTimeout(e,this.geoTimeout));await ef.race([e,t])}Object.keys(this.resources).forEach(e=>{let t=this.resources[e];(void 0===t.trigger||!t.trigger||t.trigger())&&(void 0===t.type||"js"===t.type?n(this._createUrl(t.url),t.appendTo,t.async||!1,t.defer||!1,t.dataAttributes||[],t.attributes||[]):ep(this._createUrl(t.url),t.id))}),_(ey).advancedLog("Loader finished at: ",Math.floor(performance.now()).toString())}maybeAddDynamicLibrary(){if(this.dynamicLibrary){let{version:e,modules:t,fork:r=!1}=this.dynamicLibrary,o=this.globalPbjsName,i=new URL(`https://edge.aditude.io/prebid/${this._forcePrebidVersion||e}.js`);"pbjs"!==o&&i.searchParams.set("var",o),(r||this._forceEnablePrebidFork)&&i.searchParams.set("fork","1");let s=[...new Set([...t,...this.forcedModules,...this.mandatoryModules])];s.includes("aditude")&&E&&i.searchParams.set("v",E),s.forEach((e,t)=>{"cpmstarBidAdapter"===e&&(s[t]="cpmstarCustomBidAdapter")}),[].forEach(e=>{let t=s.indexOf(e);t>-1&&s.splice(t,1)});let n=window.btoa(JSON.stringify(s.sort()));i.searchParams.set("modules",n);let l={name:"library",appendTo:a.Head,async:!0,trigger:()=>(!window[o]||!window[o].getConfig||"function"!=typeof window[o].getConfig)&&!window[o+"LibraryLoaded"]&&(window[o+"LibraryLoaded"]=!0,!0),url:i.toString()};return this.addResource(l),!0}return!1}setupLoaderFromConfig(){var e,t,r;this.dynamicLibrary=null==(e=window.ADITUDE_WRAPPER_CONFIG)?void 0:e.PBJS_BUILD,this.addPreset((null==(t=window.ADITUDE_WRAPPER_CONFIG)?void 0:t.THIRD_PARTY_SCRIPTS)||[]);let o=null==(r=window.ADITUDE_WRAPPER_CONFIG)?void 0:r.PREBID_GLOBAL;"string"==typeof o&&""!==o.trim()&&this.setGlobalPbjsName(o.trim())}async maybeLoadRemoteConfig(){return"object"==typeof window.ADITUDE_WRAPPER_CONFIG?(this.setupLoaderFromConfig(),!0):!!this.loadRemoteConfig}addLibrary(){if(this.maybeAddDynamicLibrary())return;let e=this.getLibraryLocation();this.createCloudResource("library",e,"prebid-library.js",!0,()=>(!window[this.globalPbjsName]||!window[this.globalPbjsName].getConfig||"function"!=typeof window[this.globalPbjsName].getConfig)&&!window[this.globalPbjsName+"LibraryLoaded"]&&(window[this.globalPbjsName+"LibraryLoaded"]=!0,!0))}addWrapper(){this.createCloudResource("wrapper",this.publisherKey+"/"+this.wrapper,"prebid-wrapper.js",!1)}_createUrl(e){return e}constructor(e,t=eg){eb(this,"resources",{}),eb(this,"globalPbjsName","pbjs"),eb(this,"libraryFolder",void 0),eb(this,"dynamicLibrary",void 0),eb(this,"loadRemoteConfig",!1),eb(this,"publisherKey",void 0),eb(this,"hasLibrary",!0),eb(this,"version",'"1.4.0"'),eb(this,"wrapper",""),eb(this,"checkForAnalytics",!0),eb(this,"geo",!0),eb(this,"geoEndpoint","https://geo-location.prebid.cloud/v1/geo"),eb(this,"geoTimeout",500),eb(this,"whitelistDomains",[]),eb(this,"_forceEnablePrebidFork",!1),eb(this,"_forcePrebidVersion",!1),eb(this,"forcedModules",["gptPreAuction","sharedIdSystem","33acrossIdSystem","fabrickIdSystem","id5IdSystem","criteoIdSystem","pubProvidedIdSystem","unifiedIdSystem"]),eb(this,"mandatoryModules",["aditude"]),this.publisherKey=e,this.version=t}};let ew={name:"gpt",appendTo:a.Head,async:!0,url:"https://securepubads.g.doubleclick.net/tag/js/gpt.js",external:!0,trigger:()=>!window.googletag||!window.googletag.apiReady};var e_=JSON.parse('{"version":"9.19.0","modules":["33acrossBidAdapter","adagioBidAdapter","adyoulikeBidAdapter","appnexusBidAdapter","consentManagement","consentManagementUsp","enrichmentFpdModule","fabrickIdSystem","gdprEnforcement","gptPreAuction","gridBidAdapter","gumgumBidAdapter","id5IdSystem","ixBidAdapter","medianetBidAdapter","openxBidAdapter","prebidServerBidAdapter","priceFloors","pubmaticBidAdapter","rubiconBidAdapter","sharedIdSystem","smartadserverBidAdapter","sonobiBidAdapter","tripleliftBidAdapter","unifiedIdSystem"]}');let ev=new em("wordpress-2Pvwql52OT",!1);ev.addPreset([ew]),ev.addResource({name:"cleanio",appendTo:a.Head,async:!1,url:"//cadmus.script.ac/d14pdm1b7fi5kh/script.js"}),ev.setLibraryFolder("wordpress-longform"),ev.setWrapper("wordpress-longform"),ev.setPrebidBuild(e_),ev.setGlobalPbjsName("tudePbjs"),ev.start()}()}();