limg.imgsmail.ru Open in urlscan Pro
2a00:1148:db00:0:b0b0::2  Public Scan

URL: https://limg.imgsmail.ru/pkgs/whiteline/2.96.3/external.modern.js
Submission: On March 31 via manual from RU — Scanned from DE

Form analysis 0 forms found in the DOM

Text Content

!function(){"use strict";var e=function(e){try{return!!e()}catch(e){return!0}},t={}.toString,r=function(e){return t.call(e).slice(8,-1)},n="".split,o=e((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==r(e)?n.call(e,""):Object(e)}:Object,i=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e},a=function(e){return o(i(e))},l="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function s(e){var t={exports:{}};return e(t,t.exports),t.exports}var c,u,d=function(e){return e&&e.Math==Math&&e},f=d("object"==typeof globalThis&&globalThis)||d("object"==typeof window&&window)||d("object"==typeof self&&self)||d("object"==typeof l&&l)||function(){return this}()||Function("return this")(),h=!e((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),p=function(e){return"object"==typeof e?null!==e:"function"==typeof e},m=f.document,g=p(m)&&p(m.createElement),v=function(e){return g?m.createElement(e):{}},y=!h&&!e((function(){return 7!=Object.defineProperty(v("div"),"a",{get:function(){return 7}}).a})),b=function(e){if(!p(e))throw TypeError(String(e)+" is not an object");return e},x=function(e,t){if(!p(e))return e;var r,n;if(t&&"function"==typeof(r=e.toString)&&!p(n=r.call(e)))return n;if("function"==typeof(r=e.valueOf)&&!p(n=r.call(e)))return n;if(!t&&"function"==typeof(r=e.toString)&&!p(n=r.call(e)))return n;throw TypeError("Can't convert object to primitive value")},w=Object.defineProperty,$={f:h?w:function(e,t,r){if(b(e),t=x(t,!0),b(r),y)try{return w(e,t,r)}catch(e){}if("get"in r||"set"in r)throw TypeError("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},k=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},C=h?function(e,t,r){return $.f(e,t,k(1,r))}:function(e,t,r){return e[t]=r,e},F=function(e,t){try{C(f,e,t)}catch(r){f[e]=t}return t},A="__core-js_shared__",S=f[A]||F(A,{}),E=s((function(e){(e.exports=function(e,t){return S[e]||(S[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.10.0",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),T={}.hasOwnProperty,_=function(e,t){return T.call(e,t)},B=0,j=Math.random(),P=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++B+j).toString(36)},z="process"==r(f.process),D=f,M=function(e){return"function"==typeof e?e:void 0},L=function(e,t){return arguments.length<2?M(D[e])||M(f[e]):D[e]&&D[e][t]||f[e]&&f[e][t]},O=L("navigator","userAgent")||"",H=f.process,I=H&&H.versions,R=I&&I.v8;R?u=(c=R.split("."))[0]+c[1]:O&&(!(c=O.match(/Edge\/(\d+)/))||c[1]>=74)&&(c=O.match(/Chrome\/(\d+)/))&&(u=c[1]);var N,W=u&&+u,U=!!Object.getOwnPropertySymbols&&!e((function(){return!Symbol.sham&&(z?38===W:W>37&&W<41)})),V=U&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,q=E("wks"),G=f.Symbol,X=V?G:G&&G.withoutSetter||P,Z=function(e){return _(q,e)&&(U||"string"==typeof q[e])||(U&&_(G,e)?q[e]=G[e]:q[e]=X("Symbol."+e)),q[e]},K=Math.ceil,J=Math.floor,Y=function(e){return isNaN(e=+e)?0:(e>0?J:K)(e)},Q=Math.min,ee=function(e){return e>0?Q(Y(e),9007199254740991):0},te=Math.max,re=Math.min,ne=function(e,t){var r=Y(e);return r<0?te(r+t,0):re(r,t)},oe=function(e){return function(t,r,n){var o,i=a(t),l=ee(i.length),s=ne(n,l);if(e&&r!=r){for(;l>s;)if((o=i[s++])!=o)return!0}else for(;l>s;s++)if((e||s in i)&&i[s]===r)return e||s||0;return!e&&-1}},ie={includes:oe(!0),indexOf:oe(!1)},ae={},le=ie.indexOf,se=function(e,t){var r,n=a(e),o=0,i=[];for(r in n)!_(ae,r)&&_(n,r)&&i.push(r);for(;t.length>o;)_(n,r=t[o++])&&(~le(i,r)||i.push(r));return i},ce=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],ue=Object.keys||function(e){return se(e,ce)},de=h?Object.defineProperties:function(e,t){b(e);for(var r,n=ue(t),o=n.length,i=0;o>i;)$.f(e,r=n[i++],t[r]);return e},fe=L("document","documentElement"),he=E("keys"),pe=function(e){return he[e]||(he[e]=P(e))},me=pe("IE_PROTO"),ge=function(){},ve=function(e){return"<script>"+e+"</"+"script>"},ye=function(){try{N=document.domain&&new ActiveXObject("htmlfile")}catch(e){}var e,t;ye=N?function(e){e.write(ve("")),e.close();var t=e.parentWindow.Object;return e=null,t}(N):((t=v("iframe")).style.display="none",fe.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(ve("document.F=Object")),e.close(),e.F);for(var r=ce.length;r--;)delete ye.prototype[ce[r]];return ye()};ae[me]=!0;var be=Object.create||function(e,t){var r;return null!==e?(ge.prototype=b(e),r=new ge,ge.prototype=null,r[me]=e):r=ye(),void 0===t?r:de(r,t)},xe=Z("unscopables"),we=Array.prototype;null==we[xe]&&$.f(we,xe,{configurable:!0,value:be(null)});var $e=function(e){we[xe][e]=!0},ke={},Ce=Function.toString;"function"!=typeof S.inspectSource&&(S.inspectSource=function(e){return Ce.call(e)});var Fe,Ae,Se,Ee=S.inspectSource,Te=f.WeakMap,_e="function"==typeof Te&&/native code/.test(Ee(Te)),Be=f.WeakMap;if(_e){var je=S.state||(S.state=new Be),Pe=je.get,ze=je.has,De=je.set;Fe=function(e,t){return t.facade=e,De.call(je,e,t),t},Ae=function(e){return Pe.call(je,e)||{}},Se=function(e){return ze.call(je,e)}}else{var Me=pe("state");ae[Me]=!0,Fe=function(e,t){return t.facade=e,C(e,Me,t),t},Ae=function(e){return _(e,Me)?e[Me]:{}},Se=function(e){return _(e,Me)}}var Le,Oe,He,Ie={set:Fe,get:Ae,has:Se,enforce:function(e){return Se(e)?Ae(e):Fe(e,{})},getterFor:function(e){return function(t){var r;if(!p(t)||(r=Ae(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return r}}},Re={}.propertyIsEnumerable,Ne=Object.getOwnPropertyDescriptor,We={f:Ne&&!Re.call({1:2},1)?function(e){var t=Ne(this,e);return!!t&&t.enumerable}:Re},Ue=Object.getOwnPropertyDescriptor,Ve={f:h?Ue:function(e,t){if(e=a(e),t=x(t,!0),y)try{return Ue(e,t)}catch(e){}if(_(e,t))return k(!We.f.call(e,t),e[t])}},qe=s((function(e){var t=Ie.get,r=Ie.enforce,n=String(String).split("String");(e.exports=function(e,t,o,i){var a,l=!!i&&!!i.unsafe,s=!!i&&!!i.enumerable,c=!!i&&!!i.noTargetGet;"function"==typeof o&&("string"!=typeof t||_(o,"name")||C(o,"name",t),(a=r(o)).source||(a.source=n.join("string"==typeof t?t:""))),e!==f?(l?!c&&e[t]&&(s=!0):delete e[t],s?e[t]=o:C(e,t,o)):s?e[t]=o:F(t,o)})(Function.prototype,"toString",(function(){return"function"==typeof this&&t(this).source||Ee(this)}))})),Ge=ce.concat("length","prototype"),Xe={f:Object.getOwnPropertyNames||function(e){return se(e,Ge)}},Ze={f:Object.getOwnPropertySymbols},Ke=L("Reflect","ownKeys")||function(e){var t=Xe.f(b(e)),r=Ze.f;return r?t.concat(r(e)):t},Je=function(e,t){for(var r=Ke(t),n=$.f,o=Ve.f,i=0;i<r.length;i++){var a=r[i];_(e,a)||n(e,a,o(t,a))}},Ye=/#|\.prototype\./,Qe=function(t,r){var n=tt[et(t)];return n==nt||n!=rt&&("function"==typeof r?e(r):!!r)},et=Qe.normalize=function(e){return String(e).replace(Ye,".").toLowerCase()},tt=Qe.data={},rt=Qe.NATIVE="N",nt=Qe.POLYFILL="P",ot=Qe,it=Ve.f,at=function(e,t){var r,n,o,i,a,l=e.target,s=e.global,c=e.stat;if(r=s?f:c?f[l]||F(l,{}):(f[l]||{}).prototype)for(n in t){if(i=t[n],o=e.noTargetGet?(a=it(r,n))&&a.value:r[n],!ot(s?n:l+(c?".":"#")+n,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;Je(i,o)}(e.sham||o&&o.sham)&&C(i,"sham",!0),qe(r,n,i,e)}},lt=function(e){return Object(i(e))},st=!e((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),ct=pe("IE_PROTO"),ut=Object.prototype,dt=st?Object.getPrototypeOf:function(e){return e=lt(e),_(e,ct)?e[ct]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?ut:null},ft=Z("iterator"),ht=!1;[].keys&&("next"in(He=[].keys())?(Oe=dt(dt(He)))!==Object.prototype&&(Le=Oe):ht=!0);var pt=null==Le||e((function(){var e={};return Le[ft].call(e)!==e}));pt&&(Le={}),_(Le,ft)||C(Le,ft,(function(){return this}));var mt={IteratorPrototype:Le,BUGGY_SAFARI_ITERATORS:ht},gt=$.f,vt=Z("toStringTag"),yt=function(e,t,r){e&&!_(e=r?e:e.prototype,vt)&&gt(e,vt,{configurable:!0,value:t})},bt=mt.IteratorPrototype,xt=function(){return this},wt=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(r,[]),t=r instanceof Array}catch(e){}return function(r,n){return b(r),function(e){if(!p(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype")}(n),t?e.call(r,n):r.__proto__=n,r}}():void 0),$t=mt.IteratorPrototype,kt=mt.BUGGY_SAFARI_ITERATORS,Ct=Z("iterator"),Ft="keys",At="values",St="entries",Et=function(){return this},Tt="Array Iterator",_t=Ie.set,Bt=Ie.getterFor(Tt),jt=function(e,t,r,n,o,i,a){!function(e,t,r){var n=t+" Iterator";e.prototype=be(bt,{next:k(1,r)}),yt(e,n,!1),ke[n]=xt}(r,t,n);var l,s,c,u=function(e){if(e===o&&m)return m;if(!kt&&e in h)return h[e];switch(e){case Ft:case At:case St:return function(){return new r(this,e)}}return function(){return new r(this)}},d=t+" Iterator",f=!1,h=e.prototype,p=h[Ct]||h["@@iterator"]||o&&h[o],m=!kt&&p||u(o),g="Array"==t&&h.entries||p;if(g&&(l=dt(g.call(new e)),$t!==Object.prototype&&l.next&&(dt(l)!==$t&&(wt?wt(l,$t):"function"!=typeof l[Ct]&&C(l,Ct,Et)),yt(l,d,!0))),o==At&&p&&p.name!==At&&(f=!0,m=function(){return p.call(this)}),h[Ct]!==m&&C(h,Ct,m),ke[t]=m,o)if(s={values:u(At),keys:i?m:u(Ft),entries:u(St)},a)for(c in s)(kt||f||!(c in h))&&qe(h,c,s[c]);else at({target:t,proto:!0,forced:kt||f},s);return s}(Array,"Array",(function(e,t){_t(this,{type:Tt,target:a(e),index:0,kind:t})}),(function(){var e=Bt(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==r?{value:n,done:!1}:"values"==r?{value:t[n],done:!1}:{value:[n,t[n]],done:!1}}),"values");ke.Arguments=ke.Array,$e("keys"),$e("values"),$e("entries");var Pt={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},zt=Z("iterator"),Dt=Z("toStringTag"),Mt=jt.values;for(var Lt in Pt){var Ot=f[Lt],Ht=Ot&&Ot.prototype;if(Ht){if(Ht[zt]!==Mt)try{C(Ht,zt,Mt)}catch(e){Ht[zt]=Mt}if(Ht[Dt]||C(Ht,Dt,Lt),Pt[Lt])for(var It in jt)if(Ht[It]!==jt[It])try{C(Ht,It,jt[It])}catch(e){Ht[It]=jt[It]}}}var Rt=f.Promise,Nt=function(e,t,r){for(var n in t)qe(e,n,t[n],r);return e},Wt=Z("species"),Ut=function(e){var t=L(e),r=$.f;h&&t&&!t[Wt]&&r(t,Wt,{configurable:!0,get:function(){return this}})},Vt=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e},qt=function(e,t,r){if(!(e instanceof t))throw TypeError("Incorrect "+(r?r+" ":"")+"invocation");return e},Gt=Z("iterator"),Xt=Array.prototype,Zt=function(e){return void 0!==e&&(ke.Array===e||Xt[Gt]===e)},Kt=function(e,t,r){if(Vt(e),void 0===t)return e;switch(r){case 0:return function(){return e.call(t)};case 1:return function(r){return e.call(t,r)};case 2:return function(r,n){return e.call(t,r,n)};case 3:return function(r,n,o){return e.call(t,r,n,o)}}return function(){return e.apply(t,arguments)}},Jt={};Jt[Z("toStringTag")]="z";var Yt="[object z]"===String(Jt),Qt=Z("toStringTag"),er="Arguments"==r(function(){return arguments}()),tr=Yt?r:function(e){var t,n,o;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),Qt))?n:er?r(t):"Object"==(o=r(t))&&"function"==typeof t.callee?"Arguments":o},rr=Z("iterator"),nr=function(e){if(null!=e)return e[rr]||e["@@iterator"]||ke[tr(e)]},or=function(e){var t=e.return;if(void 0!==t)return b(t.call(e)).value},ir=function(e,t){this.stopped=e,this.result=t},ar=function(e,t,r){var n,o,i,a,l,s,c,u=r&&r.that,d=!(!r||!r.AS_ENTRIES),f=!(!r||!r.IS_ITERATOR),h=!(!r||!r.INTERRUPTED),p=Kt(t,u,1+d+h),m=function(e){return n&&or(n),new ir(!0,e)},g=function(e){return d?(b(e),h?p(e[0],e[1],m):p(e[0],e[1])):h?p(e,m):p(e)};if(f)n=e;else{if("function"!=typeof(o=nr(e)))throw TypeError("Target is not iterable");if(Zt(o)){for(i=0,a=ee(e.length);a>i;i++)if((l=g(e[i]))&&l instanceof ir)return l;return new ir(!1)}n=o.call(e)}for(s=n.next;!(c=s.call(n)).done;){try{l=g(c.value)}catch(e){throw or(n),e}if("object"==typeof l&&l&&l instanceof ir)return l}return new ir(!1)},lr=Z("iterator"),sr=!1;try{var cr=0,ur={next:function(){return{done:!!cr++}},return:function(){sr=!0}};ur[lr]=function(){return this},Array.from(ur,(function(){throw 2}))}catch(e){}var dr,fr,hr,pr=function(e,t){if(!t&&!sr)return!1;var r=!1;try{var n={};n[lr]=function(){return{next:function(){return{done:r=!0}}}},e(n)}catch(e){}return r},mr=Z("species"),gr=/(iphone|ipod|ipad).*applewebkit/i.test(O),vr=f.location,yr=f.setImmediate,br=f.clearImmediate,xr=f.process,wr=f.MessageChannel,$r=f.Dispatch,kr=0,Cr={},Fr="onreadystatechange",Ar=function(e){if(Cr.hasOwnProperty(e)){var t=Cr[e];delete Cr[e],t()}},Sr=function(e){return function(){Ar(e)}},Er=function(e){Ar(e.data)},Tr=function(e){f.postMessage(e+"",vr.protocol+"//"+vr.host)};yr&&br||(yr=function(e){for(var t=[],r=1;arguments.length>r;)t.push(arguments[r++]);return Cr[++kr]=function(){("function"==typeof e?e:Function(e)).apply(void 0,t)},dr(kr),kr},br=function(e){delete Cr[e]},z?dr=function(e){xr.nextTick(Sr(e))}:$r&&$r.now?dr=function(e){$r.now(Sr(e))}:wr&&!gr?(hr=(fr=new wr).port2,fr.port1.onmessage=Er,dr=Kt(hr.postMessage,hr,1)):f.addEventListener&&"function"==typeof postMessage&&!f.importScripts&&vr&&"file:"!==vr.protocol&&!e(Tr)?(dr=Tr,f.addEventListener("message",Er,!1)):dr=Fr in v("script")?function(e){fe.appendChild(v("script")).onreadystatechange=function(){fe.removeChild(this),Ar(e)}}:function(e){setTimeout(Sr(e),0)});var _r,Br,jr,Pr,zr,Dr,Mr,Lr,Or={set:yr,clear:br},Hr=/web0s(?!.*chrome)/i.test(O),Ir=Ve.f,Rr=Or.set,Nr=f.MutationObserver||f.WebKitMutationObserver,Wr=f.document,Ur=f.process,Vr=f.Promise,qr=Ir(f,"queueMicrotask"),Gr=qr&&qr.value;Gr||(_r=function(){var e,t;for(z&&(e=Ur.domain)&&e.exit();Br;){t=Br.fn,Br=Br.next;try{t()}catch(e){throw Br?Pr():jr=void 0,e}}jr=void 0,e&&e.enter()},gr||z||Hr||!Nr||!Wr?Vr&&Vr.resolve?(Mr=Vr.resolve(void 0),Lr=Mr.then,Pr=function(){Lr.call(Mr,_r)}):Pr=z?function(){Ur.nextTick(_r)}:function(){Rr.call(f,_r)}:(zr=!0,Dr=Wr.createTextNode(""),new Nr(_r).observe(Dr,{characterData:!0}),Pr=function(){Dr.data=zr=!zr}));var Xr,Zr,Kr,Jr,Yr=Gr||function(e){var t={fn:e,next:void 0};jr&&(jr.next=t),Br||(Br=t,Pr()),jr=t},Qr=function(e){var t,r;this.promise=new e((function(e,n){if(void 0!==t||void 0!==r)throw TypeError("Bad Promise constructor");t=e,r=n})),this.resolve=Vt(t),this.reject=Vt(r)},en={f:function(e){return new Qr(e)}},tn=function(e,t){if(b(e),p(t)&&t.constructor===e)return t;var r=en.f(e);return(0,r.resolve)(t),r.promise},rn=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},nn=Or.set,on=Z("species"),an="Promise",ln=Ie.get,sn=Ie.set,cn=Ie.getterFor(an),un=Rt,dn=f.TypeError,fn=f.document,hn=f.process,pn=L("fetch"),mn=en.f,gn=mn,vn=!!(fn&&fn.createEvent&&f.dispatchEvent),yn="function"==typeof PromiseRejectionEvent,bn="unhandledrejection",xn=ot(an,(function(){if(!(Ee(un)!==String(un))){if(66===W)return!0;if(!z&&!yn)return!0}if(W>=51&&/native code/.test(un))return!1;var e=un.resolve(1),t=function(e){e((function(){}),(function(){}))};return(e.constructor={})[on]=t,!(e.then((function(){}))instanceof t)})),wn=xn||!pr((function(e){un.all(e).catch((function(){}))})),$n=function(e){var t;return!(!p(e)||"function"!=typeof(t=e.then))&&t},kn=function(e,t){if(!e.notified){e.notified=!0;var r=e.reactions;Yr((function(){for(var n=e.value,o=1==e.state,i=0;r.length>i;){var a,l,s,c=r[i++],u=o?c.ok:c.fail,d=c.resolve,f=c.reject,h=c.domain;try{u?(o||(2===e.rejection&&Sn(e),e.rejection=1),!0===u?a=n:(h&&h.enter(),a=u(n),h&&(h.exit(),s=!0)),a===c.promise?f(dn("Promise-chain cycle")):(l=$n(a))?l.call(a,d,f):d(a)):f(n)}catch(e){h&&!s&&h.exit(),f(e)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&Fn(e)}))}},Cn=function(e,t,r){var n,o;vn?((n=fn.createEvent("Event")).promise=t,n.reason=r,n.initEvent(e,!1,!0),f.dispatchEvent(n)):n={promise:t,reason:r},!yn&&(o=f["on"+e])?o(n):e===bn&&function(e,t){var r=f.console;r&&r.error&&(1===arguments.length?r.error(e):r.error(e,t))}("Unhandled promise rejection",r)},Fn=function(e){nn.call(f,(function(){var t,r=e.facade,n=e.value;if(An(e)&&(t=rn((function(){z?hn.emit("unhandledRejection",n,r):Cn(bn,r,n)})),e.rejection=z||An(e)?2:1,t.error))throw t.value}))},An=function(e){return 1!==e.rejection&&!e.parent},Sn=function(e){nn.call(f,(function(){var t=e.facade;z?hn.emit("rejectionHandled",t):Cn("rejectionhandled",t,e.value)}))},En=function(e,t,r){return function(n){e(t,n,r)}},Tn=function(e,t,r){e.done||(e.done=!0,r&&(e=r),e.value=t,e.state=2,kn(e,!0))},_n=function(e,t,r){if(!e.done){e.done=!0,r&&(e=r);try{if(e.facade===t)throw dn("Promise can't be resolved itself");var n=$n(t);n?Yr((function(){var r={done:!1};try{n.call(t,En(_n,r,e),En(Tn,r,e))}catch(t){Tn(r,t,e)}})):(e.value=t,e.state=1,kn(e,!1))}catch(t){Tn({done:!1},t,e)}}};xn&&(un=function(e){qt(this,un,an),Vt(e),Xr.call(this);var t=ln(this);try{e(En(_n,t),En(Tn,t))}catch(e){Tn(t,e)}},(Xr=function(e){sn(this,{type:an,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=Nt(un.prototype,{then:function(e,t){var r,n,o,i=cn(this),a=mn((r=un,void 0===(o=b(this).constructor)||null==(n=b(o)[mr])?r:Vt(n)));return a.ok="function"!=typeof e||e,a.fail="function"==typeof t&&t,a.domain=z?hn.domain:void 0,i.parent=!0,i.reactions.push(a),0!=i.state&&kn(i,!1),a.promise},catch:function(e){return this.then(void 0,e)}}),Zr=function(){var e=new Xr,t=ln(e);this.promise=e,this.resolve=En(_n,t),this.reject=En(Tn,t)},en.f=mn=function(e){return e===un||e===Kr?new Zr(e):gn(e)},"function"==typeof Rt&&(Jr=Rt.prototype.then,qe(Rt.prototype,"then",(function(e,t){var r=this;return new un((function(e,t){Jr.call(r,e,t)})).then(e,t)}),{unsafe:!0}),"function"==typeof pn&&at({global:!0,enumerable:!0,forced:!0},{fetch:function(e){return tn(un,pn.apply(f,arguments))}}))),at({global:!0,wrap:!0,forced:xn},{Promise:un}),yt(un,an,!1),Ut(an),Kr=L(an),at({target:an,stat:!0,forced:xn},{reject:function(e){var t=mn(this);return t.reject.call(void 0,e),t.promise}}),at({target:an,stat:!0,forced:xn},{resolve:function(e){return tn(this,e)}}),at({target:an,stat:!0,forced:wn},{all:function(e){var t=this,r=mn(t),n=r.resolve,o=r.reject,i=rn((function(){var r=Vt(t.resolve),i=[],a=0,l=1;ar(e,(function(e){var s=a++,c=!1;i.push(void 0),l++,r.call(t,e).then((function(e){c||(c=!0,i[s]=e,--l||n(i))}),o)})),--l||n(i)}));return i.error&&o(i.value),r.promise},race:function(e){var t=this,r=mn(t),n=r.reject,o=rn((function(){var o=Vt(t.resolve);ar(e,(function(e){o.call(t,e).then(r.resolve,n)}))}));return o.error&&n(o.value),r.promise}});var Bn,jn="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView,Pn=$.f,zn=f.Int8Array,Dn=zn&&zn.prototype,Mn=f.Uint8ClampedArray,Ln=Mn&&Mn.prototype,On=zn&&dt(zn),Hn=Dn&&dt(Dn),In=Object.prototype,Rn=In.isPrototypeOf,Nn=Z("toStringTag"),Wn=P("TYPED_ARRAY_TAG"),Un=jn&&!!wt&&"Opera"!==tr(f.opera),Vn=!1,qn={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},Gn={BigInt64Array:8,BigUint64Array:8},Xn=function(e){if(!p(e))return!1;var t=tr(e);return _(qn,t)||_(Gn,t)};for(Bn in qn)f[Bn]||(Un=!1);if((!Un||"function"!=typeof On||On===Function.prototype)&&(On=function(){throw TypeError("Incorrect invocation")},Un))for(Bn in qn)f[Bn]&&wt(f[Bn],On);if((!Un||!Hn||Hn===In)&&(Hn=On.prototype,Un))for(Bn in qn)f[Bn]&&wt(f[Bn].prototype,Hn);if(Un&&dt(Ln)!==Hn&&wt(Ln,Hn),h&&!_(Hn,Nn))for(Bn in Vn=!0,Pn(Hn,Nn,{get:function(){return p(this)?this[Wn]:void 0}}),qn)f[Bn]&&C(f[Bn],Wn,Bn);var Zn={NATIVE_ARRAY_BUFFER_VIEWS:Un,TYPED_ARRAY_TAG:Vn&&Wn,aTypedArray:function(e){if(Xn(e))return e;throw TypeError("Target is not a typed array")},aTypedArrayConstructor:function(e){if(wt){if(Rn.call(On,e))return e}else for(var t in qn)if(_(qn,Bn)){var r=f[t];if(r&&(e===r||Rn.call(r,e)))return e}throw TypeError("Target is not a typed array constructor")},exportTypedArrayMethod:function(e,t,r){if(h){if(r)for(var n in qn){var o=f[n];o&&_(o.prototype,e)&&delete o.prototype[e]}Hn[e]&&!r||qe(Hn,e,r?t:Un&&Dn[e]||t)}},exportTypedArrayStaticMethod:function(e,t,r){var n,o;if(h){if(wt){if(r)for(n in qn)(o=f[n])&&_(o,e)&&delete o[e];if(On[e]&&!r)return;try{return qe(On,e,r?t:Un&&zn[e]||t)}catch(e){}}for(n in qn)!(o=f[n])||o[e]&&!r||qe(o,e,t)}},isView:function(e){if(!p(e))return!1;var t=tr(e);return"DataView"===t||_(qn,t)||_(Gn,t)},isTypedArray:Xn,TypedArray:On,TypedArrayPrototype:Hn},Kn=Zn.NATIVE_ARRAY_BUFFER_VIEWS,Jn=f.ArrayBuffer,Yn=f.Int8Array,Qn=!Kn||!e((function(){Yn(1)}))||!e((function(){new Yn(-1)}))||!pr((function(e){new Yn,new Yn(null),new Yn(1.5),new Yn(e)}),!0)||e((function(){return 1!==new Yn(new Jn(2),1,void 0).length})),eo=function(e){if(void 0===e)return 0;var t=Y(e),r=ee(t);if(t!==r)throw RangeError("Wrong length or index");return r},to=Math.abs,ro=Math.pow,no=Math.floor,oo=Math.log,io=Math.LN2,ao=function(e,t,r){var n,o,i,a=new Array(r),l=8*r-t-1,s=(1<<l)-1,c=s>>1,u=23===t?ro(2,-24)-ro(2,-77):0,d=e<0||0===e&&1/e<0?1:0,f=0;for((e=to(e))!=e||e===1/0?(o=e!=e?1:0,n=s):(n=no(oo(e)/io),e*(i=ro(2,-n))<1&&(n--,i*=2),(e+=n+c>=1?u/i:u*ro(2,1-c))*i>=2&&(n++,i/=2),n+c>=s?(o=0,n=s):n+c>=1?(o=(e*i-1)*ro(2,t),n+=c):(o=e*ro(2,c-1)*ro(2,t),n=0));t>=8;a[f++]=255&o,o/=256,t-=8);for(n=n<<t|o,l+=t;l>0;a[f++]=255&n,n/=256,l-=8);return a[--f]|=128*d,a},lo=function(e,t){var r,n=e.length,o=8*n-t-1,i=(1<<o)-1,a=i>>1,l=o-7,s=n-1,c=e[s--],u=127&c;for(c>>=7;l>0;u=256*u+e[s],s--,l-=8);for(r=u&(1<<-l)-1,u>>=-l,l+=t;l>0;r=256*r+e[s],s--,l-=8);if(0===u)u=1-a;else{if(u===i)return r?NaN:c?-1/0:1/0;r+=ro(2,t),u-=a}return(c?-1:1)*r*ro(2,u-t)},so=function(e){for(var t=lt(this),r=ee(t.length),n=arguments.length,o=ne(n>1?arguments[1]:void 0,r),i=n>2?arguments[2]:void 0,a=void 0===i?r:ne(i,r);a>o;)t[o++]=e;return t},co=Xe.f,uo=$.f,fo=Ie.get,ho=Ie.set,po="ArrayBuffer",mo="DataView",go="Wrong index",vo=f.ArrayBuffer,yo=vo,bo=f.DataView,xo=bo&&bo.prototype,wo=Object.prototype,$o=f.RangeError,ko=ao,Co=lo,Fo=function(e){return[255&e]},Ao=function(e){return[255&e,e>>8&255]},So=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},Eo=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},To=function(e){return ko(e,23,4)},_o=function(e){return ko(e,52,8)},Bo=function(e,t){uo(e.prototype,t,{get:function(){return fo(this)[t]}})},jo=function(e,t,r,n){var o=eo(r),i=fo(e);if(o+t>i.byteLength)throw $o(go);var a=fo(i.buffer).bytes,l=o+i.byteOffset,s=a.slice(l,l+t);return n?s:s.reverse()},Po=function(e,t,r,n,o,i){var a=eo(r),l=fo(e);if(a+t>l.byteLength)throw $o(go);for(var s=fo(l.buffer).bytes,c=a+l.byteOffset,u=n(+o),d=0;d<t;d++)s[c+d]=u[i?d:t-d-1]};if(jn){if(!e((function(){vo(1)}))||!e((function(){new vo(-1)}))||e((function(){return new vo,new vo(1.5),new vo(NaN),vo.name!=po}))){for(var zo,Do=(yo=function(e){return qt(this,yo),new vo(eo(e))}).prototype=vo.prototype,Mo=co(vo),Lo=0;Mo.length>Lo;)(zo=Mo[Lo++])in yo||C(yo,zo,vo[zo]);Do.constructor=yo}wt&&dt(xo)!==wo&&wt(xo,wo);var Oo=new bo(new yo(2)),Ho=xo.setInt8;Oo.setInt8(0,2147483648),Oo.setInt8(1,2147483649),!Oo.getInt8(0)&&Oo.getInt8(1)||Nt(xo,{setInt8:function(e,t){Ho.call(this,e,t<<24>>24)},setUint8:function(e,t){Ho.call(this,e,t<<24>>24)}},{unsafe:!0})}else yo=function(e){qt(this,yo,po);var t=eo(e);ho(this,{bytes:so.call(new Array(t),0),byteLength:t}),h||(this.byteLength=t)},bo=function(e,t,r){qt(this,bo,mo),qt(e,yo,mo);var n=fo(e).byteLength,o=Y(t);if(o<0||o>n)throw $o("Wrong offset");if(o+(r=void 0===r?n-o:ee(r))>n)throw $o("Wrong length");ho(this,{buffer:e,byteLength:r,byteOffset:o}),h||(this.buffer=e,this.byteLength=r,this.byteOffset=o)},h&&(Bo(yo,"byteLength"),Bo(bo,"buffer"),Bo(bo,"byteLength"),Bo(bo,"byteOffset")),Nt(bo.prototype,{getInt8:function(e){return jo(this,1,e)[0]<<24>>24},getUint8:function(e){return jo(this,1,e)[0]},getInt16:function(e){var t=jo(this,2,e,arguments.length>1?arguments[1]:void 0);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=jo(this,2,e,arguments.length>1?arguments[1]:void 0);return t[1]<<8|t[0]},getInt32:function(e){return Eo(jo(this,4,e,arguments.length>1?arguments[1]:void 0))},getUint32:function(e){return Eo(jo(this,4,e,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(e){return Co(jo(this,4,e,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(e){return Co(jo(this,8,e,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(e,t){Po(this,1,e,Fo,t)},setUint8:function(e,t){Po(this,1,e,Fo,t)},setInt16:function(e,t){Po(this,2,e,Ao,t,arguments.length>2?arguments[2]:void 0)},setUint16:function(e,t){Po(this,2,e,Ao,t,arguments.length>2?arguments[2]:void 0)},setInt32:function(e,t){Po(this,4,e,So,t,arguments.length>2?arguments[2]:void 0)},setUint32:function(e,t){Po(this,4,e,So,t,arguments.length>2?arguments[2]:void 0)},setFloat32:function(e,t){Po(this,4,e,To,t,arguments.length>2?arguments[2]:void 0)},setFloat64:function(e,t){Po(this,8,e,_o,t,arguments.length>2?arguments[2]:void 0)}});yt(yo,po),yt(bo,mo);var Io={ArrayBuffer:yo,DataView:bo},Ro=function(e,t){var r=function(e){var t=Y(e);if(t<0)throw RangeError("The argument can't be less than 0");return t}(e);if(r%t)throw RangeError("Wrong offset");return r},No=Zn.aTypedArrayConstructor,Wo=function(e){var t,r,n,o,i,a,l=lt(e),s=arguments.length,c=s>1?arguments[1]:void 0,u=void 0!==c,d=nr(l);if(null!=d&&!Zt(d))for(a=(i=d.call(l)).next,l=[];!(o=a.call(i)).done;)l.push(o.value);for(u&&s>2&&(c=Kt(c,arguments[2],2)),r=ee(l.length),n=new(No(this))(r),t=0;r>t;t++)n[t]=u?c(l[t],t):l[t];return n},Uo=Array.isArray||function(e){return"Array"==r(e)},Vo=Z("species"),qo=function(e,t){var r;return Uo(e)&&("function"!=typeof(r=e.constructor)||r!==Array&&!Uo(r.prototype)?p(r)&&null===(r=r[Vo])&&(r=void 0):r=void 0),new(void 0===r?Array:r)(0===t?0:t)},Go=[].push,Xo=function(e){var t=1==e,r=2==e,n=3==e,i=4==e,a=6==e,l=7==e,s=5==e||a;return function(c,u,d,f){for(var h,p,m=lt(c),g=o(m),v=Kt(u,d,3),y=ee(g.length),b=0,x=f||qo,w=t?x(c,y):r||l?x(c,0):void 0;y>b;b++)if((s||b in g)&&(p=v(h=g[b],b,m),e))if(t)w[b]=p;else if(p)switch(e){case 3:return!0;case 5:return h;case 6:return b;case 2:Go.call(w,h)}else switch(e){case 4:return!1;case 7:Go.call(w,h)}return a?-1:n||i?i:w}},Zo={forEach:Xo(0),map:Xo(1),filter:Xo(2),some:Xo(3),every:Xo(4),find:Xo(5),findIndex:Xo(6),filterOut:Xo(7)},Ko=function(e,t,r){var n,o;return wt&&"function"==typeof(n=t.constructor)&&n!==r&&p(o=n.prototype)&&o!==r.prototype&&wt(e,o),e},Jo=s((function(e){var t=Xe.f,r=Zo.forEach,n=Ie.get,o=Ie.set,i=$.f,a=Ve.f,l=Math.round,s=f.RangeError,c=Io.ArrayBuffer,u=Io.DataView,d=Zn.NATIVE_ARRAY_BUFFER_VIEWS,m=Zn.TYPED_ARRAY_TAG,g=Zn.TypedArray,v=Zn.TypedArrayPrototype,y=Zn.aTypedArrayConstructor,b=Zn.isTypedArray,w="BYTES_PER_ELEMENT",F="Wrong length",A=function(e,t){for(var r=0,n=t.length,o=new(y(e))(n);n>r;)o[r]=t[r++];return o},S=function(e,t){i(e,t,{get:function(){return n(this)[t]}})},E=function(e){var t;return e instanceof c||"ArrayBuffer"==(t=tr(e))||"SharedArrayBuffer"==t},T=function(e,t){return b(e)&&"symbol"!=typeof t&&t in e&&String(+t)==String(t)},B=function(e,t){return T(e,t=x(t,!0))?k(2,e[t]):a(e,t)},j=function(e,t,r){return!(T(e,t=x(t,!0))&&p(r)&&_(r,"value"))||_(r,"get")||_(r,"set")||r.configurable||_(r,"writable")&&!r.writable||_(r,"enumerable")&&!r.enumerable?i(e,t,r):(e[t]=r.value,e)};h?(d||(Ve.f=B,$.f=j,S(v,"buffer"),S(v,"byteOffset"),S(v,"byteLength"),S(v,"length")),at({target:"Object",stat:!0,forced:!d},{getOwnPropertyDescriptor:B,defineProperty:j}),e.exports=function(e,a,h){var y=e.match(/\d+$/)[0]/8,x=e+(h?"Clamped":"")+"Array",$="get"+e,k="set"+e,S=f[x],T=S,_=T&&T.prototype,B={},j=function(e,t){i(e,t,{get:function(){return function(e,t){var r=n(e);return r.view[$](t*y+r.byteOffset,!0)}(this,t)},set:function(e){return function(e,t,r){var o=n(e);h&&(r=(r=l(r))<0?0:r>255?255:255&r),o.view[k](t*y+o.byteOffset,r,!0)}(this,t,e)},enumerable:!0})};d?Qn&&(T=a((function(e,t,r,n){return qt(e,T,x),Ko(p(t)?E(t)?void 0!==n?new S(t,Ro(r,y),n):void 0!==r?new S(t,Ro(r,y)):new S(t):b(t)?A(T,t):Wo.call(T,t):new S(eo(t)),e,T)})),wt&&wt(T,g),r(t(S),(function(e){e in T||C(T,e,S[e])})),T.prototype=_):(T=a((function(e,t,r,n){qt(e,T,x);var i,a,l,d=0,f=0;if(p(t)){if(!E(t))return b(t)?A(T,t):Wo.call(T,t);i=t,f=Ro(r,y);var h=t.byteLength;if(void 0===n){if(h%y)throw s(F);if((a=h-f)<0)throw s(F)}else if((a=ee(n)*y)+f>h)throw s(F);l=a/y}else l=eo(t),i=new c(a=l*y);for(o(e,{buffer:i,byteOffset:f,byteLength:a,length:l,view:new u(i)});d<l;)j(e,d++)})),wt&&wt(T,g),_=T.prototype=be(v)),_.constructor!==T&&C(_,"constructor",T),m&&C(_,m,x),B[x]=T,at({global:!0,forced:T!=S,sham:!d},B),w in T||C(T,w,y),w in _||C(_,w,y),Ut(x)}):e.exports=function(){}}));Jo("Int32",(function(e){return function(t,r,n){return e(this,t,r,n)}}));var Yo=Zn.aTypedArray;(0,Zn.exportTypedArrayMethod)("set",(function(e){Yo(this);var t=Ro(arguments.length>1?arguments[1]:void 0,1),r=this.length,n=lt(e),o=ee(n.length),i=0;if(o+t>r)throw RangeError("Wrong length");for(;i<o;)this[t+i]=n[i++]}),e((function(){new Int8Array(1).set({})})));var Qo=Zn.aTypedArray,ei=[].sort;(0,Zn.exportTypedArrayMethod)("sort",(function(e){return ei.call(Qo(this),e)}));var ti=function(t,r){var n=[][t];return!!n&&e((function(){n.call(null,r||function(){throw 1},1)}))},ri=[],ni=ri.sort,oi=e((function(){ri.sort(void 0)})),ii=e((function(){ri.sort(null)})),ai=ti("sort");at({target:"Array",proto:!0,forced:oi||!ii||!ai},{sort:function(e){return void 0===e?ni.call(lt(this)):ni.call(lt(this),Vt(e))}});var li=function(){var e=b(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t};function si(e,t){return RegExp(e,t)}var ci={UNSUPPORTED_Y:e((function(){var e=si("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),BROKEN_CARET:e((function(){var e=si("^r","gy");return e.lastIndex=2,null!=e.exec("str")}))},ui=RegExp.prototype.exec,di=E("native-string-replace",String.prototype.replace),fi=ui,hi=function(){var e=/a/,t=/b*/g;return ui.call(e,"a"),ui.call(t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),pi=ci.UNSUPPORTED_Y||ci.BROKEN_CARET,mi=void 0!==/()??/.exec("")[1];(hi||mi||pi)&&(fi=function(e){var t,r,n,o,i=this,a=pi&&i.sticky,l=li.call(i),s=i.source,c=0,u=e;return a&&(-1===(l=l.replace("y","")).indexOf("g")&&(l+="g"),u=String(e).slice(i.lastIndex),i.lastIndex>0&&(!i.multiline||i.multiline&&"\n"!==e[i.lastIndex-1])&&(s="(?: "+s+")",u=" "+u,c++),r=new RegExp("^(?:"+s+")",l)),mi&&(r=new RegExp("^"+s+"$(?!\\s)",l)),hi&&(t=i.lastIndex),n=ui.call(a?r:i,u),a?n?(n.input=n.input.slice(c),n[0]=n[0].slice(c),n.index=i.lastIndex,i.lastIndex+=n[0].length):i.lastIndex=0:hi&&n&&(i.lastIndex=i.global?n.index+n[0].length:t),mi&&n&&n.length>1&&di.call(n[0],r,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(n[o]=void 0)})),n});var gi=fi;at({target:"RegExp",proto:!0,forced:/./.exec!==gi},{exec:gi}),at({global:!0},{globalThis:f});var vi=Z("species"),yi=!e((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})),bi="$0"==="a".replace(/./,"$0"),xi=Z("replace"),wi=!!/./[xi]&&""===/./[xi]("a","$0"),$i=!e((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var r="ab".split(e);return 2!==r.length||"a"!==r[0]||"b"!==r[1]})),ki=function(e){return function(t,r){var n,o,a=String(i(t)),l=Y(r),s=a.length;return l<0||l>=s?e?"":void 0:(n=a.charCodeAt(l))<55296||n>56319||l+1===s||(o=a.charCodeAt(l+1))<56320||o>57343?e?a.charAt(l):n:e?a.slice(l,l+2):o-56320+(n-55296<<10)+65536}},Ci={codeAt:ki(!1),charAt:ki(!0)}.charAt,Fi=function(e,t,r){return t+(r?Ci(e,t).length:1)},Ai=Math.floor,Si="".replace,Ei=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Ti=/\$([$&'`]|\d{1,2})/g,_i=function(e,t,r,n,o,i){var a=r+e.length,l=n.length,s=Ti;return void 0!==o&&(o=lt(o),s=Ei),Si.call(i,s,(function(i,s){var c;switch(s.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,r);case"'":return t.slice(a);case"<":c=o[s.slice(1,-1)];break;default:var u=+s;if(0===u)return i;if(u>l){var d=Ai(u/10);return 0===d?i:d<=l?void 0===n[d-1]?s.charAt(1):n[d-1]+s.charAt(1):i}c=n[u-1]}return void 0===c?"":c}))},Bi=function(e,t){var n=e.exec;if("function"==typeof n){var o=n.call(e,t);if("object"!=typeof o)throw TypeError("RegExp exec method returned something other than an Object or null");return o}if("RegExp"!==r(e))throw TypeError("RegExp#exec called on incompatible receiver");return gi.call(e,t)},ji=Math.max,Pi=Math.min;!function(t,r,n,o){var i=Z(t),a=!e((function(){var e={};return e[i]=function(){return 7},7!=""[t](e)})),l=a&&!e((function(){var e=!1,r=/a/;return"split"===t&&((r={}).constructor={},r.constructor[vi]=function(){return r},r.flags="",r[i]=/./[i]),r.exec=function(){return e=!0,null},r[i](""),!e}));if(!a||!l||"replace"===t&&(!yi||!bi||wi)||"split"===t&&!$i){var s=/./[i],c=n(i,""[t],(function(e,t,r,n,o){return t.exec===gi?a&&!o?{done:!0,value:s.call(t,r,n)}:{done:!0,value:e.call(r,t,n)}:{done:!1}}),{REPLACE_KEEPS_$0:bi,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:wi}),u=c[0],d=c[1];qe(String.prototype,t,u),qe(RegExp.prototype,i,2==r?function(e,t){return d.call(e,this,t)}:function(e){return d.call(e,this)})}o&&C(RegExp.prototype[i],"sham",!0)}("replace",2,(function(e,t,r,n){var o=n.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,a=n.REPLACE_KEEPS_$0,l=o?"$":"$0";return[function(r,n){var o=i(this),a=null==r?void 0:r[e];return void 0!==a?a.call(r,o,n):t.call(String(o),r,n)},function(e,n){if(!o&&a||"string"==typeof n&&-1===n.indexOf(l)){var i=r(t,e,this,n);if(i.done)return i.value}var s=b(e),c=String(this),u="function"==typeof n;u||(n=String(n));var d=s.global;if(d){var f=s.unicode;s.lastIndex=0}for(var h=[];;){var p=Bi(s,c);if(null===p)break;if(h.push(p),!d)break;""===String(p[0])&&(s.lastIndex=Fi(c,ee(s.lastIndex),f))}for(var m,g="",v=0,y=0;y<h.length;y++){p=h[y];for(var x=String(p[0]),w=ji(Pi(Y(p.index),c.length),0),$=[],k=1;k<p.length;k++)$.push(void 0===(m=p[k])?m:String(m));var C=p.groups;if(u){var F=[x].concat($,w,c);void 0!==C&&F.push(C);var A=String(n.apply(void 0,F))}else A=_i(x,c,w,$,C,n);w>=v&&(g+=c.slice(v,w)+A,v=w+x.length)}return g+c.slice(v)}]}));var zi=$.f,Di=f.Symbol;if(h&&"function"==typeof Di&&(!("description"in Di.prototype)||void 0!==Di().description)){var Mi={},Li=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),t=this instanceof Li?new Di(e):void 0===e?Di():Di(e);return""===e&&(Mi[t]=!0),t};Je(Li,Di);var Oi=Li.prototype=Di.prototype;Oi.constructor=Li;var Hi=Oi.toString,Ii="Symbol(test)"==String(Di("test")),Ri=/^Symbol\((.*)\)[^)]+$/;zi(Oi,"description",{configurable:!0,get:function(){var e=p(this)?this.valueOf():this,t=Hi.call(e);if(_(Mi,e))return"";var r=Ii?t.slice(7,-1):t.replace(Ri,"$1");return""===r?void 0:r}}),at({global:!0,forced:!0},{Symbol:Li})}function Ni(){}const Wi=e=>e;function Ui(e,t){for(const r in t)e[r]=t[r];return e}function Vi(e){return e()}function qi(){return Object.create(null)}function Gi(e){e.forEach(Vi)}function Xi(e){return"function"==typeof e}function Zi(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}let Ki;function Ji(e,t){return Ki||(Ki=document.createElement("a")),Ki.href=t,e===Ki.href}function Yi(e,t){return e!=e?t==t:e!==t}function Qi(e){if(null==e)return Ni;for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];const o=e.subscribe(...r);return o.unsubscribe?()=>o.unsubscribe():o}function ea(e){let t;return Qi(e,(e=>t=e))(),t}function ta(e,t,r){e.$$.on_destroy.push(Qi(t,r))}function ra(e,t,r,n){if(e){const o=na(e,t,r,n);return e[0](o)}}function na(e,t,r,n){return e[1]&&n?Ui(r.ctx.slice(),e[1](n(t))):r.ctx}function oa(e,t,r,n){if(e[2]&&n){const o=e[2](n(r));if(void 0===t.dirty)return o;if("object"==typeof o){const e=[],r=Math.max(t.dirty.length,o.length);for(let n=0;n<r;n+=1)e[n]=t.dirty[n]|o[n];return e}return t.dirty|o}return t.dirty}function ia(e,t,r,n,o,i){if(o){const a=na(t,r,n,i);e.p(a,o)}}function aa(e){if(e.ctx.length>32){const t=[],r=e.ctx.length/32;for(let e=0;e<r;e++)t[e]=-1;return t}return-1}function la(e){const t={};for(const r in e)"$"!==r[0]&&(t[r]=e[r]);return t}function sa(e,t){const r={};t=new Set(t);for(const n in e)t.has(n)||"$"===n[0]||(r[n]=e[n]);return r}function ca(e){return null==e?"":e}function ua(e,t,r){return e.set(r),t}function da(e){return e&&Xi(e.destroy)?e.destroy:Ni}const fa="undefined"!=typeof window;let ha=fa?()=>window.performance.now():()=>Date.now(),pa=fa?e=>requestAnimationFrame(e):Ni;const ma=new Set;function ga(e){ma.forEach((t=>{t.c(e)||(ma.delete(t),t.f())})),0!==ma.size&&pa(ga)}function va(e){let t;return 0===ma.size&&pa(ga),{promise:new Promise((r=>{ma.add(t={c:e,f:r})})),abort(){ma.delete(t)}}}function ya(e,t){e.appendChild(t)}function ba(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function xa(e){const t=Ca("style");return function(e,t){ya(e.head||e,t)}(ba(e),t),t.sheet}function wa(e,t,r){e.insertBefore(t,r||null)}function $a(e){e.parentNode.removeChild(e)}function ka(e,t){for(let r=0;r<e.length;r+=1)e[r]&&e[r].d(t)}function Ca(e){return document.createElement(e)}function Fa(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function Aa(e){return document.createTextNode(e)}function Sa(){return Aa(" ")}function Ea(){return Aa("")}function Ta(e,t,r,n){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r,n)}function _a(e){return function(t){return t.preventDefault(),e.call(this,t)}}function Ba(e){return function(t){return t.stopPropagation(),e.call(this,t)}}function ja(e,t,r){null==r?e.removeAttribute(t):e.getAttribute(t)!==r&&e.setAttribute(t,r)}function Pa(e){return Array.from(e.childNodes)}function za(e,t){t=""+t,e.wholeText!==t&&(e.data=t)}function Da(e,t,r,n){null===r?e.style.removeProperty(t):e.style.setProperty(t,r,n?"important":"")}function Ma(e,t,r){e.classList[r?"add":"remove"](t)}function La(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const n=document.createEvent("CustomEvent");return n.initCustomEvent(e,r,!1,t),n}class Oa{constructor(){this.e=this.n=null}c(e){this.h(e)}m(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this.e||(this.e=Ca(t.nodeName),this.t=t,this.c(e)),this.i(r)}h(e){this.e.innerHTML=e,this.n=Array.from(this.e.childNodes)}i(e){for(let t=0;t<this.n.length;t+=1)wa(this.t,this.n[t],e)}p(e){this.d(),this.h(e),this.i(this.a)}d(){this.n.forEach($a)}}const Ha=new Map;let Ia,Ra=0;function Na(e){let t=5381,r=e.length;for(;r--;)t=(t<<5)-t^e.charCodeAt(r);return t>>>0}function Wa(e,t){const r={stylesheet:xa(t),rules:{}};return Ha.set(e,r),r}function Ua(e,t,r,n,o,i,a){let l=arguments.length>7&&void 0!==arguments[7]?arguments[7]:0;const s=16.666/n;let c="{\n";for(let e=0;e<=1;e+=s){const n=t+(r-t)*i(e);c+=100*e+`%{${a(n,1-n)}}\n`}const u=c+`100% {${a(r,1-r)}}\n}`,d=`__svelte_${Na(u)}_${l}`,f=ba(e),{stylesheet:h,rules:p}=Ha.get(f)||Wa(f,e);p[d]||(p[d]=!0,h.insertRule(`@keyframes ${d} ${u}`,h.cssRules.length));const m=e.style.animation||"";return e.style.animation=`${m?`${m}, `:""}${d} ${n}ms linear ${o}ms 1 both`,Ra+=1,d}function Va(e,t){const r=(e.style.animation||"").split(", "),n=r.filter(t?e=>e.indexOf(t)<0:e=>-1===e.indexOf("__svelte")),o=r.length-n.length;o&&(e.style.animation=n.join(", "),Ra-=o,Ra||pa((()=>{Ra||(Ha.forEach((e=>{const{stylesheet:t}=e;let r=t.cssRules.length;for(;r--;)t.deleteRule(r);e.rules={}})),Ha.clear())})))}function qa(e){Ia=e}function Ga(){if(!Ia)throw new Error("Function called outside component initialization");return Ia}function Xa(e){Ga().$$.on_mount.push(e)}function Za(e){Ga().$$.after_update.push(e)}function Ka(e){return Ga().$$.context.get(e)}function Ja(e,t){const r=e.$$.callbacks[t.type];r&&r.slice().forEach((e=>e.call(this,t)))}const Ya=[],Qa=[],el=[],tl=[],rl=Promise.resolve();let nl=!1;function ol(e){el.push(e)}const il=new Set;let al,ll=0;function sl(){const e=Ia;do{for(;ll<Ya.length;){const e=Ya[ll];ll++,qa(e),cl(e.$$)}for(qa(null),Ya.length=0,ll=0;Qa.length;)Qa.pop()();for(let e=0;e<el.length;e+=1){const t=el[e];il.has(t)||(il.add(t),t())}el.length=0}while(Ya.length);for(;tl.length;)tl.pop()();nl=!1,il.clear(),qa(e)}function cl(e){if(null!==e.fragment){e.update(),Gi(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(ol)}}function ul(){return al||(al=Promise.resolve(),al.then((()=>{al=null}))),al}function dl(e,t,r){e.dispatchEvent(La(`${t?"intro":"outro"}${r}`))}const fl=new Set;let hl;function pl(){hl={r:0,c:[],p:hl}}function ml(){hl.r||Gi(hl.c),hl=hl.p}function gl(e,t){e&&e.i&&(fl.delete(e),e.i(t))}function vl(e,t,r,n){if(e&&e.o){if(fl.has(e))return;fl.add(e),hl.c.push((()=>{fl.delete(e),n&&(r&&e.d(1),n())})),e.o(t)}}const yl={duration:0};function bl(e,t,r){let n,o,i=t(e,r),a=!1,l=0;function s(){n&&Va(e,n)}function c(){const{delay:t=0,duration:r=300,easing:c=Wi,tick:u=Ni,css:d}=i||yl;d&&(n=Ua(e,0,1,r,t,c,d,l++)),u(0,1);const f=ha()+t,h=f+r;o&&o.abort(),a=!0,ol((()=>dl(e,!0,"start"))),o=va((t=>{if(a){if(t>=h)return u(1,0),dl(e,!0,"end"),s(),a=!1;if(t>=f){const e=c((t-f)/r);u(e,1-e)}}return a}))}let u=!1;return{start(){u||(u=!0,Va(e),Xi(i)?(i=i(),ul().then(c)):c())},invalidate(){u=!1},end(){a&&(s(),a=!1)}}}function xl(e,t,r){let n,o=t(e,r),i=!0;const a=hl;function l(){const{delay:t=0,duration:r=300,easing:l=Wi,tick:s=Ni,css:c}=o||yl;c&&(n=Ua(e,1,0,r,t,l,c));const u=ha()+t,d=u+r;ol((()=>dl(e,!1,"start"))),va((t=>{if(i){if(t>=d)return s(0,1),dl(e,!1,"end"),--a.r||Gi(a.c),!1;if(t>=u){const e=l((t-u)/r);s(1-e,e)}}return i}))}return a.r+=1,Xi(o)?ul().then((()=>{o=o(),l()})):l(),{end(t){t&&o.tick&&o.tick(1,0),i&&(n&&Va(e,n),i=!1)}}}function wl(e,t,r,n){let o=t(e,r),i=n?0:1,a=null,l=null,s=null;function c(){s&&Va(e,s)}function u(e,t){const r=e.b-i;return t*=Math.abs(r),{a:i,b:e.b,d:r,duration:t,start:e.start,end:e.start+t,group:e.group}}function d(t){const{delay:r=0,duration:n=300,easing:d=Wi,tick:f=Ni,css:h}=o||yl,p={start:ha()+r,b:t};t||(p.group=hl,hl.r+=1),a||l?l=p:(h&&(c(),s=Ua(e,i,t,n,r,d,h)),t&&f(0,1),a=u(p,n),ol((()=>dl(e,t,"start"))),va((t=>{if(l&&t>l.start&&(a=u(l,n),l=null,dl(e,a.b,"start"),h&&(c(),s=Ua(e,i,a.b,a.duration,0,d,o.css))),a)if(t>=a.end)f(i=a.b,1-i),dl(e,a.b,"end"),l||(a.b?c():--a.group.r||Gi(a.group.c)),a=null;else if(t>=a.start){const e=t-a.start;i=a.a+a.d*d(e/a.duration),f(i,1-i)}return!(!a&&!l)})))}return{run(e){Xi(o)?ul().then((()=>{o=o(),d(e)})):d(e)},end(){c(),a=l=null}}}const $l="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:global;function kl(e,t){vl(e,1,1,(()=>{t.delete(e.key)}))}function Cl(e,t,r,n,o,i,a,l,s,c,u,d){let f=e.length,h=i.length,p=f;const m={};for(;p--;)m[e[p].key]=p;const g=[],v=new Map,y=new Map;for(p=h;p--;){const e=d(o,i,p),l=r(e);let s=a.get(l);s?n&&s.p(e,t):(s=c(l,e),s.c()),v.set(l,g[p]=s),l in m&&y.set(l,Math.abs(p-m[l]))}const b=new Set,x=new Set;function w(e){gl(e,1),e.m(l,u),a.set(e.key,e),u=e.first,h--}for(;f&&h;){const t=g[h-1],r=e[f-1],n=t.key,o=r.key;t===r?(u=t.first,f--,h--):v.has(o)?!a.has(n)||b.has(n)?w(t):x.has(o)?f--:y.get(n)>y.get(o)?(x.add(n),w(t)):(b.add(o),f--):(s(r,a),f--)}for(;f--;){const t=e[f];v.has(t.key)||s(t,a)}for(;h;)w(g[h-1]);return g}function Fl(e,t){const r={},n={},o={$$scope:1};let i=e.length;for(;i--;){const a=e[i],l=t[i];if(l){for(const e in a)e in l||(n[e]=1);for(const e in l)o[e]||(r[e]=l[e],o[e]=1);e[i]=l}else for(const e in a)o[e]=1}for(const e in n)e in r||(r[e]=void 0);return r}function Al(e){return"object"==typeof e&&null!==e?e:{}}function Sl(e){e&&e.c()}function El(e,t,r,n){const{fragment:o,on_mount:i,on_destroy:a,after_update:l}=e.$$;o&&o.m(t,r),n||ol((()=>{const t=i.map(Vi).filter(Xi);a?a.push(...t):Gi(t),e.$$.on_mount=[]})),l.forEach(ol)}function Tl(e,t){const r=e.$$;null!==r.fragment&&(Gi(r.on_destroy),r.fragment&&r.fragment.d(t),r.on_destroy=r.fragment=null,r.ctx=[])}function _l(e,t){-1===e.$$.dirty[0]&&(Ya.push(e),nl||(nl=!0,rl.then(sl)),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function Bl(e,t,r,n,o,i,a){let l=arguments.length>7&&void 0!==arguments[7]?arguments[7]:[-1];const s=Ia;qa(e);const c=e.$$={fragment:null,ctx:null,props:i,update:Ni,not_equal:o,bound:qi(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(s?s.$$.context:[])),callbacks:qi(),dirty:l,skip_bound:!1,root:t.target||s.$$.root};a&&a(c.root);let u=!1;if(c.ctx=r?r(e,t.props||{},(function(t,r){const n=!(arguments.length<=2)&&arguments.length-2?arguments.length<=2?void 0:arguments[2]:r;return c.ctx&&o(c.ctx[t],c.ctx[t]=n)&&(!c.skip_bound&&c.bound[t]&&c.bound[t](n),u&&_l(e,t)),r})):[],c.update(),u=!0,Gi(c.before_update),c.fragment=!!n&&n(c.ctx),t.target){if(t.hydrate){const e=Pa(t.target);c.fragment&&c.fragment.l(e),e.forEach($a)}else c.fragment&&c.fragment.c();t.intro&&gl(e.$$.fragment),El(e,t.target,t.anchor,t.customElement),sl()}qa(s)}class jl{$destroy(){Tl(this,1),this.$destroy=Ni}$on(e,t){const r=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return r.push(t),()=>{const e=r.indexOf(t);-1!==e&&r.splice(e,1)}}$set(e){var t;this.$$set&&(t=e,0!==Object.keys(t).length)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}var Pl,zl,Dl,Ml,Ll;!function(e){e.AccountDataUpdate="accountDataUpdate",e.UpdateCounterMail="updateCounterMail",e.UpdateCounterLove="updateCounterLove",e.UpdateCounterGames="updateCounterGames",e.UpdateCounterOK="updateCounterOK",e.UpdateCounterVK="updateCounterVK",e.UpdateCounterMoyMir="updateCounterMoyMir",e.UpdateCounterCloudStories="updateCounterCloudStories",e.UpdateQuotaCounters="updateQuotaCounters"}(Pl||(Pl={})),function(e){e.Mount="mount",e.VisibilityChange="visibilitychange",e.AuthChange="authChange",e.AuthLost="authLost",e.BeforeLogout="beforeLogout",e.Update="update",e.LoginRequest="loginRequest",e.RegisterRequest="registerRequest",e.ColorThemeChange="colorThemeChange",e.InvalidServerSideAuth="invalidServerSideAuth",e.LangChange="langChange",e.SearchExtend="searchExtend",e.SearchCollapse="searchCollapse",e.SearchBoxMount="searchBoxMount"}(zl||(zl={})),function(e){e.Show="show",e.Hide="hide"}(Dl||(Dl={})),function(e){e.Show="show",e.Hide="hide",e.Load="load",e.Focus="focus"}(Ml||(Ml={})),function(e){e.Show="show",e.Hide="hide"}(Ll||(Ll={}));const Ol=window.__PH,Hl=!!Ol,Il=()=>{var e;return null===(e=Jl("activeUser"))||void 0===e?void 0:e.bind(Ol)()},Rl=e=>{var t;return null===(t=Jl("loadAccountsList"))||void 0===t?void 0:t.bind(Ol)(e)},Nl=e=>null==Ol?void 0:Ol.on(zl.VisibilityChange,e),Wl=e=>{var t,r;return null===(r=null===(t=Jl("authForm"))||void 0===t?void 0:t.show)||void 0===r?void 0:r.bind(Ol.authForm)(e)},Ul=(e,t)=>{var r,n;return null===(n=null===(r=Jl("authForm"))||void 0===r?void 0:r.on)||void 0===n?void 0:n.bind(Ol.authForm)(e,t)},Vl=(e,t)=>{var r,n;return null===(n=null===(r=Jl("authMenu"))||void 0===r?void 0:r.on)||void 0===n?void 0:n.bind(Ol.authMenu)(e,t)},ql=(e,t)=>{var r,n;return null===(n=null===(r=Jl("marusiaMenu"))||void 0===r?void 0:r.on)||void 0===n?void 0:n.bind(Ol.marusiaMenu)(e,t)},Gl=e=>{var t;return null===(t=Jl("cookie"))||void 0===t?void 0:t.bind(Ol)(e)},Xl=(e,t,r)=>{var n;return null===(n=Jl("cookie"))||void 0===n?void 0:n.bind(Ol)(e,t,r)},Zl=(e,t,r,n)=>{var o,i,a;return null===(a=null===(i=null===(o=Jl("cookie"))||void 0===o?void 0:o.fieldCookie)||void 0===i?void 0:i.bind(Ol))||void 0===a?void 0:a(e,t,r,n)},Kl=(e,t,r)=>Zl(e,t,r);function Jl(e){if(Ol&&e in Ol)return Ol[e]}const Yl=[];function Ql(e,t){return{subscribe:es(e,t).subscribe}}function es(e){let t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ni;const n=new Set;function o(r){if(Zi(e,r)&&(e=r,t)){const t=!Yl.length;for(const t of n)t[1](),Yl.push(t,e);if(t){for(let e=0;e<Yl.length;e+=2)Yl[e][0](Yl[e+1]);Yl.length=0}}}function i(t){o(t(e))}function a(i){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ni;const l=[i,a];return n.add(l),1===n.size&&(t=r(o)||Ni),i(e),()=>{n.delete(l),0===n.size&&(t(),t=null)}}return{set:o,update:i,subscribe:a}}function ts(e,t,r){const n=!Array.isArray(e),o=n?[e]:e,i=t.length<2;return Ql(r,(e=>{let r=!1;const a=[];let l=0,s=Ni;const c=()=>{if(l)return;s();const r=t(n?a[0]:a,e);i?e(r):s=Xi(r)?r:Ni},u=o.map(((e,t)=>Qi(e,(e=>{a[t]=e,l&=~(1<<t),r&&c()}),(()=>{l|=1<<t}))));return r=!0,c(),function(){Gi(u),s()}}))}const rs=/\.mini-mail\.ru$/.test(window.location.host),ns=/\.devmail\.ru$/.test(window.location.host),os=rs?"mini-mail.ru":"mail.ru",is=ns?"devmail.ru":os;var as;!function(e){e.BUILD="2.96.3",e.MODERN_BROWSERS_REGEXP=/(Edge\/(79(?:\.0)?|79(?:\.([1-9]|\d{2,}))?|([8-9]\d|\d{3,})(?:\.\d+)?|83(?:\.0)?|83(?:\.([1-9]|\d{2,}))?|(8[4-9]|9\d|\d{3,})(?:\.\d+)?))|((Chromium|Chrome)\/(61\.0|61\.([1-9]|\d{2,})|(6[2-9]|[7-9]\d|\d{3,})\.\d+|83\.0|83\.([1-9]|\d{2,})|(8[4-9]|9\d|\d{3,})\.\d+)(?:\.\d+)?)|(Version\/(13\.0|13\.([1-9]|\d{2,})|(1[4-9]|[2-9]\d|\d{3,})\.\d+|14\.0|14\.([1-9]|\d{2,})|(1[5-9]|[2-9]\d|\d{3,})\.\d+|15\.0|15\.([1-9]|\d{2,})|(1[6-9]|[2-9]\d|\d{3,})\.\d+)(?:\.\d+)? Safari\/)|(Firefox\/(60\.0|60\.([1-9]|\d{2,})|(6[1-9]|[7-9]\d|\d{3,})\.\d+)\.\d+)|(Firefox\/(60\.0|60\.([1-9]|\d{2,})|(6[1-9]|[7-9]\d|\d{3,})\.\d+)(pre|[ab]\d+[a-z]*)?)/}(as||(as={}));const ls=Ql(Jl("xray")||{send:()=>{}},(()=>{}));function ss(e,t){const r=ea(ls);!ns&&r&&Object.keys(r).length&&r.send(e,t)}const cs=()=>{var e;const t=ea(ls),r=t&&Object.keys(t).length&&t.getConfig()||{};return(null===(e=null==r?void 0:r.defaultParams)||void 0===e?void 0:e.p)?r.defaultParams.p:"whiteline"};function us(e,t,r){const n=ea(ls);console.log(`ERROR (Whiteline: ${e}): `,r||t);const{name:o,message:i,lineNumber:a,columnNumber:l,stack:s}=t;!ns&&n&&Object.keys(n).length&&n.send(e,{rlog:"whiteline_errors",rlog_message:{name:o,at:`${a}:${l}`,message:r||i,stack:s}})}const ds="pp_l",fs="pp_t",hs="mp_l",ps="mp_t";var ms=Z("match"),gs=$.f,vs=Xe.f,ys=Ie.set,bs=Z("match"),xs=f.RegExp,ws=xs.prototype,$s=/a/g,ks=/a/g,Cs=new xs($s)!==$s,Fs=ci.UNSUPPORTED_Y;if(h&&ot("RegExp",!Cs||Fs||e((function(){return ks[bs]=!1,xs($s)!=$s||xs(ks)==ks||"/a/i"!=xs($s,"i")})))){for(var As=function(e,t){var n,o,i,a=this instanceof As,l=p(n=e)&&(void 0!==(o=n[ms])?!!o:"RegExp"==r(n)),s=void 0===t;if(!a&&l&&e.constructor===As&&s)return e;Cs?l&&!s&&(e=e.source):e instanceof As&&(s&&(t=li.call(e)),e=e.source),Fs&&(i=!!t&&t.indexOf("y")>-1)&&(t=t.replace(/y/g,""));var c=Ko(Cs?new xs(e,t):xs(e,t),a?this:ws,As);return Fs&&i&&ys(c,{sticky:i}),c},Ss=function(e){e in As||gs(As,e,{configurable:!0,get:function(){return xs[e]},set:function(t){xs[e]=t}})},Es=vs(xs),Ts=0;Es.length>Ts;)Ss(Es[Ts++]);ws.constructor=As,As.prototype=ws,qe(f,"RegExp",As)}Ut("RegExp");const _s="ph",Bs=`.${is}`;class js{constructor(e,t,r,n){this.limitField=e,this.timeField=t,this.displayLimitPeriodDays=r,this.displayLimitTimes=n,this.initStoredLimit=this.getLimitValue(),this.initStoredTimeLimit=this.getLimitTime(),this.isValidLimitCookie=Number.isInteger(this.initStoredLimit)&&Number.isInteger(this.initStoredTimeLimit)}static removeField(e){Zl(_s,Bs,e,null)}init(e){this.validationDecorator(e)}count(){this.validationDecorator((()=>{const e=this.initStoredLimit-1||-1;this.setLimitValue(Math.min(e,this.displayLimitTimes))}))}getLimitValue(){return+Kl(_s,Bs,this.limitField)}getLimitTime(){return+Kl(_s,Bs,this.timeField)}setLimitValue(e){Zl(_s,Bs,this.limitField,e.toString())}setLimitTime(e){Zl(_s,Bs,this.timeField,e.toString())}isLimitTimeOver(){return Date.now()>this.initStoredTimeLimit+864e5*this.displayLimitPeriodDays}setLimit(){this.setLimitValue(this.displayLimitTimes),this.setLimitTime(Date.now())}validationDecorator(e){this.displayLimitPeriodDays&&this.displayLimitTimes&&(this.isValidLimitCookie?this.isLimitTimeOver()?this.setLimit():(this.initStoredLimit>0&&(null==e||e()),0===this.initStoredLimit&&this.setLimit()):this.setLimit())}}function Ps(e){let{url:t,location:r,exclude:n}=e;const o=window.location.href.replace(`${window.location.protocol}//`,"");let i=!1;try{i=n&&new RegExp(n).test(o)}catch(e){}return!i&&(r?o.startsWith(r):new URL(t).host===window.location.host)}function zs(e,t,r){return!("mail"!==e||!/@vk\.com$/.test(t)||!r.items.vkpochta)}function Ds(e){e.forEach((e=>js.removeField(e)))}function Ms(){var e;return`.${(null===(e=null===window||void 0===window?void 0:window.location)||void 0===e?void 0:e.host.split(".").slice(-2).join("."))||"mail.ru"}`}function Ls(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:45;return`//filin.${os}/pic?from=ph&email=${encodeURIComponent(e)}&width=${r}&height=${r}`+(t?`&name=${encodeURIComponent(t)}`:"")}var Os=function(){return Os=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Os.apply(this,arguments)};var Hs="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Is(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Rs(e,t){return e(t={exports:{}},t.exports),t.exports}var Ns=Rs((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var r=/([\w.-]+)(?::([^\s]+))?/i,n=/^-/,o=/^([\d.]+)([smdwh]$)/,i=/\${[\w_]+}/g,a=/\s+/,l=function(){return"-"+Math.random().toString(36).substr(2,5)};function s(e){return e&&"object"==typeof e}var c={s:function(e){return e},m:function(e){return this.s(60*e)},h:function(e){return this.m(60*e)},d:function(e){return this.h(24*e)},w:function(e){return this.d(7*e)}},u=function(e){return String(null!=e?e:"")},d=function(e){return null==e?"":encodeURIComponent(String(e))},f=function(e){return"Infinity"===e?1/0:"-Infinity"===e?-1/0:parseInt(e,10)},h=function(e){return null==e?NaN:(e=String(e).replace(",","."),parseFloat(e))},p=function(e){return/^(true|T|1)$/i.test(String(e))},m=function(e){var t,r=o.exec(e);if(null!==r){var n=r[2],i=r[1];return(null===(t=c[n])||void 0===t?void 0:t.call(c,parseFloat(i)))||0}return parseFloat(e)||0},g=function(e,t){if(null==e)return t;if("object"==typeof e)return e;if("string"==typeof e)try{return e.startsWith('"')&&(e=e.substring(1,e.length-1)),JSON.parse(e)}catch(e){}return t},v=function(e){return function(t,r){if(e=e||{},!t)return r;var n=document.createElement("a");return n.href=t,"https:"===n.protocol||"http:"===n.protocol?e.regexp?e.regexp.test(t)?t:r:t:r}},y=function(e){return function(t,r){return e.indexOf(t)>-1?t:r}};function b(e){return e.replace(/\\\$/g,"$$").replace(/\\{/g,"{")}function x(e,t,r){return function(n){var o=n[e];return t!==u&&t!==d?r:null==o?"":t(o)}}function w(e,t,r){if("string"!=typeof e)return function(){return r};var n,o,a,l=[],c=0;do{if((n=i.exec(e))&&"string"==typeof n[0]){if("\\"===e.slice(n.index-1,n.index))o=e.slice(c,n.index-1),l.push(b(o)),l.push(e.slice(n.index,n.index+n[0].length));else{o=e.slice(c,n.index),l.push(b(o));var u=n[0].slice(2,n[0].length-1);a=x(u,t[u],n[0]),l.push(a)}c=n.index+n[0].length}}while(null!==n);return o=e.slice(c),l.push(b(o)),function(e){return function(t){t=s(t)?t:{};for(var r=[],n=0,o=e;n<o.length;n++){var i=o[n];if("function"==typeof i)try{r.push(i(t))}catch(e){}else r.push(i)}return r.join("")}}(l)}var $=function(){var e=this;this.featuresToSalt=[],this.list={},this.filters={},this.rearrangeGroups=function(e,t,r,n){var o=e[t].hasOwnProperty("children"),i=e[t].hasOwnProperty("depends");function a(){return e.splice.apply(e,[0,0].concat(e.splice(r,n)))}return o&&a||i&&e.splice.apply(e,[r+1,0].concat(e.splice(t,1)))&&a()||e.splice.apply(e,[0,0].concat(e.splice(t,1))),e},this.extend=function(t,r){for(var n in t){var o=t[n];1!=o&&0!=r||(o={state:!!o}),o.name=o.name||n,o=Object.assign(e.list[n]||{},t[n]),null==r||r(o,n),e.list[n]=Object.assign(e.list[n]||{},t[n])}},this.import=function(t){if("string"!=typeof t)for(var r in t){var n={state:!0,name:r};n.data=t[r];var o={};o[r]=n,e.extend(o)}else e.importFromString(t)},this.importFromString=function(t){t.trim().split(a).forEach((function(t){var o=t.match(r);if(o){var i=o[1],a=e.featuresToSalt.includes(i)?""+i+l():i,s=o[2],c=!0;n.test(a)&&(c=!1,a=a.replace(n,""));var u=e.get(a);if(u)return u.data=s||null,u.dataArray=[].concat(u.dataArray,s),void(u.state=c);var d={};d[a]={state:c,data:s||null,name:i,dataArray:[s||null]},e.extend(d)}}))},this.isAvailable=function(t,r){var n=e.get(t);if(null==n?void 0:n.depends)for(var o=n.depends.length;o--;)if(!e.isAvailable(n.depends[o],!0))return!1;return!!n&&(!r||n.state||n.menu)},this.has=function(t){return e.isAvailable(t,!0)},this.get=function(t){return e.featuresToSalt.includes(t)&&(t+=l()),e.list[t]},this.getAs=function(t,r,n){var o;if(!e.has(r))return t(n,null);var i=t(null===(o=e.get(r))||void 0===o?void 0:o.data,null);return null!==i?i:t(n,null)},this.getAsString=function(t,r){return e.getAs(u,t,r)},this.getAsBoolean=function(t,r){return e.getAs(p,t,r)},this.getAsArray=function(t,r,n){if(void 0===r&&(r=[]),"string"!=typeof n&&(n=","),!e.has(t))return r;var o=(e.get(t)||{}).data;if(null==o)return[];if("object"==typeof o){var i=Object.keys(o).map((function(e){return parseInt(e,10)}));return i.some(isNaN)||i.some((function(e,t){return e!==t}))?r:Object.values(o)}return String(o).split(n)},this.getAsTypedArray=function(t,r,n,o){if(void 0===n&&(n=[]),!e.has(t))return n;var i=e.getAsArray(t,n,o);if("function"==typeof r)return i.map((function(e){return r(e)}));for(var a=[],l=0;l<r.length;l++)a.push(r[l](i[l]));return a},this.getAsInt=function(t,r){return e.getAs(f,t,r)},this.getAsFloat=function(t,r){return e.getAs(h,t,r)},this.getAsJSON=function(t,r){return e.getAs(g,t,r)},this.getAsEnum=function(t,r,n){var o,i;switch(!0){case"function"==typeof r:o=r;break;case s(i=r)&&"number"==typeof i.length:o=y(r);break;default:o=y([])}return e.getAs(o,t,n)},this.getAsTemplate=function(t,r,n){try{return w(e.getAsString(t,n),r,n)}catch(t){return setTimeout((function(){throw t}),1),function(){return n}}},this.getAsURLTemplate=function(t,r,n,o,i){var a,l;try{var s=e.getAsString(t,n);l=w(n||"",r,i),a=s===n?l:w(s,r,i)}catch(t){return setTimeout((function(){throw t}),1),function(){return i}}var c=v(o);return function(e){var t=a(e);return c(t,i)===i?(t=l(e),c(t,i)):t}},this.getDuration=function(t,r){return e.getAsDuration(t,r)},this.getAsDuration=function(t,r){return e.getAs(m,t,r||0)},this.getAsURL=function(t,r,n){return e.getAs(v(n),t,r)},this.setFeaturesToSalt=function(t){e.featuresToSalt=t},this.filter=function(t,r){var n,o=[],i=e.list;for(var a in"string"==typeof t&&(t=e.filters[t]||function(){return!1}),i)n=i[a],t&&!t.call(r,n,a)||o.push(n);return o},this.sortGroups=function(t,r){for(var n,o=0,i=0,a=0,l=t.length;o<l;){if(t[o].hasOwnProperty("children")&&(a=o,n=t[o].children.length+1),t[o][r]){if(!(i=o)){o++;continue}e.rearrangeGroups(t,i,a,n)}o++}return t},this.use=function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];var o=e.get(t);return!(!e.has(t)||!(null==o?void 0:o.use)||(o.use.apply(o,[o].concat([].slice.call(r,1))),0))},this.String=u,this.URLString=d,this.Int=f,this.Float=h,this.Boolean=p,this.Duration=m,this.JSON=g,this.URL=v,this.Enum=y},k=new $;t.Features=$,t.default=k}));Is(Ns);var Ws=Ns.Features,Us=Rs((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.asyncCheckOnce=void 0,t.asyncCheckOnce=function(e){e.__checked||(e.__checked=1,setTimeout(e))}}));Is(Us);var Vs=Us.asyncCheckOnce,qs=Rs((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.tmrAutoDetectID=t.tmrPush=void 0;let r=null;function n(){const e=document.querySelectorAll("script");let t=e.length;for(;t--;)if(/^(https?:)?\/\/top-fwz1\.mail\.ru/.test(e[t].src))return!0;throw new Error("[metida] TMR counter not included")}t.tmrPush=function(e){Us.asyncCheckOnce(n);try{(self._tmr||(self._tmr=[])).push(e)}catch(e){}},t.tmrAutoDetectID=function(){if(!r){const e=document.querySelectorAll("noscript");let t=[],n=e.length;for(;n--;)t=/\/\/top-fwz1\.mail\.ru\/counter\?id=(\d+)/.exec(e[n].textContent),t&&(r=t[1],console.warn("[metida] TMR counter ID (auto detected):",r))}return r}}));Is(qs),qs.tmrAutoDetectID,qs.tmrPush;var Gs=Rs((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.metidaPush=void 0,t.metidaPush=function(e,t,r,n){qs.tmrPush({id:e,type:"reachGoal",goal:t,params:r,userid:n})}}));Is(Gs),Gs.metidaPush;var Xs=Rs((function(e,t){function r(){if(!self.xray)throw new Error("[metida] XRay not included")}Object.defineProperty(t,"__esModule",{value:!0}),t.xrayCopy=void 0,t.xrayCopy=function(e,t){Us.asyncCheckOnce(r);let n=self.xray;if(n){n=n.getInstanceCopy();const r=n.getConfig().defaultParams,{p:o}=r||{};o||e||console.error("[metida] XRay project is not set"),n.setConfig({split:t,defaultParams:Object.assign({},r,{p:e||o})})}return n}}));Is(Xs),Xs.xrayCopy;var Zs=Rs((function(e,t){var r=Hs&&Hs.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r};Object.defineProperty(t,"__esModule",{value:!0}),t.useMetida=void 0;const n=e=>"object"==typeof e?!e.disabled:e,o=e=>"object"==typeof e?e.extraParams:{};t.useMetida=function(e){const{tmr:t=!0,xray:i=!0}=e.providers||{};let a;const l={xraySend:t=>{if(a=a||Xs.xrayCopy(e.xrayProject,e.xraySplit),a){const{t:n}=t,l=r(t,["t"]);a.send(n,Object.assign({},l,{dwh:Object.assign({},e.extraParams,o(i),t.dwh)}))}},tmrSend:r=>{const n=e.id||qs.tmrAutoDetectID();n&&Gs.metidaPush(n,r.goal,Object.assign({},e.extraParams,o(t),r.params),r.userid||e.login)}},s=function(e,r){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};n(t)&&l.tmrSend({goal:o.tmr||e,params:r}),n(i)&&l.xraySend({t:o.xray||e,dwh:r})};return n(t)&&null==e.id&&console.error("Metida ID (TMR counter id) not configured."),Object.assign({feature:e=>e((function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"function"==typeof e?function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e(t,l)}:function(){let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};s(e,r,t)}})),sendEvent:s},l)}}));Is(Zs);var Ks=Zs.useMetida,Js=new Ws,Ys=null,Qs=function(e){var t=e.omicronConfig,r=e.tmrCounterId,n=e.storeLocalConfig,o=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}(e,["omicronConfig","tmrCounterId","storeLocalConfig"]);n&&(t=ec(t));var i=t.Config,a=t.Segments,l=t.config,s=t.segments;Js.import(i||l||{}),l||i||console.warn("[omicronWebSDK] Сonfig object in omicronConfig is empty or null");var c=Object.assign({},a,s);Ys=Ks(Os(Os({id:r},o),{extraParams:Object.assign(c,o.extraParams)}))},ec=function(e){try{if(Object.keys(e).length)localStorage.setItem("omicronConfig",JSON.stringify(e));else{var t=localStorage.getItem("omicronConfig");e=t?JSON.parse(t):{}}}catch(e){console.warn("[omicronWebSDK] Store local config. "+e)}return e},tc=function(){if(!Ys)throw new Error("[omicronWebSDK] Metida is not included, please check if you have called init()")};const rc=e=>{const t=e((()=>()=>{}));return("undefined"!=typeof document?function(e){return Vs(tc),null==Ys?void 0:Ys.feature(e)}(e):t)||t};function nc(e){let t;const r=e[1].default,n=ra(r,e,e[0],null);return{c(){n&&n.c()},m(e,r){n&&n.m(e,r),t=!0},p(e,o){let[i]=o;n&&n.p&&(!t||1&i)&&ia(n,r,e,e[0],t?oa(r,e[0],i,null):aa(e[0]),null)},i(e){t||(gl(n,e),t=!0)},o(e){vl(n,e),t=!1},d(e){n&&n.d(e)}}}function oc(e,t,r){let{$$slots:n={},$$scope:o}=t;return e.$$set=e=>{"$$scope"in e&&r(0,o=e.$$scope)},[o,n]}class ic extends jl{constructor(e){super(),Bl(this,e,oc,nc,Yi,{})}}class ac extends ic{constructor(e){e.props.$$slots.default=e.props.$$slots.default.map((t=>function(){try{return t(...arguments)}catch(t){return us(e.props.radarName||"all_bad",t),null}})),super(e)}}const lc=function(e,t){const r=[],n=1&(t=t||0),o=2&t,i=4&t;return e.forEach((e=>{let{value:t,name:o}=e;0!==i&&null===t||r.push(`${o}=${0===n?encodeURIComponent(t):t}`)})),0===o&&r.push(`_=${Math.round((new Date).getTime()+1e9*Math.random())}`),r.join("&")},sc=function(e,t,r){const n=lc(t||[],r);return n?[e,n].join(e.includes("?")?"&":"?"):e},cc={click:"clb",show:"d",nid:"n"},uc=/^(?:cl([bn])|([adgin]))(\d+)(?:sz(\d+))?/;var dc,fc,hc,pc,mc,gc=new class{constructor(){this.sendSearchPixel=this.sendSearchPixel.bind(this)}configure(e){this.experimentId=e.experimentId,this.sitezone=e.sitezone,this.vid=e.vid,this.mpop=e.mpop,this.screenHeight=e.screenHeight,this.screenWidth=e.screenWidth,this.accounts=e.accounts,this.defaultEmail=e.email,this.hasAuth=e.hasAuth,this.gp=e.gp,this.cnt=e.cnt,this.searchPixelsParams=e.searchPixelsParams}sendToServer(e){(new Image).src=e}sendSearchPixel(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=new URLSearchParams(Object.assign({pxn:e,_:Math.round((new Date).getTime()+1e9*Math.random())},this.searchPixelsParams,t)),n=`${/_show/.test(e)?"https://fmdata.imgsmail.ru/showpxt":"https://fmdata.imgsmail.ru/pxt"}?${r.toString()}`;if(window.navigator.sendBeacon)return void navigator.sendBeacon(n);(new Image).src=n}getCounterData(e){const t=e.match(uc);if(!t)return null;const[,r,n,o,i]=t;let a="",l=!1;r?a=`s${r}`:"n"===n?a="nc":"i"===n?(l=!0,a=r):a=n;const s=i||this.sitezone;return{type:a,noRandom:l,num:o,params:[...s?[{name:"sz",value:s}]:[],...this.experimentId?[{name:"test_id",value:this.experimentId}]:[]]}}singleCounter(e){if(null===e)return;const t=`//rs.mail.ru/${e.type}${e.num}.gif`;this.sendToServer(sc(t,e.params,1<<Number(e.noRandom)<<2))}massCounter(e,t,r){e&&t&&t.length&&this.sendToServer(sc("//rs.mail.ru/bulkstat/",[{name:"type",value:e},{name:"banner_ids",value:t.map(encodeURIComponent).join(",")},...r||this.experimentId?[{name:"test_id",value:r||this.experimentId}]:[]],5))}retarget(e){this.sendToServer(sc(`https://ad.mail.ru/i${e}.gif`))}count(){const e={d:"imp",sb:"click"},t={};for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];n.reverse().forEach((e=>{e&&e.split(",").reverse().forEach((e=>{const r=this.getCounterData(e.trim());null!==r&&(t[r.type]||(t[r.type]=[]),t[r.type].push(r))}))})),Object.entries(t).forEach((t=>{let[r,n]=t;1===n.length?this.singleCounter(n[0]):n.length>1&&e[r]&&this.massCounter(e[r],n.map((e=>e.num)))}))}linkCounter(e){e&&e.length&&this.sendToServer(sc("//rs.mail.ru/ns.gif",[{name:"n",value:e.map(encodeURIComponent).join(",")}],1))}handleClick(e){let{itemsCounters:t,otherCounter:r}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{currentTarget:n,path:o}=e,i=o||e.composedPath&&e.composedPath(),a=i.findIndex((e=>e===n)),l=i.slice(0,a+1),s=["clickPixel","clickCounter","counterIndex"],c=l.filter((e=>{let{dataset:t}=e;return s.some((e=>e in t))}));c.forEach((e=>{const[n,o,i,a=""]=["clickCounter","counterIndex","clickPixel","clickPrefixs"].map((t=>e&&e.dataset[t]));if(i&&this.sendToServer(sc(i)),n){const e=a.split(",").map((e=>e.trim()));n.split(",").map((e=>e.trim())).forEach(((t,r)=>{t&&this.count(`${cc[e[r]]||cc.click}${t}`)}))}if(null!=o){const e=t[o];e?this.count(`${cc.click}${e}`):r&&this.count(`${cc.click}${r}`)}}))}handleShowCounters(e){const t=e.dataset.showPixel,r=e.dataset.showCounter,n=!!e.dataset.countAll,o=t||r;o&&(t&&this.sendToServer(sc(t)),r&&this.count(`d${r}`)),!n&&o||(Array.from(e.querySelectorAll("[data-show-pixel]")).forEach((e=>{this.sendToServer(sc(e.dataset.showPixel))})),Array.from(e.querySelectorAll("[data-show-counter]")).forEach((e=>{this.count(`d${e.dataset.showCounter}`)})))}countShowPixel(e){e&&this.sendToServer(sc(e))}};let vc;!function(e){e[e.auto=42]="auto",e[e.cloud=182]="cloud",e[e.deti=129]="deti",e[e.dobro=190]="dobro",e[e.health=145]="health",e[e.hitech=123]="hitech",e[e.home=169]="home",e[e.games=133]="games",e[e.go=76]="go",e[e.kino=30]="kino",e[e.lady=104]="lady",e[e.moymir=120]="moymir",e[e.moymirgameclub=501]="moymirgameclub",e[e.news=29]="news",e[e.octavius=105]="octavius",e[e.ok=163]="ok",e[e.pets=466]="pets",e[e.pulse=485]="pulse",e[e.realty=122]="realty",e[e.vkmail=509]="vkmail",e[e.weather=112]="weather",e[e.youla=460]="youla"}(dc||(dc={})),function(e){e.friends="friends",e.messages="messages",e.photos="photos",e.groups="groups",e.notifications="notifications"}(fc||(fc={})),function(e){e.markCnt="markCnt",e.messageCnt="messageCnt",e.notificationCnt="notificationCnt",e.messages="messages",e.friends="friends",e.presents="presents"}(hc||(hc={})),function(e){e.additional="additional",e.business="business",e.mailrugroup="mailrugroup",e.general="general"}(pc||(pc={})),function(e){e[e.promo=256]="promo",e[e.pointer=8]="pointer"}(mc||(mc={}));const yc="ru_RU",bc=es({lang:yc,projects:{},account:{},search:{},"connection-error":{}}),xc=ts(bc,(e=>e.account)),wc=ts(bc,(e=>e["connection-error"])),$c=ts(bc,(e=>e.lang===yc)),kc=ts(bc,(e=>e.projects));ts(bc,(e=>e.search));const Cc=es(Il()),Fc=es(Il()),Ac=es(),Sc=es(0),Ec=es(0),Tc=es(0),_c=es(0),Bc=es(0),jc=es(0),Pc=es(0),zc=es({mail:{},cloud:{}}),Dc=es(0),Mc=es(""),Lc=es([]),Oc=es(!!Il()),Hc=e=>"fb"!==e;var Ic,Rc,Nc;function Wc(e){const t=null==e?void 0:e.match(/@(vk|ok|fb|ph)$/);return(null==t?void 0:t[1])||""}let Uc,Vc;function qc(e,t){Uc=es(e),Vc=ts(Uc,(e=>(t.addParamsToPromoUrls(e.promo),e.promo)))}Ic=e=>{let{data:t}=e;const r=ea(Cc);r&&t.activeUser&&r!==t.activeUser&&Oc.set(!1),Cc.set(t.activeUser),Fc.set(t.activeUserFullName),Ac.set(t.parentActiveUser),Sc.set(t.gamesCount||0),Ec.set(t.mailCount||0),Tc.set(t.moymirCount||0),_c.set(t.okCount||0),Bc.set(t.vkCount||0),jc.set(t.loveCount||0),Pc.set(t.cloudCount||0),zc.set(t.quotaCounters||{mail:{},cloud:{}}),Dc.set(t.restAccountsMailCount||0),Mc.set(Wc(t.activeUser));const n=t.accounts||[];n.forEach((e=>{e.social=Wc(e.user)})),Lc.set(n)},null===(Nc=null===(Rc=Jl("accountService"))||void 0===Rc?void 0:Rc.onAccountDataUpdate)||void 0===Nc||Nc.bind(Ol.accountService)(Ic),ea(Cc),Cc.subscribe((e=>{}));const Gc=es(null);function Xc(e){const t=new URLSearchParams(e),r={};return t.forEach(((e,t)=>{r[t]=e})),r}function Zc(e,t){const r={};return Object.entries(t).forEach((e=>{let[t,n]=e;void 0!==n&&""!==n&&(r[t]=n)})),`${e}?${new URLSearchParams(r).toString()}`}var Kc;!function(e){e.Default="default",e.Grey="grey",e.Dark="dark"}(Kc||(Kc={}));const Jc=es(null),Yc=ts(Jc,(e=>e===Kc.Default)),Qc=ts(Jc,(e=>e===Kc.Grey)),eu=ts(Jc,(e=>e===Kc.Dark));(e=>{null==Ol||Ol.on(zl.ColorThemeChange,e)})((e=>{let{data:t}=e;Jc.set(t.colorTheme)}));const tu="//marusia-web.go.mail.ru",ru=ts([Cc,$c,Gc,Mc],(e=>{let[t,r,n,o]=e;return!!t&&r&&n.isOnMarusia&&!o}),!1);let nu=tu,ou={};Gc.subscribe((e=>{var t,r,n;if(nu=(null===(r=null===(t=e)||void 0===t?void 0:t.marusiaWidgetUrl)||void 0===r?void 0:r.split("?")[0])||tu,null===(n=e)||void 0===n?void 0:n.marusiaWidgetUrl){const t=e.marusiaWidgetUrl.split("?");ou=t.length>1?Xc(t.pop()):{}}}));const iu=es({}),au=ts([iu,eu],(e=>{let[t,r]=e;return Zc(nu,Object.assign(Object.assign(Object.assign({},ou),{dark:r?1:0,origin:location.host}),t))}),nu),lu=es(!1),su=function(){const{subscribe:e,set:t,update:r}=es(!1);return Vl(Dl.Show,(()=>{t(!0)})),Vl(Dl.Hide,(()=>{t(!1)})),(()=>{var e,t;const r=Jl("authMenu"),n=Jl("authForm");null===(e=null==r?void 0:r.show)||void 0===e||e.replaceImpl((()=>{null==n||n.hide(),r.emit(Dl.Show)})),null===(t=null==r?void 0:r.hide)||void 0===t||t.replaceImpl((()=>{r.emit(Dl.Hide)}))})(),{subscribe:e,update:r,set:e=>e?(()=>{var e,t;return null===(t=null===(e=Jl("authMenu"))||void 0===e?void 0:e.show)||void 0===t?void 0:t.bind(Ol.authMenu)()})():(()=>{var e,t;return null===(t=null===(e=Jl("authMenu"))||void 0===e?void 0:e.hide)||void 0===t?void 0:t.bind(Ol.authMenu)()})()}}(),cu=function(){const{subscribe:e,set:t,update:r}=es(!1);return ql(Ll.Show,(e=>{let{data:r}=e;iu.set(r||{}),t(!0)})),ql(Ll.Hide,(()=>{iu.set({}),t(!1)})),(()=>{var e,t;const r=Jl("marusiaMenu");null===(e=null==r?void 0:r.show)||void 0===e||e.replaceImpl((e=>{r.emit(Ll.Show,null,e)})),null===(t=null==r?void 0:r.hide)||void 0===t||t.replaceImpl((()=>{r.emit(Ll.Hide)}))})(),{subscribe:e,update:r,set:e=>e?(e=>{var t,r;return null===(r=null===(t=Jl("marusiaMenu"))||void 0===t?void 0:t.show)||void 0===r?void 0:r.call(Ol.marusiaMenu,e)})():(()=>{var e,t;return null===(t=null===(e=Jl("marusiaMenu"))||void 0===e?void 0:e.hide)||void 0===t?void 0:t.call(Ol.marusiaMenu)})()}}(),uu=es(!1),du=es(!1);Ul(Ml.Show,(()=>{du.set(!0)})),Ul(Ml.Hide,(()=>{du.set(!1)}));const fu=(e,t)=>{e&&t.forEach((e=>{e.set(!1)}))};Nl((e=>{let{data:t}=e;t.visible||fu(!0,[lu,su,uu])})),lu.subscribe((e=>{e&&ss("open_projects_modal"),fu(e,[su,cu,du,uu])})),su.subscribe((e=>{e&&ss("open_auth_modal",{dwh:{email:ea(Cc)},skipdwh:!1}),fu(e,[lu,cu,du,uu])})),cu.subscribe((e=>{e&&ss("open_marusia_modal",{dwh:{email:ea(Cc)},skipdwh:!1}),fu(e,[lu,su,du,uu])})),uu.subscribe((e=>{e&&ss("open_lang_modal"),fu(e,[lu,su,du,cu])})),du.subscribe((e=>{e&&ss("open_auth_form"),fu(e,[lu,su,cu,uu])}));var hu,pu={themeName:"home",fontFamilyAccent:"MailSans, Helvetica, Arial, sans-serif",fontFamilyBase:"Helvetica, Arial, sans-serif",fontWeightAccent1:500,fontWeightAccent2:500,fontWeightAccent3:400,fontWeightBase1:700,fontWeightBase2:700,fontWeightBase3:400,fontTitle1:{regular:{fontSize:24,lineHeight:28,fontFamily:"MailSans, Helvetica, Arial, sans-serif",fontWeight:500}},fontTitle2:{regular:{fontSize:20,lineHeight:26,fontFamily:"MailSans, Helvetica, Arial, sans-serif",fontWeight:500}},fontTitle3:{regular:{fontSize:17,lineHeight:22,fontFamily:"MailSans, Helvetica, Arial, sans-serif",fontWeight:500}},fontHeadline1:{regular:{fontSize:16,lineHeight:20,fontFamily:"MailSans, Helvetica, Arial, sans-serif",fontWeight:500},compact:{fontSize:15,lineHeight:20}},fontHeadline2:{regular:{fontSize:15,lineHeight:20,fontFamily:"MailSans, Helvetica, Arial, sans-serif",fontWeight:500},compact:{fontSize:14,lineHeight:20}},fontText:{regular:{fontSize:16,lineHeight:20,fontFamily:"Helvetica, Arial, sans-serif",fontWeight:400},compact:{fontSize:15,lineHeight:20}},fontParagraph:{regular:{fontSize:15,lineHeight:20,fontFamily:"Helvetica, Arial, sans-serif",fontWeight:400}},fontSubhead:{regular:{fontSize:14,lineHeight:18,fontFamily:"Helvetica, Arial, sans-serif",fontWeight:400},compact:{fontSize:13,lineHeight:18}},fontFootnote:{regular:{fontSize:13,lineHeight:18,fontFamily:"Helvetica, Arial, sans-serif",fontWeight:400}},fontFootnoteCaps:{regular:{fontSize:13,lineHeight:18,fontFamily:"Helvetica, Arial, sans-serif",fontWeight:400,textTransform:"uppercase",letterSpacing:"0.3px"}},fontCaption1:{regular:{fontSize:12,lineHeight:16,fontFamily:"Helvetica, Arial, sans-serif",fontWeight:400}},fontCaption1Caps:{regular:{fontSize:12,lineHeight:16,fontFamily:"Helvetica, Arial, sans-serif",fontWeight:400,textTransform:"uppercase",letterSpacing:"0.26px"}},fontCaption2:{regular:{fontSize:11,lineHeight:14,fontFamily:"Helvetica, Arial, sans-serif",fontWeight:400}},fontCaption2Caps:{regular:{fontSize:11,lineHeight:14,fontFamily:"Helvetica, Arial, sans-serif",fontWeight:400,textTransform:"uppercase",letterSpacing:"0.22px"}},fontCaption3:{regular:{fontSize:9,lineHeight:12,fontFamily:"Helvetica, Arial, sans-serif",fontWeight:400}},fontCaption3Caps:{regular:{fontSize:9,lineHeight:12,fontFamily:"Helvetica, Arial, sans-serif",fontWeight:400,textTransform:"uppercase",letterSpacing:"0.16px"}},sizeSelectIconPadding:{regular:7,compact:6},sizePopupBasePadding:{regular:20,compact:32},sizePopupHeaderPadding:{regular:16,compact:24},sizeBorderRadius:{regular:4},sizeCheckBorderRadius:{regular:4},sizeBorderRadiusPaper:{regular:12},sizeBorderRadiusPromo:{regular:20},sizeFieldHeight:{regular:48,compact:40},sizeButtonLargeHeight:{regular:48,compact:48},sizeButtonMediumHeight:{regular:48,compact:40},sizeButtonSmallHeight:{regular:32,compact:32},sizeCheckbox:{regular:16},sizeArrow:{regular:8},sizeArrowPromo:{regular:40},sizePopupSmall:{regular:420},sizePopupMedium:{regular:680},sizePopupLarge:{regular:880},sizeFieldHorizontalPadding:{regular:12},sizeButtonPaddingHorizontal:{regular:20,compact:16},sizeLabelHorizontalMargin:{regular:16},sizeArrowPadding:{regular:12},sizeTooltipMargin:{regular:8},sizeIconUI:{regular:16},sizeAvatarXS:{regular:24},sizeAvatarS:{regular:32},sizeAvatarM:{regular:48},sizeAvatarL:{regular:96},sizeAvatarXL:{regular:128},sizeBadgeXS:{regular:12},sizeBadgeS:{regular:16},sizeBadgeM:{regular:24},sizeBadgeL:{regular:44},sizeBadgeXL:{regular:56},sizeCardgridPadding:{regular:12},sizeCardBorderRadius:{regular:16},sizeCardgridPaddingVertical:{regular:8},sizeBasePaddingHorizontal:{regular:16},sizeButtonGroupGapSpace:{regular:1},sizeButtonGroupGapSmall:{regular:8},sizeButtonGroupGapMedium:{regular:12},elevation1:"0px 4px 12px rgba(18, 25, 43, 0.12)",elevation2:"0px 4px 20px rgba(18, 25, 43, 0.2)",elevation3:"0px 16px 48px rgba(18, 25, 43, 0.28)",elevation4:"0 16px 48px 0 rgba(0, 0, 0, 0.48)",animationDurationL:"0.4s",animationDurationM:"0.2s",animationDurationS:"0.1s",animationEasingDefault:"cubic-bezier(0.3, 0.3, 0.5, 1)",opacityDisable:.48,opacityDisableAccessibility:.64,x0:0,x025:1,x05:2,x1:4,x2:8,x3:12,x4:16,x5:20,x6:24,x8:32,x10:40,x12:48,x15:60,x20:80,sizeBase:4,sizeGrid:20,breakpoints:{touch:{breakpoint:0,adaptiveValue:"regular"},desktopS:{breakpoint:768,adaptiveValue:"compact"}},fontH0:{regular:{fontSize:28,lineHeight:32,fontFamily:"MailSans, Helvetica, Arial, sans-serif",fontWeight:500},compact:{fontSize:44,lineHeight:52}},fontH1:{regular:{fontSize:24,lineHeight:28,fontFamily:"MailSans, Helvetica, Arial, sans-serif",fontWeight:500},compact:{fontSize:32,lineHeight:36}},fontH2:{regular:{fontSize:20,lineHeight:26,fontFamily:"MailSans, Helvetica, Arial, sans-serif",fontWeight:500},compact:{fontSize:28,lineHeight:32}},sizeArrowHeight:{regular:8},sizeArrowWidth:{regular:12},sizeBasePadding:{regular:16,compact:20},sizeBorderWidthTab:{regular:2},sizeBorderWidthBar:{regular:4},sizeBorderWidthAccent:{regular:8},sizeBorderWidthAccentSecondary:{regular:8},sizeControlButtonWidthMin:{regular:130,compact:104},sizePromoButtonClose:{regular:32},sizeButtonSliderHeight:{regular:24},sizeButtonSliderWidth:{regular:12},sizeButtonSliderWidthPointer:{regular:16},sizeFieldWidthMin:{regular:328,compact:380},sizeLabelWidth:{regular:184},sizeProgress:{regular:4},sizeProgressScroll:{regular:12},sizeDotBullet:{regular:4},sizeDotIndicate:{regular:8},sizeDotClickable:{regular:12},sizeVerticalPadding:{regular:0},sizeButtonMorePadding:{regular:8},sizeIconMorePadding:{regular:12,compact:8},sizeButtonIconPadding:{regular:16,compact:20},sizeDivPadding:{regular:4},sizeMenuPadding:{regular:8},sizeTagPadding:{regular:8},sizeTabPadding:{regular:16},sizeTableHorizontalPadding:{regular:16},sizeTableVerticalPadding:{regular:16},sizeSliceTopPadding:{regular:40},sizeSliceBottomPadding:{regular:60},sizeBaseMargin:{regular:12},sizeLabelVerticalMargin:{regular:4},sizeTipMargin:{regular:4},sizeFieldHorizontalMargin:{regular:20},sizeFieldVerticalMargin:{regular:24},sizeFieldSetMargin:{regular:32},sizeIconMargin:{regular:12,compact:8},sizeChoiceMargin:{regular:8},sizeMenuMargin:{regular:2},sizeTagMargin:{regular:8},sizeTabMargin:{regular:8},sizeBulletMargin:{regular:12},sizeAttributeMargin:{regular:4},sizePopupMargin:{regular:8,compact:24},sizeHeaderIcon:{regular:20},sizeWysiwygIcon:{regular:14},sizeIllustrationS:{regular:48},sizeIllustrationXM:{regular:72},sizeIllustrationM:{regular:96},sizeIllustrationL:{regular:144},sizeIllustrationXXL:{regular:228},toneValueOverlay:.48,toneValueViewer:.88,toneValueToolbar:.24,toneValueHover:.04,toneValueActive:.08,toneValueFocus:.08,typeBorderButton:"solid",typeBorderPosition:"inset",themeNameBase:"home",homeFontFamilyDefault:"Helvetica, Arial, sans-serif",homeFontWeightNormal:"400",homeFontWeightBold:"700",fontHeadline:{regular:{fontSize:16,lineHeight:20,fontFamily:"MailSans, Helvetica, Arial, sans-serif",fontWeight:500},compact:{fontSize:15,lineHeight:20}},colorsScheme:"light",colorBackgroundAccent:{normal:"#005FF9",hover:"#005CF1",active:"#0059EA"},colorBackgroundAccentThemed:{normal:"#005FF9",hover:"#005CF1",active:"#0059EA"},colorBackgroundAccentAlternative:{normal:"#FF9E00",hover:"#F59802",active:"#EB9305"},colorBackgroundContent:{normal:"#FFFFFF",hover:"#F5F5F7",active:"#EBECEF"},colorBackgroundSecondary:{normal:"#F0F1F3",hover:"#E6E8EC",active:"#DDDFE4"},colorBackgroundSecondaryAlpha:{normal:"rgba(0, 16, 61, 0.06)",hover:"rgba(0, 16, 61, 0.1)",active:"rgba(0, 16, 61, 0.14)"},colorBackground:{normal:"#FFFFFF",hover:"#F5F5F7",active:"#EBECEF"},colorBackgroundContrast:{normal:"#FFFFFF",hover:"#F5F5F7",active:"#EBECEF"},colorBackgroundContrastSecondaryAlpha:{normal:"rgba(255, 255, 255, 0.20)",hover:"rgba(255, 255, 255, 0.24)",active:"rgba(255, 255, 255, 0.28)"},colorBackgroundWarning:{normal:"#FFF1AD",hover:"#F5E8A9",active:"#EBDFA4"},colorBackgroundNegative:{normal:"#ED0A34",hover:"#E40A34",active:"#DA0A35"},colorBackgroundTertiary:{normal:"#F9F9FA",hover:"#EFF0F2",active:"#E5E6EB"},colorBackgroundModal:{normal:"#FFFFFF",hover:"#F5F5F7",active:"#EBECEF"},colorBackgroundPositive:{normal:"#0DC268",hover:"#0CBB66",active:"#0CB465"},colorBackgroundNegativeTint:{normal:"#FAEBEB",hover:"#F0E2E4",active:"#E6D9DD"},colorTextAccent:{normal:"#005FF9",hover:"#005CF1",active:"#0059EA"},colorTextAccentThemed:{normal:"#005FF9",hover:"#005CF1",active:"#0059EA"},colorTextNegative:{normal:"#ED0A34",hover:"#E40A34",active:"#DA0A35"},colorTextLink:{normal:"#005BD1",hover:"#0058CB",active:"#0055C5"},colorTextLinkThemed:{normal:"#005BD1",hover:"#0058CB",active:"#0055C5"},colorTextMuted:{normal:"#2C2D2E",hover:"#2A2C2F",active:"#282B2F"},colorTextPrimary:{normal:"#2C2D2E",hover:"#2A2C2F",active:"#282B2F"},colorTextPrimaryInvariably:{normal:"#2C2D2E",hover:"#2A2C2F",active:"#282B2F"},colorTextSecondary:{normal:"#87898F",hover:"#82848C",active:"#7C7F88"},colorTextSubhead:{normal:"#797A80",hover:"#74767D",active:"#6F727B"},colorTextTertiary:{normal:"#AAADB3",hover:"#A3A7AE",active:"#9CA0AA"},colorTextLinkVisited:{normal:"#528FDF",hover:"#4F8AD9",active:"#4B85D2"},colorTextContrast:{normal:"#FFFFFF",hover:"#F5F5F7",active:"#EBECEF"},colorTextContrastThemed:{normal:"#FFFFFF",hover:"#F5F5F7",active:"#EBECEF"},colorLinkContrast:{normal:"#FFFFFF",hover:"#F5F5F7",active:"#EBECEF"},colorTextPositive:{normal:"#0DC268",hover:"#0CBB66",active:"#0CB465"},colorIconAccent:{normal:"#005FF9",hover:"#005CF1",active:"#0059EA"},colorIconNegative:{normal:"#ED0A34",hover:"#E40A34",active:"#DA0A35"},colorIconPrimary:{normal:"#2C2D2E",hover:"#2A2C2F",active:"#282B2F"},colorIconPrimaryInvariably:{normal:"#2C2D2E",hover:"#2A2C2F",active:"#282B2F"},colorIconMedium:{normal:"#919399",hover:"#8B8E95",active:"#858992"},colorIconMediumAlpha:{normal:"rgba(39, 43, 55, 0.5)",hover:"rgba(39, 43, 55, 0.54)",active:"rgba(39, 43, 55, 0.58)"},colorIconSecondary:{normal:"#A5A7AD",hover:"#9EA1A9",active:"#989BA4"},colorIconSecondaryAlpha:{normal:"rgba(39, 43, 55, 0.3)",hover:"rgba(39, 43, 55, 0.34)",active:"rgba(39, 43, 55, 0.38)"},colorIconTertiary:{normal:"#CFD1D6",hover:"#C7C9D0",active:"#BEC2CA"},colorIconTertiaryAlpha:{normal:"rgba(39, 43, 55, 0.2)",hover:"rgba(39, 43, 55, 0.24)",active:"rgba(39, 43, 55, 0.28)"},colorIconContrast:{normal:"#FFFFFF",hover:"#F5F5F7",active:"#EBECEF"},colorIconContrastThemed:{normal:"#FFFFFF",hover:"#F5F5F7",active:"#EBECEF"},colorIconPositive:{normal:"#0DC268",hover:"#0CBB66",active:"#0CB465"},colorStrokeAccent:{normal:"#005FF9",hover:"#005CF1",active:"#0059EA"},colorStrokeAccentThemed:{normal:"#005FF9",hover:"#005CF1",active:"#0059EA"},colorStrokeContrast:{normal:"#FFFFFF",hover:"#F5F5F7",active:"#EBECEF"},colorStrokeNegative:{normal:"#ED0A34",hover:"#E40A34",active:"#DA0A35"},colorImageBorderAlpha:{normal:"rgba(0, 16, 61, 0.08)",hover:"rgba(0, 16, 61, 0.12)",active:"rgba(0, 16, 61, 0.16)"},colorFieldBorderAlpha:{normal:"rgba(0, 16, 61, 0.12)",hover:"rgba(0, 16, 61, 0.16)",active:"rgba(0, 16, 61, 0.2)"},colorSeparatorPrimaryAlpha:{normal:"rgba(0, 16, 61, 0.12)",hover:"rgba(0, 16, 61, 0.16)",active:"rgba(0, 16, 61, 0.2)"},colorSeparatorSecondary:{normal:"#E6E7EB",hover:"#DDDEE4",active:"#D4D6DD"},colorSeparatorPrimary:{normal:"#DADCE0",hover:"#D1D4D9",active:"#C9CCD3"},colorStrokePositive:{normal:"#0DC268",hover:"#0CBB66",active:"#0CB465"},colorAccentBlue:{normal:"#005FF9",hover:"#005CF1",active:"#0059EA"},colorAccentGray:{normal:"#A5A7AD",hover:"#9EA1A9",active:"#989BA4"},colorAccentRed:{normal:"#ED0A34",hover:"#E40A34",active:"#DA0A35"},colorAccentGreen:{normal:"#0DC268",hover:"#0CBB66",active:"#0CB465"},colorAccentOrange:{normal:"#FF9E00",hover:"#F59802",active:"#EB9305"},colorAccentPurple:{normal:"#4F6DDC",hover:"#4C69D6",active:"#4966CF"},colorAccentViolet:{normal:"#C15DF3",hover:"#B95AEC",active:"#B257E4"},colorAccentSecondary:{normal:"#FF9E00",hover:"#F59802",active:"#EB9305"},colorActionSheetText:{normal:"#005FF9",hover:"#005CF1",active:"#0059EA"},colorHeaderBackground:{normal:"#FFFFFF",hover:"#F5F5F7",active:"#EBECEF"},colorPanelHeaderIcon:{normal:"#005FF9",hover:"#005CF1",active:"#0059EA"},colorWriteBarInputBackground:{normal:"#F0F1F3",hover:"#E6E8EC",active:"#DDDFE4"},colorWriteBarInputBorderAlpha:{normal:"rgba(0, 16, 61, 0.8)",hover:"rgba(0, 16, 61, 0.84)",active:"rgba(0, 16, 61, 0.88)"},colorTrackBackground:{normal:"#DADCE0",hover:"#D1D4D9",active:"#C9CCD3"},colorTrackBuffer:{normal:"#83AAEA",hover:"#7EA4E3",active:"#799EDC"},colorImagePlaceholder:{normal:"#E6E7EB",hover:"#DDDEE4",active:"#D4D6DD"},colorImagePlaceholderAlpha:{normal:"rgba(0, 16, 61, 0.8)",hover:"rgba(0, 16, 61, 0.84)",active:"rgba(0, 16, 61, 0.88)"},colorSearchFieldBackground:{normal:"#E6E7EB",hover:"#DDDEE4",active:"#D4D6DD"},colorWriteBarIcon:{normal:"#005FF9",hover:"#005CF1",active:"#0059EA"},colorSkeletonFrom:{normal:"#F3F3F5",hover:"#E9EAEE",active:"#E0E1E6"},colorSkeletonTo:{normal:"#E0E1E6",hover:"#D7D9DF",active:"#CED0D8"},colorAvatarOverlay:{normal:"rgba(145, 147, 153, 0.48)",hover:"rgba(145, 147, 153, 0.52)",active:"rgba(145, 147, 153, 0.56)"},colorOverlayPrimary:{normal:"rgba(0, 0, 0, 0.48)",hover:"rgba(0, 0, 0, 0.52)",active:"rgba(0, 0, 0, 0.56)"},colorTransparent:{normal:"transparent",hover:"rgba(0, 16, 61, 0.04)",active:"rgba(0, 16, 61, 0.08)"},colorRating:{normal:"#ffd400",hover:"#F5CC02",active:"#EBC405"},colorButtonContrastAlpha:{normal:"rgba(255, 255, 255, 1)",hover:"rgba(255, 255, 255, 0.8)",active:"rgba(255, 255, 255, 0.6)"},colorButtonContrast:{normal:"#FFFFFF",hover:"#FFFFFF",active:"#FFFFFF"},colorThumbErrorBackgroundAlpha:{normal:"rgba(237, 10, 52, 0.12)",hover:"rgba(237, 10, 52, 0.16)",active:"rgba(237, 10, 52, 0.2)"},homeColorSocialVk:{normal:"#2787F5",hover:"#2582EE",active:"#247DE6"},homeColorSocialOk:{normal:"#EE8208",hover:"#E47D0A",active:"#DB790C"},homeColorSocialFb:{normal:"#0561AF",hover:"#055EAA",active:"#055BA6"},homeColorFilinFailPrimary:{normal:"#333333",hover:"#313233",active:"#2F3034"},homeColorFilinFailSecondary:{normal:"#C7C7C7",hover:"#BFC0C1",active:"#B7B8BC"},widthTouch:"(max-width: 767px)",widthToTouch:"(max-width: 767px)",widthFromDesktopS:"(min-width: 768px)",widthDesktopS:"(min-width: 768px)",themeType:"root"},mu={themeName:"homeDark",fontFamilyAccent:"MailSans, Helvetica, Arial, sans-serif",fontFamilyBase:"Helvetica, Arial, sans-serif",fontWeightAccent1:500,fontWeightAccent2:500,fontWeightAccent3:400,fontWeightBase1:700,fontWeightBase2:700,fontWeightBase3:400,fontTitle1:{regular:{fontSize:24,lineHeight:28,fontFamily:"MailSans, Helvetica, Arial, sans-serif",fontWeight:500}},fontTitle2:{regular:{fontSize:20,lineHeight:26,fontFamily:"MailSans, Helvetica, Arial, sans-serif",fontWeight:500}},fontTitle3:{regular:{fontSize:17,lineHeight:22,fontFamily:"MailSans, Helvetica, Arial, sans-serif",fontWeight:500}},fontHeadline1:{regular:{fontSize:16,lineHeight:20,fontFamily:"MailSans, Helvetica, Arial, sans-serif",fontWeight:500},compact:{fontSize:15,lineHeight:20}},fontHeadline2:{regular:{fontSize:15,lineHeight:20,fontFamily:"MailSans, Helvetica, Arial, sans-serif",fontWeight:500},compact:{fontSize:14,lineHeight:20}},fontText:{regular:{fontSize:16,lineHeight:20,fontFamily:"Helvetica, Arial, sans-serif",fontWeight:400},compact:{fontSize:15,lineHeight:20}},fontParagraph:{regular:{fontSize:15,lineHeight:20,fontFamily:"Helvetica, Arial, sans-serif",fontWeight:400}},fontSubhead:{regular:{fontSize:14,lineHeight:18,fontFamily:"Helvetica, Arial, sans-serif",fontWeight:400},compact:{fontSize:13,lineHeight:18}},fontFootnote:{regular:{fontSize:13,lineHeight:18,fontFamily:"Helvetica, Arial, sans-serif",fontWeight:400}},fontFootnoteCaps:{regular:{fontSize:13,lineHeight:18,fontFamily:"Helvetica, Arial, sans-serif",fontWeight:400,textTransform:"uppercase",letterSpacing:"0.3px"}},fontCaption1:{regular:{fontSize:12,lineHeight:16,fontFamily:"Helvetica, Arial, sans-serif",fontWeight:400}},fontCaption1Caps:{regular:{fontSize:12,lineHeight:16,fontFamily:"Helvetica, Arial, sans-serif",fontWeight:400,textTransform:"uppercase",letterSpacing:"0.26px"}},fontCaption2:{regular:{fontSize:11,lineHeight:14,fontFamily:"Helvetica, Arial, sans-serif",fontWeight:400}},fontCaption2Caps:{regular:{fontSize:11,lineHeight:14,fontFamily:"Helvetica, Arial, sans-serif",fontWeight:400,textTransform:"uppercase",letterSpacing:"0.22px"}},fontCaption3:{regular:{fontSize:9,lineHeight:12,fontFamily:"Helvetica, Arial, sans-serif",fontWeight:400}},fontCaption3Caps:{regular:{fontSize:9,lineHeight:12,fontFamily:"Helvetica, Arial, sans-serif",fontWeight:400,textTransform:"uppercase",letterSpacing:"0.16px"}},sizeSelectIconPadding:{regular:7,compact:6},sizePopupBasePadding:{regular:20,compact:32},sizePopupHeaderPadding:{regular:16,compact:24},sizeBorderRadius:{regular:4},sizeCheckBorderRadius:{regular:4},sizeBorderRadiusPaper:{regular:12},sizeBorderRadiusPromo:{regular:20},sizeFieldHeight:{regular:48,compact:40},sizeButtonLargeHeight:{regular:48,compact:48},sizeButtonMediumHeight:{regular:48,compact:40},sizeButtonSmallHeight:{regular:32,compact:32},sizeCheckbox:{regular:16},sizeArrow:{regular:8},sizeArrowPromo:{regular:40},sizePopupSmall:{regular:420},sizePopupMedium:{regular:680},sizePopupLarge:{regular:880},sizeFieldHorizontalPadding:{regular:12},sizeButtonPaddingHorizontal:{regular:20,compact:16},sizeLabelHorizontalMargin:{regular:16},sizeArrowPadding:{regular:12},sizeTooltipMargin:{regular:8},sizeIconUI:{regular:16},sizeAvatarXS:{regular:24},sizeAvatarS:{regular:32},sizeAvatarM:{regular:48},sizeAvatarL:{regular:96},sizeAvatarXL:{regular:128},sizeBadgeXS:{regular:12},sizeBadgeS:{regular:16},sizeBadgeM:{regular:24},sizeBadgeL:{regular:44},sizeBadgeXL:{regular:56},sizeCardgridPadding:{regular:12},sizeCardBorderRadius:{regular:16},sizeCardgridPaddingVertical:{regular:8},sizeBasePaddingHorizontal:{regular:16},sizeButtonGroupGapSpace:{regular:1},sizeButtonGroupGapSmall:{regular:8},sizeButtonGroupGapMedium:{regular:12},elevation1:"0px 4px 12px rgba(18, 25, 43, 0.12)",elevation2:"0px 4px 20px rgba(18, 25, 43, 0.2)",elevation3:"0px 16px 48px rgba(18, 25, 43, 0.28)",elevation4:"0 4px 32px 0 rgba(0, 0, 0, 0.48)",animationDurationL:"0.4s",animationDurationM:"0.2s",animationDurationS:"0.1s",animationEasingDefault:"cubic-bezier(0.3, 0.3, 0.5, 1)",opacityDisable:.48,opacityDisableAccessibility:.64,x0:0,x025:1,x05:2,x1:4,x2:8,x3:12,x4:16,x5:20,x6:24,x8:32,x10:40,x12:48,x15:60,x20:80,sizeBase:4,sizeGrid:20,breakpoints:{touch:{breakpoint:0,adaptiveValue:"regular"},desktopS:{breakpoint:768,adaptiveValue:"compact"}},fontH0:{regular:{fontSize:28,lineHeight:32,fontFamily:"MailSans, Helvetica, Arial, sans-serif",fontWeight:500},compact:{fontSize:44,lineHeight:52}},fontH1:{regular:{fontSize:24,lineHeight:28,fontFamily:"MailSans, Helvetica, Arial, sans-serif",fontWeight:500},compact:{fontSize:32,lineHeight:36}},fontH2:{regular:{fontSize:20,lineHeight:26,fontFamily:"MailSans, Helvetica, Arial, sans-serif",fontWeight:500},compact:{fontSize:28,lineHeight:32}},sizeArrowHeight:{regular:8},sizeArrowWidth:{regular:12},sizeBasePadding:{regular:16,compact:20},sizeBorderWidthTab:{regular:2},sizeBorderWidthBar:{regular:4},sizeBorderWidthAccent:{regular:8},sizeBorderWidthAccentSecondary:{regular:8},sizeControlButtonWidthMin:{regular:130,compact:104},sizePromoButtonClose:{regular:32},sizeButtonSliderHeight:{regular:24},sizeButtonSliderWidth:{regular:12},sizeButtonSliderWidthPointer:{regular:16},sizeFieldWidthMin:{regular:328,compact:380},sizeLabelWidth:{regular:184},sizeProgress:{regular:4},sizeProgressScroll:{regular:12},sizeDotBullet:{regular:4},sizeDotIndicate:{regular:8},sizeDotClickable:{regular:12},sizeVerticalPadding:{regular:0},sizeButtonMorePadding:{regular:8},sizeIconMorePadding:{regular:12,compact:8},sizeButtonIconPadding:{regular:16,compact:20},sizeDivPadding:{regular:4},sizeMenuPadding:{regular:8},sizeTagPadding:{regular:8},sizeTabPadding:{regular:16},sizeTableHorizontalPadding:{regular:16},sizeTableVerticalPadding:{regular:16},sizeSliceTopPadding:{regular:40},sizeSliceBottomPadding:{regular:60},sizeBaseMargin:{regular:12},sizeLabelVerticalMargin:{regular:4},sizeTipMargin:{regular:4},sizeFieldHorizontalMargin:{regular:20},sizeFieldVerticalMargin:{regular:24},sizeFieldSetMargin:{regular:32},sizeIconMargin:{regular:12,compact:8},sizeChoiceMargin:{regular:8},sizeMenuMargin:{regular:2},sizeTagMargin:{regular:8},sizeTabMargin:{regular:8},sizeBulletMargin:{regular:12},sizeAttributeMargin:{regular:4},sizePopupMargin:{regular:8,compact:24},sizeHeaderIcon:{regular:20},sizeWysiwygIcon:{regular:14},sizeIllustrationS:{regular:48},sizeIllustrationXM:{regular:72},sizeIllustrationM:{regular:96},sizeIllustrationL:{regular:144},sizeIllustrationXXL:{regular:228},toneValueOverlay:.48,toneValueViewer:.88,toneValueToolbar:.24,toneValueHover:.04,toneValueActive:.08,toneValueFocus:.08,typeBorderButton:"solid",typeBorderPosition:"inset",homeFontFamilyDefault:"Helvetica, Arial, sans-serif",homeFontWeightNormal:"400",homeFontWeightBold:"700",fontHeadline:{regular:{fontSize:16,lineHeight:20,fontFamily:"MailSans, Helvetica, Arial, sans-serif",fontWeight:500},compact:{fontSize:15,lineHeight:20}},colorsScheme:"dark",colorBackgroundAccent:{normal:"#2775FC",hover:"#307BFC",active:"#3880FC"},colorBackgroundAccentThemed:{normal:"#FFFFFF",hover:"#FFFFFF",active:"#FFFFFF"},colorBackgroundAccentAlternative:{normal:"#FF9E00",hover:"#FFA20A",active:"#FFA614"},colorBackgroundContent:{normal:"#232324",hover:"#2C2C2D",active:"#353536"},colorBackgroundSecondary:{normal:"#2A2A2B",hover:"#333333",active:"#3B3B3C"},colorBackgroundSecondaryAlpha:{normal:"rgba(255, 255, 255, 0.08)",hover:"rgba(255, 255, 255, 0.16)",active:"rgba(255, 255, 255, 0.2)"},colorBackground:{normal:"#19191A",hover:"#222223",active:"#2B2B2C"},colorBackgroundContrast:{normal:"#FFFFFF",hover:"#FFFFFF",active:"#FFFFFF"},colorBackgroundContrastSecondaryAlpha:{normal:"rgba(255, 255, 255, 0.20)",hover:"rgba(255, 255, 255, 0.24)",active:"rgba(255, 255, 255, 0.28)"},colorBackgroundWarning:{normal:"#6C4E00",hover:"#72550A",active:"#785C14"},colorBackgroundNegative:{normal:"#ED0A34",hover:"#EE143C",active:"#EE1E44"},colorBackgroundTertiary:{normal:"#252525",hover:"#2E2E2E",active:"#363636"},colorBackgroundModal:{normal:"#303030",hover:"#383838",active:"#414141"},colorBackgroundPositive:{normal:"#0DC268",hover:"#17C46E",active:"#20C774"},colorBackgroundNegativeTint:{normal:"#522e2e",hover:"#593636",active:"#603F3F"},colorTextAccent:{normal:"#3C82FD",hover:"#4487FD",active:"#4C8CFD"},colorTextAccentThemed:{normal:"#FFFFFF",hover:"#FFFFFF",active:"#FFFFFF"},colorTextNegative:{normal:"#ED0A34",hover:"#EE143C",active:"#EE1E44"},colorTextLink:{normal:"#589BFF",hover:"#5F9FFF",active:"#65A3FF"},colorTextLinkThemed:{normal:"#FFFFFF",hover:"#FFFFFF",active:"#FFFFFF"},colorTextMuted:{normal:"#E7E8EA",hover:"#E8E9EB",active:"#E9EAEC"},colorTextPrimary:{normal:"#E7E8EA",hover:"#E8E9EB",active:"#E9EAEC"},colorTextPrimaryInvariably:{normal:"#2C2D2E",hover:"#343536",active:"#3D3E3F"},colorTextSecondary:{normal:"#8C8E94",hover:"#919398",active:"#95979D"},colorTextSubhead:{normal:"#BFC1C5",hover:"#C2C3C7",active:"#C4C6CA"},colorTextTertiary:{normal:"#74767A",hover:"#7A7B7F",active:"#7F8185"},colorTextLinkVisited:{normal:"#528FDF",hover:"#5993E0",active:"#6098E2"},colorTextContrast:{normal:"#FFFFFF",hover:"#FFFFFF",active:"#FFFFFF"},colorTextContrastThemed:{normal:"#2C2D2E",hover:"#343536",active:"#3D3E3F"},colorLinkContrast:{normal:"#FFFFFF",hover:"#FFFFFF",active:"#FFFFFF"},colorTextPositive:{normal:"#0DC268",hover:"#17C46E",active:"#20C774"},colorIconAccent:{normal:"#3C82FD",hover:"#4487FD",active:"#4C8CFD"},colorIconNegative:{normal:"#ED0A34",hover:"#EE143C",active:"#EE1E44"},colorIconPrimary:{normal:"#D9DADD",hover:"#DBDBDE",active:"#DCDDE0"},colorIconPrimaryInvariably:{normal:"#2C2D2E",hover:"#343536",active:"#3D3E3F"},colorIconMedium:{normal:"#B0B1B6",hover:"#B3B4B9",active:"#B6B7BC"},colorIconMediumAlpha:{normal:"rgba(245, 246, 255, 0.7)",hover:"rgba(245, 246, 255, 0.74)",active:"rgba(245, 246, 255, 0.78)"},colorIconSecondary:{normal:"#9C9DA2",hover:"#A0A1A6",active:"#A4A5A9"},colorIconSecondaryAlpha:{normal:"rgba(245, 246, 255, 0.6)",hover:"rgba(245, 246, 255, 0.64)",active:"rgba(245, 246, 255, 0.68)"},colorIconTertiary:{normal:"#83848A",hover:"#88898F",active:"#8D8E93"},colorIconTertiaryAlpha:{normal:"rgba(245, 246, 255, 0.5)",hover:"rgba(245, 246, 255, 0.54)",active:"rgba(245, 246, 255, 0.58)"},colorIconContrast:{normal:"#FFFFFF",hover:"#FFFFFF",active:"#FFFFFF"},colorIconContrastThemed:{normal:"#2C2D2E",hover:"#343536",active:"#3D3E3F"},colorIconPositive:{normal:"#0DC268",hover:"#17C46E",active:"#20C774"},colorStrokeAccent:{normal:"#3C82FD",hover:"#4487FD",active:"#4C8CFD"},colorStrokeAccentThemed:{normal:"#FFFFFF",hover:"#FFFFFF",active:"#FFFFFF"},colorStrokeContrast:{normal:"#FFFFFF",hover:"#FFFFFF",active:"#FFFFFF"},colorStrokeNegative:{normal:"#ED0A34",hover:"#EE143C",active:"#EE1E44"},colorImageBorderAlpha:{normal:"rgba(255, 255, 255, 0.08)",hover:"rgba(255, 255, 255, 0.12)",active:"rgba(255, 255, 255, 0.16)"},colorFieldBorderAlpha:{normal:"rgba(255, 255, 255, 0.16)",hover:"rgba(255, 255, 255, 0.2)",active:"rgba(255, 255, 255, 0.24)"},colorSeparatorPrimaryAlpha:{normal:"rgba(0, 0, 0, 0.4)",hover:"rgba(0, 0, 0, 0.44)",active:"rgba(0, 0, 0, 0.48)"},colorSeparatorSecondary:{normal:"#181818",hover:"#212121",active:"#2A2A2A"},colorSeparatorPrimary:{normal:"#151516",hover:"#1E1E1F",active:"#282829"},colorStrokePositive:{normal:"#0DC268",hover:"#17C46E",active:"#20C774"},colorAccentBlue:{normal:"#2775FC",hover:"#307BFC",active:"#3880FC"},colorAccentGray:{normal:"#9C9DA2",hover:"#A0A1A6",active:"#A4A5A9"},colorAccentRed:{normal:"#ED0A34",hover:"#EE143C",active:"#EE1E44"},colorAccentGreen:{normal:"#0DC268",hover:"#17C46E",active:"#20C774"},colorAccentOrange:{normal:"#FF9E00",hover:"#FFA20A",active:"#FFA614"},colorAccentPurple:{normal:"#4F6DDC",hover:"#5673DD",active:"#5D79DF"},colorAccentViolet:{normal:"#C15DF3",hover:"#C363F3",active:"#C66AF4"},colorAccentSecondary:{normal:"#FF9E00",hover:"#FFA20A",active:"#FFA614"},colorActionSheetText:{normal:"#3C82FD",hover:"#4487FD",active:"#4C8CFD"},colorHeaderBackground:{normal:"#232324",hover:"#2C2C2D",active:"#353536"},colorPanelHeaderIcon:{normal:"#3C82FD",hover:"#4487FD",active:"#4C8CFD"},colorWriteBarInputBackground:{normal:"#2A2A2B",hover:"#333333",active:"#3B3B3C"},colorWriteBarInputBorderAlpha:{normal:"rgba(255, 255, 255, 0.8)",hover:"rgba(255, 255, 255, 0.84)",active:"rgba(255, 255, 255, 0.88)"},colorTrackBackground:{normal:"#434445",hover:"#4B4B4C",active:"#525354"},colorTrackBuffer:{normal:"#83AAEA",hover:"#88ADEB",active:"#8DB1EC"},colorImagePlaceholder:{normal:"#393A3B",hover:"#414243",active:"#494A4B"},colorImagePlaceholderAlpha:{normal:"rgba(255, 255, 255, 0.8)",hover:"rgba(255, 255, 255, 0.84)",active:"rgba(255, 255, 255, 0.88)"},colorSearchFieldBackground:{normal:"#393A3B",hover:"#414243",active:"#494A4B"},colorWriteBarIcon:{normal:"#3C82FD",hover:"#4487FD",active:"#4C8CFD"},colorSkeletonFrom:{normal:"#2A2A2B",hover:"#333333",active:"#3B3B3C"},colorSkeletonTo:{normal:"#3E3F40",hover:"#464748",active:"#4D4E4F"},colorAvatarOverlay:{normal:"rgba(176, 178, 182, 0.48)",hover:"rgba(176, 178, 182, 0.52)",active:"rgba(176, 178, 182, 0.56)"},colorOverlayPrimary:{normal:"rgba(0, 0, 0, 0.48)",hover:"rgba(0, 0, 0, 0.52)",active:"rgba(0, 0, 0, 0.56)"},colorTransparent:{normal:"transparent",hover:"rgba(255, 255, 255, 0.04)",active:"rgba(255, 255, 255, 0.08)"},colorRating:{normal:"#ffd400",hover:"#FFD60A",active:"#FFD714"},colorButtonContrastAlpha:{normal:"rgba(255, 255, 255, 0.12)",hover:"rgba(255, 255, 255, 0.2)",active:"rgba(255, 255, 255, 0.24)"},colorButtonContrast:{normal:"#252526",hover:"#29292A",active:"#2C2C2D"},colorThumbErrorBackgroundAlpha:{normal:"rgba(237, 10, 52, 0.12)",hover:"rgba(237, 10, 52, 0.16)",active:"rgba(237, 10, 52, 0.2)"},homeColorSocialVk:{normal:"#2787F5",hover:"#308CF5",active:"#3891F6"},homeColorSocialOk:{normal:"#EE8208",hover:"#EF8712",active:"#EF8C1C"},homeColorSocialFb:{normal:"#0561AF",hover:"#0F67B2",active:"#196EB5"},homeColorFilinFailPrimary:{normal:"#333333",hover:"#3B3B3B",active:"#434343"},homeColorFilinFailSecondary:{normal:"#C7C7C7",hover:"#C9C9C9",active:"#CBCBCB"},widthTouch:"(max-width: 767px)",widthToTouch:"(max-width: 767px)",widthFromDesktopS:"(min-width: 768px)",widthDesktopS:"(min-width: 768px)",themeType:"root"};!function(e){e.colorBackgroundContentActive="--ph-color-background-content--active",e.colorTextPrimary="--ph-color-text-primary",e.colorTextSecondary="--ph-color-text-secondary",e.colorTransparentHover="--ph-color-transparent--hover",e.colorTransparentActive="--ph-color-transparent--active",e.colorTextAccent="--ph-color-text-accent",e.colorTextAccentHover="--ph-color-text-accent--hover",e.colorTextAccentActive="--ph-color-text-accent--active",e.colorIconPrimary="--ph-color-icon-primary",e.colorIconSecondary="--ph-color-icon-secondary",e.colorSeparatorPrimary="--ph-color-separator-primary",e.colorTextLink="--ph-color-text-link",e.colorBackgroundModal="--ph-color-background-modal",e.colorBackgroundModalHover="--ph-color-background-modal--hover",e.colorBackgroundModalActive="--ph-color-background-modal--active",e.customShadowProjectsMenu="--ph-custom-shadow-projects-menu",e.customColorMainBlock="--ph-custom-color-main-block",e.customColorMainBlockHover="--ph-custom-color-main-block--hover",e.customColorMainBlockActive="--ph-custom-color-main-block--active",e.customColorAccountAdd="--ph-custom-color-account-add",e.customColorTooltipBg="--ph-custom-color-tooltip-bg",e.customColorTooltipText="--ph-custom-color-tooltip-text",e.customColorTooltipShadow="--ph-custom-color-tooltip-shadow",e.customColorPromoMarusiaShadow="--ph-custom-color-promo-marusia-shadow",e.customColorSidebarShadow="--ph-custom-color-sidebar-shadow",e.customColorProjectDarkBackgroundHover="--ph-custom-color-project-dark-bg--hover",e.customColorProjectDarkBackgroundActive="--ph-custom-color-project-dark-bg--active"}(hu||(hu={}));const gu={colorBackgroundContentActive:pu.colorBackgroundContent.active,colorTextPrimary:pu.colorTextPrimary.normal,colorTextSecondary:pu.colorTextSecondary.normal,colorTransparentHover:pu.colorTransparent.hover,colorTransparentActive:pu.colorTransparent.active,colorTextAccent:pu.colorTextAccent.normal,colorTextAccentHover:pu.colorTextAccent.hover,colorTextAccentActive:pu.colorTextAccent.active,colorIconPrimary:pu.colorIconPrimary.normal,colorIconSecondary:pu.colorIconSecondary.normal,colorSeparatorPrimary:pu.colorSeparatorPrimaryAlpha.normal,colorTextLink:pu.colorTextLink.normal,colorBackgroundModal:pu.colorBackgroundModal.normal,colorBackgroundModalHover:pu.colorBackgroundModal.hover,colorBackgroundModalActive:pu.colorBackgroundModal.active,customShadowProjectsMenu:pu.elevation3,customColorMainBlock:pu.colorBackgroundContent.normal,customColorMainBlockHover:pu.colorBackgroundContent.hover,customColorMainBlockActive:pu.colorBackgroundContent.active,customColorAccountAdd:"rgba(0, 16, 61, 0.06)",customColorTooltipBg:pu.colorBackgroundModal.normal,customColorTooltipText:pu.colorTextPrimary.normal,customColorTooltipShadow:"rgba(0, 16, 61, 0.32)",customColorPromoMarusiaShadow:"rgba(0, 11, 41, 0.2)",customColorSidebarShadow:"rgba(0, 11, 41, 0.2)",customColorProjectDarkBackgroundHover:pu.colorTransparent.hover,customColorProjectDarkBackgroundActive:pu.colorTransparent.active},vu=Object.assign(Object.assign({},gu),{customColorMainBlock:"#F3F3F5",customColorMainBlockHover:"#E9EAED",customColorMainBlockActive:"#E0E1E7"}),yu={colorBackgroundContentActive:mu.colorBackgroundContent.active,colorTextPrimary:mu.colorTextPrimary.normal,colorTextSecondary:mu.colorTextSecondary.normal,colorTransparentHover:mu.colorTransparent.hover,colorTransparentActive:mu.colorTransparent.active,colorTextAccent:mu.colorTextAccent.normal,colorTextAccentHover:mu.colorTextAccent.hover,colorTextAccentActive:mu.colorTextAccent.active,colorIconPrimary:mu.colorIconPrimary.normal,colorIconSecondary:mu.colorIconSecondary.normal,colorSeparatorPrimary:mu.colorSeparatorPrimary.normal,colorTextLink:mu.colorTextLink.normal,colorBackgroundModal:mu.colorBackgroundModal.normal,colorBackgroundModalHover:mu.colorBackgroundModal.hover,colorBackgroundModalActive:mu.colorBackgroundModal.active,customShadowProjectsMenu:mu.elevation3,customColorMainBlock:"#000000",customColorMainBlockHover:mu.colorBackgroundContent.hover,customColorMainBlockActive:mu.colorBackgroundContent.active,customColorAccountAdd:"rgba(255, 255, 255, 0.08)",customColorTooltipBg:mu.colorBackgroundModal.normal,customColorTooltipText:mu.colorTextPrimary.normal,customColorTooltipShadow:"rgba(0, 0, 0, 0.48)",customColorPromoMarusiaShadow:"rgba(0, 0, 0, 0.48)",customColorSidebarShadow:"rgba(0, 0, 0, 0.48)",customColorProjectDarkBackgroundHover:"rgba(255, 255, 255, 0.12)",customColorProjectDarkBackgroundActive:"rgba(255, 255, 255, 0.24)"};Object.assign(Object.assign({},gu),{customColorProjectDarkBackgroundHover:"rgba(0, 16, 61, 0.04)",customColorProjectDarkBackgroundActive:"rgba(0, 95, 249, 0.1)"}),Object.assign(Object.assign({},yu),{colorTextAccentHover:mu.colorTextPrimary.normal,customColorProjectDarkBackgroundHover:"rgba(255, 255, 255, 0.08)",customColorProjectDarkBackgroundActive:"rgba(255, 255, 255, 0.16)"}),Object.assign(Object.assign({},vu),{colorTextAccentHover:pu.colorTextPrimary.normal,customColorProjectDarkBackgroundHover:"rgba(0, 16, 61, 0.04)",customColorProjectDarkBackgroundActive:"rgba(0, 16, 61, 0.08)"});var bu,xu,wu,$u;!function(e){e[e.itemsGroupClick=66843934]="itemsGroupClick",e[e.businessGroupClick=66843935]="businessGroupClick",e[e.mailruGroupClick=66843936]="mailruGroupClick",e[e.toggleProjectModal=66843940]="toggleProjectModal",e[e.allProjectClick=61021872]="allProjectClick"}(bu||(bu={})),function(e){e[e.main=74761866]="main"}(xu||(xu={})),function(e){e[e.marusiaMain=83298043]="marusiaMain",e[e.marusiaClose=83298047]="marusiaClose"}(wu||(wu={})),function(e){e[e.okShowUnread=76909986]="okShowUnread"}($u||($u={}));const ku=[61021854,61021856,61021857,61021858,61021859,61021860,61021861,61021862,61021863,61021866,61944424];var Cu,Fu;!function(e){e[e.mail=90824763]="mail",e[e.dobro=90824767]="dobro"}(Cu||(Cu={})),function(e){e[e.mail=90824768]="mail",e[e.dobro=90824769]="dobro"}(Fu||(Fu={}));class Au{constructor(e){let{siteId:t,projects:r,selfExperimentId:n,extraTrkParams:o}=e;if(this.linksKeys=["mail","dobro"],this.selfExpIdParam="mt_sub5",this.hostParam="mt_sub1",this.trkSitesCounters={home:Cu,cloud:Fu},this.projectHasTrkUrl=e=>{let{url:t}=e;return null==t?void 0:t.startsWith("https://trk.mail.ru/")},Au.exists)return Au.instance;Au.exists=!0,Au.instance=this,this.siteId=t,this.selfExperimentId=n,this.projects=r,this.extraTrkParams=o}modifyProjectProps(){this.linksKeys.forEach((e=>{const t=this.projects[e];t&&this.projectHasTrkUrl(t)&&this.addTrkClickCounter(e,t,this.trkSitesCounters[dc[this.siteId]])}))}modifyAllProjectsUrls(){Object.values(this.projects).filter(this.projectHasTrkUrl).forEach((e=>{Object.prototype.hasOwnProperty.call(e,"isTrk")||(e.isTrk=!0),e.url=this.addParamsToUrl(e.url)}))}addParamsToPromoUrls(e){e&&["link","onlyIconShowLink"].forEach((t=>{this.projectHasTrkUrl({url:e[t]})&&(e[t]=this.addParamsToUrl(e[t]))}))}addTrkClickCounter(e,t,r){t.trk=r[e]}addParamsToUrl(e){const t=new URL(e);return t.searchParams?(this.extraTrkParams&&Object.entries(this.extraTrkParams).forEach((e=>{let[r,n]=e;t.searchParams.set(r,n)})),t.searchParams.set(this.hostParam,window.location.host),this.selfExperimentId?t.searchParams.set(this.selfExpIdParam,this.selfExperimentId):t.searchParams.delete(this.selfExpIdParam),t.toString()):e}}const Su="mtrc",Eu=/^https:\/\/(?:[\w.-]+\.)?account\.((omega|branch)\.)?(test\.)?mail\.ru\/(signup|login)/,Tu=/^https:\/\/([\w.-]+\.)*mail\.ru([\/?].*)?$/;class _u{constructor(e){this.sendXray=e.sendXray,this.sendXrayError=e.sendXrayError,this.settings=e.settings}setCookie(){return this.isSessionStorageAvailable()?this.isLoginOrSignupFromWhiteline()?void this.setSessionStorageFromCookie():this.needDeleteCookie()?(this.deleteCookie(),void this.sendXray("delete_mtrc")):this.needUpdateCookie()?(this.sendXray(Gl(Su)?"update_mtrc":"set_mtrc"),void this.updateCookie()):void this.sendXray("no_action_mtrc"):(this.deleteCookie(),void this.sendXray("no_ss_mtrc"))}deleteCookie(){const e=this.getCookieOptions();e.expires=-1,Xl(Su,"",e)}getCookieOptions(){const e=Ms();return{samesite:"Strict",secure:!0,path:"/",expires:this.getCookieExpires(),domain:e}}getCookieExpires(){const{metricsCookieExpires:e,metricsCookieEnable:t}=this.getCookieSettings();return t?e:-1}getCookieSettings(){return{metricsCookieExpires:this.settings.metricsCookieExpires||7,metricsCookieEnable:!!this.settings.metricsCookieEnable,metricsCookieParams:Bu(this.settings.metricsCookieParams,[]),metricsCookieFromParams:Bu(this.settings.metricsCookieFromParams,["navi","login","main"]),mytrackerid:this.settings.mytrackerid||0}}setSessionStorageFromCookie(){let e;try{e=JSON.parse(window.sessionStorage.getItem(Su))}catch(e){return void this.sendXray("parse_error_mtrc_ss")}if(!e){const e=Gl(Su)||JSON.stringify({});try{window.sessionStorage.setItem(Su,e)}catch(e){return void this.sendXray("set_error_mtrc_ss")}return void this.sendXray("set_mtrc_ss")}const t=this.getCookieOptions();this.isMTRCSessionStorageEmpty()?(this.sendXray("delete_mtrc_by_ss"),t.expires=-1):this.sendXray("update_mtrc_by_ss"),Xl(Su,JSON.stringify(e),t)}isMTRCSessionStorageEmpty(){let e;try{e=JSON.parse(window.sessionStorage.getItem(Su))}catch(e){return this.sendXray("parse_error_mtrc_ss"),!0}return"object"==typeof e&&0===Object.keys(e).length}needDeleteCookie(){const{metricsCookieEnable:e}=this.getCookieSettings();return!(e||!Gl(Su))}needUpdateCookie(){const{metricsCookieEnable:e}=this.getCookieSettings();return e&&!this.isLoginOrSignupFromWhiteline()&&(this.needUpdateMytrakerid()||this.needUpdateSearchParams())}needUpdateMytrakerid(){const{mytrackerid:e}=this.getCookieSettings();return e!==this.getCookie().mytrackerid}getCookie(){try{return Gl(Su)&&JSON.parse(Gl(Su))||{}}catch(e){return this.sendXray("parse_error_mtrc"),{}}}needUpdateSearchParams(){return!!Object.keys(this.getFilteredSearchParams()).length}getFilteredSearchParams(){const{metricsCookieParams:e}=this.getCookieSettings(),t=Xc(window.location.search);for(const r in t)e.includes(r)||delete t[r];return t}updateCookie(){const e=this.calculateCookieValue(),t=this.getCookieOptions();Xl(Su,JSON.stringify(e),t)}calculateCookieValue(){const e=this.getFilteredSearchParams(),{mytrackerid:t}=this.getCookieSettings();let r=this.getCookie();const n=Gl("tmr_lvid");if(this.needUpdateSearchParams()){const o=ju();r=Object.assign(Object.assign(Object.assign({},e),o?{from:o}:{}),{mytrackerid:t,tmr_lvid:n})}else this.needUpdateMytrakerid()&&(r=Object.assign(Object.assign({},r),{mytrackerid:t,tmr_lvid:n}));return r}isLoginOrSignupFromWhiteline(){const{metricsCookieFromParams:e}=this.getCookieSettings();return Eu.test(window.location.href)&&(e.includes(ju())||Tu.test(document.referrer))}isSessionStorageAvailable(){var e;let t=!1;try{t="function"==typeof(null===(e=window.sessionStorage)||void 0===e?void 0:e.getItem)}catch(e){this.sendXrayError("error_set_MTRC_cookie",e)}return t}}function Bu(e,t){return(null==e?void 0:e.split(",").map((e=>e.trim())).filter((e=>!!e)))||t}function ju(){const{from:e}=Xc(window.location.search);return e}function Pu(e){return{samesite:"None",secure:!0,path:"/",expires:e||30,domain:Ms()}}var zu=function(e){return function(t,r,n,i){Vt(r);var a=lt(t),l=o(a),s=ee(a.length),c=e?s-1:0,u=e?-1:1;if(n<2)for(;;){if(c in l){i=l[c],c+=u;break}if(c+=u,e?c<0:s<=c)throw TypeError("Reduce of empty array with no initial value")}for(;e?c>=0:s>c;c+=u)c in l&&(i=r(i,l[c],c,a));return i}},Du={left:zu(!1),right:zu(!0)},Mu=Du.left,Lu=ti("reduce");at({target:"Array",proto:!0,forced:!Lu||!z&&W>79&&W<83},{reduce:function(e){return Mu(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}});var Ou=function(){return Ou=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Ou.apply(this,arguments)},Hu=function(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var n=Array(e),o=0;for(t=0;t<r;t++)for(var i=arguments[t],a=0,l=i.length;a<l;a++,o++)n[o]=i[a];return n},Iu=function(e,t,r){if(void 0===r&&(r=!1),!e||!t||"object"!=typeof e||"object"!=typeof t)return e;var n=Ou({},e);for(var o in t)t.hasOwnProperty(o)&&(t[o]instanceof Array&&e[o]instanceof Array?n[o]=r?Hu(e[o],t[o]):t[o]:"object"==typeof t[o]&&"object"==typeof e[o]?n[o]=Iu(e[o],t[o],r):n[o]=t[o]);return n},Ru=function(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var n=Array(e),o=0;for(t=0;t<r;t++)for(var i=arguments[t],a=0,l=i.length;a<l;a++,o++)n[o]=i[a];return n},Nu={defaults:{},errorType:null,polyfills:{fetch:null,FormData:null,URLSearchParams:null,performance:null,PerformanceObserver:null,AbortController:null},polyfill:function(e,t){for(var r=void 0===t?{}:t,n=r.doThrow,o=void 0===n||n,i=r.instance,a=void 0!==i&&i,l=[],s=2;s<arguments.length;s++)l[s-2]=arguments[s];var c=this.polyfills[e]||("undefined"!=typeof self?self[e]:null)||("undefined"!=typeof global?global[e]:null);if(o&&!c)throw new Error(e+" is not defined");return a&&c?new(c.bind.apply(c,Ru([void 0],l))):c}},Wu=function(e,t,r,n){if(!e.getEntriesByName)return!1;var o=e.getEntriesByName(t);return!!(o&&o.length>0)&&(r(o.reverse()[0]),n.clearMeasures&&n.clearMeasures(t),Uu.callbacks.delete(t),Uu.callbacks.size<1&&(Uu.observer.disconnect(),n.clearResourceTimings&&n.clearResourceTimings()),!0)},Uu={callbacks:new Map,observer:null,observe:function(e,t){if(e&&t){var r=Nu.polyfill("performance",{doThrow:!1});(function(e,t){return!Uu.observer&&e&&t&&(Uu.observer=new t((function(t){Uu.callbacks.forEach((function(r,n){Wu(t,n,r,e)}))})),e.clearResourceTimings&&e.clearResourceTimings()),Uu.observer})(r,Nu.polyfill("PerformanceObserver",{doThrow:!1}))&&(Wu(r,e,t,r)||(Uu.callbacks.size<1&&Uu.observer.observe({entryTypes:["resource","measure"]}),Uu.callbacks.set(e,t)))}}},Vu=Du.right,qu=ti("reduceRight");at({target:"Array",proto:!0,forced:!qu||!z&&W>79&&W<83},{reduceRight:function(e){return Vu(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}});var Gu=function(e){this.error=e},Xu=function(){return Xu=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Xu.apply(this,arguments)},Zu=function(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var n=Array(e),o=0;for(t=0;t<r;t++)for(var i=arguments[t],a=0,l=i.length;a<l;a++,o++)n[o]=i[a];return n},Ku="application/json",Ju="Content-Type",Yu=function(){function e(e,t,r,n,o,i){void 0===r&&(r=new Map),void 0===n&&(n=[]),void 0===o&&(o=[]),void 0===i&&(i=[]),this._url=e,this._options=t,this._catchers=r,this._resolvers=n,this._middlewares=o,this._deferredChain=i}return e.factory=function(t,r){return void 0===t&&(t=""),void 0===r&&(r={}),new e(t,r)},e.prototype.selfFactory=function(t){var r=void 0===t?{}:t,n=r.url,o=void 0===n?this._url:n,i=r.options,a=void 0===i?this._options:i,l=r.catchers,s=void 0===l?this._catchers:l,c=r.resolvers,u=void 0===c?this._resolvers:c,d=r.middlewares,f=void 0===d?this._middlewares:d,h=r.deferredChain,p=void 0===h?this._deferredChain:h;return new e(o,Xu({},a),new Map(s),Zu(u),Zu(f),Zu(p))},e.prototype.defaults=function(e,t){return void 0===t&&(t=!1),Nu.defaults=t?Iu(Nu.defaults,e):e,this},e.prototype.errorType=function(e){return Nu.errorType=e,this},e.prototype.polyfills=function(e){return Nu.polyfills=Xu(Xu({},Nu.polyfills),e),this},e.prototype.url=function(e,t){if(void 0===t&&(t=!1),t)return this.selfFactory({url:e});var r=this._url.split("?");return this.selfFactory({url:r.length>1?r[0]+e+"?"+r[1]:this._url+e})},e.prototype.options=function(e,t){return void 0===t&&(t=!0),this.selfFactory({options:t?Iu(this._options,e):e})},e.prototype.query=function(e,t){return void 0===t&&(t=!1),this.selfFactory({url:Qu(this._url,e,t)})},e.prototype.headers=function(e){return this.selfFactory({options:Iu(this._options,{headers:e||{}})})},e.prototype.accept=function(e){return this.headers({Accept:e})},e.prototype.content=function(e){var t;return this.headers(((t={})["Content-Type"]=e,t))},e.prototype.auth=function(e){return this.headers({Authorization:e})},e.prototype.catcher=function(e,t){var r=new Map(this._catchers);return r.set(e,t),this.selfFactory({catchers:r})},e.prototype.signal=function(e){return this.selfFactory({options:Xu(Xu({},this._options),{signal:e.signal})})},e.prototype.resolve=function(e,t){return void 0===t&&(t=!1),this.selfFactory({resolvers:t?[e]:Zu(this._resolvers,[e])})},e.prototype.defer=function(e,t){return void 0===t&&(t=!1),this.selfFactory({deferredChain:t?[e]:Zu(this._deferredChain,[e])})},e.prototype.middlewares=function(e,t){return void 0===t&&(t=!1),this.selfFactory({middlewares:t?e:Zu(this._middlewares,e)})},e.prototype.method=function(e,t,r){void 0===t&&(t={}),void 0===r&&(r=null);var n=this._options.headers,o=r?"object"!=typeof r||n&&!Object.entries(n).every((function(e){var t=e[0],r=e[1];return t.toLowerCase()!==Ju.toLowerCase()||r.startsWith(Ku)}))?this.body(r):this.json(r):this;return function(e){var t=e._url,r=e._catchers,n=e._resolvers,o=e._middlewares,i=e._options,a=new Map(r),l=Iu(Nu.defaults,i),s=Nu.polyfill("AbortController",{doThrow:!1,instance:!0});!l.signal&&s&&(l.signal=s.signal);var c={ref:null,clear:function(){c.ref&&(clearTimeout(c.ref),c.ref=null)}},u=function(e){return function(t){return 0===e.length?t:1===e.length?e[0](t):e.reduceRight((function(r,n,o){return o===e.length-2?n(r(t)):n(r)}))}}(o)(Nu.polyfill("fetch"))(t,l),d=u.catch((function(e){throw new Gu(e)})).then((function(e){return c.clear(),e.ok?e:e[Nu.errorType||"text"]().then((function(t){var r=new Error(t);throw r[Nu.errorType||"text"]=t,r.status=e.status,r.response=e,r}))})),f=function(t){return t.catch((function(t){c.clear();var r=t instanceof Gu?t.error:t;if(t instanceof Gu&&a.has("__fromFetch"))return a.get("__fromFetch")(r,e);if(a.has(r.status))return a.get(r.status)(r,e);if(a.has(r.name))return a.get(r.name)(r,e);throw r}))},h=function(e){return function(t){return f(e?d.then((function(t){return t&&t[e]()})).then((function(e){return t?t(e):e})):d.then((function(e){return t?t(e):e})))}},p={res:h(null),json:h("json"),blob:h("blob"),formData:h("formData"),arrayBuffer:h("arrayBuffer"),text:h("text"),perfs:function(e){return u.then((function(t){return Uu.observe(t.url,e)})),p},setTimeout:function(e,t){return void 0===t&&(t=s),c.clear(),c.ref=setTimeout((function(){return t.abort()}),e),p},controller:function(){return[s,p]},error:function(e,t){return a.set(e,t),p},badRequest:function(e){return p.error(400,e)},unauthorized:function(e){return p.error(401,e)},forbidden:function(e){return p.error(403,e)},notFound:function(e){return p.error(404,e)},timeout:function(e){return p.error(408,e)},internalError:function(e){return p.error(500,e)},fetchError:function(e){return p.error("__fromFetch",e)},onAbort:function(e){return p.error("AbortError",e)}};return n.reduce((function(t,r){return r(t,e)}),p)}((o=o.options(Xu(Xu({},t),{method:e})))._deferredChain.reduce((function(e,t){return t(e,e._url,e._options)}),o))},e.prototype.get=function(e){return this.method("GET",e)},e.prototype.delete=function(e){return this.method("DELETE",e)},e.prototype.put=function(e,t){return this.method("PUT",t,e)},e.prototype.post=function(e,t){return this.method("POST",t,e)},e.prototype.patch=function(e,t){return this.method("PATCH",t,e)},e.prototype.head=function(e){return this.method("HEAD",e)},e.prototype.opts=function(e){return this.method("OPTIONS",e)},e.prototype.replay=function(e){return this.method(this._options.method,e)},e.prototype.body=function(e){return this.selfFactory({options:Xu(Xu({},this._options),{body:e})})},e.prototype.json=function(e){var t,r=null===(t=Object.entries(this._options.headers||{}).find((function(e){var t=e[0],r=e[1];return t.toLowerCase()===Ju.toLowerCase()&&r.startsWith(Ku)})))||void 0===t?void 0:t[1];return this.content(r||Ku).body(JSON.stringify(e))},e.prototype.formData=function(e,t){return void 0===t&&(t=!1),this.body(ed(e,t))},e.prototype.formUrl=function(e){return this.body("string"==typeof e?e:(t=e,Object.keys(t).map((function(e){var r=t[e];return r instanceof Array?r.map((function(t){return td(e,t)})).join("&"):td(e,r)})).join("&"))).content("application/x-www-form-urlencoded");var t},e}(),Qu=function(e,t,r){var n;if("string"==typeof t)n=t;else{var o=Nu.polyfill("URLSearchParams",{instance:!0});for(var i in t)if(t[i]instanceof Array)for(var a=0,l=t[i];a<l.length;a++){var s=l[a];o.append(i,s)}else o.append(i,t[i]);n=o.toString()}var c=e.split("?");return r||c.length<2?c[0]+"?"+n:e+"&"+n};function ed(e,t,r,n){return void 0===t&&(t=!1),void 0===r&&(r=Nu.polyfill("FormData",{instance:!0})),void 0===n&&(n=[]),Object.entries(e).forEach((function(e){var o=e[0],i=e[1],a=n.reduce((function(e,t){return e?e+"["+t+"]":t}),null);if(a=a?a+"["+o+"]":o,i instanceof Array)for(var l=0,s=i;l<s.length;l++){var c=s[l];r.append(a+"[]",c)}else!t||"object"!=typeof i||t instanceof Array&&t.includes(o)?r.append(a,i):null!==i&&ed(i,t,r,Zu(n,[o]))})),r}function td(e,t){return encodeURIComponent(e)+"="+encodeURIComponent("object"==typeof t?JSON.stringify(t):""+t)}var rd=Yu.factory;rd.default=Yu.factory;class nd{constructor(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.url=e,this.isCors=t}get options(){return this.isCors?{credentials:"include",mode:"cors"}:{mode:"no-cors"}}get(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return rd().options(this.options).url(this.url+t).query(e).query({_:Math.round((new Date).getTime()+1e9*Math.random())}).get().fetchError(((e,t)=>{const r=`${e.message} in request to ${t._url}`;throw new Error(r)}))}getJson(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this.get(e,t).json()}post(e){return rd(this.url).options(Object.assign(Object.assign({},this.options),{method:"post"})).formUrl(e).post()}}const od=ns?"//portal.devmail.ru":`//portal.${is}`,id=ns?"//auth.devmail.ru":`//auth.${is}`,ad=`//bar.love.${os}/jsonp/bar`;var ld,sd=new class extends nd{constructor(){super(ad)}},cd=[],ud="ResizeObserver loop completed with undelivered notifications.";!function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"}(ld||(ld={}));var dd=function(e){return Object.freeze(e)},fd=function(e,t){this.inlineSize=e,this.blockSize=t,dd(this)};at({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return URL.prototype.toString.call(this)}});var hd,pd=function(){function e(e,t,r,n){return this.x=e,this.y=t,this.width=r,this.height=n,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,dd(this)}return e.prototype.toJSON=function(){var e=this;return{x:e.x,y:e.y,top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.width,height:e.height}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),md=function(e){return e instanceof SVGElement&&"getBBox"in e},gd=function(e){if(md(e)){var t=e.getBBox(),r=t.width,n=t.height;return!r&&!n}var o=e,i=o.offsetWidth,a=o.offsetHeight;return!(i||a||e.getClientRects().length)},vd=function(e){var t,r,n=null===(r=null===(t=e)||void 0===t?void 0:t.ownerDocument)||void 0===r?void 0:r.defaultView;return!!(n&&e instanceof n.Element)},yd="undefined"!=typeof window?window:{},bd=new WeakMap,xd=/auto|scroll/,wd=/^tb|vertical/,$d=/msie|trident/i.test(yd.navigator&&yd.navigator.userAgent),kd=function(e){return parseFloat(e||"0")},Cd=function(e,t,r){return void 0===e&&(e=0),void 0===t&&(t=0),void 0===r&&(r=!1),new fd((r?t:e)||0,(r?e:t)||0)},Fd=dd({devicePixelContentBoxSize:Cd(),borderBoxSize:Cd(),contentBoxSize:Cd(),contentRect:new pd(0,0,0,0)}),Ad=function(e,t){if(void 0===t&&(t=!1),bd.has(e)&&!t)return bd.get(e);if(gd(e))return bd.set(e,Fd),Fd;var r=getComputedStyle(e),n=md(e)&&e.ownerSVGElement&&e.getBBox(),o=!$d&&"border-box"===r.boxSizing,i=wd.test(r.writingMode||""),a=!n&&xd.test(r.overflowY||""),l=!n&&xd.test(r.overflowX||""),s=n?0:kd(r.paddingTop),c=n?0:kd(r.paddingRight),u=n?0:kd(r.paddingBottom),d=n?0:kd(r.paddingLeft),f=n?0:kd(r.borderTopWidth),h=n?0:kd(r.borderRightWidth),p=n?0:kd(r.borderBottomWidth),m=d+c,g=s+u,v=(n?0:kd(r.borderLeftWidth))+h,y=f+p,b=l?e.offsetHeight-y-e.clientHeight:0,x=a?e.offsetWidth-v-e.clientWidth:0,w=o?m+v:0,$=o?g+y:0,k=n?n.width:kd(r.width)-w-x,C=n?n.height:kd(r.height)-$-b,F=k+m+x+v,A=C+g+b+y,S=dd({devicePixelContentBoxSize:Cd(Math.round(k*devicePixelRatio),Math.round(C*devicePixelRatio),i),borderBoxSize:Cd(F,A,i),contentBoxSize:Cd(k,C,i),contentRect:new pd(d,s,k,C)});return bd.set(e,S),S},Sd=function(e,t,r){var n=Ad(e,r),o=n.borderBoxSize,i=n.contentBoxSize,a=n.devicePixelContentBoxSize;switch(t){case ld.DEVICE_PIXEL_CONTENT_BOX:return a;case ld.BORDER_BOX:return o;default:return i}},Ed=function(e){var t=Ad(e);this.target=e,this.contentRect=t.contentRect,this.borderBoxSize=dd([t.borderBoxSize]),this.contentBoxSize=dd([t.contentBoxSize]),this.devicePixelContentBoxSize=dd([t.devicePixelContentBoxSize])},Td=function(e){if(gd(e))return 1/0;for(var t=0,r=e.parentNode;r;)t+=1,r=r.parentNode;return t},_d=function(){var e=1/0,t=[];cd.forEach((function(r){if(0!==r.activeTargets.length){var n=[];r.activeTargets.forEach((function(t){var r=new Ed(t.target),o=Td(t.target);n.push(r),t.lastReportedSize=Sd(t.target,t.observedBox),o<e&&(e=o)})),t.push((function(){r.callback.call(r.observer,n,r.observer)})),r.activeTargets.splice(0,r.activeTargets.length)}}));for(var r=0,n=t;r<n.length;r++){(0,n[r])()}return e},Bd=function(e){cd.forEach((function(t){t.activeTargets.splice(0,t.activeTargets.length),t.skippedTargets.splice(0,t.skippedTargets.length),t.observationTargets.forEach((function(r){r.isActive()&&(Td(r.target)>e?t.activeTargets.push(r):t.skippedTargets.push(r))}))}))},jd=function(){var e,t=0;for(Bd(t);cd.some((function(e){return e.activeTargets.length>0}));)t=_d(),Bd(t);return cd.some((function(e){return e.skippedTargets.length>0}))&&("function"==typeof ErrorEvent?e=new ErrorEvent("error",{message:ud}):((e=document.createEvent("Event")).initEvent("error",!1,!1),e.message=ud),window.dispatchEvent(e)),t>0},Pd=[],zd=function(e){if(!hd){var t=0,r=document.createTextNode("");new MutationObserver((function(){return Pd.splice(0).forEach((function(e){return e()}))})).observe(r,{characterData:!0}),hd=function(){r.textContent=""+(t?t--:t++)}}Pd.push(e),hd()},Dd=0,Md={attributes:!0,characterData:!0,childList:!0,subtree:!0},Ld=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],Od=function(e){return void 0===e&&(e=0),Date.now()+e},Hd=!1,Id=new(function(){function e(){var e=this;this.stopped=!0,this.listener=function(){return e.schedule()}}return e.prototype.run=function(e){var t=this;if(void 0===e&&(e=250),!Hd){Hd=!0;var r,n=Od(e);r=function(){var r=!1;try{r=jd()}finally{if(Hd=!1,e=n-Od(),!Dd)return;r?t.run(1e3):e>0?t.run(e):t.start()}},zd((function(){requestAnimationFrame(r)}))}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var e=this,t=function(){return e.observer&&e.observer.observe(document.body,Md)};document.body?t():yd.addEventListener("DOMContentLoaded",t)},e.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),Ld.forEach((function(t){return yd.addEventListener(t,e.listener,!0)})))},e.prototype.stop=function(){var e=this;this.stopped||(this.observer&&this.observer.disconnect(),Ld.forEach((function(t){return yd.removeEventListener(t,e.listener,!0)})),this.stopped=!0)},e}()),Rd=function(e){!Dd&&e>0&&Id.start(),!(Dd+=e)&&Id.stop()},Nd=function(){function e(e,t){this.target=e,this.observedBox=t||ld.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var e,t=Sd(this.target,this.observedBox,!0);return e=this.target,md(e)||function(e){switch(e.tagName){case"INPUT":if("image"!==e.type)break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1}(e)||"inline"!==getComputedStyle(e).display||(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),Wd=function(e,t){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=t},Ud=new WeakMap,Vd=function(e,t){for(var r=0;r<e.length;r+=1)if(e[r].target===t)return r;return-1},qd=function(){function e(){}return e.connect=function(e,t){var r=new Wd(e,t);Ud.set(e,r)},e.observe=function(e,t,r){var n=Ud.get(e),o=0===n.observationTargets.length;Vd(n.observationTargets,t)<0&&(o&&cd.push(n),n.observationTargets.push(new Nd(t,r&&r.box)),Rd(1),Id.schedule())},e.unobserve=function(e,t){var r=Ud.get(e),n=Vd(r.observationTargets,t),o=1===r.observationTargets.length;n>=0&&(o&&cd.splice(cd.indexOf(r),1),r.observationTargets.splice(n,1),Rd(-1))},e.disconnect=function(e){var t=this,r=Ud.get(e);r.observationTargets.slice().forEach((function(r){return t.unobserve(e,r.target)})),r.activeTargets.splice(0,r.activeTargets.length)},e}(),Gd=function(){function e(e){if(0===arguments.length)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if("function"!=typeof e)throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");qd.connect(this,e)}return e.prototype.observe=function(e,t){if(0===arguments.length)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!vd(e))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");qd.observe(this,e,t)},e.prototype.unobserve=function(e){if(0===arguments.length)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!vd(e))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");qd.unobserve(this,e)},e.prototype.disconnect=function(){qd.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}();const Xd=(Zd={sm:768,md:1024,lg:1240,xl:1366,xxl:1600,xxxl:1920},Kd="width",Object.entries(Zd).map(((e,t,r)=>{let n;return n=t===r.length-1?`(min-${Kd}: ${e[1]}px)`:`(min-${Kd}: ${e[1]}px) and (max-${Kd}: ${r[t+1][1]-1}px)`,{query:n,name:e[0],value:e[1]}})));var Zd,Kd;let Jd=Xd.find((e=>window.matchMedia(e.query).matches))||Xd[0];const Yd=Ql({x:Jd.name},(e=>{const t=()=>{!function(e){const t=Xd.find((e=>window.matchMedia(e.query).matches))||Xd[0];t!==Jd&&(e({x:t.name}),Jd=t)}(e)};return window.addEventListener("resize",t),()=>window.removeEventListener("resize",t)}));function Qd(e){const t=Xd.map((e=>e.name)),r=t.findIndex((t=>t===e));return t.slice(0,r+1)}const ef=es(null),tf=es(!0),rf=es(),nf=(e,t)=>{const r=r=>{e===document.activeElement&&"Enter"===r.key&&t(r)};return e.addEventListener("click",t),e.addEventListener("keydown",r),{destroy(){e.removeEventListener("click",t),e.removeEventListener("keydown",r)}}};function of(e,t){let r,n,o=!1;return function i(){for(var a=arguments.length,l=new Array(a),s=0;s<a;s++)l[s]=arguments[s];if(o)return r=l,void(n=this);e.apply(this,l),o=!0;const c=function(){o=!1,r&&(i.apply(n,r),r=null,n=null)};setTimeout(c,t)}}var af;!function(e){e.show="show",e.click="click"}(af||(af={}));const lf=e=>{let{isTrk:t,url:r}=e;t&&r&&gc.sendToServer(r.replace("/c/","/i/"))},sf=e=>{let{index:t,isTrk:r,action:n,category:o,project:i,isSendDwh:a}=e;const l=["project",i,o,n];ss(["project-link",o,`${t}`,r?"trk":"non-trk",n]);ss(l,a&&{dwh:{position:t},skipdwh:!1})},cf=e=>{let{isTrk:t,action:r}=e;ss(["all-projects-link",t?"trk":"non-trk",r])},uf=e=>sf(Object.assign({action:af.click},e)),df=e=>{lf(e),sf(Object.assign({action:af.show},e))},ff=e=>cf({action:af.click,isTrk:e}),hf=e=>{let{isTrk:t,url:r}=e;lf({isTrk:t,url:r}),cf({action:af.show,isTrk:t})};function pf(e,t){const r=of(o,200);let n=!1;function o(){(function(e){const{top:t,bottom:r,left:n,right:o}=e.getBoundingClientRect();return t>0&&r<window.innerHeight&&n>0&&o<window.innerWidth})(e)&&!n&&(n=!0,gc.handleShowCounters(e),null==t||t(),window.removeEventListener("resize",r),window.removeEventListener("scroll",r))}return window.addEventListener("resize",r),window.addEventListener("scroll",r),setTimeout((()=>{o()}),200),{destroy(){window.removeEventListener("resize",r),window.removeEventListener("scroll",r)}}}const mf=new Set,gf=new Set,vf=e=>{gc.handleClick(e)},yf=e=>{const t=new Set,r=new Set;if(e.querySelectorAll('[data-click-prefixs*="nid"]').forEach((e=>{const n=e.dataset.clickCounter,o=e.dataset.clickPrefixs,i=n?n.split(","):[],a=o?o.split(","):[],l=i.filter(((e,t)=>{var r;return"nid"===(null===(r=a[t])||void 0===r?void 0:r.trim())})),s=i.filter(((e,t)=>{var r;return"click"===(null===(r=a[t])||void 0===r?void 0:r.trim())})).map((e=>e.trim()));l.filter((e=>!mf.has(e))).forEach((e=>{t.add(e),mf.add(e)})),s.filter((e=>!gf.has(e))).forEach((e=>{r.add(e),gf.add(e)}))})),t.size&&gc.linkCounter([...t]),r.size){const e=[...r].map((e=>`${cc.show}${e}`)).join(",");gc.count(e)}},bf=e=>{yf(e);const t=of((()=>{yf(e)}),100);return e.addEventListener("mousedown",vf),window.addEventListener("resize",t),{destroy(){e.removeEventListener("mousedown",vf),window.removeEventListener("resize",t)}}};function xf(e){const t=e-1;return t*t*t+1}function wf(e,t){let{delay:r=0,duration:n=250,easing:o=xf}=t;const i=getComputedStyle(e),a=parseInt(i.height);return{delay:r,duration:n,easing:o,css:e=>`overflow: hidden; height: ${e*a}px`}}function $f(e,t){let{delay:r=0,duration:n=250,easing:o=xf,y:i=0}=t;const a=getComputedStyle(e),l=parseFloat(a.opacity);return{delay:r,duration:n,easing:o,css:e=>`opacity: ${e*l}; transform: translateY(${(1-e)*i}px);`}}const kf={delay:0,duration:250},Cf={delay:0,duration:150},Ff={delay:50,duration:200,y:-48},Af={delay:0,duration:120,y:-48};function Sf(e){let t,r,n,o,i,a;const l=e[1].default,s=ra(l,e,e[0],null);return{c(){t=Ca("div"),s&&s.c(),ja(t,"class","ph-modal-projects svelte-p0r44l")},m(r,n){wa(r,t,n),s&&s.m(t,null),o=!0,i||(a=Ta(t,"click",e[2]),i=!0)},p(t,r){let[n]=r;e=t,s&&s.p&&(!o||1&n)&&ia(s,l,e,e[0],o?oa(l,e[0],n,null):aa(e[0]),null)},i(e){o||(gl(s,e),ol((()=>{n&&n.end(1),r=bl(t,wf,kf),r.start()})),o=!0)},o(e){vl(s,e),r&&r.invalidate(),n=xl(t,wf,Cf),o=!1},d(e){e&&$a(t),s&&s.d(e),e&&n&&n.end(),i=!1,a()}}}function Ef(e,t,r){let{$$slots:n={},$$scope:o}=t;return e.$$set=e=>{"$$scope"in e&&r(0,o=e.$$scope)},[o,n,function(t){Ja.call(this,e,t)}]}class Tf extends jl{constructor(e){super(),Bl(this,e,Ef,Sf,Yi,{})}}const _f=e=>{gc.handleClick(e)},Bf=e=>(e.addEventListener("mousedown",_f),{destroy(){e.removeEventListener("mousedown",_f)}});function jf(e){const t=e.dataset.clickCounter?e.dataset.clickCounter.split(","):[],r=e.dataset.clickPrefixs?e.dataset.clickPrefixs.split(","):[],n=t.filter(((e,t)=>"nid"===r[t]));return n}const Pf=e=>{const t=new Set,r=e.querySelectorAll("[data-click-counter]");let n=jf(e);return Array.from(r).forEach((e=>{n=[...n,jf(e)]})),n.forEach((e=>t.add(e))),gc.linkCounter([...t]),Bf(e)};var zf='<path fill-rule="evenodd" clip-rule="evenodd" d="M5.293 2.793a1 1 0 0 1 1.414 0l4.5 4.5a1 1 0 0 1 0 1.414l-4.5 4.5a1 1 0 0 1-1.414-1.414L9.086 8 5.293 4.207a1 1 0 0 1 0-1.414z"/>',Df="0 0 16 16";function Mf(e){let t,r,n,o,i,a,l,s,c=e[1]["all-projects"]+"",u=zf+"";return{c(){t=Ca("a"),r=Ca("span"),n=Sa(),o=Fa("svg"),ja(o,"class","ph-all-projects__icon svelte-o7kxr9"),ja(o,"aria-hidden","true"),ja(o,"viewBox",Df),ja(t,"class","ph-all-projects svelte-o7kxr9"),ja(t,"href",i=e[0].items["all-projects"].url),ja(t,"data-click-counter",a=e[0].items["all-projects"].nid),ja(t,"data-click-prefixs","nid"),ja(t,"target",e[2])},m(i,a){wa(i,t,a),ya(t,r),r.innerHTML=c,ya(t,n),ya(t,o),o.innerHTML=u,l||(s=[da(Pf.call(null,t)),Ta(t,"click",e[3])],l=!0)},p(e,n){let[o]=n;2&o&&c!==(c=e[1]["all-projects"]+"")&&(r.innerHTML=c),1&o&&i!==(i=e[0].items["all-projects"].url)&&ja(t,"href",i),1&o&&a!==(a=e[0].items["all-projects"].nid)&&ja(t,"data-click-counter",a)},i:Ni,o:Ni,d(e){e&&$a(t),l=!1,Gi(s)}}}function Lf(e,t,r){let n,o;ta(e,vc,(e=>r(0,n=e))),ta(e,kc,(e=>r(1,o=e)));const i=Ka("isTargetBlank");Xa((()=>{hf(n.items["all-projects"])}));return[n,o,i,()=>ff(n.items["all-projects"].isTrk)]}class Of extends jl{constructor(e){super(),Bl(this,e,Lf,Mf,Yi,{})}}const Hf="ph-image-loader",If=(e,t)=>{t&&(e.style.borderRadius=t),e.classList.add(Hf)},Rf=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";If(e,t);const r=()=>{e.style.borderRadius=null,e.classList.remove(Hf)},n=()=>{If(e,t)};return e.addEventListener("load",r),e.addEventListener("error",n),{destroy(){e.removeEventListener("load",r),e.removeEventListener("error",n)}}};function Nf(e){let t,r,n,o,i,a,l;return{c(){t=Ca("a"),r=Ca("img"),o=Sa(),i=Ca("span"),Ji(r.src,n=e[1])||ja(r,"src",n),ja(r,"width","44"),ja(r,"height","44"),ja(r,"alt",""),ja(i,"class","ph-projects-bar-item__title svelte-1xzxste"),ja(t,"class","ph-projects-bar-item svelte-1xzxste"),ja(t,"href",e[0]),ja(t,"data-click-counter",e[5]()),ja(t,"data-click-prefixs",e[6]()),ja(t,"target",e[3])},m(n,s){wa(n,t,s),ya(t,r),ya(t,o),ya(t,i),i.innerHTML=e[2],a||(l=[da(Rf.call(null,r,"12px")),Ta(t,"click",e[12])],a=!0)},p(e,o){let[a]=o;2&a&&!Ji(r.src,n=e[1])&&ja(r,"src",n),4&a&&(i.innerHTML=e[2]),1&a&&ja(t,"href",e[0])},i:Ni,o:Ni,d(e){e&&$a(t),a=!1,Gi(l)}}}function Wf(e,t,r){let n;var o;ta(e,Gc,(e=>r(14,n=e)));let{name:i}=t,{index:a}=t,{url:l}=t,{src:s}=t,{title:c}=t,{trk:u=0}=t,{nid:d}=t,{isTrk:f=!1}=t;const h=Ka("isTargetBlank"),p=null===(o=n)||void 0===o?void 0:o.sendDwh,m={index:a+1,category:"icon",isTrk:f,url:l,project:i,isSendDwh:p};Xa((()=>{lf({isTrk:f,url:l}),df(m)}));return e.$$set=e=>{"name"in e&&r(7,i=e.name),"index"in e&&r(8,a=e.index),"url"in e&&r(0,l=e.url),"src"in e&&r(1,s=e.src),"title"in e&&r(2,c=e.title),"trk"in e&&r(9,u=e.trk),"nid"in e&&r(10,d=e.nid),"isTrk"in e&&r(11,f=e.isTrk)},[l,s,c,h,m,function(){return[d,u].filter(Boolean).join(", ")},function(){const e=["nid"];return u&&e.push("click"),e.join(", ")},i,a,u,d,f,()=>uf(m)]}class Uf extends jl{constructor(e){super(),Bl(this,e,Wf,Nf,Yi,{name:7,index:8,url:0,src:1,title:2,trk:9,nid:10,isTrk:11})}}function Vf(e,t,r){const n=e.slice();return n[3]=t[r],n[5]=r,n}function qf(e){let t,r;return t=new Uf({props:{name:e[3],index:e[5],url:e[0].items[e[3]].url,src:e[0].items[e[3]].src_2x,title:e[1][e[3]],trk:e[0].items[e[3]].trk,nid:e[0].items[e[3]].nid,isTrk:e[0].items[e[3]].isTrk}}),{c(){Sl(t.$$.fragment)},m(e,n){El(t,e,n),r=!0},p(e,r){const n={};1&r&&(n.url=e[0].items[e[3]].url),1&r&&(n.src=e[0].items[e[3]].src_2x),2&r&&(n.title=e[1][e[3]]),1&r&&(n.trk=e[0].items[e[3]].trk),1&r&&(n.nid=e[0].items[e[3]].nid),1&r&&(n.isTrk=e[0].items[e[3]].isTrk),t.$set(n)},i(e){r||(gl(t.$$.fragment,e),r=!0)},o(e){vl(t.$$.fragment,e),r=!1},d(e){Tl(t,e)}}}function Gf(e){let t,r,n,o,i=e[2],a=[];for(let t=0;t<i.length;t+=1)a[t]=qf(Vf(e,i,t));const l=e=>vl(a[e],1,1,(()=>{a[e]=null}));return{c(){t=Ca("section");for(let e=0;e<a.length;e+=1)a[e].c();ja(t,"class","ph-projects-bar svelte-7bzuaq")},m(e,i){wa(e,t,i);for(let e=0;e<a.length;e+=1)a[e].m(t,null);r=!0,n||(o=da(Pf.call(null,t)),n=!0)},p(e,r){let[n]=r;if(7&n){let r;for(i=e[2],r=0;r<i.length;r+=1){const o=Vf(e,i,r);a[r]?(a[r].p(o,n),gl(a[r],1)):(a[r]=qf(o),a[r].c(),gl(a[r],1),a[r].m(t,null))}for(pl(),r=i.length;r<a.length;r+=1)l(r);ml()}},i(e){if(!r){for(let e=0;e<i.length;e+=1)gl(a[e]);r=!0}},o(e){a=a.filter(Boolean);for(let e=0;e<a.length;e+=1)vl(a[e]);r=!1},d(e){e&&$a(t),ka(a,e),n=!1,o()}}}function Xf(e,t,r){let n,o;ta(e,vc,(e=>r(0,n=e))),ta(e,kc,(e=>r(1,o=e)));const i=n.projectsbar.filter(((e,t)=>t<10&&n.items[e].url&&n.items[e].src_2x&&o[e]&&n.items[e].nid));return[n,o,i]}class Zf extends jl{constructor(e){super(),Bl(this,e,Xf,Gf,Yi,{})}}const Kf=(e,t)=>{const r=ea(vc);return[r.items[e].nid,t,r.items[e].trk].filter(Boolean).join(", ")},Jf=e=>{const t=["nid","click"];return ea(vc).items[e].trk&&t.push("click"),t.join(", ")};function Yf(e){let t,r,n,o,i;return{c(){t=Ca("img"),ja(t,"class","ph-project__icon svelte-ezp2r2"),Ji(t.src,r=e[3].items[e[0]]["img"+(e[4]?"_dark":"")])||ja(t,"src",r),ja(t,"alt","")},m(e,r){wa(e,t,r),o||(i=da(n=Rf.call(null,t,"50%")),o=!0)},p(e,n){25&n&&!Ji(t.src,r=e[3].items[e[0]]["img"+(e[4]?"_dark":"")])&&ja(t,"src",r)},d(e){e&&$a(t),o=!1,i()}}}function Qf(e){let t,r,n,o,i,a,l,s,c=e[5][e[0]]+"",u=e[2]&&Yf(e);return{c(){t=Ca("a"),u&&u.c(),r=Sa(),n=Ca("span"),ja(n,"class","svelte-ezp2r2"),ja(t,"class","ph-project svelte-ezp2r2"),ja(t,"href",o=e[3].items[e[0]].url),ja(t,"data-click-counter",i=Kf(e[0],e[1])),ja(t,"data-click-prefixs",a=Jf(e[0])),ja(t,"target",e[6])},m(o,i){wa(o,t,i),u&&u.m(t,null),ya(t,r),ya(t,n),n.innerHTML=c,l||(s=Ta(t,"click",e[7]),l=!0)},p(e,l){let[s]=l;e[2]?u?u.p(e,s):(u=Yf(e),u.c(),u.m(t,r)):u&&(u.d(1),u=null),33&s&&c!==(c=e[5][e[0]]+"")&&(n.innerHTML=c),9&s&&o!==(o=e[3].items[e[0]].url)&&ja(t,"href",o),3&s&&i!==(i=Kf(e[0],e[1]))&&ja(t,"data-click-counter",i),1&s&&a!==(a=Jf(e[0]))&&ja(t,"data-click-prefixs",a)},i:Ni,o:Ni,d(e){e&&$a(t),u&&u.d(),l=!1,s()}}}function eh(e,t,r){let n,o,i;ta(e,vc,(e=>r(3,n=e))),ta(e,eu,(e=>r(4,o=e))),ta(e,kc,(e=>r(5,i=e)));let{project:a}=t,{clickCounter:l}=t,{hasIcons:s=!1}=t;const c=Ka("isTargetBlank");return e.$$set=e=>{"project"in e&&r(0,a=e.project),"clickCounter"in e&&r(1,l=e.clickCounter),"hasIcons"in e&&r(2,s=e.hasIcons)},[a,l,s,n,o,i,c,function(t){Ja.call(this,e,t)}]}class th extends jl{constructor(e){super(),Bl(this,e,eh,Qf,Yi,{project:0,clickCounter:1,hasIcons:2})}}function rh(e,t,r){const n=e.slice();return n[18]=t[r],n[20]=r,n}function nh(e,t,r){const n=e.slice();return n[15]=t[r],n[17]=r,n}function oh(e,t,r){const n=e.slice();return n[15]=t[r],n[17]=r,n}function ih(e){let t,r,n,o=e[3],i=[];for(let t=0;t<o.length;t+=1)i[t]=sh(rh(e,o,t));const a=e=>vl(i[e],1,1,(()=>{i[e]=null}));return{c(){t=Ca("div"),r=Ca("div");for(let e=0;e<i.length;e+=1)i[e].c();ja(r,"class","ph-projects-group__wrapper svelte-6aoims")},m(e,o){wa(e,t,o),ya(t,r);for(let e=0;e<i.length;e+=1)i[e].m(r,null);n=!0},p(e,t){if(62&t){let n;for(o=e[3],n=0;n<o.length;n+=1){const a=rh(e,o,n);i[n]?(i[n].p(a,t),gl(i[n],1)):(i[n]=sh(a),i[n].c(),gl(i[n],1),i[n].m(r,null))}for(pl(),n=o.length;n<i.length;n+=1)a(n);ml()}},i(e){if(!n){for(let e=0;e<o.length;e+=1)gl(i[e]);n=!0}},o(e){i=i.filter(Boolean);for(let e=0;e<i.length;e+=1)vl(i[e]);n=!1},d(e){e&&$a(t),ka(i,e)}}}function ah(e){let t,r,n=e[3][0],o=[];for(let t=0;t<n.length;t+=1)o[t]=ch(oh(e,n,t));const i=e=>vl(o[e],1,1,(()=>{o[e]=null}));return{c(){for(let e=0;e<o.length;e+=1)o[e].c();t=Ea()},m(e,n){for(let t=0;t<o.length;t+=1)o[t].m(e,n);wa(e,t,n),r=!0},p(e,r){if(62&r){let a;for(n=e[3][0],a=0;a<n.length;a+=1){const i=oh(e,n,a);o[a]?(o[a].p(i,r),gl(o[a],1)):(o[a]=ch(i),o[a].c(),gl(o[a],1),o[a].m(t.parentNode,t))}for(pl(),a=n.length;a<o.length;a+=1)i(a);ml()}},i(e){if(!r){for(let e=0;e<n.length;e+=1)gl(o[e]);r=!0}},o(e){o=o.filter(Boolean);for(let e=0;e<o.length;e+=1)vl(o[e]);r=!1},d(e){ka(o,e),e&&$a(t)}}}function lh(e){let t,r;return t=new th({props:{project:e[15],clickCounter:e[5](),hasIcons:e[1]}}),t.$on("click",(function(){Xi(e[4](e[17]+dh*e[20],e[2].items[e[15]].isTrk))&&e[4](e[17]+dh*e[20],e[2].items[e[15]].isTrk).apply(this,arguments)})),{c(){Sl(t.$$.fragment)},m(e,n){El(t,e,n),r=!0},p(r,n){e=r;const o={};2&n&&(o.hasIcons=e[1]),t.$set(o)},i(e){r||(gl(t.$$.fragment,e),r=!0)},o(e){vl(t.$$.fragment,e),r=!1},d(e){Tl(t,e)}}}function sh(e){let t,r,n=e[18].length&&function(e){let t,r,n,o=e[18],i=[];for(let t=0;t<o.length;t+=1)i[t]=lh(nh(e,o,t));const a=e=>vl(i[e],1,1,(()=>{i[e]=null}));return{c(){t=Ca("div");for(let e=0;e<i.length;e+=1)i[e].c();r=Sa(),ja(t,"class","ph-projects-group__wrapper-column svelte-6aoims")},m(e,o){wa(e,t,o);for(let e=0;e<i.length;e+=1)i[e].m(t,null);ya(t,r),n=!0},p(e,n){if(62&n){let l;for(o=e[18],l=0;l<o.length;l+=1){const a=nh(e,o,l);i[l]?(i[l].p(a,n),gl(i[l],1)):(i[l]=lh(a),i[l].c(),gl(i[l],1),i[l].m(t,r))}for(pl(),l=o.length;l<i.length;l+=1)a(l);ml()}},i(e){if(!n){for(let e=0;e<o.length;e+=1)gl(i[e]);n=!0}},o(e){i=i.filter(Boolean);for(let e=0;e<i.length;e+=1)vl(i[e]);n=!1},d(e){e&&$a(t),ka(i,e)}}}(e);return{c(){n&&n.c(),t=Ea()},m(e,o){n&&n.m(e,o),wa(e,t,o),r=!0},p(e,t){e[18].length&&n.p(e,t)},i(e){r||(gl(n),r=!0)},o(e){vl(n),r=!1},d(e){n&&n.d(e),e&&$a(t)}}}function ch(e){let t,r;return t=new th({props:{project:e[15],clickCounter:e[5](),hasIcons:e[1]}}),t.$on("click",(function(){Xi(e[4](e[17],e[15],e[2].items[e[15]].isTrk))&&e[4](e[17],e[15],e[2].items[e[15]].isTrk).apply(this,arguments)})),{c(){Sl(t.$$.fragment)},m(e,n){El(t,e,n),r=!0},p(r,n){e=r;const o={};2&n&&(o.hasIcons=e[1]),t.$set(o)},i(e){r||(gl(t.$$.fragment,e),r=!0)},o(e){vl(t.$$.fragment,e),r=!1},d(e){Tl(t,e)}}}function uh(e){let t,r,n,o,i,a,l,s;const c=[ah,ih],u=[];return o=function(e,t){return 1===e[3].length?0:1}(e),i=u[o]=c[o](e),{c(){t=Ca("div"),r=Ca("h4"),n=Sa(),i.c(),ja(r,"class","ph-projects-group__title svelte-6aoims"),ja(t,"class","ph-projects-group svelte-6aoims")},m(i,c){wa(i,t,c),ya(t,r),r.innerHTML=e[0],ya(t,n),u[o].m(t,null),a=!0,l||(s=da(Pf.call(null,t)),l=!0)},p(e,t){let[n]=t;(!a||1&n)&&(r.innerHTML=e[0]),i.p(e,n)},i(e){a||(gl(i),a=!0)},o(e){vl(i),a=!1},d(e){e&&$a(t),u[o].d(),l=!1,s()}}}const dh=9;function fh(e,t,r){let n,o,i;var a;ta(e,vc,(e=>r(2,n=e))),ta(e,kc,(e=>r(10,o=e))),ta(e,Gc,(e=>r(11,i=e)));let{title:l=""}=t,{projects:s=[]}=t,{category:c}=t,{maxColumns:u=1}=t,{hasIcons:d=!1}=t;const f=null===(a=i)||void 0===a?void 0:a.sendDwh,h=s.filter((e=>{var t;return o[e]&&(null===(t=null==n?void 0:n.items[e])||void 0===t?void 0:t.url)})),p=[];for(let e=0;e<u;e++)p.push(h.slice(e*dh,(e+1)*dh));return Xa((function(){s.forEach(((e,t)=>df({index:t+1,category:c,isTrk:n.items[e].isTrk,url:n.items[e].url,project:e,isSendDwh:f})))})),e.$$set=e=>{"title"in e&&r(0,l=e.title),"projects"in e&&r(6,s=e.projects),"category"in e&&r(7,c=e.category),"maxColumns"in e&&r(8,u=e.maxColumns),"hasIcons"in e&&r(1,d=e.hasIcons)},[l,d,n,p,function(e,t,r){return()=>uf({category:c,index:e+1,isTrk:r,project:t,isSendDwh:f})},function(){switch(c){case pc.business:return bu.businessGroupClick;case pc.mailrugroup:return bu.mailruGroupClick;default:return bu.itemsGroupClick}},s,c,u]}class hh extends jl{constructor(e){super(),Bl(this,e,fh,uh,Yi,{title:0,projects:6,category:7,maxColumns:8,hasIcons:1})}}function ph(e){let t,r,n,o,i;return r=new hh({props:{title:e[0].projects,projects:[...e[1].additional,...e[1].mailrugroup],category:pc.additional,maxColumns:3,hasIcons:!0}}),o=new hh({props:{title:e[0]["business-projects"],projects:e[1].business,category:pc.business,hasIcons:!0}}),{c(){t=Ca("section"),Sl(r.$$.fragment),n=Sa(),Sl(o.$$.fragment),ja(t,"class","ph-projects svelte-1np2gw2")},m(e,a){wa(e,t,a),El(r,t,null),ya(t,n),El(o,t,null),i=!0},p(e,t){let[n]=t;const i={};1&n&&(i.title=e[0].projects),2&n&&(i.projects=[...e[1].additional,...e[1].mailrugroup]),r.$set(i);const a={};1&n&&(a.title=e[0]["business-projects"]),2&n&&(a.projects=e[1].business),o.$set(a)},i(e){i||(gl(r.$$.fragment,e),gl(o.$$.fragment,e),i=!0)},o(e){vl(r.$$.fragment,e),vl(o.$$.fragment,e),i=!1},d(e){e&&$a(t),Tl(r),Tl(o)}}}function mh(e,t,r){let n,o;return ta(e,kc,(e=>r(0,n=e))),ta(e,vc,(e=>r(1,o=e))),[n,o]}class gh extends jl{constructor(e){super(),Bl(this,e,mh,ph,Yi,{})}}function vh(e){let t,r,n,o,i,a,l,s,c,u,d,f,h;return r=new Zf({}),a=new gh({}),u=new Of({}),{c(){t=Ca("div"),Sl(r.$$.fragment),n=Sa(),o=Ca("hr"),i=Sa(),Sl(a.$$.fragment),l=Sa(),s=Ca("hr"),c=Sa(),Sl(u.$$.fragment),ja(o,"class","ph-hr svelte-qg5l2j"),ja(s,"class","ph-hr svelte-qg5l2j"),ja(t,"class","ph-menu svelte-qg5l2j")},m(e,d){wa(e,t,d),El(r,t,null),ya(t,n),ya(t,o),ya(t,i),El(a,t,null),ya(t,l),ya(t,s),ya(t,c),El(u,t,null),h=!0},p(e,t){},i(e){h||(gl(r.$$.fragment,e),gl(a.$$.fragment,e),gl(u.$$.fragment,e),ol((()=>{f&&f.end(1),d=bl(t,$f,Ff),d.start()})),h=!0)},o(e){vl(r.$$.fragment,e),vl(a.$$.fragment,e),vl(u.$$.fragment,e),d&&d.invalidate(),f=xl(t,$f,Af),h=!1},d(e){e&&$a(t),Tl(r),Tl(a),Tl(u),e&&f&&f.end()}}}class yh extends jl{constructor(e){super(),Bl(this,e,null,vh,Yi,{})}}function bh(e){let{delay:t=0,duration:r=400,easing:n=xf,x:o=0,y:i=0,opacity:a=0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const l=getComputedStyle(e),s=+l.opacity,c="none"===l.transform?"":l.transform,u=s*(1-a);return{delay:t,duration:r,easing:n,css:(e,t)=>`\n\t\t\ttransform: ${c} translate(${(1-e)*o}px, ${(1-e)*i}px);\n\t\t\topacity: ${s-u*t}`}}var xh='<path fill-rule="evenodd" d="M6.586 8 4.293 5.707a.999.999 0 1 1 1.414-1.414L8 6.586l2.293-2.293a1 1 0 0 1 1.414 1.414L9.414 8l2.293 2.293a1 1 0 0 1-1.414 1.414L8 9.414l-2.293 2.293a1 1 0 0 1-1.414-1.414L6.586 8z"/>',wh="0 0 16 16";const $h=e=>{let{id:t,period:r,type:n}=e;t&&r&&n&&((new Image).src=`//rs.mail.ru/ux?id=${t}&period=${r}&type=${n}&_=${Math.round((new Date).getTime()+1e9*Math.random())}`)};function kh(e){let t,r,n,o,i,a,l,s,c,u,d,f,h,p,m,g,v,y,b,x,w,$,k,C,F,A,S=xh+"",E=e[5]&&Ch(e);return{c(){t=Ca("div"),r=Ca("a"),n=Ca("div"),o=Aa(e[2]),i=Sa(),a=Ca("div"),l=Aa(e[3]),s=Sa(),E&&E.c(),c=Sa(),u=Ca("div"),d=Ca("div"),f=Fa("svg"),y=Sa(),b=Ca("div"),ja(n,"class","ph-project-promo-title svelte-m7oyyo"),ja(a,"class","ph-project-promo-description svelte-m7oyyo"),ja(f,"class","ph-project-promo-close-icon__svg svelte-m7oyyo"),ja(f,"height","16"),ja(f,"width","16"),ja(f,"aria-hidden","true"),ja(f,"viewBox",h=wh),ja(f,"style",p=`fill: ${e[7]};`),ja(d,"class",m=ca("ph-project-promo-close-icon__container"+(e[11]?"_dark":""))+" svelte-m7oyyo"),ja(u,"class","ph-project-promo-close-icon svelte-m7oyyo"),ja(u,"data-click-counter",g=e[12]&&e[12].counter),ja(b,"class","ph-project-promo-pointer svelte-m7oyyo"),ja(b,"style",x=`border-bottom: ${mc.pointer}px solid ${e[6]};`+Sh(e[14])),ja(r,"data-show-pixel",e[0]),ja(r,"data-click-pixel",e[1]),ja(r,"href",e[4]),ja(r,"target",e[17]),ja(r,"class","ph-project-promo svelte-m7oyyo"),ja(r,"style",w=Ah(e[6],e[7],e[10])),ja(t,"class","ph-project-promo-container svelte-m7oyyo"),ja(t,"style",C=Sh(e[13]))},m(h,p){wa(h,t,p),ya(t,r),ya(r,n),ya(n,o),ya(r,i),ya(r,a),ya(a,l),ya(r,s),E&&E.m(r,null),ya(r,c),ya(r,u),ya(u,d),ya(d,f),f.innerHTML=S,ya(r,y),ya(r,b),F||(A=[da(v=Bf.call(null,u)),Ta(u,"click",Ba(_a(e[18]))),Ta(u,"mousedown",Ba(e[24])),da($=e[19].call(null,r)),Ta(r,"click",e[18])],F=!0)},p(e,n){4&n&&za(o,e[2]),8&n&&za(l,e[3]),e[5]?E?E.p(e,n):(E=Ch(e),E.c(),E.m(r,c)):E&&(E.d(1),E=null),128&n&&p!==(p=`fill: ${e[7]};`)&&ja(f,"style",p),2048&n&&m!==(m=ca("ph-project-promo-close-icon__container"+(e[11]?"_dark":""))+" svelte-m7oyyo")&&ja(d,"class",m),4096&n&&g!==(g=e[12]&&e[12].counter)&&ja(u,"data-click-counter",g),16448&n&&x!==(x=`border-bottom: ${mc.pointer}px solid ${e[6]};`+Sh(e[14]))&&ja(b,"style",x),1&n&&ja(r,"data-show-pixel",e[0]),2&n&&ja(r,"data-click-pixel",e[1]),16&n&&ja(r,"href",e[4]),1216&n&&w!==(w=Ah(e[6],e[7],e[10]))&&ja(r,"style",w),8192&n&&C!==(C=Sh(e[13]))&&ja(t,"style",C)},i(e){k||ol((()=>{k=bl(r,bh,{y:20,delay:200,duration:800}),k.start()}))},o:Ni,d(e){e&&$a(t),E&&E.d(),F=!1,Gi(A)}}}function Ch(e){let t,r,n;return{c(){t=Ca("button"),r=Aa(e[5]),ja(t,"class","ph-project-promo-button svelte-m7oyyo"),ja(t,"style",n=Ah(e[8],e[9]))},m(e,n){wa(e,t,n),ya(t,r)},p(e,o){32&o&&za(r,e[5]),768&o&&n!==(n=Ah(e[8],e[9]))&&ja(t,"style",n)},d(e){e&&$a(t)}}}function Fh(e){let t,r=e[13]&&e[14]&&e[15]&&!e[16]&&kh(e);return{c(){r&&r.c(),t=Ea()},m(e,n){r&&r.m(e,n),wa(e,t,n)},p(e,n){let[o]=n;e[13]&&e[14]&&e[15]&&!e[16]?r?(r.p(e,o),122880&o&&gl(r,1)):(r=kh(e),r.c(),gl(r,1),r.m(t.parentNode,t)):r&&(r.d(1),r=null)},i(e){gl(r)},o:Ni,d(e){r&&r.d(e),e&&$a(t)}}}function Ah(e,t,r){const n=`background-color: ${e}; color: ${t};`;return r?n+`background-image: url(${r});`:n}function Sh(e){return`left: ${e}px;`}function Eh(e,t,r){let{showPixel:n}=t,{clickPixel:o}=t,{title:i}=t,{description:a=""}=t,{link:l=""}=t,{buttonText:s=""}=t,{promoColor:c}=t,{textColor:u}=t,{buttonColor:d}=t,{buttonTextColor:f}=t,{backgroundImage:h=""}=t,{isDark:p=!1}=t,{close:m={}}=t,{promoLeftPosition:g}=t,{pointerLeftPosition:v}=t,{isOpenedProjectsModal:y}=t,{isHidden:b}=t,{displayLimitTimes:x}=t,{displayLimitPeriodDays:w}=t;const $=Ka("isTargetBlank"),k=new js(ds,fs,w,x);let C,F,A;return e.$$set=e=>{"showPixel"in e&&r(0,n=e.showPixel),"clickPixel"in e&&r(1,o=e.clickPixel),"title"in e&&r(2,i=e.title),"description"in e&&r(3,a=e.description),"link"in e&&r(4,l=e.link),"buttonText"in e&&r(5,s=e.buttonText),"promoColor"in e&&r(6,c=e.promoColor),"textColor"in e&&r(7,u=e.textColor),"buttonColor"in e&&r(8,d=e.buttonColor),"buttonTextColor"in e&&r(9,f=e.buttonTextColor),"backgroundImage"in e&&r(10,h=e.backgroundImage),"isDark"in e&&r(11,p=e.isDark),"close"in e&&r(12,m=e.close),"promoLeftPosition"in e&&r(13,g=e.promoLeftPosition),"pointerLeftPosition"in e&&r(14,v=e.pointerLeftPosition),"isOpenedProjectsModal"in e&&r(20,y=e.isOpenedProjectsModal),"isHidden"in e&&r(21,b=e.isHidden),"displayLimitTimes"in e&&r(22,x=e.displayLimitTimes),"displayLimitPeriodDays"in e&&r(23,w=e.displayLimitPeriodDays)},e.$$.update=()=>{2097152&e.$$.dirty&&(b?r(16,F=b):setTimeout((()=>(r(16,F=b),r(15,C=!0))),500)),1048576&e.$$.dirty&&y&&(ef.set(!1),tf.set(!1))},[n,o,i,a,l,s,c,u,d,f,h,p,m,g,v,C,F,$,function(){ef.set(!1),tf.set(!1),$h(m)},function(e){if(!A)return pf(e,(()=>function(e){k.count(),A=!0,lf({isTrk:null==e?void 0:e.startsWith("https://trk.mail.ru/"),url:e})}(l)))},y,b,x,w,function(t){Ja.call(this,e,t)}]}class Th extends jl{constructor(e){super(),Bl(this,e,Eh,Fh,Yi,{showPixel:0,clickPixel:1,title:2,description:3,link:4,buttonText:5,promoColor:6,textColor:7,buttonColor:8,buttonTextColor:9,backgroundImage:10,isDark:11,close:12,promoLeftPosition:13,pointerLeftPosition:14,isOpenedProjectsModal:20,isHidden:21,displayLimitTimes:22,displayLimitPeriodDays:23})}}function _h(e){let t,r;return{c(){t=Ca("span"),r=Aa(e[0]),ja(t,"class","ph-notify svelte-syffyg"),Ma(t,"ph-notify__blink",e[1])},m(e,n){wa(e,t,n),ya(t,r)},p(e,n){let[o]=n;1&o&&za(r,e[0]),2&o&&Ma(t,"ph-notify__blink",e[1])},i:Ni,o:Ni,d(e){e&&$a(t)}}}function Bh(e,t,r){let n;ta(e,Oc,(e=>r(3,n=e)));let o,{count:i}=t,a=!1,l=i;var s;return s=()=>clearTimeout(o),Ga().$$.on_destroy.push(s),Za((()=>{ua(Oc,n=!0,n)})),e.$$set=e=>{"count"in e&&r(0,i=e.count)},e.$$.update=()=>{13&e.$$.dirty&&(i>l&&n&&(r(1,a=!0),o=window.setTimeout((()=>r(1,a=!1)),1e3)),r(2,l=i))},[i,a,l,n]}class jh extends jl{constructor(e){super(),Bl(this,e,Bh,_h,Yi,{count:0})}}const Ph=(e,t)=>{const r=(null==e?void 0:e.config)||(null==e?void 0:e.Config);return null==r?void 0:r[t]},zh=e=>{const{name:t,hasCounter:r,project:n,sendDwh:o=!1,version:i="old"}=e;ss("counter",Object.assign(Object.assign({i:t},o&&{dwh:{counter:r,place:+n,source:"desktop",version:i}}),{skipdwh:!o}))};function Dh(e){let t;return{c(){t=Ca("span"),ja(t,"class","ph-project__unread svelte-jq5qv5")},m(e,r){wa(e,t,r)},p:Ni,i:Ni,o:Ni,d(e){e&&$a(t)}}}function Mh(e){let t,r,n;return r=new jh({props:{count:e[2]}}),{c(){t=Ca("span"),Sl(r.$$.fragment),ja(t,"class","ph-project__counter svelte-jq5qv5")},m(e,o){wa(e,t,o),El(r,t,null),n=!0},p(e,t){const n={};4&t&&(n.count=e[2]),r.$set(n)},i(e){n||(gl(r.$$.fragment,e),n=!0)},o(e){vl(r.$$.fragment,e),n=!1},d(e){e&&$a(t),Tl(r)}}}function Lh(e){let t,r,n,o,i,a;return{c(){t=Ca("img"),Ji(t.src,r=e[12]&&e[4].iconDark?e[4].iconDark:e[4].icon)||ja(t,"src",r),ja(t,"class","ph-project__icon svelte-jq5qv5"),ja(t,"width","16"),ja(t,"height","16"),ja(t,"data-show-pixel",n=e[4].showPixel),ja(t,"alt","")},m(r,n){wa(r,t,n),e[21](t),i||(a=da(o=e[18].call(null,t)),i=!0)},p(e,o){4112&o&&!Ji(t.src,r=e[12]&&e[4].iconDark?e[4].iconDark:e[4].icon)&&ja(t,"src",r),16&o&&n!==(n=e[4].showPixel)&&ja(t,"data-show-pixel",n)},d(r){r&&$a(t),e[21](null),i=!1,a()}}}function Oh(e){var t,r;let n,o,i,a,l,s,c,u,d,f,h,p,m,g,v=e[10][e[1]]+"";const y=[Mh,Dh],b=[];function x(e,t){return e[2]?0:"ok"===e[1]&&e[13]?1:-1}~(a=x(e))&&(l=b[a]=y[a](e));let w=e[5]&&(null===(t=e[4])||void 0===t?void 0:t.project)===e[1]&&(null===(r=e[4])||void 0===r?void 0:r.icon)&&e[11]&&Lh(e);return{c(){n=Ca("a"),o=new Oa,i=Sa(),l&&l.c(),s=Sa(),w&&w.c(),o.a=i,ja(n,"class","ph-project svelte-jq5qv5"),ja(n,"href",c=e[14](e[1])),ja(n,"data-click-counter",u=e[16](e[1],e[0])),ja(n,"data-click-prefixs",d=e[17](e[1])),ja(n,"target",f=e[7](e[1])),Ma(n,"ph-project_hidden",e[0]>=e[3]),Ma(n,"ph-project_current",Ps(e[9].items[e[1]]))},m(t,r){wa(t,n,r),o.m(v,n),ya(n,i),~a&&b[a].m(n,null),ya(n,s),w&&w.m(n,null),p=!0,m||(g=[Ta(n,"click",e[22]),da(h=e[6].call(null,n,{type:"project",index:e[0],project:e[1]}))],m=!0)},p(e,t){var r,i;let[m]=t;(!p||1026&m)&&v!==(v=e[10][e[1]]+"")&&o.p(v);let g=a;a=x(e),a===g?~a&&b[a].p(e,m):(l&&(pl(),vl(b[g],1,1,(()=>{b[g]=null})),ml()),~a?(l=b[a],l?l.p(e,m):(l=b[a]=y[a](e),l.c()),gl(l,1),l.m(n,s)):l=null),e[5]&&(null===(r=e[4])||void 0===r?void 0:r.project)===e[1]&&null!==(i=e[4])&&void 0!==i&&i.icon&&e[11]?w?w.p(e,m):(w=Lh(e),w.c(),w.m(n,null)):w&&(w.d(1),w=null),(!p||2&m&&c!==(c=e[14](e[1])))&&ja(n,"href",c),(!p||3&m&&u!==(u=e[16](e[1],e[0])))&&ja(n,"data-click-counter",u),(!p||2&m&&d!==(d=e[17](e[1])))&&ja(n,"data-click-prefixs",d),(!p||130&m&&f!==(f=e[7](e[1])))&&ja(n,"target",f),h&&Xi(h.update)&&3&m&&h.update.call(null,{type:"project",index:e[0],project:e[1]}),9&m&&Ma(n,"ph-project_hidden",e[0]>=e[3]),514&m&&Ma(n,"ph-project_current",Ps(e[9].items[e[1]]))},i(e){p||(gl(l),p=!0)},o(e){vl(l),p=!1},d(e){e&&$a(n),~a&&b[a].d(),w&&w.d(),m=!1,Gi(g)}}}function Hh(e,t,r){let n,o,i,a,l,s,c;var u,d;ta(e,ef,(e=>r(25,n=e))),ta(e,vc,(e=>r(9,o=e))),ta(e,Gc,(e=>r(20,i=e))),ta(e,Cc,(e=>r(26,a=e))),ta(e,kc,(e=>r(10,l=e))),ta(e,tf,(e=>r(11,s=e))),ta(e,eu,(e=>r(12,c=e)));let{index:f}=t,{project:h}=t,{notificationsCounter:p}=t,{remoteProjectsNumber:m}=t,{promoData:g}=t,{isProjectPromo:v}=t,{phCookie:y}=t,{pushToProjectsWidths:b}=t,{getTarget:x}=t;const w=null===(u=i.experiments)||void 0===u?void 0:u.isOkShowUnread,$=null===(d=i)||void 0===d?void 0:d.sendDwh,k=(e=>{var t,r;const n=Ph(e.omicronConfig,"cloudStoriesCounterEnabled")||(null===(t=e.experiments)||void 0===t?void 0:t.switchCloudStoriesCounter),o=Ph(e.omicronConfig,"cloudStoriesCounterCrossNavEnabled")||(null===(r=e.experiments)||void 0===r?void 0:r.switchCloudStoriesCounterCrossNav);return e.isCrossNav?o:n})(i);let C;function F(e,t,r,n){var o;if(3===e&&(null===(o=i.experiments)||void 0===o?void 0:o.isOkShowUnread)&&!t&&gc.count(`${cc.click}${$u.okShowUnread}`),"cloud-with-utm"===n&&k){const{siteId:e,experiments:{isCloudStoriesCounterDwh:r}={}}=i;zh({name:"click",hasCounter:!!t,project:e,sendDwh:r})}uf({index:e+1,category:pc.general,isTrk:r,project:n,isSendDwh:$})}return e.$$set=e=>{"index"in e&&r(0,f=e.index),"project"in e&&r(1,h=e.project),"notificationsCounter"in e&&r(2,p=e.notificationsCounter),"remoteProjectsNumber"in e&&r(3,m=e.remoteProjectsNumber),"promoData"in e&&r(4,g=e.promoData),"isProjectPromo"in e&&r(5,v=e.isProjectPromo),"phCookie"in e&&r(19,y=e.phCookie),"pushToProjectsWidths"in e&&r(6,b=e.pushToProjectsWidths),"getTarget"in e&&r(7,x=e.getTarget)},e.$$.update=()=>{if(256&e.$$.dirty&&rf.set(C),1048582&e.$$.dirty&&"cloud-with-utm"===h&&k){const{siteId:e,experiments:{isCloudStoriesCounterDwh:t}={}}=i;zh({name:"show",hasCounter:!!p,project:e,sendDwh:t})}},[f,h,p,m,g,v,b,x,C,o,l,s,c,w,function(e){return zs(e,a,o)?o.items.vkpochta.url:o.items[e].url},F,function(e,t){return[o.items[e].nid,ku[t],o.items[e].trk].filter(Boolean).join(", ")},function(e){const t=["nid","click"];return o.items[e].trk&&t.push("click"),t.join(", ")},function(e){if(!n)return pf(e,(()=>{gc.sendToServer(g.onlyIconShowLink),null==y||y.count()}))},y,i,function(e){Qa[e?"unshift":"push"]((()=>{C=e,r(8,C)}))},()=>F(f,p,o.items[h].isTrk,h)]}class Ih extends jl{constructor(e){super(),Bl(this,e,Hh,Oh,Yi,{index:0,project:1,notificationsCounter:2,remoteProjectsNumber:3,promoData:4,isProjectPromo:5,phCookie:19,pushToProjectsWidths:6,getTarget:7})}}var Rh={children:'<path fill-rule="evenodd" clip-rule="evenodd" d="M0 1.735C0 1.047 0 .703.162.455A1 1 0 0 1 .454.161C.704 0 1.047 0 1.735 0s1.032 0 1.28.162a1 1 0 0 1 .293.292c.162.25.162.593.162 1.281s0 1.032-.162 1.28a1 1 0 0 1-.292.293c-.249.162-.593.162-1.281.162s-1.032 0-1.28-.162a1 1 0 0 1-.293-.292C0 2.767 0 2.423 0 1.735ZM0 7c0-.688 0-1.032.162-1.28a1 1 0 0 1 .292-.293c.25-.162.593-.162 1.281-.162s1.032 0 1.28.162a1 1 0 0 1 .293.292c.162.25.162.593.162 1.281s0 1.032-.162 1.28a1 1 0 0 1-.292.293c-.249.162-.593.162-1.281.162s-1.032 0-1.28-.162a1 1 0 0 1-.293-.292C0 8.032 0 7.688 0 7Zm.162 3.984C0 11.233 0 11.577 0 12.264c0 .689 0 1.033.162 1.282a1 1 0 0 0 .292.292c.25.162.593.162 1.281.162s1.032 0 1.28-.162a1 1 0 0 0 .293-.292c.162-.25.162-.593.162-1.281s0-1.032-.162-1.281a1 1 0 0 0-.292-.292c-.249-.162-.593-.162-1.281-.162s-1.032 0-1.28.162a1 1 0 0 0-.293.292Zm5.103-9.249c0-.688 0-1.032.162-1.28a1 1 0 0 1 .292-.293C5.968 0 6.312 0 7 0c.689 0 1.033 0 1.282.162a1 1 0 0 1 .292.292c.162.25.162.593.162 1.281s0 1.032-.162 1.28a1 1 0 0 1-.292.293c-.25.162-.593.162-1.281.162s-1.032 0-1.28-.162a1 1 0 0 1-.293-.292c-.162-.249-.162-.593-.162-1.281Zm.162 3.984c-.162.25-.162.593-.162 1.281s0 1.032.162 1.28a1 1 0 0 0 .292.293c.249.162.593.162 1.28.162.689 0 1.033 0 1.282-.162a1 1 0 0 0 .292-.292c.162-.249.162-.593.162-1.281s0-1.032-.162-1.28a1 1 0 0 0-.292-.293c-.25-.162-.593-.162-1.281-.162s-1.032 0-1.28.162a1 1 0 0 0-.293.292Zm-.162 6.546c0-.688 0-1.032.162-1.281a1 1 0 0 1 .292-.292c.249-.162.593-.162 1.28-.162.689 0 1.033 0 1.282.162a1 1 0 0 1 .292.292c.162.249.162.593.162 1.28 0 .689 0 1.033-.162 1.282a1 1 0 0 1-.292.292C8.03 14 7.688 14 7 14s-1.032 0-1.28-.162a1 1 0 0 1-.293-.292c-.162-.25-.162-.593-.162-1.281ZM10.692.455c-.162.248-.162.592-.162 1.28 0 .688 0 1.032.162 1.28a1 1 0 0 0 .292.293c.25.162.593.162 1.281.162s1.032 0 1.28-.162a1 1 0 0 0 .293-.292C14 2.767 14 2.423 14 1.735s0-1.032-.162-1.28a1 1 0 0 0-.292-.293C13.297 0 12.953 0 12.265 0s-1.032 0-1.28.162a1 1 0 0 0-.293.292ZM10.53 7c0-.688 0-1.032.162-1.28a1 1 0 0 1 .292-.293c.25-.162.593-.162 1.281-.162s1.032 0 1.28.162a1 1 0 0 1 .293.292C14 5.97 14 6.312 14 7s0 1.032-.162 1.28a1 1 0 0 1-.292.293c-.249.162-.593.162-1.281.162s-1.032 0-1.28-.162a1 1 0 0 1-.293-.292c-.162-.249-.162-.593-.162-1.281Zm.162 3.984c-.162.249-.162.593-.162 1.28 0 .689 0 1.033.162 1.282a1 1 0 0 0 .292.292c.25.162.593.162 1.281.162s1.032 0 1.28-.162a1 1 0 0 0 .293-.292c.162-.25.162-.593.162-1.281s0-1.032-.162-1.281a1 1 0 0 0-.292-.292c-.249-.162-.593-.162-1.281-.162s-1.032 0-1.28.162a1 1 0 0 0-.293.292Z" fill="#A5A7AD"/>',height:14,toString:function(){return'<svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M0 1.735C0 1.047 0 .703.162.455A1 1 0 0 1 .454.161C.704 0 1.047 0 1.735 0s1.032 0 1.28.162a1 1 0 0 1 .293.292c.162.25.162.593.162 1.281s0 1.032-.162 1.28a1 1 0 0 1-.292.293c-.249.162-.593.162-1.281.162s-1.032 0-1.28-.162a1 1 0 0 1-.293-.292C0 2.767 0 2.423 0 1.735ZM0 7c0-.688 0-1.032.162-1.28a1 1 0 0 1 .292-.293c.25-.162.593-.162 1.281-.162s1.032 0 1.28.162a1 1 0 0 1 .293.292c.162.25.162.593.162 1.281s0 1.032-.162 1.28a1 1 0 0 1-.292.293c-.249.162-.593.162-1.281.162s-1.032 0-1.28-.162a1 1 0 0 1-.293-.292C0 8.032 0 7.688 0 7Zm.162 3.984C0 11.233 0 11.577 0 12.264c0 .689 0 1.033.162 1.282a1 1 0 0 0 .292.292c.25.162.593.162 1.281.162s1.032 0 1.28-.162a1 1 0 0 0 .293-.292c.162-.25.162-.593.162-1.281s0-1.032-.162-1.281a1 1 0 0 0-.292-.292c-.249-.162-.593-.162-1.281-.162s-1.032 0-1.28.162a1 1 0 0 0-.293.292Zm5.103-9.249c0-.688 0-1.032.162-1.28a1 1 0 0 1 .292-.293C5.968 0 6.312 0 7 0c.689 0 1.033 0 1.282.162a1 1 0 0 1 .292.292c.162.25.162.593.162 1.281s0 1.032-.162 1.28a1 1 0 0 1-.292.293c-.25.162-.593.162-1.281.162s-1.032 0-1.28-.162a1 1 0 0 1-.293-.292c-.162-.249-.162-.593-.162-1.281Zm.162 3.984c-.162.25-.162.593-.162 1.281s0 1.032.162 1.28a1 1 0 0 0 .292.293c.249.162.593.162 1.28.162.689 0 1.033 0 1.282-.162a1 1 0 0 0 .292-.292c.162-.249.162-.593.162-1.281s0-1.032-.162-1.28a1 1 0 0 0-.292-.293c-.25-.162-.593-.162-1.281-.162s-1.032 0-1.28.162a1 1 0 0 0-.293.292Zm-.162 6.546c0-.688 0-1.032.162-1.281a1 1 0 0 1 .292-.292c.249-.162.593-.162 1.28-.162.689 0 1.033 0 1.282.162a1 1 0 0 1 .292.292c.162.249.162.593.162 1.28 0 .689 0 1.033-.162 1.282a1 1 0 0 1-.292.292C8.03 14 7.688 14 7 14s-1.032 0-1.28-.162a1 1 0 0 1-.293-.292c-.162-.25-.162-.593-.162-1.281ZM10.692.455c-.162.248-.162.592-.162 1.28 0 .688 0 1.032.162 1.28a1 1 0 0 0 .292.293c.25.162.593.162 1.281.162s1.032 0 1.28-.162a1 1 0 0 0 .293-.292C14 2.767 14 2.423 14 1.735s0-1.032-.162-1.28a1 1 0 0 0-.292-.293C13.297 0 12.953 0 12.265 0s-1.032 0-1.28.162a1 1 0 0 0-.293.292ZM10.53 7c0-.688 0-1.032.162-1.28a1 1 0 0 1 .292-.293c.25-.162.593-.162 1.281-.162s1.032 0 1.28.162a1 1 0 0 1 .293.292C14 5.97 14 6.312 14 7s0 1.032-.162 1.28a1 1 0 0 1-.292.293c-.249.162-.593.162-1.281.162s-1.032 0-1.28-.162a1 1 0 0 1-.293-.292c-.162-.249-.162-.593-.162-1.281Zm.162 3.984c-.162.249-.162.593-.162 1.28 0 .689 0 1.033.162 1.282a1 1 0 0 0 .292.292c.25.162.593.162 1.281.162s1.032 0 1.28-.162a1 1 0 0 0 .293-.292c.162-.25.162-.593.162-1.281s0-1.032-.162-1.281a1 1 0 0 0-.292-.292c-.249-.162-.593-.162-1.281-.162s-1.032 0-1.28.162a1 1 0 0 0-.293.292Z" fill="#A5A7AD"/></svg>'},viewBox:"0 0 14 14",width:14};const{window:Nh}=$l;function Wh(e,t,r){const n=e.slice();return n[60]=t[r].name,n[61]=t[r].notificationsCounter,n[63]=r,n}function Uh(e){let t,r,n;const o=[e[9],{isHidden:e[63]>=e[5].length-e[6]}];let i={};for(let e=0;e<o.length;e+=1)i=Ui(i,o[e]);return t=new Th({props:i}),{c(){r=Ca("div"),Sl(t.$$.fragment),Da(r,"display","contents"),Da(r,"--ph-promo-project-width",mc.promo+"px"),Da(r,"--ph-promo-project-pointer-width",mc.pointer+"px")},m(e,o){wa(e,r,o),El(t,r,null),n=!0},p(e,r){const n=608&r[0]?Fl(o,[512&r[0]&&Al(e[9]),96&r[0]&&{isHidden:e[63]>=e[5].length-e[6]}]):{};t.$set(n)},i(e){n||(gl(t.$$.fragment,e),n=!0)},o(e){vl(t.$$.fragment,e),n=!1},d(e){e&&$a(r),Tl(t,e)}}}function Vh(e,t){var r;let n,o,i,a,l;o=new Ih({props:{index:t[63],project:t[60],notificationsCounter:t[61],remoteProjectsNumber:t[5].length-t[6],promoData:t[9],isProjectPromo:t[2],pushToProjectsWidths:t[14],getTarget:t[15],phCookie:t[3]}});let s=t[2]&&(null===(r=t[9])||void 0===r?void 0:r.project)===t[60]&&t[8]&&Uh(t);return{key:e,first:null,c(){n=Ea(),Sl(o.$$.fragment),i=Sa(),s&&s.c(),a=Ea(),this.first=n},m(e,t){wa(e,n,t),El(o,e,t),wa(e,i,t),s&&s.m(e,t),wa(e,a,t),l=!0},p(e,r){var n;t=e;const i={};32&r[0]&&(i.index=t[63]),32&r[0]&&(i.project=t[60]),32&r[0]&&(i.notificationsCounter=t[61]),96&r[0]&&(i.remoteProjectsNumber=t[5].length-t[6]),512&r[0]&&(i.promoData=t[9]),4&r[0]&&(i.isProjectPromo=t[2]),8&r[0]&&(i.phCookie=t[3]),o.$set(i),t[2]&&(null===(n=t[9])||void 0===n?void 0:n.project)===t[60]&&t[8]?s?(s.p(t,r),804&r[0]&&gl(s,1)):(s=Uh(t),s.c(),gl(s,1),s.m(a.parentNode,a)):s&&(pl(),vl(s,1,1,(()=>{s=null})),ml())},i(e){l||(gl(o.$$.fragment,e),gl(s),l=!0)},o(e){vl(o.$$.fragment,e),vl(s),l=!1},d(e){e&&$a(n),Tl(o,e),e&&$a(i),s&&s.d(e),e&&$a(a)}}}function qh(e){let t,r=e[11]["all-projects"]+"";return{c(){t=Ca("div"),ja(t,"class","ph-project__all-projects-text svelte-a9o3e5")},m(e,n){wa(e,t,n),t.innerHTML=r},p(e,n){2048&n[0]&&r!==(r=e[11]["all-projects"]+"")&&(t.innerHTML=r)},d(e){e&&$a(t)}}}function Gh(e){let t,r;return t=new Tf({props:{$$slots:{default:[Zh]},$$scope:{ctx:e}}}),{c(){Sl(t.$$.fragment)},m(e,n){El(t,e,n),r=!0},i(e){r||(gl(t.$$.fragment,e),r=!0)},o(e){vl(t.$$.fragment,e),r=!1},d(e){Tl(t,e)}}}function Xh(e){let t,r;return t=new yh({}),{c(){Sl(t.$$.fragment)},m(e,n){El(t,e,n),r=!0},i(e){r||(gl(t.$$.fragment,e),r=!0)},o(e){vl(t.$$.fragment,e),r=!1},d(e){Tl(t,e)}}}function Zh(e){let t,r;return t=new ac({props:{radarName:"errors_projects_menu",$$slots:{default:[Xh]},$$scope:{ctx:e}}}),{c(){Sl(t.$$.fragment)},m(e,n){El(t,e,n),r=!0},p(e,r){const n={};4&r[2]&&(n.$$scope={dirty:r,ctx:e}),t.$set(n)},i(e){r||(gl(t.$$.fragment,e),r=!0)},o(e){vl(t.$$.fragment,e),r=!1},d(e){Tl(t,e)}}}function Kh(e){let t,r,n,o,i,a,l,s=[],c=new Map;ol(e[42]);let u=e[5];const d=e=>e[60];for(let t=0;t<u.length;t+=1){let r=Wh(e,u,t),n=d(r);c.set(n,s[t]=Vh(n,r))}let f=!e[12]&&function(e){let t,r,n,o,i,a,l,s,c=e[10]&&qh(e);return{c(){t=Ca("div"),c&&c.c(),r=Sa(),n=new Oa,n.a=null,ja(t,"class","ph-project svelte-a9o3e5"),ja(t,"data-click-counter",o=bu.toggleProjectModal+", "+bu.allProjectClick),ja(t,"tabindex","0"),ja(t,"aria-label",i=null),Ma(t,"ph-project_open",e[7])},m(o,i){wa(o,t,i),c&&c.m(t,null),ya(t,r),n.m(Rh,t),e[43](t),l||(s=da(a=nf.call(null,t,e[13])),l=!0)},p(e,n){e[10]?c?c.p(e,n):(c=qh(e),c.c(),c.m(t,r)):c&&(c.d(1),c=null),2048&n[0]&&i!==(i=null)&&ja(t,"aria-label",i),128&n[0]&&Ma(t,"ph-project_open",e[7])},d(r){r&&$a(t),c&&c.d(),e[43](null),l=!1,s()}}}(e),h=e[7]&&!e[12]&&Gh(e);return{c(){t=Ca("div");for(let e=0;e<s.length;e+=1)s[e].c();r=Sa(),f&&f.c(),n=Sa(),h&&h.c(),o=Ea(),ja(t,"class","ph-projects svelte-a9o3e5")},m(c,u){wa(c,t,u);for(let e=0;e<s.length;e+=1)s[e].m(t,null);ya(t,r),f&&f.m(t,null),e[44](t),wa(c,n,u),h&&h.m(c,u),wa(c,o,u),i=!0,a||(l=[Ta(Nh,"resize",e[42]),da(bf.call(null,t)),da(e[14].call(null,t,{type:"projectsNode"}))],a=!0)},p(e,n){50028&n[0]&&(u=e[5],pl(),s=Cl(s,n,d,1,e,u,c,t,kl,Vh,r,Wh),ml()),e[12]||f.p(e,n),e[7]&&!e[12]?h?128&n[0]&&gl(h,1):(h=Gh(e),h.c(),gl(h,1),h.m(o.parentNode,o)):h&&(pl(),vl(h,1,1,(()=>{h=null})),ml())},i(e){if(!i){for(let e=0;e<u.length;e+=1)gl(s[e]);gl(h),i=!0}},o(e){for(let e=0;e<s.length;e+=1)vl(s[e]);vl(h),i=!1},d(r){r&&$a(t);for(let e=0;e<s.length;e+=1)s[e].d();f&&f.d(),e[44](null),r&&$a(n),h&&h.d(r),r&&$a(o),a=!1,Gi(l)}}}function Jh(e){const{inlineSize:t}=Array.isArray(e)?e[0]:e;return t}function Yh(e,t,r){let n,o,i,a,l,s,c,u,d,f,h,p,m,g,v,y,b,x,w;var $,k,C,F,A;ta(e,vc,(e=>r(30,i=e))),ta(e,Gc,(e=>r(48,a=e))),ta(e,Cc,(e=>r(49,l=e))),ta(e,lu,(e=>r(7,s=e))),ta(e,Pc,(e=>r(31,c=e))),ta(e,Bc,(e=>r(32,u=e))),ta(e,_c,(e=>r(33,d=e))),ta(e,Tc,(e=>r(34,f=e))),ta(e,Sc,(e=>r(35,h=e))),ta(e,Ec,(e=>r(36,p=e))),ta(e,jc,(e=>r(37,m=e))),ta(e,Yd,(e=>r(38,g=e))),ta(e,Vc,(e=>r(39,v=e))),ta(e,eu,(e=>r(40,y=e))),ta(e,rf,(e=>r(41,b=e))),ta(e,ef,(e=>r(8,x=e))),ta(e,kc,(e=>r(11,w=e)));let{projectsNode:S}=t;const E=a.disableAllProjectsMenu,T=null===($=a)||void 0===$?void 0:$.sendDwh,_={box:"border-box"},B=(null===(k=a.experiments)||void 0===k?void 0:k.switchMessageCounterToMailRu)?"mailru":"mail";let j,P,z,D,M,L,O,H,I,R,N;j=window.ResizeObserver&&window.ResizeObserverEntry&&"borderBoxSize"in window.ResizeObserverEntry.prototype?window.ResizeObserver:Gd;let W=0,U=0,V=[],q=0,G=i.general.length,X=0,Z=[];function K(e){e.forEach((e=>{let[t,r]=e;!function(e,t){const r=V.find((t=>t.name===e));r&&(r.notificationsCounter=t)}(t,r)})),r(5,V=[...V])}function J(e){r(27,X=Jh(e))}function Y(e,t){Z.find((r=>{r.target===e&&0!==Jh(t)&&(r.width=Jh(t))}))}Za((()=>{r(24,W=(null==N?void 0:N.clientWidth)||0)}));const Q=new j((e=>{let t=!1;for(let{target:r,borderBoxSize:n}of e)r===S?J(n):(t=!0,Y(r,n));t&&r(28,Z=[...Z])}));return e.$$set=e=>{"projectsNode"in e&&r(0,S=e.projectsNode)},e.$$.update=()=>{if(8&e.$$.dirty[0]|256&e.$$.dirty[1]&&"promo"===(null==v?void 0:v.type)&&!0!==(null==v?void 0:v.forCrossnav)&&(r(3,R=new js(ds,fs,v.displayLimitPeriodDays,v.displayLimitTimes)),R.init((()=>r(2,I=!0)))),65540&e.$$.dirty[0]|256&e.$$.dirty[1]&&I&&ef.set(!(!(null==v?void 0:v.title)||!(null===r(16,C=v)||void 0===C?void 0:C.link))),1073741824&e.$$.dirty[0]&&r(5,V=i.general.map((e=>({name:e})))),32&e.$$.dirty[0]&&r(28,Z=new Array(V.length).fill({})),272498948&e.$$.dirty[0]|256&e.$$.dirty[1]&&I&&x&&(r(21,M=Z.find((e=>(null==e?void 0:e.project)===v.project))),z!==(null==M?void 0:M.width)&&r(19,z=null==M?void 0:M.width),D!==(null===r(17,F=null==M?void 0:M.target)||void 0===F?void 0:F.offsetLeft)&&r(20,D=null===r(18,A=null==M?void 0:M.target)||void 0===A?void 0:A.offsetLeft)),7864582&e.$$.dirty[0]|1280&e.$$.dirty[1]&&I&&x&&(z||D)){const e=function(e){const{left:t,width:r}=(null==e?void 0:e.getBoundingClientRect())||{};return t+r/2}(v.icon?b:null==M?void 0:M.target);r(22,L=function(e,t,r){let n=e-t/2;return n<20?n=20:n+t+20>r&&(n=e+20+2*mc.pointer<r?r-t-20:e-t+2*mc.pointer),n}(e,mc.promo,H)),r(23,O=e-L-mc.pointer)}12583044&e.$$.dirty[0]|768&e.$$.dirty[1]&&I&&r(9,P=Object.assign(Object.assign({},y&&v.darkTheme?Object.assign(Object.assign(Object.assign({},v),v.darkTheme),{isDark:!0}):Object.assign(Object.assign({},v),v.baseTheme)),{promoLeftPosition:L,pointerLeftPosition:O,isOpenedProjectsModal:s&&!E})),268435456&e.$$.dirty[0]&&r(29,n=Z.reduce(((e,t)=>{let{width:r}=t;return e+r}),0)),687865856&e.$$.dirty[0]&&r(25,U=X-n-W-12-4),1040187488&e.$$.dirty[0]&&X&&n&&(r(6,q=function(e,t){let r=0;if(t<0)return r;let n=t;return[...e].reverse().some((e=>{let{width:t}=e;return n-=t,r+=1,n<=0})),r===e.length&&(r=e.length-1),r}(Z,-U)),q<G&&(!function(e,t){var r,n,o,a;for(let s=e;s<t;s++)zs(V[s].name,l,i)?df({index:s+1,category:pc.general,isTrk:null===(r=i.items.vkpochta)||void 0===r?void 0:r.isTrk,url:null===(n=i.items.vkpochta)||void 0===n?void 0:n.url,isSendDwh:T}):df({index:s+1,category:pc.general,isTrk:null===(o=i.items[V[s].name])||void 0===o?void 0:o.isTrk,url:null===(a=i.items[V[s].name])||void 0===a?void 0:a.url,project:V[s].name,isSendDwh:T})}(V.length-G,V.length-q),r(26,G=q))),128&e.$$.dirty[1]&&r(10,o=Qd(g.x).includes("lg")),127&e.$$.dirty[1]&&K([["love",m],[B,p],["games",h],["moymir",f],["ok",d],["vk",u],["cloud-with-utm",c]]),144&e.$$.dirty[0]&&(s||null==N||N.blur())},[S,H,I,R,N,V,q,s,x,P,o,w,E,function(){ua(lu,s=!s,s)},function(e,t){let{type:n,index:o,project:i}=t;return"project"==n&&r(28,Z[o]={target:e,width:e.clientWidth,project:i},Z),Q.observe(e,_),{destroy(){Q.unobserve(e)}}},function(e){if(a.isTargetBlank&&!Ps(i.items[e]))return"_blank"},C,F,A,z,D,M,L,O,W,U,G,X,Z,n,i,c,u,d,f,h,p,m,g,v,y,b,function(){r(1,H=Nh.innerWidth)},function(e){Qa[e?"unshift":"push"]((()=>{N=e,r(4,N)}))},function(e){Qa[e?"unshift":"push"]((()=>{S=e,r(0,S)}))}]}class Qh extends jl{constructor(e){super(),Bl(this,e,Yh,Kh,Yi,{projectsNode:0},null,[-1,-1,-1])}}const ep=e=>{gc.handleShowCounters(e)};function tp(e){let t;const r=e[4].default,n=ra(r,e,e[3],null);return{c(){n&&n.c()},m(e,r){n&&n.m(e,r),t=!0},p(e,o){n&&n.p&&(!t||8&o)&&ia(n,r,e,e[3],t?oa(r,e[3],o,null):aa(e[3]),null)},i(e){t||(gl(n,e),t=!0)},o(e){vl(n,e),t=!1},d(e){n&&n.d(e)}}}function rp(e){let t,r;const n=e[4].default,o=ra(n,e,e[3],null);return{c(){t=Ca("div"),o&&o.c(),ja(t,"class","ph-sidebar__frame svelte-3hgv3e")},m(e,n){wa(e,t,n),o&&o.m(t,null),r=!0},p(e,t){o&&o.p&&(!r||8&t)&&ia(o,n,e,e[3],r?oa(n,e[3],t,null):aa(e[3]),null)},i(e){r||(gl(o,e),r=!0)},o(e){vl(o,e),r=!1},d(e){e&&$a(t),o&&o.d(e)}}}function np(e){let t,r,n,o,i,a,l,s;const c=[rp,tp],u=[];function d(e,t){return e[1]?0:1}return r=d(e),n=u[r]=c[r](e),{c(){t=Ca("div"),n.c(),ja(t,"class","ph-sidebar svelte-3hgv3e"),ja(t,"style",o=`top: ${e[0]}px; will-change: top; width: ${op}px;`)},m(n,o){wa(n,t,o),u[r].m(t,null),a=!0,l||(s=Ta(t,"click",e[5]),l=!0)},p(i,l){let[s]=l,f=r;r=d(e=i),r===f?u[r].p(e,s):(pl(),vl(u[f],1,1,(()=>{u[f]=null})),ml(),n=u[r],n?n.p(e,s):(n=u[r]=c[r](e),n.c()),gl(n,1),n.m(t,null)),(!a||1&s&&o!==(o=`top: ${e[0]}px; will-change: top; width: ${op}px;`))&&ja(t,"style",o)},i(r){a||(gl(n),ol((()=>{i||(i=wl(t,bh,e[2],!0)),i.run(1)})),a=!0)},o(r){vl(n),i||(i=wl(t,bh,e[2],!1)),i.run(0),a=!1},d(e){e&&$a(t),u[r].d(),e&&i&&i.end(),l=!1,s()}}}const op=424;function ip(e,t,r){let{$$slots:n={},$$scope:o}=t,{offsetTop:i=0}=t,{hasOverflow:a}=t;const l={x:op,y:0,duration:200,easing:xf};return e.$$set=e=>{"offsetTop"in e&&r(0,i=e.offsetTop),"hasOverflow"in e&&r(1,a=e.hasOverflow),"$$scope"in e&&r(3,o=e.$$scope)},[i,a,l,o,n,function(t){Ja.call(this,e,t)}]}class ap extends jl{constructor(e){super(),Bl(this,e,ip,np,Yi,{offsetTop:0,hasOverflow:1})}}var lp;!function(e){e.Account="whiteline-account",e.AccountItem="whiteline-account-item",e.AccountExit="whiteline-account-exit"}(lp||(lp={}));var sp={children:'<path d="M8.715 12.984C3.248 12.984.13 9.236 0 3h2.738c.09 4.577 2.109 6.516 3.708 6.916V3h2.578v3.948c1.58-.17 3.238-1.97 3.798-3.948H15.4c-.43 2.438-2.228 4.237-3.508 4.977 1.28.6 3.329 2.168 4.108 5.007h-2.838c-.61-1.9-2.129-3.368-4.138-3.568v3.568h-.31Z" fill="#fff"/>',height:16,toString:function(){return'<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M8.715 12.984C3.248 12.984.13 9.236 0 3h2.738c.09 4.577 2.109 6.516 3.708 6.916V3h2.578v3.948c1.58-.17 3.238-1.97 3.798-3.948H15.4c-.43 2.438-2.228 4.237-3.508 4.977 1.28.6 3.329 2.168 4.108 5.007h-2.838c-.61-1.9-2.129-3.368-4.138-3.568v3.568h-.31Z" fill="#fff"/></svg>'},viewBox:"0 0 16 16",width:16},cp={children:'<path fill-rule="evenodd" d="M8 8.262c1.999 0 3.584-1.606 3.584-3.631C11.584 2.676 9.999 1 8 1S4.416 2.606 4.416 4.63c0 2.026 1.585 3.632 3.584 3.632zm0-5.097c.827 0 1.516.698 1.516 1.466 0 .838-.689 1.466-1.516 1.466-.827 0-1.516-.698-1.516-1.466S7.173 3.165 8 3.165zm1.447 8.03 2.137 2.024a1.022 1.022 0 0 1 0 1.467 1.072 1.072 0 0 1-1.516 0l-2-1.955-1.998 1.955c-.207.21-.482.28-.758.28s-.551-.07-.758-.28a1.022 1.022 0 0 1 0-1.467l1.999-2.024c-.69-.14-1.448-.42-2.068-.838-.482-.35-.62-.978-.344-1.467.275-.489.964-.628 1.447-.349 1.447.908 3.377.908 4.824 0 .483-.28 1.172-.14 1.447.35.276.488.138 1.186-.344 1.466-.62.419-1.31.698-2.068.838z"/>',height:16,toString:function(){return'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"><path fill-rule="evenodd" d="M8 8.262c1.999 0 3.584-1.606 3.584-3.631C11.584 2.676 9.999 1 8 1S4.416 2.606 4.416 4.63c0 2.026 1.585 3.632 3.584 3.632zm0-5.097c.827 0 1.516.698 1.516 1.466 0 .838-.689 1.466-1.516 1.466-.827 0-1.516-.698-1.516-1.466S7.173 3.165 8 3.165zm1.447 8.03 2.137 2.024a1.022 1.022 0 0 1 0 1.467 1.072 1.072 0 0 1-1.516 0l-2-1.955-1.998 1.955c-.207.21-.482.28-.758.28s-.551-.07-.758-.28a1.022 1.022 0 0 1 0-1.467l1.999-2.024c-.69-.14-1.448-.42-2.068-.838-.482-.35-.62-.978-.344-1.467.275-.489.964-.628 1.447-.349 1.447.908 3.377.908 4.824 0 .483-.28 1.172-.14 1.447.35.276.488.138 1.186-.344 1.466-.62.419-1.31.698-2.068.838z"/></svg>'},viewBox:"0 0 16 16",width:16},up={children:'<path fill-rule="evenodd" d="M8.614 8.147h2.097s.217-.663.289-1.62v-.148.074-.368H8.542v-2.36c0-.22.362-.59.65-.59h1.519V1H9.41C6.663 1 6.446 3.505 6.446 3.874v2.284H5v2.21h1.446V15h2.168V8.147z"/>',height:16,toString:function(){return'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"><path fill-rule="evenodd" d="M8.614 8.147h2.097s.217-.663.289-1.62v-.148.074-.368H8.542v-2.36c0-.22.362-.59.65-.59h1.519V1H9.41C6.663 1 6.446 3.505 6.446 3.874v2.284H5v2.21h1.446V15h2.168V8.147z"/></svg>'},viewBox:"0 0 16 16",width:16};function dp(e){let t,r=e[2].children+"";return{c(){t=Fa("svg"),ja(t,"width","16"),ja(t,"height","16"),ja(t,"aria-hidden","true"),ja(t,"class","svelte-g7jlmd")},m(e,n){wa(e,t,n),t.innerHTML=r},p:Ni,d(e){e&&$a(t)}}}function fp(e){let t,r,n,o;return{c(){t=Ca("img"),Ji(t.src,r=e[1]?"//r.mradx.net/img/9A/607EE8.svg":"//r.mradx.net/img/71/AB12F2.svg")||ja(t,"src",r),ja(t,"width","16"),ja(t,"height","16"),ja(t,"alt",""),ja(t,"class","svelte-g7jlmd")},m(e,r){wa(e,t,r),n||(o=da(Rf.call(null,t,"50%")),n=!0)},p(e,n){2&n&&!Ji(t.src,r=e[1]?"//r.mradx.net/img/9A/607EE8.svg":"//r.mradx.net/img/71/AB12F2.svg")&&ja(t,"src",r)},d(e){e&&$a(t),n=!1,o()}}}function hp(e){let t,r=(e[2]||"child"===e[3])&&function(e){let t,r=function(e,t){return"child"===e[3]?fp:dp}(e),n=r(e);return{c(){t=Ca("div"),n.c(),ja(t,"class","ph-icon svelte-g7jlmd"),ja(t,"data-icon",e[3]),Ma(t,"ph-icon__label",e[0])},m(e,r){wa(e,t,r),n.m(t,null)},p(e,r){n.p(e,r),1&r&&Ma(t,"ph-icon__label",e[0])},d(e){e&&$a(t),n.d()}}}(e);return{c(){r&&r.c(),t=Ea()},m(e,n){r&&r.m(e,n),wa(e,t,n)},p(e,t){let[n]=t;(e[2]||"child"===e[3])&&r.p(e,n)},i:Ni,o:Ni,d(e){r&&r.d(e),e&&$a(t)}}}function pp(e,t,r){let n;ta(e,eu,(e=>r(1,n=e)));let{social:o}=t,{isLabel:i=!1}=t,{child:a=!1}=t;const l={vk:sp,ok:cp,fb:up},{icon:s,dataAttr:c}=function(){if(a)return{icon:void 0,dataAttr:"child"};if(o in l)return{icon:l[o],dataAttr:o};return{icon:void 0,dataAttr:void 0}}();return e.$$set=e=>{"social"in e&&r(4,o=e.social),"isLabel"in e&&r(0,i=e.isLabel),"child"in e&&r(5,a=e.child)},[i,n,s,c,o,a]}class mp extends jl{constructor(e){super(),Bl(this,e,pp,hp,Yi,{social:4,isLabel:0,child:5})}}var gp='<defs><path id="a" d="M0 0h32v32H0z"/><mask id="b"><path fill="#fff" d="M0 0h64v64H0z"/><use fill="#020202" xlink:href="#a" transform="rotate(-146 32 32)"/><use fill="#040404" xlink:href="#a" transform="rotate(-144 32 32)"/><use fill="#060606" xlink:href="#a" transform="rotate(-142 32 32)"/><use fill="#080808" xlink:href="#a" transform="rotate(-140 32 32)"/><use fill="#0A0A0A" xlink:href="#a" transform="rotate(-138 32 32)"/><use fill="#0C0C0C" xlink:href="#a" transform="rotate(-136 32 32)"/><use fill="#0E0E0E" xlink:href="#a" transform="rotate(-134 32 32)"/><use fill="#101010" xlink:href="#a" transform="rotate(-132 32 32)"/><use fill="#131313" xlink:href="#a" transform="rotate(-130 32 32)"/><use fill="#151515" xlink:href="#a" transform="rotate(-128 32 32)"/><use fill="#171717" xlink:href="#a" transform="rotate(-126 32 32)"/><use fill="#191919" xlink:href="#a" transform="rotate(-124 32 32)"/><use fill="#1B1B1B" xlink:href="#a" transform="rotate(-122 32 32)"/><use fill="#1D1D1D" xlink:href="#a" transform="rotate(-120 32 32)"/><use fill="#1F1F1F" xlink:href="#a" transform="rotate(-118 32 32)"/><use fill="#212121" xlink:href="#a" transform="rotate(-116 32 32)"/><use fill="#242424" xlink:href="#a" transform="rotate(-114 32 32)"/><use fill="#262626" xlink:href="#a" transform="rotate(-112 32 32)"/><use fill="#282828" xlink:href="#a" transform="rotate(-110 32 32)"/><use fill="#2A2A2A" xlink:href="#a" transform="rotate(-108 32 32)"/><use fill="#2C2C2C" xlink:href="#a" transform="rotate(-106 32 32)"/><use fill="#2E2E2E" xlink:href="#a" transform="rotate(-104 32 32)"/><use fill="#303030" xlink:href="#a" transform="rotate(-102 32 32)"/><use fill="#323232" xlink:href="#a" transform="rotate(-100 32 32)"/><use fill="#353535" xlink:href="#a" transform="rotate(-98 32 32)"/><use fill="#373737" xlink:href="#a" transform="rotate(-96 32 32)"/><use fill="#393939" xlink:href="#a" transform="rotate(-94 32 32)"/><use fill="#3B3B3B" xlink:href="#a" transform="rotate(-92 32 32)"/><use fill="#3D3D3D" xlink:href="#a" transform="rotate(-90 32 32)"/><use fill="#3F3F3F" xlink:href="#a" transform="rotate(-88 32 32)"/><use fill="#414141" xlink:href="#a" transform="rotate(-86 32 32)"/><use fill="#434343" xlink:href="#a" transform="rotate(-84 32 32)"/><use fill="#464646" xlink:href="#a" transform="rotate(-82 32 32)"/><use fill="#484848" xlink:href="#a" transform="rotate(-80 32 32)"/><use fill="#4A4A4A" xlink:href="#a" transform="rotate(-78 32 32)"/><use fill="#4C4C4C" xlink:href="#a" transform="rotate(-76 32 32)"/><use fill="#4E4E4E" xlink:href="#a" transform="rotate(-74 32 32)"/><use fill="#505050" xlink:href="#a" transform="rotate(-72 32 32)"/><use fill="#525252" xlink:href="#a" transform="rotate(-70 32 32)"/><use fill="#545454" xlink:href="#a" transform="rotate(-68 32 32)"/><use fill="#575757" xlink:href="#a" transform="rotate(-66 32 32)"/><use fill="#595959" xlink:href="#a" transform="rotate(-64 32 32)"/><use fill="#5B5B5B" xlink:href="#a" transform="rotate(-62 32 32)"/><use fill="#5D5D5D" xlink:href="#a" transform="rotate(-60 32 32)"/><use fill="#5F5F5F" xlink:href="#a" transform="rotate(-58 32 32)"/><use fill="#616161" xlink:href="#a" transform="rotate(-56 32 32)"/><use fill="#636363" xlink:href="#a" transform="rotate(-54 32 32)"/><use fill="#656565" xlink:href="#a" transform="rotate(-52 32 32)"/><use fill="#686868" xlink:href="#a" transform="rotate(-50 32 32)"/><use fill="#6A6A6A" xlink:href="#a" transform="rotate(-48 32 32)"/><use fill="#6C6C6C" xlink:href="#a" transform="rotate(-46 32 32)"/><use fill="#6E6E6E" xlink:href="#a" transform="rotate(-44 32 32)"/><use fill="#707070" xlink:href="#a" transform="rotate(-42 32 32)"/><use fill="#727272" xlink:href="#a" transform="rotate(-40 32 32)"/><use fill="#747474" xlink:href="#a" transform="rotate(-38 32 32)"/><use fill="#767676" xlink:href="#a" transform="rotate(-36 32 32)"/><use fill="#797979" xlink:href="#a" transform="rotate(-34 32 32)"/><use fill="#7B7B7B" xlink:href="#a" transform="rotate(-32 32 32)"/><use fill="#7D7D7D" xlink:href="#a" transform="rotate(-30 32 32)"/><use fill="#7F7F7F" xlink:href="#a" transform="rotate(-28 32 32)"/><use fill="#818181" xlink:href="#a" transform="rotate(-26 32 32)"/><use fill="#838383" xlink:href="#a" transform="rotate(-24 32 32)"/><use fill="#858585" xlink:href="#a" transform="rotate(-22 32 32)"/><use fill="#878787" xlink:href="#a" transform="rotate(-20 32 32)"/><use fill="#8A8A8A" xlink:href="#a" transform="rotate(-18 32 32)"/><use fill="#8C8C8C" xlink:href="#a" transform="rotate(-16 32 32)"/><use fill="#8E8E8E" xlink:href="#a" transform="rotate(-14 32 32)"/><use fill="#909090" xlink:href="#a" transform="rotate(-12 32 32)"/><use fill="#929292" xlink:href="#a" transform="rotate(-10 32 32)"/><use fill="#949494" xlink:href="#a" transform="rotate(-8 32 32)"/><use fill="#969696" xlink:href="#a" transform="rotate(-6 32 32)"/><use fill="#989898" xlink:href="#a" transform="rotate(-4 32 32)"/><use fill="#9B9B9B" xlink:href="#a" transform="rotate(-2 32 32)"/><use fill="#9D9D9D" xlink:href="#a"/><use fill="#9F9F9F" xlink:href="#a" transform="rotate(2 32 32)"/><use fill="#A1A1A1" xlink:href="#a" transform="rotate(4 32 32)"/><use fill="#A3A3A3" xlink:href="#a" transform="rotate(6 32 32)"/><use fill="#A5A5A5" xlink:href="#a" transform="rotate(8 32 32)"/><use fill="#A7A7A7" xlink:href="#a" transform="rotate(10 32 32)"/><use fill="#A9A9A9" xlink:href="#a" transform="rotate(12 32 32)"/><use fill="#ACACAC" xlink:href="#a" transform="rotate(14 32 32)"/><use fill="#AEAEAE" xlink:href="#a" transform="rotate(16 32 32)"/><use fill="#B0B0B0" xlink:href="#a" transform="rotate(18 32 32)"/><use fill="#B2B2B2" xlink:href="#a" transform="rotate(20 32 32)"/><use fill="#B4B4B4" xlink:href="#a" transform="rotate(22 32 32)"/><use fill="#B6B6B6" xlink:href="#a" transform="rotate(24 32 32)"/><use fill="#B8B8B8" xlink:href="#a" transform="rotate(26 32 32)"/><use fill="#BABABA" xlink:href="#a" transform="rotate(28 32 32)"/><use fill="#BDBDBD" xlink:href="#a" transform="rotate(30 32 32)"/><use fill="#BFBFBF" xlink:href="#a" transform="rotate(32 32 32)"/><use fill="#C1C1C1" xlink:href="#a" transform="rotate(34 32 32)"/><use fill="#C3C3C3" xlink:href="#a" transform="rotate(36 32 32)"/><use fill="#C5C5C5" xlink:href="#a" transform="rotate(38 32 32)"/><use fill="#C7C7C7" xlink:href="#a" transform="rotate(40 32 32)"/><use fill="#C9C9C9" xlink:href="#a" transform="rotate(42 32 32)"/><use fill="#CBCBCB" xlink:href="#a" transform="rotate(44 32 32)"/><use fill="#CECECE" xlink:href="#a" transform="rotate(46 32 32)"/><use fill="#D0D0D0" xlink:href="#a" transform="rotate(48 32 32)"/><use fill="#D2D2D2" xlink:href="#a" transform="rotate(50 32 32)"/><use fill="#D4D4D4" xlink:href="#a" transform="rotate(52 32 32)"/><use fill="#D6D6D6" xlink:href="#a" transform="rotate(54 32 32)"/><use fill="#D8D8D8" xlink:href="#a" transform="rotate(56 32 32)"/><use fill="#DADADA" xlink:href="#a" transform="rotate(58 32 32)"/><use fill="#DCDCDC" xlink:href="#a" transform="rotate(60 32 32)"/><use fill="#DFDFDF" xlink:href="#a" transform="rotate(62 32 32)"/><use fill="#E1E1E1" xlink:href="#a" transform="rotate(64 32 32)"/><use fill="#E3E3E3" xlink:href="#a" transform="rotate(66 32 32)"/><use fill="#E5E5E5" xlink:href="#a" transform="rotate(68 32 32)"/><use fill="#E7E7E7" xlink:href="#a" transform="rotate(70 32 32)"/><use fill="#E9E9E9" xlink:href="#a" transform="rotate(72 32 32)"/><use fill="#EBEBEB" xlink:href="#a" transform="rotate(74 32 32)"/><use fill="#EDEDED" xlink:href="#a" transform="rotate(76 32 32)"/><use fill="#F0F0F0" xlink:href="#a" transform="rotate(78 32 32)"/><use fill="#F2F2F2" xlink:href="#a" transform="rotate(80 32 32)"/><use fill="#F4F4F4" xlink:href="#a" transform="rotate(82 32 32)"/><use fill="#F6F6F6" xlink:href="#a" transform="rotate(84 32 32)"/><use fill="#F8F8F8" xlink:href="#a" transform="rotate(86 32 32)"/><use fill="#FAFAFA" xlink:href="#a" transform="rotate(88 32 32)"/><use fill="#FCFCFC" xlink:href="#a" transform="rotate(90 32 32)"/><use fill="#FEFEFE" xlink:href="#a" transform="rotate(92 32 32)"/></mask></defs><path d="M54.6 47.6c-1.98-1.98-5.09-1.98-7.07 0-8.56 8.56-22.6 8.56-31.1 0-8.56-8.56-8.56-22.6 0-31.1 4.54-5.58-3.25-10.7-7.07-7.07-12.4 12.4-12.4 32.8 0 45.3 12.4 12.4 32.8 12.4 45.3 0 1.98-1.98 1.98-5.09 0-7.07zM32 54c-12.1 0-22-9.9-22-22s9.9-22 22-22c2.8 0 5-2.2 5-5s-2.2-5-5-5C14.4 0 0 14.4 0 32s14.4 32 32 32c7.16-.736 5.26-9.84 0-10z" mask="url(#b)"/>',vp="0 0 64 64";function yp(e){let t,r,n=gp+"";return{c(){t=Ca("div"),r=Fa("svg"),ja(r,"class","ph-spinner svelte-1ww5cap"),ja(r,"width",bp),ja(r,"height",bp),ja(r,"aria-hidden","true"),ja(r,"tabindex","-1"),ja(r,"viewBox",vp),ja(t,"class","ph-loading svelte-1ww5cap")},m(e,o){wa(e,t,o),ya(t,r),r.innerHTML=n},p:Ni,i:Ni,o:Ni,d(e){e&&$a(t)}}}const bp=32;class xp extends jl{constructor(e){super(),Bl(this,e,null,yp,Yi,{})}}function wp(e){let t,r;const n=[e[5]];let o={$$slots:{default:[kp]},$$scope:{ctx:e}};for(let e=0;e<n.length;e+=1)o=Ui(o,n[e]);return t=new ap({props:o}),{c(){Sl(t.$$.fragment)},m(e,n){El(t,e,n),r=!0},p(e,r){const o=32&r?Fl(n,[Al(e[5])]):{};262&r&&(o.$$scope={dirty:r,ctx:e}),t.$set(o)},i(e){r||(gl(t.$$.fragment,e),r=!0)},o(e){vl(t.$$.fragment,e),r=!1},d(e){Tl(t,e)}}}function $p(e){let t,r;return t=new xp({}),{c(){Sl(t.$$.fragment)},m(e,n){El(t,e,n),r=!0},i(e){r||(gl(t.$$.fragment,e),r=!0)},o(e){vl(t.$$.fragment,e),r=!1},d(e){Tl(t,e)}}}function kp(e){let t,r,n,o,i,a,l=!e[2]&&$p();return{c(){l&&l.c(),t=Sa(),r=Ca("iframe"),ja(r,"class","ph-marusia-iframe svelte-pp2n33"),Ji(r.src,n=e[1])||ja(r,"src",n),ja(r,"allow","autoplay; geolocation; microphone;"),Ma(r,"ph-marusia-iframe__loading",!e[2])},m(n,s){l&&l.m(n,s),wa(n,t,s),wa(n,r,s),o=!0,i||(a=Ta(r,"load",e[7]),i=!0)},p(e,i){e[2]?l&&(pl(),vl(l,1,1,(()=>{l=null})),ml()):l?4&i&&gl(l,1):(l=$p(),l.c(),gl(l,1),l.m(t.parentNode,t)),(!o||2&i&&!Ji(r.src,n=e[1]))&&ja(r,"src",n),4&i&&Ma(r,"ph-marusia-iframe__loading",!e[2])},i(e){o||(gl(l),o=!0)},o(e){vl(l),o=!1},d(e){l&&l.d(e),e&&$a(t),e&&$a(r),i=!1,a()}}}function Cp(e){let t,r,n,o,i=e[3]&&e[1]&&e[0]&&wp(e);return{c(){i&&i.c(),t=Ea()},m(a,l){i&&i.m(a,l),wa(a,t,l),r=!0,n||(o=[Ta(window,"message",e[4]),Ta(window,"online",e[6])],n=!0)},p(e,r){let[n]=r;e[3]&&e[1]&&e[0]?i?(i.p(e,n),11&n&&gl(i,1)):(i=wp(e),i.c(),gl(i,1),i.m(t.parentNode,t)):i&&(pl(),vl(i,1,1,(()=>{i=null})),ml())},i(e){r||(gl(i),r=!0)},o(e){vl(i),r=!1},d(e){i&&i.d(e),e&&$a(t),n=!1,Gi(o)}}}function Fp(e,t,r){const n=[];let o,i,a,l=sa(t,n);ta(e,cu,(e=>r(0,o=e))),ta(e,au,(e=>r(1,i=e))),ta(e,ru,(e=>r(3,a=e)));let s=!1;return e.$$set=e=>{t=Ui(Ui({},t),la(e)),r(5,l=sa(t,n))},e.$$.update=()=>{1&e.$$.dirty&&(o||r(2,s=!1)),2&e.$$.dirty&&r(2,s=!1)},[o,i,s,a,function(e){let{data:{key:t,event:r},origin:n}=e;n===nu&&"marusia-widget-channel"===t&&"close"===r.type&&ua(cu,o=!1,o)},l,()=>r(2,s=!1),()=>r(2,s=!0)]}class Ap extends jl{constructor(e){super(),Bl(this,e,Fp,Cp,Yi,{})}}var Sp;!function(e){e.OK="ok",e.NOAUTH="noauth",e.ERROR="error"}(Sp||(Sp={}));const Ep={mac:1,Socials:1};function Tp(e){let t;return{c(){t=Ca("span"),ja(t,"class","ph-tooltip svelte-1gze01a"),ja(t,"style",e[1])},m(r,n){wa(r,t,n),t.innerHTML=e[0],e[3](t)},p(e,r){1&r&&(t.innerHTML=e[0]),2&r&&ja(t,"style",e[1])},d(r){r&&$a(t),e[3](null)}}}function _p(e){let t,r=e[0]&&Tp(e);return{c(){r&&r.c(),t=Ea()},m(e,n){r&&r.m(e,n),wa(e,t,n)},p(e,n){let[o]=n;e[0]?r?r.p(e,o):(r=Tp(e),r.c(),r.m(t.parentNode,t)):r&&(r.d(1),r=null)},i:Ni,o:Ni,d(e){r&&r.d(e),e&&$a(t)}}}function Bp(e,t,r){let{text:n=""}=t,{style:o=""}=t;const i=function(){const e=Ga();return(t,r)=>{const n=e.$$.callbacks[t];if(n){const o=La(t,r);n.slice().forEach((t=>{t.call(e,o)}))}}}(),a=()=>i("close");let l;return Xa((()=>(l.addEventListener("mouseenter",a),()=>{l.removeEventListener("mouseenter",a)}))),e.$$set=e=>{"text"in e&&r(0,n=e.text),"style"in e&&r(1,o=e.style)},[n,o,l,function(e){Qa[e?"unshift":"push"]((()=>{l=e,r(2,l)}))}]}new class extends nd{constructor(){super(od)}getInfo(e,t){let r=Object.assign(Object.assign(Object.assign({},Ep),{gamescnt:1}),t);return ns&&(r=Object.assign(Object.assign({},r),{ldata:1})),e&&(r=Object.assign(Object.assign({},r),{Login:e})),this.getJson(r,"/NaviData")}getListInfo(e,t){let r=Object.assign(Object.assign(Object.assign({},Ep),{ldata:1}),t);return e&&(r=Object.assign(Object.assign({},r),{Login:e})),this.getJson(r,"/NaviData")}getDomains(e){return this.getJson(e,"/Domains")}};class jp extends jl{constructor(e){super(),Bl(this,e,Bp,_p,Yi,{text:0,style:1})}}const Pp=(e,t)=>{let{text:r,style:n}=t,o=null,i=!1,a=!1;function l(){a||(o.$destroy(),a=!0)}function s(){i||(o=new jp({target:e,props:{text:r,style:n}}),a=!1,o.$on("close",l)),i=!0}function c(){l(),i=!1}return e.addEventListener("mouseenter",s),e.addEventListener("mouseleave",c),{destroy(){e.removeEventListener("mouseenter",s),e.removeEventListener("mouseleave",c)}}};function zp(e,t){(e=>{var t;return null===(t=Jl("getListenersNumber"))||void 0===t?void 0:t.call(Ol,e)})(zl.BeforeLogout)?((e,t)=>{null==Ol||Ol.emit(zl.BeforeLogout,t,{email:e})})(e,t):t()}function Dp(e){let t,r,n,o,i;return{c(){t=Ca("img"),ja(t,"class","ph-avatar-img svelte-dfhuqc"),Ji(t.src,r=e[5])||ja(t,"src",r),ja(t,"srcset",n=e[5]+", "+e[6]+" 2x"),ja(t,"width",e[2]),ja(t,"height",e[2]),ja(t,"alt",e[0]),Ma(t,"ph-image-loader",!e[4])},m(r,n){wa(r,t,n),o||(i=[Ta(t,"click",e[8]),Ta(t,"load",e[9]),Ta(t,"error",e[10])],o=!0)},p(e,o){32&o&&!Ji(t.src,r=e[5])&&ja(t,"src",r),96&o&&n!==(n=e[5]+", "+e[6]+" 2x")&&ja(t,"srcset",n),4&o&&ja(t,"width",e[2]),4&o&&ja(t,"height",e[2]),1&o&&ja(t,"alt",e[0]),16&o&&Ma(t,"ph-image-loader",!e[4])},d(e){e&&$a(t),o=!1,Gi(i)}}}function Mp(e){let t,r,n=(Op(e[1])||Op(e[0]))+"";return{c(){t=Ca("div"),r=Aa(n),ja(t,"class","ph-avatar-img ph-avatar-error svelte-dfhuqc"),ja(t,"style",e[7])},m(e,n){wa(e,t,n),ya(t,r)},p(e,o){3&o&&n!==(n=(Op(e[1])||Op(e[0]))+"")&&za(r,n),128&o&&ja(t,"style",e[7])},d(e){e&&$a(t)}}}function Lp(e){let t;function r(e,t){return e[3]?Mp:Dp}let n=r(e),o=n(e);return{c(){o.c(),t=Ea()},m(e,r){o.m(e,r),wa(e,t,r)},p(e,i){let[a]=i;n===(n=r(e))&&o?o.p(e,a):(o.d(1),o=n(e),o&&(o.c(),o.m(t.parentNode,t)))},i:Ni,o:Ni,d(e){o.d(e),e&&$a(t)}}}function Op(e){return e?String.fromCodePoint(e.codePointAt(0)).toUpperCase():""}function Hp(e,t,r){let n,{email:o=""}=t,{name:i=""}=t,{size:a=48}=t,l=!1,s=!1,c="",u="";return e.$$set=e=>{"email"in e&&r(0,o=e.email),"name"in e&&r(1,i=e.name),"size"in e&&r(2,a=e.size)},e.$$.update=()=>{3&e.$$.dirty&&(r(3,l=!1),r(4,s=!1),r(5,c=Ls(o,i,45)),r(6,u=Ls(o,i,90))),4&e.$$.dirty&&r(7,n=`width: ${a}px; height: ${a}px; font-size: ${Math.floor(a/2)}px`)},[o,i,a,l,s,c,u,n,function(t){Ja.call(this,e,t)},()=>r(4,s=!0),()=>r(3,l=!0)]}class Ip extends jl{constructor(e){super(),Bl(this,e,Hp,Lp,Yi,{email:0,name:1,size:2})}}function Rp(e){let t,r=e[1]["children-users"]+"";return{c(){t=Ca("div"),ja(t,"class","ph-children-head svelte-1pvh799"),Ma(t,"ph-children-head__over",e[0])},m(e,n){wa(e,t,n),t.innerHTML=r},p(e,n){let[o]=n;2&o&&r!==(r=e[1]["children-users"]+"")&&(t.innerHTML=r),1&o&&Ma(t,"ph-children-head__over",e[0])},i:Ni,o:Ni,d(e){e&&$a(t)}}}function Np(e,t,r){let n;ta(e,xc,(e=>r(1,n=e)));let{overActiveUser:o=!1}=t;return e.$$set=e=>{"overActiveUser"in e&&r(0,o=e.overActiveUser)},[o,n]}class Wp extends jl{constructor(e){super(),Bl(this,e,Np,Rp,Yi,{overActiveUser:0})}}function Up(e){let t,r,n,o,i;const a=e[3].default,l=ra(a,e,e[2],null);return{c(){t=Ca("div"),l&&l.c(),ja(t,"class","ph-account-item svelte-r18yej"),ja(t,"data-click-counter",e[1]),ja(t,"tabindex","0"),ja(t,"data-testid",lp.AccountItem)},m(a,s){wa(a,t,s),l&&l.m(t,null),n=!0,o||(i=[da(Bf.call(null,t)),da(r=nf.call(null,t,e[0]))],o=!0)},p(e,o){let[i]=o;l&&l.p&&(!n||4&i)&&ia(l,a,e,e[2],n?oa(a,e[2],i,null):aa(e[2]),null),(!n||2&i)&&ja(t,"data-click-counter",e[1]),r&&Xi(r.update)&&1&i&&r.update.call(null,e[0])},i(e){n||(gl(l,e),n=!0)},o(e){vl(l,e),n=!1},d(e){e&&$a(t),l&&l.d(e),o=!1,Gi(i)}}}function Vp(e,t,r){let{$$slots:n={},$$scope:o}=t,{onClick:i}=t,{counter:a}=t;return e.$$set=e=>{"onClick"in e&&r(0,i=e.onClick),"counter"in e&&r(1,a=e.counter),"$$scope"in e&&r(2,o=e.$$scope)},[i,a,o,n]}class qp extends jl{constructor(e){super(),Bl(this,e,Vp,Up,Yi,{onClick:0,counter:1})}}var Gp={children:'<path fill-rule="evenodd" d="M16 11.489c0 1.768-1.599 2.568-1.599 2.568l-2.684 1.791-.001.001a1.164 1.164 0 0 1-1.718-1.027l.001-.155V14H7a2 2 0 0 1-2-2v-2a1 1 0 0 1 2 0v1.403c0 .329.267.597.597.597h2.402L10 9V5.692c0-1.796 1.503-2.463 1.503-2.463l2.228-1.131A.594.594 0 0 0 13.403 2H7.597A.597.597 0 0 0 7 2.597V4a1 1 0 0 1-2 0V2a2 2 0 0 1 2-2h7a2 2 0 0 1 2 2v9.489zM.307 6.278l1.986-1.985a1 1 0 0 1 1.414 1.414L3.414 6H7a1 1 0 0 1 0 2H3.414l.293.293a1 1 0 0 1-1.414 1.414L.307 7.722l-.014-.015a.983.983 0 0 1-.276-.523v-.001l-.001-.001v-.005l-.001-.003v-.003l-.001-.003v-.001a.82.82 0 0 1-.012-.101v-.011l-.001-.001v-.022H0v-.063l.001-.001v-.01a.985.985 0 0 1 .292-.665l.014-.015z"/>',height:16,toString:function(){return'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"><path fill-rule="evenodd" d="M16 11.489c0 1.768-1.599 2.568-1.599 2.568l-2.684 1.791-.001.001a1.164 1.164 0 0 1-1.718-1.027l.001-.155V14H7a2 2 0 0 1-2-2v-2a1 1 0 0 1 2 0v1.403c0 .329.267.597.597.597h2.402L10 9V5.692c0-1.796 1.503-2.463 1.503-2.463l2.228-1.131A.594.594 0 0 0 13.403 2H7.597A.597.597 0 0 0 7 2.597V4a1 1 0 0 1-2 0V2a2 2 0 0 1 2-2h7a2 2 0 0 1 2 2v9.489zM.307 6.278l1.986-1.985a1 1 0 0 1 1.414 1.414L3.414 6H7a1 1 0 0 1 0 2H3.414l.293.293a1 1 0 0 1-1.414 1.414L.307 7.722l-.014-.015a.983.983 0 0 1-.276-.523v-.001l-.001-.001v-.005l-.001-.003v-.003l-.001-.003v-.001a.82.82 0 0 1-.012-.101v-.011l-.001-.001v-.022H0v-.063l.001-.001v-.01a.985.985 0 0 1 .292-.665l.014-.015z"/></svg>'},viewBox:"0 0 16 16",width:16},Xp='<path fill-rule="evenodd" d="M13.2 2c.993 0 1.8.807 1.8 1.8v8.4c0 .993-.807 1.8-1.8 1.8H2.8c-.993 0-1.8-.807-1.8-1.8V3.8C1 2.807 1.807 2 2.8 2h10.4zM5.049 8.094 3.036 6.081a.756.756 0 1 1 1.07-1.07l3.886 3.886 3.891-3.891a.757.757 0 1 1 1.071 1.07l-2.01 2.009 1.87 1.87a.723.723 0 0 1-1.022 1.022l-1.87-1.87-1.31 1.31a.745.745 0 0 1-.62.313.756.756 0 0 1-.62-.313l-1.301-1.3-1.859 1.859A.723.723 0 0 1 3.19 9.953l1.859-1.859z"/>';function Zp(e){let t,r;return t=new mp({props:{social:e[3],child:e[4],isLabel:!0}}),{c(){Sl(t.$$.fragment)},m(e,n){El(t,e,n),r=!0},p(e,r){const n={};8&r&&(n.social=e[3]),16&r&&(n.child=e[4]),t.$set(n)},i(e){r||(gl(t.$$.fragment,e),r=!0)},o(e){vl(t.$$.fragment,e),r=!1},d(e){Tl(t,e)}}}function Kp(e){let t,r,n,o,i=Xp+"";return{c(){t=Ca("div"),r=Fa("svg"),n=Sa(),o=Aa(e[2]),ja(r,"width","16"),ja(r,"height","16"),ja(r,"aria-hidden","true"),ja(r,"class","svelte-uqgboo"),ja(t,"class","ph-account__counter svelte-uqgboo")},m(e,a){wa(e,t,a),ya(t,r),r.innerHTML=i,ya(t,n),ya(t,o)},p(e,t){4&t&&za(o,e[2])},d(e){e&&$a(t)}}}function Jp(e){let t,r;return{c(){t=Ca("div"),r=Aa(e[0]),ja(t,"class","ph-account__desc svelte-uqgboo")},m(e,n){wa(e,t,n),ya(t,r)},p(e,t){1&t&&za(r,e[0])},d(e){e&&$a(t)}}}function Yp(e){let t,r,n,o,i,a,l,s=Gp.children+"";return{c(){t=Ca("div"),r=Fa("svg"),ja(r,"class","ph-account__exit-svg svelte-uqgboo"),ja(r,"width","16"),ja(r,"height","16"),ja(r,"aria-hidden","true"),ja(r,"tabindex","-1"),ja(r,"viewBox",n=Gp.viewBox),ja(t,"data-click-counter",e[8]),ja(t,"class","ph-account__exit svelte-uqgboo")},m(n,c){wa(n,t,c),ya(t,r),r.innerHTML=s,a||(l=[da(o=Bf.call(null,t)),Ta(t,"click",Ba(e[12])),Ta(t,"mousedown",Ba(e[19])),da(i=Pp.call(null,t,{text:e[10].exit,style:"right: -16px; bottom: -28px;"}))],a=!0)},p(e,r){256&r&&ja(t,"data-click-counter",e[8]),i&&Xi(i.update)&&1024&r&&i.update.call(null,{text:e[10].exit,style:"right: -16px; bottom: -28px;"})},d(e){e&&$a(t),a=!1,Gi(l)}}}function Qp(e){let t,r,n,o,i,a,l,s,c,u,d,f,h,p=Hc(e[3]);r=new Ip({props:{email:e[0],name:e[1]}});let m=p&&Zp(e),g=e[2]&&Kp(e),v=e[6]&&Jp(e),y=!e[5]&&Yp(e);return{c(){t=Ca("div"),Sl(r.$$.fragment),n=Sa(),m&&m.c(),o=Sa(),i=Ca("div"),a=Ca("div"),l=Ca("div"),s=Aa(e[7]),c=Sa(),g&&g.c(),u=Sa(),v&&v.c(),d=Sa(),y&&y.c(),f=Ea(),ja(t,"class","ph-account__avatar svelte-uqgboo"),ja(l,"class","ph-account__name svelte-uqgboo"),ja(a,"class","ph-account__title svelte-uqgboo"),ja(i,"class","ph-account__text svelte-uqgboo")},m(e,p){wa(e,t,p),El(r,t,null),ya(t,n),m&&m.m(t,null),wa(e,o,p),wa(e,i,p),ya(i,a),ya(a,l),ya(l,s),ya(a,c),g&&g.m(a,null),ya(i,u),v&&v.m(i,null),wa(e,d,p),y&&y.m(e,p),wa(e,f,p),h=!0},p(e,n){const o={};1&n&&(o.email=e[0]),2&n&&(o.name=e[1]),r.$set(o),8&n&&(p=Hc(e[3])),p?m?(m.p(e,n),8&n&&gl(m,1)):(m=Zp(e),m.c(),gl(m,1),m.m(t,null)):m&&(pl(),vl(m,1,1,(()=>{m=null})),ml()),(!h||128&n)&&za(s,e[7]),e[2]?g?g.p(e,n):(g=Kp(e),g.c(),g.m(a,null)):g&&(g.d(1),g=null),e[6]?v?v.p(e,n):(v=Jp(e),v.c(),v.m(i,null)):v&&(v.d(1),v=null),e[5]?y&&(y.d(1),y=null):y?y.p(e,n):(y=Yp(e),y.c(),y.m(f.parentNode,f))},i(e){h||(gl(r.$$.fragment,e),gl(m),h=!0)},o(e){vl(r.$$.fragment,e),vl(m),h=!1},d(e){e&&$a(t),Tl(r),m&&m.d(),e&&$a(o),e&&$a(i),g&&g.d(),v&&v.d(),e&&$a(d),y&&y.d(e),e&&$a(f)}}}function em(e){let t,r;return t=new qp({props:{onClick:e[20],counter:e[9],$$slots:{default:[Qp]},$$scope:{ctx:e}}}),{c(){Sl(t.$$.fragment)},m(e,n){El(t,e,n),r=!0},p(e,r){let[n]=r;const o={};1&n&&(o.onClick=e[20]),512&n&&(o.counter=e[9]),2098687&n&&(o.$$scope={dirty:n,ctx:e}),t.$set(o)},i(e){r||(gl(t.$$.fragment,e),r=!0)},o(e){vl(t.$$.fragment,e),r=!1},d(e){Tl(t,e)}}}function tm(e,t,r){let n,o,i,a;var l,s;ta(e,Gc,(e=>r(18,i=e))),ta(e,xc,(e=>r(10,a=e)));let c,u,d,{user:f}=t,{firstName:h}=t,{lastName:p}=t,{mailCounter:m}=t,{social:g}=t,{child:v=!1}=t,{hideExit:y=!1}=t,{logoutHref:b=""}=t;function x(e){(e=>{var t,r;null==Ol||Ol.xray.setConfig({defaultParams:{email:e}});const n=null===(t=Jl("switchAccount"))||void 0===t?void 0:t.bind(Ol),o=null===(r=Jl("getCountersQueryParams"))||void 0===r?void 0:r.bind(Ol);n&&o&&n(e,!1,!0,o())})(e),su.set(!1),i.isShowVKCounter&&ss("social_counters_switch_account_vk"),i.isShowOkCounter&&ss("social_counters_switch_account_ok")}return e.$$set=e=>{"user"in e&&r(0,f=e.user),"firstName"in e&&r(1,h=e.firstName),"lastName"in e&&r(13,p=e.lastName),"mailCounter"in e&&r(2,m=e.mailCounter),"social"in e&&r(3,g=e.social),"child"in e&&r(4,v=e.child),"hideExit"in e&&r(5,y=e.hideExit),"logoutHref"in e&&r(14,b=e.logoutHref)},e.$$.update=()=>{139339&e.$$.dirty&&(r(17,c=h&&p?`${h} ${p}`:h||p),g?(r(6,u=!1),r(7,d=c)):(r(6,u=!!c),r(7,d=u?c:f))),294912&e.$$.dirty&&r(9,n=null===r(15,l=i.counters)||void 0===l?void 0:l.counterChangeMailbox),327680&e.$$.dirty&&r(8,o=null===r(16,s=i.counters)||void 0===s?void 0:s.counterLogout)},[f,h,m,g,v,y,u,d,o,n,a,x,function(){zp(f,(()=>{b?window.location.href=b:(e=>{var t;null===(t=Jl("logoutAccount"))||void 0===t||t.bind(Ol)(e)})(f)}))},p,b,l,s,c,i,function(t){Ja.call(this,e,t)},()=>x(f)]}class rm extends jl{constructor(e){super(),Bl(this,e,tm,em,Yi,{user:0,firstName:1,lastName:13,mailCounter:2,social:3,child:4,hideExit:5,logoutHref:14})}}function nm(e,t,r){const n=e.slice();return n[5]=t[r],n}function om(e){let t,r;const n=[e[0].children[e[5]],{social:""},{user:e[5]},{child:!0},{hideExit:!0}];let o={};for(let e=0;e<n.length;e+=1)o=Ui(o,n[e]);return t=new rm({props:o}),{c(){Sl(t.$$.fragment)},m(e,n){El(t,e,n),r=!0},p(e,r){const o=3&r?Fl(n,[Al(e[0].children[e[5]]),n[1],2&r&&{user:e[5]},n[3],n[4]]):{};t.$set(o)},i(e){r||(gl(t.$$.fragment,e),r=!0)},o(e){vl(t.$$.fragment,e),r=!1},d(e){Tl(t,e)}}}function im(e){let t,r,n=e[1],o=[];for(let t=0;t<n.length;t+=1)o[t]=om(nm(e,n,t));const i=e=>vl(o[e],1,1,(()=>{o[e]=null}));return{c(){for(let e=0;e<o.length;e+=1)o[e].c();t=Ea()},m(e,n){for(let t=0;t<o.length;t+=1)o[t].m(e,n);wa(e,t,n),r=!0},p(e,r){let[a]=r;if(3&a){let r;for(n=e[1],r=0;r<n.length;r+=1){const i=nm(e,n,r);o[r]?(o[r].p(i,a),gl(o[r],1)):(o[r]=om(i),o[r].c(),gl(o[r],1),o[r].m(t.parentNode,t))}for(pl(),r=n.length;r<o.length;r+=1)i(r);ml()}},i(e){if(!r){for(let e=0;e<n.length;e+=1)gl(o[e]);r=!0}},o(e){o=o.filter(Boolean);for(let e=0;e<o.length;e+=1)vl(o[e]);r=!1},d(e){ka(o,e),e&&$a(t)}}}function am(e,t,r){let n,o,i;ta(e,Cc,(e=>r(2,n=e))),ta(e,Ac,(e=>r(3,o=e))),ta(e,Lc,(e=>r(4,i=e)));const a=i.find((e=>e.user===o));return[a,Object.keys(a.children).filter((e=>n!==e))]}class lm extends jl{constructor(e){super(),Bl(this,e,am,im,Yi,{})}}function sm(e){let t,r,n,o,i;return{c(){t=Ca("div"),r=Ca("div"),ja(r,"class",n=ca(`ph-progress-bar ph-progress-bar__primary_${e[1]}`)+" svelte-r0vso4"),ja(r,"style",o=`width: ${e[0]}%;`),ja(t,"class",i=ca("ph-progress-bar ph-progress-bar__secondary"+(e[2]?"_dark":`_${e[1]}`))+" svelte-r0vso4")},m(e,n){wa(e,t,n),ya(t,r)},p(e,a){let[l]=a;2&l&&n!==(n=ca(`ph-progress-bar ph-progress-bar__primary_${e[1]}`)+" svelte-r0vso4")&&ja(r,"class",n),1&l&&o!==(o=`width: ${e[0]}%;`)&&ja(r,"style",o),6&l&&i!==(i=ca("ph-progress-bar ph-progress-bar__secondary"+(e[2]?"_dark":`_${e[1]}`))+" svelte-r0vso4")&&ja(t,"class",i)},i:Ni,o:Ni,d(e){e&&$a(t)}}}function cm(e,t,r){let n;ta(e,eu,(e=>r(2,n=e)));let{percent:o=0}=t,{view:i=""}=t;return e.$$set=e=>{"percent"in e&&r(0,o=e.percent),"view"in e&&r(1,i=e.view)},[o,i,n]}class um extends jl{constructor(e){super(),Bl(this,e,cm,sm,Yi,{percent:0,view:1})}}var dm,fm,hm=s((function(e,t){var r,n,o;Object.defineProperty(t,"__esModule",{value:!0}),t.ConditionGB=t.ConditionNumber=t.Segments=void 0,(r=t.Segments||(t.Segments={})).ok="ok",r.soonFull="soonFull",r.almostFull="almostFull",r.full="full",r.overflow="overflow",(n=t.ConditionNumber||(t.ConditionNumber={}))[n.soonFull=50]="soonFull",n[n.almostFull=80]="almostFull",n[n.full=100]="full",(o=t.ConditionGB||(t.ConditionGB={}))[o.gb50=50]="gb50",o[o.gb10=10]="gb10"})),pm=s((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.getSegmentByQuota=t.getUsableSpaceRatio=t.makeGbSize=void 0;var r=function(e,t){return Math.ceil((t||0)/e*100)};t.makeGbSize=function(e){return Math.round(e/Math.pow(1024,3)*10)/10};t.getUsableSpaceRatio=function(e){var t=e.used,n=e.quota,o=t.cloud,i=t.mail,a=t.total;return{cloud:r(n,o),mail:r(n,i),total:r(n,a)}};t.getSegmentByQuota=function(e,r){var n=(0,t.getUsableSpaceRatio)({quota:e,used:{total:r}}).total,o=(0,t.makeGbSize)(e-r),i=n>=hm.ConditionNumber.soonFull&&n<hm.ConditionNumber.almostFull&&o<hm.ConditionGB.gb50,a=n>=hm.ConditionNumber.almostFull&&n<hm.ConditionNumber.full&&o<hm.ConditionGB.gb50&&o>hm.ConditionGB.gb10,l=n<hm.ConditionNumber.full&&n>=hm.ConditionNumber.almostFull&&o<=hm.ConditionGB.gb10;switch(!0){case n>hm.ConditionNumber.full:return hm.Segments.overflow;case n===hm.ConditionNumber.full:return hm.Segments.full;case l:return hm.Segments.almostFull;case i||a:return hm.Segments.soonFull;default:return hm.Segments.ok}}})),mm=s((function(e,t){var r=l&&l.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),n=l&&l.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),n(pm,t),n(hm,t)}));!function(e){e.AddQuota="add_quota",e.BlockQuota="block_quota"}(dm||(dm={})),function(e){e.Click="click",e.Show="show",e.ShowError="show_error"}(fm||(fm={}));const gm="Единое хранилище Почты и Облака",vm="Единое хранилище скоро заполнится",ym="Единое хранилище почти заполнено",bm="Единое хранилище заполнено",xm="Единое хранилище переполнено",wm={[mm.Segments.ok]:"ok",[mm.Segments.soonFull]:"soon-full",[mm.Segments.almostFull]:"full",[mm.Segments.full]:"full",[mm.Segments.overflow]:"full"},$m={[mm.Segments.ok]:gm,[mm.Segments.soonFull]:vm,[mm.Segments.almostFull]:ym,[mm.Segments.full]:bm,[mm.Segments.overflow]:xm};function km(e){let t,r,n,o,i,a,l,s,c,u,d,f,h,p,m,g,v,y,b,x,w;l=new um({props:{percent:e[3],view:e[2]}});let $=e[7]&&function(e){let t,r,n,o,i,a;return{c(){t=Ca("div"),r=Aa("Увеличить место"),ja(t,"class",n=ca("ph-union-quota__button ph-union-quota__button"+(e[0]?"_dark":""))+" svelte-r0tdqt")},m(n,l){wa(n,t,l),ya(t,r),i||(a=da(o=nf.call(null,t,e[8])),i=!0)},p(e,r){1&r&&n!==(n=ca("ph-union-quota__button ph-union-quota__button"+(e[0]?"_dark":""))+" svelte-r0tdqt")&&ja(t,"class",n)},d(e){e&&$a(t),i=!1,a()}}}(e);return{c(){t=Ca("div"),r=Ca("span"),n=Aa(e[1]),i=Sa(),a=Ca("div"),Sl(l.$$.fragment),s=Sa(),c=Ca("div"),u=Aa("Занято "),d=Aa(e[4]),f=Aa(" из "),h=Aa(e[5]),p=Aa(" ГБ"),g=Sa(),$&&$.c(),ja(r,"class",o=ca("ph-union-quota__title ph-union-quota__title"+(e[0]?"_dark":""))+" svelte-r0tdqt"),ja(a,"class","ph-union-quota__progress-bar svelte-r0tdqt"),ja(c,"class",m=ca(`ph-union-quota__used-info_${e[2]}`)+" svelte-r0tdqt"),ja(t,"class",v=ca("ph-union-quota ph-union-quota"+(e[0]?"_dark":`_${e[2]}`))+" svelte-r0tdqt")},m(o,m){wa(o,t,m),ya(t,r),ya(r,n),ya(t,i),ya(t,a),El(l,a,null),ya(t,s),ya(t,c),ya(c,u),ya(c,d),ya(c,f),ya(c,h),ya(c,p),ya(t,g),$&&$.m(t,null),b=!0,x||(w=da(y=nf.call(null,t,e[9])),x=!0)},p(e,n){(!b||1&n&&o!==(o=ca("ph-union-quota__title ph-union-quota__title"+(e[0]?"_dark":""))+" svelte-r0tdqt"))&&ja(r,"class",o),e[7]&&$.p(e,n),(!b||1&n&&v!==(v=ca("ph-union-quota ph-union-quota"+(e[0]?"_dark":`_${e[2]}`))+" svelte-r0tdqt"))&&ja(t,"class",v)},i(e){b||(gl(l.$$.fragment,e),b=!0)},o(e){vl(l.$$.fragment,e),b=!1},d(e){e&&$a(t),Tl(l),$&&$.d(),x=!1,w()}}}function Cm(e){let t,r,n=e[6]&&km(e);return{c(){n&&n.c(),t=Ea()},m(e,o){n&&n.m(e,o),wa(e,t,o),r=!0},p(e,t){let[r]=t;e[6]&&n.p(e,r)},i(e){r||(gl(n),r=!0)},o(e){vl(n),r=!1},d(e){n&&n.d(e),e&&$a(t)}}}function Fm(e,t,r){let n,o,i,a;var l,s,c,u;ta(e,$c,(e=>r(14,n=e))),ta(e,zc,(e=>r(15,o=e))),ta(e,Gc,(e=>r(16,i=e))),ta(e,eu,(e=>r(0,a=e)));const d=(null===(s=null===(l=i)||void 0===l?void 0:l.experiments)||void 0===s?void 0:s.unionQuotaLandingUrl)||`https://cloud.${os}/promo/quota/`,f=null===(u=null===(c=i)||void 0===c?void 0:c.experiments)||void 0===u?void 0:u.switchUnionQuotaBlockRadars,{mail:h,cloud:p}=o,{usedTotal:m,quota:g}=((e,t)=>{if("number"!=typeof(null==e?void 0:e.used_cnt)||"number"!=typeof(null==t?void 0:t.total_cnt)||"number"!=typeof(null==t?void 0:t.used_cnt))return us("quota_fields_err",new Error(`${JSON.stringify(e)},${JSON.stringify(t)}`)),{};const{used_cnt:r}=e,{used_cnt:n,total_cnt:o}=t;return{usedTotal:r+n,quota:o}})(h,p),v=((e,t)=>{if("number"!=typeof e||"number"!=typeof t)return{};const{total:r}=mm.getUsableSpaceRatio({quota:t,used:{total:e}}),n=mm.getSegmentByQuota(t,e);return{view:wm[n],title:$m[n],percent:r,segment:n,used:mm.makeGbSize(e),total:mm.makeGbSize(t)}})(m,g),{title:y,view:b,percent:x,segment:w,used:$,total:k}=v,C="number"==typeof m&&"number"==typeof g&&v&&0!==Object.keys(v).length&&n,F=w!==mm.Segments.ok,A=((e,t,r)=>(n,o)=>{ss("union_quota",Object.assign(Object.assign({i:n},e&&{dwh:Object.assign({size_quota:t,free_quota:r-t,source:"desktop"},o&&{name_button:o})}),{skipdwh:!e}))})(!!f,m,g);Xa((()=>{const e=C?fm.Show:fm.ShowError;A(e)}));return[a,y,b,x,$,k,C,F,e=>{e.stopPropagation(),A(fm.Click,dm.AddQuota),window.open(`${d}#price`)},()=>{A(fm.Click,dm.BlockQuota),window.open(d)}]}class Am extends jl{constructor(e){super(),Bl(this,e,Fm,Cm,Yi,{})}}var Sm={children:'<path fill-rule="evenodd" d="m7.627 13.203 4.237-4.237 2.17 2.17-3.152 3.152-1.085 1.085c-.001.001-.243.225-.712.314l-1.621.306a.438.438 0 0 1-.36-.097.438.438 0 0 1-.097-.36l.306-1.621c.089-.468.312-.71.314-.712zM5.557 14H2.013a1 1 0 0 1-1-1v-.3c0-2.48 2.01-4.494 4.488-4.5v-.796a3 3 0 0 1-1.488-2.591V3a3.001 3.001 0 0 1 6 0v1.813a3 3 0 0 1-1.488 2.591V8.2a4.52 4.52 0 0 1 1.199.165 2477.73 2477.73 0 0 0-3.326 3.329c-.004.004-.509.552-.71 1.611L5.557 14zm8.994-6.812a.643.643 0 0 0-.909 0l-.856.856 2.17 2.17.856-.856a.643.643 0 0 0 0-.909l-1.261-1.261z"/>',height:16,toString:function(){return'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"><path fill-rule="evenodd" d="m7.627 13.203 4.237-4.237 2.17 2.17-3.152 3.152-1.085 1.085c-.001.001-.243.225-.712.314l-1.621.306a.438.438 0 0 1-.36-.097.438.438 0 0 1-.097-.36l.306-1.621c.089-.468.312-.71.314-.712zM5.557 14H2.013a1 1 0 0 1-1-1v-.3c0-2.48 2.01-4.494 4.488-4.5v-.796a3 3 0 0 1-1.488-2.591V3a3.001 3.001 0 0 1 6 0v1.813a3 3 0 0 1-1.488 2.591V8.2a4.52 4.52 0 0 1 1.199.165 2477.73 2477.73 0 0 0-3.326 3.329c-.004.004-.509.552-.71 1.611L5.557 14zm8.994-6.812a.643.643 0 0 0-.909 0l-.856.856 2.17 2.17.856-.856a.643.643 0 0 0 0-.909l-1.261-1.261z"/></svg>'},viewBox:"0 0 16 16",width:16},Em={children:'<path fill-rule="evenodd" d="M3 6.004V5c0-2.208 2.016-4 4.5-4S12 2.792 12 5v1.004c.56.046 1 .475 1 .996v7c0 .552-.493 1-1.1 1H3.1c-.607 0-1.1-.448-1.1-1V7c0-.521.44-.95 1-.996zM8.6 10c0-.552-.493-1-1.1-1-.607 0-1.1.448-1.1 1v1c0 .552.493 1 1.1 1 .607 0 1.1-.448 1.1-1v-1zM10 6V5c0-1.104-1.258-2-2.5-2S5 3.896 5 5v1h5z"/>',height:16,toString:function(){return'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"><path fill-rule="evenodd" d="M3 6.004V5c0-2.208 2.016-4 4.5-4S12 2.792 12 5v1.004c.56.046 1 .475 1 .996v7c0 .552-.493 1-1.1 1H3.1c-.607 0-1.1-.448-1.1-1V7c0-.521.44-.95 1-.996zM8.6 10c0-.552-.493-1-1.1-1-.607 0-1.1.448-1.1 1v1c0 .552.493 1 1.1 1 .607 0 1.1-.448 1.1-1v-1zM10 6V5c0-1.104-1.258-2-2.5-2S5 3.896 5 5v1h5z"/></svg>'},viewBox:"0 0 16 16",width:16},Tm='<path fill-rule="evenodd" d="M13.25 15H2.75C1.784 15 1 14.232 1 13.286V4.714C1 3.768 1.784 3 2.75 3H4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2h1.25c.966 0 1.75.768 1.75 1.714v8.572c0 .946-.784 1.714-1.75 1.714zM8 5c2.208 0 4 1.792 4 4s-1.792 4-4 4-4-1.792-4-4 1.792-4 4-4zm0 2a2 2 0 1 1-.001 4.001A2 2 0 0 1 8 7z"/>',_m={children:'<path fill-rule="evenodd" d="M10.731 1.955c.181.3.506.484.857.484h2.19c.357 0 .687.191.866.5l1.061 1.839a.998.998 0 0 1-.009 1.015l-1.017 1.691a1.001 1.001 0 0 0 0 1.032l1.017 1.691c.188.311.191.7.009 1.015l-1.061 1.839c-.179.309-.509.5-.866.5h-2.19c-.351 0-.676.184-.857.484l-.851 1.414a1 1 0 0 1-.857.485H6.977a1 1 0 0 1-.857-.485l-.851-1.414a1.001 1.001 0 0 0-.857-.484h-2.19c-.357 0-.687-.191-.866-.5L.295 11.222a.998.998 0 0 1 .009-1.015l1.017-1.691a1.001 1.001 0 0 0 0-1.032L.304 5.793a.998.998 0 0 1-.009-1.015l1.061-1.839c.179-.309.509-.5.866-.5h2.19c.351 0 .676-.184.857-.484L6.12.541a1 1 0 0 1 .857-.485h2.046a1 1 0 0 1 .857.485l.851 1.414zM8 5a3.001 3.001 0 0 1 0 6 3.001 3.001 0 0 1 0-6z"/>',height:16,toString:function(){return'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"><path fill-rule="evenodd" d="M10.731 1.955c.181.3.506.484.857.484h2.19c.357 0 .687.191.866.5l1.061 1.839a.998.998 0 0 1-.009 1.015l-1.017 1.691a1.001 1.001 0 0 0 0 1.032l1.017 1.691c.188.311.191.7.009 1.015l-1.061 1.839c-.179.309-.509.5-.866.5h-2.19c-.351 0-.676.184-.857.484l-.851 1.414a1 1 0 0 1-.857.485H6.977a1 1 0 0 1-.857-.485l-.851-1.414a1.001 1.001 0 0 0-.857-.484h-2.19c-.357 0-.687-.191-.866-.5L.295 11.222a.998.998 0 0 1 .009-1.015l1.017-1.691a1.001 1.001 0 0 0 0-1.032L.304 5.793a.998.998 0 0 1-.009-1.015l1.061-1.839c.179-.309.509-.5.866-.5h2.19c.351 0 .676-.184.857-.484L6.12.541a1 1 0 0 1 .857-.485h2.046a1 1 0 0 1 .857.485l.851 1.414zM8 5a3.001 3.001 0 0 1 0 6 3.001 3.001 0 0 1 0-6z"/></svg>'},viewBox:"0 0 16 16",width:16};function Bm(e,t,r){const n=e.slice();return n[25]=t[r],n}function jm(e){let t,r,n,o;const i=[e[10].find(e[20]),{logoutHref:e[9]}];let a={};for(let e=0;e<i.length;e+=1)a=Ui(a,i[e]);return t=new rm({props:a}),n=new Wp({props:{overActiveUser:!0}}),{c(){Sl(t.$$.fragment),r=Sa(),Sl(n.$$.fragment)},m(e,i){El(t,e,i),wa(e,r,i),El(n,e,i),o=!0},p(e,r){const n=1544&r?Fl(i,[1032&r&&Al(e[10].find(e[20])),512&r&&{logoutHref:e[9]}]):{};t.$set(n)},i(e){o||(gl(t.$$.fragment,e),gl(n.$$.fragment,e),o=!0)},o(e){vl(t.$$.fragment,e),vl(n.$$.fragment,e),o=!1},d(e){Tl(t,e),e&&$a(r),Tl(n,e)}}}function Pm(e){let t,r,n,o,i,a,l,s,c,u,d=Tm+"";return r=new Ip({props:{email:e[2],name:e[4]}}),{c(){t=Ca("a"),Sl(r.$$.fragment),n=Sa(),o=Ca("div"),i=Fa("svg"),ja(i,"width","16"),ja(i,"height","16"),ja(i,"aria-hidden","true"),ja(o,"class","ph-avatar-icon svelte-6ia8p0"),ja(t,"class","ph-avatar ph-avatar__hover-active svelte-6ia8p0"),ja(t,"href",e[13]),ja(t,"aria-label",a=e[11]["change-avatar"])},m(a,f){wa(a,t,f),El(r,t,null),ya(t,n),ya(t,o),ya(o,i),i.innerHTML=d,s=!0,c||(u=da(l=Pp.call(null,t,{text:e[11]["change-avatar"],style:"left: 0; bottom: -28px;"})),c=!0)},p(e,n){const o={};4&n&&(o.email=e[2]),16&n&&(o.name=e[4]),r.$set(o),(!s||2048&n&&a!==(a=e[11]["change-avatar"]))&&ja(t,"aria-label",a),l&&Xi(l.update)&&2048&n&&l.update.call(null,{text:e[11]["change-avatar"],style:"left: 0; bottom: -28px;"})},i(e){s||(gl(r.$$.fragment,e),s=!0)},o(e){vl(r.$$.fragment,e),s=!1},d(e){e&&$a(t),Tl(r),c=!1,u()}}}function zm(e){let t,r,n,o,i=Hc(e[5]);r=new Ip({props:{email:e[2],name:e[4]}});let a=i&&Dm(e);return{c(){t=Ca("div"),Sl(r.$$.fragment),n=Sa(),a&&a.c(),ja(t,"class","ph-avatar ph-avatar__social svelte-6ia8p0")},m(e,i){wa(e,t,i),El(r,t,null),ya(t,n),a&&a.m(t,null),o=!0},p(e,n){const o={};4&n&&(o.email=e[2]),16&n&&(o.name=e[4]),r.$set(o),32&n&&(i=Hc(e[5])),i?a?(a.p(e,n),32&n&&gl(a,1)):(a=Dm(e),a.c(),gl(a,1),a.m(t,null)):a&&(pl(),vl(a,1,1,(()=>{a=null})),ml())},i(e){o||(gl(r.$$.fragment,e),gl(a),o=!0)},o(e){vl(r.$$.fragment,e),vl(a),o=!1},d(e){e&&$a(t),Tl(r),a&&a.d()}}}function Dm(e){let t,r;return t=new mp({props:{social:e[5],isLabel:!0}}),{c(){Sl(t.$$.fragment)},m(e,n){El(t,e,n),r=!0},p(e,r){const n={};32&r&&(n.social=e[5]),t.$set(n)},i(e){r||(gl(t.$$.fragment,e),r=!0)},o(e){vl(t.$$.fragment,e),r=!1},d(e){Tl(t,e)}}}function Mm(e){let t,r;return{c(){t=Ca("div"),r=Aa(e[2]),ja(t,"class","ph-desc svelte-6ia8p0"),ja(t,"aria-label",e[2])},m(e,n){wa(e,t,n),ya(t,r)},p(e,n){4&n&&za(r,e[2]),4&n&&ja(t,"aria-label",e[2])},d(e){e&&$a(t)}}}function Lm(e){let t,r;return t=new Am({}),{c(){Sl(t.$$.fragment)},m(e,n){El(t,e,n),r=!0},i(e){r||(gl(t.$$.fragment,e),r=!0)},o(e){vl(t.$$.fragment,e),r=!1},d(e){Tl(t,e)}}}function Om(e){let t,r=e[14],n=[];for(let t=0;t<r.length;t+=1)n[t]=Hm(Bm(e,r,t));return{c(){for(let e=0;e<n.length;e+=1)n[e].c();t=Ea()},m(e,r){for(let t=0;t<n.length;t+=1)n[t].m(e,r);wa(e,t,r)},p(e,o){if(16384&o){let i;for(r=e[14],i=0;i<r.length;i+=1){const a=Bm(e,r,i);n[i]?n[i].p(a,o):(n[i]=Hm(a),n[i].c(),n[i].m(t.parentNode,t))}for(;i<n.length;i+=1)n[i].d(1);n.length=r.length}},d(e){ka(n,e),e&&$a(t)}}}function Hm(e){let t,r,n,o,i,a,l,s,c,u,d=e[25].icon+"",f=e[25].text+"";return{c(){t=Ca("a"),r=Ca("div"),n=Sa(),o=Ca("div"),i=Sa(),ja(r,"class","ph-icon svelte-6ia8p0"),ja(o,"class","ph-text svelte-6ia8p0"),ja(t,"href",a=e[25].link),ja(t,"class","ph-item ph-item__hover-active svelte-6ia8p0"),ja(t,"data-click-counter",l=e[25].counter)},m(e,a){wa(e,t,a),ya(t,r),r.innerHTML=d,ya(t,n),ya(t,o),o.innerHTML=f,ya(t,i),c||(u=da(s=Bf.call(null,t)),c=!0)},p:Ni,d(e){e&&$a(t),c=!1,u()}}}function Im(e){let t,r,n,o,i,a,l,s,c,u=e[11].exit+"";return{c(){var l;t=Ca("div"),r=Ca("div"),n=Sa(),o=Ca("div"),ja(r,"class","ph-icon svelte-6ia8p0"),ja(o,"class","ph-text svelte-6ia8p0"),ja(t,"class","ph-item ph-item__hover-active svelte-6ia8p0"),ja(t,"tabindex","0"),ja(t,"data-click-counter",i=null===(l=e[12])||void 0===l?void 0:l.counterLogout),ja(t,"data-testid",a=lp.AccountExit)},m(i,a){wa(i,t,a),ya(t,r),r.innerHTML=Gp,ya(t,n),ya(t,o),o.innerHTML=u,s||(c=[da(l=Bf.call(null,t)),Ta(t,"click",e[15])],s=!0)},p(e,t){2048&t&&u!==(u=e[11].exit+"")&&(o.innerHTML=u)},d(e){e&&$a(t),s=!1,Gi(c)}}}function Rm(e){let t,r,n,o=!e[7]&&Nm();return r=new lm({}),{c(){o&&o.c(),t=Sa(),Sl(r.$$.fragment)},m(e,i){o&&o.m(e,i),wa(e,t,i),El(r,e,i),n=!0},p(e,r){e[7]?o&&(pl(),vl(o,1,1,(()=>{o=null})),ml()):o?128&r&&gl(o,1):(o=Nm(),o.c(),gl(o,1),o.m(t.parentNode,t))},i(e){n||(gl(o),gl(r.$$.fragment,e),n=!0)},o(e){vl(o),vl(r.$$.fragment,e),n=!1},d(e){o&&o.d(e),e&&$a(t),Tl(r,e)}}}function Nm(e){let t,r;return t=new Wp({}),{c(){Sl(t.$$.fragment)},m(e,n){El(t,e,n),r=!0},i(e){r||(gl(t.$$.fragment,e),r=!0)},o(e){vl(t.$$.fragment,e),r=!1},d(e){Tl(t,e)}}}function Wm(e){let t,r,n,o,i,a,l,s,c,u,d,f,h,p,m,g,v=e[7]&&jm(e);const y=[zm,Pm],b=[];function x(e,t){return e[5]?0:1}n=x(e),o=b[n]=y[n](e);let w=e[1]&&Mm(e),$=e[8]&&Lm(),k=!e[5]&&Om(e),C=!e[7]&&Im(e),F=e[0]&&Rm(e);return{c(){v&&v.c(),t=Sa(),r=Ca("div"),o.c(),i=Sa(),a=Ca("div"),l=Ca("div"),s=Ca("div"),c=Aa(e[6]),u=Sa(),w&&w.c(),d=Sa(),$&&$.c(),f=Sa(),k&&k.c(),h=Sa(),C&&C.c(),p=Sa(),F&&F.c(),m=Ea(),ja(s,"class","ph-name svelte-6ia8p0"),ja(s,"aria-label",e[6]),ja(l,"class","ph-title svelte-6ia8p0"),ja(a,"class","ph-text svelte-6ia8p0"),ja(r,"class","ph-item ph-item__active-user svelte-6ia8p0")},m(e,o){v&&v.m(e,o),wa(e,t,o),wa(e,r,o),b[n].m(r,null),ya(r,i),ya(r,a),ya(a,l),ya(l,s),ya(s,c),ya(a,u),w&&w.m(a,null),wa(e,d,o),$&&$.m(e,o),wa(e,f,o),k&&k.m(e,o),wa(e,h,o),C&&C.m(e,o),wa(e,p,o),F&&F.m(e,o),wa(e,m,o),g=!0},p(e,l){let[u]=l;e[7]?v?(v.p(e,u),128&u&&gl(v,1)):(v=jm(e),v.c(),gl(v,1),v.m(t.parentNode,t)):v&&(pl(),vl(v,1,1,(()=>{v=null})),ml());let d=n;n=x(e),n===d?b[n].p(e,u):(pl(),vl(b[d],1,1,(()=>{b[d]=null})),ml(),o=b[n],o?o.p(e,u):(o=b[n]=y[n](e),o.c()),gl(o,1),o.m(r,i)),(!g||64&u)&&za(c,e[6]),(!g||64&u)&&ja(s,"aria-label",e[6]),e[1]?w?w.p(e,u):(w=Mm(e),w.c(),w.m(a,null)):w&&(w.d(1),w=null),e[8]?$?256&u&&gl($,1):($=Lm(),$.c(),gl($,1),$.m(f.parentNode,f)):$&&(pl(),vl($,1,1,(()=>{$=null})),ml()),e[5]?k&&(k.d(1),k=null):k?k.p(e,u):(k=Om(e),k.c(),k.m(h.parentNode,h)),e[7]?C&&(C.d(1),C=null):C?C.p(e,u):(C=Im(e),C.c(),C.m(p.parentNode,p)),e[0]?F?(F.p(e,u),1&u&&gl(F,1)):(F=Rm(e),F.c(),gl(F,1),F.m(m.parentNode,m)):F&&(pl(),vl(F,1,1,(()=>{F=null})),ml())},i(e){g||(gl(v),gl(o),gl($),gl(F),g=!0)},o(e){vl(v),vl(o),vl($),vl(F),g=!1},d(e){v&&v.d(e),e&&$a(t),e&&$a(r),b[n].d(),w&&w.d(),e&&$a(d),$&&$.d(e),e&&$a(f),k&&k.d(e),e&&$a(h),C&&C.d(e),e&&$a(p),F&&F.d(e),e&&$a(m)}}}function Um(e,t,r){let n,o,i,a,l,s,c,u,d,f,h,p;var m,g;ta(e,Cc,(e=>r(2,l=e))),ta(e,Lc,(e=>r(10,s=e))),ta(e,Gc,(e=>r(18,c=e))),ta(e,xc,(e=>r(11,u=e))),ta(e,bc,(e=>r(19,d=e))),ta(e,Ac,(e=>r(3,f=e))),ta(e,Fc,(e=>r(4,h=e))),ta(e,Mc,(e=>r(5,p=e)));let{parentHasChildren:v=!1}=t;const{counters:y,logoutUrl:b,logoutPage:x}=c,w=`https://id.${os}/profile?utm_campaign=mailid&utm_medium=ph&from=headline`,$=[{icon:Sm,text:u.settings,link:w,counter:null==y?void 0:y.counterPersonal}];let k,C;(function(){var e,t;return null===(t=null===(e=s.filter((e=>e.child)))||void 0===e?void 0:e.map((e=>e.user)))||void 0===t?void 0:t.includes(l)})()&&!o||$.push({icon:Em,text:u.security,link:c.securitySettingsLink||`https://id.${os}/security`,counter:null==y?void 0:y.counterPassAndSecurity}),c.isAccountSettings&&u["account-settings"]&&$.push({icon:_m,text:u["account-settings"],link:c.linkAccountSettings||"https://my.mail.ru/my/editprops?view=main",counter:null==y?void 0:y.counterAccountSettings});return e.$$set=e=>{"parentHasChildren"in e&&r(0,v=e.parentHasChildren)},e.$$.update=()=>{54&e.$$.dirty&&(p?(r(1,k=!1),r(6,C=h)):(r(1,k=!!h),r(6,C=k?h:l))),524288&e.$$.dirty&&(n=`${b||`${id}/cgi-bin/logout?next=1&lang=${d.lang}&page=`}${x||""}`),12&e.$$.dirty&&r(7,o=l!==f),524288&e.$$.dirty&&r(9,i=`${b||`${id}/cgi-bin/logout?next_lead=1&lang=${d.lang}&page=`}${x||""}`),458752&e.$$.dirty&&r(8,a=null===r(17,g=null===r(16,m=c)||void 0===m?void 0:m.experiments)||void 0===g?void 0:g.switchUnionQuotaBlock)},[v,k,l,f,h,p,C,o,a,i,s,u,y,w,$,function(){zp(l,(()=>{window.location.href=n}))},m,g,c,d,e=>e.user===f]}class Vm extends jl{constructor(e){super(),Bl(this,e,Um,Wm,Yi,{parentHasChildren:0})}}var qm={children:'<path fill-rule="evenodd" d="M8.4 3a.6.6 0 0 1 .6.6V7h3.4a.6.6 0 0 1 .6.6v.8a.6.6 0 0 1-.6.6H9v3.4a.6.6 0 0 1-.6.6h-.8a.6.6 0 0 1-.6-.6V9H3.6a.6.6 0 0 1-.6-.6v-.8a.6.6 0 0 1 .6-.6H7V3.6a.6.6 0 0 1 .6-.6h.8z"/>',height:16,toString:function(){return'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"><path fill-rule="evenodd" d="M8.4 3a.6.6 0 0 1 .6.6V7h3.4a.6.6 0 0 1 .6.6v.8a.6.6 0 0 1-.6.6H9v3.4a.6.6 0 0 1-.6.6h-.8a.6.6 0 0 1-.6-.6V9H3.6a.6.6 0 0 1-.6-.6v-.8a.6.6 0 0 1 .6-.6H7V3.6a.6.6 0 0 1 .6-.6h.8z"/></svg>'},viewBox:"0 0 16 16",width:16};function Gm(e){let t,r,n,o=e[1].add+"";return{c(){t=Ca("div"),r=Sa(),n=Ca("div"),ja(t,"class","ph-avatar-add svelte-16f7t5k"),ja(n,"class","ph-text svelte-16f7t5k")},m(e,i){wa(e,t,i),t.innerHTML=qm,wa(e,r,i),wa(e,n,i),n.innerHTML=o},p(e,t){2&t&&o!==(o=e[1].add+"")&&(n.innerHTML=o)},d(e){e&&$a(t),e&&$a(r),e&&$a(n)}}}function Xm(e){let t,r;return t=new qp({props:{onClick:e[2],counter:e[0],$$slots:{default:[Gm]},$$scope:{ctx:e}}}),{c(){Sl(t.$$.fragment)},m(e,n){El(t,e,n),r=!0},p(e,r){let[n]=r;const o={};1&n&&(o.counter=e[0]),34&n&&(o.$$scope={dirty:n,ctx:e}),t.$set(o)},i(e){r||(gl(t.$$.fragment,e),r=!0)},o(e){vl(t.$$.fragment,e),r=!1},d(e){Tl(t,e)}}}function Zm(e,t,r){let n,o,i;var a;return ta(e,Gc,(e=>r(4,o=e))),ta(e,xc,(e=>r(1,i=e))),e.$$.update=()=>{24&e.$$.dirty&&r(0,n=null===r(3,a=o.counters)||void 0===a?void 0:a.counterAddMailbox)},[n,i,function(){Wl(),su.set(!1)},a,o]}class Km extends jl{constructor(e){super(),Bl(this,e,Zm,Xm,Yi,{})}}function Jm(e,t,r){const n=e.slice();return n[10]=t[r],n}function Ym(e){let t,r;return t=new Vm({props:{parentHasChildren:!!e[0].length}}),{c(){Sl(t.$$.fragment)},m(e,n){El(t,e,n),r=!0},p(e,r){const n={};1&r&&(n.parentHasChildren=!!e[0].length),t.$set(n)},i(e){r||(gl(t.$$.fragment,e),r=!0)},o(e){vl(t.$$.fragment,e),r=!1},d(e){Tl(t,e)}}}function Qm(e,t){let r,n,o;const i=[t[10]];let a={};for(let e=0;e<i.length;e+=1)a=Ui(a,i[e]);return n=new rm({props:a}),{key:e,first:null,c(){r=Ea(),Sl(n.$$.fragment),this.first=r},m(e,t){wa(e,r,t),El(n,e,t),o=!0},p(e,r){t=e;const o=16&r?Fl(i,[Al(t[10])]):{};n.$set(o)},i(e){o||(gl(n.$$.fragment,e),o=!0)},o(e){vl(n.$$.fragment,e),o=!1},d(e){e&&$a(r),Tl(n,e)}}}function eg(e){let t,r;return t=new Km({}),{c(){Sl(t.$$.fragment)},m(e,n){El(t,e,n),r=!0},i(e){r||(gl(t.$$.fragment,e),r=!0)},o(e){vl(t.$$.fragment,e),r=!1},d(e){Tl(t,e)}}}function tg(e){let t,r,n,o,i,a,l,s,c=[],u=new Map,d=e[1]&&Ym(e),f=e[4];const h=e=>e[10].user;for(let t=0;t<f.length;t+=1){let r=Jm(e,f,t),n=h(r);u.set(n,c[t]=Qm(n,r))}let p=e[2]&&eg();return{c(){t=Ca("div"),d&&d.c(),r=Sa(),n=Ca("hr"),o=Sa();for(let e=0;e<c.length;e+=1)c[e].c();i=Sa(),p&&p.c(),ja(n,"class","ph-hr svelte-1labzyv"),ja(t,"class","ph-accounts svelte-1labzyv"),ja(t,"data-show-counter",e[3])},m(e,u){wa(e,t,u),d&&d.m(t,null),ya(t,r),ya(t,n),ya(t,o);for(let e=0;e<c.length;e+=1)c[e].m(t,null);ya(t,i),p&&p.m(t,null),a=!0,l||(s=da(ep.call(null,t)),l=!0)},p(e,n){let[o]=n;e[1]?d?(d.p(e,o),2&o&&gl(d,1)):(d=Ym(e),d.c(),gl(d,1),d.m(t,r)):d&&(pl(),vl(d,1,1,(()=>{d=null})),ml()),16&o&&(f=e[4],pl(),c=Cl(c,o,h,1,e,f,u,t,kl,Qm,i,Jm),ml()),e[2]?p?4&o&&gl(p,1):(p=eg(),p.c(),gl(p,1),p.m(t,null)):p&&(pl(),vl(p,1,1,(()=>{p=null})),ml()),(!a||8&o)&&ja(t,"data-show-counter",e[3])},i(e){if(!a){gl(d);for(let e=0;e<f.length;e+=1)gl(c[e]);gl(p),a=!0}},o(e){vl(d);for(let e=0;e<c.length;e+=1)vl(c[e]);vl(p),a=!1},d(e){e&&$a(t),d&&d.d();for(let e=0;e<c.length;e+=1)c[e].d();p&&p.d(),l=!1,s()}}}function rg(e,t,r){let n,o,i,a,l,s,c,u;var d,f;return ta(e,Gc,(e=>r(7,l=e))),ta(e,Lc,(e=>r(8,s=e))),ta(e,Ac,(e=>r(9,c=e))),ta(e,Cc,(e=>r(1,u=e))),e.$$.update=()=>{800&e.$$.dirty&&r(0,n=Object.keys((null===r(5,d=s.find((e=>e.user===c)))||void 0===d?void 0:d.children)||{})),771&e.$$.dirty&&r(4,o=s.filter((e=>![u,c,...n].includes(e.user)))),192&e.$$.dirty&&r(3,i=null===r(6,f=l.counters)||void 0===f?void 0:f.counterAuthMenuOpen),384&e.$$.dirty&&r(2,a=l.authGate&&s.length<+l.maxAccounts)},[n,u,a,i,o,d,f,l,s,c]}class ng extends jl{constructor(e){super(),Bl(this,e,rg,tg,Yi,{})}}var og='<path fill-rule="evenodd" d="M10 13.5a1.5 1.5 0 1 0-3.001.001A1.5 1.5 0 0 0 10 13.5zm0-11a1.5 1.5 0 0 0-3 0v6a1.5 1.5 0 0 0 3 0v-6z"/>',ig="0 0 16 16";function ag(e){let t,r,n,o,i,a,l,s,c,u,d,f,h,p,m,g=og+"",v=e[0].header+"",y=e[0].subheader+"",b=e[0].item1+"",x=e[0].item2+"";return{c(){t=Ca("div"),r=Ca("div"),n=Fa("svg"),o=Sa(),i=Ca("div"),a=Ca("h3"),l=Sa(),s=Ca("span"),c=new Oa,u=Aa(":"),d=Sa(),f=Ca("ul"),h=Ca("li"),p=Sa(),m=Ca("li"),ja(n,"class","ph-error__icon-svg svelte-1hzrpwo"),ja(n,"width","16"),ja(n,"height","16"),ja(n,"aria-hidden","true"),ja(n,"tabindex","-1"),ja(n,"viewBox",ig),ja(r,"class","ph-error__icon svelte-1hzrpwo"),ja(a,"class","ph-error__list-title svelte-1hzrpwo"),c.a=u,ja(s,"class","ph-error__list-header svelte-1hzrpwo"),ja(h,"class","ph-error__list-item svelte-1hzrpwo"),ja(m,"class","ph-error__list-item svelte-1hzrpwo"),ja(f,"class","ph-error__list svelte-1hzrpwo"),ja(t,"class","ph-error svelte-1hzrpwo")},m(e,w){wa(e,t,w),ya(t,r),ya(r,n),n.innerHTML=g,ya(t,o),ya(t,i),ya(i,a),a.innerHTML=v,ya(i,l),ya(i,s),c.m(y,s),ya(s,u),ya(i,d),ya(i,f),ya(f,h),h.innerHTML=b,ya(f,p),ya(f,m),m.innerHTML=x},p(e,t){let[r]=t;1&r&&v!==(v=e[0].header+"")&&(a.innerHTML=v),1&r&&y!==(y=e[0].subheader+"")&&c.p(y),1&r&&b!==(b=e[0].item1+"")&&(h.innerHTML=b),1&r&&x!==(x=e[0].item2+"")&&(m.innerHTML=x)},i:Ni,o:Ni,d(e){e&&$a(t)}}}function lg(e,t,r){let n;return ta(e,wc,(e=>r(0,n=e))),[n]}class sg extends jl{constructor(e){super(),Bl(this,e,lg,ag,Yi,{})}}function cg(e){let t,r;const n=[e[3]];let o={$$slots:{default:[pg]},$$scope:{ctx:e}};for(let e=0;e<n.length;e+=1)o=Ui(o,n[e]);return t=new ap({props:o}),{c(){Sl(t.$$.fragment)},m(e,n){El(t,e,n),r=!0},p(e,r){const o=8&r?Fl(n,[Al(e[3])]):{};18&r&&(o.$$scope={dirty:r,ctx:e}),t.$set(o)},i(e){r||(gl(t.$$.fragment,e),r=!0)},o(e){vl(t.$$.fragment,e),r=!1},d(e){Tl(t,e)}}}function ug(e){let t,r;return t=new sg({}),{c(){Sl(t.$$.fragment)},m(e,n){El(t,e,n),r=!0},i(e){r||(gl(t.$$.fragment,e),r=!0)},o(e){vl(t.$$.fragment,e),r=!1},d(e){Tl(t,e)}}}function dg(e){let t,r;return t=new ac({props:{radarName:"errors_account_menu",$$slots:{default:[hg]},$$scope:{ctx:e}}}),{c(){Sl(t.$$.fragment)},m(e,n){El(t,e,n),r=!0},i(e){r||(gl(t.$$.fragment,e),r=!0)},o(e){vl(t.$$.fragment,e),r=!1},d(e){Tl(t,e)}}}function fg(e){let t,r;return t=new xp({}),{c(){Sl(t.$$.fragment)},m(e,n){El(t,e,n),r=!0},i(e){r||(gl(t.$$.fragment,e),r=!0)},o(e){vl(t.$$.fragment,e),r=!1},d(e){Tl(t,e)}}}function hg(e){let t,r;return t=new ng({}),{c(){Sl(t.$$.fragment)},m(e,n){El(t,e,n),r=!0},i(e){r||(gl(t.$$.fragment,e),r=!0)},o(e){vl(t.$$.fragment,e),r=!1},d(e){Tl(t,e)}}}function pg(e){let t,r,n,o;const i=[fg,dg,ug],a=[];function l(e,t){return e[1]?e[1]!==Sp.ERROR?1:2:0}return t=l(e),r=a[t]=i[t](e),{c(){r.c(),n=Ea()},m(e,r){a[t].m(e,r),wa(e,n,r),o=!0},p(e,o){let s=t;t=l(e),t!==s&&(pl(),vl(a[s],1,1,(()=>{a[s]=null})),ml(),r=a[t],r||(r=a[t]=i[t](e),r.c()),gl(r,1),r.m(n.parentNode,n))},i(e){o||(gl(r),o=!0)},o(e){vl(r),o=!1},d(e){a[t].d(e),e&&$a(n)}}}function mg(e){let t,r,n=e[0]&&e[2]&&cg(e);return{c(){n&&n.c(),t=Ea()},m(e,o){n&&n.m(e,o),wa(e,t,o),r=!0},p(e,r){let[o]=r;e[0]&&e[2]?n?(n.p(e,o),5&o&&gl(n,1)):(n=cg(e),n.c(),gl(n,1),n.m(t.parentNode,t)):n&&(pl(),vl(n,1,1,(()=>{n=null})),ml())},i(e){r||(gl(n),r=!0)},o(e){vl(n),r=!1},d(e){n&&n.d(e),e&&$a(t)}}}function gg(e,t,r){const n=[];let o,i,a,l=sa(t,n);return ta(e,su,(e=>r(0,o=e))),ta(e,Cc,(e=>r(2,i=e))),e.$$set=e=>{t=Ui(Ui({},t),la(e)),r(3,l=sa(t,n))},e.$$.update=()=>{1&e.$$.dirty&&(o?(r(1,a=null),Rl((e=>{r(1,a=e.status)})).catch((()=>{r(1,a=Sp.ERROR)}))):r(1,a=Sp.OK))},[o,a,i,l]}class vg extends jl{constructor(e){super(),Bl(this,e,gg,mg,Yi,{})}}var yg={children:'<path fill-rule="evenodd" d="M5.171 7.226A.75.75 0 0 1 5.75 6h4.5a.75.75 0 0 1 .579 1.226l-2.223 2.966a.75.75 0 0 1-1.212 0L5.171 7.226z"/>',height:16,toString:function(){return'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"><path fill-rule="evenodd" d="M5.171 7.226A.75.75 0 0 1 5.75 6h4.5a.75.75 0 0 1 .579 1.226l-2.223 2.966a.75.75 0 0 1-1.212 0L5.171 7.226z"/></svg>'},viewBox:"0 0 16 16",width:16};function bg(e){let t;return{c(){t=Ca("span"),ja(t,"class","ph-dropdown-icon svelte-14x1gy5"),Ma(t,"ph-dropdown-icon__rotated-left",e[0]),Ma(t,"ph-dropdown-icon__rotated-right",e[1])},m(e,r){wa(e,t,r),t.innerHTML=yg},p(e,r){let[n]=r;1&n&&Ma(t,"ph-dropdown-icon__rotated-left",e[0]),2&n&&Ma(t,"ph-dropdown-icon__rotated-right",e[1])},i:Ni,o:Ni,d(e){e&&$a(t)}}}function xg(e,t,r){let{isRotatedLeft:n=!1}=t,{isRotatedRight:o=!1}=t;return e.$$set=e=>{"isRotatedLeft"in e&&r(0,n=e.isRotatedLeft),"isRotatedRight"in e&&r(1,o=e.isRotatedRight)},[n,o]}class wg extends jl{constructor(e){super(),Bl(this,e,xg,bg,Yi,{isRotatedLeft:0,isRotatedRight:1})}}const $g=e=>(ep(e),Bf(e));function kg(e){let t,r,n,o,i,a,l,s,c,u,d,f,h,p,m,g,v,y=xh+"";return{c(){t=Ca("div"),r=Ca("div"),n=Aa(e[3]),o=Sa(),i=Ca("div"),a=Sa(),l=Ca("div"),s=Fa("svg"),u=Sa(),d=Ca("div"),ja(r,"class","ph-promo-title svelte-tjp5et"),ja(i,"class","ph-promo-description svelte-tjp5et"),ja(s,"class","ph-promo-close-icon__svg svelte-tjp5et"),ja(s,"height","16"),ja(s,"width","16"),ja(s,"aria-hidden","true"),ja(s,"viewBox",c=wh),ja(l,"class","ph-promo-close-icon svelte-tjp5et"),ja(d,"class","ph-promo-pointer svelte-tjp5et"),Ma(d,"ph-promo-pointer_right","overlap"==e[6]),ja(t,"class","ph-promo-marusia svelte-tjp5et"),ja(t,"data-click-counter",f=wu.marusiaMain),ja(t,"data-show-counter",h=wu.marusiaMain),ja(t,"data-show-pixel",e[0]),ja(t,"data-click-pixel",e[1]),Da(t,"left",e[10]+"px"),Ma(t,"ph-promo-marusia_hide",e[7]||e[12])},m(c,f){wa(c,t,f),ya(t,r),ya(r,n),ya(t,o),ya(t,i),i.innerHTML=e[2],ya(t,a),ya(t,l),ya(l,s),s.innerHTML=y,ya(t,u),ya(t,d),e[18](t),g||(v=[Ta(l,"click",Ba(_a(e[14]))),Ta(l,"mousedown",Ba(e[16])),Ta(t,"click",e[15]),da(p=$g.call(null,t))],g=!0)},p(e,r){8&r&&za(n,e[3]),4&r&&(i.innerHTML=e[2]),64&r&&Ma(d,"ph-promo-pointer_right","overlap"==e[6]),1&r&&ja(t,"data-show-pixel",e[0]),2&r&&ja(t,"data-click-pixel",e[1]),1024&r&&Da(t,"left",e[10]+"px"),4224&r&&Ma(t,"ph-promo-marusia_hide",e[7]||e[12])},i(e){m||ol((()=>{m=bl(t,bh,{y:20,delay:200,duration:800}),m.start()}))},o:Ni,d(r){r&&$a(t),e[18](null),g=!1,Gi(v)}}}function Cg(e){let t,r,n;ol(e[17]);let o=e[4]&&!e[8]&&!e[5]&&kg(e);return{c(){o&&o.c(),t=Ea()},m(i,a){o&&o.m(i,a),wa(i,t,a),r||(n=[Ta(window,"resize",e[13]),Ta(window,"resize",e[17])],r=!0)},p(e,r){let[n]=r;!e[4]||e[8]||e[5]?o&&(o.d(1),o=null):o?(o.p(e,n),304&n&&gl(o,1)):(o=kg(e),o.c(),gl(o,1),o.m(t.parentNode,t))},i(e){gl(o)},o:Ni,d(e){o&&o.d(e),e&&$a(t),r=!1,Gi(n)}}}function Fg(e){const{width:t,left:r}=e.getBoundingClientRect();return{width:t,left:r}}function Ag(e,t,r){let n,o;ta(e,cu,(e=>r(7,n=e))),ta(e,su,(e=>r(12,o=e)));let{showPixel:i}=t,{clickPixel:a}=t,{text:l}=t,{title:s}=t,{marusiaNode:c}=t;const u=of(v,100);let d,f=!1,h=!1,p=0,m=0,g="normal";function v(){const{left:e}=Fg(c);r(6,g=e+130>p?"overlap":"normal")}return e.$$set=e=>{"showPixel"in e&&r(0,i=e.showPixel),"clickPixel"in e&&r(1,a=e.clickPixel),"text"in e&&r(2,l=e.text),"title"in e&&r(3,s=e.title),"marusiaNode"in e&&r(4,c=e.marusiaNode)},e.$$.update=()=>{160&e.$$.dirty&&n&&!h&&r(5,h=!0),80&e.$$.dirty&&(c&&v(),r(10,m=c?function(e){const{width:t}=Fg(c);let r=130-t/2;return"overlap"===e&&(r+=65),-r}(g):0))},[i,a,l,s,c,h,g,n,f,p,m,d,o,u,function(){r(8,f=!0),gc.count(`${cc.click}${wu.marusiaClose}`)},function(){setTimeout((()=>{ua(cu,n=!0,n)}),0),r(8,f=!0)},function(t){Ja.call(this,e,t)},function(){r(9,p=window.innerWidth)},function(e){Qa[e?"unshift":"push"]((()=>{d=e,r(11,d)}))}]}class Sg extends jl{constructor(e){super(),Bl(this,e,Ag,Cg,Yi,{showPixel:0,clickPixel:1,text:2,title:3,marusiaNode:4})}}const{window:Eg}=$l;function Tg(e){let t,r,n,o,i,a,l,s,c,u,d,f=e[8]&&_g(e);return{c(){t=Ca("div"),r=Ca("span"),l=Sa(),f&&f.c(),s=Ea(),ja(r,"class","ph-marusia svelte-1hiqrvn"),ja(t,"class","ph-project ph-project-marusia svelte-1hiqrvn"),ja(t,"tabindex","0"),ja(t,"aria-label",n=null),ja(t,"data-show-counter",o=xu.main),Ma(t,"ph-project_open",e[3]),Ma(t,"ph-project-any",!e[9])},m(n,o){wa(n,t,o),ya(t,r),e[35](t),wa(n,l,o),f&&f.m(n,o),wa(n,s,o),c=!0,u||(d=[da(i=nf.call(null,t,e[26])),da(a=ep.call(null,t))],u=!0)},p(e,r){(!c||524288&r[0]&&n!==(n=null))&&ja(t,"aria-label",n),8&r[0]&&Ma(t,"ph-project_open",e[3]),512&r[0]&&Ma(t,"ph-project-any",!e[9]),e[8]?f?(f.p(e,r),256&r[0]&&gl(f,1)):(f=_g(e),f.c(),gl(f,1),f.m(s.parentNode,s)):f&&(pl(),vl(f,1,1,(()=>{f=null})),ml())},i(e){c||(gl(f),c=!0)},o(e){vl(f),c=!1},d(r){r&&$a(t),e[35](null),r&&$a(l),f&&f.d(r),r&&$a(s),u=!1,Gi(d)}}}function _g(e){let t,r;const n=[e[17],{marusiaNode:e[1]}];let o={};for(let e=0;e<n.length;e+=1)o=Ui(o,n[e]);return t=new Sg({props:o}),{c(){Sl(t.$$.fragment)},m(e,n){El(t,e,n),r=!0},p(e,r){const o=131074&r[0]?Fl(n,[131072&r[0]&&Al(e[17]),2&r[0]&&{marusiaNode:e[1]}]):{};t.$set(o)},i(e){r||(gl(t.$$.fragment,e),r=!0)},o(e){vl(t.$$.fragment,e),r=!1},d(e){Tl(t,e)}}}function Bg(e){let t,r,n,o,i,a=e[21]["sign-up"]+"",l=e[10]&&Pg(e);return{c(){var o;t=Ca("a"),r=Sa(),l&&l.c(),n=Ea(),ja(t,"class","ph-project ph-project__register svelte-1hiqrvn"),ja(t,"href",e[14]),ja(t,"rel","nofollow"),ja(t,"data-click-counter",null===(o=e[22])||void 0===o?void 0:o.counterRegistration),Ma(t,"ph-project_black",e[12])},m(e,s){wa(e,t,s),t.innerHTML=a,wa(e,r,s),l&&l.m(e,s),wa(e,n,s),o||(i=da(Bf.call(null,t)),o=!0)},p(e,r){2097152&r[0]&&a!==(a=e[21]["sign-up"]+"")&&(t.innerHTML=a),16384&r[0]&&ja(t,"href",e[14]),4096&r[0]&&Ma(t,"ph-project_black",e[12]),e[10]?l?l.p(e,r):(l=Pg(e),l.c(),l.m(n.parentNode,n)):l&&(l.d(1),l=null)},i:Ni,o:Ni,d(e){e&&$a(t),e&&$a(r),l&&l.d(e),e&&$a(n),o=!1,i()}}}function jg(e){let t,r,n,o,i,a,l,s,c,u,d,f;const h=[Dg,zg],p=[];function m(e,t){return 128&t[0]&&(n=null),null==n&&(n=!(!e[7]||"ph"===e[7]||!Hc(e[7]))),n?0:1}o=m(e,[-1,-1]),i=p[o]=h[o](e);let g=e[20]&&Mg(e),v=e[16]&&Lg(e);return c=new wg({props:{isRotatedRight:e[4]}}),{c(){t=Ca("div"),r=Ca("span"),i.c(),a=Sa(),g&&g.c(),l=Sa(),v&&v.c(),s=Sa(),Sl(c.$$.fragment),ja(r,"class","ph-project__user-icon svelte-1hiqrvn"),ja(t,"class","ph-project ph-project__account svelte-1hiqrvn"),ja(t,"tabindex","0"),ja(t,"aria-label",e[5]),ja(t,"data-testid",lp.Account),Ma(t,"ph-project_open",e[4]),Ma(t,"ph-project-any",!e[9])},m(n,i){wa(n,t,i),ya(t,r),p[o].m(r,null),ya(r,a),g&&g.m(r,null),ya(t,l),v&&v.m(t,null),ya(t,s),El(c,t,null),e[36](t),u=!0,d||(f=da(nf.call(null,t,e[25])),d=!0)},p(e,n){let l=o;o=m(e,n),o===l?p[o].p(e,n):(pl(),vl(p[l],1,1,(()=>{p[l]=null})),ml(),i=p[o],i?i.p(e,n):(i=p[o]=h[o](e),i.c()),gl(i,1),i.m(r,a)),e[20]?g?g.p(e,n):(g=Mg(e),g.c(),g.m(r,null)):g&&(g.d(1),g=null),e[16]?v?v.p(e,n):(v=Lg(e),v.c(),v.m(t,s)):v&&(v.d(1),v=null);const d={};16&n[0]&&(d.isRotatedRight=e[4]),c.$set(d),(!u||32&n[0])&&ja(t,"aria-label",e[5]),16&n[0]&&Ma(t,"ph-project_open",e[4]),512&n[0]&&Ma(t,"ph-project-any",!e[9])},i(e){u||(gl(i),gl(c.$$.fragment,e),u=!0)},o(e){vl(i),vl(c.$$.fragment,e),u=!1},d(r){r&&$a(t),p[o].d(),g&&g.d(),v&&v.d(),Tl(c),e[36](null),d=!1,f()}}}function Pg(e){let t,r,n,o,i,a=e[21]["sign-in"]+"";return{c(){var n;t=Ca("button"),ja(t,"class","ph-login svelte-1hiqrvn"),ja(t,"data-click-counter",r=null===(n=e[22])||void 0===n?void 0:n.counterLogin),Ma(t,"ph-project_black",e[12]),Ma(t,"ph-login_link",e[11])},m(r,l){wa(r,t,l),t.innerHTML=a,o||(i=[Ta(t,"click",e[24]),da(n=Bf.call(null,t))],o=!0)},p(e,r){2097152&r[0]&&a!==(a=e[21]["sign-in"]+"")&&(t.innerHTML=a),4096&r[0]&&Ma(t,"ph-project_black",e[12]),2048&r[0]&&Ma(t,"ph-login_link",e[11])},d(e){e&&$a(t),o=!1,Gi(i)}}}function zg(e){let t,r;return t=new Ip({props:{email:e[5],name:e[6],size:16}}),{c(){Sl(t.$$.fragment)},m(e,n){El(t,e,n),r=!0},p(e,r){const n={};32&r[0]&&(n.email=e[5]),64&r[0]&&(n.name=e[6]),t.$set(n)},i(e){r||(gl(t.$$.fragment,e),r=!0)},o(e){vl(t.$$.fragment,e),r=!1},d(e){Tl(t,e)}}}function Dg(e){let t,r;return t=new mp({props:{social:e[7]}}),{c(){Sl(t.$$.fragment)},m(e,n){El(t,e,n),r=!0},p(e,r){const n={};128&r[0]&&(n.social=e[7]),t.$set(n)},i(e){r||(gl(t.$$.fragment,e),r=!0)},o(e){vl(t.$$.fragment,e),r=!1},d(e){Tl(t,e)}}}function Mg(e){let t;return{c(){t=Ca("div"),ja(t,"class","ph-project__user-icon__notify svelte-1hiqrvn"),Ma(t,"ph-project__user-icon__notify_open",e[4])},m(e,r){wa(e,t,r)},p(e,r){16&r[0]&&Ma(t,"ph-project__user-icon__notify_open",e[4])},d(e){e&&$a(t)}}}function Lg(e){let t,r;return{c(){t=Ca("span"),r=Aa(e[15]),ja(t,"class","ph-project__user-name svelte-1hiqrvn")},m(e,n){wa(e,t,n),ya(t,r)},p(e,t){32768&t[0]&&za(r,e[15])},d(e){e&&$a(t)}}}function Og(e){let t,r,n,o,i,a,l,s,c,u,d,f=e[18]&&Tg(e);const h=[jg,Bg],p=[];function m(e,t){return e[5]?0:void 0!==e[5]?1:-1}return~(n=m(e))&&(o=p[n]=h[n](e)),a=new Ap({props:{offsetTop:e[0]}}),s=new vg({props:{offsetTop:e[0],hasOverflow:!0}}),{c(){t=Ca("div"),f&&f.c(),r=Sa(),o&&o.c(),i=Sa(),Sl(a.$$.fragment),l=Sa(),Sl(s.$$.fragment),ja(t,"class","ph-auth svelte-1hiqrvn"),ja(t,"style",e[13]),Ma(t,"ph-auth__fixed",!e[0]&&(e[4]||e[3]))},m(o,h){wa(o,t,h),f&&f.m(t,null),ya(t,r),~n&&p[n].m(t,null),wa(o,i,h),El(a,o,h),wa(o,l,h),El(s,o,h),c=!0,u||(d=Ta(Eg,"scroll",e[23]),u=!0)},p(e,i){e[18]?f?(f.p(e,i),262144&i[0]&&gl(f,1)):(f=Tg(e),f.c(),gl(f,1),f.m(t,r)):f&&(pl(),vl(f,1,1,(()=>{f=null})),ml());let l=n;n=m(e),n===l?~n&&p[n].p(e,i):(o&&(pl(),vl(p[l],1,1,(()=>{p[l]=null})),ml()),~n?(o=p[n],o?o.p(e,i):(o=p[n]=h[n](e),o.c()),gl(o,1),o.m(t,null)):o=null),(!c||8192&i[0])&&ja(t,"style",e[13]),25&i[0]&&Ma(t,"ph-auth__fixed",!e[0]&&(e[4]||e[3]));const u={};1&i[0]&&(u.offsetTop=e[0]),a.$set(u);const d={};1&i[0]&&(d.offsetTop=e[0]),s.$set(d)},i(e){c||(gl(f),gl(o),gl(a.$$.fragment,e),gl(s.$$.fragment,e),c=!0)},o(e){vl(f),vl(o),vl(a.$$.fragment,e),vl(s.$$.fragment,e),c=!1},d(e){e&&$a(t),f&&f.d(),~n&&p[n].d(),e&&$a(i),Tl(a,e),e&&$a(l),Tl(s,e),u=!1,d()}}}function Hg(e,t,r){let n,o,i,a,l,s,c,u,d,f,h,p,m,g,v,y,b,x,w,$,k,C,F,A;var S,E;ta(e,cu,(e=>r(3,f=e))),ta(e,su,(e=>r(4,h=e))),ta(e,du,(e=>r(38,p=e))),ta(e,Cc,(e=>r(5,m=e))),ta(e,Vc,(e=>r(30,g=e))),ta(e,eu,(e=>r(31,v=e))),ta(e,Gc,(e=>r(32,y=e))),ta(e,bc,(e=>r(33,b=e))),ta(e,Fc,(e=>r(6,x=e))),ta(e,Mc,(e=>r(7,w=e))),ta(e,Yd,(e=>r(34,$=e))),ta(e,ru,(e=>r(18,k=e))),ta(e,kc,(e=>r(19,C=e))),ta(e,Dc,(e=>r(20,F=e))),ta(e,xc,(e=>r(21,A=e)));let{rootNode:T}=t;const _=window.ResizeObserver||Gd,B=document.querySelector(".toolbar.i-block.i-relative.i-link-no-deco.i-font-md")||document.querySelector(".layout__promotoolbar"),j=document.querySelector("#ph-extension-block"),P=document.querySelector(".vk-slides-iframe"),z=new _(((e,t)=>window.requestAnimationFrame((()=>{let r;const n=e.find((e=>{switch(e.target){case B:return r=B,!0;case j:return r=j,!0;case P:return r=P,!0;default:return!1}}));if(r){const{height:e}=n.contentRect;R=W(),U(),0===e&&t.unobserve(r)}})))),{counters:D,experimentId:M}=y,L=""+(M?`_${M}`:"");let O,H,I,R=W(),N=R;function W(){return T.getBoundingClientRect().top+window.pageYOffset}function U(){r(0,N=Math.max(R-window.pageYOffset,0))}return Xa((()=>(U(),B&&z.observe(B),j&&z.observe(j),P&&z.observe(P),ss("extra_block_show"+L),void 0===m||m||ss("login_counter_show"+L),()=>{z.disconnect()}))),e.$$set=e=>{"rootNode"in e&&r(27,T=e.rootNode)},e.$$.update=()=>{if(1073741824&e.$$.dirty[0]&&r(17,n=g),8&e.$$.dirty[1]&&r(16,o=Qd($.x).includes("lg")),224&e.$$.dirty[0]&&r(15,i=w?x:m),6&e.$$.dirty[1]&&r(14,a=function(e){const t=Object.assign({from:"navi"},e);return Zc(`//account.${os}/signup`,t)}({lang:b.lang,siteid:y.siteId||"",back:y.registerBackUrl,app_id_mytracker:y.appIdMytracker})),25&e.$$.dirty[0]&&r(13,l=h||f?`max-width: ${op-24}px; top: ${N}px;`:""),10&e.$$.dirty[0]&&(f?gc.count(`${cc.click}${xu.main}`):null==O||O.blur()),20&e.$$.dirty[0]&&(h||null==H||H.blur()),268435456&e.$$.dirty[0]|2&e.$$.dirty[1]&&r(12,s=null===r(28,S=y.experiments)||void 0===S?void 0:S.isSignUpBlack),536870912&e.$$.dirty[0]|2&e.$$.dirty[1]&&r(11,c=null===r(29,E=y.experiments)||void 0===E?void 0:E.isSignUpLink),2&e.$$.dirty[1]&&r(10,u=y.authGate),24&e.$$.dirty[0]|1&e.$$.dirty[1]&&r(9,d=v&&(f||h)),1073741824&e.$$.dirty[0]&&"marusia"===(null==g?void 0:g.type)){const e=new js(hs,ps,g.displayLimitPeriodDays,g.displayLimitTimes);e.init((()=>r(8,I=!0))),e.count()}},[N,O,H,f,h,m,x,w,I,d,u,c,s,l,a,i,o,n,k,C,F,A,D,U,function(){ua(du,p=!0,p),Wl(),ss("login_counter_click"+L)},function(){ua(su,h=!h,h)},function(){ua(cu,f=!f,f)},T,S,E,g,v,y,b,$,function(e){Qa[e?"unshift":"push"]((()=>{O=e,r(1,O)}))},function(e){Qa[e?"unshift":"push"]((()=>{H=e,r(2,H)}))}]}class Ig extends jl{constructor(e){super(),Bl(this,e,Hg,Og,Yi,{rootNode:27},null,[-1,-1])}}const Rg=[[{name:"Русский",lang:"ru_RU"},{name:"Беларуская",lang:"be_BY"},{name:"Українська",lang:"uk_UA"},{name:"Қазақ тілі",lang:"kk_KZ"},{name:"O'zbek tili",lang:"uz_UZ"},{name:"Azərbaycan dili",lang:"az_AZ"},{name:"Türkçe",lang:"tr_TR"}],[{name:"English",lang:"en_US"},{name:"ქართული",lang:"ka_KA"},{name:"Татар теле",lang:"tt_TT"},{name:"Հայերեն",lang:"hy_AM"},{name:"Română (MD)",lang:"mo_MD"},{name:"Română (RO)",lang:"ro_RO"}]];var Ng='<path fill-rule="evenodd" d="M12.4 5.6c-.4-.4-1-.4-1.4 0l-4 4-2-2c-.4-.4-1-.4-1.4 0-.4.4-.4 1 0 1.4l2.7 2.7c.2.2.4.3.7.3.3 0 .5-.1.7-.3L12.4 7c.4-.4.4-1 0-1.4z"/>';function Wg(e){let t,r=Ng+"";return{c(){t=Fa("svg"),ja(t,"class","ph-lang-item__icon svelte-9zlqnu"),ja(t,"width","16"),ja(t,"height","16"),ja(t,"aria-hidden","true")},m(e,n){wa(e,t,n),t.innerHTML=r},p:Ni,d(e){e&&$a(t)}}}function Ug(e){let t,r,n,o,i,a,l=e[1]&&Wg();return{c(){t=Ca("div"),r=Ca("span"),n=Sa(),l&&l.c(),ja(r,"class","svelte-9zlqnu"),ja(t,"class","ph-lang-item svelte-9zlqnu"),ja(t,"tabindex",o=e[1]?-1:0),Ma(t,"ph-lang-item--active",e[1])},m(o,s){wa(o,t,s),ya(t,r),r.innerHTML=e[0],ya(t,n),l&&l.m(t,null),i||(a=Ta(t,"click",e[2]),i=!0)},p(e,n){let[i]=n;1&i&&(r.innerHTML=e[0]),e[1]?l?l.p(e,i):(l=Wg(),l.c(),l.m(t,null)):l&&(l.d(1),l=null),2&i&&o!==(o=e[1]?-1:0)&&ja(t,"tabindex",o),2&i&&Ma(t,"ph-lang-item--active",e[1])},i:Ni,o:Ni,d(e){e&&$a(t),l&&l.d(),i=!1,a()}}}function Vg(e,t,r){let{name:n}=t,{lang:o}=t,{isActive:i}=t;return e.$$set=e=>{"name"in e&&r(0,n=e.name),"lang"in e&&r(3,o=e.lang),"isActive"in e&&r(1,i=e.isActive)},[n,i,function(){i||(e=>{null==Ol||Ol.emit(zl.LangChange,null,e)})({lang:o})},o]}class qg extends jl{constructor(e){super(),Bl(this,e,Vg,Ug,Yi,{name:0,lang:3,isActive:1})}}function Gg(e,t,r){const n=e.slice();return n[1]=t[r],n}function Xg(e,t,r){const n=e.slice();return n[4]=t[r],n}function Zg(e){let t,r;return t=new qg({props:{name:e[4].name,lang:e[4].lang,isActive:e[0].lang===e[4].lang}}),{c(){Sl(t.$$.fragment)},m(e,n){El(t,e,n),r=!0},p(e,r){const n={};1&r&&(n.isActive=e[0].lang===e[4].lang),t.$set(n)},i(e){r||(gl(t.$$.fragment,e),r=!0)},o(e){vl(t.$$.fragment,e),r=!1},d(e){Tl(t,e)}}}function Kg(e){let t,r,n=e[1].length&&function(e){let t,r,n,o=e[1],i=[];for(let t=0;t<o.length;t+=1)i[t]=Zg(Xg(e,o,t));const a=e=>vl(i[e],1,1,(()=>{i[e]=null}));return{c(){t=Ca("div");for(let e=0;e<i.length;e+=1)i[e].c();r=Sa(),ja(t,"class","ph-lang-menu-column svelte-1jnupg5")},m(e,o){wa(e,t,o);for(let e=0;e<i.length;e+=1)i[e].m(t,null);ya(t,r),n=!0},p(e,n){if(1&n){let l;for(o=e[1],l=0;l<o.length;l+=1){const a=Xg(e,o,l);i[l]?(i[l].p(a,n),gl(i[l],1)):(i[l]=Zg(a),i[l].c(),gl(i[l],1),i[l].m(t,r))}for(pl(),l=o.length;l<i.length;l+=1)a(l);ml()}},i(e){if(!n){for(let e=0;e<o.length;e+=1)gl(i[e]);n=!0}},o(e){i=i.filter(Boolean);for(let e=0;e<i.length;e+=1)vl(i[e]);n=!1},d(e){e&&$a(t),ka(i,e)}}}(e);return{c(){n&&n.c(),t=Ea()},m(e,o){n&&n.m(e,o),wa(e,t,o),r=!0},p(e,t){e[1].length&&n.p(e,t)},i(e){r||(gl(n),r=!0)},o(e){vl(n),r=!1},d(e){n&&n.d(e),e&&$a(t)}}}function Jg(e){let t,r,n,o,i=Rg,a=[];for(let t=0;t<i.length;t+=1)a[t]=Kg(Gg(e,i,t));const l=e=>vl(a[e],1,1,(()=>{a[e]=null}));return{c(){t=Ca("div");for(let e=0;e<a.length;e+=1)a[e].c();ja(t,"class","ph-lang-menu svelte-1jnupg5")},m(e,r){wa(e,t,r);for(let e=0;e<a.length;e+=1)a[e].m(t,null);o=!0},p(r,n){let[o]=n;if(e=r,1&o){let r;for(i=Rg,r=0;r<i.length;r+=1){const n=Gg(e,i,r);a[r]?(a[r].p(n,o),gl(a[r],1)):(a[r]=Kg(n),a[r].c(),gl(a[r],1),a[r].m(t,null))}for(pl(),r=i.length;r<a.length;r+=1)l(r);ml()}},i(e){if(!o){for(let e=0;e<i.length;e+=1)gl(a[e]);ol((()=>{n&&n.end(1),r=bl(t,$f,Ff),r.start()})),o=!0}},o(e){a=a.filter(Boolean);for(let e=0;e<a.length;e+=1)vl(a[e]);r&&r.invalidate(),n=xl(t,$f,Af),o=!1},d(e){e&&$a(t),ka(a,e),e&&n&&n.end()}}}function Yg(e,t,r){let n;return ta(e,bc,(e=>r(0,n=e))),[n]}class Qg extends jl{constructor(e){super(),Bl(this,e,Yg,Jg,Yi,{})}}function ev(e){let t,r,n,o,i;return r=new Qg({}),{c(){t=Ca("div"),Sl(r.$$.fragment),ja(t,"class","ph-lang-modal svelte-1l22bne")},m(e,n){wa(e,t,n),El(r,t,null),i=!0},p(e,t){},i(e){i||(gl(r.$$.fragment,e),ol((()=>{o&&o.end(1),n=bl(t,wf,kf),n.start()})),i=!0)},o(e){vl(r.$$.fragment,e),n&&n.invalidate(),o=xl(t,wf,Cf),i=!1},d(e){e&&$a(t),Tl(r),e&&o&&o.end()}}}function tv(e){let t,r,n=e[0]&&ev();return{c(){n&&n.c(),t=Ea()},m(e,o){n&&n.m(e,o),wa(e,t,o),r=!0},p(e,r){let[o]=r;e[0]?n?(n.p(e,o),1&o&&gl(n,1)):(n=ev(),n.c(),gl(n,1),n.m(t.parentNode,t)):n&&(pl(),vl(n,1,1,(()=>{n=null})),ml())},i(e){r||(gl(n),r=!0)},o(e){vl(n),r=!1},d(e){n&&n.d(e),e&&$a(t)}}}function rv(e,t,r){let n;return ta(e,uu,(e=>r(0,n=e))),[n]}class nv extends jl{constructor(e){super(),Bl(this,e,rv,tv,Yi,{})}}var ov='<path fill-rule="evenodd" clip-rule="evenodd" d="M8 .01c4.41 0 7.99 3.58 7.99 7.99S12.41 15.99 8 15.99.01 12.41.01 8 3.59.01 8 .01Zm2.209 2.4a5.983 5.983 0 0 0-2.432-.416l-.337.022-.082.008c-.506.069-.898.462-.898.986a1 1 0 0 0 1 1h.55a1 1 0 0 1 1 1v.003c.003.058.062.997 1 .997h1a1 1 0 0 1 0 2H4.328a2 2 0 0 1-2-2A5.99 5.99 0 0 0 1.99 8c0 1.501.552 2.875 1.464 3.929.537-.224.555-.842.556-.913v-.006a1 1 0 0 1 1-1h3a1 1 0 0 1 0 2h-.389s-1.005.012-1.005 1c0 .681.698.926 1.104.993.087.004.174.006.261.007.008-.003.014-.004.019 0h.019a6.01 6.01 0 0 0 5.183-3h-.637a1 1 0 0 1 0-2h1.36a6.012 6.012 0 0 0-1.51-5.086.997.997 0 0 1-.405.086h-1a1 1 0 0 1-.801-1.6Z" fill="#333"/>';function iv(e){let t,r,n,o,i,a,l,s,c,u,d,f,h,p,m,g=ov+"",v=e[3].account.help+"";return l=new wg({props:{isRotatedRight:e[1]}}),f=new nv({}),{c(){t=Ca("div"),r=Ca("div"),n=Fa("svg"),o=Sa(),i=new Oa,a=Sa(),Sl(l.$$.fragment),s=Sa(),c=Ca("a"),d=Sa(),Sl(f.$$.fragment),ja(n,"class","ph-lang-select__icon svelte-mvi5hm"),ja(n,"width","16"),ja(n,"height","16"),ja(n,"aria-hidden","true"),i.a=a,ja(r,"class","ph-lang-select svelte-mvi5hm"),ja(r,"tabindex","0"),Ma(r,"ph-lang-select_open",e[1]),ja(c,"class","ph-help svelte-mvi5hm"),ja(c,"href",u=e[4].linkLangMenuHelpPage),ja(t,"class","ph-lang svelte-mvi5hm")},m(u,y){wa(u,t,y),ya(t,r),ya(r,n),n.innerHTML=g,ya(r,o),i.m(e[2],r),ya(r,a),El(l,r,null),e[6](r),ya(t,s),ya(t,c),c.innerHTML=v,wa(u,d,y),El(f,u,y),h=!0,p||(m=da(nf.call(null,r,e[5])),p=!0)},p(e,t){let[n]=t;(!h||4&n)&&i.p(e[2]);const o={};2&n&&(o.isRotatedRight=e[1]),l.$set(o),2&n&&Ma(r,"ph-lang-select_open",e[1]),(!h||8&n)&&v!==(v=e[3].account.help+"")&&(c.innerHTML=v),(!h||16&n&&u!==(u=e[4].linkLangMenuHelpPage))&&ja(c,"href",u)},i(e){h||(gl(l.$$.fragment,e),gl(f.$$.fragment,e),h=!0)},o(e){vl(l.$$.fragment,e),vl(f.$$.fragment,e),h=!1},d(r){r&&$a(t),Tl(l),e[6](null),r&&$a(d),Tl(f,r),p=!1,m()}}}function av(e,t,r){let n,o,i,a,l;return ta(e,uu,(e=>r(1,n=e))),ta(e,bc,(e=>r(3,o=e))),ta(e,Gc,(e=>r(4,i=e))),Rg.forEach((e=>e.forEach((e=>{e.lang===o.lang&&r(2,a=e.name)})))),e.$$.update=()=>{3&e.$$.dirty&&(n||null==l||l.blur())},[l,n,a,o,i,function(){ua(uu,n=!n,n)},function(e){Qa[e?"unshift":"push"]((()=>{l=e,r(0,l)}))}]}class lv extends jl{constructor(e){super(),Bl(this,e,av,iv,Yi,{})}}function sv(e){let t,r;return t=new Ig({props:{rootNode:e[3]}}),{c(){Sl(t.$$.fragment)},m(e,n){El(t,e,n),r=!0},p:Ni,i(e){r||(gl(t.$$.fragment,e),r=!0)},o(e){vl(t.$$.fragment,e),r=!1},d(e){Tl(t,e)}}}function cv(e){let t,r,n=e[2].enableLangMenu&&uv();return{c(){n&&n.c(),t=Ea()},m(e,o){n&&n.m(e,o),wa(e,t,o),r=!0},p(e,r){e[2].enableLangMenu?n?4&r[0]&&gl(n,1):(n=uv(),n.c(),gl(n,1),n.m(t.parentNode,t)):n&&(pl(),vl(n,1,1,(()=>{n=null})),ml())},i(e){r||(gl(n),r=!0)},o(e){vl(n),r=!1},d(e){n&&n.d(e),e&&$a(t)}}}function uv(e){let t,r;return t=new lv({}),{c(){Sl(t.$$.fragment)},m(e,n){El(t,e,n),r=!0},i(e){r||(gl(t.$$.fragment,e),r=!0)},o(e){vl(t.$$.fragment,e),r=!1},d(e){Tl(t,e)}}}function dv(e){let t,r,n,o,i,a,l;function s(t){e[9](t)}let c={};void 0!==e[0]&&(c.projectsNode=e[0]),r=new Qh({props:c}),Qa.push((()=>function(e,t,r){const n=e.$$.props[t];void 0!==n&&(e.$$.bound[n]=r,r(e.$$.ctx[n]))}(r,"projectsNode",s)));const u=[cv,sv],d=[];function f(e,t){return e[2].isHideRightPart?0:1}return i=f(e),a=d[i]=u[i](e),{c(){t=Ca("div"),Sl(r.$$.fragment),o=Sa(),a.c(),ja(t,"class","ph-container svelte-1hjgi11")},m(n,a){wa(n,t,a),El(r,t,null),ya(t,o),d[i].m(t,null),e[10](t),l=!0},p(e,o){const l={};var s;!n&&1&o[0]&&(n=!0,l.projectsNode=e[0],s=()=>n=!1,tl.push(s)),r.$set(l);let c=i;i=f(e),i===c?d[i].p(e,o):(pl(),vl(d[c],1,1,(()=>{d[c]=null})),ml(),a=d[i],a?a.p(e,o):(a=d[i]=u[i](e),a.c()),gl(a,1),a.m(t,null))},i(e){l||(gl(r.$$.fragment,e),gl(a),l=!0)},o(e){vl(r.$$.fragment,e),vl(a),l=!1},d(n){n&&$a(t),Tl(r),d[i].d(),e[10](null)}}}const fv=6e4;function hv(e,t,r){let n,o,i,a,l,s,c;ta(e,Gc,(e=>r(2,n=e))),ta(e,Cc,(e=>r(13,o=e))),ta(e,su,(e=>r(14,i=e))),ta(e,uu,(e=>r(15,a=e))),ta(e,cu,(e=>r(16,l=e))),ta(e,lu,(e=>r(17,s=e))),ta(e,Jc,(e=>r(18,c=e)));let{projectsKeys:u}=t,{localization:d}=t,{settings:f}=t,{data:h}=t,{extraTrkParams:p}=t;const m=3e5,g=document.querySelector("#ph-whiteline"),v=f.socialCountersTimer||m,y=f.cloudCounterTimer,b=!f.isLiteWhiteline,x=f.isTargetBlank?"_blank":null,w=f.visitCookieAliases,$={[Kc.Default]:gu,[Kc.Grey]:vu,[Kc.Dark]:yu},k=(e,t)=>{((e,t)=>{const r=document.documentElement;Object.entries(e).forEach((e=>{let[n,o]=e;r.style.setProperty(o,t[n])}))})(hu,e?t:$[c||Kc.Default])},C=Yc.subscribe((e=>k(e,gu))),F=Qc.subscribe((e=>k(e,vu))),A=eu.subscribe((e=>k(e,yu)));let S,E,T=0,_=0;const B=new Au({siteId:+f.siteId,projects:u.items,selfExperimentId:f.selfExperimentId,extraTrkParams:p});function j(e){let{target:t}=e;g.contains(t)&&![E,S].includes(t)||(ua(su,i=!1,i),ua(lu,s=!1,s),ua(cu,l=!1,l),ua(uu,a=!1,a))}return bc.set(d),Gc.set(f),function(e,t){[dc.cloud,dc.home].includes(t.siteId)&&t.modifyProjectProps(),t.modifyAllProjectsUrls(),vc=Ql(e,(()=>{}))}(u,B),qc(h,B),Jc.set(c||f.colorTheme||Kc.Default),function(e,t){Ga().$$.context.set(e,t)}("isTargetBlank",x),function(e){const t=window.location.host,r=`ph_v_${null==t?void 0:t.split(".").join("-")}`,n=Gl(r);(null==e?void 0:e.includes(t))?n?ss(r):(Xl(r,"1",Pu()),ss(`${r}_init`)):n&&Xl(r,"",Pu(-1))}(w),gc.configure({experimentId:f.experimentId||"",sitezone:f.siteZone||""}),b&&(gc.countShowPixel(u.showPixel),setTimeout((function e(){const t=fv;let r,a,l;T++,_++,T*t>=+v&&(r=(()=>{var e;return null===(e=Jl("getSocialsParams"))||void 0===e?void 0:e.bind(Ol)()})(),l=r,T=0);y&&_*t>=+y&&(a=(()=>{var e;return null===(e=Jl("getCloudCounterParams"))||void 0===e?void 0:e.bind(Ol)()})(),l=Object.assign(Object.assign({},l||{}),a),_=0);if(Hl){const a=i?Rl():((e,t)=>{var r;return null===(r=Jl("loadAccountInfo"))||void 0===r?void 0:r.bind(Ol)(e,t)})(o,l);a.then((()=>{ss("mail_counter_success"),r&&n.isShowOkCounter&&ss("social_counters_autoupdate_ok"),r&&n.isShowVKCounter&&ss("social_counters_autoupdate_vk"),setTimeout(e,t)})).catch((()=>{ss("mail_counter_error"),setTimeout(e,t)}))}}),fv),n.isShowLoveCounter&&function e(){sd.getJson().then((t=>{let{counter:r=0}=t;(e=>{var t;null===(t=Jl("updateCounter"))||void 0===t||t.bind(Ol)(e)})({love:r}),ss("love_counter_success"),setTimeout(e,m)})).catch((()=>{ss("love_counter_error"),setTimeout(e,m)}))}()),Xa((()=>{let e;if(ss("mount_app"),ss(`mount_app_${as.BUILD}`),ss(f.activeEmail?"hit_auth":"hit_noauth"),document.addEventListener("click",j),b){const t=new _u({sendXray:ss,sendXrayError:us,settings:f});t.setCookie(),e=e=>{let{data:{visible:r}}=e;r&&t.setCookie()},Nl(e)}return()=>{document.removeEventListener("click",j),e&&(e=>{null==Ol||Ol.removeListener(zl.VisibilityChange,e)})(e),C(),F(),A()}})),e.$$set=e=>{"projectsKeys"in e&&r(4,u=e.projectsKeys),"localization"in e&&r(5,d=e.localization),"settings"in e&&r(6,f=e.settings),"data"in e&&r(7,h=e.data),"extraTrkParams"in e&&r(8,p=e.extraTrkParams)},[S,E,n,g,u,d,f,h,p,function(e){S=e,r(0,S)},function(e){Qa[e?"unshift":"push"]((()=>{E=e,r(1,E)}))}]}class pv extends jl{constructor(e){super(),Bl(this,e,hv,dv,Yi,{projectsKeys:4,localization:5,settings:6,data:7,extraTrkParams:8},null,[-1,-1])}}function mv(e){let t,r;const n=[{settings:e[0]},{data:e[1]},e[2]];let o={};for(let e=0;e<n.length;e+=1)o=Ui(o,n[e]);return t=new pv({props:o}),{c(){Sl(t.$$.fragment)},m(e,n){El(t,e,n),r=!0},p(e,r){const o=7&r?Fl(n,[1&r&&{settings:e[0]},2&r&&{data:e[1]},4&r&&Al(e[2])]):{};t.$set(o)},i(e){r||(gl(t.$$.fragment,e),r=!0)},o(e){vl(t.$$.fragment,e),r=!1},d(e){Tl(t,e)}}}function gv(e){let t,r;return t=new ac({props:{$$slots:{default:[mv]},$$scope:{ctx:e}}}),{c(){Sl(t.$$.fragment)},m(e,n){El(t,e,n),r=!0},p(e,r){let[n]=r;const o={};135&n&&(o.$$scope={dirty:n,ctx:e}),t.$set(o)},i(e){r||(gl(t.$$.fragment,e),r=!0)},o(e){vl(t.$$.fragment,e),r=!1},d(e){Tl(t,e)}}}function vv(e,t,r){const n=["settings","data"];let o=sa(t,n);var i,a,l,s;let{settings:c}=t,{data:u}=t;if(ss("load_external"),Hl||(ss("no_ph_error"),console.log("ERROR (Whiteline: index): no __PH")),c.authGate&&void 0===window.__AG&&setTimeout((()=>{void 0===window.__AG&&(ss("no_ag_error"),console.log("ERROR (Whiteline: index): no __AG after 5s"))}),5e3),(d=c.omicronConfig)&&"object"==typeof d&&!(d instanceof Array)&&ea(ls)){Qs({omicronConfig:c.omicronConfig,tmrCounterId:void 0,storeLocalConfig:!1,providers:{tmr:!1},xrayProject:cs()});rc((e=>({init:e("goal_whiteline_omicron-init")}))).init(null)}var d;return(null===(a=null===(i=null===window||void 0===window?void 0:window.__PHS)||void 0===i?void 0:i._)||void 0===a?void 0:a.oneTapLogin)||Ds(["otl_l","otl_t"]),"marusia"!==(null===(l=null==u?void 0:u.promo)||void 0===l?void 0:l.type)&&Ds([hs,ps]),"promo"!==(null===(s=null==u?void 0:u.promo)||void 0===s?void 0:s.type)&&Ds([ds,fs]),e.$$set=e=>{t=Ui(Ui({},t),la(e)),r(2,o=sa(t,n)),"settings"in e&&r(0,c=e.settings),"data"in e&&r(1,u=e.data)},[c,u,o]}new class extends jl{constructor(e){super(),Bl(this,e,vv,gv,Yi,{settings:0,data:1})}}({target:document.querySelector("#ph-whiteline"),props:window.__PHS._.props})}();