/*! * privacy-standalone v0.77.0 built on Thu, 01 Sep 2022 04:08:05 GMT * */!function(){"use strict";var e="#onetrust-banner-sdk",t="#onetrust-pc-sdk",n="#ot-cookie-settings",o={categories:"groups=C0001:1,C0002:1,C0003:1,C0004:1",categoriesDefault:"C0001",configEndpoint:"https://cdn.cookielaw.org/consent/",id:"onetrust",location:"feds_location",locationURL:"https://geo2.adobe.com/json/?callback=",url:"https://cdn.cookielaw.org/scripttemplates/otSDKStub.js",events:{privacyConsent:"adobePrivacy:PrivacyConsent",privacyConsentCustom:"adobePrivacy:PrivacyCustom",privacyReject:"adobePrivacy:PrivacyReject",oneTrustReady:"feds.events.oneTrustReady"},cookies:{consent:"OptanonConsent",interaction:"OptanonAlertBoxClosed"},selectors:{banner:e,bannerAccept:"".concat(e," #onetrust-accept-btn-handler"),bannerClose:"#ot-banner-close",bannerCustomize:"".concat(e," #onetrust-pc-btn-handler"),bannerIcon:"#ot-cookie-button",bannerReject:"".concat(e," #onetrust-reject-all-handler"),preferenceCenter:t,preferenceCenterAccept:"".concat(t," .enable-all-btn"),preferenceCenterAlwaysActive:"".concat(t," #first-party-cookies-domain"),preferenceCenterCheckboxes:"".concat(t," .switch-checkbox"),preferenceCenterClose:"".concat(t," .pc-close-button"),preferenceCenterConfirm:"".concat(t," .pc-save-and-close"),preferenceCenterFaqs:"".concat(t," .ot-general-question"),preferenceCenterReject:"".concat(t," .disable-all-btn"),toastNotification:n,toastNotificationClose:"".concat(n," .cs-close"),toastNotificationManage:"".concat(n," .ot-sdk-show-settings")}},r=function(e,t){var n;"function"==typeof window.CustomEvent?n=new window.CustomEvent(e,{detail:t}):(n=document.createEvent("CustomEvent")).initCustomEvent(e,!1,!1,t),window.dispatchEvent(n)},i=function(e){return"object"==typeof e&&!Array.isArray(e)&&null!==e},a=function(e,t){return!!((i(e)||Array.isArray(e))&&"string"==typeof t&&!!t.length)&&Object.prototype.hasOwnProperty.call(e,t)},c=function(e,t){var n,o,r,i;if(e&&"object"==typeof e&&!Array.isArray(e)&&"string"==typeof t&&Object.keys(e).length&&t.length)for(r=(n=t.split(".")).length,i=e,o=0;oe.length)&&(t=e.length);for(var n=0,o=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:{},n=this;f(this,e);var o=new URLSearchParams(window.location.search);this.module=t.control,this.debug=o.getAll(g).some((function(e){return e===n.module||"*"===e})),this.debug&&this.log(v),window.feds=window.feds||{},window.feds.debug=window.feds.debug||[],window.feds.debug.push(this.module)}var t,n,o;return t=e,n=[{key:"message",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n-1,r=!a(e,"async")||"boolean"==typeof e.async,i=!a(e,"crossorigin")||"boolean"==typeof e.crossorigin,c=!a(e,"data")||!s(e.data),u=!a(e,"successCallback")||l(e.successCallback),d=!a(e,"errorCallback")||l(e.errorCallback),f=!a(e,"id")||"string"==typeof e.id&&!!e.id.length,p=!a(e,"where")||"string"==typeof e.where&&!!e.where.length&&document.querySelector(e.where)instanceof HTMLElement,y=!a(e,"when")||"string"==typeof e.when&&!!e.when.length;return t&&n&&o&&r&&i&&c&&u&&d&&f&&p&&y},m.generateResource=function(e){var t;return e.type===m.scriptType?((t=document.createElement("script")).type="text/javascript",t.src=e.path,a(e,"async")&&(t.async=e.async),a(e,"crossorigin")&&!0===e.crossorigin&&t.setAttribute("crossorigin",e.crossorigin),a(e,"data")&&!s(e.data)&&Object.keys(e.data).forEach((function(n){t.setAttribute("data-".concat(n),e.data[n])}))):e.type===m.styleType&&((t=document.createElement("link")).type="text/css",t.rel="stylesheet",t.href=e.path),a(e,"id")&&(null===document.querySelector("#".concat(e.id))?t.id=e.id:w.error("element id is already used",t)),t};var C=function(e){if(!s(e)&&m.isConfigValid(e))return new Promise((function(t,n){var o=m.generateResource(e);o.addEventListener("load",(function(){t(o),a(e,"successCallback")&&e.successCallback(o)})),o.addEventListener("error",(function(t){n(t),a(e,"errorCallback")&&e.errorCallback(t)})),a(e,"when")?window.addEventListener(e.when,(function(){u(o,{target:e.where})})):u(o,{target:e.where})}))},b=function(){return new Promise((function(e){var t=function(){var e=window.sessionStorage.getItem(o.location);if(null!==e&&""!==e)try{e=JSON.parse(e),a(e,"country")&&""!==e.country||(e=null)}catch(t){e=null}return e}();if(null!==t)e(t);else{var n="privacy_".concat(Date.now()).concat(Math.round(1e5*Math.random()));window[n]=function(t){var r,i,a,c,s=(i={},a=(r=t).country,c=r.state,a&&(i.country=a),c&&(i.state=c),i);window.sessionStorage.setItem(o.location,JSON.stringify(s)),e(s),delete window[n]},C({path:"".concat(o.locationURL).concat(n),type:"script"}).catch((function(){e({})}))}}))};function k(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n=0;o-=1)if("string"==typeof(r=n[o])&&r.length&&e===(r=r.split(/=(.+)/))[0]){if("boolean"==typeof t&&t)return i=S(r,2)[1];i=window.decodeURIComponent(r[1])}return i},E=function(){var e=document.querySelector('[script$="/privacy.js"]');if(e){var t=document.createElement("a");return t.href=e.src,"www.adobe.com"===t.host}return!1},T=function(e,t){for(t=e="";e++<36;t+=51*e&52?(15^e?8^Math.random()*(20^e?16:4):4).toString(16):"-");return t},L=new h({control:"privacy"}),O=function(e,t){var n=!1;if("string"==typeof e&&""!==e){var o="11dd9af9-1455-4159-bb5e-0b1fdf039f76:".concat(E()?"prod":"dev"),r="https://sstats.adobe.com/ee/v1/interact?configId=".concat(o,"&requestId=").concat(T()),a="".concat(window.location.protocol,"//").concat(window.location.host).concat(window.location.pathname),s={};l(c(window,"OneTrust.getGeolocationData"))&&(s=window.OneTrust.getGeolocationData());var u=c(window,"fedsConfig.privacy.otDomainId"),d={xdm:{web:{webPageDetails:{name:a,URL:a},webInteraction:{type:"other",name:e}},_adobe_corpnew:{consentTracking:{activeGroups:window.adobePrivacy.activeCookieGroups().toString(),activeGroupsArray:window.adobePrivacy.activeCookieGroups(),domainID:u,continent:s.continent||"",country:s.country||"",state:s.state||"",stateName:s.stateName||"",city:s.city||"",zipcode:s.zipcode||"",timezone:s.timezone||""}}}};try{d.xdm.timestamp=(new Date).toISOString()}catch(e){}void 0!==t&&(d.xdm._adobe_corpnew.consentTracking.type=t);var f=function(e){if(!n){e&&(d.xdm.identityMap={ECID:[{id:e}]});var t=new window.XMLHttpRequest;t.open("POST",r,!0),t.setRequestHeader("Content-Type","text/plain"),t.withCredentials=!1,t.send(JSON.stringify({events:[d]})),n=!0,L.log("analytics data",d)}};if(l(c(window,"_satellite.getVisitorId"))){var p=window._satellite.getVisitorId();if(i(p)&&l(p.getMarketingCloudVisitorID)){var y=p.getMarketingCloudVisitorID(f);y&&f(y)}else f()}else{var g=A("AMCV_9E1005A551ED61CA0A490D45%40AdobeOrg");"string"==typeof g&&g.length&&"string"==typeof(g=(g=g.split("MCMID|"))[1])&&g.length?f(g=(g=g.split("|"))[0]):f()}}},P=function(){O("choice","custom")},x=function(){O("choice","enable")},I=function(){O("showBanner")},j=function(){O("closeModal")},D=function(){},R=function(){O("choice","disable")},q=function(e,t){var n;if(!e||!t)return null;if(l(window.Element.prototype.matches))n=e.matches(t);else{n=(e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector||function(e){var t=(this.document||this.ownerDocument).querySelectorAll(e),n=t.length;do{n-=1}while(n>=0&&t.item(n)!==this);return n>-1}).apply(e,[t])}return n},M=function(e,t){var n,o=e;if(!o||!t)return null;if(l(window.Element.prototype.closest))n=o.closest(t);else for(;o&&1===o.nodeType;){if(q(o,t)){n=o;break}o=o.parentNode}return n},U=function(e){var t=e,n=t.split("."),o=n.length;return o>2&&(t="".concat(n[o-2],".").concat(n[o-1]),2===n[o-2].length&&2===n[o-1].length&&(t="".concat(n[o-3],".").concat(t))),t},N=function(e){return!!(e&&e instanceof HTMLElement&&(e.offsetWidth||e.offsetHeight||e.getClientRects().length)&&"hidden"!==window.getComputedStyle(e).getPropertyValue("visibility"))},z={ar:"تفضيلات Cookie",bg:"Предпочитания за бисквитки",cs:"Předvolby pro soubory cookie",da:"Cookie-indstillinger ",de:"Cookie-Einstellungen",en:"Cookie preferences",es:"Preferencias sobre cookies",et:"Cookie eelistused",fi:"Cookie-asetukset",fr:"Préférences en matière de cookies",he:"העדפות לקובצי Cookie",hu:"Cookie-beállítások",it:"Preferenze sui cookie",ja:"Cookieの環境設定",ko:"Cookie 환경 설정",lt:"Slapukų nuostatos",lv:"Cookie preferences",nl:"Cookievoorkeuren",no:"Cookie-innstillinger",pl:"Preferencje dotyczące plików cookie",pt:"Preferencias sobre cookies","pt-br":"Preferências de cookies",ro:"Preferințe privind cookie-urile",ru:"Настройки cookie",sk:"Preferencie používania súborov cookie",sl:"Nastavitve piškotkov",sv:"Cookie-inställningar ",tr:"Çerez tercihleri",uk:"Налаштування файлів cookie",zh:"Cookie 偏好设置","zh-hk":"Cookie 偏好設定","zh-hans":"Cookie 偏好设置","zh-hant":"Cookie 偏好設定","zh-tw":"Cookie 偏好設定"};z.default=z.en;var H=z,B=function(e,t,n,o){var r,i,a,c,l="";"string"==typeof e&&e.length&&"string"==typeof document.cookie&&(l+="boolean"==typeof o&&o?"".concat(e,"=").concat(t):"".concat(window.encodeURIComponent(e),"=").concat(window.encodeURIComponent(t)),s(n)||("string"==typeof(r=n.path)&&r.length&&(l+="; path=".concat(r)),(i=n.expiration)instanceof Date&&(l+="; expires=".concat(i.toUTCString())),"string"==typeof(a=n.domain)&&a.length&&(l+="; domain=".concat(a)),"string"==typeof(c=n.sameSite)&&c.length&&(l+="; Samesite=".concat(c))),document.cookie=l)};function G(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n ".concat(o.selectors.toastNotification))},W=function(){var e=Y();e&&(e.blur(),e.classList.remove("show"),e.removeAttribute("tabindex"),e.style.removeProperty("outline"))},X=function(){!function(){if(!(Y()instanceof HTMLElement)){var e=document.createElement("div");e.setAttribute("id",o.selectors.toastNotification.replace("#","")),e.classList.add(o.selectors.toastNotification.replace("#","")),e.appendChild(document.createRange().createContextualFragment('\n
\n
\n
\n
\n
\n
\n \n
\n
\n
\n x\n
\n
\n
')),document.body.appendChild(e)}}();var e=Y();e.setAttribute("tabindex",0),e.style.setProperty("outline",0),e.classList.add("show"),e.focus(),setTimeout((function(){W()}),1e4);var t=document.querySelector(o.selectors.bannerIcon);t&&t.parentNode.removeChild(t)},Q=function(){document.querySelector(o.selectors.preferenceCenterConfirm).style.setProperty("display","none")},Z=function(){var e=document.querySelectorAll(o.selectors.preferenceCenterCheckboxes);Array.prototype.forEach.call(e,(function(e){e&&(e.checked?e.parentElement.classList.add("checked"):e.parentElement.classList.remove("checked"))}))},ee=!1,te=function(){ee||($().then((function(){J()||(!function(){var e=document.querySelector(o.selectors.banner),t=document.querySelector(o.selectors.bannerClose),n=document.querySelector(o.selectors.bannerIcon);e&&(t||e.insertAdjacentHTML("beforeend","
")),(t=document.querySelector(o.selectors.bannerClose)).addEventListener("click",(function(){e.classList.remove("slide-up"),e.classList.add("slide-down"),n||(e.parentElement.insertAdjacentHTML("beforeend","
")),(n=document.querySelector(o.selectors.bannerIcon)).addEventListener("click",(function(){e.classList.remove("slide-down"),e.classList.add("slide-up"),n.classList.remove("show")}))),n.classList.add("show")})))}(),I());var e=document.querySelector(o.selectors.bannerCustomize);e&&e.addEventListener("click",(function(){D()}))})),window.addEventListener("click",(function(e){N(document.querySelector(o.selectors.preferenceCenter))&&(Z(),function(e){var t=document.querySelector(o.selectors.preferenceCenterAlwaysActive);if(t){t.innerHTML=window.location.hostname;var n=M(t,"li");if(n){n.classList.add("always-active");var r=M(e,".category-item");if(r){var i=r.querySelector(".category-header"),a=r.querySelector(".ot-cookie-description"),c=document.querySelector("#vendors-list-title");if(i&&c){var s=i.innerHTML;a&&(s+="")),c.innerHTML=s}}}}}(e.target)),(M(e.target,o.selectors.bannerAccept)||M(e.target,o.selectors.preferenceCenterAccept))&&(!function(){try{window.OneTrust.AllowAll()}catch(e){V.log("OneTrust is not available")}Q(),Z(),K()}(),X(),x()),M(e.target,o.selectors.preferenceCenterConfirm)&&(e.target,Q(),K(),X(),P()),(M(e.target,o.selectors.bannerReject)||M(e.target,o.selectors.preferenceCenterReject))&&(!function(){try{window.OneTrust.RejectAll(),window.OneTrust.Close()}catch(e){V.log("OneTrust is not available")}Q(),Z(),K()}(),X(),R()),M(e.target,o.selectors.preferenceCenterFaqs)&&function(e){var t=function(e,t){try{var n=e.parentElement.querySelector("#".concat(e.getAttribute("aria-controls")));t?(e.parentElement.classList.add("opened"),e.setAttribute("aria-expanded","true"),n.setAttribute("aria-hidden","false"),n.style.setProperty("display","block")):(e.parentElement.classList.remove("opened"),e.setAttribute("aria-expanded","false"),n.setAttribute("aria-hidden","true"),n.style.setProperty("display","none"))}catch(e){V.log("Could not find active item")}},n=document.querySelectorAll(o.selectors.preferenceCenterFaqs);Array.prototype.forEach.call(n,(function(n){if(n===e){var o="true"===n.getAttribute("aria-expanded");t(n,!o)}else t(n,!1)}))}(e.target),M(e.target,o.selectors.preferenceCenterCheckboxes)&&function(){var e=[],t=F()[0].sort(),n=document.querySelectorAll(o.selectors.preferenceCenterCheckboxes);Array.prototype.forEach.call(n,(function(t){t.checked&&e.push(t.getAttribute("data-optanongroupid"))})),e=e.sort();var r=document.querySelector(o.selectors.preferenceCenterConfirm);JSON.stringify(e)!==JSON.stringify(t)?r.style.setProperty("display","inline-block"):r.style.setProperty("display","none")}(),M(e.target,o.selectors.preferenceCenterClose)&&j(),M(e.target,o.selectors.toastNotificationClose)&&W(),M(e.target,o.selectors.toastNotificationManage)&&(W(),re())})),ee=!0)},ne=function(){var e=document&&document.documentElement&&document.documentElement.lang,t=!1;return e&&e.length&&!0===c(window,"fedsConfig.privacy.documentLanguage")&&(t=!0),t},oe=function(){var e=ne();V.log("Use page language to render Banner and Preference Center",e),C({path:o.url,type:"script",id:o.id,crossorigin:!0,data:{"domain-script":c(window,"fedsConfig.privacy.otDomainId"),"document-language":e}})},re=function(){te();var e=c(window,"OneTrust.ToggleInfoDisplay");l(e)?(e(),Z(),D()):(oe(),$().then((function(){var e=c(window,"OneTrust.ToggleInfoDisplay");l(e)&&(e(),Z(),D())})))},ie={bindEvents:te,getConfiguration:function(e){return window.fetch("".concat(o.configEndpoint).concat(e,"/").concat(e,".json")).then((function(e){return e.json()})).catch((function(){}))},getConsent:F,hasExistingConsent:J,injectCSS:function(){var e=document.createElement("style");document.head.appendChild(e),e.sheet.insertRule("#onetrust-banner-sdk.bottom { bottom: 0! important }")},loadOnClick:function(){window.addEventListener("click",(function(e){var t=c(window,"fedsConfig.privacy.footerLinkSelector");t&&M(e.target,t)&&(e.preventDefault(),re())}))},loadSDK:oe,onBannerLoad:$,setButtonText:function(){var e=function(t){if(t){if(H[t])return H[t];if(-1!==t.indexOf("-"))return e(t.substr(0,2))}return H.default},t=function(){var t=document.querySelector(c(window,"fedsConfig.privacy.footerLinkSelector"));if(t){var n=window.navigator.language||window.navigator.userLanguage;ne()&&(n=document.documentElement.lang),t.innerText=e(n.toLowerCase())}};"loading"===document.readyState?document.addEventListener("readystatechange",(function e(){t(),document.removeEventListener("readystatechange",e)})):t()},setImplicitConsent:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=o.categories,n=new Date((new Date).setFullYear((new Date).getFullYear()+1)),r="TEST"===e.ScriptType,i=!0===c(e,"TenantFeatures.CookiesSameSiteNone")?"None; Secure":"Lax",a=r?void 0:".".concat(U(window.location.hostname));B(o.cookies.consent,t,{path:"/",domain:a,expiration:n,sameSite:i},!0),B(o.cookies.interaction,n.toISOString(),{path:"/",domain:a,expiration:n,sameSite:i},!0)},showPreferenceCenter:re,triggerConsentEvent:K};function ae(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:{},t=c(window,"fedsConfig.privacy");if(s(t))se.log("Configuration is missing, cannot initialize Privacy");else{(!a(e,"setButtonText")||a(e,"setButtonText")&&!0===e.setButtonText)&&ie.setButtonText(),ye(),ge(),ve();var n=new URLSearchParams(window.location.search).get("skipConsent");if("true"===n)return r(o.events.privacyReject),se.log("".concat(o.events.privacyReject," dispatched")),void se.log("Stop execution for Privacy logic");if(ie.hasExistingConsent())ie.loadOnClick(),ie.triggerConsentEvent();else{var i=c(window,"fedsConfig.privacy.otDomainId");Promise.all([b(),ie.getConfiguration(i)]).then((function(e){var t=ce(e,2),n=t[0],o=t[1];!function(e,t){if(s(e)||s(t))return se.log("Location or configuration are empty, fallback to loading OneTrust"),!0;var n=c(t,"RuleSet");if(!n)return!1;var o=n.filter((function(t){return-1!==t.Countries.indexOf(e.country.toLowerCase())&&!t.Global})),r=!s(o[0]);return se.log("Active rule:",o[0]),se.log("Is GDPR enforced: ".concat(r)),r}(n,o)?(ie.setImplicitConsent(o),ie.triggerConsentEvent()):(ie.injectCSS(),ie.loadSDK(),ie.bindEvents()),ie.loadOnClick()})).catch((function(){se.log("Could not retrieve user location or OneTrust configuration")}))}}},me=(o.events,function(){return{events:o.events,activeCookieGroups:le,hasUserProvidedConsent:ue,hasUserProvidedCustomConsent:de,loadResource:C,loadOneTrust:pe,showConsentPopup:fe,showPreferenceCenter:ie.showPreferenceCenter}});window.adobePrivacy=me(),he()}();