UNPKG

@jumpgroup/avacy-banner

Version:

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

16 lines 64.5 kB
/*! 1.2.0-RELEASE */!function(e){function t(t){for(var n,r,i=t[0],s=t[1],a=0,c=[];a<i.length;a++)r=i[a],o[r]&&c.push(o[r][0]),o[r]=0;for(n in s)Object.prototype.hasOwnProperty.call(s,n)&&(e[n]=s[n]);for(u&&u(t);c.length;)c.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 s=document.getElementsByTagName("head")[0],a=document.createElement("script");a.charset="utf-8",a.timeout=120,r.nc&&a.setAttribute("nonce",r.nc),a.src=function(e){return r.p+""+e+".1.2.0-RELEASE.chunk.js"}(e);var u=setTimeout(function(){c({type:"timeout",target:a})},12e4);function c(t){a.onerror=a.onload=null,clearTimeout(u);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,s=new Error("Loading chunk "+e+" failed.\n("+r+": "+i+")");s.type=r,s.request=i,n[1](s)}o[e]=void 0}}a.onerror=a.onload=c,s.appendChild(a)}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="//oil.axelspringer.com/release/1.2.0/",r.oe=function(e){throw console.error(e),e};var i=window.oilJsonp=window.oilJsonp||[],s=i.push.bind(i);i.push=t,i=i.slice();for(var a=0;a<i.length;a++)t(i[a]);var u=s;r(r.s=66)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.logError=function(){((0,o.isDev)()||(0,r.isVerboseCookieSet)())&&window.console&&a(window.console.error,arguments)},t.logInfo=function(){((0,o.isDev)()||(0,r.isVerboseCookieSet)())&&window.console&&a(window.console.info,arguments)},t.logWarn=function(){((0,o.isDev)()||(0,r.isVerboseCookieSet)())&&window.console&&a(window.console.warn,arguments)},t.logPreviewInfo=function(){((0,o.isDev)()||(0,i.isPreviewMode)()||(0,r.isPreviewCookieSet)()||(0,r.isVerboseCookieSet)())&&a(window.console.info,arguments)};var o=n(1),r=n(6),i=n(2),s="OIL: ";function a(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(u(n))}catch(e){}}else window.console.log(u(n))}function u(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}),t.OilVersion=void 0,t.isProd=function(){return!1},t.isDev=function(){return!1},t.getOrigin=s,t.sendEventToHostSite=function(e){window.postMessage(e,s()),(0,o.logInfo)("Sent postmessage event: "+e)},t.removeMessageListener=function(e){l(d,e,!1)},t.registerMessageListener=function(e){c(f,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.setGlobalOilObject=function(e,t){window[r.OIL_GLOBAL_OBJECT_NAME]||(window[r.OIL_GLOBAL_OBJECT_NAME]={}),window[r.OIL_GLOBAL_OBJECT_NAME][e]=t},t.getGlobalOilObject=function(e){return window[r.OIL_GLOBAL_OBJECT_NAME]?window[r.OIL_GLOBAL_OBJECT_NAME][e]:void 0},t.getLocaleVariantVersion=function(){var e=(0,i.getLocale)();return e&&e.version?e.version:0},t.getCommandCollection=function(){return window.__cmp?window.__cmp.commandCollection:void 0},t.fetchJsonData=function(e){return new Promise(function(t,n){var r=new XMLHttpRequest;(0,o.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 o=n(0),r=n(5),i=n(2);function s(){return window.location.origin||(window.location.origin=window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"")),window.location.origin}var a=window.addEventListener?"addEventListener":"attachEvent",u=window.removeEventListener?"removeEventListener":"removeEvent",c=window[a],l=window[u],f="attachEvent"===a?"onmessage":"message",d="removeEvent"===u?"onmessage":"message";t.OilVersion={get:function(){return"1.2.0-RELEASE"},getLatestReleaseVersion:function(){return"1.2.0"}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getConfigValue=a,t.isPreviewMode=function(){return a(o.OIL_CONFIG.ATTR_PREVIEW_MODE,!1)},t.isPoiActive=function(){return a(o.OIL_CONFIG.ATTR_ACTIVATE_POI,!1)},t.isSubscriberSetCookieActive=function(){return a(o.OIL_CONFIG.ATTR_SUB_SET_COOKIE,!0)},t.getHubOrigin=c,t.getHubPath=l,t.getPublicPath=f,t.getLocaleUrl=d,t.getIabVendorListUrl=function(){return a(o.OIL_CONFIG.ATTR_IAB_VENDOR_LIST_URL,"https://vendorlist.consensu.org/vendorlist.json")},t.getIabVendorBlacklist=function(){return a(o.OIL_CONFIG.ATTR_IAB_VENDOR_BLACKLIST,void 0)},t.getIabVendorWhitelist=function(){return a(o.OIL_CONFIG.ATTR_IAB_VENDOR_WHITELIST,void 0)},t.getPoiGroupName=function(){return a(o.OIL_CONFIG.ATTR_POI_GROUP_NAME,"default")},t.getCookieExpireInDays=function(){return a(o.OIL_CONFIG.ATTR_COOKIE_EXPIRES_IN_DAYS,31)},t.getLocaleVariantName=p,t.getLanguage=function(){return v(p())},t.getLanguageFromLocale=v,t.getHubLocation=function(){return c()&&l()?c()+l():null},t.resetConfiguration=function(){(0,i.setGlobalOilObject)("CONFIG",null)},t.getCustomPurposes=g,t.getCustomPurposeIds=function(){return g().map(function(e){return e.id})},t.getAdvancedSettingsPurposesDefault=function(){return a(o.OIL_CONFIG.ATTR_ADVANCED_SETTINGS_PURPOSES_DEFAULT,!1)},t.getDefaultToOptin=function(){return a(o.OIL_CONFIG.ATTR_DEFAULT_TO_OPTIN,!1)},t.getLocale=h,t.setLocale=function(e){u(o.OIL_CONFIG.ATTR_LOCALE,e)};var o=n(5),r=n(0),i=n(1);function s(){if(!(0,i.getGlobalOilObject)("CONFIG")){var e=document.querySelector('script[type="application/configuration"]#oil-configuration');null===e&&(0,r.logInfo)("Using default config"),(0,i.setGlobalOilObject)("CONFIG",function(e){var t={};try{e&&e.text&&(t=JSON.parse(e.text),(0,r.logInfo)("Parsed config",t))}catch(e){(0,r.logError)("Error config",e)}return t}(e)),(s=h())&&"string"!=typeof s||void 0!==d()||((0,r.logError)("Incorrect or missing locale parameter found. Please review documentation on how to set the locale object in your configuration."),t="https://oil-backend.herokuapp.com/oil/api/userViewLocales/"+p(),u(o.OIL_CONFIG.ATTR_LOCALE_URL,t)),f()&&(n.p=f())}var t,s;return(0,i.getGlobalOilObject)("CONFIG")}function a(e,t){var n=s();return n&&n[e]?n[e]:t}function u(e,t){s()[e]=t}function c(){var e=a(o.OIL_CONFIG.ATTR_HUB_ORIGIN,"//oil.axelspringer.com");return e?-1!==e.indexOf("http")?e:location.protocol+e:null}function l(){return a(o.OIL_CONFIG.ATTR_HUB_PATH,"/release/"+i.OilVersion.getLatestReleaseVersion()+"/hub.html")}function f(){return a(o.OIL_CONFIG.ATTR_PUBLIC_PATH,void 0)}function d(){return a(o.OIL_CONFIG.ATTR_LOCALE_URL,void 0)}function p(){var e=h();return e||(e="enEN_01"),e&&(0,i.isObject)(e)?e.localeId:e}function v(e){return e.substring(0,2)}function g(){return a(o.OIL_CONFIG.ATTR_CUSTOM_PURPOSES,[])}function h(){return a(o.OIL_CONFIG.ATTR_LOCALE,void 0)}},function(e,t,n){var o=n(43)("wks"),r=n(33),i=n(4).Symbol,s="function"==typeof i;(e.exports=function(e){return o[e]||(o[e]=s&&i[e]||(s?i:r)("Symbol."+e))}).store=o},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";Object.defineProperty(t,"__esModule",{value:!0}),t.OIL_SPEC={CMP_ID:80,CMP_VERSION:1,LATEST_CONSENT_STRING_VERSION:1},t.OIL_CONFIG={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_SUB_SET_COOKIE:"poi_subscriber_set_cookie",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_PERSIST_MINIMUM_TRACKING:"persist_min_tracking",ATTR_LOCALE:"locale",ATTR_THEME:"theme",ATTR_TIMEOUT:"timeout",ATTR_LOCALE_URL:"locale_url",ATTR_IAB_VENDOR_LIST_URL:"iabVendorListUrl",ATTR_CUSTOM_PURPOSES:"customPurposes",ATTR_IAB_VENDOR_BLACKLIST:"iabVendorBlacklist",ATTR_IAB_VENDOR_WHITELIST:"iabVendorWhitelist",ATTR_ADVANCED_SETTINGS_PURPOSES_DEFAULT:"advanced_settings_purposes_default",ATTR_DEFAULT_TO_OPTIN:"default_to_optin"},t.EVENT_NAME_OPT_IN="oil_optin_done",t.EVENT_NAME_SOI_OPT_IN="oil_soi_optin_done",t.EVENT_NAME_POI_OPT_IN="oil_poi_optin_done",t.PRIVACY_MINIMUM_TRACKING=0,t.PRIVACY_FULL_TRACKING=1,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.POI_FALLBACK_NAME="fallback",t.POI_FALLBACK_GROUP_NAME="group_name",t.POI_PAYLOAD="payload",t.DATAQA_PRIVACY_PAGE="oil-PrivacyPage",t.DATA_CONTEXT_YES="YES",t.DATA_CONTEXT_ADVANCED_SETTINGS="ADVANCEDSETTINGS",t.DATA_CONTEXT_BACK="BACK",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_GLOBAL_OBJECT_NAME="AS_OIL"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.setSessionCookie=_,t.setDomainCookie=m,t.getOilCookie=y,t.hasOutdatedOilCookie=O,t.getSoiCookie=function(){var e=T(),t=O(e)?function(e){var t=i.default.getJSON(g),n=e.defaultCookieContent;return n.opt_in=t.opt_in,n.version=t.version,n.localeVariantName=t.localeVariantName,n.localeVariantVersion=t.localeVariantVersion,n.customPurposes=S(t.privacy),n.consentData.setConsentLanguage((0,a.getLanguageFromLocale)(t.localeVariantName)),n.consentData.setPurposesAllowed(b(t.privacy)),n.consentData.setVendorsAllowed((0,l.getLimitedVendorIds)()),n.consentData.setGlobalVendorList((0,l.getVendorList)()),n.consentString=n.consentData.getConsentString(),n}(e):y(e);return(0,s.logInfo)("Current Oil data from domain cookie: ",t),t},t.setSoiCookieWithConsentData=function(e,t){return new Promise(function(n,o){(0,l.loadVendorList)().then(function(){var o=T();e.setGlobalVendorList((0,l.getVendorList)());var r={opt_in:!0,version:o.defaultCookieContent.version,localeVariantName:o.defaultCookieContent.localeVariantName,localeVariantVersion:o.defaultCookieContent.localeVariantVersion,customPurposes:t,consentString:e.getConsentString()};m(o.name,r,o.expires),n(r)}).catch(function(e){return o(e)})})},t.buildSoiCookie=w,t.setSoiCookie=function(e){return new Promise(function(t,n){w(e).then(function(e){m(g,e,(0,a.getCookieExpireInDays)()),t(e)}).catch(function(e){return n(e)})})},t.setPreviewCookie=function(){_(p,"true")},t.setVerboseCookie=function(){_(v,"true")},t.removePreviewCookie=function(){i.default.remove(p)},t.removeVerboseCookie=function(){i.default.remove(v)},t.isPreviewCookieSet=function(){return"true"===i.default.get(p)},t.isVerboseCookieSet=function(){return"true"===i.default.get(v)},t.removeSubscriberCookies=I,t.removeHubCookie=function(e){I(),e&&i.default.remove(e+"_"+g)},t.isBrowserCookieEnabled=function(){i.default.set("oil_cookie_exp","cookiedata");var e=C("oil_cookie_exp");return i.default.remove("oil_cookie_exp"),e},t.getStandardPurposesWithConsent=b,t.getCustomPurposesWithConsent=S;var r,i=(r=n(10))&&r.__esModule?r:{default:r},s=n(0),a=n(2),u=n(1),c=n(5),l=n(9),f=n(1),d=n(20).ConsentString,p="oil_preview",v="oil_verbose",g="oil_data",h="oil_data_session";function _(e,t){i.default.set(e,t)}function m(e,t,n){delete t.consentData,i.default.set(e,t,{expires:n})}function y(e){if(A(e.name,Object.keys(e.defaultCookieContent))){var t=i.default.getJSON(e.name);return t.consentData=new d(t.consentString),t}return e.defaultCookieContent}function O(e){return A(e.name,e.outdated_cookie_content_keys)}function w(e){return new Promise(function(t,n){(0,l.loadVendorList)().then(function(){var n=T(),o=n.defaultCookieContent.consentData;o.setGlobalVendorList((0,l.getVendorList)()),o.setPurposesAllowed(b(e)),o.setVendorsAllowed((0,l.getLimitedVendorIds)()),t({opt_in:!0,version:n.defaultCookieContent.version,localeVariantName:n.defaultCookieContent.localeVariantName,localeVariantVersion:n.defaultCookieContent.localeVariantVersion,customPurposes:S(e),consentString:o.getConsentString()})}).catch(function(e){return n(e)})})}function I(){i.default.remove(g),i.default.remove(h)}function b(e){return"object"===(void 0===e?"undefined":o(e))?(0,l.getPurposes)().map(function(e){return e.id}).filter(function(t){return e[t]}):1===e?(0,l.getPurposes)().map(function(e){return e.id}):[]}function S(e,t){return t||(t=(0,a.getCustomPurposes)()),"object"===(void 0===e?"undefined":o(e))?t.map(function(e){return e.id}).filter(function(t){return e[t]}):1===e?t.map(function(e){return e.id}):[]}function C(e){return void 0!==i.default.get(e)}function A(e,t){return function(e,t){if("string"==typeof e&&Array.isArray(t)&&C(e)){var n=i.default.getJSON(e);return t.every(function(e){return"consentData"===e||n.hasOwnProperty(e)})}return!1}(e,t)}function T(){var e=new d;return e.setCmpId(c.OIL_SPEC.CMP_ID),e.setCmpVersion(c.OIL_SPEC.CMP_VERSION),e.setConsentScreen(1),e.setConsentLanguage((0,a.getLanguage)()),e.setPurposesAllowed((0,a.getDefaultToOptin)()?(0,l.getPurposes)().map(function(e){return e.id}):[]),e.setVendorsAllowed((0,a.getDefaultToOptin)()?(0,l.getLimitedVendorIds)():[]),e.setGlobalVendorList((0,l.getVendorList)()),{name:g,expires:(0,a.getCookieExpireInDays)(),defaultCookieContent:{opt_in:!1,version:f.OilVersion.get(),localeVariantName:(0,a.getLocaleVariantName)(),localeVariantVersion:(0,u.getLocaleVariantVersion)(),customPurposes:S((0,a.getDefaultToOptin)()?1:0),consentData:e,consentString:e.getConsentString()},outdated_cookie_content_keys:["opt_in","timestamp","version","localeVariantName","localeVariantVersion","privacy"]}}},function(e,t){var n=e.exports={version:"2.5.7"};"number"==typeof __e&&(__e=n)},function(e,t,n){var o=n(17);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.cachedVendorList=t.DEFAULT_VENDOR_LIST=void 0,t.loadVendorList=function(){return new Promise(function(e){if(a)e(a);else{var n=(0,o.getIabVendorListUrl)();(0,i.fetchJsonData)(n).then(function(n){var o;t.cachedVendorList=a=n,(o=a).vendors=o.vendors.sort(function(e,t){return e.id-t.id}),e(a)}).catch(function(t){(0,r.logError)("OIL getVendorList failed and returned error: "+t+". Falling back to default vendor list!"),e(f())})}})},t.getPurposes=u,t.getPurposeIds=function(){return u().map(function(e){return e.id})},t.getVendors=c,t.getVendorIds=l,t.getVendorListVersion=function(){return a?a.vendorListVersion:s.vendorListVersion},t.getVendorList=f,t.clearVendorListCache=function(){t.cachedVendorList=a=void 0},t.getLimitedVendorIds=function(){var e=void 0;e=a?l():d();var t=(0,o.getIabVendorWhitelist)(),n=(0,o.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};var o=n(2),r=n(0),i=n(1),s=t.DEFAULT_VENDOR_LIST={vendorListVersion:36,maxVendorId:380,lastUpdated:"2018-05-30T16:00:15Z",purposeIds:[1,2,3,4,5]},a=t.cachedVendorList=void 0;function u(){return a?a.purposes:p(s.purposeIds)}function c(){return a?a.vendors:p(d())}function l(){return c().map(function(e){return e.id})}function f(){return a||{vendorListVersion:s.vendorListVersion,lastUpdated:s.lastUpdated,vendors:p(d()),purposes:p(s.purposeIds),features:[],isDefault:!0}}function d(){return function(e,t){for(;e--;)t[e]=e+1;return t}(s.maxVendorId,[])}function p(e){return e.map(function(e){return{id:e}})}},function(e,t,n){var o,r,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===(r="function"==typeof(o=i=function(){function e(){for(var e=0,t={};e<arguments.length;e++){var n=arguments[e];for(var o in n)t[o]=n[o]}return t}return function t(n){function o(t,r,i){var s;if("undefined"!=typeof document){if(arguments.length>1){if("number"==typeof(i=e({path:"/"},o.defaults,i)).expires){var a=new Date;a.setMilliseconds(a.getMilliseconds()+864e5*i.expires),i.expires=a}i.expires=i.expires?i.expires.toUTCString():"";try{s=JSON.stringify(r),/^[\{\[]/.test(s)&&(r=s)}catch(e){}r=n.write?n.write(r,t):encodeURIComponent(String(r)).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 u="";for(var c in i)i[c]&&(u+="; "+c,!0!==i[c]&&(u+="="+i[c]));return document.cookie=t+"="+r+u}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("="),v=p.slice(1).join("=");'"'===v.charAt(0)&&(v=v.slice(1,-1));try{var g=p[0].replace(f,decodeURIComponent);if(v=n.read?n.read(v,g):n(v,g)||v.replace(f,decodeURIComponent),this.json)try{v=JSON.parse(v)}catch(e){}if(t===g){s=v;break}t||(s[g]=v)}catch(e){}}return s}}return o.set=o,o.get=function(e){return o.call(o,e)},o.getJSON=function(){return o.apply({json:!0},[].slice.call(arguments))},o.defaults={},o.remove=function(t,n){o(t,"",e(n,{expires:-1}))},o.withConverter=t,o}(function(){})})?o.call(t,n,t,e):o)||(e.exports=r),e.exports=i()},function(e,t,n){var o=n(22),r=n(45);e.exports=n(18)?function(e,t,n){return o.f(e,t,r(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){"use strict";var o,r,i,s,a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},c=Array.from||(o=function(e){return"function"==typeof e},r=Math.pow(2,53)-1,i=function(e){var t=function(e){var t=Number(e);return isNaN(t)?0:0!==t&&isFinite(t)?(t>0?1:-1)*Math.floor(Math.abs(t)):t}(e);return Math.min(Math.max(t,0),r)},s=function(e){var t=e.next();return!Boolean(t.done)&&t},function(e){var t,n,r,u=this,c=arguments.length>1?arguments[1]:void 0;if(void 0!==c){if(!o(c))throw new TypeError("Array.from: when provided, the second argument must be a function");arguments.length>2&&(t=arguments[2])}var l=function(e,t){if(null!=e&&null!=t){var n=e[t];if(null==n)return;if(!o(n))throw new TypeError(n+" is not a function");return n}}(e,function(e){if(null!=e){if(["string","number","boolean","symbol"].indexOf(void 0===e?"undefined":a(e))>-1)return Symbol.iterator;if("undefined"!=typeof Symbol&&"iterator"in Symbol&&Symbol.iterator in e)return Symbol.iterator;if("@@iterator"in e)return"@@iterator"}}(e));if(void 0!==l){n=o(u)?Object(new u):[];var f,d,p=l.call(e);if(null==p)throw new TypeError("Array.from requires an array-like or iterable object");for(r=0;;){if(!(f=s(p)))return n.length=r,n;d=f.value,n[r]=c?c.call(t,d,r):d,r++}}else{var v=Object(e);if(null==e)throw new TypeError("Array.from requires an array-like object - not null or undefined");var g,h=i(v.length);for(n=o(u)?Object(new u(h)):new Array(h),r=0;r<h;)g=v[r],n[r]=c?c.call(t,g,r):g,r++;n.length=h}return n});function l(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return c(e)}var f=n(13),d=f.encodeToBase64,p=f.padRight;function v(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Set,n=Math.max.apply(Math,[0].concat(l(e.map(function(e){return e.id})),l(c(t)))),o="",r=1;r<=n;r+=1)o+=-1!==t.indexOf(r)?"1":"0";return o}function g(e,t){var n=[],o=e.map(function(e){return e.id});return e.reduce(function(r,i,s){var a=i.id;if(-1!==t.indexOf(a)&&n.push(a),(-1===t.indexOf(a)||s===e.length-1||-1===o.indexOf(a+1))&&n.length){var u=n.shift(),c=n.pop();return n=[],[].concat(l(r),[{isRange:"number"==typeof c,startVendorId:u,endVendorId:c}])}return r},[])}e.exports={convertVendorsToRanges:g,encodeConsentString:function(e){var t=e.maxVendorId,n=e.vendorList,o=void 0===n?{}:n,r=e.allowedPurposeIds,i=e.allowedVendorIds,s=o.vendors,a=void 0===s?[]:s,c=o.purposes,l=void 0===c?[]:c;t||(t=0,a.forEach(function(e){e.id>t&&(t=e.id)}));var f=d(u({},e,{maxVendorId:t,purposeIdBitString:v(l,r),isRange:!1,vendorIdBitString:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n="",o=1;o<=e;o+=1)n+=-1!==t.indexOf(o)?"1":"0";return p(n,Math.max(0,e-n.length))}(t,i)})),h=g(a,i),_=d(u({},e,{maxVendorId:t,purposeIdBitString:v(l,r),isRange:!0,defaultConsent:!1,numEntries:h.length,vendorRangeList:h}));return f.length<_.length?f:_}}},function(e,t,n){"use strict";var o,r,i,s,a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u=Array.from||(o=function(e){return"function"==typeof e},r=Math.pow(2,53)-1,i=function(e){var t=function(e){var t=Number(e);return isNaN(t)?0:0!==t&&isFinite(t)?(t>0?1:-1)*Math.floor(Math.abs(t)):t}(e);return Math.min(Math.max(t,0),r)},s=function(e){var t=e.next();return!Boolean(t.done)&&t},function(e){var t,n,r,u=this,c=arguments.length>1?arguments[1]:void 0;if(void 0!==c){if(!o(c))throw new TypeError("Array.from: when provided, the second argument must be a function");arguments.length>2&&(t=arguments[2])}var l=function(e,t){if(null!=e&&null!=t){var n=e[t];if(null==n)return;if(!o(n))throw new TypeError(n+" is not a function");return n}}(e,function(e){if(null!=e){if(["string","number","boolean","symbol"].indexOf(void 0===e?"undefined":a(e))>-1)return Symbol.iterator;if("undefined"!=typeof Symbol&&"iterator"in Symbol&&Symbol.iterator in e)return Symbol.iterator;if("@@iterator"in e)return"@@iterator"}}(e));if(void 0!==l){n=o(u)?Object(new u):[];var f,d,p=l.call(e);if(null==p)throw new TypeError("Array.from requires an array-like or iterable object");for(r=0;;){if(!(f=s(p)))return n.length=r,n;d=f.value,n[r]=c?c.call(t,d,r):d,r++}}else{var v=Object(e);if(null==e)throw new TypeError("Array.from requires an array-like object - not null or undefined");var g,h=i(v.length);for(n=o(u)?Object(new u(h)):new Array(h),r=0;r<h;)g=v[r],n[r]=c?c.call(t,g,r):g,r++;n.length=h}return n}),c=n(28),l=n(14),f=l.versionNumBits,d=l.vendorVersionMap;function p(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"0",n="",o=0;o<e;o+=1)n+=t;return n}function v(e,t){return p(Math.max(0,t))+e}function g(e,t){return e+p(Math.max(0,t))}function h(e,t){var n="";return"number"!=typeof e||isNaN(e)||(n=parseInt(e,10).toString(2)),t>=n.length&&(n=v(n,t-n.length)),n.length>t&&(n=n.substring(0,t)),n}function _(e){return h(!0===e?1:0,1)}function m(e,t){return e instanceof Date?h(e.getTime()/100,t):h(e,t)}function y(e,t){return h(e.toUpperCase().charCodeAt(0)-65,t)}function O(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:12;return y(e.slice(0,1),t/2)+y(e.slice(1),t/2)}function w(e,t,n){return parseInt(e.substr(t,n),2)}function I(e,t,n){return new Date(100*w(e,t,n))}function b(e,t){return 1===parseInt(e.substr(t,1),2)}function S(e){var t=w(e);return String.fromCharCode(t+65).toLowerCase()}function C(e,t,n){var o=e.substr(t,n);return S(o.slice(0,n/2))+S(o.slice(n/2))}function A(e){var t=e.input,n=e.field,o=n.name,r=n.type,i=n.numBits,s=n.encoder,a=n.validator;if("function"==typeof a&&!a(t))return"";if("function"==typeof s)return s(t);var u="function"==typeof i?i(t):i,c=t[o],l=null===c||void 0===c?"":c;switch(r){case"int":return h(l,u);case"bool":return _(l);case"date":return m(l,u);case"bits":return g(l,u-l.length).substring(0,u);case"list":return l.reduce(function(e,t){return e+T({input:t,fields:n.fields})},"");case"language":return O(l,u);default:throw new Error("ConsentString - Unknown field type "+r+" for encoding")}}function T(e){var t=e.input;return e.fields.reduce(function(e,n){return e+A({input:t,field:n})},"")}function L(e,t){var n=e.version;if("number"!=typeof n)throw new Error("ConsentString - No version field to encode");if(t[n])return T({input:e,fields:t[n].fields});throw new Error("ConsentString - No definition for version "+n)}e.exports={padRight:g,padLeft:v,encodeField:A,encodeDataToBits:L,encodeIntToBits:h,encodeBoolToBits:_,encodeDateToBits:m,encodeLanguageToBits:O,encodeLetterToBits:y,encodeToBase64:function(e){var t=L(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:d);if(t){for(var n=g(t,7-(t.length+7)%8),o="",r=0;r<n.length;r+=8)o+=String.fromCharCode(parseInt(n.substr(r,8),2));return c.encode(o).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}return null},decodeBitsToIds:function(e){return e.split("").reduce(function(e,t,n){return"1"===t&&-1===e.indexOf(n+1)&&e.push(n+1),e},[])},decodeBitsToInt:w,decodeBitsToDate:I,decodeBitsToBool:b,decodeBitsToLanguage:C,decodeBitsToLetter:S,decodeFromBase64:function(e,t){for(var n=e;n.length%4!=0;)n+="=";n=n.replace(/-/g,"+").replace(/_/g,"/");for(var o=c.decode(n),r="",i=0;i<o.length;i+=1){var s=o.charCodeAt(i).toString(2);r+=v(s,8-s.length)}return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:d,n=w(e,0,f);if("number"!=typeof n)throw new Error("ConsentString - Unknown version number in the string to decode");if(!d[n])throw new Error("ConsentString - Unsupported version "+n+" in the string to decode");return function e(t){var n=t.input,o=t.fields,r=t.startPosition,i=void 0===r?0:r;return{decodedObject:o.reduce(function(t,o){var r=o.name,s=o.numBits,a=function(t){var n=t.input,o=t.output,r=t.startPosition,i=t.field,s=i.type,a=i.numBits,c=i.decoder,l=i.validator,f=i.listCount;if("function"==typeof l&&!l(o))return{newPosition:r};if("function"==typeof c)return c(n,o,r);var d="function"==typeof a?a(o):a,p=0;switch("function"==typeof f?p=f(o):"number"==typeof f&&(p=f),s){case"int":return{fieldValue:w(n,r,d)};case"bool":return{fieldValue:b(n,r)};case"date":return{fieldValue:I(n,r,d)};case"bits":return{fieldValue:n.substr(r,d)};case"list":return new Array(p).fill().reduce(function(t){var o=e({input:n,fields:i.fields,startPosition:t.newPosition}),r=o.decodedObject,s=o.newPosition;return{fieldValue:[].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return u(e)}(t.fieldValue),[r]),newPosition:s}},{fieldValue:[],newPosition:r});case"language":return{fieldValue:C(n,r,d)};default:throw new Error("ConsentString - Unknown field type "+s+" for decoding")}}({input:n,output:t,startPosition:i,field:o}),c=a.fieldValue,l=a.newPosition;return void 0!==c&&(t[r]=c),void 0!==l?i=l:"number"==typeof s&&(i+=s),t},{}),newPosition:i}}({input:e,fields:t[n].fields}).decodedObject}(r,t)}}},function(e,t,n){"use strict";"function"==typeof Symbol&&Symbol.iterator,Array.from||Math.pow(2,53),e.exports={versionNumBits:6,vendorVersionMap:{1:{version:1,metadataFields:["version","created","lastUpdated","cmpId","cmpVersion","consentScreen","vendorListVersion"],fields:[{name:"version",type:"int",numBits:6},{name:"created",type:"date",numBits:36},{name:"lastUpdated",type:"date",numBits:36},{name:"cmpId",type:"int",numBits:12},{name:"cmpVersion",type:"int",numBits:12},{name:"consentScreen",type:"int",numBits:6},{name:"consentLanguage",type:"language",numBits:12},{name:"vendorListVersion",type:"int",numBits:12},{name:"purposeIdBitString",type:"bits",numBits:24},{name:"maxVendorId",type:"int",numBits:16},{name:"isRange",type:"bool",numBits:1},{name:"vendorIdBitString",type:"bits",numBits:function(e){return e.maxVendorId},validator:function(e){return!e.isRange}},{name:"defaultConsent",type:"bool",numBits:1,validator:function(e){return e.isRange}},{name:"numEntries",numBits:12,type:"int",validator:function(e){return e.isRange}},{name:"vendorRangeList",type:"list",listCount:function(e){return e.numEntries},validator:function(e){return e.isRange},fields:[{name:"isRange",type:"bool",numBits:1},{name:"startVendorId",type:"int",numBits:16},{name:"endVendorId",type:"int",numBits:16,validator:function(e){return e.isRange}}]}]}}}},function(e,t,n){"use strict";"function"==typeof Symbol&&Symbol.iterator;var o=(Array.from||Math.pow(2,53),n(13)),r=o.decodeBitsToIds,i=o.decodeFromBase64;e.exports={decodeConsentString:function(e){var t=i(e),n=t.version,o=t.cmpId,s=t.vendorListVersion,a=t.purposeIdBitString,u=t.maxVendorId,c=t.created,l=t.lastUpdated,f=t.isRange,d=t.defaultConsent,p=t.vendorIdBitString,v=t.vendorRangeList,g=t.cmpVersion,h=t.consentScreen,_=t.consentLanguage,m={version:n,cmpId:o,vendorListVersion:s,allowedPurposeIds:r(a),maxVendorId:u,created:c,lastUpdated:l,cmpVersion:g,consentScreen:h,consentLanguage:_};if(f){var y=v.reduce(function(e,t){for(var n=t.isRange,o=t.startVendorId,r=t.endVendorId,i=n?r:o,s=o;s<=i;s+=1)e[s]=!0;return e},{});m.allowedVendorIds=[];for(var O=0;O<=u;O+=1)(d&&!y[O]||!d&&y[O])&&-1===m.allowedVendorIds.indexOf(O)&&m.allowedVendorIds.push(O)}else m.allowedVendorIds=r(p);return m}}},function(e,t,n){var o=n(4),r=n(11),i=n(23),s=n(33)("src"),a=Function.toString,u=(""+a).split("toString");n(7).inspectSource=function(e){return a.call(e)},(e.exports=function(e,t,n,a){var c="function"==typeof n;c&&(i(n,"name")||r(n,"name",t)),e[t]!==n&&(c&&(i(n,s)||r(n,s,e[t]?""+e[t]:u.join(String(t)))),e===o?e[t]=n:a?e[t]?e[t]=n:r(e,t,n):(delete e[t],r(e,t,n)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[s]||a.call(this)})},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){e.exports=!n(44)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t){e.exports={}},function(e,t,n){"use strict";"function"==typeof Symbol&&Symbol.iterator;var o=(Array.from||Math.pow(2,53),n(27).ConsentString),r=n(15).decodeConsentString,i=n(12).encodeConsentString;e.exports={ConsentString:o,decodeConsentString:r,encodeConsentString:i}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var o=n(8),r=n(70),i=n(71),s=Object.defineProperty;t.f=n(18)?Object.defineProperty:function(e,t,n){if(o(e),t=i(t,!0),o(n),r)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){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var o=n(4),r=n(7),i=n(11),s=n(16),a=n(25),u=function(e,t,n){var c,l,f,d,p=e&u.F,v=e&u.G,g=e&u.S,h=e&u.P,_=e&u.B,m=v?o:g?o[t]||(o[t]={}):(o[t]||{}).prototype,y=v?r:r[t]||(r[t]={}),O=y.prototype||(y.prototype={});for(c in v&&(n=t),n)f=((l=!p&&m&&void 0!==m[c])?m:n)[c],d=_&&l?a(f,o):h&&"function"==typeof f?a(Function.call,f):f,m&&s(m,c,f,e&u.U),y[c]!=f&&i(y,c,d),h&&O[c]!=f&&(O[c]=f)};o.core=r,u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,e.exports=u},function(e,t,n){var o=n(26);e.exports=function(e,t,n){if(o(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,o){return e.call(t,n,o)};case 3:return function(n,o,r){return e.call(t,n,o,r)}}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,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}();Array.from||Math.pow(2,53);var i=n(12).encodeConsentString,s=n(15).decodeConsentString,a=n(14).vendorVersionMap,u=/^[a-z]{2}$/,c=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;!function(t,n){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this),this.created=new Date,this.lastUpdated=new Date,this.version=1,this.vendorList=null,this.vendorListVersion=null,this.cmpId=null,this.cmpVersion=null,this.consentScreen=null,this.consentLanguage=null,this.allowedPurposeIds=[],this.allowedVendorIds=[],t&&Object.assign(this,s(t))}return r(e,[{key:"getConsentString",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(!this.vendorList)throw new Error("ConsentString - A vendor list is required to encode a consent string");return!0===e&&(this.lastUpdated=new Date),i({version:this.getVersion(),vendorList:this.vendorList,allowedPurposeIds:this.allowedPurposeIds,allowedVendorIds:this.allowedVendorIds,created:this.created,lastUpdated:this.lastUpdated,cmpId:this.cmpId,cmpVersion:this.cmpVersion,consentScreen:this.consentScreen,consentLanguage:this.consentLanguage,vendorListVersion:this.vendorListVersion})}},{key:"getMetadataString",value:function(){return i({version:this.getVersion(),created:this.created,lastUpdated:this.lastUpdated,cmpId:this.cmpId,cmpVersion:this.cmpVersion,consentScreen:this.consentScreen,vendorListVersion:this.vendorListVersion})}},{key:"getVersion",value:function(){return this.version}},{key:"getVendorListVersion",value:function(){return this.vendorListVersion}},{key:"setGlobalVendorList",value:function(e){if("object"!==(void 0===e?"undefined":o(e)))throw new Error("ConsentString - You must provide an object when setting the global vendor list");if(!e.vendorListVersion||!Array.isArray(e.purposes)||!Array.isArray(e.vendors))throw new Error("ConsentString - The provided vendor list does not respect the schema from the IAB EU’s GDPR Consent and Transparency Framework");this.vendorList={vendorListVersion:e.vendorListVersion,lastUpdated:e.lastUpdated,purposes:e.purposes,features:e.features,vendors:e.vendors.slice(0).sort(function(e,t){return e.id<t.id?-1:1})},this.vendorListVersion=e.vendorListVersion}},{key:"setCmpId",value:function(e){this.cmpId=e}},{key:"getCmpId",value:function(){return this.cmpId}},{key:"setCmpVersion",value:function(e){this.cmpVersion=e}},{key:"getCmpVersion",value:function(){return this.cmpVersion}},{key:"setConsentScreen",value:function(e){this.consentScreen=e}},{key:"getConsentScreen",value:function(){return this.consentScreen}},{key:"setConsentLanguage",value:function(e){if(!1===u.test(e))throw new Error("ConsentString - The consent language must be a two-letter ISO639-1 code (en, fr, de, etc.)");this.consentLanguage=e}},{key:"getConsentLanguage",value:function(){return this.consentLanguage}},{key:"setPurposesAllowed",value:function(e){this.allowedPurposeIds=e}},{key:"getPurposesAllowed",value:function(){return this.allowedPurposeIds}},{key:"setPurposeAllowed",value:function(e,t){var n=this.allowedPurposeIds.indexOf(e);!0===t?-1===n&&this.allowedPurposeIds.push(e):!1===t&&-1!==n&&this.allowedPurposeIds.splice(n,1)}},{key:"isPurposeAllowed",value:function(e){return-1!==this.allowedPurposeIds.indexOf(e)}},{key:"setVendorsAllowed",value:function(e){this.allowedVendorIds=e}},{key:"getVendorsAllowed",value:function(){return this.allowedVendorIds}},{key:"setVendorAllowed",value:function(e,t){var n=this.allowedVendorIds.indexOf(e);!0===t?-1===n&&this.allowedVendorIds.push(e):!1===t&&-1!==n&&this.allowedVendorIds.splice(n,1)}},{key:"isVendorAllowed",value:function(e){return-1!==this.allowedVendorIds.indexOf(e)}}],[{key:"decodeMetadataString",value:function(e){var t=s(e),n={};return a[t.version].metadataFields.forEach(function(e){n[e]=t[e]}),n}}]),e}();e.exports={ConsentString:c}},function(e,t,n){(function(e,o){var r;/*! http://mths.be/base64 v0.1.0 by @mathias | MIT license */!function(i){var s=("object"==typeof e&&e&&e.exports,"object"==typeof o&&o);s.global!==s&&s.window;var a=function(e){this.message=e};(a.prototype=new Error).name="InvalidCharacterError";var u=function(e){throw new a(e)},c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",l=/[\t\n\f\r ]/g,f={encode:function(e){e=String(e),/[^\0-\xFF]/.test(e)&&u("The string to be encoded contains characters outside of the Latin1 range.");for(var t,n,o,r,i=e.length%3,s="",a=-1,l=e.length-i;++a<l;)t=e.charCodeAt(a)<<16,n=e.charCodeAt(++a)<<8,o=e.charCodeAt(++a),s+=c.charAt((r=t+n+o)>>18&63)+c.charAt(r>>12&63)+c.charAt(r>>6&63)+c.charAt(63&r);return 2==i?(t=e.charCodeAt(a)<<8,n=e.charCodeAt(++a),s+=c.charAt((r=t+n)>>10)+c.charAt(r>>4&63)+c.charAt(r<<2&63)+"="):1==i&&(r=e.charCodeAt(a),s+=c.charAt(r>>2)+c.charAt(r<<4&63)+"=="),s},decode:function(e){var t=(e=String(e).replace(l,"")).length;t%4==0&&(t=(e=e.replace(/==?$/,"")).length),(t%4==1||/[^+a-zA-Z0-9/]/.test(e))&&u("Invalid character: the string to be decoded is not correctly encoded.");for(var n,o,r=0,i="",s=-1;++s<t;)o=c.indexOf(e.charAt(s)),n=r%4?64*n+o:o,r++%4&&(i+=String.fromCharCode(255&n>>(-2*r&6)));return i},version:"0.1.0"};void 0===(r=function(){return f}.call(t,n,t,e))||(e.exports=r)}()}).call(this,n(29)(e),n(30))},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){var o=n(21),r=n(3)("toStringTag"),i="Arguments"==o(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),r))?n:i?o(t):"Object"==(s=o(t))&&"function"==typeof t.callee?"Arguments":s}},function(e,t){e.exports=!1},function(e,t){var n=0,o=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+o).toString(36))}},function(e,t,n){var o=n(17),r=n(4).document,i=o(r)&&o(r.createElement);e.exports=function(e){return i?r.createElement(e):{}}},function(e,t){var n=Math.ceil,o=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?o:n)(e)}},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){var o=n(78),r=n(36);e.exports=function(e){return o(r(e))}},function(e,t,n){var o=n(43)("keys"),r=n(33);e.exports=function(e){return o[e]||(o[e]=r(e))}},function(e,t,n){var o=n(22).f,r=n(23),i=n(3)("toStringTag");e.exports=function(e,t,n){e&&!r(e=n?e:e.prototype,i)&&o(e,i,{configurable:!0,value:t})}},function(e,t,n){"use strict";var o=n(26);e.exports.f=function(e){return new function(e){var t,n;this.promise=new e(function(e,o){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=o}),this.resolve=o(t),this.reject=o(n)}(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.addFrame=l,t.init=f,t.sendEventToFrame=d,t.verifyPowerOptIn=function(){return new Promise(function(e){(0,i.isPoiActive)()?f().then(function(t){var n=t.iframe;n?n.onload?p((0,s.getOrigin)()).then(function(t){t||e({power_opt_in:!1}),e(t)}):n.onload=function(){return p((0,s.getOrigin)()).then(function(t){t||e({power_opt_in:!1}),e(t)})}:((0,a.logInfo)("Could not initialize POI. Fallback to POI false."),e({power_opt_in:!1}))}):e({power_opt_in:!1})})},t.deActivatePowerOptIn=function(){return(0,a.logInfo)("deActivatePowerOptIn"),(0,i.isPoiActive)()?new Promise(function(e){return f().then(function(){d("oil-poi-delete",(0,s.getOrigin)(),{}),setTimeout(e)})}):new Promise(function(e){e()})};var r=n(5),i=n(2),s=n(1),a=n(0),u=500,c=!1;function l(e){var t=document.getElementById("oil-frame");return t?(0,a.logInfo)("Found iframe"):((0,a.logInfo)("Creating iframe..."),(t=document.createElement("iframe")).setAttribute("id","oil-frame"),t.setAttribute("src",e),t.setAttribute("sandbox","allow-same-origin allow-scripts allow-forms allow-top-navigation"),t.style.width="0",t.style.height="0",t.style.border="0",t.style.border="none",document.body.appendChild(t)),t}function f(){return new Promise(function(e){return setTimeout(function(){if((0,a.logInfo)("Initializing Frame..."),(0,i.isPoiActive)()){var t=(0,i.getHubLocation)();if(t){var n=l(t);n&&!n.onload?n.onload=function(){return e({iframe:n})}:e({iframe:n})}else(0,a.logError)("Config for "+r.OIL_CONFIG.ATTR_HUB_ORIGIN+" and "+r.OIL_CONFIG.ATTR_HUB_PATH+" isnt set. No POI possible."),e(!1)}else(0,a.logInfo)("POI not active. Frame not initialized."),e(!1)})})}function d(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};(0,a.logInfo)("Send to Frame:",e,t),(0,i.isPoiActive)()&&f().then(function(o){var r=o.iframe,s=(0,i.getHubOrigin)(),a=(0,i.getPoiGroupName)();if(r&&s){var u=JSON.stringify({event:e,origin:t,group_name:a,payload:n});r.contentWindow.postMessage(u,s)}})}function p(e){return new Promise(function(t){function n(e){var r=(0,i.getHubOrigin)();if(r&&-1!==r.indexOf(e.origin)){var u="object"!==o(e.data)?JSON.parse(e.data):e.data;(0,a.logInfo)("Message from hub received...",e.origin,u),(0,s.removeMessageListener)(n),c=!1,t(u)}}(0,i.isPoiActive)()||t(!1),setTimeout(function(){return d("oil-status-read",e)}),c||((0,s.registerMessageListener)(n),c=!0),setTimeout(function(){(0,s.removeMessageListener)(n),c=!1,t(!1)},u)})}},,function(e,t,n){var o=n(7),r=n(4),i=r["__core-js_shared__"]||(r["__core-js_shared__"]={});(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:o.version,mode:n(32)?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){"use strict";var o=n(32),r=n(24),i=n(16),s=n(11),a=n(19),u=n(74),c=n(39),l=n(81),f=n(3)("iterator"),d=!([].keys&&"next"in[].keys()),p=function(){return this};e.exports=function(e,t,n,v,g,h,_){u(n,t,v);var m,y,O,w=function(e){if(!d&&e in C)return C[e];switch(e){case"keys":case"values":return function(){return new n(this,e)}}return function(){return new n(this,e)}},I=t+" Iterator",b="values"==g,S=!1,C=e.prototype,A=C[f]||C["@@iterator"]||g&&C[g],T=A||w(g),L=g?b?w("entries"):T:void 0,P="Array"==t&&C.entries||A;if(P&&(O=l(P.call(new e)))!==Object.prototype&&O.next&&(c(O,I,!0),o||"function"==typeof O[f]||s(O,f,p)),b&&A&&"values"!==A.name&&(S=!0,T=function(){return A.call(this)}),o&&!_||!d&&!S&&C[f]||s(C,f,T),a[t]=T,a[I]=p,g)if(m={values:b?T:w("values"),keys:h?T:w("keys"),entries:L},_)for(y in m)y in C||i(C,y,m[y]);else r(r.P+r.F*(d||S),t,m);return m}},function(e,t,n){var o=n(77),r=n(49);e.exports=Object.keys||function(e){return o(e,r)}},function(e,t,n){var o=n(35),r=Math.min;e.exports=function(e){return e>0?r(o(e),9007199254740991):0}},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,n){var o=n(4).document;e.exports=o&&o.documentElement},function(e,t,n){var o=n(8),r=n(26),i=n(3)("species");e.exports=function(e,t){var n,s=o(e).constructor;return void 0===s||void 0==(n=o(s)[i])?t:r(n)}},function(e,t,n){var o,r,i,s=n(25),a=n(93),u=n(50),c=n(34),l=n(4),f=l.process,d=l.setImmediate,p=l.clearImmediate,v=l.MessageChannel,g=l.Dispatch,h=0,_={},m=function(){var e=+this;if(_.hasOwnProperty(e)){var t=_[e];delete _[e],t()}},y=function(e){m.call(e.data)};d&&p||(d=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return _[++h]=function(){a("function"==typeof e?e:Function(e),t)},o(h),h},p=function(e){delete _[e]},"process"==n(21)(f)?o=function(e){f.nextTick(s(m,e,1))}:g&&g.now?o=function(e){g.now(s(m,e,1))}:v?(i=(r=new v).port2,r.port1.onmessage=y,o=s(i.postMessage,i,1)):l.addEventListener&&"function"==typeof postMessage&&!l.importScripts?(o=function(e){l.postMessage(e+"","*")},l.addEventListener("message",y,!1)):o="onreadystatechange"in c("script")?function(e){u.appendChild(c("script")).onreadystatechange=function(){u.removeChild(this),m.call(e)}}:function(e){setTimeout(s(m,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 o=n(8),r=n(17),i=n(40);e.exports=function(e,t){if(o(e),r(t)&&t.constructor===e)return t;var n=i.f(e);return(0,n.resolve)(t),n.promise}},,,,,,,,,,,,function(e,t,n){"use strict";n(67),(0,n(101).initOilLayer)()},function(e,t,n){"use strict";function o(){if("undefined"!=typeof window&&window.Promise)return null;window.Promise=n(68)}Object.defineProperty(t,"__esModule",{value:!0}),t.polyfillPromise=o,t.default=o()},function(e,t,n){n(69),n(72),n(83),n(87),n(99),n(100),e.exports=n(7).Promise},function(e,t,n){"use strict";var o=n(31),r={};r[n(3)("toStringTag")]="z",r+""!="[object z]"&&n(16)(Object.prototype,"toString",function(){return"[object "+o(this)+"]"},!0)},function(e,t,n){e.exports=!n(18)&&!n(44)(function(){return 7!=Object.defineProperty(n(34)("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){var o=n(17);e.exports=function(e,t){if(!o(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!o(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!o(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!o(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")}},function(e,t,n){"use strict";var o=n(73)(!0);n(46)(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=o(t,n),this._i+=e.length,{value:e,done:!1})})},function(e,t,n){var o=n(35),r=n(36);e.exports=function(e){return function(t,n){var i,s,a=String(r(t)),u=o(n),c=a.length;return u<0||u>=c?e?"":void 0:(i=a.charCodeAt(u))<55296||i>56319||u+1===c||(s=a.charCodeAt(u+1))<56320||s>57343?e?a.charAt(u):i:e?a.slice(u,u+2):s-56320+(i-55296<<10)+65536}}},function(e,t,n){"use strict";var o=n(75),r=n(45),i=n(39),s={};n(11)(s,n(3)("iterator"),function(){return this}),e.exports=function(e,t,n){e.prototype=o(s,{next:r(1,n)}),i(e,t+" Iterator")}},function(e,t,n){var o=n(8),r=n(76),i=n(49),s=n(38)("IE_PROTO"),a=function(){},u=function(){var e,t=n(34)("iframe"),o=i.length;for(t.style.display="none",n(50).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),u=e.F;o--;)delete u.prototype[i[o]];return u()};e.exports=Object.create||function(e,t){var n;return null!==e?(a.prototype=o(e),n=new a,a.prototype=null,n[s]=e):n=u(),void 0===t?n:r(n,t)}},function(e,t,n){var o=n(22),r=n(8),i=n(47);e.exports=n(18)?Object.defineProperties:function(e,t){r(e);for(var n,s=i(t),a=s.length,u=0;a>u;)o.f(e,n=s[u++],t[n]);return e}},function(e,t,n){var o=n(23),r=n(37),i=n(79)(!1),s=n(38)("IE_PROTO");e.exports=function(e,t){var n,a=r(e),u=0,c=[];for(n in a)n!=s&&o(a,n)&&c.push(n);for(;t.length>u;)o(a,n=t[u++])&&(~i(c,n)||c.push(n));return c}},function(e,t,n){var o=n(21);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==o(e)?e.split(""):Object(e)}},function(e,t,n){var o=n(37),r=n(48),i=n(80);e.exports=function(e){return function(t,n,s){var a,u=o(t),c=r(u.length),l=i(s,c);if(e&&n!=n){for(;c>l;)if((a=u[l++])!=a)return!0}else for(;c>l;l++)if((e||l in u)&&u[l]===n)return e||l||0;return!e&&-1}}},function(e,t,n){var o=n(35),r=Math.max,i=Math.min;e.exports=function(e,t){return(e=o(e))<0?r(e+t,0):i(e,t)}},function(e,t,n){var o=n(23),r=n(82),i=n(38)("IE_PROTO"),s=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=r(e),o(e,i)?e[i]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?s:null}},function(e,t,n){var o=n(36);e.exports=function(e){return Object(o(e))}},function(e,t,n){for(var o=n(84),r=n(47),i=n(16),s=n(4),a=n(11),u=n(19),c=n(3),l=c("iterator"),f=c("toStringTag"),d=u.Array,p={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},v=r(p),g=0;g<v.length;g++){var h,_=v[g],m=p[_],y=s[_],O=y&&y.prototype;if(O&&(O[l]||a(O,l,d),O[f]||a(O,f,_),u[_]=d,m))for(h in o)O[h]||i(O,h,o[h],!0)}},function(e,t,n){"use strict";var o=n(85),r=n(86),i=n(19),s=n(37);e.exports=n(46)(Array,"Array",function(e,t){this._t=s(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,r(1)):r(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])},"values"),i.Arguments=i.Array,o("keys"),o("values"),o("entries")},function(e,t,n){var o=n(3)("unscopables"),r=Array.prototype;void 0==r[o]&&n(11)(r,o,{}),e.exports=function(e){r[o][e]=!0}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,n){"use strict";var o,r,i,s,a=n(32),u=n(4),c=n(25),l=n(31),f=n(24),d=n(17),p=n(26),v=n(88),g=n(89),h=n(51),_=n(52).set,m=n(94)(),y=n(40),O=n(53),w=n(95),I=n(54),b=u.TypeError,S=u.process,C=S&&S.versions,A=C&&C.v8||"",T=u.Promise,L="process"==l(S),P=function(){},E=r=y.f,V=!!function(){try{var e=T.resolve(1),t=(e.constructor={})[n(3)("species")]=function(e){e(P,P)};return(L||"function"==typeof PromiseRejectionEvent)&&e.then(P)instanceof t&&0!==A.indexOf("6.6")&&-1===w.indexOf("Chrome/66")}catch(e){}}(),N=function(e){var t;return!(!d(e)||"function"!=typeof(t=e.then))&&t},x=function(e,t){if(!e._n){e._n=!0;var n=e._c;m(function(){for(var o=e._v,r=1==e._s,i=0,s=function(t){var n,i,s,a=r?t.ok:t.fail,u=t.resolve,c=t.reject,l=t.domain;try{a?(r||(2==e._h&&M(e),e._h=1),!0===a?n=o:(l&&l.enter(),n=a(o),l&&(l.exit(),s=!0)),n===t.promise?c(b("Promise-chain cycle")):(i=N(n))?i.call(n,u,c):u(n)):c(o)}catch(e){l&&!s&&l.exit(),c(e)}};n.length>i;)s(n[i++]);e._c=[],e._n=!1,t&&!e._h&&k(e)})}},k=function(e){_.call(u,function(){var t,n,o,r=e._v,i=R(e);if(i&&(t=O(function(){L?S.emit("unhandledRejection",r,e):(n=u.onunhandledrejection)?n({promise:e,reason:r}):(o=u.console)&&o.error&&o.error("Unhandled promise rejection",r)}),e._h=L||R(e)?2:1),e._a=void 0,i&&t.e)throw t.v})},R=function(e){return 1!==e._h&&0===(e._a||e._c).length},M=function(e){_.call(u,function(){var t;L?S.emit("rejectionHandled",e):(t=u.onrejectionhandled)&&t({promise:e,reason:e._v})})},D=function(e){var t=this;t._d||(t._d=!0,(t=t._w||t)._v=e,t._s=2,t._a||(t._a=t._c.slice()),x(t,!0))},j=function(e){var t,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===e)throw b("Promise can't be resolved itself");(t=N(e))?m(function(){var o={_w:n,_d:!1};try{t.call(e,c(j,o,1),c(D,o,1))}catch(e){D.call(o,e)}}):(n._v=e,n._s=1,x(n,!1))}catch(e){D.call({_w:n,_d:!1},e)}}};V||(T=function(e){v(this,T,"Promise","_h"),p(e),o.call(this);try{e(c(j,this,1),c(D,this,1))}catch(e){D.call(this,e)}},(o=function(e){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=n(96)(T.prototype,{then:function(e,t){var n=E(h(this,T));return n.ok="function"!=typeof e||e,n.fail="function"==typeof t&&t,n.domain=L?S.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&x(this,!1),n.promise},catch:function(e){return this.then(void 0,e)}}),i=function(){var e=new o;this.promise=e,this.resolve=c(j,e,1),this.reject=c(D,e,1)},y.f=E=function(e){return e===T||e===s?new i(e):r(e)}),f(f.G+f.W+f.F*!V,{Promise:T}),n(39)(T,"Promise"),n(97)("Promise"),s=n(7).Promise,f(f.S+f.F*!V,"Promise",{reject:function(e){var t=E(this);return(0,t.reject)(e),t.promise}}),f(f.S+f.F*(a||!V),"Promise",{resolve:function(e){return I(a&&this===s?T:this,e)}}),f(f.S+f.F*!(V&&n(98)(function(e){T.all(e).catch(P)})),"Promise",{all:function(e){var t=this,n=E(t),o=n.resolve,r=n.reject,i=O(function(){var n=[],i=0,s=1;g(e,!1,function(e){var a=i++,u=!1;n.push(void 0),s++,t.resolve(e).then(function(e){u||(u=!0,n[a]=e,--s||o(n))},r)}),--s||o(n)});return i.e&&r(i.v),n.promise},race:function(e){var t=this,n=E(t),o=n.reject,r=O(function(){g(e,!1,function(e){t.resolve(e).then(n.resolve,o)})});return r.e&&o(r.v),n.promise}})},function(e,t){e.exports=function(e,t,n,o){if(!(e instanceof t)||void 0!==o&&o in e)throw TypeError(n+": incorrect invocation!");return e}},function(e,t,n){var o=n(25),r=n(90),i=n(91),s=n(8),a=n(48),u=n(92),c={},l={};(t=e.exports=function(e,t,n,f,d){var p,v,g,h,_=d?function(){return e}:u(e),m=o(n,f,t?2:1),y=0;if("function"!=typeof _)throw TypeError(e+" is not iterable!");if(i(_)){for(p=a(e.length);p>y;y++)if((h=t?m(s(v=e[y])[0],v[1]):m(e[y]))===c||h===l)return h}else for(g=_.call(e);!(v=g.next()).done;)if((h=r(g,m,v.value,t))===c||h===l)return h}).BREAK=c,t.RETURN=l},function(e,t,n){var o=n(8);e.exports=function(e,t,n,r){try{return r?t(o(n)[0],n[1]):t(n)}catch(t){var i=e.return;throw void 0!==i&&o(i.call(e)),t}}},function(e,t,n){var o=n(19),r=n(3)("iterator"),i=Array.prototype;e.exports=function(e){return void 0!==e&&(o.Array===e||i[r]===e)}},function(e,t,n){var o=n(31),r=n(3)("iterator"),i=n(19);e.exports=n(7).getIteratorMethod=function(e){if(void 0!=e)return e[r]||e["@@iterator"]||i[o(e)]}},function(e,t){e.exports=function(e,t,n){var o=void 0===n;switch(t.length){case 0:return o?e():e.call(n);case 1:return o?e(t[0]):e.call(n,t[0]);case 2:return o?e(t[0],t[1]):e.call(n,t[0],t[1]);case 3:return o?e(t[0],t[1],t[2]):e.call(n,t[0],t[1],t[2]);case 4:return o?e(t[0],t[1],t[2],t[3]):e.call(n,t[0],t[1],t[2],t[3])}return e.apply(n,t)}},function(e,t,n){var o=n(4),r=n(52).set,i=o.MutationObserver||o.WebKitMutationObserver,s=o.process,a=o.Promise,u="process"==n(21)(s);e.exports=function(){var e,t,n,c=function(){var o,r;for(u&&(o=s.domain)&&o.exit();e;){r=e.fn,e=e.next;try{r()}catch(o){throw e?n():t=void 0,o}}t=void 0,o&&o.enter()};if(u)n=function(){s.nextTick(c)};else if(!i||o.navigator&&o.navigator.standalone)if(a&&a.resolve){var l=a.resolve(void 0);n=function(){l.then(c)}}else n=function(){r.call(o,c)};else{var f=!0,d=document.createTextNode("");new i(c).observe(d,{characterData:!0}),n=function(){d.data=f=!f}}return function(o){var r={fn:o,next:void 0};t&&(t.next=r),e||(e=r,n()),t=r}}},function(e,t,n){var o=n(4).navigator;e.exports=o&&o.userAgent||""},function(e,t,n){var o=n(16);e.exports=function(e,t,n){for(var r in t)o(e,r,t[r],n);return e}},function(e,t,n){"use strict";var o=n(4),r=n(22),i=n(18),s=n(3)("species");e.exports=function(e){var t=o[e];i&&t&&!t[s]&&r.f(t,s,{configurable:!0,get:function(){return this}})}},function(e,t,n){var o=n(3)("iterator"),r=!1;try{var i=[7][o]();i.return=function(){r=!0},Array.from(i,function(){throw 2})}catch(e){}e.exports=function(e,t){if(!t&&!r)return!1;var n=!1;try{var i=[7],s=i[o]();s.next=function(){return{done:n=!0}},i[o]=function(){return s},e(i)}catch(e){}return n}},function(e,t,n){"use strict";var o=n(24),r=n(7),i=n(4),s=n(51),a=n(54);o(o.P+o.R,"Promise",{finally:function(e){var t=s(this,r.Promise||i.Promise),n="function"==typeof e;return this.then(n?function(n){return a(t,e()).then(function(){return n})}:e,n?function(n){return a(t,e()).then(function(){throw n})}:e)}})},function(e,t,n){"use strict";var o=n(24),r=n(40),i=n(53);o(o.S,"Promise",{try:function(e){var t=r.f(this),n=i(e);return(n.e?t.reject:t.resolve)(n.v),t.promise}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.initOilLayer=function e(){if((0,i.logInfo)("Init OilLayer (version "+o.OilVersion.get()+")"),(0,c.isPreviewMode)()&&!(0,a.isPreviewCookieSet)()&&(0,i.logPreviewInfo)("Preview mode not correctly set, please see the documentation on how to set the cookie."),function(){function t(e){new Promise(function(e){Promise.all([n.e(1),n.e(0)]).then(function(t){e(n(42))}.bind(null,n)).catch(n.oe)}).then(function(t){(0,c.getLocale)()?e(t):t.locale(e)}).catch(function(e){(0,i.logError)("Locale could not be loaded.",e)})}(0,o.setGlobalOilObject)("previewModeOn",function(){return(0,a.setPreviewCookie)(),"preview mode on"}),(0,o.setGlobalOilObject)("previewModeOff",function(){return(0,a.removePreviewCookie)(),"preview mode off"}),(0,o.setGlobalOilObject)("verboseModeOn",function(){return(0,a.setVerboseCookie)(),"verbose mode on"}),(0,o.setGlobalOilObject)("verboseModeOff",function(){return(0,a.removeVerboseCookie)(),"verbose mode off"}),(0,o.setGlobalOilObject)("reload",function(){return(0,c.resetConfiguration)(),e(),"OIL reloaded"}),(0,o.setGlobalOilObject)("status",function(){return(0,a.getSoiCookie)()}),(0,o.setGlobalOilObject)("showPreferenceCenter",function(){t(function(e){e.oilShowPreferenceCenter()})}),(0,o.setGlobalOilObject)("triggerOptIn",function(){t(function(e){e.handleOptIn()})}),(0,o.setGlobalOilObject)("triggerSoiOptIn",function(){t(function(e){e.handleSoiOptIn()})}),(0,o.setGlobalOilObject)("triggerPoiOptIn",function(){t(function(e){e.handlePoiOptIn()})}),(0,o.setGlobalOilObject)("triggerOptOut",function(){(0,r.handleOptOut)()})}(),(0,u.doSetTealiumVariables)(),!(0,c.isPreviewMode)()||(0,a.isPreviewCookieSet)()){if(!(0,a.isBrowserCookieEnabled)())return(0,i.logInfo)("This browser doesn't allow cookies."),new Promise(function(e){Promise.all([n.e(1),n.e(0)]).then(function(t){e(n(42))}.bind(null,n)).catch(n.oe)}).then(function(e){e.locale(function(e){return e.renderOil({noCookie:!0})})}).catch(function(e){(0,i.logError)("Locale could not be loaded.",e)}),void(0,o.sendEventToHostSite)(l.EVENT_NAME_NO_COOKIES_ALLOWED);(0,s.checkOptIn)().then(function(e){e?((0,o.sendEventToHostSite)(l.EVENT_NAME_HAS_OPTED_IN),(0,f.executeCommandCollection)(),d()):(new Promise(function(e){Promise.all([n.e(1),n.e(0)]).then(function(t){e(n(42))}.bind(null,n)).catch(n.oe)}).then(function(e){e.locale(function(e){return e.renderOil({optIn:!1})}),d()}).catch(function(e){(0,i.logError)("Locale could not be loaded.",e)}),(0,o.sendEventToHostSite)(l.EVENT_NAME_OIL_SHOWN))})}};var o=n(1),r=n(102),i=n(0),s=n(103),a=n(6),u=n(104),c=n(2),l=n(5),f=n(105);function d(){(0,o.setGlobalOilObject)("commandCollectionExecutor",f.executeCommandCollection)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.handleOptOut=function(){(0,r.logInfo)("OptOut Received."),(0,i.removeSubscriberCookies)(),(0,o.deActivatePowerOptIn)()};var o=n(41),r=n(0),i=n(6)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.checkOptIn=function(){return new Promise(function(e,t){var n=(0,s.getSoiCookie)().opt_in,a=n;(0,o.verifyPowerOptIn)().then(function(o){!function(e,t){o.power_opt_in?(0,r.logPreviewInfo)("User has given POI permit, OIL not shown."):e?(0,r.logPreviewInfo)("User has given SOI permit, OIL not shown."):(0,r.logPreviewInfo)("User has not opted in at all, OIL should be shown.")}(n),o.power_opt_in&&(a=o.power_opt_in,(0,i.isSubscriberSetCookieActive)()&&!n&&(0,s.setSoiCookieWithConsentData)(o.consentData).then(function(){e(a)}).catch(function(e){return t(e)})),e(a)})})};var o=n(41),r=n(0),i=n(2),s=n(6)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.doSetTealiumVariables=f;var o=n(6);function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var i="_dip_oil_purpose_all",s="_dip_oil_purpose_01",a="_dip_oil_purpose_02",u="_dip_oil_purpose_03",c="_dip_oil_purpose_04",l="_dip_oil_purpose_05";function f(){if(window&&window.utag){!function(){if(!window.oilEventListenerForLoadingRules){window.oilEventListenerForLoadingRules=d;var e=window.addEventListener?"addEventListener":"attachEvent",t="attachEvent"===e?"onmessage":"message";(0,window[e])(t,window.oilEventListenerForLoadingRules,!1)}}(),window.utag_data||(window.utag_data={});var e=window.utag_data,t=(0,o.getSoiCookie)().consentData;if(t){var n=t.getPurposesAllowed();5===n.length?e[i]=1:(function(e,t){e[s]=-1!==t.indexOf(1)?1:0,e[a]=-1!==t.indexOf(2)?1:0,e[u]=-1!==t.indexOf(3)?1:0,e[c]=-1!==t.indexOf(4)?1:0,e[l]=-1!==t.indexOf(5)?1:0}(e,n),function(e){e[i]=1===e[s]&&1===e[a]&&1===e[u]&&1===e[c]&&1===e[l]?1:0}(e))}else!function(e){e[i]=0,e[s]=0,e[a]=0,e[u]=0,e[c]=0,e[l]=0}(e)}}function d(e){var t;e&&e.data&&(t="oil_opt",-1!==JSON.stringify(e.data).indexOf(t))&&(f(),function(){var e=window.utag_data;if(e){var t,n=(r(t={},i,e[i]),r(t,s,e[s]),r(t,a,e[a]),r(t,u,e[u]),r(t,c,e[c]),r(t,l,e[l]),t);window.utag.view(n)}}())}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.executeCommandCollection=function(e){if(void 0!==e)u(e);else{var t=(0,r.getCommandCollection)();if(t)for(var n=t.length,o=0;o<n;o++)u(t[o])}};var o=n(0),r=n(1),i=n(106),s=n(9),a={getVendorConsents:function(e){return(0,i.getVendorConsentData)(e)},getConsentData:function(e){return(0,i.getConsentDataString)(e)},getPublisherConsents:function(e){return(0,i.getPublisherConsentData)(e)},getVendorList:function(){return(0,s.getVendorList)()}};function u(e){(0,s.loadVendorList)().then(function(){var t,n;(t=e.command,n=e.parameter,new Promise(function(e,r){return"function"==typeof a[t]?((0,o.logInfo)('Processing command "'+t+'" with parameters "'+n+'"'),e(a[t](n))):r('Invalid CMP command "'+t+'"')})).then(function(t){if(e.callback)e.callback(t,void 0!==t);else if(e.callId){var n=function(e,t){return{__cmpReturn:{returnValue:e,success:void 0!==e,callId:t.callId}}}(t,e);e.event.source.postMessage(n,e.event.origin)}else(0,o.logError)("Invalid command entry '"+JSON.stringify(e)+"' found!")},function(e){return(0,o.logError)(e)})}).catch(function(e){return(0,o.logError)(e)})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getVendorConsentData=function(e){var t=(0,o.getSoiCookie)();if(t&&t.consentData)return{metadata:t.consentData.getMetadataString(),gdprApplies:!0,hasGlobalScope:!1,purposeConsents:a(t.consentData.getPurposesAllowed(),(0,i.getPurposeIds)()),vendorConsents:function(e,t){var n=t&&t.length?t:(0,i.getLimitedVendorIds)(),o=e.consentData.getVendorsAllowed();return n.reduce(function(e,t){return e[t]=-1!==o.indexOf(t),e},{})}(t,e)}},t.getConsentDataString=function(e){var t=(0,o.getSoiCookie)();if(t&&t.consentData){var n=function(e,t){var n=t?parseInt(t,10):s.OIL_SPEC.LATEST_CONSENT_STRING_VERSION;return!isNaN(n)&&n<=e.consentData.getVersion()?e.consentString:null}(t,e);if(n)return{gdprApplies:!0,hasGlobalScope:!1,consentData:n}}},t.getPublisherConsentData=function(e){var t=(0,o.getSoiCookie)();if(t&&t.consentData&&t.customPurposes)return{metadata:t.consentData.getMetadataString(),gdprApplies:!0,hasGlobalScope:!1,standardPurposeConsents:a(t.consentData.getPurposesAllowed(),(0,i.getPurposeIds)(),e),customPurposeConsents:a(t.customPurposes,(0,r.getCustomPurposeIds)(),e)}};var o=n(6),r=n(2),i=n(9),s=n(5);function a(e,t,n){return(n&&n.length?n:t).filter(function(e){return-1!==t.indexOf(e)}).reduce(function(t,n){return t[n]=-1!==e.indexOf(n),t},{})}}]);