(function(e){function t(t){for(var i,a,o=t[0],c=t[1],u=t[2],f=0,d=[];f0){var n=t.getRangeAt(0);if(n&&!n.collapsed)return}this.message_info_open=e,this.$nextTick(this.maybeScrollToBottom.bind(this))}}else this.message_info_open=null},shouldShowUnreadMarker:function(e){var t=this.filteredMessages.indexOf(e),n=this.filteredMessages[t-1],i=this.filteredMessages[t],s=this.buffer.last_read;return!!s&&(!!i&&!!(n&&n.times))},shouldShowDateChangeMarker:function(e){var t=this.filteredMessages[e-1],n=this.filteredMessages[e];return!t&&new Date(n.time).getDay()!==(new Date).getDay()||!!t&&new Date(t.time).getDay()!==new Date(n.time).getDay()},canShowInfoForMessage:function(e){var t=["privmsg","notice","action"];return t.indexOf(e.type)>-1},bufferSetting:function(e){return this.buffer.setting(e)},formatTime:function(e){return(0,p.default)(this.buffer.setting("timestamp_format")||"%T",new Date(e))},formatTimeFull:function(e){var t=this.buffer.setting("timestamp_full_format");return t?(0,p.default)(t,new Date(e)):new Date(e).toLocaleString()},formatMessage:function(e){return e.toHtml(this)},isMessageHighlight:function(e){return"traffic"!==e.type&&e.isHighlight},userColour:function(e){return e&&this.bufferSetting("colour_nicknames_in_messages")?e.getColour():""},openUserBox:function(e){var t=this.$state.getUser(this.buffer.networkid,e);t&&this.$state.$emit("userbox.show",t,{buffer:this.buffer})},onListClick:function(e){this.toggleMessageInfo()},onMessageDblClick:function(e,t){clearTimeout(this.messageClickTmr);var n=e.target.getAttribute("data-nick");if(n){var i=this.buffer.getNetwork(),s=i.userByName(n),r=s&&s.nick?s.nick:n;this.$state.$emit("input.insertnick",r)}},onMessageClick:function(e,t,n){if(n&&e.target.getAttribute("data-nick"))return clearTimeout(this.messageClickTmr),void(this.messageClickTmr=setTimeout(this.onMessageClick,200,e,t,!1));var i="A"===e.target.tagName,s=e.target.getAttribute("data-channel-name");if(s&&i){var r=this.buffer.getNetwork();return this.$state.addBuffer(this.buffer.networkid,s),r.ircClient.join(s),void this.$state.setActiveBuffer(this.buffer.networkid,s)}var a=e.target.getAttribute("data-nick");if(a&&i)this.openUserBox(a);else{var o=e.target.getAttribute("data-url");if(o&&i&&(this.$state.setting("buffers.inline_link_auto_previews")?(t.embed.type="url",t.embed.payload=o):this.$state.$emit("mediaviewer.show",o)),this.message_info_open&&this.message_info_open!==t)return this.toggleMessageInfo(),void e.preventDefault();this.$state.ui.is_touch&&this.$state.setting("buffers.show_message_info")&&(this.canShowInfoForMessage(t)&&"A"===e.target.nodeName&&e.preventDefault(),this.toggleMessageInfo(t))}},checkScrollingState:function(){var e=this.$el,t=e.scrollHeight-(e.offsetHeight+e.scrollTop);t>x?(this.auto_scroll=!1,this.buffer.isMessageTrimming=!1):(this.auto_scroll=!0,this.buffer.isMessageTrimming=!0),null!==this.force_smooth_scroll?(this.smooth_scroll=this.force_smooth_scroll,this.force_smooth_scroll=null):this.smooth_scroll=!1},onListResize:function(e){this.maybeScrollToBottom()},scrollToBottom:function(){this.$el.scrollTop=this.$el.scrollHeight},maybeScrollToBottom:function(){this.auto_scroll&&this.scrollToBottom()},maybeScrollToId:function(e){var t=this.$el.querySelector('.kiwi-messagelist-message[data-message-id="'+e+'"]');t&&t.offsetTop&&(this.$el.scrollTop=t.offsetTop,this.auto_scroll=!1)},getSelectedMessages:function(){var e=document.getSelection(),t=e.getRangeAt(0),n=(0,o.default)(this.$el.querySelectorAll(".kiwi-messagelist-message")),i=(0,u.default)(n).call(n,(function(e){return t.intersectsNode(e)}));return i},restrictTextSelection:function(){document.querySelector("body").classList.add("kiwi-unselectable"),this.$el.style.userSelect="text"},unrestrictTextSelection:function(){document.querySelector("body").classList.remove("kiwi-unselectable"),this.$el.style.userSelect="auto"},removeSelections:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.selectedMessages=Object.create(null);var t=document.getSelection();e&&t&&t.removeAllRanges()},addCopyListeners:function(){var e=this,t=function(e){var t,n,i="";switch(e.type){case"privmsg":i=(0,l.default)(t="<".concat(e.nick,"> ")).call(t,e.message);break;case"nick":case"mode":case"action":case"traffic":i="".concat(e.message);break;default:i=e.message}return i.length?(0,l.default)(n="[".concat(new Date(e.time).toLocaleTimeString({hour:"2-digit",minute:"2-digit",second:"2-digit"}),"] ")).call(n,i):null},n="",i=!1,s=null;this.listen(document,"selectstart",(function(t){if(!e.$el.contains(t.target))return n="",void e.removeSelections();e.removeSelections(),s=e.listen(document,"selectionchange",r)})),this.listen(document,"mouseup",(function(t){s&&s(),e.unrestrictTextSelection(),i&&t.preventDefault(),i=!1}));var r=function(s){if(!e.$el)return!0;n="";var r=document.getSelection();if(!r||!r.anchorNode||!r.anchorNode.parentNode.closest("."+e.$el.className))return e.unrestrictTextSelection(),e.removeSelections(),!0;if(e.removeSelections(),e.restrictTextSelection(),r.rangeCount>0){var a,o;i=!0;var c=e.getSelectedMessages(),l=[];c.forEach((function(t){var n=e.buffer.messagesObj.messageIds[t.dataset.messageId];n&&l.push(n)})),1===l.length&&(l=[]),e.selectedMessages=Object.create(null),l.forEach((function(t){e.selectedMessages[t.id]=t})),n=(0,f.default)(a=(0,u.default)(o=l.sort((function(e,t){return e.time>t.time?1:-1}))).call(o,(function(e){var t;return(0,d.default)(t=e.message).call(t).length}))).call(a,t).join("\r\n")}else e.unrestrictTextSelection();return!1};this.listen(document,"copy",(function(e){if(!n||!n.length)return!0;if(navigator.clipboard)navigator.clipboard.writeText(n);else{var t=document.createElement("textarea");document.body.appendChild(t),t.innerHTML=n,t.select(),document.execCommand("copy"),document.body.removeChild(t)}return!0}))},openEmbedInPreview:function(e){var t=e.embed;"url"===t.type?this.$state.$emit("mediaviewer.show",t.payload):"component"===t.type&&this.$state.$emit("mediaviewer.show",{component:t.payload}),t.payload=null}}};t.default=$,window._kiwi_exports=window._kiwi_exports||{},window._kiwi_exports["components"]||(window._kiwi_exports["components"]={}),window._kiwi_exports["components"]["MessageList"],window._kiwi_exports.components.MessageList=t.default?t.default:t},"02c6":function(e,t,n){},"02fe":function(e,t,n){"use strict";var i=n("1bd5");Object.defineProperty(t,"__esModule",{value:!0}),t.requestPermission=o,t.show=c,t.listenForNewMessages=l;var s=i(n("e76e")),r=i(n("2ef0")),a=!1;function o(e){if("Notification"in window)return"granted"===Notification.permission?(e.$emit("notification.enabled"),void(a=!0)):void("denied"!==Notification.permission&&false);a=!1}function c(e,t,n){if(!a)return!1;var i=new Notification(e,{body:t,icon:n.icon});return n.ttl&&setTimeout(i.close.bind(i),n.ttl),i}var u=r.default.throttle(c,2e3);function l(e){e.$on("notification.show",(function(e,t){if(a){var n=(0,s.default)({title:"Kiwi IRC",message:e,icon:"",onclick:null,ttl:1e4},t);if(n.message){var i=u(n.title,n.message,{ttl:n.ttl});i&&"function"===typeof n.onclick&&(i.onclick=n.onclick)}}}))}window._kiwi_exports=window._kiwi_exports||{},window._kiwi_exports["libs"]||(window._kiwi_exports["libs"]={}),window._kiwi_exports["libs"]["Notifications"],window._kiwi_exports.libs.Notifications=t.default?t.default:t},"036e":function(e,t,n){"use strict";n.r(t);var i=n("32cc"),s=n("96a1");for(var r in s)"default"!==r&&function(e){n.d(t,e,(function(){return s[e]}))}(r);n("e20d");var a=n("0c7c"),o=Object(a["a"])(s["default"],i["a"],i["b"],!0,null,"17414de8",null);t["default"]=o.exports},"037d":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i={props:{},avatar:function(e){return e.message&&e.message.avatar||e.user&&e.user.avatar},nick:function(e){return(e.message&&e.message.nick||e.user&&e.user.nick||"").toLowerCase()},firstNickLetter:function(e){return this.nick(e)[0].toUpperCase()},hasAvatar:function(e){return!(!e.user.avatar||!e.user.avatar.small&&!e.user.avatar.large)},isDefault:function(e){return!this.colour(e)&&!this.hasAvatar(e)},avatarStyle:function(e){var t={};if(this.hasAvatar(e)){var n="small"===e.size&&this.avatar(e).small?this.avatar(e).small:this.avatar(e).large||this.avatar(e).small;t["background-image"]='url("'.concat(n,'")')}else t["background-color"]="".concat(this.colour(e));return t},colour:function(e){var t=e.message&&e.message.user||e.user;return t.getColour()}},s={props:{message:Object,user:Object,size:String},m:i};t.default=s,window._kiwi_exports=window._kiwi_exports||{},window._kiwi_exports["components"]||(window._kiwi_exports["components"]={}),window._kiwi_exports["components"]["Avatar"],window._kiwi_exports.components.Avatar=t.default?t.default:t},"040f":function(e,t){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest||(Element.prototype.closest=function(e){var t=this;do{if(t.matches(e))return t;t=t.parentElement||t.parentNode}while(null!==t&&1===t.nodeType);return null})},"0470":function(e,t,n){"use strict";var i=n("1bd5");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=i(n("a3e3")),r=o(),a=r;function o(e,t){function n(){n.info.apply(n,arguments)}function i(e){var i=t||n;return i.level>=e}return n.LEVEL_DEBUG=2,n.LEVEL_INFO=1,n.LEVEL_ERROR=0,n.level=n.LEVEL_ERROR,n.debug=function(){if(i(n.LEVEL_DEBUG)){for(var t,r,a=arguments.length,o=new Array(a),c=0;c1?n-1:0),r=1;r-1}},{key:"showServerBuffer",value:function(e){var t=this;this.appState.$emit("active.component",null),this.appState.setActiveBuffer(this.id,this.serverBuffer().name),(0,o.default)((function(){t.appState.$emit("server.tab.show",e||"settings")}))}},{key:"isNickExemptFromPmBlocks",value:function(e){for(var t=this.appState.getBuffersWithUser(this.id,e),n=0;n0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"text",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},s={styles:t,content:e,containsContent:!!e,type:n,meta:i};return s}a["_"]={token:"_",extra:!0,fn:function(e,t,n,i,s){return s[this.token]?(delete n.styles.underline,s[this.token]=null,i.content+=this.token,null):!0===n.styles.underline||t>0&&" "!==e[t-1]||-1===e.substr(t+1).indexOf(this.token)?-1:(s[this.token]=!0,n.styles.underline=!0,n.content+=this.token,null)}},a["*"]={token:"*",extra:!0,fn:function(e,t,n,i,s){if(s[this.token])return delete n.styles.bold,s[this.token]=null,i.content+=this.token,null;if(!0===n.styles.bold)return-1;if(":"===e[t-1])return-1;if(t>0&&" "!==e[t-1])return-1;var r=e.substr(t+1),a=r.indexOf(this.token);return-1===a||a0&&" "!==e[t-1])return-1;var r=e.substr(t+1),a=r.indexOf(this.token);return-1===a||r[a+1]&&" "!==r[a+1]?-1:(s[this.token]=!0,n.styles.quote=!0,n.content+=this.token+r.substr(0,a),n.containsContent=!0,t+a+1)}},a[""]={token:"",extra:!1,fn:function(e,t,n,i,s){return s[this.token]?(delete n.styles.bold,s[this.token]=null):(s[this.token]=!0,n.styles.bold=!0),null}},a[""]={token:"",extra:!1,fn:function(e,t,n,i,s){return s[this.token]?(delete n.styles.italic,s[this.token]=null):(s[this.token]=!0,n.styles.italic=!0),null}},a[""]={token:"",extra:!1,fn:function(e,t,n,i,s){return s[this.token]?(delete n.styles.underline,s[this.token]=null):(s[this.token]=!0,n.styles.underline=!0),null}},a[""]={token:"",extra:!1,fn:function(e,t,n,i,r){return(0,s.default)(n.styles).forEach((function(e){return delete n.styles[e]})),(0,s.default)(r).forEach((function(e){return delete r[e]})),null}},a[""]={token:"",extra:!1,fn:function(e,t,n,i,s){var r={0:"white",1:"black",2:"blue",3:"green",4:"light-red",5:"brown",6:"purple",7:"orange",8:"yellow",9:"light-green",10:"cyan",11:"light-cyan",12:"light-blue",13:"pink",14:"grey",15:"light-grey"},a=/^\x03(([0-9][0-9]?)(,([0-9][0-9]?))?)/,o=a.exec(e.substr(t,6));if(o){var c=r[parseInt(o[2],10)],u=r[parseInt(o[4],10)];return"undefined"!==typeof c&&(n.styles.color=c),"undefined"!==typeof u&&(n.styles.background=u),t+o[0].length}return delete n.styles.color,delete n.styles.background,null}},a[""]={token:"",extra:!1,fn:function(e,t,n,i,s){return null}},window._kiwi_exports=window._kiwi_exports||{},window._kiwi_exports["libs"]||(window._kiwi_exports["libs"]={}),window._kiwi_exports["libs"]["MessageFormatter"],window._kiwi_exports.libs.MessageFormatter=t.default?t.default:t},"12fa":function(e,t,n){"use strict";n.r(t);var i=n("037d"),s=n.n(i);for(var r in i)"default"!==r&&function(e){n.d(t,e,(function(){return i[e]}))}(r);t["default"]=s.a},"132e":function(e,t,n){"use strict";n("94ff")},"134c":function(e,t,n){e.exports=n.p+"static/img/kiwiLoadingLogo.ee10be5a.png"},"13d0":function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return s}));var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"kiwi-messageinfo",on:{click:function(e){e.stopPropagation()}}},[e.message.mentioned_urls.length>0?n("div",{staticClass:"kiwi-messageinfo-urls"},e._l(e.message.mentioned_urls,(function(t){return n("div",{key:t,staticClass:"kiwi-messageinfo-url"},[n("a",{staticClass:"u-button u-button-secondary",on:{click:function(n){return e.urlPreview(t)}}},[e._v("Preview")]),n("a",{staticClass:"u-link",attrs:{href:t,target:"_blank"}},[e._v(" "+e._s(t)+" ")])])})),0):e._e(),n("div",{staticClass:"kiwi-messageinfo-actions",class:{"kiwi-messageinfo-actions--open":e.requestingInput}},[e.requestingInput?e._e():n("a",{staticClass:"u-link kiwi-messageinfo-reply",on:{click:e.openQuery}},[e._v(" Reply in private ")]),e.areWeAnOp()&&!e.isSelf()?n("div",{staticClass:"kiwi-messageinfo-opbuttons"},[n("input-prompt",{attrs:{label:"Kick reason:"},on:{submit:e.onKick,cancel:function(t){e.requestingInput=!1}}},[e.requestingInput?e._e():n("a",{staticClass:"u-link kiwi-messageinfo-kick-user",on:{click:function(t){e.requestingInput=!0}}},[e._v(" Kick "+e._s(e.message.nick)+" ")])]),n("input-prompt",{attrs:{label:"Ban reason:"},on:{submit:e.onBan,cancel:function(t){e.requestingInput=!1}}},[e.requestingInput?e._e():n("a",{staticClass:"u-link kiwi-messageinfo-ban-user",on:{click:function(t){e.requestingInput=!0}}},[e._v(" Ban "+e._s(e.message.nick)+" ")])])],1):e._e()])])},s=[]},1522:function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return s}));var i=function(e,t){var n=t._c;return n("div",{staticClass:"kiwi-nicklist-user",class:[t.props.nicklist.userMode(t.props.user)?"kiwi-nicklist-user--mode-"+t.props.nicklist.userMode(t.props.user):"",t.props.user.away?"kiwi-nicklist-user--away":"",t.props.user.ignore?"kiwi-nicklist-user--ignore":"",t.data.staticClass],attrs:{"data-nick":(t.props.user.nick||"").toLowerCase()},on:{click:function(e){return t.props.nicklist.openUserbox(t.props.user)}}},[t.props.m().shouldShowAvatars()?n("div",{staticClass:"kiwi-avatar-container"},[t.props.user?n(t.injections.components.Avatar,{tag:"component",attrs:{user:t.props.user,size:"small"}}):t._e(),n(t.injections.components.AwayStatusIndicator,{tag:"component",attrs:{network:t.props.network,user:t.props.user,toggle:!1}})],1):n("div",[n(t.injections.components.AwayStatusIndicator,{tag:"component",attrs:{network:t.props.network,user:t.props.user,toggle:!1}})],1),n("span",{staticClass:"kiwi-nicklist-user-prefix"},[t._v(" "+t._s(t.props.nicklist.userModePrefix(t.props.user))+" ")]),n("span",{staticClass:"kiwi-nicklist-user-nick",style:{color:t.props.m().userColour()}},[t._v(t._s(t.props.user.nick)+" ")]),n("span",{staticClass:"kiwi-nicklist-messageuser",on:{click:function(e){return e.stopPropagation(),t.props.nicklist.openQuery(t.props.user)}}},[n("i",{staticClass:"fa fa-comment",attrs:{"aria-hidden":"true"}})]),n(t.injections.components.TypingStatusIndicator,{tag:"component",attrs:{user:t.props.user,buffer:t.props.nicklist.buffer}})],1)},s=[]},"15a2":function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return s}));var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{key:e.url,staticClass:"kiwi-mediaviewer-embedly"},[n("a",{ref:"embedlyLink",staticClass:"kiwi-embedly-card",attrs:{href:e.url,"data-card-key":e.settings.key,"data-card-chrome":"0","data-card-controls":"0","data-card-recommend":"0"}},[e._v(e._s(e.$t("media_loading",{url:e.url})))])])},s=[]},"15d0":function(e,t,n){"use strict";n.r(t);var i=n("1fbc"),s=n.n(i);for(var r in i)"default"!==r&&function(e){n.d(t,e,(function(){return i[e]}))}(r);t["default"]=s.a},1612:function(e,t,n){"use strict";n.r(t);var i=n("a636"),s=n.n(i);for(var r in i)"default"!==r&&function(e){n.d(t,e,(function(){return i[e]}))}(r);t["default"]=s.a},"169d":function(e,t,n){"use strict";n.r(t);var i=n("d273"),s=n("89d7");for(var r in s)"default"!==r&&function(e){n.d(t,e,(function(){return s[e]}))}(r);n("d949");var a=n("0c7c"),o=Object(a["a"])(s["default"],i["a"],i["b"],!1,null,null,null);t["default"]=o.exports},"17b2":function(e,t,n){},"17d8":function(e,t,n){},"17f1":function(e,t,n){"use strict";n("91e8")},"185a":function(e,t,n){"use strict";n.r(t);var i=n("4de8"),s=n("e93b");for(var r in s)"default"!==r&&function(e){n.d(t,e,(function(){return s[e]}))}(r);n("88b1");var a=n("0c7c"),o=Object(a["a"])(s["default"],i["a"],i["b"],!1,null,null,null);t["default"]=o.exports},1871:function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return s}));var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"u-input-text"},[e.label?n("label",{attrs:{for:e.inputId}},[e._v(e._s(e.label))]):e._e(),n("div",{staticClass:"u-input-text-inputs",staticStyle:{display:"flex"}},["password"===e.type?["checkbox"===(e.plainTextEnabled&&!e.isEdgeBrowser()?"text":"password")?n("input",{directives:[{name:"model",rawName:"v-model",value:e.currentValue,expression:"currentValue"}],staticClass:"u-input",class:{"u-form-input-plaintext":!e.isEdgeBrowser()&&e.showPlainText},attrs:{id:e.inputId,autocomplete:"off",autocorrect:"off",autocapitalize:"off",spellcheck:"false",type:"checkbox"},domProps:{checked:Array.isArray(e.currentValue)?e._i(e.currentValue,null)>-1:e.currentValue},on:{keypress:function(t){return e.$emit("keypress",t)},change:function(t){var n=e.currentValue,i=t.target,s=!!i.checked;if(Array.isArray(n)){var r=null,a=e._i(n,r);i.checked?a<0&&(e.currentValue=n.concat([r])):a>-1&&(e.currentValue=n.slice(0,a).concat(n.slice(a+1)))}else e.currentValue=s}}}):"radio"===(e.plainTextEnabled&&!e.isEdgeBrowser()?"text":"password")?n("input",{directives:[{name:"model",rawName:"v-model",value:e.currentValue,expression:"currentValue"}],staticClass:"u-input",class:{"u-form-input-plaintext":!e.isEdgeBrowser()&&e.showPlainText},attrs:{id:e.inputId,autocomplete:"off",autocorrect:"off",autocapitalize:"off",spellcheck:"false",type:"radio"},domProps:{checked:e._q(e.currentValue,null)},on:{keypress:function(t){return e.$emit("keypress",t)},change:function(t){e.currentValue=null}}}):n("input",{directives:[{name:"model",rawName:"v-model",value:e.currentValue,expression:"currentValue"}],staticClass:"u-input",class:{"u-form-input-plaintext":!e.isEdgeBrowser()&&e.showPlainText},attrs:{id:e.inputId,autocomplete:"off",autocorrect:"off",autocapitalize:"off",spellcheck:"false",type:e.plainTextEnabled&&!e.isEdgeBrowser()?"text":"password"},domProps:{value:e.currentValue},on:{keypress:function(t){return e.$emit("keypress",t)},input:function(t){t.target.composing||(e.currentValue=t.target.value)}}}),e.showPlainText&&!e.isEdgeBrowser()?n("i",{staticClass:"u-input-text-plaintext fa fa-eye",class:{"u-input-text-plaintext--active":e.plainTextEnabled},attrs:{"aria-hidden":"true"},on:{click:function(t){e.plainTextEnabled=!e.plainTextEnabled}}}):e._e()]:"number"===e.type?n("input",{directives:[{name:"model",rawName:"v-model",value:e.currentValue,expression:"currentValue"}],staticClass:"u-input",attrs:{id:e.inputId,type:"number"},domProps:{value:e.currentValue},on:{keypress:function(t){return e.$emit("keypress",t)},input:function(t){t.target.composing||(e.currentValue=t.target.value)}}}):"textarea"===e.type?n("textarea",{directives:[{name:"model",rawName:"v-model",value:e.currentValue,expression:"currentValue"}],staticClass:"u-input",attrs:{id:e.inputId},domProps:{value:e.currentValue},on:{keypress:function(t){return e.$emit("keypress",t)},input:function(t){t.target.composing||(e.currentValue=t.target.value)}}}):n("input",{directives:[{name:"model",rawName:"v-model",value:e.currentValue,expression:"currentValue"}],staticClass:"u-input",attrs:{id:e.inputId,autocomplete:"off",autocorrect:"off",autocapitalize:"off",spellcheck:"false"},domProps:{value:e.currentValue},on:{keypress:function(t){return e.$emit("keypress",t)},input:function(t){t.target.composing||(e.currentValue=t.target.value)}}}),e.$slots.default?n("div",{staticClass:"u-input-text-c"},[e._t("default")],2):e._e()],2)])},s=[]},"189e":function(e,t,n){"use strict";var i=n("1bd5");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=i(n("44a4")),r=i(n("fc56")),a=i(n("9f12")),o=i(n("53fe")),c=i(n("2ef0")),u=null,l=function(){function e(t){(0,a.default)(this,e),this.state=t,this.listenForIrcEvents(),this.varsEl=null}return(0,o.default)(e,[{key:"themeVar",value:function(e){var t;this.varsEl||(this.varsEl=document.querySelector(".kiwi-wrap"));var n=window.getComputedStyle(this.varsEl),i=n.getPropertyValue("--kiwi-"+e);return(0,s.default)(t=i||"").call(t)}},{key:"availableThemes",value:function(){return this.state.settings.themes}},{key:"currentTheme",value:function(){var e=this.state,t=e.setting("theme");t=t.toLowerCase();var n=(0,r.default)(c.default).call(c.default,e.settings.themes,(function(e){var n=e.name.toLowerCase()===t;return n}));return n||(n=e.settings.themes[0]),n}},{key:"setTheme",value:function(e){var t=null;if("string"===typeof e){if(t=(0,r.default)(c.default).call(c.default,this.availableThemes(),(function(t){var n=t.name.toLowerCase()===e.toLowerCase();return n})),!t)return}else t=e;this.state.setting("theme",t.name),this.state.$emit("theme.change")}},{key:"reload",value:function(){var e=this.currentTheme();if(e){var t=e.url;t.indexOf("cb=")>-1?t=t.replace(/cb=[0-9]+/,(function(){return"cb="+Date.now()})):t.indexOf("?")>-1?t+="&cb="+Date.now():t+="?cb="+Date.now(),e.url=t,this.state.$emit("theme.change")}}},{key:"setCustomThemeUrl",value:function(t){var n=(0,r.default)(c.default).call(c.default,e.instance().availableThemes(),{name:"custom"});n&&(n.url=t),"custom"===n.name&&this.state.$emit("theme.change")}},{key:"listenForIrcEvents",value:function(){var e=this;this.state.$on("irc.ctcp request",(function(t,n){var i=(t.type||"").toLowerCase();"kiwi"===i&&t.message.indexOf("theme reload")>-1&&e.reload()}))}}],[{key:"themeUrl",value:function(e){var t=e.url.split("?"),n=t[0],i=t[1]||"";return"/"!==n[n.length-1]&&(n+="/"),n+"theme.css"+(i?"?"+i:"")}}]),e}();t.default=l,l.instance=function(e){return u||(u=new l(e)),u},window._kiwi_exports=window._kiwi_exports||{},window._kiwi_exports["libs"]||(window._kiwi_exports["libs"]={}),window._kiwi_exports["libs"]["ThemeManager"],window._kiwi_exports.libs.ThemeManager=t.default?t.default:t},"19b1":function(e,t,n){"use strict";var i=n("1bd5");Object.defineProperty(t,"__esModule",{value:!0}),t.hex2rgb=a,t.rgb2hex=o,t.rgb2hsl=c,t.hsl2rgb=u,t.rgb2rgbString=l;var s=i(n("14b1")),r=i(n("52da"));function a(e){var t=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,n=e.replace(t,(function(e,t,n,i){return t+t+n+n+i+i})),i=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(n);return i?{r:parseInt(i[1],16),g:parseInt(i[2],16),b:parseInt(i[3],16)}:null}function o(e){var t;return"#"+(0,s.default)(t=["r","g","b"]).call(t,(function(t){var n;return(0,r.default)(n="0"+e[t].toString(16)).call(n,-2)})).join("")}function c(e){var t=e.r,n=e.g,i=e.b;t/=255,n/=255,i/=255;var s=Math.max(t,n,i),r=Math.min(t,n,i),a=0,o=0,c=(s+r)/2;if(s===r)a=o=0;else{var u=s-r;o=c>.5?u/(2-s-r):u/(s+r),s===t?a=(n-i)/u+(n1&&(r-=1),r<1/6?i+6*(s-i)*r:r<.5?s:r<2/3?i+(s-i)*(2/3-r)*6:i}var n=e.h,i=e.s,s=e.l,r=0,a=0,o=0;if(0===i)r=a=o=s;else{var c=s<.5?s*(1+i):s+i-s*i,u=2*s-c;r=t(u,c,n+1/3),a=t(u,c,n),o=t(u,c,n-1/3)}return{r:Math.round(255*r),g:Math.round(255*a),b:Math.round(255*o)}}function l(e){return"rgb("+[e.r,e.g,e.b].join(",")+")"}window._kiwi_exports=window._kiwi_exports||{},window._kiwi_exports["helpers"]||(window._kiwi_exports["helpers"]={}),window._kiwi_exports["helpers"]["Colours"],window._kiwi_exports.helpers.Colours=t.default?t.default:t},"1bb3":function(e,t,n){"use strict";n.r(t);var i=n("56f4"),s=n("db24");for(var r in s)"default"!==r&&function(e){n.d(t,e,(function(){return s[e]}))}(r);n("bd77");var a=n("0c7c"),o=Object(a["a"])(s["default"],i["a"],i["b"],!1,null,null,null);t["default"]=o.exports},"1cae":function(e,t,n){"use strict";n.r(t);var i=n("01c2"),s=n.n(i);for(var r in i)"default"!==r&&function(e){n.d(t,e,(function(){return i[e]}))}(r);t["default"]=s.a},"1d88":function(e,t,n){"use strict";n.r(t);var i=n("858d"),s=n.n(i);for(var r in i)"default"!==r&&function(e){n.d(t,e,(function(){return i[e]}))}(r);t["default"]=s.a},"1dc6":function(e,t,n){"use strict";n.r(t);var i=n("4c9b"),s=n.n(i);for(var r in i)"default"!==r&&function(e){n.d(t,e,(function(){return i[e]}))}(r);t["default"]=s.a},"1f25":function(e,t,n){"use strict";var i=n("1bd5");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=i(n("44a4")),r={data:function(){return{show_help:!1}},computed:{aliasText:{get:function(){var e;return(0,s.default)(e=this.$state.setting("aliases")).call(e)},set:function(e){this.$state.setting("aliases",(0,s.default)(e).call(e))}}}};t.default=r,window._kiwi_exports=window._kiwi_exports||{},window._kiwi_exports["components"]||(window._kiwi_exports["components"]={}),window._kiwi_exports["components"]["SettingsAliases"],window._kiwi_exports.components.SettingsAliases=t.default?t.default:t},"1f5b":function(e,t,n){"use strict";n.r(t);var i=n("8e13"),s=n("1cae");for(var r in s)"default"!==r&&function(e){n.d(t,e,(function(){return s[e]}))}(r);n("7348");var a=n("0c7c"),o=Object(a["a"])(s["default"],i["a"],i["b"],!1,null,null,null);t["default"]=o.exports},"1fbc":function(e,t,n){"use strict";var i=n("9e19"),s=n("b4d1"),r=n("7c78");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=c(n("19b1"));function o(e){if("function"!==typeof s)return null;var t=new s,n=new s;return(o=function(e){return e?n:t})(e)}function c(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!==typeof e)return{default:e};var n=o(t);if(n&&n.has(e))return n.get(e);var s={},a=Object.defineProperty&&r;for(var c in e)if("default"!==c&&Object.prototype.hasOwnProperty.call(e,c)){var u=a?r(e,c):null;u&&(u.get||u.set)?Object.defineProperty(s,c,u):s[c]=e[c]}return s.default=e,n&&n.set(e,s),s}var u={props:["ircinput"],data:function(){return{}},methods:{onColourClick:function(e){var t=window.getComputedStyle(e.target,null).getPropertyValue("background-color"),n=t.match(/^rgb\((\d+),\s*(\d+),\s*(\d+)\)$/);if(n){var i={r:parseInt(n[1],10),g:parseInt(n[2],10),b:parseInt(n[3],10)};t=a.rgb2hex(i)}var s=e.target.dataset.code;this.ircinput.setColour(s,t)},onResetClick:function(){this.ircinput.resetStyles()}}};t.default=u,window._kiwi_exports=window._kiwi_exports||{},window._kiwi_exports["components"]||(window._kiwi_exports["components"]={}),window._kiwi_exports["components"]["inputtools"]||(window._kiwi_exports["components"]["inputtools"]={}),window._kiwi_exports["components"]["inputtools"]["TextStyle"],window._kiwi_exports.components.inputtools.TextStyle=t.default?t.default:t},"1fe6":function(e,t,n){"use strict";n.r(t);var i=n("d3e9"),s=n("2443");for(var r in s)"default"!==r&&function(e){n.d(t,e,(function(){return s[e]}))}(r);n("b4e6");var a=n("0c7c"),o=Object(a["a"])(s["default"],i["a"],i["b"],!1,null,null,null);t["default"]=o.exports},2:function(e,t){},"20d1":function(e,t,n){"use strict";var i=n("1bd5");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=i(n("e4f0")),r=i(n("2ef0")),a=i(n("9332")),o=i(n("e54d")),c={props:["network"],data:function(){return{sidebarOpen:!1,page:0,page_size:200,search:"",last_updated:0}},computed:{noResults:function(){return"updated"===this.listState&&0===this.filteredList.length},isLoading:function(){return"updating"===this.listState},listState:function(){return this.network.channel_list_state},list:function(){return this.network.channel_list||[]},filteredList:function(){var e,t=this,n=[];this.search.length<=2?n=this.list:n=(0,s.default)(e=this.list).call(e,(function(e){var n=!1;return e.channel.toLowerCase().indexOf(t.search)>-1&&(n=!0),e.topic.toLowerCase().indexOf(t.search)>-1&&(n=!0),n}));return r.default.sortBy(n,"num_users").reverse()},paginated:function(){for(var e=this.page*this.page_size,t=this.filteredList,n=[],i=e;i=this.filteredList.length},canGoBackward:function(){return this.page>0}},watch:{search:function(){this.page=0}},methods:{nextPage:function(){this.page0&&this.page--},maybeUpdateList:function(){"updating"!==this.listState&&this.network.ircClient.raw("LIST")},formatAndTrimTopic:function(e){var t=this.$state.setting("showChanlistModes"),n=t?e:e.replace(/^\[([^\]]+)\] ?/,""),i=(0,o.default)(n,{extras:!1}),s=(0,a.default)(i);return s},joinChannel:function(e){var t=this.$state.getBufferByName(this.network.id,e);t?this.$state.setActiveBuffer(this.network.id,e):(this.$state.addBuffer(this.network.id,e),this.network.ircClient.join(e),this.$state.ui.is_narrow&&this.$state.setActiveBuffer(this.network.id,e))}}};t.default=c,window._kiwi_exports=window._kiwi_exports||{},window._kiwi_exports["components"]||(window._kiwi_exports["components"]={}),window._kiwi_exports["components"]["ChannelList"],window._kiwi_exports.components.ChannelList=t.default?t.default:t},"20fd":function(e,t,n){"use strict";var i=n("9e19"),s=n("b4d1"),r=n("7c78"),a=n("1bd5");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=a(n("fc56")),c=a(n("3393")),u=a(n("e4f0")),l=a(n("b6ce")),f=a(n("e76e")),d=a(n("fa81")),p=a(n("9a73")),h=a(n("a3e3")),w=a(n("9f12")),m=a(n("53fe")),v=a(n("5ee5")),g=a(n("2ef0")),_=n("bb3c"),k=a(n("4cdc")),b=C(n("8f39"));function y(e){if("function"!==typeof s)return null;var t=new s,n=new s;return(y=function(e){return e?n:t})(e)}function C(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!==typeof e)return{default:e};var n=y(t);if(n&&n.has(e))return n.get(e);var s={},a=Object.defineProperty&&r;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var c=a?r(e,o):null;c&&(c.get||c.set)?Object.defineProperty(s,o,c):s[o]=e[o]}return s.default=e,n&&n.set(e,s),s}var x=0,$=function(){function e(t,n,i,s){(0,w.default)(this,e),this.id=x++,this.networkid=n,this.name=t,this.topics=[],this.key="",this.joined=!1,this.enabled=!0,this.created_at=null,this.users=Object.create(null),this.modes=Object.create(null),this.flags={unread:0,has_opened:!1,channel_badkey:!1,chathistory_available:!0,requested_modes:!1,requested_banlist:!1,is_requesting_chathistory:!1},this.settings={},this.last_read=0,this.active_timeout=null,this.message_count=0,this.current_input="",this.input_history=[],this.input_history_pos=0,this.show_input=!0,this.latest_messages=[],this.chathistory_request_count=0,v.default.observable(this),(0,_.def)(this,"state",i,!1),(0,_.def)(this,"messageDict",s,!1);var r={networkid:this.networkid,buffer:this.name,messages:[],messageIds:Object.create(null)};function a(e){e.network===this.getNetwork()&&(this.chathistory_request_count=0)}function o(e,t){t===this.getNetwork()&&this.isQuery()&&this.requestLatestScrollback()}function c(e){e.buffer===this&&(this.state.$off("network.connecting",u),this.state.$off("buffer.close",l),this.state.$off("irc.motd",f))}this.messageDict.push(r),(0,_.def)(this,"messagesObj",r,!1),(0,_.def)(this,"isMessageTrimming",!0,!0),(0,_.def)(this,"addMessageBatch",O(this),!1),(0,_.def)(this,"addUserBatch",S(this),!1),this.isChannel()&&N(this);var u=a.bind(this),l=c.bind(this),f=o.bind(this);i.$on("network.connecting",u),i.$on("buffer.close",l),i.$on("irc.motd",f),this.isQuery()&&this.getNetwork().ircClient.chathistory.isSupported()&&this.requestLatestScrollback()}return(0,m.default)(e,[{key:"topic",get:function(){return 0===this.topics.length?"":this.topics[this.topics.length-1]},set:function(e){this.topics.push(e)}},{key:"getNetwork",value:function(){return this.state.getNetwork(this.networkid)}},{key:"getMessages",value:function(){var e=(0,o.default)(g.default).call(g.default,this.messageDict,{networkid:this.networkid,buffer:this.name});return e?e.messages:[]}},{key:"getLastMessage",value:function(){var e=this.getMessages();if(0!==e.length)return e[e.length-1]}},{key:"clearMessages",value:function(){var e;(0,c.default)(e=this.messagesObj.messages).call(e,0,this.messagesObj.messages.length),this.messagesObj.messageIds=Object.create(null)}},{key:"clearMessageRange",value:function(e,t){var n,i=this;this.messagesObj.messages=(0,u.default)(n=this.messagesObj.messages).call(n,(function(n){return n.server_timet||(delete i.messagesObj.messageIds[n.id],!1)})),this.message_count++}},{key:"isServer",value:function(){return"*"===this.name}},{key:"isChannel",value:function(){var e=["#","&"],t=this.getNetwork().ircClient.network;return t&&t.options.CHANTYPES&&(e=t.options.CHANTYPES),e.indexOf(this.name[0])>-1}},{key:"isQuery",value:function(){var e=["#","&"],t=this.getNetwork().ircClient.network;return t&&t.options.CHANTYPES&&(e=t.options.CHANTYPES),-1===e.indexOf(this.name[0])&&!this.isSpecial()&&!this.isServer()}},{key:"isSpecial",value:function(){var e=this.name;return"*"===e[0]&&e.length>1}},{key:"isUserAnOp",value:function(e){var t=this.state.getUser(this.networkid,e);if(!t)return!1;var n=t.buffers[this.id];if(!n)return!1;var i=n.modes,s=["Y","y","q","a","o","h"],r=(0,o.default)(g.default).call(g.default,i,(function(e){return s.indexOf(e.toLowerCase())>-1}));return!!r}},{key:"userModePrefix",value:function(e){if(!e.buffers[this.id])return"";var t=e.buffers[this.id].modes;if(0===t.length)return"";var n=this.getNetwork(),i=n.ircClient.network.options.PREFIX,s=(0,o.default)(g.default).call(g.default,i,(function(e){return t.indexOf(e.mode)>-1}));return s?s.symbol:""}},{key:"userMode",value:function(e){if(!e.buffers[this.id])return"";var t=e.buffers[this.id].modes;if(0===t.length)return"";if(1===t.length)return t[0];var n=this.getNetwork(),i=n.ircClient.network.options.PREFIX,s=(0,o.default)(g.default).call(g.default,i,(function(e){return t.indexOf(e.mode)>-1}));return s?s.mode:""}},{key:"setting",value:function(e,t){if("undefined"!==typeof t)return this.state.$set(this.settings,e,t),t;var n="undefined"!==typeof this.settings[e]?this.settings[e]:this.state.setting("buffers."+e);return n}},{key:"rename",value:function(e){var t=this.getNetwork(),n=this.name,i=this.state.getActiveBuffer()===this;this.name=e,i&&this.state.setActiveBuffer(t.id,e);var s=(0,o.default)(g.default).call(g.default,this.messageDict,{networkid:t.id,buffer:n});s.buffer=e}},{key:"flag",value:function(e,t){return"undefined"!==typeof t?(this.state.$set((0,l.default)(this),e,t),t):(0,l.default)(this)[e]}},{key:"requestScrollback",value:function(e){var t=this,n=e||"backward",i="",s="before";if("backward"===n){var r=this.getMessages().reduce((function(e,t){var n=["traffic","topic","connection","presence"],i=-1===n.indexOf(e.type);return i&&e.time&&e.timet.time?e:t}),this.getMessages()[0]);s="after",i=a?new Date(a.server_time):new Date}var o=this.getNetwork().ircClient;this.flag("is_requesting_chathistory",!0),this.chathistory_request_count+=1;var c=(0,f.default)({},this.messagesObj.messageIds);o.chathistory[s](this.name,i).then((function(e){if(e){var n=e.commands.some((function(e){return e.tags.msgid&&!c[e.tags.msgid]}));t.flag("chathistory_available",n)}else t.flag("chathistory_available",!1)})).finally((function(){t.flag("is_requesting_chathistory",!1)}))}},{key:"requestLatestScrollback",value:function(){var e=this,t=this.getNetwork().ircClient;this.flag("is_requesting_chathistory",!0),this.chathistory_request_count+=1,t.chathistory.before(this.name,"*").finally((function(){e.flag("is_requesting_chathistory",!1)}))}},{key:"markAsRead",value:function(e){if(this.active_timeout&&(clearTimeout(this.active_timeout),this.active_timeout=null),e)this.active_timeout=setTimeout(this.markAsRead.bind(this),1e4,!1);else{this.last_read=Date.now(),this.flag("highlight",!1);var t=this.getNetwork(),n=!!t&&(this.isChannel()||this.isQuery());n&&t.connection.bncnetid&&t.ircClient.bnc.bufferSeen(t.connection.bncnetid,this.name)}}},{key:"incrementFlag",value:function(e){(0,l.default)(this)[e]=((0,l.default)(this)[e]||0)+1}},{key:"addUser",value:function(e){this.addUserBatch(e)}},{key:"hasNick",value:function(e){var t=e.toUpperCase();return t in this.users||this.isQuery()&&this.name.toUpperCase()===t}},{key:"hasMode",value:function(e){return(0,d.default)(this.modes).indexOf(e)>-1}},{key:"shouldShareTyping",value:function(){var e=this.getNetwork();return!!this.setting("share_typing")&&(!(!this.isChannel()&&!this.isQuery())&&(!(this.isChannel()&&!this.joined)&&!(this.hasMode("m")&&!this.userMode(e.currentUser()))))}},{key:"removeUser",value:function(e){var t=this.state.getUser(this.networkid,e);g.default.pull(this.addUserBatch.queue(),t),this.state.$delete(this.users,e.toUpperCase()),t&&delete t.buffers[this.id]}},{key:"clearUsers",value:function(){var e,t=this;this.addUserBatch&&(0,c.default)(e=this.addUserBatch.queue()).call(e,0),g.default.each(this.users,(function(e,n){delete e.buffers[t.id]})),this.state.$set(this,"users",{})}},{key:"addMessage",value:function(e){this.addMessageBatch(e)}},{key:"updateLatestMessages",value:function(e){var t,n=this;if((0,p.default)(t=["privmsg","notice"]).call(t,e.type)){var i=function(e){return n.latest_messages[0].time<=e.time&&n.latest_messages[0].instance_num5&&(this.latest_messages.length=5)}}},{key:"getLatestMessage",value:function(){return this.latest_messages[0]}},{key:"say",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.getNetwork(),i={time:Date.now(),nick:n.nick,message:e,tags:t.tags||{},type:t.type||"privmsg"};this.state.addMessage(this,i);var s={privmsg:"say",action:"action",notice:"notice",tagmsg:"tagmsg"},r=s[t.type]||"say";n.ircClient[r](this.name,e,t.tags)}},{key:"join",value:function(){if(this.isChannel()){var e=this.getNetwork();e.ircClient.join(this.name,this.key||"")}}},{key:"part",value:function(e){if(this.isChannel()){var t=this.getNetwork();t.ircClient.part(this.name,e||"")}}},{key:"scrollToMessage",value:function(e){this.state.$emit("messagelist.scrollto",{id:e})}},{key:"getLoadingState",value:function(){var e=this.getNetwork().state,t=!!this.getNetwork().ircClient.chathistory.isSupported(),n=this.addMessageBatch.queue().length;this.message_count;return"disconnected"===e?"disconnected":"connecting"===e?"connecting":"connected"===e&&this.enabled&&t&&((0,l.default)(this).is_requesting_chathistory||0===this.chathistory_request_count||n>0)?"loading":"done"}},{key:"isReady",value:function(){return"done"===this.getLoadingState()}}]),e}();function S(e){var t=function(t){e.state.$set(e.users,t.nick.toUpperCase(),t)},n=function(t){var n=(0,f.default)(Object.create(null),e.users);t.forEach((function(e){n[e.nick.toUpperCase()]=e})),e.users=n};return(0,k.default)(t,n,2)}function O(e){var t=function(t){e.messagesObj.messageIds[t.id]||(e.updateLatestMessages(t),e.messagesObj.messages.push(t),e.messagesObj.messageIds[t.id]=t,e.isMessageTrimming&&i(),b.orderedMessages(e,{inPlace:!0,noFilter:!0}),e.message_count++)},n=function(t){var n,s=(0,u.default)(t).call(t,(function(t){return!e.messagesObj.messageIds[t.id]}));s.length>0&&(e.messagesObj.messages=(0,h.default)(n=e.messagesObj.messages).call(n,s),s.forEach((function(t){e.updateLatestMessages(t),e.messagesObj.messageIds[t.id]=t})),e.isMessageTrimming&&i(),b.orderedMessages(e,{inPlace:!0,noFilter:!0}));e.message_count++},i=function(){var t=e.setting("scrollback_size"),n=e.messagesObj.messages.length;if(e.messagesObj.messages.length>t){var i,s=(0,c.default)(i=e.messagesObj.messages).call(i,0,n-t);s.forEach((function(t){return delete e.messagesObj.messageIds[t.id]}))}};return(0,k.default)(t,n,4)}function N(e){var t=e.state.getNetwork(e.networkid);if("connected"===t.state)i();else{var n=function n(s,r,a){a===t&&(e.state.$off("irc.raw.001",n),i())};e.state.$on("irc.raw.001",n)}function i(){setTimeout(s,3e4)}function s(){if(t=e.state.getNetwork(e.networkid),t&&t.bufferByName(e.name)){var n=e.setting("who_loop"),s=e.joined,r=t.ircClient.network.cap.isEnabled("away-notify"),a="connected"===t.state;n&&a&&s&&!r?t.ircClient.who(e.name,(function(){i()})):i()}}}t.default=$},2246:function(e,t,n){"use strict";n("c207")},2295:function(e,t,n){"use strict";var i=n("1bd5");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=i(n("2ef0")),r=i(n("189e")),a=i(n("385f")),o=i(n("3c38")),c=i(n("ac2f")),u=i(n("c35c"));function l(e){return{get:function(){return this.$state.setting(e)},set:function(t){this.$state.setting(e,t)}}}var f={components:{SettingsAliases:c.default,SettingsAdvanced:u.default},data:function(){return{theme:"",customThemeUrl:"",pluginUiElements:a.default.singleton().appSettingsPlugins,localesList:o.default}},computed:{themeSupportsMonospace:function(){var e=r.default.instance(),t=e.themeVar("supports-monospace");return"1"===t},canRegisterProtocolHandler:function(){return!!navigator.registerProtocolHandler&&this.$state.setting("allowRegisterProtocolHandler")},timestamps_24h:{get:function(){return"%H"===this.$state.setting("buffers.timestamp_format").substr(0,2)},set:function(e){var t=e?"%H:%M:%S":"%l:%M:%S %p";this.$state.setting("buffers.timestamp_format",t)}},settings:function(){return this.$state.settings},settingShowAutoComplete:l("showAutocomplete"),settingUseMonospace:l("useMonospace"),settingHighlights:l("highlights"),settingBufferColourNicknames:l("buffers.colour_nicknames_in_messages"),settingBufferShowTimestamps:l("buffers.show_timestamps"),settingBufferShowEmoticons:l("buffers.show_emoticons"),settingBufferBlockPms:l("buffers.block_pms"),settingBufferScrollbackSize:l("buffers.scrollback_size"),settingBufferExtraFormatting:l("buffers.extra_formatting"),settingBufferTrafficAsActivity:l("buffers.traffic_as_activity"),settingBufferMuteSound:l("buffers.mute_sound"),settingBufferShareTyping:l("buffers.share_typing"),settingBufferInlineLinkPreviews:l("buffers.inline_link_auto_previews"),settingDefaultBanMask:l("buffers.default_ban_mask"),settingDefaultKickReason:l("buffers.default_kick_reason"),settingAdvancedEnable:{get:function(){return this.$state.ui.show_advanced_tab},set:function(e){this.$state.ui.show_advanced_tab=e}},settingLanguage:{get:function(){return this.$state.setting("language")||""},set:function(e){this.$state.setting("language",e||null)}},messageLayouts:function(){return{traditional:"compact",modern:"modern",inline:"inline"}},settingMessageLayout:{set:function(e){var t=this.messageLayouts;this.$state.setting("buffers.messageLayout",t[e]||t.modern)},get:function(){var e=this.$state.setting("buffers.messageLayout"),t=s.default.invert(this.messageLayouts);return t[e]}}},created:function(){this.listenForThemeSettings()},methods:{closeSettings:function(){this.$state.$emit("active.component")},refreshTheme:function(){r.default.instance().reload()},listenForThemeSettings:function(){var e=this,t=r.default.instance(),n=[],i=function(){var n=t.currentTheme();e.theme=n.name,e.customThemeUrl="custom"===n.name?n.url:""},s=function(e){t.setTheme(e)},a=function(e){"custom"===t.currentTheme().name&&t.setCustomThemeUrl(e)},o=function t(){e.$state.$off("theme.change",i),n.forEach((function(e){return e()})),e.$off("hook:destroy",t)};i(),this.$state.$on("theme.change",i),this.$once("hook:destroyed",o),n=[this.$watch("theme",s),this.$watch("customThemeUrl",a)]},enableAdvancedTab:function(){var e=this;this.settingAdvancedEnable=!0,this.$nextTick((function(){e.$refs.tabs.setActiveByName("advanced"),e.$el.scrollTop=0}))},makeDefaultProtocolHandler:function(){navigator.registerProtocolHandler("irc",document.location.origin+document.location.pathname+"#%s","Kiwi IRC"),navigator.registerProtocolHandler("ircs",document.location.origin+document.location.pathname+"#%s","Kiwi IRC")}}};t.default=f,window._kiwi_exports=window._kiwi_exports||{},window._kiwi_exports["components"]||(window._kiwi_exports["components"]={}),window._kiwi_exports["components"]["AppSettings"],window._kiwi_exports.components.AppSettings=t.default?t.default:t},"23ce":function(e,t,n){"use strict";var i=n("9e19"),s=n("b4d1"),r=n("7c78"),a=n("1bd5");Object.defineProperty(t,"__esModule",{value:!0}),t.default=h;var o=a(n("3818")),c=a(n("a3e3")),u=a(n("fa81")),l=n("f43a"),f=p(n("862b"));function d(e){if("function"!==typeof s)return null;var t=new s,n=new s;return(d=function(e){return e?n:t})(e)}function p(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!==typeof e)return{default:e};var n=d(t);if(n&&n.has(e))return n.get(e);var s={},a=Object.defineProperty&&r;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var c=a?r(e,o):null;c&&(c.get||c.set)?Object.defineProperty(s,o,c):s[o]=e[o]}return s.default=e,n&&n.set(e,s),s}function h(){var e=[],t={};return function(e,t,i){e.requestCap("bouncer"),w(e),t.use(n)};function n(n,i,s,r,a){if("BOUNCER"===n){var o=i.params;if("listnetworks"===o[0]&&["end","RPL_OK"].indexOf(o[1])>-1)r.command_handler.emit("bouncer networks",e),e=[];else if("listnetworks"===o[0]){var c=l.MessageTags.decode(o[2]);e.push({networkId:o[1],name:c.network,host:c.host,port:parseInt(c.port,10),tls:"1"===c.tls,connected:"connected"===c.state,nick:c.nick,currentNick:c.currentNick,password:c.password||"",account:c.account||"",account_password:c.account_password||""})}else if("listbuffers"===o[0]&&["end","RPL_OK"].indexOf(o[2])>-1){var u=o[1]||"",f=t[u]||[];delete t[u],r.command_handler.emit("bouncer buffers",f),r.command_handler.emit("bouncer buffers "+u,f)}else if("listbuffers"===o[0]){var d=o[1]||"",p=l.MessageTags.decode(o[2]);t[d]=t[d]||[],t[d].push({networkId:d,network:p.network,name:p.buffer,topic:p.topic,joined:"1"===p.joined,seen:p.seen,notify:p.notify||"highlight"})}else"state"===o[0]&&r.command_handler.emit("bouncer state",{networkId:o[1],network:o[2],state:o[3]});if("addnetwork"===o[0]&&"ERR_"===o[3].substr(0,4)){var h=(o[2]||"").toLowerCase(),w={error:o[3],reason:o[4]||""};r.command_handler.emit("bouncer addnetwork error",w),r.command_handler.emit("bouncer addnetwork error "+h,w)}else if("addnetwork"===o[0]&&["end","RPL_OK"].indexOf(o[3])>-1){var m=o[1]||"",v=(o[2]||"").toLowerCase(),g={networkId:m,network:v};r.command_handler.emit("bouncer addnetwork ok",g),r.command_handler.emit("bouncer addnetwork ok "+v,g)}}else a()}}function w(e){var t=e.bnc={};t.tags=function(){var t=e.network.supports("bouncer");return t&&"string"===typeof t&&l.MessageTags.decode(t)||{}},t.hasNetwork=function(){var t=e.network.supports("bouncer");if(!t||!0===t)return!1;var n=l.MessageTags.decode(t);return n&&!!n.network},t.getNetworks=function(){return new o.default((function(t,n){e.raw("BOUNCER listnetworks"),e.once("bouncer networks",(function(e){t(e)}))}))},t.getBuffers=function(t){return new o.default((function(n,i){e.raw("BOUNCER listbuffers "+t),e.once("bouncer buffers "+t,(function(e){n(e)}))}))},t.closeBuffer=function(t,n){return new o.default((function(i,s){var r;e.raw((0,c.default)(r="BOUNCER delbuffer ".concat(t," ")).call(r,n))}))},t.bufferSeen=function(t,n,i){return new o.default((function(s,r){var a,o,u=i?f.dateIso(i):"1";e.raw((0,c.default)(a=(0,c.default)(o="BOUNCER changebuffer ".concat(t," ")).call(o,n," seen=")).call(a,u))}))},t.addNetwork=function(t,n,i,s,r,a,c){var u={};u.network=t,u.host=n,u.port=i,u.tls=s?1:0,u.nick=r,u.password=c,a&&(u.user=a);var l=m(u);return new o.default((function(n,i){function s(t){e.off("bouncer addnetwork error",r),n(t)}function r(n){e.off("bouncer addnetwork ok "+t.toLowerCase(),s),i({error:n.error,reason:n.reason})}e.raw("BOUNCER addnetwork "+l),e.once("bouncer addnetwork ok "+t.toLowerCase(),s),e.once("bouncer addnetwork error",r)}))},t.removeNetwork=function(t,n){return new o.default((function(n,i){e.raw("BOUNCER delnetwork ".concat(t))}))},t.saveNetwork=function(t,n){var i={};"undefined"!==typeof n.network&&(i.network=n.network),"undefined"!==typeof n.host&&(i.host=n.host),"undefined"!==typeof n.port&&(i.port=n.port),"undefined"!==typeof n.tls&&(i.tls=n.tls?1:0),"undefined"!==typeof n.nick&&(i.nick=n.nick),"undefined"!==typeof n.user&&(i.user=n.user),"undefined"!==typeof n.password&&(i.password=n.password),"undefined"!==typeof n.account_password&&(i.account_password=n.account_password),"undefined"!==typeof n.account&&(i.account=n.account);var s=m(i);return new o.default((function(n,i){var r;0===s.length?n():e.raw((0,c.default)(r="BOUNCER changenetwork ".concat(t," ")).call(r,s))}))}}function m(e){var t=[];return(0,u.default)(e).forEach((function(n){var i=e[n];"undefined"!==typeof i?(i=i.toString().replace(" ","\\s").replace(";","\\:"),t.push(n+"="+i)):t.push(n)})),t.join(";")}window._kiwi_exports=window._kiwi_exports||{},window._kiwi_exports["libs"]||(window._kiwi_exports["libs"]={}),window._kiwi_exports["libs"]["BouncerMiddleware"],window._kiwi_exports.libs.BouncerMiddleware=t.default?t.default:t},2436:function(e,t,n){},2443:function(e,t,n){"use strict";n.r(t);var i=n("d26e"),s=n.n(i);for(var r in i)"default"!==r&&function(e){n.d(t,e,(function(){return i[e]}))}(r);t["default"]=s.a},2719:function(e,t,n){},"27c1":function(e,t,n){"use strict";n("02c6")},"281c":function(e,t,n){"use strict";n("2e69")},"28a9":function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return s}));var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"kiwi-notconnected kiwi-warning-block",class:{connecting:e.shouldShowLoading}},[e.shouldShowLoading?n("div",{staticClass:"kiwi-notconnected-caption"},[e._v(" "+e._s(e.$t("connecting"))+" "),n("i",{staticClass:"fa fa-refresh fa-spin kiwi-notconnected-bigicon",attrs:{"aria-hidden":"true"}})]):[n("div",{staticClass:"kiwi-notconnected-caption"},[n("span",[e._v(e._s(e.$t("not_connected")))]),e.shouldShowLoading?e._e():n("i",{staticClass:"fa fa-frown-o",attrs:{"aria-hidden":"true"}})]),n("div",{staticClass:"kiwi-notconnected-buttons"},[e.isChannel()?[n("span",{staticClass:"kiwi-notconnected-button",attrs:{disabled:!e.readyToStart},on:{click:e.reconnect}},[n("i",{staticClass:"fa fa-arrow-circle-o-right",attrs:{"aria-hidden":"true"}}),e._v(" "+e._s(e.$t("reconnect_channel",{channel:e.buffer.name}))+" ")])]:e.isServer()?[n("span",{staticClass:"kiwi-notconnected-button",attrs:{disabled:!e.readyToStart},on:{click:e.reconnect}},[n("i",{staticClass:"fa fa-arrow-circle-o-right",attrs:{"aria-hidden":"true"}}),e._v(" "+e._s(e.$t("reconnect_network",{network:e.buffer.getNetwork().name}))+" ")])]:e.isQuery()?[n("span",{staticClass:"kiwi-notconnected-button",attrs:{disabled:!e.readyToStart},on:{click:e.reconnect}},[n("i",{staticClass:"fa fa-arrow-circle-o-right",attrs:{"aria-hidden":"true"}}),e._v(" "+e._s(e.$t("reconnect_query",{user:e.buffer.name}))+" ")])]:e._e(),e.restrictedServer?e._e():n("a",{staticClass:"kiwi-notconnected-button kiwi-notconnected-button-settings",on:{click:e.showNetworkSettings}},[n("i",{staticClass:"fa fa-cogs",attrs:{"aria-hidden":"true"}})])],2)],n("captcha",{staticClass:"kiwi-notconnected-captcha",attrs:{network:e.network}})],2)},s=[]},"28c0":function(e,t,n){"use strict";n.r(t);var i=n("1522"),s=n("83d5");for(var r in s)"default"!==r&&function(e){n.d(t,e,(function(){return s[e]}))}(r);n("c00a");var a=n("0c7c"),o=Object(a["a"])(s["default"],i["a"],i["b"],!0,null,null,null);t["default"]=o.exports},"28e2":function(e,t,n){"use strict";n.r(t);var i=n("674d"),s=n("6d41");for(var r in s)"default"!==r&&function(e){n.d(t,e,(function(){return s[e]}))}(r);n("4503");var a=n("0c7c"),o=Object(a["a"])(s["default"],i["a"],i["b"],!1,null,null,null);t["default"]=o.exports},"29d6":function(e,t,n){"use strict";var i=n("9e19"),s=n("b4d1"),r=n("7c78"),a=n("1bd5");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=a(n("284c")),c=a(n("44a4")),u=a(n("e4f0")),l=a(n("8fa2")),f=a(n("2ef0")),d=m(n("852e")),p=m(n("19b1")),h=m(n("862b"));function w(e){if("function"!==typeof s)return null;var t=new s,n=new s;return(w=function(e){return e?n:t})(e)}function m(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!==typeof e)return{default:e};var n=w(t);if(n&&n.has(e))return n.get(e);var s={},a=Object.defineProperty&&r;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var c=a?r(e,o):null;c&&(c.get||c.set)?Object.defineProperty(s,o,c):s[o]=e[o]}return s.default=e,n&&n.set(e,s),s}var v=n("5ee5"),g=v.component("irc-input",{props:["placeholder"],data:function(){return{last_known_value:"",text_value:"",current_el:null,current_el_pos:0,default_colour:null,code_map:Object.create(null)}},computed:{editor:function(){return this.$refs.editor}},mounted:function(){this.resetStyles()},methods:{onTextInput:function(e){var t;"\n"===e.data[e.data.length-1]&&(e.preventDefault(),this.setCurrentWord((0,c.default)(t=e.data).call(t)))},onPaste:function(e){var t=this;if(e.preventDefault(),"undefined"!==typeof e.clipboardData){var n=!1,i=e.clipboardData;if(i.types.forEach((function(e){var t=["Files","image"];t.forEach((function(t){e.indexOf(t)>-1&&(n=!0)}))})),n)return;document.execCommand("insertText",!1,i.getData("text/plain"))}else{var s=window.clipboardData.getData("Text");if(!s)return;var r=window.getSelection(),a=r.getRangeAt(0);a&&(a.deleteContents(),a.insertNode(document.createTextNode(s)))}setTimeout((function(){t.updateValueProps()}),0)},onFocus:function(e){this.focus(),!this.getRawText()&&this.default_colour&&this.setColour(this.default_colour.code,this.default_colour.colour),this.$emit("focus",e)},updateValueProps:function(){if(this.$el.contains(document.activeElement)){var e=window.getSelection();0!==e.rangeCount&&(this.current_el_pos=e.anchorOffset,this.current_el=e.anchorNode,this.maybeEmitInput())}},selectionToEnd:function(){var e=this.$refs.editor.lastChild||this.$refs.editor;this.current_el=e,3===e.nodeType?this.current_el_pos=e.length:this.$el.contains(document.activeElement)?(document.execCommand("selectAll",!1,null),document.getSelection().collapseToEnd(),this.updateValueProps()):this.current_el_pos=0},setValue:function(e){this.value=e,this.$refs.editor.innerHTML=e},getValue:function(){return this.$refs.editor.innerHTML},maybeEmitInput:function(){var e=this.$refs.editor.innerHTML;this.last_known_value!==e&&(this.$emit("input",e),this.last_known_value=e)},buildIrcText:function(){var e,t=this,n=this.$refs.editor.innerHTML,i="",s=[];function r(e){s[s.length-1]+=e}function a(){return s[s.length-1]}var o=new d.Parser({onopentag:function(e,n){s.push("");var o="";if(n.style){var c=n.style.match(/color: ([^;]+)/);if(c){o=c[1];var u=t.code_map[o];if(!u){var l=o.match(/^rgb\((\d+),\s*(\d+),\s*(\d+)\)$/);if(l){var f=p.rgb2hex({r:parseInt(l[1],10),g:parseInt(l[2],10),b:parseInt(l[3],10)});u=t.code_map[f]}}u&&(i+=""+u,r(""+u))}n.style.indexOf("bold")>-1&&(i+="",r("")),n.style.indexOf("italic")>-1&&(i+="",r("")),n.style.indexOf("underline")>-1&&(i+="",r(""))}else if(n.color){var d=t.code_map[n.color]||t.code_map[n.color.replace(/,/g,", ")]||t.code_map[p.hex2rgb(n.color)];d&&(i+=""+d,r(""+d))}else"strong"===e?(i+="",r("")):"em"===e?(i+="",r("")):"u"===e?(i+="",r("")):"div"!==e&&"br"!==e||(i+=a(),i+="\n",i+=a());n.src&&t.code_map[n.src]&&(i+=t.code_map[n.src])},ontext:function(e){i+=e},onclosetag:function(e){i+=a(),s.pop()}},{decodeEntities:!0});return o.write(n),o.end(),(0,u.default)(e=i.split(/\r?\n/)).call(e,(function(e){return!!h.stripStyles(e)})).join("\n")},reset:function(e,t){this.$refs.editor.innerHTML=e||"",this.current_el_pos=0,this.current_el=this.$refs.editor;var n=this.$refs.editor.querySelector("br");n&&n.parentNode.removeChild(n),t?(this.focus(),this.default_colour&&this.setColour(this.default_colour.code,this.default_colour.colour),this.updateValueProps()):this.maybeEmitInput()},resetStyles:function(){this.focus(),document.execCommand("styleWithCSS",!1,!0),document.execCommand("selectAll",!1,null),document.execCommand("removeFormat",!1,null),this.default_colour=null},setColour:function(e,t){var n=window.getSelection().getRangeAt(0);n&&n.collapsed&&(this.default_colour={code:e,colour:t}),this.focus(),document.execCommand("styleWithCSS",!1,!0),document.execCommand("foreColor",!1,t),this.code_map[t]=e,this.updateValueProps()},toggleBold:function(){document.execCommand("bold",!1,null),this.updateValueProps()},toggleItalic:function(){document.execCommand("italic",!1,null),this.updateValueProps()},toggleUnderline:function(){document.execCommand("underline",!1,null),this.updateValueProps()},addImg:function(e,t){this.focus();var n=(0,o.default)((0,l.default)(f.default).call(f.default,this.$refs.editor.querySelectorAll("img")));document.execCommand("styleWithCSS",!1,!0),document.execCommand("insertImage",!1,t),this.code_map[t]=e;var i=null,s=(0,o.default)((0,l.default)(f.default).call(f.default,this.$refs.editor.querySelectorAll("img")));s.forEach((function(e){-1===n.indexOf(e)&&(i=e)}));var r=0,a=i;while(a)a=a.previousSibling,r++;this.current_el=this.$refs.editor,this.current_el_pos=r,this.updateValueProps(),this.focus()},insertText:function(e){this.focus(),document.execCommand("insertText",!1,e),this.updateValueProps(),this.focus()},setCurrentWord:function(e,t){var n=this.current_el,i=this.current_el_pos,s=n.textContent||"",r=s.substr(0,i),a=r.lastIndexOf(" ");-1===a?a=0:a++;var o=a,c=s.substr(i);a=c.indexOf(" "),-1===a&&(a=c.length);var u=a;n.textContent=r.substr(0,o)+e+c.substr(u);var l=document.createRange();t?(l.setStart(n,i),l.setEnd(n,i)):3===n.nodeType?(l.setStart(n,o+e.length),l.setEnd(n,o+e.length)):(l.setStart(n,1),l.setEnd(n,1)),this.$refs.editor.focus();var f=window.getSelection();f.removeAllRanges(),f.addRange(l),this.updateValueProps()},getCurrentWord:function(){var e=this.current_el,t=this.current_el_pos,n=e.textContent,i=n.substr(0,t),s=i.lastIndexOf(" ");-1===s?s=0:s++;var r=s;s=n.indexOf(" ",r),-1===s&&(s=n.length);var a=s;return{word:n.substr(r,a),position:t-r}},getCaretIdx:function(){var e=0,t=window.getSelection();if(0!==t.rangeCount){var n=window.getSelection().getRangeAt(0),i=n.cloneRange();i.selectNodeContents(this.$el),i.setEnd(n.endContainer,n.endOffset),e=i.toString().length}return e},getRawText:function(){return this.$refs.editor.innerText},focus:function(){var e=window.getSelection(),t=document.createRange();t.setStart(this.current_el||this.$refs.editor,this.current_el_pos||0),e.removeAllRanges(),e.addRange(t)}}});t.default=g,window._kiwi_exports=window._kiwi_exports||{},window._kiwi_exports["components"]||(window._kiwi_exports["components"]={}),window._kiwi_exports["components"]["utils"]||(window._kiwi_exports["components"]["utils"]={}),window._kiwi_exports["components"]["utils"]["IrcInput"],window._kiwi_exports.components.utils.IrcInput=t.default?t.default:t},"2a2d":function(e,t,n){},"2a81":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i={props:["network"],data:function(){return{recaptchaUrl:"",recaptchaSiteId:"",recaptchaResponse:"",showCaptcha:!1}},created:function(){var e=this,t=this.$state.settings.startupOptions;this.recaptchaSiteId=t.recaptchaSiteId||"",this.recaptchaUrl=t.recaptchaUrl||"https://www.google.com/recaptcha/api.js",this.listen(this.$state,"network.connecting",(function(t){t.network.ircClient.once("socket connected",(function(){e.recaptchaResponse&&t.network.ircClient.raw("CAPTCHA",e.recaptchaResponse)}))})),this.listen(this.$state,"irc.raw.CAPTCHA",(function(t,n,i){i===e.network&&"NEEDED"===n.params[0]&&e.loadRecaptcha()}))},methods:{loadRecaptcha:function(){var e=this;this.showCaptcha=!0,window.recaptchaLoaded=function(){window.grecaptcha.render(e.$refs.captchacontainer,{sitekey:e.recaptchaSiteId,callback:e.recaptchaSuccess,"expired-callback":e.recaptchaExpired})};var t=document.createElement("script");t.src=this.recaptchaUrl+"?onload=recaptchaLoaded&render=explicit",t.defer=!0,this.$el.appendChild(t)},recaptchaSuccess:function(e){this.recaptchaResponse=e,this.network&&"connecting"===this.network.state&&this.network.ircClient.raw("CAPTCHA",e),this.showCaptcha=!1},recaptchaExpired:function(){this.recaptchaResponse=""}}};t.default=i,window._kiwi_exports=window._kiwi_exports||{},window._kiwi_exports["components"]||(window._kiwi_exports["components"]={}),window._kiwi_exports["components"]["Captcha"],window._kiwi_exports.components.Captcha=t.default?t.default:t},"2ac2":function(e,t,n){},"2c17":function(e,t,n){"use strict";var i=n("1bd5");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=i(n("3b2f")),r=i(n("462f")),a=i(n("9c24")),o={props:{},getNetwork:function(){var e=this.props;return e.ml.buffer.getNetwork()},isRepeat:function(){var e=this.props,t=e.ml,n=e.idx,i=e.message,s=t.filteredMessages[n-1];return!!s&&s.nick===i.nick&&i.time-s.time<6e4&&"traffic"!==s.type&&"traffic"!==i.type&&i.type===s.type},isHoveringOverMessage:function(e){var t=this.props;return e.nick&&e.nick.toLowerCase()===t.hover_nick.toLowerCase()},userMode:function(e){var t=this.props;return t.ml.buffer.userMode(e)},userModePrefix:function(e){var t=this.props;return t.ml.buffer.userModePrefix(e)}},c={inject:{components:{default:{AwayStatusIndicator:r.default,MessageInfo:a.default,MediaViewer:s.default}}},props:{ml:Object,message:Object,idx:Number,m:{default:function(){return function(){return o.props=this,o}}}}};t.default=c,window._kiwi_exports=window._kiwi_exports||{},window._kiwi_exports["components"]||(window._kiwi_exports["components"]={}),window._kiwi_exports["components"]["MessageListMessageCompact"],window._kiwi_exports.components.MessageListMessageCompact=t.default?t.default:t},"2cc3":function(e,t,n){"use strict";n.r(t);var i=n("29d6"),s=n.n(i);for(var r in i)"default"!==r&&function(e){n.d(t,e,(function(){return i[e]}))}(r);t["default"]=s.a},"2d13":function(e,t,n){"use strict";n("b4d3")},"2e69":function(e,t,n){},"2e7b":function(e,t,n){"use strict";var i=n("1bd5");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=i(n("9f12")),r=i(n("53fe")),a=function(){function e(t){var n=this;(0,s.default)(this,e),this.state=t,this.title=t.settings.windowTitle||"",this.alert=!1,t.settings.windowTitle&&this.updateTitle(),t.$watch("settings.windowTitle",(function(e){n.updateTitle(e)})),t.$watch("ui.app_has_focus",(function(e){e&&n.alertTmr&&n.stopAlert()})),t.$on("notification.title",(function(e){e?n.startAlert():n.stopAlert()}))}return(0,r.default)(e,[{key:"startAlert",value:function(){var e=this;this.alertTmr||(this.alertTmr=setInterval((function(){e.updateTitle()}),1e3))}},{key:"stopAlert",value:function(){this.alertTmr&&(clearInterval(this.alertTmr),this.alertTmr=null),this.updateTitle()}},{key:"updateTitle",value:function(e){"string"===typeof e&&(this.title=e),this.alertTmr&&!this.alert?(window.document.title="* "+this.title,this.alert=!0):(window.document.title=this.title,this.alert=!1)}}]),e}();t.default=a},"2f1a":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i={data:function(){return{closing:!1}},computed:{backgroundStyle:function(){var e={},t=this.$state.settings.startupOptions;return t.infoBackground&&(e["background-image"]="url(".concat(t.infoBackground,")")),e},backgroundImage:function(){return this.$state.settings.startupOptions.infoBackground||""},infoContent:function(){return this.$state.settings.startupOptions.infoContent||""}},methods:{close:function(){var e=this;this.closing=!0;var t=function t(n){e.$el.removeEventListener("transitionend",t),e.$state.persistence.watchStateForChanges(),e.$parent.$emit("start")};this.$el.addEventListener("transitionend",t,!1)}}};t.default=i,window._kiwi_exports=window._kiwi_exports||{},window._kiwi_exports["components"]||(window._kiwi_exports["components"]={}),window._kiwi_exports["components"]["startups"]||(window._kiwi_exports["components"]["startups"]={}),window._kiwi_exports["components"]["startups"]["CommonLayout"],window._kiwi_exports.components.startups.CommonLayout=t.default?t.default:t},3065:function(e,t,n){"use strict";var i=n("1bd5");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=i(n("e4f0")),r={props:["buffer"],data:function(){return{banlist:[],is_refreshing:!1}},created:function(){this.updateBanlist()},methods:{updateBanlist:function(){var e=this;if("connected"===this.buffer.getNetwork().state&&!this.is_refreshing){var t=this.buffer.name;this.is_refreshing=!0,this.buffer.getNetwork().ircClient.banlist(t,(function(t){e.banlist=t.bans,e.is_refreshing=!1}))}},removeBan:function(e){var t,n=this.buffer.name;this.buffer.getNetwork().ircClient.unban(n,e),this.banlist=(0,s.default)(t=this.banlist).call(t,(function(t){return t.banned!==e}))}}};t.default=r,window._kiwi_exports=window._kiwi_exports||{},window._kiwi_exports["components"]||(window._kiwi_exports["components"]={}),window._kiwi_exports["components"]["ChannelBanlist"],window._kiwi_exports.components.ChannelBanlist=t.default?t.default:t},"307c":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i={props:{},status:function(e){return e.user&&e.buffer?e.user.typingStatus(e.buffer.name).status:""}},s={props:{user:Object,buffer:Object},m:i};t.default=s,window._kiwi_exports=window._kiwi_exports||{},window._kiwi_exports["components"]||(window._kiwi_exports["components"]={}),window._kiwi_exports["components"]["TypingStatusIndicator"],window._kiwi_exports.components.TypingStatusIndicator=t.default?t.default:t},3104:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n("5ee5"),s=i.component("input-text",{props:["value","label","type","showPlainText"],data:function(){return{plainTextEnabled:!1,inputIdCache:""}},computed:{inputId:function(){return this.inputIdCache||(this.inputIdCache="inp_"+Math.floor(1e17*Math.random()).toString(36)),this.inputIdCache},currentValue:{get:function(){return this.value},set:function(e){this.$emit("input",e)}}},methods:{updateValue:function(e){this.$emit("input",e)},isEdgeBrowser:function(){return navigator.appVersion.indexOf("Edge")>-1}}});t.default=s,window._kiwi_exports=window._kiwi_exports||{},window._kiwi_exports["components"]||(window._kiwi_exports["components"]={}),window._kiwi_exports["components"]["utils"]||(window._kiwi_exports["components"]["utils"]={}),window._kiwi_exports["components"]["utils"]["InputText"],window._kiwi_exports.components.utils.InputText=t.default?t.default:t},"313b":function(e,t,n){},3194:function(e,t,n){},"31aa":function(e,t,n){"use strict";var i=n("1bd5");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=i(n("44a4")),r=i(n("a3e3")),a=i(n("52da")),o=i(n("9f12")),c=i(n("53fe")),u=function(){function e(){(0,o.default)(this,e),this.recursiveDepth=3,this.depth=0,this.aliases={}}return(0,c.default)(e,[{key:"importFromString",value:function(e){var t=this;this.aliases={},e.split("\n").forEach((function(e){var n;if("/"===e[0]){var i=e.indexOf(" ");if(-1!==i){var r=e.substring(0,i),a=(0,s.default)(n=e.substring(i+1)).call(n);a&&(t.aliases[r.toLowerCase()]=a)}}}))}},{key:"processInput",value:function(e,t){var n,i=e||[],s=this.aliases[i[0].toLowerCase()],o="",c=0,u=!1,l=[];if(!s)return e;s=s.split(" "),n=s.length;for(var f=0;f=this.recursiveDepth?(this.depth--,n):(this.aliases[s]&&(i=this.processInput(i,t),s=(i[0]||"").toLowerCase(),this.aliases[s]&&(i=this.process(i.join(" "),t).split(" "))),this.depth--,i.join(" "))}}]),e}();t.default=u,window._kiwi_exports=window._kiwi_exports||{},window._kiwi_exports["libs"]||(window._kiwi_exports["libs"]={}),window._kiwi_exports["libs"]["AliasRewriter"],window._kiwi_exports.libs.AliasRewriter=t.default?t.default:t},"32cc":function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return s}));var i=function(e,t){var n=t._c;return n("div",{staticClass:"kiwi-messagelist-message kiwi-messagelist-message--compact",class:[t.props.m().isRepeat()?"kiwi-messagelist-message--authorrepeat":"kiwi-messagelist-message--authorfirst","kiwi-messagelist-message-"+t.props.message.type,t.props.message.type_extra?"kiwi-messagelist-message-"+t.props.message.type+"-"+t.props.message.type_extra:"",t.props.ml.isMessageHighlight(t.props.message)?"kiwi-messagelist-message--highlight":"",t.props.ml.isHoveringOverMessage(t.props.message)?"kiwi-messagelist-message--hover":"",t.props.ml.buffer.last_read&&t.props.message.time>t.props.ml.buffer.last_read?"kiwi-messagelist-message--unread":"",t.props.message.nick.toLowerCase()===t.props.ml.ourNick.toLowerCase()?"kiwi-messagelist-message--own":"",t.props.ml.message_info_open===t.props.message?"kiwi-messagelist-message--info-open":"",t.props.ml.message_info_open&&t.props.ml.message_info_open!==t.props.message?"kiwi-messagelist-message--blur":"",t.props.message.user&&t.props.m().userMode(t.props.message.user)?"kiwi-messagelist-message--user-mode-"+t.props.m().userMode(t.props.message.user):"",t.data.staticClass],attrs:{"data-message-id":t.props.message.id,"data-nick":(t.props.message.nick||"").toLowerCase()},on:{click:function(e){return t.props.ml.onMessageClick(e,t.props.message,!0)},dblclick:function(e){return t.props.ml.onMessageDblClick(e,t.props.message)}}},[t.props.ml.bufferSetting("show_timestamps")?n("div",{staticClass:"kiwi-messagelist-time",attrs:{title:t.props.ml.formatTimeFull(t.props.message.time)}},[t._v(" "+t._s(t.props.ml.formatTime(t.props.message.time))+" ")]):t._e(),n("a",{class:["kiwi-messagelist-nick",t.props.message.user&&t.props.m().userMode(t.props.message.user)?"kiwi-messagelist-nick--mode-"+t.props.m().userMode(t.props.message.user):""],style:{color:t.props.ml.userColour(t.props.message.user)},attrs:{"data-nick":(t.props.message.nick||"").toLowerCase()},on:{mouseover:function(e){t.props.ml.hover_nick=t.props.message.nick.toLowerCase()},mouseout:function(e){t.props.ml.hover_nick=""}}},[t.props.message.user?n(t.injections.components.AwayStatusIndicator,{tag:"component",attrs:{network:t.props.m().getNetwork(),user:t.props.message.user,toggle:!1}}):t._e(),n("span",{staticClass:"kiwi-messagelist-nick--prefix"},[t._v(" "+t._s(t.props.message.user?t.props.m().userModePrefix(t.props.message.user):"")+" ")]),t._v(" "+t._s(t.props.message.nick)+" ")],1),t.props.message.bodyTemplate&&t.props.message.bodyTemplate.$el?n("div",{directives:[{name:"rawElement",rawName:"v-rawElement",value:t.props.message.bodyTemplate.$el,expression:"props.message.bodyTemplate.$el"}],staticClass:"kiwi-messagelist-body"}):n("div",{staticClass:"kiwi-messagelist-body",domProps:{innerHTML:t._s(t.props.ml.formatMessage(t.props.message))}}),t.props.ml.message_info_open===t.props.message?n(t.injections.components.MessageInfo,{tag:"component",attrs:{message:t.props.message,buffer:t.props.ml.buffer},on:{close:function(e){return t.props.ml.toggleMessageInfo()}}}):t._e(),t.props.message.embed.payload&&t.props.ml.shouldAutoEmbed?n("div",[n(t.injections.components.MediaViewer,{tag:"component",attrs:{url:t.props.message.embed.payload,"show-pin":!0},on:{close:function(e){t.props.message.embed.payload=""},pin:function(e){return t.props.ml.openEmbedInPreview(t.props.message)}}})],1):t._e()],1)},s=[]},"32f6":function(e,t,n){"use strict";n.r(t);var i=n("a6fc"),s=n.n(i);for(var r in i)"default"!==r&&function(e){n.d(t,e,(function(){return i[e]}))}(r);t["default"]=s.a},"333e":function(e,t,n){"use strict";n.r(t);var i=n("e7e3"),s=n.n(i);for(var r in i)"default"!==r&&function(e){n.d(t,e,(function(){return i[e]}))}(r);t["default"]=s.a},"34a6":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i={data:function(){return{logo:"",c:"",x:"",Y:[],t:0,fontSize:72,font:"bold 72px verdana",text:"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce eu arcu ipsum. ",animationFrame:null,destroying:!1}},mounted:function(){var e=this;this.logo=this.$refs["kiwi-loading-logo"],this.c=this.$refs["kiwi-loading-canvas"],this.x=this.c.getContext("2d");for(var t="",n=0;n<9;n+=1)t+=this.text;this.text=String(t).match(/.{1,43}/g),this.c.width=1256,this.c.height=1080;for(var i=0;ie*this.fontSize&&(this.Y[e]=e*this.fontSize)):(this.text.length-(this.t%4.5-2)/2.5*this.text.length*1.751080||this.Y[e]<0)&&(this.Y[e]=e*this.fontSize-1500)),this.Y[e]>-100&&this.x.fillText(this.text[e],0,this.fontSize+this.Y[e]);this.x.globalCompositeOperation="source-out",this.x.drawImage(this.logo,0,0,this.c.width,this.c.height),this.x.globalCompositeOperation="source-over",this.x.globalAlpha=.1,this.x.drawImage(this.logo,0,0,this.c.width,this.c.height),this.x.globalAlpha=1,this.animationFrame=requestAnimationFrame(this.draw),this.t+=1/40}}};t.default=i,window._kiwi_exports=window._kiwi_exports||{},window._kiwi_exports["components"]||(window._kiwi_exports["components"]={}),window._kiwi_exports["components"]["LoadingAnimation"],window._kiwi_exports.components.LoadingAnimation=t.default?t.default:t},"364e":function(e,t,n){"use strict";n("f5a3")},3680:function(e,t,n){"use strict";var i=n("1bd5");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=i(n("fc56")),r=i(n("6b47")),a=i(n("89ba")),o=i(n("2ef0")),c=i(n("0470")),u=i(n("6307")),l=c.default.namespace("Startup/kiwiBnc"),f={components:{StartupLayout:u.default},data:function(){return{loading:!1,username:"",password:"",statusMessage:""}},computed:{greetingText:function(){var e=this.$state.settings.startupOptions.greetingText;return"string"===typeof e?e:this.$t("start_greeting")},buttonText:function(){if(this.loading)return"";var e=this.$state.settings.startupOptions.buttonText;return"string"===typeof e?e:this.$t("start_button")}},methods:{startUp:function(){var e=(0,a.default)(r.default.mark((function e(){var t,n,i,s,o,c=this;return r.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:this.statusMessage=this.$t("logging_in"),this.loading=!0,t=this.getBncNetwork(),n=function(){t.ircClient.off("registered",i),t.ircClient.off("irc error",s),t.ircClient.off("close",o)},i=function(){var e=(0,a.default)(r.default.mark((function e(){var i,s,a,o;return r.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n(),e.next=3,t.ircClient.bnc.getNetworks();case 3:i=e.sent,s=0;case 5:if(!(s=0}},{key:"plugin",value:function(e,t){var n={name:e,fn:t};this.isReady?this.initPlugin(n):N.push(n)}},{key:"initPlugins",value:function(){var e=this;N.forEach((function(t){return e.initPlugin(t)})),N=[]}},{key:"initPlugin",value:function(e){var t=y.default.namespace("Plugin ".concat(e.name));try{e.fn(this,t),this.state.$emit("plugin.loaded",{name:e.name})}catch(n){t.error(n.stack)}}},{key:"require",value:function(e){var t=e.replace(/\//g,"."),n=_.default.get(this.exports,t);return"undefined"===typeof n&&y.default.error("Module does not exist: "+e),n}},{key:"setState",value:function(e){var t=this;this.state=e;var n=this.state.$emit,i=this.emit;this.state.$emit=function(){for(var e,s=arguments.length,r=new Array(s),a=0;a2&&void 0!==arguments[2]?arguments[2]:{},i={el:t,id:A++,args:n};switch(e){case"input":this.controlInputPlugins.push(i);break;case"browser":this.stateBrowserPlugins.push(i);break;case"header_channel":this.channelHeaderPlugins.push(i);break;case"header_query":this.queryHeaderPlugins.push(i);break;case"userbox_button":this.userboxButtonPlugins.push(i);break;case"about_buffer":this.aboutBufferPlugins.push(i);break;default:break}}},{key:"addTab",value:function(e,t,n,i){var s={id:A++,title:t,component:n,props:i};switch(e){case"channel":this.sideBarPlugins.push(s);break;case"settings":this.appSettingsPlugins.push(s);break;case"server":this.serverViewPlugins.push(s);break;default:break}}},{key:"addView",value:function(e,t,n){this.tabs[e]={id:A++,component:v.default.extend(t),props:n||{}}}},{key:"showView",value:function(e){var t=this.tabs[e];t?this.state.$emit("active.component",t.component,t.props):this.state.$emit("active.component",null)}},{key:"showInSidebar",value:function(e,t){this.state.$emit("sidebar.component",e,t)}},{key:"addStartup",value:function(e,t){var n=this.state.getStartups();n[e]=t}},{key:"replaceModule",value:function(e,t){var n=this.require(e);if(!n)throw new Error("The module ".concat(e," does not exist"));b.replaceObjectProps(n,t)}}],[{key:"singleton",value:function(){return O=O||new n,O}}]),n}(m.default);t.default=T,window._kiwi_exports=window._kiwi_exports||{},window._kiwi_exports["libs"]||(window._kiwi_exports["libs"]={}),window._kiwi_exports["libs"]["GlobalApi"],window._kiwi_exports.libs.GlobalApi=t.default?t.default:t},3938:function(e,t,n){"use strict";n("3abd")},"395a":function(e,t,n){"use strict";n.r(t);var i=n("307c"),s=n.n(i);for(var r in i)"default"!==r&&function(e){n.d(t,e,(function(){return i[e]}))}(r);t["default"]=s.a},"3a1a":function(e,t,n){"use strict";n.r(t);var i=n("968d"),s=n("9f32");for(var r in s)"default"!==r&&function(e){n.d(t,e,(function(){return s[e]}))}(r);n("3938"),n("77c8");var a=n("0c7c"),o=Object(a["a"])(s["default"],i["a"],i["b"],!1,null,"372d3dd8",null);t["default"]=o.exports},"3abd":function(e,t,n){},"3b2f":function(e,t,n){"use strict";n.r(t);var i=n("aaf1"),s=n("cd21");for(var r in s)"default"!==r&&function(e){n.d(t,e,(function(){return s[e]}))}(r);n("abdc");var a=n("0c7c"),o=Object(a["a"])(s["default"],i["a"],i["b"],!1,null,null,null);t["default"]=o.exports},"3c38":function(e){e.exports=JSON.parse('[["af-za","Afrikaans (Afrikaans)"],["sq-al","Shqip (Albanian)"],["ar-sa","العربية (Arabic)"],["eu-es","Euskara (Basque)"],["bs-ba","Bosanski (Bosnian)"],["bg-bg","Български (Bulgarian)"],["ca-es","Català (Catalan)"],["zh-cn","中文 (Chinese Simplified)"],["nl-nl","Nederlands (Dutch)"],["en-us","English (English)"],["fr-fr","Français (French)"],["gl-es","Galego (Galician)"],["de-de","Deutsch (German)"],["el-gr","Ελληνικά (Greek)"],["he-il","עברית (Hebrew)"],["id-id","Bahasa Indonesia (Indonesian)"],["it-it","Italiano (Italian)"],["pl-pl","Polski (Polish)"],["pt-pt","Português (Portuguese)"],["pt-br","Português do Brasil (Portuguese, Brazilian)"],["ru-ru","Русский (Russian)"],["es-es","Español (Spanish)"],["es-ar","Español argentino (Spanish, Argentina)"],["es-us","Español mexicano (Spanish, Mexican)"],["uk-ua","Українська (Ukrainian)"]]')},"3c51":function(e,t,n){"use strict";n.r(t);var i=n("8831"),s=n.n(i);for(var r in i)"default"!==r&&function(e){n.d(t,e,(function(){return i[e]}))}(r);t["default"]=s.a},"3cac":function(e,t,n){"use strict";n("313b")},"3ea3":function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return s}));var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"kiwi-serverselector",class:{"kiwi-serverselector--custom":"custom"===e.presetServer}},[e.usePreset&&e.presetNetworks.length>0?n("div",{staticClass:"kiwi-serverselector-presets"},[n("label",[n("span",[e._v(e._s(e.$t("server")))]),n("select",{directives:[{name:"model",rawName:"v-model",value:e.presetServer,expression:"presetServer"}],on:{change:function(t){var n=Array.prototype.filter.call(t.target.options,(function(e){return e.selected})).map((function(e){var t="_value"in e?e._value:e.value;return t}));e.presetServer=t.target.multiple?n:n[0]}}},[n("option",{attrs:{value:"custom"}},[e._v("Custom Server")]),n("option",{attrs:{disabled:""}},[e._v("-----------------")]),e._l(e.presetNetworks,(function(t){return n("option",{key:t.name,domProps:{value:e.toUri(t)}},[e._v(e._s(t.name))])}))],2)])]):e._e(),e.showCustom||0===e.presetNetworks.length||!e.usePreset?[n("input-text",{directives:[{name:"focus",rawName:"v-focus"}],staticClass:"kiwi-networksettings-connection-address",attrs:{label:e.$t("server")},model:{value:e.connection.server,callback:function(t){e.$set(e.connection,"server",t)},expression:"connection.server"}}),n("input-text",{staticClass:"kiwi-networksettings-connection-port",attrs:{label:e.$t("settings_port"),type:"number"},model:{value:e.connection.port,callback:function(t){e.$set(e.connection,"port",t)},expression:"connection.port"}},[n("span",{staticClass:"fa-stack fa-lg kiwi-customserver-tls",class:{"kiwi-customserver-tls--enabled":e.connection.tls},on:{click:e.toggleTls}},[e.connection.tls?n("i",{staticClass:"fa fa-lock fa-stack-1x kiwi-customserver-tls-lock"}):n("i",{staticClass:"fa fa-unlock fa-stack-1x kiwi-customserver-tls-minus"})])])]:e._e()],2)},s=[]},"3ee2":function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return s}));var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"kiwi-wrap kiwi-wrap-error"},[n("h2",[e._v("Kiwi IRC could not start :(")]),n("div",[e._v(e._s(e.error))])])},s=[]},"3f9b":function(e,t,n){"use strict";n.r(t);var i=n("0b98"),s=n("8ffb");for(var r in s)"default"!==r&&function(e){n.d(t,e,(function(){return s[e]}))}(r);n("132e");var a=n("0c7c"),o=Object(a["a"])(s["default"],i["a"],i["b"],!1,null,null,null);t["default"]=o.exports},"40c4":function(e,t,n){"use strict";var i=n("9e19"),s=n("b4d1"),r=n("7c78"),a=n("1bd5");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=d(n("5a16")),c=a(n("b27f")),u=a(n("462f")),l=a(n("df3a"));function f(e){if("function"!==typeof s)return null;var t=new s,n=new s;return(f=function(e){return e?n:t})(e)}function d(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!==typeof e)return{default:e};var n=f(t);if(n&&n.has(e))return n.get(e);var s={},a=Object.defineProperty&&r;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var c=a?r(e,o):null;c&&(c.get||c.set)?Object.defineProperty(s,o,c):s[o]=e[o]}return s.default=e,n&&n.set(e,s),s}var p={components:{AwayStatusIndicator:u.default,Avatar:l.default},props:["network"],data:function(){return{is_usermenu_open:!1}},computed:{networkName:function(){var e=o.t("no_network");return this.network&&(e=this.network.name),e},getUser:function(){return this.network&&this.network.currentUser()?this.network.currentUser():new c.default({nick:"User"})},isConnected:function(){return this.network&&"connected"===this.network.state}},methods:{clickForget:function(){var e="This will delete all stored networks and start fresh. Are you sure?",t=confirm(e);t&&(this.$state.persistence.forgetState(),window.location.reload())}}};t.default=p,window._kiwi_exports=window._kiwi_exports||{},window._kiwi_exports["components"]||(window._kiwi_exports["components"]={}),window._kiwi_exports["components"]["StateBrowserUsermenu"],window._kiwi_exports.components.StateBrowserUsermenu=t.default?t.default:t},"40cd":function(e,t,n){"use strict";n("17b2")},4232:function(e,t,n){},"428c":function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return s}));var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"kiwi-settings-advanced"},[n("div",{staticClass:"kiwi-settings-advanced-notice"},[e._v(e._s(e.$t("settings_advanced_header")))]),n("form",{staticClass:"u-form"},[n("div",{staticClass:"kiwi-settings-advanced-filter-container"},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.filterString,expression:"filterString"}],staticClass:"u-input",attrs:{placeholder:e.$t("settings_advanced_filter")},domProps:{value:e.filterString},on:{input:function(t){t.target.composing||(e.filterString=t.target.value)}}}),e.filterString?n("i",{staticClass:"fa fa-times",attrs:{"aria-hidden":"true"},on:{click:function(t){e.filterString=""}}}):n("i",{staticClass:"fa fa-search",attrs:{"aria-hidden":"true"}})]),n("table",{staticClass:"u-table kiwi-settings-advanced-table",attrs:{cellspacing:"0"}},[0===e.filteredSettings.length?n("tr",[n("td",{staticClass:"kiwi-settings-advanced-noresult"},[e._v(" "+e._s(e.filterString)+" - "+e._s(e.$t("not_found"))+" ")])]):e._l(e.filteredSettings,(function(t){return n("tr",{key:t.key,class:{"kiwi-advanced-setting":!t.modified,"kiwi-advanced-setting--modified":t.modified}},[n("td",[n("label",{attrs:{for:"setting-"+t.key}},[e._v(e._s(t.key))])]),t.modified?n("td",[n("a",{staticClass:"u-link",on:{click:function(n){return e.resetValue(n,t.key)}}},[e._v(" "+e._s(e.$t("settings_advanced_reset"))+" "),n("i",{staticClass:"fa fa-undo",staticStyle:{"margin-left":"10px"}})])]):n("td"),n("td",["boolean"===t.type?n("input",{attrs:{id:"setting-"+t.key,type:"checkbox"},domProps:{checked:t.val},on:{change:function(n){return e.updateSetting(n,t.key)}}}):"number"===t.type?n("input",{staticClass:"u-input",attrs:{id:"setting-"+t.key,type:"number"},domProps:{value:t.val},on:{keydown:function(e){return e.type.indexOf("key")||13===e.keyCode?e.target.blur():null},change:function(n){return e.updateSetting(n,t.key)},blur:function(n){return e.updateSetting(n,t.key)}}}):n("input",{staticClass:"u-input",attrs:{id:"setting-"+t.key},domProps:{value:t.val},on:{keydown:function(e){return e.type.indexOf("key")||13===e.keyCode?e.target.blur():null},blur:function(n){return e.updateSetting(n,t.key)}}})])])}))],2)])])},s=[]},"43bd":function(e,t,n){"use strict";n.r(t);var i=n("2f1a"),s=n.n(i);for(var r in i)"default"!==r&&function(e){n.d(t,e,(function(){return i[e]}))}(r);t["default"]=s.a},4496:function(e,t,n){"use strict";var i=n("9e19"),s=n("b4d1"),r=n("7c78"),a=n("1bd5");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=a(n("6b47")),c=a(n("89ba")),u=a(n("fc56")),l=a(n("3818")),f=m(n("5a16")),d=m(n("862b")),p=a(n("b4ef")),h=a(n("8753"));function w(e){if("function"!==typeof s)return null;var t=new s,n=new s;return(w=function(e){return e?n:t})(e)}function m(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!==typeof e)return{default:e};var n=w(t);if(n&&n.has(e))return n.get(e);var s={},a=Object.defineProperty&&r;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var c=a?r(e,o):null;c&&(c.get||c.set)?Object.defineProperty(s,o,c):s[o]=e[o]}return s.default=e,n&&n.set(e,s),s}var v=!0,g={data:function(){return{hasOtherTab:!1,addedNetworkToExisting:!1,server:null,readyToShowOptions:!1}},computed:{networks:function(){return this.$state.networks},hasFragment:function(){return window.location.hash&&window.location.hash.length>1}},created:function(){var e=this;this.$state.setting("allowRegisterProtocolHandler",!0),h.default.init();var t=null;this.hasFragment&&(t=this.parseFragment(),this.server=t),t?this.findOtherTabs().then((function(t){t?e.hasOtherTab=!0:(e.listenForOtherTabs(),e.init()),e.readyToShowOptions=!0})):(this.listenForOtherTabs(),this.init())},methods:{listenForOtherTabs:function(){var e=this;h.default.on("message",(function(t){var n=t.data;if("ping"===n.type&&e.networks.length>0)h.default.send({type:"pong"});else if("addNetwork"===n.type){var i,s=(0,u.default)(i=e.networks).call(i,(function(e){return e.name===n.server}));s||(s=e.$state.addNetwork(n.server,n.nick||"Guest"+Math.floor(100*Math.random()),n)),s.showServerBuffer("settings")}}))},addEmptyNetwork:function(){var e="Guest"+Math.floor(100*Math.random()),t=this.$state.addNetwork(f.t("new_network"),e,{});t.showServerBuffer("settings")},findOtherTabs:function(){return(0,c.default)(o.default.mark((function e(){return o.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",new l.default((function(e,t){var n=function(t){var n=t.data;"pong"===n.type&&(clearTimeout(i),e(!0))},i=setTimeout((function(t){h.default.removeListener("message",n),e(!1)}),200);h.default.on("message",n),h.default.send({type:"ping"})})));case 1:case"end":return e.stop()}}),e)})))()},addNetworkToExistingTab:function(){var e="Guest"+Math.floor(100*Math.random()),t=this.server;this.$state.addNetwork(f.t("new_network"),e,{}),h.default.send({nick:e,server:t.server,port:t.port,tls:t.tls,direct:t.direct,password:t.password||"",type:"addNetwork"}),window.location.hash="",this.addedNetworkToExisting=!0},addNetwork:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.server){var t=this.server;e&&(this.$state.persistence.storageKey=null,this.$state.persistence.forgetState(),this.init());var n=this.$state.getNetworkFromAddress(t.server);n||(n=this.$state.addNetwork(t.server,t.nick||"Guest"+Math.floor(100*Math.random()),{server:t.server,port:t.port,tls:t.tls,direct:t.direct,password:t.password||""})),window.location.hash="",n.showServerBuffer("settings"),this.$emit("start",{fallbackComponent:this.constructor})}},parseFragment:function(){if(window.location.hash.substr(1)){var e=window.location.hash.substr(1),t=e.substr(0,7).toLowerCase();"ircs%3a"!==t&&"irc%3a"!==t.substr(0,6)||(e=decodeURIComponent(e));var n=d.parseIrcUri(e),i=n[0];return i}return null},toggleStateBrowser:function(){this.$state.$emit("statebrowser.show")},init:function(){var e=this;return(0,c.default)(o.default.mark((function t(){var n,i,s,r;return o.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(v){t.next=2;break}return t.abrupt("return");case 2:v=!1,n=e.$state.settings.startupOptions.remember_buffers,e.$state.persistence.includeBuffers="undefined"===typeof n||!!n,e.$state.persistence.watchStateForChanges(),e.$state.settings.startupOptions.bouncer&&(s=(0,u.default)(i=e.$state.networks).call(i,(function(e){return e.is_bnc})),s&&(r=new p.default(e.$state),r.enable(s.connection.server,s.connection.port,s.connection.tls,s.connection.direct,s.connection.path))),e.$state.setSetting("settings.restricted",!1),e.$emit("start",{fallbackComponent:e.constructor});case 9:case"end":return t.stop()}}),t)})))()}}};t.default=g,window._kiwi_exports=window._kiwi_exports||{},window._kiwi_exports["components"]||(window._kiwi_exports["components"]={}),window._kiwi_exports["components"]["startups"]||(window._kiwi_exports["components"]["startups"]={}),window._kiwi_exports["components"]["startups"]["Personal"],window._kiwi_exports.components.startups.Personal=t.default?t.default:t},4503:function(e,t,n){"use strict";n("e814")},"462f":function(e,t,n){"use strict";n.r(t);var i=n("4d85"),s=n("d831");for(var r in s)"default"!==r&&function(e){n.d(t,e,(function(){return s[e]}))}(r);n("7197");var a=n("0c7c"),o=Object(a["a"])(s["default"],i["a"],i["b"],!0,null,null,null);t["default"]=o.exports},4642:function(e,t,n){},"46d4":function(e,t,n){"use strict";n.r(t);var i=n("fb34"),s=n.n(i);for(var r in i)"default"!==r&&function(e){n.d(t,e,(function(){return i[e]}))}(r);t["default"]=s.a},"474e":function(e,t,n){"use strict";n.r(t);var i=n("3810"),s=n("9465");for(var r in s)"default"!==r&&function(e){n.d(t,e,(function(){return s[e]}))}(r);n("002e");var a=n("0c7c"),o=Object(a["a"])(s["default"],i["a"],i["b"],!1,null,null,null);t["default"]=o.exports},"480a":function(e,t,n){"use strict";n.r(t);var i=n("b62a"),s=n("708b");for(var r in s)"default"!==r&&function(e){n.d(t,e,(function(){return s[e]}))}(r);n("cb48");var a=n("0c7c"),o=Object(a["a"])(s["default"],i["a"],i["b"],!1,null,null,null);t["default"]=o.exports},4831:function(e,t,n){"use strict";var i=n("1bd5");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=i(n("5ee5")),r=s.default.extend({data:function(){return{sidebarOpen:!1,sidebarSection:"",sidebarUser:null,activeComponent:null,activeComponentProps:null}},computed:{isDrawn:function(){return this.sidebarOpen&&this.section()&&this.$state.ui.app_width<=769},isOpen:function(){return this.sidebarOpen&&this.section()&&this.$state.ui.app_width>769}},created:function(){var e=this;this.listen(this.$state,"sidebar.component",(function(t,n){e.resetSidebarState(),e.sidebarOpen=!!t,e.activeComponent=t,e.activeComponentProps=n||{},e.sidebarSection=t?"component":""})),this.$nextTick((function(){var t=e.$state.setting("sidebarDefault");t&&e.$state.ui.app_width>769&&(e.sidebarOpen=!0,e.sidebarSection=t)}))},methods:{section:function(){if(!this.sidebarOpen)return"";var e=this.sidebarSection;if("component"===e)return e;var t=this.$state.getActiveBuffer();if(t.isQuery()){var n=this.$state.getUser(t.getNetwork().id,t.name);return n?(this.sidebarUser=n,"user"):""}return t.isChannel()?"user"===e&&this.sidebarUser?t.hasNick(this.sidebarUser.nick)?"user":(this.sidebarSection="nicklist",this.sidebarSection):"nicklist"===e?"nicklist":"settings"===e?"settings":"about"===e?"about":"":""},resetSidebarState:function(){this.sidebarOpen=!1,this.sidebarSection="",this.sidebarUser=null,this.activeComponent=null,this.activeComponentProps=null},close:function(){this.resetSidebarState()},showUser:function(e){this.resetSidebarState(),this.sidebarOpen=!0,this.sidebarUser=e,this.sidebarSection="user"},showNicklist:function(){this.resetSidebarState(),this.sidebarOpen=!0,this.sidebarSection="nicklist"},showBufferSettings:function(){this.resetSidebarState(),this.sidebarOpen=!0,this.sidebarSection="settings"},showAbout:function(){this.resetSidebarState(),this.sidebarOpen=!0,this.sidebarSection="about"},toggleUser:function(e){"user"===this.section()?this.close():this.showUser(e)},toggleNicklist:function(){"nicklist"===this.section()?this.close():this.showNicklist()},toggleBufferSettings:function(){"settings"===this.section()?this.close():this.showBufferSettings()},toggleAbout:function(){"about"===this.section()?this.close():this.showAbout()}}});t.default=r,window._kiwi_exports=window._kiwi_exports||{},window._kiwi_exports["components"]||(window._kiwi_exports["components"]={}),window._kiwi_exports["components"]["SidebarState"],window._kiwi_exports.components.SidebarState=t.default?t.default:t},"48d1":function(e,t,n){"use strict";var i=n("9e19"),s=n("b4d1"),r=n("7c78"),a=n("1bd5");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=a(n("fa81")),c=a(n("14b1")),u=a(n("2ef0")),l=d(n("934b"));function f(e){if("function"!==typeof s)return null;var t=new s,n=new s;return(f=function(e){return e?n:t})(e)}function d(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!==typeof e)return{default:e};var n=f(t);if(n&&n.has(e))return n.get(e);var s={},a=Object.defineProperty&&r;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var c=a?r(e,o):null;c&&(c.get||c.set)?Object.defineProperty(s,o,c):s[o]=e[o]}return s.default=e,n&&n.set(e,s),s}var p={data:function(){return{filterString:""}},computed:{filteredSettings:function(){var e=this.settings,t=this.filterString.toLowerCase(),n=[];return(0,o.default)(e).forEach((function(i){var s=e[i];-1!==s.key.toLowerCase().indexOf(t)&&n.push(s)})),n},settings:function(){var e,t={},n=[];return l.buildTree(t,n,this.$state.getSetting("settings"),!1),l.buildTree(t,n,this.$state.getSetting("user_settings"),!0),u.default.orderBy((0,c.default)(e=(0,o.default)(t)).call(e,(function(e){return t[e]})),[function(e){return e.key.split(".").length-1},"key"],["asc"])}},methods:{resetValue:function(e,t){var n=this.$state.getSetting("settings."+t);n||(n=null),this.$state.setting(t,n)},updateSetting:function(e,t){var n=e.target,i="checkbox"===n.type?n.checked:n.value;switch(n.type){case"checkbox":i=n.checked;break;case"number":i=parseInt(n.value,10);break;default:i=n.value;break}this.$state.setting(t)!==i&&this.$state.setting(t,i)}}};t.default=p,window._kiwi_exports=window._kiwi_exports||{},window._kiwi_exports["components"]||(window._kiwi_exports["components"]={}),window._kiwi_exports["components"]["SettingsAdvanced"],window._kiwi_exports.components.SettingsAdvanced=t.default?t.default:t},"4b50":function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return s}));var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"kiwi-statebrowser-network",class:[e.isActiveNetwork?"kiwi-statebrowser-network--active":""]},[n("div",{staticClass:"kiwi-statebrowser-network-header"},[n("a",{staticClass:"kiwi-statebrowser-network-name u-link",on:{click:function(t){return e.setActiveBuffer(e.serverBuffer)}}},[e._v(" "+e._s(e.network.name)+" ")]),n("div",{staticClass:"kiwi-statebrowser-buffer-actions"},[n("div",{staticClass:"kiwi-statebrowser-channel-labels"},[e.serverUnread&&e.showMessageCounts(e.serverBuffer)?n("div",{staticClass:"kiwi-statebrowser-channel-label",class:[e.serverHighlight?"kiwi-statebrowser-channel-label--highlight":""]},[e._v(" "+e._s(e.serverUnread>999?"999+":e.serverUnread)+" ")]):e._e()])]),n("div",{staticClass:"kiwi-network-name-options"},[e.totalNetworkCount>1?n("div",{staticClass:"kiwi-network-name-option kiwi-network-name-option-collapse",on:{click:function(t){e.collapsed=!e.collapsed}}},[n("i",{staticClass:"fa",class:[e.collapsed?"fa-plus-square-o":"fa-minus-square-o"]})]):e._e()])]),n("transition-expand",[e.channel_filter_display?n("div",{staticClass:"kiwi-statebrowser-channelfilter"},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.channel_filter,expression:"channel_filter"},{name:"focus",rawName:"v-focus"}],attrs:{placeholder:e.$t("filter_channels"),type:"text"},domProps:{value:e.channel_filter},on:{blur:e.onChannelFilterInputBlur,keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"])?null:e.closeFilterChannel.apply(null,arguments)},input:function(t){t.target.composing||(e.channel_filter=t.target.value)}}}),n("p",[n("a",{on:{click:function(t){e.closeFilterChannel(),e.showNetworkChannels(e.network)}}},[e._v(" "+e._s(e.$t("find_more_channels"))+" ")])])]):e._e(),e.channel_add_display?n("div",{staticClass:"kiwi-statebrowser-channels-info"},[n("form",{staticClass:"kiwi-statebrowser-newchannel",on:{submit:function(t){return t.preventDefault(),e.submitNewChannelForm.apply(null,arguments)}}},[n("div",{directives:[{name:"focus",rawName:"v-focus"}],staticClass:"kiwi-statebrowser-newchannel-inputwrap",class:[e.channel_add_input_has_focus?"kiwi-statebrowser-newchannel-inputwrap--focus":""]},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.channel_add_input,expression:"channel_add_input"}],attrs:{placeholder:e.$t("state_join"),type:"text"},domProps:{value:e.channel_add_input},on:{focus:e.onNewChannelInputFocus,blur:e.onNewChannelInputBlur,input:function(t){t.target.composing||(e.channel_add_input=t.target.value)}}})])])]):e._e()]),n("div",{staticClass:"kiwi-statebrowser-network-toggable-area",class:[e.collapsed?"kiwi-statebrowser-network-toggable-area--collapsed":""]},[n("transition-expand",["connected"!==e.network.state?n("div",{staticClass:"kiwi-statebrowser-network-status"},[e.network.state_error?[n("i",{staticClass:"fa fa-exclamation-triangle",attrs:{"aria-hidden":"true"}}),n("a",{staticClass:"u-link",on:{click:function(t){return e.showNetworkSettings(e.network)}}},[e._v(" "+e._s(e.$t("state_configure"))+" ")])]:e.network.connection.server?"disconnected"===e.network.state?[e._v(" "+e._s(e.$t("state_disconnected"))+" "),n("a",{staticClass:"u-link",on:{click:function(t){return e.network.ircClient.connect()}}},[e._v(" "+e._s(e.$t("connect"))+" ")])]:"connecting"===e.network.state?[e._v(" "+e._s(e.$t("connecting"))+" ")]:e._e():[n("a",{staticClass:"u-link",on:{click:function(t){return e.showNetworkSettings(e.network)}}},[e._v(" "+e._s(e.$t("state_configure"))+" ")])]],2):e._e(),e.showBufferGroups||e.channel_filter_display||e.channel_add_display?e._e():n("div",{staticClass:"kiwi-statebrowser-network-options"},[n("div",{staticClass:"kiwi-statebrowser-network-option",class:{active:!!e.channel_add_display},on:{click:function(t){return e.toggleAddChannel()}}},[n("i",{staticClass:"fa fa-plus",attrs:{"aria-hidden":"true"}})]),n("div",{staticClass:"kiwi-statebrowser-network-option",class:{active:!!e.channel_filter_display},on:{click:function(t){return e.onSearchChannelClick()}}},[n("i",{staticClass:"fa fa-search",attrs:{"aria-hidden":"true"}})])])]),e._l(e.filteredBuffersByType,(function(t,i){return n("div",{key:i,staticClass:"kiwi-statebrowser-buffers",attrs:{"data-name":i}},[!e.channel_filter_display&&e.showBufferGroups&&"other"!==i?n("div",{staticClass:"kiwi-statebrowser-channels-header"},[n("div",{staticClass:"kiwi-statebrowser-buffertype",on:{click:function(t){return e.toggleSection(i)}}},[n("i",{staticClass:"fa kiwi-statebrowser-channels-toggle",class:[e.show_channels&&"channels"===i||e.show_queries&&"queries"===i?"fa-caret-down":"fa-caret-right"]}),e._v(" "+e._s("channels"===i?e.$t("channels"):e.$t("messages"))+" ")]),"channels"===i?n("div",{staticClass:"kiwi-statebrowser-channels-options"},[n("div",{staticClass:"kiwi-statebrowser-channels-option",class:{active:!!e.channel_add_display},on:{click:function(t){return e.toggleAddChannel()}}},[n("i",{staticClass:"fa fa-plus",attrs:{"aria-hidden":"true"}})]),n("div",{staticClass:"kiwi-statebrowser-channels-option",class:{active:!!e.channel_filter_display},on:{click:function(t){return e.onSearchChannelClick()}}},[n("i",{staticClass:"fa fa-search",attrs:{"aria-hidden":"true"}})])]):"queries"===i?n("div",{staticClass:"kiwi-statebrowser-channels-options"},[t.length>1?n("div",{staticClass:"kiwi-statebrowser-channels-option\n kiwi-statebrowser-queries-close",on:{click:function(t){return t.stopPropagation(),t.preventDefault(),e.promptClose()}}},[n("i",{staticClass:"fa fa-times",attrs:{"aria-hidden":"true"}})]):e._e()]):e._e(),n("div",{staticClass:"kiwi-statebrowser-buffer-actions"},[n("div",{staticClass:"kiwi-statebrowser-channel-labels"},[!e.show_channels&&"channels"===i&&e.channelActivity.unread>0?n("div",{staticClass:"kiwi-statebrowser-channel-label",class:[e.channelActivity.highlights?"kiwi-statebrowser-channel-label--highlight":""]},[e._v(" "+e._s(e.channelActivity.unread>999?"999+":e.channelActivity.unread)+" ")]):!e.show_queries&&"queries"===i&&e.queryActivity.unread>0?n("div",{staticClass:"kiwi-statebrowser-channel-label",class:[e.queryActivity.highlights?"kiwi-statebrowser-channel-label--highlight":""]},[e._v(" "+e._s(e.queryActivity.unread>999?"999+":e.queryActivity.unread)+" ")]):e._e()])])]):e._e(),"queries"===i?n("transition-expand",[e.showPromptClose?n("div",{staticClass:"kiwi-statebrowser-prompt-close"},[n("span",[e._v(e._s(e.$t("prompt_close_queries")))]),n("input-confirm",{attrs:{"flip-connotation":!0},on:{ok:function(n){return e.closeQueries(t)},submit:function(t){return e.promptClose()}}})],1):e._e()]):e._e(),n("transition-expand",[t.length&&(e.show_channels&&"channels"===i||e.show_queries&&"queries"===i||"other"===i)?n("div",{staticClass:"kiwi-statebrowser-buffers-container"},e._l(t,(function(t){return n("buffer",{key:t.name,attrs:{buffer:t,"active-prompt":e.activePrompt},on:{selected:function(n){return e.setActiveBuffer(t)}}})})),1):e._e()])],1)}))],2)],1)},s=[]},"4b63":function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return s}));var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"kiwi-customserver",class:[e.is_connecting?"kiwi-customserver--connecting":""]},[n("div",{staticClass:"kiwi-customserver-container"},[e.is_connecting?n("h2",[e._v(" "+e._s(e.$t("connecting"))+" "),n("a",{staticClass:"u-link",on:{click:e.infoClick}},[n("i",{staticClass:"fa fa-info-circle",attrs:{"aria-hidden":"true"}})])]):n("h2",{domProps:{innerHTML:e._s(e.title)}}),n("transition",{attrs:{name:"kiwi-connectingloader"}},[e.is_connecting?n("div",{staticClass:"kiwi-customserver-loader"},[n("i",{staticClass:"fa fa-spin fa-spinner",attrs:{"aria-hidden":"true"}})]):n("form",{staticClass:"u-form u-form--big kiwi-customserver-form",on:{submit:function(t){return t.preventDefault(),e.startUp.apply(null,arguments)}}},[e.network&&e.network.state_error?n("div",{staticClass:"kiwi-customserver-error"},[e._v(" We couldn't connect to the server :( "),n("span",[e._v(e._s(e.readableStateError(e.network.state_error)))])]):e._e(),"default"===e.server_type?[n("input-text",{attrs:{label:e.$t("server")},model:{value:e.server,callback:function(t){e.server=t},expression:"server"}},[n("span",{staticClass:"fa-stack fa-lg kiwi-customserver-tls",class:[e.tls?"kiwi-customserver-tls--enabled":""],on:{click:function(t){e.tls=!e.tls}}},[n("i",{staticClass:"fa fa-lock fa-stack-1x kiwi-customserver-tls-lock"}),e.tls?e._e():n("i",{staticClass:"fa fa-times fa-stack-1x kiwi-customserver-tls-minus"})])]),n("input-text",{staticClass:"kiwi-customserver-nick",attrs:{label:e.$t("nick")},model:{value:e.nick,callback:function(t){e.nick=t},expression:"nick"}}),n("label",{staticClass:"kiwi-customserver-have-password"},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.show_password_box,expression:"show_password_box"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.show_password_box)?e._i(e.show_password_box,null)>-1:e.show_password_box},on:{change:function(t){var n=e.show_password_box,i=t.target,s=!!i.checked;if(Array.isArray(n)){var r=null,a=e._i(n,r);i.checked?a<0&&(e.show_password_box=n.concat([r])):a>-1&&(e.show_password_box=n.slice(0,a).concat(n.slice(a+1)))}else e.show_password_box=s}}}),n("span",[e._v(" "+e._s(e.$t("password_have"))+" ")])]),e.show_password_box?n("input-text",{directives:[{name:"focus",rawName:"v-focus"}],attrs:{label:e.$t("password"),"show-plain-text":!0,type:"password"},model:{value:e.password,callback:function(t){e.password=t},expression:"password"}}):e._e(),n("input-text",{attrs:{label:e.$t("channel")},model:{value:e.channel,callback:function(t){e.channel=t},expression:"channel"}})]:e._e(),"default_simple"===e.server_type?[n("input-text",{staticClass:"kiwi-customserver-nick",attrs:{label:e.$t("nick")},model:{value:e.nick,callback:function(t){e.nick=t},expression:"nick"}}),n("label",{staticClass:"kiwi-customserver-have-password"},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.show_password_box,expression:"show_password_box"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.show_password_box)?e._i(e.show_password_box,null)>-1:e.show_password_box},on:{change:function(t){var n=e.show_password_box,i=t.target,s=!!i.checked;if(Array.isArray(n)){var r=null,a=e._i(n,r);i.checked?a<0&&(e.show_password_box=n.concat([r])):a>-1&&(e.show_password_box=n.slice(0,a).concat(n.slice(a+1)))}else e.show_password_box=s}}}),n("span",[e._v(e._s(e.$t("password_have")))])]),e.show_password_box?n("input-text",{directives:[{name:"focus",rawName:"v-focus"}],attrs:{label:e.$t("password"),type:"password"},model:{value:e.password,callback:function(t){e.password=t},expression:"password"}}):e._e(),n("input-text",{staticClass:"kiwi-customserver-channel",attrs:{label:e.$t("channel")},model:{value:e.channel,callback:function(t){e.channel=t},expression:"channel"}})]:e._e(),"znc"===e.server_type?[n("input-text",{attrs:{label:e.$t("server")},model:{value:e.server,callback:function(t){e.server=t},expression:"server"}},[n("span",{staticClass:"fa-stack fa-lg kiwi-customserver-tls",class:[e.tls?"kiwi-customserver-tls--enabled":""],on:{click:function(t){e.tls=!e.tls}}},[n("i",{staticClass:"fa fa-lock fa-stack-1x kiwi-customserver-tls-lock"}),e.tls?e._e():n("i",{staticClass:"fa fa-times fa-stack-1x kiwi-customserver-tls-minus"})])]),n("input-text",{staticClass:"kiwi-customserver-nick",attrs:{label:e.$t("username")},model:{value:e.nick,callback:function(t){e.nick=t},expression:"nick"}}),e.znc_network_support?n("input-text",{attrs:{label:e.$t("network")},model:{value:e.znc_network,callback:function(t){e.znc_network=t},expression:"znc_network"}}):e._e(),n("input-text",{attrs:{label:e.$t("password"),type:"password"},model:{value:e.password,callback:function(t){e.password=t},expression:"password"}})]:e._e(),n("button",{staticClass:"u-button u-button-primary u-submit",attrs:{type:"submit"}},[e._v(" "+e._s(e.buttonText)+" ")]),e.show_type_switcher?n("div",{staticClass:"kiwi-customserver-server-types"},[n("a",{staticClass:"u-link",on:{click:function(t){e.server_type="default"}}},[e._v(e._s(e.$t("network")))]),n("a",{staticClass:"u-link",on:{click:function(t){e.server_type="znc"}}},[e._v(e._s(e.$t("znc")))])]):e._e()],2)])],1)])},s=[]},"4c9b":function(e,t,n){"use strict";var i=n("9e19"),s=n("b4d1"),r=n("7c78"),a=n("1bd5");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=a(n("fc56")),c=a(n("a3e3")),u=a(n("14b1")),l=a(n("2ef0")),f=p(n("862b"));function d(e){if("function"!==typeof s)return null;var t=new s,n=new s;return(d=function(e){return e?n:t})(e)}function p(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!==typeof e)return{default:e};var n=d(t);if(n&&n.has(e))return n.get(e);var s={},a=Object.defineProperty&&r;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var c=a?r(e,o):null;c&&(c.get||c.set)?Object.defineProperty(s,o,c):s[o]=e[o]}return s.default=e,n&&n.set(e,s),s}var h={props:{usePreset:{type:Boolean,default:!0},networkList:{type:Array,default:function(){return[]}},connection:{type:Object,default:function(){}}},data:function(){return{name:"",presetNetworks:[],showCustom:!0,willEmit:!1}},computed:{presetServer:{set:function(e){if("custom"===e)this.name="",this.connection.server="",this.connection.port=6697,this.connection.tls=!0,this.showCustom=!0;else{var t=f.parsePresetServer(e);this.name=t.name,this.connection.server=t.server,this.connection.port=t.port,this.connection.tls=t.tls,this.showCustom=!1}},get:function(){return this.showCustom?"custom":this.toUri(this.connection)}}},created:function(){this.networkList&&this.importUris(this.networkList);var e=this.connection;(0,o.default)(l.default).call(l.default,this.presetNetworks,(function(t){var n=t.server===e.server&&t.port===e.port&&t.tls===e.tls;return n}))&&(this.showCustom=!1)},methods:{toUri:function(e){var t,n;return(0,c.default)(t=(0,c.default)(n="".concat(e.server,":")).call(n,e.tls?"+":"")).call(t,e.port)},toggleTls:function(){this.connection.tls=!this.connection.tls,this.connection.tls&&6667===this.connection.port?this.connection.port=6697:this.connection.tls||6697!==this.connection.port||(this.connection.port=6667)},importUris:function(e){var t=(0,u.default)(e).call(e,(function(e){return f.parsePresetServer(e)}));this.$set(this,"presetNetworks",t)}}};t.default=h,window._kiwi_exports=window._kiwi_exports||{},window._kiwi_exports["components"]||(window._kiwi_exports["components"]={}),window._kiwi_exports["components"]["ServerSelector"],window._kiwi_exports.components.ServerSelector=t.default?t.default:t},"4cdc":function(e,t,n){"use strict";function i(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:3,i=!1,s=[],r=0,a=null,o=1e3,c=null;function u(){if(r=0,s.length){var e=s;s=[],t(e),a=setTimeout(u,o)}else a=null}function l(){a||(a=setTimeout(u,o))}function f(){a||c||(c=setTimeout((function(){c=null,a||(r=0)}),o))}function d(t){i||r++,s.length||r>n?(s.push(t),l()):(i=!0,setTimeout((function(){i=!1})),e(t),f())}return d.queue=function(){return s},d}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i,window._kiwi_exports=window._kiwi_exports||{},window._kiwi_exports["libs"]||(window._kiwi_exports["libs"]={}),window._kiwi_exports["libs"]["batchedAdd"],window._kiwi_exports.libs.batchedAdd=t.default?t.default:t},"4d67":function(e,t,n){},"4d85":function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return s}));var i=function(e,t){var n,i=t._c;return t.$options.m.shouldShowStatus(t.props)?i("span",{staticClass:"kiwi-awaystatusindicator",class:(n={"kiwi-awaystatusindicator--away":!t.props.user||t.props.user.isAway(),"kiwi-awaystatusindicator--self":t.$options.m.isUserSelf(t.props)},n[t.data.staticClass]=!!t.data.staticClass,n),on:{click:function(e){return t.$options.m.toggleSelfAway(t.props)}}}):t._e()},s=[]},"4de8":function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return s}));var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"kiwi-container",class:{"kiwi-container--sidebar-drawn":e.sidebarState.isDrawn,"kiwi-container--sidebar-open":e.sidebarState.isOpen,"kiwi-container--no-sidebar":e.buffer&&e.buffer.isSpecial}},[e.buffer?[n("div",{staticClass:"kiwi-container-toggledraw-statebrowser",on:{click:function(t){return t.stopPropagation(),e.toggleStateBrowser.apply(null,arguments)}}},[n("div",{staticClass:"kiwi-container-toggledraw-statebrowser-messagecount",class:[e.unreadMessages.highlight?"kiwi-container-toggledraw-statebrowser-messagecount--highlight":""]},[n("span",{staticClass:"kiwi-container-statebrowser-messagecount-alert"},[e._v(" "+e._s(e.unreadMessages.count>999?"999+":e.unreadMessages.count)+" ")]),e._m(0)])]),n("container-header",{attrs:{buffer:e.buffer,"sidebar-state":e.sidebarState}}),e._t("before"),"connected"===e.buffer.getNetwork().state||e.buffer.isServer()?e._e():n("not-connected",{attrs:{buffer:e.buffer,network:e.buffer.getNetwork()}}),n("div",{staticClass:"kiwi-container-content"},[e.buffer.isServer()?[n("server-view",{attrs:{network:e.network}})]:[n("message-list",{attrs:{buffer:e.buffer}}),e.buffer.isSpecial()?e._e():n("sidebar",{attrs:{network:e.network,buffer:e.buffer,"sidebar-state":e.sidebarState}})],e._t("after")],2)]:[n("div",{staticClass:"kiwi-container-empty"},[n("h4",[e._v(e._s(e.$t("container_welcome")))]),n("a",{staticClass:"u-button",on:{click:function(t){return t.stopPropagation(),e.toggleStateBrowser.apply(null,arguments)}}},[e._v(" "+e._s(e.$t("container_statebrowser"))+" ")])])]],2)},s=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("span",{staticClass:"kiwi-container-statebrowser-messagecount-close"},[n("i",{staticClass:"fa fa-times",attrs:{"aria-hidden":"true"}})])}]},"4e7a":function(e,t,n){},"4f99":function(e,t,n){"use strict";n("514b")},"50b5":function(e,t,n){"use strict";var i=n("1bd5");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=i(n("b6ce")),r=i(n("f391")),a=i(n("5ea5")),o=i(n("f21b")),c=i(n("1f5b")),u=i(n("1fe6")),l={components:{ContainerHeader:r.default,Sidebar:a.default,NotConnected:o.default,MessageList:c.default,ServerView:u.default},props:["network","buffer","sidebarState"],data:function(){return{}},computed:{bufferType:function(){var e="";return this.buffer?this.buffer.isServer()?e="server":this.buffer.isChannel()?e="channel":this.buffer.isQuery()&&(e="query"):e="none",e},unreadMessages:function(){var e=0,t=!1;return this.$state.networks.forEach((function(n){n.buffers.forEach((function(n){e+=(0,s.default)(n).unread||0,(0,s.default)(n).highlight&&(t=!0)}))})),{count:e,highlight:t}}},created:function(){var e=this;this.listen(this.$state,"sidebar.toggle",(function(){e.$state.$emit("sidebar."+(e.sidebarState.isDrawn?"hide":"show"))})),this.listen(this.$state,"sidebar.show",(function(){e.sidebarState.showNicklist()})),this.listen(this.$state,"sidebar.hide",(function(){e.sidebarState.close()})),this.listen(this.$state,"userbox.show",(function(t,n){e.sidebarState.showUser(t)})),this.listen(this.$state,"userbox.hide",(function(){e.sidebarState.close()})),this.listen(this.$state,"document.keydown",(function(t){if(33===t.keyCode||34===t.keyCode){var n=e.$el.querySelector(".kiwi-messagelist")||e.$el.querySelector(".u-tabbed-content");if(n){t.preventDefault();var i=n.clientHeight-.1*n.clientHeight,s=n.scrollTop,r=n.scrollHeight;33===t.keyCode?(s-=i,s<0&&(s=0)):(s+=i,s>r&&(s=r)),n.scrollTop=s}}}))},methods:{toggleStateBrowser:function(){this.$state.$emit("statebrowser.toggle")},toggleSidebar:function(){this.buffer.isChannel()&&this.$state.$emit("sidebar.toggle")}}};t.default=l,window._kiwi_exports=window._kiwi_exports||{},window._kiwi_exports["components"]||(window._kiwi_exports["components"]={}),window._kiwi_exports["components"]["Container"],window._kiwi_exports.components.Container=t.default?t.default:t},5135:function(e,t,n){"use strict";n.r(t);var i=n("d4e2"),s=n("9208");for(var r in s)"default"!==r&&function(e){n.d(t,e,(function(){return s[e]}))}(r);n("b119");var a=n("0c7c"),o=Object(a["a"])(s["default"],i["a"],i["b"],!1,null,null,null);t["default"]=o.exports},"514b":function(e,t,n){"use strict";n.r(t);var i=n("cf75"),s=n("1109");for(var r in s)"default"!==r&&function(e){n.d(t,e,(function(){return s[e]}))}(r);n("6e56");var a=n("0c7c"),o=Object(a["a"])(s["default"],i["a"],i["b"],!1,null,null,null);t["default"]=o.exports},"51e1":function(e,t,n){"use strict";n("2436")},"51e2":function(e,t,n){"use strict";n.r(t);var i=n("8292"),s=n.n(i);for(var r in i)"default"!==r&&function(e){n.d(t,e,(function(){return i[e]}))}(r);t["default"]=s.a},5276:function(e,t,n){},"52fe":function(e,t,n){"use strict";n("2719")},"53e5":function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return s}));var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"kiwi-channelbanlist"},[n("form",{staticClass:"u-form kiwi-channelbanlist",on:{submit:function(e){e.preventDefault()}}},[n("a",{staticClass:"u-link",on:{click:e.updateBanlist}},[e._v(e._s(e.$t("bans_refresh")))]),e.banlist.length>0?n("table",{staticClass:"kiwi-channelbanlist-table"},[n("tr",[n("th",[e._v(e._s(e.$t("bans_user")))]),n("th"),n("th")]),e._l(e.banlist,(function(t){return n("tr",{key:t.banned,attrs:{title:"By "+t.banned_by}},[n("td",{staticClass:"kiwi-channelbanlist-table-mask"},[e._v(e._s(t.banned))]),n("td",{staticClass:"kiwi-channelbanlist-table-bannedat"},[e._v(" "+e._s(new Date(1e3*t.banned_at).toDateString())+" ")]),n("td",{staticClass:"kiwi-channelbanlist-table-actions"},[n("i",{staticClass:"fa fa-trash",attrs:{"aria-hidden":"true"},on:{click:function(n){return e.removeBan(t.banned)}}})])])}))],2):e.is_refreshing?n("div",[e._v(" "+e._s(e.$t("bans_refreshing"))+" ")]):n("div",{staticClass:"kiwi-channelbanlist-empty"},[e._v(" "+e._s(e.$t("bans_nobody"))+" ")])])])},s=[]},5426:function(e,t,n){"use strict";n.r(t);var i=n("4831"),s=n.n(i);for(var r in i)"default"!==r&&function(e){n.d(t,e,(function(){return i[e]}))}(r);t["default"]=s.a},5502:function(e,t,n){},"551f":function(e,t,n){},"563e":function(e,t,n){"use strict";n("5502")},"56a4":function(e,t,n){"use strict";n("c425")},"56d7":function(e,t,n){"use strict";var i=n("9e19"),s=n("b4d1"),r=n("7c78"),a=n("1bd5"),o=a(n("6b47")),c=a(n("89ba")),u=a(n("284c")),l=a(n("bf2d")),f=a(n("3393")),d=a(n("fa81")),p=a(n("3b4c")),h=a(n("9a73")),w=a(n("3818")),m=a(n("a3e3")),v=a(n("2ef0")),g=a(n("5ee5")),_=a(n("5e48")),k=a(n("5f34")),b=a(n("fe83")),y=a(n("55d9")),C=a(n("e508"));n("a899"),n("6d93"),n("5abe");var x=a(n("e68e")),$=a(n("7359")),S=a(n("612c")),O=a(n("00f8")),N=a(n("0470")),A=a(n("7ae5")),T=a(n("f72e")),M=a(n("189e")),P=a(n("e15f")),B=a(n("6197")),j=F(n("70c2")),E=F(n("862b")),I=a(n("385f")),L=n("e019"),U=n("bdce"),R=a(n("2e7b")),D=n("56f3");function q(e){if("function"!==typeof s)return null;var t=new s,n=new s;return(q=function(e){return e?n:t})(e)}function F(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!==typeof e)return{default:e};var n=q(t);if(n&&n.has(e))return n.get(e);var s={},a=Object.defineProperty&&r;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var c=a?r(e,o):null;c&&(c.get||c.set)?Object.defineProperty(s,o,c):s[o]=e[o]}return s.default=e,n&&n.set(e,s),s}n("7c06"),n("5f93"),n("72b4"),n("a1a6"),n("a667"),n("3a1a"),n("4f99"),g.default.use(C.default);var H=window.location.href.match(/kiwi-loglevel=(\d)/);if(H&&H[1]){var z=parseInt(H[1],10);N.default.setLevel(z),(0,N.default)("Logging level set to",z)}var V=N.default.namespace("main"),K=window.kiwi=I.default.singleton();function W(e){for(var t=window.location.search.substring(1),n=t.split("&"),i=0;i=0;t--){var n;if(this.timerEvents[t]===e)return(0,f.default)(n=this.timerEvents).call(n,t,1),clearTimeout(e),!0}return!1}))}}),g.default.mixin({computed:{$state:function(){return(0,T.default)()}}}),g.default.directive("rawElement",{bind:function(e,t){if(t.value.nodeName)e.appendChild(t.value);else if(t.value.el){var n=t.value.el;e.appendChild(n),t.value.data&&(0,d.default)(t.value.data).forEach((function(e){n.dataset[e]=t.value.data[e]})),t.value.props&&(0,d.default)(t.value.props).forEach((function(e){n[e]=t.value.props[e]}))}}}),g.default.directive("focus",{bind:function(e,t){e.dataset.focus=void 0===t.value||!!t.value},inserted:function(e){if("true"===e.dataset.focus)if("INPUT"!==e.tagName){var t=e.getElementsByTagName("input")[0];t&&t.focus()}else e.focus()}});var Q=(0,p.default)("resizeobserver");function G(){var e="static/config.json",t=null;if(W("config"))e="static/config_"+W("config")+".json";else if("function"===typeof window.kiwiConfig)try{t=window.kiwiConfig()}catch(s){V.error("Config file: "+s.stack),ae()}else if(document.querySelector('meta[name="kiwiconfig"]'))e=document.querySelector('meta[name="kiwiconfig"]').content;else if(document.querySelector('script[name="kiwiconfig"]')){var n=document.querySelector('script[name="kiwiconfig"]').innerHTML;try{t=_.default.parse(n)}catch(r){V.error("Config file: "+r.stack),ae()}}var i=new A.default;i.addValueReplacement("protocol",window.location.protocol).addValueReplacement("wsprotocol","https:"===window.location.protocol?"wss:":"ws:").addValueReplacement("tls","https:"===window.location.protocol).addValueReplacement("hostname",window.location.hostname).addValueReplacement("host",window.location.host).addValueReplacement("port",window.location.port||("https:"===window.location.protocol?443:80)).addValueReplacement("hash",(window.location.hash||"").substr(1)).addValueReplacement("query",(window.location.search||"").substr(1)).addValueReplacement("referrer",window.document.referrer),(t?i.loadFromObj(t):i.loadFromUrl(e)).then(Y).then(ee).then(se).then(X).then(ne).then(Z).then(ie).then(re).catch(ae)}function Y(e){E.dedotObject(e),D.configTemplates[e.template]&&J(D.configTemplates[e.template],(0,T.default)().settings),J(e,(0,T.default)().settings)}function J(e,t){var n=["emojis","autocompleteTokens"];v.default.each(e,(function(e,i){if("object"===(0,l.default)(e)){if("object"!==(0,l.default)(t[i])||t===(0,T.default)().settings&&(0,h.default)(n).call(n,i)){var s=v.default.isArray(e)?[]:{};g.default.set(t,i,s)}J(e,t[i])}else g.default.set(t,i,e)}))}function Z(){return new w.default((function(e,t){var n=(0,T.default)().settings.plugins||[],i=-1;function s(t,r){var a=n[++i];if(a)if(a.url.indexOf(".js")>-1){var o=document.createElement("script");o.onerror=function(){var e;V.error((0,m.default)(e="Error loading plugin '".concat(a.name,"' from '")).call(e,a.url,"'")),s()},o.onload=function(){s()},document.body.appendChild(o),o.src=a.url}else fetch(a.url).then((function(e){return e.text()})).then((function(e){var t=document.createElement("div");t.id="kiwi_plugin_"+a.name.replace(/[ "']/g,""),t.style.display="none",t.innerHTML=e;var n=(0,u.default)(t.querySelectorAll("script"));n.forEach((function(e){e.parentElement.removeChild(e);var n=document.createElement("script");n.text=e.text,t.appendChild(n)})),document.body.appendChild(t),s()})).catch((function(){var e;V.error((0,m.default)(e="Error loading plugin '".concat(a.name,"' from '")).call(e,a.url,"'")),s()}));else e()}s()}))}function X(){g.default.use(y.default),k.default.use(b.default),k.default.init({whitelist:x.default.locales,fallbackLng:"en-us",lowerCaseLng:!0,backend:{loadPath:"static/locales/{{lng}}.json",crossDomain:!1,withCredentials:!1},interpolation:{escapeValue:!1}}),k.default.addResourceBundle("en-us","translation",$.default),K.i18n=k.default,K.vueI18n=new y.default(k.default),g.default.mixin({computed:{$t:function(){var e=this;return function(t,n){var i=e.$i18n||K.vueI18n,s=i.i18next.t(t,n,i.i18nLoadedAt);if(!s){var r=n||{};r.lng="en-us",s=i.i18next.t(t,r,i.i18nLoadedAt)}return s}}}});var e=function(){var e=(0,T.default)().setting("language"),t=v.default.clone(window.navigator&&window.navigator.languages)||[];e&&t.unshift(e),k.default.changeLanguage("en-us");for(var n=0;n:-)":"1f606.png","':-(":"1f613.png",">:-(":"1f620.png",":'-(":"1f622.png","O:-)":"1f607.png","0:-3":"1f607.png","0:-)":"1f607.png","0;^)":"1f607.png","O;-)":"1f607.png","0;-)":"1f607.png","O:-3":"1f607.png","-__-":"1f611.png",":-Þ":"1f61b.png","<3":"2764.png",":)":"1f606.png",">;)":"1f606.png",">=)":"1f606.png",XD:"1f606.png",";-)":"1f609.png","*-)":"1f609.png",";-]":"1f609.png",";^)":"1f609.png","':(":"1f613.png","'=(":"1f613.png",":-*":"1f618.png",":^*":"1f618.png",">:P":"1f61c.png","X-P":"1f61c.png",">:[":"1f61e.png",":-(":"1f61e.png",":-[":"1f61e.png",">:(":"1f620.png",":'(":"1f622.png",";-(":"1f622.png",">.<":"1f623.png","#-)":"1f635.png","%-)":"1f635.png","X-)":"1f635.png","\\0/":"1f646.png","\\O/":"1f646.png","0:3":"1f607.png","0:)":"1f607.png","O:)":"1f607.png","O=)":"1f607.png","O:3":"1f607.png","B-)":"1f60e.png","8-)":"1f60e.png","B-D":"1f60e.png","8-D":"1f60e.png","-_-":"1f611.png",">:\\":"1f615.png",">:/":"1f615.png",":-/":"1f615.png",":-.":"1f615.png",":-P":"1f61b.png",":Þ":"1f61b.png",":-b":"1f61b.png",":-O":"1f62e.png",O_O:"1f62e.png",">:O":"1f62e.png",":-X":"1f636.png",":-#":"1f636.png",":-)":"1f642.png","(y)":"1f44d.png",":D":"1f603.png","=D":"1f603.png",";)":"1f609.png","*)":"1f609.png",";]":"1f609.png",";D":"1f609.png",":*":"1f618.png","=*":"1f618.png",":(":"1f61e.png",":[":"1f61e.png","=(":"1f61e.png",":@":"1f620.png",";(":"1f622.png","D:":"1f628.png",":$":"1f633.png","=$":"1f633.png","#)":"1f635.png","%)":"1f635.png","X)":"1f635.png","B)":"1f60e.png","8)":"1f60e.png",":/":"1f615.png",":\\":"1f615.png","=/":"1f615.png","=\\":"1f615.png",":L":"1f615.png","=L":"1f615.png",":P":"1f61b.png",":p":"1f61b.png","=P":"1f61b.png",":b":"1f61b.png",":O":"1f62e.png",":X":"1f636.png",":#":"1f636.png","=X":"1f636.png","=#":"1f636.png",":)":"1f642.png","=]":"1f642.png","=)":"1f642.png",":]":"1f642.png"},emojiLocation:"https://kiwiirc.com/shared/emoji/",textFormats:{user:"%nick",user_full:"%nick (%username@%host)",channel_join:"→ %text",channel_part:"← %text (%reason)",channel_quit:"← %text (%reason)",channel_kicked:"← %text (%reason)",channel_selfkick:"× %text (%reason)",channel_badpassword:"× %text",channel_topic:"ⓘ %text",channel_banned:"× %text",channel_badkey:"⚠ %text",channel_inviteonly:"⚠ %channel %text",channel_alreadyin:"⚠ %nick %text",channel_limitreached:"⚠ %channel %text",channel_invalid_name:"⚠ %channel %text",channel_topic_setby:"ⓘ %text",channel_has_been_invited:"ⓘ %nick %text",server_connecting:"%text",server_connecting_error:"%text",mode:"ⓘ %text",selfmode:"ⓘ %nick %text",nickname_alreadyinuse:"⚠ %text",network_disconnected:"%text",network_connected:"%text",whois_channels:"%text",whois_idle_and_signon:"%text",whois_away:"%text",whois_server:"%text",whois_idle:"%text",whois_notfound:"ⓘ %text",nick_changed:"ⓘ %text",applet_notfound:"⚠ %text",encoding_changed:"ⓘ %text",encoding_invalid:"⚠ %text",settings_saved:"ⓘ %text",ignore_title:"%text:",ignore_none:"%text",ignore_nick:"%text",ignore_stop_notice:"%text",ignore_stopped:"%text",chanop_privs_needed:"⚠ %text",no_such_nick:"ⓘ %nick: %text",unknown_command:"ⓘ %text",motd:"%text",ctcp_response:"[CTCP %nick reply] %message",ctcp_request:"[CTCP %nick] %message",privmsg:"%text",notice:"[NOTICE] %text",action:"* %nick %text",whois_ident:"%nick [%nick!%ident@%host] * %text",whois_error:"[%nick] %text",whois:"%text",whowas_ident:"was [%nick!%ident@%host] * %name",whowas_server:"using %server (%info)",whowas_error:"[%nick] %text",who:"%nick [%nick!%ident@%host] * %realname",quit:"%text",rejoin:"%text",set_setting:"ⓘ %text",list_aliases:"ⓘ %text",ignored_pattern:"ⓘ %text",wallops:"[WALLOPS] %text",message_nick:"%prefix%nick",general_error:"%text"},presetNetworks:[]},irc:{showEmojiPicker:!1,sidebarDefault:"nicklist",buffers:{messageLayout:"inline",show_hostnames:!0,coloured_nicklist:!1,colour_nicknames_in_messages:!1,show_emoticons:!1,show_message_info:!1,share_typing:!1,inline_link_auto_previews:!1}},team:{teamHighlights:!0,buffers:{messageLayout:"modern",show_joinparts:!1,show_nick_changes:!0,show_mode_changes:!0,show_realnames:!0}}};t.configTemplates=i},"56f4":function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return s}));var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"kiwi-selfuser kiwi-theme-bg"},[e.self_user_settings_open?n("div",{staticClass:"kiwi-selfuser-actions"},[e.error_message?n("div",{staticClass:"kiwi-selfuser-error-message"},[e._v(e._s(e.error_message))]):e._e(),n("input-prompt",{directives:[{name:"focus",rawName:"v-focus"}],attrs:{label:e.$t("enter_new_nick"),block:!0},on:{submit:e.onNewNickSubmit,cancel:e.closeNickChange}})],1):n("div",{staticClass:"kiwi-selfuser-mask"},[n("span",{staticClass:"kiwi-selfuser-nick"},[n("away-status-indicator",{attrs:{network:e.network,user:e.network.currentUser()}}),e._v(" "+e._s(e.network.nick)+" "),n("i",{staticClass:"fa fa-times",attrs:{"aria-hidden":"true"},on:{click:function(t){return e.closeSelfUser()}}}),n("i",{staticClass:"fa fa-pencil",attrs:{"aria-hidden":"true"},on:{click:function(t){return e.openSelfActions()}}}),n("i",{staticClass:"fa fa-user",attrs:{"aria-hidden":"true"},on:{click:function(t){return e.openProfile()}}})],1),n("span",{staticClass:"kiwi-selfuser-host"},[e._v(" "+e._s(e.netUser.username)+"@"+e._s(e.netUser.host)+" ( "+e._s(e.modeString)+" ) ")]),e.networkSupportsAway()?n("div",{staticClass:"u-form kiwi-away-checkbox-form"},[n("label",{staticClass:"kiwi-selfuser-away-label"},[n("span",[e._v(e._s(e.$t("away")))]),n("input",{directives:[{name:"model",rawName:"v-model",value:e.awayStatus,expression:"awayStatus"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.awayStatus)?e._i(e.awayStatus,null)>-1:e.awayStatus},on:{change:function(t){var n=e.awayStatus,i=t.target,s=!!i.checked;if(Array.isArray(n)){var r=null,a=e._i(n,r);i.checked?a<0&&(e.awayStatus=n.concat([r])):a>-1&&(e.awayStatus=n.slice(0,a).concat(n.slice(a+1)))}else e.awayStatus=s}}})])]):e._e()])])},s=[]},"572b":function(e,t,n){"use strict";var i=n("1bd5");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=i(n("e4f0")),r=i(n("385f")),a=i(n("9332")),o=i(n("e54d")),c={props:["network","buffer","sidebarState"],data:function(){return{self:this,pluginUiSections:r.default.singleton().aboutBufferPlugins,closedSections:{}}},computed:{b:function(){return this.buffer||{}},formattedTopic:function(){var e=(0,o.default)(this.b.topic||"",{extras:!1}),t=(0,a.default)(e);return t},highlights:function(){var e,t,n,i,r;this.buffer.message_count;return(0,s.default)(e=(0,s.default)(t=(0,s.default)(n=(0,s.default)(i=(0,s.default)(r=this.buffer.getMessages()).call(r,(function(e){return e.isHighlight}))).call(i,(function(e){return"traffic"!==e.type}))).call(n,(function(e){return"topic"!==e.type}))).call(t,(function(e){return"mode"!==e.type}))).call(e,(function(e){return e.html})).sort((function(e,t){return t.time-e.time}))}},methods:{toggleSection:function(e){this.$set(this.closedSections,e,!this.closedSections[e])}}};t.default=c,window._kiwi_exports=window._kiwi_exports||{},window._kiwi_exports["components"]||(window._kiwi_exports["components"]={}),window._kiwi_exports["components"]["SidebarAboutBuffer"],window._kiwi_exports.components.SidebarAboutBuffer=t.default?t.default:t},"57d8":function(e,t,n){"use strict";n.r(t);var i=n("bb33"),s=n("46d4");for(var r in s)"default"!==r&&function(e){n.d(t,e,(function(){return s[e]}))}(r);n("56a4");var a=n("0c7c"),o=Object(a["a"])(s["default"],i["a"],i["b"],!1,null,null,null);t["default"]=o.exports},"58de":function(e,t,n){"use strict";n("e9ad")},5928:function(e,t,n){"use strict";var i=n("1bd5");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=i(n("e4f0")),r=i(n("2ef0")),a={props:["filter","buffer","items"],data:function(){return{selected_idx:0}},computed:{filteredItems:function(){var e,t=((0,s.default)(this)||"").toLowerCase();return(0,s.default)(e=(0,r.default)(this.items)).call(e,(function(e){var n=!1;return 0===e.text.toLowerCase().indexOf(t)&&(n=!0),(e.alias||[]).forEach((function(e){0===e.toLowerCase().indexOf(t)&&(n=!0)})),n})).sort((function(e,t){return e.text.localeCompare(t.text)})).value()},filteredAndLimitedItems:function(){var e,t=this;return(0,s.default)(e=this.filteredItems).call(e,(function(e,n,i){var s=i.length-1,r=t.selected_idx-3,a=t.selected_idx+3,o=!1;return r<0?(a+=-r,r=0):a>s&&(r-=a-s,a=s),n>=r&&n<=a&&(o=!0),e.idx=n,o}))},selectedItem:function(){var e=this.filteredItems[this.selected_idx];return e||null}},watch:{selected_idx:function(){var e=this;this.$nextTick((function(){var t=e.$el.querySelector(".kiwi-autocomplete-item--selected");t&&(e.$el.scrollTop=t.offsetTop-2*t.getBoundingClientRect().height)})),this.tempCurrentItem()},filter:function(){var e=this.filteredAndLimitedItems.length-1;this.selected_idx>e&&(this.selected_idx=e)}},mounted:function(){this.tempCurrentItem()},methods:{handleOnKeyDown:function(e){var t=!1,n=[13,32,186,188,190];if(n.indexOf(e.keyCode)>-1)this.selectedItem?(this.selectCurrentItem(),13===e.keyCode&&e.preventDefault(),t=!0):this.cancel();else if(38===e.keyCode||9===e.keyCode&&e.shiftKey)this.selected_idx>0?this.selected_idx--:this.selected_idx=this.filteredItems.length-1,e.preventDefault(),t=!0;else if(40===e.keyCode&&!e.altKey||9===e.keyCode)this.selected_idxi-4&&(s=10-(i-this.selected_idx)),33===e.keyCode?this.selected_idx-=s:this.selected_idx+=s,this.selected_idx>i?this.selected_idx=i:this.selected_idx<0&&(this.selected_idx=0),t=!0}return t},openQuery:function(e){var t=this.$state.addBuffer(this.buffer.networkid,e);this.$state.setActiveBuffer(t.networkid,t.name),this.cancel()},tempCurrentItem:function(){var e=this.selectedItem;e&&this.$emit("temp",e.value||e.text,e)},selectCurrentItem:function(){var e=this.selectedItem,t="";e&&(t=e.value||e.text),this.$emit("selected",t,e)},cancel:function(){this.$emit("cancel")}}};t.default=a,window._kiwi_exports=window._kiwi_exports||{},window._kiwi_exports["components"]||(window._kiwi_exports["components"]={}),window._kiwi_exports["components"]["AutoComplete"],window._kiwi_exports.components.AutoComplete=t.default?t.default:t},"59eb":function(e,t,n){"use strict";n("5276")},"5a16":function(e,t,n){"use strict";var i=n("9e19"),s=n("b4d1"),r=n("7c78"),a=n("1bd5");Object.defineProperty(t,"__esModule",{value:!0}),t.linkifyChannels=b,t.createNickColour=y,t.toInt=C,t.hexVal=x,t.mapRange=$,t.formatAndT=S,t.formatUser=O,t.formatUserFull=N,t.formatText=A,t.formatDuration=T,t.formatNumber=M,t.t=P,t.channelRegex=t.urlRegex=void 0;var o=a(n("bf2d")),c=a(n("44a4")),u=a(n("a3e3")),l=a(n("800f")),f=a(n("2ef0")),d=g(n("104d")),p=a(n("5f34")),h=g(n("2304")),w=a(n("f72e")),m=a(n("189e"));function v(e){if("function"!==typeof s)return null;var t=new s,n=new s;return(v=function(e){return e?n:t})(e)}function g(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!==typeof e)return{default:e};var n=v(t);if(n&&n.has(e))return n.get(e);var s={},a=Object.defineProperty&&r;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var c=a?r(e,o):null;c&&(c.get||c.set)?Object.defineProperty(s,o,c):s[o]=e[o]}return s.default=e,n&&n.set(e,s),s}var _=new RegExp(/(([A-Za-z][A-Za-z0-9-]*:\/\/)|(www\.))/.source+"("+/([\w\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF.-]+\.[a-zA-Z]{2,63})/.source+"|"+d.v4().source+"|(\\[?"+d.v6().source+"\\]?))"+/(:[0-9]+)?/.source+/(\/[\w\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF!:.?$'()[\]*,;~+=&%@!\-/]*)?/.source+/(#.*)?/.source,"i");t.urlRegex=_;var k=/(^|\s)([@+~&%}]*)([#&][^ ,\007<>\n\r]+?)([:;.,<>\n\r]+)?$/i;function b(e){return e.replace(k,(function(e,t,n,i,s){var r,a,o,l,d=f.default.escape((0,c.default)(i).call(i)),p=f.default.escape(t),h=f.default.escape(n),w=f.default.escape(s),m=(0,u.default)(r='')).call(r,d,"");return(0,u.default)(a=(0,u.default)(o=(0,u.default)(l="".concat(p)).call(l,h)).call(o,m)).call(a,w)}))}function y(e){var t,n,i=m.default.instance(),s=(e||"").toLowerCase(),r=h.x86.hash32(s),a=C(i.themeVar("nickcolour-count"))||200,o=C(i.themeVar("nickcolour-hueoffset")),c={h:$(Math.abs(r)%a,0,a,0,360)+o,s:C(i.themeVar("nickcolour-saturation"))||70,l:C(i.themeVar("nickcolour-lightness"))||40};return(0,u.default)(t=(0,u.default)(n="hsl(".concat(c.h,", ")).call(n,c.s,"%, ")).call(t,c.l,"%)")}function C(e){var t=parseInt(e,10);return(0,l.default)(t)&&(t=0),t}function x(e,t,n){return parseInt(e.substr(t,n||1),16)}function $(e,t,n,i,s){var r=parseFloat(e),a=n-t,o=s-i;return(r-t)*o/a+i}function S(e,t,n,i){var s=P(n,i);return t?(t.text=s,s=A(e,t)):s=A(e,{text:s}),s}function O(e){var t=e;return"object"===(0,o.default)(t)&&(t=t.nick),A("user",{nick:t})}function N(e,t,n){var i="",s="",r="";if("object"===(0,o.default)(e)){var a=e;i=a.nick,s=a.username||a.ident,r=a.hostname||a.host}else i=e,s=t,r=n;return A("user_full",{nick:i,username:s,host:r})}function A(e,t){var n=(0,w.default)().setting("textFormats."+e),i=t;"string"===typeof i&&(i={text:i}),i.user&&(i.nick=i.user.nick||"",i.username=i.user.username||"",i.host=i.user.hostname||"",i.prefix=i.user.prefix||"");var s=n.replace(/%([A-Z]{2,})/gi,(function(e,t){var n="";return"undefined"!==typeof i[t]&&(n=i[t]),n}));return s}function T(e){var t=e,n=Math.floor(t/604800);t-=3600*n*24*7;var i=Math.floor(t/86400);t-=3600*i*24;var s=Math.floor(t/3600);t-=3600*s;var r=Math.floor(t/60);t-=60*r;var a=[];return n&&a.push(P("week",{count:n})),(n||i)&&a.push(P("day",{count:i})),(i||s)&&a.push(P("hour",{count:s})),(i||s||r)&&a.push(P("minute",{count:r})),a.push(P("second",{count:t})),a.join(" ")}function M(e){return e.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,")}function P(e,t){var n=p.default.t(e,t);if(!n){var i=t||{};i.lng="en-us",n=p.default.t(e,i)}return n}t.channelRegex=k,window._kiwi_exports=window._kiwi_exports||{},window._kiwi_exports["helpers"]||(window._kiwi_exports["helpers"]={}),window._kiwi_exports["helpers"]["TextFormatting"],window._kiwi_exports.helpers.TextFormatting=t.default?t.default:t},"5a50":function(e,t,n){},"5a5e":function(e,t,n){"use strict";var i=n("9e19"),s=n("b4d1"),r=n("7c78"),a=n("1bd5");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=a(n("6b47")),c=a(n("89ba")),u=p(n("5a16")),l=a(n("f72e")),f=a(n("d369"));function d(e){if("function"!==typeof s)return null;var t=new s,n=new s;return(d=function(e){return e?n:t})(e)}function p(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!==typeof e)return{default:e};var n=d(t);if(n&&n.has(e))return n.get(e);var s={},a=Object.defineProperty&&r;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var c=a?r(e,o):null;c&&(c.get||c.set)?Object.defineProperty(s,o,c):s[o]=e[o]}return s.default=e,n&&n.set(e,s),s}var h=!0,w={data:function(){return{about_open:!1}},computed:{networks:function(){return this.$state.networks},aboutContent:function(){return f.default}},methods:{addNetwork:function(){var e="Guest"+Math.floor(100*Math.random()),t=this.$state.addNetwork(u.t("new_network"),e,{});t.showServerBuffer("settings")},toggleStateBrowser:function(){this.$state.$emit("statebrowser.show")},init:function(){var e=this;return(0,c.default)(o.default.mark((function t(){return o.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.$state.persistence.watchStateForChanges(),e.$emit("start",{fallbackComponent:e.constructor});case 2:case"end":return t.stop()}}),t)})))()}},created:function(){var e=(0,c.default)(o.default.mark((function e(){return o.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:h&&(this.init(),h=!1);case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},m=w;t.default=m,(0,l.default)().getStartups().kiwiirccom=w,window._kiwi_exports=window._kiwi_exports||{},window._kiwi_exports["thirdparty"]||(window._kiwi_exports["thirdparty"]={}),window._kiwi_exports["thirdparty"]["kiwiirccom"],window._kiwi_exports.thirdparty.kiwiirccom=t.default?t.default:t},"5a9e":function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return s}));var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"kiwi-buffersettings"},[n("div",{staticClass:"kiwi-buffersettings-alerts"},[n("h3",[e._v(e._s(e.$t("settings_notify")))]),n("hr"),n("form",{staticClass:"u-form"},[n("label",{staticClass:"u-checkbox-wrapper"},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.settingAlertOn,expression:"settingAlertOn"}],attrs:{type:"radio",name:"alert_on",value:"message"},domProps:{checked:e._q(e.settingAlertOn,"message")},on:{change:function(t){e.settingAlertOn="message"}}}),n("span",[e._v(e._s(e.$t("settings_notify_all")))])]),n("label",{staticClass:"u-checkbox-wrapper"},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.settingAlertOn,expression:"settingAlertOn"}],attrs:{type:"radio",name:"alert_on",value:"highlight"},domProps:{checked:e._q(e.settingAlertOn,"highlight")},on:{change:function(t){e.settingAlertOn="highlight"}}}),n("span",[e._v(e._s(e.$t("settings_notify_mentioned")))])]),n("label",{staticClass:"u-checkbox-wrapper"},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.settingAlertOn,expression:"settingAlertOn"}],attrs:{type:"radio",name:"alert_on",value:"never"},domProps:{checked:e._q(e.settingAlertOn,"never")},on:{change:function(t){e.settingAlertOn="never"}}}),n("span",[e._v(e._s(e.$t("settings_notify_never")))])])]),n("h3",[e._v(e._s(e.$t("settings")))]),n("hr"),n("form",{staticClass:"u-form"},[n("label",[n("span",[e._v(e._s(e.$t("settings_notify_mute")))]),n("input",{directives:[{name:"model",rawName:"v-model",value:e.settingMuteSound,expression:"settingMuteSound"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.settingMuteSound)?e._i(e.settingMuteSound,null)>-1:e.settingMuteSound},on:{change:function(t){var n=e.settingMuteSound,i=t.target,s=!!i.checked;if(Array.isArray(n)){var r=null,a=e._i(n,r);i.checked?a<0&&(e.settingMuteSound=n.concat([r])):a>-1&&(e.settingMuteSound=n.slice(0,a).concat(n.slice(a+1)))}else e.settingMuteSound=s}}})]),n("label",[n("span",[e._v(e._s(e.$t("settings_show_message_counts")))]),n("input",{directives:[{name:"model",rawName:"v-model",value:e.settingHideMessageCount,expression:"settingHideMessageCount"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.settingHideMessageCount)?e._i(e.settingHideMessageCount,null)>-1:e.settingHideMessageCount},on:{change:function(t){var n=e.settingHideMessageCount,i=t.target,s=!!i.checked;if(Array.isArray(n)){var r=null,a=e._i(n,r);i.checked?a<0&&(e.settingHideMessageCount=n.concat([r])):a>-1&&(e.settingHideMessageCount=n.slice(0,a).concat(n.slice(a+1)))}else e.settingHideMessageCount=s}}})])])])])},s=[]},"5ac7":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i={components:{},props:["buffer","message"],data:function(){return{requestingInput:!1}},computed:{},methods:{urlPreview:function(e){this.$state.$emit("mediaviewer.show",e)},areWeAnOp:function(){var e=this.buffer.getNetwork().nick;return this.buffer.isUserAnOp(e)},isSelf:function(){var e=this.$state.getUser(this.buffer.getNetwork().id,this.message.nick);return this.buffer.getNetwork().ircClient.user.nick===e.nick},onBan:function(e){var t=this.buffer.getNetwork();t.ircClient.mode(this.buffer.name,"+b",this.message.nick)},onKick:function(e){var t=this.buffer.getNetwork(),n=this.$state.setting("buffers.default_kick_reason"),i=e||n;t.ircClient.raw("KICK",this.buffer.name,this.message.nick,i)},openQuery:function(){var e=this.buffer.getNetwork(),t=this.$state.addBuffer(e.id,this.message.nick);this.$state.setActiveBuffer(e.id,t.name)}}};t.default=i,window._kiwi_exports=window._kiwi_exports||{},window._kiwi_exports["components"]||(window._kiwi_exports["components"]={}),window._kiwi_exports["components"]["MessageInfo"],window._kiwi_exports.components.MessageInfo=t.default?t.default:t},"5b0d":function(e,t,n){"use strict";var i=n("1bd5");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=i(n("f72e")),r={props:{},toggleSelfAway:function(e){if(e.isUserSelf){var t=e.user.isAway();e.network.ircClient.raw("AWAY",t?"":"Currently away")}},isUserSelf:function(e){if(!1===e.toggle)return!1;var t=(0,s.default)().getUser(e.network.id,e.network.nick);return e.user===t},shouldShowStatus:function(e){if(!(0,s.default)().setting("showAwayStatusIndicators"))return!1;if("connected"!==e.network.state)return!1;var t=e.network.ircClient.network.cap.isEnabled("away-notify");return(0,s.default)().setting("buffers.who_loop")||t}},a={props:{network:Object,user:Object,toggle:Boolean},m:r};t.default=a,window._kiwi_exports=window._kiwi_exports||{},window._kiwi_exports["components"]||(window._kiwi_exports["components"]={}),window._kiwi_exports["components"]["AwayStatusIndicator"],window._kiwi_exports.components.AwayStatusIndicator=t.default?t.default:t},"5bc7":function(e,t,n){"use strict";n.r(t);var i=n("b6b1"),s=n("15d0");for(var r in s)"default"!==r&&function(e){n.d(t,e,(function(){return s[e]}))}(r);n("d58a");var a=n("0c7c"),o=Object(a["a"])(s["default"],i["a"],i["b"],!1,null,null,null);t["default"]=o.exports},"5c34":function(e,t,n){"use strict";var i=n("9e19"),s=n("fa81"),r=n("3960"),a=n("e4f0"),o=n("7c78"),c=n("aa3c"),u=n("b4d1"),l=n("1bd5");Object.defineProperty(t,"__esModule",{value:!0}),t.create=L;var f=l(n("e587")),d=l(n("284c")),p=l(n("2fa7")),h=l(n("e76e")),w=l(n("b6ce")),m=l(n("52da")),v=l(n("fc56")),g=l(n("3393")),_=l(n("9a73")),k=l(n("e4f0")),b=l(n("a3e3")),y=l(n("fa81")),C=l(n("8b9c")),x=l(n("14b1")),$=l(n("44a4")),S=l(n("2ef0")),O=l(n("e9c4")),N=l(n("f43a")),A=j(n("5a16")),T=l(n("eef1")),M=l(n("9965")),P=j(n("fcde"));function B(e){if("function"!==typeof u)return null;var t=new u,n=new u;return(B=function(e){return e?n:t})(e)}function j(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!==typeof e)return{default:e};var n=B(t);if(n&&n.has(e))return n.get(e);var s={},r=Object.defineProperty&&o;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var c=r?o(e,a):null;c&&(c.get||c.set)?Object.defineProperty(s,a,c):s[a]=e[a]}return s.default=e,n&&n.set(e,s),s}function E(e,t){var n=s(e);if(r){var i=r(e);t&&(i=a(i).call(i,(function(t){return o(e,t).enumerable}))),n.push.apply(n,i)}return n}function I(e){for(var t=1;t-1&&(f[f.length-1]=":"+f[f.length-1]);var p=t.serverBuffer();e.addMessage(p,{time:Date.now(),nick:"",message:i.command+" "+f.join(" ")})}a()}}function r(s,r,a,o){var c={handled:!1};if(e.$emit("irc."+s,r,t,c),c.handled)o();else if(r&&"CONTROL"===r.command)o();else{var u=r&&r.time?t.ircClient.network.timeToLocal(r.time):Date.now(),l=r&&r.time||0;if("channel_redirect"===s){var p=t.bufferByName(r.from);p&&((0,w.default)(p).redirect_to=r.to)}if("registered"===s){i=!0,t.nick=r.nick,e.addUser(n,{nick:r.nick,username:a.user.username});var h=t.serverBuffer();e.addMessage(h,{time:u,server_time:l,nick:"",message:A.t("connected_to",{network:a.network.name})}),a.raw("WHO "+r.nick),t.auto_commands&&t.auto_commands.split("\n").forEach((function(n){e.$emit("input.raw","/"===n[0]?n:"/".concat(n),{network:t,buffer:h})})),t.connection.bncnetid||t.buffers.forEach((function(e){e.isChannel()&&e.enabled&&a.join(e.name,e.key)}))}if("server options"===s&&("Network"===a.network.name||t.connection.bncnetid||(t.name=a.network.name)),"unknown command"===s)if("486"===r.command||"477"===r.command){var N=r.params[1],T=e.getOrAddBufferByName(t.id,N);e.addMessageNoRepeat(T,{time:u,server_time:l,nick:"*",message:r.params[2],type:"error"}),"477"===r.command&&T.isChannel()&&T.enabled&&!T.joined&&(T.enabled=!1)}else{var M=t.serverBuffer(),P="";r.command.match(/^\d+$/)||(P+=r.command+" ");var B=r.params[0]===t.ircClient.user.nick,j=t.isChannelName(r.params[1]);if(B&&j){var E,I=t.bufferByName(r.params[1]);I&&(M=I),P+=(0,m.default)(E=r.params).call(E,2).join(", ")}else if(B){var L;P+=(0,m.default)(L=r.params).call(L,1).join(", ")}else P+=r.params.join(", ");e.addMessage(M,{nick:"",message:P})}if("batch start chathistory"===s.toLowerCase()&&a.chathistory){var U=0,D=0;if(r.commands.forEach((function(e){e.time&&e.time>D&&(D=e.time),e.time&&e.time0,De=[];if(r.users.forEach((function(e){De.push({user:{nick:e.nick,username:e.ident,hostname:e.hostname},modes:e.modes})})),e.addMultipleUsersToBuffer(Ue,De),!Re&&t.ircClient.chathistory.isSupported()){var qe=Ue.isChannel()||Ue.isQuery();qe&&Ue.requestLatestScrollback()}}if("user updated"===s){var Fe=t.userByName(r.nick);Fe&&(0,C.default)(r).forEach((function(e){var t=(0,f.default)(e,2),n=t[0],i=t[1];if(0===n.indexOf("new_")){var s=n.substr(4);switch(s){case"gecos":Fe.realname=i;break;case"ident":Fe.username=i;break;case"hostname":Fe.host=i;break;default:}}}))}if("channel info"===s){var He=t.bufferByName(r.channel);if(!He)return;if(r.modes){var ze=[];r.modes.forEach((function(t){var n="+"===t.mode[0],i=t.mode.substr(1);n?e.$set(He.modes,i,t.param):n||e.$delete(He.modes,i),ze.push(t.mode+(t.param?" "+t.param:""))})),(0,w.default)(He).requested_modes&&e.addMessage(He,{time:u,server_time:l,nick:"*",message:He.name+" "+ze.join(", ")})}if(r.created_at&&(He.created_at=new Date(1e3*r.created_at)),r.created_at&&(0,w.default)(He).requested_modes){var Ve=He.setting("timestamp_full_format"),Ke=Ve?(0,O.default)(Ve,new Date(1e3*r.created_at)):new Date(1e3*r.created_at).toLocaleString();e.addMessage(He,{time:u,server_time:l,nick:"*",message:He.name+" "+Ke})}}if("mode"===s){var We=t.bufferByName(r.target),Qe={};if(We){r.modes.forEach((function(n){Qe[n.mode]=Qe[n.mode]||[];var i=(0,v.default)(S.default).call(S.default,t.ircClient.network.options.PREFIX,{mode:n.mode[1]});if(i){var s=e.getUser(t.id,n.param);if(s){var r="+"===n.mode[0],a=s.buffers[We.id].modes,o=a.indexOf(i.mode);r&&-1===o?a.push(i.mode):!r&&o>-1&&(0,g.default)(a).call(a,o,1)}Qe[n.mode].push({target:n.param})}else{var c="+"===n.mode[0],u=n.mode.substr(1);c?e.$set(We.modes,u,n.param):c||e.$delete(We.modes,u),Qe[n.mode].push({target:We.name,param:n.param})}}));var Ge={"+o":"modes_give_ops","-o":"modes_take_ops","+h":"modes_give_halfops","-h":"modes_take_halfops","+v":"modes_give_voice","-v":"modes_take_voice","+a":"modes_give_admin","-a":"modes_take_admin","+q":"modes_give_owner","-q":"modes_take_owner","+b":"modes_gives_ban","-b":"modes_takes_ban"},Ye=t.ircClient.network.options.PREFIX;(0,y.default)(Ge).forEach((function(e){var t="b"===e[1]||(0,v.default)(Ye).call(Ye,(function(t){return e[1]===t.mode}));t||delete Ge[e]}));var Je={default:function(e,t){return{mode:t+(e[0].param?" "+e[0].param:""),target:(0,x.default)(e).call(e,(function(e){return e.target})).join(", "),nick:r.nick}},b:function(e,t){return{mode:t,target:e[0].param?e[0].param:"",nick:r.nick}}};S.default.each(Qe,(function(n,i){var s,a,o=Je,c=o[i[1]]||o.default,f=c(n,i),p=Ge[i]||"modes_other",h=A.t(p,f),w=(0,x.default)(n).call(n,(function(e){return e.target})),m=A.formatText("mode",{nick:r.nick,username:r.ident,host:r.hostname,target:w.join(", "),text:h}),v=(0,_.default)(s=(0,b.default)(a=[r.nick]).call(a,(0,d.default)(w))).call(s,t.nick)?"mode_self":"";e.addMessage(We,{time:u,server_time:l,nick:"",message:m,type:"mode",type_extra:v})}))}else{var Ze={};r.modes.forEach((function(e){if(e.param)Ze[e.mode]=" "+e.param;else if("-"===e.mode[0]){var t;Ze["-"]||(Ze["-"]=""),Ze["-"]+=(0,m.default)(t=e.mode).call(t,1)}else{var n;if(Ze["+"]||(Ze["+"]=""),"+"===e.mode[0])Ze["+"]+=(0,m.default)(n=e.mode).call(n,1);else Ze["+"]+=e.mode}}));var Xe=t.serverBuffer();S.default.each(Ze,(function(t,n){var i=A.t("modes_other",{nick:r.nick,target:r.target,mode:n+t}),s=A.formatText("mode",{nick:r.nick,username:r.ident,host:r.hostname,target:r.target,text:i});e.addMessage(Xe,{time:u,server_time:l,nick:"",message:s,type:"mode",type_extra:"mode_self"})}))}}if("banlist"===s){var et=e.getBufferByName(n,r.channel);if(et&&(0,w.default)(et).requested_banlist){if(r.bans&&0!==r.bans.length){var tt="";S.default.each(r.bans,(function(e){var t,n,i=new Date(1e3*e.banned_at).toDateString();tt+=(0,b.default)(t=(0,b.default)(n="+b ".concat(e.banned," [by ")).call(n,e.banned_by,", ")).call(t,i,"]\n")})),e.addMessage(et,{time:u,server_time:l,nick:"*",message:tt,type:"banlist"})}else e.addMessage(et,{time:u,server_time:l,nick:"",message:A.t("bans_nobody"),type:"banlist"});(0,w.default)(et).requested_banlist=!1}}if("topic"===s){var nt,it=e.getOrAddBufferByName(n,r.channel);it.topic=r.topic||"";var st="";r.nick?st=A.formatAndT("channel_topic",null,"changed_topic_to",{nick:r.nick,topic:r.topic}):(0,$.default)(nt=it.topic).call(nt)&&(st=A.formatText("channel_topic",it.topic)),st&&e.addMessage(it,{time:u,server_time:l,nick:"",message:st,type:"topic"})}if("help"===s){var rt=e.getOrAddBufferByName(n,"*help");e.addMessage(rt,{time:u,server_time:l,nick:"",message:r.help,type:"help",tags:r.tags||{}})}if("ctcp response"===s||"ctcp request"===s){var at=t.bufferByName(r.target)||t.serverBuffer(),ot="ctcp response"===s?"ctcp_response":"ctcp_request",ct=A.formatText(ot,{nick:r.nick,message:r.message,type:r.type});if(e.addMessage(at,{time:u,server_time:l,nick:"",message:ct,type:"error"}),"ctcp request"===s&&"VERSION"===r.type){var ut=r.from_server?r.hostname:r.nick;a.ctcpResponse(ut,"VERSION","Kiwi IRC")}}if("nick invalid"===s){var lt=A.formatText("general_error",{text:r.reason}),ft=e.getActiveBuffer();e.addMessage(ft,{time:u,server_time:l,nick:"",message:lt,type:"error"}),i||(t.last_error_numeric=432,t.last_error=r.reason,t.ircClient.quit())}if("irc error"===s){var dt;if((r.channel||r.nick)&&(dt=e.getOrAddBufferByName(t.id,r.channel||r.nick)),dt||(dt=t.serverBuffer()),!dt)return;if("bad_channel_key"===r.error&&((0,w.default)(dt).channel_badkey=!0),r.reason&&432!==t.last_error_numeric){i||(t.last_error=r.reason);var pt=A.formatText("general_error",{text:r.reason||r.error}),ht={time:u,server_time:l,nick:"",message:pt,type:"error"};if("cannot_send_to_channel"===r.error)return void e.addMessageNoRepeat(dt,ht);e.addMessage(dt,ht)}dt.isChannel()&&!dt.joined&&(dt.enabled=!1)}o()}}}function R(e,t){return Math.floor(Math.random()*(t-e+1)+e)}window._kiwi_exports=window._kiwi_exports||{},window._kiwi_exports["libs"]||(window._kiwi_exports["libs"]={}),window._kiwi_exports["libs"]["IrcClient"],window._kiwi_exports.libs.IrcClient=t.default?t.default:t},"5d58":function(e,t,n){"use strict";n.r(t);var i=n("eee9"),s=n("1d88");for(var r in s)"default"!==r&&function(e){n.d(t,e,(function(){return s[e]}))}(r);n("b96b");var a=n("0c7c"),o=Object(a["a"])(s["default"],i["a"],i["b"],!0,null,"320d1258",null);t["default"]=o.exports},"5db0":function(e,t,n){"use strict";n.r(t);var i=n("2295"),s=n.n(i);for(var r in i)"default"!==r&&function(e){n.d(t,e,(function(){return i[e]}))}(r);t["default"]=s.a},"5ea5":function(e,t,n){"use strict";n.r(t);var i=n("cc95"),s=n("eaab");for(var r in s)"default"!==r&&function(e){n.d(t,e,(function(){return s[e]}))}(r);n("dd9f");var a=n("0c7c"),o=Object(a["a"])(s["default"],i["a"],i["b"],!1,null,null,null);t["default"]=o.exports},"5f93":function(e,t,n){"use strict";n.r(t);var i=n("1871"),s=n("f67b");for(var r in s)"default"!==r&&function(e){n.d(t,e,(function(){return s[e]}))}(r);n("8008");var a=n("0c7c"),o=Object(a["a"])(s["default"],i["a"],i["b"],!1,null,null,null);t["default"]=o.exports},"5fd8":function(e,t,n){"use strict";n("3194")},6058:function(e,t,n){"use strict";n("2ac2")},"60f6":function(e,t,n){},"612c":function(e,t,n){"use strict";n.r(t);var i=n("7b98"),s=n("1612");for(var r in s)"default"!==r&&function(e){n.d(t,e,(function(){return s[e]}))}(r);n("7768");var a=n("0c7c"),o=Object(a["a"])(s["default"],i["a"],i["b"],!1,null,null,null);t["default"]=o.exports},6150:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=[{command:"msg",alias:[],description:"locale_id_command_msg"},{command:"action",alias:[],description:"locale_id_command_action"},{command:"join",alias:[],description:"locale_id_command_join"},{command:"part",alias:[],description:"locale_id_command_part"},{command:"cycle",alias:[],description:"locale_id_command_cycle"},{command:"nick",alias:[],description:"locale_id_command_nick"},{command:"query",alias:[],description:"locale_id_command_query"},{command:"invite",alias:[],description:"locale_id_command_invite"},{command:"topic",alias:[],description:"locale_id_command_topic"},{command:"notice",alias:[],description:"locale_id_command_notice"},{command:"quote",alias:[],description:"locale_id_command_quote"},{command:"kick",alias:[],description:"locale_id_command_kick"},{command:"clear",alias:[],description:"locale_id_command_clear"},{command:"ctcp",alias:[],description:"locale_id_command_ctcp"},{command:"quit",alias:[],description:"locale_id_command_quit"},{command:"server",alias:[],description:"locale_id_command_server"},{command:"whois",alias:[],description:"locale_id_command_whois"},{command:"whowas",alias:[],description:"locale_id_command_whowas"},{command:"away",alias:[],description:"locale_id_command_away"},{command:"back",alias:["active"],description:"locale_id_command_back"},{command:"encoding",alias:[],description:"locale_id_command_encoding"},{command:"ignore",alias:[],description:"locale_id_command_ignore"},{command:"unignore",alias:[],description:"locale_id_command_unignore"},{command:"dice",alias:[],description:"locale_id_command_dice"}];t.default=i,window._kiwi_exports=window._kiwi_exports||{},window._kiwi_exports["res"]||(window._kiwi_exports["res"]={}),window._kiwi_exports["res"]["autocompleteCommands"],window._kiwi_exports.res.autocompleteCommands=t.default?t.default:t},6197:function(e,t,n){"use strict";var i=n("1bd5");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=i(n("14b1")),r=i(n("5b1a")),a=i(n("6b47")),o=i(n("89ba")),c=i(n("9f12")),u=i(n("53fe")),l=i(n("2ef0")),f=function(){function e(t,n,i,s){(0,c.default)(this,e),this.storageKey=t,this.state=n,this.storage=i,this.logger=s,this.isPersisting=!1,this.includeBuffers=!0,this.watcher=null,this.state.persistence=this}return(0,u.default)(e,[{key:"loadStateIfExists",value:function(){var e=(0,o.default)(a.default.mark((function e(){var t;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(this.storageKey){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,this.storage.get(this.storageKey);case 4:t=e.sent,t&&(this.logger&&this.logger("Importing state",t),this.state.importState(t));case 6:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"stopWatchingState",value:function(){this.watcher&&(this.watcher(),this.watcher=null)}},{key:"watchStateForChanges",value:function(){var e=this;if(this.storageKey){var t=l.default.debounce((function(){e.logger&&e.logger("State updated, setting localStorage"),e.storage.set(e.storageKey,e.state.exportState(e.includeBuffers))}),1e3);this.state.$watch("networks",t,{deep:!0}),this.state.$watch("user_settings",t,{deep:!0}),this.watcher=this.state.$watch((function(){var t=[];return e.state.networks.forEach((function(e){var n,i=[];i.push((0,s.default)(n=e.buffers).call(n,(function(e){return e.name})).join(",")),e.buffers.forEach((function(e){i.push([e.name,e.settings,e.joined,e.enabled,e.last_read])})),t.push(i)})),(0,r.default)(t)}),t),this.isPersisting=!0}}},{key:"forgetState",value:function(){var e=(0,o.default)(a.default.mark((function e(){return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this.state.resetState(),e.next=3,this.storage.set(this.storageKey,null);case 3:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()}]),e}();t.default=f,window._kiwi_exports=window._kiwi_exports||{},window._kiwi_exports["libs"]||(window._kiwi_exports["libs"]={}),window._kiwi_exports["libs"]["StatePersistence"],window._kiwi_exports.libs.StatePersistence=t.default?t.default:t},6269:function(e,t,n){"use strict";n.r(t);var i=n("3ea3"),s=n("1dc6");for(var r in s)"default"!==r&&function(e){n.d(t,e,(function(){return s[e]}))}(r);n("51e1");var a=n("0c7c"),o=Object(a["a"])(s["default"],i["a"],i["b"],!1,null,null,null);t["default"]=o.exports},"62c30":function(e,t,n){"use strict";n.r(t);var i=n("fad7"),s=n("51e2");for(var r in s)"default"!==r&&function(e){n.d(t,e,(function(){return s[e]}))}(r);n("2d13");var a=n("0c7c"),o=Object(a["a"])(s["default"],i["a"],i["b"],!1,null,null,null);t["default"]=o.exports},6307:function(e,t,n){"use strict";n.r(t);var i=n("b388"),s=n("43bd");for(var r in s)"default"!==r&&function(e){n.d(t,e,(function(){return s[e]}))}(r);n("f93a");var a=n("0c7c"),o=Object(a["a"])(s["default"],i["a"],i["b"],!1,null,null,null);t["default"]=o.exports},6645:function(e,t,n){"use strict";n.r(t);var i=n("ca73"),s=n("c2a9");for(var r in s)"default"!==r&&function(e){n.d(t,e,(function(){return s[e]}))}(r);n("d777");var a=n("0c7c"),o=Object(a["a"])(s["default"],i["a"],i["b"],!1,null,null,null);t["default"]=o.exports},"674d":function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return s}));var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"kiwi-typinguserslist"},[e._l(e.typingUsers,(function(t,i){return n("span",{key:t.key,style:{color:e.userColour(t)}},[e._v(" "+e._s(t.nick)+e._s(e.typingUsers.length-1>i?",":"")+" ")])})),e.typingUsers.length>0?n("span",{staticClass:"kiwi-typing"}):e._e()],2)},s=[]},"6a00":function(e,t,n){"use strict";var i=n("1bd5");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=i(n("385f")),r=i(n("9332")),a=i(n("e54d")),o=i(n("b4f0")),c=i(n("57d8")),u=i(n("8e26")),l=i(n("462f")),f={components:{BufferSettings:o.default,ChannelInfo:c.default,ChannelBanlist:u.default,AwayStatusIndicator:l.default},props:["buffer","sidebarState"],data:function(){return{self:this,pluginUiChannelElements:s.default.singleton().channelHeaderPlugins,pluginUiQueryElements:s.default.singleton().queryHeaderPlugins}},computed:{isJoined:function(){var e=this.buffer;return"connected"===e.getNetwork().state&&e.joined},isConnected:function(){return"connected"===this.buffer.getNetwork().state},formattedTopic:function(){var e=(0,a.default)(this.buffer.topic,{extras:!1}),t=(0,r.default)(e);return t},network:function(){return this.buffer.getNetwork()},sidebarSection:function(){return this.sidebarState.section()},userOnline:function(){var e=this.$state.getUser(this.buffer.getNetwork().id,this.buffer.name);return!!e}},methods:{isChannel:function(){return this.buffer.isChannel()},isServer:function(){return this.buffer.isServer()},isQuery:function(){return this.buffer.isQuery()},isSpecial:function(){return this.buffer.isSpecial()},showNetworkSettings:function(e){e.showServerBuffer("settings")},onConnectButtonClick:function(){var e=this.buffer.getNetwork();e.connection.server?e.ircClient.connect():e.showServerBuffer("settings")},toggleUser:function(){var e=this.$state.getUser(this.buffer.getNetwork().id,this.buffer.name);this.sidebarState.toggleUser(e)},joinCurrentBuffer:function(){var e=this.buffer.getNetwork();this.buffer.enabled=!0,e.ircClient.join(this.buffer.name)},onHeaderClick:function(e){var t=e.target.getAttribute("data-channel-name");if(t){var n=this.buffer.getNetwork();this.$state.addBuffer(this.buffer.networkid,t),n.ircClient.join(t)}}}};t.default=f,window._kiwi_exports=window._kiwi_exports||{},window._kiwi_exports["components"]||(window._kiwi_exports["components"]={}),window._kiwi_exports["components"]["ContainerHeader"],window._kiwi_exports.components.ContainerHeader=t.default?t.default:t},"6ac0":function(e,t,n){"use strict";n("ae10")},"6c7c":function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return s}));var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"kiwi-nicklist",class:{"kiwi-nicklist--filtering":e.filter_visible,"kiwi-nicklist--avatars":e.shouldShowAvatars}},[n("div",{staticClass:"kiwi-nicklist-usercount",on:{click:e.toggleUserFilter}},[n("span",[e._v(" "+e._s(e.filter_visible?e.sortedUsers.length:e.$t("person",{count:e.sortedUsers.length}))+" ")]),n("input",{directives:[{name:"model",rawName:"v-model",value:e.user_filter,expression:"user_filter"}],ref:"user_filter",attrs:{placeholder:e.$t("filter_users")},domProps:{value:e.user_filter},on:{blur:e.onFilterBlur,input:function(t){t.target.composing||(e.user_filter=t.target.value)}}}),n("i",{staticClass:"fa fa-search"})]),n("DynamicScroller",{staticClass:"kiwi-nicklist-users",attrs:{items:e.sortedUsers,"min-item-size":34,"key-field":"key"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.item,s=t.index,r=t.active;return[n("DynamicScrollerItem",{attrs:{item:i,active:r,"size-dependencies":[],"data-index":s}},[n("nicklist-user",{key:i.key,attrs:{user:i,nicklist:e.self,network:e.network}})],1)]}}])})],1)},s=[]},"6d41":function(e,t,n){"use strict";n.r(t);var i=n("6fb1"),s=n.n(i);for(var r in i)"default"!==r&&function(e){n.d(t,e,(function(){return i[e]}))}(r);t["default"]=s.a},"6daf":function(e,t,n){"use strict";n("df9e")},"6e56":function(e,t,n){"use strict";n("e691")},"6fb1":function(e,t,n){"use strict";var i=n("1bd5");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=i(n("e4f0")),r=i(n("493c")),a=i(n("2fa7")),o=i(n("e402")),c={components:{TypingStatusIndicator:o.default},props:["buffer"],computed:{users:function(){if(this.buffer.isQuery()){var e=this.$state.getActiveNetwork(),t=this.$state.getUser(e.id,this.buffer.name);return t?(0,a.default)({},t.nick,t):{}}return this.buffer.users},typingUsers:function(){var e,t=this,n=this.$state.getActiveNetwork().nick;return(0,s.default)(e=(0,r.default)(this.users)).call(e,(function(e){return e.nick!==n&&e.typingStatus(t.buffer.name).status}))}},methods:{userColour:function(e){return e&&this.buffer.setting("colour_nicknames_in_messages")?e.getColour():""}}};t.default=c,window._kiwi_exports=window._kiwi_exports||{},window._kiwi_exports["components"]||(window._kiwi_exports["components"]={}),window._kiwi_exports["components"]["TypingUsersList"],window._kiwi_exports.components.TypingUsersList=t.default?t.default:t},"704d":function(e,t,n){"use strict";n.r(t);var i=n("7a45"),s=n.n(i);for(var r in i)"default"!==r&&function(e){n.d(t,e,(function(){return i[e]}))}(r);t["default"]=s.a},"708b":function(e,t,n){"use strict";n.r(t);var i=n("20d1"),s=n.n(i);for(var r in i)"default"!==r&&function(e){n.d(t,e,(function(){return i[e]}))}(r);t["default"]=s.a},"70c2":function(e,t,n){"use strict";var i=n("1bd5");Object.defineProperty(t,"__esModule",{value:!0}),t.get=a,t.set=o;var s=i(n("3818")),r=null;function a(e){return c()?new s.default((function(t){t(window.localStorage.getItem(e))})):s.default.resolve()}function o(e,t){return c()?new s.default((function(n){n(window.localStorage.setItem(e,t))})):s.default.resolve()}function c(){return null===r&&(r=u("localStorage")),r}function u(e){var t;try{var n="__storage_test__";return t=window[e],t.setItem(n,n),t.removeItem(n),!0}catch(i){return i instanceof DOMException&&(22===i.code||1014===i.code||"QuotaExceededError"===i.name||"NS_ERROR_DOM_QUOTA_REACHED"===i.name)&&0!==t.length}}},7197:function(e,t,n){"use strict";n("e734")},7277:function(e,t,n){"use strict";function i(e){var t=e.ircd.toLowerCase(),n=e.ircClient.network.supports("EXTBAN")||"";if(!n)return"";var i=n.split(",")[0],s="a";return t.indexOf("inspircd")>-1&&(s="R"),i+s}Object.defineProperty(t,"__esModule",{value:!0}),t.extbanAccount=i,window._kiwi_exports=window._kiwi_exports||{},window._kiwi_exports["helpers"]||(window._kiwi_exports["helpers"]={}),window._kiwi_exports["helpers"]["IrcdDiffs"],window._kiwi_exports.helpers.IrcdDiffs=t.default?t.default:t},"72b4":function(e,t,n){"use strict";n.r(t);var i=n("f83c"),s=n("2cc3");for(var r in s)"default"!==r&&function(e){n.d(t,e,(function(){return s[e]}))}(r);n("0c2e");var a=n("0c7c"),o=Object(a["a"])(s["default"],i["a"],i["b"],!1,null,null,null);t["default"]=o.exports},7348:function(e,t,n){"use strict";n("fbf7")},7359:function(e){e.exports=JSON.parse('{"start_button":"Start","start_greeting":"Welcome to Kiwi IRC!","close":"Close","connect":"Connect","connecting":"Connecting...","connected":"Connected","settings":"Settings","kiwi_settings":"Kiwi Settings","channels":"Channels","access":"Access","banned":"Banned Users","invited":"Invited Users","notifications":"Notifications","username":"Username","password":"Password","server_password":"Server Password","password_have":"I have a password","server":"Server","nick":"Nick","channel":"Channel","messages":"Messages","network":"Network","znc":"ZNC","logging_in":"Logging in...","invalid_login":"Invalid login","do_search":"Search...","ok":"OK","cancel":"Cancel","yes":"Yes","no":"No","not_found":"Not found","warning":"Warning!","window_unload":"This will close all KiwiIRC conversations. Are you sure you want to close this window?","whois_realname":"Real name","whois_status":"Status","whois_status_available":"Is available","send_a_message":"Send a message","more_information":"More information","ignore_user":"Ignore user","connection_channel":"Channel","away":"Away","week":"{{count}} week","week_plural":"{{count}} weeks","day":"{{count}} day","day_plural":"{{count}} days","hour":"{{count}} hour","hour_plural":"{{count}} hours","minute":"{{count}} minute","minute_plural":"{{count}} minutes","second":"{{count}} second","second_plural":"{{count}} seconds","settings_general":"General","settings_language":"Language","settings_theme":"Theme","refresh_theme":"Refresh Theme","settings_themeurl":"Theme URL","settings_messagelayout":"Message Layout","settings_use_monospace":"Use monospace","settings_default_handler":"Use Kiwi as my default IRC client","settings_layout_compact":"Traditional IRC layout","settings_show_autocomplete":"Show autocomplete list","settings_messages_title":"Chat Messages","settings_timestamps":"Show timestamps","settings_24hour_timestamps":"Use 24-hour timestamps","settings_emoticons":"Show emoticons","settings_block_private":"Block new private messages","settings_scrollback":"Messages in scrollback","settings_formatting":"Extra formatting","settings_nick_colouring":"Colour nicknames in messages","settings_share_typing":"Share when I\'m typing a message","settings_show_inline_previews":"Show inline image previews","settings_show_joinpart":"Include join/part messages as activity","settings_mute_sound":"Mute sound notifications","settings_highlight":"Highlight on words (space separated)","settings_aliases":"Aliases","what_are_aliases":"What are Aliases?","send_message":"Send Message","bufferkey_input":"Enter the channel key:","bufferkey_rejoin":"Rejoin {{channel}}","settings_notify":"Notify me when","settings_notify_all":"All messages","settings_notify_mentioned":"I am mentioned","settings_notify_never":"Never","settings_notify_mute":"Mute sounds","settings_show_message_counts":"Hide unread message count","operator_tools":"Operator Tools","settings_default_ban_mask":"Default ban mask","settings_default_kick_reason":"Default kick reason","settings_advanced_title":"Advanced Settings","settings_advanced_warning":"Monsters be here, only click this button if you know what you are doing","settings_advanced_button":"Enable Advanced Settings","settings_advanced_header":"Danger Zone: Changing some of these settings may break things!","settings_advanced_reset":"Reset","settings_advanced_filter":"Filter","bans_refresh":"Refresh banlist","bans_user":"Banned user","bans_by":"Banned by","bans_refreshing":"Refreshing banlist...","bans_nobody":"Nobody is banned!","invites_refresh":"Refresh invite list","invites_user":"Invited user","invites_by":"Invited by","invites_refreshing":"Refreshing invite list...","invites_nobody":"Nobody is invited!","invite_public_channel":"This is a public channel.","invite_private_channel":"Only invited users can join.","invite_set_private":"Only allow invited users","invite_set_public":"Allow anybody to join","invite_registered_only":"Only registered users can join","invite_add_invite":"Add invite","invite_any_registered":"(Any registered user)","channel_topic":"Topic","channel_moderated":"Moderated chat","channel_invite":"Invite only","channel_secret":"Hide this channel from lists","channel_moderated_topic":"Only moderators can change the topic","channel_external":"Block messages from outside this channel","channel_list_fetch":"Click the refresh button to update the channel list","channel_list_nonefound":"No channels found, try again later","container_welcome":"Welcome to Kiwi IRC! Select a channel on the left.","container_statebrowser":"Show statebrowser","hide_topic":"Hide Topic","display_topic":"Display Topic","channel_settings":"Channel Settings","container_join":"Join Channel","container_notconnected":"Not Connected","container_privmsg":"Private conversation with {{user}}","input_placeholder":"Send a message...","media_loading":"Loading {{url}}...","messages_load":"Load previous messages","unread_messages":"Unread Messages","settings_server_details":"Server details","settings_port":"Port","settings_znc_other":"Other networks on this ZNC account will be listed in the network list","settings_your_details":"Your details","settings_nickname":"Nickname","settings_advanced":"Advanced","settings_encoding":"Encoding","settings_show_raw":"Show Raw","settings_use_websocket":"Direct websocket","settings_autorun":"Run commands when connected","settings_danger":"Danger Zone","settings_remove":"Remove network","person":"{{count}} person here","person_plural":"{{count}} people here","filter_users":"Filter users in channel","reconnect_channel":"Reconnect to join {{channel}}","reconnect_network":"Reconnect to {{network}} to start talking","reconnect_query":"Reconnect to continue talking with {{user}}","not_connected":"You are not currently connected!","reconnect_settings":"Connection settings","network_noconnect":"We couldn\'t connect to that server :(","network_connect":"Connect To Network","network_name":"Network Name","side_close":"Close options","side_options":"Channel options","side_settings":"Your settings","side_joins":"Show when people join or part","side_topics":"Show when channel topic changes","side_nick_changes":"Show when users change their nicks","side_mode_changes":"Show when users change channel modes","side_formatting":"Extra message formatting","side_colours":"Nick colours in the list","side_buffer":"No buffer set","no_topic_set":"There is no topic for this channel","about":"About","created_at":"Created at {{when}}","highlights":"Highlights","nobody_mentioned_you":"Nobody has mentioned you yet...","error_starting":"There was an error starting Kiwi IRC :(","error_installed":"Make sure you have installed Kiwi IRC correctly and the configurartion can be loaded","state_leave":"Leave {{name}}","state_account":"Your account","state_remembered":"Your settings and networks will be remembered on this computer.","state_forget":"Forget me","state_network":"No networks here yet.","state_add":"Add one?","state_available":"Available networks","add_network":"Add Network","new_network":"New Network","no_network":"No Network","state_configure":"Configure network","state_disconnected":"Not connected.","state_join":"Join new #channel","filter_channels":"Filter Channels","find_more_channels":"Find More Channels","prompt_leave_channel":"Really leave the channel?","prompt_close_queries":"Really close all messages?","prompt_close_query":"Really close this chat?","change_nick":"Change nick","enter_new_nick":"Enter new nickname...","user_you":"This is you!","user_account":"Account name: {{user}}","user_realname":"Real name: {{realname}}","user_bot":"Is a bot","user_help":"Is available for help","user_op":"Is an operator","user_server":"Connected to {{server}} {{info}}","user_secure":"Securely connected via SSL/TLS","user_channels":"Also in channels {{channels}}","user_access":"Access level","user_normal":"Normal","user_kick":"Kick from the channel","user_ban":"Ban from the channel","user_kickban":"Ban and kick from the channel","error_no_channel_join":"Please specify a channel to join. eg /join #example","error_nick_in_use":"The nickname \'{{nick}}\' is already in use!","error_nick_invalid":"The nickname \'{{nick}}\' is invalid!","error_empty_nick":"You must enter a new nickname","error_no_number":"Nickname must not start with a number","error_unexpected":"Unexpected error occurred","modes_give_ops":"{{nick}} gives ops to {{target}}","modes_take_ops":"{{nick}} takes ops from {{target}}","modes_give_halfops":"{{nick}} gives half-ops to {{target}}","modes_take_halfops":"{{nick}} takes half-ops from {{target}}","modes_give_voice":"{{nick}} gives voice to {{target}}","modes_take_voice":"{{nick}} takes voice from {{target}}","modes_give_admin":"{{nick}} gives admin to {{target}}","modes_take_admin":"{{nick}} takes admin from {{target}}","modes_give_owner":"{{nick}} gives owner to {{target}}","modes_take_owner":"{{nick}} takes owner from {{target}}","modes_gives_ban":"{{nick}} has banned {{target}}","modes_takes_ban":"{{nick}} has unbanned {{target}}","modes_other":"{{nick}} sets {{mode}} on {{target}}","command_msg":"Send a message","command_action":"Do something physical","command_join":"Join a channel","command_part":"Leave a channel","command_cycle":"Leave, then re-join a channel","command_nick":"Change your nickname","command_query":"Start a private conversation with someone","command_invite":"Invite somebody into the channel","command_topic":"Set the topic for this channel","command_notice":"Send a notice","command_quote":"Send a raw command to the IRC server","command_kick":"Kick somebody from the channel","command_clear":"Clear all messages from this window","command_ctcp":"Send a CTCP command to somebody","command_quit":"Disconnect from the IRC server","command_server":"Connect to a new IRC network","command_whois":"Request information on somebody","command_whowas":"Request information on somebody that disconnected recently","command_away":"Mark yourself as away","command_back":"Set yourself as active","command_encoding":"Change your connection encoding","command_ignore":"Ignore messages from somebody","command_unignore":"Stop ignoring somebody","command_dice":"Roll a Dice","dice_roll":"Rolls a {{sides}} sided dice and gets {{number}}","notification_mentioned":"You were mentioned in {{channel}}","personal_client":"Your IRC Client.","personal_addjoin":"Add your networks. Join your channels.","personal_return":"They will be here when you come back.","personal_add":"Add a Network","personal_connect_to":"You are trying to connect to {{network}}","personal_added_to_existing":"Network has been added to your existing Kiwi window.","personal_add_existing_tab":"Add network to existing Kiwi window","personal_connect_temporary":"Temporarily connect to this network","personal_saved":"Saved networks","rizon_title":"Kiwi IRC (next gen) - Rizon preview","rizon_websockets":"Direct websockets. No Kiwi server or webirc involved.","rizon_thanks":"(Thanks to Adam @Rizon for the development websocket server support!)","rizon_dev":"Give the developer version of Kiwi IRC a try!","disconnected":"Disconnected","connected_to":"Connected to {{network}}!","has_joined":"{{nick}} has joined","kicked_you_from":"{{nick}} kicked you from {{channel}}","was_kicked_from":"{{nick}} was kicked from {{channel}} by {{chanop}}","has_left":"{{nick}} has left","invited_you":"{{nick}} invited you to join {{channel}}","invited_other":"{{nick}} invited {{invited}} to join {{channel}}","nick_in_use_retrying":"Nickname {{nick}} is already in use. Trying {{newnick}}...","now_known_as":"{{nick}} is now known as {{newnick}}","changed_topic_to":"{{nick}} changed the topic to: {{topic}}"}')},7491:function(e,t,n){"use strict";var i=n("9e19"),s=n("b4d1"),r=n("7c78"),a=n("1bd5");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=a(n("44a4")),c=f(n("5a16")),u=a(n("462f"));function l(e){if("function"!==typeof s)return null;var t=new s,n=new s;return(l=function(e){return e?n:t})(e)}function f(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!==typeof e)return{default:e};var n=l(t);if(n&&n.has(e))return n.get(e);var s={},a=Object.defineProperty&&r;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var c=a?r(e,o):null;c&&(c.get||c.set)?Object.defineProperty(s,o,c):s[o]=e[o]}return s.default=e,n&&n.set(e,s),s}var d={components:{AwayStatusIndicator:u.default},props:{network:Object},data:function(){return{new_nick:"",error_message:"",event_listeners:[],self_user_settings_open:!1}},computed:{modeString:function(){var e="";return this.network.ircClient.user.modes.forEach((function(t){e+=t})),e&&(e="+"+e),e},netUser:function(){return this.network.ircClient.user},awayStatus:{get:function(){return this.network.currentUser().away},set:function(e){this.network.ircClient.raw("AWAY",e?"Currently away":"")}}},methods:{openSelfActions:function(){this.self_user_settings_open=!0,this.error_message=""},openProfile:function(){this.$state.$emit("userbox.show",this.network.currentUser())},closeSelfUser:function(){this.$emit("close")},onNewNickSubmit:function(e,t){this.event_listeners.length||(this.new_nick=e,this.changeNick(t))},changeNick:function(e){var t,n=(0,o.default)(t=this.new_nick).call(t);return 0===n.length?(this.error_message=c.t("error_empty_nick"),void e()):n.match(/(^[0-9])|(\s)/)?(this.error_message=c.t("error_no_number"),void e()):n===this.network.currentUser().nick?(this.error_message=c.t("error_nick_in_use",{nick:n}),void e()):(this.error_message="",this.listenForNickEvents(e),void this.network.ircClient.changeNick(n))},listenForNickEvents:function(e){var t=this;this.event_listeners.push(this.listen(this.network.ircClient,"nick",(function(e){e.new_nick===t.network.currentUser().nick&&t.closeNickChange()}))),this.event_listeners.push(this.listen(this.network.ircClient,"nick in use",(function(n){t.error_message=c.t("error_nick_in_use",{nick:n.nick}),t.removeNickEventListeners(),e()}))),this.event_listeners.push(this.listen(this.network.ircClient,"nick invalid",(function(n){t.error_message=c.t("error_nick_invalid",{nick:n.nick}),t.removeNickEventListeners(),e()})));var n=this.setTimeout((function(){t.error_message=c.t("error_unexpected"),t.removeNickEventListeners()}),4e3);this.event_listeners.push((function(){t.clearTimeout(n)}))},removeNickEventListeners:function(){while(this.event_listeners.length)this.event_listeners.shift()()},closeNickChange:function(){this.removeNickEventListeners(),this.self_user_settings_open=!1},networkSupportsAway:function(){return this.network.ircClient.network.cap.isEnabled("away-notify")},checkUserAway:function(){return!!this.network.currentUser().away},getUserFromString:function(e){return this.$state.getUser(this.network.id,e)}}};t.default=d,window._kiwi_exports=window._kiwi_exports||{},window._kiwi_exports["components"]||(window._kiwi_exports["components"]={}),window._kiwi_exports["components"]["SelfUser"],window._kiwi_exports.components.SelfUser=t.default?t.default:t},7544:function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return s}));var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"kiwi-bufferkey kiwi-warning-block"},[n("form",{on:{submit:function(t){return t.preventDefault(),e.joinChannel.apply(null,arguments)}}},[n("label",[e._v(e._s(e.$t("bufferkey_input")))]),n("input",{directives:[{name:"model",rawName:"v-model",value:e.buffer.key,expression:"buffer.key"},{name:"focus",rawName:"v-focus"}],attrs:{type:"password"},domProps:{value:e.buffer.key},on:{input:function(t){t.target.composing||e.$set(e.buffer,"key",t.target.value)}}}),n("div",{staticClass:"kiwi-bufferkey-buttons"},[n("span",{staticClass:"kiwi-bufferkey-button",on:{click:e.joinChannel}},[n("i",{staticClass:"fa fa-arrow-circle-o-right",attrs:{"aria-hidden":"true"}}),e._v(" "+e._s(e.$t("bufferkey_rejoin",{channel:e.buffer.name}))+" ")])])])])},s=[]},7768:function(e,t,n){"use strict";n("8b75")},"77b3":function(e,t,n){"use strict";(function(e){var i=n("1bd5");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=i(n("e587")),r=i(n("8b9c")),a=i(n("0470")),o=i(n("28c0")),c=a.default.namespace("Nicklist"),u=null;function l(e,t){return u?u.compare(e,t):e===t?0:e>t?1:-1}e.Intl&&(u=new Intl.Collator({},{numeric:!0}));var f={components:{NicklistUser:o.default},props:["network","buffer","sidebarState"],data:function(){return{userbox_user:null,user_filter:"",filter_visible:!1,self:this}},computed:{shouldShowAvatars:function(){return this.buffer.setting("nicklist_avatars")},sortedUsers:function(){var e=this,t=this.network.ircClient.network.options.PREFIX,n=Object.create(null);t.forEach((function(e,t){n[e.mode]=t}));var i=Object.create(null),a=[],o=this.buffer.users,u=this.user_filter.toUpperCase();(0,r.default)(o).forEach((function(e){var t=(0,s.default)(e,2),n=t[0],r=t[1];i[r.nick]=n,u&&-1===n.indexOf(u)||a.push(r)}));var f=this.buffer.id;return a.sort((function(t,s){var r=t.buffers[f],a=s.buffers[f];if(!r){var o="Nicklist.sortedUsers() User A does not have the buffer in its list!";return c.error(o,t.nick,t.buffers),-1}if(!a){var u="Nicklist.sortedUsers() User B does not have the buffer in its list!";return c.error(u,s.nick,s.buffers),1}var d=r.modes,p=a.modes;if(0===d.length&&0===p.length){if(e.$state.setting("nicklistGroupAway")){if(t.away&&!s.away)return 1;if(!t.away&&s.away)return-1}return l(i[t.nick],i[s.nick])}if(d.length>0&&0===p.length)return-1;if(0===d.length&&p.length>0)return 1;var h=n[e.buffer.userMode(t)],w=n[e.buffer.userMode(s)];if(h>w)return 1;if(h-1:e.settingShowAutoComplete},on:{change:function(t){var n=e.settingShowAutoComplete,i=t.target,s=!!i.checked;if(Array.isArray(n)){var r=null,a=e._i(n,r);i.checked?a<0&&(e.settingShowAutoComplete=n.concat([r])):a>-1&&(e.settingShowAutoComplete=n.slice(0,a).concat(n.slice(a+1)))}else e.settingShowAutoComplete=s}}})]),e.themeSupportsMonospace?n("label",{staticClass:"u-checkbox-wrapper"},[n("span",[e._v(e._s(e.$t("settings_use_monospace"))+" ")]),n("input",{directives:[{name:"model",rawName:"v-model",value:e.settingUseMonospace,expression:"settingUseMonospace"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.settingUseMonospace)?e._i(e.settingUseMonospace,null)>-1:e.settingUseMonospace},on:{change:function(t){var n=e.settingUseMonospace,i=t.target,s=!!i.checked;if(Array.isArray(n)){var r=null,a=e._i(n,r);i.checked?a<0&&(e.settingUseMonospace=n.concat([r])):a>-1&&(e.settingUseMonospace=n.slice(0,a).concat(n.slice(a+1)))}else e.settingUseMonospace=s}}})]):e._e(),e.canRegisterProtocolHandler?n("div",{staticStyle:{"margin-top":"10px","text-align":"center"}},[n("a",{staticClass:"u-button u-button-primary",on:{click:function(t){return e.makeDefaultProtocolHandler()}}},[n("i",[e._v(e._s(e.$t("settings_default_handler")))])])]):e._e()])]),n("div",{staticClass:"kiwi-appsettings-block"},[n("h3",[e._v(e._s(e.$t("settings_messages_title")))]),n("div",{staticClass:"kiwi-appsettings-section kiwi-appsettings-messages"},[n("label",{staticClass:"kiwi-appsettings-messagelistDisplay"},[n("span",[e._v(e._s(e.$t("settings_messagelayout"))+" ")]),n("select",{directives:[{name:"model",rawName:"v-model",value:e.settingMessageLayout,expression:"settingMessageLayout"}],on:{change:function(t){var n=Array.prototype.filter.call(t.target.options,(function(e){return e.selected})).map((function(e){var t="_value"in e?e._value:e.value;return t}));e.settingMessageLayout=t.target.multiple?n:n[0]}}},[n("option",{attrs:{value:"traditional"}},[e._v("Traditional")]),n("option",{attrs:{value:"modern"}},[e._v("Modern")]),n("option",{attrs:{value:"inline"}},[e._v("Inline")])])]),n("label",{staticClass:"u-checkbox-wrapper"},[n("span",[e._v(e._s(e.$t("settings_timestamps"))+" ")]),n("input",{directives:[{name:"model",rawName:"v-model",value:e.settingBufferShowTimestamps,expression:"settingBufferShowTimestamps"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.settingBufferShowTimestamps)?e._i(e.settingBufferShowTimestamps,null)>-1:e.settingBufferShowTimestamps},on:{change:function(t){var n=e.settingBufferShowTimestamps,i=t.target,s=!!i.checked;if(Array.isArray(n)){var r=null,a=e._i(n,r);i.checked?a<0&&(e.settingBufferShowTimestamps=n.concat([r])):a>-1&&(e.settingBufferShowTimestamps=n.slice(0,a).concat(n.slice(a+1)))}else e.settingBufferShowTimestamps=s}}})]),n("label",{staticClass:"u-checkbox-wrapper"},[n("span",[e._v(e._s(e.$t("settings_24hour_timestamps"))+" ")]),n("input",{directives:[{name:"model",rawName:"v-model",value:e.timestamps_24h,expression:"timestamps_24h"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.timestamps_24h)?e._i(e.timestamps_24h,null)>-1:e.timestamps_24h},on:{change:function(t){var n=e.timestamps_24h,i=t.target,s=!!i.checked;if(Array.isArray(n)){var r=null,a=e._i(n,r);i.checked?a<0&&(e.timestamps_24h=n.concat([r])):a>-1&&(e.timestamps_24h=n.slice(0,a).concat(n.slice(a+1)))}else e.timestamps_24h=s}}})]),n("label",{staticClass:"u-checkbox-wrapper"},[n("span",[e._v(e._s(e.$t("settings_emoticons"))+" ")]),n("input",{directives:[{name:"model",rawName:"v-model",value:e.settingBufferShowEmoticons,expression:"settingBufferShowEmoticons"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.settingBufferShowEmoticons)?e._i(e.settingBufferShowEmoticons,null)>-1:e.settingBufferShowEmoticons},on:{change:function(t){var n=e.settingBufferShowEmoticons,i=t.target,s=!!i.checked;if(Array.isArray(n)){var r=null,a=e._i(n,r);i.checked?a<0&&(e.settingBufferShowEmoticons=n.concat([r])):a>-1&&(e.settingBufferShowEmoticons=n.slice(0,a).concat(n.slice(a+1)))}else e.settingBufferShowEmoticons=s}}})]),n("label",{staticClass:"u-checkbox-wrapper"},[n("span",[e._v(e._s(e.$t("settings_block_private"))+" ")]),n("input",{directives:[{name:"model",rawName:"v-model",value:e.settingBufferBlockPms,expression:"settingBufferBlockPms"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.settingBufferBlockPms)?e._i(e.settingBufferBlockPms,null)>-1:e.settingBufferBlockPms},on:{change:function(t){var n=e.settingBufferBlockPms,i=t.target,s=!!i.checked;if(Array.isArray(n)){var r=null,a=e._i(n,r);i.checked?a<0&&(e.settingBufferBlockPms=n.concat([r])):a>-1&&(e.settingBufferBlockPms=n.slice(0,a).concat(n.slice(a+1)))}else e.settingBufferBlockPms=s}}})]),n("label",{staticClass:"kiwi-appsettings-full kiwi-appsettings-setting-scrollback"},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.settingBufferScrollbackSize,expression:"settingBufferScrollbackSize"}],staticClass:"u-input",attrs:{type:"number"},domProps:{value:e.settingBufferScrollbackSize},on:{input:function(t){t.target.composing||(e.settingBufferScrollbackSize=t.target.value)}}}),n("span",[e._v(e._s(e.$t("settings_scrollback"))+" ")])]),n("label",{staticClass:"u-checkbox-wrapper"},[n("span",[e._v(e._s(e.$t("settings_formatting"))+" ")]),n("input",{directives:[{name:"model",rawName:"v-model",value:e.settingBufferExtraFormatting,expression:"settingBufferExtraFormatting"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.settingBufferExtraFormatting)?e._i(e.settingBufferExtraFormatting,null)>-1:e.settingBufferExtraFormatting},on:{change:function(t){var n=e.settingBufferExtraFormatting,i=t.target,s=!!i.checked;if(Array.isArray(n)){var r=null,a=e._i(n,r);i.checked?a<0&&(e.settingBufferExtraFormatting=n.concat([r])):a>-1&&(e.settingBufferExtraFormatting=n.slice(0,a).concat(n.slice(a+1)))}else e.settingBufferExtraFormatting=s}}})]),n("label",{staticClass:"u-checkbox-wrapper"},[n("span",[e._v(e._s(e.$t("settings_nick_colouring"))+" ")]),n("input",{directives:[{name:"model",rawName:"v-model",value:e.settingBufferColourNicknames,expression:"settingBufferColourNicknames"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.settingBufferColourNicknames)?e._i(e.settingBufferColourNicknames,null)>-1:e.settingBufferColourNicknames},on:{change:function(t){var n=e.settingBufferColourNicknames,i=t.target,s=!!i.checked;if(Array.isArray(n)){var r=null,a=e._i(n,r);i.checked?a<0&&(e.settingBufferColourNicknames=n.concat([r])):a>-1&&(e.settingBufferColourNicknames=n.slice(0,a).concat(n.slice(a+1)))}else e.settingBufferColourNicknames=s}}})]),n("label",{staticClass:"u-checkbox-wrapper"},[n("span",[e._v(e._s(e.$t("settings_share_typing"))+" ")]),n("input",{directives:[{name:"model",rawName:"v-model",value:e.settingBufferShareTyping,expression:"settingBufferShareTyping"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.settingBufferShareTyping)?e._i(e.settingBufferShareTyping,null)>-1:e.settingBufferShareTyping},on:{change:function(t){var n=e.settingBufferShareTyping,i=t.target,s=!!i.checked;if(Array.isArray(n)){var r=null,a=e._i(n,r);i.checked?a<0&&(e.settingBufferShareTyping=n.concat([r])):a>-1&&(e.settingBufferShareTyping=n.slice(0,a).concat(n.slice(a+1)))}else e.settingBufferShareTyping=s}}})]),n("label",{staticClass:"u-checkbox-wrapper"},[n("span",[e._v(e._s(e.$t("settings_show_inline_previews"))+" ")]),n("input",{directives:[{name:"model",rawName:"v-model",value:e.settingBufferInlineLinkPreviews,expression:"settingBufferInlineLinkPreviews"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.settingBufferInlineLinkPreviews)?e._i(e.settingBufferInlineLinkPreviews,null)>-1:e.settingBufferInlineLinkPreviews},on:{change:function(t){var n=e.settingBufferInlineLinkPreviews,i=t.target,s=!!i.checked;if(Array.isArray(n)){var r=null,a=e._i(n,r);i.checked?a<0&&(e.settingBufferInlineLinkPreviews=n.concat([r])):a>-1&&(e.settingBufferInlineLinkPreviews=n.slice(0,a).concat(n.slice(a+1)))}else e.settingBufferInlineLinkPreviews=s}}})])])]),n("div",{staticClass:"kiwi-appsettings-block"},[n("h3",[e._v(e._s(e.$t("notifications")))]),n("div",{staticClass:"kiwi-appsettings-section kiwi-appsettings-notifications"},[n("label",{staticClass:"kiwi-appsettings-setting-showjoinpart u-checkbox-wrapper"},[n("span",[e._v(e._s(e.$t("settings_show_joinpart"))+" ")]),n("input",{directives:[{name:"model",rawName:"v-model",value:e.settingBufferTrafficAsActivity,expression:"settingBufferTrafficAsActivity"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.settingBufferTrafficAsActivity)?e._i(e.settingBufferTrafficAsActivity,null)>-1:e.settingBufferTrafficAsActivity},on:{change:function(t){var n=e.settingBufferTrafficAsActivity,i=t.target,s=!!i.checked;if(Array.isArray(n)){var r=null,a=e._i(n,r);i.checked?a<0&&(e.settingBufferTrafficAsActivity=n.concat([r])):a>-1&&(e.settingBufferTrafficAsActivity=n.slice(0,a).concat(n.slice(a+1)))}else e.settingBufferTrafficAsActivity=s}}})]),n("label",{staticClass:"u-checkbox-wrapper"},[n("span",[e._v(e._s(e.$t("settings_mute_sound"))+" ")]),n("input",{directives:[{name:"model",rawName:"v-model",value:e.settingBufferMuteSound,expression:"settingBufferMuteSound"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.settingBufferMuteSound)?e._i(e.settingBufferMuteSound,null)>-1:e.settingBufferMuteSound},on:{change:function(t){var n=e.settingBufferMuteSound,i=t.target,s=!!i.checked;if(Array.isArray(n)){var r=null,a=e._i(n,r);i.checked?a<0&&(e.settingBufferMuteSound=n.concat([r])):a>-1&&(e.settingBufferMuteSound=n.slice(0,a).concat(n.slice(a+1)))}else e.settingBufferMuteSound=s}}})]),n("label",{staticClass:"kiwi-appsettings-full"},[n("span",[e._v(e._s(e.$t("settings_highlight"))+" ")]),n("input",{directives:[{name:"model",rawName:"v-model",value:e.settingHighlights,expression:"settingHighlights"}],staticClass:"u-input",attrs:{type:"text"},domProps:{value:e.settingHighlights},on:{input:function(t){t.target.composing||(e.settingHighlights=t.target.value)}}})])])]),n("div",{staticClass:"kiwi-appsettings-block"},[n("h3",[e._v(e._s(e.$t("operator_tools")))]),n("div",{staticClass:"kiwi-appsettings-section kiwi-appsettings-operator-tools"},[n("label",[n("span",[e._v(e._s(e.$t("settings_default_ban_mask"))+" ")]),n("input",{directives:[{name:"model",rawName:"v-model",value:e.settingDefaultBanMask,expression:"settingDefaultBanMask"}],staticClass:"u-input",domProps:{value:e.settingDefaultBanMask},on:{input:function(t){t.target.composing||(e.settingDefaultBanMask=t.target.value)}}})]),n("label",[n("span",[e._v(e._s(e.$t("settings_default_kick_reason")))]),n("input",{directives:[{name:"model",rawName:"v-model",value:e.settingDefaultKickReason,expression:"settingDefaultKickReason"}],staticClass:"u-input",domProps:{value:e.settingDefaultKickReason},on:{input:function(t){t.target.composing||(e.settingDefaultKickReason=t.target.value)}}})])])]),e.$state.setting("hide_advanced")||e.settingAdvancedEnable?e._e():n("div",{staticClass:"kiwi-appsettings-block"},[n("h3",[e._v(e._s(e.$t("settings_advanced_title")))]),n("div",{staticClass:"kiwi-appsettings-section kiwi-appsettings-advanced-enable"},[n("div",[n("span",{staticStyle:{"font-weight":"600"}},[e._v(" "+e._s(e.$t("warning"))+" ")]),e._v(" "+e._s(e.$t("settings_advanced_warning"))+" ")]),n("div",{staticStyle:{"margin-top":"10px","text-align":"center"}},[n("a",{staticClass:"u-button u-button-warning",on:{click:function(t){return e.enableAdvancedTab()}}},[n("i",[e._v(e._s(e.$t("settings_advanced_button")))])])])])])]),n("tabbed-tab",{attrs:{header:e.$t("settings_aliases"),name:"aliases"}},[n("div",{staticClass:"kiwi-appsettings-block kiwi-appsettings-block-aliases"},[n("h3",[e._v(e._s(e.$t("settings_aliases")))]),n("div",{staticClass:"kiwi-appsettings-section kiwi-appsettings-aliases"},[n("settings-aliases")],1)])]),e.settingAdvancedEnable?n("tabbed-tab",{attrs:{header:e.$t("settings_advanced"),name:"advanced"}},[n("div",{staticClass:"kiwi-appsettings-block kiwi-appsettings-block-advanced"},[n("div",{staticClass:"kiwi-appsettings-section kiwi-appsettings-advanced"},[n("settings-advanced")],1)])]):e._e(),e._l(e.pluginUiElements,(function(t){return n("tabbed-tab",{key:t.id,attrs:{header:t.title,name:t.title}},[n(t.component,e._b({tag:"div"},"div",t.props,!1))],1)}))],2)],1)])},s=[]},"7a45":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=!1,s={props:["url","showPin","iframeSandboxOptions"],data:function(){return{embedlyObject:null,waitTimer:0,waitCount:0}},computed:{settings:function(){return this.$state.setting("embedly")}},watch:{url:function(){this.cleanEmbed(),this.updateEmbed()}},created:function(){this.updateEmbed()},beforeDestroy:function(){this.cleanEmbed()},methods:{updateEmbed:function(){var e=this,t=function t(){if("function"!==typeof window.embedly)return e.waitTimer&&(clearTimeout(e.waitTimer),e.waitTimer=0),void(e.waitCount<300&&(e.waitCount++,e.waitTimer=setTimeout(t,100)));e.$nextTick((function(){e.embedlyObject=window.embedly("card",e.$refs.embedlyLink),e.embedlyObject?(e.embedlyObject.on("card.error",(function(t){e.showPin&&e.$emit("close")})),e.$emit("setHeight","auto"),e.showPin?e.$el.style.maxHeight=(e.settings.maxHeight||400)+"px":e.$emit("setMaxHeight","54%")):e.showPin&&e.$emit("close")}))};if(!i){var n=document.getElementsByTagName("head")[0],s=document.createElement("script");s.type="text/javascript";var r=this.$state.getSetting("settings.embedly.script")||"//cdn.embedly.com/widgets/platform.js";s.src=r,n.appendChild(s),i=!0}t()},cleanEmbed:function(){this.waitTimer&&(clearTimeout(this.waitTimer),this.waitTimer=0),this.embedlyObject&&(this.embedlyObject.remove(),this.embedlyObject=null)}}};t.default=s,window._kiwi_exports=window._kiwi_exports||{},window._kiwi_exports["components"]||(window._kiwi_exports["components"]={}),window._kiwi_exports["components"]["UrlEmbed"],window._kiwi_exports.components.UrlEmbed=t.default?t.default:t},"7a9c":function(e,t,n){"use strict";n.r(t);var i=n("7a12"),s=n("5db0");for(var r in s)"default"!==r&&function(e){n.d(t,e,(function(){return s[e]}))}(r);n("819b");var a=n("0c7c"),o=Object(a["a"])(s["default"],i["a"],i["b"],!1,null,null,null);t["default"]=o.exports},"7ad6":function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return s}));var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"kiwi-aboutbuffer"},[n("h3",[e._v(e._s(e.b.name))]),n("div",{staticClass:"kiwi-aboutbuffer-section",class:{"kiwi-aboutbuffer-section--closed":e.closedSections.about}},[n("h4",{on:{click:function(t){return e.toggleSection("about")}}},[n("i",{staticClass:"fa fa-angle-right"}),e._v(" "+e._s(e.$t("about"))+" ")]),n("div",[e.b.topic?n("p",{domProps:{innerHTML:e._s(e.formattedTopic)}}):n("p",[e._v(e._s(e.$t("no_topic_set")))]),e.b.created_at?n("p",[e._v(" "+e._s(e.$t("created_at",{when:(new Intl.DateTimeFormat).format(e.b.created_at)}))+" ")]):e._e(),n("p",{staticClass:"kiwi-aboutbuffer-usercount"},[n("a",{staticClass:"u-link ",on:{click:function(t){return e.sidebarState.showNicklist()}}},[e._v(" "+e._s(e.$t("person",{count:Object.keys(e.b.users||{}).length}))+" ")])])])]),n("div",{staticClass:"kiwi-aboutbuffer-section",class:{"kiwi-aboutbuffer-section--closed":e.closedSections.highlights}},[n("h4",{on:{click:function(t){return e.toggleSection("highlights")}}},[n("i",{staticClass:"fa fa-angle-right"}),e._v(" "+e._s(e.$t("highlights"))+" ")]),n("div",[e.highlights.length>0?n("ul",e._l(e.highlights,(function(t){return n("li",{key:t.id,staticClass:"kiwi-aboutbuffer-highlight",on:{click:function(n){return e.buffer.scrollToMessage(t.id)}}},[e._v(" "+e._s(t.nick?t.nick+": ":"")),n("span",{domProps:{innerHTML:e._s(t.html)}})])})),0):n("p",[e._v(e._s(e.$t("nobody_mentioned_you")))])])]),e._l(e.pluginUiSections,(function(t){return n("div",{key:t.id,staticClass:"kiwi-aboutbuffer-section",class:{"kiwi-aboutbuffer-section--closed":e.closedSections[t.id]}},[n("h4",{on:{click:function(n){return e.toggleSection(t.id)}}},[n("i",{staticClass:"fa fa-angle-right"}),e._v(" "+e._s(t.args.title)+" ")]),n("div",{directives:[{name:"rawElement",rawName:"v-rawElement",value:{el:t.el,props:{kiwi:{buffer:e.buffer,aboutbuffer:e.self}}},expression:"{\n el: plugin.el,\n props: {\n kiwi: {\n buffer: buffer,\n aboutbuffer: self,\n }\n }\n }"}]})])}))],2)},s=[]},"7ae5":function(e,t,n){"use strict";var i=n("1bd5");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=i(n("3818")),r=i(n("a3e3")),a=i(n("fa81")),o=i(n("bf2d")),c=i(n("9f12")),u=i(n("53fe")),l=i(n("eec7")),f=i(n("2ef0")),d=i(n("5e48")),p=i(n("0470")),h=p.default.namespace("ConfigLoader"),w=function(){function e(){(0,c.default)(this,e),this.config=Object.create(null),this.valReplacements=Object.create(null)}return(0,u.default)(e,[{key:"addValueReplacement",value:function(e,t){return this.valReplacements[e]=t,this}},{key:"loadFromUrl",value:function(e){var t=this;return new s.default((function(n,i){(0,l.default)({url:e},(function(e,s){if(e)i();else{var a=null;try{a=d.default.parse(s.body)}catch(c){h.error("Config "+c.message);var o="Config file error: "+c.message.replace("JSON5: ","");return o=o.replace(/at (\d+):(\d+)/g,(function(e,t,n){var i;return(0,r.default)(i="line ".concat(t,", position ")).call(i,n)})),void i(o)}t.setConfig(a),n(t.config)}}))}))}},{key:"loadFromObj",value:function(e){var t=this;return new s.default((function(n,i){t.setConfig(e),n(t.config)}))}},{key:"setConfig",value:function(e){var t=this,n=function e(n,i){f.default.each(n,(function(n,s){var r=n;"string"===typeof r?(r=t.insertReplacements(r),i[s]=r):"object"===(0,o.default)(r)?(i[s]=f.default.isArray(r)?[]:{},e(r,i[s])):i[s]=r}))};this.config=Object.create(null),n(e,this.config)}},{key:"insertReplacements",value:function(e){for(var t=e,n=(0,a.default)(this.valReplacements),i=0;i0?(n=this.$state.networks[0],this.$state.setActiveBuffer(n.id,n.serverBuffer().name),t=!0,this.$emit("start")):window.location.hash.substr(1)?(i=window.location.hash.substr(1),s=i.substr(0,7).toLowerCase(),"ircs%3a"!==s&&"irc%3a"!==s.substr(0,6)||(i=decodeURIComponent(i)),r=f.parseIrcUri(i),0===r.length?(t=!0,this.applyDefaults()):1===r.length?(t=!1,this.server_type="default_simple",this.show_type_switcher=!1,a=r[0],this.server=a.server+":"+a.port,this.tls=a.tls,this.nick=this.processNickRandomNumber(a.nick),this.channel=a.channels.join(","),this.direct=a.direct,this.encoding=a.encoding,"znc"===a.params.type?("_"===a.params.network?this.znc_network_support=!1:this.znc_network=a.params.network||"",this.server_type="znc",this.title="Enter your password to connect to ZNC"):this.title="Enter a nickname to join"):r.length>1&&(t=!1,r.forEach((function(e,t){var n=o.$state.addNetwork(e.server,e.nick,{server:e.server,port:e.port,tls:e.tls,direct:e.direct,password:e.password||""});e.channels.forEach((function(e){var t=o.$state.addBuffer(n.id,e);t.enabled=!0})),0===t&&o.$state.setActiveBuffer(n.id,n.serverBuffer().name)})),this.$emit("start"))):(t=!0,this.applyDefaults()),this.$state.settings.startupOptions.greetingText&&(this.title=this.$state.settings.startupOptions.greetingText),this.$state.settings.startupOptions.buttonText?this.buttonText=this.$state.settings.startupOptions.buttonText:this.buttonText=this.$t("connect"),t&&this.$state.persistence.watchStateForChanges();case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),methods:{readableStateError:function(e){return f.networkErrorMessage(e)},startUp:function(){var e,t=this;if(this.nick){var n=this.nick;if("znc"===this.server_type){var i=n;this.znc_network&&(i+="/"+this.znc_network),i+=":"+this.password,e=this.$state.addNetwork("ZNC","ZNC",{server:this.server.split(":")[0],port:parseInt(this.server.split(":")[1]||6667,10),tls:this.tls,password:i})}else e=this.$state.addNetwork("Network",n,{server:this.server.split(":")[0],port:parseInt(this.server.split(":")[1]||6667,10),tls:this.tls,password:this.password,direct:this.direct,path:this.direct_path,encoding:this.encoding});if(e){var s=!1,r=f.extractBuffers(this.channel);r.forEach((function(n,i){var r=t.$state.addBuffer(e.id,n.name);r.enabled=!0,n.key&&(r.key=n.key),0===i&&(t.$state.setActiveBuffer(e.id,r.name),s=!0)})),s||this.$state.setActiveBuffer(e.id,e.serverBuffer().name),this.is_connecting=!0,this.network=e,e.ircClient.connect();var a=function n(){setTimeout((function(){t.is_connecting=!1}),1e3),t.$emit("start"),e.ircClient.off("registered",n),e.ircClient.off("close",o)},o=function n(){setTimeout((function(){t.is_connecting=!1}),1e3),e.ircClient.off("registered",a),e.ircClient.off("close",n)};e.ircClient.once("registered",a),e.ircClient.once("close",o)}}else this.$el.querySelector(".kiwi-customserver-nick input").focus()},processNickRandomNumber:function(e){var t=(e||"").replace(/\?/g,(function(){return Math.floor(100*Math.random()).toString()}));return(0,o.default)(l.default).call(l.default,t)},infoClick:function(){if(this.network){var e=this.network;this.$state.setActiveBuffer(e.id,e.serverBuffer().name)}this.$emit("start")},applyDefaults:function(){this.server=this.$state.settings.startupOptions.server,this.tls=this.$state.settings.startupOptions.tls,this.nick=this.processNickRandomNumber(this.$state.settings.startupOptions.nick),this.channel=this.$state.settings.startupOptions.channel,this.direct=this.$state.settings.startupOptions.direct,this.direct_path=this.$state.settings.startupOptions.direct_path,this.encoding=this.$state.settings.startupOptions.encoding,"6667"!==this.$state.settings.startupOptions.port.toString()&&(this.server+=":"+this.$state.settings.startupOptions.port.toString()),this.title="Where are you connecting today?"}}};t.default=h,window._kiwi_exports=window._kiwi_exports||{},window._kiwi_exports["components"]||(window._kiwi_exports["components"]={}),window._kiwi_exports["components"]["startups"]||(window._kiwi_exports["components"]["startups"]={}),window._kiwi_exports["components"]["startups"]["CustomServer"],window._kiwi_exports.components.startups.CustomServer=t.default?t.default:t},"7f44":function(e,t,n){"use strict";n.r(t);var i=n("40c4"),s=n.n(i);for(var r in i)"default"!==r&&function(e){n.d(t,e,(function(){return i[e]}))}(r);t["default"]=s.a},"7f90":function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return s}));var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"kiwi-personal"},[n("h1",[e._v(e._s(e.$t("personal_client")))]),e.server&&e.server.server&&!e.readyToShowOptions?n("div"):e.server&&e.server.server?n("div",[e.addedNetworkToExisting?n("div",[n("p",[e._v(" "+e._s(e.$t("personal_added_to_existing"))+" ")])]):n("div",[n("p",{domProps:{innerHTML:e._s(e.$t("personal_connect_to",{network:""+e.server.server+""}))}}),e.hasOtherTab?n("button",{staticClass:"u-button u-button-primary",attrs:{type:"button"},on:{click:e.addNetworkToExistingTab}},[e._v(" "+e._s(e.$t("personal_add_existing_tab"))+" ")]):n("button",{staticClass:"u-button u-button-primary",attrs:{type:"button"},on:{click:function(t){return e.addNetwork()}}},[e._v(" Add network to Kiwi ")]),n("br"),n("button",{staticClass:"u-button u-button-primary",attrs:{type:"button"},on:{click:function(t){return e.addNetwork(!0)}}},[e._v(" "+e._s(e.$t("personal_connect_temporary"))+" ")]),e._v(" "),n("br")])]):n("div",[n("p",[e._v(e._s(e.$t("personal_addjoin")))]),n("p",[e._v(e._s(e.$t("personal_return")))]),n("button",{staticClass:"u-button u-button-primary",attrs:{type:"button"},on:{click:e.addEmptyNetwork}},[e._v(" "+e._s(e.$t("personal_add"))+" ")]),e._v(" "),n("br"),e.networks.length>0?n("a",{staticClass:"u-link kiwi-personal-existing-networks",on:{click:function(t){return t.stopPropagation(),e.toggleStateBrowser.apply(null,arguments)}}},[e._v(" "+e._s(e.$t("personal_saved"))+" ")]):e._e()])])},s=[]},"7fe3":function(e,t,n){},"7fe4":function(e,t,n){},8008:function(e,t,n){"use strict";n("60f6")},8049:function(e,t,n){"use strict";n.r(t);var i=n("be97"),s=n.n(i);for(var r in i)"default"!==r&&function(e){n.d(t,e,(function(){return i[e]}))}(r);t["default"]=s.a},"819b":function(e,t,n){"use strict";n("4d67")},"81c6":function(e,t,n){"use strict";n("be22")},"825b":function(e,t,n){"use strict";n.r(t);var i=n("372a"),s=n.n(i);for(var r in i)"default"!==r&&function(e){n.d(t,e,(function(){return i[e]}))}(r);t["default"]=s.a},8292:function(e,t,n){"use strict";var i=n("1bd5");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=i(n("e4f0")),r=i(n("385f")),a=i(n("ffd2")),o=i(n("f93d")),c=i(n("7a9c")),u=i(n("b4f0")),l={components:{BufferSettings:u.default,StateBrowserNetwork:a.default,StateBrowserUsermenu:o.default},props:["networks","sidebarState"],data:function(){return{self:this,pluginUiElements:r.default.singleton().stateBrowserPlugins,activePrompt:{type:void 0,value:void 0}}},computed:{getNetwork:function(){return this.$state.getActiveNetwork()},isPersistingState:function(){return!!this.$state.persistence},isRestrictedServer:function(){return!!this.$state.settings.restricted},networksToShow:function(){var e;return(0,s.default)(e=this.networks).call(e,(function(e){return!e.hidden}))}},created:function(){var e=this;this.listen(this.$state,"document.clicked",(function(t){if(e.activePrompt.type){for(var n=[".kiwi-statebrowser-prompt-close",".kiwi-statebrowser-queries-close",".kiwi-statebrowser-channel-leave"],i=e.$el.querySelectorAll(n.join(", ")),s=0;s-1},displayAvatar:function(e){var t=this.props;return!!e.user&&(!t.ml.buffer.isServer()&&!t.ml.buffer.isSpecial())},userMode:function(e){var t=this.props;return t.ml.buffer.userMode(e)},userModePrefix:function(e){var t=this.props;return t.ml.buffer.userModePrefix(e)}},l={inject:{components:{default:{MessageAvatar:a.default,MessageInfo:r.default,AwayStatusIndicator:o.default,MediaViewer:c.default}}},props:{ml:Object,message:Object,idx:Number,m:{default:function(){return function(){return u.props=this,u}}}}};t.default=l,window._kiwi_exports=window._kiwi_exports||{},window._kiwi_exports["components"]||(window._kiwi_exports["components"]={}),window._kiwi_exports["components"]["MessageListMessageModern"],window._kiwi_exports.components.MessageListMessageModern=t.default?t.default:t},"85be":function(e,t,n){},"862b":function(e,t,n){"use strict";var i=n("1bd5");Object.defineProperty(t,"__esModule",{value:!0}),t.extractBuffers=h,t.extractURL=w,t.stripStyles=m,t.mentionsNick=v,t.queryStringVal=g,t.networkErrorMessage=_,t.connectionInfoFromConfig=k,t.matchUri=b,t.parseIrcUri=y,t.parsePresetServer=C,t.dedotObject=x,t.replaceObjectProps=$,t.dateIso=S,t.parseIntZero=O;var s=i(n("bf2d")),r=i(n("44a4")),a=i(n("a3e3")),o=i(n("14b1")),c=i(n("fa81")),u=i(n("800f")),l=i(n("2ef0")),f=i(n("e9c4")),d=n("5a16"),p=f.default.timezone("+0");function h(e){var t=e.indexOf(" ");-1===t&&(t=e.length);var n=e.substr(0,t).split(","),i=e.substr(t+1).split(","),s=[];return n.forEach((function(e,t){(0,r.default)(e).call(e)&&s.push({name:e,key:i[t]||""})})),s}function w(e){var t=e.match(d.urlRegex);return t?t[0]:""}function m(e){return e.replace(/(\x03[0-9]{0,2})?([\x02\x16\x1d\x1f]+)?/g,"")}function v(e,t){var n;if(-1===e.toLowerCase().indexOf(t.toLowerCase()))return!1;var i="\\s,.!:;+()\\[\\]?¿\\/<>@-",s=l.default.escapeRegExp(t),r=m(e),o=new RegExp((0,a.default)(n="(^|[".concat(i,"])").concat(s,"([")).call(n,i,"]|$)"),"i");return o.test(r)}function g(e,t){var n=t||window.location.href,i=l.default.escapeRegExp(e),s=new RegExp("[?&]"+i+"(=([^&#]*)|&|#|$)"),r=s.exec(n);return r?r[2]?decodeURIComponent(r[2].replace(/\+/g," ")):"":null}function _(e){var t={err_unknown_host:"Unknown domain name or host",err_forbidden:"Forbidden to connect",err_timeout:"Took too long to connect",err_refused:"The server refused the connection",err_tls:"Could not connect securely",err_proxy:"The Kiwi IRC server had an error"};return t[e]||"Unknown error"}function k(e){var t={tls:!1,port:0,hostname:"",direct:!1,direct_path:""},n=e.websocket?b(e.websocket):null;return n?(t.direct=!0,t.tls=["wss","https","ircs"].indexOf(n.protocol)>-1,t.port=n.port,t.hostname=n.hostname,t.direct_path=n.path,n.search&&(t.direct_path+="?"+n.search)):(t.tls=e.tls,t.port=e.port,t.hostname=e.server,t.direct=!!e.direct,t.direct_path=e.direct_path||""),t}function b(e){var t=/(?:([a-z]+):\/\/)?([a-z.0-9-]+)(?::(?:(\+)?([0-9]+)))?(?:\/([^?]*))?(?:\?(.*))?/,n=e.match(t);return n?{protocol:(n[1]||"").toLowerCase(),hostname:n[2]||"",port:O(n[4]||""),path:"/"+(n[5]||""),search:n[6]||""}:null}function y(e){var t=/(?:(ircs?|wss?):\/\/)?([a-z.0-9-]+)(?::(?:(\+)?([0-9]+)))?(?:\/([^?]*))?(?:\?(.*))?/,n=[];return e.split(";").forEach((function(e){var i;if(e){var s=e.match(t);if(s){var r="ircs"===s[1]||"wss"===s[1]||!!s[3],a="ws"===s[1]||"wss"===s[1],c=Object.create(null);(s[6]||"").split("&").forEach((function(e){var t=e.split("=");2===t.length&&(c[t[0].toLowerCase()]=t[1])}));var u=s[5]||c.channel||"";u=(0,o.default)(i=(0,l.default)(u.split(",")).compact()).call(i,(function(e){var t="#"===e[0]||"&"===e[0],n=t?e:"#"+e;return n})),n.push({tls:r,server:s[2],port:parseInt(s[4]||(r?6697:6667),10),channels:u,nick:c.nick||"",encoding:c.encoding||"utf8",params:c,direct:a})}}})),n}function C(e){var t={name:"",server:"",port:6667,tls:!1,toUri:function(){var e,n;return(0,a.default)(e=(0,a.default)(n="".concat(t.server,":")).call(n,t.tls?"+":"")).call(e,t.port)}},n=e,i=n.indexOf("|");i>-1&&(t.name=n.substr(0,i),n=n.substr(i+1));var s=n.indexOf(":");return-1===s?(t.server=n,n=""):(t.server=n.substr(0,s),n=n.substr(s+1)),"+"===n[0]&&(t.tls=!0,n=n.substr(1)),n.length>0&&(t.port=parseInt(n,10),n=""),t.name||(t.name=t.server),t}function x(e,t){var n=t||[],i=/\w\.\w/;l.default.each(e,(function(t,r){var o=(0,a.default)(n).call(n,[r]);"object"!==(0,s.default)(t)?i.test(r)&&(delete e[r],l.default.set(e,o.join("."),t)):x(e[r],o)}))}function $(e,t){(0,c.default)(e).forEach((function(t){return delete e[t]})),(0,c.default)(t).forEach((function(n){e[n]=t[n]}))}function S(e){var t=e||new Date;return p("%Y-%m-%dT%H:%M:%S.%LZ",t)}function O(e){var t=parseInt(e,10);return(0,u.default)(t)?0:t}window._kiwi_exports=window._kiwi_exports||{},window._kiwi_exports["helpers"]||(window._kiwi_exports["helpers"]={}),window._kiwi_exports["helpers"]["Misc"],window._kiwi_exports.helpers.Misc=t.default?t.default:t},8753:function(e,t,n){"use strict";var i=n("c90a"),s=n("1bd5");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n("5b1a")),a=s(n("9f12")),o=s(n("53fe")),c=s(n("c03e")),u=s(n("8b83")),l=s(n("c65a")),f=s(n("ba10"));function d(e){var t=p();return function(){var n,s=(0,l.default)(e);if(t){var r=(0,l.default)(this).constructor;n=i(s,arguments,r)}else n=s.apply(this,arguments);return(0,u.default)(this,n)}}function p(){if("undefined"===typeof Reflect||!i)return!1;if(i.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(i(Boolean,[],(function(){}))),!0}catch(e){return!1}}var h=function(e){(0,c.default)(n,e);var t=d(n);function n(){return(0,a.default)(this,n),t.apply(this,arguments)}return(0,o.default)(n,[{key:"init",value:function(){try{this.bc=new BroadcastChannel("kiwi-ipc"),this.bc.onmessage=this.onmessage.bind(this)}catch(e){}}},{key:"send",value:function(e){this.bc&&this.bc.postMessage(e)}},{key:"onmessage",value:function(e){this.emit("message",e)}}]),n}(f.default),w=function(e){(0,c.default)(n,e);var t=d(n);function n(){return(0,a.default)(this,n),t.apply(this,arguments)}return(0,o.default)(n,[{key:"init",value:function(){window.addEventListener("storage",this.onmessage.bind(this))}},{key:"send",value:function(e){localStorage.setItem("kiwi-ipc",(0,r.default)(e)),localStorage.removeItem("kiwi-ipc")}},{key:"onmessage",value:function(e){if("kiwi-ipc"===e.key&&e.newValue)try{var t={data:JSON.parse(e.newValue)};this.emit("message",t)}catch(n){this.emit("error")}}}]),n}(f.default),m=window.BroadcastChannel?new h:new w;t.default=m,window._kiwi_exports=window._kiwi_exports||{},window._kiwi_exports["libs"]||(window._kiwi_exports["libs"]={}),window._kiwi_exports["libs"]["IPC"],window._kiwi_exports.libs.IPC=t.default?t.default:t},8761:function(e,t,n){"use strict";n("b39c")},8831:function(e,t,n){"use strict";var i=n("1bd5");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=i(n("b6ce")),r={props:["buffer","network"],data:function(){return{}},methods:{joinChannel:function(){(0,s.default)(this.buffer).channel_badkey=!1,this.buffer.join()}}};t.default=r,window._kiwi_exports=window._kiwi_exports||{},window._kiwi_exports["components"]||(window._kiwi_exports["components"]={}),window._kiwi_exports["components"]["BufferKey"],window._kiwi_exports.components.BufferKey=t.default?t.default:t},"88a2":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n("5ee5"),s=i.component("transition-expand",{name:"TransitionExpand",methods:{enter:function(e){var t=getComputedStyle(e).width;e.style.width=t,e.style.position="absolute",e.style.visibility="hidden",e.style.height="auto";var n=getComputedStyle(e).height;e.style.width=null,e.style.position=null,e.style.visibility=null,e.style.height=0,getComputedStyle(e).height,requestAnimationFrame((function(){e.style.height=n}))},afterEnter:function(e){e.style.height="auto"},leave:function(e){var t=getComputedStyle(e).height;e.style.height=t,getComputedStyle(e).height,requestAnimationFrame((function(){e.style.height=0}))}}});t.default=s,window._kiwi_exports=window._kiwi_exports||{},window._kiwi_exports["components"]||(window._kiwi_exports["components"]={}),window._kiwi_exports["components"]["utils"]||(window._kiwi_exports["components"]["utils"]={}),window._kiwi_exports["components"]["utils"]["TransitionExpand"],window._kiwi_exports.components.utils.TransitionExpand=t.default?t.default:t},"88b1":function(e,t,n){"use strict";n("7fe4")},"88e4":function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return s}));var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"kiwi-inputtool-emoji"},[n("div",{staticClass:"kiwi-inputtool-emoji-palette",on:{mousedown:function(e){e.preventDefault()},click:function(e){e.preventDefault()}}},e._l(e.emojis,(function(t,i){return n("div",{key:i,staticClass:"kiwi-inputtool-emoji-emoji",style:{"background-image":"url("+e.location+i+")"},attrs:{"data-code":t+" "},on:{click:e.onImgClick}})})),0)])},s=[]},"88eb":function(e,t,n){},8993:function(e,t,n){"use strict";var i=n("9e19"),s=n("b4d1"),r=n("7c78"),a=n("1bd5");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=a(n("44a4")),c=a(n("2ef0")),u=d(n("862b")),l=a(n("6307"));function f(e){if("function"!==typeof s)return null;var t=new s,n=new s;return(f=function(e){return e?n:t})(e)}function d(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!==typeof e)return{default:e};var n=f(t);if(n&&n.has(e))return n.get(e);var s={},a=Object.defineProperty&&r;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var c=a?r(e,o):null;c&&(c.get||c.set)?Object.defineProperty(s,o,c):s[o]=e[o]}return s.default=e,n&&n.set(e,s),s}var p={components:{StartupLayout:l.default},data:function(){return{network:null,network_extras:null,username:"",password:"",znc_network:"",showNetwork:!0,showPass:!0,showUser:!0,show_password_box:!1}},computed:{greetingText:function(){var e=this.$state.settings.startupOptions.greetingText;return"string"===typeof e?e:this.$t("start_greeting")},buttonText:function(){var e=this.$state.settings.startupOptions.buttonText;return"string"===typeof e?e:this.$t("start_button")},readyToStart:function(){return this.username&&(this.password||!1===this.showPass)},infoContent:function(){return this.$state.settings.startupOptions.infoContent||""}},created:function(){var e=this.$state.settings.startupOptions;this.username=e.username||"",this.password=e.password||"",this.znc_network=window.location.hash.substr(1)||e.network||"",this.showNetwork="boolean"!==typeof e.showNetwork||e.showNetwork,this.showUser="boolean"!==typeof e.showUser||e.showUser,this.showPass="boolean"!==typeof e.showPass||e.showPass,e.autoConnect&&this.username&&this.password&&this.startUp()},methods:{readableStateError:function(e){return u.networkErrorMessage(e)},formSubmit:function(){this.readyToStart&&this.startUp()},addNetwork:function(e){var t=this.$state.settings.startupOptions,n=this.username;e&&(n+="/"+e),n+=":"+this.password;var i=this.$state.addNetwork(e,"ZNC",{server:(0,o.default)(c.default).call(c.default,t.server),port:t.port,tls:t.tls,password:n});return i},startUp:function(){var e=this;this.network&&this.$state.removeNetwork(this.network.id);var t=c.default.compact(this.znc_network.split(","));0===t.length&&t.push("");var n=this.network=this.addNetwork(t.shift());this.network_extras=t;var i=function t(){e.$state.setActiveBuffer(n.id,n.serverBuffer().name),n.ircClient.off("registered",t),n.ircClient.off("close",s),e.network_extras.forEach((function(t,n){var i=e.addNetwork((0,o.default)(c.default).call(c.default,t));i.ircClient.connect()})),e.$refs.layout.close()},s=function e(){n.ircClient.off("registered",i),n.ircClient.off("close",e)};n.ircClient.once("registered",i),n.ircClient.once("close",s),n.ircClient.connect()}}};t.default=p,window._kiwi_exports=window._kiwi_exports||{},window._kiwi_exports["components"]||(window._kiwi_exports["components"]={}),window._kiwi_exports["components"]["startups"]||(window._kiwi_exports["components"]["startups"]={}),window._kiwi_exports["components"]["startups"]["ZncLogin"],window._kiwi_exports.components.startups.ZncLogin=t.default?t.default:t},"89d7":function(e,t,n){"use strict";n.r(t);var i=n("f333"),s=n.n(i);for(var r in i)"default"!==r&&function(e){n.d(t,e,(function(){return i[e]}))}(r);t["default"]=s.a},"89dc":function(e,t,n){},"8b75":function(e,t,n){},"8bab":function(e,t,n){"use strict";n.r(t);var i=n("5426");for(var s in i)"default"!==s&&function(e){n.d(t,e,(function(){return i[e]}))}(s);var r,a,o=n("0c7c"),c=Object(o["a"])(i["default"],r,a,!1,null,null,null);t["default"]=c.exports},"8c1f":function(e,t,n){"use strict";n.r(t);var i=n("572b"),s=n.n(i);for(var r in i)"default"!==r&&function(e){n.d(t,e,(function(){return i[e]}))}(r);t["default"]=s.a},"8cc3":function(e,t,n){"use strict";var i=n("1bd5");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=i(n("462f")),r=i(n("e402")),a=i(n("df3a")),o={props:{},userColour:function(){var e=this.props;return e.nicklist.useColouredNicks?e.user.getColour():""},shouldShowAvatars:function(){var e=this.props;return e.nicklist.buffer.setting("nicklist_avatars")}},c={inject:{components:{default:{AwayStatusIndicator:s.default,TypingStatusIndicator:r.default,Avatar:a.default}}},props:{network:Object,user:Object,nicklist:Object,m:{default:function(){return function(){return o.props=this,o}}}}};t.default=c,window._kiwi_exports=window._kiwi_exports||{},window._kiwi_exports["components"]||(window._kiwi_exports["components"]={}),window._kiwi_exports["components"]["NicklistUser"],window._kiwi_exports.components.NicklistUser=t.default?t.default:t},"8ce2":function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return s}));var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e.showCaptcha?n("div",{ref:"captchacontainer"}):e._e()])},s=[]},"8d02":function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return s}));var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"u-input-prompt",style:{display:e.block?"block":"inline-block"}},["pre"===e.state?n("div",{on:{click:e.prompt}},[e._t("default")],2):e._e(),"prompt"===e.state?n("form",{staticClass:"u-form",on:{submit:function(t){return t.preventDefault(),e.complete.apply(null,arguments)}}},[n("span",{staticClass:"u-input-prompt-label"},[e._v(e._s(e.label))]),n("div",{staticClass:"u-input-prompt-inputs"},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.value,expression:"value"}],staticClass:"u-input",domProps:{value:e.value},on:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"])?null:e.cancel.apply(null,arguments)},input:function(t){t.target.composing||(e.value=t.target.value)}}}),n("a",{staticClass:"u-button u-button-primary",on:{click:e.complete}},[n("span",{class:{"u-input-prompt-hidden":e.waiting}},[e._v(e._s(e.$t("ok")))]),e.waiting?n("div",{staticClass:"u-input-prompt-waiting"},[n("i",{staticClass:"fa fa-spin fa-spinner",attrs:{"aria-hidden":"true"}})]):e._e()]),e.hideCancel?e._e():n("a",{staticClass:"u-button u-button-warning",on:{click:e.cancel}},[e._v(e._s(e.$t("cancel")))])])]):e._e()])},s=[]},"8dfb":function(e,t,n){"use strict";n("89dc")},"8e04":function(e,t,n){"use strict";n.r(t);var i=n("c35b"),s=n.n(i);for(var r in i)"default"!==r&&function(e){n.d(t,e,(function(){return i[e]}))}(r);t["default"]=s.a},"8e13":function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return s}));var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"resizeobserver",rawName:"v-resizeobserver",value:e.onListResize,expression:"onListResize"}],key:"messagelist-"+e.buffer.name,staticClass:"kiwi-messagelist",class:{"kiwi-messagelist--smoothscroll":e.smooth_scroll},on:{click:function(t){return t.target!==t.currentTarget?null:e.onListClick.apply(null,arguments)}}},[n("div",{directives:[{name:"resizeobserver",rawName:"v-resizeobserver",value:e.onListResize,expression:"onListResize"}]},[e.shouldShowChathistoryTools?n("div",{staticClass:"kiwi-messagelist-scrollback"},[e.buffer.flag("is_requesting_chathistory")?n("a",{staticClass:"u-link"},[e._v("...")]):n("a",{staticClass:"u-link",on:{click:function(t){return e.buffer.requestScrollback()}}},[e._v(" "+e._s(e.$t("messages_load"))+" ")])]):e._e(),n("transition-group",{attrs:{tag:"div"}},[e._l(e.filteredMessagesGroupedDay,(function(t){return[e.filteredMessagesGroupedDay.length>1&&t.messages.length>0?n("div",{key:"msgdatemarker"+t.dayNum,staticClass:"kiwi-messagelist-seperator"},[n("span",[e._v(e._s(new Date(t.messages[0].time).toDateString()))])]):e._e(),n("transition-group",{key:t.dayNum,attrs:{tag:"div"}},[e._l(t.messages,(function(t){return[e.shouldShowUnreadMarker(t)?n("div",{key:"msgunreadmarker"+t.id,staticClass:"kiwi-messagelist-seperator"},[n("span",[e._v(e._s(e.$t("unread_messages")))])]):e._e(),n("div",{key:"msg"+t.id,class:["kiwi-messagelist-item",e.selectedMessages[t.id]?"kiwi-messagelist-item--selected":""]},[t.render()&&t.template&&t.template.$el?n("div",{directives:[{name:"rawElement",rawName:"v-rawElement",value:t.template.$el,expression:"message.template.$el"}]}):"modern"===e.listType?n("message-list-message-modern",{attrs:{message:t,idx:e.filteredMessages.indexOf(t),ml:e.thisMl}}):"inline"===e.listType?n("message-list-message-inline",{attrs:{message:t,idx:e.filteredMessages.indexOf(t),ml:e.thisMl}}):"compact"===e.listType?n("message-list-message-compact",{attrs:{message:t,idx:e.filteredMessages.indexOf(t),ml:e.thisMl}}):e._e()],1)]}))],2)]}))],2),n("transition",{attrs:{name:"kiwi-messagelist-joinloadertrans"}},[e.shouldShowJoiningLoader?n("div",{staticClass:"kiwi-messagelist-joinloader"},[n("LoadingAnimation")],1):e._e()]),e.shouldRequestChannelKey?n("buffer-key",{attrs:{buffer:e.buffer,network:e.buffer.getNetwork()}}):e._e()],1)])},s=[]},"8e26":function(e,t,n){"use strict";n.r(t);var i=n("53e5"),s=n("dbd7");for(var r in s)"default"!==r&&function(e){n.d(t,e,(function(){return s[e]}))}(r);n("58de");var a=n("0c7c"),o=Object(a["a"])(s["default"],i["a"],i["b"],!1,null,null,null);t["default"]=o.exports},"8f39":function(e,t,n){"use strict";var i=n("1bd5");Object.defineProperty(t,"__esModule",{value:!0}),t.orderBuffers=p,t.orderedMessages=h,t.getNextBuffer=w,t.getPreviousBuffer=m;var s=i(n("14b1")),r=i(n("e4f0")),a=i(n("52da")),o=i(n("fa81")),c=i(n("e6da")),u=i(n("9a73")),l=i(n("4c43")),f=i(n("2ef0")),d=i(n("f72e"));function p(e){var t=(0,s.default)(e).call(e,(function(e){return e}));return t=(0,r.default)(f.default).call(f.default,t,(function(e){return!e.isServer()})),t=t.sort((function(e,t){var n=0;return n=e.isChannel()&&t.isQuery()?-1:e.isQuery()&&t.isChannel()?1:e.name.localeCompare(t.name),n})),t}function h(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=e.getNetwork(),s=i.nick,l=e.getMessages(),f=(e.message_count,[]);if(f=n.inPlace?l:(0,a.default)(l).call(l,0,l.length),f.sort((function(e,t){return e.time>t.time?1:t.time>e.time?-1:e.instance_num>t.instance_num?1:-1})),n.noFilter)return f;for(var d={traffic:"show_joinparts",topic:"show_topics",nick:"show_nick_changes",mode:"show_mode_changes",presence:"show_presence_changes"},p=(0,r.default)(t=(0,o.default)(d)).call(t,(function(t){return!e.setting(d[t])})),h=function(e){var t;return e.type_extra&&(0,c.default)(t=e.type_extra).call(t,"_self")},w=[],m=f.length-1;m>=0;m--)(0,u.default)(p).call(p,f[m].type)&&!h(f[m])||f[m].ignore||"connection"===f[m].type&&0===m||("topic"===f[m].type&&f[m-1]&&"traffic"===f[m-1].type&&f[m-1].nick===s?(w.push(f[m-1]),w.push(f[m]),m--):w.push(f[m]));return w.reverse()}function w(){return v(1)}function m(){return v(-1)}function v(e){var t=(0,d.default)(),n=t.getActiveNetwork(),i=t.getActiveBuffer();if(!n||!i)return null;var s=p(n.buffers),r=(0,l.default)(f.default).call(f.default,s,["name",i.name])+e;return r>=s.length||r<0?(n=g(e),s=p(n.buffers),i=1===e?s[0]:s[s.length-1]):i=s[r],i}function g(e){for(var t=(0,d.default)(),n=t.getActiveNetwork(),i=0;i=t.networks.length&&t.networks.length>=0?t.networks[0]:s<0?t.networks[t.networks.length-1]:t.networks[s],n.buffers.length>1)return n}return n}window._kiwi_exports=window._kiwi_exports||{},window._kiwi_exports["libs"]||(window._kiwi_exports["libs"]={}),window._kiwi_exports["libs"]["bufferTools"],window._kiwi_exports.libs.bufferTools=t.default?t.default:t},"8ffb":function(e,t,n){"use strict";n.r(t);var i=n("8993"),s=n.n(i);for(var r in i)"default"!==r&&function(e){n.d(t,e,(function(){return i[e]}))}(r);t["default"]=s.a},9010:function(e,t,n){},"91e8":function(e,t,n){},9208:function(e,t,n){"use strict";n.r(t);var i=n("c495"),s=n.n(i);for(var r in i)"default"!==r&&function(e){n.d(t,e,(function(){return i[e]}))}(r);t["default"]=s.a},9280:function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return s}));var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("startup-layout",{ref:"layout",staticClass:"kiwi-startbnc",scopedSlots:e._u([{key:"connection",fn:function(){return[n("form",{staticClass:"kiwi-startbnc-form",on:{submit:function(t){return t.preventDefault(),e.startUp.apply(null,arguments)}}},[n("h2",{domProps:{innerHTML:e._s(e.greetingText)}}),n("div",{staticClass:"kiwi-startbnc-status"},[e._v(e._s(e.statusMessage))]),n("label",[n("span",[e._v(e._s(e.$t("username")))]),n("input",{directives:[{name:"model",rawName:"v-model",value:e.username,expression:"username"}],attrs:{disabled:e.loading,type:"text"},domProps:{value:e.username},on:{input:function(t){t.target.composing||(e.username=t.target.value)}}})]),n("label",[n("span",[e._v(e._s(e.$t("password")))]),n("input",{directives:[{name:"model",rawName:"v-model",value:e.password,expression:"password"}],attrs:{disabled:e.loading,type:"password"},domProps:{value:e.password},on:{input:function(t){t.target.composing||(e.password=t.target.value)}}})]),n("button",{staticClass:"u-button u-button-primary u-submit",attrs:{disabled:e.loading||!e.username||!e.password,type:"submit"}},[e.loading?n("i",{staticClass:"fa fa-spinner fa-spin",attrs:{"aria-hidden":"true"}}):n("span",{domProps:{innerHTML:e._s(e.buttonText)}})])])]},proxy:!0}])})},s=[]},"929b":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n("5ee5");i.component("tabbed-tab",{props:{header:{status:String},focus:{status:Boolean},name:{status:String}},data:function(){return{active:!1}},template:'
'});var s=i.component("tabbed-view",{data:function(){return{a:1,prefixID:Math.floor(1e5*Math.random()).toString(36)}},computed:{tabs:function(){return this.$children}},mounted:function(){this.setActiveCheck()},methods:{getActive:function(){var e=null;return this.$children.forEach((function(t){t.active&&(e=t)})),e},setActive:function(e){this.$children.forEach((function(t){t!==e&&(t.active=!1)})),e.active=!0,this.a++,this.$emit("changed",e.name)},setActiveByName:function(e){var t=this;this.$children.forEach((function(n){n.name===e&&t.setActive(n)}))},setActiveCheck:function(){var e=this;this.$children.forEach((function(t){t.focus&&e.setActive(t)}))}}});t.default=s,window._kiwi_exports=window._kiwi_exports||{},window._kiwi_exports["components"]||(window._kiwi_exports["components"]={}),window._kiwi_exports["components"]["utils"]||(window._kiwi_exports["components"]["utils"]={}),window._kiwi_exports["components"]["utils"]["TabbedView"],window._kiwi_exports.components.utils.TabbedView=t.default?t.default:t},9332:function(e,t,n){"use strict";var i=n("1bd5");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=i(n("fa81")),r=i(n("a3e3")),a=n("2ef0"),o=i(n("f72e")),c=u;function u(e,t){var n=(0,o.default)(),i=n.setting("emojiLocation"),r="undefined"===typeof t?n.setting("buffers.show_emoticons"):!!t,c=e.reduce((function(t,o,c){var u,w="",m="";switch((0,s.default)(o.styles).forEach((function(e){"underline"===e?w+="text-decoration:underline;":"bold"===e?w+="font-weight:bold;":"italic"===e?w+="font-style:italic;":"quote"===e?m+="kiwi-formatting-extras-quote ":"block"===e?m+="kiwi-formatting-extras-block ":"color"===e?m+="irc-fg-colour-".concat(o.styles[e]," "):"background"===e&&(m+="irc-bg-colour-".concat(o.styles[e]," "))})),o.type){case"url":u=l(o,{addHandle:n.setting("buffers.show_link_previews"),handleClass:"fa fa-share-square u-link kiwi-messagelist-message-linkhandle"});break;case"user":u=f(o);break;case"channel":u=d(o);break;case"emoji":u=p(o,1===e.length,i,r);break;default:u=(0,a.escape)(o.content)}return t+h(u,m,w)}),"");return"".concat(c)}function l(e,t){var n,i=t||{},s="";s=e.content.length>100?(0,a.escape)(e.content.substr(0,100))+"...":(0,a.escape)(e.content);var o=e.meta.url.replace(/"/g,"%22"),c=(0,r.default)(n='')).call(n,s,"");if(i.addHandle){var u,l,f=i.handleClass||"",d=i.handleContent||"";c+=(0,r.default)(u=(0,r.default)(l='')).call(u,d,"")}return c}function f(e){var t=(0,a.escape)(e.meta.user),n=e.meta.colour;return'".concat(t,"")}function d(e){var t;return(0,r.default)(t='')).call(t,(0,a.escape)(e.content),"")}function p(e,t,n,i){var s,o,c,u;if(!i)return e.content;var l=e.meta.emoji,f="kiwi-messagelist-emoji"+(t?" kiwi-messagelist-emoji--single":""),d=(0,r.default)(s="".concat(n)).call(s,l);return(0,r.default)(o=(0,r.default)(c=(0,r.default)(u='')).call(c,(0,a.escape)(e.content),'')}function h(e,t,n){return""===n&&""===t?e:"".concat(e,"")}t.default=c,window._kiwi_exports=window._kiwi_exports||{},window._kiwi_exports["libs"]||(window._kiwi_exports["libs"]={}),window._kiwi_exports["libs"]["renderers"]||(window._kiwi_exports["libs"]["renderers"]={}),window._kiwi_exports["libs"]["renderers"]["Html"],window._kiwi_exports.libs.renderers.Html=t.default?t.default:t},9337:function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return s}));var i=function(e,t){var n=t._c;return n("div",{staticClass:"kiwi-messagelist-message kiwi-messagelist-message--text",class:["kiwi-messagelist-message-"+t.props.message.type,t.props.message.type_extra?"kiwi-messagelist-message-"+t.props.message.type+"-"+t.props.message.type_extra:"",t.props.ml.isMessageHighlight(t.props.message)?"kiwi-messagelist-message--highlight":"",t.props.ml.isHoveringOverMessage(t.props.message)?"kiwi-messagelist-message--hover":"",t.props.ml.buffer.last_read&&t.props.message.time>t.props.ml.buffer.last_read?"kiwi-messagelist-message--unread":"",t.props.message.nick.toLowerCase()===t.props.ml.ourNick.toLowerCase()?"kiwi-messagelist-message--own":"",t.props.ml.message_info_open===t.props.message?"kiwi-messagelist-message--info-open":"",t.props.ml.message_info_open&&t.props.ml.message_info_open!==t.props.message?"kiwi-messagelist-message--blur":"",t.props.message.user&&t.props.m().userMode(t.props.message.user)?"kiwi-messagelist-message--user-mode-"+t.props.m().userMode(t.props.message.user):"",t.data.staticClass],attrs:{"data-message-id":t.props.message.id,"data-nick":(t.props.message.nick||"").toLowerCase()},on:{click:function(e){return t.props.ml.onMessageClick(e,t.props.message,!0)},dblclick:function(e){return t.props.ml.onMessageDblClick(e,t.props.message)}}},[n("div",[t.props.ml.bufferSetting("show_timestamps")?n("span",{staticClass:"kiwi-messagelist-time"},[t._v(" "+t._s(t.props.ml.formatTime(t.props.message.time))+" ")]):t._e(),n("span",{class:["kiwi-messagelist-nick",t.props.message.user&&t.props.m().userMode(t.props.message.user)?"kiwi-messagelist-nick--mode-"+t.props.m().userMode(t.props.message.user):""],style:{color:t.props.ml.userColour(t.props.message.user)},attrs:{"data-nick":(t.props.message.nick||"").toLowerCase()},on:{mouseover:function(e){t.props.ml.hover_nick=t.props.message.nick.toLowerCase()},mouseout:function(e){t.props.ml.hover_nick=""}}},[n("span",{staticClass:"kiwi-messagelist-nick--prefix"},[t._v(" "+t._s(t.props.message.user?t.props.m().userModePrefix(t.props.message.user):"")+" ")]),n("a",{attrs:{"data-nick":(t.props.message.nick||"").toLowerCase()}},[t._v(" "+t._s(t.props.m().displayNick())+" ")])]),t.props.message.bodyTemplate&&t.props.message.bodyTemplate.$el?n("div",{directives:[{name:"rawElement",rawName:"v-rawElement",value:t.props.message.bodyTemplate.$el,expression:"props.message.bodyTemplate.$el"}],staticClass:"kiwi-messagelist-body"}):n("div",{staticClass:"kiwi-messagelist-body",domProps:{innerHTML:t._s(t.props.ml.formatMessage(t.props.message))}})]),t.props.ml.message_info_open===t.props.message?n(t.injections.components.MessageInfo,{tag:"component",attrs:{message:t.props.message,buffer:t.props.ml.buffer},on:{close:function(e){return t.props.ml.toggleMessageInfo()}}}):t._e(),t.props.message.embed.payload&&t.props.ml.shouldAutoEmbed?n("div",[n(t.injections.components.MediaViewer,{tag:"component",attrs:{url:t.props.message.embed.payload,"show-pin":!0},on:{close:function(e){t.props.message.embed.payload=""},pin:function(e){return t.props.ml.openEmbedInPreview(t.props.message)}}})],1):t._e()],1)},s=[]},"934b":function(e,t,n){"use strict";var i=n("1bd5");Object.defineProperty(t,"__esModule",{value:!0}),t.buildTree=c;var s=i(n("bf2d")),r=i(n("fa81")),a=i(n("a3e3")),o=["emojis","themes","bnc","aliases","restricted","kiwiServer","hide_advanced","windowTitle","startupOptions","plugins","presetNetworks","ircFramework"];function c(e,t,n,i){(0,r.default)(n).forEach((function(r){var u=n[r],l=(0,a.default)(t).call(t,[r]);if(-1!==["string","boolean","number"].indexOf((0,s.default)(u))){if(-1!==o.indexOf(r)||-1!==(l[0]&&o.indexOf(l[0])))return;e[l.join(".")]&&e[l.join(".")].val===u||(e[l.join(".")]={key:l.join("."),val:u,type:(0,s.default)(u),modified:i})}else"object"===(0,s.default)(u)&&null!==u&&c(e,l,u,i)}))}window._kiwi_exports=window._kiwi_exports||{},window._kiwi_exports["libs"]||(window._kiwi_exports["libs"]={}),window._kiwi_exports["libs"]["settingTools"],window._kiwi_exports.libs.settingTools=t.default?t.default:t},9465:function(e,t,n){"use strict";n.r(t);var i=n("5928"),s=n.n(i);for(var r in i)"default"!==r&&function(e){n.d(t,e,(function(){return i[e]}))}(r);t["default"]=s.a},"94ff":function(e,t,n){},"968d":function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return s}));var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"u-transition-expand"},on:{enter:e.enter,"after-enter":e.afterEnter,leave:e.leave}},[e.$slots.default?n("div",[e._t("default")],2):e._e()])},s=[]},"96a1":function(e,t,n){"use strict";n.r(t);var i=n("2c17"),s=n.n(i);for(var r in i)"default"!==r&&function(e){n.d(t,e,(function(){return i[e]}))}(r);t["default"]=s.a},9736:function(e,t,n){},"98fc":function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return s}));var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"u-tabbed-view"},[n("div",{key:e.prefixID+e.a,staticClass:"u-tabbed-view-tabs"},e._l(e.tabs,(function(t){return n("a",{key:t.name||t.header,class:{"u-tabbed-view-tab":!0,"u-tabbed-view-tab--active":t.active},on:{click:function(n){return e.setActive(t)}}},[e._v(e._s(t.header))])})),0),e._t("default")],2)},s=[]},9965:function(e,t,n){"use strict";var i=n("9e19"),s=n("b4d1"),r=n("7c78"),a=n("1bd5");Object.defineProperty(t,"__esModule",{value:!0}),t.default=d;var o=a(n("bf2d")),c=a(n("3818")),u=f(n("862b"));function l(e){if("function"!==typeof s)return null;var t=new s,n=new s;return(l=function(e){return e?n:t})(e)}function f(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!==typeof e)return{default:e};var n=l(t);if(n&&n.has(e))return n.get(e);var s={},a=Object.defineProperty&&r;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var c=a?r(e,o):null;c&&(c.get||c.set)?Object.defineProperty(s,o,c):s[o]=e[o]}return s.default=e,n&&n.set(e,s),s}function d(){return function(t,n,i){t.requestCap("draft/chathistory"),p(t),i.use(e)};function e(e,t,n,i){if("batch end chathistory"===e.toLowerCase()&&n.chathistory){var s=t.params[0];n.chathistory.batchCallbacks.resolve(s,t)}"fail"===e.toLowerCase()&&"chathistory"===t.params[0].toLowerCase()&&"message_error"===t.params[1].toLowerCase()&&n.chathistory.batchCallbacks.resolve(t.params[3]),i()}}function p(e){var t=e.chathistory={};function n(e){return"object"===(0,o.default)(e)?"timestamp="+u.dateIso(e):"*"===e?"*":"msgid="+e}t.batchCallbacks={callbacks:Object.create(null),add:function(e,t){this.callbacks[e.toLowerCase()]=this.callbacks[e.toLowerCase()]||[],this.callbacks[e.toLowerCase()].push(t)},resolve:function(e,t){var n=this.callbacks[e.toLowerCase()]||[];delete this.callbacks[e.toLowerCase()],n.forEach((function(e){return e(t)}))},targetCallbacks:function(e){return this.callbacks[e.toLowerCase()]}},t.isSupported=function(){return!!e.network.supports("draft/chathistory")},t.before=function(i,s){return new c.default((function(r){t.isSupported()?(e.raw("CHATHISTORY","BEFORE",i,n(s),"50"),t.batchCallbacks.add(i,r)):r()}))},t.after=function(i,s){return new c.default((function(r){t.isSupported()?(e.raw("CHATHISTORY","AFTER",i,n(s),"50"),t.batchCallbacks.add(i,r)):r()}))},t.latest=function(i,s){return new c.default((function(r){t.isSupported()?(e.raw("CHATHISTORY","LATEST",i,n(s),"50"),t.batchCallbacks.add(i,r)):r()}))},t.around=function(i,s){return new c.default((function(r){t.isSupported()?(e.raw("CHATHISTORY","AROUND",i,n(s),"50"),t.batchCallbacks.add(i,r)):r()}))},t.between=function(i,s,r){return new c.default((function(a){if(t.isSupported()){var o=n(s),c=n(r);e.raw("CHATHISTORY","BETWEEN",i,o,c,50),t.batchCallbacks.add(i,a)}else a()}))}}window._kiwi_exports=window._kiwi_exports||{},window._kiwi_exports["libs"]||(window._kiwi_exports["libs"]={}),window._kiwi_exports["libs"]["ChathistoryMiddleware"],window._kiwi_exports.libs.ChathistoryMiddleware=t.default?t.default:t},"9aad":function(e,t,n){"use strict";n.r(t);var i=n("7ad6"),s=n("8c1f");for(var r in s)"default"!==r&&function(e){n.d(t,e,(function(){return s[e]}))}(r);n("8761");var a=n("0c7c"),o=Object(a["a"])(s["default"],i["a"],i["b"],!1,null,null,null);t["default"]=o.exports},"9c24":function(e,t,n){"use strict";n.r(t);var i=n("13d0"),s=n("3804");for(var r in s)"default"!==r&&function(e){n.d(t,e,(function(){return s[e]}))}(r);n("281c");var a=n("0c7c"),o=Object(a["a"])(s["default"],i["a"],i["b"],!1,null,null,null);t["default"]=o.exports},"9f32":function(e,t,n){"use strict";n.r(t);var i=n("88a2"),s=n.n(i);for(var r in i)"default"!==r&&function(e){n.d(t,e,(function(){return i[e]}))}(r);t["default"]=s.a},a1a6:function(e,t,n){"use strict";n.r(t);var i=n("8d02"),s=n("78e0");for(var r in s)"default"!==r&&function(e){n.d(t,e,(function(){return s[e]}))}(r);n("ad02");var a=n("0c7c"),o=Object(a["a"])(s["default"],i["a"],i["b"],!1,null,null,null);t["default"]=o.exports},a306:function(e,t,n){},a636:function(e,t,n){"use strict";var i=n("9e19"),s=n("b4d1"),r=n("7c78"),a=n("1bd5");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n("ff4d");var o=a(n("be30"));n("9736");var c=a(n("b7c6")),u=a(n("78fd")),l=a(n("3f9b")),f=a(n("b347")),d=a(n("c96d")),p=a(n("fa38")),h=a(n("62c30")),w=a(n("7a9c")),m=a(n("185a")),v=a(n("5135")),g=a(n("3b2f")),_=n("5ea5"),k=$(n("02fe")),b=$(n("8f39")),y=a(n("189e")),C=a(n("0470"));function x(e){if("function"!==typeof s)return null;var t=new s,n=new s;return(x=function(e){return e?n:t})(e)}function $(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!==typeof e)return{default:e};var n=x(t);if(n&&n.has(e))return n.get(e);var s={},a=Object.defineProperty&&r;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var c=a?r(e,o):null;c&&(c.get||c.set)?Object.defineProperty(s,o,c):s[o]=e[o]}return s.default=e,n&&n.set(e,s),s}var S=C.default.namespace("App.vue"),O={components:{StateBrowser:h.default,Container:m.default,ControlInput:v.default,MediaViewer:g.default},data:function(){return{startupComponent:null,hasStarted:!1,stateBrowserDrawOpen:!1,activeComponent:null,activeComponentProps:{},fallbackComponent:null,fallbackComponentProps:{},mediaviewerOpen:!1,mediaviewerUrl:"",mediaviewerComponent:null,mediaviewerComponentProps:{},mediaviewerIframe:!1,themeUrl:"",sidebarState:new _.State}},computed:{networks:function(){return this.$state.networks},network:function(){return this.$state.getActiveNetwork()},buffer:function(){return this.$state.getActiveBuffer()}},created:function(){var e=this;this.listenForActiveComponents(),this.watchForThemes(),this.initStateBrowser(),this.initMediaviewer(),this.configureFavicon(),this.listen(document,"keydown",(function(t){return e.onKeyDown(t)})),this.listen(window,"focus",(function(t){return e.onFocus(t)})),this.listen(window,"blur",(function(t){return e.onBlur(t)})),this.listen(window,"touchstart",(function(t){return e.onTouchStart(t)}))},mounted:function(){var e={welcome:u.default,customServer:f.default,kiwiBnc:d.default,znc:l.default,personal:p.default},t=this.$state.getStartups(),n=this.$state.settings.startupScreen||"personal",i=t[n]||e[n];i?this.startupComponent=i:C.default.error('Startup screen "'.concat(n,'" does not exist')),this.trackWindowDimensions()},methods:{startUp:function(e){var t=this;if(S("startUp()"),e&&e.fallbackComponent&&(this.fallbackComponent=e.fallbackComponent),e&&e.fallbackComponentProps&&(this.fallbackComponentProps=e.fallbackComponentProps),!this.hasStarted){this.warnOnPageClose();var n=function e(){t.$state.$off("document.clicked",e),t.$state.$off("input.raw",e),k.listenForNewMessages(t.$state)};this.$state.$once("document.clicked",n),this.$state.$once("input.raw",n)}this.hasStarted=!0},listenForActiveComponents:function(){var e=this;this.listen(this.$state,"active.component",(function(t,n){e.activeComponent=null,t&&(e.activeComponentProps=n,e.activeComponent=t)})),this.listen(this.$state,"active.component.toggle",(function(t,n){t===e.activeComponent?e.activeComponent=null:t&&(e.activeComponentProps=n,e.activeComponent=t)}))},watchForThemes:function(){var e=this,t=y.default.instance();this.themeUrl=y.default.themeUrl(t.currentTheme()),this.$nextTick((function(){return(0,o.default)()})),this.listen(this.$state,"theme.change",(function(){e.themeUrl=y.default.themeUrl(t.currentTheme()),e.$nextTick((function(){return(0,o.default)()}))}))},initStateBrowser:function(){var e=this;this.listen(this.$state,"statebrowser.toggle",(function(){e.stateBrowserDrawOpen=!e.stateBrowserDrawOpen})),this.listen(this.$state,"statebrowser.show",(function(){e.stateBrowserDrawOpen=!0})),this.listen(this.$state,"statebrowser.hide",(function(){e.stateBrowserDrawOpen=!1}))},initMediaviewer:function(){var e=this;this.listen(this.$state,"mediaviewer.show",(function(t){var n={};n="string"===typeof t?{url:t}:t,e.mediaviewerUrl=n.url,e.mediaviewerComponent=n.component,e.mediaviewerComponentProps=n.componentProps,e.mediaviewerIframe=n.iframe,e.mediaviewerOpen=!0})),this.listen(this.$state,"mediaviewer.hide",(function(){e.mediaviewerOpen=!1}))},configureFavicon:function(){var e=this;c.default.setOptions({width:7,height:9,color:"#ffffff",background:"#b32d2d",fallback:!0}),this.$state.$watch("ui.favicon_counter",(function(e){e?c.default.setBubble(e):c.default.reset()})),this.listen(this.$state,"message.new",(function(t){var n=t.message;!n.isHighlight||n.ignore||e.$state.ui.app_has_focus||e.$state.ui.favicon_counter++}))},trackWindowDimensions:function(){var e=this,t=function(){e.$state.ui.app_width=e.$el.clientWidth,e.$state.ui.app_height=e.$el.clientHeight,e.$state.ui.is_narrow=e.$el.clientWidth<=769};this.listen(window,"resize",t),t()},warnOnPageClose:function(){var e=this;window.onbeforeunload=function(){if(e.$state.setting("warnOnExit"))return e.$t("window_unload")},window.onunload=function(){e.$state.networks.forEach((function(t){t.connection.direct&&"connected"===t.state&&t.ircClient.raw("QUIT",e.$state.setting("quitMessage")||"Client Closed Connection")}))}},emitBufferPaste:function(e){this.$state.getActiveBuffer()&&null===this.activeComponent&&(e.target instanceof HTMLInputElement||e.target instanceof HTMLSelectElement||e.target instanceof HTMLTextAreaElement||this.$state.$emit("buffer.paste",e))},emitDocumentClick:function(e){this.$state.$emit("document.clicked",e)},onTouchStart:function(e){this.$state.ui.is_touch=!0},onBlur:function(e){this.$state.ui.app_has_focus=!1},onFocus:function(e){this.$state.ui.app_has_focus=!0;var t=this.$state.getActiveBuffer();t&&t.markAsRead(!0),this.$state.ui.favicon_counter=0},onKeyDown:function(e){this.$state.$emit("document.keydown",e);var t=!1;if(t=-1!==navigator.appVersion.indexOf("Mac")?e.metaKey:e.ctrlKey&&!e.altKey,t&&221===e.keyCode){var n=b.getNextBuffer();n&&this.$state.setActiveBuffer(n.networkid,n.name),e.preventDefault()}else if(t&&219===e.keyCode){var i=b.getPreviousBuffer();i&&this.$state.setActiveBuffer(i.networkid,i.name),e.preventDefault()}else if(t&&79===e.keyCode)this.$state.$emit("active.component.toggle",w.default),e.preventDefault();else if(t&&83===e.keyCode){var s=this.$state.getActiveNetwork();s&&s.showServerBuffer("settings"),e.preventDefault()}}}};t.default=O,window._kiwi_exports=window._kiwi_exports||{},window._kiwi_exports["components"]||(window._kiwi_exports["components"]={}),window._kiwi_exports["components"]["App"],window._kiwi_exports.components.App=t.default?t.default:t},a667:function(e,t,n){"use strict";n.r(t);var i=n("f0ef"),s=n("07be");for(var r in s)"default"!==r&&function(e){n.d(t,e,(function(){return s[e]}))}(r);n("364e");var a=n("0c7c"),o=Object(a["a"])(s["default"],i["a"],i["b"],!1,null,null,null);t["default"]=o.exports},a6fc:function(e,t,n){"use strict";var i=n("9e19"),s=n("b4d1"),r=n("7c78"),a=n("1bd5");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=a(n("44a4")),c=a(n("a3e3")),u=g(n("104d")),l=g(n("5a16")),f=g(n("7277")),d=a(n("385f")),p=a(n("9332")),h=a(n("e54d")),w=a(n("df3a")),m=a(n("462f"));function v(e){if("function"!==typeof s)return null;var t=new s,n=new s;return(v=function(e){return e?n:t})(e)}function g(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!==typeof e)return{default:e};var n=v(t);if(n&&n.has(e))return n.get(e);var s={},a=Object.defineProperty&&r;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var c=a?r(e,o):null;c&&(c.get||c.set)?Object.defineProperty(s,o,c):s[o]=e[o]}return s.default=e,n&&n.set(e,s),s}var _={components:{Avatar:w.default,AwayStatusIndicator:m.default},props:["buffer","network","user"],data:function(){return{self:this,whoisRequested:!1,whoisLoading:!1,pluginUiButtonElements:d.default.singleton().userboxButtonPlugins}},computed:{availableChannelModes:function(){var e=[],t=this.network.ircClient.network.options.PREFIX,n={q:"Owner",a:"Admin",o:"Operator",h:"Half-Operator",v:"Voice"};return t.forEach((function(t){var i=t.mode;n[i]&&e.push({mode:i,description:n[i]})})),e},areWeAnOp:function(){return!!this.buffer&&this.buffer.isUserAnOp(this.buffer.getNetwork().nick)},realname:function(){var e;return(0,o.default)(e=this.user.realname||"").call(e)},formattedRealname:function(){var e=(0,h.default)(this.realname,{extras:!1}),t=(0,p.default)(e,!1);return t},isUserOnBuffer:function(){return!!this.buffer&&!!this.user.buffers[this.buffer.id]},userMode:{get:function(){if(!this.buffer)return"";var e=this.user.buffers[this.buffer.id];if(!e)return"";var t=e.modes;return t.length>0?t[0]:""},set:function(e){var t,n=this.network.ircClient,i=this.userMode,s=[],r=[];i&&(s.push("-"+i),r.push(this.user.nick)),e&&(s.push("+"+e),r.push(this.user.nick));var a=(0,c.default)(t=["MODE",this.buffer.name,s.join("")]).call(t,r);n.raw(a)}},userChannels:function(){for(var e,t=(0,o.default)(e=this.user.channels).call(e).split(" "),n=0;n0?n[0]:""},openQuery:function(){var e=this.$state.addBuffer(this.network.id,this.user.nick);this.$state.setActiveBuffer(this.network.id,e.name),this.$state.ui.is_narrow&&this.$state.$emit("userbox.hide")},onChannelsClick:function(e){var t=e.target.getAttribute("data-channel-name");if(t){var n=this.buffer.getNetwork();this.$state.addBuffer(this.buffer.networkid,t),n.ircClient.join(t)}},updateWhoisData:function(){var e=this;this.whoisRequested=!0,this.whoisLoading=!0,this.network.ircClient.whois(this.user.nick,(function(){e.whoisLoading=!1}))},kickUser:function(){var e=this.$state.setting("buffers.default_kick_reason");this.network.ircClient.raw("KICK",this.buffer.name,this.user.nick,e)},createBanMask:function(){if(this.user.account){var e=f.extbanAccount(this.network);if(e)return e+":"+this.user.account;if(this.user.host.toLowerCase().indexOf(this.user.account.toLowerCase())>-1)return"*!*@"+this.user.host}var t=new RegExp("("+u.v4().source+"|"+u.v6().source+")");if(t.test(this.user.host)){var n=this.user.host.match(t)[0];if(n!==this.user.host)return"*!*@*"+n+"*"}var i=/^([a-f0-9]{8})$/i;if(i.test(this.user.username)){var s=this.user.username.match(i)[0];return"*!"+s+"@*"}var r=this.$state.setting("buffers.default_ban_mask");return r=r.replace("%n",this.user.nick),r=r.replace("%i",this.user.username),r=r.replace("%h",this.user.host),r},banUser:function(){if(this.user.username&&this.user.host){var e=this.createBanMask();this.network.ircClient.raw("MODE",this.buffer.name,"+b",e)}},kickbanUser:function(){if(this.user.username&&this.user.host){var e=this.createBanMask(),t=this.$state.setting("buffers.default_kick_reason");this.network.ircClient.raw("MODE",this.buffer.name,"+b",e),this.network.ircClient.raw("KICK",this.buffer.name,this.user.nick,t)}}}};t.default=_,window._kiwi_exports=window._kiwi_exports||{},window._kiwi_exports["components"]||(window._kiwi_exports["components"]={}),window._kiwi_exports["components"]["UserBox"],window._kiwi_exports.components.UserBox=t.default?t.default:t},a8fe:function(e,t,n){"use strict";n("f408")},aaf1:function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return s}));var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"kiwi-mediaviewer"},[n("div",{staticClass:"kiwi-mediaviewer-controls"},[e.showPin?n("a",{staticClass:"u-button u-link kiwi-mediaviewer-controls-pin",on:{click:function(t){return e.$emit("pin")}}},[n("i",{staticClass:"fa fa-map-pin",attrs:{"aria-hidden":"true"}})]):e._e(),n("a",{staticClass:"u-button u-button-warning kiwi-mediaviewer-controls-close",on:{click:function(t){return e.$emit("close")}}},[n("i",{staticClass:"fa fa-window-close",attrs:{"aria-hidden":"true"}})])]),n("div",{staticClass:"kiwi-mediaviewer-content"},[e.isIframe?n("iframe",{staticClass:"kiwi-mediaviewer-iframe",attrs:{src:e.url,sandbox:e.iframeSandboxOptions}}):e.component?n(e.component,{tag:"component",attrs:{"component-props":e.componentProps}}):n("url-embed",{attrs:{url:e.url,"show-pin":e.showPin,"iframe-sandbox-options":e.iframeSandboxOptions},on:{close:function(t){return e.$emit("close")},setHeight:e.setHeight,setMaxHeight:e.setMaxHeight}})],1)])},s=[]},abdc:function(e,t,n){"use strict";n("ed03")},ac2f:function(e,t,n){"use strict";n.r(t);var i=n("c2ba"),s=n("f21d");for(var r in s)"default"!==r&&function(e){n.d(t,e,(function(){return s[e]}))}(r);n("a8fe");var a=n("0c7c"),o=Object(a["a"])(s["default"],i["a"],i["b"],!1,null,null,null);t["default"]=o.exports},ad02:function(e,t,n){"use strict";n("4232")},ae10:function(e,t,n){},ae96:function(e,t,n){"use strict";n.r(t);var i=n("48d1"),s=n.n(i);for(var r in i)"default"!==r&&function(e){n.d(t,e,(function(){return i[e]}))}(r);t["default"]=s.a},b119:function(e,t,n){"use strict";n("baf6")},b222:function(e,t,n){"use strict";var i=n("9e19"),s=n("b4d1"),r=n("7c78"),a=n("1bd5");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=a(n("e4f0")),c=a(n("fc56")),u=a(n("14b1")),l=a(n("493c")),f=a(n("a3e3")),d=a(n("2ef0")),p=w(n("7277"));function h(e){if("function"!==typeof s)return null;var t=new s,n=new s;return(h=function(e){return e?n:t})(e)}function w(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!==typeof e)return{default:e};var n=h(t);if(n&&n.has(e))return n.get(e);var s={},a=Object.defineProperty&&r;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var c=a?r(e,o):null;c&&(c.get||c.set)?Object.defineProperty(s,o,c):s[o]=e[o]}return s.default=e,n&&n.set(e,s),s}function m(e,t){var n=e.invited.toUpperCase(),i=t.invited.toUpperCase();return ni?1:0}var v={props:["buffer"],data:function(){return{inviteList:[],is_refreshing:!1}},computed:{supportsAccounts:function(){return!!this.extban},extban:function(){return p.extbanAccount(this.buffer.getNetwork())},inviteListAccounts:function(){var e,t=this,n=(0,o.default)(e=this.inviteList).call(e,(function(e){return 0===e.invited.indexOf(t.extban)}));return n.sort(m),n},inviteListNonAccounts:function(){var e,t=this,n=[];this.supportsAccounts?n=(0,o.default)(e=this.inviteList).call(e,(function(e){return 0!==e.invited.indexOf(t.extban)})):n=this.inviteList;return n.sort(m),n},channelIsInviteOnly:function(){return"undefined"!==typeof this.buffer.modes.i},anyRegisteredUserCanJoin:function(){var e;if(!this.supportsAccounts)return!1;if(!this.channelIsInviteOnly)return!1;var t=this.extban;return!!(0,c.default)(e=this.inviteListAccounts).call(e,(function(e){return e.invited===t+":"}))},areWeAnOp:function(){return this.buffer.isUserAnOp(this.buffer.getNetwork().nick)},knownAccounts:function(){var e,t=this.buffer.getNetwork().users,n=this.extban,i=(0,u.default)(e=this.inviteListAccounts).call(e,(function(e){var t=e.invited;return t.replace(n+":","")})),s=[];return(0,l.default)(t).forEach((function(e){e.account&&-1===i.indexOf(e.account)&&s.push(e)})),d.default.orderBy(s,["account","nick"])}},created:function(){this.updateInvitelist()},methods:{displayMask:function(e){var t=e.invited.replace(this.extban+":","");return t=t||this.$t("invite_any_registered"),t},updateInvitelist:function(){var e=this;if("connected"===this.buffer.getNetwork().state&&!this.is_refreshing){var t=this.buffer.name;this.is_refreshing=!0,this.buffer.getNetwork().ircClient.inviteList(t,(function(t){e.inviteList=t?t.invites:[],e.is_refreshing=!1}))}},removeInvite:function(e){var t,n=this.buffer.name;this.buffer.getNetwork().ircClient.removeInvite(n,e),this.inviteList=(0,o.default)(t=this.inviteList).call(t,(function(t){return t.invited!==e}))},addAccountInvite:function(e){var t;if(e){var n=this.buffer.getNetwork();n.ircClient.addInvite(this.buffer.name,(0,f.default)(t="".concat(this.extban,":")).call(t,e)),this.updateInvitelist()}},addInvite:function(e){var t=this.buffer.getNetwork();t.ircClient.addInvite(this.buffer.name,e),this.updateInvitelist()},setInviteOnly:function(){this.buffer.getNetwork().ircClient.mode(this.buffer.name,"+i")},removeInviteOnly:function(){this.buffer.getNetwork().ircClient.mode(this.buffer.name,"-i")}}};t.default=v},b27f:function(e,t,n){"use strict";var i=n("9e19"),s=n("b4d1"),r=n("7c78"),a=n("1bd5");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=a(n("9f12")),c=a(n("53fe")),u=a(n("5ee5")),l=p(n("5a16")),f=n("bb3c");function d(e){if("function"!==typeof s)return null;var t=new s,n=new s;return(d=function(e){return e?n:t})(e)}function p(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!==typeof e)return{default:e};var n=d(t);if(n&&n.has(e))return n.get(e);var s={},a=Object.defineProperty&&r;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var c=a?r(e,o):null;c&&(c.get||c.set)?Object.defineProperty(s,o,c):s[o]=e[o]}return s.default=e,n&&n.set(e,s),s}var h=function(){function e(t){(0,o.default)(this,e),this.key=t.nick.toUpperCase(),this.nick=t.nick,this.host=t.host||"",this.username=t.username||"",this.realname=t.realname||"",this.modes=t.modes||"",this.away=t.away||"",this.colour=t.colour||"",this.account=t.account||"",this.buffers=Object.create(null),this.hasWhois=!1,this.typingState=Object.create(null),this.avatar=t.avatar||{small:"",large:""},this.ignore=!1,u.default.observable(this),(0,f.def)(this,"actual_host","",!0),(0,f.def)(this,"helpop","",!0),(0,f.def)(this,"bot","",!0),(0,f.def)(this,"server","",!0),(0,f.def)(this,"server_info","",!0),(0,f.def)(this,"operator","",!0),(0,f.def)(this,"channels","",!0),(0,f.def)(this,"modes","",!0),(0,f.def)(this,"idle","",!0),(0,f.def)(this,"logon","",!0),(0,f.def)(this,"registered_nick","",!0),(0,f.def)(this,"secure","",!0),(0,f.def)(this,"special","",!0)}return(0,c.default)(e,[{key:"getColour",value:function(){return this.colour||(this.colour=l.createNickColour(this.nick)),"default"===this.colour?"":this.colour}},{key:"isAway",value:function(){return!!this.away}},{key:"typingStatus",value:function(e,t){var n=this,i=e.toUpperCase();if(!t)return this.typingState[i]||{status:""};var s=this.typingState[i];if(s||(u.default.set(this.typingState,i,{started:0,status:""}),s=this.typingState[i]),s.timeout&&(clearTimeout(s.timeout),s.timeout=null),"done"===t)return u.default.delete(this.typingState,i),null;s.started=Date.now(),s.status=t;var r="paused"===t?3e4:6e3;return s.timeout=setTimeout((function(){return n.typingStatus(i,"done")}),r),s}}]),e}();t.default=h},b347:function(e,t,n){"use strict";n.r(t);var i=n("4b63"),s=n("0789");for(var r in s)"default"!==r&&function(e){n.d(t,e,(function(){return s[e]}))}(r);n("59eb");var a=n("0c7c"),o=Object(a["a"])(s["default"],i["a"],i["b"],!1,null,null,null);t["default"]=o.exports},b361:function(e,t,n){"use strict";n.r(t);var i=n("4496"),s=n.n(i);for(var r in i)"default"!==r&&function(e){n.d(t,e,(function(){return i[e]}))}(r);t["default"]=s.a},b388:function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return s}));var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"kiwi-startup-common",class:[e.closing?"kiwi-startup-common--closing":"",e.backgroundImage?"":"kiwi-startup-common--no-bg"],style:e.backgroundStyle},[n("div",{staticClass:"kiwi-startup-common-section kiwi-startup-common-section-connection"},[e._t("connection")],2),n("div",{staticClass:"kiwi-startup-common-section kiwi-startup-common-section-info",style:e.backgroundStyle},[e.infoContent?n("div",{staticClass:"kiwi-startup-common-section-info-content",domProps:{innerHTML:e._s(e.infoContent)}}):e._e()])])},s=[]},b39c:function(e,t,n){},b3ed:function(e,t,n){"use strict";n.r(t);var i=n("be4e"),s=n("f803");for(var r in s)"default"!==r&&function(e){n.d(t,e,(function(){return s[e]}))}(r);n("17f1");var a=n("0c7c"),o=Object(a["a"])(s["default"],i["a"],i["b"],!1,null,null,null);t["default"]=o.exports},b4d3:function(e,t,n){},b4e6:function(e,t,n){"use strict";n("2a2d")},b4ef:function(e,t,n){"use strict";var i=n("1bd5");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=i(n("6b47")),r=i(n("a3e3")),a=i(n("fc56")),o=i(n("e4f0")),c=i(n("fa81")),u=i(n("89ba")),l=i(n("e587")),f=i(n("9f12")),d=i(n("53fe")),p=i(n("2ef0")),h=i(n("0470")),w=i(n("23ce")),m=h.default.namespace("BouncerProvider.js"),v=function(){function e(t){(0,f.default)(this,e),this.state=t,this.controllerNetwork=null,this.bnc={enabled:!1,username:"",password:"",server:"",port:6667,tls:!1,direct:!1,path:"",registered:!1},this.rewriteConnections=!0,this.networksSnapshot=Object.create(null),this.monitoringChanges=!1,t.$on("irc.motd",this.onNetworkMotd.bind(this)),t.$on("irc.bouncer state",this.onNetworkState.bind(this)),t.$on("irc.bouncer networks",this.onBouncerNetworks.bind(this))}return(0,d.default)(e,[{key:"enable",value:function(e,t,n,i,s){var o,c,u;m((0,r.default)(o="Using a Bouncer Provider with server ".concat(e,":")).call(o,t)),this.bnc.server=e,this.bnc.port=t||6667,this.bnc.tls=!!n,this.bnc.direct=!!i,this.bnc.path=s||"",this.bnc.enabled=!0;var f=(0,a.default)(c=this.state.networks).call(c,(function(e){return e.is_bnc}));if(null!==f&&void 0!==f&&null!==(u=f.connection)&&void 0!==u&&u.password){var d=this.parseBncCredentials(f.connection.password),p=(0,l.default)(d,2),h=p[0],v=p[1];this.bnc.username=h,this.bnc.password=v}this.state.networks.forEach((function(e){e.ircClient.use((0,w.default)())})),this.listenToState()}},{key:"getController",value:function(){if(this.controllerNetwork&&"connected"===this.controllerNetwork.state)return this.controllerNetwork;this.controllerNetwork=null;for(var e=0;e ")).call(i,e.network)),t.name=e.network);var s=a.state.addBuffer(t.id,e.name);s?(e.joined?(s.enabled=!0,s.joined=!0):(s.enabled=!1,s.joined=!1),e.seen&&(s.last_read=new Date(e.seen).getTime()),e.notify&&s.setting("alert_on",e.notify),s.topic=e.topic||"","connected"===t.state&&s.isChannel()&&s.joined&&(n.raw("NAMES "+s.name),n.who(s.name))):m.error("Couldn't add BNC buffer, '".concat(e.name,"'"),e)})),t.buffers.forEach((function(e){if(e.isChannel()||e.isQuery()){var t=(0,o.default)(i).call(i,(function(t){return t.name.toLowerCase()===e.name.toLowerCase()}));0===t.length&&a.state.removeBuffer(e)}}));case 7:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"addNetworkToState",value:function(){var e=(0,u.default)(s.default.mark((function e(t){var n;return s.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=this.state.getNetworkFromBncNetId(t.networkId),n?(n.name=t.name,n.connection.server=t.host,n.connection.port=parseInt(t.port,10),n.connection.tls=t.tls,n.connection.nick=t.account||t.nick,n.connection.password=t.password||"",n.nick=t.currentNick||t.nick||"",n.password=t.account_password):n=this.state.addNetwork(t.name,t.nick||"",{server:t.host,port:t.port,tls:t.tls,password:t.password||"",bncnetid:t.networkId,username:t.user,account_password:t.account_password}),n.editable_name=!0,e.abrupt("return",n);case 4:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"snapshotCurrentNetworks",value:function(){var e=this;this.networksSnapshot=Object.create(null),this.state.networks.forEach((function(t){t.connection.bncnetid&&(e.networksSnapshot[t.connection.bncnetid]={bncnetid:t.connection.bncnetid,network:t.name,host:t.connection.server,port:t.connection.port,tls:t.connection.tls,account:t.connection.nick,account_password:t.password,server_password:t.connection.password,nick:t.connection.nick,username:t.username})}))}},{key:"saveState",value:function(){var e=this,t=this.getController();t?(this.state.networks.forEach((function(n){if((e.getController()!==n||n.ircClient.bnc.hasNetwork())&&!n.hidden)if(n.name.match(/^[a-zA-Z_0-9.]+$/)){var i=n.connection.bncnetid,s=e.networksSnapshot[i]||{},r={};n.name!==s.network&&(r.network=n.name),n.connection.server!==s.host&&(r.host=n.connection.server),n.connection.port!==s.port&&(r.port=n.connection.port),n.connection.tls!==s.tls&&(r.tls=n.connection.tls),n.password!==s.account_password&&(r.account_password=n.password),n.connection.nick!==s.account&&(r.account=n.connection.nick),n.connection.password!==s.server_password&&(r.password=n.connection.password),n.connection.nick!==s.nick&&(r.nick=n.connection.nick),n.username!==s.username&&(r.user=n.username),!s.bncnetid&&r.host&&r.port&&r.nick?(m("Saving new network ".concat(n.name," to the BNC")),t.ircClient.bnc.addNetwork(n.name,r.host,r.port,r.tls,r.nick,r.user,r.password).then((function(e){n.connection.bncnetid=e.networkId,n.name=e.network}))):s.bncnetid&&(0,c.default)(r).length>0&&(m("Updating network ".concat(n.name," on the BNC")),t.ircClient.bnc.saveNetwork(i,r))}else m.debug("Network ".concat(n.id," has an invalid name. Not saving to the BNC"))})),this.snapshotCurrentNetworks()):m.debug("No controller available to save networks")}},{key:"monitorNetworkChanges",value:function(){if(!this.monitoringChanges){this.monitoringChanges=!0,this.snapshotCurrentNetworks();var e=p.default.debounce(this.saveState.bind(this),2e3);this.state.$watch("networks",e,{deep:!0})}}},{key:"listenToState",value:function(){var e=this,t=this.state;t.$on("network.connecting",(function(t){var n=t.network;if(e.bnc.enabled&&e.rewriteConnections){var i=n.name,s=n.ircClient;if(s.options.host=e.bnc.server,s.options.port=e.bnc.port,s.options.tls=e.bnc.tls,e.bnc.password&&!t.network.is_bnc){var a,o,c=(0,r.default)(a=(0,r.default)(o="".concat(e.bnc.username,"/")).call(o,i,":")).call(a,e.bnc.password);s.options.password=c}s.options.account={},n.connection.direct=e.bnc.direct,s.options.path=e.bnc.path}})),t.$on("network.connecting",(function(t){var n=e.getController();if(n){e.saveState();var i=t.network;i.connection.bncnetid&&n.ircClient.raw("BOUNCER connect "+i.connection.bncnetid)}else m.debug("No controller available to save network states")})),t.$on("irc.motd",(function(e,t){t.buffers.forEach((function(e){e.isChannel()&&e.enabled&&e.joined&&t.ircClient.who(e.name)}))})),t.$on("network.new",(function(e){var n=e.network;if(n.ircClient.use((0,w.default)()),n.editable_name=!0,!n.connection.bncnetid){var i,s=!0,r=1;while(s){if(i=n.name&&1===r?n.name:(n.name||"Network")+r,s=(0,a.default)(p.default).call(p.default,t.networks,{name:i}),!s||s===n){n.name=i;break}r++}}})),t.$on("network.removed",(function(t){var n=e.getController();n?t.network.connection.bncnetid&&n.ircClient.bnc.removeNetwork(t.network.connection.bncnetid):m.debug("No controller available to save network states")})),t.$on("buffer.close",(function(t){var n=t.buffer,i=t.buffer.getNetwork(),s=i.connection.bncnetid,r=e.getController();r?s&&r.ircClient.bnc.closeBuffer(s,n.name):m.debug("No controller available to save buffer states")}))}},{key:"parseBncCredentials",value:function(e){var t=e.split(":"),n=(0,l.default)(t,2),i=n[0],s=n[1];return i=i.split("/")[0],[i,s]}}]),e}();t.default=v,window._kiwi_exports=window._kiwi_exports||{},window._kiwi_exports["libs"]||(window._kiwi_exports["libs"]={}),window._kiwi_exports["libs"]["BouncerProvider"],window._kiwi_exports.libs.BouncerProvider=t.default?t.default:t},b4f0:function(e,t,n){"use strict";n.r(t);var i=n("5a9e"),s=n("fedd");for(var r in s)"default"!==r&&function(e){n.d(t,e,(function(){return s[e]}))}(r);n("eeb2");var a=n("0c7c"),o=Object(a["a"])(s["default"],i["a"],i["b"],!1,null,null,null);t["default"]=o.exports},b62a:function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return s}));var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"kiwi-channellist",class:{"kiwi-channellist-padding-top":!e.list.length}},[n("div",{staticClass:"kiwi-channellist-content-container"},[n("div",{staticClass:"kiwi-channellist-nav"},[n("form",{staticClass:"u-form u-form--big kiwi-channellist-search",on:{submit:function(e){e.preventDefault()}}},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.search,expression:"search"}],staticClass:"u-input",attrs:{placeholder:e.$t("do_search")},domProps:{value:e.search},on:{input:function(t){t.target.composing||(e.search=t.target.value)}}}),n("a",{staticClass:"u-button kiwi-channellist-refresh",class:{"u-button-primary":!e.isLoading,"u-button-secondary":e.isLoading},on:{click:e.maybeUpdateList}},[e.isLoading?n("i",{staticClass:"fa fa-refresh fa-spin",attrs:{"aria-hidden":"true"}}):n("i",{staticClass:"fa fa-refresh",attrs:{"aria-hidden":"true"}})])]),e.list.length?n("div",{staticClass:"kiwi-channellist-pagination"},[n("a",{on:{click:e.prevPage}},[n("i",{staticClass:"fa fa-step-backward",attrs:{"aria-hidden":"true"}})]),e._v(" "+e._s(e.page+1)+" / "+e._s(e.maxPages+1)+" "),n("a",{on:{click:e.nextPage}},[n("i",{staticClass:"fa fa-step-forward",attrs:{"aria-hidden":"true"}})])]):e._e()]),e.isLoading||e.noResults?e.noResults?n("div",{staticClass:"kiwi-channellist-info"},[n("p",[e._v(e._s(e.$t("channel_list_nonefound")))])]):n("div",{staticClass:"kiwi-channellist-info"},[e._v(e._s(e.$t("channel_list_fetch")))]):n("div",{staticClass:"kiwi-channellist-table"},e._l(e.paginated,(function(t){return n("div",{key:t.channel,staticClass:"kiwi-channellist-grid"},[n("div",{staticClass:"kiwi-channellist-users"},[e._v(e._s(t.num_users||0))]),n("div",{staticClass:"u-link kiwi-channellist-name",on:{click:function(n){return e.joinChannel(t.channel)}}},[e._v(e._s(t.channel))]),n("span",{staticClass:"kiwi-channellist-topic",domProps:{innerHTML:e._s(e.formatAndTrimTopic(t.topic))}}),n("div",{staticClass:"kiwi-channellist-join"},[n("a",{staticClass:"u-button u-button-primary",on:{click:function(n){return e.joinChannel(t.channel)}}},[e._v(e._s(e.$t("container_join")))])])])})),0),n("div",{staticClass:"kiwi-channellist-nav"},[e.list.length?n("div",{staticClass:"kiwi-channellist-pagination"},[n("a",{on:{click:e.prevPage}},[n("i",{staticClass:"fa fa-step-backward",attrs:{"aria-hidden":"true"}})]),e._v(" "+e._s(e.page+1)+" / "+e._s(e.maxPages+1)+" "),n("a",{on:{click:e.nextPage}},[n("i",{staticClass:"fa fa-step-forward",attrs:{"aria-hidden":"true"}})])]):e._e()])])])},s=[]},b6b1:function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return s}));var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"kiwi-inputtool-colours"},[n("div",{staticClass:"kiwi-inputtool-colours-palette",on:{mousedown:function(e){e.preventDefault()},click:function(e){e.preventDefault()}}},[n("div",{staticClass:"kiwi-inputtools-colours-colour irc-bg-colour-white",attrs:{"data-code":"00"},on:{click:e.onColourClick}}),n("div",{staticClass:"kiwi-inputtools-colours-colour irc-bg-colour-black",attrs:{"data-code":"01"},on:{click:e.onColourClick}}),n("div",{staticClass:"kiwi-inputtools-colours-colour irc-bg-colour-blue",attrs:{"data-code":"02"},on:{click:e.onColourClick}}),n("div",{staticClass:"kiwi-inputtools-colours-colour irc-bg-colour-green",attrs:{"data-code":"03"},on:{click:e.onColourClick}}),n("div",{staticClass:"kiwi-inputtools-colours-colour irc-bg-colour-light-red",attrs:{"data-code":"04"},on:{click:e.onColourClick}}),n("div",{staticClass:"kiwi-inputtools-colours-colour irc-bg-colour-brown",attrs:{"data-code":"05"},on:{click:e.onColourClick}}),n("div",{staticClass:"kiwi-inputtools-colours-colour irc-bg-colour-purple",attrs:{"data-code":"06"},on:{click:e.onColourClick}}),n("div",{staticClass:"kiwi-inputtools-colours-colour irc-bg-colour-orange",attrs:{"data-code":"07"},on:{click:e.onColourClick}}),n("div",{staticClass:"kiwi-inputtools-colours-colour irc-bg-colour-yellow",attrs:{"data-code":"08"},on:{click:e.onColourClick}}),n("div",{staticClass:"kiwi-inputtools-colours-colour irc-bg-colour-light-green",attrs:{"data-code":"09"},on:{click:e.onColourClick}}),n("div",{staticClass:"kiwi-inputtools-colours-colour irc-bg-colour-cyan",attrs:{"data-code":"10"},on:{click:e.onColourClick}}),n("div",{staticClass:"kiwi-inputtools-colours-colour irc-bg-colour-light-cyan",attrs:{"data-code":"11"},on:{click:e.onColourClick}}),n("div",{staticClass:"kiwi-inputtools-colours-colour irc-bg-colour-light-blue",attrs:{"data-code":"12"},on:{click:e.onColourClick}}),n("div",{staticClass:"kiwi-inputtools-colours-colour irc-bg-colour-pink",attrs:{"data-code":"13"},on:{click:e.onColourClick}}),n("div",{staticClass:"kiwi-inputtools-colours-colour irc-bg-colour-grey",attrs:{"data-code":"14"},on:{click:e.onColourClick}}),n("div",{staticClass:"kiwi-inputtools-colours-colour irc-bg-colour-light-grey",attrs:{"data-code":"15"},on:{click:e.onColourClick}}),n("div",{staticClass:"kiwi-inputtools-colours-colour kiwi-inputtools-colours-reset",on:{click:e.onResetClick}},[n("i",{staticClass:"fa fa-ban",attrs:{"aria-hidden":"true"}})])])])},s=[]},b73b:function(e,t,n){"use strict";var i=n("1bd5");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=i(n("14b1")),r=i(n("e4f0")),a=i(n("44a4")),o=i(n("9f12")),c=i(n("53fe")),u=i(n("5ee5")),l=i(n("e54d")),f=i(n("9332")),d=i(n("385f")),p=i(n("f72e")),h=0;function w(e,t,n){Object.defineProperty(e,t,{writable:!0,value:n})}var m=function(){function e(t,n){(0,o.default)(this,e),w(this,"instance_num",h++),w(this,"id",v(t)||h++),w(this,"time",t.time||Date.now()),w(this,"server_time",t.server_time||this.time),w(this,"nick",t.nick),w(this,"message",t.message),w(this,"tags",t.tags),w(this,"type",t.type||"message"),w(this,"type_extra",t.type_extra),w(this,"ignore",!1),w(this,"mentioned_urls",[]),this.embed={type:"url",payload:null},this.html="",this.blocks=[],w(this,"hasRendered",!1),w(this,"template",t.template||null),w(this,"bodyTemplate",t.bodyTemplate||null),w(this,"isHighlight",!1),Object.defineProperty(this,"user",{value:n}),u.default.observable(this)}return(0,c.default)(e,[{key:"render",value:function(){return d.default.singleton().emit("message.render",{message:this}),this}},{key:"toHtml",value:function(e){if(this.hasRendered)return this.html;this.hasRendered=!0;var t=(0,p.default)(),n=t.setting("buffers.show_emoticons")&&!e.buffer.isSpecial();this.toBlocks(e.buffer,e.useExtraFormatting),t.$emit("message.prestyle",{message:this,blocks:this.blocks});var i=(0,f.default)(this.blocks,n);return this.html=i,t.$emit("message.poststyle",{message:this,blocks:this.blocks}),this.html}},{key:"toBlocks",value:function(e,t){var n,i=(0,p.default)(),a=e.users,o=(0,l.default)(this.message,{extras:!e.isSpecial()&&t&&"privmsg"===this.type},a);return this.mentioned_urls=(0,s.default)(n=(0,r.default)(o).call(o,(function(e){return"url"===e.type}))).call(n,(function(e){return e.meta.url})),this.maybeAutoEmbed(),i.$emit("message.blocks",{message:this,blocks:o}),this.blocks=o,o}},{key:"maybeAutoEmbed",value:function(){var e;if(this.mentioned_urls&&0!==this.mentioned_urls.length&&"privmsg"===this.type){var t=this.mentioned_urls[0],n=(0,p.default)().setting("buffers.inline_link_auto_preview_whitelist");n=(0,a.default)(e=n||"").call(e);try{if(!n||!new RegExp(n,"i").test(t))return}catch(i){return}this.embed.payload=t,this.embed.type="url"}}},{key:"serialise",value:function(){return{id:this.id,time:this.time,server_time:this.server_time,nick:this.nick,message:this.message,tags:this.tags,type:this.type,type_extra:this.type_extra}}}]),e}();function v(e){if(e.tags)return e.tags.msgid||e.tags["draft/msgid"]||void 0}t.default=m,window._kiwi_exports=window._kiwi_exports||{},window._kiwi_exports["libs"]||(window._kiwi_exports["libs"]={}),window._kiwi_exports["libs"]["Message"],window._kiwi_exports.libs.Message=t.default?t.default:t},b96b:function(e,t,n){"use strict";n("5a50")},baf0:function(e,t,n){"use strict";n.r(t);var i=n("9337"),s=n("c028");for(var r in s)"default"!==r&&function(e){n.d(t,e,(function(){return s[e]}))}(r);n("27c1");var a=n("0c7c"),o=Object(a["a"])(s["default"],i["a"],i["b"],!0,null,"09207a86",null);t["default"]=o.exports},baf6:function(e,t,n){},bb17:function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return s}));var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"kiwi-statebrowser-usermenu",class:[e.is_usermenu_open?"kiwi-statebrowser-usermenu--open":""]},[n("div",{staticClass:"kiwi-statebrowser-usermenu-avatar",class:[e.isConnected?"kiwi-statebrowser-usermenu-avatar--connected":"kiwi-statebrowser-usermenu-avatar--disconnected"],on:{click:function(t){e.is_usermenu_open=!e.is_usermenu_open}}},[e.getUser?n("avatar",{attrs:{user:e.getUser,size:"large"}}):e._e(),e.network&&"connected"===e.network.state?n("away-status-indicator",{attrs:{network:e.network,user:e.getUser,toggle:!1}}):e._e()],1),e.is_usermenu_open?n("div",{staticClass:"kiwi-statebrowser-usermenu-body"},[n("p",[e._v(" "+e._s(e.$t("state_remembered"))+" ")]),n("a",{staticClass:"u-link",on:{click:e.clickForget}},[e._v(e._s(e.$t("state_forget")))]),n("div",{staticClass:"kiwi-statebrowser-usermenu-close",on:{click:function(t){e.is_usermenu_open=!1}}},[n("i",{staticClass:"fa fa-times",attrs:{"aria-hidden":"true"}})])]):n("div",{staticClass:"kiwi-statebrowser-usermenu-network"},[e._v(" "+e._s(e.networkName)+" ")])])},s=[]},bb33:function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return s}));var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"kiwi-channelinfo"},[n("form",{staticClass:"u-form kiwi-channelinfo-basicmodes",on:{submit:function(e){e.preventDefault()}}},[n("label",{staticClass:"kiwi-channelinfo-topic"},[n("span",[e._v(e._s(e.$t("channel_topic")))]),n("textarea",{directives:[{name:"model",rawName:"v-model.lazy",value:e.topic,expression:"topic",modifiers:{lazy:!0}}],attrs:{rows:"2"},domProps:{value:e.topic},on:{change:function(t){e.topic=t.target.value}}})]),e.buffer.topics.length>1?n("div",{staticClass:"kiwi-channelinfo-previoustopics"},[n("a",{staticClass:"u-link",on:{click:function(t){e.showPrevTopics=!e.showPrevTopics}}},[e._v(" Previous topics "),n("i",{class:"fa fa-caret-"+(e.showPrevTopics?"up":"down")})]),e.showPrevTopics?n("ul",e._l(e.prevTopics,(function(t,i){return n("li",{key:i},[n("span",[e._v(e._s(t.trim()))])])})),0):e._e()]):e._e(),n("label",{staticClass:"u-checkbox-wrapper"},[n("span",[e._v(e._s(e.$t("channel_moderated")))]),n("input",{directives:[{name:"model",rawName:"v-model",value:e.modeM,expression:"modeM"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.modeM)?e._i(e.modeM,null)>-1:e.modeM},on:{change:function(t){var n=e.modeM,i=t.target,s=!!i.checked;if(Array.isArray(n)){var r=null,a=e._i(n,r);i.checked?a<0&&(e.modeM=n.concat([r])):a>-1&&(e.modeM=n.slice(0,a).concat(n.slice(a+1)))}else e.modeM=s}}})]),n("label",{staticClass:"u-checkbox-wrapper"},[n("span",[e._v(e._s(e.$t("channel_invite")))]),n("input",{directives:[{name:"model",rawName:"v-model",value:e.modeI,expression:"modeI"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.modeI)?e._i(e.modeI,null)>-1:e.modeI},on:{change:function(t){var n=e.modeI,i=t.target,s=!!i.checked;if(Array.isArray(n)){var r=null,a=e._i(n,r);i.checked?a<0&&(e.modeI=n.concat([r])):a>-1&&(e.modeI=n.slice(0,a).concat(n.slice(a+1)))}else e.modeI=s}}})]),n("label",{staticClass:"u-checkbox-wrapper"},[n("span",[e._v(e._s(e.$t("channel_secret")))]),n("input",{directives:[{name:"model",rawName:"v-model",value:e.modeS,expression:"modeS"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.modeS)?e._i(e.modeS,null)>-1:e.modeS},on:{change:function(t){var n=e.modeS,i=t.target,s=!!i.checked;if(Array.isArray(n)){var r=null,a=e._i(n,r);i.checked?a<0&&(e.modeS=n.concat([r])):a>-1&&(e.modeS=n.slice(0,a).concat(n.slice(a+1)))}else e.modeS=s}}})]),n("label",{staticClass:"u-checkbox-wrapper"},[n("span",[e._v(e._s(e.$t("channel_moderated_topic")))]),n("input",{directives:[{name:"model",rawName:"v-model",value:e.modeT,expression:"modeT"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.modeT)?e._i(e.modeT,null)>-1:e.modeT},on:{change:function(t){var n=e.modeT,i=t.target,s=!!i.checked;if(Array.isArray(n)){var r=null,a=e._i(n,r);i.checked?a<0&&(e.modeT=n.concat([r])):a>-1&&(e.modeT=n.slice(0,a).concat(n.slice(a+1)))}else e.modeT=s}}})]),n("label",{staticClass:"u-checkbox-wrapper"},[n("span",[e._v(e._s(e.$t("channel_external")))]),n("input",{directives:[{name:"model",rawName:"v-model",value:e.modeN,expression:"modeN"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.modeN)?e._i(e.modeN,null)>-1:e.modeN},on:{change:function(t){var n=e.modeN,i=t.target,s=!!i.checked;if(Array.isArray(n)){var r=null,a=e._i(n,r);i.checked?a<0&&(e.modeN=n.concat([r])):a>-1&&(e.modeN=n.slice(0,a).concat(n.slice(a+1)))}else e.modeN=s}}})]),n("label",[n("span",[e._v(e._s(e.$t("password")))]),n("input",{directives:[{name:"model",rawName:"v-model.lazy",value:e.modeK,expression:"modeK",modifiers:{lazy:!0}}],staticClass:"u-input",attrs:{type:"text"},domProps:{value:e.modeK},on:{change:function(t){e.modeK=t.target.value}}})])])])},s=[]},bb3c:function(e,t,n){"use strict";function i(e,t,n,i){var s=n,r={get:function(){return s}};i&&(r.set=function(e){var t=s;s=e,"function"===typeof i&&i(e,t)}),Object.defineProperty(e,t,r),"function"===typeof i&&i(s)}Object.defineProperty(t,"__esModule",{value:!0}),t.def=i},bbd94:function(e,t,n){"use strict";n.r(t);var i=n("6c7c"),s=n("ff31");for(var r in s)"default"!==r&&function(e){n.d(t,e,(function(){return s[e]}))}(r);n("ccf5");var a=n("0c7c"),o=Object(a["a"])(s["default"],i["a"],i["b"],!1,null,null,null);t["default"]=o.exports},bd77:function(e,t,n){"use strict";n("4642")},bdce:function(e,t,n){"use strict";var i=n("1bd5");Object.defineProperty(t,"__esModule",{value:!0}),t.SoundBleep=void 0;var s=i(n("9f12")),r=i(n("53fe")),a=function(){function e(){(0,s.default)(this,e),this.audio=document.createElement("audio");var t=document.createElement("source");this.audio.canPlayType("audio/mpeg;")?(t.type="audio/mpeg",t.src="static/highlight.mp3"):(t.type="audio/ogg",t.src="static/highlight.ogg"),this.audio.appendChild(t)}return(0,r.default)(e,[{key:"play",value:function(){this.audio.play()}}]),e}();t.SoundBleep=a},be22:function(e,t,n){},be4e:function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return s}));var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"kiwi-invitelist"},[n("form",{staticClass:"u-form kiwi-invitelist",on:{submit:function(e){e.preventDefault()}}},[n("a",{staticClass:"u-link",on:{click:e.updateInvitelist}},[e._v(e._s(e.$t("invites_refresh")))]),e.channelIsInviteOnly?n("div",{staticClass:"kiwi-invitelist-inviteonly-status"},[e._v(" "+e._s(e.$t("invite_private_channel"))+" "),e.areWeAnOp?n("a",{staticClass:"u-link",on:{click:e.removeInviteOnly}},[e._v(e._s(e.$t("invite_set_public")))]):e._e()]):n("div",{staticClass:"kiwi-invitelist-inviteonly-status"},[e._v(" "+e._s(e.$t("invite_public_channel"))+" "),e.areWeAnOp?n("a",{staticClass:"u-link",on:{click:e.setInviteOnly}},[e._v(e._s(e.$t("invite_set_private")))]):e._e()]),e.anyRegisteredUserCanJoin?n("span",[e._v(e._s(e.$t("invite_registered_only")))]):e._e(),n("div",[e.supportsAccounts&&e.areWeAnOp?n("div",[e.knownAccounts.length>0?[n("select",{ref:"addInviteList"},e._l(e.knownAccounts,(function(t){return n("option",{key:t.key,domProps:{value:t.account}},[e._v(e._s(t.account))])})),0),n("button",{attrs:{type:"button"},on:{click:function(t){return e.addAccountInvite(e.$refs.addInviteList.value)}}},[e._v(" "+e._s(e.$t("invite_add_invite"))+" ")])]:e._e()],2):e._e(),!e.supportsAccounts&&e.areWeAnOp?n("div",{staticClass:"kiwi-invitelist-addmask"},[n("input",{ref:"addInviteText",staticClass:"u-input",attrs:{type:"text"}}),n("button",{attrs:{type:"button"},on:{click:function(t){return e.addInvite(e.$refs.addInviteText.value)}}},[e._v(" "+e._s(e.$t("invite_add_invite"))+" ")])]):e._e(),e.inviteList.length>0?n("table",{staticClass:"kiwi-invitelist-table"},[n("tr",[n("th",[e._v(e._s(e.$t("invites_user")))]),n("th",[e._v(e._s(e.$t("invites_by")))]),n("th"),n("th")]),e._l(e.inviteListAccounts,(function(t){return n("tr",{key:t.invited},[n("td",{staticClass:"kiwi-invitelist-table-mask"},[e._v(" "+e._s(e.displayMask(t))+" ")]),n("td",{staticClass:"kiwi-invitelist-table-invitedby"},[e._v(" "+e._s(t.invited_by)+" ")]),n("td",{staticClass:"kiwi-invitelist-table-invitedat"},[e._v(" "+e._s(new Date(1e3*t.invited_at).toDateString())+" ")]),n("td",{staticClass:"kiwi-invitelist-table-actions"},[e.areWeAnOp?n("i",{staticClass:"fa fa-trash",attrs:{"aria-hidden":"true"},on:{click:function(n){return e.removeInvite(t.invited)}}}):e._e()])])})),e._l(e.inviteListNonAccounts,(function(t){return n("tr",{key:t.invited},[n("td",{staticClass:"kiwi-invitelist-table-mask"},[e._v(" "+e._s(e.displayMask(t))+" ")]),n("td",{staticClass:"kiwi-invitelist-table-invitedby"},[e._v(" "+e._s(t.invited_by)+" ")]),n("td",{staticClass:"kiwi-invitelist-table-invitedat"},[e._v(" "+e._s(new Date(1e3*t.invited_at).toDateString())+" ")]),n("td",{staticClass:"kiwi-invitelist-table-actions"},[e.areWeAnOp?n("i",{staticClass:"fa fa-trash",attrs:{"aria-hidden":"true"},on:{click:function(n){return e.removeInvite(t.invited)}}}):e._e()])])}))],2):e._e()]),e.is_refreshing?n("div",[e._v(" "+e._s(e.$t("invites_refreshing"))+" ")]):e._e()])])},s=[]},be97:function(e,t,n){"use strict";var i=n("1bd5");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=i(n("df3a")),r={c:{Avatar:s.default},props:["message","user"]};t.default=r,window._kiwi_exports=window._kiwi_exports||{},window._kiwi_exports["components"]||(window._kiwi_exports["components"]={}),window._kiwi_exports["components"]["MessageListAvatar"],window._kiwi_exports.components.MessageListAvatar=t.default?t.default:t},c00a:function(e,t,n){"use strict";n("551f")},c028:function(e,t,n){"use strict";n.r(t);var i=n("e29d"),s=n.n(i);for(var r in i)"default"!==r&&function(e){n.d(t,e,(function(){return i[e]}))}(r);t["default"]=s.a},c0be:function(e,t,n){},c111:function(e,t,n){"use strict";n.r(t);var i=n("88e4"),s=n("8e04");for(var r in s)"default"!==r&&function(e){n.d(t,e,(function(){return s[e]}))}(r);n("f6d9");var a=n("0c7c"),o=Object(a["a"])(s["default"],i["a"],i["b"],!1,null,null,null);t["default"]=o.exports},c1ce:function(e,t,n){},c207:function(e,t,n){},c2a9:function(e,t,n){"use strict";n.r(t);var i=n("34a6"),s=n.n(i);for(var r in i)"default"!==r&&function(e){n.d(t,e,(function(){return i[e]}))}(r);t["default"]=s.a},c2ba:function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return s}));var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"kiwi-settings-aliases"},[n("form",{staticClass:"u-form"},[n("a",{staticClass:"u-link kiwi-settings-aliases-showhelp",on:{click:function(t){e.show_help=!e.show_help}}},[e._v(" "+e._s(e.$t("what_are_aliases"))+" ")]),e.show_help?n("div",{staticClass:"kiwi-settings-aliases-help"},[n("p",[e._v("Aliases let you rename existing IRC commands or even build entirely new ones.")]),e._m(0),n("h4",[e._v("Variables")]),e._m(1),e._m(2),n("h4",[e._v("Helper commands")]),e._m(3)]):e._e(),n("textarea",{directives:[{name:"model",rawName:"v-model",value:e.aliasText,expression:"aliasText"}],staticClass:"kiwi-settings-aliases-input",domProps:{value:e.aliasText},on:{input:function(t){t.target.composing||(e.aliasText=t.target.value)}}})])])},s=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("p",[e._v(" They must be one per line and in the form of "),n("em",[e._v("/name /what it should do")]),e._v(". ")])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("p",[e._v(" There are several variables that may be used to refer to the current environment such as the active channel or active nick. "),n("ul",[n("li",[n("em",[e._v("$server")]),e._v(" The current network name")]),n("li",[n("em",[e._v("$channel / $destination")]),e._v(" The current channel / buffer name")]),n("li",[n("em",[e._v("$nick")]),e._v(" The current nick")])])])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("p",[e._v(" You can also use variables to read input from the typed command. "),n("br"),n("ul",[n("li",[n("em",[e._v("$0")]),e._v(" The command name")]),n("li",[n("em",[e._v("$1")]),e._v(" The first argument from the typed input")]),n("li",[n("em",[e._v("$2")]),e._v(" The second argument from the typed input")]),n("li",[n("em",[e._v("$1+")]),e._v(" From the first argument to the last argument")])]),n("b",[e._v("Example 1:")]),e._v(" "),n("em",[e._v("/greet /msg $1 Hello, $1!")]),n("br"),e._v(' This creates an IRC command /greet that accepts one argument. Typing "/greet username" will execute "/msg username Hello, username!". '),n("br"),n("b",[e._v("Example 2:")]),e._v(" "),n("em",[e._v("/ban /quote mode $channel +b $1+")]),n("br"),e._v(' This creates an IRC command /ban that does a few things. Typing "/ban nick1 nick2" will execute "/quote mode #activechannel +b nick1 nick2". $channel is replaced with the active channel name, $1+ is replaced with all the typed input from the first word to the end. ')])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("p",[n("ul",[n("li",[n("em",[e._v("/echo")]),n("br"),e._v("Sends a message to the active buffer without sending it to the IRC network. Eg, /echo Something happened ")]),n("li",[n("em",[e._v("/lines")]),n("br"),e._v(' Similar to Mirc script, this lets you execute multiples lines of commands separated by a pipe, "|".'),n("br"),e._v(' Example: "/lines /ban nick1 | /echo Banned user" would first execute the /ban command, and then the /echo command. This comes in handy with creating short aliases such as the common "/cycle" command that parts and re-joins the active channel: "/cycle /lines /part $channel | /join $channel". ')])])])}]},c35b:function(e,t,n){"use strict";var i=n("9e19"),s=n("b4d1"),r=n("7c78"),a=n("1bd5");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=a(n("2ef0")),c=l(n("862b"));function u(e){if("function"!==typeof s)return null;var t=new s,n=new s;return(u=function(e){return e?n:t})(e)}function l(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!==typeof e)return{default:e};var n=u(t);if(n&&n.has(e))return n.get(e);var s={},a=Object.defineProperty&&r;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var c=a?r(e,o):null;c&&(c.get||c.set)?Object.defineProperty(s,o,c):s[o]=e[o]}return s.default=e,n&&n.set(e,s),s}var f={props:["ircinput"],computed:{emojis:function(){var e={},t=this.$state.setting("emojis");return o.default.each(t,(function(t,n){t&&(e[t]=n)})),e},location:function(){return this.$state.setting("emojiLocation")}},methods:{onImgClick:function(e){var t=window.getComputedStyle(e.target,null).getPropertyValue("background-image");t=c.extractURL(t);var n=e.target.dataset.code;this.ircinput.addImg(n,t)}}};t.default=f,window._kiwi_exports=window._kiwi_exports||{},window._kiwi_exports["components"]||(window._kiwi_exports["components"]={}),window._kiwi_exports["components"]["inputtools"]||(window._kiwi_exports["components"]["inputtools"]={}),window._kiwi_exports["components"]["inputtools"]["Emoji"],window._kiwi_exports.components.inputtools.Emoji=t.default?t.default:t},c35c:function(e,t,n){"use strict";n.r(t);var i=n("428c"),s=n("ae96");for(var r in s)"default"!==r&&function(e){n.d(t,e,(function(){return s[e]}))}(r);n("563e");var a=n("0c7c"),o=Object(a["a"])(s["default"],i["a"],i["b"],!1,null,null,null);t["default"]=o.exports},c425:function(e,t,n){},c495:function(e,t,n){"use strict";var i=n("9e19"),s=n("b4d1"),r=n("7c78"),a=n("1bd5");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=a(n("9a73")),c=a(n("44a4")),u=a(n("3393")),l=a(n("14b1")),f=a(n("8fa2")),d=a(n("a3e3")),p=a(n("fa81")),h=a(n("2ef0")),w=S(n("5a16")),m=S(n("934b")),v=a(n("6150")),g=a(n("385f")),_=a(n("474e")),k=a(n("5bc7")),b=a(n("c111")),y=a(n("1bb3")),C=a(n("462f")),x=a(n("28e2"));function $(e){if("function"!==typeof s)return null;var t=new s,n=new s;return($=function(e){return e?n:t})(e)}function S(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!==typeof e)return{default:e};var n=$(t);if(n&&n.has(e))return n.get(e);var s={},a=Object.defineProperty&&r;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var c=a?r(e,o):null;c&&(c.get||c.set)?Object.defineProperty(s,o,c):s[o]=e[o]}return s.default=e,n&&n.set(e,s),s}var O={components:{AutoComplete:_.default,AwayStatusIndicator:C.default,SelfUser:y.default,TypingUsersList:x.default},props:["container","buffer"],data:function(){return{self:this,selfuser_open:!1,autocomplete_open:!1,autocomplete_items:[],autocomplete_filter:"",autocomplete_filtering:!0,active_tool:null,active_tool_props:{},pluginUiElements:g.default.singleton().controlInputPlugins,showPlugins:!1,current_input_value:"",has_focus:!1,keep_focus:!1}},computed:{currentNick:function(){var e=this.$state.getActiveNetwork();return e?e.nick:""},networkState:function(){var e=this.$state.getActiveNetwork();return e?e.state:""},shouldShowSendButton:function(){return this.$state.ui.is_touch||this.$state.setting("showSendButton")},shouldShowEmojiPicker:function(){return this.$state.setting("showEmojiPicker")&&!this.$state.ui.is_touch},shouldShowColorPicker:function(){return this.$state.setting("showColorPicker")},shouldShowTools:function(){return!!(this.pluginUiElements.length||this.shouldShowEmojiPicker||this.shouldShowColorPicker)},shouldShowToolsInline:function(){var e=this.pluginUiElements.length;return this.shouldShowEmojiPicker&&e++,this.shouldShowColorPicker&&e++,1===e||36*e-1||t.target.getAttribute("contenteditable");s||e.$refs.input.focus()}}})),this.listen(this.$state,"input.insertnick",(function(t){if(e.$refs.input){var n=t;""===e.current_input_value?n+=": ":n+=" ",e.$refs.input.insertText(n)}})),this.listen(this.$state,"input.tool",(function(t){e.toggleInputTool(t)}))},mounted:function(){this.inputRestore()},methods:{inputUpdate:function(e){this.current_input_value=e,this.$state.setting("buffers.shared_input")?this.$state.ui.current_input=e:this.buffer.current_input=e,this.maybeHidePlugins()},inputRestore:function(){var e=this.$state.setting("buffers.shared_input")?this.$state.ui.current_input:this.buffer.current_input;this.$refs.input.reset(e,this.keep_focus),this.$refs.input.selectionToEnd()},toggleSelfUser:function(){"connected"===this.networkState&&(this.selfuser_open=!this.selfuser_open)},maybeHidePlugins:function(){this.$state.ui.app_width<500&&(this.showPlugins=!1)},onToolClickTextStyle:function(){this.toggleInputTool(k.default)},onToolClickEmoji:function(){this.toggleInputTool(b.default)},closeToolsPlugins:function(){this.showPlugins=!1,this.closeInputTool()},closeInputTool:function(){this.active_tool=null},toggleInputTool:function(e){e&&this.active_tool!==e?(this.active_tool_props={buffer:this.buffer,ircinput:this.$refs.input},this.active_tool=e):this.active_tool=null},toggleBold:function(){this.$refs.input.toggleBold()},toggleItalic:function(){this.$refs.input.toggleItalic()},toggleUnderline:function(){this.$refs.input.toggleUnderline()},onAutocompleteCancel:function(){this.autocomplete_open=!1},onAutocompleteTemp:function(e,t){this.autocomplete_filtering||this.$refs.input.setCurrentWord(e)},onAutocompleteSelected:function(e,t){var n=e;n.length>0&&this.$refs.input.setCurrentWord(n),this.autocomplete_open=!1},inputKeyDown:function(e){var t=this,n=!1;if(n=-1!==navigator.appVersion.indexOf("Mac")?e.metaKey:e.ctrlKey,!this.autocomplete_open||!this.$refs.autocomplete.handleOnKeyDown(e))if(this.autocomplete_open&&!this.autocomplete_filtering&&this.$refs.autocomplete.selectCurrentItem(),13!==e.keyCode||(!e.altKey||e.shiftKey||e.metaKey||e.ctrlKey)&&(!e.shiftKey||e.altKey||e.metaKey||e.ctrlKey))if(13===e.keyCode)e.preventDefault(),this.submitForm();else if(32===e.keyCode){if(this.$state.setting("buffers.show_emoticons")){var i=this.$refs.input.getCurrentWord(),s=this.$state.setting("emojis");if(s.hasOwnProperty(i.word)){var r=s[i.word],a=this.$state.setting("emojiLocation")+r;this.$refs.input.setCurrentWord(""),this.$refs.input.addImg(i.word+" ",a)}}}else if(38===e.keyCode){if(this.$refs.input.getCaretIdx()>0)return;e.preventDefault(),this.historyBack()}else if(40===e.keyCode){var o=this.$refs.input.getRawText().replace(/\r?\n/g,"").length;if(this.$refs.input.getCaretIdx()0&&this.history_pos--},historyForward:function(){this.history_pos-1})):this.network.buffers,p.orderBuffers(t)},filteredBuffersByType:function(){var e={other:[],channels:[],queries:[]};return this.filteredBuffers.forEach((function(t){t.isChannel()?e.channels.push(t):t.isQuery()?e.queries.push(t):e.other.push(t)})),(0,l.default)(e).forEach((function(t){var n=(0,o.default)(t,2),i=n[0],s=n[1];"channels"===i||s.length||delete e[i]})),e},channelActivity:function(){return this.activityFromBuffers(this.filteredBuffersByType.channels)},queryActivity:function(){return this.activityFromBuffers(this.filteredBuffersByType.queries)},showBufferGroups:function(){return this.$state.setting("buffers.show_buffer_groups")},showPromptClose:function(){return this.activePrompt&&"queries"===this.activePrompt.type&&this.activePrompt.value===this.network}},methods:{activityFromBuffers:function(e){var t=0,n=!1;return e.forEach((function(e){e.isSpecial()||e.setting("hide_message_counts")||(t+=(0,c.default)(e).unread,!n&&(0,c.default)(e).highlight&&(n=!0))})),{highlights:n,unread:t}},onNewChannelInputFocus:function(){this.channel_add_input||(this.channel_add_input="#"),this.channel_add_input_has_focus=!0},onNewChannelInputBlur:function(){"#"===this.channel_add_input&&(this.channel_add_input=""),this.channel_add_input||(this.channel_add_display=!1),this.channel_add_input_has_focus=!1},submitNewChannelForm:function(){var e=this,t=this.channel_add_input;this.channel_add_input="#";var n=this.network,i=d.extractBuffers(t),s=!1;i.forEach((function(t){var i=t.name,r=["#0","0","&0"];if(!(r.indexOf(i)>-1||""===i.replace(/[#&]/g,""))){var a=e.$state.addBuffer(n.id,i);a&&!s&&(e.$state.setActiveBuffer(n.id,a.name),s=!0),t.key&&(a.key=t.key),n.isChannelName(i)&&n.ircClient.join(i,t.key)}}))},onChannelFilterInputBlur:function(){var e=this;setTimeout((function(){e.closeFilterChannel()}),200)},showMessageCounts:function(e){return!e.setting("hide_message_counts")},setActiveBuffer:function(e){this.$state.$emit("active.component",null),this.$state.setActiveBuffer(e.networkid,e.name),this.$state.ui.is_narrow&&this.$state.$emit("statebrowser.hide")},showNetworkSettings:function(e){e.showServerBuffer("settings")},showNetworkChannels:function(e){e.showServerBuffer("channels")},onSearchChannelClick:function(){this.network.buffers.length>1?this.toggleFilterChannel():this.network.showServerBuffer("channels")},toggleAddChannel:function(){this.channel_add_display=!this.channel_add_display,this.channel_filter_display=!1},toggleFilterChannel:function(){this.channel_filter_display=!this.channel_filter_display,this.channel_add_display=!1},toggleSection:function(e){"channels"===e?this.show_channels=!this.show_channels:"queries"===e&&(this.show_queries=!this.show_queries)},promptClose:function(){var e=this.activePrompt;this.showPromptClose?(e.type=void 0,e.value=void 0):(e.type="queries",e.value=this.network)},closeQueries:function(e){var t=this;e.forEach((function(e){t.$state.removeBuffer(e)}))},closeFilterChannel:function(){this.channel_filter="",this.channel_filter_display=!1}}};t.default=g,window._kiwi_exports=window._kiwi_exports||{},window._kiwi_exports["components"]||(window._kiwi_exports["components"]={}),window._kiwi_exports["components"]["StateBrowserNetwork"],window._kiwi_exports.components.StateBrowserNetwork=t.default?t.default:t},cc95:function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return s}));var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"kiwi-sidebar kiwi-theme-bg",class:["kiwi-sidebar-section-"+e.section]},[e.sidebarState.isOpen?e._e():n("span",{staticClass:"kiwi-sidebar-options"},[n("div",{staticClass:"kiwi-sidebar-close",on:{click:function(t){return e.sidebarState.close()}}},[e._v(" "+e._s(e.$t("close"))),n("i",{staticClass:"fa fa-times",attrs:{"aria-hidden":"true"}})])]),e.sidebarState.activeComponent?[n(e.sidebarState.activeComponent,e._b({tag:"component",attrs:{network:e.network,buffer:e.buffer,"sidebar-state":e.sidebarState}},"component",e.sidebarState.activeComponentProps,!1))]:e.buffer?[e.buffer.isChannel()?["settings"===e.section?n("div",{staticClass:"kiwi-sidebar-buffersettings",on:{click:function(e){e.stopPropagation()}}},[n("tabbed-view",[n("tabbed-tab",{attrs:{header:e.$t("settings"),focus:!0}},[n("h3",[e._v(e._s(e.$t("channel_settings")))]),n("hr"),n("channel-info",{attrs:{buffer:e.buffer}}),n("div",{staticClass:"kiwi-sidebar-settings"},[n("h3",[e._v(e._s(e.$t("side_settings")))]),n("hr"),n("form",{staticClass:"u-form"},[n("label",{staticClass:"u-checkbox-wrapper"},[n("span",[e._v(e._s(e.$t("side_joins")))]),n("input",{directives:[{name:"model",rawName:"v-model",value:e.settingShowJoinParts,expression:"settingShowJoinParts"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.settingShowJoinParts)?e._i(e.settingShowJoinParts,null)>-1:e.settingShowJoinParts},on:{change:function(t){var n=e.settingShowJoinParts,i=t.target,s=!!i.checked;if(Array.isArray(n)){var r=null,a=e._i(n,r);i.checked?a<0&&(e.settingShowJoinParts=n.concat([r])):a>-1&&(e.settingShowJoinParts=n.slice(0,a).concat(n.slice(a+1)))}else e.settingShowJoinParts=s}}})]),n("label",{staticClass:"u-checkbox-wrapper"},[n("span",[e._v(e._s(e.$t("side_topics")))]),n("input",{directives:[{name:"model",rawName:"v-model",value:e.settingShowTopics,expression:"settingShowTopics"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.settingShowTopics)?e._i(e.settingShowTopics,null)>-1:e.settingShowTopics},on:{change:function(t){var n=e.settingShowTopics,i=t.target,s=!!i.checked;if(Array.isArray(n)){var r=null,a=e._i(n,r);i.checked?a<0&&(e.settingShowTopics=n.concat([r])):a>-1&&(e.settingShowTopics=n.slice(0,a).concat(n.slice(a+1)))}else e.settingShowTopics=s}}})]),n("label",{staticClass:"u-checkbox-wrapper"},[n("span",[e._v(e._s(e.$t("side_nick_changes")))]),n("input",{directives:[{name:"model",rawName:"v-model",value:e.settingShowNickChanges,expression:"settingShowNickChanges"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.settingShowNickChanges)?e._i(e.settingShowNickChanges,null)>-1:e.settingShowNickChanges},on:{change:function(t){var n=e.settingShowNickChanges,i=t.target,s=!!i.checked;if(Array.isArray(n)){var r=null,a=e._i(n,r);i.checked?a<0&&(e.settingShowNickChanges=n.concat([r])):a>-1&&(e.settingShowNickChanges=n.slice(0,a).concat(n.slice(a+1)))}else e.settingShowNickChanges=s}}})]),n("label",{staticClass:"u-checkbox-wrapper"},[n("span",[e._v(e._s(e.$t("side_mode_changes")))]),n("input",{directives:[{name:"model",rawName:"v-model",value:e.settingShowModeChanges,expression:"settingShowModeChanges"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.settingShowModeChanges)?e._i(e.settingShowModeChanges,null)>-1:e.settingShowModeChanges},on:{change:function(t){var n=e.settingShowModeChanges,i=t.target,s=!!i.checked;if(Array.isArray(n)){var r=null,a=e._i(n,r);i.checked?a<0&&(e.settingShowModeChanges=n.concat([r])):a>-1&&(e.settingShowModeChanges=n.slice(0,a).concat(n.slice(a+1)))}else e.settingShowModeChanges=s}}})]),n("label",{staticClass:"u-checkbox-wrapper"},[n("span",[e._v(e._s(e.$t("side_formatting")))]),n("input",{directives:[{name:"model",rawName:"v-model",value:e.settingExtraFormatting,expression:"settingExtraFormatting"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.settingExtraFormatting)?e._i(e.settingExtraFormatting,null)>-1:e.settingExtraFormatting},on:{change:function(t){var n=e.settingExtraFormatting,i=t.target,s=!!i.checked;if(Array.isArray(n)){var r=null,a=e._i(n,r);i.checked?a<0&&(e.settingExtraFormatting=n.concat([r])):a>-1&&(e.settingExtraFormatting=n.slice(0,a).concat(n.slice(a+1)))}else e.settingExtraFormatting=s}}})]),n("label",{staticClass:"u-checkbox-wrapper"},[n("span",[e._v(e._s(e.$t("side_colours")))]),n("input",{directives:[{name:"model",rawName:"v-model",value:e.settingColouredNicklist,expression:"settingColouredNicklist"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.settingColouredNicklist)?e._i(e.settingColouredNicklist,null)>-1:e.settingColouredNicklist},on:{change:function(t){var n=e.settingColouredNicklist,i=t.target,s=!!i.checked;if(Array.isArray(n)){var r=null,a=e._i(n,r);i.checked?a<0&&(e.settingColouredNicklist=n.concat([r])):a>-1&&(e.settingColouredNicklist=n.slice(0,a).concat(n.slice(a+1)))}else e.settingColouredNicklist=s}}})]),n("label",{staticClass:"u-checkbox-wrapper"},[n("span",[e._v(e._s(e.$t("settings_share_typing")))]),n("input",{directives:[{name:"model",rawName:"v-model",value:e.settingShareTyping,expression:"settingShareTyping"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.settingShareTyping)?e._i(e.settingShareTyping,null)>-1:e.settingShareTyping},on:{change:function(t){var n=e.settingShareTyping,i=t.target,s=!!i.checked;if(Array.isArray(n)){var r=null,a=e._i(n,r);i.checked?a<0&&(e.settingShareTyping=n.concat([r])):a>-1&&(e.settingShareTyping=n.slice(0,a).concat(n.slice(a+1)))}else e.settingShareTyping=s}}})])])])],1),n("tabbed-tab",{attrs:{header:e.$t("access")}},[n("a",{staticClass:"u-link kiwi-sidebar-accesstab",class:{"kiwi-sidebar-accesstab--active":"banlist"===e.accessTab},on:{click:function(t){e.accessTab="banlist"}}},[e._v(" "+e._s(e.$t("banned"))+" ")]),n("a",{staticClass:"u-link kiwi-sidebar-accesstab",class:{"kiwi-sidebar-accesstab--active":"invitelist"===e.accessTab},on:{click:function(t){e.accessTab="invitelist"}}},[e._v(" "+e._s(e.$t("invited"))+" ")]),"banlist"===e.accessTab?n("channel-banlist",{attrs:{buffer:e.buffer}}):e._e(),"invitelist"===e.accessTab?n("channel-invitelist",{attrs:{buffer:e.buffer}}):e._e()],1),n("tabbed-tab",{attrs:{header:e.$t("notifications")}},[n("buffer-settings",{attrs:{buffer:e.buffer}})],1),e._l(e.pluginUiElements,(function(t){return n("tabbed-tab",{key:t.id,attrs:{header:t.title}},[n(t.component,e._b({tag:"div"},"div",t.props,!1))],1)}))],2)],1):"user"===e.section?n("div",{staticClass:"kiwi-sidebar-userbox",on:{click:function(e){e.stopPropagation()}}},[n("user-box",{attrs:{user:e.sidebarState.sidebarUser,buffer:e.buffer,network:e.network}})],1):"nicklist"===e.section?n("nicklist",{attrs:{network:e.network,buffer:e.buffer,"sidebar-state":e.sidebarState}}):"about"===e.section?n("sidebar-about-buffer",{attrs:{network:e.network,buffer:e.buffer,"sidebar-state":e.sidebarState}}):e._e()]:e.buffer.isQuery()?["user"===e.section?n("div",{staticClass:"kiwi-sidebar-userbox",on:{click:function(e){e.stopPropagation()}}},[n("user-box",{attrs:{user:e.sidebarState.sidebarUser,buffer:e.buffer,network:e.network}})],1):e._e()]:e._e()]:[e._v(" "+e._s(e.$t("side_buffer"))+" ")]],2)},s=[]},ccf5:function(e,t,n){"use strict";n("c1ce")},cd21:function(e,t,n){"use strict";n.r(t);var i=n("e1dd"),s=n.n(i);for(var r in i)"default"!==r&&function(e){n.d(t,e,(function(){return i[e]}))}(r);t["default"]=s.a},cea1:function(e,t,n){"use strict";n.r(t);var i=n("3680"),s=n.n(i);for(var r in i)"default"!==r&&function(e){n.d(t,e,(function(){return i[e]}))}(r);t["default"]=s.a},cf75:function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return s}));var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"kiwi-personal"},[n("h1",[e._v(e._s(e.$t("personal_client")))]),n("p",[e._v(e._s(e.$t("personal_addjoin")))]),n("p",[e._v(e._s(e.$t("personal_return")))]),n("button",{staticClass:"u-button u-button-primary",attrs:{type:"button"},on:{click:e.addNetwork}},[e._v(" "+e._s(e.$t("personal_add"))+" ")]),e._v(" "),n("br"),e.networks.length>0?n("a",{staticClass:"u-link kiwi-personal-existing-networks",on:{click:function(t){return t.stopPropagation(),e.toggleStateBrowser.apply(null,arguments)}}},[e._v(" "+e._s(e.$t("personal_saved"))+" ")]):e._e(),n("div",{staticClass:"kiwi-aboutnew-content",class:{"kiwi-aboutnew-content--open":e.about_open},domProps:{innerHTML:e._s(e.aboutContent)}}),n("div",{staticClass:"kiwi-aboutnew"},[n("div",{staticClass:"kiwi-aboutnew-sep"}),n("a",{staticClass:"u-link",on:{click:function(t){e.about_open=!e.about_open}}},[e._v(" Link to your network / channel ")]),n("div",{staticClass:"kiwi-aboutnew-help"},[n("a",{on:{click:function(t){e.about_open=!e.about_open}}},[n("i",{staticClass:"fa fa-question-circle",attrs:{"aria-hidden":"true"}})])])])])},s=[]},d1dd:function(e,t,n){"use strict";n.r(t);var i=n("6a00"),s=n.n(i);for(var r in i)"default"!==r&&function(e){n.d(t,e,(function(){return i[e]}))}(r);t["default"]=s.a},d26e:function(e,t,n){"use strict";var i=n("1bd5");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=i(n("385f")),r=i(n("1f5b")),a=i(n("169d")),o=i(n("480a")),c={components:{MessageList:r.default,NetworkSettings:a.default,ChannelList:o.default},props:["network"],data:function(){return{pluginUiElements:s.default.singleton().serverViewPlugins}},computed:{hasMessages:function(){return this.network.serverBuffer().getMessages().length>0},serverBuffer:function(){return this.network.serverBuffer()},restrictedServer:function(){return this.$state.setting("restricted")},networkConnected:function(){return"connected"===this.network.state}},watch:{networkConnected:function(){var e=this;this.$nextTick((function(){e.$refs.tabs.a++}))}},created:function(){var e=this;this.listen(this.$state,"server.tab.show",(function(t){e.showTab(t)}))},methods:{showTab:function(e){this.$refs.tabs.setActiveByName(e)},tabChanged:function(e){this.serverBuffer.show_input="messages"===e}}};t.default=c,window._kiwi_exports=window._kiwi_exports||{},window._kiwi_exports["components"]||(window._kiwi_exports["components"]={}),window._kiwi_exports["components"]["ServerView"],window._kiwi_exports.components.ServerView=t.default?t.default:t},d273:function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return s}));var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"kiwi-networksettings"},[n("form",{staticClass:"u-form",on:{submit:function(t){return t.preventDefault(),e.connect.apply(null,arguments)}}},[n("div",{staticClass:"kiwi-title"},[e._v(e._s(e.$t("settings_server_details")))]),n("div",{staticClass:"kiwi-networksettings-section-block"},[e.network.state_error?n("div",{staticClass:"kiwi-networksettings-error"},[e._v(" "+e._s(e.$t("network_noconnect"))+" "),n("span",[e._v(e._s(e.readableStateError(e.network.state_error)))])]):e.network.last_error?n("div",{staticClass:"kiwi-networksettings-error"},[n("span",[e._v(e._s(e.network.last_error))])]):e._e(),n("captcha",{staticClass:"kiwi-networksettings-captcha",attrs:{network:e.network}}),e.network.editable_name?n("div",{staticClass:"kiwi-networksettings-networkname"},[n("input-text",{attrs:{label:e.$t("network_name")},model:{value:e.network.name,callback:function(t){e.$set(e.network,"name",t)},expression:"network.name"}})],1):e._e(),n("server-selector",{attrs:{connection:e.network.connection,"network-list":e.network_list}}),n("div",{staticClass:"kiwi-networksettings-connection-password"},["network"===e.server_type?[n("input-text",{attrs:{label:e.$t("settings_nickname")},model:{value:e.network.connection.nick,callback:function(t){e.$set(e.network.connection,"nick",t)},expression:"network.connection.nick"}}),n("input-text",{attrs:{"show-plain-text":!0,label:e.$t("password"),type:"password"},model:{value:e.network.password,callback:function(t){e.$set(e.network,"password",t)},expression:"network.password"}})]:[n("input-text",{attrs:{label:e.$t("username")},model:{value:e.znc_username,callback:function(t){e.znc_username=t},expression:"znc_username"}}),n("input-text",{attrs:{label:e.$t("network")},model:{value:e.znc_network,callback:function(t){e.znc_network=t},expression:"znc_network"}}),n("input-text",{attrs:{label:e.$t("password"),type:"password"},model:{value:e.znc_password,callback:function(t){e.znc_password=t},expression:"znc_password"}})]],2),n("div",{staticClass:"kiwi-networksettings-server-types"},["znc"===e.server_type?n("div",{staticClass:"kiwi-networksettings-server-types-info"},[e._v(" "+e._s(e.$t("settings_znc_other"))+" ")]):e._e(),n("a",{staticClass:"u-link kiwi-network-type-button",class:{"kiwi-networksettings-server-type-active":"network"===e.server_type},on:{click:function(t){e.server_type="network"}}},[e._v(" "+e._s(e.$t("network"))+" ")]),n("a",{staticClass:"u-link kiwi-network-type-button",class:{"kiwi-networksettings-server-type-active":"znc"===e.server_type},on:{click:function(t){e.server_type="znc"}}},[e._v(" "+e._s(e.$t("znc"))+" ")])]),n("h4",{staticClass:"kiwi-show-advanced-title",on:{click:function(t){e.show_advanced=!e.show_advanced}}},[e._v(" "+e._s(e.$t("settings_advanced"))+" "),n("i",{staticClass:"fa",class:["fa-caret-"+(e.show_advanced?"up":"down")],attrs:{"aria-hidden":"true"}})]),e.show_advanced?n("div",{staticClass:"kiwi-networksettings-advanced"},[[n("input-text",{attrs:{label:e.$t("settings_encoding")},model:{value:e.network.connection.encoding,callback:function(t){e.$set(e.network.connection,"encoding",t)},expression:"network.connection.encoding"}}),n("input-text",{attrs:{"show-plain-text":!0,label:e.$t("server_password"),type:"password"},model:{value:e.network.connection.password,callback:function(t){e.$set(e.network.connection,"password",t)},expression:"network.connection.password"}}),n("input-text",{attrs:{label:e.$t("whois_realname")},model:{value:e.network.gecos,callback:function(t){e.$set(e.network,"gecos",t)},expression:"network.gecos"}}),n("label",[n("span",{staticClass:"kiwi-appsettings-showraw-label"},[e._v(" "+e._s(e.$t("settings_show_raw"))+" ")]),n("input",{directives:[{name:"model",rawName:"v-model",value:e.settingShowRaw,expression:"settingShowRaw"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.settingShowRaw)?e._i(e.settingShowRaw,null)>-1:e.settingShowRaw},on:{change:function(t){var n=e.settingShowRaw,i=t.target,s=!!i.checked;if(Array.isArray(n)){var r=null,a=e._i(n,r);i.checked?a<0&&(e.settingShowRaw=n.concat([r])):a>-1&&(e.settingShowRaw=n.slice(0,a).concat(n.slice(a+1)))}else e.settingShowRaw=s}}})]),n("label",[n("span",{staticClass:"kiwi-appsettings-showraw-label"},[e._v(" "+e._s(e.$t("settings_use_websocket"))+" ")]),n("input",{directives:[{name:"model",rawName:"v-model",value:e.network.connection.direct,expression:"network.connection.direct"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.network.connection.direct)?e._i(e.network.connection.direct,null)>-1:e.network.connection.direct},on:{change:function(t){var n=e.network.connection.direct,i=t.target,s=!!i.checked;if(Array.isArray(n)){var r=null,a=e._i(n,r);i.checked?a<0&&e.$set(e.network.connection,"direct",n.concat([r])):a>-1&&e.$set(e.network.connection,"direct",n.slice(0,a).concat(n.slice(a+1)))}else e.$set(e.network.connection,"direct",s)}}}),e.network.connection.direct?n("input-text",{model:{value:e.directWs,callback:function(t){e.directWs=t},expression:"directWs"}}):e._e()],1),n("label",{staticClass:"u-form-block"},[n("input-text",{attrs:{label:e.$t("settings_autorun"),type:"textarea"},model:{value:e.network.auto_commands,callback:function(t){e.$set(e.network,"auto_commands",t)},expression:"network.auto_commands"}})],1)]],2):e._e(),n("captcha",{staticClass:"kiwi-notconnected-captcha",attrs:{network:e.network}}),"disconnected"===e.network.state?n("button",{staticClass:"u-button kiwi-connect-to-newnetwork",attrs:{type:"button"},on:{click:function(t){return e.connect()}}},[e._v(" "+e._s(e.$t("network_connect"))+" ")]):"connecting"===e.network.state?n("button",{staticClass:"u-button kiwi-connect-to-newnetwork",attrs:{type:"button",disabled:""}},[e._v(" "+e._s(e.$t("connecting"))+" ")]):e._e()],1),n("div",{staticClass:"kiwi-dangerzone"},[n("h3",[e._v(e._s(e.$t("settings_danger")))]),n("a",{staticClass:"u-button u-button-warning",on:{click:e.removeNetwork}},[n("i",{staticClass:"fa fa-times",attrs:{"aria-hidden":"true"}}),e._v(" "+e._s(e.$t("settings_remove"))+" ")])])])])},s=[]},d369:function(e,t){var n='

Linking to your network /channel

Some quick examples on how you can link directly to your network or channels. Even better, embed them into an iframe directly on your website.

As a bonus, you can link to multiple IRC networks at the same time:

Or maybe you host a ZNC server and want to link to it:


What\'s new in Kiwi Next?

Networks and settings remembered

All your settings and networks will be remembered for when you come back. You won\'t need to be re-entering your favourite networks every time you open Kiwi anymore.

Mobile and tablet support

Now that over 50% of internet usage is now on mobile, Kiwi has complete mobile support with new layouts and messages. Everything is accessible with just your fingers.

Embedded images and videos

Opening photos and videos within Kiwi now gets pinned at the bottom of the screen. This lets you switch channels, keep talking without it going off-screen, and have that permenant youtube video playing while you\'re talking.

ZNC integration

When connecting to a ZNC server, Kiwi will now automatically detect it and look for any other networks in your ZNC account. If any are found then they are shown in a list - just one click away from connecting to it.

Aliases editor

A full alias editor to create command aliases to handle users in your channel, administrate your network or project, or even join multiple commands into a single helpful command. Created by a simple text editor that lets you copy/paste/share your aliases wherever you please.

Raw IRC power

If you\'re a power IRC user or like to get indepth, Kiwi now uses the raw IRC protocol directly in the browser. Look at the raw IRC messages going back and forth, send raw commands, or use it\'s scripting to test out new protocol ideas and experiments.

The most IRCv3 compliant open source web IRC client

IRC is being pushed forward by the IRCv3 working group which brings us new features that any IRC client can be using. Not only taking part, but Kiwi is one of the most IRCv3 complete web clients that exists.

';e.exports=n},d3e9:function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return s}));var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"kiwi-serverview"},[n("div",{staticClass:"kiwi-serverview-inner"},[n("tabbed-view",{key:e.network.id,ref:"tabs",on:{changed:e.tabChanged}},[n("tabbed-tab",{attrs:{header:e.$t("messages"),focus:e.hasMessages,name:"messages"}},[n("message-list",{attrs:{buffer:e.serverBuffer}})],1),e.restrictedServer?e._e():n("tabbed-tab",{attrs:{header:e.$t("settings"),focus:!e.hasMessages,name:"settings"}},[n("network-settings",{attrs:{network:e.network}})],1),e.networkConnected?n("tabbed-tab",{attrs:{header:e.$t("channels"),name:"channels"}},[n("channel-list",{attrs:{network:e.network}})],1):e._e(),e._l(e.pluginUiElements,(function(t){return n("tabbed-tab",{key:t.id,attrs:{header:t.title}},[n(t.component,e._b({tag:"div"},"div",t.props,!1))],1)}))],2)],1)])},s=[]},d4b7:function(e,t,n){"use strict";n("107f")},d4e2:function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return s}));var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"kiwi-controlinput kiwi-theme-bg",class:{"kiwi-controlinput--focus":e.has_focus,"kiwi-controlinput--show-send":e.shouldShowSendButton,"kiwi-controlinput--show-tools":e.shouldShowTools,"kiwi-controlinput--show-tools--inline":e.shouldShowToolsInline,"kiwi-controlinput--selfuser-open":e.selfuser_open}},[n("div",{staticClass:"kiwi-controlinput-selfuser"},[n("transition",{attrs:{name:"kiwi-selfuser-trans"}},["connected"===e.networkState&&!0===e.selfuser_open?n("self-user",{attrs:{network:e.buffer.getNetwork()},on:{close:function(t){e.selfuser_open=!1}}}):e._e()],1)],1),n("div",{staticClass:"kiwi-controlinput-inner"},[e.buffer.getNetwork()&&"connected"===e.buffer.getNetwork().state?n("away-status-indicator",{attrs:{network:e.buffer.getNetwork(),user:e.buffer.getNetwork().currentUser()}}):e._e(),e.currentNick?n("div",{staticClass:"kiwi-controlinput-user",on:{click:e.toggleSelfUser}},[n("span",{staticClass:"kiwi-controlinput-user-nick"},[e._v(e._s(e.currentNick))]),n("i",{staticClass:"fa",class:[e.selfuser_open?"fa-caret-down":"fa-caret-up"],attrs:{"aria-hidden":"true"}})]):e._e(),n("form",{staticClass:"kiwi-controlinput-form",on:{submit:function(t){return t.preventDefault(),e.submitForm.apply(null,arguments)},click:e.maybeHidePlugins}},[e.autocomplete_open?n("auto-complete",{ref:"autocomplete",attrs:{items:e.autocomplete_items,filter:e.autocomplete_filter,buffer:e.buffer},on:{temp:e.onAutocompleteTemp,selected:e.onAutocompleteSelected,cancel:e.onAutocompleteCancel}}):e._e(),e.buffer.setting("share_typing")?n("typing-users-list",{attrs:{buffer:e.buffer}}):e._e(),n("div",{staticClass:"kiwi-controlinput-input-wrap"},[n("irc-input",{ref:"input",staticClass:"kiwi-controlinput-input",attrs:{placeholder:e.$t("input_placeholder"),wrap:"off"},on:{input:e.inputUpdate,keydown:function(t){return e.inputKeyDown(t)},keyup:function(t){return e.inputKeyUp(t)},click:e.closeToolsPlugins,focus:e.focusChanged,blur:e.focusChanged}})],1),e.shouldShowSendButton?n("div",{staticClass:"kiwi-controlinput-send-container kiwi-controlinput-tools"},[n("button",{ref:"sendButton",staticClass:"kiwi-controlinput-button kiwi-controlinput-send fa fa-paper-plane",attrs:{type:"submit"}})]):e._e()],1),e.shouldShowTools?n("div",{ref:"plugins",staticClass:"kiwi-controlinput-tools kiwi-controlinput-tools-wrapper"},[e.shouldShowToolsInline?e._e():n("div",{staticClass:"kiwi-controlinput-tools-expand kiwi-controlinput-button",class:{"kiwi-controlinput-tools-expand--closed":!e.showPlugins},on:{click:function(t){e.showPlugins=!e.showPlugins}}},[n("i",{staticClass:"fa fa-bars",attrs:{"aria-hidden":"true"}})]),n("transition",{attrs:{name:"kiwi-plugin-ui-trans"}},[e.showPlugins||e.shouldShowToolsInline?n("div",{staticClass:"kiwi-controlinput-tools-container"},[e.shouldShowColorPicker?n("div",{staticClass:"kiwi-controlinput-button",on:{click:function(t){return t.preventDefault(),e.onToolClickTextStyle.apply(null,arguments)}}},[n("i",{staticClass:"fa fa-adjust",attrs:{"aria-hidden":"true"}})]):e._e(),e.shouldShowEmojiPicker?n("div",{staticClass:"kiwi-controlinput-button",on:{click:function(t){return t.preventDefault(),e.onToolClickEmoji.apply(null,arguments)}}},[n("i",{staticClass:"fa fa-smile-o",attrs:{"aria-hidden":"true"}})]):e._e(),e._l(e.pluginUiElements,(function(t){return n("div",{directives:[{name:"rawElement",rawName:"v-rawElement",value:{el:t.el,props:{kiwi:{buffer:e.buffer,controlinput:e.self}}},expression:"{\n el: plugin.el,\n props: {\n kiwi: {\n buffer: buffer,\n controlinput: self,\n }\n }\n }"}],key:t.id,staticClass:"kiwi-controlinput-button"})}))],2):e._e()])],1):e._e()],1),n("div",{staticClass:"kiwi-controlinput-active-tool"},[n(e.active_tool,e._b({tag:"component"},"component",e.active_tool_props,!1))],1)])},s=[]},d58a:function(e,t,n){"use strict";n("17d8")},d609:function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return s}));var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"kiwi-userbox"},[e.isSelf?n("span",{staticClass:"kiwi-userbox-selfprofile"},[e._v(" "+e._s(e.$t("user_you"))+" ")]):e._e(),n("div",{staticClass:"kiwi-userbox-header"},[n("div",{staticClass:"kiwi-userbox-avatar"},[n("avatar",{attrs:{user:e.user,size:"large"}}),n("away-status-indicator",{attrs:{network:e.network,user:e.user}})],1),n("div",{staticClass:"kiwi-userbox-userinfo"},[n("span",{staticClass:"kiwi-userbox-nick",style:{color:e.user.getColour()}},[e._v(e._s(e.user.nick))]),e.userMode?n("span",{staticClass:"kiwi-userbox-modestring"},[e._v("+"+e._s(e.userMode))]):e._e(),n("span",{staticClass:"kiwi-userbox-usermask"},[e._v(e._s(e.user.username)+"@"+e._s(e.user.host))])])]),e.realname?n("div",{staticClass:"kiwi-userbox-basicinfo"},[n("span",{staticClass:"kiwi-userbox-basicinfo-title"},[e._v(e._s(e.$t("whois_realname"))+":")]),n("span",{staticClass:"kiwi-userbox-basicinfo-data",domProps:{innerHTML:e._s(e.formattedRealname)}})]):e._e(),n("div",{staticClass:"kiwi-userbox-actions"},[e.isSelf||e.buffer.isQuery()?e._e():n("a",{staticClass:"kiwi-userbox-action",on:{click:e.openQuery}},[n("i",{staticClass:"fa fa-comment-o",attrs:{"aria-hidden":"true"}}),e._v(" "+e._s(e.$t("send_a_message"))+" ")]),e.whoisRequested?e._e():n("a",{staticClass:"kiwi-userbox-action",on:{click:e.updateWhoisData}},[n("i",{staticClass:"fa fa-question-circle",attrs:{"aria-hidden":"true"}}),e._v(" "+e._s(e.$t("more_information"))+" ")]),n("div",{staticClass:"kiwi-userbox-actions kiwi-userbox-plugin-actions"},e._l(e.pluginUiButtonElements,(function(t){return n("div",{directives:[{name:"rawElement",rawName:"v-rawElement",value:{el:t.el,props:{kiwi:{user:e.user,userbox:e.self}}},expression:"{\n el: plugin.el,\n props: {\n kiwi: {\n user: user,\n userbox: self,\n }\n }\n }"}],key:t.id})})),0)]),e.isSelf?e._e():n("form",{staticClass:"u-form kiwi-userbox-ignoreuser"},[n("label",[n("input",{directives:[{name:"model",rawName:"v-model",value:e.user.ignore,expression:"user.ignore"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.user.ignore)?e._i(e.user.ignore,null)>-1:e.user.ignore},on:{change:function(t){var n=e.user.ignore,i=t.target,s=!!i.checked;if(Array.isArray(n)){var r=null,a=e._i(n,r);i.checked?a<0&&e.$set(e.user,"ignore",n.concat([r])):a>-1&&e.$set(e.user,"ignore",n.slice(0,a).concat(n.slice(a+1)))}else e.$set(e.user,"ignore",s)}}}),n("span",[e._v(" "+e._s(e.$t("ignore_user"))+" ")])])]),e.whoisRequested?n("div",{staticClass:"kiwi-userbox-whois",class:[e.whoisLoading?"kiwi-userbox-whois--loading":""]},[e.whoisLoading?[n("i",{staticClass:"fa fa-spinner",attrs:{"aria-hidden":"true"}})]:[n("span",{staticClass:"kiwi-userbox-whois-line"},[e._v(" "+e._s(e.user.away?e.$t("whois_status")+": "+e.user.away:e.$t("whois_status_available"))+" ")]),e.user.account?n("span",{staticClass:"kiwi-userbox-whois-line"},[e._v(" "+e._s(e.$t("user_account",{user:e.user.account}))+" ")]):e._e(),n("span",{staticClass:"kiwi-userbox-whois-line"},[e._v(" "+e._s(e.$t("user_realname",{realname:e.user.realname}))+" ")]),e.user.bot?n("span",{staticClass:"kiwi-userbox-whois-line"},[e._v(e._s(e.$t("user_bot")))]):e._e(),e.user.helpop?n("span",{staticClass:"kiwi-userbox-whois-line"},[e._v(" "+e._s(e.$t("user_help"))+" ")]):e._e(),e.user.operator?n("span",{staticClass:"kiwi-userbox-whois-line"},[e._v(" "+e._s(e.$t("user_op"))+" ")]):e._e(),e.user.server?n("span",{staticClass:"kiwi-userbox-whois-line"},[e._v(" "+e._s(e.$t("user_server",{server:e.user.server,info:e.user.server_info?"("+e.user.server_info+")":""}))+" ")]):e._e(),e.user.secure?n("span",{staticClass:"kiwi-userbox-whois-line"},[e._v(" "+e._s(e.$t("user_secure"))+" ")]):e._e(),e.user.channels?n("span",{staticClass:"kiwi-userbox-whois-line",domProps:{innerHTML:e._s(e.$t("user_channels",{channels:e.userChannels}))},on:{click:function(t){return e.onChannelsClick(t)}}}):e._e()]],2):e._e(),e.buffer.isChannel()&&e.areWeAnOp&&!e.isSelf?n("div",{staticClass:"kiwi-userbox-opactions"},[n("form",{staticClass:"u-form",on:{submit:function(e){e.preventDefault()}}},[e.isUserOnBuffer?n("label",[e._v(" "+e._s(e.$t("user_access"))+" "),n("select",{directives:[{name:"model",rawName:"v-model",value:e.userMode,expression:"userMode"}],on:{change:function(t){var n=Array.prototype.filter.call(t.target.options,(function(e){return e.selected})).map((function(e){var t="_value"in e?e._value:e.value;return t}));e.userMode=t.target.multiple?n:n[0]}}},[e._l(e.availableChannelModes,(function(t){return n("option",{key:t.mode,domProps:{value:t.mode}},[e._v(" "+e._s(t.description)+" ")])})),n("option",{attrs:{value:""}},[e._v(e._s(e.$t("user_normal")))])],2)]):e._e(),e.isUserOnBuffer?n("label",[n("button",{staticClass:"u-button u-button-secondary\n kiwi-userbox-opaction-kick kiwi-userbox-opaction",attrs:{type:"button"},on:{click:e.kickUser}},[n("i",{staticClass:"fa fa-sign-out",attrs:{"aria-hidden":"true"}}),e._v(" "+e._s(e.$t("user_kick"))+" ")])]):e._e(),n("label",[n("button",{staticClass:"u-button u-button-secondary\n kiwi-userbox-opaction-ban kiwi-userbox-opaction",attrs:{type:"button"},on:{click:e.banUser}},[n("i",{staticClass:"fa fa-ban",attrs:{"aria-hidden":"true"}}),e._v(" "+e._s(e.$t("user_ban"))+" ")])]),e.isUserOnBuffer?n("label",[n("button",{staticClass:"u-button u-button-secondary\n kiwi-userbox-opaction-kickban kiwi-userbox-opaction",attrs:{type:"button"},on:{click:e.kickbanUser}},[n("i",{staticClass:"fa fa-exclamation-triangle",attrs:{"aria-hidden":"true"}}),e._v(" "+e._s(e.$t("user_kickban"))+" ")])]):e._e()])]):e._e()])},s=[]},d610:function(e,t,n){"use strict";n.r(t);var i=n("d609"),s=n("32f6");for(var r in s)"default"!==r&&function(e){n.d(t,e,(function(){return s[e]}))}(r);n("eb64");var a=n("0c7c"),o=Object(a["a"])(s["default"],i["a"],i["b"],!1,null,null,null);t["default"]=o.exports},d777:function(e,t,n){"use strict";n("88eb")},d831:function(e,t,n){"use strict";n.r(t);var i=n("5b0d"),s=n.n(i);for(var r in i)"default"!==r&&function(e){n.d(t,e,(function(){return i[e]}))}(r);t["default"]=s.a},d949:function(e,t,n){"use strict";n("7fe3")},d9a4:function(e,t,n){"use strict";n("85be")},db24:function(e,t,n){"use strict";n.r(t);var i=n("7491"),s=n.n(i);for(var r in i)"default"!==r&&function(e){n.d(t,e,(function(){return i[e]}))}(r);t["default"]=s.a},dbd7:function(e,t,n){"use strict";n.r(t);var i=n("3065"),s=n.n(i);for(var r in i)"default"!==r&&function(e){n.d(t,e,(function(){return i[e]}))}(r);t["default"]=s.a},dc0d:function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return s}));var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("startup-layout",{ref:"layout",staticClass:"kiwi-welcome-simple",scopedSlots:e._u([e.startupOptions.altComponent?{key:"connection",fn:function(){return[n(e.startupOptions.altComponent,{tag:"component",on:{close:e.onAltClose}})]},proxy:!0}:{key:"connection",fn:function(){return[n("form",{staticClass:"u-form u-form--big kiwi-welcome-simple-form",on:{submit:function(t){return t.preventDefault(),e.formSubmit.apply(null,arguments)}}},[n("h2",{domProps:{innerHTML:e._s(e.greetingText)}}),e.network&&(e.connectErrors.length>0||e.network.state_error)?n("div",{staticClass:"kiwi-welcome-simple-error"},[e.connectErrors.length>0?e._l(e.connectErrors,(function(t){return n("span",{key:t},[e._v(e._s(t))])})):[n("span",[e._v(e._s(e.$t("network_noconnect")))]),n("span",[e._v(e._s(e.readableStateError(e.network.state_error)))])]],2):e._e(),n("input-text",{directives:[{name:"focus",rawName:"v-focus",value:!e.nick||!e.show_password_box,expression:"!nick || !show_password_box"}],class:{"kiwi-welcome-invalid-nick":!e.isNickValid},attrs:{label:e.$t("nick"),type:"text"},model:{value:e.nick,callback:function(t){e.nick=t},expression:"nick"}}),e.showPass&&e.toggablePass?n("div",{staticClass:"kiwi-welcome-simple-input-container"},[n("label",{staticClass:"kiwi-welcome-simple-have-password"},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.show_password_box,expression:"show_password_box"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.show_password_box)?e._i(e.show_password_box,null)>-1:e.show_password_box},on:{change:function(t){var n=e.show_password_box,i=t.target,s=!!i.checked;if(Array.isArray(n)){var r=null,a=e._i(n,r);i.checked?a<0&&(e.show_password_box=n.concat([r])):a>-1&&(e.show_password_box=n.slice(0,a).concat(n.slice(a+1)))}else e.show_password_box=s}}}),n("span",[e._v(" "+e._s(e.$t("password_have"))+" ")])])]):e._e(),!e.showPass||!e.show_password_box&&e.toggablePass?e._e():n("div",{staticClass:"kiwi-welcome-simple-input-container"},[n("input-text",{directives:[{name:"focus",rawName:"v-focus",value:e.nick||e.show_password_box,expression:"nick || show_password_box"}],attrs:{"show-plain-text":!0,label:e.$t("password"),type:"password"},model:{value:e.password,callback:function(t){e.password=t},expression:"password"}})],1),e.showChannel?n("div",{staticClass:"kiwi-welcome-simple-input-container"},[n("input-text",{attrs:{label:e.$t("channel")},model:{value:e.channel,callback:function(t){e.channel=t},expression:"channel"}})],1):e._e(),n("captcha",{attrs:{network:e.network}}),e.network&&"disconnected"!==e.network.state?n("button",{staticClass:"u-button u-button-primary u-submit kiwi-welcome-simple-start",attrs:{type:"button",disabled:""}},[n("i",{staticClass:"fa fa-spin fa-spinner",attrs:{"aria-hidden":"true"}})]):n("button",{staticClass:"u-button u-button-primary u-submit kiwi-welcome-simple-start",attrs:{disabled:!e.readyToStart,type:"submit"},domProps:{innerHTML:e._s(e.buttonText)}}),n("div",{domProps:{innerHTML:e._s(e.footerText)}})],1)]},proxy:!0}],null,!0)})},s=[]},dd9f:function(e,t,n){"use strict";n("ed31")},ddcd:function(e,t,n){"use strict";n.r(t);var i=n("068a"),s=n.n(i);for(var r in i)"default"!==r&&function(e){n.d(t,e,(function(){return i[e]}))}(r);t["default"]=s.a},df3a:function(e,t,n){"use strict";n.r(t);var i=n("0028"),s=n("12fa");for(var r in s)"default"!==r&&function(e){n.d(t,e,(function(){return s[e]}))}(r);n("52fe");var a=n("0c7c"),o=Object(a["a"])(s["default"],i["a"],i["b"],!0,null,null,null);t["default"]=o.exports},df9e:function(e,t,n){},dfca:function(e,t,n){},e019:function(e,t,n){"use strict";var i=n("1bd5");Object.defineProperty(t,"__esModule",{value:!0}),t.AudioManager=void 0;var s=i(n("9f12")),r=i(n("53fe")),a=function(){function e(t){(0,s.default)(this,e),this.lastPlayed=0,this.audio=t}return(0,r.default)(e,[{key:"play",value:function(){(!this.lastPlayed||Date.now()-this.lastPlayed>2e3)&&(this.audio.play(),this.lastPlayed=Date.now())}},{key:"listen",value:function(e){var t=this;e.$on("audio.bleep",(function(){t.play()}))}},{key:"watchForMessages",value:function(e){var t=this;e.$on("message.new",(function(n){var i=n.message,s=n.buffer;if(!s.setting("mute_sound")){var r=["connection","traffic","mode","nick"];if(!(r.indexOf(i.type)>-1)&&!i.ignore&&!s.isSpecial()){var a=s.getNetwork().nick!==i.nick&&(i.isHighlight&&"highlight"===s.setting("alert_on")||"message"===s.setting("alert_on")),o=e.getActiveBuffer()===s,c=o&&e.ui.app_has_focus;(a||s.isQuery()&&!c)&&t.play()}}}))}}]),e}();t.AudioManager=a,window._kiwi_exports=window._kiwi_exports||{},window._kiwi_exports["libs"]||(window._kiwi_exports["libs"]={}),window._kiwi_exports["libs"]["AudioManager"],window._kiwi_exports.libs.AudioManager=t.default?t.default:t},e15d:function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return s}));var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"kiwi-header kiwi-theme-bg",on:{click:e.onHeaderClick}},[e.isChannel()?[n("div",{staticClass:"kiwi-header-name-container"},[n("div",{staticClass:"kiwi-header-name"},[e._v(e._s(e.buffer.name))])]),e.isJoined&&e.isConnected?n("div",{key:e.buffer.id,staticClass:"kiwi-header-options"},[e._l(e.pluginUiChannelElements,(function(t){return n("div",{directives:[{name:"rawElement",rawName:"v-rawElement",value:{el:t.el,props:{kiwi:{buffer:e.buffer,containerheader:e.self}}},expression:"{\n el: plugin.el,\n props: {\n kiwi: {\n buffer: buffer,\n containerheader: self,\n }\n }\n }"}],key:t.id,staticClass:"kiwi-header-option"})})),n("div",{staticClass:"kiwi-header-option kiwi-header-option-about",class:{"kiwi-header-option--active":"about"===e.sidebarSection}},[n("a",{attrs:{title:e.$t("more_information")},on:{click:function(t){return e.sidebarState.toggleAbout()}}},[n("i",{staticClass:"fa fa-info",attrs:{"aria-hidden":"true"}})])]),n("div",{staticClass:"kiwi-header-option kiwi-header-option-nicklist",class:{"kiwi-header-option--active":"nicklist"===e.sidebarSection||"user"===e.sidebarSection}},[n("a",{attrs:{title:e.$t("person",{count:Object.keys(e.buffer.users).length})},on:{click:function(t){return e.sidebarState.toggleNicklist()}}},[n("i",{staticClass:"fa fa-users",attrs:{"aria-hidden":"true"}}),n("span",[e._v(e._s(Object.keys(e.buffer.users).length))])])]),n("div",{staticClass:"kiwi-header-option kiwi-header-option-settings",class:{"kiwi-header-option--active":"settings"===e.sidebarSection}},[n("a",{attrs:{title:e.$t("channel_settings")},on:{click:function(t){return e.sidebarState.toggleBufferSettings()}}},[n("i",{staticClass:"fa fa-cog",attrs:{"aria-hidden":"true"}})])]),e.sidebarState.isPinned?n("div",{staticClass:"kiwi-header-option kiwi-header-option-unpinsidebar"},[n("a",{on:{click:function(t){return e.sidebarState.unpin()}}},[n("i",{staticClass:"fa fa-thumb-tack",attrs:{"aria-hidden":"true"}})])]):e._e()],2):e._e(),!e.isJoined&&e.isConnected?n("div",{staticClass:"kiwi-header-notjoined"},[n("a",{staticClass:"u-link kiwi-header-join-channel-button",on:{click:e.joinCurrentBuffer}},[e._v(" "+e._s(e.$t("container_join"))+" ")])]):e._e()]:e.isServer()?[n("div",{staticClass:"kiwi-header-name-container"},[n("div",{staticClass:"kiwi-header-name"},[e._v(" "+e._s(e.buffer.getNetwork().name)+" ")])]),n("div",{staticClass:"kiwi-header-server-connection"},["disconnected"===e.buffer.getNetwork().state?n("a",{staticClass:"u-button u-button-primary",on:{click:e.onConnectButtonClick}},[e._v(" "+e._s(e.$t("connect"))+" ")]):"connecting"===e.buffer.getNetwork().state?n("span",[n("i",{staticClass:"fa fa-spin fa-spinner",attrs:{"aria-hidden":"true"}}),e._v(" "+e._s(e.$t("connecting"))+" ")]):e._e()])]:e.isQuery()?[n("div",{staticClass:"kiwi-header-name-container"},[n("div",{staticClass:"kiwi-header-name"},[n("away-status-indicator",{staticClass:"kiwi-header-awaystatus",attrs:{network:e.buffer.getNetwork(),user:e.network.userByName(e.buffer.name)}}),e._v(" "+e._s(e.buffer.name)+" ")],1)]),n("div",{key:e.buffer.id,staticClass:"kiwi-header-options"},[e.userOnline?n("div",{staticClass:"kiwi-header-option kiwi-header-option-user",class:{"kiwi-header-option--active":"user"===e.sidebarSection}},[n("a",{on:{click:function(t){return e.toggleUser()}}},[n("i",{staticClass:"fa fa-user",attrs:{"aria-hidden":"true"}})])]):e._e(),e._l(e.pluginUiQueryElements,(function(t){return n("div",{directives:[{name:"rawElement",rawName:"v-rawElement",value:{el:t.el,props:{kiwi:{buffer:e.buffer,containerheader:e.self}}},expression:"{\n el: plugin.el,\n props: {\n kiwi: {\n buffer: buffer,\n containerheader: self,\n }\n }\n }"}],key:t.id,staticClass:"kiwi-header-option"})}))],2)]:e.isSpecial()?[n("div",{staticClass:"kiwi-header-name-container"},[n("div",{staticClass:"kiwi-header-name"},[e._v(e._s(e.buffer.name))])]),n("div",{staticClass:"kiwi-header-options"})]:e._e()],2)},s=[]},e15f:function(e,t,n){"use strict";var i=n("9e19"),s=n("b4d1"),r=n("7c78"),a=n("1bd5");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=a(n("44a4")),c=a(n("3f18")),u=a(n("a3e3")),l=a(n("52da")),f=a(n("800f")),d=a(n("b6ce")),p=a(n("3393")),h=a(n("284c")),w=a(n("bf2d")),m=a(n("9f12")),v=a(n("53fe")),g=a(n("2ef0")),_=a(n("31aa")),k=C(n("5a16")),b=C(n("862b"));function y(e){if("function"!==typeof s)return null;var t=new s,n=new s;return(y=function(e){return e?n:t})(e)}function C(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!==typeof e)return{default:e};var n=y(t);if(n&&n.has(e))return n.get(e);var s={},a=Object.defineProperty&&r;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var c=a?r(e,o):null;c&&(c.get||c.set)?Object.defineProperty(s,o,c):s[o]=e[o]}return s.default=e,n&&n.set(e,s),s}var x={},$=function(){function e(t){var n=this;(0,m.default)(this,e),this.state=t,this.aliasRewriter=new _.default,this.aliasRewriter.importFromString(t.setting("aliases")),t.$watch("user_settings.aliases",(function(e){n.aliasRewriter.importFromString(t.setting("aliases"))})),this.listenForInput()}return(0,v.default)(e,[{key:"defaultContext",value:function(){return{network:this.state.getActiveNetwork(),buffer:this.state.getActiveBuffer()}}},{key:"validateContext",value:function(e){if("object"!==(0,w.default)(e)||!Object.prototype.hasOwnProperty.call(e,"buffer")||!Object.prototype.hasOwnProperty.call(e,"network")||"object"!==(0,w.default)(e.buffer)||"object"!==(0,w.default)(e.network))throw new TypeError("context must contain both network and buffer properties")}},{key:"listenForInput",value:function(){var e=this;this.state.$on("input.raw",(function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.defaultContext(),i=t.split("\n");i.forEach((function(t){return e.processLine(t,n)}))}))}},{key:"processLine",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.defaultContext();this.validateContext(t);var n=t.network,i=t.buffer,s=e,r=b.stripStyles(s),a="//"===r.substr(0,2);"/"!==r[0]||a?(a&&(s=s.substr(1)),s=i.isServer()?"/quote "+s:"/msg "+i.name+" "+s):"/"===r[0]&&"/"!==s[0]&&(s=r);var o={network:n.name,server:n.connection.server,channel:n.isChannelName(i.name)?i.name:"",query:n.isChannelName(i.name)?"":i.name,destination:i.name,nick:n.nick};if(s=this.aliasRewriter.process(s,o),s){s=s.substr(1);var c=s.indexOf(" ");-1===c&&(c=s.length);var u=s.substr(0,c),l=s.substr(c+1),f={handled:!1,raw:e,command:u,params:l};this.state.$emit("input.command."+u,f,u,l),f.handled||(x[u.toLowerCase()]&&x[u.toLowerCase()].call(this,f,u,l),f.handled||n.ircClient.raw(s))}}}]),e}();function S(e,t,n,i){t.handled=!0;var s=this.state.getActiveNetwork(),r=i.indexOf(" ");-1===r&&(r=i.length);var a=i.substr(0,r),o=i.substr(r+1);if(o=""!==o.replace(/\s+/g,"")?(0,c.default)(o).call(o):o.replace(/[\r]+$/,""),o){var u=a,l=s.ircClient.network.extractTargetGroup(a);l&&(u=l.target);var f=u.length&&this.state.getOrAddBufferByName(s.id,u);if(f){var d="privmsg";"action"===e?d="action":"notice"===e&&(d="notice");var p=k.formatText(d,{nick:s.nick,text:o}),h={time:Date.now(),nick:s.nick,message:p,type:e};this.state.addMessage(f,h)}var w={privmsg:"say",action:"action",notice:"notice"},m=w[e]||"say";s.ircClient[m](a,o)}}t.default=$,x.lines=function(e,t,n){var i=this;e.handled=!0,n.split("|").forEach((function(e){i.processLine((0,o.default)(e).call(e))}))},x.msg=function(e,t,n){S.call(this,"privmsg",e,t,n)},x.action=function(e,t,n){S.call(this,"action",e,t,n)},x.notice=function(e,t,n){S.call(this,"notice",e,t,n)},x.dice=function(e,t,n){e.handled=!0;var i=this.state.getActiveBuffer(),s=this.state.getActiveNetwork(),r=n.replace(/\D/g,"");r=parseInt(r||"0",10),r<=0&&(r=6);var a=Math.floor(Math.random()*r)+1,o=k.t("dice_roll",{sides:k.formatNumber(r),number:k.formatNumber(a)});s.ircClient.action(i.name,o),this.state.addMessage(i,{nick:s.nick,message:o,type:"action"})},x.ctcp=function(e,t,n){var i,s;e.handled=!0;var r=n.split(" "),a=r.shift(),o=r.shift();if(o&&a){var c=this.state.getActiveNetwork();(i=c.ircClient).ctcpRequest.apply(i,(0,h.default)((0,u.default)(s=[a,o]).call(s,r)))}},x.join=function(e,t,n){var i=this;e.handled=!0;var s=this.state.getActiveNetwork(),r=b.extractBuffers(n);if(0===r.length){var a=this.state.getActiveBuffer();return a.isChannel()&&!a.joined?void s.ircClient.join(a.name,a.key):void this.state.addMessage(a,{nick:"*",message:k.t("error_no_channel_join"),type:"error"})}var o=!1;r.forEach((function(e,t){if("0"!==e.name){var n=s.isChannelName(e.name)?e.name:"#"+e.name,r=i.state.addBuffer(s.id,n);r&&!o&&(i.state.setActiveBuffer(s.id,r.name),o=!0),e.key&&(r.key=e.key),s.ircClient.join(n,e.key)}}))},x.part=function(e,t,n){e.handled=!0;var i=this.state.getActiveNetwork(),s=[],r="";if(""===n)s=[this.state.getActiveBuffer().name];else{var a=n.split(" ");i.isChannelName(a[0])?(s=g.default.compact(a[0].split(",")),r=(0,l.default)(a).call(a,1).join(" ")):(s=[this.state.getActiveBuffer().name],r=n)}s.forEach((function(e){i.ircClient.part(e,r)}))},x.quit=function(e,t,n){e.handled=!0;var i=this.state.getActiveNetwork();i.ircClient.quit(n)},x.topic=function(e,t,n){e.handled=!0;var i=this.state.getActiveNetwork(),s="",r="";if(""!==n){var a=n.split(" ");i.isChannelName(a[0])?(s=a[0],r=(0,l.default)(a).call(a,1).join(" ")):(s=this.state.getActiveBuffer().name,r=n),i.ircClient.setTopic(s,r)}},x.kick=function(e,t,n){e.handled=!0;var i=this.state.getActiveNetwork(),s="",r="",a="";if(""!==n){var o=n.split(" ");i.isChannelName(o[0])&&(r=o.shift()),s=o.shift(),a=o.join(" "),r||(r=this.state.getActiveBuffer().name),s&&i.ircClient.raw("KICK",r,s,a)}},x.ignore=function(e,t,n){e.handled=!0;var i=this.state.getActiveNetwork(),s=n.split(" ").shift();if(s){var r=this.state.getUser(i.id,s);if(r){r.ignore=!0;var a=this.state.getActiveBuffer();this.state.addMessage(a,{nick:"*",message:"Ignoring "+r.nick,type:"message"})}}},x.unignore=function(e,t,n){e.handled=!0;var i=this.state.getActiveNetwork(),s=n.split(" ").shift();if(s){var r=this.state.getUser(i.id,s);if(r){r.ignore=!1;var a=this.state.getActiveBuffer();this.state.addMessage(a,{nick:"*",message:"No longer ignoring "+r.nick,type:"message"})}}},x.close=function(e,t,n){var i=this;e.handled=!0;var s=this.state.getActiveNetwork(),r=g.default.compact(n.split(/[, ]/));0===r.length&&(r=[this.state.getActiveBuffer().name]),r.forEach((function(e){var t=s.bufferByName(e);t&&i.state.removeBuffer(t)}))},x.query=function(e,t,n){e.handled=!0;var i=n.indexOf(" ");-1===i&&(i=n.length);var s=n.substr(0,i),r=n.substr(i+1),a=this.state.getActiveNetwork(),o=this.state.getOrAddBufferByName(a.id,s);this.state.setActiveBuffer(a.id,o.name),r&&this.state.$emit("input.raw","/msg "+o.name+" "+r)},x.invite=function(e,t,n){var i;e.handled=!0;var s=this.state.getActiveNetwork(),r=this.state.getActiveBuffer(),a=n.split(" "),o=a.shift(),c=a.shift();c||(c=r.name),s.isChannelName(c)&&(s.ircClient.raw("INVITE",o,c),this.state.addMessage(r,{nick:"*",message:(0,u.default)(i="Invited ".concat(o," to ")).call(i,c),type:"message"}))},x.nick=function(e,t,n){e.handled=!0;var i=n.indexOf(" ");-1===i&&(i=n.length);var s=n.substr(0,i),r=this.state.getActiveNetwork();r.ircClient.changeNick(s)},x.away=function(e,t,n){e.handled=!0;var i=this.state.getActiveNetwork();i.ircClient.raw("AWAY",n||"Currently away")},x.back=function(e,t,n){e.handled=!0;var i=this.state.getActiveNetwork();i.ircClient.raw("AWAY")},x.quote=function(e,t,n){e.handled=!0;var i=this.state.getActiveNetwork();"cap"===n.split(" ")[0].toLowerCase()&&i.setting("show_raw_caps",!0);var s=this.state.getActiveBuffer();s.isServer()&&this.state.addMessage(s,{time:Date.now(),nick:"",message:n}),i.ircClient.raw(n)},x.whois=function(e,t,n){var i=this;e.handled=!0;var s=n.split(" "),r=this.state.getActiveNetwork(),a=this.state.getActiveBuffer();r.ircClient.whois(s[0],s[0],(function(e){if(e.error){var t=k.formatText("whois_error",{nick:e.nick,text:e.error});i.state.addMessage(a,{time:Date.now(),nick:"",message:t,type:"error"})}else{var n=[],r=function(e){e&&n.push(e)},o={mask:"is {{nick}}!{{user}}@{{host}} * ({{real_name}})",from:"is connecting from {{actual_hostname}} {{actual_ip}}",channels:"is on {{channels}}",server:"is using {{server}} ({{server_info}})",operator:"{{operator}}",modes:"{{modes}}",account:"is logged in as {{account}}",registered_nick:"{{registered_nick}}",secure:"is using a secure connection",idle:"has been idle for {{idle}}",certfp:"{{certfp}}",logon:"connected on {{logon}}",nick:"",user:"",ident:"",hostname:"",real_name:"",actual_ip:"",server_info:"",actual_hostname:""};if(e.nick&&e.hostname&&r(o.mask.replace("{{nick}}",e.nick).replace("{{user}}",e.ident).replace("{{host}}",e.hostname).replace("{{real_name}}",e.real_name)),e.actual_hostname&&e.actual_ip&&r(o.from.replace("{{actual_hostname}}",e.actual_hostname).replace("{{actual_ip}}",e.actual_ip)),e.channels&&r(o.channels.replace("{{channels}}",e.channels)),e.server&&r(o.server.replace("{{server}}",e.server).replace("{{server_info}}",e.server_info)),e.operator&&r(o.operator.replace("{{operator}}",e.operator)),e.modes&&r(o.modes.replace("{{modes}}",e.modes)),e.account&&r(o.account.replace("{{account}}",e.account)),e.registered_nick&&r(o.registered_nick.replace("{{registered_nick}}",e.registered_nick)),e.secure&&r(o.secure),e.certfp&&r(o.certfp.replace("{{certfp}}",e.certfp)),e.idle){var c=Math.floor(parseInt(e.idle,10));r(o.idle.replace("{{idle}}",k.formatDuration(c)))}if(e.logon){var l=parseInt(e.logon,10);if(!(0,f.default)(l)){var d=new Date(1e3*l);r(o.logon.replace("{{logon}}",d))}}g.default.each(e,(function(e,t){var n;"undefined"===typeof o[t]&&(g.default.isArray(e)?e.forEach((function(e){var n;return r((0,u.default)(n="".concat(t,": ")).call(n,e))})):r((0,u.default)(n="".concat(t,": ")).call(n,e)))})),n.forEach((function(e){i.state.addMessage(a,{nick:s[0],message:e,type:"whois"})}))}}))},x.whowas=function(e,t,n){var i=this;e.handled=!0;var s=n.split(" "),r=this.state.getActiveNetwork(),a=this.state.getActiveBuffer();r.ircClient.whowas(s[0],s[0],(function(e){if(e.error){var t=k.formatText("whowas_error",{nick:e.nick,text:e.error});i.state.addMessage(a,{time:Date.now(),nick:"",message:t,type:"whowas"})}else["whowas_ident","whowas_server"].forEach((function(t){var n=k.formatText(t,{nick:e.nick,ident:e.ident,host:e.hostname,name:e.real_name,server:e.server,info:e.server_info});i.state.addMessage(a,{time:Date.now(),nick:e.nick,message:n,type:"whowas"})}))}))},x.mode=function(e,t,n){e.handled=!0;var i=this.state.getActiveNetwork(),s=this.state.getActiveBuffer(),r=s.isChannel()?s.name:i.nick,a=g.default.compact(n.split(" "));n&&"+"!==n[0]&&"-"!==n[0]&&(r=a.shift()),a[0]?("+b"!==a[0]||a[1]||((0,d.default)(s).requested_banlist=!0,setTimeout((function(){(0,d.default)(s).requested_banlist=!1}),4e3)),i.ircClient.mode(r,a[0],(0,p.default)(a).call(a,1))):(i.ircClient.mode(r),r===s.name&&((0,d.default)(s).requested_modes=!0,setTimeout((function(){(0,d.default)(s).requested_modes=!1}),4e3)))},x.names=function(e,t,n){e.handled=!0;var i=this.state.getActiveNetwork(),s=n;s||(s=this.state.getActiveBuffer().name),i.ircClient.raw("NAMES "+s)},x.inject=function(e,t,n){e.handled=!0;var i=this.state.getActiveNetwork(),s=i.ircClient.connection;s.addReadBuffer(n)},x.clear=function(e,t,n){e.handled=!0;var i=this.state.getActiveBuffer();i.clearMessages(),this.state.addMessage(i,{nick:"*",message:"Scrollback cleared"})},x.echo=function(e,t,n){e.handled=!0;var i=this.state.getActiveBuffer();this.state.addMessage(i,{nick:"*",message:n})},x.set=function(e,t,n){var i,s;e.handled=!0;var r=this.state.getActiveBuffer(),a="",c=n.indexOf(" ");if(c>-1){var l;a=n.substr(0,c);var f=(0,o.default)(l=n.substr(c+1)).call(l);switch((0,o.default)(i=f.toLowerCase()).call(i)){case"true":case"on":f=!0;break;case"false":case"off":f=!1;break;default:}'"'===f[0]&&'"'===f[f.length-1]&&(f=f.substr(1,f.length-2)),this.state.setting(a,f)}else a=n;this.state.addMessage(r,{nick:"*",message:(0,u.default)(s="".concat(a," = ")).call(s,this.state.setting(a))})},x.list=function(e,t,n){e.handled=!0;var i=this.state.getActiveNetwork();i.channel_list.length||"updating"===i.channel_list_state||(i.channel_list_state="updating",i.ircClient.raw("LIST "+n)),i.showServerBuffer("channels")},x.server=function(e,t,n){e.handled=!0;var i=n.split(" "),s=i[0],r=i[1]||6667,a=!1,o=i[2],c=i[3]||"ircuser";"+"===r[0]?(a=!0,r=parseInt(r.substr(1),10)):(a=!1,r=parseInt(r,10)),this.state.addNetwork(s,c,{server:s,port:r,tls:a,password:o})},x.beep=function(e,t,n){e.handled=!0,this.state.$emit("audio.bleep")},x.notify=function(e,t,n){e.handled=!0,this.state.$emit("notification.show",n)},window._kiwi_exports=window._kiwi_exports||{},window._kiwi_exports["libs"]||(window._kiwi_exports["libs"]={}),window._kiwi_exports["libs"]["InputHandler"],window._kiwi_exports.libs.InputHandler=t.default?t.default:t},e1dd:function(e,t,n){"use strict";var i=n("1bd5");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=i(n("2ef0")),r=i(n("072f")),a={components:{UrlEmbed:r.default},props:["url","component","componentProps","isIframe","showPin"],data:function(){return{debouncedUpdateEmbed:null}},computed:{iframeSandboxOptions:function(){var e=["allow-downloads","allow-forms","allow-modals","allow-orientation-lock","allow-pointer-lock","allow-popups","allow-popups-to-escape-sandbox","allow-presentation","allow-same-origin","allow-scripts"];return e.join(" ")}},watch:{url:function(){this.debouncedUpdateEmbed()},isIframe:function(){this.debouncedUpdateEmbed()}},created:function(){var e=this;this.debouncedUpdateEmbed=s.default.debounce((function(){e.updateEmbed()}),0)},mounted:function(){var e=this;this.updateEmbed(),this.$nextTick((function(){e.$state.$emit("mediaviewer.opened")}))},methods:{updateEmbed:function(){this.setMaxHeight(""),this.url&&!this.isIframe||this.setHeight(this.isIframe?"40%":"auto")},setHeight:function(e){this.$el.style.height=e},setMaxHeight:function(e){this.$el.style.maxHeight=e}}};t.default=a,window._kiwi_exports=window._kiwi_exports||{},window._kiwi_exports["components"]||(window._kiwi_exports["components"]={}),window._kiwi_exports["components"]["MediaViewer"],window._kiwi_exports.components.MediaViewer=t.default?t.default:t},e20d:function(e,t,n){"use strict";n("e37b")},e29d:function(e,t,n){"use strict";var i=n("1bd5");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=i(n("3b2f")),r=i(n("9c24")),a={props:{},displayNick:function(){var e=this.props,t=e.message.nick?":":"";return e.message.nick+t},userMode:function(e){var t=this.props;return t.ml.buffer.userMode(e)},userModePrefix:function(e){var t=this.props;return t.ml.buffer.userModePrefix(e)}},o={inject:{components:{default:{MessageInfo:r.default,MediaViewer:s.default}}},props:{ml:Object,message:Object,idx:Number,m:{default:function(){return function(){return a.props=this,a}}}}};t.default=o},e37b:function(e,t,n){},e402:function(e,t,n){"use strict";n.r(t);var i=n("780b"),s=n("395a");for(var r in s)"default"!==r&&function(e){n.d(t,e,(function(){return s[e]}))}(r);var a=n("0c7c"),o=Object(a["a"])(s["default"],i["a"],i["b"],!0,null,null,null);t["default"]=o.exports},e432:function(e,t,n){},e54d:function(e,t,n){"use strict";var i=n("9e19"),s=n("44a4"),r=n("fa81"),a=n("3960"),o=n("e4f0"),c=n("7c78"),u=n("aa3c"),l=n("b4d1"),f=n("1bd5");Object.defineProperty(t,"__esModule",{value:!0}),t.default=x;var d=f(n("2fa7")),p=f(n("a3e3")),h=f(n("9a73")),w=f(n("a4fc")),m=n("2ef0"),v=f(n("f72e")),g=b(n("118f")),_=n("5a16");function k(e){if("function"!==typeof l)return null;var t=new l,n=new l;return(k=function(e){return e?n:t})(e)}function b(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!==typeof e)return{default:e};var n=k(t);if(n&&n.has(e))return n.get(e);var s={},r=Object.defineProperty&&c;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var o=r?c(e,a):null;o&&(o.get||o.set)?Object.defineProperty(s,a,o):s[a]=e[a]}return s.default=e,n&&n.set(e,s),s}function y(e,t){var n=r(e);if(a){var i=a(e);t&&(i=o(i).call(i,(function(t){return c(e,t).enumerable}))),n.push.apply(n,i)}return n}function C(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=(0,v.default)().setting("emojis"),s=(0,g.default)(e,t),r=s.reduce((function(e,t,s){return(0,p.default)(e).call(e,$(t,n,i))}),[]);return r}function $(e,t,n){var i,s,r=/\S+/g,a=[];while(null!==(i=r.exec(e.content))){s=i[0];var o=S(s)||O(s)||N(s,t)||A(s,n);o&&a.push({index:i.index+o.index,match:o.match,block:(0,g.createNewBlock)(o.match,e.styles,o.type,o.meta)})}return 0===a.length?[e]:T(e,a)}function S(e){var t=_.channelRegex.exec(e);return null!==t&&{index:t[1].length+t[2].length,match:t[3],type:"channel",meta:{channel:t[3]}}}function O(e){if(!(0,h.default)(e).call(e,"://")&&!(0,w.default)(e).call(e,"www"))return!1;var t=_.urlRegex.exec(e);if(null===t)return!1;var n=t[0];if(n.match(/^javascript:/i))return!1;var i=".,;:";while(i.indexOf(n[n.length-1])>-1)n=n.substr(0,n.length-1);-1===n.indexOf("(")&&")"===n[n.length-1]&&(n=n.substr(0,n.length-1));var s=n;return s.match(/^www\./i)&&(s="http://"+n),{index:t.index,match:n,matchText:s,type:"url",meta:{url:s}}}function N(e,t){if(!t)return!1;var n=null,i=",.!:;+)]?¿\\/<>@",r=Object.prototype.hasOwnProperty,a=0,o=s(m)(e,i),c=o.toUpperCase();return!!r.call(t,c)&&(n=t[c],a=e.indexOf(o),{index:a,match:o,type:"user",meta:{user:o,colour:n.colour}})}function A(e,t){return!(t.hasOwnProperty&&!t.hasOwnProperty(e))&&{index:0,match:e,type:"emoji",meta:{emoji:t[e]}}}function T(e,t){var n=[],i=0;return t.forEach((function(t,s){var r=e.content.substr(i,t.index-i);r&&n.push({content:r,styles:C({},e.styles),containsContent:!!r}),n.push(t.block),i=t.index+t.match.length})),it.props.ml.buffer.last_read?"kiwi-messagelist-message--unread":"",t.props.message.nick.toLowerCase()===t.props.ml.ourNick.toLowerCase()?"kiwi-messagelist-message--own":"",t.props.ml.message_info_open===t.props.message?"kiwi-messagelist-message--info-open":"",t.props.ml.message_info_open&&t.props.ml.message_info_open!==t.props.message?"kiwi-messagelist-message--blur":"",t.props.message.user&&t.props.m().userMode(t.props.message.user)?"kiwi-messagelist-message--user-mode-"+t.props.m().userMode(t.props.message.user):"",t.data.staticClass],attrs:{"data-message-id":t.props.message.id,"data-nick":(t.props.message.nick||"").toLowerCase()},on:{click:function(e){return t.props.ml.onMessageClick(e,t.props.message,!0)},dblclick:function(e){return t.props.ml.onMessageDblClick(e,t.props.message)}}},[n("div",{staticClass:"kiwi-messagelist-modern-left"},[t.props.m().isMessage(t.props.message)&&t.props.m().displayAvatar(t.props.message)?n(t.injections.components.MessageAvatar,{tag:"component",attrs:{message:t.props.message,"data-nick":t.props.message.nick,user:t.props.message.user}}):t._e(),t.props.message.user&&!t.props.m().isRepeat()?n(t.injections.components.AwayStatusIndicator,{tag:"component",staticClass:"kiwi-messagelist-awaystatus",attrs:{network:t.props.m().getNetwork(),user:t.props.message.user,toggle:!1}}):t._e()],1),n("div",{staticClass:"kiwi-messagelist-modern-right"},[n("div",{staticClass:"kiwi-messagelist-top"},[t.props.message.nick?n("a",{class:["kiwi-messagelist-nick",t.props.message.user&&t.props.m().userMode(t.props.message.user)?"kiwi-messagelist-nick--mode-"+t.props.m().userMode(t.props.message.user):""],style:{color:t.props.ml.userColour(t.props.message.user)},attrs:{"data-nick":t.props.message.nick.toLowerCase()},on:{mouseover:function(e){t.props.ml.hover_nick=t.props.message.nick.toLowerCase()},mouseout:function(e){t.props.ml.hover_nick=""}}},[n("span",{staticClass:"kiwi-messagelist-nick-prefix"},[t._v(t._s(t.props.message.user?t.props.m().userModePrefix(t.props.message.user):""))]),t._v(t._s(t.props.message.nick)+" ")]):t._e(),t.props.m().showRealName()?n("div",{staticClass:"kiwi-messagelist-realname",on:{click:function(e){return t.props.ml.openUserBox(t.props.message.nick)},mouseover:function(e){t.props.ml.hover_nick=t.props.message.nick.toLowerCase()},mouseout:function(e){t.props.ml.hover_nick=""}}},[t._v(" "+t._s(t.props.message.user.realname)+" ")]):t._e(),t.props.m().isMessage(t.props.message)&&t.props.ml.bufferSetting("show_timestamps")?n("div",{staticClass:"kiwi-messagelist-time",attrs:{title:t.props.ml.formatTimeFull(t.props.message.time)}},[t._v(" "+t._s(t.props.ml.formatTime(t.props.message.time))+" ")]):t._e()]),t.props.message.bodyTemplate&&t.props.message.bodyTemplate.$el?n("div",{directives:[{name:"rawElement",rawName:"v-rawElement",value:t.props.message.bodyTemplate.$el,expression:"props.message.bodyTemplate.$el"}],staticClass:"kiwi-messagelist-body"}):n("div",{staticClass:"kiwi-messagelist-body",domProps:{innerHTML:t._s(t.props.ml.formatMessage(t.props.message))}}),t.props.ml.message_info_open===t.props.message?n(t.injections.components.MessageInfo,{tag:"component",attrs:{message:t.props.message,buffer:t.props.ml.buffer},on:{close:function(e){return t.props.ml.toggleMessageInfo()}}}):t._e(),t.props.message.embed.payload&&t.props.ml.shouldAutoEmbed?n("div",[n(t.injections.components.MediaViewer,{tag:"component",attrs:{url:t.props.message.embed.payload,"show-pin":!0},on:{close:function(e){t.props.message.embed.payload=""},pin:function(e){return t.props.ml.openEmbedInPreview(t.props.message)}}})],1):t._e()],1)])},s=[]},eef1:function(e,t,n){"use strict";function i(){return function(t,n,i){s(t),n.use(e)};function e(e,t,n,i,s){if("TAGMSG"===e&&t.tags["+typing"]||"PRIVMSG"===e&&t.nick){var r=t.params[0].toLowerCase()===i.user.nick.toLowerCase()?t.nick:t.params[0],a=t.tags["+typing"]||"done";i.emit("typing",{target:r,nick:t.nick,ident:t.ident,hostname:t.hostname,status:a}),s()}else s()}}function s(e){var t=e.typing={},n=Object.create(null);function i(){return e.network.cap.isEnabled("message-tags")}t.start=function(t){if(i()){var s=n[t.toLowerCase()];if(!(s&&s>Date.now()-3e3)){n[t.toLowerCase()]=Date.now();var r=new e.Message("TAGMSG",t);r.tags["+typing"]="active",e.raw(r)}}},t.pause=function(t){if(i()&&n[t.toLowerCase()]){var s=new e.Message("TAGMSG",t);s.tags["+typing"]="paused",e.raw(s)}},t.stop=function(t,s){if(i()&&n[t.toLowerCase()]&&(delete n[t.toLowerCase()],s)){var r=new e.Message("TAGMSG",t);r.tags["+typing"]="done",e.raw(r)}}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i,window._kiwi_exports=window._kiwi_exports||{},window._kiwi_exports["libs"]||(window._kiwi_exports["libs"]={}),window._kiwi_exports["libs"]["TypingMiddleware"],window._kiwi_exports.libs.TypingMiddleware=t.default?t.default:t},f07a:function(e,t,n){"use strict";n.r(t);var i=n("7544"),s=n("3c51");for(var r in s)"default"!==r&&function(e){n.d(t,e,(function(){return s[e]}))}(r);n("d9a4");var a=n("0c7c"),o=Object(a["a"])(s["default"],i["a"],i["b"],!1,null,null,null);t["default"]=o.exports},f0ef:function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return s}));var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"u-input-confirm"},["pre"===e.state?n("div",{on:{click:e.prompt}},[e._t("default")],2):e._e(),"prompt"===e.state?[n("span",{staticClass:"u-input-confirm-label"},[e._v(e._s(e.label))]),n("a",{staticClass:"u-button",class:["u-button-"+e.connoteCss.yes],on:{click:function(t){return e.complete(!0)}}},[e._v(" "+e._s(e.$t("yes"))+" ")]),n("a",{staticClass:"u-button",class:["u-button-"+e.connoteCss.no],on:{click:function(t){return e.complete(!1)}}},[e._v(" "+e._s(e.$t("no"))+" ")])]:e._e()],2)},s=[]},f21b:function(e,t,n){"use strict";n.r(t);var i=n("28a9"),s=n("333e");for(var r in s)"default"!==r&&function(e){n.d(t,e,(function(){return s[e]}))}(r);n("6058");var a=n("0c7c"),o=Object(a["a"])(s["default"],i["a"],i["b"],!1,null,null,null);t["default"]=o.exports},f21d:function(e,t,n){"use strict";n.r(t);var i=n("1f25"),s=n.n(i);for(var r in i)"default"!==r&&function(e){n.d(t,e,(function(){return i[e]}))}(r);t["default"]=s.a},f333:function(e,t,n){"use strict";var i=n("9e19"),s=n("b4d1"),r=n("7c78"),a=n("1bd5");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=a(n("800f")),c=a(n("47c7")),u=a(n("a3e3")),l=h(n("862b")),f=a(n("e7f8")),d=a(n("6269"));function p(e){if("function"!==typeof s)return null;var t=new s,n=new s;return(p=function(e){return e?n:t})(e)}function h(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!==typeof e)return{default:e};var n=p(t);if(n&&n.has(e))return n.get(e);var s={},a=Object.defineProperty&&r;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var c=a?r(e,o):null;c&&(c.get||c.set)?Object.defineProperty(s,o,c):s[o]=e[o]}return s.default=e,n&&n.set(e,s),s}var w={components:{ServerSelector:d.default,Captcha:f.default},props:["network"],data:function(){return{server_type:"network",znc_username:"",znc_network:"",znc_password:"",show_advanced:!1,switch_tabs_on_connect:!1,network_list:[]}},computed:{settingShowRaw:{get:function(){return this.network.setting("show_raw")},set:function(e){return this.network.setting("show_raw",e)}},directWs:{get:function(){if(!this.network.connection.direct)return"";var e=this.network.connection,t="";t+=e.tls?"wss://":"ws://",t+=e.server;var n=parseInt(e.port,10);return(0,o.default)(n)&&(n=e.tls?443:80),(e.tls&&443!==n||!e.tls&&80!==n)&&(t+=":"+e.port),t+=e.path,t},set:function(e){var t=null;try{t=new c.default(e)}catch(r){return}var n=this.network.connection;n.tls="wss:"===t.protocol.toLowerCase(),n.server=t.hostname;var i=parseInt(t.port,10);(0,o.default)(i)&&(i="wss:"===t.protocol.toLowerCase()?443:80),n.port=i;var s=t.href.replace(t.protocol+"//","");n.path=s.substr(s.indexOf("/"))}}},watch:{znc_username:function(){this.setZncPass()},znc_network:function(){this.setZncPass()},znc_password:function(){this.setZncPass()},"network.state":function(){this.switch_tabs_on_connect&&("connected"===this.network.state?(this.switch_tabs_on_connect=!1,this.$state.$emit("server.tab.show","messages")):this.network.state_error&&(this.switch_tabs_on_connect=!1))}},created:function(){var e=!!(this.network.connection.password||"").match(/^(.*)\/(.*):(.*)$/);if(this.server_type=e?"znc":"network",e){var t=(this.network.connection.password||"").match(/^(.*)\/(.*):(.*)$/);this.znc_username=t[1]||"",this.znc_network=t[2]||"",this.znc_password=t[3]||""}this.network_list=this.$state.setting("presetNetworks")||[]},methods:{readableStateError:function(e){return l.networkErrorMessage(e)},connect:function(){this.switch_tabs_on_connect=!0,this.network.ircClient.connect()},reconnect:function(){this.network.ircClient.connect()},removeNetwork:function(){var e=confirm("Really remove this network? This cannot be undone!");e&&(this.$state.removeNetwork(this.network.id),this.$state.$emit("active.component"))},setZncPass:function(){var e,t,n=(0,u.default)(e=(0,u.default)(t="".concat(this.znc_username,"/")).call(t,this.znc_network,":")).call(e,this.znc_password);this.network.connection.password=n},toggleTls:function(){var e=this.network.connection;e.tls=!e.tls,e.tls&&6667===e.port?e.port=6697:e.tls||6697!==e.port||(e.port=6667)}}};t.default=w,window._kiwi_exports=window._kiwi_exports||{},window._kiwi_exports["components"]||(window._kiwi_exports["components"]={}),window._kiwi_exports["components"]["NetworkSettings"],window._kiwi_exports.components.NetworkSettings=t.default?t.default:t},f391:function(e,t,n){"use strict";n.r(t);var i=n("e15d"),s=n("d1dd");for(var r in s)"default"!==r&&function(e){n.d(t,e,(function(){return s[e]}))}(r);n("6ac0");var a=n("0c7c"),o=Object(a["a"])(s["default"],i["a"],i["b"],!1,null,null,null);t["default"]=o.exports},f408:function(e,t,n){},f427:function(e,t,n){"use strict";n.r(t);var i=n("2a81"),s=n.n(i);for(var r in i)"default"!==r&&function(e){n.d(t,e,(function(){return i[e]}))}(r);t["default"]=s.a},f4f2:function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return s}));var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"kiwi-statebrowser-channel-wrapper"},[n("div",{staticClass:"kiwi-statebrowser-channel",class:{"kiwi-statebrowser-channel-active":e.isActiveBuffer(),"kiwi-statebrowser-channel-notjoined":e.buffer.isChannel()&&!e.buffer.joined},attrs:{"data-name":e.buffer.name.toLowerCase()}},[n("div",{staticClass:"kiwi-statebrowser-channel-name",on:{click:function(t){return e.$emit("selected")}}},[e.buffer.isQuery()&&e.awayNotifySupported()?n("away-status-indicator",{attrs:{network:e.network,user:e.network.userByName(e.buffer.name)}}):e._e(),e._v(e._s(e.buffer.name)+" ")],1),n("div",{staticClass:"kiwi-statebrowser-buffer-actions"},[n("div",{staticClass:"kiwi-statebrowser-channel-labels"},[e.buffer.flags.unread&&e.showMessageCounts(e.buffer)?n("div",{staticClass:"kiwi-statebrowser-channel-label",class:[e.buffer.flags.highlight?"kiwi-statebrowser-channel-label--highlight":""]},[e._v(" "+e._s(e.buffer.flags.unread>999?"999+":e.buffer.flags.unread)+" ")]):e._e()]),n("div",{staticClass:"kiwi-statebrowser-channel-leave",on:{click:function(t){return e.maybePromptClose()}}},[n("i",{staticClass:"fa fa-times",attrs:{"aria-hidden":"true"}})])])]),n("transition-expand",[e.showPromptClose?n("div",{staticClass:"kiwi-statebrowser-prompt-close"},[n("span",[e._v(e._s(e.buffer.isChannel()?e.$t("prompt_leave_channel"):e.$t("prompt_close_query")))]),n("input-confirm",{attrs:{"flip-connotation":!0},on:{ok:function(t){return e.closeBuffer()},submit:function(t){return e.maybePromptClose()}}})],1):e._e()])],1)},s=[]},f5a3:function(e,t,n){},f67b:function(e,t,n){"use strict";n.r(t);var i=n("3104"),s=n.n(i);for(var r in i)"default"!==r&&function(e){n.d(t,e,(function(){return i[e]}))}(r);t["default"]=s.a},f6d9:function(e,t,n){"use strict";n("a306")},f72e:function(e,t,n){"use strict";var i=n("9e19"),s=n("fa81"),r=n("3960"),a=n("e4f0"),o=n("7c78"),c=n("aa3c"),u=n("b4d1"),l=n("1bd5");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var f=l(n("2fa7")),d=l(n("14b1")),p=l(n("5b1a")),h=l(n("3393")),w=l(n("fc56")),m=l(n("b6ce")),v=l(n("4c43")),g=l(n("fa81")),_=l(n("e76e")),k=l(n("5ee5")),b=l(n("2ef0")),y=l(n("05d6")),C=l(n("20fd")),x=l(n("b27f")),$=l(n("b73b")),S=T(n("862b")),O=T(n("5a16")),N=n("56f3");function A(e){if("function"!==typeof u)return null;var t=new u,n=new u;return(A=function(e){return e?n:t})(e)}function T(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!==typeof e)return{default:e};var n=A(t);if(n&&n.has(e))return n.get(e);var s={},r=Object.defineProperty&&o;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var c=r?o(e,a):null;c&&(c.get||c.set)?Object.defineProperty(s,a,c):s[a]=e[a]}return s.default=e,n&&n.set(e,s),s}function M(e,t){var n=s(e);if(r){var i=r(e);t&&(i=a(i).call(i,(function(t){return o(e,t).enumerable}))),n.push.apply(n,i)}return n}function P(e){for(var t=1;te?t.id:e}var o=s.channelId?parseInt(s.channelId,10):b.default.reduce(this.networks,a,0)+1,c=new y.default(o,r,t,n);c.name=e,c.username=s.username,c.gecos=s.gecos,c.password=s.account_password||"",c.connection.password=s.password,c.connection.nick=i,c.connection.server=s.server||"",c.connection.port=s.port||6667,c.connection.tls=s.tls||!1,c.connection.path=s.path||"",c.connection.direct=!!s.direct,c.connection.path=s.path||"",c.connection.encoding=s.encoding||"utf8",c.connection.bncnetid=s.bncnetid||"",s.services&&(c.services=s.services),this.networks.push(c),this.addBuffer(c.id,"*").joined=!0;var u={network:c};return r.$emit("network.new",u),c},removeNetwork:function(e){var t,n=this.getNetwork(e);if(n){"connected"===n.state&&n.ircClient.quit();while(n.buffers.length>0)this.removeBuffer(n.buffers[0]);var i=!1;n===this.getActiveNetwork()&&(i=!0);var s=this.networks.indexOf(n);(0,h.default)(t=this.networks).call(t,s,1),i&&this.openLastActiveBuffer();var a={network:n};r.$emit("network.removed",a)}},getActiveBuffer:function(){return this.getBufferByName(this.ui.active_network,this.ui.active_buffer)},setActiveBuffer:function(e,t){if(e){if(this.settings.useBufferHistory&&this.ui.active_network){this.ui.last_active_buffers.push({networkid:this.ui.active_network,bufferName:this.ui.active_buffer});var n=this.ui.last_active_buffers;this.ui.last_active_buffers=(0,h.default)(n).call(n,n.length-20)}this.ui.active_network=e,this.ui.active_buffer=t;var i=this.getBufferByName(e,t);i&&(0,m.default)(i).unread&&((0,m.default)(i).unread=0),i&&i.markAsRead(!0)}else this.ui.active_network=0,this.ui.active_buffer=""},openLastActiveBuffer:function(){if(this.settings.useBufferHistory){for(var e,t,n=this.ui.last_active_buffers,i=n.length-1;i>=0;i--){var s=this.getNetwork(n[i].networkid);if(s){var r=s.bufferByName(n[i].bufferName);if(r){e=s,t=r,(0,h.default)(n).call(n,i);break}}}if(!t){var a=this.getActiveNetwork()||this.networks[0];if(a){e=a;var o=a.buffers[1];t=o||a.serverBuffer()}}t?this.setActiveBuffer(e.id,t.name):this.setActiveBuffer()}else this.setActiveBuffer()},updateBufferLastRead:function(e,t){var n=this.getBufferByName(e,t);n&&(n.last_read=Date.now(),n.active_timeout=null)},getOrAddBufferByName:function(e,t){var n=this.getNetwork(e);if(!n)return null;var i=t.toLowerCase(),s=(0,w.default)(b.default).call(b.default,n.buffers,(function(e){return e.name.toLowerCase()===i}));return s||(s=this.addBuffer(e,t)),s},getBufferByName:function(e,t){if(!t)return null;var n=this.getNetwork(e);if(!n)return null;var i=t.toLowerCase(),s=(0,w.default)(b.default).call(b.default,n.buffers,(function(e){return e.name.toLowerCase()===i}));return s},addBuffer:function(e,t){if(!t)return!1;var n=this.getBufferByName(e,t);if(n)return n;var s=this.getNetwork(e);if(!s)return!1;n=new C.default(t,s.id,r,i),s.buffers.push(n);var a={buffer:n};return r.$emit("buffer.new",a),n},removeBuffer:function(e){var t=this.getActiveBuffer()===e,n=this.getNetwork(e.networkid);if(n){var s={buffer:e};r.$emit("buffer.close",s);var a,o=n.buffers.indexOf(e);if(o>-1)(0,h.default)(a=n.buffers).call(a,o,1);var c=(0,v.default)(b.default).call(b.default,i,{networkid:n.id,buffer:e.name});if(c>-1&&(0,h.default)(i).call(i,c,1),e.isChannel()&&e.joined&&n.ircClient.part(e.name),e.isQuery()){var u=r.getBuffersWithUser(n.id,e.name);0===u.length&&r.removeUser(n.d,{nick:e.name})}t&&this.openLastActiveBuffer(),(0,g.default)(e.users).forEach((function(t){var n=e.users[t];delete n.buffers[e.id]}))}},addMessage:function(e,t){if(e&&e.getNetwork()){var n=this.getUser(e.networkid,t.nick),i=new $.default(t,n);n&&n.ignore&&(i.ignore=!0),e.addMessage(i);var s=!1,a=["privmsg","action","notice","wallops"];e.setting("traffic_as_activity")&&"traffic"===t.type&&a.push("traffic"),a.indexOf(t.type)>-1&&(s=!0);var o=e.networkid===this.ui.active_network&&e.name===this.ui.active_buffer,c=e.getNetwork(),u=t.time>=e.last_read,l=!!c&&S.mentionsNick(i.message,c.ircClient.user.nick);t.type&&"invite"===t.type&&(l=!0);var f=(r.setting("highlights")||"").toLowerCase().split(" ");if(!l&&f.length>0&&f.forEach((function(e){e&&i.message.toLowerCase().indexOf(e)>-1&&(l=!0)})),r.setting("teamHighlights")){var d=i.message,p={everyone:/(^|\s)@everybody($|\s|[,.;])/,channel:/(^|\s)@channel($|\s|[,.;])/,here:/(^|\s)@here($|\s|[,.;])/};(d.match(p.everyone)||d.match(p.channel))&&(l=!0),d.match(p.here)&&c&&!c.away&&(l=!0)}i.isHighlight=l,u&&o&&r.ui.app_has_focus&&(e.last_read=t.time),u&&s&&!o&&!i.ignore&&(e.incrementFlag("unread"),l&&e.flag("highlight",!0));var h=e.setting("alert_on"),w=!!c&&t.nick===c.nick;if(u&&"never"!==h&&"nick"!==t.type&&"mode"!==t.type&&"traffic"!==t.type&&!e.isSpecial()&&!i.ignore&&!w){var m="",v=t.nick?t.nick+": ":"";v+=t.message,l?m=O.t("notification_mentioned",{channel:e.name}):"message"!==h||l||(m=e.name),m&&this.$emit("notification.show",v,{title:m,onclick:function(){r.setActiveBuffer(e.networkid,e.name),parent&&parent.focus&&parent.focus(),window.focus&&window.focus()}})}o&&!r.ui.app_has_focus&&"traffic"!==t.type&&("message"===e.setting("flash_title")||"highlight"===e.setting("flash_title")&&l)&&this.$emit("notification.title",!0),this.$emit("message.new",{message:i,buffer:e})}},addMessageNoRepeat:function(e,t){if(e&&e.getNetwork()){var n=e.getLastMessage();n&&n.message===t.message||this.addMessage(e,t)}},getUser:function(e,t,n){var i=null,s=n;if(!s){var r=this.getNetwork(e);r&&(s=r.users)}return s&&(i=s[t.toUpperCase()]),i},usersTransaction:function(e,t){var n=this.getNetwork(e);if(n){var i=(0,_.default)(Object.create(null),n.users);t(i),n.users=i}},addUser:function(e,t,n){var i=null;if(i="number"===typeof e?this.getNetwork(e):e,!i)return null;var s=n||i.users,a=null;return s[t.nick.toUpperCase()]?(a=r.getUser(i.id,t.nick,s),b.default.each(t,(function(e,t){"undefined"!==typeof e&&(a[t]=e)}))):a=s[t.nick.toUpperCase()]=new x.default(t),a},removeUser:function(e,t){var n=this.getNetwork(e);if(n){var i=r.getBuffersWithUser(e,t.nick);i.forEach((function(e){r.removeUserFromBuffer(e,t.nick)})),this.$delete(n.users,t.nick.toUpperCase())}},addMultipleUsersToBuffer:function(e,t){var n=this,i=this.getNetwork(e.networkid),s=(0,_.default)(Object.create(null),e.users);r.usersTransaction(i.id,(function(a){t.forEach((function(t){var o=t.user,c=t.modes,u=r.getUser(i.id,o.nick,a);u||(u=n.addUser(i,o,a)),s[u.nick.toUpperCase()]=u,u.buffers[e.id]?u.buffers[e.id].modes=c||[]:r.$set(u.buffers,e.id,{modes:c||[],buffer:e})}))})),e.users=s},addUserToBuffer:function(e,t,n){var i=this.getNetwork(e.networkid),s=r.getUser(i.id,t.nick);s?b.default.each(t,(function(e,t){s[t]!==e&&(s[t]=e)})):s=this.addUser(i,t),e.addUser(s),s.buffers[e.id]?r.$set(s.buffers[e.id],"modes",n||[]):r.$set(s.buffers,e.id,{modes:n||[],buffer:e})},removeUserFromBuffer:function(e,t){e.removeUser(t)},getBuffersWithUser:function(e,t){var n=this.getNetwork(e);if(!n)return[];var i=t.toUpperCase(),s=[];return n.buffers.forEach((function(e){var r=e.name.toUpperCase();(e.users[i]||i===r||t===n.nick&&e.isQuery())&&s.push(e)})),s},changeUserNick:function(e,t,n){var i=this.getNetwork(e);if(i){var s=r.getUser(i.id,t);if(s){var a=n.toUpperCase(),o=t.toUpperCase();s.key=a,s.nick=n,o!==a&&(r.$set(i.users,a,i.users[o]),r.$delete(i.users,o),(0,g.default)(s.buffers).forEach((function(e){var t=s.buffers[e].buffer;r.$set(t.users,a,t.users[o]),r.$delete(t.users,o)})));var c=this.getBufferByName(i.id,t);c&&c.rename(n)}}},getStartups:function(){return s}}});return r}var j=null;function E(){return j=j||B(),j}E.create=function(){return B()},E.recreate=function(){var e;j&&(j.resetState(),j.$destroy(),(0,h.default)(e=j._watchers).call(e,0,j._watchers.length));return j=B(),j};var I=E;t.default=I,window._kiwi_exports=window._kiwi_exports||{},window._kiwi_exports["libs"]||(window._kiwi_exports["libs"]={}),window._kiwi_exports["libs"]["state"],window._kiwi_exports.libs.state=t.default?t.default:t},f79f:function(e,t,n){"use strict";n.r(t);var i=n("785b"),s=n.n(i);for(var r in i)"default"!==r&&function(e){n.d(t,e,(function(){return i[e]}))}(r);t["default"]=s.a},f803:function(e,t,n){"use strict";n.r(t);var i=n("b222"),s=n.n(i);for(var r in i)"default"!==r&&function(e){n.d(t,e,(function(){return i[e]}))}(r);t["default"]=s.a},f83c:function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return s}));var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"kiwi-ircinput"},[n("div",{ref:"editor",staticClass:"kiwi-ircinput-editor",attrs:{placeholder:e.placeholder,contenteditable:"true",role:"textbox",spellcheck:"true"},on:{keypress:function(t){e.updateValueProps(),e.$emit("keypress",t)},keydown:function(t){e.updateValueProps(),e.$emit("keydown",t)},keyup:function(t){e.updateValueProps(),e.$emit("keyup",t)},textInput:function(t){e.updateValueProps(),e.onTextInput(t),e.$emit("textInput",t)},mouseup:function(t){return e.updateValueProps()},click:function(t){return e.$emit("click",t)},paste:e.onPaste,focus:e.onFocus,blur:function(t){return e.$emit("blur",t)}}})])},s=[]},f93a:function(e,t,n){"use strict";n("9010")},f93d:function(e,t,n){"use strict";n.r(t);var i=n("bb17"),s=n("7f44");for(var r in s)"default"!==r&&function(e){n.d(t,e,(function(){return s[e]}))}(r);n("6daf");var a=n("0c7c"),o=Object(a["a"])(s["default"],i["a"],i["b"],!1,null,null,null);t["default"]=o.exports},fa38:function(e,t,n){"use strict";n.r(t);var i=n("7f90"),s=n("b361");for(var r in s)"default"!==r&&function(e){n.d(t,e,(function(){return s[e]}))}(r);n("3cac");var a=n("0c7c"),o=Object(a["a"])(s["default"],i["a"],i["b"],!1,null,null,null);t["default"]=o.exports},fad7:function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return s}));var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"kiwi-statebrowser kiwi-theme-bg"},[e.$state.setting("hideSettings")?e._e():n("div",{staticClass:"kiwi-statebrowser-appsettings",attrs:{title:e.$t("kiwi_settings")},on:{click:e.clickAppSettings}},[n("i",{staticClass:"fa fa-cog",attrs:{"aria-hidden":"true"}})]),e.isPersistingState?n("state-browser-usermenu",{attrs:{network:e.getNetwork}}):e._e(),n("div",{staticClass:"kiwi-statebrowser-tools"},e._l(e.pluginUiElements,(function(t){return n("div",{directives:[{name:"rawElement",rawName:"v-rawElement",value:{el:t.el,props:{kiwi:{statebrowser:e.self}}},expression:"{\n el: plugin.el,\n props: {\n kiwi: {\n statebrowser: self,\n }\n }\n }"}],key:t.id,staticClass:"kiwi-statebrowser-tool"})})),0),n("div",{staticClass:"kiwi-statebrowser-scrollarea"},[n("div",{staticClass:"kiwi-statebrowser-networks"},e._l(e.networksToShow,(function(t){return n("state-browser-network",{key:t.id,attrs:{network:t,"sidebar-state":e.sidebarState,"active-prompt":e.activePrompt}})})),1)]),e.isRestrictedServer?e._e():n("div",{staticClass:"kiwi-statebrowser-newnetwork"},[n("a",{staticClass:"u-button u-button-primary",on:{click:e.clickAddNetwork}},[e._v(" "+e._s(e.$t("add_network"))+" "),n("i",{staticClass:"fa fa-plus",attrs:{"aria-hidden":"true"}})])])],1)},s=[]},fb34:function(e,t,n){"use strict";var i=n("1bd5");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=i(n("44a4")),r=i(n("e4f0"));function a(e){return{get:function(){return this.modeVal(e)},set:function(t){return this.setMode((t?"+":"-")+e)}}}function o(e){return{get:function(){var t=this.modeVal(e);return!1===t?"":t},set:function(t){t?this.setMode("+"+e,t):this.setMode("-"+e,this.modeVal(e))}}}var c={props:["buffer"],data:function(){return{showPrevTopics:!1}},computed:{modeM:a("m"),modeI:a("i"),modeS:a("s"),modeT:a("t"),modeN:a("n"),modeK:o("k"),topic:{get:function(){return this.buffer.topic},set:function(e){var t=e.replace("\n"," ");(0,s.default)(t).call(t)?this.buffer.getNetwork().ircClient.setTopic(this.buffer.name,t):this.buffer.getNetwork().ircClient.raw("TOPIC ".concat(this.buffer.name," :"))}},prevTopics:function(){var e;return(0,r.default)(e=this.buffer.topics).call(e,(function(e){return(0,s.default)(e).call(e)}))}},methods:{updateBanList:function(){this.buffer.getNetwork().ircClient.raw("MODE",this.buffer.name,"+b")},setMode:function(e,t){this.buffer.getNetwork().ircClient.raw("MODE",this.buffer.name,e,t)},modeVal:function(e){var t=!1;return t="undefined"!==typeof this.buffer.modes[e]&&(!this.buffer.modes[e]||this.buffer.modes[e]),t},areWeAnOp:function(){return this.buffer.isUserAnOp(this.buffer.getNetwork().nick)}}};t.default=c,window._kiwi_exports=window._kiwi_exports||{},window._kiwi_exports["components"]||(window._kiwi_exports["components"]={}),window._kiwi_exports["components"]["ChannelInfo"],window._kiwi_exports.components.ChannelInfo=t.default?t.default:t},fbf7:function(e,t,n){},fc1b:function(e,t,n){"use strict";var i=n("1bd5");Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"State",{enumerable:!0,get:function(){return a.default}}),t.default=void 0;var s=i(n("d610")),r=i(n("385f")),a=i(n("8bab")),o=i(n("b4f0")),c=i(n("57d8")),u=i(n("9aad")),l=i(n("8e26")),f=i(n("b3ed")),d=i(n("bbd94")),p={components:{BufferSettings:o.default,SidebarAboutBuffer:u.default,ChannelInfo:c.default,ChannelBanlist:l.default,ChannelInvitelist:f.default,Nicklist:d.default,UserBox:s.default},props:["network","buffer","sidebarState"],data:function(){return{pluginUiElements:r.default.singleton().sideBarPlugins,accessTab:"banlist"}},computed:{section:function(){return this.sidebarState.activeComponent?"component":this.sidebarState.section()},settingShowJoinParts:{get:function(){return this.buffer.setting("show_joinparts")},set:function(e){return this.buffer.setting("show_joinparts",e)}},settingShowTopics:{get:function(){return this.buffer.setting("show_topics")},set:function(e){return this.buffer.setting("show_topics",e)}},settingShowNickChanges:{get:function(){return this.buffer.setting("show_nick_changes")},set:function(e){return this.buffer.setting("show_nick_changes",e)}},settingShowModeChanges:{get:function(){return this.buffer.setting("show_mode_changes")},set:function(e){return this.buffer.setting("show_mode_changes",e)}},settingColouredNicklist:{get:function(){return this.buffer.setting("coloured_nicklist")},set:function(e){return this.buffer.setting("coloured_nicklist",e)}},settingExtraFormatting:{get:function(){return this.buffer.setting("extra_formatting")},set:function(e){return this.buffer.setting("extra_formatting",e)}},settingShareTyping:{get:function(){return this.buffer.setting("share_typing")},set:function(e){return this.buffer.setting("share_typing",e)}},bufferType:function(){var e="";return this.buffer?this.buffer.isServer()?e="server":this.buffer.isChannel()?e="channel":this.buffer.isQuery()&&(e="query"):e="none",e}}};t.default=p,window._kiwi_exports=window._kiwi_exports||{},window._kiwi_exports["components"]||(window._kiwi_exports["components"]={}),window._kiwi_exports["components"]["Sidebar"],window._kiwi_exports.components.Sidebar=t.default?t.default:t},fcde:function(e,t,n){"use strict";var i=n("1bd5");Object.defineProperty(t,"__esModule",{value:!0}),t.createChannelConstructor=u;var s=i(n("cc7d")),r=i(n("ba10")),a=Object.create(null),o=Object.create(null),c="0";function u(e,t,n){var i=e.toLowerCase();a[i]||(a[i]=l(i,t));var s=n;return s||(s=a[i].nextChannelId++),f(a[i],s)}function l(e,t){var n=new r.default;return n.sessionId="",a[e]=n,n.nextChannelId=1,n.connected=!1,n.reconnect=n.connect=function(){if(n.ws){try{n.ws.close()}catch(i){}n.ws=null}n.ws=new s.default(e),n.ws.onopen=function(){var e=t?"CONTROL SESSION "+t:"CONTROL START";n.ws.send(":".concat(c," ").concat(e)),n.connected=!0,n.emit("open")},n.ws.onclose=function(e){n.connected=!1,n.ws=null,n.emit("close",e)},n.ws.onmessage=function(e){if(n.emit("message",e),":"===e.data[0]){var t=e.data,i=t.indexOf(" ");if(-1===i)return void n.emit("open."+t.substr(1));var s=t.substr(1,i-1);e.data=t.substr(i+1),n.emit("message."+s,e)}else{var r=e.data.split(" ");"SESSION"===r[0]&&(n.sessionId=r[1])}}},n.connect(),n}function f(e,t){return function(i){return o[t]?e.connected&&o[t].initChannel():o[t]=new n(i),o[t]};function n(n){var i=[],s="utf8",a=new r.default;return a.id=t,a.isOpen=!1,a.state=0,a.remoteState=0,e.on("open",(function(){e.ws.send(":"+t)})),e.on("open."+t,(function(){a.isOpen=!0,i.length&&(i.forEach((function(e){a.sendControl(e)})),i=[]),a.setEncoding(s),a.remoteState=1,a.emit("open")})),e.on("close",(function(e){a.state=3,a.remoteState=0,a.isOpen=!1,a.emit("close",e)})),e.on("message."+t,(function(e){if(0===e.data.indexOf("control ")&&(0===e.data.indexOf("control connected")&&(a.remoteState=1),0===e.data.indexOf("control closed"))){var t=e.data.split(" ")[2];a.remoteState=0,a.emit("close",t)}1===a.remoteState&&a.emit("line",e.data)})),a.sendControl=function(n){a.isOpen?e.ws.send(":"+t+" "+n):i.push(n)},a.writeLine=function(n){a.remoteState>=1&&e.ws.send(":"+t+" "+n)},a.connect=function(){i=[],e.ws||e.reconnect();var t=n.host,s=n.port,r=n.tls||n.ssl;a.sendControl("HOST "+t+":"+(r?"+":"")+s)},a.close=function(){a.remoteState>=1&&e.ws.send(":"+t)},a.setEncoding=function(n){return s=n,e.connected&&e.ws.send(":"+t+" ENCODING "+n),!0},a.disposeSocket=function(){},a.initChannel=function(){e.ws.send(":"+t)},e.connected&&a.initChannel(),a}}window._kiwi_exports=window._kiwi_exports||{},window._kiwi_exports["libs"]||(window._kiwi_exports["libs"]={}),window._kiwi_exports["libs"]["ServerConnection"],window._kiwi_exports.libs.ServerConnection=t.default?t.default:t},fd86:function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return s}));var i=function(e,t){var n=t._c;return n(t.$options.c.Avatar,{tag:"component",attrs:{user:t.props.user,message:t.props.message,size:"small"}})},s=[]},fedd:function(e,t,n){"use strict";n.r(t);var i=n("ca05"),s=n.n(i);for(var r in i)"default"!==r&&function(e){n.d(t,e,(function(){return i[e]}))}(r);t["default"]=s.a},ff31:function(e,t,n){"use strict";n.r(t);var i=n("77b3"),s=n.n(i);for(var r in i)"default"!==r&&function(e){n.d(t,e,(function(){return i[e]}))}(r);t["default"]=s.a},ffd2:function(e,t,n){"use strict";n.r(t);var i=n("4b50"),s=n("edbf");for(var r in s)"default"!==r&&function(e){n.d(t,e,(function(){return s[e]}))}(r);n("40cd");var a=n("0c7c"),o=Object(a["a"])(s["default"],i["a"],i["b"],!1,null,null,null);t["default"]=o.exports}});