window.__tcfapi = function (command, version, callback, parameter) { if (command === 'getTCData' || command === 'addEventListener' || command === 'removeEventListener') { const tcData = { gdprApplies: false, tcString: '', eventStatus: 'tcloaded', cmpId: 299, cmpVersion: 10, cmpStatus: 'disabled', isServiceSpecific: true, useNonStandardStacks: false, purposeOneTreatment: false, purpose: { consents: {}, legitimateInterests: {} }, vendor: { consents: {}, legitimateInterests: {} } }; callback(tcData, true); } else if (command === 'ping') { callback({ gdprApplies: false, cmpId: 299, cmpVersion: 10, cmpStatus: 'disabled' }, true); } else { callback(null, false); } }; window.dispatchEvent(new Event('tcfapiready'));const userState = "VA";var consentOptions = JSON.parse('{"DEFAULT":{"SharingNotice":1,"SaleOptOutNotice":1,"TargetedAdvertisingOptOutNotice":1,"SaleOptOut":2,"TargetedAdvertisingOptOut":2,"SensitiveDataProcessing":[0,0,0,0,0,0,0,0],"KnownChildSensitiveDataConsents":0,"MspaCoveredTransaction":2,"MspaOptOutOptionMode":0,"MspaServiceProviderMode":0},"CONSENT":{"SharingNotice":1,"SaleOptOutNotice":1,"TargetedAdvertisingOptOutNotice":1,"SaleOptOut":2,"TargetedAdvertisingOptOut":2,"SensitiveDataProcessing":[0,0,0,0,0,0,0,0],"KnownChildSensitiveDataConsents":0,"MspaCoveredTransaction":2,"MspaOptOutOptionMode":0,"MspaServiceProviderMode":0},"REJECT":{"SharingNotice":1,"SaleOptOutNotice":1,"TargetedAdvertisingOptOutNotice":1,"SaleOptOut":1,"TargetedAdvertisingOptOut":2,"SensitiveDataProcessing":[0,0,0,0,0,0,0,0],"KnownChildSensitiveDataConsents":0,"MspaCoveredTransaction":2,"MspaOptOutOptionMode":0,"MspaServiceProviderMode":0}}');(()=>{var pi=Object.defineProperty;var li=(i,o,e)=>o in i?pi(i,o,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[o]=e;var ui=(i,o)=>()=>(o||i((o={exports:{}}).exports,o),o.exports);var n=(i,o,e)=>li(i,typeof o!="symbol"?o+"":o,e);var yo=(i,o,e)=>new Promise((a,t)=>{var s=p=>{try{m(e.next(p))}catch(q){t(q)}},r=p=>{try{m(e.throw(p))}catch(q){t(q)}},m=p=>p.done?a(p.value):Promise.resolve(p.value).then(s,r);m((e=e.apply(i,o)).next())});var oi=ui(wo=>{"use strict";Object.defineProperties(wo,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});function Ni(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var qa,Xt;function Oi(){if(Xt)return qa;Xt=1;let i=2147483647,o=36,e=1,a=26,t=38,s=700,r=72,m=128,p="-",q=/^xn--/,Y=/[^\0-\x7F]/,je=/[\x2E\u3002\uFF0E\uFF61]/g,Pe={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Ee=o-e,Ve=Math.floor,Ba=String.fromCharCode;function Fe(f){throw new RangeError(Pe[f])}function ri(f,x){let $=[],G=f.length;for(;G--;)$[G]=x(f[G]);return $}function $a(f,x){let $=f.split("@"),G="";$.length>1&&(G=$[0]+"@",f=$[1]),f=f.replace(je,".");let Q=f.split("."),fe=ri(Q,x).join(".");return G+fe}function Qa(f){let x=[],$=0,G=f.length;for(;$=55296&&Q<=56319&&$String.fromCodePoint(...f),mi=function(f){return f>=48&&f<58?26+(f-48):f>=65&&f<91?f-65:f>=97&&f<123?f-97:o},Xa=function(f,x){return f+22+75*(f<26)-((x!=0)<<5)},Ja=function(f,x,$){let G=0;for(f=$?Ve(f/s):f>>1,f+=Ve(f/x);f>Ee*a>>1;G+=o)f=Ve(f/Ee);return Ve(G+(Ee+1)*f/(f+t))},Za=function(f){let x=[],$=f.length,G=0,Q=m,fe=r,Ge=f.lastIndexOf(p);Ge<0&&(Ge=0);for(let _e=0;_e=128&&Fe("not-basic"),x.push(f.charCodeAt(_e));for(let _e=Ge>0?Ge+1:0;_e<$;){let Ae=G;for(let ve=1,Le=o;;Le+=o){_e>=$&&Fe("invalid-input");let Ue=mi(f.charCodeAt(_e++));Ue>=o&&Fe("invalid-input"),Ue>Ve((i-G)/ve)&&Fe("overflow"),G+=Ue*ve;let go=Le<=fe?e:Le>=fe+a?a:Le-fe;if(UeVe(i/Io)&&Fe("overflow"),ve*=Io}let Be=x.length+1;fe=Ja(G-Ae,Be,Ae==0),Ve(G/Be)>i-Q&&Fe("overflow"),Q+=Ve(G/Be),G%=Be,x.splice(G++,0,Q)}return String.fromCodePoint(...x)},et=function(f){let x=[];f=Qa(f);let $=f.length,G=m,Q=0,fe=r;for(let Ae of f)Ae<128&&x.push(Ba(Ae));let Ge=x.length,_e=Ge;for(Ge&&x.push(p);_e<$;){let Ae=i;for(let ve of f)ve>=G&&veVe((i-Q)/Be)&&Fe("overflow"),Q+=(Ae-G)*Be,G=Ae;for(let ve of f)if(vei&&Fe("overflow"),ve===G){let Le=Q;for(let Ue=o;;Ue+=o){let go=Ue<=fe?e:Ue>=fe+a?a:Ue-fe;if(Le{let e=o.replace(/^(\*\.|\!)/,""),a=Go.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),vi=i=>{let o=Go.toASCII(i).split(".");for(let e=0;e{let o=Go.toASCII(i);if(o.length<1)return"DOMAIN_TOO_SHORT";if(o.length>255)return"DOMAIN_TOO_LONG";let e=o.split("."),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"}},Fa=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=zi(o);if(e)return{input:i,error:{message:Jt[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=Go.toASCII(a.domain)),a.subdomain&&(a.subdomain=Go.toASCII(a.subdomain))),a),r=vi(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 m=r.suffix.split("."),p=t.slice(0,t.length-m.length);return r.exception&&p.push(m.shift()),a.tld=m.join("."),!p.length||(r.wildcard&&(m.unshift(p.pop()),a.tld=m.join(".")),!p.length)||(a.sld=p.pop(),a.domain=[a.sld,a.tld].join("."),p.length&&(a.subdomain=p.join("."))),s()},Zt=i=>i&&Fa(i).domain||null,ei=i=>{let o=Fa(i);return!!(o.domain&&o.listed)},Di={parse:Fa,get:Zt,isValid:ei};wo.default=Di;wo.errorCodes=Jt;wo.get=Zt;wo.isValid=ei;wo.parse=Fa});var at=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 Re=class{constructor(o){n(this,"gppVersion");n(this,"cmpStatus");n(this,"cmpDisplayStatus");n(this,"signalStatus");n(this,"supportedAPIs");n(this,"cmpId");n(this,"sectionList");n(this,"applicableSections");n(this,"gppString");n(this,"parsedSections");this.gppVersion=o.gppVersion,this.cmpStatus=o.cmpStatus,this.cmpDisplayStatus=o.cmpDisplayStatus,this.signalStatus=o.signalStatus,this.supportedAPIs=o.supportedAPIs,this.cmpId=o.cmpId,this.sectionList=o.gppModel.getSectionIds(),this.applicableSections=o.applicableSections,this.gppString=o.gppModel.encode(),this.parsedSections=o.gppModel.toObject()}};var we=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 Lo=class extends we{respond(){let o=this.cmpApiContext.eventQueue.add({callback:this.callback,parameter:this.parameter}),e=new He("listenerRegistered",o,!0,new Re(this.cmpApiContext));this.invokeCallback(e)}};var Uo=class extends we{respond(){let o=new Re(this.cmpApiContext);this.invokeCallback(o)}};var Fo=class extends we{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 Bo=class extends we{respond(){if(!this.parameter||this.parameter.length===0)throw new Error("
parameter required");let o=null;this.cmpApiContext.gppModel.hasSection(this.parameter)&&(o=this.cmpApiContext.gppModel.getSection(this.parameter)),this.invokeCallback(o)}};var Ho=class extends we{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 Te;(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"})(Te||(Te={}));var qo=class extends we{respond(){let o=this.parameter,e=this.cmpApiContext.eventQueue.remove(o),a=new He("listenerRemoved",o,e,new Re(this.cmpApiContext));this.invokeCallback(a)}};var tt,it,st,nt,rt,ct;ct=Te.ADD_EVENT_LISTENER,rt=Te.GET_FIELD,nt=Te.GET_SECTION,st=Te.HAS_SECTION,it=Te.PING,tt=Te.REMOVE_EVENT_LISTENER;var ze=class{};n(ze,ct,Lo),n(ze,rt,Fo),n(ze,nt,Bo),n(ze,st,Ho),n(ze,it,Uo),n(ze,tt,qo);var Ao;(function(i){i.STUB="stub",i.LOADING="loading",i.LOADED="loaded",i.ERROR="error"})(Ao||(Ao={}));var vo;(function(i){i.VISIBLE="visible",i.HIDDEN="hidden",i.DISABLED="disabled"})(vo||(vo={}));var mt;(function(i){i.GPP_LOADED="gpploaded",i.CMP_UI_SHOWN="cmpuishown",i.USER_ACTION_COMPLETE="useractioncomplete"})(mt||(mt={}));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=Te.ADD_EVENT_LISTENER;if(e!=null&&e[a])throw new Error(`Built-In Custom Commmand for ${a} not allowed`);if(a=Te.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 ze[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 ze[o]!==void 0}};var Yo=class{constructor(o){n(this,"eventQueue",new Map);n(this,"queueNumber",1e3);n(this,"cmpApiContext");this.cmpApiContext=o;try{let a=window.__gpp("events")||[];for(var e=0;e{let s=new He(o,t,e,new Re(this.cmpApiContext));a.callback(s,!0)})}clear(){this.queueNumber=1e3,this.eventQueue.clear()}get size(){return this.eventQueue.size}};var Me=class extends Error{constructor(o){super(o),this.name="InvalidFieldError"}};var _=class{constructor(){n(this,"segments");n(this,"encodedString",null);n(this,"dirty",!1);n(this,"decoded",!0);this.segments=this.initializeSegments()}hasField(o){this.decoded||(this.segments=this.decodeSection(this.encodedString),this.dirty=!1,this.decoded=!0);for(let e=0;e=1)for(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(Wo,"instance",new Wo);var E=Wo;var $o=class $o{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 l("Undecodable FibonacciInteger '"+o+"'");let e=0,a=[];for(let t=0;tr-m);let e=[],a=0,t=0;for(;to.length||e<0||e>a)throw new L("Invalid substring indexes "+e+":"+a+" for string of length "+o.length);return o.substring(e,a)}};var Do=class extends B{constructor(o,e=!0){super(e),this.setValue(o)}encode(){try{return ho.encode(this.value)}catch(o){throw new T(o)}}decode(o){try{this.value=ho.decode(o)}catch(e){throw new l(e)}}substring(o,e){try{let a=w.decode(V.substring(o,e,e+12)),t=e+12;for(let s=0;se-a))}};var c=class extends B{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 l(a)}}substring(e,a){try{return V.substring(e,a,a+this.bitStringLength)}catch(t){throw new L(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 De;(function(i){i.ID="Id",i.VERSION="Version",i.SECTION_IDS="SectionIds"})(De||(De={}));var pt=[De.ID,De.VERSION,De.SECTION_IDS];var u=class{constructor(){n(this,"fields");n(this,"encodedString",null);n(this,"dirty",!1);n(this,"decoded",!0);this.fields=this.initializeFields()}validate(){}hasField(o){return this.fields.containsKey(o)}getFieldValue(o){if(this.decoded||(this.decodeSegment(this.encodedString,this.fields),this.dirty=!1,this.decoded=!0),this.fields.containsKey(o))return this.fields.get(o).getValue();throw new Me("Invalid field: '"+o+"'")}setFieldValue(o,e){if(this.decoded||(this.decodeSegment(this.encodedString,this.fields),this.dirty=!1,this.decoded=!0),this.fields.containsKey(o))this.fields.get(o).setValue(e),this.dirty=!0;else throw new Me(o+" not found")}toObj(){let o={},e=this.getFieldNames();for(let a=0;a0&&this.decode(o)}getId(){return qe.ID}getName(){return qe.NAME}getVersion(){return qe.VERSION}initializeSegments(){let o=[];return o.push(new Xo),o}decodeSection(o){let e=this.initializeSegments();if(o!=null&&o.length!==0){let 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(Jo,"instance",new Jo);var Oe=Jo;var Ie=class{static encode(o){o.sort((s,r)=>s-r);let e=[],a=0;for(;ae-a))}};var Zo=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 B{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 Po=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 l("Undecodable FixedString '"+o+"'");let e="";for(let a=0;a0?this.value[this.value.length-1]:0,e=Ie.encode(this.value),a=e.length,t=o;if(a<=t)return w.encode(o,16)+"1"+e;{let s=[],r=0;for(let m=0;me-a))}};var ea=class extends u{constructor(e){super();n(this,"base64UrlEncoder",Oe.getInstance());n(this,"bitStringEncoder",d.getInstance());e&&this.decode(e)}getFieldNames(){return lt}initializeFields(){let e=new Date,a=new g;return a.put(h.VERSION.toString(),new c(6,W.VERSION)),a.put(h.CREATED.toString(),new Ke(e)),a.put(h.LAST_UPDATED.toString(),new Ke(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 ke([!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1])),a.put(h.PURPOSE_CONSENTS.toString(),new ke([!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1])),a.put(h.PURPOSE_LEGITIMATE_INTERESTS.toString(),new ke([!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1])),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 be([])),a.put(h.VENDOR_LEGITIMATE_INTERESTS.toString(),new be([])),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 l("Unable to decode TcfEuV2CoreSegment '"+e+"'")}}};var Ye=class extends B{constructor(e,a,t=!0){super(t);n(this,"getLength");this.getLength=e,this.setValue(a)}encode(){try{return Se.encode(this.value,this.getLength())}catch(e){throw new T(e)}}decode(e){try{this.value=Se.decode(e)}catch(a){throw new l(a)}}substring(e,a){try{return V.substring(e,a,a+this.getLength())}catch(t){throw new L(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 oa=class extends u{constructor(e){super();n(this,"base64UrlEncoder",Oe.getInstance());n(this,"bitStringEncoder",d.getInstance());e&&this.decode(e)}getFieldNames(){return ut}initializeFields(){let e=new g;e.put(h.PUBLISHER_PURPOSES_SEGMENT_TYPE.toString(),new c(3,3)),e.put(h.PUBLISHER_CONSENTS.toString(),new ke([!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1])),e.put(h.PUBLISHER_LEGITIMATE_INTERESTS.toString(),new ke([!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1]));let 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 l("Unable to decode TcfEuV2PublisherPurposesSegment '"+e+"'")}}};var aa=class extends u{constructor(e){super();n(this,"base64UrlEncoder",Oe.getInstance());n(this,"bitStringEncoder",d.getInstance());e&&this.decode(e)}getFieldNames(){return dt}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 be([])),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 l("Unable to decode TcfEuV2VendorsAllowedSegment '"+e+"'")}}};var ta=class extends u{constructor(e){super();n(this,"base64UrlEncoder",Oe.getInstance());n(this,"bitStringEncoder",d.getInstance());e&&this.decode(e)}getFieldNames(){return gt}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 be([])),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 l("Unable to decode TcfEuV2VendorsDisclosedSegment '"+e+"'")}}};var We=class We extends _{constructor(o){super(),o&&o.length>0&&this.decode(o)}getId(){return We.ID}getName(){return We.NAME}getVersion(){return We.VERSION}initializeSegments(){let o=[];return o.push(new ea),o.push(new oa),o.push(new aa),o.push(new ta),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 l("Unable to decode TcfEuV2 segment '"+s+"'")}}}return e}encodeSection(o){let e=[];return o.length>=1&&(e.push(o[0].encode()),this.getFieldValue(h.IS_SERVICE_SPECIFIC)?o.length>=2&&e.push(o[1].encode()):o.length>=2&&(e.push(o[2].encode()),o.length>=3&&e.push(o[3].encode()))),e.join(".")}setFieldValue(o,e){if(super.setFieldValue(o,e),o!==h.CREATED&&o!==h.LAST_UPDATED){let 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 W=We;var k;(function(i){i.VERSION="Version",i.CREATED="Created",i.LAST_UPDATED="LastUpdated",i.CMP_ID="CmpId",i.CMP_VERSION="CmpVersion",i.CONSENT_SCREEN="ConsentScreen",i.CONSENT_LANGUAGE="ConsentLanguage",i.VENDOR_LIST_VERSION="VendorListVersion",i.TCF_POLICY_VERSION="TcfPolicyVersion",i.USE_NON_STANDARD_STACKS="UseNonStandardStacks",i.SPECIAL_FEATURE_EXPRESS_CONSENT="SpecialFeatureExpressConsent",i.PUB_PURPOSES_SEGMENT_TYPE="PubPurposesSegmentType",i.PURPOSES_EXPRESS_CONSENT="PurposesExpressConsent",i.PURPOSES_IMPLIED_CONSENT="PurposesImpliedConsent",i.VENDOR_EXPRESS_CONSENT="VendorExpressConsent",i.VENDOR_IMPLIED_CONSENT="VendorImpliedConsent",i.PUB_RESTRICTIONS="PubRestrictions",i.PUB_PURPOSES_EXPRESS_CONSENT="PubPurposesExpressConsent",i.PUB_PURPOSES_IMPLIED_CONSENT="PubPurposesImpliedConsent",i.NUM_CUSTOM_PURPOSES="NumCustomPurposes",i.CUSTOM_PURPOSES_EXPRESS_CONSENT="CustomPurposesExpressConsent",i.CUSTOM_PURPOSES_IMPLIED_CONSENT="CustomPurposesImpliedConsent",i.DISCLOSED_VENDORS_SEGMENT_TYPE="DisclosedVendorsSegmentType",i.DISCLOSED_VENDORS="DisclosedVendors"})(k||(k={}));var ht=[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],Et=[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],kt=[k.DISCLOSED_VENDORS_SEGMENT_TYPE,k.DISCLOSED_VENDORS];var ia=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 Date,a=new g;return a.put(k.VERSION.toString(),new c(6,J.VERSION)),a.put(k.CREATED.toString(),new Ke(e)),a.put(k.LAST_UPDATED.toString(),new Ke(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 ke([!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1])),a.put(k.PURPOSES_EXPRESS_CONSENT.toString(),new ke([!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1])),a.put(k.PURPOSES_IMPLIED_CONSENT.toString(),new ke([!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1])),a.put(k.VENDOR_EXPRESS_CONSENT.toString(),new be([])),a.put(k.VENDOR_IMPLIED_CONSENT.toString(),new be([])),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 l("Unable to decode TcfCaV1CoreSegment '"+e+"'")}}};var sa=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 g;e.put(k.PUB_PURPOSES_SEGMENT_TYPE.toString(),new c(3,3)),e.put(k.PUB_PURPOSES_EXPRESS_CONSENT.toString(),new ke([!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1])),e.put(k.PUB_PURPOSES_IMPLIED_CONSENT.toString(),new ke([!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1]));let 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 l("Unable to decode TcfCaV1PublisherPurposesSegment '"+e+"'")}}};var na=class extends u{constructor(e){super();n(this,"base64UrlEncoder",Oe.getInstance());n(this,"bitStringEncoder",d.getInstance());e&&this.decode(e)}getFieldNames(){return kt}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 be([])),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 l("Unable to decode HeaderV1CoreSegment '"+e+"'")}}};var $e=class $e extends _{constructor(o){super(),o&&o.length>0&&this.decode(o)}getId(){return $e.ID}getName(){return $e.NAME}getVersion(){return $e.VERSION}initializeSegments(){let o=[];return o.push(new ia),o.push(new sa),o.push(new na),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 l("Unable to decode TcfCaV1 segment '"+s+"'")}}}return e}encodeSection(o){let e=[];return e.push(o[0].encode()),e.push(o[1].encode()),this.getFieldValue(k.DISCLOSED_VENDORS).length>0&&e.push(o[2].encode()),e.join(".")}setFieldValue(o,e){if(super.setFieldValue(o,e),o!==k.CREATED&&o!==k.LAST_UPDATED){let 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 J=$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 ra=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 ca=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 X;(function(i){i.VERSION="Version",i.NOTICE="Notice",i.OPT_OUT_SALE="OptOutSale",i.LSPA_COVERED="LspaCovered"})(X||(X={}));var ft=[X.VERSION,X.NOTICE,X.OPT_OUT_SALE,X.LSPA_COVERED];var ma=class extends u{constructor(o){super(),o&&this.decode(o)}getFieldNames(){return ft}initializeFields(){let o=new class{test(a){return a==="-"||a==="Y"||a==="N"}},e=new ca;return e.put(X.VERSION,new ra(Z.VERSION)),e.put(X.NOTICE,new _o("-",o)),e.put(X.OPT_OUT_SALE,new _o("-",o)),e.put(X.LSPA_COVERED,new _o("-",o)),e}encodeSegment(o){let e="";return e+=o.get(X.VERSION).getValue(),e+=o.get(X.NOTICE).getValue(),e+=o.get(X.OPT_OUT_SALE).getValue(),e+=o.get(X.LSPA_COVERED).getValue(),e}decodeSegment(o,e){if(o==null||o.length!=4)throw new l("Unable to decode UspV1CoreSegment '"+o+"'");try{e.get(X.VERSION).setValue(parseInt(o.substring(0,1))),e.get(X.NOTICE).setValue(o.charAt(1)),e.get(X.OPT_OUT_SALE).setValue(o.charAt(2)),e.get(X.LSPA_COVERED).setValue(o.charAt(3))}catch(a){throw new l("Unable to decode UspV1CoreSegment '"+o+"'")}}};var Qe=class Qe extends _{constructor(o){super(),o&&o.length>0&&this.decode(o)}getId(){return Qe.ID}getName(){return Qe.NAME}getVersion(){return Qe.VERSION}initializeSegments(){let o=[];return o.push(new ma),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 l("Undecodable FixedIntegerList '"+o+"'");if(o.length%e!=0)throw new l("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 pa=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 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 m=0;m2)return!1}return!0}},s=new g;return s.put(b.VERSION.toString(),new c(6,ee.VERSION)),s.put(b.SHARING_NOTICE.toString(),new c(2,0).withValidator(e)),s.put(b.SALE_OPT_OUT_NOTICE.toString(),new c(2,0).withValidator(e)),s.put(b.SHARING_OPT_OUT_NOTICE.toString(),new c(2,0).withValidator(e)),s.put(b.TARGETED_ADVERTISING_OPT_OUT_NOTICE.toString(),new c(2,0).withValidator(e)),s.put(b.SENSITIVE_DATA_PROCESSING_OPT_OUT_NOTICE.toString(),new c(2,0).withValidator(e)),s.put(b.SENSITIVE_DATA_LIMIT_USE_NOTICE.toString(),new c(2,0).withValidator(e)),s.put(b.SALE_OPT_OUT.toString(),new c(2,0).withValidator(e)),s.put(b.SHARING_OPT_OUT.toString(),new c(2,0).withValidator(e)),s.put(b.TARGETED_ADVERTISING_OPT_OUT.toString(),new c(2,0).withValidator(e)),s.put(b.SENSITIVE_DATA_PROCESSING.toString(),new j(2,[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]).withValidator(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 l("Unable to decode UsNatCoreSegment '"+e+"'")}}};var la=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 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 l("Unable to decode UsNatGpcSegment '"+e+"'")}}};var Xe=class Xe extends _{constructor(o){super(),o&&o.length>0&&this.decode(o)}getId(){return Xe.ID}getName(){return Xe.NAME}getVersion(){return Xe.VERSION}initializeSegments(){let o=[];return o.push(new pa),o.push(new la),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 ee=Xe;var N;(function(i){i.VERSION="Version",i.SALE_OPT_OUT_NOTICE="SaleOptOutNotice",i.SHARING_OPT_OUT_NOTICE="SharingOptOutNotice",i.SENSITIVE_DATA_LIMIT_USE_NOTICE="SensitiveDataLimitUseNotice",i.SALE_OPT_OUT="SaleOptOut",i.SHARING_OPT_OUT="SharingOptOut",i.SENSITIVE_DATA_PROCESSING="SensitiveDataProcessing",i.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS="KnownChildSensitiveDataConsents",i.PERSONAL_DATA_CONSENTS="PersonalDataConsents",i.MSPA_COVERED_TRANSACTION="MspaCoveredTransaction",i.MSPA_OPT_OUT_OPTION_MODE="MspaOptOutOptionMode",i.MSPA_SERVICE_PROVIDER_MODE="MspaServiceProviderMode",i.GPC_SEGMENT_TYPE="GpcSegmentType",i.GPC_SEGMENT_INCLUDED="GpcSegmentIncluded",i.GPC="Gpc"})(N||(N={}));var bt=[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],jt=[N.GPC_SEGMENT_TYPE,N.GPC];var ua=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 m=0;m2)return!1}return!0}},s=new g;return s.put(N.VERSION.toString(),new c(6,oe.VERSION)),s.put(N.SALE_OPT_OUT_NOTICE.toString(),new c(2,0).withValidator(e)),s.put(N.SHARING_OPT_OUT_NOTICE.toString(),new c(2,0).withValidator(e)),s.put(N.SENSITIVE_DATA_LIMIT_USE_NOTICE.toString(),new c(2,0).withValidator(e)),s.put(N.SALE_OPT_OUT.toString(),new c(2,0).withValidator(e)),s.put(N.SHARING_OPT_OUT.toString(),new c(2,0).withValidator(e)),s.put(N.SENSITIVE_DATA_PROCESSING.toString(),new j(2,[0,0,0,0,0,0,0,0,0]).withValidator(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 l("Unable to decode UsCaCoreSegment '"+e+"'")}}};var da=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(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 l("Unable to decode UsCaGpcSegment '"+e+"'")}}};var Je=class Je extends _{constructor(o){super(),o&&o.length>0&&this.decode(o)}getId(){return Je.ID}getName(){return Je.NAME}getVersion(){return Je.VERSION}initializeSegments(){let o=[];return o.push(new ua),o.push(new da),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 oe=Je;var K;(function(i){i.VERSION="Version",i.SHARING_NOTICE="SharingNotice",i.SALE_OPT_OUT_NOTICE="SaleOptOutNotice",i.TARGETED_ADVERTISING_OPT_OUT_NOTICE="TargetedAdvertisingOptOutNotice",i.SALE_OPT_OUT="SaleOptOut",i.TARGETED_ADVERTISING_OPT_OUT="TargetedAdvertisingOptOut",i.SENSITIVE_DATA_PROCESSING="SensitiveDataProcessing",i.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS="KnownChildSensitiveDataConsents",i.MSPA_COVERED_TRANSACTION="MspaCoveredTransaction",i.MSPA_OPT_OUT_OPTION_MODE="MspaOptOutOptionMode",i.MSPA_SERVICE_PROVIDER_MODE="MspaServiceProviderMode"})(K||(K={}));var _t=[K.VERSION,K.SHARING_NOTICE,K.SALE_OPT_OUT_NOTICE,K.TARGETED_ADVERTISING_OPT_OUT_NOTICE,K.SALE_OPT_OUT,K.TARGETED_ADVERTISING_OPT_OUT,K.SENSITIVE_DATA_PROCESSING,K.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS,K.MSPA_COVERED_TRANSACTION,K.MSPA_OPT_OUT_OPTION_MODE,K.MSPA_SERVICE_PROVIDER_MODE];var ga=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 m=0;m2)return!1}return!0}},s=new g;return s.put(K.VERSION.toString(),new c(6,ae.VERSION)),s.put(K.SHARING_NOTICE.toString(),new c(2,0).withValidator(e)),s.put(K.SALE_OPT_OUT_NOTICE.toString(),new c(2,0).withValidator(e)),s.put(K.TARGETED_ADVERTISING_OPT_OUT_NOTICE.toString(),new c(2,0).withValidator(e)),s.put(K.SALE_OPT_OUT.toString(),new c(2,0).withValidator(e)),s.put(K.TARGETED_ADVERTISING_OPT_OUT.toString(),new c(2,0).withValidator(e)),s.put(K.SENSITIVE_DATA_PROCESSING.toString(),new j(2,[0,0,0,0,0,0,0,0]).withValidator(t)),s.put(K.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS.toString(),new c(2,0).withValidator(e)),s.put(K.MSPA_COVERED_TRANSACTION.toString(),new c(2,1).withValidator(a)),s.put(K.MSPA_OPT_OUT_OPTION_MODE.toString(),new c(2,0).withValidator(e)),s.put(K.MSPA_SERVICE_PROVIDER_MODE.toString(),new c(2,0).withValidator(e)),s}encodeSegment(e){let 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 l("Unable to decode UsVaCoreSegment '"+e+"'")}}};var Ze=class Ze extends _{constructor(o){super(),o&&o.length>0&&this.decode(o)}getId(){return Ze.ID}getName(){return Ze.NAME}getVersion(){return Ze.VERSION}initializeSegments(){let o=[];return o.push(new ga),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 m=0;m2)return!1}return!0}},s=new g;return s.put(R.VERSION.toString(),new c(6,te.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 l("Unable to decode UsCoCoreSegment '"+e+"'")}}};var Ea=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(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 l("Unable to decode UsCoGpcSegment '"+e+"'")}}};var eo=class eo extends _{constructor(o){super(),o&&o.length>0&&this.decode(o)}getId(){return eo.ID}getName(){return eo.NAME}getVersion(){return eo.VERSION}initializeSegments(){let o=[];return o.push(new ha),o.push(new Ea),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 te=eo;var U;(function(i){i.VERSION="Version",i.SHARING_NOTICE="SharingNotice",i.SALE_OPT_OUT_NOTICE="SaleOptOutNotice",i.TARGETED_ADVERTISING_OPT_OUT_NOTICE="TargetedAdvertisingOptOutNotice",i.SENSITIVE_DATA_PROCESSING_OPT_OUT_NOTICE="SensitiveDataProcessingOptOutNotice",i.SALE_OPT_OUT="SaleOptOut",i.TARGETED_ADVERTISING_OPT_OUT="TargetedAdvertisingOptOut",i.SENSITIVE_DATA_PROCESSING="SensitiveDataProcessing",i.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS="KnownChildSensitiveDataConsents",i.MSPA_COVERED_TRANSACTION="MspaCoveredTransaction",i.MSPA_OPT_OUT_OPTION_MODE="MspaOptOutOptionMode",i.MSPA_SERVICE_PROVIDER_MODE="MspaServiceProviderMode"})(U||(U={}));var Ot=[U.VERSION,U.SHARING_NOTICE,U.SALE_OPT_OUT_NOTICE,U.TARGETED_ADVERTISING_OPT_OUT_NOTICE,U.SENSITIVE_DATA_PROCESSING_OPT_OUT_NOTICE,U.SALE_OPT_OUT,U.TARGETED_ADVERTISING_OPT_OUT,U.SENSITIVE_DATA_PROCESSING,U.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS,U.MSPA_COVERED_TRANSACTION,U.MSPA_OPT_OUT_OPTION_MODE,U.MSPA_SERVICE_PROVIDER_MODE];var ka=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 m=0;m2)return!1}return!0}},s=new g;return s.put(U.VERSION.toString(),new c(6,ie.VERSION)),s.put(U.SHARING_NOTICE.toString(),new c(2,0).withValidator(e)),s.put(U.SALE_OPT_OUT_NOTICE.toString(),new c(2,0).withValidator(e)),s.put(U.TARGETED_ADVERTISING_OPT_OUT_NOTICE.toString(),new c(2,0).withValidator(e)),s.put(U.SENSITIVE_DATA_PROCESSING_OPT_OUT_NOTICE.toString(),new c(2,0).withValidator(e)),s.put(U.SALE_OPT_OUT.toString(),new c(2,0).withValidator(e)),s.put(U.TARGETED_ADVERTISING_OPT_OUT.toString(),new c(2,0).withValidator(e)),s.put(U.SENSITIVE_DATA_PROCESSING.toString(),new j(2,[0,0,0,0,0,0,0,0]).withValidator(t)),s.put(U.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS.toString(),new c(2,0).withValidator(e)),s.put(U.MSPA_COVERED_TRANSACTION.toString(),new c(2,1).withValidator(a)),s.put(U.MSPA_OPT_OUT_OPTION_MODE.toString(),new c(2,0).withValidator(e)),s.put(U.MSPA_SERVICE_PROVIDER_MODE.toString(),new c(2,0).withValidator(e)),s}encodeSegment(e){let 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 l("Unable to decode UsUtCoreSegment '"+e+"'")}}};var oo=class oo extends _{constructor(o){super(),o&&o.length>0&&this.decode(o)}getId(){return oo.ID}getName(){return oo.NAME}getVersion(){return oo.VERSION}initializeSegments(){let o=[];return o.push(new ka),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 m=0;m2)return!1}return!0}},s=new g;return s.put(M.VERSION.toString(),new c(6,se.VERSION)),s.put(M.SHARING_NOTICE.toString(),new c(2,0).withValidator(e)),s.put(M.SALE_OPT_OUT_NOTICE.toString(),new c(2,0).withValidator(e)),s.put(M.TARGETED_ADVERTISING_OPT_OUT_NOTICE.toString(),new c(2,0).withValidator(e)),s.put(M.SALE_OPT_OUT.toString(),new c(2,0).withValidator(e)),s.put(M.TARGETED_ADVERTISING_OPT_OUT.toString(),new c(2,0).withValidator(e)),s.put(M.SENSITIVE_DATA_PROCESSING.toString(),new j(2,[0,0,0,0,0,0,0,0]).withValidator(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 l("Unable to decode UsCtCoreSegment '"+e+"'")}}};var wa=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(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 l("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 fa),o.push(new wa),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 se=ao;var F;(function(i){i.VERSION="Version",i.PROCESSING_NOTICE="ProcessingNotice",i.SALE_OPT_OUT_NOTICE="SaleOptOutNotice",i.TARGETED_ADVERTISING_OPT_OUT_NOTICE="TargetedAdvertisingOptOutNotice",i.SALE_OPT_OUT="SaleOptOut",i.TARGETED_ADVERTISING_OPT_OUT="TargetedAdvertisingOptOut",i.SENSITIVE_DATA_PROCESSING="SensitiveDataProcessing",i.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS="KnownChildSensitiveDataConsents",i.ADDITIONAL_DATA_PROCESSING_CONSENT="AdditionalDataProcessingConsent",i.MSPA_COVERED_TRANSACTION="MspaCoveredTransaction",i.MSPA_OPT_OUT_OPTION_MODE="MspaOptOutOptionMode",i.MSPA_SERVICE_PROVIDER_MODE="MspaServiceProviderMode"})(F||(F={}));var At=[F.VERSION,F.PROCESSING_NOTICE,F.SALE_OPT_OUT_NOTICE,F.TARGETED_ADVERTISING_OPT_OUT_NOTICE,F.SALE_OPT_OUT,F.TARGETED_ADVERTISING_OPT_OUT,F.SENSITIVE_DATA_PROCESSING,F.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS,F.ADDITIONAL_DATA_PROCESSING_CONSENT,F.MSPA_COVERED_TRANSACTION,F.MSPA_OPT_OUT_OPTION_MODE,F.MSPA_SERVICE_PROVIDER_MODE];var Sa=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 m=0;m2)return!1}return!0}},s=new g;return s.put(F.VERSION.toString(),new c(6,ne.VERSION)),s.put(F.PROCESSING_NOTICE.toString(),new c(2,0).withValidator(e)),s.put(F.SALE_OPT_OUT_NOTICE.toString(),new c(2,0).withValidator(e)),s.put(F.TARGETED_ADVERTISING_OPT_OUT_NOTICE.toString(),new c(2,0).withValidator(e)),s.put(F.SALE_OPT_OUT.toString(),new c(2,0).withValidator(e)),s.put(F.TARGETED_ADVERTISING_OPT_OUT.toString(),new c(2,0).withValidator(e)),s.put(F.SENSITIVE_DATA_PROCESSING.toString(),new j(2,[0,0,0,0,0,0,0,0]).withValidator(t)),s.put(F.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS.toString(),new j(2,[0,0,0]).withValidator(t)),s.put(F.ADDITIONAL_DATA_PROCESSING_CONSENT.toString(),new c(2,0).withValidator(e)),s.put(F.MSPA_COVERED_TRANSACTION.toString(),new c(2,1).withValidator(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 l("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 Sa),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 m=0;m2)return!1}return!0}},s=new g;return s.put(O.VERSION.toString(),new c(6,re.VERSION)),s.put(O.SHARING_NOTICE.toString(),new c(2,0).withValidator(e)),s.put(O.SALE_OPT_OUT_NOTICE.toString(),new c(2,0).withValidator(e)),s.put(O.TARGETED_ADVERTISING_OPT_OUT_NOTICE.toString(),new c(2,0).withValidator(e)),s.put(O.SALE_OPT_OUT.toString(),new c(2,0).withValidator(e)),s.put(O.TARGETED_ADVERTISING_OPT_OUT.toString(),new c(2,0).withValidator(e)),s.put(O.SENSITIVE_DATA_PROCESSING.toString(),new j(2,[0,0,0,0,0,0,0,0]).withValidator(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 l("Unable to decode UsMtCoreSegment '"+e+"'")}}};var ja=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 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 l("Unable to decode UsMtGpcSegment '"+e+"'")}}};var io=class io extends _{constructor(o){super(),o&&o.length>0&&this.decode(o)}getId(){return io.ID}getName(){return io.NAME}getVersion(){return io.VERSION}initializeSegments(){let o=[];return o.push(new ba),o.push(new ja),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 re=io;var I;(function(i){i.VERSION="Version",i.PROCESSING_NOTICE="ProcessingNotice",i.SALE_OPT_OUT_NOTICE="SaleOptOutNotice",i.TARGETED_ADVERTISING_OPT_OUT_NOTICE="TargetedAdvertisingOptOutNotice",i.SALE_OPT_OUT="SaleOptOut",i.TARGETED_ADVERTISING_OPT_OUT="TargetedAdvertisingOptOut",i.SENSITIVE_DATA_PROCESSING="SensitiveDataProcessing",i.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS="KnownChildSensitiveDataConsents",i.ADDITIONAL_DATA_PROCESSING_CONSENT="AdditionalDataProcessingConsent",i.MSPA_COVERED_TRANSACTION="MspaCoveredTransaction",i.MSPA_OPT_OUT_OPTION_MODE="MspaOptOutOptionMode",i.MSPA_SERVICE_PROVIDER_MODE="MspaServiceProviderMode",i.GPC_SEGMENT_TYPE="GpcSegmentType",i.GPC_SEGMENT_INCLUDED="GpcSegmentIncluded",i.GPC="Gpc"})(I||(I={}));var Dt=[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],Ct=[I.GPC_SEGMENT_TYPE,I.GPC];var _a=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 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 m=0;m2)return!1}return!0}},s=new g;return s.put(I.VERSION.toString(),new c(6,ce.VERSION)),s.put(I.PROCESSING_NOTICE.toString(),new c(2,0).withValidator(e)),s.put(I.SALE_OPT_OUT_NOTICE.toString(),new c(2,0).withValidator(e)),s.put(I.TARGETED_ADVERTISING_OPT_OUT_NOTICE.toString(),new c(2,0).withValidator(e)),s.put(I.SALE_OPT_OUT.toString(),new c(2,0).withValidator(e)),s.put(I.TARGETED_ADVERTISING_OPT_OUT.toString(),new c(2,0).withValidator(e)),s.put(I.SENSITIVE_DATA_PROCESSING.toString(),new j(2,[0,0,0,0,0,0,0,0,0,0,0]).withValidator(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 l("Unable to decode UsOrCoreSegment '"+e+"'")}}};var Ta=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(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 l("Unable to decode UsOrGpcSegment '"+e+"'")}}};var so=class so extends _{constructor(o){super(),o&&o.length>0&&this.decode(o)}getId(){return so.ID}getName(){return so.NAME}getVersion(){return so.VERSION}initializeSegments(){let o=[];return o.push(new _a),o.push(new Ta),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 ce=so;var y;(function(i){i.VERSION="Version",i.PROCESSING_NOTICE="ProcessingNotice",i.SALE_OPT_OUT_NOTICE="SaleOptOutNotice",i.TARGETED_ADVERTISING_OPT_OUT_NOTICE="TargetedAdvertisingOptOutNotice",i.SALE_OPT_OUT="SaleOptOut",i.TARGETED_ADVERTISING_OPT_OUT="TargetedAdvertisingOptOut",i.SENSITIVE_DATA_PROCESSING="SensitiveDataProcessing",i.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS="KnownChildSensitiveDataConsents",i.ADDITIONAL_DATA_PROCESSING_CONSENT="AdditionalDataProcessingConsent",i.MSPA_COVERED_TRANSACTION="MspaCoveredTransaction",i.MSPA_OPT_OUT_OPTION_MODE="MspaOptOutOptionMode",i.MSPA_SERVICE_PROVIDER_MODE="MspaServiceProviderMode",i.GPC_SEGMENT_TYPE="GpcSegmentType",i.GPC_SEGMENT_INCLUDED="GpcSegmentIncluded",i.GPC="Gpc"})(y||(y={}));var Pt=[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],Vt=[y.GPC_SEGMENT_TYPE,y.GPC];var Na=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 m=0;m2)return!1}return!0}},s=new g;return s.put(y.VERSION.toString(),new c(6,me.VERSION)),s.put(y.PROCESSING_NOTICE.toString(),new c(2,0).withValidator(e)),s.put(y.SALE_OPT_OUT_NOTICE.toString(),new c(2,0).withValidator(e)),s.put(y.TARGETED_ADVERTISING_OPT_OUT_NOTICE.toString(),new c(2,0).withValidator(e)),s.put(y.SALE_OPT_OUT.toString(),new c(2,0).withValidator(e)),s.put(y.TARGETED_ADVERTISING_OPT_OUT.toString(),new c(2,0).withValidator(e)),s.put(y.SENSITIVE_DATA_PROCESSING.toString(),new j(2,[0,0,0,0,0,0,0,0]).withValidator(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 l("Unable to decode UsTxCoreSegment '"+e+"'")}}};var Oa=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(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 l("Unable to decode UsTxGpcSegment '"+e+"'")}}};var no=class no extends _{constructor(o){super(),o&&o.length>0&&this.decode(o)}getId(){return no.ID}getName(){return no.NAME}getVersion(){return no.VERSION}initializeSegments(){let o=[];return o.push(new Na),o.push(new Oa),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 me=no;var A;(function(i){i.VERSION="Version",i.PROCESSING_NOTICE="ProcessingNotice",i.SALE_OPT_OUT_NOTICE="SaleOptOutNotice",i.TARGETED_ADVERTISING_OPT_OUT_NOTICE="TargetedAdvertisingOptOutNotice",i.SALE_OPT_OUT="SaleOptOut",i.TARGETED_ADVERTISING_OPT_OUT="TargetedAdvertisingOptOut",i.SENSITIVE_DATA_PROCESSING="SensitiveDataProcessing",i.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS="KnownChildSensitiveDataConsents",i.ADDITIONAL_DATA_PROCESSING_CONSENT="AdditionalDataProcessingConsent",i.MSPA_COVERED_TRANSACTION="MspaCoveredTransaction",i.MSPA_OPT_OUT_OPTION_MODE="MspaOptOutOptionMode",i.MSPA_SERVICE_PROVIDER_MODE="MspaServiceProviderMode",i.GPC_SEGMENT_TYPE="GpcSegmentType",i.GPC_SEGMENT_INCLUDED="GpcSegmentIncluded",i.GPC="Gpc"})(A||(A={}));var Rt=[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],Mt=[A.GPC_SEGMENT_TYPE,A.GPC];var Ia=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 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 m=0;m2)return!1}return!0}},s=new g;return s.put(A.VERSION.toString(),new c(6,pe.VERSION)),s.put(A.PROCESSING_NOTICE.toString(),new c(2,0).withValidator(e)),s.put(A.SALE_OPT_OUT_NOTICE.toString(),new c(2,0).withValidator(e)),s.put(A.TARGETED_ADVERTISING_OPT_OUT_NOTICE.toString(),new c(2,0).withValidator(e)),s.put(A.SALE_OPT_OUT.toString(),new c(2,0).withValidator(e)),s.put(A.TARGETED_ADVERTISING_OPT_OUT.toString(),new c(2,0).withValidator(e)),s.put(A.SENSITIVE_DATA_PROCESSING.toString(),new j(2,[0,0,0,0,0,0,0,0,0]).withValidator(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 l("Unable to decode UsDeCoreSegment '"+e+"'")}}};var ya=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 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 l("Unable to decode UsDeGpcSegment '"+e+"'")}}};var ro=class ro extends _{constructor(o){super(),o&&o.length>0&&this.decode(o)}getId(){return ro.ID}getName(){return ro.NAME}getVersion(){return ro.VERSION}initializeSegments(){let o=[];return o.push(new Ia),o.push(new ya),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 pe=ro;var v;(function(i){i.VERSION="Version",i.PROCESSING_NOTICE="ProcessingNotice",i.SALE_OPT_OUT_NOTICE="SaleOptOutNotice",i.TARGETED_ADVERTISING_OPT_OUT_NOTICE="TargetedAdvertisingOptOutNotice",i.SENSITIVE_DATA_OPT_OUT_NOTICE="SensitiveDataOptOutNotice",i.SALE_OPT_OUT="SaleOptOut",i.TARGETED_ADVERTISING_OPT_OUT="TargetedAdvertisingOptOut",i.SENSITIVE_DATA_PROCESSING="SensitiveDataProcessing",i.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS="KnownChildSensitiveDataConsents",i.MSPA_COVERED_TRANSACTION="MspaCoveredTransaction",i.MSPA_OPT_OUT_OPTION_MODE="MspaOptOutOptionMode",i.MSPA_SERVICE_PROVIDER_MODE="MspaServiceProviderMode",i.GPC_SEGMENT_TYPE="GpcSegmentType",i.GPC_SEGMENT_INCLUDED="GpcSegmentIncluded",i.GPC="Gpc"})(v||(v={}));var xt=[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],Gt=[v.GPC_SEGMENT_TYPE,v.GPC];var Aa=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 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 m=0;m2)return!1}return!0}},s=new g;return s.put(v.VERSION.toString(),new c(6,le.VERSION)),s.put(v.PROCESSING_NOTICE.toString(),new c(2,0).withValidator(e)),s.put(v.SALE_OPT_OUT_NOTICE.toString(),new c(2,0).withValidator(e)),s.put(v.TARGETED_ADVERTISING_OPT_OUT_NOTICE.toString(),new c(2,0).withValidator(e)),s.put(v.SENSITIVE_DATA_OPT_OUT_NOTICE.toString(),new c(2,0).withValidator(e)),s.put(v.SALE_OPT_OUT.toString(),new c(2,0).withValidator(e)),s.put(v.TARGETED_ADVERTISING_OPT_OUT.toString(),new c(2,0).withValidator(e)),s.put(v.SENSITIVE_DATA_PROCESSING.toString(),new j(2,[0,0,0,0,0,0,0,0]).withValidator(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 l("Unable to decode UsIaCoreSegment '"+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 Gt}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 l("Unable to decode UsIaGpcSegment '"+e+"'")}}};var co=class co extends _{constructor(o){super(),o&&o.length>0&&this.decode(o)}getId(){return co.ID}getName(){return co.NAME}getVersion(){return co.VERSION}initializeSegments(){let o=[];return o.push(new Aa),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(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 le=co;var z;(function(i){i.VERSION="Version",i.PROCESSING_NOTICE="ProcessingNotice",i.SALE_OPT_OUT_NOTICE="SaleOptOutNotice",i.TARGETED_ADVERTISING_OPT_OUT_NOTICE="TargetedAdvertisingOptOutNotice",i.SALE_OPT_OUT="SaleOptOut",i.TARGETED_ADVERTISING_OPT_OUT="TargetedAdvertisingOptOut",i.SENSITIVE_DATA_PROCESSING="SensitiveDataProcessing",i.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS="KnownChildSensitiveDataConsents",i.ADDITIONAL_DATA_PROCESSING_CONSENT="AdditionalDataProcessingConsent",i.MSPA_COVERED_TRANSACTION="MspaCoveredTransaction",i.MSPA_OPT_OUT_OPTION_MODE="MspaOptOutOptionMode",i.MSPA_SERVICE_PROVIDER_MODE="MspaServiceProviderMode",i.GPC_SEGMENT_TYPE="GpcSegmentType",i.GPC_SEGMENT_INCLUDED="GpcSegmentIncluded",i.GPC="Gpc"})(z||(z={}));var Lt=[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],Ut=[z.GPC_SEGMENT_TYPE,z.GPC];var za=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 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 m=0;m2)return!1}return!0}},s=new g;return s.put(z.VERSION.toString(),new c(6,ue.VERSION)),s.put(z.PROCESSING_NOTICE.toString(),new c(2,0).withValidator(e)),s.put(z.SALE_OPT_OUT_NOTICE.toString(),new c(2,0).withValidator(e)),s.put(z.TARGETED_ADVERTISING_OPT_OUT_NOTICE.toString(),new c(2,0).withValidator(e)),s.put(z.SALE_OPT_OUT.toString(),new c(2,0).withValidator(e)),s.put(z.TARGETED_ADVERTISING_OPT_OUT.toString(),new c(2,0).withValidator(e)),s.put(z.SENSITIVE_DATA_PROCESSING.toString(),new j(2,[0,0,0,0,0,0,0,0]).withValidator(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 l("Unable to decode UsNeCoreSegment '"+e+"'")}}};var Da=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 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 l("Unable to decode UsNeGpcSegment '"+e+"'")}}};var mo=class mo extends _{constructor(o){super(),o&&o.length>0&&this.decode(o)}getId(){return mo.ID}getName(){return mo.NAME}getVersion(){return mo.VERSION}initializeSegments(){let o=[];return o.push(new za),o.push(new Da),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 ue=mo;var D;(function(i){i.VERSION="Version",i.PROCESSING_NOTICE="ProcessingNotice",i.SALE_OPT_OUT_NOTICE="SaleOptOutNotice",i.TARGETED_ADVERTISING_OPT_OUT_NOTICE="TargetedAdvertisingOptOutNotice",i.SALE_OPT_OUT="SaleOptOut",i.TARGETED_ADVERTISING_OPT_OUT="TargetedAdvertisingOptOut",i.SENSITIVE_DATA_PROCESSING="SensitiveDataProcessing",i.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS="KnownChildSensitiveDataConsents",i.ADDITIONAL_DATA_PROCESSING_CONSENT="AdditionalDataProcessingConsent",i.MSPA_COVERED_TRANSACTION="MspaCoveredTransaction",i.MSPA_OPT_OUT_OPTION_MODE="MspaOptOutOptionMode",i.MSPA_SERVICE_PROVIDER_MODE="MspaServiceProviderMode",i.GPC_SEGMENT_TYPE="GpcSegmentType",i.GPC_SEGMENT_INCLUDED="GpcSegmentIncluded",i.GPC="Gpc"})(D||(D={}));var Ft=[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],Bt=[D.GPC_SEGMENT_TYPE,D.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 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 m=0;m2)return!1}return!0}},s=new g;return s.put(D.VERSION.toString(),new c(6,de.VERSION)),s.put(D.PROCESSING_NOTICE.toString(),new c(2,0).withValidator(e)),s.put(D.SALE_OPT_OUT_NOTICE.toString(),new c(2,0).withValidator(e)),s.put(D.TARGETED_ADVERTISING_OPT_OUT_NOTICE.toString(),new c(2,0).withValidator(e)),s.put(D.SALE_OPT_OUT.toString(),new c(2,0).withValidator(e)),s.put(D.TARGETED_ADVERTISING_OPT_OUT.toString(),new c(2,0).withValidator(e)),s.put(D.SENSITIVE_DATA_PROCESSING.toString(),new j(2,[0,0,0,0,0,0,0,0]).withValidator(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 l("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 Bt}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 l("Unable to decode UsNhGpcSegment '"+e+"'")}}};var po=class po extends _{constructor(o){super(),o&&o.length>0&&this.decode(o)}getId(){return po.ID}getName(){return po.NAME}getVersion(){return po.VERSION}initializeSegments(){let o=[];return o.push(new Ca),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 de=po;var C;(function(i){i.VERSION="Version",i.PROCESSING_NOTICE="ProcessingNotice",i.SALE_OPT_OUT_NOTICE="SaleOptOutNotice",i.TARGETED_ADVERTISING_OPT_OUT_NOTICE="TargetedAdvertisingOptOutNotice",i.SALE_OPT_OUT="SaleOptOut",i.TARGETED_ADVERTISING_OPT_OUT="TargetedAdvertisingOptOut",i.SENSITIVE_DATA_PROCESSING="SensitiveDataProcessing",i.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS="KnownChildSensitiveDataConsents",i.ADDITIONAL_DATA_PROCESSING_CONSENT="AdditionalDataProcessingConsent",i.MSPA_COVERED_TRANSACTION="MspaCoveredTransaction",i.MSPA_OPT_OUT_OPTION_MODE="MspaOptOutOptionMode",i.MSPA_SERVICE_PROVIDER_MODE="MspaServiceProviderMode",i.GPC_SEGMENT_TYPE="GpcSegmentType",i.GPC_SEGMENT_INCLUDED="GpcSegmentIncluded",i.GPC="Gpc"})(C||(C={}));var Ht=[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],qt=[C.GPC_SEGMENT_TYPE,C.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 Ht}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 m=0;m2)return!1}return!0}},s=new g;return s.put(C.VERSION.toString(),new c(6,ge.VERSION)),s.put(C.PROCESSING_NOTICE.toString(),new c(2,0).withValidator(e)),s.put(C.SALE_OPT_OUT_NOTICE.toString(),new c(2,0).withValidator(e)),s.put(C.TARGETED_ADVERTISING_OPT_OUT_NOTICE.toString(),new c(2,0).withValidator(e)),s.put(C.SALE_OPT_OUT.toString(),new c(2,0).withValidator(e)),s.put(C.TARGETED_ADVERTISING_OPT_OUT.toString(),new c(2,0).withValidator(e)),s.put(C.SENSITIVE_DATA_PROCESSING.toString(),new j(2,[0,0,0,0,0,0,0,0,0,0]).withValidator(t)),s.put(C.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS.toString(),new j(2,[0,0,0,0,0]).withValidator(t)),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 l("Unable to decode UsNjCoreSegment '"+e+"'")}}};var Ra=class extends u{constructor(e){super();n(this,"base64UrlEncoder",E.getInstance());n(this,"bitStringEncoder",d.getInstance());e&&this.decode(e)}getFieldNames(){return qt}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 l("Unable to decode UsNjGpcSegment '"+e+"'")}}};var lo=class lo extends _{constructor(o){super(),o&&o.length>0&&this.decode(o)}getId(){return lo.ID}getName(){return lo.NAME}getVersion(){return lo.VERSION}initializeSegments(){let o=[];return o.push(new Va),o.push(new Ra),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(lo,"ID",21),n(lo,"VERSION",1),n(lo,"NAME","usnj");var ge=lo;var P;(function(i){i.VERSION="Version",i.PROCESSING_NOTICE="ProcessingNotice",i.SALE_OPT_OUT_NOTICE="SaleOptOutNotice",i.TARGETED_ADVERTISING_OPT_OUT_NOTICE="TargetedAdvertisingOptOutNotice",i.SALE_OPT_OUT="SaleOptOut",i.TARGETED_ADVERTISING_OPT_OUT="TargetedAdvertisingOptOut",i.SENSITIVE_DATA_PROCESSING="SensitiveDataProcessing",i.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS="KnownChildSensitiveDataConsents",i.ADDITIONAL_DATA_PROCESSING_CONSENT="AdditionalDataProcessingConsent",i.MSPA_COVERED_TRANSACTION="MspaCoveredTransaction",i.MSPA_OPT_OUT_OPTION_MODE="MspaOptOutOptionMode",i.MSPA_SERVICE_PROVIDER_MODE="MspaServiceProviderMode",i.GPC_SEGMENT_TYPE="GpcSegmentType",i.GPC_SEGMENT_INCLUDED="GpcSegmentIncluded",i.GPC="Gpc"})(P||(P={}));var Kt=[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],Yt=[P.GPC_SEGMENT_TYPE,P.GPC];var Ma=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 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 m=0;m2)return!1}return!0}},s=new g;return s.put(P.VERSION.toString(),new c(6,he.VERSION)),s.put(P.PROCESSING_NOTICE.toString(),new c(2,0).withValidator(e)),s.put(P.SALE_OPT_OUT_NOTICE.toString(),new c(2,0).withValidator(e)),s.put(P.TARGETED_ADVERTISING_OPT_OUT_NOTICE.toString(),new c(2,0).withValidator(e)),s.put(P.SALE_OPT_OUT.toString(),new c(2,0).withValidator(e)),s.put(P.TARGETED_ADVERTISING_OPT_OUT.toString(),new c(2,0).withValidator(e)),s.put(P.SENSITIVE_DATA_PROCESSING.toString(),new j(2,[0,0,0,0,0,0,0,0]).withValidator(t)),s.put(P.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS.toString(),new c(2,0).withValidator(e)),s.put(P.ADDITIONAL_DATA_PROCESSING_CONSENT.toString(),new c(2,0).withValidator(e)),s.put(P.MSPA_COVERED_TRANSACTION.toString(),new c(2,1).withValidator(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 l("Unable to decode UsTnCoreSegment '"+e+"'")}}};var xa=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(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 l("Unable to decode UsTnGpcSegment '"+e+"'")}}};var uo=class uo extends _{constructor(o){super(),o&&o.length>0&&this.decode(o)}getId(){return uo.ID}getName(){return uo.NAME}getVersion(){return uo.VERSION}initializeSegments(){let o=[];return o.push(new Ma),o.push(new xa),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(uo,"ID",22),n(uo,"VERSION",1),n(uo,"NAME","ustn");var he=uo;var H=class{};n(H,"SECTION_ID_NAME_MAP",new Map([[W.ID,W.NAME],[J.ID,J.NAME],[Z.ID,Z.NAME],[ee.ID,ee.NAME],[oe.ID,oe.NAME],[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]])),n(H,"SECTION_ORDER",[W.NAME,J.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]);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===J.NAME?(t=new J,this.sections.set(J.NAME,t)):o===W.NAME?(t=new W,this.sections.set(W.NAME,t)):o===Z.NAME?(t=new Z,this.sections.set(Z.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)),t)t.setFieldValue(e,a),this.dirty=!0,t.setIsDirty(!0);else throw new Me(o+"."+e+" not found")}setFieldValueBySectionId(o,e,a){this.setFieldValue(H.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(H.SECTION_ID_NAME_MAP.get(o),e)}hasField(o,e){return this.decoded||(this.sections=this.decodeModel(this.encodedString),this.dirty=!1,this.decoded=!0),this.sections.has(o)?this.sections.get(o).hasField(e):!1}hasFieldBySectionId(o,e){return this.hasField(H.SECTION_ID_NAME_MAP.get(o),e)}hasSection(o){return this.decoded||(this.sections=this.decodeModel(this.encodedString),this.dirty=!1,this.decoded=!0),this.sections.has(o)}hasSectionId(o){return this.hasSection(H.SECTION_ID_NAME_MAP.get(o))}deleteSection(o){!this.decoded&&this.encodedString!=null&&this.encodedString.length>0&&this.decode(this.encodedString),this.sections.delete(o),this.dirty=!0}deleteSectionById(o){this.deleteSection(H.SECTION_ID_NAME_MAP.get(o))}clear(){this.sections.clear(),this.encodedString="DBAA",this.decoded=!1,this.dirty=!1}getHeader(){this.decoded||(this.sections=this.decodeModel(this.encodedString),this.dirty=!1,this.decoded=!0);let o=new Ce;return o.setFieldValue("SectionIds",this.getSectionIds()),o.toObj()}getSection(o){return this.decoded||(this.sections=this.decodeModel(this.encodedString),this.dirty=!1,this.decoded=!0),this.sections.has(o)?this.sections.get(o).toObj():null}getSectionIds(){this.decoded||(this.sections=this.decodeModel(this.encodedString),this.dirty=!1,this.decoded=!0);let o=[];for(let e=0;e{let m=new XMLHttpRequest,p=()=>{if(m.readyState==XMLHttpRequest.DONE)if(m.status>=200&&m.status<300){let Pe=m.response;if(typeof Pe=="string")try{Pe=JSON.parse(Pe)}catch(Ee){}s(Pe)}else r(new Error(`HTTP Status: ${m.status} response type: ${m.responseType}`))},q=()=>{r(new Error("error"))},Y=()=>{r(new Error("aborted"))},je=()=>{r(new Error("Timeout "+t+"ms "+o))};m.withCredentials=a,m.addEventListener("load",p),m.addEventListener("error",q),m.addEventListener("abort",Y),e===null?m.open("GET",o,!0):m.open("POST",o,!0),m.responseType="json",m.timeout=t,m.ontimeout=je,m.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 La=No;var Oo=class Oo{constructor(){n(this,"vendors");n(this,"consentLanguages",new La);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,m={};return o==="purpose"&&a?r=this["by"+s+"VendorMap"][String(e)][a]:r=this["by"+(t?"Special":"")+s+"VendorMap"][String(e)],r.forEach(p=>{m[String(p)]=this.vendors[String(p)]}),m}getVendorsWithConsentPurpose(o){return this.getFilteredVendors("purpose",o,"consent")}getVendorsWithLegIntPurpose(o){return this.getFilteredVendors("purpose",o,"legInt")}getVendorsWithFlexiblePurpose(o){return this.getFilteredVendors("purpose",o,"flexible")}getVendorsWithSpecialPurpose(o){return this.getFilteredVendors("purpose",o,void 0,!0)}getVendorsWithFeature(o){return this.getFilteredVendors("feature",o)}getVendorsWithSpecialFeature(o){return this.getFilteredVendors("feature",o,void 0,!0)}narrowVendorsTo(o){this.mapVendors(o)}get isReady(){return this.ready}static isInstanceOf(o){return typeof o=="object"&&typeof o.narrowVendorsTo=="function"}};n(Oo,"DEFAULT_LANGUAGE","EN");var Mo=Oo;var Ua=class{constructor(o,e,a){n(this,"callResponder");n(this,"cmpApiContext");this.cmpApiContext=new Ga,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(H.SECTION_ID_NAME_MAP.get(o),e)}getSectionString(o){return this.cmpApiContext.gppModel.encodeSection(o)}getSectionStringById(o){return this.getSectionString(H.SECTION_ID_NAME_MAP.get(o))}setFieldValue(o,e,a){this.cmpApiContext.gppModel.setFieldValue(o,e,a)}setFieldValueBySectionId(o,e,a){this.setFieldValue(H.SECTION_ID_NAME_MAP.get(o),e,a)}getFieldValue(o,e){return this.cmpApiContext.gppModel.getFieldValue(o,e)}getFieldValueBySectionId(o,e){return this.getFieldValue(H.SECTION_ID_NAME_MAP.get(o),e)}getSection(o){return this.cmpApiContext.gppModel.getSection(o)}getSectionById(o){return this.getSection(H.SECTION_ID_NAME_MAP.get(o))}hasSection(o){return this.cmpApiContext.gppModel.hasSection(o)}hasSectionId(o){return this.hasSection(H.SECTION_ID_NAME_MAP.get(o))}deleteSection(o){this.cmpApiContext.gppModel.deleteSection(o)}deleteSectionById(o){this.deleteSection(H.SECTION_ID_NAME_MAP.get(o))}clear(){this.cmpApiContext.gppModel.clear()}getObject(){return this.cmpApiContext.gppModel.toObject()}getGvlFromVendorList(o){return Mo.fromVendorList(o)}getGvlFromUrl(o){return yo(this,null,function*(){return Mo.fromUrl(o)})}};function di(i,o){let e=o.getComputedStyle(i).position;if(e==="absolute"||e==="fixed")return!1;let a=i.getBoundingClientRect();return a.width>0&&a.height>0}function Wt(i,o=document,e=window){let a=()=>{if(i.parentElement!==o.body)return!1;let t=Array.from(o.body.children),s=t.indexOf(i);return t.slice(s+1).some(m=>di(m,e))?(o.body.appendChild(i),!0):!1};if(typeof e.MutationObserver=="function"){let t=new e.MutationObserver(s=>{if(i.parentElement!==o.body){t.disconnect();return}s.some(m=>Array.from(m.addedNodes).some(p=>p!==i))&&a()});return t.observe(o.body,{childList:!0}),a(),()=>t.disconnect()}return o.readyState==="complete"?(a(),()=>{}):(e.addEventListener("load",a,{once:!0}),()=>e.removeEventListener("load",a))}var xo=".ez-do-not-sell";function gi(i){if(i==null||i==="")return!1;let o=Number(i);return Number.isFinite(o)&&o<=0}function hi(i){return i?i.display==="none"||i.visibility==="hidden"||gi(i.opacity):!1}function Ei(i){return!!(i.hidden||typeof i.getAttribute=="function"&&i.getAttribute("aria-hidden")==="true")}function ki(i,o){let e=o.innerWidth;return typeof e!="number"||e<=0?!1:i.right<=0||i.left>=e}function fi(i,o){if(!i||typeof i.matches!="function"||!i.matches(xo))return!1;for(let a=i;a;a=a.parentElement)if(Ei(a)||hi(o.getComputedStyle(a)))return!1;if(typeof i.getBoundingClientRect!="function")return!1;let e=i.getBoundingClientRect();return!(e.width<=0||e.height<=0||ki(e,o))}function Ha(i,o){return Array.from(i.querySelectorAll(xo)).some(e=>fi(e,o))}function wi(i){if(typeof i.removeProperty=="function"){i.removeProperty("display");return}i.display==="none"&&(i.display="")}function Si(i){if(typeof i.setProperty=="function"){i.setProperty("display","revert");return}i.display="revert"}function bi(i,o){if(!i.style||typeof o.getComputedStyle!="function")return;let e=o.getComputedStyle(i);if(!e||e.display!=="none")return;wi(i.style);let a=o.getComputedStyle(i);a&&a.display==="none"&&Si(i.style)}function $t(i,o){if(!(!i||typeof i.querySelectorAll!="function"))for(let e of i.querySelectorAll(xo))bi(e,o)}function ji(i){return i?typeof i.closest=="function"?i.closest(xo):typeof i.matches=="function"&&i.matches(xo)?i:null:null}function _i(i,o){let e=a=>{ji(a.target)&&(typeof a.preventDefault=="function"&&a.preventDefault(),o())};return i.addEventListener("click",e),()=>i.removeEventListener("click",e)}function Qt(i,o,{scriptSuppressed:e,openModal:a,showBanner:t}){$t(i,o);let s=Ha(i,o),r=null;if(!e&&!s&&(r=t()),_i(i,a),!r||typeof r.stop!="function"||!r.element)return;let m=()=>{};m=Ti(i,o,()=>{m(),r.stop(),typeof r.element.remove=="function"&&r.element.remove()}),typeof r.setOnDismiss=="function"&&r.setOnDismiss(m)}function Ti(i,o,e){if(Ha(i,o))return e(),()=>{};if(typeof o.MutationObserver!="function"||!i.body)return()=>{};let a=!1,t=new o.MutationObserver(()=>{a||($t(i,o),Ha(i,o)&&(a=!0,t.disconnect(),e()))});return t.observe(i.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["class","style","hidden"]}),()=>{a=!0,t.disconnect()}}var Ci=oi(),Pi=1,ye=new Ua(at,Pi),ai=document.currentScript,Ka={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 Vi(i){let o=new URL(i).hostname;return Ci.parse(o).domain}function ii(i){return Ka[i]||Ka.DEFAULT}function Ri(i){try{let e=ii(i).prefix,a=!1,t=!1,s=!1;try{a=ye.getFieldValue(e,"SaleOptOut")==!0}catch(r){console.log(`Field 'SaleOptOut' not available for ${e}: ${r.message}`)}try{t=ye.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 Mi(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 si(i){let o=i+"=",e=document.cookie.split(";");for(let a=0;aYa(i),showBanner:()=>{let t=Ui(i),s=document.getElementById("ez-ccpa-reject-all");return s&&s.addEventListener("click",()=>{Ya(i)}),t}})};document.readyState==="loading"?document.addEventListener("DOMContentLoaded",e):e(),window.__gpp("addEventListener",(a,t)=>{t?(console.log("\u2705 GPP Consent Updated:",a),ni(a.pingData.gppString)):console.error("\u274C Failed to receive GPP event data.")})}function Ui(i){if(document.querySelector("[data-ezoic-role='privacy-policy']"))return console.log("Privacy policy modal already exists in the document, not adding another one"),null;let e=document.createElement("div");e.style.gridColumn="1 / -1",e.innerHTML=`

Privacy Preferences

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

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

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