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,0,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,0,0],"MspaCoveredTransaction":2,"MspaOptOutOptionMode":0,"MspaServiceProviderMode":0},"REJECT":{"SharingNotice":1,"SaleOptOutNotice":1,"TargetedAdvertisingOptOutNotice":1,"SaleOptOut":1,"TargetedAdvertisingOptOut":2,"SensitiveDataProcessing":[0,0,0,0,0,0,0,0],"KnownChildSensitiveDataConsents":[0,0,0],"MspaCoveredTransaction":2,"MspaOptOutOptionMode":0,"MspaServiceProviderMode":0}}');(()=>{var ai=Object.defineProperty;var ti=(i,o,e)=>o in i?ai(i,o,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[o]=e;var ii=(i,o)=>()=>(o||i((o={exports:{}}).exports,o),o.exports);var n=(i,o,e)=>ti(i,typeof o!="symbol"?o+"":o,e);var yo=(i,o,e)=>new Promise((a,t)=>{var s=p=>{try{l(e.next(p))}catch(G){t(G)}},r=p=>{try{l(e.throw(p))}catch(G){t(G)}},l=p=>p.done?a(p.value):Promise.resolve(p.value).then(s,r);l((e=e.apply(i,o)).next())});var $t=ii(wo=>{"use strict";Object.defineProperties(wo,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});function si(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var Ba,Kt;function ni(){if(Kt)return Ba;Kt=1;let i=2147483647,o=36,e=1,a=26,t=38,s=700,r=72,l=128,p="-",G=/^xn--/,_e=/[^\0-\x7F]/,ke=/[\x2E\u3002\uFF0E\uFF61]/g,Ne={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Ue=o-e,W=Math.floor,Fa=String.fromCharCode;function Fe(f){throw new RangeError(Ne[f])}function Zt(f,x){let Q=[],L=f.length;for(;L--;)Q[L]=x(f[L]);return Q}function qa(f,x){let Q=f.split("@"),L="";Q.length>1&&(L=Q[0]+"@",f=Q[1]),f=f.replace(ke,".");let X=f.split("."),we=Zt(X,x).join(".");return L+we}function Ya(f){let x=[],Q=0,L=f.length;for(;Q=55296&&X<=56319&&QString.fromCodePoint(...f),oi=function(f){return f>=48&&f<58?26+(f-48):f>=65&&f<91?f-65:f>=97&&f<123?f-97:o},Wa=function(f,x){return f+22+75*(f<26)-((x!=0)<<5)},$a=function(f,x,Q){let L=0;for(f=Q?W(f/s):f>>1,f+=W(f/x);f>Ue*a>>1;L+=o)f=W(f/Ue);return W(L+(Ue+1)*f/(f+t))},Qa=function(f){let x=[],Q=f.length,L=0,X=l,we=r,xe=f.lastIndexOf(p);xe<0&&(xe=0);for(let Te=0;Te=128&&Fe("not-basic"),x.push(f.charCodeAt(Te));for(let Te=xe>0?xe+1:0;Te=Q&&Fe("invalid-input");let Le=oi(f.charCodeAt(Te++));Le>=o&&Fe("invalid-input"),Le>W((i-L)/ze)&&Fe("overflow"),L+=Le*ze;let go=Ge<=we?e:Ge>=we+a?a:Ge-we;if(LeW(i/Io)&&Fe("overflow"),ze*=Io}let Be=x.length+1;we=$a(L-ve,Be,ve==0),W(L/Be)>i-X&&Fe("overflow"),X+=W(L/Be),L%=Be,x.splice(L++,0,X)}return String.fromCodePoint(...x)},Xa=function(f){let x=[];f=Ya(f);let Q=f.length,L=l,X=0,we=r;for(let ve of f)ve<128&&x.push(Fa(ve));let xe=x.length,Te=xe;for(xe&&x.push(p);Te=L&&zeW((i-X)/Be)&&Fe("overflow"),X+=(ve-L)*Be,L=ve;for(let ze of f)if(zei&&Fe("overflow"),ze===L){let Ge=X;for(let Le=o;;Le+=o){let go=Le<=we?e:Le>=we+a?a:Le-we;if(Ge{let e=o.replace(/^(\*\.|\!)/,""),a=xo.toASCII(e),t=o.charAt(0);if(i.has(a))throw new Error(`Multiple rules found for ${o} (${a})`);return i.set(a,{rule:o,suffix:e,punySuffix:a,wildcard:t==="*",exception:t==="!"}),i},new Map),pi=i=>{let o=xo.toASCII(i).split(".");for(let e=0;e{let o=xo.toASCII(i);if(o.length<1)return"DOMAIN_TOO_SHORT";if(o.length>255)return"DOMAIN_TOO_LONG";let e=o.split("."),a;for(let t=0;t63)return"LABEL_TOO_LONG";if(a.charAt(0)==="-")return"LABEL_STARTS_WITH_DASH";if(a.charAt(a.length-1)==="-")return"LABEL_ENDS_WITH_DASH";if(!/^[a-z0-9\-_]+$/.test(a))return"LABEL_INVALID_CHARS"}},Ua=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=li(o);if(e)return{input:i,error:{message:qt[e],code:e}};let a={input:i,tld:null,sld:null,domain:null,subdomain:null,listed:!1},t=o.split(".");if(t[t.length-1]==="local")return a;let s=()=>(/xn--/.test(o)&&(a.domain&&(a.domain=xo.toASCII(a.domain)),a.subdomain&&(a.subdomain=xo.toASCII(a.subdomain))),a),r=pi(o);if(!r)return t.length<2?a:(a.tld=t.pop(),a.sld=t.pop(),a.domain=[a.sld,a.tld].join("."),t.length&&(a.subdomain=t.pop()),s());a.listed=!0;let l=r.suffix.split("."),p=t.slice(0,t.length-l.length);return r.exception&&p.push(l.shift()),a.tld=l.join("."),!p.length||(r.wildcard&&(l.unshift(p.pop()),a.tld=l.join(".")),!p.length)||(a.sld=p.pop(),a.domain=[a.sld,a.tld].join("."),p.length&&(a.subdomain=p.join("."))),s()},Yt=i=>i&&Ua(i).domain||null,Wt=i=>{let o=Ua(i);return!!(o.domain&&o.listed)},ui={parse:Ua,get:Yt,isValid:Wt};wo.default=ui;wo.errorCodes=qt;wo.get=Yt;wo.isValid=Wt;wo.parse=Ua});var Za=299;var He=class{constructor(o,e,a,t){n(this,"eventName");n(this,"listenerId");n(this,"data");n(this,"pingData");this.eventName=o,this.listenerId=e,this.data=a,this.pingData=t}};var Ve=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,a){n(this,"callback");n(this,"parameter");n(this,"success",!0);n(this,"cmpApiContext");this.cmpApiContext=o,Object.assign(this,{callback:e,parameter:a})}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 Go=class extends Se{respond(){let o=this.cmpApiContext.eventQueue.add({callback:this.callback,parameter:this.parameter}),e=new He("listenerRegistered",o,!0,new Ve(this.cmpApiContext));this.invokeCallback(e)}};var Lo=class extends Se{respond(){let o=new Ve(this.cmpApiContext);this.invokeCallback(o)}};var Uo=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],a=o[1],t=this.cmpApiContext.gppModel.getFieldValue(e,a);this.invokeCallback(t)}};var Fo=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 Bo=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 Oe;(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"})(Oe||(Oe={}));var Ho=class extends Se{respond(){let o=this.parameter,e=this.cmpApiContext.eventQueue.remove(o),a=new He("listenerRemoved",o,e,new Ve(this.cmpApiContext));this.invokeCallback(a)}};var et,ot,at,tt,it,st;st=Oe.ADD_EVENT_LISTENER,it=Oe.GET_FIELD,tt=Oe.GET_SECTION,at=Oe.HAS_SECTION,ot=Oe.PING,et=Oe.REMOVE_EVENT_LISTENER;var De=class{};n(De,st,Go),n(De,it,Uo),n(De,tt,Fo),n(De,at,Bo),n(De,ot,Lo),n(De,et,Ho);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 nt;(function(i){i.GPP_LOADED="gpploaded",i.CMP_UI_SHOWN="cmpuishown",i.USER_ACTION_COMPLETE="useractioncomplete"})(nt||(nt={}));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 a=Oe.ADD_EVENT_LISTENER;if(e!=null&&e[a])throw new Error(`Built-In Custom Commmand for ${a} not allowed`);if(a=Oe.REMOVE_EVENT_LISTENER,e!=null&&e[a])throw new Error(`Built-In Custom Commmand for ${a} not allowed`);this.customCommands=e}try{this.callQueue=window.__gpp()||[]}catch(a){this.callQueue=[]}finally{window.__gpp=this.apiCall.bind(this),this.purgeQueuedCalls()}}apiCall(o,e,a,t){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,a):this.isBuiltInCommand(o)?new De[o](this.cmpApiContext,e,a).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 De[o]!==void 0}};var qo=class{constructor(o){n(this,"eventQueue",new Map);n(this,"queueNumber",1e3);n(this,"cmpApiContext");this.cmpApiContext=o;try{let a=window.__gpp("events")||[];for(var e=0;e{let s=new He(o,t,e,new Ve(this.cmpApiContext));a.callback(s,!0)})}clear(){this.queueNumber=1e3,this.eventQueue.clear()}get size(){return this.eventQueue.size}};var Re=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(a.push(1);o>=a[0]*2;)a.unshift(a[0]*2);let t="";for(let s=0;s=r?(t+="1",o-=r):t+="0"}if(t.length>e)throw new T("Numeric value '"+o+"' is too large for a bit string length of '"+e+"'");for(;t.length0;)o+="0";for(;o.length%6>0;)o+="0";return o}};n(Yo,"instance",new Yo);var E=Yo;var Wo=class Wo{constructor(){}static getInstance(){return this.instance}encode(o,e){let a="";for(let t=0;t=1&&(e.push(1),o>=2)){e.push(2);let t=2;for(;o>=e[t-1]+e[t-2];)e.push(e[t-1]+e[t-2]),t++}let a="1";for(let t=e.length-1;t>=0;t--){let s=e[t];o>=s?(a="1"+a,o-=s):a="0"+a}return a}static decode(o){if(!/^[0-1]*$/.test(o)||o.length<2||o.indexOf("11")!==o.length-2)throw new m("Undecodable FibonacciInteger '"+o+"'");let e=0,a=[];for(let t=0;tr-l);let e=[],a=0,t=0;for(;to.length||e<0||e>a)throw new U("Invalid substring indexes "+e+":"+a+" for string of length "+o.length);return o.substring(e,a)}};var Do=class extends H{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 m(e)}}substring(o,e){try{let a=w.decode(V.substring(o,e,e+12)),t=e+12;for(let s=0;se-a))}};var c=class extends H{constructor(e,a,t=!0){super(t);n(this,"bitStringLength");this.bitStringLength=e,this.setValue(a)}encode(){try{return w.encode(this.value,this.bitStringLength)}catch(e){throw new T(e)}}decode(e){try{this.value=w.decode(e)}catch(a){throw new m(a)}}substring(e,a){try{return V.substring(e,a,a+this.bitStringLength)}catch(t){throw new U(t)}}};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,a)=>{this.fields.set(a,e)})}};var Pe;(function(i){i.ID="Id",i.VERSION="Version",i.SECTION_IDS="SectionIds"})(Pe||(Pe={}));var rt=[Pe.ID,Pe.VERSION,Pe.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 Re("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 Re(o+" not found")}toObj(){let o={},e=this.getFieldNames();for(let a=0;a0&&this.decode(o)}getId(){return Ke.ID}getName(){return Ke.NAME}getVersion(){return Ke.VERSION}initializeSegments(){let o=[];return o.push(new Qo),o}decodeSection(o){let e=this.initializeSegments();if(o!=null&&o.length!==0){let a=o.split(".");for(let t=0;tt&&e[t].decode(a[t])}return e}encodeSection(o){let e=[];for(let a=0;a0;)o+="0";return o}};n(Xo,"instance",new Xo);var ye=Xo;var Ae=class{static encode(o){o.sort((s,r)=>s-r);let e=[],a=0;for(;ae-a))}};var Jo=class{constructor(o,e,a){n(this,"key");n(this,"type");n(this,"ids");this.key=o,this.type=e,this.ids=a}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 H{constructor(e,a,t,s=!0){super(s);n(this,"keyBitStringLength");n(this,"typeBitStringLength");this.keyBitStringLength=e,this.typeBitStringLength=a,this.setValue(t)}encode(){try{let e=this.value,a="";a+=w.encode(e.length,12);for(let t=0;te)throw new T("Too many values '"+o.length+"'");let a="";for(let t=0;tthis.numElements&&(a=a.slice(0,this.numElements)),super.setValue(a)}};var Co=class{static encode(o,e){for(;o.length=65)a+=w.encode(o.charCodeAt(t)-65,6);else throw new T("Unencodable FixedString '"+o+"'")}return a}static decode(o){if(!/^[0-1]*$/.test(o)||o.length%6!==0)throw new m("Undecodable FixedString '"+o+"'");let e="";for(let a=0;a0?this.value[this.value.length-1]:0,e=Ae.encode(this.value),a=e.length,t=o;if(a<=t)return w.encode(o,16)+"1"+e;{let s=[],r=0;for(let l=0;le-a))}};var Zo=class extends u{constructor(e){super();n(this,"base64UrlEncoder",ye.getInstance());n(this,"bitStringEncoder",d.getInstance());e&&this.decode(e)}getFieldNames(){return ct}initializeFields(){let e=new Date,a=new g;return a.put(h.VERSION.toString(),new c(6,$.VERSION)),a.put(h.CREATED.toString(),new qe(e)),a.put(h.LAST_UPDATED.toString(),new qe(e)),a.put(h.CMP_ID.toString(),new c(12,0)),a.put(h.CMP_VERSION.toString(),new c(12,0)),a.put(h.CONSENT_SCREEN.toString(),new c(6,0)),a.put(h.CONSENT_LANGUAGE.toString(),new ko(2,"EN")),a.put(h.VENDOR_LIST_VERSION.toString(),new c(12,0)),a.put(h.POLICY_VERSION.toString(),new c(6,2)),a.put(h.IS_SERVICE_SPECIFIC.toString(),new S(!1)),a.put(h.USE_NON_STANDARD_STACKS.toString(),new S(!1)),a.put(h.SPECIAL_FEATURE_OPTINS.toString(),new fe([!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1])),a.put(h.PURPOSE_CONSENTS.toString(),new fe([!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1])),a.put(h.PURPOSE_LEGITIMATE_INTERESTS.toString(),new fe([!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1])),a.put(h.PURPOSE_ONE_TREATMENT.toString(),new S(!1)),a.put(h.PUBLISHER_COUNTRY_CODE.toString(),new ko(2,"AA")),a.put(h.VENDOR_CONSENTS.toString(),new je([])),a.put(h.VENDOR_LEGITIMATE_INTERESTS.toString(),new je([])),a.put(h.PUBLISHER_RESTRICTIONS.toString(),new jo(6,2,[],!1)),a}encodeSegment(e){let a=this.bitStringEncoder.encode(e,this.getFieldNames());return this.base64UrlEncoder.encode(a)}decodeSegment(e,a){(e==null||e.length===0)&&this.fields.reset(a);try{let t=this.base64UrlEncoder.decode(e);this.bitStringEncoder.decode(t,this.getFieldNames(),a)}catch(t){throw new m("Unable to decode TcfEuV2CoreSegment '"+e+"'")}}};var Ye=class extends H{constructor(e,a,t=!0){super(t);n(this,"getLength");this.getLength=e,this.setValue(a)}encode(){try{return be.encode(this.value,this.getLength())}catch(e){throw new T(e)}}decode(e){try{this.value=be.decode(e)}catch(a){throw new m(a)}}substring(e,a){try{return V.substring(e,a,a+this.getLength())}catch(t){throw new U(t)}}getValue(){return[...super.getValue()]}setValue(e){let a=this.getLength(),t=[...e];for(let s=t.length;sa&&(t=t.slice(0,a)),super.setValue([...t])}};var ea=class extends u{constructor(e){super();n(this,"base64UrlEncoder",ye.getInstance());n(this,"bitStringEncoder",d.getInstance());e&&this.decode(e)}getFieldNames(){return mt}initializeFields(){let e=new g;e.put(h.PUBLISHER_PURPOSES_SEGMENT_TYPE.toString(),new c(3,3)),e.put(h.PUBLISHER_CONSENTS.toString(),new fe([!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 fe([!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 a=new c(6,0);return e.put(h.NUM_CUSTOM_PURPOSES.toString(),a),e.put(h.PUBLISHER_CUSTOM_CONSENTS.toString(),new Ye(()=>a.getValue(),[])),e.put(h.PUBLISHER_CUSTOM_LEGITIMATE_INTERESTS.toString(),new Ye(()=>a.getValue(),[])),e}encodeSegment(e){let a=this.bitStringEncoder.encode(e,this.getFieldNames());return this.base64UrlEncoder.encode(a)}decodeSegment(e,a){(e==null||e.length===0)&&this.fields.reset(a);try{let t=this.base64UrlEncoder.decode(e);this.bitStringEncoder.decode(t,this.getFieldNames(),a)}catch(t){throw new m("Unable to decode TcfEuV2PublisherPurposesSegment '"+e+"'")}}};var oa=class extends u{constructor(e){super();n(this,"base64UrlEncoder",ye.getInstance());n(this,"bitStringEncoder",d.getInstance());e&&this.decode(e)}getFieldNames(){return pt}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 a=this.bitStringEncoder.encode(e,this.getFieldNames());return this.base64UrlEncoder.encode(a)}decodeSegment(e,a){(e==null||e.length===0)&&this.fields.reset(a);try{let t=this.base64UrlEncoder.decode(e);this.bitStringEncoder.decode(t,this.getFieldNames(),a)}catch(t){throw new m("Unable to decode TcfEuV2VendorsAllowedSegment '"+e+"'")}}};var aa=class extends u{constructor(e){super();n(this,"base64UrlEncoder",ye.getInstance());n(this,"bitStringEncoder",d.getInstance());e&&this.decode(e)}getFieldNames(){return lt}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 a=this.bitStringEncoder.encode(e,this.getFieldNames());return this.base64UrlEncoder.encode(a)}decodeSegment(e,a){(e==null||e.length===0)&&this.fields.reset(a);try{let t=this.base64UrlEncoder.decode(e);this.bitStringEncoder.decode(t,this.getFieldNames(),a)}catch(t){throw new m("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 Zo),o.push(new ea),o.push(new oa),o.push(new aa),o}decodeSection(o){let e=this.initializeSegments();if(o!=null&&o.length!==0){let a=o.split(".");for(let t=0;t="A"&&r<="H")e[0].decode(a[t]);else if(r>="I"&&r<="P")e[3].decode(a[t]);else if(r>="Q"&&r<="X")e[2].decode(a[t]);else if(r>="Y"&&r<="Z"||r>="a"&&r<="f")e[1].decode(a[t]);else throw new m("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 a=new Date;super.setFieldValue(h.CREATED,a),super.setFieldValue(h.LAST_UPDATED,a)}}};n(We,"ID",2),n(We,"VERSION",2),n(We,"NAME","tcfeuv2");var $=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 ut=[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],dt=[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],gt=[k.DISCLOSED_VENDORS_SEGMENT_TYPE,k.DISCLOSED_VENDORS];var ta=class extends u{constructor(e){super();n(this,"base64UrlEncoder",E.getInstance());n(this,"bitStringEncoder",d.getInstance());e&&this.decode(e)}getFieldNames(){return ut}initializeFields(){let e=new Date,a=new g;return a.put(k.VERSION.toString(),new c(6,Z.VERSION)),a.put(k.CREATED.toString(),new qe(e)),a.put(k.LAST_UPDATED.toString(),new qe(e)),a.put(k.CMP_ID.toString(),new c(12,0)),a.put(k.CMP_VERSION.toString(),new c(12,0)),a.put(k.CONSENT_SCREEN.toString(),new c(6,0)),a.put(k.CONSENT_LANGUAGE.toString(),new ko(2,"EN")),a.put(k.VENDOR_LIST_VERSION.toString(),new c(12,0)),a.put(k.TCF_POLICY_VERSION.toString(),new c(6,2)),a.put(k.USE_NON_STANDARD_STACKS.toString(),new S(!1)),a.put(k.SPECIAL_FEATURE_EXPRESS_CONSENT.toString(),new fe([!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1])),a.put(k.PURPOSES_EXPRESS_CONSENT.toString(),new fe([!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1])),a.put(k.PURPOSES_IMPLIED_CONSENT.toString(),new fe([!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1])),a.put(k.VENDOR_EXPRESS_CONSENT.toString(),new je([])),a.put(k.VENDOR_IMPLIED_CONSENT.toString(),new je([])),a.put(k.PUB_RESTRICTIONS.toString(),new jo(6,2,[],!1)),a}encodeSegment(e){let a=this.bitStringEncoder.encode(e,this.getFieldNames());return this.base64UrlEncoder.encode(a)}decodeSegment(e,a){(e==null||e.length===0)&&this.fields.reset(a);try{let t=this.base64UrlEncoder.decode(e);this.bitStringEncoder.decode(t,this.getFieldNames(),a)}catch(t){throw new m("Unable to decode TcfCaV1CoreSegment '"+e+"'")}}};var ia=class extends u{constructor(e){super();n(this,"base64UrlEncoder",E.getInstance());n(this,"bitStringEncoder",d.getInstance());e&&this.decode(e)}getFieldNames(){return dt}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 fe([!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 fe([!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 a=new c(6,0);return e.put(k.NUM_CUSTOM_PURPOSES.toString(),a),e.put(k.CUSTOM_PURPOSES_EXPRESS_CONSENT.toString(),new Ye(()=>a.getValue(),[])),e.put(k.CUSTOM_PURPOSES_IMPLIED_CONSENT.toString(),new Ye(()=>a.getValue(),[])),e}encodeSegment(e){let a=this.bitStringEncoder.encode(e,this.getFieldNames());return this.base64UrlEncoder.encode(a)}decodeSegment(e,a){(e==null||e.length===0)&&this.fields.reset(a);try{let t=this.base64UrlEncoder.decode(e);this.bitStringEncoder.decode(t,this.getFieldNames(),a)}catch(t){throw new m("Unable to decode TcfCaV1PublisherPurposesSegment '"+e+"'")}}};var sa=class extends u{constructor(e){super();n(this,"base64UrlEncoder",ye.getInstance());n(this,"bitStringEncoder",d.getInstance());e&&this.decode(e)}getFieldNames(){return gt}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 a=this.bitStringEncoder.encode(e,this.getFieldNames());return this.base64UrlEncoder.encode(a)}decodeSegment(e,a){(e==null||e.length===0)&&this.fields.reset(a);try{let t=this.base64UrlEncoder.decode(e);this.bitStringEncoder.decode(t,this.getFieldNames(),a)}catch(t){throw new m("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 ta),o.push(new ia),o.push(new sa),o}decodeSection(o){let e=this.initializeSegments();if(o!=null&&o.length!==0){let a=o.split(".");for(let t=0;t="A"&&r<="H")e[0].decode(a[t]);else if(r>="I"&&r<="P")e[2].decode(a[t]);else if(r>="Y"&&r<="Z"||r>="a"&&r<="f")e[1].decode(a[t]);else throw new m("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 a=new Date;super.setFieldValue(k.CREATED,a),super.setFieldValue(k.LAST_UPDATED,a)}}};n($e,"ID",5),n($e,"VERSION",1),n($e,"NAME","tcfcav1");var Z=$e;var _o=class{constructor(o,e){n(this,"validator");n(this,"value",null);e?this.validator=e:this.validator=new class{test(a){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 na=class{constructor(o,e){n(this,"validator");n(this,"value",null);e?this.validator=e:this.validator=new class{test(a){return!0}},this.setValue(o)}hasValue(){return this.value!=null}getValue(){return this.value}setValue(o){this.value=o}};var ra=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,a)=>{this.fields.set(a,e)})}};var J;(function(i){i.VERSION="Version",i.NOTICE="Notice",i.OPT_OUT_SALE="OptOutSale",i.LSPA_COVERED="LspaCovered"})(J||(J={}));var ht=[J.VERSION,J.NOTICE,J.OPT_OUT_SALE,J.LSPA_COVERED];var ca=class extends u{constructor(o){super(),o&&this.decode(o)}getFieldNames(){return ht}initializeFields(){let o=new class{test(a){return a==="-"||a==="Y"||a==="N"}},e=new ra;return e.put(J.VERSION,new na(ee.VERSION)),e.put(J.NOTICE,new _o("-",o)),e.put(J.OPT_OUT_SALE,new _o("-",o)),e.put(J.LSPA_COVERED,new _o("-",o)),e}encodeSegment(o){let e="";return e+=o.get(J.VERSION).getValue(),e+=o.get(J.NOTICE).getValue(),e+=o.get(J.OPT_OUT_SALE).getValue(),e+=o.get(J.LSPA_COVERED).getValue(),e}decodeSegment(o,e){if(o==null||o.length!=4)throw new m("Unable to decode UspV1CoreSegment '"+o+"'");try{e.get(J.VERSION).setValue(parseInt(o.substring(0,1))),e.get(J.NOTICE).setValue(o.charAt(1)),e.get(J.OPT_OUT_SALE).setValue(o.charAt(2)),e.get(J.LSPA_COVERED).setValue(o.charAt(3))}catch(a){throw new m("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 ca),o}decodeSection(o){let e=this.initializeSegments();if(o!=null&&o.length!==0){let a=o.split(".");for(let t=0;tt&&e[t].decode(a[t])}return e}encodeSection(o){let e=[];for(let a=0;aa)throw new T("Too many values '"+o.length+"'");let t="";for(let s=0;se*a)throw new m("Undecodable FixedIntegerList '"+o+"'");if(o.length%e!=0)throw new m("Undecodable FixedIntegerList '"+o+"'");for(;o.lengthe*a&&(o=o.substring(0,e*a));let t=[];for(let s=0;sthis.numElements&&(a=a.slice(0,this.numElements)),super.setValue(a)}};var ma=class extends u{constructor(e){super();n(this,"base64UrlEncoder",E.getInstance());n(this,"bitStringEncoder",d.getInstance());e&&this.decode(e)}getFieldNames(){return Et}initializeFields(){let e=new class{test(r){return r>=0&&r<=2}},a=new class{test(r){return r>=1&&r<=2}},t=new class{test(r){for(let l=0;l2)return!1}return!0}},s=new g;return s.put(b.VERSION.toString(),new c(6,oe.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(t)),s.put(b.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS.toString(),new j(2,[0,0,0]).withValidator(t)),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(a)),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 a=this.bitStringEncoder.encode(e,this.getFieldNames());return this.base64UrlEncoder.encode(a)}decodeSegment(e,a){(e==null||e.length===0)&&this.fields.reset(a);try{let t=this.base64UrlEncoder.decode(e);t.length==66&&(t=t.substring(0,48)+"00000000"+t.substring(48,52)+"00"+t.substring(52,62)),this.bitStringEncoder.decode(t,this.getFieldNames(),a)}catch(t){throw new m("Unable to decode UsNatCoreSegment '"+e+"'")}}};var pa=class extends u{constructor(e){super();n(this,"base64UrlEncoder",E.getInstance());n(this,"bitStringEncoder",d.getInstance());e&&this.decode(e)}getFieldNames(){return kt}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 a=this.bitStringEncoder.encode(e,this.getFieldNames());return this.base64UrlEncoder.encode(a)}decodeSegment(e,a){(e==null||e.length===0)&&this.fields.reset(a);try{let t=this.base64UrlEncoder.decode(e);this.bitStringEncoder.decode(t,this.getFieldNames(),a)}catch(t){throw new m("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 ma),o.push(new pa),o}decodeSection(o){let e=this.initializeSegments();if(o!=null&&o.length!==0){let a=o.split(".");a.length>0&&e[0].decode(a[0]),a.length>1?(e[1].setFieldValue(b.GPC_SEGMENT_INCLUDED,!0),e[1].decode(a[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 oe=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 ft=[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],wt=[N.GPC_SEGMENT_TYPE,N.GPC];var la=class extends u{constructor(e){super();n(this,"base64UrlEncoder",E.getInstance());n(this,"bitStringEncoder",d.getInstance());e&&this.decode(e)}getFieldNames(){return ft}initializeFields(){let e=new class{test(r){return r>=0&&r<=2}},a=new class{test(r){return r>=1&&r<=2}},t=new class{test(r){for(let l=0;l2)return!1}return!0}},s=new g;return s.put(N.VERSION.toString(),new c(6,ae.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(t)),s.put(N.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS.toString(),new j(2,[0,0]).withValidator(t)),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(a)),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 a=this.bitStringEncoder.encode(e,this.getFieldNames());return this.base64UrlEncoder.encode(a)}decodeSegment(e,a){(e==null||e.length===0)&&this.fields.reset(a);try{let t=this.base64UrlEncoder.decode(e);this.bitStringEncoder.decode(t,this.getFieldNames(),a)}catch(t){throw new m("Unable to decode UsCaCoreSegment '"+e+"'")}}};var ua=class extends u{constructor(e){super();n(this,"base64UrlEncoder",E.getInstance());n(this,"bitStringEncoder",d.getInstance());e&&this.decode(e)}getFieldNames(){return wt}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 a=this.bitStringEncoder.encode(e,this.getFieldNames());return this.base64UrlEncoder.encode(a)}decodeSegment(e,a){(e==null||e.length===0)&&this.fields.reset(a);try{let t=this.base64UrlEncoder.decode(e);this.bitStringEncoder.decode(t,this.getFieldNames(),a)}catch(t){throw new m("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 la),o.push(new ua),o}decodeSection(o){let e=this.initializeSegments();if(o!=null&&o.length!==0){let a=o.split(".");a.length>0&&e[0].decode(a[0]),a.length>1?(e[1].setFieldValue(N.GPC_SEGMENT_INCLUDED,!0),e[1].decode(a[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 ae=Je;var q;(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"})(q||(q={}));var St=[q.VERSION,q.SHARING_NOTICE,q.SALE_OPT_OUT_NOTICE,q.TARGETED_ADVERTISING_OPT_OUT_NOTICE,q.SALE_OPT_OUT,q.TARGETED_ADVERTISING_OPT_OUT,q.SENSITIVE_DATA_PROCESSING,q.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS,q.MSPA_COVERED_TRANSACTION,q.MSPA_OPT_OUT_OPTION_MODE,q.MSPA_SERVICE_PROVIDER_MODE];var da=class extends u{constructor(e){super();n(this,"base64UrlEncoder",E.getInstance());n(this,"bitStringEncoder",d.getInstance());e&&this.decode(e)}getFieldNames(){return St}initializeFields(){let e=new class{test(r){return r>=0&&r<=2}},a=new class{test(r){return r>=1&&r<=2}},t=new class{test(r){for(let l=0;l2)return!1}return!0}},s=new g;return s.put(q.VERSION.toString(),new c(6,te.VERSION)),s.put(q.SHARING_NOTICE.toString(),new c(2,0).withValidator(e)),s.put(q.SALE_OPT_OUT_NOTICE.toString(),new c(2,0).withValidator(e)),s.put(q.TARGETED_ADVERTISING_OPT_OUT_NOTICE.toString(),new c(2,0).withValidator(e)),s.put(q.SALE_OPT_OUT.toString(),new c(2,0).withValidator(e)),s.put(q.TARGETED_ADVERTISING_OPT_OUT.toString(),new c(2,0).withValidator(e)),s.put(q.SENSITIVE_DATA_PROCESSING.toString(),new j(2,[0,0,0,0,0,0,0,0]).withValidator(t)),s.put(q.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS.toString(),new c(2,0).withValidator(e)),s.put(q.MSPA_COVERED_TRANSACTION.toString(),new c(2,1).withValidator(a)),s.put(q.MSPA_OPT_OUT_OPTION_MODE.toString(),new c(2,0).withValidator(e)),s.put(q.MSPA_SERVICE_PROVIDER_MODE.toString(),new c(2,0).withValidator(e)),s}encodeSegment(e){let a=this.bitStringEncoder.encode(e,this.getFieldNames());return this.base64UrlEncoder.encode(a)}decodeSegment(e,a){(e==null||e.length===0)&&this.fields.reset(a);try{let t=this.base64UrlEncoder.decode(e);this.bitStringEncoder.decode(t,this.getFieldNames(),a)}catch(t){throw new m("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 da),o}decodeSection(o){let e=this.initializeSegments();if(o!=null&&o.length!==0){let a=o.split(".");for(let t=0;tt&&e[t].decode(a[t])}return e}encodeSection(o){let e=[];for(let a=0;a=0&&r<=2}},a=new class{test(r){return r>=1&&r<=2}},t=new class{test(r){for(let l=0;l2)return!1}return!0}},s=new g;return s.put(R.VERSION.toString(),new c(6,ie.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(t)),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(a)),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 a=this.bitStringEncoder.encode(e,this.getFieldNames());return this.base64UrlEncoder.encode(a)}decodeSegment(e,a){(e==null||e.length===0)&&this.fields.reset(a);try{let t=this.base64UrlEncoder.decode(e);this.bitStringEncoder.decode(t,this.getFieldNames(),a)}catch(t){throw new m("Unable to decode UsCoCoreSegment '"+e+"'")}}};var ha=class extends u{constructor(e){super();n(this,"base64UrlEncoder",E.getInstance());n(this,"bitStringEncoder",d.getInstance());e&&this.decode(e)}getFieldNames(){return jt}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 a=this.bitStringEncoder.encode(e,this.getFieldNames());return this.base64UrlEncoder.encode(a)}decodeSegment(e,a){(e==null||e.length===0)&&this.fields.reset(a);try{let t=this.base64UrlEncoder.decode(e);this.bitStringEncoder.decode(t,this.getFieldNames(),a)}catch(t){throw new m("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 ga),o.push(new ha),o}decodeSection(o){let e=this.initializeSegments();if(o!=null&&o.length!==0){let a=o.split(".");a.length>0&&e[0].decode(a[0]),a.length>1?(e[1].setFieldValue(R.GPC_SEGMENT_INCLUDED,!0),e[1].decode(a[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 ie=eo;var F;(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"})(F||(F={}));var _t=[F.VERSION,F.SHARING_NOTICE,F.SALE_OPT_OUT_NOTICE,F.TARGETED_ADVERTISING_OPT_OUT_NOTICE,F.SENSITIVE_DATA_PROCESSING_OPT_OUT_NOTICE,F.SALE_OPT_OUT,F.TARGETED_ADVERTISING_OPT_OUT,F.SENSITIVE_DATA_PROCESSING,F.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS,F.MSPA_COVERED_TRANSACTION,F.MSPA_OPT_OUT_OPTION_MODE,F.MSPA_SERVICE_PROVIDER_MODE];var Ea=class extends u{constructor(e){super();n(this,"base64UrlEncoder",E.getInstance());n(this,"bitStringEncoder",d.getInstance());e&&this.decode(e)}getFieldNames(){return _t}initializeFields(){let e=new class{test(r){return r>=0&&r<=2}},a=new class{test(r){return r>=1&&r<=2}},t=new class{test(r){for(let l=0;l2)return!1}return!0}},s=new g;return s.put(F.VERSION.toString(),new c(6,se.VERSION)),s.put(F.SHARING_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.SENSITIVE_DATA_PROCESSING_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(t)),s.put(F.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS.toString(),new c(2,0).withValidator(e)),s.put(F.MSPA_COVERED_TRANSACTION.toString(),new c(2,1).withValidator(a)),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 a=this.bitStringEncoder.encode(e,this.getFieldNames());return this.base64UrlEncoder.encode(a)}decodeSegment(e,a){(e==null||e.length===0)&&this.fields.reset(a);try{let t=this.base64UrlEncoder.decode(e);this.bitStringEncoder.decode(t,this.getFieldNames(),a)}catch(t){throw new m("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 Ea),o}decodeSection(o){let e=this.initializeSegments();if(o!=null&&o.length!==0){let a=o.split(".");for(let t=0;tt&&e[t].decode(a[t])}return e}encodeSection(o){let e=[];for(let a=0;a=0&&r<=2}},a=new class{test(r){return r>=1&&r<=2}},t=new class{test(r){for(let l=0;l2)return!1}return!0}},s=new g;return s.put(M.VERSION.toString(),new c(6,ne.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(t)),s.put(M.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS.toString(),new j(2,[0,0,0]).withValidator(t)),s.put(M.MSPA_COVERED_TRANSACTION.toString(),new c(2,1).withValidator(a)),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 a=this.bitStringEncoder.encode(e,this.getFieldNames());return this.base64UrlEncoder.encode(a)}decodeSegment(e,a){(e==null||e.length===0)&&this.fields.reset(a);try{let t=this.base64UrlEncoder.decode(e);this.bitStringEncoder.decode(t,this.getFieldNames(),a)}catch(t){throw new m("Unable to decode UsCtCoreSegment '"+e+"'")}}};var fa=class extends u{constructor(e){super();n(this,"base64UrlEncoder",E.getInstance());n(this,"bitStringEncoder",d.getInstance());e&&this.decode(e)}getFieldNames(){return Nt}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 a=this.bitStringEncoder.encode(e,this.getFieldNames());return this.base64UrlEncoder.encode(a)}decodeSegment(e,a){(e==null||e.length===0)&&this.fields.reset(a);try{let t=this.base64UrlEncoder.decode(e);this.bitStringEncoder.decode(t,this.getFieldNames(),a)}catch(t){throw new m("Unable to decode UsCtGpcSegment '"+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 ka),o.push(new fa),o}decodeSection(o){let e=this.initializeSegments();if(o!=null&&o.length!==0){let a=o.split(".");a.length>0&&e[0].decode(a[0]),a.length>1?(e[1].setFieldValue(M.GPC_SEGMENT_INCLUDED,!0),e[1].decode(a[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(ao,"ID",12),n(ao,"VERSION",1),n(ao,"NAME","usct");var ne=ao;var B;(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"})(B||(B={}));var Ot=[B.VERSION,B.PROCESSING_NOTICE,B.SALE_OPT_OUT_NOTICE,B.TARGETED_ADVERTISING_OPT_OUT_NOTICE,B.SALE_OPT_OUT,B.TARGETED_ADVERTISING_OPT_OUT,B.SENSITIVE_DATA_PROCESSING,B.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS,B.ADDITIONAL_DATA_PROCESSING_CONSENT,B.MSPA_COVERED_TRANSACTION,B.MSPA_OPT_OUT_OPTION_MODE,B.MSPA_SERVICE_PROVIDER_MODE];var wa=class extends u{constructor(e){super();n(this,"base64UrlEncoder",E.getInstance());n(this,"bitStringEncoder",d.getInstance());e&&this.decode(e)}getFieldNames(){return Ot}initializeFields(){let e=new class{test(r){return r>=0&&r<=2}},a=new class{test(r){return r>=1&&r<=2}},t=new class{test(r){for(let l=0;l2)return!1}return!0}},s=new g;return s.put(B.VERSION.toString(),new c(6,re.VERSION)),s.put(B.PROCESSING_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.TARGETED_ADVERTISING_OPT_OUT_NOTICE.toString(),new c(2,0).withValidator(e)),s.put(B.SALE_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]).withValidator(t)),s.put(B.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS.toString(),new j(2,[0,0,0]).withValidator(t)),s.put(B.ADDITIONAL_DATA_PROCESSING_CONSENT.toString(),new c(2,0).withValidator(e)),s.put(B.MSPA_COVERED_TRANSACTION.toString(),new c(2,1).withValidator(a)),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 a=this.bitStringEncoder.encode(e,this.getFieldNames());return this.base64UrlEncoder.encode(a)}decodeSegment(e,a){(e==null||e.length===0)&&this.fields.reset(a);try{let t=this.base64UrlEncoder.decode(e);this.bitStringEncoder.decode(t,this.getFieldNames(),a)}catch(t){throw new m("Unable to decode UsFlCoreSegment '"+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 wa),o}decodeSection(o){let e=this.initializeSegments();if(o!=null&&o.length!==0){let a=o.split(".");for(let t=0;tt&&e[t].decode(a[t])}return e}encodeSection(o){let e=[];for(let a=0;a=0&&r<=2}},a=new class{test(r){return r>=1&&r<=2}},t=new class{test(r){for(let l=0;l2)return!1}return!0}},s=new g;return s.put(O.VERSION.toString(),new c(6,ce.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(t)),s.put(O.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS.toString(),new j(2,[0,0,0]).withValidator(t)),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(a)),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 a=this.bitStringEncoder.encode(e,this.getFieldNames());return this.base64UrlEncoder.encode(a)}decodeSegment(e,a){(e==null||e.length===0)&&this.fields.reset(a);try{let t=this.base64UrlEncoder.decode(e);this.bitStringEncoder.decode(t,this.getFieldNames(),a)}catch(t){throw new m("Unable to decode UsMtCoreSegment '"+e+"'")}}};var ba=class extends u{constructor(e){super();n(this,"base64UrlEncoder",E.getInstance());n(this,"bitStringEncoder",d.getInstance());e&&this.decode(e)}getFieldNames(){return yt}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 a=this.bitStringEncoder.encode(e,this.getFieldNames());return this.base64UrlEncoder.encode(a)}decodeSegment(e,a){(e==null||e.length===0)&&this.fields.reset(a);try{let t=this.base64UrlEncoder.decode(e);this.bitStringEncoder.decode(t,this.getFieldNames(),a)}catch(t){throw new m("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 Sa),o.push(new ba),o}decodeSection(o){let e=this.initializeSegments();if(o!=null&&o.length!==0){let a=o.split(".");a.length>0&&e[0].decode(a[0]),a.length>1?(e[1].setFieldValue(O.GPC_SEGMENT_INCLUDED,!0),e[1].decode(a[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 ce=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 At=[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],vt=[I.GPC_SEGMENT_TYPE,I.GPC];var ja=class extends u{constructor(e){super();n(this,"base64UrlEncoder",E.getInstance());n(this,"bitStringEncoder",d.getInstance());e&&this.decode(e)}getFieldNames(){return At}initializeFields(){let e=new class{test(r){return r>=0&&r<=2}},a=new class{test(r){return r>=1&&r<=2}},t=new class{test(r){for(let l=0;l2)return!1}return!0}},s=new g;return s.put(I.VERSION.toString(),new c(6,me.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(t)),s.put(I.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS.toString(),new j(2,[0,0,0]).withValidator(t)),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(a)),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 a=this.bitStringEncoder.encode(e,this.getFieldNames());return this.base64UrlEncoder.encode(a)}decodeSegment(e,a){(e==null||e.length===0)&&this.fields.reset(a);try{let t=this.base64UrlEncoder.decode(e);this.bitStringEncoder.decode(t,this.getFieldNames(),a)}catch(t){throw new m("Unable to decode UsOrCoreSegment '"+e+"'")}}};var _a=class extends u{constructor(e){super();n(this,"base64UrlEncoder",E.getInstance());n(this,"bitStringEncoder",d.getInstance());e&&this.decode(e)}getFieldNames(){return vt}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 a=this.bitStringEncoder.encode(e,this.getFieldNames());return this.base64UrlEncoder.encode(a)}decodeSegment(e,a){(e==null||e.length===0)&&this.fields.reset(a);try{let t=this.base64UrlEncoder.decode(e);this.bitStringEncoder.decode(t,this.getFieldNames(),a)}catch(t){throw new m("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 ja),o.push(new _a),o}decodeSection(o){let e=this.initializeSegments();if(o!=null&&o.length!==0){let a=o.split(".");a.length>0&&e[0].decode(a[0]),a.length>1?(e[1].setFieldValue(I.GPC_SEGMENT_INCLUDED,!0),e[1].decode(a[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 me=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 zt=[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],Dt=[y.GPC_SEGMENT_TYPE,y.GPC];var Ta=class extends u{constructor(e){super();n(this,"base64UrlEncoder",E.getInstance());n(this,"bitStringEncoder",d.getInstance());e&&this.decode(e)}getFieldNames(){return zt}initializeFields(){let e=new class{test(r){return r>=0&&r<=2}},a=new class{test(r){return r>=1&&r<=2}},t=new class{test(r){for(let l=0;l2)return!1}return!0}},s=new g;return s.put(y.VERSION.toString(),new c(6,pe.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(t)),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(a)),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 a=this.bitStringEncoder.encode(e,this.getFieldNames());return this.base64UrlEncoder.encode(a)}decodeSegment(e,a){(e==null||e.length===0)&&this.fields.reset(a);try{let t=this.base64UrlEncoder.decode(e);this.bitStringEncoder.decode(t,this.getFieldNames(),a)}catch(t){throw new m("Unable to decode UsTxCoreSegment '"+e+"'")}}};var Na=class extends u{constructor(e){super();n(this,"base64UrlEncoder",E.getInstance());n(this,"bitStringEncoder",d.getInstance());e&&this.decode(e)}getFieldNames(){return Dt}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 a=this.bitStringEncoder.encode(e,this.getFieldNames());return this.base64UrlEncoder.encode(a)}decodeSegment(e,a){(e==null||e.length===0)&&this.fields.reset(a);try{let t=this.base64UrlEncoder.decode(e);this.bitStringEncoder.decode(t,this.getFieldNames(),a)}catch(t){throw new m("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 Ta),o.push(new Na),o}decodeSection(o){let e=this.initializeSegments();if(o!=null&&o.length!==0){let a=o.split(".");a.length>0&&e[0].decode(a[0]),a.length>1?(e[1].setFieldValue(y.GPC_SEGMENT_INCLUDED,!0),e[1].decode(a[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 pe=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 Pt=[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],Ct=[A.GPC_SEGMENT_TYPE,A.GPC];var Oa=class extends u{constructor(e){super();n(this,"base64UrlEncoder",E.getInstance());n(this,"bitStringEncoder",d.getInstance());e&&this.decode(e)}getFieldNames(){return Pt}initializeFields(){let e=new class{test(r){return r>=0&&r<=2}},a=new class{test(r){return r>=1&&r<=2}},t=new class{test(r){for(let l=0;l2)return!1}return!0}},s=new g;return s.put(A.VERSION.toString(),new c(6,le.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(t)),s.put(A.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS.toString(),new j(2,[0,0,0,0,0]).withValidator(t)),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(a)),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 a=this.bitStringEncoder.encode(e,this.getFieldNames());return this.base64UrlEncoder.encode(a)}decodeSegment(e,a){(e==null||e.length===0)&&this.fields.reset(a);try{let t=this.base64UrlEncoder.decode(e);this.bitStringEncoder.decode(t,this.getFieldNames(),a)}catch(t){throw new m("Unable to decode UsDeCoreSegment '"+e+"'")}}};var Ia=class extends u{constructor(e){super();n(this,"base64UrlEncoder",E.getInstance());n(this,"bitStringEncoder",d.getInstance());e&&this.decode(e)}getFieldNames(){return Ct}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 a=this.bitStringEncoder.encode(e,this.getFieldNames());return this.base64UrlEncoder.encode(a)}decodeSegment(e,a){(e==null||e.length===0)&&this.fields.reset(a);try{let t=this.base64UrlEncoder.decode(e);this.bitStringEncoder.decode(t,this.getFieldNames(),a)}catch(t){throw new m("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 Oa),o.push(new Ia),o}decodeSection(o){let e=this.initializeSegments();if(o!=null&&o.length!==0){let a=o.split(".");a.length>0&&e[0].decode(a[0]),a.length>1?(e[1].setFieldValue(A.GPC_SEGMENT_INCLUDED,!0),e[1].decode(a[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 le=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 Vt=[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],Rt=[v.GPC_SEGMENT_TYPE,v.GPC];var ya=class extends u{constructor(e){super();n(this,"base64UrlEncoder",E.getInstance());n(this,"bitStringEncoder",d.getInstance());e&&this.decode(e)}getFieldNames(){return Vt}initializeFields(){let e=new class{test(r){return r>=0&&r<=2}},a=new class{test(r){return r>=1&&r<=2}},t=new class{test(r){for(let l=0;l2)return!1}return!0}},s=new g;return s.put(v.VERSION.toString(),new c(6,ue.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(t)),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(a)),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 a=this.bitStringEncoder.encode(e,this.getFieldNames());return this.base64UrlEncoder.encode(a)}decodeSegment(e,a){(e==null||e.length===0)&&this.fields.reset(a);try{let t=this.base64UrlEncoder.decode(e);this.bitStringEncoder.decode(t,this.getFieldNames(),a)}catch(t){throw new m("Unable to decode UsIaCoreSegment '"+e+"'")}}};var Aa=class extends u{constructor(e){super();n(this,"base64UrlEncoder",E.getInstance());n(this,"bitStringEncoder",d.getInstance());e&&this.decode(e)}getFieldNames(){return Rt}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 a=this.bitStringEncoder.encode(e,this.getFieldNames());return this.base64UrlEncoder.encode(a)}decodeSegment(e,a){(e==null||e.length===0)&&this.fields.reset(a);try{let t=this.base64UrlEncoder.decode(e);this.bitStringEncoder.decode(t,this.getFieldNames(),a)}catch(t){throw new m("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 ya),o.push(new Aa),o}decodeSection(o){let e=this.initializeSegments();if(o!=null&&o.length!==0){let a=o.split(".");a.length>0&&e[0].decode(a[0]),a.length>1?(e[1].setFieldValue(v.GPC_SEGMENT_INCLUDED,!0),e[1].decode(a[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 ue=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 Mt=[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],xt=[z.GPC_SEGMENT_TYPE,z.GPC];var va=class extends u{constructor(e){super();n(this,"base64UrlEncoder",E.getInstance());n(this,"bitStringEncoder",d.getInstance());e&&this.decode(e)}getFieldNames(){return Mt}initializeFields(){let e=new class{test(r){return r>=0&&r<=2}},a=new class{test(r){return r>=1&&r<=2}},t=new class{test(r){for(let l=0;l2)return!1}return!0}},s=new g;return s.put(z.VERSION.toString(),new c(6,de.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(t)),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(a)),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 a=this.bitStringEncoder.encode(e,this.getFieldNames());return this.base64UrlEncoder.encode(a)}decodeSegment(e,a){(e==null||e.length===0)&&this.fields.reset(a);try{let t=this.base64UrlEncoder.decode(e);this.bitStringEncoder.decode(t,this.getFieldNames(),a)}catch(t){throw new m("Unable to decode UsNeCoreSegment '"+e+"'")}}};var za=class extends u{constructor(e){super();n(this,"base64UrlEncoder",E.getInstance());n(this,"bitStringEncoder",d.getInstance());e&&this.decode(e)}getFieldNames(){return xt}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 a=this.bitStringEncoder.encode(e,this.getFieldNames());return this.base64UrlEncoder.encode(a)}decodeSegment(e,a){(e==null||e.length===0)&&this.fields.reset(a);try{let t=this.base64UrlEncoder.decode(e);this.bitStringEncoder.decode(t,this.getFieldNames(),a)}catch(t){throw new m("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 va),o.push(new za),o}decodeSection(o){let e=this.initializeSegments();if(o!=null&&o.length!==0){let a=o.split(".");a.length>0&&e[0].decode(a[0]),a.length>1?(e[1].setFieldValue(z.GPC_SEGMENT_INCLUDED,!0),e[1].decode(a[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 de=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 Gt=[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],Lt=[D.GPC_SEGMENT_TYPE,D.GPC];var Da=class extends u{constructor(e){super();n(this,"base64UrlEncoder",E.getInstance());n(this,"bitStringEncoder",d.getInstance());e&&this.decode(e)}getFieldNames(){return Gt}initializeFields(){let e=new class{test(r){return r>=0&&r<=2}},a=new class{test(r){return r>=1&&r<=2}},t=new class{test(r){for(let l=0;l2)return!1}return!0}},s=new g;return s.put(D.VERSION.toString(),new c(6,ge.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(t)),s.put(D.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS.toString(),new j(2,[0,0,0]).withValidator(t)),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(a)),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 a=this.bitStringEncoder.encode(e,this.getFieldNames());return this.base64UrlEncoder.encode(a)}decodeSegment(e,a){(e==null||e.length===0)&&this.fields.reset(a);try{let t=this.base64UrlEncoder.decode(e);this.bitStringEncoder.decode(t,this.getFieldNames(),a)}catch(t){throw new m("Unable to decode UsNhCoreSegment '"+e+"'")}}};var Pa=class extends u{constructor(e){super();n(this,"base64UrlEncoder",E.getInstance());n(this,"bitStringEncoder",d.getInstance());e&&this.decode(e)}getFieldNames(){return Lt}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 a=this.bitStringEncoder.encode(e,this.getFieldNames());return this.base64UrlEncoder.encode(a)}decodeSegment(e,a){(e==null||e.length===0)&&this.fields.reset(a);try{let t=this.base64UrlEncoder.decode(e);this.bitStringEncoder.decode(t,this.getFieldNames(),a)}catch(t){throw new m("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 Da),o.push(new Pa),o}decodeSection(o){let e=this.initializeSegments();if(o!=null&&o.length!==0){let a=o.split(".");a.length>0&&e[0].decode(a[0]),a.length>1?(e[1].setFieldValue(D.GPC_SEGMENT_INCLUDED,!0),e[1].decode(a[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 ge=po;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 Ut=[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],Ft=[P.GPC_SEGMENT_TYPE,P.GPC];var Ca=class extends u{constructor(e){super();n(this,"base64UrlEncoder",E.getInstance());n(this,"bitStringEncoder",d.getInstance());e&&this.decode(e)}getFieldNames(){return Ut}initializeFields(){let e=new class{test(r){return r>=0&&r<=2}},a=new class{test(r){return r>=1&&r<=2}},t=new class{test(r){for(let l=0;l2)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,0,0]).withValidator(t)),s.put(P.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS.toString(),new j(2,[0,0,0,0,0]).withValidator(t)),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(a)),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 a=this.bitStringEncoder.encode(e,this.getFieldNames());return this.base64UrlEncoder.encode(a)}decodeSegment(e,a){(e==null||e.length===0)&&this.fields.reset(a);try{let t=this.base64UrlEncoder.decode(e);this.bitStringEncoder.decode(t,this.getFieldNames(),a)}catch(t){throw new m("Unable to decode UsNjCoreSegment '"+e+"'")}}};var Va=class extends u{constructor(e){super();n(this,"base64UrlEncoder",E.getInstance());n(this,"bitStringEncoder",d.getInstance());e&&this.decode(e)}getFieldNames(){return Ft}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 a=this.bitStringEncoder.encode(e,this.getFieldNames());return this.base64UrlEncoder.encode(a)}decodeSegment(e,a){(e==null||e.length===0)&&this.fields.reset(a);try{let t=this.base64UrlEncoder.decode(e);this.bitStringEncoder.decode(t,this.getFieldNames(),a)}catch(t){throw new m("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 Ca),o.push(new Va),o}decodeSection(o){let e=this.initializeSegments();if(o!=null&&o.length!==0){let a=o.split(".");a.length>0&&e[0].decode(a[0]),a.length>1?(e[1].setFieldValue(P.GPC_SEGMENT_INCLUDED,!0),e[1].decode(a[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(lo,"ID",21),n(lo,"VERSION",1),n(lo,"NAME","usnj");var he=lo;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 Bt=[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],Ht=[C.GPC_SEGMENT_TYPE,C.GPC];var Ra=class extends u{constructor(e){super();n(this,"base64UrlEncoder",E.getInstance());n(this,"bitStringEncoder",d.getInstance());e&&this.decode(e)}getFieldNames(){return Bt}initializeFields(){let e=new class{test(r){return r>=0&&r<=2}},a=new class{test(r){return r>=1&&r<=2}},t=new class{test(r){for(let l=0;l2)return!1}return!0}},s=new g;return s.put(C.VERSION.toString(),new c(6,Ee.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]).withValidator(t)),s.put(C.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS.toString(),new c(2,0).withValidator(e)),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(a)),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 a=this.bitStringEncoder.encode(e,this.getFieldNames());return this.base64UrlEncoder.encode(a)}decodeSegment(e,a){(e==null||e.length===0)&&this.fields.reset(a);try{let t=this.base64UrlEncoder.decode(e);this.bitStringEncoder.decode(t,this.getFieldNames(),a)}catch(t){throw new m("Unable to decode UsTnCoreSegment '"+e+"'")}}};var Ma=class extends u{constructor(e){super();n(this,"base64UrlEncoder",E.getInstance());n(this,"bitStringEncoder",d.getInstance());e&&this.decode(e)}getFieldNames(){return Ht}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 a=this.bitStringEncoder.encode(e,this.getFieldNames());return this.base64UrlEncoder.encode(a)}decodeSegment(e,a){(e==null||e.length===0)&&this.fields.reset(a);try{let t=this.base64UrlEncoder.decode(e);this.bitStringEncoder.decode(t,this.getFieldNames(),a)}catch(t){throw new m("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 Ra),o.push(new Ma),o}decodeSection(o){let e=this.initializeSegments();if(o!=null&&o.length!==0){let a=o.split(".");a.length>0&&e[0].decode(a[0]),a.length>1?(e[1].setFieldValue(C.GPC_SEGMENT_INCLUDED,!0),e[1].decode(a[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(uo,"ID",22),n(uo,"VERSION",1),n(uo,"NAME","ustn");var Ee=uo;var K=class{};n(K,"SECTION_ID_NAME_MAP",new Map([[$.ID,$.NAME],[Z.ID,Z.NAME],[ee.ID,ee.NAME],[oe.ID,oe.NAME],[ae.ID,ae.NAME],[te.ID,te.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],[Ee.ID,Ee.NAME]])),n(K,"SECTION_ORDER",[$.NAME,Z.NAME,ee.NAME,oe.NAME,ae.NAME,te.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,Ee.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,a){this.decoded||(this.sections=this.decodeModel(this.encodedString),this.dirty=!1,this.decoded=!0);let t=null;if(this.sections.has(o)?t=this.sections.get(o):o===Z.NAME?(t=new Z,this.sections.set(Z.NAME,t)):o===$.NAME?(t=new $,this.sections.set($.NAME,t)):o===ee.NAME?(t=new ee,this.sections.set(ee.NAME,t)):o===oe.NAME?(t=new oe,this.sections.set(oe.NAME,t)):o===ae.NAME?(t=new ae,this.sections.set(ae.NAME,t)):o===te.NAME?(t=new te,this.sections.set(te.NAME,t)):o===ie.NAME?(t=new ie,this.sections.set(ie.NAME,t)):o===se.NAME?(t=new se,this.sections.set(se.NAME,t)):o===ne.NAME?(t=new ne,this.sections.set(ne.NAME,t)):o===re.NAME?(t=new re,this.sections.set(re.NAME,t)):o===ce.NAME?(t=new ce,this.sections.set(ce.NAME,t)):o===me.NAME?(t=new me,this.sections.set(me.NAME,t)):o===pe.NAME?(t=new pe,this.sections.set(pe.NAME,t)):o===le.NAME?(t=new le,this.sections.set(le.NAME,t)):o===ue.NAME?(t=new ue,this.sections.set(ue.NAME,t)):o===de.NAME?(t=new de,this.sections.set(de.NAME,t)):o===ge.NAME?(t=new ge,this.sections.set(ge.NAME,t)):o===he.NAME?(t=new he,this.sections.set(he.NAME,t)):o===Ee.NAME&&(t=new Ee,this.sections.set(Ee.NAME,t)),t)t.setFieldValue(e,a),this.dirty=!0,t.setIsDirty(!0);else throw new Re(o+"."+e+" not found")}setFieldValueBySectionId(o,e,a){this.setFieldValue(K.SECTION_ID_NAME_MAP.get(o),e,a)}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(K.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(K.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(K.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(K.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 l=new XMLHttpRequest,p=()=>{if(l.readyState==XMLHttpRequest.DONE)if(l.status>=200&&l.status<300){let Ne=l.response;if(typeof Ne=="string")try{Ne=JSON.parse(Ne)}catch(Ue){}s(Ne)}else r(new Error(`HTTP Status: ${l.status} response type: ${l.responseType}`))},G=()=>{r(new Error("error"))},_e=()=>{r(new Error("aborted"))},ke=()=>{r(new Error("Timeout "+t+"ms "+o))};l.withCredentials=a,l.addEventListener("load",p),l.addEventListener("error",G),l.addEventListener("abort",_e),e===null?l.open("GET",o,!0):l.open("POST",o,!0),l.responseType="json",l.timeout=t,l.ontimeout=ke,l.send(e)})}static post(o,e,a=!1,t=0){return this.absCall(o,JSON.stringify(e),a,t)}static fetch(o,e=!1,a=0){return this.absCall(o,null,e,a)}};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 Ga=No;var Oo=class Oo{constructor(){n(this,"vendors");n(this,"consentLanguages",new Ga);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 a=new Oo;if(a.baseUrl=e,o.languageFilename?a.languageFilename=o.languageFilename:a.languageFilename="purposes-[LANG].json",o.version>0){let t=o.versionedFilename;t||(t="archives/vendor-list-v[VERSION].json");let s=e+t.replace("[VERSION]",String(o.version));a.populate(yield To.fetch(s))}else{let t=o.latestFilename;t||(t="vendor-list.json");let s=e+t;a.populate(yield To.fetch(s))}return a})}changeLanguage(o){return yo(this,null,function*(){let e=o.toUpperCase();if(this.consentLanguages.has(e)){if(e!==this.language){this.language=e;let a=this.baseUrl+this.languageFilename.replace("[LANG]",o);try{this.populate(yield To.fetch(a))}catch(t){throw new fo("unable to load language: "+t.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,a)=>{let t=this.vendors[String(a)];return t&&t.deletedDate===void 0&&(t.purposes.forEach(s=>{this.byPurposeVendorMap[String(s)].consent.add(a)}),t.specialPurposes.forEach(s=>{this.bySpecialPurposeVendorMap[String(s)].add(a)}),t.legIntPurposes&&t.legIntPurposes.forEach(s=>{this.byPurposeVendorMap[String(s)].legInt.add(a)}),t.impConsPurposes&&t.impConsPurposes.forEach(s=>{this.byPurposeVendorMap[String(s)].impCons.add(a)}),t.flexiblePurposes&&t.flexiblePurposes.forEach(s=>{this.byPurposeVendorMap[String(s)].flexible.add(a)}),t.features.forEach(s=>{this.byFeatureVendorMap[String(s)].add(a)}),t.specialFeatures.forEach(s=>{this.bySpecialFeatureVendorMap[String(s)].add(a)}),e[a]=t),e},{})}getFilteredVendors(o,e,a,t){let s=o.charAt(0).toUpperCase()+o.slice(1),r,l={};return o==="purpose"&&a?r=this["by"+s+"VendorMap"][String(e)][a]:r=this["by"+(t?"Special":"")+s+"VendorMap"][String(e)],r.forEach(p=>{l[String(p)]=this.vendors[String(p)]}),l}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 La=class{constructor(o,e,a){n(this,"callResponder");n(this,"cmpApiContext");this.cmpApiContext=new xa,this.cmpApiContext.cmpId=o,this.cmpApiContext.cmpVersion=e,this.callResponder=new Ko(this.cmpApiContext,a)}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(K.SECTION_ID_NAME_MAP.get(o),e)}getSectionString(o){return this.cmpApiContext.gppModel.encodeSection(o)}getSectionStringById(o){return this.getSectionString(K.SECTION_ID_NAME_MAP.get(o))}setFieldValue(o,e,a){this.cmpApiContext.gppModel.setFieldValue(o,e,a)}setFieldValueBySectionId(o,e,a){this.setFieldValue(K.SECTION_ID_NAME_MAP.get(o),e,a)}getFieldValue(o,e){return this.cmpApiContext.gppModel.getFieldValue(o,e)}getFieldValueBySectionId(o,e){return this.getFieldValue(K.SECTION_ID_NAME_MAP.get(o),e)}getSection(o){return this.cmpApiContext.gppModel.getSection(o)}getSectionById(o){return this.getSection(K.SECTION_ID_NAME_MAP.get(o))}hasSection(o){return this.cmpApiContext.gppModel.hasSection(o)}hasSectionId(o){return this.hasSection(K.SECTION_ID_NAME_MAP.get(o))}deleteSection(o){this.cmpApiContext.gppModel.deleteSection(o)}deleteSectionById(o){this.deleteSection(K.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 di=$t(),gi=1,Y=new La(Za,gi),Ha={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 hi(i){let o=new URL(i).hostname;return di.parse(o).domain}function Qt(i){return Ha[i]||Ha.DEFAULT}function Ei(i){try{let e=Qt(i).prefix,a=!1,t=!1,s=!1;try{a=Y.getFieldValue(e,"SaleOptOut")==!0}catch(r){console.log(`Field 'SaleOptOut' not available for ${e}: ${r.message}`)}try{t=Y.getFieldValue(e,"SharingOptOut")==!0}catch(r){console.log(`Field 'SharingOptOut' not available for ${e}: ${r.message}`)}return console.log(`Checking opt-out status: SaleOptOut=${a}, SharingOptOut=${t}, TargetedAdvertisingOptOut=${s}`),a||t||s}catch(o){return console.error("Failed to check opt-out status:",o),!1}}function ki(i,o,e=365){let a=new Date;a.setTime(a.getTime()+e*24*60*60*1e3);let t="expires="+a.toUTCString();document.cookie=i+"="+o+";"+t+";path=/;SameSite=Lax"}function Xt(i){let o=i+"=",e=document.cookie.split(";");for(let a=0;a

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(o),document.getElementById("ez-ccpa-accept-all").onclick=function(){Ka(consentOptions.CONSENT,i),Y.setEventStatus("useractioncomplete"),o.remove()}}var Si=!1;function bi(i){console.log(`\u2705 IAB GPP CMP API Initialized! User is in jurisdiction: ${i}`);let o=fi();o&&o!="undefined"?(console.log("\u2705 Restoring previous consent:",o),Y.setGppString(o)):(console.log("\u2139\uFE0F No stored consent found. Showing consent UI."),Ka(consentOptions.DEFAULT,userState)),Y.setSignalStatus("ready"),Y.setCmpStatus("loaded"),Y.setEventStatus("gpploaded"),document.addEventListener("DOMContentLoaded",function(){wi(i);let e=document.getElementById("ez-ccpa-reject-all"),a=document.createElement("div"),t=Ha[i].name,s=`
×

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),r=hi(window.location.href);s=s.replace(/{{ENTITY_NAME}}/g,r),a.innerHTML=s;let l=document.createElement("style");l.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); } /* 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; } `,e.addEventListener("click",()=>{document.body.appendChild(a),document.body.appendChild(l),document.getElementById("ezgpp-modal").style.display="block",document.getElementById("ezgpp-modal-overlay").style.display="block",setTimeout(()=>{let ke=document.getElementById("ezgpp-toggle1");if(ke){let Ne=Ei(i);console.log(`Setting initial toggle state: ${Ne}`),ke.checked=Ne}else console.error("Toggle element not found in DOM")},50);let p=document.getElementById("ezgpp-modal"),G=document.getElementById("ezgpp-modal-overlay"),_e=document.getElementById("ezgpp-close-modal");document.querySelector(".ezgpp-modal-content").addEventListener("click",function(ke){ke.stopPropagation()}),_e.addEventListener("click",()=>{p.style.display="none",G.style.display="none"}),G.addEventListener("click",()=>{p.style.display="none",G.style.display="none"}),document.addEventListener("keydown",ke=>{ke.key==="Escape"&&(p.style.display="none",G.style.display="none")}),Si||document.getElementById("ezgpp-save-settings").addEventListener("click",()=>{let ke=document.getElementById("ezgpp-toggle1");if(!ke){console.error("Toggle element not found on save");return}let Ne=ke.checked;console.log(`Save button clicked. Toggle state: ${Ne}`);let Ue;Ne?(Ue=consentOptions.REJECT,console.log("\u2705 User opted out of selling/sharing information")):(Ue=consentOptions.CONSENT,console.log("\u2705 User consented to selling/sharing information")),Ka(Ue,i),Y.setEventStatus("useractioncomplete"),p.style.display="none",G.style.display="none";let W=document.createElement("div");W.style.position="fixed",W.style.bottom="20px",W.style.left="50%",W.style.transform="translateX(-50%)",W.style.padding="10px 20px",W.style.backgroundColor="#4CAF50",W.style.color="white",W.style.borderRadius="4px",W.style.zIndex="1000",W.textContent="Your privacy settings have been saved.",document.body.appendChild(W),setTimeout(()=>{W.remove()},3e3)})})}),window.__gpp("addEventListener",(e,a)=>{a?(console.log("\u2705 GPP Consent Updated:",e),Jt(e.pingData.gppString)):console.error("\u274C Failed to receive GPP event data.")})}window.ezGPPEnabled=!0;bi(userState);})();