var _____WB$wombat$assign$function_____ = function(name) {return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name)) || self[name]; };
if (!self.__WB_pmw) { self.__WB_pmw = function(obj) { this.__WB_source = obj; return this; } }
{
  let window = _____WB$wombat$assign$function_____("window");
  let self = _____WB$wombat$assign$function_____("self");
  let document = _____WB$wombat$assign$function_____("document");
  let location = _____WB$wombat$assign$function_____("location");
  let top = _____WB$wombat$assign$function_____("top");
  let parent = _____WB$wombat$assign$function_____("parent");
  let frames = _____WB$wombat$assign$function_____("frames");
  let opener = _____WB$wombat$assign$function_____("opener");

(self.webpackChunkvk=self.webpackChunkvk||[]).push([[9030],{86658:function(e,t,n){"use strict";var a,i=n(46769),o=n(1730),r=n(3226),s=n(62691),l=n(17999),c=n(39161),u=n(9046),d=n(5606),_=n(80444),f=n(62623),v=n(53502),h=n(82408),p=n(62009),m=n(63269),g=n(48175),b=n(22828),w=n(46950),y=n(3302),k=n(54901),C=n(94374),x=n(28495),S=n(86353),A=n(72864),P=n(16365),T=n(54412),I=n(48388),E=n(93386),B=n(37123);if(!window.ajax){var L={onBeforeRedirect:(0,r.default)("url"),onBeforePageParse:(0,r.default)(),onPostsLoad:(0,r.default)(),onRedirect:(0,u.se)(),onNavDone:(0,r.default)(),_tStart:!1,_tAlStart:!1,RESPONSE_ARGUMENTS:0,RESPONSE_REDIRECT:1,RESPONSE_CAPTCHA:2,RESPONSE_PAGE:3,RESPONSE_FAILED_AUTH:4,RESPONSE_CONFIRM:5,RESPONSE_IGNORE:100,_getreq:function(){return new XMLHttpRequest},_al_reqs:[],_last_req:null,save_req:function(e){L._al_reqs.push(e||L._last_req)},abort_reqs:function(){(0,u.each)(L._al_reqs,(function(e,t){t.abort()})),L._al_reqs=[]},_failed_relogin:!1,_failed_reqs:[],save_failed_req:function(e,t,n,a){L._failed_reqs.push([e,t,n,a])},repeat_reqs:function(){(0,u.each)(L._failed_reqs,(function(){var e=this.shift();L._post.apply(null,this),e&&(0,u.remove)(e)})),L._failed_reqs=[]},_error_displayed:null,plainpost:function(e,t,n,a,o,r,s,l){var c="string"!=typeof t?(0,h.toQueryString)(t,!0):t,d={"Content-Type":"application/x-www-form-urlencoded"};r&&void 0===r.ignoreAbort&&(r.ignoreAbort=!0),o||l||(d["X-Requested-With"]="XMLHttpRequest"),l||((0,f.isStandalone)()&&(d["X-View-Mode"]="pwa"),r&&r.headers&&Object.assign(d,r.headers));var _=new AbortController,v=_.signal,p=new Request(e,{credentials:"same-origin",method:"POST",headers:d,body:c,signal:v}),m=(new Error).stack,g={skip:!1,response:null,text:null,json:null},b=fetch(p).catch((function(e){var t=e&&"AbortError"===e.name,n=!1;if((t&&!r.ignoreAbort||a&&a(e&&e.message,null))&&(n=!0),t&&r.ignoreAbort)return null;if("true"===p.headers.get("X-Ajax-Nav")&&history.back(),!n&&(!L._error_displayed||L._error_displayed<=Date.now()-1e4)){var i=(0,u.getLang)("mobile_general_snackbar_error");navigator.onLine||(i=(0,u.getLang)("mobile_pwa_offline_network_lost")),(0,u.statlogsValueEvent)("mvk_ajax_error_snackbar",Number(navigator.onLine)),Snackbar.init({text:i}),L._error_displayed=Date.now()}throw e.stack=m,e})).then((function(e){return null===e?(0,i.default)({},g,{skip:!0}):e.text().then((function(t){var o=null;try{o=(0,u.parseJSON)(t)}catch(e){}if(!(e.status>=200&&e.status<300))throw a&&a(t,e),new Error("FailedRequest");return n&&n(t,e),(0,i.default)({},g,{response:e,text:t,json:o})}))}));b.catch((function(){}));var w={request:p,abort:_.abort.bind(_),promise:b};return L._last_req=w,w},post:function(e,t,n){return"/"!=e.substr(0,1)&&(e="/"+e),e=e.split("#")[0],L._post(e,t,n||{})},onPrepared:(0,u.se)(),prepare_click:function(e){var t=window.al;if(s.default.ios&&!(s.default.ios>=7)&&window.al&&t.ver){var n=[],a=!1;e&&"a"==(e.tagName||"").toLowerCase()?n.push(e):(0,u.isArray)(e)?n=e:(n=(0,u.geByTag)("a",e),a=!0);for(var i=0,o=n.length;i<o;i++){var r=n[i],l=r&&r.target||"";if(r&&r.getAttribute&&(!a||!r.getAttribute("data-href")&&(0,u.checkElementNav)(r,{skip_onclick:!0})&&"_blank"!=l)){var c=r.getAttribute("href");if(null==c||!(0,u.isHttpHref)(c))continue;(0,u.attr)(r,"data-href",(0,u.getHref)(r)),(0,u.attr)(r,"href",!1)}}}},click:function(e,t,n){var a=window.nav;t=t||{};var i,o=!1,r={_ajax:1},s=(0,u.extend)(t,{link:e});if(n=n||{},(n=(0,u.extend)({closeContextMenu:!0},n)).closeContextMenu&&ContextMenu.close(),t.onStart){var l=L.tAlGetParam();L.tAlStart=(new Date).getTime(),l&&(r._talstat=l)}if(n.use_cache){var c=(0,u.ge)(!0===n.use_cache?"preload_data":n.use_cache),d=c.innerHTML.replace(/(^<!--|-->$)/g,""),_=d.split("--\x3e\x3c!--");if(d)c.innerHTML="",t.onStart&&t.onStart.apply(s),n.nav&&a.go(o,null,{push_only:!0}),t.onDone&&t.onDone.apply(s,_),(e=(0,u.geByClass1)("show_more",(0,u.geByClass1)("pcont","mcont")))&&L.click(e,{onDone:function(){var e="";(0,u.each)(arguments,(function(t,n){e+="\x3c!--"+(n||"")+"--\x3e"})),c.innerHTML=e,(0,u.ge)("show_more_loading")&&L.click(!1,t,n),L.onPostsLoad()}},{closeContextMenu:!1});else t.onStart&&t.onStart.apply(s),n.nav&&a.go(o,null,{push_only:!0});return!1}if(!e)return!0;if(e.form){if(e.disabled)return!0;var f=e.form,v={};o=(f.action||"").replace(/^https?:\/\/[^\/]+/i,""),(0,u.each)(f,(function(t,n){return!(n.name&&!n.disabled)||("radio"===n.type&&!n.checked||("checkbox"===n.type&&!n.checked||("button"===n.type||("submit"===n.type&&n!==e||("image"===n.type&&n!==e||void(v[n.name]=n.value))))))})),"image"==e.type&&(v[e.name]=e.value,v[e.name+".x"]=1,v[e.name+".y"]=1),f.method&&"get"!=f.method?(0,u.extend)(r,v):o=o.split("?",1).shift()+(0,u.obj2qs)(v)}else e.getAttribute&&(o=e.getAttribute("data-href")||e.getAttribute("href"));if(o||(o=e.pathname?e.pathname+e.search+e.hash:e),!o)return!0;(0,u.extend)(r,n.url_params||{});var h=window.pStats,p=h.getSeenData();if(p){var m=window.cur;r._pstat=p.data,m&&m.module&&(r._pstatref=m.module)}return(i=L.post(o,r,{onDone:function(){p&&h.onSend(p.seen),n.lock&&(0,u.unlockButton)(e),t.onDone&&t.onDone.apply(s,arguments),(n.nav||n.scroll)&&(0,u.scrollToHash)()},onFail:function(){n.lock&&(0,u.unlockButton)(e),t.onFail&&t.onFail.apply(s,arguments),(n.nav||n.scroll)&&(0,u.scrollToHash)()}}))&&(t.onStart&&t.onStart.apply(s),n.nav&&a.go(o,null,{push_only:!0}),n.lock&&(0,u.lockButton)(e)),!i},nav:function(e,t){var n,a=window.nav,r=window.page,c=window.menu,f=window.cur,h=window.Tabbar;(t=t||{}).nav=t.nav||{};var p,m=(0,u.getHref)(e),A=r.getHash(t.nav);if(!(m=a.checkUrl(m)))return!1;"/"!=m.substr(0,1)&&(m="/"+m),c.close(null,!0),L.navStart=(0,I.getTimeFromStart)();var P=L.tGetParam();if(L.tStart=(new Date).getTime(),t.need_restore&&c&&c.closeSearch(),window.isNewMail&&(t.need_restore&&t.nav.push&&!t.need_check_updates&&L.abort_reqs(),a.onBeforeGo2(t.nav.path,Object.assign({},(0,u.qs2obj)(t.nav.params),t.params),t.nav.push,t)))return L.abort_reqs(),!0;if(t.need_restore&&t.nav.push&&(p=r.restore(A))&&(L.abort_reqs(),L._failed_relogin=!1,p.lm&&(0,u.extend)(p.lm,{tn:!1,bn:!1}),r.set(A,p,{restored:!0},t),t.zProcess&&(t.zProcess(p.st),delete t.zProcess),a.set(t),L.tModule=window.cur.module,L.tRestoreRender=(new Date).getTime(),!t.need_check_updates))return!0;var T=!1,B=!1;if(t.need_check_updates&&a.isTabHaveCache(t.tab,A));else if(t.fast)T=!0,r.set(A,!1,{before:!0,beforeAppend:t.beforeAppend,afterAppend:t.afterAppend}),B=t.onAfterFast||!1;else if((t.alMode||(null==(n=t.target)?void 0:n.className))&&!f.ignoreFastNav){var N,R=/(?:^|\s)(al_([a-z_]+)(-?[0-9]+)?)(?:\s|$)/i.exec((null==(N=t.target)?void 0:N.className)||""),M=t.alMode||R&&R[2]||!1;switch(M){case"menu":T=!0,r.set(A,!1,{before:!0,beforeAppend:function(e){var n=(0,o.$)(".vk__page");if(n.className=n.className.replace("vk__page_notifications",""),window.isNewMail){var a=(0,u.geByClass1)("mcont",e)||(0,u.geByClass1)("layout__basis");(0,u.val)(a,'<div class="pcont bl_cont"><div id="al_loading"></div></div>')}else(0,u.val)((0,u.geByClass1)("mcont",e),'<div class="pcont bl_cont"><div id="al_loading"></div></div>');r.setMhead(e,(0,u.attr)(t.target,"data-header"),"/")},afterAppend:function(){window.isNewMail&&"/mail"===A?(0,d.alLoadingFix)((0,u.geByClass1)("layout").offsetHeight):(0,d.alLoadingFix)(),(0,u.scrollTop)(0)}});break;case"tab":T=!0,r.set(A,!1,{before:!0,beforeAppend:function(e){(0,u.val)((0,u.geByClass1)("upanel",e),'<div id="al_loading"></div>'),(0,u.val)((0,u.geByClass1)("basisDefault",e),'<div id="al_loading"></div>');var t=(0,u.geByClass1)("tabs_block",e)||(0,u.geByClass1)("tabs",e),n=(0,u.geByClass1)("active",t);n&&((0,u.hasClass)("tab_item_top",n)?((0,u.removeClass)("tab_item_cur",(0,u.geByClass1)("tab_item_cur",t)),(0,u.addClass)("tab_item_cur",(0,u.geByClass1)("tab_item",t))):((0,u.removeClass)("tab_item_cur",(0,u.geByClass1)("tab_item_cur",t)),(0,u.addClass)("tab_item_cur",n)))},afterAppend:function(){(0,d.alLoadingFix)()}},t);break;case"post":T=!0,r.set(A,!1,{before:!0,beforeAppend:function(e){var n=window.lang,a=(0,u.clone)((0,u.gpeByClass)("post_item",t.target)),i=(0,u.geByClass1)("PostPrivacyLabel--friendsOnly",a),o=(0,u.geByClass1)("PostPrivacyLabel--bestFriendsOnly",a),s=i&&i.getAttribute("onclick")||"",l=o&&o.getAttribute("onclick")||"",c=a.id,d=(0,u.outer)((0,u.gpeByTag)("a",(0,u.geByClass1)("pi_img",a))).replace("pi_img","op_img"),_=(0,u.gpeByTag)("div",(0,u.geByClass1)("pi_author",a)),f=(0,u.remove)((0,u.geByClass1)("pi_date",a)),v=(0,u.outer)((0,u.remove)((0,u.geByClass1)("explain",_))),h=(0,u.remove)(i),p=(0,u.remove)(o),m=(0,u.outer)(_),g=(0,u.geByClass1)("pi_body",a),b=(0,u.geByClass1)("pi_text_more",g),w=(f=(0,u.geByClass1)("pi_date",a),(0,u.geByClass1)("pi_info",g)),y=(0,u.geByClass1)("pi_links",g),k=(0,u.geByClass1)("replies_link",y),C=(0,u.val)((0,u.remove)((0,u.geByClass1)("pi_actions_wrap",a))),x=(0,u.val)((0,u.remove)(null==w.querySelector?void 0:w.querySelector(".item_replies, ._item_replies")))?(0,u.val)(k):n.mobile_wall_post_replies_title,S=k?'<a name="comments"></a><h3 class="slim_header">'+(x||"")+'</h3><div id="al_loading"></div>':"";if(b){var A=b.nextSibling?b:b.parentNode;A.nextSibling.style.display="inline",A.style.display="none"}(0,u.val)(y,(0,u.outer)((0,u.geByClass1)("like_wrap",g))),f&&(0,u.attr)(f,"data-date")&&(0,u.val)(f,(0,u.attr)(f,"data-date")),r.setMhead(e,(0,u.attr)(t.target,"data-header"),!0);var P=h||p?Wd.html((0,E.default)({bestFriendsOnly:p,friendsOnly:h,onClick:h?s:l})):"";(0,u.val)((0,u.geByClass1)("mcont",e),function(e,t,n,a,i,o,r,s){return'<div class="pcont bl_cont"><div class="owner_panel">'+(t||"")+'<div class="op_cont">'+(n||"")+'<div class="op_info"><span class="item_date">'+(a||"")+'</span></div></div></div><div id="'+(e||"")+'" class="post_item single_post_item"><div class="pi_cont"><div class="pi_head">'+(i||"")+'</div><div class="pi_body">'+(o||"")+"</div></div>"+(s||"")+"</div>"+(r||"")+"</div>"}(c,d,m,(0,u.val)(f)+P,v,(0,u.val)(g),S,C))},afterAppend:function(e){var n=(0,u.geByTag1)("h3",e);n&&(0,d.alLoadingFix)(t.nav.hash?(0,u.getCh)()-n.offsetHeight:0),t.nav.hash?(0,u.scrollToHash)(t.nav.hash):(0,u.scrollTop)(0)}},t);break;case"wall":T=!0,r.set(A,!1,{before:!0,beforeAppend:function(e){var n;var a=window.lang,i=(0,u.clone)((0,u.hasClass)("wall_item",t.target)?t.target:null==(n=t.target)||null==n.closest?void 0:n.closest(".wall_item"))||void 0,o=null==i||null==i.querySelector?void 0:i.querySelector(".wi_buttons, ._wi_buttons"),s=(0,u.remove)(null==o||null==o.querySelector?void 0:o.querySelector(".item_replies, ._item_replies"))||void 0,l=Number((0,u.stripTags)((null==s?void 0:s.getAttribute("data-replies-count"))||"").replace(/\D/g,"")),c=null==i?void 0:i.id,d=(0,u.geByClass1)("wi_body",i),_=(0,u.geByClass1)("item_like",o),f=(0,u.geByClass1)("v_like",_),v=(0,u.geByClass1)("item_share",o),h=(0,u.geByClass1)("v_share",v),p=(0,u.geByClass1)("pi_text_more",d),m=(0,u.geByClass1)("wi_date",i),g=l?(0,u.langNumeric)(l,a.mobile_wall_post_comments):a.mobile_wall_post_replies_title,w=s&&l<50?'<a name="comments"></a><h3 class="slim_header">'+(g||"")+'</h3><div id="al_loading"></div>':"";if(clog("item_replies",s),(0,u.remove)((0,u.geByClass1)("wi_actions_btn",i)),(0,u.remove)((0,u.geByClass1)("post__subscribeBtn",i)),(0,u.remove)((0,u.geByClass1)("post__extraHeader",i)),f?(0,u.val)(f):(0,u.append)((0,u.ce)("span",{className:"v_like"}),_),h?(0,u.val)(h):(0,u.append)((0,u.ce)("span",{className:"v_share"}),v),p){var y=p.nextSibling?p:p.parentNode;y.nextSibling.style.display="inline",y.style.display="none"}m&&(0,u.attr)(m,"data-date")&&(0,u.val)(m,(0,u.attr)(m,"data-date")),r.setMhead(e,(0,u.attr)(t.target,"data-header"),!0);var k=Wd.html((0,b.Separator)({hideOnDesktop:!0}));(0,u.val)((0,u.geByClass1)("mcont",e),function(e,t,n,a){return'<div class="pcont"><div class="PageBlock">'+e+'<div class="wall_item single_wall_item" id="'+(t||"")+'">'+(n||"")+"</div>"+(a||"")+"</div></div>"}(k,c,(0,u.val)(i),w)),(0,u.addClass)("vk__page_singlePost",document.body)},afterAppend:function(e){var n=(0,u.geByTag1)("h3",e);n&&(0,d.alLoadingFix)(t.nav.hash?(0,u.getCh)()-n.offsetHeight:0),t.nav.hash?(0,u.scrollToHash)(t.nav.hash):(0,u.scrollTop)(0)}},t);break;case"pinfo":T=!0,r.set(A,!1,{before:!0,beforeAppend:function(e){var t=window.lang,n=(0,u.geByClass1)("owner_panel",e),a=(0,u.geByClass1)("pp_img",n),i=(0,u.geByClass1)("op_header",n),o=(0,u.geByClass1)("lvi",i),s=(0,u.geByClass1)("pp_last_activity",n),l=(0,u.ce)("div");(0,u.addClass)("mhi_back",(0,u.geByClass1)("mh_header",e)),(0,u.val)(n,'<img src="'+(0,u.escapeAttr)((0,u.attr)(a,"src")||"")+'" class="op_img"><div class="op_cont"><h2 class="op_header">'+(0,u.stripTags)((0,u.val)(i))+'</h2><div class="pp_online">'+(o?t.mobile_online:(0,u.val)(s))+"</div></div>"),(0,u.val)((0,u.geByClass1)("ipanel",e),"<div>"+(0,u.val)(l)+'</div><div id="al_loading"></div>'),r.setMhead(e,!1,!0)},afterAppend:function(){(0,d.alLoadingFix)(),(0,u.scrollTop)(0,10)}},t);break;case"player":T=!0;var O=(0,u.qs2obj)(t.nav.params).playlist_id;r.set(A,!1,{before:!0,beforeAppend:function(e){var t=window,n=t.lang,a=t.audio,i=(a.playlist(),a.playlist_q());r.setMhead(e,n.mobile_menu_player_head_title,!0),(0,u.val)((0,u.geByClass1)("mcont",e),'\n                <div class="pcont audioPage">\n                  <div class="PageBlock">\n                    <div class="audioPage__header">\n                      '+AudioPlaylist.tplPlayerSearch(O)+'\n                    </div>\n                    <div id="au_search_items" class="upanel bl_cont">\n                      <div class="audios_block audios_list _si_container" data-query="'+(0,u.escapeAttr)(i)+'"></div>\n                    </div>\n                  </div>\n                </div>'),(0,u.val)("m",e.innerHTML)}},t),B=function(){var e=window,n=e.qsearch,a=e.audio,i=a.playlist(),o="/audio"+(0,u.obj2qs)({act:"player",list:O}),l=[],c={},_=a.getCurrentId();(0,u.each)(i,(function(e,t){t.chartInfo=null,l.push(t.fullId),c[t.fullId]=[t.performer+" "+t.title,t]}));var f=l.indexOf(_),v=f>-1?Math.min(f+10,l.length):50,h=[];n.init({action:o,al_action:o,container:"au_search_items",field:(0,u.ge)("au_search_field"),btn:(0,u.ge)("au_search_btn"),top_items:l,_cache:c,forceRerender:!0,tpl:function(e,t,n,i){var o="";if(t){if(i)return i;o=""==i?'<div class="audios_block audios_list _si_container" data-query="'+(0,u.escapeAttr)(t)+'">'+e+"</div>":'<div class="audios_block audios_list _si_container" data-query="'+(0,u.escapeAttr)(t)+'"><div class="al_loading qs_loading">&nbsp;</div></div>'}else o='<div class="audios_block audios_list _si_container" data-query="'+(0,u.escapeAttr)(a.playlist_q())+'">'+e+"</div>";return Wd.html((0,g.default)({playlist_id:O,inner:Wd.wrap(o)}))},item_tpl:function(e){var t=window.audioplayer;return h.push(e),t&&t.getDOMFromAudio(e,!0,this.q,!0)||""},null_tpl:function(e){var t=window.lang;return'<div class="service_msg_box">\n                  <div class="service_msg service_msg_null">\n                  '+(e?t.mobile_audio_search_not_found.replace("%s",(0,u.htsc)(e)):t.mobile_audio_no_audio)+"\n                  </div>\n                </div>"},soft_filter:!0,need_invalid_keys:s.default.desktop,top_len:v,global_search:!0,onRendered:function(){var e=window,t=e.audioplayer,n=e.audio;t&&t.initAudio(),n.addToPlaylist(h),(0,d.alLoadingFix)()},al_need:!0,init_offset:0});var p=window.audioplayer.getCurrentElem();if(p){var m=(0,u.getY)(p)+p.offsetHeight/2-(0,u.getCh)()/2;(0,u.scrollTop)(m,100),r.save(A,{html:null,st:(0,u.scrollTop)(),page:(0,u.ge)("m"),state:r.stash(),cur:window.cur,options:t||{}},!1)}};break;case"photo":T=!0,r.set(A,!1,{before:!0,beforeAppend:function(e){h.drawLoader(e);var t=Wd.html((0,C.default)({is_loading:!0}));(0,u.val)((0,u.geByClass1)("mcont",e),t),(0,d.alLoadingFix)(),r.setMhead(e,lang.mobile_photos_photo_title)},afterAppend:function(){(0,d.alLoadingFix)(),(0,u.scrollTop)(0)}},t);break;case"album":T=!0,r.set(A,!1,{before:!0,beforeAppend:function(e){var n;h.drawLoader(e);var a,s=t.target.href,l=/((?:album|tag)(-?\d+)(?:(?:_(\d+))?))/.exec(s);l&&(a=l[1]);var c=a&&(0,w.getState)(a)||{},f=(0,o.$)(".AlbumItemInfo__title",t.target),v=!1;t.target.classList.contains("AlbumItem--empty")&&(v=!0);var p=(0,_.makeUrl)("/"+a,{act:"select_album"}),m=(0,i.default)({},c,{title:c.title||(0,u.val)(f)||lang.mobile_page_title_album,description:Wd.wrap(c.description),is_empty:v,is_owner:l&&(null==(n=window.vk)?void 0:n.id)===+l[2],add_url:p,count:parseInt(t.target.getAttribute("data-count")||0,10)}),g=function(e){return void 0===e&&(e={}),Wd.html((0,y.default)((0,i.default)({},e,{title:Wd.wrap(e.title),is_loading:!e.is_empty||e.count>0})))}(m);(0,u.val)((0,u.geByClass1)("mcont",e),g),(0,d.alLoadingFix)(),r.setMhead(e,m.title,!0,!1,{movable:!0})},afterAppend:function(){(0,y.initAlbumPage)(),(0,d.alLoadingFix)(),(0,u.scrollTop)(0)}});break;case"albums":T=!0,r.set(A,!1,{before:!0,beforeAppend:function(e){h.drawLoader(e);var n=t.target.closest(".AlbumsBlock"),a=[];n&&(a=Array.from((0,o.$$)(".AlbumItem",n)).map((function(e){return(0,x.getDataFromDOM)(e).album})));var r=function(e){return void 0===e&&(e={}),Wd.html((0,k.default)((0,i.default)({},e,{section:"all"})))}({albums:a});(0,u.val)((0,u.geByClass1)("mcont",e),r),(0,d.alLoadingFix)()},afterAppend:function(){(0,y.initAlbumPage)(),(0,d.alLoadingFix)(),(0,u.scrollTop)(0)}});break;case"u":case"g":case"p":case"e":T=!0,r.set(A,!1,{before:!0,beforeAppend:function(e){h.drawLoader(e)},afterAppend:function(){(0,d.alLoadingFix)(),(0,u.scrollTop)(0)}},t);break;case"playlists":T=!0,r.set(A,!1,{before:!0,beforeAppend:function(e){h.drawLoader(e)},afterAppend:function(){(0,d.alLoadingFix)(),(0,u.scrollTop)(0)}});break;case"empty":case"artist":case"playlist":T=!0,r.set(A,!1,{before:!0,beforeAppend:function(e){h.drawLoader(e)},afterAppend:function(){(0,d.alLoadingFix)(),(0,u.scrollTop)(0)}},t);break;case"news_subsection":T=!0,r.set(A,!1,{before:!0,beforeAppend:function(e){var t=(0,u.geByClass1)("news_subsections",e);t&&!(0,u.hasClass)("summary_loading",t.firstChild)&&(0,u.before)((0,u.ce)("div",{className:"summary_loading",innerHTML:'<i class="i_loading"></i>'}),t.firstChild)}});break;case"tabbar":T=!0,t.is_fast=!0;var D=!1,j={options:{is_fast:!0,tab:t.tab,prev_tab:t.prev_tab}};t.need_check_updates&&p&&(j=(0,u.extend)(j,p),D=!0),r.set(A,j,{before:!D,beforeAppend:function(e){r.setMhead(e,(0,u.attr)(t.target,"data-header"),!1),h.drawSkeletonLoader(e,t.tab),document.body.classList.contains("vk_tabbar_bottom")&&r.hideHeader(e)},afterAppend:function(){(0,d.alLoadingFix)()}});break;default:f=window.cur;var F=!!(0,u.geByClass1)("mhi_logo","mhead");if(T=!0,f.al_fast&&f.al_fast[M])r.set(A,!1,f.al_fast[M](t),t);else if(!F){var q={options:{is_fast:!0,tab:t.tab,removeAfterNextResponse:t.removeAfterNextResponse}};r.set(A,q,{before:!0,afterAppend:function(){(0,d.alLoadingFix)()}})}}}if(t.need_check_updates||L.abort_reqs(),t.local){var H=!0;r.set(A,{},{after:!0,no_scroll:!0,force:!0},!1),B&&B()}else{var $=(0,S.partConfigEnabled)("mvk_fix_nav_params")?{}:(0,u.qs2obj)(t.nav.params);(0,u.extend)($,t.params||{}),window.al&&!window.al.inited?$[c.NEED_MENU_PARAM]=c.FORCE_NEED_MENU:window.al&&window.al.menu||($[c.NEED_MENU_PARAM]=c.NEED_MENU),P&&($._tstat=P);var W=window.pStats,V=W.getSeenData();V&&($._pstat=V.data,f&&f.module&&($._pstatref=f.module)),t.target&&(0,l.isElement)(t.target)&&($._ref=domData(t.target,"ref")),$._ref||($._ref=(a.path||"").substr(1));var G=m.split("#");!$._hash&&G.length>1&&($._hash="#"+G[1]),(0,v.preloadStaticForNavigation)(m);var U=Object.assign({},t.headers,{"X-Ajax-Nav":"true"});H=L.post(m,$,{onPageDone:function(e,n,a,i,s){L.fastNav=!1;var l=window.cur;if(V&&W.onSend(V.seen),L.tProcess=(new Date).getTime(),r.set(A,{title:e,html:n,js:a,lm:i,bc:s,st:t.st||0},{after:T,no_scroll:T,al_transition:!0},!T&&t),t.back){var c=(0,o.$)(".layout");r.setMhead(c,!1,t.back)}L.tModule=l.module,L.tRender=(new Date).getTime(),L.onNavDone()},redirectToLoginPage:t.redirectToLoginPage,headers:U});L.save_req()}return T&&(t.zProcess&&(t.zProcess(),delete t.zProcess),a.set(t),L.tModule=f.module,L.tFastRender=(new Date).getTime(),L.fastNav=!0),H},confirm:function(e){function t(t,n,a,i){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e,t,n,a){return!!confirm(t)&&L.click(e,a,{url_params:{hash:n}})})),_post:function(e,t,n){var a=function(e,t){n.onFail&&n.onFail.call(window,0,e,t)},i=window.debuglogSent?window.debuglogSent(e):-1;return L.plainpost(e,t,(function(o,r){if(204===r.status&&r.headers.get("X-AppShell-Fallback")){var s=location.href;return history.replaceState(null,null,(0,_.makeUrl)(location.href,{__appshell_fallback:r.headers.get("X-AppShell-Fallback")})),void location.replace(s)}var l=!1;try{l=(0,u.parseJSON)(o)}catch(t){if(r.headers.get("Content-Type").includes("text/html")||r.getResponseHeader("Content-Type").includes("text/html"))return console.error(t),nav.hard_go(e,null,n);l=!1}!1===l?a():(L.parseResponse(l,e,t,n),L._debugLog(i,l.debugLog))}),a,null,{headers:n.headers,ignoreAbort:n.ignoreAbort})},_debugLog:function(e,t){window.debuglogGot&&window.debuglogGot(e,t)},parseResponse:function(e,t,n,i){var r=window.al,s=window.nav,l=window.menu,d=window.page,_=e.version,f=e.counters,h=e.notifications,g=e.type,b=e.statsMeta,w=[],y=t.indexOf("community")>=0,k=!1;if(g!==L.RESPONSE_IGNORE){var C;switch(y?(k=!(!window.al||_===r.ver))&&(0,u.statlogsValueEvent)("mvk_version_reload",1,_,r.ver,"old_force_reload_community"):window.al&&_!==r.ver?(0,S.partConfigEnabled)("mvk_lazy_static_reload")?g===L.RESPONSE_ARGUMENTS?a||(a=new A.default({id:"mvk_static_manager",element:document,focusElement:window,triggerEvents:"mouseover mousedown keypress touchstart",idleTimeout:6e5,onIdleCb:function(){(0,u.statlogsValueEvent)("mvk_version_reload",1,_,r.ver,"new_idle_reload"),a.stop(),location.reload()}})).start():((0,u.statlogsValueEvent)("mvk_version_reload",1,_,r.ver,"new_force_reload"),k=!0):((0,u.statlogsValueEvent)("mvk_version_reload",1,_,r.ver,"old_force_reload"),k=!0):!window.menu||e.lm_data&&e.lm_data.lm||l.isMenuHasItems()&&((k=!l.refreshCounters(f))&&(0,u.statlogsValueEvent)("mvk_version_reload",1,_,r.ver,"old_force_reload_change_menu"),l.refreshNotifications(h)),void 0===f||!1===f||y||(0,u.setNotify)(f[T.COUNTERS_POS_MESSAGES]),e.lm_data&&e.lm_data.lm&&(f&&(e.lm_data.counters=f),h&&(e.lm_data.notifications=h)),b&&window.vk&&(window.vk.statsMeta=b),g){case L.RESPONSE_ARGUMENTS:if(k)return s.hard_go(s.cur,null,{replace:!0});var x=e.data;if(C=x&&(0,u.isObject)(x[0])&&x[0]._snackbar){if(Snackbar.init(C),2===C.type)return Stories.opened?void Stories.close():zlayer.opened()?void zlayer.close():void(L.fastNav&&history.back());delete x[0]._snackbar}var I=(0,v.addStaticVersions)(e.static_files||[]);i&&i.onDone&&I.finally((function(){i.onDone.apply(window,x)})),w.push(I.catch((function(){})));break;case L.RESPONSE_REDIRECT:var E=e.location;L.onRedirect(!0,E);var N=e.hard,R=e.frame,M=e.clear,O=e.restore,D=e.replace;if(!R&&window.isNewMail&&L.onBeforeRedirect(E))break;if(M&&s.clear(),(C=e._snackbar)&&(Snackbar.init(C),delete e.snackbar),k||N)s.hard_go(E,null,{replace:D});else if(R){(0,p.setDocumentDomain)();var j=E+(-1==E.indexOf("?")?"?":"&")+"__extra=1",F=(0,u.createIframe)({src:j})}else D&&E===s.prev_cur?history.back():s.go(E,null,{ignore_cur_process:!0,need_restore:O,replace:D});break;case L.RESPONSE_CAPTCHA:var q=e.location,H=e.img,$=e.post,W=e.key;i&&i.onFail?i.onFail(g,q,{location:q,img:H,post:$,key:W}):s.hard_go(q);break;case L.RESPONSE_PAGE:var V=e.lm_data;if(d.need_hard_go=k,V&&V.rdr&&window.al&&r.menu&&(0,u.getW)("vk_wrap")>=614){s.go(V.rdr,null,{replace:!0});break}m.default.getRouter().deactivateAllRoutes(),cur.share&&"destroy"in cur.share&&cur.share.destroy(),(i=i||{}).onPageDone||(i.onPageDone=function(e,n,a,i,o){s.go(t,null,{push_only:!0}),d.set(d.getHash(s),{title:e,html:n,js:a,lm:i,bc:o})});var G=e.title,U=e.html,z=e.js,X=e.body_class,K=e.top_bar,Y=(0,u.ge)("vk_topbar");K&&!Y?(Y=(0,u.ce)("div",{id:"vk_topbar",innerHTML:K}),(0,u.before)(Y,(0,o.$)(".layout"))):(0,u.val)(Y,K),e.env&&e.env.pe&&(window.vk.pe=e.env.pe);var J=(0,v.addStaticVersions)(e.static_files);J.then((function(){i.onPageDone(G,U,z,V,X)})),w.push(J.catch((function(){})));break;case L.RESPONSE_FAILED_AUTH:if(c.SAKIntegration.isIntegrated)return L.save_failed_req(null,t,n,i),L._failed_relogin||L.SAKRelogin(),void(L._failed_relogin=!0);if(i.redirectToLoginPage)return window.location=e.location,!1;if(!L._failed_relogin){var Q=e.location;(0,p.setDocumentDomain)();F=(0,u.createIframe)({src:Q})}L._failed_relogin=!0,L.save_failed_req(F,t,n,i);break;case L.RESPONSE_CONFIRM:var Z=e.data;Z.useNavigation=!0;var ee=(0,P.default)(Z),te=Wd.elem(ee);Popup.open(te,!0);break;case L.RESPONSE_IGNORE:return}Promise.all(w).finally((function(){(0,B._handleResponseExtraPayloads)(null==e?void 0:e.extra)}))}},onReLoginDone:function(){L.repeat_reqs(),L._failed_relogin=!1},SAKRelogin:function(){return c.SAKIntegration.reauth().then((function(e){var t=(void 0===e?{}:e).accessToken;if(t){var n={_sak_embed_at:t};return L.post("/login?act=sak_relogin",n,{onDone:function(){L.onReLoginDone()},onFail:function(){}}).promise}}))},tGetParam:function(){if(L.tStart&&L.tModule){var e=L.tFastRender-L.tStart,t=L.tRestoreRender-L.tStart,n=L.tProcess-L.tStart,a=L.tRender-L.tProcess,i=["/"==L.tModule.substr(0,1)?L.tModule.substr(1):L.tModule,e,t,n,a];for(var o in i)(!i[o]||i[o]<0)&&(i[o]=0);return L.tStart=!1,i.join(",")}},tAlGetParam:function(){if(L.tAlStart&&L.tAlModule){var e=L.tAlProcess-L.tAlStart,t=L.tAlRender-L.tAlProcess,n=["al_"+("/"==L.tAlModule.substr(0,1)?L.tAlModule.substr(1):L.tAlModule),e,t];for(var a in n)(!n[a]||n[a]<0)&&(n[a]=0);return L.tAlStart=!1,n.join(",")}},refreshLinks:function(e,t){if(e){var n=(0,u.geByClass1)("mmi_fv","lm_cont"),a=n&&(0,u.geByClass1)("lfm_item",n),i=(0,u.geByClass1)("mmi_fv","mfoot"),o=i&&(0,u.geByClass1)("lfm_item",i),r=(0,u.ge)("fv_link"),s=(0,u.ge)("menu_fv_link"),l=(0,u.geBySel1)('link[rel="canonical"]');(0,u.attr)(a,"href",e),(0,u.attr)(o,"href",e),(0,u.attr)(r,"href",e),(0,u.attr)(l,"href",(0,u.attr)((0,u.ge)("mcont"),"data-canonical")),window.nav.prev_fv_link&&(0,u.attr)(s,"href",window.nav.prev_fv_link),window.nav.fv_link=e}if(t){var c=(0,u.geByClass1)("mmi_app","lm_cont"),d=c&&(0,u.geByClass1)("lfm_item",c),_=(0,u.geByClass1)("mmi_app","mfoot"),f=_&&(0,u.geByClass1)("lfm_item",_),v=(0,u.ge)("app_link"),h=!!t&&"return nav.app_go(this, event, '"+(0,u.escapeStr)(t)+"');";(0,u.attr)(d,"onclick",h),(0,u.attr)(f,"onclick",h),(0,u.attr)(v,"onclick",h)}}};window.ajax=L}t.default=window.ajax},70675:function(e,t,n){"use strict";n.d(t,{Confirm:function(){return l}});var a=n(11393),i=n(17656),o=n(46950),r=n(49751),s=n(1730);function l(e,t,n,s){void 0===s&&(s={});var l=a.default.preactElemFromTemplate((0,i.default)({id:s.id,class:"Confirm",scrollable:!0,header:{title:s.title||(0,o.getLang)("mobile_warning_header")},on_overlay_click_native:n,content:[e,{class:"Popup__buttons",inner:[(0,r.default)({onClick:t,use_native_onclick:!0,class:"Popup__button",theme:s.theme_accept_btn||"regular",url:s.yes_href,inner:s.yes_label||(0,o.getLang)("mobile_continue")}),(0,r.default)({onClick:n||"Popup.close(this, event)",use_native_onclick:!0,class:"Popup__button",theme:s.theme_close_btn||"secondary",url:s.no_href,inner:s.no_label||(0,o.getLang)("mobile_cancel")})]}]}));return i.default.open(l,!0,{withoutCloning:!0})}window.page&&window.page.onChange((function(){(0,s.$$)(".Confirm").forEach((function(e){return i.default.close(e)}))})),window.Confirm=l},63269:function(e,t){"use strict";var n=function(){function e(){this.routes=[]}e.getRouter=function(){return window.router||(window.router=new e),window.router};var t=e.prototype;return t.addRoute=function(e,t,n){this.routes.push({isActive:!1,test:e,activateCallback:t,deactivateCallback:n})},t.test=function(e){var t=e.test;if(nav.cur)return"function"==typeof t?t(window.nav.cur):t instanceof RegExp?t.test(window.nav.cur):!(!window.nav.cur||"string"!=typeof t)&&window.nav.cur.startsWith(t)},t.deactivateAllRoutes=function(){this.routes=this.routes.map((function(e){return e.isActive=!1,e.deactivateCallback&&e.deactivateCallback(),e}))},t.checkRoutes=function(){var e=this;this.routes=this.routes.map((function(t){var n,a=e.test(t);return a&&!t.isActive&&t.activateCallback&&(n=t.activateCallback()),!a&&t.isActive&&(t.deactivateCallback?t.deactivateCallback():n&&n()),t.isActive=a,t}))},e}();t.default=n,window.Router=n},5606:function(e,t,n){"use strict";n.d(t,{alLoadingFix:function(){return r}});var a=n(86205),i=n(9046),o=n(83652);function r(e,t){t=t||"al_loading";var n=(0,i.geByClass1)(t)||(0,i.ge)(t);if(n){var r;if(!n&&!(0,i.hasClass)("BottomMenu__preloader",n))if("al_loading"!==t||!(null==(r=window)?void 0:r.getComputedStyle(n).getPropertyValue("--content_area_height"))){var s=document.getElementById("m").offsetHeight||0,l=document.getElementById("mfoot")&&document.getElementById("mfoot").offsetHeight||0;e=(0,i.getCh)()-s+l-16}n.style.height=e+"px",n.innerHTML=Wd.html((0,a.default)((0,o.getLoading40Icon)())),(0,i.addClass)(t,n)}}window.alLoadingFix=r},48175:function(e,t){"use strict";t.default=function(e){void 0===e&&(e={});var t=["AudioPlaylistRoot",e.class].filter((function(e){return e})).join(" ");return{attrs:{"data-playlist-id":e.playlist_id},inner:e.inner,class:t}}},42450:function(e,t,n){"use strict";var a=n(85489),i=n(91033),o=n(46950);function r(e){void 0===e&&(e={});var t,n=e.name,r=e.description,s=e.label||e.inner,l=e.type,c=e.checked,u=e.disabled,d=e.on_change||e.onChange,_=e.ariaHiddenLabel?e.ariaHiddenLabel:"true",f="value"in e?e.value:"1",v=[e.class||e.mix,a.default.class("Control",{type:l},"_")],h=e.attrs||[];h=(0,o.extend)({onclick:!0},h),"switcher"===l&&(t="switch");var p=e.name+"_"+f+"_label",m={inner:[{id:e.input_id,class:"Control__native",name:n,value:f,checked:!!c&&"checked",disabled:!!u&&"disabled",type:"switcher"===l?"checkbox":l,onChange:d?["Control._onChange","this",d]:null,"aria-labelledby":s?p:null,role:t,tag:"input"},{class:"Control__icon",tag:"div"},{inner:[{inner:[s],id:p,"aria-hidden":_,tag:"span"},r?{inner:[r],class:"Control__description",tag:"div"}:""],class:"Control__label",tag:"div"}],tag:"div"}.inner;return e.withoutWrap?{inner:[m],class:v,attrs:h,tag:"label"}:(h.role="menuitem",(0,i.default)({inner:[m],tag:"label",class:v,attrs:h}))}t.default=r},34511:function(e,t,n){"use strict";var a=n(11393),i={setChecked:function(e,t){void 0===t&&(t=!0);l(e).checked=t},isChecked:function(e){return l(e).checked}};t.default=i,i._onChange=s;var o=".Control",r=".Control__native";function s(e,t){a.default.handle(t,{$control:e.closest(o),name:e.name,checked:e.checked,value:e.value})}function l(e){return e.$(r)}},3061:function(e,t,n){"use strict";var a=n(9046),i=n(42450),o=n(34511),r=(0,a.extend)(i.default,o.default);t.default=r,window.Control=r},27837:function(e,t,n){"use strict";n.d(t,{RowLabeledSelect:function(){return r}});n(49751),n(81755);var a=n(75506),i=n(85489),o=n(91033);function r(e){return s({anchor:e.anchor,style:e.style,label:e.label,content:(0,a.default)(e)})}function s(e){return(0,o.default)({anchor:e.anchor,url:e.url,style:e.style,content:[l({is_mini:e.is_mini,label:e.label}),c({content:e.content})]})}function l(e){return{inner:[e.label],class:[i.default.class("Row__label",{mini:e.is_mini},"_"),e.class||""].join(" "),tag:"div"}}function c(e){return{inner:[e.content],class:["Row__labeledContent",e.class||""].join(" "),tag:"div"}}},86205:function(e,t,n){"use strict";n.d(t,{SVGIcon:function(){return a.SVGIcon}});var a=n(58457);t.default=a.SVGIcon,window.SVGIcon=a.SVGIcon},93593:function(e,t,n){"use strict";var a=n(85489);t.default=function(e){void 0===e&&(e={});var t=e.on_change,n=e.on_click;return{inner:[{inner:[e.options.map((function(e){return e?{inner:[e.label],attrs:e.attrs,class:"Select__option",value:e.value,selected:e.selected?"selected":null,tag:"option"}:null}))],class:"Select__native",name:e.name,disabled:e.disabled,onchange:e.nativeOnChange?e.onChange:t?["Select._onChange","this",t]:null,onclick:n?["Select._onClick","this",n]:null,required:e.required,tag:"select"}],class:[e.mix||e.class,a.default.class("Select",{disabled:e.disabled},"_")],tag:"div"}}},75506:function(e,t,n){"use strict";var a=n(93593);t.default=a.default},22828:function(e,t,n){"use strict";n.d(t,{Separator:function(){return i}});var a=n(46950);function i(e){return void 0===e&&(e={}),{class:(0,a.classNames)("Separator",{"Separator--hideOnDesktop":e.hideOnDesktop,"Separator--noOffset":e.noOffset,"Separator--gray":e.gray},e.className||e.class),tag:"div"}}t.default=i},80908:function(e,t,n){"use strict";var a=n(22828);t.default=a.default},78673:function(e,t,n){"use strict";var a=n(85489);t.default=function(e){var t=[a.default.class("Slider",{snapping:!!e.snapping}),e.class||e.mix],n=e.snapping?null:["Slider._onWheel","event","this"];return{inner:[{inner:[{inner:[e.inner],class:"Slider__line",role:"presentation",tag:"div"}],attrs:e.attrs,class:["Slider__scroll","_preventMenuOpen"],onwheel:n,onScroll:e.onScroll,tag:"div"}],class:t,id:e.id,tag:"div"}}},18960:function(e,t,n){"use strict";n.d(t,{getElements:function(){return d},getCurrentElementIndex:function(){return _},nextElem:function(){return f},prevElem:function(){return v},scrollToElem:function(){return u},_onWheel:function(){return h}});var a=n(1730),i=n(9046),o=n(62691);window.Slider={scrollToElem:u,nextElem:f,prevElem:v},Slider._onWheel=h,onDOMReady(m),onDOMReady((function(){onBodyResize(p)}));var r=".Slider",s=".Slider--snapping",l=".Slider__scroll",c=".Slider__line";function u(e,t,n){if(void 0===t&&(t=!1),void 0===n&&(n="center"),e){var a=e.closest(l),o=e.offsetLeft;"center"===n&&(o-=a.offsetWidth/2-e.offsetWidth/2);var r=0;if(window.getComputedStyle){var s=getComputedStyle(e);(s.scrollMarginLeft||s.scrollSnapMarginLeft)&&(r+=(0,i.toInt)(s.scrollMarginLeft||s.scrollSnapMarginLeft))}t&&a.scrollTo?((0,i.domData)(a,"left",o-r),a.scrollTo({left:o-r,behavior:"smooth"})):a.scrollLeft=o-r}}function d(e){return e=(0,i.ge)(e),(0,a.$)(c,e).childNodes}function _(e,t){var n=(0,a.$)(l,e);return t||(t=d(e)),n.scrollWidth-n.offsetWidth<=n.scrollLeft?t.length-1:Array.from(t).map((function(e,t){return{index:t,scrollLeft:Math.abs(e.offsetLeft-n.scrollLeft)}})).sort((function(e,t){return e.scrollLeft-t.scrollLeft}))[0].index}function f(e,t,n){void 0===t&&(t=!1);var a=d(e=(0,i.ge)(e)),o=_(e,a),r=a[o+1];f&&(u(r,t,n),e.setAttribute("data-current",(o+1).toString()))}function v(e,t,n){void 0===t&&(t=!1);var a=d(e=(0,i.ge)(e)),o=_(e,a),r=a[o-1];r&&(u(r,t,n),e.setAttribute("data-current",(o-1).toString()))}function h(e,t){e.preventDefault();var n=e.deltaX,a=e.deltaY;Math.abs(n)>Math.abs(a)&&(t.scrollLeft+=n)}function p(){var e=(0,a.$$)(s);Array.from(e).forEach((function(e){var t=(0,a.$)(l,e);t.scrollLeft=t.scrollLeft}))}function m(){(o.default.ios||o.default.msie_edge)&&(onDOMReady(b),window.page&&window.page.onChange(b),window.MutationObserver&&onDOMReady((function(){document.body&&new MutationObserver(g).observe(document.body,{subtree:!0,childList:!0})})))}function g(e){e.forEach((function(e){e.addedNodes.forEach((function(e){e.nodeType===Node.ELEMENT_NODE&&e.$$(r).forEach(w)}))}))}function b(){(0,a.$$)(r).forEach(w)}function w(e){var t=getComputedStyle(e),n=Number(t.paddingTop.replace("px","")),a=Number(t.paddingBottom.replace("px",""));e.style.overflow="hidden",e.style.height=e.offsetHeight-n-a+"px",e.$(l).style.paddingBottom="20px"}},10729:function(e,t,n){"use strict";n.d(t,{getCurrentElementIndex:function(){return o.getCurrentElementIndex},getElements:function(){return o.getElements}});var a=n(78673),i=n(9046),o=n(18960);t.default=a.default,window.Slider=a.default,(0,i.extend)(a.default,{scrollToElem:o.scrollToElem,nextElem:o.nextElem,prevElem:o.prevElem,_onWheel:o._onWheel})},28054:function(e,t,n){"use strict";var a=n(85489),i=n(11393),o=n(39423),r=n(49751),s=n(80908),l=n(76068);t.default=function(e){void 0===e&&(e={});var t=null;e.icon_raw?t=e.icon_raw:e.icon&&(t=(0,o.Icon)({class:"SplashScreen__icon",icon:e.icon,svg:e.is_svg_icon}));var n=i.default.wrap(e.more_text);"primary"!==e.more_type&&"regular"!==e.more_type&&"outlineMono"!==e.more_type||(n=(0,r.default)({inner:[e.more_text],theme:e.more_type,url:e.more_url,onClick:e.more_onclick,attrs:{ontouchend:e.more_ontouchend},use_native_onclick:e.more_native_onclick}),e.more_url=null);var c=[e.class,a.default.class("SplashScreen",e.mix||{},"_")];e.small&&c.push("SplashScreen--small");return[e.separator?(0,s.default)({hideOnDesktop:!e.separator_desktop}):null,{inner:[e.inner||[e.before,t,e.title?{inner:[i.default.wrap(e.title)],class:"SplashScreen__title",tag:"div"}:null,e.text?{inner:[i.default.wrap(e.text)],class:[e.text_class,"SplashScreen__text"],tag:"div"}:null,e.more_text?(0,l.CustomTag)({inner:[n],class:"SplashScreen__more",tag:e.more_url?"a":"div",href:e.more_url}):null,e.action_text?{inner:[{inner:[i.default.wrap(e.action_text)],class:"SplashScreen__actionButton",href:e.action_url,tag:"a"}],class:"SplashScreen__action",tag:"div"}:null]],class:c,tag:"div"}].filter((function(e){return e}))}},94163:function(e,t,n){"use strict";var a=n(28054);t.default=a.default},55208:function(e,t,n){"use strict";var a=n(85489),i=n(46950),o=n(11393);t.default=function(e){void 0===e&&(e={});var t=e.style||[],n=e.class||e.mix,r=e.prefix,s=e.postfix,l=e.icon,c=function(e){var t=[];(0,i.isArray)(e.on_key_down)?(e.on_key_down.push("event"),t=e.on_key_down):e.on_key_down&&(t=[e.on_key_down,"event"]);var n=e.on_key_press,a="function"==typeof e.on_change,r="function"==typeof e.onblur,s="function"==typeof e.onfocus,l=(0,i.concatValues)("TextInput.onChange(event);",o.default.isAttrHandler("oninput",e.on_change)?o.default.prepareHandler(e.on_change):a?"":e.on_change),c=(0,i.concatValues)("TextInput.onBlur(event, this);",o.default.isAttrHandler("onblur",e.onblur)?o.default.prepareHandler(e.onblur):r?"":e.onblur),u=(0,i.concatValues)("TextInput.onFocus(event, this);",o.default.isAttrHandler("onfocus",e.onfocus)?o.default.prepareHandler(e.onfocus):s?"":e.onfocus);a&&(l=(0,i.preactCallback)([[l],[e.on_change]]));r&&(c=(0,i.preactCallback)([[l],[e.onblur]]));s&&(u=(0,i.preactCallback)([[l],[e.onfocus]]));return{class:"TextInput__native",id:e.id,type:e.type,name:e.name,value:e.value,spellcheck:e.spellcheck+"",placeholder:o.default.wrap(e.placeholder),autocapitalize:!1===e.autocapitalize?"off":null,autocomplete:!1===e.autocomplete?"off":e.autocomplete,tabindex:e.tabindex,readonly:e.readonly,disabled:e.disabled,oninput:l,onkeydown:t,onkeypress:n,onblur:c,onfocus:u,autofocus:e.autofocus,maxlength:e.maxlength,pattern:e.pattern,required:e.required,inputmode:e.inputmode,"aria-describedby":e["aria-describedby"],tag:"input"}}(e),u=e.error;u&&(t.error=!0);var d=!(r||s||l||"string"==typeof u);return{inner:[{inner:[d?c:[l?{inner:[l],class:"TextInput__icon",tag:"div"}:null,r?{inner:[r.text],class:[a.default.class("TextInput__prefix",{rightPadding:r.with_right_padding,gray:r.gray},"_"),r.mix],tag:"div"}:null,{inner:[c],class:"TextInput__nativeWrap",tag:"div"},s?{inner:[s.text],class:"TextInput__postfix",tag:"div"}:null]],class:"TextInput__content",tag:"div"},"string"==typeof u?{inner:[u],class:"TextInput__errorLabel",tag:"span"}:null],role:"presentational",class:[a.default.class("TextInput",{style_stretch:t.stretch,prefixed:!!r,withIcon:!!l,hidden:"hidden"===e.type,error:t.error,native:d,disabled:!!e.disabled||!!e.readonly},"_"),n],onclick:e.on_click,tag:"label"}}},71221:function(e,t,n){"use strict";n.d(t,{setPrefix:function(){return _},getValue:function(){return d},getNative:function(){return f}});var a=n(1730),i=n(33713),o=n(9046),r=n(55208),s=n(22770);Object.assign(r.default,{setPrefix:_,getValue:d,filter:function(e,t,n){switch(e){case"number":var a=(0,o.val)(n)+String.fromCharCode(t.which);(0,i.isNumber)(parseInt(a))||(0,o.cancelEvent)(t),(0,o.val)(n,(0,o.val)(n).split("").filter((function(e){return(0,i.isNumber)(+e)})).join(""))}},onFocus:function(e,t){var n=t.closest(l);setTimeout((function(){n.classList.add("TextInput--focused")}))},onBlur:function(e,t){var n,i=t.closest(l),r=null==(n=e.relatedTarget)?void 0:n.closest(l),u=(0,a.$)(c,i);if(i===r&&!(0,s.isTabbing)())return void u.focus();if(setTimeout((function(){var e;"BUTTON"===(null==(e=document.activeElement)?void 0:e.tagName)&&i.contains(document.activeElement)&&(0,o.addEvent)(document.activeElement,"blur",v)})),r===i)return;setTimeout((function(){i.classList.remove("TextInput--focused")}))},onChange:function(e){var t=e.target.value;e.target.closest(l).classList.toggle("TextInput--notEmpty",!!t)}});var l=".TextInput",c=".TextInput__native",u=".TextInput__prefix";function d(e){return e.$(c).value}function _(e,t){e.$(u).innerText=t}function f(e){return(0,a.$)(c,e)}function v(e){var t=e.target.closest(l);(0,o.removeEvent)(e.target,"blur",v),t&&t.classList.remove("TextInput--focused")}},81755:function(e,t,n){"use strict";n.d(t,{getValue:function(){return i.getValue},setPrefix:function(){return i.setPrefix},getNative:function(){return i.getNative}});var a=n(55208),i=n(71221);t.default=a.default,window.TextInput=a.default},16365:function(e,t,n){"use strict";var a=n(61124),i=n(49751),o=n(59219);t.default=function(e){var t=function(e){var t=e.buttons,n=Object.keys(t).map((function(n){var a=t[n],o=a.theme;o="yes"!==n||o?"secondary":"regular";var r={"data-key":n,"data-force":e.force?1:0};return(0,i.default)({inner:[a.text],theme:o,url:a.href,attrs:r,on_click:a.onClick||"ConfirmPopup.onButtonClick(this, event);",use_native_onclick:!0})}));return(0,o.BtnStack)({inner:[n]})}(e),n={title:e.title};return(0,a.default)({inner:[Wd.wrap(e.text),{inner:[t],class:"Popup__buttons",tag:"div"}],class:"ConfirmPopup",header:n,scrollable:!0,attrs:' data-use-navigation="'+!!e.useNavigation+'"',on_overlay_click_native:e.onOverlayClick||"ConfirmPopup.onOverlayClick(this, event);"})}},63040:function(e,t,n){"use strict";var a=n(85489),i=n(46950),o=n(80540);t.default=function(e){void 0===e&&(e={});var t=a.default.class("AlbumInfoRow",{withoutBottomBorder:e.withoutBottomBorder});return{inner:[{inner:[(0,o.Avatar)({mode:(0,i.getAvatarMode)({id:e.id,name:e.name}),backgroundTheme:e.id,text:e.name,size:40,src:e.avatar})],class:"AlbumInfoRow__avatar",href:e.author_url,onclick:"cancelEvent(event); nav.go(this);",tag:"a"},{inner:[{inner:[e.title],class:"AlbumInfoRow__title",href:e.url,tag:"a"},{inner:[e.subtitle],class:"AlbumInfoRow__subtitle",tag:"div"}],class:"AlbumInfoRow__content",tag:"div"}],class:t,onclick:"nav.go('"+e.url+"')",tag:"div"}}},37665:function(e,t,n){"use strict";var a=n(63040);t.default=a.default},97335:function(e,t,n){"use strict";var a=n(86205),i=n(85489),o=n(35909),r=n(36706);t.default=function(e){var t,n,s=e.album,l=s.url,c=s.title,u=s.photos_count_label,d=s.restriction,_="";if(d){var f={};f[d.type]=!0,_=i.default.class("AlbumItem__restriction",f)}if(t=e.emptyIcon?e.emptyIcon:(0,a.default)({icon:(0,r.getCameraOutline56Icon)()}),d&&"geo"===d.type)n={inner:[{inner:[(0,o.Icon56DoNotDisturbOutline)()],class:_,tag:"div"}],class:"AlbumItem__thumb",tag:"div"};else{var v=[i.default.class("AlbumItem__thumb",{blur:d&&"blur"===d.type})];n={inner:[!s||s.thumb||d?null:{inner:[t],class:"AlbumItem__emptyThumbIcon",tag:"div"},d&&d.type?{inner:[(0,o.Icon56HideOutline)()],class:_,tag:"div"}:null],class:v,"data-thumb-id":s.thumb_id,style:"background-image: url("+s.thumb+")",tag:"div"}}return{inner:[{inner:[n],class:"AlbumItem__thumbWrap",tag:"div"},{inner:[{inner:[c],class:"AlbumItemInfo__title",tag:"div"},{inner:[u],class:"AlbumItemInfo__subtitle",tag:"div"}],class:"AlbumItemInfo",tag:"div"}],href:l,class:"AlbumItem al_album",onclick:e.onClick,"data-count":s.count,tag:"a"}}},1460:function(e,t,n){"use strict";n.d(t,{getDataFromDOM:function(){return o}});var a=n(9046),i=n(1730);function o(e){if(!e.classList.contains("AlbumItem"))return{};var t=(0,a.val)((0,i.$)(".AlbumItemInfo__title",e))||"",n=(0,a.val)((0,i.$)(".AlbumItemInfo__subtitle",e))||"",o=e.getAttribute("href"),r=(0,i.$)(".AlbumItem__thumb",e),s=/url\("(.*)"\)/.exec(r.style.backgroundImage),l=!!s&&s[1],c=(0,i.$)(".AlbumItem__restriction",e),u=!1;return c&&(c.classList.contains("AlbumItem__restriction--blur")?u={type:"blur"}:c.classList.contains("AlbumItem__restriction--geo")&&(u={type:"geo"})),{album:{title:Wd.wrap(t),photos_count_label:n,url:o,thumb:l,restriction:u},onClick:e.getAttribute("onclick")}}},28495:function(e,t,n){"use strict";n.d(t,{getDataFromDOM:function(){return i.getDataFromDOM}});var a=n(97335),i=n(1460);t.default=a.default},10310:function(e,t,n){"use strict";var a=n(54463),i=n(7778),o=n(94163),r=n(27109),s=n(85489);t.default=function(e){void 0===e&&(e={});var t=window.lang,n=e.title||"",l=e.description||"",c=e.pretag,u=e.buttons||{},d=(e.photos||[]).map((function(e){return(0,i.default)({photo:e})})),_=null;if(e.is_loading)_=(0,r.default)({mix:"al_loading",type:"pageLoader"});else{if(!d.length)return(0,o.default)({separator:!0,more_text:e.add_url&&e.is_owner?t.mobile_photos_placeholder_album_action:null,more_type:"primary",more_url:e.add_url,text:t.mobile_photos_placeholder_album_text});_={inner:[d],class:"AlbumPage__photos photos_page",tag:"div"}}var f=s.default.class("AlbumPage",{withoutDescription:!l});return{inner:[(0,a.default)({inner:[{inner:[{inner:[n],class:"AlbumPage__title",tag:"h2"},l&&{inner:[l],class:"AlbumPage__description",tag:"span"}],class:"AlbumPage__info",tag:"div"},u.prev,_,u.more,c]})],class:f,tag:"div"}}},69336:function(e,t,n){"use strict";n.d(t,{initAlbumPage:function(){return c}});var a,i,o,r,s=n(9046),l=n(1730);function c(){(0,l.$)(".AlbumPage")&&(a=!1,i=!1,o=!1,r=!1,(0,s.onBodyScroll)(u),(0,s.onBodyScroll)(!0))}function u(){if(a||(a=(0,l.$)(".AlbumPage__title"),i=(0,s.getH)(a)),o||(o=(0,l.$)(".header__title",(0,l.$)("#mhead"))),!o)return(0,s.onBodyScroll)("__clear",u);r||(r=(0,l.$)(".header__text",o));var e=Math.min(40,Math.max(0,(0,s.getY)(a)-i-(0,s.scrollTop)()));s.setStyle.transform(r,1,[0,e]),o.classList.toggle("header__title--initial-position",0===e)}},3302:function(e,t,n){"use strict";n.d(t,{initAlbumPage:function(){return i.initAlbumPage}});var a=n(10310),i=n(69336),o=n(63269);o.default.getRouter().addRoute(/\/(?:album|tag)(-?\d+(?:_\d+)?)/,i.initAlbumPage),o.default.getRouter().addRoute(/\/(?:attachments\?act=choose_photo).*(?:album|tag)=(-?\d+(?:_\d+)?)/,i.initAlbumPage),t.default=a.default},39573:function(e,t,n){"use strict";var a=n(28495),i=n(54463),o=n(46950),r=n(10729);t.default=function(e){void 0===e&&(e={});var t=window.lang,n=e.items||[],s=e.count||null,l=e.emptyIcon||null,c=e.href,u=e.header||t.mobile_photos_block_albums_title,d=n.map((function(e){return{inner:[(0,a.default)({album:e,emptyIcon:l})],class:"AlbumsBlock__album",tag:"div"}})),_={text:(0,o.getLang)("mobile_subheader_show_all"),class:"al_albums",url:c},f=(0,r.default)({inner:[{inner:[d],class:"AlbumsBlock__albums",tag:"div"}]});return{inner:[{name:"albums",tag:"a"},(0,i.default)({title:u,count:s,corner:_,content:f,no_border:!0,noShadow:!0})],class:"AlbumsBlock",tag:"div"}}},98418:function(e,t,n){"use strict";var a=n(39573);t.default=a.default},36444:function(e,t,n){"use strict";var a=n(94163),i=n(98418),o=n(12479),r=n(28495),s=n(80908);t.default=function(e){var t=window.lang,n=e.pretag,l=e.buttons||{},c=e.is_owner,u=[],d=e.section,_=e.albums,f=e.albums_count,v=e.albums_href,h=e.photos,p=e.photos_count,m=e.new_tags_photos,g=e.new_tags_count,b=e.new_tags_href,w=e.emptyIcon||null;if("all"===d){var y=_.map((function(e){return(0,r.default)({album:e,is_owner:c,emptyIcon:w})}));y&&u.push({inner:[l.prev?l.prev:null,{inner:[y],class:"AlbumsPage__items album_items photos_page bl_cont",tag:"div"},l.more?l.more:null],tag:"div"})}else _&&_.length&&u.push((0,i.default)({items:_,count:f,href:v})),m&&m.length&&u.push((0,o.default)({label:t.mobile_photos_block_tags_title,items:m,count:g,href:b})),h&&h.length&&u.push((0,o.default)({autoload:!0,items:h,count:p,buttons:l}));if(!u.length){var k=c?t.mobile_albums_can_store_photos:t.mobile_albums_no_albums;return(0,a.default)({separator:!0,text:k,more_type:"primary",more_text:e.add_url?t.mobile_photos_placeholder_album_action:null,more_url:e.add_url})}return{inner:["all"!==d?(0,s.default)({hideOnDesktop:!0}):null,{inner:[u],class:"upanel bl_cont",tag:"div"},n],class:"AlbumsPage PageBlock PageBlock_bottomPadding",tag:"div"}}},54901:function(e,t,n){"use strict";var a=n(36444);t.default=a.default},42629:function(e,t,n){"use strict";var a=n(54463),i=n(7778),o=n(46950);t.default=function(e){var t=window.lang,n=e.items||[],r=e.count||null,s=e.buttons||{},l=e.href,c=e.hide_header||!1,u=e.label||t.mobile_photos_block_photos_title,d="PhotosBlock",_="PhotosBlock__photos";!!e.autoload&&(d+=" PhotosBlock--autoload",_+=" photos_page");var f={inner:[n.map((function(e){return(0,i.default)({photo:e})}))],class:_,tag:"div"},v=null;return l&&(v={text:(0,o.getLang)("mobile_subheader_show_all"),class:"al_empty",url:l}),{inner:[{name:"photos",tag:"a"},(0,a.default)({inner:[{inner:[s.prev,f,s.more],tag:"div"}],title:c?null:u,corner:v,count:r,noShadow:!0,no_border:!0})],class:d,tag:"div"}}},12479:function(e,t,n){"use strict";var a=n(42629);t.default=a.default},12163:function(e,t,n){"use strict";var a=n(85489),i=n(35909);t.default=function(e){var t,n=e.photo,o=n.restriction;if(o&&"block"===o.type)t={inner:[{inner:[(0,i.Icon56DoNotDisturbOutline)()],class:"PhotosPhotoItem__restriction PhotosPhotoItem__restriction--doNotDisturb",tag:"div"}],class:"_image PhotosPhotoItem__photo",tag:"div"};else{var r=["_image",a.default.class("PhotosPhotoItem__photo",{blur:o&&"blur"===o.type})];t={inner:[o&&o.type?{inner:[(0,i.Icon56HideOutline)()],class:"PhotosPhotoItem__restriction PhotosPhotoItem__restriction--hide",tag:"div"}:null],style:"background-image: url("+n.src+")",attrs:n.attrs,class:r,tag:"div"}}return{inner:[t],href:n.href,class:"PhotosPhotoItem "+n.class,onclick:n.onclick,tag:"a"}}},7778:function(e,t,n){"use strict";var a=n(12163);t.default=a.default},43088:function(e,t,n){"use strict";n.d(t,{_PhotoviewPage_tags:function(){return f}});var a=n(54463),i=n(37665),o=n(46950),r=n(49751),s=n(59219),l=n(3061),c=n(27109),u=n(24969);function d(e){var t="wi_like_wrap";e.liked_people||(t+=" is_empty");var n="PhotoviewPage__description";return e.photo.description||(n+=" PhotoviewPage__description--empty"),{inner:[e.photo.caption?{inner:[Wd.wrap(e.photo.caption)],class:"PhotoviewPage__caption",tag:"div"}:null,{inner:[Wd.wrap(e.photo.description)],class:n,tag:"div"},{inner:[e.liked_people?e.liked_people:null],class:t,tag:"div"},e.buttons?{inner:[{inner:[e.buttons],class:"wi_buttons",tag:"div"}],class:"wi_buttons_wrap",tag:"div"}:null,e.author,e.replies],class:"PhotoviewPage__footer",tag:"div"}}function _(e){var t=window.lang;return{inner:[{inner:[e.edit_data.rotate.can_rotate?(0,s.BtnStack)({inner:[(0,r.default)({inner:[t.mobile_photos_edit_rotate_left],url:e.edit_data.rotate.left,stretch:!0}),(0,r.default)({inner:[t.mobile_photos_edit_rotate_right],url:e.edit_data.rotate.right,stretch:!0})],nowrap:!0}):null,{inner:[{inner:[t.mobile_photos_edit_desc_label],class:"fi_label",tag:"dt"},{inner:[{inner:[e.photo.description],name:"text",class:"textfield",rows:"4",tag:"textarea"}],class:"iwrap",tag:"dd"}],class:"fi_row",tag:"dl"},{inner:[{inner:[t.mobile_photos_edit_album_label],class:"fi_label",tag:"dt"},{inner:[{inner:[e.edit_data.albums.map((function(e){return{inner:[e.name],selected:e.selected?"selected":null,value:e.id,tag:"option"}}))],name:"aid",tag:"select"},{inner:[(0,l.default)({withoutWrap:!0,name:"cover",label:t.mobile_photos_edit_cover_label,type:"checkbox"})],class:"fi_subrow",tag:"div"}],class:"iwrap",tag:"dd"}],class:"fi_row",tag:"dl"},{inner:[(0,s.BtnStack)({inner:[(0,r.default)({inner:[t.mobile_photos_edit_save_btn],type:"submit"}),(0,r.default)({inner:[t.mobile_cancel],theme:"link",url:e.edit_data.back_url})]})],class:"fi_row",tag:"div"}],action:e.edit_data.action,method:"post",tag:"form"}],class:"form_item",tag:"div"}}function f(e){return void 0===e&&(e=[]),{inner:[Object.keys(e).map((function(t){return{inner:[{class:"fill",tag:"div"}],class:"pv_tag",id:"pv_tag"+t,style:function(e){if(!(0,o.isArray)(e))return"";var t=e[0];return(0,o.isArray)(t)?"left: "+t[0]+"%; top: "+t[1]+"%; width: "+t[2]+"%; height: "+t[3]+"%":""}(e[t]),tag:"div"}}))],class:"PhotoviewPage__tags",tag:"div"}}t.default=function(e){void 0===e&&(e={});var t=e.info||{},n=e.photo||{},r=e.is_loading||!1,s=e.navigation_buttons||{},l=(0,o.concatValues)("PhotoviewPage ",e.class);e.info&&(e.author=(0,i.default)({url:t.url,author_url:t.author_url,avatar:t.avatar,name:t.name,id:t.id,title:t.title,subtitle:t.subtitle,withoutBottomBorder:!e.has_replies})),e.photo||(e.photo={}),e.photo.description||(e.photo.description="");var v,h="",p=null;r&&(l=(0,o.concatValues)(l," PhotoviewPage--skeleton"),n.width?h+=" width"+e.width+"px;":p=(0,c.default)({mix:"al_loading",type:"pageLoader"}));var m=["PhotoviewPage__photo"];e.photo.restriction&&("block"===e.photo.restriction.type?m.push("PhotoviewPage__photo--block"):"blur"===e.photo.restriction.type&&m.push("PhotoviewPage__photo--blur")),v=[{src:n.src,style:h,tag:"img"},f(e.tags)];var g,b=!!e.photo.restriction;return b&&((g=e.photo.restriction).width=e.width,g.height=e.height||e.width),(0,a.default)({inner:[{inner:[{inner:[p||{inner:[v],class:m,href:n.href,tag:"a"},{inner:[(0,u.default)(g)],class:"PhotoviewPage__restrictedInfo",style:b?"":"display: none;",tag:"div"},s],class:"PhotoviewPage__thumb",tag:"div"},e.edit_mode?_(e):d(e)],id:e.photo.id,tag:"div"}],class:l})}},94374:function(e,t,n){"use strict";n.d(t,{_PhotoviewPage_tags:function(){return a._PhotoviewPage_tags}});var a=n(43088);t.default=a.default},47684:function(e,t,n){"use strict";var a=n(85489),i=n(94163),o=n(35909);t.default=function(e){void 0===e&&(e={});var t={},n=e.raw||"",r=e.hash||"",s=e.text||"";"album"===(e.attachment_type||"")&&(e.height-=60),e.type&&"blur"!==e.type||(e.width>=250&&e.height>=250?e.type="blurWithText":e.type="blur"),("blur"===e.type||e.only_icon)&&(delete e.button,delete e.title),e.type&&(t[e.type]=!0);var l,c=a.default.class("PostPhotoRestriction",t);"blur"!==e.type&&"blurWithText"!==e.type||(l=e.width<100||e.height<100?(0,o.Icon28HideOutline)():(0,o.Icon56HideOutline)()),"block"===e.type&&(!e.forceText&&(e.width<300||e.height<250)&&(delete e.title,delete e.text),l=e.width<100||e.height<100?(0,o.Icon28BlockOutline)():(0,o.Icon56DoNotDisturbOutline)()),l={inner:[l],class:"SplashScreen__icon",tag:"div"},"block"!==e.type||e.title||(e.title=e.text);var u="PostPhotoRestriction.clear(this, event, '"+s+"', '"+e.button+"', '"+n+"', '"+r+"')";return{inner:[{inner:[(0,i.default)({title:e.title,icon_raw:l,more_text:e.button,more_type:"outlineMono",more_onclick:u,more_ontouchend:u,more_native_onclick:!0})],class:"PostPhotoRestriction__splash",tag:"div"}],class:c,tag:"div"}}},59809:function(e,t,n){"use strict";n.d(t,{clear:function(){return f},onClear:function(){return c},onClearConfirm:function(){return v},onClearDecline:function(){return h},isCleared:function(){return d}});var a=n(9046),i=n(3226),o=n(1730),r=n(61124),s=n(49751),l=n(70675),c=(0,i.default)(),u={};function d(e){var t=/([a-z]*)(-?\d+)?(?:_(-?\d+))?/.exec(e)[2];return!!u[t]||!!u[e]}nav.onBeforeGo((function(){(0,o.$$)(".Confirm[id^=restr]").forEach((function(e){h(e.id)}))}));var _={};function f(e,t,n,i,o,r){if(t&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation()),r){e&&s.default.setLoading(e,!0,"white");var c="restr_"+(0,a.srand)();if(e){var u=e.closest(".PostPhotoRestriction");(0,a.domData)(u,"clear-id",c)}return function(e,t,n,a,i){window.clog("[PostPhotoRestriction] Show confirm to unblur "+a),(0,l.Confirm)(t,"PostPhotoRestriction.onClearConfirm('"+e+"', '"+a+"', '"+i+"')","PostPhotoRestriction.onClearDecline('"+e+"')",{id:e,ok_text:n})}(c,n,i,o,r),new Promise((function(e,t){_[c]={resolve:e,reject:t}}))}window.clog("[PostPhotoRestriction] No hash was provided")}function v(e,t,n){r.default.close((0,a.ge)(e)),window.ajax.post(t+"?act=unblur&hash="+n,{},{onDone:function(n){_[e]&&(_[e].resolve({result:!0,isFullyAvailable:n}),delete _[e]);var i=(0,o.$)('[data-clear-id="'+e+'"]');if(i){var r=(0,o.$)(".SplashScreen__more .Btn",i);s.default.setLoading(r,!1),i.classList.add("PostPhotoRestriction--clear")}else window.clog("[PostPhotoRestriction] Can't find restriction el with clear id "+e);var l=/([a-z]*)(-?\d+)?(?:_(-?\d+))?/.exec(t),d=l[2],f=l[3],v=[];n?(v.push.apply(v,(0,o.$$)('.thumb_map_img--blur[data-id^="'+d+'"]')),v.push.apply(v,(0,o.$$)('.thumb_map_img--blur[href^="/photo'+d+'"]'))):(v.push((0,o.$)('.thumb_map_img--blur[data-id="'+d+"_"+f+'"]')),v.push((0,o.$)('.thumb_map_img--blur[href^="/photo'+d+"_"+f+'"]'))),v.forEach((function(e){if(e){e.classList.remove("thumb_map_img--blur");var t=(0,o.$)(".PostPhotoRestriction--blur,.PostPhotoRestriction--blurWithText",e);(0,a.re)(t)}})),n&&(u[""+d]=!0),u[t]=!0,c(t);var h=[];n?h.push.apply(h,(0,o.$$)('.PhotosPhotoItem__photo[data-id^="'+d+'"]')):h.push((0,o.$)('.PhotosPhotoItem__photo[data-id="'+t.replace("photo","")+'"]')),h.forEach((function(e){if(e){e.classList.remove("PhotosPhotoItem__photo--blur");var t=(0,o.$)(".PhotosPhotoItem__restriction",e);(0,a.re)(t)}}));var p=[];n?p.push.apply(p,(0,o.$$)('.AlbumItem__thumb--blur[data-thumb-id^="'+d+'"]')):p.push((0,o.$)('.AlbumItem__thumb--blur[data-thumb-id="'+t.replace("photo","")+'"]')),p.forEach((function(e){if(e){e.classList.remove("AlbumItem__thumb--blur");var t=(0,o.$)(".AlbumItem__restriction",e);(0,a.re)(t)}})),setTimeout((function(){(0,a.remove)(i)}),500)}})}function h(e){var t=(0,o.$)('[data-clear-id="'+e+'"]'),n=t&&(0,o.$)(".SplashScreen__more .Btn",t);_[e]&&(_[e].resolve({result:!1}),delete _[e]),r.default.close((0,a.ge)(e)),n&&s.default.setLoading(n,!1)}},24969:function(e,t,n){"use strict";var a=n(47684),i=n(59809),o=(0,n(9046).extend)(a.default,{clear:i.clear,onClearConfirm:i.onClearConfirm,onClearDecline:i.onClearDecline,isCleared:i.isCleared,onClear:i.onClear});window.PostPhotoRestriction=o,t.default=o},93386:function(e,t,n){"use strict";var a=n(35909),i=n(46950);t.default=function(e){void 0===e&&(e={});var t=null;e.bestFriendsOnly&&(t=(0,i.getLang)("mobile_wall_post_privacy_best_friends")),e.friendsOnly&&(t=(0,i.getLang)("mobile_wall_post_privacy_friends"));var n=e.bestFriendsOnly||e.friendsOnly?{inner:[(0,a.Icon12ChevronOutline)()],class:"PostPrivacyLabel__icon",tag:"div"}:null;return t||n?{inner:[t,n],class:(0,i.classNames)("PostPrivacyLabel",{"PostPrivacyLabel--friendsOnly":e.friendsOnly,"PostPrivacyLabel--bestFriendsOnly":e.bestFriendsOnly},"WithPostHeaderSubtitleDotSeparator"),onClick:e.onClick,attrs:e.attrs,tag:"div"}:null}},82408:function(e,t,n){"use strict";n.d(t,{toQueryString:function(){return r}});var a=n(17999),i={},o=function(e){if(i[e])return e;try{return encodeURIComponent(e)}catch(e){return""}};function r(e,t){var n=[];for(var i in e)if(e.hasOwnProperty(i)&&null!=e[i]&&!(0,a.isFunction)(e[i]))if((0,a.isArray)(e[i]))for(var r=0,s=0,l=e[i].length;r<l;++r)null==e[i][r]||(0,a.isFunction)(e[i][r])||(n.push(o(i)+"["+s+"]="+o(e[i][r])),++s);else n.push(o(i)+"="+o(e[i]));return t||n.sort(),n.join("&")}},72864:function(e,t,n){"use strict";n.d(t,{default:function(){return s}});var a=n(70793),i=n(36557),o=n(89854),r=browser.iphone||browser.ipad||browser.ipod;function s(e){this.started=!1,this.is_idle=!0,this.activeTimeStart=null,this.cbActiveB=this.cbActive.bind(this),this.cbInactiveB=this.cbInactive.bind(this),this.onVisiblityChange=this.onVisiblityChange.bind(this),this.opts=extend({triggerEvents:"mousemove keydown",onIdleCb:function(){},onUnIdleCb:function(){},focusElement:e.element,element:null,idleTimeout:3e4},e)}function l(e,t,n){(0,i.isMvk)()?window.addEvent(e,t,n,{passive:!0}):window.addEvent(e,t,n)}function c(e,t,n){(0,i.isMvk)()?window.removeEvent(e,t,n,{passive:!0}):window.removeEvent(e,t,n)}function u(){return document.visibilityState||document.webkitVisibilityState}function d(){var e="visibilitychange";return document.visibilityState||(document.webkitVisibilityState?e+="webkit":e=""),e}extend(s.prototype,a.default.prototype),extend(s.prototype,{stop:function(){this.started=!1,c(this.opts.element,this.opts.triggerEvents,this.cbActiveB),(0,i.isMvk)()&&this._isTopLevel()&&d()&&c(document,d(),this.onVisiblityChange),(0,i.isMvk)()&&r||(c(this.opts.focusElement,"focus",this.cbActiveB),c(this.opts.focusElement,"blur",this.cbInactiveB)),clearTimeout(this.setIdleTo),clearTimeout(this.checkIdleCbTo),clearTimeout(this.sendCbTO),this.is_idle=!0,this.opts.parentManager&&this.opts.parentManager.off("idle",this.cbInactiveB)},idle:function(e){this.is_idle=!0,e||this.opts.onIdleCb(),this.emit("idle")},unidle:function(e){this.is_idle=!1,e||this.opts.onUnIdleCb(),this.emit("unidle")},start:function(){this.started=!0,!(0,i.isMvk)()&&browser.mobile||(this.is_idle=!this._isFocused(),this.opts.parentManager&&this.opts.parentManager.on("idle",this.cbInactiveB),(0,i.isMvk)()&&this._isTopLevel()&&d()&&l(document,d(),this.onVisiblityChange),(0,i.isMvk)()&&r||(l(this.opts.focusElement,"focus",this.cbActiveB),l(this.opts.focusElement,"blur",this.cbInactiveB)),clearTimeout(this.checkIdleCbTo),this.checkIdleCb(),this.checkIdleCbTo=setTimeout(this.checkIdleCb.bind(this),this.opts.idleTimeout))},checkIdleCb:function(){this.started&&(l(this.opts.element,this.opts.triggerEvents,this.cbActiveB),clearTimeout(this.setIdleTo),this.setIdleTo=setTimeout(this.cbInactiveB,this.opts.idleTimeout))},cbActive:function(){this.started&&(this.activeTimeStart=(new Date).getTime(),clearTimeout(this.setIdleTo),this.is_idle&&(this.is_idle=!1,clearTimeout(this.sendCbTO),this.sendCbTO=setTimeout(function(){this.emit("unidle"),this.opts.onUnIdleCb&&this.opts.onUnIdleCb()}.bind(this),100)),c(this.opts.element,this.opts.triggerEvents,this.cbActiveB),clearTimeout(this.checkIdleCbTo),this.checkIdleCbTo=setTimeout(this.checkIdleCb.bind(this),this.opts.idleTimeout))},cbInactive:function(){this.started&&(o.screenWakeLocker.isLocked()||(this.activeTimeStart=null,this.is_idle||(this.is_idle=!0,clearTimeout(this.sendCbTO),this.sendCbTO=setTimeout(function(){this.emit("idle"),this.opts.onIdleCb&&this.opts.onIdleCb()}.bind(this),100)),clearTimeout(this.checkIdleCbTo),c(this.opts.element,this.opts.triggerEvents,this.cbActiveB),l(this.opts.element,this.opts.triggerEvents,this.cbActiveB),this.checkIdleCbTo=setTimeout(this.checkIdleCb,this.opts.idleTimeout)))},getActiveTime:function(){return!this.is_idle&&this.activeTimeStart?(new Date).getTime()-this.activeTimeStart:0},onVisiblityChange:function(){"visible"===u()?this.cbActiveB():this.cbInactiveB()},_isTopLevel:function(){var e=this.opts.focusElement;return e===window||e===document},_isFocused:function(){var e=this.opts.focusElement;if(this._isTopLevel()){var t=u();return"string"==typeof t&&"visible"===t}return document.activeElement===e}})},37123:function(e,t,n){"use strict";n.d(t,{replaceExtraHandler:function(){return r},_handleResponseExtraPayloads:function(){return s}});var a=n(70793),i=n(11386),o=function(){var e;if(window.ajax){var t=null===(e=window.ajax)||void 0===e?void 0:e.__extraEventEmitter;return t||(t=new a.default,window.ajax.__extraEventEmitter=t),t}},r=function(e,t){var n;return null===(n=o())||void 0===n||n.removeAllListeners(e),function(e,t){var n;return null===(n=o())||void 0===n||n.addListener(e,t),function(){var n;null===(n=o())||void 0===n||n.removeListener(e,t)}}(e,t)},s=function(e){var t;null!==(t=e)&&"object"==typeof t&&Object.keys(e).forEach((function(t){try{a=t,r=e[t],null==(s=o())||s.emit(a,r)}catch(e){var n={message:"Extra response error mvk",data:{extraKey:t}};(0,i.logError)(e,{environment:"ajax_request_mvk",breadcrumb:n}),console.error(e)}var a,r,s}))}},48388:function(e,t,n){"use strict";n.d(t,{getTimeFromStart:function(){return i}});var a=0;function i(){return window.performance?performance.now():a?Date.now()-a:0}window.onDOMReady((function(){a=Date.now()}))},93858:function(e,t,n){"use strict";n.d(t,{Alert:function(){return r}});var a=n(97316),i=n(7104),o=n(46950);function r(e){var t=e.title,n=e.text,r=e.class,s=e.className,l=e.children,c=(0,o.classNames)(r,s,{Alert:!0,Alert_theme_error:"error"===e.theme,Alert_theme_warning:"warning"===e.theme,Alert_theme_info:"info"===e.theme});return(0,i.jsxs)("div",(0,a.__assign)({className:c},{children:[t?(0,i.jsx)("div",(0,a.__assign)({className:"Alert__title"},{children:t}),void 0):null,(0,i.jsx)("div",(0,a.__assign)({className:"Alert__description"},{children:n||l}),void 0)]}),void 0)}t.default=r},43223:function(e,t,n){"use strict";n.d(t,{Anchor:function(){return o}});var a=n(7104),i=n(46950);function o(e){return(0,a.jsx)("div",{className:(0,i.classNames)("Anchor",e.mix),id:e.id},void 0)}t.default=o},42681:function(e,t,n){"use strict";n.d(t,{Avatar:function(){return u}});var a=n(97316),i=n(7104),o=n(60559),r=n(35909),s=n(46950),l=n(91845),c=n(66651);function u(e){var t=e.children,n=e.withStories,u=(0,c.getChildren)(e,t);u=u?(0,s.isObject)(u)?u:(0,o.wrap)(u):null;var _=e.mode?(0,s.toString)(e.mode):"image",f=e.size||"inherit",v=e.src?(0,s.isArray)(e.src)?e.src:[e.src]:[],h=e.borderRadius||"full",p=1;e.backgroundTheme&&(p=Math.abs(e.backgroundTheme)>6?Math.abs(e.backgroundTheme)%6+1:e.backgroundTheme),p=Math.floor(p||1);var m="";m=(0,s.isArray)(e.mix)?s.classNames.apply(void 0,(0,a.__spreadArray)([],(0,a.__read)(e.mix))):e.mix||"";var g,b,w=function(e,t,n,i,o,r,l){var c;void 0===e&&(e="image");var u=(0,s.isArray)(r)?s.classNames.apply(void 0,(0,a.__spreadArray)([],(0,a.__read)(r))):r;return(0,s.classNames)("Avatar","Avatar--mode-"+e,"Avatar--images-"+n.toString(),"Avatar--borderRadius-"+((0,s.isString)(i)?i:(null==i?void 0:i.toString())||""),"text"===e&&"Avatar--theme-"+o,u,((c={})["Avatar--size-"+(null==t?void 0:t.toString())]=!!t,c["Avatar--withStories"]=l,c))}(_,f,v.length,h,p||1,m,!!n),y=null,k=null,C=null;return"text"===_?(g=(0,s.toString)(e.text||""),b=Math.floor(e.textLength||2),y=(0,i.jsx)("div",(0,a.__assign)({className:"Avatar__text"},{children:d(g,b)}),void 0)):(k=function(e){for(var t=[],n=e.length<=4?e.length:4,a=0;a<n;a++){var o=a+1;t.push((0,i.jsx)("div",{className:"Avatar__image Avatar__image-"+o,style:"background-image: url('"+e[a]+"')"},void 0))}return t}((0,s.toArray)(v)),v.length||u||(C=(0,i.jsx)(r.Icon24Users,{},void 0))),(0,i.jsx)(l.CustomTag,(0,a.__assign)({tag:e.href?"a":"div",href:(0,s.toString)(e.href||""),className:w,attrs:(0,c.processLegacyAttrs)(e.attrs),role:"img"},{children:(0,i.jsxs)("div",(0,a.__assign)({className:"Avatar__content"},{children:[k,C,y,u]}),void 0)}),void 0)}function d(e,t){void 0===t&&(t=2);for(var n="",a=(0,s.cleanName)((0,s.decodeHTMLEntities)((0,s.convertToUtf)(e||""))).split(" "),i=a.length,o=0;o<i;o++)n+=(0,s.mbSubstr)(a[o],0,1,"utf-8");return n=(0,s.mbSubstr)(n,0,t,"utf-8"),n=(0,s.convertToWin)(n)}},80540:function(e,t,n){"use strict";n.d(t,{Avatar:function(){return a.Avatar}});var a=n(42681)},2299:function(e,t,n){"use strict";n.d(t,{BtnStack:function(){return l}});var a=n(97316),i=n(7104),o=n(46950),r=n(17232),s=n(66651);function l(e){var t,n,l=e.children,c=(0,s.getChildren)(e,l),u=(0,o.toArray)(e.btns||(c&&Array.isArray(c)?c:[c])||[]),d=e.mode||"horizontal",_=e.align||"start",f=(0,r.classNames)(((t={BtnStack:!0,BtnStack_verticalOnSmallScreen:e.verticalOnSmallScreen,BtnStack_stretchOnSmallScreens:e.stretch_on_small_screens,BtnStack_stretch:e.stretch,BtnStack_nowrap:e.nowrap})["BtnStack_align_"+_]=!0,t["BtnStack_mode_"+d]=!0,t)),v=null;return e.after&&(v=(0,i.jsx)("div",(0,a.__assign)({className:(0,r.classNames)((n={BtnStack__cell:!0},n[""+e.after_mix]=e.after_mix,n))},{children:e.after}),void 0)),(0,i.jsxs)("div",(0,a.__assign)({className:f},{children:[u.length?u:null,v]}),void 0)}},59219:function(e,t,n){"use strict";n.d(t,{BtnStack:function(){return a.BtnStack}});var a=n(2299)},76068:function(e,t,n){"use strict";n.d(t,{CustomTag:function(){return a.CustomTag}});var a=n(91845)},74444:function(e,t,n){"use strict";n.d(t,{Icon:function(){return r}});var a=n(7104),i=n(46950),o=n(38099);function r(e){var t,n=e.icon;return(0,a.jsx)(o.MaybeLink,{className:(0,i.classNames)(e.class||e.mix,"Icon",(t={},t["Icon_"+n]=!0,t.Icon_active=e.active,t.Icon_blue=e.blue,t.Icon_bluer=e.bluer,t.Icon_dark=e.dark,t.Icon_selected=e.selected,t.Icon_small=e.small,t.Icon_white=e.white,t)),href:e.url,attrs:e.attrs},void 0)}},17969:function(e,t,n){"use strict"},39423:function(e,t,n){"use strict";n.d(t,{Icon:function(){return a.Icon}});var a=n(74444);n(17969);t.default=a.Icon},38099:function(e,t,n){"use strict";n.d(t,{MaybeLink:function(){return s}});var a=n(97316),i=n(7104),o=n(91845),r=n(66651);function s(e){var t=e.tag;e.href&&!t&&(t="a");var n=e.children,s=(0,r.getChildren)(e,n);return(0,i.jsx)(o.CustomTag,(0,a.__assign)({tag:t||"div"},e,{children:s}),void 0)}},79108:function(e,t,n){"use strict";var a=n(97316),i=n(7104),o=n(54774),r=n(43223),s=n(93858),l=n(46950),c=n(38099),u=n(91845),d=n(66651),_=n(60559);function f(e){return((0,l.isArray)(e)?(0,l.wdToFlatArray)(e):[e]).join("")}function v(e){var t=f(e);return!t||"<div></div>"===t}t.default=function(e){var t,n;if(e.content_only)return{outerHTML:f(e.content)};var h=e.title,p=e.corner,m=e.children,g=(0,d.getChildren)(e,m)||e.content,b=e.anchor,w=e.alert,y=e.attrs||{},k=e.noShadow,C=null!==e.count,x=e.theme||"gray";C&&(x="black");var S=e.pageBlock?"PageBlock PageBlock--separate":"",A=(0,i.jsx)(i.Fragment,{children:h},void 0);if(C){var P=(0,i.jsx)("span",(0,a.__assign)({className:"Pad__count"},{children:e.count}),void 0);A=(0,i.jsxs)(i.Fragment,{children:[A,P]},void 0)}var T=p&&(0,_.prepareHandler)(p.onclick)||"";return(0,i.jsxs)(u.CustomTag,(0,a.__assign)({tag:e.tag,attrs:(0,d.processLegacyAttrs)(y),className:(0,l.classNames)("Pad",(t={Pad_empty:v(g),Pad_noBorder:e.no_border,Pad_noCapsTitle:e.no_caps_for_title,Pad_style_extraTopPadding:null===(n=e.style)||void 0===n?void 0:n.extra_top_padding,Pad_noShadow:k},t["Pad_theme_"+x]=!!x,t),e.class||e.mix,S),ref:e.ref,"data-id":e.name||e.id},{children:[b?(0,i.jsx)(r.Anchor,{mix:"Pad__anchor",id:b},void 0):null,w?(0,i.jsx)(o.Row,(0,a.__assign)({style:{tiny_padding_bottom:!0}},{children:(0,i.jsx)(s.Alert,(0,a.__assign)({className:"Pad__alert",theme:e.alert_theme},{children:w}),void 0)}),void 0):null,h?(0,i.jsxs)(o.Row,(0,a.__assign)({className:"Pad__header"},{children:[e.isHeaderPage?(0,i.jsx)("h1",(0,a.__assign)({className:"Pad__title"},{children:A}),void 0):(0,i.jsx)("h3",(0,a.__assign)({className:"Pad__title"},{children:A}),void 0),p&&(0,i.jsx)(c.MaybeLink,(0,a.__assign)({href:p.url,onClickUnsafe:T,attrs:p.attrs,className:(0,l.classNames)("Pad__corner",p.class)},{children:p.text}),void 0)]}),void 0):null,h?(0,i.jsx)("div",(0,a.__assign)({className:(0,l.classNames)("Pad__content",e.content_mix)},{children:g}),void 0):g]}),void 0)}},54463:function(e,t,n){"use strict";var a=n(79108);t.default=a.default},54774:function(e,t,n){"use strict";n.d(t,{Row:function(){return d}});var a=n(97316),i=n(7104),o=n(43223),r=n(74444),s=n(91845),l=n(60559),c=n(46950),u=n(66651);function d(e){var t=e.children,n=e.content||(0,u.getChildren)(e,t),d=e.anchor,_=e.attrs||{},f=e.style||{},v=e.url,h=e.count,p=!(!v||f.no_go_icon||h),m=e.tag;m||(m=v?"a":"div");var g=null;p?g=(0,i.jsx)(r.Icon,{mix:"Row__right",icon:"chevron_right"},void 0):h&&(g=(0,i.jsx)("div",(0,a.__assign)({className:"Row__right Row__count"},{children:h}),void 0));var b="";return e.mix?b=(0,l.prepareClass)(e.mix):e.class?b=(0,l.prepareClass)(e.class):e.className&&(b=(0,l.prepareClass)(e.className)),(0,i.jsxs)(s.CustomTag,(0,a.__assign)({tag:m,className:(0,c.classNames)(b,"Row",{Row_go:p,Row_style_withBorder:f.with_border,Row_style_withBorderForce:f.with_border_force,Row_style_withHover:f.with_hover,Row_style_smallPaddings:f.small_paddings,Row_style_noPaddingTop:f.no_padding_top,Row_style_noPaddingBottom:f.no_padding_bottom,Row_style_tinyPaddingTop:f.tiny_padding_top,Row_style_tinyPaddingBottom:f.tiny_padding_bottom,Row_paddingTop_short:f.padding_top_short}),attrs:_,href:v,role:e.role},{children:[d?(0,i.jsx)(o.Anchor,{id:d},void 0):null,g,e.icon?(0,i.jsx)("div",(0,a.__assign)({className:"Row__icon "+e.icon_class},{children:e.icon}),void 0):null,n]}),void 0)}t.default=d},91033:function(e,t,n){"use strict";n.d(t,{RowLabeledSelect:function(){return i.RowLabeledSelect}});var a=n(54774),i=n(27837);t.default=a.default},59013:function(e,t,n){"use strict";n.d(t,{Spinner:function(){return c}});var a=n(97316),i=n(7104),o=n(74444),r=n(58457),s=n(24517),l=n(46950);function c(e){void 0===e&&(e={});var t=e.mix||"",n="pageLoader"===(e.type||"gray"),c=(0,l.classNames)(t,"Spinner",{"Spinner--pageLoader":n,"Spinner--hidden":e.isHidden,"Spinner--fixed":e.isFixed});return n?(0,i.jsx)("div",(0,a.__assign)({className:c},{children:(0,i.jsx)(r.SVGIcon,{icon:(0,s.getLoading40Icon)()},void 0)}),void 0):(0,i.jsx)(o.Icon,{mix:c,icon:"spinner"},void 0)}},96439:function(e,t,n){"use strict";n.d(t,{hide:function(){return i}});var a=n(17999);function i(e){(0,a.isElement)(e)&&(e.classList.contains("Spinner--hidden")||e.classList.add("Spinner--hidden"))}},27109:function(e,t,n){"use strict";n.d(t,{hide:function(){return i.hide}});var a=n(59013),i=n(96439);t.default=a.Spinner},89854:function(e,t,n){"use strict";n.d(t,{screenWakeLocker:function(){return a}});var a=new(function(){function e(){this.onVisibilityChange=this._onVisibilityChange.bind(this)}return e.prototype._onVisibilityChange=function(){this.wakeLockSentinel&&"visible"===document.visibilityState&&this.lock().then((function(){})).catch(console.error)},e.prototype.requestWakeLock=function(){var e=this;return navigator.wakeLock?this.wakeLockSentinel?Promise.resolve():navigator.wakeLock.request("screen").then((function(t){e.wakeLockSentinel=t})):Promise.reject()},e.prototype.isLocked=function(){return!!this.wakeLockSentinel&&!this.wakeLockSentinel.released},e.prototype.lock=function(){var e=this;return this.requestWakeLock().then((function(){e.wakeLockSentinel&&document.addEventListener("visibilitychange",e.onVisibilityChange)})).catch((function(){}))},e.prototype.unlock=function(){var e=this;return this.wakeLockSentinel?(document.removeEventListener("visibilitychange",this.onVisibilityChange),this.wakeLockSentinel.release().finally((function(){e.wakeLockSentinel=null}))):Promise.resolve()},e}())}}]);

}
/*
     FILE ARCHIVED ON 03:07:33 Oct 15, 2021 AND RETRIEVED FROM THE
     INTERNET ARCHIVE ON 05:51:35 Nov 19, 2024.
     JAVASCRIPT APPENDED BY WAYBACK MACHINE, COPYRIGHT INTERNET ARCHIVE.

     ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C.
     SECTION 108(a)(3)).
*/
/*
playback timings (ms):
  captures_list: 0.585
  exclusion.robots: 0.03
  exclusion.robots.policy: 0.018
  esindex: 0.01
  cdx.remote: 4.614
  LoadShardBlock: 44.951 (3)
  PetaboxLoader3.datanode: 81.469 (5)
  load_resource: 130.093 (2)
  PetaboxLoader3.resolve: 84.422 (2)
*/