@adstage/web-sdk 3.0.4 → 3.0.5
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.
- package/dist/index.cjs.js +1 -1
- package/dist/index.d.ts +0 -2
- package/dist/index.esm.js +1 -1
- package/dist/index.standalone.js +2 -2
- package/dist/index.umd.js +2 -2
- package/package.json +1 -1
- package/src/managers/device-info-collector.ts +1 -1
- package/src/types/config.ts +1 -2
- package/src/utils/config-utils.ts +1 -7
package/dist/index.esm.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as t}from"react/jsx-runtime";import{createContext as e,useState as n,useEffect as s,useContext as i}from"react";function r(){var t=["DESKTOP","MOBILE","3WgCcuW","593095NZCPIZ","POPUP","BANNER","72845RdddCf","VIEWABLE","TABLET","12mOewWP","263656xqGRZt","885600pdvGAP","WEB","CLICK","279616QBNFyX","VIDEO","INTERSTITIAL","70qkkaln","2631490InxYrM","37950mgARcG","TEXT"];return(r=function(){return t})()}var o,a,c,d,l,u,p,h,f,g,m,I;function v(t,e){var n=r();return(v=function(t,e){return n[t-=498]})(t,e)}!function(){for(var t=v,e=r();;)try{if(237223===parseInt(t(500))/1+-parseInt(t(513))/2+-parseInt(t(517))/3*(parseInt(t(504))/4)+-parseInt(t(518))/5*(-parseInt(t(503))/6)+parseInt(t(511))/7*(-parseInt(t(508))/8)+parseInt(t(505))/9+parseInt(t(512))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}(),a=o||(o={}),c=v,a.BANNER=c(499),a[c(498)]=c(498),a[c(510)]=c(510),a.NATIVE="NATIVE",a[c(509)]=c(509),a[c(514)]=c(514),(l=d||(d={}))[(u=v)(506)]=u(506),l[u(516)]=u(516),(h=p||(p={}))[(f=v)(501)]=f(501),h[f(507)]="CLICK",m=g||(g={}),I=v,m.DESKTOP=I(515),m[I(516)]=I(516),m[I(502)]=I(502);const y=w;function b(){const t=["innerWidth","pow","safeQuerySelector","pageXOffset","waitForElement","✅ 컨테이너 발견: ","⏳ 컨테이너 대기 시작: ","safeSetTextContent","safeGetComputedStyle","1803222qQZlEt","ceil","isBrowser","title","safeQuerySelectorAll","✅ 컨테이너 즉시 발견: ","min","location","번 시도)","isDOMReady","getWindowProperty","remove","safeWindowOpen","ms (","href","querySelector","getViewportInfo","entries",'" 요소가 있는지 확인\n2. React 등에서 컴포넌트가 렌더링된 후 SDK 호출\n3. 철자가 정확한지 확인\n4. 중복된 ID가 없는지 확인\n\n대기 시간: ',"⏳ 컨테이너 대기 중: ","번째 시도, ","forEach","open","error","getDocumentProperty","207188nlgwov","safeAddEventListener","from","getScrollInfo","waitForElements","getElementById","innerHeight","safeAddClass","110tXkCTZ","canUseDOM","179048jjrXDI","safeRemoveEventListener","getPageInfo","removeChild","scrollTop","safeSetInnerHTML","isSSR","pageYOffset","loading","createElement","10MqdqrQ","716513piDpKO","2950794kfcdUS","ms)","map","setProperty","3bJCBEw","undefined","appendChild","devicePixelRatio","DOMContentLoaded","innerHTML","referrer","224994zmnNpT","classList","DOM을 사용할 수 없는 환경입니다.","addEventListener","704429ufdppA","safeRemoveChild","safeRemoveClass","safeGetElementById"," (최대 ","textContent","all","8ENjmeH","safeApplyStyles","log","readyState","getComputedStyle"];return(b=function(){return t})()}function w(t,e){const n=b();return(w=function(t,e){return n[t-=390]})(t,e)}!function(){const t=w,e=b();for(;;)try{if(172593===parseInt(t(426))/1*(parseInt(t(400))/2)+-parseInt(t(433))/3+parseInt(t(410))/4*(-parseInt(t(420))/5)+parseInt(t(458))/6+parseInt(t(421))/7+parseInt(t(444))/8*(parseInt(t(422))/9)+-parseInt(t(408))/10*(parseInt(t(437))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class k{static[y(460)](){const t=y;return typeof window!==t(427)&&typeof document!==t(427)}static[y(416)](){return!this[y(460)]()}static[y(409)](){const t=y;return this[t(460)]()&&void 0!==document[t(447)]}static[y(440)](t){const e=y;return this[e(409)]()?document[e(405)](t):null}static[y(451)](t){const e=y;return this[e(409)]()?document[e(390)](t):null}static[y(462)](t){const e=y;return this.canUseDOM()?Array[e(402)](document.querySelectorAll(t)):[]}static safeCreateElement(t){const e=y;return this[e(409)]()?document[e(419)](t):null}static[y(401)](t,e,n,s){const i=y;this[i(409)]()&&t&&t[i(436)](e,n,s)}static[y(411)](t,e,n,s){this.canUseDOM()&&t&&t.removeEventListener(e,n,s)}static[y(468)](t,e){return this[y(460)]()?window[t]??e:e}static getDocumentProperty(t,e){return this[y(409)]()?document[t]??e:e}static[y(470)](t,e,n){const s=y;return this[s(460)]()?window[s(397)](t,e,n):null}static[y(457)](t){const e=y;return this.isBrowser()&&t?window[e(448)](t):null}static[y(467)](){const t=y;return!!this.canUseDOM()&&document[t(447)]!==t(418)}static waitForDOM(){return new Promise(t=>{const e=w;this[e(409)]()?this[e(467)]()?t():this.safeAddEventListener(document,e(430),()=>t()):t()})}static[y(445)](t,e){const n=y;this[n(409)]()&&t&&Object[n(392)](e)[n(396)](([e,s])=>{const i=n;t.style[i(425)](e,s)})}static[y(407)](t,e){const n=y;this.canUseDOM()&&t&&t[n(434)].add(e)}static[y(439)](t,e){const n=y;this.canUseDOM()&&t&&t[n(434)][n(469)](e)}static[y(456)](t,e){const n=y;this[n(409)]()&&t&&(t[n(442)]=e)}static[y(415)](t,e){const n=y;this.canUseDOM()&&t&&(t[n(431)]=e)}static safeAppendChild(t,e){const n=y;this[n(409)]()&&t&&e&&t[n(428)](e)}static[y(438)](t,e){const n=y;this.canUseDOM()&&t&&e&&t[n(413)](e)}static[y(412)](){const t=y;return{url:this[t(468)](t(465),{href:""})[t(472)],title:this[t(399)](t(461),""),referrer:this[t(399)](t(432),"")}}static[y(391)](){const t=y;return{width:this[t(468)](t(449),0),height:this[t(468)](t(406),0),pixelRatio:this[t(468)](t(429),1)}}static[y(403)](){const t=y;return{scrollTop:this.canUseDOM()?window[t(417)]||document.documentElement[t(414)]:0,scrollLeft:this.getWindowProperty(t(452),0)}}static async waitForElement(t,e={}){const n=y,{timeout:s=3e3,retryInterval:i=100,debug:r=!1}=e;if(!this[n(409)]())throw new Error(n(435));const o=document[n(405)](t);return o?(r&&console.log(n(463)+t),o):(r&&console.log(n(455)+t+n(441)+s+n(423)),new Promise((e,o)=>{const a=n;let c=0;const d=Math[a(459)](s/i),l=()=>{const n=a;c++;const u=document[n(405)](t);if(u)return r&&console[n(446)](n(454)+t+" ("+c+n(395)+c*i+"ms 경과)"),void e(u);if(c>=d){const e='❌ 컨테이너를 찾을 수 없습니다: "'+t+'"\n \n다음을 확인해보세요:\n1. HTML에 id="'+t+n(393)+s+n(471)+c+n(466);return r&&console[n(398)](e),void o(new Error(e))}r&&c%10==0&&console.log(n(394)+t+" ("+c+"/"+d+")");const p=Math[n(464)](i*Math[n(450)](1.2,c),500);setTimeout(l,p)};setTimeout(l,i)}))}static async[y(404)](t,e={}){const n=y,s=t[n(424)](t=>this[n(453)](t,e));return Promise[n(443)](s)}}const E=S;!function(){const t=S,e=C();for(;;)try{if(780458===parseInt(t(250))/1*(-parseInt(t(246))/2)+parseInt(t(240))/3*(-parseInt(t(248))/4)+parseInt(t(247))/5*(-parseInt(t(244))/6)+-parseInt(t(242))/7+parseInt(t(249))/8+parseInt(t(245))/9+parseInt(t(238))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const x=E(239);function A(){return x}function S(t,e){const n=C();return(S=function(t,e){return n[t-=238]})(t,e)}function C(){const t=["9612153NIbSkz","61816nnTxXJ","195AGjAfZ","316ShpuJq","5360464piHWzV","26adWAyQ","32823120CpZRYd",'"3.0.4"',"28038nPJykz","AdStageSDK/","8939700ycHgMf","userAgent","218598uLzLeL"];return(C=function(){return t})()}const T=R;function R(t,e){const n=D();return(R=function(t,e){return n[t-=258]})(t,e)}function D(){const t=["config","getEnabledModules","placeholderMode","735PvLBau","getTimeout","10458TwhPTI","appVersion","getConfig","ads","modules","getAppVersion","4753660bwmnUj","120tTfoWt","timeout","apiKey","events","364371Aewroy","158206HzYvVp","3892224wZlunG","6711760JEhEBZ","debug","11529792OEHiWz","21KkYiJi"];return(D=function(){return t})()}!function(){const t=R,e=D();for(;;)try{if(924668===-parseInt(t(268))/1*(parseInt(t(263))/2)+parseInt(t(264))/3+-parseInt(t(280))/4+parseInt(t(272))/5*(-parseInt(t(274))/6)+parseInt(t(262))/7*(parseInt(t(258))/8)+parseInt(t(267))/9+parseInt(t(265))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class B{static[T(276)](){const t=T;try{const{AdStage:e}=require("../core/adstage");return e[t(276)]()}catch{return null}}static[T(279)](){const t=T,e=B.getConfig();return e?.[t(275)]||"1.0.0"}static isDebugMode(){const t=T,e=B.getConfig();return e?.[t(266)]||!1}static getApiKey(){const t=T,e=B[t(276)]();return e?.[t(260)]}static[T(273)](){const t=T,e=B[t(276)]();return e?.[t(259)]||3e4}static getPlaceholderMode(){const t=T,e=B[t(276)]();return e?.[t(271)]||"subtle"}static[T(270)](){const t=T,e=B[t(276)]();return e?.[t(278)]||[t(277),t(261),t(269)]}}const L=M;function z(){const t=["317958MhaDeg","ios","test","adstage_device_id","collectDeviceInfo","connection","scrollTop","width","platform","71580eAuRtU","2242008gHwFsB","effectiveType","1319285qBGPOW","2466963TMjMjS","isMobile","getScrollInfo","298804geefIG","resolvedOptions","adstage_session_id","web","now","getSlotPosition","SSR","getViewportInfo","height","top","random","211518pcTMby","unknown","getAppVersion","9PxkZGb","left","substr","toString","device_","desktop","generateDeviceId","android","isBrowser","getItem","getPlatform","generateSessionId","setItem","language","259UjfcmZ","colorDepth","userAgent","safeGetElementById","timeZone","pixelRatio"];return(z=function(){return t})()}function M(t,e){const n=z();return(M=function(t,e){return n[t-=212]})(t,e)}!function(){const t=M,e=z();for(;;)try{if(330091===parseInt(t(212))/1+parseInt(t(235))/2+parseInt(t(215))/3*(-parseInt(t(251))/4)+-parseInt(t(247))/5+parseInt(t(244))/6*(parseInt(t(229))/7)+parseInt(t(245))/8+-parseInt(t(248))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class N{static[L(221)](){const t=L;if(!k[t(223)]())return"ssr_device_"+Date[t(255)]();const e=localStorage[t(224)](t(238));if(e)return e;const n=t(219)+Math[t(261)]().toString(36)[t(217)](2,9)+"_"+Date[t(255)]();return localStorage[t(227)](t(238),n),n}static generateSessionId(){const t=L;if(!k[t(223)]())return"ssr_session_"+Date.now();const e=sessionStorage[t(224)](t(253));if(e)return e;const n="session_"+Math[t(261)]()[t(218)](36)[t(217)](2,9)+"_"+Date[t(255)]();return sessionStorage.setItem(t(253),n),n}static[L(249)](){const t=L;return!!k[t(223)]()&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i[t(237)](navigator[t(231)])}static[L(225)](){const t=L;if(!k.isBrowser())return"web";const e=navigator.userAgent.toLowerCase();return/iphone|ipad|ipod/[t(237)](e)?t(236):/android/[t(237)](e)?t(222):N[t(249)]()?t(254):t(220)}static[L(239)](){const t=L,e=k[t(258)]();return{deviceId:N[t(221)](),sessionId:N[t(226)](),osVersion:k[t(223)]()?navigator[t(243)]:t(257),deviceModel:k.isBrowser()?navigator[t(243)]:t(257),appVersion:B[t(214)](),sdkVersion:A(),language:k.isBrowser()&&navigator[t(228)]||"ko",country:"KR",ipAddress:"",userAgent:k[t(223)]()?navigator[t(231)]:t(257),timezone:k[t(223)]()?Intl.DateTimeFormat()[t(252)]()[t(233)]:"UTC",viewportWidth:e[t(242)],viewportHeight:e[t(259)],screenWidth:k[t(223)]()?screen[t(242)]:0,screenHeight:k[t(223)]()?screen.height:0,colorDepth:k[t(223)]()?screen[t(230)]:24,pixelRatio:e[t(234)],connectionType:k.isBrowser()&&navigator[t(240)]?.[t(246)]||t(213),platform:N[t(225)]()}}static[L(256)](t){const e=L,n=k[e(232)](t);if(!n)return e(213);const s=n.getBoundingClientRect(),i=k[e(250)]();return"x:"+Math.round(s[e(216)])+",y:"+Math.round(s[e(260)]+i[e(241)])}}function U(){const t=["undefined","5227mofneb","application/json","API key is required","16592GrnJmW","19638bTVwNK","contentType","9309732xsxBuU","userAgent","create","createForEvents","1330joNfqJ","8OzSNgM","1622736gvHpJq","63hryAsK","1967isTcIa","11leSqXF","682240HMYJBp","12378IMOAMm"];return(U=function(){return t})()}function P(t,e){const n=U();return(P=function(t,e){return n[t-=118]})(t,e)}const O=P;!function(){const t=P,e=U();for(;;)try{if(311392===-parseInt(t(134))/1*(parseInt(t(126))/2)+parseInt(t(128))/3*(parseInt(t(118))/4)+parseInt(t(131))/5+-parseInt(t(132))/6*(parseInt(t(129))/7)+parseInt(t(127))/8+-parseInt(t(119))/9*(parseInt(t(125))/10)+-parseInt(t(130))/11*(-parseInt(t(121))/12))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class V{static[O(123)](t,e){const n=O;if(!t)throw new Error(n(136));const s={"x-api-key":t,"Content-Type":e?.[n(120)]||n(135)};return typeof navigator!==n(133)&&(s["User-Agent"]=e?.[n(122)]||navigator[n(122)]),s}static[O(124)](t,e){const n=O,s=V[n(123)](t);return e?.userAgent&&(s["User-Agent"]=e[n(122)]),s}}function F(t,e){const n=H();return(F=function(t,e){return n[t-=359]})(t,e)}function H(){const t=[" for ad ","38196JBjfMT","🔍 Debug info:","2586996Xvntlj","❌ Failed to track advertisement event:","now","title","referrer","📡 API Response Status: ","4766283LwHCIp","get","height","...","✅ Successfully tracked advertisement event: ","32DXjraY","slots"," - ","BANNER","log","number","url","debug","🚀 Sending advertisement event: ","apiKey","VIEWABLE","3858875NMHTov","10tIbhDi","4453884lPSqap","substring","34214nIITwh","378741hStfPN","stringify","error","length","baseUrl","platform","getSlotPosition","adType"," in slot ","1050lXwMRQ","8qftQUu","status","🚀 AdvertisementEventTracker: Processing "," event for ad ","parseNumericValue","getPageInfo","deviceId","24CURDMR","/advertisements/events/","POST","replace","sessionId"];return(H=function(){return t})()}!function(){const t=F,e=H();for(;;)try{if(953793===parseInt(t(382))/1*(-parseInt(t(400))/2)+parseInt(t(362))/3+parseInt(t(393))/4*(parseInt(t(378))/5)+-parseInt(t(406))/6*(parseInt(t(392))/7)+parseInt(t(367))/8*(-parseInt(t(408))/9)+-parseInt(t(379))/10*(parseInt(t(383))/11)+parseInt(t(380))/12)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class _{constructor(t,e,n,s){const i=F;this[i(387)]=t,this[i(376)]=e,this[i(374)]=n,this[i(368)]=s}async trackAdvertisementEvent(t,e,n){const s=F;try{this[s(374)]&&console.log(s(395)+n+s(396)+t+s(391)+e);const i=this[s(368)][s(363)](e),r=N.collectDeviceInfo(),o={adType:i?.[s(390)]||s(370),platform:r[s(388)],deviceId:r[s(399)],deviceInfo:r,pageUrl:k.getPageInfo()[s(373)],pageTitle:k[s(398)]()[s(359)],referrer:k[s(398)]()[s(360)],slotId:e,slotPosition:N[s(389)](i?.containerId||""),slotWidth:_[s(397)](i?.width),slotHeight:_[s(397)](i?.[s(364)]),sessionId:r[s(404)],pageLoadTime:performance.now(),metadata:{eventType:n,sdkVersion:A(),timestamp:Date[s(410)]()},...n===p[s(377)]&&{isViewable:!0,iabCompliant:!0}},a=this[s(387)]+"/advertisements/events/"+t+"/"+n,c=V.createForEvents(this.apiKey,o);this.debug&&(console[s(371)](s(375)+n+s(405)+t,{url:a,headers:c,eventData:o}),console[s(371)]("🌐 Full API call details:",{method:"POST",url:a,hasApiKey:!!this[s(376)],bodySize:JSON[s(384)](o)[s(386)]}));const d=await fetch(a,{method:s(402),headers:c,body:JSON[s(384)](o)});if(this[s(374)]&&console.log(s(361)+d[s(394)]+" "+d.statusText,{url:a,ok:d.ok}),!d.ok){const t=await d.text();throw new Error("API request failed: "+d.status+" "+d.statusText+s(369)+t)}this.debug&&console[s(371)](s(366)+n+" for ad "+t)}catch(i){console.error(s(409),i),console[s(385)](s(407),{baseUrl:this[s(387)],apiKey:this.apiKey?this[s(376)][s(381)](0,8)+s(365):"NOT_SET",url:this[s(387)]+s(401)+t+"/"+n,eventType:n,adId:t,slotId:e})}}static parseNumericValue(t){const e=F;if(typeof t===e(372))return t;if("string"==typeof t){const n=parseFloat(t[e(403)](/px$/,""));return isNaN(n)?0:n}return 0}}var K=W;function j(){var t=["217202JKYBpT","intersectionRatio","hidden","8959800RCVavb","IntersectionObserver not supported, viewability tracking disabled","6IHXvkC","3296885aXRZnh","37372500IlVaRz","element","isViewableTriggered","isDocumentVisible","4fFRbto","observer","warn","visibilityState","63bhGKSp","observe","586992tTgnNi","onViewableCallback","destroy","IntersectionObserver","disconnect","972633hHeqaq","forEach","initIntersectionObserver","handleIntersection","293744diJfSA","0px"];return(j=function(){return t})()}function W(t,e){var n=j();return(W=function(t,e){return n[t-=181]})(t,e)}!function(){for(var t=W,e=j();;)try{if(949638===-parseInt(t(204))/1*(parseInt(t(199))/2)+parseInt(t(193))/3*(-parseInt(t(182))/4)+-parseInt(t(205))/5+-parseInt(t(202))/6+parseInt(t(188))/7+parseInt(t(197))/8*(parseInt(t(186))/9)+parseInt(t(206))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class q{constructor(t,e){var n=W;this[n(183)]=null,this[n(208)]=!1,this[n(207)]=t,this[n(189)]=e,this[n(195)]()}[K(195)](){var t=K;t(191)in window?(this[t(183)]=new IntersectionObserver(e=>this[t(196)](e),{threshold:.5,rootMargin:t(198)}),this.observer[t(187)](this[t(207)])):console[t(184)](t(203))}[K(196)](t){var e=K;t[e(194)](t=>{var n=e;t[n(200)]>=.5&&this[n(181)]()&&!this[n(208)]&&(this[n(208)]=!0,this[n(189)]&&this.onViewableCallback())})}[K(181)](){var t=K;return!document[t(201)]&&"visible"===document[t(185)]}[K(190)](){var t=K;this.observer&&(this[t(183)][t(192)](),this[t(183)]=null)}}function J(){const t=["/advertisements/events","https://api.adstage.io","production","245borIAK","/advertisements/list","7802326TDstHi","/events/track","events","810314pDVOHv","setBaseUrl","https://beta-api.adstage.app","4047736XNEgUJ","getBaseUrl","advertisements","2528742ouhqpC","startsWith","3PvBsyF","93608YZAIcO","156516GdFodp","14515866QFyfRX","baseUrl","track","detail"];return(J=function(){return t})()}const Y=Z;function Z(t,e){const n=J();return(Z=function(t,e){return n[t-=417]})(t,e)}!function(){const t=Z,e=J();for(;;)try{if(755766===parseInt(t(419))/1*(-parseInt(t(434))/2)+parseInt(t(417))/3+-parseInt(t(420))/4*(-parseInt(t(429))/5)+-parseInt(t(421))/6+parseInt(t(431))/7+parseInt(t(437))/8+-parseInt(t(422))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const X={production:Y(427),beta:Y(436)};Y(428);const G={advertisements:{list:Y(430),detail:"/advertisements",events:Y(426)},events:{track:Y(432)}};class Q{constructor(t){const e=Y;this[e(439)]={list:()=>""+this[e(423)]+G[e(439)].list,detail:t=>""+this[e(423)]+G[e(439)][e(425)]+"/"+t,events:(t,n)=>""+this.baseUrl+G[e(439)][e(433)]+"/"+t+"/"+n},this[e(433)]={track:()=>""+this[e(423)]+G[e(433)][e(424)]},this[e(423)]=t||X[e(428)]}[Y(435)](t){this[Y(423)]=t}[Y(438)](){return this[Y(423)]}custom(t){const e=Y;return""+this[e(423)]+(t[e(418)]("/")?t:"/"+t)}}const $=new Q;var tt=et;function et(t,e){var n=st();return(et=function(t,e){return n[t-=258]})(t,e)}!function(){for(var t=et,e=st();;)try{if(891489===-parseInt(t(272))/1+parseInt(t(269))/2*(parseInt(t(265))/3)+-parseInt(t(258))/4+parseInt(t(266))/5+-parseInt(t(267))/6+parseInt(t(273))/7+parseInt(t(259))/8*(parseInt(t(260))/9))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class nt{static[tt(264)](t,e,n,s,i=!1){var r=tt;i&&console.log(r(262)+t[r(270)]+r(274)+n+r(261)+e.id),s(t[r(270)],e.id,p.VIEWABLE)}static trackInitialSlideViewable(t,e,n,s=!1){var i=tt;s&&console[i(263)](i(271)+t[i(270)]+" (index: 0) in slot: "+e.id),n(t[i(270)],e.id,p[i(268)])}}function st(){var t=["_id","🎯 Triggering initial VIEWABLE event: ad ","400272kiiPvC","869351WlWnHT"," (index: ","6534096ZkoCkO","104kgSmnk","1378476dJCWYT",") in slot: ","🎯 Triggering VIEWABLE event for slide change: ad ","log","trackSlideViewable","30582GDVkJJ","8387250AIabMD","9792240Sgvglc","VIEWABLE","150eHvhXy"];return(st=function(){return t})()}function it(){const t=["🔗 ","1383558sGZSyB","_blank","addClickEvent","addClickEventForSlider","_id","1773klKSMW","isClickable","cursor","click","adType","addClickEventsBatch","714048foZzUD"," ad clicked: ","56PXreZB","pointer","log","stopPropagation","preventDefault"," -> ","1765594eWhUIq","addEventListener","25848LdYseE","addClickEventForRenderer","style","57955ZZbnJC","5646753rIdcRo","linkUrl","4829634scmgbt","open"];return(it=function(){return t})()}const rt=ot;function ot(t,e){const n=it();return(ot=function(t,e){return n[t-=225]})(t,e)}!function(){const t=ot,e=it();for(;;)try{if(507450===parseInt(t(250))/1+-parseInt(t(228))/2+-parseInt(t(239))/3+parseInt(t(252))/4*(parseInt(t(233))/5)+parseInt(t(236))/6+parseInt(t(234))/7+-parseInt(t(230))/8*(parseInt(t(244))/9))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class at{static[rt(241)](t,e,n,s,i=!1,r){const o=rt;e[o(235)]&&(t[o(232)][o(246)]="pointer",t.addEventListener(o(247),t=>{const a=o;if(t[a(226)](),t[a(225)](),s&&s(e[a(243)],n.id,p.CLICK),window[a(237)](e[a(235)],a(240)),i){const t=r||String(n[a(248)]).toLowerCase();console.log("🔗 "+t+a(251)+e[a(243)]+a(227)+e[a(235)])}}))}static[rt(231)](t,e,n,s,i=!1,r){const o=rt;e.linkUrl&&(t[o(232)][o(246)]=o(253),t[o(229)]("click",t=>{const a=o;t.preventDefault(),t[a(225)]();if(s()(e._id,n.id,p.CLICK),window[a(237)](e.linkUrl,a(240)),i){const t=r||String(n[a(248)]).toLowerCase();console[a(254)](a(238)+t+a(251)+e[a(243)]+a(227)+e.linkUrl)}}))}static[rt(242)](t,e,n,s,i=!1,r){this[rt(241)](t,e,n,s,i,r)}static[rt(245)](t){return Boolean(t.linkUrl)}static[rt(249)](t,e,n,s,i=!1,r){t.forEach((t,o)=>{const a=ot,c=e[o];c&&this[a(241)](t,c,n,s,i,r)})}}const ct=lt;function dt(){const t=["trackSlideViewable","fontSize","addEventListener","button","addClickEventForSlider","clientX","8px","preventDefault","100%","forEach","children","addTouchSupport","#000","changedTouches","50px","3812TeFiSt","border","mouseenter","img","adstage-slide-container","adstage-slide","toLowerCase","none","body","width",".adstage-dot","appendChild","Text Ad","abs"," Ad","adstage-dots","autoSlideInterval","VIDEO","905RDXJro","center","touchmove","Banner Ad","1px dashed #ccc","cover","adType","objectFit","normal","_id","data-adstage-ad-id","687032MeeNqZ","getBoundingClientRect","0.7","entries","setAttribute","2384361tGKKYr","setProperty","string","199790dUCrXf","touchstart","style","14px","background","BANNER","TEXT","transparent","relative","createSimpleAdElement","div","video","height","overflow","opacity","textContent","mouseleave","querySelectorAll","7wrCSEr","adstage-slider-wrapper","touchend","#f0f0f0","100px","backgroundColor","auto","className","color","\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 ","click","white","637566ZbWzqw","0.9","200px","padding","src","includes","189704EEsfWS","cssText","display","#cccccc","contains","transform","classList","transition","whiteSpace","hidden","306504szvNYA","length","createElement","videoUrl","transform 0.4s ease-out","remove","#666666","imageUrl","createMinimalDotIndicator","removeChild","active","inline-block"];return(dt=function(){return t})()}function lt(t,e){const n=dt();return(lt=function(t,e){return n[t-=494]})(t,e)}!function(){const t=lt,e=dt();for(;;)try{if(110048===-parseInt(t(546))/1+parseInt(t(582))/2+parseInt(t(592))/3+-parseInt(t(509))/4*(parseInt(t(527))/5)+parseInt(t(576))/6+-parseInt(t(564))/7*(parseInt(t(538))/8)+parseInt(t(543))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class ut{static createSimpleAdElement(t,e){const n=lt,s=document[n(594)](n(556));switch(s[n(571)]="adstage-ad adstage-"+String(t[n(533)])[n(515)](),s[n(542)](n(537),e[n(536)]),s[n(542)]("data-adstage-slot-id",t.id),s[n(548)][n(584)]="block",s[n(548)][n(518)]=n(502),s.style.height="auto",t[n(533)]){case o[n(551)]:if(e[n(599)]){const t=document[n(594)](n(512));t[n(580)]=e.imageUrl,t.style[n(518)]=n(502),t[n(548)][n(558)]=n(570),t[n(548)][n(534)]=n(532),s[n(520)](t)}else s[n(548)].height=n(568),s[n(548)][n(569)]=n(567),s.style[n(510)]="1px dashed #ccc",s[n(561)]=n(530);break;case o[n(526)]:if(e[n(595)]){const t=document[n(594)](n(557));t.src=e.videoUrl,t.style[n(518)]="100%",t[n(548)][n(558)]=n(570),s[n(520)](t)}else s[n(548)][n(558)]=n(578),s.style[n(569)]=n(506),s[n(548)][n(510)]="1px solid #666",s[n(561)]="Video Ad",s.style[n(572)]=n(575);break;case o.TEXT:if(e[n(561)]){const t=document[n(594)](n(556));t[n(561)]=e[n(561)]||"",t[n(548)].padding=n(500),t[n(548)][n(495)]=n(549),s[n(520)](t)}else s[n(548)].height=n(508),s[n(548)][n(579)]=n(500),s.textContent=n(521);break;default:s[n(548)][n(558)]=n(568),s.style.border=n(531),s[n(548)][n(569)]="#f9f9f9",s[n(561)]=t[n(533)]+n(523)}return s}static createSliderContainer(t,e,n,s,i=!1){const r=lt,a=document[r(594)](r(556));a[r(571)]=r(565);const c={position:r(554),overflow:r(591)};if(t[r(518)]&&0!==t.width){let e;e="string"==typeof t.width?t[r(518)][r(581)]("px")||t.width.includes("%")?t[r(518)]:t[r(518)]+"px":t.width+"px",c[r(518)]=e,c[r(584)]=r(603)}else c[r(584)]=r(603);if(t[r(558)]&&0!==t[r(558)]){const e="string"==typeof t[r(558)]?t[r(558)]:t.height+"px";c[r(558)]=e}Object[r(541)](c).forEach(([t,e])=>{const n=r;a[n(548)][n(544)](t,e)});const d=!t[r(518)]||0===t[r(518)],l=!t[r(558)]||0===t[r(558)];if(d||l){const n=document.createElement(r(556));if(n.style[r(583)]="\n position: absolute;\n visibility: hidden;\n white-space: nowrap;\n top: -9999px;\n left: -9999px;\n ",!d&&t[r(518)]){let e;e=typeof t.width===r(545)&&(t[r(518)][r(581)]("px")||t[r(518)][r(581)]("%"))?t[r(518)]:t[r(518)]+"px",n[r(548)][r(518)]=e,n[r(548)][r(590)]=r(535)}document[r(517)].appendChild(n);let s=0,i=0;e[r(503)](e=>{const o=r,a=this[o(555)](t,e);n.appendChild(a);const c=a[o(539)]();c[o(518)]>s&&(s=c[o(518)]),c.height>i&&(i=c[o(558)]),n[o(601)](a)}),d&&s>0&&(a[r(548)][r(518)]=s+"px",c[r(518)]=s+"px"),l&&i>0&&(a[r(548)][r(558)]=i+"px",c[r(558)]=i+"px"),document[r(517)][r(601)](n)}const u=[...e,e[0]],p=document.createElement(r(556));p.className=r(513);const h={display:"flex",transition:"transform 0.4s ease-out",width:100*u[r(593)]+"%"};t[r(558)]&&0!==t[r(558)]&&(h.height=r(502)),Object[r(541)](h)[r(503)](([t,e])=>{const n=r;p[n(548)][n(544)](t,e)}),u.forEach((e,n)=>{const o=r,a=document[o(594)](o(556));a[o(571)]=o(514);const c={width:100/u.length+"%","flex-shrink":"0",display:"flex","align-items":"center","justify-content":o(528)};t[o(558)]&&0!==t[o(558)]&&(c[o(558)]=o(502)),Object[o(541)](c).forEach(([t,e])=>{const n=o;a[n(548)][n(544)](t,e)});const d=this[o(555)](t,e);at[o(498)](d,e,t,s,i,String(t.adType)[o(515)]()),a.appendChild(d),p[o(520)](a)});const f=e.every(t=>t[r(533)]===o[r(552)])?null:this[r(600)](e.length);let g=0;const m=e[r(593)],I=1e3*(n?.[r(525)]||3),v=(n,o=!1)=>{const a=r;g=n,p[a(548)][a(589)]=a(o?516:596),p[a(548)][a(587)]="translateX(-"+100/u[a(593)]*g+"%)";const c=g===m?0:g;if(f){f[a(563)](a(519))[a(503)]((t,e)=>{const n=a,s=t;e===c?(s[n(588)].add(n(602)),s.style[n(550)]=n(598),s[n(548)].borderColor=n(598),s.style[n(560)]="1"):(s.classList[n(597)]("active"),s[n(548)][n(550)]=n(553),s[n(548)].borderColor=n(585),s[n(548)][n(560)]=n(540))})}nt[a(494)](e[c],t,c,s,i)},y=()=>{g===m&&setTimeout(()=>{v(0,!0)},400)};if(f){f[r(563)](r(519))[r(503)]((t,e)=>{const n=r;t.addEventListener(n(574),()=>v(e))})}let b=setInterval(()=>{v(g+1),y()},I);return a[r(496)](r(511),()=>{clearInterval(b)}),a[r(496)](r(562),()=>{b=setInterval(()=>{v(g+1),y()},I)}),this[r(505)](p,v,()=>g,m,y),a[r(520)](p),f&&a[r(520)](f),v(0),(!t.width||0===t.width)&&setTimeout(()=>{const e=r,n=p[e(504)][0];if(n){const s=n[e(504)][0];if(s){const n=s[e(539)]();a.style.width=n[e(518)]+"px",(!t[e(558)]||0===t.height)&&(a[e(548)][e(558)]=n.height+"px"),a.style[e(559)]=e(591)}}},10),a}static[ct(600)](t){const e=ct,n=document[e(594)]("div");n[e(571)]=e(524),n[e(548)][e(583)]="\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 ";for(let s=0;s<t;s++){const t=document[e(594)](e(497));t.className="adstage-dot",t[e(548)][e(583)]=e(573),t[e(496)](e(511),()=>{const n=e;!t.classList.contains(n(602))&&(t.style.borderColor="#999999",t[n(548)].opacity=n(577))}),t[e(496)](e(562),()=>{const n=e;!t[n(588)][n(586)](n(602))&&(t[n(548)].borderColor=n(585),t[n(548)].opacity=n(540))}),n[e(520)](t)}return n}static[ct(505)](t,e,n,s,i){const r=ct;let o=0,a=!1;t[r(496)](r(547),t=>{const e=r;o=t.touches[0][e(499)],a=!0}),t.addEventListener(r(529),t=>{a&&t[r(501)]()}),t[r(496)](r(566),t=>{const c=r;if(!a)return;a=!1;const d=t[c(507)][0][c(499)],l=o-d;if(Math[c(522)](l)>50){const t=n();if(l>0){e(t+1),i&&i()}else{e(t>0?t-1:s-1)}}})}}const pt=ht;function ht(t,e){const n=gt();return(ht=function(t,e){return n[t-=282]})(t,e)}!function(){const t=ht,e=gt();for(;;)try{if(360014===parseInt(t(294))/1*(parseInt(t(293))/2)+-parseInt(t(283))/3+-parseInt(t(285))/4*(parseInt(t(290))/5)+-parseInt(t(282))/6+parseInt(t(284))/7+-parseInt(t(295))/8*(-parseInt(t(287))/9)+-parseInt(t(300))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class ft{static[pt(298)](t,e,n=!1){const s=pt,i=t+"_"+e;return ft[s(297)][s(296)](i)?(n&&console[s(292)](s(301)+t+s(299)+e),!0):(ft[s(297)][s(288)](i),n&&console[s(292)]("✅ New viewable recorded for ad "+t+s(299)+e),!1)}static[pt(291)](){const t=pt;ft.viewableTracker[t(291)]()}static[pt(286)](t,e){const n=pt,s=t+"_"+e;ft[n(297)][n(289)](s)}}function gt(){const t=[" in slot ","4493640KRwRwU","Duplicate viewable blocked for ad ","3556248MbhNAa","315930eIvTEq","4999834uSrpwC","26692mGkOXY","clearAdViewable","9PTJjAM","add","delete","65MNDNjm","clear","log","313066QUXwVV","4rxpMTk","2030008sWwJod","has","viewableTracker","isDuplicateViewable"];return(gt=function(){return t})()}ft[pt(297)]=new Set;const mt=vt;function It(){const t=["filter","11088312wUvxpU","adstage-class","renderFallback","warn","11px","auto"," in slot ","px)","⚠️ Created empty ","generic","getContainerHeight","3152496LEMuLU","isEmpty","<span>Loading ","getDefaultHeight","block"," slot: ","advertisementEventTracker",".adstage-slot","1178190bglvJA","parentElement"," event","5781388gFFngF","transparent","className","createElement","rgba(0, 0, 0, 0.02)","2px dashed #e74c3c","innerHTML","fontSize","setAttribute","backgroundColor","getElementById","4px","1px solid rgba(0, 0, 0, 0.08)","#666",'div[style*="height"]',"minHeight","#e74c3c","\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 ","adstage-slot adstage-empty adstage-"," event for ad ","42OXWeOt"," for ","949548aNEAVS","alignItems","invisible","border","adType","⚠️ AdvertisementEventTracker not available for ","6px","fontFamily",".adstage-","minimal","true","flex","📊 Advertisement event tracked: ","closest",'[class*="ad"]',"number","center","18wlljHx","borderRadius","📏 Using 100% height (container: ","getAttribute","div","\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 ","appendChild","createEventTrackingCallback","monospace","357468wOoAUa","data-adstage-empty","VIEWABLE"," for ad ","style","208491hXfxZv","error","data-adstage-container","📏 Using default height ","justifyContent","unknown",'[data-adstage-container="true"]',"rgba(248, 249, 250, 0.5)","toLowerCase","trackAdvertisementEvent","data-adstage-slot"," x ","none","height","debug","contains","placeholderMode","createPlaceholder","log",'[class*="banner"]',"containerId","⚠️ ","width","rgba(231, 76, 60, 0.1)",'[class*="container"]',"applyPlaceholderStyle","createEmptyContainer","hasAttribute","100%","subtle","classList","color"," ad...</span>",'div[style*="min-height"]',"display","#f9f9f9"];return(It=function(){return t})()}function vt(t,e){const n=It();return(vt=function(t,e){return n[t-=111]})(t,e)}!function(){const t=vt,e=It();for(;;)try{if(837334===parseInt(t(197))/1+parseInt(t(166))/2+-parseInt(t(133))/3+-parseInt(t(144))/4+parseInt(t(141))/5+parseInt(t(192))/6*(-parseInt(t(164))/7)+parseInt(t(122))/8*(parseInt(t(183))/9))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class yt{constructor(t,e=!1,n){const s=vt;this[s(170)]=t,this.debug=e,this[s(139)]=n||null}[mt(214)](t,e,n,s){const i=mt,r=document[i(147)](i(187));r.id=e,r[i(146)]="adstage-slot adstage-"+String(this[i(170)])[i(205)](),r[i(152)](i(199),i(176)),r[i(152)]("data-adstage-type",String(this.adType)),r[i(152)](i(207),e);const{width:o,height:a}=this.calculateAdSize(t,n,s)||{width:i(113),height:this[i(136)]()};r[i(196)].width=o,r[i(196)].height=a;const c=s?.[i(213)]||n[i(213)]||i(168);this[i(222)](r,c),t[i(189)](r),this.debug&&console[i(215)]("📦 Placeholder created for "+this.adType+i(138)+e+" ("+o+i(208)+a+") - Mode: "+c)}applyPlaceholderStyle(t,e){const n=mt;switch(e){case n(168):t.style[n(153)]=n(145),t[n(196)][n(169)]=n(209),t[n(196)].opacity="0",t.innerHTML="";break;case n(145):t[n(196)][n(153)]=n(145),t[n(196)][n(169)]="none",t.style[n(119)]=n(137),t.innerHTML="";break;case n(114):t.style[n(153)]=n(148),t[n(196)][n(169)]=n(209),t[n(196)].borderRadius=n(155),t.style[n(119)]=n(177),t[n(196)][n(167)]=n(182),t[n(196)].justifyContent=n(182),t[n(150)]='<span style="color: rgba(0, 0, 0, 0.3); font-size: 11px; font-family: sans-serif;">•••</span>';break;case n(175):t.style[n(153)]=n(204),t[n(196)][n(169)]=n(156),t.style[n(184)]=n(172),t[n(196)][n(119)]=n(177),t[n(196)][n(167)]=n(182),t[n(196)][n(201)]=n(182),t.innerHTML='<span style="color: rgba(0, 0, 0, 0.4); font-size: 12px; font-family: -apple-system, sans-serif;">•••</span>';break;case"debug":t[n(196)][n(169)]=n(149),t[n(196)][n(119)]=n(177),t[n(196)].alignItems=n(182),t[n(196)][n(201)]=n(182),t[n(196)][n(153)]=n(220),t[n(196)][n(116)]=n(160),t[n(196)][n(173)]=n(191),t[n(196)][n(151)]=n(126),t[n(150)]=n(135)+this.adType+n(117);break;default:t[n(196)][n(169)]="1px dashed #ccc",t[n(196)][n(119)]=n(177),t[n(196)][n(167)]=n(182),t[n(196)][n(201)]=n(182),t[n(196)].backgroundColor=n(120),t[n(196)][n(116)]=n(157),t[n(150)]=n(135)+this[n(170)]+n(117)}}calculateAdSize(t,e,n){const s=mt,i=e[s(219)],r=e[s(210)];let o,a;if(o="number"==typeof i?i+"px":"string"==typeof i?i:"100%",typeof r===s(181))a=r+"px";else if("string"==typeof r&&r!==s(113)&&r!==s(127))a=r;else{const e=this[s(132)](t);e>0?(a=s(113),(n?.[s(211)]||this[s(211)])&&console[s(215)](s(185)+e+s(129))):(a=this.getDefaultHeight(),(n?.[s(211)]||this[s(211)])&&console[s(215)](s(200)+a+s(165)+this.adType))}return{width:o,height:a}}[mt(132)](t){const e=mt,n=window.getComputedStyle(t),s=parseFloat(n[e(210)]);if(!s||0===s){const s=parseFloat(n[e(159)]);if(s>0)return s;if(t[e(196)][e(210)]&&t[e(196)][e(210)]!==e(127)){const n=parseFloat(t[e(196)].height);if(n>0)return n}const i=t[e(186)](e(210));if(i){const t=parseFloat(i);if(t>0)return t}}return s||0}[mt(190)](){return async(t,e,n)=>{const s=vt;if(n===p[s(194)]){if(ft.isDuplicateViewable(t,e,this[s(211)]))return void(this[s(211)]&&console.log("🚫 Duplicate viewable blocked for ad "+t+" in slot "+e));this[s(211)]&&console.log("✅ New viewable recorded for ad "+t+" in slot "+e)}if(this[s(139)])try{this[s(211)]&&console[s(215)]("🔄 Starting advertisement event tracking: "+n+s(195)+t+s(128)+e),await this[s(139)][s(206)](t,e,n),this[s(211)]&&console[s(215)](s(178)+n+" for ad "+t+" in slot "+e)}catch(e){this[s(211)]&&console[s(198)]("❌ Failed to track "+n+s(163)+t+":",e)}else this.debug&&console[s(125)](s(171)+n+s(143))}}[mt(124)](t){const e=mt,n=document[e(154)](t.id);if(n){const s=[...[n.querySelector(e(203)),n[e(179)]('[data-adstage-container="true"]'),n][e(121)](t=>t&&t[e(112)](e(199))),...[n[e(179)](e(140)),n.closest(e(174)+String(this.adType).toLowerCase()),n[e(179)](e(180)),n[e(179)](e(216)),n[e(179)](e(221)),n[e(179)](e(158)),n[e(179)](e(118)),n[e(142)]][e(121)](Boolean)][0];if(s){let n=e(202);n=s[e(112)]("data-adstage-container")?"adstage-official":s[e(115)][e(212)]("adstage-slot")?e(123):e(131),s[e(196)].cssText+=e(188),s[e(150)]="",s.setAttribute(e(193),e(176)),this[e(211)]&&console.warn(e(218)+this[e(170)]+" container collapsed ("+n+"): "+t.id,s)}else this[e(111)](t)}t.advertisement=void 0,t[e(134)]=!0}[mt(111)](t){const e=mt,n=document.getElementById(t[e(217)]);if(n){n[e(150)]="";const s=document[e(147)](e(187));s.id=t.id,s[e(146)]=e(162)+String(this[e(170)])[e(205)](),s[e(152)](e(199),e(176)),s[e(152)](e(193),e(176)),s[e(152)](e(207),t.id),s.style.cssText=e(161),n[e(189)](s),this[e(211)]&&console[e(125)](e(130)+this[e(170)]+" container: "+t.id)}}[mt(215)](t,...e){const n=mt;this[n(211)]&&console[n(215)]("["+this[n(170)]+"] "+t,...e)}}function bt(t,e){const n=Et();return(bt=function(t,e){return n[t-=309]})(t,e)}const wt=bt;!function(){const t=bt,e=Et();for(;;)try{if(984640===-parseInt(t(346))/1*(-parseInt(t(342))/2)+parseInt(t(360))/3+-parseInt(t(354))/4+parseInt(t(311))/5*(-parseInt(t(325))/6)+-parseInt(t(363))/7+-parseInt(t(379))/8+parseInt(t(333))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class kt extends yt{constructor(t=!1,e){super(o.BANNER,t,e)}getDefaultHeight(){return bt(385)}async[wt(340)](t,e){const n=wt,s=document[n(316)](t.containerId);if(!s)return;const i=document[n(343)](n(328));i[n(362)]=n(409);const r=t[n(408)],o=s[n(355)]||s;if(r)i[n(341)][n(388)]=n(329),i.style[n(338)]=String(r);else{const e=t[n(377)],s={width:e?.[n(388)],height:e?.[n(338)]},{width:r,height:a}=this[n(345)](o,s,{debug:this[n(414)]});i[n(341)][n(388)]=r,i[n(341)][n(338)]=a}e[n(315)]?await this[n(320)](i,e,t):i[n(344)]="<div>"+(e[n(327)]||n(406))+n(378),at[n(353)](i,e,t,()=>this[n(374)](),this[n(414)],n(339)),s[n(344)]="",s[n(352)](i)}async[wt(380)](t,e){const n=wt,s=document.getElementById(t[n(394)]);if(!s)throw new Error("Container not found: "+t[n(394)]);await this[n(411)](t,e);const i=this[n(374)](),r={autoSlideInterval:(t[n(377)]?.[n(392)]||5e3)/1e3,...t[n(377)],optimizedHeight:t[n(408)],aspectRatio:t.aspectRatio},o=ut[n(386)](t,e,r,i,this[n(414)]);o&&(s.innerHTML="",s[n(352)](o),this[n(414)]&&console[n(387)](n(375)+t.id+n(330)+e.length+n(319)+(t[n(408)]||n(415))+")"))}async[wt(396)](t,e){const n=wt;if(!t[n(401)])return{width:n(329),height:this[n(400)](),aspectRatio:16/9};try{const s=(await Promise[n(407)](t[n(399)](t=>t[n(315)]).map(t=>this[n(398)](t[n(315)]))))[n(399)](t=>t[n(405)]===n(337))[n(348)](t=>t.value);if(0===s.length)return{width:n(329),height:this[n(400)](),aspectRatio:16/9};const i=this[n(323)](s),r=this[n(365)](s,e,i);return this[n(414)]&&console[n(387)](n(359)+e+"x"+r+n(364)+i+")"),{width:n(329),height:r+"px",aspectRatio:e/r}}catch(t){return console[n(382)](n(367),t),{width:n(329),height:this[n(400)](),aspectRatio:16/9}}}async optimizeContainerForBannerAds(t,e){const n=wt;try{const s=document[n(316)](t.containerId),i=document[n(316)](t.id);if(!s||!i)return;const r=s.getBoundingClientRect()[n(388)]||300,o=await this[n(396)](e,r);i[n(341)][n(338)]=o.height,t[n(408)]=o.height,t[n(402)]=o[n(402)],this.debug&&console[n(387)](n(371)+e[n(401)]+n(393)+o[n(338)])}catch(t){console.warn(n(390),t)}}[wt(323)](t){const e=wt,n=t[e(348)](t=>t[e(388)]/t[e(338)]),s=new Map;n[e(383)](t=>{const n=e,i=(Math[n(413)](10*t)/10)[n(312)]();s.set(i,(s.get(i)||0)+1)});const i=Math.max(...s[e(324)]()),r=t[e(401)];if(i/r>=.7)return e(349);const o=[16/9,4/3,1,1.5],a=n[e(399)](t=>o[e(370)](e=>Math.abs(t-e)<.1))[e(401)];return e(a/r>=.5?326:347)}calculateOptimalHeight(t,e,n){const s=wt,i=t[s(348)](t=>t[s(388)]/t[s(338)]);switch(n){case"dominant":{const t=new Map;i[s(383)](e=>{const n=s,i=Math[n(413)](10*e)/10,r=i.toString(),o=t[n(361)](r);o?o[n(391)]++:t[n(358)](r,{ratio:i,count:1})});const n=Array.from(t[s(324)]())[s(322)]((t,e)=>e[s(391)]>t[s(391)]?e:t);return Math[s(413)](e/n[s(310)])}case s(326):{const t=[{ratio:16/9,name:"16:9"},{ratio:4/3,name:s(309)},{ratio:1,name:s(397)},{ratio:1.5,name:"3:2"}],n=i.reduce((t,e)=>t+e,0)/i[s(401)],r=t.reduce((t,e)=>Math[s(369)](e.ratio-n)<Math.abs(t[s(310)]-n)?e:t);return this.debug&&console[s(387)](s(332)+r[s(381)]+s(331)+n[s(372)](2)+")"),Math[s(413)](e/r[s(310)])}case s(347):default:{const t=i[s(322)]((t,e)=>t+e,0)/i[s(401)];return Math[s(413)](e/t)}}}loadImageDimensions(t){return new Promise((e,n)=>{const s=bt,i=new Image;i[s(314)]=()=>{const t=s;e({width:i[t(318)],height:i[t(350)]})},i[s(373)]=()=>{n(new Error("Failed to load image: "+t))},i[s(317)]=t})}[wt(321)](t,e,n){const s=wt,i=e/n;Math.abs(i-1)<.1?(t[s(341)][s(404)]=s(313),t.style[s(416)]=s(351)):i>1.3?(t[s(341)][s(404)]=s(336),t[s(341)][s(416)]="center",t.style[s(335)]=s(384)):i<.7?(t.style[s(404)]="cover",t.style[s(416)]="center"):(t[s(341)].objectFit=s(313),t[s(341)][s(416)]=s(351)),this[s(414)]&&console.log(s(395)+t[s(341)].objectFit+s(334)+i.toFixed(2))}async[wt(320)](t,e,n){const s=wt,i=document[s(343)](s(376));i.style.width=s(329),i.style[s(338)]=s(329),i[s(341)].display=s(368),i[s(341)][s(412)]="8px",i.alt=e.title||"Banner Advertisement",t[s(344)]=s(403);try{if(!e[s(315)])throw new Error(s(366));const r=await this[s(398)](e[s(315)]),o=t.getBoundingClientRect(),a=o[s(388)],c=o[s(338)];this[s(414)]&&(console[s(387)](s(389)+r[s(388)]+"x"+r[s(338)]),console.log("📦 Banner container dimensions: "+a+"x"+c));const d=r.width/r[s(338)],l=a/c;return this[s(321)](i,d,l),i[s(317)]=e.imageUrl,t[s(344)]="",t.appendChild(i),at[s(353)](i,e,n,()=>this.createEventTrackingCallback(),this.debug,s(339)),this[s(414)]&&console[s(387)](s(410)+e[s(357)]),i}catch(r){return console[s(356)]("❌ Failed to load optimized banner image:",r),e.imageUrl&&(i.src=e[s(315)],i[s(341)][s(404)]=s(313),i[s(341)][s(416)]=s(351),t[s(344)]="",t[s(352)](i),at[s(353)](i,e,n,()=>this[s(374)](),this[s(414)],"Banner")),i}}}function Et(){const t=["objectPosition","4:3","ratio","5075GbPhOj","toString","cover","onload","imageUrl","getElementById","src","naturalWidth"," ads (optimized: ","renderOptimizedBannerImage","applyOptimizedImageStyle","reduce","selectOptimalSizeStrategy","values","8826jYpjmO","common","title","div","100%"," with "," (avg: ","📊 Using standard ratio: ","6528600QrKbmK",", ratio=","backgroundColor","contain","fulfilled","height","Banner","renderAdElement","style","46BqhTdw","createElement","innerHTML","calculateAdSize","65827JonnCe","average","map","dominant","naturalHeight","center","appendChild","addClickEventForRenderer","4531296KSJcvB","parentElement","error","_id","set","📐 Optimal banner container calculated: ","4904958ktfNgT","get","className","562674OmHOKO"," (strategy: ","calculateOptimalHeight","Image URL is not provided","Failed to calculate optimal banner size, using defaults:","block","abs","some","🔧 Banner container optimized for ","toFixed","onerror","createEventTrackingCallback","🎠 Banner carousel created for slot: ","img","config","</div>","1467968tzicye","renderMultipleAds","name","warn","forEach","#f0f0f0","250px","createSliderContainer","log","width","📸 Banner image dimensions: ","Banner container optimization failed, using default size:","count","slideInterval"," ads: ","containerId","🎨 Banner image style applied: objectFit=","calculateOptimalContainerSize","1:1","loadImageDimensions","filter","getDefaultHeight","length","aspectRatio",'<div style="display: flex; align-items: center; justify-content: center; height: 100%; color: #999;">Loading...</div>',"objectFit","status","Banner Ad","allSettled","optimizedHeight","adstage-ad adstage-banner-ad","✅ Optimized banner image rendered for ad: ","optimizeContainerForBannerAds","borderRadius","round","debug","default"];return(Et=function(){return t})()}function xt(t,e){const n=Ct();return(xt=function(t,e){return n[t-=405]})(t,e)}const At=xt;!function(){const t=xt,e=Ct();for(;;)try{if(537204===-parseInt(t(407))/1+parseInt(t(409))/2*(-parseInt(t(410))/3)+parseInt(t(405))/4*(parseInt(t(416))/5)+-parseInt(t(413))/6*(parseInt(t(412))/7)+parseInt(t(418))/8*(-parseInt(t(414))/9)+-parseInt(t(417))/10+parseInt(t(415))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class St{static[At(408)](t=!1){return"\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 "}static setTextAdContent(t,e){const n=At,s=e.textContent||e[n(406)]||"";t[n(411)]=s}}function Ct(){const t=["title","434351qomOif","createTextAdStyles","9230uILznn","291OCiKgA","textContent","529396MKDtmR","30emuGVR","4139325NygYiH","26736754sOCyce","75SKbknS","7513990hfMdwp","16FFLubP","276796tRfrzv"];return(Ct=function(){return t})()}const Tt=Rt;function Rt(t,e){const n=Dt();return(Rt=function(t,e){return n[t-=248]})(t,e)}function Dt(){const t=["preventDefault","zIndex","className","705BHZYiz","1085860LEBoXh","addTouchSupport","translateY(-20px)","forEach","whiteSpace","div","12haCzYu",");\n transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);\n z-index: ","getBoundingClientRect","block","2928EjadRQ","10087cCzKSd","523769BsYgTO",";\n top: ","appendChild","translateY(20px)","3872YtwnNh","setProperty","push","createSimpleAdElement","clientY","abs","_id","\n position: relative;\n width: 100%;\n ","height: auto;","relative","touches","2xjxOUe","style","touchmove","cssText","8ZEmCLV","20px","\n display: flex;\n align-items: center;\n justify-content: flex-start;\n opacity: ","createElement","changedTouches","absolute","toLowerCase","height: 100%;","\n position: ","top","normal","body","minHeight","touchend","string","addEventListener","data-adstage-slot-id","adstage-fade-slide","transform","createTextAdStyles","19635epnTyM","opacity","mouseleave","left","59265vsXdlM","hidden","\n ","auto",";\n left: ","clientX","width","addClickEventForSlider","adstage-ad adstage-","Text","mouseenter","createTextTransitionContainer",";\n ","6293110RztpwC",";\n width: 100%;\n ","height: auto; min-height: fit-content;","removeChild","translateY(0)","includes","setAttribute","height","position"];return(Dt=function(){return t})()}!function(){const t=Rt,e=Dt();for(;;)try{if(326192===-parseInt(t(293))/1*(parseInt(t(308))/2)+-parseInt(t(280))/3*(-parseInt(t(297))/4)+-parseInt(t(281))/5*(parseInt(t(287))/6)+-parseInt(t(292))/7*(parseInt(t(312))/8)+-parseInt(t(255))/9+parseInt(t(268))/10+parseInt(t(251))/11*(parseInt(t(291))/12))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class Bt{static[Tt(300)](t,e){const n=Tt,s=document[n(315)](n(286));return s.className=n(263)+String(t.adType)[n(318)](),s[n(274)]("data-adstage-ad-id",e[n(303)]),s[n(274)](n(328),t.id),s.style[n(311)]=St[n(250)](!0),St.setTextAdContent(s,e),s}static[Tt(266)](t,e,n,s,i=!1){const r=Tt,o=t[r(275)]&&0!==t[r(275)]&&"auto"!==t.height,a=document[r(315)](r(286));a[r(279)]="adstage-fade-slider-wrapper";const c={position:r(306),overflow:r(256),display:r(290)};if(!o&&(c[r(275)]=r(258),c[r(324)]="fit-content"),t[r(261)]&&0!==t[r(261)]){let e;e=typeof t.width===r(326)&&(t[r(261)].includes("px")||t[r(261)][r(273)]("%"))?t.width:t.width+"px",c.width=e}if(t[r(275)]&&0!==t[r(275)]&&"auto"!==t[r(275)]&&o){let e;e="string"==typeof t[r(275)]?t[r(275)][r(273)]("px")||t[r(275)][r(273)]("%")?t[r(275)]:t.height+"px":t[r(275)]+"px",c[r(275)]=e}Object.entries(c)[r(284)](([t,e])=>{const n=r;a.style[n(298)](t,e)});const d=document.createElement(r(286));d[r(279)]="adstage-fade-slide-container",d.style.cssText=r(304)+(o?"height: 100%;":r(270))+r(257);let l=null;const u=!t[r(261)]||0===t[r(261)],p=!t.height||0===t.height||void 0===t[r(275)]||t[r(275)]===r(258);if(u||p&&o){if(l=document[r(315)](r(286)),l.style.cssText="\n position: absolute;\n visibility: hidden;\n white-space: nowrap;\n top: -9999px;\n left: -9999px;\n ",!u&&t.width){let e;e=typeof t.width===r(326)?t[r(261)][r(273)]("px")||t[r(261)][r(273)]("%")?t[r(261)]:t.width+"px":t[r(261)]+"px",l[r(309)][r(261)]=e,l[r(309)][r(285)]=r(322)}document[r(323)].appendChild(l);let n=0,s=0;e[r(284)](e=>{const i=r,o=this[i(300)](t,e);l[i(295)](o);const a=o[i(289)]();a.width>n&&(n=a[i(261)]),a.height>s&&(s=a[i(275)]),l[i(271)](o)}),u&&n>0&&(a[r(309)][r(261)]=n+"px"),p&&s>0&&o&&(a[r(309)][r(275)]=s+"px"),document[r(323)].removeChild(l)}const h=[];e[r(284)]((e,n)=>{const a=r,c=document[a(315)](a(286));c.className=a(248);const l=o?"absolute":0===n?"relative":a(317);c[a(309)][a(311)]=a(320)+l+a(294)+(l===a(317)?"0":"auto")+a(259)+(l===a(317)?"0":a(258))+a(269)+a(o?319:305)+a(314)+(0===n?"1":"0")+";\n transform: translateY("+(0===n?"0":a(313))+a(288)+(0===n?"2":"1")+a(267);const u=this[a(300)](t,e);at[a(262)](u,e,t,s,i,a(264)),c[a(295)](u),d[a(295)](c),h[a(299)](c)});let f=0;const g=e.length,m=1e3*(n?.autoSlideInterval||4),I=n=>{const a=r;n>=g?n=0:n<0&&(n=g-1);const c=h[f],d=h[n];!o&&(c[a(309)][a(276)]===a(306)&&(c[a(309)].position=a(317),c[a(309)][a(321)]="0",c.style[a(254)]="0"),d[a(309)][a(276)]=a(306),d.style[a(321)]=a(258),d[a(309)][a(254)]=a(258)),c[a(309)][a(252)]="0",c[a(309)][a(249)]=a(283),c[a(309)].zIndex="1",d[a(309)][a(252)]="1",d.style[a(249)]=a(272),d[a(309)][a(278)]="2",h[a(284)]((t,e)=>{const s=a;e!==n&&e!==f&&(t[s(309)][s(252)]="0",t[s(309)].transform=s(296),t[s(309)].zIndex="1",!o&&t[s(309)].position===s(306)&&(t[s(309)][s(276)]=s(317),t.style[s(321)]="0",t.style[s(254)]="0"))}),f=n,nt.trackSlideViewable(e[f],t,f,s,i)};let v=setInterval(()=>{I(f+1)},m);return a[r(327)](r(265),()=>{clearInterval(v)}),a.addEventListener(r(253),()=>{v=setInterval(()=>{I(f+1)},m)}),Bt[r(282)](a,I,()=>f,g),a[r(295)](d),a}static[Tt(282)](t,e,n,s){const i=Tt;let r=0,o=0,a=!1;t[i(327)]("touchstart",t=>{const e=i;r=t[e(307)][0][e(260)],o=t[e(307)][0][e(301)],a=!0}),t[i(327)](i(310),t=>{a&&t[i(277)]()}),t[i(327)](i(325),t=>{const s=i;if(!a)return;a=!1;const c=t.changedTouches[0].clientX,d=t[s(316)][0][s(301)],l=r-c,u=o-d;if(Math.abs(l)>Math[s(302)](u)&&Math[s(302)](l)>50){const t=n();e(l>0?t+1:t-1)}})}}const Lt=Mt;function zt(){const t=["length","60px","height","innerHTML","_id","webkitBoxOrient","4421768ERpJsx","2fRgQaG","setTextAdContent","707442WTSLAw","aspectRatio","createTextAdStyles","slideInterval","appendChild","width","config","cssText","style","parentElement","renderMultipleAds","10Lgggjf","adstage-text-content","✨ Text transition created for slot: ","display","debug","addClickEventForRenderer","maxLines","3CWhIzu","TEXT","vertical","154bRztEW","getDefaultHeight","calculateAdSize","4812748rvPAdN","createElement","getElementById","1151750UTBagw","createEventTrackingCallback","optimizedHeight","containerId","100%"," ads","log","1064521fZNHky","Container not found: ","webkitLineClamp","div","6126867xtcFXY","Text","overflow","32137UKAnwn"];return(zt=function(){return t})()}function Mt(t,e){const n=zt();return(Mt=function(t,e){return n[t-=483]})(t,e)}!function(){const t=Mt,e=zt();for(;;)try{if(809449===-parseInt(t(533))/1*(parseInt(t(497))/2)+-parseInt(t(517))/3*(parseInt(t(523))/4)+-parseInt(t(510))/5*(-parseInt(t(499))/6)+-parseInt(t(489))/7+parseInt(t(496))/8+parseInt(t(486))/9+parseInt(t(526))/10*(parseInt(t(520))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class Nt extends yt{constructor(t=!1,e){super(o[Mt(518)],t,e)}[Lt(521)](){return Lt(491)}async renderAdElement(t,e){const n=Lt,s=document[n(525)](t.containerId);if(!s)return;const i=document.createElement(n(485));i.className="adstage-ad adstage-text-ad";const r=t.optimizedHeight,o=s[n(508)]||s;if(r)i[n(507)][n(504)]=n(530),i.style[n(492)]=String(r);else{const e=t[n(505)],s={width:e?.width,height:e?.[n(492)]},{width:r,height:a}=this[n(522)](o,s,{debug:this.debug});i[n(507)][n(504)]=r,i[n(507)][n(492)]=a}const a=document[n(524)](n(485));a.className=n(511),a[n(507)][n(506)]=St[n(501)](!1),St[n(498)](a,e);const c=t.config?.[n(516)];c&&"number"==typeof c&&(a[n(507)][n(513)]="-webkit-box",a.style[n(484)]=String(c),a[n(507)][n(495)]=n(519),a.style[n(488)]="hidden"),i[n(503)](a),at[n(515)](i,e,t,()=>this[n(527)](),this[n(514)],n(487)),s[n(493)]="",s[n(503)](i),this.debug&&console[n(532)]("✨ Single text ad rendered: "+e[n(494)])}async[Lt(509)](t,e){const n=Lt,s=document[n(525)](t[n(529)]);if(!s)throw new Error(n(483)+t.containerId);const i=this[n(527)](),r={autoSlideInterval:(t[n(505)]?.[n(502)]||5e3)/1e3,...t[n(505)],optimizedHeight:t[n(528)],aspectRatio:t[n(500)]},o=Bt.createTextTransitionContainer(t,e,r,i,this[n(514)]);o&&(s[n(493)]="",s[n(503)](o),this[n(514)]&&console[n(532)](n(512)+t.id+" with "+e[n(490)]+n(531)))}}const Ut=Pt;function Pt(t,e){const n=Ot();return(Pt=function(t,e){return n[t-=101]})(t,e)}function Ot(){const t=["5633392fcecDR","adstage-video-container","🎬 Video data loaded, attempting autoplay...","🎬 Video metadata loaded, attempting autoplay...","hideMuteButton","warn","14113121WlPbuu","preload","🎬 Video element created for ad: ","rgba(0, 0, 0, 0.7)","getDefaultHeight","Video fallback","alt","adstage-video-default-controls","renderVideoElementDirect"," (autoplay: ","🎬 Initial autoplay attempt after timeout...","🎬 Video config received:","stopPropagation","mouseleave"," !important;\n }\n video::-webkit-media-controls-fullscreen-button {\n display: ","canplay","🎬 Single video ad rendered: ","\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 ","Video","4062mPNFoR","🎬 Trying muted autoplay fallback...","unmuted","createEventTrackingCallback","createElement","132vzVvpY","height","🎬 User explicitly enabled controls, overriding default","\n pointer-events: none;\n ","hideRemainingTime","5355NavDZd"," !important;\n }\n video::-webkit-media-controls-time-remaining-display {\n display: ","metadata","3458910dbPCoR","containerId","🎬 Video controls setting:","controls","⚠️ No video advertisements available for slot: ","addClickEventForRenderer","hideControls","renderMultipleAds","display","relative","innerHTML","VIEWABLE","addEventListener","background","position","debug","20bbGFqx","\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 ","100%","muted","🔊 Video mute toggled: ","enabled"," !important;\n }\n video::-webkit-media-controls-mute-button {\n display: ","click"," !important;\n }\n ","div","Container not found: "," !important;\n }\n video::-webkit-media-controls-volume-slider {\n display: ","360px","contain","VIDEO","9072090zfCFBu","src","getElementById","20214upSegr","scale(1)",", loop: ","imageUrl","videoUrl","loadeddata","button","none","1528947sdvcgG","\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 ","adstage-video-mute-button","autoplay","objectFit","log","appendChild"," !important;\n }\n video::-webkit-media-controls-timeline {\n display: ","config","width","catch","length",", muted: ","hideProgressBar","hidePlayButton","transform","_id","title","block","Click to unmute","customControls","paused","video","style","textContent","disabled (default)","playsinline","error","play","loop","4mLFBUm","cssText","🎬 Video can play, attempting autoplay...","img","className","Video thumbnail"];return(Ot=function(){return t})()}!function(){const t=Pt,e=Ot();for(;;)try{if(852208===-parseInt(t(107))/1*(parseInt(t(149))/2)+-parseInt(t(157))/3*(parseInt(t(187))/4)+-parseInt(t(115))/5+parseInt(t(102))/6*(parseInt(t(112))/7)+-parseInt(t(193))/8+parseInt(t(146))/9+-parseInt(t(131))/10*(-parseInt(t(199))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class Vt extends yt{constructor(t=!1,e){super(o[Pt(145)],t,e)}[Ut(203)](){return Ut(143)}async renderAdElement(t,e){const n=Ut,s=document[n(148)](t[n(116)]);if(!s)return;const i=document[n(106)]("div");i[n(191)]=n(194),i[n(180)][n(188)]="\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 ",this[n(207)](i,e,t),s[n(125)]="",s.appendChild(i),this[n(130)]&&console[n(162)](n(215)+e[n(173)])}async[Ut(122)](t,e){const n=Ut,s=document[n(148)](t[n(116)]);if(!s)throw new Error(n(141)+t.containerId);if(e[n(168)]>0){const i=e[0],r=document[n(106)](n(140));r[n(191)]="adstage-video-container",r[n(180)][n(188)]=n(216),this[n(207)](r,i,t),s.innerHTML="",s[n(163)](r);const o=this[n(105)]();setTimeout(()=>{const e=n;o(i[e(173)],t.id,p[e(126)])},100),this[n(130)]&&console.log("🎬 Single video rendered for VIDEO slot: "+t.id+" ("+i[n(173)]+")")}else this.debug&&console[n(198)](n(119)+t.id)}[Ut(207)](t,e,n){const s=Ut;t[s(180)][s(129)]=s(124);const i=document[s(106)](s(179));i.style[s(166)]=s(133),i[s(180)][s(108)]=s(133),i[s(180)].objectFit="contain",i[s(200)]=s(114);const r=n[s(165)];if(this[s(130)]&&console[s(162)](s(210),r),i[s(118)]=!1,i.autoplay=!1!==r?.[s(160)],i[s(134)]=!0,i.loop=!1!==r?.[s(186)],this[s(130)]&&console[s(162)]("🎬 Final video settings:",{autoplay:i[s(160)],muted:i.muted,loop:i[s(186)],controls:i[s(118)]}),!1!==r?.[s(183)]&&i.setAttribute(s(183),""),!0===r?.controls&&(i[s(118)]=!0,this[s(130)]&&console[s(162)](s(109))),r?.[s(121)])i[s(118)]=!1,i[s(180)][s(188)]+=s(110);else if(r?.[s(177)]){if(i[s(118)]){const t=document[s(106)]("style");t[s(181)]="\n video::-webkit-media-controls-play-button {\n display: "+(r.customControls[s(171)]?s(156):s(175))+s(164)+(r[s(177)][s(170)]?"none":"block")+" !important;\n }\n video::-webkit-media-controls-current-time-display {\n display: "+(r[s(177)].hideCurrentTime?s(156):s(175))+s(113)+(r[s(177)][s(111)]?s(156):"block")+s(142)+(r[s(177)].hideVolumeSlider?s(156):s(175))+s(137)+(r[s(177)][s(197)]?s(156):"block")+s(213)+(r.customControls.hideFullscreenButton?s(156):s(175))+s(139),document.head[s(163)](t)}}else if(i[s(118)]){const t=document[s(106)](s(180));t.id=s(206),t[s(181)]=s(132),!document[s(148)]("adstage-video-default-controls")&&document.head.appendChild(t)}this[s(130)]&&console[s(162)](s(117),i[s(118)]?s(136):s(182));const o=document.createElement(s(155));o[s(191)]=s(159),o[s(180)][s(188)]=s(158),r?.[s(121)]&&(o[s(180)][s(123)]="none");const a=()=>{const t=s;o[t(125)]=i[t(134)]?'\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 ':'\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 ',o.title=i[t(134)]?t(176):"Click to mute"};if(a(),o[s(127)](s(138),t=>{const e=s;t[e(211)](),i[e(134)]=!i.muted,a(),this[e(130)]&&console[e(162)](e(135)+(i[e(134)]?e(134):e(104)))}),o[s(127)]("mouseenter",()=>{const t=s;o.style[t(128)]="rgba(0, 0, 0, 0.9)",o[t(180)][t(172)]="scale(1.1)"}),o[s(127)](s(212),()=>{const t=s;o.style.background=t(202),o[t(180)][t(172)]=t(150)}),e[s(153)]){i[s(147)]=e.videoUrl;const t=()=>{const t=s;i[t(160)]&&i[t(134)]&&i[t(178)]&&i.play()[t(167)](e=>{const n=t;this[n(130)]&&(console[n(198)]("🎬 Auto-play was prevented:",e),console[n(198)](n(103))),i[n(134)]=!0,i[n(185)]()[n(167)](t=>{this[n(130)]&&console.error("🎬 Autoplay completely failed:",t)})})};i.addEventListener("loadedmetadata",()=>{const e=s;this[e(130)]&&console[e(162)](e(196)),t()}),i[s(127)](s(214),()=>{const e=s;this[e(130)]&&console[e(162)](e(189)),t()}),i[s(127)](s(154),()=>{const e=s;this.debug&&console[e(162)](e(195)),t()}),setTimeout(()=>{const e=s;this[e(130)]&&console[e(162)](e(209)),t()},100)}else if(e[s(152)]){const n=document[s(106)](s(190));return n[s(147)]=e[s(152)],n[s(180)][s(166)]=s(133),n[s(180)][s(108)]=s(133),n[s(180)][s(161)]=s(144),n[s(205)]=e.title||s(192),void t[s(163)](n)}at[s(120)](i,e,n,()=>this[s(105)](),this[s(130)],s(101)),i[s(127)]("error",i=>{const r=s;if(console[r(184)]("Video load failed:",i),e[r(152)]){const s=document[r(106)]("img");s.src=e[r(152)],s[r(180)][r(166)]=r(133),s[r(180)][r(108)]="100%",s[r(180)][r(161)]=r(144),s[r(205)]=e[r(174)]||r(192),at[r(120)](s,e,n,()=>this.createEventTrackingCallback(),this[r(130)],r(204)),t[r(125)]="",t.appendChild(s)}}),t.appendChild(i),t[s(163)](o),this.debug&&console.log(s(201)+e[s(173)]+s(208)+i[s(160)]+s(169)+i[s(134)]+s(151)+i[s(186)]+")")}}const Ft=_t;function Ht(){const t=["button","Learn More","open","linkUrl","200px","2LSfkeG","log","5484brKJeo","renderMultipleAds","alt","createElement","textContent","4388FFHmuf","NATIVE","150QFqjfB","appendChild","4956783lLqAqj","className","length","click","cssText","div","🏠 Single native ad rendered: ","#3b82f6","backgroundColor","#2563eb","\n margin: 0 0 12px 0;\n font-size: 14px;\n color: #6b7280;\n line-height: 1.4;\n flex: 1;\n ","\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 ","mouseleave","title","_id","advertisementEventTracker","49838esAYfn","renderAdElement","\n width: 100%;\n height: 120px;\n margin-bottom: 12px;\n border-radius: 6px;\n overflow: hidden;\n background: #f3f4f6;\n ","185787ieKNnl","innerHTML","36FzdqLs","\n width: 100%;\n height: 100%;\n object-fit: cover;\n ","\n margin: 0 0 8px 0;\n font-size: 16px;\n font-weight: 600;\n color: #111827;\n line-height: 1.3;\n ","⚠️ No native advertisements available for slot: ","addEventListener","warn","Native Advertisement","203wqnFAc","style","611045nFTGHp","🏠 Native ad rendered (first of ","6193hpCVOf","\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 ","1029zmeaOu","): ","imageUrl","debug","Native click tracked for ad: ","getDefaultHeight","82568ATDOsj"];return(Ht=function(){return t})()}function _t(t,e){const n=Ht();return(_t=function(t,e){return n[t-=446]})(t,e)}!function(){const t=_t,e=Ht();for(;;)try{if(377193===-parseInt(t(462))/1*(-parseInt(t(489))/2)+-parseInt(t(450))/3*(parseInt(t(469))/4)+parseInt(t(446))/5*(parseInt(t(494))/6)+-parseInt(t(501))/7*(-parseInt(t(456))/8)+-parseInt(t(492))/9*(-parseInt(t(471))/10)+-parseInt(t(448))/11*(parseInt(t(464))/12)+-parseInt(t(473))/13)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class Kt extends yt{constructor(t=!1,e){super(o[_t(470)],t,e)}[Ft(455)](){return Ft(461)}async[Ft(490)](t,e){const n=Ft,s=document.getElementById(t.containerId);if(!s)return;const i=document[n(467)](n(478));if(i[n(474)]="adstage-ad adstage-native-ad",i[n(502)][n(477)]=n(449),e[n(486)]){const t=document.createElement("h3");t[n(468)]=e[n(486)],t.style[n(477)]=n(496),i[n(472)](t)}if(e[n(468)]){const t=document[n(467)]("p");t[n(468)]=e.textContent,t[n(502)][n(477)]=n(483),i.appendChild(t)}if(e[n(452)]){const t=document[n(467)](n(478));t[n(502)][n(477)]=n(491);const s=document[n(467)]("img");s.src=e.imageUrl,s[n(466)]=e[n(486)]||n(500),s[n(502)][n(477)]=n(495),t[n(472)](s),i[n(472)](t)}if(e.linkUrl){const t=document[n(467)](n(457));t[n(468)]=n(458),t[n(502)][n(477)]=n(484),t[n(498)](n(476),()=>{const t=n;this[t(488)]&&console.log(t(454)+e[t(487)]),window[t(459)](e[t(460)],"_blank")}),t[n(498)]("mouseenter",()=>{const e=n;t[e(502)][e(481)]=e(482)}),t.addEventListener(n(485),()=>{const e=n;t[e(502)][e(481)]=e(480)}),i.appendChild(t)}s[n(493)]="",s[n(472)](i),this.debug&&console[n(463)](n(479)+e[n(487)])}async[Ft(465)](t,e){const n=Ft;e[n(475)]>0?(await this[n(490)](t,e[0]),this.debug&&console[n(463)](n(447)+e.length+n(451)+t.id)):this[n(453)]&&console[n(499)](n(497)+t.id)}}function jt(){const t=["title","key","#6b7280","714100CATQqW","animation","linkUrl","cssText","imageUrl","removeEventListener","renderMultipleAds","Get Started","length","#3b82f6","target","log","⚠️ No interstitial advertisements available for slot: ","img","_id","createElement","click","🖼️ Interstitial ad rendered: ","\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 ","12845496DsAjSa","mouseleave","alt","260790TjGvAI","400px","_blank","removeChild","closeInterstitial","fadeOut 0.3s ease-out forwards","2139522adodBt","#2563eb","9oaPQiY","textContent","36YwgQkn","innerHTML","appendChild","#f3f4f6","addEventListener","parentNode","Interstitial click tracked for ad: ","346490lQgqRL","advertisementEventTracker","style","210287fVwPre","adstage-interstitial-styles","adstage-interstitial-overlay","🖼️ Interstitial ad closed","Interstitial Advertisement","button","body","div","debug","renderAdElement","#374151","mouseenter","\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 ","backgroundColor","#e5e7eb","getElementById","open","adstage-interstitial-content","getDefaultHeight","keydown","className","src","1560822NVVkEB","\n width: 100%;\n max-height: 300px;\n object-fit: cover;\n border-radius: 8px;\n margin-bottom: 16px;\n "];return(jt=function(){return t})()}const Wt=qt;function qt(t,e){const n=jt();return(qt=function(t,e){return n[t-=369]})(t,e)}!function(){const t=qt,e=jt();for(;;)try{if(512471===parseInt(t(413))/1+-parseInt(t(369))/2+-parseInt(t(402))/3+-parseInt(t(374))/4+parseInt(t(396))/5+parseInt(t(406))/6*(parseInt(t(416))/7)+-parseInt(t(393))/8*(-parseInt(t(404))/9))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class Jt extends yt{constructor(t=!1,e){super(o.INTERSTITIAL,t,e)}[Wt(434)](){return Wt(397)}async[Wt(425)](t,e){const n=Wt;if(!document[n(431)](t.containerId))return;const s=document[n(389)](n(423));s[n(436)]=n(418),s[n(415)][n(377)]=n(392);const i=document.createElement(n(423));i[n(436)]=n(433),i[n(415)][n(377)]="\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 r=document[n(389)](n(421));if(r[n(407)]="×",r[n(415)][n(377)]="\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 ",r.addEventListener("click",()=>{this[n(400)](s)}),r[n(410)](n(427),()=>{const t=n;r[t(415)].backgroundColor=t(430),r[t(415)].color=t(426)}),r[n(410)]("mouseleave",()=>{const t=n;r[t(415)][t(429)]=t(409),r[t(415)].color=t(373)}),e[n(378)]){const t=document.createElement(n(387));t[n(437)]=e[n(378)],t[n(395)]=e[n(371)]||n(420),t[n(415)][n(377)]=n(370),i[n(408)](t)}if(e[n(371)]){const t=document.createElement("h2");t[n(405)]=e.title,t.style[n(377)]="\n margin: 0 0 12px 0;\n font-size: 24px;\n font-weight: 700;\n color: #111827;\n line-height: 1.3;\n ",i[n(408)](t)}if(e[n(405)]){const t=document[n(389)]("p");t[n(405)]=e[n(405)],t[n(415)][n(377)]="\n margin: 0 0 20px 0;\n font-size: 16px;\n color: #6b7280;\n line-height: 1.5;\n ",i[n(408)](t)}if(e[n(376)]){const t=document.createElement(n(421));t[n(405)]=n(381),t.style[n(377)]=n(428),t[n(410)](n(390),()=>{const t=n;this[t(414)]&&console[t(385)](t(412)+e[t(388)]),window[t(432)](e[t(376)],t(398)),this.closeInterstitial(s)}),t[n(410)](n(427),()=>{const e=n;t.style.backgroundColor=e(403)}),t[n(410)](n(394),()=>{const e=n;t[e(415)][e(429)]=e(383)}),i.appendChild(t)}const o=t=>{const e=n;"Escape"===t[e(372)]&&(this.closeInterstitial(s),document[e(379)](e(435),o))};if(document[n(410)](n(435),o),s.addEventListener("click",t=>{const e=n;t[e(384)]===s&&this[e(400)](s)}),!document[n(431)]("adstage-interstitial-styles")){const t=document[n(389)](n(415));t.id=n(417),t[n(405)]="\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.head[n(408)](t)}i[n(408)](r),s[n(408)](i),document[n(422)][n(408)](s),this[n(424)]&&console[n(385)](n(391)+e[n(388)])}async[Wt(380)](t,e){const n=Wt;e[n(382)]>0?(await this.renderAdElement(t,e[0]),this.debug&&console[n(385)]("🖼️ Interstitial ad rendered (first of "+e[n(382)]+"): "+t.id)):this.debug&&console.warn(n(386)+t.id)}[Wt(400)](t){const e=Wt;t[e(415)][e(375)]=e(401),setTimeout(()=>{const n=e;t[n(411)]&&t.parentNode[n(399)](t)},300),this[e(424)]&&console[e(385)](e(419))}}const Yt=Xt;function Zt(){const t=["onerror","calculateOptimalContainerSize","renderers","backgroundColor","2492aCBmYR","imageUrl","naturalWidth","renderOptimizedBannerImage","initializeRenderers","4315DpKztz","getDefaultHeightForAdType"," renderers","padding","advertisementEventTracker","adType","block","naturalHeight","[AdRenderer] ","6fblZqO","No renderer found for ad type: ","style","1422728EwZokE","textContent","createAdElement","advertisement","toLowerCase","appendChild","createPlaceholder","border","warn","1010443YyGSTO","VIDEO","display","set","getRenderer","setAttribute","renderFallback","calculateAdSize","renderAdElement","createElement","debug","NATIVE","14117040ZAsNoH","video","height","onload","BANNER","TEXT","100%"," Ad","renderAdSlider","videoUrl","3788343iXRRJO","src","optimizeContainerForBannerAds","1HnoIxq","1px dashed #ccc","img","1308304uHSaou","log","_id","config","isLoaded","objectFit","⚠️ Container optimization is only supported for BANNER ads, got: ","8px","data-adstage-ad-id","div","renderOptimizedBannerImage is only supported for BANNER ads","renderAd","getDefaultHeight","width","get","data-adstage-slot-id","2204826Bgwshu"];return(Zt=function(){return t})()}function Xt(t,e){const n=Zt();return(Xt=function(t,e){return n[t-=245]})(t,e)}!function(){const t=Xt,e=Zt();for(;;)try{if(500426===parseInt(t(290))/1*(-parseInt(t(293))/2)+parseInt(t(309))/3+parseInt(t(314))/4*(-parseInt(t(319))/5)+parseInt(t(253))/6*(parseInt(t(265))/7)+-parseInt(t(256))/8+-parseInt(t(287))/9+parseInt(t(277))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class Gt{constructor(t=!1,e){const n=Xt;this[n(312)]=new Map,this[n(275)]=t,this.advertisementEventTracker=e||null,this[n(318)]()}[Yt(318)](){const t=Yt;this.renderers[t(268)](o.BANNER,new kt(this.debug,this[t(248)])),this.renderers[t(268)](o[t(282)],new Nt(this[t(275)],this[t(248)])),this[t(312)].set(o[t(266)],new Vt(this[t(275)],this[t(248)])),this.renderers[t(268)](o[t(276)],new Kt(this.debug,this[t(248)])),this.renderers[t(268)](o.INTERSTITIAL,new Jt(this[t(275)],this[t(248)])),this[t(275)]&&console[t(294)]("🏭 AdRenderer factory initialized with "+this.renderers.size+t(246))}[Yt(258)](t,e){const n=Yt,s=this[n(269)](t[n(249)]),i=document[n(274)](n(302));i.className="adstage-ad adstage-"+String(t.adType)[n(260)](),i[n(270)](n(301),e[n(295)]),i[n(270)](n(308),t.id);const{width:r,height:a}=s[n(272)](i,t[n(296)]||{},e);switch(i[n(255)][n(306)]=r,i[n(255)][n(279)]=a,i[n(255)][n(267)]=n(250),t.adType){case o[n(281)]:if(e[n(315)]){const t=document.createElement(n(292));t[n(288)]=e.imageUrl,t[n(255)][n(306)]=n(283),t.style[n(279)]=n(283),t[n(255)][n(298)]="cover",i[n(261)](t)}break;case o[n(266)]:if(e[n(286)]){const t=document[n(274)](n(278));t[n(288)]=e[n(286)],t[n(255)].width=n(283),t[n(255)].height="100%",i.appendChild(t)}break;case o[n(282)]:if(e[n(257)]){const t=document.createElement(n(302));t[n(257)]=e.textContent||"",t[n(255)][n(247)]=n(300),i[n(261)](t)}break;default:i[n(255)][n(263)]=n(291),i[n(255)][n(313)]="#f9f9f9",i.textContent=t.adType+n(284)}return i}[Yt(269)](t){const e=Yt,n=this[e(312)][e(307)](t);if(!n)throw new Error(e(254)+t);return n}[Yt(262)](t,e,n,s,i){const r=Yt;this[r(269)](n)[r(262)](t,e,s,i)}async[Yt(289)](t,e){const n=Yt;if(t[n(249)]!==o[n(281)])return void(this[n(275)]&&console[n(264)](n(299)+t[n(249)]));const s=this[n(269)](o[n(281)]);await s[n(289)](t,e)}async[Yt(285)](t,e){const n=Yt,s=this.getRenderer(t[n(249)]);await s.renderMultipleAds(t,e)}async[Yt(304)](t){const e=Yt;if(!t.advertisement)throw new Error("No advertisement to render");const n=this[e(269)](t[e(249)]);await n[e(273)](t,t[e(259)]),t[e(297)]=!0}async[Yt(273)](t,e){const n=Yt,s=this[n(269)](t[n(249)]);await s[n(273)](t,e)}[Yt(271)](t){const e=Yt;this.getRenderer(t[e(249)])[e(271)](t)}[Yt(245)](t){const e=Yt;return this[e(269)](t)[e(305)]()}[Yt(272)](t,e,n,s){const i=Yt;return this[i(269)](e)[i(272)](t,n,s)}loadImageDimensions(t){return new Promise((e,n)=>{const s=Xt,i=new Image;i[s(280)]=()=>{const t=s;e({width:i[t(316)],height:i[t(251)]})},i[s(310)]=()=>{n(new Error("Failed to load image: "+t))},i[s(288)]=t})}async[Yt(317)](t,e,n){const s=Yt;if(n.adType!==o.BANNER)throw new Error(s(303));const i=this[s(269)](o[s(281)]);return await i[s(317)](t,e,n)}async calculateOptimalContainerSize(t,e,n){const s=Yt;if(n!==o[s(281)]){return{width:"100%",height:this.getRenderer(n)[s(305)](),aspectRatio:16/9}}const i=this[s(269)](o.BANNER);return await i[s(311)](t,e)}log(t,...e){const n=Yt;this[n(275)]&&console[n(294)](n(252)+t,...e)}}const Qt=te;function $t(){const t=["loadAdContentInBackground","auto","📊 Advertisement event tracking enabled for slot: ","error","maxLines","autoplay","212004gHnlXw","delete","init"," removed","New advertisement viewable tracked for slot:","append","width"," ads)","containerId","log","createAd","setupAutoCleanup","banner","style","100%","onClick","GET"," ads for type: ","🧹 Auto-cleanup: slot ","getConfig","status","renderAdElement","adType","interstitial","text","get","trackAdvertisementEvent","NATIVE","substr","✅ Ad loaded for slot: ","7320ACYEZN","📊 Fetched specific ad with ID: ","Failed to fetch ad data: ","apiKey","string","length","[data-adstage-slot-id]","API key not configured","Ad slot not found: ","autoSlide","warn","adRenderer"," (attempt ","clear","startSimpleViewabilityTracking","_config","getElementById","ensureReady","advertisements","createAdWithRetry","country","muted","then","loop","disconnect","194565Kqefqv"," ads automatically","innerHTML","🎯 Ads module initialized (sync mode) with auto-cleanup","_isReady","native","removedNodes","create","TEXT","renderFallback","132908faNDuC","setAttribute","json","광고 생성 중 오류 발생:","config","destroy","toString","1351224NxYwOi","✅ Simple viewable impression tracked for ad ","1055256KDBtsi","viewabilityTracker"," (element found)","🔄 Retrying viewability tracking for slot: ","mutationObserver","handleRemovedElement","1074jddTMR","🗑️ Ads module destroyed","hideControls","🎠 Slider will handle VIEWABLE events for ","❌ Failed to find element for viewability tracking: ","BANNER","auto-","autoDestroy","refresh","getAllSlots","ms... (attempt ","advertisementEventTracker",". Retrying in ","getAttribute","renderAdSlider","random","fetchAdData","slots","set","customControls","2327424WDNNHP","VIDEO","adId","values","debug","createPlaceholder","playsinline","observe","Auto-cleanup failed for slot ","_id","🚫 Advertisement not found with ID: ","refreshAdSlot","❌ Failed to track viewable impression:","INTERSTITIAL","deviceType","undefined","📊 Fetched ","optimizeContainerForBannerAds","querySelectorAll","height","🔄 Ad slot refreshed: ","destroyModule","data-adstage-slot-id",", filters:","body","list","language","forEach","Container not found after ","controls","advertisement","now"];return($t=function(){return t})()}function te(t,e){const n=$t();return(te=function(t,e){return n[t-=488]})(t,e)}!function(){const t=te,e=$t();for(;;)try{if(199818===parseInt(t(508))/1+parseInt(t(518))/2+parseInt(t(527))/3+-parseInt(t(591))/4+-parseInt(t(621))/5*(parseInt(t(533))/6)+parseInt(t(525))/7+-parseInt(t(553))/8)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class ee{constructor(){const t=te;this[t(512)]=!1,this._config=null,this.slots=new Map,this.advertisementEventTracker=null,this[t(494)]=null,this[t(531)]=null}[Qt(593)](t){const e=Qt;this[e(498)]=t,this[e(544)]=new _($.getBaseUrl(),t[e(624)],t[e(557)]||!1,this[e(550)]),this[e(494)]=new Gt(t[e(557)]||!1,this.advertisementEventTracker),this[e(602)](),this[e(512)]=!0,t[e(557)]&&console.log(e(511))}isReady(){return this[Qt(512)]}[Qt(610)](){return this[Qt(498)]}[Qt(603)](t,e){const n=Qt;this[n(500)]();const s={width:e?.[n(597)]||n(605),height:e?.[n(572)]||n(586),autoSlide:e?.[n(492)]||!1,slideInterval:e?.slideInterval||5e3,onClick:e?.[n(606)],adId:e?.adId,language:e?.[n(579)],deviceType:e?.[n(567)],country:e?.[n(503)]};return this.createAd(t,o[n(538)],s)}[Qt(615)](t,e){const n=Qt;this.ensureReady();const s={maxLines:e?.[n(589)]||3,style:e?.[n(604)]||"default",onClick:e?.onClick,adId:e?.adId,language:e?.[n(579)],deviceType:e?.deviceType,country:e?.[n(503)]};return this[n(601)](t,o[n(516)],s)}video(t,e){const n=Qt;this[n(500)]();const s={width:e?.width||640,height:e?.[n(572)]||360,autoplay:void 0===e?.[n(590)]||e.autoplay,muted:void 0===e?.muted||e[n(504)],loop:void 0===e?.[n(506)]||e.loop,playsinline:!1!==e?.[n(559)],controls:void 0!==e?.[n(582)]&&e[n(582)],hideControls:e?.[n(535)]||!1,customControls:e?.[n(552)],autoSlide:!1,maxAds:1,onClick:e?.[n(606)],...e?.[n(555)]&&{adId:e[n(555)]}};return this[n(601)](t,o[n(554)],s)}[Qt(513)](t,e){const n=Qt;return this.ensureReady(),this[n(601)](t,o[n(618)],e||{})}[Qt(614)](t,e){const n=Qt;return this[n(500)](),this[n(601)](t,o[n(566)],e||{})}[Qt(541)](t){const e=Qt;this[e(500)]();const n=this[e(550)].get(t);if(!n)throw new Error(e(491)+t);this[e(564)](n),this[e(498)]?.[e(557)]&&console[e(600)](e(573)+t)}[Qt(523)](t){const e=Qt;this.ensureReady();const n=this[e(550)].get(t);if(!n)throw new Error(e(491)+t);n[e(528)]&&n[e(528)][e(523)]();const s=document[e(499)](n[e(599)]);s&&(s[e(510)]=""),this.slots[e(592)](t),this[e(498)]?.[e(557)]&&console.log("🗑️ Ad slot destroyed: "+t)}[Qt(542)](){const t=Qt;return this.ensureReady(),Array.from(this[t(550)][t(556)]())}getSlotById(t){const e=Qt;return this[e(500)](),this[e(550)].get(t)||null}[Qt(601)](t,e,n){const s=Qt;if(!this._config?.[s(624)])throw new Error(s(490));const i="adstage-"+e+"-"+Date[s(584)]()+"-"+Math[s(548)]()[s(524)](36)[s(619)](2,9);return this.createAdWithRetry(t,e,n,i,0),i}async[Qt(502)](t,e,n,s,i){const r=Qt,o=[0,50,100,200,500];let a,c=null;if(typeof t===r(625)){if(a=t,c=document[r(499)](t),!c)return i<4?(this[r(498)]?.[r(557)]&&console[r(493)]("Container not found: "+t+r(545)+o[i+1]+r(543)+(i+1)+"/5)"),void setTimeout(()=>{this[r(502)](t,e,n,s,i+1)},o[i+1])):void console[r(588)](r(581)+5+" attempts: "+t)}else c=t,a=c.id||r(539)+s,!c.id&&(c.id=a);try{this.createAdInternal(a,e,n,s,c)}catch(t){console[r(588)](r(521),t)}}createAdInternal(t,e,n,s,i){const r=Qt;i[r(519)](r(575),s),this.adRenderer?.[r(558)](i,s,e,n,this._config);const a={id:s,containerId:t,adType:e,width:n[r(597)]||"100%",height:n[r(572)]||(e===o[r(516)]?"auto":250),isLoaded:!1,isVisible:!1,refreshRate:0,lazyLoad:!1,targeting:{},advertisement:void 0,config:{type:e,...n},load:async()=>this[r(549)](e,n)[r(505)](t=>t[0]||null),render:t=>this.adRenderer?.[r(612)](a,t),refresh:async()=>this[r(564)](a),destroy:()=>this[r(523)](s)};this[r(550)][r(551)](s,a),this[r(585)](a),this.advertisementEventTracker&&this[r(498)]?.[r(557)]&&console[r(600)](r(587)+s)}async loadAdContentInBackground(t){const e=Qt;try{const n=await this[e(549)](t[e(613)],t[e(522)]);if(!n||0===n.length)return void this[e(494)]?.[e(517)](t);t[e(613)]===o[e(538)]&&n[e(488)]>0&&await(this[e(494)]?.[e(570)](t,n)),n[e(488)]>1||t[e(522)]?.autoSlide?(await(this[e(494)]?.[e(547)](t,n)),this[e(498)]?.[e(557)]&&console.log(e(536)+n[e(488)]+e(509))):(t[e(583)]=n[0],await(this[e(494)]?.[e(612)](t,n[0])),this.startSimpleViewabilityTracking(t,n[0])),t.isLoaded=!0,this[e(498)]?.[e(557)]&&console[e(600)](e(620)+t.id+" ("+n[e(488)]+e(598))}catch(n){console[e(588)]("❌ Failed to load ad for slot: "+t.id,n),this[e(494)]?.[e(517)](t)}}[Qt(497)](t,e){const n=(s=0)=>{const i=te,r=document[i(499)](t.id);if(!r)return void(s<5?(setTimeout(()=>n(s+1),300),this[i(498)]?.[i(557)]&&console.log(i(530)+t.id+i(495)+(s+1)+")")):console[i(493)](i(537)+t.id));const o=new q(r,async()=>{await this.handleViewableEvent(e,t)});t[i(528)]=o,this[i(498)]?.[i(557)]&&console[i(600)]("🎯 Simple viewability tracking started for slot: "+t.id+i(529))};n()}async handleViewableEvent(t,e){const n=Qt;try{this[n(544)]&&(await this[n(544)][n(617)](t[n(562)],e.id,p.VIEWABLE),this[n(498)]?.[n(557)]&&console[n(600)](n(526)+t[n(562)]))}catch(t){console[n(588)](n(565),t)}}async[Qt(549)](t,e){const n=Qt;if(!this[n(498)]?.apiKey)throw new Error(n(490));if(e.adId){const t=""+$[n(501)].detail(e[n(555)]),s=await fetch(t,{method:"GET",headers:V.create(this._config.apiKey)});if(!s.ok){if(404===s[n(611)])return console[n(493)](n(563)+e[n(555)]),[];throw new Error(n(623)+s.status)}const i=await s[n(520)]();return this[n(498)]?.[n(557)]&&console[n(600)](n(622)+e[n(555)],i),[i]}const s=new URLSearchParams;s[n(596)](n(613),t),e[n(579)]&&s[n(596)](n(579),e[n(579)]),e.deviceType&&s[n(596)](n(567),e[n(567)]),e[n(503)]&&s[n(596)](n(503),e.country);const i=$[n(501)][n(578)]()+"?"+s[n(524)](),r=await fetch(i,{method:n(607),headers:V[n(515)](this[n(498)][n(624)])});if(!r.ok)throw new Error(n(623)+r[n(611)]);const o=(await r[n(520)]())[n(501)]||[];return this[n(498)]?.[n(557)]&&console.log(n(569)+o.length+n(608)+t+n(576),{language:e.language,deviceType:e[n(567)],country:e.country}),o}async refreshAdSlot(t){const e=Qt;try{const n=await this.fetchAdData(t[e(613)],t[e(522)]||{});n&&n[e(488)]>0&&(t.advertisement=n[0],await(this[e(494)]?.renderAd(t)),this.advertisementEventTracker&&console[e(600)](e(595),t.id))}catch(n){console[e(588)]("Failed to refresh ad slot: "+t.id,n)}}[Qt(500)](){if(!this[Qt(512)])throw new Error("Ads module not initialized. Call AdStage.init() first.")}setupAutoCleanup(){const t=Qt;typeof window!==t(568)&&typeof document!==t(568)&&(this[t(531)]&&this[t(531)].disconnect(),this[t(531)]=new MutationObserver(e=>{const n=t;e[n(580)](t=>{const e=n;t[e(514)][e(580)](t=>{t.nodeType===Node.ELEMENT_NODE&&this.handleRemovedElement(t)})})}),this.mutationObserver[t(560)](document[t(577)],{childList:!0,subtree:!0}),this[t(498)]?.[t(557)]&&console[t(600)]("🔍 Auto-cleanup MutationObserver enabled"))}[Qt(532)](t){const e=Qt,n=t.getAttribute("data-adstage-slot-id");if(n)return void this.autoDestroy(n);t[e(571)](e(489))[e(580)](t=>{const n=e,s=t[n(546)](n(575));s&&this[n(540)](s)})}autoDestroy(t){const e=Qt;if(this[e(550)][e(616)](t))try{this[e(550)][e(592)](t),this._config?.[e(557)]&&console[e(600)](e(609)+t+e(594))}catch(n){this[e(498)]?.debug&&console.warn(e(561)+t+":",n)}}[Qt(574)](){const t=Qt,e=this[t(498)]?.debug;this[t(531)]&&(this[t(531)][t(507)](),this.mutationObserver=null),this[t(550)][t(496)](),this[t(544)]=null,this[t(494)]=null,this[t(512)]=!1,this[t(498)]=null,e&&console[t(600)](t(534))}}var ne=se;function se(t,e){var n=re();return(se=function(t,e){return n[t-=123]})(t,e)}!function(){for(var t=se,e=re();;)try{if(588156===parseInt(t(147))/1+-parseInt(t(129))/2+parseInt(t(151))/3+-parseInt(t(133))/4+parseInt(t(139))/5*(parseInt(t(124))/6)+parseInt(t(150))/7*(-parseInt(t(141))/8)+parseInt(t(132))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class ie{constructor(){var t=se;this[t(138)]=!1,this[t(154)]=null,this[t(146)]=null}[ne(137)](t){var e=ne;this._config={timeout:3e4,debug:!1,modules:[e(148),"events",e(135)],...t},t[e(123)]&&$.setBaseUrl(t[e(123)]),this._isReady=!0,t.debug&&console[e(125)](e(136),{modules:this._config[e(128)],endpoint:$[e(127)](),mode:e(134)})}[ne(130)](){return this._isReady}getConfig(){return this[ne(154)]}[ne(149)](){return this[ne(146)]}getApiEndpoint(){return $[ne(127)]()}[ne(126)](){var t=ne;return this[t(154)]?.[t(155)]||!1}getEnabledModules(){var t=ne;return this[t(154)]?.[t(128)]||[]}[ne(153)](t){var e=ne;return this.getEnabledModules()[e(152)](t)}[ne(143)](t){var e=ne;if(!this[e(154)])throw new Error(e(142));this[e(154)]={...this[e(154)],...t},this[e(126)]()&&console.log(e(140),t)}[ne(145)](){var t=ne;if(!this[t(154)]?.[t(144)])throw new Error(t(131));return V.create(this._config[t(144)])}}function re(){var t=["144977gMbuCn","1138197RxOOPo","includes","isModuleEnabled","_config","debug","baseUrl","80916vYLiDA","log","isDebugMode","getBaseUrl","modules","1340858NtVDFC","isReady","API key not available","2599560sFwGmr","1962208KahUEV","development","config","✅ Config module initialized (sync mode)","init","_isReady","345ZGzUQU","🔄 Config updated","344leroyz","Config module not initialized","updateConfig","apiKey","getApiHeaders","_organizationInfo","1040937yiYHUV","ads","getOrganizationInfo"];return(re=function(){return t})()}function oe(){const t=["150707KvYMSH","tablet","getUserDeviceInfo","0x0","Unknown","getViewportInfo","5107165UxlJAZ","mapPlatformForEvents","userAgent","setDeviceProperty","9018860bbZgHy","1661332wIybRB","isBrowser","_userProvidedDeviceInfo","web","platform","22tyNiba","test","SSR","isMobile","18HInaTL","setDeviceInfo","343xIVPMS","language","2058939InyLLu","getDetailedInfo","iOS","desktop","ios","3lrPJmw","getPlatform","44136cBnFJe","ko-KR","toLowerCase","width","getAutoDetectedDeviceInfo","Desktop Web","Android","height","mobile","cookieEnabled","9775496gZCCYd"];return(oe=function(){return t})()}const ae=ce;function ce(t,e){const n=oe();return(ce=function(t,e){return n[t-=483]})(t,e)}!function(){const t=ce,e=oe();for(;;)try{if(793911===-parseInt(t(489))/1*(parseInt(t(509))/2)+-parseInt(t(518))/3*(-parseInt(t(500))/4)+parseInt(t(495))/5+-parseInt(t(520))/6*(-parseInt(t(511))/7)+-parseInt(t(488))/8+-parseInt(t(513))/9+-parseInt(t(499))/10*(-parseInt(t(505))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class de{static getDeviceInfo(){const t=ce;return{...de[t(524)](),...de[t(502)]}}static[ae(524)](){const t=ae;if(!k[t(501)]())return{category:"other",platform:t(507),model:t(507),osVersion:t(507)};const e=navigator[t(497)][t(522)]();let n=t(516);/tablet|ipad/[t(506)](e)?n=t(490):N[t(508)]()&&(n=t(486));const s=N[t(519)]();return{category:n,platform:de[t(496)](s),model:navigator[t(504)],osVersion:navigator.platform}}static[ae(510)](t){const e=ae;de[e(502)]={...de[e(502)],...t}}static[ae(498)](t,e){de._userProvidedDeviceInfo[t]=e}static clearDeviceInfo(){de[ae(502)]={}}static[ae(491)](){return{...de[ae(502)]}}static mapPlatformForEvents(t){const e=ae;switch(t){case e(517):return e(515);case"android":return e(484);case e(503):return"Mobile Web";case e(516):return e(483);default:return e(493)}}static[ae(514)](){const t=ae;if(!k[t(501)]())return{userAgent:"SSR",language:t(521),platform:"SSR",cookieEnabled:!1,onLine:!0,screenResolution:t(492),viewportSize:t(492)};const e=k[t(494)]();return{userAgent:navigator[t(497)],language:navigator[t(512)]||t(521),platform:navigator[t(504)],cookieEnabled:navigator[t(487)],onLine:navigator.onLine,screenResolution:screen[t(523)]+"x"+screen[t(485)],viewportSize:e.width+"x"+e[t(485)]}}}de[ae(502)]={};const le=he;function ue(){const t=["34954pVxPAO","30xwmAwf","1177576OZEexD","_userProperties","timeZone","estimateLocation","getUserInfo","5529030HHGPtl","clearUserProperties","306931FFtFdT","8373530yeJESy","1359356CneiIF","extractCountryFromLanguage","language","isBrowser","setUserProperties","getCurrentUserProperties","7vKEhYR","getBaseUserInfo","DateTimeFormat","5cyUjHA","5357286GyuLip","split"];return(ue=function(){return t})()}!function(){const t=he,e=ue();for(;;)try{if(618925===parseInt(t(181))/1+parseInt(t(195))/2*(-parseInt(t(196))/3)+-parseInt(t(183))/4*(parseInt(t(192))/5)+parseInt(t(202))/6*(parseInt(t(189))/7)+parseInt(t(197))/8+parseInt(t(193))/9+-parseInt(t(182))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class pe{static[le(201)](){return{...pe[le(190)](),...pe._userProperties}}static[le(190)](){const t=le;if(!k.isBrowser())return{language:"ko-KR",country:"KR"};const e=navigator[t(185)]||"ko-KR";return{language:e,country:pe[t(184)](e)}}static extractCountryFromLanguage(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[le(194)]("-")[0]]||"KR"}static[le(187)](t){const e=le;pe._userProperties={...pe[e(198)],...t}}static setUserProperty(t,e){pe[le(198)][t]=e}static[le(180)](){pe[le(198)]={}}static[le(188)](){return{...pe[le(198)]}}static[le(200)](){const t=le;if(!k[t(186)]())return{timezone:"UTC",estimatedCountry:"KR"};const e=Intl[t(191)]().resolvedOptions()[t(199)];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 he(t,e){const n=ue();return(he=function(t,e){return n[t-=180]})(t,e)}pe[le(198)]={};const fe=ge;function ge(t,e){const n=me();return(ge=function(t,e){return n[t-=201]})(t,e)}function me(){const t=["125828eqraWc","adstage_user_id","204311NwkwtK","231qBNdVz","12273132uIlclf","8RSXmxG","isSessionExpired","_sessionStartTime","getSessionStats","getItem","getSessionId","setItem","ssr_session_","random","isBrowser","now","toString","clearUserId","224260TiyQAE","3PQgKnk","adstage_session_start","removeItem","substr","_userId","12321TNPqdJ","refreshSession","337920LbLiPI","setUserId","getUserId","42urGELj","adstage_session_id","40726NqdgsO","3992hIbBsM","isNewSession","getSessionDuration"];return(me=function(){return t})()}!function(){const t=ge,e=me();for(;;)try{if(413103===parseInt(t(221))/1*(-parseInt(t(224))/2)+parseInt(t(203))/3*(-parseInt(t(219))/4)+parseInt(t(210))/5+-parseInt(t(213))/6*(parseInt(t(215))/7)+parseInt(t(216))/8*(parseInt(t(208))/9)+-parseInt(t(202))/10*(parseInt(t(222))/11)+parseInt(t(223))/12)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class Ie{static[fe(229)](){const t=fe;if(!k[t(233)]())return t(231)+Date[t(234)]();const e=sessionStorage[t(228)](t(214));if(e)return e;const n="session_"+Math[t(232)]()[t(235)](36)[t(206)](2,9)+"_"+Date.now();return sessionStorage[t(230)](t(214),n),!Ie[t(226)]&&(Ie._sessionStartTime=Date[t(234)](),k.isBrowser()&&sessionStorage.setItem("adstage_session_start",String(Ie[t(226)]))),n}static[fe(211)](t){const e=fe;Ie[e(207)]=t,k[e(233)]()&&localStorage[e(230)](e(220),t)}static[fe(212)](){const t=fe;if(Ie[t(207)])return Ie._userId;if(k[t(233)]()){const e=localStorage[t(228)]("adstage_user_id");if(e)return Ie[t(207)]=e,e}}static[fe(201)](){const t=fe;Ie[t(207)]=void 0,k.isBrowser()&&localStorage[t(205)]("adstage_user_id")}static getSessionInfo(){const t=fe,e=Ie[t(229)](),n=Ie[t(212)](),s=Ie[t(217)]();return{sessionId:e,userId:n,sessionDuration:Ie[t(218)](),isNewSession:s}}static[fe(217)](){const t=fe;if(!k[t(233)]())return!0;const e=sessionStorage[t(228)]("adstage_session_id"),n=sessionStorage[t(228)](t(204));return!e||!n}static[fe(218)](){const t=fe;if(!k[t(233)]())return 0;const e=sessionStorage[t(228)](t(204));return e?Date[t(234)]()-parseInt(e,10):0}static[fe(209)](){const t=fe;return k[t(233)]()&&(sessionStorage[t(205)](t(214)),sessionStorage[t(205)]("adstage_session_start")),Ie[t(226)]=void 0,Ie[t(229)]()}static[fe(225)](t=24){return Ie[fe(218)]()>60*t*60*1e3}static[fe(227)](){const t=fe,e=Ie[t(229)](),n=Ie[t(212)](),s=Ie.getSessionDuration(),i=Ie[t(225)](),r=Ie[t(217)]();let o;if(k[t(233)]()){const e=sessionStorage[t(228)](t(204));o=e?parseInt(e,10):void 0}return{sessionId:e,userId:n,startTime:o,duration:s,isExpired:i,isNewSession:r}}}const ve=ye;function ye(t,e){const n=be();return(ye=function(t,e){return n[t-=446]})(t,e)}function be(){const t=["📱 User provided device info cleared","_config","setDeviceInfo","application/json","create","isReady","sendEventToServer","📊 Events module initialized","setDeviceProperty","setUserProperties","Events module not initialized. Call AdStage.init() first.","POST","debug","events","getUserDeviceInfo","error","getDeviceInfo","📱 Device property set:","getCurrentUserProperties","9549690UItoAT","clearDeviceInfo","509085MuqSqs","1888DWOHzQ","4487077NQJfsb","getUserInfo","getUserId","getSessionId","1479039vLNcLF","409579PDnSPq","track","log","📱 Device info set:","_isReady","status","2wWrOgN","✅ Event tracked:","❌ Failed to track event:","warn","88KlCaMp","6560DpAwIz","setUserId","1280778zYWNrV","apiKey"];return(be=function(){return t})()}!function(){const t=ye,e=be();for(;;)try{if(334628===parseInt(t(474))/1+-parseInt(t(480))/2*(-parseInt(t(473))/3)+parseInt(t(468))/4*(parseInt(t(485))/5)+-parseInt(t(487))/6+-parseInt(t(469))/7+parseInt(t(484))/8*(parseInt(t(467))/9)+-parseInt(t(465))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class we{constructor(){this[ye(478)]=!1,this._config=null}init(t){const e=ye;this._config=t,this[e(478)]=!0,t[e(458)]&&console[e(476)](e(453))}[ve(451)](){return this[ve(478)]}getConfig(){return this[ve(447)]}[ve(486)](t){const e=ve;Ie[e(486)](t),this._config?.[e(458)]&&console[e(476)]("👤 User ID set:",t)}[ve(471)](){return Ie.getUserId()}setUserProperties(t){const e=ve;pe[e(455)](t),this[e(447)]?.[e(458)]&&console[e(476)]("👤 User properties set:",t)}getUserProperties(){return pe[ve(464)]()}setDeviceInfo(t){const e=ve;de[e(448)](t),this[e(447)]?.debug&&console[e(476)](e(477),t)}[ve(454)](t,e){const n=ve;de[n(454)](t,e),this[n(447)]?.[n(458)]&&console[n(476)](n(463),t,e)}clearDeviceInfo(){const t=ve;de[t(466)](),this[t(447)]?.debug&&console[t(476)](t(446))}[ve(460)](){return de[ve(460)]()}[ve(462)](){return de.getDeviceInfo()}getUserInfo(){return pe[ve(470)]()}[ve(464)](){return pe[ve(464)]()}async[ve(475)](t,e){const n=ve;if(this._isReady)if(this[n(447)]?.apiKey)try{const s={eventName:t,userId:Ie[n(471)](),sessionId:Ie[n(472)](),sdkVersion:A(),device:de.getDeviceInfo(),user:pe[n(470)](),params:e||{}};await this[n(452)](s),this[n(447)][n(458)]&&console.log(n(481),t,e)}catch(s){console[n(461)](n(482),s),this[n(447)][n(458)]&&console[n(461)]("Event data:",{eventName:t,properties:e})}else console[n(483)]("API key not configured for event tracking.");else console[n(483)](n(456))}async sendEventToServer(t){const e=ve,n=await fetch($[e(459)][e(475)](),{method:e(457),headers:{...V[e(450)](this._config[e(488)]),"Content-Type":e(449)},body:JSON.stringify(t)});if(!n.ok)throw new Error("Event tracking failed: "+n[e(479)]+" "+n.statusText)}}const ke=Ee;function Ee(t,e){const n=xe();return(Ee=function(t,e){return n[t-=370]})(t,e)}function xe(){const t=["size","apiKey","config","13264710ctxtrI","AdStage not initialized. Call AdStage.init() first.","clear","log","baseUrl",")의 viewable 추적 초기화됨","ads","_isInitialized","events","init","clearAdViewable","471205ivBwuH","7086yFmJfB","✅ AdStage Debug: 광고 ","reset","371316UtRtsX","5173qiwrtS","7725222uHwiEj","...","2.0.0","getInstance","viewableTracker","🚀 AdStage SDK initialized (sync mode)","_config","debug","📊 AdStage Debug: 현재 viewable 추적 상태","🌐 API endpoint configured:","instance","✅ AdStage Debug: 모든 viewable 추적 데이터 초기화됨","28UJCSiW","7052816kEsBYp","10CZfQkt","development","setBaseUrl","887792BjfnOm","substring","from"];return(xe=function(){return t})()}!function(){const t=Ee,e=xe();for(;;)try{if(451663===parseInt(t(378))/1+parseInt(t(375))/2*(-parseInt(t(399))/3)+-parseInt(t(373))/4*(-parseInt(t(395))/5)+-parseInt(t(396))/6*(-parseInt(t(400))/7)+-parseInt(t(374))/8+parseInt(t(401))/9+-parseInt(t(384))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class Ae{constructor(){const t=Ee;this[t(391)]=!1,this[t(407)]=null,this[t(383)]=new ie,this[t(390)]=new ee,this[t(392)]=new we}static[ke(393)](t){const e=ke;!Ae[e(371)]&&(Ae.instance=new Ae);const n=Ae[e(371)];if(!t.apiKey)throw new Error("API key is required for AdStage initialization");n[e(407)]={timeout:3e4,debug:!1,modules:[e(390),"events",e(383)],...t},n._config[e(388)]&&($[e(377)](n[e(407)][e(388)]),t[e(408)]&&console[e(387)](e(370),n[e(407)][e(388)]));const s=n._config.modules||[e(390),e(392),e(383)];for(const t of s){const s=n[t];s&&"function"==typeof s.init&&s.init(n[e(407)])}n[e(391)]=!0,t[e(408)]&&console[e(387)](e(406),{version:e(403),modules:s,apiKey:t[e(382)][e(379)](0,8)+e(402),mode:e(376)})}static isReady(){const t=ke;return Ae[t(371)]?._isInitialized||!1}static getConfig(){const t=ke;return Ae[t(371)]?.[t(407)]||null}static[ke(404)](){const t=ke;if(!Ae[t(371)])throw new Error(t(385));return Ae[t(371)]}static get ads(){const t=ke;return Ae[t(404)]()[t(390)]}static get events(){const t=ke;return Ae.getInstance()[t(392)]}static get[ke(383)](){const t=ke;return Ae[t(404)]()[t(383)]}static[ke(398)](){const t=ke;Ae[t(371)]&&(Ae[t(371)][t(391)]=!1,Ae[t(371)][t(407)]=null)}}function Se(t,e){var n=De();return(Se=function(t,e){return n[t-=499]})(t,e)}function Ce(t,e){var n=Se;return Ae[n(504)]()?Ae[n(510)][n(503)](t,e):(console[n(501)]("AdStage not initialized. Call AdStage.init() first."),Promise[n(513)]())}function Te(t){var e=Se;Ae.isReady()?Ae[e(510)][e(514)](t):console[e(501)](e(515))}function Re(){var t=Se;if(Ae.isReady())return Ae.events[t(507)]();console.warn("AdStage not initialized. Call AdStage.init() first.")}function De(){var t=["8RpaCAy","1659qCvNtI","7784630JZaheE","getUserProperties","warn","822474dZpEsp","track","isReady","4294450OuQyoV","1324QiNfHJ","getUserId","4651551xbDjCs","1602HUJbJr","events","7683IBFnnH","setUserProperties","resolve","setUserId","AdStage not initialized. Call AdStage.init() first.","1245884tZSHLr"];return(De=function(){return t})()}function Be(t){var e=Se;Ae[e(504)]()?Ae[e(510)][e(512)](t):console[e(501)](e(515))}function Le(){var t=Se;if(Ae[t(504)]())return Ae[t(510)][t(500)]();console[t(501)](t(515))}Ae.debug={clearAllViewable:()=>{const t=ke;ft[t(386)](),console[t(387)](t(372))},clearAdViewable:(t,e)=>{const n=ke;ft[n(394)](t,e),console[n(387)](n(397)+t+"("+e+n(389))},getViewableStatus:()=>{const t=ke;console.log(t(409),{trackedCount:ft[t(405)][t(381)],trackedItems:Array[t(380)](ft[t(405)])})}},function(){for(var t=Se,e=De();;)try{if(459510===-parseInt(t(502))/1+-parseInt(t(516))/2+parseInt(t(511))/3*(parseInt(t(506))/4)+parseInt(t(505))/5+-parseInt(t(509))/6*(parseInt(t(518))/7)+parseInt(t(517))/8*(-parseInt(t(508))/9)+parseInt(t(499))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const ze=e(null);function Me({children:e,config:i}){const[r,o]=n(!1),[a,c]=n(null),[d,l]=n(null),u=t=>{try{l(null),r&&Ae.reset(),Ae.init(t),c(t),o(!0),t.debug&&console.log("✅ AdStage SDK initialized successfully via React Provider")}catch(t){const e=t instanceof Error?t.message:"Unknown error";l(e),console.error("❌ AdStage SDK initialization failed:",t),o(!1),c(null)}};s(()=>{i&&!r&&u(i)},[i,r]);const p={isInitialized:r,config:a,initialize:u,reset:()=>{try{Ae.reset(),o(!1),c(null),l(null)}catch(t){console.error("❌ AdStage SDK reset failed:",t)}},error:d};return t(ze.Provider,{value:p,children:e})}function Ne(){const t=i(ze);if(!t)throw new Error("useAdStageContext must be used within an AdStageProvider");return t}function Ue(){const{isInitialized:t}=Ne();return t?Ae:(console.warn("AdStage SDK is not initialized. Please call initialize() first or provide config to AdStageProvider."),null)}function Pe(){var t=["819348ueqSZF","1656QIHkKy","15485770AlMWPp","377HFZAOx","932838CdEEkv","3245032UWdWwz","1840058lqVmfL","3VaBztz","29LkoOnF","21592Xyxalf","9LovElp","12215amuMuT","40enpLBC"];return(Pe=function(){return t})()}function Oe(t,e){var n=Pe();return(Oe=function(t,e){return n[t-=186]})(t,e)}!function(){for(var t=Oe,e=Pe();;)try{if(966605===parseInt(t(195))/1*(-parseInt(t(196))/2)+-parseInt(t(194))/3*(parseInt(t(192))/4)+parseInt(t(186))/5*(-parseInt(t(191))/6)+parseInt(t(198))/7*(-parseInt(t(188))/8)+parseInt(t(197))/9*(parseInt(t(189))/10)+parseInt(t(193))/11+parseInt(t(187))/12*(parseInt(t(190))/13))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const Ve=Fe;function Fe(t,e){const n=He();return(Fe=function(t,e){return n[t-=244]})(t,e)}function He(){const t=["179484UmIxVm","5256344urSOuP","ads","2536310CHxcdR","681214yHvmoO","events","27ztqoPA","7mskrJG","603780kqrhoK","5226516yVPgtX","2695270PwLRbk","2.0.0","4yQZLIf","undefined"];return(He=function(){return t})()}!function(){const t=Fe,e=He();for(;;)try{if(451875===-parseInt(t(244))/1+parseInt(t(252))/2*(-parseInt(t(254))/3)+parseInt(t(248))/4+parseInt(t(257))/5+-parseInt(t(249))/6+-parseInt(t(247))/7*(-parseInt(t(255))/8)+parseInt(t(246))/9*(parseInt(t(250))/10))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const _e=Ve(251),Ke=[Ve(256),Ve(245),"config"];typeof window!==Ve(253)&&(window.AdStage=Ae);export{Ae as AdStage,Me as AdStageProvider,_e as SDK_VERSION,Ke as SUPPORTED_MODULES,Re as getUserId,Le as getUserProperties,Te as setUserId,Be as setUserProperties,Ce as track,Ne as useAdStageContext,Ue as useAdStageInstance};
|
|
1
|
+
import{jsx as t}from"react/jsx-runtime";import{createContext as e,useState as n,useEffect as s,useContext as i}from"react";var r,o,a,c,d,l,u,p,h,f,g,m;function I(t,e){var n=v();return(I=function(t,e){return n[t-=281]})(t,e)}function v(){var t=["VIDEO","437519OrnZKv","VIEWABLE","POPUP","4rWaoeK","DESKTOP","78DftmQG","BANNER","TEXT","1269198LbXfHk","2223591TlkLmA","NATIVE","3210385RjPTAI","20416220nDCzop","40bYftyj","MOBILE","117481giaBAR","1313217xUonKB","WEB","CLICK","TABLET"];return(v=function(){return t})()}!function(){for(var t=I,e=v();;)try{if(486476===-parseInt(t(292))/1+parseInt(t(300))/2+parseInt(t(301))/3+-parseInt(t(295))/4*(-parseInt(t(282))/5)+-parseInt(t(297))/6*(-parseInt(t(286))/7)+parseInt(t(284))/8*(parseInt(t(287))/9)+-parseInt(t(283))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}(),(o=r||(r={}))[(a=I)(298)]=a(298),o.POPUP=a(294),o.INTERSTITIAL="INTERSTITIAL",o[a(281)]="NATIVE",o[a(291)]=a(291),o[a(299)]="TEXT",d=c||(c={}),l=I,d.WEB=l(288),d.MOBILE="MOBILE",p=u||(u={}),h=I,p.VIEWABLE=h(293),p[h(289)]=h(289),(g=f||(f={}))[(m=I)(296)]=m(296),g[m(285)]=m(285),g[m(290)]=m(290);const y=b;function b(t,e){const n=w();return(b=function(t,e){return n[t-=127]})(t,e)}function w(){const t=["loading","safeCreateElement","forEach","safeApplyStyles","751209tYTrHR","getComputedStyle","66NxhTdd","canUseDOM","getElementById","safeSetTextContent","log","⏳ 컨테이너 대기 중: ","✅ 컨테이너 발견: ","2671092BIibhp","waitForElements"," (최대 ","documentElement","✅ 컨테이너 즉시 발견: ","ms (","addEventListener","getDocumentProperty","isSSR","safeRemoveChild","remove","querySelectorAll","classList","safeQuerySelectorAll","innerHTML","textContent","2EUfpjp","safeAddEventListener","title","devicePixelRatio","safeRemoveClass","⏳ 컨테이너 대기 시작: ","520686PFWiEL","location","번째 시도, ","open","4PpYjje","readyState","all",'"\n \n다음을 확인해보세요:\n1. HTML에 id="',"entries","from","safeAddClass","undefined","1694360UcOZrw","safeQuerySelector","safeWindowOpen","isBrowser","8224oPCUuV","map","safeSetInnerHTML","safeAppendChild","pow","setProperty","scrollTop","1942150EELanc","querySelector","DOM을 사용할 수 없는 환경입니다.","ms 경과)","error","getPageInfo","105fgocON","133604hmfGKg","safeGetElementById","safeRemoveEventListener","getScrollInfo","번 시도)","isDOMReady","style","waitForElement","pageXOffset","getWindowProperty","href","pageYOffset"];return(w=function(){return t})()}!function(){const t=b,e=w();for(;;)try{if(310630===-parseInt(t(191))/1*(-parseInt(t(155))/2)+-parseInt(t(130))/3+parseInt(t(165))/4*(-parseInt(t(173))/5)+-parseInt(t(161))/6+parseInt(t(190))/7*(-parseInt(t(177))/8)+-parseInt(t(139))/9+-parseInt(t(184))/10*(-parseInt(t(132))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class E{static[y(176)](){const t=y;return typeof window!==t(172)&&typeof document!==t(172)}static[y(147)](){return!this[y(176)]()}static[y(133)](){const t=y;return this[t(176)]()&&void 0!==document[t(166)]}static[y(192)](t){const e=y;return this[e(133)]()?document[e(134)](t):null}static[y(174)](t){const e=y;return this[e(133)]()?document[e(185)](t):null}static[y(152)](t){const e=y;return this.canUseDOM()?Array[e(170)](document[e(150)](t)):[]}static[y(127)](t){return this[y(133)]()?document.createElement(t):null}static safeAddEventListener(t,e,n,s){const i=y;this[i(133)]()&&t&&t[i(145)](e,n,s)}static[y(193)](t,e,n,s){this[y(133)]()&&t&&t.removeEventListener(e,n,s)}static[y(200)](t,e){return this[y(176)]()?window[t]??e:e}static[y(146)](t,e){return this[y(133)]()?document[t]??e:e}static[y(175)](t,e,n){const s=y;return this[s(176)]()?window[s(164)](t,e,n):null}static safeGetComputedStyle(t){const e=y;return this[e(176)]()&&t?window[e(131)](t):null}static[y(196)](){const t=y;return!!this[t(133)]()&&document[t(166)]!==t(203)}static waitForDOM(){return new Promise(t=>{const e=b;this[e(133)]()?this[e(196)]()?t():this[e(156)](document,"DOMContentLoaded",()=>t()):t()})}static[y(129)](t,e){const n=y;this.canUseDOM()&&t&&Object[n(169)](e)[n(128)](([e,s])=>{const i=n;t[i(197)][i(182)](e,s)})}static[y(171)](t,e){const n=y;this.canUseDOM()&&t&&t[n(151)].add(e)}static[y(159)](t,e){const n=y;this[n(133)]()&&t&&t.classList[n(149)](e)}static[y(135)](t,e){const n=y;this[n(133)]()&&t&&(t[n(154)]=e)}static[y(179)](t,e){const n=y;this[n(133)]()&&t&&(t[n(153)]=e)}static[y(180)](t,e){this[y(133)]()&&t&&e&&t.appendChild(e)}static[y(148)](t,e){this[y(133)]()&&t&&e&&t.removeChild(e)}static[y(189)](){const t=y;return{url:this.getWindowProperty(t(162),{href:""})[t(201)],title:this[t(146)](t(157),""),referrer:this[t(146)]("referrer","")}}static getViewportInfo(){const t=y;return{width:this.getWindowProperty("innerWidth",0),height:this[t(200)]("innerHeight",0),pixelRatio:this.getWindowProperty(t(158),1)}}static[y(194)](){const t=y;return{scrollTop:this[t(133)]()?window[t(202)]||document[t(142)][t(183)]:0,scrollLeft:this.getWindowProperty(t(199),0)}}static async[y(198)](t,e={}){const n=y,{timeout:s=3e3,retryInterval:i=100,debug:r=!1}=e;if(!this[n(133)]())throw new Error(n(186));const o=document[n(134)](t);return o?(r&&console[n(136)](n(143)+t),o):(r&&console[n(136)](n(160)+t+n(141)+s+"ms)"),new Promise((e,n)=>{let o=0;const a=Math.ceil(s/i),c=()=>{const d=b;o++;const l=document[d(134)](t);if(l)return r&&console[d(136)](d(138)+t+" ("+o+d(163)+o*i+d(187)),void e(l);if(o>=a){const e='❌ 컨테이너를 찾을 수 없습니다: "'+t+d(168)+t+'" 요소가 있는지 확인\n2. React 등에서 컴포넌트가 렌더링된 후 SDK 호출\n3. 철자가 정확한지 확인\n4. 중복된 ID가 없는지 확인\n\n대기 시간: '+s+d(144)+o+d(195);return r&&console[d(188)](e),void n(new Error(e))}r&&o%10==0&&console.log(d(137)+t+" ("+o+"/"+a+")");const u=Math.min(i*Math[d(181)](1.2,o),500);setTimeout(c,u)};setTimeout(c,i)}))}static async[y(140)](t,e={}){const n=y,s=t[n(178)](t=>this[n(198)](t,e));return Promise[n(167)](s)}}const k=x;function x(t,e){const n=T();return(x=function(t,e){return n[t-=245]})(t,e)}!function(){const t=x,e=T();for(;;)try{if(830431===parseInt(t(250))/1+-parseInt(t(257))/2*(-parseInt(t(246))/3)+parseInt(t(248))/4+-parseInt(t(252))/5+parseInt(t(249))/6*(-parseInt(t(258))/7)+parseInt(t(254))/8*(parseInt(t(251))/9)+-parseInt(t(255))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const S=k(259);function A(){return S}function T(){const t=["AdStageSDK/","293620NdlsaA","390fnBlDd","316978LuLkYf","5894757lDwwey","6263510aEnPqu"," AdStageSDK/","8lzTpNv","834510kiuiKD","userAgent","6548jEyqMw","29806hMuMJj",'"3.0.5"',"undefined","1281gFZsfH"];return(T=function(){return t})()}const C=R;function L(){const t=["590382KKoVYw","substr","toLowerCase","DateTimeFormat","984aravBs","toString","setItem","desktop","random","userAgent","getSlotPosition","unknown","9kjwAHh","SSR","2LRPpcR","92164jOBFBj","top","generateSessionId","getBoundingClientRect","pixelRatio","getViewportInfo","now","android","1492040dRTOQx","10HpZHWd","language","scrollTop","width","3548413WaXpbd","collectDeviceInfo","adstage_session_id",",y:","connection","left","getItem","adstage_device_id","754772orMGiE","isBrowser","generateDeviceId","colorDepth","session_","getPlatform","round","effectiveType","height","ios","8946puXQwE","isMobile","resolvedOptions","web","timeZone","getScrollInfo","test","platform","1381872nLtQZZ"];return(L=function(){return t})()}function R(t,e){const n=L();return(R=function(t,e){return n[t-=191]})(t,e)}!function(){const t=R,e=L();for(;;)try{if(154602===-parseInt(t(192))/1*(parseInt(t(191))/2)+parseInt(t(232))/3+-parseInt(t(213))/4+parseInt(t(200))/5+parseInt(t(236))/6*(-parseInt(t(223))/7)+parseInt(t(231))/8*(-parseInt(t(244))/9)+-parseInt(t(201))/10*(-parseInt(t(205))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class D{static generateDeviceId(){const t=R;if(!E[t(214)]())return"ssr_device_"+Date[t(198)]();const e=localStorage[t(211)](t(212));if(e)return e;const n="device_"+Math[t(240)]()[t(237)](36)[t(233)](2,9)+"_"+Date[t(198)]();return localStorage[t(238)](t(212),n),n}static[C(194)](){const t=C;if(!E[t(214)]())return"ssr_session_"+Date[t(198)]();const e=sessionStorage[t(211)](t(207));if(e)return e;const n=t(217)+Math.random()[t(237)](36)[t(233)](2,9)+"_"+Date.now();return sessionStorage[t(238)](t(207),n),n}static isMobile(){const t=C;return!!E[t(214)]()&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i[t(229)](navigator[t(241)])}static getPlatform(){const t=C;if(!E[t(214)]())return t(226);const e=navigator[t(241)][t(234)]();return/iphone|ipad|ipod/[t(229)](e)?t(222):/android/[t(229)](e)?t(199):D[t(224)]()?"web":t(239)}static[C(206)](){const t=C,e=E[t(197)]();return{deviceId:D[t(215)](),sessionId:D.generateSessionId(),osVersion:E[t(214)]()?navigator[t(230)]:t(245),deviceModel:E[t(214)]()?navigator.platform:t(245),appVersion:"1.0.0",sdkVersion:A(),language:E[t(214)]()&&navigator[t(202)]||"ko",country:"KR",ipAddress:"",userAgent:E[t(214)]()?navigator[t(241)]:t(245),timezone:E.isBrowser()?Intl[t(235)]()[t(225)]()[t(227)]:"UTC",viewportWidth:e[t(204)],viewportHeight:e[t(221)],screenWidth:E[t(214)]()?screen.width:0,screenHeight:E[t(214)]()?screen[t(221)]:0,colorDepth:E[t(214)]()?screen[t(216)]:24,pixelRatio:e[t(196)],connectionType:E.isBrowser()&&navigator[t(209)]?.[t(220)]||t(243),platform:D[t(218)]()}}static[C(242)](t){const e=C,n=E.safeGetElementById(t);if(!n)return e(243);const s=n[e(195)](),i=E[e(228)]();return"x:"+Math[e(219)](s[e(210)])+e(208)+Math[e(219)](s[e(193)]+i[e(203)])}}const B=P;function U(){const t=["10FAdBLC","1023411mXbLgz","4550XuaOCz","4237974pyNies","7NJEsVG","2662137dLUFYG","createForEvents","contentType","165595cpfOKt","User-Agent","15366901dNJOss","API key is required","97cBMBxF","create","undefined","5552480hAwtSZ","68esythH","application/json","userAgent"];return(U=function(){return t})()}function P(t,e){const n=U();return(P=function(t,e){return n[t-=350]})(t,e)}!function(){const t=P,e=U();for(;;)try{if(405444===-parseInt(t(354))/1*(-parseInt(t(363))/2)+-parseInt(t(362))/3+-parseInt(t(358))/4*(parseInt(t(350))/5)+parseInt(t(364))/6*(-parseInt(t(365))/7)+parseInt(t(357))/8+-parseInt(t(366))/9+-parseInt(t(361))/10*(-parseInt(t(352))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class z{static[B(355)](t,e){const n=B;if(!t)throw new Error(n(353));const s={"x-api-key":t,"Content-Type":e?.[n(368)]||n(359)};return typeof navigator!==n(356)&&(s[n(351)]=e?.[n(360)]||navigator.userAgent),s}static[B(367)](t,e){const n=B,s=z[n(355)](t);return e?.[n(360)]&&(s[n(351)]=e.userAgent),s}}const M=N;function V(){const t=["...","sessionId","platform","parseNumericValue","1861276ZZjUpn","get"," event for ad ","VIEWABLE","apiKey","slots","text"," in slot ","substring","url","width","baseUrl","🚀 Sending advertisement event: ","log","height","replace","🚀 AdvertisementEventTracker: Processing "," for ad ","3232971vkwotW","API request failed: ","✅ Successfully tracked advertisement event: ","NOT_SET","104552TdrVme","📡 API Response Status: ","collectDeviceInfo","status"," - ","2238TmOmER","POST","1955tIQeNl","referrer","length","1166142NnmvDi","debug","/advertisements/events/","127246nXUrHy","🌐 Full API call details:","144IUJAKK","getPageInfo","594030FqNfAx","createForEvents","🔍 Debug info:","❌ Failed to track advertisement event:","stringify","string","now"];return(V=function(){return t})()}function N(t,e){const n=V();return(N=function(t,e){return n[t-=456]})(t,e)}!function(){const t=N,e=V();for(;;)try{if(322866===-parseInt(t(503))/1+-parseInt(t(457))/2+parseInt(t(500))/3+parseInt(t(468))/4+-parseInt(t(497))/5*(-parseInt(t(495))/6)+-parseInt(t(486))/7+parseInt(t(490))/8*(parseInt(t(505))/9))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class O{constructor(t,e,n,s){const i=N;this.baseUrl=t,this[i(472)]=e,this[i(501)]=n,this[i(473)]=s}async trackAdvertisementEvent(t,e,n){const s=N;try{this.debug&&console.log(s(484)+n+s(470)+t+s(475)+e);const i=this[s(473)][s(469)](e),r=D[s(492)](),o={adType:i?.adType||"BANNER",platform:r[s(466)],deviceId:r.deviceId,deviceInfo:r,pageUrl:E[s(456)]()[s(477)],pageTitle:E[s(456)]().title,referrer:E.getPageInfo()[s(498)],slotId:e,slotPosition:D.getSlotPosition(i?.containerId||""),slotWidth:O[s(467)](i?.[s(478)]),slotHeight:O[s(467)](i?.[s(482)]),sessionId:r[s(465)],pageLoadTime:performance[s(463)](),metadata:{eventType:n,sdkVersion:A(),timestamp:Date.now()},...n===u[s(471)]&&{isViewable:!0,iabCompliant:!0}},a=this[s(479)]+s(502)+t+"/"+n,c=z[s(458)](this.apiKey,o);this[s(501)]&&(console[s(481)](s(480)+n+s(485)+t,{url:a,headers:c,eventData:o}),console[s(481)](s(504),{method:"POST",url:a,hasApiKey:!!this[s(472)],bodySize:JSON[s(461)](o)[s(499)]}));const d=await fetch(a,{method:s(496),headers:c,body:JSON[s(461)](o)});if(this.debug&&console[s(481)](s(491)+d.status+" "+d.statusText,{url:a,ok:d.ok}),!d.ok){const t=await d[s(474)]();throw new Error(s(487)+d[s(493)]+" "+d.statusText+s(494)+t)}this.debug&&console[s(481)](s(488)+n+s(485)+t)}catch(i){console.error(s(460),i),console.error(s(459),{baseUrl:this[s(479)],apiKey:this[s(472)]?this.apiKey[s(476)](0,8)+s(464):s(489),url:this.baseUrl+s(502)+t+"/"+n,eventType:n,adId:t,slotId:e})}}static[M(467)](t){const e=M;if("number"==typeof t)return t;if(typeof t===e(462)){const n=parseFloat(t[e(483)](/px$/,""));return isNaN(n)?0:n}return 0}}var F=_;function _(t,e){var n=W();return(_=function(t,e){return n[t-=401]})(t,e)}!function(){for(var t=_,e=W();;)try{if(519253===parseInt(t(417))/1+parseInt(t(406))/2*(-parseInt(t(426))/3)+parseInt(t(413))/4*(-parseInt(t(410))/5)+-parseInt(t(425))/6*(-parseInt(t(424))/7)+-parseInt(t(420))/8+parseInt(t(419))/9*(parseInt(t(416))/10)+parseInt(t(411))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class H{constructor(t,e){this[_(421)]=null,this.isViewableTriggered=!1,this.element=t,this.onViewableCallback=e,this.initIntersectionObserver()}[F(404)](){var t=F;t(412)in window?(this.observer=new IntersectionObserver(t=>this.handleIntersection(t),{threshold:.5,rootMargin:t(407)}),this[t(421)][t(418)](this[t(405)])):console[t(403)](t(427))}[F(402)](t){var e=F;t[e(415)](t=>{var n=e;t.intersectionRatio>=.5&&this[n(414)]()&&!this[n(422)]&&(this[n(422)]=!0,this[n(423)]&&this[n(423)]())})}[F(414)](){var t=F;return!document[t(401)]&&"visible"===document[t(409)]}destroy(){var t=F;this[t(421)]&&(this.observer[t(408)](),this[t(421)]=null)}}function W(){var t=["observe","36uCAWXa","7200008GLcRbW","observer","isViewableTriggered","onViewableCallback","329YMOhZb","26718itIHIH","213QnRBBw","IntersectionObserver not supported, viewability tracking disabled","hidden","handleIntersection","warn","initIntersectionObserver","element","8392UrnhSQ","0px","disconnect","visibilityState","45ryYgLL","15527413hJTqzB","IntersectionObserver","396184eWYiVd","isDocumentVisible","forEach","278270DSWBqP","876402aVxwiI"];return(W=function(){return t})()}const j=q;!function(){const t=q,e=X();for(;;)try{if(562404===parseInt(t(242))/1*(-parseInt(t(238))/2)+-parseInt(t(239))/3+parseInt(t(248))/4+-parseInt(t(249))/5*(-parseInt(t(237))/6)+parseInt(t(245))/7*(parseInt(t(254))/8)+parseInt(t(255))/9+-parseInt(t(236))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const K={production:"https://api.adstage.io",beta:"https://beta-api.adstage.app"};function X(){const t=["startsWith","getBaseUrl","9477820YTtTlE","636990IydLFs","21866koZSMi","497061UgerTr","events","/advertisements/list","67vciLMD","/events/track","track","1183ypRmJm","/advertisements","production","3585056DRBwVu","25MCwQWJ","/advertisements/events","custom","advertisements","list","16296TiuESb","5733378BYtcZp","setBaseUrl","baseUrl"];return(X=function(){return t})()}function q(t,e){const n=X();return(q=function(t,e){return n[t-=234]})(t,e)}j(247);const Y={advertisements:{list:j(241),detail:j(246),events:j(250)},events:{track:j(243)}};class J{constructor(t){const e=j;this[e(252)]={list:()=>""+this[e(257)]+Y.advertisements[e(253)],detail:t=>""+this[e(257)]+Y.advertisements.detail+"/"+t,events:(t,n)=>""+this[e(257)]+Y[e(252)][e(240)]+"/"+t+"/"+n},this[e(240)]={track:()=>""+this.baseUrl+Y[e(240)][e(244)]},this[e(257)]=t||K[e(247)]}[j(256)](t){this[j(257)]=t}[j(235)](){return this[j(257)]}[j(251)](t){const e=j;return""+this[e(257)]+(t[e(234)]("/")?t:"/"+t)}}const G=new J;function Q(t,e){var n=$();return(Q=function(t,e){return n[t-=463]})(t,e)}var Z=Q;function $(){var t=["🎯 Triggering VIEWABLE event for slide change: ad ","trackSlideViewable","514334RALzIa","VIEWABLE","3488712zTWcOA","1049948QLKGij","_id","🎯 Triggering initial VIEWABLE event: ad ","trackInitialSlideViewable","log","1DWeWhf","3Wtpztd",") in slot: "," (index: 0) in slot: ","2365390UgWbRW","5284488tjUaAc"," (index: ","19886436SoqraY","60508fWwEal"];return($=function(){return t})()}!function(){for(var t=Q,e=$();;)try{if(508477===parseInt(t(478))/1*(-parseInt(t(470))/2)+parseInt(t(479))/3*(parseInt(t(473))/4)+-parseInt(t(463))/5+-parseInt(t(472))/6+parseInt(t(467))/7+-parseInt(t(464))/8+parseInt(t(466))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class tt{static[Z(469)](t,e,n,s,i=!1){var r=Z;i&&console[r(477)](r(468)+t[r(474)]+r(465)+n+r(480)+e.id),s(t[r(474)],e.id,u[r(471)])}static[Z(476)](t,e,n,s=!1){var i=Z;s&&console[i(477)](i(475)+t[i(474)]+i(481)+e.id),n(t[i(474)],e.id,u[i(471)])}}function et(){const t=["11pEwIPa","cursor","5oJtxJH"," -> ","31854ptkfot","addClickEventsBatch","stopPropagation","_blank","linkUrl","toLowerCase","🔗 ","open","addClickEventForRenderer","122190VXAoYz","addEventListener","13538664UEyRhE","addClickEvent","forEach","style","pointer","72eLmDLy","CLICK","_id"," ad clicked: ","preventDefault","732540PqnYMX","adType","826YLFPlS","isClickable","81LfXBuN","click","659uALiDw","log","338023NQicFl","46696HkaHMv"];return(et=function(){return t})()}const nt=st;function st(t,e){const n=et();return(st=function(t,e){return n[t-=452]})(t,e)}!function(){const t=st,e=et();for(;;)try{if(270262===-parseInt(t(476))/1*(parseInt(t(472))/2)+-parseInt(t(470))/3+-parseInt(t(479))/4+-parseInt(t(482))/5*(parseInt(t(484))/6)+-parseInt(t(478))/7*(parseInt(t(465))/8)+parseInt(t(474))/9*(parseInt(t(458))/10)+-parseInt(t(480))/11*(-parseInt(t(460))/12))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class it{static addClickEvent(t,e,n,s,i=!1,r){const o=st;e[o(453)]&&(t[o(463)][o(481)]="pointer",t[o(459)](o(475),t=>{const a=o;if(t[a(469)](),t[a(486)](),s&&s(e[a(467)],n.id,u[a(466)]),window[a(456)](e[a(453)],a(452)),i){const t=r||String(n.adType)[a(454)]();console[a(477)](a(455)+t+a(468)+e._id+a(483)+e[a(453)])}}))}static[nt(457)](t,e,n,s,i=!1,r){const o=nt;e[o(453)]&&(t[o(463)].cursor=o(464),t.addEventListener(o(475),t=>{const a=o;t[a(469)](),t[a(486)]();if(s()(e[a(467)],n.id,u[a(466)]),window[a(456)](e[a(453)],"_blank"),i){const t=r||String(n[a(471)]).toLowerCase();console.log(a(455)+t+" ad clicked: "+e[a(467)]+a(483)+e.linkUrl)}}))}static addClickEventForSlider(t,e,n,s,i=!1,r){this[nt(461)](t,e,n,s,i,r)}static[nt(473)](t){return Boolean(t[nt(453)])}static[nt(485)](t,e,n,s,i=!1,r){t[nt(462)]((t,o)=>{const a=e[o];a&&this.addClickEvent(t,a,n,s,i,r)})}}const rt=at;function ot(){const t=["createSimpleAdElement","classList","5BogIfc","createElement","auto","BANNER","TEXT"," Ad","transition","2452756FUfcjO","clientX","mouseenter","getBoundingClientRect","entries","2298MUkHCD","relative","border","setAttribute","adstage-ad adstage-","6937YMLHrP","100px","\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 ","img","data-adstage-slot-id","transform 0.4s ease-out","touches","active","forEach","Banner Ad","string","querySelectorAll","changedTouches","cssText","_id","1px solid #666","createSliderContainer","addClickEventForSlider","flex","transparent","textContent","add","remove","createMinimalDotIndicator","height","contains","data-adstage-ad-id","body","src","borderColor","12556800ReNjMU","whiteSpace","includes","color","100%","adstage-slide-container","adstage-slide","14ISINPc","VIDEO","children","className","length","cover","4190229LrUYxw","#999999","normal","button","imageUrl","1714887BVegKf","adType","touchstart",".adstage-dot","videoUrl","display","removeChild","toLowerCase","div","transform","#f0f0f0","8kgXgXO","autoSlideInterval","inline-block","Video Ad","center","preventDefault","style","adstage-dots","57704iREMOb","#cccccc","fontSize","opacity","adstage-dot","video","padding","setProperty","#000","200px","mouseleave","background","4319887mIPgcy","width","addEventListener","backgroundColor","hidden","0.7","#666666","appendChild"];return(ot=function(){return t})()}function at(t,e){const n=ot();return(at=function(t,e){return n[t-=263]})(t,e)}!function(){const t=at,e=ot();for(;;)try{if(698675===-parseInt(t(348))/1*(-parseInt(t(318))/2)+-parseInt(t(324))/3+-parseInt(t(271))/4*(-parseInt(t(264))/5)+parseInt(t(276))/6*(-parseInt(t(281))/7)+-parseInt(t(340))/8*(parseInt(t(329))/9)+parseInt(t(311))/10+parseInt(t(360))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class ct{static[rt(368)](t,e){const n=rt,s=document[n(265)](n(337));switch(s.className=n(280)+String(t[n(330)])[n(336)](),s[n(279)](n(307),e[n(295)]),s[n(279)](n(285),t.id),s.style.display="block",s[n(346)][n(361)]="100%",s[n(346)][n(305)]=n(266),t[n(330)]){case r[n(267)]:if(e[n(328)]){const t=document[n(265)](n(284));t[n(309)]=e[n(328)],t[n(346)][n(361)]=n(315),t[n(346)][n(305)]=n(266),t[n(346)].objectFit=n(323),s[n(367)](t)}else s[n(346)][n(305)]=n(282),s[n(346)][n(363)]=n(339),s[n(346)][n(278)]="1px dashed #ccc",s[n(301)]=n(290);break;case r[n(319)]:if(e[n(333)]){const t=document[n(265)](n(353));t[n(309)]=e[n(333)],t[n(346)].width=n(315),t.style.height="auto",s.appendChild(t)}else s[n(346)][n(305)]=n(357),s.style[n(363)]=n(356),s[n(346)][n(278)]=n(296),s[n(301)]=n(343),s.style[n(314)]="white";break;case r[n(268)]:if(e.textContent){const t=document[n(265)]("div");t[n(301)]=e.textContent||"",t[n(346)][n(354)]="8px",t[n(346)][n(350)]="14px",s[n(367)](t)}else s[n(346)].height="50px",s[n(346)][n(354)]="8px",s[n(301)]="Text Ad";break;default:s.style[n(305)]="100px",s[n(346)].border="1px dashed #ccc",s[n(346)][n(363)]="#f9f9f9",s[n(301)]=t[n(330)]+n(269)}return s}static[rt(297)](t,e,n,s,i=!1){const o=rt,a=document[o(265)]("div");a[o(321)]="adstage-slider-wrapper";const c={position:o(277),overflow:o(364)};if(t[o(361)]&&0!==t.width){let e;e=typeof t[o(361)]===o(291)&&(t[o(361)][o(313)]("px")||t.width[o(313)]("%"))?t[o(361)]:t[o(361)]+"px",c[o(361)]=e,c[o(334)]=o(342)}else c[o(334)]=o(342);if(t[o(305)]&&0!==t[o(305)]){const e=typeof t.height===o(291)?t.height:t[o(305)]+"px";c[o(305)]=e}Object[o(275)](c)[o(289)](([t,e])=>{const n=o;a[n(346)][n(355)](t,e)});const d=!t[o(361)]||0===t[o(361)],l=!t[o(305)]||0===t[o(305)];if(d||l){const n=document[o(265)]("div");if(n[o(346)][o(294)]="\n position: absolute;\n visibility: hidden;\n white-space: nowrap;\n top: -9999px;\n left: -9999px;\n ",!d&&t.width){let e;e=typeof t[o(361)]===o(291)?t[o(361)].includes("px")||t[o(361)][o(313)]("%")?t[o(361)]:t[o(361)]+"px":t.width+"px",n.style.width=e,n.style[o(312)]=o(326)}document[o(308)].appendChild(n);let s=0,i=0;e[o(289)](e=>{const r=o,a=this[r(368)](t,e);n[r(367)](a);const c=a[r(274)]();c.width>s&&(s=c[r(361)]),c[r(305)]>i&&(i=c[r(305)]),n[r(335)](a)}),d&&s>0&&(a[o(346)].width=s+"px",c.width=s+"px"),l&&i>0&&(a.style[o(305)]=i+"px",c[o(305)]=i+"px"),document[o(308)][o(335)](n)}const u=[...e,e[0]],p=document[o(265)](o(337));p.className=o(316);const h={display:o(299),transition:"transform 0.4s ease-out",width:100*u[o(322)]+"%"};t.height&&0!==t[o(305)]&&(h[o(305)]=o(315)),Object.entries(h)[o(289)](([t,e])=>{const n=o;p[n(346)][n(355)](t,e)}),u[o(289)]((e,n)=>{const r=o,a=document[r(265)]("div");a[r(321)]=r(317);const c={width:100/u.length+"%","flex-shrink":"0",display:r(299),"align-items":"center","justify-content":r(344)};t.height&&0!==t.height&&(c.height=r(315)),Object.entries(c)[r(289)](([t,e])=>{const n=r;a.style[n(355)](t,e)});const d=this.createSimpleAdElement(t,e);it[r(298)](d,e,t,s,i,String(t.adType)[r(336)]()),a[r(367)](d),p.appendChild(a)});const f=e.every(t=>t.adType===r[o(268)])?null:this[o(304)](e.length);let g=0;const m=e[o(322)],I=1e3*(n?.[o(341)]||3),v=(n,r=!1)=>{const a=o;g=n,p[a(346)][a(270)]=r?"none":a(286),p[a(346)][a(338)]="translateX(-"+100/u[a(322)]*g+"%)";const c=g===m?0:g;if(f){f.querySelectorAll(a(332))[a(289)]((t,e)=>{const n=a,s=t;e===c?(s[n(263)][n(302)]("active"),s[n(346)][n(359)]=n(366),s.style[n(310)]=n(366),s[n(346)].opacity="1"):(s[n(263)][n(303)](n(288)),s[n(346)].background=n(300),s.style[n(310)]=n(349),s[n(346)].opacity="0.7")})}tt.trackSlideViewable(e[c],t,c,s,i)},y=()=>{g===m&&setTimeout(()=>{v(0,!0)},400)};if(f){f[o(292)](o(332))[o(289)]((t,e)=>{t[o(362)]("click",()=>v(e))})}let b=setInterval(()=>{v(g+1),y()},I);return a[o(362)](o(273),()=>{clearInterval(b)}),a[o(362)](o(358),()=>{b=setInterval(()=>{v(g+1),y()},I)}),this.addTouchSupport(p,v,()=>g,m,y),a[o(367)](p),f&&a[o(367)](f),v(0),(!t.width||0===t.width)&&setTimeout(()=>{const e=o,n=p[e(320)][0];if(n){const s=n[e(320)][0];if(s){const n=s[e(274)]();a.style.width=n[e(361)]+"px",(!t[e(305)]||0===t.height)&&(a[e(346)][e(305)]=n[e(305)]+"px"),a[e(346)].overflow=e(364)}}},10),a}static[rt(304)](t){const e=rt,n=document[e(265)](e(337));n.className=e(347),n[e(346)][e(294)]="\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 ";for(let s=0;s<t;s++){const t=document[e(265)](e(327));t[e(321)]=e(352),t[e(346)].cssText=e(283),t[e(362)]("mouseenter",()=>{const n=e;!t[n(263)][n(306)]("active")&&(t[n(346)].borderColor=n(325),t[n(346)][n(351)]="0.9")}),t.addEventListener(e(358),()=>{const n=e;!t[n(263)][n(306)](n(288))&&(t[n(346)][n(310)]="#cccccc",t[n(346)].opacity=n(365))}),n[e(367)](t)}return n}static addTouchSupport(t,e,n,s,i){const r=rt;let o=0,a=!1;t[r(362)](r(331),t=>{const e=r;o=t[e(287)][0][e(272)],a=!0}),t.addEventListener("touchmove",t=>{a&&t[r(345)]()}),t[r(362)]("touchend",t=>{const c=r;if(!a)return;a=!1;const d=t[c(293)][0][c(272)],l=o-d;if(Math.abs(l)>50){const t=n();if(l>0){e(t+1),i&&i()}else{e(t>0?t-1:s-1)}}})}}const dt=lt;function lt(t,e){const n=pt();return(lt=function(t,e){return n[t-=385]})(t,e)}!function(){const t=lt,e=pt();for(;;)try{if(842489===parseInt(t(400))/1*(parseInt(t(404))/2)+parseInt(t(401))/3*(parseInt(t(403))/4)+parseInt(t(392))/5*(parseInt(t(387))/6)+-parseInt(t(386))/7+parseInt(t(402))/8*(-parseInt(t(388))/9)+-parseInt(t(398))/10*(-parseInt(t(394))/11)+-parseInt(t(391))/12*(-parseInt(t(393))/13))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class ut{static[dt(390)](t,e,n=!1){const s=dt,i=t+"_"+e;return ut.viewableTracker[s(399)](i)?(n&&console[s(385)](s(396)+t+" in slot "+e),!0):(ut[s(405)].add(i),n&&console.log(s(389)+t+s(407)+e),!1)}static[dt(406)](){const t=dt;ut[t(405)][t(406)]()}static[dt(397)](t,e){const n=dt,s=t+"_"+e;ut.viewableTracker[n(395)](s)}}function pt(){const t=["log","10231977XXNFap","4866XfpEDf","226467luMLLx","✅ New viewable recorded for ad ","isDuplicateViewable","1764RNELbs","4415mpmtLh","26065qjTCrx","11HXJDnL","delete","Duplicate viewable blocked for ad ","clearAdViewable","1093380viaVxc","has","1109176KSJKyX","255351nUlnsQ","328LLMVCA","52vfZqVa","2XaWMya","viewableTracker","clear"," in slot "];return(pt=function(){return t})()}ut[dt(405)]=new Set;const ht=gt;function ft(){const t=["filter","monospace","fontFamily","data-adstage-empty","toLowerCase","adstage-official","true","495uOybhv","1px solid rgba(0, 0, 0, 0.08)","getAttribute","#666","error","auto","getElementById",") - Mode: ","3WlxfbT","📊 Advertisement event tracked: ","innerHTML","208952vElikw","2px dashed #e74c3c","unknown","subtle","parentElement","closest","<span>Loading ","getContainerHeight","advertisementEventTracker","📦 Placeholder created for ","border","📏 Using 100% height (container: ",'[class*="ad"]',"className","renderFallback",'div[style*="min-height"]',"calculateAdSize","⚠️ Created empty ","⚠️ ","borderRadius","#f9f9f9","createElement","cssText","generic",'div[style*="height"]',"log","6px","advertisement","📏 Using default height ","adstage-slot adstage-empty adstage-",'[data-adstage-container="true"]',"div","placeholderMode",".adstage-slot","): ","102324clksfW","contains","height","#e74c3c","applyPlaceholderStyle","justifyContent","string","adstage-slot","getComputedStyle","number","getDefaultHeight","none","13806kBpijY","adstage-class","setAttribute","fontSize","data-adstage-type","opacity","rgba(0, 0, 0, 0.02)","rgba(248, 249, 250, 0.5)","invisible",'<span style="color: rgba(0, 0, 0, 0.3); font-size: 11px; font-family: sans-serif;">•••</span>',"width","createPlaceholder"," container collapsed (","debug","adstage-slot adstage-","VIEWABLE","hasAttribute","adType","trackAdvertisementEvent","warn","transparent","rgba(231, 76, 60, 0.1)"," ad...</span>","createEmptyContainer","alignItems"," container: ","minimal",'<span style="color: rgba(0, 0, 0, 0.4); font-size: 12px; font-family: -apple-system, sans-serif;">•••</span>',"data-adstage-slot"," x ",'[class*="container"]',"⚠️ AdvertisementEventTracker not available for ","2104776wgSnUk"," event for ad ","2292145mIbPPf","flex"," in slot ","data-adstage-container","block","center","730912HFAQfD","isEmpty","4px","\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 ","display","style"," for ","1532956MvvBsp","100%","appendChild"," for ad ","11px","🔄 Starting advertisement event tracking: ","minHeight","backgroundColor"];return(ft=function(){return t})()}function gt(t,e){const n=ft();return(gt=function(t,e){return n[t-=452]})(t,e)}!function(){const t=gt,e=ft();for(;;)try{if(239270===-parseInt(t(566))/1+parseInt(t(458))/2*(-parseInt(t(528))/3)+-parseInt(t(505))/4+-parseInt(t(492))/5+-parseInt(t(490))/6+parseInt(t(498))/7+parseInt(t(531))/8*(parseInt(t(520))/9))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class mt{constructor(t,e=!1,n){const s=gt;this[s(475)]=t,this[s(471)]=e,this[s(539)]=n||null}[ht(469)](t,e,n,s){const i=ht,r=document[i(552)](i(562));r.id=e,r[i(544)]=i(472)+String(this[i(475)])[i(517)](),r[i(460)](i(495),i(519)),r[i(460)](i(462),String(this[i(475)])),r[i(460)](i(486),e);const{width:o,height:a}=this[i(547)](t,n,s)||{width:i(506),height:this[i(456)]()};r[i(503)][i(468)]=o,r.style[i(568)]=a;const c=s?.[i(563)]||n.placeholderMode||i(466);this.applyPlaceholderStyle(r,c),t[i(507)](r),this[i(471)]&&console.log(i(540)+this[i(475)]+" slot: "+e+" ("+o+i(487)+a+i(527)+c)}[ht(570)](t,e){const n=ht;switch(e){case n(466):t.style[n(512)]=n(478),t[n(503)][n(541)]=n(457),t.style[n(463)]="0",t[n(530)]="";break;case"transparent":t[n(503)][n(512)]="transparent",t[n(503)][n(541)]=n(457),t.style.display=n(496),t[n(530)]="";break;case n(534):t[n(503)][n(512)]=n(464),t[n(503)].border=n(457),t[n(503)][n(550)]=n(500),t[n(503)][n(502)]=n(493),t[n(503)].alignItems=n(497),t[n(503)][n(571)]=n(497),t.innerHTML=n(467);break;case n(484):t[n(503)][n(512)]=n(465),t.style[n(541)]=n(521),t.style[n(550)]=n(557),t[n(503)][n(502)]=n(493),t[n(503)][n(482)]="center",t[n(503)][n(571)]=n(497),t.innerHTML=n(485);break;case n(471):t[n(503)][n(541)]=n(532),t[n(503)][n(502)]="flex",t.style.alignItems="center",t[n(503)][n(571)]=n(497),t.style[n(512)]=n(479),t[n(503)].color=n(569),t[n(503)][n(515)]=n(514),t[n(503)][n(461)]=n(509),t[n(530)]=n(537)+this.adType+n(480);break;default:t.style.border="1px dashed #ccc",t.style[n(502)]=n(493),t[n(503)].alignItems=n(497),t[n(503)][n(571)]=n(497),t[n(503)][n(512)]=n(551),t[n(503)].color=n(523),t[n(530)]=n(537)+this[n(475)]+n(480)}}[ht(547)](t,e,n){const s=ht,i=e[s(468)],r=e[s(568)];let o,a;if(o=typeof i===s(455)?i+"px":typeof i===s(452)?i:s(506),typeof r===s(455))a=r+"px";else if(typeof r===s(452)&&"100%"!==r&&r!==s(525))a=r;else{const e=this.getContainerHeight(t);e>0?(a=s(506),(n?.[s(471)]||this[s(471)])&&console[s(556)](s(542)+e+"px)")):(a=this[s(456)](),(n?.[s(471)]||this[s(471)])&&console[s(556)](s(559)+a+s(504)+this.adType))}return{width:o,height:a}}[ht(538)](t){const e=ht,n=window[e(454)](t),s=parseFloat(n[e(568)]);if(!s||0===s){const s=parseFloat(n[e(511)]);if(s>0)return s;if(t.style.height&&t[e(503)][e(568)]!==e(525)){const n=parseFloat(t[e(503)].height);if(n>0)return n}const i=t[e(522)](e(568));if(i){const t=parseFloat(i);if(t>0)return t}}return s||0}createEventTrackingCallback(){return async(t,e,n)=>{const s=gt;if(n===u[s(473)]){if(ut.isDuplicateViewable(t,e,this[s(471)]))return void(this[s(471)]&&console[s(556)]("🚫 Duplicate viewable blocked for ad "+t+s(494)+e));this[s(471)]&&console[s(556)]("✅ New viewable recorded for ad "+t+s(494)+e)}if(this[s(539)])try{this[s(471)]&&console.log(s(510)+n+s(508)+t+" in slot "+e),await this[s(539)][s(476)](t,e,n),this[s(471)]&&console[s(556)](s(529)+n+" for ad "+t+s(494)+e)}catch(e){this[s(471)]&&console[s(524)]("❌ Failed to track "+n+s(491)+t+":",e)}else this[s(471)]&&console[s(477)](s(489)+n+" event")}}[ht(545)](t){const e=ht,n=document[e(526)](t.id);if(n){const s=[...[n.querySelector(e(561)),n[e(536)](e(561)),n][e(513)](t=>t&&t[e(474)](e(495))),...[n[e(536)](e(564)),n[e(536)](".adstage-"+String(this[e(475)])[e(517)]()),n[e(536)](e(543)),n[e(536)]('[class*="banner"]'),n[e(536)](e(488)),n.closest(e(555)),n[e(536)](e(546)),n[e(535)]][e(513)](Boolean)][0];if(s){let n=e(533);n=s[e(474)](e(495))?e(518):s.classList[e(567)](e(453))?e(459):e(554),s[e(503)][e(553)]+="\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 ",s[e(530)]="",s[e(460)](e(516),"true"),this[e(471)]&&console[e(477)](e(549)+this.adType+e(470)+n+e(565)+t.id,s)}else this.createEmptyContainer(t)}t[e(558)]=void 0,t[e(499)]=!0}[ht(481)](t){const e=ht,n=document[e(526)](t.containerId);if(n){n[e(530)]="";const s=document[e(552)](e(562));s.id=t.id,s[e(544)]=e(560)+String(this.adType).toLowerCase(),s[e(460)](e(495),e(519)),s[e(460)]("data-adstage-empty","true"),s[e(460)](e(486),t.id),s[e(503)].cssText=e(501),n[e(507)](s),this.debug&&console.warn(e(548)+this[e(475)]+e(483)+t.id)}}log(t,...e){const n=ht;this[n(471)]&&console[n(556)]("["+this[n(475)]+"] "+t,...e)}}const It=yt;function vt(){const t=["getBoundingClientRect","values","dominant","Image URL is not provided","parentElement","alt","Banner container optimization failed, using default size:","3ASEsUg","82774Xxajbb","innerHTML","toFixed","display","</div>","🔧 Banner container optimized for "," (strategy: ","onerror","📊 Using standard ratio: ","warn","🎠 Banner carousel created for slot: ","status","debug","src","objectPosition","getDefaultHeight","log","error","appendChild","backgroundColor","513564qvrLSq","borderRadius","title","Container not found: ","contain","3:2","selectOptimalSizeStrategy","count","🎨 Banner image style applied: objectFit=","getElementById"," (avg: ","calculateAdSize","map","renderAdElement","renderOptimizedBannerImage","Banner","ratio","1629KQYkom","_id","addClickEventForRenderer","height",", ratio=","center","3425844DdgHnh","Failed to calculate optimal banner size, using defaults:","containerId","allSettled","imageUrl","100%"," ads (optimized: ","📸 Banner image dimensions: ","16:9","from","reduce","toString","cover","width","1:1","average","📐 Optimal banner container calculated: ","250px",'<div style="display: flex; align-items: center; justify-content: center; height: 100%; color: #999;">Loading...</div>',"createElement","style","❌ Failed to load optimized banner image:"," ads: ","get","naturalWidth","config","6640PXktbd","loadImageDimensions","BANNER","4679156jJVLXt","forEach","filter","default","8px","optimizedHeight","createEventTrackingCallback","13602ihHugX","max","330ZJRVZD","13417390GLbqFk","objectFit","common","round","abs","set","calculateOptimalHeight","length","slideInterval"," with ","Banner Advertisement","#f0f0f0","name","Failed to load image: ","aspectRatio","3486itlCHy","5MmOkjT","calculateOptimalContainerSize","optimizeContainerForBannerAds","naturalHeight","4:3"];return(vt=function(){return t})()}function yt(t,e){const n=vt();return(yt=function(t,e){return n[t-=203]})(t,e)}!function(){const t=yt,e=vt();for(;;)try{if(940245===parseInt(t(209))/1*(-parseInt(t(210))/2)+-parseInt(t(253))/3+parseInt(t(282))/4*(parseInt(t(308))/5)+-parseInt(t(289))/6*(-parseInt(t(307))/7)+-parseInt(t(279))/8*(parseInt(t(247))/9)+parseInt(t(292))/10+-parseInt(t(291))/11*(parseInt(t(230))/12))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class bt extends mt{constructor(t=!1,e){super(r[yt(281)],t,e)}[It(225)](){return It(270)}async[It(243)](t,e){const n=It,s=document[n(239)](t.containerId);if(!s)return;const i=document[n(272)]("div");i.className="adstage-ad adstage-banner-ad";const r=t[n(287)],o=s[n(206)]||s;if(r)i[n(273)][n(266)]="100%",i[n(273)].height=String(r);else{const e=t[n(278)],s={width:e?.[n(266)],height:e?.[n(250)]},{width:r,height:a}=this[n(241)](o,s,{debug:this[n(222)]});i.style[n(266)]=r,i[n(273)][n(250)]=a}e[n(257)]?await this[n(244)](i,e,t):i.innerHTML="<div>"+(e[n(232)]||"Banner Ad")+n(214),it[n(249)](i,e,t,()=>this[n(288)](),this[n(222)],"Banner"),s[n(211)]="",s[n(228)](i)}async renderMultipleAds(t,e){const n=It,s=document[n(239)](t.containerId);if(!s)throw new Error(n(233)+t[n(255)]);await this[n(310)](t,e);const i=this[n(288)](),r={autoSlideInterval:(t[n(278)]?.[n(300)]||5e3)/1e3,...t[n(278)],optimizedHeight:t.optimizedHeight,aspectRatio:t[n(306)]},o=ct.createSliderContainer(t,e,r,i,this[n(222)]);o&&(s[n(211)]="",s[n(228)](o),this.debug&&console[n(226)](n(220)+t.id+n(301)+e[n(299)]+n(259)+(t[n(287)]||n(285))+")"))}async[It(309)](t,e){const n=It;if(!t.length)return{width:n(258),height:this[n(225)](),aspectRatio:16/9};try{const s=(await Promise[n(256)](t[n(284)](t=>t.imageUrl)[n(242)](t=>this[n(280)](t.imageUrl))))[n(284)](t=>"fulfilled"===t[n(221)])[n(242)](t=>t.value);if(0===s[n(299)])return{width:n(258),height:this[n(225)](),aspectRatio:16/9};const i=this.selectOptimalSizeStrategy(s),r=this[n(298)](s,e,i);return this[n(222)]&&console.log(n(269)+e+"x"+r+n(216)+i+")"),{width:n(258),height:r+"px",aspectRatio:e/r}}catch(t){return console[n(219)](n(254),t),{width:n(258),height:this[n(225)](),aspectRatio:16/9}}}async[It(310)](t,e){const n=It;try{const s=document.getElementById(t[n(255)]),i=document[n(239)](t.id);if(!s||!i)return;const r=s[n(313)]().width||300,o=await this[n(309)](e,r);i.style[n(250)]=o[n(250)],t[n(287)]=o[n(250)],t[n(306)]=o.aspectRatio,this[n(222)]&&console[n(226)](n(215)+e[n(299)]+n(275)+o[n(250)])}catch(t){console[n(219)](n(208),t)}}[It(236)](t){const e=It,n=t[e(242)](t=>t[e(266)]/t[e(250)]),s=new Map;n[e(283)](t=>{const n=e,i=(Math[n(295)](10*t)/10)[n(264)]();s[n(297)](i,(s[n(276)](i)||0)+1)});const i=Math[e(290)](...s[e(203)]()),r=t[e(299)];if(i/r>=.7)return e(204);const o=[16/9,4/3,1,1.5],a=n[e(284)](t=>o.some(n=>Math[e(296)](t-n)<.1)).length;return e(a/r>=.5?294:268)}calculateOptimalHeight(t,e,n){const s=It,i=t[s(242)](t=>t[s(266)]/t[s(250)]);switch(n){case s(204):{const t=new Map;i[s(283)](e=>{const n=s,i=Math[n(295)](10*e)/10,r=i[n(264)](),o=t[n(276)](r);o?o.count++:t.set(r,{ratio:i,count:1})});const n=Array[s(262)](t[s(203)]())[s(263)]((t,e)=>e[s(237)]>t[s(237)]?e:t);return Math[s(295)](e/n[s(246)])}case s(294):{const t=[{ratio:16/9,name:s(261)},{ratio:4/3,name:s(312)},{ratio:1,name:s(267)},{ratio:1.5,name:s(235)}],n=i[s(263)]((t,e)=>t+e,0)/i[s(299)],r=t[s(263)]((t,e)=>Math[s(296)](e[s(246)]-n)<Math[s(296)](t[s(246)]-n)?e:t);return this[s(222)]&&console.log(s(218)+r[s(304)]+s(240)+n[s(212)](2)+")"),Math[s(295)](e/r[s(246)])}case s(268):default:{const t=i.reduce((t,e)=>t+e,0)/i.length;return Math[s(295)](e/t)}}}[It(280)](t){return new Promise((e,n)=>{const s=yt,i=new Image;i.onload=()=>{const t=yt;e({width:i[t(277)],height:i[t(311)]})},i[s(217)]=()=>{n(new Error(s(305)+t))},i[s(223)]=t})}applyOptimizedImageStyle(t,e,n){const s=It,i=e/n;Math[s(296)](i-1)<.1?(t[s(273)][s(293)]=s(265),t[s(273)][s(224)]=s(252)):i>1.3?(t[s(273)][s(293)]=s(234),t[s(273)][s(224)]=s(252),t[s(273)][s(229)]=s(303)):i<.7?(t[s(273)][s(293)]=s(265),t[s(273)][s(224)]=s(252)):(t[s(273)][s(293)]="cover",t[s(273)][s(224)]=s(252)),this.debug&&console[s(226)](s(238)+t.style[s(293)]+s(251)+i.toFixed(2))}async[It(244)](t,e,n){const s=It,i=document.createElement("img");i[s(273)][s(266)]=s(258),i[s(273)][s(250)]="100%",i[s(273)][s(213)]="block",i.style[s(231)]=s(286),i[s(207)]=e[s(232)]||s(302),t.innerHTML=s(271);try{if(!e[s(257)])throw new Error(s(205));const r=await this.loadImageDimensions(e[s(257)]),o=t[s(313)](),a=o[s(266)],c=o[s(250)];this[s(222)]&&(console[s(226)](s(260)+r[s(266)]+"x"+r.height),console.log("📦 Banner container dimensions: "+a+"x"+c));const d=r[s(266)]/r[s(250)],l=a/c;return this.applyOptimizedImageStyle(i,d,l),i[s(223)]=e[s(257)],t[s(211)]="",t[s(228)](i),it.addClickEventForRenderer(i,e,n,()=>this[s(288)](),this[s(222)],s(245)),this[s(222)]&&console[s(226)]("✅ Optimized banner image rendered for ad: "+e[s(248)]),i}catch(r){return console[s(227)](s(274),r),e[s(257)]&&(i[s(223)]=e.imageUrl,i[s(273)][s(293)]="cover",i.style[s(224)]=s(252),t[s(211)]="",t[s(228)](i),it[s(249)](i,e,n,()=>this[s(288)](),this[s(222)],s(245))),i}}}const wt=Et;function Et(t,e){const n=kt();return(Et=function(t,e){return n[t-=227]})(t,e)}function kt(){const t=["1374978LhfWRF","title","9118249NCsCZn","5KSAEth","createTextAdStyles","2953152slVOSO","textContent","\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 ","6120788lfwGFe","3946632AJGdAP","352693sKqHZQ","39820816VUQTqR"];return(kt=function(){return t})()}!function(){const t=Et,e=kt();for(;;)try{if(770852===parseInt(t(232))/1+parseInt(t(227))/2+parseInt(t(231))/3+-parseInt(t(230))/4*(-parseInt(t(237))/5)+-parseInt(t(234))/6+parseInt(t(236))/7+-parseInt(t(233))/8)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class xt{static[wt(238)](t=!1){return wt(229)}static setTextAdContent(t,e){const n=wt,s=e[n(228)]||e[n(235)]||"";t[n(228)]=s}}function St(){const t=["mouseleave","touchstart","getBoundingClientRect","div","trackSlideViewable","block","_id","transform",");\n transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);\n z-index: ","includes","preventDefault","opacity","data-adstage-slot-id","15grzELG","left","removeChild","adType","mouseenter","absolute","translateY(20px)","Text","toLowerCase","clientY","relative","778101wOQwQt","zIndex","setProperty",";\n width: 100%;\n ","240309mKRpHj","className","normal","1652586bTtGNW",";\n transform: translateY(","96292KaRrNd","height: auto; min-height: fit-content;","position","changedTouches","top","3087flUYHB","length",";\n ","\n ","adstage-fade-slide-container","style","data-adstage-ad-id","setAttribute","createSimpleAdElement","height","adstage-fade-slider-wrapper","width","push","26712clTCXz","touchmove","\n position: absolute;\n visibility: hidden;\n white-space: nowrap;\n top: -9999px;\n left: -9999px;\n ","1045132VqFUeq","translateY(-20px)","forEach","abs","minHeight","\n position: relative;\n width: 100%;\n ","fit-content","touches","appendChild","adstage-ad adstage-","whiteSpace","auto","\n position: ","height: 100%;","createElement","string","touchend","addEventListener","cssText","addTouchSupport","body","clientX","35012AwEKqi"];return(St=function(){return t})()}const At=Tt;function Tt(t,e){const n=St();return(Tt=function(t,e){return n[t-=500]})(t,e)}!function(){const t=Tt,e=St();for(;;)try{if(445725===parseInt(t(561))/1+parseInt(t(532))/2+parseInt(t(557))/3+parseInt(t(510))/4+parseInt(t(546))/5*(parseInt(t(564))/6)+-parseInt(t(566))/7+parseInt(t(507))/8*(-parseInt(t(571))/9))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class Ct{static createSimpleAdElement(t,e){const n=Tt,s=document[n(524)]("div");return s[n(562)]=n(519)+String(t[n(549)])[n(554)](),s.setAttribute(n(500),e[n(539)]),s[n(501)](n(545),t.id),s[n(576)].cssText=xt.createTextAdStyles(!0),xt.setTextAdContent(s,e),s}static createTextTransitionContainer(t,e,n,s,i=!1){const r=Tt,o=t[r(503)]&&0!==t[r(503)]&&t[r(503)]!==r(521),a=document[r(524)](r(536));a.className=r(504);const c={position:r(556),overflow:"hidden",display:r(538)};if(!o&&(c[r(503)]=r(521),c[r(514)]=r(516)),t[r(505)]&&0!==t[r(505)]){let e;e=typeof t[r(505)]===r(525)&&(t[r(505)].includes("px")||t[r(505)].includes("%"))?t.width:t[r(505)]+"px",c.width=e}if(t[r(503)]&&0!==t.height&&t[r(503)]!==r(521)&&o){let e;e=typeof t[r(503)]===r(525)&&(t.height[r(542)]("px")||t[r(503)][r(542)]("%"))?t[r(503)]:t[r(503)]+"px",c.height=e}Object.entries(c)[r(512)](([t,e])=>{const n=r;a[n(576)][n(559)](t,e)});const d=document[r(524)]("div");d[r(562)]=r(575),d[r(576)][r(528)]=r(515)+(o?"height: 100%;":r(567))+r(574);let l=null;const u=!t[r(505)]||0===t[r(505)],p=!t[r(503)]||0===t[r(503)]||void 0===t.height||t[r(503)]===r(521);if(u||p&&o){if(l=document[r(524)](r(536)),l[r(576)][r(528)]=r(509),!u&&t[r(505)]){let e;e=typeof t.width===r(525)&&(t[r(505)][r(542)]("px")||t[r(505)][r(542)]("%"))?t[r(505)]:t[r(505)]+"px",l.style.width=e,l.style[r(520)]=r(563)}document[r(530)][r(518)](l);let n=0,s=0;e[r(512)](e=>{const i=r,o=this[i(502)](t,e);l[i(518)](o);const a=o[i(535)]();a[i(505)]>n&&(n=a[i(505)]),a.height>s&&(s=a.height),l[i(548)](o)}),u&&n>0&&(a[r(576)][r(505)]=n+"px"),p&&s>0&&o&&(a[r(576)][r(503)]=s+"px"),document[r(530)].removeChild(l)}const h=[];e.forEach((e,n)=>{const a=r,c=document[a(524)](a(536));c.className="adstage-fade-slide";const l=a(o?551:0===n?556:551);c.style.cssText=a(522)+l+";\n top: "+(l===a(551)?"0":"auto")+";\n left: "+(l===a(551)?"0":a(521))+a(560)+(o?a(523):"height: auto;")+"\n display: flex;\n align-items: center;\n justify-content: flex-start;\n opacity: "+(0===n?"1":"0")+a(565)+(0===n?"0":"20px")+a(541)+(0===n?"2":"1")+a(573);const u=this[a(502)](t,e);it.addClickEventForSlider(u,e,t,s,i,a(553)),c[a(518)](u),d[a(518)](c),h[a(506)](c)});let f=0;const g=e[r(572)],m=1e3*(n?.autoSlideInterval||4),I=n=>{const a=r;n>=g?n=0:n<0&&(n=g-1);const c=h[f],d=h[n];!o&&(c.style.position===a(556)&&(c.style[a(568)]=a(551),c[a(576)].top="0",c.style[a(547)]="0"),d[a(576)][a(568)]="relative",d[a(576)][a(570)]=a(521),d.style[a(547)]=a(521)),c[a(576)][a(544)]="0",c.style[a(540)]=a(511),c[a(576)][a(558)]="1",d[a(576)].opacity="1",d.style[a(540)]="translateY(0)",d[a(576)][a(558)]="2",h[a(512)]((t,e)=>{const s=a;e!==n&&e!==f&&(t.style[s(544)]="0",t.style.transform=s(552),t.style[s(558)]="1",!o&&t[s(576)].position===s(556)&&(t[s(576)][s(568)]="absolute",t[s(576)][s(570)]="0",t.style[s(547)]="0"))}),f=n,tt[a(537)](e[f],t,f,s,i)};let v=setInterval(()=>{I(f+1)},m);return a[r(527)](r(550),()=>{clearInterval(v)}),a[r(527)](r(533),()=>{v=setInterval(()=>{I(f+1)},m)}),Ct.addTouchSupport(a,I,()=>f,g),a[r(518)](d),a}static[At(529)](t,e,n,s){const i=At;let r=0,o=0,a=!1;t[i(527)](i(534),t=>{const e=i;r=t[e(517)][0][e(531)],o=t[e(517)][0].clientY,a=!0}),t.addEventListener(i(508),t=>{a&&t[i(543)]()}),t[i(527)](i(526),t=>{const s=i;if(!a)return;a=!1;const c=t[s(569)][0].clientX,d=t[s(569)][0][s(555)],l=r-c,u=o-d;if(Math.abs(l)>Math[s(513)](u)&&Math.abs(l)>50){const t=n();e(l>0?t+1:t-1)}})}}function Lt(){const t=["21aEWwgU","height","style","4036536wBqjfq","optimizedHeight"," ads","log","slideInterval","✨ Text transition created for slot: ","div","100%","calculateAdSize","innerHTML","debug","4332130aRJVWq","setTextAdContent","✨ Single text ad rendered: ","8673012OlKDkJ","createElement","2708XUrXpg","820kqMBny","Container not found: ","aspectRatio","185106rIVCRK"," with ","_id","renderMultipleAds","adstage-text-content","getDefaultHeight","className","607nYdRLL","containerId","width","number","maxLines","TEXT","cssText","config","hidden","overflow","26284HfOuXg","getElementById","createEventTrackingCallback","vertical","Text","webkitBoxOrient","1005162CeCUbw","appendChild"];return(Lt=function(){return t})()}const Rt=Dt;function Dt(t,e){const n=Lt();return(Dt=function(t,e){return n[t-=128]})(t,e)}!function(){const t=Dt,e=Lt();for(;;)try{if(621999===-parseInt(t(164))/1*(-parseInt(t(153))/2)+-parseInt(t(132))/3+-parseInt(t(174))/4*(-parseInt(t(154))/5)+parseInt(t(157))/6*(parseInt(t(134))/7)+-parseInt(t(137))/8+-parseInt(t(151))/9+parseInt(t(148))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class Bt extends mt{constructor(t=!1,e){super(r[Dt(169)],t,e)}[Rt(162)](){return"60px"}async renderAdElement(t,e){const n=Rt,s=document[n(175)](t[n(165)]);if(!s)return;const i=document[n(152)](n(143));i.className="adstage-ad adstage-text-ad";const r=t.optimizedHeight,o=s.parentElement||s;if(r)i[n(136)].width=n(144),i[n(136)].height=String(r);else{const e=t.config,s={width:e?.width,height:e?.[n(135)]},{width:r,height:a}=this[n(145)](o,s,{debug:this[n(147)]});i[n(136)][n(166)]=r,i[n(136)][n(135)]=a}const a=document[n(152)]("div");a[n(163)]=n(161),a[n(136)][n(170)]=xt.createTextAdStyles(!1),xt[n(149)](a,e);const c=t.config?.[n(168)];c&&typeof c===n(167)&&(a.style.display="-webkit-box",a[n(136)].webkitLineClamp=String(c),a[n(136)][n(131)]=n(129),a[n(136)][n(173)]=n(172)),i[n(133)](a),it.addClickEventForRenderer(i,e,t,()=>this[n(128)](),this[n(147)],n(130)),s[n(146)]="",s.appendChild(i),this[n(147)]&&console[n(140)](n(150)+e[n(159)])}async[Rt(160)](t,e){const n=Rt,s=document[n(175)](t[n(165)]);if(!s)throw new Error(n(155)+t.containerId);const i=this[n(128)](),r={autoSlideInterval:(t[n(171)]?.[n(141)]||5e3)/1e3,...t[n(171)],optimizedHeight:t[n(138)],aspectRatio:t[n(156)]},o=Ct.createTextTransitionContainer(t,e,r,i,this.debug);o&&(s[n(146)]="",s.appendChild(o),this[n(147)]&&console[n(140)](n(142)+t.id+n(158)+e.length+n(139)))}}const Ut=zt;function Pt(){const t=["\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 ","addClickEventForRenderer","\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 ","alt","muted","Video thumbnail","disabled (default)","addEventListener","width","getElementById","controls","style"," !important;\n }\n video::-webkit-media-controls-fullscreen-button {\n display: ","Video","🎬 Auto-play was prevented:","421182KwDgSF","setAttribute","hideCurrentTime","rgba(0, 0, 0, 0.9)","videoUrl","🔊 Video mute toggled: ","1hXDcIZ","cssText","hideVolumeSlider","innerHTML","contain","loop","🎬 Video data loaded, attempting autoplay...","appendChild","createEventTrackingCallback","🎬 Initial autoplay attempt after timeout...","🎬 Single video ad rendered: ",'\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 '," (autoplay: ","\n video::-webkit-media-controls-play-button {\n display: ","div","none","hideControls","paused","error","70cQHssa","🎬 Trying muted autoplay fallback...","relative","renderVideoElementDirect","title","getDefaultHeight","21YFGdua","imageUrl","renderAdElement",", muted: ","config","warn","metadata","customControls","background","🎬 Video config received:","scale(1.1)","video","🎬 Video can play, attempting autoplay...","stopPropagation","Container not found: ","autoplay","1159362dKCgoW"," !important;\n }\n video::-webkit-media-controls-timeline {\n display: ","adstage-video-container","canplay",", loop: ","hideRemainingTime","block","100%","height","hideFullscreenButton","log","8910759KjKEvD","\n pointer-events: none;\n ","mouseleave","transform","objectFit","unmuted","777894ylZuRS","createElement","🎬 Autoplay completely failed:","head","1134488wHcaRC","adstage-video-default-controls","position","catch","🎬 Single video rendered for VIDEO slot: ","className","Click to mute","10CrXcZa"," !important;\n }\n video::-webkit-media-controls-current-time-display {\n display: ","Video fallback","playsinline","renderMultipleAds","\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 ","360px","\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 ","length","preload","debug"," !important;\n }\n video::-webkit-media-controls-mute-button {\n display: ","1223752GwQuWk","display","enabled","play","354806HunHIV","scale(1)","hideProgressBar","hidePlayButton","adstage-video-mute-button","textContent","containerId","src","img","_id"];return(Pt=function(){return t})()}function zt(t,e){const n=Pt();return(zt=function(t,e){return n[t-=499]})(t,e)}!function(){const t=zt,e=Pt();for(;;)try{if(221177===-parseInt(t(534))/1*(-parseInt(t(503))/2)+parseInt(t(592))/3+parseInt(t(499))/4+-parseInt(t(603))/5*(-parseInt(t(575))/6)+parseInt(t(559))/7*(-parseInt(t(596))/8)+parseInt(t(528))/9*(parseInt(t(553))/10)+-parseInt(t(586))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class Mt extends mt{constructor(t=!1,e){super(r.VIDEO,t,e)}[Ut(558)](){return Ut(609)}async[Ut(561)](t,e){const n=Ut,s=document[n(522)](t[n(509)]);if(!s)return;const i=document.createElement("div");i[n(601)]=n(577),i.style.cssText=n(608),this[n(556)](i,e,t),s[n(537)]="",s.appendChild(i),this[n(613)]&&console[n(585)](n(544)+e._id)}async[Ut(607)](t,e){const n=Ut,s=document[n(522)](t[n(509)]);if(!s)throw new Error(n(573)+t[n(509)]);if(e[n(611)]>0){const i=e[0],r=document.createElement(n(548));r[n(601)]=n(577),r[n(524)][n(535)]=n(515),this[n(556)](r,i,t),s.innerHTML="",s[n(541)](r);const o=this[n(542)]();setTimeout(()=>{o(i[n(512)],t.id,u.VIEWABLE)},100),this.debug&&console[n(585)](n(600)+t.id+" ("+i[n(512)]+")")}else this[n(613)]&&console[n(564)]("⚠️ No video advertisements available for slot: "+t.id)}renderVideoElementDirect(t,e,n){const s=Ut;t.style[s(598)]=s(555);const i=document[s(593)](s(570));i[s(524)][s(521)]=s(582),i[s(524)][s(583)]=s(582),i.style[s(590)]=s(538),i[s(612)]=s(565);const r=n[s(563)];if(this[s(613)]&&console.log(s(568),r),i[s(523)]=!1,i[s(574)]=!1!==r?.[s(574)],i.muted=!0,i[s(539)]=!1!==r?.[s(539)],this[s(613)]&&console[s(585)]("🎬 Final video settings:",{autoplay:i[s(574)],muted:i[s(517)],loop:i[s(539)],controls:i[s(523)]}),!1!==r?.[s(606)]&&i[s(529)]("playsinline",""),!0===r?.[s(523)]&&(i.controls=!0,this[s(613)]&&console[s(585)]("🎬 User explicitly enabled controls, overriding default")),r?.[s(550)])i[s(523)]=!1,i[s(524)][s(535)]+=s(587);else if(r?.[s(566)]){if(i.controls){const t=document[s(593)](s(524));t[s(508)]=s(547)+(r[s(566)][s(506)]?s(549):s(581))+s(576)+(r[s(566)][s(505)]?s(549):s(581))+s(604)+(r[s(566)][s(530)]?"none":s(581))+" !important;\n }\n video::-webkit-media-controls-time-remaining-display {\n display: "+(r.customControls[s(580)]?s(549):s(581))+" !important;\n }\n video::-webkit-media-controls-volume-slider {\n display: "+(r[s(566)][s(536)]?s(549):s(581))+s(614)+(r[s(566)].hideMuteButton?"none":s(581))+s(525)+(r.customControls[s(584)]?s(549):"block")+" !important;\n }\n ",document[s(595)][s(541)](t)}}else if(i.controls){const t=document[s(593)](s(524));t.id=s(597),t.textContent=s(513),!document.getElementById(s(597))&&document[s(595)][s(541)](t)}this[s(613)]&&console[s(585)]("🎬 Video controls setting:",i[s(523)]?s(501):s(519));const o=document[s(593)]("button");o.className=s(507),o.style[s(535)]=s(610),r?.[s(550)]&&(o[s(524)][s(500)]=s(549));const a=()=>{const t=s,e=t(545);o.innerHTML=i[t(517)]?'\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 ':e,o[t(557)]=i[t(517)]?"Click to unmute":t(602)};if(a(),o.addEventListener("click",t=>{const e=s;t[e(572)](),i[e(517)]=!i[e(517)],a(),this[e(613)]&&console.log(e(533)+(i[e(517)]?e(517):e(591)))}),o[s(520)]("mouseenter",()=>{const t=s;o[t(524)][t(567)]=t(531),o[t(524)][t(589)]=t(569)}),o.addEventListener(s(588),()=>{const t=s;o[t(524)][t(567)]="rgba(0, 0, 0, 0.7)",o[t(524)][t(589)]=t(504)}),e[s(532)]){i[s(510)]=e[s(532)];const t=()=>{const t=s;i.autoplay&&i[t(517)]&&i[t(551)]&&i[t(502)]()[t(599)](e=>{const n=t;this[n(613)]&&(console[n(564)](n(527),e),console[n(564)](n(554))),i[n(517)]=!0,i.play()[n(599)](t=>{const e=n;this[e(613)]&&console[e(552)](e(594),t)})})};i[s(520)]("loadedmetadata",()=>{const e=s;this[e(613)]&&console[e(585)]("🎬 Video metadata loaded, attempting autoplay..."),t()}),i[s(520)](s(578),()=>{const e=s;this[e(613)]&&console[e(585)](e(571)),t()}),i.addEventListener("loadeddata",()=>{const e=s;this.debug&&console[e(585)](e(540)),t()}),setTimeout(()=>{const e=s;this[e(613)]&&console.log(e(543)),t()},100)}else if(e[s(560)]){const n=document.createElement(s(511));return n.src=e[s(560)],n[s(524)].width=s(582),n[s(524)][s(583)]="100%",n[s(524)][s(590)]=s(538),n[s(516)]=e[s(557)]||"Video thumbnail",void t[s(541)](n)}it.addClickEventForRenderer(i,e,n,()=>this[s(542)](),this[s(613)],s(526)),i[s(520)](s(552),i=>{const r=s;if(console.error("Video load failed:",i),e[r(560)]){const s=document.createElement(r(511));s[r(510)]=e.imageUrl,s[r(524)][r(521)]=r(582),s[r(524)].height=r(582),s.style[r(590)]=r(538),s[r(516)]=e[r(557)]||r(518),it[r(514)](s,e,n,()=>this[r(542)](),this[r(613)],r(605)),t[r(537)]="",t.appendChild(s)}}),t[s(541)](i),t[s(541)](o),this[s(613)]&&console[s(585)]("🎬 Video element created for ad: "+e[s(512)]+s(546)+i[s(574)]+s(562)+i.muted+s(579)+i[s(539)]+")")}}const Vt=Ot;function Nt(){const t=["2768690NnOJYa","innerHTML","button","img","addEventListener","37168160InMupz","6966792sqMTTg","textContent","\n margin: 0 0 12px 0;\n font-size: 14px;\n color: #6b7280;\n line-height: 1.4;\n flex: 1;\n ","length","3qQcgLB","renderAdElement","18OjHTld","7083792eJvtIB","warn","containerId","NATIVE","107538qHqjQt","🏠 Single native ad rendered: ","title","Learn More","\n width: 100%;\n height: 100%;\n object-fit: cover;\n ","backgroundColor","linkUrl","open","_id","\n width: 100%;\n height: 120px;\n margin-bottom: 12px;\n border-radius: 6px;\n overflow: hidden;\n background: #f3f4f6;\n ","\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 ","advertisementEventTracker","1399686SThWtt","18VtUEsU","Native click tracked for ad: ","🏠 Native ad rendered (first of ","createElement","mouseleave","log","\n margin: 0 0 8px 0;\n font-size: 16px;\n font-weight: 600;\n color: #111827;\n line-height: 1.3;\n ","src","adstage-ad adstage-native-ad","Native Advertisement","div","click","style","⚠️ No native advertisements available for slot: ","cssText","appendChild","#2563eb","alt","renderMultipleAds","): ","1614291ubsHlG","#3b82f6","debug","className","imageUrl","_blank"];return(Nt=function(){return t})()}function Ot(t,e){const n=Nt();return(Ot=function(t,e){return n[t-=499]})(t,e)}!function(){const t=Ot,e=Nt();for(;;)try{if(988534===-parseInt(t(508))/1+parseInt(t(552))/2*(-parseInt(t(545))/3)+-parseInt(t(548))/4+-parseInt(t(535))/5+parseInt(t(509))/6*(-parseInt(t(529))/7)+parseInt(t(541))/8*(parseInt(t(547))/9)+parseInt(t(540))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class Ft extends mt{constructor(t=!1,e){super(r[Ot(551)],t,e)}getDefaultHeight(){return"200px"}async[Vt(546)](t,e){const n=Vt,s=document.getElementById(t[n(550)]);if(!s)return;const i=document[n(512)](n(519));if(i[n(532)]=n(517),i[n(521)][n(523)]="\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 ",e.title){const t=document.createElement("h3");t[n(542)]=e[n(554)],t[n(521)][n(523)]=n(515),i[n(524)](t)}if(e.textContent){const t=document[n(512)]("p");t[n(542)]=e.textContent,t[n(521)][n(523)]=n(543),i.appendChild(t)}if(e[n(533)]){const t=document[n(512)](n(519));t[n(521)][n(523)]=n(505);const s=document[n(512)](n(538));s[n(516)]=e[n(533)],s[n(526)]=e[n(554)]||n(518),s[n(521)].cssText=n(500),t.appendChild(s),i[n(524)](t)}if(e[n(502)]){const t=document[n(512)](n(537));t[n(542)]=n(499),t[n(521)][n(523)]=n(506),t[n(539)](n(520),()=>{const t=n;this[t(507)]&&console[t(514)](t(510)+e[t(504)]),window[t(503)](e[t(502)],t(534))}),t[n(539)]("mouseenter",()=>{const e=n;t[e(521)].backgroundColor=e(525)}),t[n(539)](n(513),()=>{const e=n;t[e(521)][e(501)]=e(530)}),i[n(524)](t)}s[n(536)]="",s.appendChild(i),this[n(531)]&&console[n(514)](n(553)+e[n(504)])}async[Vt(527)](t,e){const n=Vt;e[n(544)]>0?(await this.renderAdElement(t,e[0]),this.debug&&console[n(514)](n(511)+e.length+n(528)+t.id)):this.debug&&console[n(549)](n(522)+t.id)}}const _t=Wt;function Ht(){const t=["containerId","appendChild","style","renderMultipleAds","getElementById","advertisementEventTracker","\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 ","warn","88FzVRDq","debug","400px","div","keydown","🖼️ Interstitial ad rendered: ","cssText","body","\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 ","⚠️ No interstitial advertisements available for slot: ","885024cjvfwl","1068110EWFJJz","mouseenter","_id","button","renderAdElement","\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 ","closeInterstitial","\n margin: 0 0 20px 0;\n font-size: 16px;\n color: #6b7280;\n line-height: 1.5;\n ","head","parentNode","Interstitial click tracked for ad: ","imageUrl","linkUrl","textContent","#6b7280","_blank","getDefaultHeight","#3b82f6","7761681FYHqXL","INTERSTITIAL","mouseleave","Escape","\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 ","alt","innerHTML","backgroundColor","length","🖼️ Interstitial ad closed","#e5e7eb","title","9423Uszufp","log","fadeOut 0.3s ease-out forwards","38408gaIstX","animation","click","createElement","1945426SttsgZ","className","🖼️ Interstitial ad rendered (first of ","8idVjoz","adstage-interstitial-styles","addEventListener","#374151","\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 ","20402yPhcIu","open","key","img"];return(Ht=function(){return t})()}function Wt(t,e){const n=Ht();return(Wt=function(t,e){return n[t-=258]})(t,e)}!function(){const t=Wt,e=Ht();for(;;)try{if(182470===parseInt(t(296))/1+-parseInt(t(308))/2+parseInt(t(293))/3*(-parseInt(t(320))/4)+-parseInt(t(263))/5+-parseInt(t(262))/6+-parseInt(t(300))/7+parseInt(t(303))/8*(parseInt(t(281))/9))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class jt extends mt{constructor(t=!1,e){super(r[Wt(282)],t,e)}[_t(279)](){return _t(322)}async[_t(267)](t,e){const n=_t;if(!document[n(316)](t[n(312)]))return;const s=document[n(299)](n(323));s[n(301)]="adstage-interstitial-overlay",s.style[n(258)]=n(260);const i=document.createElement(n(323));i[n(301)]="adstage-interstitial-content",i[n(314)][n(258)]=n(318);const r=document[n(299)](n(266));if(r[n(287)]="×",r[n(314)].cssText=n(307),r[n(305)]("click",()=>{this[n(269)](s)}),r.addEventListener(n(264),()=>{const t=n;r[t(314)][t(288)]=t(291),r.style.color=t(306)}),r[n(305)](n(283),()=>{const t=n;r[t(314)].backgroundColor="#f3f4f6",r[t(314)].color=t(277)}),e[n(274)]){const t=document[n(299)](n(311));t.src=e.imageUrl,t[n(286)]=e[n(292)]||"Interstitial Advertisement",t[n(314)][n(258)]="\n width: 100%;\n max-height: 300px;\n object-fit: cover;\n border-radius: 8px;\n margin-bottom: 16px;\n ",i[n(313)](t)}if(e[n(292)]){const t=document[n(299)]("h2");t[n(276)]=e.title,t[n(314)][n(258)]="\n margin: 0 0 12px 0;\n font-size: 24px;\n font-weight: 700;\n color: #111827;\n line-height: 1.3;\n ",i[n(313)](t)}if(e.textContent){const t=document[n(299)]("p");t[n(276)]=e.textContent,t[n(314)][n(258)]=n(270),i.appendChild(t)}if(e[n(275)]){const t=document[n(299)](n(266));t.textContent="Get Started",t.style[n(258)]=n(268),t[n(305)](n(298),()=>{const t=n;this[t(317)]&&console[t(294)](t(273)+e[t(265)]),window[t(309)](e[t(275)],t(278)),this[t(269)](s)}),t.addEventListener(n(264),()=>{t[n(314)].backgroundColor="#2563eb"}),t[n(305)]("mouseleave",()=>{const e=n;t[e(314)][e(288)]=e(280)}),i[n(313)](t)}const o=t=>{const e=n;t[e(310)]===e(284)&&(this[e(269)](s),document.removeEventListener("keydown",o))};if(document[n(305)](n(324),o),s[n(305)]("click",t=>{t.target===s&&this.closeInterstitial(s)}),!document[n(316)](n(304))){const t=document[n(299)](n(314));t.id=n(304),t[n(276)]=n(285),document[n(271)].appendChild(t)}i.appendChild(r),s.appendChild(i),document[n(259)][n(313)](s),this[n(321)]&&console[n(294)](n(325)+e[n(265)])}async[_t(315)](t,e){const n=_t;e[n(289)]>0?(await this[n(267)](t,e[0]),this.debug&&console[n(294)](n(302)+e[n(289)]+"): "+t.id)):this.debug&&console[n(319)](n(261)+t.id)}[_t(269)](t){const e=_t;t.style[e(297)]=e(295),setTimeout(()=>{const n=e;t[n(272)]&&t[n(272)].removeChild(t)},300),this[e(321)]&&console[e(294)](e(290))}}const Kt=Xt;function Xt(t,e){const n=Yt();return(Xt=function(t,e){return n[t-=490]})(t,e)}!function(){const t=Xt,e=Yt();for(;;)try{if(393811===-parseInt(t(549))/1+-parseInt(t(511))/2+-parseInt(t(517))/3+-parseInt(t(494))/4*(parseInt(t(495))/5)+-parseInt(t(508))/6*(parseInt(t(525))/7)+parseInt(t(546))/8*(-parseInt(t(543))/9)+parseInt(t(490))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class qt{constructor(t=!1,e){const n=Xt;this[n(540)]=new Map,this[n(552)]=t,this[n(510)]=e||null,this.initializeRenderers()}[Kt(524)](){const t=Kt;this[t(540)][t(492)](r.BANNER,new bt(this[t(552)],this[t(510)])),this.renderers[t(492)](r[t(498)],new Bt(this[t(552)],this[t(510)])),this[t(540)][t(492)](r[t(515)],new Mt(this.debug,this.advertisementEventTracker)),this[t(540)].set(r.NATIVE,new Ft(this[t(552)],this[t(510)])),this[t(540)][t(492)](r.INTERSTITIAL,new jt(this[t(552)],this[t(510)])),this[t(552)]&&console[t(554)](t(507)+this.renderers[t(504)]+" renderers")}[Kt(506)](t,e){const n=Kt,s=this.getRenderer(t[n(499)]),i=document.createElement(n(509));i.className=n(559)+String(t[n(499)])[n(501)](),i[n(548)](n(535),e[n(547)]),i[n(548)](n(523),t.id);const{width:o,height:a}=s[n(553)](i,t[n(503)]||{},e);switch(i[n(539)][n(526)]=o,i.style[n(505)]=a,i.style[n(512)]=n(537),t[n(499)]){case r[n(538)]:if(e[n(545)]){const t=document[n(560)]("img");t[n(518)]=e[n(545)],t[n(539)][n(526)]=n(532),t.style[n(505)]=n(532),t[n(539)][n(520)]=n(530),i[n(493)](t)}break;case r.VIDEO:if(e[n(491)]){const t=document[n(560)]("video");t[n(518)]=e[n(491)],t[n(539)][n(526)]=n(532),t[n(539)].height=n(532),i[n(493)](t)}break;case r[n(498)]:if(e[n(519)]){const t=document.createElement(n(509));t.textContent=e.textContent||"",t[n(539)].padding=n(521),i[n(493)](t)}break;default:i[n(539)][n(533)]="1px dashed #ccc",i[n(539)][n(496)]=n(514),i[n(519)]=t.adType+n(550)}return i}getRenderer(t){const e=Kt,n=this.renderers[e(531)](t);if(!n)throw new Error(e(513)+t);return n}createPlaceholder(t,e,n,s,i){const r=Kt;this.getRenderer(n)[r(557)](t,e,s,i)}async[Kt(558)](t,e){const n=Kt;if(t[n(499)]!==r[n(538)])return void(this[n(552)]&&console[n(497)](n(544)+t[n(499)]));const s=this.getRenderer(r.BANNER);await s[n(558)](t,e)}async[Kt(534)](t,e){const n=Kt,s=this[n(541)](t.adType);await s[n(556)](t,e)}async renderAd(t){const e=Kt;if(!t.advertisement)throw new Error("No advertisement to render");const n=this[e(541)](t.adType);await n[e(528)](t,t.advertisement),t[e(561)]=!0}async[Kt(528)](t,e){const n=Kt,s=this[n(541)](t[n(499)]);await s[n(528)](t,e)}[Kt(542)](t){const e=Kt;this[e(541)](t[e(499)])[e(542)](t)}getDefaultHeightForAdType(t){const e=Kt;return this.getRenderer(t)[e(502)]()}[Kt(553)](t,e,n,s){const i=Kt;return this.getRenderer(e)[i(553)](t,n,s)}loadImageDimensions(t){return new Promise((e,n)=>{const s=Xt,i=new Image;i[s(551)]=()=>{const t=s;e({width:i.naturalWidth,height:i[t(555)]})},i[s(536)]=()=>{n(new Error(s(500)+t))},i[s(518)]=t})}async renderOptimizedBannerImage(t,e,n){const s=Kt;if(n[s(499)]!==r[s(538)])throw new Error(s(529));const i=this[s(541)](r[s(538)]);return await i[s(516)](t,e,n)}async calculateOptimalContainerSize(t,e,n){const s=Kt;if(n!==r[s(538)]){const t=this[s(541)](n);return{width:s(532),height:t[s(502)](),aspectRatio:16/9}}const i=this[s(541)](r.BANNER);return await i[s(522)](t,e)}[Kt(554)](t,...e){const n=Kt;this[n(552)]&&console[n(554)](n(527)+t,...e)}}function Yt(){const t=["100%","border","renderAdSlider","data-adstage-ad-id","onerror","block","BANNER","style","renderers","getRenderer","renderFallback","63045quibko","⚠️ Container optimization is only supported for BANNER ads, got: ","imageUrl","448SPyOLW","_id","setAttribute","670684FeoiPS"," Ad","onload","debug","calculateAdSize","log","naturalHeight","renderMultipleAds","createPlaceholder","optimizeContainerForBannerAds","adstage-ad adstage-","createElement","isLoaded","30896420qNVKNi","videoUrl","set","appendChild","13844TWwhRT","485uGznNp","backgroundColor","warn","TEXT","adType","Failed to load image: ","toLowerCase","getDefaultHeight","config","size","height","createAdElement","🏭 AdRenderer factory initialized with ","282WGzWPI","div","advertisementEventTracker","964960FnjOBc","display","No renderer found for ad type: ","#f9f9f9","VIDEO","renderOptimizedBannerImage","870309jWdTXv","src","textContent","objectFit","8px","calculateOptimalContainerSize","data-adstage-slot-id","initializeRenderers","78127uxmEpn","width","[AdRenderer] ","renderAdElement","renderOptimizedBannerImage is only supported for BANNER ads","cover","get"];return(Yt=function(){return t})()}const Jt=Gt;function Gt(t,e){const n=Qt();return(Gt=function(t,e){return n[t-=441]})(t,e)}function Qt(){const t=["hideControls","status","width","ms... (attempt ","New advertisement viewable tracked for slot:","viewabilityTracker","createAd","ensureReady","🗑️ Ad slot destroyed: ","debug","📊 Advertisement event tracking enabled for slot: ","광고 생성 중 오류 발생:","_id","config","json","playsinline","_isReady","renderFallback","910042EOTtlt","100%","623572dwzieK","785868rEZmvH","slots","setupAutoCleanup"," (element found)","slideInterval","renderAdElement","text","from","fetchAdData","trackAdvertisementEvent","autoDestroy","delete","NATIVE","343530vOnoKu","list","style","advertisementEventTracker","renderAd","getBaseUrl","getSlotById","startSimpleViewabilityTracking","advertisements","containerId","innerHTML","init","665814ZZFLiP","forEach","🎯 Ads module initialized (sync mode) with auto-cleanup","onClick","append","controls","Failed to fetch ad data: ","🚫 Advertisement not found with ID: ","isLoaded","🎠 Slider will handle VIEWABLE events for ","get","232ORvkfd","40fsYRRP","renderAdSlider","adRenderer","advertisement","banner","video","default","set","Ads module not initialized. Call AdStage.init() first.","VIDEO","interstitial","substr","Auto-cleanup failed for slot ","log","auto-","random","Ad slot not found: ","API key not configured","loop","📊 Fetched specific ad with ID: ","apiKey","create","❌ Failed to track viewable impression:","length","now","📊 Fetched ","handleViewableEvent","🧹 Auto-cleanup: slot ","querySelectorAll","autoplay","detail","optimizeContainerForBannerAds","_config","ELEMENT_NODE","Container not found: ","observe","refresh","✅ Simple viewable impression tracked for ad ","getElementById","mutationObserver","3170832tYSAWc"," ads automatically","undefined"," removed","GET","🗑️ Ads module destroyed","🔄 Retrying viewability tracking for slot: ","then","disconnect","refreshAdSlot"," ads for type: ","destroyModule",". Retrying in ","height","warn","adId","destroy","removedNodes","adType","country","BANNER","Container not found after ","getAttribute","🔍 Auto-cleanup MutationObserver enabled","deviceType","1307047oGBLpd","body","🔄 Ad slot refreshed: "," (attempt ","toString","error","values","setAttribute","auto","loadAdContentInBackground","language","autoSlide","TEXT","createAdInternal","handleRemovedElement","data-adstage-slot-id"];return(Qt=function(){return t})()}!function(){const t=Gt,e=Qt();for(;;)try{if(676147===-parseInt(t(517))/1+parseInt(t(551))/2+-parseInt(t(554))/3+-parseInt(t(553))/4*(-parseInt(t(452))/5)+-parseInt(t(579))/6+-parseInt(t(492))/7+-parseInt(t(451))/8*(-parseInt(t(567))/9))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class Zt{constructor(){const t=Gt;this[t(549)]=!1,this._config=null,this.slots=new Map,this[t(570)]=null,this[t(454)]=null,this.mutationObserver=null}[Jt(578)](t){const e=Jt;this[e(484)]=t,this[e(570)]=new O(G[e(572)](),t[e(472)],t[e(542)]||!1,this[e(555)]),this[e(454)]=new qt(t[e(542)]||!1,this.advertisementEventTracker),this.setupAutoCleanup(),this[e(549)]=!0,t.debug&&console[e(465)](e(442))}isReady(){return this[Jt(549)]}getConfig(){return this[Jt(484)]}[Jt(456)](t,e){const n=Jt;this[n(540)]();const s={width:e?.[n(535)]||"100%",height:e?.[n(505)]||n(525),autoSlide:e?.[n(528)]||!1,slideInterval:e?.[n(558)]||5e3,onClick:e?.onClick,adId:e?.[n(507)],language:e?.language,deviceType:e?.[n(516)],country:e?.[n(511)]};return this[n(539)](t,r[n(512)],s)}[Jt(560)](t,e){const n=Jt;this.ensureReady();const s={maxLines:e?.maxLines||3,style:e?.[n(569)]||n(458),onClick:e?.[n(443)],adId:e?.[n(507)],language:e?.[n(527)],deviceType:e?.[n(516)],country:e?.[n(511)]};return this[n(539)](t,r[n(529)],s)}[Jt(457)](t,e){const n=Jt;this[n(540)]();const s={width:e?.[n(535)]||640,height:e?.[n(505)]||360,autoplay:void 0===e?.[n(481)]||e[n(481)],muted:void 0===e?.muted||e.muted,loop:void 0===e?.[n(470)]||e[n(470)],playsinline:!1!==e?.[n(548)],controls:void 0!==e?.[n(445)]&&e[n(445)],hideControls:e?.[n(533)]||!1,customControls:e?.customControls,autoSlide:!1,maxAds:1,onClick:e?.[n(443)],...e?.[n(507)]&&{adId:e[n(507)]}};return this.createAd(t,r[n(461)],s)}native(t,e){const n=Jt;return this.ensureReady(),this[n(539)](t,r[n(566)],e||{})}[Jt(462)](t,e){const n=Jt;return this.ensureReady(),this[n(539)](t,r.INTERSTITIAL,e||{})}[Jt(488)](t){const e=Jt;this[e(540)]();const n=this.slots.get(t);if(!n)throw new Error("Ad slot not found: "+t);this.refreshAdSlot(n),this[e(484)]?.[e(542)]&&console[e(465)](e(519)+t)}[Jt(508)](t){const e=Jt;this[e(540)]();const n=this[e(555)][e(450)](t);if(!n)throw new Error(e(468)+t);n[e(538)]&&n[e(538)][e(508)]();const s=document.getElementById(n[e(576)]);s&&(s[e(577)]=""),this[e(555)].delete(t),this._config?.[e(542)]&&console[e(465)](e(541)+t)}getAllSlots(){const t=Jt;return this[t(540)](),Array[t(561)](this[t(555)][t(523)]())}[Jt(573)](t){const e=Jt;return this[e(540)](),this[e(555)][e(450)](t)||null}[Jt(539)](t,e,n){const s=Jt;if(!this[s(484)]?.apiKey)throw new Error(s(469));const i="adstage-"+e+"-"+Date[s(476)]()+"-"+Math[s(467)]()[s(521)](36)[s(463)](2,9);return this.createAdWithRetry(t,e,n,i,0),i}async createAdWithRetry(t,e,n,s,i){const r=Jt,o=[0,50,100,200,500];let a,c=null;if("string"==typeof t){if(a=t,c=document[r(490)](t),!c)return i<4?(this[r(484)]?.[r(542)]&&console[r(506)](r(486)+t+r(504)+o[i+1]+r(536)+(i+1)+"/5)"),void setTimeout(()=>{this.createAdWithRetry(t,e,n,s,i+1)},o[i+1])):void console[r(522)](r(513)+5+" attempts: "+t)}else c=t,a=c.id||r(466)+s,!c.id&&(c.id=a);try{this[r(530)](a,e,n,s,c)}catch(t){console.error(r(544),t)}}[Jt(530)](t,e,n,s,i){const o=Jt;i[o(524)](o(532),s),this[o(454)]?.createPlaceholder(i,s,e,n,this._config);const a={id:s,containerId:t,adType:e,width:n[o(535)]||o(552),height:n[o(505)]||(e===r.TEXT?o(525):250),isLoaded:!1,isVisible:!1,refreshRate:0,lazyLoad:!1,targeting:{},advertisement:void 0,config:{type:e,...n},load:async()=>this.fetchAdData(e,n)[o(499)](t=>t[0]||null),render:t=>this[o(454)]?.[o(559)](a,t),refresh:async()=>this[o(501)](a),destroy:()=>this[o(508)](s)};this[o(555)][o(459)](s,a),this[o(526)](a),this[o(570)]&&this._config?.[o(542)]&&console[o(465)](o(543)+s)}async[Jt(526)](t){const e=Jt;try{const n=await this[e(562)](t.adType,t[e(546)]);if(!n||0===n[e(475)])return void this[e(454)]?.[e(550)](t);t.adType===r[e(512)]&&n.length>0&&await(this[e(454)]?.[e(483)](t,n)),n[e(475)]>1||t[e(546)]?.[e(528)]?(await(this[e(454)]?.[e(453)](t,n)),this[e(484)]?.[e(542)]&&console[e(465)](e(449)+n.length+e(493))):(t.advertisement=n[0],await(this[e(454)]?.[e(559)](t,n[0])),this.startSimpleViewabilityTracking(t,n[0])),t[e(448)]=!0,this[e(484)]?.debug&&console[e(465)]("✅ Ad loaded for slot: "+t.id+" ("+n[e(475)]+" ads)")}catch(n){console.error("❌ Failed to load ad for slot: "+t.id,n),this[e(454)]?.[e(550)](t)}}[Jt(574)](t,e){const n=(s=0)=>{const i=Gt,r=document.getElementById(t.id);if(!r)return void(s<5?(setTimeout(()=>n(s+1),300),this[i(484)]?.[i(542)]&&console[i(465)](i(498)+t.id+i(520)+(s+1)+")")):console[i(506)]("❌ Failed to find element for viewability tracking: "+t.id));const o=new H(r,async()=>{const n=i;await this[n(478)](e,t)});t.viewabilityTracker=o,this._config?.debug&&console[i(465)]("🎯 Simple viewability tracking started for slot: "+t.id+i(557))};n()}async handleViewableEvent(t,e){const n=Jt;try{this[n(570)]&&(await this.advertisementEventTracker[n(563)](t[n(545)],e.id,u.VIEWABLE),this[n(484)]?.[n(542)]&&console[n(465)](n(489)+t[n(545)]))}catch(t){console.error(n(474),t)}}async[Jt(562)](t,e){const n=Jt;if(!this._config?.[n(472)])throw new Error(n(469));if(e[n(507)]){const t=""+G[n(575)][n(482)](e.adId),s=await fetch(t,{method:"GET",headers:z[n(473)](this[n(484)][n(472)])});if(!s.ok){if(404===s[n(534)])return console[n(506)](n(447)+e[n(507)]),[];throw new Error(n(446)+s[n(534)])}const i=await s[n(547)]();return this[n(484)]?.debug&&console[n(465)](n(471)+e[n(507)],i),[i]}const s=new URLSearchParams;s[n(444)](n(510),t),e[n(527)]&&s[n(444)](n(527),e[n(527)]),e.deviceType&&s[n(444)](n(516),e[n(516)]),e[n(511)]&&s.append(n(511),e[n(511)]);const i=G.advertisements[n(568)]()+"?"+s[n(521)](),r=await fetch(i,{method:n(496),headers:z[n(473)](this[n(484)][n(472)])});if(!r.ok)throw new Error(n(446)+r[n(534)]);const o=(await r[n(547)]())[n(575)]||[];return this[n(484)]?.debug&&console[n(465)](n(477)+o.length+n(502)+t+", filters:",{language:e.language,deviceType:e.deviceType,country:e[n(511)]}),o}async[Jt(501)](t){const e=Jt;try{const n=await this[e(562)](t.adType,t.config||{});n&&n[e(475)]>0&&(t[e(455)]=n[0],await(this[e(454)]?.[e(571)](t)),this.advertisementEventTracker&&console[e(465)](e(537),t.id))}catch(e){console.error("Failed to refresh ad slot: "+t.id,e)}}[Jt(540)](){const t=Jt;if(!this[t(549)])throw new Error(t(460))}[Jt(556)](){const t=Jt;typeof window!==t(494)&&typeof document!==t(494)&&(this.mutationObserver&&this[t(491)][t(500)](),this.mutationObserver=new MutationObserver(e=>{const n=t;e[n(441)](t=>{const e=n;t[e(509)][e(441)](t=>{const n=e;t.nodeType===Node[n(485)]&&this[n(531)](t)})})}),this[t(491)][t(487)](document[t(518)],{childList:!0,subtree:!0}),this._config?.[t(542)]&&console[t(465)](t(515)))}[Jt(531)](t){const e=Jt,n=t[e(514)](e(532));if(n)return void this[e(564)](n);t[e(480)]("[data-adstage-slot-id]")[e(441)](t=>{const n=e,s=t[n(514)]("data-adstage-slot-id");s&&this[n(564)](s)})}autoDestroy(t){const e=Jt;if(this.slots[e(450)](t))try{this[e(555)][e(565)](t),this._config?.debug&&console[e(465)](e(479)+t+e(495))}catch(n){this._config?.[e(542)]&&console.warn(e(464)+t+":",n)}}[Jt(503)](){const t=Jt,e=this[t(484)]?.[t(542)];this[t(491)]&&(this[t(491)][t(500)](),this[t(491)]=null),this.slots.clear(),this[t(570)]=null,this.adRenderer=null,this._isReady=!1,this[t(484)]=null,e&&console[t(465)](t(497))}}var $t=ee;function te(){var t=["279343qpbjSx","getApiEndpoint","includes","57079rAQXta","_organizationInfo","getEnabledModules","2EufCon","ads","isReady","isDebugMode","getConfig","2512bSdeVy","isModuleEnabled","4436IkuQVb","5104400EWrTjq","baseUrl","getBaseUrl","debug","updateConfig","development","4330oVytlJ","18243jchssF","config","create","modules","getOrganizationInfo","API key not available","1826355gEjYzY","log","apiKey","events","_isReady","_config","3998838reJWIB","65nGAMvl"];return(te=function(){return t})()}function ee(t,e){var n=te();return(ee=function(t,e){return n[t-=415]})(t,e)}!function(){for(var t=ee,e=te();;)try{if(529711===-parseInt(t(418))/1*(parseInt(t(424))/2)+parseInt(t(445))/3+-parseInt(t(431))/4*(parseInt(t(417))/5)+-parseInt(t(416))/6+-parseInt(t(432))/7+parseInt(t(429))/8*(-parseInt(t(439))/9)+parseInt(t(438))/10*(parseInt(t(421))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class ne{constructor(){var t=ee;this._isReady=!1,this[t(415)]=null,this._organizationInfo=null}init(t){var e=ee;this._config={timeout:3e4,debug:!1,modules:[e(425),e(448),e(440)],...t},t[e(433)]&&G.setBaseUrl(t[e(433)]),this[e(449)]=!0,t[e(435)]&&console[e(446)]("✅ Config module initialized (sync mode)",{modules:this[e(415)][e(442)],endpoint:G.getBaseUrl(),mode:e(437)})}[$t(426)](){return this._isReady}[$t(428)](){return this[$t(415)]}[$t(443)](){return this[$t(422)]}[$t(419)](){return G[$t(434)]()}[$t(427)](){var t=$t;return this[t(415)]?.[t(435)]||!1}[$t(423)](){var t=$t;return this[t(415)]?.[t(442)]||[]}[$t(430)](t){var e=$t;return this.getEnabledModules()[e(420)](t)}[$t(436)](t){var e=$t;if(!this[e(415)])throw new Error("Config module not initialized");this[e(415)]={...this._config,...t},this[e(427)]()&&console.log("🔄 Config updated",t)}getApiHeaders(){var t=$t;if(!this[t(415)]?.[t(447)])throw new Error(t(444));return z[t(441)](this._config.apiKey)}}function se(t,e){const n=ie();return(se=function(t,e){return n[t-=174]})(t,e)}function ie(){const t=["ko-KR","0x0","getPlatform","iOS","desktop","getAutoDetectedDeviceInfo","745uXaMcj","35RSJUsI","getViewportInfo","9240AknlAV","436HJTsoq","test","1198142EHzJVn","mapPlatformForEvents","isBrowser","toLowerCase","isMobile","Unknown","setDeviceInfo","clearDeviceInfo","SSR","55824lXmknI","height","Mobile Web","language","8215119AWaCEh","onLine","getUserDeviceInfo","platform","842100zimqCD","setDeviceProperty","Android","1727192QhMBJe","_userProvidedDeviceInfo","width","10PdqdHV","getDeviceInfo","1149335VDuaCI","getDetailedInfo"];return(ie=function(){return t})()}const re=se;!function(){const t=se,e=ie();for(;;)try{if(889633===parseInt(t(179))/1+-parseInt(t(210))/2+parseInt(t(190))/3*(-parseInt(t(191))/4)+parseInt(t(187))/5*(-parseInt(t(202))/6)+parseInt(t(188))/7*(parseInt(t(174))/8)+parseInt(t(206))/9+-parseInt(t(177))/10*(parseInt(t(193))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class oe{static[re(178)](){const t=re;return{...oe.getAutoDetectedDeviceInfo(),...oe[t(175)]}}static[re(186)](){const t=re;if(!E[t(195)]())return{category:"other",platform:"SSR",model:t(201),osVersion:t(201)};const e=navigator.userAgent[t(196)]();let n=t(185);/tablet|ipad/[t(192)](e)?n="tablet":D[t(197)]()&&(n="mobile");const s=D[t(183)]();return{category:n,platform:oe.mapPlatformForEvents(s),model:navigator[t(209)],osVersion:navigator.platform}}static[re(199)](t){const e=re;oe[e(175)]={...oe[e(175)],...t}}static[re(211)](t,e){oe[re(175)][t]=e}static[re(200)](){oe[re(175)]={}}static[re(208)](){return{...oe[re(175)]}}static[re(194)](t){const e=re;switch(t){case"ios":return e(184);case"android":return e(212);case"web":return e(204);case e(185):return"Desktop Web";default:return e(198)}}static[re(180)](){const t=re;if(!E[t(195)]())return{userAgent:t(201),language:t(181),platform:t(201),cookieEnabled:!1,onLine:!0,screenResolution:t(182),viewportSize:t(182)};const e=E[t(189)]();return{userAgent:navigator.userAgent,language:navigator[t(205)]||t(181),platform:navigator[t(209)],cookieEnabled:navigator.cookieEnabled,onLine:navigator[t(207)],screenResolution:screen[t(176)]+"x"+screen[t(203)],viewportSize:e.width+"x"+e.height}}}function ae(){const t=["366gNhRNM","792uecIzC","isBrowser","clearUserProperties","15918SmnOhr","3340436XXktbl","ko-KR","1151636caMuNF","710PdItEF","_userProperties","setUserProperty","setUserProperties","split","7518544sEkUEC","extractCountryFromLanguage","1718328ZsUzdi","UTC","7vxKBha","DateTimeFormat","getCurrentUserProperties","3339970DVLsBL","timeZone","getBaseUserInfo","getUserInfo","estimateLocation","resolvedOptions"];return(ae=function(){return t})()}oe[re(175)]={};const ce=de;function de(t,e){const n=ae();return(de=function(t,e){return n[t-=291]})(t,e)}!function(){const t=de,e=ae();for(;;)try{if(660705===parseInt(t(300))/1+-parseInt(t(293))/2*(parseInt(t(297))/3)+-parseInt(t(298))/4+parseInt(t(313))/5+-parseInt(t(308))/6+-parseInt(t(310))/7*(-parseInt(t(306))/8)+parseInt(t(294))/9*(-parseInt(t(301))/10))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class le{static[ce(316)](){const t=ce;return{...le[t(315)](),...le[t(302)]}}static[ce(315)](){const t=ce;if(!E[t(295)]())return{language:t(299),country:"KR"};const e=navigator.language||"ko-KR";return{language:e,country:le[t(307)](e)}}static extractCountryFromLanguage(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[ce(305)]("-")[0]]||"KR"}static[ce(304)](t){le[ce(302)]={...le._userProperties,...t}}static[ce(303)](t,e){le._userProperties[t]=e}static[ce(296)](){le._userProperties={}}static[ce(312)](){return{...le[ce(302)]}}static[ce(291)](){const t=ce;if(!E.isBrowser())return{timezone:t(309),estimatedCountry:"KR"};const e=Intl[t(311)]()[t(292)]()[t(314)];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"}}}le._userProperties={};const ue=he;function pe(){const t=["797820UWtZEM","ssr_session_","536732qESOjX","now","3372816OXzaDu","767246SHDlTN","adstage_user_id","clearUserId","adstage_session_id","getSessionId","isSessionExpired","adstage_session_start","getUserId","getItem","random","getSessionDuration","isNewSession","refreshSession","isBrowser","setUserId","2077458GVIpkQ","58862bgcljm","getSessionInfo","5LzKwYe","867256rwrMcF","setItem","_sessionStartTime","removeItem","session_","_userId"];return(pe=function(){return t})()}function he(t,e){const n=pe();return(he=function(t,e){return n[t-=155]})(t,e)}!function(){const t=he,e=pe();for(;;)try{if(192304===-parseInt(t(162))/1+-parseInt(t(176))/2+parseInt(t(171))/3+parseInt(t(165))/4+parseInt(t(164))/5*(-parseInt(t(161))/6)+parseInt(t(173))/7+parseInt(t(175))/8)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class fe{static[ue(180)](){const t=ue;if(!E.isBrowser())return t(172)+Date[t(174)]();const e=sessionStorage[t(184)]("adstage_session_id");if(e)return e;const n=t(169)+Math[t(155)]().toString(36).substr(2,9)+"_"+Date[t(174)]();return sessionStorage[t(166)](t(179),n),!fe[t(167)]&&(fe[t(167)]=Date.now(),E[t(159)]()&&sessionStorage[t(166)](t(182),String(fe[t(167)]))),n}static[ue(160)](t){const e=ue;fe[e(170)]=t,E[e(159)]()&&localStorage[e(166)](e(177),t)}static getUserId(){const t=ue;if(fe._userId)return fe._userId;if(E[t(159)]()){const e=localStorage[t(184)](t(177));if(e)return fe[t(170)]=e,e}}static[ue(178)](){const t=ue;fe[t(170)]=void 0,E[t(159)]()&&localStorage.removeItem(t(177))}static[ue(163)](){const t=ue,e=fe[t(180)](),n=fe.getUserId(),s=fe[t(157)]();return{sessionId:e,userId:n,sessionDuration:fe[t(156)](),isNewSession:s}}static[ue(157)](){const t=ue;if(!E[t(159)]())return!0;const e=sessionStorage[t(184)](t(179)),n=sessionStorage[t(184)](t(182));return!e||!n}static[ue(156)](){const t=ue;if(!E[t(159)]())return 0;const e=sessionStorage.getItem("adstage_session_start");return e?Date[t(174)]()-parseInt(e,10):0}static[ue(158)](){const t=ue;return E[t(159)]()&&(sessionStorage[t(168)](t(179)),sessionStorage[t(168)](t(182))),fe._sessionStartTime=void 0,fe[t(180)]()}static isSessionExpired(t=24){return fe[ue(156)]()>60*t*60*1e3}static getSessionStats(){const t=ue,e=fe.getSessionId(),n=fe[t(183)](),s=fe[t(156)](),i=fe[t(181)](),r=fe[t(157)]();let o;if(E.isBrowser()){const e=sessionStorage[t(184)](t(182));o=e?parseInt(e,10):void 0}return{sessionId:e,userId:n,startTime:o,duration:s,isExpired:i,isNewSession:r}}}const ge=me;function me(t,e){const n=ve();return(me=function(t,e){return n[t-=351]})(t,e)}!function(){const t=me,e=ve();for(;;)try{if(175264===-parseInt(t(386))/1+parseInt(t(389))/2*(parseInt(t(364))/3)+parseInt(t(354))/4+-parseInt(t(390))/5+parseInt(t(373))/6*(parseInt(t(392))/7)+parseInt(t(382))/8*(-parseInt(t(372))/9)+parseInt(t(385))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class Ie{constructor(){const t=me;this._isReady=!1,this[t(361)]=null}[ge(378)](t){const e=ge;this[e(361)]=t,this._isReady=!0,t[e(381)]&&console[e(368)](e(365))}[ge(366)](){return this._isReady}[ge(362)](){return this[ge(361)]}setUserId(t){const e=ge;fe[e(371)](t),this[e(361)]?.debug&&console[e(368)]("👤 User ID set:",t)}getUserId(){return fe.getUserId()}[ge(363)](t){const e=ge;le[e(363)](t),this[e(361)]?.[e(381)]&&console[e(368)]("👤 User properties set:",t)}getUserProperties(){return le[ge(376)]()}[ge(351)](t){const e=ge;oe[e(351)](t),this[e(361)]?.[e(381)]&&console[e(368)](e(391),t)}[ge(374)](t,e){const n=ge;oe[n(374)](t,e),this[n(361)]?.[n(381)]&&console.log(n(384),t,e)}[ge(353)](){const t=ge;oe[t(353)](),this[t(361)]?.debug&&console[t(368)]("📱 User provided device info cleared")}[ge(370)](){return oe[ge(370)]()}[ge(367)](){return oe[ge(367)]()}getUserInfo(){return le.getUserInfo()}[ge(376)](){return le.getCurrentUserProperties()}async track(t,e){const n=ge;if(this._isReady)if(this._config?.[n(388)])try{const s={eventName:t,userId:fe[n(357)](),sessionId:fe[n(383)](),sdkVersion:A(),device:oe[n(367)](),user:le[n(355)](),params:e||{}};await this[n(380)](s),this[n(361)][n(381)]&&console[n(368)]("✅ Event tracked:",t,e)}catch(s){console.error("❌ Failed to track event:",s),this[n(361)][n(381)]&&console[n(369)](n(377),{eventName:t,properties:e})}else console.warn(n(358));else console[n(379)](n(352))}async[ge(380)](t){const e=ge,n=await fetch(G[e(356)][e(387)](),{method:e(359),headers:{...z.create(this[e(361)][e(388)]),"Content-Type":"application/json"},body:JSON.stringify(t)});if(!n.ok)throw new Error(e(360)+n[e(393)]+" "+n[e(375)])}}function ve(){const t=["log","error","getUserDeviceInfo","setUserId","9Lcmlhy","12rERgpr","setDeviceProperty","statusText","getCurrentUserProperties","Event data:","init","warn","sendEventToServer","debug","2199920eHunVj","getSessionId","📱 Device property set:","2155660wPrFOD","102866JZgEkF","track","apiKey","2tuihRL","1142935MiAonU","📱 Device info set:","640087EoYDnM","status","setDeviceInfo","Events module not initialized. Call AdStage.init() first.","clearDeviceInfo","1060724BfxJAD","getUserInfo","events","getUserId","API key not configured for event tracking.","POST","Event tracking failed: ","_config","getConfig","setUserProperties","354234mVYbCV","📊 Events module initialized","isReady","getDeviceInfo"];return(ve=function(){return t})()}const ye=be;function be(t,e){const n=we();return(be=function(t,e){return n[t-=124]})(t,e)}function we(){const t=["5421714NpLqFo","substring","log","✅ AdStage Debug: 모든 viewable 추적 데이터 초기화됨","apiKey","init","reset",")의 viewable 추적 초기화됨","setBaseUrl","...","6462946YmDhFg","_isInitialized","1343187TdwngL","instance","API key is required for AdStage initialization","ads","config","viewableTracker","modules","2.0.0","clearAdViewable","AdStage not initialized. Call AdStage.init() first.","🌐 API endpoint configured:","364jTwezq","getConfig","76435jTnNLP","788672FKEdgi","🚀 AdStage SDK initialized (sync mode)","events","✅ AdStage Debug: 광고 ","isReady","development","getInstance","9451848EAIejJ","2324000cCGsCi","baseUrl","_config","debug"];return(we=function(){return t})()}!function(){const t=be,e=we();for(;;)try{if(781140===parseInt(t(128))/1+parseInt(t(136))/2+parseInt(t(152))/3+-parseInt(t(125))/4*(-parseInt(t(127))/5)+-parseInt(t(140))/6+-parseInt(t(150))/7+-parseInt(t(135))/8)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class Ee{constructor(){const t=be;this._isInitialized=!1,this[t(138)]=null,this[t(156)]=new ne,this.ads=new Zt,this[t(130)]=new Ie}static init(t){const e=be;!Ee[e(153)]&&(Ee[e(153)]=new Ee);const n=Ee.instance;if(!t[e(144)])throw new Error(e(154));n._config={timeout:3e4,debug:!1,modules:[e(155),"events",e(156)],...t},n._config[e(137)]&&(G[e(148)](n[e(138)][e(137)]),t[e(139)]&&console[e(142)](e(124),n._config.baseUrl));const s=n._config[e(158)]||[e(155),"events",e(156)];for(const t of s){const s=n[t];s&&"function"==typeof s[e(145)]&&s[e(145)](n[e(138)])}n[e(151)]=!0,t[e(139)]&&console[e(142)](e(129),{version:e(159),modules:s,apiKey:t.apiKey[e(141)](0,8)+e(149),mode:e(133)})}static[ye(132)](){const t=ye;return Ee[t(153)]?.[t(151)]||!1}static[ye(126)](){const t=ye;return Ee[t(153)]?.[t(138)]||null}static[ye(134)](){const t=ye;if(!Ee[t(153)])throw new Error(t(161));return Ee.instance}static get[ye(155)](){return Ee[ye(134)]().ads}static get[ye(130)](){return Ee[ye(134)]().events}static get[ye(156)](){const t=ye;return Ee[t(134)]()[t(156)]}static[ye(146)](){const t=ye;Ee[t(153)]&&(Ee[t(153)][t(151)]=!1,Ee[t(153)][t(138)]=null)}}function ke(){var t=["AdStage not initialized. Call AdStage.init() first.","setUserId","warn","148fVAvXo","2770giOAjP","track","resolve","373352VttiFn","10827jIyBHT","769104OxatRt","events","132GCthTL","410131fOabOk","getUserProperties","462000hDzAXj","isReady","getUserId","270UOsSPJ","3815HRoJFw"];return(ke=function(){return t})()}function xe(t,e){var n=Ce;return Ee[n(131)]()?Ee[n(126)][n(121)](t,e):(console[n(118)](n(116)),Promise[n(122)]())}function Se(t){var e=Ce;Ee[e(131)]()?Ee[e(126)][e(117)](t):console[e(118)](e(116))}function Ae(){var t=Ce;if(Ee[t(131)]())return Ee[t(126)][t(113)]();console[t(118)](t(116))}function Te(t){var e=Ce;Ee.isReady()?Ee[e(126)].setUserProperties(t):console[e(118)](e(116))}function Ce(t,e){var n=ke();return(Ce=function(t,e){return n[t-=113]})(t,e)}function Le(){var t=Ce;if(Ee[t(131)]())return Ee[t(126)][t(129)]();console[t(118)](t(116))}Ee[ye(139)]={clearAllViewable:()=>{const t=ye;ut.clear(),console[t(142)](t(143))},clearAdViewable:(t,e)=>{const n=ye;ut[n(160)](t,e),console[n(142)](n(131)+t+"("+e+n(147))},getViewableStatus:()=>{const t=ye;console[t(142)]("📊 AdStage Debug: 현재 viewable 추적 상태",{trackedCount:ut[t(157)].size,trackedItems:Array.from(ut[t(157)])})}},function(){for(var t=Ce,e=ke();;)try{if(215139===-parseInt(t(128))/1+parseInt(t(119))/2*(-parseInt(t(127))/3)+parseInt(t(123))/4+-parseInt(t(115))/5*(-parseInt(t(114))/6)+parseInt(t(125))/7+parseInt(t(130))/8+-parseInt(t(124))/9*(-parseInt(t(120))/10))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const Re=e(null);function De({children:e,config:i}){const[r,o]=n(!1),[a,c]=n(null),[d,l]=n(null),u=t=>{try{l(null),r&&Ee.reset(),Ee.init(t),c(t),o(!0),t.debug&&console.log("✅ AdStage SDK initialized successfully via React Provider")}catch(t){const e=t instanceof Error?t.message:"Unknown error";l(e),console.error("❌ AdStage SDK initialization failed:",t),o(!1),c(null)}};s(()=>{i&&!r&&u(i)},[i,r]);const p={isInitialized:r,config:a,initialize:u,reset:()=>{try{Ee.reset(),o(!1),c(null),l(null)}catch(t){console.error("❌ AdStage SDK reset failed:",t)}},error:d};return t(Re.Provider,{value:p,children:e})}function Be(){const t=i(Re);if(!t)throw new Error("useAdStageContext must be used within an AdStageProvider");return t}function Ue(){const{isInitialized:t}=Be();return t?Ee:(console.warn("AdStage SDK is not initialized. Please call initialize() first or provide config to AdStageProvider."),null)}function Pe(){var t=["3826eEIWEP","14704300rnuDGq","2689638oVTNXy","8NOYFLp","1735657iEKVse","71510bldqFr","465QFwbUl","364761lGfxRV","7071925kBIQnH","296SaPaCD"];return(Pe=function(){return t})()}function ze(t,e){var n=Pe();return(ze=function(t,e){return n[t-=218]})(t,e)}!function(){for(var t=ze,e=Pe();;)try{if(940255===-parseInt(t(225))/1+-parseInt(t(221))/2*(-parseInt(t(227))/3)+-parseInt(t(224))/4*(parseInt(t(226))/5)+parseInt(t(223))/6+-parseInt(t(219))/7+-parseInt(t(220))/8*(-parseInt(t(218))/9)+parseInt(t(222))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const Me=Ne;function Ve(){const t=["9236556OaSQgE","config","22BdBJSc","693780sDIuSQ","2468920SYcBPb","events","585421yJhyYa","undefined","4SBdNcw","2.0.0","6gWRsSu","13115nomEjx","2824790EfbhBU","27lGXgds","751191dIhiqg","2316DMMfQA"];return(Ve=function(){return t})()}function Ne(t,e){const n=Ve();return(Ne=function(t,e){return n[t-=285]})(t,e)}!function(){const t=Ne,e=Ve();for(;;)try{if(845340===-parseInt(t(289))/1*(-parseInt(t(291))/2)+parseInt(t(286))/3+parseInt(t(298))/4*(parseInt(t(294))/5)+parseInt(t(293))/6*(parseInt(t(297))/7)+parseInt(t(287))/8*(-parseInt(t(296))/9)+parseInt(t(295))/10+parseInt(t(285))/11*(-parseInt(t(299))/12))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const Oe=Me(292),Fe=["ads",Me(288),Me(300)];typeof window!==Me(290)&&(window.AdStage=Ee);export{Ee as AdStage,De as AdStageProvider,Oe as SDK_VERSION,Fe as SUPPORTED_MODULES,Ae as getUserId,Le as getUserProperties,Se as setUserId,Te as setUserProperties,xe as track,Be as useAdStageContext,Ue as useAdStageInstance};
|