UNPKG

@adstage/web-sdk

Version:

AdStage Web SDK - Production-ready marketing platform SDK with React Provider support for seamless integration

1 lines 111 kB
!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(t,n){var r=f();return(e=function(t,e){return r[t-=450]})(t,n)}var n,r,s,o,i,a,c,l,d,u,p,h;function f(){var t=["208003bRdyjX","CLICK","POPUP","684714YUUeZy","MOBILE","1243302TcfHoU","NATIVE","1237224tXuUIi","4255528uOtpbJ","VIEWABLE","10eCzcOu","TABLET","TEXT","WEB","598608VucSsU","3216073stFYrs","DESKTOP","INTERSTITIAL"];return(f=function(){return t})()}!function(t){for(var n=e,r=t();;)try{if(342161===-parseInt(n(455))/1+parseInt(n(460))/2+-parseInt(n(462))/3+parseInt(n(451))/4*(parseInt(n(465))/5)+parseInt(n(458))/6+parseInt(n(452))/7+-parseInt(n(463))/8)break;r.push(r.shift())}catch(t){r.push(r.shift())}}(f),r=n||(n={}),s=e,r.BANNER="BANNER",r.POPUP=s(457),r[s(454)]=s(454),r[s(461)]=s(461),r.VIDEO="VIDEO",r[s(467)]=s(467),i=o||(o={}),a=e,i.WEB=a(450),i[a(459)]="MOBILE",l=c||(c={}),d=e,l.VIEWABLE=d(464),l[d(456)]="CLICK",(p=u||(u={}))[(h=e)(453)]="DESKTOP",p[h(459)]=h(459),p[h(466)]=h(466);const g=m;function m(t,e){const n=I();return(m=function(t,e){return n[t-=191]})(t,e)}!function(t){const e=m,n=t();for(;;)try{if(416842===parseInt(e(196))/1*(parseInt(e(208))/2)+-parseInt(e(232))/3+-parseInt(e(223))/4*(-parseInt(e(261))/5)+-parseInt(e(202))/6+-parseInt(e(253))/7*(parseInt(e(217))/8)+-parseInt(e(234))/9+parseInt(e(264))/10*(parseInt(e(191))/11))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(I);class y{static[g(255)](){const t=g;return typeof window!==t(268)&&typeof document!==t(268)}static[g(209)](){return!this[g(255)]()}static[g(251)](){return this.isBrowser()&&void 0!==document.readyState}static[g(242)](t){const e=g;return this[e(251)]()?document[e(262)](t):null}static[g(210)](t){const e=g;return this[e(251)]()?document[e(230)](t):null}static[g(201)](t){const e=g;return this[e(251)]()?Array[e(224)](document[e(236)](t)):[]}static[g(225)](t){const e=g;return this.canUseDOM()?document[e(235)](t):null}static[g(241)](t,e,n,r){const s=g;this[s(251)]()&&t&&t[s(192)](e,n,r)}static[g(198)](t,e,n,r){const s=g;this.canUseDOM()&&t&&t[s(206)](e,n,r)}static getWindowProperty(t,e){return this.isBrowser()?window[t]??e:e}static[g(254)](t,e){return this[g(251)]()?document[t]??e:e}static[g(195)](t,e,n){const r=g;return this[r(255)]()?window[r(267)](t,e,n):null}static[g(263)](t){const e=g;return this[e(255)]()&&t?window[e(211)](t):null}static[g(205)](){const t=g;return!!this[t(251)]()&&document.readyState!==t(258)}static[g(238)](){return new Promise(t=>{const e=m;this.canUseDOM()?this[e(205)]()?t():this[e(241)](document,e(231),()=>t()):t()})}static[g(239)](t,e){const n=g;this.canUseDOM()&&t&&Object[n(257)](e)[n(229)](([e,n])=>{t.style.setProperty(e,n)})}static[g(227)](t,e){const n=g;this[n(251)]()&&t&&t[n(248)][n(203)](e)}static safeRemoveClass(t,e){const n=g;this[n(251)]()&&t&&t[n(248)].remove(e)}static[g(269)](t,e){const n=g;this[n(251)]()&&t&&(t[n(226)]=e)}static[g(214)](t,e){const n=g;this.canUseDOM()&&t&&(t[n(222)]=e)}static[g(237)](t,e){const n=g;this[n(251)]()&&t&&e&&t[n(213)](e)}static[g(240)](t,e){const n=g;this.canUseDOM()&&t&&e&&t[n(220)](e)}static getPageInfo(){const t=g;return{url:this[t(200)](t(228),{href:""}).href,title:this[t(254)](t(194),""),referrer:this[t(254)](t(221),"")}}static getViewportInfo(){const t=g;return{width:this[t(200)](t(197),0),height:this[t(200)](t(252),0),pixelRatio:this.getWindowProperty(t(193),1)}}static[g(260)](){const t=g;return{scrollTop:this[t(251)]()?window.pageYOffset||document[t(270)][t(266)]:0,scrollLeft:this.getWindowProperty(t(215),0)}}static async[g(207)](t,e={}){const n=g,{timeout:r=3e3,retryInterval:s=100,debug:o=!1}=e;if(!this.canUseDOM())throw new Error("DOM을 사용할 수 없는 환경입니다.");const i=document[n(262)](t);return i?(o&&console[n(212)](n(216)+t),i):(o&&console[n(212)]("⏳ 컨테이너 대기 시작: "+t+n(244)+r+"ms)"),new Promise((e,n)=>{let i=0;const a=Math.ceil(r/s),c=()=>{const l=m;i++;const d=document[l(262)](t);if(d)return o&&console[l(212)](l(243)+t+" ("+i+l(218)+i*s+l(245)),void e(d);if(i>=a){const e='❌ 컨테이너를 찾을 수 없습니다: "'+t+l(219)+t+l(250)+r+l(246)+i+l(265);return o&&console[l(199)](e),void n(new Error(e))}o&&i%10==0&&console[l(212)](l(256)+t+" ("+i+"/"+a+")");const u=Math[l(249)](s*Math[l(247)](1.2,i),500);setTimeout(c,u)};setTimeout(c,s)}))}static async[g(259)](t,e={}){const n=g,r=t[n(233)](t=>this[n(207)](t,e));return Promise[n(204)](r)}}function I(){const t=["safeSetInnerHTML","pageXOffset","✅ 컨테이너 즉시 발견: ","96848wTgCFn","번째 시도, ",'"\n \n다음을 확인해보세요:\n1. HTML에 id="',"removeChild","referrer","innerHTML","136IShKyK","from","safeCreateElement","textContent","safeAddClass","location","forEach","querySelector","DOMContentLoaded","2453832ktAodL","map","1889955gDSfgc","createElement","querySelectorAll","safeAppendChild","waitForDOM","safeApplyStyles","safeRemoveChild","safeAddEventListener","safeGetElementById","✅ 컨테이너 발견: "," (최대 ","ms 경과)","ms (","pow","classList","min",'" 요소가 있는지 확인\n2. React 등에서 컴포넌트가 렌더링된 후 SDK 호출\n3. 철자가 정확한지 확인\n4. 중복된 ID가 없는지 확인\n\n대기 시간: ',"canUseDOM","innerHeight","21OWsrOB","getDocumentProperty","isBrowser","⏳ 컨테이너 대기 중: ","entries","loading","waitForElements","getScrollInfo","43465phRrwM","getElementById","safeGetComputedStyle","1670JUsCoB","번 시도)","scrollTop","open","undefined","safeSetTextContent","documentElement","54373yVBXQD","addEventListener","devicePixelRatio","title","safeWindowOpen","422FliMsU","innerWidth","safeRemoveEventListener","error","getWindowProperty","safeQuerySelectorAll","1799712PseVRW","add","all","isDOMReady","removeEventListener","waitForElement","3128NKTlqx","isSSR","safeQuerySelector","getComputedStyle","log","appendChild"];return(I=function(){return t})()}const v=w;!function(t){const e=w,n=t();for(;;)try{if(649535===parseInt(e(302))/1+-parseInt(e(307))/2+parseInt(e(301))/3*(parseInt(e(306))/4)+parseInt(e(305))/5+-parseInt(e(299))/6*(-parseInt(e(304))/7)+parseInt(e(300))/8*(-parseInt(e(311))/9)+-parseInt(e(308))/10)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(E);const b=v(310);function w(t,e){const n=E();return(w=function(t,e){return n[t-=297]})(t,e)}function k(){return b}function E(){const t=["userAgent","6gZaDBG","8BRJCTE","240myXBHm","1047916QXaVAz","AdStageSDK/","4420857UXVkJj","3884625PjBzCm","36188kCrfwK","1929176mgdfpR","10866030ZaKmEG","undefined",'"3.0.9"',"4314834jKrdIz"," AdStageSDK/"];return(E=function(){return t})()}function S(t,e){const n=C();return(S=function(t,e){return n[t-=211]})(t,e)}const x=S;function C(){const t=["width","effectiveType","getItem","228867MbSfHv","702653xjlOEb","userAgent","height","258qpuOER","getSlotPosition","adstage_device_id","desktop","286764vmnJNh","top","UTC","toString","random","timeZone","setItem","test","now","generateDeviceId","1284VtNZlk","toLowerCase","resolvedOptions","1656325SjotHM","language","adstage_session_id","getPlatform","safeQuerySelector","isBrowser","16QMfXOS",",y:","1.0.0","SSR","53365fOZuoO","16670BFOLBR","session_","generateSessionId","51844fPQdNL"," .adstage-slider-wrapper","round","connection","getBoundingClientRect","ssr_session_","getViewportInfo","927riUXrX","pixelRatio","unknown","isMobile","substr","3geHNnM","8SViHZl","left","device_","web","ssr_device_"];return(C=function(){return t})()}!function(t){const e=S,n=t();for(;;)try{if(265442===parseInt(e(228))/1*(-parseInt(e(245))/2)+-parseInt(e(237))/3*(-parseInt(e(264))/4)+parseInt(e(212))/5*(-parseInt(e(241))/6)+parseInt(e(238))/7*(parseInt(e(229))/8)+parseInt(e(223))/9*(parseInt(e(213))/10)+parseInt(e(258))/11+-parseInt(e(255))/12*(-parseInt(e(216))/13))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(C);class A{static[x(254)](){const t=x;if(!y[t(263)]())return t(233)+Date[t(253)]();const e=localStorage[t(236)](t(243));if(e)return e;const n=t(231)+Math[t(249)]()[t(248)](36)[t(227)](2,9)+"_"+Date[t(253)]();return localStorage.setItem(t(243),n),n}static[x(215)](){const t=x;if(!y[t(263)]())return t(221)+Date[t(253)]();const e=sessionStorage[t(236)](t(260));if(e)return e;const n=t(214)+Math.random()[t(248)](36)[t(227)](2,9)+"_"+Date[t(253)]();return sessionStorage[t(251)](t(260),n),n}static[x(226)](){const t=x;return!!y[t(263)]()&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i[t(252)](navigator[t(239)])}static[x(261)](){const t=x;if(!y[t(263)]())return t(232);const e=navigator[t(239)][t(256)]();return/iphone|ipad|ipod/[t(252)](e)?"ios":/android/[t(252)](e)?"android":A.isMobile()?t(232):t(244)}static collectDeviceInfo(){const t=x,e=y[t(222)]();return{deviceId:A[t(254)](),sessionId:A[t(215)](),osVersion:y[t(263)]()?navigator.platform:t(211),deviceModel:y[t(263)]()?navigator.platform:t(211),appVersion:t(266),sdkVersion:k(),language:y[t(263)]()&&navigator[t(259)]||"ko",country:"KR",ipAddress:"",userAgent:y[t(263)]()?navigator[t(239)]:t(211),timezone:y.isBrowser()?Intl.DateTimeFormat()[t(257)]()[t(250)]:t(247),viewportWidth:e[t(234)],viewportHeight:e[t(240)],screenWidth:y[t(263)]()?screen.width:0,screenHeight:y[t(263)]()?screen[t(240)]:0,colorDepth:y.isBrowser()?screen.colorDepth:24,pixelRatio:e[t(224)],connectionType:y[t(263)]()&&navigator[t(219)]?.[t(235)]||t(225),platform:A[t(261)]()}}static[x(242)](t){const e=x;let n=y.safeGetElementById(t);if(!n){const r=y[e(262)]("#"+t+e(217));r&&(n=r)}if(!n&&(n=y[e(262)]('[data-adstage-slot-id="'+t+'"]')),!n)return e(225);const r=n[e(220)](),s=y.getScrollInfo();return"x:"+Math.round(r[e(230)])+e(265)+Math[e(218)](r[e(246)]+s.scrollTop)}}function T(){const t=["22032WKDOPj","221376UnLHVC","userAgent","707634oGSmRo","115780rebpey","685323cxHyIe","176463dALNHU","application/json","22855JVVcWe","create","undefined","API key is required","63ClnpQz","268Jedgpc","createForEvents","User-Agent"];return(T=function(){return t})()}const D=R;function R(t,e){const n=T();return(R=function(t,e){return n[t-=395]})(t,e)}!function(t){const e=R,n=t();for(;;)try{if(172760===parseInt(e(409))/1+-parseInt(e(397))/2+parseInt(e(398))/3+parseInt(e(406))/4*(-parseInt(e(401))/5)+parseInt(e(396))/6+-parseInt(e(399))/7+-parseInt(e(410))/8*(-parseInt(e(405))/9))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(T);class _{static create(t,e){const n=R;if(!t)throw new Error(n(404));const r={"x-api-key":t,"Content-Type":e?.contentType||n(400)};return typeof navigator!==n(403)&&(r[n(408)]=e?.userAgent||navigator[n(395)]),r}static[D(407)](t,e){const n=D,r=_[n(402)](t);return e?.userAgent&&(r[n(408)]=e[n(395)]),r}}const U=P;function P(t,e){const n=z();return(P=function(t,e){return n[t-=153]})(t,e)}function z(){const t=["🚀 Sending advertisement event: "," in slot ","trackAdvertisementEvent","getSlotPosition","replace","4362610TyYQeq","956VXxhFi","height","225ozabmK","...","apiKey",". Skipping event tracking to prevent incorrect adType.","length","baseUrl","stringify","error","title","1529505YankFR","NOT_SET","⚠️ DOM element not found for slotId: ","2305976kaATNl","627lhIZVX","/advertisements/events/","12mKqAiq","slots","status","querySelector","801540UOknqC","warn","getElementById","❌ Failed to track advertisement event:","getPageInfo","API request failed: ","270160lzLAqA"," event for ad "," for ad ","3GFercb","✅ Successfully tracked advertisement event: ","collectDeviceInfo","VIEWABLE"," - ","14meMBea","2632949lyxXLY","createForEvents","containerId","debug",'[data-adstage-slot-id="',"statusText","🚀 AdvertisementEventTracker: Processing ","⚠️ Slot not found for slotId: ","width","url","now","log","🔍 Debug info:","POST","parseNumericValue","text"];return(z=function(){return t})()}!function(t){const e=P,n=t();for(;;)try{if(464923===parseInt(e(166))/1*(parseInt(e(209))/2)+parseInt(e(181))/3*(-parseInt(e(165))/4)+parseInt(e(162))/5+parseInt(e(172))/6*(parseInt(e(186))/7)+-parseInt(e(178))/8*(-parseInt(e(153))/9)+-parseInt(e(208))/10+parseInt(e(187))/11*(-parseInt(e(168))/12))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(z);class B{constructor(t,e,n,r){const s=P;this.baseUrl=t,this.apiKey=e,this[s(190)]=n,this[s(169)]=r}async[U(205)](t,e,n){const r=U;try{this.debug&&console[r(198)](r(193)+n+r(179)+t+r(204)+e);const s=this[r(169)].get(e);if(!s)return void(this[r(190)]&&console[r(173)](r(194)+e+r(156)));if(!(document[r(174)](s[r(189)])||document[r(171)](r(191)+e+'"]')))return void(this[r(190)]&&console[r(173)](r(164)+e+" (containerId: "+s.containerId+"). Skipping event tracking."));const o=A[r(183)](),i={adType:s.adType,platform:o.platform,deviceId:o.deviceId,deviceInfo:o,pageUrl:y[r(176)]()[r(196)],pageTitle:y[r(176)]()[r(161)],referrer:y[r(176)]().referrer,slotId:e,slotPosition:A[r(206)](s.containerId),slotWidth:B[r(201)](s[r(195)]),slotHeight:B.parseNumericValue(s[r(210)]),sessionId:o.sessionId,pageLoadTime:performance[r(197)](),metadata:{eventType:n,sdkVersion:k(),timestamp:Date.now()},...n===c[r(184)]&&{isViewable:!0,iabCompliant:!0}},a=this[r(158)]+r(167)+t+"/"+n,l=_[r(188)](this.apiKey,i);this[r(190)]&&(console.log(r(203)+n+r(180)+t,{url:a,headers:l,eventData:i}),console.log("🌐 Full API call details:",{method:"POST",url:a,hasApiKey:!!this[r(155)],bodySize:JSON[r(159)](i)[r(157)]}));const d=await fetch(a,{method:r(200),headers:l,body:JSON[r(159)](i)});if(this.debug&&console[r(198)]("📡 API Response Status: "+d[r(170)]+" "+d[r(192)],{url:a,ok:d.ok}),!d.ok){const t=await d[r(202)]();throw new Error(r(177)+d[r(170)]+" "+d[r(192)]+r(185)+t)}this[r(190)]&&console[r(198)](r(182)+n+" for ad "+t)}catch(s){console.error(r(175),s),console[r(160)](r(199),{baseUrl:this[r(158)],apiKey:this[r(155)]?this[r(155)].substring(0,8)+r(154):r(163),url:this.baseUrl+"/advertisements/events/"+t+"/"+n,eventType:n,adId:t,slotId:e})}}static parseNumericValue(t){if("number"==typeof t)return t;if("string"==typeof t){const e=parseFloat(t[U(207)](/px$/,""));return isNaN(e)?0:e}return 0}}function O(){var t=["1666626JZBjjN","element","hidden","visible","onViewableCallback","IntersectionObserver not supported, viewability tracking disabled","intersectionRatio","isViewableTriggered","1603XZUoat","72kbZotn","3156335NKtyIT","219761BALRVs","9dcJPCJ","handleIntersection","2QQwBkQ","isDocumentVisible","destroy","2422770LJPXCU","observer","0px","observe","warn","initIntersectionObserver","2336584FSxAqB","4ipUrcH","430408SoCWkP","11814iWNQeW"];return(O=function(){return t})()}function M(t,e){var n=O();return(M=function(t,e){return n[t-=121]})(t,e)}var L=M;!function(t){for(var e=M,n=t();;)try{if(340387===parseInt(e(135))/1*(-parseInt(e(138))/2)+parseInt(e(124))/3+parseInt(e(121))/4*(-parseInt(e(134))/5)+-parseInt(e(123))/6*(-parseInt(e(132))/7)+parseInt(e(147))/8*(-parseInt(e(136))/9)+parseInt(e(141))/10+-parseInt(e(122))/11*(-parseInt(e(133))/12))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(O);class V{constructor(t,e){var n=M;this.observer=null,this[n(131)]=!1,this[n(125)]=t,this[n(128)]=e,this[n(146)]()}[L(146)](){var t=L;"IntersectionObserver"in window?(this[t(142)]=new IntersectionObserver(e=>this[t(137)](e),{threshold:.5,rootMargin:t(143)}),this.observer[t(144)](this.element)):console[t(145)](t(129))}handleIntersection(t){t.forEach(t=>{var e=M;t[e(130)]>=.5&&this[e(139)]()&&!this[e(131)]&&(this[e(131)]=!0,this[e(128)]&&this[e(128)]())})}[L(139)](){var t=L;return!document[t(126)]&&document.visibilityState===t(127)}[L(140)](){var t=L;this[t(142)]&&(this.observer.disconnect(),this[t(142)]=null)}}const N=F;function F(t,e){const n=K();return(F=function(t,e){return n[t-=430]})(t,e)}!function(t){const e=F,n=t();for(;;)try{if(918420===-parseInt(e(456))/1+parseInt(e(435))/2*(-parseInt(e(430))/3)+-parseInt(e(453))/4*(parseInt(e(432))/5)+parseInt(e(434))/6*(-parseInt(e(438))/7)+-parseInt(e(448))/8+parseInt(e(449))/9*(-parseInt(e(441))/10)+-parseInt(e(454))/11*(-parseInt(e(445))/12))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(K);const j={production:N(436),beta:N(443)};N(442);const H={advertisements:{list:N(452),detail:N(433),events:N(444)},events:{track:"/events/track"}};function K(){const t=["17648PdCMLh","22KjYAcB","track","1414492xHjtrD","advertisements","1068uISodl","baseUrl","240WPdsOE","/advertisements","12ecQUvu","7124zczwvu","https://api.adstage.app","getBaseUrl","2269757VjynGt","setBaseUrl","events","60OwCRLP","production","https://beta-api.adstage.app","/advertisements/events","36292116pXckqW","detail","startsWith","7306448xSUwJB","1011177ULipGi","custom","list","/advertisements/list"];return(K=function(){return t})()}class W{constructor(t){const e=N;this[e(457)]={list:()=>""+this[e(431)]+H[e(457)][e(451)],detail:t=>""+this.baseUrl+H[e(457)][e(446)]+"/"+t,events:(t,n)=>""+this[e(431)]+H[e(457)].events+"/"+t+"/"+n},this[e(440)]={track:()=>""+this[e(431)]+H[e(440)][e(455)]},this[e(431)]=t||j[e(442)]}[N(439)](t){this[N(431)]=t}[N(437)](){return this[N(431)]}[N(450)](t){const e=N;return""+this[e(431)]+(t[e(447)]("/")?t:"/"+t)}}const G=new W;function X(){var t=["8CrMTkP","log","3236142wbRtNA","22NOZAoS","12KkCFHd","2751310SljOkb","VIEWABLE","🎯 Triggering VIEWABLE event for slide change: ad ","7934920JYWcKv","5431635dGFKhv","1010124hHtmbX","121HMSBUf","🎯 Triggering initial VIEWABLE event: ad ","_id"," (index: ",") in slot: ","2678545jXCHOu","trackSlideViewable","131367jjMLsU"];return(X=function(){return t})()}var J=Y;function Y(t,e){var n=X();return(Y=function(t,e){return n[t-=487]})(t,e)}!function(t){for(var e=Y,n=t();;)try{if(850805===parseInt(e(503))/1*(-parseInt(e(488))/2)+-parseInt(e(489))/3*(-parseInt(e(495))/4)+parseInt(e(501))/5+-parseInt(e(487))/6+-parseInt(e(493))/7+parseInt(e(504))/8*(-parseInt(e(494))/9)+-parseInt(e(490))/10*(-parseInt(e(496))/11))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(X);class Z{static[J(502)](t,e,n,r,s=!1){var o=J;s&&console.log(o(492)+t[o(498)]+o(499)+n+o(500)+e.id),r(t._id,e.id,c[o(491)])}static trackInitialSlideViewable(t,e,n,r=!1){var s=J;r&&console[s(505)](s(497)+t[s(498)]+" (index: 0) in slot: "+e.id),n(t[s(498)],e.id,c[s(491)])}}function q(){const t=["1852242IyuLNZ","preventDefault","_id","open","adType","685164ciznjM","pointer","isClickable","stopPropagation","5215zocStR","3293415goLDkG","🔗 ","addEventListener","21zRkADe","8861166lBCKeU","linkUrl","CLICK","addClickEventForRenderer","750640XyKQiL","1395248eDSoSp","style","click","log"," ad clicked: ","forEach","3292DZmPow","addClickEventsBatch"," -> ","3YXjAmm","cursor","toLowerCase","addClickEvent","_blank"];return(q=function(){return t})()}const Q=$;function $(t,e){const n=q();return($=function(t,e){return n[t-=289]})(t,e)}!function(t){const e=$,n=t();for(;;)try{if(737431===parseInt(e(308))/1*(-parseInt(e(318))/2)+parseInt(e(290))/3+-parseInt(e(305))/4*(-parseInt(e(289))/5)+-parseInt(e(313))/6*(parseInt(e(293))/7)+-parseInt(e(299))/8+parseInt(e(294))/9+-parseInt(e(298))/10)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(q);class tt{static[Q(311)](t,e,n,r,s=!1,o){const i=Q;e.linkUrl&&(t[i(300)][i(309)]="pointer",t[i(292)](i(301),t=>{const a=i;if(t[a(314)](),t.stopPropagation(),r&&r(e[a(315)],n.id,c[a(296)]),window[a(316)](e.linkUrl,a(312)),s){const t=o||String(n[a(317)])[a(310)]();console[a(302)](a(291)+t+a(303)+e._id+a(307)+e[a(295)])}}))}static[Q(297)](t,e,n,r,s=!1,o){const i=Q;e[i(295)]&&(t[i(300)].cursor=i(319),t[i(292)](i(301),t=>{const a=i;t[a(314)](),t[a(321)]();if(r()(e[a(315)],n.id,c[a(296)]),window[a(316)](e[a(295)],a(312)),s){const t=o||String(n[a(317)]).toLowerCase();console[a(302)](a(291)+t+" ad clicked: "+e[a(315)]+" -> "+e[a(295)])}}))}static addClickEventForSlider(t,e,n,r,s=!1,o){this[Q(311)](t,e,n,r,s,o)}static[Q(320)](t){return Boolean(t[Q(295)])}static[Q(306)](t,e,n,r,s=!1,o){const i=Q;t[i(304)]((t,a)=>{const c=i,l=e[a];l&&this[c(311)](t,l,n,r,s,o)})}}const et=nt;function nt(t,e){const n=rt();return(nt=function(t,e){return n[t-=217]})(t,e)}function rt(){const t=["includes","add","adstage-dots","background","body","2142702xqaHCg","white","transform 0.4s ease-out","4laCGHS","whiteSpace","2531706DuhetB","touches","_id","flex","cover","imageUrl","addTouchSupport","querySelectorAll","appendChild","5971690IdyMhh","\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 ","200px","\n position: absolute;\n visibility: hidden;\n white-space: nowrap;\n top: -9999px;\n left: -9999px;\n ","Text Ad","backgroundColor","20326BaTzWs","src","className","abs","adType","adstage-dot","#cccccc","objectFit","123nLsvqL","mouseenter","cssText","relative","#666666","button","textContent","div","borderColor","height","padding","length","setAttribute","style","18352hJNOFQ","0.7"," Ad","active","forEach","string","createMinimalDotIndicator","overflow","auto","inline-block","addClickEventForSlider","100%","22iVvbGI","8px","every","entries","opacity",".adstage-dot","data-adstage-ad-id","videoUrl","transparent","VIDEO","trackSlideViewable","0.9","1px dashed #ccc","click","transform","width","classList","hidden","addEventListener","children","createSimpleAdElement","610177YTtyhF","transition","#f0f0f0","adstage-slide","contains","100px","setProperty","1391710aBCCHb","autoSlideInterval","display","video","adstage-ad adstage-","createElement","translateX(-","#f9f9f9","49zGjAGw","getBoundingClientRect","border","clientX","#999999","Banner Ad","removeChild","50px","preventDefault","normal","fontSize","BANNER","mouseleave","img","toLowerCase","touchend","center","Video Ad"];return(rt=function(){return t})()}!function(t){const e=nt,n=t();for(;;)try{if(310795===parseInt(e(303))/1+-parseInt(e(248))/2*(-parseInt(e(256))/3)+parseInt(e(231))/4*(parseInt(e(310))/5)+parseInt(e(233))/6+-parseInt(e(318))/7*(-parseInt(e(270))/8)+-parseInt(e(228))/9+parseInt(e(242))/10*(-parseInt(e(282))/11))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(rt);class st{static[et(302)](t,e){const r=et,s=document[r(315)]("div");switch(s.className=r(314)+String(t[r(252)])[r(219)](),s.setAttribute(r(288),e[r(235)]),s[r(268)]("data-adstage-slot-id",t.id),s[r(269)][r(312)]="block",s[r(269)][r(297)]=r(281),s[r(269)].height=r(278),t[r(252)]){case n[r(329)]:if(e[r(238)]){const t=document.createElement(r(218));t.src=e[r(238)],t[r(269)][r(297)]="100%",t[r(269)].height="auto",t[r(269)][r(255)]=r(237),s[r(241)](t)}else s[r(269)][r(265)]=r(308),s[r(269)][r(247)]=r(305),s.style[r(320)]=r(294),s[r(262)]=r(323);break;case n[r(291)]:if(e[r(289)]){const t=document[r(315)](r(313));t[r(249)]=e.videoUrl,t[r(269)][r(297)]=r(281),t.style[r(265)]=r(278),s[r(241)](t)}else s[r(269)][r(265)]=r(244),s[r(269)][r(247)]="#000",s.style[r(320)]="1px solid #666",s[r(262)]=r(222),s[r(269)].color=r(229);break;case n.TEXT:if(e[r(262)]){const t=document.createElement("div");t.textContent=e.textContent||"",t.style[r(266)]="8px",t[r(269)][r(328)]="14px",s[r(241)](t)}else s[r(269)][r(265)]=r(325),s[r(269)][r(266)]=r(283),s[r(262)]=r(246);break;default:s[r(269)][r(265)]=r(308),s[r(269)][r(320)]=r(294),s[r(269)].backgroundColor=r(317),s[r(262)]=t[r(252)]+r(272)}return s}static createSliderContainer(t,e,r,s,o=!1){const i=et,a=document[i(315)](i(263));a[i(250)]="adstage-slider-wrapper";const c={position:i(259),overflow:i(299)};if(t[i(297)]&&0!==t[i(297)]){let e;e=typeof t[i(297)]===i(275)&&(t[i(297)].includes("px")||t[i(297)][i(223)]("%"))?t.width:t[i(297)]+"px",c.width=e,c[i(312)]=i(279)}else c[i(312)]=i(279);if(t[i(265)]&&0!==t[i(265)]){const e=typeof t[i(265)]===i(275)?t[i(265)]:t[i(265)]+"px";c.height=e}Object[i(285)](c)[i(274)](([t,e])=>{const n=i;a.style[n(309)](t,e)});const l=!t[i(297)]||0===t[i(297)],d=!t[i(265)]||0===t[i(265)];if(l||d){const n=document[i(315)]("div");if(n[i(269)][i(258)]=i(245),!l&&t[i(297)]){let e;e=typeof t[i(297)]===i(275)?t[i(297)][i(223)]("px")||t[i(297)].includes("%")?t[i(297)]:t[i(297)]+"px":t.width+"px",n[i(269)][i(297)]=e,n[i(269)][i(232)]=i(327)}document.body[i(241)](n);let r=0,s=0;e[i(274)](e=>{const o=i,a=this[o(302)](t,e);n[o(241)](a);const c=a.getBoundingClientRect();c.width>r&&(r=c[o(297)]),c[o(265)]>s&&(s=c[o(265)]),n[o(324)](a)}),l&&r>0&&(a[i(269)][i(297)]=r+"px",c[i(297)]=r+"px"),d&&s>0&&(a[i(269)][i(265)]=s+"px",c[i(265)]=s+"px"),document[i(227)][i(324)](n)}const u=[...e,e[0]],p=document.createElement("div");p[i(250)]="adstage-slide-container";const h={display:i(236),transition:i(230),width:100*u[i(267)]+"%"};t[i(265)]&&0!==t[i(265)]&&(h[i(265)]="100%"),Object[i(285)](h)[i(274)](([t,e])=>{const n=i;p.style[n(309)](t,e)}),u[i(274)]((e,n)=>{const r=i,a=document[r(315)](r(263));a[r(250)]=r(306);const c={width:100/u[r(267)]+"%","flex-shrink":"0",display:r(236),"align-items":r(221),"justify-content":r(221)};t[r(265)]&&0!==t.height&&(c[r(265)]=r(281)),Object[r(285)](c)[r(274)](([t,e])=>{const n=r;a[n(269)][n(309)](t,e)});const l=this[r(302)](t,e);tt[r(280)](l,e,t,s,o,String(t.adType)[r(219)]()),a[r(241)](l),p[r(241)](a)});const f=e[i(284)](t=>t[i(252)]===n.TEXT)?null:this[i(276)](e[i(267)]);let g=0;const m=e[i(267)],y=1e3*(r?.[i(311)]||3),I=(n,r=!1)=>{const a=i;g=n,r?p.style[a(304)]="none":p[a(269)][a(304)]="transform 0.4s ease-out",p.style[a(296)]=a(316)+100/u[a(267)]*g+"%)";const c=g===m?0:g;if(f){f[a(240)](".adstage-dot")[a(274)]((t,e)=>{const n=a,r=t;e===c?(r[n(298)][n(224)](n(273)),r[n(269)][n(226)]=n(260),r.style.borderColor=n(260),r.style[n(286)]="1"):(r.classList.remove(n(273)),r.style[n(226)]=n(290),r[n(269)].borderColor=n(254),r.style.opacity="0.7")})}Z[a(292)](e[c],t,c,s,o)},v=()=>{g===m&&setTimeout(()=>{I(0,!0)},400)};if(f){f[i(240)](i(287))[i(274)]((t,e)=>{const n=i;t[n(300)](n(295),()=>I(e))})}let b=setInterval(()=>{I(g+1),v()},y);return a[i(300)](i(257),()=>{clearInterval(b)}),a[i(300)](i(217),()=>{b=setInterval(()=>{I(g+1),v()},y)}),this.addTouchSupport(p,I,()=>g,m,v),a[i(241)](p),f&&a.appendChild(f),I(0),(!t.width||0===t.width)&&setTimeout(()=>{const e=i,n=p[e(301)][0];if(n){const r=n.children[0];if(r){const n=r[e(319)]();a.style.width=n[e(297)]+"px",(!t[e(265)]||0===t[e(265)])&&(a[e(269)][e(265)]=n[e(265)]+"px"),a[e(269)][e(277)]=e(299)}}},10),a}static[et(276)](t){const e=et,n=document.createElement(e(263));n.className=e(225),n[e(269)][e(258)]="\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[e(315)](e(261));t[e(250)]=e(253),t[e(269)].cssText=e(243),t[e(300)](e(257),()=>{const n=e;!t.classList[n(307)](n(273))&&(t[n(269)][n(264)]=n(322),t[n(269)].opacity=n(293))}),t.addEventListener(e(217),()=>{const n=e;!t[n(298)][n(307)](n(273))&&(t.style.borderColor=n(254),t[n(269)][n(286)]=n(271))}),n[e(241)](t)}return n}static[et(239)](t,e,n,r,s){const o=et;let i=0,a=!1;t[o(300)]("touchstart",t=>{const e=o;i=t[e(234)][0][e(321)],a=!0}),t[o(300)]("touchmove",t=>{a&&t[o(326)]()}),t[o(300)](o(220),t=>{const c=o;if(!a)return;a=!1;const l=t.changedTouches[0][c(321)],d=i-l;if(Math[c(251)](d)>50){const t=n();if(d>0){e(t+1),s&&s()}else{e(t>0?t-1:r-1)}}})}}const ot=at;!function(t){const e=at,n=t();for(;;)try{if(456931===-parseInt(e(210))/1*(-parseInt(e(200))/2)+parseInt(e(199))/3+parseInt(e(207))/4*(parseInt(e(196))/5)+parseInt(e(202))/6*(-parseInt(e(198))/7)+parseInt(e(195))/8*(-parseInt(e(206))/9)+parseInt(e(204))/10+-parseInt(e(213))/11*(-parseInt(e(205))/12))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(ct);class it{static isDuplicateViewable(t,e,n=!1){const r=at,s=t+"_"+e;return it.viewableTracker[r(209)](s)?(n&&console.log(r(212)+t+" in slot "+e),!0):(it[r(197)][r(194)](s),n&&console[r(201)](r(192)+t+r(203)+e),!1)}static[ot(208)](){it[ot(197)].clear()}static[ot(193)](t,e){const n=ot,r=t+"_"+e;it.viewableTracker[n(211)](r)}}function at(t,e){const n=ct();return(at=function(t,e){return n[t-=192]})(t,e)}function ct(){const t=["viewableTracker","812YtfYNs","896742tCfIVC","2uMbpmU","log","24822YxSnIl"," in slot ","2641420RdtRnJ","12ZBoKcV","2031597HRwJEw","83128mpZqAW","clear","has","418443yMSvpn","delete","Duplicate viewable blocked for ad ","6500549oghAXr","✅ New viewable recorded for ad ","clearAdViewable","add","24ZOdSqm","10NdzfIr"];return(ct=function(){return t})()}it[ot(197)]=new Set;const lt=dt;function dt(t,e){const n=ut();return(dt=function(t,e){return n[t-=430]})(t,e)}function ut(){const t=["⚠️ ","className"," for ","6090svgJDZ",'[data-adstage-container="true"]',"string","data-adstage-container","isDuplicateViewable","isEmpty","parentElement","contains","log","minHeight","4074kccsJN"," slot: ","getContainerHeight",'[class*="ad"]',"getAttribute","<span>Loading ","advertisement","monospace","10943500QAhchD","debug","hasAttribute","\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 ","toLowerCase","45DVgkEM","subtle","classList","adstage-slot adstage-empty adstage-","error",".adstage-","display",'div[style*="min-height"]',"trackAdvertisementEvent","innerHTML","filter","2px dashed #e74c3c","opacity","justifyContent","createEventTrackingCallback","4581548pqIkSY","📊 Advertisement event tracked: ","adstage-slot adstage-","invisible","closest","rgba(231, 76, 60, 0.1)","flex","928689PQMozY","applyPlaceholderStyle","center","#e74c3c","warn","fontSize","1135871femlym","2109040WsnSsG","adstage-class","alignItems","14196105AvYoAW",'[class*="container"]',"backgroundColor","width","height","⚠️ AdvertisementEventTracker not available for ","getElementById","📦 Placeholder created for ","#f9f9f9"," container collapsed (","block","border","createElement","calculateAdSize","generic","borderRadius","4px",'<span style="color: rgba(0, 0, 0, 0.4); font-size: 12px; font-family: -apple-system, sans-serif;">•••</span>',"appendChild","getComputedStyle","VIEWABLE","10iptLMc","rgba(248, 249, 250, 0.5)",".adstage-slot","transparent"," event","none","createPlaceholder","#666","createEmptyContainer","5daroUl","advertisementEventTracker","setAttribute"," ad...</span>","✅ New viewable recorded for ad "," x ","number"," container: ","style","placeholderMode",'[class*="banner"]',"getDefaultHeight","auto","data-adstage-empty","containerId",'div[style*="height"]'," in slot ",'<span style="color: rgba(0, 0, 0, 0.3); font-size: 11px; font-family: sans-serif;">•••</span>',"data-adstage-slot","color","true","adType","⚠️ Created empty ","div","minimal","6px","100%"];return(ut=function(){return t})()}!function(t){const e=dt,n=t();for(;;)try{if(979232===-parseInt(e(493))/1+-parseInt(e(518))/2*(-parseInt(e(487))/3)+parseInt(e(480))/4*(-parseInt(e(527))/5)+-parseInt(e(452))/6*(-parseInt(e(442))/7)+parseInt(e(494))/8*(parseInt(e(465))/9)+parseInt(e(460))/10+-parseInt(e(497))/11)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(ut);class pt{constructor(t,e=!1,n){const r=dt;this[r(433)]=t,this[r(461)]=e,this.advertisementEventTracker=n||null}[lt(524)](t,e,n,r){const s=lt,o=document[s(509)](s(435));o.id=e,o[s(440)]=s(482)+String(this[s(433)])[s(464)](),o[s(529)]("data-adstage-container","true"),o[s(529)]("data-adstage-type",String(this[s(433)])),o.setAttribute(s(430),e);const{width:i,height:a}=this[s(510)](t,n,r)||{width:s(438),height:this[s(538)]()};o.style[s(500)]=i,o[s(535)][s(501)]=a;const c=r?.[s(536)]||n[s(536)]||"invisible";this[s(488)](o,c),t[s(515)](o),this[s(461)]&&console[s(450)](s(504)+this.adType+s(453)+e+" ("+i+s(532)+a+") - Mode: "+c)}applyPlaceholderStyle(t,e){const n=lt;switch(e){case n(483):t.style[n(499)]="transparent",t[n(535)][n(508)]="none",t[n(535)][n(477)]="0",t[n(474)]="";break;case n(521):t.style.backgroundColor=n(521),t[n(535)][n(508)]=n(523),t[n(535)].display=n(507),t.innerHTML="";break;case n(466):t[n(535)][n(499)]="rgba(0, 0, 0, 0.02)",t[n(535)][n(508)]=n(523),t[n(535)][n(512)]=n(513),t[n(535)][n(471)]=n(486),t[n(535)][n(496)]=n(489),t[n(535)][n(478)]=n(489),t[n(474)]=n(544);break;case n(436):t.style[n(499)]=n(519),t[n(535)][n(508)]="1px solid rgba(0, 0, 0, 0.08)",t[n(535)].borderRadius=n(437),t[n(535)].display=n(486),t.style[n(496)]=n(489),t.style[n(478)]=n(489),t[n(474)]=n(514);break;case n(461):t[n(535)][n(508)]=n(476),t[n(535)][n(471)]=n(486),t[n(535)].alignItems=n(489),t[n(535)].justifyContent=n(489),t[n(535)].backgroundColor=n(485),t[n(535)][n(431)]=n(490),t[n(535)].fontFamily=n(459),t.style[n(492)]="11px",t[n(474)]=n(457)+this[n(433)]+n(530);break;default:t[n(535)][n(508)]="1px dashed #ccc",t.style[n(471)]="flex",t.style[n(496)]=n(489),t[n(535)].justifyContent=n(489),t[n(535)][n(499)]=n(505),t[n(535)].color=n(525),t.innerHTML=n(457)+this[n(433)]+n(530)}}[lt(510)](t,e,n){const r=lt,s=e[r(500)],o=e[r(501)];let i,a;if(i="number"==typeof s?s+"px":typeof s===r(444)?s:r(438),typeof o===r(533))a=o+"px";else if("string"==typeof o&&o!==r(438)&&"auto"!==o)a=o;else{const e=this[r(454)](t);e>0?(a="100%",(n?.[r(461)]||this.debug)&&console[r(450)]("📏 Using 100% height (container: "+e+"px)")):(a=this.getDefaultHeight(),(n?.debug||this.debug)&&console[r(450)]("📏 Using default height "+a+r(441)+this[r(433)]))}return{width:i,height:a}}[lt(454)](t){const e=lt,n=window[e(516)](t),r=parseFloat(n[e(501)]);if(!r||0===r){const r=parseFloat(n[e(451)]);if(r>0)return r;if(t.style.height&&t[e(535)][e(501)]!==e(539)){const n=parseFloat(t[e(535)][e(501)]);if(n>0)return n}const s=t[e(456)](e(501));if(s){const t=parseFloat(s);if(t>0)return t}}return r||0}[lt(479)](){return async(t,e,n)=>{const r=dt;if(n===c[r(517)]){if(it[r(446)](t,e,this[r(461)]))return void(this.debug&&console[r(450)]("🚫 Duplicate viewable blocked for ad "+t+r(543)+e));this.debug&&console.log(r(531)+t+r(543)+e)}if(this.advertisementEventTracker)try{this.debug&&console[r(450)]("🔄 Starting advertisement event tracking: "+n+" for ad "+t+" in slot "+e),await this[r(528)][r(473)](t,e,n),this.debug&&console[r(450)](r(481)+n+" for ad "+t+r(543)+e)}catch(e){this[r(461)]&&console[r(469)]("❌ Failed to track "+n+" event for ad "+t+":",e)}else this[r(461)]&&console.warn(r(502)+n+r(522))}}renderFallback(t){const e=lt,n=document[e(503)](t.id);if(n){const r=[...[n.querySelector(e(443)),n[e(484)](e(443)),n][e(475)](t=>t&&t[e(462)](e(445))),...[n[e(484)](e(520)),n.closest(e(470)+String(this[e(433)]).toLowerCase()),n[e(484)](e(455)),n[e(484)](e(537)),n.closest(e(498)),n[e(484)](e(542)),n[e(484)](e(472)),n[e(448)]][e(475)](Boolean)][0];if(r){let n="unknown";n=r[e(462)](e(445))?"adstage-official":r[e(467)][e(449)]("adstage-slot")?e(495):e(511),r.style.cssText+=e(463),r[e(474)]="",r[e(529)]("data-adstage-empty",e(432)),this[e(461)]&&console[e(491)](e(439)+this[e(433)]+e(506)+n+"): "+t.id,r)}else this[e(526)](t)}t[e(458)]=void 0,t[e(447)]=!0}createEmptyContainer(t){const e=lt,n=document.getElementById(t[e(541)]);if(n){n[e(474)]="";const r=document.createElement(e(435));r.id=t.id,r[e(440)]=e(468)+String(this.adType)[e(464)](),r[e(529)](e(445),e(432)),r.setAttribute(e(540),e(432)),r[e(529)]("data-adstage-slot",t.id),r[e(535)].cssText="\n height: 0px !important;\n min-height: 0px !important;\n padding: 0px !important;\n margin: 0px !important;\n border: none !important;\n overflow: hidden !important;\n display: block !important;\n ",n[e(515)](r),this.debug&&console[e(491)](e(434)+this[e(433)]+e(534)+t.id)}}[lt(450)](t,...e){const n=lt;this[n(461)]&&console.log("["+this[n(433)]+"] "+t,...e)}}const ht=gt;function ft(){const t=["ratio","getElementById","3:2","name","43205085MlHSIl","height","value","map","max","alt","set","448zcyiec","title","aspectRatio","</div>","common","containerId","optimizedHeight","#f0f0f0","📦 Banner container dimensions: ","imageUrl","from","abs","filter","backgroundColor","Banner container optimization failed, using default size:","naturalWidth","adstage-ad adstage-banner-ad","debug","optimizeContainerForBannerAds"," (strategy: ","cover","src","objectPosition","getBoundingClientRect","6772ebneCu","appendChild","img","Failed to calculate optimal banner size, using defaults:","get","warn","185766zjxUlV","length","📊 Using standard ratio: ","className","✅ Optimized banner image rendered for ad: ","createElement","197979YDhJJk","selectOptimalSizeStrategy","center","8px","BANNER","count","config","📸 Banner image dimensions: ","renderOptimizedBannerImage"," with ","100%","log","toString","calculateOptimalContainerSize","250px","applyOptimizedImageStyle","innerHTML",", ratio=","4:3"," ads: ","reduce","calculateOptimalHeight","2780vZpLei","round","🔧 Banner container optimized for ","objectFit","Banner Ad","contain","loadImageDimensions","fulfilled","2923868VzOVnA","borderRadius","🎠 Banner carousel created for slot: ","onerror","allSettled","width","style","forEach","_id","Banner","📐 Optimal banner container calculated: ","Container not found: ","dominant","default","1248159NHwrFH"," (avg: ","status","createSliderContainer","addClickEventForRenderer","getDefaultHeight","16:9","8278152yjEsXq","values","slideInterval","error","toFixed","❌ Failed to load optimized banner image:","block","createEventTrackingCallback","average"];return(ft=function(){return t})()}function gt(t,e){const n=ft();return(gt=function(t,e){return n[t-=213]})(t,e)}!function(t){const e=gt,n=t();for(;;)try{if(976735===-parseInt(e(276))/1+-parseInt(e(262))/2+-parseInt(e(232))/3+parseInt(e(220))/4*(-parseInt(e(254))/5)+parseInt(e(283))/6+parseInt(e(226))/7*(-parseInt(e(303))/8)+parseInt(e(296))/9)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(ft);class mt extends pt{constructor(t=!1,e){super(n[gt(236)],t,e)}[ht(281)](){return ht(246)}async renderAdElement(t,e){const n=ht,r=document[n(293)](t[n(308)]);if(!r)return;const s=document[n(231)]("div");s[n(229)]=n(319);const o=t.optimizedHeight,i=r.parentElement||r;if(o)s[n(268)].width=n(242),s.style.height=String(o);else{const e=t[n(238)],r={width:e?.[n(267)],height:e?.[n(297)]},{width:o,height:a}=this.calculateAdSize(i,r,{debug:this[n(213)]});s[n(268)][n(267)]=o,s[n(268)].height=a}e[n(312)]?await this[n(240)](s,e,t):s[n(248)]="<div>"+(e[n(304)]||n(258))+n(306),tt.addClickEventForRenderer(s,e,t,()=>this.createEventTrackingCallback(),this[n(213)],n(271)),r.innerHTML="",r.appendChild(s)}async renderMultipleAds(t,e){const n=ht,r=document.getElementById(t[n(308)]);if(!r)throw new Error(n(273)+t[n(308)]);await this[n(214)](t,e);const s=this.createEventTrackingCallback(),o={autoSlideInterval:(t[n(238)]?.[n(285)]||5e3)/1e3,...t.config,optimizedHeight:t[n(309)],aspectRatio:t[n(305)]},i=st[n(279)](t,e,o,s,this[n(213)]);i&&(r[n(248)]="",r[n(221)](i),this[n(213)]&&console.log(n(264)+t.id+n(241)+e[n(227)]+" ads (optimized: "+(t.optimizedHeight||n(275))+")"))}async[ht(245)](t,e){const n=ht;if(!t[n(227)])return{width:"100%",height:this[n(281)](),aspectRatio:16/9};try{const r=(await Promise[n(266)](t[n(315)](t=>t[n(312)])[n(299)](t=>this[n(260)](t[n(312)]))))[n(315)](t=>t[n(278)]===n(261)).map(t=>t[n(298)]);if(0===r[n(227)])return{width:n(242),height:this[n(281)](),aspectRatio:16/9};const s=this[n(233)](r),o=this[n(253)](r,e,s);return this[n(213)]&&console.log(n(272)+e+"x"+o+n(215)+s+")"),{width:n(242),height:o+"px",aspectRatio:e/o}}catch(t){return console.warn(n(223),t),{width:n(242),height:this[n(281)](),aspectRatio:16/9}}}async optimizeContainerForBannerAds(t,e){const n=ht;try{const r=document[n(293)](t[n(308)]),s=document.getElementById(t.id);if(!r||!s)return;const o=r[n(219)]()[n(267)]||300,i=await this.calculateOptimalContainerSize(e,o);s[n(268)][n(297)]=i[n(297)],t.optimizedHeight=i[n(297)],t.aspectRatio=i.aspectRatio,this.debug&&console[n(243)](n(256)+e.length+n(251)+i[n(297)])}catch(t){console[n(225)](n(317),t)}}[ht(233)](t){const e=ht,n=t[e(299)](t=>t[e(267)]/t[e(297)]),r=new Map;n[e(269)](t=>{const n=e,s=(Math[n(255)](10*t)/10)[n(244)]();r[n(302)](s,(r[n(224)](s)||0)+1)});const s=Math[e(300)](...r.values()),o=t[e(227)];if(s/o>=.7)return"dominant";const i=[16/9,4/3,1,1.5],a=n.filter(t=>i.some(n=>Math[e(314)](t-n)<.1))[e(227)];return e(a/o>=.5?307:291)}[ht(253)](t,e,n){const r=ht,s=t[r(299)](t=>t[r(267)]/t[r(297)]);switch(n){case r(274):{const t=new Map;s[r(269)](e=>{const n=r,s=Math[n(255)](10*e)/10,o=s[n(244)](),i=t[n(224)](o);i?i[n(237)]++:t[n(302)](o,{ratio:s,count:1})});const n=Array[r(313)](t[r(284)]())[r(252)]((t,e)=>e[r(237)]>t[r(237)]?e:t);return Math[r(255)](e/n[r(292)])}case r(307):{const t=[{ratio:16/9,name:r(282)},{ratio:4/3,name:r(250)},{ratio:1,name:"1:1"},{ratio:1.5,name:r(294)}],n=s[r(252)]((t,e)=>t+e,0)/s[r(227)],o=t[r(252)]((t,e)=>Math[r(314)](e[r(292)]-n)<Math.abs(t.ratio-n)?e:t);return this[r(213)]&&console[r(243)](r(228)+o[r(295)]+r(277)+n.toFixed(2)+")"),Math.round(e/o.ratio)}case r(291):default:{const t=s[r(252)]((t,e)=>t+e,0)/s[r(227)];return Math[r(255)](e/t)}}}[ht(260)](t){return new Promise((e,n)=>{const r=gt,s=new Image;s.onload=()=>{e({width:s[gt(318)],height:s.naturalHeight})},s[r(265)]=()=>{n(new Error("Failed to load image: "+t))},s[r(217)]=t})}[ht(247)](t,e,n){const r=ht,s=e/n;Math[r(314)](s-1)<.1?(t[r(268)][r(257)]="cover",t.style[r(218)]=r(234)):s>1.3?(t[r(268)][r(257)]=r(259),t[r(268)][r(218)]=r(234),t[r(268)][r(316)]=r(310)):(t[r(268)][r(257)]=r(216),t[r(268)][r(218)]=r(234)),this.debug&&console[r(243)]("🎨 Banner image style applied: objectFit="+t[r(268)].objectFit+r(249)+s[r(287)](2))}async[ht(240)](t,e,n){const r=ht,s=document[r(231)](r(222));s[r(268)][r(267)]=r(242),s[r(268)][r(297)]=r(242),s[r(268)].display=r(289),s[r(268)][r(263)]=r(235),s[r(301)]=e.title||"Banner Advertisement",t[r(248)]='<div style="display: flex; align-items: center; justify-content: center; height: 100%; color: #999;">Loading...</div>';try{if(!e.imageUrl)throw new Error("Image URL is not provided");const o=await this[r(260)](e[r(312)]),i=t[r(219)](),a=i.width,c=i[r(297)];this.debug&&(console[r(243)](r(239)+o[r(267)]+"x"+o.height),console.log(r(311)+a+"x"+c));const l=o[r(267)]/o[r(297)],d=a/c;return this[r(247)](s,l,d),s[r(217)]=e[r(312)],t[r(248)]="",t.appendChild(s),tt[r(280)](s,e,n,()=>this[r(290)](),this[r(213)],"Banner"),this[r(213)]&&console[r(243)](r(230)+e[r(270)]),s}catch(o){return console[r(286)](r(288),o),e.imageUrl&&(s[r(217)]=e.imageUrl,s.style.objectFit=r(216),s[r(268)][r(218)]=r(234),t[r(248)]="",t[r(221)](s),tt[r(280)](s,e,n,()=>this[r(290)](),this[r(213)],r(271))),s}}}function yt(){const t=["1657518uedbso","1SCwDhI","10020738PbjjdJ","title","4373008IcyVTN","\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 ","7zOtGks","5305533cTeZgp","4421040OOYInn","createTextAdStyles","textContent","12660165cKCVRC","1230865IVEIfn"];return(yt=function(){return t})()}const It=vt;function vt(t,e){const n=yt();return(vt=function(t,e){return n[t-=267]})(t,e)}!function(t){const e=vt,n=t();for(;;)try{if(988775===-parseInt(e(277))/1*(parseInt(e(276))/2)+parseInt(e(270))/3+parseInt(e(271))/4+-parseInt(e(275))/5+-parseInt(e(278))/6+parseInt(e(269))/7*(-parseInt(e(267))/8)+parseInt(e(274))/9)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(yt);class bt{static[It(272)](t=!1){return It(268)}static setTextAdContent(t,e){const n=It,r=e[n(273)]||e[n(279)]||"";t.textContent=r}}const wt=kt;function kt(t,e){const n=Et();return(kt=function(t,e){return n[t-=253]})(t,e)}function Et(){const t=["1563HwQcSF","forEach","opacity","createSimpleAdElement","setProperty","3230450ANBxes","left","fit-content","touchmove","adstage-ad adstage-","transform","adstage-fade-slider-wrapper","string","removeChild","height: auto; min-height: fit-content;",";\n width: 100%;\n ","\n display: flex;\n align-items: center;\n justify-content: flex-start;\n opacity: ","createTextAdStyles","adstage-fade-slide-container","style","translateY(20px)","cssText","Text","clientX","width","abs","30031oEDXOw","\n position: relative;\n width: 100%;\n ","relative","addTouchSupport","block",";\n top: ","setAttribute","\n position: absolute;\n visibility: hidden;\n white-space: nowrap;\n top: -9999px;\n left: -9999px;\n ","touchstart","zIndex","changedTouches","touchend","autoSlideInterval","entries","touches","setTextAdContent","div",";\n transform: translateY(","384610FZuzBj","20ULJVYx","whiteSpace","body","mouseenter","createElement","auto","\n position: ","clientY","adstage-fade-slide","position","absolute","top","3943611MuoWKP","appendChild","14iXkbie","addEventListener","className","height","height: 100%;","_id","push","adType","20px","4337736EfELCP","includes","\n ","height: auto;","length","5164gCScup","3732232PdfkUz","mouseleave","data-adstage-ad-id"];return(Et=function(){return t})()}!function(t){const e=kt,n=t();for(;;)try{if(490171===parseInt(e(273))/1+-parseInt(e(291))/2+parseInt(e(324))/3*(parseInt(e(320))/4)+parseInt(e(329))/5+-parseInt(e(315))/6+parseInt(e(306))/7*(parseInt(e(321))/8)+parseInt(e(304))/9*(-parseInt(e(292))/10))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(Et);class St{static[wt(327)](t,e){const n=wt,r=document[n(296)](n(289));return r.className=n(256)+String(t[n(313)]).toLowerCase(),r[n(279)](n(323),e[n(311)]),r.setAttribute("data-adstage-slot-id",t.id),r[n(266)].cssText=bt[n(264)](!0),bt[n(288)](r,e),r}static createTextTransitionContainer(t,e,n,r,s=!1){const o=wt,i=t[o(309)]&&0!==t[o(309)]&&t.height!==o(297),a=document.createElement(o(289));a.className=o(258);const c={position:"relative",overflow:"hidden",display:o(277)};if(!i&&(c[o(309)]="auto",c.minHeight=o(254)),t[o(271)]&&0!==t.width){let e;e=typeof t.width===o(259)&&(t[o(271)][o(316)]("px")||t[o(271)][o(316)]("%"))?t[o(271)]:t[o(271)]+"px",c[o(271)]=e}if(t[o(309)]&&0!==t[o(309)]&&"auto"!==t[o(309)]&&i){let e;e=typeof t.height===o(259)?t[o(309)][o(316)]("px")||t[o(309)][o(316)]("%")?t.height:t.height+"px":t[o(309)]+"px",c[o(309)]=e}Object[o(286)](c).forEach(([t,e])=>{const n=o;a[n(266)][n(328)](t,e)});const l=document[o(296)]("div");l[o(308)]=o(265),l[o(266)][o(268)]=o(274)+o(i?310:261)+o(317);let d=null;const u=!t.width||0===t.width,p=!t[o(309)]||0===t[o(309)]||void 0===t[o(309)]||t.height===o(297);if(u||p&&i){if(d=document.createElement(o(289)),d[o(266)][o(268)]=o(280),!u&&t[o(271)]){let e;e=typeof t[o(271)]===o(259)&&(t[o(271)].includes("px")||t[o(271)][o(316)]("%"))?t[o(271)]:t[o(271)]+"px",d.style.width=e,d.style[o(293)]="normal"}document.body.appendChild(d);let n=0,r=0;e[o(325)](e=>{const s=o,i=this.createSimpleAdElement(t,e);d[s(305)](i);const a=i.getBoundingClientRect();a[s(271)]>n&&(n=a[s(271)]),a[s(309)]>r&&(r=a[s(309)]),d[s(260)](i)}),u&&n>0&&(a[o(266)][o(271)]=n+"px"),p&&r>0&&i&&(a[o(266)][o(309)]=r+"px"),document[o(294)][o(260)](d)}const h=[];e.forEach((e,n)=>{const a=o,c=document[a(296)](a(289));c[a(308)]=a(300);const d=i?"absolute":0===n?a(275):"absolute";c[a(266)].cssText=a(298)+d+a(278)+(d===a(302)?"0":a(297))+";\n left: "+(d===a(302)?"0":a(297))+a(262)+a(i?310:318)+a(263)+(0===n?"1":"0")+a(290)+(0===n?"0":a(314))+");\n transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);\n z-index: "+(0===n?"2":"1")+";\n ";const u=this[a(327)](t,e);tt.addClickEventForSlider(u,e,t,r,s,a(269)),c[a(305)](u),l.appendChild(c),h[a(312)](c)});let f=0;const g=e[o(319)],m=1e3*(n?.[o(285)]||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(266)][a(301)]===a(275)&&(c[a(266)][a(301)]=a(302),c.style.top="0",c[a(266)][a(253)]="0"),l[a(266)].position=a(275),l.style.top=a(297),l.style[a(253)]="auto"),c[a(266)].opacity="0",c.style[a(257)]="translateY(-20px)",c[a(266)][a(282)]="1",l[a(266)].opacity="1",l[a(266)][a(257)]="translateY(0)",l[a(266)][a(282)]="2",h.forEach((t,e)=>{const r=a;e!==n&&e!==f&&(t.style[r(326)]="0",t.style.transform=r(267),t.style[r(282)]="1",!i&&t[r(266)][r(301)]===r(275)&&(t[r(266)][r(301)]="absolute",t.style[r(303)]="0",t[r(266)][r(253)]="0"))}),f=n,Z.trackSlideViewable(e[f],t,f,r,s)};let I=setInterval(()=>{y(f+1)},m);return a[o(307)](o(295),()=>{clearInterval(I)}),a[o(307)](o(322),()=>{I=setInterval(()=>{y(f+1)},m)}),St[o(276)](a,y,()=>f,g),a[o(305)](l),a}static addTouchSupport(t,e,n,r){const s=wt;let o=0,i=0,a=!1;t[s(307)](s(281),t=>{const e=s;o=t.touches[0][e(270)],i=t[e(287)][0][e(299)],a=!0}),t[s(307)](s(255),t=>{a&&t.preventDefault()}),t[s(307)](s(284),t=>{const r=s;if(!a)return;a=!1;const c=t.changedTouches[0][r(270)],l=t[r(283)][0][r(299)],d=o-c,u=i-l;if(Math[r(272)](d)>Math[r(272)](u)&&Math.abs(d)>50){const t=n();e(d>0?t+1:t-1)}})}}const xt=At;function Ct(){const t=["aspectRatio","optimizedHeight","innerHTML","2876STHnDx","createTextTransitionContainer","webkitLineClamp","1101793hSElYN","Container not found: "," ads","div","Text","height","renderMultipleAds","3189408kBidwY","963513khngWw","1125280OAYFUW","log","renderAdElement","appendChild","debug","webkitBoxOrient","config","className","2fLKKxE","getElementById","✨ Text transition created for slot: ","style","✨ Single text ad rendered: ","number","484238hWCaqU","width","containerId","createEventTrackingCallback","parentElement","overflow","createElement","3192WpnuBU","1385BCiVzF"," with ","slideInterval","maxLines","60px","addClickEventForRenderer","35736NsVzgf","setTextAdContent"];return(Ct=function(){return t})()}function At(t,e){const n=Ct();return(At=function(t,e){return n[t-=144]})(t,e)}!function(t){const e=At,n=t();for(;;)try{if(861420===parseInt(e(144))/1*(-parseInt(e(150))/2)+parseInt(e(157))/3*(-parseInt(e(169))/4)+-parseInt(e(158))/5*(-parseInt(e(164))/6)+-parseInt(e(172))/7+parseInt(e(179))/8+parseInt(e(180))/9+parseInt(e(181))/10)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(Ct);class Tt extends pt{constructor(t=!1,e){super(n.TEXT,t,e)}get