window.__tcfapi = function (command, version, callback, parameter) { if (command === 'getTCData' || command === 'addEventListener' || command === 'removeEventListener') { const tcData = { gdprApplies: false, tcString: '', eventStatus: 'tcloaded', cmpId: 299, cmpVersion: 10, cmpStatus: 'disabled', isServiceSpecific: true, useNonStandardStacks: false, purposeOneTreatment: false, purpose: { consents: {}, legitimateInterests: {} }, vendor: { consents: {}, legitimateInterests: {} } }; callback(tcData, true); } else if (command === 'ping') { callback({ gdprApplies: false, cmpId: 299, cmpVersion: 10, cmpStatus: 'disabled' }, true); } else { callback(null, false); } }; window.dispatchEvent(new Event('tcfapiready'));const userState = "VA";var consentOptions = JSON.parse('{"DEFAULT":{"SharingNotice":1,"SaleOptOutNotice":1,"TargetedAdvertisingOptOutNotice":1,"SaleOptOut":2,"TargetedAdvertisingOptOut":2,"SensitiveDataProcessing":[0,0,0,0,0,0,0,0],"KnownChildSensitiveDataConsents":0,"MspaCoveredTransaction":2,"MspaOptOutOptionMode":0,"MspaServiceProviderMode":0},"CONSENT":{"SharingNotice":1,"SaleOptOutNotice":1,"TargetedAdvertisingOptOutNotice":1,"SaleOptOut":2,"TargetedAdvertisingOptOut":2,"SensitiveDataProcessing":[0,0,0,0,0,0,0,0],"KnownChildSensitiveDataConsents":0,"MspaCoveredTransaction":2,"MspaOptOutOptionMode":0,"MspaServiceProviderMode":0},"REJECT":{"SharingNotice":1,"SaleOptOutNotice":1,"TargetedAdvertisingOptOutNotice":1,"SaleOptOut":1,"TargetedAdvertisingOptOut":1,"SensitiveDataProcessing":[0,0,0,0,0,0,0,0],"KnownChildSensitiveDataConsents":0,"MspaCoveredTransaction":2,"MspaOptOutOptionMode":0,"MspaServiceProviderMode":0}}');(()=>{var hi=Object.defineProperty;var Ei=(i,o,e)=>o in i?hi(i,o,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[o]=e;var ki=(i,o)=>()=>(o||i((o={exports:{}}).exports,o),o.exports);var n=(i,o,e)=>Ei(i,typeof o!="symbol"?o+"":o,e);var yo=(i,o,e)=>new Promise((t,a)=>{var s=p=>{try{m(e.next(p))}catch(q){a(q)}},r=p=>{try{m(e.throw(p))}catch(q){a(q)}},m=p=>p.done?t(p.value):Promise.resolve(p.value).then(s,r);m((e=e.apply(i,o)).next())});var si=ki(wo=>{"use strict";Object.defineProperties(wo,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});function vi(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var Yt,oi;function zi(){if(oi)return Yt;oi=1;let i=2147483647,o=36,e=1,t=26,a=38,s=700,r=72,m=128,p="-",q=/^xn--/,Y=/[^\0-\x7F]/,_e=/[\x2E\u3002\uFF0E\uFF61]/g,Pe={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Ee=o-e,Ve=Math.floor,qt=String.fromCharCode;function Fe(f){throw new RangeError(Pe[f])}function ui(f,x){let $=[],G=f.length;for(;G--;)$[G]=x(f[G]);return $}function Qt(f,x){let $=f.split("@"),G="";$.length>1&&(G=$[0]+"@",f=$[1]),f=f.replace(_e,".");let Q=f.split("."),we=ui(Q,x).join(".");return G+we}function Xt(f){let x=[],$=0,G=f.length;for(;$=55296&&Q<=56319&&$String.fromCodePoint(...f),gi=function(f){return f>=48&&f<58?26+(f-48):f>=65&&f<91?f-65:f>=97&&f<123?f-97:o},Jt=function(f,x){return f+22+75*(f<26)-((x!=0)<<5)},Zt=function(f,x,$){let G=0;for(f=$?Ve(f/s):f>>1,f+=Ve(f/x);f>Ee*t>>1;G+=o)f=Ve(f/Ee);return Ve(G+(Ee+1)*f/(f+a))},ea=function(f){let x=[],$=f.length,G=0,Q=m,we=r,Ge=f.lastIndexOf(p);Ge<0&&(Ge=0);for(let Te=0;Te=128&&Fe("not-basic"),x.push(f.charCodeAt(Te));for(let Te=Ge>0?Ge+1:0;Te<$;){let Ae=G;for(let ve=1,Le=o;;Le+=o){Te>=$&&Fe("invalid-input");let Ue=gi(f.charCodeAt(Te++));Ue>=o&&Fe("invalid-input"),Ue>Ve((i-G)/ve)&&Fe("overflow"),G+=Ue*ve;let go=Le<=we?e:Le>=we+t?t:Le-we;if(UeVe(i/Io)&&Fe("overflow"),ve*=Io}let Be=x.length+1;we=Zt(G-Ae,Be,Ae==0),Ve(G/Be)>i-Q&&Fe("overflow"),Q+=Ve(G/Be),G%=Be,x.splice(G++,0,Q)}return String.fromCodePoint(...x)},oa=function(f){let x=[];f=Xt(f);let $=f.length,G=m,Q=0,we=r;for(let Ae of f)Ae<128&&x.push(qt(Ae));let Ge=x.length,Te=Ge;for(Ge&&x.push(p);Te<$;){let Ae=i;for(let ve of f)ve>=G&&veVe((i-Q)/Be)&&Fe("overflow"),Q+=(Ae-G)*Be,G=Ae;for(let ve of f)if(vei&&Fe("overflow"),ve===G){let Le=Q;for(let Ue=o;;Ue+=o){let go=Ue<=we?e:Ue>=we+t?t:Ue-we;if(Le{let e=o.replace(/^(\*\.|\!)/,""),t=Go.toASCII(e),a=o.charAt(0);if(i.has(t))throw new Error(`Multiple rules found for ${o} (${t})`);return i.set(t,{rule:o,suffix:e,punySuffix:t,wildcard:a==="*",exception:a==="!"}),i},new Map),Vi=i=>{let o=Go.toASCII(i).split(".");for(let e=0;e{let o=Go.toASCII(i);if(o.length<1)return"DOMAIN_TOO_SHORT";if(o.length>255)return"DOMAIN_TOO_LONG";let e=o.split("."),t;for(let a=0;a63)return"LABEL_TOO_LONG";if(t.charAt(0)==="-")return"LABEL_STARTS_WITH_DASH";if(t.charAt(t.length-1)==="-")return"LABEL_ENDS_WITH_DASH";if(!/^[a-z0-9\-_]+$/.test(t))return"LABEL_INVALID_CHARS"}},Ft=i=>{if(typeof i!="string")throw new TypeError("Domain name must be a string.");let o=i.slice(0).toLowerCase();o.charAt(o.length-1)==="."&&(o=o.slice(0,o.length-1));let e=Ri(o);if(e)return{input:i,error:{message:ti[e],code:e}};let t={input:i,tld:null,sld:null,domain:null,subdomain:null,listed:!1},a=o.split(".");if(a[a.length-1]==="local")return t;let s=()=>(/xn--/.test(o)&&(t.domain&&(t.domain=Go.toASCII(t.domain)),t.subdomain&&(t.subdomain=Go.toASCII(t.subdomain))),t),r=Vi(o);if(!r)return a.length<2?t:(t.tld=a.pop(),t.sld=a.pop(),t.domain=[t.sld,t.tld].join("."),a.length&&(t.subdomain=a.pop()),s());t.listed=!0;let m=r.suffix.split("."),p=a.slice(0,a.length-m.length);return r.exception&&p.push(m.shift()),t.tld=m.join("."),!p.length||(r.wildcard&&(m.unshift(p.pop()),t.tld=m.join(".")),!p.length)||(t.sld=p.pop(),t.domain=[t.sld,t.tld].join("."),p.length&&(t.subdomain=p.join("."))),s()},ai=i=>i&&Ft(i).domain||null,ii=i=>{let o=Ft(i);return!!(o.domain&&o.listed)},Mi={parse:Ft,get:ai,isValid:ii};wo.default=Mi;wo.errorCodes=ti;wo.get=ai;wo.isValid=ii;wo.parse=Ft});var aa=299;var He=class{constructor(o,e,t,a){n(this,"eventName");n(this,"listenerId");n(this,"data");n(this,"pingData");this.eventName=o,this.listenerId=e,this.data=t,this.pingData=a}};var Re=class{constructor(o){n(this,"gppVersion");n(this,"cmpStatus");n(this,"cmpDisplayStatus");n(this,"signalStatus");n(this,"supportedAPIs");n(this,"cmpId");n(this,"sectionList");n(this,"applicableSections");n(this,"gppString");n(this,"parsedSections");this.gppVersion=o.gppVersion,this.cmpStatus=o.cmpStatus,this.cmpDisplayStatus=o.cmpDisplayStatus,this.signalStatus=o.signalStatus,this.supportedAPIs=o.supportedAPIs,this.cmpId=o.cmpId,this.sectionList=o.gppModel.getSectionIds(),this.applicableSections=o.applicableSections,this.gppString=o.gppModel.encode(),this.parsedSections=o.gppModel.toObject()}};var Se=class{constructor(o,e,t){n(this,"callback");n(this,"parameter");n(this,"success",!0);n(this,"cmpApiContext");this.cmpApiContext=o,Object.assign(this,{callback:e,parameter:t})}execute(){try{return this.respond()}catch(o){return this.invokeCallback(null),null}}invokeCallback(o){let e=o!==null;this.callback&&this.callback(o,e)}};var Lo=class extends Se{respond(){let o=this.cmpApiContext.eventQueue.add({callback:this.callback,parameter:this.parameter}),e=new He("listenerRegistered",o,!0,new Re(this.cmpApiContext));this.invokeCallback(e)}};var Uo=class extends Se{respond(){let o=new Re(this.cmpApiContext);this.invokeCallback(o)}};var Fo=class extends Se{respond(){if(!this.parameter||this.parameter.length===0)throw new Error("
. parameter required");let o=this.parameter.split(".");if(o.length!=2)throw new Error("Field name must be in the format
.");let e=o[0],t=o[1],a=this.cmpApiContext.gppModel.getFieldValue(e,t);this.invokeCallback(a)}};var Bo=class extends Se{respond(){if(!this.parameter||this.parameter.length===0)throw new Error("
parameter required");let o=null;this.cmpApiContext.gppModel.hasSection(this.parameter)&&(o=this.cmpApiContext.gppModel.getSection(this.parameter)),this.invokeCallback(o)}};var Ho=class extends Se{respond(){if(!this.parameter||this.parameter.length===0)throw new Error("
[.version] parameter required");let o=this.cmpApiContext.gppModel.hasSection(this.parameter);this.invokeCallback(o)}};var Ne;(function(i){i.ADD_EVENT_LISTENER="addEventListener",i.GET_FIELD="getField",i.GET_SECTION="getSection",i.HAS_SECTION="hasSection",i.PING="ping",i.REMOVE_EVENT_LISTENER="removeEventListener"})(Ne||(Ne={}));var qo=class extends Se{respond(){let o=this.parameter,e=this.cmpApiContext.eventQueue.remove(o),t=new He("listenerRemoved",o,e,new Re(this.cmpApiContext));this.invokeCallback(t)}};var ia,sa,na,ra,ca,ma;ma=Ne.ADD_EVENT_LISTENER,ca=Ne.GET_FIELD,ra=Ne.GET_SECTION,na=Ne.HAS_SECTION,sa=Ne.PING,ia=Ne.REMOVE_EVENT_LISTENER;var ze=class{};n(ze,ma,Lo),n(ze,ca,Fo),n(ze,ra,Bo),n(ze,na,Ho),n(ze,sa,Uo),n(ze,ia,qo);var Ao;(function(i){i.STUB="stub",i.LOADING="loading",i.LOADED="loaded",i.ERROR="error"})(Ao||(Ao={}));var vo;(function(i){i.VISIBLE="visible",i.HIDDEN="hidden",i.DISABLED="disabled"})(vo||(vo={}));var pa;(function(i){i.GPP_LOADED="gpploaded",i.CMP_UI_SHOWN="cmpuishown",i.USER_ACTION_COMPLETE="useractioncomplete"})(pa||(pa={}));var zo;(function(i){i.NOT_READY="not ready",i.READY="ready"})(zo||(zo={}));var Ko=class{constructor(o,e){n(this,"callQueue");n(this,"customCommands");n(this,"cmpApiContext");if(this.cmpApiContext=o,e){let t=Ne.ADD_EVENT_LISTENER;if(e!=null&&e[t])throw new Error(`Built-In Custom Commmand for ${t} not allowed`);if(t=Ne.REMOVE_EVENT_LISTENER,e!=null&&e[t])throw new Error(`Built-In Custom Commmand for ${t} not allowed`);this.customCommands=e}try{this.callQueue=window.__gpp()||[]}catch(t){this.callQueue=[]}finally{window.__gpp=this.apiCall.bind(this),this.purgeQueuedCalls()}}apiCall(o,e,t,a){if(typeof o!="string")e(null,!1);else{if(e&&typeof e!="function")throw new Error("invalid callback function");this.isCustomCommand(o)?this.customCommands[o](e,t):this.isBuiltInCommand(o)?new ze[o](this.cmpApiContext,e,t).execute():e&&e(null,!1)}}purgeQueuedCalls(){let o=this.callQueue;this.callQueue=[],o.forEach(e=>{window.__gpp(...e)})}isCustomCommand(o){return this.customCommands&&typeof this.customCommands[o]=="function"}isBuiltInCommand(o){return ze[o]!==void 0}};var Yo=class{constructor(o){n(this,"eventQueue",new Map);n(this,"queueNumber",1e3);n(this,"cmpApiContext");this.cmpApiContext=o;try{let t=window.__gpp("events")||[];for(var e=0;e{let s=new He(o,a,e,new Re(this.cmpApiContext));t.callback(s,!0)})}clear(){this.queueNumber=1e3,this.eventQueue.clear()}get size(){return this.eventQueue.size}};var Me=class extends Error{constructor(o){super(o),this.name="InvalidFieldError"}};var _=class{constructor(){n(this,"segments");n(this,"encodedString",null);n(this,"dirty",!1);n(this,"decoded",!0);this.segments=this.initializeSegments()}hasField(o){this.decoded||(this.segments=this.decodeSection(this.encodedString),this.dirty=!1,this.decoded=!0);for(let e=0;e=1)for(t.push(1);o>=t[0]*2;)t.unshift(t[0]*2);let a="";for(let s=0;s=r?(a+="1",o-=r):a+="0"}if(a.length>e)throw new T("Numeric value '"+o+"' is too large for a bit string length of '"+e+"'");for(;a.length0;)o+="0";for(;o.length%6>0;)o+="0";return o}};n(Wo,"instance",new Wo);var E=Wo;var $o=class $o{constructor(){}static getInstance(){return this.instance}encode(o,e){let t="";for(let a=0;a=1&&(e.push(1),o>=2)){e.push(2);let a=2;for(;o>=e[a-1]+e[a-2];)e.push(e[a-1]+e[a-2]),a++}let t="1";for(let a=e.length-1;a>=0;a--){let s=e[a];o>=s?(t="1"+t,o-=s):t="0"+t}return t}static decode(o){if(!/^[0-1]*$/.test(o)||o.length<2||o.indexOf("11")!==o.length-2)throw new l("Undecodable FibonacciInteger '"+o+"'");let e=0,t=[];for(let a=0;ar-m);let e=[],t=0,a=0;for(;ao.length||e<0||e>t)throw new L("Invalid substring indexes "+e+":"+t+" for string of length "+o.length);return o.substring(e,t)}};var Do=class extends B{constructor(o,e=!0){super(e),this.setValue(o)}encode(){try{return ho.encode(this.value)}catch(o){throw new T(o)}}decode(o){try{this.value=ho.decode(o)}catch(e){throw new l(e)}}substring(o,e){try{let t=w.decode(V.substring(o,e,e+12)),a=e+12;for(let s=0;se-t))}};var c=class extends B{constructor(e,t,a=!0){super(a);n(this,"bitStringLength");this.bitStringLength=e,this.setValue(t)}encode(){try{return w.encode(this.value,this.bitStringLength)}catch(e){throw new T(e)}}decode(e){try{this.value=w.decode(e)}catch(t){throw new l(t)}}substring(e,t){try{return V.substring(e,t,t+this.bitStringLength)}catch(a){throw new L(a)}}};var g=class{constructor(){n(this,"fields",new Map)}containsKey(o){return this.fields.has(o)}put(o,e){this.fields.set(o,e)}get(o){return this.fields.get(o)}getAll(){return new Map(this.fields)}reset(o){this.fields.clear(),o.getAll().forEach((e,t)=>{this.fields.set(t,e)})}};var De;(function(i){i.ID="Id",i.VERSION="Version",i.SECTION_IDS="SectionIds"})(De||(De={}));var la=[De.ID,De.VERSION,De.SECTION_IDS];var u=class{constructor(){n(this,"fields");n(this,"encodedString",null);n(this,"dirty",!1);n(this,"decoded",!0);this.fields=this.initializeFields()}validate(){}hasField(o){return this.fields.containsKey(o)}getFieldValue(o){if(this.decoded||(this.decodeSegment(this.encodedString,this.fields),this.dirty=!1,this.decoded=!0),this.fields.containsKey(o))return this.fields.get(o).getValue();throw new Me("Invalid field: '"+o+"'")}setFieldValue(o,e){if(this.decoded||(this.decodeSegment(this.encodedString,this.fields),this.dirty=!1,this.decoded=!0),this.fields.containsKey(o))this.fields.get(o).setValue(e),this.dirty=!0;else throw new Me(o+" not found")}toObj(){let o={},e=this.getFieldNames();for(let t=0;t0&&this.decode(o)}getId(){return qe.ID}getName(){return qe.NAME}getVersion(){return qe.VERSION}initializeSegments(){let o=[];return o.push(new Xo),o}decodeSection(o){let e=this.initializeSegments();if(o!=null&&o.length!==0){let t=o.split(".");for(let a=0;aa&&e[a].decode(t[a])}return e}encodeSection(o){let e=[];for(let t=0;t0;)o+="0";return o}};n(Jo,"instance",new Jo);var Ie=Jo;var ye=class{static encode(o){o.sort((s,r)=>s-r);let e=[],t=0;for(;te-t))}};var Zo=class{constructor(o,e,t){n(this,"key");n(this,"type");n(this,"ids");this.key=o,this.type=e,this.ids=t}getKey(){return this.key}setKey(o){this.key=o}getType(){return this.type}setType(o){this.type=o}getIds(){return this.ids}setIds(o){this.ids=o}};var jo=class extends B{constructor(e,t,a,s=!0){super(s);n(this,"keyBitStringLength");n(this,"typeBitStringLength");this.keyBitStringLength=e,this.typeBitStringLength=t,this.setValue(a)}encode(){try{let e=this.value,t="";t+=w.encode(e.length,12);for(let a=0;ae)throw new T("Too many values '"+o.length+"'");let t="";for(let a=0;athis.numElements&&(t=t.slice(0,this.numElements)),super.setValue(t)}};var Po=class{static encode(o,e){for(;o.length=65)t+=w.encode(o.charCodeAt(a)-65,6);else throw new T("Unencodable FixedString '"+o+"'")}return t}static decode(o){if(!/^[0-1]*$/.test(o)||o.length%6!==0)throw new l("Undecodable FixedString '"+o+"'");let e="";for(let t=0;t0?this.value[this.value.length-1]:0,e=ye.encode(this.value),t=e.length,a=o;if(t<=a)return w.encode(o,16)+"1"+e;{let s=[],r=0;for(let m=0;me-t))}};var et=class extends u{constructor(e){super();n(this,"base64UrlEncoder",Ie.getInstance());n(this,"bitStringEncoder",d.getInstance());e&&this.decode(e)}getFieldNames(){return ua}initializeFields(){let e=new Date,t=new g;return t.put(h.VERSION.toString(),new c(6,W.VERSION)),t.put(h.CREATED.toString(),new Ke(e)),t.put(h.LAST_UPDATED.toString(),new Ke(e)),t.put(h.CMP_ID.toString(),new c(12,0)),t.put(h.CMP_VERSION.toString(),new c(12,0)),t.put(h.CONSENT_SCREEN.toString(),new c(6,0)),t.put(h.CONSENT_LANGUAGE.toString(),new ko(2,"EN")),t.put(h.VENDOR_LIST_VERSION.toString(),new c(12,0)),t.put(h.POLICY_VERSION.toString(),new c(6,2)),t.put(h.IS_SERVICE_SPECIFIC.toString(),new S(!1)),t.put(h.USE_NON_STANDARD_STACKS.toString(),new S(!1)),t.put(h.SPECIAL_FEATURE_OPTINS.toString(),new ke([!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1])),t.put(h.PURPOSE_CONSENTS.toString(),new ke([!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1])),t.put(h.PURPOSE_LEGITIMATE_INTERESTS.toString(),new ke([!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1])),t.put(h.PURPOSE_ONE_TREATMENT.toString(),new S(!1)),t.put(h.PUBLISHER_COUNTRY_CODE.toString(),new ko(2,"AA")),t.put(h.VENDOR_CONSENTS.toString(),new je([])),t.put(h.VENDOR_LEGITIMATE_INTERESTS.toString(),new je([])),t.put(h.PUBLISHER_RESTRICTIONS.toString(),new jo(6,2,[],!1)),t}encodeSegment(e){let t=this.bitStringEncoder.encode(e,this.getFieldNames());return this.base64UrlEncoder.encode(t)}decodeSegment(e,t){(e==null||e.length===0)&&this.fields.reset(t);try{let a=this.base64UrlEncoder.decode(e);this.bitStringEncoder.decode(a,this.getFieldNames(),t)}catch(a){throw new l("Unable to decode TcfEuV2CoreSegment '"+e+"'")}}};var Ye=class extends B{constructor(e,t,a=!0){super(a);n(this,"getLength");this.getLength=e,this.setValue(t)}encode(){try{return be.encode(this.value,this.getLength())}catch(e){throw new T(e)}}decode(e){try{this.value=be.decode(e)}catch(t){throw new l(t)}}substring(e,t){try{return V.substring(e,t,t+this.getLength())}catch(a){throw new L(a)}}getValue(){return[...super.getValue()]}setValue(e){let t=this.getLength(),a=[...e];for(let s=a.length;st&&(a=a.slice(0,t)),super.setValue([...a])}};var ot=class extends u{constructor(e){super();n(this,"base64UrlEncoder",Ie.getInstance());n(this,"bitStringEncoder",d.getInstance());e&&this.decode(e)}getFieldNames(){return da}initializeFields(){let e=new g;e.put(h.PUBLISHER_PURPOSES_SEGMENT_TYPE.toString(),new c(3,3)),e.put(h.PUBLISHER_CONSENTS.toString(),new ke([!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1])),e.put(h.PUBLISHER_LEGITIMATE_INTERESTS.toString(),new ke([!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1]));let t=new c(6,0);return e.put(h.NUM_CUSTOM_PURPOSES.toString(),t),e.put(h.PUBLISHER_CUSTOM_CONSENTS.toString(),new Ye(()=>t.getValue(),[])),e.put(h.PUBLISHER_CUSTOM_LEGITIMATE_INTERESTS.toString(),new Ye(()=>t.getValue(),[])),e}encodeSegment(e){let t=this.bitStringEncoder.encode(e,this.getFieldNames());return this.base64UrlEncoder.encode(t)}decodeSegment(e,t){(e==null||e.length===0)&&this.fields.reset(t);try{let a=this.base64UrlEncoder.decode(e);this.bitStringEncoder.decode(a,this.getFieldNames(),t)}catch(a){throw new l("Unable to decode TcfEuV2PublisherPurposesSegment '"+e+"'")}}};var tt=class extends u{constructor(e){super();n(this,"base64UrlEncoder",Ie.getInstance());n(this,"bitStringEncoder",d.getInstance());e&&this.decode(e)}getFieldNames(){return ga}initializeFields(){let e=new g;return e.put(h.VENDORS_ALLOWED_SEGMENT_TYPE.toString(),new c(3,2)),e.put(h.VENDORS_ALLOWED.toString(),new je([])),e}encodeSegment(e){let t=this.bitStringEncoder.encode(e,this.getFieldNames());return this.base64UrlEncoder.encode(t)}decodeSegment(e,t){(e==null||e.length===0)&&this.fields.reset(t);try{let a=this.base64UrlEncoder.decode(e);this.bitStringEncoder.decode(a,this.getFieldNames(),t)}catch(a){throw new l("Unable to decode TcfEuV2VendorsAllowedSegment '"+e+"'")}}};var at=class extends u{constructor(e){super();n(this,"base64UrlEncoder",Ie.getInstance());n(this,"bitStringEncoder",d.getInstance());e&&this.decode(e)}getFieldNames(){return ha}initializeFields(){let e=new g;return e.put(h.VENDORS_DISCLOSED_SEGMENT_TYPE.toString(),new c(3,1)),e.put(h.VENDORS_DISCLOSED.toString(),new je([])),e}encodeSegment(e){let t=this.bitStringEncoder.encode(e,this.getFieldNames());return this.base64UrlEncoder.encode(t)}decodeSegment(e,t){(e==null||e.length===0)&&this.fields.reset(t);try{let a=this.base64UrlEncoder.decode(e);this.bitStringEncoder.decode(a,this.getFieldNames(),t)}catch(a){throw new l("Unable to decode TcfEuV2VendorsDisclosedSegment '"+e+"'")}}};var We=class We extends _{constructor(o){super(),o&&o.length>0&&this.decode(o)}getId(){return We.ID}getName(){return We.NAME}getVersion(){return We.VERSION}initializeSegments(){let o=[];return o.push(new et),o.push(new ot),o.push(new tt),o.push(new at),o}decodeSection(o){let e=this.initializeSegments();if(o!=null&&o.length!==0){let t=o.split(".");for(let a=0;a="A"&&r<="H")e[0].decode(t[a]);else if(r>="I"&&r<="P")e[3].decode(t[a]);else if(r>="Q"&&r<="X")e[2].decode(t[a]);else if(r>="Y"&&r<="Z"||r>="a"&&r<="f")e[1].decode(t[a]);else throw new l("Unable to decode TcfEuV2 segment '"+s+"'")}}}return e}encodeSection(o){let e=[];return o.length>=1&&(e.push(o[0].encode()),this.getFieldValue(h.IS_SERVICE_SPECIFIC)?o.length>=2&&e.push(o[1].encode()):o.length>=2&&(e.push(o[2].encode()),o.length>=3&&e.push(o[3].encode()))),e.join(".")}setFieldValue(o,e){if(super.setFieldValue(o,e),o!==h.CREATED&&o!==h.LAST_UPDATED){let t=new Date;super.setFieldValue(h.CREATED,t),super.setFieldValue(h.LAST_UPDATED,t)}}};n(We,"ID",2),n(We,"VERSION",2),n(We,"NAME","tcfeuv2");var W=We;var k;(function(i){i.VERSION="Version",i.CREATED="Created",i.LAST_UPDATED="LastUpdated",i.CMP_ID="CmpId",i.CMP_VERSION="CmpVersion",i.CONSENT_SCREEN="ConsentScreen",i.CONSENT_LANGUAGE="ConsentLanguage",i.VENDOR_LIST_VERSION="VendorListVersion",i.TCF_POLICY_VERSION="TcfPolicyVersion",i.USE_NON_STANDARD_STACKS="UseNonStandardStacks",i.SPECIAL_FEATURE_EXPRESS_CONSENT="SpecialFeatureExpressConsent",i.PUB_PURPOSES_SEGMENT_TYPE="PubPurposesSegmentType",i.PURPOSES_EXPRESS_CONSENT="PurposesExpressConsent",i.PURPOSES_IMPLIED_CONSENT="PurposesImpliedConsent",i.VENDOR_EXPRESS_CONSENT="VendorExpressConsent",i.VENDOR_IMPLIED_CONSENT="VendorImpliedConsent",i.PUB_RESTRICTIONS="PubRestrictions",i.PUB_PURPOSES_EXPRESS_CONSENT="PubPurposesExpressConsent",i.PUB_PURPOSES_IMPLIED_CONSENT="PubPurposesImpliedConsent",i.NUM_CUSTOM_PURPOSES="NumCustomPurposes",i.CUSTOM_PURPOSES_EXPRESS_CONSENT="CustomPurposesExpressConsent",i.CUSTOM_PURPOSES_IMPLIED_CONSENT="CustomPurposesImpliedConsent",i.DISCLOSED_VENDORS_SEGMENT_TYPE="DisclosedVendorsSegmentType",i.DISCLOSED_VENDORS="DisclosedVendors"})(k||(k={}));var Ea=[k.VERSION,k.CREATED,k.LAST_UPDATED,k.CMP_ID,k.CMP_VERSION,k.CONSENT_SCREEN,k.CONSENT_LANGUAGE,k.VENDOR_LIST_VERSION,k.TCF_POLICY_VERSION,k.USE_NON_STANDARD_STACKS,k.SPECIAL_FEATURE_EXPRESS_CONSENT,k.PURPOSES_EXPRESS_CONSENT,k.PURPOSES_IMPLIED_CONSENT,k.VENDOR_EXPRESS_CONSENT,k.VENDOR_IMPLIED_CONSENT,k.PUB_RESTRICTIONS],ka=[k.PUB_PURPOSES_SEGMENT_TYPE,k.PUB_PURPOSES_EXPRESS_CONSENT,k.PUB_PURPOSES_IMPLIED_CONSENT,k.NUM_CUSTOM_PURPOSES,k.CUSTOM_PURPOSES_EXPRESS_CONSENT,k.CUSTOM_PURPOSES_IMPLIED_CONSENT],fa=[k.DISCLOSED_VENDORS_SEGMENT_TYPE,k.DISCLOSED_VENDORS];var it=class extends u{constructor(e){super();n(this,"base64UrlEncoder",E.getInstance());n(this,"bitStringEncoder",d.getInstance());e&&this.decode(e)}getFieldNames(){return Ea}initializeFields(){let e=new Date,t=new g;return t.put(k.VERSION.toString(),new c(6,J.VERSION)),t.put(k.CREATED.toString(),new Ke(e)),t.put(k.LAST_UPDATED.toString(),new Ke(e)),t.put(k.CMP_ID.toString(),new c(12,0)),t.put(k.CMP_VERSION.toString(),new c(12,0)),t.put(k.CONSENT_SCREEN.toString(),new c(6,0)),t.put(k.CONSENT_LANGUAGE.toString(),new ko(2,"EN")),t.put(k.VENDOR_LIST_VERSION.toString(),new c(12,0)),t.put(k.TCF_POLICY_VERSION.toString(),new c(6,2)),t.put(k.USE_NON_STANDARD_STACKS.toString(),new S(!1)),t.put(k.SPECIAL_FEATURE_EXPRESS_CONSENT.toString(),new ke([!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1])),t.put(k.PURPOSES_EXPRESS_CONSENT.toString(),new ke([!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1])),t.put(k.PURPOSES_IMPLIED_CONSENT.toString(),new ke([!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1])),t.put(k.VENDOR_EXPRESS_CONSENT.toString(),new je([])),t.put(k.VENDOR_IMPLIED_CONSENT.toString(),new je([])),t.put(k.PUB_RESTRICTIONS.toString(),new jo(6,2,[],!1)),t}encodeSegment(e){let t=this.bitStringEncoder.encode(e,this.getFieldNames());return this.base64UrlEncoder.encode(t)}decodeSegment(e,t){(e==null||e.length===0)&&this.fields.reset(t);try{let a=this.base64UrlEncoder.decode(e);this.bitStringEncoder.decode(a,this.getFieldNames(),t)}catch(a){throw new l("Unable to decode TcfCaV1CoreSegment '"+e+"'")}}};var st=class extends u{constructor(e){super();n(this,"base64UrlEncoder",E.getInstance());n(this,"bitStringEncoder",d.getInstance());e&&this.decode(e)}getFieldNames(){return ka}initializeFields(){let e=new g;e.put(k.PUB_PURPOSES_SEGMENT_TYPE.toString(),new c(3,3)),e.put(k.PUB_PURPOSES_EXPRESS_CONSENT.toString(),new ke([!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1])),e.put(k.PUB_PURPOSES_IMPLIED_CONSENT.toString(),new ke([!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1]));let t=new c(6,0);return e.put(k.NUM_CUSTOM_PURPOSES.toString(),t),e.put(k.CUSTOM_PURPOSES_EXPRESS_CONSENT.toString(),new Ye(()=>t.getValue(),[])),e.put(k.CUSTOM_PURPOSES_IMPLIED_CONSENT.toString(),new Ye(()=>t.getValue(),[])),e}encodeSegment(e){let t=this.bitStringEncoder.encode(e,this.getFieldNames());return this.base64UrlEncoder.encode(t)}decodeSegment(e,t){(e==null||e.length===0)&&this.fields.reset(t);try{let a=this.base64UrlEncoder.decode(e);this.bitStringEncoder.decode(a,this.getFieldNames(),t)}catch(a){throw new l("Unable to decode TcfCaV1PublisherPurposesSegment '"+e+"'")}}};var nt=class extends u{constructor(e){super();n(this,"base64UrlEncoder",Ie.getInstance());n(this,"bitStringEncoder",d.getInstance());e&&this.decode(e)}getFieldNames(){return fa}initializeFields(){let e=new g;return e.put(k.DISCLOSED_VENDORS_SEGMENT_TYPE.toString(),new c(3,1)),e.put(k.DISCLOSED_VENDORS.toString(),new je([])),e}encodeSegment(e){let t=this.bitStringEncoder.encode(e,this.getFieldNames());return this.base64UrlEncoder.encode(t)}decodeSegment(e,t){(e==null||e.length===0)&&this.fields.reset(t);try{let a=this.base64UrlEncoder.decode(e);this.bitStringEncoder.decode(a,this.getFieldNames(),t)}catch(a){throw new l("Unable to decode HeaderV1CoreSegment '"+e+"'")}}};var $e=class $e extends _{constructor(o){super(),o&&o.length>0&&this.decode(o)}getId(){return $e.ID}getName(){return $e.NAME}getVersion(){return $e.VERSION}initializeSegments(){let o=[];return o.push(new it),o.push(new st),o.push(new nt),o}decodeSection(o){let e=this.initializeSegments();if(o!=null&&o.length!==0){let t=o.split(".");for(let a=0;a="A"&&r<="H")e[0].decode(t[a]);else if(r>="I"&&r<="P")e[2].decode(t[a]);else if(r>="Y"&&r<="Z"||r>="a"&&r<="f")e[1].decode(t[a]);else throw new l("Unable to decode TcfCaV1 segment '"+s+"'")}}}return e}encodeSection(o){let e=[];return e.push(o[0].encode()),e.push(o[1].encode()),this.getFieldValue(k.DISCLOSED_VENDORS).length>0&&e.push(o[2].encode()),e.join(".")}setFieldValue(o,e){if(super.setFieldValue(o,e),o!==k.CREATED&&o!==k.LAST_UPDATED){let t=new Date;super.setFieldValue(k.CREATED,t),super.setFieldValue(k.LAST_UPDATED,t)}}};n($e,"ID",5),n($e,"VERSION",1),n($e,"NAME","tcfcav1");var J=$e;var _o=class{constructor(o,e){n(this,"validator");n(this,"value",null);e?this.validator=e:this.validator=new class{test(t){return!0}},this.setValue(o)}hasValue(){return this.value!=null}getValue(){return this.value}setValue(o){o?this.value=o.charAt(0):o=null}};var rt=class{constructor(o,e){n(this,"validator");n(this,"value",null);e?this.validator=e:this.validator=new class{test(t){return!0}},this.setValue(o)}hasValue(){return this.value!=null}getValue(){return this.value}setValue(o){this.value=o}};var ct=class{constructor(){n(this,"fields",new Map)}containsKey(o){return this.fields.has(o)}put(o,e){this.fields.set(o,e)}get(o){return this.fields.get(o)}getAll(){return new Map(this.fields)}reset(o){this.fields.clear(),o.getAll().forEach((e,t)=>{this.fields.set(t,e)})}};var X;(function(i){i.VERSION="Version",i.NOTICE="Notice",i.OPT_OUT_SALE="OptOutSale",i.LSPA_COVERED="LspaCovered"})(X||(X={}));var wa=[X.VERSION,X.NOTICE,X.OPT_OUT_SALE,X.LSPA_COVERED];var mt=class extends u{constructor(o){super(),o&&this.decode(o)}getFieldNames(){return wa}initializeFields(){let o=new class{test(t){return t==="-"||t==="Y"||t==="N"}},e=new ct;return e.put(X.VERSION,new rt(Z.VERSION)),e.put(X.NOTICE,new _o("-",o)),e.put(X.OPT_OUT_SALE,new _o("-",o)),e.put(X.LSPA_COVERED,new _o("-",o)),e}encodeSegment(o){let e="";return e+=o.get(X.VERSION).getValue(),e+=o.get(X.NOTICE).getValue(),e+=o.get(X.OPT_OUT_SALE).getValue(),e+=o.get(X.LSPA_COVERED).getValue(),e}decodeSegment(o,e){if(o==null||o.length!=4)throw new l("Unable to decode UspV1CoreSegment '"+o+"'");try{e.get(X.VERSION).setValue(parseInt(o.substring(0,1))),e.get(X.NOTICE).setValue(o.charAt(1)),e.get(X.OPT_OUT_SALE).setValue(o.charAt(2)),e.get(X.LSPA_COVERED).setValue(o.charAt(3))}catch(t){throw new l("Unable to decode UspV1CoreSegment '"+o+"'")}}};var Qe=class Qe extends _{constructor(o){super(),o&&o.length>0&&this.decode(o)}getId(){return Qe.ID}getName(){return Qe.NAME}getVersion(){return Qe.VERSION}initializeSegments(){let o=[];return o.push(new mt),o}decodeSection(o){let e=this.initializeSegments();if(o!=null&&o.length!==0){let t=o.split(".");for(let a=0;aa&&e[a].decode(t[a])}return e}encodeSection(o){let e=[];for(let t=0;tt)throw new T("Too many values '"+o.length+"'");let a="";for(let s=0;se*t)throw new l("Undecodable FixedIntegerList '"+o+"'");if(o.length%e!=0)throw new l("Undecodable FixedIntegerList '"+o+"'");for(;o.lengthe*t&&(o=o.substring(0,e*t));let a=[];for(let s=0;sthis.numElements&&(t=t.slice(0,this.numElements)),super.setValue(t)}};var pt=class extends u{constructor(e){super();n(this,"base64UrlEncoder",E.getInstance());n(this,"bitStringEncoder",d.getInstance());e&&this.decode(e)}getFieldNames(){return Sa}initializeFields(){let e=new class{test(r){return r>=0&&r<=2}},t=new class{test(r){return r>=1&&r<=2}},a=new class{test(r){for(let m=0;m2)return!1}return!0}},s=new g;return s.put(b.VERSION.toString(),new c(6,ee.VERSION)),s.put(b.SHARING_NOTICE.toString(),new c(2,0).withValidator(e)),s.put(b.SALE_OPT_OUT_NOTICE.toString(),new c(2,0).withValidator(e)),s.put(b.SHARING_OPT_OUT_NOTICE.toString(),new c(2,0).withValidator(e)),s.put(b.TARGETED_ADVERTISING_OPT_OUT_NOTICE.toString(),new c(2,0).withValidator(e)),s.put(b.SENSITIVE_DATA_PROCESSING_OPT_OUT_NOTICE.toString(),new c(2,0).withValidator(e)),s.put(b.SENSITIVE_DATA_LIMIT_USE_NOTICE.toString(),new c(2,0).withValidator(e)),s.put(b.SALE_OPT_OUT.toString(),new c(2,0).withValidator(e)),s.put(b.SHARING_OPT_OUT.toString(),new c(2,0).withValidator(e)),s.put(b.TARGETED_ADVERTISING_OPT_OUT.toString(),new c(2,0).withValidator(e)),s.put(b.SENSITIVE_DATA_PROCESSING.toString(),new j(2,[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]).withValidator(a)),s.put(b.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS.toString(),new j(2,[0,0,0]).withValidator(a)),s.put(b.PERSONAL_DATA_CONSENTS.toString(),new c(2,0).withValidator(e)),s.put(b.MSPA_COVERED_TRANSACTION.toString(),new c(2,1).withValidator(t)),s.put(b.MSPA_OPT_OUT_OPTION_MODE.toString(),new c(2,0).withValidator(e)),s.put(b.MSPA_SERVICE_PROVIDER_MODE.toString(),new c(2,0).withValidator(e)),s}encodeSegment(e){let t=this.bitStringEncoder.encode(e,this.getFieldNames());return this.base64UrlEncoder.encode(t)}decodeSegment(e,t){(e==null||e.length===0)&&this.fields.reset(t);try{let a=this.base64UrlEncoder.decode(e);a.length==66&&(a=a.substring(0,48)+"00000000"+a.substring(48,52)+"00"+a.substring(52,62)),this.bitStringEncoder.decode(a,this.getFieldNames(),t)}catch(a){throw new l("Unable to decode UsNatCoreSegment '"+e+"'")}}};var lt=class extends u{constructor(e){super();n(this,"base64UrlEncoder",E.getInstance());n(this,"bitStringEncoder",d.getInstance());e&&this.decode(e)}getFieldNames(){return ba}initializeFields(){let e=new g;return e.put(b.GPC_SEGMENT_TYPE.toString(),new c(2,1)),e.put(b.GPC_SEGMENT_INCLUDED.toString(),new S(!0)),e.put(b.GPC.toString(),new S(!1)),e}encodeSegment(e){let t=this.bitStringEncoder.encode(e,this.getFieldNames());return this.base64UrlEncoder.encode(t)}decodeSegment(e,t){(e==null||e.length===0)&&this.fields.reset(t);try{let a=this.base64UrlEncoder.decode(e);this.bitStringEncoder.decode(a,this.getFieldNames(),t)}catch(a){throw new l("Unable to decode UsNatGpcSegment '"+e+"'")}}};var Xe=class Xe extends _{constructor(o){super(),o&&o.length>0&&this.decode(o)}getId(){return Xe.ID}getName(){return Xe.NAME}getVersion(){return Xe.VERSION}initializeSegments(){let o=[];return o.push(new pt),o.push(new lt),o}decodeSection(o){let e=this.initializeSegments();if(o!=null&&o.length!==0){let t=o.split(".");t.length>0&&e[0].decode(t[0]),t.length>1?(e[1].setFieldValue(b.GPC_SEGMENT_INCLUDED,!0),e[1].decode(t[1])):e[1].setFieldValue(b.GPC_SEGMENT_INCLUDED,!1)}return e}encodeSection(o){let e=[];return o.length>=1&&(e.push(o[0].encode()),o.length>=2&&o[1].getFieldValue(b.GPC_SEGMENT_INCLUDED)===!0&&e.push(o[1].encode())),e.join(".")}};n(Xe,"ID",7),n(Xe,"VERSION",1),n(Xe,"NAME","usnat");var ee=Xe;var N;(function(i){i.VERSION="Version",i.SALE_OPT_OUT_NOTICE="SaleOptOutNotice",i.SHARING_OPT_OUT_NOTICE="SharingOptOutNotice",i.SENSITIVE_DATA_LIMIT_USE_NOTICE="SensitiveDataLimitUseNotice",i.SALE_OPT_OUT="SaleOptOut",i.SHARING_OPT_OUT="SharingOptOut",i.SENSITIVE_DATA_PROCESSING="SensitiveDataProcessing",i.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS="KnownChildSensitiveDataConsents",i.PERSONAL_DATA_CONSENTS="PersonalDataConsents",i.MSPA_COVERED_TRANSACTION="MspaCoveredTransaction",i.MSPA_OPT_OUT_OPTION_MODE="MspaOptOutOptionMode",i.MSPA_SERVICE_PROVIDER_MODE="MspaServiceProviderMode",i.GPC_SEGMENT_TYPE="GpcSegmentType",i.GPC_SEGMENT_INCLUDED="GpcSegmentIncluded",i.GPC="Gpc"})(N||(N={}));var ja=[N.VERSION,N.SALE_OPT_OUT_NOTICE,N.SHARING_OPT_OUT_NOTICE,N.SENSITIVE_DATA_LIMIT_USE_NOTICE,N.SALE_OPT_OUT,N.SHARING_OPT_OUT,N.SENSITIVE_DATA_PROCESSING,N.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS,N.PERSONAL_DATA_CONSENTS,N.MSPA_COVERED_TRANSACTION,N.MSPA_OPT_OUT_OPTION_MODE,N.MSPA_SERVICE_PROVIDER_MODE],_a=[N.GPC_SEGMENT_TYPE,N.GPC];var ut=class extends u{constructor(e){super();n(this,"base64UrlEncoder",E.getInstance());n(this,"bitStringEncoder",d.getInstance());e&&this.decode(e)}getFieldNames(){return ja}initializeFields(){let e=new class{test(r){return r>=0&&r<=2}},t=new class{test(r){return r>=1&&r<=2}},a=new class{test(r){for(let m=0;m2)return!1}return!0}},s=new g;return s.put(N.VERSION.toString(),new c(6,oe.VERSION)),s.put(N.SALE_OPT_OUT_NOTICE.toString(),new c(2,0).withValidator(e)),s.put(N.SHARING_OPT_OUT_NOTICE.toString(),new c(2,0).withValidator(e)),s.put(N.SENSITIVE_DATA_LIMIT_USE_NOTICE.toString(),new c(2,0).withValidator(e)),s.put(N.SALE_OPT_OUT.toString(),new c(2,0).withValidator(e)),s.put(N.SHARING_OPT_OUT.toString(),new c(2,0).withValidator(e)),s.put(N.SENSITIVE_DATA_PROCESSING.toString(),new j(2,[0,0,0,0,0,0,0,0,0]).withValidator(a)),s.put(N.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS.toString(),new j(2,[0,0]).withValidator(a)),s.put(N.PERSONAL_DATA_CONSENTS.toString(),new c(2,0).withValidator(e)),s.put(N.MSPA_COVERED_TRANSACTION.toString(),new c(2,1).withValidator(t)),s.put(N.MSPA_OPT_OUT_OPTION_MODE.toString(),new c(2,0).withValidator(e)),s.put(N.MSPA_SERVICE_PROVIDER_MODE.toString(),new c(2,0).withValidator(e)),s}encodeSegment(e){let t=this.bitStringEncoder.encode(e,this.getFieldNames());return this.base64UrlEncoder.encode(t)}decodeSegment(e,t){(e==null||e.length===0)&&this.fields.reset(t);try{let a=this.base64UrlEncoder.decode(e);this.bitStringEncoder.decode(a,this.getFieldNames(),t)}catch(a){throw new l("Unable to decode UsCaCoreSegment '"+e+"'")}}};var dt=class extends u{constructor(e){super();n(this,"base64UrlEncoder",E.getInstance());n(this,"bitStringEncoder",d.getInstance());e&&this.decode(e)}getFieldNames(){return _a}initializeFields(){let e=new g;return e.put(N.GPC_SEGMENT_TYPE.toString(),new c(2,1)),e.put(N.GPC_SEGMENT_INCLUDED.toString(),new S(!0)),e.put(N.GPC.toString(),new S(!1)),e}encodeSegment(e){let t=this.bitStringEncoder.encode(e,this.getFieldNames());return this.base64UrlEncoder.encode(t)}decodeSegment(e,t){(e==null||e.length===0)&&this.fields.reset(t);try{let a=this.base64UrlEncoder.decode(e);this.bitStringEncoder.decode(a,this.getFieldNames(),t)}catch(a){throw new l("Unable to decode UsCaGpcSegment '"+e+"'")}}};var Je=class Je extends _{constructor(o){super(),o&&o.length>0&&this.decode(o)}getId(){return Je.ID}getName(){return Je.NAME}getVersion(){return Je.VERSION}initializeSegments(){let o=[];return o.push(new ut),o.push(new dt),o}decodeSection(o){let e=this.initializeSegments();if(o!=null&&o.length!==0){let t=o.split(".");t.length>0&&e[0].decode(t[0]),t.length>1?(e[1].setFieldValue(N.GPC_SEGMENT_INCLUDED,!0),e[1].decode(t[1])):e[1].setFieldValue(N.GPC_SEGMENT_INCLUDED,!1)}return e}encodeSection(o){let e=[];return o.length>=1&&(e.push(o[0].encode()),o.length>=2&&o[1].getFieldValue(N.GPC_SEGMENT_INCLUDED)===!0&&e.push(o[1].encode())),e.join(".")}};n(Je,"ID",8),n(Je,"VERSION",1),n(Je,"NAME","usca");var oe=Je;var K;(function(i){i.VERSION="Version",i.SHARING_NOTICE="SharingNotice",i.SALE_OPT_OUT_NOTICE="SaleOptOutNotice",i.TARGETED_ADVERTISING_OPT_OUT_NOTICE="TargetedAdvertisingOptOutNotice",i.SALE_OPT_OUT="SaleOptOut",i.TARGETED_ADVERTISING_OPT_OUT="TargetedAdvertisingOptOut",i.SENSITIVE_DATA_PROCESSING="SensitiveDataProcessing",i.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS="KnownChildSensitiveDataConsents",i.MSPA_COVERED_TRANSACTION="MspaCoveredTransaction",i.MSPA_OPT_OUT_OPTION_MODE="MspaOptOutOptionMode",i.MSPA_SERVICE_PROVIDER_MODE="MspaServiceProviderMode"})(K||(K={}));var Ta=[K.VERSION,K.SHARING_NOTICE,K.SALE_OPT_OUT_NOTICE,K.TARGETED_ADVERTISING_OPT_OUT_NOTICE,K.SALE_OPT_OUT,K.TARGETED_ADVERTISING_OPT_OUT,K.SENSITIVE_DATA_PROCESSING,K.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS,K.MSPA_COVERED_TRANSACTION,K.MSPA_OPT_OUT_OPTION_MODE,K.MSPA_SERVICE_PROVIDER_MODE];var gt=class extends u{constructor(e){super();n(this,"base64UrlEncoder",E.getInstance());n(this,"bitStringEncoder",d.getInstance());e&&this.decode(e)}getFieldNames(){return Ta}initializeFields(){let e=new class{test(r){return r>=0&&r<=2}},t=new class{test(r){return r>=1&&r<=2}},a=new class{test(r){for(let m=0;m2)return!1}return!0}},s=new g;return s.put(K.VERSION.toString(),new c(6,te.VERSION)),s.put(K.SHARING_NOTICE.toString(),new c(2,0).withValidator(e)),s.put(K.SALE_OPT_OUT_NOTICE.toString(),new c(2,0).withValidator(e)),s.put(K.TARGETED_ADVERTISING_OPT_OUT_NOTICE.toString(),new c(2,0).withValidator(e)),s.put(K.SALE_OPT_OUT.toString(),new c(2,0).withValidator(e)),s.put(K.TARGETED_ADVERTISING_OPT_OUT.toString(),new c(2,0).withValidator(e)),s.put(K.SENSITIVE_DATA_PROCESSING.toString(),new j(2,[0,0,0,0,0,0,0,0]).withValidator(a)),s.put(K.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS.toString(),new c(2,0).withValidator(e)),s.put(K.MSPA_COVERED_TRANSACTION.toString(),new c(2,1).withValidator(t)),s.put(K.MSPA_OPT_OUT_OPTION_MODE.toString(),new c(2,0).withValidator(e)),s.put(K.MSPA_SERVICE_PROVIDER_MODE.toString(),new c(2,0).withValidator(e)),s}encodeSegment(e){let t=this.bitStringEncoder.encode(e,this.getFieldNames());return this.base64UrlEncoder.encode(t)}decodeSegment(e,t){(e==null||e.length===0)&&this.fields.reset(t);try{let a=this.base64UrlEncoder.decode(e);this.bitStringEncoder.decode(a,this.getFieldNames(),t)}catch(a){throw new l("Unable to decode UsVaCoreSegment '"+e+"'")}}};var Ze=class Ze extends _{constructor(o){super(),o&&o.length>0&&this.decode(o)}getId(){return Ze.ID}getName(){return Ze.NAME}getVersion(){return Ze.VERSION}initializeSegments(){let o=[];return o.push(new gt),o}decodeSection(o){let e=this.initializeSegments();if(o!=null&&o.length!==0){let t=o.split(".");for(let a=0;aa&&e[a].decode(t[a])}return e}encodeSection(o){let e=[];for(let t=0;t=0&&r<=2}},t=new class{test(r){return r>=1&&r<=2}},a=new class{test(r){for(let m=0;m2)return!1}return!0}},s=new g;return s.put(R.VERSION.toString(),new c(6,ae.VERSION)),s.put(R.SHARING_NOTICE.toString(),new c(2,0).withValidator(e)),s.put(R.SALE_OPT_OUT_NOTICE.toString(),new c(2,0).withValidator(e)),s.put(R.TARGETED_ADVERTISING_OPT_OUT_NOTICE.toString(),new c(2,0).withValidator(e)),s.put(R.SALE_OPT_OUT.toString(),new c(2,0).withValidator(e)),s.put(R.TARGETED_ADVERTISING_OPT_OUT.toString(),new c(2,0).withValidator(e)),s.put(R.SENSITIVE_DATA_PROCESSING.toString(),new j(2,[0,0,0,0,0,0,0]).withValidator(a)),s.put(R.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS.toString(),new c(2,0).withValidator(e)),s.put(R.MSPA_COVERED_TRANSACTION.toString(),new c(2,1).withValidator(t)),s.put(R.MSPA_OPT_OUT_OPTION_MODE.toString(),new c(2,0).withValidator(e)),s.put(R.MSPA_SERVICE_PROVIDER_MODE.toString(),new c(2,0).withValidator(e)),s}encodeSegment(e){let t=this.bitStringEncoder.encode(e,this.getFieldNames());return this.base64UrlEncoder.encode(t)}decodeSegment(e,t){(e==null||e.length===0)&&this.fields.reset(t);try{let a=this.base64UrlEncoder.decode(e);this.bitStringEncoder.decode(a,this.getFieldNames(),t)}catch(a){throw new l("Unable to decode UsCoCoreSegment '"+e+"'")}}};var Et=class extends u{constructor(e){super();n(this,"base64UrlEncoder",E.getInstance());n(this,"bitStringEncoder",d.getInstance());e&&this.decode(e)}getFieldNames(){return Oa}initializeFields(){let e=new g;return e.put(R.GPC_SEGMENT_TYPE.toString(),new c(2,1)),e.put(R.GPC_SEGMENT_INCLUDED.toString(),new S(!0)),e.put(R.GPC.toString(),new S(!1)),e}encodeSegment(e){let t=this.bitStringEncoder.encode(e,this.getFieldNames());return this.base64UrlEncoder.encode(t)}decodeSegment(e,t){(e==null||e.length===0)&&this.fields.reset(t);try{let a=this.base64UrlEncoder.decode(e);this.bitStringEncoder.decode(a,this.getFieldNames(),t)}catch(a){throw new l("Unable to decode UsCoGpcSegment '"+e+"'")}}};var eo=class eo extends _{constructor(o){super(),o&&o.length>0&&this.decode(o)}getId(){return eo.ID}getName(){return eo.NAME}getVersion(){return eo.VERSION}initializeSegments(){let o=[];return o.push(new ht),o.push(new Et),o}decodeSection(o){let e=this.initializeSegments();if(o!=null&&o.length!==0){let t=o.split(".");t.length>0&&e[0].decode(t[0]),t.length>1?(e[1].setFieldValue(R.GPC_SEGMENT_INCLUDED,!0),e[1].decode(t[1])):e[1].setFieldValue(R.GPC_SEGMENT_INCLUDED,!1)}return e}encodeSection(o){let e=[];return o.length>=1&&(e.push(o[0].encode()),o.length>=2&&o[1].getFieldValue(R.GPC_SEGMENT_INCLUDED)===!0&&e.push(o[1].encode())),e.join(".")}};n(eo,"ID",10),n(eo,"VERSION",1),n(eo,"NAME","usco");var ae=eo;var U;(function(i){i.VERSION="Version",i.SHARING_NOTICE="SharingNotice",i.SALE_OPT_OUT_NOTICE="SaleOptOutNotice",i.TARGETED_ADVERTISING_OPT_OUT_NOTICE="TargetedAdvertisingOptOutNotice",i.SENSITIVE_DATA_PROCESSING_OPT_OUT_NOTICE="SensitiveDataProcessingOptOutNotice",i.SALE_OPT_OUT="SaleOptOut",i.TARGETED_ADVERTISING_OPT_OUT="TargetedAdvertisingOptOut",i.SENSITIVE_DATA_PROCESSING="SensitiveDataProcessing",i.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS="KnownChildSensitiveDataConsents",i.MSPA_COVERED_TRANSACTION="MspaCoveredTransaction",i.MSPA_OPT_OUT_OPTION_MODE="MspaOptOutOptionMode",i.MSPA_SERVICE_PROVIDER_MODE="MspaServiceProviderMode"})(U||(U={}));var Ia=[U.VERSION,U.SHARING_NOTICE,U.SALE_OPT_OUT_NOTICE,U.TARGETED_ADVERTISING_OPT_OUT_NOTICE,U.SENSITIVE_DATA_PROCESSING_OPT_OUT_NOTICE,U.SALE_OPT_OUT,U.TARGETED_ADVERTISING_OPT_OUT,U.SENSITIVE_DATA_PROCESSING,U.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS,U.MSPA_COVERED_TRANSACTION,U.MSPA_OPT_OUT_OPTION_MODE,U.MSPA_SERVICE_PROVIDER_MODE];var kt=class extends u{constructor(e){super();n(this,"base64UrlEncoder",E.getInstance());n(this,"bitStringEncoder",d.getInstance());e&&this.decode(e)}getFieldNames(){return Ia}initializeFields(){let e=new class{test(r){return r>=0&&r<=2}},t=new class{test(r){return r>=1&&r<=2}},a=new class{test(r){for(let m=0;m2)return!1}return!0}},s=new g;return s.put(U.VERSION.toString(),new c(6,ie.VERSION)),s.put(U.SHARING_NOTICE.toString(),new c(2,0).withValidator(e)),s.put(U.SALE_OPT_OUT_NOTICE.toString(),new c(2,0).withValidator(e)),s.put(U.TARGETED_ADVERTISING_OPT_OUT_NOTICE.toString(),new c(2,0).withValidator(e)),s.put(U.SENSITIVE_DATA_PROCESSING_OPT_OUT_NOTICE.toString(),new c(2,0).withValidator(e)),s.put(U.SALE_OPT_OUT.toString(),new c(2,0).withValidator(e)),s.put(U.TARGETED_ADVERTISING_OPT_OUT.toString(),new c(2,0).withValidator(e)),s.put(U.SENSITIVE_DATA_PROCESSING.toString(),new j(2,[0,0,0,0,0,0,0,0]).withValidator(a)),s.put(U.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS.toString(),new c(2,0).withValidator(e)),s.put(U.MSPA_COVERED_TRANSACTION.toString(),new c(2,1).withValidator(t)),s.put(U.MSPA_OPT_OUT_OPTION_MODE.toString(),new c(2,0).withValidator(e)),s.put(U.MSPA_SERVICE_PROVIDER_MODE.toString(),new c(2,0).withValidator(e)),s}encodeSegment(e){let t=this.bitStringEncoder.encode(e,this.getFieldNames());return this.base64UrlEncoder.encode(t)}decodeSegment(e,t){(e==null||e.length===0)&&this.fields.reset(t);try{let a=this.base64UrlEncoder.decode(e);this.bitStringEncoder.decode(a,this.getFieldNames(),t)}catch(a){throw new l("Unable to decode UsUtCoreSegment '"+e+"'")}}};var oo=class oo extends _{constructor(o){super(),o&&o.length>0&&this.decode(o)}getId(){return oo.ID}getName(){return oo.NAME}getVersion(){return oo.VERSION}initializeSegments(){let o=[];return o.push(new kt),o}decodeSection(o){let e=this.initializeSegments();if(o!=null&&o.length!==0){let t=o.split(".");for(let a=0;aa&&e[a].decode(t[a])}return e}encodeSection(o){let e=[];for(let t=0;t=0&&r<=2}},t=new class{test(r){return r>=1&&r<=2}},a=new class{test(r){for(let m=0;m2)return!1}return!0}},s=new g;return s.put(M.VERSION.toString(),new c(6,se.VERSION)),s.put(M.SHARING_NOTICE.toString(),new c(2,0).withValidator(e)),s.put(M.SALE_OPT_OUT_NOTICE.toString(),new c(2,0).withValidator(e)),s.put(M.TARGETED_ADVERTISING_OPT_OUT_NOTICE.toString(),new c(2,0).withValidator(e)),s.put(M.SALE_OPT_OUT.toString(),new c(2,0).withValidator(e)),s.put(M.TARGETED_ADVERTISING_OPT_OUT.toString(),new c(2,0).withValidator(e)),s.put(M.SENSITIVE_DATA_PROCESSING.toString(),new j(2,[0,0,0,0,0,0,0,0]).withValidator(a)),s.put(M.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS.toString(),new j(2,[0,0,0]).withValidator(a)),s.put(M.MSPA_COVERED_TRANSACTION.toString(),new c(2,1).withValidator(t)),s.put(M.MSPA_OPT_OUT_OPTION_MODE.toString(),new c(2,0).withValidator(e)),s.put(M.MSPA_SERVICE_PROVIDER_MODE.toString(),new c(2,0).withValidator(e)),s}encodeSegment(e){let t=this.bitStringEncoder.encode(e,this.getFieldNames());return this.base64UrlEncoder.encode(t)}decodeSegment(e,t){(e==null||e.length===0)&&this.fields.reset(t);try{let a=this.base64UrlEncoder.decode(e);this.bitStringEncoder.decode(a,this.getFieldNames(),t)}catch(a){throw new l("Unable to decode UsCtCoreSegment '"+e+"'")}}};var wt=class extends u{constructor(e){super();n(this,"base64UrlEncoder",E.getInstance());n(this,"bitStringEncoder",d.getInstance());e&&this.decode(e)}getFieldNames(){return Aa}initializeFields(){let e=new g;return e.put(M.GPC_SEGMENT_TYPE.toString(),new c(2,1)),e.put(M.GPC_SEGMENT_INCLUDED.toString(),new S(!0)),e.put(M.GPC.toString(),new S(!1)),e}encodeSegment(e){let t=this.bitStringEncoder.encode(e,this.getFieldNames());return this.base64UrlEncoder.encode(t)}decodeSegment(e,t){(e==null||e.length===0)&&this.fields.reset(t);try{let a=this.base64UrlEncoder.decode(e);this.bitStringEncoder.decode(a,this.getFieldNames(),t)}catch(a){throw new l("Unable to decode UsCtGpcSegment '"+e+"'")}}};var to=class to extends _{constructor(o){super(),o&&o.length>0&&this.decode(o)}getId(){return to.ID}getName(){return to.NAME}getVersion(){return to.VERSION}initializeSegments(){let o=[];return o.push(new ft),o.push(new wt),o}decodeSection(o){let e=this.initializeSegments();if(o!=null&&o.length!==0){let t=o.split(".");t.length>0&&e[0].decode(t[0]),t.length>1?(e[1].setFieldValue(M.GPC_SEGMENT_INCLUDED,!0),e[1].decode(t[1])):e[1].setFieldValue(M.GPC_SEGMENT_INCLUDED,!1)}return e}encodeSection(o){let e=[];return o.length>=1&&(e.push(o[0].encode()),o.length>=2&&o[1].getFieldValue(M.GPC_SEGMENT_INCLUDED)===!0&&e.push(o[1].encode())),e.join(".")}};n(to,"ID",12),n(to,"VERSION",1),n(to,"NAME","usct");var se=to;var F;(function(i){i.VERSION="Version",i.PROCESSING_NOTICE="ProcessingNotice",i.SALE_OPT_OUT_NOTICE="SaleOptOutNotice",i.TARGETED_ADVERTISING_OPT_OUT_NOTICE="TargetedAdvertisingOptOutNotice",i.SALE_OPT_OUT="SaleOptOut",i.TARGETED_ADVERTISING_OPT_OUT="TargetedAdvertisingOptOut",i.SENSITIVE_DATA_PROCESSING="SensitiveDataProcessing",i.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS="KnownChildSensitiveDataConsents",i.ADDITIONAL_DATA_PROCESSING_CONSENT="AdditionalDataProcessingConsent",i.MSPA_COVERED_TRANSACTION="MspaCoveredTransaction",i.MSPA_OPT_OUT_OPTION_MODE="MspaOptOutOptionMode",i.MSPA_SERVICE_PROVIDER_MODE="MspaServiceProviderMode"})(F||(F={}));var va=[F.VERSION,F.PROCESSING_NOTICE,F.SALE_OPT_OUT_NOTICE,F.TARGETED_ADVERTISING_OPT_OUT_NOTICE,F.SALE_OPT_OUT,F.TARGETED_ADVERTISING_OPT_OUT,F.SENSITIVE_DATA_PROCESSING,F.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS,F.ADDITIONAL_DATA_PROCESSING_CONSENT,F.MSPA_COVERED_TRANSACTION,F.MSPA_OPT_OUT_OPTION_MODE,F.MSPA_SERVICE_PROVIDER_MODE];var St=class extends u{constructor(e){super();n(this,"base64UrlEncoder",E.getInstance());n(this,"bitStringEncoder",d.getInstance());e&&this.decode(e)}getFieldNames(){return va}initializeFields(){let e=new class{test(r){return r>=0&&r<=2}},t=new class{test(r){return r>=1&&r<=2}},a=new class{test(r){for(let m=0;m2)return!1}return!0}},s=new g;return s.put(F.VERSION.toString(),new c(6,ne.VERSION)),s.put(F.PROCESSING_NOTICE.toString(),new c(2,0).withValidator(e)),s.put(F.SALE_OPT_OUT_NOTICE.toString(),new c(2,0).withValidator(e)),s.put(F.TARGETED_ADVERTISING_OPT_OUT_NOTICE.toString(),new c(2,0).withValidator(e)),s.put(F.SALE_OPT_OUT.toString(),new c(2,0).withValidator(e)),s.put(F.TARGETED_ADVERTISING_OPT_OUT.toString(),new c(2,0).withValidator(e)),s.put(F.SENSITIVE_DATA_PROCESSING.toString(),new j(2,[0,0,0,0,0,0,0,0]).withValidator(a)),s.put(F.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS.toString(),new j(2,[0,0,0]).withValidator(a)),s.put(F.ADDITIONAL_DATA_PROCESSING_CONSENT.toString(),new c(2,0).withValidator(e)),s.put(F.MSPA_COVERED_TRANSACTION.toString(),new c(2,1).withValidator(t)),s.put(F.MSPA_OPT_OUT_OPTION_MODE.toString(),new c(2,0).withValidator(e)),s.put(F.MSPA_SERVICE_PROVIDER_MODE.toString(),new c(2,0).withValidator(e)),s}encodeSegment(e){let t=this.bitStringEncoder.encode(e,this.getFieldNames());return this.base64UrlEncoder.encode(t)}decodeSegment(e,t){(e==null||e.length===0)&&this.fields.reset(t);try{let a=this.base64UrlEncoder.decode(e);this.bitStringEncoder.decode(a,this.getFieldNames(),t)}catch(a){throw new l("Unable to decode UsFlCoreSegment '"+e+"'")}}};var ao=class ao extends _{constructor(o){super(),o&&o.length>0&&this.decode(o)}getId(){return ao.ID}getName(){return ao.NAME}getVersion(){return ao.VERSION}initializeSegments(){let o=[];return o.push(new St),o}decodeSection(o){let e=this.initializeSegments();if(o!=null&&o.length!==0){let t=o.split(".");for(let a=0;aa&&e[a].decode(t[a])}return e}encodeSection(o){let e=[];for(let t=0;t=0&&r<=2}},t=new class{test(r){return r>=1&&r<=2}},a=new class{test(r){for(let m=0;m2)return!1}return!0}},s=new g;return s.put(O.VERSION.toString(),new c(6,re.VERSION)),s.put(O.SHARING_NOTICE.toString(),new c(2,0).withValidator(e)),s.put(O.SALE_OPT_OUT_NOTICE.toString(),new c(2,0).withValidator(e)),s.put(O.TARGETED_ADVERTISING_OPT_OUT_NOTICE.toString(),new c(2,0).withValidator(e)),s.put(O.SALE_OPT_OUT.toString(),new c(2,0).withValidator(e)),s.put(O.TARGETED_ADVERTISING_OPT_OUT.toString(),new c(2,0).withValidator(e)),s.put(O.SENSITIVE_DATA_PROCESSING.toString(),new j(2,[0,0,0,0,0,0,0,0]).withValidator(a)),s.put(O.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS.toString(),new j(2,[0,0,0]).withValidator(a)),s.put(O.ADDITIONAL_DATA_PROCESSING_CONSENT.toString(),new c(2,0).withValidator(e)),s.put(O.MSPA_COVERED_TRANSACTION.toString(),new c(2,1).withValidator(t)),s.put(O.MSPA_OPT_OUT_OPTION_MODE.toString(),new c(2,0).withValidator(e)),s.put(O.MSPA_SERVICE_PROVIDER_MODE.toString(),new c(2,0).withValidator(e)),s}encodeSegment(e){let t=this.bitStringEncoder.encode(e,this.getFieldNames());return this.base64UrlEncoder.encode(t)}decodeSegment(e,t){(e==null||e.length===0)&&this.fields.reset(t);try{let a=this.base64UrlEncoder.decode(e);this.bitStringEncoder.decode(a,this.getFieldNames(),t)}catch(a){throw new l("Unable to decode UsMtCoreSegment '"+e+"'")}}};var jt=class extends u{constructor(e){super();n(this,"base64UrlEncoder",E.getInstance());n(this,"bitStringEncoder",d.getInstance());e&&this.decode(e)}getFieldNames(){return Da}initializeFields(){let e=new g;return e.put(O.GPC_SEGMENT_TYPE.toString(),new c(2,1)),e.put(O.GPC_SEGMENT_INCLUDED.toString(),new S(!0)),e.put(O.GPC.toString(),new S(!1)),e}encodeSegment(e){let t=this.bitStringEncoder.encode(e,this.getFieldNames());return this.base64UrlEncoder.encode(t)}decodeSegment(e,t){(e==null||e.length===0)&&this.fields.reset(t);try{let a=this.base64UrlEncoder.decode(e);this.bitStringEncoder.decode(a,this.getFieldNames(),t)}catch(a){throw new l("Unable to decode UsMtGpcSegment '"+e+"'")}}};var io=class io extends _{constructor(o){super(),o&&o.length>0&&this.decode(o)}getId(){return io.ID}getName(){return io.NAME}getVersion(){return io.VERSION}initializeSegments(){let o=[];return o.push(new bt),o.push(new jt),o}decodeSection(o){let e=this.initializeSegments();if(o!=null&&o.length!==0){let t=o.split(".");t.length>0&&e[0].decode(t[0]),t.length>1?(e[1].setFieldValue(O.GPC_SEGMENT_INCLUDED,!0),e[1].decode(t[1])):e[1].setFieldValue(O.GPC_SEGMENT_INCLUDED,!1)}return e}encodeSection(o){let e=[];return o.length>=1&&(e.push(o[0].encode()),o.length>=2&&o[1].getFieldValue(O.GPC_SEGMENT_INCLUDED)===!0&&e.push(o[1].encode())),e.join(".")}};n(io,"ID",14),n(io,"VERSION",1),n(io,"NAME","usmt");var re=io;var I;(function(i){i.VERSION="Version",i.PROCESSING_NOTICE="ProcessingNotice",i.SALE_OPT_OUT_NOTICE="SaleOptOutNotice",i.TARGETED_ADVERTISING_OPT_OUT_NOTICE="TargetedAdvertisingOptOutNotice",i.SALE_OPT_OUT="SaleOptOut",i.TARGETED_ADVERTISING_OPT_OUT="TargetedAdvertisingOptOut",i.SENSITIVE_DATA_PROCESSING="SensitiveDataProcessing",i.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS="KnownChildSensitiveDataConsents",i.ADDITIONAL_DATA_PROCESSING_CONSENT="AdditionalDataProcessingConsent",i.MSPA_COVERED_TRANSACTION="MspaCoveredTransaction",i.MSPA_OPT_OUT_OPTION_MODE="MspaOptOutOptionMode",i.MSPA_SERVICE_PROVIDER_MODE="MspaServiceProviderMode",i.GPC_SEGMENT_TYPE="GpcSegmentType",i.GPC_SEGMENT_INCLUDED="GpcSegmentIncluded",i.GPC="Gpc"})(I||(I={}));var Ca=[I.VERSION,I.PROCESSING_NOTICE,I.SALE_OPT_OUT_NOTICE,I.TARGETED_ADVERTISING_OPT_OUT_NOTICE,I.SALE_OPT_OUT,I.TARGETED_ADVERTISING_OPT_OUT,I.SENSITIVE_DATA_PROCESSING,I.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS,I.ADDITIONAL_DATA_PROCESSING_CONSENT,I.MSPA_COVERED_TRANSACTION,I.MSPA_OPT_OUT_OPTION_MODE,I.MSPA_SERVICE_PROVIDER_MODE],Pa=[I.GPC_SEGMENT_TYPE,I.GPC];var _t=class extends u{constructor(e){super();n(this,"base64UrlEncoder",E.getInstance());n(this,"bitStringEncoder",d.getInstance());e&&this.decode(e)}getFieldNames(){return Ca}initializeFields(){let e=new class{test(r){return r>=0&&r<=2}},t=new class{test(r){return r>=1&&r<=2}},a=new class{test(r){for(let m=0;m2)return!1}return!0}},s=new g;return s.put(I.VERSION.toString(),new c(6,ce.VERSION)),s.put(I.PROCESSING_NOTICE.toString(),new c(2,0).withValidator(e)),s.put(I.SALE_OPT_OUT_NOTICE.toString(),new c(2,0).withValidator(e)),s.put(I.TARGETED_ADVERTISING_OPT_OUT_NOTICE.toString(),new c(2,0).withValidator(e)),s.put(I.SALE_OPT_OUT.toString(),new c(2,0).withValidator(e)),s.put(I.TARGETED_ADVERTISING_OPT_OUT.toString(),new c(2,0).withValidator(e)),s.put(I.SENSITIVE_DATA_PROCESSING.toString(),new j(2,[0,0,0,0,0,0,0,0,0,0,0]).withValidator(a)),s.put(I.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS.toString(),new j(2,[0,0,0]).withValidator(a)),s.put(I.ADDITIONAL_DATA_PROCESSING_CONSENT.toString(),new c(2,0).withValidator(e)),s.put(I.MSPA_COVERED_TRANSACTION.toString(),new c(2,1).withValidator(t)),s.put(I.MSPA_OPT_OUT_OPTION_MODE.toString(),new c(2,0).withValidator(e)),s.put(I.MSPA_SERVICE_PROVIDER_MODE.toString(),new c(2,0).withValidator(e)),s}encodeSegment(e){let t=this.bitStringEncoder.encode(e,this.getFieldNames());return this.base64UrlEncoder.encode(t)}decodeSegment(e,t){(e==null||e.length===0)&&this.fields.reset(t);try{let a=this.base64UrlEncoder.decode(e);this.bitStringEncoder.decode(a,this.getFieldNames(),t)}catch(a){throw new l("Unable to decode UsOrCoreSegment '"+e+"'")}}};var Tt=class extends u{constructor(e){super();n(this,"base64UrlEncoder",E.getInstance());n(this,"bitStringEncoder",d.getInstance());e&&this.decode(e)}getFieldNames(){return Pa}initializeFields(){let e=new g;return e.put(I.GPC_SEGMENT_TYPE.toString(),new c(2,1)),e.put(I.GPC_SEGMENT_INCLUDED.toString(),new S(!0)),e.put(I.GPC.toString(),new S(!1)),e}encodeSegment(e){let t=this.bitStringEncoder.encode(e,this.getFieldNames());return this.base64UrlEncoder.encode(t)}decodeSegment(e,t){(e==null||e.length===0)&&this.fields.reset(t);try{let a=this.base64UrlEncoder.decode(e);this.bitStringEncoder.decode(a,this.getFieldNames(),t)}catch(a){throw new l("Unable to decode UsOrGpcSegment '"+e+"'")}}};var so=class so extends _{constructor(o){super(),o&&o.length>0&&this.decode(o)}getId(){return so.ID}getName(){return so.NAME}getVersion(){return so.VERSION}initializeSegments(){let o=[];return o.push(new _t),o.push(new Tt),o}decodeSection(o){let e=this.initializeSegments();if(o!=null&&o.length!==0){let t=o.split(".");t.length>0&&e[0].decode(t[0]),t.length>1?(e[1].setFieldValue(I.GPC_SEGMENT_INCLUDED,!0),e[1].decode(t[1])):e[1].setFieldValue(I.GPC_SEGMENT_INCLUDED,!1)}return e}encodeSection(o){let e=[];return o.length>=1&&(e.push(o[0].encode()),o.length>=2&&o[1].getFieldValue(I.GPC_SEGMENT_INCLUDED)===!0&&e.push(o[1].encode())),e.join(".")}};n(so,"ID",15),n(so,"VERSION",1),n(so,"NAME","usor");var ce=so;var y;(function(i){i.VERSION="Version",i.PROCESSING_NOTICE="ProcessingNotice",i.SALE_OPT_OUT_NOTICE="SaleOptOutNotice",i.TARGETED_ADVERTISING_OPT_OUT_NOTICE="TargetedAdvertisingOptOutNotice",i.SALE_OPT_OUT="SaleOptOut",i.TARGETED_ADVERTISING_OPT_OUT="TargetedAdvertisingOptOut",i.SENSITIVE_DATA_PROCESSING="SensitiveDataProcessing",i.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS="KnownChildSensitiveDataConsents",i.ADDITIONAL_DATA_PROCESSING_CONSENT="AdditionalDataProcessingConsent",i.MSPA_COVERED_TRANSACTION="MspaCoveredTransaction",i.MSPA_OPT_OUT_OPTION_MODE="MspaOptOutOptionMode",i.MSPA_SERVICE_PROVIDER_MODE="MspaServiceProviderMode",i.GPC_SEGMENT_TYPE="GpcSegmentType",i.GPC_SEGMENT_INCLUDED="GpcSegmentIncluded",i.GPC="Gpc"})(y||(y={}));var Va=[y.VERSION,y.PROCESSING_NOTICE,y.SALE_OPT_OUT_NOTICE,y.TARGETED_ADVERTISING_OPT_OUT_NOTICE,y.SALE_OPT_OUT,y.TARGETED_ADVERTISING_OPT_OUT,y.SENSITIVE_DATA_PROCESSING,y.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS,y.ADDITIONAL_DATA_PROCESSING_CONSENT,y.MSPA_COVERED_TRANSACTION,y.MSPA_OPT_OUT_OPTION_MODE,y.MSPA_SERVICE_PROVIDER_MODE],Ra=[y.GPC_SEGMENT_TYPE,y.GPC];var Nt=class extends u{constructor(e){super();n(this,"base64UrlEncoder",E.getInstance());n(this,"bitStringEncoder",d.getInstance());e&&this.decode(e)}getFieldNames(){return Va}initializeFields(){let e=new class{test(r){return r>=0&&r<=2}},t=new class{test(r){return r>=1&&r<=2}},a=new class{test(r){for(let m=0;m2)return!1}return!0}},s=new g;return s.put(y.VERSION.toString(),new c(6,me.VERSION)),s.put(y.PROCESSING_NOTICE.toString(),new c(2,0).withValidator(e)),s.put(y.SALE_OPT_OUT_NOTICE.toString(),new c(2,0).withValidator(e)),s.put(y.TARGETED_ADVERTISING_OPT_OUT_NOTICE.toString(),new c(2,0).withValidator(e)),s.put(y.SALE_OPT_OUT.toString(),new c(2,0).withValidator(e)),s.put(y.TARGETED_ADVERTISING_OPT_OUT.toString(),new c(2,0).withValidator(e)),s.put(y.SENSITIVE_DATA_PROCESSING.toString(),new j(2,[0,0,0,0,0,0,0,0]).withValidator(a)),s.put(y.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS.toString(),new c(2,0).withValidator(e)),s.put(y.ADDITIONAL_DATA_PROCESSING_CONSENT.toString(),new c(2,0).withValidator(e)),s.put(y.MSPA_COVERED_TRANSACTION.toString(),new c(2,1).withValidator(t)),s.put(y.MSPA_OPT_OUT_OPTION_MODE.toString(),new c(2,0).withValidator(e)),s.put(y.MSPA_SERVICE_PROVIDER_MODE.toString(),new c(2,0).withValidator(e)),s}encodeSegment(e){let t=this.bitStringEncoder.encode(e,this.getFieldNames());return this.base64UrlEncoder.encode(t)}decodeSegment(e,t){(e==null||e.length===0)&&this.fields.reset(t);try{let a=this.base64UrlEncoder.decode(e);this.bitStringEncoder.decode(a,this.getFieldNames(),t)}catch(a){throw new l("Unable to decode UsTxCoreSegment '"+e+"'")}}};var Ot=class extends u{constructor(e){super();n(this,"base64UrlEncoder",E.getInstance());n(this,"bitStringEncoder",d.getInstance());e&&this.decode(e)}getFieldNames(){return Ra}initializeFields(){let e=new g;return e.put(y.GPC_SEGMENT_TYPE.toString(),new c(2,1)),e.put(y.GPC_SEGMENT_INCLUDED.toString(),new S(!0)),e.put(y.GPC.toString(),new S(!1)),e}encodeSegment(e){let t=this.bitStringEncoder.encode(e,this.getFieldNames());return this.base64UrlEncoder.encode(t)}decodeSegment(e,t){(e==null||e.length===0)&&this.fields.reset(t);try{let a=this.base64UrlEncoder.decode(e);this.bitStringEncoder.decode(a,this.getFieldNames(),t)}catch(a){throw new l("Unable to decode UsTxGpcSegment '"+e+"'")}}};var no=class no extends _{constructor(o){super(),o&&o.length>0&&this.decode(o)}getId(){return no.ID}getName(){return no.NAME}getVersion(){return no.VERSION}initializeSegments(){let o=[];return o.push(new Nt),o.push(new Ot),o}decodeSection(o){let e=this.initializeSegments();if(o!=null&&o.length!==0){let t=o.split(".");t.length>0&&e[0].decode(t[0]),t.length>1?(e[1].setFieldValue(y.GPC_SEGMENT_INCLUDED,!0),e[1].decode(t[1])):e[1].setFieldValue(y.GPC_SEGMENT_INCLUDED,!1)}return e}encodeSection(o){let e=[];return o.length>=1&&(e.push(o[0].encode()),o.length>=2&&o[1].getFieldValue(y.GPC_SEGMENT_INCLUDED)===!0&&e.push(o[1].encode())),e.join(".")}};n(no,"ID",16),n(no,"VERSION",1),n(no,"NAME","ustx");var me=no;var A;(function(i){i.VERSION="Version",i.PROCESSING_NOTICE="ProcessingNotice",i.SALE_OPT_OUT_NOTICE="SaleOptOutNotice",i.TARGETED_ADVERTISING_OPT_OUT_NOTICE="TargetedAdvertisingOptOutNotice",i.SALE_OPT_OUT="SaleOptOut",i.TARGETED_ADVERTISING_OPT_OUT="TargetedAdvertisingOptOut",i.SENSITIVE_DATA_PROCESSING="SensitiveDataProcessing",i.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS="KnownChildSensitiveDataConsents",i.ADDITIONAL_DATA_PROCESSING_CONSENT="AdditionalDataProcessingConsent",i.MSPA_COVERED_TRANSACTION="MspaCoveredTransaction",i.MSPA_OPT_OUT_OPTION_MODE="MspaOptOutOptionMode",i.MSPA_SERVICE_PROVIDER_MODE="MspaServiceProviderMode",i.GPC_SEGMENT_TYPE="GpcSegmentType",i.GPC_SEGMENT_INCLUDED="GpcSegmentIncluded",i.GPC="Gpc"})(A||(A={}));var Ma=[A.VERSION,A.PROCESSING_NOTICE,A.SALE_OPT_OUT_NOTICE,A.TARGETED_ADVERTISING_OPT_OUT_NOTICE,A.SALE_OPT_OUT,A.TARGETED_ADVERTISING_OPT_OUT,A.SENSITIVE_DATA_PROCESSING,A.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS,A.ADDITIONAL_DATA_PROCESSING_CONSENT,A.MSPA_COVERED_TRANSACTION,A.MSPA_OPT_OUT_OPTION_MODE,A.MSPA_SERVICE_PROVIDER_MODE],xa=[A.GPC_SEGMENT_TYPE,A.GPC];var It=class extends u{constructor(e){super();n(this,"base64UrlEncoder",E.getInstance());n(this,"bitStringEncoder",d.getInstance());e&&this.decode(e)}getFieldNames(){return Ma}initializeFields(){let e=new class{test(r){return r>=0&&r<=2}},t=new class{test(r){return r>=1&&r<=2}},a=new class{test(r){for(let m=0;m2)return!1}return!0}},s=new g;return s.put(A.VERSION.toString(),new c(6,pe.VERSION)),s.put(A.PROCESSING_NOTICE.toString(),new c(2,0).withValidator(e)),s.put(A.SALE_OPT_OUT_NOTICE.toString(),new c(2,0).withValidator(e)),s.put(A.TARGETED_ADVERTISING_OPT_OUT_NOTICE.toString(),new c(2,0).withValidator(e)),s.put(A.SALE_OPT_OUT.toString(),new c(2,0).withValidator(e)),s.put(A.TARGETED_ADVERTISING_OPT_OUT.toString(),new c(2,0).withValidator(e)),s.put(A.SENSITIVE_DATA_PROCESSING.toString(),new j(2,[0,0,0,0,0,0,0,0,0]).withValidator(a)),s.put(A.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS.toString(),new j(2,[0,0,0,0,0]).withValidator(a)),s.put(A.ADDITIONAL_DATA_PROCESSING_CONSENT.toString(),new c(2,0).withValidator(e)),s.put(A.MSPA_COVERED_TRANSACTION.toString(),new c(2,1).withValidator(t)),s.put(A.MSPA_OPT_OUT_OPTION_MODE.toString(),new c(2,0).withValidator(e)),s.put(A.MSPA_SERVICE_PROVIDER_MODE.toString(),new c(2,0).withValidator(e)),s}encodeSegment(e){let t=this.bitStringEncoder.encode(e,this.getFieldNames());return this.base64UrlEncoder.encode(t)}decodeSegment(e,t){(e==null||e.length===0)&&this.fields.reset(t);try{let a=this.base64UrlEncoder.decode(e);this.bitStringEncoder.decode(a,this.getFieldNames(),t)}catch(a){throw new l("Unable to decode UsDeCoreSegment '"+e+"'")}}};var yt=class extends u{constructor(e){super();n(this,"base64UrlEncoder",E.getInstance());n(this,"bitStringEncoder",d.getInstance());e&&this.decode(e)}getFieldNames(){return xa}initializeFields(){let e=new g;return e.put(A.GPC_SEGMENT_TYPE.toString(),new c(2,1)),e.put(A.GPC_SEGMENT_INCLUDED.toString(),new S(!0)),e.put(A.GPC.toString(),new S(!1)),e}encodeSegment(e){let t=this.bitStringEncoder.encode(e,this.getFieldNames());return this.base64UrlEncoder.encode(t)}decodeSegment(e,t){(e==null||e.length===0)&&this.fields.reset(t);try{let a=this.base64UrlEncoder.decode(e);this.bitStringEncoder.decode(a,this.getFieldNames(),t)}catch(a){throw new l("Unable to decode UsDeGpcSegment '"+e+"'")}}};var ro=class ro extends _{constructor(o){super(),o&&o.length>0&&this.decode(o)}getId(){return ro.ID}getName(){return ro.NAME}getVersion(){return ro.VERSION}initializeSegments(){let o=[];return o.push(new It),o.push(new yt),o}decodeSection(o){let e=this.initializeSegments();if(o!=null&&o.length!==0){let t=o.split(".");t.length>0&&e[0].decode(t[0]),t.length>1?(e[1].setFieldValue(A.GPC_SEGMENT_INCLUDED,!0),e[1].decode(t[1])):e[1].setFieldValue(A.GPC_SEGMENT_INCLUDED,!1)}return e}encodeSection(o){let e=[];return o.length>=1&&(e.push(o[0].encode()),o.length>=2&&o[1].getFieldValue(A.GPC_SEGMENT_INCLUDED)===!0&&e.push(o[1].encode())),e.join(".")}};n(ro,"ID",17),n(ro,"VERSION",1),n(ro,"NAME","usde");var pe=ro;var v;(function(i){i.VERSION="Version",i.PROCESSING_NOTICE="ProcessingNotice",i.SALE_OPT_OUT_NOTICE="SaleOptOutNotice",i.TARGETED_ADVERTISING_OPT_OUT_NOTICE="TargetedAdvertisingOptOutNotice",i.SENSITIVE_DATA_OPT_OUT_NOTICE="SensitiveDataOptOutNotice",i.SALE_OPT_OUT="SaleOptOut",i.TARGETED_ADVERTISING_OPT_OUT="TargetedAdvertisingOptOut",i.SENSITIVE_DATA_PROCESSING="SensitiveDataProcessing",i.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS="KnownChildSensitiveDataConsents",i.MSPA_COVERED_TRANSACTION="MspaCoveredTransaction",i.MSPA_OPT_OUT_OPTION_MODE="MspaOptOutOptionMode",i.MSPA_SERVICE_PROVIDER_MODE="MspaServiceProviderMode",i.GPC_SEGMENT_TYPE="GpcSegmentType",i.GPC_SEGMENT_INCLUDED="GpcSegmentIncluded",i.GPC="Gpc"})(v||(v={}));var Ga=[v.VERSION,v.PROCESSING_NOTICE,v.SALE_OPT_OUT_NOTICE,v.TARGETED_ADVERTISING_OPT_OUT_NOTICE,v.SENSITIVE_DATA_OPT_OUT_NOTICE,v.SALE_OPT_OUT,v.TARGETED_ADVERTISING_OPT_OUT,v.SENSITIVE_DATA_PROCESSING,v.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS,v.MSPA_COVERED_TRANSACTION,v.MSPA_OPT_OUT_OPTION_MODE,v.MSPA_SERVICE_PROVIDER_MODE],La=[v.GPC_SEGMENT_TYPE,v.GPC];var At=class extends u{constructor(e){super();n(this,"base64UrlEncoder",E.getInstance());n(this,"bitStringEncoder",d.getInstance());e&&this.decode(e)}getFieldNames(){return Ga}initializeFields(){let e=new class{test(r){return r>=0&&r<=2}},t=new class{test(r){return r>=1&&r<=2}},a=new class{test(r){for(let m=0;m2)return!1}return!0}},s=new g;return s.put(v.VERSION.toString(),new c(6,le.VERSION)),s.put(v.PROCESSING_NOTICE.toString(),new c(2,0).withValidator(e)),s.put(v.SALE_OPT_OUT_NOTICE.toString(),new c(2,0).withValidator(e)),s.put(v.TARGETED_ADVERTISING_OPT_OUT_NOTICE.toString(),new c(2,0).withValidator(e)),s.put(v.SENSITIVE_DATA_OPT_OUT_NOTICE.toString(),new c(2,0).withValidator(e)),s.put(v.SALE_OPT_OUT.toString(),new c(2,0).withValidator(e)),s.put(v.TARGETED_ADVERTISING_OPT_OUT.toString(),new c(2,0).withValidator(e)),s.put(v.SENSITIVE_DATA_PROCESSING.toString(),new j(2,[0,0,0,0,0,0,0,0]).withValidator(a)),s.put(v.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS.toString(),new c(2,0).withValidator(e)),s.put(v.MSPA_COVERED_TRANSACTION.toString(),new c(2,1).withValidator(t)),s.put(v.MSPA_OPT_OUT_OPTION_MODE.toString(),new c(2,0).withValidator(e)),s.put(v.MSPA_SERVICE_PROVIDER_MODE.toString(),new c(2,0).withValidator(e)),s}encodeSegment(e){let t=this.bitStringEncoder.encode(e,this.getFieldNames());return this.base64UrlEncoder.encode(t)}decodeSegment(e,t){(e==null||e.length===0)&&this.fields.reset(t);try{let a=this.base64UrlEncoder.decode(e);this.bitStringEncoder.decode(a,this.getFieldNames(),t)}catch(a){throw new l("Unable to decode UsIaCoreSegment '"+e+"'")}}};var vt=class extends u{constructor(e){super();n(this,"base64UrlEncoder",E.getInstance());n(this,"bitStringEncoder",d.getInstance());e&&this.decode(e)}getFieldNames(){return La}initializeFields(){let e=new g;return e.put(v.GPC_SEGMENT_TYPE.toString(),new c(2,1)),e.put(v.GPC_SEGMENT_INCLUDED.toString(),new S(!0)),e.put(v.GPC.toString(),new S(!1)),e}encodeSegment(e){let t=this.bitStringEncoder.encode(e,this.getFieldNames());return this.base64UrlEncoder.encode(t)}decodeSegment(e,t){(e==null||e.length===0)&&this.fields.reset(t);try{let a=this.base64UrlEncoder.decode(e);this.bitStringEncoder.decode(a,this.getFieldNames(),t)}catch(a){throw new l("Unable to decode UsIaGpcSegment '"+e+"'")}}};var co=class co extends _{constructor(o){super(),o&&o.length>0&&this.decode(o)}getId(){return co.ID}getName(){return co.NAME}getVersion(){return co.VERSION}initializeSegments(){let o=[];return o.push(new At),o.push(new vt),o}decodeSection(o){let e=this.initializeSegments();if(o!=null&&o.length!==0){let t=o.split(".");t.length>0&&e[0].decode(t[0]),t.length>1?(e[1].setFieldValue(v.GPC_SEGMENT_INCLUDED,!0),e[1].decode(t[1])):e[1].setFieldValue(v.GPC_SEGMENT_INCLUDED,!1)}return e}encodeSection(o){let e=[];return o.length>=1&&(e.push(o[0].encode()),o.length>=2&&o[1].getFieldValue(v.GPC_SEGMENT_INCLUDED)===!0&&e.push(o[1].encode())),e.join(".")}};n(co,"ID",18),n(co,"VERSION",1),n(co,"NAME","usia");var le=co;var z;(function(i){i.VERSION="Version",i.PROCESSING_NOTICE="ProcessingNotice",i.SALE_OPT_OUT_NOTICE="SaleOptOutNotice",i.TARGETED_ADVERTISING_OPT_OUT_NOTICE="TargetedAdvertisingOptOutNotice",i.SALE_OPT_OUT="SaleOptOut",i.TARGETED_ADVERTISING_OPT_OUT="TargetedAdvertisingOptOut",i.SENSITIVE_DATA_PROCESSING="SensitiveDataProcessing",i.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS="KnownChildSensitiveDataConsents",i.ADDITIONAL_DATA_PROCESSING_CONSENT="AdditionalDataProcessingConsent",i.MSPA_COVERED_TRANSACTION="MspaCoveredTransaction",i.MSPA_OPT_OUT_OPTION_MODE="MspaOptOutOptionMode",i.MSPA_SERVICE_PROVIDER_MODE="MspaServiceProviderMode",i.GPC_SEGMENT_TYPE="GpcSegmentType",i.GPC_SEGMENT_INCLUDED="GpcSegmentIncluded",i.GPC="Gpc"})(z||(z={}));var Ua=[z.VERSION,z.PROCESSING_NOTICE,z.SALE_OPT_OUT_NOTICE,z.TARGETED_ADVERTISING_OPT_OUT_NOTICE,z.SALE_OPT_OUT,z.TARGETED_ADVERTISING_OPT_OUT,z.SENSITIVE_DATA_PROCESSING,z.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS,z.ADDITIONAL_DATA_PROCESSING_CONSENT,z.MSPA_COVERED_TRANSACTION,z.MSPA_OPT_OUT_OPTION_MODE,z.MSPA_SERVICE_PROVIDER_MODE],Fa=[z.GPC_SEGMENT_TYPE,z.GPC];var zt=class extends u{constructor(e){super();n(this,"base64UrlEncoder",E.getInstance());n(this,"bitStringEncoder",d.getInstance());e&&this.decode(e)}getFieldNames(){return Ua}initializeFields(){let e=new class{test(r){return r>=0&&r<=2}},t=new class{test(r){return r>=1&&r<=2}},a=new class{test(r){for(let m=0;m2)return!1}return!0}},s=new g;return s.put(z.VERSION.toString(),new c(6,ue.VERSION)),s.put(z.PROCESSING_NOTICE.toString(),new c(2,0).withValidator(e)),s.put(z.SALE_OPT_OUT_NOTICE.toString(),new c(2,0).withValidator(e)),s.put(z.TARGETED_ADVERTISING_OPT_OUT_NOTICE.toString(),new c(2,0).withValidator(e)),s.put(z.SALE_OPT_OUT.toString(),new c(2,0).withValidator(e)),s.put(z.TARGETED_ADVERTISING_OPT_OUT.toString(),new c(2,0).withValidator(e)),s.put(z.SENSITIVE_DATA_PROCESSING.toString(),new j(2,[0,0,0,0,0,0,0,0]).withValidator(a)),s.put(z.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS.toString(),new c(2,0).withValidator(e)),s.put(z.ADDITIONAL_DATA_PROCESSING_CONSENT.toString(),new c(2,0).withValidator(e)),s.put(z.MSPA_COVERED_TRANSACTION.toString(),new c(2,1).withValidator(t)),s.put(z.MSPA_OPT_OUT_OPTION_MODE.toString(),new c(2,0).withValidator(e)),s.put(z.MSPA_SERVICE_PROVIDER_MODE.toString(),new c(2,0).withValidator(e)),s}encodeSegment(e){let t=this.bitStringEncoder.encode(e,this.getFieldNames());return this.base64UrlEncoder.encode(t)}decodeSegment(e,t){(e==null||e.length===0)&&this.fields.reset(t);try{let a=this.base64UrlEncoder.decode(e);this.bitStringEncoder.decode(a,this.getFieldNames(),t)}catch(a){throw new l("Unable to decode UsNeCoreSegment '"+e+"'")}}};var Dt=class extends u{constructor(e){super();n(this,"base64UrlEncoder",E.getInstance());n(this,"bitStringEncoder",d.getInstance());e&&this.decode(e)}getFieldNames(){return Fa}initializeFields(){let e=new g;return e.put(z.GPC_SEGMENT_TYPE.toString(),new c(2,1)),e.put(z.GPC_SEGMENT_INCLUDED.toString(),new S(!0)),e.put(z.GPC.toString(),new S(!1)),e}encodeSegment(e){let t=this.bitStringEncoder.encode(e,this.getFieldNames());return this.base64UrlEncoder.encode(t)}decodeSegment(e,t){(e==null||e.length===0)&&this.fields.reset(t);try{let a=this.base64UrlEncoder.decode(e);this.bitStringEncoder.decode(a,this.getFieldNames(),t)}catch(a){throw new l("Unable to decode UsNeGpcSegment '"+e+"'")}}};var mo=class mo extends _{constructor(o){super(),o&&o.length>0&&this.decode(o)}getId(){return mo.ID}getName(){return mo.NAME}getVersion(){return mo.VERSION}initializeSegments(){let o=[];return o.push(new zt),o.push(new Dt),o}decodeSection(o){let e=this.initializeSegments();if(o!=null&&o.length!==0){let t=o.split(".");t.length>0&&e[0].decode(t[0]),t.length>1?(e[1].setFieldValue(z.GPC_SEGMENT_INCLUDED,!0),e[1].decode(t[1])):e[1].setFieldValue(z.GPC_SEGMENT_INCLUDED,!1)}return e}encodeSection(o){let e=[];return o.length>=1&&(e.push(o[0].encode()),o.length>=2&&o[1].getFieldValue(z.GPC_SEGMENT_INCLUDED)===!0&&e.push(o[1].encode())),e.join(".")}};n(mo,"ID",19),n(mo,"VERSION",1),n(mo,"NAME","usne");var ue=mo;var D;(function(i){i.VERSION="Version",i.PROCESSING_NOTICE="ProcessingNotice",i.SALE_OPT_OUT_NOTICE="SaleOptOutNotice",i.TARGETED_ADVERTISING_OPT_OUT_NOTICE="TargetedAdvertisingOptOutNotice",i.SALE_OPT_OUT="SaleOptOut",i.TARGETED_ADVERTISING_OPT_OUT="TargetedAdvertisingOptOut",i.SENSITIVE_DATA_PROCESSING="SensitiveDataProcessing",i.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS="KnownChildSensitiveDataConsents",i.ADDITIONAL_DATA_PROCESSING_CONSENT="AdditionalDataProcessingConsent",i.MSPA_COVERED_TRANSACTION="MspaCoveredTransaction",i.MSPA_OPT_OUT_OPTION_MODE="MspaOptOutOptionMode",i.MSPA_SERVICE_PROVIDER_MODE="MspaServiceProviderMode",i.GPC_SEGMENT_TYPE="GpcSegmentType",i.GPC_SEGMENT_INCLUDED="GpcSegmentIncluded",i.GPC="Gpc"})(D||(D={}));var Ba=[D.VERSION,D.PROCESSING_NOTICE,D.SALE_OPT_OUT_NOTICE,D.TARGETED_ADVERTISING_OPT_OUT_NOTICE,D.SALE_OPT_OUT,D.TARGETED_ADVERTISING_OPT_OUT,D.SENSITIVE_DATA_PROCESSING,D.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS,D.ADDITIONAL_DATA_PROCESSING_CONSENT,D.MSPA_COVERED_TRANSACTION,D.MSPA_OPT_OUT_OPTION_MODE,D.MSPA_SERVICE_PROVIDER_MODE],Ha=[D.GPC_SEGMENT_TYPE,D.GPC];var Ct=class extends u{constructor(e){super();n(this,"base64UrlEncoder",E.getInstance());n(this,"bitStringEncoder",d.getInstance());e&&this.decode(e)}getFieldNames(){return Ba}initializeFields(){let e=new class{test(r){return r>=0&&r<=2}},t=new class{test(r){return r>=1&&r<=2}},a=new class{test(r){for(let m=0;m2)return!1}return!0}},s=new g;return s.put(D.VERSION.toString(),new c(6,de.VERSION)),s.put(D.PROCESSING_NOTICE.toString(),new c(2,0).withValidator(e)),s.put(D.SALE_OPT_OUT_NOTICE.toString(),new c(2,0).withValidator(e)),s.put(D.TARGETED_ADVERTISING_OPT_OUT_NOTICE.toString(),new c(2,0).withValidator(e)),s.put(D.SALE_OPT_OUT.toString(),new c(2,0).withValidator(e)),s.put(D.TARGETED_ADVERTISING_OPT_OUT.toString(),new c(2,0).withValidator(e)),s.put(D.SENSITIVE_DATA_PROCESSING.toString(),new j(2,[0,0,0,0,0,0,0,0]).withValidator(a)),s.put(D.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS.toString(),new j(2,[0,0,0]).withValidator(a)),s.put(D.ADDITIONAL_DATA_PROCESSING_CONSENT.toString(),new c(2,0).withValidator(e)),s.put(D.MSPA_COVERED_TRANSACTION.toString(),new c(2,1).withValidator(t)),s.put(D.MSPA_OPT_OUT_OPTION_MODE.toString(),new c(2,0).withValidator(e)),s.put(D.MSPA_SERVICE_PROVIDER_MODE.toString(),new c(2,0).withValidator(e)),s}encodeSegment(e){let t=this.bitStringEncoder.encode(e,this.getFieldNames());return this.base64UrlEncoder.encode(t)}decodeSegment(e,t){(e==null||e.length===0)&&this.fields.reset(t);try{let a=this.base64UrlEncoder.decode(e);this.bitStringEncoder.decode(a,this.getFieldNames(),t)}catch(a){throw new l("Unable to decode UsNhCoreSegment '"+e+"'")}}};var Pt=class extends u{constructor(e){super();n(this,"base64UrlEncoder",E.getInstance());n(this,"bitStringEncoder",d.getInstance());e&&this.decode(e)}getFieldNames(){return Ha}initializeFields(){let e=new g;return e.put(D.GPC_SEGMENT_TYPE.toString(),new c(2,1)),e.put(D.GPC_SEGMENT_INCLUDED.toString(),new S(!0)),e.put(D.GPC.toString(),new S(!1)),e}encodeSegment(e){let t=this.bitStringEncoder.encode(e,this.getFieldNames());return this.base64UrlEncoder.encode(t)}decodeSegment(e,t){(e==null||e.length===0)&&this.fields.reset(t);try{let a=this.base64UrlEncoder.decode(e);this.bitStringEncoder.decode(a,this.getFieldNames(),t)}catch(a){throw new l("Unable to decode UsNhGpcSegment '"+e+"'")}}};var po=class po extends _{constructor(o){super(),o&&o.length>0&&this.decode(o)}getId(){return po.ID}getName(){return po.NAME}getVersion(){return po.VERSION}initializeSegments(){let o=[];return o.push(new Ct),o.push(new Pt),o}decodeSection(o){let e=this.initializeSegments();if(o!=null&&o.length!==0){let t=o.split(".");t.length>0&&e[0].decode(t[0]),t.length>1?(e[1].setFieldValue(D.GPC_SEGMENT_INCLUDED,!0),e[1].decode(t[1])):e[1].setFieldValue(D.GPC_SEGMENT_INCLUDED,!1)}return e}encodeSection(o){let e=[];return o.length>=1&&(e.push(o[0].encode()),o.length>=2&&o[1].getFieldValue(D.GPC_SEGMENT_INCLUDED)===!0&&e.push(o[1].encode())),e.join(".")}};n(po,"ID",20),n(po,"VERSION",1),n(po,"NAME","usnh");var de=po;var C;(function(i){i.VERSION="Version",i.PROCESSING_NOTICE="ProcessingNotice",i.SALE_OPT_OUT_NOTICE="SaleOptOutNotice",i.TARGETED_ADVERTISING_OPT_OUT_NOTICE="TargetedAdvertisingOptOutNotice",i.SALE_OPT_OUT="SaleOptOut",i.TARGETED_ADVERTISING_OPT_OUT="TargetedAdvertisingOptOut",i.SENSITIVE_DATA_PROCESSING="SensitiveDataProcessing",i.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS="KnownChildSensitiveDataConsents",i.ADDITIONAL_DATA_PROCESSING_CONSENT="AdditionalDataProcessingConsent",i.MSPA_COVERED_TRANSACTION="MspaCoveredTransaction",i.MSPA_OPT_OUT_OPTION_MODE="MspaOptOutOptionMode",i.MSPA_SERVICE_PROVIDER_MODE="MspaServiceProviderMode",i.GPC_SEGMENT_TYPE="GpcSegmentType",i.GPC_SEGMENT_INCLUDED="GpcSegmentIncluded",i.GPC="Gpc"})(C||(C={}));var qa=[C.VERSION,C.PROCESSING_NOTICE,C.SALE_OPT_OUT_NOTICE,C.TARGETED_ADVERTISING_OPT_OUT_NOTICE,C.SALE_OPT_OUT,C.TARGETED_ADVERTISING_OPT_OUT,C.SENSITIVE_DATA_PROCESSING,C.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS,C.ADDITIONAL_DATA_PROCESSING_CONSENT,C.MSPA_COVERED_TRANSACTION,C.MSPA_OPT_OUT_OPTION_MODE,C.MSPA_SERVICE_PROVIDER_MODE],Ka=[C.GPC_SEGMENT_TYPE,C.GPC];var Vt=class extends u{constructor(e){super();n(this,"base64UrlEncoder",E.getInstance());n(this,"bitStringEncoder",d.getInstance());e&&this.decode(e)}getFieldNames(){return qa}initializeFields(){let e=new class{test(r){return r>=0&&r<=2}},t=new class{test(r){return r>=1&&r<=2}},a=new class{test(r){for(let m=0;m2)return!1}return!0}},s=new g;return s.put(C.VERSION.toString(),new c(6,ge.VERSION)),s.put(C.PROCESSING_NOTICE.toString(),new c(2,0).withValidator(e)),s.put(C.SALE_OPT_OUT_NOTICE.toString(),new c(2,0).withValidator(e)),s.put(C.TARGETED_ADVERTISING_OPT_OUT_NOTICE.toString(),new c(2,0).withValidator(e)),s.put(C.SALE_OPT_OUT.toString(),new c(2,0).withValidator(e)),s.put(C.TARGETED_ADVERTISING_OPT_OUT.toString(),new c(2,0).withValidator(e)),s.put(C.SENSITIVE_DATA_PROCESSING.toString(),new j(2,[0,0,0,0,0,0,0,0,0,0]).withValidator(a)),s.put(C.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS.toString(),new j(2,[0,0,0,0,0]).withValidator(a)),s.put(C.ADDITIONAL_DATA_PROCESSING_CONSENT.toString(),new c(2,0).withValidator(e)),s.put(C.MSPA_COVERED_TRANSACTION.toString(),new c(2,1).withValidator(t)),s.put(C.MSPA_OPT_OUT_OPTION_MODE.toString(),new c(2,0).withValidator(e)),s.put(C.MSPA_SERVICE_PROVIDER_MODE.toString(),new c(2,0).withValidator(e)),s}encodeSegment(e){let t=this.bitStringEncoder.encode(e,this.getFieldNames());return this.base64UrlEncoder.encode(t)}decodeSegment(e,t){(e==null||e.length===0)&&this.fields.reset(t);try{let a=this.base64UrlEncoder.decode(e);this.bitStringEncoder.decode(a,this.getFieldNames(),t)}catch(a){throw new l("Unable to decode UsNjCoreSegment '"+e+"'")}}};var Rt=class extends u{constructor(e){super();n(this,"base64UrlEncoder",E.getInstance());n(this,"bitStringEncoder",d.getInstance());e&&this.decode(e)}getFieldNames(){return Ka}initializeFields(){let e=new g;return e.put(C.GPC_SEGMENT_TYPE.toString(),new c(2,1)),e.put(C.GPC_SEGMENT_INCLUDED.toString(),new S(!0)),e.put(C.GPC.toString(),new S(!1)),e}encodeSegment(e){let t=this.bitStringEncoder.encode(e,this.getFieldNames());return this.base64UrlEncoder.encode(t)}decodeSegment(e,t){(e==null||e.length===0)&&this.fields.reset(t);try{let a=this.base64UrlEncoder.decode(e);this.bitStringEncoder.decode(a,this.getFieldNames(),t)}catch(a){throw new l("Unable to decode UsNjGpcSegment '"+e+"'")}}};var lo=class lo extends _{constructor(o){super(),o&&o.length>0&&this.decode(o)}getId(){return lo.ID}getName(){return lo.NAME}getVersion(){return lo.VERSION}initializeSegments(){let o=[];return o.push(new Vt),o.push(new Rt),o}decodeSection(o){let e=this.initializeSegments();if(o!=null&&o.length!==0){let t=o.split(".");t.length>0&&e[0].decode(t[0]),t.length>1?(e[1].setFieldValue(C.GPC_SEGMENT_INCLUDED,!0),e[1].decode(t[1])):e[1].setFieldValue(C.GPC_SEGMENT_INCLUDED,!1)}return e}encodeSection(o){let e=[];return o.length>=1&&(e.push(o[0].encode()),o.length>=2&&o[1].getFieldValue(C.GPC_SEGMENT_INCLUDED)===!0&&e.push(o[1].encode())),e.join(".")}};n(lo,"ID",21),n(lo,"VERSION",1),n(lo,"NAME","usnj");var ge=lo;var P;(function(i){i.VERSION="Version",i.PROCESSING_NOTICE="ProcessingNotice",i.SALE_OPT_OUT_NOTICE="SaleOptOutNotice",i.TARGETED_ADVERTISING_OPT_OUT_NOTICE="TargetedAdvertisingOptOutNotice",i.SALE_OPT_OUT="SaleOptOut",i.TARGETED_ADVERTISING_OPT_OUT="TargetedAdvertisingOptOut",i.SENSITIVE_DATA_PROCESSING="SensitiveDataProcessing",i.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS="KnownChildSensitiveDataConsents",i.ADDITIONAL_DATA_PROCESSING_CONSENT="AdditionalDataProcessingConsent",i.MSPA_COVERED_TRANSACTION="MspaCoveredTransaction",i.MSPA_OPT_OUT_OPTION_MODE="MspaOptOutOptionMode",i.MSPA_SERVICE_PROVIDER_MODE="MspaServiceProviderMode",i.GPC_SEGMENT_TYPE="GpcSegmentType",i.GPC_SEGMENT_INCLUDED="GpcSegmentIncluded",i.GPC="Gpc"})(P||(P={}));var Ya=[P.VERSION,P.PROCESSING_NOTICE,P.SALE_OPT_OUT_NOTICE,P.TARGETED_ADVERTISING_OPT_OUT_NOTICE,P.SALE_OPT_OUT,P.TARGETED_ADVERTISING_OPT_OUT,P.SENSITIVE_DATA_PROCESSING,P.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS,P.ADDITIONAL_DATA_PROCESSING_CONSENT,P.MSPA_COVERED_TRANSACTION,P.MSPA_OPT_OUT_OPTION_MODE,P.MSPA_SERVICE_PROVIDER_MODE],Wa=[P.GPC_SEGMENT_TYPE,P.GPC];var Mt=class extends u{constructor(e){super();n(this,"base64UrlEncoder",E.getInstance());n(this,"bitStringEncoder",d.getInstance());e&&this.decode(e)}getFieldNames(){return Ya}initializeFields(){let e=new class{test(r){return r>=0&&r<=2}},t=new class{test(r){return r>=1&&r<=2}},a=new class{test(r){for(let m=0;m2)return!1}return!0}},s=new g;return s.put(P.VERSION.toString(),new c(6,he.VERSION)),s.put(P.PROCESSING_NOTICE.toString(),new c(2,0).withValidator(e)),s.put(P.SALE_OPT_OUT_NOTICE.toString(),new c(2,0).withValidator(e)),s.put(P.TARGETED_ADVERTISING_OPT_OUT_NOTICE.toString(),new c(2,0).withValidator(e)),s.put(P.SALE_OPT_OUT.toString(),new c(2,0).withValidator(e)),s.put(P.TARGETED_ADVERTISING_OPT_OUT.toString(),new c(2,0).withValidator(e)),s.put(P.SENSITIVE_DATA_PROCESSING.toString(),new j(2,[0,0,0,0,0,0,0,0]).withValidator(a)),s.put(P.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS.toString(),new c(2,0).withValidator(e)),s.put(P.ADDITIONAL_DATA_PROCESSING_CONSENT.toString(),new c(2,0).withValidator(e)),s.put(P.MSPA_COVERED_TRANSACTION.toString(),new c(2,1).withValidator(t)),s.put(P.MSPA_OPT_OUT_OPTION_MODE.toString(),new c(2,0).withValidator(e)),s.put(P.MSPA_SERVICE_PROVIDER_MODE.toString(),new c(2,0).withValidator(e)),s}encodeSegment(e){let t=this.bitStringEncoder.encode(e,this.getFieldNames());return this.base64UrlEncoder.encode(t)}decodeSegment(e,t){(e==null||e.length===0)&&this.fields.reset(t);try{let a=this.base64UrlEncoder.decode(e);this.bitStringEncoder.decode(a,this.getFieldNames(),t)}catch(a){throw new l("Unable to decode UsTnCoreSegment '"+e+"'")}}};var xt=class extends u{constructor(e){super();n(this,"base64UrlEncoder",E.getInstance());n(this,"bitStringEncoder",d.getInstance());e&&this.decode(e)}getFieldNames(){return Wa}initializeFields(){let e=new g;return e.put(P.GPC_SEGMENT_TYPE.toString(),new c(2,1)),e.put(P.GPC_SEGMENT_INCLUDED.toString(),new S(!0)),e.put(P.GPC.toString(),new S(!1)),e}encodeSegment(e){let t=this.bitStringEncoder.encode(e,this.getFieldNames());return this.base64UrlEncoder.encode(t)}decodeSegment(e,t){(e==null||e.length===0)&&this.fields.reset(t);try{let a=this.base64UrlEncoder.decode(e);this.bitStringEncoder.decode(a,this.getFieldNames(),t)}catch(a){throw new l("Unable to decode UsTnGpcSegment '"+e+"'")}}};var uo=class uo extends _{constructor(o){super(),o&&o.length>0&&this.decode(o)}getId(){return uo.ID}getName(){return uo.NAME}getVersion(){return uo.VERSION}initializeSegments(){let o=[];return o.push(new Mt),o.push(new xt),o}decodeSection(o){let e=this.initializeSegments();if(o!=null&&o.length!==0){let t=o.split(".");t.length>0&&e[0].decode(t[0]),t.length>1?(e[1].setFieldValue(P.GPC_SEGMENT_INCLUDED,!0),e[1].decode(t[1])):e[1].setFieldValue(P.GPC_SEGMENT_INCLUDED,!1)}return e}encodeSection(o){let e=[];return o.length>=1&&(e.push(o[0].encode()),o.length>=2&&o[1].getFieldValue(P.GPC_SEGMENT_INCLUDED)===!0&&e.push(o[1].encode())),e.join(".")}};n(uo,"ID",22),n(uo,"VERSION",1),n(uo,"NAME","ustn");var he=uo;var H=class{};n(H,"SECTION_ID_NAME_MAP",new Map([[W.ID,W.NAME],[J.ID,J.NAME],[Z.ID,Z.NAME],[ee.ID,ee.NAME],[oe.ID,oe.NAME],[te.ID,te.NAME],[ae.ID,ae.NAME],[ie.ID,ie.NAME],[se.ID,se.NAME],[ne.ID,ne.NAME],[re.ID,re.NAME],[ce.ID,ce.NAME],[me.ID,me.NAME],[pe.ID,pe.NAME],[le.ID,le.NAME],[ue.ID,ue.NAME],[de.ID,de.NAME],[ge.ID,ge.NAME],[he.ID,he.NAME]])),n(H,"SECTION_ORDER",[W.NAME,J.NAME,Z.NAME,ee.NAME,oe.NAME,te.NAME,ae.NAME,ie.NAME,se.NAME,ne.NAME,re.NAME,ce.NAME,me.NAME,pe.NAME,le.NAME,ue.NAME,de.NAME,ge.NAME,he.NAME]);var Ro=class{constructor(o){n(this,"sections",new Map);n(this,"encodedString",null);n(this,"decoded",!0);n(this,"dirty",!1);o&&this.decode(o)}setFieldValue(o,e,t){this.decoded||(this.sections=this.decodeModel(this.encodedString),this.dirty=!1,this.decoded=!0);let a=null;if(this.sections.has(o)?a=this.sections.get(o):o===J.NAME?(a=new J,this.sections.set(J.NAME,a)):o===W.NAME?(a=new W,this.sections.set(W.NAME,a)):o===Z.NAME?(a=new Z,this.sections.set(Z.NAME,a)):o===ee.NAME?(a=new ee,this.sections.set(ee.NAME,a)):o===oe.NAME?(a=new oe,this.sections.set(oe.NAME,a)):o===te.NAME?(a=new te,this.sections.set(te.NAME,a)):o===ae.NAME?(a=new ae,this.sections.set(ae.NAME,a)):o===ie.NAME?(a=new ie,this.sections.set(ie.NAME,a)):o===se.NAME?(a=new se,this.sections.set(se.NAME,a)):o===ne.NAME?(a=new ne,this.sections.set(ne.NAME,a)):o===re.NAME?(a=new re,this.sections.set(re.NAME,a)):o===ce.NAME?(a=new ce,this.sections.set(ce.NAME,a)):o===me.NAME?(a=new me,this.sections.set(me.NAME,a)):o===pe.NAME?(a=new pe,this.sections.set(pe.NAME,a)):o===le.NAME?(a=new le,this.sections.set(le.NAME,a)):o===ue.NAME?(a=new ue,this.sections.set(ue.NAME,a)):o===de.NAME?(a=new de,this.sections.set(de.NAME,a)):o===ge.NAME?(a=new ge,this.sections.set(ge.NAME,a)):o===he.NAME&&(a=new he,this.sections.set(he.NAME,a)),a)a.setFieldValue(e,t),this.dirty=!0,a.setIsDirty(!0);else throw new Me(o+"."+e+" not found")}setFieldValueBySectionId(o,e,t){this.setFieldValue(H.SECTION_ID_NAME_MAP.get(o),e,t)}getFieldValue(o,e){return this.decoded||(this.sections=this.decodeModel(this.encodedString),this.dirty=!1,this.decoded=!0),this.sections.has(o)?this.sections.get(o).getFieldValue(e):null}getFieldValueBySectionId(o,e){return this.getFieldValue(H.SECTION_ID_NAME_MAP.get(o),e)}hasField(o,e){return this.decoded||(this.sections=this.decodeModel(this.encodedString),this.dirty=!1,this.decoded=!0),this.sections.has(o)?this.sections.get(o).hasField(e):!1}hasFieldBySectionId(o,e){return this.hasField(H.SECTION_ID_NAME_MAP.get(o),e)}hasSection(o){return this.decoded||(this.sections=this.decodeModel(this.encodedString),this.dirty=!1,this.decoded=!0),this.sections.has(o)}hasSectionId(o){return this.hasSection(H.SECTION_ID_NAME_MAP.get(o))}deleteSection(o){!this.decoded&&this.encodedString!=null&&this.encodedString.length>0&&this.decode(this.encodedString),this.sections.delete(o),this.dirty=!0}deleteSectionById(o){this.deleteSection(H.SECTION_ID_NAME_MAP.get(o))}clear(){this.sections.clear(),this.encodedString="DBAA",this.decoded=!1,this.dirty=!1}getHeader(){this.decoded||(this.sections=this.decodeModel(this.encodedString),this.dirty=!1,this.decoded=!0);let o=new Ce;return o.setFieldValue("SectionIds",this.getSectionIds()),o.toObj()}getSection(o){return this.decoded||(this.sections=this.decodeModel(this.encodedString),this.dirty=!1,this.decoded=!0),this.sections.has(o)?this.sections.get(o).toObj():null}getSectionIds(){this.decoded||(this.sections=this.decodeModel(this.encodedString),this.dirty=!1,this.decoded=!0);let o=[];for(let e=0;e{let m=new XMLHttpRequest,p=()=>{if(m.readyState==XMLHttpRequest.DONE)if(m.status>=200&&m.status<300){let Pe=m.response;if(typeof Pe=="string")try{Pe=JSON.parse(Pe)}catch(Ee){}s(Pe)}else r(new Error(`HTTP Status: ${m.status} response type: ${m.responseType}`))},q=()=>{r(new Error("error"))},Y=()=>{r(new Error("aborted"))},_e=()=>{r(new Error("Timeout "+a+"ms "+o))};m.withCredentials=t,m.addEventListener("load",p),m.addEventListener("error",q),m.addEventListener("abort",Y),e===null?m.open("GET",o,!0):m.open("POST",o,!0),m.responseType="json",m.timeout=a,m.ontimeout=_e,m.send(e)})}static post(o,e,t=!1,a=0){return this.absCall(o,JSON.stringify(e),t,a)}static fetch(o,e=!1,t=0){return this.absCall(o,null,e,t)}};var fo=class extends Error{constructor(o){super(o),this.name="GVLError"}};var No=class No{has(o){return No.langSet.has(o)}forEach(o){No.langSet.forEach(o)}get size(){return No.langSet.size}};n(No,"langSet",new Set(["AR","BG","BS","CA","CS","CY","DA","DE","EL","EN","ES","ET","EU","FI","FR","GL","HE","HR","HU","ID","IT","JA","KA","KO","LT","LV","MK","MS","MT","NL","NO","PL","PT-BR","PT-PT","RO","RU","SK","SL","SQ","SR-LATN","SR-CYRL","SV","SW","TH","TL","TR","UK","VI","ZH"]));var Lt=No;var Oo=class Oo{constructor(){n(this,"vendors");n(this,"consentLanguages",new Lt);n(this,"gvlSpecificationVersion");n(this,"vendorListVersion");n(this,"tcfPolicyVersion");n(this,"lastUpdated");n(this,"purposes");n(this,"specialPurposes");n(this,"features");n(this,"specialFeatures");n(this,"stacks");n(this,"dataCategories");n(this,"language",Oo.DEFAULT_LANGUAGE);n(this,"vendorIds");n(this,"ready",!1);n(this,"fullVendorList");n(this,"byPurposeVendorMap");n(this,"bySpecialPurposeVendorMap");n(this,"byFeatureVendorMap");n(this,"bySpecialFeatureVendorMap");n(this,"baseUrl");n(this,"languageFilename","purposes-[LANG].json")}static fromVendorList(o){let e=new Oo;return e.populate(o),e}static fromUrl(o){return yo(this,null,function*(){let e=o.baseUrl;if(!e||e.length===0)throw new fo("Invalid baseUrl: '"+e+"'");if(/^https?:\/\/vendorlist\.consensu\.org\//.test(e))throw new fo("Invalid baseUrl! You may not pull directly from vendorlist.consensu.org and must provide your own cache");e.length>0&&e[e.length-1]!=="/"&&(e+="/");let t=new Oo;if(t.baseUrl=e,o.languageFilename?t.languageFilename=o.languageFilename:t.languageFilename="purposes-[LANG].json",o.version>0){let a=o.versionedFilename;a||(a="archives/vendor-list-v[VERSION].json");let s=e+a.replace("[VERSION]",String(o.version));t.populate(yield To.fetch(s))}else{let a=o.latestFilename;a||(a="vendor-list.json");let s=e+a;t.populate(yield To.fetch(s))}return t})}changeLanguage(o){return yo(this,null,function*(){let e=o.toUpperCase();if(this.consentLanguages.has(e)){if(e!==this.language){this.language=e;let t=this.baseUrl+this.languageFilename.replace("[LANG]",o);try{this.populate(yield To.fetch(t))}catch(a){throw new fo("unable to load language: "+a.message)}}}else throw new fo(`unsupported language ${o}`)})}getJson(){return JSON.parse(JSON.stringify({gvlSpecificationVersion:this.gvlSpecificationVersion,vendorListVersion:this.vendorListVersion,tcfPolicyVersion:this.tcfPolicyVersion,lastUpdated:this.lastUpdated,purposes:this.purposes,specialPurposes:this.specialPurposes,features:this.features,specialFeatures:this.specialFeatures,stacks:this.stacks,dataCategories:this.dataCategories,vendors:this.fullVendorList}))}isVendorList(o){return o!==void 0&&o.vendors!==void 0}populate(o){this.purposes=o.purposes,this.specialPurposes=o.specialPurposes,this.features=o.features,this.specialFeatures=o.specialFeatures,this.stacks=o.stacks,this.dataCategories=o.dataCategories,this.isVendorList(o)&&(this.gvlSpecificationVersion=o.gvlSpecificationVersion,this.tcfPolicyVersion=o.tcfPolicyVersion,this.vendorListVersion=o.vendorListVersion,this.lastUpdated=o.lastUpdated,typeof this.lastUpdated=="string"&&(this.lastUpdated=new Date(this.lastUpdated)),this.vendors=o.vendors,this.fullVendorList=o.vendors,this.mapVendors(),this.ready=!0)}mapVendors(o){this.byPurposeVendorMap={},this.bySpecialPurposeVendorMap={},this.byFeatureVendorMap={},this.bySpecialFeatureVendorMap={},Object.keys(this.purposes).forEach(e=>{this.byPurposeVendorMap[e]={legInt:new Set,impCons:new Set,consent:new Set,flexible:new Set}}),Object.keys(this.specialPurposes).forEach(e=>{this.bySpecialPurposeVendorMap[e]=new Set}),Object.keys(this.features).forEach(e=>{this.byFeatureVendorMap[e]=new Set}),Object.keys(this.specialFeatures).forEach(e=>{this.bySpecialFeatureVendorMap[e]=new Set}),Array.isArray(o)||(o=Object.keys(this.fullVendorList).map(e=>+e)),this.vendorIds=new Set(o),this.vendors=o.reduce((e,t)=>{let a=this.vendors[String(t)];return a&&a.deletedDate===void 0&&(a.purposes.forEach(s=>{this.byPurposeVendorMap[String(s)].consent.add(t)}),a.specialPurposes.forEach(s=>{this.bySpecialPurposeVendorMap[String(s)].add(t)}),a.legIntPurposes&&a.legIntPurposes.forEach(s=>{this.byPurposeVendorMap[String(s)].legInt.add(t)}),a.impConsPurposes&&a.impConsPurposes.forEach(s=>{this.byPurposeVendorMap[String(s)].impCons.add(t)}),a.flexiblePurposes&&a.flexiblePurposes.forEach(s=>{this.byPurposeVendorMap[String(s)].flexible.add(t)}),a.features.forEach(s=>{this.byFeatureVendorMap[String(s)].add(t)}),a.specialFeatures.forEach(s=>{this.bySpecialFeatureVendorMap[String(s)].add(t)}),e[t]=a),e},{})}getFilteredVendors(o,e,t,a){let s=o.charAt(0).toUpperCase()+o.slice(1),r,m={};return o==="purpose"&&t?r=this["by"+s+"VendorMap"][String(e)][t]:r=this["by"+(a?"Special":"")+s+"VendorMap"][String(e)],r.forEach(p=>{m[String(p)]=this.vendors[String(p)]}),m}getVendorsWithConsentPurpose(o){return this.getFilteredVendors("purpose",o,"consent")}getVendorsWithLegIntPurpose(o){return this.getFilteredVendors("purpose",o,"legInt")}getVendorsWithFlexiblePurpose(o){return this.getFilteredVendors("purpose",o,"flexible")}getVendorsWithSpecialPurpose(o){return this.getFilteredVendors("purpose",o,void 0,!0)}getVendorsWithFeature(o){return this.getFilteredVendors("feature",o)}getVendorsWithSpecialFeature(o){return this.getFilteredVendors("feature",o,void 0,!0)}narrowVendorsTo(o){this.mapVendors(o)}get isReady(){return this.ready}static isInstanceOf(o){return typeof o=="object"&&typeof o.narrowVendorsTo=="function"}};n(Oo,"DEFAULT_LANGUAGE","EN");var Mo=Oo;var Ut=class{constructor(o,e,t){n(this,"callResponder");n(this,"cmpApiContext");this.cmpApiContext=new Gt,this.cmpApiContext.cmpId=o,this.cmpApiContext.cmpVersion=e,this.callResponder=new Ko(this.cmpApiContext,t)}fireEvent(o,e){this.cmpApiContext.eventQueue.exec(o,e)}fireErrorEvent(o){this.cmpApiContext.eventQueue.exec("error",o)}fireSectionChange(o){this.cmpApiContext.eventQueue.exec("sectionChange",o)}getEventStatus(){return this.cmpApiContext.eventStatus}setEventStatus(o){this.cmpApiContext.eventStatus=o}getCmpStatus(){return this.cmpApiContext.cmpStatus}setCmpStatus(o){this.cmpApiContext.cmpStatus=o,this.cmpApiContext.eventQueue.exec("cmpStatus",o)}getCmpDisplayStatus(){return this.cmpApiContext.cmpDisplayStatus}setCmpDisplayStatus(o){this.cmpApiContext.cmpDisplayStatus=o,this.cmpApiContext.eventQueue.exec("cmpDisplayStatus",o)}getSignalStatus(){return this.cmpApiContext.signalStatus}setSignalStatus(o){this.cmpApiContext.signalStatus=o,this.cmpApiContext.eventQueue.exec("signalStatus",o)}getApplicableSections(){return this.cmpApiContext.applicableSections}setApplicableSections(o){this.cmpApiContext.applicableSections=o}getSupportedAPIs(){return this.cmpApiContext.supportedAPIs}setSupportedAPIs(o){this.cmpApiContext.supportedAPIs=o}setGppString(o){this.cmpApiContext.gppModel.decode(o)}getGppString(){return this.cmpApiContext.gppModel.encode()}setSectionString(o,e){this.cmpApiContext.gppModel.decodeSection(o,e)}setSectionStringById(o,e){this.setSectionString(H.SECTION_ID_NAME_MAP.get(o),e)}getSectionString(o){return this.cmpApiContext.gppModel.encodeSection(o)}getSectionStringById(o){return this.getSectionString(H.SECTION_ID_NAME_MAP.get(o))}setFieldValue(o,e,t){this.cmpApiContext.gppModel.setFieldValue(o,e,t)}setFieldValueBySectionId(o,e,t){this.setFieldValue(H.SECTION_ID_NAME_MAP.get(o),e,t)}getFieldValue(o,e){return this.cmpApiContext.gppModel.getFieldValue(o,e)}getFieldValueBySectionId(o,e){return this.getFieldValue(H.SECTION_ID_NAME_MAP.get(o),e)}getSection(o){return this.cmpApiContext.gppModel.getSection(o)}getSectionById(o){return this.getSection(H.SECTION_ID_NAME_MAP.get(o))}hasSection(o){return this.cmpApiContext.gppModel.hasSection(o)}hasSectionId(o){return this.hasSection(H.SECTION_ID_NAME_MAP.get(o))}deleteSection(o){this.cmpApiContext.gppModel.deleteSection(o)}deleteSectionById(o){this.deleteSection(H.SECTION_ID_NAME_MAP.get(o))}clear(){this.cmpApiContext.gppModel.clear()}getObject(){return this.cmpApiContext.gppModel.toObject()}getGvlFromVendorList(o){return Mo.fromVendorList(o)}getGvlFromUrl(o){return yo(this,null,function*(){return Mo.fromUrl(o)})}};var $a=["SharingNotice","SaleOptOutNotice","ProcessingNotice","SharingOptOutNotice","SensitiveDataLimitUseNotice","TargetedAdvertisingOptOutNotice","SensitiveDataOptOutNotice","SensitiveDataProcessingOptOutNotice","TargetedAdvertisingOptOut","SaleOptOut","SharingOptOut","SensitiveDataProcessing","KnownChildSensitiveDataConsents","PersonalDataConsents","AdditionalDataProcessingConsent","MspaCoveredTransaction","MspaOptOutOptionMode","MspaServiceProviderMode"];function fi(i,o){let e=o.getComputedStyle(i).position;if(e==="absolute"||e==="fixed")return!1;let t=i.getBoundingClientRect();return t.width>0&&t.height>0}function Qa(i,o=document,e=window){let t=()=>{if(i.parentElement!==o.body)return!1;let a=Array.from(o.body.children),s=a.indexOf(i);return a.slice(s+1).some(m=>fi(m,e))?(o.body.appendChild(i),!0):!1};if(typeof e.MutationObserver=="function"){let a=new e.MutationObserver(s=>{if(i.parentElement!==o.body){a.disconnect();return}s.some(m=>Array.from(m.addedNodes).some(p=>p!==i))&&t()});return a.observe(o.body,{childList:!0}),t(),()=>a.disconnect()}return o.readyState==="complete"?(t(),()=>{}):(e.addEventListener("load",t,{once:!0}),()=>e.removeEventListener("load",t))}var xo=".ez-do-not-sell";function wi(i){if(i==null||i==="")return!1;let o=Number(i);return Number.isFinite(o)&&o<=0}function Si(i){return i?i.display==="none"||i.visibility==="hidden"||wi(i.opacity):!1}function bi(i){return!!(i.hidden||typeof i.getAttribute=="function"&&i.getAttribute("aria-hidden")==="true")}function ji(i,o){let e=o.innerWidth;return typeof e!="number"||e<=0?!1:i.right<=0||i.left>=e}function _i(i,o){if(!i||typeof i.matches!="function"||!i.matches(xo))return!1;for(let t=i;t;t=t.parentElement)if(bi(t)||Si(o.getComputedStyle(t)))return!1;if(typeof i.getBoundingClientRect!="function")return!1;let e=i.getBoundingClientRect();return!(e.width<=0||e.height<=0||ji(e,o))}function Kt(i,o){return Array.from(i.querySelectorAll(xo)).some(e=>_i(e,o))}function Ti(i){if(typeof i.removeProperty=="function"){i.removeProperty("display");return}i.display==="none"&&(i.display="")}function Ni(i){if(typeof i.setProperty=="function"){i.setProperty("display","revert");return}i.display="revert"}function Oi(i,o){if(!i.style||typeof o.getComputedStyle!="function")return;let e=o.getComputedStyle(i);if(!e||e.display!=="none")return;Ti(i.style);let t=o.getComputedStyle(i);t&&t.display==="none"&&Ni(i.style)}function Xa(i,o){if(!(!i||typeof i.querySelectorAll!="function"))for(let e of i.querySelectorAll(xo))Oi(e,o)}function Ii(i){return i?typeof i.closest=="function"?i.closest(xo):typeof i.matches=="function"&&i.matches(xo)?i:null:null}function yi(i,o){let e=t=>{Ii(t.target)&&(typeof t.preventDefault=="function"&&t.preventDefault(),o())};return i.addEventListener("click",e),()=>i.removeEventListener("click",e)}function Ja(i,o,{scriptSuppressed:e,openModal:t,showBanner:a}){Xa(i,o);let s=Kt(i,o),r=null;if(!e&&!s&&(r=a()),yi(i,t),!r||typeof r.stop!="function"||!r.element)return;let m=()=>{};m=Ai(i,o,()=>{m(),r.stop(),typeof r.element.remove=="function"&&r.element.remove()}),typeof r.setOnDismiss=="function"&&r.setOnDismiss(m)}function Ai(i,o,e){if(Kt(i,o))return e(),()=>{};if(typeof o.MutationObserver!="function"||!i.body)return()=>{};let t=!1,a=new o.MutationObserver(()=>{t||(Xa(i,o),Kt(i,o)&&(t=!0,a.disconnect(),e()))});return a.observe(i.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["class","style","hidden"]}),()=>{t=!0,a.disconnect()}}function Za(i){let o=i.googletag=i.googletag||{};o.cmd=o.cmd||[],o.cmd.push(()=>{o.pubads().setPrivacySettings({restrictDataProcessing:!0})})}function ei(i,o){if(!o||o==="usca")return!1;try{return i(o,"SaleOptOut")===1&&i(o,"TargetedAdvertisingOptOut")===2}catch(e){return!1}}var xi=si(),Gi=1,fe=new Ut(aa,Gi),ni=document.currentScript,Wt={CA:{id:8,prefix:"usca",name:"California"},CO:{id:10,prefix:"usco",name:"Colorado"},CT:{id:12,prefix:"usct",name:"Connecticut"},VA:{id:9,prefix:"usva",name:"Virginia"},UT:{id:11,prefix:"usut",name:"Utah"},FL:{id:13,prefix:"usfl",name:"Florida"},MT:{id:14,prefix:"usmt",name:"Montana"},OR:{id:15,prefix:"usor",name:"Oregon"},TX:{id:16,prefix:"ustx",name:"Texas"},DE:{id:17,prefix:"usde",name:"Delaware"},IA:{id:18,prefix:"usia",name:"Iowa"},NE:{id:19,prefix:"usne",name:"Nebraska"},NH:{id:20,prefix:"usnh",name:"New Hampshire"},NJ:{id:21,prefix:"usnj",name:"New Jersey"},TN:{id:22,prefix:"ustn",name:"Tennessee"}};function Li(i){let o=new URL(i).hostname;return xi.parse(o).domain}function Bt(i){return Wt[i]||Wt.DEFAULT}function ci(i){try{let e=Bt(i).prefix,t=!1,a=!1,s=!1;try{t=fe.getFieldValue(e,"SaleOptOut")==!0}catch(r){console.log(`Field 'SaleOptOut' not available for ${e}: ${r.message}`)}try{a=fe.getFieldValue(e,"SharingOptOut")==!0}catch(r){console.log(`Field 'SharingOptOut' not available for ${e}: ${r.message}`)}try{s=fe.getFieldValue(e,"TargetedAdvertisingOptOut")==!0}catch(r){console.log(`Field 'TargetedAdvertisingOptOut' not available for ${e}: ${r.message}`)}return console.log(`Checking opt-out status: SaleOptOut=${t}, SharingOptOut=${a}, TargetedAdvertisingOptOut=${s}`),t||a||s}catch(o){return console.error("Failed to check opt-out status:",o),!1}}function mi(i){(ci(i)||(navigator==null?void 0:navigator.globalPrivacyControl)===!0)&&Za(window)}function Ui(i,o,e=365){let t=new Date;t.setTime(t.getTime()+e*24*60*60*1e3);let a="expires="+t.toUTCString();document.cookie=i+"="+o+";"+a+";path=/;SameSite=Lax"}function pi(i){let o=i+"=",e=document.cookie.split(";");for(let t=0;tfe.getFieldValue(a,s),(t=Bt(i))==null?void 0:t.prefix)?Ht(consentOptions.REJECT,i):mi(i)):(console.log("\u2139\uFE0F No stored consent found. Showing consent UI."),Ht(consentOptions.DEFAULT,userState)),fe.setApplicableSections([Bt(i).id]),fe.setSignalStatus("ready"),fe.setCmpStatus("loaded"),fe.setEventStatus("gpploaded");let e=function(){let a=!!(ni&&ni.dataset.ezGppSuppressBanner==="true");Ja(document,window,{scriptSuppressed:a,openModal:()=>$t(i),showBanner:()=>{let s=Hi(i),r=document.getElementById("ez-ccpa-reject-all");return r&&r.addEventListener("click",()=>{$t(i)}),s}})};document.readyState==="loading"?document.addEventListener("DOMContentLoaded",e):e(),window.__gpp("addEventListener",(a,s)=>{s?(console.log("\u2705 GPP Consent Updated:",a),li(a.pingData.gppString)):console.error("\u274C Failed to receive GPP event data.")})}function Hi(i){if(document.querySelector("[data-ezoic-role='privacy-policy']"))return console.log("Privacy policy modal already exists in the document, not adding another one"),null;let e=document.createElement("div");e.style.gridColumn="1 / -1",e.innerHTML=`

Privacy Preferences

We and our partners share information on your use of this website to help improve your experience. For more information, or to opt out click the Do Not Sell My Information button below.

`,document.body.appendChild(e);let t=Qa(e),a={fn:()=>{}};return document.getElementById("ez-ccpa-accept-all").onclick=function(){a.fn(),Ht(consentOptions.CONSENT,i),fe.setEventStatus("useractioncomplete"),t(),e.remove()},{element:e,stop:t,setOnDismiss(s){a.fn=s}}}var ri=!1;function $t(i){let o=document.getElementById("ezgpp-modal");if(o){o.style.display="block",document.getElementById("ezgpp-modal-overlay").style.display="block";return}let e=document.createElement("div"),t=Wt[i].name,a=`
×

Privacy Settings

{{STATE}} residents may opt out of the sale and sharing of their personal information (as those terms are defined by applicable {{STATE}} law). Additional information about these opt-out rights is available in our Privacy Policy, which describes how {{ENTITY_NAME}} ("we," "us," or "our") process your personal information.

As we detail further in our Privacy Policy, we "sell" personal information or "share" personal information for cross-context behavioral advertising purposes to deliver targeted advertising on the Services or other services, or to optimize or measure the performance of such advertisements. Note that if you choose to opt out of the sale or sharing of your personal information, you will be opting out of this personalized advertising.

Opting out of the sale or sharing of your personal information, in the context of advertising, hinders our ability to drive advertising revenue. This revenue allows us to consistently deliver the content that we provide to you.

If you are a {{STATE}} resident and you would like to proceed with opting out of the sale and sharing of your personal information by us to third parties (and as a result, opt out of third-party personalized advertising), please use the following controls:

Do not sell or share my information

Please note that if you have a legally-recognized browser-based opt-out preference signal turned on via your device browser (such as Global Privacy Control), we recognize such preference in accordance and to the extent required by applicable law.

Your preferences will be stored in a browser cookie, and will only be valid for the lifetime of the cookie. You may adjust these settings at any time as necessary. If your browser blocks cookies, your opt-out preference may not be effective. If you delete cookies, you may also be deleting your opt-out preference, so you should visit these pages periodically to review your preferences or to update your choices.

Even if you opt out using the above mechanisms, we may still deliver contextual advertising, use information for non-targeted advertising purposes such as analytics, measurement, and attribution, and conduct cross-device tracking to provide first-party advertisements directly to you. Further, we may also still disclose some of your information to our service providers to provide services on our behalf, such as fraud prevention, providing analytics and aggregate statistics, and similar services that do not involve the sale or sharing of your personal information.

These rights only apply to {{STATE}} residents, and if we reasonably believe that you are not a {{STATE}} resident, you may not exercise these rights.

`.replace(/{{STATE}}/g,t),s=Li(window.location.href);a=a.replace(/{{ENTITY_NAME}}/g,s),e.innerHTML=a;let r=document.createElement("style");r.innerHTML=`.ezgpp-modal { display: none; /* Hidden by default */ position: fixed; z-index: 1000; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 80vw; /* 80% of viewport width */ max-width: 800px; /* Limits width on larger screens */ height: auto; /* Adapts to content */ max-height: 60vh; /* Prevents the modal from exceeding 60% of screen height */ overflow-y: auto; /* Enables scrolling if content is taller than 60vh */ background-color: white; padding: 30px; border-radius: 15px; box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.3); display: flex; flex-direction: column; justify-content: center; } /* Modal Background Overlay */ .ezgpp-modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.5); z-index: 999; } .ezgpp-modal-content { background: white; padding: 20px; border-radius: 15px; width: 100%; /* Ensures content adapts to modal size */ text-align: center; box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.15); color: #333333; } /* Close button */ .ezgpp-close { position: absolute; top: 15px; right: 20px; font-size: 28px; cursor: pointer; } /* NEW: Distinct container for settings section */ .ezgpp-setting { padding: 15px; border: 1px solid #ddd; border-radius: 10px; background-color: #f9f9f9; margin-bottom: 15px; } /* Spacing for better readability */ .ezgpp-slider-container { display: flex; align-items: center; justify-content: space-between; margin: 15px 0; } /* CHANGED: Make label more prominent */ .ezgpp-slider-label { flex-grow: 1; text-align: left; font-size: 16px; font-weight: bold; } /* Toggle switches adjust to screen size */ .ezgpp-slider-toggle { width: 50px; height: 25px; position: relative; } .ezgpp-slider-toggle input { display: none; } .ezgpp-slider-toggle label { display: block; width: 50px; height: 25px; background: gray; border-radius: 25px; position: relative; cursor: pointer; } .ezgpp-slider-toggle label:after { content: ""; width: 20px; height: 20px; background: white; border-radius: 50%; position: absolute; top: 2.5px; left: 2.5px; transition: 0.3s; } .ezgpp-slider-toggle input:checked + label { background: green; } .ezgpp-slider-toggle input:checked + label:after { left: 27px; } /* NEW: Description styling for clarity */ .ezgpp-description { font-size: 14px; color: #555; margin-top: 8px; } /* \u{1F4F1} Mobile Optimization */ @media (max-width: 600px) { .ezgpp-modal { width: 90vw; /* Increase width for better mobile fit */ max-width: 95%; /* Prevents going off screen */ padding: 20px; } .ezgpp-close { top: 10px; right: 15px; font-size: 24px; } .ezgpp-slider-label { font-size: 14px; /* Smaller font for mobile */ font-weight: bold; /* keep it bold on mobile too */ } .ezgpp-slider-toggle { width: 40px; height: 20px; } .ezgpp-slider-toggle label { width: 40px; height: 20px; } .ezgpp-slider-toggle label:after { width: 16px; height: 16px; top: 2px; left: 2px; } .ezgpp-slider-toggle input:checked + label:after { left: 22px; } } .ezgpp-save-button { display: block; width: 100%; padding: 12px; margin-top: 20px; background-color: #007BFF; color: white; font-size: 16px; font-weight: bold; text-align: center; border: none; border-radius: 8px; cursor: pointer; transition: background 0.3s ease; } .ezgpp-save-button:hover { background-color: #0056b3; } /* CUSTOM SCROLLBAR STYLING */ /* For WebKit browsers (Chrome, Edge, Safari) */ .ezgpp-modal::-webkit-scrollbar { width: 8px; } .ezgpp-modal::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 10px; } .ezgpp-modal::-webkit-scrollbar-thumb { background: #888; border-radius: 10px; } .ezgpp-modal::-webkit-scrollbar-thumb:hover { background: #555; } /* For Firefox */ .ezgpp-modal { scrollbar-width: thin; scrollbar-color: #888 #f1f1f1; } `,document.body.appendChild(e),document.body.appendChild(r),document.getElementById("ezgpp-modal").style.display="block",document.getElementById("ezgpp-modal-overlay").style.display="block",setTimeout(()=>{let Y=document.getElementById("ezgpp-toggle1");if(Y){let _e=ci(i);console.log(`Setting initial toggle state: ${_e}`),Y.checked=_e}else console.error("Toggle element not found in DOM")},50);let m=document.getElementById("ezgpp-modal"),p=document.getElementById("ezgpp-modal-overlay"),q=document.getElementById("ezgpp-close-modal");document.querySelector(".ezgpp-modal-content").addEventListener("click",function(Y){Y.stopPropagation()}),q.addEventListener("click",()=>{m.style.display="none",p.style.display="none"}),p.addEventListener("click",()=>{m.style.display="none",p.style.display="none"}),document.addEventListener("keydown",Y=>{Y.key==="Escape"&&(m.style.display="none",p.style.display="none")}),ri||(ri=!0,document.getElementById("ezgpp-save-settings").addEventListener("click",()=>{let Y=document.getElementById("ezgpp-toggle1");if(!Y){console.error("Toggle element not found on save");return}let _e=Y.checked;console.log(`Save button clicked. Toggle state: ${_e}`);let Pe;_e?(Pe=consentOptions.REJECT,console.log("\u2705 User opted out of selling/sharing information")):(Pe=consentOptions.CONSENT,console.log("\u2705 User consented to selling/sharing information")),Ht(Pe,i),fe.setEventStatus("useractioncomplete"),m.style.display="none",p.style.display="none";let Ee=document.createElement("div");Ee.style.position="fixed",Ee.style.bottom="20px",Ee.style.left="50%",Ee.style.transform="translateX(-50%)",Ee.style.padding="10px 20px",Ee.style.backgroundColor="#4CAF50",Ee.style.color="white",Ee.style.borderRadius="4px",Ee.style.zIndex="1000",Ee.textContent="Your privacy settings have been saved.",document.body.appendChild(Ee),setTimeout(()=>{Ee.remove()},3e3)}))}window.ezGPPEnabled=!0;window.ezGPPOpenModal=function(){$t(userState)};Bi(userState);})();