@adstage/web-sdk 3.0.5 → 3.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- function t(e,n){var r=h();return(t=function(t,e){return r[t-=147]})(e,n)}var e,n,r,s,o,i,a,c,l,d,u,p;function h(){var t=["NATIVE","11526NlhHjs","6482hWJzWX","POPUP","3223BMQVof","15970aFnZhB","65QWUQJD","3976mcLXTf","TEXT","MOBILE","1662390NKHaSO","TABLET","83442ZrIieT","1966188OHlNQz","VIEWABLE","WEB","BANNER","69UWdjSt","DESKTOP","VIDEO","5orbZHz","46316yFIwmc"];return(h=function(){return t})()}!function(){for(var e=t,n=h();;)try{if(321999===-parseInt(e(167))/1*(parseInt(e(162))/2)+-parseInt(e(156))/3*(parseInt(e(160))/4)+-parseInt(e(159))/5*(-parseInt(e(151))/6)+-parseInt(e(163))/7*(-parseInt(e(168))/8)+parseInt(e(149))/9+-parseInt(e(166))/10*(-parseInt(e(165))/11)+-parseInt(e(152))/12)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(),(n=e||(e={}))[(r=t)(155)]=r(155),n[r(164)]=r(164),n.INTERSTITIAL="INTERSTITIAL",n[r(161)]="NATIVE",n[r(158)]="VIDEO",n[r(147)]=r(147),(o=s||(s={}))[(i=t)(154)]=i(154),o[i(148)]=i(148),(c=a||(a={}))[(l=t)(153)]=l(153),c.CLICK="CLICK",(u=d||(d={}))[(p=t)(157)]=p(157),u[p(148)]="MOBILE",u[p(150)]=p(150);const f=g;function g(t,e){const n=m();return(g=function(t,e){return n[t-=314]})(t,e)}function m(){const t=["readyState","loading","번 시도)","safeWindowOpen","waitForDOM",'❌ 컨테이너를 찾을 수 없습니다: "',"ms 경과)","removeChild","getPageInfo","undefined","safeSetTextContent","safeAddClass","waitForElements","pow","createElement","entries","pageYOffset","safeRemoveEventListener","querySelector","42715sqifvw","devicePixelRatio","DOM을 사용할 수 없는 환경입니다.",'"\n \n다음을 확인해보세요:\n1. HTML에 id="',"innerHeight","all","safeAppendChild","safeQuerySelectorAll","innerWidth","map","1338323ysaTbG","style","innerHTML","⏳ 컨테이너 대기 시작: ","safeRemoveChild","forEach","documentElement","log","remove","open","safeSetInnerHTML","getElementById","title","referrer","safeRemoveClass","safeCreateElement","addEventListener","2ylugQI","safeGetComputedStyle","✅ 컨테이너 즉시 발견: ","isSSR","add","querySelectorAll","setProperty","ceil","safeAddEventListener","error","645256XCrizh","ms)","safeQuerySelector","getScrollInfo","scrollTop","530622LOHljp","safeGetElementById","getDocumentProperty","767532tHPThj","href","isDOMReady","removeEventListener","getViewportInfo","DOMContentLoaded","ms (",'" 요소가 있는지 확인\n2. React 등에서 컴포넌트가 렌더링된 후 SDK 호출\n3. 철자가 정확한지 확인\n4. 중복된 ID가 없는지 확인\n\n대기 시간: ',"isBrowser","1613660TZmESK","canUseDOM","getWindowProperty","classList","min","waitForElement","from","getComputedStyle","8025400WAAxIN"," (최대 "];return(m=function(){return t})()}!function(){const t=g,e=m();for(;;)try{if(236273===parseInt(t(379))/1*(-parseInt(t(323))/2)+-parseInt(t(338))/3+-parseInt(t(333))/4+-parseInt(t(350))/5+parseInt(t(341))/6+-parseInt(t(389))/7+parseInt(t(358))/8)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class y{static[f(349)](){const t=f;return typeof window!==t(369)&&typeof document!==t(369)}static[f(326)](){return!this.isBrowser()}static canUseDOM(){const t=f;return this[t(349)]()&&void 0!==document[t(360)]}static[f(339)](t){const e=f;return this[e(351)]()?document[e(317)](t):null}static[f(335)](t){const e=f;return this[e(351)]()?document[e(378)](t):null}static[f(386)](t){const e=f;return this[e(351)]()?Array[e(356)](document[e(328)](t)):[]}static[f(321)](t){const e=f;return this[e(351)]()?document[e(374)](t):null}static[f(331)](t,e,n,r){const s=f;this.canUseDOM()&&t&&t[s(322)](e,n,r)}static[f(377)](t,e,n,r){const s=f;this[s(351)]()&&t&&t[s(344)](e,n,r)}static getWindowProperty(t,e){return this[f(349)]()?window[t]??e:e}static[f(340)](t,e){return this.canUseDOM()?document[t]??e:e}static[f(363)](t,e,n){const r=f;return this[r(349)]()?window[r(315)](t,e,n):null}static[f(324)](t){const e=f;return this.isBrowser()&&t?window[e(357)](t):null}static[f(343)](){const t=f;return!!this.canUseDOM()&&document[t(360)]!==t(361)}static[f(364)](){return new Promise(t=>{const e=g;this[e(351)]()?this.isDOMReady()?t():this.safeAddEventListener(document,e(346),()=>t()):t()})}static safeApplyStyles(t,e){const n=f;this.canUseDOM()&&t&&Object[n(375)](e)[n(394)](([e,r])=>{const s=n;t[s(390)][s(329)](e,r)})}static[f(371)](t,e){const n=f;this[n(351)]()&&t&&t[n(353)][n(327)](e)}static[f(320)](t,e){const n=f;this[n(351)]()&&t&&t[n(353)][n(314)](e)}static[f(370)](t,e){this[f(351)]()&&t&&(t.textContent=e)}static[f(316)](t,e){const n=f;this[n(351)]()&&t&&(t[n(391)]=e)}static[f(385)](t,e){this.canUseDOM()&&t&&e&&t.appendChild(e)}static[f(393)](t,e){const n=f;this[n(351)]()&&t&&e&&t[n(367)](e)}static[f(368)](){const t=f;return{url:this[t(352)]("location",{href:""})[t(342)],title:this[t(340)](t(318),""),referrer:this[t(340)](t(319),"")}}static[f(345)](){const t=f;return{width:this[t(352)](t(387),0),height:this[t(352)](t(383),0),pixelRatio:this.getWindowProperty(t(380),1)}}static[f(336)](){const t=f;return{scrollTop:this[t(351)]()?window[t(376)]||document[t(395)][t(337)]:0,scrollLeft:this[t(352)]("pageXOffset",0)}}static async[f(355)](t,e={}){const n=f,{timeout:r=3e3,retryInterval:s=100,debug:o=!1}=e;if(!this[n(351)]())throw new Error(n(381));const i=document.getElementById(t);return i?(o&&console[n(396)](n(325)+t),i):(o&&console[n(396)](n(392)+t+n(359)+r+n(334)),new Promise((e,i)=>{const a=n;let c=0;const l=Math[a(330)](r/s),d=()=>{const n=a;c++;const u=document[n(317)](t);if(u)return o&&console[n(396)]("✅ 컨테이너 발견: "+t+" ("+c+"번째 시도, "+c*s+n(366)),void e(u);if(c>=l){const e=n(365)+t+n(382)+t+n(348)+r+n(347)+c+n(362);return o&&console[n(332)](e),void i(new Error(e))}o&&c%10==0&&console[n(396)]("⏳ 컨테이너 대기 중: "+t+" ("+c+"/"+l+")");const p=Math[n(354)](s*Math[n(373)](1.2,c),500);setTimeout(d,p)};setTimeout(d,s)}))}static async[f(372)](t,e={}){const n=f,r=t[n(388)](t=>this.waitForElement(t,e));return Promise[n(384)](r)}}const I=v;function v(t,e){const n=b();return(v=function(t,e){return n[t-=315]})(t,e)}function b(){const t=["796812IwfWFl","6899877SXWMQu","50615BaswHK",'"3.0.5"',"104cDixTg","undefined","userAgent","2370501TqpSai","10vwvcSG","54453fYbVOk","888408mVONvy","238298cLYLFw","40cORphh"];return(b=function(){return t})()}!function(){const t=v,e=b();for(;;)try{if(267783===-parseInt(t(327))/1+parseInt(t(315))/2*(parseInt(t(325))/3)+parseInt(t(320))/4*(-parseInt(t(318))/5)+-parseInt(t(316))/6+-parseInt(t(323))/7+parseInt(t(326))/8+parseInt(t(317))/9*(parseInt(t(324))/10))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const w=I(319);function E(){return w}const k=S;function x(){const t=["toString","adstage_device_id","timeZone","UTC","getScrollInfo","2936xnPKre","width","8JkWJOj","test","left","1.0.0","toLowerCase","userAgent","generateDeviceId",",y:","height","37610FcQtIV","getPlatform","connection","device_","generateSessionId","effectiveType","getBoundingClientRect","adstage_session_id","1474OzxwLj","round","194125HZWWsH","random","isBrowser","now","colorDepth","2773548kGOwii","pixelRatio","session_","6ShKmaz","getItem","safeGetElementById","567845WcQpst","scrollTop","setItem","3091809zmxYZM","isMobile","platform","9108eURPsW","DateTimeFormat","ssr_device_","unknown","SSR","ios","substr","top","getSlotPosition","web","844092AkRWbA","collectDeviceInfo"];return(x=function(){return t})()}function S(t,e){const n=x();return(S=function(t,e){return n[t-=447]})(t,e)}!function(){const t=S,e=x();for(;;)try{if(508366===parseInt(t(474))/1*(-parseInt(t(482))/2)+parseInt(t(501))/3+-parseInt(t(455))/4*(parseInt(t(485))/5)+parseInt(t(479))/6+parseInt(t(488))/7+-parseInt(t(453))/8*(parseInt(t(491))/9)+parseInt(t(464))/10*(parseInt(t(472))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class A{static[k(461)](){const t=k;if(!y[t(476)]())return t(493)+Date.now();const e=localStorage[t(483)](t(449));if(e)return e;const n=t(467)+Math[t(475)]()[t(448)](36)[t(497)](2,9)+"_"+Date[t(477)]();return localStorage[t(487)](t(449),n),n}static[k(468)](){const t=k;if(!y.isBrowser())return"ssr_session_"+Date[t(477)]();const e=sessionStorage.getItem(t(471));if(e)return e;const n=t(481)+Math[t(475)]()[t(448)](36)[t(497)](2,9)+"_"+Date.now();return sessionStorage[t(487)](t(471),n),n}static[k(489)](){const t=k;return!!y.isBrowser()&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator[t(460)])}static[k(465)](){const t=k;if(!y[t(476)]())return t(500);const e=navigator[t(460)][t(459)]();return/iphone|ipad|ipod/[t(456)](e)?t(496):/android/[t(456)](e)?"android":A.isMobile()?t(500):"desktop"}static[k(447)](){const t=k,e=y.getViewportInfo();return{deviceId:A.generateDeviceId(),sessionId:A[t(468)](),osVersion:y[t(476)]()?navigator.platform:"SSR",deviceModel:y[t(476)]()?navigator[t(490)]:t(495),appVersion:t(458),sdkVersion:E(),language:y[t(476)]()&&navigator.language||"ko",country:"KR",ipAddress:"",userAgent:y.isBrowser()?navigator.userAgent:t(495),timezone:y[t(476)]()?Intl[t(492)]().resolvedOptions()[t(450)]:t(451),viewportWidth:e.width,viewportHeight:e[t(463)],screenWidth:y[t(476)]()?screen[t(454)]:0,screenHeight:y[t(476)]()?screen[t(463)]:0,colorDepth:y[t(476)]()?screen[t(478)]:24,pixelRatio:e[t(480)],connectionType:y.isBrowser()?navigator[t(466)]?.[t(469)]||"unknown":t(494),platform:A[t(465)]()}}static[k(499)](t){const e=k,n=y[e(484)](t);if(!n)return e(494);const r=n[e(470)](),s=y[e(452)]();return"x:"+Math[e(473)](r[e(457)])+e(462)+Math.round(r[e(498)]+s[e(486)])}}const T=R;!function(){const t=R,e=_();for(;;)try{if(790256===parseInt(t(225))/1*(-parseInt(t(222))/2)+parseInt(t(231))/3*(-parseInt(t(221))/4)+-parseInt(t(234))/5+parseInt(t(228))/6+-parseInt(t(235))/7*(-parseInt(t(227))/8)+parseInt(t(219))/9+parseInt(t(229))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class C{static[T(230)](t,e){const n=T;if(!t)throw new Error(n(223));const r={"x-api-key":t,"Content-Type":e?.contentType||n(233)};return typeof navigator!==n(232)&&(r["User-Agent"]=e?.[n(224)]||navigator.userAgent),r}static[T(220)](t,e){const n=T,r=C[n(230)](t);return e?.userAgent&&(r[n(226)]=e[n(224)]),r}}function R(t,e){const n=_();return(R=function(t,e){return n[t-=219]})(t,e)}function _(){const t=["createForEvents","476kSRNjT","4306ewIXxw","API key is required","userAgent","91UmQxGw","User-Agent","3024AukOTF","1176084OuDSdY","2046370QbbOjj","create","12078vBUpPp","undefined","application/json","677420jxGtQN","8197rGllsU","6817212Xmpfkw"];return(_=function(){return t})()}const D=L;function L(t,e){const n=B();return(L=function(t,e){return n[t-=333]})(t,e)}function B(){const t=["width","containerId","string","2412896kWJLvY","6aEYumf","/advertisements/events/","NOT_SET","❌ Failed to track advertisement event:","platform","now","statusText"," in slot ","2zYtetS"," event for ad ","sessionId","debug","456780ZleoWN","1596315VelgZC","error","referrer","adType","text","baseUrl","100789UDJrpd","14888axJflt","getPageInfo","2318701FYQoRY","collectDeviceInfo","860060lzdFeF","log","status","📡 API Response Status: ","slots","apiKey","🚀 Sending advertisement event: ","POST","substring","129XATauU","✅ Successfully tracked advertisement event: ","trackAdvertisementEvent"," - ","🔍 Debug info:","🌐 Full API call details:","🚀 AdvertisementEventTracker: Processing ","API request failed: ","parseNumericValue","stringify","getSlotPosition","9gKXpsX"," for ad ","length","title","..."];return(B=function(){return t})()}!function(){const t=L,e=B();for(;;)try{if(160433===-parseInt(t(352))/1*(parseInt(t(341))/2)+parseInt(t(366))/3*(parseInt(t(353))/4)+parseInt(t(357))/5*(-parseInt(t(333))/6)+parseInt(t(346))/7+parseInt(t(385))/8*(parseInt(t(377))/9)+-parseInt(t(345))/10+-parseInt(t(355))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class P{constructor(t,e,n,r){const s=L;this[s(351)]=t,this[s(362)]=e,this[s(344)]=n,this[s(361)]=r}async[D(368)](t,e,n){const r=D;try{this[r(344)]&&console[r(358)](r(372)+n+r(342)+t+r(340)+e);const s=this[r(361)].get(e),o=A[r(356)](),i={adType:s?.[r(349)]||"BANNER",platform:o[r(337)],deviceId:o.deviceId,deviceInfo:o,pageUrl:y[r(354)]().url,pageTitle:y[r(354)]()[r(380)],referrer:y[r(354)]()[r(348)],slotId:e,slotPosition:A[r(376)](s?.[r(383)]||""),slotWidth:P[r(374)](s?.[r(382)]),slotHeight:P[r(374)](s?.height),sessionId:o[r(343)],pageLoadTime:performance[r(338)](),metadata:{eventType:n,sdkVersion:E(),timestamp:Date[r(338)]()},...n===a.VIEWABLE&&{isViewable:!0,iabCompliant:!0}},c=this[r(351)]+r(334)+t+"/"+n,l=C.createForEvents(this[r(362)],i);this[r(344)]&&(console[r(358)](r(363)+n+r(378)+t,{url:c,headers:l,eventData:i}),console.log(r(371),{method:r(364),url:c,hasApiKey:!!this[r(362)],bodySize:JSON.stringify(i)[r(379)]}));const d=await fetch(c,{method:"POST",headers:l,body:JSON[r(375)](i)});if(this[r(344)]&&console[r(358)](r(360)+d[r(359)]+" "+d[r(339)],{url:c,ok:d.ok}),!d.ok){const t=await d[r(350)]();throw new Error(r(373)+d[r(359)]+" "+d[r(339)]+r(369)+t)}this[r(344)]&&console[r(358)](r(367)+n+r(378)+t)}catch(s){console[r(347)](r(336),s),console[r(347)](r(370),{baseUrl:this[r(351)],apiKey:this[r(362)]?this.apiKey[r(365)](0,8)+r(381):r(335),url:this[r(351)]+r(334)+t+"/"+n,eventType:n,adId:t,slotId:e})}}static[D(374)](t){if("number"==typeof t)return t;if(typeof t===D(384)){const e=parseFloat(t.replace(/px$/,""));return isNaN(e)?0:e}return 0}}var U=O;function O(t,e){var n=z();return(O=function(t,e){return n[t-=112]})(t,e)}function z(){var t=["initIntersectionObserver","isViewableTriggered","69aqXKeL","7bVBAKX","onViewableCallback","element","observe","IntersectionObserver not supported, viewability tracking disabled","855500jFrzsz","107272RYrKyE","24454uNzcmz","visible","177888nNlaME","hidden","isDocumentVisible","1298064nBamXA","destroy","observer","handleIntersection","0px","350127kwmVBj","forEach","disconnect","642272eRAsdP"];return(z=function(){return t})()}!function(){for(var t=O,e=z();;)try{if(163140===-parseInt(t(130))/1+-parseInt(t(128))/2*(-parseInt(t(120))/3)+-parseInt(t(127))/4+-parseInt(t(126))/5+-parseInt(t(133))/6*(-parseInt(t(121))/7)+parseInt(t(117))/8+-parseInt(t(114))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class N{constructor(t,e){var n=O;this.observer=null,this.isViewableTriggered=!1,this[n(123)]=t,this.onViewableCallback=e,this[n(118)]()}[U(118)](){var t=U;"IntersectionObserver"in window?(this[t(135)]=new IntersectionObserver(e=>this[t(112)](e),{threshold:.5,rootMargin:t(113)}),this[t(135)][t(124)](this[t(123)])):console.warn(t(125))}handleIntersection(t){var e=U;t[e(115)](t=>{var n=e;t.intersectionRatio>=.5&&this.isDocumentVisible()&&!this[n(119)]&&(this.isViewableTriggered=!0,this[n(122)]&&this[n(122)]())})}[U(132)](){var t=U;return!document[t(131)]&&document.visibilityState===t(129)}[U(134)](){var t=U;this[t(135)]&&(this[t(135)][t(116)](),this[t(135)]=null)}}const M=H;function V(){const t=["8803454lbGCNW","https://api.adstage.io","2ndObBp","advertisements","136DGjKRo","startsWith","85611hjhxwg","380tVxwcn","list","baseUrl","/advertisements","track","236720JVcOZf","21366YYSAqc","events","/advertisements/list","71218jNcvAj","4xbgAuK","708972rEEIZb","214804vJrdHC","/advertisements/events","getBaseUrl","setBaseUrl"];return(V=function(){return t})()}!function(){const t=H,e=V();for(;;)try{if(128297===-parseInt(t(449))/1*(parseInt(t(455))/2)+-parseInt(t(459))/3*(parseInt(t(447))/4)+-parseInt(t(442))/5+-parseInt(t(448))/6+-parseInt(t(446))/7*(parseInt(t(457))/8)+parseInt(t(443))/9*(-parseInt(t(460))/10)+parseInt(t(453))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const F={production:M(454),beta:"https://beta-api.adstage.app"};function H(t,e){const n=V();return(H=function(t,e){return n[t-=442]})(t,e)}const j={advertisements:{list:M(445),detail:M(463),events:M(450)},events:{track:"/events/track"}};class W{constructor(t){const e=M;this.advertisements={list:()=>""+this[e(462)]+j.advertisements[e(461)],detail:t=>""+this[e(462)]+j.advertisements.detail+"/"+t,events:(t,n)=>""+this[e(462)]+j[e(456)][e(444)]+"/"+t+"/"+n},this.events={track:()=>""+this[e(462)]+j[e(444)][e(464)]},this[e(462)]=t||F.production}[M(452)](t){this[M(462)]=t}[M(451)](){return this[M(462)]}custom(t){const e=M;return""+this[e(462)]+(t[e(458)]("/")?t:"/"+t)}}const K=new W;var Y=X;function X(t,e){var n=Z();return(X=function(t,e){return n[t-=283]})(t,e)}function Z(){var t=[") in slot: ","VIEWABLE","51952MWmyPM","14970IgCElL"," (index: ","2aWxhGy","351XLvBZJ","1142997IcmnML","trackSlideViewable","3778908bqmmZJ","_id","4018300EvwfGl","1604bpgJzv","1794688KUikMH","176207RuOiJZ"," (index: 0) in slot: ","log","🎯 Triggering initial VIEWABLE event: ad "];return(Z=function(){return t})()}!function(){for(var t=X,e=Z();;)try{if(729270===parseInt(t(290))/1*(parseInt(t(299))/2)+parseInt(t(283))/3+parseInt(t(288))/4*(parseInt(t(297))/5)+-parseInt(t(285))/6+parseInt(t(289))/7+parseInt(t(296))/8*(-parseInt(t(300))/9)+-parseInt(t(287))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class q{static[Y(284)](t,e,n,r,s=!1){var o=Y;s&&console[o(292)]("🎯 Triggering VIEWABLE event for slide change: ad "+t[o(286)]+o(298)+n+o(294)+e.id),r(t[o(286)],e.id,a[o(295)])}static trackInitialSlideViewable(t,e,n,r=!1){var s=Y;r&&console[s(292)](s(293)+t[s(286)]+s(291)+e.id),n(t[s(286)],e.id,a.VIEWABLE)}}function Q(t,e){const n=J();return(Q=function(t,e){return n[t-=194]})(t,e)}const G=Q;function J(){const t=["🔗 ","open"," -> "," ad clicked: ","log","2397032AZEHnc","toLowerCase","CLICK","cursor","addClickEventForSlider","35ERiVmd","8goQaga","preventDefault","273974dQfidW","_blank","2228324jgnwyN","forEach","_id","addClickEventForRenderer","isClickable","96018IqjZWB","3055930MHTguK","click","stopPropagation","pointer","adType","addClickEvent","addEventListener","13741130psGfOr","9tXPeqD","310809JHYwXA","linkUrl","style"];return(J=function(){return t})()}!function(){const t=Q,e=J();for(;;)try{if(360188===-parseInt(t(203))/1+-parseInt(t(201))/2*(parseInt(t(220))/3)+-parseInt(t(205))/4+parseInt(t(211))/5+-parseInt(t(210))/6*(parseInt(t(200))/7)+parseInt(t(195))/8*(-parseInt(t(219))/9)+parseInt(t(218))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class ${static[G(216)](t,e,n,r,s=!1,o){const i=G;e[i(221)]&&(t.style[i(198)]=i(214),t[i(217)]("click",t=>{const c=i;if(t[c(202)](),t[c(213)](),r&&r(e[c(207)],n.id,a.CLICK),window[c(224)](e[c(221)],c(204)),s){const t=o||String(n.adType)[c(196)]();console[c(194)](c(223)+t+" ad clicked: "+e[c(207)]+c(225)+e[c(221)])}}))}static[G(208)](t,e,n,r,s=!1,o){const i=G;e[i(221)]&&(t[i(222)][i(198)]=i(214),t[i(217)](i(212),t=>{const c=i;t[c(202)](),t[c(213)]();if(r()(e[c(207)],n.id,a[c(197)]),window.open(e[c(221)],c(204)),s){const t=o||String(n[c(215)]).toLowerCase();console[c(194)](c(223)+t+c(226)+e._id+c(225)+e[c(221)])}}))}static[G(199)](t,e,n,r,s=!1,o){this[G(216)](t,e,n,r,s,o)}static[G(209)](t){return Boolean(t[G(221)])}static addClickEventsBatch(t,e,n,r,s=!1,o){const i=G;t[i(206)]((t,a)=>{const c=i,l=e[a];l&&this[c(216)](t,l,n,r,s,o)})}}function tt(t,e){const n=nt();return(tt=function(t,e){return n[t-=115]})(t,e)}const et=tt;function nt(){const t=["trackSlideViewable","imageUrl","string","height","length","translateX(-","none","#666666","#f9f9f9","videoUrl","Banner Ad","1px dashed #ccc","#cccccc","VIDEO","1420942xJNysO","forEach","createElement","style","transition","opacity",".adstage-dot","setAttribute","add","textContent","_id","background","includes","normal","162HNdyAZ","mouseenter","transform 0.4s ease-out","img","auto","TEXT","remove","hidden","className","width","flex"," Ad","appendChild","every","transform","fontSize","createMinimalDotIndicator","querySelectorAll","#000","\n width: 8px;\n height: 8px;\n border-radius: 50%;\n border: 1px solid #cccccc;\n background: transparent;\n cursor: pointer;\n transition: all 0.3s ease;\n outline: none;\n opacity: 0.7;\n padding: 0;\n margin: 0;\n flex-shrink: 0;\n ","active","objectFit","288590orqukY","video","src","cssText","touchmove","preventDefault","color","classList","addTouchSupport","75euVbNh","231616BaPZva","312wsoSjD","overflow","adstage-dots","BANNER","white","transparent","14px","padding","100px","div","addClickEventForSlider","toLowerCase","borderColor","73230xuefEe","0.9","100%","touchstart","adstage-ad adstage-","center","backgroundColor","1Gojcrh","data-adstage-ad-id","inline-block","0.7","\n position: absolute;\n bottom: 15px;\n left: 50%;\n transform: translateX(-50%);\n display: flex;\n gap: 12px;\n z-index: 3;\n padding: 8px 16px;\n border-radius: 20px;\n background: rgba(255, 255, 255, 0.1);\n backdrop-filter: blur(10px);\n ","createSliderContainer","clientX","entries","adstage-slider-wrapper","313008BeBDYP","5908qzIbqO","50px","border","relative","display","8px","cover","mouseleave","getBoundingClientRect","addEventListener","200px","children","button","3356725bUwrUi","touchend","changedTouches","touches","click","adType","287pXyeVW","createSimpleAdElement","whiteSpace","setProperty"];return(nt=function(){return t})()}!function(){const t=tt,e=nt();for(;;)try{if(370251===-parseInt(t(118))/1*(parseInt(t(165))/2)+parseInt(t(210))/3*(parseInt(t(128))/4)+parseInt(t(141))/5+parseInt(t(225))/6*(parseInt(t(147))/7)+parseInt(t(127))/8*(-parseInt(t(179))/9)+parseInt(t(201))/10+parseInt(t(211))/11*(parseInt(t(212))/12))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class rt{static createSimpleAdElement(t,n){const r=tt,s=document[r(167)]("div");switch(s[r(187)]=r(115)+String(t[r(146)]).toLowerCase(),s[r(172)](r(119),n[r(175)]),s.setAttribute("data-adstage-slot-id",t.id),s[r(168)][r(132)]="block",s[r(168)][r(188)]="100%",s[r(168)][r(154)]=r(183),t[r(146)]){case e[r(215)]:if(n.imageUrl){const t=document[r(167)](r(182));t.src=n[r(152)],t.style[r(188)]="100%",t.style[r(154)]=r(183),t[r(168)][r(200)]=r(134),s[r(191)](t)}else s.style.height="100px",s[r(168)][r(117)]="#f0f0f0",s[r(168)][r(130)]=r(162),s[r(174)]=r(161);break;case e[r(164)]:if(n.videoUrl){const t=document[r(167)](r(202));t[r(203)]=n[r(160)],t.style[r(188)]=r(227),t.style.height="auto",s[r(191)](t)}else s.style[r(154)]=r(138),s[r(168)].backgroundColor=r(197),s[r(168)].border="1px solid #666",s.textContent="Video Ad",s.style[r(207)]=r(216);break;case e[r(184)]:if(n[r(174)]){const t=document[r(167)]("div");t[r(174)]=n[r(174)]||"",t[r(168)].padding=r(133),t[r(168)][r(194)]=r(218),s[r(191)](t)}else s.style[r(154)]=r(129),s.style[r(219)]="8px",s.textContent="Text Ad";break;default:s[r(168)][r(154)]=r(220),s.style.border=r(162),s[r(168)][r(117)]=r(159),s[r(174)]=t[r(146)]+r(190)}return s}static[et(123)](t,n,r,s,o=!1){const i=et,a=document[i(167)]("div");a[i(187)]=i(126);const c={position:i(131),overflow:i(186)};if(t[i(188)]&&0!==t[i(188)]){let e;e="string"==typeof t[i(188)]?t.width[i(177)]("px")||t[i(188)][i(177)]("%")?t.width:t[i(188)]+"px":t.width+"px",c[i(188)]=e,c[i(132)]=i(120)}else c[i(132)]=i(120);if(t[i(154)]&&0!==t[i(154)]){const e=typeof t[i(154)]===i(153)?t.height:t[i(154)]+"px";c.height=e}Object[i(125)](c)[i(166)](([t,e])=>{a.style.setProperty(t,e)});const l=!t[i(188)]||0===t.width,d=!t[i(154)]||0===t.height;if(l||d){const e=document.createElement(i(221));if(e[i(168)].cssText="\n position: absolute;\n visibility: hidden;\n white-space: nowrap;\n top: -9999px;\n left: -9999px;\n ",!l&&t[i(188)]){let n;n="string"==typeof t[i(188)]&&(t[i(188)][i(177)]("px")||t.width[i(177)]("%"))?t[i(188)]:t[i(188)]+"px",e[i(168)][i(188)]=n,e[i(168)][i(149)]=i(178)}document.body[i(191)](e);let r=0,s=0;n[i(166)](n=>{const o=i,a=this[o(148)](t,n);e.appendChild(a);const c=a[o(136)]();c[o(188)]>r&&(r=c.width),c[o(154)]>s&&(s=c[o(154)]),e.removeChild(a)}),l&&r>0&&(a.style[i(188)]=r+"px",c[i(188)]=r+"px"),d&&s>0&&(a[i(168)][i(154)]=s+"px",c[i(154)]=s+"px"),document.body.removeChild(e)}const u=[...n,n[0]],p=document[i(167)](i(221));p.className="adstage-slide-container";const h={display:i(189),transition:i(181),width:100*u[i(155)]+"%"};t[i(154)]&&0!==t[i(154)]&&(h[i(154)]=i(227)),Object[i(125)](h)[i(166)](([t,e])=>{const n=i;p[n(168)][n(150)](t,e)}),u[i(166)]((e,n)=>{const r=i,a=document[r(167)](r(221));a[r(187)]="adstage-slide";const c={width:100/u[r(155)]+"%","flex-shrink":"0",display:r(189),"align-items":r(116),"justify-content":r(116)};t[r(154)]&&0!==t.height&&(c[r(154)]=r(227)),Object[r(125)](c)[r(166)](([t,e])=>{const n=r;a.style[n(150)](t,e)});const l=this[r(148)](t,e);$[r(222)](l,e,t,s,o,String(t[r(146)])[r(223)]()),a[r(191)](l),p[r(191)](a)});const f=n[i(192)](t=>t[i(146)]===e.TEXT)?null:this[i(195)](n[i(155)]);let g=0;const m=n.length,y=1e3*(r?.autoSlideInterval||3),I=(e,r=!1)=>{const a=i;g=e,p[a(168)][a(169)]=r?a(157):"transform 0.4s ease-out",p[a(168)][a(193)]=a(156)+100/u.length*g+"%)";const c=g===m?0:g;if(f){f.querySelectorAll(a(171)).forEach((t,e)=>{const n=a,r=t;e===c?(r[n(208)][n(173)](n(199)),r[n(168)].background=n(158),r[n(168)].borderColor="#666666",r[n(168)][n(170)]="1"):(r.classList[n(185)](n(199)),r[n(168)][n(176)]=n(217),r[n(168)].borderColor=n(163),r[n(168)][n(170)]=n(121))})}q[a(151)](n[c],t,c,s,o)},v=()=>{g===m&&setTimeout(()=>{I(0,!0)},400)};if(f){f[i(196)](i(171))[i(166)]((t,e)=>{const n=i;t[n(137)](n(145),()=>I(e))})}let b=setInterval(()=>{I(g+1),v()},y);return a[i(137)](i(180),()=>{clearInterval(b)}),a[i(137)](i(135),()=>{b=setInterval(()=>{I(g+1),v()},y)}),this.addTouchSupport(p,I,()=>g,m,v),a[i(191)](p),f&&a[i(191)](f),I(0),(!t[i(188)]||0===t[i(188)])&&setTimeout(()=>{const e=i,n=p[e(139)][0];if(n){const r=n.children[0];if(r){const n=r[e(136)]();a[e(168)].width=n[e(188)]+"px",(!t[e(154)]||0===t[e(154)])&&(a[e(168)][e(154)]=n.height+"px"),a[e(168)][e(213)]="hidden"}}},10),a}static[et(195)](t){const e=et,n=document[e(167)]("div");n[e(187)]=e(214),n.style[e(204)]=e(122);for(let r=0;r<t;r++){const t=document.createElement(e(140));t[e(187)]="adstage-dot",t.style[e(204)]=e(198),t.addEventListener(e(180),()=>{const n=e;!t.classList.contains(n(199))&&(t.style.borderColor="#999999",t[n(168)][n(170)]=n(226))}),t.addEventListener("mouseleave",()=>{const n=e;!t.classList.contains(n(199))&&(t[n(168)][n(224)]=n(163),t[n(168)].opacity=n(121))}),n.appendChild(t)}return n}static[et(209)](t,e,n,r,s){const o=et;let i=0,a=!1;t.addEventListener(o(228),t=>{const e=o;i=t[e(144)][0][e(124)],a=!0}),t[o(137)](o(205),t=>{a&&t[o(206)]()}),t[o(137)](o(142),t=>{const c=o;if(!a)return;a=!1;const l=t[c(143)][0][c(124)],d=i-l;if(Math.abs(d)>50){const t=n();if(d>0){e(t+1),s&&s()}else{e(t>0?t-1:r-1)}}})}}const st=it;function ot(){const t=["4357134RmKQYL","delete","8aSOYQN","viewableTracker","289191ZdZYvV","clear","Duplicate viewable blocked for ad ","2fivOoK","2644242ignYur","✅ New viewable recorded for ad ","1746930stspmh","775307GFTnhK","isDuplicateViewable","5106269TjDNEN","20ZLNStA"," in slot ","4171120IfUeKw"];return(ot=function(){return t})()}function it(t,e){const n=ot();return(it=function(t,e){return n[t-=190]})(t,e)}!function(){const t=it,e=ot();for(;;)try{if(411838===-parseInt(t(199))/1*(parseInt(t(195))/2)+-parseInt(t(192))/3*(-parseInt(t(202))/4)+parseInt(t(198))/5+-parseInt(t(196))/6+parseInt(t(201))/7*(parseInt(t(190))/8)+parseInt(t(205))/9+-parseInt(t(204))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class at{static[st(200)](t,e,n=!1){const r=st,s=t+"_"+e;return at[r(191)].has(s)?(n&&console.log(r(194)+t+r(203)+e),!0):(at[r(191)].add(s),n&&console.log(r(197)+t+" in slot "+e),!1)}static clear(){const t=st;at[t(191)][t(193)]()}static clearAdViewable(t,e){const n=st,r=t+"_"+e;at[n(191)][n(206)](r)}}at[st(191)]=new Set;const ct=lt;function lt(t,e){const n=dt();return(lt=function(t,e){return n[t-=375]})(t,e)}function dt(){const t=["2px dashed #e74c3c","getComputedStyle","error","3850047pPljco","isDuplicateViewable","style","alignItems","1px dashed #ccc","log","placeholderMode","block","string","📏 Using 100% height (container: ","1949694fBPowO","4FSdxbh","29239VpcAdB","setAttribute","number","border","1ZAxMWt"," container collapsed (","unknown","warn","height","applyPlaceholderStyle","⚠️ AdvertisementEventTracker not available for ",") - Mode: ","fontSize","parentElement","rgba(231, 76, 60, 0.1)","3385050tNTfJh","flex",'[data-adstage-container="true"]',"getElementById","\n height: 0px !important;\n min-height: 0px !important;\n padding: 0px !important;\n margin: 0px !important;\n border: none !important;\n overflow: hidden !important;\n display: block !important;\n ","transparent","#e74c3c","div","none","filter","🔄 Starting advertisement event tracking: ","cssText","rgba(0, 0, 0, 0.02)","width","<span>Loading ","backgroundColor","11px",'div[style*="min-height"]',"data-adstage-slot","calculateAdSize","monospace",'[class*="banner"]',"center"," for ","display","containerId","#666",'<span style="color: rgba(0, 0, 0, 0.4); font-size: 12px; font-family: -apple-system, sans-serif;">•••</span>',"true",'div[style*="height"]',"⚠️ Created empty ","debug","1px solid rgba(0, 0, 0, 0.08)","createEmptyContainer","4px","querySelector","⚠️ ","hasAttribute","#f9f9f9","innerHTML","🚫 Duplicate viewable blocked for ad ",".adstage-slot","isEmpty","advertisement","generic","759212zvQEhW","data-adstage-type","456sUusHi","6px","invisible","📦 Placeholder created for ","classList","data-adstage-empty","className","toLowerCase","renderFallback","subtle","getDefaultHeight","closest","getAttribute","5DKpfpL","📏 Using default height ","createPlaceholder","❌ Failed to track ","fontFamily"," for ad ","100%","borderRadius","adstage-official","appendChild","adstage-slot adstage-empty adstage-","justifyContent","trackAdvertisementEvent","13964720XDNIPV","advertisementEventTracker"," in slot "," ad...</span>","✅ New viewable recorded for ad ",'[class*="ad"]',"auto","adType","3967362vdNgpY","px)",".adstage-","data-adstage-container"];return(dt=function(){return t})()}!function(){const t=lt,e=dt();for(;;)try{if(486812===parseInt(t(396))/1*(parseInt(t(452))/2)+-parseInt(t(390))/3*(parseInt(t(391))/4)+-parseInt(t(467))/5*(parseInt(t(488))/6)+parseInt(t(392))/7*(parseInt(t(454))/8)+-parseInt(t(380))/9+parseInt(t(407))/10+parseInt(t(480))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class ut{constructor(t,e=!1,n){const r=lt;this[r(487)]=t,this.debug=e,this[r(481)]=n||null}[ct(469)](t,e,n,r){const s=ct,o=document.createElement(s(414));o.id=e,o[s(460)]="adstage-slot adstage-"+String(this[s(487)])[s(461)](),o[s(393)](s(376),"true"),o.setAttribute(s(453),String(this.adType)),o.setAttribute(s(425),e);const{width:i,height:a}=this[s(426)](t,n,r)||{width:"100%",height:this.getDefaultHeight()};o[s(382)][s(420)]=i,o[s(382)][s(400)]=a;const c=r?.[s(386)]||n.placeholderMode||s(456);this[s(401)](o,c),t.appendChild(o),this[s(438)]&&console[s(385)](s(457)+this[s(487)]+" slot: "+e+" ("+i+" x "+a+s(403)+c)}applyPlaceholderStyle(t,e){const n=ct;switch(e){case n(456):t[n(382)].backgroundColor="transparent",t.style.border=n(415),t.style.opacity="0",t[n(446)]="";break;case"transparent":t[n(382)][n(422)]=n(412),t[n(382)][n(395)]="none",t[n(382)][n(431)]=n(387),t.innerHTML="";break;case n(463):t[n(382)].backgroundColor=n(419),t.style[n(395)]=n(415),t[n(382)][n(474)]=n(441),t.style[n(431)]="flex",t.style[n(383)]=n(429),t[n(382)][n(478)]="center",t[n(446)]='<span style="color: rgba(0, 0, 0, 0.3); font-size: 11px; font-family: sans-serif;">•••</span>';break;case"minimal":t.style[n(422)]="rgba(248, 249, 250, 0.5)",t[n(382)][n(395)]=n(439),t[n(382)][n(474)]=n(455),t[n(382)].display=n(408),t[n(382)][n(383)]="center",t.style[n(478)]=n(429),t[n(446)]=n(434);break;case n(438):t[n(382)][n(395)]=n(377),t[n(382)][n(431)]="flex",t.style.alignItems=n(429),t[n(382)][n(478)]=n(429),t[n(382)][n(422)]=n(406),t[n(382)].color=n(413),t[n(382)][n(471)]=n(427),t[n(382)][n(404)]=n(423),t[n(446)]=n(421)+this[n(487)]+" ad...</span>";break;default:t.style.border=n(384),t[n(382)][n(431)]="flex",t[n(382)][n(383)]=n(429),t[n(382)][n(478)]=n(429),t[n(382)].backgroundColor=n(445),t.style.color=n(433),t[n(446)]=n(421)+this[n(487)]+n(483)}}calculateAdSize(t,e,n){const r=ct,s=e[r(420)],o=e[r(400)];let i,a;if(i=typeof s===r(394)?s+"px":typeof s===r(388)?s:r(473),typeof o===r(394))a=o+"px";else if("string"==typeof o&&o!==r(473)&&o!==r(486))a=o;else{const e=this.getContainerHeight(t);e>0?(a=r(473),(n?.[r(438)]||this[r(438)])&&console[r(385)](r(389)+e+r(489))):(a=this[r(464)](),(n?.[r(438)]||this[r(438)])&&console.log(r(468)+a+r(430)+this[r(487)]))}return{width:i,height:a}}getContainerHeight(t){const e=ct,n=window[e(378)](t),r=parseFloat(n[e(400)]);if(!r||0===r){const r=parseFloat(n.minHeight);if(r>0)return r;if(t.style[e(400)]&&"auto"!==t[e(382)][e(400)]){const n=parseFloat(t[e(382)][e(400)]);if(n>0)return n}const s=t[e(466)](e(400));if(s){const t=parseFloat(s);if(t>0)return t}}return r||0}createEventTrackingCallback(){return async(t,e,n)=>{const r=lt;if(n===a.VIEWABLE){if(at[r(381)](t,e,this[r(438)]))return void(this[r(438)]&&console.log(r(447)+t+r(482)+e));this[r(438)]&&console[r(385)](r(484)+t+r(482)+e)}if(this[r(481)])try{this[r(438)]&&console[r(385)](r(417)+n+" for ad "+t+r(482)+e),await this.advertisementEventTracker[r(479)](t,e,n),this[r(438)]&&console.log("📊 Advertisement event tracked: "+n+r(472)+t+r(482)+e)}catch(e){this[r(438)]&&console[r(379)](r(470)+n+" event for ad "+t+":",e)}else this.debug&&console[r(399)](r(402)+n+" event")}}[ct(462)](t){const e=ct,n=document.getElementById(t.id);if(n){const r=[...[n[e(442)](e(409)),n[e(465)](e(409)),n][e(416)](t=>t&&t.hasAttribute("data-adstage-container")),...[n[e(465)](e(448)),n[e(465)](e(375)+String(this[e(487)])[e(461)]()),n[e(465)](e(485)),n[e(465)](e(428)),n[e(465)]('[class*="container"]'),n.closest(e(436)),n.closest(e(424)),n[e(405)]][e(416)](Boolean)][0];if(r){let n=e(398);n=r[e(444)](e(376))?e(475):r[e(458)].contains("adstage-slot")?"adstage-class":e(451),r[e(382)][e(418)]+=e(411),r[e(446)]="",r[e(393)](e(459),e(435)),this.debug&&console[e(399)](e(443)+this.adType+e(397)+n+"): "+t.id,r)}else this.createEmptyContainer(t)}t[e(450)]=void 0,t[e(449)]=!0}[ct(440)](t){const e=ct,n=document[e(410)](t[e(432)]);if(n){n[e(446)]="";const r=document.createElement(e(414));r.id=t.id,r[e(460)]=e(477)+String(this[e(487)]).toLowerCase(),r[e(393)](e(376),"true"),r.setAttribute(e(459),"true"),r[e(393)](e(425),t.id),r[e(382)].cssText="\n height: 0px !important;\n min-height: 0px !important;\n padding: 0px !important;\n margin: 0px !important;\n border: none !important;\n overflow: hidden !important;\n display: block !important;\n ",n[e(476)](r),this[e(438)]&&console.warn(e(437)+this[e(487)]+" container: "+t.id)}}[ct(385)](t,...e){const n=ct;this[n(438)]&&console[n(385)]("["+this[n(487)]+"] "+t,...e)}}const pt=ft;function ht(){const t=["Container not found: ","optimizedHeight","max","❌ Failed to load optimized banner image:","getDefaultHeight","set","objectPosition","2dwmaAY","map","_id","getBoundingClientRect","alt","Banner","values","imageUrl","🎠 Banner carousel created for slot: "," ads (optimized: ","449292hCYpTt"," (avg: ","div","🔧 Banner container optimized for ","Failed to calculate optimal banner size, using defaults:","reduce","aspectRatio","renderAdElement",", ratio=","onload","optimizeContainerForBannerAds","debug","appendChild","width","loadImageDimensions","toFixed","adstage-ad adstage-banner-ad","forEach","3080YaGNNR","contain","count","length","Banner Advertisement","<div>","BANNER","slideInterval","className","innerHTML","Failed to load image: ","style","</div>","cover","16:9","250px","height","common","1050126SRmtqL","display","naturalHeight","center","📦 Banner container dimensions: ","1026045XbseIZ","renderOptimizedBannerImage","renderMultipleAds","applyOptimizedImageStyle","get","getElementById","config","from","block","ratio","average","src","default","createEventTrackingCallback","786600EsyvFE","log","1:1","calculateOptimalContainerSize","4:3","title","#f0f0f0","2988XYCWpf","100%","createElement","toString","round","filter","162086qchmLy","containerId","📸 Banner image dimensions: ","name","Image URL is not provided","warn","980336eeIZYy","addClickEventForRenderer","🎨 Banner image style applied: objectFit=","calculateAdSize","objectFit","calculateOptimalHeight",'<div style="display: flex; align-items: center; justify-content: center; height: 100%; color: #999;">Loading...</div>',"some","abs","selectOptimalSizeStrategy","createSliderContainer"];return(ht=function(){return t})()}function ft(t,e){const n=ht();return(ft=function(t,e){return n[t-=365]})(t,e)}!function(){const t=ft,e=ht();for(;;)try{if(141912===-parseInt(t(439))/1*(parseInt(t(463))/2)+parseInt(t(371))/3+parseInt(t(426))/4+-parseInt(t(412))/5+parseInt(t(407))/6+-parseInt(t(445))/7+parseInt(t(389))/8*(parseInt(t(433))/9))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class gt extends ut{constructor(t=!1,n){super(e[ft(395)],t,n)}[pt(460)](){return pt(404)}async[pt(378)](t,e){const n=pt,r=document[n(417)](t.containerId);if(!r)return;const s=document[n(435)](n(373));s[n(397)]=n(387);const o=t[n(457)],i=r.parentElement||r;if(o)s[n(400)][n(384)]=n(434),s.style[n(405)]=String(o);else{const e=t[n(418)],r={width:e?.width,height:e?.[n(405)]},{width:o,height:a}=this[n(448)](i,r,{debug:this[n(382)]});s[n(400)][n(384)]=o,s.style[n(405)]=a}e[n(368)]?await this[n(413)](s,e,t):s[n(398)]=n(394)+(e.title||"Banner Ad")+n(401),$[n(446)](s,e,t,()=>this[n(425)](),this.debug,n(366)),r[n(398)]="",r[n(383)](s)}async[pt(414)](t,e){const n=pt,r=document[n(417)](t[n(440)]);if(!r)throw new Error(n(456)+t.containerId);await this[n(381)](t,e);const s=this.createEventTrackingCallback(),o={autoSlideInterval:(t[n(418)]?.[n(396)]||5e3)/1e3,...t.config,optimizedHeight:t.optimizedHeight,aspectRatio:t[n(377)]},i=rt[n(455)](t,e,o,s,this[n(382)]);i&&(r[n(398)]="",r[n(383)](i),this[n(382)]&&console[n(427)](n(369)+t.id+" with "+e[n(392)]+n(370)+(t[n(457)]||n(424))+")"))}async calculateOptimalContainerSize(t,e){const n=pt;if(!t.length)return{width:n(434),height:this.getDefaultHeight(),aspectRatio:16/9};try{const r=(await Promise.allSettled(t[n(438)](t=>t.imageUrl)[n(464)](t=>this[n(385)](t.imageUrl)))).filter(t=>"fulfilled"===t.status).map(t=>t.value);if(0===r[n(392)])return{width:n(434),height:this[n(460)](),aspectRatio:16/9};const s=this[n(454)](r),o=this.calculateOptimalHeight(r,e,s);return this[n(382)]&&console[n(427)]("📐 Optimal banner container calculated: "+e+"x"+o+" (strategy: "+s+")"),{width:n(434),height:o+"px",aspectRatio:e/o}}catch(t){return console[n(444)](n(375),t),{width:n(434),height:this[n(460)](),aspectRatio:16/9}}}async[pt(381)](t,e){const n=pt;try{const r=document[n(417)](t[n(440)]),s=document[n(417)](t.id);if(!r||!s)return;const o=r[n(466)]()[n(384)]||300,i=await this[n(429)](e,o);s.style.height=i[n(405)],t[n(457)]=i[n(405)],t[n(377)]=i.aspectRatio,this[n(382)]&&console[n(427)](n(374)+e.length+" ads: "+i[n(405)])}catch(t){console[n(444)]("Banner container optimization failed, using default size:",t)}}[pt(454)](t){const e=pt,n=t[e(464)](t=>t[e(384)]/t.height),r=new Map;n[e(388)](t=>{const n=e,s=(Math[n(437)](10*t)/10)[n(436)]();r.set(s,(r[n(416)](s)||0)+1)});const s=Math[e(458)](...r[e(367)]()),o=t[e(392)];if(s/o>=.7)return"dominant";const i=[16/9,4/3,1,1.5],a=n[e(438)](t=>i[e(452)](n=>Math[e(453)](t-n)<.1))[e(392)];return e(a/o>=.5?406:422)}[pt(450)](t,e,n){const r=pt,s=t[r(464)](t=>t.width/t.height);switch(n){case"dominant":{const t=new Map;s[r(388)](e=>{const n=r,s=Math[n(437)](10*e)/10,o=s[n(436)](),i=t[n(416)](o);i?i[n(391)]++:t[n(461)](o,{ratio:s,count:1})});const n=Array[r(419)](t.values()).reduce((t,e)=>e[r(391)]>t[r(391)]?e:t);return Math[r(437)](e/n.ratio)}case r(406):{const t=[{ratio:16/9,name:r(403)},{ratio:4/3,name:r(430)},{ratio:1,name:r(428)},{ratio:1.5,name:"3:2"}],n=s[r(376)]((t,e)=>t+e,0)/s[r(392)],o=t[r(376)]((t,e)=>Math.abs(e[r(421)]-n)<Math[r(453)](t[r(421)]-n)?e:t);return this[r(382)]&&console[r(427)]("📊 Using standard ratio: "+o[r(442)]+r(372)+n[r(386)](2)+")"),Math.round(e/o[r(421)])}case r(422):default:{const t=s[r(376)]((t,e)=>t+e,0)/s.length;return Math[r(437)](e/t)}}}loadImageDimensions(t){return new Promise((e,n)=>{const r=ft,s=new Image;s[r(380)]=()=>{const t=r;e({width:s.naturalWidth,height:s[t(409)]})},s.onerror=()=>{n(new Error(r(399)+t))},s[r(423)]=t})}[pt(415)](t,e,n){const r=pt,s=e/n;Math[r(453)](s-1)<.1?(t[r(400)].objectFit=r(402),t[r(400)].objectPosition=r(410)):s>1.3?(t[r(400)][r(449)]=r(390),t[r(400)][r(462)]="center",t[r(400)].backgroundColor=r(432)):s<.7?(t.style[r(449)]="cover",t[r(400)][r(462)]="center"):(t[r(400)][r(449)]="cover",t[r(400)][r(462)]=r(410)),this[r(382)]&&console[r(427)](r(447)+t.style[r(449)]+r(379)+s[r(386)](2))}async[pt(413)](t,e,n){const r=pt,s=document.createElement("img");s.style[r(384)]=r(434),s.style[r(405)]="100%",s[r(400)][r(408)]=r(420),s[r(400)].borderRadius="8px",s[r(365)]=e[r(431)]||r(393),t.innerHTML=r(451);try{if(!e[r(368)])throw new Error(r(443));const o=await this[r(385)](e[r(368)]),i=t[r(466)](),a=i.width,c=i.height;this[r(382)]&&(console[r(427)](r(441)+o[r(384)]+"x"+o[r(405)]),console[r(427)](r(411)+a+"x"+c));const l=o[r(384)]/o[r(405)],d=a/c;return this[r(415)](s,l,d),s[r(423)]=e[r(368)],t.innerHTML="",t[r(383)](s),$[r(446)](s,e,n,()=>this[r(425)](),this[r(382)],r(366)),this[r(382)]&&console[r(427)]("✅ Optimized banner image rendered for ad: "+e[r(465)]),s}catch(o){return console.error(r(459),o),e.imageUrl&&(s[r(423)]=e[r(368)],s[r(400)][r(449)]=r(402),s[r(400)][r(462)]=r(410),t.innerHTML="",t[r(383)](s),$[r(446)](s,e,n,()=>this[r(425)](),this[r(382)],r(366))),s}}}function mt(){const t=["5903317OPpQYp","62294Gicegx","title","11385BMyAwV","4892728cWInkc","\n font-family: 'Arial', sans-serif;\n text-decoration: none;\n display: block;\n text-align: left;\n transition: color 0.3s ease;\n width: 100%;\n box-sizing: border-box;\n overflow: visible;\n padding-right: 2px;\n padding-left: 2px;\n white-space: nowrap;\n ","1208811kkZCZy","1348THuoaX","260eMbieA","textContent","5470EQBrAZ","10miksMJ","createTextAdStyles","1000830LrSFjh"];return(mt=function(){return t})()}function yt(t,e){const n=mt();return(yt=function(t,e){return n[t-=457]})(t,e)}const It=yt;!function(){const t=yt,e=mt();for(;;)try{if(670105===parseInt(t(459))/1*(-parseInt(t(469))/2)+parseInt(t(464))/3+parseInt(t(465))/4*(-parseInt(t(466))/5)+-parseInt(t(457))/6+parseInt(t(458))/7+parseInt(t(462))/8+-parseInt(t(461))/9*(parseInt(t(468))/10))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class vt{static[It(470)](t=!1){return It(463)}static setTextAdContent(t,e){const n=It,r=e.textContent||e[n(460)]||"";t[n(467)]=r}}function bt(){const t=["height","removeChild","cssText",";\n transform: translateY(","translateY(20px)","fit-content","appendChild","createSimpleAdElement","681410ZABZHt","clientX","className","Text","createTextAdStyles","div","1799864iGTQDa","\n position: relative;\n width: 100%;\n ","setAttribute","width","data-adstage-ad-id","data-adstage-slot-id","touchmove","length","129564jNQgVO","toLowerCase","entries","407103WLgbXM","touches","2VEWDgT",";\n top: ","435540RhZZRh","671435zGziqj","mouseleave","transform","whiteSpace","auto","position","relative","abs",");\n transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);\n z-index: ","body","hidden","opacity","style","forEach","top","absolute","adstage-fade-slide-container","block","4htDTfP","preventDefault","32wEFLyE","9XTYtTg","touchend","string","setTextAdContent","addEventListener","_id","left","includes",";\n left: ",";\n width: 100%;\n ","233369QcvcRU","zIndex","minHeight","\n position: absolute;\n visibility: hidden;\n white-space: nowrap;\n top: -9999px;\n left: -9999px;\n ","adstage-fade-slide","changedTouches","touchstart","20px","height: auto;","addTouchSupport","setProperty","height: 100%;","createElement","clientY"];return(bt=function(){return t})()}const wt=Et;function Et(t,e){const n=bt();return(Et=function(t,e){return n[t-=343]})(t,e)}!function(){const t=Et,e=bt();for(;;)try{if(138372===parseInt(t(403))/1*(parseInt(t(369))/2)+-parseInt(t(367))/3+parseInt(t(390))/4*(-parseInt(t(372))/5)+parseInt(t(364))/6+-parseInt(t(371))/7*(-parseInt(t(392))/8)+-parseInt(t(393))/9*(-parseInt(t(350))/10)+-parseInt(t(356))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class kt{static[wt(349)](t,e){const n=wt,r=document.createElement(n(355));return r.className="adstage-ad adstage-"+String(t.adType)[n(365)](),r[n(358)](n(360),e[n(398)]),r[n(358)](n(361),t.id),r[n(384)].cssText=vt[n(354)](!0),vt[n(396)](r,e),r}static createTextTransitionContainer(t,e,n,r,s=!1){const o=wt,i=t[o(417)]&&0!==t[o(417)]&&t.height!==o(376),a=document[o(415)]("div");a[o(352)]="adstage-fade-slider-wrapper";const c={position:o(378),overflow:o(382),display:o(389)};if(!i&&(c.height="auto",c[o(405)]=o(347)),t[o(359)]&&0!==t[o(359)]){let e;e=typeof t[o(359)]===o(395)?t[o(359)][o(400)]("px")||t[o(359)][o(400)]("%")?t[o(359)]:t.width+"px":t[o(359)]+"px",c[o(359)]=e}if(t[o(417)]&&0!==t[o(417)]&&t[o(417)]!==o(376)&&i){let e;e="string"==typeof t[o(417)]?t[o(417)][o(400)]("px")||t[o(417)][o(400)]("%")?t[o(417)]:t.height+"px":t[o(417)]+"px",c[o(417)]=e}Object[o(366)](c)[o(385)](([t,e])=>{const n=o;a[n(384)][n(413)](t,e)});const l=document[o(415)]("div");l.className=o(388),l.style[o(344)]=o(357)+(i?o(414):"height: auto; min-height: fit-content;")+"\n ";let d=null;const u=!t[o(359)]||0===t[o(359)],p=!t.height||0===t[o(417)]||void 0===t[o(417)]||t[o(417)]===o(376);if(u||p&&i){if(d=document[o(415)](o(355)),d[o(384)].cssText=o(406),!u&&t.width){let e;e="string"==typeof t[o(359)]&&(t.width[o(400)]("px")||t[o(359)].includes("%"))?t.width:t[o(359)]+"px",d[o(384)].width=e,d[o(384)][o(375)]="normal"}document[o(381)][o(348)](d);let n=0,r=0;e[o(385)](e=>{const s=o,i=this[s(349)](t,e);d[s(348)](i);const a=i.getBoundingClientRect();a[s(359)]>n&&(n=a[s(359)]),a.height>r&&(r=a[s(417)]),d[s(343)](i)}),u&&n>0&&(a[o(384)][o(359)]=n+"px"),p&&r>0&&i&&(a[o(384)].height=r+"px"),document[o(381)][o(343)](d)}const h=[];e[o(385)]((e,n)=>{const a=o,c=document[a(415)](a(355));c[a(352)]=a(407);const d=a(i?387:0===n?378:387);c.style[a(344)]="\n position: "+d+a(370)+(d===a(387)?"0":a(376))+a(401)+(d===a(387)?"0":a(376))+a(402)+a(i?414:411)+"\n display: flex;\n align-items: center;\n justify-content: flex-start;\n opacity: "+(0===n?"1":"0")+a(345)+(0===n?"0":a(410))+a(380)+(0===n?"2":"1")+";\n ";const u=this.createSimpleAdElement(t,e);$.addClickEventForSlider(u,e,t,r,s,a(353)),c.appendChild(u),l[a(348)](c),h.push(c)});let f=0;const g=e[o(363)],m=1e3*(n?.autoSlideInterval||4),y=n=>{const a=o;n>=g?n=0:n<0&&(n=g-1);const c=h[f],l=h[n];!i&&(c.style[a(377)]===a(378)&&(c[a(384)][a(377)]="absolute",c[a(384)][a(386)]="0",c[a(384)][a(399)]="0"),l[a(384)][a(377)]="relative",l[a(384)][a(386)]=a(376),l.style[a(399)]=a(376)),c[a(384)].opacity="0",c[a(384)][a(374)]="translateY(-20px)",c[a(384)][a(404)]="1",l[a(384)][a(383)]="1",l[a(384)].transform="translateY(0)",l.style[a(404)]="2",h[a(385)]((t,e)=>{const r=a;e!==n&&e!==f&&(t[r(384)][r(383)]="0",t.style.transform=r(346),t[r(384)][r(404)]="1",!i&&t[r(384)][r(377)]===r(378)&&(t[r(384)][r(377)]="absolute",t[r(384)][r(386)]="0",t[r(384)][r(399)]="0"))}),f=n,q.trackSlideViewable(e[f],t,f,r,s)};let I=setInterval(()=>{y(f+1)},m);return a[o(397)]("mouseenter",()=>{clearInterval(I)}),a.addEventListener(o(373),()=>{I=setInterval(()=>{y(f+1)},m)}),kt[o(412)](a,y,()=>f,g),a[o(348)](l),a}static[wt(412)](t,e,n,r){const s=wt;let o=0,i=0,a=!1;t[s(397)](s(409),t=>{const e=s;o=t[e(368)][0].clientX,i=t.touches[0][e(416)],a=!0}),t[s(397)](s(362),t=>{a&&t[s(391)]()}),t[s(397)](s(394),t=>{const r=s;if(!a)return;a=!1;const c=t[r(408)][0][r(351)],l=t[r(408)][0][r(416)],d=o-c,u=i-l;if(Math.abs(d)>Math[r(379)](u)&&Math.abs(d)>50){const t=n();e(d>0?t+1:t-1)}})}}function xt(t,e){const n=At();return(xt=function(t,e){return n[t-=106]})(t,e)}const St=xt;function At(){const t=["createElement","adstage-text-content","log","2535736VjrwZa","aspectRatio","height","webkitLineClamp","200869vpgPpj","4aeOhtn","54XKpiIb","1997559bNuDXT","maxLines","config","parentElement","vertical","8xETUgH","✨ Single text ad rendered: ","TEXT","367770VBiITi","width","display","Text","hidden","optimizedHeight","setTextAdContent","100%","11429MZArEX","renderMultipleAds","✨ Text transition created for slot: ","createTextTransitionContainer","684EfQJRi","createEventTrackingCallback","debug","appendChild","60px","div","638218tJWVuv","calculateAdSize","number","createTextAdStyles","27156gQqDTi","webkitBoxOrient","className","-webkit-box","getElementById","getDefaultHeight","addClickEventForRenderer","overflow","style","Container not found: ","cssText","104330WAXLDU"," with ","adstage-ad adstage-text-ad","containerId"];return(At=function(){return t})()}!function(){const t=xt,e=At();for(;;)try{if(519065===-parseInt(t(119))/1*(parseInt(t(127))/2)+-parseInt(t(122))/3+-parseInt(t(120))/4*(parseInt(t(130))/5)+-parseInt(t(121))/6*(-parseInt(t(148))/7)+-parseInt(t(115))/8+-parseInt(t(142))/9*(parseInt(t(108))/10)+parseInt(t(138))/11*(parseInt(t(152))/12))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class Tt extends ut{constructor(t=!1,n){super(e[xt(129)],t,n)}[St(157)](){return St(146)}async renderAdElement(t,e){const n=St,r=document[n(156)](t[n(111)]);if(!r)return;const s=document[n(112)](n(147));s[n(154)]=n(110);const o=t.optimizedHeight,i=r[n(125)]||r;if(o)s[n(160)][n(131)]=n(137),s[n(160)][n(117)]=String(o);else{const e=t[n(124)],r={width:e?.width,height:e?.[n(117)]},{width:o,height:a}=this[n(149)](i,r,{debug:this[n(144)]});s.style.width=o,s.style[n(117)]=a}const a=document[n(112)](n(147));a[n(154)]=n(113),a[n(160)][n(107)]=vt[n(151)](!1),vt[n(136)](a,e);const c=t[n(124)]?.[n(123)];c&&typeof c===n(150)&&(a.style[n(132)]=n(155),a[n(160)][n(118)]=String(c),a[n(160)][n(153)]=n(126),a[n(160)][n(159)]=n(134)),s.appendChild(a),$[n(158)](s,e,t,()=>this[n(143)](),this[n(144)],n(133)),r.innerHTML="",r[n(145)](s),this.debug&&console[n(114)](n(128)+e._id)}async[St(139)](t,e){const n=St,r=document[n(156)](t[n(111)]);if(!r)throw new Error(n(106)+t[n(111)]);const s=this[n(143)](),o={autoSlideInterval:(t.config?.slideInterval||5e3)/1e3,...t.config,optimizedHeight:t[n(135)],aspectRatio:t[n(116)]},i=kt[n(141)](t,e,o,s,this[n(144)]);i&&(r.innerHTML="",r[n(145)](i),this[n(144)]&&console.log(n(140)+t.id+n(109)+e.length+" ads"))}}const Ct=_t;function Rt(){const t=["Video","addEventListener","\n video::-webkit-media-controls-play-button {\n display: ","stopPropagation","containerId","VIEWABLE",'\n <svg width="20" height="20" viewBox="0 0 24 24" fill="white">\n <path d="M16.5 12c0-1.77-1.02-3.29-2.5-4.03v2.21l2.45 2.45c.03-.2.05-.41.05-.63zm2.5 0c0 .94-.2 1.82-.54 2.64l1.51 1.51C20.63 14.91 21 13.5 21 12c0-4.28-2.99-7.86-7-8.77v2.06c2.89.86 5 3.54 5 6.71zM4.27 3L3 4.27 7.73 9H3v6h4l5 5v-6.73l4.25 4.25c-.67.52-1.42.93-2.25 1.18v2.06c1.38-.31 2.63-.95 3.69-1.81L19.73 21 21 19.73l-9-9L4.27 3zM12 4L9.91 6.09 12 8.18V4z"/>\n </svg>\n ',"playsinline","background","catch","height","controls","createElement","none","imageUrl","2384676ekkqAs","2645940zzqITG","renderVideoElementDirect","🎬 Video config received:","5009564ZmftHY","contain"," !important;\n }\n video::-webkit-media-controls-mute-button {\n display: ","log","adstage-video-container","warn"," !important;\n }\n ","loop","appendChild","🎬 Video can play, attempting autoplay...","createEventTrackingCallback","debug","adstage-video-default-controls","config"," !important;\n }\n video::-webkit-media-controls-volume-slider {\n display: ","innerHTML","2752902uInlVc","head"," !important;\n }\n video::-webkit-media-controls-timeline {\n display: ","title","getElementById",", muted: ","metadata","scale(1)","muted","block","className","🎬 Auto-play was prevented:","disabled (default)","textContent","🎬 Single video ad rendered: ","rgba(0, 0, 0, 0.7)","🎬 Video data loaded, attempting autoplay...","hideProgressBar","\n .adstage-video-container video::-webkit-media-controls-mute-button {\n display: none !important;\n }\n .adstage-video-container video::-webkit-media-controls-fullscreen-button {\n display: none !important;\n }\n .adstage-video-container video::-webkit-media-controls-toggle-closed-captions-button {\n display: none !important;\n }\n .adstage-video-container video::-webkit-media-controls-volume-slider {\n display: none !important;\n }\n .adstage-video-container video::-webkit-media-controls-overflow-button {\n display: none !important;\n }\n .adstage-video-container video::-webkit-media-controls-picture-in-picture-button {\n display: none !important;\n }\n video::-webkit-media-controls-mute-button {\n display: none !important;\n }\n video::-webkit-media-controls-fullscreen-button {\n display: none !important;\n }\n video::-webkit-media-controls-toggle-closed-captions-button {\n display: none !important;\n }\n video::-webkit-media-controls-volume-slider {\n display: none !important;\n }\n video::-webkit-media-controls-overflow-button {\n display: none !important;\n }\n video::-webkit-media-controls-picture-in-picture-button {\n display: none !important;\n }\n ","1fpTlDU","Video fallback","transform","360px"," !important;\n }\n video::-webkit-media-controls-fullscreen-button {\n display: ","loadedmetadata","error","relative","src","10389512GOlwKT","Video load failed:","\n width: 100%;\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n background: #000;\n border-radius: 8px;\n overflow: hidden;\n ","hideControls","addClickEventForRenderer","VIDEO"," (autoplay: "," !important;\n }\n video::-webkit-media-controls-current-time-display {\n display: ","length","mouseenter","🎬 Single video rendered for VIDEO slot: ","paused","mouseleave","videoUrl","alt","cssText","style","🎬 Video metadata loaded, attempting autoplay...","play",", loop: ","\n width: 100%;\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n background: #000;\n border-radius: 8px;\n overflow: hidden;\n ","rgba(0, 0, 0, 0.9)","canplay","Video thumbnail","loadeddata","autoplay","objectFit","_id","hideFullscreenButton"," !important;\n }\n video::-webkit-media-controls-time-remaining-display {\n display: ","hidePlayButton","1788050NUEdmn","img","adstage-video-mute-button","Container not found: ","100%","width","1662420fyOhuH","🎬 Initial autoplay attempt after timeout...","getDefaultHeight","\n position: absolute;\n top: 12px;\n left: 12px;\n width: 40px;\n height: 40px;\n border: none;\n border-radius: 50%;\n background: rgba(0, 0, 0, 0.7);\n color: white;\n font-size: 16px;\n cursor: pointer;\n display: flex;\n align-items: center;\n justify-content: center;\n z-index: 10;\n transition: all 0.3s ease;\n backdrop-filter: blur(4px);\n ","customControls"];return(Rt=function(){return t})()}function _t(t,e){const n=Rt();return(_t=function(t,e){return n[t-=194]})(t,e)}!function(){const t=_t,e=Rt();for(;;)try{if(447028===-parseInt(t(264))/1*(-parseInt(t(199))/2)+parseInt(t(205))/3+-parseInt(t(225))/4+-parseInt(t(226))/5+-parseInt(t(245))/6+-parseInt(t(229))/7+parseInt(t(273))/8)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class Dt extends ut{constructor(t=!1,n){super(e[_t(278)],t,n)}[Ct(207)](){return Ct(267)}async renderAdElement(t,e){const n=Ct,r=document[n(249)](t[n(214)]);if(!r)return;const s=document.createElement("div");s[n(255)]="adstage-video-container",s[n(289)][n(288)]=n(275),this[n(227)](s,e,t),r[n(244)]="",r[n(237)](s),this[n(240)]&&console[n(232)](n(259)+e[n(195)])}async renderMultipleAds(t,e){const n=Ct,r=document.getElementById(t.containerId);if(!r)throw new Error(n(202)+t[n(214)]);if(e[n(281)]>0){const s=e[0],o=document.createElement("div");o.className=n(233),o[n(289)][n(288)]=n(293),this[n(227)](o,s,t),r.innerHTML="",r.appendChild(o);const i=this[n(239)]();setTimeout(()=>{const e=n;i(s._id,t.id,a[e(215)])},100),this[n(240)]&&console.log(n(283)+t.id+" ("+s[n(195)]+")")}else this[n(240)]&&console[n(234)]("⚠️ No video advertisements available for slot: "+t.id)}renderVideoElementDirect(t,e,n){const r=Ct;t[r(289)].position=r(271);const s=document[r(222)]("video");s.style.width=r(203),s.style.height=r(203),s[r(289)][r(194)]=r(230),s.preload=r(251);const o=n[r(242)];if(this[r(240)]&&console[r(232)](r(228),o),s.controls=!1,s[r(298)]=!1!==o?.[r(298)],s[r(253)]=!0,s[r(236)]=!1!==o?.[r(236)],this.debug&&console.log("🎬 Final video settings:",{autoplay:s[r(298)],muted:s.muted,loop:s.loop,controls:s[r(221)]}),!1!==o?.playsinline&&s.setAttribute(r(217),""),!0===o?.[r(221)]&&(s[r(221)]=!0,this[r(240)]&&console[r(232)]("🎬 User explicitly enabled controls, overriding default")),o?.[r(276)])s[r(221)]=!1,s[r(289)][r(288)]+="\n pointer-events: none;\n ";else if(o?.customControls){if(s[r(221)]){const t=document[r(222)](r(289));t[r(258)]=r(212)+(o[r(209)][r(198)]?r(223):r(254))+r(247)+(o[r(209)][r(262)]?r(223):r(254))+r(280)+(o[r(209)].hideCurrentTime?r(223):r(254))+r(197)+(o.customControls.hideRemainingTime?r(223):r(254))+r(243)+(o.customControls.hideVolumeSlider?r(223):r(254))+r(231)+(o[r(209)].hideMuteButton?r(223):r(254))+r(268)+(o[r(209)][r(196)]?r(223):r(254))+r(235),document[r(246)][r(237)](t)}}else if(s[r(221)]){const t=document.createElement("style");t.id=r(241),t[r(258)]=r(263),!document[r(249)](r(241))&&document.head[r(237)](t)}this.debug&&console.log("🎬 Video controls setting:",s[r(221)]?"enabled":r(257));const i=document[r(222)]("button");i[r(255)]=r(201),i[r(289)].cssText=r(208),o?.[r(276)]&&(i[r(289)].display=r(223));const a=()=>{const t=r,e=t(216);i[t(244)]=s[t(253)]?e:'\n <svg width="20" height="20" viewBox="0 0 24 24" fill="white">\n <path d="M3 9v6h4l5 5V4L7 9H3zm13.5 3c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02zM14 3.23v2.06c2.89.86 5 3.54 5 6.71s-2.11 5.85-5 6.71v2.06c4.01-.91 7-4.49 7-8.77s-2.99-7.86-7-8.77z"/>\n </svg>\n ',i[t(248)]=s[t(253)]?"Click to unmute":"Click to mute"};if(a(),i[r(211)]("click",t=>{const e=r;t[e(213)](),s[e(253)]=!s[e(253)],a(),this.debug&&console.log("🔊 Video mute toggled: "+(s[e(253)]?"muted":"unmuted"))}),i.addEventListener(r(282),()=>{const t=r;i.style.background=t(294),i[t(289)][t(266)]="scale(1.1)"}),i[r(211)](r(285),()=>{const t=r;i[t(289)][t(218)]=t(260),i.style.transform=t(252)}),e.videoUrl){s[r(272)]=e[r(286)];const t=()=>{const t=r;s.autoplay&&s[t(253)]&&s[t(284)]&&s.play().catch(e=>{const n=t;this[n(240)]&&(console[n(234)](n(256),e),console.warn("🎬 Trying muted autoplay fallback...")),s[n(253)]=!0,s[n(291)]()[n(219)](t=>{const e=n;this[e(240)]&&console[e(270)]("🎬 Autoplay completely failed:",t)})})};s[r(211)](r(269),()=>{const e=r;this[e(240)]&&console[e(232)](e(290)),t()}),s[r(211)](r(295),()=>{const e=r;this[e(240)]&&console.log(e(238)),t()}),s[r(211)](r(297),()=>{const e=r;this.debug&&console[e(232)](e(261)),t()}),setTimeout(()=>{const e=r;this[e(240)]&&console.log(e(206)),t()},100)}else if(e[r(224)]){const n=document.createElement(r(200));return n.src=e[r(224)],n[r(289)][r(204)]="100%",n[r(289)][r(220)]=r(203),n[r(289)][r(194)]=r(230),n[r(287)]=e[r(248)]||r(296),void t[r(237)](n)}$[r(277)](s,e,n,()=>this[r(239)](),this.debug,r(210)),s[r(211)](r(270),s=>{const o=r;if(console.error(o(274),s),e[o(224)]){const r=document[o(222)]("img");r.src=e[o(224)],r[o(289)].width=o(203),r[o(289)][o(220)]=o(203),r.style[o(194)]=o(230),r[o(287)]=e[o(248)]||o(296),$[o(277)](r,e,n,()=>this.createEventTrackingCallback(),this[o(240)],o(265)),t[o(244)]="",t[o(237)](r)}}),t.appendChild(s),t.appendChild(i),this[r(240)]&&console[r(232)]("🎬 Video element created for ad: "+e._id+r(279)+s[r(298)]+r(250)+s[r(253)]+r(292)+s[r(236)]+")")}}const Lt=Bt;function Bt(t,e){const n=Pt();return(Bt=function(t,e){return n[t-=422]})(t,e)}function Pt(){const t=["button","mouseleave","\n margin: 0 0 12px 0;\n font-size: 14px;\n color: #6b7280;\n line-height: 1.4;\n flex: 1;\n ","2750631huYlOO","containerId","37244dbdxFh","200px","appendChild","13079808WcZeKS","#3b82f6","\n width: 100%;\n height: 120px;\n margin-bottom: 12px;\n border-radius: 6px;\n overflow: hidden;\n background: #f3f4f6;\n ","getElementById","createElement","6668886aXSGQm","log","div","alt","#2563eb","1sEaXQI","_blank","linkUrl","_id","innerHTML","open","\n width: 100%;\n height: 100%;\n display: flex;\n flex-direction: column;\n padding: 16px;\n background: #fff;\n border: 1px solid #e5e7eb;\n border-radius: 8px;\n box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);\n ","8572464muhtnj","debug","src","🏠 Single native ad rendered: ","img","\n margin: 0 0 8px 0;\n font-size: 16px;\n font-weight: 600;\n color: #111827;\n line-height: 1.3;\n ","): ","length","\n width: 100%;\n height: 100%;\n object-fit: cover;\n ","textContent","125pVUAAU","warn","style","🏠 Native ad rendered (first of ","adstage-ad adstage-native-ad","addEventListener","getDefaultHeight","cssText","Native Advertisement","backgroundColor","645960UdtfGK","imageUrl","title","2215950rNoqvg"];return(Pt=function(){return t})()}!function(){const t=Bt,e=Pt();for(;;)try{if(595770===parseInt(t(441))/1*(parseInt(t(422))/2)+-parseInt(t(426))/3+-parseInt(t(428))/4*(parseInt(t(458))/5)+parseInt(t(436))/6+-parseInt(t(468))/7+parseInt(t(448))/8+-parseInt(t(431))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class Ut extends ut{constructor(t=!1,n){super(e.NATIVE,t,n)}[Lt(464)](){return Lt(429)}async renderAdElement(t,e){const n=Lt,r=document[n(434)](t[n(427)]);if(!r)return;const s=document[n(435)](n(438));if(s.className=n(462),s[n(460)][n(465)]=n(447),e[n(470)]){const t=document.createElement("h3");t[n(457)]=e.title,t.style[n(465)]=n(453),s[n(430)](t)}if(e[n(457)]){const t=document[n(435)]("p");t[n(457)]=e[n(457)],t[n(460)][n(465)]=n(425),s[n(430)](t)}if(e[n(469)]){const t=document[n(435)]("div");t[n(460)][n(465)]=n(433);const r=document[n(435)](n(452));r[n(450)]=e[n(469)],r[n(439)]=e.title||n(466),r[n(460)][n(465)]=n(456),t[n(430)](r),s[n(430)](t)}if(e.linkUrl){const t=document.createElement(n(423));t.textContent="Learn More",t[n(460)][n(465)]="\n padding: 8px 16px;\n background: #3b82f6;\n color: white;\n border: none;\n border-radius: 6px;\n font-size: 14px;\n font-weight: 500;\n cursor: pointer;\n align-self: flex-start;\n transition: background-color 0.2s;\n ",t[n(463)]("click",()=>{const t=n;this.advertisementEventTracker&&console[t(437)]("Native click tracked for ad: "+e[t(444)]),window[t(446)](e[t(443)],t(442))}),t.addEventListener("mouseenter",()=>{const e=n;t[e(460)].backgroundColor=e(440)}),t[n(463)](n(424),()=>{const e=n;t[e(460)][e(467)]=e(432)}),s[n(430)](t)}r[n(445)]="",r[n(430)](s),this[n(449)]&&console.log(n(451)+e[n(444)])}async renderMultipleAds(t,e){const n=Lt;e[n(455)]>0?(await this.renderAdElement(t,e[0]),this.debug&&console[n(437)](n(461)+e.length+n(454)+t.id)):this.debug&&console[n(459)]("⚠️ No native advertisements available for slot: "+t.id)}}const Ot=Nt;function zt(){const t=["click","\n width: 100%;\n max-height: 300px;\n object-fit: cover;\n border-radius: 8px;\n margin-bottom: 16px;\n ","head","\n margin: 0 0 20px 0;\n font-size: 16px;\n color: #6b7280;\n line-height: 1.5;\n ","color","⚠️ No interstitial advertisements available for slot: ","🖼️ Interstitial ad rendered (first of ","#6b7280","_blank","keydown","addEventListener","Get Started","\n position: fixed;\n top: 0;\n left: 0;\n width: 100vw;\n height: 100vh;\n background: rgba(0, 0, 0, 0.8);\n display: flex;\n align-items: center;\n justify-content: center;\n z-index: 10000;\n animation: fadeIn 0.3s ease-out;\n ","createElement","button","getDefaultHeight","_id","adstage-interstitial-styles","mouseenter","112520iuVVZP","src","400px","style","div","closeInterstitial","\n @keyframes fadeIn {\n from { opacity: 0; }\n to { opacity: 1; }\n }\n @keyframes slideUp {\n from { \n opacity: 0;\n transform: translateY(20px);\n }\n to { \n opacity: 1;\n transform: translateY(0);\n }\n }\n ","\n margin: 0 0 12px 0;\n font-size: 24px;\n font-weight: 700;\n color: #111827;\n line-height: 1.3;\n ","#e5e7eb","animation","3ISLDrl","Interstitial click tracked for ad: ","#3b82f6","className","getElementById","mouseleave","21QClTrl","length","renderAdElement","4501212sEmlwB","log","6168375gLRJiD","appendChild","Escape","debug","153828ITHlqL","#f3f4f6","warn","adstage-interstitial-content","#2563eb","parentNode","cssText","imageUrl","open","img","advertisementEventTracker","): ","linkUrl","renderMultipleAds","🖼️ Interstitial ad closed","textContent","\n width: 100%;\n padding: 12px 24px;\n background: #3b82f6;\n color: white;\n border: none;\n border-radius: 8px;\n font-size: 16px;\n font-weight: 600;\n cursor: pointer;\n transition: background-color 0.2s;\n ","fadeOut 0.3s ease-out forwards","INTERSTITIAL","removeEventListener","adstage-interstitial-overlay","containerId","511BBpovh","181800ZehwaV","23638680pCGbZH","🖼️ Interstitial ad rendered: ","backgroundColor","10725102SnKypf","title","\n position: absolute;\n top: 12px;\n right: 12px;\n width: 32px;\n height: 32px;\n border: none;\n background: #f3f4f6;\n color: #6b7280;\n font-size: 20px;\n font-weight: bold;\n border-radius: 50%;\n cursor: pointer;\n display: flex;\n align-items: center;\n justify-content: center;\n transition: all 0.2s;\n "];return(zt=function(){return t})()}function Nt(t,e){const n=zt();return(Nt=function(t,e){return n[t-=386]})(t,e)}!function(){const t=Nt,e=zt();for(;;)try{if(858929===parseInt(t(416))/1*(-parseInt(t(425))/2)+parseInt(t(410))/3*(parseInt(t(419))/4)+parseInt(t(421))/5+-parseInt(t(448))/6+-parseInt(t(447))/7*(parseInt(t(400))/8)+-parseInt(t(452))/9+parseInt(t(449))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class Mt extends ut{constructor(t=!1,n){super(e[Nt(443)],t,n)}[Ot(396)](){return Ot(402)}async renderAdElement(t,e){const n=Ot;if(!document[n(414)](t[n(446)]))return;const r=document[n(394)](n(404));r[n(413)]=n(445),r[n(403)][n(431)]=n(393);const s=document[n(394)](n(404));s.className=n(428),s[n(403)][n(431)]="\n position: relative;\n max-width: 90vw;\n max-height: 90vh;\n background: white;\n border-radius: 12px;\n padding: 24px;\n box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);\n animation: slideUp 0.3s ease-out;\n overflow: auto;\n ";const o=document[n(394)]("button");if(o.innerHTML="×",o[n(403)][n(431)]=n(454),o[n(391)](n(455),()=>{this.closeInterstitial(r)}),o[n(391)]("mouseenter",()=>{const t=n;o[t(403)][t(451)]=t(408),o[t(403)][t(459)]="#374151"}),o[n(391)](n(415),()=>{const t=n;o[t(403)][t(451)]=t(426),o[t(403)][t(459)]=t(388)}),e.imageUrl){const t=document[n(394)](n(434));t[n(401)]=e[n(432)],t.alt=e.title||"Interstitial Advertisement",t.style.cssText=n(456),s.appendChild(t)}if(e[n(453)]){const t=document[n(394)]("h2");t[n(440)]=e[n(453)],t[n(403)][n(431)]=n(407),s.appendChild(t)}if(e.textContent){const t=document[n(394)]("p");t[n(440)]=e[n(440)],t[n(403)][n(431)]=n(458),s[n(422)](t)}if(e[n(437)]){const t=document[n(394)](n(395));t[n(440)]=n(392),t[n(403)][n(431)]=n(441),t[n(391)]("click",()=>{const t=n;this[t(435)]&&console[t(420)](t(411)+e[t(397)]),window[t(433)](e[t(437)],t(389)),this[t(405)](r)}),t[n(391)](n(399),()=>{const e=n;t.style[e(451)]=e(429)}),t[n(391)](n(415),()=>{const e=n;t[e(403)][e(451)]=e(412)}),s[n(422)](t)}const i=t=>{const e=n;t.key===e(423)&&(this[e(405)](r),document[e(444)](e(390),i))};if(document[n(391)](n(390),i),r[n(391)](n(455),t=>{t.target===r&&this.closeInterstitial(r)}),!document[n(414)](n(398))){const t=document[n(394)](n(403));t.id="adstage-interstitial-styles",t.textContent=n(406),document[n(457)][n(422)](t)}s[n(422)](o),r[n(422)](s),document.body[n(422)](r),this[n(424)]&&console.log(n(450)+e[n(397)])}async[Ot(438)](t,e){const n=Ot;e[n(417)]>0?(await this[n(418)](t,e[0]),this[n(424)]&&console[n(420)](n(387)+e[n(417)]+n(436)+t.id)):this.debug&&console[n(427)](n(386)+t.id)}[Ot(405)](t){const e=Ot;t[e(403)][e(409)]=e(442),setTimeout(()=>{const n=e;t[n(430)]&&t[n(430)].removeChild(t)},300),this.debug&&console[e(420)](e(439))}}const Vt=Ft;function Ft(t,e){const n=Ht();return(Ft=function(t,e){return n[t-=315]})(t,e)}function Ht(){const t=[" Ad","NATIVE","1029582UKsIfK","⚠️ Container optimization is only supported for BANNER ads, got: ","height","renderers","100%","3450564vqygyr","renderAdElement","getDefaultHeightForAdType","calculateAdSize","createPlaceholder","getDefaultHeight","advertisement","renderMultipleAds","renderFallback","loadImageDimensions","1px dashed #ccc","size","renderOptimizedBannerImage is only supported for BANNER ads","createElement","5686670lFbZsH","video","No renderer found for ad type: ","renderAdSlider","data-adstage-ad-id","adstage-ad adstage-","39447936ZxElBo","TEXT","getRenderer","width","naturalHeight","imageUrl","initializeRenderers","videoUrl","BANNER","log","setAttribute","optimizeContainerForBannerAds","naturalWidth","6212100JMazsD","renderOptimizedBannerImage","adType","img","config","textContent","div","5689431lGAHOl","backgroundColor","block","isLoaded","appendChild","get","[AdRenderer] ","warn","No advertisement to render","renderAd","src","padding","Failed to load image: ","431202RjoRWh","calculateOptimalContainerSize","advertisementEventTracker","createAdElement","style","INTERSTITIAL","display","toLowerCase","onload","set","VIDEO","debug","7oraPwR","objectFit"];return(Ht=function(){return t})()}!function(){const t=Ft,e=Ht();for(;;)try{if(967989===-parseInt(t(375))/1+parseInt(t(380))/2+-parseInt(t(346))/3+-parseInt(t(339))/4+-parseInt(t(320))/5+-parseInt(t(359))/6*(parseInt(t(371))/7)+parseInt(t(326))/8)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class jt{constructor(t=!1,e){const n=Ft;this[n(378)]=new Map,this.debug=t,this[n(361)]=e||null,this[n(332)]()}initializeRenderers(){const t=Ft;this[t(378)][t(368)](e.BANNER,new gt(this.debug,this[t(361)])),this[t(378)][t(368)](e[t(327)],new Tt(this[t(370)],this[t(361)])),this.renderers[t(368)](e[t(369)],new Dt(this[t(370)],this[t(361)])),this[t(378)][t(368)](e[t(374)],new Ut(this[t(370)],this[t(361)])),this.renderers[t(368)](e[t(364)],new Mt(this[t(370)],this.advertisementEventTracker)),this.debug&&console[t(335)]("🏭 AdRenderer factory initialized with "+this[t(378)][t(317)]+" renderers")}[Vt(362)](t,n){const r=Vt,s=this[r(328)](t[r(341)]),o=document.createElement(r(345));o.className=r(325)+String(t[r(341)])[r(366)](),o[r(336)](r(324),n._id),o.setAttribute("data-adstage-slot-id",t.id);const{width:i,height:a}=s[r(383)](o,t[r(343)]||{},n);switch(o[r(363)].width=i,o[r(363)].height=a,o.style[r(365)]=r(348),t[r(341)]){case e.BANNER:if(n[r(331)]){const t=document.createElement(r(342));t.src=n.imageUrl,t.style[r(329)]="100%",t[r(363)][r(377)]=r(379),t.style[r(372)]="cover",o[r(350)](t)}break;case e[r(369)]:if(n[r(333)]){const t=document[r(319)](r(321));t.src=n[r(333)],t[r(363)].width=r(379),t[r(363)][r(377)]=r(379),o[r(350)](t)}break;case e.TEXT:if(n.textContent){const t=document[r(319)](r(345));t[r(344)]=n[r(344)]||"",t[r(363)][r(357)]="8px",o[r(350)](t)}break;default:o[r(363)].border=r(316),o[r(363)][r(347)]="#f9f9f9",o[r(344)]=t[r(341)]+r(373)}return o}[Vt(328)](t){const e=Vt,n=this[e(378)][e(351)](t);if(!n)throw new Error(e(322)+t);return n}createPlaceholder(t,e,n,r,s){const o=Vt;this.getRenderer(n)[o(384)](t,e,r,s)}async[Vt(337)](t,n){const r=Vt;if(t[r(341)]!==e[r(334)])return void(this[r(370)]&&console[r(353)](r(376)+t[r(341)]));const s=this[r(328)](e[r(334)]);await s.optimizeContainerForBannerAds(t,n)}async[Vt(323)](t,e){const n=Vt,r=this.getRenderer(t[n(341)]);await r[n(387)](t,e)}async[Vt(355)](t){const e=Vt;if(!t[e(386)])throw new Error(e(354));const n=this.getRenderer(t[e(341)]);await n[e(381)](t,t[e(386)]),t[e(349)]=!0}async[Vt(381)](t,e){const n=Vt,r=this[n(328)](t[n(341)]);await r[n(381)](t,e)}[Vt(388)](t){const e=Vt;this[e(328)](t[e(341)]).renderFallback(t)}[Vt(382)](t){const e=Vt;return this.getRenderer(t)[e(385)]()}calculateAdSize(t,e,n,r){const s=Vt;return this[s(328)](e)[s(383)](t,n,r)}[Vt(315)](t){return new Promise((e,n)=>{const r=Ft,s=new Image;s[r(367)]=()=>{const t=r;e({width:s[t(338)],height:s[t(330)]})},s.onerror=()=>{n(new Error(r(358)+t))},s[r(356)]=t})}async[Vt(340)](t,n,r){const s=Vt;if(r.adType!==e[s(334)])throw new Error(s(318));const o=this.getRenderer(e[s(334)]);return await o[s(340)](t,n,r)}async[Vt(360)](t,n,r){const s=Vt;if(r!==e.BANNER){return{width:"100%",height:this[s(328)](r).getDefaultHeight(),aspectRatio:16/9}}const o=this[s(328)](e[s(334)]);return await o[s(360)](t,n)}[Vt(335)](t,...e){const n=Vt;this[n(370)]&&console[n(335)](n(352)+t,...e)}}const Wt=Kt;function Kt(t,e){const n=Yt();return(Kt=function(t,e){return n[t-=140]})(t,e)}function Yt(){const t=["📊 Fetched specific ad with ID: ","height","observe","setupAutoCleanup","6422856ctmuel","🗑️ Ad slot destroyed: ","autoSlide","append","createAdWithRetry","fetchAdData","1114744KOnauX","refresh","auto","string","create","disconnect","5132280KqJdCS"," removed","native"," ads automatically","hideControls","INTERSTITIAL","getElementById"," ads for type: "," (attempt ","🔄 Retrying viewability tracking for slot: ","adRenderer","✅ Simple viewable impression tracked for ad ","loadAdContentInBackground","banner","now","apiKey","[data-adstage-slot-id]","🔍 Auto-cleanup MutationObserver enabled","renderFallback","then","loop","config","_isReady","trackAdvertisementEvent","maxLines","8oZgEGX","destroyModule","muted","controls","handleViewableEvent","ensureReady","🎯 Simple viewability tracking started for slot: ","debug","432140guwSIQ","list","delete","style","status","body","advertisements","containerId","adId","forEach","mutationObserver","undefined","setAttribute","json","renderAd","New advertisement viewable tracked for slot:","🎯 Ads module initialized (sync mode) with auto-cleanup"," ads)","createAd","Ad slot not found: ","advertisement","video","startSimpleViewabilityTracking","handleRemovedElement","createAdInternal","random","toString","Failed to refresh ad slot: ","API key not configured","getAllSlots","_config","getConfig","slots"," attempts: ","🚫 Advertisement not found with ID: ","isLoaded","🗑️ Ads module destroyed","customControls","default","isReady","renderAdElement","548274srIQjH","country","warn","log","advertisementEventTracker","getAttribute","data-adstage-slot-id","destroy","NATIVE","100%","error","getBaseUrl","onClick","interstitial","innerHTML","optimizeContainerForBannerAds","get","language","nodeType","text","clear","width","895713AVqTFM","VIEWABLE","createPlaceholder","1115037xuhDta"," (element found)","BANNER","TEXT","📊 Fetched ","VIDEO","substr","ELEMENT_NODE","adstage-","values","❌ Failed to load ad for slot: ","110PiSEUR","detail","autoDestroy","_id","autoplay","length","deviceType","14IvuIfz","viewabilityTracker","refreshAdSlot","ms... (attempt ","adType","Failed to fetch ad data: ","Container not found: ",". Retrying in "];return(Yt=function(){return t})()}!function(){const t=Kt,e=Yt();for(;;)try{if(969428===parseInt(t(260))/1+-parseInt(t(189))/2*(parseInt(t(238))/3)+-parseInt(t(152))/4+-parseInt(t(197))/5+parseInt(t(164))/6+-parseInt(t(140))/7*(-parseInt(t(158))/8)+-parseInt(t(263))/9*(-parseInt(t(274))/10))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class Xt{constructor(){const t=Kt;this[t(186)]=!1,this._config=null,this.slots=new Map,this[t(242)]=null,this.adRenderer=null,this[t(207)]=null}init(t){const e=Kt;this[e(227)]=t,this[e(242)]=new P(K[e(249)](),t[e(179)],t[e(196)]||!1,this[e(229)]),this[e(174)]=new jt(t[e(196)]||!1,this[e(242)]),this[e(151)](),this[e(186)]=!0,t[e(196)]&&console[e(241)](e(213))}[Wt(236)](){return this[Wt(186)]}[Wt(228)](){return this._config}[Wt(177)](t,n){const r=Wt;this.ensureReady();const s={width:n?.[r(259)]||r(247),height:n?.height||"auto",autoSlide:n?.[r(154)]||!1,slideInterval:n?.slideInterval||5e3,onClick:n?.[r(250)],adId:n?.adId,language:n?.[r(255)],deviceType:n?.deviceType,country:n?.[r(239)]};return this[r(215)](t,e[r(265)],s)}[Wt(257)](t,n){const r=Wt;this.ensureReady();const s={maxLines:n?.[r(188)]||3,style:n?.[r(200)]||r(235),onClick:n?.[r(250)],adId:n?.[r(205)],language:n?.language,deviceType:n?.[r(280)],country:n?.[r(239)]};return this[r(215)](t,e[r(266)],s)}[Wt(218)](t,n){const r=Wt;this[r(194)]();const s={width:n?.width||640,height:n?.height||360,autoplay:void 0===n?.[r(278)]||n.autoplay,muted:void 0===n?.muted||n[r(191)],loop:void 0===n?.[r(184)]||n.loop,playsinline:!1!==n?.playsinline,controls:void 0!==n?.controls&&n[r(192)],hideControls:n?.[r(168)]||!1,customControls:n?.[r(234)],autoSlide:!1,maxAds:1,onClick:n?.[r(250)],...n?.[r(205)]&&{adId:n[r(205)]}};return this.createAd(t,e[r(268)],s)}[Wt(166)](t,n){const r=Wt;return this.ensureReady(),this.createAd(t,e[r(246)],n||{})}[Wt(251)](t,n){const r=Wt;return this.ensureReady(),this[r(215)](t,e[r(169)],n||{})}[Wt(159)](t){const e=Wt;this.ensureReady();const n=this[e(229)][e(254)](t);if(!n)throw new Error(e(216)+t);this[e(142)](n),this[e(227)]?.[e(196)]&&console[e(241)]("🔄 Ad slot refreshed: "+t)}destroy(t){const e=Wt;this[e(194)]();const n=this[e(229)].get(t);if(!n)throw new Error("Ad slot not found: "+t);n[e(141)]&&n[e(141)][e(245)]();const r=document[e(170)](n[e(204)]);r&&(r[e(252)]=""),this[e(229)].delete(t),this[e(227)]?.[e(196)]&&console[e(241)](e(153)+t)}[Wt(226)](){const t=Wt;return this[t(194)](),Array.from(this[t(229)][t(272)]())}getSlotById(t){return this.ensureReady(),this.slots.get(t)||null}[Wt(215)](t,e,n){const r=Wt;if(!this[r(227)]?.apiKey)throw new Error(r(225));const s=r(271)+e+"-"+Date[r(178)]()+"-"+Math[r(222)]()[r(223)](36)[r(269)](2,9);return this[r(156)](t,e,n,s,0),s}async createAdWithRetry(t,e,n,r,s){const o=Wt,i=[0,50,100,200,500];let a,c=null;if(typeof t===o(161)){if(a=t,c=document.getElementById(t),!c)return s<4?(this[o(227)]?.[o(196)]&&console.warn(o(146)+t+o(147)+i[s+1]+o(143)+(s+1)+"/5)"),void setTimeout(()=>{this[o(156)](t,e,n,r,s+1)},i[s+1])):void console[o(248)]("Container not found after 5"+o(230)+t)}else c=t,a=c.id||"auto-"+r,!c.id&&(c.id=a);try{this[o(221)](a,e,n,r,c)}catch(t){console[o(248)]("광고 생성 중 오류 발생:",t)}}createAdInternal(t,n,r,s,o){const i=Wt;o[i(209)](i(244),s),this[i(174)]?.[i(262)](o,s,n,r,this[i(227)]);const a={id:s,containerId:t,adType:n,width:r[i(259)]||"100%",height:r[i(149)]||(n===e[i(266)]?i(160):250),isLoaded:!1,isVisible:!1,refreshRate:0,lazyLoad:!1,targeting:{},advertisement:void 0,config:{type:n,...r},load:async()=>this.fetchAdData(n,r)[i(183)](t=>t[0]||null),render:t=>this[i(174)]?.[i(237)](a,t),refresh:async()=>this[i(142)](a),destroy:()=>this.destroy(s)};this[i(229)].set(s,a),this[i(176)](a),this[i(242)]&&this[i(227)]?.[i(196)]&&console[i(241)]("📊 Advertisement event tracking enabled for slot: "+s)}async[Wt(176)](t){const n=Wt;try{const r=await this[n(157)](t.adType,t.config);if(!r||0===r[n(279)])return void this[n(174)]?.renderFallback(t);t.adType===e[n(265)]&&r[n(279)]>0&&await(this[n(174)]?.[n(253)](t,r)),r[n(279)]>1||t.config?.[n(154)]?(await(this.adRenderer?.renderAdSlider(t,r)),this[n(227)]?.[n(196)]&&console.log("🎠 Slider will handle VIEWABLE events for "+r[n(279)]+n(167))):(t[n(217)]=r[0],await(this[n(174)]?.[n(237)](t,r[0])),this[n(219)](t,r[0])),t[n(232)]=!0,this[n(227)]?.debug&&console[n(241)]("✅ Ad loaded for slot: "+t.id+" ("+r[n(279)]+n(214))}catch(e){console.error(n(273)+t.id,e),this[n(174)]?.[n(182)](t)}}[Wt(219)](t,e){const n=(r=0)=>{const s=Kt,o=document[s(170)](t.id);if(!o)return void(r<5?(setTimeout(()=>n(r+1),300),this[s(227)]?.debug&&console[s(241)](s(173)+t.id+s(172)+(r+1)+")")):console[s(240)]("❌ Failed to find element for viewability tracking: "+t.id));const i=new N(o,async()=>{const n=s;await this[n(193)](e,t)});t[s(141)]=i,this[s(227)]?.debug&&console[s(241)](s(195)+t.id+s(264))};n()}async[Wt(193)](t,e){const n=Wt;try{this[n(242)]&&(await this.advertisementEventTracker[n(187)](t._id,e.id,a[n(261)]),this[n(227)]?.[n(196)]&&console.log(n(175)+t[n(277)]))}catch(t){console[n(248)]("❌ Failed to track viewable impression:",t)}}async fetchAdData(t,e){const n=Wt;if(!this[n(227)]?.[n(179)])throw new Error(n(225));if(e[n(205)]){const t=""+K[n(203)][n(275)](e[n(205)]),r=await fetch(t,{method:"GET",headers:C[n(162)](this[n(227)][n(179)])});if(!r.ok){if(404===r[n(201)])return console[n(240)](n(231)+e.adId),[];throw new Error(n(145)+r[n(201)])}const s=await r[n(210)]();return this[n(227)]?.[n(196)]&&console[n(241)](n(148)+e[n(205)],s),[s]}const r=new URLSearchParams;r[n(155)](n(144),t),e.language&&r.append(n(255),e[n(255)]),e[n(280)]&&r[n(155)]("deviceType",e[n(280)]),e[n(239)]&&r.append(n(239),e[n(239)]);const s=K.advertisements[n(198)]()+"?"+r[n(223)](),o=await fetch(s,{method:"GET",headers:C.create(this[n(227)][n(179)])});if(!o.ok)throw new Error(n(145)+o[n(201)]);const i=(await o[n(210)]()).advertisements||[];return this[n(227)]?.debug&&console[n(241)](n(267)+i[n(279)]+n(171)+t+", filters:",{language:e[n(255)],deviceType:e[n(280)],country:e[n(239)]}),i}async refreshAdSlot(t){const e=Wt;try{const n=await this[e(157)](t[e(144)],t[e(185)]||{});n&&n[e(279)]>0&&(t.advertisement=n[0],await(this[e(174)]?.[e(211)](t)),this.advertisementEventTracker&&console[e(241)](e(212),t.id))}catch(n){console[e(248)](e(224)+t.id,n)}}ensureReady(){if(!this[Wt(186)])throw new Error("Ads module not initialized. Call AdStage.init() first.")}[Wt(151)](){const t=Wt;typeof window!==t(208)&&typeof document!==t(208)&&(this.mutationObserver&&this[t(207)][t(163)](),this[t(207)]=new MutationObserver(t=>{t.forEach(t=>{t.removedNodes.forEach(t=>{const e=Kt;t[e(256)]===Node[e(270)]&&this[e(220)](t)})})}),this[t(207)][t(150)](document[t(202)],{childList:!0,subtree:!0}),this._config?.[t(196)]&&console[t(241)](t(181)))}[Wt(220)](t){const e=Wt,n=t[e(243)]("data-adstage-slot-id");if(n)return void this[e(276)](n);t.querySelectorAll(e(180))[e(206)](t=>{const n=e,r=t.getAttribute(n(244));r&&this.autoDestroy(r)})}[Wt(276)](t){const e=Wt;if(this.slots[e(254)](t))try{this[e(229)][e(199)](t),this._config?.[e(196)]&&console[e(241)]("🧹 Auto-cleanup: slot "+t+e(165))}catch(n){this[e(227)]?.debug&&console[e(240)]("Auto-cleanup failed for slot "+t+":",n)}}[Wt(190)](){const t=Wt,e=this[t(227)]?.[t(196)];this[t(207)]&&(this[t(207)][t(163)](),this[t(207)]=null),this[t(229)][t(258)](),this[t(242)]=null,this[t(174)]=null,this._isReady=!1,this._config=null,e&&console[t(241)](t(233))}}var Zt=Qt;function qt(){var t=["isReady","1126WRtUmG","baseUrl","1072400fcRxKj","includes","apiKey","105049kClFxT","getApiHeaders","1333bcLiXd","config","_isReady","development","ads","Config module not initialized","updateConfig","9990040CVWieF","102aCyvNk","_config","events","2806712ekcdkQ","6874344SvOoAu","3sgWtUW","🔄 Config updated","2256536bibFWK","getEnabledModules","getApiEndpoint","isDebugMode","_organizationInfo","log"];return(qt=function(){return t})()}function Qt(t,e){var n=qt();return(Qt=function(t,e){return n[t-=136]})(t,e)}!function(){for(var t=Qt,e=qt();;)try{if(467677===parseInt(t(156))/1*(-parseInt(t(149))/2)+parseInt(t(140))/3*(parseInt(t(138))/4)+parseInt(t(151))/5+-parseInt(t(164))/6*(-parseInt(t(154))/7)+parseInt(t(142))/8+parseInt(t(139))/9+-parseInt(t(163))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class Gt{constructor(){var t=Qt;this[t(158)]=!1,this[t(136)]=null,this[t(146)]=null}init(t){var e=Qt;this[e(136)]={timeout:3e4,debug:!1,modules:[e(160),e(137),e(157)],...t},t.baseUrl&&K.setBaseUrl(t[e(150)]),this[e(158)]=!0,t.debug&&console[e(147)]("✅ Config module initialized (sync mode)",{modules:this[e(136)].modules,endpoint:K.getBaseUrl(),mode:e(159)})}[Zt(148)](){return this[Zt(158)]}getConfig(){return this[Zt(136)]}getOrganizationInfo(){return this[Zt(146)]}[Zt(144)](){return K.getBaseUrl()}[Zt(145)](){var t=Zt;return this[t(136)]?.debug||!1}[Zt(143)](){var t=Zt;return this[t(136)]?.modules||[]}isModuleEnabled(t){var e=Zt;return this[e(143)]()[e(152)](t)}[Zt(162)](t){var e=Zt;if(!this[e(136)])throw new Error(e(161));this[e(136)]={...this[e(136)],...t},this[e(145)]()&&console.log(e(141),t)}[Zt(155)](){var t=Zt;if(!this[t(136)]?.apiKey)throw new Error("API key not available");return C.create(this[t(136)][t(153)])}}const Jt=$t;function $t(t,e){const n=te();return($t=function(t,e){return n[t-=392]})(t,e)}function te(){const t=["22925xLYydN","957294bYkxBM","clearDeviceInfo","Desktop Web","304JCSsmH","getDetailedInfo","40KrYJbH","toLowerCase","ios","462nYSyAJ","833786NbNyOl","getDeviceInfo","setDeviceProperty","250664lxSGOU","isMobile","481529ICaYYX","SSR","mapPlatformForEvents","height","isBrowser","tablet","test","ko-KR","setDeviceInfo","android","width","6HxdEvi","2495061TYoSAh","getViewportInfo","getAutoDetectedDeviceInfo","platform","desktop","getUserDeviceInfo","web","3270XUgPSZ","Mobile Web","iOS","getPlatform","onLine","userAgent","0x0","_userProvidedDeviceInfo","language"];return(te=function(){return t})()}!function(){const t=$t,e=te();for(;;)try{if(515393===parseInt(t(402))/1+-parseInt(t(397))/2*(-parseInt(t(413))/3)+-parseInt(t(400))/4*(parseInt(t(393))/5)+-parseInt(t(431))/6+parseInt(t(430))/7*(parseInt(t(434))/8)+-parseInt(t(414))/9+parseInt(t(421))/10*(parseInt(t(396))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class ee{static[Jt(398)](){const t=Jt;return{...ee[t(416)](),...ee[t(428)]}}static[Jt(416)](){const t=Jt;if(!y[t(406)]())return{category:"other",platform:"SSR",model:"SSR",osVersion:t(403)};const e=navigator[t(426)][t(394)]();let n=t(418);/tablet|ipad/[t(408)](e)?n=t(407):A[t(401)]()&&(n="mobile");const r=A[t(424)]();return{category:n,platform:ee.mapPlatformForEvents(r),model:navigator[t(417)],osVersion:navigator[t(417)]}}static[Jt(410)](t){const e=Jt;ee[e(428)]={...ee[e(428)],...t}}static[Jt(399)](t,e){ee[Jt(428)][t]=e}static[Jt(432)](){ee[Jt(428)]={}}static[Jt(419)](){return{...ee[Jt(428)]}}static[Jt(404)](t){const e=Jt;switch(t){case e(395):return e(423);case e(411):return"Android";case e(420):return e(422);case"desktop":return e(433);default:return"Unknown"}}static[Jt(392)](){const t=Jt;if(!y[t(406)]())return{userAgent:"SSR",language:t(409),platform:"SSR",cookieEnabled:!1,onLine:!0,screenResolution:"0x0",viewportSize:t(427)};const e=y[t(415)]();return{userAgent:navigator[t(426)],language:navigator[t(429)]||t(409),platform:navigator.platform,cookieEnabled:navigator.cookieEnabled,onLine:navigator[t(425)],screenResolution:screen[t(412)]+"x"+screen.height,viewportSize:e[t(412)]+"x"+e[t(405)]}}}ee[Jt(428)]={};const ne=se;function re(){const t=["1219660RZVXfI","656580OPpWYq","extractCountryFromLanguage","ko-KR","236404FMiQXo","11fjIwJl","isBrowser","clearUserProperties","language","1OBExwU","split","244128aTmTAY","114160IQSXVq","90QYQZEL","estimateLocation","184849yFrnHZ","_userProperties","487810lvxZrQ","getCurrentUserProperties","DateTimeFormat","getUserInfo","setUserProperties","78hXrBPt","getBaseUserInfo"];return(re=function(){return t})()}function se(t,e){const n=re();return(se=function(t,e){return n[t-=287]})(t,e)}!function(){const t=se,e=re();for(;;)try{if(213489===parseInt(t(303))/1*(parseInt(t(287))/2)+parseInt(t(305))/3+-parseInt(t(298))/4+-parseInt(t(295))/5+parseInt(t(292))/6*(parseInt(t(309))/7)+parseInt(t(306))/8*(-parseInt(t(307))/9)+parseInt(t(294))/10*(-parseInt(t(299))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class oe{static[ne(290)](){return{...oe[ne(293)](),...oe._userProperties}}static[ne(293)](){const t=ne;if(!y[t(300)]())return{language:"ko-KR",country:"KR"};const e=navigator[t(302)]||t(297);return{language:e,country:oe.extractCountryFromLanguage(e)}}static[ne(296)](t){const e={ko:"KR","ko-KR":"KR",en:"US","en-US":"US","en-GB":"GB",ja:"JP","ja-JP":"JP",zh:"CN","zh-CN":"CN","zh-TW":"TW",de:"DE","de-DE":"DE",fr:"FR","fr-FR":"FR"};if(e[t])return e[t];return e[t[ne(304)]("-")[0]]||"KR"}static[ne(291)](t){const e=ne;oe[e(310)]={...oe[e(310)],...t}}static setUserProperty(t,e){oe._userProperties[t]=e}static[ne(301)](){oe[ne(310)]={}}static[ne(288)](){return{...oe[ne(310)]}}static[ne(308)](){const t=ne;if(!y[t(300)]())return{timezone:"UTC",estimatedCountry:"KR"};const e=Intl[t(289)]().resolvedOptions().timeZone;return{timezone:e,estimatedCountry:{"Asia/Seoul":"KR","Asia/Tokyo":"JP","Asia/Shanghai":"CN","Asia/Hong_Kong":"HK","Asia/Taipei":"TW","America/New_York":"US","America/Los_Angeles":"US","Europe/London":"GB","Europe/Berlin":"DE","Europe/Paris":"FR"}[e]||"KR"}}}oe._userProperties={};const ie=ce;function ae(){const t=["adstage_session_start","9686408olYPww","random","getUserId","getSessionStats","125mlUyCN","_userId","_sessionStartTime","3907897UDMDBA","1638825qETeqL","getSessionId","isSessionExpired","getSessionDuration","ssr_session_","getSessionInfo","isNewSession","isBrowser","59628pamFyh","removeItem","420720CMhALE","adstage_session_id","now","session_","setUserId","toString","setItem","substr","1488126DlTDCl","9LnEacq","clearUserId","getItem","21562PoTIwA","adstage_user_id"];return(ae=function(){return t})()}function ce(t,e){const n=ae();return(ce=function(t,e){return n[t-=445]})(t,e)}!function(){const t=ce,e=ae();for(;;)try{if(317012===-parseInt(t(464))/1+parseInt(t(476))/2+-parseInt(t(454))/3+-parseInt(t(462))/4*(-parseInt(t(450))/5)+parseInt(t(472))/6+-parseInt(t(453))/7+parseInt(t(446))/8*(parseInt(t(473))/9))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class le{static[ie(455)](){const t=ie;if(!y[t(461)]())return t(458)+Date[t(466)]();const e=sessionStorage.getItem(t(465));if(e)return e;const n=t(467)+Math[t(447)]()[t(469)](36)[t(471)](2,9)+"_"+Date[t(466)]();return sessionStorage[t(470)](t(465),n),!le._sessionStartTime&&(le[t(452)]=Date.now(),y[t(461)]()&&sessionStorage.setItem("adstage_session_start",String(le._sessionStartTime))),n}static[ie(468)](t){const e=ie;le[e(451)]=t,y[e(461)]()&&localStorage[e(470)]("adstage_user_id",t)}static[ie(448)](){const t=ie;if(le[t(451)])return le._userId;if(y.isBrowser()){const e=localStorage[t(475)](t(477));if(e)return le[t(451)]=e,e}}static[ie(474)](){const t=ie;le[t(451)]=void 0,y[t(461)]()&&localStorage[t(463)](t(477))}static[ie(459)](){const t=ie,e=le[t(455)](),n=le[t(448)](),r=le[t(460)]();return{sessionId:e,userId:n,sessionDuration:le[t(457)](),isNewSession:r}}static[ie(460)](){const t=ie;if(!y[t(461)]())return!0;const e=sessionStorage[t(475)](t(465)),n=sessionStorage[t(475)](t(445));return!e||!n}static[ie(457)](){const t=ie;if(!y[t(461)]())return 0;const e=sessionStorage.getItem("adstage_session_start");return e?Date[t(466)]()-parseInt(e,10):0}static refreshSession(){const t=ie;return y[t(461)]()&&(sessionStorage[t(463)]("adstage_session_id"),sessionStorage[t(463)](t(445))),le._sessionStartTime=void 0,le.getSessionId()}static[ie(456)](t=24){return le[ie(457)]()>60*t*60*1e3}static[ie(449)](){const t=ie,e=le[t(455)](),n=le[t(448)](),r=le[t(457)](),s=le[t(456)](),o=le[t(460)]();let i;if(y[t(461)]()){const e=sessionStorage[t(475)](t(445));i=e?parseInt(e,10):void 0}return{sessionId:e,userId:n,startTime:i,duration:r,isExpired:s,isNewSession:o}}}const de=ue;function ue(t,e){const n=pe();return(ue=function(t,e){return n[t-=307]})(t,e)}function pe(){const t=["error","29360hgqTQB","Event data:","init","warn","_config","log","getUserId","setDeviceProperty","track","32412kkGcbS","460270yUFJwK","248142TYllDV","setUserId","apiKey","392505VmXEeW","6ERyqLg","❌ Failed to track event:","5412HVZAZj","getDeviceInfo","clearDeviceInfo","getCurrentUserProperties","setUserProperties","events","407QKpfrl","👤 User ID set:","POST","_isReady","status","18fdQzMP","create","14vaaFFP","📊 Events module initialized","✅ Event tracked:","debug","getUserDeviceInfo","📱 Device info set:","sendEventToServer","getUserInfo","👤 User properties set:","getSessionId","243QcbyAF","31742WndrmX","stringify"];return(pe=function(){return t})()}!function(){const t=ue,e=pe();for(;;)try{if(100278===parseInt(t(328))/1*(parseInt(t(346))/2)+-parseInt(t(327))/3*(parseInt(t(348))/4)+parseInt(t(345))/5+-parseInt(t(342))/6*(-parseInt(t(317))/7)+parseInt(t(331))/8*(parseInt(t(315))/9)+parseInt(t(341))/10+parseInt(t(310))/11*(-parseInt(t(340))/12))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class he{constructor(){const t=ue;this._isReady=!1,this[t(335)]=null}[de(333)](t){const e=de;this._config=t,this[e(313)]=!0,t[e(320)]&&console.log(e(318))}isReady(){return this[de(313)]}getConfig(){return this[de(335)]}[de(343)](t){const e=de;le[e(343)](t),this[e(335)]?.debug&&console[e(336)](e(311),t)}[de(337)](){return le[de(337)]()}[de(308)](t){const e=de;oe[e(308)](t),this._config?.debug&&console[e(336)](e(325),t)}getUserProperties(){return oe[de(307)]()}setDeviceInfo(t){const e=de;ee.setDeviceInfo(t),this._config?.[e(320)]&&console[e(336)](e(322),t)}[de(338)](t,e){const n=de;ee[n(338)](t,e),this[n(335)]?.[n(320)]&&console.log("📱 Device property set:",t,e)}[de(350)](){const t=de;ee[t(350)](),this[t(335)]?.[t(320)]&&console[t(336)]("📱 User provided device info cleared")}getUserDeviceInfo(){return ee[de(321)]()}getDeviceInfo(){return ee[de(349)]()}[de(324)](){return oe.getUserInfo()}[de(307)](){return oe[de(307)]()}async[de(339)](t,e){const n=de;if(this[n(313)])if(this[n(335)]?.[n(344)])try{const r={eventName:t,userId:le[n(337)](),sessionId:le[n(326)](),sdkVersion:E(),device:ee[n(349)](),user:oe.getUserInfo(),params:e||{}};await this[n(323)](r),this[n(335)].debug&&console[n(336)](n(319),t,e)}catch(r){console[n(330)](n(347),r),this[n(335)][n(320)]&&console.error(n(332),{eventName:t,properties:e})}else console[n(334)]("API key not configured for event tracking.");else console[n(334)]("Events module not initialized. Call AdStage.init() first.")}async[de(323)](t){const e=de,n=await fetch(K[e(309)][e(339)](),{method:e(312),headers:{...C[e(316)](this[e(335)][e(344)]),"Content-Type":"application/json"},body:JSON[e(329)](t)});if(!n.ok)throw new Error("Event tracking failed: "+n[e(314)]+" "+n.statusText)}}const fe=me;function ge(){const t=["463582hRlZYI","39EmnPjS","10EtGnZs","development",")의 viewable 추적 초기화됨","🌐 API endpoint configured:","debug","reset","log","clearAdViewable","instance","getConfig","ads","clear","78266QzzOLE","isReady","12759329oRlAYt","5451642IfCMHS","5401109iTcRbC","✅ AdStage Debug: 모든 viewable 추적 데이터 초기화됨","init","setBaseUrl","✅ AdStage Debug: 광고 ","7712BMkhni","modules","3582XVdiKW","config","_config","2.0.0","AdStage not initialized. Call AdStage.init() first.","20qgUwbw","API key is required for AdStage initialization","apiKey","127695kCFVly","_isInitialized","events","🚀 AdStage SDK initialized (sync mode)","getInstance","baseUrl"];return(ge=function(){return t})()}function me(t,e){const n=ge();return(me=function(t,e){return n[t-=100]})(t,e)}!function(){const t=me,e=ge();for(;;)try{if(460759===parseInt(t(116))/1+-parseInt(t(130))/2*(-parseInt(t(117))/3)+parseInt(t(107))/4*(parseInt(t(110))/5)+parseInt(t(133))/6+-parseInt(t(134))/7+parseInt(t(100))/8*(parseInt(t(102))/9)+-parseInt(t(118))/10*(parseInt(t(132))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class ye{constructor(){const t=me;this[t(111)]=!1,this[t(104)]=null,this[t(103)]=new Gt,this[t(128)]=new Xt,this[t(112)]=new he}static init(t){const e=me;!ye[e(126)]&&(ye[e(126)]=new ye);const n=ye[e(126)];if(!t[e(109)])throw new Error(e(108));n[e(104)]={timeout:3e4,debug:!1,modules:[e(128),e(112),"config"],...t},n._config[e(115)]&&(K[e(137)](n[e(104)][e(115)]),t[e(122)]&&console.log(e(121),n[e(104)][e(115)]));const r=n[e(104)][e(101)]||[e(128),e(112),e(103)];for(const t of r){const r=n[t];r&&"function"==typeof r[e(136)]&&r[e(136)](n[e(104)])}n[e(111)]=!0,t[e(122)]&&console.log(e(113),{version:e(105),modules:r,apiKey:t[e(109)].substring(0,8)+"...",mode:e(119)})}static[fe(131)](){const t=fe;return ye[t(126)]?.[t(111)]||!1}static[fe(127)](){const t=fe;return ye[t(126)]?.[t(104)]||null}static[fe(114)](){const t=fe;if(!ye[t(126)])throw new Error(t(106));return ye[t(126)]}static get ads(){return ye[fe(114)]().ads}static get events(){const t=fe;return ye.getInstance()[t(112)]}static get[fe(103)](){const t=fe;return ye.getInstance()[t(103)]}static[fe(123)](){const t=fe;ye.instance&&(ye[t(126)][t(111)]=!1,ye[t(126)]._config=null)}}function Ie(){var t=["isReady","7dpZVAh","warn","track","events","getUserProperties","747274LSMtDE","setUserId","getUserId","19471304bhPjpl","AdStage not initialized. Call AdStage.init() first.","6454290qUfGjA","1547520GIdWfb","3888270KiXyYN","2107024uZmHWk","1389794Uojcra"];return(Ie=function(){return t})()}function ve(t,e){var n=Ie();return(ve=function(t,e){return n[t-=165]})(t,e)}function be(t,e){var n=ve;return ye[n(177)]()?ye[n(165)][n(180)](t,e):(console[n(179)](n(171)),Promise.resolve())}function we(t){var e=ve;ye[e(177)]()?ye[e(165)][e(168)](t):console[e(179)](e(171))}function Ee(){var t=ve;if(ye[t(177)]())return ye.events[t(169)]();console.warn(t(171))}function ke(t){var e=ve;ye[e(177)]()?ye[e(165)].setUserProperties(t):console[e(179)](e(171))}function xe(){var t=ve;if(ye[t(177)]())return ye[t(165)][t(166)]();console[t(179)](t(171))}ye[fe(122)]={clearAllViewable:()=>{const t=fe;at[t(129)](),console[t(124)](t(135))},clearAdViewable:(t,e)=>{const n=fe;at[n(125)](t,e),console[n(124)](n(138)+t+"("+e+n(120))},getViewableStatus:()=>{console[fe(124)]("📊 AdStage Debug: 현재 viewable 추적 상태",{trackedCount:at.viewableTracker.size,trackedItems:Array.from(at.viewableTracker)})}},function(){for(var t=ve,e=Ie();;)try{if(539083===-parseInt(t(167))/1+parseInt(t(176))/2+-parseInt(t(173))/3+parseInt(t(175))/4+-parseInt(t(174))/5+-parseInt(t(172))/6+parseInt(t(178))/7*(parseInt(t(170))/8))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();var Se,Ae={exports:{}},Te={},Ce={exports:{}},Re={};Ce.exports=function(){if(Se)return Re;Se=1;var t=Symbol.for("react.element"),e=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),i=Symbol.for("react.context"),a=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),l=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),u=Symbol.iterator,p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},h=Object.assign,f={};function g(t,e,n){this.props=t,this.context=e,this.refs=f,this.updater=n||p}function m(){}function y(t,e,n){this.props=t,this.context=e,this.refs=f,this.updater=n||p}g.prototype.isReactComponent={},g.prototype.setState=function(t,e){if("object"!=typeof t&&"function"!=typeof t&&null!=t)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,t,e,"setState")},g.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")},m.prototype=g.prototype;var I=y.prototype=new m;I.constructor=y,h(I,g.prototype),I.isPureReactComponent=!0;var v=Array.isArray,b=Object.prototype.hasOwnProperty,w={current:null},E={key:!0,ref:!0,__self:!0,__source:!0};function k(e,n,r){var s,o={},i=null,a=null;if(null!=n)for(s in void 0!==n.ref&&(a=n.ref),void 0!==n.key&&(i=""+n.key),n)b.call(n,s)&&!E.hasOwnProperty(s)&&(o[s]=n[s]);var c=arguments.length-2;if(1===c)o.children=r;else if(1<c){for(var l=Array(c),d=0;d<c;d++)l[d]=arguments[d+2];o.children=l}if(e&&e.defaultProps)for(s in c=e.defaultProps)void 0===o[s]&&(o[s]=c[s]);return{$$typeof:t,type:e,key:i,ref:a,props:o,_owner:w.current}}function x(e){return"object"==typeof e&&null!==e&&e.$$typeof===t}var S=/\/+/g;function A(t,e){return"object"==typeof t&&null!==t&&null!=t.key?function(t){var e={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,function(t){return e[t]})}(""+t.key):e.toString(36)}function T(n,r,s,o,i){var a=typeof n;"undefined"!==a&&"boolean"!==a||(n=null);var c=!1;if(null===n)c=!0;else switch(a){case"string":case"number":c=!0;break;case"object":switch(n.$$typeof){case t:case e:c=!0}}if(c)return i=i(c=n),n=""===o?"."+A(c,0):o,v(i)?(s="",null!=n&&(s=n.replace(S,"$&/")+"/"),T(i,r,s,"",function(t){return t})):null!=i&&(x(i)&&(i=function(e,n){return{$$typeof:t,type:e.type,key:n,ref:e.ref,props:e.props,_owner:e._owner}}(i,s+(!i.key||c&&c.key===i.key?"":(""+i.key).replace(S,"$&/")+"/")+n)),r.push(i)),1;if(c=0,o=""===o?".":o+":",v(n))for(var l=0;l<n.length;l++){var d=o+A(a=n[l],l);c+=T(a,r,s,d,i)}else if(d=function(t){return null===t||"object"!=typeof t?null:"function"==typeof(t=u&&t[u]||t["@@iterator"])?t:null}(n),"function"==typeof d)for(n=d.call(n),l=0;!(a=n.next()).done;)c+=T(a=a.value,r,s,d=o+A(a,l++),i);else if("object"===a)throw r=String(n),Error("Objects are not valid as a React child (found: "+("[object Object]"===r?"object with keys {"+Object.keys(n).join(", ")+"}":r)+"). If you meant to render a collection of children, use an array instead.");return c}function C(t,e,n){if(null==t)return t;var r=[],s=0;return T(t,r,"","",function(t){return e.call(n,t,s++)}),r}function R(t){if(-1===t._status){var e=t._result;(e=e()).then(function(e){0!==t._status&&-1!==t._status||(t._status=1,t._result=e)},function(e){0!==t._status&&-1!==t._status||(t._status=2,t._result=e)}),-1===t._status&&(t._status=0,t._result=e)}if(1===t._status)return t._result.default;throw t._result}var _={current:null},D={transition:null},L={ReactCurrentDispatcher:_,ReactCurrentBatchConfig:D,ReactCurrentOwner:w};function B(){throw Error("act(...) is not supported in production builds of React.")}return Re.Children={map:C,forEach:function(t,e,n){C(t,function(){e.apply(this,arguments)},n)},count:function(t){var e=0;return C(t,function(){e++}),e},toArray:function(t){return C(t,function(t){return t})||[]},only:function(t){if(!x(t))throw Error("React.Children.only expected to receive a single React element child.");return t}},Re.Component=g,Re.Fragment=n,Re.Profiler=s,Re.PureComponent=y,Re.StrictMode=r,Re.Suspense=c,Re.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=L,Re.act=B,Re.cloneElement=function(e,n,r){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var s=h({},e.props),o=e.key,i=e.ref,a=e._owner;if(null!=n){if(void 0!==n.ref&&(i=n.ref,a=w.current),void 0!==n.key&&(o=""+n.key),e.type&&e.type.defaultProps)var c=e.type.defaultProps;for(l in n)b.call(n,l)&&!E.hasOwnProperty(l)&&(s[l]=void 0===n[l]&&void 0!==c?c[l]:n[l])}var l=arguments.length-2;if(1===l)s.children=r;else if(1<l){c=Array(l);for(var d=0;d<l;d++)c[d]=arguments[d+2];s.children=c}return{$$typeof:t,type:e.type,key:o,ref:i,props:s,_owner:a}},Re.createContext=function(t){return(t={$$typeof:i,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:o,_context:t},t.Consumer=t},Re.createElement=k,Re.createFactory=function(t){var e=k.bind(null,t);return e.type=t,e},Re.createRef=function(){return{current:null}},Re.forwardRef=function(t){return{$$typeof:a,render:t}},Re.isValidElement=x,Re.lazy=function(t){return{$$typeof:d,_payload:{_status:-1,_result:t},_init:R}},Re.memo=function(t,e){return{$$typeof:l,type:t,compare:void 0===e?null:e}},Re.startTransition=function(t){var e=D.transition;D.transition={};try{t()}finally{D.transition=e}},Re.unstable_act=B,Re.useCallback=function(t,e){return _.current.useCallback(t,e)},Re.useContext=function(t){return _.current.useContext(t)},Re.useDebugValue=function(){},Re.useDeferredValue=function(t){return _.current.useDeferredValue(t)},Re.useEffect=function(t,e){return _.current.useEffect(t,e)},Re.useId=function(){return _.current.useId()},Re.useImperativeHandle=function(t,e,n){return _.current.useImperativeHandle(t,e,n)},Re.useInsertionEffect=function(t,e){return _.current.useInsertionEffect(t,e)},Re.useLayoutEffect=function(t,e){return _.current.useLayoutEffect(t,e)},Re.useMemo=function(t,e){return _.current.useMemo(t,e)},Re.useReducer=function(t,e,n){return _.current.useReducer(t,e,n)},Re.useRef=function(t){return _.current.useRef(t)},Re.useState=function(t){return _.current.useState(t)},Re.useSyncExternalStore=function(t,e,n){return _.current.useSyncExternalStore(t,e,n)},Re.useTransition=function(){return _.current.useTransition()},Re.version="18.3.1",Re}();var _e,De=Ce.exports;
1
+ var t,e,n,r,s,o,i,a,c,l,d;function u(t,e){var n=p();return(u=function(t,e){return n[t-=379]})(t,e)}function p(){var t=["VIDEO","TEXT","WEB","3613446xBRbuA","INTERSTITIAL","1050990KQNcaa","NATIVE","VIEWABLE","TABLET","MOBILE","2243784iyTMgk","2592574YcNJAc","1446756IYxciM","133692RtzAcg","DESKTOP","BANNER","CLICK","POPUP","63dGxNIl","881088tfwZtH"];return(p=function(){return t})()}!function(){for(var t=u,e=p();;)try{if(842196===-parseInt(t(385))/1+-parseInt(t(397))/2+parseInt(t(379))/3+-parseInt(t(398))/4+parseInt(t(391))/5+parseInt(t(389))/6+-parseInt(t(384))/7*(-parseInt(t(396))/8))break;e.push(e.shift())}catch(t){e.push(e.shift())}}(),(e=t||(t={}))[(n=u)(381)]=n(381),e[n(383)]=n(383),e[n(390)]="INTERSTITIAL",e[n(392)]=n(392),e[n(386)]="VIDEO",e.TEXT=n(387),(s=r||(r={}))[u(388)]="WEB",s.MOBILE="MOBILE",(i=o||(o={}))[(a=u)(393)]=a(393),i[a(382)]=a(382),(l=c||(c={}))[(d=u)(380)]=d(380),l[d(395)]=d(395),l[d(394)]=d(394);const h=g;!function(){const t=g,e=m();for(;;)try{if(328090===parseInt(t(380))/1*(-parseInt(t(437))/2)+-parseInt(t(424))/3+-parseInt(t(409))/4+-parseInt(t(416))/5*(-parseInt(t(412))/6)+parseInt(t(388))/7*(parseInt(t(373))/8)+parseInt(t(377))/9*(parseInt(t(434))/10)+-parseInt(t(425))/11*(parseInt(t(418))/12))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class f{static[h(426)](){const t=h;return typeof window!==t(435)&&typeof document!==t(435)}static[h(365)](){return!this[h(426)]()}static[h(395)](){const t=h;return this[t(426)]()&&void 0!==document[t(393)]}static[h(401)](t){const e=h;return this[e(395)]()?document[e(383)](t):null}static[h(364)](t){const e=h;return this[e(395)]()?document[e(430)](t):null}static[h(432)](t){const e=h;return this[e(395)]()?Array.from(document[e(381)](t)):[]}static[h(421)](t){const e=h;return this[e(395)]()?document[e(372)](t):null}static[h(400)](t,e,n,r){const s=h;this[s(395)]()&&t&&t[s(368)](e,n,r)}static[h(387)](t,e,n,r){const s=h;this.canUseDOM()&&t&&t[s(378)](e,n,r)}static[h(367)](t,e){return this[h(426)]()?window[t]??e:e}static[h(402)](t,e){return this[h(395)]()?document[t]??e:e}static[h(391)](t,e,n){const r=h;return this.isBrowser()?window[r(427)](t,e,n):null}static[h(403)](t){return this[h(426)]()&&t?window.getComputedStyle(t):null}static[h(376)](){const t=h;return!!this[t(395)]()&&document[t(393)]!==t(398)}static[h(385)](){return new Promise(t=>{const e=g;this[e(395)]()?this[e(376)]()?t():this[e(400)](document,e(438),()=>t()):t()})}static[h(404)](t,e){const n=h;this[n(395)]()&&t&&Object.entries(e)[n(379)](([e,r])=>{const s=n;t[s(399)][s(389)](e,r)})}static safeAddClass(t,e){const n=h;this.canUseDOM()&&t&&t[n(420)][n(382)](e)}static[h(392)](t,e){const n=h;this[n(395)]()&&t&&t[n(420)][n(429)](e)}static[h(414)](t,e){const n=h;this[n(395)]()&&t&&(t[n(422)]=e)}static safeSetInnerHTML(t,e){this[h(395)]()&&t&&(t.innerHTML=e)}static[h(375)](t,e){this.canUseDOM()&&t&&e&&t.appendChild(e)}static safeRemoveChild(t,e){const n=h;this[n(395)]()&&t&&e&&t[n(411)](e)}static[h(417)](){const t=h;return{url:this[t(367)]("location",{href:""})[t(384)],title:this.getDocumentProperty(t(419),""),referrer:this.getDocumentProperty(t(439),"")}}static getViewportInfo(){const t=h;return{width:this[t(367)]("innerWidth",0),height:this[t(367)]("innerHeight",0),pixelRatio:this[t(367)](t(423),1)}}static[h(405)](){const t=h;return{scrollTop:this[t(395)]()?window[t(406)]||document[t(394)][t(436)]:0,scrollLeft:this.getWindowProperty(t(407),0)}}static async[h(441)](t,e={}){const n=h,{timeout:r=3e3,retryInterval:s=100,debug:o=!1}=e;if(!this[n(395)]())throw new Error(n(374));const i=document[n(383)](t);return i?(o&&console[n(440)](n(369)+t),i):(o&&console[n(440)]("⏳ 컨테이너 대기 시작: "+t+" (최대 "+r+n(413)),new Promise((e,i)=>{const a=n;let c=0;const l=Math[a(433)](r/s),d=()=>{const n=a;c++;const u=document[n(383)](t);if(u)return o&&console[n(440)](n(370)+t+" ("+c+n(371)+c*s+n(390)),void e(u);if(c>=l){const e=n(428)+t+n(431)+t+n(396)+r+n(397)+c+n(415);return o&&console.error(e),void i(new Error(e))}o&&c%10==0&&console[n(440)](n(410)+t+" ("+c+"/"+l+")");const p=Math.min(s*Math.pow(1.2,c),500);setTimeout(d,p)};setTimeout(d,s)}))}static async[h(366)](t,e={}){const n=h,r=t[n(386)](t=>this[n(441)](t,e));return Promise[n(408)](r)}}function g(t,e){const n=m();return(g=function(t,e){return n[t-=364]})(t,e)}function m(){const t=["log","waitForElement","safeQuerySelector","isSSR","waitForElements","getWindowProperty","addEventListener","✅ 컨테이너 즉시 발견: ","✅ 컨테이너 발견: ","번째 시도, ","createElement","1109232NQKfim","DOM을 사용할 수 없는 환경입니다.","safeAppendChild","isDOMReady","1017SrUZPo","removeEventListener","forEach","222932uxjUcB","querySelectorAll","add","getElementById","href","waitForDOM","map","safeRemoveEventListener","14MGlitj","setProperty","ms 경과)","safeWindowOpen","safeRemoveClass","readyState","documentElement","canUseDOM",'" 요소가 있는지 확인\n2. React 등에서 컴포넌트가 렌더링된 후 SDK 호출\n3. 철자가 정확한지 확인\n4. 중복된 ID가 없는지 확인\n\n대기 시간: ',"ms (","loading","style","safeAddEventListener","safeGetElementById","getDocumentProperty","safeGetComputedStyle","safeApplyStyles","getScrollInfo","pageYOffset","pageXOffset","all","741612haWTje","⏳ 컨테이너 대기 중: ","removeChild","3118884EWlpAp","ms)","safeSetTextContent","번 시도)","5GPkQSW","getPageInfo","72fXWjoF","title","classList","safeCreateElement","textContent","devicePixelRatio","224862POKQkj","127787YROkDU","isBrowser","open",'❌ 컨테이너를 찾을 수 없습니다: "',"remove","querySelector",'"\n \n다음을 확인해보세요:\n1. HTML에 id="',"safeQuerySelectorAll","ceil","7430nqvqln","undefined","scrollTop","2vUolba","DOMContentLoaded","referrer"];return(m=function(){return t})()}const I=w;!function(){const t=w,e=v();for(;;)try{if(512140===-parseInt(t(497))/1+-parseInt(t(496))/2+-parseInt(t(498))/3*(parseInt(t(499))/4)+parseInt(t(494))/5+-parseInt(t(504))/6*(parseInt(t(505))/7)+parseInt(t(502))/8+parseInt(t(503))/9*(parseInt(t(493))/10))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const y=I(500);function v(){const t=["AdStageSDK/","3196136HScust","117NSVIab","246CLHLxA","117285TkFzrn","1298390VEPShB","3598410FtGMmb","userAgent","89436hZTPCR","936555ATtUTQ","1869qFjMcw","4024fnvKBh",'"3.0.7"'];return(v=function(){return t})()}function b(){return y}function w(t,e){const n=v();return(w=function(t,e){return n[t-=493]})(t,e)}function k(){const t=["340863zDqyjj","2368705bPeGBt","connection","adstage_session_id","timeZone","getViewportInfo","getPlatform","generateDeviceId","scrollTop","now","substr","setItem","random","test","5126860FiDDgD","top","getItem","session_","5708178YGcdGS","4IsRjIi","android","getScrollInfo","isMobile","unknown","4mBoiDj","safeGetElementById","desktop","adstage_device_id","width","getSlotPosition","colorDepth","6822Udjdyz","toString","SSR","6016KXHHpy","12heGXBZ","round","userAgent","device_","ios","collectDeviceInfo","effectiveType","162423ysmyaO","isBrowser","23453474ZTCGtg",",y:","web","12VqbpvW","height","platform","getBoundingClientRect","1.0.0","UTC"];return(k=function(){return t})()}const E=S;function S(t,e){const n=k();return(S=function(t,e){return n[t-=468]})(t,e)}!function(){const t=S,e=k();for(;;)try{if(523093===parseInt(t(499))/1*(parseInt(t(481))/2)+-parseInt(t(510))/3*(parseInt(t(476))/4)+parseInt(t(511))/5*(-parseInt(t(504))/6)+-parseInt(t(475))/7+parseInt(t(491))/8*(-parseInt(t(488))/9)+parseInt(t(471))/10+parseInt(t(501))/11*(parseInt(t(492))/12))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class x{static generateDeviceId(){const t=S;if(!f.isBrowser())return"ssr_device_"+Date[t(519)]();const e=localStorage[t(473)](t(484));if(e)return e;const n=t(495)+Math[t(469)]()[t(489)](36)[t(520)](2,9)+"_"+Date[t(519)]();return localStorage[t(468)](t(484),n),n}static generateSessionId(){const t=S;if(!f[t(500)]())return"ssr_session_"+Date[t(519)]();const e=sessionStorage.getItem(t(513));if(e)return e;const n=t(474)+Math[t(469)]()[t(489)](36).substr(2,9)+"_"+Date[t(519)]();return sessionStorage[t(468)]("adstage_session_id",n),n}static[E(479)](){const t=E;return!!f[t(500)]()&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i[t(470)](navigator[t(494)])}static getPlatform(){const t=E;if(!f[t(500)]())return t(503);const e=navigator[t(494)].toLowerCase();return/iphone|ipad|ipod/[t(470)](e)?t(496):/android/[t(470)](e)?t(477):x.isMobile()?t(503):t(483)}static[E(497)](){const t=E,e=f[t(515)]();return{deviceId:x[t(517)](),sessionId:x.generateSessionId(),osVersion:f[t(500)]()?navigator[t(506)]:"SSR",deviceModel:f.isBrowser()?navigator.platform:"SSR",appVersion:t(508),sdkVersion:b(),language:f[t(500)]()&&navigator.language||"ko",country:"KR",ipAddress:"",userAgent:f[t(500)]()?navigator.userAgent:t(490),timezone:f[t(500)]()?Intl.DateTimeFormat().resolvedOptions()[t(514)]:t(509),viewportWidth:e[t(485)],viewportHeight:e[t(505)],screenWidth:f[t(500)]()?screen[t(485)]:0,screenHeight:f[t(500)]()?screen[t(505)]:0,colorDepth:f[t(500)]()?screen[t(487)]:24,pixelRatio:e.pixelRatio,connectionType:f.isBrowser()&&navigator[t(512)]?.[t(498)]||t(480),platform:x[t(516)]()}}static[E(486)](t){const e=E,n=f[e(482)](t);if(!n)return e(480);const r=n[e(507)](),s=f[e(478)]();return"x:"+Math[e(493)](r.left)+e(502)+Math[e(493)](r[e(472)]+s[e(518)])}}function A(){const t=["82206FziQaB","450AjbWfv","3610198cZmjnu","133452NLiVPR","238aOXKHx","8335629RMXcMc","userAgent","3ahoCTJ","3495044bikqCL","contentType","8OSPxiA","undefined","User-Agent","8135060cVRWoY","1552543FPBFKm","application/json"];return(A=function(){return t})()}function C(t,e){const n=A();return(C=function(t,e){return n[t-=252]})(t,e)}!function(){const t=C,e=A();for(;;)try{if(920214===-parseInt(t(253))/1+parseInt(t(257))/2+-parseInt(t(262))/3*(parseInt(t(263))/4)+parseInt(t(252))/5+parseInt(t(255))/6*(-parseInt(t(259))/7)+parseInt(t(265))/8*(parseInt(t(260))/9)+-parseInt(t(256))/10*(parseInt(t(258))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class T{static create(t,e){const n=C;if(!t)throw new Error("API key is required");const r={"x-api-key":t,"Content-Type":e?.[n(264)]||n(254)};return typeof navigator!==n(266)&&(r["User-Agent"]=e?.[n(261)]||navigator[n(261)]),r}static createForEvents(t,e){const n=C,r=T.create(t);return e?.[n(261)]&&(r[n(267)]=e[n(261)]),r}}function R(t,e){const n=_();return(R=function(t,e){return n[t-=203]})(t,e)}function _(){const t=["🚀 AdvertisementEventTracker: Processing ","parseNumericValue","/advertisements/events/","...","358636QrGiTM","269wNICHd","log","substring","❌ Failed to track advertisement event:",". Skipping event tracking to prevent incorrect adType.","🌐 Full API call details:","🔍 Debug info:","56676frhnSF","baseUrl","apiKey","number","deviceId","createForEvents","4867210eKPOyn","4223422xsZbKA","referrer","adType","API request failed: ","replace","title","⚠️ Slot not found for slotId: ","🚀 Sending advertisement event: ","stringify"," event for ad "," in slot ","now","slots","5214987afZafi","getPageInfo","debug","status","3QwvVYf","2672488lFfTfK","POST"," - ","statusText","warn","collectDeviceInfo","trackAdvertisementEvent","get","width","containerId","📡 API Response Status: ","1402qpviqf","platform","string"," for ad ","error","45JKwjzg"];return(_=function(){return t})()}const D=R;!function(){const t=R,e=_();for(;;)try{if(369777===parseInt(t(211))/1*(parseInt(t(254))/2)+-parseInt(t(242))/3*(-parseInt(t(210))/4)+-parseInt(t(205))/5*(parseInt(t(218))/6)+parseInt(t(225))/7+-parseInt(t(243))/8+-parseInt(t(238))/9+parseInt(t(224))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class B{constructor(t,e,n,r){const s=R;this[s(219)]=t,this[s(220)]=e,this.debug=n,this[s(237)]=r}async[D(249)](t,e,n){const r=D;try{this[r(240)]&&console[r(212)](r(206)+n+r(234)+t+r(235)+e);const s=this[r(237)][r(250)](e);if(!s)return void(this[r(240)]&&console[r(247)](r(231)+e+r(215)));const i=x[r(248)](),a={adType:s[r(227)],platform:i[r(255)],deviceId:i[r(222)],deviceInfo:i,pageUrl:f.getPageInfo().url,pageTitle:f.getPageInfo()[r(230)],referrer:f[r(239)]()[r(226)],slotId:e,slotPosition:x.getSlotPosition(s[r(252)]),slotWidth:B[r(207)](s[r(251)]),slotHeight:B[r(207)](s.height),sessionId:i.sessionId,pageLoadTime:performance.now(),metadata:{eventType:n,sdkVersion:b(),timestamp:Date[r(236)]()},...n===o.VIEWABLE&&{isViewable:!0,iabCompliant:!0}},c=this[r(219)]+r(208)+t+"/"+n,l=T[r(223)](this.apiKey,a);this[r(240)]&&(console.log(r(232)+n+r(203)+t,{url:c,headers:l,eventData:a}),console[r(212)](r(216),{method:r(244),url:c,hasApiKey:!!this.apiKey,bodySize:JSON[r(233)](a).length}));const d=await fetch(c,{method:r(244),headers:l,body:JSON[r(233)](a)});if(this[r(240)]&&console[r(212)](r(253)+d[r(241)]+" "+d[r(246)],{url:c,ok:d.ok}),!d.ok){const t=await d.text();throw new Error(r(228)+d[r(241)]+" "+d.statusText+r(245)+t)}this[r(240)]&&console[r(212)]("✅ Successfully tracked advertisement event: "+n+r(203)+t)}catch(s){console[r(204)](r(214),s),console[r(204)](r(217),{baseUrl:this[r(219)],apiKey:this[r(220)]?this[r(220)][r(213)](0,8)+r(209):"NOT_SET",url:this[r(219)]+r(208)+t+"/"+n,eventType:n,adId:t,slotId:e})}}static parseNumericValue(t){const e=D;if(typeof t===e(221))return t;if(typeof t===e(256)){const n=parseFloat(t[e(229)](/px$/,""));return isNaN(n)?0:n}return 0}}var P=z;!function(){for(var t=z,e=U();;)try{if(146789===-parseInt(t(234))/1+parseInt(t(231))/2+parseInt(t(252))/3+parseInt(t(232))/4+parseInt(t(244))/5*(parseInt(t(242))/6)+-parseInt(t(238))/7*(-parseInt(t(247))/8)+-parseInt(t(254))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class L{constructor(t,e){var n=z;this[n(236)]=null,this.isViewableTriggered=!1,this.element=t,this[n(248)]=e,this.initIntersectionObserver()}initIntersectionObserver(){var t=z;t(245)in window?(this.observer=new IntersectionObserver(e=>this[t(250)](e),{threshold:.5,rootMargin:"0px"}),this[t(236)][t(240)](this[t(249)])):console[t(233)](t(243))}[P(250)](t){var e=P;t[e(239)](t=>{var n=e;t[n(241)]>=.5&&this[n(253)]()&&!this.isViewableTriggered&&(this[n(235)]=!0,this[n(248)]&&this[n(248)]())})}[P(253)](){var t=P;return!document.hidden&&document[t(251)]===t(230)}[P(237)](){var t=P;this[t(236)]&&(this[t(236)][t(246)](),this[t(236)]=null)}}function z(t,e){var n=U();return(z=function(t,e){return n[t-=230]})(t,e)}function U(){var t=["handleIntersection","visibilityState","347598OVJHpL","isDocumentVisible","2495205iGgpvU","visible","60358Doxqzo","240628hoJPpk","warn","199256wzIXyr","isViewableTriggered","observer","destroy","1768011kfzBMT","forEach","observe","intersectionRatio","30FKzWHe","IntersectionObserver not supported, viewability tracking disabled","164515IiuCSC","IntersectionObserver","disconnect","8kdxMGF","onViewableCallback","element"];return(U=function(){return t})()}const M=O;function O(t,e){const n=V();return(O=function(t,e){return n[t-=256]})(t,e)}!function(){const t=O,e=V();for(;;)try{if(894644===-parseInt(t(261))/1*(-parseInt(t(266))/2)+parseInt(t(270))/3*(parseInt(t(263))/4)+parseInt(t(278))/5+parseInt(t(257))/6+parseInt(t(272))/7*(-parseInt(t(260))/8)+-parseInt(t(274))/9+-parseInt(t(265))/10*(parseInt(t(277))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const N={production:"https://api.adstage.app",beta:"https://beta-api.adstage.app"};M(279);const F={advertisements:{list:M(273),detail:"/advertisements",events:M(271)},events:{track:M(276)}};function V(){const t=["events","93pcicGN","/advertisements/events","37261DVXDpN","/advertisements/list","1798452fEhzkV","track","/events/track","9265069CUXDgK","7182150PgmAGD","production","advertisements","custom","3476742QsiVss","detail","startsWith","1840ngavrz","7SpaTuE","baseUrl","95932tXzSpf","getBaseUrl","10VIZILD","114766mSMzEd","setBaseUrl","list"];return(V=function(){return t})()}class j{constructor(t){const e=M;this.advertisements={list:()=>""+this[e(262)]+F[e(280)][e(268)],detail:t=>""+this[e(262)]+F.advertisements[e(258)]+"/"+t,events:(t,n)=>""+this[e(262)]+F.advertisements[e(269)]+"/"+t+"/"+n},this[e(269)]={track:()=>""+this[e(262)]+F[e(269)][e(275)]},this[e(262)]=t||N.production}[M(267)](t){this[M(262)]=t}[M(264)](){return this[M(262)]}[M(256)](t){const e=M;return""+this[e(262)]+(t[e(259)]("/")?t:"/"+t)}}const K=new j;function H(t,e){var n=X();return(H=function(t,e){return n[t-=113]})(t,e)}var W=H;function X(){var t=["11431488fFmgAl","150NxnNfu","640658WzaMsZ","6858414bIhIYv","trackInitialSlideViewable","🎯 Triggering VIEWABLE event for slide change: ad ","116944FmzgUQ","316598JpJjKs"," (index: ","log","trackSlideViewable","VIEWABLE","1699978fLgSoK","313158GRsjyP"];return(X=function(){return t})()}!function(){for(var t=H,e=X();;)try{if(710758===-parseInt(t(124))/1+-parseInt(t(119))/2+-parseInt(t(116))/3+parseInt(t(123))/4*(-parseInt(t(118))/5)+parseInt(t(120))/6+-parseInt(t(115))/7+parseInt(t(117))/8)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class q{static[W(113)](t,e,n,r,s=!1){var i=W;s&&console[i(126)](i(122)+t._id+i(125)+n+") in slot: "+e.id),r(t._id,e.id,o[i(114)])}static[W(121)](t,e,n,r=!1){var s=W;r&&console[s(126)]("🎯 Triggering initial VIEWABLE event: ad "+t._id+" (index: 0) in slot: "+e.id),n(t._id,e.id,o[s(114)])}}function G(t,e){const n=Q();return(G=function(t,e){return n[t-=449]})(t,e)}const Z=G;!function(){const t=G,e=Q();for(;;)try{if(228014===parseInt(t(450))/1+parseInt(t(464))/2*(parseInt(t(477))/3)+-parseInt(t(478))/4*(-parseInt(t(469))/5)+-parseInt(t(452))/6+parseInt(t(467))/7*(-parseInt(t(454))/8)+-parseInt(t(465))/9+parseInt(t(451))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class J{static[Z(449)](t,e,n,r,s=!1,i){const a=Z;e[a(453)]&&(t[a(466)][a(472)]=a(462),t[a(468)](a(476),t=>{const c=a;if(t[c(480)](),t[c(458)](),r&&r(e[c(460)],n.id,o.CLICK),window[c(457)](e[c(453)],"_blank"),s){const t=i||String(n[c(479)])[c(474)]();console.log("🔗 "+t+" ad clicked: "+e._id+c(459)+e[c(453)])}}))}static[Z(455)](t,e,n,r,s=!1,i){const a=Z;e[a(453)]&&(t.style.cursor="pointer",t[a(468)](a(476),t=>{const c=a;t[c(480)](),t.stopPropagation();if(r()(e[c(460)],n.id,o.CLICK),window[c(457)](e[c(453)],c(461)),s){const t=i||String(n[c(479)])[c(474)]();console[c(470)](c(456)+t+c(471)+e[c(460)]+c(459)+e.linkUrl)}}))}static[Z(473)](t,e,n,r,s=!1,o){this.addClickEvent(t,e,n,r,s,o)}static isClickable(t){return Boolean(t[Z(453)])}static[Z(463)](t,e,n,r,s=!1,o){const i=Z;t[i(475)]((t,a)=>{const c=i,l=e[a];l&&this[c(449)](t,l,n,r,s,o)})}}function Q(){const t=["1750554aoIjYX","linkUrl","176jldRRz","addClickEventForRenderer","🔗 ","open","stopPropagation"," -> ","_id","_blank","pointer","addClickEventsBatch","258532MQrtWh","652932QaXvyV","style","91525VzluXr","addEventListener","35jbGkEK","log"," ad clicked: ","cursor","addClickEventForSlider","toLowerCase","forEach","click","9iWlQTJ","38020TtCVQU","adType","preventDefault","addClickEvent","286307uvjObU","1393310jSUCYI"];return(Q=function(){return t})()}const Y=$;function $(t,e){const n=tt();return($=function(t,e){return n[t-=256]})(t,e)}function tt(){const t=["every","addEventListener","1467270dLxbUD","normal","adstage-ad adstage-","50px","Text Ad","6RXvuSN","removeChild","1px solid #666","inline-block","length","BANNER","entries","imageUrl",".adstage-dot","\n position: absolute;\n bottom: 15px;\n left: 50%;\n transform: translateX(-50%);\n display: flex;\n gap: 12px;\n z-index: 3;\n padding: 8px 16px;\n border-radius: 20px;\n background: rgba(255, 255, 255, 0.1);\n backdrop-filter: blur(10px);\n ","2358808mPYyjP","toLowerCase","_id","touchstart","#666666","contains","borderColor","1px dashed #ccc","display","2105708fCAEpd","3oKLsKB","border","setProperty","touchmove","data-adstage-ad-id","9JtOaMH","color","objectFit","data-adstage-slot-id","div","includes","TEXT","trackSlideViewable","transform 0.4s ease-out","body","100px","className","8px","abs","querySelectorAll","0.9","\n position: absolute;\n visibility: hidden;\n white-space: nowrap;\n top: -9999px;\n left: -9999px;\n ","0.7","opacity","video","img","src","textContent","background","Video Ad","#999999","hidden","3493855AegSau","adstage-dot","14px","createSimpleAdElement","auto","whiteSpace","200px","height","clientX","appendChild","addTouchSupport","videoUrl","1154054ObsFNf"," Ad","remove","100%","Banner Ad","mouseleave","#f9f9f9","cover","style","createElement","preventDefault","center","click","#000","transition","children","touchend","active","width","2295769wnghHV","add","autoSlideInterval","classList","createSliderContainer","mouseenter","transform","backgroundColor","string","createMinimalDotIndicator","\n width: 8px;\n height: 8px;\n border-radius: 50%;\n border: 1px solid #cccccc;\n background: transparent;\n cursor: pointer;\n transition: all 0.3s ease;\n outline: none;\n opacity: 0.7;\n padding: 0;\n margin: 0;\n flex-shrink: 0;\n ","adType","forEach","flex","translateX(-","327410JjZMid"];return(tt=function(){return t})()}!function(){const t=$,e=tt();for(;;)try{if(500604===-parseInt(t(280))/1+parseInt(t(352))/2*(-parseInt(t(308))/3)+parseInt(t(307))/4+-parseInt(t(340))/5*(-parseInt(t(288))/6)+parseInt(t(265))/7+parseInt(t(298))/8*(-parseInt(t(313))/9)+parseInt(t(283))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class et{static[Y(343)](e,n){const r=Y,s=document[r(361)](r(317));switch(s[r(324)]=r(285)+String(e[r(276)])[r(299)](),s.setAttribute(r(312),n[r(300)]),s.setAttribute(r(316),e.id),s.style[r(306)]="block",s[r(360)][r(264)]="100%",s.style[r(347)]=r(344),e[r(276)]){case t[r(293)]:if(n[r(295)]){const t=document.createElement(r(333));t[r(334)]=n.imageUrl,t[r(360)].width=r(355),t[r(360)][r(347)]=r(344),t.style[r(315)]=r(359),s[r(349)](t)}else s[r(360)][r(347)]=r(323),s[r(360)][r(272)]="#f0f0f0",s.style[r(309)]="1px dashed #ccc",s[r(335)]=r(356);break;case t.VIDEO:if(n[r(351)]){const t=document.createElement(r(332));t[r(334)]=n[r(351)],t[r(360)][r(264)]=r(355),t.style[r(347)]=r(344),s[r(349)](t)}else s.style[r(347)]=r(346),s[r(360)][r(272)]=r(259),s[r(360)][r(309)]=r(290),s[r(335)]=r(337),s.style[r(314)]="white";break;case t[r(319)]:if(n[r(335)]){const t=document[r(361)]("div");t[r(335)]=n.textContent||"",t[r(360)].padding=r(325),t[r(360)].fontSize=r(342),s[r(349)](t)}else s.style[r(347)]=r(286),s[r(360)].padding="8px",s.textContent=r(287);break;default:s[r(360)][r(347)]=r(323),s.style[r(309)]=r(305),s[r(360)].backgroundColor=r(358),s[r(335)]=e[r(276)]+r(353)}return s}static[Y(269)](e,n,r,s,o=!1){const i=Y,a=document[i(361)](i(317));a[i(324)]="adstage-slider-wrapper";const c={position:"relative",overflow:i(339)};if(e[i(264)]&&0!==e[i(264)]){let t;t=typeof e[i(264)]===i(273)&&(e[i(264)][i(318)]("px")||e[i(264)].includes("%"))?e[i(264)]:e[i(264)]+"px",c[i(264)]=t,c[i(306)]=i(291)}else c[i(306)]=i(291);if(e[i(347)]&&0!==e.height){const t=typeof e[i(347)]===i(273)?e[i(347)]:e[i(347)]+"px";c[i(347)]=t}Object[i(294)](c).forEach(([t,e])=>{a.style.setProperty(t,e)});const l=!e[i(264)]||0===e[i(264)],d=!e[i(347)]||0===e[i(347)];if(l||d){const t=document[i(361)](i(317));if(t[i(360)].cssText=i(329),!l&&e.width){let n;n=typeof e[i(264)]===i(273)&&(e[i(264)][i(318)]("px")||e.width[i(318)]("%"))?e[i(264)]:e[i(264)]+"px",t[i(360)][i(264)]=n,t[i(360)][i(345)]=i(284)}document[i(322)][i(349)](t);let r=0,s=0;n[i(277)](n=>{const o=i,a=this[o(343)](e,n);t[o(349)](a);const c=a.getBoundingClientRect();c[o(264)]>r&&(r=c[o(264)]),c[o(347)]>s&&(s=c.height),t[o(289)](a)}),l&&r>0&&(a[i(360)][i(264)]=r+"px",c[i(264)]=r+"px"),d&&s>0&&(a[i(360)][i(347)]=s+"px",c[i(347)]=s+"px"),document[i(322)][i(289)](t)}const u=[...n,n[0]],p=document[i(361)]("div");p[i(324)]="adstage-slide-container";const h={display:i(278),transition:i(321),width:100*u[i(292)]+"%"};e[i(347)]&&0!==e[i(347)]&&(h[i(347)]=i(355)),Object[i(294)](h)[i(277)](([t,e])=>{const n=i;p[n(360)][n(310)](t,e)}),u.forEach((t,n)=>{const r=i,a=document.createElement(r(317));a[r(324)]="adstage-slide";const c={width:100/u.length+"%","flex-shrink":"0",display:"flex","align-items":"center","justify-content":r(257)};e[r(347)]&&0!==e[r(347)]&&(c.height=r(355)),Object.entries(c).forEach(([t,e])=>{const n=r;a[n(360)][n(310)](t,e)});const l=this.createSimpleAdElement(e,t);J.addClickEventForSlider(l,t,e,s,o,String(e[r(276)])[r(299)]()),a[r(349)](l),p[r(349)](a)});const f=n[i(281)](e=>e[i(276)]===t[i(319)])?null:this.createMinimalDotIndicator(n[i(292)]);let g=0;const m=n[i(292)],I=1e3*(r?.[i(267)]||3),y=(t,r=!1)=>{const a=i;g=t,r?p[a(360)][a(260)]="none":p.style[a(260)]=a(321),p[a(360)][a(271)]=a(279)+100/u[a(292)]*g+"%)";const c=g===m?0:g;if(f){f[a(327)](a(296))[a(277)]((t,e)=>{const n=a,r=t;e===c?(r[n(268)][n(266)](n(263)),r.style[n(336)]=n(302),r.style[n(304)]=n(302),r[n(360)][n(331)]="1"):(r.classList[n(354)](n(263)),r[n(360)][n(336)]="transparent",r[n(360)][n(304)]="#cccccc",r[n(360)][n(331)]=n(330))})}q[a(320)](n[c],e,c,s,o)},v=()=>{g===m&&setTimeout(()=>{y(0,!0)},400)};if(f){f[i(327)](i(296))[i(277)]((t,e)=>{const n=i;t[n(282)](n(258),()=>y(e))})}let b=setInterval(()=>{y(g+1),v()},I);return a.addEventListener(i(270),()=>{clearInterval(b)}),a.addEventListener(i(357),()=>{b=setInterval(()=>{y(g+1),v()},I)}),this.addTouchSupport(p,y,()=>g,m,v),a[i(349)](p),f&&a[i(349)](f),y(0),(!e.width||0===e[i(264)])&&setTimeout(()=>{const t=i,n=p[t(261)][0];if(n){const r=n[t(261)][0];if(r){const n=r.getBoundingClientRect();a[t(360)][t(264)]=n[t(264)]+"px",(!e[t(347)]||0===e[t(347)])&&(a[t(360)].height=n[t(347)]+"px"),a[t(360)].overflow=t(339)}}},10),a}static[Y(274)](t){const e=Y,n=document.createElement(e(317));n[e(324)]="adstage-dots",n.style.cssText=e(297);for(let r=0;r<t;r++){const t=document[e(361)]("button");t[e(324)]=e(341),t.style.cssText=e(275),t[e(282)](e(270),()=>{const n=e;!t[n(268)][n(303)](n(263))&&(t[n(360)][n(304)]=n(338),t[n(360)][n(331)]=n(328))}),t[e(282)](e(357),()=>{const n=e;!t[n(268)].contains(n(263))&&(t[n(360)][n(304)]="#cccccc",t[n(360)][n(331)]=n(330))}),n[e(349)](t)}return n}static[Y(350)](t,e,n,r,s){const o=Y;let i=0,a=!1;t[o(282)](o(301),t=>{i=t.touches[0].clientX,a=!0}),t[o(282)](o(311),t=>{a&&t[o(256)]()}),t[o(282)](o(262),t=>{const c=o;if(!a)return;a=!1;const l=t.changedTouches[0][c(348)],d=i-l;if(Math[c(326)](d)>50){const t=n();if(d>0){e(t+1),s&&s()}else{e(t>0?t-1:r-1)}}})}}const nt=st;function rt(){const t=["35PgCxdZ","819xXkyUA","add","✅ New viewable recorded for ad ","log","delete","isDuplicateViewable"," in slot ","2916550Ujipnm","666ukyCcF","clearAdViewable","24712wFPhhW","21ZHBRsD","35572mhDZTS","12qxbWPO","clear","245428MeNnew","57190GgrxXi","viewableTracker","5073310MxqWLM","17238386FXdNkZ"];return(rt=function(){return t})()}function st(t,e){const n=rt();return(st=function(t,e){return n[t-=334]})(t,e)}!function(){const t=st,e=rt();for(;;)try{if(672365===-parseInt(t(349))/1*(parseInt(t(341))/2)+parseInt(t(340))/3*(parseInt(t(344))/4)+-parseInt(t(336))/5+-parseInt(t(337))/6*(parseInt(t(345))/7)+parseInt(t(339))/8*(parseInt(t(350))/9)+parseInt(t(347))/10+-parseInt(t(348))/11*(-parseInt(t(342))/12))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class ot{static[nt(334)](t,e,n=!1){const r=nt,s=t+"_"+e;return ot.viewableTracker.has(s)?(n&&console[r(353)]("Duplicate viewable blocked for ad "+t+" in slot "+e),!0):(ot[r(346)][r(351)](s),n&&console.log(r(352)+t+r(335)+e),!1)}static[nt(343)](){ot.viewableTracker.clear()}static[nt(338)](t,e){const n=nt,r=t+"_"+e;ot[n(346)][n(354)](r)}}ot.viewableTracker=new Set;const it=ct;function at(){const t=[" event","setAttribute"," ad...</span>","fontFamily",'[data-adstage-container="true"]',"1585514TOGbzX","border","minimal","<span>Loading ","createEventTrackingCallback",".adstage-","347334qSbtNT","subtle",") - Mode: ","100%","log","block","opacity","alignItems","4191624ISEwKH","hasAttribute","true","width","⚠️ AdvertisementEventTracker not available for ","borderRadius","fontSize","#666","closest",'[class*="ad"]',"transparent"," x ","1016832PNXTJo","📏 Using default height ","rgba(0, 0, 0, 0.02)","display","innerHTML","minHeight","getComputedStyle","1px solid rgba(0, 0, 0, 0.08)","createPlaceholder","adType","justifyContent","querySelector","parentElement",'[class*="container"]',"debug","calculateAdSize","renderFallback","40XejHUg","adstage-class","isEmpty","✅ New viewable recorded for ad ","backgroundColor","❌ Failed to track ","1px dashed #ccc","data-adstage-empty","#e74c3c","unknown","6px","adstage-slot adstage-"," in slot "," container: ","advertisement","createElement","monospace","string","data-adstage-slot","toLowerCase","cssText",".adstage-slot","contains","getDefaultHeight",'[class*="banner"]',"data-adstage-container","advertisementEventTracker","containerId","flex"," container collapsed (","12ZYcIYy","adstage-slot adstage-empty adstage-","center","warn","number","color","52712wBHIys",'<span style="color: rgba(0, 0, 0, 0.3); font-size: 11px; font-family: sans-serif;">•••</span>',"getAttribute","height","trackAdvertisementEvent",'div[style*="min-height"]',"🔄 Starting advertisement event tracking: ","4px","getContainerHeight","generic","2px dashed #e74c3c","9RKnsoL","filter"," for ad ","placeholderMode","appendChild","style","728129IICmAD","adstage-slot","): ","createEmptyContainer","applyPlaceholderStyle","#f9f9f9","classList","none","getElementById","992470dNvhcb","📊 Advertisement event tracked: ","className","rgba(231, 76, 60, 0.1)"," event for ad ","px)","11px"];return(at=function(){return t})()}function ct(t,e){const n=at();return(ct=function(t,e){return n[t-=437]})(t,e)}!function(){const t=ct,e=at();for(;;)try{if(407957===parseInt(t(446))/1+parseInt(t(473))/2*(parseInt(t(440))/3)+parseInt(t(546))/4*(parseInt(t(510))/5)+-parseInt(t(540))/6*(parseInt(t(467))/7)+-parseInt(t(493))/8+-parseInt(t(481))/9+parseInt(t(455))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class lt{constructor(t,e=!1,n){const r=ct;this[r(502)]=t,this[r(507)]=e,this[r(536)]=n||null}[it(501)](t,e,n,r){const s=it,o=document[s(525)]("div");o.id=e,o[s(457)]=s(521)+String(this[s(502)])[s(529)](),o[s(463)](s(535),s(483)),o[s(463)]("data-adstage-type",String(this[s(502)])),o[s(463)](s(528),e);const{width:i,height:a}=this[s(508)](t,n,r)||{width:"100%",height:this[s(533)]()};o[s(445)][s(484)]=i,o[s(445)][s(549)]=a;const c=r?.[s(443)]||n.placeholderMode||"invisible";this.applyPlaceholderStyle(o,c),t[s(444)](o),this[s(507)]&&console[s(477)]("📦 Placeholder created for "+this.adType+" slot: "+e+" ("+i+s(492)+a+s(475)+c)}[it(450)](t,e){const n=it;switch(e){case"invisible":t[n(445)][n(514)]=n(491),t.style[n(468)]="none",t[n(445)][n(479)]="0",t[n(497)]="";break;case"transparent":t[n(445)].backgroundColor="transparent",t[n(445)][n(468)]=n(453),t[n(445)][n(496)]=n(478),t[n(497)]="";break;case n(474):t.style.backgroundColor=n(495),t.style[n(468)]=n(453),t.style[n(486)]=n(553),t[n(445)][n(496)]=n(538),t.style[n(480)]=n(542),t[n(445)][n(503)]="center",t[n(497)]=n(547);break;case n(469):t[n(445)][n(514)]="rgba(248, 249, 250, 0.5)",t[n(445)][n(468)]=n(500),t[n(445)][n(486)]=n(520),t[n(445)][n(496)]=n(538),t[n(445)][n(480)]="center",t[n(445)][n(503)]=n(542),t[n(497)]='<span style="color: rgba(0, 0, 0, 0.4); font-size: 12px; font-family: -apple-system, sans-serif;">•••</span>';break;case"debug":t.style[n(468)]=n(439),t[n(445)].display=n(538),t[n(445)][n(480)]=n(542),t[n(445)][n(503)]=n(542),t[n(445)][n(514)]=n(458),t[n(445)][n(545)]=n(518),t[n(445)][n(465)]=n(526),t[n(445)][n(487)]=n(461),t[n(497)]=n(470)+this[n(502)]+" ad...</span>";break;default:t.style[n(468)]=n(516),t[n(445)][n(496)]=n(538),t.style[n(480)]="center",t.style.justifyContent="center",t[n(445)][n(514)]=n(451),t[n(445)][n(545)]=n(488),t[n(497)]="<span>Loading "+this[n(502)]+n(464)}}[it(508)](t,e,n){const r=it,s=e[r(484)],o=e[r(549)];let i,a;if(i=typeof s===r(544)?s+"px":typeof s===r(527)?s:r(476),typeof o===r(544))a=o+"px";else if(typeof o===r(527)&&o!==r(476)&&"auto"!==o)a=o;else{const e=this.getContainerHeight(t);e>0?(a="100%",(n?.[r(507)]||this.debug)&&console.log("📏 Using 100% height (container: "+e+r(460))):(a=this[r(533)](),(n?.[r(507)]||this[r(507)])&&console[r(477)](r(494)+a+" for "+this[r(502)]))}return{width:i,height:a}}[it(437)](t){const e=it,n=window[e(499)](t),r=parseFloat(n[e(549)]);if(!r||0===r){const r=parseFloat(n[e(498)]);if(r>0)return r;if(t[e(445)][e(549)]&&"auto"!==t.style[e(549)]){const n=parseFloat(t.style[e(549)]);if(n>0)return n}const s=t[e(548)]("height");if(s){const t=parseFloat(s);if(t>0)return t}}return r||0}[it(471)](){return async(t,e,n)=>{const r=ct;if(n===o.VIEWABLE){if(ot.isDuplicateViewable(t,e,this[r(507)]))return void(this[r(507)]&&console[r(477)]("🚫 Duplicate viewable blocked for ad "+t+r(522)+e));this[r(507)]&&console[r(477)](r(513)+t+" in slot "+e)}if(this[r(536)])try{this.debug&&console[r(477)](r(552)+n+r(442)+t+r(522)+e),await this[r(536)][r(550)](t,e,n),this[r(507)]&&console[r(477)](r(456)+n+r(442)+t+" in slot "+e)}catch(e){this[r(507)]&&console.error(r(515)+n+r(459)+t+":",e)}else this[r(507)]&&console[r(543)](r(485)+n+r(462))}}[it(509)](t){const e=it,n=document[e(454)](t.id);if(n){const r=[...[n[e(504)](e(466)),n[e(489)](e(466)),n][e(441)](t=>t&&t[e(482)](e(535))),...[n[e(489)](e(531)),n.closest(e(472)+String(this[e(502)])[e(529)]()),n[e(489)](e(490)),n.closest(e(534)),n[e(489)](e(506)),n[e(489)]('div[style*="height"]'),n.closest(e(551)),n[e(505)]].filter(Boolean)][0];if(r){let n=e(519);n=r.hasAttribute(e(535))?"adstage-official":r[e(452)][e(532)](e(447))?e(511):e(438),r[e(445)][e(530)]+="\n height: 0px !important;\n min-height: 0px !important;\n padding: 0px !important;\n margin: 0px !important;\n border: none !important;\n overflow: hidden !important;\n display: block !important;\n ",r[e(497)]="",r[e(463)](e(517),e(483)),this[e(507)]&&console[e(543)]("⚠️ "+this[e(502)]+e(539)+n+e(448)+t.id,r)}else this[e(449)](t)}t[e(524)]=void 0,t[e(512)]=!0}[it(449)](t){const e=it,n=document[e(454)](t[e(537)]);if(n){n[e(497)]="";const r=document[e(525)]("div");r.id=t.id,r[e(457)]=e(541)+String(this[e(502)])[e(529)](),r.setAttribute(e(535),"true"),r[e(463)](e(517),e(483)),r[e(463)](e(528),t.id),r[e(445)][e(530)]="\n height: 0px !important;\n min-height: 0px !important;\n padding: 0px !important;\n margin: 0px !important;\n border: none !important;\n overflow: hidden !important;\n display: block !important;\n ",n[e(444)](r),this[e(507)]&&console.warn("⚠️ Created empty "+this[e(502)]+e(523)+t.id)}}[it(477)](t,...e){const n=it;this[n(507)]&&console[n(477)]("["+this[n(502)]+"] "+t,...e)}}const dt=ut;function ut(t,e){const n=ht();return(ut=function(t,e){return n[t-=426]})(t,e)}!function(){const t=ut,e=ht();for(;;)try{if(389542===parseInt(t(442))/1*(parseInt(t(444))/2)+-parseInt(t(535))/3*(-parseInt(t(492))/4)+parseInt(t(457))/5*(-parseInt(t(533))/6)+parseInt(t(476))/7+-parseInt(t(537))/8*(-parseInt(t(432))/9)+parseInt(t(518))/10+-parseInt(t(468))/11*(parseInt(t(491))/12))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class pt extends lt{constructor(e=!1,n){super(t[ut(536)],e,n)}[dt(498)](){return"250px"}async[dt(486)](t,e){const n=dt,r=document[n(462)](t[n(483)]);if(!r)return;const s=document[n(467)]("div");s[n(510)]="adstage-ad adstage-banner-ad";const o=t[n(433)],i=r[n(519)]||r;if(o)s[n(466)][n(532)]=n(437),s[n(466)][n(438)]=String(o);else{const e=t[n(511)],r={width:e?.width,height:e?.[n(438)]},{width:o,height:a}=this[n(520)](i,r,{debug:this[n(527)]});s[n(466)][n(532)]=o,s.style[n(438)]=a}e[n(534)]?await this[n(426)](s,e,t):s.innerHTML=n(481)+(e[n(484)]||n(460))+n(495),J[n(431)](s,e,t,()=>this[n(516)](),this[n(527)],n(528)),r[n(429)]="",r[n(507)](s)}async[dt(455)](t,e){const n=dt,r=document.getElementById(t[n(483)]);if(!r)throw new Error(n(500)+t[n(483)]);await this.optimizeContainerForBannerAds(t,e);const s=this[n(516)](),o={autoSlideInterval:(t[n(511)]?.[n(501)]||5e3)/1e3,...t.config,optimizedHeight:t[n(433)],aspectRatio:t[n(523)]},i=et[n(451)](t,e,o,s,this[n(527)]);i&&(r[n(429)]="",r.appendChild(i),this[n(527)]&&console.log("🎠 Banner carousel created for slot: "+t.id+n(508)+e[n(525)]+n(530)+(t[n(433)]||n(470))+")"))}async calculateOptimalContainerSize(t,e){const n=dt;if(!t[n(525)])return{width:n(437),height:this[n(498)](),aspectRatio:16/9};try{const r=(await Promise[n(456)](t[n(446)](t=>t[n(534)]).map(t=>this[n(485)](t.imageUrl))))[n(446)](t=>t[n(504)]===n(522))[n(529)](t=>t[n(474)]);if(0===r[n(525)])return{width:n(437),height:this[n(498)](),aspectRatio:16/9};const s=this[n(494)](r),o=this[n(503)](r,e,s);return this[n(527)]&&console[n(458)](n(478)+e+"x"+o+n(472)+s+")"),{width:"100%",height:o+"px",aspectRatio:e/o}}catch(t){return console[n(450)](n(524),t),{width:n(437),height:this[n(498)](),aspectRatio:16/9}}}async[dt(480)](t,e){const n=dt;try{const r=document[n(462)](t[n(483)]),s=document[n(462)](t.id);if(!r||!s)return;const o=r.getBoundingClientRect().width||300,i=await this[n(440)](e,o);s[n(466)][n(438)]=i[n(438)],t[n(433)]=i[n(438)],t[n(523)]=i.aspectRatio,this.debug&&console.log(n(493)+e.length+" ads: "+i.height)}catch(t){console[n(450)]("Banner container optimization failed, using default size:",t)}}[dt(494)](t){const e=dt,n=t[e(529)](t=>t[e(532)]/t[e(438)]),r=new Map;n[e(461)](t=>{const n=e,s=(Math[n(497)](10*t)/10)[n(448)]();r[n(506)](s,(r[n(482)](s)||0)+1)});const s=Math[e(509)](...r[e(496)]()),o=t.length;if(s/o>=.7)return e(471);const i=[16/9,4/3,1,1.5];return n[e(446)](t=>i[e(488)](e=>Math.abs(t-e)<.1))[e(525)]/o>=.5?"common":e(465)}calculateOptimalHeight(t,e,n){const r=dt,s=t[r(529)](t=>t[r(532)]/t.height);switch(n){case r(471):{const t=new Map;s[r(461)](e=>{const n=r,s=Math[n(497)](10*e)/10,o=s.toString(),i=t.get(o);i?i[n(475)]++:t[n(506)](o,{ratio:s,count:1})});const n=Array.from(t[r(496)]())[r(430)]((t,e)=>e[r(475)]>t.count?e:t);return Math[r(497)](e/n[r(517)])}case"common":{const t=[{ratio:16/9,name:r(487)},{ratio:4/3,name:r(514)},{ratio:1,name:r(513)},{ratio:1.5,name:"3:2"}],n=s[r(430)]((t,e)=>t+e,0)/s[r(525)],o=t[r(430)]((t,e)=>Math.abs(e[r(517)]-n)<Math.abs(t[r(517)]-n)?e:t);return this[r(527)]&&console.log(r(464)+o[r(445)]+r(453)+n[r(463)](2)+")"),Math[r(497)](e/o[r(517)])}case r(465):default:{const t=s[r(430)]((t,e)=>t+e,0)/s.length;return Math[r(497)](e/t)}}}loadImageDimensions(t){return new Promise((e,n)=>{const r=ut,s=new Image;s[r(531)]=()=>{const t=r;e({width:s.naturalWidth,height:s[t(459)]})},s[r(505)]=()=>{n(new Error(r(441)+t))},s[r(473)]=t})}[dt(515)](t,e,n){const r=dt,s=e/n;Math[r(434)](s-1)<.1?(t.style.objectFit=r(436),t[r(466)][r(499)]=r(428)):s>1.3?(t[r(466)][r(447)]="contain",t.style[r(499)]=r(428),t.style[r(427)]=r(512)):s<.7?(t.style[r(447)]=r(436),t[r(466)][r(499)]=r(428)):(t[r(466)][r(447)]="cover",t[r(466)].objectPosition=r(428)),this[r(527)]&&console.log("🎨 Banner image style applied: objectFit="+t[r(466)][r(447)]+r(449)+s.toFixed(2))}async[dt(426)](t,e,n){const r=dt,s=document.createElement(r(443));s.style[r(532)]=r(437),s[r(466)][r(438)]=r(437),s[r(466)].display=r(454),s.style[r(435)]="8px",s[r(521)]=e.title||r(490),t[r(429)]=r(489);try{if(!e[r(534)])throw new Error(r(479));const o=await this.loadImageDimensions(e[r(534)]),i=t[r(502)](),a=i[r(532)],c=i.height;this.debug&&(console[r(458)](r(439)+o[r(532)]+"x"+o.height),console[r(458)](r(469)+a+"x"+c));const l=o[r(532)]/o[r(438)],d=a/c;return this[r(515)](s,l,d),s[r(473)]=e[r(534)],t[r(429)]="",t[r(507)](s),J[r(431)](s,e,n,()=>this.createEventTrackingCallback(),this[r(527)],r(528)),this[r(527)]&&console[r(458)](r(452)+e._id),s}catch(o){return console[r(526)](r(477),o),e[r(534)]&&(s[r(473)]=e[r(534)],s[r(466)].objectFit="cover",s.style[r(499)]="center",t.innerHTML="",t.appendChild(s),J[r(431)](s,e,n,()=>this.createEventTrackingCallback(),this.debug,"Banner")),s}}}function ht(){const t=["className","config","#f0f0f0","1:1","4:3","applyOptimizedImageStyle","createEventTrackingCallback","ratio","6542290zLNFIE","parentElement","calculateAdSize","alt","fulfilled","aspectRatio","Failed to calculate optimal banner size, using defaults:","length","error","debug","Banner","map"," ads (optimized: ","onload","width","2591238vBRrzV","imageUrl","1719DEngHa","BANNER","5248flLTeA","renderOptimizedBannerImage","backgroundColor","center","innerHTML","reduce","addClickEventForRenderer","10107teNSMj","optimizedHeight","abs","borderRadius","cover","100%","height","📸 Banner image dimensions: ","calculateOptimalContainerSize","Failed to load image: ","17HMIrWu","img","80302qKpWoj","name","filter","objectFit","toString",", ratio=","warn","createSliderContainer","✅ Optimized banner image rendered for ad: "," (avg: ","block","renderMultipleAds","allSettled","5LSzemQ","log","naturalHeight","Banner Ad","forEach","getElementById","toFixed","📊 Using standard ratio: ","average","style","createElement","143Qvusml","📦 Banner container dimensions: ","default","dominant"," (strategy: ","src","value","count","4286520OQlahS","❌ Failed to load optimized banner image:","📐 Optimal banner container calculated: ","Image URL is not provided","optimizeContainerForBannerAds","<div>","get","containerId","title","loadImageDimensions","renderAdElement","16:9","some",'<div style="display: flex; align-items: center; justify-content: center; height: 100%; color: #999;">Loading...</div>',"Banner Advertisement","1723656FvUgao","20ntBifJ","🔧 Banner container optimized for ","selectOptimalSizeStrategy","</div>","values","round","getDefaultHeight","objectPosition","Container not found: ","slideInterval","getBoundingClientRect","calculateOptimalHeight","status","onerror","set","appendChild"," with ","max"];return(ht=function(){return t})()}const ft=mt;!function(){const t=mt,e=It();for(;;)try{if(115187===parseInt(t(348))/1+-parseInt(t(346))/2+parseInt(t(356))/3+-parseInt(t(355))/4+-parseInt(t(351))/5*(parseInt(t(357))/6)+parseInt(t(347))/7+parseInt(t(349))/8)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class gt{static[ft(353)](t=!1){return ft(345)}static[ft(350)](t,e){const n=ft,r=e[n(352)]||e[n(354)]||"";t[n(352)]=r}}function mt(t,e){const n=It();return(mt=function(t,e){return n[t-=345]})(t,e)}function It(){const t=["127484djsMaa","865942EgJenT","56259EYTSCe","452728zMIOEA","setTextAdContent","5rhmLIk","textContent","createTextAdStyles","title","322792tLYLXy","337038ZgIwzU","535650FMNRMc","\n font-family: 'Arial', sans-serif;\n text-decoration: none;\n display: block;\n text-align: left;\n transition: color 0.3s ease;\n width: 100%;\n box-sizing: border-box;\n overflow: visible;\n padding-right: 2px;\n padding-left: 2px;\n white-space: nowrap;\n "];return(It=function(){return t})()}const yt=vt;function vt(t,e){const n=bt();return(vt=function(t,e){return n[t-=468]})(t,e)}function bt(){const t=["adType","left","auto","top","relative","block","20px","translateY(0)","addClickEventForSlider","data-adstage-slot-id","448915CxCMna","1003562uVgria","touches","setAttribute","abs","normal",";\n left: ","opacity","includes","2035WxTlyq","143340ZavEQM","setTextAdContent","transform","createElement","cssText","touchstart","touchend","\n position: relative;\n width: 100%;\n ","\n position: ","appendChild","height","height: auto;","21yHmcKE","\n position: absolute;\n visibility: hidden;\n white-space: nowrap;\n top: -9999px;\n left: -9999px;\n ","clientY","createSimpleAdElement",";\n top: ","hidden","286478ntETxc","8778080ipunRZ","adstage-fade-slider-wrapper","Text","forEach","length","div","7600IRBDND","push","568180POfsUr","6YRXQPA","entries","style","clientX","autoSlideInterval","addEventListener","_id",";\n transform: translateY(","zIndex","adstage-fade-slide","adstage-ad adstage-","className","changedTouches","width","addTouchSupport","createTextTransitionContainer","11259iqGJio","body","\n ",";\n width: 100%;\n ","position","absolute","translateY(-20px)","mouseenter","setProperty","removeChild","string","touchmove","toLowerCase","2nVcvVd"];return(bt=function(){return t})()}!function(){const t=vt,e=bt();for(;;)try{if(599615===-parseInt(t(489))/1*(parseInt(t(528))/2)+parseInt(t(483))/3*(parseInt(t(498))/4)+-parseInt(t(539))/5*(parseInt(t(499))/6)+parseInt(t(540))/7+parseInt(t(490))/8+parseInt(t(515))/9*(parseInt(t(496))/10)+parseInt(t(470))/11*(-parseInt(t(471))/12))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class wt{static createSimpleAdElement(t,e){const n=vt,r=document.createElement(n(495));return r.className=n(509)+String(t[n(529)])[n(527)](),r[n(542)]("data-adstage-ad-id",e[n(505)]),r[n(542)](n(538),t.id),r[n(501)][n(475)]=gt.createTextAdStyles(!0),gt[n(472)](r,e),r}static[yt(514)](t,e,n,r,s=!1){const o=yt,i=t.height&&0!==t[o(481)]&&t[o(481)]!==o(531),a=document[o(474)](o(495));a[o(510)]=o(491);const c={position:o(533),overflow:o(488),display:o(534)};if(!i&&(c[o(481)]="auto",c.minHeight="fit-content"),t.width&&0!==t[o(512)]){let e;e="string"==typeof t[o(512)]&&(t.width.includes("px")||t.width[o(469)]("%"))?t.width:t[o(512)]+"px",c.width=e}if(t[o(481)]&&0!==t[o(481)]&&t[o(481)]!==o(531)&&i){let e;e=typeof t[o(481)]===o(525)&&(t[o(481)][o(469)]("px")||t[o(481)][o(469)]("%"))?t[o(481)]:t[o(481)]+"px",c.height=e}Object[o(500)](c)[o(493)](([t,e])=>{const n=o;a.style[n(523)](t,e)});const l=document[o(474)](o(495));l[o(510)]="adstage-fade-slide-container",l[o(501)][o(475)]=o(478)+(i?"height: 100%;":"height: auto; min-height: fit-content;")+o(517);let d=null;const u=!t.width||0===t.width,p=!t.height||0===t[o(481)]||void 0===t[o(481)]||t.height===o(531);if(u||p&&i){if(d=document.createElement("div"),d.style[o(475)]=o(484),!u&&t[o(512)]){let e;e="string"==typeof t[o(512)]&&(t[o(512)][o(469)]("px")||t[o(512)][o(469)]("%"))?t.width:t[o(512)]+"px",d.style[o(512)]=e,d[o(501)].whiteSpace=o(544)}document.body.appendChild(d);let n=0,r=0;e.forEach(e=>{const s=o,i=this[s(486)](t,e);d[s(480)](i);const a=i.getBoundingClientRect();a[s(512)]>n&&(n=a.width),a[s(481)]>r&&(r=a[s(481)]),d[s(524)](i)}),u&&n>0&&(a[o(501)][o(512)]=n+"px"),p&&r>0&&i&&(a[o(501)][o(481)]=r+"px"),document[o(516)][o(524)](d)}const h=[];e[o(493)]((e,n)=>{const a=o,c=document[a(474)](a(495));c[a(510)]=a(508);const d=i?"absolute":0===n?"relative":a(520);c[a(501)].cssText=a(479)+d+a(487)+("absolute"===d?"0":a(531))+a(545)+(d===a(520)?"0":"auto")+a(518)+(i?"height: 100%;":a(482))+"\n display: flex;\n align-items: center;\n justify-content: flex-start;\n opacity: "+(0===n?"1":"0")+a(506)+(0===n?"0":a(535))+");\n transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);\n z-index: "+(0===n?"2":"1")+";\n ";const u=this.createSimpleAdElement(t,e);J[a(537)](u,e,t,r,s,a(492)),c[a(480)](u),l.appendChild(c),h[a(497)](c)});let f=0;const g=e[o(494)],m=1e3*(n?.[o(503)]||4),I=n=>{const a=o;n>=g?n=0:n<0&&(n=g-1);const c=h[f],l=h[n];!i&&(c[a(501)].position===a(533)&&(c.style[a(519)]=a(520),c[a(501)].top="0",c[a(501)][a(530)]="0"),l.style.position=a(533),l[a(501)][a(532)]=a(531),l[a(501)][a(530)]=a(531)),c[a(501)][a(468)]="0",c[a(501)][a(473)]=a(521),c.style.zIndex="1",l[a(501)][a(468)]="1",l[a(501)][a(473)]=a(536),l.style[a(507)]="2",h[a(493)]((t,e)=>{const r=a;e!==n&&e!==f&&(t.style[r(468)]="0",t[r(501)][r(473)]="translateY(20px)",t.style[r(507)]="1",!i&&"relative"===t[r(501)].position&&(t[r(501)][r(519)]="absolute",t[r(501)][r(532)]="0",t[r(501)].left="0"))}),f=n,q.trackSlideViewable(e[f],t,f,r,s)};let y=setInterval(()=>{I(f+1)},m);return a[o(504)](o(522),()=>{clearInterval(y)}),a[o(504)]("mouseleave",()=>{y=setInterval(()=>{I(f+1)},m)}),wt[o(513)](a,I,()=>f,g),a.appendChild(l),a}static[yt(513)](t,e,n,r){const s=yt;let o=0,i=0,a=!1;t[s(504)](s(476),t=>{const e=s;o=t[e(541)][0].clientX,i=t[e(541)][0][e(485)],a=!0}),t[s(504)](s(526),t=>{a&&t.preventDefault()}),t[s(504)](s(477),t=>{const r=s;if(!a)return;a=!1;const c=t[r(511)][0][r(502)],l=t[r(511)][0][r(485)],d=o-c,u=i-l;if(Math[r(543)](d)>Math[r(543)](u)&&Math.abs(d)>50){const t=n();e(d>0?t+1:t-1)}})}}function kt(t,e){const n=St();return(kt=function(t,e){return n[t-=139]})(t,e)}const Et=kt;function St(){const t=["cssText","getElementById","div","828587SXgIkW","addClickEventForRenderer","-webkit-box","display","aspectRatio","innerHTML","width"," ads","18WoLFIq","912ZLKmGf","60px","_id","config","hidden","49952HOcwZi","className","optimizedHeight","webkitLineClamp","appendChild","height"," with ","4756155Gjmqkg","debug","overflow","calculateAdSize","createEventTrackingCallback","4vKnWtY","4763676mpvjPq","log","createElement","8437824JyJdKI","containerId","adstage-text-content","✨ Single text ad rendered: ","getDefaultHeight","100%","style","setTextAdContent","170310GDPard","Container not found: ","createTextAdStyles","number","8275070JmZcZB","Text","TEXT"];return(St=function(){return t})()}!function(){const t=kt,e=St();for(;;)try{if(506147===parseInt(t(165))/1+parseInt(t(173))/2*(parseInt(t(155))/3)+-parseInt(t(143))/4*(-parseInt(t(186))/5)+parseInt(t(144))/6+parseInt(t(179))/7*(-parseInt(t(174))/8)+-parseInt(t(147))/9+-parseInt(t(159))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class xt extends lt{constructor(e=!1,n){super(t[kt(161)],e,n)}[Et(151)](){return Et(175)}async renderAdElement(t,e){const n=Et,r=document[n(163)](t[n(148)]);if(!r)return;const s=document[n(146)](n(164));s.className="adstage-ad adstage-text-ad";const o=t[n(181)],i=r.parentElement||r;if(o)s.style[n(171)]=n(152),s[n(153)][n(184)]=String(o);else{const e=t[n(177)],r={width:e?.width,height:e?.[n(184)]},{width:o,height:a}=this[n(141)](i,r,{debug:this[n(139)]});s[n(153)][n(171)]=o,s[n(153)][n(184)]=a}const a=document[n(146)](n(164));a[n(180)]=n(149),a[n(153)][n(162)]=gt[n(157)](!1),gt[n(154)](a,e);const c=t[n(177)]?.maxLines;c&&typeof c===n(158)&&(a.style[n(168)]=n(167),a.style[n(182)]=String(c),a.style.webkitBoxOrient="vertical",a[n(153)][n(140)]=n(178)),s.appendChild(a),J[n(166)](s,e,t,()=>this[n(142)](),this[n(139)],n(160)),r[n(170)]="",r[n(183)](s),this.debug&&console[n(145)](n(150)+e[n(176)])}async renderMultipleAds(t,e){const n=Et,r=document.getElementById(t[n(148)]);if(!r)throw new Error(n(156)+t.containerId);const s=this[n(142)](),o={autoSlideInterval:(t[n(177)]?.slideInterval||5e3)/1e3,...t[n(177)],optimizedHeight:t[n(181)],aspectRatio:t[n(169)]},i=wt.createTextTransitionContainer(t,e,o,s,this[n(139)]);i&&(r.innerHTML="",r[n(183)](i),this.debug&&console[n(145)]("✨ Text transition created for slot: "+t.id+n(185)+e.length+n(172)))}}const At=Ct;function Ct(t,e){const n=Tt();return(Ct=function(t,e){return n[t-=114]})(t,e)}function Tt(){const t=["360px","Container not found: ","hideFullscreenButton","5svsxOD","653526XFMSgo","className","\n video::-webkit-media-controls-play-button {\n display: ","relative","video","210RhQkIS","objectFit","scale(1.1)","videoUrl","head","1059885GtUoJX","warn","\n position: absolute;\n top: 12px;\n left: 12px;\n width: 40px;\n height: 40px;\n border: none;\n border-radius: 50%;\n background: rgba(0, 0, 0, 0.7);\n color: white;\n font-size: 16px;\n cursor: pointer;\n display: flex;\n align-items: center;\n justify-content: center;\n z-index: 10;\n transition: all 0.3s ease;\n backdrop-filter: blur(4px);\n ","_id","🎬 Video element created for ad: "," (autoplay: ","debug","playsinline","getElementById","rgba(0, 0, 0, 0.9)",'\n <svg width="20" height="20" viewBox="0 0 24 24" fill="white">\n <path d="M16.5 12c0-1.77-1.02-3.29-2.5-4.03v2.21l2.45 2.45c.03-.2.05-.41.05-.63zm2.5 0c0 .94-.2 1.82-.54 2.64l1.51 1.51C20.63 14.91 21 13.5 21 12c0-4.28-2.99-7.86-7-8.77v2.06c2.89.86 5 3.54 5 6.71zM4.27 3L3 4.27 7.73 9H3v6h4l5 5v-6.73l4.25 4.25c-.67.52-1.42.93-2.25 1.18v2.06c1.38-.31 2.63-.95 3.69-1.81L19.73 21 21 19.73l-9-9L4.27 3zM12 4L9.91 6.09 12 8.18V4z"/>\n </svg>\n ',"adstage-video-default-controls","stopPropagation"," !important;\n }\n video::-webkit-media-controls-time-remaining-display {\n display: ","cssText"," !important;\n }\n ","createElement","length","🎬 Video can play, attempting autoplay...","Click to mute","hideProgressBar","createEventTrackingCallback","⚠️ No video advertisements available for slot: ","🎬 Video data loaded, attempting autoplay...","getDefaultHeight","🎬 User explicitly enabled controls, overriding default","containerId","textContent","controls","canplay","🎬 Video metadata loaded, attempting autoplay...","100%","imageUrl","customControls","appendChild","mouseleave","Video thumbnail","1533716RdpIQZ","contain",", loop: ","loop","hideVolumeSlider","🎬 Initial autoplay attempt after timeout...","🎬 Trying muted autoplay fallback...","renderVideoElementDirect","scale(1)","VIDEO"," !important;\n }\n video::-webkit-media-controls-current-time-display {\n display: ","hideControls","adstage-video-container","🎬 Video config received:","play","alt","transform","Video fallback","23465920YrpOTQ","🎬 Single video ad rendered: ","hidePlayButton","3312992TBpIiD","src",'\n <svg width="20" height="20" viewBox="0 0 24 24" fill="white">\n <path d="M3 9v6h4l5 5V4L7 9H3zm13.5 3c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02zM14 3.23v2.06c2.89.86 5 3.54 5 6.71s-2.11 5.85-5 6.71v2.06c4.01-.91 7-4.49 7-8.77s-2.99-7.86-7-8.77z"/>\n </svg>\n ',"\n pointer-events: none;\n "," !important;\n }\n video::-webkit-media-controls-volume-slider {\n display: ","addEventListener","error","block","autoplay","🔊 Video mute toggled: ","div"," !important;\n }\n video::-webkit-media-controls-timeline {\n display: ","catch","position","width","innerHTML","🎬 Final video settings:","display","VIEWABLE","log","muted","8LrpgqJ","rgba(0, 0, 0, 0.7)","95158KDqBUi","height","preload","\n width: 100%;\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n background: #000;\n border-radius: 8px;\n overflow: hidden;\n ","addClickEventForRenderer","none","style","53860OUJemR","loadedmetadata","Video","img","click","title"," !important;\n }\n video::-webkit-media-controls-mute-button {\n display: ","\n width: 100%;\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n background: #000;\n border-radius: 8px;\n overflow: hidden;\n "];return(Tt=function(){return t})()}!function(){const t=Ct,e=Tt();for(;;)try{if(431900===parseInt(t(187))/1*(-parseInt(t(196))/2)+-parseInt(t(218))/3+-parseInt(t(145))/4*(parseInt(t(207))/5)+parseInt(t(213))/6*(-parseInt(t(189))/7)+-parseInt(t(166))/8+-parseInt(t(208))/9+parseInt(t(163))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class Rt extends lt{constructor(e=!1,n){super(t[Ct(154)],e,n)}[At(132)](){return At(204)}async renderAdElement(t,e){const n=At,r=document[n(116)](t[n(134)]);if(!r)return;const s=document[n(124)](n(176));s[n(209)]="adstage-video-container",s.style[n(122)]=n(203),this[n(152)](s,e,t),r.innerHTML="",r[n(142)](s),this[n(114)]&&console[n(185)](n(164)+e[n(221)])}async renderMultipleAds(t,e){const n=At,r=document[n(116)](t[n(134)]);if(!r)throw new Error(n(205)+t[n(134)]);if(e[n(125)]>0){const s=e[0],i=document[n(124)](n(176));i.className=n(157),i[n(195)][n(122)]=n(192),this[n(152)](i,s,t),r.innerHTML="",r.appendChild(i);const a=this[n(129)]();setTimeout(()=>{const e=n;a(s[e(221)],t.id,o[e(184)])},100),this[n(114)]&&console[n(185)]("🎬 Single video rendered for VIDEO slot: "+t.id+" ("+s[n(221)]+")")}else this[n(114)]&&console.warn(n(130)+t.id)}renderVideoElementDirect(t,e,n){const r=At;t[r(195)][r(179)]=r(211);const s=document.createElement(r(212));s[r(195)][r(180)]=r(139),s[r(195)][r(190)]=r(139),s.style.objectFit=r(146),s[r(191)]="metadata";const o=n.config;if(this.debug&&console[r(185)](r(158),o),s.controls=!1,s[r(174)]=!1!==o?.[r(174)],s.muted=!0,s[r(148)]=!1!==o?.[r(148)],this.debug&&console[r(185)](r(182),{autoplay:s[r(174)],muted:s[r(186)],loop:s.loop,controls:s.controls}),!1!==o?.[r(115)]&&s.setAttribute("playsinline",""),!0===o?.[r(136)]&&(s.controls=!0,this[r(114)]&&console[r(185)](r(133))),o?.[r(156)])s[r(136)]=!1,s.style.cssText+=r(169);else if(o?.customControls){if(s[r(136)]){const t=document[r(124)](r(195));t[r(135)]=r(210)+(o[r(141)][r(165)]?r(194):r(173))+r(177)+(o[r(141)][r(128)]?r(194):"block")+r(155)+(o[r(141)].hideCurrentTime?r(194):r(173))+r(121)+(o.customControls.hideRemainingTime?r(194):"block")+r(170)+(o[r(141)][r(149)]?"none":r(173))+r(202)+(o[r(141)].hideMuteButton?r(194):"block")+" !important;\n }\n video::-webkit-media-controls-fullscreen-button {\n display: "+(o[r(141)][r(206)]?r(194):r(173))+r(123),document[r(217)].appendChild(t)}}else if(s[r(136)]){const t=document.createElement(r(195));t.id=r(119),t[r(135)]="\n .adstage-video-container video::-webkit-media-controls-mute-button {\n display: none !important;\n }\n .adstage-video-container video::-webkit-media-controls-fullscreen-button {\n display: none !important;\n }\n .adstage-video-container video::-webkit-media-controls-toggle-closed-captions-button {\n display: none !important;\n }\n .adstage-video-container video::-webkit-media-controls-volume-slider {\n display: none !important;\n }\n .adstage-video-container video::-webkit-media-controls-overflow-button {\n display: none !important;\n }\n .adstage-video-container video::-webkit-media-controls-picture-in-picture-button {\n display: none !important;\n }\n video::-webkit-media-controls-mute-button {\n display: none !important;\n }\n video::-webkit-media-controls-fullscreen-button {\n display: none !important;\n }\n video::-webkit-media-controls-toggle-closed-captions-button {\n display: none !important;\n }\n video::-webkit-media-controls-volume-slider {\n display: none !important;\n }\n video::-webkit-media-controls-overflow-button {\n display: none !important;\n }\n video::-webkit-media-controls-picture-in-picture-button {\n display: none !important;\n }\n ",!document[r(116)](r(119))&&document[r(217)][r(142)](t)}this[r(114)]&&console[r(185)]("🎬 Video controls setting:",s[r(136)]?"enabled":"disabled (default)");const i=document.createElement("button");i[r(209)]="adstage-video-mute-button",i[r(195)][r(122)]=r(220),o?.hideControls&&(i[r(195)][r(183)]=r(194));const a=()=>{const t=r,e=t(118),n=t(168);i[t(181)]=s[t(186)]?e:n,i[t(201)]=s[t(186)]?"Click to unmute":t(127)};if(a(),i[r(171)](r(200),t=>{const e=r;t[e(120)](),s.muted=!s[e(186)],a(),this.debug&&console.log(e(175)+(s.muted?e(186):"unmuted"))}),i.addEventListener("mouseenter",()=>{const t=r;i.style.background=t(117),i[t(195)][t(161)]=t(215)}),i[r(171)](r(143),()=>{const t=r;i[t(195)].background=t(188),i[t(195)].transform=t(153)}),e[r(216)]){s[r(167)]=e[r(216)];const t=()=>{const t=r;s[t(174)]&&s[t(186)]&&s.paused&&s[t(159)]()[t(178)](e=>{const n=t;this.debug&&(console[n(219)]("🎬 Auto-play was prevented:",e),console[n(219)](n(151))),s.muted=!0,s[n(159)]()[n(178)](t=>{const e=n;this[e(114)]&&console[e(172)]("🎬 Autoplay completely failed:",t)})})};s.addEventListener(r(197),()=>{const e=r;this[e(114)]&&console[e(185)](e(138)),t()}),s[r(171)](r(137),()=>{const e=r;this[e(114)]&&console[e(185)](e(126)),t()}),s[r(171)]("loadeddata",()=>{const e=r;this[e(114)]&&console[e(185)](e(131)),t()}),setTimeout(()=>{const e=r;this[e(114)]&&console[e(185)](e(150)),t()},100)}else if(e[r(140)]){const n=document.createElement(r(199));return n[r(167)]=e.imageUrl,n.style.width=r(139),n[r(195)][r(190)]=r(139),n[r(195)].objectFit=r(146),n[r(160)]=e.title||r(144),void t[r(142)](n)}J[r(193)](s,e,n,()=>this[r(129)](),this[r(114)],r(198)),s[r(171)](r(172),s=>{const o=r;if(console.error("Video load failed:",s),e.imageUrl){const r=document[o(124)](o(199));r[o(167)]=e[o(140)],r[o(195)].width=o(139),r[o(195)].height=o(139),r[o(195)][o(214)]=o(146),r[o(160)]=e[o(201)]||"Video thumbnail",J.addClickEventForRenderer(r,e,n,()=>this[o(129)](),this[o(114)],o(162)),t[o(181)]="",t.appendChild(r)}}),t.appendChild(s),t[r(142)](i),this[r(114)]&&console[r(185)](r(222)+e[r(221)]+r(223)+s[r(174)]+", muted: "+s[r(186)]+r(147)+s.loop+")")}}const _t=Dt;function Dt(t,e){const n=Bt();return(Dt=function(t,e){return n[t-=330]})(t,e)}function Bt(){const t=["getElementById","title","48912420enTJTU","6885576QVenlJ","className","click","log","\n margin: 0 0 8px 0;\n font-size: 16px;\n font-weight: 600;\n color: #111827;\n line-height: 1.3;\n ","3338iZxTNf","div","appendChild","backgroundColor","Native click tracked for ad: ","\n width: 100%;\n height: 100%;\n display: flex;\n flex-direction: column;\n padding: 16px;\n background: #fff;\n border: 1px solid #e5e7eb;\n border-radius: 8px;\n box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);\n ","getDefaultHeight","containerId","alt","Learn More","\n width: 100%;\n height: 100%;\n object-fit: cover;\n ","src","innerHTML","🏠 Native ad rendered (first of ","adstage-ad adstage-native-ad","Native Advertisement","mouseleave","renderMultipleAds","8sTtueA","181844HCTYnl","img","⚠️ No native advertisements available for slot: ","): ","cssText","\n width: 100%;\n height: 120px;\n margin-bottom: 12px;\n border-radius: 6px;\n overflow: hidden;\n background: #f3f4f6;\n ","textContent","200px","140dWMjGd","imageUrl","2715qjOZvK","addEventListener","53672sJdHqu","debug","mouseenter","197533uiSSeN","renderAdElement","style","length","createElement","3012660FvRSBi","#3b82f6","\n margin: 0 0 12px 0;\n font-size: 14px;\n color: #6b7280;\n line-height: 1.4;\n flex: 1;\n ","button"];return(Bt=function(){return t})()}!function(){const t=Dt,e=Bt();for(;;)try{if(922606===parseInt(t(352))/1+parseInt(t(372))/2*(-parseInt(t(350))/3)+-parseInt(t(340))/4*(parseInt(t(348))/5)+-parseInt(t(360))/6+parseInt(t(355))/7+-parseInt(t(339))/8*(parseInt(t(367))/9)+parseInt(t(366))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class Pt extends lt{constructor(e=!1,n){super(t.NATIVE,e,n)}[_t(378)](){return _t(347)}async[_t(356)](t,e){const n=_t,r=document[n(364)](t[n(379)]);if(!r)return;const s=document[n(359)](n(373));if(s[n(368)]=n(335),s[n(357)].cssText=n(377),e.title){const t=document[n(359)]("h3");t[n(346)]=e.title,t.style[n(344)]=n(371),s[n(374)](t)}if(e[n(346)]){const t=document[n(359)]("p");t[n(346)]=e[n(346)],t.style[n(344)]=n(362),s[n(374)](t)}if(e[n(349)]){const t=document[n(359)](n(373));t[n(357)][n(344)]=n(345);const r=document[n(359)](n(341));r[n(332)]=e[n(349)],r[n(380)]=e[n(365)]||n(336),r[n(357)][n(344)]=n(331),t[n(374)](r),s[n(374)](t)}if(e.linkUrl){const t=document[n(359)](n(363));t.textContent=n(330),t.style[n(344)]="\n padding: 8px 16px;\n background: #3b82f6;\n color: white;\n border: none;\n border-radius: 6px;\n font-size: 14px;\n font-weight: 500;\n cursor: pointer;\n align-self: flex-start;\n transition: background-color 0.2s;\n ",t.addEventListener(n(369),()=>{const t=n;this.advertisementEventTracker&&console.log(t(376)+e._id),window.open(e.linkUrl,"_blank")}),t[n(351)](n(354),()=>{const e=n;t[e(357)][e(375)]="#2563eb"}),t.addEventListener(n(337),()=>{const e=n;t[e(357)][e(375)]=e(361)}),s[n(374)](t)}r[n(333)]="",r[n(374)](s),this[n(353)]&&console[n(370)]("🏠 Single native ad rendered: "+e._id)}async[_t(338)](t,e){const n=_t;e[n(358)]>0?(await this[n(356)](t,e[0]),this[n(353)]&&console[n(370)](n(334)+e.length+n(343)+t.id)):this[n(353)]&&console.warn(n(342)+t.id)}}function Lt(){const t=["63252sjOZYu","3999333EjwPNQ","getElementById","alt","\n margin: 0 0 20px 0;\n font-size: 16px;\n color: #6b7280;\n line-height: 1.5;\n ","head","backgroundColor","Get Started","parentNode","): ","log","#2563eb","2096975apVmhT","getDefaultHeight","adstage-interstitial-styles","warn","#3b82f6","mouseleave","renderAdElement","3377691giOWxg","⚠️ No interstitial advertisements available for slot: ","_id","#374151","img","linkUrl","#e5e7eb","body","adstage-interstitial-overlay","textContent","imageUrl","div","keydown","className","6YANolB","addEventListener","key","length","fadeOut 0.3s ease-out forwards","mouseenter","55598XJFzkW","\n width: 100%;\n max-height: 300px;\n object-fit: cover;\n border-radius: 8px;\n margin-bottom: 16px;\n ","_blank","#f3f4f6","button","style","752rnWUBu","appendChild","\n position: absolute;\n top: 12px;\n right: 12px;\n width: 32px;\n height: 32px;\n border: none;\n background: #f3f4f6;\n color: #6b7280;\n font-size: 20px;\n font-weight: bold;\n border-radius: 50%;\n cursor: pointer;\n display: flex;\n align-items: center;\n justify-content: center;\n transition: all 0.2s;\n ","cssText","13EtRHRw","animation","adstage-interstitial-content","1767228pnTKGc","createElement","\n position: relative;\n max-width: 90vw;\n max-height: 90vh;\n background: white;\n border-radius: 12px;\n padding: 24px;\n box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);\n animation: slideUp 0.3s ease-out;\n overflow: auto;\n ","title","open","click","advertisementEventTracker","debug","removeChild","400px","INTERSTITIAL","src","25470RnLZiC","closeInterstitial","1507aSJgiR","🖼️ Interstitial ad rendered (first of ","\n margin: 0 0 12px 0;\n font-size: 24px;\n font-weight: 700;\n color: #111827;\n line-height: 1.3;\n "];return(Lt=function(){return t})()}const zt=Ut;function Ut(t,e){const n=Lt();return(Ut=function(t,e){return n[t-=468]})(t,e)}!function(){const t=Ut,e=Lt();for(;;)try{if(796342===-parseInt(t(468))/1*(-parseInt(t(527))/2)+parseInt(t(489))/3+-parseInt(t(471))/4+-parseInt(t(500))/5*(-parseInt(t(521))/6)+parseInt(t(488))/7*(-parseInt(t(533))/8)+-parseInt(t(507))/9+parseInt(t(483))/10*(parseInt(t(485))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class Mt extends lt{constructor(e=!1,n){super(t[Ut(481)],e,n)}[zt(501)](){return zt(480)}async[zt(506)](t,e){const n=zt;if(!document[n(490)](t.containerId))return;const r=document.createElement("div");r[n(520)]=n(515),r[n(532)][n(536)]="\n position: fixed;\n top: 0;\n left: 0;\n width: 100vw;\n height: 100vh;\n background: rgba(0, 0, 0, 0.8);\n display: flex;\n align-items: center;\n justify-content: center;\n z-index: 10000;\n animation: fadeIn 0.3s ease-out;\n ";const s=document[n(472)](n(518));s[n(520)]=n(470),s[n(532)][n(536)]=n(473);const o=document[n(472)](n(531));if(o.innerHTML="×",o[n(532)][n(536)]=n(535),o.addEventListener("click",()=>{this[n(484)](r)}),o[n(522)](n(526),()=>{const t=n;o[t(532)][t(494)]=t(513),o[t(532)].color=t(510)}),o[n(522)](n(505),()=>{const t=n;o[t(532)][t(494)]=t(530),o[t(532)].color="#6b7280"}),e[n(517)]){const t=document[n(472)](n(511));t[n(482)]=e.imageUrl,t[n(491)]=e[n(474)]||"Interstitial Advertisement",t[n(532)][n(536)]=n(528),s.appendChild(t)}if(e[n(474)]){const t=document.createElement("h2");t[n(516)]=e[n(474)],t[n(532)][n(536)]=n(487),s[n(534)](t)}if(e[n(516)]){const t=document[n(472)]("p");t.textContent=e[n(516)],t[n(532)][n(536)]=n(492),s.appendChild(t)}if(e[n(512)]){const t=document.createElement(n(531));t.textContent=n(495),t[n(532)][n(536)]="\n width: 100%;\n padding: 12px 24px;\n background: #3b82f6;\n color: white;\n border: none;\n border-radius: 8px;\n font-size: 16px;\n font-weight: 600;\n cursor: pointer;\n transition: background-color 0.2s;\n ",t[n(522)]("click",()=>{const t=n;this[t(477)]&&console[t(498)]("Interstitial click tracked for ad: "+e._id),window[t(475)](e.linkUrl,t(529)),this[t(484)](r)}),t[n(522)]("mouseenter",()=>{const e=n;t[e(532)][e(494)]=e(499)}),t.addEventListener(n(505),()=>{const e=n;t[e(532)][e(494)]=e(504)}),s.appendChild(t)}const i=t=>{const e=n;"Escape"===t[e(523)]&&(this[e(484)](r),document.removeEventListener(e(519),i))};if(document[n(522)](n(519),i),r[n(522)](n(476),t=>{const e=n;t.target===r&&this[e(484)](r)}),!document[n(490)](n(502))){const t=document[n(472)]("style");t.id="adstage-interstitial-styles",t[n(516)]="\n @keyframes fadeIn {\n from { opacity: 0; }\n to { opacity: 1; }\n }\n @keyframes slideUp {\n from { \n opacity: 0;\n transform: translateY(20px);\n }\n to { \n opacity: 1;\n transform: translateY(0);\n }\n }\n ",document[n(493)].appendChild(t)}s[n(534)](o),r[n(534)](s),document[n(514)].appendChild(r),this[n(478)]&&console.log("🖼️ Interstitial ad rendered: "+e[n(509)])}async renderMultipleAds(t,e){const n=zt;e[n(524)]>0?(await this[n(506)](t,e[0]),this[n(478)]&&console[n(498)](n(486)+e[n(524)]+n(497)+t.id)):this[n(478)]&&console[n(503)](n(508)+t.id)}[zt(484)](t){const e=zt;t[e(532)][e(469)]=e(525),setTimeout(()=>{const n=e;t[n(496)]&&t[n(496)][n(479)](t)},300),this[e(478)]&&console[e(498)]("🖼️ Interstitial ad closed")}}const Ot=Nt;function Nt(t,e){const n=Ft();return(Nt=function(t,e){return n[t-=375]})(t,e)}function Ft(){const t=["naturalWidth","className","set","_id","optimizeContainerForBannerAds","calculateAdSize","img","get","434469wOPwtC","debug","advertisement","getDefaultHeight","createPlaceholder","154407mKBSID","warn","videoUrl","TEXT","textContent","onerror","INTERSTITIAL","div","imageUrl","cover","NATIVE","renderOptimizedBannerImage","1px dashed #ccc","onload","No advertisement to render","getDefaultHeightForAdType","renderers","10928320IlGLAP","advertisementEventTracker","initializeRenderers","src","calculateOptimalContainerSize","adType"," Ad","createElement","Failed to load image: ","516747ZqbTQc","100%","toLowerCase","log","style","renderOptimizedBannerImage is only supported for BANNER ads","8NUKade","renderAd","data-adstage-slot-id","setAttribute","2648232xUJrDu","getRenderer","appendChild","VIDEO","height","renderFallback","⚠️ Container optimization is only supported for BANNER ads, got: ","isLoaded","renderAdElement","[AdRenderer] ","538654gDXnYX","#f9f9f9","loadImageDimensions","block","860625FdXVlk","BANNER","size","objectFit","width"];return(Ft=function(){return t})()}!function(){const t=Nt,e=Ft();for(;;)try{if(246854===parseInt(t(377))/1+-parseInt(t(423))/2+-parseInt(t(440))/3+-parseInt(t(409))/4*(parseInt(t(427))/5)+-parseInt(t(413))/6+-parseInt(t(403))/7+parseInt(t(394))/8)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class Vt{constructor(t=!1,e){const n=Nt;this[n(393)]=new Map,this[n(441)]=t,this[n(395)]=e||null,this[n(396)]()}[Ot(396)](){const e=Ot;this[e(393)][e(434)](t.BANNER,new pt(this[e(441)],this[e(395)])),this[e(393)].set(t[e(380)],new xt(this[e(441)],this[e(395)])),this[e(393)][e(434)](t[e(416)],new Rt(this[e(441)],this[e(395)])),this[e(393)].set(t[e(387)],new Pt(this[e(441)],this.advertisementEventTracker)),this.renderers[e(434)](t[e(383)],new Mt(this[e(441)],this[e(395)])),this[e(441)]&&console.log("🏭 AdRenderer factory initialized with "+this[e(393)][e(429)]+" renderers")}createAdElement(e,n){const r=Ot,s=this.getRenderer(e[r(399)]),o=document[r(401)](r(384));o[r(433)]="adstage-ad adstage-"+String(e[r(399)])[r(405)](),o[r(412)]("data-adstage-ad-id",n[r(435)]),o[r(412)](r(411),e.id);const{width:i,height:a}=s.calculateAdSize(o,e.config||{},n);switch(o[r(407)][r(431)]=i,o[r(407)][r(417)]=a,o[r(407)].display=r(426),e[r(399)]){case t[r(428)]:if(n[r(385)]){const t=document.createElement(r(438));t[r(397)]=n[r(385)],t[r(407)][r(431)]=r(404),t[r(407)][r(417)]=r(404),t[r(407)][r(430)]=r(386),o[r(415)](t)}break;case t.VIDEO:if(n.videoUrl){const t=document.createElement("video");t.src=n[r(379)],t[r(407)].width=r(404),t[r(407)][r(417)]=r(404),o[r(415)](t)}break;case t[r(380)]:if(n[r(381)]){const t=document[r(401)]("div");t[r(381)]=n[r(381)]||"",t[r(407)].padding="8px",o[r(415)](t)}break;default:o[r(407)].border=r(389),o[r(407)].backgroundColor=r(424),o[r(381)]=e[r(399)]+r(400)}return o}getRenderer(t){const e=Ot,n=this[e(393)][e(439)](t);if(!n)throw new Error("No renderer found for ad type: "+t);return n}[Ot(376)](t,e,n,r,s){const o=Ot;this[o(414)](n)[o(376)](t,e,r,s)}async[Ot(436)](e,n){const r=Ot;if(e[r(399)]!==t.BANNER)return void(this[r(441)]&&console[r(378)](r(419)+e[r(399)]));const s=this.getRenderer(t[r(428)]);await s[r(436)](e,n)}async renderAdSlider(t,e){const n=this[Ot(414)](t.adType);await n.renderMultipleAds(t,e)}async[Ot(410)](t){const e=Ot;if(!t[e(442)])throw new Error(e(391));const n=this[e(414)](t.adType);await n[e(421)](t,t[e(442)]),t[e(420)]=!0}async[Ot(421)](t,e){const n=Ot,r=this[n(414)](t[n(399)]);await r[n(421)](t,e)}[Ot(418)](t){const e=Ot;this[e(414)](t[e(399)])[e(418)](t)}[Ot(392)](t){const e=Ot;return this[e(414)](t)[e(375)]()}[Ot(437)](t,e,n,r){const s=Ot;return this[s(414)](e)[s(437)](t,n,r)}[Ot(425)](t){return new Promise((e,n)=>{const r=Nt,s=new Image;s[r(390)]=()=>{e({width:s[r(432)],height:s.naturalHeight})},s[r(382)]=()=>{n(new Error(r(402)+t))},s.src=t})}async[Ot(388)](e,n,r){const s=Ot;if(r[s(399)]!==t[s(428)])throw new Error(s(408));const o=this[s(414)](t[s(428)]);return await o[s(388)](e,n,r)}async[Ot(398)](e,n,r){const s=Ot;if(r!==t[s(428)]){const t=this[s(414)](r);return{width:s(404),height:t[s(375)](),aspectRatio:16/9}}const o=this[s(414)](t[s(428)]);return await o.calculateOptimalContainerSize(e,n)}[Ot(406)](t,...e){const n=Ot;this[n(441)]&&console[n(406)](n(422)+t,...e)}}const jt=Ht;function Kt(){const t=["substr","autoDestroy","📊 Advertisement event tracking enabled for slot: ","setupAutoCleanup"," (element found)","status",", filters:","_config","renderAdElement","mutationObserver","createAd","get","❌ Failed to find element for viewability tracking: ","slots","adstage-","hideControls","list","advertisement","log","getSlotById","autoSlide","fetchAdData","loop","isLoaded","BANNER","now","renderAd","destroy","delete","renderFallback","❌ Failed to load ad for slot: ","getAttribute","toString","innerHTML","apiKey","18NMfxHg","containerId","random","🗑️ Ad slot destroyed: ","auto-","set","json","Failed to refresh ad slot: ","2049288cDUsMa","deviceType","185jQbAzW","1464gTCtUD","append","100%","_id","createAdWithRetry","getConfig","📊 Fetched ","removedNodes","createAdInternal","controls","광고 생성 중 오류 발생:","🧹 Auto-cleanup: slot ","VIDEO","language","refresh","350IMeUaE","loadAdContentInBackground","📊 Fetched specific ad with ID: ","ms... (attempt ","clear","getBaseUrl","getAllSlots","🗑️ Ads module destroyed","API key not configured","data-adstage-slot-id","customControls","58162hSlCpR","🔄 Retrying viewability tracking for slot: ","2253146JluFbB"," ads automatically","handleRemovedElement","native"," ads for type: ","24OZXXpb","setAttribute","🎯 Ads module initialized (sync mode) with auto-cleanup","height","auto","🚫 Advertisement not found with ID: ","video","detail","style","viewabilityTracker","error","525247FbRBNd"," ads)",". Retrying in ","handleViewableEvent","ensureReady","Failed to fetch ad data: ","from"," removed","slideInterval","createPlaceholder","create"," (attempt ","advertisementEventTracker","default","undefined","onClick","disconnect","warn","muted","🔍 Auto-cleanup MutationObserver enabled","Container not found after ","53471evGxlK","GET","debug","Auto-cleanup failed for slot ","isReady","getElementById","config","TEXT","text","New advertisement viewable tracked for slot:","country","maxLines","advertisements","Ad slot not found: ","init","startSimpleViewabilityTracking","[data-adstage-slot-id]","315447FwUxFZ","autoplay","length","🎯 Simple viewability tracking started for slot: ","adRenderer","85578ixWFCZ"," attempts: ","forEach","_isReady","ELEMENT_NODE","string","adType","adId","interstitial","2IAddsb","refreshAdSlot"];return(Kt=function(){return t})()}function Ht(t,e){const n=Kt();return(Ht=function(t,e){return n[t-=382]})(t,e)}!function(){const t=Ht,e=Kt();for(;;)try{if(448129===-parseInt(t(391))/1*(parseInt(t(443))/2)+-parseInt(t(429))/3*(-parseInt(t(524))/4)+parseInt(t(490))/5*(parseInt(t(434))/6)+-parseInt(t(519))/7+parseInt(t(488))/8*(parseInt(t(480))/9)+parseInt(t(506))/10*(parseInt(t(412))/11)+parseInt(t(491))/12*(-parseInt(t(517))/13))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class Wt{constructor(){const t=Ht;this[t(437)]=!1,this[t(452)]=null,this[t(458)]=new Map,this[t(403)]=null,this.adRenderer=null,this.mutationObserver=null}[jt(426)](t){const e=jt;this[e(452)]=t,this[e(403)]=new B(K[e(511)](),t[e(479)],t[e(414)]||!1,this[e(458)]),this.adRenderer=new Vt(t[e(414)]||!1,this[e(403)]),this[e(448)](),this._isReady=!0,t[e(414)]&&console.log(e(382))}[jt(416)](){return this[jt(437)]}[jt(496)](){return this[jt(452)]}banner(e,n){const r=jt;this[r(395)]();const s={width:n?.width||r(493),height:n?.height||r(384),autoSlide:n?.[r(465)]||!1,slideInterval:n?.[r(399)]||5e3,onClick:n?.[r(406)],adId:n?.[r(441)],language:n?.[r(504)],deviceType:n?.[r(489)],country:n?.[r(422)]};return this[r(455)](e,t[r(469)],s)}[jt(420)](e,n){const r=jt;this[r(395)]();const s={maxLines:n?.[r(423)]||3,style:n?.[r(388)]||r(404),onClick:n?.onClick,adId:n?.[r(441)],language:n?.language,deviceType:n?.[r(489)],country:n?.[r(422)]};return this[r(455)](e,t[r(419)],s)}[jt(386)](e,n){const r=jt;this[r(395)]();const s={width:n?.width||640,height:n?.[r(383)]||360,autoplay:void 0===n?.[r(430)]||n[r(430)],muted:void 0===n?.[r(409)]||n[r(409)],loop:void 0===n?.[r(467)]||n[r(467)],playsinline:!1!==n?.playsinline,controls:void 0!==n?.[r(500)]&&n.controls,hideControls:n?.[r(460)]||!1,customControls:n?.[r(516)],autoSlide:!1,maxAds:1,onClick:n?.[r(406)],...n?.adId&&{adId:n.adId}};return this[r(455)](e,t[r(503)],s)}[jt(522)](e,n){const r=jt;return this[r(395)](),this[r(455)](e,t.NATIVE,n||{})}[jt(442)](e,n){return this[jt(395)](),this.createAd(e,t.INTERSTITIAL,n||{})}[jt(505)](t){const e=jt;this.ensureReady();const n=this[e(458)].get(t);if(!n)throw new Error(e(425)+t);this[e(444)](n),this._config?.[e(414)]&&console[e(463)]("🔄 Ad slot refreshed: "+t)}destroy(t){const e=jt;this.ensureReady();const n=this[e(458)][e(456)](t);if(!n)throw new Error(e(425)+t);n.viewabilityTracker&&n.viewabilityTracker[e(472)]();const r=document[e(417)](n[e(481)]);r&&(r[e(478)]=""),this[e(458)][e(473)](t),this._config?.debug&&console[e(463)](e(483)+t)}[jt(512)](){const t=jt;return this[t(395)](),Array[t(397)](this[t(458)].values())}[jt(464)](t){const e=jt;return this.ensureReady(),this[e(458)][e(456)](t)||null}[jt(455)](t,e,n){const r=jt;if(!this._config?.apiKey)throw new Error(r(514));const s=r(459)+e+"-"+Date[r(470)]()+"-"+Math[r(482)]()[r(477)](36)[r(445)](2,9);return this.createAdWithRetry(t,e,n,s,0),s}async[jt(495)](t,e,n,r,s){const o=jt,i=[0,50,100,200,500];let a,c=null;if(typeof t===o(439)){if(a=t,c=document[o(417)](t),!c)return s<4?(this[o(452)]?.[o(414)]&&console.warn("Container not found: "+t+o(393)+i[s+1]+o(509)+(s+1)+"/5)"),void setTimeout(()=>{this[o(495)](t,e,n,r,s+1)},i[s+1])):void console[o(390)](o(411)+5+o(435)+t)}else c=t,a=c.id||o(484)+r,!c.id&&(c.id=a);try{this[o(499)](a,e,n,r,c)}catch(t){console[o(390)](o(501),t)}}[jt(499)](e,n,r,s,o){const i=jt;o[i(525)](i(515),s),this.adRenderer?.[i(400)](o,s,n,r,this[i(452)]);const a={id:s,containerId:e,adType:n,width:r.width||i(493),height:r[i(383)]||(n===t[i(419)]?i(384):250),isLoaded:!1,isVisible:!1,refreshRate:0,lazyLoad:!1,targeting:{},advertisement:void 0,config:{type:n,...r},load:async()=>this[i(466)](n,r).then(t=>t[0]||null),render:t=>this[i(433)]?.renderAdElement(a,t),refresh:async()=>this.refreshAdSlot(a),destroy:()=>this[i(472)](s)};this.slots[i(485)](s,a),this[i(507)](a),this[i(403)]&&this[i(452)]?.[i(414)]&&console[i(463)](i(447)+s)}async[jt(507)](e){const n=jt;try{const r=await this.fetchAdData(e[n(440)],e[n(418)]);if(!r||0===r[n(431)])return void this[n(433)]?.[n(474)](e);e.adType===t[n(469)]&&r.length>0&&await(this[n(433)]?.optimizeContainerForBannerAds(e,r)),r[n(431)]>1||e[n(418)]?.autoSlide?(await(this[n(433)]?.renderAdSlider(e,r)),this[n(452)]?.[n(414)]&&console[n(463)]("🎠 Slider will handle VIEWABLE events for "+r.length+n(520))):(e[n(462)]=r[0],await(this[n(433)]?.[n(453)](e,r[0])),this[n(427)](e,r[0])),e[n(468)]=!0,this[n(452)]?.[n(414)]&&console.log("✅ Ad loaded for slot: "+e.id+" ("+r[n(431)]+n(392))}catch(t){console[n(390)](n(475)+e.id,t),this[n(433)]?.renderFallback(e)}}[jt(427)](t,e){const n=(r=0)=>{const s=Ht,o=document.getElementById(t.id);if(!o)return void(r<5?(setTimeout(()=>n(r+1),300),this[s(452)]?.debug&&console.log(s(518)+t.id+s(402)+(r+1)+")")):console[s(408)](s(457)+t.id));const i=new L(o,async()=>{const n=s;await this[n(394)](e,t)});t[s(389)]=i,this[s(452)]?.[s(414)]&&console.log(s(432)+t.id+s(449))};n()}async[jt(394)](t,e){const n=jt;try{this[n(403)]&&(await this[n(403)].trackAdvertisementEvent(t[n(494)],e.id,o.VIEWABLE),this[n(452)]?.[n(414)]&&console[n(463)]("✅ Simple viewable impression tracked for ad "+t._id))}catch(t){console[n(390)]("❌ Failed to track viewable impression:",t)}}async[jt(466)](t,e){const n=jt;if(!this[n(452)]?.[n(479)])throw new Error(n(514));if(e[n(441)]){const t=""+K[n(424)][n(387)](e[n(441)]),r=await fetch(t,{method:n(413),headers:T[n(401)](this[n(452)].apiKey)});if(!r.ok){if(404===r[n(450)])return console[n(408)](n(385)+e[n(441)]),[];throw new Error(n(396)+r[n(450)])}const s=await r.json();return this[n(452)]?.[n(414)]&&console[n(463)](n(508)+e.adId,s),[s]}const r=new URLSearchParams;r.append(n(440),t),e[n(504)]&&r[n(492)]("language",e[n(504)]),e[n(489)]&&r.append(n(489),e[n(489)]),e[n(422)]&&r[n(492)](n(422),e[n(422)]);const s=K[n(424)][n(461)]()+"?"+r[n(477)](),o=await fetch(s,{method:n(413),headers:T.create(this[n(452)].apiKey)});if(!o.ok)throw new Error(n(396)+o[n(450)]);const i=(await o[n(486)]())[n(424)]||[];return this._config?.[n(414)]&&console.log(n(497)+i.length+n(523)+t+n(451),{language:e[n(504)],deviceType:e[n(489)],country:e.country}),i}async[jt(444)](t){const e=jt;try{const n=await this[e(466)](t[e(440)],t[e(418)]||{});n&&n[e(431)]>0&&(t[e(462)]=n[0],await(this[e(433)]?.[e(471)](t)),this.advertisementEventTracker&&console.log(e(421),t.id))}catch(n){console.error(e(487)+t.id,n)}}[jt(395)](){if(!this[jt(437)])throw new Error("Ads module not initialized. Call AdStage.init() first.")}[jt(448)](){const t=jt;typeof window!==t(405)&&typeof document!==t(405)&&(this[t(454)]&&this.mutationObserver[t(407)](),this[t(454)]=new MutationObserver(e=>{const n=t;e[n(436)](t=>{const e=n;t[e(498)].forEach(t=>{const n=e;t.nodeType===Node[n(438)]&&this[n(521)](t)})})}),this.mutationObserver.observe(document.body,{childList:!0,subtree:!0}),this[t(452)]?.[t(414)]&&console[t(463)](t(410)))}[jt(521)](t){const e=jt,n=t[e(476)]("data-adstage-slot-id");if(n)return void this.autoDestroy(n);t.querySelectorAll(e(428))[e(436)](t=>{const n=e,r=t[n(476)](n(515));r&&this.autoDestroy(r)})}[jt(446)](t){const e=jt;if(this[e(458)][e(456)](t))try{this[e(458)][e(473)](t),this._config?.[e(414)]&&console.log(e(502)+t+e(398))}catch(n){this[e(452)]?.[e(414)]&&console[e(408)](e(415)+t+":",n)}}destroyModule(){const t=jt,e=this._config?.debug;this[t(454)]&&(this[t(454)].disconnect(),this[t(454)]=null),this[t(458)][t(510)](),this[t(403)]=null,this.adRenderer=null,this._isReady=!1,this[t(452)]=null,e&&console[t(463)](t(513))}}var Xt=qt;function qt(t,e){var n=Zt();return(qt=function(t,e){return n[t-=298]})(t,e)}!function(){for(var t=qt,e=Zt();;)try{if(356618===-parseInt(t(304))/1*(parseInt(t(312))/2)+parseInt(t(298))/3*(-parseInt(t(310))/4)+-parseInt(t(305))/5+parseInt(t(317))/6*(parseInt(t(303))/7)+parseInt(t(336))/8*(-parseInt(t(325))/9)+-parseInt(t(313))/10*(parseInt(t(335))/11)+-parseInt(t(311))/12*(-parseInt(t(318))/13))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class Gt{constructor(){var t=qt;this[t(309)]=!1,this[t(316)]=null,this[t(334)]=null}[Xt(321)](t){var e=Xt;this[e(316)]={timeout:3e4,debug:!1,modules:[e(302),e(337),e(328)],...t},t[e(319)]&&K.setBaseUrl(t[e(319)]),this[e(309)]=!0,t[e(330)]&&console[e(327)](e(326),{modules:this._config[e(322)],endpoint:K.getBaseUrl(),mode:e(329)})}isReady(){return this._isReady}[Xt(315)](){return this[Xt(316)]}[Xt(333)](){return this[Xt(334)]}[Xt(301)](){return K[Xt(300)]()}[Xt(308)](){var t=Xt;return this[t(316)]?.[t(330)]||!1}[Xt(314)](){var t=Xt;return this[t(316)]?.[t(322)]||[]}[Xt(307)](t){var e=Xt;return this[e(314)]()[e(306)](t)}[Xt(323)](t){var e=Xt;if(!this._config)throw new Error(e(332));this._config={...this._config,...t},this[e(308)]()&&console.log(e(299),t)}[Xt(331)](){var t=Xt;if(!this[t(316)]?.[t(338)])throw new Error(t(324));return T[t(320)](this[t(316)].apiKey)}}function Zt(){var t=["23744WfftrX","events","apiKey","3wAERuf","🔄 Config updated","getBaseUrl","getApiEndpoint","ads","5404ljINlq","184223ypDsDr","2417570ceJNFU","includes","isModuleEnabled","isDebugMode","_isReady","2826760WcNKct","12kMMQuu","2cHwVKr","2848820sGaAbT","getEnabledModules","getConfig","_config","1842XWEsDb","23743343AZsoGN","baseUrl","create","init","modules","updateConfig","API key not available","144gYMeHO","✅ Config module initialized (sync mode)","log","config","development","debug","getApiHeaders","Config module not initialized","getOrganizationInfo","_organizationInfo","11vOVKpJ"];return(Zt=function(){return t})()}function Jt(t,e){const n=Yt();return(Jt=function(t,e){return n[t-=118]})(t,e)}const Qt=Jt;function Yt(){const t=["_userProvidedDeviceInfo","ko-KR","getPlatform","clearDeviceInfo","iOS","736IPQKYd","setDeviceProperty","onLine","3039525WiioHo","language","1595482fjrzak","getAutoDetectedDeviceInfo","isMobile","388910fzNPiy","SSR","other","getViewportInfo","height","5398520ThGMzr","Android","mapPlatformForEvents","Mobile Web","218cnoSFB","Unknown","platform","3407064BzyskW","0x0","isBrowser","getDeviceInfo","desktop","toLowerCase","userAgent","test","mobile","getDetailedInfo","139041UCOzqO","web","getUserDeviceInfo","4037QWlwZB","width","Desktop Web","android","setDeviceInfo"];return(Yt=function(){return t})()}!function(){const t=Jt,e=Yt();for(;;)try{if(900030===parseInt(t(129))/1*(-parseInt(t(156))/2)+-parseInt(t(142))/3+parseInt(t(152))/4+-parseInt(t(147))/5+-parseInt(t(159))/6+parseInt(t(144))/7+parseInt(t(139))/8*(parseInt(t(126))/9))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class $t{static[Qt(119)](){const t=Qt;return{...$t[t(145)](),...$t[t(134)]}}static[Qt(145)](){const t=Qt;if(!f[t(118)]())return{category:t(149),platform:"SSR",model:t(148),osVersion:t(148)};const e=navigator[t(122)][t(121)]();let n=t(120);/tablet|ipad/[t(123)](e)?n="tablet":x[t(146)]()&&(n=t(124));const r=x[t(136)]();return{category:n,platform:$t[t(154)](r),model:navigator[t(158)],osVersion:navigator.platform}}static[Qt(133)](t){const e=Qt;$t[e(134)]={...$t[e(134)],...t}}static[Qt(140)](t,e){$t[Qt(134)][t]=e}static[Qt(137)](){$t[Qt(134)]={}}static[Qt(128)](){return{...$t[Qt(134)]}}static[Qt(154)](t){const e=Qt;switch(t){case"ios":return e(138);case e(132):return e(153);case e(127):return e(155);case e(120):return e(131);default:return e(157)}}static[Qt(125)](){const t=Qt;if(!f[t(118)]())return{userAgent:"SSR",language:t(135),platform:t(148),cookieEnabled:!1,onLine:!0,screenResolution:t(160),viewportSize:"0x0"};const e=f[t(150)]();return{userAgent:navigator[t(122)],language:navigator[t(143)]||t(135),platform:navigator.platform,cookieEnabled:navigator.cookieEnabled,onLine:navigator[t(141)],screenResolution:screen[t(130)]+"x"+screen[t(151)],viewportSize:e.width+"x"+e[t(151)]}}}$t[Qt(134)]={};const te=ee;function ee(t,e){const n=re();return(ee=function(t,e){return n[t-=222]})(t,e)}!function(){const t=ee,e=re();for(;;)try{if(735825===parseInt(t(238))/1*(-parseInt(t(242))/2)+-parseInt(t(237))/3+parseInt(t(245))/4+-parseInt(t(222))/5+parseInt(t(240))/6*(parseInt(t(233))/7)+-parseInt(t(231))/8*(-parseInt(t(229))/9)+parseInt(t(239))/10*(parseInt(t(230))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class ne{static[te(223)](){const t=te;return{...ne[t(235)](),...ne[t(241)]}}static[te(235)](){const t=te;if(!f[t(236)]())return{language:t(228),country:"KR"};const e=navigator.language||t(228);return{language:e,country:ne[t(243)](e)}}static[te(243)](t){const e={ko:"KR","ko-KR":"KR",en:"US","en-US":"US","en-GB":"GB",ja:"JP","ja-JP":"JP",zh:"CN","zh-CN":"CN","zh-TW":"TW",de:"DE","de-DE":"DE",fr:"FR","fr-FR":"FR"};if(e[t])return e[t];return e[t[te(226)]("-")[0]]||"KR"}static setUserProperties(t){const e=te;ne._userProperties={...ne[e(241)],...t}}static setUserProperty(t,e){ne[te(241)][t]=e}static[te(225)](){ne[te(241)]={}}static[te(244)](){return{...ne[te(241)]}}static[te(232)](){const t=te;if(!f.isBrowser())return{timezone:t(234),estimatedCountry:"KR"};const e=Intl[t(246)]()[t(224)]()[t(227)];return{timezone:e,estimatedCountry:{"Asia/Seoul":"KR","Asia/Tokyo":"JP","Asia/Shanghai":"CN","Asia/Hong_Kong":"HK","Asia/Taipei":"TW","America/New_York":"US","America/Los_Angeles":"US","Europe/London":"GB","Europe/Berlin":"DE","Europe/Paris":"FR"}[e]||"KR"}}}function re(){const t=["2435442okuNVq","_userProperties","274WjENaW","extractCountryFromLanguage","getCurrentUserProperties","3418540sozkut","DateTimeFormat","6927545SQUNOB","getUserInfo","resolvedOptions","clearUserProperties","split","timeZone","ko-KR","837711ZWxUPs","11uOoAWM","8QcqtCO","estimateLocation","7oTtPFY","UTC","getBaseUserInfo","isBrowser","1505475tkTZSG","5563mCGjPl","20316690dACqpY"];return(re=function(){return t})()}function se(){const t=["getItem","getSessionDuration","ssr_session_","isSessionExpired","_userId","getUserId","37256lyobRn","13882561pStXwG","6jXxhlL","getSessionStats","1467udtgte","setUserId","substr","adstage_user_id","5726toPNKj","2152044fAwCmk","adstage_session_id","10bUWNhK","adstage_session_start","getSessionId","removeItem","refreshSession","3706100sWhdNc","isBrowser","111FyynBt","2390655HBJlkq","getSessionInfo","setItem","now","clearUserId","525364wTRBBM","isNewSession","random","_sessionStartTime"];return(se=function(){return t})()}function oe(t,e){const n=se();return(oe=function(t,e){return n[t-=238]})(t,e)}ne._userProperties={};const ie=oe;!function(){const t=oe,e=se();for(;;)try{if(413459===parseInt(t(249))/1*(parseInt(t(239))/2)+parseInt(t(250))/3+-parseInt(t(240))/4+-parseInt(t(247))/5+-parseInt(t(267))/6*(-parseInt(t(255))/7)+parseInt(t(265))/8*(-parseInt(t(269))/9)+-parseInt(t(242))/10*(-parseInt(t(266))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class ae{static getSessionId(){const t=oe;if(!f[t(248)]())return t(261)+Date[t(253)]();const e=sessionStorage[t(259)]("adstage_session_id");if(e)return e;const n="session_"+Math[t(257)]().toString(36)[t(271)](2,9)+"_"+Date[t(253)]();return sessionStorage[t(252)]("adstage_session_id",n),!ae[t(258)]&&(ae[t(258)]=Date[t(253)](),f[t(248)]()&&sessionStorage[t(252)](t(243),String(ae._sessionStartTime))),n}static[ie(270)](t){const e=ie;ae._userId=t,f[e(248)]()&&localStorage[e(252)](e(238),t)}static[ie(264)](){const t=ie;if(ae[t(263)])return ae[t(263)];if(f.isBrowser()){const e=localStorage[t(259)](t(238));if(e)return ae._userId=e,e}}static[ie(254)](){const t=ie;ae._userId=void 0,f[t(248)]()&&localStorage[t(245)](t(238))}static[ie(251)](){const t=ie,e=ae.getSessionId(),n=ae[t(264)](),r=ae.isNewSession();return{sessionId:e,userId:n,sessionDuration:ae[t(260)](),isNewSession:r}}static[ie(256)](){const t=ie;if(!f.isBrowser())return!0;const e=sessionStorage[t(259)](t(241)),n=sessionStorage[t(259)](t(243));return!e||!n}static[ie(260)](){const t=ie;if(!f[t(248)]())return 0;const e=sessionStorage[t(259)](t(243));return e?Date.now()-parseInt(e,10):0}static[ie(246)](){const t=ie;return f[t(248)]()&&(sessionStorage[t(245)](t(241)),sessionStorage[t(245)](t(243))),ae[t(258)]=void 0,ae.getSessionId()}static isSessionExpired(t=24){return ae[ie(260)]()>60*t*60*1e3}static[ie(268)](){const t=ie,e=ae[t(244)](),n=ae[t(264)](),r=ae[t(260)](),s=ae[t(262)](),o=ae[t(256)]();let i;if(f.isBrowser()){const e=sessionStorage[t(259)](t(243));i=e?parseInt(e,10):void 0}return{sessionId:e,userId:n,startTime:i,duration:r,isExpired:s,isNewSession:o}}}const ce=le;function le(t,e){const n=de();return(le=function(t,e){return n[t-=207]})(t,e)}function de(){const t=["log","setUserId","getCurrentUserProperties","2QWGvbJ","2298510PmtqOC","getConfig","status","track","debug","error","_config","6292432LGheOd","stringify","_isReady","init","POST","736446xHZlkC","6RUurmy","warn","apiKey","events","getUserProperties","getUserId","statusText","setDeviceInfo","Events module not initialized. Call AdStage.init() first.","getUserDeviceInfo","3176118FhdcmT","application/json","setDeviceProperty","sendEventToServer","setUserProperties","📱 User provided device info cleared","👤 User ID set:","Event tracking failed: ","934833qFOoco","25erFdsI","getUserInfo","📱 Device info set:","create","getDeviceInfo","✅ Event tracked:","1328604JLLqyq","📊 Events module initialized","1105895oUPmRR"];return(de=function(){return t})()}!function(){const t=le,e=de();for(;;)try{if(478314===-parseInt(t(224))/1*(-parseInt(t(237))/2)+-parseInt(t(251))/3*(parseInt(t(231))/4)+parseInt(t(225))/5*(-parseInt(t(250))/6)+parseInt(t(233))/7+parseInt(t(245))/8+-parseInt(t(216))/9+parseInt(t(238))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class ue{constructor(){const t=le;this[t(247)]=!1,this[t(244)]=null}[ce(248)](t){const e=ce;this._config=t,this._isReady=!0,t[e(242)]&&console[e(234)](e(232))}isReady(){return this[ce(247)]}[ce(239)](){return this._config}[ce(235)](t){const e=ce;ae[e(235)](t),this[e(244)]?.[e(242)]&&console[e(234)](e(222),t)}[ce(211)](){return ae[ce(211)]()}[ce(220)](t){const e=ce;ne[e(220)](t),this[e(244)]?.debug&&console.log("👤 User properties set:",t)}[ce(210)](){return ne[ce(236)]()}[ce(213)](t){const e=ce;$t[e(213)](t),this[e(244)]?.[e(242)]&&console[e(234)](e(227),t)}[ce(218)](t,e){const n=ce;$t.setDeviceProperty(t,e),this[n(244)]?.[n(242)]&&console.log("📱 Device property set:",t,e)}clearDeviceInfo(){const t=ce;$t.clearDeviceInfo(),this._config?.debug&&console[t(234)](t(221))}[ce(215)](){return $t[ce(215)]()}[ce(229)](){return $t[ce(229)]()}getUserInfo(){return ne.getUserInfo()}[ce(236)](){return ne.getCurrentUserProperties()}async[ce(241)](t,e){const n=ce;if(this[n(247)])if(this[n(244)]?.[n(208)])try{const r={eventName:t,userId:ae.getUserId(),sessionId:ae.getSessionId(),sdkVersion:b(),device:$t[n(229)](),user:ne[n(226)](),params:e||{}};await this[n(219)](r),this._config[n(242)]&&console[n(234)](n(230),t,e)}catch(r){console[n(243)]("❌ Failed to track event:",r),this[n(244)][n(242)]&&console.error("Event data:",{eventName:t,properties:e})}else console[n(207)]("API key not configured for event tracking.");else console[n(207)](n(214))}async[ce(219)](t){const e=ce,n=await fetch(K[e(209)].track(),{method:e(249),headers:{...T[e(228)](this[e(244)][e(208)]),"Content-Type":e(217)},body:JSON[e(246)](t)});if(!n.ok)throw new Error(e(223)+n[e(240)]+" "+n[e(212)])}}const pe=he;function he(t,e){const n=ge();return(he=function(t,e){return n[t-=282]})(t,e)}!function(){const t=he,e=ge();for(;;)try{if(906354===-parseInt(t(320))/1+-parseInt(t(297))/2+parseInt(t(295))/3+parseInt(t(290))/4*(-parseInt(t(296))/5)+-parseInt(t(293))/6+parseInt(t(288))/7*(-parseInt(t(282))/8)+parseInt(t(312))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class fe{constructor(){const t=he;this[t(308)]=!1,this._config=null,this[t(303)]=new Gt,this[t(287)]=new Wt,this[t(300)]=new ue}static[pe(316)](t){const e=pe;!fe[e(304)]&&(fe.instance=new fe);const n=fe.instance;if(!t[e(283)])throw new Error(e(306));n[e(315)]={timeout:3e4,debug:!1,modules:[e(287),e(300),e(303)],...t},n[e(315)][e(317)]&&(K.setBaseUrl(n._config[e(317)]),t.debug&&console.log(e(311),n._config[e(317)]));const r=n[e(315)][e(307)]||[e(287),e(300),e(303)];for(const t of r){const r=n[t];r&&typeof r.init===e(309)&&r[e(316)](n._config)}n[e(308)]=!0,t[e(298)]&&console[e(294)](e(284),{version:e(292),modules:r,apiKey:t[e(283)][e(299)](0,8)+e(313),mode:e(319)})}static isReady(){const t=pe;return fe[t(304)]?.[t(308)]||!1}static[pe(291)](){const t=pe;return fe[t(304)]?.[t(315)]||null}static getInstance(){const t=pe;if(!fe[t(304)])throw new Error(t(310));return fe[t(304)]}static get[pe(287)](){const t=pe;return fe[t(314)]()[t(287)]}static get events(){const t=pe;return fe[t(314)]()[t(300)]}static get[pe(303)](){return fe[pe(314)]().config}static reset(){const t=pe;fe[t(304)]&&(fe[t(304)]._isInitialized=!1,fe[t(304)][t(315)]=null)}}function ge(){const t=["...","getInstance","_config","init","baseUrl",")의 viewable 추적 초기화됨","development","314694XzsOrd","2984kdjLck","apiKey","🚀 AdStage SDK initialized (sync mode)","✅ AdStage Debug: 모든 viewable 추적 데이터 초기화됨","viewableTracker","ads","12775eAMRUR","clearAdViewable","333376FoyRyo","getConfig","2.0.0","272208yFRwwv","log","2312751mGSjVh","40IQvlQD","873790jjmmAm","debug","substring","events","from","📊 AdStage Debug: 현재 viewable 추적 상태","config","instance","size","API key is required for AdStage initialization","modules","_isInitialized","function","AdStage not initialized. Call AdStage.init() first.","🌐 API endpoint configured:","20518839OhdRha"];return(ge=function(){return t})()}function me(t,e){var n=ve();return(me=function(t,e){return n[t-=289]})(t,e)}function Ie(t,e){var n=me;return fe[n(303)]()?fe[n(297)][n(299)](t,e):(console[n(296)](n(293)),Promise.resolve())}function ye(t){var e=me;fe[e(303)]()?fe[e(297)][e(295)](t):console[e(296)](e(293))}function ve(){var t=["28444730FRCycC","1069384CrskgY","10941248oEOMmD","AdStage not initialized. Call AdStage.init() first.","54VzDepF","setUserId","warn","events","767225hZdQuu","track","1267898QuVPiz","2jwGBZE","2157715MNlKEj","isReady","9SWzjtE","getUserId","1185624HEkPtu","getUserProperties"];return(ve=function(){return t})()}function be(){var t=me;if(fe[t(303)]())return fe[t(297)][t(305)]();console.warn(t(293))}function we(t){var e=me;fe[e(303)]()?fe[e(297)].setUserProperties(t):console[e(296)]("AdStage not initialized. Call AdStage.init() first.")}function ke(){var t=me;if(fe[t(303)]())return fe.events[t(289)]();console[t(296)](t(293))}fe[pe(298)]={clearAllViewable:()=>{const t=pe;ot.clear(),console[t(294)](t(285))},clearAdViewable:(t,e)=>{const n=pe;ot[n(289)](t,e),console.log("✅ AdStage Debug: 광고 "+t+"("+e+n(318))},getViewableStatus:()=>{const t=pe;console[t(294)](t(302),{trackedCount:ot[t(286)][t(305)],trackedItems:Array[t(301)](ot.viewableTracker)})}},function(){for(var t=me,e=ve();;)try{if(817777===-parseInt(t(300))/1*(-parseInt(t(301))/2)+-parseInt(t(306))/3+-parseInt(t(291))/4+parseInt(t(298))/5*(parseInt(t(294))/6)+parseInt(t(302))/7+parseInt(t(292))/8+parseInt(t(304))/9*(-parseInt(t(290))/10))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();var Ee,Se={exports:{}},xe={},Ae={exports:{}},Ce={};Ae.exports=function(){if(Ee)return Ce;Ee=1;var t=Symbol.for("react.element"),e=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),i=Symbol.for("react.context"),a=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),l=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),u=Symbol.iterator,p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},h=Object.assign,f={};function g(t,e,n){this.props=t,this.context=e,this.refs=f,this.updater=n||p}function m(){}function I(t,e,n){this.props=t,this.context=e,this.refs=f,this.updater=n||p}g.prototype.isReactComponent={},g.prototype.setState=function(t,e){if("object"!=typeof t&&"function"!=typeof t&&null!=t)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,t,e,"setState")},g.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")},m.prototype=g.prototype;var y=I.prototype=new m;y.constructor=I,h(y,g.prototype),y.isPureReactComponent=!0;var v=Array.isArray,b=Object.prototype.hasOwnProperty,w={current:null},k={key:!0,ref:!0,__self:!0,__source:!0};function E(e,n,r){var s,o={},i=null,a=null;if(null!=n)for(s in void 0!==n.ref&&(a=n.ref),void 0!==n.key&&(i=""+n.key),n)b.call(n,s)&&!k.hasOwnProperty(s)&&(o[s]=n[s]);var c=arguments.length-2;if(1===c)o.children=r;else if(1<c){for(var l=Array(c),d=0;d<c;d++)l[d]=arguments[d+2];o.children=l}if(e&&e.defaultProps)for(s in c=e.defaultProps)void 0===o[s]&&(o[s]=c[s]);return{$$typeof:t,type:e,key:i,ref:a,props:o,_owner:w.current}}function S(e){return"object"==typeof e&&null!==e&&e.$$typeof===t}var x=/\/+/g;function A(t,e){return"object"==typeof t&&null!==t&&null!=t.key?function(t){var e={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,function(t){return e[t]})}(""+t.key):e.toString(36)}function C(n,r,s,o,i){var a=typeof n;"undefined"!==a&&"boolean"!==a||(n=null);var c=!1;if(null===n)c=!0;else switch(a){case"string":case"number":c=!0;break;case"object":switch(n.$$typeof){case t:case e:c=!0}}if(c)return i=i(c=n),n=""===o?"."+A(c,0):o,v(i)?(s="",null!=n&&(s=n.replace(x,"$&/")+"/"),C(i,r,s,"",function(t){return t})):null!=i&&(S(i)&&(i=function(e,n){return{$$typeof:t,type:e.type,key:n,ref:e.ref,props:e.props,_owner:e._owner}}(i,s+(!i.key||c&&c.key===i.key?"":(""+i.key).replace(x,"$&/")+"/")+n)),r.push(i)),1;if(c=0,o=""===o?".":o+":",v(n))for(var l=0;l<n.length;l++){var d=o+A(a=n[l],l);c+=C(a,r,s,d,i)}else if(d=function(t){return null===t||"object"!=typeof t?null:"function"==typeof(t=u&&t[u]||t["@@iterator"])?t:null}(n),"function"==typeof d)for(n=d.call(n),l=0;!(a=n.next()).done;)c+=C(a=a.value,r,s,d=o+A(a,l++),i);else if("object"===a)throw r=String(n),Error("Objects are not valid as a React child (found: "+("[object Object]"===r?"object with keys {"+Object.keys(n).join(", ")+"}":r)+"). If you meant to render a collection of children, use an array instead.");return c}function T(t,e,n){if(null==t)return t;var r=[],s=0;return C(t,r,"","",function(t){return e.call(n,t,s++)}),r}function R(t){if(-1===t._status){var e=t._result;(e=e()).then(function(e){0!==t._status&&-1!==t._status||(t._status=1,t._result=e)},function(e){0!==t._status&&-1!==t._status||(t._status=2,t._result=e)}),-1===t._status&&(t._status=0,t._result=e)}if(1===t._status)return t._result.default;throw t._result}var _={current:null},D={transition:null},B={ReactCurrentDispatcher:_,ReactCurrentBatchConfig:D,ReactCurrentOwner:w};function P(){throw Error("act(...) is not supported in production builds of React.")}return Ce.Children={map:T,forEach:function(t,e,n){T(t,function(){e.apply(this,arguments)},n)},count:function(t){var e=0;return T(t,function(){e++}),e},toArray:function(t){return T(t,function(t){return t})||[]},only:function(t){if(!S(t))throw Error("React.Children.only expected to receive a single React element child.");return t}},Ce.Component=g,Ce.Fragment=n,Ce.Profiler=s,Ce.PureComponent=I,Ce.StrictMode=r,Ce.Suspense=c,Ce.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=B,Ce.act=P,Ce.cloneElement=function(e,n,r){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var s=h({},e.props),o=e.key,i=e.ref,a=e._owner;if(null!=n){if(void 0!==n.ref&&(i=n.ref,a=w.current),void 0!==n.key&&(o=""+n.key),e.type&&e.type.defaultProps)var c=e.type.defaultProps;for(l in n)b.call(n,l)&&!k.hasOwnProperty(l)&&(s[l]=void 0===n[l]&&void 0!==c?c[l]:n[l])}var l=arguments.length-2;if(1===l)s.children=r;else if(1<l){c=Array(l);for(var d=0;d<l;d++)c[d]=arguments[d+2];s.children=c}return{$$typeof:t,type:e.type,key:o,ref:i,props:s,_owner:a}},Ce.createContext=function(t){return(t={$$typeof:i,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:o,_context:t},t.Consumer=t},Ce.createElement=E,Ce.createFactory=function(t){var e=E.bind(null,t);return e.type=t,e},Ce.createRef=function(){return{current:null}},Ce.forwardRef=function(t){return{$$typeof:a,render:t}},Ce.isValidElement=S,Ce.lazy=function(t){return{$$typeof:d,_payload:{_status:-1,_result:t},_init:R}},Ce.memo=function(t,e){return{$$typeof:l,type:t,compare:void 0===e?null:e}},Ce.startTransition=function(t){var e=D.transition;D.transition={};try{t()}finally{D.transition=e}},Ce.unstable_act=P,Ce.useCallback=function(t,e){return _.current.useCallback(t,e)},Ce.useContext=function(t){return _.current.useContext(t)},Ce.useDebugValue=function(){},Ce.useDeferredValue=function(t){return _.current.useDeferredValue(t)},Ce.useEffect=function(t,e){return _.current.useEffect(t,e)},Ce.useId=function(){return _.current.useId()},Ce.useImperativeHandle=function(t,e,n){return _.current.useImperativeHandle(t,e,n)},Ce.useInsertionEffect=function(t,e){return _.current.useInsertionEffect(t,e)},Ce.useLayoutEffect=function(t,e){return _.current.useLayoutEffect(t,e)},Ce.useMemo=function(t,e){return _.current.useMemo(t,e)},Ce.useReducer=function(t,e,n){return _.current.useReducer(t,e,n)},Ce.useRef=function(t){return _.current.useRef(t)},Ce.useState=function(t){return _.current.useState(t)},Ce.useSyncExternalStore=function(t,e,n){return _.current.useSyncExternalStore(t,e,n)},Ce.useTransition=function(){return _.current.useTransition()},Ce.version="18.3.1",Ce}();var Te,Re=Ae.exports;
2
2
  /**
3
3
  * @license React
4
4
  * react-jsx-runtime.production.min.js
@@ -7,4 +7,4 @@ function t(e,n){var r=h();return(t=function(t,e){return r[t-=147]})(e,n)}var e,n
7
7
  *
8
8
  * This source code is licensed under the MIT license found in the
9
9
  * LICENSE file in the root directory of this source tree.
10
- */Ae.exports=function(){if(_e)return Te;_e=1;var t=De,e=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,s=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o={key:!0,ref:!0,__self:!0,__source:!0};function i(t,n,i){var a,c={},l=null,d=null;for(a in void 0!==i&&(l=""+i),void 0!==n.key&&(l=""+n.key),void 0!==n.ref&&(d=n.ref),n)r.call(n,a)&&!o.hasOwnProperty(a)&&(c[a]=n[a]);if(t&&t.defaultProps)for(a in n=t.defaultProps)void 0===c[a]&&(c[a]=n[a]);return{$$typeof:e,type:t,key:l,ref:d,props:c,_owner:s.current}}return Te.Fragment=n,Te.jsx=i,Te.jsxs=i,Te}();var Le=Ae.exports;const Be=De.createContext(null);function Pe({children:t,config:e}){const[n,r]=De.useState(!1),[s,o]=De.useState(null),[i,a]=De.useState(null),c=t=>{try{a(null),n&&ye.reset(),ye.init(t),o(t),r(!0),t.debug&&console.log("✅ AdStage SDK initialized successfully via React Provider")}catch(t){const e=t instanceof Error?t.message:"Unknown error";a(e),console.error("❌ AdStage SDK initialization failed:",t),r(!1),o(null)}};De.useEffect(()=>{e&&!n&&c(e)},[e,n]);const l={isInitialized:n,config:s,initialize:c,reset:()=>{try{ye.reset(),r(!1),o(null),a(null)}catch(t){console.error("❌ AdStage SDK reset failed:",t)}},error:i};return Le.jsx(Be.Provider,{value:l,children:t})}function Ue(){const t=De.useContext(Be);if(!t)throw new Error("useAdStageContext must be used within an AdStageProvider");return t}function Oe(){const{isInitialized:t}=Ue();return t?ye:(console.warn("AdStage SDK is not initialized. Please call initialize() first or provide config to AdStageProvider."),null)}function ze(t,e){var n=Ne();return(ze=function(t,e){return n[t-=396]})(t,e)}function Ne(){var t=["5dmQHlL","562614twqKdo","85986gBtREf","3644291mPzldI","65871QjJdHZ","565443KGfVof","1594980BNLlOL","520eTewab","1279197sTFKqK"];return(Ne=function(){return t})()}!function(){for(var t=ze,e=Ne();;)try{if(321797===-parseInt(t(400))/1+-parseInt(t(397))/2+parseInt(t(403))/3+parseInt(t(401))/4*(-parseInt(t(404))/5)+-parseInt(t(396))/6+parseInt(t(398))/7+-parseInt(t(402))/8*(-parseInt(t(399))/9))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const Me=Ve;function Ve(t,e){const n=Fe();return(Ve=function(t,e){return n[t-=137]})(t,e)}function Fe(){const t=["73360vzXGaC","undefined","1272020mPXapg","AdStage","8feSwcF","669DLCYts","5VdaMen","events","3206PaYkMj","11ZBkYQj","11813328ponskX","14GmcBsB","373170BMZUYP","2742759FRnHTW","368316kttWHH","2.0.0"];return(Fe=function(){return t})()}!function(){const t=Ve,e=Fe();for(;;)try{if(247043===parseInt(t(151))/1+parseInt(t(145))/2*(parseInt(t(142))/3)+-parseInt(t(139))/4*(-parseInt(t(143))/5)+parseInt(t(149))/6*(-parseInt(t(148))/7)+parseInt(t(141))/8*(parseInt(t(150))/9)+parseInt(t(137))/10+parseInt(t(146))/11*(-parseInt(t(147))/12))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const He=Me(152),je=["ads",Me(144),"config"];typeof window!==Me(138)&&(window[Me(140)]=ye);export{ye as AdStage,Pe as AdStageProvider,He as SDK_VERSION,je as SUPPORTED_MODULES,Ee as getUserId,xe as getUserProperties,we as setUserId,ke as setUserProperties,be as track,Ue as useAdStageContext,Oe as useAdStageInstance};
10
+ */Se.exports=function(){if(Te)return xe;Te=1;var t=Re,e=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,s=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o={key:!0,ref:!0,__self:!0,__source:!0};function i(t,n,i){var a,c={},l=null,d=null;for(a in void 0!==i&&(l=""+i),void 0!==n.key&&(l=""+n.key),void 0!==n.ref&&(d=n.ref),n)r.call(n,a)&&!o.hasOwnProperty(a)&&(c[a]=n[a]);if(t&&t.defaultProps)for(a in n=t.defaultProps)void 0===c[a]&&(c[a]=n[a]);return{$$typeof:e,type:t,key:l,ref:d,props:c,_owner:s.current}}return xe.Fragment=n,xe.jsx=i,xe.jsxs=i,xe}();var _e=Se.exports;const De=Re.createContext(null);function Be({children:t,config:e}){const[n,r]=Re.useState(!1),[s,o]=Re.useState(null),[i,a]=Re.useState(null),c=t=>{try{a(null),n&&fe.reset(),fe.init(t),o(t),r(!0),t.debug&&console.log("✅ AdStage SDK initialized successfully via React Provider")}catch(t){const e=t instanceof Error?t.message:"Unknown error";a(e),console.error("❌ AdStage SDK initialization failed:",t),r(!1),o(null)}};Re.useEffect(()=>{e&&!n&&c(e)},[e,n]);const l={isInitialized:n,config:s,initialize:c,reset:()=>{try{fe.reset(),r(!1),o(null),a(null)}catch(t){console.error("❌ AdStage SDK reset failed:",t)}},error:i};return _e.jsx(De.Provider,{value:l,children:t})}function Pe(){const t=Re.useContext(De);if(!t)throw new Error("useAdStageContext must be used within an AdStageProvider");return t}function Le(){const{isInitialized:t}=Pe();return t?fe:(console.warn("AdStage SDK is not initialized. Please call initialize() first or provide config to AdStageProvider."),null)}function ze(t,e){var n=Ue();return(ze=function(t,e){return n[t-=398]})(t,e)}function Ue(){var t=["4311JNaWlP","13810SBgcqe","37HuvQjo","4351116YMKXZk","2239404tmopLW","103032ONVIhB","86218jkPmRu","7hOBwbz","4080858YOXhKJ","2415135sgDBHG"];return(Ue=function(){return t})()}function Me(t,e){const n=Ve();return(Me=function(t,e){return n[t-=461]})(t,e)}!function(){for(var t=ze,e=Ue();;)try{if(903982===-parseInt(t(402))/1*(parseInt(t(406))/2)+parseInt(t(403))/3+parseInt(t(404))/4+parseInt(t(399))/5+-parseInt(t(398))/6*(-parseInt(t(407))/7)+-parseInt(t(405))/8+parseInt(t(400))/9*(-parseInt(t(401))/10))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const Oe=Me;!function(){const t=Me,e=Ve();for(;;)try{if(417209===-parseInt(t(464))/1+-parseInt(t(471))/2*(parseInt(t(472))/3)+-parseInt(t(468))/4+parseInt(t(473))/5+parseInt(t(469))/6*(parseInt(t(465))/7)+-parseInt(t(461))/8*(-parseInt(t(466))/9)+-parseInt(t(474))/10*(-parseInt(t(462))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const Ne=Oe(470),Fe=["ads",Oe(467),Oe(463)];function Ve(){const t=["undefined","3127416NYdPir","1377387MdWquL","config","267540tRvRmf","853097kyTXOD","9mckxrp","events","460556yEBeUc","6QlSYdQ","2.0.0","2CwOrBE","819297ESVmLT","2174860bzhmEE","10RTLWIs"];return(Ve=function(){return t})()}typeof window!==Oe(475)&&(window.AdStage=fe);export{fe as AdStage,Be as AdStageProvider,Ne as SDK_VERSION,Fe as SUPPORTED_MODULES,be as getUserId,ke as getUserProperties,ye as setUserId,we as setUserProperties,Ie as track,Pe as useAdStageContext,Le as useAdStageInstance};