UNPKG

@jumpgroup/avacy

Version:

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

16 lines 145 kB
/*! 2.7.2-SNAPSHOT */!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/",n(n.s=309)}([function(e,t){var n=e.exports={version:"2.5.7"};"number"==typeof __e&&(__e=n)},function(e,t,n){var r=n(62)("wks"),o=n(43),i=n(2).Symbol,s="function"==typeof i;(e.exports=function(e){return r[e]||(r[e]=s&&i[e]||(s?i:o)("Symbol."+e))}).store=r},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 r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),r(n(211)),r(n(212)),r(n(213)),r(n(214))},function(e,t,n){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),r(n(108)),r(n(215)),r(n(109)),r(n(110)),r(n(216)),r(n(77)),r(n(111)),r(n(217)),r(n(218))},function(e,t,n){var r=n(2),o=n(0),i=n(40),s=n(15),u=n(16),a=function(e,t,n){var c,l,f,d=e&a.F,p=e&a.G,h=e&a.S,_=e&a.P,v=e&a.B,g=e&a.W,y=p?o:o[t]||(o[t]={}),m=y.prototype,E=p?r:h?r[t]:(r[t]||{}).prototype;for(c in p&&(n=t),n)(l=!d&&E&&void 0!==E[c])&&u(y,c)||(f=l?E[c]:n[c],y[c]=p&&"function"!=typeof E[c]?n[c]:v&&l?i(f,r):g&&E[c]==f?function(e){var t=function(t,n,r){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,r)}return e.apply(this,arguments)};return t.prototype=e.prototype,t}(f):_&&"function"==typeof f?i(Function.call,f):f,_&&((y.virtual||(y.virtual={}))[c]=f,e&a.R&&m&&!m[c]&&s(m,c,f)))};a.F=1,a.G=2,a.S=4,a.P=8,a.B=16,a.W=32,a.U=64,a.R=128,e.exports=a},,function(e,t,n){var r=n(12);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},function(e,t,n){e.exports=!n(24)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},,function(e,t,n){var r=n(7),o=n(91),i=n(59),s=Object.defineProperty;t.f=n(8)?Object.defineProperty:function(e,t,n){if(r(e),t=i(t,!0),r(n),o)try{return s(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,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(49),o=n(233),i=function(){function e(){}return e.reset=function(){delete this.cmpId,delete this.cmpVersion,delete this.eventStatus,delete this.gdprApplies,delete this.tcModel,delete this.tcString,delete this.tcfPolicyVersion,this.cmpStatus=r.CmpStatus.LOADING,this.disabled=!1,this.displayStatus=r.DisplayStatus.HIDDEN,this.eventQueue.clear()},e.apiVersion="2",e.eventQueue=new o.EventListenerQueue,e.cmpStatus=r.CmpStatus.LOADING,e.disabled=!1,e.displayStatus=r.DisplayStatus.HIDDEN,e}();t.CmpApiModel=i},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){var r=n(93),o=n(52);e.exports=function(e){return r(o(e))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getConfigValue=a,t.getConfigVersion=function(){return a(r.OIL_CONFIG.ATTR_CONFIG_VERSION,r.OIL_CONFIG_DEFAULT_VERSION)},t.getPolicyVersion=function(){return a(r.OIL_CONFIG.ATTR_POLICY_VERSION,r.OIL_POLICY_DEFAULT_VERSION)},t.isPreviewMode=function(){return a(r.OIL_CONFIG.ATTR_PREVIEW_MODE,!1)},t.isPoiActive=function(){return a(r.OIL_CONFIG.ATTR_ACTIVATE_POI,!1)},t.getHubOrigin=c,t.getHubPath=l,t.getPublicPath=f,t.getLocaleUrl=d,t.getIabVendorListDomain=function(){return a(r.OIL_CONFIG.ATTR_IAB_VENDOR_LIST_URL,"https://cdn.jumpgroup.it/assets/")},t.getIabVendorBlacklist=function(){return a(r.OIL_CONFIG.ATTR_IAB_VENDOR_BLACKLIST,void 0)},t.getCustomVendorListUrl=function(){return a(r.OIL_CONFIG.ATTR_CUSTOM_VENDOR_LIST_URL,void 0)},t.getAdditionalConsentListUrl=function(){return a(r.OIL_CONFIG.ATTR_ADDITIONAL_CONSENT_LIST_URL,void 0)},t.getAtpWhitelist=function(){return a(r.OIL_CONFIG.ATTR_ATP_WHITELIST,void 0)},t.getIabVendorWhitelist=function(){return a(r.OIL_CONFIG.ATTR_IAB_VENDOR_WHITELIST,void 0)},t.setIabVendorBlacklist=function(e){u(r.OIL_CONFIG.ATTR_IAB_VENDOR_BLACKLIST,e)},t.setIabVendorWhitelist=function(e){u(r.OIL_CONFIG.ATTR_IAB_VENDOR_WHITELIST,e)},t.getPoiGroupName=function(){return a(r.OIL_CONFIG.ATTR_POI_GROUP_NAME,"default")},t.getCookieExpireInDays=function(){return a(r.OIL_CONFIG.ATTR_COOKIE_EXPIRES_IN_DAYS,365)},t.getLocaleVariantName=p,t.getLanguage=function(){return h(p())},t.getLanguageFromLocale=h,t.getLanguageFromConfigObject=_,t.getHubLocation=function(){return c()+l()},t.getPoiListDirectory=function(){var e,t=c();return-1!==(e=t).indexOf("/",e.length-"/".length)?t.replace(/\/$/,"/poi-lists"):t+"/poi-lists"},t.resetConfiguration=function(){(0,i.setGlobalOilObject)("CONFIG",null)},t.getCustomPurposes=v,t.getCustomPurposeIds=function(){return v().map(function(e){return e.id})},t.isMobileEnvironment=function(){return"native"===a(r.OIL_CONFIG.ATTR_DEVICE_ENVIRONMENT,"web")},t.getNativePublisher=function(){return a(r.OIL_CONFIG.ATTR_NATIVE_PUBLISHER,"avacy")},t.getAdvancedSettingsPurposesDefault=function(){return a(r.OIL_CONFIG.ATTR_ADVANCED_SETTINGS_PURPOSES_DEFAULT,!1)},t.getDefaultToOptin=function(){return a(r.OIL_CONFIG.ATTR_DEFAULT_TO_OPTIN,!1)},t.getLocale=g,t.setLocale=function(e){u(r.OIL_CONFIG.ATTR_LOCALE,e)},t.gdprApplies=function(){return a(r.OIL_CONFIG.ATTR_GDPR_APPLIES_GLOBALLY,!0)||a(r.OIL_CONFIG.ATTR_GDPR_APPLIES,!1)},t.setGdprApplies=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];u(r.OIL_CONFIG.ATTR_GDPR_APPLIES,e)},t.getShowLimitedVendors=function(){return a(r.OIL_CONFIG.ATTR_SHOW_LIMITED_VENDORS_ONLY,!1)},t.isInfoBannerOnly=y,t.suppressCookies=m,t.isAmpModeActivated=function(){return y()&&m()};var r=n(19),o=n(21),i=n(20);function s(){if(!(0,i.getGlobalOilObject)("CONFIG")){var e=document.querySelector('script[type="application/configuration"]#oil-configuration');null===e&&(0,o.logInfo)("Using default config"),(0,i.setGlobalOilObject)("CONFIG",function(e){var t={};try{e&&e.text&&(t=JSON.parse(e.text),(0,o.logInfo)("Parsed config",t))}catch(e){(0,o.logError)("Error config",e)}return t}(e)),(0,i.setGlobalOilObject)("CONFIG_ATTRIBUTES",r.OIL_CONFIG),a(r.OIL_CONFIG.ATTR_CONFIG_VERSION,void 0)||(0,o.logError)('Your configuration is faulty - it must contain a "config_version" property. See the oil.js documentation for details.'),(t=g())&&"string"!=typeof t||void 0!==d()?t&&(0,i.isObject)(t)&&(t.localeId||(0,o.logError)('Your configuration is faulty - "locale" object misses "localeId" property. See the oil.js documentation for details.'),t.version||(0,o.logError)('Your configuration is faulty - "locale" object misses "version" property. See the oil.js documentation for details.')):(0,o.logError)("Incorrect or missing locale parameter found. Please review documentation on how to set the locale object in your configuration. Using default locale."),f()&&(n.p=f())}var t;return(0,i.getGlobalOilObject)("CONFIG")}function u(e,t){s()[e]=t}function a(e,t){var n=s();return n&&void 0!==n[e]?n[e]:t}function c(){var e=a(r.OIL_CONFIG.ATTR_HUB_ORIGIN,"https://unpkg.com");return e?"/"===e||-1!==e.indexOf("http")?e:location.protocol+e:null}function l(){return a(r.OIL_CONFIG.ATTR_HUB_PATH,"/@ideasio/oil.js@"+i.OilVersion.getLatestReleaseVersion()+"/release/current/hub.html")}function f(){var e=a(r.OIL_CONFIG.ATTR_PUBLIC_PATH,void 0);return e&&"/"!==e.substr(-1)&&(e+="/"),e}function d(){return a(r.OIL_CONFIG.ATTR_LOCALE_URL,void 0)}function p(){var e=g();return e||(e="enEN_01"),e&&(0,i.isObject)(e)?e.localeId?e.localeId:"enEN_01":e}function h(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"en").substring(0,2)}function _(){return a(r.OIL_CONFIG.ATTR_LANGUAGE,"en")}function v(){return a(r.OIL_CONFIG.ATTR_CUSTOM_PURPOSES,[])}function g(){if(a(r.OIL_CONFIG.ATTR_LANGUAGES_LIST,void 0)){var e=_(),t=a(r.OIL_CONFIG.ATTR_LANGUAGES_LIST,void 0);u(r.OIL_CONFIG.ATTR_LOCALE,t[e])}return a(r.OIL_CONFIG.ATTR_LOCALE,void 0)}function y(){return a(r.OIL_CONFIG.ATTR_INFO_BANNER_ONLY,!1)}function m(){return a(r.OIL_CONFIG.ATTR_SUPPRESS_COOKIES,!1)}},function(e,t,n){var r=n(10),o=n(42);e.exports=n(8)?function(e,t,n){return r.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){"use strict";var r=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(){}return e.prototype.clone=function(){var e=this,t=new this.constructor;return Object.keys(this).forEach(function(n){var r=e.deepClone(e[n]);void 0!==r&&(t[n]=r)}),t},e.prototype.deepClone=function(e){var t,n,o=typeof e;if("number"===o||"string"===o||"boolean"===o)return e;if(null!==e&&"object"===o){if("function"==typeof e.clone)return e.clone();if(e instanceof Date)return new Date(e.getTime());if(void 0!==e[Symbol.iterator]){var i=[];try{for(var s=r(e),u=s.next();!u.done;u=s.next()){var a=u.value;i.push(this.deepClone(a))}}catch(e){t={error:e}}finally{try{u&&!u.done&&(n=s.return)&&n.call(s)}finally{if(t)throw t.error}}return e instanceof Array?i:new e.constructor(i)}var c={};for(var l in e)e.hasOwnProperty(l)&&(c[l]=this.deepClone(e[l]));return c}},e}();t.Cloneable=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(3),o=function(){function e(){}return e.encode=function(e,t){var n;if("string"==typeof e&&(e=parseInt(e,10)),(n=e.toString(2)).length>t||e<0)throw new r.EncodingError(e+" too large to encode into "+t);return n.length<t&&(n="0".repeat(t-n.length)+n),n},e.decode=function(e,t){if(t!==e.length)throw new r.DecodingError("invalid bit length");return parseInt(e,2)},e}();t.IntEncoder=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),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_HUB_LOCATION:"poi_hub_location",ATTR_PREVIEW_MODE:"preview_mode",ATTR_COOKIE_EXPIRES_IN_DAYS:"cookie_expires_in_days",ATTR_TIMESTAMP:"timestamp",ATTR_PRIVACY_PAGE_URL:"privacy_page_url",ATTR_POI_GROUP_NAME:"poi_group_name",ATTR_ADVANCED_SETTINGS:"advanced_settings",ATTR_CLOSE_WITHOUT_CONSENTS:"close_without_consents",ATTR_LOGO_URL:"logo_url",ATTR_PERSIST_MINIMUM_TRACKING:"persist_min_tracking",ATTR_LOCALE:"locale",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_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"},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_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.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_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"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OilVersion=void 0;var r,o=(r=n(22))&&r.__esModule?r:{default:r};t.isProd=function(){return!0},t.isDev=function(){return!1},t.getOrigin=a,t.sendEventToHostSite=function(e){window.postMessage(e,a()),window.AS_OIL.eventCollection=window.AS_OIL.eventCollection||[],window.AS_OIL.eventCollection.push({name:e,timestamp:(new Date).getTime()}),(0,i.logInfo)("Sent postmessage event: "+e)},t.removeMessageListener=function(e){d(h,e,!1)},t.registerMessageListener=function(e){f(p,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,r=0;r<n;r++)if(e[r]===t)return!0;return!1},t.arrayContainsArray=function(e,t){if(!e||!t)return!1;for(var n={},r=0;r<e.length;r++)n[e[r]]||(n[e[r]]=0),n[e[r]]++;for(var o=0;o<t.length;o++)if(!n[t[o]]||--n[t[o]]<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,u.getLocale)();return e&&e.version?e.version:0},t.fetchJsonData=function(e){return new o.default(function(t,n){var r=new XMLHttpRequest;(0,i.logInfo)("Fetching data from url: "+e),r.open("GET",e),r.onreadystatechange=function(){if(r.readyState===this.DONE)if(200===r.status)t(JSON.parse(r.responseText));else{var o=void 0;if(0!==r.status){var i=JSON.parse(r.responseText);o=new Error(i.errorMessage)}else o=new Error("Connection error occurred while fetching JSON data from "+e+"!");n(o)}},r.send()})},t.isObject=function(e){return e instanceof Object&&e.constructor===Object};var i=n(21),s=n(19),u=n(14);function a(){return window.location.origin||(window.location.origin=window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"")),window.location.origin}var c=window.addEventListener?"addEventListener":"attachEvent",l=window.removeEventListener?"removeEventListener":"removeEvent",f=window[c],d=window[l],p="attachEvent"===c?"onmessage":"message",h="removeEvent"===l?"onmessage":"message";t.OilVersion={get:function(){return"2.7.2-SNAPSHOT"},getLatestReleaseVersion:function(){return"2.7.2"}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.logError=function(){((0,r.isDev)()||(0,o.isVerboseCookieSet)())&&window.console&&u(window.console.error,arguments)},t.logInfo=function(){((0,r.isDev)()||(0,o.isVerboseCookieSet)())&&window.console&&u(window.console.info,arguments)},t.logWarn=function(){((0,r.isDev)()||(0,o.isVerboseCookieSet)())&&window.console&&u(window.console.warn,arguments)},t.logPreviewInfo=function(){((0,r.isDev)()||(0,i.isPreviewMode)()||(0,o.isPreviewCookieSet)()||(0,o.isVerboseCookieSet)())&&u(window.console.info,arguments)};var r=n(20),o=n(39),i=n(14),s="OIL: ";function u(e,t){window.console||(window.console={}),window.console.log||(window.console.log=function(){});var n=[s].concat(Array.prototype.slice.call(t));if(e)try{e.apply(window.console,n)}catch(t){try{e(a(n))}catch(e){}}else window.console.log(a(n))}function a(e){for(var t="",n=0;n<e.length;n++)t+=e[n];return t}},function(e,t,n){e.exports={default:n(183),__esModule:!0}},function(e,t){e.exports={}},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var r=n(92),o=n(63);e.exports=Object.keys||function(e){return r(e,o)}},function(e,t){e.exports=!0},function(e,t){t.f={}.propertyIsEnumerable},,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(){}return e.encode=function(e){return+e+""},e.decode=function(e){return"1"===e},e}();t.BooleanEncoder=r},function(e,t,n){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),r(n(75)),r(n(3)),r(n(4)),r(n(17)),r(n(119)),r(n(120)),r(n(121)),r(n(224))},,,,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=g(n(55)),o=g(n(197)),i=g(n(57)),s=g(n(22));t.setSessionCookie=I,t.setDomainCookie=O,t.getOilCookie=b,t.getSoiCookie=function(){return R().then(function(e){return b(e).then(function(t){return t&&!0===t.opt_in?t:e.defaultCookieContent})})},t.setSoiCookieWithPoiCookieData=function(e){return new s.default(function(t,n){s.default.all([(0,p.loadVendorListAndCustomVendorList)(),R()]).then(function(n){var r=n[1],o=void 0,i=e.configVersion||r.defaultCookieContent.configVersion,s=e.policyVersion||r.defaultCookieContent.policyVersion,u=e.addtlConsent||r.defaultCookieContent.addtlConsent;if(e.consentString)o=e.consentString;else{var a=r.defaultCookieContent.consentData;a.setPurposesAllowed(e.consentData.allowedPurposeIds),a.setVendorsAllowed(e.consentData.allowedVendorIds),a.setConsentLanguage(e.consentData.consentLanguage),o=a.getConsentString()}var l={opt_in:!0,version:r.defaultCookieContent.version,localeVariantName:r.defaultCookieContent.localeVariantName,localeVariantVersion:r.defaultCookieContent.localeVariantVersion,customVendorListVersion:e.customVendorListVersion,customPurposes:e.customPurposes,consentString:(0,c.isInfoBannerOnly)()?"":o,configVersion:i,policyVersion:s,addtlConsent:u};O(r.name,l,r.expires),t(l)}).catch(function(e){return n(e)})})},t.updateTCModel=A,t.buildSoiCookie=T,t.setSoiCookie=function(e){return new s.default(function(t,n){T(e).then(function(e){var n=e[0],r=e[1];(0,v.updateTcfApi)(n,!1,n.addtlConsent),O(E,n,(0,c.getCookieExpireInDays)()),(0,_.consentStore)().writeDecodedRaiConsentSDK((0,l.getAllPreferences)(r,n.addtlConsent)),t(n)}).catch(function(e){return n(e)})})},t.setPreviewCookie=function(){I(y,"true")},t.setVerboseCookie=function(){I(m,"true")},t.removePreviewCookie=function(){u.default.remove(y)},t.removeVerboseCookie=function(){u.default.remove(m)},t.isPreviewCookieSet=function(){return"true"===u.default.get(y)},t.isVerboseCookieSet=function(){return"true"===u.default.get(m)},t.removeSubscriberCookies=S,t.removeHubCookie=function(e){S(),e&&(u.default.remove(e+"_"+E),u.default.remove(e+"_"+E,{expires:(0,c.getCookieExpireInDays)(),secure:!0,sameSite:"none"}))},t.isBrowserCookieEnabled=function(){var e=void 0;return L()?(u.default.set("oil_cookie_exp","cookiedata",{secure:!0,sameSite:"none"}),e=N("oil_cookie_exp"),u.default.remove("oil_cookie_exp",{secure:!0,sameSite:"none"})):(u.default.set("oil_cookie_exp","cookiedata"),e=N("oil_cookie_exp"),u.default.remove("oil_cookie_exp")),e},t.inIframe=L,t.getStandardPurposesWithConsent=function(e){return"object"===(void 0===e?"undefined":(0,r.default)(e))?(0,p.getPurposes)().map(function(e){return e.id}).filter(function(t){return e[t]}):1===e?(0,p.getPurposes)().map(function(e){return e.id}):[]},t.getCustomPurposesWithConsent=w,t.getAdditionalConsentWithSettings=P,t.getDefaultTCModel=V;var u=g(n(74)),a=n(21),c=n(14),l=n(140),f=n(20),d=n(19),p=n(80),h=n(32),_=n(141),v=n(129);function g(e){return e&&e.__esModule?e:{default:e}}var y="oil_preview",m="oil_verbose",E="oil_data",C="oil_data_session";function I(e,t){u.default.set(e,t)}function O(e,t,n){delete t.consentData,"http:"===window.location.protocol?(0,_.consentStore)().writeConsent(e,t,{expires:n}):(0,_.consentStore)().writeConsent(e,t,{expires:n,secure:!0,sameSite:"none"})}function b(e){return(0,_.consentStore)().readConsent(e.name).then(function(e){return void 0!==e&&(e.consentData=h.TCString.decode(e.consentString,V()),(0,a.logInfo)("getting consent settings from cookie:",e.consentData)),e})}function A(e,t){return t.cmpId=d.OIL_SPEC.CMP_ID,t.supportOOB=d.OIL_SPEC.SUPPORT_OOB,t.isServiceSpecific=d.OIL_SPEC.IS_SERVICE_SPECIFIC,1!==e?(["purpose","vendor"].forEach(function(n){e[n]&&(0,i.default)(e[n]).forEach(function(e){var r=(0,o.default)(e[0]),i=e[1],s=n+"Consents",u=n+"LegitimateInterests";i.consent?t[s].set(r):t[s].unset(r),i.legint?t[u].set(r):t[u].unset(r)})}),e.specialFeature&&(0,i.default)(e.specialFeature).forEach(function(e){var n=(0,o.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=d.ADDITIONAL_CONSENT_VERSION+(0,p.getAllAdditionalConsentProviders)(),(0,c.getIabVendorWhitelist)()?(t.setAllPurposeConsents(),t.setAllPurposeLegitimateInterests(),t.setAllSpecialFeatureOptins(),t.vendorConsents.set((0,c.getIabVendorWhitelist)()),t.vendorLegitimateInterests.set((0,c.getIabVendorWhitelist)())):t.setAll(),t.consentScreen=1,t.updated(),t)}function T(e){return new s.default(function(t,n){s.default.all([(0,p.loadVendorListAndCustomVendorList)(),R()]).then(function(n){var r=n[1];(0,a.logInfo)("creating TCModel with this settings:",e);var o=A(e,r.defaultCookieContent.consentData);(0,a.logInfo)("privacySettings",e),(0,a.logInfo)("new TCModel",o),(0,a.logInfo)("new TCString",h.TCString.encode(o));var i={opt_in:!0,version:r.defaultCookieContent.version,localeVariantName:r.defaultCookieContent.localeVariantName,localeVariantVersion:r.defaultCookieContent.localeVariantVersion,customVendorListVersion:(0,p.getCustomVendorListVersion)(),customPurposes:w(e),consentString:(0,c.isInfoBannerOnly)()?"":h.TCString.encode(o),configVersion:r.defaultCookieContent.configVersion,policyVersion:r.defaultCookieContent.policyVersion,addtlConsent:P(e)};t([i,o])}).catch(function(e){return n(e)})})}function S(){u.default.remove(E),u.default.remove(E,{expires:(0,c.getCookieExpireInDays)(),secure:!0,sameSite:"none"}),u.default.remove(C)}function L(){try{return window.self!==window.top}catch(e){return!0}}function w(e,t){return t||(t=(0,c.getCustomPurposes)()),"object"===(void 0===e?"undefined":(0,r.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 P(e){return 1!==e?e.addtlConsent:d.ADDITIONAL_CONSENT_VERSION+(0,p.getAllAdditionalConsentProviders)()}function N(e){return void 0!==u.default.get(e)}function V(){var e=(0,p.getVendorList)(),t=new h.TCModel(e);return t.cmpId=d.OIL_SPEC.CMP_ID,t.publisherCountryCode="IT",t.cmpVersion=d.OIL_SPEC.CMP_VERSION,t.isServiceSpecific=d.OIL_SPEC.IS_SERVICE_SPECIFIC,t.purposeOneTreatment=!0,t.supportOOB=!1,t.consentScreen=1,t}function R(){var e=void 0,t=void 0;return b({name:E}).then(function(n){return n?((e=n.consentData).supportOOB=!1,e.gvl=(0,p.getVendorList)(),t=n.consentString):(e=V(),t=e.gvl.isReady?h.TCString.encode(e):""),{name:E,expires:(0,c.getCookieExpireInDays)(),defaultCookieContent:{opt_in:!1,version:f.OilVersion.get(),localeVariantName:(0,c.getLocaleVariantName)(),localeVariantVersion:(0,f.getLocaleVariantVersion)(),customPurposes:w((0,c.getDefaultToOptin)()?1:0),consentData:e,consentString:(0,c.isInfoBannerOnly)()?"":t,configVersion:(0,c.getConfigVersion)(),policyVersion:(0,c.getPolicyVersion)(),addtlConsent:d.ADDITIONAL_CONSENT_VERSION},outdated_cookie_content_keys:["opt_in","timestamp","version","localeVariantName","localeVariantVersion","privacy","addtlConsent"]}})}},function(e,t,n){var r=n(41);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},function(e,t,n){"use strict";var r=n(168)(!0);n(95)(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})})},function(e,t,n){var r=n(10).f,o=n(16),i=n(1)("toStringTag");e.exports=function(e,t,n){e&&!o(e=n?e:e.prototype,i)&&r(e,i,{configurable:!0,value:t})}},function(e,t,n){n(171);for(var r=n(2),o=n(15),i=n(23),s=n(1)("toStringTag"),u="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),a=0;a<u.length;a++){var c=u[a],l=r[c],f=l&&l.prototype;f&&!f[s]&&o(f,s,c),i[c]=i.Array}},function(e,t,n){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),r(n(125)),r(n(234)),r(n(235)),r(n(48)),r(n(126))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(11);t.Response=function(){this.cmpId=r.CmpApiModel.cmpId,this.cmpVersion=r.CmpApiModel.cmpVersion,this.gdprApplies=r.CmpApiModel.gdprApplies,this.tcfPolicyVersion=r.CmpApiModel.tcfPolicyVersion}},function(e,t,n){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),r(n(230)),r(n(231)),r(n(232))},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(51),s=n(47),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.respond=function(){this.throwIfParamInvalid(),this.invokeCallback(new s.TCData(this.param,this.listenerId))},t.prototype.throwIfParamInvalid=function(){if(!(void 0===this.param||Array.isArray(this.param)&&this.param.every(Number.isInteger)))throw new Error("Invalid Parameter")},t}(i.Command);t.GetTCDataCommand=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t,n,r){this.success=!0,Object.assign(this,{callback:e,listenerId:n,param:t,next:r});try{this.respond()}catch(e){this.invokeCallback(null)}}return e.prototype.invokeCallback=function(e){null!==e?"function"==typeof this.next?this.callback(this.next,e,!0):this.callback(e,!0):this.callback(e,!1)},e}();t.Command=r},function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},,,function(e,t,n){"use strict";t.__esModule=!0;var r=s(n(166)),o=s(n(174)),i="function"==typeof o.default&&"symbol"==typeof r.default?function(e){return typeof e}:function(e){return e&&"function"==typeof o.default&&e.constructor===o.default&&e!==o.default.prototype?"symbol":typeof e};function s(e){return e&&e.__esModule?e:{default:e}}t.default="function"==typeof o.default&&"symbol"===i(r.default)?function(e){return void 0===e?"undefined":i(e)}:function(e){return e&&"function"==typeof o.default&&e.constructor===o.default&&e!==o.default.prototype?"symbol":void 0===e?"undefined":i(e)}},function(e,t,n){e.exports={default:n(139),__esModule:!0}},function(e,t,n){e.exports={default:n(200),__esModule:!0}},function(e,t,n){var r=n(12),o=n(2).document,i=r(o)&&r(o.createElement);e.exports=function(e){return i?o.createElement(e):{}}},function(e,t,n){var r=n(12);e.exports=function(e,t){if(!r(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!r(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t,n){var r=n(62)("keys"),o=n(43);e.exports=function(e){return r[e]||(r[e]=o(e))}},function(e,t,n){var r=n(0),o=n(2),i=o["__core-js_shared__"]||(o["__core-js_shared__"]={});(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n(27)?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t){t.f=Object.getOwnPropertySymbols},,,,,,function(e,t,n){t.f=n(1)},function(e,t,n){var r=n(2),o=n(0),i=n(27),s=n(70),u=n(10).f;e.exports=function(e){var t=o.Symbol||(o.Symbol=i?{}:r.Symbol||{});"_"==e.charAt(0)||e in t||u(t,e,{value:s.f(e)})}},function(e,t,n){var r=n(25),o=n(1)("toStringTag"),i="Arguments"==r(function(){return arguments}());e.exports=function(e){var t,n,s;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),o))?n:i?r(t):"Object"==(s=r(t))&&"function"==typeof t.callee?"Arguments":s}},function(e,t,n){"use strict";var r=n(41);e.exports.f=function(e){return new function(e){var t,n;this.promise=new e(function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r}),this.resolve=r(t),this.reject=r(n)}(e)}},function(e,t,n){var r,o,i; /*! * JavaScript Cookie v2.1.4 * https://github.com/js-cookie/js-cookie * * Copyright 2006, 2015 Klaus Hartl & Fagner Brack * Released under the MIT license */ /*! * JavaScript Cookie v2.1.4 * https://github.com/js-cookie/js-cookie * * Copyright 2006, 2015 Klaus Hartl & Fagner Brack * Released under the MIT license */ void 0===(o="function"==typeof(r=i=function(){function e(){for(var e=0,t={};e<arguments.length;e++){var n=arguments[e];for(var r in n)t[r]=n[r]}return t}return function t(n){function r(t,o,i){var s;if("undefined"!=typeof document){if(arguments.length>1){if("number"==typeof(i=e({path:"/"},r.defaults,i)).expires){var u=new Date;u.setMilliseconds(u.getMilliseconds()+864e5*i.expires),i.expires=u}i.expires=i.expires?i.expires.toUTCString():"";try{s=JSON.stringify(o),/^[\{\[]/.test(s)&&(o=s)}catch(e){}o=n.write?n.write(o,t):encodeURIComponent(String(o)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),t=(t=(t=encodeURIComponent(String(t))).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent)).replace(/[\(\)]/g,escape);var a="";for(var c in i)i[c]&&(a+="; "+c,!0!==i[c]&&(a+="="+i[c]));return document.cookie=t+"="+o+a}t||(s={});for(var l=document.cookie?document.cookie.split("; "):[],f=/(%[0-9A-Z]{2})+/g,d=0;d<l.length;d++){var p=l[d].split("="),h=p.slice(1).join("=");'"'===h.charAt(0)&&(h=h.slice(1,-1));try{var _=p[0].replace(f,decodeURIComponent);if(h=n.read?n.read(h,_):n(h,_)||h.replace(f,decodeURIComponent),this.json)try{h=JSON.parse(h)}catch(e){}if(t===_){s=h;break}t||(s[_]=h)}catch(e){}}return s}}return r.set=r,r.get=function(e){return r.call(r,e)},r.getJSON=function(){return r.apply({json:!0},[].slice.call(arguments))},r.defaults={},r.remove=function(t,n){r(t,"",e(n,{expires:-1}))},r.withConverter=t,r}(function(){})})?r.call(t,n,t,e):r)||(e.exports=o),e.exports=i()},function(e,t,n){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),r(n(107)),r(n(76)),r(n(219)),r(n(223)),r(n(112)),r(n(118))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(4),o=function(){function e(){}var t,n,o,i,s,u,a,c,l,f,d,p,h,_,v,g,y,m;return t=r.Fields.cmpId,n=r.Fields.cmpVersion,o=r.Fields.consentLanguage,i=r.Fields.consentScreen,s=r.Fields.created,u=r.Fields.isServiceSpecific,a=r.Fields.lastUpdated,c=r.Fields.policyVersion,l=r.Fields.publisherCountryCode,f=r.Fields.publisherLegitimateInterests,d=r.Fields.publisherConsents,p=r.Fields.purposeConsents,h=r.Fields.purposeLegitimateInterests,_=r.Fields.purposeOneTreatment,v=r.Fields.specialFeatureOptins,g=r.Fields.useNonStandardStacks,y=r.Fields.vendorListVersion,m=r.Fields.version,e[t]=12,e[n]=12,e[o]=12,e[i]=6,e[s]=36,e[u]=1,e[a]=36,e[c]=6,e[l]=12,e[f]=24,e[d]=24,e[p]=24,e[h]=24,e[_]=1,e[v]=12,e[g]=1,e[y]=12,e[m]=6,e.anyBoolean=1,e.encodingType=1,e.maxId=16,e.numCustomPurposes=6,e.numEntries=12,e.numRestrictions=12,e.purposeId=6,e.restrictionType=2,e.segmentType=3,e.singleOrRange=1,e.vendorId=16,e}();t.BitLength=o},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),(r=t.RestrictionType||(t.RestrictionType={}))[r.NOT_ALLOWED=0]="NOT_ALLOWED",r[r.REQUIRE_CONSENT=1]="REQUIRE_CONSENT",r[r.REQUIRE_LI=2]="REQUIRE_LI"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(31),o=n(3),i=n(4),s=function(){function e(){}return e.encode=function(e,t){for(var n="",o=1;o<=t;o++)n+=r.BooleanEncoder.encode(e.has(o));return n},e.decode=function(e,t){if(e.length!==t)throw new o.DecodingError("bitfield encoding length mismatch");for(var n=new i.Vector,s=1;s<=t;s++)r.BooleanEncoder.decode(e[s-1])&&n.set(s);return n.bitLength=e.length,n},e}();t.FixedVectorEncoder=s},function(e,t,n){var r=n(60),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},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 r,o=v(n(55)),i=v(n(89)),s=v(n(90)),u=v(n(57)),a=v(n(207)),c=v(n(210)),l=v(n(22)),f=(r=(0,c.default)(a.default.mark(function e(){var t,n;return a.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,L();case 2:return t=e.sent,n=(0,d.getLanguageFromConfigObject)(),e.abrupt("return",t.changeLanguage(n).then(function(){return t}));case 5:case"end":return e.stop()}},e,this)})),function(){return r.apply(this,arguments)});t.loadVendorListAndCustomVendorList=function(){return E&&C&&I?new l.default(function(e){e()}):O||(t.pendingVendorListPromise=O=new l.default(function(e){f().then(function(n){t.cachedVendorList=E=n,l.default.all([T(),S()]).then(function(){t.pendingVendorListPromise=O=null,e()})}).catch(function(n){(0,p.logError)("OIL getVendorList failed and returned error: "+n+". Falling back to default vendor list!"),l.default.all([T(),S()]).then(function(){t.pendingVendorListPromise=O=null,e()})})}),O)},t.getPurposes=w,t.getSpecialPurposes=function(){return E?E.specialPurposes:null},t.getFeatures=function(){return E?E.features:null},t.getLegitimateInterest=P,t.getSpecialFeatures=N,t.getPurposeIds=function(){return(0,u.default)(w()).map(function(e){var t=(0,s.default)(e,2);return(t[0],t[1]).id})},t.getLegintIds=function(){return(0,u.default)(P()).map(function(e){var t=(0,s.default)(e,2);return(t[0],t[1]).id})},t.getSpecialFeatureIds=function(){return(0,u.default)(N()).map(function(e){var t=(0,s.default)(e,2);return(t[0],t[1]).id})},t.getVendors=V,t.getVendorIds=R,t.getVendorList=function(){return E||L()},t.getCustomVendorList=function(){return C||y},t.getAdditionalConsentList=M,t.getAllAdditionalConsentProviders=function(){var e=M();return"object"===(void 0===e?"undefined":(0,o.default)(e))&&(e=(0,i.default)(e)),e.map(function(e){return e.id}).join(".")},t.getCustomVendorListVersion=function(){return C&&!C.isDefault?C.vendorListVersion:void 0},t.clearVendorListCache=function(){t.cachedVendorList=E=void 0,t.cachedCustomVendorList=C=void 0,t.pendingVendorListPromise=O=null,b=null},t.getVendorsToDisplay=function(){return(0,d.getShowLimitedVendors)()?D():V()},t.getLimitedVendors=D,t.getLimitedVendorIds=F;var d=n(14),p=n(21),h=n(20),_=n(32);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]},y=t.DEFAULT_CUSTOM_VENDOR_LIST={vendorListVersion:-1,isDefault:!0,vendors:[]},m=t.DEFAULT_ADDITIONAL_CONSENT_LIST={providers:{}},E=t.cachedVendorList=null,C=t.cachedCustomVendorList=null,I=t.cachedAdditionalConsent=null,O=t.pendingVendorListPromise=null,b=null,A=null;function T(){return new l.default(function(e){var n=(0,d.getCustomVendorListUrl)();n?(0,h.fetchJsonData)(n).then(function(n){t.cachedCustomVendorList=C=n,e()}).catch(function(n){t.cachedCustomVendorList=C=y,(0,p.logError)("OIL getCustomVendorList failed and returned error: "+n+". Falling back to default custom vendor list!"),e()}):(t.cachedCustomVendorList=C=y,e())})}function S(){return new l.default(function(e){var n=(0,d.getAdditionalConsentListUrl)();n?(0,h.fetchJsonData)(n).then(function(n){t.cachedAdditionalConsent=I=n,e()}).catch(function(n){t.cachedAdditionalConsent=I=m,(0,p.logError)("OIL getCustomVendorList failed and returned error: "+n+". Falling back to default custom vendor list!"),e()}):(t.cachedAdditionalConsent=I=m,e())})}function L(){return A||(_.GVL.baseUrl=(0,d.getIabVendorListDomain)(),b=new _.GVL,A=b.readyPromise.then(function(){return b})),A}function w(){return E?E.purposes:j(g.purposeIds)}function P(){return j(g.legintIds)}function N(){return E?E.specialFeatures:j(g.specialFeaturesIds)}function V(){return E?(0,i.default)(E.vendors):j(x())}function R(){return V().map(function(e){return e.id})}function M(){var e=(I||m).providers,t=[];return(0,d.getAtpWhitelist)()&&(0,d.getAtpWhitelist)().length>0?((0,d.getAtpWhitelist)().forEach(function(n){void 0!==e[n]&&(t[n]=e[n])}),t):e}function D(){var e=V(),t=F();return(0,p.logInfo)("limiting vendors"),e.filter(function(e){return t.indexOf(e.id)>-1})}function F(){var e=void 0;e=E?R():x();var t=(0,d.getIabVendorWhitelist)(),n=(0,d.getIabVendorBlacklist)();return t&&t.length>0?e=e.filter(function(e){return t.indexOf(e)>-1}):n&&n.length>0&&(e=e.filter(function(e){return-1===n.indexOf(e)})),e}function x(){return function(e,t){for(;e--;)t[e]=e+1;return t}(g.maxVendorId,[])}function j(e){return e.map(function(e){return{id:e}})}},,function(e,t,n){var r=n(52);e.exports=function(e){return Object(r(e))}},,,,,,,function(e,t,n){e.exports={default:n(152),__esModule:!0}},function(e,t,n){"use strict";t.__esModule=!0;var r=i(n(202)),o=i(n(106));function i(e){return e&&e.__esModule?e:{default:e}}t.default=function(e,t){if(Array.isArray(e))return e;if((0,r.default)(Object(e)))return function(e,t){var n=[],r=!0,i=!1,s=void 0;try{for(var u,a=(0,o.default)(e);!(r=(u=a.next()).done)&&(n.push(u.value),!t||n.length!==t);r=!0);}catch(e){i=!0,s=e}finally{try{!r&&a.return&&a.return()}finally{if(i)throw s}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}},function(e,t,n){e.exports=!n(8)&&!n(24)(function(){return 7!=Object.defineProperty(n(58)("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){var r=n(16),o=n(13),i=n(150)(!1),s=n(61)("IE_PROTO");e.exports=function(e,t){var n,u=o(e),a=0,c=[];for(n in u)n!=s&&r(u,n)&&c.push(n);for(;t.length>a;)r(u,n=t[a++])&&(~i(c,n)||c.push(n));return c}},function(e,t,n){var r=n(25);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},function(e,t,n){var r=n(26),o=n(13),i=n(28).f;e.exports=function(e){return function(t){for(var n,s=o(t),u=r(s),a=u.length,c=0,l=[];a>c;)i.call(s,n=u[c++])&&l.push(e?[n,s[n]]:s[n]);return l}}},function(e,t,n){"use strict";var r=n(27),o=n(5),i=n(96),s=n(15),u=n(23),a=n(169),c=n(45),l=n(170),f=n(1)("iterator"),d=!([].keys&&"next"in[].keys()),p=function(){return this};e.exports=function(e,t,n,h,_,v,g){a(n,t,h);var y,m,E,C=function(e){if(!d&&e in A)return A[e];switch(e){case"keys":case"values":return function(){return new n(this,e)}}return function(){return new n(this,e)}},I=t+" Iterator",O="values"==_,b=!1,A=e.prototype,T=A[f]||A["@@iterator"]||_&&A[_],S=T||C(_),L=_?O?C("entries"):S:void 0,w="Array"==t&&A.entries||T;if(w&&(E=l(w.call(new e)))!==Object.prototype&&E.next&&(c(E,I,!0),r||"function"==typeof E[f]||s(E,f,p)),O&&T&&"values"!==T.name&&(b=!0,S=function(){return T.call(this)}),r&&!g||!d&&!b&&A[f]||s(A,f,S),u[t]=S,u[I]=p,_)if(y={values:O?S:C("values"),keys:v?S:C("keys"),entries:L},g)for(m in y)m in A||i(A,m,y[m]);else o(o.P+o.F*(d||b),t,y);return y}},function(e,t,n){e.exports=n(15)},function(e,t,n){var r=n(7),o=n(142),i=n(63),s=n(61)("IE_PROTO"),u=function(){},a=function(){var e,t=n(58)("iframe"),r=i.length;for(t.style.display="none",n(98).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),a=e.F;r--;)delete a.prototype[i[r]];return a()};e.exports=Object.create||function(e,t){var n;return null!==e?(u.prototype=r(e),n=new u,u.prototype=null,n[s]=e):n=a(),void 0===t?n:o(n,t)}},function(e,t,n){var r=n(2).document;e.exports=r&&r.documentElement},function(e,t,n){var r=n(92),o=n(63).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},function(e,t){},function(e,t,n){var r=n(72),o=n(1)("iterator"),i=n(23);e.exports=n(0).getIteratorMethod=function(e){if(void 0!=e)return e[o]||e["@@iterator"]||i[r(e)]}},function(e,t,n){var r=n(7),o=n(41),i=n(1)("species");e.exports=function(e,t){var n,s=r(e).constructor;return void 0===s||void 0==(n=r(s)[i])?t:o(n)}},function(e,t,n){var r,o,i,s=n(40),u=n(189),a=n(98),c=n(58),l=n(2),f=l.process,d=l.setImmediate,p=l.clearImmediate,h=l.MessageChannel,_=l.Dispatch,v=0,g={},y=function(){var e=+this;if(g.hasOwnProperty(e)){var t=g[e];delete g[e],t()}},m=function(e){y.call(e.data)};d&&p||(d=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return g[++v]=function(){u("function"==typeof e?e:Function(e),t)},r(v),v},p=function(e){delete g[e]},"process"==n(25)(f)?r=function(e){f.nextTick(s(y,e,1))}:_&&_.now?r=function(e){_.now(s(y,e,1))}:h?(i=(o=new h).port2,o.port1.onmessage=m,r=s(i.postMessage,i,1)):l.addEventListener&&"function"==typeof postMessage&&!l.importScripts?(r=function(e){l.postMessage(e+"","*")},l.addEventListener("message",m,!1)):r="onreadystatechange"in c("script")?function(e){a.appendChild(c("script")).onreadystatechange=function(){a.removeChild(this),y.call(e)}}:function(e){setTimeout(s(y,e,1),0)}),e.exports={set:d,clear:p}},function(e,t){e.exports=function(e){try{return{e:!1,v:e()}}catch(e){return{e:!0,v:e}}}},function(e,t,n){var r=n(7),o=n(12),i=n(73);e.exports=function(e,t){if(r(e),o(t)&&t.constructor===e)return t;var n=i.f(e);return(0,n.resolve)(t),n.promise}},function(e,t,n){e.exports={default:n(205),__esModule:!0}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(3),o=function(){function e(){}return e.encode=function(e){if(!/^[0-1]+$/.test(e))throw new r.EncodingError("Invalid bitField");var t=e.length%this.LCM;e+=t?"0".repeat(this.LCM-t):"";for(var n="",o=0;o<e.length;o+=this.BASIS)n+=this.DICT[parseInt(e.substr(o,this.BASIS),2)];return n},e.decode=function(e){if(!/^[A-Za-z0-9\-_]+$/.test(e))throw new r.DecodingError("Invalidly encoded Base64URL string");for(var t="",n=0;n<e.length;n++){var o=this.REVERSE_DICT.get(e[n]).toString(2);t+="0".repeat(this.BASIS-o.length)+o}return t},e.DICT="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",e.REVERSE_DICT=new Map([["A",0],["B",1],["C",2],["D",3],["E",4],["F",5],["G",6],["H",7],["I",8],["J",9],["K",10],["L",11],["M",12],["N",13],["O",14],["P",15],["Q",16],["R",17],["S",18],["T",19],["U",20],["V",21],["W",22],["X",23],["Y",24],["Z",25],["a",26],["b",27],["c",28],["d",29],["e",30],["f",31],["g",32],["h",33],["i",34],["j",35],["k",36],["l",37],["m",38],["n",39],["o",40],["p",41],["q",42],["r",43],["s",44],["t",45],["u",46],["v",47],["w",48],["x",49],["y",50],["z",51],["0",52],["1",53],["2",54],["3",55],["4",56],["5",57],["6",58],["7",59],["8",60],["9",61],["-",62],["_",63]]),e.BASIS=6,e.LCM=24,e}();t.Base64Url=o},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.root=null,t}return o(t,e),t.prototype.isEmpty=function(){return!this.root},t.prototype.add=function(e){var t,n={value:e,left:null,right:null};if(this.isEmpty())this.root=n;else for(t=this.root;;)if(e<t.value){if(null===t.left){t.left=n;break}t=t.left}else{if(!(e>t.value))break;if(null===t.right){t.right=n;break}t=t.right}},t.prototype.get=function(){for(var e=[],t=this.root;t;)if(t.left){for(var n=t.left;n.right&&n.right!=t;)n=n.right;n.right==t?(n.right=null,e.push(t.value),t=t.right):(n.right=t,t=t.left)}else e.push(t.value),t=t.right;return e},t.prototype.contains=function(e){for(var t=!1,n=this.root;n;){if(n.value===e){t=!0;break}e>n.value?n=n.right:e<n.value&&(n=n.left)}return t},t.prototype.min=function(e){var t;for(void 0===e&&(e=this.root);e;)e.left?e=e.left:(t=e.value,e=null);return t},t.prototype.max=function(e){var t;for(void 0===e&&(e=this.root);e;)e.right?e=e.right:(t=e.value,e=null);return t},t.prototype.remove=function(e,t){void 0===t&&(t=this.root);for(var n=null,r="left";t;)if(e<t.value)n=t,t=t.left,r="left";else if(e>t.value)n=t,t=t.right,r="right";else{if(t.left||t.right)if(t.left)if(t.right){var o=this.min(t.right);this.remove(o,t.right),t.value=o}else n?n[r]=t.left:this.root=t.left;else n?n[r]=t.right:this.root=t.right;else n?n[r]=null:this.root=null;t=null}},t}(n(17).Cloneable);t.BinarySearchTree=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(){}return e.cmpId="cmpId",e.cmpVersion="cmpVersion",e.consentLanguage="consentLanguage",e.consentScreen="consentScreen",e.created="created",e.supportOOB="supportOOB",e.isServiceSpecific="isServiceSpecific",e.lastUpdated="lastUpdated",e.numCustomPurposes="numCustomPurposes",e.policyVersion="policyVersion",e.publisherCountryCode="publisherCountryCode",e.publisherCustomConsents="publisherCustomConsents",e.publisherCustomLegitimateInterests="publisherCustomLegitimateInterests",e.publisherLegitimateInterests="publisherLegitimateInterests",e.publisherConsents="publisherConsents",e.publisherRestrictions="publisherRestrictions",e.purposeConsents="purposeConsents",e.purposeLegitimateInterests="purposeLegitimateInterests",e.purposeOneTreatment="purposeOneTreatment",e.specialFeatureOptins="specialFeatureOptins",e.useNonStandardStacks="useNonStandardStacks",e.vendorConsents="vendorConsents",e.vendorLegitimateInterests="vendorLegitimateInterests",e.vendorListVersion="vendorListVersion",e.vendorsAllowed="vendorsAllowed",e.vendorsDisclosed="vendorsDisclosed",e.version="version",e}();t.Fields=r},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(17),s=n(3),u=n(77),a=function(e){function t(t,n){var r=e.call(this)||this;return void 0!==t&&(r.purposeId=t),void 0!==n&&(r.re