iBet uBet web content aggregator. Adding the entire web to your favor.
iBet uBet web content aggregator. Adding the entire web to your favor.



Link to original content: https://data-56b1bc19e7.autobild.de/iomm/latest/manager/base/es6/bundle.js
!function(){"use strict";var e=e=>new Promise(((t,r)=>{const n=document.createElement("script");n.setAttribute("type","text/javascript"),n.setAttribute("src",e.url),e.integrity&&n.setAttribute("integrity",e.integrity),e.async&&n.setAttribute("async",e.async.toString()),e.defer&&n.setAttribute("defer",e.defer.toString()),e.crossOrigin&&n.setAttribute("crossorigin",e.crossOrigin),n.onload=t,n.onerror=r,document.head.appendChild(n)}));var t=e=>Object.prototype.toString.call(e).slice(8,-1).toLowerCase();var r=e=>{try{return JSON.parse(e),!0}catch(e){return!1}};var n=e=>window.webkit&&window.webkit.messageHandlers&&e.ios in window.webkit.messageHandlers&&"function"==typeof window.webkit.messageHandlers[e.ios].postMessage?"ios":e.android in window?"android":"";var a=e=>"object"===t(e)?{...e}:"array"===t(e)?[...e]:e;const i=(e,r)=>{if("object"!==t(e))return e;const n={},a=Object.keys(e),s=Object.keys(r);for(let o=0,c=a.length;o-1?r[c]:c;if("object"===t(u))n[l]=i({...u},r);else if("array"===t(u)){n[l]=[...u];for(let e=0,t=u.length;e-1&&e%1==0&&e<=9007199254740991},C=D,L=w;var M=function(e){return null!=e&&L(e.length)&&!C(e)},j=/^(?:0|[1-9]\d*)$/;var P=function(e,t){var r=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&j.test(e))&&e>-1&&e%1==0&&ethis._prefix?e.slice(1):e))),Object.getOwnPropertySymbols&&(e=e.concat(Object.getOwnPropertySymbols(this._listeners)))),e}get parent(){return this._parent}set parent(e){this._parent=e}constructor(){this._prefix=V,this._listeners=new F,this._listenerCount=0,this._parent=void 0}has(e){if("symbol"==typeof e)return Object.getOwnPropertySymbols(this._listeners).includes(e);const t=this._prefix?`${this._prefix}${e}`:e;return Object.keys(this._listeners).includes(t)}on(e,t,r){return x(this,e,t,r)}once(e,t,r){return x(this,e,t,r,!0)}off(e,t,r,n=!1){const a=this._prefix?`${this._prefix}${e}`:e;if(!this.has(e))return this;const i=this._listeners[a];if(!t||i.length<=1)return q(this,a),this;const s=i.findIndex((e=>e.handler===t&&e.context===(r||this)&&e.once===n));return s>-1&&i.splice(s,1),this}clear(e){const t=this._prefix?`${this._prefix}${e}`:e;return this.has(e)?q(this,t):(this._listeners=new F,this._listenerCount=0),this}emit(e,...t){const r=this._prefix?`${this._prefix}${e}`:e;if(this.has(e)||this.has($.EVENT_CONFIG.ALL_EVENTS_KEY)){let n=this._listeners[r];if(this.has($.EVENT_CONFIG.ALL_EVENTS_KEY)){n=[...n=n||[],...this._listeners[$.EVENT_CONFIG.ALL_EVENTS_KEY]]}for(let e=n.length;e>=0;e-=1){const a=n[e];if(a){const{handler:e,once:n,context:i}=a;n&&this.off(r,e,i,n),e.call(i,...t)}}return k(this,e,...t),!0}return k(this,e,...t),!1}all(e,t){return x(this,$.EVENT_CONFIG.ALL_EVENTS_KEY,e,t)}none(e,t){return this.off($.EVENT_CONFIG.ALL_EVENTS_KEY,e,t)}}$.EVENT_CONFIG={ALL_EVENTS_KEY:"~ALL_EVENTS~"};var z=function(e,t){for(var r=-1,n=null==e?0:e.length,a=Array(n);++r{const a=["namespace","module","method","message"][t],i=r[e[a]-1];return i&&(n[a]=i.text,i.children&&i.children.length)?Ft(e,t+1,i.children,n):n};class Gt{get level(){return Object.keys(Gt.TYPES)[this.type-1].toLowerCase()}get plainData(){return{createdAt:new Date(this.createdAt).toJSON(),level:this.level,namespace:this.namespace,module:this.module,method:this.method,message:this.message,internalMessage:this.internalMessage}}constructor(e,t,r,n,a,i=void 0){this.type=e,this.namespace=t,this.module=r,this.method=n,this.message=a,this.internalMessage=i,this.createdAt=Date.now()}includes(e){return!!this.internalMessage&&this.internalMessage.includes(e)}toJSON(e=!1){const{plainData:t}=this;return JSON.stringify(e?s(t,Gt.SHORTNAME_MAPPING):t)}prettify(e,t,r={abbreviate:!1,prefix:void 0,delimiter:" | "}){if(!0===Vt(Gt.FORMATS).includes(e)){const{plainData:n}=this,a={...n,...Ft(n,0,t)};if(e===Gt.FORMATS.JSON)return JSON.stringify(r.abbreviate?s(a,Gt.SHORTNAME_MAPPING):a);let i=[];return i=i.concat(Lt(a).map((([e,t])=>`${e.toUpperCase()}:${t}`))),r.prefix&&i.push(r.prefix),i.reverse().join(r.delimiter)}return""}}Gt.TYPES=Object.defineProperties({},{INFO:{value:1,enumerable:!0},WARNING:{value:2,enumerable:!0},ERROR:{value:3,enumerable:!0},FATAL:{value:4,enumerable:!0}}),Gt.FORMATS=Object.defineProperties({},{JSON:{value:1,enumerable:!0},LOG:{value:2,enumerable:!0}}),Gt.fromJSON=e=>{const t=JSON.parse(e);if(t.level&&void 0===t.type){const[,e]=Lt(Gt.TYPES).find((([e])=>e.toLowerCase()===t.level));t.type=e}const{type:r,namespace:n,module:a,method:i,message:s,internalMessage:o}=t;return new Gt(r,n,a,i,s,o)},Gt.SHORTNAME_MAPPING={level:"lv",type:"tp",namespace:"ns",module:"md",method:"mt",message:"ms",internalMessage:"im",createdAt:"ca"};var xt=Gt;class qt{get size(){return this.items.length}constructor(e){this.items=[];for(let t=0,r=e.length;t{try{const{options:n}=e;e.pending=!0;const a=Array.from(t),i=a.slice(1,a.length),s=a[0];let o,c=((e,t)=>{const{options:r,facades:n}=e;if(r.multiTenancy){const e="number"==typeof t[0]?t[0]:r.defaultTenant;return n.get(e)}return n.get(0)})(e,i);c||(c=((e,t)=>{const{facadeFactory:r,options:n}=e,a=r(e);if(n.multiTenancy){const r="number"==typeof t[0]?t[0]:n.defaultTenant;e.facades.set(r,a)}else e.facades.set(0,a);return a})(e,i)),o=!0===n.multiTenancy&&"number"==typeof i[0]?i.slice(1,i.length):i;const u=c[s](...o);!0===(r=u,Boolean(r&&"function"==typeof r.then))?u.then((t=>e.emit("executed",t))).catch((t=>e.emit("error",t))):e.emit("executed",s,u)}catch(t){e.emit("error",t)}var r};class $t extends ${constructor(e=void 0,t={},r=[]){super(),this.pending=!1,this.failed=!1,this.queue=new qt(r),this.facades=new Map,this.facadeFactory=e,this.options={mode:1,multiTenancy:!1,continueOnError:!0,logging:!1,defaultTenant:1,onError:void 0,onExecuted:void 0,...t},this.on("executed",(e=>((e,t)=>{const{options:r}=e;r.onExecuted&&"function"==typeof r.onExecuted&&r.onExecuted(t),e.pending=!1,e.failed=!1,r.mode===$t.MODE.AUTO&&e.dequeue()})(this,e))),this.on("error",(e=>((e,t)=>{const{options:r}=e;r.logging&&console.error(t),r.onError&&"function"==typeof r.onError&&r.onError(t),e.pending=!1,e.failed=!0,!0===r.continueOnError&&r.mode===$t.MODE.AUTO&&e.dequeue()})(this,e))),this.queue.size>0&&this.options.mode===$t.MODE.AUTO&&this.dequeue()}flush(){this.queue.flush()}addFacadeFactory(e){this.facadeFactory=e,this.queue.size>0&&this.options.mode===$t.MODE.AUTO&&this.dequeue()}removeFacadeFactory(){this.facadeFactory=void 0,this.facades.clear()}dequeue(){if(!0===this.pending)setTimeout((()=>this.dequeue()),10);else{if(this.queue.size>0&&(!1===this.failed||!0===this.options.continueOnError)&&this.facadeFactory&&"function"==typeof this.facadeFactory){const e=this.queue.dequeue();kt(this,e)}}}enqueue(...e){1===e.length&&"string"!=typeof e[0]?this.queue.enqueue(e[0]):this.queue.enqueue(e),this.options.mode===$t.MODE.AUTO&&this.dequeue()}push(...e){this.enqueue(...e)}}$t.MODE=Object.defineProperties({},{AUTO:{value:1,enumerable:!0},MANUAL:{value:2,enumerable:!0}});var zt=c(Ct);var Bt=e=>Object.prototype.toString.call(e).slice(8,-1).toLowerCase();function Yt(e,t,r,n,a){return new xt(e,t,r,n,a)}const Ht=(e,t)=>{const r=zt(e),n=[];for(let e=0,a=t.length;ee===a.name||e===a.abbreviation));let s;i&&(s=i[1]),n.push({...a,value:s})}return n};class Qt extends ${constructor(e){super(),this.moduleId=2,this.commands=e,this.parameters=void 0}parse(e,...t){const n=this.commands.find((t=>t.name===e||t.abbreviation===e));return n?(this.command=n,this.parameters=((e,t)=>{let n=[];const{parameters:a}=e;for(let o=0,c=a.length;o["requiredIf"].includes(e),Wt=(e,t)=>{const{rules:r,value:n}=e,a=[];for(let i=0,s=r.length;it.name===e.sibling));a.push({name:s,assertion:o(n,r.value)})}else a.push({name:s,assertion:o(n)})}return a},Kt=(e,t,r)=>{let n=!1;e.parameters[t].assertions=[];for(let a=0,i=r.length;a0?(this.valid=(e=>{for(let t=0,r=e.parameters.length;t0&&(this.data=((e,t)=>{const r={};for(let n=0,a=e.length;n-1},Mr=Tr;var jr=function(e,t){var r=this.__data__,n=Mr(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this},Pr=br,Ur=Rr,Vr=wr,Fr=Lr,Gr=jr;function xr(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t-1},Sn=_n,bn=z,In=at,Tn=gn,An=Math.min;var Nn=function(e,t,r){for(var n=r?Sn:yn,a=e[0].length,i=e.length,s=i,o=Array(i),c=1/0,u=[];s--;){var l=e[s];s&&t&&(l=bn(l,In(t))),c=An(l.length,c),o[s]=!r&&(t||a>=120&&l.length>=120)?new On(s&&l):void 0}l=e[0];var d=-1,h=o[0];e:for(;++d0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}},kn=qn(Gn),$n=Rn,zn=Ln,Bn=kn;var Yn=function(e,t){return Bn(zn(e,t,$n),e+"")},Hn=M,Qn=U;var Jn=function(e){return Qn(e)&&Hn(e)};var Xn=z,Zn=Nn,Wn=function(e){return Jn(e)?e:[]},Kn=c(Yn((function(e){var t=Xn(e,Wn);return t.length&&t[0]===e[0]?Zn(t):[]})));var ea=e=>"array"===Bt(e)?!!e.length:null!=e&&!Number.isNaN(e)&&(!1===e||(e instanceof Date?!Number.isNaN(e.getTime()):"object"===Bt(e)?!!Object.keys(e).length:!!String(e).length));var ta=e=>t=>!ea(t)||null!==t.toString().match(e);var ra=(e,t)=>r=>!ea(r)||(!/\s/.test(r)||r instanceof Date)&&e<=+r&&t>=+r;var na=e=>"array"===Bt(e)?e.length:"object"===Bt(e)?Object.keys(e).length:String(e).length;var aa=e=>t=>!ea(t)||na(t)<=e;var ia=e=>t=>!ea(t)||na(t)>=e;var sa=ta(/^\d*(\.\d+)?$/);var oa=e=>t=>!ea(t)||e.indexOf(t)>-1;var ca=e=>t=>!ea(t)||Bt(t)===e;function ua(e,t){return(...r)=>e(...r)||t()}class la extends ${constructor(e,t,r={maxExecutionBeforeStop:3,fillParameters:!1}){super(),this.moduleId=4,this.history=new Map,this.stats={},this.data={},this.commandQueue=e,this.commandSerializer=new nr(t),this.options=r}process(e,...t){try{let r;const n=this.commandSerializer.commands.find((t=>t.name===e||t.abbreviation===e));if(n){const{abbreviation:a,name:i}=n;if(void 0===this.stats[a]&&(this.stats[a]=0),this.options.fillParameters&&!1===ea(t)&&this.data[a])return r={command:i,parameters:this.data[a]},this.emit(la.EVENTS.PROCESSING_SUCCEEDED,r),r;const{valid:s,stop:o}=((e,t,r,n)=>{let a=!0,i=!1;if(e.dependencies&&e.dependencies.length>0){const s=Array.from(t.keys());a=Kn(s,e.dependencies).length===e.dependencies.length,i=r[e.abbreviation]>n}return{stop:i,valid:a}})(n,this.history,this.stats,this.options.maxExecutionBeforeStop);if(!0===s&&!1===o)if(this.commandSerializer.reset().parse(e,...t).validate(),this.commandSerializer.valid){r=this.commandSerializer.serialize().result();const e="function"==typeof n.id?n.id(r.parameters):n.id;this.history.set(e,{parameters:t,createdAt:Date.now()}),this.stats[a]=0,this.data[a]=r.parameters,this.emit(la.EVENTS.PROCESSING_SUCCEEDED,r)}else this.stats[a]+=1,this.emit(la.EVENTS.PROCESSING_FAILED,this.commandSerializer.lastAssertion);else!1===s&&!1===o?(this.stats[a]+=this.stats[a]+1,this.commandQueue.enqueue(e,...t),this.emit(la.EVENTS.PROCESSING_REQUEUED,new xt(xt.TYPES.WARNING,1,this.moduleId,1,1))):this.emit(la.EVENTS.PROCESSING_FAILED,new xt(xt.TYPES.FATAL,1,this.moduleId,1,2))}return r}catch(e){const t=new xt(xt.TYPES.FATAL,1,this.moduleId,1,3,e.message);return void this.emit(la.EVENTS.PROCESSING_FAILED,t)}}getCommandParameters(e){const t=this.commandSerializer.commands.find((t=>t.name===e||t.abbreviation===e));if(t)return this.data[t.abbreviation]}reset(){this.commandSerializer.reset(),this.stats={},this.history=new Map,this.data={}}}la.EVENTS={PROCESSING_SUCCEEDED:"PROCESSING_SUCCEEDED",PROCESSING_FAILED:"PROCESSING_FAILED",PROCESSING_REQUEUED:"PROCESSING_REQUEUED"};var da=la;var ha=e=>({name:"appSite",abbreviation:"as",sibling:"hybrid",rules:e});var fa=e=>({name:"code",abbreviation:"cp",rules:e});var ma=e=>({name:"comment",abbreviation:"co",rules:e});var Ea=e=>({name:"consentString",abbreviation:"ct",rules:e});var pa=e=>({name:"country",abbreviation:"cn",rules:e});var va=e=>({name:"debug",abbreviation:"dg",rules:e});var _a=e=>({name:"distributionChannel",abbreviation:"dc",rules:e});var ga=e=>({name:"domainServiceName",abbreviation:"dn",rules:e});var Oa=e=>({name:"event",abbreviation:"ev",rules:e});var ya=e=>({name:"hybrid",abbreviation:"hy",rules:e});var Sa=e=>({name:"hybridToken",abbreviation:"ht",rules:e});var ba=e=>({name:"identity20",abbreviation:"i2",rules:e});var Ia=e=>({name:"mediaTypes",abbreviation:"mt",rules:e});var Ta=e=>({name:"methods",abbreviation:"mh",rules:e});var Aa=e=>({name:"mode",abbreviation:"mo",rules:e});var Na=e=>({name:"multiIdentifier",abbreviation:"mi",rules:e});var Ra=e=>({name:"panelIdentifier",abbreviation:"pid",rules:e,sibling:"panelVendorId"});var Da=e=>({name:"panelVendorId",abbreviation:"pvd",rules:e,sibling:"panelIdentifier"});var wa=e=>({name:"pixelType",abbreviation:"pt",rules:e});var Ca=e=>({name:"site",abbreviation:"st",rules:e});var La=e=>({name:"tenant",abbreviation:"ta",rules:e});var Ma=e=>({name:"thirdPartyModule",abbreviation:"3p",rules:e});var ja=(e,t,r)=>n=>e(n)||[t,n,Yt(2,...r)];var Pa=(e,t)=>({name:e,assert:t});var Ua=ta(/^[a-zA-Z0-9_]*$/);var Va=[Pa("required",ja(ea,void 0,[1,1,5,1])),Pa("typeOf",ua(ca("string"),(()=>Yt(4,1,1,5,2)))),Pa("siteIdentifier",ua(Ua,(()=>Yt(4,1,1,5,3)))),Pa("min",ua(ia(3),(()=>Yt(4,1,1,5,4)))),Pa("max",ua(aa(15),(()=>Yt(4,1,1,5,5))))];function Fa(e,t){return r=>ea(r)||[e,r,Yt(2,...t)]}var Ga=(e,t,r)=>n=>"string"!==Bt(n)||!ea(n)||[n.replace(e,t),n,Yt(2,...r)];var xa=(e,t)=>r=>{if(ea(r)&&!1===aa(e)(r)){let n;return n="number"===Bt(r)?((e,t)=>{let r=e.toString();return r=r.slice(0,t),parseInt(r,10)})(r,e):"array"===Bt(r)||"string"===Bt(r)?r.slice(0,e):"object"===Bt(r)?((e,t)=>{const r=Object.keys(e),n={};for(let a=0,i=t;ata(new RegExp(`^([0-9a-fA-F]{2})([0-9a-fA-F]{${4*e}})$`,"g"));var Ya=(e=!0)=>{const t=[Pa("required",ua(ea,(()=>Yt(4,1,1,8,1)))),Pa("typeOf",ua(ca("string"),(()=>Yt(4,1,1,8,2)))),Pa("consentString",ua(Ba(2),(()=>Yt(4,1,1,8,3))))];return!1===e&&t.splice(0,1),t};var Ha=oa(["de","at"]);var Qa=[Pa("defaultValue",Fa("de",[1,1,9,1])),Pa("typeOf",ja(ca("string"),"de",[1,1,9,2])),Pa("enum",ja(Ha,"de",[1,1,9,3]))];var Ja=[Pa("defaultValue",Fa(!1,[1,1,10,1])),Pa("typeOf",ua(ca("boolean"),(()=>Yt(4,1,1,10,2))))];var Xa=oa(["web","hyb","ctv"]);var Za=[Pa("defaultValue",Fa("web",[1,1,1,11,1])),Pa("typeOf",ja(ca("string"),"web",[1,1,11,2])),Pa("enum",ja(Xa,"web",[1,1,11,3]))];var Wa=[Pa("required",ua(ea,(()=>Yt(4,1,1,12,1)))),Pa("typeof",ua(ca("string"),(()=>Yt(4,1,1,12,2)))),Pa("regex",ua(ta(/^(data-)([a-f0-9]{10})\.([a-zA-Z0-9][a-zA-Z0-9-_]{0,63})(?:\.([a-z]{2,63}))?\.([a-z]{2,63})$/g),(()=>Yt(4,1,1,12,3))))];var Ka=oa(["inst","init","open","clse","play","resm","stop","fowa","bakw","recd","paus","forg","bakg","dele","refr","kill","view","alve","fini","mute","aforg","abakg","aclse","sple","scvl","serr","spyr","smdr","sfpl","sfqt","ssqt","stqt","soqt","sofc","scfc","scqt","splr","spli","sprs","spre","smrs","smre","sors","sore","sack","sapl","sapa","snsp"]);var ei=[Pa("required",ua(ea,(()=>Yt(4,1,1,13,1)))),Pa("typeof",ua(ca("string"),(()=>Yt(4,1,1,13,2)))),Pa("eventEnum",ua(Ka,(()=>Yt(4,1,1,13,3))))];var ti=[Pa("defaultValue",Fa(!0,[1,1,14,1])),Pa("typeOf",ua(ca("boolean"),(()=>Yt(4,1,1,14,2))))];var ri=[Pa("required",ua(ea,(()=>Yt(4,1,1,24,1)))),Pa("typeOf",ua(ca("string"),(()=>Yt(4,1,1,24,2))))];var ni=[Pa("defaultValue",Fa(!1,[1,1,31,1])),Pa("typeOf",ua(ca("boolean"),(()=>Yt(4,1,1,31,2))))];var ai=oa(["debug","hybrid"]);var ii=[Pa("required",ua(ea,(()=>Yt(4,1,1,19,1)))),Pa("typeof",ua(ca("string"),(()=>Yt(4,1,1,19,2)))),Pa("enum",ua(ai,(()=>Yt(4,1,1,19,3))))];var si=[Pa("required",ua(ea,(()=>Yt(4,1,1,28,1)))),Pa("typeof",ua(ca("string"),(()=>Yt(4,1,1,28,2))))];const oi=(e,t)=>!e||ea(t);var ci=e=>(t,r)=>{if("function"!==Bt(e))return oi(t,r);const n=e(t);return oi(n,r)};var ui=[Pa("requiredIf",ua(ci(),(()=>Yt(4,1,1,29,1)))),Pa("typeOf",ja(ca("string"),void 0,[1,1,29,2]))];var li=[Pa("requiredIf",ua(ci(),(()=>Yt(4,1,1,30,1)))),Pa("typeOf",ja(ca("number"),0,[2,1,30,2]))];var di=oa(["cp","sp","xp"]);var hi=[Pa("defaultValue",Fa("cp",[1,1,20,1])),Pa("typeOf",ja(ca("string"),"cp",[1,1,20,2])),Pa("enum",ja(di,"cp",[1,1,20,3]))];var fi=[Pa("required",ua(ea,(()=>Yt(4,1,1,26,1)))),Pa("typeOf",ua(ca("string"),(()=>Yt(4,1,1,26,2)))),Pa("siteIdentifier",ua(Ua,(()=>Yt(4,1,1,26,3)))),Pa("min",ua(ia(3),(()=>Yt(4,1,1,26,4)))),Pa("max",ua(aa(15),(()=>Yt(4,1,1,26,5))))];var mi=[Pa("typeOf",ua(ca(sa),(()=>Yt(4,1,1,22,1)))),Pa("between",ua(ra(1,4),(()=>Yt(4,1,1,22,1))))];var Ei=oa(ka);var pi=[Pa("required",ua(ea,(()=>Yt(4,1,1,23,1)))),Pa("typeof",ua(ca("string"),(()=>Yt(4,1,1,23,2)))),Pa("enum",ua(Ei,(()=>Yt(4,1,1,23,3))))];var vi=[Pa("defaultValue",Fa(1,[1,1,17,1])),Pa("typeOf",ja(ca("number"),1,[1,1,17,2])),Pa("max",ja(ra(1,7),1,[1,1,17,3]))];var _i=[Pa("defaultValue",Fa(1,[1,1,18,1])),Pa("typeOf",ja(ca("number"),1,[1,1,18,2])),Pa("max",ja(ra(1,5),1,[1,1,18,3]))];var gi={id:1,name:"configure",abbreviation:"cf",parameters:[[ha(Va),Ea(Ya(!1)),pa(Qa),va(Ja),_a(Za),ga(Wa),ya(ti),ba(ni),Ia(vi),Ta(_i),Ra(ui),Da(li),Ca(fi),La(mi)]],options:{allowJSON:!0}};var Oi={id:3,name:"event",abbreviation:"ev",dependencies:[1,2],parameters:[Oa(ei)],options:{allowJSON:!1}};var yi={id:4,name:"hybrid",abbreviation:"hy",parameters:[[pa(Qa),va(Ja),ga(Wa),Ca(fi),Sa(ri)]],options:{allowJSON:!0}};var Si=[gi,{id:2,name:"pageview",abbreviation:"pv",dependencies:[1],parameters:[[fa($a),ma(za),wa(hi),La(mi)]],options:{allowJSON:!0}},yi,Oi,{id:5,name:"setMode",abbreviation:"sm",parameters:[Aa(ii)],options:{allowJSON:!1}},{id:6,name:"setMultiIdentifier",abbreviation:"smi",parameters:[Na(si)],options:{allowJSON:!1}},{id:e=>ka.indexOf(e.thirdPartyModule)+7,name:"thirdPartyModules",abbreviation:"3p",dependencies:[1,2],parameters:[Ma(pi)],options:{allowJSON:!1}}],bi="object"==typeof global&&global&&global.Object===Object&&global,Ii="object"==typeof self&&self&&self.Object===Object&&self,Ti=bi||Ii||Function("return this")(),Ai=Ti.Symbol,Ni=Object.prototype,Ri=Ni.hasOwnProperty,Di=Ni.toString,wi=Ai?Ai.toStringTag:void 0;var Ci=Object.prototype.toString;var Li="[object Null]",Mi="[object Undefined]",ji=Ai?Ai.toStringTag:void 0;function Pi(e){return null==e?void 0===e?Mi:Li:ji&&ji in Object(e)?function(e){var t=Ri.call(e,wi),r=e[wi];try{e[wi]=void 0;var n=!0}catch(e){}var a=Di.call(e);return n&&(t?e[wi]=r:delete e[wi]),a}(e):function(e){return Ci.call(e)}(e)}function Ui(e){return null!=e&&"object"==typeof e}var Vi="[object Symbol]";function Fi(e){return"symbol"==typeof e||Ui(e)&&Pi(e)==Vi}function Gi(e,t){for(var r=-1,n=null==e?0:e.length,a=Array(n);++r0){if(++bs>=800)return arguments[0]}else bs=0;return Ss.apply(void 0,arguments)}),Ds=Rs;function ws(e){return e!=e}function Cs(e,t){return!!(null==e?0:e.length)&&function(e,t,r){return t==t?function(e,t,r){for(var n=r-1,a=e.length;++n-1}var Ls=Math.max;function Ms(e,t){return Ds(function(e,t,r){return t=Ls(void 0===t?e.length-1:t,0),function(){for(var n=arguments,a=-1,i=Ls(n.length-t,0),s=Array(i);++a-1&&e%1==0&&e<=js}(e.length)&&!us(e)}function Us(e){return Ui(e)&&"[object Arguments]"==Pi(e)}var Vs=Object.prototype,Fs=Vs.hasOwnProperty,Gs=Vs.propertyIsEnumerable,xs=Us(function(){return arguments}())?Us:function(e){return Ui(e)&&Fs.call(e,"callee")&&!Gs.call(e,"callee")},qs=xs;function ks(e){return function(t){return e(t)}}var $s=Os(Object,"create");var zs=Object.prototype.hasOwnProperty;var Bs=Object.prototype.hasOwnProperty;function Ys(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t-1},Js.prototype.set=function(e,t){var r=this.__data__,n=Hs(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this};var Xs=Os(Ti,"Map");function Zs(e,t){var r=e.__data__;return function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?r["string"==typeof t?"string":"hash"]:r.map}function Ws(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t0&&r(o)?t>1?no(o,t-1,r,n,a):eo(a,o):n||(a[a.length]=o)}return a}function ao(e,t,r){var n=e.length;return r=void 0===r?n:r,!t&&r>=n?e:function(e,t,r){var n=-1,a=e.length;t<0&&(t=-t>a?0:a+t),(r=r>a?a:r)<0&&(r+=a),a=t>r?0:r-t>>>0,t>>>=0;for(var i=Array(a);++n=120&&l.length>=120)?new So(s&&l):void 0}l=e[0];var d=-1,h=o[0];e:for(;++dCo)return r;do{t%2&&(r+=e),(t=Lo(t/2))&&(e+=e)}while(t);return r}var jo,Po=(jo="length",function(e){return null==e?void 0:e[jo]}),Uo="\\ud800-\\udfff",Vo="["+Uo+"]",Fo="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",Go="\\ud83c[\\udffb-\\udfff]",xo="[^"+Uo+"]",qo="(?:\\ud83c[\\udde6-\\uddff]){2}",ko="[\\ud800-\\udbff][\\udc00-\\udfff]",$o="(?:"+Fo+"|"+Go+")"+"?",zo="[\\ufe0e\\ufe0f]?",Bo=zo+$o+("(?:\\u200d(?:"+[xo,qo,ko].join("|")+")"+zo+$o+")*"),Yo="(?:"+[xo+Fo+"?",Fo,qo,ko,Vo].join("|")+")",Ho=RegExp(Go+"(?="+Go+")|"+Yo+Bo,"g");function Qo(e){return so(e)?function(e){for(var t=Ho.lastIndex=0;Ho.test(e);)++t;return t}(e):Po(e)}var Jo=Math.ceil;function Xo(e,t){var r=(t=void 0===t?" ":zi(t)).length;if(r<2)return r?Mo(t,e):t;var n=Mo(t,Jo(e/Qo(t)));return so(t)?ao(Oo(n),0,e).join(""):n.slice(0,e)}function Zo(e,t,r){e=Ks(e);var n=(t=ns(t))?Qo(e):0;return t&&n=200){var u=t?null:Ko(e);if(u)return Io(u);s=!1,a=bo,c=new So}else c=t?[]:o;e:for(;++ne.core?tc(Object.keys(e.core.purpose.consents).filter((t=>!0===e.core.purpose.consents[t])).map((e=>+e)),Object.keys(e.core.purpose.legitimateInterests).filter((t=>!0===e.core.purpose.legitimateInterests[t])).map((e=>+e))).concat(Object.keys(e.core.specialFeatureOptins).filter((t=>!0===e.core.specialFeatureOptins[t])).map((e=>+e+10))):tc(Object.keys(e.purpose.consents).filter((t=>!0===e.purpose.consents[t])).map((e=>+e)),Object.keys(e.purpose.legitimateInterests).filter((t=>!0===e.purpose.legitimateInterests[t])).map((e=>+e))).concat(Object.keys(e.specialFeatureOptins).filter((t=>!0===e.specialFeatureOptins[t])).map((e=>+e+10)));var nc=(e,t)=>{const r=((e,t)=>e.core?wo(tc(Object.keys(e.core.vendorConsents).filter((t=>!0===e.core.vendorConsents[t])).map((e=>+e)),Object.keys(e.core.vendorLegitimateInterests).filter((t=>!0===e.core.vendorLegitimateInterests[t])).map((e=>+e))),t):wo(tc(Object.keys(e.vendor.consents).filter((t=>!0===e.vendor.consents[t])).map((e=>+e)),Object.keys(e.vendor.legitimateInterests).filter((t=>!0===e.vendor.legitimateInterests[t])).map((e=>+e))),t))(e,t),n=[];for(let a=0,i=t.length;ae.map((e=>2**(e-1))).reduce(((e,t)=>e+t),0);class ic{constructor(e,t,r){Object.defineProperties(this,{type:{value:e,writable:!1,enumerable:!0,configurable:!1},value:{value:t,writeable:!1,enumerable:!0,configurable:!1},vendors:{value:r,writeable:!1,enumerable:!0,configurable:!1}})}check(e,t){const r=this.vendors.indexOf(e),n=Array.isArray(t)?t:[t];if(r>-1){let e=ac(n);if(r{const{category:t,validated:r}=e;if(!r){if(!t||!Object.values(lc.CATEGORIES).includes(t))throw new xt(4,1,3,1,1);e.validated=!0}};class lc extends ${constructor(){super(),this.moduleId=3,this.data=void 0}setItem(e,t,r){try{uc(r);const{category:n}=r;void 0===this.data&&(this.data={global:{},measurement:{},sensor:{},feature:{},plugins:{},thirdPartyPlugins:{},tcf:{},bundleLoaded:{},version:{}}),this.data[n][e]=t,this.emit(lc.generateDataMutationEventName(lc.MUTATION_EVENTS.SET,n,e),{key:e,value:t,category:n})}catch(e){throw new xt(4,1,this.moduleId,2,1,e instanceof xt?e:e.message)}}setItems(e,t,r){uc(r);for(let n=0,a=e.length;n{if(t.tcf){const{value:r}=e.manager.dataLayer.getItem("consentString",{category:"tcf"});r instanceof sc&&t.queue.queue.items.forEach(((e,n)=>{"configure"===e[0]&&(e[1].consentString=r.toString(16),t.queue.queue.items[n]=e)}))}},hc=(e,t,r)=>{if(t.tcf){const{value:t}=e.manager.dataLayer.getItem("consentString",{category:"tcf"});t instanceof sc&&(r.consentString=t.toString(16))}return r},fc=(e,r,n)=>"object"===t(r)?Object.keys(r).reduce(((t,a)=>(n.parameterBlacklist&&n.parameterBlacklist[e]&&n.parameterBlacklist[e].includes(a)||(t[a]=r[a]),t)),{}):r;class mc extends ${constructor(e,t){super(),this.moduleId=2,this.manager=e,this.defaultModules=t.map((e=>e.name)),this.modules=new Map(t.map((e=>[e.name,{...e,queue:new $t(void 0,{mode:$t.MODE.MANUAL}),active:!1,tcf:!!e.tcf}]))),this.manager.dataLayer.on(lc.generateDataMutationEventName(lc.MUTATION_EVENTS.SET,lc.CATEGORIES.TCF,"consentString"),(()=>{this.handleConsentChanged()}))}addModule(e,t){if(this.modules.has(e)){const e=new xt(3,1,this.moduleId,3,1);this.emit(mc.EVENTS.ADD_MODULE,e)}else this.modules.set(e,{...t,queue:new $t(void 0,{mode:$t.MODE.MANUAL}),active:!1})}addFacade(e,t){const r=this.modules.get(e);r.queue.addFacadeFactory(t),this.modules.set(e,r)}removeFacade(e){const t=this.modules.get(e);t.queue.removeFacadeFactory(),this.modules.set(e,t)}activate(e){const t=this.modules.get(e);dc(this,t),t.active=!0,t.queue.options.mode=$t.MODE.AUTO,t.queue.dequeue(),this.modules.set(e,t)}deactivate(e){const t=this.modules.get(e);t.active=!1,t.queue.options.mode=$t.MODE.MANUAL,t.queue.flush(),this.modules.set(e,t)}enqueue(e,t={}){try{this.modules.forEach(((r,n)=>{if(-1===this.defaultModules.indexOf(n))return;let i=a(t);i=fc(e,t,r),"configure"===e&&(i=hc(this,r,i)),r.queue.enqueue(e,i)}))}catch(e){const t=new xt(3,1,this.moduleId,1,1,e);throw this.emit(mc.EVENTS.ENQUEUE_ERROR,t),t}}enqueueToSingleModule(e,t,r={}){try{const n=this.modules.get(e);if(n){let e=a(r);e=fc(t,r,n),"configure"===t&&(e=hc(this,n,e)),n.queue.enqueue(t,e)}}catch(e){const t=new xt(3,1,this.moduleId,4,1,e);throw this.emit(mc.EVENTS.ENQUEUE_ERROR,t),t}}dequeue(){try{this.modules.forEach(((e,t)=>{-1!==this.defaultModules.indexOf(t)&&e.queue.dequeue()}))}catch(e){const t=new xt(3,1,this.moduleId,2,1,e);throw this.emit(mc.EVENTS.ENQUEUE_ERROR,t),t}}handleConsentChanged(){try{this.modules.forEach((e=>{dc(this,e)}))}catch(e){const t=new xt(xt.TYPES.ERROR,3,this.moduleId,5,2,e.message);this.emit(mc.EVENTS.EXECUTION_ERROR,t)}}}mc.EVENTS={MODULE_NOT_LOADED:"MODULE_NOT_LOADED",QUEUE_CREATION_ERROR:"QUEUE_CREATION_ERROR",QUEUE_DOES_NOT_EXIST:"QUEUE_DOES_NOT_EXIST",ENQUEUE_ERROR:"ENQUEUE_ERROR",DEQUEUE_ERROR:"DEQUEUE_ERROR",ADD_MODULE:"ADD_MODULE",EXECUTION_ERROR:"EXECUTION_ERROR"};const Ec=1,pc=2,vc=3;const _c={sensors:{iomb:{bit:1,cdn:{host:()=>"dsn",path:({ecmaVersion:e,variant:t,version:r})=>`/iomb/${r}/sensor/manager/${t}/${e}/bundle.js`},parameterBlacklist:{configure:["panelIdentifier","panelVendorId"]}},iomp:{bit:4,tcf:{consent:[1,8],vendor:730},cdn:{host:({country:e})=>"at"===e?"script-at.iocnt.net":"script.ioam.de",path:({ecmaVersion:e,variant:t,version:r})=>`/sensor/${r}/manager/${t}/${e}/bundle.js`},parameterBlacklist:{configure:[]}}},modules:{id2:{cdn:{host:({country:e})=>"at"===e?"id2.iocnt.net":"id2.ioam.de",path:()=>`/${function(e=8){let t="";const r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";for(let n=0;n"at"===e?{ios:"IOMbOEWAHybridMessageHandler",android:"IOMbOEWAHybridBridge"}:{ios:"IOMbHybridMessageHandler",android:"IOMbHybridBridge"}},metaTags:{loading:"iomm_config_loading"}};var gc=_c;const Oc=1,yc=2,Sc=3,bc=e=>gc.sensors[e]?{name:e,...gc.sensors[e]}:gc.modules[e]?{name:e,...gc.modules[e]}:null;var Ic=(e=Oc)=>{const t=[];return e!==Oc&&e!==yc||Object.keys(gc.sensors).forEach((e=>{t.push({name:e,...gc.sensors[e]})})),e!==Oc&&e!==Sc||Object.keys(gc.modules).forEach((e=>{t.push({name:e,...gc.modules[e]})})),t};const Tc={iomb:"IOMb",iomp:"IOMp",id2:"IOMi"};class Ac extends ${constructor(e,t,r=gc){if(super(),this.moduleId=4,void 0===e)throw new xt(4,1,this.moduleId,1,1);this.dataLayer=e,this.manager=t,this.settings=r}load(t,r,n=!1){return new Promise(((a,i)=>{try{const s={category:lc.CATEGORIES.SENSOR},o=this.dataLayer.getItem(r,s);if(o&&void 0===o.value){const o={url:t},{value:c="async"}=this.dataLayer.getItem("loading",{category:lc.CATEGORIES.GLOBAL});o[c]=c,r!==Ac.BUNDLE_VARIANTS.IOMP&&r!==Ac.BUNDLE_VARIANTS.QDS&&(o.crossOrigin="anonymous"),e(o).then((()=>{const e=Tc[r],t=window[e];t?(n||delete window[e],this.dataLayer.setItem(r,"function"==typeof t?t:()=>t,s),a()):i(new xt(3,1,this.moduleId,2,2))})).catch((e=>{i(new xt(3,1,this.moduleId,2,1,e.message))}))}else a()}catch(e){i(new xt(3,1,this.moduleId,2,3,e.message))}}))}generateSensorUrl(e){const t=bc(e.sensorVariant);if(void 0===e.sensorVariant||void 0===t)throw new xt(3,1,this.moduleId,3,1);const r=this.dataLayer.getItem("country",{category:lc.CATEGORIES.GLOBAL}).value;let a="base";const i=this.settings.hybrid.apiKeys;e.sensorVariant!==Ac.BUNDLE_VARIANTS.IOMB&&e.sensorVariant!==Ac.BUNDLE_VARIANTS.IOMP||!function(e,t,r=Ec){const{value:a}=e.dataLayer.getItem("hybrid",{category:"global"}),i=n(t),s=Object.keys(t),o=e.commandProcessor.history.has(6)||e.commandProcessor.commandQueue.queue.items.findIndex((([e])=>"smi"===e||"setMultiIdentifier"===e))>-1;return r===pc?!0===a&&s.includes(i):r===vc?!0===a&&o:!0===a&&(s.includes(i)||o)}(this.manager,i(r),pc)||(a="hybrid");const{value:s}=this.dataLayer.getItem(t.name,{category:lc.CATEGORIES.VERSION});let o=(0,t.cdn.host)({country:r});"dsn"===o&&(o=this.dataLayer.getItem("domainServiceName",{category:lc.CATEGORIES.GLOBAL}).value);const c={ecmaVersion:window[window.IOMmGlobalObject].esm?"es6":"es5",variant:a,version:s||"latest"};return`//${o}${(0,t.cdn.path)(c)}`}generateModuleUrl(e){const t=bc(e.moduleVariant);if(void 0===e.moduleVariant||void 0===t)throw new xt(3,1,this.moduleId,4,1);const{value:r}=this.dataLayer.getItem(t.name,{category:lc.CATEGORIES.VERSION});let n=(0,t.cdn.host)({country:this.dataLayer.getItem("country",{category:lc.CATEGORIES.GLOBAL}).value});"dsn"===n&&(n=this.dataLayer.getItem("domainServiceName",{category:lc.CATEGORIES.GLOBAL}).value);const a={ecmaVersion:window[window.IOMmGlobalObject].esm?"es6":"es5",version:r||"latest"};return`//${n}${(0,t.cdn.path)(a)}`}}Ac.BUNDLE_VARIANTS={IOMB:"iomb",IOMP:"iomp",ID2:"id2"},Ac.LOADING_METHODS={ASYNC:"async",DEFER:"defer"},Ac.LOADING_STATUS={LOADING:1,LOADED:2,LOADING_FAILED:3};const Nc=e=>{window.__tcfapi("removeEventListener",2,(()=>{}),e)},Rc=(e,t)=>{e&&e.listenerId>=0&&(t.stopPolling?Nc(e.listenerId):t.tcfApiListenerIds.push(e.listenerId))},Dc=e=>(t,r)=>{try{if(Rc(t,e),e.stopPolling)return;let n;r&&e.settings.tcf.events.includes(t.eventStatus)&&!0===t.gdprApplies?(n=e.convert(t),e.emit(Cc.EVENTS.TCF_DATA_PROCESSED),window.__tcfapi("removeEventListener",2,(()=>{}),t.listenerId)):(n=sc.create(e.vendors,[[0],[0]],sc.TYPES.TCF2X),e.emit(Cc.EVENTS.TCF_DATA_CANNOT_BE_PROCESSED)),e.dataLayer.setItem("consentString",n,{category:lc.CATEGORIES.TCF})}catch(t){const r=new xt(xt.TYPES.ERROR,3,6,1,1,t.message);e.emit(Cc.EVENTS.TCF_DATA_PROCESSING_ERROR,r)}},wc=e=>{e.stopPolling||(window.__tcfapi&&"function"==typeof window.__tcfapi?(window.__tcfapi("addEventListener",2,Dc(e)),window.__tcfapi("addEventListener",2,(e=>(t,r)=>{Rc(t,e),e.stopPolling||r&&"cmpuishown"===t.eventStatus&&window.__tcfapi("addEventListener",2,Dc(e))})(e))):(e.numberOfTries{wc(e)}),e.numberOfTries{Nc(e)})),this.stopPolling=!0}catch(e){const t=new xt(xt.TYPES.ERROR,3,this.moduleId,6,1,e.message);throw this.emit(Cc.EVENTS.TCF_API_CANNOT_STOP,t),t}}}Cc.EVENTS={TCF_DATA_PROCESSED:"TCF_DATA_PROCESSED",TCF_DATA_CANNOT_BE_PROCESSED:"TCF_DATA_CANNOT_BE_PROCESSED",TCF_API_NOT_ACCESSIBLE:"TCF_API_NOT_ACCESSIBLE",TCF_DATA_PROCESSING_ERROR:"TC_DATA_PROCESSING_ERROR",TCF_API_CANNOT_STOP:"TCF_API_CANNOT_STOP"};var Lc=e=>{try{e.handledBfCache||(window.addEventListener("pageshow",(t=>{if(!0===t.persisted){const t=e.dataLayer.getItems(["code","comment","pixelType"],{category:"measurement"}).reduce(((e,{key:t,value:r})=>(e[t]=r,e)),{});setTimeout((()=>{e.command("pageview",t)}),0)}})),e.handledBfCache=!0)}catch(t){e.emit("EXECUTION_ERROR",t)}};var Mc=(e,t)=>{try{const r=new sc(sc.TYPES.NONE,parseInt(e.substring(2),16),t.settings.tcf.vendors);if(r.toString(16)!==`00${e.substring(2)}`){throw new xt(xt.TYPES.ERROR,3,1,3,1)}return t.tcfProcessor.stop(),r}catch(e){return t.emit("MANUAL_CONSENT_ERROR",e),null}};var jc=(e,t)=>{e!==Ac.LOADING_METHODS.ASYNC&&e!==Ac.LOADING_METHODS.DEFER||t.dataLayer.setItem("loading",e,{category:lc.CATEGORIES.GLOBAL})};var Pc=(e,t,r)=>{const n=t.toLowerCase().replace("v.","").replace("v","");if(n.match(/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/)){if(e.includes("iomm_config_version_sensor")){Ic(yc).forEach((t=>{e.toLowerCase()===`iomm_config_version_sensor_${t.name}`&&r.dataLayer.setItem(t.name,n,{category:lc.CATEGORIES.VERSION})}))}if(e.includes("iomm_config_version_3p")||e.includes("iomm_config_version_ext")){Ic(Sc).forEach((n=>{e.toLowerCase()!==`iomm_config_version_3p_${n.name}`&&e.toLowerCase()!==`iomm_config_version_ext_${n.name}`||r.dataLayer.setItem(n.name,t,{category:lc.CATEGORIES.VERSION})}))}}};var Uc=e=>{try{document.querySelectorAll("meta").forEach((t=>{const r=t.getAttribute("name"),n=t.getAttribute("content");r&&n&&(r===e.settings.metaTags.loading&&jc(n,e),r.includes("iomm_config_version")&&Pc(r,n,e))}))}catch(t){const r=new xt(xt.TYPES.ERROR,3,1,4,1,t.message);e.emit("EXECUTION_ERROR",r)}};const Vc=(e,t)=>{try{const{value:r}=t.dataLayer.getItem("methods",{category:lc.CATEGORIES.GLOBAL});e.filter((e=>void 0===e.bit||(r&e.bit)===e.bit)).forEach((e=>{let r=!e.tcf;const n=t.dataLayer.getItem(e.name,{category:lc.CATEGORIES.SENSOR});if(e.tcf){const{value:a}=t.dataLayer.getItem("consentString",{category:lc.CATEGORIES.TCF});a&&a instanceof sc?(r=a.check(e.tcf.vendor,e.tcf.consent),r?(n.value||t.commandDispatcher.activate(e.name),t.dataLayer.on(lc.generateDataMutationEventName(lc.MUTATION_EVENTS.SET,lc.CATEGORIES.TCF,"consentString"),(()=>{Fc([e],t)}))):t.dataLayer.once(lc.generateDataMutationEventName(lc.MUTATION_EVENTS.SET,lc.CATEGORIES.TCF,"consentString"),(()=>{Vc([e],t)}))):t.dataLayer.once(lc.generateDataMutationEventName(lc.MUTATION_EVENTS.SET,lc.CATEGORIES.TCF,"consentString"),(()=>{Vc([e],t)}),e.name)}else t.commandDispatcher.activate(e.name);if(n.value)t.commandDispatcher.addFacade(e.name,n.value);else if(r){let r;t.dataLayer.once(lc.generateDataMutationEventName(lc.MUTATION_EVENTS.SET,lc.CATEGORIES.SENSOR,e.name),(()=>{Vc([e],t)})),r=Object.keys(t.settings.sensors).includes(e.name)?t.bundleLoader.generateSensorUrl({sensorVariant:e.name}):t.bundleLoader.generateModuleUrl({moduleVariant:e.name});const{value:n}=t.dataLayer.getItem(e.name,{category:lc.CATEGORIES.BUNDLE_LOADED});n||(t.dataLayer.setItem(e.name,Ac.LOADING_STATUS.LOADING,{category:lc.CATEGORIES.BUNDLE_LOADED}),t.bundleLoader.load(r,e.name,e.cdn.static).then((()=>{t.dataLayer.setItem(e.name,Ac.LOADING_STATUS.LOADED,{category:lc.CATEGORIES.BUNDLE_LOADED})})).catch((r=>{t.emit("EXECUTION_ERROR",r),t.dataLayer.setItem(e.name,Ac.LOADING_STATUS.LOADING_FAILED,{category:lc.CATEGORIES.BUNDLE_LOADED})})))}}))}catch(e){t.emit("EXECUTION_ERROR",e)}},Fc=(e,t)=>{try{e.filter((e=>{const{value:r}=t.dataLayer.getItem("methods",{category:lc.CATEGORIES.GLOBAL});return void 0===e.bit||(r&e.bit)===e.bit})).forEach((e=>{const{value:r}=t.dataLayer.getItem("consentString",{category:lc.CATEGORIES.TCF});if(r&&r instanceof sc){if(!1===r.check(e.tcf.vendor,e.tcf.consent))t.commandDispatcher.removeFacade(e.name),t.commandDispatcher.deactivate(e.name);else{const r=t.dataLayer.getItem(e.name,{category:lc.CATEGORIES.SENSOR});r&&r.value?(t.commandDispatcher.addFacade(e.name,r.value),t.commandDispatcher.activate(e.name)):Vc([e],t)}}}))}catch(e){t.emit("EXECUTION_ERROR",e)}};class Gc extends ${constructor(e,t=gc){super(),this.moduleId=1,this.commandQueue=e,this.commandProcessor=new da(e,Si,{fillParameters:!0,maxExecutionBeforeStop:3}),this.dataLayer=new lc,this.commandDispatcher=new mc(this,Ic(yc)),this.settings=t,this.bundleLoader=new Ac(this.dataLayer,this,this.settings),this.tcfProcessor=new Cc(this.settings.tcf.vendors,this.dataLayer,this.settings),this.skipExecution=!1,this.handledBfCache=!1,this.tcfProcessor.process(),Uc(this)}command(e,...t){try{this.commandProcessor.commandSerializer.reset();const r=this.commandProcessor.process(e,...t);if(r&&r.parameters){switch(e){case Gc.COMMANDS.CONFIGURE:if(r.parameters.consentString){const e=Mc(r.parameters.consentString,this);e&&e instanceof sc&&(r.parameters.consentString=e.toString(16),this.dataLayer.setItem("consentString",e,{category:lc.CATEGORIES.TCF})),null===e&&delete r.parameters.consentString}this.dataLayer.setItems(Object.keys(r.parameters),Object.values(r.parameters),{category:lc.CATEGORIES.GLOBAL}),r.parameters.identity20&&(delete r.parameters.identity20,"undefined"!=typeof Storage&&localStorage.removeItem&&(localStorage.removeItem("i2"),localStorage.removeItem("i2LabelId"))),Vc(Ic(yc),this);break;case Gc.COMMANDS.PAGEVIEW:this.dataLayer.deleteItem("event",{category:lc.CATEGORIES.MEASUREMENT}),this.dataLayer.setItems(Object.keys(r.parameters),Object.values(r.parameters),{category:lc.CATEGORIES.MEASUREMENT}),Lc(this);break;case Gc.COMMANDS.THIRD_PARTY_MODULES:bc(r.parameters.thirdPartyModule)&&((e,t)=>{try{const r=bc(e.thirdPartyModule);t.commandDispatcher.addModule(r.name,r),t.commandDispatcher.enqueueToSingleModule(r.name,"configure",e),Vc([r],t)}catch(e){t.emit(Gc.EVENTS.EXECUTION_ERROR,e)}})(r.parameters,this),this.skipExecution=!0;break;case Gc.COMMANDS.EVENT:this.dataLayer.setItem("event",r.parameters.event,{category:lc.CATEGORIES.MEASUREMENT});break;case Gc.COMMANDS.SET_MULTI_IDENTIFIER:this.dataLayer.setItem("multiIdentifier",r.parameters.multiIdentifier,{category:lc.CATEGORIES.GLOBAL}),this.commandDispatcher.enqueueToSingleModule(Ac.BUNDLE_VARIANTS.IOMP,Gc.COMMANDS.SET_MULTI_IDENTIFIER,r.parameters.multiIdentifier),this.skipExecution=!0}return!1===this.skipExecution&&this.commandDispatcher.enqueue(e,r.parameters),void(this.skipExecution=!1)}throw new xt(xt.TYPES.FATAL,3,1,1,1,this.commandProcessor.commandSerializer.lastAssertion)}catch(e){throw e instanceof xt?e:new xt(xt.TYPES.FATAL,3,1,1,2,e.message)}}}function xc(e){const t=new Gc(e);return{cf(...e){t.command(Gc.COMMANDS.CONFIGURE,...e)},configure(...e){t.command(Gc.COMMANDS.CONFIGURE,...e)},pv(...e){t.command(Gc.COMMANDS.PAGEVIEW,...e)},pageview(...e){t.command(Gc.COMMANDS.PAGEVIEW,...e)},sm(...e){t.command(Gc.COMMANDS.SET_MODE,...e)},setMode(...e){t.command(Gc.COMMANDS.SET_MODE,...e)},"3p"(...e){t.command(Gc.COMMANDS.THIRD_PARTY_MODULES,...e)},thirdPartyModules(...e){t.command(Gc.COMMANDS.THIRD_PARTY_MODULES,...e)},event(...e){t.command(Gc.COMMANDS.EVENT,...e)},ev(...e){t.command(Gc.COMMANDS.EVENT,...e)},hybrid(...e){t.command(Gc.COMMANDS.HYBRID,...e)},hy(...e){t.command(Gc.COMMANDS.HYBRID,...e)},smi(...e){t.command(Gc.COMMANDS.SET_MULTI_IDENTIFIER,...e)},setMultiIdentifier(...e){t.command(Gc.COMMANDS.SET_MULTI_IDENTIFIER,...e)}}}Gc.COMMANDS={CONFIGURE:"configure",PAGEVIEW:"pageview",HYBRID:"hybrid",EVENT:"event",SET_MODE:"setMode",THIRD_PARTY_MODULES:"thirdPartyModules",SET_MULTI_IDENTIFIER:"setMultiIdentifier"},Gc.EVENTS={COMMAND_DOES_NOT_EXIST:"COMMAND_DOES_NOT_EXIST",EXECUTION_ERROR:"EXECUTION_ERROR",MANUAL_CONSENT_ERROR:"MANUAL_CONSENT_ERROR"};const qc="IOMmGlobalObject"in window?window.IOMmGlobalObject:window.IOMmGlobalObject="IOMm",kc=window[qc]||(window[qc]=(...e)=>{(window[qc].q=window[qc].q||[]).push(...e)});kc.version="1.10.4",window.iom||(window.iom={},window.iom.smi=window.iom.setMultiIdentifier=e=>kc("setMultiIdentifier",e)),kc.q=new $t(xc,{multiTenancy:!0},kc.q),kc.create=xc}();