text: (function(t){function e(e){for(var s,r,i=e[0],c=e[1],l=e[2],u=0,m=[];u<i.length;u++)r=i[u],Object.prototype.hasOwnProperty.call(a,r)&&a[r]&&m.push(a[r][0]),a[r]=0;for(s in c)Object.prototype.hasOwnProperty.call(c,s)&&(t[s]=c[s]);d&&d(e);while(m.length)m.shift()();return o.push.apply(o,l||[]),n()}function n(){for(var t,e=0;e<o.length;e++){for(var n=o[e],s=!0,i=1;i<n.length;i++){var c=n[i];0!==a[c]&&(s=!1)}s&&(o.splice(e--,1),t=r(r.s=n[0]))}return t}var s={},a={app:0},o=[];function r(e){if(s[e])return s[e].exports;var n=s[e]={i:e,l:!1,exports:{}};return t[e].call(n.exports,n,n.exports,r),n.l=!0,n.exports}r.m=t,r.c=s,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var s in t)r.d(n,s,function(e){return t[e]}.bind(null,s));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="/";var i=window["webpackJsonp"]=window["webpackJsonp"]||[],c=i.push.bind(i);i.push=e,i=i.slice();for(var l=0;l<i.length;l++)e(i[l]);var d=c;o.push([0,"chunk-vendors"]),n()})({0:function(t,e,n){t.exports=n("56d7")},"03bd":function(t){t.exports=JSON.parse('{"separator":": ","id":"ID","update":"Atualizar","details":"Detalhes","actions":"Ações","select-namespace":"Selecione o e","namespace":"Espaço de nome","namespaces":"Espaço de nomes","disconnect":"Desconectar","name":"Nome","value":"Valor","type":"Tipo","status":"Status","connected":"conectado","disconnected":"desconectado","connection":{"title":"Conexão","serverUrl":"URL do Servidor","username":"Usuário","password":"Senha","connect":"Conectar","invalid-credentials":"Credenciais inválidas","error":"Error","websocket-only":"Apenas WebSocket?","path":"Caminho"},"dashboard":{"title":"Dashboard"},"sockets":{"title":"Sockets","details":"Detalhes do Socket","address":"Endereço IP","transport":"Transporte","disconnect":"Desconectar esta instância","displayDetails":"Exibir os detalhes desta instância","client":"Cliente","socket":"Socket","creation-date":"Data de criação","leave":"Saia desta sala","join":"Entrar","join-a-room":"Entrar em uma sala","initial-request":"Solicitação HTTP inicial","headers":"Cabeçalhos","query-params":"Parâmetros de consulta"},"rooms":{"title":"Salas","details":"Detalhes da sala","active":"Ativa","deleted":"Deletada","public":"Pública","private":"Privada","show-private":"Mostrar salas privadas?","sockets-count":"# de sockets","clear":"Remover todas as instâncias de Socket desta sala","leave":"Remover a instância de Socket desta sala","disconnect":"Desconecte todas as instâncias de Socket que estão nesta sala","displayDetails":"Exibir os detalhes desta sala"},"clients":{"title":"Clientes","details":"Detalhes do cliente","sockets-count":"# de sockets","disconnect":"Desconecte este cliente (e todas as instâncias anexadas)","displayDetails":"Mostrar os detalhes deste cliente"},"servers":{"title":"Servidores","hostname":"Nome do Host","pid":"PID","uptime":"Tempo de atividade","clients-count":"# de clientes","last-ping":"Último ping","healthy":"Bom","unhealthy":"Ruim"},"config":{"language":"Idioma","readonly":"Somente leitura?","dark-theme":"Tema escuro?"}}')},1016:function(t,e,n){"use strict";n("1dbe")},"1a90":function(t,e,n){},"1dbe":function(t,e,n){},2224:function(t,e,n){t.exports=n.p+"img/logo-dark.3727fec5.svg"},"423e":function(t){t.exports=JSON.parse('{"separator":": ","id":"ID","update":"更新","details":"详情","actions":"Actions","select-namespace":"选择 Namespace","namespace":"Namespace","namespaces":"Namespaces","disconnect":"断开连接","name":"名称","value":"值","type":"类型","status":"状态","connected":"已连接","disconnected":"未连接","connection":{"title":"连接","serverUrl":"服务器 URL","username":"用户名","password":"密码","connect":"提交","invalid-credentials":"无效的密钥","error":"错误"},"dashboard":{"title":"状态面板"},"sockets":{"title":"Sockets","details":"Socket 详情","address":"IP 地址","transport":"协议","disconnect":"与该 Socket 实例断开连接","displayDetails":"显示该 Socket 实例详情","client":"客户端","socket":"Socket","creation-date":"创建时间","leave":"离开房间","join":"加入","join-a-room":"加入房间","initial-request":"初始 HTTP 请求","headers":"Headers","query-params":"查询参数"},"rooms":{"title":"房间","details":"房间 详情","active":"活跃","deleted":"已删除","public":"公开","private":"私有","show-private":"显示私人房间？","sockets-count":"Sockets 数量","clear":"从此房间移除所有 Socket 实例","leave":"从该房间移除此 Socket 实例","disconnect":"与此房间内所有 Socket 实例断开连接","displayDetails":"显示此房间详情"},"clients":{"title":"客户端","details":"客户端详情","sockets-count":"Sockets 数量","disconnect":"与该客户端断开连接","displayDetails":"显示该客户端详情"},"servers":{"title":"服务器","hostname":"Hostname","pid":"PID","uptime":"已经运行","clients-count":"客户端数量","last-ping":"上次 ping","healthy":"健康","unhealthy":"不健康"},"config":{"language":"语言","readonly":"只读","dark-theme":"夜间模式"}}')},"49f8":function(t,e,n){var s={"./bn.json":"8782","./en.json":"edd4","./fr.json":"f693","./ko.json":"dd11","./pt-BR.json":"03bd","./zh-CN.json":"423e"};function a(t){var e=o(t);return n(e)}function o(t){if(!n.o(s,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return s[t]}a.keys=function(){return Object.keys(s)},a.resolve=o,t.exports=a,a.id="49f8"},"56d7":function(t,e,n){"use strict";n.r(e);n("e260"),n("e6cf"),n("cca6"),n("a79d");var s=n("2b0e"),a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-app",[n("AppBar",{on:{update:function(e){t.showConnectionModal=!0}}}),n("NavigationDrawer"),n("v-main",{class:t.backgroundColor},[n("v-container",{attrs:{fluid:""}},[n(t.transitionName,{tag:"component",attrs:{"hide-on-leave":""}},[n("router-view")],1)],1)],1),n("ConnectionModal",{attrs:{"is-open":t.showConnectionModal,"initial-server-url":t.serverUrl,"initial-ws-only":t.wsOnly,"initial-path":t.path,"is-connecting":t.isConnecting,error:t.connectionError},on:{submit:t.onSubmit}})],1)},o=[],r=n("5530"),i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-app-bar",{attrs:{app:"","clipped-left":""}},[n("v-img",{attrs:{src:t.logoSrc,alt:"logo","max-height":"40","max-width":"40"}}),n("v-toolbar-title",{staticClass:"ml-3"},[t._v("Socket.IO Admin UI")]),n("v-btn",{staticClass:"pa-0 ml-2 elevation-0",attrs:{small:"",href:t.linkToReleaseNotes}},[t._v(t._s(t.version))]),n("v-spacer"),n("div",{staticClass:"d-flex"},[n("div",[n("div",[t._v(" "+t._s(t.$t("connection.serverUrl"))+t._s(t.$t("separator"))),t.serverUrl?n("code",[t._v(t._s(t.serverUrl))]):t._e()]),n("div",[t._v(" "+t._s(t.$t("status"))+t._s(t.$t("separator"))),n("ConnectionStatus",{attrs:{connected:t.connected}})],1)]),n("v-btn",{staticClass:"ml-3 align-self-center",on:{click:t.onUpdate}},[t._v(t._s(t.$t("update")))])],1)],1)},c=[],l=n("2f62"),d=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("Status",{attrs:{value:t.connected,"ok-label":t.$t("connected"),"ko-label":t.$t("disconnected")}})},u=[],m=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-chip",{staticClass:"text-uppercase",attrs:{small:"",color:t.color,outlined:""}},[t._v(t._s(t.label))])},p=[],v=n("fcf4"),f={name:"Status",props:{value:Boolean,koLabel:String,okLabel:String},computed:{label:function(){return this.value?this.okLabel:this.koLabel},color:function(){return this.value?v["a"].green.base:v["a"].red.base}}},h=f,b=n("2877"),k=n("6544"),_=n.n(k),g=n("cc20"),y=Object(b["a"])(h,m,p,!1,null,null,null),S=y.exports;_()(y,{VChip:g["a"]});var C={name:"ConnectionStatus",components:{Status:S},props:{connected:Boolean}},O=C,$=Object(b["a"])(O,d,u,!1,null,null,null),j=$.exports,x="0.2.0",V={name:"AppBar",components:{ConnectionStatus:j},data:function(){return{version:x}},computed:Object(r["a"])(Object(r["a"])({},Object(l["d"])({logoSrc:function(t){return t.config.darkTheme?n("2224"):n("ea65")},serverUrl:function(t){return t.connection.serverUrl},connected:function(t){return t.connection.connected}})),{},{linkToReleaseNotes:function(){return"https://github.com/socketio/socket.io-admin-ui/releases/tag/"+x}}),methods:{onUpdate:function(){this.$emit("update")}}},w=V,D=n("40dc"),T=n("8336"),I=n("adda"),R=n("2fa4"),N=n("2a7f"),E=Object(b["a"])(w,i,c,!1,null,null,null),P=E.exports;_()(E,{VAppBar:D["a"],VBtn:T["a"],VImg:I["a"],VSpacer:R["a"],VToolbarTitle:N["a"]});var L=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-navigation-drawer",{staticClass:"elevation-3",attrs:{app:"",clipped:"",permanent:""},scopedSlots:t._u([{key:"append",fn:function(){return[n("v-divider"),n("div",{staticClass:"pa-3 pt-10"},[n("LangSelector"),n("ThemeSelector"),n("ReadonlyToggle")],1)]},proxy:!0}])},[n("v-list",{attrs:{dense:"",nav:""}},t._l(t.items,(function(e){return n("v-list-item",{key:e.title,attrs:{to:e.to,exact:e.exact}},[n("v-list-item-icon",[n("v-icon",[t._v(t._s(e.icon))])],1),n("v-list-item-content",[n("v-list-item-title",[t._v(t._s(e.title))])],1)],1)})),1)],1)},U=[],B=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-select",{attrs:{dense:"",value:t.lang,items:t.languages,label:t.$t("config.language")},on:{change:t.onSelectLang}})},M=[],A={name:"LangSelector",data:function(){return{languages:[{text:"বাংলা",value:"bn"},{text:"English",value:"en"},{text:"Français",value:"fr"},{text:"Português (Brazil)",value:"pt-BR"},{text:"한국어",value:"ko"},{text:"简体中文",value:"zh-CN"}]}},computed:Object(r["a"])({},Object(l["d"])({lang:function(t){return t.config.lang}})),methods:Object(r["a"])(Object(r["a"])({},Object(l["c"])("config",["selectLang"])),{},{onSelectLang:function(t){this.$i18n.locale=t,this.selectLang(t)}})},q=A,F=n("b974"),H=Object(b["a"])(q,B,M,!1,null,null,null),z=H.exports;_()(H,{VSelect:F["a"]});var J=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-switch",{attrs:{"input-value":t.darkTheme,label:t.$t("config.dark-theme"),inset:"",dense:""},on:{change:t.onSelectTheme}})},W=[],K={name:"ThemeSelector",computed:Object(r["a"])({},Object(l["d"])({darkTheme:function(t){return t.config.darkTheme}})),methods:Object(r["a"])(Object(r["a"])({},Object(l["c"])("config",["selectTheme"])),{},{onSelectTheme:function(t){this.$vuetify.theme.dark=t,this.selectTheme(t)}})},Q=K,X=n("b73d"),Y=Object(b["a"])(Q,J,W,!1,null,null,null),Z=Y.exports;_()(Y,{VSwitch:X["a"]});var G=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-switch",{attrs:{"input-value":t.readonly,label:t.$t("config.readonly"),disabled:t.disabled,inset:"",dense:""},on:{change:t.toggleReadonly}})},tt=[],et={name:"ReadonlyToggle",computed:Object(r["a"])({},Object(l["d"])({readonly:function(t){return t.config.readonly},disabled:function(t){return 0===t.config.supportedFeatures.length}})),methods:Object(r["a"])({},Object(l["c"])("config",["toggleReadonly"]))},nt=et,st=Object(b["a"])(nt,G,tt,!1,null,null,null),at=st.exports;_()(st,{VSwitch:X["a"]});var ot={name:"NavigationDrawer",components:{ReadonlyToggle:at,ThemeSelector:Z,LangSelector:z},computed:{items:function(){return[{title:this.$t("dashboard.title"),icon:"mdi-home-outline",to:{name:"dashboard"},exact:!0},{title:this.$t("sockets.title"),icon:"mdi-ray-start-arrow",to:{name:"sockets"}},{title:this.$t("rooms.title"),icon:"mdi-tag-outline",to:{name:"rooms"}},{title:this.$t("clients.title"),icon:"mdi-account-circle-outline",to:{name:"clients"}},{title:this.$t("servers.title"),icon:"mdi-server",to:{name:"servers"}}]}}},rt=ot,it=n("ce7e"),ct=n("132d"),lt=n("8860"),dt=n("da13"),ut=n("5d23"),mt=n("34c3"),pt=n("f774"),vt=Object(b["a"])(rt,L,U,!1,null,null,null),ft=vt.exports;_()(vt,{VDivider:it["a"],VIcon:ct["a"],VList:lt["a"],VListItem:dt["a"],VListItemContent:ut["a"],VListItemIcon:mt["a"],VListItemTitle:ut["b"],VNavigationDrawer:pt["a"]});var ht=n("8e27"),bt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-dialog",{attrs:{value:t.isOpen,transition:"dialog-bottom-transition","max-width":"300",persistent:""}},[n("v-card",[n("v-card-title",[t._v(t._s(t.$t("connection.title")))]),n("v-card-text",[n("form",{on:{submit:function(e){return e.preventDefault(),t.onSubmit(e)}}},[n("v-text-field",{attrs:{label:t.$t("connection.serverUrl"),placeholder:"https://example.com/admin",required:""},model:{value:t.serverUrl,callback:function(e){t.serverUrl=e},expression:"serverUrl"}}),n("v-text-field",{attrs:{label:t.$t("connection.username")},model:{value:t.username,callback:function(e){t.username=e},expression:"username"}}),n("v-text-field",{attrs:{label:t.$t("connection.password"),type:"password"},model:{value:t.password,callback:function(e){t.password=e},expression:"password"}}),n("v-switch",{attrs:{label:t.$t("connection.websocket-only"),inset:"",dense:""},model:{value:t.wsOnly,callback:function(e){t.wsOnly=e},expression:"wsOnly"}}),n("v-text-field",{attrs:{label:t.$t("connection.path")},model:{value:t.path,callback:function(e){t.path=e},expression:"path"}}),n("v-btn",{staticClass:"primary",attrs:{loading:t.isConnecting,disabled:t.isConnecting||!t.isValid,type:"submit"}},[t._v(t._s(t.$t("connection.connect")))]),t.error?n("div",{staticClass:"red--text mt-3"},[t._v(" "+t._s(t.errorMessage)+" ")]):t._e()],1)])],1)],1)},kt=[],_t={name:"ConnectionModal",props:{isOpen:Boolean,isConnecting:Boolean,initialServerUrl:String,initialWsOnly:Boolean,initialPath:String,error:String},data:function(){return{serverUrl:this.initialServerUrl,wsOnly:this.initialWsOnly,path:this.initialPath,username:"",password:""}},computed:{isValid:function(){return this.serverUrl&&this.serverUrl.length},errorMessage:function(){return"invalid credentials"===this.error?this.$t("connection.invalid-credentials"):this.$t("connection.error")+this.$t("separator")+this.error}},methods:{onSubmit:function(){this.$emit("submit",{serverUrl:this.serverUrl,wsOnly:this.wsOnly,path:this.path,username:this.username,password:this.password})}}},gt=_t,yt=n("b0af"),St=n("99d9"),Ct=n("169a"),Ot=n("8654"),$t=Object(b["a"])(gt,bt,kt,!1,null,"3499bb0d",null),jt=$t.exports;_()($t,{VBtn:T["a"],VCard:yt["a"],VCardText:St["a"],VCardTitle:St["b"],VDialog:Ct["a"],VSwitch:X["a"],VTextField:Ot["a"]});var xt={set socket(t){this._socket=t},get socket(){return this._socket}},Vt=n("0789"),wt={name:"App",components:{ConnectionModal:jt,NavigationDrawer:ft,AppBar:P,VSlideXTransition:Vt["f"],VSlideXReverseTransition:Vt["e"],VSlideYTransition:Vt["h"],VSlideYReverseTransition:Vt["g"]},data:function(){return{showConnectionModal:!1,isConnecting:!1,connectionError:"",transitionName:"v-slide-x-reverse-transition"}},computed:Object(r["a"])({},Object(l["d"])({serverUrl:function(t){return t.connection.serverUrl},wsOnly:function(t){return t.connection.wsOnly},path:function(t){return t.connection.path},backgroundColor:function(t){return t.config.darkTheme?"":"grey lighten-5"}})),watch:{$route:function(t,e){t.meta.topLevel&&e.meta.topLevel?this.transitionName=t.meta.index>e.meta.index?"v-slide-y-reverse-transition":"v-slide-y-transition":this.transitionName=t.meta.topLevel?"v-slide-x-transition":"v-slide-x-reverse-transition"}},methods:{tryConnect:function(t,e,n,s){var a=this;this.isConnecting=!0,xt.socket&&(xt.socket.disconnect(),xt.socket.off("connect"),xt.socket.off("connect_error"),xt.socket.off("disconnect"));var o=Object(ht["io"])(t,{forceNew:!0,reconnection:!1,withCredentials:!0,transports:n?["websocket"]:["polling","websocket"],path:s,auth:e});o.once("connect",(function(){a.showConnectionModal=!1,a.connectionError="",a.isConnecting=!1,o.io.reconnection(!0),a.$store.commit("connection/saveConfig",{serverUrl:t,wsOnly:n,path:s}),xt.socket=o,a.registerEventListeners(o)})),o.on("connect",(function(){a.$store.commit("connection/connect")})),o.on("connect_error",(function(t){(a.isConnecting||"invalid credentials"===t.message)&&(a.showConnectionModal=!0,a.connectionError=t.message,a.isConnecting=!1)})),o.on("disconnect",(function(){a.$store.commit("connection/disconnect")}))},registerEventListeners:function(t){var e=this;t.on("session",(function(t){e.$store.commit("connection/saveSessionId",t)})),t.on("config",(function(t){e.$store.commit("config/updateConfig",t)})),t.on("server_stats",(function(t){e.$store.commit("servers/onServerStats",t)})),t.on("all_sockets",(function(t){e.$store.commit("main/onAllSockets",t)})),t.on("socket_connected",(function(t){e.$store.commit("main/onSocketConnected",t)})),t.on("socket_updated",(function(t){e.$store.commit("main/onSocketUpdated",t)})),t.on("socket_disconnected",(function(t,n,s){e.$store.commit("main/onSocketDisconnected",{nsp:t,id:n,reason:s})})),t.on("room_joined",(function(t,n,s){e.$store.commit("main/onRoomJoined",{nsp:t,room:n,id:s})})),t.on("room_left",(function(t,n,s){e.$store.commit("main/onRoomLeft",{nsp:t,room:n,id:s})}))},onSubmit:function(t){this.tryConnect(t.serverUrl,{username:t.username,password:t.password},t.wsOnly,t.path)}},created:function(){if(this.$vuetify.theme.dark=this.$store.state.config.darkTheme,this.serverUrl){var t=this.$store.state.connection.sessionId;this.tryConnect(this.serverUrl,{sessionId:t},this.wsOnly,this.path)}else this.showConnectionModal=!0}},Dt=wt,Tt=n("7496"),It=n("a523"),Rt=n("f6c4"),Nt=Object(b["a"])(Dt,a,o,!1,null,null,null),Et=Nt.exports;_()(Nt,{VApp:Tt["a"],VContainer:It["a"],VMain:Rt["a"]});var Pt,Lt,Ut=n("8c4f"),Bt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("v-breadcrumbs",{attrs:{items:t.breadcrumbItems}}),n("v-container",{attrs:{fluid:""}},[n("v-row",[n("v-col",{attrs:{sm:"12",md:"6",lg:"4"}},[n("ClientsOverview")],1),n("v-col",{attrs:{sm:"12",md:"6",lg:"4"}},[n("ServersOverview")],1),n("v-col",{attrs:{sm:"12",md:"6",lg:"4"}},[n("NamespacesOverview")],1)],1)],1)],1)},Mt=[],At=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-card",[n("v-card-title",{staticClass:"text-center"},[t._v(" "+t._s(t.$t("clients.title"))+" "),n("v-spacer"),n("v-btn",{attrs:{to:{name:"clients"},small:""}},[n("v-icon",[t._v("mdi-dots-horizontal")])],1)],1),n("v-card-text",[n("v-row",[n("Doughnut",{staticClass:"chart",attrs:{"chart-data":t.data}}),n("v-simple-table",{staticClass:"grow align-self-center",scopedSlots:t._u([{key:"default",fn:function(){return[n("tbody",[n("tr",[n("th",[t._v(t._s(t.$t("sockets.transport")))]),n("th",[t._v("#")])]),t._l(t.transports,(function(e){return n("tr",{key:e},[n("td",[n("Transport",{attrs:{transport:e}})],1),n("td",[n("div",[n("h2",[t._v(t._s(t.transportRepartition[e]||0))])]),n("div",[t._v(" "+t._s(t.percentage(t.transportRepartition[e]||0,t.clients.length))+" % ")])])])}))],2)]},proxy:!0}])})],1)],1)],1)},qt=[],Ft=(n("13d5"),n("4de4"),n("d81d"),n("1fca")),Ht=Ft["b"].reactiveProp,zt={extends:Ft["a"],mixins:[Ht],props:["options"],mounted:function(){this.renderChart(this.chartData,{legend:!1})}},Jt=zt,Wt=Object(b["a"])(Jt,Pt,Lt,!1,null,null,null),Kt=Wt.exports,Qt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-chip",{attrs:{small:"",color:t.color,outlined:""}},[t._v(t._s(t.label))])},Xt=[],Yt={name:"Transport",props:{transport:String},computed:{label:function(){switch(this.transport){case"polling":return"HTTP long-polling";case"websocket":return"WebSocket";default:return this.transport}},color:function(){switch(this.transport){case"polling":return v["a"].orange.base;case"websocket":return v["a"].green.base;default:return v["a"].grey.base}}}},Zt=Yt,Gt=Object(b["a"])(Zt,Qt,Xt,!1,null,null,null),te=Gt.exports;_()(Gt,{VChip:g["a"]});var ee=n("53ca"),ne=(n("a15b"),n("a434"),n("caad"),n("2532"),n("b680"),n("1c8f")),se=function(){var t="test";try{return localStorage.setItem(t,t),localStorage.removeItem(t),!0}catch(e){return!1}},ae=se();function oe(t){var e=Math.ceil(Math.max(t,0)),n=Math.floor(e/86400),s=Math.floor((e-86400*n)/3600),a=Math.floor((e-86400*n-3600*s)/60),o=Math.ceil(e)-86400*n-3600*s-60*a,r=[];return n>0&&r.push(n+"d"),(n>0||s>0)&&r.push(s+"h"),(n>0||s>0||a>0)&&r.push(a+"m"),r.push(o+"s"),r.join(" ")}function re(t,e){var n="object"===Object(ee["a"])(e)?Object(ne["a"])(t,e):t.indexOf(e);return-1===n?[]:t.splice(n,1)}function ie(t,e){t.includes(e)||t.push(e)}function ce(t,e){return 0===e?0:(t/e*100).toFixed(1)}var le={name:"ClientsOverview",components:{Transport:te,Doughnut:Kt},data:function(){return{transports:["websocket","polling"]}},computed:Object(r["a"])(Object(r["a"])({},Object(l["d"])({clients:function(t){return t.main.clients},darkTheme:function(t){return t.config.darkTheme}})),{},{transportRepartition:function(){return this.clients.map((function(t){return t.sockets[0]})).filter((function(t){return!!t})).reduce((function(t,e){return t[e.transport]=t[e.transport]||0,t[e.transport]++,t}),{})},data:function(){return{labels:["WebSocket","HTTP long-polling"],datasets:[{backgroundColor:[v["a"].green.base,v["a"].orange.base],borderColor:this.darkTheme?"black":"white",data:[this.transportRepartition["websocket"],this.transportRepartition["polling"]]}]}}}),methods:{percentage:ce}},de=le,ue=(n("1016"),n("0fd9")),me=n("1f4f"),pe=Object(b["a"])(de,At,qt,!1,null,"58987bf8",null),ve=pe.exports;_()(pe,{VBtn:T["a"],VCard:yt["a"],VCardText:St["a"],VCardTitle:St["b"],VIcon:ct["a"],VRow:ue["a"],VSimpleTable:me["a"],VSpacer:R["a"]});var fe=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-card",[n("v-card-title",{staticClass:"text-center"},[t._v(" "+t._s(t.$t("servers.title"))+" "),n("v-spacer"),n("v-btn",{attrs:{to:{name:"servers"},small:""}},[n("v-icon",[t._v("mdi-dots-horizontal")])],1)],1),n("v-card-text",[n("v-row",[n("Doughnut",{staticClass:"chart",attrs:{"chart-data":t.data}}),n("v-simple-table",{staticClass:"grow align-self-center",scopedSlots:t._u([{key:"default",fn:function(){return[n("tbody",[n("tr",[n("th",[t._v(t._s(t.$t("status")))]),n("th",[t._v("#")])]),n("tr",[n("td",[n("ServerStatus",{attrs:{healthy:""}})],1),n("td",[n("div",[n("h2",[t._v(t._s(t.healthyServers))])]),n("div",[t._v(t._s(t.percentage(t.healthyServers,t.totalServers))+" %")])])]),n("tr",[n("td",[n("ServerStatus")],1),n("td",[n("div",[n("h2",[t._v(t._s(t.totalServers-t.healthyServers))])]),n("div",[t._v(" "+t._s(t.percentage(t.totalServers-t.healthyServers,t.totalServers))+" % ")])])])])]},proxy:!0}])})],1)],1)],1)},he=[],be=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("Status",{attrs:{value:t.healthy,"ok-label":t.$t("servers.healthy"),"ko-label":t.$t("servers.unhealthy")}})},ke=[],_e={name:"ServerStatus",components:{Status:S},props:{healthy:Boolean}},ge=_e,ye=Object(b["a"])(ge,be,ke,!1,null,null,null),Se=ye.exports,Ce={name:"ServersOverview",components:{ServerStatus:Se,Doughnut:Kt},computed:Object(r["a"])(Object(r["a"])({},Object(l["d"])({healthyServers:function(t){return t.servers.servers.filter((function(t){return t.healthy})).length},totalServers:function(t){return t.servers.servers.length},darkTheme:function(t){return t.config.darkTheme}})),{},{data:function(){return{labels:[this.$t("servers.healthy"),this.$t("servers.unhealthy")],datasets:[{backgroundColor:[v["a"].green.base,v["a"].red.base],borderColor:this.darkTheme?"black":"white",data:[this.healthyServers,this.totalServers-this.healthyServers]}]}}}),methods:{percentage:ce}},Oe=Ce,$e=(n("db72"),Object(b["a"])(Oe,fe,he,!1,null,"d6482f56",null)),je=$e.exports;_()($e,{VBtn:T["a"],VCard:yt["a"],VCardText:St["a"],VCardTitle:St["b"],VIcon:ct["a"],VRow:ue["a"],VSimpleTable:me["a"],VSpacer:R["a"]});var xe=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-card",{staticClass:"fill-height"},[n("v-card-title",{staticClass:"text-center"},[t._v(" "+t._s(t.$t("namespaces"))+" "),n("v-spacer"),n("v-btn",{attrs:{to:{name:"sockets"},small:""}},[n("v-icon",[t._v("mdi-dots-horizontal")])],1)],1),n("v-simple-table",{scopedSlots:t._u([{key:"default",fn:function(){return[n("thead",[n("tr",[n("th",[t._v(t._s(t.$t("name")))]),n("th",[t._v(t._s(t.$t("rooms.sockets-count")))])])]),n("tbody",t._l(t.namespaces,(function(e){return n("tr",{key:e.name},[n("td",{staticClass:"key-column"},[n("code",[t._v(t._s(e.name))])]),n("td",[t._v(t._s(e.sockets.length))])])})),0)]},proxy:!0}])})],1)},Ve=[],we=n("d66c"),De={name:"NamespacesOverview",computed:Object(r["a"])({},Object(l["d"])({namespaces:function(t){return Object(we["a"])(t.main.namespaces,"name")}}))},Te=De,Ie=Object(b["a"])(Te,xe,Ve,!1,null,"0de70938",null),Re=Ie.exports;_()(Ie,{VBtn:T["a"],VCard:yt["a"],VCardTitle:St["b"],VIcon:ct["a"],VSimpleTable:me["a"],VSpacer:R["a"]});var Ne={name:"Dashboard",components:{NamespacesOverview:Re,ServersOverview:je,ClientsOverview:ve},computed:{breadcrumbItems:function(){return[{text:this.$t("dashboard.title"),disabled:!0}]}}},Ee=Ne,Pe=n("2bc5"),Le=n("62ad"),Ue=Object(b["a"])(Ee,Bt,Mt,!1,null,null,null),Be=Ue.exports;_()(Ue,{VBreadcrumbs:Pe["a"],VCol:Le["a"],VContainer:It["a"],VRow:ue["a"]});var Me=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("v-breadcrumbs",{attrs:{items:t.breadcrumbItems}}),n("v-card",[n("v-card-text",[n("NamespaceSelector")],1),n("v-data-table",{attrs:{headers:t.headers,items:t.sockets,"footer-props":t.footerProps},scopedSlots:t._u([{key:"item.transport",fn:function(t){var e=t.value;return[n("Transport",{attrs:{transport:e}})]}},{key:"item.actions",fn:function(e){var s=e.item;return[t.isSocketDisconnectSupported?n("v-tooltip",{attrs:{bottom:""},scopedSlots:t._u([{key:"activator",fn:function(e){var a=e.on,o=e.attrs;return[n("v-btn",t._g(t._b({staticClass:"ml-3",attrs:{disabled:t.isReadonly,small:""},on:{click:function(e){return t.disconnect(s)}}},"v-btn",o,!1),a),[n("v-icon",[t._v("mdi-logout")])],1)]}}],null,!0)},[n("span",[t._v(t._s(t.$t("sockets.disconnect")))])]):t._e(),n("v-tooltip",{attrs:{bottom:""},scopedSlots:t._u([{key:"activator",fn:function(e){var a=e.on,o=e.attrs;return[n("v-btn",t._g(t._b({staticClass:"ml-3",attrs:{small:""},on:{click:function(e){return t.displayDetails(s)}}},"v-btn",o,!1),a),[n("v-icon",[t._v("mdi-dots-horizontal")])],1)]}}],null,!0)},[n("span",[t._v(t._s(t.$t("sockets.displayDetails")))])])]}}])})],1)],1)},Ae=[],qe=(n("b0c0"),function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-select",{staticClass:"selector",attrs:{value:t.selectedNamespace,items:t.namespaces,"item-text":"name","item-value":"name",label:t.$t("select-namespace"),"persistent-hint":"","return-object":""},on:{change:t.selectNamespace}})}),Fe=[],He={name:"NamespaceSelector",computed:Object(r["a"])({},Object(l["d"])({selectedNamespace:function(t){return t.main.selectedNamespace},namespaces:function(t){return Object(we["a"])(t.main.namespaces,"name")}})),methods:Object(r["a"])({},Object(l["c"])("main",["selectNamespace"]))},ze=He,Je=(n("f712"),Object(b["a"])(ze,qe,Fe,!1,null,"2c330798",null)),We=Je.exports;_()(Je,{VSelect:F["a"]});var Ke={name:"Sockets",components:{Transport:te,NamespaceSelector:We},data:function(){return{footerProps:{"items-per-page-options":[20,100,-1]}}},computed:Object(r["a"])(Object(r["a"])({breadcrumbItems:function(){return[{text:this.$t("sockets.title"),disabled:!0}]},headers:function(){return[{text:"#",value:"id",align:"start"},{text:this.$t("sockets.address"),value:"handshake.address"},{text:this.$t("sockets.transport"),value:"transport"},{value:"actions",align:"end",sortable:!1}]}},Object(l["b"])("main",["sockets"])),Object(l["d"])({selectedNamespace:function(t){return t.main.selectedNamespace},isReadonly:function(t){return t.config.readonly},isSocketDisconnectSupported:function(t){return t.config.supportedFeatures.includes("DISCONNECT")}})),methods:{disconnect:function(t){xt.socket.emit("_disconnect",t.nsp,!1,t.id)},displayDetails:function(t){this.$router.push({name:"socket",params:{nsp:this.selectedNamespace.name,id:t.id}})}}},Qe=Ke,Xe=n("8fea"),Ye=n("3a2f"),Ze=Object(b["a"])(Qe,Me,Ae,!1,null,null,null),Ge=Ze.exports;_()(Ze,{VBreadcrumbs:Pe["a"],VBtn:T["a"],VCard:yt["a"],VCardText:St["a"],VDataTable:Xe["a"],VIcon:ct["a"],VTooltip:Ye["a"]});var tn=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("v-breadcrumbs",{attrs:{items:t.breadcrumbItems}}),t.socket?n("v-container",{attrs:{fluid:""}},[n("v-row",[n("v-col",{attrs:{sm:"12",md:"6",lg:"4"}},[n("SocketDetails",{attrs:{socket:t.socket,client:t.client}})],1),n("v-col",{attrs:{sm:"12",md:"6",lg:"4"}},[n("InitialRequest",{attrs:{socket:t.socket}})],1),n("v-col",{attrs:{sm:"12",md:"6",lg:"4"}},[n("SocketRooms",{attrs:{socket:t.socket}})],1)],1)],1):t._e()],1)},en=[],nn=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-card",{staticClass:"fill-height"},[n("v-card-title",[t._v(t._s(t.$t("rooms.title")))]),n("v-data-table",{attrs:{headers:t.headers,items:t.roomsAsObjects,dense:""},scopedSlots:t._u([{key:"item.actions",fn:function(e){var s=e.item;return[t.isSocketLeaveSupported?n("v-tooltip",{attrs:{bottom:""},scopedSlots:t._u([{key:"activator",fn:function(e){var a=e.on,o=e.attrs;return[n("v-btn",t._g(t._b({staticClass:"ml-3",attrs:{disabled:t.isReadonly,small:""},on:{click:function(e){return t.leave(s)}}},"v-btn",o,!1),a),[n("v-icon",[t._v("mdi-tag-off-outline")])],1)]}}],null,!0)},[n("span",[t._v(t._s(t.$t("sockets.leave")))])]):t._e(),n("v-tooltip",{attrs:{bottom:""},scopedSlots:t._u([{key:"activator",fn:function(e){var a=e.on,o=e.attrs;return[n("v-btn",t._g(t._b({staticClass:"ml-3",attrs:{small:""},on:{click:function(e){return t.displayDetails(s)}}},"v-btn",o,!1),a),[n("v-icon",[t._v("mdi-dots-horizontal")])],1)]}}],null,!0)},[n("span",[t._v(t._s(t.$t("rooms.displayDetails")))])])]}}])}),n("v-card-text",[n("form",{on:{submit:function(e){return e.preventDefault(),t.onSubmit(e)}}},[n("v-combobox",{staticClass:"select-room d-inline-block mr-3",attrs:{"search-input":t.newRoom,label:t.$t("sockets.join-a-room"),items:t.availableRooms,"item-value":"name","item-text":"name",disabled:t.isReadonly,"return-object":!1},on:{"update:searchInput":function(e){t.newRoom=e},"update:search-input":function(e){t.newRoom=e}}}),n("v-tooltip",{attrs:{bottom:""},scopedSlots:t._u([{key:"activator",fn:function(e){var s=e.on,a=e.attrs;return[n("v-btn",t._g(t._b({attrs:{type:"submit",small:"",disabled:t.isReadonly}},"v-btn",a,!1),s),[n("v-icon",[t._v("mdi-tag-plus-outline")])],1)]}}])},[n("span",[t._v(t._s(t.$t("sockets.join")))])])],1)])],1)},sn=[],an=(n("fb6a"),n("1775")),on={name:"SocketRooms",props:{socket:Object},data:function(){return{newRoom:""}},computed:Object(r["a"])(Object(r["a"])({headers:function(){return[{text:this.$t("id"),value:"name",align:"start"},{value:"actions",align:"end",sortable:!1}]},roomsAsObjects:function(){return this.socket.rooms.slice(0).sort().map((function(t){return{name:t}}))},availableRooms:function(){return Object(an["a"])(this.findRoomsByNamespace(this.socket.nsp),this.roomsAsObjects,"name")}},Object(l["d"])({selectedNamespace:function(t){return t.main.selectedNamespace},isReadonly:function(t){return t.config.readonly},isSocketLeaveSupported:function(t){return t.config.supportedFeatures.includes("LEAVE")},isSocketDisconnectSupported:function(t){return t.config.supportedFeatures.includes("DISCONNECT")}})),Object(l["b"])("main",["findRoomsByNamespace"])),methods:{emit:function(){},onSubmit:function(){xt.socket.emit("join",this.socket.nsp,this.newRoom,this.socket.id),this.newRoom=""},leave:function(t){xt.socket.emit("leave",this.socket.nsp,t.name,this.socket.id)},disconnect:function(){xt.socket.emit("_disconnect",this.socket.nsp,!1,this.socket.id)},displayDetails:function(t){this.$router.push({name:"room",params:{nsp:this.socket.nsp,name:t.name}})}}},rn=on,cn=(n("633d"),n("2b5d")),ln=Object(b["a"])(rn,nn,sn,!1,null,"d014ee1e",null),dn=ln.exports;_()(ln,{VBtn:T["a"],VCard:yt["a"],VCardText:St["a"],VCardTitle:St["b"],VCombobox:cn["a"],VDataTable:Xe["a"],VIcon:ct["a"],VTooltip:Ye["a"]});var un=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-card",{staticClass:"fill-height"},[n("v-card-title",[t._v(t._s(t.$t("details")))]),n("v-card-text",[n("h4",[t._v(t._s(t.$t("sockets.client")))])]),n("v-simple-table",{attrs:{dense:""}},[[n("tbody",[n("tr",[n("td",{staticClass:"key-column"},[t._v(t._s(t.$t("id")))]),n("td",[t._v(" "+t._s(t.client.id)+" ")]),n("td",{attrs:{align:"right"}},[t.client.connected?n("v-tooltip",{attrs:{bottom:""},scopedSlots:t._u([{key:"activator",fn:function(e){var s=e.on,a=e.attrs;return[n("v-btn",t._g(t._b({staticClass:"ml-3",attrs:{small:""},on:{click:function(e){return t.navigateToClient()}}},"v-btn",a,!1),s),[n("v-icon",[t._v("mdi-dots-horizontal")])],1)]}}],null,!1,898213143)},[n("span",[t._v(t._s(t.$t("clients.displayDetails")))])]):t._e()],1)]),n("tr",[n("td",{staticClass:"key-column"},[t._v(t._s(t.$t("status")))]),n("td",[n("ConnectionStatus",{attrs:{connected:t.client.connected}})],1),n("td",{attrs:{align:"right"}},[t.isSocketDisconnectSupported&&t.client.connected?n("v-tooltip",{attrs:{bottom:""},scopedSlots:t._u([{key:"activator",fn:function(e){var s=e.on,a=e.attrs;return[n("v-btn",t._g(t._b({attrs:{disabled:t.isReadonly,small:""},on:{click:function(e){return t.disconnectClient()}}},"v-btn",a,!1),s),[n("v-icon",[t._v("mdi-logout")])],1)]}}],null,!1,1004975867)},[n("span",[t._v(t._s(t.$t("clients.disconnect")))])]):t._e()],1)]),n("tr",[n("td",{staticClass:"key-column"},[t._v(t._s(t.$t("sockets.transport")))]),n("td",[n("Transport",{attrs:{transport:t.socket.transport}})],1),n("td")]),n("tr",[n("td",{staticClass:"key-column"},[t._v(t._s(t.$t("sockets.address")))]),n("td",[t._v(t._s(t.socket.handshake.address))]),n("td")])])]],2),n("v-card-text",[n("h4",[t._v(t._s(t.$t("sockets.socket")))])]),n("v-simple-table",{attrs:{dense:""},scopedSlots:t._u([{key:"default",fn:function(){return[n("tbody",[n("tr",[n("td",{staticClass:"key-column"},[t._v(t._s(t.$t("namespace")))]),n("td",[n("code",[t._v(t._s(t.socket.nsp))])]),n("td")]),n("tr",[n("td",{staticClass:"key-column"},[t._v(t._s(t.$t("id")))]),n("td",[t._v(t._s(t.socket.id))]),n("td")]),n("tr",[n("td",{staticClass:"key-column"},[t._v(t._s(t.$t("status")))]),n("td",[n("ConnectionStatus",{attrs:{connected:t.socket.connected}})],1),n("td",{attrs:{align:"right"}},[t.isSocketDisconnectSupported&&t.socket.connected?n("v-tooltip",{attrs:{bottom:""},scopedSlots:t._u([{key:"activator",fn:function(e){var s=e.on,a=e.attrs;return[n("v-btn",t._g(t._b({staticClass:"ml-3",attrs:{disabled:t.isReadonly,small:""},on:{click:function(e){return t.disconnectSocket()}}},"v-btn",a,!1),s),[n("v-icon",[t._v("mdi-logout")])],1)]}}],null,!1,2351110648)},[n("span",[t._v(t._s(t.$t("sockets.disconnect")))])]):t._e()],1)]),n("tr",[n("td",{staticClass:"key-column"},[t._v(t._s(t.$t("sockets.creation-date")))]),n("td",[t._v(t._s(t.creationDate))]),n("td")])])]},proxy:!0}])})],1)},mn=[],pn={name:"SocketDetails",components:{ConnectionStatus:j,Transport:te},props:{socket:Object,client:Object},computed:Object(r["a"])({creationDate:function(){return new Date(this.socket.handshake.issued).toISOString()}},Object(l["d"])({isReadonly:function(t){return t.config.readonly},isSocketDisconnectSupported:function(t){return t.config.supportedFeatures.includes("DISCONNECT")}})),methods:{navigateToClient:function(){this.$router.push({name:"client",params:{id:this.client.id}})},disconnectClient:function(){xt.socket.emit("_disconnect",this.socket.nsp,!0,this.socket.id)},disconnectSocket:function(){xt.socket.emit("_disconnect",this.socket.nsp,!1,this.socket.id)}}},vn=pn,fn=(n("9073"),Object(b["a"])(vn,un,mn,!1,null,"1a6e3452",null)),hn=fn.exports;_()(fn,{VBtn:T["a"],VCard:yt["a"],VCardText:St["a"],VCardTitle:St["b"],VIcon:ct["a"],VSimpleTable:me["a"],VTooltip:Ye["a"]});var bn=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-card",{staticClass:"fill-height"},[n("v-card-title",[t._v(t._s(t.$t("sockets.initial-request")))]),n("v-card-text",[n("h4",[t._v(t._s(t.$t("sockets.headers")))])]),n("KeyValueTable",{attrs:{object:t.socket.handshake.headers}}),n("v-card-text",[n("h4",[t._v(t._s(t.$t("sockets.query-params")))])]),n("KeyValueTable",{attrs:{object:t.socket.handshake.query}})],1)},kn=[],_n=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-simple-table",{attrs:{dense:""},scopedSlots:t._u([{key:"default",fn:function(){return[n("thead",[n("tr",[n("th",[t._v(t._s(t.$t("name")))]),n("th",[t._v(t._s(t.$t("value")))])])]),n("tbody",t._l(t.items,(function(e){var s=e.key,a=e.value;return n("tr",{key:s},[n("td",{staticClass:"key-column"},[t._v(t._s(s))]),n("td",[t._v(t._s(a))])])})),0)]},proxy:!0}])})},gn=[],yn=(n("b64b"),{name:"KeyValueTable",props:{object:Object},computed:{items:function(){var t=this,e=Object.keys(this.object);return e.sort().map((function(e){return{key:e,value:t.object[e]}}))}}}),Sn=yn,Cn=(n("786c"),Object(b["a"])(Sn,_n,gn,!1,null,"18284f59",null)),On=Cn.exports;_()(Cn,{VSimpleTable:me["a"]});var $n={name:"InitialRequest",components:{KeyValueTable:On},props:{socket:Object}},jn=$n,xn=Object(b["a"])(jn,bn,kn,!1,null,null,null),Vn=xn.exports;_()(xn,{VCard:yt["a"],VCardText:St["a"],VCardTitle:St["b"]});var wn={name:"Socket",components:{InitialRequest:Vn,SocketDetails:hn,SocketRooms:dn},data:function(){return{socket:null,client:null}},computed:Object(r["a"])({breadcrumbItems:function(){return[{text:this.$t("sockets.title"),to:{name:"sockets"}},{text:this.$t("sockets.details"),disabled:!0}]}},Object(l["b"])("main",["findSocketById","findClientById"])),mounted:function(){this.socket=this.findSocketById(this.$route.params.nsp,this.$route.params.id),this.socket&&(this.client=this.findClientById(this.socket.clientId))}},Dn=wn,Tn=Object(b["a"])(Dn,tn,en,!1,null,"14172ed0",null),In=Tn.exports;_()(Tn,{VBreadcrumbs:Pe["a"],VCol:Le["a"],VContainer:It["a"],VRow:ue["a"]});var Rn=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("v-breadcrumbs",{attrs:{items:t.breadcrumbItems}}),n("v-card",[n("v-card-text",{staticClass:"d-flex"},[n("NamespaceSelector"),n("v-switch",{staticClass:"ml-3",attrs:{label:t.$t("rooms.show-private"),inset:"",dense:""},on:{change:t.onPrivateRoomsUpdate},model:{value:t.showPrivateRooms,callback:function(e){t.showPrivateRooms=e},expression:"showPrivateRooms"}})],1),n("v-data-table",{attrs:{headers:t.headers,items:t.filteredRooms,"footer-props":t.footerProps},scopedSlots:t._u([{key:"item.sockets",fn:function(e){var n=e.item;return[t._v(" "+t._s(n.sockets.length)+" ")]}},{key:"item.isPrivate",fn:function(t){var e=t.value;return[n("RoomType",{attrs:{"is-private":e}})]}},{key:"item.actions",fn:function(e){var s=e.item;return[t.isMultiLeaveSupported&&!s.isPrivate?n("v-tooltip",{attrs:{bottom:""},scopedSlots:t._u([{key:"activator",fn:function(e){var a=e.on,o=e.attrs;return[n("v-btn",t._g(t._b({staticClass:"ml-3",attrs:{disabled:t.isReadonly,small:""},on:{click:function(e){return t.clear(s)}}},"v-btn",o,!1),a),[n("v-icon",[t._v("mdi-tag-off-outline")])],1)]}}],null,!0)},[n("span",[t._v(t._s(t.$t("rooms.clear")))])]):t._e(),t.isMultiDisconnectSupported?n("v-tooltip",{attrs:{bottom:""},scopedSlots:t._u([{key:"activator",fn:function(e){var a=e.on,o=e.attrs;return[n("v-btn",t._g(t._b({staticClass:"ml-3",attrs:{disabled:t.isReadonly,small:""},on:{click:function(e){return t.disconnect(s)}}},"v-btn",o,!1),a),[n("v-icon",[t._v("mdi-logout")])],1)]}}],null,!0)},[n("span",[t._v(t._s(t.$t("rooms.disconnect")))])]):t._e(),n("v-tooltip",{attrs:{bottom:""},scopedSlots:t._u([{key:"activator",fn:function(e){var a=e.on,o=e.attrs;return[n("v-btn",t._g(t._b({staticClass:"ml-3",attrs:{small:""},on:{click:function(e){return t.displayDetails(s)}}},"v-btn",o,!1),a),[n("v-icon",[t._v("mdi-dots-horizontal")])],1)]}}],null,!0)},[n("span",[t._v(t._s(t.$t("rooms.displayDetails")))])])]}}])})],1)],1)},Nn=[],En=(n("5319"),n("ac1f"),function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("Status",{attrs:{value:!t.isPrivate,"ok-label":t.$t("rooms.public"),"ko-label":t.$t("rooms.private")}})}),Pn=[],Ln={name:"RoomType",components:{Status:S},props:{isPrivate:Boolean}},Un=Ln,Bn=Object(b["a"])(Un,En,Pn,!1,null,null,null),Mn=Bn.exports,An={name:"Rooms",components:{RoomType:Mn,NamespaceSelector:We},data:function(){return{showPrivateRooms:!1,footerProps:{"items-per-page-options":[20,100,-1]}}},computed:Object(r["a"])(Object(r["a"])(Object(r["a"])({breadcrumbItems:function(){return[{text:this.$t("rooms.title"),disabled:!0}]},headers:function(){return[{text:this.$t("id"),value:"name",align:"start"},{text:this.$t("type"),value:"isPrivate"},{text:this.$t("rooms.sockets-count"),value:"sockets"},{value:"actions",align:"end",sortable:!1}]}},Object(l["b"])("main",["rooms"])),Object(l["d"])({selectedNamespace:function(t){return t.main.selectedNamespace},isReadonly:function(t){return t.config.readonly},isMultiLeaveSupported:function(t){return t.config.supportedFeatures.includes("MLEAVE")},isMultiDisconnectSupported:function(t){return t.config.supportedFeatures.includes("MDISCONNECT")}})),{},{filteredRooms:function(){var t=this.showPrivateRooms?this.rooms:this.rooms.filter((function(t){return!t.isPrivate}));return Object(we["a"])(t,"name")}}),methods:{clear:function(t){xt.socket.emit("leave",this.selectedNamespace.name,t.name)},disconnect:function(t){xt.socket.emit("_disconnect",this.selectedNamespace.name,!1,t.name)},displayDetails:function(t){this.$router.push({name:"room",params:{nsp:this.selectedNamespace.name,name:t.name}})},onPrivateRoomsUpdate:function(t){var e=t?{p:1}:{};this.$router.replace({name:"rooms",query:e})}},mounted:function(){this.showPrivateRooms="1"===this.$route.query.p}},qn=An,Fn=Object(b["a"])(qn,Rn,Nn,!1,null,null,null),Hn=Fn.exports;_()(Fn,{VBreadcrumbs:Pe["a"],VBtn:T["a"],VCard:yt["a"],VCardText:St["a"],VDataTable:Xe["a"],VIcon:ct["a"],VSwitch:X["a"],VTooltip:Ye["a"]});var zn=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("v-breadcrumbs",{attrs:{items:t.breadcrumbItems}}),n("v-card",[n("v-data-table",{attrs:{headers:t.headers,items:t.clients,"footer-props":t.footerProps},scopedSlots:t._u([{key:"item.address",fn:function(e){var s=e.item;return[s.sockets.length?n("span",[t._v(t._s(s.sockets[0].handshake.address))]):t._e()]}},{key:"item.transport",fn:function(e){var s=e.item;return[s.sockets.length?n("Transport",{attrs:{transport:s.sockets[0].transport}}):t._e()]}},{key:"item.sockets",fn:function(e){var n=e.item;return[t._v(" "+t._s(n.sockets.length)+" ")]}},{key:"item.actions",fn:function(e){var s=e.item;return[t.isSocketDisconnectSupported?n("v-tooltip",{attrs:{bottom:""},scopedSlots:t._u([{key:"activator",fn:function(e){var a=e.on,o=e.attrs;return[n("v-btn",t._g(t._b({staticClass:"ml-3",attrs:{disabled:t.isReadonly,small:""},on:{click:function(e){return t.disconnect(s)}}},"v-btn",o,!1),a),[n("v-icon",[t._v("mdi-logout")])],1)]}}],null,!0)},[n("span",[t._v(t._s(t.$t("clients.disconnect")))])]):t._e(),n("v-tooltip",{attrs:{bottom:""},scopedSlots:t._u([{key:"activator",fn:function(e){var a=e.on,o=e.attrs;return[n("v-btn",t._g(t._b({staticClass:"ml-3",attrs:{small:""},on:{click:function(e){return t.displayDetails(s)}}},"v-btn",o,!1),a),[n("v-icon",[t._v("mdi-dots-horizontal")])],1)]}}],null,!0)},[n("span",[t._v(t._s(t.$t("clients.displayDetails")))])])]}}])})],1)],1)},Jn=[],Wn={name:"Clients",components:{Transport:te},data:function(){return{footerProps:{"items-per-page-options":[20,100,-1]}}},computed:Object(r["a"])({breadcrumbItems:function(){return[{text:this.$t("clients.title"),disabled:!0}]},headers:function(){return[{text:"#",value:"id",align:"start"},{text:this.$t("sockets.address"),value:"address"},{text:this.$t("sockets.transport"),value:"transport"},{text:this.$t("clients.sockets-count"),value:"sockets"},{value:"actions",align:"end",sortable:!1}]}},Object(l["d"])({clients:function(t){return t.main.clients},isReadonly:function(t){return t.config.readonly},isSocketDisconnectSupported:function(t){return t.config.supportedFeatures.includes("DISCONNECT")}})),methods:{disconnect:function(t){var e=t.sockets[0];e&&xt.socket.emit("_disconnect",e.nsp,!0,e.id)},displayDetails:function(t){this.$router.push({name:"client",params:{id:t.id}})}}},Kn=Wn,Qn=Object(b["a"])(Kn,zn,Jn,!1,null,null,null),Xn=Qn.exports;_()(Qn,{VBreadcrumbs:Pe["a"],VBtn:T["a"],VCard:yt["a"],VDataTable:Xe["a"],VIcon:ct["a"],VTooltip:Ye["a"]});var Yn=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("v-breadcrumbs",{attrs:{items:t.breadcrumbItems}}),t.client?n("v-container",{attrs:{fluid:""}},[n("v-row",[n("v-col",{attrs:{sm:"12",md:"6",lg:"4"}},[n("ClientDetails",{attrs:{client:t.client,socket:t.socket}})],1),n("v-col",{attrs:{sm:"12",md:"6",lg:"4"}},[t.socket?n("InitialRequest",{attrs:{socket:t.socket}}):t._e()],1),n("v-col",{attrs:{sm:"12",md:"6",lg:"4"}},[n("ClientSockets",{attrs:{sockets:t.client.sockets}})],1)],1)],1):t._e()],1)},Zn=[],Gn=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-card",{staticClass:"fill-height"},[n("v-card-title",[t._v(t._s(t.$t("details")))]),n("v-simple-table",{attrs:{dense:""}},[[n("tbody",[n("tr",[n("td",{staticClass:"key-column"},[t._v(t._s(t.$t("id")))]),n("td",[t._v(" "+t._s(t.client.id)+" ")]),n("td")]),n("tr",[n("td",{staticClass:"key-column"},[t._v(t._s(t.$t("status")))]),n("td",[n("ConnectionStatus",{attrs:{connected:t.client.connected}})],1),n("td",{attrs:{align:"right"}},[t.isSocketDisconnectSupported&&t.client.connected?n("v-tooltip",{attrs:{bottom:""},scopedSlots:t._u([{key:"activator",fn:function(e){var s=e.on,a=e.attrs;return[n("v-btn",t._g(t._b({attrs:{disabled:t.isReadonly,small:""},on:{click:function(e){return t.disconnectClient()}}},"v-btn",a,!1),s),[n("v-icon",[t._v("mdi-logout")])],1)]}}],null,!1,1004975867)},[n("span",[t._v(t._s(t.$t("clients.disconnect")))])]):t._e()],1)]),n("tr",[n("td",{staticClass:"key-column"},[t._v(t._s(t.$t("sockets.transport")))]),n("td",[n("Transport",{attrs:{transport:t.socket.transport}})],1),n("td")]),n("tr",[n("td",{staticClass:"key-column"},[t._v(t._s(t.$t("sockets.address")))]),n("td",[t._v(t._s(t.socket.handshake.address))]),n("td")])])]],2)],1)},ts=[],es={name:"ClientDetails",components:{ConnectionStatus:j,Transport:te},props:{client:Object,socket:Object},computed:Object(r["a"])({},Object(l["d"])({isReadonly:function(t){return t.config.readonly},isSocketDisconnectSupported:function(t){return t.config.supportedFeatures.includes("DISCONNECT")}})),methods:{disconnectClient:function(){var t=this.client.sockets[0];t&&xt.socket.emit("_disconnect",t.nsp,!0,t.id)}}},ns=es,ss=(n("6602"),Object(b["a"])(ns,Gn,ts,!1,null,"8d2424e4",null)),as=ss.exports;_()(ss,{VBtn:T["a"],VCard:yt["a"],VCardTitle:St["b"],VIcon:ct["a"],VSimpleTable:me["a"],VTooltip:Ye["a"]});var os=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-card",[n("v-card-title",[t._v(t._s(t.$t("sockets.title")))]),n("v-data-table",{attrs:{headers:t.headers,items:t.sockets,dense:""},scopedSlots:t._u([{key:"item.nsp",fn:function(e){var s=e.value;return[n("code",[t._v(t._s(s))])]}},{key:"item.actions",fn:function(e){var s=e.item;return[t.isSocketDisconnectSupported?n("v-tooltip",{attrs:{bottom:""},scopedSlots:t._u([{key:"activator",fn:function(e){var a=e.on,o=e.attrs;return[n("v-btn",t._g(t._b({staticClass:"ml-3",attrs:{disabled:t.isReadonly,small:""},on:{click:function(e){return t.disconnect(s)}}},"v-btn",o,!1),a),[n("v-icon",[t._v("mdi-logout")])],1)]}}],null,!0)},[n("span",[t._v(t._s(t.$t("sockets.disconnect")))])]):t._e(),n("v-tooltip",{attrs:{bottom:""},scopedSlots:t._u([{key:"activator",fn:function(e){var a=e.on,o=e.attrs;return[n("v-btn",t._g(t._b({staticClass:"ml-3",attrs:{small:""},on:{click:function(e){return t.displayDetails(s)}}},"v-btn",o,!1),a),[n("v-icon",[t._v("mdi-dots-horizontal")])],1)]}}],null,!0)},[n("span",[t._v(t._s(t.$t("sockets.displayDetails")))])])]}}])})],1)},rs=[],is={name:"ClientSockets",props:{sockets:Array},computed:Object(r["a"])({headers:function(){return[{text:"#",value:"id",align:"start"},{text:this.$t("namespace"),value:"nsp"},{value:"actions",align:"end",sortable:!1}]}},Object(l["d"])({isReadonly:function(t){return t.config.readonly},isSocketDisconnectSupported:function(t){return t.config.supportedFeatures.includes("DISCONNECT")}})),methods:{disconnect:function(t){xt.socket.emit("_disconnect",t.nsp,!1,t.id)},displayDetails:function(t){this.$router.push({name:"socket",params:{nsp:t.nsp,id:t.id}})}}},cs=is,ls=Object(b["a"])(cs,os,rs,!1,null,null,null),ds=ls.exports;_()(ls,{VBtn:T["a"],VCard:yt["a"],VCardTitle:St["b"],VDataTable:Xe["a"],VIcon:ct["a"],VTooltip:Ye["a"]});var us={name:"Client",components:{ClientSockets:ds,InitialRequest:Vn,ClientDetails:as},data:function(){return{socket:null,client:null}},computed:Object(r["a"])({breadcrumbItems:function(){return[{text:this.$t("clients.title"),to:{name:"clients"},exact:!0},{text:this.$t("clients.details"),disabled:!0}]}},Object(l["b"])("main",["findClientById"])),mounted:function(){this.client=this.findClientById(this.$route.params.id),this.client&&(this.socket=this.client.sockets[0])}},ms=us,ps=Object(b["a"])(ms,Yn,Zn,!1,null,"3d554d12",null),vs=ps.exports;_()(ps,{VBreadcrumbs:Pe["a"],VCol:Le["a"],VContainer:It["a"],VRow:ue["a"]});var fs=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("v-breadcrumbs",{attrs:{items:t.breadcrumbItems}}),n("v-card",[n("v-data-table",{attrs:{headers:t.headers,items:t.servers,"footer-props":t.footerProps},scopedSlots:t._u([{key:"item.uptime",fn:function(e){var n=e.value;return[t._v(" "+t._s(t.formatDuration(n))+" ")]}},{key:"item.lastPing",fn:function(e){var n=e.value;return[t._v(" "+t._s(t.delaySinceLastPing(n))+" ")]}},{key:"item.healthy",fn:function(t){var e=t.value;return[n("ServerStatus",{attrs:{healthy:e}})]}},{key:"item.actions",fn:function(e){var s=e.item;return[s.healthy?t._e():n("v-btn",{attrs:{small:""},on:{click:function(e){return t.removeServer(s)}}},[n("v-icon",[t._v("mdi-delete-outline")])],1)]}}])})],1)],1)},hs=[],bs={name:"Servers",components:{ServerStatus:Se},data:function(){return{footerProps:{"items-per-page-options":[20,100,-1]},now:Date.now()}},created:function(){var t=this;this.interval=setInterval((function(){t.now=Date.now()}),1e3)},beforeDestroy:function(){clearInterval(this.interval)},computed:Object(r["a"])({breadcrumbItems:function(){return[{text:this.$t("servers.title"),disabled:!0}]},headers:function(){return[{text:this.$t("id"),value:"serverId"},{text:this.$t("servers.hostname"),value:"hostname"},{text:this.$t("servers.pid"),value:"pid"},{text:this.$t("servers.uptime"),value:"uptime"},{text:this.$t("servers.clients-count"),value:"clientsCount"},{text:this.$t("servers.last-ping"),value:"lastPing"},{text:this.$t("status"),value:"healthy"},{value:"actions",align:"end",sortable:!1}]}},Object(l["d"])({servers:function(t){return Object(we["a"])(t.servers.servers,"serverId")}})),methods:{formatDuration:oe,delaySinceLastPing:function(t){var e=this.now-t;return"".concat(oe(e/1e3)," ago")},removeServer:function(t){this.$store.commit("servers/removeServer",t.serverId)}}},ks=bs,_s=Object(b["a"])(ks,fs,hs,!1,null,null,null),gs=_s.exports;_()(_s,{VBreadcrumbs:Pe["a"],VBtn:T["a"],VCard:yt["a"],VDataTable:Xe["a"],VIcon:ct["a"]});var ys=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("v-breadcrumbs",{attrs:{items:t.breadcrumbItems}}),t.room?n("v-container",{attrs:{fluid:""}},[n("v-row",[n("v-col",{attrs:{sm:"12",md:"4"}},[n("RoomDetails",{attrs:{room:t.room,nsp:t.$route.params.nsp}})],1),n("v-col",{attrs:{sm:"12",md:"8"}},[n("RoomSockets",{attrs:{room:t.room}})],1)],1)],1):t._e()],1)},Ss=[],Cs=function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.room?n("v-card",[n("v-card-title",[t._v(t._s(t.$t("sockets.title")))]),n("v-data-table",{attrs:{headers:t.headers,items:t.room.sockets,"footer-props":t.footerProps},scopedSlots:t._u([{key:"item.transport",fn:function(t){var e=t.value;return[n("Transport",{attrs:{transport:e}})]}},{key:"item.actions",fn:function(e){var s=e.item;return[t.isSocketLeaveSupported&&!t.room.isPrivate?n("v-tooltip",{attrs:{bottom:""},scopedSlots:t._u([{key:"activator",fn:function(e){var a=e.on,o=e.attrs;return[n("v-btn",t._g(t._b({staticClass:"ml-3",attrs:{disabled:t.isReadonly,small:""},on:{click:function(e){return t.leave(s)}}},"v-btn",o,!1),a),[n("v-icon",[t._v("mdi-tag-off-outline")])],1)]}}],null,!0)},[n("span",[t._v(t._s(t.$t("rooms.leave")))])]):t._e(),t.isSocketDisconnectSupported?n("v-tooltip",{attrs:{bottom:""},scopedSlots:t._u([{key:"activator",fn:function(e){var a=e.on,o=e.attrs;return[n("v-btn",t._g(t._b({staticClass:"ml-3",attrs:{disabled:t.isReadonly,small:""},on:{click:function(e){return t.disconnect(s)}}},"v-btn",o,!1),a),[n("v-icon",[t._v("mdi-logout")])],1)]}}],null,!0)},[n("span",[t._v(t._s(t.$t("sockets.disconnect")))])]):t._e(),n("v-tooltip",{attrs:{bottom:""},scopedSlots:t._u([{key:"activator",fn:function(e){var a=e.on,o=e.attrs;return[n("v-btn",t._g(t._b({staticClass:"ml-3",attrs:{small:""},on:{click:function(e){return t.displayDetails(s)}}},"v-btn",o,!1),a),[n("v-icon",[t._v("mdi-dots-horizontal")])],1)]}}],null,!0)},[n("span",[t._v(t._s(t.$t("sockets.displayDetails")))])])]}}],null,!1,1092228050)})],1):t._e()},Os=[],$s={name:"RoomSockets",components:{Transport:te},props:{room:Object},data:function(){return{footerProps:{"items-per-page-options":[20,100,-1]}}},computed:Object(r["a"])(Object(r["a"])({breadcrumbItems:function(){return[{text:this.$t("rooms.title"),to:{name:"rooms"}},{text:this.$t("rooms.details"),disabled:!0}]},headers:function(){return[{text:this.$t("id"),value:"id",align:"start"},{text:this.$t("sockets.address"),value:"handshake.address"},{text:this.$t("sockets.transport"),value:"transport"},{value:"actions",align:"end",sortable:!1}]}},Object(l["b"])("main",["findRoomByName"])),Object(l["d"])({isReadonly:function(t){return t.config.readonly},isSocketLeaveSupported:function(t){return t.config.supportedFeatures.includes("LEAVE")},isSocketDisconnectSupported:function(t){return t.config.supportedFeatures.includes("DISCONNECT")}})),methods:{leave:function(t){xt.socket.emit("leave",t.nsp,this.room.name,t.id)},disconnect:function(t){xt.socket.emit("_disconnect",t.nsp,!1,t.id)},displayDetails:function(t){this.$router.push({name:"socket",params:{nsp:this.$route.params.nsp,id:t.id}})}}},js=$s,xs=Object(b["a"])(js,Cs,Os,!1,null,null,null),Vs=xs.exports;_()(xs,{VBtn:T["a"],VCard:yt["a"],VCardTitle:St["b"],VDataTable:Xe["a"],VIcon:ct["a"],VTooltip:Ye["a"]});var ws=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-card",{staticClass:"fill-height"},[n("v-card-title",[t._v(t._s(t.$t("details")))]),n("v-simple-table",{attrs:{dense:""}},[[n("tbody",[n("tr",[n("td",{staticClass:"key-column"},[t._v(t._s(t.$t("namespace")))]),n("td",[n("code",[t._v(t._s(t.nsp))])]),n("td")]),n("tr",[n("td",{staticClass:"key-column"},[t._v(t._s(t.$t("id")))]),n("td",[t._v(" "+t._s(t.room.name)+" ")]),n("td")]),n("tr",[n("td",{staticClass:"key-column"},[t._v(t._s(t.$t("status")))]),n("td",[n("RoomStatus",{attrs:{active:t.room.active}})],1),n("td",{attrs:{align:"right"}},[t.isMultiLeaveSupported&&!t.room.isPrivate?n("v-tooltip",{attrs:{bottom:""},scopedSlots:t._u([{key:"activator",fn:function(e){var s=e.on,a=e.attrs;return[n("v-btn",t._g(t._b({staticClass:"ml-3",attrs:{disabled:t.isReadonly,small:""},on:{click:function(e){return t.clear()}}},"v-btn",a,!1),s),[n("v-icon",[t._v("mdi-tag-off-outline")])],1)]}}],null,!1,464351539)},[n("span",[t._v(t._s(t.$t("rooms.clear")))])]):t._e()],1)]),n("tr",[n("td",{staticClass:"key-column"},[t._v(t._s(t.$t("type")))]),n("td",[n("RoomType",{attrs:{"is-private":t.room.isPrivate}})],1),n("td")])])]],2)],1)},Ds=[],Ts=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("Status",{attrs:{value:t.active,"ok-label":t.$t("rooms.active"),"ko-label":t.$t("rooms.deleted")}})},Is=[],Rs={name:"RoomStatus",components:{Status:S},props:{active:Boolean}},Ns=Rs,Es=Object(b["a"])(Ns,Ts,Is,!1,null,null,null),Ps=Es.exports,Ls={name:"RoomDetails",components:{RoomType:Mn,RoomStatus:Ps},props:{room:Object,nsp:String},computed:Object(r["a"])({},Object(l["d"])({isReadonly:function(t){return t.config.readonly},isMultiLeaveSupported:function(t){return t.config.supportedFeatures.includes("MLEAVE")}})),methods:{clear:function(){xt.socket.emit("leave",this.nsp,this.room.name)}}},Us=Ls,Bs=Object(b["a"])(Us,ws,Ds,!1,null,"7b3793ea",null),Ms=Bs.exports;_()(Bs,{VBtn:T["a"],VCard:yt["a"],VCardTitle:St["b"],VIcon:ct["a"],VSimpleTable:me["a"],VTooltip:Ye["a"]});var As={name:"Sockets",components:{RoomDetails:Ms,RoomSockets:Vs},data:function(){return{room:null}},computed:Object(r["a"])({breadcrumbItems:function(){return[{text:this.$t("rooms.title"),to:{name:"rooms"}},{text:this.$t("rooms.details"),disabled:!0}]}},Object(l["b"])("main",["findRoomByName"])),mounted:function(){this.room=this.findRoomByName(this.$route.params.nsp,this.$route.params.name)}},qs=As,Fs=Object(b["a"])(qs,ys,Ss,!1,null,null,null),Hs=Fs.exports;_()(Fs,{VBreadcrumbs:Pe["a"],VCol:Le["a"],VContainer:It["a"],VRow:ue["a"]}),s["a"].use(Ut["a"]);var zs=[{path:"/",name:"dashboard",component:Be,meta:{topLevel:!0,index:0}},{path:"/sockets/",name:"sockets",component:Ge,meta:{topLevel:!0,index:1}},{path:"/n/:nsp/sockets/:id",name:"socket",component:In,meta:{topLevel:!1}},{path:"/rooms/",name:"rooms",component:Hn,meta:{topLevel:!0,index:2}},{path:"/n/:nsp/rooms/:name",name:"room",component:Hs,meta:{topLevel:!1}},{path:"/clients/",name:"clients",component:Xn,meta:{topLevel:!0,index:3}},{path:"/clients/:id",name:"client",component:vs,meta:{topLevel:!1}},{path:"/servers/",name:"servers",component:gs,meta:{topLevel:!0,index:4}}],Js=new Ut["a"]({mode:"hash",base:"/",routes:zs}),Ws=Js,Ks=(n("159b"),n("d3b7"),n("ddb0"),n("466d"),n("a925"));function Qs(){var t=n("49f8"),e={};return t.keys().forEach((function(n){var s=n.match(/([A-Za-z0-9-_]+)\./i);if(s&&s.length>1){var a=s[1];e[a]=t(n)}})),e}s["a"].use(Ks["a"]);var Xs=new Ks["a"]({locale:"en",fallbackLocale:"en",messages:Qs()}),Ys={namespaced:!0,state:{darkTheme:!1,readonly:!1,lang:"en",supportedFeatures:[]},mutations:{init:function(t){ae&&(t.darkTheme="true"===localStorage.getItem("dark_theme"),t.readonly="true"===localStorage.getItem("readonly"),t.lang=localStorage.getItem("lang")||"en")},selectTheme:function(t,e){t.darkTheme=e,ae&&localStorage.setItem("dark_theme",e)},selectLang:function(t,e){t.lang=e,ae&&localStorage.setItem("lang",e)},toggleReadonly:function(t){t.readonly=!t.readonly,ae&&localStorage.setItem("readonly",t.readonly)},updateConfig:function(t,e){t.supportedFeatures=e.supportedFeatures}}},Zs={namespaced:!0,state:{serverUrl:"",wsOnly:!1,path:"/socket.io",sessionId:"",connected:!1},mutations:{init:function(t){ae&&(t.serverUrl=localStorage.getItem("server_url"),t.wsOnly="true"===localStorage.getItem("ws_only"),t.sessionId=localStorage.getItem("session_id"),t.path=localStorage.getItem("path")||"/socket.io")},saveConfig:function(t,e){var n=e.serverUrl,s=e.wsOnly,a=e.path;t.serverUrl=n,t.wsOnly=s,t.path=a,ae&&(localStorage.setItem("server_url",n),localStorage.setItem("ws_only",s),localStorage.setItem("path",a))},saveSessionId:function(t,e){t.sessionId=e,ae&&localStorage.setItem("session_id",e)},connect:function(t){t.connected=!0},disconnect:function(t){t.connected=!1}}},Gs=n("3835"),ta=n("0a94"),ea=n("a1a3"),na=function(t,e){var n=Object(ta["a"])(t,{name:e});return n||(n={name:e,sockets:[],rooms:[]},t.push(n),n)},sa=function(t,e){var n=Object(ta["a"])(t.rooms,{name:e});return n||(n={name:e,active:!0,sockets:[]},t.rooms.push(n),n)},aa=function(t,e){var n=Object(ta["a"])(t,{id:e});return n||(n={id:e,connected:!0,sockets:[]},t.push(n),n)},oa=function(t,e){var n=na(t.namespaces,e.nsp);e.connected=!0,Object(ta["a"])(n.sockets,{id:e.id})||n.sockets.push(e),e.rooms.forEach((function(t){var s=sa(n,t);s.isPrivate=t===e.id,Object(ta["a"])(s.sockets,{id:e.id})||s.sockets.push(e)}));var s=aa(t.clients,e.clientId);Object(ta["a"])(s.sockets,{id:e.id})||s.sockets.push(e)},ra={namespaced:!0,state:{namespaces:[],clients:[],selectedNamespace:null},getters:{findSocketById:function(t){return function(e,n){var s=Object(ta["a"])(t.namespaces,{name:e});if(s)return Object(ta["a"])(s.sockets,{id:n})}},findClientById:function(t){return function(e){return Object(ta["a"])(t.clients,{id:e})}},findRoomByName:function(t){return function(e,n){var s=Object(ta["a"])(t.namespaces,{name:e});if(s)return Object(ta["a"])(s.rooms,{name:n})}},findRoomsByNamespace:function(t){return function(e){var n=Object(ta["a"])(t.namespaces,{name:e});return n?n.rooms:[]}},sockets:function(t){return t.selectedNamespace?t.selectedNamespace.sockets:[]},rooms:function(t){return t.selectedNamespace?t.selectedNamespace.rooms:[]}},mutations:{selectNamespace:function(t,e){t.selectedNamespace=e},onAllSockets:function(t,e){t.namespaces.forEach((function(t){t.sockets.splice(0),t.rooms.splice(0)})),t.clients.splice(0),e.forEach((function(e){return oa(t,e)})),t.selectedNamespace||(t.selectedNamespace=Object(ta["a"])(t.namespaces,{name:"/"})||t.namespaces[0])},onSocketConnected:function(t,e){oa(t,e)},onSocketUpdated:function(t,e){var n=na(t.namespaces,e.nsp),s=Object(ta["a"])(n.sockets,{id:e.id});s&&Object(ea["a"])(s,e)},onSocketDisconnected:function(t,e){var n=e.nsp,s=e.id,a=na(t.namespaces,n),o=re(a.sockets,{id:s}),r=Object(Gs["a"])(o,1),i=r[0];if(i){i.connected=!1;var c=aa(t.clients,i.clientId);re(c.sockets,{id:s}),0===c.sockets.length&&(c.connected=!1,re(t.clients,{id:i.clientId}))}},onRoomJoined:function(t,e){var n=e.nsp,s=e.room,a=e.id,o=na(t.namespaces,n),r=Object(ta["a"])(o.sockets,{id:a});if(r){ie(r.rooms,s);var i=sa(o,s);i.sockets.push(r)}},onRoomLeft:function(t,e){var n=e.nsp,s=e.room,a=e.id,o=na(t.namespaces,n),r=Object(ta["a"])(o.sockets,{id:a});r&&re(r.rooms,s);var i=sa(o,s);re(i.sockets,{id:a}),0===i.sockets.length&&(i.active=!1,re(o.rooms,{name:s}))}}},ia=1e4,ca={namespaced:!0,state:{servers:[]},mutations:{onServerStats:function(t,e){e.lastPing=Date.now();var n=Object(ta["a"])(t.servers,{serverId:e.serverId});n?Object(ea["a"])(n,e):(e.healthy=!0,t.servers.push(e))},removeServer:function(t,e){re(t.servers,{serverId:e})},updateState:function(t){t.servers.forEach((function(t){t.healthy=Date.now()-t.lastPing<ia}))}}};s["a"].use(l["a"]);var la=new l["a"].Store({modules:{config:Ys,connection:Zs,main:ra,servers:ca}}),da=n("f309");s["a"].use(da["a"]);var ua=new da["a"]({});s["a"].config.productionTip=!1,la.commit("config/init"),la.commit("connection/init"),Xs.locale=la.state.config.lang,setInterval((function(){la.commit("servers/updateState")}),1e3),new s["a"]({router:Ws,i18n:Xs,store:la,vuetify:ua,render:function(t){return t(Et)}}).$mount("#app")},"61de":function(t,e,n){},"633d":function(t,e,n){"use strict";n("1a90")},6602:function(t,e,n){"use strict";n("c081")},7823:function(t,e,n){},"786c":function(t,e,n){"use strict";n("ef29")},8782:function(t){t.exports=JSON.parse('{"separator":": ","id":"আইডি","update":"হালনাগাদ","details":"বর্ণনা","actions":"ক্রিয়াগুলো","select-namespace":"নেমস্পেস নির্বাচন করুন","namespace":"নেমস্পেস","namespaces":"নেমস্পেসগুলো","disconnect":"সংযোগ বিচ্ছিন্ন","name":"নাম","value":"মান","type":"প্রকার","status":"অবস্থা","connected":"সংযুক্ত","disconnected":"অসংযুক্ত","connection":{"title":"সংযোগ","serverUrl":"সার্ভার ইউআরএল","username":"ব্যবহারকারীর নাম","password":"গুপ্তমন্ত্র","connect":"সংযোগ করুন","invalid-credentials":"অবৈধ প্রশংসাপত্র","error":"ত্রুটি","websocket-only":"কেবল ওয়েবস্কট?","path":"পথ"},"dashboard":{"title":"ড্যাশবোর্ড"},"sockets":{"title":"সকেটগুলো","details":"সকেটের বিশদ","address":"আইপি ঠিকানা","transport":"পরিবহন","disconnect":"এই সকেট উদাহরণটি সংযোগ বিচ্ছিন্ন করুন","displayDetails":"এই সকেট উদাহরণের বিশদ প্রদর্শন করুন","client":"ক্লায়েন্ট","socket":"সকেট","creation-date":"তৈরির তারিখ","leave":"এই ঘর ছেড়ে দিন","join":"যোগ দিন","join-a-room":"একটি ঘরে যোগদান করুন","initial-request":"প্রাথমিক এইচটিটিপি অনুরোধ","headers":"শিরোনাম","query-params":"প্রশ্নগুলির পরামিতি"},"rooms":{"title":"রুমগুলো","details":"ঘরের বিবরণ","active":"সক্রিয়","deleted":"মোছা হয়েছে","public":"পাবলিক","private":"ব্যক্তিগত","show-private":"ব্যক্তিগত কক্ষগুলি দেখান?","sockets-count":"# সকেট সংখ্যা","clear":"এই ঘরটি থেকে সমস্ত সকেট দৃষ্টান্ত সরান","leave":"এই ঘরটি থেকে সকেট উদাহরণটি সরান","disconnect":"এই ঘরে থাকা সমস্ত সকেট দৃষ্টান্ত সংযোগ বিচ্ছিন্ন করুন","displayDetails":"এই ঘরের বিশদটি প্রদর্শন করুন"},"clients":{"title":"ক্লায়েন্ট","details":"ক্লায়েন্টের বিশদ","sockets-count":"# সকেট সংখ্যা","disconnect":"এই ক্লায়েন্টকে সংযোগ বিচ্ছিন্ন করুন (এবং সমস্ত ছেদকৃত সকেট উদাহরণ)","displayDetails":"এই ক্লায়েন্টের বিশদ প্রদর্শন করুন"},"servers":{"title":"সার্ভারগুলো","hostname":"হোস্ট নাম","pid":"পিআইডি","uptime":"আপটাইম","clients-count":"# ক্লায়েন্ট সংখ্যা","last-ping":"শেষ পিং","healthy":"সুস্থ","unhealthy":"অসুস্থ"},"config":{"language":"ভাষা","readonly":"শুধুমাত্র পাঠযোগ্য?","dark-theme":"অন্ধকার থিম?"}}')},"8bcc":function(t,e,n){},9073:function(t,e,n){"use strict";n("8bcc")},c081:function(t,e,n){},c32d:function(t,e){if("undefined"===typeof moment){var n=new Error("Cannot find module 'moment'");throw n.code="MODULE_NOT_FOUND",n}t.exports=moment},db72:function(t,e,n){"use strict";n("61de")},dd11:function(t){t.exports=JSON.parse('{"separator":": ","id":"ID","update":"업데이트","details":"상세정보","actions":"액션","select-namespace":"네임 스페이스 선택","namespace":"네임 스페이스","namespaces":"네임 스페이스","disconnect":"연결 끊기","name":"이름","value":"값","type":"타입","status":"상태","connected":"연결됨","disconnected":"연결되지 않음","connection":{"title":"접속","serverUrl":"서버 URL","username":"유저 이름 (Username)","password":"비밀번호 (Password)","connect":"접속하기","invalid-credentials":"올바르지 않은 인증","error":"에러"},"dashboard":{"title":"대시보드"},"sockets":{"title":"소켓","details":"소켓 상세정보","address":"IP 주소","transport":"통신 방식 (Transport)","disconnect":"소켓 인스턴스 연결 끊기","displayDetails":"소켓 인스턴스 상세정보","client":"클라이언트","socket":"소켓","creation-date":"생성일","leave":"룸 떠나기","join":"참여","join-a-room":"룸에 참여","initial-request":"초기 HTTP 요청","headers":"헤더","query-params":"쿼리 파라미터"},"rooms":{"title":"룸","details":"룸 상세정보","active":"활성화","deleted":"삭제됨","public":"Public","private":"Private","show-private":"프라이빗(Private) 룸 보기?","sockets-count":"소켓 수","clear":"룸에서 모든 소켓 인스턴스 제거","leave":"룸에서 소켓 인스턴스 제거","disconnect":"룸의 모든 소켓 인스턴스 연결 끊기","displayDetails":"룸 상세정보"},"clients":{"title":"클라이언트","details":"클라언트 상세정보","sockets-count":"소켓 수","disconnect":"클라이언트 연결 끊기 (연결된 모든 소켓 인스턴스 끊기)","displayDetails":"클라이언트 상세정보"},"servers":{"title":"서버","hostname":"호스트이름","pid":"PID","uptime":"가동 시간","clients-count":"클라이언트 수","last-ping":"마지막 ping","healthy":"Healthy","unhealthy":"Unhealthy"},"config":{"language":"언어","readonly":"읽기 전용?","dark-theme":"다크 테마?"}}')},ea65:function(t,e,n){t.exports=n.p+"img/logo-light.73342c25.svg"},edd4:function(t){t.exports=JSON.parse('{"separator":": ","id":"ID","update":"Update","details":"Details","actions":"Actions","select-namespace":"Select namespace","namespace":"Namespace","namespaces":"Namespaces","disconnect":"Disconnect","name":"Name","value":"Value","type":"Type","status":"Status","connected":"connected","disconnected":"disconnected","connection":{"title":"Connection","serverUrl":"Server URL","username":"Username","password":"Password","connect":"Connect","invalid-credentials":"Invalid credentials","error":"Error","websocket-only":"WebSocket only?","path":"Path"},"dashboard":{"title":"Dashboard"},"sockets":{"title":"Sockets","details":"Socket details","address":"IP address","transport":"Transport","disconnect":"Disconnect this Socket instance","displayDetails":"Display the details of this Socket instance","client":"Client","socket":"Socket","creation-date":"Creation date","leave":"Leave this room","join":"Join","join-a-room":"Join a room","initial-request":"Initial HTTP request","headers":"Headers","query-params":"Query parameters"},"rooms":{"title":"Rooms","details":"Room details","active":"Active","deleted":"Deleted","public":"Public","private":"Private","show-private":"Show private rooms?","sockets-count":"# of sockets","clear":"Remove all the Socket instances from this room","leave":"Remove the Socket instance from this room","disconnect":"Disconnect all the Socket instances that are in this room","displayDetails":"Display the details of this room"},"clients":{"title":"Clients","details":"Client details","sockets-count":"# of sockets","disconnect":"Disconnect this client (and all attached Socket instances)","displayDetails":"Display the details of this client"},"servers":{"title":"Servers","hostname":"Hostname","pid":"PID","uptime":"Uptime","clients-count":"# of clients","last-ping":"Last ping","healthy":"Healthy","unhealthy":"Unhealthy"},"config":{"language":"Language","readonly":"Read-only?","dark-theme":"Dark theme?"}}')},ef29:function(t,e,n){},f693:function(t){t.exports=JSON.parse('{"separator":" : ","id":"ID","update":"Mettre à jour","details":"Détails","actions":"Actions","select-namespace":"Sélection de l\'espace de noms","namespace":"Espace de noms","namespaces":"Espaces de noms","disconnect":"Déconnexion","name":"Nom","value":"Valeur","type":"Type","status":"Statut","connected":"connecté","disconnected":"déconnecté","connection":{"title":"Connexion","serverUrl":"URL du serveur","username":"Nom d\'utilisateur","password":"Mot de passe","connect":"Se connecter","invalid-credentials":"Identifiants invalides","error":"Erreur","websocket-only":"WebSocket uniquement ?","path":"Chemin HTTP"},"dashboard":{"title":"Accueil"},"sockets":{"title":"Connexions","details":"Détails de la connexion","address":"Adresse IP","transport":"Transport","disconnect":"Termine cette connexion","displayDetails":"Voir les détails de cette connexion","client":"Client","socket":"Connexion","creation-date":"Date de création","leave":"Quitter cette salle","join":"Rejoindre","join-a-room":"Rejoindre une salle","initial-request":"Requête HTTP initiale","headers":"Entêtes HTTP","query-params":"Paramètres de requête"},"rooms":{"title":"Salles","details":"Détails de la salle","active":"Active","deleted":"Supprimée","public":"Publique","private":"Privée","show-private":"Afficher les salles privées ?","sockets-count":"# de connexions","clear":"Vider cette salle","leave":"Sortir cette connexion de la salle","disconnect":"Sortir toutes les connexions de cette salle","displayDetails":"Voir les détails de cette salle"},"clients":{"title":"Clients","details":"Détails du client","sockets-count":"# de connexions","disconnect":"Déconnecte ce client (et toutes les connexions liées)","displayDetails":"Voir les détails de ce client"},"servers":{"title":"Serveurs","hostname":"Nom d\'hôte","pid":"PID","uptime":"Uptime","clients-count":"# de clients","last-ping":"Dernier ping","healthy":"Actif","unhealthy":"Inactif"},"config":{"language":"Langue","readonly":"Lecture seule ?","dark-theme":"Mode sombre ?"}}')},f712:function(t,e,n){"use strict";n("7823")}});
  //# sourceMappingURL=app.97c623ae.js.map