2 lines
16 KiB
JavaScript
2 lines
16 KiB
JavaScript
"use strict";(self.webpackChunktelegram_t=self.webpackChunktelegram_t||[]).push([[9689],{21849:(e,t,o)=>{o.d(t,{A:()=>C,R:()=>S});var r=o(84051),n=o(13439),a=o(23174),i=o(31481),s=o(90709),c=o(70636),l=o(87357),d=o(95807),u=o(14242),m=o(76023),p=o(35049),f=o(4961),h=o(11217),v=o(17712),y=o(62587),A=o(83057),g=o(59030),w=o(65843),I=o(88554),E=o(18276);const S={micro:m.$,mini:1.5*m.$,tiny:2*m.$,small:2.125*m.$,medium:2.75*m.$,large:3.375*m.$,giant:5.625*m.$,jumbo:7.5*m.$},k=(0,l.x)("Avatar");k.media=k("media"),k.icon=k("icon");const C=(0,r.ph)((({className:e,size:t="large",peer:o,photo:m,webPhoto:C,previewUrl:b,text:M,isSavedMessages:N,isSavedDialog:P,withVideo:x,withStory:T,forPremiumPromo:L,withStoryGap:F,withStorySolid:$,forceFriendStorySolid:O,forceUnreadStorySolid:z,storyViewerOrigin:V,storyViewerMode:K="single-peer",loopIndefinitely:j,noPersonalPhoto:B,onClick:D})=>{const{openStoryViewer:J}=(0,n.ko)(),R=(0,r.li)(null),Q=(0,r.li)(0),_=o&&"isCustomPeer"in o,G=o&&!_?o:void 0,U=G&&(0,c.mO)(G)?G:void 0,Y=G&&(0,c.vj)(G)?G:void 0,q=U&&(0,s.PL)(U),Z=G&&(0,s.kE)(G.id),W=G&&(0,s.Qe)(G.id),H=Y?.isForum;let X,ee;const te="number"==typeof t?t:S[t],oe=x&&m?.isVideo,re=te>=S.jumbo;N||q||(U&&!B||Y?X=(0,s.cP)(o,re?"big":void 0):m?(X=`photo${m.id}?size=m`,m.isVideo&&x&&(ee=(0,s.Pg)(m))):C&&(X=(0,s.cy)(C)));const ne=(0,r.Kr)((()=>_?o.avatarIcon:N?P?"my-notes":"avatar-saved-messages":q?"avatar-deleted-account":Z?"reply-filled":W?"author-hidden":void 0),[_,N,q,Z,W,o,P]),ae=(0,y.A)(X,!1,a.qZ.BlobUrl),ie=(0,y.A)(ee,!oe,a.qZ.BlobUrl),se=ae||b,ce=Boolean(se||ie),le=Boolean(ie&&oe),de=(0,A.A)(ce),ue=(0,v.A)((e=>{const t=e.currentTarget;ie&&(j||(Q.current+=1,Q.current>=3&&(t.style.display="none")))})),me=(0,g.A)();let pe;const fe=U?(0,s.Yg)(U):Y?(0,s.Js)(me,Y):M;if(ne)pe=r.Ay.createElement(E.A,{name:ne,className:k.icon,role:"img",ariaLabel:fe});else if(ce)pe=r.Ay.createElement(r.Ay.Fragment,null,r.Ay.createElement("img",{src:se,className:(0,l.A)(k.media,"avatar-media",de,ie&&"poster"),alt:fe,decoding:"async",draggable:!1}),le&&r.Ay.createElement(w.A,{canPlay:!0,src:ie,className:(0,l.A)(k.media,"avatar-media","poster"),muted:!0,loop:j,autoPlay:!0,disablePictureInPicture:!0,playsInline:!0,draggable:!1,onEnded:ue}));else if(U){const e=(0,s.Yg)(U);pe=e?(0,u.Qh)(e,2):void 0}else if(Y){const e=(0,s.Js)(me,Y);pe=e&&(0,u.Qh)(e,(0,s.L8)(Y.id)?2:1)}else if(_){const e=o.title||me(o.titleKey);pe=e&&(0,u.Qh)(e,1)}else M&&(pe=(0,u.Qh)(M,2));const he=_&&o.isAvatarSquare||H&&!((T||$)&&G?.hasStories),ve=_&&o.withPremiumGradient,ye=_&&o.customPeerAvatarColor,Ae=(0,l.A)("Avatar",e,(0,p.y)(o),!o&&M&&"hidden-user",N&&"saved-messages",W&&"anonymous-forwards",q&&"deleted-account",Z&&"replies-bot-account",ve&&"premium-gradient-bg",he&&"forum",(m||C)&&"force-fit",(T&&G?.hasStories||L)&&"with-story-circle",$&&G?.hasStories&&"with-story-solid",$&&O&&"close-friend",$&&(G?.hasUnreadStories||z)&&"has-unread-story",D&&"interactive",!N&&!se&&"no-photo"),ge=Boolean(N||se),{handleClick:we,handleMouseDown:Ie}=(0,h.Q)((e=>{if(T&&"disabled"!==K&&G?.hasStories)return e.stopPropagation(),void J({peerId:G.id,isSinglePeer:"single-peer"===K,origin:V});D&&D(e,ge)}));return r.Ay.createElement("div",{ref:R,className:Ae,id:G?.id&&T?(0,s.kR)(G.id):void 0,"data-peer-id":G?.id,"data-test-sender-id":i.W75?G?.id:void 0,"aria-label":"string"==typeof pe?fe:void 0,style:(0,d.A)(`--_size: ${te}px;`,ye&&`--color-user: ${ye}`),onClick:we,onMouseDown:Ie},r.Ay.createElement("div",{className:"inner"},"string"==typeof pe?(0,f.A)(pe,[re?"hq_emoji":"emoji"]):pe),T&&G?.hasStories&&r.Ay.createElement(I.A,{peerId:G.id,size:te,withExtraGap:F}))}))},88554:(e,t,o)=>{o.d(t,{$:()=>E,A:()=>I});var r=o(84051),n=o(13439),a=o(29807),i=o(87357),s=o(76023),c=o(38691);const l=["#34C578","#3CA3F3"],d=["#C9EB38","#09C167"],u=["#A667FF","#55A5FF"],m=.125*s.$,p=.0625*s.$,f=2,h=45,v=3.5*s.$,y=Math.PI/4,A=2*Math.PI*.1,g=y-A/2,w=y+A/2,I=(0,r.ph)((0,n.EK)(((e,{peerId:t})=>{const o=(0,a._bp)(e,t),r=(0,a.SJA)(e);return{peerStories:o?.byId,storyIds:o?.orderedIds,lastReadId:o?.lastReadId,appTheme:r}}))((function({size:e,className:t,peerStories:o,storyIds:n,lastReadId:a,withExtraGap:s,appTheme:l}){const d=(0,r.li)(null),u=(0,c.A)(),p=e+m,f=(0,r.Kr)((()=>(n||[]).reduce(((e,t)=>(e.total+=1,a&&t<=a&&(e.read+=1),e)),{total:0,read:0})),[a,n]),h=(0,r.Kr)((()=>!(!o||!n?.length)&&n.some((e=>{const t=o[e];if(!t||!("isForCloseFriends"in t))return!1;const r=a&&t.id<=a;return t.isForCloseFriends&&!r}))),[a,o,n]);if((0,r.Nf)((()=>{d.current&&E({canvas:d.current,size:p*u,segmentsCount:f.total,color:h?"green":"blue",readSegmentsCount:f.read,withExtraGap:s,readSegmentColor:"dark"===l?"#737373":"#C4C9CC",dpr:u})}),[l,h,p,f.read,f.total,s,u]),f.total)return r.Ay.createElement("canvas",{ref:d,className:(0,i.A)("story-circle",t),style:`max-width: ${p}px; max-height: ${p}px;`})})));function E({canvas:e,size:t,color:o,segmentsCount:r,readSegmentsCount:n=0,withExtraGap:a=!1,readSegmentColor:i,dpr:c}){r>h&&(n=Math.round(n*(h/r)),r=h);const y=Math.max(Math.max(t-v*c,0)/c/s.$/1.5,1)*c,A=e.getContext("2d");if(!A)return;e.width=t,e.height=t;const I=t/2,E=(t-m*y)/2,S=2*Math.PI/r,k=f/100*(2*Math.PI),C=A.createLinearGradient(0,0,Math.ceil(t*Math.cos(Math.PI/2)),Math.ceil(t*Math.sin(Math.PI/2))),b="purple"===o?u:"green"===o?d:l;b.forEach(((e,t)=>{C.addColorStop(t/(b.length-1),e)})),A.lineCap="round",A.clearRect(0,0,t,t),Array.from({length:r}).forEach(((e,t)=>{const o=t<n;let s=t*S-Math.PI/2+k/2,c=s+S-(r>1?k:0);if(A.strokeStyle=o?i:C,A.lineWidth=(o?p:m)*y,a){if(s>=g&&c<=w)return;s<g&&c>w?(A.beginPath(),A.arc(I,I,E,w,c),A.stroke(),c=g):s<g&&c>g?c=g:s<w&&c>w&&(s=w)}A.beginPath(),A.arc(I,I,E,s,c),A.stroke()}))}},2578:(e,t,o)=>{o.d(t,{A:()=>a});var r=o(84051),n=o(59030);const a=(0,r.ph)((({fakeType:e})=>{const t=(0,n.A)();return r.Ay.createElement("span",{className:"FakeIcon"},t("fake"===e?"FakeMessage":"ScamMessage"))}))},34431:(e,t,o)=>{o.d(t,{A:()=>w});var r=o(84051),n=o(13439),a=o(31481),i=o(90709),s=o(70636),c=o(87357),l=o(95807),d=o(85982),u=o(83868),m=o(4961),p=o(17712),f=o(59030),h=o(41036),v=o(87412),y=o(2578),A=o(9267);const g=()=>r.Ay.createElement("svg",{className:"VerifiedIcon",viewBox:"0 0 24 24"},r.Ay.createElement("path",{d:"M12.3 2.9c.1.1.2.1.3.2.7.6 1.3 1.1 2 1.7.3.2.6.4.9.4.9.1 1.7.2 2.6.2.5 0 .6.1.7.7.1.9.1 1.8.2 2.6 0 .4.2.7.4 1 .6.7 1.1 1.3 1.7 2 .3.4.3.5 0 .8-.5.6-1.1 1.3-1.6 1.9-.3.3-.5.7-.5 1.2-.1.8-.2 1.7-.2 2.5 0 .4-.2.5-.6.6-.8 0-1.6.1-2.5.2-.5 0-1 .2-1.4.5-.6.5-1.3 1.1-1.9 1.6-.3.3-.5.3-.8 0-.7-.6-1.4-1.2-2-1.8-.3-.2-.6-.4-.9-.4-.9-.1-1.8-.2-2.7-.2-.4 0-.5-.2-.6-.5 0-.9-.1-1.7-.2-2.6 0-.4-.2-.8-.4-1.1-.6-.6-1.1-1.3-1.6-2-.4-.4-.3-.5 0-1 .6-.6 1.1-1.3 1.7-1.9.3-.3.4-.6.4-1 0-.8.1-1.6.2-2.5 0-.5.1-.6.6-.6.9-.1 1.7-.1 2.6-.2.4 0 .7-.2 1-.4.7-.6 1.4-1.2 2.1-1.7.1-.2.3-.3.5-.2z",style:"fill: var(--color-fill)"}),r.Ay.createElement("path",{d:"M16.4 10.1l-.2.2-5.4 5.4c-.1.1-.2.2-.4 0l-2.6-2.6c-.2-.2-.1-.3 0-.4.2-.2.5-.6.7-.6.3 0 .5.4.7.6l1.1 1.1c.2.2.3.2.5 0l4.3-4.3c.2-.2.4-.3.6 0 .1.2.3.3.4.5.2 0 .3.1.3.1z",style:"fill: var(--color-checkmark)"})),w=(0,r.ph)((({className:e,peer:t,noVerified:o,noFake:w,withEmojiStatus:I,emojiStatusSize:E,isSavedMessages:S,isSavedDialog:k,noLoopLimit:C,canCopyTitle:b,iconElement:M,statusSparklesColor:N,onEmojiStatusClick:P,observeIntersection:x})=>{const T=(0,f.A)(),{showNotification:L}=(0,n.ko)(),F="id"in t?t:void 0,$="isCustomPeer"in t?t:void 0,O=F&&(0,s.mO)(F),z=F&&(O?(0,i.Yg)(F):(0,i.Js)(T,F)),V=O&&F.isPremium||$?.isPremium,K=I&&!S,j=F?.emojiStatus||($?.emojiStatusId?{type:"regular",documentId:$.emojiStatusId}:void 0),B=(0,p.A)((e=>{z&&b&&((0,u.A)(e),(0,d.eM)(z),L({message:(O?"User":"Chat")+" name was copied"}))})),D=(0,r.Kr)((()=>$?(0,m.A)($.title||T($.titleKey)):S?T(k?"MyNotes":"SavedMessages"):(0,i.Qe)(F.id)?T("AnonymousForward"):(0,i.kE)(F.id)?T("RepliesTitle"):(0,i.Rl)(F.id)?T("VerifyCodesNotifications"):void 0),[$,k,S,T,F]),J=F?.botVerificationIconId;return r.Ay.createElement("div",{className:(0,c.A)("title","QljEeKI5",e)},J&&r.Ay.createElement(v.A,{documentId:J,size:E,loopLimit:C?void 0:a.J$1,observeIntersectionForLoading:x}),r.Ay.createElement("h3",{dir:"auto",role:"button",className:(0,c.A)("fullName","AS54Cntu",b&&"vr53L_9p"),onClick:B},D||(0,m.A)(z||"")),!M&&t&&r.Ay.createElement(r.Ay.Fragment,null,!o&&t?.isVerified&&r.Ay.createElement(g,null),!w&&t?.fakeType&&r.Ay.createElement(y.A,{fakeType:t.fakeType}),K&&j&&r.Ay.createElement(h.Ay,{className:"KBZgFSv7",slideClassName:"xmVxyvNy",activeKey:Number(j.documentId),name:"slideFade",direction:-1,shouldCleanup:!0},r.Ay.createElement(v.A,{forceAlways:!0,className:"no-selection",withSparkles:"collectible"===j.type,sparklesClassName:"statusSparkles",sparklesStyle:(0,l.A)(N&&`color: ${N}`),documentId:j.documentId,size:E,loopLimit:C?void 0:a.J$1,observeIntersectionForLoading:x,onClick:P})),K&&!j&&V&&r.Ay.createElement(A.A,null)),M)}))},10722:(e,t,o)=>{o.d(t,{A:()=>l});var r=o(84051),n=o(61433),a=o(66644),i=o(96454),s=o(17712);function c(e){e.stopImmediatePropagation(),e.preventDefault(),e.stopPropagation()}const l=(e,t,o,l,d,u)=>{const[m,p]=(0,r.J0)(!1),[f,h]=(0,r.J0)(void 0),[v,y]=(0,r.J0)(void 0),A=(0,s.A)((e=>{t||2!==e.button||(0,a.RK)((()=>{(0,n.YM)(e.target,"no-selection")}))})),g=(0,s.A)((e=>{(0,a.RK)((()=>{(0,n.HW)(e.target,"no-selection")})),t||o&&e.target.matches("a[href]")||(e.preventDefault(),e.stopPropagation(),f||(p(!0),h({x:e.clientX,y:e.clientY}),y(e.target)))})),w=(0,s.A)((()=>{p(!1)})),I=(0,s.A)((()=>{h(void 0)}));return(0,r.vJ)((()=>{if(t||!i.TF||l||d&&!d())return;const r=e.current;if(!r)return;let n;const a=()=>{n&&(clearTimeout(n),n=void 0)},s=e=>{t||(u&&e.stopPropagation(),a(),n=window.setTimeout((()=>(e=>{a();const{clientX:t,clientY:r,target:n}=e.touches[0];f||o&&n.matches("a[href]")||(document.addEventListener("touchend",(e=>{i.pz&&i._7&&setTimeout((()=>{document.removeEventListener("mousedown",c,{capture:!0}),document.removeEventListener("click",c,{capture:!0})}),100),c(e)}),{once:!0,capture:!0}),i._7&&i.pz&&(document.addEventListener("mousedown",c,{once:!0,capture:!0}),document.addEventListener("click",c,{once:!0,capture:!0})),p(!0),h({x:t,y:r}))})(e)),200))};return r.addEventListener("touchstart",s,{passive:!0}),r.addEventListener("touchcancel",a,!0),r.addEventListener("touchend",a,!0),r.addEventListener("touchmove",a,{passive:!0}),()=>{a(),r.removeEventListener("touchstart",s),r.removeEventListener("touchcancel",a,!0),r.removeEventListener("touchend",a,!0),r.removeEventListener("touchmove",a)}}),[f,t,l,e,o,d,u]),{isContextMenuOpen:m,contextMenuAnchor:f,contextMenuTarget:v,handleBeforeContextMenu:A,handleContextMenu:g,handleContextMenuClose:w,handleContextMenuHide:I}}},11217:(e,t,o)=>{o.d(t,{Q:()=>a});var r=o(96454),n=o(17712);function a(e){const t=(0,n.A)((t=>{"mousedown"===t.type&&t.button!==r.w3.Main||e(t)}));return r.TF?{handleClick:e?t:void 0}:{handleMouseDown:e?t:void 0}}},96374:(e,t,o)=>{o.d(t,{A:()=>d});var r=o(84051),n=o(89925),a=o(87894),i=o(30857),s=o(17712),c=o(73767);function l(e,t,o,r){const{length:a}=e,i=r?e.indexOf(r):0,s=t===n.TN.Forwards?i:i+1||a,c=Math.max(0,s-o),l=s+o-1,d=e.slice(Math.max(0,c),l+1);let u,m;switch(t){case n.TN.Forwards:u=s>=0,m=c>=0;break;case n.TN.Backwards:u=s<a,m=l<=a-1}return{newViewportIds:d,areSomeLocal:u,areAllLocal:m,newIsOnTop:d[0]===e[0],fromOffset:c}}const d=(e,t,o=!1,d=30)=>{const u=(0,r.li)(),m=(0,r.li)();if(!m.current&&t&&!o){const{newViewportIds:e,newIsOnTop:o,fromOffset:r}=l(t,n.TN.Forwards,d,t[0]);m.current={viewportIds:e,isOnTop:o,offset:r}}const p=(0,i.A)();o&&(u.current={});const f=(0,c.A)(t),h=(0,c.A)(o);if(!t||o||t===f&&o===h)t||(m.current=void 0);else{const{viewportIds:e,isOnTop:o}=m.current||{},r=e&&!o?e[Math.round(e.length/2)]:void 0,i=r&&t.includes(r)?r:t[0],{offsetId:s=i,direction:c=n.TN.Forwards}=u.current||{},{newViewportIds:p,newIsOnTop:f,fromOffset:h}=l(t,c,d,s);u.current={},e&&(0,a.k)(e,p)||(m.current={viewportIds:p,isOnTop:f,offset:h})}const v=(0,s.A)((({direction:o,noScroll:r})=>{const{viewportIds:i}=m.current||{},s=i?o===n.TN.Backwards?i[i.length-1]:i[0]:void 0;if(!t)return void(e&&e({offsetId:s}));const{newViewportIds:c,areSomeLocal:f,areAllLocal:h,newIsOnTop:v,fromOffset:y}=l(t,o,d,s);!f||i&&(0,a.k)(i,c)||(m.current={viewportIds:c,isOnTop:v,offset:y},p()),!h&&e&&(r||(u.current={...u.current,direction:o,offsetId:s}),e({offsetId:s}))}));return o?[t]:[m.current?.viewportIds,v,m.current?.offset]}},37859:(e,t,o)=>{o.d(t,{A:()=>n});var r=o(84051);const n=(e,t,o)=>{const n=(0,r.li)();return(0,r.Nf)((()=>{const o=n.current;return n.current=t,e(o||[])}),t,o)}},32610:(e,t,o)=>{o.d(t,{A:()=>a});const r=[1,57,41,21,203,34,97,73,227,91,149,62,105,45,39,137,241,107,3,173,39,71,65,238,219,101,187,87,81,151,141,133,249,117,221,209,197,187,177,169,5,153,73,139,133,127,243,233,223,107,103,99,191,23,177,171,165,159,77,149,9,139,135,131,253,245,119,231,224,109,211,103,25,195,189,23,45,175,171,83,81,79,155,151,147,9,141,137,67,131,129,251,123,30,235,115,113,221,217,53,13,51,50,49,193,189,185,91,179,175,43,169,83,163,5,79,155,19,75,147,145,143,35,69,17,67,33,65,255,251,247,243,239,59,29,229,113,111,219,27,213,105,207,51,201,199,49,193,191,47,93,183,181,179,11,87,43,85,167,165,163,161,159,157,155,77,19,75,37,73,145,143,141,35,138,137,135,67,33,131,129,255,63,250,247,61,121,239,237,117,29,229,227,225,111,55,109,216,213,211,209,207,205,203,201,199,197,195,193,48,190,47,93,185,183,181,179,178,176,175,173,171,85,21,167,165,41,163,161,5,79,157,78,154,153,19,75,149,74,147,73,144,143,71,141,140,139,137,17,135,134,133,66,131,65,129,1],n=[0,9,10,10,14,12,14,14,16,15,16,15,16,15,15,17,18,17,12,18,16,17,17,19,19,18,19,18,18,19,19,19,20,19,20,20,20,20,20,20,15,20,19,20,20,20,21,21,21,20,20,20,21,18,21,21,21,21,20,21,17,21,21,21,22,22,21,22,22,21,22,21,19,22,22,19,20,22,22,21,21,21,22,22,22,18,22,22,21,22,22,23,22,20,23,22,22,23,23,21,19,21,21,21,23,23,23,22,23,23,21,23,22,23,18,22,23,20,22,23,23,23,21,22,20,22,21,22,24,24,24,24,24,22,21,24,23,23,24,21,24,23,24,22,24,24,22,24,24,22,23,24,24,24,20,23,22,23,24,24,24,24,24,24,24,23,21,23,22,23,24,24,24,22,24,24,24,23,22,24,24,25,23,25,25,23,24,25,25,24,22,25,25,25,24,23,24,25,25,25,25,25,25,25,25,25,25,25,25,23,25,23,24,25,25,25,25,25,25,25,25,25,24,22,25,25,23,25,25,20,24,25,24,25,25,22,24,25,24,25,24,25,25,24,25,25,25,25,22,25,25,25,24,25,24,25,18];function a(e,t,o,a,i,s,c){if(Number.isNaN(s)||s<1)return;s|=0,Number.isNaN(c)&&(c=1),(c|=0)>3&&(c=3),c<1&&(c=1);const l=e.getImageData(t,o,a,i),d=l.data;let u,m,p,f,h,v,y,A,g,w,I,E,S=a-1,k=i-1,C=s+1,b=[],M=[],N=[],P=r[s],x=n[s],T=[],L=[];for(;c-- >0;){for(E=I=0,h=0;h<i;h++){for(u=d[E]*C,m=d[E+1]*C,p=d[E+2]*C,v=1;v<=s;v++)y=E+((v>S?S:v)<<2),u+=d[y++],m+=d[y++],p+=d[y++];for(f=0;f<a;f++)b[I]=u,M[I]=m,N[I]=p,0==h&&(T[f]=((y=f+C)<S?y:S)<<2,L[f]=(y=f-s)>0?y<<2:0),A=E+T[f],g=E+L[f],u+=d[A++]-d[g++],m+=d[A++]-d[g++],p+=d[A++]-d[g++],I++;E+=a<<2}for(f=0;f<a;f++){for(w=f,u=b[w]*C,m=M[w]*C,p=N[w]*C,v=1;v<=s;v++)w+=v>k?0:a,u+=b[w],m+=M[w],p+=N[w];for(I=f<<2,h=0;h<i;h++)d[I]=u*P>>>x,d[I+1]=m*P>>>x,d[I+2]=p*P>>>x,0==f&&(T[h]=((y=h+C)<k?y:k)*a,L[h]=(y=h-s)>0?y*a:0),A=f+T[h],g=f+L[h],u+=b[A]-b[g],m+=M[A]-M[g],p+=N[A]-N[g],I+=a<<2}}e.putImageData(l,t,o)}},14680:(e,t,o)=>{o.d(t,{FD:()=>n,ZJ:()=>i,wb:()=>a});let r=0;function n(){r+=1}function a(){r-=1}function i(){return r>0}},91034:(e,t,o)=>{o.d(t,{A:()=>n});var r=o(84051);function n(e){return function(t){const o=(0,r.li)(t);return t.ignoreFreeze?e(t):(t.isOpen?o.current=t:o.current={...o.current,isOpen:!1},e(o.current))}}},9718:(e,t,o)=>{o.d(t,{A:()=>i,E:()=>a});var r=o(96454),n=o(41402);function a(e){e.style.display="none",(0,n.A)(e),e.style.display=""}const i=(e,t)=>{r.pz&&(e.style.overflow="hidden"),void 0!==t&&(e.scrollTop=t),r.pz&&(e.style.overflow="")}},29441:(e,t,o)=>{function r(e){function t(t){if("Tab"!==t.key)return;t.preventDefault(),t.stopPropagation();const o=Array.from(e.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'));if(!o.length)return;const r=o.findIndex((e=>e.isSameNode(document.activeElement)));let n=0;r>=0&&(n=t.shiftKey?r>0?r-1:o.length-1:r<o.length-1?r+1:0),o[n].focus()}return document.addEventListener("keydown",t,!1),()=>{document.removeEventListener("keydown",t,!1)}}o.d(t,{A:()=>r})}}]);
|
|
//# sourceMappingURL=9689.6bf8a46afb1d8ff9b9ca.js.map
|