Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@telegram-apps/analytics

Package Overview
Dependencies
Maintainers
0
Versions
59
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@telegram-apps/analytics - npm Package Compare versions

Comparing version 1.1.6 to 1.1.7

2

dist/index.js

@@ -1,1 +0,1 @@

var telegramAnalytics=function(){"use strict";const t=n;!function(t,e){const r=n,s=t();for(;;)try{if(452165===parseInt(r(200))/1*(parseInt(r(186))/2)+parseInt(r(175))/3*(-parseInt(r(190))/4)+parseInt(r(156))/5+parseInt(r(178))/6*(-parseInt(r(172))/7)+-parseInt(r(203))/8*(parseInt(r(162))/9)+-parseInt(r(174))/10*(-parseInt(r(176))/11)+parseInt(r(179))/12*(-parseInt(r(159))/13))break;s.push(s.shift())}catch(i){s.push(s.shift())}}(r);function n(t,e){const s=r();return(n=function(t,n){return s[t-=155]})(t,e)}const e=t(188);function r(){const t=["BeSuW","4983039hkNZDX","WALLET_CONNECT_STARTED","HIDE","CVGJv","LBiqP","xoHAf","vcEqK","transaction-signing-failed","XrmyI","connection-restoring-error","2681wqIPIB","connection-completed","1041020ewPgLB","39oMVDiK","77GoYNGC","custom-event","906uBAbIi","12pVHYoC","HGThT","sUfRB","WALLET_CONNECT_SUCCESS","WALLET_DISCONNECT","transaction-signed","MhRdA","6NNXcGp","CONNECTION_RESTORING_SUCCESS","TGA-Batch-Requests","rCDJn","54160dZIfZh","app-hide","TRANSACTION_SIGNED","transaction-sent-for-signature","WALLET_CONNECT_ERROR","fXIUs","PRsrb","disconnection","MvSqn","xaBdf","150329FHRstQ","RWRez","CONNECTION_RESTORING_ERROR","8nPwhwE","connection-restoring-completed","3747875BbUqSK","connection-started","app-init","8964631etTSkS","Axhme"];return(r=function(){return t})()}var s=(n=>{const e=t,r={CQHwi:"INIT",tISSX:e(158),MhRdA:e(164),msylc:e(191),BeSuW:"CUSTOM_EVENT",sUfRB:e(177),RWRez:e(163),PRsrb:e(157),DxhQj:e(182),pGQnO:e(173),rCDJn:e(194),CVGJv:"connection-error",xoHAf:e(187),HGThT:e(155),vcEqK:e(202),xaBdf:e(171),XrmyI:"TRANSACTION_SENT_FOR_SIGNATURE",BBgLN:e(192),Axhme:e(184),MvSqn:"TRANSACTION_SIGNING_FAILED",fXIUs:e(169),tySIC:e(183),LBiqP:e(197)};return n[r.CQHwi]=r.tISSX,n[r[e(185)]]=r.msylc,n[r[e(161)]]=r[e(181)],n[r[e(201)]]=r[e(196)],n[r.DxhQj]=r.pGQnO,n[r[e(189)]]=r[e(165)],n[r[e(167)]]=r[e(180)],n[r[e(168)]]=r[e(199)],n[r[e(170)]]=e(193),n[r.BBgLN]=r[e(160)],n[r[e(198)]]=r[e(195)],n[r.tySIC]=r[e(166)],n})(s||{});const i=a;function o(){const t=["events","zBAiC","log","2703364ERqDSj"," listener","WALLET_CONNECT_STARTED","28697604smEJYZ","WALLET_CONNECT_SUCCESS","CUSTOM_EVENT","tonConnectUiEvents","analyticsController","TRANSACTION_SIGNING_FAILED","Attach ","CONNECTION_RESTORING_ERROR","588376wqYfWT","WALLET_DISCONNECT","VemZC"," received","TRANSACTION_SIGNED","11284669UKnDtu","3173742PRWnVj","54xKRqnu","5IgopoY","102VFssok","2sljaTj","event ","CONNECTION_RESTORING_SUCCESS","376914JKAAVx","CONNECTION_RESTORING_STARTED","ton-connect-","3|4|1|0|2","ton-connect-ui-","tonConnectSdkEvents","ZQnjE","10VVcoik","init","uiScope","sdkScope","map","WALLET_CONNECT_ERROR","437353xDQFjJ","detail","TRANSACTION_SENT_FOR_SIGNATURE"];return(o=function(){return t})()}function a(t,n){const e=o();return(a=function(t,n){return e[t-=223]})(t,n)}!function(t,n){const e=a,r=t();for(;;)try{if(621150===parseInt(e(232))/1*(parseInt(e(229))/2)+parseInt(e(225))/3+parseInt(e(251))/4*(-parseInt(e(227))/5)+-parseInt(e(228))/6*(parseInt(e(245))/7)+-parseInt(e(262))/8*(parseInt(e(226))/9)+-parseInt(e(239))/10*(parseInt(e(224))/11)+parseInt(e(254))/12)break;r.push(r.shift())}catch(s){r.push(r.shift())}}(o);class c{constructor(t){const n=a,e={VemZC:n(235),ZQnjE:n(234),zBAiC:n(236)},r=e[n(264)].split("|");let i=0;for(;;){switch(r[i++]){case"0":this[n(242)]=e[n(238)];continue;case"1":this.uiScope=e[n(249)];continue;case"2":this.analyticsController=t;continue;case"3":this[n(237)]=[s[n(256)],s[n(255)],s[n(244)],s[n(233)],s[n(231)],s[n(261)],s[n(247)],s[n(223)],s[n(259)],s[n(263)]];continue;case"4":this[n(257)]=[s[n(253)],s[n(244)],s[n(259)]];continue}break}}[i(240)](){const t=i;for(let n of this[t(248)])console.log(t(260)+n+t(252)),window.addEventListener(n,(e=>{const r=t;console[r(250)](r(230)+n+r(265),e[r(246)]);const{type:s,...i}=e[r(246)];this[r(258)].collectEvent(e.detail.type,{...i})}))}get events(){const t=i;return[...this[t(257)].map((n=>""+this[t(241)]+n)),...this[t(237)][t(243)]((t=>""+this.sdkScope+t))]}}function u(){const t=["addEventListener","177hrIUwf","analyticsController","1084068rBKtfK","XJNIz","rcAUk","8898XYSGfp","fJdeu","init","CPhVD","jENbk","680850tCvfie","collectEvent","1qirSKx","228397BFducD","11dUenIK","77ARDEVt","13924lduxGd","4083990LPlILi","visibilityState","32uHjVId","576322JysEUc","EWrIl","vWYTm","12izVlTL","documentEvents","TQotq","entries"];return(u=function(){return t})()}function p(t,n){const e=u();return(p=function(t,n){return e[t-=376]})(t,n)}const h=p;!function(t,n){const e=p,r=t();for(;;)try{if(261753===parseInt(e(396))/1*(-parseInt(e(376))/2)+parseInt(e(384))/3*(-parseInt(e(400))/4)+-parseInt(e(394))/5+-parseInt(e(389))/6*(parseInt(e(399))/7)+-parseInt(e(403))/8*(-parseInt(e(386))/9)+-parseInt(e(401))/10*(-parseInt(e(398))/11)+parseInt(e(379))/12*(parseInt(e(397))/13))break;r.push(r.shift())}catch(s){r.push(r.shift())}}(u);class f{constructor(t){const n=p,e={vWYTm:function(t,n){return t===n},fJdeu:"hidden",rcAUk:function(t,n){return t===n},TQotq:n(393)};this[n(380)]={visibilitychange:()=>{const t=n;e[t(378)](document[t(402)],e[t(390)])&&(e[t(388)](e[t(381)],t(377))?_0x23c0b4[t(383)](_0x5cd684,_0x155576):this.analyticsController[t(395)](s.HIDE,void 0))}},this[n(385)]=t}[h(391)](){const t=h,n={CPhVD:t(387)};for(let[e,r]of Object[t(382)](this[t(380)]))if(n[t(392)]==n[t(392)])document[t(383)](e,r);else for(let[n,s]of _0x4e0131[t(382)](this[t(380)]))_0x2351da.addEventListener(n,s)}}function l(t,n){var e=I();return(l=function(t,n){return e[t-=323]})(t,n)}function I(){var t=["50sStOIZ","5LTQbsT","appModule","tonConnectObserver","catch","171604McRytD","213168LfjgIp","5059pNnYuR","error","32733fBEfwA","678528NHNvtm","407659OswIiM","562690CGeCaO","documentObserver","144QlnOWF","init","44QyhMmh"];return(I=function(){return t})()}!function(t,n){for(var e=l,r=t();;)try{if(106699===-parseInt(e(339))/1*(parseInt(e(332))/2)+parseInt(e(338))/3+parseInt(e(337))/4*(parseInt(e(333))/5)+-parseInt(e(325))/6+-parseInt(e(326))/7+-parseInt(e(329))/8*(-parseInt(e(324))/9)+-parseInt(e(327))/10*(-parseInt(e(331))/11))break;r.push(r.shift())}catch(s){r.push(r.shift())}}(I);class d{constructor(t){var n=l;this[n(334)]=t,this[n(328)]=new f(this),this[n(335)]=new c(this)}init(){var t=l;this.documentObserver[t(330)](),this[t(335)].init()}recordEvent(t,n){var e=l;this[e(334)].recordEvent(t,n)[e(336)]((t=>console[e(323)](t)))}collectEvent(t,n){this[l(334)].collectEvent(t,n)}}!function(t,n){const e=g,r=t();for(;;)try{if(989904===-parseInt(e(242))/1*(-parseInt(e(237))/2)+-parseInt(e(233))/3*(parseInt(e(239))/4)+parseInt(e(230))/5+-parseInt(e(231))/6+parseInt(e(243))/7*(parseInt(e(238))/8)+-parseInt(e(236))/9+parseInt(e(235))/10)break;r.push(r.shift())}catch(s){r.push(r.shift())}}(v);const m=t=>{throw new Error(t)};function g(t,n){const e=v();return(g=function(t,n){return e[t-=230]})(t,n)}var S=(t=>{const n=g,e={gTfaT:"TOKEN_IS_NOT_PROVIDED",WFrPh:n(232)};return t[e[n(241)]]=e.WFrPh,t[n(234)]=n(240),t})(S||{});function v(){const t=["5656764KHIBmD","Token is not provided.","46863jpyYej","USER_DATA_IS_NOT_PROVIDED","27030620YJnjzC","14673195NctOsU","25404DJYjlf","1024pjFHEw","284nRzWoW","Telegram User data is not provided.","gTfaT","42kDqvwD","33607qWVmvv","4105350RBlXTH"];return(v=function(){return t})()}var y=_;function E(){var t=["cyjwz","kKSGs","BACKEND_URL","KEIpN","events","820732CVftNS","CpyzG","OteBD","1483265oGwCNe","cyiaN","rRBtj","45728Qtyxio","3IfMNcB","appModule","763fEPLsY","2340207vTtmmz","vSCBX","20abZgbs","recordEvents","12FReoWS","vcjIL","custom_data","251718aHrwrn","TOKEN_IS_NOT_PROVIDED","itUJn","assign","CSqek","stringify","POST","application/json","NeWwy","getApiToken","301830HdIHvn","19176YqFKBA","iMpFy"];return(E=function(){return t})()}function _(t,n){var e=E();return(_=function(t,n){return e[t-=467]})(t,n)}!function(t,n){for(var e=_,r=t();;)try{if(342444===-parseInt(e(472))/1*(-parseInt(e(482))/2)+parseInt(e(492))/3+parseInt(e(493))/4+parseInt(e(468))/5*(parseInt(e(479))/6)+-parseInt(e(474))/7*(parseInt(e(471))/8)+-parseInt(e(475))/9+parseInt(e(477))/10*(parseInt(e(500))/11))break;r.push(r.shift())}catch(s){r.push(r.shift())}}(E);class N{constructor(t){var n=_,e={cyiaN:function(t,n){return t===n},KEIpN:n(484),OteBD:function(t,n){return t(n)}};this.BACKEND_URL="https://tganalytics.xyz/",this.appModule=t,!this[n(473)].getApiToken()&&(e[n(469)](e[n(498)],e[n(498)])?e[n(467)](m,S[n(483)]):_0x34a493=_0x3a6bda[n(485)](_0x595369[n(481)],_0x332aaa))}init(){}async[y(478)](t){var n=y,e={cyjwz:function(t,n,e){return t(n,e)},CSqek:"POST",RAYWb:n(489)};return await e[n(495)](fetch,this[n(497)]+"events",{method:e[n(486)],headers:{"TGA-Auth-Token":this.appModule[n(491)](),"Content-Type":e.RAYWb},body:JSON[n(487)](t)})}async recordEvent(t,n,e){var r=y,s={iMpFy:function(t,n){return t===n},vcjIL:r(470),vSCBX:function(t,n,e){return t(n,e)},kKSGs:function(t,n){return t+n},CpyzG:r(488),NeWwy:r(489)};(null==n?void 0:n.custom_data)&&(s[r(494)](s[r(480)],r(470))?e=e?Object[r(485)](n[r(481)],e):n[r(481)]:_0x180339=_0x576655[r(481)]),await s[r(476)](fetch,s[r(496)](this[r(497)],r(499)),{method:s[r(501)],headers:{"TGA-Auth-Token":this[r(473)][r(491)](),"Content-Type":s[r(490)]},body:JSON[r(487)]({...n,event_name:t,custom_data:e,...this[r(473)].assembleEventSession()})})}}class T extends Error{constructor(t,n,e){super(n,{cause:e}),this.type=t,Object.setPrototypeOf(this,T.prototype)}}function w(t,n,e){return new T(t,n,e)}const C="ERR_UNEXPECTED_TYPE",A="ERR_PARSE";function b(){return w(C,"Value has unexpected type")}class x{constructor(t,n,e){this.parser=t,this.isOptional=n,this.type=e}parse(t){if(!this.isOptional||void 0!==t)try{return this.parser(t)}catch(n){throw w(A,"Unable to parse value"+(this.type?` as ${this.type}`:""),n)}}optional(){return this.isOptional=!0,this}}function O(t,n){return()=>new x(t,!1,n)}const R=O((t=>{if("boolean"==typeof t)return t;const n=String(t);if("1"===n||"true"===n)return!0;if("0"===n||"false"===n)return!1;throw b()}),"boolean");function D(t,n){const e={};for(const s in t){const i=t[s];if(!i)continue;let o,a;if("function"==typeof i||"parse"in i)o=s,a="function"==typeof i?i:i.parse.bind(i);else{const{type:t}=i;o=i.from||s,a="function"==typeof t?t:t.parse.bind(t)}try{const t=a(n(o));void 0!==t&&(e[s]=t)}catch(r){throw w(A,`Unable to parse field "${s}"`,r)}}return e}function k(t){let n=t;if("string"==typeof n&&(n=JSON.parse(n)),"object"!=typeof n||null===n||Array.isArray(n))throw b();return n}function B(t,n){return new x((n=>{const e=k(n);return D(t,(t=>e[t]))}),!1,n)}const L=O((t=>{if("number"==typeof t)return t;if("string"==typeof t){const n=Number(t);if(!Number.isNaN(n))return n}throw b()}),"number");const U=O((t=>{if("string"==typeof t||"number"==typeof t)return t.toString();throw b()}),"string"),W=O((t=>function(t){const n=t.replace(/\s/g,"").toLowerCase();if(function(t){return/^#[\da-f]{6}$/i.test(t)}(n))return n;if(function(t){return/^#[\da-f]{3}$/i.test(t)}(n)){let t="#";for(let e=0;e<3;e+=1)t+=n[1+e].repeat(2);return t}const e=n.match(/^rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)$/)||n.match(/^rgba\((\d{1,3}),(\d{1,3}),(\d{1,3}),\d{1,3}\)$/);if(!e)throw new Error(`Value "${t}" does not satisfy any of known RGB formats.`);return e.slice(1).reduce(((t,n)=>{const e=parseInt(n,10).toString(16);return t+(1===e.length?"0":"")+e}),"#")}(U().parse(t))),"rgb");B({req_id:U(),data:t=>null===t?t:U().optional().parse(t)}),B({req_id:U(),result:t=>t,error:U().optional()}),B({slug:U(),status:U()}),B({status:U()}),B({data:U().optional()}),B({theme_params:t=>{const n=W().optional();return Object.entries(k(t)).reduce(((t,[e,r])=>(t[e]=n.parse(r),t)),{})}}),B({height:L(),width:t=>null==t?window.innerWidth:L().parse(t),is_state_stable:R(),is_expanded:R()}),B({status:U()});const P=O((t=>t instanceof Date?t:new Date(1e3*L().parse(t))),"Date");function j(t,n){return new x((n=>{if("string"!=typeof n&&!(n instanceof URLSearchParams))throw b();const e="string"==typeof n?new URLSearchParams(n):n;return D(t,(t=>{const n=e.get(t);return null===n?void 0:n}))}),!1,n)}const M=B({id:L(),type:U(),title:U(),photoUrl:{type:U().optional(),from:"photo_url"},username:U().optional()},"Chat").optional(),V=B({addedToAttachmentMenu:{type:R().optional(),from:"added_to_attachment_menu"},allowsWriteToPm:{type:R().optional(),from:"allows_write_to_pm"},firstName:{type:U(),from:"first_name"},id:L(),isBot:{type:R().optional(),from:"is_bot"},isPremium:{type:R().optional(),from:"is_premium"},languageCode:{type:U().optional(),from:"language_code"},lastName:{type:U().optional(),from:"last_name"},photoUrl:{type:U().optional(),from:"photo_url"},username:U().optional()},"User").optional();function G(t){return t.replace(/[A-Z]/g,(t=>`_${t.toLowerCase()}`))}const J=O((t=>{const n=W().optional();return Object.entries(k(t)).reduce(((t,[e,r])=>(t[function(t){return t.replace(/_[a-z]/g,(t=>t[1].toUpperCase()))}(e)]=n.parse(r),t)),{})}),"ThemeParams");function Y(t){return j({botInline:{type:R().optional(),from:"tgWebAppBotInline"},initData:{type:j({authDate:{type:P(),from:"auth_date"},canSendAfter:{type:L().optional(),from:"can_send_after"},chat:M,chatInstance:{type:U().optional(),from:"chat_instance"},chatType:{type:U().optional(),from:"chat_type"},hash:U(),queryId:{type:U().optional(),from:"query_id"},receiver:V,startParam:{type:U().optional(),from:"start_param"},user:V},"InitData").optional(),from:"tgWebAppData"},initDataRaw:{type:U().optional(),from:"tgWebAppData"},platform:{type:U(),from:"tgWebAppPlatform"},showSettings:{type:R().optional(),from:"tgWebAppShowSettings"},startParam:{type:U().optional(),from:"tgWebAppStartParam"},themeParams:{type:J(),from:"tgWebAppThemeParams"},version:{type:U(),from:"tgWebAppVersion"}}).parse(t)}function K(t){return Y(t.replace(/^[^?#]*[?#]/,"").replace(/[?#]/g,"&"))}function X(){return K(window.location.href)}function F(){const t=performance.getEntriesByType("navigation")[0];if(!t)throw new Error("Unable to get first navigation entry.");return K(t.name)}function q(t){return`tma.js/${t.replace(/[A-Z]/g,(t=>`-${t.toLowerCase()}`))}`}function H(){return Y(function(t){const n=sessionStorage.getItem(q(t));try{return n?JSON.parse(n):void 0}catch{}}("launchParams")||"")}function Q(t){const{initDataRaw:n,themeParams:e,platform:r,version:s,showSettings:i,startParam:o,botInline:a}=t,c=new URLSearchParams;return c.set("tgWebAppPlatform",r),c.set("tgWebAppThemeParams",function(t){return JSON.stringify(Object.fromEntries(Object.entries(t).map((([t,n])=>[G(t),n]))))}(e)),c.set("tgWebAppVersion",s),n&&c.set("tgWebAppData",n),o&&c.set("tgWebAppStartParam",o),"boolean"==typeof i&&c.set("tgWebAppShowSettings",i?"1":"0"),"boolean"==typeof a&&c.set("tgWebAppBotInline",a?"1":"0"),c.toString()}function z(t){!function(t,n){sessionStorage.setItem(q(t),JSON.stringify(n))}("launchParams",Q(t))}function Z(){for(const t of[X,F,H])try{const n=t();return z(n),n}catch{}throw new Error("Unable to retrieve launch parameters from any known source.")}function $(t,n){const e=tt();return($=function(t,n){return e[t-=367]})(t,n)}function tt(){const t=["44gQPPJU","floor","3102020abVGnZ","charCodeAt","ORAMg","replace","8KdvSxP","length","98606qwXNch","hKgem","slice","getTime","maYKS","xEIvr","jqkxU","toString","6niAFMt","keXkt","9IxUSmV","558170cisKqU","pMJCL","XVzLU","YefcM","1529000SiyjQK","1676381HEbadJ","sSdtt","6AVsnvf","326022xBjzRc","1563516RTdOau","xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx","bDWmx"];return(tt=function(){return t})()}!function(t,n){const e=$,r=t();for(;;)try{if(158216===parseInt(e(393))/1*(-parseInt(e(375))/2)+-parseInt(e(394))/3*(parseInt(e(373))/4)+-parseInt(e(386))/5+-parseInt(e(383))/6*(parseInt(e(391))/7)+parseInt(e(390))/8+-parseInt(e(385))/9*(-parseInt(e(369))/10)+-parseInt(e(367))/11*(-parseInt(e(395))/12))break;r.push(r.shift())}catch(s){r.push(r.shift())}}(tt);const nt=rt;function et(){const t=["lHoSf","isBot","getUserData","duFzY","EPvQX","sessionId","language_code","getWebAppStartParam","is_premium","NMEkm","5097750VnlBTD","6313278inkSQu","getAppName","jfecR","languageCode","userId","userLocale","appModule","init","getUserIsPremium","5349605KQSzuu","start_param","split","12314043BcXJRp","initDataUnsafe","photoUrl","0|4|2|1|3","1018916IXnsRL","lastName","Telegram","USER_DATA_IS_NOT_PROVIDED","289656YhQdzQ","userData","mxXXm","user","2601096IYsavH","3DomYJt","startParam","getUserLocale","platform","WebApp","245iQlyCY","isPremium","1lgGyuQ","webAppStartParam","now","getPlatform","getSessionId","getUserId","initData"];return(et=function(){return t})()}function rt(t,n){const e=et();return(rt=function(t,n){return e[t-=120]})(t,n)}!function(t,n){const e=rt,r=t();for(;;)try{if(733231===-parseInt(e(138))/1*(-parseInt(e(122))/2)+-parseInt(e(131))/3*(-parseInt(e(130))/4)+-parseInt(e(165))/5+parseInt(e(156))/6+parseInt(e(136))/7*(-parseInt(e(126))/8)+parseInt(e(168))/9+-parseInt(e(155))/10)break;r.push(r.shift())}catch(s){r.push(r.shift())}}(et);class st{constructor(t){this[rt(162)]=t}[nt(163)](){var t,n,e,r,s,i,o,a,c,u,p,h,f;const l=nt,I={HiDxg:l(121),lHoSf:function(t){return t()},jfecR:function(t,n){return t===n},EPvQX:l(148),NMEkm:function(t,n){return t(n)},trUwW:function(t,n){return t(n)}};if(null==(e=null==(n=null==(t=null==window?void 0:window[l(124)])?void 0:t.WebApp)?void 0:n[l(169)])?void 0:e[l(129)]){const t=I.HiDxg[l(167)]("|");let n=0;for(;;){switch(t[n++]){case"0":this[l(127)]=null==(i=null==(s=null==(r=null==window?void 0:window[l(124)])?void 0:r[l(135)])?void 0:s[l(169)])?void 0:i[l(129)];continue;case"1":this[l(139)]=null==(c=null==(a=null==(o=null==window?void 0:window[l(124)])?void 0:o[l(135)])?void 0:a[l(169)])?void 0:c[l(166)];continue;case"2":this[l(161)]=this[l(127)][l(151)];continue;case"3":this[l(134)]=null==(p=null==(u=null==window?void 0:window[l(124)])?void 0:u[l(135)])?void 0:p[l(134)];continue;case"4":this[l(160)]=this.userData.id;continue}break}}else if(null==(h=I[l(145)](Z)[l(144)])?void 0:h[l(129)]){if(!I[l(158)](I[l(149)],I[l(149)]))return this[l(127)];{const t=Z(),n=t.initData,e=null==(f=t[l(144)])?void 0:f[l(129)];this.userData={id:e.id,is_premium:e[l(137)],first_name:e.firstName,is_bot:e[l(146)],last_name:e[l(123)],language_code:e[l(159)],photo_url:e[l(120)],username:e.username},this[l(160)]=e.id,this.userLocale=e.languageCode,this[l(139)]=n[l(132)],this[l(134)]=t[l(134)]}}else I[l(154)](m,S[l(125)]);this[l(150)]=function(t){const n=$,e={keXkt:function(t,n){return t<n},pMJCL:function(t,n){return t+n},sSdtt:function(t,n){return t-n},bDWmx:function(t,n){return t<<n},YefcM:function(t,n){return t+n},maYKS:function(t,n,e){return t(n,e)},ORAMg:function(t,n){return t/n},jqkxU:function(t,n){return t==n},xEIvr:function(t,n){return t&n},hKgem:function(t,n){return t+n},XVzLU:function(t,n){return t<n}};let r=n(396),s=(new Date)[n(378)](),i=function(t){const r=n;let s=0;for(let n=0;e[r(384)](n,t.length);n++){const i=t[r(370)](n);s=e[r(387)](e[r(392)](e[r(397)](s,5),s),i),s|=0}return s}(e[n(376)](t,s))[n(382)](16);for(;e[n(388)](i[n(374)],32);)i+=i;i=i[n(377)](0,32);let o=0;return r[n(372)](/[xy]/g,(function(t){const r=n,a=e[r(389)](s,e[r(379)](parseInt,i[o],16))%16|0;return s=Math[r(368)](e[r(371)](s,16)),o++,(e[r(381)](t,"x")?a:8|e[r(380)](a,3))[r(382)](16)}))}(I.trUwW(String,this[l(143)]()))}[nt(142)](){return this[nt(150)]}getUserId(){return this[nt(160)]}[nt(152)](){return this[nt(139)]}[nt(141)](){return this[nt(134)]}[nt(133)](){return this[nt(161)]}getUserData(){return this[nt(127)]}[nt(164)](){const t=nt,n=this[t(147)]();return e=Boolean,r=null==n?void 0:n[t(153)],e(r);var e,r}assembleEventSession(){const t=nt;return{session_id:this.getSessionId(),user_id:this[t(143)](),app_name:this[t(162)][t(157)](),is_premium:this[t(164)](),platform:this[t(141)](),locale:this[t(133)](),start_param:this[t(152)](),client_timestamp:{mxXXm:function(t,n){return t(n)}}[t(128)](String,Date[t(140)]())}}}const it=ot;function ot(t,n){const e=ct();return(ot=function(t,n){return e[t-=296]})(t,n)}!function(t,n){const e=ot,r=t();for(;;)try{if(873080===parseInt(e(313))/1+-parseInt(e(303))/2+parseInt(e(311))/3*(parseInt(e(325))/4)+-parseInt(e(297))/5+parseInt(e(299))/6*(-parseInt(e(305))/7)+parseInt(e(318))/8+-parseInt(e(298))/9*(parseInt(e(312))/10))break;r.push(r.shift())}catch(s){r.push(r.shift())}}(ct);class at{constructor(t){const n=ot,e={uNLTE:function(t,n){return t===n},cairF:n(301),MLicp:n(321)};this.sessionStorage=window[n(324)],this[n(310)]=window.localStorage,navigator[n(296)][n(319)](),this[n(304)]=t;const r=this[n(310)][n(323)](this[n(304)]);if(e[n(315)](r,null))this.setItem([]);else if(e[n(320)]!==e[n(306)])this[n(308)](JSON[n(309)](r));else{this[n(324)]=_0x43356d[n(324)],this[n(310)]=_0x565f52.localStorage,_0x3270cb[n(296)][n(319)](),this[n(304)]=_0xbb99dd;const t=this[n(310)][n(323)](this[n(304)]);e.uNLTE(t,null)?this.setItem([]):this[n(308)](_0x357388.parse(t))}}getBatch(){const t=ot,n={ZZsBG:function(t,n){return t===n},poHXD:t(314)};if(null===this[t(324)][t(323)](this[t(304)])&&n[t(327)](this[t(310)].getItem(this.key),null)){if(t(316)===n[t(307)])return null===this[t(324)][t(323)](this[t(304)])&&n.ZZsBG(this[t(310)].getItem(this[t(304)]),null)?this.setItem([]):this[t(308)](_0x41664d[t(309)](this[t(310)][t(323)](this.key))),this[t(308)]([..._0x4aab4b.parse(this[t(324)].getItem(this.key)),..._0x2306c2[t(309)](this[t(310)].getItem(this.key))][t(300)](((n,e,r)=>r[t(322)]((e=>_0x76da52[t(326)](e)===_0x34fa06[t(326)](n)))===e))),_0x4fe32a[t(309)](this[t(324)].getItem(this[t(304)]));this[t(308)]([])}else this[t(308)](JSON[t(309)](this[t(310)][t(323)](this[t(304)])));return this[t(308)]([...JSON.parse(this[t(324)][t(323)](this.key)),...JSON.parse(this[t(310)][t(323)](this.key))][t(300)](((n,e,r)=>r[t(322)]((e=>JSON[t(326)](e)===JSON[t(326)](n)))===e))),JSON[t(309)](this[t(324)][t(323)](this[t(304)]))}[it(317)](t,n){const e=this[it(302)]();e.push({event_name:t,...n}),this.setItem(e)}[it(308)](t){const n=it;this[n(310)][n(308)](this[n(304)],JSON[n(326)](t)),this.sessionStorage[n(308)](this[n(304)],JSON.stringify(t))}}function ct(){const t=["cairF","GMaOw","findIndex","getItem","sessionStorage","4BZKNyF","stringify","ZZsBG","storage","2153520fhMrKd","11007LFpXhT","132YzeQBG","filter","rCzZf","getBatch","1455924RUmtxY","key","261793puGduk","MLicp","poHXD","setItem","parse","localStorage","4491324DMMAbc","3170nKRVEn","829947xPNYdx","zrwVG","uNLTE","JQyOA","addToStorage","7321280ZkwSiY","persist"];return(ct=function(){return t})()}const ut=pt;function pt(t,n){const e=ft();return(pt=function(t,n){return e[t-=183]})(t,n)}!function(t,n){const e=pt,r=t();for(;;)try{if(659420===-parseInt(e(208))/1*(parseInt(e(232))/2)+-parseInt(e(205))/3*(-parseInt(e(228))/4)+-parseInt(e(211))/5+parseInt(e(194))/6*(-parseInt(e(224))/7)+parseInt(e(215))/8*(-parseInt(e(220))/9)+parseInt(e(199))/10*(parseInt(e(207))/11)+parseInt(e(190))/12)break;r.push(r.shift())}catch(s){r.push(r.shift())}}(ft);class ht{constructor(t){const n=pt,r={muBNC:function(t,n){return t+n},Aaptn:function(t,n){return t+n}},s="3|1|0|5|2|4".split("|");let i=0;for(;;){switch(s[i++]){case"0":this[n(184)]=2e3;continue;case"1":this[n(217)]=null;continue;case"2":this[n(231)]=t;continue;case"3":this[n(239)]=1;continue;case"4":this[n(209)]=new at(r[n(216)](r[n(186)](this.BATCH_KEY,"-"),this.appModule[n(214)]()));continue;case"5":this[n(238)]=e;continue}break}}[ut(233)](){const t=ut,n={IjvZk:function(t,n){return t!==n},uHOMh:t(223),YmlDI:t(189),Bljmi:t(213)};document.readyState!==t(223)?(this[t(231)][t(225)](s[t(240)]),this[t(218)]()):document[t(201)](n[t(241)],(()=>{const e=t;n.Bljmi!=n.Bljmi?n.IjvZk(_0x229576[e(187)],n[e(210)])?(this.appModule[e(225)](_0x4aff6d.INIT),this[e(218)]()):_0x49708e[e(201)](n[e(241)],(()=>{const t=e;this[t(231)][t(225)](_0x4d804d[t(240)]),this[t(218)]()})):(this.appModule[e(225)](s[e(240)]),this[e(218)]())}))}[ut(188)](){const t=ut,n={quanE:function(t,n){return t!==n},RkFvK:function(t,n){return t(n)}};n[t(236)](this[t(217)],null)&&(n[t(197)](clearInterval,this[t(217)]),this[t(217)]=null)}[ut(196)](t,n){const e=ut;this[e(209)][e(234)](t,n)}[ut(218)](){const t=ut,n={XpaQw:function(t,n){return t===n},voYxd:t(192)};if(n.XpaQw(this.intervalId,null)){if("aYFEB"!==n[t(183)])return;this[t(217)]=window.setInterval((()=>this[t(204)]()),this[t(184)])}}[ut(204)](){const t=ut,n={DcFeC:function(t,n){return t!==n},ocpvF:"RLReS"},e=this.storage[t(200)]();n.DcFeC(e[t(230)],0)&&window[t(198)].onLine&&(t(203)===n[t(193)]?this[t(202)](e[t(206)](0,20)):this[t(202)](_0x32d2d7.slice(0,20)))}sendBatch(t){const n=ut,e={IuAtV:function(t,n){return t===n},Lkldj:n(212),LaVSx:function(t,n){return t(n)},zwvhl:function(t,n){return t!==n},skYPw:"ByfPw",HLreW:function(t,n){return t===n},jvUce:function(t,n){return t<n}};this[n(188)](),this[n(231)].recordEvents(t).then((r=>{const s=n,i={oDSqn:function(t,n){return e.IuAtV(t,n)}};if(s(212)===e.Lkldj){if(e.IuAtV(e[s(221)](String,r.status)[0],"4")){if(!e[s(235)](e[s(219)],e[s(219)]))return;i[s(226)](this.intervalId,null)&&(this.intervalId=_0x472180[s(229)]((()=>this[s(204)]()),this[s(184)]))}if(e.HLreW(e[s(221)](String,r[s(222)])[0],"5"))return void(e.jvUce(this[s(239)],5)&&(this[s(239)]++,this[s(184)]=2.71*this[s(184)],console.log(this.batchInterval),this[s(218)]()));this[s(239)]=1,this[s(184)]=2e3,this[s(209)][s(195)](this[s(209)][s(200)]()[s(227)]((n=>!t[s(185)]((t=>JSON[s(237)](n)===JSON[s(237)](t)))))),this[s(218)]()}else this[s(217)]=_0x1c083b.setInterval((()=>this[s(204)]()),this[s(184)])}),(t=>{const e=n;console[e(191)](t),this[e(218)]()}))}}function ft(){const t=["slice","34705yzPrIk","8025QakGno","storage","uHOMh","542555yTRXgO","UojHa","sgNrz","getApiToken","8GfRWsu","muBNC","intervalId","startBatching","skYPw","8853579LwkcVw","LaVSx","status","loading","217ybugRy","collectEvent","oDSqn","filter","3933544kSXdWd","setInterval","length","appModule","230oKaOZJ","init","addToStorage","zwvhl","quanE","stringify","BATCH_KEY","backoff","INIT","YmlDI","voYxd","batchInterval","some","Aaptn","readyState","stopBatching","DOMContentLoaded","20350236uBENya","log","aYFEB","ocpvF","2742gMOvkz","setItem","collect","RkFvK","navigator","30CjWKiT","getBatch","addEventListener","sendBatch","RLReS","processQueue","3ndWggJ"];return(ft=function(){return t})()}function lt(){var t=["sessionController","8MVwqAI","20FlWzBs","apiToken","recordEvents","2994948msBDmw","batchService","analyticsController","assembleEventSession","600173vLYFXj","155AmTCIA","240651xhxfIT","2645093cehBAX","collect","258864HzfNRO","5|1|4|3|2|0","networkController","52158fgBxDl","MZFvd","523284UVBoio","init","8XViRvt","recordEvent","appName"];return(lt=function(){return t})()}var It=dt;function dt(t,n){var e=lt();return(dt=function(t,n){return e[t-=482]})(t,n)}!function(t,n){for(var e=dt,r=t();;)try{if(171493===parseInt(e(497))/1+parseInt(e(505))/2+parseInt(e(500))/3*(parseInt(e(483))/4)+parseInt(e(496))/5*(-parseInt(e(503))/6)+-parseInt(e(495))/7*(parseInt(e(487))/8)+parseInt(e(491))/9+-parseInt(e(488))/10*(parseInt(e(498))/11))break;r.push(r.shift())}catch(s){r.push(r.shift())}}(lt);class mt{constructor(t,n){for(var e=dt,r={MZFvd:e(501)}[e(504)].split("|"),s=0;;){switch(r[s++]){case"0":this[e(492)]=new ht(this);continue;case"1":this[e(485)]=n;continue;case"2":this.analyticsController=new d(this);continue;case"3":this[e(502)]=new N(this);continue;case"4":this[e(486)]=new st(this);continue;case"5":this.apiToken=t;continue}break}}async[It(482)](){var t=It;this[t(502)][t(482)](),this.sessionController[t(482)](),this[t(493)][t(482)](),this[t(492)][t(482)]()}[It(494)](){return this[It(486)].assembleEventSession()}[It(484)](t,n,e){var r=It;return this[r(502)][r(484)](t,n,e)}[It(490)](t){var n=It;return this.networkController[n(490)](t)}collectEvent(t,n){var e=It;this[e(492)][e(499)](t,{...n,...this[e(494)]()})}getApiToken(){return this[It(489)]}getAppName(){return this[It(485)]}}function gt(){const t=["1217257pBQpEz","575088ifMKho","3051284VMixvW","init","1641969ExJMtk","3843960fnbFEa","7511670XSxZIQ","3AJvSsg","16670488uqODlI"];return(gt=function(){return t})()}function St(t,n){const e=gt();return(St=function(t,n){return e[t-=361]})(t,n)}!function(t,n){const e=St,r=t();for(;;)try{if(913473===parseInt(e(365))/1+parseInt(e(366))/2+-parseInt(e(363))/3*(parseInt(e(367))/4)+parseInt(e(361))/5+parseInt(e(362))/6+parseInt(e(369))/7+-parseInt(e(364))/8)break;r.push(r.shift())}catch(s){r.push(r.shift())}}(gt);return{init:async function({token:t,appName:n}){const e=St;new mt(t,n)[e(368)]()}}}();
var telegramAnalytics=function(){"use strict";const t=e;!function(t,n){const r=e,s=t();for(;;)try{if(273308===parseInt(r(357))/1*(-parseInt(r(315))/2)+-parseInt(r(358))/3+parseInt(r(344))/4+parseInt(r(350))/5+parseInt(r(324))/6*(-parseInt(r(359))/7)+-parseInt(r(354))/8+parseInt(r(328))/9*(parseInt(r(318))/10))break;s.push(s.shift())}catch(o){s.push(s.shift())}}(r);const n=t(330);function e(t,n){const s=r();return(e=function(t,n){return s[t-=315]})(t,n)}function r(){const t=["HIDE","WALLET_DISCONNECT","10355170TgYqNr","CONNECTION_RESTORING_SUCCESS","qEHGg","kCQGN","split","transaction-sent-for-signature","4398OHnhIM","custom-event","WALLET_CONNECT_SUCCESS","CONNECTION_RESTORING_ERROR","9mIvJzL","jggkF","https://tganalytics.xyz/","GuRoq","bDHFy","pWdZx","YalwG","ZnmVm","6|10|5|3|9|2|8|7|1|0|11|4|12","pCknc","ZqbKd","YjDUe","connection-error","app-hide","disconnection","WALLET_CONNECT_STARTED","1690296AxOGxX","transaction-signing-failed","TRANSACTION_SENT_FOR_SIGNATURE","connection-restoring-completed","WALLET_CONNECT_ERROR","transaction-signed","1166755bitBQl","snunb","Ateuu","TVEMj","3528632vOdsRb","hvDdT","app-init","35068bpeRnC","558222RSrnJg","3535HObNGO","24RbmqsA"];return(r=function(){return t})()}var s=(n=>{const e=t,r={YalwG:e(336),kCQGN:e(349),qEHGg:e(346),EJNgD:e(323),bDHFy:e(348),snunb:e(340),ZqbKd:"connection-started",ZnmVm:e(317),Emyxy:"CUSTOM_EVENT",hvDdT:e(325),qPeuZ:e(356),QcSSh:e(327),TVEMj:"connection-restoring-error",oFITe:e(319),Ateuu:e(347),YjDUe:e(326),GuRoq:"connection-completed",pCknc:e(316),pWdZx:e(341),jggkF:"TRANSACTION_SIGNING_FAILED",MiIBs:e(345)},s=r[e(334)][e(322)]("|");let o=0;for(;;){switch(s[o++]){case"0":n.TRANSACTION_SIGNED=r[e(321)];continue;case"1":n[r[e(320)]]=r.EJNgD;continue;case"2":n[r[e(332)]]=r[e(351)];continue;case"3":n[e(343)]=r[e(338)];continue;case"4":n[r[e(335)]]=e(342);continue;case"5":n[r.Emyxy]=r[e(355)];continue;case"6":n.INIT=r.qPeuZ;continue;case"7":n[r.QcSSh]=r[e(353)];continue;case"8":n[r.oFITe]=r[e(352)];continue;case"9":n[r[e(339)]]=r[e(331)];continue;case"10":n[r[e(337)]]=r[e(333)];continue;case"11":n[r[e(329)]]=r.MiIBs;continue;case"12":return n}break}})(s||{});const o=i;function i(t,n){const e=c();return(i=function(t,n){return e[t-=325]})(t,n)}!function(t,n){const e=i,r=t();for(;;)try{if(730686===-parseInt(e(345))/1*(parseInt(e(332))/2)+-parseInt(e(358))/3+parseInt(e(344))/4*(-parseInt(e(363))/5)+-parseInt(e(328))/6+-parseInt(e(336))/7+parseInt(e(364))/8*(parseInt(e(326))/9)+parseInt(e(357))/10)break;r.push(r.shift())}catch(s){r.push(r.shift())}}(c);class a{constructor(t){const n=i,e={SWQzK:n(346),sPYhL:n(360),ZZfWG:"ton-connect-"},r=e[n(337)][n(352)]("|");let o=0;for(;;){switch(r[o++]){case"0":this[n(359)]=[s[n(356)],s[n(353)],s[n(325)],s[n(333)],s[n(361)],s[n(348)],s[n(327)],s[n(350)],s.TRANSACTION_SIGNING_FAILED,s[n(362)]];continue;case"1":this[n(354)]=e.sPYhL;continue;case"2":this[n(335)]=t;continue;case"3":this[n(331)]=e[n(339)];continue;case"4":this[n(349)]=[s[n(340)],s.WALLET_CONNECT_ERROR,s[n(330)]];continue}break}}[o(343)](){const t=o;for(let n of this[t(342)])console[t(334)](t(351)+n+" listener"),window.addEventListener(n,(e=>{const r=t;console.log(r(355)+n+r(341),e.detail);const{type:s,...o}=e.detail;this[r(335)].collectEvent(e[r(347)][r(329)],{...o})}))}get events(){const t=o;return[...this[t(349)].map((t=>""+this.uiScope+t)),...this.tonConnectSdkEvents[t(338)]((n=>""+this[t(331)]+n))]}}function c(){const t=["WALLET_CONNECT_STARTED"," received","events","init","4sSzbcU","109jOOOhw","0|4|1|3|2","detail","CONNECTION_RESTORING_ERROR","tonConnectUiEvents","TRANSACTION_SIGNED","Attach ","split","WALLET_CONNECT_SUCCESS","uiScope","event ","CUSTOM_EVENT","46509240hOKKso","3942561dFtROa","tonConnectSdkEvents","ton-connect-ui-","CONNECTION_RESTORING_SUCCESS","WALLET_DISCONNECT","5189915KMLvSb","5405200isKaSL","WALLET_CONNECT_ERROR","9ilmhfY","TRANSACTION_SENT_FOR_SIGNATURE","4366236yquzrZ","type","TRANSACTION_SIGNING_FAILED","sdkScope","2650iaACjC","CONNECTION_RESTORING_STARTED","log","analyticsController","9601109EtJJmP","SWQzK","map","ZZfWG"];return(c=function(){return t})()}const u=p;function p(t,n){const e=h();return(p=function(t,n){return e[t-=335]})(t,n)}function h(){const t=["documentEvents","BhCbZ","2086980ilXzJp","entries","sKMos","vITai","299090WiZOsH","1958012ebGGPu","HIDE","addEventListener","18ZTTWNH","550584CrJorP","analyticsController","fXUOt","veTWK","collectEvent","689319yBIbDE","aDnaF","zsWmn","kIiUS","2yLGJrN","init","557052lQtjEP","visibilityState","uywbS","638395dZTauN","zgDRe"];return(h=function(){return t})()}!function(t,n){const e=p,r=t();for(;;)try{if(335998===parseInt(e(348))/1+-parseInt(e(335))/2*(-parseInt(e(337))/3)+parseInt(e(344))/4+-parseInt(e(340))/5*(parseInt(e(352))/6)+-parseInt(e(349))/7+parseInt(e(353))/8+-parseInt(e(358))/9)break;r.push(r.shift())}catch(s){r.push(r.shift())}}(h);class f{constructor(t){const n=p,e={kIiUS:function(t,n){return t===n},sKMos:n(355),zgDRe:function(t,n){return t===n},vITai:"hidden",uywbS:n(359)};this[n(342)]={visibilitychange:()=>{const t=n;if(e[t(361)](e[t(346)],e[t(346)])){if(e[t(341)](document[t(338)],e[t(347)]))if(e[t(361)](e[t(339)],"wxUmL"))for(let[n,e]of _0xbabbf4.entries(this.documentEvents))_0x5a8325.addEventListener(n,e);else this[t(354)][t(357)](s[t(350)],void 0)}else this[t(354)].collectEvent(_0x150773[t(350)],void 0)}},this[n(354)]=t}[u(336)](){const t=u,n={zsWmn:function(t,n){return t!==n},BhCbZ:t(356)};for(let[e,r]of Object[t(345)](this[t(342)]))n[t(360)](n[t(343)],n.BhCbZ)?_0x4fb87c[t(351)](_0x4ffd3f,_0xf8c774):document.addEventListener(e,r)}}function l(t,n){var e=m();return(l=function(t,n){return e[t-=396]})(t,n)}var I=l;!function(t,n){for(var e=l,r=t();;)try{if(463503===parseInt(e(398))/1+-parseInt(e(409))/2*(-parseInt(e(411))/3)+-parseInt(e(401))/4+-parseInt(e(406))/5*(parseInt(e(399))/6)+parseInt(e(403))/7+-parseInt(e(397))/8*(parseInt(e(396))/9)+parseInt(e(402))/10)break;r.push(r.shift())}catch(s){r.push(r.shift())}}(m);class d{constructor(t){var n=l;this[n(408)]=t,this[n(412)]=new f(this),this[n(410)]=new a(this)}init(){var t=l;this.documentObserver[t(400)](),this[t(410)].init()}[I(407)](t,n){var e=I;this[e(408)][e(407)](t,n).catch((t=>console[e(405)](t)))}collectEvent(t,n){var e=I;this[e(408)][e(404)](t,n)}}function m(){var t=["appModule","268CMWkAy","tonConnectObserver","12762OWvRJH","documentObserver","27xHINog","2304872enRrAU","315419rgYDfo","19980CrHIfV","init","1430260onUjvV","2186080mBvwRW","5234824KzwPEx","collectEvent","error","250RAZVpS","recordEvent"];return(m=function(){return t})()}function g(t,n){const e=N();return(g=function(t,n){return e[t-=420]})(t,n)}function N(){const t=["723PdjnGN","6vylFLD","894824JwwFfg","TOKEN_IS_NOT_PROVIDED","Telegram User data is not provided.","USER_DATA_IS_NOT_PROVIDED","xfqML","916VOkitq","4090150qkUWWr","63JABZhu","2213535FZGLMU","Token is not provided.","228519wLdEXj","3885692XuMyFg","959560KlzapJ"];return(N=function(){return t})()}!function(t,n){const e=g,r=t();for(;;)try{if(600737===-parseInt(e(430))/1*(parseInt(e(422))/2)+parseInt(e(427))/3+parseInt(e(428))/4+parseInt(e(425))/5+parseInt(e(431))/6*(-parseInt(e(432))/7)+parseInt(e(429))/8*(-parseInt(e(424))/9)+parseInt(e(423))/10)break;r.push(r.shift())}catch(s){r.push(r.shift())}}(N);const y=t=>{throw new Error(t)};var S=(t=>{const n=g,e={EKLLm:n(433),YyEyF:n(420),xfqML:n(434)};return t[e.EKLLm]=n(426),t[e.YyEyF]=e[n(421)],t})(S||{}),E=v;function _(){var t=["appModule","recordEvent","aClNr","cKtNr","55456MzfUPa","TOKEN_IS_NOT_PROVIDED","627668rRJYqh","Zmwzm","application/json","init","POST","4EmTgPV","OxfyR","GNxYJ","custom_data","getApiToken","BACKEND_URL","assign","HNGhP","6325640uqPDlr","SvfvK","txWRw","stringify","MKkKN","162akOihy","523674xrdGTc","hpbyW","494109PJoCvm","35831CBBseG","events","10VCudRA","btLrQ","pSOtw","THqKG","355053mAlgFv"];return(_=function(){return t})()}function v(t,n){var e=_();return(v=function(t,n){return e[t-=420]})(t,n)}!function(t,n){for(var e=v,r=t();;)try{if(185353===-parseInt(e(431))/1+-parseInt(e(444))/2+parseInt(e(437))/3*(-parseInt(e(449))/4)+-parseInt(e(433))/5*(parseInt(e(428))/6)+parseInt(e(430))/7+-parseInt(e(442))/8*(-parseInt(e(427))/9)+parseInt(e(422))/10)break;r.push(r.shift())}catch(s){r.push(r.shift())}}(_);class T{constructor(t){var e=v,r={Zmwzm:e(436)};this.BACKEND_URL=n,this[e(438)]=t,!this[e(438)][e(453)]()&&(e(426)===r[e(445)]?_0x8da0ec=_0x2d9ca6[e(420)](_0x498154[e(452)],_0x204d5d):y(S[e(443)]))}[E(447)](){}async recordEvents(t){var n=E,e={cKtNr:function(t,n,e){return t(n,e)},HNGhP:function(t,n){return t+n},aClNr:n(432),eqSEI:n(446)};return await e[n(441)](fetch,e[n(421)](this[n(454)],e[n(440)]),{method:n(448),headers:{"TGA-Auth-Token":this[n(438)][n(453)](),"Content-Type":e.eqSEI},body:JSON.stringify(t)})}async[E(439)](t,n,e){var r=E,s={hpbyW:function(t,n){return t===n},btLrQ:r(451),txWRw:r(450),fQNYK:function(t,n){return t+n},SvfvK:r(448),pSOtw:r(446)};(null==n?void 0:n[r(452)])&&(e?e=Object[r(420)](n[r(452)],e):s[r(429)](s[r(434)],s[r(424)])?_0x3ffc32=_0x25e37c[r(452)]:e=n.custom_data),await fetch(s.fQNYK(this[r(454)],"events"),{method:s[r(423)],headers:{"TGA-Auth-Token":this[r(438)].getApiToken(),"Content-Type":s[r(435)]},body:JSON[r(425)]({...n,event_name:t,custom_data:e,...this[r(438)].assembleEventSession()})})}}class b extends Error{constructor(t,n,e){super(n,{cause:e}),this.type=t,Object.setPrototypeOf(this,b.prototype)}}function O(t,n,e){return new b(t,n,e)}const C="ERR_UNEXPECTED_TYPE",A="ERR_PARSE";function w(){return O(C,"Value has unexpected type")}class x{constructor(t,n,e){this.parser=t,this.isOptional=n,this.type=e}parse(t){if(!this.isOptional||void 0!==t)try{return this.parser(t)}catch(n){throw O(A,"Unable to parse value"+(this.type?` as ${this.type}`:""),n)}}optional(){return this.isOptional=!0,this}}function R(t,n){return()=>new x(t,!1,n)}const L=R((t=>{if("boolean"==typeof t)return t;const n=String(t);if("1"===n||"true"===n)return!0;if("0"===n||"false"===n)return!1;throw w()}),"boolean");function D(t,n){const e={};for(const s in t){const o=t[s];if(!o)continue;let i,a;if("function"==typeof o||"parse"in o)i=s,a="function"==typeof o?o:o.parse.bind(o);else{const{type:t}=o;i=o.from||s,a="function"==typeof t?t:t.parse.bind(t)}try{const t=a(n(i));void 0!==t&&(e[s]=t)}catch(r){throw O(A,`Unable to parse field "${s}"`,r)}}return e}function P(t){let n=t;if("string"==typeof n&&(n=JSON.parse(n)),"object"!=typeof n||null===n||Array.isArray(n))throw w();return n}function k(t,n){return new x((n=>{const e=P(n);return D(t,(t=>e[t]))}),!1,n)}const W=R((t=>{if("number"==typeof t)return t;if("string"==typeof t){const n=Number(t);if(!Number.isNaN(n))return n}throw w()}),"number"),U=R((t=>{if("string"==typeof t||"number"==typeof t)return t.toString();throw w()}),"string");k({req_id:U(),data:t=>null===t?t:U().optional().parse(t)}),k({req_id:U(),result:t=>t,error:U().optional()}),k({height:W(),width:t=>null==t?window.innerWidth:W().parse(t),is_state_stable:L(),is_expanded:L()});const G=R((t=>t instanceof Date?t:new Date(1e3*W().parse(t))),"Date");function J(t,n){return new x((n=>{if("string"!=typeof n&&!(n instanceof URLSearchParams))throw w();const e="string"==typeof n?new URLSearchParams(n):n;return D(t,(t=>{const n=e.get(t);return null===n?void 0:n}))}),!1,n)}const F=k({id:W(),type:U(),title:U(),photoUrl:{type:U().optional(),from:"photo_url"},username:U().optional()},"Chat").optional(),V=k({addedToAttachmentMenu:{type:L().optional(),from:"added_to_attachment_menu"},allowsWriteToPm:{type:L().optional(),from:"allows_write_to_pm"},firstName:{type:U(),from:"first_name"},id:W(),isBot:{type:L().optional(),from:"is_bot"},isPremium:{type:L().optional(),from:"is_premium"},languageCode:{type:U().optional(),from:"language_code"},lastName:{type:U().optional(),from:"last_name"},photoUrl:{type:U().optional(),from:"photo_url"},username:U().optional()},"User").optional();const B=R((t=>function(t){const n=t.replace(/\s/g,"").toLowerCase();if(function(t){return/^#[\da-f]{6}$/i.test(t)}(n))return n;if(function(t){return/^#[\da-f]{3}$/i.test(t)}(n)){let t="#";for(let e=0;e<3;e+=1)t+=n[1+e].repeat(2);return t}const e=n.match(/^rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)$/)||n.match(/^rgba\((\d{1,3}),(\d{1,3}),(\d{1,3}),\d{1,3}\)$/);if(!e)throw new Error(`Value "${t}" does not satisfy any of known RGB formats.`);return e.slice(1).reduce(((t,n)=>{const e=parseInt(n,10).toString(16);return t+(1===e.length?"0":"")+e}),"#")}(U().parse(t))),"rgb");function K(t){return t.replace(/[A-Z]/g,(t=>`_${t.toLowerCase()}`))}const Z=R((t=>{const n=B().optional();return Object.entries(P(t)).reduce(((t,[e,r])=>(t[function(t){return t.replace(/_[a-z]/g,(t=>t[1].toUpperCase()))}(e)]=n.parse(r),t)),{})}),"ThemeParams");function M(t){return J({botInline:{type:L().optional(),from:"tgWebAppBotInline"},initData:{type:J({authDate:{type:G(),from:"auth_date"},canSendAfter:{type:W().optional(),from:"can_send_after"},chat:F,chatInstance:{type:U().optional(),from:"chat_instance"},chatType:{type:U().optional(),from:"chat_type"},hash:U(),queryId:{type:U().optional(),from:"query_id"},receiver:V,startParam:{type:U().optional(),from:"start_param"},user:V},"InitData").optional(),from:"tgWebAppData"},initDataRaw:{type:U().optional(),from:"tgWebAppData"},platform:{type:U(),from:"tgWebAppPlatform"},showSettings:{type:L().optional(),from:"tgWebAppShowSettings"},startParam:{type:U().optional(),from:"tgWebAppStartParam"},themeParams:{type:Z(),from:"tgWebAppThemeParams"},version:{type:U(),from:"tgWebAppVersion"}}).parse(t)}function z(t){return M(t.replace(/^[^?#]*[?#]/,"").replace(/[?#]/g,"&"))}function q(){return z(window.location.href)}function j(){const t=performance.getEntriesByType("navigation")[0];if(!t)throw new Error("Unable to get first navigation entry.");return z(t.name)}function Y(t){return`telegram-apps/${t.replace(/[A-Z]/g,(t=>`-${t.toLowerCase()}`))}`}function Q(){return M(function(t){const n=sessionStorage.getItem(Y(t));try{return n?JSON.parse(n):void 0}catch{}}("launchParams")||"")}function H(t){const{initDataRaw:n,themeParams:e,platform:r,version:s,showSettings:o,startParam:i,botInline:a}=t,c=new URLSearchParams;return c.set("tgWebAppPlatform",r),c.set("tgWebAppThemeParams",function(t){return JSON.stringify(Object.fromEntries(Object.entries(t).map((([t,n])=>[K(t),n]))))}(e)),c.set("tgWebAppVersion",s),n&&c.set("tgWebAppData",n),i&&c.set("tgWebAppStartParam",i),"boolean"==typeof o&&c.set("tgWebAppShowSettings",o?"1":"0"),"boolean"==typeof a&&c.set("tgWebAppBotInline",a?"1":"0"),c.toString()}function X(t){!function(t,n){sessionStorage.setItem(Y(t),JSON.stringify(n))}("launchParams",H(t))}function $(){for(const t of[q,j,Q])try{const n=t();return X(n),n}catch{}throw new Error("Unable to retrieve launch parameters from any known source.")}function tt(t,n){const e=nt();return(tt=function(t,n){return e[t-=428]})(t,n)}function nt(){const t=["DerzX","128BSlVQs","NuNOB","AFzDJ","15866298qLtbfF","kyWwp","40JesgrS","270255FwCdNd","lZCGM","767956xbnbTp","4665224FVVGLz","1412169ADINcb","replace","LdOJl","toString","133390tPUFTX","38oxAwoC","665766tuFtJF","length","BIdFa","lptNK","xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx","132vyBoUI","slice","Tbtql","getTime"];return(nt=function(){return t})()}!function(t,n){const e=tt,r=t();for(;;)try{if(917316===parseInt(e(446))/1+parseInt(e(451))/2*(parseInt(e(442))/3)+-parseInt(e(445))/4+-parseInt(e(441))/5*(parseInt(e(452))/6)+-parseInt(e(444))/7*(parseInt(e(436))/8)+parseInt(e(439))/9+parseInt(e(450))/10*(-parseInt(e(431))/11))break;r.push(r.shift())}catch(s){r.push(r.shift())}}(nt);const et=st;function rt(){const t=["photoUrl","getPlatform","isPremium","getUserId","username","initData","11qUUaNc","assembleEventSession","getWebAppStartParam","now","140855wSImxq","RizLj","wrfCY","userLocale","1472790bEbeNP","getSessionId","987252heSFSm","is_premium","getUserLocale","userData","init","platform","isBot","25864wWNWiJ","711tEZDNI","LsPOg","8dilgeh","userId","56eRsNFk","654320wLHUDr","lastName","109362pPSJZv","webAppStartParam","onhzo","languageCode","44294SLvJUd","getUserData","sessionId","getUserIsPremium","getAppName","appModule","user"];return(rt=function(){return t})()}function st(t,n){const e=rt();return(st=function(t,n){return e[t-=347]})(t,n)}!function(t,n){const e=st,r=t();for(;;)try{if(270135===parseInt(e(374))/1*(-parseInt(e(365))/2)+parseInt(e(353))/3+-parseInt(e(355))/4+parseInt(e(349))/5+parseInt(e(370))/6*(-parseInt(e(367))/7)+-parseInt(e(362))/8*(-parseInt(e(363))/9)+-parseInt(e(368))/10*(-parseInt(e(387))/11))break;r.push(r.shift())}catch(s){r.push(r.shift())}}(rt);class ot{constructor(t){this[st(379)]=t}[et(359)](){var t;const n=et,e={cNCYO:function(t){return t()},ZzSBA:function(t,n){return t===n},rCyxe:n(364),onhzo:n(350),EFfpV:function(t,n){return t(n)}},r=e.cNCYO($),s=r[n(386)],o=null==(t=r[n(386)])?void 0:t[n(380)];!o&&(e.ZzSBA(e.rCyxe,e[n(372)])?this[n(379)]=_0xa5995f:e.EFfpV(y,S.USER_DATA_IS_NOT_PROVIDED)),this[n(358)]={id:o.id,is_premium:o[n(383)],first_name:o.firstName,is_bot:o[n(361)],last_name:o[n(369)],language_code:o[n(373)],photo_url:o[n(381)],username:o[n(385)]},this[n(366)]=o.id,this.userLocale=o[n(373)],this[n(371)]=s.startParam,this[n(360)]=r.platform,this[n(376)]=function(t){const n=tt,e={lZCGM:function(t,n){return t<n},lptNK:function(t,n){return t+n},LdOJl:function(t,n){return t-n},Tbtql:function(t,n){return t<<n},gyTdj:function(t,n){return t|n},kyWwp:function(t,n){return t%n},DerzX:function(t,n){return t==n},BIdFa:function(t,n){return t|n},AFzDJ:n(430),NuNOB:function(t,n){return t(n)}};let r=e[n(438)],s=(new Date)[n(434)]();const o=e[n(429)](t,s);let i=e[n(437)]((function(t){const r=n;let s=0;for(let n=0;e[r(443)](n,t.length);n++){const o=t.charCodeAt(n);s=e[r(429)](e[r(448)](e[r(433)](s,5),s),o),s|=0}return s}),o)[n(449)](16);for(;i[n(453)]<32;)i+=i;i=i[n(432)](0,32);let a=0;return r[n(447)](/[xy]/g,(function(t){const r=n,o=e.gyTdj(e[r(440)](e.lptNK(s,parseInt(i[a],16)),16),0);return s=Math.floor(s/16),a++,(e[r(435)](t,"x")?o:e[r(428)](3&o,8))[r(449)](16)}))}(e.EFfpV(String,this.getUserId()))}getSessionId(){return this[et(376)]}[et(384)](){return this[et(366)]}[et(347)](){return this[et(371)]}[et(382)](){return this[et(360)]}[et(357)](){return this[et(352)]}getUserData(){return this[et(358)]}[et(377)](){const t=et,n=this[t(375)]();return Boolean(null==n?void 0:n[t(356)])}[et(388)](){const t=et;return{session_id:this[t(354)](),user_id:this[t(384)](),app_name:this.appModule[t(378)](),is_premium:this[t(377)](),platform:this[t(382)](),locale:this.getUserLocale(),start_param:this[t(347)](),client_timestamp:{wrfCY:function(t,n){return t(n)}}[t(351)](String,Date[t(348)]())}}}function it(){const t=["3192170dduPoX","bkAyw","localStorage","3497582SQNPzg","3496BudSlL","addToStorage","19887756qFuRKA","roIof","EFQFf","5220msVUdh","setItem","ZWLQx","140yqjgQm","6XecygC","116526LAkDru","persist","getBatch","sessionStorage","498DVyLWQ","3252kszggq","filter","20WVDZvK","tJNTU","getItem","findIndex","storage","push","stringify","122683dCOpau","key","exIzy","yMuCc","wEzkR","parse"];return(it=function(){return t})()}const at=ct;function ct(t,n){const e=it();return(ct=function(t,n){return e[t-=182]})(t,n)}!function(t,n){const e=ct,r=t();for(;;)try{if(492016===parseInt(e(200))/1*(parseInt(e(185))/2)+-parseInt(e(190))/3*(parseInt(e(191))/4)+parseInt(e(206))/5+-parseInt(e(186))/6*(-parseInt(e(184))/7)+parseInt(e(210))/8*(parseInt(e(215))/9)+-parseInt(e(193))/10*(-parseInt(e(209))/11)+-parseInt(e(212))/12)break;r.push(r.shift())}catch(s){r.push(r.shift())}}(it);class ut{constructor(t){const n=ct,e={yMuCc:function(t,n){return t===n},rntZP:function(t,n){return t===n},zIVoJ:"tJNTU",ZWLQx:function(t,n){return t!==n},EvWWj:"EVWbV"};this[n(189)]=window[n(189)],this[n(208)]=window[n(208)],navigator[n(197)][n(187)](),this[n(201)]=t;const r=this[n(208)][n(195)](this[n(201)]);if(e[n(203)](r,null))e.rntZP(e.zIVoJ,n(194))?this[n(182)]([]):this[n(182)](_0x1da863[n(205)](_0x52c7a2));else{if(!e[n(183)](e.EvWWj,n(202)))return e[n(203)](this.sessionStorage[n(195)](this[n(201)]),null)&&e[n(203)](this[n(208)][n(195)](this.key),null)?this[n(182)]([]):this[n(182)](_0x5af1df.parse(this[n(208)][n(195)](this.key))),this[n(182)]([..._0x41f847.parse(this.sessionStorage[n(195)](this.key)),..._0x255095.parse(this.localStorage[n(195)](this[n(201)]))][n(192)](((t,e,r)=>r.findIndex((e=>_0x263f6d[n(199)](e)===_0x4d355b[n(199)](t)))===e))),_0x32a5d1[n(205)](this.sessionStorage.getItem(this[n(201)]));this[n(182)](JSON.parse(r))}}[at(188)](){const t=at,n={roIof:function(t,n){return t===n},bkAyw:function(t,n){return t!==n},EFQFf:t(204)};if(null===this[t(189)][t(195)](this[t(201)])&&n[t(213)](this[t(208)].getItem(this.key),null))if(n[t(207)](t(204),n[t(214)])){const n=this[t(188)]();n.push({event_name:_0xfcaee7,..._0xff923e}),this[t(182)](n)}else this[t(182)]([]);else this.setItem(JSON.parse(this[t(208)][t(195)](this.key)));return this[t(182)]([...JSON[t(205)](this.sessionStorage[t(195)](this[t(201)])),...JSON.parse(this[t(208)][t(195)](this.key))][t(192)](((n,e,r)=>r[t(196)]((e=>JSON[t(199)](e)===JSON[t(199)](n)))===e))),JSON[t(205)](this.sessionStorage[t(195)](this[t(201)]))}[at(211)](t,n){const e=at,r=this[e(188)]();r[e(198)]({event_name:t,...n}),this[e(182)](r)}[at(182)](t){const n=at;this[n(208)][n(182)](this[n(201)],JSON[n(199)](t)),this[n(189)][n(182)](this[n(201)],JSON.stringify(t))}}const pt=ht;function ht(t,n){const e=ft();return(ht=function(t,n){return e[t-=166]})(t,n)}function ft(){const t=["addEventListener","INIT","cGwGU","split","intervalId","startBatching","ZjKiF","QNljx","12628176bWgmML","init","getBatch","storage","sUPYe","454093EHniNg","appModule","TKSVM","onLine","collectEvent","xPxyd","recordEvents","ItqFR","stringify","batchInterval","pJpWh","navigator","145AHcmhA","status","3119658fdnYdP","collect","orHiN","tIitK","GtdWG","backoff","length","slice","stopBatching","UMNVQ","2rDuLEb","778785WAVFGQ","108564MpnsDS","BATCH_KEY","getApiToken","log","then","processQueue","RPvVs","some","DOMContentLoaded","3638744lFArpC","FojSR","330iynVPn","sendBatch","153747dTzWvd","hVpRB","rykTY"];return(ft=function(){return t})()}!function(t,n){const e=ht,r=t();for(;;)try{if(921987===-parseInt(e(194))/1+-parseInt(e(218))/2*(parseInt(e(208))/3)+parseInt(e(174))/4+parseInt(e(206))/5*(-parseInt(e(220))/6)+-parseInt(e(219))/7+parseInt(e(189))/8+parseInt(e(178))/9*(parseInt(e(176))/10))break;r.push(r.shift())}catch(s){r.push(r.shift())}}(ft);class lt{constructor(t){const n=ht,e={rykTY:function(t,n){return t+n}},r="5|1|4|3|0|2"[n(184)]("|");let s=0;for(;;){switch(r[s++]){case"0":this[n(195)]=t;continue;case"1":this[n(185)]=null;continue;case"2":this[n(192)]=new ut(e[n(180)](e[n(180)](this[n(166)],"-"),this.appModule[n(167)]()));continue;case"3":this[n(166)]="TGA-Batch-Requests";continue;case"4":this.batchInterval=2e3;continue;case"5":this[n(213)]=1;continue}break}}[pt(190)](){const t=pt,n={FojSR:function(t,n){return t===n},hVpRB:function(t,n){return t!==n},orHiN:t(201),GtdWG:t(173)};n[t(179)](document.readyState,"loading")?(this[t(195)].collectEvent(s[t(182)]),this[t(186)]()):document[t(181)](n[t(212)],(()=>{const e=t,r={ZjKiF:function(t,e){return n[ht(175)](t,e)}};n[e(179)](e(188),n[e(210)])?(this[e(195)][e(198)](s[e(182)]),this[e(186)]()):r[e(187)](this[e(185)],null)&&(this[e(185)]=_0x546778.setInterval((()=>this[e(170)]()),this[e(203)]))}))}[pt(216)](){const t=pt,n={tIitK:function(t,n){return t!==n}};n[t(211)](this[t(185)],null)&&(n[t(211)](t(204),"pJpWh")?(this.appModule[t(198)](_0x4bca4e[t(182)]),this.startBatching()):(clearInterval(this[t(185)]),this.intervalId=null))}[pt(209)](t,n){this[pt(192)].addToStorage(t,n)}startBatching(){const t=pt;({UMNVQ:function(t,n){return t===n}})[t(217)](this[t(185)],null)&&(this.intervalId=window.setInterval((()=>this[t(170)]()),this[t(203)]))}[pt(170)](){const t=pt,n=this[t(192)][t(191)]();({sUPYe:function(t,n){return t!==n}})[t(193)](n[t(214)],0)&&window[t(205)][t(197)]&&this[t(177)](n[t(215)](0,20))}sendBatch(t){const n=pt,e={cGwGU:function(t,n){return t===n},RPvVs:"mHCJY",TKSVM:function(t,n){return t(n)},xPxyd:function(t,n){return t*n}};this.stopBatching(),this[n(195)][n(200)](t)[n(169)]((r=>{const s=n;if(e[s(183)](e[s(171)],e.RPvVs)){if("4"===e[s(196)](String,r[s(207)])[0])return;if("5"===e[s(196)](String,r[s(207)])[0])return void(this[s(213)]<5&&(this[s(213)]++,this.batchInterval=e[s(199)](this[s(203)],2.71),console[s(168)](this[s(203)]),this[s(186)]()));this.backoff=1,this.batchInterval=2e3,this[s(192)].setItem(this[s(192)][s(191)]().filter((n=>!t[s(172)]((t=>JSON.stringify(n)===JSON[s(202)](t)))))),this[s(186)]()}else this[s(177)](_0x3df9a2[s(215)](0,20))}),(t=>{const e=n;console[e(168)](t),this[e(186)]()}))}}var It=dt;function dt(t,n){var e=mt();return(dt=function(t,n){return e[t-=251]})(t,n)}function mt(){var t=["2774322tOtDfZ","batchService","3039654urnfNV","recordEvents","collect","NPBTm","analyticsController","3|2|4|1|0|5","collectEvent","getAppName","assembleEventSession","init","10uPwQEu","72CZSKEb","703738kDdHgE","sessionController","appName","split","745137UVlMEq","13799AgNFyI","8PivDmP","820424EJTZdg","5Ngizyk","recordEvent","23895982WAXeAE","networkController","getApiToken"];return(mt=function(){return t})()}!function(t,n){for(var e=dt,r=t();;)try{if(306712===-parseInt(e(251))/1*(parseInt(e(272))/2)+-parseInt(e(277))/3+-parseInt(e(253))/4+parseInt(e(254))/5*(-parseInt(e(261))/6)+-parseInt(e(273))/7+-parseInt(e(252))/8*(parseInt(e(259))/9)+parseInt(e(271))/10*(parseInt(e(256))/11))break;r.push(r.shift())}catch(s){r.push(r.shift())}}(mt);class gt{constructor(t,n){for(var e=dt,r={NPBTm:e(266)}[e(264)][e(276)]("|"),s=0;;){switch(r[s++]){case"0":this.analyticsController=new d(this);continue;case"1":this.networkController=new T(this);continue;case"2":this[e(275)]=n;continue;case"3":this.apiToken=t;continue;case"4":this[e(274)]=new ot(this);continue;case"5":this[e(260)]=new lt(this);continue}break}}async[It(270)](){var t=It;this[t(257)][t(270)](),this[t(274)][t(270)](),this[t(265)][t(270)](),this[t(260)][t(270)]()}[It(269)](){var t=It;return this[t(274)][t(269)]()}recordEvent(t,n,e){var r=It;return this[r(257)][r(255)](t,n,e)}recordEvents(t){var n=It;return this[n(257)][n(262)](t)}[It(267)](t,n){var e=It;this[e(260)][e(263)](t,{...n,...this[e(269)]()})}[It(258)](){return this.apiToken}[It(268)](){return this[It(275)]}}function Nt(t,n){const e=yt();return(Nt=function(t,n){return e[t-=208]})(t,n)}!function(t,n){const e=Nt,r=t();for(;;)try{if(471424===-parseInt(e(210))/1*(parseInt(e(218))/2)+-parseInt(e(214))/3*(parseInt(e(215))/4)+-parseInt(e(211))/5*(parseInt(e(213))/6)+parseInt(e(208))/7+-parseInt(e(216))/8+-parseInt(e(212))/9+parseInt(e(209))/10)break;r.push(r.shift())}catch(s){r.push(r.shift())}}(yt);function yt(){const t=["2694148UaRtPI","3188920ZKanGt","init","40742rznHFD","2656647ilxGrq","20948050fNVLLU","5KhRJdl","2183575bAcViI","3529620FlzXXk","6XsVnfh","3oOjYYe"];return(yt=function(){return t})()}return{init:async function({token:t,appName:n}){const e=Nt;new gt(t,n)[e(217)]()}}}();
{
"name": "@telegram-apps/analytics",
"version": "1.1.6",
"version": "1.1.7",
"main": "dist/index.js",

@@ -21,3 +21,3 @@ "type": "module",

"dependencies": {
"@tma.js/sdk": "^2.4.0",
"@telegram-apps/sdk": "^1.1.0",
"@tonconnect/ui": "2.0.3-beta.4",

@@ -24,0 +24,0 @@ "@twa-dev/types": "^7.0.0",

# Telegram Analytics
### Version 1.1.6
### Version 1.1.7
Telegram analytics is a unique SDK and API that turns your mini-application into a source of valuable data. Telegram analytics doesn't just track user activity in your app, it turns it into clear and useful analytics. With this tool, you get instant access to key metrics that help you understand how users interact with your application and what steps need to be taken to optimize it.
### [Documentation](https://docs.tganalytics.xyz)

@@ -1,2 +0,2 @@

import {retrieveLaunchParams, User} from '@tma.js/sdk';
import { retrieveLaunchParams } from '@telegram-apps/sdk';
import { WebAppUser } from '@twa-dev/types'

@@ -22,30 +22,23 @@ import { App } from '../app'

public init() {
if (window?.Telegram?.WebApp?.initDataUnsafe?.user) {
this.userData = window?.Telegram?.WebApp?.initDataUnsafe?.user;
this.userId = this.userData.id;
this.userLocale = this.userData.language_code;
this.webAppStartParam = window?.Telegram?.WebApp?.initDataUnsafe?.start_param;
this.platform = window?.Telegram?.WebApp?.platform;
} else if (retrieveLaunchParams().initData?.user) {
const lp = retrieveLaunchParams();
const initData = lp.initData;
const user = lp.initData?.user;
this.userData = {
id: user.id,
is_premium: user.isPremium,
first_name: user.firstName,
is_bot: user.isBot,
last_name: user.lastName,
language_code: user.languageCode,
photo_url: user.photoUrl,
username: user.username,
};
this.userId = user.id;
this.userLocale = user.languageCode;
this.webAppStartParam = initData.startParam;
this.platform = lp.platform;
} else {
const lp = retrieveLaunchParams();
const initData = lp.initData;
const user = lp.initData?.user;
if (!user) {
throwError(Errors.USER_DATA_IS_NOT_PROVIDED);
}
this.userData = {
id: user.id,
is_premium: user.isPremium,
first_name: user.firstName,
is_bot: user.isBot,
last_name: user.lastName,
language_code: user.languageCode,
photo_url: user.photoUrl,
username: user.username,
};
this.userId = user.id;
this.userLocale = user.languageCode;
this.webAppStartParam = initData.startParam;
this.platform = lp.platform;
this.sessionId = generateUUID(String(this.getUserId()));

@@ -52,0 +45,0 @@ }

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc