(function () {(function(p,c){typeof exports=="object"&&typeof module!="undefined"?module.exports=c():typeof define=="function"&&define.amd?define(c):(p=typeof globalThis!="undefined"?globalThis:p||self,p._M_=c())})(this,function(){"use strict";var zt=Object.defineProperty,Lt=Object.defineProperties;var Kt=Object.getOwnPropertyDescriptors;var Ae=Object.getOwnPropertySymbols;var $t=Object.prototype.hasOwnProperty,qt=Object.prototype.propertyIsEnumerable;var xe=p=>{throw TypeError(p)};var ae=(p,c,h)=>c in p?zt(p,c,{enumerable:!0,configurable:!0,writable:!0,value:h}):p[c]=h,T=(p,c)=>{for(var h in c||(c={}))$t.call(c,h)&&ae(p,h,c[h]);if(Ae)for(var h of Ae(c))qt.call(c,h)&&ae(p,h,c[h]);return p},Q=(p,c)=>Lt(p,Kt(c));var B=(p,c,h)=>ae(p,typeof c!="symbol"?c+"":c,h),de=(p,c,h)=>c.has(p)||xe("Cannot "+h);var a=(p,c,h)=>(de(p,c,"read from private field"),h?h.call(p):c.get(p)),N=(p,c,h)=>c.has(p)?xe("Cannot add the same private member more than once"):c instanceof WeakSet?c.add(p):c.set(p,h),_=(p,c,h,D)=>(de(p,c,"write to private field"),D?D.call(p,h):c.set(p,h),h),g=(p,c,h)=>(de(p,c,"access private method"),h);var I=(p,c,h)=>new Promise((D,H)=>{var G=b=>{try{M(h.next(b))}catch(A){H(A)}},U=b=>{try{M(h.throw(b))}catch(A){H(A)}},M=b=>b.done?D(b.value):Promise.resolve(b.value).then(G,U);M((h=h.apply(p,c)).next())});var l,x,u,C,k,V,S,f,Ne,Ue,ce,_e,Oe,ue,Z,W,Ce,j,P,Re;function p(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}/*! load-script2. MIT License. Feross Aboukhadijeh */var c,h;function D(){return h||(h=1,c=function(e,i,r){return new Promise((n,o)=>{const s=document.createElement("script");s.async=!0,s.src=e;for(const[m,y]of Object.entries(i||{}))s.setAttribute(m,y);s.onload=()=>{s.onerror=s.onload=null,n(s)},s.onerror=()=>{s.onerror=s.onload=null,o(new Error(`Failed to load ${e}`))},(r||document.head||document.getElementsByTagName("head")[0]).appendChild(s)})}),c}var H=D();const G=p(H),U=localStorage;function M(t,e,i){Be(t,b(t)+1,e,i)}function b(t,e){t=`missena.${t}`;const i=U.getItem(t);if(!i)return 0;const r=JSON.parse(i);return typeof r.expiry!="number"||new Date().getTime()>r.expiry||e&&e!=r.referer?(U.removeItem(t),0):typeof r.value=="number"?r.value:0}function A(...t){return["missena","capper"].concat(t).join(".")}function Be(t,e,i,r){t=`missena.${t}`;const n=new Date().getTime()+i*1e3;U.setItem(t,JSON.stringify({value:e,expiry:n,referer:r}))}function De(t,e){t=`missena.${t}`;const i=U.getItem(t);let r=new Date().getTime()+e*1e3,n=JSON.parse(i!=null?i:JSON.stringify({value:0,expiry:r}));(typeof n.expiry!="number"||typeof n.value!="number"||new Date().getTime()>n.expiry)&&(U.removeItem(t),n={value:0,expiry:r}),n.value+=1,U.setItem(t,JSON.stringify(n))}var z=(t=>(t.BANNER="BANNER",t.NATIVE="NATIVE",t.VIDEO="VIDEO",t))(z||{}),O=(t=>(t.STICKY="sticky",t.PRESTITIAL="prestitial",t.POSTITIAL="postitial",t.HEADER="header",t.FOOTER="footer",t.SKINCORNER="skincorner",t.FOOTERMAX="footermax",t))(O||{}),w=(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))(w||{}),L=(t=>(t.LOCAL="local",t.STAGING="staging",t.PRODUCTION="production",t.EDGE="edge",t))(L||{}),fe=(t=>(t.AMP="amp",t.Bot="bot",t.Desktop="desktop",t.Mobile="mobile",t.Tablet="tablet",t.Webview="webview",t))(fe||{}),v=(t=>(t.Adyoulike="adyoulike",t.Bidule="bidule",t.CriteoCDB="criteo-cdb",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))(v||{});const ke={[w.STICKY_BANNER]:{zoomAreaMin:100*85,zoomAreaDefault:150*125,zoomAreaFull:300*250*.5625,position:{mobile:{right:"0px",bottom:"148px"},desktop:{right:"0px",bottom:"0px"}}},[w.STICKY_NATIVE]:{behavior:{[v.Outbrain]:{onClick:"redirect",onSwipe:"popup",countdown:3},[v.Adyoulike]:{onClick:"redirect",onSwipe:"popup",countdown:3},[v.SmartNative]:{onClick:"redirect",onSwipe:"popup",countdown:3},[v.XandrNative]:{onClick:"redirect",onSwipe:"popup",countdown:3},[v.MagniteNative]:{onClick:"redirect",onSwipe:"popup",countdown:3},[v.PubmaticNative]:{onClick:"redirect",onSwipe:"popup",countdown:3},[v.CriteoPrebidNative]:{onClick:"redirect",onSwipe:"popup",countdown:3},[v.ImproveDigitalNative]:{onClick:"redirect",onSwipe:"popup",countdown:3}},position:{mobile:{right:"0px",bottom:"148px"},desktop:{right:"0px",bottom:"0px"}},bubbleBkgColor:"#fff",bubbleHitbox:90,bubbleSize:80,countdown:6.5,crossVariant:"bottom_left",headerBkgColor:"#1d242b",notification:1,previewBkgColor:"#0362E3",previewTimeout:8,showMenu:!0},[w.STICKY_VIDEO]:{position:{mobile:{right:"0px",bottom:"148px"},desktop:{right:"0px",bottom:"0px"}},bubbleSize:80,bubbleHitbox:90,crossVariant:"bottom_left",swipeToFullscreen:!0,behavior:{}},[w.PRESTITIAL_BANNER]:{zoomAreaMin:100*85,zoomAreaDefault:150*125,zoomAreaFull:300*250*.5625,countdown:5e3,hasCTA:!0,position:{mobile:{right:"0px",bottom:"148px"},desktop:{right:"0px",bottom:"0px"}}},[w.PRESTITIAL_NATIVE]:{crossVariant:"top_right_big",minimizeIcon:"close_fullscreen",position:{mobile:{right:"0px",bottom:"148px"},desktop:{right:"0px",bottom:"0px"}},countdown:5,showCountdown:!1},[w.PRESTITIAL_VIDEO]:{bubbleSize:80,bubbleHitbox:90,swipeToFullscreen:!0,crossVariant:"top_right_big",position:{mobile:{right:"0px",bottom:"148px"},desktop:{right:"0px",bottom:"0px"}},behavior:{},variant:"rotated"},[w.POSTITIAL_BANNER]:{position:{mobile:{right:"0px",bottom:"148px"},desktop:{right:"0px",bottom:"0px"}}},[w.POSTITIAL_NATIVE]:{position:{mobile:{right:"0px",bottom:"148px"},desktop:{right:"0px",bottom:"0px"}}},[w.POSTITIAL_VIDEO]:{position:{mobile:{right:"0px",bottom:"148px"},desktop:{right:"0px",bottom:"0px"}}},[w.HEADER_BANNER]:{width:320,height:121,offset:56,zIndex:2147483647},[w.HEADER_NATIVE]:{width:320,height:121,offset:56,zIndex:2147483647},[w.HEADER_VIDEO]:{width:320,height:121,offset:56,zIndex:2147483647},[w.FOOTER_BANNER]:{width:320,height:100,offset:0,zIndex:2147483647},[w.FOOTER_NATIVE]:{width:320,height:100,offset:0,bgColor:"#fff",zIndex:2147483647},[w.FOOTER_VIDEO]:{width:320,height:100,offset:0,zIndex:2147483647},[w.FOOTERMAX_BANNER]:{width:320,height:90,offset:0,zIndex:2147483647},[w.FOOTERMAX_NATIVE]:{width:320,height:90,offset:0,zIndex:2147483647},[w.FOOTERMAX_VIDEO]:{width:320,height:90,offset:0,zIndex:2147483647},[w.SKINCORNER_BANNER]:{adapter:"",selector:""},[w.SKINCORNER_NATIVE]:{adapter:"",selector:""}};w.STICKY_BANNER+"",w.PRESTITIAL_BANNER+"",w.POSTITIAL_BANNER+"",w.HEADER_BANNER+"",w.FOOTER_BANNER+"",w.SKINCORNER_BANNER+"";/*! load-script2. MIT License. Feross Aboukhadijeh */var ee,pe;function Ve(){return pe||(pe=1,ee=function(e,i,r){return new Promise((n,o)=>{const s=document.createElement("script");s.async=!0,s.src=e;for(const[m,y]of Object.entries(i||{}))s.setAttribute(m,y);s.onload=()=>{s.onerror=s.onload=null,n(s)},s.onerror=()=>{s.onerror=s.onload=null,o(new Error(`Failed to load ${e}`))},(r||document.head||document.getElementsByTagName("head")[0]).appendChild(s)})}),ee}var Pe=Ve();const Me=p(Pe),te=()=>{};function ze(t,e){const i={amp:e.device===fe.AMP,ik:e.idempotencyKey,t:e.apiKey};try{const r=new URL(t);return Object.entries(i).forEach(([n,o])=>{o===!0?r.searchParams.set(n,"1"):o&&r.searchParams.set(n,o)}),r.toString()}catch(r){return""}}function ie(t="%cmissena-debug:",e="color:#FFF; background-color:red; padding:3px;border-radius:3px;"){const i=K();try{const r=i.localStorage.getItem("__missena_debug")||i.hasOwnProperty("displayMissenaInfo"),n=i.displayMissenaInfo||te;return r?function(){if(arguments.length==3){n(...arguments);return}console.log(t,e,...arguments)}:te}catch(r){return te}}function K(){try{return window.Cypress?window:(window.top.__doNotExist__,window.top)}catch(t){return window}}/*! * uuidv4 function posted by Rasmus Schultz (mindplay-dk) * on https://gist.github.com/jed/982883 */for(var E=[],$=0;$<256;$++)E[$]=($<16?"0":"")+$.toString(16);function Le(){var t=crypto.getRandomValues(new Uint8Array(16));return t[6]=t[6]&15|64,t[8]=t[8]&63|128,E[t[0]]+E[t[1]]+E[t[2]]+E[t[3]]+"-"+E[t[4]]+E[t[5]]+"-"+E[t[6]]+E[t[7]]+"-"+E[t[8]]+E[t[9]]+"-"+E[t[10]]+E[t[11]]+E[t[12]]+E[t[13]]+E[t[14]]+E[t[15]]}function he(t,e){var i;typeof t.renderers[e.format]=="function"?((i=t.log)==null||i.call(t,"Renderer finished loading. Rendering: ",t,e),t.renderers[e.format](e),t.shownAds.push(e.meta.requestId||"undefined")):requestAnimationFrame(()=>he(t,e))}function Ke(t,e){return I(this,null,function*(){var n,o,s,d;(n=t.log)==null||n.call(t,"renderSlot",e);const i=t.window.document,r=i.head||i.getElementsByTagName("head")[0];if(t.shownAds=(o=t.shownAds)!=null?o:[],e.meta.requestId=(s=e.meta.requestId)!=null?s:Le(),e.settings=T(T({},ke[e.format]),e.settings),!t.shownAds.includes(e.meta.requestId)){if(typeof t.renderers[e.format]=="function"){(d=t.log)==null||d.call(t,"Renderer already loaded. Rendering: ",t,e),t.renderers[e.format](e),t.shownAds.push(e.meta.requestId);return}Me(`${t.baseUrl}/renderer-${e.format}.js`,{},r).then(()=>{he(t,e)})}})}function $e(t){var e;try{return((e=t.window._pbjsGlobals)!=null?e:[]).reduce((i,r)=>{var n,o;return i||((o=(n=t.window[r])==null?void 0:n.installedModules)==null?void 0:o.includes("fledgeForGpt"))},!1)}catch(i){return!1}}const q=ie("%cmissena-capper:");function le(t,e,i,r=void 0){const o=K().document;function s(d){var y,R,X;(((R=(y=d==null?void 0:d.detail)==null?void 0:y.event)==null?void 0:R.name)||"").startsWith(e)&&(q("missena.event: ",(X=d==null?void 0:d.detail)==null?void 0:X.event),o.removeEventListener("missena.event",s),e.includes("postitial")?De(A(e,t),i):M(A(e,t),i,r))}o.addEventListener("missena.event",s),q("mounted listener for ",e)}const qe="remove-bubble";function Fe(t,e,i){return e?b(A(qe,t),i)==0:!0}const me="display-bubble",Xe=500,We=1;function He(t,e){return e?(e.duration=e.duration||Xe,e.max=e.max||We,le(t,me,e.duration),b(A(me,t))!r.purpose.consents[m])?(q("gdprApplies, NOT ALLOWED!"),!0):o==O.STICKY&&!(He(i,e==null?void 0:e.display)&&Fe(i,e==null?void 0:e.close,n))?(q("sticky"),!1):o==O.POSTITIAL&&!Ye(i,e==null?void 0:e.postitial)?(q("postitial"),!1):!0:!0}function Ze(t){var r;const e=new URL("https://odb.outbrain.com/utils/platforms"),i=e.searchParams;return i.set("cnsntv2",(r=t==null?void 0:t.tcData)==null?void 0:r.tcString),i.set("contentUrl",t.window.location.origin),i.set("cors","true"),i.set("extid",`${t.apiKey}:${v.Outbrain}`),i.set("format","vjnc"),i.set("idx","0"),t.environment==="staging"?(i.set("key","MISSE2C64DIAP9G6IALM960BG"),i.set("testMode","true")):i.set("key","MISSE1B20F8DEDLL0I1F217OD"),i.set("secured","true"),i.set("va","true"),i.set("widgetJSId","APP_1"),e.toString()}function ve(i){return I(this,arguments,function*(t,e=[]){var m,y,R,X;if(e.includes(v.Outbrain))return Promise.resolve({});const n=yield(yield fetch(Ze(t))).json(),o=(m=n.response)==null?void 0:m.documents;if(!o)return Promise.resolve({error:new Error("undefined documents")});if(!o.count||!o.doc)return Promise.resolve({error:new Error(`${o.count}/${o.total_count} ${JSON.stringify(o.doc)}`)});const s=o.doc[0],d=(y=s.thumbnail)==null?void 0:y.url;return Promise.resolve({recommendation:{clickUrl:s.url,icon:d,image:d,impressionTrackers:s.impression_pixels||s.pixels||[],kind:z.NATIVE,onViewed:s["on-viewed"]||[],price:"0",privacyLink:"",sponsoredBy:s.source_display_name,title:s.content,requestId:(X=(R=n.response)==null?void 0:R.request)==null?void 0:X.req_id}})})}const je={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}};var ge=4294967295;function et(t,e,i){var r=i/4294967296,n=i;t.setUint32(e,r),t.setUint32(e+4,n)}function ye(t,e,i){var r=Math.floor(i/4294967296),n=i;t.setUint32(e,r),t.setUint32(e+4,n)}function tt(t,e){var i=t.getInt32(e),r=t.getUint32(e+4);return i*4294967296+r}var re,ne,se,Y=(typeof process=="undefined"||((re=process==null?void 0:process.env)===null||re===void 0?void 0:re.TEXT_ENCODING)!=="never")&&typeof TextEncoder!="undefined"&&typeof TextDecoder!="undefined";function Ee(t){for(var e=t.length,i=0,r=0;r=55296&&n<=56319&&r>6&31|192;else{if(s>=55296&&s<=56319&&o>18&7|240,e[n++]=s>>12&63|128,e[n++]=s>>6&63|128):(e[n++]=s>>12&15|224,e[n++]=s>>6&63|128)}else{e[n++]=s;continue}e[n++]=s&63|128}}var F=Y?new TextEncoder:void 0,rt=Y?typeof process!="undefined"&&((ne=process==null?void 0:process.env)===null||ne===void 0?void 0:ne.TEXT_ENCODING)!=="force"?200:0:ge;function nt(t,e,i){e.set(F.encode(t),i)}function st(t,e,i){F.encodeInto(t,e.subarray(i))}var ot=F!=null&&F.encodeInto?st:nt;Y&&new TextDecoder,Y&&typeof process!="undefined"&&((se=process==null?void 0:process.env)===null||se===void 0||se.TEXT_DECODER);var J=function(){function t(e,i){this.type=e,this.data=i}return t}(),at=function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o])},t(e,i)};return function(e,i){if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");t(e,i);function r(){this.constructor=e}e.prototype=i===null?Object.create(i):(r.prototype=i.prototype,new r)}}(),dt=function(t){at(e,t);function e(i){var r=t.call(this,i)||this,n=Object.create(e.prototype);return Object.setPrototypeOf(r,n),Object.defineProperty(r,"name",{configurable:!0,enumerable:!1,value:e.name}),r}return e}(Error),ct=-1,ut=4294967296-1,ft=17179869184-1;function pt(t){var e=t.sec,i=t.nsec;if(e>=0&&i>=0&&e<=ft)if(i===0&&e<=ut){var r=new Uint8Array(4),n=new DataView(r.buffer);return n.setUint32(0,e),r}else{var o=e/4294967296,s=e&4294967295,r=new Uint8Array(8),n=new DataView(r.buffer);return n.setUint32(0,i<<2|o&3),n.setUint32(4,s),r}else{var r=new Uint8Array(12),n=new DataView(r.buffer);return n.setUint32(0,i),ye(n,4,e),r}}function ht(t){var e=t.getTime(),i=Math.floor(e/1e3),r=(e-i*1e3)*1e6,n=Math.floor(r/1e9);return{sec:i+n,nsec:r-n*1e9}}function lt(t){if(t instanceof Date){var e=ht(t);return pt(e)}else return null}function mt(t){var e=new DataView(t.buffer,t.byteOffset,t.byteLength);switch(t.byteLength){case 4:{var i=e.getUint32(0),r=0;return{sec:i,nsec:r}}case 8:{var n=e.getUint32(0),o=e.getUint32(4),i=(n&3)*4294967296+o,r=n>>>2;return{sec:i,nsec:r}}case 12:{var i=tt(e,4),r=e.getUint32(0);return{sec:i,nsec:r}}default:throw new dt("Unrecognized data size for timestamp (expected 4, 8, or 12): ".concat(t.length))}}function wt(t){var e=mt(t);return new Date(e.sec*1e3+e.nsec/1e6)}var vt={type:ct,encode:lt,decode:wt},gt=function(){function t(){this.builtInEncoders=[],this.builtInDecoders=[],this.encoders=[],this.decoders=[],this.register(vt)}return t.prototype.register=function(e){var i=e.type,r=e.encode,n=e.decode;if(i>=0)this.encoders[i]=r,this.decoders[i]=n;else{var o=1+i;this.builtInEncoders[o]=r,this.builtInDecoders[o]=n}},t.prototype.tryToEncode=function(e,i){for(var r=0;rthis.maxDepth)throw new Error("Too deep objects in depth ".concat(i));e==null?this.encodeNil():typeof e=="boolean"?this.encodeBoolean(e):typeof e=="number"?this.encodeNumber(e):typeof e=="string"?this.encodeString(e):this.encodeObject(e,i)},t.prototype.ensureBufferSizeToWrite=function(e){var 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.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.writeU8(211),this.writeI64(e)):this.forceFloat32?(this.writeU8(202),this.writeF32(e)):(this.writeU8(203),this.writeF64(e))},t.prototype.writeStringHeader=function(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: ".concat(e," bytes in UTF-8"))},t.prototype.encodeString=function(e){var i=5,r=e.length;if(r>rt){var n=Ee(e);this.ensureBufferSizeToWrite(i+n),this.writeStringHeader(n),ot(e,this.bytes,this.pos),this.pos+=n}else{var n=Ee(e);this.ensureBufferSizeToWrite(i+n),this.writeStringHeader(n),it(e,this.bytes,this.pos),this.pos+=n}},t.prototype.encodeObject=function(e,i){var r=this.extensionCodec.tryToEncode(e,this.context);if(r!=null)this.encodeExtension(r);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: ".concat(Object.prototype.toString.apply(e)))},t.prototype.encodeBinary=function(e){var 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: ".concat(i));var r=yt(e);this.writeU8a(r)},t.prototype.encodeArray=function(e,i){var r=e.length;if(r<16)this.writeU8(144+r);else if(r<65536)this.writeU8(220),this.writeU16(r);else if(r<4294967296)this.writeU8(221),this.writeU32(r);else throw new Error("Too large array: ".concat(r));for(var n=0,o=e;n1&&(i=1),i=Math.round(i*100)/100,!(Math.random()>i)&&(this.queue.push({event:yield this.enrich(e,i),url:ze(this.url,this.ctx)}),this.window.document.dispatchEvent(new CustomEvent(this.eventNameSpace,{detail:{event:e}})),this.next()))})}next(){const e=this.queue.shift();if(!e)return;const i=St(Q(T({},e.event),{from:this.application})),r=new Blob([i],{type:"application/msgpack"});navigator.sendBeacon(e.url,r)}}const xt=ie("%cmissena-mosquito:");function Nt(t,e){var r;const i=t.native;return i.kind=z.NATIVE,i.commission={type:"cpm",currency:(r=t.currency)!=null?r:"EUR",value:t.cpm},i.ids=e,i}function Ut(t,e,i={}){var n;if(!("mediaType"in e))return e;const r={type:"cpm",currency:(n=e.currency)!=null?n:"EUR",value:e.cpm};switch(e.mediaType){case"video":return{commission:r,kind:z.VIDEO,vastImpUrl:e.vastImpUrl,vastUrl:e.vastUrl,vastXml:e.vastXml,ids:i};case"native":return Nt(e,i);case"banner":return{kind:z.BANNER,ad:e.ad,width:e.width,height:e.height,commission:r,ids:i}}}function _t(t){return t.replace(/[^\.]+(\.*)/,`${new Date().getTime()}$1`)}function be(t,e){const i=K();if(!i.__tcfapi){e();return}i.__tcfapi("addEventListener",2,function(r,n){!n||!["tcloaded","useractioncomplete"].includes(r==null?void 0:r.eventStatus)||(i.__tcfapi("removeEventListener",2,()=>{},r.listenerId),t(r))})}class Ot extends At{adsuccess(e){this.log({name:"adsuccess",parameters:{provider:e}})}bidsuccess(e){this.log({name:"bidsuccess",parameters:e})}consent(){be(e=>{xt({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 Ct(t){try{return window.top[t]}catch(e){return window[t]}}function Ie(t){return t.environment==L.EDGE||t.environment==L.PRODUCTION}const Rt={native:{title:{required:!0,len:50},sponsoredBy:{required:!0},image:{required:!0,sendId:!0,sizes:[170,170]},icon:{required:!1,sendId:!0,sizes:[50,50]},price:{required:!1},privacyLink:{required:!1,sendId:!0},clickUrl:{required:!0,sendId:!0}}},Bt={video:{playerSize:[640,480],context:"outstream",mimes:["video/mp4"],maxduration:30,api:[1,2],protocols:[2,3],skip:0,playbackmethod:[1],placement:2}},Te={banner:{sizes:[[300,250]]}};function Se(t,e,i,r={}){const n=`msna-${e}`,o=new URLSearchParams(t.window.location.search).get("bidule_sample"),s={ext:{ae:1}};return{[v.Bidule]:{code:n,bids:[{bidder:"missena",params:{placement:e,apiKey:t.apiKey,baseUrl:Ie(t)?"":t.bidderUrl,custom:{providerName:v.Bidule},sample:o,isInternal:!0}}],mediaTypes:Te},[v.CriteoPrebidBanner]:{code:n,bids:[{bidder:"criteo",params:T({pubid:"IPB3NX",custom:{providerName:v.CriteoPrebidBanner},networkId:10593,publisherSubId:`${t.apiKey}:${v.CriteoPrebidBanner}`},r)}],mediaTypes:Te,ortb2Imp:s},[v.CriteoPrebidNative]:{code:n,bids:[{bidder:"criteo",params:T({pubid:"IPB3NX",custom:{providerName:v.CriteoPrebidNative},networkId:10593,publisherSubId:`${t.apiKey}:${v.CriteoPrebidNative}`},r)}],mediaTypes:Rt,ortb2Imp:s},[v.CriteoPrebidVideo]:{code:n,bids:[{bidder:"criteo",params:T({pubid:"IPB3NX",custom:{providerName:v.CriteoPrebidVideo},publisherSubId:`${t.apiKey}:${v.CriteoPrebidVideo}`},r)}],mediaTypes:Bt,ortb2Imp:s}}[i]}function Dt(t,e){const i=e.publisher.blockedProviders;return e.formats.reduce((r,n)=>{const o=n.name.split("-")[0],s=n.providers.reduce((d,m)=>{if(i.includes(m.name))return d;const y=Se(t,o,m.name,m.settings);return y?[...d,y]:d},[]);return[...r,...s]},[])}function kt(t,e){return t.find(r=>{var n;return r.code==e.adUnitCode&&((n=r.bids[0])==null?void 0:n.bidder)==e.bidder&&r.mediaTypes.hasOwnProperty(e.mediaType)}).bids[0].params.custom}function Vt(t,e,i){return e.formats.reduce((r,n)=>{const o=n.name.split("-")[0],s=n.providers.reduce((d,m)=>{if(!i.includes(m.name))return d;const y=Se(t,o,m.name,m.settings);return y?[...d,y]:d},[]);return[...r,...s]},[])}const oe={except:Dt,findCustomData:kt,only:Vt};class Pt{constructor(e){N(this,f);N(this,l);N(this,x);N(this,u);N(this,C);N(this,k);N(this,V);N(this,S);var n;const i=ie(),r=K();r.__MISSENA__=Q(T({renderers:{},referer:r.location.href},(n=r.__MISSENA__)!=null?n:{}),{log:i,window:r}),_(this,l,e),_(this,x,`msna-${a(this,l).placement}`),_(this,u,r.__MISSENA__),_(this,C,i),_(this,k,r.document.head||r.document.getElementsByTagName("head")[0]),_(this,S,r),e.formats.push({mediaType:"banner",name:`${e.placement}-banner`,providers:[{name:v.Bidule}]}),i(e)}run(){a(this,S).__msna_loaded||(a(this,S).__msna_loaded==!0,be(g(this,f,ue).bind(this),g(this,f,ue).bind(this)))}}l=new WeakMap,x=new WeakMap,u=new WeakMap,C=new WeakMap,k=new WeakMap,V=new WeakMap,S=new WeakMap,f=new WeakSet,Ne=function(){const e=new URLSearchParams(a(this,S).location.search).getAll("msna_provider");return e.length==0?oe.except(a(this,u),a(this,l)):oe.only(a(this,u),a(this,l),e)},Ue=function(){return I(this,null,function*(){const{error:e,pbjs:i}=yield g(this,f,Ce).call(this);if(a(this,l).settings.disable_prebid){const{error:s,recommendation:d}=yield ve(a(this,u));if(s){console.error("[missena] error while loading outbrain:",s.message),g(this,f,W).call(this);return}if(!d){g(this,f,W).call(this);return}g(this,f,Z).call(this,d,v.Outbrain,O.STICKY,i.getUserIdsAsEids());return}if(e){console.error("[missena] error while loading prebid:",e.message),g(this,f,P).call(this).debug("mosquito.pbjs.failed");return}i.processQueue(),i.bidderSettings={criteo:T({storageAllowed:!0},a(this,l).publisher.isNet&&{bidCpmAdjustment:s=>s*.6}),missena:{storageAllowed:!0}},i.setConfig(Q(T({},je),{floors:{data:{default:a(this,l).publisher.floor,currency:a(this,l).publisher.floorCurrency,schema:{fields:["mediaType"]}}}}));const r=!Ie(a(this,u))||i.getConfig().debug;let n={};a(this,l).publisher.apiKey==="PA-98473564"&&(n={s2sConfig:{accountId:"1",enabled:!0,bidders:["missena"],timeout:1e3,endpoint:"https://prebid.missena.io/openrtb2/auction"}}),i.setConfig(T({debug:r},n)),i.setBidderConfig({bidders:["criteo"],config:{fledgeEnabled:!0}});const o=g(this,f,Ne).call(this);i.removeAdUnit(a(this,x)),i.addAdUnits(o),a(this,C).call(this,"Added adUnits",o),i.enableAnalytics([{provider:"atsAnalytics",options:{pid:"13964"}}]),i.onEvent("bidTimeout",s=>{s.filter(d=>d.adUnitCode==a(this,x)).forEach(d=>g(this,f,P).call(this).timeout(d.bidder))}),g(this,f,ce).call(this,i)})},ce=function(e){return I(this,null,function*(){e.requestBids({adUnitCodes:[a(this,x)],bidsBackHandler:()=>I(this,null,function*(){const i=e.getUserIdsAsEids(),r=e.getHighestCpmBids(a(this,x))[0];if(!r){const{error:o,recommendation:s}=yield ve(a(this,u),a(this,l).publisher.blockedProviders);if(o){console.error("[missena] error while loading outbrain:",o.message),g(this,f,W).call(this);return}if(!s){g(this,f,W).call(this);return}g(this,f,Z).call(this,s,v.Outbrain,a(this,l).placement,i);return}const n=oe.findCustomData(e.adUnits,r);if(a(this,C).call(this,"winner, ids & provider",{ids:i,customData:n,winner:r}),n.providerName==v.Bidule){const o=document.createElement("iframe");o.frameBorder="0",document.body.appendChild(o);const s=o.contentWindow.document;e.renderAd(s,r.adId);return}g(this,f,Z).call(this,r,n.providerName,r.adUnitCode.substring(5),i)})}),(a(this,l).placement==O.STICKY||a(this,l).placement==O.SKINCORNER)&&a(this,u).settings.auctionRefresh&&setTimeout(()=>{a(this,u).settings.auctionRefresh&&g(this,f,ce).call(this,e)},a(this,l).settings.auctionRefresh*1e3)})},_e=function(){const e=g(this,f,j).bind(this),i=a(this,S);if(i.msnaHandleHistory)return;i.msnaHandleHistory=!0;function r(n){return function(){var o=n.apply(this,arguments);return i.dispatchEvent(new Event("contentchange")),o}}i.history.pushState=r(i.history.pushState),i.history.replaceState=r(i.history.replaceState),i.addEventListener("popstate",()=>{i.dispatchEvent(new Event("contentchange"))}),i.addEventListener("contentchange",()=>{e({isClientSide:!0,minDuration:1e3})})},Oe=function(){var i,r;const e=(i=a(this,u).settings.block)!=null?i:{};if(e.type==="domain"){const n=((r=Ct("location"))==null?void 0:r.hostname)||"";return(e.domains||[]).some(o=>o==n)}return e.type==="device"},ue=function(e,i){return I(this,null,function*(){var r;if(Qe({placement:a(this,l).placement,publisher:a(this,l).publisher.apiKey,capping:a(this,l).settings.capping,tcData:i?void 0:e,referer:(r=a(this,l).settings.capping)!=null&&r.closePerPage?a(this,u).referer:void 0})){if(a(this,u).adServerUrl=a(this,l).adServerUrl,a(this,u).apiKey=a(this,l).publisher.apiKey,a(this,u).baseUrl=a(this,l).baseUrl,a(this,u).bidderUrl=a(this,l).bidderUrl,a(this,u).device=a(this,l).device,a(this,u).environment=a(this,l).environment,a(this,u).idempotencyKey=a(this,l).idempotencyKey,a(this,u).sentryEnabled=a(this,l).publisher.sentryEnabled,a(this,u).settings=a(this,l).settings,a(this,u).tcData=e,a(this,u).slots={},a(this,u).stopRefresh=()=>{delete a(this,u).settings.auctionRefresh},g(this,f,_e).call(this),g(this,f,P).call(this).consent(),g(this,f,Oe).call(this)){a(this,C).call(this,"script blocked");return}g(this,f,Ue).call(this)}})},Z=function(o,s,d){return I(this,arguments,function*(e,i,r,n=[]){a(this,u).passback=g(this,f,j).bind(this);const m=`${r}-${e.mediaType||"native"}`,y=g(this,f,Re).call(this,e.adUnitCode||a(this,x),Ut(a(this,u),e,n),i,e.requestId,m);g(this,f,P).call(this).adsuccess(i),g(this,f,P).call(this).bidsuccess({provider:i,commission:{cpm:e.cpm,currency:e.currency},eids:n.map(R=>R.source)}),Ke(a(this,u),y)})},W=function(){a(this,S).document.dispatchEvent(new CustomEvent("missena.event",{detail:{event:{name:"passback"}}})),new Function(a(this,l).publisher.passback)()},Ce=function(){return I(this,null,function*(){if(a(this,u).window.msnaPbjs)return{pbjs:a(this,u).window.msnaPbjs};try{yield G(`${a(this,l).baseUrl}/prebid.js`,{},a(this,k))}catch(e){return{error:e}}return{pbjs:a(this,u).window.msnaPbjs}})},j=function(e,i={isClientSide:!1,minDuration:1e4}){var s;const r=a(this,u).slots[e];if(!((r==null?void 0:r.displayedAt)&&Date.now()-r.displayedAt>i.minDuration))return!1;delete r.displayedAt,delete a(this,S).__msna_loaded,delete r.data,(s=r.remove)==null||s.call(r);const o=new URL(a(this,u).adServerUrl);return o.searchParams.set("t",a(this,u).apiKey),i.isClientSide?(o.searchParams.set("cs","1"),o.searchParams.set("ik",_t(a(this,u).idempotencyKey))):o.searchParams.set("ik",a(this,u).idempotencyKey),G(o.toString(),{},a(this,k)),!0},P=function(){return a(this,V)||_(this,V,new Ot({appName:"mosquito",ctx:a(this,u)})),a(this,V)},Re=function(e,i,r,n,o=w.STICKY_NATIVE){var d,m;const s={adUnitCode:e,data:i,format:o,settings:(d=a(this,l).formats.find(y=>y.name==o))==null?void 0:d.settings,provider:r,meta:{requestId:n},reload:y=>{g(this,f,j).call(this,e,y)},remove:()=>{},track:()=>{}};return(m=a(this,u).slots[e])==null||m.remove(),a(this,u).slots[e]=s,s};function Mt(t){return I(this,null,function*(){new Pt(t).run()})}return Mt}); _M_({adServerUrl:"https://ad.missena.io/?t=PA-96627237",baseUrl:"https://chat.missena.io",bidderUrl:"https://bid.missena.io",device:"bot",environment:"edge",formats:[{"renderer":"sticky-banner","mediaType":"banner","name":"sticky-banner","settings":{"afterDisplay":"","plugins":[],"position":{"desktop":{"bottom":"0px","right":"0px"},"mobile":{"bottom":"148px","right":"0px"}},"triggers":{"desktop":[],"mobile":[],"webview":[]}},"providers":[{"name":"criteo-prebid-banner"}]},{"renderer":"sticky-native","mediaType":"native","name":"sticky-native","settings":{"behavior":{"adyoulike":{"countdown":3,"onClick":"redirect","onSwipe":"popup"},"criteo-prebid-native":{"countdown":3,"onClick":"popup","onSwipe":"popup"},"improvedigital-native":{"countdown":3,"onClick":"redirect","onSwipe":"popup"},"magnite-native":{"countdown":3,"onClick":"redirect","onSwipe":"popup"},"outbrain":{"countdown":3,"onClick":"redirect","onSwipe":"popup"},"pubmatic-native":{"countdown":3,"onClick":"redirect","onSwipe":"popup"},"smart-native":{"countdown":3,"onClick":"redirect","onSwipe":"popup"},"xandr-native":{"countdown":3,"onClick":"redirect","onSwipe":"popup"}},"position":{"desktop":{"bottom":"0px","left":"0px"},"mobile":{"bottom":"148px","right":"0px"}}},"providers":[{"name":"outbrain"},{"name":"criteo-prebid-native","settings":{"zoneId":1628646}}]},{"renderer":"sticky-video","mediaType":"video","name":"sticky-video","settings":{"position":{"desktop":{"bottom":"0px","left":"0px"}}},"providers":[{"name":"criteo-prebid-video","settings":{"zoneId":1628860}}]}],idempotencyKey:"1733161592.ct6v4u6sq3rc73eespu0",now:1733161592000,placement:"sticky",publisher:{"apiKey":"PA-96627237","blockedProviders":["smilewanted-banner"],"floor":0,"floorCurrency":"EUR","passback":"","sentryEnabled":false},settings:{"auctionRefresh":14},syncopeUrl:"https://sync.missena.io"});})();