UNPKG

@ideasio/oil.js

Version:

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

16 lines 75.6 kB
/*! 1.3.5-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={6: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.3.5-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="https://unpkg.com/@ideasio/oil.js@1.3.5/release/current/",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=118)}([function(e,t,n){var o=n(34)("wks"),r=n(18),i=n(1).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.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(6),r=n(16),i=n(5),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){var o=n(4);e.exports=function(e){if(!o(e))throw TypeError(e+" is not an object!");return e}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getConfigValue=u,t.getConfigVersion=function(){return u(o.OIL_CONFIG.ATTR_CONFIG_VERSION,o.OIL_CONFIG_DEFAULT_VERSION)},t.isPreviewMode=function(){return u(o.OIL_CONFIG.ATTR_PREVIEW_MODE,!1)},t.isPoiActive=function(){return u(o.OIL_CONFIG.ATTR_ACTIVATE_POI,!1)},t.getHubOrigin=c,t.getHubPath=l,t.getPublicPath=f,t.getLocaleUrl=d,t.getIabVendorListUrl=function(){return u(o.OIL_CONFIG.ATTR_IAB_VENDOR_LIST_URL,"https://vendorlist.consensu.org/vendorlist.json")},t.getIabVendorBlacklist=function(){return u(o.OIL_CONFIG.ATTR_IAB_VENDOR_BLACKLIST,void 0)},t.getCustomVendorListUrl=function(){return u(o.OIL_CONFIG.ATTR_CUSTOM_VENDOR_LIST_URL,void 0)},t.getIabVendorWhitelist=function(){return u(o.OIL_CONFIG.ATTR_IAB_VENDOR_WHITELIST,void 0)},t.setIabVendorBlacklist=function(e){a(o.OIL_CONFIG.ATTR_IAB_VENDOR_BLACKLIST,e)},t.setIabVendorWhitelist=function(e){a(o.OIL_CONFIG.ATTR_IAB_VENDOR_WHITELIST,e)},t.getPoiGroupName=function(){return u(o.OIL_CONFIG.ATTR_POI_GROUP_NAME,"default")},t.getCookieExpireInDays=function(){return u(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()},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=g,t.getCustomPurposeIds=function(){return g().map(function(e){return e.id})},t.getAdvancedSettingsPurposesDefault=function(){return u(o.OIL_CONFIG.ATTR_ADVANCED_SETTINGS_PURPOSES_DEFAULT,!1)},t.getDefaultToOptin=function(){return u(o.OIL_CONFIG.ATTR_DEFAULT_TO_OPTIN,!1)},t.getLocale=_,t.setLocale=function(e){a(o.OIL_CONFIG.ATTR_LOCALE,e)},t.gdprApplies=function(){return u(o.OIL_CONFIG.ATTR_GDPR_APPLIES_GLOBALLY,!0)||u(o.OIL_CONFIG.ATTR_GDPR_APPLIES,!1)},t.setGdprApplies=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];a(o.OIL_CONFIG.ATTR_GDPR_APPLIES,e)},t.getShowLimitedVendors=function(){return u(o.OIL_CONFIG.ATTR_SHOW_LIMITED_VENDORS_ONLY,!1)},t.isInfoBannerOnly=h,t.suppressCookies=m,t.isAmpModeActivated=function(){return h()&&m()};var o=n(13),r=n(2),i=n(6);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)),(0,i.setGlobalOilObject)("CONFIG_ATTRIBUTES",o.OIL_CONFIG),u(o.OIL_CONFIG.ATTR_CONFIG_VERSION,void 0)||(0,r.logError)('Your configuration is faulty - it must contain a "config_version" property. See the oil.js documentation for details.'),(t=_())&&"string"!=typeof t||void 0!==d()?t&&(0,i.isObject)(t)&&(t.localeId||(0,r.logError)('Your configuration is faulty - "locale" object misses "localeId" property. See the oil.js documentation for details.'),t.version||(0,r.logError)('Your configuration is faulty - "locale" object misses "version" property. See the oil.js documentation for details.')):(0,r.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 a(e,t){s()[e]=t}function u(e,t){var n=s();return n&&void 0!==n[e]?n[e]:t}function c(){var e=u(o.OIL_CONFIG.ATTR_HUB_ORIGIN,"https://unpkg.com");return e?"/"===e||-1!==e.indexOf("http")?e:location.protocol+e:null}function l(){return u(o.OIL_CONFIG.ATTR_HUB_PATH,"/@ideasio/oil.js@"+i.OilVersion.getLatestReleaseVersion()+"/release/current/hub.html")}function f(){var e=u(o.OIL_CONFIG.ATTR_PUBLIC_PATH,void 0);return e&&"/"!==e.substr(-1)&&(e+="/"),e}function d(){return u(o.OIL_CONFIG.ATTR_LOCALE_URL,void 0)}function p(){var e=_();return e||(e="enEN_01"),e&&(0,i.isObject)(e)?e.localeId?e.localeId:"enEN_01":e}function v(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"en").substring(0,2)}function g(){return u(o.OIL_CONFIG.ATTR_CUSTOM_PURPOSES,[])}function _(){return u(o.OIL_CONFIG.ATTR_LOCALE,void 0)}function h(){return u(o.OIL_CONFIG.ATTR_INFO_BANNER_ONLY,!1)}function m(){return u(o.OIL_CONFIG.ATTR_SUPPRESS_COOKIES,!1)}},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()),window.AS_OIL.eventCollection=window.AS_OIL.eventCollection||[],window.AS_OIL.eventCollection.push({name:e,timestamp:(new Date).getTime()}),(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.arrayContainsArray=function(e,t){if(!e||!t)return!1;for(var n={},o=0;o<e.length;o++)n[e[o]]||(n[e[o]]=0),n[e[o]]++;for(var r=0;r<t.length;r++)if(!n[t[r]]||--n[t[r]]<0)return!1;return!0},t.setGlobalOilObject=function(e,t){window[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(2),r=n(13),i=n(5);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.3.5-RELEASE"},getLatestReleaseVersion:function(){return"1.3.5"}}},function(e,t,n){var o=n(1),r=n(8),i=n(14),s=n(23),a=n(24),u=function(e,t,n){var c,l,f,d,p=e&u.F,v=e&u.G,g=e&u.S,_=e&u.P,h=e&u.B,m=v?o:g?o[t]||(o[t]={}):(o[t]||{}).prototype,O=v?r:r[t]||(r[t]={}),I=O.prototype||(O.prototype={});for(c in v&&(n=t),n)f=((l=!p&&m&&void 0!==m[c])?m:n)[c],d=h&&l?a(f,o):_&&"function"==typeof f?a(Function.call,f):f,m&&s(m,c,f,e&u.U),O[c]!=f&&i(O,c,d),_&&I[c]!=f&&(I[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){var n=e.exports={version:"2.5.7"};"number"==typeof __e&&(__e=n)},function(e,t,n){var o=n(3),r=n(39),i=n(31),s=Object.defineProperty;t.f=n(10)?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,n){e.exports=!n(17)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var o=n(41),r=n(32);e.exports=function(e){return o(r(e))}},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_CONFIG_VERSION:"config_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_PERSIST_MINIMUM_TRACKING:"persist_min_tracking",ATTR_LOCALE:"locale",ATTR_CPC_TYPE:"cpc_type",ATTR_THEME:"theme",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"},t.OIL_CONFIG_CPC_TYPES={CPC_TYPE_STANDARD:"standard",CPC_TYPE_TABS:"tabs"},t.OIL_CONFIG_DEFAULT_VERSION=0,t.EVENT_NAME_OPT_IN="oil_optin_done",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.DATAQA_PRIVACY_PAGE="oil-PrivacyPage",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_PURPOSES_ATTRIBUTE="data-purposes"},function(e,t,n){var o=n(9),r=n(22);e.exports=n(10)?function(e,t,n){return o.f(e,t,r(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},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=h,t.getOilCookie=m,t.hasOutdatedOilCookie=O,t.findCookieConsideringCookieVersions=I,t.getSoiCookie=function(){var e=I(L(),b);return(0,s.logInfo)("Current Oil data from domain cookie: ",e),e},t.setSoiCookieWithPoiCookieData=function(e){return new Promise(function(t,n){(0,l.loadVendorListAndCustomVendorList)().then(function(){var n=L(),o=void 0,r=e.configVersion||n.configVersion;if(e.consentString)o=e.consentString;else{var i=n.defaultCookieContent.consentData;i.setPurposesAllowed(e.consentData.allowedPurposeIds),i.setVendorsAllowed(e.consentData.allowedVendorIds),i.setConsentLanguage(e.consentData.consentLanguage),o=i.getConsentString()}var s={opt_in:!0,version:n.defaultCookieContent.version,localeVariantName:n.defaultCookieContent.localeVariantName,localeVariantVersion:n.defaultCookieContent.localeVariantVersion,customVendorListVersion:e.customVendorListVersion,customPurposes:e.customPurposes,consentString:(0,a.isInfoBannerOnly)()?"":o,configVersion:r};h(n.name,s,n.expires),t(s)}).catch(function(e){return n(e)})})},t.buildSoiCookie=y,t.setSoiCookie=function(e){return new Promise(function(t,n){y(e).then(function(e){h(v,e,(0,a.getCookieExpireInDays)()),t(e)}).catch(function(e){return n(e)})})},t.setPreviewCookie=function(){_(d,"true")},t.setVerboseCookie=function(){_(p,"true")},t.removePreviewCookie=function(){i.default.remove(d)},t.removeVerboseCookie=function(){i.default.remove(p)},t.isPreviewCookieSet=function(){return"true"===i.default.get(d)},t.isVerboseCookieSet=function(){return"true"===i.default.get(p)},t.removeSubscriberCookies=C,t.removeHubCookie=function(e){C(),e&&i.default.remove(e+"_"+v)},t.isBrowserCookieEnabled=function(){i.default.set("oil_cookie_exp","cookiedata");var e=w("oil_cookie_exp");return i.default.remove("oil_cookie_exp"),e},t.getStandardPurposesWithConsent=T,t.getCustomPurposesWithConsent=A;var r,i=(r=n(38))&&r.__esModule?r:{default:r},s=n(2),a=n(5),u=n(6),c=n(13),l=n(29),f=n(56).ConsentString,d="oil_preview",p="oil_verbose",v="oil_data",g="oil_data_session";function _(e,t){i.default.set(e,t)}function h(e,t,n){delete t.consentData,i.default.set(e,t,{expires:n})}function m(e){var t=i.default.getJSON(e.name);return t.consentData=new f(t.consentString),t}function O(e){return E(e.name,e.outdated_cookie_content_keys)}function I(e,t){var n=void 0;return function(e){return E(e.name,Object.keys(e.defaultCookieContent))}(e)?n=m(e):function(e){var t=Object.keys(e.defaultCookieContent);return t.splice(t.indexOf("configVersion"),1),E(e.name,t)}(e)?(n=m(e)).configVersion=c.OIL_CONFIG_DEFAULT_VERSION:n=O(e)?t(e):e.defaultCookieContent,n}function y(e){return new Promise(function(t,n){(0,l.loadVendorListAndCustomVendorList)().then(function(){var n=L(),o=n.defaultCookieContent.consentData;o.setGlobalVendorList((0,l.getVendorList)()),o.setPurposesAllowed(T(e)),o.setVendorsAllowed((0,l.getLimitedVendorIds)());var r={opt_in:!0,version:n.defaultCookieContent.version,localeVariantName:n.defaultCookieContent.localeVariantName,localeVariantVersion:n.defaultCookieContent.localeVariantVersion,customVendorListVersion:(0,l.getCustomVendorListVersion)(),customPurposes:A(e),consentString:(0,a.isInfoBannerOnly)()?"":o.getConsentString(),configVersion:n.defaultCookieContent.configVersion};t(r)}).catch(function(e){return n(e)})})}function C(){i.default.remove(v),i.default.remove(g)}function T(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 A(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 w(e){return void 0!==i.default.get(e)}function E(e,t){return function(e,t){if("string"==typeof e&&Array.isArray(t)&&w(e)){var n=i.default.getJSON(e);return t.every(function(e){return"consentData"===e||n.hasOwnProperty(e)})}return!1}(e,t)}function L(){var e=new f;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:v,expires:(0,a.getCookieExpireInDays)(),defaultCookieContent:{opt_in:!1,version:u.OilVersion.get(),localeVariantName:(0,a.getLocaleVariantName)(),localeVariantVersion:(0,u.getLocaleVariantVersion)(),customPurposes:A((0,a.getDefaultToOptin)()?1:0),consentData:e,consentString:(0,a.isInfoBannerOnly)()?"":e.getConsentString(),configVersion:(0,a.getConfigVersion)()},outdated_cookie_content_keys:["opt_in","timestamp","version","localeVariantName","localeVariantVersion","privacy"]}}function b(e){var t=i.default.getJSON(e.name),n=e.defaultCookieContent;return n.opt_in=t.opt_in,n.version=t.version,n.localeVariantName=t.localeVariantName,n.localeVariantVersion=t.localeVariantVersion,n.configVersion=c.OIL_CONFIG_DEFAULT_VERSION,n.customPurposes=A(t.privacy),n.consentData.setConsentLanguage((0,a.getLanguageFromLocale)(t.localeVariantName)),n.consentData.setPurposesAllowed(T(t.privacy)),n.consentData.setVendorsAllowed((0,l.getLimitedVendorIds)()),n.consentData.setGlobalVendorList((0,l.getVendorList)()),n.consentString=(0,a.isInfoBannerOnly)()?"":n.consentData.getConsentString(),n}},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},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(40),r=n(35);e.exports=Object.keys||function(e){return o(e,r)}},function(e,t){e.exports=!1},function(e,t){t.f={}.propertyIsEnumerable},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var o=n(1),r=n(14),i=n(11),s=n(18)("src"),a=Function.toString,u=(""+a).split("toString");n(8).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,n){var o=n(25);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){var o=n(42),r=Math.min;e.exports=function(e){return e>0?r(o(e),9007199254740991):0}},function(e,t){e.exports={}},function(e,t,n){var o=n(9).f,r=n(11),i=n(0)("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";Object.defineProperty(t,"__esModule",{value:!0}),t.pendingVendorListPromise=t.cachedCustomVendorList=t.cachedVendorList=t.DEFAULT_CUSTOM_VENDOR_LIST=t.DEFAULT_VENDOR_LIST=void 0,t.loadVendorListAndCustomVendorList=function(){return u&&c?new Promise(function(e){e()}):l||(t.pendingVendorListPromise=l=new Promise(function(e){var n=(0,o.getIabVendorListUrl)();(0,i.fetchJsonData)(n).then(function(n){var o;(o=n).vendors=o.vendors.sort(function(e,t){return e.id-t.id}),t.cachedVendorList=u=n,f().then(function(){t.pendingVendorListPromise=l=null,e()})}).catch(function(n){(0,r.logError)("OIL getVendorList failed and returned error: "+n+". Falling back to default vendor list!"),f().then(function(){t.pendingVendorListPromise=l=null,e()})})}),l)},t.getPurposes=d,t.getPurposeIds=function(){return d().map(function(e){return e.id})},t.getVendors=p,t.getVendorIds=v,t.getVendorList=function(){return u||{vendorListVersion:s.vendorListVersion,lastUpdated:s.lastUpdated,vendors:m(h()),purposes:m(s.purposeIds),features:[],isDefault:!0}},t.getCustomVendorList=function(){return c||a},t.getCustomVendorListVersion=function(){return c&&!c.isDefault?c.vendorListVersion:void 0},t.clearVendorListCache=function(){t.cachedVendorList=u=void 0,t.cachedCustomVendorList=c=void 0,t.pendingVendorListPromise=l=null},t.getVendorsToDisplay=function(){return(0,o.getShowLimitedVendors)()?g():p()},t.getLimitedVendors=g,t.getLimitedVendorIds=_;var o=n(5),r=n(2),i=n(6),s=t.DEFAULT_VENDOR_LIST={vendorListVersion:36,maxVendorId:380,lastUpdated:"2018-05-30T16:00:15Z",purposeIds:[1,2,3,4,5]},a=t.DEFAULT_CUSTOM_VENDOR_LIST={vendorListVersion:-1,isDefault:!0,vendors:[]},u=t.cachedVendorList=void 0,c=t.cachedCustomVendorList=void 0,l=t.pendingVendorListPromise=null;function f(){return new Promise(function(e){var n=(0,o.getCustomVendorListUrl)();n?(0,i.fetchJsonData)(n).then(function(n){t.cachedCustomVendorList=c=n,e()}).catch(function(n){t.cachedCustomVendorList=c=a,(0,r.logError)("OIL getCustomVendorList failed and returned error: "+n+". Falling back to default custom vendor list!"),e()}):(t.cachedCustomVendorList=c=a,e())})}function d(){return u?u.purposes:m(s.purposeIds)}function p(){return u?u.vendors:m(h())}function v(){return p().map(function(e){return e.id})}function g(){var e=p(),t=_();return(0,r.logInfo)("limiting vendors"),e.filter(function(e){return t.indexOf(e.id)>-1})}function _(){var e=void 0;e=u?v():h();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}function h(){return function(e,t){for(;e--;)t[e]=e+1;return t}(s.maxVendorId,[])}function m(e){return e.map(function(e){return{id:e}})}},function(e,t,n){var o=n(4),r=n(1).document,i=o(r)&&o(r.createElement);e.exports=function(e){return i?r.createElement(e):{}}},function(e,t,n){var o=n(4);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){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(34)("keys"),r=n(18);e.exports=function(e){return o[e]||(o[e]=r(e))}},function(e,t,n){var o=n(8),r=n(1),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(20)?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,n){var o=n(32);e.exports=function(e){return Object(o(e))}},function(e,t){t.f=Object.getOwnPropertySymbols},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){e.exports=!n(10)&&!n(17)(function(){return 7!=Object.defineProperty(n(30)("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){var o=n(11),r=n(12),i=n(60)(!1),s=n(33)("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(15);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==o(e)?e.split(""):Object(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,n){var o=n(42),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(0)("unscopables"),r=Array.prototype;void 0==r[o]&&n(14)(r,o,{}),e.exports=function(e){r[o][e]=!0}},function(e,t,n){var o=n(3),r=n(67),i=n(35),s=n(33)("IE_PROTO"),a=function(){},u=function(){var e,t=n(30)("iframe"),o=i.length;for(t.style.display="none",n(46).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(1).document;e.exports=o&&o.documentElement},function(e,t,n){t.f=n(0)},function(e,t,n){var o=n(40),r=n(35).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return o(e,r)}},function(e,t,n){var o=n(15),r=n(0)("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,n){var o,r,i,s=n(24),a=n(89),u=n(46),c=n(30),l=n(1),f=l.process,d=l.setImmediate,p=l.clearImmediate,v=l.MessageChannel,g=l.Dispatch,_=0,h={},m=function(){var e=+this;if(h.hasOwnProperty(e)){var t=h[e];delete h[e],t()}},O=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(_),_},p=function(e){delete h[e]},"process"==n(15)(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=O,o=s(i.postMessage,i,1)):l.addEventListener&&"function"==typeof postMessage&&!l.importScripts?(o=function(e){l.postMessage(e+"","*")},l.addEventListener("message",O,!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,n){"use strict";var o=n(25);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";var o=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},r=n(53),i=r.encodeToBase64,s=r.padRight;function a(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 s(n,Math.max(0,e-n.length))}function u(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Set,n=0,o=0;o<e.length;o+=1)n=Math.max(n,e[o].id);for(var r=0;r<t.length;r+=1)n=Math.max(n,t[r]);for(var i="",s=1;s<=n;s+=1)i+=-1!==t.indexOf(s)?"1":"0";return i}function c(e,t){for(var n=[],o=[],r=e.map(function(e){return e.id}),i=0;i<e.length;i+=1){var s=e[i].id;if(-1!==t.indexOf(s)&&n.push(s),(-1===t.indexOf(s)||i===e.length-1||-1===r.indexOf(s+1))&&n.length){var a=n.shift(),u=n.pop();n=[],o.push({isRange:"number"==typeof u,startVendorId:a,endVendorId:u})}}return o}function l(e){var t=0;return e.forEach(function(e){e.id>t&&(t=e.id)}),t}e.exports={convertVendorsToRanges:c,encodeConsentString:function(e){var t=e.maxVendorId,n=e.vendorList,r=void 0===n?{}:n,s=e.allowedPurposeIds,f=e.allowedVendorIds,d=r.vendors,p=void 0===d?[]:d,v=r.purposes,g=void 0===v?[]:v;t||(t=l(p));var _=i(o({},e,{maxVendorId:t,purposeIdBitString:u(g,s),isRange:!1,vendorIdBitString:a(t,f)})),h=c(p,f),m=i(o({},e,{maxVendorId:t,purposeIdBitString:u(g,s),isRange:!0,defaultConsent:!1,numEntries:h.length,vendorRangeList:h}));return _.length<m.length?_:m},getMaxVendorId:l,encodeVendorIdsToBits:a,encodePurposeIdsToBits:u}},function(e,t,n){"use strict";var o=n(98),r=n(54),i=r.versionNumBits,s=r.vendorVersionMap;function a(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 u(e,t){return a(Math.max(0,t))+e}function c(e,t){return e+a(Math.max(0,t))}function l(e,t){var n="";return"number"!=typeof e||isNaN(e)||(n=parseInt(e,10).toString(2)),t>=n.length&&(n=u(n,t-n.length)),n.length>t&&(n=n.substring(0,t)),n}function f(e){return l(!0===e?1:0,1)}function d(e,t){return e instanceof Date?l(e.getTime()/100,t):l(e,t)}function p(e,t){return l(e.toUpperCase().charCodeAt(0)-65,t)}function v(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:12;return p(e.slice(0,1),t/2)+p(e.slice(1),t/2)}function g(e,t,n){return parseInt(e.substr(t,n),2)}function _(e,t,n){return new Date(100*g(e,t,n))}function h(e,t){return 1===parseInt(e.substr(t,1),2)}function m(e){var t=g(e);return String.fromCharCode(t+65).toLowerCase()}function O(e,t,n){var o=e.substr(t,n);return m(o.slice(0,n/2))+m(o.slice(n/2))}function I(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,p=t[o],g=null===p||void 0===p?"":p;switch(r){case"int":return l(g,u);case"bool":return f(g);case"date":return d(g,u);case"bits":return c(g,u-g.length).substring(0,u);case"list":return g.reduce(function(e,t){return e+y({input:t,fields:n.fields})},"");case"language":return v(g,u);default:throw new Error("ConsentString - Unknown field type "+r+" for encoding")}}function y(e){var t=e.input;return e.fields.reduce(function(e,n){return e+I({input:t,field:n})},"")}function C(e,t){var n=e.version;if("number"!=typeof n)throw new Error("ConsentString - No version field to encode");if(t[n])return y({input:e,fields:t[n].fields});throw new Error("ConsentString - No definition for version "+n)}e.exports={padRight:c,padLeft:u,encodeField:I,encodeDataToBits:C,encodeIntToBits:l,encodeBoolToBits:f,encodeDateToBits:d,encodeLanguageToBits:v,encodeLetterToBits:p,encodeToBase64:function(e){var t=C(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:s);if(t){for(var n=c(t,7-(t.length+7)%8),r="",i=0;i<n.length;i+=8)r+=String.fromCharCode(parseInt(n.substr(i,8),2));return o.encode(r).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:g,decodeBitsToDate:_,decodeBitsToBool:h,decodeBitsToLanguage:O,decodeBitsToLetter:m,decodeFromBase64:function(e,t){for(var n=e;n.length%4!=0;)n+="=";n=n.replace(/-/g,"+").replace(/_/g,"/");for(var r=o.decode(n),a="",c=0;c<r.length;c+=1){var l=r.charCodeAt(c).toString(2);a+=u(l,8-l.length)}return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s,n=g(e,0,i);if("number"!=typeof n)throw new Error("ConsentString - Unknown version number in the string to decode");if(!s[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,u=i.decoder,c=i.validator,l=i.listCount;if("function"==typeof c&&!c(o))return{newPosition:r};if("function"==typeof u)return u(n,o,r);var f="function"==typeof a?a(o):a;switch(s){case"int":return{fieldValue:g(n,r,f)};case"bool":return{fieldValue:h(n,r)};case"date":return{fieldValue:_(n,r,f)};case"bits":return{fieldValue:n.substr(r,f)};case"list":return function(t,n,o,r,i){var s=0;"function"==typeof i?s=i(n):"number"==typeof i&&(s=i);for(var a=o,u=[],c=0;c<s;c+=1){var l=e({input:t,fields:r.fields,startPosition:a});a=l.newPosition,u.push(l.decodedObject)}return{fieldValue:u,newPosition:a}}(n,o,r,i,l);case"language":return{fieldValue:O(n,r,f)};default:throw new Error("ConsentString - Unknown field type "+s+" for decoding")}}({input:n,output:t,startPosition:i,field:o}),u=a.fieldValue,c=a.newPosition;return void 0!==u&&(t[r]=u),void 0!==c?i=c:"number"==typeof s&&(i+=s),t},{}),newPosition:i}}({input:e,fields:t[n].fields}).decodedObject}(a,t)}}},function(e,t,n){"use strict";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";var o=n(53),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,_=t.consentScreen,h=t.consentLanguage,m={version:n,cmpId:o,vendorListVersion:s,allowedPurposeIds:r(a),maxVendorId:u,created:c,lastUpdated:l,cmpVersion:g,consentScreen:_,consentLanguage:h};if(f){var O=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 I=1;I<=u;I+=1)(d&&!O[I]||!d&&O[I])&&-1===m.allowedVendorIds.indexOf(I)&&m.allowedVendorIds.push(I)}else m.allowedVendorIds=r(p);return m}}},function(e,t,n){"use strict";var o=n(97).ConsentString,r=n(55).decodeConsentString,i=n(52).encodeConsentString;e.exports={ConsentString:o,decodeConsentString:r,encodeConsentString:i}},function(e,t,n){"use strict";function o(){if(Object.values||n(58),Array.prototype.fill||n(61),Array.prototype.values||n(63),String.startsWith||n(69),Object.assign||n(73),window.Symbol||n(75),!window.Promise&&(n(82),n(8),"function"!=typeof window.CustomEvent)){var e=function(e,t){t=t||{bubbles:!1,cancelable:!1,detail:void 0};var n=document.createEvent("CustomEvent");return n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),n};e.prototype=window.Event.prototype,window.CustomEvent=e}}Object.defineProperty(t,"__esModule",{value:!0}),t.generatePolyfills=o,t.default=o()},function(e,t,n){var o=n(7),r=n(59)(!1);o(o.S,"Object",{values:function(e){return r(e)}})},function(e,t,n){var o=n(19),r=n(12),i=n(21).f;e.exports=function(e){return function(t){for(var n,s=r(t),a=o(s),u=a.length,c=0,l=[];u>c;)i.call(s,n=a[c++])&&l.push(e?[n,s[n]]:s[n]);return l}}},function(e,t,n){var o=n(12),r=n(26),i=n(43);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(7);o(o.P,"Array",{fill:n(62)}),n(44)("fill")},function(e,t,n){"use strict";var o=n(36),r=n(43),i=n(26);e.exports=function(e){for(var t=o(this),n=i(t.length),s=arguments.length,a=r(s>1?arguments[1]:void 0,n),u=s>2?arguments[2]:void 0,c=void 0===u?n:r(u,n);c>a;)t[a++]=e;return t}},function(e,t,n){"use strict";var o=n(44),r=n(64),i=n(27),s=n(12);e.exports=n(65)(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){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,n){"use strict";var o=n(20),r=n(7),i=n(23),s=n(14),a=n(27),u=n(66),c=n(28),l=n(68),f=n(0)("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,O,I,y=function(e){if(!d&&e in w)return w[e];switch(e){case"keys":case"values":return function(){return new n(this,e)}}return function(){return new n(this,e)}},C=t+" Iterator",T="values"==g,A=!1,w=e.prototype,E=w[f]||w["@@iterator"]||g&&w[g],L=E||y(g),b=g?T?y("entries"):L:void 0,S="Array"==t&&w.entries||E;if(S&&(I=l(S.call(new e)))!==Object.prototype&&I.next&&(c(I,C,!0),o||"function"==typeof I[f]||s(I,f,p)),T&&E&&"values"!==E.name&&(A=!0,L=function(){return E.call(this)}),o&&!h||!d&&!A&&w[f]||s(w,f,L),a[t]=L,a[C]=p,g)if(m={values:T?L:y("values"),keys:_?L:y("keys"),entries:b},h)for(O in m)O in w||i(w,O,m[O]);else r(r.P+r.F*(d||A),t,m);return m}},function(e,t,n){"use strict";var o=n(45),r=n(22),i=n(28),s={};n(14)(s,n(0)("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(9),r=n(3),i=n(19);e.exports=n(10)?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(11),r=n(36),i=n(33)("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){"use strict";var o=n(7),r=n(26),i=n(70),s="".startsWith;o(o.P+o.F*n(72)("startsWith"),"String",{startsWith:function(e){var t=i(this,e,"startsWith"),n=r(Math.min(arguments.length>1?arguments[1]:void 0,t.length)),o=String(e);return s?s.call(t,o,n):t.slice(n,n+o.length)===o}})},function(e,t,n){var o=n(71),r=n(32);e.exports=function(e,t,n){if(o(t))throw TypeError("String#"+n+" doesn't accept regex!");return String(r(e))}},function(e,t,n){var o=n(4),r=n(15),i=n(0)("match");e.exports=function(e){var t;return o(e)&&(void 0!==(t=e[i])?!!t:"RegExp"==r(e))}},function(e,t,n){var o=n(0)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[o]=!1,!"/./"[e](t)}catch(e){}}return!0}},function(e,t,n){var o=n(7);o(o.S+o.F,"Object",{assign:n(74)})},function(e,t,n){"use strict";var o=n(19),r=n(37),i=n(21),s=n(36),a=n(41),u=Object.assign;e.exports=!u||n(17)(function(){var e={},t={},n=Symbol(),o="abcdefghijklmnopqrst";return e[n]=7,o.split("").forEach(function(e){t[e]=e}),7!=u({},e)[n]||Object.keys(u({},t)).join("")!=o})?function(e,t){for(var n=s(e),u=arguments.length,c=1,l=r.f,f=i.f;u>c;)for(var d,p=a(arguments[c++]),v=l?o(p).concat(l(p)):o(p),g=v.length,_=0;g>_;)f.call(p,d=v[_++])&&(n[d]=p[d]);return n}:u},function(e,t,n){"use strict";var o=n(1),r=n(11),i=n(10),s=n(7),a=n(23),u=n(76).KEY,c=n(17),l=n(34),f=n(28),d=n(18),p=n(0),v=n(47),g=n(77),_=n(78),h=n(79),m=n(3),O=n(4),I=n(12),y=n(31),C=n(22),T=n(45),A=n(80),w=n(81),E=n(9),L=n(19),b=w.f,S=E.f,P=A.f,V=o.Symbol,N=o.JSON,R=N&&N.stringify,D=p("_hidden"),x=p("toPrimitive"),k={}.propertyIsEnumerable,M=l("symbol-registry"),j=l("symbols"),G=l("op-symbols"),B=Object.prototype,F="function"==typeof V,U=o.QObject,Y=!U||!U.prototype||!U.prototype.findChild,H=i&&c(function(){return 7!=T(S({},"a",{get:function(){return S(this,"a",{value:7}).a}})).a})?function(e,t,n){var o=b(B,t);o&&delete B[t],S(e,t,n),o&&e!==B&&S(B,t,o)}:S,J=function(e){var t=j[e]=T(V.prototype);return t._k=e,t},W=F&&"symbol"==typeof V.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof V},K=function(e,t,n){return e===B&&K(G,t,n),m(e),t=y(t,!0),m(n),r(j,t)?(n.enumerable?(r(e,D)&&e[D][t]&&(e[D][t]=!1),n=T(n,{enumerable:C(0,!1)})):(r(e,D)||S(e,D,C(1,{})),e[D][t]=!0),H(e,t,n)):S(e,t,n)},q=function(e,t){m(e);for(var n,o=_(t=I(t)),r=0,i=o.length;i>r;)K(e,n=o[r++],t[n]);return e},z=function(e){var t=k.call(this,e=y(e,!0));return!(this===B&&r(j,e)&&!r(G,e))&&(!(t||!r(this,e)||!r(j,e)||r(this,D)&&this[D][e])||t)},X=function(e,t){if(e=I(e),t=y(t,!0),e!==B||!r(j,t)||r(G,t)){var n=b(e,t);return!n||!r(j,t)||r(e,D)&&e[D][t]||(n.enumerable=!0),n}},Q=function(e){for(var t,n=P(I(e)),o=[],i=0;n.length>i;)r(j,t=n[i++])||t==D||t==u||o.push(t);return o},Z=function(e){for(var t,n=e===B,o=P(n?G:I(e)),i=[],s=0;o.length>s;)!r(j,t=o[s++])||n&&!r(B,t)||i.push(j[t]);return i};F||(a((V=function(){if(this instanceof V)throw TypeError("Symbol is not a constructor!");var e=d(arguments.length>0?arguments[0]:void 0),t=function(n){this===B&&t.call(G,n),r(this,D)&&r(this[D],e)&&(this[D][e]=!1),H(this,e,C(1,n))};return i&&Y&&H(B,e,{configurable:!0,set:t}),J(e)}).prototype,"toString",function(){return this._k}),w.f=X,E.f=K,n(48).f=A.f=Q,n(21).f=z,n(37).f=Z,i&&!n(20)&&a(B,"propertyIsEnumerable",z,!0),v.f=function(e){return J(p(e))}),s(s.G+s.W+s.F*!F,{Symbol:V});for(var $="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ee=0;$.length>ee;)p($[ee++]);for(var te=L(p.store),ne=0;te.length>ne;)g(te[ne++]);s(s.S+s.F*!F,"Symbol",{for:function(e){return r(M,e+="")?M[e]:M[e]=V(e)},keyFor:function(e){if(!W(e))throw TypeError(e+" is not a symbol!");for(var t in M)if(M[t]===e)return t},useSetter:function(){Y=!0},useSimple:function(){Y=!1}}),s(s.S+s.F*!F,"Object",{create:function(e,t){return void 0===t?T(e):q(T(e),t)},defineProperty:K,defineProperties:q,getOwnPropertyDescriptor:X,getOwnPropertyNames:Q,getOwnPropertySymbols:Z}),N&&s(s.S+s.F*(!F||c(function(){var e=V();return"[null]"!=R([e])||"{}"!=R({a:e})||"{}"!=R(Object(e))})),"JSON",{stringify:function(e){for(var t,n,o=[e],r=1;arguments.length>r;)o.push(arguments[r++]);if(n=t=o[1],(O(t)||void 0!==e)&&!W(e))return h(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!W(t))return t}),o[1]=t,R.apply(N,o)}}),V.prototype[x]||n(14)(V.prototype,x,V.prototype.valueOf),f(V,"Symbol"),f(Math,"Math",!0),f(o.JSON,"JSON",!0)},function(e,t,n){var o=n(18)("meta"),r=n(4),i=n(11),s=n(9).f,a=0,u=Object.isExtensible||function(){return!0},c=!n(17)(function(){return u(Object.preventExtensions({}))}),l=function(e){s(e,o,{value:{i:"O"+ ++a,w:{}}})},f=e.exports={KEY:o,NEED:!1,fastKey:function(e,t){if(!r(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!i(e,o)){if(!u(e))return"F";if(!t)return"E";l(e)}return e[o].i},getWeak:function(e,t){if(!i(e,o)){if(!u(e))return!0;if(!t)return!1;l(e)}return e[o].w},onFreeze:function(e){return c&&f.NEED&&u(e)&&!i(e,o)&&l(e),e}}},function(e,t,n){var o=n(1),r=n(8),i=n(20),s=n(47),a=n(9).f;e.exports=function(e){var t=r.Symbol||(r.Symbol=i?{}:o.Symbol||{});"_"==e.charAt(0)||e in t||a(t,e,{value:s.f(e)})}},function(e,t,n){var o=n(19),r=n(37),i=n(21);e.exports=function(e){var t=o(e),n=r.f;if(n)for(var s,a=n(e),u=i.f,c=0;a.length>c;)u.call(e,s=a[c++])&&t.push(s);return t}},function(e,t,n){var o=n(15);e.exports=Array.isArray||function(e){return"Array"==o(e)}},function(e,t,n){var o=n(12),r=n(48).f,i={}.toString,s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return s&&"[object Window]"==i.call(e)?function(e){try{return r(e)}catch(e){return s.slice()}}(e):r(o(e))}},function(e,t,n){var o=n(21),r=n(22),i=n(12),s=n(31),a=n(11),u=n(39),c=Object.getOwnPropertyDescriptor;t.f=n(10)?c:function(e,t){if(e=i(e),t=s(t,!0),u)try{return c(e,t)}catch(e){}if(a(e,t))return r(!o.f.call(e,t),e[t])}},function(e,t,n){"use strict";var o,r,i,s,a=n(20),u=n(1),c=n(24),l=n(49),f=n(7),d=n(4),p=n(25),v=n(83),g=n(84),_=n(88),h=n(50).set,m=n(90)(),O=n(51),I=n(91),y=n(92),C=n(93),T=u.TypeError,A=u.process,w=A&&A.versions,E=w&&w.v8||"",L=u.Promise,b="process"==l(A),S=function(){},P=r=O.f,V=!!function(){try{var e=L.resolve(1),t=(e.constructor={})[n(0)("species")]=function(e){e(S,S)};return(b||"function"==typeof PromiseRejectionEvent)&&e.then(S)instanceof t&&0!==E.indexOf("6.6")&&-1===y.indexOf("Chrome/66")}catch(e){}}(),N=function(e){var t;return!(!d(e)||"function"!=typeof(t=e.then))&&t},R=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&&k(e),e._h=1),!0===a?n=o:(l&&l.enter(),n=a(o),l&&(l.exit(),s=!0)),n===t.promise?c(T("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&&D(e)})}},D=function(e){h.call(u,function(){var t,n,o,r=e._v,i=x(e);if(i&&(t=I(function(){b?A.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=b||x(e)?2:1),e._a=void 0,i&&t.e)throw t.v})},x=function(e){return 1!==e._h&&0===(e._a||e._c).length},k=function(e){h.call(u,function(){var t;b?A.emit("rejectionHandled",e):(t=u.onrejectionhandled)&&t({promise:e,reason:e._v})})},M=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()),R(t,!0))},j=function(e){var t,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===e)throw