"use strict";(self.webpackChunkPeerTube=self.webpackChunkPeerTube||[]).push([[7384],{98118:(a,d,s)=>{var o=s(27473),u=s(58167),p=s(75973);a.exports=function(i,f){var e=p(i.utils.assign({},{defs:{},shortcuts:{},enabled:[]},f||{}));i.renderer.rules.emoji=o,i.core.ruler.after("linkify","emoji",u(i,e.defs,e.shortcuts,e.scanRE,e.replaceRE))}},55704:a=>{a.exports={angry:[">:(",">:-("],blush:[':")',':-")'],broken_heart:["</3","<\\3"],confused:[":/",":-/"],cry:[":'(",":'-(",":,(",":,-("],frowning:[":(",":-("],heart:["<3"],imp:["]:(","]:-("],innocent:["o:)","O:)","o:-)","O:-)","0:)","0:-)"],joy:[":')",":'-)",":,)",":,-)",":'D",":'-D",":,D",":,-D"],kissing:[":*",":-*"],laughing:["x-)","X-)"],neutral_face:[":|",":-|"],open_mouth:[":o",":-o",":O",":-O"],rage:[":@",":-@"],smile:[":D",":-D"],smiley:[":)",":-)"],smiling_imp:["]:)","]:-)"],sob:[":,'(",":,'-(",";(",";-("],stuck_out_tongue:[":P",":-P"],sunglasses:["8-)","B-)"],sweat:[",:(",",:-("],sweat_smile:[",:)",",:-)"],unamused:[":s",":-S",":z",":-Z",":$",":-$"],wink:[";)",";-)"]}},75973:a=>{a.exports=function(o){var p,u=o.defs;o.enabled.length&&(u=Object.keys(u).reduce(function(e,t){return o.enabled.indexOf(t)>=0&&(e[t]=u[t]),e},{})),p=Object.keys(o.shortcuts).reduce(function(e,t){return u[t]?Array.isArray(o.shortcuts[t])?(o.shortcuts[t].forEach(function(b){e[b]=t}),e):(e[o.shortcuts[t]]=t,e):e},{});var i,j=Object.keys(u);i=0===j.length?"^$":j.map(function(e){return":"+e+":"}).concat(Object.keys(p)).sort().reverse().map(function(e){return function d(s){return s.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}(e)}).join("|");var f=RegExp(i),g=RegExp(i,"g");return{defs:u,shortcuts:p,scanRE:f,replaceRE:g}}},27473:a=>{a.exports=function(s,o){return s[o].content}},58167:a=>{a.exports=function(s,o,u,p,j){var i=s.utils.arrayReplaceAt,f=s.utils.lib.ucmicro,g=new RegExp([f.Z.source,f.P.source,f.Cc.source].join("|"));function e(t,b,h){var n,m=0,c=[];return t.replace(j,function(r,l,v){var k;if(u.hasOwnProperty(r)){if(k=u[r],l>0&&!g.test(v[l-1])||l+r.length<v.length&&!g.test(v[l+r.length]))return}else k=r.slice(1,-1);l>m&&((n=new h("text","",0)).content=t.slice(m,l),c.push(n)),(n=new h("emoji","",0)).markup=k,n.content=o[k],c.push(n),m=l+r.length}),m<t.length&&((n=new h("text","",0)).content=t.slice(m),c.push(n)),c}return function(b){var h,n,m,c,r,l=b.tokens,v=0;for(n=0,m=l.length;n<m;n++)if("inline"===l[n].type)for(h=(c=l[n].children).length-1;h>=0;h--)("link_open"===(r=c[h]).type||"link_close"===r.type)&&"auto"===r.info&&(v-=r.nesting),"text"===r.type&&0===v&&p.test(r.content)&&(l[n].children=c=i(c,h,e(r.content,0,b.Token)))}}},97384:(a,d,s)=>{var o=s(96938),u=s(55704),p=s(98118);a.exports=function(i,f){var e=i.utils.assign({},{defs:o,shortcuts:u,enabled:[]},f||{});p(i,e)}}}]);
//# sourceMappingURL=7384.e3db310fa7a6d2d4.js.map