@adstage/web-sdk 3.0.13 → 3.0.15
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 +7 -1
- 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/core/adstage.ts +5 -2
- package/src/modules/tracking/tracking-params.ts +39 -11
- package/src/utils/api-headers.ts +13 -22
package/dist/index.umd.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).AdStage={})}(this,function(t){"use strict";function e(){var t=["CLICK","TEXT","350136VaePPW","DESKTOP","1111HxorBu","9NPFiBu","7uuQoEg","940519BEbXui","NATIVE","7296114dSKexO","8980264EELreN","6065530FVHioV","WEB","BANNER","VIDEO","5jRQVhX","TABLET","INTERSTITIAL","852993AkJidf","POPUP","80092pyLMCb","2FNDvcK","MOBILE","VIEWABLE"];return(e=function(){return t})()}var n,r,s,o,i,a,c,l,d,u,p,h;function f(t,n){var r=e();return(f=function(t,e){return r[t-=364]})(t,n)}function g(t,e){const n=m();return(g=function(t,e){return n[t-=175]})(t,e)}function m(){const t=["safeSetTextContent","ceil","6jrZjSL","DOM을 사용할 수 없는 환경입니다.","safeAddEventListener","documentElement","⏳ 컨테이너 대기 중: ","safeGetElementById","textContent","getElementById","canUseDOM","515245rMCtlC","isBrowser","min","isDOMReady","safeQuerySelectorAll","innerWidth","safeAddClass","번 시도)","safeRemoveChild","12HihoTw","4xFbEmZ","safeRemoveClass","readyState","2wTjCQd","ms (","DOMContentLoaded","addEventListener"," (최대 ","location","undefined","log","✅ 컨테이너 즉시 발견: ","waitForElements","open","safeWindowOpen","pow","214070jrwqpz","removeEventListener","2813973XrAWKr","getDocumentProperty","forEach","7347832SyBYJE","loading","pageYOffset","safeAppendChild",'❌ 컨테이너를 찾을 수 없습니다: "',"classList","style","waitForDOM","error","waitForElement","getWindowProperty","ms 경과)","⏳ 컨테이너 대기 시작: ","safeCreateElement","getComputedStyle","pageXOffset","번째 시도, ","ms)","243fxNisC","innerHeight","referrer","safeRemoveEventListener","removeChild",'" 요소가 있는지 확인\n2. React 등에서 컴포넌트가 렌더링된 후 SDK 호출\n3. 철자가 정확한지 확인\n4. 중복된 ID가 없는지 확인\n\n대기 시간: ',"17380011wpKpVJ","setProperty","innerHTML","1124984hPQNBa",'"\n \n다음을 확인해보세요:\n1. HTML에 id="',"map","querySelector","appendChild","safeQuerySelector","483754WLlWVd"];return(m=function(){return t})()}!function(t){for(var e=f,n=t();;)try{if(678084===parseInt(e(371))/1*(parseInt(e(385))/2)+-parseInt(e(382))/3+parseInt(e(384))/4*(parseInt(e(379))/5)+parseInt(e(373))/6*(-parseInt(e(370))/7)+-parseInt(e(374))/8+-parseInt(e(369))/9*(parseInt(e(375))/10)+parseInt(e(368))/11*(parseInt(e(366))/12))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(e),(r=n||(n={}))[(s=f)(377)]="BANNER",r[s(383)]="POPUP",r[s(381)]=s(381),r[s(372)]=s(372),r[s(378)]=s(378),r[s(365)]=s(365),(i=o||(o={}))[(a=f)(376)]=a(376),i[a(386)]=a(386),(l=c||(c={}))[(d=f)(387)]=d(387),l.CLICK=d(364),(p=u||(u={}))[(h=f)(367)]=h(367),p[h(386)]=h(386),p[h(380)]="TABLET";const y=g;!function(t){const e=g,n=t();for(;;)try{if(480107===parseInt(e(212))/1*(-parseInt(e(237))/2)+parseInt(e(176))/3*(parseInt(e(234))/4)+parseInt(e(224))/5*(parseInt(e(215))/6)+-parseInt(e(206))/7+-parseInt(e(179))/8+-parseInt(e(197))/9*(parseInt(e(250))/10)+-parseInt(e(203))/11*(-parseInt(e(233))/12))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(m);class v{static isBrowser(){return"undefined"!=typeof window&&typeof document!==g(243)}static isSSR(){return!this.isBrowser()}static[y(223)](){const t=y;return this[t(225)]()&&void 0!==document[t(236)]}static[y(220)](t){const e=y;return this[e(223)]()?document[e(222)](t):null}static[y(211)](t){const e=y;return this[e(223)]()?document[e(209)](t):null}static[y(228)](t){return this[y(223)]()?Array.from(document.querySelectorAll(t)):[]}static[y(192)](t){return this.canUseDOM()?document.createElement(t):null}static[y(217)](t,e,n,r){const s=y;this.canUseDOM()&&t&&t[s(240)](e,n,r)}static[y(200)](t,e,n,r){const s=y;this[s(223)]()&&t&&t[s(175)](e,n,r)}static[y(189)](t,e){return this[y(225)]()?window[t]??e:e}static[y(177)](t,e){return this[y(223)]()?document[t]??e:e}static[y(248)](t,e,n){const r=y;return this.isBrowser()?window[r(247)](t,e,n):null}static safeGetComputedStyle(t){const e=y;return this[e(225)]()&&t?window[e(193)](t):null}static isDOMReady(){const t=y;return!!this.canUseDOM()&&document[t(236)]!==t(180)}static[y(186)](){return new Promise(t=>{const e=g;this[e(223)]()?this[e(227)]()?t():this.safeAddEventListener(document,e(239),()=>t()):t()})}static safeApplyStyles(t,e){const n=y;this.canUseDOM()&&t&&Object.entries(e)[n(178)](([e,r])=>{const s=n;t[s(185)][s(204)](e,r)})}static[y(230)](t,e){const n=y;this[n(223)]()&&t&&t[n(184)].add(e)}static[y(235)](t,e){const n=y;this.canUseDOM()&&t&&t[n(184)].remove(e)}static[y(213)](t,e){const n=y;this[n(223)]()&&t&&(t[n(221)]=e)}static safeSetInnerHTML(t,e){const n=y;this[n(223)]()&&t&&(t[n(205)]=e)}static[y(182)](t,e){const n=y;this[n(223)]()&&t&&e&&t[n(210)](e)}static[y(232)](t,e){const n=y;this[n(223)]()&&t&&e&&t[n(201)](e)}static getPageInfo(){const t=y;return{url:this[t(189)](t(242),{href:""}).href,title:this.getDocumentProperty("title",""),referrer:this[t(177)](t(199),"")}}static getViewportInfo(){const t=y;return{width:this[t(189)](t(229),0),height:this.getWindowProperty(t(198),0),pixelRatio:this[t(189)]("devicePixelRatio",1)}}static getScrollInfo(){const t=y;return{scrollTop:this.canUseDOM()?window[t(181)]||document[t(218)].scrollTop:0,scrollLeft:this[t(189)](t(194),0)}}static async[y(188)](t,e={}){const n=y,{timeout:r=3e3,retryInterval:s=100,debug:o=!1}=e;if(!this.canUseDOM())throw new Error(n(216));const i=document[n(222)](t);return i?(o&&console[n(244)](n(245)+t),i):(o&&console[n(244)](n(191)+t+n(241)+r+n(196)),new Promise((e,i)=>{const a=n;let c=0;const l=Math[a(214)](r/s),d=()=>{const n=a;c++;const u=document[n(222)](t);if(u)return o&&console[n(244)]("✅ 컨테이너 발견: "+t+" ("+c+n(195)+c*s+n(190)),void e(u);if(c>=l){const e=n(183)+t+n(207)+t+n(202)+r+n(238)+c+n(231);return o&&console[n(187)](e),void i(new Error(e))}o&&c%10==0&&console[n(244)](n(219)+t+" ("+c+"/"+l+")");const p=Math[n(226)](s*Math[n(249)](1.2,c),500);setTimeout(d,p)};setTimeout(d,s)}))}static async[y(246)](t,e={}){const n=y,r=t[n(208)](t=>this[n(188)](t,e));return Promise.all(r)}}const I=b;function b(t,e){const n=w();return(b=function(t,e){return n[t-=383]})(t,e)}function w(){const t=["3.0.13","2348658tzkBzy","860518hNVWYx","3486721TJPvIC","30iRiZZB","AdStageSDK/","3JGmSjG","16zGpxTe","5209008uDNRDG"," AdStageSDK/","15861050VQLZvz","1137294IjkPRj","98960vAKxUL"];return(w=function(){return t})()}!function(t){const e=b,n=t();for(;;)try{if(684520===-parseInt(e(386))/1+-parseInt(e(390))/2*(parseInt(e(394))/3)+parseInt(e(383))/4+parseInt(e(387))/5*(parseInt(e(392))/6)+-parseInt(e(391))/7*(parseInt(e(395))/8)+parseInt(e(389))/9+parseInt(e(385))/10)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(w);const k=I(388);function E(){return k}const S=A;function x(){const t=["getItem","133CmLkFq",'[data-adstage-slot-id="',"setItem","352087Fxtgdm","test","unknown","1023050OmwZwM","7514523XmjQRW","userAgent","language","now","pixelRatio","platform","adstage_session_id","random","generateDeviceId","ssr_device_","safeQuerySelector",",y:","toString","android","scrollTop","DateTimeFormat","getBoundingClientRect","resolvedOptions","603422EtiAQn","generateSessionId","506424dJGNRL","getScrollInfo","safeGetElementById","isBrowser","desktop","round","substr"," .adstage-slider-wrapper","toLowerCase","2108571sumNIq","getPlatform","30PDGCWr","2386188xsribR","left","10ypoaAg","SSR","web","isMobile","height","session_","UTC","colorDepth"];return(x=function(){return t})()}function A(t,e){const n=x();return(A=function(t,e){return n[t-=128]})(t,e)}!function(t){const e=A,n=t();for(;;)try{if(694540===parseInt(e(136))/1+-parseInt(e(158))/2+parseInt(e(169))/3+parseInt(e(172))/4+-parseInt(e(139))/5*(parseInt(e(171))/6)+parseInt(e(133))/7*(parseInt(e(160))/8)+parseInt(e(140))/9*(-parseInt(e(174))/10))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(x);class C{static generateDeviceId(){const t=A;if(!v[t(163)]())return t(149)+Date[t(143)]();const e=localStorage[t(132)]("adstage_device_id");if(e)return e;const n="device_"+Math.random().toString(36)[t(166)](2,9)+"_"+Date[t(143)]();return localStorage[t(135)]("adstage_device_id",n),n}static[S(159)](){const t=S;if(!v[t(163)]())return"ssr_session_"+Date[t(143)]();const e=sessionStorage[t(132)](t(146));if(e)return e;const n=t(129)+Math[t(147)]()[t(152)](36)[t(166)](2,9)+"_"+Date[t(143)]();return sessionStorage[t(135)]("adstage_session_id",n),n}static[S(177)](){const t=S;return!!v[t(163)]()&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i[t(137)](navigator[t(141)])}static[S(170)](){const t=S;if(!v.isBrowser())return t(176);const e=navigator.userAgent[t(168)]();return/iphone|ipad|ipod/[t(137)](e)?"ios":/android/.test(e)?t(153):C[t(177)]()?t(176):t(164)}static collectDeviceInfo(){const t=S,e=v.getViewportInfo();return{deviceId:C[t(148)](),sessionId:C[t(159)](),osVersion:v.isBrowser()?navigator[t(145)]:t(175),deviceModel:v[t(163)]()?navigator[t(145)]:t(175),appVersion:"1.0.0",sdkVersion:E(),language:v[t(163)]()&&navigator[t(142)]||"ko",country:"KR",ipAddress:"",userAgent:v[t(163)]()?navigator[t(141)]:"SSR",timezone:v[t(163)]()?Intl[t(155)]()[t(157)]().timeZone:t(130),viewportWidth:e.width,viewportHeight:e[t(128)],screenWidth:v[t(163)]()?screen.width:0,screenHeight:v[t(163)]()?screen[t(128)]:0,colorDepth:v.isBrowser()?screen[t(131)]:24,pixelRatio:e[t(144)],connectionType:v[t(163)]()&&navigator.connection?.effectiveType||t(138),platform:C.getPlatform()}}static getSlotPosition(t){const e=S;let n=v[e(162)](t);if(!n){const r=v[e(150)]("#"+t+e(167));r&&(n=r)}if(!n&&(n=v[e(150)](e(134)+t+'"]')),!n)return"unknown";const r=n[e(156)](),s=v[e(161)]();return"x:"+Math.round(r[e(173)])+e(151)+Math[e(165)](r.top+s[e(154)])}}function T(t,e){const n=L();return(T=function(t,e){return n[t-=463]})(t,e)}const _=T;!function(t){const e=T,n=t();for(;;)try{if(293165===parseInt(e(465))/1*(-parseInt(e(471))/2)+parseInt(e(468))/3+-parseInt(e(473))/4+parseInt(e(478))/5+-parseInt(e(463))/6+-parseInt(e(469))/7*(parseInt(e(475))/8)+parseInt(e(472))/9)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(L);class R{static create(t,e){const n=T;if(!t)throw new Error(n(467));const r={"x-api-key":t,"Content-Type":e?.[n(479)]||n(474)};return typeof navigator!==n(477)&&(r[n(466)]=e?.userAgent||navigator[n(476)]),r}static[_(470)](t,e){const n=_,r=R[n(464)](t);return e?.[n(476)]&&(r[n(466)]=e[n(476)]),r}}function L(){const t=["contentType","67074alucBn","create","386756PcXSFs","User-Agent","API key is required","1535445DrgVxX","2653aGJtdC","createForEvents","2EUjVhP","6351264lTdjFM","818324LrVfUH","application/json","11120YjgrcC","userAgent","undefined","1024900tNMuML"];return(L=function(){return t})()}function P(){const t=["substring","collectDeviceInfo","3995957QdWgdf","2RbayIW","...","🚀 Sending advertisement event: ","getPageInfo","apiKey",'[data-adstage-slot-id="',"1337540qjHqPa","stringify","). Skipping event tracking.","📡 API Response Status: ","title","getSlotPosition",". Skipping event tracking to prevent incorrect adType.","baseUrl"," (containerId: ","referrer","✅ Successfully tracked advertisement event: ","replace","status","POST","🚀 AdvertisementEventTracker: Processing ","API request failed: ","platform","get","🔍 Debug info:","statusText","15670bpXMCr","⚠️ Slot not found for slotId: ","getElementById","text","number","/advertisements/events/","log","string","warn","length","19173ieadLB","477894fyQRpL"," event for ad ","width","parseNumericValue","2947275yACQPt"," in slot ","🌐 Full API call details:","error","sessionId","374301GmzGEw","❌ Failed to track advertisement event:","5wXHfab","adType","12VmcqmJ","slots","debug","containerId","4032160MukGSq"];return(P=function(){return t})()}const D=N;function N(t,e){const n=P();return(N=function(t,e){return n[t-=154]})(t,e)}!function(t){const e=N,n=t();for(;;)try{if(638702===parseInt(e(192))/1+-parseInt(e(204))/2*(parseInt(e(183))/3)+parseInt(e(210))/4*(-parseInt(e(194))/5)+-parseInt(e(196))/6*(parseInt(e(203))/7)+-parseInt(e(200))/8+-parseInt(e(187))/9+parseInt(e(172))/10*(parseInt(e(182))/11))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(P);class B{constructor(t,e,n,r){const s=N;this.baseUrl=t,this.apiKey=e,this[s(198)]=n,this[s(197)]=r}async trackAdvertisementEvent(t,e,n){const r=N;try{this[r(198)]&&console[r(178)](r(166)+n+r(184)+t+r(188)+e);const s=this[r(197)][r(169)](e);if(!s)return void(this[r(198)]&&console[r(180)](r(173)+e+r(158)));if(!(document[r(174)](s[r(199)])||document.querySelector(r(209)+e+'"]')))return void(this[r(198)]&&console[r(180)]("⚠️ DOM element not found for slotId: "+e+r(160)+s[r(199)]+r(154)));const o=C[r(202)](),i={adType:s[r(195)],platform:o[r(168)],deviceId:o.deviceId,deviceInfo:o,pageUrl:v.getPageInfo().url,pageTitle:v[r(207)]()[r(156)],referrer:v[r(207)]()[r(161)],slotId:e,slotPosition:C[r(157)](s[r(199)]),slotWidth:B[r(186)](s[r(185)]),slotHeight:B.parseNumericValue(s.height),sessionId:o[r(191)],pageLoadTime:performance.now(),metadata:{eventType:n,sdkVersion:E(),timestamp:Date.now()},...n===c.VIEWABLE&&{isViewable:!0,iabCompliant:!0}},a=this.baseUrl+r(177)+t+"/"+n,l=R.createForEvents(this[r(208)],i);this.debug&&(console[r(178)](r(206)+n+" for ad "+t,{url:a,headers:l,eventData:i}),console[r(178)](r(189),{method:r(165),url:a,hasApiKey:!!this.apiKey,bodySize:JSON[r(211)](i)[r(181)]}));const d=await fetch(a,{method:r(165),headers:l,body:JSON[r(211)](i)});if(this.debug&&console[r(178)](r(155)+d[r(164)]+" "+d.statusText,{url:a,ok:d.ok}),!d.ok){const t=await d[r(175)]();throw new Error(r(167)+d[r(164)]+" "+d[r(171)]+" - "+t)}this[r(198)]&&console.log(r(162)+n+" for ad "+t)}catch(s){console[r(190)](r(193),s),console[r(190)](r(170),{baseUrl:this[r(159)],apiKey:this[r(208)]?this[r(208)][r(201)](0,8)+r(205):"NOT_SET",url:this[r(159)]+"/advertisements/events/"+t+"/"+n,eventType:n,adId:t,slotId:e})}}static[D(186)](t){const e=D;if(typeof t===e(176))return t;if(typeof t===e(179)){const n=parseFloat(t[e(163)](/px$/,""));return isNaN(n)?0:n}return 0}}function O(){var t=["observer","visible","warn","handleIntersection","forEach","isDocumentVisible","3574RcxzrH","destroy","276116rgzFSO","1991aXWyRy","visibilityState","disconnect","9bxKmQV","1670yPiWIt","1414216ruGoxo","IntersectionObserver","onViewableCallback","isViewableTriggered","474UerTMK","186468qKTJHB","10Tutsnb","78ieonlq","0px","171017yWUlGJ","IntersectionObserver not supported, viewability tracking disabled","initIntersectionObserver","element","6949548VNNGxG"];return(O=function(){return t})()}function M(t,e){var n=O();return(M=function(t,e){return n[t-=422]})(t,e)}var U=M;!function(t){for(var e=M,n=t();;)try{if(174140===parseInt(e(444))/1+-parseInt(e(431))/2*(parseInt(e(443))/3)+parseInt(e(433))/4*(-parseInt(e(445))/5)+-parseInt(e(446))/6*(parseInt(e(448))/7)+parseInt(e(439))/8*(parseInt(e(437))/9)+parseInt(e(438))/10*(-parseInt(e(434))/11)+parseInt(e(424))/12)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(O);class z{constructor(t,e){var n=M;this[n(425)]=null,this[n(442)]=!1,this[n(423)]=t,this.onViewableCallback=e,this[n(422)]()}initIntersectionObserver(){var t=M;t(440)in window?(this[t(425)]=new IntersectionObserver(t=>this.handleIntersection(t),{threshold:.5,rootMargin:t(447)}),this[t(425)].observe(this[t(423)])):console[t(427)](t(449))}[U(428)](t){var e=U;t[e(429)](t=>{var n=e;t.intersectionRatio>=.5&&this[n(430)]()&&!this[n(442)]&&(this[n(442)]=!0,this[n(441)]&&this.onViewableCallback())})}[U(430)](){var t=U;return!document.hidden&&document[t(435)]===t(426)}[U(432)](){var t=U;this[t(425)]&&(this[t(425)][t(436)](),this.observer=null)}}const V=F;function F(t,e){const n=j();return(F=function(t,e){return n[t-=246]})(t,e)}function j(){const t=["advertisements","397798nKItwT","detail","getBaseUrl","/events/track","startsWith","production","track","6tjEQUH","/advertisements","1137768cbGBwu","4382784txuaKK","setBaseUrl","4739556gsvuMQ","list","6bpJVda","7486614KfNJRi","baseUrl","/advertisements/events","1161308SGNIfJ","1965955bJdvGm","30USsTbq","events","https://api.adstage.app","https://beta-api.adstage.app"];return(j=function(){return t})()}!function(t){const e=F,n=t();for(;;)try{if(637839===parseInt(e(270))/1+parseInt(e(263))/2*(-parseInt(e(259))/3)+-parseInt(e(257))/4+-parseInt(e(264))/5*(parseInt(e(252))/6)+parseInt(e(255))/7+-parseInt(e(254))/8+-parseInt(e(260))/9*(-parseInt(e(265))/10))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(j);const K={production:V(267),beta:V(268)};V(250);const H={advertisements:{list:"/advertisements/list",detail:V(253),events:V(262)},events:{track:V(248),registerAttribution:"/events/register/attribution"}};class W{constructor(t){const e=V;this.advertisements={list:()=>""+this[e(261)]+H[e(269)][e(258)],detail:t=>""+this[e(261)]+H[e(269)][e(246)]+"/"+t,events:(t,n)=>""+this.baseUrl+H[e(269)][e(266)]+"/"+t+"/"+n},this[e(266)]={track:()=>""+this[e(261)]+H.events[e(251)],registerAttribution:()=>""+this[e(261)]+H[e(266)].registerAttribution},this.baseUrl=t||K.production}[V(256)](t){this[V(261)]=t}[V(247)](){return this[V(261)]}custom(t){const e=V;return""+this[e(261)]+(t[e(249)]("/")?t:"/"+t)}}const G=new W;var J=q;function q(t,e){var n=X();return(q=function(t,e){return n[t-=363]})(t,e)}function X(){var t=["trackInitialSlideViewable","9078FCKBHf","30JPEKTi","_id","🎯 Triggering VIEWABLE event for slide change: ad ","309561SSQKiL","1590664LdyPIj","4lRXJwi"," (index: 0) in slot: ","806575lWcOtG","3562QTWaYN","🎯 Triggering initial VIEWABLE event: ad ","710FyXlZf","13EJBlyI","9UQBZyp","VIEWABLE","810732PvpzIs","447359mwwBpt","log","trackSlideViewable","78qKKUXN"];return(X=function(){return t})()}!function(t){for(var e=q,n=t();;)try{if(149953===parseInt(e(374))/1*(-parseInt(e(364))/2)+-parseInt(e(380))/3*(-parseInt(e(382))/4)+-parseInt(e(366))/5*(-parseInt(e(376))/6)+parseInt(e(363))/7+parseInt(e(381))/8*(-parseInt(e(368))/9)+parseInt(e(377))/10*(parseInt(e(371))/11)+parseInt(e(370))/12*(-parseInt(e(367))/13))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(X);class Y{static[J(373)](t,e,n,r,s=!1){var o=J;s&&console[o(372)](o(379)+t[o(378)]+" (index: "+n+") in slot: "+e.id),r(t[o(378)],e.id,c[o(369)])}static[J(375)](t,e,n,r=!1){var s=J;r&&console[s(372)](s(365)+t[s(378)]+s(383)+e.id),n(t[s(378)],e.id,c[s(369)])}}const Q=Z;function Z(t,e){const n=$();return(Z=function(t,e){return n[t-=460]})(t,e)}function $(){const t=["style","toLowerCase","cursor","stopPropagation","25955EzkVgk","addEventListener","adType","preventDefault","24314778KomRuu","isClickable","_blank","open","addClickEventForRenderer","pointer","2051cxdSUI","1883834YsAntc","log","addClickEvent","click","_id","391914loWHwj","2501211KdPSkw","236DmbvSA","addClickEventForSlider","linkUrl","🔗 ","forEach"," ad clicked: ","CLICK","18800TsNlJk"," -> ","4295184dZZZdD"];return($=function(){return t})()}!function(t){const e=Z,n=t();for(;;)try{if(490865===-parseInt(e(480))/1+-parseInt(e(475))/2+parseInt(e(481))/3+-parseInt(e(482))/4*(parseInt(e(464))/5)+-parseInt(e(491))/6+-parseInt(e(474))/7*(parseInt(e(489))/8)+parseInt(e(468))/9)break;n.push(n.shift())}catch(t){n.push(n.shift())}}($);class tt{static[Q(477)](t,e,n,r,s=!1,o){const i=Q;e[i(484)]&&(t[i(460)][i(462)]=i(473),t[i(465)]("click",t=>{const a=i;if(t[a(467)](),t[a(463)](),r&&r(e[a(479)],n.id,c[a(488)]),window[a(471)](e.linkUrl,a(470)),s){const t=o||String(n[a(466)]).toLowerCase();console[a(476)](a(485)+t+a(487)+e[a(479)]+a(490)+e.linkUrl)}}))}static[Q(472)](t,e,n,r,s=!1,o){const i=Q;e[i(484)]&&(t[i(460)].cursor=i(473),t[i(465)](i(478),t=>{const a=i;t.preventDefault(),t.stopPropagation();if(r()(e._id,n.id,c.CLICK),window[a(471)](e[a(484)],a(470)),s){const t=o||String(n[a(466)])[a(461)]();console[a(476)](a(485)+t+a(487)+e._id+a(490)+e[a(484)])}}))}static[Q(483)](t,e,n,r,s=!1,o){this[Q(477)](t,e,n,r,s,o)}static[Q(469)](t){return Boolean(t.linkUrl)}static addClickEventsBatch(t,e,n,r,s=!1,o){const i=Q;t[i(486)]((t,a)=>{const c=i,l=e[a];l&&this[c(477)](t,l,n,r,s,o)})}}const et=nt;function nt(t,e){const n=rt();return(nt=function(t,e){return n[t-=419]})(t,e)}function rt(){const t=["translateX(-","hidden","8px","setAttribute","preventDefault","5046654rxjLXT","adstage-dots","background","changedTouches","querySelectorAll","fontSize","3223544JHnClt","className","contains","200px","img","children","22046SYknps","div","video","#f0f0f0","classList","#f9f9f9","5620195oaSdDW","style","overflow","100%","length",".adstage-dot","13440zcDYFw","add","adType","cover","entries","forEach","active","auto","VIDEO","click","Banner Ad","#666666","body","100px","center","createSimpleAdElement","backgroundColor","adstage-slide-container","opacity","border","50px","#999999","autoSlideInterval","\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 ","none","relative","touchend","imageUrl","670035jYwTNx","touchmove","removeChild","cssText","mouseleave","textContent"," Ad","width","5wFcXWK","adstage-slider-wrapper","borderColor","abs","transform","adstage-ad adstage-","addClickEventForSlider","1px dashed #ccc","TEXT","transition","src","setProperty","height","1px solid #666","createMinimalDotIndicator","createElement","transform 0.4s ease-out","videoUrl","addEventListener","whiteSpace","Text Ad","data-adstage-ad-id","objectFit","display","includes","90EkiEhV","#000","toLowerCase","mouseenter","addTouchSupport","padding","131373PGkwnc","color","flex","block","0.7","appendChild","#cccccc","clientX","87RucdpB","touches","getBoundingClientRect","inline-block"];return(rt=function(){return t})()}!function(t){const e=nt,n=t();for(;;)try{if(617433===-parseInt(e(458))/1+parseInt(e(526))/2*(parseInt(e(505))/3)+-parseInt(e(520))/4*(parseInt(e(466))/5)+parseInt(e(514))/6+parseInt(e(424))/7+-parseInt(e(430))/8+parseInt(e(497))/9*(parseInt(e(491))/10))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(rt);class st{static[et(445)](t,e){const r=et,s=document[r(481)](r(419));switch(s[r(521)]=r(471)+String(t[r(432)]).toLowerCase(),s[r(512)](r(487),e._id),s.setAttribute("data-adstage-slot-id",t.id),s[r(425)].display=r(500),s.style[r(465)]="100%",s[r(425)][r(478)]=r(437),t[r(432)]){case n.BANNER:if(e[r(457)]){const t=document[r(481)](r(524));t[r(476)]=e[r(457)],t.style.width=r(427),t.style[r(478)]=r(437),t[r(425)][r(488)]=r(433),s.appendChild(t)}else s[r(425)][r(478)]="100px",s[r(425)].backgroundColor=r(421),s[r(425)][r(449)]=r(473),s.textContent=r(440);break;case n[r(438)]:if(e[r(483)]){const t=document[r(481)](r(420));t[r(476)]=e.videoUrl,t.style[r(465)]=r(427),t[r(425)].height=r(437),s[r(502)](t)}else s[r(425)][r(478)]=r(523),s[r(425)][r(446)]=r(492),s[r(425)].border=r(479),s[r(463)]="Video Ad",s[r(425)][r(498)]="white";break;case n[r(474)]:if(e[r(463)]){const t=document[r(481)](r(419));t[r(463)]=e[r(463)]||"",t[r(425)][r(496)]=r(511),t[r(425)][r(519)]="14px",s[r(502)](t)}else s[r(425)][r(478)]=r(450),s.style[r(496)]="8px",s[r(463)]=r(486);break;default:s[r(425)].height=r(443),s.style[r(449)]=r(473),s.style[r(446)]=r(423),s[r(463)]=t[r(432)]+r(464)}return s}static createSliderContainer(t,e,r,s,o=!1){const i=et,a=document[i(481)](i(419));a[i(521)]=i(467);const c={position:i(455),overflow:i(510)};if(t[i(465)]&&0!==t[i(465)]){let e;e="string"==typeof t[i(465)]&&(t[i(465)].includes("px")||t[i(465)][i(490)]("%"))?t[i(465)]:t[i(465)]+"px",c.width=e,c.display=i(508)}else c[i(489)]="inline-block";if(t.height&&0!==t[i(478)]){const e="string"==typeof t[i(478)]?t[i(478)]:t[i(478)]+"px";c.height=e}Object.entries(c)[i(435)](([t,e])=>{const n=i;a.style[n(477)](t,e)});const l=!t[i(465)]||0===t[i(465)],d=!t.height||0===t[i(478)];if(l||d){const n=document[i(481)](i(419));if(n.style[i(461)]="\n position: absolute;\n visibility: hidden;\n white-space: nowrap;\n top: -9999px;\n left: -9999px;\n ",!l&&t[i(465)]){let e;e="string"==typeof t.width?t[i(465)][i(490)]("px")||t[i(465)][i(490)]("%")?t[i(465)]:t.width+"px":t[i(465)]+"px",n[i(425)][i(465)]=e,n[i(425)][i(485)]="normal"}document[i(442)][i(502)](n);let r=0,s=0;e[i(435)](e=>{const o=i,a=this[o(445)](t,e);n[o(502)](a);const c=a[o(507)]();c[o(465)]>r&&(r=c[o(465)]),c.height>s&&(s=c[o(478)]),n[o(460)](a)}),l&&r>0&&(a[i(425)].width=r+"px",c.width=r+"px"),d&&s>0&&(a.style[i(478)]=s+"px",c[i(478)]=s+"px"),document[i(442)][i(460)](n)}const u=[...e,e[0]],p=document[i(481)]("div");p[i(521)]=i(447);const h={display:i(499),transition:i(482),width:100*u[i(428)]+"%"};t.height&&0!==t[i(478)]&&(h[i(478)]=i(427)),Object[i(434)](h)[i(435)](([t,e])=>{p[i(425)].setProperty(t,e)}),u[i(435)]((e,n)=>{const r=i,a=document.createElement(r(419));a.className="adstage-slide";const c={width:100/u[r(428)]+"%","flex-shrink":"0",display:r(499),"align-items":r(444),"justify-content":r(444)};t[r(478)]&&0!==t.height&&(c[r(478)]=r(427)),Object[r(434)](c).forEach(([t,e])=>{const n=r;a[n(425)][n(477)](t,e)});const l=this[r(445)](t,e);tt[r(472)](l,e,t,s,o,String(t[r(432)])[r(493)]()),a[r(502)](l),p[r(502)](a)});const f=e.every(t=>t[i(432)]===n.TEXT)?null:this.createMinimalDotIndicator(e[i(428)]);let g=0;const m=e[i(428)],y=1e3*(r?.[i(452)]||3),v=(n,r=!1)=>{const a=i;g=n,r?p[a(425)][a(475)]=a(454):p[a(425)].transition=a(482),p[a(425)][a(470)]=a(509)+100/u.length*g+"%)";const c=g===m?0:g;if(f){f[a(518)](a(429))[a(435)]((t,e)=>{const n=a,r=t;e===c?(r.classList[n(431)](n(436)),r.style[n(516)]=n(441),r[n(425)][n(468)]=n(441),r[n(425)][n(448)]="1"):(r.classList.remove("active"),r[n(425)][n(516)]="transparent",r[n(425)][n(468)]=n(503),r.style.opacity=n(501))})}Y.trackSlideViewable(e[c],t,c,s,o)},I=()=>{g===m&&setTimeout(()=>{v(0,!0)},400)};if(f){f[i(518)](".adstage-dot").forEach((t,e)=>{const n=i;t.addEventListener(n(439),()=>v(e))})}let b=setInterval(()=>{v(g+1),I()},y);return a.addEventListener(i(494),()=>{clearInterval(b)}),a[i(484)](i(462),()=>{b=setInterval(()=>{v(g+1),I()},y)}),this[i(495)](p,v,()=>g,m,I),a.appendChild(p),f&&a[i(502)](f),v(0),(!t[i(465)]||0===t[i(465)])&&setTimeout(()=>{const e=i,n=p[e(525)][0];if(n){const r=n[e(525)][0];if(r){const n=r[e(507)]();a[e(425)].width=n.width+"px",(!t[e(478)]||0===t.height)&&(a[e(425)][e(478)]=n[e(478)]+"px"),a.style[e(426)]=e(510)}}},10),a}static[et(480)](t){const e=et,n=document[e(481)](e(419));n.className=e(515),n.style[e(461)]="\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 r=0;r<t;r++){const t=document.createElement("button");t.className="adstage-dot",t.style.cssText=e(453),t.addEventListener(e(494),()=>{const n=e;!t[n(422)][n(522)](n(436))&&(t.style[n(468)]=n(451),t[n(425)][n(448)]="0.9")}),t[e(484)](e(462),()=>{const n=e;!t[n(422)][n(522)](n(436))&&(t[n(425)][n(468)]=n(503),t.style[n(448)]="0.7")}),n.appendChild(t)}return n}static[et(495)](t,e,n,r,s){const o=et;let i=0,a=!1;t[o(484)]("touchstart",t=>{const e=o;i=t[e(506)][0][e(504)],a=!0}),t.addEventListener(o(459),t=>{a&&t[o(513)]()}),t.addEventListener(o(456),t=>{const c=o;if(!a)return;a=!1;const l=t[c(517)][0][c(504)],d=i-l;if(Math[c(469)](d)>50){const t=n();if(d>0){e(t+1),s&&s()}else{e(t>0?t-1:r-1)}}})}}const ot=ct;!function(t){const e=ct,n=t();for(;;)try{if(182988===parseInt(e(165))/1*(-parseInt(e(168))/2)+parseInt(e(177))/3+parseInt(e(162))/4*(parseInt(e(174))/5)+-parseInt(e(170))/6+-parseInt(e(159))/7*(parseInt(e(160))/8)+parseInt(e(171))/9*(parseInt(e(176))/10)+parseInt(e(169))/11*(-parseInt(e(175))/12))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(at);class it{static[ot(167)](t,e,n=!1){const r=ot,s=t+"_"+e;return it[r(173)].has(s)?(n&&console.log(r(164)+t+r(163)+e),!0):(it[r(173)].add(s),n&&console[r(161)]("✅ New viewable recorded for ad "+t+r(163)+e),!1)}static[ot(172)](){const t=ot;it.viewableTracker[t(172)]()}static[ot(166)](t,e){const n=t+"_"+e;it[ot(173)].delete(n)}}function at(){const t=["clear","viewableTracker","1445075KorZpn","103716hcJxsO","176290NwotsG","452130xbiLLb","435582SmBOVa","16RNwTyn","log","4sXBYOZ"," in slot ","Duplicate viewable blocked for ad ","23769xLckUF","clearAdViewable","isDuplicateViewable","6NsNWsW","55RbyhGD","1058544IelYWC","81lFVdme"];return(at=function(){return t})()}function ct(t,e){const n=at();return(ct=function(t,e){return n[t-=159]})(t,e)}it[ot(173)]=new Set;const lt=dt;function dt(t,e){const n=ut();return(dt=function(t,e){return n[t-=298]})(t,e)}function ut(){const t=["\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 ","3249290LKgcYV"," container: ","getDefaultHeight","data-adstage-empty","filter","trackAdvertisementEvent","rgba(248, 249, 250, 0.5)","6px","debug","true","innerHTML",'div[style*="min-height"]'," ad...</span>","fontSize","✅ New viewable recorded for ad ","minHeight","alignItems","display","📊 Advertisement event tracked: ",".adstage-","none","border","⚠️ AdvertisementEventTracker not available for ","appendChild","📦 Placeholder created for ","⚠️ ","adstage-slot adstage-","❌ Failed to track ","7oSSNIr","91521LlyDvV","2px dashed #e74c3c","center",".adstage-slot","height","containerId","📏 Using default height ","classList","#f9f9f9",'<span style="color: rgba(0, 0, 0, 0.4); font-size: 12px; font-family: -apple-system, sans-serif;">•••</span>',"div","createEmptyContainer","getContainerHeight","24rBXMav","adstage-class","data-adstage-type","🚫 Duplicate viewable blocked for ad ","202252MPoubv","closest","justifyContent","2BaEEmd","flex","⚠️ Created empty ","4px","rgba(0, 0, 0, 0.02)","data-adstage-container","borderRadius","invisible","log","adstage-slot"," in slot ","1px solid rgba(0, 0, 0, 0.08)","px)","2731164PRuOrd","\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 ","<span>Loading ","className","3274299yckWNn","block","number","12vjHnjK","adstage-official","transparent","unknown","querySelector","opacity","monospace","toLowerCase"," event for ad "," container collapsed (","style","cssText","adType","string",'[data-adstage-container="true"]',"applyPlaceholderStyle","hasAttribute","createEventTrackingCallback","100%","error","#666","backgroundColor"," x ","calculateAdSize","auto","setAttribute","fontFamily","data-adstage-slot",'[class*="ad"]',"generic","advertisement"," for ad ",") - Mode: ","isEmpty","8hfiHHx","placeholderMode","createElement","3129905TeJDZF","15541449yMRfvG","minimal",'div[style*="height"]',"): ","color","renderFallback","warn"];return(ut=function(){return t})()}!function(t){const e=dt,n=t();for(;;)try{if(389776===-parseInt(e(403))/1*(-parseInt(e(400))/2)+parseInt(e(383))/3*(-parseInt(e(396))/4)+-parseInt(e(345))/5+-parseInt(e(301))/6*(parseInt(e(382))/7)+parseInt(e(342))/8*(parseInt(e(305))/9)+-parseInt(e(354))/10+-parseInt(e(346))/11*(-parseInt(e(308))/12))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(ut);class pt{constructor(t,e=!1,n){const r=dt;this[r(320)]=t,this[r(362)]=e,this.advertisementEventTracker=n||null}createPlaceholder(t,e,n,r){const s=dt,o=document[s(344)]("div");o.id=e,o[s(304)]=s(380)+String(this[s(320)])[s(315)](),o[s(333)](s(408),s(363)),o[s(333)](s(398),String(this[s(320)])),o[s(333)](s(335),e);const{width:i,height:a}=this.calculateAdSize(t,n,r)||{width:s(326),height:this[s(356)]()};o[s(318)].width=i,o[s(318)].height=a;const c=r?.[s(343)]||n[s(343)]||s(410);this.applyPlaceholderStyle(o,c),t[s(377)](o),this.debug&&console[s(411)](s(378)+this[s(320)]+" slot: "+e+" ("+i+s(330)+a+s(340)+c)}[lt(323)](t,e){const n=lt;switch(e){case n(410):t.style[n(329)]=n(310),t[n(318)].border=n(374),t[n(318)][n(313)]="0",t.innerHTML="";break;case"transparent":t[n(318)][n(329)]="transparent",t[n(318)][n(375)]=n(374),t.style[n(371)]=n(306),t[n(364)]="";break;case"subtle":t[n(318)][n(329)]=n(407),t[n(318)].border="none",t[n(318)].borderRadius=n(406),t[n(318)][n(371)]=n(404),t[n(318)].alignItems=n(385),t[n(318)][n(402)]=n(385),t[n(364)]='<span style="color: rgba(0, 0, 0, 0.3); font-size: 11px; font-family: sans-serif;">•••</span>';break;case n(347):t[n(318)].backgroundColor=n(360),t[n(318)][n(375)]=n(299),t[n(318)][n(409)]=n(361),t[n(318)][n(371)]=n(404),t[n(318)][n(370)]="center",t[n(318)][n(402)]="center",t[n(364)]=n(392);break;case"debug":t[n(318)][n(375)]=n(384),t[n(318)][n(371)]="flex",t[n(318)].alignItems=n(385),t[n(318)][n(402)]="center",t[n(318)][n(329)]="rgba(231, 76, 60, 0.1)",t[n(318)][n(350)]="#e74c3c",t.style[n(334)]=n(314),t.style[n(367)]="11px",t[n(364)]=n(303)+this.adType+n(366);break;default:t[n(318)][n(375)]="1px dashed #ccc",t[n(318)].display=n(404),t[n(318)][n(370)]=n(385),t[n(318)][n(402)]=n(385),t[n(318)][n(329)]=n(391),t[n(318)][n(350)]=n(328),t[n(364)]="<span>Loading "+this[n(320)]+n(366)}}[lt(331)](t,e,n){const r=lt,s=e.width,o=e[r(387)];let i,a;if(i=typeof s===r(307)?s+"px":typeof s===r(321)?s:r(326),"number"==typeof o)a=o+"px";else if(typeof o===r(321)&&o!==r(326)&&o!==r(332))a=o;else{const e=this.getContainerHeight(t);e>0?(a="100%",(n?.[r(362)]||this[r(362)])&&console[r(411)]("📏 Using 100% height (container: "+e+r(300))):(a=this.getDefaultHeight(),(n?.debug||this[r(362)])&&console.log(r(389)+a+" for "+this[r(320)]))}return{width:i,height:a}}[lt(395)](t){const e=lt,n=window.getComputedStyle(t),r=parseFloat(n[e(387)]);if(!r||0===r){const r=parseFloat(n[e(369)]);if(r>0)return r;if(t[e(318)][e(387)]&&"auto"!==t[e(318)][e(387)]){const n=parseFloat(t[e(318)][e(387)]);if(n>0)return n}const s=t.getAttribute(e(387));if(s){const t=parseFloat(s);if(t>0)return t}}return r||0}[lt(325)](){return async(t,e,n)=>{const r=dt;if(n===c.VIEWABLE){if(it.isDuplicateViewable(t,e,this[r(362)]))return void(this[r(362)]&&console.log(r(399)+t+r(298)+e));this[r(362)]&&console.log(r(368)+t+r(298)+e)}if(this.advertisementEventTracker)try{this[r(362)]&&console[r(411)]("🔄 Starting advertisement event tracking: "+n+r(339)+t+" in slot "+e),await this.advertisementEventTracker[r(359)](t,e,n),this[r(362)]&&console[r(411)](r(372)+n+r(339)+t+r(298)+e)}catch(e){this[r(362)]&&console[r(327)](r(381)+n+r(316)+t+":",e)}else this[r(362)]&&console[r(352)](r(376)+n+" event")}}[lt(351)](t){const e=lt,n=document.getElementById(t.id);if(n){const r=[...[n[e(312)](e(322)),n.closest(e(322)),n].filter(t=>t&&t.hasAttribute(e(408))),...[n[e(401)](e(386)),n.closest(e(373)+String(this[e(320)])[e(315)]()),n[e(401)](e(336)),n[e(401)]('[class*="banner"]'),n[e(401)]('[class*="container"]'),n[e(401)](e(348)),n[e(401)](e(365)),n.parentElement][e(358)](Boolean)][0];if(r){let n=e(311);n=r[e(324)](e(408))?e(309):r[e(390)].contains(e(412))?e(397):e(337),r[e(318)][e(319)]+=e(302),r[e(364)]="",r[e(333)](e(357),e(363)),this[e(362)]&&console[e(352)](e(379)+this[e(320)]+e(317)+n+e(349)+t.id,r)}else this[e(394)](t)}t[e(338)]=void 0,t[e(341)]=!0}[lt(394)](t){const e=lt,n=document.getElementById(t[e(388)]);if(n){n.innerHTML="";const r=document.createElement(e(393));r.id=t.id,r.className="adstage-slot adstage-empty adstage-"+String(this.adType)[e(315)](),r[e(333)](e(408),"true"),r[e(333)](e(357),"true"),r[e(333)](e(335),t.id),r[e(318)][e(319)]=e(353),n.appendChild(r),this[e(362)]&&console[e(352)](e(405)+this[e(320)]+e(355)+t.id)}}[lt(411)](t,...e){const n=lt;this[n(362)]&&console[n(411)]("["+this[n(320)]+"] "+t,...e)}}const ht=gt;function ft(){const t=["applyOptimizedImageStyle","Banner Ad",'<div style="display: flex; align-items: center; justify-content: center; height: 100%; color: #999;">Loading...</div>',"className","map","average","naturalHeight","block","borderRadius","objectPosition","some","optimizedHeight","warn","4649840jEhBjH","img","round","</div>","log","calculateOptimalContainerSize","count","❌ Failed to load optimized banner image:","onerror","getElementById","renderMultipleAds","center","📦 Banner container dimensions: ","calculateOptimalHeight","config","innerHTML","selectOptimalSizeStrategy","14MHxpiw","containerId","📊 Using standard ratio: "," ads: ","3OthvSV","1:1","250px","11130327mOhDIQ","backgroundColor","91baoVAh","toString","slideInterval","error","filter","cover","_id","Banner Advertisement"," ads (optimized: "," (strategy: ","ratio","length","createElement","6447370nDENHG","📐 Optimal banner container calculated: ","8px","addClickEventForRenderer","renderOptimizedBannerImage","name","<div>","4202394wqKkEu","objectFit","src","🔧 Banner container optimized for ","abs","optimizeContainerForBannerAds","appendChild","div","renderAdElement","from","style","default","16:9","#f0f0f0","width","Banner container optimization failed, using default size:"," (avg: ","set","loadImageDimensions","forEach","Container not found: "," with ","fulfilled","debug","createEventTrackingCallback","values","100%","get",", ratio=","getBoundingClientRect","reduce","imageUrl","dominant","📸 Banner image dimensions: ","aspectRatio","262732rMOsID","698968XhNdQC","height","Banner","🎠 Banner carousel created for slot: ","title","toFixed","8230TLZIUL","getDefaultHeight","common"];return(ft=function(){return t})()}function gt(t,e){const n=ft();return(gt=function(t,e){return n[t-=203]})(t,e)}!function(t){const e=gt,n=t();for(;;)try{if(839564===parseInt(e(285))/1*(parseInt(e(252))/2)+parseInt(e(289))/3*(-parseInt(e(245))/4)+-parseInt(e(203))/5+-parseInt(e(210))/6+-parseInt(e(294))/7*(-parseInt(e(246))/8)+parseInt(e(292))/9+parseInt(e(268))/10)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(ft);class mt extends pt{constructor(t=!1,e){super(n.BANNER,t,e)}[ht(253)](){return ht(291)}async[ht(218)](t,e){const n=ht,r=document.getElementById(t[n(286)]);if(!r)return;const s=document.createElement(n(217));s[n(258)]="adstage-ad adstage-banner-ad";const o=t[n(266)],i=r.parentElement||r;if(o)s[n(220)][n(224)]=n(236),s[n(220)].height=String(o);else{const e=t[n(282)],r={width:e?.width,height:e?.height},{width:o,height:a}=this.calculateAdSize(i,r,{debug:this.debug});s.style[n(224)]=o,s[n(220)][n(247)]=a}e[n(241)]?await this[n(207)](s,e,t):s.innerHTML=n(209)+(e[n(250)]||n(256))+n(271),tt[n(206)](s,e,t,()=>this[n(234)](),this[n(233)],"Banner"),r.innerHTML="",r.appendChild(s)}async[ht(278)](t,e){const n=ht,r=document[n(277)](t[n(286)]);if(!r)throw new Error(n(230)+t[n(286)]);await this[n(215)](t,e);const s=this[n(234)](),o={autoSlideInterval:(t.config?.[n(296)]||5e3)/1e3,...t.config,optimizedHeight:t[n(266)],aspectRatio:t[n(244)]},i=st.createSliderContainer(t,e,o,s,this[n(233)]);i&&(r.innerHTML="",r[n(216)](i),this[n(233)]&&console[n(272)](n(249)+t.id+n(231)+e[n(305)]+n(302)+(t[n(266)]||n(221))+")"))}async[ht(273)](t,e){const n=ht;if(!t[n(305)])return{width:"100%",height:this.getDefaultHeight(),aspectRatio:16/9};try{const r=(await Promise.allSettled(t[n(298)](t=>t.imageUrl)[n(259)](t=>this[n(228)](t[n(241)]))))[n(298)](t=>t.status===n(232))[n(259)](t=>t.value);if(0===r.length)return{width:"100%",height:this.getDefaultHeight(),aspectRatio:16/9};const s=this[n(284)](r),o=this[n(281)](r,e,s);return this[n(233)]&&console[n(272)](n(204)+e+"x"+o+n(303)+s+")"),{width:"100%",height:o+"px",aspectRatio:e/o}}catch(t){return console[n(267)]("Failed to calculate optimal banner size, using defaults:",t),{width:n(236),height:this[n(253)](),aspectRatio:16/9}}}async[ht(215)](t,e){const n=ht;try{const r=document.getElementById(t.containerId),s=document[n(277)](t.id);if(!r||!s)return;const o=r.getBoundingClientRect()[n(224)]||300,i=await this.calculateOptimalContainerSize(e,o);s[n(220)][n(247)]=i[n(247)],t.optimizedHeight=i[n(247)],t.aspectRatio=i[n(244)],this.debug&&console[n(272)](n(213)+e[n(305)]+n(288)+i[n(247)])}catch(t){console[n(267)](n(225),t)}}selectOptimalSizeStrategy(t){const e=ht,n=t[e(259)](t=>t[e(224)]/t[e(247)]),r=new Map;n.forEach(t=>{const n=e,s=(Math.round(10*t)/10)[n(295)]();r[n(227)](s,(r[n(237)](s)||0)+1)});const s=Math.max(...r[e(235)]()),o=t[e(305)];if(s/o>=.7)return e(242);const i=[16/9,4/3,1,1.5],a=n.filter(t=>i[e(265)](e=>Math.abs(t-e)<.1))[e(305)];return e(a/o>=.5?254:260)}calculateOptimalHeight(t,e,n){const r=ht,s=t.map(t=>t[r(224)]/t[r(247)]);switch(n){case r(242):{const t=new Map;s[r(229)](e=>{const n=r,s=Math.round(10*e)/10,o=s[n(295)](),i=t[n(237)](o);i?i[n(274)]++:t[n(227)](o,{ratio:s,count:1})});const n=Array[r(219)](t[r(235)]())[r(240)]((t,e)=>e[r(274)]>t[r(274)]?e:t);return Math.round(e/n[r(304)])}case r(254):{const t=[{ratio:16/9,name:r(222)},{ratio:4/3,name:"4:3"},{ratio:1,name:r(290)},{ratio:1.5,name:"3:2"}],n=s[r(240)]((t,e)=>t+e,0)/s[r(305)],o=t[r(240)]((t,e)=>Math[r(214)](e.ratio-n)<Math[r(214)](t[r(304)]-n)?e:t);return this[r(233)]&&console.log(r(287)+o[r(208)]+r(226)+n[r(251)](2)+")"),Math[r(270)](e/o[r(304)])}case r(260):default:{const t=s.reduce((t,e)=>t+e,0)/s[r(305)];return Math[r(270)](e/t)}}}loadImageDimensions(t){return new Promise((e,n)=>{const r=gt,s=new Image;s.onload=()=>{const t=gt;e({width:s.naturalWidth,height:s[t(261)]})},s[r(276)]=()=>{n(new Error("Failed to load image: "+t))},s[r(212)]=t})}[ht(255)](t,e,n){const r=ht,s=e/n;Math.abs(s-1)<.1?(t.style[r(211)]=r(299),t[r(220)][r(264)]=r(279)):s>1.3?(t[r(220)][r(211)]="contain",t.style[r(264)]="center",t[r(220)][r(293)]=r(223)):s<.7?(t[r(220)].objectFit=r(299),t[r(220)][r(264)]=r(279)):(t[r(220)].objectFit=r(299),t.style[r(264)]="center"),this[r(233)]&&console[r(272)]("🎨 Banner image style applied: objectFit="+t.style[r(211)]+r(238)+s[r(251)](2))}async[ht(207)](t,e,n){const r=ht,s=document[r(306)](r(269));s[r(220)][r(224)]="100%",s.style[r(247)]=r(236),s[r(220)].display=r(262),s.style[r(263)]=r(205),s.alt=e[r(250)]||r(301),t[r(283)]=r(257);try{if(!e[r(241)])throw new Error("Image URL is not provided");const o=await this[r(228)](e[r(241)]),i=t[r(239)](),a=i[r(224)],c=i.height;this[r(233)]&&(console[r(272)](r(243)+o[r(224)]+"x"+o[r(247)]),console[r(272)](r(280)+a+"x"+c));const l=o[r(224)]/o[r(247)],d=a/c;return this[r(255)](s,l,d),s.src=e[r(241)],t.innerHTML="",t.appendChild(s),tt[r(206)](s,e,n,()=>this.createEventTrackingCallback(),this[r(233)],r(248)),this.debug&&console[r(272)]("✅ Optimized banner image rendered for ad: "+e[r(300)]),s}catch(o){return console[r(297)](r(275),o),e.imageUrl&&(s.src=e.imageUrl,s.style[r(211)]=r(299),s[r(220)].objectPosition="center",t[r(283)]="",t[r(216)](s),tt[r(206)](s,e,n,()=>this[r(234)](),this.debug,r(248))),s}}}function yt(){const t=["\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 ","4441284pzxsHI","2891952MkOUme","4384295MYMBsn","3082896SeshMw","234381rpIRhd","1174658SUOawM","1646196wOdWwL"];return(yt=function(){return t})()}function vt(t,e){const n=yt();return(vt=function(t,e){return n[t-=333]})(t,e)}!function(t){const e=vt,n=t();for(;;)try{if(578154===-parseInt(e(338))/1+-parseInt(e(339))/2+parseInt(e(337))/3+parseInt(e(334))/4+-parseInt(e(336))/5+-parseInt(e(340))/6+parseInt(e(335))/7)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(yt);class It{static createTextAdStyles(t=!1){return vt(333)}static setTextAdContent(t,e){const n=e.textContent||e.title||"";t.textContent=n}}const bt=wt;function wt(t,e){const n=kt();return(wt=function(t,e){return n[t-=347]})(t,e)}function kt(){const t=["touches","transform","data-adstage-slot-id","35756yvMqaN","abs","changedTouches","entries","height: auto;","whiteSpace","createTextAdStyles","4rSgata","cssText",");\n transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);\n z-index: ","getBoundingClientRect","\n position: ","2585340MapxLd","absolute","createSimpleAdElement","setTextAdContent","2035824HPJCih","30oslNFf","20px","clientX","push","adstage-fade-slide-container","toLowerCase","preventDefault","8150505jBsfdF","data-adstage-ad-id","adType","string","4002963uLygJL","className",";\n width: 100%;\n ","adstage-fade-slide","forEach","touchstart","position","\n position: absolute;\n visibility: hidden;\n white-space: nowrap;\n top: -9999px;\n left: -9999px;\n ","left","translateY(0)","removeChild","zIndex","createTextTransitionContainer","addEventListener","1980GOdUFP","height: 100%;","\n ",";\n transform: translateY(","style","length","setAttribute","body","1110281qDXBCz","touchmove","trackSlideViewable","top","includes","hidden","13815637NYhcCt","adstage-fade-slider-wrapper","width","height","relative","adstage-ad adstage-","div","touchend","createElement","auto","fit-content","minHeight","autoSlideInterval","mouseenter","Text","block","appendChild","setProperty","mouseleave","27wIwijd","addTouchSupport",";\n left: ","opacity"];return(kt=function(){return t})()}!function(t){const e=wt,n=t();for(;;)try{if(849602===-parseInt(e(414))/1+-parseInt(e(376))/2+parseInt(e(392))/3*(-parseInt(e(371))/4)+-parseInt(e(388))/5+-parseInt(e(406))/6*(-parseInt(e(364))/7)+-parseInt(e(380))/8*(-parseInt(e(357))/9)+-parseInt(e(381))/10*(-parseInt(e(420))/11))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(kt);class Et{static[bt(378)](t,e){const n=bt,r=document[n(428)](n(426));return r[n(393)]=n(425)+String(t[n(390)])[n(386)](),r[n(412)](n(389),e._id),r[n(412)](n(363),t.id),r[n(410)][n(372)]=It[n(370)](!0),It[n(379)](r,e),r}static[bt(404)](t,e,n,r,s=!1){const o=bt,i=t.height&&0!==t[o(423)]&&t[o(423)]!==o(347),a=document[o(428)](o(426));a[o(393)]=o(421);const c={position:o(424),overflow:o(419),display:o(353)};if(!i&&(c.height=o(347),c[o(349)]=o(348)),t[o(422)]&&0!==t[o(422)]){let e;e=typeof t[o(422)]===o(391)&&(t[o(422)][o(418)]("px")||t.width[o(418)]("%"))?t[o(422)]:t[o(422)]+"px",c[o(422)]=e}if(t[o(423)]&&0!==t.height&&t.height!==o(347)&&i){let e;e=typeof t.height===o(391)&&(t.height[o(418)]("px")||t[o(423)][o(418)]("%"))?t[o(423)]:t[o(423)]+"px",c[o(423)]=e}Object[o(367)](c)[o(396)](([t,e])=>{const n=o;a[n(410)][n(355)](t,e)});const l=document.createElement(o(426));l.className=o(385),l[o(410)][o(372)]="\n position: relative;\n width: 100%;\n "+(i?o(407):"height: auto; min-height: fit-content;")+o(408);let d=null;const u=!t[o(422)]||0===t[o(422)],p=!t[o(423)]||0===t[o(423)]||void 0===t.height||"auto"===t.height;if(u||p&&i){if(d=document.createElement(o(426)),d[o(410)].cssText=o(399),!u&&t[o(422)]){let e;e=typeof t.width===o(391)&&(t.width[o(418)]("px")||t[o(422)][o(418)]("%"))?t[o(422)]:t[o(422)]+"px",d[o(410)][o(422)]=e,d[o(410)][o(369)]="normal"}document[o(413)][o(354)](d);let n=0,r=0;e[o(396)](e=>{const s=o,i=this[s(378)](t,e);d.appendChild(i);const a=i[s(374)]();a.width>n&&(n=a.width),a[s(423)]>r&&(r=a[s(423)]),d[s(402)](i)}),u&&n>0&&(a[o(410)][o(422)]=n+"px"),p&&r>0&&i&&(a[o(410)][o(423)]=r+"px"),document[o(413)].removeChild(d)}const h=[];e[o(396)]((e,n)=>{const a=o,c=document[a(428)](a(426));c[a(393)]=a(395);const d=a(i?377:0===n?424:377);c[a(410)][a(372)]=a(375)+d+";\n top: "+(d===a(377)?"0":"auto")+a(359)+("absolute"===d?"0":a(347))+a(394)+a(i?407:368)+"\n display: flex;\n align-items: center;\n justify-content: flex-start;\n opacity: "+(0===n?"1":"0")+a(409)+(0===n?"0":a(382))+a(373)+(0===n?"2":"1")+";\n ";const u=this.createSimpleAdElement(t,e);tt.addClickEventForSlider(u,e,t,r,s,a(352)),c[a(354)](u),l[a(354)](c),h[a(384)](c)});let f=0;const g=e[o(411)],m=1e3*(n?.[o(350)]||4),y=n=>{const a=o;n>=g?n=0:n<0&&(n=g-1);const c=h[f],l=h[n];!i&&(c[a(410)][a(398)]===a(424)&&(c[a(410)][a(398)]="absolute",c.style[a(417)]="0",c.style[a(400)]="0"),l[a(410)].position=a(424),l[a(410)].top=a(347),l[a(410)][a(400)]=a(347)),c.style[a(360)]="0",c.style.transform="translateY(-20px)",c.style[a(403)]="1",l[a(410)][a(360)]="1",l[a(410)].transform=a(401),l.style[a(403)]="2",h[a(396)]((t,e)=>{const r=a;e!==n&&e!==f&&(t[r(410)][r(360)]="0",t[r(410)][r(362)]="translateY(20px)",t[r(410)][r(403)]="1",!i&&"relative"===t.style[r(398)]&&(t[r(410)][r(398)]="absolute",t[r(410)][r(417)]="0",t[r(410)][r(400)]="0"))}),f=n,Y[a(416)](e[f],t,f,r,s)};let v=setInterval(()=>{y(f+1)},m);return a.addEventListener(o(351),()=>{clearInterval(v)}),a.addEventListener(o(356),()=>{v=setInterval(()=>{y(f+1)},m)}),Et[o(358)](a,y,()=>f,g),a[o(354)](l),a}static[bt(358)](t,e,n,r){const s=bt;let o=0,i=0,a=!1;t[s(405)](s(397),t=>{o=t[s(361)][0].clientX,i=t.touches[0].clientY,a=!0}),t[s(405)](s(415),t=>{a&&t[s(387)]()}),t[s(405)](s(427),t=>{const r=s;if(!a)return;a=!1;const c=t[r(366)][0][r(383)],l=t[r(366)][0].clientY,d=o-c,u=i-l;if(Math[r(365)](d)>Math[r(365)](u)&&Math.abs(d)>50){const t=n();e(d>0?t+1:t-1)}})}}const St=At;function xt(){const t=["50cCSarw","calculateAdSize","8862pcCING","253350HWbGzM","createEventTrackingCallback","✨ Text transition created for slot: ","webkitBoxOrient","-webkit-box","createTextTransitionContainer","width","getElementById","60px","7948wztnxi","hidden","1547649TrrcDn","✨ Single text ad rendered: ","vertical","adstage-ad adstage-text-ad","style","cssText","overflow","containerId","createElement","optimizedHeight","adstage-text-content","height","debug","log","100%","237zGxaPS","length","parentElement","getDefaultHeight","_id","Text","2681bkznCq","aspectRatio","1461654udtdRE","483296jnsRWi","renderMultipleAds","number"," with ","div","213572Wbtedn","maxLines","Container not found: ","appendChild","innerHTML","webkitLineClamp","TEXT","className","config"];return(xt=function(){return t})()}function At(t,e){const n=xt();return(At=function(t,e){return n[t-=428]})(t,e)}!function(t){const e=At,n=t();for(;;)try{if(647812===-parseInt(e(458))/1+-parseInt(e(452))/2+-parseInt(e(444))/3*(-parseInt(e(479))/4)+-parseInt(e(470))/5+-parseInt(e(469))/6*(-parseInt(e(450))/7)+parseInt(e(453))/8+parseInt(e(429))/9*(parseInt(e(467))/10))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(xt);class Ct extends pt{constructor(t=!1,e){super(n[At(464)],t,e)}[St(447)](){return St(478)}async renderAdElement(t,e){const n=St,r=document[n(477)](t[n(436)]);if(!r)return;const s=document[n(437)](n(457));s[n(465)]=n(432);const o=t[n(438)],i=r[n(446)]||r;if(o)s[n(433)][n(476)]=n(443),s[n(433)][n(440)]=String(o);else{const e=t.config,r={width:e?.width,height:e?.[n(440)]},{width:o,height:a}=this[n(468)](i,r,{debug:this[n(441)]});s[n(433)].width=o,s[n(433)][n(440)]=a}const a=document[n(437)](n(457));a[n(465)]=n(439),a[n(433)][n(434)]=It.createTextAdStyles(!1),It.setTextAdContent(a,e);const c=t[n(466)]?.[n(459)];c&&typeof c===n(455)&&(a[n(433)].display=n(474),a[n(433)][n(463)]=String(c),a.style[n(473)]=n(431),a[n(433)][n(435)]=n(428)),s[n(461)](a),tt.addClickEventForRenderer(s,e,t,()=>this[n(471)](),this[n(441)],n(449)),r[n(462)]="",r[n(461)](s),this[n(441)]&&console[n(442)](n(430)+e[n(448)])}async[St(454)](t,e){const n=St,r=document[n(477)](t[n(436)]);if(!r)throw new Error(n(460)+t.containerId);const s=this[n(471)](),o={autoSlideInterval:(t[n(466)]?.slideInterval||5e3)/1e3,...t[n(466)],optimizedHeight:t[n(438)],aspectRatio:t[n(451)]},i=Et[n(475)](t,e,o,s,this[n(441)]);i&&(r.innerHTML="",r[n(461)](i),this[n(441)]&&console[n(442)](n(472)+t.id+n(456)+e[n(445)]+" ads"))}}function Tt(){const t=["warn","48202uMAarx","loop","textContent"," !important;\n }\n video::-webkit-media-controls-volume-slider {\n display: ","getDefaultHeight","autoplay","mouseenter","height","Video fallback","contain","adstage-video-default-controls",", loop: ","scale(1.1)","hideControls","alt","116GAjrKv","img","156exWgnR","objectFit","2502egjOsk","Video","cssText","🎬 Single video rendered for VIDEO slot: ",'\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 ',"40ZaKmLO","imageUrl","208928JVHKMD","relative"," !important;\n }\n video::-webkit-media-controls-timeline {\n display: ","addClickEventForRenderer","canplay",'\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 ',"🎬 Trying muted autoplay fallback...","\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 ","getElementById","VIEWABLE","hideProgressBar","debug","hideCurrentTime","🎬 Auto-play was prevented:","hideVolumeSlider","VIDEO","🎬 Video data loaded, attempting autoplay...","100%","45oNbfgq","controls","renderVideoElementDirect","disabled (default)","paused","containerId","createElement","227IPJoJB","addEventListener","🎬 Autoplay completely failed:","hideRemainingTime","innerHTML","videoUrl","1316ElDVdO","renderMultipleAds","width"," !important;\n }\n video::-webkit-media-controls-fullscreen-button {\n display: ","🎬 Video element created for ad: ","_id","error","360px",", muted: ","muted","adstage-video-container","🎬 User explicitly enabled controls, overriding default","preload","\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 ","createEventTrackingCallback","click","config","🎬 Video controls setting:","setAttribute","Click to unmute","🎬 Video config received:","src","log","stopPropagation","hideFullscreenButton","head","5628558KmcEZS","6417gnDiSh","metadata","button","catch","\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 ","none","block","\n pointer-events: none;\n ","style","appendChild","className","Click to mute","customControls"," !important;\n }\n video::-webkit-media-controls-current-time-display {\n display: ","length","unmuted","Video load failed:","mouseleave","video","title","background","77Muvszn","transform","adstage-video-mute-button","loadeddata","138450JQBtkg","hidePlayButton","🔊 Video mute toggled: ","position","Video thumbnail"," !important;\n }\n ","Container not found: ","loadedmetadata","scale(1)"," !important;\n }\n video::-webkit-media-controls-mute-button {\n display: ","\n video::-webkit-media-controls-play-button {\n display: "];return(Tt=function(){return t})()}function _t(t,e){const n=Tt();return(_t=function(t,e){return n[t-=345]})(t,e)}const Rt=_t;!function(t){const e=_t,n=t();for(;;)try{if(151963===parseInt(e(465))/1*(parseInt(e(429))/2)+-parseInt(e(433))/3*(parseInt(e(350))/4)+parseInt(e(458))/5*(parseInt(e(402))/6)+-parseInt(e(398))/7*(parseInt(e(440))/8)+parseInt(e(377))/9*(parseInt(e(438))/10)+parseInt(e(414))/11*(parseInt(e(431))/12)+parseInt(e(376))/13)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(Tt);class Lt extends pt{constructor(t=!1,e){super(n[_t(455)],t,e)}[Rt(418)](){return Rt(357)}async renderAdElement(t,e){const n=Rt,r=document[n(448)](t[n(463)]);if(!r)return;const s=document[n(464)]("div");s[n(387)]=n(360),s[n(385)].cssText="\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(460)](s,e,t),r.innerHTML="",r[n(386)](s),this.debug&&console.log("🎬 Single video ad rendered: "+e[n(355)])}async[Rt(351)](t,e){const n=Rt,r=document[n(448)](t[n(463)]);if(!r)throw new Error(n(408)+t[n(463)]);if(e[n(391)]>0){const s=e[0],o=document.createElement("div");o[n(387)]=n(360),o[n(385)][n(435)]=n(381),this[n(460)](o,s,t),r[n(348)]="",r[n(386)](o);const i=this[n(364)]();setTimeout(()=>{const e=n;i(s[e(355)],t.id,c[e(449)])},100),this[n(451)]&&console[n(372)](n(436)+t.id+" ("+s[n(355)]+")")}else this.debug&&console[n(413)]("⚠️ No video advertisements available for slot: "+t.id)}[Rt(460)](t,e,n){const r=Rt;t[r(385)][r(405)]=r(441);const s=document[r(464)](r(395));s[r(385)][r(352)]="100%",s[r(385)].height=r(457),s[r(385)].objectFit=r(423),s[r(362)]=r(378);const o=n[r(366)];if(this.debug&&console[r(372)](r(370),o),s[r(459)]=!1,s[r(419)]=!1!==o?.[r(419)],s[r(359)]=!0,s[r(415)]=!1!==o?.loop,this[r(451)]&&console[r(372)]("🎬 Final video settings:",{autoplay:s.autoplay,muted:s.muted,loop:s.loop,controls:s.controls}),!1!==o?.playsinline&&s[r(368)]("playsinline",""),!0===o?.[r(459)]&&(s[r(459)]=!0,this[r(451)]&&console[r(372)](r(361))),o?.hideControls)s[r(459)]=!1,s.style[r(435)]+=r(384);else if(o?.[r(389)]){if(s[r(459)]){const t=document[r(464)](r(385));t[r(416)]=r(412)+(o[r(389)][r(403)]?r(382):r(383))+r(442)+(o[r(389)][r(450)]?r(382):r(383))+r(390)+(o[r(389)][r(452)]?"none":"block")+" !important;\n }\n video::-webkit-media-controls-time-remaining-display {\n display: "+(o[r(389)][r(347)]?r(382):r(383))+r(417)+(o[r(389)][r(454)]?r(382):r(383))+r(411)+(o.customControls.hideMuteButton?r(382):r(383))+r(353)+(o[r(389)][r(374)]?"none":r(383))+r(407),document[r(375)][r(386)](t)}}else if(s[r(459)]){const t=document[r(464)](r(385));t.id="adstage-video-default-controls",t[r(416)]=r(447),!document.getElementById(r(424))&&document.head.appendChild(t)}this.debug&&console.log(r(367),s[r(459)]?"enabled":r(461));const i=document.createElement(r(379));i[r(387)]=r(400),i[r(385)].cssText=r(363),o?.[r(427)]&&(i[r(385)].display=r(382));const a=()=>{const t=r,e=t(437),n=t(445);i[t(348)]=s[t(359)]?e:n,i[t(396)]=s[t(359)]?t(369):t(388)};if(a(),i[r(345)](r(365),t=>{const e=r;t[e(373)](),s.muted=!s[e(359)],a(),this[e(451)]&&console[e(372)](e(404)+(s.muted?e(359):e(392)))}),i[r(345)](r(420),()=>{const t=r;i[t(385)][t(397)]="rgba(0, 0, 0, 0.9)",i.style[t(399)]=t(426)}),i.addEventListener(r(394),()=>{const t=r;i[t(385)].background="rgba(0, 0, 0, 0.7)",i[t(385)][t(399)]=t(410)}),e.videoUrl){s[r(371)]=e[r(349)];const t=()=>{const t=r;s[t(419)]&&s[t(359)]&&s[t(462)]&&s.play()[t(380)](e=>{const n=t;this[n(451)]&&(console[n(413)](n(453),e),console.warn(n(446))),s.muted=!0,s.play().catch(t=>{const e=n;this[e(451)]&&console[e(356)](e(346),t)})})};s[r(345)](r(409),()=>{const e=r;this[e(451)]&&console[e(372)]("🎬 Video metadata loaded, attempting autoplay..."),t()}),s[r(345)](r(444),()=>{const e=r;this[e(451)]&&console[e(372)]("🎬 Video can play, attempting autoplay..."),t()}),s[r(345)](r(401),()=>{const e=r;this[e(451)]&&console.log(e(456)),t()}),setTimeout(()=>{const e=r;this[e(451)]&&console[e(372)]("🎬 Initial autoplay attempt after timeout..."),t()},100)}else if(e[r(439)]){const n=document[r(464)](r(430));return n[r(371)]=e[r(439)],n[r(385)][r(352)]="100%",n[r(385)][r(421)]=r(457),n[r(385)][r(432)]=r(423),n[r(428)]=e.title||r(406),void t[r(386)](n)}tt.addClickEventForRenderer(s,e,n,()=>this[r(364)](),this[r(451)],r(434)),s.addEventListener(r(356),s=>{const o=r;if(console[o(356)](o(393),s),e.imageUrl){const r=document[o(464)](o(430));r[o(371)]=e[o(439)],r.style[o(352)]=o(457),r[o(385)][o(421)]=o(457),r.style[o(432)]=o(423),r[o(428)]=e[o(396)]||"Video thumbnail",tt[o(443)](r,e,n,()=>this[o(364)](),this[o(451)],o(422)),t[o(348)]="",t.appendChild(r)}}),t[r(386)](s),t[r(386)](i),this[r(451)]&&console[r(372)](r(354)+e[r(355)]+" (autoplay: "+s[r(419)]+r(358)+s.muted+r(425)+s[r(415)]+")")}}function Pt(t,e){const n=Nt();return(Pt=function(t,e){return n[t-=335]})(t,e)}const Dt=Pt;function Nt(){const t=["5806250itrxUi","div","Learn More","): ","\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 ","_id","115472VWJhLT","src","imageUrl","length","warn","img","\n width: 100%;\n height: 120px;\n margin-bottom: 12px;\n border-radius: 6px;\n overflow: hidden;\n background: #f3f4f6;\n ","innerHTML","linkUrl","appendChild","\n margin: 0 0 12px 0;\n font-size: 14px;\n color: #6b7280;\n line-height: 1.4;\n flex: 1;\n ","cssText","431229TdNvLv","35248LDRxye","Native Advertisement","backgroundColor","addEventListener","renderAdElement","title","button","log","36745884ELTcvA","2803170SkIWSg","getDefaultHeight","\n margin: 0 0 8px 0;\n font-size: 16px;\n font-weight: 600;\n color: #111827;\n line-height: 1.3;\n ","_blank","mouseenter","8MrqsAm","6880710DvQuNN","open","getElementById","style","alt","200px","textContent","🏠 Native ad rendered (first of ","adstage-ad adstage-native-ad","7WhrIoB","mouseleave","#3b82f6","NATIVE","className","#2563eb","createElement","debug"];return(Nt=function(){return t})()}!function(t){const e=Pt,n=t();for(;;)try{if(710424===parseInt(e(371))/1+-parseInt(e(380))/2+parseInt(e(370))/3*(parseInt(e(385))/4)+-parseInt(e(352))/5+parseInt(e(335))/6*(-parseInt(e(344))/7)+parseInt(e(358))/8+parseInt(e(379))/9)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(Nt);class Bt extends pt{constructor(t=!1,e){super(n[Pt(347)],t,e)}[Dt(381)](){return Dt(340)}async[Dt(375)](t,e){const n=Dt,r=document[n(337)](t.containerId);if(!r)return;const s=document.createElement(n(353));if(s[n(348)]=n(343),s[n(338)][n(369)]="\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[n(376)]){const t=document[n(350)]("h3");t.textContent=e[n(376)],t[n(338)][n(369)]=n(382),s.appendChild(t)}if(e[n(341)]){const t=document[n(350)]("p");t[n(341)]=e[n(341)],t[n(338)][n(369)]=n(368),s[n(367)](t)}if(e[n(360)]){const t=document.createElement(n(353));t[n(338)].cssText=n(364);const r=document[n(350)](n(363));r[n(359)]=e[n(360)],r[n(339)]=e[n(376)]||n(372),r.style[n(369)]="\n width: 100%;\n height: 100%;\n object-fit: cover;\n ",t.appendChild(r),s[n(367)](t)}if(e.linkUrl){const t=document[n(350)](n(377));t[n(341)]=n(354),t[n(338)][n(369)]=n(356),t.addEventListener("click",()=>{const t=n;this.advertisementEventTracker&&console[t(378)]("Native click tracked for ad: "+e[t(357)]),window[t(336)](e[t(366)],t(383))}),t.addEventListener(n(384),()=>{const e=n;t[e(338)][e(373)]=e(349)}),t[n(374)](n(345),()=>{const e=n;t.style.backgroundColor=e(346)}),s[n(367)](t)}r[n(365)]="",r[n(367)](s),this[n(351)]&&console[n(378)]("🏠 Single native ad rendered: "+e[n(357)])}async renderMultipleAds(t,e){const n=Dt;e[n(361)]>0?(await this.renderAdElement(t,e[0]),this[n(351)]&&console[n(378)](n(342)+e[n(361)]+n(355)+t.id)):this[n(351)]&&console[n(362)]("⚠️ No native advertisements available for slot: "+t.id)}}function Ot(t,e){const n=Ut();return(Ot=function(t,e){return n[t-=176]})(t,e)}const Mt=Ot;function Ut(){const t=["closeInterstitial","963178PeRuZt","createElement","\n width: 100%;\n padding: 12px 24px;\n background: #3b82f6;\n color: white;\n border: none;\n border-radius: 8px;\n font-size: 16px;\n font-weight: 600;\n cursor: pointer;\n transition: background-color 0.2s;\n ","fadeOut 0.3s ease-out forwards","cssText","mouseenter","⚠️ No interstitial advertisements available for slot: ","715285VTPZbL","target","400px","renderMultipleAds","adstage-interstitial-overlay","linkUrl","1wGhowB","7274533pISPIz","🖼️ Interstitial ad closed","body","addEventListener","\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 ","mouseleave","adstage-interstitial-content","4609286YeiBsW","advertisementEventTracker","232929LUaDSf","button","): ","INTERSTITIAL","removeChild","src","containerId","appendChild","log","backgroundColor","120EHOtPi","Escape","click","1837065KUjVbA","className","\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 ","\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 ","head","div","70DtsJDc","open","title","3971500OGLBwV","length","textContent","#6b7280","\n margin: 0 0 20px 0;\n font-size: 16px;\n color: #6b7280;\n line-height: 1.5;\n ","#374151","warn","style","debug","key","getElementById","imageUrl","#2563eb","adstage-interstitial-styles","Interstitial click tracked for ad: ","color","renderAdElement","keydown","_blank","_id","42kvflPg","animation"];return(Ut=function(){return t})()}!function(t){const e=Ot,n=t();for(;;)try{if(605418===parseInt(e(188))/1*(parseInt(e(243))/2)+parseInt(e(211))/3+-parseInt(e(220))/4+parseInt(e(182))/5*(-parseInt(e(240))/6)+-parseInt(e(189))/7+-parseInt(e(208))/8*(parseInt(e(198))/9)+-parseInt(e(217))/10*(-parseInt(e(196))/11))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(Ut);class zt extends pt{constructor(t=!1,e){super(n[Ot(201)],t,e)}getDefaultHeight(){return Ot(184)}async[Mt(236)](t,e){const n=Mt;if(!document[n(230)](t[n(204)]))return;const r=document.createElement(n(216));r[n(212)]=n(186),r.style[n(179)]="\n position: fixed;\n top: 0;\n left: 0;\n width: 100vw;\n height: 100vh;\n background: rgba(0, 0, 0, 0.8);\n display: flex;\n align-items: center;\n justify-content: center;\n z-index: 10000;\n animation: fadeIn 0.3s ease-out;\n ";const s=document[n(176)]("div");s.className=n(195),s[n(227)][n(179)]=n(213);const o=document.createElement(n(199));if(o.innerHTML="×",o.style[n(179)]=n(214),o.addEventListener(n(210),()=>{this.closeInterstitial(r)}),o[n(192)]("mouseenter",()=>{const t=n;o[t(227)].backgroundColor="#e5e7eb",o.style[t(235)]=t(225)}),o[n(192)]("mouseleave",()=>{const t=n;o.style[t(207)]="#f3f4f6",o.style[t(235)]=t(223)}),e[n(231)]){const t=document[n(176)]("img");t[n(203)]=e[n(231)],t.alt=e[n(219)]||"Interstitial Advertisement",t[n(227)].cssText="\n width: 100%;\n max-height: 300px;\n object-fit: cover;\n border-radius: 8px;\n margin-bottom: 16px;\n ",s[n(205)](t)}if(e.title){const t=document.createElement("h2");t[n(222)]=e[n(219)],t[n(227)][n(179)]="\n margin: 0 0 12px 0;\n font-size: 24px;\n font-weight: 700;\n color: #111827;\n line-height: 1.3;\n ",s[n(205)](t)}if(e[n(222)]){const t=document[n(176)]("p");t.textContent=e.textContent,t.style[n(179)]=n(224),s[n(205)](t)}if(e[n(187)]){const t=document[n(176)](n(199));t[n(222)]="Get Started",t[n(227)][n(179)]=n(177),t[n(192)](n(210),()=>{const t=n;this[t(197)]&&console[t(206)](t(234)+e[t(239)]),window[t(218)](e[t(187)],t(238)),this[t(242)](r)}),t[n(192)](n(180),()=>{const e=n;t.style[e(207)]=e(232)}),t.addEventListener(n(194),()=>{const e=n;t[e(227)][e(207)]="#3b82f6"}),s[n(205)](t)}const i=t=>{const e=n;t[e(229)]===e(209)&&(this[e(242)](r),document.removeEventListener(e(237),i))};if(document.addEventListener(n(237),i),r[n(192)](n(210),t=>{t[n(183)]===r&&this.closeInterstitial(r)}),!document[n(230)](n(233))){const t=document[n(176)]("style");t.id=n(233),t.textContent=n(193),document[n(215)].appendChild(t)}s[n(205)](o),r[n(205)](s),document[n(191)][n(205)](r),this[n(228)]&&console[n(206)]("🖼️ Interstitial ad rendered: "+e._id)}async[Mt(185)](t,e){const n=Mt;e[n(221)]>0?(await this[n(236)](t,e[0]),this.debug&&console[n(206)]("🖼️ Interstitial ad rendered (first of "+e[n(221)]+n(200)+t.id)):this[n(228)]&&console[n(226)](n(181)+t.id)}[Mt(242)](t){const e=Mt;t[e(227)][e(241)]=e(178),setTimeout(()=>{const n=e;t.parentNode&&t.parentNode[n(202)](t)},300),this.debug&&console[e(206)](e(190))}}const Vt=Ft;function Ft(t,e){const n=jt();return(Ft=function(t,e){return n[t-=153]})(t,e)}function jt(){const t=["adstage-ad adstage-","width","div","advertisement","renderers","setAttribute","backgroundColor","naturalHeight","display","padding","src","log","debug","renderAd"," renderers","Failed to load image: ","3625902Lsqwor","1px dashed #ccc","BANNER","set","height","6346872iyDmiV","get","renderFallback","188219tEnoHI"," Ad","INTERSTITIAL","3VPqHbP","20JVFlPs","No advertisement to render","1236568tYCoND","964115EwyjYR","createAdElement","optimizeContainerForBannerAds","onerror","NATIVE","405120PYVkxI","border","[AdRenderer] ","VIDEO","8px","calculateOptimalContainerSize","renderAdElement","#f9f9f9","className","⚠️ Container optimization is only supported for BANNER ads, got: ","100%","🏭 AdRenderer factory initialized with ","style","size","cover","createElement","TEXT","getRenderer","calculateAdSize","No renderer found for ad type: ","block","createPlaceholder","isLoaded","initializeRenderers","advertisementEventTracker","objectFit","imageUrl","2334066sTvwXQ","getDefaultHeightForAdType","config","warn","textContent","appendChild","data-adstage-slot-id","adType","renderOptimizedBannerImage","renderAdSlider","getDefaultHeight","toLowerCase"];return(jt=function(){return t})()}!function(t){const e=Ft,n=t();for(;;)try{if(685199===parseInt(e(218))/1+parseInt(e(224))/2*(-parseInt(e(221))/3)+parseInt(e(222))/4*(parseInt(e(225))/5)+parseInt(e(182))/6+parseInt(e(210))/7+-parseInt(e(155))/8+-parseInt(e(215))/9)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(jt);class Kt{constructor(t=!1,e){const n=Ft;this[n(198)]=new Map,this[n(206)]=t,this.advertisementEventTracker=e||null,this[n(178)]()}[Vt(178)](){const t=Vt;this[t(198)].set(n[t(212)],new mt(this[t(206)],this.advertisementEventTracker)),this[t(198)].set(n[t(171)],new Ct(this.debug,this[t(179)])),this[t(198)].set(n[t(158)],new Lt(this[t(206)],this[t(179)])),this[t(198)][t(213)](n[t(154)],new Bt(this.debug,this[t(179)])),this[t(198)][t(213)](n[t(220)],new zt(this.debug,this[t(179)])),this.debug&&console[t(205)](t(166)+this[t(198)][t(168)]+t(208))}[Vt(226)](t,e){const r=Vt,s=this.getRenderer(t[r(189)]),o=document[r(170)](r(196));o[r(163)]=r(194)+String(t[r(189)])[r(193)](),o[r(199)]("data-adstage-ad-id",e._id),o[r(199)](r(188),t.id);const{width:i,height:a}=s.calculateAdSize(o,t[r(184)]||{},e);switch(o[r(167)][r(195)]=i,o[r(167)].height=a,o[r(167)][r(202)]=r(175),t.adType){case n[r(212)]:if(e[r(181)]){const t=document[r(170)]("img");t[r(204)]=e.imageUrl,t[r(167)][r(195)]=r(165),t[r(167)][r(214)]=r(165),t[r(167)][r(180)]=r(169),o[r(187)](t)}break;case n[r(158)]:if(e.videoUrl){const t=document.createElement("video");t[r(204)]=e.videoUrl,t[r(167)][r(195)]=r(165),t.style[r(214)]=r(165),o[r(187)](t)}break;case n.TEXT:if(e[r(186)]){const t=document[r(170)]("div");t[r(186)]=e[r(186)]||"",t[r(167)][r(203)]=r(159),o.appendChild(t)}break;default:o[r(167)][r(156)]=r(211),o.style[r(200)]=r(162),o[r(186)]=t.adType+r(219)}return o}[Vt(172)](t){const e=Vt,n=this[e(198)][e(216)](t);if(!n)throw new Error(e(174)+t);return n}[Vt(176)](t,e,n,r,s){this[Vt(172)](n).createPlaceholder(t,e,r,s)}async[Vt(227)](t,e){const r=Vt;if(t[r(189)]!==n[r(212)])return void(this.debug&&console[r(185)](r(164)+t[r(189)]));const s=this[r(172)](n.BANNER);await s[r(227)](t,e)}async[Vt(191)](t,e){const n=Vt,r=this[n(172)](t[n(189)]);await r.renderMultipleAds(t,e)}async[Vt(207)](t){const e=Vt;if(!t[e(197)])throw new Error(e(223));const n=this[e(172)](t[e(189)]);await n[e(161)](t,t[e(197)]),t[e(177)]=!0}async renderAdElement(t,e){const n=Vt,r=this[n(172)](t[n(189)]);await r.renderAdElement(t,e)}[Vt(217)](t){const e=Vt;this[e(172)](t[e(189)])[e(217)](t)}[Vt(183)](t){const e=Vt;return this[e(172)](t)[e(192)]()}calculateAdSize(t,e,n,r){const s=Vt;return this[s(172)](e)[s(173)](t,n,r)}loadImageDimensions(t){return new Promise((e,n)=>{const r=Ft,s=new Image;s.onload=()=>{const t=Ft;e({width:s.naturalWidth,height:s[t(201)]})},s[r(153)]=()=>{n(new Error(r(209)+t))},s.src=t})}async[Vt(190)](t,e,r){const s=Vt;if(r[s(189)]!==n[s(212)])throw new Error("renderOptimizedBannerImage is only supported for BANNER ads");const o=this[s(172)](n.BANNER);return await o[s(190)](t,e,r)}async calculateOptimalContainerSize(t,e,r){const s=Vt;if(r!==n[s(212)]){const t=this[s(172)](r);return{width:s(165),height:t[s(192)](),aspectRatio:16/9}}const o=this[s(172)](n.BANNER);return await o[s(160)](t,e)}log(t,...e){const n=Vt;this[n(206)]&&console[n(205)](n(157)+t,...e)}}function Ht(){const t=["innerHTML","length","clear","advertisement","interstitial","isReady","loadAdContentInBackground","toString","BANNER","list","width","trackAdvertisementEvent","✅ Ad loaded for slot: ","log","getAttribute","observe","autoSlide","7322371ZXWjsC","adRenderer","2348yTvPxC","handleRemovedElement","Failed to refresh ad slot: ","renderAd","append","getSlotById","controls","50tEQIwD","hideControls","default"," ads)","getAllSlots","optimizeContainerForBannerAds","renderAdSlider","_config","debug","VIEWABLE","❌ Failed to track viewable impression:","slots","getConfig","startSimpleViewabilityTracking","getElementById","adType","1674563ocpedT","GET","set","80696nmYUas","nodeType","🔄 Ad slot refreshed: ","[data-adstage-slot-id]","createAd","language","fetchAdData","detail","auto","setAttribute","📊 Fetched specific ad with ID: ","6735612JaXawI","🗑️ Ad slot destroyed: ","createAdWithRetry","removedNodes"," removed","error","setupAutoCleanup","ensureReady","now","values","refreshAdSlot","forEach",". Retrying in ","delete"," (element found)"," attempts: ","create","INTERSTITIAL","1448964kKLjIF","undefined","renderFallback","adId","advertisements","createAdInternal","ms... (attempt ","auto-","json","muted","customControls","TEXT","🎯 Ads module initialized (sync mode) with auto-cleanup","advertisementEventTracker","VIDEO","getBaseUrl","🚫 Advertisement not found with ID: "," ads automatically","video","data-adstage-slot-id","deviceType","531yANyOj","autoplay","autoDestroy","Container not found: ","945ljPtSQ","warn","2092wyTGlK","_isReady","🎯 Simple viewability tracking started for slot: ","🗑️ Ads module destroyed","NATIVE","handleViewableEvent","Auto-cleanup failed for slot ","destroy","body","containerId","apiKey","광고 생성 중 오류 발생:","ELEMENT_NODE","_id","native","string","100%"," ads for type: ","renderAdElement","API key not configured","status","country","text","get","style","New advertisement viewable tracked for slot:","adstage-","from","335GKvlkl","loop","❌ Failed to find element for viewability tracking: ","mutationObserver","📊 Advertisement event tracking enabled for slot: ","height","onClick","Failed to fetch ad data: ","destroyModule","disconnect","random","config","substr","viewabilityTracker"];return(Ht=function(){return t})()}const Wt=Gt;function Gt(t,e){const n=Ht();return(Gt=function(t,e){return n[t-=139]})(t,e)}!function(t){const e=Gt,n=t();for(;;)try{if(666008===parseInt(e(222))/1*(-parseInt(e(228))/2)+-parseInt(e(201))/3+-parseInt(e(146))/4*(parseInt(e(256))/5)+-parseInt(e(183))/6+parseInt(e(144))/7+parseInt(e(172))/8*(parseInt(e(226))/9)+parseInt(e(153))/10*(parseInt(e(169))/11))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(Ht);class Jt{constructor(){const t=Gt;this._isReady=!1,this[t(160)]=null,this[t(164)]=new Map,this[t(214)]=null,this[t(145)]=null,this[t(259)]=null}init(t){const e=Gt;this[e(160)]=t,this[e(214)]=new B(G[e(216)](),t.apiKey,t.debug||!1,this[e(164)]),this.adRenderer=new Kt(t[e(161)]||!1,this[e(214)]),this[e(189)](),this[e(229)]=!0,t[e(161)]&&console.log(e(213))}[Wt(275)](){return this[Wt(229)]}[Wt(165)](){return this[Wt(160)]}banner(t,e){const r=Wt;this.ensureReady();const s={width:e?.[r(280)]||"100%",height:e?.[r(261)]||r(180),autoSlide:e?.[r(143)]||!1,slideInterval:e?.slideInterval||5e3,onClick:e?.[r(262)],adId:e?.[r(204)],language:e?.[r(177)],deviceType:e?.deviceType,country:e?.[r(249)]};return this[r(176)](t,n[r(278)],s)}[Wt(250)](t,e){const r=Wt;this[r(190)]();const s={maxLines:e?.maxLines||3,style:e?.[r(252)]||r(155),onClick:e?.[r(262)],adId:e?.[r(204)],language:e?.[r(177)],deviceType:e?.[r(221)],country:e?.[r(249)]};return this.createAd(t,n[r(212)],s)}[Wt(219)](t,e){const r=Wt;this[r(190)]();const s={width:e?.[r(280)]||640,height:e?.height||360,autoplay:void 0===e?.[r(223)]||e.autoplay,muted:void 0===e?.[r(210)]||e[r(210)],loop:void 0===e?.loop||e[r(257)],playsinline:!1!==e?.playsinline,controls:void 0!==e?.controls&&e[r(152)],hideControls:e?.[r(154)]||!1,customControls:e?.[r(211)],autoSlide:!1,maxAds:1,onClick:e?.[r(262)],...e?.[r(204)]&&{adId:e.adId}};return this[r(176)](t,n[r(215)],s)}[Wt(242)](t,e){const r=Wt;return this[r(190)](),this[r(176)](t,n[r(232)],e||{})}[Wt(274)](t,e){const r=Wt;return this.ensureReady(),this[r(176)](t,n[r(200)],e||{})}refresh(t){const e=Wt;this[e(190)]();const n=this[e(164)].get(t);if(!n)throw new Error("Ad slot not found: "+t);this[e(193)](n),this[e(160)]?.[e(161)]&&console[e(140)](e(174)+t)}[Wt(235)](t){const e=Wt;this[e(190)]();const n=this[e(164)].get(t);if(!n)return void(this[e(160)]?.[e(161)]&&console.log("🔍 Ad slot already cleaned up: "+t));n[e(269)]&&n[e(269)].destroy();const r=document[e(167)](n[e(237)]);r&&(r[e(270)]=""),this.slots[e(196)](t),this[e(160)]?.[e(161)]&&console[e(140)](e(184)+t)}[Wt(157)](){const t=Wt;return this.ensureReady(),Array[t(255)](this[t(164)][t(192)]())}[Wt(151)](t){const e=Wt;return this[e(190)](),this.slots[e(251)](t)||null}createAd(t,e,n){const r=Wt;if(!this[r(160)]?.[r(238)])throw new Error(r(247));const s=r(254)+e+"-"+Date[r(191)]()+"-"+Math[r(266)]()[r(277)](36)[r(268)](2,9);return this[r(185)](t,e,n,s,0),s}async[Wt(185)](t,e,n,r,s){const o=Wt,i=[0,50,100,200,500];let a,c=null;if(typeof t===o(243)){if(a=t,c=document[o(167)](t),!c)return s<4?(this._config?.debug&&console[o(227)](o(225)+t+o(195)+i[s+1]+o(207)+(s+1)+"/5)"),void setTimeout(()=>{this[o(185)](t,e,n,r,s+1)},i[s+1])):void console[o(188)]("Container not found after 5"+o(198)+t)}else c=t,a=c.id||o(208)+r,!c.id&&(c.id=a);try{this.createAdInternal(a,e,n,r,c)}catch(t){console[o(188)](o(239),t)}}[Wt(206)](t,e,r,s,o){const i=Wt;o[i(181)]("data-adstage-slot-id",s),this[i(145)]?.createPlaceholder(o,s,e,r,this._config);const a={id:s,containerId:t,adType:e,width:r[i(280)]||i(244),height:r[i(261)]||(e===n[i(212)]?i(180):250),isLoaded:!1,isVisible:!1,refreshRate:0,lazyLoad:!1,targeting:{},advertisement:void 0,config:{type:e,...r},load:async()=>this[i(178)](e,r).then(t=>t[0]||null),render:t=>this[i(145)]?.[i(246)](a,t),refresh:async()=>this[i(193)](a),destroy:()=>this[i(235)](s)};this.slots[i(171)](s,a),this[i(276)](a),this[i(214)]&&this._config?.[i(161)]&&console[i(140)](i(260)+s)}async[Wt(276)](t){const e=Wt;try{const r=await this.fetchAdData(t[e(168)],t[e(267)]);if(!r||0===r[e(271)])return void this[e(145)]?.renderFallback(t);t[e(168)]===n.BANNER&&r[e(271)]>0&&await(this[e(145)]?.[e(158)](t,r)),r[e(271)]>1||t[e(267)]?.autoSlide?(await(this.adRenderer?.[e(159)](t,r)),this[e(160)]?.[e(161)]&&console[e(140)]("🎠 Slider will handle VIEWABLE events for "+r[e(271)]+e(218))):(t[e(273)]=r[0],await(this[e(145)]?.[e(246)](t,r[0])),this[e(166)](t,r[0])),t.isLoaded=!0,this[e(160)]?.[e(161)]&&console.log(e(139)+t.id+" ("+r.length+e(156))}catch(n){console.error("❌ Failed to load ad for slot: "+t.id,n),this[e(145)]?.[e(203)](t)}}[Wt(166)](t,e){const n=(r=0)=>{const s=Gt,o=document[s(167)](t.id);if(!o)return void(r<5?(setTimeout(()=>n(r+1),300),this[s(160)]?.[s(161)]&&console[s(140)]("🔄 Retrying viewability tracking for slot: "+t.id+" (attempt "+(r+1)+")")):console.warn(s(258)+t.id));const i=new z(o,async()=>{const n=s;await this[n(233)](e,t)});t[s(269)]=i,this[s(160)]?.debug&&console.log(s(230)+t.id+s(197))};n()}async[Wt(233)](t,e){const n=Wt;try{this[n(214)]&&(await this[n(214)][n(281)](t[n(241)],e.id,c[n(162)]),this[n(160)]?.[n(161)]&&console[n(140)]("✅ Simple viewable impression tracked for ad "+t[n(241)]))}catch(t){console.error(n(163),t)}}async[Wt(178)](t,e){const n=Wt;if(!this._config?.[n(238)])throw new Error("API key not configured");if(e[n(204)]){const t=""+G[n(205)][n(179)](e[n(204)]),r=await fetch(t,{method:n(170),headers:R[n(199)](this[n(160)].apiKey)});if(!r.ok){if(404===r.status)return console[n(227)](n(217)+e[n(204)]),[];throw new Error(n(263)+r[n(248)])}const s=await r[n(209)]();return this[n(160)]?.[n(161)]&&console[n(140)](n(182)+e[n(204)],s),[s]}const r=new URLSearchParams;r[n(150)]("adType",t),e[n(177)]&&r[n(150)](n(177),e[n(177)]),e[n(221)]&&r.append("deviceType",e[n(221)]),e[n(249)]&&r[n(150)](n(249),e[n(249)]);const s=G[n(205)][n(279)]()+"?"+r[n(277)](),o=await fetch(s,{method:"GET",headers:R.create(this[n(160)][n(238)])});if(!o.ok)throw new Error(n(263)+o[n(248)]);const i=(await o.json())[n(205)]||[];return this[n(160)]?.[n(161)]&&console[n(140)]("📊 Fetched "+i[n(271)]+n(245)+t+", filters:",{language:e[n(177)],deviceType:e[n(221)],country:e.country}),i}async[Wt(193)](t){const e=Wt;try{const n=await this[e(178)](t[e(168)],t[e(267)]||{});n&&n[e(271)]>0&&(t.advertisement=n[0],await(this[e(145)]?.[e(149)](t)),this[e(214)]&&console[e(140)](e(253),t.id))}catch(n){console.error(e(148)+t.id,n)}}[Wt(190)](){if(!this[Wt(229)])throw new Error("Ads module not initialized. Call AdStage.init() first.")}[Wt(189)](){const t=Wt;typeof window!==t(202)&&typeof document!==t(202)&&(this.mutationObserver&&this[t(259)][t(265)](),this.mutationObserver=new MutationObserver(e=>{const n=t;e[n(194)](t=>{const e=n;t[e(186)].forEach(t=>{const n=e;t[n(173)]===Node[n(240)]&&this[n(147)](t)})})}),this.mutationObserver[t(142)](document[t(236)],{childList:!0,subtree:!0}),this[t(160)]?.debug&&console.log("🔍 Auto-cleanup MutationObserver enabled"))}[Wt(147)](t){const e=Wt,n=t.getAttribute(e(220));if(n)return void this[e(224)](n);t.querySelectorAll(e(175)).forEach(t=>{const n=e,r=t[n(141)](n(220));r&&this[n(224)](r)})}autoDestroy(t){const e=Wt,n=this.slots[e(251)](t);if(n)try{n[e(269)]&&n[e(269)][e(235)](),this.slots[e(196)](t),this[e(160)]?.[e(161)]&&console[e(140)]("🧹 Auto-cleanup: slot "+t+e(187))}catch(n){this[e(160)]?.debug&&console.warn(e(234)+t+":",n)}}[Wt(264)](){const t=Wt,e=this._config?.[t(161)];this[t(259)]&&(this[t(259)][t(265)](),this[t(259)]=null),this.slots[t(272)](),this[t(214)]=null,this[t(145)]=null,this[t(229)]=!1,this._config=null,e&&console.log(t(231))}}var qt=Xt;function Xt(t,e){var n=Yt();return(Xt=function(t,e){return n[t-=392]})(t,e)}function Yt(){var t=["625167XrQdhk","getOrganizationInfo","4456364dMgRqT","_config","isDebugMode","70mPXGoJ","7530564sxompZ","Config module not initialized","🔄 Config updated","89662pHAQuK","35413752rfJRvw","_organizationInfo","_isReady","setBaseUrl","getApiEndpoint","apiKey","49ckSDfR","1031512scAWIl","getEnabledModules","5wqNLvt","isModuleEnabled","debug","baseUrl","getConfig","development","init","90lYSxpl","82911KjEFxz","log","create","includes"];return(Yt=function(){return t})()}!function(t){for(var e=Xt,n=t();;)try{if(709602===parseInt(e(405))/1+parseInt(e(418))/2*(-parseInt(e(404))/3)+-parseInt(e(411))/4+-parseInt(e(397))/5*(-parseInt(e(415))/6)+-parseInt(e(394))/7*(parseInt(e(395))/8)+parseInt(e(409))/9*(-parseInt(e(414))/10)+parseInt(e(419))/11)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(Yt);class Qt{constructor(){var t=Xt;this[t(421)]=!1,this[t(412)]=null,this._organizationInfo=null}[qt(403)](t){var e=qt;this._config={timeout:3e4,debug:!1,modules:["ads","events","config"],...t},t[e(400)]&&G[e(422)](t[e(400)]),this[e(421)]=!0,t[e(399)]&&console[e(406)]("✅ Config module initialized (sync mode)",{modules:this[e(412)].modules,endpoint:G.getBaseUrl(),mode:e(402)})}isReady(){return this[qt(421)]}[qt(401)](){return this[qt(412)]}[qt(410)](){return this[qt(420)]}[qt(392)](){return G.getBaseUrl()}isDebugMode(){var t=qt;return this._config?.[t(399)]||!1}[qt(396)](){var t=qt;return this[t(412)]?.modules||[]}[qt(398)](t){var e=qt;return this.getEnabledModules()[e(408)](t)}updateConfig(t){var e=qt;if(!this[e(412)])throw new Error(e(416));this[e(412)]={...this[e(412)],...t},this[e(413)]()&&console[e(406)](e(417),t)}getApiHeaders(){var t=qt;if(!this[t(412)]?.[t(393)])throw new Error("API key not available");return R[t(407)](this[t(412)].apiKey)}}function Zt(t,e){const n=te();return(Zt=function(t,e){return n[t-=418]})(t,e)}const $t=Zt;function te(){const t=["7282982CxnnFx","getAutoDetectedDeviceInfo","tablet","ko-KR","Mobile Web","getViewportInfo","mapPlatformForEvents","2682030CQuQqX","getDeviceInfo","0x0","2403920jrmfRG","clearDeviceInfo","8LjsZzA","16Wrqtmx","isBrowser","width","setDeviceInfo","66848gqvXhL","userAgent","language","7620579qnXRDb","_userProvidedDeviceInfo","Desktop Web","desktop","height","toLowerCase","4406000yiJRQs","getDetailedInfo","SSR","iOS","test","Android","460302EhnIvB","Unknown","setDeviceProperty","getPlatform","cookieEnabled"];return(te=function(){return t})()}!function(t){const e=Zt,n=t();for(;;)try{if(582036===parseInt(e(440))/1*(parseInt(e(435))/2)+-parseInt(e(418))/3*(parseInt(e(436))/4)+parseInt(e(449))/5+-parseInt(e(430))/6+parseInt(e(423))/7+parseInt(e(433))/8+-parseInt(e(443))/9)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(te);class ee{static[$t(431)](){const t=$t;return{...ee.getAutoDetectedDeviceInfo(),...ee[t(444)]}}static[$t(424)](){const t=$t;if(!v[t(437)]())return{category:"other",platform:t(451),model:t(451),osVersion:t(451)};const e=navigator[t(441)][t(448)]();let n=t(446);/tablet|ipad/[t(453)](e)?n=t(425):C.isMobile()&&(n="mobile");const r=C[t(421)]();return{category:n,platform:ee.mapPlatformForEvents(r),model:navigator.platform,osVersion:navigator.platform,deviceId:C.generateDeviceId()}}static[$t(439)](t){const e=$t;ee._userProvidedDeviceInfo={...ee[e(444)],...t}}static[$t(420)](t,e){ee._userProvidedDeviceInfo[t]=e}static[$t(434)](){ee[$t(444)]={}}static getUserDeviceInfo(){return{...ee[$t(444)]}}static[$t(429)](t){const e=$t;switch(t){case"ios":return e(452);case"android":return e(454);case"web":return e(427);case e(446):return e(445);default:return e(419)}}static[$t(450)](){const t=$t;if(!v[t(437)]())return{userAgent:t(451),language:t(426),platform:t(451),cookieEnabled:!1,onLine:!0,screenResolution:"0x0",viewportSize:t(432)};const e=v[t(428)]();return{userAgent:navigator[t(441)],language:navigator[t(442)]||t(426),platform:navigator.platform,cookieEnabled:navigator[t(422)],onLine:navigator.onLine,screenResolution:screen[t(438)]+"x"+screen[t(447)],viewportSize:e[t(438)]+"x"+e[t(447)]}}}ee[$t(444)]={};const ne=re;function re(t,e){const n=oe();return(re=function(t,e){return n[t-=251]})(t,e)}!function(t){const e=re,n=t();for(;;)try{if(552467===parseInt(e(259))/1+-parseInt(e(256))/2+parseInt(e(253))/3*(parseInt(e(255))/4)+-parseInt(e(258))/5*(-parseInt(e(273))/6)+-parseInt(e(264))/7+parseInt(e(270))/8+-parseInt(e(262))/9)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(oe);class se{static[ne(267)](){const t=ne;return{...se[t(265)](),...se[t(257)]}}static getBaseUserInfo(){const t=ne;if(!v[t(272)]())return{language:t(263),country:"KR"};const e=navigator[t(274)]||t(263);return{language:e,country:se[t(260)](e)}}static[ne(260)](t){const e={ko:"KR","ko-KR":"KR",en:"US","en-US":"US","en-GB":"GB",ja:"JP","ja-JP":"JP",zh:"CN","zh-CN":"CN","zh-TW":"TW",de:"DE","de-DE":"DE",fr:"FR","fr-FR":"FR"};if(e[t])return e[t];return e[t[ne(269)]("-")[0]]||"KR"}static[ne(261)](t){se._userProperties={...se._userProperties,...t}}static[ne(268)](t,e){se[ne(257)][t]=e}static[ne(271)](){se[ne(257)]={}}static getCurrentUserProperties(){return{...se[ne(257)]}}static estimateLocation(){const t=ne;if(!v[t(272)]())return{timezone:t(251),estimatedCountry:"KR"};const e=Intl[t(252)]()[t(266)]()[t(254)];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 oe(){const t=["isBrowser","342894JAtqyu","language","UTC","DateTimeFormat","9JTIQNw","timeZone","1136612xHnLjp","203128yOVcXV","_userProperties","45oRJeZh","519276FubLwQ","extractCountryFromLanguage","setUserProperties","11172600ZwdLFu","ko-KR","5562060LmNokx","getBaseUserInfo","resolvedOptions","getUserInfo","setUserProperty","split","6431480Bonxbi","clearUserProperties"];return(oe=function(){return t})()}function ie(){const t=["5070056iZgRwm","917193WmeCce","linkedin.ads","microsoft.ads","utm_content","undefined","removeItem","CLICK_ID_KEYS","tiktok.ads","nclid","utm_source","msclkid","20152630sbjNuF","length","setItem","ttclid","twitter.ads","adstage_referrer","true","hasClickId","parse","9pIaSNb","STORAGE_KEY","keys","adstage_last_click_id","ad_group_id","adstage_tracking_params","liclid","location","channel","term","stringify","hasParams","Failed to store tracking params:","adstage","19122wLewMC","ad_creative","fbclid","4201700jPgmaZ","1137iAHBuC","3046awyKkd","ALL_KEYS","campaign","Failed to parse adstage_referrer:","warn","search","utm_term","gclid","meta.ads","get","store","UTM_KEYS","CAMPAIGN_KEYS","ad_group","utm_campaign","markClickEventSent","campaign_id","captureFromUrl","utm_medium","getItem","1974AvNCzt","adGroup","google.ads","adstage_click_event_sent","isClickEventSent","adGroupId","creative_id","21752HXOBsl","twclid","campaignId"];return(ie=function(){return t})()}se._userProperties={};const ae=ce;function ce(t,e){const n=ie();return(ce=function(t,e){return n[t-=152]})(t,e)}!function(t){const e=ce,n=t();for(;;)try{if(564532===-parseInt(e(213))/1+parseInt(e(182))/2*(parseInt(e(181))/3)+-parseInt(e(209))/4+-parseInt(e(180))/5+-parseInt(e(177))/6*(parseInt(e(202))/7)+-parseInt(e(212))/8*(-parseInt(e(163))/9)+parseInt(e(154))/10)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(ie);class le{static[ae(199)](){const t=ae;if("undefined"==typeof window)return null;const e=new URLSearchParams(window[t(170)][t(187)]),n={};let r=!1;const s=e[t(191)](t(159));if(s)try{const e=decodeURIComponent(s),o=new URLSearchParams(e);for(const e of le[t(183)]){const s=o[t(191)](e);s&&(n[e]=s,r=!0)}o.get(t(176))===t(160)&&(r=!0)}catch(e){console[t(186)](t(185),e)}for(const s of le[t(183)]){if(n[s])continue;const o=e[t(191)](s);o&&(n[s]=o,r=!0)}return r?(n.channel||(n.gclid?n[t(171)]=t(204):n[t(179)]?n.channel=t(190):n[t(157)]?n[t(171)]=t(220):n.nclid?n[t(171)]="naver.searchad":n[t(169)]?n.channel=t(214):n[t(153)]?n.channel=t(215):n[t(210)]&&(n[t(171)]=t(158))),le[t(192)](n),n):null}static[ae(192)](t){const e=ae;if(typeof window!==e(217))try{const n={...le[e(191)](),...t},r=JSON[e(173)](n);try{sessionStorage[e(156)](le.STORAGE_KEY,r)}catch(t){}try{localStorage[e(156)](le[e(164)],r)}catch(t){}}catch(t){console[e(186)](e(175),t)}}static get(){const t=ae;if("undefined"==typeof window)return null;try{const e=sessionStorage?.getItem(le.STORAGE_KEY);if(e)return JSON[t(162)](e)}catch(t){}try{const e=localStorage?.[t(201)](le[t(164)]);if(e)return JSON.parse(e)}catch(t){}return null}static clear(){const t=ae;if(typeof window!==t(217)){try{sessionStorage?.removeItem(le[t(164)])}catch(t){}try{localStorage?.[t(218)](le[t(164)])}catch(t){}}}static[ae(174)](){const t=ae,e=le[t(191)]();return null!==e&&Object[t(165)](e)[t(155)]>0}static hasClickId(){const t=ae,e=le[t(191)]();return!!e&&le[t(219)].some(t=>e[t])}static shouldSendClickEvent(){const t=ae;if(typeof window===t(217))return!1;const e=le[t(191)]();if(!e||!le[t(161)]())return!1;const n=e[t(189)]||e[t(179)]||e[t(157)]||e[t(221)]||e[t(169)]||e[t(153)]||e[t(210)];if(!n)return!1;return n!==sessionStorage[t(201)](t(166))&&(sessionStorage[t(156)](t(166),n),!0)}static[ae(197)](){const t=ae;"undefined"!=typeof window&&sessionStorage[t(156)](t(205),t(160))}static[ae(206)](){return"undefined"!=typeof window&&"true"===sessionStorage[ae(201)]("adstage_click_event_sent")}static toAttributionObject(){const t=ae,e=le.get();if(!e)return null;const n={};return e[t(189)]&&(n[t(189)]=e[t(189)]),e.fbclid&&(n[t(179)]=e.fbclid),e[t(157)]&&(n[t(157)]=e[t(157)]),e[t(221)]&&(n[t(221)]=e[t(221)]),e[t(171)]&&(n[t(171)]=e[t(171)]),e.campaign&&(n[t(184)]=e[t(184)]),e[t(198)]&&(n[t(211)]=e[t(198)]),e[t(195)]&&(n[t(203)]=e.ad_group),e[t(167)]&&(n[t(207)]=e[t(167)]),e.ad_creative&&(n.adCreative=e[t(178)]),e.creative_id&&(n.creativeId=e[t(208)]),e[t(172)]&&(n.term=e[t(172)]),e[t(152)]&&(n[t(152)]=e[t(152)]),e[t(200)]&&(n[t(200)]=e.utm_medium),e[t(196)]&&(n[t(196)]=e[t(196)]),e.utm_content&&(n[t(216)]=e[t(216)]),e[t(188)]&&(n[t(188)]=e[t(188)]),Object[t(165)](n)[t(155)]>0?n:null}}function de(){const t=["2629305ErWTjs","4exAOwg","Event data:","isReady","8004451Rvpzgy","debug","init","setDeviceInfo","👤 User properties set:","clearDeviceInfo","❌ Failed to register attribution:","stringify","1089871VamZYY","getItem","keys","getAttributionId","❌ Failed to track event:","warn","✅ Event tracked:","🔑 Request headers:","track","getCurrentUserProperties","adstage_attribution_id","sendAttributionToServer","📱 Device info set:","⏭️ No tracking parameters found, skipping attribution registration","Events module not initialized. Call AdStage.init() first.","📡 Request URL:","log","registerAttribution","_isReady","attributionId","setDeviceProperty","4343973GnFoIF","5622gEeqxV","API key not configured for attribution registration.","📦 Attribution request body:","text","✅ Attribution registered:","getConfig","statusText","length","apiKey","2808720wPcFiE","getDeviceInfo","1964210jLAivm","6965gMiZRg","❌ API Error Response:","📡 Attribution request URL:","setItem","getUserProperties","events","_config","status","trackWithAttributionId","getUserInfo","API key not configured for event tracking.","getUserDeviceInfo","setUserProperties","Attribution registration failed: ","create","POST","📦 Request body:","Event tracking failed: ","error","toAttributionObject","📊 Attribution included:","undefined","sendEventToServer","json"];return(de=function(){return t})()}le.STORAGE_KEY=ae(168),le[ae(219)]=[ae(189),ae(179),ae(157),ae(221),ae(169),ae(153),ae(210)],le[ae(194)]=[ae(171),ae(184),"campaign_id",ae(195),"ad_group_id",ae(178),ae(208),ae(172)],le[ae(193)]=[ae(152),ae(200),ae(196),ae(216),ae(188)],le.ALL_KEYS=[...le[ae(219)],...le.CAMPAIGN_KEYS,...le[ae(193)]];const ue=pe;function pe(t,e){const n=de();return(pe=function(t,e){return n[t-=248]})(t,e)}!function(t){const e=pe,n=t();for(;;)try{if(750774===parseInt(e(263))/1+-parseInt(e(296))/2+parseInt(e(284))/3*(parseInt(e(252))/4)+-parseInt(e(297))/5*(parseInt(e(285))/6)+parseInt(e(255))/7+-parseInt(e(294))/8+-parseInt(e(251))/9)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(de);class he{constructor(){const t=pe;this._isReady=!1,this[t(303)]=null}[ue(257)](t){const e=ue;this._config=t,this[e(281)]=!0,t[e(256)]&&console[e(279)]("📊 Events module initialized")}[ue(254)](){return this[ue(281)]}[ue(290)](){return this._config}[ue(309)](t){const e=ue;se.setUserProperties(t),this._config?.debug&&console[e(279)](e(259),t)}[ue(301)](){return se[ue(272)]()}setDeviceInfo(t){const e=ue;ee[e(258)](t),this[e(303)]?.[e(256)]&&console[e(279)](e(275),t)}setDeviceProperty(t,e){const n=ue;ee[n(283)](t,e),this._config?.debug&&console[n(279)]("📱 Device property set:",t,e)}[ue(260)](){const t=ue;ee[t(260)](),this._config?.[t(256)]&&console.log("📱 User provided device info cleared")}[ue(308)](){return ee[ue(308)]()}[ue(295)](){return ee[ue(295)]()}getUserInfo(){return se[ue(306)]()}[ue(272)](){return se[ue(272)]()}async[ue(271)](t,e){const n=ue;if(this[n(281)])if(this[n(303)]?.apiKey)try{const r=this[n(266)]();if(r){const s={eventName:t,sdkVersion:E(),device:ee[n(295)](),user:se[n(306)](),attributionId:r,params:e||{}};return await this[n(249)](s),void(this[n(303)][n(256)]&&console[n(279)]("✅ Event tracked with attribution ID:",t,r))}const s=le[n(316)](),o={eventName:t,sdkVersion:E(),device:ee[n(295)](),user:se[n(306)](),...s&&{attribution:s},params:e||{}};await this.sendEventToServer(o),this[n(303)][n(256)]&&(console[n(279)](n(269),t,e),s&&console.log(n(317),s))}catch(r){console[n(315)](n(267),r),this._config[n(256)]&&console[n(315)](n(253),{eventName:t,properties:e})}else console.warn(n(307));else console[n(268)](n(277))}async[ue(280)](t){const e=ue;if(!this._isReady)return console[e(268)]("Events module not initialized. Call AdStage.init() first."),null;if(!this[e(303)]?.[e(293)])return console[e(268)](e(286)),null;try{const n=le.get();if(!n||0===Object[e(265)](n)[e(292)])return this._config[e(256)]&&console[e(279)](e(276)),null;const r=await this[e(274)]({deviceId:t,referrerParams:n});if(this[e(303)][e(256)]&&console[e(279)](e(289),r),r.attributionId){try{localStorage[e(300)](e(273),r[e(282)])}catch(t){}try{sessionStorage[e(300)](e(273),r[e(282)])}catch(t){}}return r}catch(t){return console.error(e(261),t),null}}[ue(266)](){const t=ue;if(typeof window===t(248))return null;try{const e=sessionStorage[t(264)](t(273));if(e)return e}catch(t){}try{return localStorage[t(264)](t(273))}catch(t){}return null}async[ue(305)](t,e){return this[ue(271)](t,e)}async[ue(249)](t){const e=ue,n={...R[e(311)](this[e(303)][e(293)]),"Content-Type":"application/json"};this[e(303)]?.debug&&(console.log(e(270),n),console[e(279)](e(278),G.events[e(271)]()),console[e(279)](e(313),t));const r=await fetch(G.events[e(271)](),{method:e(312),headers:n,body:JSON[e(262)](t)});if(!r.ok){const t=await r[e(288)]();throw console[e(315)](e(298),t),new Error(e(314)+r[e(304)]+" "+r[e(291)])}}async[ue(274)](t){const e=ue,n={...R.create(this[e(303)].apiKey),"Content-Type":"application/json"};this[e(303)]?.debug&&(console[e(279)]("🔑 Attribution request headers:",n),console[e(279)](e(299),G[e(302)][e(280)]()),console[e(279)](e(287),t));const r=await fetch(G[e(302)][e(280)](),{method:"POST",headers:n,body:JSON.stringify(t)});if(!r.ok){const t=await r[e(288)]();throw console.error(e(298),t),new Error(e(310)+r.status+" "+r[e(291)])}return r[e(250)]()}}const fe=ge;function ge(t,e){const n=me();return(ge=function(t,e){return n[t-=421]})(t,e)}function me(){const t=["then","baseUrl","undefined","AdStage.events accessed before initialization","campaign","markClickEventSent","954985CTPIaw","toString","captureFromUrl","attribution_id","abs","replace","now","registerAttribution","_isInitialized","✅ Auto-tracked click event with tracking params:","random","hardwareConcurrency","1026960buFSew","toISOString","debug","web-","height","5786PlQEfy","...","warn","42RwZEuW","setItem","clearAdViewable","❌ Failed to register attribution:","error","isReady","✅ AdStage Debug: 모든 viewable 추적 데이터 초기화됨","log","ads","location","join","channel","development","🌐 API endpoint configured:","getTimezoneOffset","610KkINyL","server-",")의 viewable 추적 초기화됨","1bLtnze","360lqsEZY","41589NLTaCq","click","get","✅ AdStage Debug: 광고 ","viewableTracker","4NFJgfS","language","API key is required for AdStage initialization","attributionId","AdStage.ads accessed before initialization","📊 AdStage Debug: 현재 viewable 추적 상태","getItem","tracking_params","231224chKPPE","size","userAgent","charCodeAt","adstage_device_id","apiKey","🔗 Using attributionId from URL (attribution_id):","catch","config","273222CWlDuo","track","substring","_config","208374vmDreA","web","modules","toAttributionObject","❌ Failed to auto-track click event:","expiresAt","✅ Attribution registered:","function","instance","⏭️ Skipping click event (duplicate or no click ID)","length","events","hash","from","📊 Tracking parameters captured:","❌ Error in click event auto-tracking:","init","generateDeviceId","getInstance"];return(me=function(){return t})()}!function(t){const e=ge,n=t();for(;;)try{if(191451===parseInt(e(435))/1*(parseInt(e(463))/2)+parseInt(e(459))/3+parseInt(e(442))/4*(parseInt(e(488))/5)+-parseInt(e(508))/6*(-parseInt(e(450))/7)+-parseInt(e(500))/8+parseInt(e(437))/9*(-parseInt(e(432))/10)+-parseInt(e(505))/11*(parseInt(e(436))/12))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(me);class ye{constructor(){const t=ge;this[t(496)]=!1,this._config=null,this.config=new Qt,this[t(425)]=new Jt,this[t(474)]=new he}static[fe(479)](t){const e=fe;!ye.instance&&(ye[e(471)]=new ye);const n=ye[e(471)];if(!t[e(455)])throw new Error(e(444));n[e(462)]={timeout:3e4,debug:!1,modules:[e(425),e(474),e(458)],...t},n._config[e(483)]&&(G.setBaseUrl(n[e(462)][e(483)]),t[e(502)]&&console[e(424)](e(430),n._config.baseUrl));const r=n[e(462)][e(465)]||[e(425),e(474),e(458)];for(const t of r){const r=n[t];r&&typeof r[e(479)]===e(470)&&r[e(479)](n._config)}if(n[e(496)]=!0,typeof window!==e(484)){const r=le[e(490)]();r&&t[e(502)]&&console[e(424)](e(477),r);const s=(()=>{const t=e;try{const e=new URLSearchParams(window[t(426)].search),n=new URLSearchParams((window[t(426)][t(475)]||"")[t(493)](/^#/,""));return e[t(439)](t(491))||n[t(439)](t(491))}catch{return null}})();if(s)try{localStorage[e(509)]("adstage_attribution_id",s),t[e(502)]&&console[e(424)](e(456),s)}catch(t){}const o=le.shouldSendClickEvent();if(t[e(502)]&&(console[e(424)]("🔍 Should send click event:",o),!o&&console[e(424)](e(472))),!s&&r&&le.hasClickId()){const r=(async()=>{const r=e;try{const e=n[r(480)](),s=await n.events[r(495)](e);return s&&t[r(502)]&&console.log(r(469),{attributionId:s[r(445)],channel:s[r(428)],campaign:s[r(486)],expiresAt:s[r(468)]}),s}catch(t){return console[r(421)](r(511),t),null}})();o&&r[e(482)](r=>{const s=e;try{const e=le[s(439)](),o=le.toAttributionObject();t.debug&&console[s(424)]("🎯 Sending click event after attribution registration",{attributionId:r?.attributionId,hasAttribution:!!r}),n[s(474)][s(460)](s(438),{_autoGenerated:!0,_source:s(449),_timestamp:(new Date)[s(501)](),_platform:s(464)})[s(482)](()=>{const n=s;le[n(487)](),t[n(502)]&&console[n(424)](n(497),{attribution:o,trackingParams:e})})[s(457)](t=>{const e=s;console.error(e(467),t)})}catch(t){console.error(s(478),t)}})}else o&&setTimeout(()=>{const r=e;try{const e=le.get(),s=le[r(466)]();n[r(474)][r(460)]("click",{_autoGenerated:!0,_source:"tracking_params",_timestamp:(new Date)[r(501)](),_platform:r(464)}).then(()=>{const n=r;le[n(487)](),t[n(502)]&&console.log(n(497),{attribution:s,trackingParams:e})})[r(457)](t=>{const e=r;console[e(421)](e(467),t)})}catch(t){console[r(421)](r(478),t)}},100)}t.debug&&console[e(424)]("🚀 AdStage SDK initialized (sync mode)",{version:"2.0.0",modules:r,apiKey:t[e(455)][e(461)](0,8)+e(506),mode:e(429)})}static[fe(422)](){const t=fe;return ye[t(471)]?.[t(496)]||!1}static getConfig(){const t=fe;return ye[t(471)]?._config||null}static[fe(481)](){if(!ye[fe(471)])throw new Error("AdStage not initialized. Call AdStage.init() first.");return ye.instance}static get ads(){const t=fe;try{return ye.getInstance()[t(425)]}catch(e){throw console[t(507)](t(446)),e}}static get[fe(474)](){const t=fe;try{return ye.getInstance()[t(474)]}catch(e){throw console[t(507)](t(485)),e}}static get config(){const t=fe;try{return ye.getInstance()[t(458)]}catch(e){throw console[t(507)]("AdStage.config accessed before initialization"),e}}static reset(){const t=fe;ye[t(471)]&&(ye[t(471)][t(496)]=!1,ye[t(471)]._config=null)}[fe(480)](){const t=fe;if(typeof window===t(484))return t(433)+Math[t(498)]()[t(489)](36)[t(461)](2,15);const e=localStorage[t(448)](t(454));if(e)return e;const n=[navigator[t(452)],navigator[t(443)],screen.width+"x"+screen[t(504)],(new Date)[t(431)](),navigator[t(499)]||0][t(427)]("|");let r=0;for(let e=0;e<n[t(473)];e++){r=(r<<5)-r+n[t(453)](e),r&=r}const s=t(503)+Math[t(492)](r)[t(489)](36)+"-"+Date[t(494)]()[t(489)](36);return localStorage[t(509)](t(454),s),s}}function ve(t,e){var n=Ie();return(ve=function(t,e){return n[t-=311]})(t,e)}function Ie(){var t=["15915100EXwRfY","1245noJKSK","4278264cqwMmH","603894ZhbEMm","18HwQWxX","resolve","AdStage not initialized. Call AdStage.init() first.","1702078TvRcdf","55AHfzwt","track","2778oUBfrX","336941tIufGk","getUserProperties","events","2036984bTVsLm","warn","setUserProperties","isReady"];return(Ie=function(){return t})()}ye[fe(502)]={clearAllViewable:()=>{const t=fe;it.clear(),console[t(424)](t(423))},clearAdViewable:(t,e)=>{const n=fe;it[n(510)](t,e),console.log(n(440)+t+"("+e+n(434))},getViewableStatus:()=>{const t=fe;console.log(t(447),{trackedCount:it[t(441)][t(451)],trackedItems:Array[t(476)](it[t(441)])})}},function(t){for(var e=ve,n=t();;)try{if(594273===parseInt(e(312))/1+-parseInt(e(311))/2*(-parseInt(e(320))/3)+-parseInt(e(321))/4+-parseInt(e(327))/5*(parseInt(e(322))/6)+-parseInt(e(326))/7+-parseInt(e(315))/8*(-parseInt(e(323))/9)+parseInt(e(319))/10)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(Ie);var be,we={exports:{}},ke={},Ee={exports:{}},Se={};Ee.exports=function(){if(be)return Se;be=1;var t=Symbol.for("react.element"),e=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),i=Symbol.for("react.context"),a=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),l=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),u=Symbol.iterator,p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},h=Object.assign,f={};function g(t,e,n){this.props=t,this.context=e,this.refs=f,this.updater=n||p}function m(){}function y(t,e,n){this.props=t,this.context=e,this.refs=f,this.updater=n||p}g.prototype.isReactComponent={},g.prototype.setState=function(t,e){if("object"!=typeof t&&"function"!=typeof t&&null!=t)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,t,e,"setState")},g.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")},m.prototype=g.prototype;var v=y.prototype=new m;v.constructor=y,h(v,g.prototype),v.isPureReactComponent=!0;var I=Array.isArray,b=Object.prototype.hasOwnProperty,w={current:null},k={key:!0,ref:!0,__self:!0,__source:!0};function E(e,n,r){var s,o={},i=null,a=null;if(null!=n)for(s in void 0!==n.ref&&(a=n.ref),void 0!==n.key&&(i=""+n.key),n)b.call(n,s)&&!k.hasOwnProperty(s)&&(o[s]=n[s]);var c=arguments.length-2;if(1===c)o.children=r;else if(1<c){for(var l=Array(c),d=0;d<c;d++)l[d]=arguments[d+2];o.children=l}if(e&&e.defaultProps)for(s in c=e.defaultProps)void 0===o[s]&&(o[s]=c[s]);return{$$typeof:t,type:e,key:i,ref:a,props:o,_owner:w.current}}function S(e){return"object"==typeof e&&null!==e&&e.$$typeof===t}var x=/\/+/g;function A(t,e){return"object"==typeof t&&null!==t&&null!=t.key?function(t){var e={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,function(t){return e[t]})}(""+t.key):e.toString(36)}function C(n,r,s,o,i){var a=typeof n;"undefined"!==a&&"boolean"!==a||(n=null);var c=!1;if(null===n)c=!0;else switch(a){case"string":case"number":c=!0;break;case"object":switch(n.$$typeof){case t:case e:c=!0}}if(c)return i=i(c=n),n=""===o?"."+A(c,0):o,I(i)?(s="",null!=n&&(s=n.replace(x,"$&/")+"/"),C(i,r,s,"",function(t){return t})):null!=i&&(S(i)&&(i=function(e,n){return{$$typeof:t,type:e.type,key:n,ref:e.ref,props:e.props,_owner:e._owner}}(i,s+(!i.key||c&&c.key===i.key?"":(""+i.key).replace(x,"$&/")+"/")+n)),r.push(i)),1;if(c=0,o=""===o?".":o+":",I(n))for(var l=0;l<n.length;l++){var d=o+A(a=n[l],l);c+=C(a,r,s,d,i)}else if(d=function(t){return null===t||"object"!=typeof t?null:"function"==typeof(t=u&&t[u]||t["@@iterator"])?t:null}(n),"function"==typeof d)for(n=d.call(n),l=0;!(a=n.next()).done;)c+=C(a=a.value,r,s,d=o+A(a,l++),i);else if("object"===a)throw r=String(n),Error("Objects are not valid as a React child (found: "+("[object Object]"===r?"object with keys {"+Object.keys(n).join(", ")+"}":r)+"). If you meant to render a collection of children, use an array instead.");return c}function T(t,e,n){if(null==t)return t;var r=[],s=0;return C(t,r,"","",function(t){return e.call(n,t,s++)}),r}function _(t){if(-1===t._status){var e=t._result;(e=e()).then(function(e){0!==t._status&&-1!==t._status||(t._status=1,t._result=e)},function(e){0!==t._status&&-1!==t._status||(t._status=2,t._result=e)}),-1===t._status&&(t._status=0,t._result=e)}if(1===t._status)return t._result.default;throw t._result}var R={current:null},L={transition:null},P={ReactCurrentDispatcher:R,ReactCurrentBatchConfig:L,ReactCurrentOwner:w};function D(){throw Error("act(...) is not supported in production builds of React.")}return Se.Children={map:T,forEach:function(t,e,n){T(t,function(){e.apply(this,arguments)},n)},count:function(t){var e=0;return T(t,function(){e++}),e},toArray:function(t){return T(t,function(t){return t})||[]},only:function(t){if(!S(t))throw Error("React.Children.only expected to receive a single React element child.");return t}},Se.Component=g,Se.Fragment=n,Se.Profiler=s,Se.PureComponent=y,Se.StrictMode=r,Se.Suspense=c,Se.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=P,Se.act=D,Se.cloneElement=function(e,n,r){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var s=h({},e.props),o=e.key,i=e.ref,a=e._owner;if(null!=n){if(void 0!==n.ref&&(i=n.ref,a=w.current),void 0!==n.key&&(o=""+n.key),e.type&&e.type.defaultProps)var c=e.type.defaultProps;for(l in n)b.call(n,l)&&!k.hasOwnProperty(l)&&(s[l]=void 0===n[l]&&void 0!==c?c[l]:n[l])}var l=arguments.length-2;if(1===l)s.children=r;else if(1<l){c=Array(l);for(var d=0;d<l;d++)c[d]=arguments[d+2];s.children=c}return{$$typeof:t,type:e.type,key:o,ref:i,props:s,_owner:a}},Se.createContext=function(t){return(t={$$typeof:i,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:o,_context:t},t.Consumer=t},Se.createElement=E,Se.createFactory=function(t){var e=E.bind(null,t);return e.type=t,e},Se.createRef=function(){return{current:null}},Se.forwardRef=function(t){return{$$typeof:a,render:t}},Se.isValidElement=S,Se.lazy=function(t){return{$$typeof:d,_payload:{_status:-1,_result:t},_init:_}},Se.memo=function(t,e){return{$$typeof:l,type:t,compare:void 0===e?null:e}},Se.startTransition=function(t){var e=L.transition;L.transition={};try{t()}finally{L.transition=e}},Se.unstable_act=D,Se.useCallback=function(t,e){return R.current.useCallback(t,e)},Se.useContext=function(t){return R.current.useContext(t)},Se.useDebugValue=function(){},Se.useDeferredValue=function(t){return R.current.useDeferredValue(t)},Se.useEffect=function(t,e){return R.current.useEffect(t,e)},Se.useId=function(){return R.current.useId()},Se.useImperativeHandle=function(t,e,n){return R.current.useImperativeHandle(t,e,n)},Se.useInsertionEffect=function(t,e){return R.current.useInsertionEffect(t,e)},Se.useLayoutEffect=function(t,e){return R.current.useLayoutEffect(t,e)},Se.useMemo=function(t,e){return R.current.useMemo(t,e)},Se.useReducer=function(t,e,n){return R.current.useReducer(t,e,n)},Se.useRef=function(t){return R.current.useRef(t)},Se.useState=function(t){return R.current.useState(t)},Se.useSyncExternalStore=function(t,e,n){return R.current.useSyncExternalStore(t,e,n)},Se.useTransition=function(){return R.current.useTransition()},Se.version="18.3.1",Se}();var xe,Ae=Ee.exports;
|
|
1
|
+
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).AdStage={})}(this,function(t){"use strict";var e,n,r,o,i,s,a,c,d,l,u,p;function h(t,e){var n=f();return(h=function(t,e){return n[t-=161]})(t,e)}function f(){var t=["4bPAuwg","POPUP","4928672GnIpwn","INTERSTITIAL","TABLET","6EzpYyA","BANNER","189134SJvgOW","VIDEO","15070IpBYPT","3349220MssPRD","5271405LsraNr","MOBILE","DESKTOP","TEXT","9225ahSvaD","VIEWABLE","CLICK","12422263VlHZTv","1597035nLIZAu","NATIVE"];return(f=function(){return t})()}function g(){const t=["DOMContentLoaded","safeSetTextContent","href","ms 경과)","isDOMReady","⏳ 컨테이너 대기 시작: ","appendChild","getElementById","setProperty","safeWindowOpen","safeApplyStyles","getScrollInfo","7973502dsSvEd","innerHeight","✅ 컨테이너 즉시 발견: ","querySelectorAll","createElement","querySelector","from","safeCreateElement","title","scrollTop","2196003IaMyGT","safeSetInnerHTML",'"\n \n다음을 확인해보세요:\n1. HTML에 id="',"classList","getViewportInfo","safeGetElementById","1484489jYVtRv","pageYOffset"," (최대 ","18Wkyvaf",'❌ 컨테이너를 찾을 수 없습니다: "',"332252JQWcQL","safeAppendChild","7uYoWgQ","DOM을 사용할 수 없는 환경입니다.","min","open","safeRemoveEventListener","3728136pEVRNg","loading","map","safeAddEventListener","entries","undefined","log","addEventListener","pow","ms)","safeQuerySelector","isBrowser","textContent","waitForDOM","waitForElement","getPageInfo","ms (","35YvXbQK","497450dLxVGC","remove","⏳ 컨테이너 대기 중: ","devicePixelRatio","canUseDOM","341GcHqwg","번 시도)","innerHTML","2049094qjBTzu","getComputedStyle","getDocumentProperty","safeAddClass","removeChild","getWindowProperty","location","ceil"];return(g=function(){return t})()}function m(t,e){const n=g();return(m=function(t,e){return n[t-=249]})(t,e)}!function(t){for(var e=h,n=t();;)try{if(955658===parseInt(e(163))/1+parseInt(e(166))/2+parseInt(e(175))/3+-parseInt(e(177))/4*(parseInt(e(167))/5)+-parseInt(e(161))/6*(-parseInt(e(174))/7)+-parseInt(e(179))/8+parseInt(e(171))/9*(-parseInt(e(165))/10))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(f),(n=e||(e={}))[(r=h)(162)]=r(162),n[r(178)]=r(178),n.INTERSTITIAL=r(180),n[r(176)]=r(176),n.VIDEO=r(164),n[r(170)]=r(170),i=o||(o={}),s=h,i.WEB="WEB",i[s(168)]=s(168),(c=a||(a={}))[(d=h)(172)]="VIEWABLE",c[d(173)]=d(173),(u=l||(l={}))[(p=h)(169)]=p(169),u[p(168)]=p(168),u[p(181)]="TABLET";const y=m;!function(t){const e=m,n=t();for(;;)try{if(835830===-parseInt(e(274))/1+parseInt(e(312))/2+parseInt(e(268))/3+-parseInt(e(279))/4*(parseInt(e(303))/5)+-parseInt(e(258))/6*(parseInt(e(281))/7)+parseInt(e(286))/8*(parseInt(e(277))/9)+-parseInt(e(304))/10*(-parseInt(e(309))/11))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(g);class I{static[y(297)](){const t=y;return typeof window!==t(291)&&typeof document!==t(291)}static isSSR(){return!this.isBrowser()}static[y(308)](){return this.isBrowser()&&void 0!==document.readyState}static[y(273)](t){const e=y;return this[e(308)]()?document[e(253)](t):null}static[y(296)](t){const e=y;return this[e(308)]()?document[e(263)](t):null}static safeQuerySelectorAll(t){const e=y;return this[e(308)]()?Array[e(264)](document[e(261)](t)):[]}static[y(265)](t){const e=y;return this[e(308)]()?document[e(262)](t):null}static[y(289)](t,e,n,r){const o=y;this[o(308)]()&&t&&t[o(293)](e,n,r)}static[y(285)](t,e,n,r){this[y(308)]()&&t&&t.removeEventListener(e,n,r)}static[y(317)](t,e){return this[y(297)]()?window[t]??e:e}static getDocumentProperty(t,e){return this[y(308)]()?document[t]??e:e}static[y(255)](t,e,n){const r=y;return this[r(297)]()?window[r(284)](t,e,n):null}static safeGetComputedStyle(t){const e=y;return this.isBrowser()&&t?window[e(313)](t):null}static[y(250)](){const t=y;return!!this.canUseDOM()&&document.readyState!==t(287)}static[y(299)](){return new Promise(t=>{const e=m;this[e(308)]()?this[e(250)]()?t():this[e(289)](document,e(320),()=>t()):t()})}static[y(256)](t,e){const n=y;this[n(308)]()&&t&&Object[n(290)](e).forEach(([e,r])=>{const o=n;t.style[o(254)](e,r)})}static[y(315)](t,e){const n=y;this[n(308)]()&&t&&t[n(271)].add(e)}static safeRemoveClass(t,e){const n=y;this.canUseDOM()&&t&&t[n(271)][n(305)](e)}static[y(321)](t,e){const n=y;this.canUseDOM()&&t&&(t[n(298)]=e)}static[y(269)](t,e){const n=y;this.canUseDOM()&&t&&(t[n(311)]=e)}static[y(280)](t,e){const n=y;this[n(308)]()&&t&&e&&t[n(252)](e)}static safeRemoveChild(t,e){const n=y;this[n(308)]()&&t&&e&&t[n(316)](e)}static[y(301)](){const t=y;return{url:this[t(317)](t(318),{href:""})[t(322)],title:this[t(314)](t(266),""),referrer:this[t(314)]("referrer","")}}static[y(272)](){const t=y;return{width:this[t(317)]("innerWidth",0),height:this.getWindowProperty(t(259),0),pixelRatio:this[t(317)](t(307),1)}}static[y(257)](){const t=y;return{scrollTop:this[t(308)]()?window[t(275)]||document.documentElement[t(267)]:0,scrollLeft:this.getWindowProperty("pageXOffset",0)}}static async[y(300)](t,e={}){const n=y,{timeout:r=3e3,retryInterval:o=100,debug:i=!1}=e;if(!this[n(308)]())throw new Error(n(282));const s=document[n(253)](t);return s?(i&&console.log(n(260)+t),s):(i&&console[n(292)](n(251)+t+n(276)+r+n(295)),new Promise((e,s)=>{const a=n;let c=0;const d=Math[a(319)](r/o),l=()=>{const n=a;c++;const u=document[n(253)](t);if(u)return i&&console.log("✅ 컨테이너 발견: "+t+" ("+c+"번째 시도, "+c*o+n(249)),void e(u);if(c>=d){const e=n(278)+t+n(270)+t+'" 요소가 있는지 확인\n2. React 등에서 컴포넌트가 렌더링된 후 SDK 호출\n3. 철자가 정확한지 확인\n4. 중복된 ID가 없는지 확인\n\n대기 시간: '+r+n(302)+c+n(310);return i&&console.error(e),void s(new Error(e))}i&&c%10==0&&console[n(292)](n(306)+t+" ("+c+"/"+d+")");const p=Math[n(283)](o*Math[n(294)](1.2,c),500);setTimeout(l,p)};setTimeout(l,o)}))}static async waitForElements(t,e={}){const n=y,r=t[n(288)](t=>this[n(300)](t,e));return Promise.all(r)}}const v=w;!function(t){const e=w,n=t();for(;;)try{if(942758===parseInt(e(414))/1*(-parseInt(e(416))/2)+-parseInt(e(412))/3+parseInt(e(407))/4*(parseInt(e(410))/5)+parseInt(e(409))/6+parseInt(e(413))/7+parseInt(e(418))/8*(parseInt(e(415))/9)+-parseInt(e(417))/10*(parseInt(e(406))/11))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(S);const b=v(411);function w(t,e){const n=S();return(w=function(t,e){return n[t-=404]})(t,e)}function k(){return b}function S(){const t=["10523485EwtgKK","2787FiTxeb","36ZUudGF","954nsIcyE","12090IvVHvT","3041552TXNhzw"," AdStageSDK/","userAgent","29051JyPzFS","6853016LfwIrL","AdStageSDK/","10498134MSuRgW","5DFbVDn","3.0.15","3065844jVOFGL"];return(S=function(){return t})()}const E=x;function x(t,e){const n=A();return(x=function(t,e){return n[t-=139]})(t,e)}function A(){const t=["567KFnLgf","getItem","pixelRatio","1992748ZaRjmH","language","4502330IrqxnQ","adstage_session_id","3366360vwURUF","DateTimeFormat","isMobile","now","setItem","random","12877264NhqZGC","height","generateDeviceId","resolvedOptions","ios","unknown","substr","safeQuerySelector","generateSessionId","test","web","getPlatform","safeGetElementById","userAgent","getViewportInfo"," .adstage-slider-wrapper","65214VZPOjb","platform","desktop","android",'[data-adstage-slot-id="',"session_","adstage_device_id",",y:","ssr_device_","width","300028hXaSJA","isBrowser","getSlotPosition","toString","753832GYkuvK","timeZone","SSR","effectiveType","left"];return(A=function(){return t})()}!function(t){const e=x,n=t();for(;;)try{if(718242===parseInt(e(150))/1+-parseInt(e(154))/2+parseInt(e(166))/3+-parseInt(e(162))/4+parseInt(e(164))/5+-parseInt(e(140))/6*(-parseInt(e(159))/7)+-parseInt(e(172))/8)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(A);class C{static[E(174)](){const t=E;if(!I.isBrowser())return t(148)+Date[t(169)]();const e=localStorage.getItem(t(146));if(e)return e;const n="device_"+Math[t(171)]()[t(153)](36).substr(2,9)+"_"+Date[t(169)]();return localStorage[t(170)](t(146),n),n}static generateSessionId(){const t=E;if(!I[t(151)]())return"ssr_session_"+Date[t(169)]();const e=sessionStorage[t(160)](t(165));if(e)return e;const n=t(145)+Math.random().toString(36)[t(178)](2,9)+"_"+Date[t(169)]();return sessionStorage[t(170)](t(165),n),n}static[E(168)](){return!!I[E(151)]()&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}static[E(183)](){const t=E;if(!I[t(151)]())return t(182);const e=navigator[t(185)].toLowerCase();return/iphone|ipad|ipod/[t(181)](e)?t(176):/android/[t(181)](e)?t(143):C[t(168)]()?t(182):t(142)}static collectDeviceInfo(){const t=E,e=I[t(186)]();return{deviceId:C[t(174)](),sessionId:C[t(180)](),osVersion:I.isBrowser()?navigator[t(141)]:"SSR",deviceModel:I[t(151)]()?navigator.platform:t(156),appVersion:"1.0.0",sdkVersion:k(),language:I[t(151)]()&&navigator[t(163)]||"ko",country:"KR",ipAddress:"",userAgent:I[t(151)]()?navigator.userAgent:"SSR",timezone:I[t(151)]()?Intl[t(167)]()[t(175)]()[t(155)]:"UTC",viewportWidth:e[t(149)],viewportHeight:e[t(173)],screenWidth:I[t(151)]()?screen[t(149)]:0,screenHeight:I[t(151)]()?screen[t(173)]:0,colorDepth:I[t(151)]()?screen.colorDepth:24,pixelRatio:e[t(161)],connectionType:I.isBrowser()?navigator.connection?.[t(157)]||"unknown":t(177),platform:C[t(183)]()}}static[E(152)](t){const e=E;let n=I[e(184)](t);if(!n){const r=I.safeQuerySelector("#"+t+e(139));r&&(n=r)}if(!n&&(n=I[e(179)](e(144)+t+'"]')),!n)return e(177);const r=n.getBoundingClientRect(),o=I.getScrollInfo();return"x:"+Math.round(r[e(158)])+e(147)+Math.round(r.top+o.scrollTop)}}const T=_;function _(t,e){const n=L();return(_=function(t,e){return n[t-=213]})(t,e)}!function(t){const e=_,n=t();for(;;)try{if(856304===parseInt(e(220))/1+-parseInt(e(224))/2+parseInt(e(222))/3+-parseInt(e(213))/4+-parseInt(e(216))/5+parseInt(e(218))/6+-parseInt(e(217))/7)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(L);class R{static[T(223)](t,e){const n=T;if(!t)throw new Error(n(219));return{"x-api-key":t,"Content-Type":e?.[n(215)]||n(221)}}static[T(214)](t,e){return R[T(223)](t)}}function L(){const t=["9703183auzKpj","10101588fUNZVU","API key is required","1282477AIYogB","application/json","3666837xPUUgP","create","1240612FMqzTs","1286804MLCXpT","createForEvents","contentType","5019370FFvmVz"];return(L=function(){return t})()}const D=P;function P(t,e){const n=U();return(P=function(t,e){return n[t-=393]})(t,e)}!function(t){const e=P,n=t();for(;;)try{if(951357===parseInt(e(413))/1+-parseInt(e(427))/2+parseInt(e(418))/3*(parseInt(e(432))/4)+parseInt(e(401))/5*(-parseInt(e(400))/6)+-parseInt(e(415))/7+-parseInt(e(426))/8*(parseInt(e(419))/9)+parseInt(e(441))/10*(parseInt(e(452))/11))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(U);class O{constructor(t,e,n,r){const o=P;this[o(404)]=t,this[o(428)]=e,this.debug=n,this[o(430)]=r}async[D(434)](t,e,n){const r=D;try{this[r(406)]&&console[r(429)](r(409)+n+" event for ad "+t+r(431)+e);const o=this[r(430)][r(410)](e);if(!o)return void(this[r(406)]&&console[r(399)](r(421)+e+". Skipping event tracking to prevent incorrect adType."));if(!(document[r(435)](o[r(412)])||document[r(402)](r(447)+e+'"]')))return void(this.debug&&console.warn(r(393)+e+r(440)+o[r(412)]+r(422)));const i=C.collectDeviceInfo(),s={adType:o[r(395)],platform:i[r(453)],deviceId:i[r(414)],deviceInfo:i,pageUrl:I.getPageInfo().url,pageTitle:I.getPageInfo()[r(397)],referrer:I[r(449)]().referrer,slotId:e,slotPosition:C[r(451)](o[r(412)]),slotWidth:O[r(439)](o.width),slotHeight:O[r(439)](o[r(446)]),sessionId:i.sessionId,pageLoadTime:performance[r(407)](),metadata:{eventType:n,sdkVersion:k(),timestamp:Date.now()},...n===a[r(398)]&&{isViewable:!0,iabCompliant:!0}},c=this.baseUrl+"/advertisements/events/"+t+"/"+n,d=R[r(408)](this[r(428)],s);this[r(406)]&&(console[r(429)](r(403)+n+r(405)+t,{url:c,headers:d,eventData:s}),console[r(429)](r(420),{method:r(437),url:c,hasApiKey:!!this[r(428)],bodySize:JSON[r(394)](s).length}));const l=await fetch(c,{method:r(437),headers:d,body:JSON.stringify(s)});if(this.debug&&console.log(r(411)+l[r(448)]+" "+l[r(423)],{url:c,ok:l.ok}),!l.ok){const t=await l[r(425)]();throw new Error(r(442)+l[r(448)]+" "+l[r(423)]+r(444)+t)}this.debug&&console[r(429)](r(445)+n+r(405)+t)}catch(o){console[r(396)]("❌ Failed to track advertisement event:",o),console[r(396)](r(433),{baseUrl:this[r(404)],apiKey:this[r(428)]?this[r(428)][r(438)](0,8)+r(450):r(436),url:this[r(404)]+r(416)+t+"/"+n,eventType:n,adId:t,slotId:e})}}static parseNumericValue(t){const e=D;if(typeof t===e(443))return t;if(typeof t===e(417)){const n=parseFloat(t[e(424)](/px$/,""));return isNaN(n)?0:n}return 0}}function U(){const t=["🚀 AdvertisementEventTracker: Processing ","get","📡 API Response Status: ","containerId","702582SOUFxh","deviceId","5623289TfTNKC","/advertisements/events/","string","2387913cDGimG","9ZWrddX","🌐 Full API call details:","⚠️ Slot not found for slotId: ","). Skipping event tracking.","statusText","replace","text","11109544gEsGDI","1735002KwbeEM","apiKey","log","slots"," in slot ","4ZcmIPk","🔍 Debug info:","trackAdvertisementEvent","getElementById","NOT_SET","POST","substring","parseNumericValue"," (containerId: ","30rMrAgM","API request failed: ","number"," - ","✅ Successfully tracked advertisement event: ","height",'[data-adstage-slot-id="',"status","getPageInfo","...","getSlotPosition","14140401nVIpHX","platform","⚠️ DOM element not found for slotId: ","stringify","adType","error","title","VIEWABLE","warn","12uBveLb","3360370OBSVlM","querySelector","🚀 Sending advertisement event: ","baseUrl"," for ad ","debug","now","createForEvents"];return(U=function(){return t})()}var z=M;function M(t,e){var n=B();return(M=function(t,e){return n[t-=315]})(t,e)}function B(){var t=["warn","2181rksjvR","2534080JxnnNj","20203584BcjKTr","122MOhBju","handleIntersection","440LYsagQ","element","5825617HkLqMq","IntersectionObserver not supported, viewability tracking disabled","6391sbvUSI","11tStRNk","observe","hidden","6KWymfO","0px","destroy","3003840DRDGTF","initIntersectionObserver","disconnect","IntersectionObserver","visible","671752ETaogq","isViewableTriggered","18itQRdT","observer","visibilityState","isDocumentVisible","intersectionRatio","forEach","onViewableCallback"];return(B=function(){return t})()}!function(t){for(var e=M,n=t();;)try{if(433618===parseInt(e(329))/1*(parseInt(e(323))/2)+-parseInt(e(320))/3*(parseInt(e(325))/4)+parseInt(e(321))/5+-parseInt(e(333))/6*(-parseInt(e(327))/7)+-parseInt(e(341))/8*(-parseInt(e(343))/9)+parseInt(e(336))/10+parseInt(e(330))/11*(-parseInt(e(322))/12))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(B);class F{constructor(t,e){var n=M;this[n(344)]=null,this[n(342)]=!1,this[n(326)]=t,this[n(318)]=e,this[n(337)]()}[z(337)](){var t=z;t(339)in window?(this[t(344)]=new IntersectionObserver(t=>this.handleIntersection(t),{threshold:.5,rootMargin:t(334)}),this[t(344)][t(331)](this[t(326)])):console[t(319)](t(328))}[z(324)](t){var e=z;t[e(317)](t=>{var n=e;t[n(316)]>=.5&&this.isDocumentVisible()&&!this[n(342)]&&(this[n(342)]=!0,this.onViewableCallback&&this[n(318)]())})}[z(315)](){var t=z;return!document[t(332)]&&document[t(345)]===t(340)}[z(335)](){var t=z;this[t(344)]&&(this[t(344)][t(338)](),this[t(344)]=null)}}const N=Y;!function(t){const e=Y,n=t();for(;;)try{if(828906===-parseInt(e(501))/1*(-parseInt(e(504))/2)+parseInt(e(481))/3*(-parseInt(e(483))/4)+parseInt(e(506))/5+-parseInt(e(489))/6*(-parseInt(e(503))/7)+parseInt(e(505))/8*(parseInt(e(507))/9)+parseInt(e(486))/10+-parseInt(e(494))/11)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(W);const V={production:N(495),beta:"https://beta-api.adstage.app"};N(488);const j={advertisements:{list:N(499),detail:N(485),events:N(482)},events:{track:N(493),registerAttribution:N(487)}};class K{constructor(t){const e=N;this[e(498)]={list:()=>""+this.baseUrl+j[e(498)][e(502)],detail:t=>""+this.baseUrl+j.advertisements[e(491)]+"/"+t,events:(t,n)=>""+this.baseUrl+j[e(498)].events+"/"+t+"/"+n},this[e(492)]={track:()=>""+this[e(490)]+j[e(492)][e(500)],registerAttribution:()=>""+this[e(490)]+j[e(492)][e(497)]},this.baseUrl=t||V[e(488)]}[N(484)](t){this.baseUrl=t}[N(496)](){return this[N(490)]}custom(t){return""+this[N(490)]+(t.startsWith("/")?t:"/"+t)}}const H=new K;function Y(t,e){const n=W();return(Y=function(t,e){return n[t-=481]})(t,e)}function W(){const t=["37508wiOvWy","setBaseUrl","/advertisements","386000UjmOOe","/events/register/attribution","production","6650814NWNgkn","baseUrl","detail","events","/events/track","24893418QElBnC","https://api.adstage.app","getBaseUrl","registerAttribution","advertisements","/advertisements/list","track","1csdWpK","list","7YLZgtF","2644046FGekzU","2231128lDQmgF","1099700QjXxjW","36ERzgKN","228qbiVkF","/advertisements/events"];return(W=function(){return t})()}var q=G;function G(t,e){var n=X();return(G=function(t,e){return n[t-=128]})(t,e)}!function(t){for(var e=G,n=t();;)try{if(318249===-parseInt(e(143))/1*(-parseInt(e(140))/2)+-parseInt(e(133))/3*(parseInt(e(134))/4)+-parseInt(e(137))/5*(parseInt(e(136))/6)+parseInt(e(145))/7*(parseInt(e(139))/8)+-parseInt(e(146))/9+parseInt(e(144))/10+parseInt(e(142))/11)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(X);class Z{static[q(147)](t,e,n,r,o=!1){var i=q;o&&console[i(138)](i(130)+t[i(135)]+i(128)+n+i(141)+e.id),r(t[i(135)],e.id,a[i(131)])}static[q(129)](t,e,n,r=!1){var o=q;r&&console[o(138)](o(148)+t[o(135)]+o(132)+e.id),n(t._id,e.id,a.VIEWABLE)}}function X(){var t=[" (index: 0) in slot: ","143508gIYYNy","48DgxHgq","_id","762FeLFpi","21485qzmtva","log","8OlHwOV","5122CHMLdR",") in slot: ","11131439LbZnjM","37uLyNip","2446540QYeHQA","3076654hlsPEy","3175938YxWEhl","trackSlideViewable","🎯 Triggering initial VIEWABLE event: ad "," (index: ","trackInitialSlideViewable","🎯 Triggering VIEWABLE event for slide change: ad ","VIEWABLE"];return(X=function(){return t})()}const J=Q;function Q(t,e){const n=$();return(Q=function(t,e){return n[t-=177]})(t,e)}function $(){const t=["8SYuGaG","_blank"," ad clicked: ","84sithia","1199592bPGEZz","30980aFhRtt","_id","addClickEvent","stopPropagation","style"," -> ","🔗 ","911435suEFpb","68CndfhB","3359241MeoSBk","CLICK","adType","1925zCIjsW","click","log","open","linkUrl","cursor","forEach","34185vesyLP","preventDefault","182346gKBgcK","addEventListener","pointer","15657dAMHXd"];return($=function(){return t})()}!function(t){const e=Q,n=t();for(;;)try{if(204351===-parseInt(e(186))/1+parseInt(e(205))/2*(-parseInt(e(191))/3)+-parseInt(e(196))/4+parseInt(e(204))/5+parseInt(e(188))/6*(parseInt(e(195))/7)+-parseInt(e(192))/8*(parseInt(e(206))/9)+parseInt(e(197))/10*(parseInt(e(179))/11))break;n.push(n.shift())}catch(t){n.push(n.shift())}}($);class tt{static[J(199)](t,e,n,r,o=!1,i){const s=J;e.linkUrl&&(t[s(201)][s(184)]=s(190),t[s(189)](s(180),t=>{const c=s;if(t[c(187)](),t[c(200)](),r&&r(e[c(198)],n.id,a.CLICK),window[c(182)](e.linkUrl,"_blank"),o){const t=i||String(n.adType).toLowerCase();console[c(181)](c(203)+t+c(194)+e[c(198)]+c(202)+e[c(183)])}}))}static addClickEventForRenderer(t,e,n,r,o=!1,i){const s=J;e[s(183)]&&(t.style[s(184)]=s(190),t[s(189)](s(180),t=>{const c=s;t[c(187)](),t[c(200)]();if(r()(e._id,n.id,a[c(177)]),window[c(182)](e.linkUrl,c(193)),o){const t=i||String(n[c(178)]).toLowerCase();console[c(181)](c(203)+t+c(194)+e[c(198)]+c(202)+e.linkUrl)}}))}static addClickEventForSlider(t,e,n,r,o=!1,i){this.addClickEvent(t,e,n,r,o,i)}static isClickable(t){return Boolean(t[J(183)])}static addClickEventsBatch(t,e,n,r,o=!1,i){const s=J;t[s(185)]((t,a)=>{const c=s,d=e[a];d&&this[c(199)](t,d,n,r,o,i)})}}const et=nt;function nt(t,e){const n=rt();return(nt=function(t,e){return n[t-=483]})(t,e)}function rt(){const t=["video","normal","200px","transition","createElement","1331750QUiltA","length","8px","white","#f0f0f0","border","50px","auto","createSliderContainer","Banner Ad","transform 0.4s ease-out","14px","fontSize","textContent","imageUrl","every","createSimpleAdElement","1155296kTmXRr","touches","addClickEventForSlider","data-adstage-slot-id","whiteSpace","adstage-slider-wrapper","remove","objectFit","style","#cccccc","mouseleave","height","opacity","className","width","TEXT","1px solid #666","0.7","333gckUkw","includes","removeChild","img","active","1px dashed #ccc","touchend","backgroundColor","videoUrl","#000","setAttribute","cover","div","1034990bZTWSv","display","\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 ","none","adstage-ad adstage-","color","VIDEO","abs","adType","touchstart","mouseenter","translateX(-","forEach","borderColor","block","2905376dJOAeJ","src","cssText","12vigesS","BANNER","getBoundingClientRect","contains","entries","button","adstage-dot","children","appendChild","970mHYnzn","135091dTYOKc","createMinimalDotIndicator","toLowerCase","trackSlideViewable","\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 ","clientX",".adstage-dot","addEventListener","#666666","adstage-slide-container","changedTouches","setProperty","string","100%","15526OqzPgd"," Ad","classList","body","data-adstage-ad-id","inline-block","transparent","100px","querySelectorAll","touchmove","hidden","click","215816BWPuJs","overflow","Video Ad","center","333ZoTZcI"];return(rt=function(){return t})()}!function(t){const e=nt,n=t();for(;;)try{if(873791===parseInt(e(503))/1+parseInt(e(576))/2*(parseInt(e(521))/3)+-parseInt(e(549))/4+-parseInt(e(534))/5*(parseInt(e(552))/6)+parseInt(e(486))/7+-parseInt(e(588))/8*(-parseInt(e(592))/9)+parseInt(e(561))/10*(-parseInt(e(562))/11))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(rt);class ot{static[et(502)](t,n){const r=et,o=document[r(485)](r(533));switch(o[r(516)]=r(538)+String(t.adType)[r(564)](),o.setAttribute(r(580),n._id),o[r(531)](r(506),t.id),o[r(511)].display=r(548),o[r(511)].width=r(575),o[r(511)].height=r(493),t.adType){case e[r(553)]:if(n[r(500)]){const t=document.createElement(r(524));t[r(550)]=n[r(500)],t.style[r(517)]=r(575),t[r(511)][r(514)]="auto",t[r(511)][r(510)]=r(532),o.appendChild(t)}else o[r(511)][r(514)]="100px",o[r(511)].backgroundColor=r(490),o[r(511)][r(491)]=r(526),o[r(499)]=r(495);break;case e[r(540)]:if(n[r(529)]){const t=document[r(485)](r(593));t[r(550)]=n[r(529)],t[r(511)][r(517)]=r(575),t[r(511)][r(514)]=r(493),o.appendChild(t)}else o[r(511)][r(514)]=r(483),o[r(511)].backgroundColor=r(530),o[r(511)].border=r(519),o[r(499)]=r(590),o[r(511)][r(539)]=r(489);break;case e[r(518)]:if(n[r(499)]){const t=document[r(485)](r(533));t.textContent=n[r(499)]||"",t.style.padding=r(488),t[r(511)][r(498)]=r(497),o[r(560)](t)}else o[r(511)].height=r(492),o.style.padding=r(488),o[r(499)]="Text Ad";break;default:o.style[r(514)]=r(583),o[r(511)][r(491)]=r(526),o[r(511)][r(528)]="#f9f9f9",o[r(499)]=t[r(542)]+r(577)}return o}static[et(494)](t,n,r,o,i=!1){const s=et,a=document[s(485)](s(533));a[s(516)]=s(508);const c={position:"relative",overflow:"hidden"};if(t[s(517)]&&0!==t[s(517)]){let e;e="string"==typeof t[s(517)]&&(t[s(517)][s(522)]("px")||t[s(517)][s(522)]("%"))?t.width:t[s(517)]+"px",c.width=e,c[s(535)]=s(581)}else c.display=s(581);if(t[s(514)]&&0!==t.height){const e=typeof t.height===s(574)?t.height:t[s(514)]+"px";c[s(514)]=e}Object.entries(c)[s(546)](([t,e])=>{const n=s;a[n(511)][n(573)](t,e)});const d=!t[s(517)]||0===t[s(517)],l=!t[s(514)]||0===t.height;if(d||l){const e=document[s(485)](s(533));if(e[s(511)][s(551)]="\n position: absolute;\n visibility: hidden;\n white-space: nowrap;\n top: -9999px;\n left: -9999px;\n ",!d&&t.width){let n;n=typeof t[s(517)]===s(574)?t[s(517)][s(522)]("px")||t[s(517)][s(522)]("%")?t.width:t.width+"px":t[s(517)]+"px",e[s(511)][s(517)]=n,e[s(511)][s(507)]=s(594)}document[s(579)][s(560)](e);let r=0,o=0;n[s(546)](n=>{const i=s,a=this[i(502)](t,n);e[i(560)](a);const c=a[i(554)]();c[i(517)]>r&&(r=c[i(517)]),c.height>o&&(o=c[i(514)]),e.removeChild(a)}),d&&r>0&&(a[s(511)][s(517)]=r+"px",c.width=r+"px"),l&&o>0&&(a.style[s(514)]=o+"px",c[s(514)]=o+"px"),document[s(579)][s(523)](e)}const u=[...n,n[0]],p=document[s(485)]("div");p[s(516)]=s(571);const h={display:"flex",transition:s(496),width:100*u[s(487)]+"%"};t.height&&0!==t[s(514)]&&(h[s(514)]="100%"),Object[s(556)](h)[s(546)](([t,e])=>{const n=s;p.style[n(573)](t,e)}),u.forEach((e,n)=>{const r=s,a=document[r(485)](r(533));a.className="adstage-slide";const c={width:100/u[r(487)]+"%","flex-shrink":"0",display:"flex","align-items":r(591),"justify-content":r(591)};t[r(514)]&&0!==t.height&&(c.height=r(575)),Object.entries(c).forEach(([t,e])=>{const n=r;a[n(511)][n(573)](t,e)});const d=this.createSimpleAdElement(t,e);tt[r(505)](d,e,t,o,i,String(t.adType)[r(564)]()),a.appendChild(d),p[r(560)](a)});const f=n[s(501)](t=>t[s(542)]===e.TEXT)?null:this[s(563)](n[s(487)]);let g=0;const m=n[s(487)],y=1e3*(r?.autoSlideInterval||3),I=(e,r=!1)=>{const a=s;g=e,r?p.style[a(484)]=a(537):p[a(511)][a(484)]=a(496),p.style.transform=a(545)+100/u[a(487)]*g+"%)";const c=g===m?0:g;if(f){f[a(584)](a(568))[a(546)]((t,e)=>{const n=a,r=t;e===c?(r[n(578)].add(n(525)),r[n(511)].background=n(570),r[n(511)][n(547)]=n(570),r[n(511)][n(515)]="1"):(r[n(578)][n(509)](n(525)),r[n(511)].background=n(582),r.style.borderColor=n(512),r[n(511)][n(515)]=n(520))})}Z[a(565)](n[c],t,c,o,i)},v=()=>{g===m&&setTimeout(()=>{I(0,!0)},400)};if(f){f.querySelectorAll(s(568))[s(546)]((t,e)=>{const n=s;t.addEventListener(n(587),()=>I(e))})}let b=setInterval(()=>{I(g+1),v()},y);return a[s(569)](s(544),()=>{clearInterval(b)}),a[s(569)]("mouseleave",()=>{b=setInterval(()=>{I(g+1),v()},y)}),this.addTouchSupport(p,I,()=>g,m,v),a[s(560)](p),f&&a[s(560)](f),I(0),(!t[s(517)]||0===t[s(517)])&&setTimeout(()=>{const e=s,n=p[e(559)][0];if(n){const r=n[e(559)][0];if(r){const n=r[e(554)]();a[e(511)].width=n[e(517)]+"px",(!t[e(514)]||0===t[e(514)])&&(a[e(511)][e(514)]=n[e(514)]+"px"),a[e(511)][e(589)]=e(586)}}},10),a}static[et(563)](t){const e=et,n=document[e(485)](e(533));n[e(516)]="adstage-dots",n.style[e(551)]=e(566);for(let r=0;r<t;r++){const t=document[e(485)](e(557));t[e(516)]=e(558),t[e(511)][e(551)]=e(536),t.addEventListener(e(544),()=>{const n=e;!t[n(578)].contains("active")&&(t.style[n(547)]="#999999",t.style.opacity="0.9")}),t[e(569)](e(513),()=>{const n=e;!t[n(578)][n(555)](n(525))&&(t.style[n(547)]=n(512),t.style.opacity=n(520))}),n[e(560)](t)}return n}static addTouchSupport(t,e,n,r,o){const i=et;let s=0,a=!1;t[i(569)](i(543),t=>{const e=i;s=t[e(504)][0][e(567)],a=!0}),t.addEventListener(i(585),t=>{a&&t.preventDefault()}),t[i(569)](i(527),t=>{const c=i;if(!a)return;a=!1;const d=t[c(572)][0].clientX,l=s-d;if(Math[c(541)](l)>50){const t=n();if(l>0){e(t+1),o&&o()}else{e(t>0?t-1:r-1)}}})}}function it(t,e){const n=at();return(it=function(t,e){return n[t-=412]})(t,e)}const st=it;function at(){const t=["192ePULho","✅ New viewable recorded for ad ","add","clearAdViewable","log","5KmJLzK","22535NOEtFt","5393922MEdgcm","64122tlBApv"," in slot ","viewableTracker","7753520Hmlnbo","30BeXesp","isDuplicateViewable","1447497xZxTFS","delete","56200177wfymXY","3523324dEdkug","clear","44nnKMZj"];return(at=function(){return t})()}!function(t){const e=it,n=t();for(;;)try{if(733377===-parseInt(e(420))/1*(parseInt(e(413))/2)+parseInt(e(422))/3*(-parseInt(e(414))/4)+parseInt(e(419))/5*(-parseInt(e(421))/6)+-parseInt(e(431))/7+-parseInt(e(425))/8+-parseInt(e(428))/9*(parseInt(e(426))/10)+parseInt(e(430))/11)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(at);class ct{static[st(427)](t,e,n=!1){const r=st,o=t+"_"+e;return ct[r(424)].has(o)?(n&&console.log("Duplicate viewable blocked for ad "+t+r(423)+e),!0):(ct[r(424)][r(416)](o),n&&console[r(418)](r(415)+t+r(423)+e),!1)}static[st(412)](){const t=st;ct[t(424)][t(412)]()}static[st(417)](t,e){const n=st,r=t+"_"+e;ct[n(424)][n(429)](r)}}function dt(){const t=["7926615qbbSlE"," event for ad ","applyPlaceholderStyle",'[data-adstage-container="true"]',"VIEWABLE","backgroundColor","getContainerHeight"," container: ","726778NQycpv","display","minimal","renderFallback","<span>Loading ","📦 Placeholder created for ","setAttribute","isEmpty","advertisement","string","3dmqxdG","4px","data-adstage-type","filter","100%","toLowerCase","getComputedStyle",'div[style*="min-height"]',"borderRadius","true","data-adstage-empty","appendChild","generic","rgba(0, 0, 0, 0.02)","#f9f9f9","771950FdMGhS","warn","querySelector","data-adstage-slot","📏 Using default height ","adstage-slot","none","flex","getDefaultHeight","createPlaceholder"," for ad ","hasAttribute","2px dashed #e74c3c","📊 Advertisement event tracked: ","log","subtle"," in slot ","color","transparent","2157421rNbFBS","16IKjKcX","placeholderMode",'[class*="container"]',"🔄 Starting advertisement event tracking: ","debug"," ad...</span>","justifyContent","center","createEmptyContainer","2398860Qyxrzn","advertisementEventTracker","invisible","style","border","height"," container collapsed (",") - Mode: ","): ",".adstage-slot","isDuplicateViewable","54hlquoO",".adstage-","fontFamily","createElement","className","📏 Using 100% height (container: ","rgba(248, 249, 250, 0.5)","div","❌ Failed to track ","width","3669892yGoyXl","monospace","classList","#e74c3c","⚠️ Created empty ","adstage-slot adstage-empty adstage-","innerHTML","trackAdvertisementEvent","adType","containerId","closest","441765aSYhbY",'<span style="color: rgba(0, 0, 0, 0.4); font-size: 12px; font-family: -apple-system, sans-serif;">•••</span>',"block"," event","data-adstage-container","contains","number","unknown","6px","rgba(231, 76, 60, 0.1)",'[class*="banner"]',"createEventTrackingCallback","⚠️ AdvertisementEventTracker not available for ","auto","getElementById","calculateAdSize","\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 "];return(dt=function(){return t})()}ct[st(424)]=new Set;const lt=ut;function ut(t,e){const n=dt();return(ut=function(t,e){return n[t-=209]})(t,e)}!function(t){const e=ut,n=t();for(;;)try{if(679944===parseInt(e(251))/1+-parseInt(e(226))/2*(-parseInt(e(236))/3)+-parseInt(e(301))/4+parseInt(e(312))/5*(-parseInt(e(291))/6)+-parseInt(e(270))/7*(-parseInt(e(271))/8)+parseInt(e(218))/9+-parseInt(e(280))/10)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(dt);class pt{constructor(t,e=!1,n){const r=ut;this[r(309)]=t,this[r(275)]=e,this[r(281)]=n||null}[lt(260)](t,e,n,r){const o=lt,i=document[o(294)](o(298));i.id=e,i[o(295)]="adstage-slot adstage-"+String(this.adType)[o(241)](),i[o(232)](o(316),o(245)),i[o(232)](o(238),String(this[o(309)])),i.setAttribute(o(254),e);const{width:s,height:a}=this[o(216)](t,n,r)||{width:o(240),height:this[o(259)]()};i[o(283)][o(300)]=s,i.style[o(285)]=a;const c=r?.[o(272)]||n[o(272)]||o(282);this[o(220)](i,c),t[o(247)](i),this[o(275)]&&console.log(o(231)+this[o(309)]+" slot: "+e+" ("+s+" x "+a+o(287)+c)}[lt(220)](t,e){const n=lt;switch(e){case n(282):t[n(283)][n(223)]="transparent",t[n(283)][n(284)]=n(257),t[n(283)].opacity="0",t.innerHTML="";break;case n(269):t[n(283)][n(223)]=n(269),t[n(283)][n(284)]="none",t[n(283)][n(227)]=n(314),t[n(307)]="";break;case n(266):t[n(283)][n(223)]=n(249),t[n(283)].border=n(257),t.style[n(244)]=n(237),t[n(283)][n(227)]="flex",t[n(283)].alignItems=n(278),t[n(283)][n(277)]=n(278),t.innerHTML='<span style="color: rgba(0, 0, 0, 0.3); font-size: 11px; font-family: sans-serif;">•••</span>';break;case n(228):t[n(283)][n(223)]=n(297),t[n(283)][n(284)]="1px solid rgba(0, 0, 0, 0.08)",t.style[n(244)]=n(209),t.style[n(227)]="flex",t[n(283)].alignItems=n(278),t[n(283)].justifyContent=n(278),t.innerHTML=n(313);break;case n(275):t[n(283)][n(284)]=n(263),t.style[n(227)]="flex",t[n(283)].alignItems=n(278),t.style[n(277)]="center",t.style[n(223)]=n(210),t[n(283)][n(268)]=n(304),t[n(283)][n(293)]=n(302),t[n(283)].fontSize="11px",t[n(307)]=n(230)+this[n(309)]+" ad...</span>";break;default:t[n(283)][n(284)]="1px dashed #ccc",t[n(283)][n(227)]=n(258),t[n(283)].alignItems=n(278),t[n(283)][n(277)]=n(278),t[n(283)][n(223)]=n(250),t[n(283)][n(268)]="#666",t[n(307)]=n(230)+this.adType+n(276)}}calculateAdSize(t,e,n){const r=lt,o=e[r(300)],i=e[r(285)];let s,a;if(s=typeof o===r(318)?o+"px":typeof o===r(235)?o:r(240),typeof i===r(318))a=i+"px";else if(typeof i===r(235)&&i!==r(240)&&i!==r(214))a=i;else{const e=this.getContainerHeight(t);e>0?(a="100%",(n?.[r(275)]||this.debug)&&console[r(265)](r(296)+e+"px)")):(a=this[r(259)](),(n?.debug||this[r(275)])&&console[r(265)](r(255)+a+" for "+this[r(309)]))}return{width:s,height:a}}[lt(224)](t){const e=lt,n=window[e(242)](t),r=parseFloat(n[e(285)]);if(!r||0===r){const r=parseFloat(n.minHeight);if(r>0)return r;if(t.style[e(285)]&&"auto"!==t.style.height){const n=parseFloat(t.style[e(285)]);if(n>0)return n}const o=t.getAttribute("height");if(o){const t=parseFloat(o);if(t>0)return t}}return r||0}[lt(212)](){return async(t,e,n)=>{const r=ut;if(n===a[r(222)]){if(ct[r(290)](t,e,this[r(275)]))return void(this[r(275)]&&console.log("🚫 Duplicate viewable blocked for ad "+t+r(267)+e));this.debug&&console[r(265)]("✅ New viewable recorded for ad "+t+r(267)+e)}if(this[r(281)])try{this[r(275)]&&console.log(r(274)+n+r(261)+t+r(267)+e),await this[r(281)][r(308)](t,e,n),this.debug&&console[r(265)](r(264)+n+r(261)+t+r(267)+e)}catch(e){this.debug&&console.error(r(299)+n+r(219)+t+":",e)}else this[r(275)]&&console[r(252)](r(213)+n+r(315))}}[lt(229)](t){const e=lt,n=document[e(215)](t.id);if(n){const r=[...[n[e(253)](e(221)),n[e(311)](e(221)),n][e(239)](t=>t&&t[e(262)]("data-adstage-container")),...[n[e(311)](e(289)),n[e(311)](e(292)+String(this.adType)[e(241)]()),n.closest('[class*="ad"]'),n[e(311)](e(211)),n[e(311)](e(273)),n.closest('div[style*="height"]'),n[e(311)](e(243)),n.parentElement][e(239)](Boolean)][0];if(r){let n=e(319);n=r[e(262)](e(316))?"adstage-official":r[e(303)][e(317)](e(256))?"adstage-class":e(248),r[e(283)].cssText+="\n height: 0px !important;\n min-height: 0px !important;\n padding: 0px !important;\n margin: 0px !important;\n border: none !important;\n overflow: hidden !important;\n display: block !important;\n ",r[e(307)]="",r.setAttribute(e(246),e(245)),this.debug&&console.warn("⚠️ "+this[e(309)]+e(286)+n+e(288)+t.id,r)}else this[e(279)](t)}t[e(234)]=void 0,t[e(233)]=!0}[lt(279)](t){const e=lt,n=document[e(215)](t[e(310)]);if(n){n[e(307)]="";const r=document.createElement("div");r.id=t.id,r[e(295)]=e(306)+String(this[e(309)])[e(241)](),r.setAttribute("data-adstage-container",e(245)),r[e(232)]("data-adstage-empty","true"),r[e(232)](e(254),t.id),r[e(283)].cssText=e(217),n.appendChild(r),this[e(275)]&&console.warn(e(305)+this[e(309)]+e(225)+t.id)}}[lt(265)](t,...e){const n=lt;this.debug&&console[n(265)]("["+this.adType+"] "+t,...e)}}const ht=gt;function ft(){const t=["4238927lonsGT","debug","objectPosition","center","dominant","onerror","fulfilled","📸 Banner image dimensions: ","📊 Using standard ratio: "," (strategy: ","3:2","naturalWidth","calculateAdSize","selectOptimalSizeStrategy","allSettled","adstage-ad adstage-banner-ad","contain","map","renderAdElement","reduce",'<div style="display: flex; align-items: center; justify-content: center; height: 100%; color: #999;">Loading...</div>',"1:1","renderMultipleAds","#f0f0f0","toString","abs","createElement","calculateOptimalHeight","values","Image URL is not provided","cover","❌ Failed to load optimized banner image:","applyOptimizedImageStyle","</div>","15NrAVDA","parentElement"," ads (optimized: ","8px","src","title","✅ Optimized banner image rendered for ad: ","innerHTML","config","style","createSliderContainer","max","average","1210136MhUqhX","length","<div>","getDefaultHeight","containerId","optimizeContainerForBannerAds","value","🔧 Banner container optimized for ","639414DxIlqj","481420sybTau","toFixed","Failed to load image: ","16:9"," (avg: ","renderOptimizedBannerImage","width","getElementById","4:3","status","createEventTrackingCallback","Failed to calculate optimal banner size, using defaults:","7879806UYkYUj","_id","className","250px","error","objectFit","log","common","warn","filter","📐 Optimal banner container calculated: ","2ODAxYc","count","naturalHeight","div","block","ratio","calculateOptimalContainerSize","Banner","imageUrl","loadImageDimensions","get","🎨 Banner image style applied: objectFit=","appendChild","onload","60YVtrHQ","3369080ThBCCQ","getBoundingClientRect","height","Container not found: ","addClickEventForRenderer","default","round","100%","109870mrKzfX","set","aspectRatio","optimizedHeight"," ads: ","9ytiDIC","display","img"];return(ft=function(){return t})()}function gt(t,e){const n=ft();return(gt=function(t,e){return n[t-=496]})(t,e)}!function(t){const e=gt,n=t();for(;;)try{if(341581===-parseInt(e(553))/1*(parseInt(e(577))/2)+parseInt(e(532))/3*(parseInt(e(554))/4)+parseInt(e(600))/5*(-parseInt(e(591))/6)+-parseInt(e(498))/7+-parseInt(e(545))/8*(-parseInt(e(605))/9)+parseInt(e(592))/10+parseInt(e(566))/11)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(ft);class mt extends pt{constructor(t=!1,n){super(e.BANNER,t,n)}[ht(548)](){return ht(569)}async[ht(516)](t,e){const n=ht,r=document[n(561)](t[n(549)]);if(!r)return;const o=document[n(524)](n(580));o[n(568)]=n(513);const i=t[n(603)],s=r[n(533)]||r;if(i)o[n(541)].width=n(599),o[n(541)].height=String(i);else{const e=t[n(540)],r={width:e?.[n(560)],height:e?.[n(594)]},{width:i,height:a}=this[n(510)](s,r,{debug:this[n(499)]});o[n(541)].width=i,o[n(541)][n(594)]=a}e[n(585)]?await this[n(559)](o,e,t):o[n(539)]=n(547)+(e.title||"Banner Ad")+n(531),tt[n(596)](o,e,t,()=>this[n(564)](),this[n(499)],n(584)),r[n(539)]="",r.appendChild(o)}async[ht(520)](t,e){const n=ht,r=document[n(561)](t[n(549)]);if(!r)throw new Error(n(595)+t[n(549)]);await this[n(550)](t,e);const o=this[n(564)](),i={autoSlideInterval:(t[n(540)]?.slideInterval||5e3)/1e3,...t[n(540)],optimizedHeight:t[n(603)],aspectRatio:t[n(602)]},s=ot[n(542)](t,e,i,o,this[n(499)]);s&&(r[n(539)]="",r[n(589)](s),this[n(499)]&&console[n(572)]("🎠 Banner carousel created for slot: "+t.id+" with "+e[n(546)]+n(534)+(t.optimizedHeight||n(597))+")"))}async calculateOptimalContainerSize(t,e){const n=ht;if(!t[n(546)])return{width:n(599),height:this[n(548)](),aspectRatio:16/9};try{const r=(await Promise[n(512)](t[n(575)](t=>t[n(585)])[n(515)](t=>this[n(586)](t[n(585)]))))[n(575)](t=>t[n(563)]===n(504)).map(t=>t[n(551)]);if(0===r.length)return{width:n(599),height:this.getDefaultHeight(),aspectRatio:16/9};const o=this[n(511)](r),i=this.calculateOptimalHeight(r,e,o);return this[n(499)]&&console[n(572)](n(576)+e+"x"+i+n(507)+o+")"),{width:"100%",height:i+"px",aspectRatio:e/i}}catch(t){return console[n(574)](n(565),t),{width:n(599),height:this.getDefaultHeight(),aspectRatio:16/9}}}async[ht(550)](t,e){const n=ht;try{const r=document[n(561)](t[n(549)]),o=document[n(561)](t.id);if(!r||!o)return;const i=r[n(593)]()[n(560)]||300,s=await this[n(583)](e,i);o[n(541)].height=s.height,t.optimizedHeight=s[n(594)],t[n(602)]=s.aspectRatio,this[n(499)]&&console[n(572)](n(552)+e[n(546)]+n(604)+s[n(594)])}catch(t){console[n(574)]("Banner container optimization failed, using default size:",t)}}selectOptimalSizeStrategy(t){const e=ht,n=t[e(515)](t=>t[e(560)]/t[e(594)]),r=new Map;n.forEach(t=>{const n=e,o=(Math[n(598)](10*t)/10)[n(522)]();r.set(o,(r[n(587)](o)||0)+1)});const o=Math[e(543)](...r[e(526)]()),i=t[e(546)];if(o/i>=.7)return e(502);const s=[16/9,4/3,1,1.5],a=n[e(575)](t=>s.some(n=>Math[e(523)](t-n)<.1)).length;return e(a/i>=.5?573:544)}[ht(525)](t,e,n){const r=ht,o=t[r(515)](t=>t.width/t[r(594)]);switch(n){case r(502):{const t=new Map;o.forEach(e=>{const n=r,o=Math[n(598)](10*e)/10,i=o[n(522)](),s=t[n(587)](i);s?s[n(578)]++:t[n(601)](i,{ratio:o,count:1})});const n=Array.from(t[r(526)]()).reduce((t,e)=>e.count>t[r(578)]?e:t);return Math.round(e/n.ratio)}case r(573):{const t=[{ratio:16/9,name:r(557)},{ratio:4/3,name:r(562)},{ratio:1,name:r(519)},{ratio:1.5,name:r(508)}],n=o[r(517)]((t,e)=>t+e,0)/o.length,i=t[r(517)]((t,e)=>Math[r(523)](e.ratio-n)<Math.abs(t[r(582)]-n)?e:t);return this[r(499)]&&console.log(r(506)+i.name+r(558)+n.toFixed(2)+")"),Math[r(598)](e/i.ratio)}default:{const t=o.reduce((t,e)=>t+e,0)/o[r(546)];return Math[r(598)](e/t)}}}[ht(586)](t){return new Promise((e,n)=>{const r=gt,o=new Image;o[r(590)]=()=>{const t=r;e({width:o[t(509)],height:o[t(579)]})},o[r(503)]=()=>{n(new Error(r(556)+t))},o.src=t})}[ht(530)](t,e,n){const r=ht,o=e/n;Math[r(523)](o-1)<.1?(t[r(541)][r(571)]=r(528),t[r(541)][r(500)]=r(501)):o>1.3?(t[r(541)][r(571)]=r(514),t[r(541)][r(500)]=r(501),t.style.backgroundColor=r(521)):o<.7?(t[r(541)].objectFit="cover",t[r(541)][r(500)]="center"):(t[r(541)][r(571)]="cover",t[r(541)][r(500)]="center"),this.debug&&console[r(572)](r(588)+t.style[r(571)]+", ratio="+o[r(555)](2))}async[ht(559)](t,e,n){const r=ht,o=document[r(524)](r(497));o[r(541)].width=r(599),o[r(541)][r(594)]=r(599),o[r(541)][r(496)]=r(581),o[r(541)].borderRadius=r(535),o.alt=e[r(537)]||"Banner Advertisement",t[r(539)]=r(518);try{if(!e[r(585)])throw new Error(r(527));const i=await this[r(586)](e.imageUrl),s=t[r(593)](),a=s[r(560)],c=s[r(594)];this.debug&&(console[r(572)](r(505)+i[r(560)]+"x"+i[r(594)]),console[r(572)]("📦 Banner container dimensions: "+a+"x"+c));const d=i[r(560)]/i[r(594)],l=a/c;return this.applyOptimizedImageStyle(o,d,l),o[r(536)]=e[r(585)],t.innerHTML="",t[r(589)](o),tt[r(596)](o,e,n,()=>this.createEventTrackingCallback(),this[r(499)],r(584)),this.debug&&console[r(572)](r(538)+e[r(567)]),o}catch(i){return console[r(570)](r(529),i),e[r(585)]&&(o[r(536)]=e[r(585)],o[r(541)][r(571)]="cover",o[r(541)][r(500)]="center",t[r(539)]="",t[r(589)](o),tt[r(596)](o,e,n,()=>this[r(564)](),this[r(499)],r(584))),o}}}const yt=vt;function It(){const t=["3695ARMQtz","52DsmpTL","createTextAdStyles","78563KuQbKg","textContent","7JpVcnd","4VkIzdM","9588TkHIlL","2456217kvlVcV","4639070aGLmBx","11375073LBXEcG","10KdjfHJ","18036492fSBUNC","\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 ","22YmmiNj","5850992WbKfLO","setTextAdContent","title"];return(It=function(){return t})()}function vt(t,e){const n=It();return(vt=function(t,e){return n[t-=448]})(t,e)}!function(t){const e=vt,n=t();for(;;)try{if(696603===-parseInt(e(464))/1*(parseInt(e(454))/2)+-parseInt(e(451))/3*(parseInt(e(449))/4)+-parseInt(e(461))/5*(parseInt(e(450))/6)+-parseInt(e(448))/7*(parseInt(e(458))/8)+-parseInt(e(453))/9+parseInt(e(452))/10*(-parseInt(e(457))/11)+-parseInt(e(455))/12*(-parseInt(e(462))/13))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(It);class bt{static[yt(463)](t=!1){return yt(456)}static[yt(459)](t,e){const n=yt,r=e.textContent||e[n(460)]||"";t[n(465)]=r}}const wt=kt;function kt(t,e){const n=St();return(kt=function(t,e){return n[t-=328]})(t,e)}function St(){const t=["absolute","\n position: ","9944ZjUtfr","left","div","whiteSpace","data-adstage-ad-id","body","mouseenter","toLowerCase","createTextTransitionContainer","touchstart","createSimpleAdElement","translateY(0)",";\n transform: translateY(",";\n left: ","adstage-fade-slider-wrapper","height: auto; min-height: fit-content;","Text","touches","445731mSYZAB","height","fit-content","string","length","addEventListener",";\n ","\n position: relative;\n width: 100%;\n ","transform","push","mouseleave","addTouchSupport","hidden","clientY","adstage-fade-slide-container","includes","749UVpenZ","adType","zIndex",";\n top: ","createElement","style","1563392XdpSKM","adstage-ad adstage-","removeChild","top","auto","data-adstage-slot-id","forEach","cssText","\n ",";\n width: 100%;\n ","setAttribute","getBoundingClientRect","setProperty","setTextAdContent","592768ZKkiMM","touchend","1348266PGASHu","position","entries","block","\n display: flex;\n align-items: center;\n justify-content: flex-start;\n opacity: ","289870bFnaNs","106463BEHVXl","opacity","relative","clientX","width","20px","changedTouches","minHeight","_id","translateY(20px)","translateY(-20px)","createTextAdStyles","abs","className","appendChild","height: 100%;","autoSlideInterval"];return(St=function(){return t})()}!function(t){const e=kt,n=t();for(;;)try{if(229432===parseInt(e(363))/1+parseInt(e(355))/2+-parseInt(e(400))/3+parseInt(e(341))/4+-parseInt(e(362))/5+-parseInt(e(357))/6+-parseInt(e(335))/7*(parseInt(e(382))/8))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(St);class Et{static[wt(392)](t,e){const n=wt,r=document.createElement(n(384));return r[n(376)]=n(342)+String(t[n(336)])[n(389)](),r[n(351)](n(386),e[n(371)]),r.setAttribute(n(346),t.id),r[n(340)].cssText=bt[n(374)](!0),bt[n(354)](r,e),r}static[wt(390)](t,e,n,r,o=!1){const i=wt,s=t[i(401)]&&0!==t[i(401)]&&t.height!==i(345),a=document[i(339)](i(384));a.className=i(396);const c={position:i(365),overflow:i(331),display:i(360)};if(!s&&(c[i(401)]=i(345),c[i(370)]=i(402)),t.width&&0!==t[i(367)]){let e;e=typeof t[i(367)]===i(403)&&(t.width.includes("px")||t[i(367)][i(334)]("%"))?t[i(367)]:t.width+"px",c[i(367)]=e}if(t[i(401)]&&0!==t[i(401)]&&t[i(401)]!==i(345)&&s){let e;e=typeof t[i(401)]===i(403)?t[i(401)][i(334)]("px")||t[i(401)][i(334)]("%")?t[i(401)]:t.height+"px":t[i(401)]+"px",c[i(401)]=e}Object[i(359)](c)[i(347)](([t,e])=>{const n=i;a[n(340)][n(353)](t,e)});const d=document[i(339)](i(384));d[i(376)]=i(333),d.style[i(348)]=i(407)+i(s?378:397)+i(349);let l=null;const u=!t[i(367)]||0===t[i(367)],p=!t[i(401)]||0===t[i(401)]||void 0===t.height||t[i(401)]===i(345);if(u||p&&s){if(l=document.createElement("div"),l[i(340)].cssText="\n position: absolute;\n visibility: hidden;\n white-space: nowrap;\n top: -9999px;\n left: -9999px;\n ",!u&&t.width){let e;e="string"==typeof t[i(367)]?t.width[i(334)]("px")||t[i(367)].includes("%")?t[i(367)]:t.width+"px":t[i(367)]+"px",l[i(340)].width=e,l[i(340)][i(385)]="normal"}document[i(387)].appendChild(l);let n=0,r=0;e[i(347)](e=>{const o=i,s=this[o(392)](t,e);l[o(377)](s);const a=s[o(352)]();a[o(367)]>n&&(n=a[o(367)]),a[o(401)]>r&&(r=a.height),l[o(343)](s)}),u&&n>0&&(a[i(340)][i(367)]=n+"px"),p&&r>0&&s&&(a[i(340)][i(401)]=r+"px"),document[i(387)][i(343)](l)}const h=[];e.forEach((e,n)=>{const a=i,c=document[a(339)](a(384));c[a(376)]="adstage-fade-slide";const l=a(s?380:0===n?365:380);c[a(340)][a(348)]=a(381)+l+a(338)+("absolute"===l?"0":a(345))+a(395)+(l===a(380)?"0":"auto")+a(350)+(s?a(378):"height: auto;")+a(361)+(0===n?"1":"0")+a(394)+(0===n?"0":a(368))+");\n transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);\n z-index: "+(0===n?"2":"1")+a(406);const u=this.createSimpleAdElement(t,e);tt.addClickEventForSlider(u,e,t,r,o,a(398)),c.appendChild(u),d[a(377)](c),h[a(328)](c)});let f=0;const g=e[i(404)],m=1e3*(n?.[i(379)]||4),y=n=>{const a=i;n>=g?n=0:n<0&&(n=g-1);const c=h[f],d=h[n];!s&&("relative"===c[a(340)][a(358)]&&(c[a(340)].position="absolute",c[a(340)][a(344)]="0",c.style[a(383)]="0"),d[a(340)].position=a(365),d[a(340)][a(344)]="auto",d[a(340)][a(383)]=a(345)),c[a(340)][a(364)]="0",c[a(340)][a(408)]=a(373),c[a(340)].zIndex="1",d[a(340)][a(364)]="1",d[a(340)][a(408)]=a(393),d[a(340)][a(337)]="2",h.forEach((t,e)=>{const r=a;e!==n&&e!==f&&(t.style[r(364)]="0",t[r(340)][r(408)]=r(372),t[r(340)][r(337)]="1",!s&&t[r(340)][r(358)]===r(365)&&(t[r(340)].position=r(380),t.style[r(344)]="0",t[r(340)][r(383)]="0"))}),f=n,Z.trackSlideViewable(e[f],t,f,r,o)};let I=setInterval(()=>{y(f+1)},m);return a[i(405)](i(388),()=>{clearInterval(I)}),a.addEventListener(i(329),()=>{I=setInterval(()=>{y(f+1)},m)}),Et[i(330)](a,y,()=>f,g),a.appendChild(d),a}static[wt(330)](t,e,n,r){const o=wt;let i=0,s=0,a=!1;t[o(405)](o(391),t=>{const e=o;i=t[e(399)][0][e(366)],s=t[e(399)][0][e(332)],a=!0}),t[o(405)]("touchmove",t=>{a&&t.preventDefault()}),t[o(405)](o(356),t=>{const r=o;if(!a)return;a=!1;const c=t[r(369)][0][r(366)],d=t[r(369)][0][r(332)],l=i-c,u=s-d;if(Math[r(375)](l)>Math.abs(u)&&Math.abs(l)>50){const t=n();e(l>0?t+1:t-1)}})}}const xt=Ct;function At(){const t=["Text"," with ","height","length","aspectRatio","1386kyinob","appendChild","createElement","✨ Single text ad rendered: ","60px","1230BnddqH","number","cssText","2232528cFFKtb","createTextAdStyles","webkitBoxOrient","renderAdElement","addClickEventForRenderer","100%","1398745ALoCnH","30OKnAxe","div","10077nydIRb","1128591HwCPiZ","webkitLineClamp","maxLines","adstage-ad adstage-text-ad","calculateAdSize","Container not found: ","display","_id","vertical","✨ Text transition created for slot: ","33dLfMwX","config","optimizedHeight","innerHTML","createTextTransitionContainer","style","containerId","75Jvbkmp","2483556zDkSbS","className","log","overflow","debug","renderMultipleAds","getDefaultHeight","adstage-text-content","4820YfAWke"," ads","createEventTrackingCallback","492hQDEOE","width","hidden","getElementById"];return(At=function(){return t})()}function Ct(t,e){const n=At();return(Ct=function(t,e){return n[t-=431]})(t,e)}!function(t){const e=Ct,n=t();for(;;)try{if(246454===parseInt(e(432))/1*(parseInt(e(441))/2)+-parseInt(e(470))/3*(parseInt(e(444))/4)+-parseInt(e(467))/5+parseInt(e(458))/6*(parseInt(e(453))/7)+-parseInt(e(461))/8+-parseInt(e(471))/9*(-parseInt(e(468))/10)+parseInt(e(481))/11*(parseInt(e(433))/12))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(At);class Tt extends pt{constructor(t=!1,n){super(e.TEXT,t,n)}[xt(439)](){return xt(457)}async[xt(464)](t,e){const n=xt,r=document[n(447)](t.containerId);if(!r)return;const o=document[n(455)](n(469));o[n(434)]=n(474);const i=t[n(483)],s=r.parentElement||r;if(i)o[n(486)][n(445)]=n(466),o.style[n(450)]=String(i);else{const e=t[n(482)],r={width:e?.[n(445)],height:e?.[n(450)]},{width:i,height:a}=this[n(475)](s,r,{debug:this[n(437)]});o[n(486)][n(445)]=i,o.style.height=a}const a=document[n(455)](n(469));a[n(434)]=n(440),a.style[n(460)]=bt[n(462)](!1),bt.setTextAdContent(a,e);const c=t[n(482)]?.[n(473)];c&&typeof c===n(459)&&(a[n(486)][n(477)]="-webkit-box",a[n(486)][n(472)]=String(c),a.style[n(463)]=n(479),a[n(486)][n(436)]=n(446)),o.appendChild(a),tt[n(465)](o,e,t,()=>this[n(443)](),this[n(437)],n(448)),r[n(484)]="",r[n(454)](o),this[n(437)]&&console[n(435)](n(456)+e[n(478)])}async[xt(438)](t,e){const n=xt,r=document[n(447)](t[n(431)]);if(!r)throw new Error(n(476)+t.containerId);const o=this[n(443)](),i={autoSlideInterval:(t.config?.slideInterval||5e3)/1e3,...t.config,optimizedHeight:t[n(483)],aspectRatio:t[n(452)]},s=Et[n(485)](t,e,i,o,this[n(437)]);s&&(r.innerHTML="",r[n(454)](s),this[n(437)]&&console[n(435)](n(480)+t.id+n(449)+e[n(451)]+n(442)))}}function _t(){const t=["🎬 Video config received:","1166sZEVmH","mouseenter","🎬 Auto-play was prevented:","objectFit"," !important;\n }\n video::-webkit-media-controls-time-remaining-display {\n display: ","video","Click to mute","appendChild","canplay","contain","🎬 Initial autoplay attempt after timeout...","log","620396juteGi","debug","loadedmetadata","hideVolumeSlider","🎬 Final video settings:","rgba(0, 0, 0, 0.9)","95061BAzIYi","🎬 Single video ad rendered: ","adstage-video-default-controls","transform","catch","3294WNaOeZ","innerHTML","VIEWABLE","getElementById","hideControls","className","🎬 Single video rendered for VIDEO slot: ","error","createElement","100%","videoUrl"," !important;\n }\n video::-webkit-media-controls-current-time-display {\n display: ","\n pointer-events: none;\n ","renderMultipleAds","metadata","360px","img","div","Video fallback","383008MwVVNF","play","muted","adstage-video-mute-button","Click to unmute",'\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 ',"src","textContent","56fESxWo","🎬 Video can play, attempting autoplay...","Video","🎬 User explicitly enabled controls, overriding default","loop","relative","playsinline","🎬 Autoplay completely failed:","addClickEventForRenderer","_id","🎬 Trying muted autoplay fallback..."," !important;\n }\n video::-webkit-media-controls-mute-button {\n display: ","none","unmuted","hideRemainingTime","hideCurrentTime","length","display","stopPropagation","background","alt","mouseleave","customControls","enabled","controls","2930TFyUex","renderVideoElementDirect","Video load failed:","\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 ","createEventTrackingCallback"," !important;\n }\n video::-webkit-media-controls-timeline {\n display: ","renderAdElement","disabled (default)","containerId","preload","590GqRViY","adstage-video-container",", loop: ","height","🎬 Video data loaded, attempting autoplay...","cssText","10194180KTvQqz","hideMuteButton","421218rjCPWe","Video thumbnail","getDefaultHeight","warn","config","\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 ","autoplay","button"," !important;\n }\n ","title","block","imageUrl","addEventListener","🎬 Video element created for ad: ","VIDEO","hidePlayButton","Container not found: ","width"," !important;\n }\n video::-webkit-media-controls-fullscreen-button {\n display: ","rgba(0, 0, 0, 0.7)",'\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: ","style","\n width: 100%;\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n background: #000;\n border-radius: 8px;\n overflow: hidden;\n "];return(_t=function(){return t})()}function Rt(t,e){const n=_t();return(Rt=function(t,e){return n[t-=372]})(t,e)}const Lt=Rt;!function(t){const e=Rt,n=t();for(;;)try{if(359503===parseInt(e(470))/1*(-parseInt(e(437))/2)+parseInt(e(488))/3+-parseInt(e(394))/4+-parseInt(e(427))/5*(-parseInt(e(375))/6)+-parseInt(e(482))/7*(parseInt(e(402))/8)+parseInt(e(445))/9+parseInt(e(443))/10)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(_t);class Dt extends pt{constructor(t=!1,n){super(e[Rt(459)],t,n)}[Lt(447)](){return Lt(390)}async[Lt(433)](t,e){const n=Lt,r=document.getElementById(t[n(435)]);if(!r)return;const o=document[n(383)]("div");o[n(380)]="adstage-video-container",o[n(467)].cssText=n(450),this[n(428)](o,e,t),r[n(376)]="",r.appendChild(o),this.debug&&console[n(481)](n(489)+e._id)}async[Lt(388)](t,e){const n=Lt,r=document[n(378)](t[n(435)]);if(!r)throw new Error(n(461)+t[n(435)]);if(e[n(418)]>0){const o=e[0],i=document[n(383)](n(392));i[n(380)]=n(438),i[n(467)][n(442)]=n(468),this[n(428)](i,o,t),r.innerHTML="",r.appendChild(i);const s=this[n(431)]();setTimeout(()=>{const e=n;s(o[e(411)],t.id,a[e(377)])},100),this.debug&&console[n(481)](n(381)+t.id+" ("+o[n(411)]+")")}else this[n(483)]&&console[n(448)]("⚠️ No video advertisements available for slot: "+t.id)}[Lt(428)](t,e,n){const r=Lt;t[r(467)].position=r(407);const o=document.createElement(r(475));o[r(467)].width=r(384),o[r(467)].height=r(384),o[r(467)][r(473)]=r(479),o[r(436)]=r(389);const i=n[r(449)];if(this[r(483)]&&console.log(r(469),i),o[r(426)]=!1,o.autoplay=!1!==i?.autoplay,o.muted=!0,o[r(406)]=!1!==i?.[r(406)],this[r(483)]&&console[r(481)](r(486),{autoplay:o[r(451)],muted:o[r(396)],loop:o[r(406)],controls:o[r(426)]}),!1!==i?.[r(408)]&&o.setAttribute(r(408),""),!0===i?.[r(426)]&&(o[r(426)]=!0,this[r(483)]&&console.log(r(405))),i?.[r(379)])o[r(426)]=!1,o[r(467)][r(442)]+=r(387);else if(i?.[r(424)]){if(o[r(426)]){const t=document.createElement(r(467));t.textContent="\n video::-webkit-media-controls-play-button {\n display: "+(i[r(424)][r(460)]?"none":r(455))+r(432)+(i[r(424)].hideProgressBar?r(414):r(455))+r(386)+(i[r(424)][r(417)]?r(414):"block")+r(474)+(i.customControls[r(416)]?r(414):r(455))+" !important;\n }\n video::-webkit-media-controls-volume-slider {\n display: "+(i[r(424)][r(485)]?r(414):r(455))+r(413)+(i[r(424)][r(444)]?r(414):r(455))+r(463)+(i[r(424)].hideFullscreenButton?r(414):"block")+r(453),document.head[r(477)](t)}}else if(o[r(426)]){const t=document.createElement(r(467));t.id="adstage-video-default-controls",t[r(401)]=r(430),!document[r(378)](r(372))&&document.head.appendChild(t)}this.debug&&console[r(481)]("🎬 Video controls setting:",o[r(426)]?r(425):r(434));const s=document.createElement(r(452));s[r(380)]=r(397),s.style[r(442)]="\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 ",i?.hideControls&&(s.style[r(419)]=r(414));const a=()=>{const t=r,e=t(399),n=t(465);s[t(376)]=o[t(396)]?e:n,s[t(454)]=o[t(396)]?t(398):t(476)};if(a(),s[r(457)]("click",t=>{const e=r;t[e(420)](),o.muted=!o.muted,a(),this[e(483)]&&console.log("🔊 Video mute toggled: "+(o[e(396)]?e(396):e(415)))}),s[r(457)](r(471),()=>{const t=r;s[t(467)][t(421)]=t(487),s[t(467)][t(373)]="scale(1.1)"}),s.addEventListener(r(423),()=>{const t=r;s[t(467)].background=t(464),s.style[t(373)]="scale(1)"}),e[r(385)]){o[r(400)]=e[r(385)];const t=()=>{const t=r;o[t(451)]&&o.muted&&o.paused&&o[t(395)]()[t(374)](e=>{const n=t;this.debug&&(console.warn(n(472),e),console[n(448)](n(412))),o[n(396)]=!0,o[n(395)]()[n(374)](t=>{const e=n;this[e(483)]&&console[e(382)](e(409),t)})})};o.addEventListener(r(484),()=>{const e=r;this[e(483)]&&console[e(481)]("🎬 Video metadata loaded, attempting autoplay..."),t()}),o[r(457)](r(478),()=>{const e=r;this[e(483)]&&console[e(481)](e(403)),t()}),o.addEventListener("loadeddata",()=>{const e=r;this[e(483)]&&console[e(481)](e(441)),t()}),setTimeout(()=>{const e=r;this.debug&&console[e(481)](e(480)),t()},100)}else if(e.imageUrl){const n=document.createElement(r(391));return n[r(400)]=e[r(456)],n[r(467)][r(462)]=r(384),n[r(467)][r(440)]=r(384),n[r(467)][r(473)]=r(479),n[r(422)]=e[r(454)]||r(446),void t[r(477)](n)}tt[r(410)](o,e,n,()=>this[r(431)](),this[r(483)],r(404)),o[r(457)](r(382),o=>{const i=r;if(console[i(382)](i(429),o),e[i(456)]){const r=document.createElement(i(391));r.src=e[i(456)],r[i(467)][i(462)]="100%",r[i(467)].height="100%",r.style[i(473)]="contain",r.alt=e[i(454)]||i(446),tt[i(410)](r,e,n,()=>this[i(431)](),this[i(483)],i(393)),t[i(376)]="",t.appendChild(r)}}),t.appendChild(o),t.appendChild(s),this[r(483)]&&console[r(481)](r(458)+e[r(411)]+r(466)+o.autoplay+", muted: "+o[r(396)]+r(439)+o[r(406)]+")")}}function Pt(){const t=["835TzJHLI","textContent","containerId","Native Advertisement","#2563eb","798GpGujM","1348155adGnbB","open","renderAdElement","18KxSUpF","🏠 Single native ad rendered: ","debug","11064010nrikKk","renderMultipleAds","200px","24UthXbJ","getElementById","getDefaultHeight","89630Cckrzk","addEventListener","2668WFLfRy","): ","⚠️ No native advertisements available for slot: ","div","23028vVByQA","#3b82f6","cssText","img","linkUrl","title","\n margin: 0 0 8px 0;\n font-size: 16px;\n font-weight: 600;\n color: #111827;\n line-height: 1.3;\n ","NATIVE","\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 ","length","🏠 Native ad rendered (first of ","2133397itNiyE","adstage-ad adstage-native-ad","style","imageUrl","backgroundColor","3761461oAjCvQ","appendChild","Native click tracked for ad: ","_id","createElement","className","log"];return(Pt=function(){return t})()}const Ot=Ut;function Ut(t,e){const n=Pt();return(Ut=function(t,e){return n[t-=372]})(t,e)}!function(t){const e=Ut,n=t();for(;;)try{if(780859===parseInt(e(399))/1+-parseInt(e(401))/2*(parseInt(e(386))/3)+-parseInt(e(405))/4*(-parseInt(e(381))/5)+-parseInt(e(390))/6*(parseInt(e(416))/7)+parseInt(e(396))/8*(-parseInt(e(387))/9)+parseInt(e(393))/10+parseInt(e(374))/11)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(Pt);class zt extends pt{constructor(t=!1,n){super(e[Ut(412)],t,n)}[Ot(398)](){return Ot(395)}async[Ot(389)](t,e){const n=Ot,r=document[n(397)](t[n(383)]);if(!r)return;const o=document[n(378)](n(404));if(o[n(379)]=n(417),o[n(418)][n(407)]="\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[n(410)]){const t=document.createElement("h3");t[n(382)]=e[n(410)],t[n(418)][n(407)]=n(411),o.appendChild(t)}if(e[n(382)]){const t=document.createElement("p");t.textContent=e.textContent,t.style[n(407)]="\n margin: 0 0 12px 0;\n font-size: 14px;\n color: #6b7280;\n line-height: 1.4;\n flex: 1;\n ",o[n(375)](t)}if(e.imageUrl){const t=document[n(378)](n(404));t[n(418)].cssText="\n width: 100%;\n height: 120px;\n margin-bottom: 12px;\n border-radius: 6px;\n overflow: hidden;\n background: #f3f4f6;\n ";const r=document[n(378)](n(408));r.src=e[n(372)],r.alt=e[n(410)]||n(384),r[n(418)][n(407)]="\n width: 100%;\n height: 100%;\n object-fit: cover;\n ",t[n(375)](r),o[n(375)](t)}if(e[n(409)]){const t=document[n(378)]("button");t[n(382)]="Learn More",t[n(418)][n(407)]=n(413),t[n(400)]("click",()=>{const t=n;this.advertisementEventTracker&&console[t(380)](t(376)+e[t(377)]),window[t(388)](e[t(409)],"_blank")}),t[n(400)]("mouseenter",()=>{const e=n;t[e(418)].backgroundColor=e(385)}),t.addEventListener("mouseleave",()=>{const e=n;t[e(418)][e(373)]=e(406)}),o.appendChild(t)}r.innerHTML="",r[n(375)](o),this[n(392)]&&console[n(380)](n(391)+e[n(377)])}async[Ot(394)](t,e){const n=Ot;e[n(414)]>0?(await this[n(389)](t,e[0]),this[n(392)]&&console[n(380)](n(415)+e[n(414)]+n(402)+t.id)):this[n(392)]&&console.warn(n(403)+t.id)}}function Mt(){const t=["252idMDJG","\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 ","#6b7280","24321nmGads","appendChild","linkUrl","adstage-interstitial-styles","mouseenter","title","renderAdElement","fadeOut 0.3s ease-out forwards","cssText","🖼️ Interstitial ad rendered: ","7951368RwxxCq","Interstitial click tracked for ad: ","removeChild","addEventListener","renderMultipleAds","INTERSTITIAL","_id","backgroundColor","closeInterstitial","animation","log","parentNode","click","Escape","): ","adstage-interstitial-content","7063tHgZOt","364YdBnXR","\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 ","400px","#f3f4f6","containerId","target","style","4419265NHimLx","img","4753298ickLnK","#3b82f6","debug","230OJyiBO","open","Interstitial Advertisement","removeEventListener","alt","warn","length","div","head","\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 ","#e5e7eb","\n margin: 0 0 12px 0;\n font-size: 24px;\n font-weight: 700;\n color: #111827;\n line-height: 1.3;\n ","textContent","getDefaultHeight","\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 ","color","key","createElement","button","src","\n @keyframes fadeIn {\n from { opacity: 0; }\n to { opacity: 1; }\n }\n @keyframes slideUp {\n from { \n opacity: 0;\n transform: translateY(20px);\n }\n to { \n opacity: 1;\n transform: translateY(0);\n }\n }\n ","\n width: 100%;\n max-height: 300px;\n object-fit: cover;\n border-radius: 8px;\n margin-bottom: 16px;\n ","getElementById","86008PiTayX","mouseleave","className","#2563eb","651KwHaAU","innerHTML","419570HWmmuC","body","⚠️ No interstitial advertisements available for slot: ","imageUrl","\n margin: 0 0 20px 0;\n font-size: 16px;\n color: #6b7280;\n line-height: 1.5;\n ","advertisementEventTracker","#374151"];return(Mt=function(){return t})()}const Bt=Ft;function Ft(t,e){const n=Mt();return(Ft=function(t,e){return n[t-=247]})(t,e)}!function(t){const e=Ft,n=t();for(;;)try{if(773048===parseInt(e(256))/1*(parseInt(e(269))/2)+-parseInt(e(308))/3*(parseInt(e(257))/4)+-parseInt(e(264))/5+parseInt(e(318))/6+parseInt(e(296))/7*(parseInt(e(292))/8)+parseInt(e(305))/9*(-parseInt(e(298))/10)+parseInt(e(266))/11)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(Mt);class Nt extends pt{constructor(t=!1,n){super(e[Ft(323)],t,n)}[Bt(282)](){return Bt(259)}async renderAdElement(t,e){const n=Bt;if(!document[n(291)](t[n(261)]))return;const r=document[n(286)](n(276));r[n(294)]="adstage-interstitial-overlay",r.style[n(316)]=n(258);const o=document[n(286)](n(276));o[n(294)]=n(255),o[n(263)][n(316)]=n(306);const i=document[n(286)](n(287));if(i[n(297)]="×",i[n(263)][n(316)]=n(278),i.addEventListener("click",()=>{this[n(248)](r)}),i.addEventListener(n(312),()=>{const t=n;i.style[t(247)]=t(279),i[t(263)][t(284)]=t(304)}),i[n(321)](n(293),()=>{const t=n;i.style[t(247)]=t(260),i[t(263)][t(284)]=t(307)}),e.imageUrl){const t=document.createElement(n(265));t[n(288)]=e[n(301)],t[n(273)]=e[n(313)]||n(271),t[n(263)][n(316)]=n(290),o.appendChild(t)}if(e.title){const t=document[n(286)]("h2");t.textContent=e.title,t[n(263)][n(316)]=n(280),o[n(309)](t)}if(e.textContent){const t=document.createElement("p");t[n(281)]=e[n(281)],t[n(263)][n(316)]=n(302),o.appendChild(t)}if(e.linkUrl){const t=document[n(286)](n(287));t[n(281)]="Get Started",t[n(263)][n(316)]=n(283),t[n(321)]("click",()=>{const t=n;this[t(303)]&&console[t(250)](t(319)+e[t(324)]),window[t(270)](e[t(310)],"_blank"),this[t(248)](r)}),t[n(321)]("mouseenter",()=>{const e=n;t.style[e(247)]=e(295)}),t[n(321)](n(293),()=>{const e=n;t[e(263)].backgroundColor=e(267)}),o[n(309)](t)}const s=t=>{const e=n;t[e(285)]===e(253)&&(this[e(248)](r),document[e(272)]("keydown",s))};if(document[n(321)]("keydown",s),r[n(321)](n(252),t=>{const e=n;t[e(262)]===r&&this[e(248)](r)}),!document[n(291)](n(311))){const t=document[n(286)](n(263));t.id=n(311),t.textContent=n(289),document[n(277)][n(309)](t)}o.appendChild(i),r[n(309)](o),document[n(299)][n(309)](r),this.debug&&console[n(250)](n(317)+e[n(324)])}async[Bt(322)](t,e){const n=Bt;e[n(275)]>0?(await this[n(314)](t,e[0]),this[n(268)]&&console[n(250)]("🖼️ Interstitial ad rendered (first of "+e[n(275)]+n(254)+t.id)):this[n(268)]&&console[n(274)](n(300)+t.id)}[Bt(248)](t){const e=Bt;t[e(263)][e(249)]=e(315),setTimeout(()=>{const n=e;t[n(251)]&&t.parentNode[n(320)](t)},300),this[e(268)]&&console[e(250)]("🖼️ Interstitial ad closed")}}function Vt(t,e){const n=jt();return(Vt=function(t,e){return n[t-=479]})(t,e)}function jt(){const t=["renderOptimizedBannerImage","padding","advertisement","height","3910870fnCELQ","createPlaceholder","4LZliri","video","getDefaultHeightForAdType","naturalWidth","getDefaultHeight","imageUrl","videoUrl","display","createAdElement","17SoZNlS","setAttribute","onload","654YqHpEN","18ayZauo","⚠️ Container optimization is only supported for BANNER ads, got: ","INTERSTITIAL","optimizeContainerForBannerAds","createElement","2690096vDhVHr","renderers","src","div","data-adstage-ad-id","style","8356585ZKHRXP","initializeRenderers","renderFallback","cover","renderAdElement","getRenderer","TEXT","100%","width","warn","debug","toLowerCase","data-adstage-slot-id","Failed to load image: ","calculateAdSize","textContent","set","img","renderAd","renderAdSlider","config","get","No advertisement to render","[AdRenderer] ","adType","adstage-ad adstage-","711165COpSPa","appendChild","calculateOptimalContainerSize"," renderers","isLoaded","NATIVE","block","145412HulqQc","8px","#f9f9f9","advertisementEventTracker","loadImageDimensions","renderOptimizedBannerImage is only supported for BANNER ads","37887795LrNTkY","backgroundColor","log","BANNER","VIDEO","size","22708JOynka","className"," Ad","1px dashed #ccc"];return(jt=function(){return t})()}const Kt=Vt;!function(t){const e=Vt,n=t();for(;;)try{if(935004===-parseInt(e(531))/1*(parseInt(e(500))/2)+-parseInt(e(493))/3+-parseInt(e(522))/4*(parseInt(e(546))/5)+-parseInt(e(534))/6*(-parseInt(e(512))/7)+-parseInt(e(540))/8*(-parseInt(e(535))/9)+-parseInt(e(520))/10+parseInt(e(506))/11)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(jt);class Ht{constructor(t=!1,e){const n=Vt;this.renderers=new Map,this.debug=t,this[n(503)]=e||null,this[n(547)]()}[Kt(547)](){const t=Kt;this[t(541)].set(e.BANNER,new mt(this[t(556)],this[t(503)])),this[t(541)][t(483)](e[t(552)],new Tt(this[t(556)],this[t(503)])),this[t(541)][t(483)](e[t(510)],new Dt(this[t(556)],this.advertisementEventTracker)),this[t(541)][t(483)](e[t(498)],new zt(this.debug,this[t(503)])),this[t(541)][t(483)](e[t(537)],new Nt(this[t(556)],this.advertisementEventTracker)),this[t(556)]&&console.log("🏭 AdRenderer factory initialized with "+this[t(541)][t(511)]+t(496))}[Kt(530)](t,n){const r=Kt,o=this[r(551)](t.adType),i=document[r(539)](r(543));i[r(513)]=r(492)+String(t[r(491)])[r(557)](),i.setAttribute(r(544),n._id),i[r(532)](r(479),t.id);const{width:s,height:a}=o[r(481)](i,t[r(487)]||{},n);switch(i[r(545)][r(554)]=s,i.style[r(519)]=a,i.style[r(529)]=r(499),t[r(491)]){case e[r(509)]:if(n[r(527)]){const t=document[r(539)](r(484));t.src=n[r(527)],t[r(545)].width=r(553),t.style[r(519)]="100%",t[r(545)].objectFit=r(549),i[r(494)](t)}break;case e[r(510)]:if(n[r(528)]){const t=document[r(539)](r(523));t[r(542)]=n[r(528)],t[r(545)][r(554)]="100%",t[r(545)][r(519)]=r(553),i[r(494)](t)}break;case e[r(552)]:if(n[r(482)]){const t=document[r(539)]("div");t[r(482)]=n.textContent||"",t.style[r(517)]=r(501),i[r(494)](t)}break;default:i[r(545)].border=r(515),i[r(545)][r(507)]=r(502),i.textContent=t[r(491)]+r(514)}return i}[Kt(551)](t){const e=Kt,n=this[e(541)][e(488)](t);if(!n)throw new Error("No renderer found for ad type: "+t);return n}[Kt(521)](t,e,n,r,o){const i=Kt;this.getRenderer(n)[i(521)](t,e,r,o)}async optimizeContainerForBannerAds(t,n){const r=Kt;if(t[r(491)]!==e[r(509)])return void(this[r(556)]&&console[r(555)](r(536)+t.adType));const o=this[r(551)](e[r(509)]);await o[r(538)](t,n)}async[Kt(486)](t,e){const n=Kt,r=this[n(551)](t[n(491)]);await r.renderMultipleAds(t,e)}async[Kt(485)](t){const e=Kt;if(!t[e(518)])throw new Error(e(489));const n=this[e(551)](t[e(491)]);await n[e(550)](t,t.advertisement),t[e(497)]=!0}async[Kt(550)](t,e){const n=Kt,r=this[n(551)](t[n(491)]);await r.renderAdElement(t,e)}[Kt(548)](t){const e=Kt;this.getRenderer(t[e(491)])[e(548)](t)}[Kt(524)](t){const e=Kt;return this[e(551)](t)[e(526)]()}[Kt(481)](t,e,n,r){const o=Kt;return this[o(551)](e)[o(481)](t,n,r)}[Kt(504)](t){return new Promise((e,n)=>{const r=Vt,o=new Image;o[r(533)]=()=>{e({width:o[r(525)],height:o.naturalHeight})},o.onerror=()=>{n(new Error(r(480)+t))},o[r(542)]=t})}async[Kt(516)](t,n,r){const o=Kt;if(r[o(491)]!==e[o(509)])throw new Error(o(505));const i=this[o(551)](e[o(509)]);return await i[o(516)](t,n,r)}async[Kt(495)](t,n,r){const o=Kt;if(r!==e[o(509)]){return{width:"100%",height:this[o(551)](r)[o(526)](),aspectRatio:16/9}}const i=this.getRenderer(e[o(509)]);return await i[o(495)](t,n)}[Kt(508)](t,...e){const n=Kt;this[n(556)]&&console[n(508)](n(490)+t,...e)}}function Yt(){const t=["debug","createPlaceholder","[data-adstage-slot-id]","Ads module not initialized. Call AdStage.init() first.","deviceType","onClick","INTERSTITIAL"," attempts: ","❌ Failed to track viewable impression:","hideControls","94587rTYcnj","values","height","substr","🗑️ Ad slot destroyed: ","loadAdContentInBackground","createAdInternal","404861oUSscU","random","interstitial","undefined","Failed to fetch ad data: ","nodeType","text","698576MfjXhJ"," ads)","ms... (attempt ","autoSlide","autoDestroy","detail","41447dwgUuB","now","TEXT","muted","country","setupAutoCleanup","then"," ads automatically","renderFallback","VIDEO","getAllSlots"," removed","Ad slot not found: ","renderAd","length","disconnect","getElementById","adType","NATIVE","🧹 Auto-cleanup: slot ","New advertisement viewable tracked for slot:","🎯 Simple viewability tracking started for slot: ","advertisementEventTracker","3865110ResKbA","log","100%","createAdWithRetry","slideInterval","_isReady","VIEWABLE","toString","destroy","12lOByQs","API key not configured","🔄 Ad slot refreshed: ","from","maxLines","init","warn","_id","✅ Simple viewable impression tracked for ad ","config","❌ Failed to find element for viewability tracking: ","startSimpleViewabilityTracking","optimizeContainerForBannerAds","status","string","error","advertisement","📊 Advertisement event tracking enabled for slot: ","GET","innerHTML","json","slots","viewabilityTracker","querySelectorAll","style","mutationObserver","refreshAdSlot","4722852TXzQoK","getConfig","renderAdElement","advertisements","❌ Failed to load ad for slot: ","body","destroyModule","광고 생성 중 오류 발생:","ensureReady","native","delete","createAd","📊 Fetched ","handleRemovedElement","fetchAdData","Container not found after ","handleViewableEvent","renderAdSlider","BANNER","adstage-","autoplay"," (element found)",". Retrying in ","Failed to refresh ad slot: ","create","playsinline","list","forEach","auto-","get","width","2dMiuhK","getSlotById","customControls","adRenderer","banner","loop","apiKey","🔍 Ad slot already cleaned up: ","819355IQYHAb","language","114bZmZJJ","📊 Fetched specific ad with ID: ","data-adstage-slot-id","🎠 Slider will handle VIEWABLE events for ","auto","Container not found: ","isReady","adId","Auto-cleanup failed for slot ","_config","append","9qPphlD","33nuNxWN"];return(Yt=function(){return t})()}const Wt=qt;function qt(t,e){const n=Yt();return(qt=function(t,e){return n[t-=195]})(t,e)}!function(t){const e=qt,n=t();for(;;)try{if(270564===-parseInt(e(290))/1*(-parseInt(e(250))/2)+-parseInt(e(283))/3+-parseInt(e(335))/4*(-parseInt(e(258))/5)+parseInt(e(260))/6*(parseInt(e(303))/7)+-parseInt(e(297))/8*(-parseInt(e(271))/9)+parseInt(e(326))/10+-parseInt(e(272))/11*(parseInt(e(219))/12))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(Yt);class Gt{constructor(){const t=qt;this[t(331)]=!1,this._config=null,this[t(213)]=new Map,this[t(325)]=null,this[t(253)]=null,this[t(217)]=null}[Wt(197)](t){const e=Wt;this[e(269)]=t,this[e(325)]=new O(H.getBaseUrl(),t.apiKey,t[e(273)]||!1,this[e(213)]),this[e(253)]=new Ht(t.debug||!1,this[e(325)]),this.setupAutoCleanup(),this[e(331)]=!0,t[e(273)]&&console.log("🎯 Ads module initialized (sync mode) with auto-cleanup")}[Wt(266)](){return this[Wt(331)]}[Wt(220)](){return this[Wt(269)]}[Wt(254)](t,n){const r=Wt;this[r(227)]();const o={width:n?.[r(249)]||r(328),height:n?.[r(285)]||"auto",autoSlide:n?.autoSlide||!1,slideInterval:n?.[r(330)]||5e3,onClick:n?.[r(278)],adId:n?.[r(267)],language:n?.[r(259)],deviceType:n?.[r(277)],country:n?.[r(307)]};return this[r(230)](t,e[r(237)],o)}[Wt(296)](t,n){const r=Wt;this[r(227)]();const o={maxLines:n?.[r(196)]||3,style:n?.[r(216)]||"default",onClick:n?.[r(278)],adId:n?.[r(267)],language:n?.[r(259)],deviceType:n?.deviceType,country:n?.[r(307)]};return this.createAd(t,e[r(305)],o)}video(t,n){const r=Wt;this[r(227)]();const o={width:n?.[r(249)]||640,height:n?.height||360,autoplay:void 0===n?.[r(239)]||n.autoplay,muted:void 0===n?.[r(306)]||n.muted,loop:void 0===n?.[r(255)]||n[r(255)],playsinline:!1!==n?.[r(244)],controls:void 0!==n?.controls&&n.controls,hideControls:n?.[r(282)]||!1,customControls:n?.[r(252)],autoSlide:!1,maxAds:1,onClick:n?.onClick,...n?.adId&&{adId:n[r(267)]}};return this.createAd(t,e[r(312)],o)}[Wt(228)](t,n){const r=Wt;return this[r(227)](),this[r(230)](t,e[r(321)],n||{})}[Wt(292)](t,n){const r=Wt;return this[r(227)](),this.createAd(t,e[r(279)],n||{})}refresh(t){const e=Wt;this[e(227)]();const n=this[e(213)][e(248)](t);if(!n)throw new Error(e(315)+t);this[e(218)](n),this._config?.[e(273)]&&console[e(327)](e(337)+t)}[Wt(334)](t){const e=Wt;this[e(227)]();const n=this[e(213)].get(t);if(!n)return void(this._config?.[e(273)]&&console[e(327)](e(257)+t));n[e(214)]&&n[e(214)].destroy();const r=document[e(319)](n.containerId);r&&(r[e(211)]=""),this.slots[e(229)](t),this._config?.debug&&console.log(e(287)+t)}[Wt(313)](){const t=Wt;return this[t(227)](),Array[t(195)](this[t(213)][t(284)]())}[Wt(251)](t){const e=Wt;return this.ensureReady(),this[e(213)][e(248)](t)||null}createAd(t,e,n){const r=Wt;if(!this[r(269)]?.apiKey)throw new Error(r(336));const o=r(238)+e+"-"+Date[r(304)]()+"-"+Math[r(291)]()[r(333)](36)[r(286)](2,9);return this[r(329)](t,e,n,o,0),o}async createAdWithRetry(t,e,n,r,o){const i=Wt,s=[0,50,100,200,500];let a,c=null;if(typeof t===i(206)){if(a=t,c=document.getElementById(t),!c)return o<4?(this[i(269)]?.[i(273)]&&console[i(198)](i(265)+t+i(241)+s[o+1]+i(299)+(o+1)+"/5)"),void setTimeout(()=>{this[i(329)](t,e,n,r,o+1)},s[o+1])):void console[i(207)](i(234)+5+i(280)+t)}else c=t,a=c.id||i(247)+r,!c.id&&(c.id=a);try{this[i(289)](a,e,n,r,c)}catch(t){console.error(i(226),t)}}[Wt(289)](t,n,r,o,i){const s=Wt;i.setAttribute("data-adstage-slot-id",o),this[s(253)]?.[s(274)](i,o,n,r,this[s(269)]);const a={id:o,containerId:t,adType:n,width:r[s(249)]||s(328),height:r.height||(n===e[s(305)]?s(264):250),isLoaded:!1,isVisible:!1,refreshRate:0,lazyLoad:!1,targeting:{},advertisement:void 0,config:{type:n,...r},load:async()=>this[s(233)](n,r)[s(309)](t=>t[0]||null),render:t=>this[s(253)]?.[s(221)](a,t),refresh:async()=>this.refreshAdSlot(a),destroy:()=>this.destroy(o)};this.slots.set(o,a),this[s(288)](a),this[s(325)]&&this._config?.debug&&console[s(327)](s(209)+o)}async loadAdContentInBackground(t){const n=Wt;try{const r=await this[n(233)](t[n(320)],t[n(201)]);if(!r||0===r[n(317)])return void this[n(253)]?.[n(311)](t);t.adType===e[n(237)]&&r[n(317)]>0&&await(this.adRenderer?.[n(204)](t,r)),r[n(317)]>1||t[n(201)]?.[n(300)]?(await(this[n(253)]?.[n(236)](t,r)),this[n(269)]?.[n(273)]&&console.log(n(263)+r[n(317)]+n(310))):(t[n(208)]=r[0],await(this[n(253)]?.[n(221)](t,r[0])),this[n(203)](t,r[0])),t.isLoaded=!0,this[n(269)]?.debug&&console[n(327)]("✅ Ad loaded for slot: "+t.id+" ("+r[n(317)]+n(298))}catch(e){console.error(n(223)+t.id,e),this.adRenderer?.[n(311)](t)}}[Wt(203)](t,e){const n=(r=0)=>{const o=qt,i=document[o(319)](t.id);if(!i)return void(r<5?(setTimeout(()=>n(r+1),300),this[o(269)]?.[o(273)]&&console[o(327)]("🔄 Retrying viewability tracking for slot: "+t.id+" (attempt "+(r+1)+")")):console[o(198)](o(202)+t.id));const s=new F(i,async()=>{const n=o;await this[n(235)](e,t)});t[o(214)]=s,this[o(269)]?.[o(273)]&&console[o(327)](o(324)+t.id+o(240))};n()}async[Wt(235)](t,e){const n=Wt;try{this[n(325)]&&(await this[n(325)].trackAdvertisementEvent(t._id,e.id,a[n(332)]),this[n(269)]?.[n(273)]&&console[n(327)](n(200)+t[n(199)]))}catch(t){console[n(207)](n(281),t)}}async fetchAdData(t,e){const n=Wt;if(!this._config?.[n(256)])throw new Error(n(336));if(e.adId){const t=""+H[n(222)][n(302)](e[n(267)]),r=await fetch(t,{method:n(210),headers:R[n(243)](this[n(269)][n(256)])});if(!r.ok){if(404===r[n(205)])return console[n(198)]("🚫 Advertisement not found with ID: "+e[n(267)]),[];throw new Error(n(294)+r[n(205)])}const o=await r[n(212)]();return this[n(269)]?.[n(273)]&&console[n(327)](n(261)+e[n(267)],o),[o]}const r=new URLSearchParams;r[n(270)](n(320),t),e[n(259)]&&r[n(270)](n(259),e.language),e.deviceType&&r[n(270)](n(277),e[n(277)]),e[n(307)]&&r[n(270)](n(307),e.country);const o=H[n(222)][n(245)]()+"?"+r[n(333)](),i=await fetch(o,{method:n(210),headers:R[n(243)](this._config[n(256)])});if(!i.ok)throw new Error("Failed to fetch ad data: "+i[n(205)]);const s=(await i[n(212)]())[n(222)]||[];return this[n(269)]?.[n(273)]&&console.log(n(231)+s[n(317)]+" ads for type: "+t+", filters:",{language:e[n(259)],deviceType:e[n(277)],country:e[n(307)]}),s}async[Wt(218)](t){const e=Wt;try{const n=await this[e(233)](t[e(320)],t[e(201)]||{});n&&n.length>0&&(t[e(208)]=n[0],await(this[e(253)]?.[e(316)](t)),this[e(325)]&&console[e(327)](e(323),t.id))}catch(n){console[e(207)](e(242)+t.id,n)}}[Wt(227)](){const t=Wt;if(!this[t(331)])throw new Error(t(276))}[Wt(308)](){const t=Wt;typeof window!==t(293)&&typeof document!==t(293)&&(this[t(217)]&&this.mutationObserver[t(318)](),this[t(217)]=new MutationObserver(e=>{const n=t;e[n(246)](t=>{const e=n;t.removedNodes[e(246)](t=>{const n=e;t[n(295)]===Node.ELEMENT_NODE&&this[n(232)](t)})})}),this[t(217)].observe(document[t(224)],{childList:!0,subtree:!0}),this._config?.[t(273)]&&console[t(327)]("🔍 Auto-cleanup MutationObserver enabled"))}handleRemovedElement(t){const e=Wt,n=t.getAttribute(e(262));if(n)return void this[e(301)](n);t[e(215)](e(275)).forEach(t=>{const n=e,r=t.getAttribute(n(262));r&&this[n(301)](r)})}[Wt(301)](t){const e=Wt,n=this[e(213)][e(248)](t);if(n)try{n[e(214)]&&n[e(214)][e(334)](),this.slots[e(229)](t),this._config?.[e(273)]&&console[e(327)](e(322)+t+e(314))}catch(n){this[e(269)]?.[e(273)]&&console[e(198)](e(268)+t+":",n)}}[Wt(225)](){const t=Wt,e=this._config?.[t(273)];this[t(217)]&&(this[t(217)].disconnect(),this[t(217)]=null),this[t(213)].clear(),this[t(325)]=null,this.adRenderer=null,this[t(331)]=!1,this[t(269)]=null,e&&console[t(327)]("🗑️ Ads module destroyed")}}function Zt(t,e){var n=Xt();return(Zt=function(t,e){return n[t-=168]})(t,e)}function Xt(){var t=["694719KdrGaF","Config module not initialized","getOrganizationInfo","modules","3988MLUpPl","🔄 Config updated","updateConfig","events","init","log","265210myJFbP","304809dqduue","56mrMQNs","getBaseUrl","22190558hwrwng","isModuleEnabled","ads","setBaseUrl","12tfnWUO","40YTjaVW","debug","API key not available","61450ZwXAJm","_organizationInfo","430IDAxiy","isReady","getEnabledModules","_isReady","development","34MnmAlJ","apiKey","baseUrl","_config","8lMjIZt","288984zylpiC","includes","getApiEndpoint","getApiHeaders","getConfig","config"];return(Xt=function(){return t})()}var Jt=Zt;!function(t){for(var e=Zt,n=t();;)try{if(547759===parseInt(e(189))/1*(parseInt(e(174))/2)+-parseInt(e(196))/3*(parseInt(e(178))/4)+parseInt(e(207))/5+parseInt(e(179))/6*(-parseInt(e(197))/7)+-parseInt(e(204))/8*(-parseInt(e(185))/9)+parseInt(e(169))/10*(-parseInt(e(195))/11)+-parseInt(e(203))/12*(-parseInt(e(199))/13))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(Xt);class Qt{constructor(){var t=Zt;this._isReady=!1,this[t(177)]=null,this[t(168)]=null}[Jt(193)](t){var e=Jt;this._config={timeout:3e4,debug:!1,modules:[e(201),e(192),e(184)],...t},t[e(176)]&&H[e(202)](t[e(176)]),this[e(172)]=!0,t[e(205)]&&console.log("✅ Config module initialized (sync mode)",{modules:this[e(177)].modules,endpoint:H[e(198)](),mode:e(173)})}[Jt(170)](){return this[Jt(172)]}[Jt(183)](){return this[Jt(177)]}[Jt(187)](){return this[Jt(168)]}[Jt(181)](){return H.getBaseUrl()}isDebugMode(){return this._config?.debug||!1}getEnabledModules(){var t=Jt;return this._config?.[t(188)]||[]}[Jt(200)](t){var e=Jt;return this[e(171)]()[e(180)](t)}[Jt(191)](t){var e=Jt;if(!this[e(177)])throw new Error(e(186));this[e(177)]={...this[e(177)],...t},this.isDebugMode()&&console[e(194)](e(190),t)}[Jt(182)](){var t=Jt;if(!this[t(177)]?.[t(175)])throw new Error(t(206));return R.create(this._config.apiKey)}}const $t=ee;function te(){const t=["web","getAutoDetectedDeviceInfo","clearDeviceInfo","50NjMyOJ","6628138meIUJV","27pygDuG","height","mobile","platform","Unknown","getPlatform","tablet","187508sCniHU","language","80fmoShh","ios","0x0","toLowerCase","35818zmawmy","36495GyJZgu","1454169jGDkFc","userAgent","mapPlatformForEvents","width","android","getUserDeviceInfo","SSR","iOS","getDeviceInfo","Android","4595298lRwewf","ko-KR","7FqjOYh","desktop","isMobile","8339552jbIzvh","_userProvidedDeviceInfo"];return(te=function(){return t})()}function ee(t,e){const n=te();return(ee=function(t,e){return n[t-=446]})(t,e)}!function(t){const e=ee,n=t();for(;;)try{if(532804===-parseInt(e(481))/1*(-parseInt(e(457))/2)+parseInt(e(459))/3+-parseInt(e(451))/4*(-parseInt(e(453))/5)+-parseInt(e(469))/6*(parseInt(e(471))/7)+-parseInt(e(474))/8+-parseInt(e(458))/9*(-parseInt(e(479))/10)+parseInt(e(480))/11)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(te);class ne{static[$t(467)](){const t=$t;return{...ne[t(477)](),...ne[t(475)]}}static[$t(477)](){const t=$t;if(!I.isBrowser())return{category:"other",platform:t(465),model:t(465),osVersion:"SSR"};const e=navigator[t(460)][t(456)]();let n=t(472);/tablet|ipad/.test(e)?n=t(450):C[t(473)]()&&(n=t(446));const r=C[t(449)]();return{category:n,platform:ne[t(461)](r),model:navigator[t(447)],osVersion:navigator.platform,deviceId:C.generateDeviceId()}}static setDeviceInfo(t){ne._userProvidedDeviceInfo={...ne._userProvidedDeviceInfo,...t}}static setDeviceProperty(t,e){ne[$t(475)][t]=e}static[$t(478)](){ne._userProvidedDeviceInfo={}}static[$t(464)](){return{...ne[$t(475)]}}static[$t(461)](t){const e=$t;switch(t){case e(454):return e(466);case e(463):return e(468);case e(476):return"Mobile Web";case e(472):return"Desktop Web";default:return e(448)}}static getDetailedInfo(){const t=$t;if(!I.isBrowser())return{userAgent:"SSR",language:t(470),platform:t(465),cookieEnabled:!1,onLine:!0,screenResolution:"0x0",viewportSize:t(455)};const e=I.getViewportInfo();return{userAgent:navigator[t(460)],language:navigator[t(452)]||t(470),platform:navigator[t(447)],cookieEnabled:navigator.cookieEnabled,onLine:navigator.onLine,screenResolution:screen[t(462)]+"x"+screen[t(482)],viewportSize:e[t(462)]+"x"+e[t(482)]}}}ne[$t(475)]={};const re=oe;function oe(t,e){const n=se();return(oe=function(t,e){return n[t-=388]})(t,e)}!function(t){const e=oe,n=t();for(;;)try{if(785694===parseInt(e(412))/1*(parseInt(e(403))/2)+-parseInt(e(399))/3+-parseInt(e(396))/4+-parseInt(e(393))/5+parseInt(e(391))/6*(-parseInt(e(392))/7)+-parseInt(e(404))/8*(parseInt(e(406))/9)+parseInt(e(400))/10)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(se);class ie{static[re(390)](){return{...ie[re(407)](),...ie._userProperties}}static getBaseUserInfo(){const t=re;if(!I[t(398)]())return{language:t(405),country:"KR"};const e=navigator[t(401)]||t(405);return{language:e,country:ie[t(388)](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[re(410)]("-")[0]]||"KR"}static[re(389)](t){ie[re(413)]={...ie._userProperties,...t}}static[re(402)](t,e){ie._userProperties[t]=e}static[re(411)](){ie[re(413)]={}}static[re(408)](){return{...ie[re(413)]}}static[re(397)](){const t=re;if(!I[t(398)]())return{timezone:"UTC",estimatedCountry:"KR"};const e=Intl[t(409)]()[t(394)]()[t(395)];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 se(){const t=["getBaseUserInfo","getCurrentUserProperties","DateTimeFormat","split","clearUserProperties","141ivlCZL","_userProperties","extractCountryFromLanguage","setUserProperties","getUserInfo","1359318djSfLq","42sQqjtW","7452520tZGcWl","resolvedOptions","timeZone","1901524rLnhwV","estimateLocation","isBrowser","416019FiYOsu","37007810KcicoB","language","setUserProperty","17086owhbVC","12088VpcBjg","ko-KR","3906htKZey"];return(se=function(){return t})()}ie[re(413)]={};const ae=ce;function ce(t,e){const n=le();return(ce=function(t,e){return n[t-=255]})(t,e)}!function(t){const e=ce,n=t();for(;;)try{if(264877===parseInt(e(304))/1*(parseInt(e(283))/2)+-parseInt(e(275))/3*(parseInt(e(286))/4)+parseInt(e(277))/5+parseInt(e(312))/6+-parseInt(e(290))/7*(parseInt(e(319))/8)+-parseInt(e(266))/9+parseInt(e(329))/10)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(le);class de{static[ae(310)](){const t=ae;if(typeof window===t(306))return null;const e=new URLSearchParams(window.location[t(270)]),n={};let r=!1;const o=e.get(t(258));if(o)try{const e=decodeURIComponent(o),i=new URLSearchParams(e);for(const e of de[t(261)]){const t=i.get(e);t&&(n[e]=t,r=!0)}"true"===i[t(284)](t(331))&&(r=!0)}catch(e){console[t(318)](t(324),e)}for(const o of de[t(261)]){if(n[o])continue;const i=e[t(284)](o);i&&(n[o]=i,r=!0)}return r?(n[t(321)]||(n[t(259)]?n[t(321)]=t(288):n.fbclid?n[t(321)]=t(311):n[t(278)]?n[t(321)]=t(301):n[t(332)]?n.channel=t(287):n.liclid?n[t(321)]="linkedin.ads":n[t(285)]?n.channel="microsoft.ads":n[t(297)]?n[t(321)]="twitter.ads":("kakao"===n.utm_source&&"keyword"===n.utm_medium||n[t(295)]||n[t(315)])&&(n[t(321)]=t(272))),de.store(n),n):null}static[ae(326)](t){const e=ae;if(typeof window!==e(306))try{const n={...de[e(284)](),...t},r=JSON[e(325)](n);try{sessionStorage.setItem(de[e(274)],r)}catch(t){}try{localStorage[e(303)](de[e(274)],r)}catch(t){}}catch(t){console.warn(e(317),t)}}static get(){const t=ae;if(typeof window===t(306))return null;try{const e=sessionStorage?.[t(282)](de.STORAGE_KEY);if(e)return JSON.parse(e)}catch(t){}try{const t=localStorage?.getItem(de.STORAGE_KEY);if(t)return JSON.parse(t)}catch(t){}return null}static[ae(255)](){const t=ae;if("undefined"!=typeof window){try{sessionStorage?.[t(300)](de[t(274)])}catch(t){}try{localStorage?.[t(300)](de[t(274)])}catch(t){}}}static[ae(302)](){const t=de[ae(284)]();return null!==t&&Object.keys(t).length>0}static[ae(298)](){const t=ae,e=de[t(284)]();return!!e&&de[t(316)][t(299)](t=>e[t])}static[ae(269)](){const t=ae;if(typeof window===t(306))return!1;const e=de.get();if(!e)return!1;const n=de[t(298)](),r=!!e[t(321)];if(!n&&!r)return!1;const o=n?e[t(259)]||e[t(271)]||e[t(278)]||e[t(332)]||e[t(307)]||e[t(285)]||e[t(297)]:(e.channel||"")+":"+(e[t(262)]||"");if(!o)return!1;return o!==sessionStorage.getItem(t(267))&&(sessionStorage[t(303)]("adstage_last_click_id",o),!0)}static[ae(280)](){typeof window!==ae(306)&&sessionStorage.setItem("adstage_click_event_sent","true")}static isClickEventSent(){const t=ae;return typeof window!==t(306)&&sessionStorage[t(282)]("adstage_click_event_sent")===t(323)}static[ae(260)](){const t=ae,e=de[t(284)]();if(!e)return null;const n={};return e[t(259)]&&(n.gclid=e.gclid),e[t(271)]&&(n[t(271)]=e.fbclid),e[t(278)]&&(n[t(278)]=e[t(278)]),e[t(332)]&&(n[t(332)]=e[t(332)]),e.channel&&(n[t(321)]=e[t(321)]),e[t(292)]&&(n[t(292)]=e[t(292)]),e.campaign_id&&(n[t(314)]=e.campaign_id),e[t(327)]&&(n[t(263)]=e[t(327)]),e.ad_group_id&&(n[t(305)]=e.ad_group_id),e[t(281)]&&(n[t(279)]=e[t(281)]),e[t(289)]&&(n[t(294)]=e[t(289)]),e[t(262)]&&(n[t(262)]=e[t(262)]),e.k_campaign&&(n[t(314)]=n[t(314)]||e.k_campaign),e.k_adgroup&&(n[t(305)]=n.adGroupId||e[t(265)]),e[t(315)]&&(n[t(320)]=e[t(315)]),e.k_keyword_id&&(n.keywordId=e[t(313)]),e[t(257)]&&(n[t(294)]=n[t(294)]||e.k_creative),e[t(268)]&&(n.adRank=e[t(268)]),e[t(322)]&&(n.utm_source=e[t(322)]),e.utm_medium&&(n.utm_medium=e.utm_medium),e[t(264)]&&(n.utm_campaign=e[t(264)]),e[t(328)]&&(n[t(328)]=e[t(328)]),e[t(273)]&&(n.utm_term=e[t(273)]),Object[t(296)](n)[t(330)]>0?n:null}}function le(){const t=["adstage_last_click_id","k_rank","shouldSendClickEvent","search","fbclid","kakao.keyword","utm_term","STORAGE_KEY","12ZuOIkg","UTM_KEYS","947555FliOFa","ttclid","adCreative","markClickEventSent","ad_creative","getItem","1038062phxwdJ","get","msclkid","221164KMvWEO","naver.searchad","google.ads","creative_id","7rXwNhE","campaign_id","campaign","ad_group_id","creativeId","k_campaign","keys","twclid","hasClickId","some","removeItem","tiktok.ads","hasParams","setItem","1OfrhZM","adGroupId","undefined","liclid","utm_medium","CAMPAIGN_KEYS","captureFromUrl","meta.ads","720516aQlbYY","k_keyword_id","campaignId","k_keyword","CLICK_ID_KEYS","Failed to store tracking params:","warn","2656264KyDifv","keyword","channel","utm_source","true","Failed to parse adstage_referrer:","stringify","store","ad_group","utm_content","3391830MZxouM","length","adstage","nclid","clear","adstage_tracking_params","k_creative","adstage_referrer","gclid","toAttributionObject","ALL_KEYS","term","adGroup","utm_campaign","k_adgroup","3147633rqtvFY"];return(le=function(){return t})()}de.STORAGE_KEY=ae(256),de.CLICK_ID_KEYS=[ae(259),ae(271),ae(278),ae(332),ae(307),"msclkid",ae(297)],de[ae(309)]=["channel",ae(292),ae(291),ae(327),ae(293),ae(281),"creative_id",ae(262),ae(295),ae(265),"k_keyword","k_keyword_id",ae(257),"k_rank"],de[ae(276)]=["utm_source",ae(308),ae(264),ae(328),ae(273)],de[ae(261)]=[...de[ae(316)],...de[ae(309)],...de[ae(276)]];const ue=pe;function pe(t,e){const n=he();return(pe=function(t,e){return n[t-=499]})(t,e)}function he(){const t=["📡 Request URL:","warn","57387IFuXNk","setItem","📱 Device info set:","✅ Attribution registered:","getCurrentUserProperties","📱 Device property set:","Events module not initialized. Call AdStage.init() first.","application/json","getAttributionId","✅ Event tracked:","❌ API Error Response:","8097FrUKKq","getConfig","error","length","Attribution registration failed: ","isReady","1096739DHeqMn","❌ Failed to register attribution:","getUserInfo","2ATbCwV","30LjWyqI","attributionId","clearDeviceInfo","356KPHezq","text","trackWithAttributionId","8ZqbYep","getUserProperties","_config","setUserProperties","sendEventToServer","⏭️ No tracking parameters found, skipping attribution registration","sendAttributionToServer","adstage_attribution_id","track","apiKey","setDeviceInfo","880281gbovbh","undefined","3638292LcKbtl","👤 User properties set:","_isReady","214275blfKon","📦 Attribution request body:","📡 Attribution request URL:","POST","Event tracking failed: ","registerAttribution","📊 Events module initialized","6EsigZa","API key not configured for attribution registration.","init","log","setDeviceProperty","144500vOnSlx","Event data:","🔑 Request headers:","toAttributionObject","keys","get","getDeviceInfo","debug","create","statusText","❌ Failed to track event:","events","getUserDeviceInfo","status","stringify","getItem"];return(he=function(){return t})()}!function(t){const e=pe,n=t();for(;;)try{if(165612===-parseInt(e(544))/1*(-parseInt(e(521))/2)+parseInt(e(512))/3*(parseInt(e(525))/4)+-parseInt(e(556))/5+-parseInt(e(551))/6*(-parseInt(e(518))/7)+-parseInt(e(528))/8*(parseInt(e(539))/9)+-parseInt(e(522))/10*(parseInt(e(501))/11)+-parseInt(e(541))/12)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(he);class fe{constructor(){const t=pe;this[t(543)]=!1,this[t(530)]=null}[ue(553)](t){const e=ue;this[e(530)]=t,this._isReady=!0,t.debug&&console[e(554)](e(550))}[ue(517)](){return this[ue(543)]}[ue(513)](){return this[ue(530)]}[ue(531)](t){const e=ue;ie.setUserProperties(t),this._config?.debug&&console.log(e(542),t)}[ue(529)](){return ie.getCurrentUserProperties()}setDeviceInfo(t){const e=ue;ne[e(538)](t),this[e(530)]?.[e(563)]&&console[e(554)](e(503),t)}[ue(555)](t,e){const n=ue;ne.setDeviceProperty(t,e),this._config?.[n(563)]&&console[n(554)](n(506),t,e)}[ue(524)](){const t=ue;ne[t(524)](),this[t(530)]?.[t(563)]&&console[t(554)]("📱 User provided device info cleared")}[ue(568)](){return ne[ue(568)]()}[ue(562)](){return ne[ue(562)]()}[ue(520)](){return ie[ue(520)]()}[ue(505)](){return ie[ue(505)]()}async track(t,e){const n=ue;if(this[n(543)])if(this[n(530)]?.[n(537)])try{const r=this[n(509)]();if(r){const o={eventName:t,sdkVersion:k(),device:ne[n(562)](),user:ie[n(520)](),attributionId:r,params:e||{}};return await this.sendEventToServer(o),void(this[n(530)].debug&&console[n(554)]("✅ Event tracked with attribution ID:",t,r))}const o=de[n(559)](),i={eventName:t,sdkVersion:k(),device:ne[n(562)](),user:ie[n(520)](),...o&&{attribution:o},params:e||{}};await this[n(532)](i),this[n(530)].debug&&(console[n(554)](n(510),t,e),o&&console[n(554)]("📊 Attribution included:",o))}catch(r){console[n(514)](n(566),r),this[n(530)][n(563)]&&console[n(514)](n(557),{eventName:t,properties:e})}else console[n(500)]("API key not configured for event tracking.");else console[n(500)](n(507))}async[ue(549)](t){const e=ue;if(!this[e(543)])return console.warn(e(507)),null;if(!this[e(530)]?.[e(537)])return console.warn(e(552)),null;try{const n=de[e(561)]();if(!n||0===Object[e(560)](n)[e(515)])return this[e(530)][e(563)]&&console.log(e(533)),null;const r=await this[e(534)]({deviceId:t,referrerParams:n});if(this[e(530)][e(563)]&&console[e(554)](e(504),r),r.attributionId){try{localStorage[e(502)](e(535),r[e(523)])}catch(t){}try{sessionStorage.setItem("adstage_attribution_id",r[e(523)])}catch(t){}}return r}catch(t){return console[e(514)](e(519),t),null}}[ue(509)](){const t=ue;if(typeof window===t(540))return null;try{const e=sessionStorage.getItem(t(535));if(e)return e}catch(t){}try{return localStorage[t(571)](t(535))}catch(t){}return null}async[ue(527)](t,e){return this[ue(536)](t,e)}async sendEventToServer(t){const e=ue,n={...R[e(564)](this._config[e(537)]),"Content-Type":e(508)};this._config?.[e(563)]&&(console[e(554)](e(558),n),console.log(e(499),H[e(567)][e(536)]()),console[e(554)]("📦 Request body:",t));const r=await fetch(H.events[e(536)](),{method:e(547),headers:n,body:JSON[e(570)](t)});if(!r.ok){const t=await r[e(526)]();throw console[e(514)](e(511),t),new Error(e(548)+r[e(569)]+" "+r.statusText)}}async sendAttributionToServer(t){const e=ue,n={...R[e(564)](this[e(530)].apiKey),"Content-Type":e(508)};this[e(530)]?.[e(563)]&&(console.log("🔑 Attribution request headers:",n),console[e(554)](e(546),H[e(567)][e(549)]()),console[e(554)](e(545),t));const r=await fetch(H.events[e(549)](),{method:e(547),headers:n,body:JSON[e(570)](t)});if(!r.ok){const t=await r[e(526)]();throw console[e(514)](e(511),t),new Error(e(516)+r[e(569)]+" "+r[e(565)])}return r.json()}}const ge=me;function me(t,e){const n=ye();return(me=function(t,e){return n[t-=452]})(t,e)}function ye(){const t=["development","substring","setBaseUrl","adstage_device_id","undefined","attributionId","attribution_id","📊 AdStage Debug: 현재 viewable 추적 상태","error","getTimezoneOffset","✅ Auto-tracked click event with tracking params:","channel",")의 viewable 추적 초기화됨","45nacXHN","⏭️ Skipping click event (duplicate or no click ID)","location","instance","🔍 Should send click event:","viewableTracker","🌐 API endpoint configured:","events","language","markClickEventSent","now","254608jbwoAc","generateDeviceId","hash","clearAdViewable","🎯 Sending click event after attribution registration","function","getItem","warn","then","web","toAttributionObject","debug","config","✅ AdStage Debug: 광고 ","55AYbsjf","ads","baseUrl","size","adstage_attribution_id","charCodeAt","3682140lGzYNu","userAgent","2.0.0","8ASzVti","62847uDqkZx","738230HPyQJz","❌ Error in click event auto-tracking:","tracking_params","getInstance","height","AdStage.config accessed before initialization","replace","clear","toISOString","reset","random","init","📊 Tracking parameters captured:","catch","log","join","hardwareConcurrency","4856614yYxjic","🔗 Using attributionId from URL (attribution_id):","click","search","_config","_isInitialized","...","expiresAt","6710679SnTlHx","toString","from","hasClickId","297mhfAaO","apiKey","track","❌ Failed to auto-track click event:","get","API key is required for AdStage initialization","❌ Failed to register attribution:","shouldSendClickEvent","15734YACssg","AdStage not initialized. Call AdStage.init() first.","registerAttribution","getConfig","AdStage.ads accessed before initialization"];return(ye=function(){return t})()}!function(t){const e=me,n=t();for(;;)try{if(427008===-parseInt(e(506))/1*(parseInt(e(488))/2)+parseInt(e(541))/3+parseInt(e(517))/4*(parseInt(e(531))/5)+parseInt(e(537))/6+parseInt(e(468))/7+-parseInt(e(540))/8*(-parseInt(e(476))/9)+parseInt(e(542))/10*(-parseInt(e(480))/11))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(ye);class Ie{constructor(){const t=me;this[t(473)]=!1,this[t(472)]=null,this.config=new Qt,this[t(532)]=new Gt,this.events=new fe}static[ge(462)](t){const e=ge;!Ie[e(509)]&&(Ie[e(509)]=new Ie);const n=Ie.instance;if(!t[e(481)])throw new Error(e(485));n._config={timeout:3e4,debug:!1,modules:[e(532),"events",e(529)],...t},n[e(472)][e(533)]&&(H[e(495)](n._config[e(533)]),t.debug&&console.log(e(512),n[e(472)][e(533)]));const r=n._config.modules||["ads",e(513),"config"];for(const t of r){const r=n[t];r&&typeof r[e(462)]===e(522)&&r[e(462)](n[e(472)])}if(n[e(473)]=!0,typeof window!==e(497)){const r=de.captureFromUrl();r&&t.debug&&console.log(e(463),r);const o=(()=>{const t=e;try{const e=new URLSearchParams(window.location[t(471)]),n=new URLSearchParams((window[t(508)][t(519)]||"")[t(457)](/^#/,""));return e[t(484)](t(499))||n[t(484)](t(499))}catch{return null}})();if(o)try{localStorage.setItem(e(535),o),t[e(528)]&&console[e(465)](e(469),o)}catch(t){}const i=de[e(487)]();t.debug&&(console[e(465)](e(510),i),!i&&console[e(465)](e(507)));const s=de[e(479)](),a=!(!r||!r[e(504)]);if(!o&&r&&(s||a)){const r=(async()=>{const r=e;try{const e=n[r(518)](),o=await n[r(513)][r(490)](e);return o&&t[r(528)]&&console[r(465)]("✅ Attribution registered:",{attributionId:o.attributionId,channel:o[r(504)],campaign:o.campaign,expiresAt:o[r(475)]}),o}catch(t){return console[r(501)](r(486),t),null}})();i&&r.then(r=>{const o=e;try{const e=de.get(),i=de[o(527)]();t[o(528)]&&console[o(465)](o(521),{attributionId:r?.[o(498)],hasAttribution:!!r}),n[o(513)].track(o(470),{_autoGenerated:!0,_source:o(453),_timestamp:(new Date)[o(459)](),_platform:o(526)})[o(525)](()=>{const n=o;de[n(515)](),t[n(528)]&&console[n(465)](n(503),{attribution:i,trackingParams:e})})[o(464)](t=>{const e=o;console[e(501)](e(483),t)})}catch(t){console[o(501)]("❌ Error in click event auto-tracking:",t)}})}else i&&setTimeout(()=>{const r=e;try{const e=de[r(484)](),o=de[r(527)]();n[r(513)][r(482)](r(470),{_autoGenerated:!0,_source:r(453),_timestamp:(new Date).toISOString(),_platform:r(526)}).then(()=>{const n=r;de[n(515)](),t.debug&&console[n(465)](n(503),{attribution:o,trackingParams:e})})[r(464)](t=>{console.error("❌ Failed to auto-track click event:",t)})}catch(t){console[r(501)](r(452),t)}},100)}t[e(528)]&&console.log("🚀 AdStage SDK initialized (sync mode)",{version:e(539),modules:r,apiKey:t[e(481)].substring(0,8)+e(474),mode:e(493)})}static isReady(){const t=ge;return Ie[t(509)]?.[t(473)]||!1}static[ge(491)](){const t=ge;return Ie.instance?.[t(472)]||null}static getInstance(){const t=ge;if(!Ie[t(509)])throw new Error(t(489));return Ie.instance}static get[ge(532)](){const t=ge;try{return Ie[t(454)]()[t(532)]}catch(e){throw console.warn(t(492)),e}}static get[ge(513)](){const t=ge;try{return Ie[t(454)]()[t(513)]}catch(e){throw console[t(524)]("AdStage.events accessed before initialization"),e}}static get config(){const t=ge;try{return Ie.getInstance()[t(529)]}catch(e){throw console[t(524)](t(456)),e}}static[ge(460)](){const t=ge;Ie[t(509)]&&(Ie.instance[t(473)]=!1,Ie[t(509)][t(472)]=null)}[ge(518)](){const t=ge;if(typeof window===t(497))return"server-"+Math[t(461)]()[t(477)](36)[t(494)](2,15);const e=localStorage[t(523)](t(496));if(e)return e;const n=[navigator[t(538)],navigator[t(514)],screen.width+"x"+screen[t(455)],(new Date)[t(502)](),navigator[t(467)]||0][t(466)]("|");let r=0;for(let e=0;e<n.length;e++){r=(r<<5)-r+n[t(536)](e),r&=r}const o="web-"+Math.abs(r).toString(36)+"-"+Date[t(516)]()[t(477)](36);return localStorage.setItem("adstage_device_id",o),o}}function ve(t,e){var n=be();return(ve=function(t,e){return n[t-=342]})(t,e)}function be(){var t=["AdStage not initialized. Call AdStage.init() first.","4316994sAIFUe","6khhoDV","1562034pIjIjF","resolve","8SoKpvI","5421250ooCLBf","warn","track","2736450ABRHnI","38342cINnHk","33vSRGVS","isReady","133HvnjcR","250872ggwZVr","140830qTzkxT","getUserProperties","events"];return(be=function(){return t})()}Ie[ge(528)]={clearAllViewable:()=>{const t=ge;ct[t(458)](),console[t(465)]("✅ AdStage Debug: 모든 viewable 추적 데이터 초기화됨")},clearAdViewable:(t,e)=>{const n=ge;ct[n(520)](t,e),console[n(465)](n(530)+t+"("+e+n(505))},getViewableStatus:()=>{const t=ge;console[t(465)](t(500),{trackedCount:ct[t(511)][t(534)],trackedItems:Array[t(478)](ct[t(511)])})}},function(t){for(var e=ve,n=t();;)try{if(367171===-parseInt(e(359))/1*(parseInt(e(349))/2)+parseInt(e(342))/3+-parseInt(e(344))/4*(-parseInt(e(354))/5)+parseInt(e(348))/6+-parseInt(e(352))/7*(-parseInt(e(353))/8)+parseInt(e(358))/9+parseInt(e(345))/10*(-parseInt(e(350))/11))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(be);var we,ke={exports:{}},Se={},Ee={exports:{}},xe={};Ee.exports=function(){if(we)return xe;we=1;var t=Symbol.for("react.element"),e=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),s=Symbol.for("react.context"),a=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),l=Symbol.for("react.lazy"),u=Symbol.iterator,p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},h=Object.assign,f={};function g(t,e,n){this.props=t,this.context=e,this.refs=f,this.updater=n||p}function m(){}function y(t,e,n){this.props=t,this.context=e,this.refs=f,this.updater=n||p}g.prototype.isReactComponent={},g.prototype.setState=function(t,e){if("object"!=typeof t&&"function"!=typeof t&&null!=t)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,t,e,"setState")},g.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")},m.prototype=g.prototype;var I=y.prototype=new m;I.constructor=y,h(I,g.prototype),I.isPureReactComponent=!0;var v=Array.isArray,b=Object.prototype.hasOwnProperty,w={current:null},k={key:!0,ref:!0,__self:!0,__source:!0};function S(e,n,r){var o,i={},s=null,a=null;if(null!=n)for(o in void 0!==n.ref&&(a=n.ref),void 0!==n.key&&(s=""+n.key),n)b.call(n,o)&&!k.hasOwnProperty(o)&&(i[o]=n[o]);var c=arguments.length-2;if(1===c)i.children=r;else if(1<c){for(var d=Array(c),l=0;l<c;l++)d[l]=arguments[l+2];i.children=d}if(e&&e.defaultProps)for(o in c=e.defaultProps)void 0===i[o]&&(i[o]=c[o]);return{$$typeof:t,type:e,key:s,ref:a,props:i,_owner:w.current}}function E(e){return"object"==typeof e&&null!==e&&e.$$typeof===t}var x=/\/+/g;function A(t,e){return"object"==typeof t&&null!==t&&null!=t.key?function(t){var e={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,function(t){return e[t]})}(""+t.key):e.toString(36)}function C(n,r,o,i,s){var a=typeof n;"undefined"!==a&&"boolean"!==a||(n=null);var c=!1;if(null===n)c=!0;else switch(a){case"string":case"number":c=!0;break;case"object":switch(n.$$typeof){case t:case e:c=!0}}if(c)return s=s(c=n),n=""===i?"."+A(c,0):i,v(s)?(o="",null!=n&&(o=n.replace(x,"$&/")+"/"),C(s,r,o,"",function(t){return t})):null!=s&&(E(s)&&(s=function(e,n){return{$$typeof:t,type:e.type,key:n,ref:e.ref,props:e.props,_owner:e._owner}}(s,o+(!s.key||c&&c.key===s.key?"":(""+s.key).replace(x,"$&/")+"/")+n)),r.push(s)),1;if(c=0,i=""===i?".":i+":",v(n))for(var d=0;d<n.length;d++){var l=i+A(a=n[d],d);c+=C(a,r,o,l,s)}else if(l=function(t){return null===t||"object"!=typeof t?null:"function"==typeof(t=u&&t[u]||t["@@iterator"])?t:null}(n),"function"==typeof l)for(n=l.call(n),d=0;!(a=n.next()).done;)c+=C(a=a.value,r,o,l=i+A(a,d++),s);else if("object"===a)throw r=String(n),Error("Objects are not valid as a React child (found: "+("[object Object]"===r?"object with keys {"+Object.keys(n).join(", ")+"}":r)+"). If you meant to render a collection of children, use an array instead.");return c}function T(t,e,n){if(null==t)return t;var r=[],o=0;return C(t,r,"","",function(t){return e.call(n,t,o++)}),r}function _(t){if(-1===t._status){var e=t._result;(e=e()).then(function(e){0!==t._status&&-1!==t._status||(t._status=1,t._result=e)},function(e){0!==t._status&&-1!==t._status||(t._status=2,t._result=e)}),-1===t._status&&(t._status=0,t._result=e)}if(1===t._status)return t._result.default;throw t._result}var R={current:null},L={transition:null},D={ReactCurrentDispatcher:R,ReactCurrentBatchConfig:L,ReactCurrentOwner:w};function P(){throw Error("act(...) is not supported in production builds of React.")}return xe.Children={map:T,forEach:function(t,e,n){T(t,function(){e.apply(this,arguments)},n)},count:function(t){var e=0;return T(t,function(){e++}),e},toArray:function(t){return T(t,function(t){return t})||[]},only:function(t){if(!E(t))throw Error("React.Children.only expected to receive a single React element child.");return t}},xe.Component=g,xe.Fragment=n,xe.Profiler=o,xe.PureComponent=y,xe.StrictMode=r,xe.Suspense=c,xe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=D,xe.act=P,xe.cloneElement=function(e,n,r){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var o=h({},e.props),i=e.key,s=e.ref,a=e._owner;if(null!=n){if(void 0!==n.ref&&(s=n.ref,a=w.current),void 0!==n.key&&(i=""+n.key),e.type&&e.type.defaultProps)var c=e.type.defaultProps;for(d in n)b.call(n,d)&&!k.hasOwnProperty(d)&&(o[d]=void 0===n[d]&&void 0!==c?c[d]:n[d])}var d=arguments.length-2;if(1===d)o.children=r;else if(1<d){c=Array(d);for(var l=0;l<d;l++)c[l]=arguments[l+2];o.children=c}return{$$typeof:t,type:e.type,key:i,ref:s,props:o,_owner:a}},xe.createContext=function(t){return(t={$$typeof:s,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:i,_context:t},t.Consumer=t},xe.createElement=S,xe.createFactory=function(t){var e=S.bind(null,t);return e.type=t,e},xe.createRef=function(){return{current:null}},xe.forwardRef=function(t){return{$$typeof:a,render:t}},xe.isValidElement=E,xe.lazy=function(t){return{$$typeof:l,_payload:{_status:-1,_result:t},_init:_}},xe.memo=function(t,e){return{$$typeof:d,type:t,compare:void 0===e?null:e}},xe.startTransition=function(t){var e=L.transition;L.transition={};try{t()}finally{L.transition=e}},xe.unstable_act=P,xe.useCallback=function(t,e){return R.current.useCallback(t,e)},xe.useContext=function(t){return R.current.useContext(t)},xe.useDebugValue=function(){},xe.useDeferredValue=function(t){return R.current.useDeferredValue(t)},xe.useEffect=function(t,e){return R.current.useEffect(t,e)},xe.useId=function(){return R.current.useId()},xe.useImperativeHandle=function(t,e,n){return R.current.useImperativeHandle(t,e,n)},xe.useInsertionEffect=function(t,e){return R.current.useInsertionEffect(t,e)},xe.useLayoutEffect=function(t,e){return R.current.useLayoutEffect(t,e)},xe.useMemo=function(t,e){return R.current.useMemo(t,e)},xe.useReducer=function(t,e,n){return R.current.useReducer(t,e,n)},xe.useRef=function(t){return R.current.useRef(t)},xe.useState=function(t){return R.current.useState(t)},xe.useSyncExternalStore=function(t,e,n){return R.current.useSyncExternalStore(t,e,n)},xe.useTransition=function(){return R.current.useTransition()},xe.version="18.3.1",xe}();var Ae,Ce=Ee.exports;
|
|
2
2
|
/**
|
|
3
3
|
* @license React
|
|
4
4
|
* react-jsx-runtime.production.min.js
|
|
@@ -7,4 +7,4 @@
|
|
|
7
7
|
*
|
|
8
8
|
* This source code is licensed under the MIT license found in the
|
|
9
9
|
* LICENSE file in the root directory of this source tree.
|
|
10
|
-
*/
|
|
10
|
+
*/ke.exports=function(){if(Ae)return Se;Ae=1;var t=Ce,e=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,o=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function s(t,n,s){var a,c={},d=null,l=null;for(a in void 0!==s&&(d=""+s),void 0!==n.key&&(d=""+n.key),void 0!==n.ref&&(l=n.ref),n)r.call(n,a)&&!i.hasOwnProperty(a)&&(c[a]=n[a]);if(t&&t.defaultProps)for(a in n=t.defaultProps)void 0===c[a]&&(c[a]=n[a]);return{$$typeof:e,type:t,key:d,ref:l,props:c,_owner:o.current}}return Se.Fragment=n,Se.jsx=s,Se.jsxs=s,Se}();var Te=ke.exports;const _e=Ce.createContext(null);function Re(){const t=Ce.useContext(_e);if(!t)throw new Error("useAdStageContext must be used within an AdStageProvider");return t}function Le(t,e){var n=De();return(Le=function(t,e){return n[t-=471]})(t,e)}function De(){var t=["402bqKEAf","4510891XhvzPe","5KAatrx","4402370pAgvpF","2760220BQszlo","9UdMBAx","242112SOmxAJ","8299VHmZer","4599648hDsJkc","1593loKmID"];return(De=function(){return t})()}!function(t){for(var e=Le,n=t();;)try{if(377355===-parseInt(e(472))/1+-parseInt(e(475))/2*(-parseInt(e(474))/3)+parseInt(e(479))/4*(parseInt(e(477))/5)+-parseInt(e(471))/6+parseInt(e(476))/7+-parseInt(e(473))/8+-parseInt(e(480))/9*(parseInt(e(478))/10))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(De);const Pe=Ue;function Oe(){const t=["1299376eKsTqq","33HzMWGY","144785XrQguY","config","66322rstjNB","undefined","8904159pbCxJp","1571808rjAZjb","events","1651404wrgoEw","ads","2.0.0","AdStage","950619EKomwr","78wGZbVI"];return(Oe=function(){return t})()}function Ue(t,e){const n=Oe();return(Ue=function(t,e){return n[t-=313]})(t,e)}!function(t){const e=Ue,n=t();for(;;)try{if(676595===parseInt(e(320))/1+parseInt(e(326))/2*(parseInt(e(323))/3)+-parseInt(e(316))/4+-parseInt(e(324))/5*(-parseInt(e(321))/6)+parseInt(e(314))/7+parseInt(e(322))/8+-parseInt(e(313))/9)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(Oe);const ze=Pe(318),Me=[Pe(317),Pe(315),Pe(325)];typeof window!==Pe(327)&&(window[Pe(319)]=Ie),t.AdStage=Ie,t.AdStageProvider=function({children:t,config:e}){const[n,r]=Ce.useState(!1),[o,i]=Ce.useState(null),[s,a]=Ce.useState(null),c=t=>{try{a(null),n&&Ie.reset(),Ie.init(t),i(t),r(!0),t.debug&&console.log("✅ AdStage SDK initialized successfully via React Provider")}catch(t){const e=t instanceof Error?t.message:"Unknown error";a(e),console.error("❌ AdStage SDK initialization failed:",t),r(!1),i(null)}};Ce.useEffect(()=>{e&&!n&&c(e)},[e,n]);const d={isInitialized:n,config:o,initialize:c,reset:()=>{try{Ie.reset(),r(!1),i(null),a(null)}catch(t){console.error("❌ AdStage SDK reset failed:",t)}},error:s};return Te.jsx(_e.Provider,{value:d,children:t})},t.SDK_VERSION=ze,t.SUPPORTED_MODULES=Me,t.TrackingParamsModule=de,t.getUserProperties=function(){var t=ve;if(Ie[t(351)]())return Ie[t(356)][t(355)]();console[t(346)]("AdStage not initialized. Call AdStage.init() first.")},t.setUserProperties=function(t){var e=ve;Ie.isReady()?Ie[e(356)].setUserProperties(t):console[e(346)](e(357))},t.track=function(t,e){var n=ve;return Ie[n(351)]()?Ie[n(356)][n(347)](t,e):(console[n(346)](n(357)),Promise[n(343)]())},t.useAdStageContext=Re,t.useAdStageInstance=function(){const{isInitialized:t}=Re();return t?Ie:(console.warn("AdStage SDK is not initialized. Please call initialize() first or provide config to AdStageProvider."),null)}});
|