(function () {(function(h,c){typeof exports=="object"&&typeof module!="undefined"?module.exports=c():typeof define=="function"&&define.amd?define(c):(h=typeof globalThis!="undefined"?globalThis:h||self,h._M_=c())})(this,(function(){"use strict";var Rt=Object.defineProperty,Ot=Object.defineProperties;var Ct=Object.getOwnPropertyDescriptors;var xe=Object.getOwnPropertySymbols;var Dt=Object.prototype.hasOwnProperty,zt=Object.prototype.propertyIsEnumerable;var Te=h=>{throw TypeError(h)};var ne=(h,c,f)=>c in h?Rt(h,c,{enumerable:!0,configurable:!0,writable:!0,value:f}):h[c]=f,C=(h,c)=>{for(var f in c||(c={}))Dt.call(c,f)&&ne(h,f,c[f]);if(xe)for(var f of xe(c))zt.call(c,f)&&ne(h,f,c[f]);return h},G=(h,c)=>Ot(h,Ct(c));var g=(h,c,f)=>ne(h,typeof c!="symbol"?c+"":c,f),re=(h,c,f)=>c.has(h)||Te("Cannot "+f);var r=(h,c,f)=>(re(h,c,"read from private field"),f?f.call(h):c.get(h)),v=(h,c,f)=>c.has(h)?Te("Cannot add the same private member more than once"):c instanceof WeakSet?c.add(h):c.set(h,f),_=(h,c,f,D)=>(re(h,c,"write to private field"),D?D.call(h,f):c.set(h,f),f),E=(h,c,f)=>(re(h,c,"access private method"),f);var x=(h,c,f)=>new Promise((D,P)=>{var H=y=>{try{k(f.next(y))}catch(A){P(A)}},U=y=>{try{k(f.throw(y))}catch(A){P(A)}},k=y=>y.done?D(y.value):Promise.resolve(y.value).then(H,U);k((f=f.apply(h,c)).next())});var p,N,d,R,z,V,T,u,Ae,Se,J,Ne,ve,oe,ae,de,Ue,Z,M,_e;function h(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var c,f;function D(){return f||(f=1,c=function(e,i,s){return new Promise((n,a)=>{const o=document.createElement("script");o.async=!0,o.src=e;for(const[m,b]of Object.entries(i||{}))o.setAttribute(m,b);o.onload=()=>{o.onerror=o.onload=null,n(o)},o.onerror=()=>{o.onerror=o.onload=null,a(new Error(`Failed to load ${e}`))},(s||document.head||document.getElementsByTagName("head")[0]).appendChild(o)})}),c}var P=D();const H=h(P),U=localStorage;function k(t,e,i){Be(t,y(t)+1,e,i)}function y(t,e){t=`missena.${t}`;const i=U.getItem(t);if(!i)return 0;const s=JSON.parse(i);return typeof s.expiry!="number"||new Date().getTime()>s.expiry||e&&e!=s.referer?(U.removeItem(t),0):typeof s.value=="number"?s.value:0}function A(...t){return["missena","capper"].concat(t).join(".")}function Be(t,e,i,s){t=`missena.${t}`;const n=new Date().getTime()+i*1e3;U.setItem(t,JSON.stringify({value:e,expiry:n,referer:s}))}function Re(t,e){t=`missena.${t}`;const i=U.getItem(t);let s=new Date().getTime()+e*1e3,n=JSON.parse(i!=null?i:JSON.stringify({value:0,expiry:s}));(typeof n.expiry!="number"||typeof n.value!="number"||new Date().getTime()>n.expiry)&&(U.removeItem(t),n={value:0,expiry:s}),n.value+=1,U.setItem(t,JSON.stringify(n))}var W=(t=>(t.BANNER="BANNER",t.NATIVE="NATIVE",t.VIDEO="VIDEO",t))(W||{}),S=(t=>(t.STICKY="sticky",t.PRESTITIAL="prestitial",t.POSTITIAL="postitial",t.HEADER="header",t.FOOTER="footer",t.SKINCORNER="skincorner",t.FOOTERMAX="footermax",t.INFEED="infeed",t.INFEED_S="infeed.s",t))(S||{}),l=(t=>(t.STICKY_BANNER="sticky-banner",t.STICKY_NATIVE="sticky-native",t.STICKY_VIDEO="sticky-video",t.PRESTITIAL_BANNER="prestitial-banner",t.PRESTITIAL_NATIVE="prestitial-native",t.PRESTITIAL_VIDEO="prestitial-video",t.POSTITIAL_BANNER="postitial-banner",t.POSTITIAL_NATIVE="postitial-native",t.POSTITIAL_VIDEO="postitial-video",t.HEADER_BANNER="header-banner",t.HEADER_NATIVE="header-native",t.HEADER_VIDEO="header-video",t.FOOTER_BANNER="footer-banner",t.FOOTER_NATIVE="footer-native",t.FOOTER_VIDEO="footer-video",t.SKINCORNER_BANNER="skincorner-banner",t.SKINCORNER_NATIVE="skincorner-native",t.FOOTERMAX_BANNER="footermax-banner",t.FOOTERMAX_NATIVE="footermax-native",t.FOOTERMAX_VIDEO="footermax-video",t.INFEED_BANNER="infeed-banner",t.INFEED_NATIVE="infeed-native",t.INFEED_VIDEO="infeed-video",t.INFEED_S_BANNER="infeed.s-banner",t.INFEED_S_NATIVE="infeed.s-native",t.INFEED_S_VIDEO="infeed.s-video",t))(l||{}),F=(t=>(t.LOCAL="local",t.STAGING="staging",t.PRODUCTION="production",t.EDGE="edge",t))(F||{}),ce=(t=>(t.AMP="amp",t.Bot="bot",t.Desktop="desktop",t.Mobile="mobile",t.Tablet="tablet",t.Webview="webview",t))(ce||{}),B=(t=>(t.Adyoulike="adyoulike",t.Bidule="bidule",t.CriteoCDB="criteo-cdb",t.CriteoNative="criteo-native",t.CriteoPrebidBanner="criteo-prebid-banner",t.CriteoPrebidNative="criteo-prebid-native",t.CriteoPrebidVideo="criteo-prebid-video",t.ImproveDigitalNative="improvedigital-native",t.MagniteBanner="magnite-banner",t.MagniteNative="magnite-native",t.MagniteVideo="magnite-video",t.Outbrain="outbrain",t.PubmaticNative="pubmatic-native",t.RichAudienceBanner="richaudience-banner",t.RichAudienceVideo="richaudience-video",t.SmartBanner="smart-banner",t.SmartNative="smart-native",t.SmartVideo="smart-video",t.SmilewantedBanner="smilewanted-banner",t.SmilewantedVideo="smilewanted-video",t.WmgPubmaticNative="wmg-pubmatic-native",t.XandrBanner="xandr-banner",t.XandrNative="xandr-native",t.XandrVideo="xandr-video",t))(B||{});B.CriteoPrebidNative+"",B.CriteoNative+"";const Oe={[l.STICKY_BANNER]:{desktopZoom:1.3,zoomAreaMin:8500,zoomAreaDefault:18750,zoomAreaFull:300*250*.5625,behavior:"M|L",showFullSize:!1,position:{mobile:{right:"0px",bottom:"148px"},desktop:{right:"0px",bottom:"0px"}}},[l.STICKY_NATIVE]:{behavior:{onClick:"redirect",onSwipe:"popup",countdown:3},position:{desktop:{bottom:"0px",right:"0px"},mobile:{bottom:"148px",right:"0px"}},bubbleBkgColor:"#fff",bubbleHitbox:90,bubbleSize:80,countdown:6.5,crossVariant:"bottom_left",headerBkgColor:"#1d242b",notification:1,previewBkgColor:"#0362E3",previewTimeout:8,showMenu:!0},[l.STICKY_VIDEO]:{position:{desktop:{bottom:"0px",right:"0px"},mobile:{bottom:"148px",right:"0px"}},bubbleSize:80,bubbleHitbox:90,crossVariant:"bottom_left",swipeToFullscreen:!0,behavior:{}},[l.PRESTITIAL_BANNER]:{desktopZoom:1.3,zoomAreaMin:8500,zoomAreaDefault:18750,zoomAreaFull:300*250*.5625,countdown:5e3,position:{desktop:{bottom:"0px",right:"0px"},mobile:{bottom:"148px",right:"0px"}},disableMinimizer:!1,usePublisherContainer:!1,sizeConfig:[{width:1,height:1,minViewPort:[0,0]}]},[l.PRESTITIAL_NATIVE]:{bubbleHitbox:90,bubbleSize:80,previewTimeout:8,bubbleBkgColor:"#fff",headerBkgColor:"#1d242b",previewBkgColor:"#0362E3",crossVariant:"top_right_big",minimizeIcon:"close_fullscreen",position:{desktop:{bottom:"0px",right:"0px"},mobile:{bottom:"148px",right:"0px"}},behavior:{onClick:"redirect",onSwipe:"popup",countdown:3},countdown:5,showCountdown:!1,disableMinimizer:!1,usePublisherContainer:!1,sizeConfig:[{width:1,height:1,minViewPort:[0,0]}]},[l.PRESTITIAL_VIDEO]:{bubbleSize:80,bubbleHitbox:90,previewTimeout:8,swipeToFullscreen:!0,crossVariant:"top_right_big",position:{desktop:{bottom:"0px",right:"0px"},mobile:{bottom:"148px",right:"0px"}},behavior:{},variant:"rotated",disableMinimizer:!1,usePublisherContainer:!1,sizeConfig:[{width:1,height:1,minViewPort:[0,0]}]},[l.POSTITIAL_BANNER]:{position:{desktop:{bottom:"0px",right:"0px"},mobile:{bottom:"148px",right:"0px"}}},[l.POSTITIAL_NATIVE]:{position:{desktop:{bottom:"0px",right:"0px"},mobile:{bottom:"148px",right:"0px"}}},[l.POSTITIAL_VIDEO]:{position:{desktop:{bottom:"0px",right:"0px"},mobile:{bottom:"148px",right:"0px"}}},[l.HEADER_BANNER]:{offset:56,zIndex:2147483647},[l.HEADER_NATIVE]:{swipeZone:"M",offset:56,bgColor:"#fff",zIndex:2147483647},[l.HEADER_VIDEO]:{offset:56,zIndex:2147483647},[l.FOOTER_BANNER]:{offset:0,zIndex:2147483647},[l.FOOTER_NATIVE]:{swipeZone:"M",offset:0,bgColor:"#fff",zIndex:2147483647},[l.FOOTER_VIDEO]:{offset:0,zIndex:2147483647},[l.FOOTERMAX_BANNER]:{width:320,height:90,offset:0,zIndex:2147483647},[l.FOOTERMAX_NATIVE]:{width:320,height:90,offset:0,zIndex:2147483647},[l.FOOTERMAX_VIDEO]:{width:320,height:90,offset:0,zIndex:2147483647},[l.SKINCORNER_BANNER]:{adapter:"",selector:""},[l.SKINCORNER_NATIVE]:{adapter:"",selector:""},[l.INFEED_BANNER]:{reveal:!1,useOriginalSize:!1},[l.INFEED_NATIVE]:{},[l.INFEED_VIDEO]:{}};l.STICKY_BANNER+"",l.PRESTITIAL_BANNER+"",l.POSTITIAL_BANNER+"",l.HEADER_BANNER+"",l.FOOTER_BANNER+"",l.SKINCORNER_BANNER+"",l.INFEED_BANNER+"";var Q,he;function Ce(){return he||(he=1,Q=function(e,i,s){return new Promise((n,a)=>{const o=document.createElement("script");o.async=!0,o.src=e;for(const[m,b]of Object.entries(i||{}))o.setAttribute(m,b);o.onload=()=>{o.onerror=o.onload=null,n(o)},o.onerror=()=>{o.onerror=o.onload=null,a(new Error(`Failed to load ${e}`))},(s||document.head||document.getElementsByTagName("head")[0]).appendChild(o)})}),Q}var De=Ce();const ze=h(De),j=()=>{};function Ve(t,e){t.window.postMessage({source:"msna",evt:e})}function ue(t,e){Ve(t,{bid:e})}function Me(t,e){try{const i=new URL(t);return Object.entries(e).forEach(([s,n])=>{n===!0?i.searchParams.set(s,"1"):n&&i.searchParams.set(s,n)}),i.toString()}catch(i){return""}}function ee(t="%cmissena-debug:",e="color:#FFF; background-color:red; padding:3px;border-radius:3px;"){const i=L();try{const s=i.localStorage.getItem("__missena_debug")||i.hasOwnProperty("displayMissenaInfo"),n=i.displayMissenaInfo||j;return s?function(){if(arguments.length==3){n(...arguments);return}console.log(t,e,...arguments)}:j}catch(s){return j}}function L(){try{return window.Cypress?window:(window.top.__doNotExist__,window.top)}catch(t){return window}}for(var I=[],K=0;K<256;K++)I[K]=(K<16?"0":"")+K.toString(16);function ke(){var t=crypto.getRandomValues(new Uint8Array(16));return t[6]=t[6]&15|64,t[8]=t[8]&63|128,I[t[0]]+I[t[1]]+I[t[2]]+I[t[3]]+"-"+I[t[4]]+I[t[5]]+"-"+I[t[6]]+I[t[7]]+"-"+I[t[8]]+I[t[9]]+"-"+I[t[10]]+I[t[11]]+I[t[12]]+I[t[13]]+I[t[14]]+I[t[15]]}function fe(t,e){var i;typeof t.renderers[e.format]=="function"?((i=t.log)==null||i.call(t,"Renderer finished loading. Rendering: ",t,e),setTimeout(()=>t.renderers[e.format](e),60),t.shownAds.push(e.meta.requestId||"undefined")):setTimeout(()=>fe(t,e),30)}function Fe(t,e){return x(this,null,function*(){var n,a,o;(n=t.log)==null||n.call(t,"renderSlot",e);const i=t.window.document,s=i.head||i.getElementsByTagName("head")[0];if(t.shownAds=(a=t.shownAds)!=null?a:[],e.meta.requestId=(o=e.meta.requestId)!=null?o:ke(),e.settings=C(C({},Oe[e.format]),e.settings),!t.shownAds.includes(e.meta.requestId)){if(typeof t.renderers[e.format]=="function"){setTimeout(()=>{t.renderers[e.format](e)},60),t.shownAds.push(e.meta.requestId);return}ze(`${t.baseUrl}/renderer-${e.format}.js`,{},s).then(()=>{fe(t,e)})}})}function Le(t){var e;try{return((e=t.window._pbjsGlobals)!=null?e:[]).reduce((i,s)=>{var n,a;return i||((a=(n=t.window[s])==null?void 0:n.installedModules)==null?void 0:a.includes("fledgeForGpt"))},!1)}catch(i){return!1}}const $=ee("%cmissena-capper:");function le(t,e,i,s=void 0){const a=L().document;function o(w){var b,O,ye;(((O=(b=w==null?void 0:w.detail)==null?void 0:b.event)==null?void 0:O.name)||"").startsWith(e)&&($("missena.event: ",(ye=w==null?void 0:w.detail)==null?void 0:ye.event),a.removeEventListener("missena.event",o),e.includes("postitial")?Re(A(e,t),i):k(A(e,t),i,s))}a.addEventListener("missena.event",o),$("mounted listener for ",e)}const Ke="remove-bubble";function $e(t,e,i){return e?y(A(Ke,t),i)==0:!0}const pe="display-bubble",Pe=500,He=1;function We(t,e){return e?(e.duration=e.duration||Pe,e.max=e.max||He,le(t,pe,e.duration),y(A(pe,t))!s.purpose.consents[m])?($("gdprApplies, NOT ALLOWED!"),!0):a==S.STICKY&&!(We(i,e==null?void 0:e.display)&&$e(i,e==null?void 0:e.close,n))?($("sticky"),!1):a==S.POSTITIAL&&!Xe(i,e==null?void 0:e.postitial)?($("postitial"),!1):!0:!0}const we={enableTIDs:!0,gvlMapping:{missena:687,smilewanted:639},consentManagement:{gdpr:{cmpApi:"iab",timeout:8e3,defaultGdprScope:!0},usp:{timeout:100}},bidderTimeout:2e3,fledgeForGpt:{enabled:!0},userSync:{userIds:[{name:"criteo"},{name:"sharedId",storage:{type:"cookie",name:"_sharedid",expires:365}},{name:"id5Id",params:{partner:1363},storage:{type:"html5",name:"id5id",expires:90,refreshInSeconds:28800}},{name:"identityLink",params:{pid:"13964",notUse3P:!0},storage:{type:"cookie",name:"idl_env",expires:15,refreshInSeconds:1800}}],filterSettings:{iframe:{bidders:"*",filter:"include"},image:{bidders:"*",filter:"include"}},aliasSyncEnabled:!0}};function Je(t){const e=t.length;let i=0,s=0;for(;s=55296&&n<=56319&&s>6&31|192;else{if(o>=55296&&o<=56319&&a>12&15|224,e[n++]=o>>6&63|128):(e[n++]=o>>18&7|240,e[n++]=o>>12&63|128,e[n++]=o>>6&63|128)}e[n++]=o&63|128}}const Qe=new TextEncoder,je=50;function et(t,e,i){Qe.encodeInto(t,e.subarray(i))}function tt(t,e,i){t.length>je?et(t,e,i):Ze(t,e,i)}new TextDecoder;class q{constructor(e,i){g(this,"type");g(this,"data");this.type=e,this.data=i}}class X extends Error{constructor(e){super(e);const i=Object.create(X.prototype);Object.setPrototypeOf(this,i),Object.defineProperty(this,"name",{configurable:!0,enumerable:!1,value:X.name})}}function it(t,e,i){const s=i/4294967296,n=i;t.setUint32(e,s),t.setUint32(e+4,n)}function ge(t,e,i){const s=Math.floor(i/4294967296),n=i;t.setUint32(e,s),t.setUint32(e+4,n)}function st(t,e){const i=t.getInt32(e),s=t.getUint32(e+4);return i*4294967296+s}const nt=-1,rt=4294967296-1,ot=17179869184-1;function at({sec:t,nsec:e}){if(t>=0&&e>=0&&t<=ot)if(e===0&&t<=rt){const i=new Uint8Array(4);return new DataView(i.buffer).setUint32(0,t),i}else{const i=t/4294967296,s=t&4294967295,n=new Uint8Array(8),a=new DataView(n.buffer);return a.setUint32(0,e<<2|i&3),a.setUint32(4,s),n}else{const i=new Uint8Array(12),s=new DataView(i.buffer);return s.setUint32(0,e),ge(s,4,t),i}}function dt(t){const e=t.getTime(),i=Math.floor(e/1e3),s=(e-i*1e3)*1e6,n=Math.floor(s/1e9);return{sec:i+n,nsec:s-n*1e9}}function ct(t){if(t instanceof Date){const e=dt(t);return at(e)}else return null}function ht(t){const e=new DataView(t.buffer,t.byteOffset,t.byteLength);switch(t.byteLength){case 4:return{sec:e.getUint32(0),nsec:0};case 8:{const i=e.getUint32(0),s=e.getUint32(4),n=(i&3)*4294967296+s,a=i>>>2;return{sec:n,nsec:a}}case 12:{const i=st(e,4),s=e.getUint32(0);return{sec:i,nsec:s}}default:throw new X(`Unrecognized data size for timestamp (expected 4, 8, or 12): ${t.length}`)}}function ut(t){const e=ht(t);return new Date(e.sec*1e3+e.nsec/1e6)}const ft={type:nt,encode:ct,decode:ut},Y=class Y{constructor(){g(this,"__brand");g(this,"builtInEncoders",[]);g(this,"builtInDecoders",[]);g(this,"encoders",[]);g(this,"decoders",[]);this.register(ft)}register({type:e,encode:i,decode:s}){if(e>=0)this.encoders[e]=i,this.decoders[e]=s;else{const n=-1-e;this.builtInEncoders[n]=i,this.builtInDecoders[n]=s}}tryToEncode(e,i){for(let s=0;sthis.maxDepth)throw new Error(`Too deep objects in depth ${i}`);e==null?this.encodeNil():typeof e=="boolean"?this.encodeBoolean(e):typeof e=="number"?this.forceIntegerToFloat?this.encodeNumberAsFloat(e):this.encodeNumber(e):typeof e=="string"?this.encodeString(e):this.useBigInt64&&typeof e=="bigint"?this.encodeBigInt64(e):this.encodeObject(e,i)}ensureBufferSizeToWrite(e){const i=this.pos+e;this.view.byteLength=0?e<128?this.writeU8(e):e<256?(this.writeU8(204),this.writeU8(e)):e<65536?(this.writeU8(205),this.writeU16(e)):e<4294967296?(this.writeU8(206),this.writeU32(e)):this.useBigInt64?this.encodeNumberAsFloat(e):(this.writeU8(207),this.writeU64(e)):e>=-32?this.writeU8(224|e+32):e>=-128?(this.writeU8(208),this.writeI8(e)):e>=-32768?(this.writeU8(209),this.writeI16(e)):e>=-2147483648?(this.writeU8(210),this.writeI32(e)):this.useBigInt64?this.encodeNumberAsFloat(e):(this.writeU8(211),this.writeI64(e)):this.encodeNumberAsFloat(e)}encodeNumberAsFloat(e){this.forceFloat32?(this.writeU8(202),this.writeF32(e)):(this.writeU8(203),this.writeF64(e))}encodeBigInt64(e){e>=BigInt(0)?(this.writeU8(207),this.writeBigUint64(e)):(this.writeU8(211),this.writeBigInt64(e))}writeStringHeader(e){if(e<32)this.writeU8(160+e);else if(e<256)this.writeU8(217),this.writeU8(e);else if(e<65536)this.writeU8(218),this.writeU16(e);else if(e<4294967296)this.writeU8(219),this.writeU32(e);else throw new Error(`Too long string: ${e} bytes in UTF-8`)}encodeString(e){const s=Je(e);this.ensureBufferSizeToWrite(5+s),this.writeStringHeader(s),tt(e,this.bytes,this.pos),this.pos+=s}encodeObject(e,i){const s=this.extensionCodec.tryToEncode(e,this.context);if(s!=null)this.encodeExtension(s);else if(Array.isArray(e))this.encodeArray(e,i);else if(ArrayBuffer.isView(e))this.encodeBinary(e);else if(typeof e=="object")this.encodeMap(e,i);else throw new Error(`Unrecognized object: ${Object.prototype.toString.apply(e)}`)}encodeBinary(e){const i=e.byteLength;if(i<256)this.writeU8(196),this.writeU8(i);else if(i<65536)this.writeU8(197),this.writeU16(i);else if(i<4294967296)this.writeU8(198),this.writeU32(i);else throw new Error(`Too large binary: ${i}`);const s=pt(e);this.writeU8a(s)}encodeArray(e,i){const s=e.length;if(s<16)this.writeU8(144+s);else if(s<65536)this.writeU8(220),this.writeU16(s);else if(s<4294967296)this.writeU8(221),this.writeU32(s);else throw new Error(`Too large array: ${s}`);for(const n of e)this.doEncode(n,i+1)}countWithoutUndefined(e,i){let s=0;for(const n of i)e[n]!==void 0&&s++;return s}encodeMap(e,i){const s=Object.keys(e);this.sortKeys&&s.sort();const n=this.ignoreUndefined?this.countWithoutUndefined(e,s):s.length;if(n<16)this.writeU8(128+n);else if(n<65536)this.writeU8(222),this.writeU16(n);else if(n<4294967296)this.writeU8(223),this.writeU32(n);else throw new Error(`Too large map object: ${n}`);for(const a of s){const o=e[a];this.ignoreUndefined&&o===void 0||(this.encodeString(a),this.doEncode(o,i+1))}}encodeExtension(e){if(typeof e.data=="function"){const s=e.data(this.pos+6),n=s.length;if(n>=4294967296)throw new Error(`Too large extension object: ${n}`);this.writeU8(201),this.writeU32(n),this.writeI8(e.type),this.writeU8a(s);return}const i=e.data.length;if(i===1)this.writeU8(212);else if(i===2)this.writeU8(213);else if(i===4)this.writeU8(214);else if(i===8)this.writeU8(215);else if(i===16)this.writeU8(216);else if(i<256)this.writeU8(199),this.writeU8(i);else if(i<65536)this.writeU8(200),this.writeU16(i);else if(i<4294967296)this.writeU8(201),this.writeU32(i);else throw new Error(`Too large extension object: ${i}`);this.writeI8(e.type),this.writeU8a(e.data)}writeU8(e){this.ensureBufferSizeToWrite(1),this.view.setUint8(this.pos,e),this.pos++}writeU8a(e){const i=e.length;this.ensureBufferSizeToWrite(i),this.bytes.set(e,this.pos),this.pos+=i}writeI8(e){this.ensureBufferSizeToWrite(1),this.view.setInt8(this.pos,e),this.pos++}writeU16(e){this.ensureBufferSizeToWrite(2),this.view.setUint16(this.pos,e),this.pos+=2}writeI16(e){this.ensureBufferSizeToWrite(2),this.view.setInt16(this.pos,e),this.pos+=2}writeU32(e){this.ensureBufferSizeToWrite(4),this.view.setUint32(this.pos,e),this.pos+=4}writeI32(e){this.ensureBufferSizeToWrite(4),this.view.setInt32(this.pos,e),this.pos+=4}writeF32(e){this.ensureBufferSizeToWrite(4),this.view.setFloat32(this.pos,e),this.pos+=4}writeF64(e){this.ensureBufferSizeToWrite(8),this.view.setFloat64(this.pos,e),this.pos+=8}writeU64(e){this.ensureBufferSizeToWrite(8),it(this.view,this.pos,e),this.pos+=8}writeI64(e){this.ensureBufferSizeToWrite(8),ge(this.view,this.pos,e),this.pos+=8}writeBigUint64(e){this.ensureBufferSizeToWrite(8),this.view.setBigUint64(this.pos,e),this.pos+=8}writeBigInt64(e){this.ensureBufferSizeToWrite(8),this.view.setBigInt64(this.pos,e),this.pos+=8}}function gt(t,e){return new ie(e).encodeSharedRef(t)}class Et{constructor({appName:e="caligo",eventNameSpace:i="missena.event",device:s,environment:n}){g(this,"application");g(this,"amp");g(this,"eventNameSpace");g(this,"queue");g(this,"url");g(this,"window");this.application=e;const a=n==F.PRODUCTION||n==F.EDGE?"https://events.missena.io":"https://events.staging.missena.xyz";this.url=`${a}/v1/events`,this.amp=s===ce.AMP,this.eventNameSpace=i,this.queue=[],this.window=L()}enrich(e,i){return x(this,null,function*(){var s;return e.from=this.application,e.sampling=i,e.parameters.cdep=yield(s=navigator.cookieDeprecationLabel)==null?void 0:s.getValue(),e.parameters.isSafeFrame=this.window!=window.top,e.name=="impression"&&(e.parameters.fledgeEnabled=Le(this.ctx)),this.window.displayMissenaEvent&&this.window.displayMissenaEvent(e),e})}log(e,i=1){return x(this,null,function*(){var s;e.parameters=(s=e.parameters)!=null?s:{},!(i<=0)&&(i>1&&(i=1),i=Math.round(i*100)/100,!(Math.random()>i)&&(this.queue.push({event:yield this.enrich(e,i),url:Me(this.url,{amp:this.amp,ik:e.parameters.ik,t:e.parameters.apiKey})}),this.window.document.dispatchEvent(new CustomEvent(this.eventNameSpace,{detail:{event:e}})),this.next()))})}next(){const e=this.queue.shift();if(!e)return;const i=gt(G(C({},e.event),{from:this.application})),s=new Blob([i],{type:"application/msgpack"});navigator.sendBeacon(e.url,s)}sample(e){return x(this,null,function*(){})}}const bt=ee("%cmissena-mosquito:");function It(t,e){var s;const i=t.native;return i.kind=W.NATIVE,i.commission={type:"cpm",currency:(s=t.currency)!=null?s:"USD",value:t.cpm},i.ids=e,i}function yt(t,e,i={}){var n;const s={type:"cpm",currency:(n=e.currency)!=null?n:"USD",value:e.cpm};switch(e.mediaType){case"video":return{commission:s,kind:W.VIDEO,vastImpUrl:e.vastImpUrl,vastUrl:e.vastUrl,vastXml:e.vastXml,ids:i};case"native":return It(e,i);case"banner":return{kind:W.BANNER,ad:e.ad,width:e.width,height:e.height,commission:s,ids:i}}}function xt(t){return t.replace(/[^\.]+(\.*)/,`${new Date().getTime()}$1`)}function Ee(t,e){const i=L();if(!i.__tcfapi){e();return}i.__tcfapi("addEventListener",2,function(s,n){!n||!["tcloaded","useractioncomplete"].includes(s==null?void 0:s.eventStatus)||(i.__tcfapi("removeEventListener",2,()=>{},s.listenerId),t(s))})}class Tt extends Et{constructor({appName:e,ctx:i}){super({appName:e,device:i.device,environment:i.environment}),this.ctx=i}log(e,i=1){var s,n,a;e.parameters=(s=e.parameters)!=null?s:{},e.parameters.apiKey=(n=e.parameters.apiKey)!=null?n:this.ctx.apiKey,e.parameters.ik=(a=e.parameters.ik)!=null?a:this.ctx.idempotencyKey,super.log(e,i)}adsuccess(e){this.log({name:"adsuccess",parameters:{provider:e}})}bidsuccess(e){this.log({name:"bidsuccess",parameters:e})}consent(){Ee(e=>{bt({missing_purpose:!e.purpose.consents[1],missing_vendor:!e.vendor.consents[687],tcData:e}),this.log({name:"consent",parameters:{applies:e.gdprApplies,missing_purpose:!e.purpose.consents[1],missing_vendor:!e.vendor.consents[687],string:e.tcString}})},()=>{this.log({name:"consent",parameters:{applies:!1}})})}debug(e){this.log({name:"log",parameters:{label:e}})}timeout(e){e!="missena"&&Math.random()>=.99&&this.log({name:"timeout",parameters:{bidder:e}})}}function At(t){try{return window.top[t]}catch(e){return window[t]}}function be(t){return t.environment==F.EDGE||t.environment==F.PRODUCTION}const St={banner:{sizes:[[300,250]]}};function Ie(t,e,i,s={}){const n=`msna-${e}`,a=new URLSearchParams(t.window.location.search).get("bidule_sample"),o={ext:{gpid:`${n}#${t.apiKey}`}};return{[B.Bidule]:{code:n,bids:[{bidder:"missena",params:{placement:e,apiKey:t.apiKey,baseUrl:be(t)?"":t.bidderUrl,custom:{providerName:B.Bidule},sample:a,isInternal:!0}}],mediaTypes:St,ortb2Imp:o}}[i]}function Nt(t,e){var s;const i=(s=e.publisher.blockedProviders)!=null?s:[];return e.formats.reduce((n,a)=>{const o=a.name.split("-")[0],w=a.providers.reduce((m,b)=>{if(i.includes(b.name))return m;const O=Ie(t,o,b.name,b.settings);return O?[...m,O]:m},[]);return[...n,...w]},[])}function vt(t,e){return t.find(s=>{var n;return s.code==e.adUnitCode&&((n=s.bids[0])==null?void 0:n.bidder)==e.bidder&&s.mediaTypes.hasOwnProperty(e.mediaType)}).bids[0].params.custom}function Ut(t,e,i){return e.formats.reduce((s,n)=>{const a=n.name.split("-")[0],o=n.providers.reduce((w,m)=>{if(!i.includes(m.name))return w;const b=Ie(t,a,m.name,m.settings);return b?[...w,b]:w},[]);return[...s,...o]},[])}const se={except:Nt,findCustomData:vt,only:Ut};class _t{constructor(e){v(this,u);v(this,p);v(this,N);v(this,d);v(this,R);v(this,z);v(this,V);v(this,T);var n;const i=ee(),s=L();s.__MISSENA__=G(C({renderers:{},referer:s.location.href},(n=s.__MISSENA__)!=null?n:{}),{log:i,window:s}),_(this,p,e),_(this,N,`msna-${r(this,p).placement}`),_(this,d,s.__MISSENA__),_(this,R,i),_(this,z,s.document.head||s.document.getElementsByTagName("head")[0]),_(this,T,s),e.formats.push({mediaType:"banner",name:`${e.placement}-banner`,providers:[{name:B.Bidule}]}),i(e)}run(){r(this,T).__msna_loaded||(r(this,T).__msna_loaded==!0,Ee(E(this,u,oe).bind(this),E(this,u,oe).bind(this)))}}p=new WeakMap,N=new WeakMap,d=new WeakMap,R=new WeakMap,z=new WeakMap,V=new WeakMap,T=new WeakMap,u=new WeakSet,Ae=function(){const e=new URLSearchParams(r(this,T).location.search).getAll("msna_provider");return e.length==0?se.except(r(this,d),r(this,p)):se.only(r(this,d),r(this,p),e)},Se=function(e){return x(this,null,function*(){const{error:i,pbjs:s}=yield E(this,u,Ue).call(this);if(r(this,p).settings.disable_prebid){E(this,u,de).call(this);return}if(i){console.error("[missena] error while loading prebid:",i.message),E(this,u,M).call(this).debug("mosquito.pbjs.failed");return}s.processQueue(),s.bidderSettings={missena:{storageAllowed:!0}},e&&delete we.consentManagement,s.setConfig(G(C({},we),{floors:{data:{default:r(this,p).publisher.floor,currency:"USD",schema:{fields:["mediaType"]}}}}));const n=!be(r(this,d))||s.getConfig().debug;let a={};r(this,p).publisher.apiKey==="PA-98473564"&&(a={s2sConfig:{accountId:"1",enabled:!0,bidders:["missena"],timeout:1e3,endpoint:"https://prebid.missena.io/openrtb2/auction",syncEndpoint:"https://prebid.missena.io/cookie_sync"}}),s.setConfig(C({debug:n},a));const o=E(this,u,Ae).call(this);s.removeAdUnit(r(this,N)),s.addAdUnits(o),r(this,R).call(this,"Added adUnits",o),s.enableAnalytics([{provider:"atsAnalytics",options:{pid:"13964"}}]),s.onEvent("bidTimeout",w=>{w.filter(m=>m.adUnitCode==r(this,N)).forEach(m=>E(this,u,M).call(this).timeout(m.bidder))}),r(this,d).settings.delayFirstDisplay?setTimeout(()=>{E(this,u,J).call(this,s)},r(this,d).settings.delayFirstDisplay*1e3):E(this,u,J).call(this,s)})},J=function(e){return x(this,null,function*(){e.requestBids({adUnitCodes:[r(this,N)],bidsBackHandler:()=>x(this,null,function*(){const i=e.getUserIdsAsEids(),s=e.getHighestCpmBids(r(this,N))[0];if(!s){E(this,u,de).call(this),r(this,d).settings.delayedDisplay&&ue(r(this,d),!1);return}const n=se.findCustomData(e.adUnits,s);if(r(this,R).call(this,"winner, ids & provider",{ids:i,customData:n,winner:s}),n.providerName==B.Bidule){const a=`msna_mosquito_${r(this,p).placement}`,o=r(this,d).window.document.createElement("iframe");o.frameBorder="0",o.name=a,o.id=`msna-${r(this,p).placement}`;const w=r(this,d).window.document.querySelector(`[name='${a}']`);w?w.replaceWith(o):r(this,d).window.document.body.appendChild(o);const m=o.contentWindow.document;if(m.body.style.margin="0",r(this,d).settings.delayedDisplay){r(this,d).showDelayedAd=()=>e.renderAd(m,s.adId),ue(r(this,d),!0);return}else e.renderAd(m,s.adId);return}if(r(this,d).settings.delayedDisplay){r(this,d).showDelayedAd=()=>E(this,u,ae).call(this,s,n.providerName,s.adUnitCode.substring(5),i),r(this,d).window.postMessage({source:"msna",bid:!0});return}else E(this,u,ae).call(this,s,n.providerName,s.adUnitCode.substring(5),i)})}),r(this,d).settings.auctionRefresh&&[S.STICKY,S.SKINCORNER,S.HEADER,S.FOOTER,S.FOOTERMAX].includes(r(this,p).placement)&&setTimeout(()=>{r(this,d).settings.auctionRefresh&&E(this,u,J).call(this,e)},r(this,p).settings.auctionRefresh*1e3)})},Ne=function(){const e=E(this,u,Z).bind(this),i=r(this,T);if(i.msnaHandleHistory)return;i.msnaHandleHistory=!0;function s(n){return function(){var a=n.apply(this,arguments);return i.dispatchEvent(new Event("contentchange")),a}}i.history.pushState=s(i.history.pushState),i.history.replaceState=s(i.history.replaceState),i.addEventListener("popstate",()=>{i.dispatchEvent(new Event("contentchange"))}),i.addEventListener("contentchange",()=>{e({isClientSide:!0,minDuration:1e3})})},ve=function(){var i,s;const e=(i=r(this,d).settings.block)!=null?i:{};if(e.type==="domain"){const n=((s=At("location"))==null?void 0:s.hostname)||"";return(e.domains||[]).some(a=>a==n)}return e.type==="device"},oe=function(e,i){return x(this,null,function*(){var s,n;if(Ge({placement:r(this,p).placement,publisher:r(this,p).publisher.apiKey,capping:r(this,p).settings.capping,tcData:i?void 0:e,referer:(s=r(this,p).settings.capping)!=null&&s.closePerPage?r(this,d).referer:void 0})){if(r(this,d).adServerUrl=r(this,p).adServerUrl,r(this,d).apiKey=r(this,p).publisher.apiKey,r(this,d).baseUrl=r(this,p).baseUrl,r(this,d).bidderUrl=r(this,p).bidderUrl,r(this,d).device=r(this,p).device,r(this,d).environment=r(this,p).environment,r(this,d).idempotencyKey=r(this,p).idempotencyKey,r(this,d).sentryEnabled=r(this,p).publisher.sentryEnabled,r(this,d).settings=r(this,p).settings,r(this,d).tcData=e,r(this,d).slots=(n=r(this,d).slots)!=null?n:{},r(this,d).stopRefresh=()=>{delete r(this,d).settings.auctionRefresh},E(this,u,Ne).call(this),E(this,u,M).call(this).consent(),E(this,u,ve).call(this)){r(this,R).call(this,"script blocked");return}E(this,u,Se).call(this,!e)}})},ae=function(a,o,w){return x(this,arguments,function*(e,i,s,n=[]){r(this,d).passback=E(this,u,Z).bind(this);const m=`${s}-${e.mediaType||"native"}`,b=E(this,u,_e).call(this,e.adUnitCode||r(this,N),yt(r(this,d),e,n),i,e.requestId,m);E(this,u,M).call(this).adsuccess(i),E(this,u,M).call(this).bidsuccess({provider:i,commission:{cpm:e.cpm,currency:e.currency},eids:n.map(O=>O.source)}),Fe(r(this,d),b)})},de=function(){r(this,T).document.dispatchEvent(new CustomEvent("missena.event",{detail:{event:{name:"passback"}}})),new Function(r(this,p).publisher.passback)()},Ue=function(){return x(this,null,function*(){if(r(this,d).window.msnaPbjs)return{pbjs:r(this,d).window.msnaPbjs};try{yield H(`${r(this,p).baseUrl}/prebid.js`,{},r(this,z))}catch(e){return{error:e}}return{pbjs:r(this,d).window.msnaPbjs}})},Z=function(e,i={isClientSide:!1,minDuration:1e4}){var o;const s=r(this,d).slots[e];if(!((s==null?void 0:s.displayedAt)&&Date.now()-s.displayedAt>i.minDuration))return!1;delete s.displayedAt,delete r(this,T).__msna_loaded,delete s.data,(o=s.remove)==null||o.call(s);const a=new URL(r(this,d).adServerUrl);return a.searchParams.set("t",r(this,d).apiKey),i.isClientSide?(a.searchParams.set("cs","1"),a.searchParams.set("ik",xt(r(this,d).idempotencyKey))):a.searchParams.set("ik",r(this,d).idempotencyKey),H(a.toString(),{},r(this,z)),!0},M=function(){return r(this,V)||_(this,V,new Tt({appName:"mosquito",ctx:r(this,d)})),r(this,V)},_e=function(e,i,s,n,a=l.STICKY_NATIVE){var w,m;const o={adUnitCode:e,data:i,format:a,settings:(w=r(this,p).formats.find(b=>b.name==a))==null?void 0:w.settings,provider:s,meta:{requestId:n},reload:b=>{E(this,u,Z).call(this,e,b)},remove:()=>{},track:()=>{}};return(m=r(this,d).slots[e])==null||m.remove(),r(this,d).slots[e]=o,o};function Bt(t){return x(this,null,function*(){new _t(t).run()})}return Bt})); _M_({adServerUrl:"https://ad.missena.io/?t=PA-47692533",baseUrl:"https://chat.missena.io",bidderUrl:"https://bid.missena.io",device:"bot",environment:"edge",formats:[{"mediaType":"native","name":"sticky-native","providers":[{"name":"outbrain"}],"renderer":"sticky-native","settings":{"afterDisplay":"","behavior":{"countdown":3,"onClick":"redirect","onSwipe":"popup"},"bubbleBkgColor":"#fff","bubbleHitbox":90,"bubbleSize":80,"countdown":6.5,"crossVariant":"bottom_left","headerBkgColor":"#1d242b","notification":1,"plugins":[],"position":{"desktop":{"bottom":"0px","right":"0px"},"mobile":{"bottom":"148px","right":"0px"}},"previewBkgColor":"#0362E3","previewTimeout":8,"showMenu":true,"triggers":{"desktop":[],"mobile":[],"webview":[]}}}],idempotencyKey:"1772470585.d6is2ec564ds73djel7g",now:1772470585000,placement:"sticky",publisher:{"apiKey":"PA-47692533","blockedProviders":[],"floor":0.02,"floorCurrency":"USD","passback":"","sentryEnabled":false},settings:{"auctionRefresh":15},syncopeUrl:"https://sync.missena.io"});})();