"use strict";(()=>{var Ze=e=>{let n=document.cookie.split("; ").find(r=>r.startsWith(e+"="));return n?decodeURIComponent(n.split("=")[1]??""):null},Ke=(e,t,n={})=>{let r=`${encodeURIComponent(e)}=${encodeURIComponent(t)}`;if(n.days){let o=new Date(Date.now()+n.days*864e5).toUTCString();r+=`; expires=${o}`}r+=n.path?`; path=${n.path}`:"; path=/",r+=n.domain?`; domain=${n.domain}`:"",r+=n.secure?"; secure":"",document.cookie=r};var bo="tagsjs_debug_mode",qe=e=>{let{tag:t="common"}=e,n=localStorage.getItem(bo)==="true"||!1;return{log:(...r)=>{n&&console.log(`tagsjs(${t}):`,...r)},info:(...r)=>{n&&console.info(`tagsjs(${t}):`,...r)},warn:(...r)=>console.warn(`tagsjs(${t}):`,...r),error:(...r)=>console.error(`tagsjs(${t}):`,...r)}};var xo="tagsjs_dev_override",So="http://localhost:3000",Gn=!1,Co=()=>{if(Gn)return!0;let e=null;try{e=localStorage.getItem(xo)}catch{return!1}if(!e)return!1;let t=e==="true"?`${So}/jobs.js`:e;try{let r=new URL(t);if(!((r.protocol==="http:"||r.protocol==="https:")&&(r.hostname==="localhost"||r.hostname==="127.0.0.1"||r.hostname==="[::1]"||r.hostname==="::1")))return console.warn(`tagsjs: dev override target ${t} is not a loopback URL \u2014 ignoring.`),!1}catch{return console.warn(`tagsjs: dev override value ${e} is not a valid absolute URL \u2014 ignoring.`),!1}Gn=!0;let n=document.createElement("script");return n.src=t,n.dataset.tagsjsDevOverride="true",n.onerror=()=>console.error(`tagsjs: dev override failed to load ${t} \u2014 is 'pnpm dev' running? (mixed-content/CSP can also block this)`),(document.head||document.documentElement).appendChild(n),console.warn(`tagsjs: DEV OVERRIDE active \u2014 loading ${t} instead of the production bundle.`),!0},$n=Co;var To=e=>{$n()||(document.readyState==="loading"?window.addEventListener("DOMContentLoaded",e):e())},Jn=To;var Yn=!1,Wt=()=>{Yn||(Yn=!0,window.dataLayer=window.dataLayer||[],window.dataLayer.push=new Proxy(window.dataLayer.push,{apply:(e,t,n)=>{let r=e.apply(t,n),o=new CustomEvent("tagsjs.dataLayerPush",{detail:n});return window.dispatchEvent(o),r}}))};var Xn=()=>e=>e();var Wn=(e,t,n)=>r=>{let o=qe({tag:n.name}),a=n.conditions??[];o.info("init",t);for(let u of a)if(u.immediate&&!u.test()){o.info(`condition failed: ${u.name}`);return}let s=!1;n.trigger(()=>{if(s)return;s=!0;for(let c of a)if(!c.immediate&&!c.test()){o.info(`condition failed: ${c.name}`);return}let u=n.capping,l=0;if(u&&(l=+(Ze(u.cookieName)??0),o.info(`cappingViews: ${l}, capping.count: ${u.count}`),l>=u.count)){o.info("cap reached - do not fire");return}for(let c of n.effects??[])o.info(`effect: ${c.name}`),c.run(o);for(let c of n.gate??[])if(!c.test()){o.info(`gate failed: ${c.name}`);return}Promise.resolve(e(t,{log:o,cappingViews:l,variables:r})).then(()=>{u&&Ke(u.cookieName,`${l+1}`,{days:u.days})}).catch(c=>o.error("tag failed",c))})},Qn=e=>{let t=e.variables??{offers:{}};Jn(()=>{for(let n of e.tags)try{n(t)}catch(r){qe({tag:"container"}).error("tag entry failed",r)}})};var U=function(){return U=Object.assign||function(t){for(var n,r=1,o=arguments.length;r0&&a[a.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!a||c[1]>a[0]&&c[1]>18&63,a=l>>12&63,s=l>>6&63,u=l&63,v[f++]=Ie.charAt(o)+Ie.charAt(a)+Ie.charAt(s)+Ie.charAt(u);while(c>16&255,r=c>>8&255,o=c&255,u===64?w[v++]=String.fromCharCode(n):l===64?w[v++]=String.fromCharCode(n,r):w[v++]=String.fromCharCode(n,r,o);while(f=pe.error&&typeof console<"u"){var f=Ot+s+` `;u?console.error.apply(console,W([f+` `,u],l,!1)):console.error.apply(console,W([f],l,!1))}}function r(s,u){for(var l=[],c=2;c=pe.warn&&typeof console<"u"){var f=Ot+s;u?console.warn.apply(console,W([f+` `,u],l,!1)):console.warn.apply(console,W([f],l,!1))}}function o(s){for(var u=[],l=1;l=pe.debug&&typeof console<"u"&&console.debug.apply(console,W([Ot+s],u,!1))}function a(s){for(var u=[],l=1;l=pe.info&&typeof console<"u"&&console.info.apply(console,W([Ot+s],u,!1))}return{setLogLevel:t,warn:r,error:n,debug:o,info:a}}function Uo(){var e=[],t=[],n={},r={},o=function(a){var s=qo(a),u=Go(a),l=[],c=en(e.concat(Object.values(n)),a,u,s);l.push.apply(l,c);var f=Xo(t.concat(Object.values(r)),a,u,s);return l.push.apply(l,f),l};return{getGlobalPrimitives:function(){return e.concat(Object.values(n))},getConditionalProviders:function(){return t.concat(Object.values(r))},addGlobalContexts:function(a){if(Array.isArray(a)){for(var s=[],u=[],l=0,c=a;l0){for(var t=!1,n=0,r=e.slice(2);n1?No(t):!1}function ar(e){var t=new RegExp("^iglu:((?:(?:[a-zA-Z0-9-_]+|\\*).)+(?:[a-zA-Z0-9-_]+|\\*))/([a-zA-Z0-9-_.]+|\\*)/jsonschema/([1-9][0-9]*|\\*)-(0|[1-9][0-9]*|\\*)-(0|[1-9][0-9]*|\\*)$"),n=t.exec(e);if(n!==null&&ir(n[1]))return n.slice(1,6)}function Kt(e){var t=ar(e);if(t){var n=t[0];return t.length===5&&ir(n)}return!1}function zo(e){return Array.isArray(e)&&e.every(function(t){return typeof t=="string"})}function Kn(e){return zo(e)?e.every(function(t){return Kt(t)}):typeof e=="string"?Kt(e):!1}function tt(e){var t=e;return rr(t)&&"schema"in t&&"data"in t?typeof t.schema=="string"&&typeof t.data=="object":!1}function Bo(e){var t=e,n=0;if(e!=null&&typeof e=="object"&&!Array.isArray(e)){if(Object.prototype.hasOwnProperty.call(t,"accept"))if(Kn(t.accept))n+=1;else return!1;if(Object.prototype.hasOwnProperty.call(t,"reject"))if(Kn(t.reject))n+=1;else return!1;return n>0&&n<=2}return!1}function Rt(e){return typeof e=="function"&&e.length<=1}function ge(e){return Rt(e)||tt(e)}function sr(e){return Array.isArray(e)&&e.length===2?Array.isArray(e[1])?Rt(e[0])&&e[1].every(ge):Rt(e[0])&&ge(e[1]):!1}function ur(e){return Array.isArray(e)&&e.length===2&&Bo(e[0])?Array.isArray(e[1])?e[1].every(ge):ge(e[1]):!1}function et(e){return sr(e)||ur(e)}function Fo(e,t){var n=0,r=0,o=e.accept;Array.isArray(o)?e.accept.some(function(s){return _t(s,t)})&&r++:typeof o=="string"&&_t(o,t)&&r++;var a=e.reject;return Array.isArray(a)?e.reject.some(function(s){return _t(s,t)})&&n++:typeof a=="string"&&_t(a,t)&&n++,r>0&&n===0?!0:(r===0&&n>0,!1)}function _t(e,t){if(!Kt(e))return!1;var n=ar(e),r=Vo(t);if(n&&r){if(!Ho(n[0],r[0]))return!1;for(var o=1;o<5;o++)if(!cr(n[o],r[o]))return!1;return!0}return!1}function Ho(e,t){var n=t.split("."),r=e.split(".");if(n&&r){if(n.length!==r.length)return!1;for(var o=0;on;)a.shift();return s()},removeHead:function(u){for(var l=0;l0?x[0].getServerAnonymization():void 0}function oe(P){return x.length>0&&F()!==P.getServerAnonymization()?!1:(x.push(P),!0)}function ue(){return x}function ce(){return z?B()>=S:x.length>=1}function H(){var P=new Headers;return z&&P.append("Content-Type","application/json; charset=UTF-8"),u&&Object.keys(u).forEach(function(D){P.append(D,u[D])}),F()&&P.append("SP-Anonymous","*"),P}function $(){var P=t;t.includes("://")||(P="".concat(r,"://").concat(t)),o&&(P="".concat(P,":").concat(o));var D=z?p:"/i";return P+D}function we(P,D){de(!1),T=new AbortController,g=setTimeout(function(){var Ne="Request timed out";console.error(Ne),g=void 0,de(!1,Ne)},l??5e3);var Z=U({headers:H(),signal:T.signal,keepalive:f,credentials:j},D),Oe=new Request(P,Z);return Oe}function be(){var P=ti(x.map(function(D){return D.getPOSTRequestBody()}));return we($(),{method:"POST",body:ei(P)})}function fe(){if(x.length!==1)throw new Error("Only one event can be sent in a GET request");var P=x[0],D=P.getGETRequestURL($(),h);return we(D,{method:"GET"})}function Ae(){if(x.length!==0)return z?be():fe()}function de(P,D){if(g!==void 0&&(clearTimeout(g),g=void 0),T!==void 0){var Z=T;T=void 0,P||Z.abort(D)}}return{addEvent:oe,getEvents:ue,toRequest:Ae,countBytes:B,countEvents:L,isFull:ce,closeRequest:de}}function tr(e){for(var t=0,n=0;n=55296&&r<=57343?(t+=4,n++):r<65535?t+=3:t+=4}return t}function ri(e){var t={co:!0,cx:!0},n=[];for(var r in e)e.hasOwnProperty(r)&&!t[r]&&n.push(r+"="+encodeURIComponent(e[r]));for(var o in t)e.hasOwnProperty(o)&&t[o]&&n.push(o+"="+encodeURIComponent(e[o]));return"?"+n.join("&")}function oi(e){var t=Object.keys(e).map(function(n){return[n,e[n]]}).reduce(function(n,r){var o=r[0],a=r[1];return n[o]=a.toString(),n},{});return t}function nr(e){var t=null,n=null,r=null,o=null;function a(){return e.payload}function s(){var p;return(p=e.svrAnon)!==null&&p!==void 0?p:!1}function u(p){return t===null&&(t=ri(p)),t}function l(p,w){var h=u(a());return w?p+h.replace("?","?stm="+new Date().getTime()+"&"):p+h}function c(){if(r===null){var p=u(a());r=tr(p)}return r}function f(){return n===null&&(n=oi(a())),n}function v(){return o===null&&(o=tr(JSON.stringify(f()))),o}return{getPayload:a,getServerAnonymization:s,getGETRequestURL:l,getGETRequestBytesCount:c,getPOSTRequestBody:f,getPOSTRequestBytesCount:v}}function pr(e){var t=e.endpoint,n=e.eventMethod,r=n===void 0?"post":n,o=e.postPath,a=e.protocol,s=e.port,u=e.maxPostBytes,l=u===void 0?4e4:u,c=e.maxGetBytes,f=e.bufferSize,v=f===void 0?1:f,p=e.customHeaders,w=e.serverAnonymization,h=e.connectionTimeout,m=e.keepalive,S=e.cookieExtensionService,R=e.idService,j=e.dontRetryStatusCodes,x=j===void 0?[]:j,z=e.retryStatusCodes,g=z===void 0?[]:z,T=e.retryFailedRequests,B=T===void 0?!0:T,L=e.onRequestFailure,F=e.onRequestSuccess,oe=e.customFetch,ue=oe===void 0?fetch:oe,ce=e.useStm,H=e.eventStore,$=H===void 0?nt({}):H,we=e.credentials;S=S||R;var be=!1,fe=!1,Ae=r.toLowerCase()==="post";x=x.concat([400,401,403,410,422]);function de(b){return b>=200&&b<300||!B?!1:g.includes(b)?!0:!x.includes(b)}function P(b,C){F!==void 0&&setTimeout(function(){try{F?.(b,C)}catch(k){G.error("Error in onRequestSuccess",k)}},0)}function D(b,C){L!==void 0&&setTimeout(function(){try{L?.(b,C)}catch(k){G.error("Error in onRequestFailure",k)}},0)}function Z(b){return Ge(this,void 0,void 0,function(){var C,k,E,X,M,Y;return $e(this,function(V){switch(V.label){case 0:if(C=b.toRequest(),C===void 0)throw new Error("Empty batch");k=b.getEvents().map(function(ie){return ie.getPayload()}),V.label=1;case 1:return V.trys.push([1,4,,5]),[4,ue(C)];case 2:return E=V.sent(),[4,E.text()];case 3:return V.sent(),b.closeRequest(!0),E.ok?(P(k,E),[2,{success:!0,retry:!1,status:E.status}]):(X=de(E.status),D({events:k,status:E.status,message:E.statusText,willRetry:X},E),[2,{success:!1,retry:X,status:E.status}]);case 4:return M=V.sent(),b.closeRequest(!1),Y=typeof M=="string"?M:M?M.message:"Unknown error",D({events:k,message:Y,willRetry:!0}),[2,{success:!1,retry:!0}];case 5:return[2]}})})}function Oe(){return ni({endpoint:t,protocol:a,port:s,eventMethod:r,customHeaders:p,connectionTimeout:h,keepalive:m,maxPostBytes:l,useStm:ce,credentials:we,postPath:o})}function Ne(b){var C=function(X,M){return G.warn("Event ("+X+"B) too big, max is "+M)};if(Ae){var k=b.getPOSTRequestBytesCount()+88,E=k>l;return E&&C(k,l),E}else{if(c===void 0)return!1;var k=b.getGETRequestBytesCount(),E=k>c;return E&&C(k,c),E}}function ut(){return Ge(this,void 0,void 0,function(){var b;return $e(this,function(C){switch(C.label){case 0:return S&&!be?(be=!0,b=new Request(S,{method:"GET"}),[4,ue(b)]):[3,2];case 1:C.sent(),C.label=2;case 2:return[2]}})})}function ct(){return Ge(this,void 0,void 0,function(){var b;return $e(this,function(C){switch(C.label){case 0:if(fe)return[3,5];fe=!0,C.label=1;case 1:return C.trys.push([1,3,4,5]),[4,K()];case 2:return C.sent(),[3,5];case 3:return b=C.sent(),G.error("Error sending events",b),[3,5];case 4:return fe=!1,[7];case 5:return[2]}})})}function K(){return Ge(this,void 0,void 0,function(){var b,C,k,E,X,M,Y,V,ie,ze;return $e(this,function(ae){switch(ae.label){case 0:return[4,ut()];case 1:ae.sent(),b=Oe(),C=$.iterator(),ae.label=2;case 2:return b.isFull()?[3,4]:[4,C.next()];case 3:return k=ae.sent(),E=k.value,X=k.done,X||E===void 0?[3,4]:(M=nr(E),b.addEvent(M)?[3,2]:[3,4]);case 4:return b.countEvents()===0?[2]:[4,Z(b)];case 5:return Y=ae.sent(),V=Y.success,ie=Y.retry,ze=Y.status,V||!ie?(V||G.error("Status ".concat(ze,", will not retry.")),[4,$.removeHead(b.countEvents())]):[3,7];case 6:ae.sent(),ae.label=7;case 7:return V?[4,K()]:[3,9];case 8:ae.sent(),ae.label=9;case 9:return[2]}})})}function J(b){return Ge(this,void 0,void 0,function(){var C,k,E,X;return $e(this,function(M){switch(M.label){case 0:return C=Wo({payload:b,svrAnon:w}),k=nr(C),Ne(k)?(E=Oe(),E.addEvent(k),[4,Z(E)]):[3,2];case 1:return M.sent(),[3,5];case 2:return[4,$.add(C)];case 3:return X=M.sent(),X>=v?[4,ct()]:[3,5];case 4:M.sent(),M.label=5;case 5:return[2]}})})}function Vt(b){t=b}function me(b){w=b}function lt(b){v=b}return{flush:ct,input:J,setCollectorUrl:Vt,setAnonymousTracking:me,setBufferSize:lt}}var gr=Ao;function ii(e){for(var t=[],n=0;n>6,128|r&63);else if(r>=55296&&r<=56319&&n+1>18,128|r>>12&63,128|r>>6&63,128|r&63)}else t.push(224|r>>12,128|r>>6&63,128|r&63)}var a=t.length*8;for(t.push(128);t.length%64!==56;)t.push(0);t.push(0,0,0,0),t.push(a>>>24&255,a>>>16&255,a>>>8&255,a&255);for(var s=1732584193,u=4023233417,l=2562383102,c=271733878,f=3285377520,v=new Array(80),p=0;p>>31}for(var h=s,m=u,r=l,S=c,R=f,n=0;n<80;n++){var j=void 0,x=void 0;n<20?(j=m&r|~m&S,x=1518500249):n<40?(j=m^r^S,x=1859775393):n<60?(j=m&r|m&S|r&S,x=2400959708):(j=m^r^S,x=3395469782);var z=(h<<5|h>>>27)+j+R+x+v[n]|0;R=S,S=r,r=m<<30|m>>>2,m=h,h=z}s=s+h|0,u=u+m|0,l=l+r|0,c=c+S|0,f=f+R|0}for(var g="",T=0,B=[s,u,l,c,f];T>>0).toString(16);g+=(F.length<8?"00000000".slice(F.length):"")+F}return g}function ai(e){try{var t=window.localStorage,n=t.getItem(e+".expires");if(n===null||+n>Date.now())return t.getItem(e);t.removeItem(e),t.removeItem(e+".expires");return}catch{return}}function si(e,t,n){n===void 0&&(n=63072e3);try{var r=window.localStorage,o=Date.now()+n*1e3;return r.setItem("".concat(e,".expires"),o.toString()),r.setItem(e,t),!0}catch{return!1}}function yr(e){try{var t=window.localStorage;return t.removeItem(e),t.removeItem(e+".expires"),!0}catch{return!1}}function hr(e){try{return window.sessionStorage.getItem(e)}catch{return}}function ui(e,t){try{return window.sessionStorage.setItem(e,t),!0}catch{return!1}}var ci={sessionId:!0,sourceId:!0,sourcePlatform:!1,userId:!1,reason:!1};function li(e,t,n){var r,o,a=new Date().getTime(),s=U(U({},ci),t),u=n.domainUserId,l=n.userId,c=n.sessionId,f=n.sourceId,v=n.sourcePlatform,p=n.event,w=p.currentTarget,h=typeof s.reason=="function"?s.reason(p):(r=w?.textContent)===null||r===void 0?void 0:r.trim();return e?o=[u,a,s.sessionId&&c,s.userId&&on(l||""),s.sourceId&&on(f||""),s.sourcePlatform&&v,s.reason&&on(h||"")].map(function(m){return m||""}).join(".").replace(/([.]*$)/,""):o=n.domainUserId+"."+a,o}function on(e){return btoa(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/\=+$/,"")}function fi(e){return!!(e&&typeof e.valueOf()=="string")}function wr(e){return Number.isInteger&&Number.isInteger(e)||typeof e=="number"&&isFinite(e)&&Math.floor(e)===e}function di(){if(typeof Intl=="object"&&typeof Intl.DateTimeFormat=="function"){var e=new Intl.DateTimeFormat().resolvedOptions();return e.timeZone}}function br(e){if(!fi(e)){e=e.text||"";var t=document.getElementsByTagName("title");t&&t[0]!=null&&(e=t[0].text)}return e}function it(e){var t=new RegExp("^(?:(?:https?|ftp):)/*(?:[^@]+@)?([^:/#]+)"),n=t.exec(e);return n?n[1]:e}function xr(e){var t=e.length;return e.charAt(--t)==="."&&(e=e.slice(0,t)),e.slice(0,2)==="*."&&(e=e.slice(1)),e}function an(e){var t=window,n=at("referrer",t.location.href)||at("referer",t.location.href);if(n)return n;if(e)return e;try{if(t.top)return t.top.document.referrer;if(t.parent)return t.parent.document.referrer}catch{}return document.referrer}function le(e,t,n,r){if(e.addEventListener)return e.addEventListener(t,n,r),!0;if(e.attachEvent)return e.attachEvent("on"+t,n);e["on"+t]=n}function at(e,t){var n=new RegExp("^[^#]*[?&]"+e+"=([^&#]*)").exec(t);return n?decodeURIComponent(n[1].replace(/\+/g," ")):null}function mi(e,t,n){var r=t+"="+n,o=e.split("#"),a=o[0].split("?"),s=a.shift(),u=a.join("?");if(!u)u=r;else{for(var l=!0,c=u.split("&"),f=0;f=0;u--){var l=s.slice(u).join(".");if(Ee(o,a,0,"/",l,e,t),Ee(o)===a){Dt(o,"/",l,e,t);for(var c=pi(r),f=0;f1?document.cookie=e+"="+encodeURIComponent(t??"")+(n?"; Expires="+new Date(+new Date+n*1e3).toUTCString():"")+(r?"; Path="+r:"")+(o?"; Domain="+o:"")+(a?"; SameSite="+a:"")+(s?"; Secure":""):decodeURIComponent((("; "+document.cookie).split("; "+e+"=")[1]||"").split(";")[0])}function Pr(e){if(e==null||typeof e!="object"||Array.isArray(e))return function(){return!0};var t=Object.prototype.hasOwnProperty.call(e,"allowlist"),n=hi(e);return yi(e,function(r){return gi(r,n)===t})}function vn(e){return e.className.match(/\S+/g)||[]}function gi(e,t){for(var n=vn(e),r=0,o=n;r1?at(t,r[1]):null}function Sr(e,t,n){var r;return e==="translate.googleusercontent.com"?(n===""&&(n=t),t=(r=xi(t,"u"))!==null&&r!==void 0?r:"",e=it(t)):(e==="cc.bingj.com"||e==="webcache.googleusercontent.com")&&(t=document.links[0].href,e=it(t)),[e,t,n]}var kr=0,Pe=1,Si=2,st=3,pn=4,Er=5,ke=6,De=7,Ue=8,Me=9,ye=10;function Ci(){var e=["1","",0,0,0,void 0,"","","",void 0,0];return e}function Ti(e,t,n,r){var o=new Date,a=Math.round(o.getTime()/1e3),s;e?(s=e.split("."),s.unshift("0")):s=["1",t,a,r,a,"",n],(!s[ke]||s[ke]==="undefined")&&(s[ke]=ne()),(!s[De]||s[De]==="undefined")&&(s[De]=""),(!s[Ue]||s[Ue]==="undefined")&&(s[Ue]=""),(!s[Me]||s[Me]==="undefined")&&(s[Me]=""),(!s[ye]||s[ye]==="undefined")&&(s[ye]=0);var u=function(f,v){var p=parseInt(f);return isNaN(p)?v:p},l=function(f){return f?u(f,void 0):void 0},c=[s[kr],s[Pe],u(s[Si],a),u(s[st],r),u(s[pn],a),l(s[Er]),s[ke],s[De],s[Ue],l(s[Me]),u(s[ye],0)];return c}function Ii(e,t){var n;return e[Pe]?n=e[Pe]:t?(n="",e[Pe]=n):(n=ne(),e[Pe]=n),n}function rt(e,t){t===void 0&&(t={memorizedVisitCount:1});var n=t.memorizedVisitCount;dn(e)?(e[De]=e[ke],e[Er]=e[pn],e[st]++):e[st]=n;var r=ne();return e[ke]=r,e[ye]=0,e[Ue]="",e[Me]=void 0,r}function sn(e){e[pn]=Math.round(new Date().getTime()/1e3)}function Pi(e,t){if(e[ye]===0){var n=t.build();e[Ue]=n.eid;var r=n.dtm||n.ttm;e[Me]=r?parseInt(r):void 0}}function ki(e){e[ye]+=1}function Ei(e,t){var n=W([],e,!0);return t&&(n[Pe]="",n[De]=""),n.shift(),n.join(".")}function Cr(e,t,n){var r=e[Me],o={userId:n?"00000000-0000-0000-0000-000000000000":e[Pe],sessionId:e[ke],eventIndex:e[ye],sessionIndex:e[st],previousSessionId:n?null:e[De]||null,storageMechanism:t=="localStorage"?"LOCAL_STORAGE":"COOKIE_1",firstEventId:e[Ue]||null,firstEventTimestamp:r?new Date(r).toISOString():null};return o}function un(e){return e[ke]}function Ai(e){return e[Pe]}function cn(e){return e[st]}function dn(e){return e[kr]==="0"}function Tr(e){return e[ye]}var Oi="iglu:com.snowplowanalytics.snowplow/web_page/jsonschema/1-0-0",_i="iglu:com.snowplowanalytics.snowplow/browser_context/jsonschema/2-0-0",Li="iglu:com.snowplowanalytics.snowplow/client_session/jsonschema/1-0-2",Ri="iglu:com.snowplowanalytics.snowplow/application/jsonschema/1-0-0",ji="iglu:com.snowplowanalytics.snowplow/activity_metrics/jsonschema/1-0-0";function Di(){return"ResizeObserver"in window}var Ir=!1,ln=null;function Ui(){if(!Ir&&!(!document||!document.body||!document.documentElement)){Ir=!0;var e=new ResizeObserver(function(){ln||(ln=requestAnimationFrame(function(){ln=null,jt=mn()}))});e.observe(document.body),e.observe(document.documentElement)}}var jt;function fn(){return Di()?(jt||(jt=mn()),Ui(),jt):mn()}function mn(){return{viewport:Mi(),documentSize:Vi(),resolution:Ni(),colorDepth:screen.colorDepth,devicePixelRatio:window.devicePixelRatio,cookiesEnabled:window.navigator.cookieEnabled,online:window.navigator.onLine,browserLanguage:window.navigator.language||window.navigator.userLanguage,documentLanguage:document.documentElement.lang,webdriver:window.navigator.webdriver,deviceMemory:window.navigator.deviceMemory,hardwareConcurrency:Math.floor(window.navigator.hardwareConcurrency)||void 0}}function Mi(){var e,t;if("innerWidth"in window)e=window.innerWidth,t=window.innerHeight;else{var n=document.documentElement||document.body;e=n.clientWidth,t=n.clientHeight}return gn(Math.max(0,e),Math.max(0,t))}function Vi(){var e=document.documentElement,t=document.body,n=t?Math.max(t.offsetHeight,t.scrollHeight):0;return gn(Math.max(e.clientWidth,e.offsetWidth,e.scrollWidth),Math.max(e.clientHeight,e.offsetHeight,e.scrollHeight,n))}function Ni(){return gn(screen.width,screen.height)}function gn(e,t){return isNaN(e)||isNaN(t)?null:Math.floor(e)+"x"+Math.floor(t)}function zi(e){var t,n,r,o=!0,a=10,s=.05;function u(){var v;return n&&(!r||r>new Date)&&(v=n[0])!==null&&v!==void 0?v:Ee(e)}function l(v,p,w,h,m,S){return n=[v,p,w,h,m,S],o=!1,t===void 0&&(t=setTimeout(function(){t=void 0,f()},a)),r=new Date(Date.now()+Math.min(s,p??s)*1e3),!0}function c(v,p,w,h){n=void 0,o=!0,t!==void 0&&(clearTimeout(t),t=void 0),Dt(e,v,p,w,h)}function f(){if(t!==void 0&&(clearTimeout(t),t=void 0),!o&&(o=!0,n!==void 0)){var v=n[0],p=n[1],w=n[2],h=n[3],m=n[4],S=n[5];Ee(e,v,p,w,h,m,S)}}return{getValue:u,setValue:l,deleteValue:c,flush:f}}function Bi(){var e={};function t(u){return e[u]||(e[u]=zi(u)),e[u]}function n(u){return t(u).getValue()}function r(u,l,c,f,v,p,w){return t(u).setValue(l,c,f,v,p,w)}function o(u,l,c,f,v){t(u).deleteValue(l,c,f,v)}function a(){e={}}function s(){for(var u=0,l=Object.values(e);u=0&&(i=i.slice(0,I)),(I=i.lastIndexOf("/"))!==i.length-1&&(i=i.slice(0,I+1)),i+d)}function oo(i){Sn||wt||Se.enqueueRequest(i.build())}function Fe(i){return Jr+i+"."+In}function St(i){var d=Fe(i);if(_=="localStorage")return ai(d);if(_=="cookie"||_=="cookieAndLocalStorage")return K.getCookie(d)}function On(){Re(),In=ii((_e||lt)+(Je||"/")).slice(0,4)}function Ye(i){var d=new Date;if(mt=d.getTime(),Ct()&&i)switch(i.type){case"mousemove":{var y=i;if(A.lastMouseX!==void 0&&A.lastMouseY!==void 0){var I=y.clientX-A.lastMouseX,O=y.clientY-A.lastMouseY;A.metrics.mouseDistance+=Math.sqrt(I*I+O*O)}A.lastMouseX=y.clientX,A.lastMouseY=y.clientY;break}case"click":A.metrics.clicks++;break;case"keydown":A.metrics.keyPresses++;break;case"touchstart":A.metrics.touches++;break}}function io(){Ye();var i=_n(),d=i[0];dpt&&(pt=d);var y=i[1];yyt&&(yt=y),Ct()&&(A.lastScrollX!==void 0&&A.lastScrollY!==void 0&&(A.metrics.scrollDistance+=Math.abs(d-A.lastScrollX)+Math.abs(y-A.lastScrollY)),A.lastScrollX=d,A.lastScrollY=y)}function _n(){var i=document.documentElement;return i?[i.scrollLeft||window.pageXOffset,i.scrollTop||window.pageYOffset]:[0,0]}function Ln(){var i=_n(),d=i[0];vt=d,pt=d;var y=i[1];gt=y,yt=y}function Ct(){var i,d;return!!(!((i=N.configurations.pagePing)===null||i===void 0)&&i.activityMetrics||!((d=N.configurations.callback)===null||d===void 0)&&d.activityMetrics)}function Tt(){A.metrics={mouseDistance:0,scrollDistance:0,keyPresses:0,clicks:0,touches:0},A.lastMouseX=void 0,A.lastMouseY=void 0,A.lastScrollX=void 0,A.lastScrollY=void 0}function ao(){return U(U({},A.metrics),{mouseDistance:Math.round(A.metrics.mouseDistance),scrollDistance:Math.round(A.metrics.scrollDistance)})}function It(i){return Math.round(i)}function Pt(){var i=Fe("ses"),d="*";return Rn(i,d,Tn)}function Gt(i){var d=Fe("id"),y=Ei(i,ee);return Rn(d,y,Cn)}function Rn(i,d,y){return ee&&!Le?!1:_=="localStorage"?si(i,d,y):_=="cookie"||_=="cookieAndLocalStorage"?K.setCookie(i,d,y,Je,_e,ft,dt):!1}function jn(i){var d=Fe("id"),y=Fe("ses");yr(d),yr(y),K.deleteCookie(d,Je,_e,ft,dt),K.deleteCookie(y,Je,_e,ft,dt),i?.preserveSession||(te=ne(),se=1),i?.preserveUser||(ht=ee?"":ne(),xe=null)}function Dn(i){i&&i.stateStorageStrategy&&(m.stateStorageStrategy=i.stateStorageStrategy,_=P(m)),ee=Oe(m),Le=D(m),zt=Z(m),Se.setUseLocalStorage(_=="localStorage"||_=="cookieAndLocalStorage"),Se.setAnonymousTracking(zt)}function Un(){if(!(ee&&!Le)){var i=_!="none"&&!!St("ses"),d=Xe();ht=Ii(d,ee),i?te=un(d):te=rt(d),se=cn(d),_!="none"&&(Pt(),sn(d),Gt(d),Tr(d)||K.flush())}}function Xe(){if(_=="none")return Ci();var i=St("id")||void 0;return Ti(i,ht,te,se)}function Mn(i){return i.indexOf("http")===0?i:(document.location.protocol==="https:"?"https":"http")+"://"+i}function Vn(){(!Ft||h.pageViewId==null)&&(h.pageViewId=ne(),h.pageViewUrl=Y||b)}function We(){return so()&&(h.pageViewId=ne(),h.pageViewUrl=Y||b),h.pageViewId}function so(){if(h.pageViewId==null)return!0;if(Ft||!Be)return!1;if(h.pageViewUrl===void 0)return!0;var i=Y||b;if(Be===!0||Be=="full"||!("URL"in window))return h.pageViewUrl!=i;var d=new URL(i),y=new URL(h.pageViewUrl);return Be=="pathname"?d.pathname!=y.pathname:Be=="pathnameAndSearch"?d.pathname!=y.pathname||d.search!=y.search:!1}function Nn(){if(_==="none"||ee||!ut)return null;var i="_sp_tab_id",d=hr(i);return d||(ui(i,ne()),d=hr(i)),d||null}function uo(){return{contexts:function(){return[{schema:Oi,data:{id:We()}}]}}}function co(){return{contexts:function(){return[{schema:_i,data:U(U({},fn()),{tabId:Nn()})}]}}}function lo(){var i=function(y){return ee?null:y},d=function(y){return Le?y:i(y)};return{beforeTrack:function(y){var I=St("ses"),O=Xe(),Ce=Tr(O)===0;if(Nt?wt=!!K.getCookie(Nt):wt=!1,Sn||wt){jn();return}dn(O)?(!I&&_!="none"?te=rt(O):te=un(O),se=cn(O)):new Date().getTime()-Bt>Tn*1e3&&(se++,te=rt(O,{memorizedVisitCount:se})),sn(O),Pi(O,y),ki(O);var Q=fn(),Te=Q.viewport,ve=Q.documentSize;y.add("vp",Te),y.add("ds",ve),y.add("vid",d(se)),y.add("sid",d(te)),y.add("duid",i(Ai(O))),y.add("uid",i(xe)),Re(),y.add("refr",je(k||C)),y.add("url",je(Y||b));var Qe=Cr(O,_,ee);if(Xr&&(!ee||Le)&&fo(y,Qe),_!="none"){Gt(O);var Jt=Pt();(!I||Ce)&&Jt&&bt&&!qt&&(K.flush(),bt(Qe),qt=!1)}Bt=new Date().getTime()}}}function fo(i,d){var y={schema:Li,data:d};i.addContextEntity(y)}function mo(){var i=Xe();if(dn(i)?(_!="none"?te=rt(i):te=un(i),se=cn(i)):(se++,te=rt(i,{memorizedVisitCount:se})),sn(i),_!="none"){var d=Cr(i,_,ee);Gt(i);var y=Pt();K.flush(),y&&bt&&(qt=!0,bt(d))}Bt=new Date().getTime()}function $t(i,d){return(i||[]).concat(d?d():[])}function vo(i){var d=i.title,y=i.context,I=i.timestamp,O=i.contextCallback;Re(),Ht&&Ht==We()&&Vn(),Ht=We(),V=document.title,d?(ie=d,ze=!0):ze&&(ie=null);var Ce=br(ie||V);J.track(mr({pageUrl:je(Y||b),pageTitle:Ce,referrer:je(k||C)}),$t(y,O),I);var Q=new Date,Te=!1;if(N.enabled&&!N.installed){N.installed=!0,Te=!0;var ve={update:function(){if(typeof window<"u"&&typeof window.addEventListener=="function"){var He=!1,kt=Object.defineProperty({},"passive",{get:function(){He=!0},set:function(){}}),Hn=function(){};window.addEventListener("testPassiveEventSupport",Hn,kt),window.removeEventListener("testPassiveEventSupport",Hn,kt),ve.hasSupport=He}}};ve.update();var Qe="onwheel"in document.createElement("div")?"wheel":document.onmousewheel!==void 0?"mousewheel":"DOMMouseScroll";Object.prototype.hasOwnProperty.call(ve,"hasSupport")?le(document,Qe,Ye,{passive:!0}):le(document,Qe,Ye),Ln(),Tt();var Jt=["click","mouseup","mousedown","mousemove","keypress","keydown","keyup","touchend","touchstart"],ho=["resize","focus","blur"],Yt=function(wo,He){return He===void 0&&(He=Ye),function(kt){return le(document,kt,He)}};Jt.forEach(Yt(document)),ho.forEach(Yt(window)),Yt(window,io)("scroll")}if(N.enabled&&(ae||Te)){mt=Q.getTime(),Tt();var Fn=void 0;for(Fn in N.configurations){var Xt=N.configurations[Fn];Xt&&(window.clearInterval(Xt.activityInterval),po(Xt,y,O))}}}function po(i,d,y){var I=function(Q,Te){Re();var ve;Ct()&&(ve=ao(),Te=Te.concat([{schema:ji,data:ve}])),Q({context:Te,pageViewId:We(),minXOffset:vt,minYOffset:gt,maxXOffset:pt,maxYOffset:yt,activityMetrics:ve}),Ln(),Ct()&&Tt()},O=function(){var Q=new Date;mt+i.configMinimumVisitLength>Q.getTime()&&I(i.callback,$t(d,y)),i.activityInterval=window.setInterval(Ce,i.configHeartBeatTimer)},Ce=function(){var Q=new Date;mt+i.configHeartBeatTimer>Q.getTime()&&I(i.callback,$t(d,y))};i.configMinimumVisitLength===0?i.activityInterval=window.setInterval(Ce,i.configHeartBeatTimer):i.activityInterval=window.setTimeout(O,i.configMinimumVisitLength)}function zn(i){var d=i.minimumVisitLength,y=i.heartbeatDelay,I=i.callback;if(wr(d)&&wr(y))return{configMinimumVisitLength:d*1e3,configHeartBeatTimer:y*1e3,callback:I,activityMetrics:i.activityMetrics};G.error("Activity tracking minimumVisitLength & heartbeatDelay must be integers")}function go(i){var d=i.context,y=i.minXOffset,I=i.minYOffset,O=i.maxXOffset,Ce=i.maxYOffset,Q=document.title;Q!==V&&(V=Q,ie=void 0),J.track(vr({pageUrl:je(Y||b),pageTitle:br(ie||V),referrer:je(k||C),minXOffset:It(y),maxXOffset:It(O),minYOffset:It(I),maxYOffset:It(Ce)}),d)}function Bn(i){var d=N.configurations[i];d?.configMinimumVisitLength===0?window.clearTimeout(d?.activityInterval):window.clearInterval(d?.activityInterval),N.configurations[i]=void 0,!N.configurations.pagePing&&!N.configurations.callback&&Tt()}var yo={getDomainSessionIndex:function(){return se},getPageViewId:We,getTabId:Nn,newSession:mo,getCookieName:function(i){return Fe(i)},getUserId:function(){return xe},getDomainUserId:function(){return Xe()[1]},getDomainUserInfo:function(){return Xe()},setReferrerUrl:function(i){k=i},setCustomUrl:function(i){Re(),Y=ro(b,i)},setDocumentTitle:function(i){V=document.title,ie=i,ze=!1},discardHashTag:function(i){wn=i},discardBrace:function(i){bn=i},setCookiePath:function(i){Je=i,On()},setVisitorCookieTimeout:function(i){Cn=i},crossDomainLinker:function(i){En(i)},enableActivityTracking:function(i){N.configurations.pagePing||(N.enabled=!0,N.configurations.pagePing=zn(U(U({},i),{callback:go})))},enableActivityTrackingCallback:function(i){N.configurations.callback||(N.enabled=!0,N.configurations.callback=zn(i))},disableActivityTracking:function(){Bn("pagePing")},disableActivityTrackingCallback:function(){Bn("callback")},updatePageActivity:function(){Ye()},setOptOutCookie:function(i){Nt=i},setUserId:function(i){xe=i},setUserIdFromLocation:function(i){Re(),xe=at(i,b)},setUserIdFromReferrer:function(i){Re(),xe=at(i,C)},setUserIdFromCookie:function(i){xe=K.getCookie(i)},setCollectorUrl:function(i){Se.setCollectorUrl(Mn(i))},setBufferSize:function(i){Se.setBufferSize(i)},flushBuffer:function(i){i===void 0&&(i={}),Se.executeQueue(),i.newBufferSize&&Se.setBufferSize(i.newBufferSize)},trackPageView:function(i){i===void 0&&(i={}),vo(i)},preservePageViewId:function(){Ft=!0},preservePageViewIdForUrl:function(i){Be=i},disableAnonymousTracking:function(i){var d=i?.stateStorageStrategy&&i.stateStorageStrategy!==_&&(!ee||Le)&&St("ses");m.anonymousTracking=!1,Dn(i),d&&Pt(),Un(),Se.executeQueue()},enableAnonymousTracking:function(i){var d;m.anonymousTracking=(d=i&&i?.options)!==null&&d!==void 0?d:!0,Dn(i),Le||Vn()},clearUserData:jn};return U(U({},yo),{id:f,namespace:v,core:J,sharedState:h})},l=u(e,t,n,r,o,a),c=U(U({},l),{addPlugin:function(f){var v,p;c.core.addPlugin(f),(p=(v=f.plugin).activateBrowserPlugin)===null||p===void 0||p.call(v,c)}});return s.forEach(function(f){var v;(v=f.activateBrowserPlugin)===null||v===void 0||v.call(f,c)}),c}var ot={};function Ut(e,t){try{qi(e??Gi()).forEach(t)}catch(n){G.error("Function failed",n)}}function Or(e,t,n){try{Lr(e??Object.keys(t),t).forEach(n)}catch(r){G.error("Function failed",r)}}function _r(e,t,n,r,o,a){return ot.hasOwnProperty(e)?null:(ot[e]=Hi(e,t,n,r,o,a),ot[e])}function qi(e){return Lr(e,ot)}function Gi(){return Object.keys(ot)}function Lr(e,t){for(var n=[],r=0,o=e;r{if(e.event!=="login")return;let t=e.current_user_id;if(typeof t=="number"&&Number.isInteger(t)&&t>=0)return`${t}`;if(typeof t=="string"&&/^\d+$/.test(t))return t},Gr=()=>Ze(Hr),hn=e=>Ke(Hr,e,{days:ta,secure:!0});var na=(e,t)=>{let n=t.toLowerCase(),r=e[n];if(r)return{appId:r.appId??n,collectorUrl:r.collectorUrl}},$r=e=>{let{hosts:t,shouldTrackLinkClicks:n=!1}=e,r=qe({tag:"snowplow-jobs-v2"}),o=na(t,window.location.hostname);if(!o){r.warn(`host ${window.location.hostname} is not declared - not tracking`);return}let{appId:a,collectorUrl:s}=o;r.info("init",{appId:a,collectorUrl:s});let u=[];n&&u.push(Mr());let l=Fr("tagsjs.jobs",s,{appId:a,discoverRootDomain:!1,cookieSameSite:"Lax",plugins:u});if(!l){r.error("failed to initialize tracker");return}zr({minimumVisitLength:5,heartbeatDelay:5},[l.id]),n&&Vr({trackContent:!0,pseudoClicks:!0},[l.id]);let c=Gr();c&&(hn(c),yn(c,[l.id]));let f=h=>{let m=qr(h);!m||m===c||(c=m,hn(m),yn(m,[l.id]),r.info(`set user id: ${m}`))};Wt(),window.addEventListener("tagsjs.dataLayerPush",h=>{let m=h;Array.isArray(m.detail)&&m.detail.forEach(S=>f(S))}),window.dataLayer.forEach(f);let v="",p=()=>{window.location.href!==v&&(v=window.location.href,Br({},[l.id]),r.info(`tracked page view: ${v}`))};p();let w=h=>{let m=window.history[h].bind(window.history);window.history[h]=new Proxy(m,{apply:(S,R,j)=>{let x=S.apply(R,j);return setTimeout(()=>{p()},0),x}})};w("pushState"),w("replaceState"),window.addEventListener("popstate",p)};var ra={"prod.bglandjobs.de":{collectorUrl:"s.bglandjobs.de"},"staging.bglandjobs.de":{collectorUrl:"s.bglandjobs.de"},"prod.chiemgaujobs.de":{collectorUrl:"s.chiemgaujobs.de"},"staging.chiemgaujobs.de":{collectorUrl:"s.chiemgaujobs.de"},"prod.innsalzachjobs.de":{collectorUrl:"s.innsalzachjobs.de"},"staging.innsalzachjobs.de":{collectorUrl:"s.innsalzachjobs.de"},"prod.rosenheimjobs.de":{collectorUrl:"s.rosenheimjobs.de"},"staging.rosenheimjobs.de":{collectorUrl:"s.rosenheimjobs.de"}};Qn({tags:[Wn($r,{hosts:ra,shouldTrackLinkClicks:!0},{name:"snowplow-jobs-v2",trigger:Xn()})]});})();