(window._sp_wp_jsonp=window._sp_wp_jsonp||[]).push([[4,3],{183:function(e,t,r){"use strict";r.r(t),r.d(t,"default",(function(){return P}));r(19),r(23),r(56),r(24),r(25),r(75),r(138),r(104),r(57),r(37),r(52),r(53),r(26),r(27),r(36),r(191),r(192),r(54),r(58),r(73),r(30),r(76),r(28),r(55),r(38),r(29);var n=r(0),o=r(14),i=r(61),u=r(197),a=r(205),c=r(203),s=null,l=r(148);function f(e){return(f="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})(e)}function p(e){return function(e){if(Array.isArray(e))return y(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return y(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return y(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);r0)for(var r=e.getMaxVendorId(),n=function(r){var n=r.toString();e.getRestrictions(r).forEach((function(e){var r=e.purposeId.toString();t[r]||(t[r]={}),t[r][n]=e.restrictionType}))},o=1;o<=r;o++)n(o);return t}},{key:"createVectorField",value:function(e,t){return t?t.reduce((function(t,r){return t[String(r)]=e.has(Number(r)),t}),{}):q(e).reduce((function(e,t){return e[t[0].toString(10)]=t[1],e}),{})}}])&&Z(t.prototype,r),n&&Z(t,n),Object.defineProperty(t,"prototype",{writable:!1}),i}(x);function ae(e){return(ae="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})(e)}function ce(e){return function(e){if(Array.isArray(e))return se(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return se(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return se(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function se(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0){var r=e.getMaxVendorId();e.getRestrictions().forEach((function(e){t[e.purposeId.toString()]="_".repeat(r)}));for(var n=function(r){var n=r+1;e.getRestrictions(n).forEach((function(e){var n=e.restrictionType.toString(),o=e.purposeId.toString(),i=t[o].substr(0,r),u=t[o].substr(r+1);t[o]=i+n+u}))},o=0;o2&&void 0!==arguments[2]?arguments[2]:"";return Pt(this,a),(r=u.call(this,"invalid value ".concat(t," passed for ").concat(e," ").concat(n))).name="TCModelError",r}return n=a,o&&St(n.prototype,o),i&&St(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n}(_t(Error));function Lt(e){return(Lt="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})(e)}function Rt(e,t){for(var r=0;r=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,u=!0,a=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return u=e.done,e},e:function(e){a=!0,i=e},f:function(){try{u||null==r.return||r.return()}finally{if(a)throw i}}}}function Mt(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=2&&2==r.length){if(e.langSet.has(t))return t;if(e.langSet.has(r))return r;var n=r+"-"+r;if(e.langSet.has(n))return n;var o,i=Ut(e.langSet);try{for(i.s();!(o=i.n()).done;){var u=o.value;if(-1!==u.indexOf(t)||-1!==u.indexOf(r))return u}}catch(e){i.e(e)}finally{i.f()}}throw new Error("unsupported language ".concat(t))}},{key:"forEach",value:function(t){e.langSet.forEach(t)}},{key:"size",get:function(){return e.langSet.size}}])&&Ft(t.prototype,r),n&&Ft(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Jt(e){return(Jt="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})(e)}function Yt(e,t){for(var r=0;r=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,u=!0,a=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return u=e.done,e},e:function(e){a=!0,i=e},f:function(){try{u||null==r.return||r.return()}finally{if(a)throw i}}}}function Xt(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&(this.restrictionType===nr.NOT_ALLOWED||this.restrictionType===nr.REQUIRE_CONSENT||this.restrictionType===nr.REQUIRE_LI)}},{key:"isSameAs",value:function(e){return this.purposeId===e.purposeId&&this.restrictionType===e.restrictionType}}])&&ur(t.prototype,r),n&&ur(t,n),Object.defineProperty(t,"prototype",{writable:!1}),i}(or);pr(br,"hashSeparator","-");r(75),r(77),r(78),r(195);function vr(e){return(vr="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})(e)}function dr(e){return function(e){if(Array.isArray(e))return mr(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return mr(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return mr(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function mr(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);re.restrictionType)&&(r=e.restrictionType)})),r}},{key:"vendorHasRestriction",value:function(e,t){for(var r=!1,n=this.getRestrictions(e),o=0;o=0;--i){var u=this.tryEntries[i],a=u.completion;if("root"===u.tryLoc)return o("end");if(u.tryLoc<=this.prev){var c=n.call(u,"catchLoc"),s=n.call(u,"finallyLoc");if(c&&s){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),I(r),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;I(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:k(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),v}},t}function Mr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Fr(e,t){for(var r=0;r0}},{key:"isSet",value:function(e){var t=!1;return e instanceof Set&&(t=Array.from(e).every(this.isValidNumber)),t}},{key:"set",value:function(e){var t=this;if(Array.isArray(e))e.forEach((function(e){return t.set(e)}));else if(this.isSet(e))this.set(Array.from(e));else if(this.isIntMap(e))this.set(Object.keys(e).map((function(e){return Number(e)})));else{if(!this.isValidNumber(e))throw new At("set()",e,"must be positive integer array, positive integer, Set, or IntMap");this.set_.add(e),this.maxId_=Math.max(this.maxId,e),this.bitLength=0}}},{key:"empty",value:function(){this.set_=new Set,this.maxId_=0}},{key:"forEach",value:function(e){for(var t=1;t<=this.maxId;t++)e(this.has(t),t)}},{key:"size",get:function(){return this.set_.size}},{key:"setAll",value:function(e){this.set(e)}}])&&Fr(t.prototype,r),n&&Fr(t,n),Object.defineProperty(t,"prototype",{writable:!1}),i}(or);function bn(e){return(bn="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})(e)}function vn(e,t){for(var r=0;rt||e<0)throw new lt("".concat(e," too large to encode into ").concat(t));return r.length25||n<0||n>25)throw new lt("invalid language code: ".concat(e));if(t%2==1)throw new lt("numBits must be even, ".concat(t," is not valid"));return t/=2,Cn.encode(r,t)+Cn.encode(n,t)}},{key:"decode",value:function(e,t){if(t!==e.length||e.length%2)throw new et("invalid bit length for language");var r=e.length/2,n=Cn.decode(e.slice(0,r),r)+65,o=Cn.decode(e.slice(r),r)+65;return String.fromCharCode(n)+String.fromCharCode(o)}}],(r=null)&&xn(t.prototype,r),n&&xn(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Fn(e){return(Fn="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})(e)}function Bn(e,t){for(var r=0;rr(l,o[i-1])){var f=!(l===a);c+=jn.encode(f),c+=Cn.encode(a,gn.vendorId),f&&(c+=Cn.encode(l,gn.vendorId)),a=0}}t+=Cn.encode(u,gn.numEntries),t+=c}))}return t}},{key:"decode",value:function(e){var t=0,r=new kr,n=Cn.decode(e.substr(t,gn.numRestrictions),gn.numRestrictions);t+=gn.numRestrictions;for(var o=0;oc&&s0&&this[2].push(Ir.VENDORS_ALLOWED),this[2].push(Ir.PUBLISHER_TC))}}));function lo(e){return(lo="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})(e)}function fo(e,t){for(var r=0;r").concat(r,": ").concat(e.message))}})),Vt.encode(o)}},{key:"decode",value:function(e,t,r){var n=this,o=Vt.decode(e),i=0;r===Ir.CORE&&(t.version=Cn.decode(o.substr(i,gn[$t.version]),gn[$t.version])),r!==Ir.CORE&&(i+=gn.segmentType);var u=this.fieldSequence[String(t.version)][r],a=$n();return u.forEach((function(e){var r=a[e],u=gn[e];if(void 0===u&&n.isPublisherCustom(e)&&(u=Number(t[$t.numCustomPurposes])),0!==u){var c=o.substr(i,u);if(t[e]=r===zn?r.decode(c,t.version):r.decode(c,u),Number.isInteger(u))i+=u;else{if(!Number.isInteger(t[e].bitLength))throw new et(e);i+=t[e].bitLength}}})),t}},{key:"isPublisherCustom",value:function(e){return 0===e.indexOf("publisherCustom")}}],(r=null)&&fo(t.prototype,r),n&&fo(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function bo(e){return(bo="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})(e)}function vo(e,t){for(var r=0;r0&&(null==t?void 0:t.version)<=this.processor.length?e.version=t.version:e.version=this.processor.length;var n=e.version-1;if(!this.processor[n])throw new lt("Invalid version: ".concat(e.version));return this.processor[n](e,r)}}],(r=null)&&vo(t.prototype,r),n&&vo(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();!function(e,t,r){(t=mo(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}(ho,"processor",[function(e){return e},function(e,t){e.publisherRestrictions.gvl=t,e.purposeLegitimateInterests.unset([1,3,4,5,6]);var r=new Map;return r.set("legIntPurposes",e.vendorLegitimateInterests),r.set("purposes",e.vendorConsents),r.forEach((function(r,n){r.forEach((function(o,i){if(o){var u=t.vendors[i];if(!u||u.deletedDate)r.unset(i);else if(0===u[n].length)if("legIntPurposes"===n&&0===u.purposes.length&&0===u.legIntPurposes.length&&u.specialPurposes.length>0)r.set(i);else if("legIntPurposes"===n&&u.purposes.length>0&&0===u.legIntPurposes.length&&u.specialPurposes.length>0)r.set(i);else if(e.isServiceSpecific)if(0===u.flexiblePurposes.length)r.unset(i);else{for(var a=e.publisherRestrictions.getRestrictions(i),c=!1,s=0,l=a.length;s=200&&u.status<300){var e=u.response;if("string"==typeof e)try{e=JSON.parse(e)}catch(e){}o(e)}else i(new Error("HTTP Status: ".concat(u.status," response type: ").concat(u.responseType)))})),u.addEventListener("error",(function(){i(new Error("error"))})),u.addEventListener("abort",(function(){i(new Error("aborted"))})),null===t?u.open("GET",e,!0):u.open("POST",e,!0),u.responseType="json",u.timeout=n,u.ontimeout=function(){i(new Error("Timeout "+n+"ms "+e))},u.send(t)}))}},{key:"post",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return this.absCall(e,JSON.stringify(t),r,n)}},{key:"fetch",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return this.absCall(e,null,t,r)}}],(r=null)&&wo(t.prototype,r),n&&wo(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function jo(e){return(jo="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})(e)}function Po(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Eo(e){for(var t=1;t=0;--i){var u=this.tryEntries[i],a=u.completion;if("root"===u.tryLoc)return o("end");if(u.tryLoc<=this.prev){var c=n.call(u,"catchLoc"),s=n.call(u,"finallyLoc");if(c&&s){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),I(r),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;I(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:k(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),v}},t}function Co(e,t,r,n,o,i,u){try{var a=e[i](u),c=a.value}catch(e){return void r(e)}a.done?t(c):Promise.resolve(c).then(n,o)}function Io(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function u(e){Co(i,n,o,u,a,"next",e)}function a(e){Co(i,n,o,u,a,"throw",e)}u(void 0)}))}}function To(e,t){for(var r=0;r0){var i=e;a.CACHE.has(i)?(r.populate(a.CACHE.get(i)),r.readyPromise=Promise.resolve()):(n+=a.versionedFilename.replace("[VERSION]",String(i)),r.readyPromise=r.fetchJson(n))}else a.CACHE.has(a.LATEST_CACHE_KEY)?(r.populate(a.CACHE.get(a.LATEST_CACHE_KEY)),r.readyPromise=Promise.resolve()):(r.isLatest=!0,r.readyPromise=r.fetchJson(n+a.latestFilename))}return r}return t=a,r=[{key:"cacheLanguage",value:function(){a.LANGUAGE_CACHE.has(this.cacheLang_)||a.LANGUAGE_CACHE.set(this.cacheLang_,{purposes:this.purposes,specialPurposes:this.specialPurposes,features:this.features,specialFeatures:this.specialFeatures,stacks:this.stacks,dataCategories:this.dataCategories})}},{key:"fetchJson",value:(i=Io(_o().mark((function e(t){return _o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.t0=this,e.next=4,So.fetch(t);case 4:e.t1=e.sent,e.t0.populate.call(e.t0,e.t1),e.next=11;break;case 8:throw e.prev=8,e.t2=e.catch(0),new wt(e.t2.message);case 11:case"end":return e.stop()}}),e,this,[[0,8]])}))),function(e){return i.apply(this,arguments)})},{key:"getJson",value:function(){return Eo(Eo({gvlSpecificationVersion:this.gvlSpecificationVersion,vendorListVersion:this.vendorListVersion,tcfPolicyVersion:this.tcfPolicyVersion,lastUpdated:this.lastUpdated,purposes:this.clonePurposes(),specialPurposes:this.cloneSpecialPurposes(),features:this.cloneFeatures(),specialFeatures:this.cloneSpecialFeatures(),stacks:this.cloneStacks()},this.dataCategories?{dataCategories:this.cloneDataCategories()}:{}),{},{vendors:this.cloneVendors()})}},{key:"cloneSpecialFeatures",value:function(){for(var e={},t=0,r=Object.keys(this.specialFeatures);t0&&"/"!==e[e.length-1]&&(e+="/"),this.baseUrl_=e}},{key:"emptyLanguageCache",value:function(e){var t=!1;return null==e&&a.LANGUAGE_CACHE.size>0?(a.LANGUAGE_CACHE=new Map,t=!0):"string"==typeof e&&this.consentLanguages.has(e.toUpperCase())&&(a.LANGUAGE_CACHE.delete(e.toUpperCase()),t=!0),t}},{key:"emptyCache",value:function(e){var t=!1;return Number.isInteger(e)&&e>=0?(a.CACHE.delete(e),t=!0):void 0===e&&(a.CACHE=new Map,t=!0),t}},{key:"clonePurpose",value:function(e){return Eo(Eo({id:e.id,name:e.name,description:e.description},e.descriptionLegal?{descriptionLegal:e.descriptionLegal}:{}),e.illustrations?{illustrations:Array.from(e.illustrations)}:{})}},{key:"cloneFeature",value:function(e){return Eo(Eo({id:e.id,name:e.name,description:e.description},e.descriptionLegal?{descriptionLegal:e.descriptionLegal}:{}),e.illustrations?{illustrations:Array.from(e.illustrations)}:{})}},{key:"cloneDataCategory",value:function(e){return{id:e.id,name:e.name,description:e.description}}},{key:"cloneStack",value:function(e){return{id:e.id,name:e.name,description:e.description,purposes:Array.from(e.purposes),specialFeatures:Array.from(e.specialFeatures)}}},{key:"cloneDataRetention",value:function(e){return Eo(Eo({},"number"==typeof e.stdRetention?{stdRetention:e.stdRetention}:{}),{},{purposes:Eo({},e.purposes),specialPurposes:Eo({},e.specialPurposes)})}},{key:"cloneVendorUrls",value:function(e){return e.map((function(e){return Eo({langId:e.langId,privacy:e.privacy},e.legIntClaim?{legIntClaim:e.legIntClaim}:{})}))}},{key:"cloneVendor",value:function(e){return Eo(Eo(Eo(Eo(Eo(Eo(Eo(Eo(Eo(Eo(Eo({id:e.id,name:e.name,purposes:Array.from(e.purposes),legIntPurposes:Array.from(e.legIntPurposes),flexiblePurposes:Array.from(e.flexiblePurposes),specialPurposes:Array.from(e.specialPurposes),features:Array.from(e.features),specialFeatures:Array.from(e.specialFeatures)},e.overflow?{overflow:{httpGetLimit:e.overflow.httpGetLimit}}:{}),"number"==typeof e.cookieMaxAgeSeconds||null===e.cookieMaxAgeSeconds?{cookieMaxAgeSeconds:e.cookieMaxAgeSeconds}:{}),void 0!==e.usesCookies?{usesCookies:e.usesCookies}:{}),e.policyUrl?{policyUrl:e.policyUrl}:{}),void 0!==e.cookieRefresh?{cookieRefresh:e.cookieRefresh}:{}),void 0!==e.usesNonCookieAccess?{usesNonCookieAccess:e.usesNonCookieAccess}:{}),e.dataRetention?{dataRetention:this.cloneDataRetention(e.dataRetention)}:{}),e.urls?{urls:this.cloneVendorUrls(e.urls)}:{}),e.dataDeclaration?{dataDeclaration:Array.from(e.dataDeclaration)}:{}),e.deviceStorageDisclosureUrl?{deviceStorageDisclosureUrl:e.deviceStorageDisclosureUrl}:{}),e.deletedDate?{deletedDate:e.deletedDate}:{})}},{key:"isInstanceOf",value:function(e){return"object"===jo(e)&&"function"==typeof e.narrowVendorsTo}}],r&&To(t.prototype,r),n&&To(t,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(or);function Uo(e){return(Uo="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})(e)}function Mo(e,t){for(var r=0;r1))throw new At("cmpId",e);this.cmpId_=e}},{key:"cmpVersion",get:function(){return this.cmpVersion_},set:function(e){if(e=Number(e),!(Number.isInteger(e)&&e>-1))throw new At("cmpVersion",e);this.cmpVersion_=e}},{key:"consentScreen",get:function(){return this.consentScreen_},set:function(e){if(e=Number(e),!(Number.isInteger(e)&&e>-1))throw new At("consentScreen",e);this.consentScreen_=e}},{key:"consentLanguage",get:function(){return this.consentLanguage_},set:function(e){this.consentLanguage_=e}},{key:"publisherCountryCode",get:function(){return this.publisherCountryCode_},set:function(e){if(!/^([A-z]){2}$/.test(e))throw new At("publisherCountryCode",e);this.publisherCountryCode_=e.toUpperCase()}},{key:"vendorListVersion",get:function(){return this.gvl?this.gvl.vendorListVersion:this.vendorListVersion_},set:function(e){if((e=Number(e)>>0)<0)throw new At("vendorListVersion",e);this.vendorListVersion_=e}},{key:"policyVersion",get:function(){return this.gvl?this.gvl.tcfPolicyVersion:this.policyVersion_},set:function(e){if(this.policyVersion_=parseInt(e,10),this.policyVersion_<0)throw new At("policyVersion",e)}},{key:"version",get:function(){return this.version_},set:function(e){this.version_=parseInt(e,10)}},{key:"isServiceSpecific",get:function(){return this.isServiceSpecific_},set:function(e){this.isServiceSpecific_=e}},{key:"useNonStandardTexts",get:function(){return this.useNonStandardTexts_},set:function(e){this.useNonStandardTexts_=e}},{key:"supportOOB",get:function(){return this.supportOOB_},set:function(e){this.supportOOB_=e}},{key:"purposeOneTreatment",get:function(){return this.purposeOneTreatment_},set:function(e){this.purposeOneTreatment_=e}},{key:"setAllVendorConsents",value:function(){this.vendorConsents.set(this.gvl.vendors)}},{key:"unsetAllVendorConsents",value:function(){this.vendorConsents.empty()}},{key:"setAllVendorsDisclosed",value:function(){this.vendorsDisclosed.set(this.gvl.vendors)}},{key:"unsetAllVendorsDisclosed",value:function(){this.vendorsDisclosed.empty()}},{key:"setAllVendorsAllowed",value:function(){this.vendorsAllowed.set(this.gvl.vendors)}},{key:"unsetAllVendorsAllowed",value:function(){this.vendorsAllowed.empty()}},{key:"setAllVendorLegitimateInterests",value:function(){this.vendorLegitimateInterests.set(this.gvl.vendors)}},{key:"unsetAllVendorLegitimateInterests",value:function(){this.vendorLegitimateInterests.empty()}},{key:"setAllPurposeConsents",value:function(){this.purposeConsents.set(this.gvl.purposes)}},{key:"unsetAllPurposeConsents",value:function(){this.purposeConsents.empty()}},{key:"setAllPurposeLegitimateInterests",value:function(){this.purposeLegitimateInterests.set(this.gvl.purposes)}},{key:"unsetAllPurposeLegitimateInterests",value:function(){this.purposeLegitimateInterests.empty()}},{key:"setAllSpecialFeatureOptins",value:function(){this.specialFeatureOptins.set(this.gvl.specialFeatures)}},{key:"unsetAllSpecialFeatureOptins",value:function(){this.specialFeatureOptins.empty()}},{key:"setAll",value:function(){this.setAllVendorConsents(),this.setAllPurposeLegitimateInterests(),this.setAllSpecialFeatureOptins(),this.setAllPurposeConsents(),this.setAllVendorLegitimateInterests()}},{key:"unsetAll",value:function(){this.unsetAllVendorConsents(),this.unsetAllPurposeLegitimateInterests(),this.unsetAllSpecialFeatureOptins(),this.unsetAllPurposeConsents(),this.unsetAllVendorLegitimateInterests()}},{key:"numCustomPurposes",get:function(){var e=this.numCustomPurposes_;if("object"===Uo(this.customPurposes)){var t=Object.keys(this.customPurposes).sort((function(e,t){return Number(e)-Number(t)}));e=parseInt(t.pop(),10)}return e},set:function(e){if(this.numCustomPurposes_=parseInt(e,10),this.numCustomPurposes_<0)throw new At("numCustomPurposes",e)}},{key:"updated",value:function(){var e=new Date,t=new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()));this.created=t,this.lastUpdated=t}}])&&Mo(t.prototype,r),n&&Mo(t,n),Object.defineProperty(t,"prototype",{writable:!1}),i}(or);function zo(e){return(zo="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})(e)}function Ko(e,t){for(var r=0;re.length)&&(t=e.length);for(var r=0,n=new Array(t);r3?o-3:0),u=3;u2&&void 0!==arguments[2])||arguments[2],o=arguments.length>3?arguments[3]:void 0;$i(this,e),Xi(this,"callResponder",void 0),Xi(this,"isServiceSpecific",void 0),Xi(this,"numUpdates",0),this.throwIfInvalidInt(t,"cmpId",2),this.throwIfInvalidInt(r,"cmpVersion",0),A.cmpId=t,A.cmpVersion=r,A.tcfPolicyVersion=5,this.isServiceSpecific=!!n,this.callResponder=new Ki(o)}var t,r,n;return t=e,(r=[{key:"throwIfInvalidInt",value:function(e,t,r){if(!("number"==typeof e&&Number.isInteger(e)&&e>=r))throw new Error("Invalid ".concat(t,": ").concat(e))}},{key:"update",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(A.disabled)throw new Error("CmpApi Disabled");A.cmpStatus=i.LOADED,t?(A.displayStatus=u.VISIBLE,A.eventStatus=a.CMP_UI_SHOWN):void 0===A.tcModel?(A.displayStatus=u.DISABLED,A.eventStatus=a.TC_LOADED):(A.displayStatus=u.HIDDEN,A.eventStatus=a.USER_ACTION_COMPLETE),A.gdprApplies=null!==e,A.gdprApplies?(""===e?(A.tcModel=new Yo,A.tcModel.cmpId=A.cmpId,A.tcModel.cmpVersion=A.cmpVersion):A.tcModel=$o.decode(e),A.tcModel.isServiceSpecific=this.isServiceSpecific,A.tcfPolicyVersion=Number(A.tcModel.policyVersion),A.tcString=e):A.tcModel=null,0===this.numUpdates?this.callResponder.purgeQueuedCalls():A.eventQueue.exec(),this.numUpdates++}},{key:"disable",value:function(){A.disabled=!0,A.cmpStatus=i.ERROR}}])&&Zi(t.prototype,r),n&&Zi(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}(),ru=r(0),nu=r(205),ou=r(203),iu=r(18);function uu(e){return(uu="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})(e)}function au(e,t){for(var r=0;r0&&0!==r.messageId}},{key:"hasInlineMessage",value:function(){var e=this.campaignResponse.message;return!!this.hasMessage()&&e&&e.message_json&&e.message_json.settings&&e.message_json.settings.type&&"inline"===e.message_json.settings.type}},{key:"getPvData",value:function(){return{}}},{key:"sendPvData",value:function(){var e=this.config,t=e.accountId,r=e.env,o=e.wrapperAPIOrigin,i=e.mmsDomain,c=e.pubData,s=this.getPvData();!function(e,t,r,o,i,c,s,l){if(!Object(n.sampleUser)(s))return Promise.resolve();var f=a({},s,u(u({},l),{},{accountId:t,siteId:r,propertyId:r,pubData:c,withSiteActions:"true",sampleRate:Object(n.sampleRate)(s)}));Object(n.fetch)("".concat(o,"/v2/pv-data"),{method:"POST",body:JSON.stringify(f),headers:{"Content-Type":"application/json"},params:{env:e}}).then(JSON.parse).then((function(e){return Promise.all(Object.keys(e).map((function(t){return Object(n.handleConsentData)(e[t],t,i)})))})).catch((function(e){return Promise.resolve()}))}(r,t,this.propertyId,o,i,c,this.category,s)}}])&&s(t.prototype,r),o&&s(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}()},198:function(e,t,r){r(63)("asyncIterator")},199:function(e,t,r){"use strict";var n=r(1),o=r(62),i=[].reverse,u=[1,2];n({target:"Array",proto:!0,forced:String(u)===String(u.reverse())},{reverse:function(){return o(this)&&(this.length=this.length),i.call(this)}})},201:function(e,t,r){r(1)({target:"Number",stat:!0},{isInteger:r(208)})},203:function(e,t,r){"use strict";r.d(t,"b",(function(){return a})),r.d(t,"c",(function(){return c})),r.d(t,"d",(function(){return s})),r.d(t,"e",(function(){return l})),r.d(t,"f",(function(){return f})),r.d(t,"a",(function(){return p}));r(58),r(23),r(77),r(78),r(137),r(57),r(19),r(56),r(24),r(25),r(75),r(52),r(53),r(26),r(27),r(36),r(54),r(73),r(30),r(76),r(28);var n=r(0);function o(e){return(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})(e)}function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function u(e,t,r){var n;return n=function(e,t){if("object"!=o(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==o(n)?n:n+"")in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var a=function(e){var t=Object(n.getUserConsentData)("gdpr","euconsentWithDisclosedVendors");try{e(t,!0)}catch(e){Object(n.handleError)(new n.CmpCallbackError(e),"gdpr")}},c=function(e,t){var r=function(e){for(var t=1;t0&&(r.consentedVendors=r.consentedVendors.filter((function(t){return e.includes(t._id.toString())})));try{t(r,!0)}catch(e){Object(n.handleError)(new n.CmpCallbackError(e),"gdpr")}},s=function(e,t,r){var o="".concat(e,"/vendor-list/vendor-purpose-mapping?siteId=").concat(t);Object(n.fetch)(o,{method:"GET"}).then((function(e){return JSON.parse(e)})).then((function(e){try{r(e,!0)}catch(e){Object(n.handleError)(new n.CmpCallbackError(e),"gdpr")}})).catch((function(e){try{r(null,!1)}catch(e){Object(n.handleError)(new n.CmpCallbackError(e),"gdpr")}Object(n.handleError)(e,"gdpr")}))},l=function(e,t,r,o,i,u,a){var c=Object(n.getUserConsentData)("gdpr","uuid"),s="".concat(e,"/consent/v3/custom/").concat(u);Object(n.fetch)(s,{method:"POST",params:{consentUUID:c},body:JSON.stringify({vendors:t,categories:r,legIntCategories:o}),headers:{"Content-Type":"application/json"}}).then((function(e){return JSON.parse(e)})).then((function(e){return Object(n.handleConsentData)(e,"gdpr",a).then((function(t){return e}))})).then((function(e){try{i(e,!0)}catch(e){Object(n.handleError)(new n.CmpCallbackError(e),"gdpr")}})).catch((function(e){try{i(null,!1)}catch(e){Object(n.handleError)(new n.CmpCallbackError(e),"gdpr")}Object(n.handleError)(e,"gdpr")}))},f=function(e,t,r,o,i){var u=Object(n.getUserConsentData)("gdpr","authId"),a=Object(n.getUserConsentData)("gdpr","uuid"),c=window._sp_&&window._sp_.config.accountId,s=Object(n.sampleRate)(),l=Object(n.sampleUser)();Object(n.fetch)("".concat(e,"/consent/v3/").concat(r,"/reject-all"),{headers:{"Content-Type":"application/json"},method:"POST",params:{accountId:c,authId:u,consentUUID:a,includeCustomVendorsRes:1,sampleRate:s,sendPVData:l,withSiteActions:!0}}).then((function(e){return JSON.parse(e)})).then((function(e){return Object(n.handleConsentData)(e,"gdpr",o).then((function(t){return e}))})).then((function(e){return i(),e})).then((function(e){try{t(null,!0)}catch(e){Object(n.handleError)(new n.CmpCallbackError(e))}})).catch((function(e){try{t(null,!1)}catch(e){Object(n.handleError)(new n.CmpCallbackError(e))}Object(n.handleError)(e)}))},p=function(e){return Object(n.fetch)("".concat(e,"/consent/v2/delete-consent-cookies"),{method:"GET"}).then(JSON.parse).then((function(e){var t=e.actions,r=e.cookies;return Promise.all(t.map(n.executeAction)).then((function(e){return Object(n.setCookiesAction)(r,"","gdpr")}))}))}},205:function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var n=r(203);function o(e,t,r,o){return{getCustomVendorConsents:function(e,t){Object(n.c)(t,e)},postCustomConsent:function(o,i,u,a){Object(n.e)(e,i,u,a,o,r,t)},postRejectAll:function(i){Object(n.f)(e,i,r,t,o)},getVendorPurposeMapping:function(t){Object(n.d)(e,r,t)}}}},207:function(e,t,r){r(1)({target:"String",proto:!0},{repeat:r(209)})},208:function(e,t,r){var n=r(6),o=Math.floor;e.exports=function(e){return!n(e)&&isFinite(e)&&o(e)===e}},209:function(e,t,r){"use strict";var n=r(41),o=r(16);e.exports=function(e){var t=String(o(this)),r="",i=n(e);if(i<0||i==1/0)throw RangeError("Wrong number of repetitions");for(;i>0;(i>>>=1)&&(t+=t))1&i&&(r+=t);return r}}}]);