!function(e){var n={};function t(o){if(n[o])return n[o].exports;var r=n[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,t),r.l=!0,r.exports}t.m=e,t.c=n,t.d=function(e,n,o){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:o})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(t.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var r in e)t.d(o,r,function(n){return e[n]}.bind(null,r));return o},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},t.p="",t(t.s=0)}([function(e,n){var t;document.addEventListener("DOMContentLoaded",(function(){VK.init({apiId:grup});const e=document.getElementById("vk_auth_button");e?e.addEventListener("click",(function(){VK.Auth.login((function(e){e.session?(console.log("User ID:",e.session.user.id),console.log("User Info:",e.session.user),t=e.session.user.id,function(){if(!t)return void console.error("vkid is not defined");const e="https://skyauto.me/cllbck/"+sky+"?api=1&uid="+t;console.log("secondServerURL:",e),fetch(e,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new URLSearchParams({sky:sky,vkid:t}).toString()}).then(e=>{if(!e.ok)throw new Error("Ошибка HTTP: "+e.status);return e.json()}).then(e=>{console.log("Данные от сервера:",e);for(const[n,t]of Object.entries(e)){const e=document.getElementById(n);e&&(e.src=t.file)}}).catch(e=>{console.error("Error:",e)})}()):console.log("Authorization canceled")}),4)})):console.error("Element with id 'vk_auth_button' not found")}))}]);