(function () {var Ut=Object.defineProperty,St=Object.defineProperties;var It=Object.getOwnPropertyDescriptors;var Se=Object.getOwnPropertySymbols;var _t=Object.prototype.hasOwnProperty,At=Object.prototype.propertyIsEnumerable;var Ie=(p,u,h)=>u in p?Ut(p,u,{enumerable:!0,configurable:!0,writable:!0,value:h}):p[u]=h,E=(p,u)=>{for(var h in u||(u={}))_t.call(u,h)&&Ie(p,h,u[h]);if(Se)for(var h of Se(u))At.call(u,h)&&Ie(p,h,u[h]);return p},ie=(p,u)=>St(p,It(u));var pe=(p,u,h)=>{if(!u.has(p))throw TypeError("Cannot "+h)};var a=(p,u,h)=>(pe(p,u,"read from private field"),h?h.call(p):u.get(p)),y=(p,u,h)=>{if(u.has(p))throw TypeError("Cannot add the same private member more than once");u instanceof WeakSet?u.add(p):u.set(p,h)},A=(p,u,h,x)=>(pe(p,u,"write to private field"),x?x.call(p,h):u.set(p,h),h);var w=(p,u,h)=>(pe(p,u,"access private method"),h);var U=(p,u,h)=>new Promise((x,K)=>{var $=g=>{try{k(h.next(g))}catch(C){K(C)}},q=g=>{try{k(h.throw(g))}catch(C){K(C)}},k=g=>g.done?x(g.value):Promise.resolve(g.value).then($,q);k((h=h.apply(p,u)).next())});(function(p,u){typeof exports=="object"&&typeof module!="undefined"?module.exports=u():typeof define=="function"&&define.amd?define(u):(p=typeof globalThis!="undefined"?globalThis:p||self,p._M_=u())})(this,function(){var m,d,S,I,N,b,J,_e,z,he,Q,Ae,Z,Ce,L,fe,B,re,_,W,j,Ne,O,ne,T,D,ee,Be;"use strict";function p(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}/*! load-script2. MIT License. Feross Aboukhadijeh */var u=function(e,i,r){return new Promise((n,s)=>{const o=document.createElement("script");o.async=!0,o.src=e;for(const[f,v]of Object.entries(i||{}))o.setAttribute(f,v);o.onload=()=>{o.onerror=o.onload=null,n(o)},o.onerror=()=>{o.onerror=o.onload=null,s(new Error(`Failed to load ${e}`))},(r||document.head||document.getElementsByTagName("head")[0]).appendChild(o)})};const h=p(u),x=localStorage;function K(t,e){k(t,$(t)+1,e)}function $(t){t=`missena.${t}`;const e=x.getItem(t);if(!e)return 0;const i=JSON.parse(e);return typeof i.expiry!="number"||new Date().getTime()>i.expiry?(x.removeItem(t),0):typeof i.value=="number"?i.value:0}function q(...t){return["missena","capper"].concat(t).join(".")}function k(t,e,i){t=`missena.${t}`;const r=new Date().getTime()+i*1e3;x.setItem(t,JSON.stringify({value:e,expiry:r}))}function g(t,e,i){function r(n){var o,l;(((l=(o=n==null?void 0:n.detail)==null?void 0:o.event)==null?void 0:l.name)||"").startsWith(e)&&(document.removeEventListener("missena.event",r),K(q(e,t),i))}document.addEventListener("missena.event",r)}const C="display-bubble",Oe=500,De=1;function ke(t,e){return e?(e.duration=e.duration||Oe,e.max=e.max||De,g(t,C,e.duration),$(q(C,t))!r.purpose.consents[s])||ke(i,e==null?void 0:e.display)?!0:(Me("display"),!1)}var P=(t=>(t.BANNER="BANNER",t.NATIVE="NATIVE",t.VIDEO="VIDEO",t))(P||{}),le=(t=>(t.STICKY="sticky",t.PRESTITIAL="prestitial",t.POSTITIAL="postitial",t))(le||{}),M=(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))(M||{}),R=(t=>(t.LOCAL="local",t.STAGING="staging",t.PRODUCTION="production",t.EDGE="edge",t))(R||{}),me=(t=>(t.AMP="amp",t.Bot="bot",t.Desktop="desktop",t.Mobile="mobile",t.Tablet="tablet",t.Webview="webview",t))(me||{}),c=(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.MagniteNative="magnite-native",t.Outbrain="outbrain",t.PubmaticNative="pubmatic-native",t.RichAudienceBanner="richaudience-banner",t.RichAudienceVideo="richaudience-video",t.SmartNative="smart-native",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))(c||{});M.STICKY_BANNER+"",M.STICKY_NATIVE+"",c.Outbrain+"",c.Adyoulike+"",c.SmartNative+"",c.XandrNative+"",c.MagniteNative+"",c.PubmaticNative+"",c.CriteoPrebidNative+"",c.ImproveDigitalNative+"",M.STICKY_VIDEO+"";const se=()=>{};function Ve(t,e){const i={amp:e.device===me.AMP,ik:e.idempotencyKey,t:e.apiKey};try{const r=new URL(t);return Object.entries(i).forEach(([n,s])=>{s===!0?r.searchParams.set(n,"1"):s&&r.searchParams.set(n,s)}),r.toString()}catch(r){return""}}function ze(){const t=H();try{const e=t.localStorage.getItem("__missena_debug")||t.hasOwnProperty("displayMissenaInfo"),i=t.displayMissenaInfo||se;return e?function(){if(arguments.length==3){i(...arguments);return}console.log("%cmissena-debug:","color:#FFF; background-color:#075C8C; padding:3px;border-radius:3px;",...arguments)}:se}catch(e){return se}}function H(){try{return window.Cypress?window:(window.top.__doNotExist__,window.top)}catch(t){return window}}for(var X=0;X<256;X++)(X<16?"0":"")+X.toString(16);function Le(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}:${c.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 we(i){return U(this,arguments,function*(t,e=[]){var f,v,te,Ue;if(e.includes(c.Outbrain))return Promise.resolve({});const n=yield(yield fetch(Le(t))).json(),s=(f=n.response)==null?void 0:f.documents;if(!s)return Promise.resolve({error:new Error("undefined documents")});if(!s.count||!s.doc)return Promise.resolve({error:new Error(`${s.count}/${s.total_count} ${JSON.stringify(s.doc)}`)});const o=s.doc[0],l=(v=o.thumbnail)==null?void 0:v.url;return Promise.resolve({recommendation:{clickUrl:o.url,icon:l,image:l,impressionTrackers:o.impression_pixels||o.pixels||[],kind:P.NATIVE,onViewed:o["on-viewed"]||[],price:"0",privacyLink:"",sponsoredBy:o.source_display_name,title:o.content,requestId:(Ue=(te=n.response)==null?void 0:te.request)==null?void 0:Ue.req_id}})})}const We={enableTIDs:!0,gvlMapping:{missena:687,smilewanted:639},consentManagement:{gdpr:{cmpApi:"iab",timeout:8e3,defaultGdprScope:!0}},bidderTimeout:2e3,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 ve=4294967295;function Ke(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 $e(t,e){var i=t.getInt32(e),r=t.getUint32(e+4);return i*4294967296+r}var oe,ae,de,F=(typeof process=="undefined"||((oe=process==null?void 0:process.env)===null||oe===void 0?void 0:oe.TEXT_ENCODING)!=="never")&&typeof TextEncoder!="undefined"&&typeof TextDecoder!="undefined";function be(t){for(var e=t.length,i=0,r=0;r=55296&&n<=56319&&r>6&31|192;else{if(o>=55296&&o<=56319&&s>18&7|240,e[n++]=o>>12&63|128,e[n++]=o>>6&63|128):(e[n++]=o>>12&15|224,e[n++]=o>>6&63|128)}else{e[n++]=o;continue}e[n++]=o&63|128}}var V=F?new TextEncoder:void 0,He=F?typeof process!="undefined"&&((ae=process==null?void 0:process.env)===null||ae===void 0?void 0:ae.TEXT_ENCODING)!=="force"?200:0:ve;function Xe(t,e,i){e.set(V.encode(t),i)}function Fe(t,e,i){V.encodeInto(t,e.subarray(i))}var Ge=V!=null&&V.encodeInto?Fe:Xe;F&&new TextDecoder,F&&typeof process!="undefined"&&((de=process==null?void 0:process.env)===null||de===void 0||de.TEXT_DECODER);var G=function(){function t(e,i){this.type=e,this.data=i}return t}(),Ye=globalThis&&globalThis.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(r[s]=n[s])},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)}}(),Je=function(t){Ye(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),Qe=-1,Ze=4294967296-1,je=17179869184-1;function et(t){var e=t.sec,i=t.nsec;if(e>=0&&i>=0&&e<=je)if(i===0&&e<=Ze){var r=new Uint8Array(4),n=new DataView(r.buffer);return n.setUint32(0,e),r}else{var s=e/4294967296,o=e&4294967295,r=new Uint8Array(8),n=new DataView(r.buffer);return n.setUint32(0,i<<2|s&3),n.setUint32(4,o),r}else{var r=new Uint8Array(12),n=new DataView(r.buffer);return n.setUint32(0,i),ye(n,4,e),r}}function tt(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 it(t){if(t instanceof Date){var e=tt(t);return et(e)}else return null}function rt(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),s=e.getUint32(4),i=(n&3)*4294967296+s,r=n>>>2;return{sec:i,nsec:r}}case 12:{var i=$e(e,4),r=e.getUint32(0);return{sec:i,nsec:r}}default:throw new Je("Unrecognized data size for timestamp (expected 4, 8, or 12): ".concat(t.length))}}function nt(t){var e=rt(t);return new Date(e.sec*1e3+e.nsec/1e6)}var st={type:Qe,encode:it,decode:nt},ot=function(){function t(){this.builtInEncoders=[],this.builtInDecoders=[],this.encoders=[],this.decoders=[],this.register(st)}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 s=1+i;this.builtInEncoders[s]=r,this.builtInDecoders[s]=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>He){var n=be(e);this.ensureBufferSizeToWrite(i+n),this.writeStringHeader(n),Ge(e,this.bytes,this.pos),this.pos+=n}else{var n=be(e);this.ensureBufferSizeToWrite(i+n),this.writeStringHeader(n),qe(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=at(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,s=e;n1&&(i=1),i=Math.round(i*100)/100,!(Math.random()>i)&&(this.queue.push({event:this.enrich(e,i),url:Ve(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=ht(ie(E({},e.event),{from:this.application})),r=new Blob([i],{type:"application/msgpack"});navigator.sendBeacon(e.url,r)}}function lt(t,e){var r;const i=t.native;return i.kind=P.NATIVE,i.commission={type:"cpm",currency:(r=t.currency)!=null?r:"EUR",value:t.cpm},i.ids=e,i}function mt(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:P.VIDEO,vastImpUrl:e.vastImpUrl,vastUrl:e.vastUrl,vastXml:e.vastXml,ids:i};case"native":return lt(e,i);case"banner":return{kind:P.BANNER,ad:e.ad,width:e.width,height:e.height,commission:r,ids:i}}}function wt(t){return t.replace(/[^\.]+(\.*)/,`${new Date().getTime()}$1`)}function ge(t,e){const i=H();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 vt extends ft{adsuccess(e){this.log({name:"adsuccess",parameters:{provider:e}})}bidsuccess(e){this.log({name:"bidsuccess",parameters:e})}consent(){ge(e=>{this.log({name:"consent",parameters:{applies:e.gdprApplies,missing_purpose:!e.purpose.consents[1],missing_vendor:!e.vendor[867],string:e.tcString}})},()=>{this.log({name:"consent",parameters:{applies:!1}})})}debug(e){this.log({name:"log",parameters:{label:e}})}timeout(e){this.log({name:"timeout",parameters:{bidder:e}})}}function yt(t){try{return window.top[t]}catch(e){return window[t]}}function xe(t){return t.environment==R.EDGE||t.environment==R.PRODUCTION}const Te={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}}},ce={video:{playerSize:[640,480],context:"outstream",mimes:["video/mp4"],maxduration:30,api:[1,2],protocols:[2,3],skip:0,playbackmethod:[1],placement:2}},Y={banner:{sizes:[[300,250]]}};function Ee(t,e,i,r={}){const n=`msna-${e}`,s=new URLSearchParams(t.window.location.search).get("bidule_test");return{[c.Bidule]:{code:n,bids:[{bidder:"missena",params:{placement:e,apiKey:t.apiKey,baseUrl:xe(t)?"":t.bidderUrl,custom:{providerName:c.Bidule},test:s,isInternal:!0}}],mediaTypes:Y},[c.WmgPubmaticNative]:{code:n,bids:[{bidder:"pubmatic",params:E({custom:{providerName:c.WmgPubmaticNative},publisherId:"156736"},r)}],mediaTypes:Te},[c.CriteoPrebidBanner]:{code:n,bids:[{bidder:"criteo",params:E({custom:{providerName:c.CriteoPrebidBanner},networkId:10593,publisherSubId:`${t.apiKey}:${c.CriteoPrebidBanner}`},r)}],mediaTypes:Y},[c.CriteoPrebidNative]:{code:n,bids:[{bidder:"criteo",params:E({custom:{providerName:c.CriteoPrebidNative},networkId:10593,publisherSubId:`${t.apiKey}:${c.CriteoPrebidNative}`},r)}],mediaTypes:Te},[c.CriteoPrebidVideo]:{code:n,bids:[{bidder:"criteo",params:E({custom:{providerName:c.CriteoPrebidVideo},publisherSubId:`${t.apiKey}:${c.CriteoPrebidVideo}`},r)}],mediaTypes:ce},[c.RichAudienceBanner]:{code:n,bids:[{bidder:"richaudience",params:{custom:{providerName:c.RichAudienceBanner},supplyType:"site",pid:"MP_HLWr9WfM73"}}],mediaTypes:Y},[c.RichAudienceVideo]:{code:n,bids:[{bidder:"richaudience",params:{custom:{providerName:c.RichAudienceVideo},supplyType:"site",pid:"MP_HLWr9WfM73"}}],mediaTypes:ce},[c.SmilewantedVideo]:{code:n,bids:[{bidder:"smilewanted",params:{bidfloor:.2,custom:{providerName:c.SmilewantedVideo},zoneId:"missena.com_hb_video_in_its_player_instream_visible"}}],mediaTypes:ce,renderer:{render:()=>{}}},[c.SmilewantedBanner]:{code:n,bids:[{bidder:"smilewanted",params:{bidfloor:2,custom:{providerName:c.SmilewantedBanner},zoneId:"missena.com_hb_display"}}],mediaTypes:Y}}[i]}function bt(t,e){const i=e.publisher.blockedProviders;return e.formats.reduce((r,n)=>{const s=n.name.split("-")[0],o=n.providers.reduce((l,f)=>{if(i.includes(f.name))return l;const v=Ee(t,s,f.name,f.settings);return v?[...l,v]:l},[]);return[...r,...o]},[])}function gt(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 xt(t,e,i){return e.formats.reduce((r,n)=>{const s=n.name.split("-")[0],o=n.providers.reduce((l,f)=>{if(!i.includes(f.name))return l;const v=Ee(t,s,f.name,f.settings);return v?[...l,v]:l},[]);return[...r,...o]},[])}const ue={except:bt,findCustomData:gt,only:xt};class Tt{constructor(e){y(this,J);y(this,z);y(this,Q);y(this,Z);y(this,L);y(this,B);y(this,_);y(this,j);y(this,O);y(this,T);y(this,ee);y(this,m,void 0);y(this,d,void 0);y(this,S,void 0);y(this,I,void 0);y(this,N,void 0);y(this,b,void 0);var n;const i=ze(),r=H();r.__MISSENA__=ie(E({},(n=r.__MISSENA__)!=null?n:{}),{log:i,window:r}),A(this,m,e),A(this,d,r.__MISSENA__),A(this,S,i),A(this,I,r.document.head||r.document.getElementsByTagName("head")[0]),A(this,b,r),e.formats.push({mediaType:"banner",name:`${e.placement}-banner`,providers:[{name:c.Bidule}]}),i(e)}run(){a(this,b).__msna_loaded||(a(this,b).__msna_loaded==!0,ge(w(this,L,fe).bind(this),w(this,L,fe).bind(this)))}}m=new WeakMap,d=new WeakMap,S=new WeakMap,I=new WeakMap,N=new WeakMap,b=new WeakMap,J=new WeakSet,_e=function(){const e=new URLSearchParams(a(this,b).location.search).getAll("msna_provider");return e.length==0?ue.except(a(this,d),a(this,m)):ue.only(a(this,d),a(this,m),e)},z=new WeakSet,he=function(){return U(this,null,function*(){const{error:e,pbjs:i}=yield w(this,j,Ne).call(this);if(a(this,m).settings.disable_prebid){const{error:s,recommendation:o}=yield we(a(this,d));if(s){console.error("[missena] error while loading outbrain:",s.message),w(this,_,W).call(this);return}if(!o){w(this,_,W).call(this);return}w(this,B,re).call(this,o,c.Outbrain,le.STICKY,i.getUserIdsAsEids());return}if(e){console.error("[missena] error while loading prebid:",e.message),w(this,T,D).call(this).debug("mosquito.pbjs.failed");return}i.adUnits=[],i.processQueue(),i.bidderSettings={criteo:{storageAllowed:!0},missena:{storageAllowed:!0}},i.setConfig(ie(E({},We),{floors:{default:a(this,m).publisher.floor,currency:a(this,m).publisher.floorCurrency}}));const r=!xe(a(this,d))||i.getConfig().debug;i.setConfig({debug:r});const n=w(this,J,_e).call(this);a(this,S).call(this,"Starting auction with adUnits",n),i.addAdUnits(n),i.enableAnalytics([{provider:"atsAnalytics",options:{pid:"13964"}}]),i.onEvent("bidTimeout",s=>{s.forEach(o=>w(this,T,D).call(this).timeout(o.bidder))}),i.requestBids({bidsBackHandler:()=>U(this,null,function*(){const s=i.getUserIdsAsEids(),o=i.getHighestCpmBids()[0];if(!o){const{error:f,recommendation:v}=yield we(a(this,d),a(this,m).publisher.blockedProviders);if(f){console.error("[missena] error while loading outbrain:",f.message),w(this,_,W).call(this);return}if(!v){w(this,_,W).call(this);return}w(this,B,re).call(this,v,c.Outbrain,a(this,m).placement,s);return}const l=ue.findCustomData(n,o);if(a(this,S).call(this,"winner, ids & provider",{ids:s,customData:l,winner:o}),l.providerName==c.Bidule){const f=document.createElement("iframe");f.frameBorder="0",document.body.appendChild(f);const v=f.contentWindow.document;i.renderAd(v,o.adId);return}w(this,B,re).call(this,o,l.providerName,o.adUnitCode.substring(5),s)})}),a(this,d).settings.auctionRefresh&&setTimeout(()=>{a(this,d).settings.auctionRefresh&&w(this,z,he).call(this)},a(this,m).settings.auctionRefresh*1e3)})},Q=new WeakSet,Ae=function(){const e=w(this,O,ne).bind(this),i=a(this,b);if(i.msnaHandleHistory)return;i.msnaHandleHistory=!0;function r(n){return function(){var s=n.apply(this,arguments);return i.dispatchEvent(new Event("contentchange")),s}}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})})},Z=new WeakSet,Ce=function(){var i,r;const e=(i=a(this,d).settings.block)!=null?i:{};if(e.type==="domain"){const n=((r=yt("location"))==null?void 0:r.hostname)||"";return(e.domains||[]).some(s=>s==n)}return e.type==="device"},L=new WeakSet,fe=function(e,i){return U(this,null,function*(){if(Re({publisher:a(this,m).publisher.apiKey,capping:a(this,m).settings.capping,tcData:i?void 0:e})){if(a(this,d).adServerUrl=a(this,m).adServerUrl,a(this,d).apiKey=a(this,m).publisher.apiKey,a(this,d).baseUrl=a(this,m).baseUrl,a(this,d).bidderUrl=a(this,m).bidderUrl,a(this,d).device=a(this,m).device,a(this,d).environment=a(this,m).environment,a(this,d).idempotencyKey=a(this,m).idempotencyKey,a(this,d).sentryEnabled=a(this,m).publisher.sentryEnabled,a(this,d).settings=a(this,m).settings,a(this,d).tcData=e,a(this,d).slots={},a(this,d).stopRefresh=()=>{delete a(this,d).settings.auctionRefresh},w(this,Q,Ae).call(this),w(this,T,D).call(this).consent(),w(this,Z,Ce).call(this)){a(this,S).call(this,"script blocked");return}w(this,z,he).call(this)}})},B=new WeakSet,re=function(s,o,l){return U(this,arguments,function*(e,i,r,n={}){a(this,d).passback=w(this,O,ne).bind(this);const f=`${r}-${e.mediaType||"native"}`;let v=w(this,ee,Be).call(this,e.adUnitCode||"msna-sticky",mt(a(this,d),e,n),i,e.requestId,f);w(this,T,D).call(this).adsuccess(i),w(this,T,D).call(this).bidsuccess({provider:i,commission:{cpm:e.cpm,currency:e.currency},eids:n.map(te=>te.source)}),yield h(`${a(this,m).baseUrl}/renderer-${f}.js`,{},a(this,I)),a(this,d).renderAd(v)})},_=new WeakSet,W=function(){a(this,b).document.dispatchEvent(new CustomEvent("missena.event",{detail:{event:{name:"passback"}}})),new Function(a(this,m).publisher.passback)()},j=new WeakSet,Ne=function(){return U(this,null,function*(){if(a(this,d).window.msnaPbjs)return{pbjs:a(this,d).window.msnaPbjs};try{yield h(`${a(this,m).baseUrl}/prebid.js`,{},a(this,I))}catch(e){return{error:e}}return{pbjs:a(this,d).window.msnaPbjs}})},O=new WeakSet,ne=function(e,i={isClientSide:!1,minDuration:1e4}){var o;const r=a(this,d).slots[e];if(!((r==null?void 0:r.displayedAt)&&Date.now()-r.displayedAt>i.minDuration))return!1;delete r.displayedAt,delete a(this,b).__msna_loaded,delete r.data,(o=r.remove)==null||o.call(r);const s=new URL(a(this,d).adServerUrl);return s.searchParams.set("t",a(this,d).apiKey),i.isClientSide?(s.searchParams.set("cs","1"),s.searchParams.set("ik",wt(a(this,d).idempotencyKey))):s.searchParams.set("ik",a(this,d).idempotencyKey),h(s.toString(),{},a(this,I)),!0},T=new WeakSet,D=function(){return a(this,N)||A(this,N,new vt({appName:"mosquito",ctx:a(this,d)})),a(this,N)},ee=new WeakSet,Be=function(e,i,r,n,s=M.STICKY_NATIVE){var l,f;const o={adUnitCode:e,data:i,format:s,settings:(l=a(this,m).formats.find(v=>v.name==s))==null?void 0:l.settings,provider:r,requestId:n,reload:v=>{w(this,O,ne).call(this,e,v)},remove:()=>{},track:()=>{}};return(f=a(this,d).slots[e])==null||f.remove(),a(this,d).slots[e]=o,o};function Et(t){return U(this,null,function*(){new Tt(t).run()})}return Et}); _M_({adServerUrl:"https://ad.missena.io/?t=PA-96627237",baseUrl:"https://chat.missena.io",bidderUrl:"https://bid.missena.io",device:"desktop",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":"criteo-prebid-native","settings":{"zoneId":1628646}},{"name":"outbrain"}]},{"renderer":"sticky-video","mediaType":"video","name":"sticky-video","settings":{"position":{"desktop":{"bottom":"0px","left":"0px"}}},"providers":[{"name":"criteo-prebid-video","settings":{"zoneId":1628860}}]}],idempotencyKey:"1691357400.cj811m0nc62s73essu0g",now:1691357400000,placement:"sticky",publisher:{"apiKey":"PA-96627237","blockedProviders":[],"floor":0,"floorCurrency":"EUR","passback":"","sentryEnabled":false},settings:{"auctionRefresh":14},syncopeUrl:"https://sync.missena.io"});})();