owncast/static/web/_next/static/chunks/3429-f4a25513ca8d270e.js
2023-09-10 18:05:36 +00:00

1 line
No EOL
36 KiB
JavaScript
Vendored

(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3429],{72942:function(e,t,s){"use strict";let r;s.r(t),s.d(t,{ChatContainer:function(){return eq}});var a,n,i,o,c,l=s(85893),_=s(26246),p=s(67294),j=s(4511),d=s(28997),h=s(45761),S=s.n(h),u=s(94184),m=s.n(u),g=s(94055),x=s(4480),E=s(5152),y=s.n(E),C=s(63108),f=s(41366),b=s(4693);class M extends b.M{match(e){let{highlightString:t}=this.options;if(!t)return null;let s=t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/\s/g,"\\s"),r=s.normalize("NFD").replace(/[\u0300-\u036f]/g,""),a=s;s!==r&&(a="(?:".concat(s,")|(?:").concat(r,")"));let n=e.match(RegExp(a,"ui"));return n?{index:n.index,length:n[0].length,match:n[0],valid:!0}:null}replaceWith(e,t){let{key:s}=t;return p.createElement("mark",{key:s},e)}asTag(){return"mark"}}var N=s(11890),P=s.n(N);let v="\\p{RGI_Emoji}",w=(()=>{let e=null;try{e=RegExp(v,"v")}catch(e){return!1}return null!==e})(),B=(()=>{let e=P()(v,"v",{unicodeSetsFlag:w?"parse":"transform"});return new RegExp(e,w?"v":"u")})();class T extends b.M{match(e){let t=e.match(B);return t?{index:t.index,length:t[0].length,match:t[0],valid:!0}:null}replaceWith(e,t){let{key:s}=t,{className:r}=this.options;return p.createElement("span",{key:s,className:r},e)}asTag(){return"span"}}var G=s(75774),k=s.n(G),L=s(63516);function A(e){let t=new Date(e);if(Number.isNaN(t))return"";let s=(0,L.Xb)(e);if(s>=1){let e=t.toLocaleDateString("en-US",{dateStyle:"medium"});return"".concat(e," at ").concat(t.toLocaleTimeString())}return"".concat(t.toLocaleTimeString())}var O=s(44974),D=s(73295),I=s.n(D);let H=e=>{let{badge:t,userColor:s,title:r}=e;return(0,l.jsx)("span",{style:{color:"var(--theme-color-users-".concat(s,")")},className:m()([I().badge,"chat-user-badge"]),title:r,children:t})},R=y()(()=>s.e(7719).then(s.t.bind(s,27719,23)),{loadableGenerated:{webpack:()=>[27719]},ssr:!1}),W=e=>{let{userColor:t}=e;return(0,l.jsx)(H,{badge:(0,l.jsx)(R,{}),userColor:t,title:"Authenticated"})},U=y()(()=>s.e(710).then(s.t.bind(s,20710,23)),{loadableGenerated:{webpack:()=>[20710]},ssr:!1}),K=e=>{let{userColor:t}=e;return(0,l.jsx)(H,{badge:(0,l.jsx)(U,{}),userColor:t,title:"Moderator"})},F=y()(()=>s.e(6133).then(s.t.bind(s,56133,23)),{loadableGenerated:{webpack:()=>[56133]},ssr:!1}),V=e=>{let{userColor:t}=e;return(0,l.jsx)(H,{badge:(0,l.jsx)(F,{}),userColor:t,title:"Bot"})},z=y()(()=>Promise.all([s.e(5596),s.e(1130),s.e(4104),s.e(1024),s.e(971),s.e(6697),s.e(7752),s.e(5891),s.e(2891),s.e(4749),s.e(6627),s.e(8966),s.e(8091),s.e(8469),s.e(6430)]).then(s.bind(s,39991)).then(e=>e.ChatModerationActionMenu),{loadableGenerated:{webpack:()=>[39991]},ssr:!1}),J=e=>{let{children:t,user:s}=e,{displayName:r,createdAt:a}=s,n="".concat(r," first joined ").concat(A(a));return(0,l.jsx)(g.default,{title:n,placement:"topLeft",mouseEnterDelay:1,children:t})},q=e=>{let{message:t,highlightString:s,showModeratorMenu:r,sentBySelf:a,sameUserAsLast:n,isAuthorModerator:i,isAuthorAuthenticated:o,isAuthorBot:c}=e,{id:_,body:p,user:j,timestamp:d}=t,{id:h,displayName:S,displayColor:u}=j,E=(0,x.sJ)(O.FI),y="var(--theme-color-users-".concat(u,")"),b="Sent ".concat(A(d)),N=[];return i&&N.push((0,l.jsx)(K,{userColor:u},"mod")),o&&N.push((0,l.jsx)(W,{userColor:u},"auth")),c&&N.push((0,l.jsx)(V,{userColor:u},"bot")),(0,l.jsx)("div",{className:m()(k().messagePadding,n&&k().messagePaddingCollapsed,"chat-message_user"),children:(0,l.jsxs)("div",{className:m()(k().root,{[k().ownMessage]:a}),style:{borderColor:y},children:[(0,l.jsx)("div",{className:k().background,style:{color:y}}),(0,l.jsx)(J,{user:j,children:(0,l.jsxs)("div",{className:n?k().repeatUser:k().user,style:{color:y},children:[(0,l.jsx)("span",{className:k().userName,children:S}),(0,l.jsx)("span",{className:k().userBadges,children:N})]})}),(0,l.jsx)(g.default,{title:b,mouseEnterDelay:1,children:(0,l.jsx)(C.wZ,{className:k().message,content:p,matchers:[new f.xc("url",{customTLDs:["online"]}),new M("highlight",{highlightString:s}),new T("emoji",{className:"emoji"})]})}),r&&(0,l.jsx)("div",{className:k().modMenuWrapper,children:(0,l.jsx)(z,{messageID:_,accessToken:E,userID:h,userDisplayName:S})})]})})};var Z=s(62443),Y=s(91036),Q=s.n(Y),X=s(85777),$=s.n(X);class ee extends p.Component{componentDidMount(){this.mutationObserver=new MutationObserver(this.onContentChange),this.mutationObserver.observe(this.root,{childList:!0,subtree:!0,characterData:!0})}render(){let{tagName:e,html:t,...s}=this.props;return delete s.onRootRef,delete s.onContentChange,p.createElement(e||"div",{...s,ref:this.onRootRef,contentEditable:!this.props.disabled,dangerouslySetInnerHTML:{__html:t}})}constructor(...e){super(...e),this.onContentChange=e=>{e.forEach(()=>{let{innerHTML:e}=this.root;(void 0===this.innerHTMLBuffer||this.innerHTMLBuffer!==e)&&(this.innerHTMLBuffer=e,this.props.onContentChange&&this.props.onContentChange({target:{value:e}}))})},this.onRootRef=e=>{this.root=e,this.props.onRootRef&&this.props.onRootRef(this.root)}}}var et=s(14866),es=s.n(et);let er=y()(()=>Promise.all([s.e(7741),s.e(344)]).then(s.bind(s,20344)).then(e=>e.EmojiPicker),{loadableGenerated:{webpack:()=>[20344]},ssr:!1}),ea=y()(()=>s.e(3366).then(s.t.bind(s,73366,23)),{loadableGenerated:{webpack:()=>[73366]},ssr:!1}),en=y()(()=>s.e(2348).then(s.t.bind(s,92348,23)),{loadableGenerated:{webpack:()=>[92348]},ssr:!1}),ei=new($()),eo=(e,t)=>{let s="";if(t>10||null===e)return s;switch(e.nodeType){case Node.CDATA_SECTION_NODE:case Node.TEXT_NODE:s=e.nodeValue;break;case Node.ELEMENT_NODE:switch(e.tagName.toLowerCase()){case"img":s=e.getAttribute("alt")||"";break;case"br":s="\n";break;case"strong":case"b":s="**";for(let r=0;r<e.childNodes.length;r+=1)s+=eo(e.childNodes[r],t+1);s+="**";break;case"em":case"i":s="*";for(let r=0;r<e.childNodes.length;r+=1)s+=eo(e.childNodes[r],t+1);s+="*";break;case"p":s="\n";for(let r=0;r<e.childNodes.length;r+=1)s+=eo(e.childNodes[r],t+1);break;case"a":case"span":case"div":for(let r=0;r<e.childNodes.length;r+=1)s+=eo(e.childNodes[r],t+1);break;case"script":case"style":break;default:s=e.textContent}}return s},ec=e=>{let t=eo(e,0).replace(/^\s+/,"").replace(/\s+$/,"").replace(/\n([^\n])/g," \n$1");return t},el=e=>{let{defaultText:t,enabled:s,focusInput:r}=e,[a,n]=(0,p.useState)(null==t?void 0:t.length),i=(0,x.sJ)(O.Gt),[o,c]=(0,p.useState)(null),[_,j]=(0,p.useState)([]),h=()=>{let e=ec(o);return ei.countGraphemes(e)},S=()=>{if(!i){console.log("websocketService is not defined");return}let e=ec(o),t=ei.countGraphemes(e);0===t||t>300||(i.send({type:d.C.CHAT,body:e}),o.innerHTML="")},u=e=>{o.innerHTML+=e};(0,p.useEffect)(()=>{r&&document.getElementById("chat-input-content-editable").focus()},[]);let g=async()=>{try{let e=await fetch("/api/emoji"),t=await e.json();j(t),t.forEach(e=>{let t=document.createElement("link");t.href=e.url,t.rel="preload",t.as="image",document.head.appendChild(t)})}catch(e){console.error("cannot fetch custom emoji",e)}};return(0,p.useEffect)(()=>{g()},[]),(0,l.jsx)("div",{id:"chat-input",className:es().root,children:(0,l.jsxs)("div",{className:m()(es().inputWrap,a>300&&es().maxCharacters),children:[(0,l.jsx)(ee,{id:"chat-input-content-editable",html:t||"",placeholder:s?"Send a message to chat":"Chat is disabled",disabled:!s,onKeyDown:e=>{"Enter"!==e.key||e.shiftKey||e.metaKey||e.ctrlKey||e.altKey||(e.preventDefault(),S())},onContentChange:()=>{let e=h();n(e),0===e&&1===o.children.length&&"br"===o.children[0].tagName.toLowerCase()&&o.removeChild(o.children[0])},onPaste:e=>{let t;e.preventDefault();let s=e.clipboardData,{types:r}=s,a=["text/html","text/plain"];for(let e=0;e<a.length;e+=1){let n=a[e];if(r.includes(n)){t=s.getData(n);break}}if(!t)return;let n=Q()(t,{allowedTags:["b","i","em","strong","a","br","p","img"],allowedAttributes:{img:["class","alt","title","src"]},allowedClasses:{img:["emoji"]},transformTags:{h1:"p",h2:"p",h3:"p"}});n&&document.execCommand("insertHTML",!1,n)},onRootRef:e=>{c(e)},style:{whiteSpace:"pre-wrap",width:"100%"},role:"textbox","aria-label":"Chat text input"}),s&&(0,l.jsxs)("div",{style:{display:"flex",paddingLeft:"5px"},children:[(0,l.jsx)(Z.default,{content:(0,l.jsx)(er,{customEmoji:_,onEmojiSelect:e=>{u(e)},onCustomEmojiSelect:(e,t)=>{let s='<img src="'.concat(t,'" alt=":').concat(e,':" title=":').concat(e,':" class="emoji" />');u(s)}}),trigger:"click",placement:"topRight",children:(0,l.jsx)("button",{type:"button",className:es().emojiButton,title:"Emoji picker button",children:(0,l.jsx)(en,{})})}),(0,l.jsx)("button",{type:"button",className:es().sendButton,title:"Send message Button",onClick:S,children:(0,l.jsx)(ea,{})})]})]})})};var e_=s(71368),ep=s.n(e_);function ej(){return(ej=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&(e[r]=s[r])}return e}).apply(this,arguments)}var ed=function(e){return p.createElement("svg",ej({xmlns:"http://www.w3.org/2000/svg",width:500,height:500,viewBox:"0 0 132.292 132.292"},e),a||(a=p.createElement("linearGradient",{id:"moderator_svg__a",x1:432.851,x2:464.644,y1:49.977,y2:49.977,gradientUnits:"userSpaceOnUse"},p.createElement("stop",{offset:0,stopColor:"#2087e2"}),p.createElement("stop",{offset:1,stopColor:"#b63fff"}))),n||(n=p.createElement("path",{fill:"url(#moderator_svg__a)",d:"M438.672 34.08h20.151a5.82 5.82 45 0 1 5.82 5.821v20.151a5.82 5.82 135 0 1-5.82 5.821h-20.15a5.82 5.82 45 0 1-5.822-5.82V39.9a5.82 5.82 135 0 1 5.821-5.82z",transform:"matrix(4.16112 0 0 4.16112 -1801.146 -141.814)"})),i||(i=p.createElement("path",{fill:"#1d1535",fillOpacity:.335,d:"M121.11 29.551c-6.93 47.444-30.074 104.618-77.642 79.674l25.83 23.067h38.772c13.377 0 24.22-10.845 24.22-24.222V40.864z"})),o||(o=p.createElement("path",{fill:"#e2e8f0",fillOpacity:.306,d:"M66.775 13.257s-7.129 57.999-.63 99.312c6.565 41.724-81.568-74.394-49.619-79.203 31.949-4.809 50.249-20.11 50.249-20.11z"})),c||(c=p.createElement("path",{fill:"none",stroke:"#fff",strokeLinejoin:"round",strokeWidth:2,d:"M435.995 42.072c6.797.447 12.753-4.806 12.753-4.806s5.955 5.253 12.752 4.806c-.581 12.745-7.495 20.586-12.752 20.628-5.188.042-12.172-7.883-12.753-20.628z",transform:"matrix(4.16112 0 0 4.16112 -1801.146 -141.814)"})))};let eh=()=>(0,l.jsxs)("div",{className:ep().chatModerationNotification,children:[(0,l.jsx)(ed,{className:ep().icon}),"You are now a moderator."]});var eS=s(61120),eu=s.n(eS);let em=e=>{let{message:{body:t,user:{displayName:s}},highlightString:r}=e;return(0,l.jsx)("div",{className:eu().chatSystemMessagePadding,children:(0,l.jsxs)("div",{className:m()([eu().chatSystemMessage,"chat-message_system"]),children:[(0,l.jsx)("div",{className:eu().user,children:(0,l.jsx)("span",{className:eu().userName,children:s})}),(0,l.jsx)(C.wZ,{className:eu().message,content:t,matchers:[new f.xc("url",{customTLDs:["online"]}),new M("highlight",{highlightString:r})]})]})})};var eg=s(56654),ex=s.n(eg);let eE=y()(()=>s.e(8725).then(s.t.bind(s,8725,23)),{loadableGenerated:{webpack:()=>[8725]},ssr:!1}),ey=e=>{let{isAuthorModerator:t,userColor:s,displayName:r}=e;return(0,l.jsxs)("div",{className:ex().root,children:[(0,l.jsxs)("span",{style:{color:"var(--theme-color-users-".concat(s,")")},children:[(0,l.jsx)("span",{className:ex().icon,children:(0,l.jsx)(eE,{})}),(0,l.jsx)("span",{className:ex().user,children:r}),t&&(0,l.jsx)("span",{className:ex().moderatorBadge,children:(0,l.jsx)(K,{userColor:s})})]}),"joined the chat."]})};var eC=s(92487),ef=s.n(eC);let eb=y()(()=>s.e(8725).then(s.t.bind(s,8725,23)),{loadableGenerated:{webpack:()=>[8725]},ssr:!1}),eM=e=>{let{isAuthorModerator:t,userColor:s,displayName:r}=e;return(0,l.jsxs)("div",{className:ef().root,children:[(0,l.jsxs)("span",{style:{color:"var(--theme-color-users-".concat(s,")")},children:[(0,l.jsx)("span",{className:ef().icon,children:(0,l.jsx)(eb,{})}),(0,l.jsx)("span",{className:ef().user,children:r}),t&&(0,l.jsx)("span",{className:ef().moderatorBadge,children:(0,l.jsx)(K,{userColor:s})})]}),"left the chat."]})};var eN=s(65400);let eP=y()(()=>s.e(437).then(s.t.bind(s,20437,23)),{loadableGenerated:{webpack:()=>[20437]},ssr:!1}),ev=e=>{let{onClick:t}=e;return(0,l.jsx)("div",{className:S().toBottomWrap,id:"scroll-to-chat-bottom",children:(0,l.jsx)(eN.default,{type:"default",style:{color:"currentColor"},icon:(0,l.jsx)(eP,{}),onClick:t,children:"Go to last message"})})};var ew=s(88881),eB=s.n(ew);let eT=e=>{let{body:t}=e;return(0,l.jsx)("div",{className:eB().chatActionPadding,children:(0,l.jsx)("div",{dangerouslySetInnerHTML:{__html:t},className:eB().chatAction})})};var eG=s(84960),ek=s(5789),eL=s(55673),eA=s(31654),eO=s.n(eA);let eD=y()(()=>s.e(9069).then(s.bind(s,49069)),{loadableGenerated:{webpack:()=>[49069]},ssr:!1}),eI=y()(()=>s.e(5584).then(s.bind(s,15584)),{loadableGenerated:{webpack:()=>[15584]},ssr:!1}),eH=y()(()=>s.e(7268).then(s.bind(s,97268)),{loadableGenerated:{webpack:()=>[97268]},ssr:!1}),eR=e=>{let t,{message:s}=e,{body:r,title:a,image:n,link:i,type:o}=s;switch(o.toString()){case"FEDIVERSE_ENGAGEMENT_FOLLOW":t=eD;break;case"FEDIVERSE_ENGAGEMENT_LIKE":t=eI;break;case"FEDIVERSE_ENGAGEMENT_REPOST":t=eH}return(0,l.jsx)("div",{className:eO().followerPadding,children:(0,l.jsx)("div",{className:m()([eO().follower,"chat-message_social"]),children:(0,l.jsx)("a",{href:i,target:"_blank",rel:"noreferrer",children:(0,l.jsxs)(eL.Z,{wrap:!1,children:[(0,l.jsxs)(ek.Z,{span:6,className:eO().avatarColumn,children:[(0,l.jsx)(eG.ZP,{src:n,alt:"Avatar",className:eO().avatar,size:"large",children:a.charAt(0).toUpperCase()}),(0,l.jsx)(t,{className:eO().icon})]}),(0,l.jsxs)(ek.Z,{children:[(0,l.jsx)(eL.Z,{className:eO().account,children:a}),(0,l.jsx)(eL.Z,{className:eO().body,dangerouslySetInnerHTML:{__html:r}})]})]})})})})};var eW=s(44964),eU=s.n(eW);let eK=y()(()=>s.e(1668).then(s.t.bind(s,51668,23)),{loadableGenerated:{webpack:()=>[51668]},ssr:!1}),eF=e=>{let{message:t}=e,{oldName:s,user:r}=t,{displayName:a,displayColor:n}=r,i="var(--theme-color-users-".concat(n,")");return(0,l.jsxs)("div",{className:eU().nameChangeView,children:[(0,l.jsx)("div",{className:eU().icon,children:(0,l.jsx)(eK,{})}),(0,l.jsxs)("div",{className:eU().nameChangeText,children:[(0,l.jsx)("span",{style:{color:i},children:s}),(0,l.jsx)("span",{className:eU().plain,children:" is now known as "}),(0,l.jsx)("span",{style:{color:i},children:a})]})]})};var eV=s(25449),ez=s(69183);function eJ(e){let{user:t}=e,s=new eV.n(t);return s.isModerator}let eq=e=>{let{messages:t,usernameToHighlight:s,chatUserId:a,isModerator:n,showInput:i,height:o,chatAvailable:c,desktop:h,focusInput:u=!0}=e,[m,g]=(0,p.useState)(!1),[x,E]=(0,p.useState)(!1),y=(0,p.useRef)(null),C=(0,p.useRef)(null),f=[],b=1;(0,p.useEffect)(()=>()=>{clearTimeout(C.current)},[]);let M=e=>(0,l.jsx)(eR,{message:e}),N=e=>{let{user:{displayName:t,displayColor:s}}=e,r=eJ(e);return(0,l.jsx)(ey,{displayName:t,userColor:s,isAuthorModerator:r})},P=e=>{let{user:{displayName:t,displayColor:s}}=e,r=eJ(e);return(0,l.jsx)(eM,{displayName:t,userColor:s,isAuthorModerator:r})},v=e=>{let{body:t}=e;return(0,l.jsx)(eT,{body:t})},w=e=>{let t=eJ(e);return t?(0,l.jsx)(eh,{}):(0,l.jsx)("div",{style:{width:"1px",height:"1px"}})},B=(e,r)=>{var i,o,c;let _=eJ(r);return(0,l.jsx)(q,{message:r,showModeratorMenu:n,highlightString:s,sentBySelf:(null===(i=r.user)||void 0===i?void 0:i.id)===a,sameUserAsLast:(f.length<=e&&function(){for(let e=f.length;e<t.length;e+=1){let s=e>0&&b<5&&function(e,t){if(!e||!e.user||t.type!==d.C.CHAT)return!1;let{user:{id:s}}=e;if(s!==t.user.id||!t.timestamp||!e.timestamp)return!1;let r=new Date(t.timestamp).getTime(),a=new Date(e.timestamp).getTime();return!(a-r>4e4)}(t[e],t[e-1]);f.push(s),b=1+(s?b:0)}}(),f[e]),isAuthorModerator:_,isAuthorBot:null===(o=r.user)||void 0===o?void 0:o.isBot,isAuthorAuthenticated:null===(c=r.user)||void 0===c?void 0:c.authenticated},r.id)},T=(e,t)=>{switch(t.type){case d.C.CHAT:return B(e,t);case d.C.NAME_CHANGE:return(0,l.jsx)(eF,{message:t});case d.C.CONNECTED_USER_INFO:return w(t);case d.C.USER_JOINED:return N(t);case d.C.USER_PARTED:return P(t);case d.C.CHAT_ACTION:return v(t);case d.C.SYSTEM:return(0,l.jsx)(em,{message:t,highlightString:s},t.id);case d.C.FEDIVERSE_ENGAGEMENT_FOLLOW:case d.C.FEDIVERSE_ENGAGEMENT_LIKE:case d.C.FEDIVERSE_ENGAGEMENT_REPOST:return M(t);default:return null}},G=e=>{clearTimeout(C.current),C.current=setTimeout(()=>{var t;null===(t=e.current)||void 0===t||t.scrollTo({top:1/0,left:0,behavior:"auto"}),E(!0)},150),g(!1)};(0,p.useEffect)(()=>{setTimeout(()=>{G(y)},500)},[]);let k=(0,p.useMemo)(()=>(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(_.OO,{id:"virtuoso",style:{height:o},className:S().virtuoso,ref:y,data:t,itemContent:(e,t)=>T(e,t),initialTopMostItemIndex:t.length-1,followOutput:()=>!!x&&(g(!1),G(y),"smooth"),alignToBottom:!0,atBottomThreshold:70,atBottomStateChange:e=>{E(e),e?g(!1):g(!0)}}),m&&(0,l.jsx)(ev,{onClick:()=>{G(y)}})]}),[t,s,a,n,m,x]);function L(e){return Math.max(200,Math.min(.666*window.innerWidth,e))}function A(){let e=h&&document.getElementById("chat-container");if(e){let t=parseFloat(e.style.width)||320;e.style.width="".concat(L(t),"px")}}return r&&window.removeEventListener("resize",r),h?(window.addEventListener("resize",A),r=A):r=null,(0,l.jsx)(j.SV,{fallbackRender:e=>{let{error:t,resetErrorBoundary:s}=e;return(0,l.jsx)(ez.A,{componentName:"ChatContainer",message:t.message,retryFunction:s})},children:(0,l.jsxs)("div",{id:"chat-container",className:S().chatContainer,style:h&&{width:"".concat(320,"px")},children:[k,i&&(0,l.jsx)("div",{className:S().chatTextField,children:(0,l.jsx)(el,{enabled:c,focusInput:u})}),h&&(0,l.jsx)("div",{className:S().resizeHandle,onMouseDown:function(e){let t=document.getElementById("chat-container");function s(e){t.style.width="".concat(L(window.innerWidth-e.x),"px")}function r(){window.document.removeEventListener("mousemove",s),window.document.removeEventListener("mouseup",r),window.document.removeEventListener("focusout",r)}window.document.addEventListener("mousemove",s),window.document.addEventListener("mouseup",r),window.document.addEventListener("focusout",r),e.preventDefault()},role:"presentation"})]})})};eq.defaultProps={showInput:!0,height:"auto"}},88881:function(e){e.exports={chatActionPadding:"ChatActionMessage_chatActionPadding__gFHAK",chatAction:"ChatActionMessage_chatAction__SaAM1"}},45761:function(e){e.exports={toBottomWrap:"ChatContainer_toBottomWrap__3AnLI",show:"ChatContainer_show__LhPdy",chatContainer:"ChatContainer_chatContainer__jj1A1",resizeHandle:"ChatContainer_resizeHandle__tp5sp",virtuoso:"ChatContainer_virtuoso__h16VY",chatTextField:"ChatContainer_chatTextField__IMmRr"}},56654:function(e){e.exports={root:"ChatJoinMessage_root__LQnW8",moderatorBadge:"ChatJoinMessage_moderatorBadge___KAcr",user:"ChatJoinMessage_user__7VLJ4",icon:"ChatJoinMessage_icon__veWC1"}},71368:function(e){e.exports={chatModerationNotification:"ChatModeratorNotification_chatModerationNotification__BNHEb",icon:"ChatModeratorNotification_icon__5szBr"}},44964:function(e){e.exports={nameChangeView:"ChatNameChangeMessage_nameChangeView__PTuEs",nameChangeText:"ChatNameChangeMessage_nameChangeText__d__tV",plain:"ChatNameChangeMessage_plain__qaGLJ",icon:"ChatNameChangeMessage_icon__gTVqw"}},92487:function(e){e.exports={root:"ChatPartMessage_root__uwlBE",moderatorBadge:"ChatPartMessage_moderatorBadge__7yjJY",user:"ChatPartMessage_user__48ZYk",icon:"ChatPartMessage_icon__CbsNu"}},31654:function(e){e.exports={followerPadding:"ChatSocialMessage_followerPadding__GHdNk",follower:"ChatSocialMessage_follower__yYsqi",avatar:"ChatSocialMessage_avatar__Phfq0",avatarColumn:"ChatSocialMessage_avatarColumn__xIbr_",body:"ChatSocialMessage_body__Tuie8",account:"ChatSocialMessage_account__aGIry",icon:"ChatSocialMessage_icon__C8Zpx"}},61120:function(e){e.exports={chatSystemMessagePadding:"ChatSystemMessage_chatSystemMessagePadding__xo2mL",chatSystemMessage:"ChatSystemMessage_chatSystemMessage__HJ7ko",user:"ChatSystemMessage_user__IqG5Q",message:"ChatSystemMessage_message__nhVHD"}},14866:function(e){e.exports={root:"ChatTextField_root__WUerS",inputWrap:"ChatTextField_inputWrap__2bWOE",maxCharacters:"ChatTextField_maxCharacters__qWmcu",emojiButton:"ChatTextField_emojiButton__dyDxD",sendButton:"ChatTextField_sendButton__Wa3ew"}},73295:function(e){e.exports={badge:"ChatUserBadge_badge__Nf_Gh"}},75774:function(e){e.exports={root:"ChatUserMessage_root__wl4Pw",user:"ChatUserMessage_user__u7aBR",repeatUser:"ChatUserMessage_repeatUser__TzC1D",userBadges:"ChatUserMessage_userBadges__sG_TM",message:"ChatUserMessage_message__JJiP9",ownMessage:"ChatUserMessage_ownMessage__WqULN",background:"ChatUserMessage_background__f__8c",modMenuWrapper:"ChatUserMessage_modMenuWrapper__LVHZU",messagePadding:"ChatUserMessage_messagePadding__f7kp4",messagePaddingCollapsed:"ChatUserMessage_messagePaddingCollapsed__2R0RQ"}},14640:function(e,t,s){var r={"./Binary_Property/ASCII.js":46962,"./Binary_Property/ASCII_Hex_Digit.js":60270,"./Binary_Property/Alphabetic.js":26969,"./Binary_Property/Any.js":22499,"./Binary_Property/Assigned.js":9213,"./Binary_Property/Bidi_Control.js":38838,"./Binary_Property/Bidi_Mirrored.js":5720,"./Binary_Property/Case_Ignorable.js":49965,"./Binary_Property/Cased.js":32948,"./Binary_Property/Changes_When_Casefolded.js":65314,"./Binary_Property/Changes_When_Casemapped.js":78562,"./Binary_Property/Changes_When_Lowercased.js":12104,"./Binary_Property/Changes_When_NFKC_Casefolded.js":41347,"./Binary_Property/Changes_When_Titlecased.js":50589,"./Binary_Property/Changes_When_Uppercased.js":50046,"./Binary_Property/Dash.js":77336,"./Binary_Property/Default_Ignorable_Code_Point.js":32016,"./Binary_Property/Deprecated.js":42339,"./Binary_Property/Diacritic.js":97707,"./Binary_Property/Emoji.js":23694,"./Binary_Property/Emoji_Component.js":94007,"./Binary_Property/Emoji_Modifier.js":13916,"./Binary_Property/Emoji_Modifier_Base.js":98053,"./Binary_Property/Emoji_Presentation.js":10906,"./Binary_Property/Extended_Pictographic.js":66359,"./Binary_Property/Extender.js":17743,"./Binary_Property/Grapheme_Base.js":75530,"./Binary_Property/Grapheme_Extend.js":38693,"./Binary_Property/Hex_Digit.js":91556,"./Binary_Property/IDS_Binary_Operator.js":2103,"./Binary_Property/IDS_Trinary_Operator.js":18502,"./Binary_Property/ID_Continue.js":19494,"./Binary_Property/ID_Start.js":20567,"./Binary_Property/Ideographic.js":19586,"./Binary_Property/Join_Control.js":36983,"./Binary_Property/Logical_Order_Exception.js":72947,"./Binary_Property/Lowercase.js":49111,"./Binary_Property/Math.js":65667,"./Binary_Property/Noncharacter_Code_Point.js":20052,"./Binary_Property/Pattern_Syntax.js":60514,"./Binary_Property/Pattern_White_Space.js":78588,"./Binary_Property/Quotation_Mark.js":1053,"./Binary_Property/Radical.js":25361,"./Binary_Property/Regional_Indicator.js":94375,"./Binary_Property/Sentence_Terminal.js":89697,"./Binary_Property/Soft_Dotted.js":35514,"./Binary_Property/Terminal_Punctuation.js":21043,"./Binary_Property/Unified_Ideograph.js":75771,"./Binary_Property/Uppercase.js":15760,"./Binary_Property/Variation_Selector.js":27186,"./Binary_Property/White_Space.js":61846,"./Binary_Property/XID_Continue.js":74003,"./Binary_Property/XID_Start.js":3468,"./General_Category/Cased_Letter.js":13090,"./General_Category/Close_Punctuation.js":8526,"./General_Category/Connector_Punctuation.js":26100,"./General_Category/Control.js":80282,"./General_Category/Currency_Symbol.js":15352,"./General_Category/Dash_Punctuation.js":45647,"./General_Category/Decimal_Number.js":98349,"./General_Category/Enclosing_Mark.js":18220,"./General_Category/Final_Punctuation.js":88482,"./General_Category/Format.js":87586,"./General_Category/Initial_Punctuation.js":88147,"./General_Category/Letter.js":65964,"./General_Category/Letter_Number.js":66793,"./General_Category/Line_Separator.js":63061,"./General_Category/Lowercase_Letter.js":19340,"./General_Category/Mark.js":93748,"./General_Category/Math_Symbol.js":32895,"./General_Category/Modifier_Letter.js":66710,"./General_Category/Modifier_Symbol.js":43026,"./General_Category/Nonspacing_Mark.js":95580,"./General_Category/Number.js":90055,"./General_Category/Open_Punctuation.js":25622,"./General_Category/Other.js":76288,"./General_Category/Other_Letter.js":61453,"./General_Category/Other_Number.js":88795,"./General_Category/Other_Punctuation.js":47221,"./General_Category/Other_Symbol.js":66733,"./General_Category/Paragraph_Separator.js":12600,"./General_Category/Private_Use.js":61704,"./General_Category/Punctuation.js":36290,"./General_Category/Separator.js":64661,"./General_Category/Space_Separator.js":54343,"./General_Category/Spacing_Mark.js":11276,"./General_Category/Surrogate.js":93474,"./General_Category/Symbol.js":54581,"./General_Category/Titlecase_Letter.js":8550,"./General_Category/Unassigned.js":22525,"./General_Category/Uppercase_Letter.js":28829,"./Property_of_Strings/Basic_Emoji.js":31355,"./Property_of_Strings/Emoji_Keycap_Sequence.js":2215,"./Property_of_Strings/RGI_Emoji.js":16081,"./Property_of_Strings/RGI_Emoji_Flag_Sequence.js":35816,"./Property_of_Strings/RGI_Emoji_Modifier_Sequence.js":80926,"./Property_of_Strings/RGI_Emoji_Tag_Sequence.js":99712,"./Property_of_Strings/RGI_Emoji_ZWJ_Sequence.js":2485,"./Script/Adlam.js":56129,"./Script/Ahom.js":50147,"./Script/Anatolian_Hieroglyphs.js":50926,"./Script/Arabic.js":56820,"./Script/Armenian.js":14899,"./Script/Avestan.js":69929,"./Script/Balinese.js":30706,"./Script/Bamum.js":15533,"./Script/Bassa_Vah.js":89979,"./Script/Batak.js":83765,"./Script/Bengali.js":72693,"./Script/Bhaiksuki.js":10236,"./Script/Bopomofo.js":30468,"./Script/Brahmi.js":45770,"./Script/Braille.js":65529,"./Script/Buginese.js":74206,"./Script/Buhid.js":96208,"./Script/Canadian_Aboriginal.js":66700,"./Script/Carian.js":93961,"./Script/Caucasian_Albanian.js":74121,"./Script/Chakma.js":12128,"./Script/Cham.js":52189,"./Script/Cherokee.js":75033,"./Script/Chorasmian.js":73507,"./Script/Common.js":85998,"./Script/Coptic.js":56036,"./Script/Cuneiform.js":13563,"./Script/Cypriot.js":49182,"./Script/Cypro_Minoan.js":80084,"./Script/Cyrillic.js":84087,"./Script/Deseret.js":48844,"./Script/Devanagari.js":35690,"./Script/Dives_Akuru.js":57201,"./Script/Dogra.js":71932,"./Script/Duployan.js":95187,"./Script/Egyptian_Hieroglyphs.js":49778,"./Script/Elbasan.js":42781,"./Script/Elymaic.js":83103,"./Script/Ethiopic.js":26672,"./Script/Georgian.js":73661,"./Script/Glagolitic.js":85857,"./Script/Gothic.js":32096,"./Script/Grantha.js":71742,"./Script/Greek.js":62199,"./Script/Gujarati.js":11931,"./Script/Gunjala_Gondi.js":27600,"./Script/Gurmukhi.js":76482,"./Script/Han.js":26294,"./Script/Hangul.js":38858,"./Script/Hanifi_Rohingya.js":50043,"./Script/Hanunoo.js":95307,"./Script/Hatran.js":20280,"./Script/Hebrew.js":12674,"./Script/Hiragana.js":54058,"./Script/Imperial_Aramaic.js":70521,"./Script/Inherited.js":21448,"./Script/Inscriptional_Pahlavi.js":35281,"./Script/Inscriptional_Parthian.js":35772,"./Script/Javanese.js":98272,"./Script/Kaithi.js":52764,"./Script/Kannada.js":98276,"./Script/Katakana.js":98285,"./Script/Kawi.js":50418,"./Script/Kayah_Li.js":10821,"./Script/Kharoshthi.js":67559,"./Script/Khitan_Small_Script.js":48304,"./Script/Khmer.js":39834,"./Script/Khojki.js":42593,"./Script/Khudawadi.js":64415,"./Script/Lao.js":37740,"./Script/Latin.js":46818,"./Script/Lepcha.js":7647,"./Script/Limbu.js":92627,"./Script/Linear_A.js":16193,"./Script/Linear_B.js":71901,"./Script/Lisu.js":25734,"./Script/Lycian.js":6450,"./Script/Lydian.js":28293,"./Script/Mahajani.js":48193,"./Script/Makasar.js":50865,"./Script/Malayalam.js":24789,"./Script/Mandaic.js":9535,"./Script/Manichaean.js":83061,"./Script/Marchen.js":76528,"./Script/Masaram_Gondi.js":9921,"./Script/Medefaidrin.js":93378,"./Script/Meetei_Mayek.js":6940,"./Script/Mende_Kikakui.js":3897,"./Script/Meroitic_Cursive.js":65999,"./Script/Meroitic_Hieroglyphs.js":59758,"./Script/Miao.js":65484,"./Script/Modi.js":34575,"./Script/Mongolian.js":75392,"./Script/Mro.js":36388,"./Script/Multani.js":60556,"./Script/Myanmar.js":15837,"./Script/Nabataean.js":6820,"./Script/Nag_Mundari.js":52423,"./Script/Nandinagari.js":51892,"./Script/New_Tai_Lue.js":32003,"./Script/Newa.js":15297,"./Script/Nko.js":17594,"./Script/Nushu.js":7493,"./Script/Nyiakeng_Puachue_Hmong.js":14406,"./Script/Ogham.js":75847,"./Script/Ol_Chiki.js":88416,"./Script/Old_Hungarian.js":40115,"./Script/Old_Italic.js":29109,"./Script/Old_North_Arabian.js":96840,"./Script/Old_Permic.js":39291,"./Script/Old_Persian.js":24678,"./Script/Old_Sogdian.js":78647,"./Script/Old_South_Arabian.js":70744,"./Script/Old_Turkic.js":59527,"./Script/Old_Uyghur.js":11791,"./Script/Oriya.js":23761,"./Script/Osage.js":39384,"./Script/Osmanya.js":90237,"./Script/Pahawh_Hmong.js":62976,"./Script/Palmyrene.js":60351,"./Script/Pau_Cin_Hau.js":19767,"./Script/Phags_Pa.js":25712,"./Script/Phoenician.js":86458,"./Script/Psalter_Pahlavi.js":74874,"./Script/Rejang.js":27603,"./Script/Runic.js":84788,"./Script/Samaritan.js":45810,"./Script/Saurashtra.js":37632,"./Script/Sharada.js":15058,"./Script/Shavian.js":76250,"./Script/Siddham.js":39573,"./Script/SignWriting.js":54039,"./Script/Sinhala.js":1611,"./Script/Sogdian.js":34250,"./Script/Sora_Sompeng.js":43065,"./Script/Soyombo.js":18135,"./Script/Sundanese.js":95849,"./Script/Syloti_Nagri.js":46566,"./Script/Syriac.js":7810,"./Script/Tagalog.js":67833,"./Script/Tagbanwa.js":58009,"./Script/Tai_Le.js":1187,"./Script/Tai_Tham.js":40377,"./Script/Tai_Viet.js":99e3,"./Script/Takri.js":72294,"./Script/Tamil.js":98682,"./Script/Tangsa.js":77808,"./Script/Tangut.js":75540,"./Script/Telugu.js":65084,"./Script/Thaana.js":6867,"./Script/Thai.js":49907,"./Script/Tibetan.js":29341,"./Script/Tifinagh.js":81261,"./Script/Tirhuta.js":57954,"./Script/Toto.js":68196,"./Script/Ugaritic.js":29097,"./Script/Vai.js":5767,"./Script/Vithkuqi.js":45785,"./Script/Wancho.js":27172,"./Script/Warang_Citi.js":17315,"./Script/Yezidi.js":34961,"./Script/Yi.js":90923,"./Script/Zanabazar_Square.js":92108,"./Script_Extensions/Adlam.js":99614,"./Script_Extensions/Ahom.js":24915,"./Script_Extensions/Anatolian_Hieroglyphs.js":8983,"./Script_Extensions/Arabic.js":75627,"./Script_Extensions/Armenian.js":13585,"./Script_Extensions/Avestan.js":79384,"./Script_Extensions/Balinese.js":47072,"./Script_Extensions/Bamum.js":31856,"./Script_Extensions/Bassa_Vah.js":24945,"./Script_Extensions/Batak.js":92147,"./Script_Extensions/Bengali.js":61530,"./Script_Extensions/Bhaiksuki.js":64063,"./Script_Extensions/Bopomofo.js":29962,"./Script_Extensions/Brahmi.js":61752,"./Script_Extensions/Braille.js":28434,"./Script_Extensions/Buginese.js":15148,"./Script_Extensions/Buhid.js":78881,"./Script_Extensions/Canadian_Aboriginal.js":55254,"./Script_Extensions/Carian.js":79110,"./Script_Extensions/Caucasian_Albanian.js":76550,"./Script_Extensions/Chakma.js":88753,"./Script_Extensions/Cham.js":98451,"./Script_Extensions/Cherokee.js":80196,"./Script_Extensions/Chorasmian.js":23352,"./Script_Extensions/Common.js":46921,"./Script_Extensions/Coptic.js":44141,"./Script_Extensions/Cuneiform.js":30286,"./Script_Extensions/Cypriot.js":73326,"./Script_Extensions/Cypro_Minoan.js":82300,"./Script_Extensions/Cyrillic.js":77115,"./Script_Extensions/Deseret.js":59108,"./Script_Extensions/Devanagari.js":59426,"./Script_Extensions/Dives_Akuru.js":44660,"./Script_Extensions/Dogra.js":41422,"./Script_Extensions/Duployan.js":66667,"./Script_Extensions/Egyptian_Hieroglyphs.js":77673,"./Script_Extensions/Elbasan.js":25810,"./Script_Extensions/Elymaic.js":83509,"./Script_Extensions/Ethiopic.js":37837,"./Script_Extensions/Georgian.js":77680,"./Script_Extensions/Glagolitic.js":97772,"./Script_Extensions/Gothic.js":60674,"./Script_Extensions/Grantha.js":52336,"./Script_Extensions/Greek.js":86310,"./Script_Extensions/Gujarati.js":92436,"./Script_Extensions/Gunjala_Gondi.js":20642,"./Script_Extensions/Gurmukhi.js":33831,"./Script_Extensions/Han.js":16613,"./Script_Extensions/Hangul.js":87001,"./Script_Extensions/Hanifi_Rohingya.js":88583,"./Script_Extensions/Hanunoo.js":82758,"./Script_Extensions/Hatran.js":66416,"./Script_Extensions/Hebrew.js":85222,"./Script_Extensions/Hiragana.js":60191,"./Script_Extensions/Imperial_Aramaic.js":57632,"./Script_Extensions/Inherited.js":96988,"./Script_Extensions/Inscriptional_Pahlavi.js":52121,"./Script_Extensions/Inscriptional_Parthian.js":82809,"./Script_Extensions/Javanese.js":31899,"./Script_Extensions/Kaithi.js":57574,"./Script_Extensions/Kannada.js":81868,"./Script_Extensions/Katakana.js":10774,"./Script_Extensions/Kawi.js":77325,"./Script_Extensions/Kayah_Li.js":76701,"./Script_Extensions/Kharoshthi.js":81466,"./Script_Extensions/Khitan_Small_Script.js":21325,"./Script_Extensions/Khmer.js":6068,"./Script_Extensions/Khojki.js":77706,"./Script_Extensions/Khudawadi.js":54258,"./Script_Extensions/Lao.js":77149,"./Script_Extensions/Latin.js":38334,"./Script_Extensions/Lepcha.js":12299,"./Script_Extensions/Limbu.js":25476,"./Script_Extensions/Linear_A.js":54625,"./Script_Extensions/Linear_B.js":38810,"./Script_Extensions/Lisu.js":90845,"./Script_Extensions/Lycian.js":68978,"./Script_Extensions/Lydian.js":67905,"./Script_Extensions/Mahajani.js":89576,"./Script_Extensions/Makasar.js":3405,"./Script_Extensions/Malayalam.js":974,"./Script_Extensions/Mandaic.js":28940,"./Script_Extensions/Manichaean.js":6677,"./Script_Extensions/Marchen.js":14740,"./Script_Extensions/Masaram_Gondi.js":82278,"./Script_Extensions/Medefaidrin.js":55949,"./Script_Extensions/Meetei_Mayek.js":13329,"./Script_Extensions/Mende_Kikakui.js":97146,"./Script_Extensions/Meroitic_Cursive.js":23715,"./Script_Extensions/Meroitic_Hieroglyphs.js":43199,"./Script_Extensions/Miao.js":26499,"./Script_Extensions/Modi.js":36995,"./Script_Extensions/Mongolian.js":98606,"./Script_Extensions/Mro.js":11462,"./Script_Extensions/Multani.js":45402,"./Script_Extensions/Myanmar.js":76318,"./Script_Extensions/Nabataean.js":34924,"./Script_Extensions/Nag_Mundari.js":45131,"./Script_Extensions/Nandinagari.js":8236,"./Script_Extensions/New_Tai_Lue.js":14575,"./Script_Extensions/Newa.js":71314,"./Script_Extensions/Nko.js":40577,"./Script_Extensions/Nushu.js":44432,"./Script_Extensions/Nyiakeng_Puachue_Hmong.js":53612,"./Script_Extensions/Ogham.js":19298,"./Script_Extensions/Ol_Chiki.js":55285,"./Script_Extensions/Old_Hungarian.js":16737,"./Script_Extensions/Old_Italic.js":73023,"./Script_Extensions/Old_North_Arabian.js":35723,"./Script_Extensions/Old_Permic.js":56370,"./Script_Extensions/Old_Persian.js":1402,"./Script_Extensions/Old_Sogdian.js":14718,"./Script_Extensions/Old_South_Arabian.js":40316,"./Script_Extensions/Old_Turkic.js":5462,"./Script_Extensions/Old_Uyghur.js":2280,"./Script_Extensions/Oriya.js":29434,"./Script_Extensions/Osage.js":77045,"./Script_Extensions/Osmanya.js":82301,"./Script_Extensions/Pahawh_Hmong.js":84766,"./Script_Extensions/Palmyrene.js":72685,"./Script_Extensions/Pau_Cin_Hau.js":34107,"./Script_Extensions/Phags_Pa.js":66506,"./Script_Extensions/Phoenician.js":42186,"./Script_Extensions/Psalter_Pahlavi.js":55507,"./Script_Extensions/Rejang.js":35435,"./Script_Extensions/Runic.js":76355,"./Script_Extensions/Samaritan.js":1509,"./Script_Extensions/Saurashtra.js":23386,"./Script_Extensions/Sharada.js":73709,"./Script_Extensions/Shavian.js":51826,"./Script_Extensions/Siddham.js":22026,"./Script_Extensions/SignWriting.js":96007,"./Script_Extensions/Sinhala.js":51104,"./Script_Extensions/Sogdian.js":82401,"./Script_Extensions/Sora_Sompeng.js":45132,"./Script_Extensions/Soyombo.js":37415,"./Script_Extensions/Sundanese.js":3894,"./Script_Extensions/Syloti_Nagri.js":5419,"./Script_Extensions/Syriac.js":21038,"./Script_Extensions/Tagalog.js":1744,"./Script_Extensions/Tagbanwa.js":54217,"./Script_Extensions/Tai_Le.js":63153,"./Script_Extensions/Tai_Tham.js":4926,"./Script_Extensions/Tai_Viet.js":39311,"./Script_Extensions/Takri.js":55970,"./Script_Extensions/Tamil.js":80882,"./Script_Extensions/Tangsa.js":13266,"./Script_Extensions/Tangut.js":46776,"./Script_Extensions/Telugu.js":40444,"./Script_Extensions/Thaana.js":23431,"./Script_Extensions/Thai.js":94846,"./Script_Extensions/Tibetan.js":137,"./Script_Extensions/Tifinagh.js":67065,"./Script_Extensions/Tirhuta.js":98082,"./Script_Extensions/Toto.js":6715,"./Script_Extensions/Ugaritic.js":29213,"./Script_Extensions/Vai.js":85388,"./Script_Extensions/Vithkuqi.js":97706,"./Script_Extensions/Wancho.js":68659,"./Script_Extensions/Warang_Citi.js":27900,"./Script_Extensions/Yezidi.js":8051,"./Script_Extensions/Yi.js":99799,"./Script_Extensions/Zanabazar_Square.js":25904,"./index.js":94274,"./unicode-version.js":47993};function a(e){return s(n(e))}function n(e){if(!s.o(r,e)){var t=Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}a.keys=function(){return Object.keys(r)},a.resolve=n,e.exports=a,a.id=14640},22868:function(){},14777:function(){},99830:function(){},70209:function(){}}]);