UNPKG

@jumpgroup/avacy-banner

Version:

oil.js Opt-In Layer for consent management based on the IAB TCF Standard

1 lines 371 kB
/*! 2.24.3 */!function(e){function t(t){for(var n,r,i=t[0],a=t[1],s=0,l=[];s<i.length;s++)r=i[s],o[r]&&l.push(o[r][0]),o[r]=0;for(n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n]);for(c&&c(t);l.length;)l.shift()()}var n={},o={4:0};function r(t){if(n[t])return n[t].exports;var o=n[t]={i:t,l:!1,exports:{}};return e[t].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.e=function(e){var t=[],n=o[e];if(0!==n)if(n)t.push(n[2]);else{var i=new Promise(function(t,r){n=o[e]=[t,r]});t.push(n[2]=i);var a=document.getElementsByTagName("head")[0],s=document.createElement("script");s.charset="utf-8",s.timeout=120,r.nc&&s.setAttribute("nonce",r.nc),s.src=function(e){return r.p+""+e+".chunk.js"}(e);var c=setTimeout(function(){l({type:"timeout",target:s})},12e4);function l(t){s.onerror=s.onload=null,clearTimeout(c);var n=o[e];if(0!==n){if(n){var r=t&&("load"===t.type?"missing":t.type),i=t&&t.target&&t.target.src,a=new Error("Loading chunk "+e+" failed.\n("+r+": "+i+")");a.type=r,a.request=i,n[1](a)}o[e]=void 0}}s.onerror=s.onload=l,a.appendChild(s)}return Promise.all(t)},r.m=e,r.c=n,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})},r.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="/",r.oe=function(e){throw console.error(e),e};var i=window.oilJsonp=window.oilJsonp||[],a=i.push.bind(i);i.push=t,i=i.slice();for(var s=0;s<i.length;s++)t(i[s]);var c=a;r(r.s=369)}([function(e,t){var n=e.exports={version:"2.5.7"};"number"==typeof __e&&(__e=n)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_LANG="en",t.OIL_SPEC={CMP_ID:297,CMP_VERSION:2,LATEST_CONSENT_STRING_VERSION:2,IS_SERVICE_SPECIFIC:!0,SUPPORT_OOB:!1},t.ADDITIONAL_CONSENT_VERSION="1~",t.OIL_CONFIG={ATTR_CONFIG_VERSION:"config_version",ATTR_POLICY_VERSION:"policy_version",ATTR_ACTIVATE_POI:"poi_activate_poi",ATTR_HUB_ORIGIN:"poi_hub_origin",ATTR_HUB_PATH:"poi_hub_path",ATTR_PUBLIC_PATH:"publicPath",ATTR_PREVIEW_MODE:"preview_mode",ATTR_COOKIE_EXPIRES_IN_DAYS:"cookie_expires_in_days",ATTR_POI_GROUP_NAME:"poi_group_name",ATTR_ADVANCED_SETTINGS:"advanced_settings",ATTR_CLOSE_WITHOUT_CONSENTS:"close_without_consents",ATTR_HIDE_INTRO_ON_SCROLL:"hide_intro_on_scroll",ATTR_REJECT_ALL:"reject_all",ATTR_LOGO_URL:"logo_url",ATTR_IMAGE_CPC_URL:"image_cpc_url",ATTR_LOCALE:"locale",ATTR_LOGIN_STATUS:"login_status",ATTR_CPC_TYPE:"cpc_type",ATTR_TIMEOUT:"timeout",ATTR_LOCALE_URL:"locale_url",ATTR_IAB_VENDOR_LIST_URL:"iabVendorListUrl",ATTR_CUSTOM_PURPOSES:"customPurposes",ATTR_CUSTOM_VENDOR_LIST_URL:"customVendorListUrl",ATTR_IAB_VENDOR_BLACKLIST:"iabVendorBlacklist",ATTR_IAB_VENDOR_WHITELIST:"iabVendorWhitelist",ATTR_SHOW_LIMITED_VENDORS_ONLY:"show_limited_vendors_only",ATTR_ADVANCED_SETTINGS_PURPOSES_DEFAULT:"advanced_settings_purposes_default",ATTR_DEFAULT_TO_OPTIN:"default_to_optin",ATTR_GDPR_APPLIES_GLOBALLY:"gdpr_applies_globally",ATTR_GDPR_APPLIES:"gdpr_applies",ATTR_REQUIRE_OPTOUT_CONFIRM:"require_optout_confirm",ATTR_INFO_BANNER_ONLY:"info_banner_only",ATTR_SUPPRESS_COOKIES:"suppress_cookies",ATTR_AUTO_LANGUAGE:"auto_language",ATTR_LANGUAGE:"language",ATTR_LANGUAGES_LIST:"languages",ATTR_VISUAL_CONFIGURATION:"visual_configuration",ATTR_ADDITIONAL_CONSENT_LIST_URL:"additionalConsentUrl",ATTR_ATP_WHITELIST:"atpWhitelist",ATTR_DEVICE_ENVIRONMENT:"deviceEnvironment",ATTR_NATIVE_PUBLISHER:"publisher",ATTR_USE_STACKS:"useStacks",ATTR_USE_LEGINT:"use_legint",ATTR_AVACY_DEMO_STATUS:"demo_status",ATTR_TCF_PURPOSE_ONE_TREATMENT:"tcf_purpose_one_treatment",ATTR_CLEAR_ON_VERSION_UPDATE:"clear_consents_on_version_update",ATTR_CONSENT_SOLUTION_URL:"consent_solution_url",ATTR_VENDOR_ON_LEGAL_SCOPE:"activate_vendors_on_legal_scope_selections"},t.OIL_CONFIG_CPC_TYPES={CPC_TYPE_STANDARD:"standard",CPC_TYPE_TABS:"tabs"},t.OIL_CONFIG_DEFAULT_VERSION=0,t.OIL_POLICY_DEFAULT_VERSION=0,t.EVENT_NAME_OPT_IN="oil_optin_done",t.EVENT_NAME_CLOSE_BANNER_BUTTON_CLICKED="oil_close_banner_button_clicked",t.EVENT_NAME_OPT_IN_BUTTON_CLICKED="oil_optin_done_button_clicked",t.EVENT_NAME_SOI_OPT_IN="oil_soi_optin_done",t.EVENT_NAME_POI_OPT_IN="oil_poi_optin_done",t.EVENT_NAME_OPT_OUT="oil_optout_done",t.EVENT_NAME_AS_PRIVACY_SELECTED="oil_as_cpc_privacy_selected",t.EVENT_NAME_ADVANCED_SETTINGS="oil_click_advanced_settings",t.EVENT_NAME_TIMEOUT="oil_hide_layer",t.EVENT_NAME_COMPANY_LIST="oil_click_company_list",t.EVENT_NAME_THIRD_PARTY_LIST="oil_click_thirdparty_list",t.EVENT_NAME_BACK_TO_MAIN="oil_click_back_to_main",t.EVENT_NAME_NO_COOKIES_ALLOWED="oil_no_cookies_allowed",t.EVENT_NAME_OIL_SHOWN="oil_shown",t.EVENT_NAME_HAS_OPTED_IN="oil_has_optedin",t.PRIVACY_MINIMUM_TRACKING=0,t.PRIVACY_FULL_TRACKING=1,t.POI_FALLBACK_NAME="fallback",t.POI_FALLBACK_GROUP_NAME="group_name",t.POI_PAYLOAD="payload",t.OIL_PAYLOAD_PRIVACY="p",t.OIL_PAYLOAD_VERSION="v",t.OIL_PAYLOAD_LOCALE_VARIANT_NAME="lvn",t.OIL_PAYLOAD_LOCALE_VARIANT_VERSION="lvv",t.OIL_PAYLOAD_CUSTOM_PURPOSES="cp",t.OIL_PAYLOAD_CUSTOM_VENDORLIST_VERSION="cvl",t.OIL_PAYLOAD_CUSTOM_VENDORLIST="cvlist",t.OIL_PAYLOAD_CONFIG_VERSION="cv",t.OIL_PAYLOAD_POLICY_VERSION="pv",t.OIL_PAYLOAD_ADDITIONAL_CONSENT_STRING="atp",t.DATAQA_PRIVACY_PAGE="oil-PrivacyPage",t.JS_CLASS_BUTTON_CLOSE_BANNER="as-js-close-banner",t.JS_CLASS_BUTTON_OPTIN="as-js-optin",t.JS_CLASS_BUTTON_OILBACK="as-js-oilback",t.JS_CLASS_BUTTON_PROCEED="as-js-proceed",t.JS_CLASS_BUTTON_CANCEL="as-js-cancel",t.JS_CLASS_BUTTON_ADVANCED_SETTINGS="as-js-advanced-settings",t.JS_CLASS_BUTTON_REJECT_ALL="as-js-reject-all",t.CSS_CLASS_OPTOUT_DIALOG="as-oil-optout-confirm",t.DATA_CONTEXT_YES="YES",t.DATA_CONTEXT_CANCEL="CANCEL",t.DATA_CONTEXT_PROCEED="PROCEED",t.DATA_CONTEXT_ADVANCED_SETTINGS="ADVANCEDSETTINGS",t.DATA_CONTEXT_REJECT_ALL="REJECTALL",t.DATA_CONTEXT_BACK="BACK",t.OIL_GLOBAL_OBJECT_NAME="AS_OIL",t.MANAGED_TAG_IDENTIFIER="as-oil",t.MANAGED_TAG_IDENTIFIER_ATTRIBUTE="data-managed",t.MANAGED_TAG__ATTRIBUTES={PURPOSES_ATTRIBUTE:"data-purposes",LEGINT_ATTRIBUTE:"data-legints",SPECIAL_FEATURES_ATTRIBUTE:"data-special-features",CUSTOM_VENDOR_ATTRIBUTE:"data-custom-vendor",IAB_VENDOR_ATTRIBUTE:"data-iab-vendor"}},function(e,t,n){var o=n(7),r=n(0),i=n(21),a=n(22),s=n(29),c=function(e,t,n){var l,u,d,f=e&c.F,p=e&c.G,_=e&c.S,h=e&c.P,v=e&c.B,g=e&c.W,m=p?r:r[t]||(r[t]={}),b=m.prototype,y=p?o:_?o[t]:(o[t]||{}).prototype;for(l in p&&(n=t),n)(u=!f&&y&&void 0!==y[l])&&s(m,l)||(d=u?y[l]:n[l],m[l]=p&&"function"!=typeof y[l]?n[l]:v&&u?i(d,o):g&&y[l]==d?function(e){var t=function(t,n,o){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,o)}return e.apply(this,arguments)};return t.prototype=e.prototype,t}(d):h&&"function"==typeof d?i(Function.call,d):d,h&&((m.virtual||(m.virtual={}))[l]=d,e&c.R&&b&&!b[l]&&a(b,l,d)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,e.exports=c},function(e,t,n){var o=n(92)("wks"),r=n(70),i=n(7).Symbol,a="function"==typeof i;(e.exports=function(e){return o[e]||(o[e]=a&&i[e]||(a?i:r)("Symbol."+e))}).store=o},function(e,t,n){var o=n(99)("wks"),r=n(59),i=n(9).Symbol,a="function"==typeof i;(e.exports=function(e){return o[e]||(o[e]=a&&i[e]||(a?i:r)("Symbol."+e))}).store=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.logError=function(){((0,o.isDev)()||(0,r.isVerboseCookieSet)())&&window.console&&s(window.console.error,arguments)},t.logInfo=function(){((0,o.isDev)()||(0,r.isVerboseCookieSet)())&&window.console&&s(window.console.info,arguments)},t.logWarn=function(){((0,o.isDev)()||(0,r.isVerboseCookieSet)())&&window.console&&s(window.console.warn,arguments)},t.logPreviewInfo=function(){((0,o.isDev)()||(0,i.isPreviewMode)()||(0,r.isPreviewCookieSet)()||(0,r.isVerboseCookieSet)())&&s(window.console.info,arguments)};var o=n(12),r=n(16),i=n(6),a="OIL: ";function s(e,t){window.console||(window.console={}),window.console.log||(window.console.log=function(){});var n=[a].concat(Array.prototype.slice.call(t));if(e)try{e.apply(window.console,n)}catch(t){try{e(c(n))}catch(e){}}else window.console.log(c(n))}function c(e){for(var t="",n=0;n<e.length;n++)t+=e[n];return t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=u(n(46));t.getFullConfiguration=function(){var e=l.default;return e.languages[e.language]=s.default,e.visual_configuration=c.default,(0,a.mergeDeep)(e,d())},t.getConfigValue=p,t.getConfigVersion=_,t.getPolicyVersion=function(){return p(r.OIL_CONFIG.ATTR_POLICY_VERSION,l.default[r.OIL_CONFIG.ATTR_POLICY_VERSION])},t.isPreviewMode=function(){return p(r.OIL_CONFIG.ATTR_PREVIEW_MODE,l.default[r.OIL_CONFIG.ATTR_PREVIEW_MODE])},t.isPoiActive=function(){return p(r.OIL_CONFIG.ATTR_ACTIVATE_POI,l.default[r.OIL_CONFIG.ATTR_ACTIVATE_POI])},t.getHubOrigin=h,t.getHubPath=v,t.getPublicPath=g,t.getLocaleUrl=m,t.getIabVendorListDomain=function(){return p(r.OIL_CONFIG.ATTR_IAB_VENDOR_LIST_URL,l.default[r.OIL_CONFIG.ATTR_IAB_VENDOR_LIST_URL])},t.getIabVendorBlacklist=function(){return p(r.OIL_CONFIG.ATTR_IAB_VENDOR_BLACKLIST,l.default[r.OIL_CONFIG.ATTR_IAB_VENDOR_BLACKLIST])},t.getCustomVendorListUrl=function(){return p(r.OIL_CONFIG.ATTR_CUSTOM_VENDOR_LIST_URL,l.default[r.OIL_CONFIG.ATTR_CUSTOM_VENDOR_LIST_URL])},t.getAdditionalConsentListUrl=function(){return p(r.OIL_CONFIG.ATTR_ADDITIONAL_CONSENT_LIST_URL,l.default[r.OIL_CONFIG.ATTR_ADDITIONAL_CONSENT_LIST_URL])},t.getAtpWhitelist=function(){return p(r.OIL_CONFIG.ATTR_ATP_WHITELIST,l.default[r.OIL_CONFIG.ATTR_ATP_WHITELIST])},t.getRequiredStacks=function(){return p(r.OIL_CONFIG.ATTR_USE_STACKS,l.default[r.OIL_CONFIG.ATTR_USE_STACKS])},t.getVendorOnLegalScope=function(){return p(r.OIL_CONFIG.ATTR_VENDOR_ON_LEGAL_SCOPE,l.default[r.OIL_CONFIG.ATTR_VENDOR_ON_LEGAL_SCOPE])},t.getIabVendorWhitelist=function(){return p(r.OIL_CONFIG.ATTR_IAB_VENDOR_WHITELIST,l.default[r.OIL_CONFIG.ATTR_IAB_VENDOR_WHITELIST])},t.setIabVendorBlacklist=function(e){f(r.OIL_CONFIG.ATTR_IAB_VENDOR_BLACKLIST,e)},t.setIabVendorWhitelist=function(e){f(r.OIL_CONFIG.ATTR_IAB_VENDOR_WHITELIST,e)},t.setAutoLang=function(e){f(r.OIL_CONFIG.ATTR_AUTO_LANGUAGE,e)},t.getPoiGroupName=function(){return p(r.OIL_CONFIG.ATTR_POI_GROUP_NAME,l.default[r.OIL_CONFIG.ATTR_POI_GROUP_NAME])},t.getTcfPurposeOneTreatment=function(){return p(r.OIL_CONFIG.ATTR_TCF_PURPOSE_ONE_TREATMENT,l.default[r.OIL_CONFIG.ATTR_TCF_PURPOSE_ONE_TREATMENT])},t.getClearOnVersionUpdate=function(){return p(r.OIL_CONFIG.ATTR_CLEAR_ON_VERSION_UPDATE,l.default[r.OIL_CONFIG.ATTR_CLEAR_ON_VERSION_UPDATE])},t.getCookieExpireInDays=function(){return b(p(r.OIL_CONFIG.ATTR_COOKIE_EXPIRES_IN_DAYS,l.default[r.OIL_CONFIG.ATTR_COOKIE_EXPIRES_IN_DAYS]))},t.checkMinExpireInDays=b,t.getLocaleVariantName=y,t.autoChangeLanguage=E,t.autoLanguage=T,t.getLanguage=function(){return A(y())},t.getLanguageFromLocale=A,t.getLanguageFromConfigObject=L,t.getHubLocation=function(){return h()+v()},t.getPoiListDirectory=function(){var e,t=h();return-1!==(e=t).indexOf("/",e.length-"/".length)?t.replace(/\/$/,"/poi-lists"):t+"/poi-lists"},t.resetConfiguration=function(){(0,a.setGlobalOilObject)("CONFIG",null)},t.getCustomPurposes=O,t.getCustomPurposeIds=function(){return O().map(function(e){return e.id})},t.isMobileEnvironment=function(){return"native"===p(r.OIL_CONFIG.ATTR_DEVICE_ENVIRONMENT,l.default[r.OIL_CONFIG.ATTR_DEVICE_ENVIRONMENT])},t.getNativePublisher=function(){return p(r.OIL_CONFIG.ATTR_NATIVE_PUBLISHER,l.default[r.OIL_CONFIG.ATTR_NATIVE_PUBLISHER])},t.getAdvancedSettingsPurposesDefault=function(){return p(r.OIL_CONFIG.ATTR_ADVANCED_SETTINGS_PURPOSES_DEFAULT,l.default[r.OIL_CONFIG.ATTR_ADVANCED_SETTINGS_PURPOSES_DEFAULT])},t.getDefaultToOptin=function(){return p(r.OIL_CONFIG.ATTR_DEFAULT_TO_OPTIN,l.default[r.OIL_CONFIG.ATTR_DEFAULT_TO_OPTIN])},t.getLocale=w,t.getLoginStatus=function(){return!!window[r.OIL_GLOBAL_OBJECT_NAME]&&window[r.OIL_GLOBAL_OBJECT_NAME].login_status},t.setLocale=function(e){f(r.OIL_CONFIG.ATTR_LOCALE,e)},t.gdprApplies=function(){return p(r.OIL_CONFIG.ATTR_GDPR_APPLIES_GLOBALLY,l.default[r.OIL_CONFIG.ATTR_GDPR_APPLIES_GLOBALLY])||p(r.OIL_CONFIG.ATTR_GDPR_APPLIES,l.default[r.OIL_CONFIG.ATTR_GDPR_APPLIES])},t.demoActive=function(){return p(r.OIL_CONFIG.ATTR_AVACY_DEMO_STATUS,l.default[r.OIL_CONFIG.ATTR_AVACY_DEMO_STATUS])},t.setGdprApplies=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];f(r.OIL_CONFIG.ATTR_GDPR_APPLIES,e)},t.getShowLimitedVendors=function(){return p(r.OIL_CONFIG.ATTR_SHOW_LIMITED_VENDORS_ONLY,l.default[r.OIL_CONFIG.ATTR_SHOW_LIMITED_VENDORS_ONLY])},t.isInfoBannerOnly=I,t.suppressCookies=S,t.isAmpModeActivated=function(){return I()&&S()},t.getConsentSolutionUrl=function(){return p(r.OIL_CONFIG.ATTR_CONSENT_SOLUTION_URL,l.default[r.OIL_CONFIG.ATTR_CONSENT_SOLUTION_URL])};var r=n(1),i=n(5),a=n(12),s=u(n(125)),c=u(n(157)),l=u(n(158));function u(e){return e&&e.__esModule?e:{default:e}}function d(){if(!(0,a.getGlobalOilObject)("CONFIG")){var e=document.querySelector('script[type="application/configuration"]#oil-configuration');null===e&&(0,i.logInfo)("Using default config"),(0,a.setGlobalOilObject)("CONFIG",function(e){var t={};try{e&&e.text&&(t=JSON.parse(e.text),(0,i.logInfo)("Parsed config",t))}catch(e){(0,i.logError)("Error config",e)}return t}(e)),(0,a.setGlobalOilObject)("CONFIG_ATTRIBUTES",r.OIL_CONFIG),_()||(0,i.logError)('Your configuration is faulty - it must contain a "config_version" property. See the oil.js documentation for details.'),(t=w())&&"string"!=typeof t||void 0!==m()?t&&(0,a.isObject)(t)&&(t.localeId||(0,i.logError)('Your configuration is faulty - "locale" object misses "localeId" property. See the oil.js documentation for details.'),t.version||0===t.version||(0,i.logError)('Your configuration is faulty - "locale" object misses "version" property. See the oil.js documentation for details.')):(0,i.logError)("Incorrect or missing locale parameter found. Please review documentation on how to set the locale object in your configuration. Using default locale."),g()&&(n.p=g())}var t;return(0,a.getGlobalOilObject)("CONFIG")}function f(e,t){d()[e]=t}function p(e,t){var n=d();return n&&void 0!==n[e]?n[e]:t}function _(){return p(r.OIL_CONFIG.ATTR_CONFIG_VERSION,l.default[r.OIL_CONFIG.ATTR_CONFIG_VERSION])}function h(){var e=p(r.OIL_CONFIG.ATTR_HUB_ORIGIN,l.default[r.OIL_CONFIG.ATTR_HUB_ORIGIN]);return e?"/"===e||-1!==e.indexOf("http")?e:location.protocol+e:null}function v(){return p(r.OIL_CONFIG.ATTR_HUB_PATH,l.default[r.OIL_CONFIG.ATTR_HUB_PATH])}function g(){var e=p(r.OIL_CONFIG.ATTR_PUBLIC_PATH,l.default[r.OIL_CONFIG.ATTR_PUBLIC_PATH]);return e&&"/"!==e.substr(-1)&&(e+="/"),e}function m(){return p(r.OIL_CONFIG.ATTR_LOCALE_URL,l.default[r.OIL_CONFIG.ATTR_LOCALE_URL])}function b(e){return e<183&&(e=183),(0,i.logInfo)("Cookie expires in days:",e),e}function y(){var e=w();return e||(e="enEN_01"),e&&(0,a.isObject)(e)?e.localeId?e.localeId:"enEN_01":e}function E(){var e=document.documentElement.lang;return e?e.substring(0,2):"en"}function T(){return p(r.OIL_CONFIG.ATTR_AUTO_LANGUAGE,l.default[r.OIL_CONFIG.ATTR_AUTO_LANGUAGE])}function A(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:r.DEFAULT_LANG).substring(0,2)}function L(){return T()?E():C(p(r.OIL_CONFIG.ATTR_LANGUAGES_LIST,l.default[r.OIL_CONFIG.ATTR_LANGUAGES_LIST]),p(r.OIL_CONFIG.ATTR_LANGUAGE,l.default[r.OIL_CONFIG.ATTR_LANGUAGE]))}function O(){return p(r.OIL_CONFIG.ATTR_CUSTOM_PURPOSES,l.default[r.OIL_CONFIG.ATTR_CUSTOM_PURPOSES])}function w(){var e=p(r.OIL_CONFIG.ATTR_LANGUAGES_LIST,l.default[r.OIL_CONFIG.ATTR_LANGUAGES_LIST]);if(!e||(0,o.default)(e).length>0){var t=L();t=C(e,t),f(r.OIL_CONFIG.ATTR_LOCALE,e[t])}return p(r.OIL_CONFIG.ATTR_LOCALE,s.default)}function C(e,t){return e?(0,o.default)(e).includes(t)?t:l.default[r.OIL_CONFIG.ATTR_LANGUAGE]:r.DEFAULT_LANG}function I(){return p(r.OIL_CONFIG.ATTR_INFO_BANNER_ONLY,l.default[r.OIL_CONFIG.ATTR_INFO_BANNER_ONLY])}function S(){return p(r.OIL_CONFIG.ATTR_SUPPRESS_COOKIES,l.default[r.OIL_CONFIG.ATTR_SUPPRESS_COOKIES])}},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t,n){"use strict";function o(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),o(n(293)),o(n(294)),o(n(295)),o(n(296))},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t,n){"use strict";function o(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),o(n(164)),o(n(297)),o(n(165)),o(n(166)),o(n(298)),o(n(299)),o(n(118)),o(n(167)),o(n(300)),o(n(301))},function(e,t,n){e.exports={default:n(259),__esModule:!0}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OilVersion=void 0;var o=d(n(111)),r=d(n(86)),i=d(n(11));t.isProd=function(){return!0},t.isDev=function(){return!1},t.getOrigin=p,t.sendEventToHostSite=function(e){window.postMessage(e,p()),window.AS_OIL.eventCollection.push({name:e,timestamp:(new Date).getTime()}),(0,a.logInfo)("Sent postmessage event: "+e)},t.tagManagerEvents=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"page_load",o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0;o&&(t.consentData=o);var r=[],s=[],c=[],d=[],f=[],p=[],_=[];i.default.all([(0,l.loadCustomVendorList)(),t.consentData]).then(function(o){var i=o[1];i.purposeConsents&&(0,u.forEach)(i.purposeConsents.set_,function(e){r.push(e)}),i.purposeLegitimateInterests&&(0,u.forEach)(i.purposeLegitimateInterests.set_,function(e){s.push(e)}),i.specialFeatureOptins&&(0,u.forEach)(i.specialFeatureOptins.set_,function(e){c.push(e)}),t.customVendorList&&(0,u.forEach)(t.customVendorList,function(e){d.push(+e)}),t.customVendorList&&l.cachedCustomVendorList.vendors&&(0,u.forEach)(t.customVendorList,function(e){l.cachedCustomVendorList.vendors[e].purposes.every(function(e){return r.includes(e)})&&_.push({name:l.cachedCustomVendorList.vendors[e].name,id:l.cachedCustomVendorList.vendors[e].id})}),i.vendorConsents&&(0,u.forEach)(i.vendorConsents.set_,function(e){f.push(e)}),i.vendorConsents&&i&&(0,u.forEach)(t.consentData.vendorConsents.set_,function(e){i.gvl.vendors[e]&&i.gvl.vendors[e].purposes.every(function(e){return r.includes(e)})&&p.push({name:i.gvl.vendors[e].name,id:i.gvl.vendors[e].id})});var h=new CustomEvent("avacy_consent",{detail:{trigger:n,optin:e,purposes:r,legitimateInterests:s,specialFeatures:c,customVendors:d,iabVendors:f,iabVendorsWithConsent:p,customVendorsWithConsent:_}});(0,a.logInfo)("Sending event.detail at "+n,h.detail),window.dispatchEvent(h)})},t.removeMessageListener=function(e){g(b,e,!1)},t.registerMessageListener=function(e){v(m,e,!1)},t.getClientTimestamp=function(){return Date.now||(Date.now=function(){return(new Date).getTime()}),Date.now()},t.arrayContains=function(e,t){for(var n=e.length,o=0;o<n;o++)if(e[o]===t)return!0;return!1},t.arrayContainsArray=function(e,t){if(!e||!t)return!1;for(var n={},o=0;o<e.length;o++)n[e[o]]||(n[e[o]]=0),n[e[o]]++;for(var r=0;r<t.length;r++)if(!n[t[r]]||--n[t[r]]<0)return!1;return!0},t.setGlobalOilObject=function(e,t){window[s.OIL_GLOBAL_OBJECT_NAME]||(window[s.OIL_GLOBAL_OBJECT_NAME]={}),window[s.OIL_GLOBAL_OBJECT_NAME][e]=t},t.getGlobalOilObject=function(e){return window[s.OIL_GLOBAL_OBJECT_NAME]?window[s.OIL_GLOBAL_OBJECT_NAME][e]:void 0},t.getLocaleVariantVersion=function(){var e=(0,c.getLocale)();return e&&e.version?e.version:0},t.fetchJsonData=function(e){return new i.default(function(t,n){var o=new XMLHttpRequest;(0,a.logInfo)("Fetching data from url: "+e),o.open("GET",e),o.onreadystatechange=function(){if(o.readyState===this.DONE)if(200===o.status)t(JSON.parse(o.responseText));else{var r=void 0;if(0!==o.status){var i=JSON.parse(o.responseText);r=new Error(i.errorMessage)}else r=new Error("Connection error occurred while fetching JSON data from "+e+"!");n(r)}},o.send()})},t.isObject=y,t.mergeDeep=function e(t){for(var n=arguments.length,i=Array(n>1?n-1:0),a=1;a<n;a++)i[a-1]=arguments[a];if(!i.length)return t;var s=i.shift();if(y(t)&&y(s))for(var c in s)y(s[c])?(t[c]||(0,r.default)(t,(0,o.default)({},c,{})),e(t[c],s[c])):(0,r.default)(t,(0,o.default)({},c,s[c]));return e.apply(void 0,[t].concat(i))};var a=n(5),s=n(1),c=n(6),l=n(20),u=n(17);function d(e){return e&&e.__esModule?e:{default:e}}var f=n(356);function p(){return window.location.origin||(window.location.origin=window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"")),window.location.origin}var _=window.addEventListener?"addEventListener":"attachEvent",h=window.removeEventListener?"removeEventListener":"removeEvent",v=window[_],g=window[h],m="attachEvent"===_?"onmessage":"message",b="removeEvent"===h?"onmessage":"message";function y(e){return e instanceof Object&&e.constructor===Object}t.OilVersion={get:function(){return f.version},getLatestReleaseVersion:function(){return"2.24.3"}}},function(e,t,n){var o=n(19),r=n(126),i=n(88),a=Object.defineProperty;t.f=n(15)?Object.defineProperty:function(e,t,n){if(o(e),t=i(t,!0),o(n),r)try{return a(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){e.exports=!n(28)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OIL_RETRY_NAME=void 0;var o=w(n(47)),r=w(n(27)),i=w(n(310)),a=w(n(48)),s=w(n(46)),c=w(n(11)),l=w(n(313)),u=w(n(316));t.getOilDomainCookieName=function(){return W()},t.setSessionCookie=R,t.setDomainCookie=N,t.getOilCookie=k,t.getSoiCookie=function(){return Y().then(function(e){return k(e).then(function(t){var n;return n=t&&!0===t.opt_in?t:e.defaultCookieContent,(0,h.getClearOnVersionUpdate)()&&!(0,O.isCookieStillValid)(n)?e.defaultCookieContent:n})})},t.setSoiCookieWithPoiCookieData=function(e){return new c.default(function(t,n){c.default.all([(0,b.loadVendorListAndCustomVendorList)(),Y()]).then(function(n){var o=n[1],r=void 0,i=e.configVersion||o.defaultCookieContent.configVersion,a=e.policyVersion||o.defaultCookieContent.policyVersion,s=e.addtlConsent||o.defaultCookieContent.addtlConsent;if(e.consentString)r=e.consentString;else{var c=o.defaultCookieContent.consentData;c.setPurposesAllowed(e.consentData.allowedPurposeIds),c.setVendorsAllowed(e.consentData.allowedVendorIds),c.setConsentLanguage(e.consentData.consentLanguage),r=c.getConsentString()}var l={opt_in:!0,version:o.defaultCookieContent.version,localeVariantName:o.defaultCookieContent.localeVariantName,localeVariantVersion:o.defaultCookieContent.localeVariantVersion,customVendorListVersion:e.customVendorListVersion,customVendorList:e.customVendorList,customPurposes:e.customPurposes,consentString:(0,h.isInfoBannerOnly)()?"":r,configVersion:i,policyVersion:a,addtlConsent:s};N(o.name,l,o.expires),t(l)}).catch(function(e){return n(e)})})},t.updateTCModel=D,t.buildSoiCookie=V,t.transferStatus=B,t.setSoiCookie=function(e){return new c.default(function(t,n){V(e).then(function(e){if(!1!==e){var n=e[0],o=e[1];(0,T.updateTcfApi)(n,!1,n.addtlConsent),N(W(),n,(0,h.getCookieExpireInDays)()),(0,E.consentStore)().writeDecodedRaiConsentSDK((0,v.getAllPreferences)(o,n.addtlConsent,n.customVendor)),(0,g.tagManagerEvents)(n.opt_in,n,"consent_update",o),t(n)}t(!1)}).catch(function(e){return n(e)})})},t.setPreviewCookie=function(){R(C,"true")},t.setVerboseCookie=function(){R(I,"true")},t.removePreviewCookie=function(){d.default.remove(C)},t.removeVerboseCookie=function(){d.default.remove(I)},t.isPreviewCookieSet=function(){return"true"===d.default.get(C)},t.isVerboseCookieSet=function(){return"true"===d.default.get(I)},t.removeSubscriberCookies=M,t.removeHubCookie=function(e){M(),e&&(d.default.remove(e+"_"+W()),d.default.remove(e+"_"+W(),{expires:(0,h.getCookieExpireInDays)(),secure:!0,sameSite:"none"}))},t.isBrowserCookieEnabled=function(){var e=void 0;return F()?(d.default.set("oil_cookie_exp","cookiedata",{secure:!0,sameSite:"none"}),e=z("oil_cookie_exp"),d.default.remove("oil_cookie_exp",{secure:!0,sameSite:"none"})):(d.default.set("oil_cookie_exp","cookiedata"),e=z("oil_cookie_exp"),d.default.remove("oil_cookie_exp")),e},t.inIframe=F,t.getStandardPurposesWithConsent=function(e){return"object"===(void 0===e?"undefined":(0,o.default)(e))?(0,b.getPurposes)().map(function(e){return e.id}).filter(function(t){return e[t]}):1===e?(0,b.getPurposes)().map(function(e){return e.id}):[]},t.getCustomVendorsWithConsent=U,t.getCustomPurposesWithConsent=G,t.getAdditionalConsentWithSettings=H,t.getDefaultTCModel=q,t.cookieAccordingToLoginStatus=W;var d=w(n(78)),f=w(n(317)),p=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(318)),_=n(5),h=n(6),v=n(120),g=n(12),m=n(1),b=n(20),y=n(38),E=n(124),T=n(121),A=n(17),L=n(18),O=n(188);function w(e){return e&&e.__esModule?e:{default:e}}var C="oil_preview",I="oil_verbose",S="oil_data",P=t.OIL_RETRY_NAME="OIL_DATA_RETRY",x="oil_data_session";function R(e,t){d.default.set(e,t)}function N(e,t,n){delete t.consentData,"http:"===window.location.protocol?(0,E.consentStore)().writeConsent(e,t,{expires:n}):(0,E.consentStore)().writeConsent(e,t,{expires:n,secure:!0,sameSite:"none"})}function k(e){var t,n=this;return(0,E.consentStore)().readConsent(e.name).then((t=(0,u.default)(l.default.mark(function e(t){return l.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===t){e.next=8;break}return e.t0=y.TCString,e.t1=t.consentString,e.next=5,q();case 5:e.t2=e.sent,t.consentData=e.t0.decode.call(e.t0,e.t1,e.t2),(0,_.logInfo)("getting consent settings from cookie:",t.consentData);case 8:return e.abrupt("return",t);case 9:case"end":return e.stop()}},e,n)})),function(e){return t.apply(this,arguments)}))}function D(e,t){return t.cmpId=m.OIL_SPEC.CMP_ID,t.supportOOB=m.OIL_SPEC.SUPPORT_OOB,t.isServiceSpecific=m.OIL_SPEC.IS_SERVICE_SPECIFIC,1!==e&&((0,s.default)(e.vendor).length>0||(0,s.default)(e.purpose).length>0)?((0,A.forEach)(["purpose","vendor"],function(n){e[n]&&(0,A.forEach)((0,a.default)(e[n]),function(e){var o=(0,i.default)(e[0]),r=e[1],a=n+"Consents",s=n+"LegitimateInterests";r.consent?t[a].set(o):t[a].unset(o),r.legint?t[s].set(o):t[s].unset(o)})}),e.specialFeature&&(0,A.forEach)((0,a.default)(e.specialFeature),function(e){var n=(0,i.default)(e[0]);e[1].optin?t.specialFeatureOptins.set(n):t.specialFeatureOptins.unset(n)}),t.addtlConsent=e.addtlConsent,t.consentScreen=2,t.updated(),t):(t.addtlConsent=m.ADDITIONAL_CONSENT_VERSION+(0,b.getAllAdditionalConsentProviders)(),(0,h.getIabVendorWhitelist)()?(t.setAllPurposeConsents(),t.setAllPurposeLegitimateInterests(),t.setAllSpecialFeatureOptins(),t.vendorConsents.set((0,h.getIabVendorWhitelist)()),t.vendorLegitimateInterests.set((0,h.getIabVendorWhitelist)())):t.setAll(),t.consentScreen=1,1===e||0!==(0,s.default)(e.vendor).length&&0!==(0,s.default)(e.purpose).length||t.unsetAll(),t.updated(),(0,L.useLegint)()||(t.unsetAllPurposeLegitimateInterests(),t.unsetAllVendorLegitimateInterests()),t.purposeOneTreatment=(0,h.getTcfPurposeOneTreatment)(),t)}function V(e){var t=this;return new c.default(function(n,o){var i;c.default.all([(0,b.loadVendorListAndCustomVendorList)(),Y()]).then((i=(0,u.default)(l.default.mark(function o(i){var a,s,c,u,d,v,g,m,E,T,A,O,w,C,I,S,P,x,R;return l.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return a=i[1],t.next=3,a.defaultCookieContent.consentData;case 3:if(s=t.sent,(0,_.logInfo)("creating TCModel with this settings:",e),c=D(e,s),(0,_.logInfo)("useLegint:",(0,L.useLegint)()),!(0,L.useLegint)())for(u=1;u<=10;u++)(d=new y.PurposeRestriction).purposeId=u,d.restrictionType=y.RestrictionType.REQUIRE_CONSENT,c.publisherRestrictions.restrictPurposeToLegalBasis(d);(0,_.logInfo)("privacySettings",e),(0,_.logInfo)("new TCModel",c),(0,_.logInfo)("new TCString",y.TCString.encode(c)),v={opt_in:!0,version:a.defaultCookieContent.version,localeVariantName:a.defaultCookieContent.localeVariantName,localeVariantVersion:a.defaultCookieContent.localeVariantVersion,customVendorListVersion:(0,b.getCustomVendorListVersion)(),customVendorList:U(e),customPurposes:G(e),consentString:(0,h.isInfoBannerOnly)()?"":y.TCString.encode(c),configVersion:a.defaultCookieContent.configVersion,policyVersion:a.defaultCookieContent.policyVersion,addtlConsent:H(e)},(0,h.getConsentSolutionUrl)()&&!(0,h.getLoginStatus)()?(g={opt_in:!0,version:a.defaultCookieContent.version,localeVariantName:a.defaultCookieContent.localeVariantName,localeVariantVersion:a.defaultCookieContent.localeVariantVersion,customVendorListVersion:(0,b.getCustomVendorListVersion)(),customVendorList:U(e),customPurposes:G(e),consentString:(0,h.isInfoBannerOnly)()?"":y.TCString.encode(c),configVersion:a.defaultCookieContent.configVersion,policyVersion:a.defaultCookieContent.policyVersion,addtlConsent:H(e)},m=window.avacy_consent_html_print,E=+window.avacy_consent_layer,T=(new Date).toISOString(),A=(0,h.isPoiActive)()?(0,h.getPoiGroupName)():void 0,O=window.avacy_consent_btn,w=(0,h.getCookieExpireInDays)(),C=j(m),I=f.default.deflate(C,{to:"string"}),S=p.fromByteArray(I),P={html:S,layer:E,consent_json:g,timestamp:T,consentButton:O,expiry:w},A&&(P.powerOptin=A),(0,_.logInfo)("Consent Solution URL",(0,h.getConsentSolutionUrl)()),(0,_.logInfo)("Body sent to Consent Solution",P),x=new XMLHttpRequest,R=(0,h.getConsentSolutionUrl)(),x.open("POST",R),x.setRequestHeader("Content-Type","application/json;charset=UTF-8"),x.onreadystatechange=function(e){B(e,P)},x.send((0,r.default)(P)),n([v,c])):n([v,c]);case 13:case"end":return t.stop()}},o,t)})),function(e){return i.apply(this,arguments)})).catch(function(e){return o(e)})})}function B(e,t){200===e.currentTarget.status?(0,E.consentStore)().eraseLocaleStorage(P):t&&(0,E.consentStore)().writeLocaleStorage(P,t)}function j(e){return e.replace(/\s+/g," ").replace(/> </g,"><").replace(/\s*</g,"<").replace(/>\s*/g,">")}function M(){d.default.remove(W()),d.default.remove(W(),{expires:(0,h.getCookieExpireInDays)(),secure:!0,sameSite:"none"}),d.default.remove(x)}function F(){try{return window.self!==window.top}catch(e){return!0}}function U(e){return"object"===(void 0===e?"undefined":(0,o.default)(e))?(0,a.default)(e.customVendor).filter(function(e){return e[1].consent}).map(function(e){return e[0]}):1===e?(0,a.default)((0,b.getCustomVendorList)().vendors).map(function(e){return e[0]}):[]}function G(e,t){return t||(t=(0,h.getCustomPurposes)()),"object"===(void 0===e?"undefined":(0,o.default)(e))?t.map(function(e){return e.id}).filter(function(t){return e[t]}):1===e?t.map(function(e){return e.id}):[]}function H(e){return 1!==e?e.addtlConsent:m.ADDITIONAL_CONSENT_VERSION+(0,b.getAllAdditionalConsentProviders)()}function z(e){return void 0!==d.default.get(e)}function q(){return(0,b.getGlobalVendorList)().then(function(e){var t=new y.TCModel(e);return t.cmpId=m.OIL_SPEC.CMP_ID,t.publisherCountryCode="IT",t.cmpVersion=m.OIL_SPEC.CMP_VERSION,t.isServiceSpecific=m.OIL_SPEC.IS_SERVICE_SPECIFIC,t.purposeOneTreatment=(0,h.getTcfPurposeOneTreatment)(),t.supportOOB=!1,t.consentScreen=1,t})}function Y(){return k({name:W()}).then(function(e){return e?(0,b.getGlobalVendorList)().then(function(t){var n=e.consentData;return n.supportOOB=!1,n.gvl=t,{consentString:e.consentString,consentData:n}}):q().then(function(e){return{consentString:"",consentData:e}})}).then(function(e){return{name:W(),expires:(0,h.getCookieExpireInDays)(),defaultCookieContent:{opt_in:!1,version:g.OilVersion.get(),localeVariantName:(0,h.getLocaleVariantName)(),localeVariantVersion:(0,g.getLocaleVariantVersion)(),customPurposes:G((0,h.getDefaultToOptin)()?1:0),consentData:e.consentData,consentString:(0,h.isInfoBannerOnly)()?"":e.consentString,configVersion:(0,h.getConfigVersion)(),policyVersion:(0,h.getPolicyVersion)(),addtlConsent:m.ADDITIONAL_CONSENT_VERSION},outdated_cookie_content_keys:["opt_in","timestamp","version","localeVariantName","localeVariantVersion","privacy","addtlConsent"]}})}function W(){return(0,h.getLoginStatus)()&&!1!==(0,h.getLoginStatus)()&&void 0!==(0,h.getLoginStatus)()&&null!==(0,h.getLoginStatus)()?"oil_data_be":S}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hasRunningTimeout=t.oilWrapper=void 0;var o=I(n(85)),r=I(n(48)),i=I(n(11)),a=I(n(162));t.stopTimeOut=x,t.forEach=R,t.renderOil=N,t.oilShowPreferenceCenter=k,t.getCurrentPrivacySettings=D,t.handleOptIn=j,t.removeOilWrapperFromDOM=G,n(308);var s=n(12),c=n(16),l=n(1),u=n(336),d=n(67),f=n(338),p=n(339),_=C(n(185)),h=C(n(342)),v=n(5),g=n(18),m=n(6),b=n(345),y=n(350),E=n(20),T=n(186),A=n(187),L=n(120),O=n(18),w=n(121);function C(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function I(e){return e&&e.__esModule?e:{default:e}}var S=t.oilWrapper=function(){var e=document.createElement("div");return e.setAttribute("class","as-oil "+(0,g.getBannerPosition)()+" "+(0,g.getBannerAnimation)()),e.setAttribute("data-qa","oil-Layer"),e},P=t.hasRunningTimeout=void 0;function x(){P&&(clearTimeout(P),t.hasRunningTimeout=P=void 0)}function R(e,t,n){Array.isArray(e)||(e=(0,a.default)(e));for(var o=0;o<e.length;o++)t.call(n,e[o])}function N(e){!function(e){return!0!==e.optIn&&(0,m.gdprApplies)()}(e)?G():(e.noCookie?F((0,p.oilNoCookiesTemplate)()):e.advancedSettings?F(function(){var e=(0,g.getCpcType)();switch(e){case l.OIL_CONFIG_CPC_TYPES.CPC_TYPE_STANDARD:return _.oilAdvancedSettingsTemplate();case l.OIL_CONFIG_CPC_TYPES.CPC_TYPE_TABS:return h.oilAdvancedSettingsTemplate();default:return(0,v.logError)("Found unknown CPC type '"+e+"'! Falling back to CPC type '"+l.OIL_CONFIG_CPC_TYPES.CPC_TYPE_STANDARD+"'!"),_.oilAdvancedSettingsTemplate()}}()):(!P&&(0,g.getTimeOutValue)()>0&&((0,v.logInfo)("OIL will auto-hide in",(0,g.getTimeOutValue)(),"seconds."),t.hasRunningTimeout=P=setTimeout(function(){G(),(0,s.sendEventToHostSite)(l.EVENT_NAME_TIMEOUT),(0,m.isInfoBannerOnly)()&&j(),t.hasRunningTimeout=P=void 0},1e3*(0,g.getTimeOutValue)())),F((0,f.oilDefaultTemplate)())),(0,s.sendEventToHostSite)(l.EVENT_NAME_OIL_SHOWN))}function k(e){new i.default(function(e){n.e(1).then(function(t){e(n(361))}.bind(null,n)).catch(n.oe)}),(0,E.loadVendorListAndCustomVendorList)().then(function(){var t=document.querySelector(".as-oil"),n=document.querySelector("#oil-preference-center");if(t||"absolute"===e)N({advancedSettings:!0});else{if(!n)return void(0,v.logError)("No wrapper for the CPC with the id #oil-preference-center was found.");n.innerHTML=function(){var e=(0,g.getCpcType)();switch(e){case l.OIL_CONFIG_CPC_TYPES.CPC_TYPE_STANDARD:return _.oilAdvancedSettingsInlineTemplate();case l.OIL_CONFIG_CPC_TYPES.CPC_TYPE_TABS:return h.oilAdvancedSettingsInlineTemplate();default:return(0,v.logError)("Found unknown CPC type '"+e+"'! Falling back to CPC type '"+l.OIL_CONFIG_CPC_TYPES.CPC_TYPE_STANDARD+"'!"),_.oilAdvancedSettingsInlineTemplate()}}(),U(n),K(H())}(0,c.getSoiCookie)().then(function(e){(0,b.applyPrivacySettings)(D(e)),_.stacksObjectStatus()})}).catch(function(e){return(0,v.logError)(e)})}function D(e){var t=e.opt_in?e.consentData:void 0,n=e.opt_in?e.addtlConsent:l.ADDITIONAL_CONSENT_VERSION,o=e.opt_in?e.customVendorList:[];return t&&n&&o?(0,L.getAllPreferences)(t,n,o):[]}function V(){(0,m.getConsentSolutionUrl)()&&!(0,m.getLoginStatus)()&&(window.avacy_consent_btn="reject-all",window.avacy_consent_layer="1",window.avacy_consent_html_print=document.querySelector(".as-oil").outerHTML),(0,s.sendEventToHostSite)(l.EVENT_NAME_CLOSE_BANNER_BUTTON_CLICKED),j(!0)}function B(e){(0,m.getConsentSolutionUrl)()&&!(0,m.getLoginStatus)()&&(window.avacy_consent_btn=e.target.dataset.optinMode,window.avacy_consent_layer=e.target.dataset.optinLayer,window.avacy_consent_html_print=document.querySelector(".as-oil").outerHTML,e.target.dataset.optinLayer),(0,s.sendEventToHostSite)(l.EVENT_NAME_OPT_IN_BUTTON_CLICKED),j()}function j(){var e,t,n=arguments.length>0&&void 0!==arguments[0]&&arguments[0];x(),(0,m.isPoiActive)()?function(e){var t=(0,b.getPrivacySettings)(e);return(0,v.logInfo)("Handling POI with settings: ",t),Y(t),W(t)?(0,u.oilPowerOptIn)(t).then(function(){N({optIn:!0}),(0,m.isPoiActive)()&&(0,s.sendEventToHostSite)(l.EVENT_NAME_POI_OPT_IN)}):((0,c.removeSubscriberCookies)(),(0,d.deActivatePowerOptIn)())}(n).then(M):(function(e){var t=(0,b.getPrivacySettings)(e);return(0,v.logInfo)("Handling SOI with settings: ",t),Y(t),W(t)?(0,u.oilOptIn)(t).then(function(){N({optIn:!0}),(0,s.sendEventToHostSite)(l.EVENT_NAME_SOI_OPT_IN)}):new i.default(function(e){(0,c.removeSubscriberCookies)(),e()})}(n).then(M),n&&(0,m.getConsentSolutionUrl)()&&!(0,m.getLoginStatus)()&&(window.avacy_consent_btn="reject-all",window.avacy_consent_layer="1",window.avacy_consent_html_print=document.querySelector(".as-oil").outerHTML)),(e=document.querySelector("."+l.JS_CLASS_BUTTON_OPTIN))&&(e.className+=" as-oil__btn-optin-clicked",window.setTimeout(function(){e.className=e.className.replace(" as-js-clicked","")},1200)),(t=document.querySelector(".as-oil"))&&(t.classList.add("as-oil--optin"),window.setTimeout(function(){t.classList.remove("as-oil--optin")},3e3))}function M(){var e=(0,s.getGlobalOilObject)("commandCollectionExecutor");e&&e(),(0,A.sendConsentInformationToCustomVendors)().then(function(){return(0,v.logInfo)("Consent information sending to custom vendors after user's opt-in finished!")}),(0,T.manageDomElementActivation)(),(0,c.getSoiCookie)().then(function(e){(0,w.updateTcfApi)(e,!1,e.addtlConsent),document.querySelector("#oil-preference-center")&&(document.querySelector("#oil-preference-center").innerHTML="")})}function F(e){var t=S();t.innerHTML=e,U(t),function(e){G(),document.body.insertBefore(e,document.body.firstElementChild),K(H())}(t),function(e){if(window.innerWidth<=1023&&(0,g.enableHideIntroOnScroll)()){var t=e.querySelector(".as-oil-cpc__middle"),n=e.querySelector(".as-oil-cpc__middle-wrapper"),o=e.querySelector(".as-oil__intro-txt"),r=e.querySelector(".as-oil__heading");if(n){var i=t.offsetHeight,a=function(e){e="string"==typeof e?document.querySelector(e):e;var t=window.getComputedStyle(e),n=parseFloat(t.marginTop)+parseFloat(t.marginBottom);return Math.ceil(e.offsetHeight+n)}(o);o.style.height=a+"px",n.addEventListener("scroll",function(e){i<90&&(i=t.offsetHeight),e.target.scrollTop>50?(o.classList.add("is-scrolled"),t.classList.add("is-scrolled"),r.classList.add("is-scrolled"),t.style.height=i+a+"px"):(r.classList.remove("is-scrolled"),o.classList.remove("is-scrolled"),t.classList.remove("is-scrolled"),t.style.height=i+"px")})}}}(t)}function U(e){!function(e){var t=(0,O.getDefaultVisualConfig)().colors,n=(0,O.getVisualConfig)().colors;R((0,r.default)(t),function(t){var r=(0,o.default)(t,2),i=r[0],a=r[1];n&&void 0!==n[i]?e.style.setProperty("--avacy_"+i,n[i]):a&&e.style.setProperty("--avacy_"+i,a)})}(e),function(e){var t=(0,O.getDefaultVisualConfig)().font_base_scale,n=(0,O.getVisualConfig)().font_base_scale;void 0!==n?e.style.setProperty("--avacy_font_base_scale",n):e.style.setProperty("--avacy_font_base_scale",t)}(e),function(e){var t=(0,O.getDefaultVisualConfig)().font_family,n=(0,O.getVisualConfig)().font_family;void 0!==n?e.style.setProperty("--avacy_font_family",n):e.style.setProperty("--avacy_font_family",t)}(e),function(e){var t=e.querySelector(".as-oil-cpc__left"),n=e.querySelector(".as-oil-cpc__left-wrapper");n&&n.addEventListener("scroll",function(e){e.target.scrollLeft>0?(t.classList.remove("scroll-tabs-end"),t.classList.add("scroll-tabs-start")):(t.classList.add("scroll-tabs-end"),t.classList.remove("scroll-tabs-start"))})}(e),function(e){var t=e.querySelector(".as-oil-cpc__middle"),n=e.querySelector(".as-oil-cpc__middle-wrapper");n&&n.addEventListener("scroll",function(e){e.target.scrollTop>0?(t.classList.add("scroll-content-start"),t.classList.add("scroll-content-end"),e.target.scrollTop===e.target.scrollHeight-e.target.offsetHeight-1&&t.classList.remove("scroll-content-end")):(t.classList.add("scroll-content-end"),t.classList.remove("scroll-content-start"))})}(e),function(e){(0,m.isMobileEnvironment)()&&(e.classList.add("OilMobile"),document.documentElement.style.setProperty("--vh",window.screen.availHeight+"px"))}(e)}function G(){var e=H();e.oilWrapper&&R(e.oilWrapper,function(e){e.parentElement.removeChild(e)})}function H(){return{oilWrapper:document.querySelectorAll(".as-oil"),btnOptIn:document.querySelectorAll("."+l.JS_CLASS_BUTTON_OPTIN),btnCloseBanner:document.querySelectorAll("."+l.JS_CLASS_BUTTON_CLOSE_BANNER+", ."+l.JS_CLASS_BUTTON_REJECT_ALL),btnPoiOptIn:document.querySelectorAll(".as-js-optin-poi"),companyList:document.querySelectorAll(".as-js-companyList"),thirdPartyList:document.querySelectorAll(".as-js-thirdPartyList"),btnAdvancedSettings:document.querySelectorAll("."+l.JS_CLASS_BUTTON_ADVANCED_SETTINGS),btnBack:document.querySelectorAll("."+l.JS_CLASS_BUTTON_OILBACK)}}function z(){(0,v.logInfo)("Handling Back Button"),x(),N({}),(0,s.sendEventToHostSite)(l.EVENT_NAME_BACK_TO_MAIN)}function q(){(0,v.logInfo)("Handling Show Advanced Settings"),x(),k(),(0,s.sendEventToHostSite)(l.EVENT_NAME_ADVANCED_SETTINGS)}function Y(e){(0,s.isObject)(e)&&(0,s.sendEventToHostSite)(l.EVENT_NAME_AS_PRIVACY_SELECTED)}function W(e){return e!==l.PRIVACY_MINIMUM_TRACKING||(0,g.isPersistMinimumTracking)()}function J(e,t){e&&R(e,function(e){e&&e.addEventListener("click",t,!1)})}function K(e){J(e.btnCloseBanner,V),J(e.btnOptIn,B),J(e.btnAdvancedSettings,q),J(e.btnBack,z),function(){(0,g.isOptoutConfirmRequired)()&&(0,y.activateOptoutConfirm)();var e=(0,g.getCpcType)();switch(e){case l.OIL_CONFIG_CPC_TYPES.CPC_TYPE_STANDARD:_.attachCpcHandlers();break;case l.OIL_CONFIG_CPC_TYPES.CPC_TYPE_TABS:h.attachCpcHandlers();break;default:(0,v.logError)("Found unknown CPC type '"+e+"'! Falling back to CPC type '"+l.OIL_CONFIG_CPC_TYPES.CPC_TYPE_STANDARD+"'!"),_.attachCpcHandlers()}}()}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isAdvancedSettings=function(){return(0,r.getConfigValue)(o.OIL_CONFIG.ATTR_ADVANCED_SETTINGS,a.default[o.OIL_CONFIG.ATTR_ADVANCED_SETTINGS])},t.logoUrl=function(){return(0,r.getConfigValue)(o.OIL_CONFIG.ATTR_LOGO_URL,a.default[o.OIL_CONFIG.ATTR_LOGO_URL])},t.imageCpcUrl=function(){return(0,r.getConfigValue)(o.OIL_CONFIG.ATTR_IMAGE_CPC_URL,a.default[o.OIL_CONFIG.ATTR_IMAGE_CPC_URL])},t.useLegint=function(){return(0,r.getConfigValue)(o.OIL_CONFIG.ATTR_USE_LEGINT,a.default[o.OIL_CONFIG.ATTR_USE_LEGINT])},t.isCloseWithoutConsentsEnabled=function(){return(0,r.getConfigValue)(o.OIL_CONFIG.ATTR_CLOSE_WITHOUT_CONSENTS,a.default[o.OIL_CONFIG.ATTR_CLOSE_WITHOUT_CONSENTS])},t.enableHideIntroOnScroll=function(){return(0,r.getConfigValue)(o.OIL_CONFIG.ATTR_HIDE_INTRO_ON_SCROLL,a.default[o.OIL_CONFIG.ATTR_HIDE_INTRO_ON_SCROLL])},t.isRejectAllEnabled=function(){return(0,r.getConfigValue)(o.OIL_CONFIG.ATTR_REJECT_ALL,a.default[o.OIL_CONFIG.ATTR_REJECT_ALL])},t.getTimeOutValue=function(){return(0,r.getConfigValue)(o.OIL_CONFIG.ATTR_TIMEOUT,a.default[o.OIL_CONFIG.ATTR_TIMEOUT])},t.getTheme=function(){var e=c(),t=l();return void 0!==e.theme?e.theme:t.theme},t.getBannerPosition=function(){var e=c(),t=l();return void 0!==e.banner_position?e.banner_position:t.banner_position},t.getBannerAnimation=function(){var e=c(),t=l();return void 0!==e.banner_animation?e.banner_animation:t.banner_animation},t.getCpcType=function(){return(0,r.getConfigValue)(o.OIL_CONFIG.ATTR_CPC_TYPE,a.default[o.OIL_CONFIG.ATTR_CPC_TYPE])},t.getLabel=function(e){return u(e,e)},t.getVisualConfig=c,t.getDefaultVisualConfig=l,t.getLabelWithDefault=u,t.isOptoutConfirmRequired=function(){return(0,r.getConfigValue)(o.OIL_CONFIG.ATTR_REQUIRE_OPTOUT_CONFIRM,a.default[o.OIL_CONFIG.ATTR_REQUIRE_OPTOUT_CONFIRM])};var o=n(1),r=n(6),i=s(n(157)),a=(s(n(125)),s(n(158)));function s(e){return e&&e.__esModule?e:{default:e}}function c(){return(0,r.getConfigValue)(o.OIL_CONFIG.ATTR_VISUAL_CONFIGURATION,i.default)}function l(){return(0,r.getConfigValue)(void 0,i.default)}function u(e,t){var n=(0,r.getLocale)();return(0,r.getConfigValue)(e,n&&n.texts&&n.texts[e]?n.texts[e]:t)}},function(e,t,n){var o=n(14);e.exports=function(e){if(!o(e))throw TypeError(e+" is not an object!");return e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pendingVendorListPromise=t.cachedAdditionalConsent=t.cachedCustomVendorList=t.cachedVendorList=t.DEFAULT_ADDITIONAL_CONSENT_LIST=t.DEFAULT_CUSTOM_VENDOR_LIST=t.DEFAULT_VENDOR_LIST=void 0;var o=v(n(68)),r=v(n(46)),i=v(n(159)),a=v(n(161)),s=v(n(85)),c=v(n(48)),l=v(n(47)),u=v(n(11));t.loadVendorListAndCustomVendorList=function(){return y&&E&&T?new u.default(function(e){e()}):A||(t.pendingVendorListPromise=A=new u.default(function(e){w().then(function(n){n.readyPromise.then(function(){var o=(0,d.getLanguageFromConfigObject)();n.changeLanguage(o).then(function(){u.default.all([n,L(),O()]).then(function(){t.cachedVendorList=y=n,t.pendingVendorListPromise=A=null,e()}),e(n)})})}).catch(function(n){(0,f.logError)("OIL getGlobalVendorList failed and returned error: "+n+". Falling back to default vendor list!"),u.default.all([L(),O()]).then(function(){t.pendingVendorListPromise=A=null,e()})})}),A)},t.loadCustomVendorList=L,t.getGlobalVendorList=w,t.getFullPurposes=C,t.getPurposes=I,t.getStacks=S,t.getFullStacks=function(){return void 0===S()?void 0:(0,c.default)(S()).map(function(e){var t=(0,s.default)(e,2),n=(t[0],t[1]);return n.fullPurposes={},(0,h.forEach)(n.purposes,function(e){n.fullPurposes[e]=C()[e]}),n})},t.getSpecialPurposes=function(){return y?y.specialPurposes:null},t.getFeatures=function(){return y?y.features:null},t.getLegitimateInterest=P,t.getSpecialFeatures=x,t.getPurposeIds=function(){return(0,c.default)(I()).map(function(e){var t=(0,s.default)(e,2);return(t[0],t[1]).id})},t.getLegintIds=function(){return(0,c.default)(P()).map(function(e){var t=(0,s.default)(e,2);return(t[0],t[1]).id})},t.getSpecialFeatureIds=function(){return(0,c.default)(x()).map(function(e){var t=(0,s.default)(e,2);return(t[0],t[1]).id})},t.getCustomVendorIds=function(){return(0,c.default)(k().vendors).map(function(e){return e})},t.getVendors=R,t.getVendorIds=N,t.getCustomVendorList=k,t.getAdditionalConsentList=D,t.getAllAdditionalConsentProviders=function(){var e=D();return"object"===(void 0===e?"undefined":(0,l.default)(e))&&(e=(0,o.default)(e)),e.map(function(e){return e.id}).join(".")},t.getCustomVendorListVersion=function(){return E&&!E.isDefault?E.vendorListVersion:void 0},t.clearVendorListCache=function(){t.cachedVendorList=y=void 0,t.cachedCustomVendorList=E=void 0,t.pendingVendorListPromise=A=null,cachedGVL=null},t.getVendorsToDisplay=function(){return(0,d.getShowLimitedVendors)()?V():R()},t.getLimitedVendors=V,t.getLimitedVendorIds=B;var d=n(6),f=n(5),p=n(12),_=n(38),h=n(17);function v(e){return e&&e.__esModule?e:{default:e}}var g=t.DEFAULT_VENDOR_LIST={vendorListVersion:36,maxVendorId:747,lastUpdated:"2018-05-30T16:00:15Z",purposeIds:[1,2,3,4,5,6,7,8,9,10],legintIds:[2,3,4,5,6,7,8,9,10],specialFeaturesIds:[1,2]},m=t.DEFAULT_CUSTOM_VENDOR_LIST={vendorListVersion:-1,isDefault:!0,vendors:[]},b=t.DEFAULT_ADDITIONAL_CONSENT_LIST={providers:{}},y=t.cachedVendorList=null,E=t.cachedCustomVendorList=null,T=t.cachedAdditionalConsent=null,A=t.pendingVendorListPromise=null;function L(){return new u.default(function(e){var n=(0,d.getCustomVendorListUrl)();document.querySelector("#avacy-blocking")?(t.cachedCustomVendorList=E=window.myCustomVendorlist,e()):n?(0,p.fetchJsonData)(n).then(function(n){t.cachedCustomVendorList=E=n,e()}).catch(function(n){t.cachedCustomVendorList=E=m,(0,f.logError)("OIL getCustomVendorList failed and returned error: "+n+". Falling back to default custom vendor list!"),e()}):(t.cachedCustomVendorList=E=m,e())})}function O(){return new u.default(function(e){var n=(0,d.getAdditionalConsentListUrl)();n?(0,p.fetchJsonData)(n).then(function(n){t.cachedAdditionalConsent=T=n,e()}).catch(function(n){t.cachedAdditionalConsent=T=b,(0,f.logError)("OIL getCustomVendorList failed and returned error: "+n+". Falling back to default custom vendor list!"),e()}):(t.cachedAdditionalConsent=T=b,e())})}function w(){if(!window.cachedGVL||"object"!==(0,l.default)(window.cachedGVL)){_.GVL.baseUrl=(0,d.getIabVendorListDomain)();var e=new _.GVL;window.cachedGVL=e.readyPromise.then(function(){return window.fulfilledGVL=e,e})}return window.cachedGVL}function C(){return y?y.purposes:M(g.purposeIds)}function I(){var e=y?y.purposes:M(g.purposeIds);if(S()){var t=[],n={};return(0,h.forEach)((0,c.default)(S()),function(e){var n=(0,s.default)(e,2),o=(n[0],n[1]);t=[].concat((0,a.default)(new i.default([].concat((0,a.default)(t),(0,a.default)(o.purposes)))))}),(0,r.default)(e).filter(function(o){t.sort().includes(+o)||(n[o]=e[o])}),n}return e}function S(){var e=y?y.stacks:void 0;if((0,d.getRequiredStacks)()&&(0,d.getRequiredStacks)().length>0){var t={};return(0,c.default)(e).filter(function(e){var n=(0,s.default)(e,2),o=n[0],r=n[1];(0,d.getRequiredStacks)().includes(+o)&&(t[o]=r)}),Object.fromEntries((0,c.default)(t).sort(function(e,t){return t[1]-e[1]}))}}function P(){return M(g.legintIds)}function x(){return y?y.specialFeatures:M(g.specialFeaturesIds)}function R(){return y?(0,o.default)(y.vendors):M(j())}function N(){return R().map(function(e){return e.id})}function k(){return E||m}function D(){var e=(T||b).providers,t=[];return(0,d.getAtpWhitelis