securityos/public/Program Files/kiwiirc/static/js/app.590b085d.js

2 lines
467 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

(function(e){function t(t){for(var i,a,o=t[0],c=t[1],u=t[2],f=0,d=[];f<o.length;f++)a=o[f],Object.prototype.hasOwnProperty.call(s,a)&&s[a]&&d.push(s[a][0]),s[a]=0;for(i in c)Object.prototype.hasOwnProperty.call(c,i)&&(e[i]=c[i]);l&&l(t);while(d.length)d.shift()();return r.push.apply(r,u||[]),n()}function n(){for(var e,t=0;t<r.length;t++){for(var n=r[t],i=!0,o=1;o<n.length;o++){var c=n[o];0!==s[c]&&(i=!1)}i&&(r.splice(t--,1),e=a(a.s=n[0]))}return e}var i={},s={app:0},r=[];function a(t){if(i[t])return i[t].exports;var n=i[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,a),n.l=!0,n.exports}a.m=e,a.c=i,a.d=function(e,t,n){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},a.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(a.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)a.d(n,i,function(t){return e[t]}.bind(null,i));return n},a.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="";var o=window["webpackJsonp"]=window["webpackJsonp"]||[],c=o.push.bind(o);o.push=t,o=o.slice();for(var u=0;u<o.length;u++)t(o[u]);var l=c;r.push([0,"vendor"]),n()})({0:function(e,t,n){n("1fe4"),n("914e"),n("eb21"),e.exports=n("56d7")},"0028":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-avatar",class:[t.$options.m.hasAvatar(t.props)?"kiwi-avatar--image":"",t.data.staticClass],attrs:{"data-nick":t.$options.m.nick(t.props)}},[n("span",{staticClass:"kiwi-avatar-inner",class:{"kiwi-avatar--default":t.$options.m.isDefault(t.props)},style:t.$options.m.avatarStyle(t.props)},[t._v(" "+t._s(t.$options.m.hasAvatar(t.props)?"":t.$options.m.firstNickLetter(t.props))+" ")])])},s=[]},"002e":function(e,t,n){"use strict";n("dfca")},"00f8":function(e,t,n){"use strict";n.r(t);var i=n("3ee2"),s=n("f79f");for(var r in s)"default"!==r&&function(e){n.d(t,e,(function(){return s[e]}))}(r);n("5fd8");var a=n("0c7c"),o=Object(a["a"])(s["default"],i["a"],i["b"],!1,null,null,null);t["default"]=o.exports},"01c2":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("b6ce")),u=a(n("e4f0")),l=a(n("a3e3")),f=a(n("14b1")),d=a(n("44a4")),p=a(n("e9c4")),h=a(n("0470")),w=y(n("8f39")),m=a(n("f07a")),v=a(n("036e")),g=a(n("5d58")),_=a(n("baf0")),k=a(n("6645"));function b(e){if("function"!==typeof s)return null;var t=new s,n=new s;return(b=function(e){return e?n:t})(e)}function y(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={},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("040f");var C=h.default.namespace("MessageList.vue"),x=60,$={components:{BufferKey:m.default,MessageListMessageModern:g.default,MessageListMessageCompact:v.default,MessageListMessageInline:_.default,LoadingAnimation:k.default},props:["buffer"],data:function(){return{smooth_scroll:!1,auto_scroll:!0,force_smooth_scroll:null,chathistoryAvailable:!0,hover_nick:"",message_info_open:null,timeToClose:!1,startClosing:!1,selectedMessages:Object.create(null)}},computed:{thisMl:function(){return this},shouldAutoEmbed:function(){return!(!this.buffer.isChannel()||!this.buffer.setting("inline_link_auto_previews"))||!(!this.buffer.isQuery()||!this.buffer.setting("inline_link_auto_previews_query"))},listType:function(){return this.$state.setting("messageLayout")&&C.info("Deprecation Warning: The config option 'messageLayout' has been moved to buffers.messageLayout"),this.buffer.setting("messageLayout")||this.$state.setting("messageLayout")},useExtraFormatting:function(){return this.buffer.setting("extra_formatting")},shouldShowChathistoryTools:function(){if("connected"!==this.buffer.getNetwork().state)return!1;var e=this.buffer.isChannel()||this.buffer.isQuery(),t=!!this.buffer.getNetwork().ircClient.chathistory.isSupported();return e&&t&&(0,c.default)(this.buffer).chathistory_available},shouldRequestChannelKey:function(){return"connected"===this.buffer.getNetwork().state&&this.buffer.isChannel()&&(0,c.default)(this.buffer).channel_badkey},ourNick:function(){return this.buffer?this.buffer.getNetwork().nick:""},filteredMessagesGroupedDay:function(){var e=[],t=null;return this.filteredMessages.forEach((function(n){var i=Math.floor(n.time/1e3/86400);t&&i===t||(e.push({dayNum:i,messages:[]}),t=i),e[e.length-1].messages.push(n)})),e},filteredMessages:function(){return w.orderedMessages(this.buffer)},shouldShowJoiningLoader:function(){return this.buffer.isChannel()&&this.buffer.enabled&&!this.buffer.joined&&"connected"===this.buffer.getNetwork().state}},watch:{filteredMessages:function(){var e=this;this.checkScrollingState(),this.$nextTick((function(){e.maybeScrollToBottom()}))},buffer:function(e,t){var n=this;t&&(t.isMessageTrimming=!0),e&&(this.message_info_open=null,"connected"===this.buffer.getNetwork().state&&((0,c.default)(e).has_opened=!0),this.auto_scroll=!0,this.force_smooth_scroll=!1,this.$nextTick((function(){n.scrollToBottom()})))}},mounted:function(){var e=this;this.addCopyListeners(),this.$nextTick((function(){e.scrollToBottom()})),this.listen(this.$state,"mediaviewer.opened",(function(){e.$nextTick(e.maybeScrollToBottom.apply(e))})),this.listen(this.$state,"messagelist.scrollto",(function(t){t&&t.id&&e.maybeScrollToId(t.id)}))},methods:{isHoveringOverMessage:function(e){return e.nick&&e.nick.toLowerCase()===this.hover_nick.toLowerCase()},toggleMessageInfo:function(e){if(e){if(this.message_info_open===e);else if(this.canShowInfoForMessage(e)){var t=window.getSelection();if(t.rangeCount>0){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.time<s&&i.time>s))},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;c<a;c++)o[c]=arguments[c];if(e)o[0]=(0,s.default)(r="[".concat(e,"] DEBUG ")).call(r,o[0]);(t=window.console).log.apply(t,o)}},n.info=function(){if(i(n.LEVEL_INFO)){for(var t,r,a=arguments.length,o=new Array(a),c=0;c<a;c++)o[c]=arguments[c];if(e)o[0]=(0,s.default)(r="[".concat(e,"] INFO ")).call(r,o[0]);(t=window.console).log.apply(t,o)}},n.error=function(){if(i(n.LEVEL_ERROR)){for(var t,r,a=arguments.length,o=new Array(a),c=0;c<a;c++)o[c]=arguments[c];if(e)o[0]=(0,s.default)(r="[".concat(e,"] ERROR ")).call(r,o[0]);(t=window.console).error.apply(t,o)}},n.assert=function(e){var t;if(!e){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];this.error.apply(this,(0,s.default)(t=["Assertion failed."]).call(t,i))}},n.setLevel=function(e){n.level=e},n.namespace=function(t){var i,r=t;e&&(r=(0,s.default)(i="[".concat(e,"][")).call(i,r,"]"));return o(r,n)},n}t.default=a,window._kiwi_exports=window._kiwi_exports||{},window._kiwi_exports["libs"]||(window._kiwi_exports["libs"]={}),window._kiwi_exports["libs"]["Logger"],window._kiwi_exports.libs.Logger=t.default?t.default:t},"0598":function(e,t,n){},"059c":function(e,t,n){"use strict";n.r(t);var i=n("929b"),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},"05d6":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("280c")),c=a(n("9f12")),u=a(n("53fe")),l=a(n("5ee5")),f=n("bb3c"),d=h(n("5c34"));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=function(){function e(t,n,i,s){var r=this;(0,c.default)(this,e),this.id=t,this.name="",this.editable_name=!1,this.state="disconnected",this.state_error="",this.last_error="",this.auto_commands="",this.is_znc=!1,this.is_bnc=!1,this.hidden=!1,this.channel_list=[],this.channel_list_state="",this.ircd="",this.connection={server:"",port:6667,tls:!1,path:"",password:"",direct:!1,encoding:"utf8",bncnetid:"",nick:""},this.settings={show_raw_caps:!1},this.nick="",this.username="",this.gecos="",this.password="",this.away="",l.default.observable(this),(0,f.def)(this,"appState",n,!1),(0,f.def)(this,"userDict",i,!1),(0,f.def)(this,"bufferDict",s,!1),(0,f.def)(this,"frameworkClient",null,!0),(0,f.def)(this,"users",Object.create(null),(function(e){n.$set(i.networks,r.id,e)})),(0,f.def)(this,"pendingPms",[],!1),s.$set(s.networks,this.id,[])}return(0,u.default)(e,[{key:"ircClient",get:function(){return this.frameworkClient||(this.frameworkClient=d.create(this.appState,this)),this.frameworkClient}},{key:"buffers",get:function(){return this.bufferDict.networks[this.id]}},{key:"connect",value:function(){var e;(e=this.ircClient).connect.apply(e,arguments)}},{key:"bufferByName",value:function(e){return this.appState.getBufferByName(this.id,e)}},{key:"serverBuffer",value:function(){return this.appState.getBufferByName(this.id,"*")}},{key:"setting",value:function(e,t){return"undefined"!==typeof t?(this.appState.$set(this.settings,e,t),t):this.settings[e]}},{key:"isChannelName",value:function(e){if("string"!==typeof e||!e)return!1;var t=this.ircClient.network.supports("CHANTYPES")||"#&";return t.indexOf(e[0])>-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;n<t.length;n++){var i=t[n];if(i.isUserAnOp(e))return!0}var s=this.appState.getUser(this.indexOf,e);return s&&s.hasWhois?!!s.operator:null}},{key:"currentUser",value:function(){return this.appState.getUser(this.id,this.nick)}},{key:"userByName",value:function(e){return this.appState.getUser(this.id,e)}}]),e}();t.default=w},"068a":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("e76e")),u=a(n("a3e3")),l=a(n("9a73")),f=a(n("2ef0")),d=g(n("862b")),p=a(n("0470")),h=a(n("b4ef")),w=a(n("e7f8")),m=a(n("6307"));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 _=p.default.namespace("Welcome.vue"),k={components:{Captcha:w.default,StartupLayout:m.default},data:function(){return{connectErrors:[],network:null,channel:"",nick:"",password:"",showChannel:!0,showPass:!0,toggablePass:!0,showNick:!0,show_password_box:!1,connectWithoutChannel:!1,showPlainText:!1,captchaReady:!1}},computed:{startupOptions:function(){return this.$state.settings.startupOptions},greetingText:function(){var e=this.$state.settings.startupOptions.greetingText;return"string"===typeof e?e:this.$t("start_greeting")},footerText:function(){var e=this.$state.settings.startupOptions.footerText;return"string"===typeof e?e:""},buttonText:function(){var e=this.$state.settings.startupOptions.buttonText;return"string"===typeof e?e:this.$t("start_button")},isNickValid:function(){var e=this.$state.setting("startupOptions.nick_format"),t="";if(e){var n="",i="";if("/"===e[0]){var s=e.lastIndexOf("/");n=e.substring(1,s),i=e.substr(s+1)}else n=f.default.escapeRegExp(e),i="i";try{t=new RegExp(n,i)}catch(r){return _.error("Nick format error: "+r.message),!1}}else t=/^[a-z_\\[\]{}^`|][a-z0-9_\-\\[\]{}^`|]*$/i;return this.nick.match(t)},readyToStart:function(){var e=!!this.nick;if(this.connectWithoutChannel||this.channel||(e=!1),!this.connectWithoutChannel){var t=d.extractBuffers(this.channel);t.forEach((function(t){-1==="#&".indexOf(t.name[0])&&(e=!1)}))}return this.toggablePass||this.password||(e=!1),this.isNickValid||(e=!1),e}},watch:{show_password_box:function(e){!1===e&&(this.password="")}},created:function(){var e,t,n=this.startupOptions,i=this.connectOptions(),s=null;(0,o.default)(e=i.hostname).call(e)&&(s=this.$state.getNetworkFromAddress((0,o.default)(t=i.hostname).call(t)));if(s&&s.connection.nick?this.nick=s.connection.nick:d.queryStringVal("nick")?this.nick=d.queryStringVal("nick"):this.nick=n.nick,this.nick=this.processNickRandomNumber(this.nick||""),n.password?this.password=n.password:s&&s.password?(this.password=s.password,this.show_password_box=!0):this.password="",this.channel=decodeURIComponent(window.location.hash)||n.channel||"",this.showChannel="boolean"!==typeof n.showChannel||n.showChannel,this.showNick="boolean"!==typeof n.showNick||n.showNick,this.showPass="boolean"!==typeof n.showPassword||n.showPassword,this.toggablePass="boolean"!==typeof n.toggablePassword||n.toggablePassword,this.connectWithoutChannel=!!n.allowNoChannel,n.bouncer){this.toggablePass=!1,this.showPass=!0,this.showChannel=!1,this.connectWithoutChannel=!0;var r=new h.default(this.$state);r.enable(i.hostname,i.port,i.tls,i.direct,i.direct_path)}n.autoConnect&&this.readyToStart&&this.startUp()},methods:{onAltClose:function(e){e.channel&&(this.channel=e.channel),e.nick&&(this.nick=e.nick),e.password&&(this.password=e.password),e.error&&this.connectErrors.push(e.error),this.$state.settings.startupOptions.altComponent=null},readableStateError:function(e){return d.networkErrorMessage(e)},formSubmit:function(){this.readyToStart&&this.startUp()},startUp:function(){var e=this;this.connectErrors=[];var t,n=(0,c.default)({},this.$state.settings.startupOptions),i=this.connectOptions(),s=(0,o.default)(f.default).call(f.default,i.hostname),r=this.network||this.$state.getNetworkFromAddress(s),a=this.password;(r=r||this.$state.addNetwork("Network",this.nick,{server:s,port:i.port,tls:i.tls,password:a,encoding:(0,o.default)(f.default).call(f.default,n.encoding),direct:i.direct,path:i.direct_path||"",gecos:n.gecos,username:n.username}),r.serverBuffer().clearMessages(),r.connection.nick=this.nick,n.bouncer)?(r.connection.password=(0,u.default)(t="".concat(this.nick,":")).call(t,a),r.password=""):(r.connection.password="",r.password=a);(0,o.default)(f.default).call(f.default,n.encoding||"")&&(r.connection.encoding=(0,o.default)(f.default).call(f.default,n.encoding)),this.network=r;var p=!1,h=d.extractBuffers(this.channel);h.forEach((function(t){var n=e.$state.addBuffer(r.id,t.name);n.enabled=!0,n&&!p&&(e.$state.setActiveBuffer(r.id,n.name),p=!0),t.key&&(n.key=t.key)})),n.bouncer||p||this.$state.setActiveBuffer(r.id,r.serverBuffer().name),r.ircClient.connect();var w=function t(){e.$refs.layout&&e.$refs.layout.close(),r.ircClient.off("registered",t),r.ircClient.off("close",m),r.ircClient.off("irc error",v)},m=function t(){var n,i=e.network.last_error;i&&!(0,l.default)(n=e.connectErrors).call(n,i)&&e.connectErrors.push(i),r.ircClient.off("registered",w),r.ircClient.off("close",t),r.ircClient.off("irc error",v)},v=function(t){var n;t.reason&&!(0,l.default)(n=e.connectErrors).call(n,t.reason)&&e.connectErrors.push(t.reason)};r.ircClient.once("registered",w),r.ircClient.once("close",m),r.ircClient.on("irc error",v)},processNickRandomNumber:function(e){var t=(e||"").replace(/\?/g,(function(){return Math.floor(100*Math.random()).toString()}));return(0,o.default)(f.default).call(f.default,t)},handleCaptcha:function(e){this.captchaReady=e},connectOptions:function(){var e=(0,c.default)({},this.$state.settings.startupOptions),t=d.connectionInfoFromConfig(e);return t.hostname=t.hostname||"default",!t.port&&t.direct?t.port=t.tls?443:80:t.port||t.direct||(t.port=t.tls?6697:6667),t}}};t.default=k,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"]["Welcome"],window._kiwi_exports.components.startups.Welcome=t.default?t.default:t},"072f":function(e,t,n){"use strict";n.r(t);var i=n("15a2"),s=n("704d");for(var r in s)"default"!==r&&function(e){n.d(t,e,(function(){return s[e]}))}(r);n("8dfb");var a=n("0c7c"),o=Object(a["a"])(s["default"],i["a"],i["b"],!1,null,null,null);t["default"]=o.exports},"0789":function(e,t,n){"use strict";n.r(t);var i=n("7cbf"),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},"07be":function(e,t,n){"use strict";n.r(t);var i=n("7b8e"),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},"0b98":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-znc",scopedSlots:e._u([e.network&&"disconnected"!==e.network.state?"connected"!==e.network.state?{key:"connection",fn:function(){return[n("i",{staticClass:"fa fa-spin fa-spinner",staticStyle:{"font-size":"2em","margin-top":"1em"}})]},proxy:!0}:null:{key:"connection",fn:function(){return[n("form",{staticClass:"u-form u-form--big kiwi-welcome-znc-form",on:{submit:function(t){return t.preventDefault(),e.formSubmit.apply(null,arguments)}}},[n("h2",{domProps:{innerHTML:e._s(e.greetingText)}}),e.network&&(e.network.last_error||e.network.state_error)?n("div",{staticClass:"kiwi-welcome-znc-error"},[e._v(" We couldn't connect to the server :( "),n("span",[e._v(" "+e._s(e.network.last_error||e.readableStateError(e.network.state_error))+" ")])]):e._e(),e.showUser?n("input-text",{staticClass:"kiwi-welcome-znc-nick",attrs:{label:e.$t("username")},model:{value:e.username,callback:function(t){e.username=t},expression:"username"}}):e._e(),e.showPass?n("input-text",{staticClass:"kiwi-welcome-znc-password",attrs:{label:e.$t("password"),type:"password"},model:{value:e.password,callback:function(t){e.password=t},expression:"password"}}):e._e(),e.showNetwork?n("input-text",{staticClass:"kiwi-welcome-znc-channel",attrs:{label:e.$t("network")},model:{value:e.znc_network,callback:function(t){e.znc_network=t},expression:"znc_network"}}):e._e(),n("button",{staticClass:"u-button u-button-primary u-submit kiwi-welcome-znc-start",attrs:{disabled:!e.readyToStart,type:"submit"},domProps:{innerHTML:e._s(e.buttonText)}})],1)]},proxy:!0}],null,!0)})},s=[]},"0be2":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n("5ee5"),s=i.component("input-prompt",{props:["label","hideCancel","block"],data:function(){return{value:"",state:"pre",waiting:!1}},computed:{hasChildren:function(){return!!this.$slots.default}},created:function(){this.hasChildren||this.prompt()},methods:{prompt:function(){var e=this;this.state="prompt",this.$nextTick((function(){e.$el.querySelector("input").focus()}))},complete:function(){var e=this;if(!this.waiting){this.hasChildren?this.state="pre":this.waiting=!0;var t=function(){e.waiting=!1};this.$emit("submit",this.value,t)}},cancel:function(){this.hasChildren&&(this.state="pre"),this.$emit("cancel")}}});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"]["InputPrompt"],window._kiwi_exports.components.utils.InputPrompt=t.default?t.default:t},"0c2e":function(e,t,n){"use strict";n("0598")},1:function(e,t){},"107f":function(e,t,n){},1109:function(e,t,n){"use strict";n.r(t);var i=n("5a5e"),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},"118f":function(e,t,n){"use strict";var i=n("1bd5");Object.defineProperty(t,"__esModule",{value:!0}),t.default=o,t.createNewBlock=c;var s=i(n("fa81")),r=i(n("e76e")),a=Object.create(null);function o(e,t){var n=t||{},i=c(),s=[i],o=Object.create(null),u=0,l=e.length;while(u<l){var f=h();if(!f||!n.extras&&f.extra)i.content+=e[u],i.containsContent=!0,u++;else{var d=null;d=i.containsContent?c():i,(0,r.default)(d.styles,i.styles);var p=f.fn(e,u,d,i,o);-1!==p?(i=d,s[s.length-1]!==d&&s.push(d),"number"===typeof p?u=p:u+=f.token.length):(i.content+=f.token,i.containsContent=!0,u+=f.token.length)}}return s;function h(){var t=a[e.substr(u,2)]||a[e[u]];return t}}function c(){var e=arguments.length>0&&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||a<r.length-1&&" "!==r[a+1]?-1:(s[this.token]=!0,n.styles.bold=!0,n.content+=this.token,null)}},a["**"]={token:"**",extra:!0,fn:function(e,t,n,i,s){return s[this.token]?(delete n.styles.italic,s[this.token]=null,i.content+=this.token,null):!0===n.styles.italic||-1===e.substr(t+1).indexOf(this.token)?-1:(s[this.token]=!0,n.styles.italic=!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.quote,s[this.token]=null,i.content+=this.token,null;if(t>0&&" "!==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+(n<i?6:0):s===n?a=(i-t)/u+2:s===i&&(a=(t-n)/u+4),a/=6}return{h:a,s:o,l:c}}function u(e){function t(e,t,n){var i=e,s=t,r=n;return r<0&&(r+=1),r>1&&(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<e+this.page_size;i++)t[i]&&n.push(t[i]);return n},maxPages:function(){return Math.floor(this.filteredList.length/this.page_size)},canGoForward:function(){return this.page*this.page_size>=this.filteredList.length},canGoBackward:function(){return this.page>0}},watch:{search:function(){this.page=0}},methods:{nextPage:function(){this.page<this.maxPages&&this.page++},prevPage:function(){this.page>0&&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_time<e||n.server_time>t||(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.time<t.time?e:t}),this.getMessages()[0]);s="before",i=r?new Date(r.server_time):new Date}else{if("forward"!==n)throw new Error("Invalid direction for requestScrollback(): "+e);var a=this.getMessages().reduce((function(e,t){var n=["traffic","topic","connection","presence"],i=-1===n.indexOf(e.type);return i&&e.time&&e.time>t.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_num<e.instance_num};this.latest_messages[0]&&!i(e)||this.latest_messages.unshift(e),this.latest_messages.length>5&&(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<n;f++){if(o=s[f],c=o.length,!u&&"$"===o[0]&&"?"===o[c-1]){var d=o.substr(1,c-2);if(t[d])continue;l=[];break}if(u=!0,"$"===o[0])if((o[1]||"").match(/\d/)){var p=o.match(/\$(\d+)(\+)?(\d+)?/);if(!p||!i[p[1]])continue;"+"===p[2]&&p[3]?l=(0,r.default)(l).call(l,(0,a.default)(i).call(i,parseInt(p[1],10),parseInt(p[1],10)+parseInt(p[3],10))):"+"===p[2]?l=(0,r.default)(l).call(l,(0,a.default)(i).call(i,parseInt(p[1],10))):l.push(i[parseInt(p[1],10)])}else"undefined"===typeof t[o.substr(1)]||l.push(t[o.substr(1)]);else l.push(o)}return l}},{key:"process",value:function(e,t){var n=e||"",i=n.split(" "),s=(i[0]||"").toLowerCase();return this.depth++,this.depth>=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;i<this.text.length;i+=1)this.Y.push(i*this.fontSize-1600);this.logo.onload=function(){e.destroying||e.draw()}},beforeDestroy:function(){this.destroying=!0,cancelAnimationFrame(this.animationFrame)},methods:{draw:function(){this.x.clearRect(0,0,this.c.width,this.c.height),this.x.globalCompositeOperation="source-over",this.x.drawImage(this.logo,0,0,this.c.width,this.c.height),this.x.globalCompositeOperation="xor",this.x.fillStyle="#000",this.x.font=this.font;for(var e=0;e<this.text.length;e+=1)this.t%4.5<2?(this.Y[e]+=(250+(10+e)/this.text.length*4e3)/120,this.Y[e]>e*this.fontSize&&(this.Y[e]=e*this.fontSize)):(this.text.length-(this.t%4.5-2)/2.5*this.text.length*1.75<e&&(this.Y[e]+=10+this.Y[e]/20),(this.Y[e]>1080||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<i.length)){e.next=22;break}return a=i[s],a.buffers=[],e.prev=8,e.next=11,t.ircClient.bnc.getBuffers(a.name);case 11:o=e.sent,a.buffers=o,e.next=18;break;case 15:e.prev=15,e.t0=e["catch"](8),l.error(e.t0);case 18:c.addNetworkToState(a);case 19:s++,e.next=5;break;case 22:c.monitorNetworkChanges(t,i),c.$refs.layout.close();case 24:case"end":return e.stop()}}),e,null,[[8,15]])})));return function(){return e.apply(this,arguments)}}(),s=function(e){n(),c.statusMessage=c.$t("invalid_login"),c.loading=!1},o=function(e){n(),c.statusMessage=c.$t("invalid_login"),c.loading=!1},t.ircClient.once("registered",i),t.ircClient.once("irc error",s),t.ircClient.once("close",o),t.ircClient.connect();case 11:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),getBncNetwork:function(){var e=this.$state.setting("bnc");if(e.network)return e.username=this.username,e.password=this.password,e.network;var t=this.$state.settings.startupOptions;e.active=!0,e.server=t.server||"",e.port=t.port||6667,e.tls=!!t.tls,e.username=this.username,e.password=this.password;var n=this.$state.addNetwork("bnccontrol",this.username,{server:e.server,port:e.port,tls:e.tls});return e.network=n,n},addNetworkToState:function(e){var t=this,n=this.$state.addNetwork(e.name,e.nick,{server:e.host,port:e.port,tls:e.tls,password:e.password,bncname:e.name,username:e.user});e.buffers.forEach((function(e){var i=t.$state.addBuffer(n.id,e.name);e.joined&&(i.enabled=!0),e.seen&&(i.last_read=new Date(e.seen).getTime())}))},monitorNetworkChanges:function(e,t){var n=this,i=Object.create(null);function r(){this.$state.networks.forEach((function(e){e.connection.bncname&&(i[e.connection.bncname]={name:e.connection.bncname,host:e.connection.server,port:e.connection.port,tls:e.connection.tls,password:e.password,nick:e.nick,username:e.username})}))}r();var a=function(t){n.$state.networks.forEach((function(t){if("bnccontrol"!==t.name){var n=t.connection.bncname,s=i[n]||{},r={};t.connection.server!==s.host&&(r.host=t.connection.server),t.connection.port!==s.port&&(r.port=t.connection.port),t.connection.tls!==s.tls&&(r.tls=t.connection.tls),t.password!==s.password&&(r.password=t.password),t.nick!==s.nick&&(r.nick=t.nick),t.username!==s.username&&(r.user=t.username),!s.name&&r.host?(t.connection.bncname=t.name,e.ircClient.bnc.addNetwork(t.name,r.host,r.port,r.tls,r.nick,r.user,r.password)):s.name&&e.ircClient.bnc.saveNetwork(n,r)}})),r()},c=o.default.debounce(a,2e3);this.$state.$watch("networks",c,{deep:!0}),this.$state.$on("network.connecting",(function(n){a();var i=n.network.connection.bncname,r=(0,s.default)(o.default).call(o.default,t,{name:i});r&&!r.connected&&e.ircClient.raw("BOUNCER connect "+i)})),this.$state.$on("network.new",(function(e){var t=1,i=!0;while(i)i=(0,s.default)(o.default).call(o.default,n.$state.networks,{name:"Network"+t}),i||(e.network.name="Network"+t),t++})),this.$state.$on("network.removed",(function(t){e.ircClient.bnc.removeNetwork(t.network.connection.bncname)})),this.$state.$on("buffer.close",(function(t){var n=t.buffer,i=t.buffer.getNetwork(),s=i.connection.bncname;s&&e.ircClient.bnc.closeBuffer(s,n.name)}))}}};t.default=f,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"]["KiwiBnc"],window._kiwi_exports.components.startups.KiwiBnc=t.default?t.default:t},"372a":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={components:{AwayStatusIndicator:s.default},props:["buffer","activePrompt"],computed:{network:function(){return this.buffer.getNetwork()},showPromptClose:function(){return this.activePrompt&&"buffer"===this.activePrompt.type&&this.activePrompt.value===this.buffer}},methods:{isActiveBuffer:function(){var e=this.buffer;return e.networkid===this.$state.ui.active_network&&e.name===this.$state.ui.active_buffer},awayNotifySupported:function(){return this.network.ircClient.network.cap.isEnabled("away-notify")},showMessageCounts:function(){return!this.buffer.setting("hide_message_counts")},maybePromptClose:function(){var e=this.buffer.setting("prompt_leave");if("none"===e||"all"!==e&&(this.buffer.isChannel()&&"channels"!==e||this.buffer.isQuery()&&"queries"!==e||this.buffer.isSpecial()&&"queries"!==e))this.closeBuffer();else{var t=this.activePrompt;this.showPromptClose?(t.type=void 0,t.value=void 0):(t.type="buffer",t.value=this.buffer)}},closeBuffer:function(){this.$state.removeBuffer(this.buffer)}}};t.default=r},3804:function(e,t,n){"use strict";n.r(t);var i=n("5ac7"),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},3810: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-autocomplete kiwi-theme-bg"},e._l(e.filteredAndLimitedItems,(function(t){return n("div",{key:t.type+t.text,class:{"kiwi-autocomplete-item":!0,"kiwi-autocomplete-item--selected":t.idx===e.selected_idx},on:{click:function(n){e.selected_idx=t.idx,e.selectCurrentItem()}}},["user"===t.type?[n("span",{staticClass:"kiwi-autocomplete-item-value"},[e._v(e._s(t.text))]),n("span",{staticClass:"u-link kiwi-autocomplete-item-action",on:{click:function(n){return n.stopPropagation(),e.openQuery(t.text)}}},[e._v(" "+e._s(e.$t("send_message"))+" ")])]:"command"===t.type?[n("span",{staticClass:"kiwi-autocomplete-item-value"},[e._v(e._s(t.text))]),n("span",{staticClass:"u-link kiwi-autocomplete-item-description"},[e._v(" "+e._s(t.description)+" ")])]:[n("span",{staticClass:"kiwi-autocomplete-item-value"},[e._v(e._s(t.text))])]],2)})),0)},s=[]},"385f":function(e,t,n){"use strict";var i=n("9e19"),s=n("c90a"),r=n("b4d1"),a=n("7c78"),o=n("1bd5");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var c=o(n("a3e3")),u=o(n("52da")),l=o(n("284c")),f=o(n("9f12")),d=o(n("53fe")),p=o(n("c03e")),h=o(n("8b83")),w=o(n("c65a")),m=o(n("ba10")),v=o(n("5ee5")),g=o(n("5e48")),_=o(n("2ef0")),k=o(n("b697")),b=x(n("862b")),y=o(n("0470"));function C(e){if("function"!==typeof r)return null;var t=new r,n=new r;return(C=function(e){return e?n:t})(e)}function x(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!==typeof e)return{default:e};var n=C(t);if(n&&n.has(e))return n.get(e);var s={},r=Object.defineProperty&&a;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var c=r?a(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 $(e){var t=S();return function(){var n,i=(0,w.default)(e);if(t){var r=(0,w.default)(this).constructor;n=s(i,arguments,r)}else n=i.apply(this,arguments);return(0,h.default)(this,n)}}function S(){if("undefined"===typeof Reflect||!s)return!1;if(s.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(s(Boolean,[],(function(){}))),!0}catch(e){return!1}}var O=null,N=[],A=0,T=function(e){(0,p.default)(n,e);var t=$(n);function n(){var e;return(0,f.default)(this,n),e=t.call(this),e.version="1.6.1",e.commithash="0d6f8dd1-modified",e.Vue=v.default,e.JSON5=g.default,e.state=null,e.themes=null,e.controlInputPlugins=[],e.stateBrowserPlugins=[],e.channelHeaderPlugins=[],e.queryHeaderPlugins=[],e.sideBarPlugins=[],e.userboxButtonPlugins=[],e.appSettingsPlugins=[],e.serverViewPlugins=[],e.aboutBufferPlugins=[],e.tabs=Object.create(null),e.isReady=!1,e.exports=window._kiwi_exports||{},e.on("init",(function(){e.isReady=!0,e.initPlugins()})),e}return(0,d.default)(n,[{key:"versionMatches",value:function(e){return(0,k.default)(this.version,e)>=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;a<s;a++)r[a]=arguments[a];try{var o,f;i.call.apply(i,(0,c.default)(o=[t,"all",r[0]]).call(o,(0,l.default)((0,u.default)(r).call(r,1)))),i.call.apply(i,(0,c.default)(f=[t]).call(f,r))}catch(d){y.default.error(d.stack)}return n.call.apply(n,(0,c.default)(e=[t.state]).call(e,r))},this.emit=function(){for(var e,s,r=arguments.length,a=new Array(r),o=0;o<r;o++)a[o]=arguments[o];n.call.apply(n,(0,c.default)(e=[t.state]).call(e,a)),i.call.apply(i,(0,c.default)(s=[t]).call(s,a))}}},{key:"setThemeManager",value:function(e){this.themes=e}},{key:"logLevel",value:function(e){y.default.setLevel(e)}},{key:"log",get:function(){return y.default}},{key:"addUi",value:function(e,t){var n=arguments.length>2&&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<n.length;i++){var s=n[i].split("=");if(s[0]===e)return s[1]}return!1}g.default.mixin({beforeDestroy:function(){(this.listeningEvents||[]).forEach((function(e){return e()}))},methods:{listen:function(e,t,n){this.listeningEvents=this.listeningEvents||[];var i=function(){(e.removeEventListener||e.$off||e.off).call(e,t,n)};return this.listeningEvents.push(i),(e.addEventListener||e.$on||e.on).call(e,t,n),i},listenOnce:function(e,t,n){var i=n;this.listeningEvents=this.listeningEvents||[];var s=function(){(e.removeEventListener||e.$off||e.off).call(e,t,i)};return this.listeningEvents.push(s),e.addEventListener?(i=function n(){e.removeEventListener(t,n),i.apply(void 0,arguments)},e.addEventListener(t,i)):(e.$once||e.once).call(e,t,i),s}}}),g.default.mixin({beforeDestroy:function(){(this.timerEvents||[]).forEach((function(e){return clearTimeout(e)}))},methods:{setInterval:function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(){this.timerEvents=this.timerEvents||[];var e=setInterval.apply(void 0,arguments);return this.timerEvents.push(e),e})),setTimeout:function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(){this.timerEvents=this.timerEvents||[];var e=setTimeout.apply(void 0,arguments);return this.timerEvents.push(e),e})),clearInterval:function(e){return this.clearTimeout(e)},clearTimeout:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){this.timerEvents=this.timerEvents||[];for(var t=this.timerEvents.length-1;t>=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<t.length;n++){var i=t[n];if(2===i.length&&(0,f.default)(t).call(t,n+1,0,i+"-"+i),(0,h.default)(v.default).call(v.default,x.default.locales,i.toLowerCase())){k.default.changeLanguage(i,(function(e,t){e&&k.default.changeLanguage("en-us")}));break}}};e(),(0,T.default)().$watch("user_settings.language",(function(t){t||(0,T.default)().setting("language")?k.default.changeLanguage(t||(0,T.default)().setting("language")||"en-us"):e()}))}function ee(){return te.apply(this,arguments)}function te(){return te=(0,c.default)(o.default.mark((function e(){var t,n,i;return o.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t=(0,T.default)().settings.startupOptions.state_key,"undefined"===typeof t&&(t="kiwi-state"),n=N.default.namespace("StatePersistence"),i=new B.default(t||"",(0,T.default)(),j,n),i.includeBuffers=!!(0,T.default)().settings.startupOptions.remember_buffers,!t){e.next=8;break}return e.next=8,i.loadStateIfExists();case 8:K.setState((0,T.default)());case 9:case"end":return e.stop()}}),e)}))),te.apply(this,arguments)}function ne(){var e=M.default.instance((0,T.default)());K.setThemeManager(e);var t=W("theme");t&&e.setTheme(t)}function ie(){var e=new U.SoundBleep,t=new L.AudioManager(e);t.listen((0,T.default)()),t.watchForMessages((0,T.default)())}function se(){new P.default((0,T.default)())}function re(){new R.default((0,T.default)()),K.emit("init"),new g.default({el:"#app",render:function(e){return e(S.default)},i18n:K.vueI18n}),K.emit("ready")}function ae(e){e?V.error("Error starting Kiwi IRC:",e):V.error("Unknown error starting Kiwi IRC"),new g.default({el:"#app",render:function(t){return t(O.default,{props:{error:e}})}})}g.default.directive("resizeobserver",{bind:function(e,t){var n=t.value||function(){};e[Q]=new ResizeObserver(n),e[Q].observe(e)},unbind:function(e){e[Q].unobserve(e)}}),G()},"56f3":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.configTemplates=void 0;var i={default:{plugins:[],windowTitle:"Kiwi IRC - The web IRC client",useMonospace:!1,language:"",theme:"Default",themes:[{name:"Default",url:"static/themes/default"}],restricted:!0,startupScreen:"customServer",kiwiServer:"/webirc/kiwiirc/",bnc:{active:!1,server:"",port:6667,tls:!1,path:"",username:"",password:""},warnOnExit:!0,quitMessage:"Page closed",buffers:{messageLayout:"modern",alert_on:"highlight",timestamp_format:"%H:%M:%S",timestamp_full_format:"",show_timestamps:!0,scrollback_size:250,show_hostnames:!1,show_joinparts:!0,show_topics:!0,show_nick_changes:!0,show_mode_changes:!0,show_presence_changes:!0,traffic_as_activity:!1,coloured_nicklist:!0,colour_nicknames_in_messages:!0,block_pms:!1,show_emoticons:!0,extra_formatting:!0,mute_sound:!1,hide_message_counts:!1,show_realnames:!1,default_ban_mask:"*!%i@%h",default_kick_reason:"Your behaviour is not conducive to the desired environment.",shared_input:!1,show_message_info:!0,who_loop:!0,share_typing:!0,flash_title:"message",nicklist_avatars:!1,show_link_previews:!0,inline_link_auto_previews:!0,inline_link_auto_previews_query:!0,inline_link_auto_preview_whitelist:".*",show_buffer_groups:!0,prompt_leave:"channels"},startupOptions:{server:"",port:6667,tls:!1,channel:"",nick:"kiwi_?",direct:!1,state_key:"kiwi-state",remember_buffers:!0,nick_format:""},autoReconnect:!1,disconnectOnSaslFail:!0,allowRegisterProtocolHandler:!1,noticeActiveBuffer:!0,nicklistGroupAway:!1,showChanlistModes:!1,showAutocomplete:!0,autocompleteTokens:["/","#","@"],showEmojiPicker:!0,showColorPicker:!1,showSendButton:!1,showAwayStatusIndicators:!0,sidebarDefault:"nicklist",showRaw:!1,useBufferHistory:!0,hideSettings:null,highlights:"",teamHighlights:!1,aliases:"\n# General aliases\n/p /part $1+\n/me /action $destination $1+\n/j /join $1+\n/q /query $1+\n/w /whois $1+\n/raw /quote $1+\n/connect /server $1+\n/disconnect /quit $1+\n/cycle $channel? /lines /part $channel | /join $channel\n/active /back $1+\n/umode /mode $nick $1+\n\n# Op related aliases\n/op /quote mode $channel +o $1+\n/deop /quote mode $channel -o $1+\n/hop /quote mode $channel +h $1+\n/dehop /quote mode $channel -h $1+\n/voice /quote mode $channel +v $1+\n/devoice /quote mode $channel -v $1+\n/k /kick $channel $1+\n/bans /mode $channel +b\n/ban /quote mode $channel +b $1+\n/unban /quote mode $channel -b $1+\n\n# Misc aliases\n/slap /me slaps $1 around a bit with a large trout\n/tick /msg $channel ✔",embedly:{Key:""},emojis:{"-___-":"1f611.png",":'-)":"1f602.png","':-)":"1f605.png","':-D":"1f605.png",">:-)":"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","</3":"1f494.png",":')":"1f602.png",":-D":"1f603.png","':)":"1f605.png","'=)":"1f605.png","':D":"1f605.png","'=D":"1f605.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_idx<this.filteredItems.length-1?this.selected_idx++:this.selected_idx=0,e.preventDefault(),t=!0;else if(16===e.keyCode)t=!0;else if(33===e.keyCode||34===e.keyCode){var i=this.filteredItems.length-1,s=7;this.selected_idx<4?s=10-this.selected_idx:this.selected_idx>i-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='<a class="u-link kiwi-channel" data-channel-name="'.concat(d,'">')).call(r,d,"</a>");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<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?E(Object(n),!0).forEach((function(t){(0,p.default)(e,t,n[t])})):c?Object.defineProperties(e,c(n)):E(Object(n)).forEach((function(t){Object.defineProperty(e,t,o(n,t))}))}return e}function L(e,t){var n=t.id,i=new N.default.Client({version:null,enable_chghost:!0,enable_setname:!0,message_max_length:350});i.requestCap("znc.in/self-message"),i.use((0,M.default)()),i.use(U(e,t)),i.use((0,T.default)());var s=i.connect;i.connect=function(){t.connection.nick||(t.connection.nick="Guest"+Math.floor(100*Math.random())),i.options.host=t.connection.server,i.options.port=t.connection.port,i.options.tls=t.connection.tls,i.options.path=t.connection.path,i.options.password=t.connection.password,t.password?i.options.account={account:t.connection.nick,password:t.password}:i.options.account={},i.options.nick=t.connection.nick,i.options.username=t.username||t.connection.nick,i.options.gecos=t.gecos||"https://kiwiirc.com/",i.options.encoding=t.connection.encoding,i.options.auto_reconnect=!!e.setting("autoReconnect");var r=e.setting("ircFramework");r&&(0,h.default)(i.options,r);var a={network:t,transport:null};e.$emit("network.connecting",a),a.transport?i.options.transport=a.transport:t.connection.direct?i.options.transport=void 0:i.options.transport=P.createChannelConstructor(e.settings.kiwiServer,(window.location.hash||"").substr(1),n);for(var o=arguments.length,c=new Array(o),u=0;u<o;u++)c[u]=arguments[u];s.apply(i,c)};var r=i.raw;return i.raw=function(){var n=null;if((arguments.length<=0?void 0:arguments[0])instanceof N.default.Message)n=arguments.length<=0?void 0:arguments[0];else{var s=i.rawString.apply(i,arguments);n=N.default.ircLineParser(s)}var a={network:t,message:n,handled:!1};e.$emit("ircout",a),a.handled||r.apply(i,[n])},i.on("raw",(function(i){if(t.setting("show_raw")||e.setting("showRaw")){var s=e.getOrAddBufferByName(n,"*raw");e.addMessage(s,{time:Date.now(),nick:"",message:(i.from_server?"[S] ":"[C] ")+i.line})}})),i.on("typing",(function(n){var i=e.getUser(t.id,n.nick);i&&i.typingStatus(n.target,n.status)})),i}function U(e,t){var n=t.id,i=!1;return function(e,n,a){a.use(r),n.use(s),e.on("connecting",(function(){t.state_error="",t.state="connecting",t.last_error="",t.last_error_numeric=0})),e.on("connected",(function(){t.state_error="",t.state="connected"})),e.on("socket close",(function(e){i=!1,t.state="disconnected",t.state_error=e||"",t.buffers.forEach((function(e){e&&(e.joined=!1,e.clearUsers())}))}))};function s(n,i,s,r,a){var o=I(I({},i),{},{raw:s,handled:!1});if(e.$emit("irc.raw",n,o,t),!o.handled&&(e.$emit("irc.raw."+n,n,o,t),!o.handled)){if("002"===n){var c=i.params[1]||"",u=c.match(/running version (.*)$/);t.ircd=u?u[1]:""}if("904"===n){"connected"!==!t.state&&(t.last_error="Invalid login",e.setting("disconnectOnSaslFail")&&t.ircClient.connection.end());var l=t.serverBuffer();e.addMessage(l,{time:Date.now(),nick:"*",message:"Invalid login"})}if("CAP"===n&&t.setting("show_raw_caps")){var f=(0,d.default)(i.params);f[f.length-1].indexOf(" ")>-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.time<U&&(U=e.time)})),!U||!D)return;var q=e.getBufferByName(n,r.params[0]);q&&q.clearMessageRange(U,D)}if("message"===s){var F=!1,H=r.from_server?"*":r.target;if(r.batch&&"chathistory"===r.batch.type&&r.batch.params[0]?(H=r.batch.params[0],F=!t.isChannelName(H)):r.from_server||r.target!==a.user.nick||(F=!0,H=r.nick),"chanserv"===r.nick.toLowerCase()&&F&&"["===r.message[0]&&(H=r.message.substr(1,r.message.indexOf("]")-1)),"notice"===r.type){var z=e.getBufferByName(n,H),V=e.setting("noticeActiveBuffer"),K=e.getActiveBuffer(),W=K&&K.networkid===n;z||(H=V&&W?K.name:"*")}var Q=!1,G=null,Y=t.isNickExemptFromPmBlocks(r.nick),J=e.setting("buffers.block_pms"),Z=e.getBufferByName(n,H),X="privmsg";"action"===r.type?X="action":"notice"===r.type&&(X="notice");var ee=A.formatText(X,{nick:r.nick,username:r.ident,host:r.hostname,text:r.message}),te={time:u,server_time:l,nick:r.nick,message:ee,type:r.type,tags:r.tags||{}};if(J&&F&&!Z&&Y===Q)return;if(J&&F&&!Z&&Y===G){var ne=!!(0,v.default)(S.default).call(S.default,t.pendingPms,{nick:r.nick});if(t.pendingPms.push({bufferName:H,message:te}),ne)return;return void t.ircClient.whois(r.nick,r.nick,(function(n){t.pendingPms.forEach((function(i,s,r){var a=i.message.nick.toLowerCase();a===n.nick.toLowerCase()&&(n.operator&&(Z=e.getOrAddBufferByName(t.id,i.bufferName),e.addMessage(Z,i.message)),(0,g.default)(r).call(r,s,1))}))}))}Z||(Z=e.getOrAddBufferByName(n,H)),e.addMessage(Z,te)}if("wallops"===s){var ie=e.getOrAddBufferByName(n,"*"),se=A.formatText("wallops",{text:r.message});e.addMessage(ie,{time:u,server_time:l,nick:r.nick,message:se,type:"wallops"})}if("join"===s){r.nick===a.user.nick&&t.buffers.forEach((function(t){((0,w.default)(t).redirect_to||"").toLowerCase()===r.channel.toLowerCase()&&(e.$delete((0,w.default)(t),"redirect_to"),t.rename(r.channel))}));var re=e.getOrAddBufferByName(n,r.channel);re.name!==r.channel&&re.rename(r.channel),e.addUserToBuffer(re,{nick:r.nick,username:r.ident,host:r.hostname,realname:r.gecos,account:r.account||""}),r.nick===a.user.nick&&(re.enabled=!0,re.joined=!0,(0,w.default)(re).channel_badkey=!1,t.ircClient.raw("MODE",r.channel),t.ircClient.who(r.channel));var ae=re.setting("show_hostnames")?A.formatUserFull(r):A.formatUser(r),oe=A.formatAndT("channel_join",null,"has_joined",{nick:ae}),ce=r.nick===t.nick?"join_self":"join";e.addMessage(re,{time:u,server_time:l,nick:r.nick,message:oe,type:"traffic",type_extra:ce})}if("kick"===s){var ue,le=e.getOrAddBufferByName(n,r.channel);e.removeUserFromBuffer(le,r.kicked);var fe="";r.kicked===a.user.nick?(le.joined=!1,le.enabled=!1,le.clearUsers(),fe=A.formatAndT("channel_selfkick",{reason:r.message},"kicked_you_from",{nick:A.formatUser(r),channel:r.channel})):fe=A.formatAndT("channel_kicked",{reason:r.message},"was_kicked_from",{nick:r.kicked,channel:r.channel,chanop:A.formatUser(r.nick)});var de=(0,_.default)(ue=[r.kicked,r.nick]).call(ue,t.nick)?"kick_self":"kick";e.addMessage(le,{time:u,server_time:l,nick:r.nick,message:fe,type:"traffic",type_extra:de})}if("part"===s){var pe=e.getBufferByName(n,r.channel);if(!pe)return;e.removeUserFromBuffer(pe,r.nick),r.nick===a.user.nick&&(pe.joined=!1,pe.enabled=!1,pe.clearUsers());var he=e.getBuffersWithUser(n,r.nick);0===he.length&&e.removeUser(n,{nick:r.nick});var we=pe.setting("show_hostnames")?A.formatUserFull(r):A.formatUser(r),me=A.formatAndT("channel_part",{reason:r.message},"has_left",{nick:we}),ve=r.nick===t.nick?"part_self":"part";e.addMessage(pe,{time:u,server_time:l,nick:r.nick,message:me,type:"traffic",type_extra:ve})}if("quit"===s){var ge=e.getBuffersWithUser(n,r.nick);ge.forEach((function(n){if(n){r.nick===a.user.nick&&(n.joined=!1,n.clearUsers());var i=n.setting("show_hostnames")?A.formatUserFull(r):A.formatUser(r),s=A.formatAndT("channel_quit",{reason:r.message},"has_left",{nick:i}),o=r.nick===t.nick?"quit_self":"quit";e.addMessage(n,{time:u,server_time:l,nick:r.nick,message:s,type:"traffic",type_extra:o})}}));var _e=e.getUser(n,r.nick);_e&&(_e.away="offline"),e.removeUser(n,{nick:r.nick})}if("invite"===s){var ke=t.serverBuffer(),be=e.getActiveNetwork(),ye=e.getActiveBuffer();t!==be||ye.isSpecial()||(ke=ye);var Ce=r.invited===t.currentUser().nick?"invited_you":"invited_other";e.addMessage(ke,{nick:"",time:u,server_time:l,type:"invite",message:A.t(Ce,{nick:r.nick,invited:r.invited,channel:r.channel})})}if("account"===s&&e.addUser(n,{nick:r.nick,account:r.account||""}),"whois"===s){var xe={nick:r.nick,host:r.hostname,username:r.ident,away:r.away||"",realname:r.real_name,hasWhois:!0};["actual_host","helpop","bot","server","server_info","operator","channels","modes","idle","logon","registered_nick","account","secure","certfp","special"].forEach((function(e){"undefined"!==typeof r[e]&&(xe[e]=r[e])})),e.addUser(n,xe)}if("away"===s){e.addUser(n,{nick:r.nick,away:r.message||""});var $e=e.getActiveBuffer();$e&&r.nick===t.nick&&(t.away="away",e.addMessage($e,{time:u,server_time:l,nick:"*",type:"presence",message:r.message}))}if("back"===s){e.addUser(n,{nick:r.nick,away:""});var Se=e.getActiveBuffer();Se&&r.nick===t.nick&&(t.away="",e.addMessage(Se,{time:u,server_time:l,nick:"*",type:"presence",message:r.message}))}if("wholist"===s&&e.usersTransaction(n,(function(i){r.users.forEach((function(s){var r={nick:s.nick,host:s.hostname||void 0,username:s.ident||void 0,away:s.away?"Away":"",realname:s.real_name,account:s.account||void 0},a=e.addUser(n,r,i);if(a){var o=t.bufferByName(s.channel);if(o&&a.buffers[o.id]){var c=a.buffers[o.id].modes;s.channel_modes.forEach((function(e){-1===c.indexOf(e)&&c.push(e)}))}}}))})),"channel list start"===s&&(t.channel_list_cache=[],t.channel_list_state="updating"),"channel list"===s){var Oe;t.channel_list_state="updating";var Ne=(0,k.default)(S.default).call(S.default,r,(function(e){return"*"!==e.channel}));t.channel_list_cache=(0,b.default)(Oe=t.channel_list_cache||[]).call(Oe,Ne)}if("channel list end"===s&&(t.channel_list=t.channel_list_cache||[],t.channel_list_state="updated",delete t.channel_list_cache),"motd"===s){var Ae=t.serverBuffer(),Te=A.formatText("motd",{text:r.motd});e.addMessage(Ae,{time:u,server_time:l,nick:"",message:Te,type:"motd"})}if("nick in use"===s&&!a.connection.registered){var Me=a.user.nick+R(1,100),Pe=A.formatAndT("nickname_alreadyinuse",null,"nick_in_use_retrying",{nick:a.user.nick,newnick:Me});t.buffers.forEach((function(t){e.addMessage(t,{time:u,server_time:l,nick:"",message:Pe,type:"error"})})),a.changeNick(Me)}if("nick in use"===s&&a.connection.registered){var Be=e.getActiveBuffer();Be&&e.addMessage(Be,{time:u,server_time:l,nick:"",type:"error",message:"The nickname '".concat(r.nick,"' is already in use!")})}if("nick"===s){r.nick===a.user.nick&&(t.nick=r.new_nick),e.changeUserNick(n,r.nick,r.new_nick);var je=A.formatAndT("nick_changed",null,"now_known_as",{nick:r.nick,newnick:r.new_nick}),Ee=t.nick===r.new_nick?"nick_self":"",Ie=e.getBuffersWithUser(n,r.new_nick);Ie.forEach((function(t){e.addMessage(t,{time:u,server_time:l,nick:"",message:je,type:"nick",type_extra:Ee})}))}if("userlist"===s){var Le,Ue=e.getOrAddBufferByName(n,r.channel),Re=(0,k.default)(Le=(0,y.default)(Ue.users)).call(Le,(function(e){return e!==t.ircClient.user.nick})).length>0,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<w)return-1;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])}))},useColouredNicks:function(){return this.buffer.setting("coloured_nicklist")}},methods:{userModePrefix:function(e){return this.buffer.userModePrefix(e)},userMode:function(e){return this.buffer.userMode(e)},openQuery:function(e){var t=this.$state.addBuffer(this.buffer.networkid,e.nick);this.$state.setActiveBuffer(t.networkid,t.name),this.$state.ui.is_narrow&&this.sidebarState.close()},openUserbox:function(e){this.$state.$emit("userbox.show",e,{buffer:this.buffer})},toggleUserFilter:function(){var e=this;this.filter_visible=!this.filter_visible,this.filter_visible?this.$nextTick((function(){return e.$refs.user_filter.focus()})):this.user_filter=""},onFilterBlur:function(){this.user_filter||(this.filter_visible=!1)}}};t.default=f,window._kiwi_exports=window._kiwi_exports||{},window._kiwi_exports["components"]||(window._kiwi_exports["components"]={}),window._kiwi_exports["components"]["Nicklist"],window._kiwi_exports.components.Nicklist=t.default?t.default:t}).call(this,n("24aa"))},"77c8":function(e,t,n){"use strict";n("ed7b")},"780b":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.props.user&&""!==t.$options.m.status(t.props)?i("span",{staticClass:"kiwi-typingstatusindicator kiwi-typing",class:(n={"kiwi-typingstatusindicator--paused":"paused"===t.$options.m.status(t.props)},n[t.data.staticClass]=!0,n)}):t._e()},s=[]},"785b":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i={props:["error"]};t.default=i,window._kiwi_exports=window._kiwi_exports||{},window._kiwi_exports["components"]||(window._kiwi_exports["components"]={}),window._kiwi_exports["components"]["StartupError"],window._kiwi_exports.components.StartupError=t.default?t.default:t},"787b":function(e,t,n){"use strict";n.r(t);var i=n("fd86"),s=n("8049");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},"78e0":function(e,t,n){"use strict";n.r(t);var i=n("0be2"),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},"78fd":function(e,t,n){"use strict";n.r(t);var i=n("dc0d"),s=n("ddcd");for(var r in s)"default"!==r&&function(e){n.d(t,e,(function(){return s[e]}))}(r);n("d4b7");var a=n("0c7c"),o=Object(a["a"])(s["default"],i["a"],i["b"],!1,null,null,null);t["default"]=o.exports},"7a12":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-appsettings"},[n("div",{staticClass:"kiwi-appsettings-close",on:{click:e.closeSettings}},[n("span",[e._v(e._s(e.$t("close")))]),n("i",{staticClass:"fa fa-times",attrs:{"aria-hidden":"true"}})]),n("form",{staticClass:"u-form"},[n("tabbed-view",{ref:"tabs",staticClass:"kiwi-appsettings-tab-container"},[n("tabbed-tab",{attrs:{header:e.$t("settings_general"),focus:!0,name:"general"}},[n("div",{staticClass:"kiwi-appsettings-block"},[n("h3",[e._v(e._s(e.$t("settings_general")))]),n("div",{staticClass:"kiwi-appsettings-section kiwi-appsettings-general"},[n("label",{staticClass:"kiwi-appsettings-setting-language"},[n("span",[e._v(e._s(e.$t("settings_language")))]),n("div",[n("i",{staticClass:"fa fa-globe"})]),n("select",{directives:[{name:"model",rawName:"v-model",value:e.settingLanguage,expression:"settingLanguage"}],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.settingLanguage=t.target.multiple?n:n[0]}}},[n("option",{attrs:{value:""}},[e._v(" Auto ")]),e._l(e.localesList,(function(t){return n("option",{key:t[0],domProps:{value:t[0]}},[e._v(" "+e._s(t[1])+" ")])}))],2)]),n("label",{staticClass:"kiwi-appsettings-setting-theme"},[n("span",[e._v(e._s(e.$t("settings_theme"))+" ")]),n("a",{staticClass:"kiwi-appsettings-theme-reload",attrs:{title:e.$t("refresh_theme")},on:{click:e.refreshTheme}},[n("i",{staticClass:"fa fa-refresh",attrs:{"aria-hidden":"true"}})]),n("select",{directives:[{name:"model",rawName:"v-model",value:e.theme,expression:"theme"}],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.theme=t.target.multiple?n:n[0]}}},e._l(e.settings.themes,(function(t){return n("option",{key:t.name,domProps:{value:t.name}},[e._v(" "+e._s(t.name)+" ")])})),0)]),"custom"===e.theme?n("label",[n("span",[e._v(e._s(e.$t("settings_themeurl"))+" ")]),n("input",{directives:[{name:"model",rawName:"v-model",value:e.customThemeUrl,expression:"customThemeUrl"}],staticClass:"u-input",domProps:{value:e.customThemeUrl},on:{input:function(t){t.target.composing||(e.customThemeUrl=t.target.value)}}})]):e._e(),n("label",{staticClass:"u-checkbox-wrapper"},[n("span",[e._v(e._s(e.$t("settings_show_autocomplete"))+" ")]),n("input",{directives:[{name:"model",rawName:"v-model",value:e.settingShowAutoComplete,expression:"settingShowAutoComplete"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.settingShowAutoComplete)?e._i(e.settingShowAutoComplete,null)>-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;i<n.length;i++){var s=n[i];if(e==="{{"+s+"}}")return this.valReplacements[s];t=t.replace("{{"+s+"}}",this.valReplacements[s])}return t}}]),e}();t.default=w,window._kiwi_exports=window._kiwi_exports||{},window._kiwi_exports["libs"]||(window._kiwi_exports["libs"]={}),window._kiwi_exports["libs"]["ConfigLoader"],window._kiwi_exports.libs.ConfigLoader=t.default?t.default:t},"7b8e":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n("5ee5"),s=i.component("input-confirm",{props:["label","flipConnotation"],data:function(){return{state:"pre"}},computed:{connoteCss:function(){return{yes:this.flipConnotation?"warning":"primary",no:this.flipConnotation?"primary":"warning"}}},created:function(){this.$slots.default||(this.state="prompt")},methods:{prompt:function(){this.state="prompt"},complete:function(e){this.$emit("submit",e),this.$emit(e?"ok":"cancel"),this.state="pre"}}});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"]["InputConfirm"],window._kiwi_exports.components.utils.InputConfirm=t.default?t.default:t},"7b98":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-theme-bg",class:{"kiwi-wrap--statebrowser-drawopen":e.stateBrowserDrawOpen,"kiwi-wrap--monospace":e.$state.setting("useMonospace"),"kiwi-wrap--touch":e.$state.ui.is_touch},attrs:{"data-activebuffer":e.buffer?e.buffer.name.toLowerCase():""},on:{click:e.emitDocumentClick,"!paste":function(t){return e.emitBufferPaste.apply(null,arguments)}}},[n("link",{attrs:{href:e.themeUrl,rel:"stylesheet",type:"text/css"}}),!e.hasStarted||!e.fallbackComponent&&0===e.networks.length?[n(e.startupComponent,{tag:"component",on:{start:e.startUp}})]:[n("state-browser",{attrs:{networks:e.networks,"sidebar-state":e.sidebarState}}),n("div",{staticClass:"kiwi-workspace",class:{"kiwi-workspace--disconnected":e.network&&"connected"!==e.network.state},on:{click:function(t){e.stateBrowserDrawOpen=!1}}},[n("div",{staticClass:"kiwi-workspace-background"}),!e.activeComponent&&e.network?[n("container",{attrs:{network:e.network,buffer:e.buffer,"sidebar-state":e.sidebarState},scopedSlots:e._u([e.mediaviewerOpen?{key:"before",fn:function(){return[n("media-viewer",{staticClass:"kiwi-main-mediaviewer",attrs:{url:e.mediaviewerUrl,component:e.mediaviewerComponent,"component-props":e.mediaviewerComponentProps,"is-iframe":e.mediaviewerIframe},on:{close:function(t){return e.$state.$emit("mediaviewer.hide",{source:"user"})}}})]},proxy:!0}:null],null,!0)}),e.buffer.show_input?n("control-input",{attrs:{container:e.networks,buffer:e.buffer}}):e._e()]:e.activeComponent?n(e.activeComponent,e._b({tag:"component"},"component",e.activeComponentProps,!1)):n(e.fallbackComponent,e._b({tag:"component"},"component",e.fallbackComponentProps,!1))],2)]],2)},s=[]},"7c06":function(e,t,n){"use strict";n.r(t);var i=n("98fc"),s=n("059c");for(var r in s)"default"!==r&&function(e){n.d(t,e,(function(){return s[e]}))}(r);n("81c6");var a=n("0c7c"),o=Object(a["a"])(s["default"],i["a"],i["b"],!1,null,null,null);t["default"]=o.exports},"7cbf":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("6b47")),u=a(n("89ba")),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={data:function(){return{title:"Where are you connecting today?",buttonText:"",server_type:"default",server:"",tls:!1,nick:"",password:"",encoding:"utf8",channel:"",znc_network:"",znc_network_support:!0,direct:!1,direct_path:"",show_type_switcher:!0,show_password_box:!1,is_connecting:!1,network:null}},created:function(){var e=(0,u.default)(c.default.mark((function e(){var t,n,i,s,r,a,o=this;return c.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t=!1,this.$state.networks.length>0?(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:"<b>"+e.server.server+"</b>"}))}}),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<i.length;s++)if(i[s].contains(t.target))return;e.activePrompt.type=void 0,e.activePrompt.value=void 0}}))},methods:{clickAddNetwork:function(){var e="Guest"+Math.floor(100*Math.random()),t=this.$state.getNetworkFromAddress("");"undefined"===typeof t&&(t=this.$state.addNetwork("Network",e,{})),t.showServerBuffer("settings")},clickAppSettings:function(){this.$state.$emit("active.component.toggle",c.default)},hideStatebrowser:function(){this.$state.$emit("statebrowser.hide")}}};t.default=l,window._kiwi_exports=window._kiwi_exports||{},window._kiwi_exports["components"]||(window._kiwi_exports["components"]={}),window._kiwi_exports["components"]["StateBrowser"],window._kiwi_exports.components.StateBrowser=t.default?t.default:t},"83d5":function(e,t,n){"use strict";n.r(t);var i=n("8cc3"),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},"858d":function(e,t,n){"use strict";var i=n("1bd5");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=n("5a16"),r=i(n("9c24")),a=i(n("787b")),o=i(n("462f")),c=i(n("3b2f")),u={props:{},showRealName:function(){var e=this.props;if(!e.ml.buffer.setting("show_realnames"))return!1;var t=e.ml.buffer.getNetwork().ircClient;return!!t.network.cap.isEnabled("extended-join")&&(!(!e.message.user||!e.message.user.realname)&&(e.message.user.nick.toLowerCase()!==e.message.user.realname.toLowerCase()&&!s.urlRegex.test(e.message.user.realname)))},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.ml.hover_nick.toLowerCase()},isMessage:function(e){var t=["privmsg","action","notice","message"];return t.indexOf(e.type)>-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;i++){var s=(0,l.default)(f.default).call(f.default,t.networks,["id",n.id])+e;if(n=s>=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:'<div v-if="active" class="u-tabbed-content"><slot></slot></div>'});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='<a target="_blank" href="'.concat(o,'" rel="noopener noreferrer">')).call(n,s,"</a>");if(i.addHandle){var u,l,f=i.handleClass||"",d=i.handleContent||"";c+=(0,r.default)(u=(0,r.default)(l='<a data-url="'.concat((0,a.escape)(e.meta.url),'" class="')).call(l,f,'">')).call(u,d,"</a>")}return c}function f(e){var t=(0,a.escape)(e.meta.user),n=e.meta.colour;return'<a class="kiwi-nick" data-nick="'.concat(t,'"')+(n?' style="color:'.concat(n,'"'):"")+">".concat(t,"</a>")}function d(e){var t;return(0,r.default)(t='<a class="u-link kiwi-channel" data-channel-name="'.concat((0,a.escape)(e.meta.channel),'">')).call(t,(0,a.escape)(e.content),"</a>")}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='<img class="'.concat(f,'" src="')).call(u,d,'" alt="')).call(c,(0,a.escape)(e.content),'" title="')).call(o,(0,a.escape)(e.content),'" />')}function h(e,t,n){return""===n&&""===t?e:"<span"+(""!==n?' style="'.concat(n,'"'):"")+(""!==t?' class="'.concat(t,'"'):"")+">".concat(e,"</span>")}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;n<t.length;n++)t[n]=l.linkifyChannels(t[n]);return t.join(" ")},isSelf:function(){return this.user===this.network.currentUser()}},watch:{user:function(){this.whoisRequested=!1,this.whoisLoading=!1}},methods:{userModeOnThisBuffer:function(e){if(!this.buffer)return"";var t=e.buffers[this.buffer.id],n=t.modes;return n.length>0?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 n<i?-1:n>i?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<this.state.networks.length;e++){var t=this.state.networks[e],n=t.ircClient;if("connected"===t.state&&n.network.cap.isEnabled("bouncer")){this.controllerNetwork=t;break}}return this.controllerNetwork}},{key:"onNetworkMotd",value:function(){var e=(0,u.default)(s.default.mark((function e(t,n){var i,r,a,o,c;return s.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(i=n.ircClient,this.bnc.enabled){e.next=3;break}return e.abrupt("return");case 3:if(i.network.cap.isEnabled("bouncer")){e.next=6;break}return m.debug("BOUNCER cap not available on network ".concat(n.name,", not using for BNC")),e.abrupt("return");case 6:if(i.bnc.hasNetwork()&&!n.connection.bncnetid&&(n.connection.bncnetid=i.bnc.tags().netid),this.bnc.username||(r=this.parseBncCredentials(n.connection.password),a=(0,l.default)(r,2),o=a[0],c=a[1],this.bnc.username=o,this.bnc.password=c),!i.bnc.hasNetwork()){e.next=11;break}return e.next=11,this.syncBncNetwork(n);case 11:if(n.connection.bncnetid){e.next=14;break}return e.next=14,this.initAndAddNetworks(n);case 14:case"end":return e.stop()}}),e,this)})));function t(t,n){return e.apply(this,arguments)}return t}()},{key:"onNetworkState",value:function(e,t){var n=this.getController()===t;if(n&&"disconnected"===e.state){var i=this.state.getNetworkFromBncNetId(e.networkId);i&&i.ircClient.connection.transport.close()}}},{key:"initAndAddNetworks",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:n=t.ircClient,this.bnc.registered=!0,t.ircClient.bnc.hasNetwork()?(t.hidden=!1,t.is_bnc=!1):(t.hidden=!0,t.is_bnc=!0),n.bnc.getNetworks();case 4:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"onBouncerNetworks",value:function(e){var t=this;if(m.debug("Got ".concat(e.length," networks from the BNC"),e),e.forEach((function(e){return t.addNetworkToState(e)})),this.state.networks.forEach((function(n){var i,s=!!(0,a.default)(e).call(e,(function(e){return e.networkId===n.connection.bncnetid}));n.is_bnc||s||(m.debug((0,r.default)(i="Network '".concat(n.name,"' (")).call(i,n.id,") was not in the BNC, removing locally")),t.state.removeNetwork(n.id))})),this.monitorNetworkChanges(),!this.state.getActiveBuffer())if(e.length)for(var n=0;n<this.state.networks.length;n++){var i=this.state.networks[n];if(!i.is_bnc){i.showServerBuffer("settings");break}}else{var s=this.state.addNetwork("Network","",{});s.showServerBuffer("settings")}}},{key:"syncBncNetwork",value:function(){var e=(0,u.default)(s.default.mark((function e(t){var n,i,a=this;return s.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=t.ircClient,m.debug("Syncing network ".concat(t.name," from the BNC")),e.next=4,n.bnc.getBuffers(t.connection.bncnetid);case 4:i=e.sent,i.forEach((function(e){var i;t.name!==e.network&&(m((0,r.default)(i="Detected network name change while syncing buffers. ".concat(t.name," > ")).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<this.$state.ui.app_width/5},history:function(){return this.$state.setting("buffers.shared_input")?this.$state.ui.input_history:this.buffer.input_history},history_pos:{get:function(){return this.$state.setting("buffers.shared_input")?this.$state.ui.input_history_pos:this.buffer.input_history_pos},set:function(e){this.$state.setting("buffers.shared_input")?this.$state.ui.input_history_pos=e:this.buffer.input_history_pos=e}}},watch:{history_pos:function(e){var t=this.history[this.history_pos];this.$refs.input.setValue(t||"")},buffer:function(){this.$state.setting("buffers.shared_input")||this.inputRestore(),this.autocomplete_open=!1}},created:function(){var e=this;this.typingTimer=null,this.lastTypingTime=0,this.listen(this.$state,"document.keydown",(function(t){if(e.$refs.input&&!(t.ctrlKey||t.altKey||t.metaKey)&&16!==t.keyCode&&17!==t.keyCode){var n=[37,38,39,40];if(!t.shiftKey||-1===n.indexOf(t.keyCode)){var i=["input","select","textarea","button","datalist","keygen"],s=i.indexOf(t.target.tagName.toLowerCase())>-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()<o)return;e.preventDefault(),this.historyForward(),this.$nextTick((function(){t.$refs.input.selectionToEnd()}))}else if(9!==e.keyCode||e.shiftKey||e.altKey||e.metaKey||e.ctrlKey)n&&75===e.keyCode?(this.toggleInputTool(k.default),e.preventDefault()):n&&66===e.keyCode?(this.toggleBold(),e.preventDefault()):n&&73===e.keyCode?(this.toggleItalic(),e.preventDefault()):n&&85===e.keyCode&&(this.toggleUnderline(),e.preventDefault());else{var c=this.$refs.input.getCurrentWord(),u=c.word.substr(0,c.position),l=this.$refs.input.getRawText(),f=[];f=0===l.indexOf("/set")?this.buildAutoCompleteItems({settings:!0}):this.buildAutoCompleteItems({users:!0,buffers:!0}),this.openAutoComplete(f),this.autocomplete_filter=u,this.autocomplete_filtering=!1,e.preventDefault()}else e.preventDefault(),this.$refs.input.insertText("\n")},inputKeyUp:function(e){var t=this.$refs.input.getRawText(),n=this.$refs.input.getCurrentWord(),i=n.word.substr(0,n.position),s=this.$state.setting("autocompleteTokens");if(27===e.keyCode&&this.autocomplete_open)this.autocomplete_open=!1;else if(this.autocomplete_open&&""===i)this.autocomplete_open=!1;else if(this.autocomplete_open)"@"===i[0]&&(i=i.substr(1));else if("@"===i&&(0,o.default)(s).call(s,"@"))this.openAutoComplete(this.buildAutoCompleteItems({users:!0})),this.autocomplete_filtering=!0;else if("/"===t&&(0,o.default)(s).call(s,"/"))this.openAutoComplete(this.buildAutoCompleteItems({commands:!0})),this.autocomplete_filtering=!0;else if("#"===i&&(0,o.default)(s).call(s,"#"))this.openAutoComplete(this.buildAutoCompleteItems({buffers:!0})),this.autocomplete_filtering=!0;else if(9!==e.keyCode||e.shiftKey||e.altKey||e.metaKey||e.ctrlKey){if(!e.key.match(/^(Shift|Control|Alt|Enter)/)){if("/"===t[0])return;(0,c.default)(t).call(t)?this.startTyping():this.stopTyping(!0)}}else e.preventDefault();this.autocomplete_open&&this.autocomplete_filtering&&(this.autocomplete_filter=i)},submitForm:function(){var e=this.$refs.input.getValue();if(e){var t=this.$refs.input.buildIrcText();this.$state.$emit("input.raw",t),this.historyAdd(e),this.$refs.input.reset("",this.keep_focus),this.stopTyping(!1)}else!this.has_focus&&this.keep_focus&&this.$refs.input.focus()},historyAdd:function(e){var t;this.history.push(e),(0,u.default)(t=this.history).call(t,0,this.history.length-50),this.history_pos=this.history.length},historyBack:function(){var e=this.$refs.input.getRawText(),t=this.$refs.input.getValue();(0,c.default)(e).call(e)&&this.history_pos===this.history.length&&(this.historyAdd(t),this.history_pos--),this.history_pos>0&&this.history_pos--},historyForward:function(){this.history_pos<this.history.length&&this.history_pos++},focusChanged:function(e){this.has_focus="focus"===e.type,"blur"===e.type&&e.relatedTarget&&e.relatedTarget===this.$refs.sendButton||(this.keep_focus="focus"===e.type)},openAutoComplete:function(e){this.$state.setting("showAutocomplete")&&(this.autocomplete_items=e,this.autocomplete_open=!0)},buildAutoCompleteItems:function(e){var t=e||{},n=[];if(t.users){var i,s=(0,l.default)(i=(0,f.default)(h.default).call(h.default,this.buffer.users)).call(i,(function(e){var t={text:e.nick,type:"user"};return t}));this.buffer.isQuery()&&s.push({text:this.buffer.name,type:"user"}),n=(0,d.default)(n).call(n,s)}if(t.buffers){var r=[];this.buffer.getNetwork().buffers.forEach((function(e){e.isChannel()&&r.push({text:e.name,type:"buffer"})})),n=(0,d.default)(n).call(n,r)}if(t.commands){var a=[];v.default.forEach((function(e){var t,n=0===e.description.indexOf("locale_id_")?w.t(e.description.substr(10)):e.description;a.push({text:"/"+e.command,description:n,type:"command",alias:(0,l.default)(t=e.alias||[]).call(t,(function(e){return"/"+e}))})})),n=(0,d.default)(n).call(n,a)}if(t.settings){var o={},c=[];m.buildTree(o,c,this.$state.getSetting("settings"),!1),m.buildTree(o,c,this.$state.getSetting("user_settings"),!0);var u=[];(0,p.default)(o).forEach((function(e){u.push({text:e,type:"setting"})})),n=(0,d.default)(n).call(n,u)}return n},startTyping:function(){var e=this,t=this.buffer.getNetwork();t.ircClient.network.cap.isEnabled("message-tags")&&this.buffer&&this.buffer.shouldShareTyping()&&(this.typingTimer&&(clearTimeout(this.typingTimer),this.typingTimer=null),this.typingTimer=setTimeout((function(){return e.stopTyping(!0)}),3e3),Date.now()<this.lastTypingTime+3e3||(t.ircClient.typing.start(this.buffer.name),this.lastTypingTime=Date.now()))},stopTyping:function(e){var t,n=this.buffer.getNetwork();n.ircClient.network.cap.isEnabled("message-tags")&&this.buffer&&this.buffer.shouldShareTyping()&&(this.typingTimer&&(clearTimeout(this.typingTimer),this.typingTimer=null,this.lastTypingTime=0),(0,c.default)(t=this.$refs.input.getRawText()).call(t)?n.ircClient.typing.pause(this.buffer.name):n.ircClient.typing.stop(this.buffer.name,e))}}};t.default=O,window._kiwi_exports=window._kiwi_exports||{},window._kiwi_exports["components"]||(window._kiwi_exports["components"]={}),window._kiwi_exports["components"]["ControlInput"],window._kiwi_exports.components.ControlInput=t.default?t.default:t},c562:function(e,t,n){"use strict";n.r(t);var i=n("f4f2"),s=n("825b");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"],!1,null,null,null);t["default"]=o.exports},c96d:function(e,t,n){"use strict";n.r(t);var i=n("9280"),s=n("cea1");for(var r in s)"default"!==r&&function(e){n.d(t,e,(function(){return s[e]}))}(r);n("2246");var a=n("0c7c"),o=Object(a["a"])(s["default"],i["a"],i["b"],!1,null,null,null);t["default"]=o.exports},ca05: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={components:{},props:["buffer"],data:function(){return{}},computed:{settingAlertOn:{get:function(){return this.buffer.setting("alert_on")},set:function(e){var t,n,i=this.buffer.getNetwork(),r=i.connection.bncnetid;r&&i.ircClient.raw((0,s.default)(t=(0,s.default)(n="BOUNCER changebuffer ".concat(r," ")).call(n,this.buffer.name," notify=")).call(t,e));return this.buffer.setting("alert_on",e)}},settingMuteSound:{get:function(){return this.buffer.setting("mute_sound")},set:function(e){return this.buffer.setting("mute_sound",e)}},settingHideMessageCount:{get:function(){return this.buffer.setting("hide_message_counts")},set:function(e){return this.buffer.setting("hide_message_counts",e)}}}};t.default=r,window._kiwi_exports=window._kiwi_exports||{},window._kiwi_exports["components"]||(window._kiwi_exports["components"]={}),window._kiwi_exports["components"]["BufferSettings"],window._kiwi_exports.components.BufferSettings=t.default?t.default:t},ca73: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,i=e._self._c||t;return i("div",[i("img",{ref:"kiwi-loading-logo",staticClass:"kiwi-loading-logo",attrs:{src:n("134c")}}),i("canvas",{ref:"kiwi-loading-canvas",staticClass:"kiwi-loading-animation"})])},s=[]},cb48:function(e,t,n){"use strict";n("4e7a")},cc19: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("e587")),c=a(n("b6ce")),u=a(n("e4f0")),l=a(n("8b9c")),f=a(n("2ef0")),d=v(n("862b")),p=v(n("8f39")),h=a(n("b4f0")),w=a(n("c562"));function m(e){if("function"!==typeof s)return null;var t=new s,n=new s;return(m=function(e){return e?n:t})(e)}function v(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!==typeof e)return{default:e};var n=m(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 g={components:{BufferSettings:h.default,Buffer:w.default},props:["network","sidebarState","activePrompt"],data:function(){return{collapsed:!1,channel_filter:"",channel_filter_display:!1,channel_add_display:!1,channel_add_input_has_focus:!1,channel_add_input:"",show_channels:!0,show_queries:!0}},computed:{serverBuffer:function(){return this.network.serverBuffer()},isActiveNetwork:function(){return this.$state.getActiveNetwork()===this.network},totalNetworkCount:function(){return this.$state.networks.length},serverUnread:function(){if(!this.collapsed)return(0,c.default)(this.serverBuffer).unread;var e=0;return this.network.buffers.forEach((function(t){t.isSpecial()||(e+=(0,c.default)(t).unread)})),e},serverHighlight:function(){if(!this.collapsed)return(0,c.default)(this.serverBuffer).highlight;var e=!1;return this.network.buffers.forEach((function(t){t.isSpecial()||(0,c.default)(t).highlight&&(e=!0)})),e},filteredBuffers:function(){var e=this.channel_filter,t=[];return t=e?(0,u.default)(f.default).call(f.default,this.network.buffers,(function(t){var n=t.name.toLowerCase();return n.indexOf(e)>-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='<h3>Linking to your network /channel</h3> <p>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.</p> <ul> <li><a target="_blank" href="https://kiwiirc.com/nextclient/irc.server.com/#channel">https://kiwiirc.com/nextclient/irc.server.com/#channel</a></li> <li><a target="_blank" href="https://kiwiirc.com/nextclient/irc.server.com/#channel,#channel2">https://kiwiirc.com/nextclient/irc.server.com/#channel,#channel2</a></li> <li><a target="_blank" href="https://kiwiirc.com/nextclient/#irc://irc.server.com/#channel,#channel2">https://kiwiirc.com/nextclient/#irc://irc.server.com/#channel,#channel2</a></li> </ul> <p>As a bonus, you can link to multiple IRC networks at the same time:</p> <ul> <li><a target="_blank" href="https://kiwiirc.com/nextclient/#irc://irc.server.com/#channel;irc://irc.exmaple.net/#channel">https://kiwiirc.com/nextclient/#irc://irc.server.com/#channel;irc://irc.exmaple.net/#channel</a></li> </ul> <p>Or maybe you host a ZNC server and want to link to it:</p> <ul> <li><a target="_blank" href="https://kiwiirc.com/nextclient/#irc://irc.server.com/#channel?type=znc&nick=username">https://kiwiirc.com/nextclient/#irc://irc.server.com/#channel?type=znc&nick=username</a></li> </ul> <hr style="margin:4em 0"/> <h3>What\'s new in Kiwi Next?</h3> <h4>Networks and settings remembered</h4> <p>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.</p> <h4>Mobile and tablet support</h4> <p>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.</p> <h4>Embedded images and videos</h4> <p>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.</p> <h4>ZNC integration</h4> <p>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.</p> <h4>Aliases editor</h4> <p>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.</p> <h4>Raw IRC power</h4> <p>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.</p> <h4>The most IRCv3 compliant open source web IRC client</h4> <p>IRC is being pushed forward by the <a href="http://ircv3.net" target="_blank">IRCv3 working group</a> 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.</p> ';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;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?y(Object(n),!0).forEach((function(t){(0,d.default)(e,t,n[t])})):u?Object.defineProperties(e,u(n)):y(Object(n)).forEach((function(t){Object.defineProperty(e,t,c(n,t))}))}return e}function x(e){var t=arguments.length>1&&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})),i<e.content.length&&n.push({content:e.content.substr(i),styles:C({},e.styles),containsContent:!!e.content.substr(i)}),n}window._kiwi_exports=window._kiwi_exports||{},window._kiwi_exports["libs"]||(window._kiwi_exports["libs"]={}),window._kiwi_exports["libs"]["MessageParser"],window._kiwi_exports.libs.MessageParser=t.default?t.default:t},e68e:function(e){e.exports=JSON.parse('{"locales":["af-za","ar-sa","bg-bg","bs-ba","ca-es","cs-cz","da-dk","de-de","dev","el-gr","en-us","es-ar","es-em","es-es","es-us","eu-es","fi-fi","fr-fr","gl-es","he-il","hi-in","hu-hu","id-id","it-it","ja-jp","ko-kr","nl-nl","no-no","pl-pl","pt-br","pt-pt","ro-ro","ru-ru","sl-si","sq-al","sr-sp","sv-se","tr-tr","uk-ua","vi-vn","zh-cn","zh-tw"]}')},e691:function(e,t,n){},e734:function(e,t,n){},e7e3:function(e,t,n){"use strict";var i=n("1bd5");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=i(n("e7f8")),r={components:{Captcha:s.default},props:["buffer","network"],data:function(){return{forceLoader:!1}},computed:{netStatus:function(){return this.buffer.getNetwork().state},shouldShowLoading:function(){return this.maybeForceLoader(),!("disconnected"===this.network.state&&!this.forceLoader)},restrictedServer:function(){return this.$state.setting("restricted")},readyToStart:function(){return!0}},methods:{maybeForceLoader:function(){var e=this,t=2e3,n=this.network.state;"disconnected"===n||this.forceLoader||(this.forceLoader=!0,setTimeout((function(){e.forceLoader=!1}),t))},isChannel:function(){return this.buffer.isChannel()},isServer:function(){return this.buffer.isServer()},isQuery:function(){return this.buffer.isQuery()},reconnect:function(){this.readyToStart&&(this.buffer.isChannel()&&(this.buffer.enabled=!0),this.buffer.getNetwork().ircClient.connect())},showNetworkSettings:function(){var e=this.buffer.getNetwork();e.showServerBuffer("settings")}}};t.default=r,window._kiwi_exports=window._kiwi_exports||{},window._kiwi_exports["components"]||(window._kiwi_exports["components"]={}),window._kiwi_exports["components"]["NotConnected"],window._kiwi_exports.components.NotConnected=t.default?t.default:t},e7f8:function(e,t,n){"use strict";n.r(t);var i=n("8ce2"),s=n("f427");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"],!1,null,null,null);t["default"]=o.exports},e814:function(e,t,n){},e93b:function(e,t,n){"use strict";n.r(t);var i=n("50b5"),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},e9ad:function(e,t,n){},eaab:function(e,t,n){"use strict";n.r(t);var i=n("fc1b"),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},eb64:function(e,t,n){"use strict";n("c0be")},ed03:function(e,t,n){},ed31:function(e,t,n){},ed7b:function(e,t,n){},edbf:function(e,t,n){"use strict";n.r(t);var i=n("cc19"),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},eeb2:function(e,t,n){"use strict";n("e432")},eee9: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--modern",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)}}},[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;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?M(Object(n),!0).forEach((function(t){(0,f.default)(e,t,n[t])})):c?Object.defineProperties(e,c(n)):M(Object(n)).forEach((function(t){Object.defineProperty(e,t,o(n,t))}))}return e}function B(){var e={persistence:null,settings:N.configTemplates.default,user_settings:{},connection:{status:"connected",sessionId:""},ui:{active_network:0,active_buffer:"",last_active_buffers:[],app_has_focus:!0,app_width:0,app_height:0,is_touch:!1,is_narrow:!1,favicon_counter:0,current_input:"",input_history:[],input_history_pos:0,show_advanced_tab:!1},networks:[]},t=new k.default({data:function(){return{networks:{}}}}),n=new k.default({data:function(){return{networks:{}}}}),i=[],s=Object.create(null),r=new k.default({data:e,methods:{exportState:function(e){var t,n={};e&&(n.networks=(0,d.default)(t=r.networks).call(t,(function(e){var t,n={id:e.id,name:e.name,connection:{nick:e.connection.nick,server:e.connection.server,port:e.connection.port,tls:e.connection.tls,path:e.connection.path,password:e.connection.password,direct:e.connection.direct,encoding:e.connection.encoding,bncnetid:e.connection.bncnetid},auto_commands:e.auto_commands,settings:b.default.cloneDeep(e.settings),username:e.username,gecos:e.gecos,password:e.password,hidden:e.hidden,is_bnc:e.is_bnc,buffers:[]};return n.buffers=(0,d.default)(t=e.buffers).call(t,(function(e){var t={name:e.name,key:e.key,enabled:!!e.enabled,settings:b.default.cloneDeep(e.settings),latest_messages:[]};return e.latest_messages.forEach((function(e){t.latest_messages.push(e.serialise())})),t})),n})));return n.user_settings=r.user_settings,(0,p.default)(n)},importState:function(e){var s=this,a=JSON.parse(e);a&&a.networks&&(this.resetState(),a.networks.forEach((function(e){var a=new y.default(e.id,r,t,n);a.name=e.name,a.connection=P(P({},a.connection),e.connection),a.auto_commands=e.auto_commands||"",a.settings=e.settings,a.nick=e.nick||e.connection.nick,!a.connection.nick&&e.nick&&(a.connection.nick=e.nick),a.username=e.username,a.gecos=e.gecos,a.password=e.password,a.hidden=e.hidden,a.is_bnc=e.is_bnc,s.networks.push(a),e.buffers.forEach((function(e){var t=new C.default(e.name,a.id,r,i);t.key=e.key,t.enabled=!!e.enabled,t.settings=e.settings;var n=e.latest_messages||[];n.forEach((function(e){t.latest_messages.push(new $.default(e))})),a.buffers.push(t)}))}))),a&&a.user_settings&&(this.user_settings=a.user_settings)},resetState:function(){this.$set(this.$data,"user_settings",{}),this.$set(this.$data,"networks",[]),(0,h.default)(i).call(i,0)},setting:function(e,t){if("undefined"!==typeof t)return t===this.getSetting("settings."+e)?this.setSetting("user_settings."+e,null):this.setSetting("user_settings."+e,t);var n=this.getSetting("user_settings."+e),i="undefined"!==typeof n?n:this.getSetting("settings."+e);return i},getSetting:function(e){for(var t=e.split("."),n=this.$data,i=0;i<t.length;i++)if(n=n[t[i]],"undefined"===typeof n)break;return n},setSetting:function(e,t){for(var n=e.split("."),i=this.$data,s=0;s<n.length;s++){var r=n[s],a=i[r];s<n.length-1&&"undefined"===typeof a?a=this.$set(i,r,{}):s===n.length-1&&(null===t?this.$delete(i,r):this.$set(i,r,t)),i=a}return i},getActiveNetwork:function(){return this.getNetwork(this.ui.active_network)},getNetwork:function(e){var t=(0,w.default)(b.default).call(b.default,this.networks,{id:e});return t},getNetworkFromAddress:function(e){return(0,w.default)(b.default).call(b.default,this.networks,(function(t){var n=e.toLowerCase()===t.connection.server.toLowerCase();return n}))},getNetworkFromBncNetId:function(e){return(0,w.default)(b.default).call(b.default,this.networks,(function(t){return e===t.connection.bncnetid}))},addNetwork:function(e,i,s){function a(e,t){return t.id>e?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}});