/* Copyright (c) 2008-2025, Quantcast Corp. https://www.quantcast.com */ !function(){"use strict";function e(){return(new Date).getTime()}function t(){return new Date}function n(e){var t=new Date(2e3,e,1,0,0,0,0),n=t.toUTCString(),r=new Date(n.substring(0,n.lastIndexOf(" ")-1));return t.getTime()-r.getTime()}function r(){return Math.round(2147483647*Math.random())}var o=/qcdbgc=1$/.test(window.location.toString());function i(e,t){if("undefined"!=typeof console){var n="ERROR"===e?" QuantJS ":" QuantJS ";console.log.apply(console,[n].concat([].slice.call(t)))}}function a(){for(var e=[],t=0;t=2||p>=1e4)},o=null,i=function(){o=Date.now()},a=function(){null!==o&&(p+=Date.now()-o,o=null),!d&&s.isEngaged()&&(t.__qc("push",{labels:"_qc.session_engagement",event:"refresh",qacct:r,__qc_use_beacon_api:!0}),d=!0)},"visible"===n.visibilityState&&i(),n.addEventListener("visibilitychange",function(){"hidden"===n.visibilityState?a():"visible"===n.visibilityState&&i()}),t.addEventListener("pagehide",a)},f={},h=function(e){var t=f[e];return t||(t=new p(window,document,e),f[e]=t,t)},g=function(e,t){var n;for(n=0;n-1&&((o=i.indexOf(";",r))<0&&(o=i.length),a=i.substring(r,o)),a):null};function _(e,t,n){e.addEventListener?e.addEventListener(t,n):"function"==typeof jQuery?jQuery(e).on(t,n):e.attachEvent&&e.attachEvent("on"+t,n)}!function(e){e.Allowed="1",e.Denied="0"}(d||(d={}));var S,b;!function(e){e.getTCData="getTCData",e.ping="ping",e.addEventListener="addEventListener",e.removeEventListener="removeEventListener"}(S||(S={})),function(e){e.getInAppTCData="getInAppTCData",e.getVendorList="getVendorList"}(b||(b={}));var x=[1,2,3,4,7,8,9,10],P=[1,2,3,4],E=[1,2,3,4],I="__tcfapiReturn";function R(e,t){var n=t.gdprApplies,r=t.purpose,o=t.vendor,i=o&&o.consents&&o.consents[11],a=o&&o.legitimateInterests&&o.legitimateInterests[11],c=t.publisher?t.publisher.restrictions:{};return!n||e.map(function(e){var t=!!r.consents&&r.consents[e],n=!!r.legitimateInterests&&r.legitimateInterests[e],o=c&&c[e]?c[e][11]:null;return!(0===o||(!i||!t||2===o||-1==P.indexOf(e)&&1!==o)&&(1===o||!a||!n||-1!=E.indexOf(e)||-1!=P.indexOf(e)&&2!==o))}).reduce(function(e,t){return e&&t},!0)}var O=function(t,n){var r;this.consent=function(o){var i,a;return void 0===r&&("function"==typeof n.__tcfapi?(a=n.__tcfapi,i=new Promise(function(e,t){a(S.addEventListener,2,function(n,r){if(r){var o=n.eventStatus;n.gdprApplies&&"useractioncomplete"!==o&&"tcloaded"!==o||e(n)}else t(n)})})):i=function(){var r={},o={};_(n,"message",function(e){var t=e.data;if(void 0!==t){if("string"==typeof t&&"{"==t[0])try{t=JSON.parse(t)}catch(e){return}if(Object.prototype.hasOwnProperty.call(t,I)){var n=t[I],i=n.callId,a=r[i];if(void 0===a)return;var c=n.returnValue;n.success?"addEventListener"===o[i]&&c.gdprApplies&&"useractioncomplete"!==c.eventStatus&&"tcloaded"!==c.eventStatus||a[0](c):a[1](c)}}});var i=t.locate("__tcfapiLocator");if(!i)return Promise.resolve({gdprApplies:!1});var a=e();return new Promise(function(e,t){var n;r[a]=[e,t],o[a]=S.addEventListener;var c=((n={}).__tcfapiCall={command:S.addEventListener,version:2,callId:a},n);i.postMessage(JSON.stringify(c),"*")})}(),r=i.then(function(e){var t,n=!1;return"boolean"==typeof e.gdprApplies?n=e.gdprApplies:"string"==typeof e.gdprApplies&&(n="false"!=e.gdprApplies),n?(o.gdpr="1",o.gdpr_consent=e.tcString,o.sf2=e.tcString&&!0!==(null===(t=e.specialFeatureOptins)||void 0===t?void 0:t[2])?d.Denied:d.Allowed):(o.gdpr=o.gdpr||"0",o.sf2=d.Allowed),R(x,e)}).catch(function(e){return s("tcf2",e),o.gdpr=o.gdpr||"0",!0})),r}};O.resolveConsent=R;var q=O,T="__gppReturn",L="addEventListener",j=function(){function t(e,t){this.consentPromise=null,this.windows=e,this.win=t}return t.prototype.consent=function(e){return this.consentPromise?this.consentPromise:(t="function"==typeof this.win.__gpp?this.addEventListenerViaAPI(this.win.__gpp,e):this.addEventListenerViaEvent(e),this.consentPromise=t,t);var t},t.prototype.cmpReady=function(e){return e&&"signalStatus"===e.eventName&&"ready"===e.data||e&&"listenerRegistered"===e.eventName&&!0===e.data&&"ready"===e.pingData.signalStatus},t.prototype.addEventListenerViaAPI=function(e,t){var n=this;return new Promise(function(r){e("addEventListener",function(e,o){if(n.cmpReady(e)){var i=e.pingData.gppString;t.gpp=i,t.gpp_sid=e.pingData.applicableSections.join(","),r(!0)}})})},t.prototype.addEventListenerViaEvent=function(t){var n=this,r=this.windows.locate("__gppLocator");if(!r)return Promise.resolve(!0);var o={},i={},a=e();return _(window,"message",function(e){var r=e.data;if(void 0!==r){if("string"==typeof r&&"{"==r[0])try{r=JSON.parse(r)}catch(e){return}if(Object.prototype.hasOwnProperty.call(r,T)){var a=r[T],c=a.callId,s=o[c];if(void 0===s)return;var u=a.returnValue;if(a.success){if(i[c]!==L)return;if(!n.cmpReady(u))return;var l=u.pingData.gppString;t.gpp=l,t.gpp_sid=u.pingData.applicableSections.join(","),s[0](!0)}else s[1]()}}}),new Promise(function(e,t){var n;o[a]=[e,t],i[a]=L;var c=((n={}).__gppCall={command:L,callId:a},n);r.postMessage(JSON.stringify(c),"*")})},t}(),D=j,C="_dlt=";function N(e){return"_qcbt:"+e}var A=function(){function e(e,t,n,r){void 0===r&&(r=window.fetch.bind(window)),this.localStorage=e,this.consentManager=t,this.identityStore=n,this.fetch=r}return e.prototype.getToken=function(e){var n=this;try{var r=JSON.parse(String(this.localStorage.getItem(N(e))));if(r){if(void 0!==r.expires&&new Date(1e3*r.expires)>t())return Promise.resolve(r);this.localStorage.removeItem(N(e))}}catch(e){}return this.consentManager.consent().then(function(t){if(!t)return Promise.reject(new Error("Consent not granted"));var r=new URL("https://pixel.quantserve.com/token"),o=n.identityStore.identifier(),i=n.consentManager.parameters,a=new URLSearchParams({a:e,fpa:o});return Object.keys(i).forEach(function(e){return a.append(e,i[e])}),r.search=a.toString(),n.fetch(r,{credentials:"include"}).then(function(e){return e.json()}).then(function(t){try{n.localStorage.setItem(N(e),JSON.stringify(t))}catch(e){}return t})})},e}(),U=new function(e,t){if(void 0===e)throw new Error("window many not be undefined");if(void 0===t)throw new Error("top may not be undefined");t=t?t.self:null,this.depth=0;var n=e.self;for(this.top=n;n!==t;){n=n.parent.self;try{n.location.href&&(this.url=n.location.href,this.top=n)}catch(e){}this.depth++}this.locate=function(n){for(var r=e;;){try{if(n in r.frames)return r}catch(e){}if(r===t)break;r=r.parent.self}}}(window,window.top),k=new function(e){var t={},n=function(){return Promise.all(e.map(function(e){return e.consent(t)})).then(function(e){return e.reduce(function(e,t){return e&&t},!0)})};this.consent=n,this.wrap=function(e){return function(){var t=this,r=arguments;return n().then(function(n){if(n)return e.apply(t,r)})}},this.parameters=t}([new function(t,n){var r={};this.consent=function(o){return function(){if("function"==typeof n.__uspapi){var o=n.__uspapi;return new Promise(function(e,t){o("getUSPData",1,function(n){n&&"string"==typeof n.uspString?e(n):t(n)})}).catch(function(e){return s("uspapi",e),!0})}var i=t.locate("__uspapiLocator");if(void 0===r&&(r={},_(n,"message",function(e){var t=e.data;if(null!=t){if("string"==typeof t&&"{"==t[0])try{t=JSON.parse(t)}catch(e){return}if(Object.prototype.hasOwnProperty.call(t,"__uspapiReturn")){var n=t.__uspapiReturn,o=n.callId,i=r[o];if(void 0===i)return;n.success?i[0](n.returnValue):i[1](n.returnValue)}}})),!i)return Promise.resolve(void 0);var a=e();return new Promise(function(e,t){r[a]=[e,t],i.postMessage({__uspapiCall:{command:"getUSPData",version:1,callId:a}},"*")})}().then(function(e){if(e&&"string"==typeof e.uspString){var t=e.uspString;return o.us_privacy=t,"Y"!=t[2]}return!0})}}(U,window),new q(U,window),new D(U,window)]),F=function(t){var n=t.domain||"",r=new Date(0).toUTCString(),o=new Date(e()+864e5).toUTCString(),i=n.split("."),a=n;try{t.cookie}catch(e){return n}for(var s=2;s<=i.length;s++){a=i.slice(-s).join(".");var u=C+"1; path=/; domain="+a+"; expires="+o;try{t.cookie=u}catch(e){return c.error(e),n}if(/_dlt=1\b/.test(t.cookie))return t.cookie=C+"; path=/; domain="+a+"; expires="+r,a}return t.cookie=C+"; path=/; domain="+a+"; expires="+r,n}(document),M=function(t,n,o){var i=0,a="",s=function(e){for(var t,n,r,o=(n=g(2166136261,t=e),r=g(3386659096,t),Math.round(Math.abs(n*r)/65536).toString(16)),i=0;io.expiry){try{t.localStorage.removeItem(n)}catch(e){}return null}return o.value}(t,m),a||(i=1,a=function(){if("undefined"!=typeof crypto&&"function"==typeof crypto.randomUUID){var t=crypto.randomUUID();if(t)return"P1-"+t}return"P0-"+r()+"-"+e()}())};return u(),{reload:u,persistIdentifier:function(){if(1===i&&!s){var r=[m,"=",a,"; expires=",new Date(e()+v).toUTCString(),"; path=/; domain=",o].join("");try{n.cookie=r}catch(e){}!function(t,n,r,o){var i={value:r,expiry:e()+o};try{t.localStorage.setItem(n,JSON.stringify(i))}catch(e){}}(t,m,a,v)}},removeIdentifier:function(){try{n.cookie=m+"=; path=/; expires=Thu, 01 Jan 1970 00:00:01 GMT;"}catch(e){c.error(e)}try{t.localStorage.removeItem(m)}catch(e){}},identifier:function(){return a},getFirstPartyIDString:function(e){return s||1===e?";fpan=u;fpa=":";fpan="+i+";fpa="+a},getExternalIDString:function(e){if(s||1===e)return"";var t=w(n,"_pubcid")||w(n,"_sharedID"),r=w(n,"_pubcid_optout");return!w(n,"_pbjs_id_optout")&&"1"!==r&&t?";pbc="+t:";pbc="},getDomain:function(){return o}}}(window,window.document,F),B=new A(function(e){try{return e.localStorage}catch(e){return{getItem:function(e){return null},setItem:function(e,t){},removeItem:function(e){}}}}(window),k,M,window.fetch.bind(window)),J=!1,V=[];function z(){for(J=!0;V.length>0;){var e=V.shift();e&&e()}}function Q(e){J?e():V.push(e)}document.readyState in{complete:!0,interactive:!0}&&(J=!0),document.addEventListener?(document.addEventListener("DOMContentLoaded",z,!1),window.addEventListener("load",z,!1)):document.attachEvent&&window.attachEvent&&(document.attachEvent("onreadystatechange",z),window.attachEvent("onload",z));var W=function(e,t){var n=null,r=[];Q(function(){n=e.head||e.getElementsByTagName("head")[0]});var o=function(e){var t=new Image;return t.src=e,t};return{image:function(e){return c.debug("Loading Image",e),new Promise(function(t,n){var i=o(e);r.push(i),i.onload=function(){t(i),r.shift(),delete i.onload,delete i.onerror},i.onerror=n})},beacon:function(e){t&&"function"==typeof t.sendBeacon?t.sendBeacon(e):o(e)},script:function(t){return new Promise(function(r,o){Q(function(){var i=function(t,n,r){var o=e.createElement("script");o.type="text/javascript",o.src=t;var i=function(){n(o),o.onreadystatechange=null,o.onload=null,o.onerror=null};return o.onload=i,o.onreadystatechange=function(){o.readyState in{loaded:1,complete:1}&&i()},o.onerror=r,o}(t,r,o);n&&(n.firstChild?n.insertBefore(i,n.firstChild):n.appendChild(i))})})}}},G=function(){return G=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0?fe().pixel.addToBatch(e):fe().pixel.enqueuePixel(e),"function"==typeof e.token_callback&&n&&(t=n,B.getToken(t)).then(e.token_callback).catch(function(){}),!1===fe().cstapled){fe().cstapled=!0;var r=new W(document,navigator).image;ee(fe().pcodesFound[0],window.fetch,r).catch(function(e){e!==Z&&a("cookieStapling",e&&e.message||String(e))})}}function Y(e){var t,n,r;e&&(Array.isArray(e)?null===(t=window._qevents)||void 0===t||t.push.apply(t,e):null===(n=window._qevents)||void 0===n||n.push(e),"function"==typeof e.push&&(e.push=null===(r=window._qevents)||void 0===r?void 0:r.push))}function H(e,t){if(e){var n=fe().defaultOptionsForPCodes[e];n&&(t=fe().pixel.mergeQEvents(t,n)),t&&t.qacct&&delete t.qacct,fe().defaultOptionsForPCodes[e]=t}}function $(){delete window._qevents}var X,Z="no consent",ee=function(e,t,n){return r=void 0,o=void 0,a=function(){return function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(c){return function(s){return function(c){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,c[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&c[0]?r.return:c[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,c[1])).done)return o;switch(r=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,r=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==c[0]&&2!==c[0])){a=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]=0},e.prototype.addProcessedPCode=function(e){this.hasRules(e)||this.pCodesWithRules.push(e)},e}(),oe=function(){function e(){this.EVENT_TYPE_RULE="rule"}return e.prototype.processConditions=function(e,t){for(var n=this,r=e&&e.conditions?e.conditions.length:0,o=function(r){var o=void 0,a=void 0;try{var c=function(o){e.flags[r]=!0,e.values[r]=o,n.evaluateRule(e,t)},u=e.conditions[r];"function"==typeof u?(o=u,a=[c]):(o=u[0],(a=u.slice(1)).splice(0,0,c)),o.apply(null,a)}catch(n){s("processRule",n,{pcode:e.pcode}),e.flags[r]=!0,e.values[r]=!1,i.evaluateRule(e,t)}},i=this,a=0;a1?e[o].slice(1):[]).concat(n),c=i.apply(null,a),u={qacct:t.pcode,event:this.EVENT_TYPE_RULE};for(var l in c)Object.prototype.hasOwnProperty.call(c,l)&&"qacct"!==l&&(u[l]=c[l]);r(u)}catch(e){s("evalRule",e,{pcode:t.pcode});continue}},e.prototype.andReducer=function(e){for(var t=(null==e?void 0:e.length)||0,n=0;n0?1:0,fe().pixel.flushBatch()},e.prototype.fetchRulesForNewPcodes=function(){for(var e=[],t=0,n=fe().pcodesFound;t0||"number"==t||"boolean"==t},le="q_pixel_fire";function de(){var e="webpage",o="load",i=0,a=["fpa","fpan"],c="pixel.quantserve.com",p="pixel.quantcount.com",f=[],g=0,v=new W(document,navigator),m=null,y=!1,w={q_pixel_fire:[]};function _(i,c){void 0===c&&(c=!1);var s,d=r(),p="",h="",v="",m="",y="1",w=!1;if(g=0,u(fe().api.qpixelsent)||(fe().api.qpixelsent=[]),u(i)&&(i.__qc_use_beacon_api&&(w=!0,delete i.__qc_use_beacon_api),s=function(t,n,r){var i,a,c=null;return n&&(c=n.qacct),c&&0!==c.length?(n=fe().rules.mergeRuleResult(c,n),delete fe().aggregatePixelBatch[c],a=fe().defaultOptionsForPCodes[c],u(i=fe().pcodeRulesOutcomes[c])||(i=X.UNKNOWN),function(t,n,r,i){n=n||{};var a=(t?t.media:n.media)||e,c=(t?t.event:n.event)||o;if("ad"===a&&(g=1),a===e&&c===o){for(var s=0;s=1e3)return encodeURIComponent(n);if(u(o)&&u(o.attributes)&&u(o.content)){var i=null===(e=o.attributes.getNamedItem("property"))||void 0===e?void 0:e.value,a=o.content;if(null!=i&&i.length>3&&"og:"===i.substring(0,3)){n.length>0&&(n+=",");var c=a.length>80?80:a.length;n+=l(i.substring(3,i.length))+"."+l(a.substring(0,c))}}}return encodeURIComponent(n)}(),E=s.fpa,I=s.fpan,R=function(e){for(var t,n=[],r=0;r0?(r="a",t=f[0].clientId,(y=f.sort(function(e,t){return parseInt(t.sessionId)-parseInt(e.sessionId)}).map(function(e){return"".concat((t=e.targetId,t.startsWith(I)?t.slice(I.length):t),"_").concat(e.sessionId);var t})).length>15&&(y.length=15),n=y.join(",")):(r="c",t=function(e){if(!e)return"";var t=e.match(/_ga=GA\d\.\d\.(\d+\.\d+)/);return t?t[1]:""}(document.cookie),n=function(e){var t=function(e){var t=[];if(!e)return t;for(var n=/_ga_([^=]+)=GS1\.\d\.(\d+)\./g,r=n.exec(e);null!=r;)t.push({m:r[1],s:r[2]}),r=n.exec(e);return t}(e).concat(function(e){var t=[];if(!e)return t;for(var n=/_ga_([^=]+)=GS2\.\d\.([^;\s]+)/g,r=n.exec(e);null!=r;){for(var o=r[1],i=0,a=r[2].split("$");i0&&c.startsWith("s")){var s=c.substring(1);t.push({m:o,s:s})}}r=n.exec(e)}return t}(e)).sort(function(e,t){return parseInt(t.s)-parseInt(e.s)}).map(function(e){return"".concat(e.m,"_").concat(e.s)});return t.length>15&&(t.length=15),t.join(",")}(document.cookie))}catch(e){}var u=t?";_gacid=".concat(t):"",l=n?";_gasid=".concat(n):"",d=r?";_gam=".concat(r):"",p=i.getFirstPartyIDString(g),v=i.getExternalIDString(g);return"".concat(p).concat(v).concat(o).concat(u).concat(l).concat(d)}var y;return""}(),(_=k.parameters,["1"===_.gdpr?";gdpr=1;gdpr_consent=".concat(_.gdpr_consent):";gdpr=0",_.us_privacy?";us_privacy=".concat(_.us_privacy):"",_.gpp?";gpp=".concat(_.gpp):"",_.gpp_sid?";gpp_sid=".concat(_.gpp_sid):""].join("")),y?";mdl=".concat(d):""].join(""),x=function(e){return ce()?"prreqcroab.icu":e}(m),P=S(x,b);return e.useBeaconAPI?v.beacon(P):v.image(P).catch(function(){return ce()?v.image(S(m,b+";_ret=1")).catch(function(){return null}):(x==p&&s("qcount-fire",new Error("fire failed on quantcount")),null)}).then(function(e){e&&3===e.width?(i.removeIdentifier(),a&&a.clear()):m===c&&(i.persistIdentifier(),a&&a.persistSession()),function(){try{for(var e=new CustomEvent("q_pixel_fire",{detail:{url:P}}),t=0;t0)return Promise.resolve(e)}return Promise.reject("gtag targetIds not found")}function O(e,t){return new Promise(function(n,r){!function(){for(var e=[],t=0;t0||x()},addToBatch:function t(n){var r,a,c,s,l;if(u(n)){var d=fe().aggregatePixelBatch;for(s in n){if("string"==typeof n[s]){r=n.event||o,a=n.media||e,"rule"!==r&&r!==o||a!==e&&"ad"!==a?fe().rulesjsInFlight>0?d["solo_"+i++]=n:_(n):(l=n.qacct,n.qacct=l,c=(c=d[l])?E(c,n):n,d[l]=c);break}"object"==typeof n[s]&&null!=n[s]&&t(n[s])}}},doPush:function(e,t){_(e,t)},handleAddEventListener:function(e,t){Object.prototype.hasOwnProperty.call(w,e)&&w[e].push(t)},sanitizeObject:function(e){var t,n;if(e&&"object"===function(e){return{}.toString.call(e).match(/\s([a-zA-Z]+)/)[1].toLowerCase()}(e))for(n=0;n0?fe().pcodesFound[0]:null})},hasRules:function(){return fe().rules.hasRules.apply(fe().rules,arguments)},defaults:H,__qc:function(){return!0}}[e].apply(null,[].slice.call(arguments,1))}catch(e){return s("api",e,{pcode:fe().pcodesFound.length>0?fe().pcodesFound[0]:null}),!1}},this.api.v=2,this.api.qpixelsent=[],window.quantserve=window.quantserve||te,this.api.quantserve=te,this.api}function fe(){return se}void 0!==window.Promise&&(void 0===window.__qc&&(window.__qc=new function(e,t,n){try{return new pe(e,t,n)}catch(e){return s("construct",e),e}}(window,window.document,window.navigator)),window.__qc("init")),window.__qc}();