omegga 0.1.71 → 0.1.75
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.babelrc.json +0 -0
- package/.eslintrc.yml +2 -0
- package/.github/workflows/lint.yml +0 -0
- package/.prettierrc +7 -0
- package/LICENSE +0 -0
- package/README.md +4 -2
- package/index.js +0 -0
- package/package.json +10 -9
- package/public/app.bundle.js +1 -1
- package/public/app.bundle.js.LICENSE.txt +0 -0
- package/public/app.bundle.js.map +1 -1
- package/public/app.css +22 -22
- package/public/app.css.map +1 -1
- package/public/auth.bundle.js +1 -1
- package/public/auth.bundle.js.LICENSE.txt +0 -0
- package/public/auth.bundle.js.map +1 -1
- package/public/auth.css +11 -11
- package/public/auth.css.map +1 -1
- package/src/OMEGGA_LEGACY_INSTALL +0 -0
- package/src/brickadia/config.js +0 -0
- package/src/brickadia/server.js +2 -0
- package/src/cli/auth.js +2 -2
- package/src/cli/config.js +0 -0
- package/src/cli/index.js +0 -0
- package/src/cli/installer.js +0 -0
- package/src/cli/plugin.js +0 -0
- package/src/cli/terminal.js +93 -1
- package/src/config/authorizer.js +0 -0
- package/src/config/formats/format_js.js +0 -0
- package/src/config/formats/format_yml.js +0 -0
- package/src/config/index.js +2 -1
- package/src/config/reader.js +0 -0
- package/src/config/validator.js +0 -0
- package/src/config/writer.js +0 -0
- package/src/info/default_commands.json +0 -0
- package/src/lib.js +0 -0
- package/src/main.js +27 -3
- package/src/omegga/auth.js +2 -1
- package/src/omegga/commandInjector.js +0 -0
- package/src/omegga/index.js +0 -0
- package/src/omegga/logWrangler.js +0 -0
- package/src/omegga/matchers/auth.js +0 -0
- package/src/omegga/matchers/chat.js +11 -13
- package/src/omegga/matchers/command.js +0 -0
- package/src/omegga/matchers/exit.js +0 -0
- package/src/omegga/matchers/init.js +0 -0
- package/src/omegga/matchers/join.js +0 -0
- package/src/omegga/matchers/leave.js +0 -0
- package/src/omegga/matchers/mapChange.js +0 -0
- package/src/omegga/matchers/version.js +22 -5
- package/src/omegga/player.js +0 -0
- package/src/omegga/plugin/plugin_jsonrpc_stdio.js +0 -0
- package/src/omegga/plugin/plugin_node_safe/proxyOmegga.js +43 -25
- package/src/omegga/plugin/plugin_node_safe/worker.js +30 -23
- package/src/omegga/plugin/plugin_node_safe.js +0 -0
- package/src/omegga/plugin/plugin_node_unsafe.js +0 -0
- package/src/omegga/plugin.js +0 -0
- package/src/omegga/server.js +122 -63
- package/src/omegga/wrapper.js +0 -2
- package/src/softconfig.js +1 -0
- package/src/util/brick/checkBounds.js +0 -0
- package/src/util/brick/constants.js +0 -0
- package/src/util/brick/getBounds.js +0 -0
- package/src/util/brick/getBrickSize.js +0 -0
- package/src/util/brick/getScaleAxis.js +0 -0
- package/src/util/brick/index.js +0 -0
- package/src/util/brick/rotate.js +0 -0
- package/src/util/brick/setOwnership.js +0 -0
- package/src/util/chat.js +1 -1
- package/src/util/color.js +0 -0
- package/src/util/file.js +0 -0
- package/src/util/index.js +0 -0
- package/src/util/map.js +1 -0
- package/src/util/pattern.js +0 -0
- package/src/util/time.js +0 -0
- package/src/util/uuid.js +0 -0
- package/src/webserver/backend/api.js +122 -0
- package/src/webserver/backend/calendar.js +0 -0
- package/src/webserver/backend/database.js +10 -7
- package/src/webserver/backend/index.js +0 -0
- package/src/webserver/backend/metrics.js +0 -0
- package/src/webserver/backend/util.js +0 -0
- package/src/webserver/frontend/.eslintrc.yml +0 -0
- package/src/webserver/frontend/app.html +0 -0
- package/src/webserver/frontend/app.js +0 -1
- package/src/webserver/frontend/assets/fonts/GlacialIndifferenceBold.ttf +0 -0
- package/src/webserver/frontend/assets/fonts/GlacialIndifferenceItalic.otf +0 -0
- package/src/webserver/frontend/assets/fonts/GlacialIndifferenceMedium.otf +0 -0
- package/src/webserver/frontend/assets/fonts/GlacialIndifferenceRegular.ttf +0 -0
- package/src/webserver/frontend/assets/fonts/RobotoBold.ttf +0 -0
- package/src/webserver/frontend/assets/fonts/RobotoItalic.ttf +0 -0
- package/src/webserver/frontend/assets/fonts/RobotoRegular.ttf +0 -0
- package/src/webserver/frontend/assets/img/auth_bg.webp +0 -0
- package/src/webserver/frontend/assets/img/dark_bg.webp +0 -0
- package/src/webserver/frontend/assets/img/turkey.webp +0 -0
- package/src/webserver/frontend/auth.html +0 -0
- package/src/webserver/frontend/auth.js +0 -0
- package/src/webserver/frontend/components/Background.vue +0 -0
- package/src/webserver/frontend/components/Button.vue +0 -0
- package/src/webserver/frontend/components/ChatEntry.vue +38 -25
- package/src/webserver/frontend/components/ChatTime.vue +0 -0
- package/src/webserver/frontend/components/Dimmer.vue +4 -7
- package/src/webserver/frontend/components/Dropdown.vue +0 -0
- package/src/webserver/frontend/components/Footer.vue +0 -0
- package/src/webserver/frontend/components/Header.vue +3 -7
- package/src/webserver/frontend/components/InfiniteScroll.vue +0 -0
- package/src/webserver/frontend/components/Input.vue +0 -0
- package/src/webserver/frontend/components/ListInput.vue +0 -0
- package/src/webserver/frontend/components/Loader.vue +0 -0
- package/src/webserver/frontend/components/MainMenuButton.vue +0 -0
- package/src/webserver/frontend/components/Modal.vue +9 -7
- package/src/webserver/frontend/components/NavBar.vue +3 -7
- package/src/webserver/frontend/components/PlayerDropdown.vue +0 -0
- package/src/webserver/frontend/components/PopoutContent.vue +12 -10
- package/src/webserver/frontend/components/RoleDropdown.vue +0 -0
- package/src/webserver/frontend/components/Scroll.vue +0 -0
- package/src/webserver/frontend/components/Toggle.vue +0 -0
- package/src/webserver/frontend/components/index.js +0 -0
- package/src/webserver/frontend/css/font.scss +22 -0
- package/src/webserver/frontend/css/mixins.scss +0 -0
- package/src/webserver/frontend/css/style.scss +38 -2
- package/src/webserver/frontend/css/theme.scss +0 -0
- package/src/webserver/frontend/partials/NavHeader.vue +0 -0
- package/src/webserver/frontend/partials/Page.vue +0 -0
- package/src/webserver/frontend/partials/PageContent.vue +0 -0
- package/src/webserver/frontend/partials/SideNav.vue +0 -0
- package/src/webserver/frontend/partials/index.js +0 -0
- package/src/webserver/frontend/router.js +0 -0
- package/src/webserver/frontend/views/Auth.vue +0 -0
- package/src/webserver/frontend/views/History.vue +112 -66
- package/src/webserver/frontend/views/Home.vue +56 -80
- package/src/webserver/frontend/views/Main.vue +0 -0
- package/src/webserver/frontend/views/NotFound.vue +0 -0
- package/src/webserver/frontend/views/Players.vue +136 -118
- package/src/webserver/frontend/views/PlayersInspector.vue +460 -144
- package/src/webserver/frontend/views/Plugins.vue +0 -0
- package/src/webserver/frontend/views/PluginsInspector.vue +5 -8
- package/src/webserver/frontend/views/Server.vue +34 -30
- package/src/webserver/frontend/views/Users.vue +137 -69
- package/src/webserver/frontend/widgets/Chat.vue +15 -14
- package/src/webserver/frontend/widgets/Status.vue +17 -14
- package/src/webserver/frontend/widgets/index.js +0 -0
- package/src/webserver/frontend/widgets/tooltip.js +0 -0
- package/src/webserver/index.js +0 -0
- package/public/5153c21b2d7c16f3ced8381a7742764e.ttf +0 -0
- package/public/6a15139936e97255ab4bc571ef89fa32.woff2 +0 -0
- package/public/9686caa314d1f8d0bafa548997e34dcc.eot +0 -0
- package/public/ac5d014d74858b2ed71cfd47262b68ea.woff +0 -0
package/public/app.bundle.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/*! For license information please see app.bundle.js.LICENSE.txt */
|
|
2
|
-
(()=>{var t={6568:t=>{"use strict";function e(){return(e=Object.assign||function(t){for(var e,n=1;n<arguments.length;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)}var n=["attrs","props","domProps"],r=["class","style","directives"],i=["on","nativeOn"],o=function(t,e){return function(){t&&t.apply(this,arguments),e&&e.apply(this,arguments)}};t.exports=function(t){return t.reduce((function(t,s){for(var a in s)if(t[a])if(-1!==n.indexOf(a))t[a]=e({},t[a],s[a]);else if(-1!==r.indexOf(a)){var c=t[a]instanceof Array?t[a]:[t[a]],l=s[a]instanceof Array?s[a]:[s[a]];t[a]=c.concat(l)}else if(-1!==i.indexOf(a))for(var u in s[a])if(t[a][u]){var h=t[a][u]instanceof Array?t[a][u]:[t[a][u]],p=s[a][u]instanceof Array?s[a][u]:[s[a][u]];t[a][u]=h.concat(p)}else t[a][u]=s[a][u];else if("hook"==a)for(var d in s[a])t[a][d]=t[a][d]?o(t[a][d],s[a][d]):s[a][d];else t[a]=s[a];else t[a]=s[a];return t}),{})}},3779:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(6738),i=n(2165).createLogDeprecationWarning("Using a higher order function on JSONRPCClient send method is deprecated.\nInstead of this: new JSONRPCClient((jsonRPCClient) => (clientParams) => /* no change here */)\nDo this: new JSONRPCClient((jsonRPCClient, clientParams) => /* no change here */)\nThe old way still works, but we will drop the support in the future."),o=function(){function t(t,e){this._send=t,this.createID=e,this.idToResolveMap=new Map,this.id=0}return t.prototype._createID=function(){return this.createID?this.createID():++this.id},t.prototype.request=function(t,e,n){var i={jsonrpc:r.JSONRPC,method:t,params:e,id:this._createID()};return this.requestAdvanced(i,n).then((function(t){return void 0===t.result||t.error?void 0===t.result&&t.error?Promise.reject(new Error(t.error.message)):Promise.reject(new Error("An unexpected error occurred")):t.result}))},t.prototype.requestAdvanced=function(t,e){var n=this,i=new Promise((function(e){return n.idToResolveMap.set(t.id,e)}));return this.send(t,e).then((function(){return i}),(function(e){return n.receive(r.createJSONRPCErrorResponse(t.id,0,e&&e.message||"Failed to send a request")),i}))},t.prototype.notify=function(t,e,n){this.send({jsonrpc:r.JSONRPC,method:t,params:e},n).then(void 0,(function(){}))},t.prototype.send=function(t,e){var n=this._send(t,e);return"function"==typeof n&&(i(),n=n(e)),n},t.prototype.rejectAllPendingRequests=function(t){this.idToResolveMap.forEach((function(e,n){return e(r.createJSONRPCErrorResponse(n,0,t))})),this.idToResolveMap.clear()},t.prototype.receive=function(t){var e=this.idToResolveMap.get(t.id);e&&(this.idToResolveMap.delete(t.id),e(t))},t}();e.JSONRPCClient=o},4569:(t,e,n)=>{"use strict";function r(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}Object.defineProperty(e,"__esModule",{value:!0}),r(n(3779)),r(n(6738)),r(n(3479)),r(n(8451))},2165:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createLogDeprecationWarning=function(t){return function(){}}},6738:(t,e)=>{"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),e.JSONRPC="2.0",e.isJSONRPCID=function(t){return"string"==typeof t||"number"==typeof t||null===t},e.isJSONRPCRequest=function(t){return t.jsonrpc===e.JSONRPC&&void 0!==t.method&&void 0===t.result&&void 0===t.error},e.isJSONRPCResponse=function(t){return t.jsonrpc===e.JSONRPC&&void 0!==t.id&&(void 0!==t.result||void 0!==t.error)},(n=e.JSONRPCErrorCode||(e.JSONRPCErrorCode={}))[n.ParseError=-32700]="ParseError",n[n.InvalidRequest=-32600]="InvalidRequest",n[n.MethodNotFound=-32601]="MethodNotFound",n[n.InvalidParams=-32602]="InvalidParams",n[n.InternalError=-32603]="InternalError",e.createJSONRPCErrorResponse=function(t,n,r){return{jsonrpc:e.JSONRPC,id:t,error:{code:n,message:r}}}},8451:function(t,e,n){"use strict";var r=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function s(t){try{c(r.next(t))}catch(t){o(t)}}function a(t){try{c(r.throw(t))}catch(t){o(t)}}function c(t){t.done?i(t.value):new n((function(e){e(t.value)})).then(s,a)}c((r=r.apply(t,e||[])).next())}))},i=this&&this.__generator||function(t,e){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!((i=(i=s.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=e.call(t,s)}catch(t){o=[6,t],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}};Object.defineProperty(e,"__esModule",{value:!0});var o=n(6738),s=function(){function t(t,e){this.server=t,this.client=e}return t.prototype.addMethod=function(t,e){this.server.addMethod(t,e)},t.prototype.addMethodAdvanced=function(t,e){this.server.addMethodAdvanced(t,e)},t.prototype.request=function(t,e,n){return this.client.request(t,e,n)},t.prototype.requestAdvanced=function(t,e){return this.client.requestAdvanced(t,e)},t.prototype.notify=function(t,e,n){this.client.notify(t,e,n)},t.prototype.rejectAllPendingRequests=function(t){this.client.rejectAllPendingRequests(t)},t.prototype.receiveAndSend=function(t,e,n){return r(this,void 0,void 0,(function(){var r,s;return i(this,(function(i){switch(i.label){case 0:return o.isJSONRPCResponse(t)?(this.client.receive(t),[3,4]):[3,1];case 1:return o.isJSONRPCRequest(t)?[4,this.server.receive(t,e)]:[3,3];case 2:return(r=i.sent())?[2,this.client.send(r,n)]:[3,4];case 3:return s="Received an invalid JSON-RPC message",console.warn(s,t),[2,Promise.reject(new Error(s))];case 4:return[2]}}))}))},t}();e.JSONRPCServerAndClient=s},3479:function(t,e,n){"use strict";var r=this&&this.__assign||Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t};Object.defineProperty(e,"__esModule",{value:!0});var i=n(6738),o=n(2165).createLogDeprecationWarning("Using a higher order function on JSONRPCServer.addMethod/addMethodAdvanced is deprecated.\nInstead of this: jsonRPCServer.addMethod(methodName, (params) => (serverParams) => /* no change here */)\nDo this: jsonRPCServer.addMethod(methodName, (params, serverParams) => /* no change here */)\nThe old way still works, but we will drop the support in the future."),s=function(){function t(){this.nameToMethodDictionary={}}return t.prototype.addMethod=function(t,e){this.addMethodAdvanced(t,this.toJSONRPCMethod(e))},t.prototype.toJSONRPCMethod=function(t){return function(e,n){var r=t(e.params,n);return"function"==typeof r&&(o(),r=r(n)),Promise.resolve(r).then((function(t){return a(e.id,t)}),(function(t){return console.warn("JSON-RPC method "+e.method+" responded an error",t),c(e.id,t)}))}},t.prototype.addMethodAdvanced=function(t,e){var n;this.nameToMethodDictionary=r({},this.nameToMethodDictionary,((n={})[t]=e,n))},t.prototype.receiveJSON=function(t,e){var n=this.tryParseRequestJSON(t);return n?this.receive(n,e):Promise.resolve(i.createJSONRPCErrorResponse(null,i.JSONRPCErrorCode.ParseError,"Parse error"))},t.prototype.tryParseRequestJSON=function(t){try{return JSON.parse(t)}catch(t){return null}},t.prototype.receive=function(t,e){var n,r=this.nameToMethodDictionary[t.method];return i.isJSONRPCRequest(t)?r?this.callMethod(r,t,e).then((function(e){return l(t,e)})):void 0!==t.id?Promise.resolve((n=t.id,i.createJSONRPCErrorResponse(n,i.JSONRPCErrorCode.MethodNotFound,"Method not found"))):Promise.resolve(null):Promise.resolve(function(t){return i.createJSONRPCErrorResponse(i.isJSONRPCID(t.id)?t.id:null,i.JSONRPCErrorCode.InvalidRequest,"Invalid Request")}(t))},t.prototype.callMethod=function(t,e,n){var r=function(t){return console.warn('An unexpected error occurred while executing "'+e.method+'" JSON-RPC method:',t),Promise.resolve(c(e.id,t))};try{var i=t(e,n);return"function"==typeof i&&(o(),i=i(n)),i.then(void 0,r)}catch(t){return r(t)}},t}();e.JSONRPCServer=s;var a=function(t,e){return void 0!==t?{jsonrpc:i.JSONRPC,id:t,result:void 0===e?null:e}:null},c=function(t,e){return void 0!==t?i.createJSONRPCErrorResponse(t,0,e&&e.message||"An unexpected error occurred"):null},l=function(t,e){return e||(void 0!==t.id?i.createJSONRPCErrorResponse(t.id,i.JSONRPCErrorCode.InternalError,"Internal error"):null)}},6163:(t,e,n)=>{t.exports=n(5867).default},5867:(t,e,n)=>{"use strict";e.default=function(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=i.default.tokenize(t),o=[],g=[];for(n=new a(n),e=0;e<r.length;e++){var v=r[e];if(v.type!==c)if(v.type===u){var m=p(v.chars,n);o.push.apply(o,m)}else o.push(v);else{o.push(v);var y=v.tagName.toUpperCase(),b="A"===y||s.contains(n.ignoreTags,y);if(!b)continue;var w=o.length;d(y,r,++e,o),e+=o.length-w-1}}for(e=0;e<o.length;e++){var x=o[e];switch(x.type){case c:var _="<"+x.tagName;if(x.attributes.length>0){var k=f(x.attributes);_+=" "+k.join(" ")}_+=">",g.push(_);break;case l:g.push("</"+x.tagName+">");break;case u:g.push(x.chars);break;case h:g.push("\x3c!--"+x.chars+"--\x3e")}}return g.join("")};var r,i=(r=n(2226))&&r.__esModule?r:{default:r},o=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(n(8425)),s=o.options,a=s.Options,c="StartTag",l="EndTag",u="Chars",h="Comment";function p(t,e){for(var n=o.tokenize(t),r=[],i=0;i<n.length;i++){var s=n[i];if("nl"===s.type&&e.nl2br)r.push({type:c,tagName:"br",attributes:[],selfClosing:!0});else if(s.isLink&&e.check(s)){var a=e.resolve(s),h=a.formatted,p=a.formattedHref,d=a.tagName,f=a.className,g=a.target,v=a.attributes,m=[["href",p]];for(var y in f&&m.push(["class",f]),g&&m.push(["target",g]),v)m.push([y,v[y]]);r.push({type:c,tagName:d,attributes:m,selfClosing:!1}),r.push({type:u,chars:h}),r.push({type:l,tagName:d})}else r.push({type:u,chars:s.toString()})}return r}function d(t,e,n,r){for(var i=1;n<e.length&&i>0;){var o=e[n];o.type===c&&o.tagName.toUpperCase()===t?i++:o.type===l&&o.tagName.toUpperCase()===t&&i--,r.push(o),n++}return r}function f(t){for(var e=[],n=0;n<t.length;n++){var r=t[n],i=r[0],o=r[1];e.push(i+'="'+o.replace(/"/g,""")+'"')}return e}},8425:(t,e,n)=>{"use strict";e.__esModule=!0,e.tokenize=e.test=e.scanner=e.parser=e.options=e.inherits=e.find=void 0;var r=n(2227),i=a(n(7951)),o=a(n(6417)),s=a(n(5788));function a(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}Array.isArray||(Array.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)});var c=function(t){return s.run(o.run(t))};e.find=function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=c(t),r=[],i=0;i<n.length;i++){var o=n[i];!o.isLink||e&&o.type!==e||r.push(o.toObject())}return r},e.inherits=r.inherits,e.options=i,e.parser=s,e.scanner=o,e.test=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=c(t);return 1===n.length&&n[0].isLink&&(!e||n[0].type===e)},e.tokenize=c},5788:(t,e,n)=>{"use strict";e.__esModule=!0,e.start=e.run=e.TOKENS=e.State=void 0;var r=n(1504),i=n(3370),o=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(i),s=n(3333),a=function(t){return new r.TokenState(t)},c=a(),l=a(),u=a(),h=a(),p=a(),d=a(),f=a(),g=a(i.URL),v=a(),m=a(i.URL),y=a(i.URL),b=a(),w=a(),x=a(),_=a(),k=a(),C=a(i.URL),S=a(i.URL),A=a(i.URL),E=a(i.URL),O=a(),T=a(),P=a(),I=a(),M=a(),R=a(),N=a(i.EMAIL),D=a(),j=a(i.EMAIL),L=a(i.MAILTOEMAIL),z=a(),$=a(),B=a(),H=a(),U=a(i.NL);c.on(s.NL,U).on(s.PROTOCOL,l).on(s.MAILTO,u).on(s.SLASH,h),l.on(s.SLASH,h),h.on(s.SLASH,p),c.on(s.TLD,d).on(s.DOMAIN,d).on(s.LOCALHOST,g).on(s.NUM,d),p.on(s.TLD,y).on(s.DOMAIN,y).on(s.NUM,y).on(s.LOCALHOST,y),d.on(s.DOT,f),M.on(s.DOT,R),f.on(s.TLD,g).on(s.DOMAIN,d).on(s.NUM,d).on(s.LOCALHOST,d),R.on(s.TLD,N).on(s.DOMAIN,M).on(s.NUM,M).on(s.LOCALHOST,M),g.on(s.DOT,f),N.on(s.DOT,R),g.on(s.COLON,v).on(s.SLASH,y),v.on(s.NUM,m),m.on(s.SLASH,y),N.on(s.COLON,D),D.on(s.NUM,j);var F=[s.DOMAIN,s.AT,s.LOCALHOST,s.NUM,s.PLUS,s.POUND,s.PROTOCOL,s.SLASH,s.TLD,s.UNDERSCORE,s.SYM,s.AMPERSAND],q=[s.COLON,s.DOT,s.QUERY,s.PUNCTUATION,s.CLOSEBRACE,s.CLOSEBRACKET,s.CLOSEANGLEBRACKET,s.CLOSEPAREN,s.OPENBRACE,s.OPENBRACKET,s.OPENANGLEBRACKET,s.OPENPAREN];y.on(s.OPENBRACE,w).on(s.OPENBRACKET,x).on(s.OPENANGLEBRACKET,_).on(s.OPENPAREN,k),b.on(s.OPENBRACE,w).on(s.OPENBRACKET,x).on(s.OPENANGLEBRACKET,_).on(s.OPENPAREN,k),w.on(s.CLOSEBRACE,y),x.on(s.CLOSEBRACKET,y),_.on(s.CLOSEANGLEBRACKET,y),k.on(s.CLOSEPAREN,y),C.on(s.CLOSEBRACE,y),S.on(s.CLOSEBRACKET,y),A.on(s.CLOSEANGLEBRACKET,y),E.on(s.CLOSEPAREN,y),O.on(s.CLOSEBRACE,y),T.on(s.CLOSEBRACKET,y),P.on(s.CLOSEANGLEBRACKET,y),I.on(s.CLOSEPAREN,y),w.on(F,C),x.on(F,S),_.on(F,A),k.on(F,E),w.on(q,O),x.on(q,T),_.on(q,P),k.on(q,I),C.on(F,C),S.on(F,S),A.on(F,A),E.on(F,E),C.on(q,C),S.on(q,S),A.on(q,A),E.on(q,E),O.on(F,C),T.on(F,S),P.on(F,A),I.on(F,E),O.on(q,O),T.on(q,T),P.on(q,P),I.on(q,I),y.on(F,y),b.on(F,y),y.on(q,b),b.on(q,b),u.on(s.TLD,L).on(s.DOMAIN,L).on(s.NUM,L).on(s.LOCALHOST,L),L.on(F,L).on(q,z),z.on(F,L).on(q,z);var W=[s.DOMAIN,s.NUM,s.PLUS,s.POUND,s.QUERY,s.UNDERSCORE,s.SYM,s.AMPERSAND,s.TLD];d.on(W,$).on(s.AT,B),g.on(W,$).on(s.AT,B),f.on(W,$),$.on(W,$).on(s.AT,B).on(s.DOT,H),H.on(W,$),B.on(s.TLD,M).on(s.DOMAIN,M).on(s.LOCALHOST,N),e.State=r.TokenState,e.TOKENS=o,e.run=function(t){for(var e=t.length,n=0,r=[],o=[];n<e;){for(var s=c,a=null,l=null,u=0,h=null,p=-1;n<e&&!(a=s.next(t[n]));)o.push(t[n++]);for(;n<e&&(l=a||s.next(t[n]));)a=null,(s=l).accepts()?(p=0,h=s):p>=0&&p++,n++,u++;if(p<0)for(var d=n-u;d<n;d++)o.push(t[d]);else{o.length>0&&(r.push(new i.TEXT(o)),o=[]),n-=p,u-=p;var f=h.emit();r.push(new f(t.slice(n-u,n)))}}return o.length>0&&r.push(new i.TEXT(o)),r},e.start=c},6417:(t,e,n)=>{"use strict";e.__esModule=!0,e.start=e.run=e.TOKENS=e.State=void 0;var r=n(1504),i=n(3333),o=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(i),s="aaa|aarp|abarth|abb|abbott|abbvie|abc|able|abogado|abudhabi|ac|academy|accenture|accountant|accountants|aco|active|actor|ad|adac|ads|adult|ae|aeg|aero|aetna|af|afamilycompany|afl|africa|ag|agakhan|agency|ai|aig|aigo|airbus|airforce|airtel|akdn|al|alfaromeo|alibaba|alipay|allfinanz|allstate|ally|alsace|alstom|am|americanexpress|americanfamily|amex|amfam|amica|amsterdam|analytics|android|anquan|anz|ao|aol|apartments|app|apple|aq|aquarelle|ar|arab|aramco|archi|army|arpa|art|arte|as|asda|asia|associates|at|athleta|attorney|au|auction|audi|audible|audio|auspost|author|auto|autos|avianca|aw|aws|ax|axa|az|azure|ba|baby|baidu|banamex|bananarepublic|band|bank|bar|barcelona|barclaycard|barclays|barefoot|bargains|baseball|basketball|bauhaus|bayern|bb|bbc|bbt|bbva|bcg|bcn|bd|be|beats|beauty|beer|bentley|berlin|best|bestbuy|bet|bf|bg|bh|bharti|bi|bible|bid|bike|bing|bingo|bio|biz|bj|black|blackfriday|blanco|blockbuster|blog|bloomberg|blue|bm|bms|bmw|bn|bnl|bnpparibas|bo|boats|boehringer|bofa|bom|bond|boo|book|booking|boots|bosch|bostik|boston|bot|boutique|box|br|bradesco|bridgestone|broadway|broker|brother|brussels|bs|bt|budapest|bugatti|build|builders|business|buy|buzz|bv|bw|by|bz|bzh|ca|cab|cafe|cal|call|calvinklein|cam|camera|camp|cancerresearch|canon|capetown|capital|capitalone|car|caravan|cards|care|career|careers|cars|cartier|casa|case|caseih|cash|casino|cat|catering|catholic|cba|cbn|cbre|cbs|cc|cd|ceb|center|ceo|cern|cf|cfa|cfd|cg|ch|chanel|channel|chase|chat|cheap|chintai|chloe|christmas|chrome|chrysler|church|ci|cipriani|circle|cisco|citadel|citi|citic|city|cityeats|ck|cl|claims|cleaning|click|clinic|clinique|clothing|cloud|club|clubmed|cm|cn|co|coach|codes|coffee|college|cologne|com|comcast|commbank|community|company|compare|computer|comsec|condos|construction|consulting|contact|contractors|cooking|cookingchannel|cool|coop|corsica|country|coupon|coupons|courses|cr|credit|creditcard|creditunion|cricket|crown|crs|cruise|cruises|csc|cu|cuisinella|cv|cw|cx|cy|cymru|cyou|cz|dabur|dad|dance|data|date|dating|datsun|day|dclk|dds|de|deal|dealer|deals|degree|delivery|dell|deloitte|delta|democrat|dental|dentist|desi|design|dev|dhl|diamonds|diet|digital|direct|directory|discount|discover|dish|diy|dj|dk|dm|dnp|do|docs|doctor|dodge|dog|doha|domains|dot|download|drive|dtv|dubai|duck|dunlop|duns|dupont|durban|dvag|dvr|dz|earth|eat|ec|eco|edeka|edu|education|ee|eg|email|emerck|energy|engineer|engineering|enterprises|epost|epson|equipment|er|ericsson|erni|es|esq|estate|esurance|et|etisalat|eu|eurovision|eus|events|everbank|exchange|expert|exposed|express|extraspace|fage|fail|fairwinds|faith|family|fan|fans|farm|farmers|fashion|fast|fedex|feedback|ferrari|ferrero|fi|fiat|fidelity|fido|film|final|finance|financial|fire|firestone|firmdale|fish|fishing|fit|fitness|fj|fk|flickr|flights|flir|florist|flowers|fly|fm|fo|foo|food|foodnetwork|football|ford|forex|forsale|forum|foundation|fox|fr|free|fresenius|frl|frogans|frontdoor|frontier|ftr|fujitsu|fujixerox|fun|fund|furniture|futbol|fyi|ga|gal|gallery|gallo|gallup|game|games|gap|garden|gb|gbiz|gd|gdn|ge|gea|gent|genting|george|gf|gg|ggee|gh|gi|gift|gifts|gives|giving|gl|glade|glass|gle|global|globo|gm|gmail|gmbh|gmo|gmx|gn|godaddy|gold|goldpoint|golf|goo|goodhands|goodyear|goog|google|gop|got|gov|gp|gq|gr|grainger|graphics|gratis|green|gripe|grocery|group|gs|gt|gu|guardian|gucci|guge|guide|guitars|guru|gw|gy|hair|hamburg|hangout|haus|hbo|hdfc|hdfcbank|health|healthcare|help|helsinki|here|hermes|hgtv|hiphop|hisamitsu|hitachi|hiv|hk|hkt|hm|hn|hockey|holdings|holiday|homedepot|homegoods|homes|homesense|honda|honeywell|horse|hospital|host|hosting|hot|hoteles|hotels|hotmail|house|how|hr|hsbc|ht|htc|hu|hughes|hyatt|hyundai|ibm|icbc|ice|icu|id|ie|ieee|ifm|ikano|il|im|imamat|imdb|immo|immobilien|in|industries|infiniti|info|ing|ink|institute|insurance|insure|int|intel|international|intuit|investments|io|ipiranga|iq|ir|irish|is|iselect|ismaili|ist|istanbul|it|itau|itv|iveco|iwc|jaguar|java|jcb|jcp|je|jeep|jetzt|jewelry|jio|jlc|jll|jm|jmp|jnj|jo|jobs|joburg|jot|joy|jp|jpmorgan|jprs|juegos|juniper|kaufen|kddi|ke|kerryhotels|kerrylogistics|kerryproperties|kfh|kg|kh|ki|kia|kim|kinder|kindle|kitchen|kiwi|km|kn|koeln|komatsu|kosher|kp|kpmg|kpn|kr|krd|kred|kuokgroup|kw|ky|kyoto|kz|la|lacaixa|ladbrokes|lamborghini|lamer|lancaster|lancia|lancome|land|landrover|lanxess|lasalle|lat|latino|latrobe|law|lawyer|lb|lc|lds|lease|leclerc|lefrak|legal|lego|lexus|lgbt|li|liaison|lidl|life|lifeinsurance|lifestyle|lighting|like|lilly|limited|limo|lincoln|linde|link|lipsy|live|living|lixil|lk|loan|loans|locker|locus|loft|lol|london|lotte|lotto|love|lpl|lplfinancial|lr|ls|lt|ltd|ltda|lu|lundbeck|lupin|luxe|luxury|lv|ly|ma|macys|madrid|maif|maison|makeup|man|management|mango|map|market|marketing|markets|marriott|marshalls|maserati|mattel|mba|mc|mckinsey|md|me|med|media|meet|melbourne|meme|memorial|men|menu|meo|merckmsd|metlife|mg|mh|miami|microsoft|mil|mini|mint|mit|mitsubishi|mk|ml|mlb|mls|mm|mma|mn|mo|mobi|mobile|mobily|moda|moe|moi|mom|monash|money|monster|mopar|mormon|mortgage|moscow|moto|motorcycles|mov|movie|movistar|mp|mq|mr|ms|msd|mt|mtn|mtr|mu|museum|mutual|mv|mw|mx|my|mz|na|nab|nadex|nagoya|name|nationwide|natura|navy|nba|nc|ne|nec|net|netbank|netflix|network|neustar|new|newholland|news|next|nextdirect|nexus|nf|nfl|ng|ngo|nhk|ni|nico|nike|nikon|ninja|nissan|nissay|nl|no|nokia|northwesternmutual|norton|now|nowruz|nowtv|np|nr|nra|nrw|ntt|nu|nyc|nz|obi|observer|off|office|okinawa|olayan|olayangroup|oldnavy|ollo|om|omega|one|ong|onl|online|onyourside|ooo|open|oracle|orange|org|organic|origins|osaka|otsuka|ott|ovh|pa|page|panasonic|panerai|paris|pars|partners|parts|party|passagens|pay|pccw|pe|pet|pf|pfizer|pg|ph|pharmacy|phd|philips|phone|photo|photography|photos|physio|piaget|pics|pictet|pictures|pid|pin|ping|pink|pioneer|pizza|pk|pl|place|play|playstation|plumbing|plus|pm|pn|pnc|pohl|poker|politie|porn|post|pr|pramerica|praxi|press|prime|pro|prod|productions|prof|progressive|promo|properties|property|protection|pru|prudential|ps|pt|pub|pw|pwc|py|qa|qpon|quebec|quest|qvc|racing|radio|raid|re|read|realestate|realtor|realty|recipes|red|redstone|redumbrella|rehab|reise|reisen|reit|reliance|ren|rent|rentals|repair|report|republican|rest|restaurant|review|reviews|rexroth|rich|richardli|ricoh|rightathome|ril|rio|rip|rmit|ro|rocher|rocks|rodeo|rogers|room|rs|rsvp|ru|rugby|ruhr|run|rw|rwe|ryukyu|sa|saarland|safe|safety|sakura|sale|salon|samsclub|samsung|sandvik|sandvikcoromant|sanofi|sap|sapo|sarl|sas|save|saxo|sb|sbi|sbs|sc|sca|scb|schaeffler|schmidt|scholarships|school|schule|schwarz|science|scjohnson|scor|scot|sd|se|search|seat|secure|security|seek|select|sener|services|ses|seven|sew|sex|sexy|sfr|sg|sh|shangrila|sharp|shaw|shell|shia|shiksha|shoes|shop|shopping|shouji|show|showtime|shriram|si|silk|sina|singles|site|sj|sk|ski|skin|sky|skype|sl|sling|sm|smart|smile|sn|sncf|so|soccer|social|softbank|software|sohu|solar|solutions|song|sony|soy|space|spiegel|spot|spreadbetting|sr|srl|srt|st|stada|staples|star|starhub|statebank|statefarm|statoil|stc|stcgroup|stockholm|storage|store|stream|studio|study|style|su|sucks|supplies|supply|support|surf|surgery|suzuki|sv|swatch|swiftcover|swiss|sx|sy|sydney|symantec|systems|sz|tab|taipei|talk|taobao|target|tatamotors|tatar|tattoo|tax|taxi|tc|tci|td|tdk|team|tech|technology|tel|telecity|telefonica|temasek|tennis|teva|tf|tg|th|thd|theater|theatre|tiaa|tickets|tienda|tiffany|tips|tires|tirol|tj|tjmaxx|tjx|tk|tkmaxx|tl|tm|tmall|tn|to|today|tokyo|tools|top|toray|toshiba|total|tours|town|toyota|toys|tr|trade|trading|training|travel|travelchannel|travelers|travelersinsurance|trust|trv|tt|tube|tui|tunes|tushu|tv|tvs|tw|tz|ua|ubank|ubs|uconnect|ug|uk|unicom|university|uno|uol|ups|us|uy|uz|va|vacations|vana|vanguard|vc|ve|vegas|ventures|verisign|versicherung|vet|vg|vi|viajes|video|vig|viking|villas|vin|vip|virgin|visa|vision|vista|vistaprint|viva|vivo|vlaanderen|vn|vodka|volkswagen|volvo|vote|voting|voto|voyage|vu|vuelos|wales|walmart|walter|wang|wanggou|warman|watch|watches|weather|weatherchannel|webcam|weber|website|wed|wedding|weibo|weir|wf|whoswho|wien|wiki|williamhill|win|windows|wine|winners|wme|wolterskluwer|woodside|work|works|world|wow|ws|wtc|wtf|xbox|xerox|xfinity|xihuan|xin|xn--11b4c3d|xn--1ck2e1b|xn--1qqw23a|xn--2scrj9c|xn--30rr7y|xn--3bst00m|xn--3ds443g|xn--3e0b707e|xn--3hcrj9c|xn--3oq18vl8pn36a|xn--3pxu8k|xn--42c2d9a|xn--45br5cyl|xn--45brj9c|xn--45q11c|xn--4gbrim|xn--54b7fta0cc|xn--55qw42g|xn--55qx5d|xn--5su34j936bgsg|xn--5tzm5g|xn--6frz82g|xn--6qq986b3xl|xn--80adxhks|xn--80ao21a|xn--80aqecdr1a|xn--80asehdb|xn--80aswg|xn--8y0a063a|xn--90a3ac|xn--90ae|xn--90ais|xn--9dbq2a|xn--9et52u|xn--9krt00a|xn--b4w605ferd|xn--bck1b9a5dre4c|xn--c1avg|xn--c2br7g|xn--cck2b3b|xn--cg4bki|xn--clchc0ea0b2g2a9gcd|xn--czr694b|xn--czrs0t|xn--czru2d|xn--d1acj3b|xn--d1alf|xn--e1a4c|xn--eckvdtc9d|xn--efvy88h|xn--estv75g|xn--fct429k|xn--fhbei|xn--fiq228c5hs|xn--fiq64b|xn--fiqs8s|xn--fiqz9s|xn--fjq720a|xn--flw351e|xn--fpcrj9c3d|xn--fzc2c9e2c|xn--fzys8d69uvgm|xn--g2xx48c|xn--gckr3f0f|xn--gecrj9c|xn--gk3at1e|xn--h2breg3eve|xn--h2brj9c|xn--h2brj9c8c|xn--hxt814e|xn--i1b6b1a6a2e|xn--imr513n|xn--io0a7i|xn--j1aef|xn--j1amh|xn--j6w193g|xn--jlq61u9w7b|xn--jvr189m|xn--kcrx77d1x4a|xn--kprw13d|xn--kpry57d|xn--kpu716f|xn--kput3i|xn--l1acc|xn--lgbbat1ad8j|xn--mgb9awbf|xn--mgba3a3ejt|xn--mgba3a4f16a|xn--mgba7c0bbn0a|xn--mgbaakc7dvf|xn--mgbaam7a8h|xn--mgbab2bd|xn--mgbai9azgqp6j|xn--mgbayh7gpa|xn--mgbb9fbpob|xn--mgbbh1a|xn--mgbbh1a71e|xn--mgbc0a9azcg|xn--mgbca7dzdo|xn--mgberp4a5d4ar|xn--mgbgu82a|xn--mgbi4ecexp|xn--mgbpl2fh|xn--mgbt3dhd|xn--mgbtx2b|xn--mgbx4cd0ab|xn--mix891f|xn--mk1bu44c|xn--mxtq1m|xn--ngbc5azd|xn--ngbe9e0a|xn--ngbrx|xn--node|xn--nqv7f|xn--nqv7fs00ema|xn--nyqy26a|xn--o3cw4h|xn--ogbpf8fl|xn--p1acf|xn--p1ai|xn--pbt977c|xn--pgbs0dh|xn--pssy2u|xn--q9jyb4c|xn--qcka1pmc|xn--qxam|xn--rhqv96g|xn--rovu88b|xn--rvc1e0am3e|xn--s9brj9c|xn--ses554g|xn--t60b56a|xn--tckwe|xn--tiq49xqyj|xn--unup4y|xn--vermgensberater-ctb|xn--vermgensberatung-pwb|xn--vhquv|xn--vuq861b|xn--w4r85el8fhu5dnra|xn--w4rs40l|xn--wgbh1c|xn--wgbl6a|xn--xhq521b|xn--xkc2al3hye2a|xn--xkc2dl3a5ee0h|xn--y9a3aq|xn--yfro4i67o|xn--ygbi2ammx|xn--zfr164b|xperia|xxx|xyz|yachts|yahoo|yamaxun|yandex|ye|yodobashi|yoga|yokohama|you|youtube|yt|yun|za|zappos|zara|zero|zip|zippo|zm|zone|zuerich|zw".split("|"),a="0123456789".split(""),c="0123456789abcdefghijklmnopqrstuvwxyz".split(""),l=[" ","\f","\r","\t","\v"," "," ",""],u=[],h=function(t){return new r.CharacterState(t)},p=h(),d=h(i.NUM),f=h(i.DOMAIN),g=h(),v=h(i.WS);p.on("@",h(i.AT)).on(".",h(i.DOT)).on("+",h(i.PLUS)).on("#",h(i.POUND)).on("?",h(i.QUERY)).on("/",h(i.SLASH)).on("_",h(i.UNDERSCORE)).on(":",h(i.COLON)).on("{",h(i.OPENBRACE)).on("[",h(i.OPENBRACKET)).on("<",h(i.OPENANGLEBRACKET)).on("(",h(i.OPENPAREN)).on("}",h(i.CLOSEBRACE)).on("]",h(i.CLOSEBRACKET)).on(">",h(i.CLOSEANGLEBRACKET)).on(")",h(i.CLOSEPAREN)).on("&",h(i.AMPERSAND)).on([",",";","!",'"',"'"],h(i.PUNCTUATION)),p.on("\n",h(i.NL)).on(l,v),v.on(l,v);for(var m=0;m<s.length;m++){var y=(0,r.stateify)(s[m],p,i.TLD,i.DOMAIN);u.push.apply(u,y)}var b=(0,r.stateify)("file",p,i.DOMAIN,i.DOMAIN),w=(0,r.stateify)("ftp",p,i.DOMAIN,i.DOMAIN),x=(0,r.stateify)("http",p,i.DOMAIN,i.DOMAIN),_=(0,r.stateify)("mailto",p,i.DOMAIN,i.DOMAIN);u.push.apply(u,b),u.push.apply(u,w),u.push.apply(u,x),u.push.apply(u,_);var k=b.pop(),C=w.pop(),S=x.pop(),A=_.pop(),E=h(i.DOMAIN),O=h(i.PROTOCOL),T=h(i.MAILTO);C.on("s",E).on(":",O),S.on("s",E).on(":",O),u.push(E),k.on(":",O),E.on(":",O),A.on(":",T);var P=(0,r.stateify)("localhost",p,i.LOCALHOST,i.DOMAIN);u.push.apply(u,P),p.on(a,d),d.on("-",g).on(a,d).on(c,f),f.on("-",g).on(c,f);for(var I=0;I<u.length;I++)u[I].on("-",g).on(c,f);g.on("-",g).on(a,f).on(c,f),p.defaultTransition=h(i.SYM);var M=p;e.State=r.CharacterState,e.TOKENS=o,e.run=function(t){for(var e=t.replace(/[A-Z]/g,(function(t){return t.toLowerCase()})),n=t.length,r=[],i=0;i<n;){for(var o=p,s=null,a=0,c=null,l=-1;i<n&&(s=o.next(e[i]));)(o=s).accepts()?(l=0,c=o):l>=0&&l++,a++,i++;if(!(l<0)){i-=l,a-=l;var u=c.emit();r.push(new u(t.substr(i-a,a)))}}return r},e.start=M},1504:(t,e,n)=>{"use strict";e.__esModule=!0,e.stateify=e.TokenState=e.CharacterState=void 0;var r=n(2227),i=function(t){this.j=[],this.T=t||null};i.prototype={defaultTransition:!1,on:function(t,e){if(t instanceof Array){for(var n=0;n<t.length;n++)this.j.push([t[n],e]);return this}return this.j.push([t,e]),this},next:function(t){for(var e=0;e<this.j.length;e++){var n=this.j[e],r=n[0],i=n[1];if(this.test(t,r))return i}return this.defaultTransition},accepts:function(){return!!this.T},test:function(t,e){return t===e},emit:function(){return this.T}};var o=(0,r.inherits)(i,(function(t){this.j=[],this.T=t||null}),{test:function(t,e){return t===e||e instanceof RegExp&&e.test(t)}}),s=(0,r.inherits)(i,(function(t){this.j=[],this.T=t||null}),{jump:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=this.next(new t(""));return n===this.defaultTransition?(n=new this.constructor(e),this.on(t,n)):e&&(n.T=e),n},test:function(t,e){return t instanceof e}});e.CharacterState=o,e.TokenState=s,e.stateify=function(t,e,n,r){for(var i=0,s=t.length,a=e,c=[],l=void 0;i<s&&(l=a.next(t[i]));)a=l,i++;if(i>=s)return[];for(;i<s-1;)l=new o(r),c.push(l),a.on(t[i],l),a=l,i++;return l=new o(n),c.push(l),a.on(t[s-1],l),c}},9770:(t,e)=>{"use strict";e.__esModule=!0,e.createTokenClass=function(){return function(t){t&&(this.v=t)}}},3370:(t,e,n)=>{"use strict";e.__esModule=!0,e.URL=e.TEXT=e.NL=e.EMAIL=e.MAILTOEMAIL=e.Base=void 0;var r=n(9770),i=n(2227),o=n(3333);function s(t){return t instanceof o.DOMAIN||t instanceof o.TLD}var a=(0,r.createTokenClass)();a.prototype={type:"token",isLink:!1,toString:function(){for(var t=[],e=0;e<this.v.length;e++)t.push(this.v[e].toString());return t.join("")},toHref:function(){return this.toString()},toObject:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"http";return{type:this.type,value:this.toString(),href:this.toHref(t)}}};var c=(0,i.inherits)(a,(0,r.createTokenClass)(),{type:"email",isLink:!0}),l=(0,i.inherits)(a,(0,r.createTokenClass)(),{type:"email",isLink:!0,toHref:function(){return"mailto:"+this.toString()}}),u=(0,i.inherits)(a,(0,r.createTokenClass)(),{type:"text"}),h=(0,i.inherits)(a,(0,r.createTokenClass)(),{type:"nl"}),p=(0,i.inherits)(a,(0,r.createTokenClass)(),{type:"url",isLink:!0,toHref:function(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"http",e=!1,n=!1,r=this.v,i=[],a=0;r[a]instanceof o.PROTOCOL;)e=!0,i.push(r[a].toString().toLowerCase()),a++;for(;r[a]instanceof o.SLASH;)n=!0,i.push(r[a].toString()),a++;for(;s(r[a]);)i.push(r[a].toString().toLowerCase()),a++;for(;a<r.length;a++)i.push(r[a].toString());return i=i.join(""),e||n||(i=t+"://"+i),i},hasProtocol:function(){return this.v[0]instanceof o.PROTOCOL}});e.Base=a,e.MAILTOEMAIL=c,e.EMAIL=l,e.NL=h,e.TEXT=u,e.URL=p},3333:(t,e,n)=>{"use strict";e.__esModule=!0,e.AMPERSAND=e.CLOSEPAREN=e.CLOSEANGLEBRACKET=e.CLOSEBRACKET=e.CLOSEBRACE=e.OPENPAREN=e.OPENANGLEBRACKET=e.OPENBRACKET=e.OPENBRACE=e.WS=e.TLD=e.SYM=e.UNDERSCORE=e.SLASH=e.MAILTO=e.PROTOCOL=e.QUERY=e.POUND=e.PLUS=e.NUM=e.NL=e.LOCALHOST=e.PUNCTUATION=e.DOT=e.COLON=e.AT=e.DOMAIN=e.Base=void 0;var r=n(9770),i=n(2227),o=(0,r.createTokenClass)();function s(t){var e=t?{v:t}:{};return(0,i.inherits)(o,(0,r.createTokenClass)(),e)}o.prototype={toString:function(){return this.v+""}};var a=s(),c=s("@"),l=s(":"),u=s("."),h=s(),p=s(),d=s("\n"),f=s(),g=s("+"),v=s("#"),m=s(),y=s("mailto:"),b=s("?"),w=s("/"),x=s("_"),_=s(),k=s(),C=s(),S=s("{"),A=s("["),E=s("<"),O=s("("),T=s("}"),P=s("]"),I=s(">"),M=s(")"),R=s("&");e.Base=o,e.DOMAIN=a,e.AT=c,e.COLON=l,e.DOT=u,e.PUNCTUATION=h,e.LOCALHOST=p,e.NL=d,e.NUM=f,e.PLUS=g,e.POUND=v,e.QUERY=b,e.PROTOCOL=m,e.MAILTO=y,e.SLASH=w,e.UNDERSCORE=x,e.SYM=_,e.TLD=k,e.WS=C,e.OPENBRACE=S,e.OPENBRACKET=A,e.OPENANGLEBRACKET=E,e.OPENPAREN=O,e.CLOSEBRACE=T,e.CLOSEBRACKET=P,e.CLOSEANGLEBRACKET=I,e.CLOSEPAREN=M,e.AMPERSAND=R},2227:(t,e)=>{"use strict";e.__esModule=!0,e.inherits=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Object.create(t.prototype);for(var i in n)r[i]=n[i];return r.constructor=e,e.prototype=r,e}},7951:(t,e)=>{"use strict";e.__esModule=!0;var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r={defaultProtocol:"http",events:null,format:o,formatHref:o,nl2br:!1,tagName:"a",target:function(t,e){return"url"===e?"_blank":null},validate:!0,ignoreTags:[],attributes:null,className:"linkified"};function i(t){t=t||{},this.defaultProtocol=t.hasOwnProperty("defaultProtocol")?t.defaultProtocol:r.defaultProtocol,this.events=t.hasOwnProperty("events")?t.events:r.events,this.format=t.hasOwnProperty("format")?t.format:r.format,this.formatHref=t.hasOwnProperty("formatHref")?t.formatHref:r.formatHref,this.nl2br=t.hasOwnProperty("nl2br")?t.nl2br:r.nl2br,this.tagName=t.hasOwnProperty("tagName")?t.tagName:r.tagName,this.target=t.hasOwnProperty("target")?t.target:r.target,this.validate=t.hasOwnProperty("validate")?t.validate:r.validate,this.ignoreTags=[],this.attributes=t.attributes||t.linkAttributes||r.attributes,this.className=t.hasOwnProperty("className")?t.className:t.linkClass||r.className;for(var e=t.hasOwnProperty("ignoreTags")?t.ignoreTags:r.ignoreTags,n=0;n<e.length;n++)this.ignoreTags.push(e[n].toUpperCase())}function o(t){return t}e.defaults=r,e.Options=i,e.contains=function(t,e){for(var n=0;n<t.length;n++)if(t[n]===e)return!0;return!1},i.prototype={resolve:function(t){var e=t.toHref(this.defaultProtocol);return{formatted:this.get("format",t.toString(),t),formattedHref:this.get("formatHref",e,t),tagName:this.get("tagName",e,t),className:this.get("className",e,t),target:this.get("target",e,t),events:this.getObject("events",e,t),attributes:this.getObject("attributes",e,t)}},check:function(t){return this.get("validate",t.toString(),t)},get:function(t,e,i){var o=void 0,s=this[t];if(!s)return s;switch(void 0===s?"undefined":n(s)){case"function":return s(e,i.type);case"object":return"function"==typeof(o=s.hasOwnProperty(i.type)?s[i.type]:r[t])?o(e,i.type):o}return s},getObject:function(t,e,n){var r=this[t];return"function"==typeof r?r(e,n.type):r}}},2226:(t,e,n)=>{"use strict";e.__esModule=!0;var r=c(n(7691)),i=c(n(7305)),o=c(n(1497)),s=c(n(4630)),a=c(n(4030));function c(t){return t&&t.__esModule?t:{default:t}}var l={HTML5NamedCharRefs:r.default,EntityParser:i.default,EventedTokenizer:o.default,Tokenizer:s.default,tokenize:a.default};e.default=l},7305:(t,e)=>{"use strict";function n(t){this.named=t}e.__esModule=!0;var r=/^#[xX]([A-Fa-f0-9]+)$/,i=/^#([0-9]+)$/,o=/^([A-Za-z0-9]+)$/;n.prototype.parse=function(t){if(t){var e=t.match(r);return e?"&#x"+e[1]+";":(e=t.match(i))?"&#"+e[1]+";":(e=t.match(o))?this.named[e[1]]||"&"+e[1]+";":void 0}},e.default=n},1497:(t,e,n)=>{"use strict";e.__esModule=!0;var r=n(55);function i(t,e){this.delegate=t,this.entityParser=e,this.state=null,this.input=null,this.index=-1,this.line=-1,this.column=-1,this.tagLine=-1,this.tagColumn=-1,this.reset()}i.prototype={reset:function(){this.state="beforeData",this.input="",this.index=0,this.line=1,this.column=0,this.tagLine=-1,this.tagColumn=-1,this.delegate.reset()},tokenize:function(t){this.reset(),this.tokenizePart(t),this.tokenizeEOF()},tokenizePart:function(t){for(this.input+=(0,r.preprocessInput)(t);this.index<this.input.length;)this.states[this.state].call(this)},tokenizeEOF:function(){this.flushData()},flushData:function(){"data"===this.state&&(this.delegate.finishData(),this.state="beforeData")},peek:function(){return this.input.charAt(this.index)},consume:function(){var t=this.peek();return this.index++,"\n"===t?(this.line++,this.column=0):this.column++,t},consumeCharRef:function(){var t=this.input.indexOf(";",this.index);if(-1!==t){var e=this.input.slice(this.index,t),n=this.entityParser.parse(e);if(n){for(var r=e.length;r;)this.consume(),r--;return this.consume(),n}}},markTagStart:function(){this.tagLine=this.line,this.tagColumn=this.column,this.delegate.tagOpen&&this.delegate.tagOpen()},states:{beforeData:function(){"<"===this.peek()?(this.state="tagOpen",this.markTagStart(),this.consume()):(this.state="data",this.delegate.beginData())},data:function(){var t=this.peek();"<"===t?(this.delegate.finishData(),this.state="tagOpen",this.markTagStart(),this.consume()):"&"===t?(this.consume(),this.delegate.appendToData(this.consumeCharRef()||"&")):(this.consume(),this.delegate.appendToData(t))},tagOpen:function(){var t=this.consume();"!"===t?this.state="markupDeclaration":"/"===t?this.state="endTagOpen":(0,r.isAlpha)(t)&&(this.state="tagName",this.delegate.beginStartTag(),this.delegate.appendToTagName(t.toLowerCase()))},markupDeclaration:function(){"-"===this.consume()&&"-"===this.input.charAt(this.index)&&(this.consume(),this.state="commentStart",this.delegate.beginComment())},commentStart:function(){var t=this.consume();"-"===t?this.state="commentStartDash":">"===t?(this.delegate.finishComment(),this.state="beforeData"):(this.delegate.appendToCommentData(t),this.state="comment")},commentStartDash:function(){var t=this.consume();"-"===t?this.state="commentEnd":">"===t?(this.delegate.finishComment(),this.state="beforeData"):(this.delegate.appendToCommentData("-"),this.state="comment")},comment:function(){var t=this.consume();"-"===t?this.state="commentEndDash":this.delegate.appendToCommentData(t)},commentEndDash:function(){var t=this.consume();"-"===t?this.state="commentEnd":(this.delegate.appendToCommentData("-"+t),this.state="comment")},commentEnd:function(){var t=this.consume();">"===t?(this.delegate.finishComment(),this.state="beforeData"):(this.delegate.appendToCommentData("--"+t),this.state="comment")},tagName:function(){var t=this.consume();(0,r.isSpace)(t)?this.state="beforeAttributeName":"/"===t?this.state="selfClosingStartTag":">"===t?(this.delegate.finishTag(),this.state="beforeData"):this.delegate.appendToTagName(t)},beforeAttributeName:function(){var t=this.peek();(0,r.isSpace)(t)?this.consume():"/"===t?(this.state="selfClosingStartTag",this.consume()):">"===t?(this.consume(),this.delegate.finishTag(),this.state="beforeData"):(this.state="attributeName",this.delegate.beginAttribute(),this.consume(),this.delegate.appendToAttributeName(t))},attributeName:function(){var t=this.peek();(0,r.isSpace)(t)?(this.state="afterAttributeName",this.consume()):"/"===t?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.state="selfClosingStartTag"):"="===t?(this.state="beforeAttributeValue",this.consume()):">"===t?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.state="beforeData"):(this.consume(),this.delegate.appendToAttributeName(t))},afterAttributeName:function(){var t=this.peek();(0,r.isSpace)(t)?this.consume():"/"===t?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.state="selfClosingStartTag"):"="===t?(this.consume(),this.state="beforeAttributeValue"):">"===t?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.state="beforeData"):(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.state="attributeName",this.delegate.beginAttribute(),this.delegate.appendToAttributeName(t))},beforeAttributeValue:function(){var t=this.peek();(0,r.isSpace)(t)?this.consume():'"'===t?(this.state="attributeValueDoubleQuoted",this.delegate.beginAttributeValue(!0),this.consume()):"'"===t?(this.state="attributeValueSingleQuoted",this.delegate.beginAttributeValue(!0),this.consume()):">"===t?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.state="beforeData"):(this.state="attributeValueUnquoted",this.delegate.beginAttributeValue(!1),this.consume(),this.delegate.appendToAttributeValue(t))},attributeValueDoubleQuoted:function(){var t=this.consume();'"'===t?(this.delegate.finishAttributeValue(),this.state="afterAttributeValueQuoted"):"&"===t?this.delegate.appendToAttributeValue(this.consumeCharRef('"')||"&"):this.delegate.appendToAttributeValue(t)},attributeValueSingleQuoted:function(){var t=this.consume();"'"===t?(this.delegate.finishAttributeValue(),this.state="afterAttributeValueQuoted"):"&"===t?this.delegate.appendToAttributeValue(this.consumeCharRef("'")||"&"):this.delegate.appendToAttributeValue(t)},attributeValueUnquoted:function(){var t=this.peek();(0,r.isSpace)(t)?(this.delegate.finishAttributeValue(),this.consume(),this.state="beforeAttributeName"):"&"===t?(this.consume(),this.delegate.appendToAttributeValue(this.consumeCharRef(">")||"&")):">"===t?(this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.state="beforeData"):(this.consume(),this.delegate.appendToAttributeValue(t))},afterAttributeValueQuoted:function(){var t=this.peek();(0,r.isSpace)(t)?(this.consume(),this.state="beforeAttributeName"):"/"===t?(this.consume(),this.state="selfClosingStartTag"):">"===t?(this.consume(),this.delegate.finishTag(),this.state="beforeData"):this.state="beforeAttributeName"},selfClosingStartTag:function(){">"===this.peek()?(this.consume(),this.delegate.markTagAsSelfClosing(),this.delegate.finishTag(),this.state="beforeData"):this.state="beforeAttributeName"},endTagOpen:function(){var t=this.consume();(0,r.isAlpha)(t)&&(this.state="tagName",this.delegate.beginEndTag(),this.delegate.appendToTagName(t.toLowerCase()))}}},e.default=i},7691:(t,e)=>{"use strict";e.__esModule=!0,e.default={nbsp:" "}},4030:(t,e,n)=>{"use strict";e.__esModule=!0,e.default=function(t,e){return new r.default(new i.default(o.default),e).tokenize(t)};var r=s(n(4630)),i=s(n(7305)),o=s(n(7691));function s(t){return t&&t.__esModule?t:{default:t}}},4630:(t,e,n)=>{"use strict";e.__esModule=!0;var r,i=(r=n(1497))&&r.__esModule?r:{default:r};function o(t,e){this.token=null,this.startLine=1,this.startColumn=0,this.options=e||{},this.tokenizer=new i.default(this,t)}o.prototype={tokenize:function(t){return this.tokens=[],this.tokenizer.tokenize(t),this.tokens},tokenizePart:function(t){return this.tokens=[],this.tokenizer.tokenizePart(t),this.tokens},tokenizeEOF:function(){return this.tokens=[],this.tokenizer.tokenizeEOF(),this.tokens[0]},reset:function(){this.token=null,this.startLine=1,this.startColumn=0},addLocInfo:function(){this.options.loc&&(this.token.loc={start:{line:this.startLine,column:this.startColumn},end:{line:this.tokenizer.line,column:this.tokenizer.column}}),this.startLine=this.tokenizer.line,this.startColumn=this.tokenizer.column},beginData:function(){this.token={type:"Chars",chars:""},this.tokens.push(this.token)},appendToData:function(t){this.token.chars+=t},finishData:function(){this.addLocInfo()},beginComment:function(){this.token={type:"Comment",chars:""},this.tokens.push(this.token)},appendToCommentData:function(t){this.token.chars+=t},finishComment:function(){this.addLocInfo()},beginStartTag:function(){this.token={type:"StartTag",tagName:"",attributes:[],selfClosing:!1},this.tokens.push(this.token)},beginEndTag:function(){this.token={type:"EndTag",tagName:""},this.tokens.push(this.token)},finishTag:function(){this.addLocInfo()},markTagAsSelfClosing:function(){this.token.selfClosing=!0},appendToTagName:function(t){this.token.tagName+=t},beginAttribute:function(){this._currentAttribute=["","",null],this.token.attributes.push(this._currentAttribute)},appendToAttributeName:function(t){this._currentAttribute[0]+=t},beginAttributeValue:function(t){this._currentAttribute[2]=t},appendToAttributeValue:function(t){this._currentAttribute[1]=this._currentAttribute[1]||"",this._currentAttribute[1]+=t},finishAttributeValue:function(){}},e.default=o},55:(t,e)=>{"use strict";e.__esModule=!0,e.isSpace=function(t){return n.test(t)},e.isAlpha=function(t){return r.test(t)},e.preprocessInput=function(t){return t.replace(i,"\n")};var n=/[\t\n\f ]/,r=/[A-Za-z]/,i=/\r\n?/g},2705:(t,e,n)=>{var r=n(5639).Symbol;t.exports=r},4239:(t,e,n)=>{var r=n(2705),i=n(9607),o=n(2333),s=r?r.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":s&&s in Object(t)?i(t):o(t)}},7561:(t,e,n)=>{var r=n(7990),i=/^\s+/;t.exports=function(t){return t?t.slice(0,r(t)+1).replace(i,""):t}},1957:(t,e,n)=>{var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;t.exports=r},9607:(t,e,n)=>{var r=n(2705),i=Object.prototype,o=i.hasOwnProperty,s=i.toString,a=r?r.toStringTag:void 0;t.exports=function(t){var e=o.call(t,a),n=t[a];try{t[a]=void 0;var r=!0}catch(t){}var i=s.call(t);return r&&(e?t[a]=n:delete t[a]),i}},2333:t=>{var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},5639:(t,e,n)=>{var r=n(1957),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();t.exports=o},7990:t=>{var e=/\s/;t.exports=function(t){for(var n=t.length;n--&&e.test(t.charAt(n)););return n}},3279:(t,e,n)=>{var r=n(3218),i=n(7771),o=n(4841),s=Math.max,a=Math.min;t.exports=function(t,e,n){var c,l,u,h,p,d,f=0,g=!1,v=!1,m=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function y(e){var n=c,r=l;return c=l=void 0,f=e,h=t.apply(r,n)}function b(t){return f=t,p=setTimeout(x,e),g?y(t):h}function w(t){var n=t-d;return void 0===d||n>=e||n<0||v&&t-f>=u}function x(){var t=i();if(w(t))return _(t);p=setTimeout(x,function(t){var n=e-(t-d);return v?a(n,u-(t-f)):n}(t))}function _(t){return p=void 0,m&&c?y(t):(c=l=void 0,h)}function k(){var t=i(),n=w(t);if(c=arguments,l=this,d=t,n){if(void 0===p)return b(d);if(v)return clearTimeout(p),p=setTimeout(x,e),y(d)}return void 0===p&&(p=setTimeout(x,e)),h}return e=o(e)||0,r(n)&&(g=!!n.leading,u=(v="maxWait"in n)?s(o(n.maxWait)||0,e):u,m="trailing"in n?!!n.trailing:m),k.cancel=function(){void 0!==p&&clearTimeout(p),f=0,c=d=l=p=void 0},k.flush=function(){return void 0===p?h:_(i())},k}},3218:t=>{t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},7005:t=>{t.exports=function(t){return null!=t&&"object"==typeof t}},3448:(t,e,n)=>{var r=n(4239),i=n(7005);t.exports=function(t){return"symbol"==typeof t||i(t)&&"[object Symbol]"==r(t)}},7771:(t,e,n)=>{var r=n(5639);t.exports=function(){return r.Date.now()}},4841:(t,e,n)=>{var r=n(7561),i=n(3218),o=n(3448),s=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,c=/^0o[0-7]+$/i,l=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(o(t))return NaN;if(i(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=i(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=r(t);var n=a.test(t);return n||c.test(t)?l(t.slice(2),n?2:8):s.test(t)?NaN:+t}},224:()=>{},1975:()=>{},5754:()=>{},2354:()=>{},5439:()=>{},4321:()=>{},3035:()=>{},8782:()=>{},2972:()=>{},2640:()=>{},2639:()=>{},3068:()=>{},6081:()=>{},5994:()=>{},9528:()=>{},4924:()=>{},6461:()=>{},718:()=>{},65:()=>{},6374:()=>{},238:()=>{},1511:()=>{},6996:()=>{},3102:()=>{},7521:()=>{},1445:()=>{},4749:()=>{},1406:()=>{},1004:()=>{},9078:()=>{},7042:()=>{},9413:()=>{},5477:()=>{},7502:(t,e,n)=>{t.exports=function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s="fb15")}({"01f9":function(t,e,n){"use strict";var r=n("2d00"),i=n("5ca1"),o=n("2aba"),s=n("32e9"),a=n("84f2"),c=n("41a0"),l=n("7f20"),u=n("38fd"),h=n("2b4c")("iterator"),p=!([].keys&&"next"in[].keys()),d="keys",f="values",g=function(){return this};t.exports=function(t,e,n,v,m,y,b){c(n,e,v);var w,x,_,k=function(t){if(!p&&t in E)return E[t];switch(t){case d:case f:return function(){return new n(this,t)}}return function(){return new n(this,t)}},C=e+" Iterator",S=m==f,A=!1,E=t.prototype,O=E[h]||E["@@iterator"]||m&&E[m],T=O||k(m),P=m?S?k("entries"):T:void 0,I="Array"==e&&E.entries||O;if(I&&(_=u(I.call(new t)))!==Object.prototype&&_.next&&(l(_,C,!0),r||"function"==typeof _[h]||s(_,h,g)),S&&O&&O.name!==f&&(A=!0,T=function(){return O.call(this)}),r&&!b||!p&&!A&&E[h]||s(E,h,T),a[e]=T,a[C]=g,m)if(w={values:S?T:k(f),keys:y?T:k(d),entries:P},b)for(x in w)x in E||o(E,x,w[x]);else i(i.P+i.F*(p||A),e,w);return w}},"02f4":function(t,e,n){var r=n("4588"),i=n("be13");t.exports=function(t){return function(e,n){var o,s,a=String(i(e)),c=r(n),l=a.length;return c<0||c>=l?t?"":void 0:(o=a.charCodeAt(c))<55296||o>56319||c+1===l||(s=a.charCodeAt(c+1))<56320||s>57343?t?a.charAt(c):o:t?a.slice(c,c+2):s-56320+(o-55296<<10)+65536}}},"0390":function(t,e,n){"use strict";var r=n("02f4")(!0);t.exports=function(t,e,n){return e+(n?r(t,e).length:1)}},"0bfb":function(t,e,n){"use strict";var r=n("cb7c");t.exports=function(){var t=r(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},"0d58":function(t,e,n){var r=n("ce10"),i=n("e11e");t.exports=Object.keys||function(t){return r(t,i)}},1156:function(t,e,n){var r=n("ad20");"string"==typeof r&&(r=[[t.i,r,""]]),r.locals&&(t.exports=r.locals),(0,n("499e").default)("c1ec597e",r,!0,{sourceMap:!1,shadowMode:!1})},"11e9":function(t,e,n){var r=n("52a7"),i=n("4630"),o=n("6821"),s=n("6a99"),a=n("69a8"),c=n("c69a"),l=Object.getOwnPropertyDescriptor;e.f=n("9e1e")?l:function(t,e){if(t=o(t),e=s(e,!0),c)try{return l(t,e)}catch(t){}if(a(t,e))return i(!r.f.call(t,e),t[e])}},1495:function(t,e,n){var r=n("86cc"),i=n("cb7c"),o=n("0d58");t.exports=n("9e1e")?Object.defineProperties:function(t,e){i(t);for(var n,s=o(e),a=s.length,c=0;a>c;)r.f(t,n=s[c++],e[n]);return t}},"18d2":function(t,e,n){"use strict";var r=n("18e9");t.exports=function(t){var e=(t=t||{}).reporter,n=t.batchProcessor,i=t.stateHandler.getState;if(!e)throw new Error("Missing required dependency: reporter.");function o(e){var n=t.important?" !important; ":"; ";return(e.join(n)+n).trim()}function s(t){return i(t).object}return{makeDetectable:function(t,s,a){a||(a=s,s=t,t=null),(t=t||{}).debug,r.isIE(8)?a(s):function(s,a){var c=o(["display: block","position: absolute","top: 0","left: 0","width: 100%","height: 100%","border: none","padding: 0","margin: 0","opacity: 0","z-index: -1000","pointer-events: none"]),l=!1,u=window.getComputedStyle(s),h=s.offsetWidth,p=s.offsetHeight;function d(){function n(){if("static"===u.position){s.style.setProperty("position","relative",t.important?"important":"");var n=function(e,n,r,i){var o=r[i];"auto"!==o&&"0"!==function(t){return t.replace(/[^-\d\.]/g,"")}(o)&&(e.warn("An element that is positioned static has style."+i+"="+o+" which is ignored due to the static positioning. The element will need to be positioned relative, so the style."+i+" will be set to 0. Element: ",n),n.style.setProperty(i,"0",t.important?"important":""))};n(e,s,u,"top"),n(e,s,u,"right"),n(e,s,u,"bottom"),n(e,s,u,"left")}}""!==u.position&&(n(),l=!0);var o=document.createElement("object");o.style.cssText=c,o.tabIndex=-1,o.type="text/html",o.setAttribute("aria-hidden","true"),o.onload=function(){l||n(),function t(e,n){if(!e.contentDocument){var r=i(e);return r.checkForObjectDocumentTimeoutId&&window.clearTimeout(r.checkForObjectDocumentTimeoutId),void(r.checkForObjectDocumentTimeoutId=setTimeout((function(){r.checkForObjectDocumentTimeoutId=0,t(e,n)}),100))}n(e.contentDocument)}(this,(function(t){a(s)}))},r.isIE()||(o.data="about:blank"),i(s)&&(s.appendChild(o),i(s).object=o,r.isIE()&&(o.data="about:blank"))}i(s).startSize={width:h,height:p},n?n.add(d):d()}(s,a)},addListener:function(t,e){function n(){e(t)}if(r.isIE(8))i(t).object={proxy:n},t.attachEvent("onresize",n);else{var o=s(t);if(!o)throw new Error("Element is not detectable by this strategy.");o.contentDocument.defaultView.addEventListener("resize",n)}},uninstall:function(t){if(i(t)){var e=s(t);e&&(r.isIE(8)?t.detachEvent("onresize",e.proxy):t.removeChild(e),i(t).checkForObjectDocumentTimeoutId&&window.clearTimeout(i(t).checkForObjectDocumentTimeoutId),delete i(t).object)}}}}},"18e9":function(t,e,n){"use strict";var r=t.exports={};r.isIE=function(t){return!(-1===(e=navigator.userAgent.toLowerCase()).indexOf("msie")&&-1===e.indexOf("trident")&&-1===e.indexOf(" edge/")||t&&t!==function(){var t=3,e=document.createElement("div"),n=e.getElementsByTagName("i");do{e.innerHTML="\x3c!--[if gt IE "+ ++t+"]><i></i><![endif]--\x3e"}while(n[0]);return t>4?t:void 0}());var e},r.isLegacyOpera=function(){return!!window.opera}},"1ca7":function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"a",(function(){return o})),n.d(e,"c",(function(){return s}));function r(){return"undefined"!=typeof window}function i(){return"undefined"!=typeof document?void 0!==document.dir?document.dir:document.getElementsByTagName("html")[0].getAttribute("dir"):"auto"}function o(t,e){r?window.addEventListener(t,e):e()}function s(t,e){r&&window.removeEventListener(t,e)}},"214f":function(t,e,n){"use strict";n("b0c5");var r=n("2aba"),i=n("32e9"),o=n("79e5"),s=n("be13"),a=n("2b4c"),c=n("520a"),l=a("species"),u=!o((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})),h=function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2===n.length&&"a"===n[0]&&"b"===n[1]}();t.exports=function(t,e,n){var p=a(t),d=!o((function(){var e={};return e[p]=function(){return 7},7!=""[t](e)})),f=d?!o((function(){var e=!1,n=/a/;return n.exec=function(){return e=!0,null},"split"===t&&(n.constructor={},n.constructor[l]=function(){return n}),n[p](""),!e})):void 0;if(!d||!f||"replace"===t&&!u||"split"===t&&!h){var g=/./[p],v=n(s,p,""[t],(function(t,e,n,r,i){return e.exec===c?d&&!i?{done:!0,value:g.call(e,n,r)}:{done:!0,value:t.call(n,e,r)}:{done:!1}})),m=v[0],y=v[1];r(String.prototype,t,m),i(RegExp.prototype,p,2==e?function(t,e){return y.call(t,this,e)}:function(t){return y.call(t,this)})}}},"230e":function(t,e,n){var r=n("d3f4"),i=n("7726").document,o=r(i)&&r(i.createElement);t.exports=function(t){return o?i.createElement(t):{}}},2350:function(t,e){t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n=function(t,e){var n,r=t[1]||"",i=t[3];if(!i)return r;if(e&&"function"==typeof btoa){var o=(n=i,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(n))))+" */"),s=i.sources.map((function(t){return"/*# sourceURL="+i.sourceRoot+t+" */"}));return[r].concat(s).concat([o]).join("\n")}return[r].join("\n")}(e,t);return e[2]?"@media "+e[2]+"{"+n+"}":n})).join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var r={},i=0;i<this.length;i++){var o=this[i][0];"number"==typeof o&&(r[o]=!0)}for(i=0;i<t.length;i++){var s=t[i];"number"==typeof s[0]&&r[s[0]]||(n&&!s[2]?s[2]=n:n&&(s[2]="("+s[2]+") and ("+n+")"),e.push(s))}},e}},"23c6":function(t,e,n){var r=n("2d95"),i=n("2b4c")("toStringTag"),o="Arguments"==r(function(){return arguments}());t.exports=function(t){var e,n,s;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),i))?n:o?r(e):"Object"==(s=r(e))&&"function"==typeof e.callee?"Arguments":s}},2621:function(t,e){e.f=Object.getOwnPropertySymbols},2877:function(t,e,n){"use strict";function r(t,e,n,r,i,o,s,a){var c,l="function"==typeof t?t.options:t;if(e&&(l.render=e,l.staticRenderFns=n,l._compiled=!0),r&&(l.functional=!0),o&&(l._scopeId="data-v-"+o),s?(c=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(s)},l._ssrRegister=c):i&&(c=a?function(){i.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:i),c)if(l.functional){l._injectStyles=c;var u=l.render;l.render=function(t,e){return c.call(e),u(t,e)}}else{var h=l.beforeCreate;l.beforeCreate=h?[].concat(h,c):[c]}return{exports:t,options:l}}n.d(e,"a",(function(){return r}))},"2aba":function(t,e,n){var r=n("7726"),i=n("32e9"),o=n("69a8"),s=n("ca5a")("src"),a=n("fa5b"),c="toString",l=(""+a).split(c);n("8378").inspectSource=function(t){return a.call(t)},(t.exports=function(t,e,n,a){var c="function"==typeof n;c&&(o(n,"name")||i(n,"name",e)),t[e]!==n&&(c&&(o(n,s)||i(n,s,t[e]?""+t[e]:l.join(String(e)))),t===r?t[e]=n:a?t[e]?t[e]=n:i(t,e,n):(delete t[e],i(t,e,n)))})(Function.prototype,c,(function(){return"function"==typeof this&&this[s]||a.call(this)}))},"2aeb":function(t,e,n){var r=n("cb7c"),i=n("1495"),o=n("e11e"),s=n("613b")("IE_PROTO"),a=function(){},c=function(){var t,e=n("230e")("iframe"),r=o.length;for(e.style.display="none",n("fab2").appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),c=t.F;r--;)delete c.prototype[o[r]];return c()};t.exports=Object.create||function(t,e){var n;return null!==t?(a.prototype=r(t),n=new a,a.prototype=null,n[s]=t):n=c(),void 0===e?n:i(n,e)}},"2af9":function(t,e,n){"use strict";(function(t){n.d(e,"d",(function(){return s})),n("7f7f"),n("cadf"),n("456d"),n("ac6a");var r=n("bc21");n.d(e,"a",(function(){return r.a}));var i=n("37c8");n.d(e,"b",(function(){return i.a}));var o={GridLayout:i.a,GridItem:r.a};function s(t){s.installed||(s.installed=!0,Object.keys(o).forEach((function(e){t.component(e,o[e])})))}var a={install:s},c=null;"undefined"!=typeof window?c=window.Vue:void 0!==t&&(c=t.Vue),c&&c.use(a),e.c=o}).call(this,n("c8ba"))},"2b4c":function(t,e,n){var r=n("5537")("wks"),i=n("ca5a"),o=n("7726").Symbol,s="function"==typeof o;(t.exports=function(t){return r[t]||(r[t]=s&&o[t]||(s?o:i)("Symbol."+t))}).store=r},"2cef":function(t,e,n){"use strict";t.exports=function(){var t=1;return{generate:function(){return t++}}}},"2d00":function(t,e){t.exports=!1},"2d95":function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},"2f21":function(t,e,n){"use strict";var r=n("79e5");t.exports=function(t,e){return!!t&&r((function(){e?t.call(null,(function(){}),1):t.call(null)}))}},"32e9":function(t,e,n){var r=n("86cc"),i=n("4630");t.exports=n("9e1e")?function(t,e,n){return r.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},"37c8":function(t,e,n){"use strict";function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}n("8e6e"),n("cadf"),n("456d"),n("f751"),n("fca0"),n("ac6a"),n("c5f6");var i=n("8bbf"),o=n.n(i),s=n("a2b6"),a=n("97a7"),c=n("bc21"),l=n("1ca7");function u(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function h(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?u(Object(n),!0).forEach((function(e){r(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var p=n("eec4"),d={name:"GridLayout",provide:function(){return{eventBus:null,layout:this}},components:{GridItem:c.a},props:{autoSize:{type:Boolean,default:!0},colNum:{type:Number,default:12},rowHeight:{type:Number,default:150},maxRows:{type:Number,default:1/0},margin:{type:Array,default:function(){return[10,10]}},isDraggable:{type:Boolean,default:!0},isResizable:{type:Boolean,default:!0},isMirrored:{type:Boolean,default:!1},useCssTransforms:{type:Boolean,default:!0},verticalCompact:{type:Boolean,default:!0},layout:{type:Array,required:!0},responsive:{type:Boolean,default:!1},responsiveLayouts:{type:Object,default:function(){return{}}},breakpoints:{type:Object,default:function(){return{lg:1200,md:996,sm:768,xs:480,xxs:0}}},cols:{type:Object,default:function(){return{lg:12,md:10,sm:6,xs:4,xxs:2}}},preventCollision:{type:Boolean,default:!1},useStyleCursor:{type:Boolean,default:!0}},data:function(){return{width:null,mergedStyle:{},lastLayoutLength:0,isDragging:!1,placeholder:{x:0,y:0,w:0,h:0,i:-1},layouts:{},lastBreakpoint:null,originalLayout:null}},created:function(){var t=this;t.resizeEventHandler=function(e,n,r,i,o,s){t.resizeEvent(e,n,r,i,o,s)},t.dragEventHandler=function(e,n,r,i,o,s){t.dragEvent(e,n,r,i,o,s)},t._provided.eventBus=new o.a,t.eventBus=t._provided.eventBus,t.eventBus.$on("resizeEvent",t.resizeEventHandler),t.eventBus.$on("dragEvent",t.dragEventHandler),t.$emit("layout-created",t.layout)},beforeDestroy:function(){this.eventBus.$off("resizeEvent",this.resizeEventHandler),this.eventBus.$off("dragEvent",this.dragEventHandler),this.eventBus.$destroy(),Object(l.c)("resize",this.onWindowResize),this.erd&&this.erd.uninstall(this.$refs.item)},beforeMount:function(){this.$emit("layout-before-mount",this.layout)},mounted:function(){this.$emit("layout-mounted",this.layout),this.$nextTick((function(){Object(s.l)(this.layout),this.originalLayout=this.layout;var t=this;this.$nextTick((function(){t.onWindowResize(),t.initResponsiveFeatures(),Object(l.a)("resize",t.onWindowResize),Object(s.c)(t.layout,t.verticalCompact),t.$emit("layout-updated",t.layout),t.updateHeight(),t.$nextTick((function(){this.erd=p({strategy:"scroll",callOnAdd:!1}),this.erd.listenTo(t.$refs.item,(function(){t.onWindowResize()}))}))}))}))},watch:{width:function(t,e){var n=this;this.$nextTick((function(){var t=this;this.eventBus.$emit("updateWidth",this.width),null===e&&this.$nextTick((function(){t.$emit("layout-ready",n.layout)})),this.updateHeight()}))},layout:function(){this.layoutUpdate()},colNum:function(t){this.eventBus.$emit("setColNum",t)},rowHeight:function(){this.eventBus.$emit("setRowHeight",this.rowHeight)},isDraggable:function(){this.eventBus.$emit("setDraggable",this.isDraggable)},isResizable:function(){this.eventBus.$emit("setResizable",this.isResizable)},responsive:function(){this.responsive||(this.$emit("update:layout",this.originalLayout),this.eventBus.$emit("setColNum",this.colNum)),this.onWindowResize()},maxRows:function(){this.eventBus.$emit("setMaxRows",this.maxRows)},margin:function(){this.updateHeight()}},methods:{layoutUpdate:function(){if(void 0!==this.layout&&null!==this.originalLayout){if(this.layout.length!==this.originalLayout.length){var t=this.findDifference(this.layout,this.originalLayout);t.length>0&&(this.layout.length>this.originalLayout.length?this.originalLayout=this.originalLayout.concat(t):this.originalLayout=this.originalLayout.filter((function(e){return!t.some((function(t){return e.i===t.i}))}))),this.lastLayoutLength=this.layout.length,this.initResponsiveFeatures()}Object(s.c)(this.layout,this.verticalCompact),this.eventBus.$emit("updateWidth",this.width),this.updateHeight(),this.$emit("layout-updated",this.layout)}},updateHeight:function(){this.mergedStyle={height:this.containerHeight()}},onWindowResize:function(){null!==this.$refs&&null!==this.$refs.item&&void 0!==this.$refs.item&&(this.width=this.$refs.item.offsetWidth),this.eventBus.$emit("resizeEvent")},containerHeight:function(){if(this.autoSize)return Object(s.a)(this.layout)*(this.rowHeight+this.margin[1])+this.margin[1]+"px"},dragEvent:function(t,e,n,r,i,o){var a=Object(s.f)(this.layout,e);null==a&&(a={x:0,y:0}),"dragmove"===t||"dragstart"===t?(this.placeholder.i=e,this.placeholder.x=a.x,this.placeholder.y=a.y,this.placeholder.w=o,this.placeholder.h=i,this.$nextTick((function(){this.isDragging=!0})),this.eventBus.$emit("updateWidth",this.width)):this.$nextTick((function(){this.isDragging=!1})),this.layout=Object(s.g)(this.layout,a,n,r,!0,this.preventCollision),Object(s.c)(this.layout,this.verticalCompact),this.eventBus.$emit("compact"),this.updateHeight(),"dragend"===t&&this.$emit("layout-updated",this.layout)},resizeEvent:function(t,e,n,r,i,o){var a,c=Object(s.f)(this.layout,e);if(null==c&&(c={h:0,w:0}),this.preventCollision){var l=Object(s.e)(this.layout,h(h({},c),{},{w:o,h:i})).filter((function(t){return t.i!==c.i}));if(a=l.length>0){var u=1/0,p=1/0;l.forEach((function(t){t.x>c.x&&(u=Math.min(u,t.x)),t.y>c.y&&(p=Math.min(p,t.y))})),Number.isFinite(u)&&(c.w=u-c.x),Number.isFinite(p)&&(c.h=p-c.y)}}a||(c.w=o,c.h=i),"resizestart"===t||"resizemove"===t?(this.placeholder.i=e,this.placeholder.x=n,this.placeholder.y=r,this.placeholder.w=c.w,this.placeholder.h=c.h,this.$nextTick((function(){this.isDragging=!0})),this.eventBus.$emit("updateWidth",this.width)):this.$nextTick((function(){this.isDragging=!1})),this.responsive&&this.responsiveGridLayout(),Object(s.c)(this.layout,this.verticalCompact),this.eventBus.$emit("compact"),this.updateHeight(),"resizeend"===t&&this.$emit("layout-updated",this.layout)},responsiveGridLayout:function(){var t=Object(a.b)(this.breakpoints,this.width),e=Object(a.c)(t,this.cols);null==this.lastBreakpoint||this.layouts[this.lastBreakpoint]||(this.layouts[this.lastBreakpoint]=Object(s.b)(this.layout));var n=Object(a.a)(this.originalLayout,this.layouts,this.breakpoints,t,this.lastBreakpoint,e,this.verticalCompact);this.layouts[t]=n,this.lastBreakpoint!==t&&this.$emit("breakpoint-changed",t,n),this.$emit("update:layout",n),this.lastBreakpoint=t,this.eventBus.$emit("setColNum",Object(a.c)(t,this.cols))},initResponsiveFeatures:function(){this.layouts=Object.assign({},this.responsiveLayouts)},findDifference:function(t,e){var n=t.filter((function(t){return!e.some((function(e){return t.i===e.i}))})),r=e.filter((function(e){return!t.some((function(t){return e.i===t.i}))}));return n.concat(r)}}},f=(n("e279"),n("2877")),g=Object(f.a)(d,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{ref:"item",staticClass:"vue-grid-layout",style:t.mergedStyle},[t._t("default"),n("grid-item",{directives:[{name:"show",rawName:"v-show",value:t.isDragging,expression:"isDragging"}],staticClass:"vue-grid-placeholder",attrs:{x:t.placeholder.x,y:t.placeholder.y,w:t.placeholder.w,h:t.placeholder.h,i:t.placeholder.i}})],2)}),[],!1,null,null,null);e.a=g.exports},"38fd":function(t,e,n){var r=n("69a8"),i=n("4bf8"),o=n("613b")("IE_PROTO"),s=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=i(t),r(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?s:null}},"41a0":function(t,e,n){"use strict";var r=n("2aeb"),i=n("4630"),o=n("7f20"),s={};n("32e9")(s,n("2b4c")("iterator"),(function(){return this})),t.exports=function(t,e,n){t.prototype=r(s,{next:i(1,n)}),o(t,e+" Iterator")}},"456d":function(t,e,n){var r=n("4bf8"),i=n("0d58");n("5eda")("keys",(function(){return function(t){return i(r(t))}}))},4588:function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},4630:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},4917:function(t,e,n){"use strict";var r=n("cb7c"),i=n("9def"),o=n("0390"),s=n("5f1b");n("214f")("match",1,(function(t,e,n,a){return[function(n){var r=t(this),i=null==n?void 0:n[e];return void 0!==i?i.call(n,r):new RegExp(n)[e](String(r))},function(t){var e=a(n,t,this);if(e.done)return e.value;var c=r(t),l=String(this);if(!c.global)return s(c,l);var u=c.unicode;c.lastIndex=0;for(var h,p=[],d=0;null!==(h=s(c,l));){var f=String(h[0]);p[d]=f,""===f&&(c.lastIndex=o(l,i(c.lastIndex),u)),d++}return 0===d?null:p}]}))},"499e":function(t,e,n){"use strict";function r(t,e){for(var n=[],r={},i=0;i<e.length;i++){var o=e[i],s=o[0],a={id:t+":"+i,css:o[1],media:o[2],sourceMap:o[3]};r[s]?r[s].parts.push(a):n.push(r[s]={id:s,parts:[a]})}return n}n.r(e),n.d(e,"default",(function(){return f}));var i="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!i)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var o={},s=i&&(document.head||document.getElementsByTagName("head")[0]),a=null,c=0,l=!1,u=function(){},h=null,p="data-vue-ssr-id",d="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function f(t,e,n,i){l=n,h=i||{};var s=r(t,e);return g(s),function(e){for(var n=[],i=0;i<s.length;i++){var a=s[i];(c=o[a.id]).refs--,n.push(c)}for(e?g(s=r(t,e)):s=[],i=0;i<n.length;i++){var c;if(0===(c=n[i]).refs){for(var l=0;l<c.parts.length;l++)c.parts[l]();delete o[c.id]}}}}function g(t){for(var e=0;e<t.length;e++){var n=t[e],r=o[n.id];if(r){r.refs++;for(var i=0;i<r.parts.length;i++)r.parts[i](n.parts[i]);for(;i<n.parts.length;i++)r.parts.push(m(n.parts[i]));r.parts.length>n.parts.length&&(r.parts.length=n.parts.length)}else{var s=[];for(i=0;i<n.parts.length;i++)s.push(m(n.parts[i]));o[n.id]={id:n.id,refs:1,parts:s}}}}function v(){var t=document.createElement("style");return t.type="text/css",s.appendChild(t),t}function m(t){var e,n,r=document.querySelector("style["+p+'~="'+t.id+'"]');if(r){if(l)return u;r.parentNode.removeChild(r)}if(d){var i=c++;r=a||(a=v()),e=w.bind(null,r,i,!1),n=w.bind(null,r,i,!0)}else r=v(),e=x.bind(null,r),n=function(){r.parentNode.removeChild(r)};return e(t),function(r){if(r){if(r.css===t.css&&r.media===t.media&&r.sourceMap===t.sourceMap)return;e(t=r)}else n()}}var y,b=(y=[],function(t,e){return y[t]=e,y.filter(Boolean).join("\n")});function w(t,e,n,r){var i=n?"":r.css;if(t.styleSheet)t.styleSheet.cssText=b(e,i);else{var o=document.createTextNode(i),s=t.childNodes;s[e]&&t.removeChild(s[e]),s.length?t.insertBefore(o,s[e]):t.appendChild(o)}}function x(t,e){var n=e.css,r=e.media,i=e.sourceMap;if(r&&t.setAttribute("media",r),h.ssrId&&t.setAttribute(p,e.id),i&&(n+="\n/*# sourceURL="+i.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */"),t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}},"49ad":function(t,e,n){"use strict";t.exports=function(t){var e={};function n(n){var r=t.get(n);return void 0===r?[]:e[r]||[]}return{get:n,add:function(n,r){var i=t.get(n);e[i]||(e[i]=[]),e[i].push(r)},removeListener:function(t,e){for(var r=n(t),i=0,o=r.length;i<o;++i)if(r[i]===e){r.splice(i,1);break}},removeAllListeners:function(t){var e=n(t);e&&(e.length=0)}}}},"4bf8":function(t,e,n){var r=n("be13");t.exports=function(t){return Object(r(t))}},5058:function(t,e,n){"use strict";t.exports=function(t){var e=t.idGenerator,n=t.stateHandler.getState;return{get:function(t){var e=n(t);return e&&void 0!==e.id?e.id:null},set:function(t){var r=n(t);if(!r)throw new Error("setId required the element to have a resize detection state.");var i=e.generate();return r.id=i,i}}}},"50bf":function(t,e,n){"use strict";(t.exports={}).getOption=function(t,e,n){var r=t[e];return null==r&&void 0!==n?n:r}},"520a":function(t,e,n){"use strict";var r,i,o=n("0bfb"),s=RegExp.prototype.exec,a=String.prototype.replace,c=s,l=(r=/a/,i=/b*/g,s.call(r,"a"),s.call(i,"a"),0!==r.lastIndex||0!==i.lastIndex),u=void 0!==/()??/.exec("")[1];(l||u)&&(c=function(t){var e,n,r,i,c=this;return u&&(n=new RegExp("^"+c.source+"$(?!\\s)",o.call(c))),l&&(e=c.lastIndex),r=s.call(c,t),l&&r&&(c.lastIndex=c.global?r.index+r[0].length:e),u&&r&&r.length>1&&a.call(r[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(r[i]=void 0)})),r}),t.exports=c},"52a7":function(t,e){e.f={}.propertyIsEnumerable},5537:function(t,e,n){var r=n("8378"),i=n("7726"),o="__core-js_shared__",s=i[o]||(i[o]={});(t.exports=function(t,e){return s[t]||(s[t]=void 0!==e?e:{})})("versions",[]).push({version:r.version,mode:n("2d00")?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},"55dd":function(t,e,n){"use strict";var r=n("5ca1"),i=n("d8e8"),o=n("4bf8"),s=n("79e5"),a=[].sort,c=[1,2,3];r(r.P+r.F*(s((function(){c.sort(void 0)}))||!s((function(){c.sort(null)}))||!n("2f21")(a)),"Array",{sort:function(t){return void 0===t?a.call(o(this)):a.call(o(this),i(t))}})},"5be5":function(t,e,n){"use strict";t.exports=function(t){var e=t.stateHandler.getState;return{isDetectable:function(t){var n=e(t);return n&&!!n.isDetectable},markAsDetectable:function(t){e(t).isDetectable=!0},isBusy:function(t){return!!e(t).busy},markBusy:function(t,n){e(t).busy=!!n}}}},"5ca1":function(t,e,n){var r=n("7726"),i=n("8378"),o=n("32e9"),s=n("2aba"),a=n("9b43"),c=function(t,e,n){var l,u,h,p,d=t&c.F,f=t&c.G,g=t&c.S,v=t&c.P,m=t&c.B,y=f?r:g?r[e]||(r[e]={}):(r[e]||{}).prototype,b=f?i:i[e]||(i[e]={}),w=b.prototype||(b.prototype={});for(l in f&&(n=e),n)h=((u=!d&&y&&void 0!==y[l])?y:n)[l],p=m&&u?a(h,r):v&&"function"==typeof h?a(Function.call,h):h,y&&s(y,l,h,t&c.U),b[l]!=h&&o(b,l,p),v&&w[l]!=h&&(w[l]=h)};r.core=i,c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},"5dbc":function(t,e,n){var r=n("d3f4"),i=n("8b97").set;t.exports=function(t,e,n){var o,s=e.constructor;return s!==n&&"function"==typeof s&&(o=s.prototype)!==n.prototype&&r(o)&&i&&i(t,o),t}},"5ed4":function(t,e,n){"use strict";n("6e21")},"5eda":function(t,e,n){var r=n("5ca1"),i=n("8378"),o=n("79e5");t.exports=function(t,e){var n=(i.Object||{})[t]||Object[t],s={};s[t]=e(n),r(r.S+r.F*o((function(){n(1)})),"Object",s)}},"5f1b":function(t,e,n){"use strict";var r=n("23c6"),i=RegExp.prototype.exec;t.exports=function(t,e){var n=t.exec;if("function"==typeof n){var o=n.call(t,e);if("object"!=typeof o)throw new TypeError("RegExp exec method returned something other than an Object or null");return o}if("RegExp"!==r(t))throw new TypeError("RegExp#exec called on incompatible receiver");return i.call(t,e)}},"613b":function(t,e,n){var r=n("5537")("keys"),i=n("ca5a");t.exports=function(t){return r[t]||(r[t]=i(t))}},"626a":function(t,e,n){var r=n("2d95");t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},6821:function(t,e,n){var r=n("626a"),i=n("be13");t.exports=function(t){return r(i(t))}},"69a8":function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},"6a99":function(t,e,n){var r=n("d3f4");t.exports=function(t,e){if(!r(t))return t;var n,i;if(e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;if("function"==typeof(n=t.valueOf)&&!r(i=n.call(t)))return i;if(!e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},"6e21":function(t,e,n){var r=n("9cbe");"string"==typeof r&&(r=[[t.i,r,""]]),r.locals&&(t.exports=r.locals),(0,n("499e").default)("3cbd0c21",r,!0,{sourceMap:!1,shadowMode:!1})},7333:function(t,e,n){"use strict";var r=n("9e1e"),i=n("0d58"),o=n("2621"),s=n("52a7"),a=n("4bf8"),c=n("626a"),l=Object.assign;t.exports=!l||n("79e5")((function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach((function(t){e[t]=t})),7!=l({},t)[n]||Object.keys(l({},e)).join("")!=r}))?function(t,e){for(var n=a(t),l=arguments.length,u=1,h=o.f,p=s.f;l>u;)for(var d,f=c(arguments[u++]),g=h?i(f).concat(h(f)):i(f),v=g.length,m=0;v>m;)d=g[m++],r&&!p.call(f,d)||(n[d]=f[d]);return n}:l},7726:function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},"77f1":function(t,e,n){var r=n("4588"),i=Math.max,o=Math.min;t.exports=function(t,e){return(t=r(t))<0?i(t+e,0):o(t,e)}},"79e5":function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},"7f20":function(t,e,n){var r=n("86cc").f,i=n("69a8"),o=n("2b4c")("toStringTag");t.exports=function(t,e,n){t&&!i(t=n?t:t.prototype,o)&&r(t,o,{configurable:!0,value:e})}},"7f7f":function(t,e,n){var r=n("86cc").f,i=Function.prototype,o=/^\s*function ([^ (]*)/,s="name";s in i||n("9e1e")&&r(i,s,{configurable:!0,get:function(){try{return(""+this).match(o)[1]}catch(t){return""}}})},8378:function(t,e){var n=t.exports={version:"2.6.12"};"number"==typeof __e&&(__e=n)},"84f2":function(t,e){t.exports={}},"86cc":function(t,e,n){var r=n("cb7c"),i=n("c69a"),o=n("6a99"),s=Object.defineProperty;e.f=n("9e1e")?Object.defineProperty:function(t,e,n){if(r(t),e=o(e,!0),r(n),i)try{return s(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},"8b97":function(t,e,n){var r=n("d3f4"),i=n("cb7c"),o=function(t,e){if(i(t),!r(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,r){try{(r=n("9b43")(Function.call,n("11e9").f(Object.prototype,"__proto__").set,2))(t,[]),e=!(t instanceof Array)}catch(t){e=!0}return function(t,n){return o(t,n),e?t.__proto__=n:r(t,n),t}}({},!1):void 0),check:o}},"8bbf":function(t,e){t.exports=n(144)},"8e6e":function(t,e,n){var r=n("5ca1"),i=n("990b"),o=n("6821"),s=n("11e9"),a=n("f1ae");r(r.S,"Object",{getOwnPropertyDescriptors:function(t){for(var e,n,r=o(t),c=s.f,l=i(r),u={},h=0;l.length>h;)void 0!==(n=c(r,e=l[h++]))&&a(u,e,n);return u}})},9093:function(t,e,n){var r=n("ce10"),i=n("e11e").concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,i)}},"97a7":function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return s})),n("55dd"),n("ac6a"),n("cadf"),n("456d");var r=n("a2b6");function i(t,e){for(var n=a(t),r=n[0],i=1,o=n.length;i<o;i++){var s=n[i];e>t[s]&&(r=s)}return r}function o(t,e){if(!e[t])throw new Error("ResponsiveGridLayout: `cols` entry for breakpoint "+t+" is missing!");return e[t]}function s(t,e,n,i,o,s,c){if(e[i])return Object(r.b)(e[i]);for(var l=t,u=a(n),h=u.slice(u.indexOf(i)),p=0,d=h.length;p<d;p++){var f=h[p];if(e[f]){l=e[f];break}}return l=Object(r.b)(l||[]),Object(r.c)(Object(r.d)(l,{cols:s}),c)}function a(t){return Object.keys(t).sort((function(e,n){return t[e]-t[n]}))}},"990b":function(t,e,n){var r=n("9093"),i=n("2621"),o=n("cb7c"),s=n("7726").Reflect;t.exports=s&&s.ownKeys||function(t){var e=r.f(o(t)),n=i.f;return n?e.concat(n(t)):e}},"9b43":function(t,e,n){var r=n("d8e8");t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,i){return t.call(e,n,r,i)}}return function(){return t.apply(e,arguments)}}},"9c6c":function(t,e,n){var r=n("2b4c")("unscopables"),i=Array.prototype;null==i[r]&&n("32e9")(i,r,{}),t.exports=function(t){i[r][t]=!0}},"9cbe":function(t,e,n){(t.exports=n("2350")(!1)).push([t.i,'.vue-grid-item{-webkit-transition:all .2s ease;transition:all .2s ease;-webkit-transition-property:left,top,right;transition-property:left,top,right}.vue-grid-item.no-touch{-ms-touch-action:none;touch-action:none}.vue-grid-item.cssTransforms{-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;transition-property:transform;transition-property:transform,-webkit-transform;left:0;right:auto}.vue-grid-item.cssTransforms.render-rtl{left:auto;right:0}.vue-grid-item.resizing{opacity:.6;z-index:3}.vue-grid-item.vue-draggable-dragging{-webkit-transition:none;transition:none;z-index:3}.vue-grid-item.vue-grid-placeholder{background:red;opacity:.2;-webkit-transition-duration:.1s;transition-duration:.1s;z-index:2;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none}.vue-grid-item>.vue-resizable-handle{position:absolute;width:20px;height:20px;bottom:0;right:0;background:url("data:image/svg+xml;base64,PHN2ZyBzdHlsZT0iYmFja2dyb3VuZC1jb2xvcjojZmZmZmZmMDAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjYiIGhlaWdodD0iNiI+PHBhdGggZD0iTTYgNkgwVjQuMmg0LjJWMEg2djZ6IiBvcGFjaXR5PSIuMzAyIi8+PC9zdmc+");background-position:100% 100%;padding:0 3px 3px 0;background-repeat:no-repeat;background-origin:content-box;-webkit-box-sizing:border-box;box-sizing:border-box;cursor:se-resize}.vue-grid-item>.vue-rtl-resizable-handle{bottom:0;left:0;background:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAiIGhlaWdodD0iMTAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZmlsbD0ibm9uZSIgZD0iTS0xLTFoMTJ2MTJILTF6Ii8+PGc+PHBhdGggc3Ryb2tlLWxpbmVjYXA9InVuZGVmaW5lZCIgc3Ryb2tlLWxpbmVqb2luPSJ1bmRlZmluZWQiIHN0cm9rZS13aWR0aD0iMS41IiBzdHJva2U9IiMwMDAiIGZpbGw9Im5vbmUiIGQ9Ik0xNDQuODIxLTM4LjM5M2wtMjAuMzU3LTMxLjc4NSIvPjxwYXRoIHN0cm9rZT0iIzY2NiIgc3Ryb2tlLWxpbmVjYXA9InVuZGVmaW5lZCIgc3Ryb2tlLWxpbmVqb2luPSJ1bmRlZmluZWQiIHN0cm9rZS13aWR0aD0iMiIgZmlsbD0ibm9uZSIgZD0iTS45NDctLjAxOHY5LjEyNU0tLjY1NiA5aDEwLjczIi8+PC9nPjwvc3ZnPg==);background-position:0 100%;padding-left:3px;background-repeat:no-repeat;background-origin:content-box;cursor:sw-resize;right:auto}.vue-grid-item.disable-userselect{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}',""])},"9def":function(t,e,n){var r=n("4588"),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},"9e1e":function(t,e,n){t.exports=!n("79e5")((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},a2b6:function(t,e,n){"use strict";function r(t){for(var e,n=0,r=0,i=t.length;r<i;r++)(e=t[r].y+t[r].h)>n&&(n=e);return n}function i(t){for(var e,n=Array(t.length),r=0,i=t.length;r<i;r++)n[r]=(e=t[r],JSON.parse(JSON.stringify(e)));return n}function o(t,e){return!(t===e||t.x+t.w<=e.x||t.x>=e.x+e.w||t.y+t.h<=e.y||t.y>=e.y+e.h)}function s(t,e){for(var n=p(t),r=b(t),i=Array(t.length),o=0,s=r.length;o<s;o++){var c=r[o];c.static||(c=a(n,c,e),n.push(c)),i[t.indexOf(c)]=c,c.moved=!1}return i}function a(t,e,n){if(n)for(;e.y>0&&!u(t,e);)e.y--;for(var r;r=u(t,e);)e.y=r.y+r.h;return e}function c(t,e){for(var n=p(t),r=0,i=t.length;r<i;r++){var o=t[r];if(o.x+o.w>e.cols&&(o.x=e.cols-o.w),o.x<0&&(o.x=0,o.w=e.cols),o.static)for(;u(n,o);)o.y++;else n.push(o)}return t}function l(t,e){for(var n=0,r=t.length;n<r;n++)if(t[n].i===e)return t[n]}function u(t,e){for(var n=0,r=t.length;n<r;n++)if(o(t[n],e))return t[n]}function h(t,e){return t.filter((function(t){return o(t,e)}))}function p(t){return t.filter((function(t){return t.static}))}function d(t,e,n,r,i,o){if(e.static)return t;var s=e.x,a=e.y,c=r&&e.y>r;"number"==typeof n&&(e.x=n),"number"==typeof r&&(e.y=r),e.moved=!0;var l=b(t);c&&(l=l.reverse());var u=h(l,e);if(o&&u.length)return e.x=s,e.y=a,e.moved=!1,t;for(var p=0,d=u.length;p<d;p++){var g=u[p];g.moved||e.y>g.y&&e.y-g.y>g.h/4||(t=g.static?f(t,g,e,i):f(t,e,g,i))}return t}function f(t,e,n,r){if(r){var i={x:n.x,y:n.y,w:n.w,h:n.h,i:"-1"};if(i.y=Math.max(e.y-n.h,0),!u(t,i))return d(t,n,void 0,i.y,!1)}return d(t,n,void 0,n.y+1,!1)}function g(t,e,n,r){var i="translate3d("+e+"px,"+t+"px, 0)";return{transform:i,WebkitTransform:i,MozTransform:i,msTransform:i,OTransform:i,width:n+"px",height:r+"px",position:"absolute"}}function v(t,e,n,r){var i="translate3d("+-1*e+"px,"+t+"px, 0)";return{transform:i,WebkitTransform:i,MozTransform:i,msTransform:i,OTransform:i,width:n+"px",height:r+"px",position:"absolute"}}function m(t,e,n,r){return{top:t+"px",left:e+"px",width:n+"px",height:r+"px",position:"absolute"}}function y(t,e,n,r){return{top:t+"px",right:e+"px",width:n+"px",height:r+"px",position:"absolute"}}function b(t){return[].concat(t).sort((function(t,e){return t.y===e.y&&t.x===e.x?0:t.y>e.y||t.y===e.y&&t.x>e.x?1:-1}))}function w(t,e){e=e||"Layout";var n=["x","y","w","h"];if(!Array.isArray(t))throw new Error(e+" must be an array!");for(var r=0,i=t.length;r<i;r++){for(var o=t[r],s=0;s<n.length;s++)if("number"!=typeof o[n[s]])throw new Error("VueGridLayout: "+e+"["+r+"]."+n[s]+" must be a number!");if(o.i&&o.i,void 0!==o.static&&"boolean"!=typeof o.static)throw new Error("VueGridLayout: "+e+"["+r+"].static must be a boolean!")}}n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return s})),n.d(e,"d",(function(){return c})),n.d(e,"f",(function(){return l})),n.d(e,"e",(function(){return h})),n.d(e,"g",(function(){return d})),n.d(e,"j",(function(){return g})),n.d(e,"k",(function(){return v})),n.d(e,"h",(function(){return m})),n.d(e,"i",(function(){return y})),n.d(e,"l",(function(){return w})),n("a481"),n("cadf"),n("456d"),n("ac6a"),n("55dd")},a481:function(t,e,n){"use strict";var r=n("cb7c"),i=n("4bf8"),o=n("9def"),s=n("4588"),a=n("0390"),c=n("5f1b"),l=Math.max,u=Math.min,h=Math.floor,p=/\$([$&`']|\d\d?|<[^>]*>)/g,d=/\$([$&`']|\d\d?)/g;n("214f")("replace",2,(function(t,e,n,f){return[function(r,i){var o=t(this),s=null==r?void 0:r[e];return void 0!==s?s.call(r,o,i):n.call(String(o),r,i)},function(t,e){var i=f(n,t,this,e);if(i.done)return i.value;var h=r(t),p=String(this),d="function"==typeof e;d||(e=String(e));var v=h.global;if(v){var m=h.unicode;h.lastIndex=0}for(var y=[];;){var b=c(h,p);if(null===b)break;if(y.push(b),!v)break;""===String(b[0])&&(h.lastIndex=a(p,o(h.lastIndex),m))}for(var w,x="",_=0,k=0;k<y.length;k++){b=y[k];for(var C=String(b[0]),S=l(u(s(b.index),p.length),0),A=[],E=1;E<b.length;E++)A.push(void 0===(w=b[E])?w:String(w));var O=b.groups;if(d){var T=[C].concat(A,S,p);void 0!==O&&T.push(O);var P=String(e.apply(void 0,T))}else P=g(C,p,S,A,O,e);S>=_&&(x+=p.slice(_,S)+P,_=S+C.length)}return x+p.slice(_)}];function g(t,e,r,o,s,a){var c=r+t.length,l=o.length,u=d;return void 0!==s&&(s=i(s),u=p),n.call(a,u,(function(n,i){var a;switch(i.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,r);case"'":return e.slice(c);case"<":a=s[i.slice(1,-1)];break;default:var u=+i;if(0===u)return n;if(u>l){var p=h(u/10);return 0===p?n:p<=l?void 0===o[p-1]?i.charAt(1):o[p-1]+i.charAt(1):n}a=o[u-1]}return void 0===a?"":a}))}}))},aa77:function(t,e,n){var r=n("5ca1"),i=n("be13"),o=n("79e5"),s=n("fdef"),a="["+s+"]",c=RegExp("^"+a+a+"*"),l=RegExp(a+a+"*$"),u=function(t,e,n){var i={},a=o((function(){return!!s[t]()||"
"!="
"[t]()})),c=i[t]=a?e(h):s[t];n&&(i[n]=c),r(r.P+r.F*a,"String",i)},h=u.trim=function(t,e){return t=String(i(t)),1&e&&(t=t.replace(c,"")),2&e&&(t=t.replace(l,"")),t};t.exports=u},abb4:function(t,e,n){"use strict";t.exports=function(t){function e(){}var n={log:e,warn:e,error:e};if(!t&&window.console){var r=function(t,e){t[e]=function(){var t=console[e];if(t.apply)t.apply(console,arguments);else for(var n=0;n<arguments.length;n++)t(arguments[n])}};r(n,"log"),r(n,"warn"),r(n,"error")}return n}},ac6a:function(t,e,n){for(var r=n("cadf"),i=n("0d58"),o=n("2aba"),s=n("7726"),a=n("32e9"),c=n("84f2"),l=n("2b4c"),u=l("iterator"),h=l("toStringTag"),p=c.Array,d={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},f=i(d),g=0;g<f.length;g++){var v,m=f[g],y=d[m],b=s[m],w=b&&b.prototype;if(w&&(w[u]||a(w,u,p),w[h]||a(w,h,m),c[m]=p,y))for(v in r)w[v]||o(w,v,r[v],!0)}},ad20:function(t,e,n){(t.exports=n("2350")(!1)).push([t.i,".vue-grid-layout{position:relative;-webkit-transition:height .2s ease;transition:height .2s ease}",""])},b0c5:function(t,e,n){"use strict";var r=n("520a");n("5ca1")({target:"RegExp",proto:!0,forced:r!==/./.exec},{exec:r})},b770:function(t,e,n){"use strict";(t.exports={}).forEach=function(t,e){for(var n=0;n<t.length;n++){var r=e(t[n]);if(r)return r}}},bc21:function(t,e,n){"use strict";var r={};n.r(r),n.d(r,"edgeTarget",(function(){return ve})),n.d(r,"elements",(function(){return me})),n.d(r,"grid",(function(){return ye})),n("a481"),n("4917"),n("c5f6");var i=n("a2b6");function o(t){return n=(e=t).target.offsetParent||document.body,r=e.offsetParent===document.body?{left:0,top:0}:n.getBoundingClientRect(),{x:e.clientX+n.scrollLeft-r.left,y:e.clientY+n.scrollTop-r.top};var e,n,r}function s(t,e,n,r){var i;return"number"!=typeof(i=t)||isNaN(i)?{deltaX:0,deltaY:0,lastX:n,lastY:r,x:n,y:r}:{deltaX:n-t,deltaY:r-e,lastX:t,lastY:e,x:n,y:r}}var a=n("97a7"),c=n("1ca7");const l={init:function(t){const e=t;l.document=e.document,l.DocumentFragment=e.DocumentFragment||u,l.SVGElement=e.SVGElement||u,l.SVGSVGElement=e.SVGSVGElement||u,l.SVGElementInstance=e.SVGElementInstance||u,l.Element=e.Element||u,l.HTMLElement=e.HTMLElement||l.Element,l.Event=e.Event,l.Touch=e.Touch||u,l.PointerEvent=e.PointerEvent||e.MSPointerEvent},document:null,DocumentFragment:null,SVGElement:null,SVGSVGElement:null,SVGElementInstance:null,Element:null,HTMLElement:null,Event:null,Touch:null,PointerEvent:null};function u(){}var h=l,p=t=>!(!t||!t.Window)&&t instanceof t.Window;let d,f;function g(t){d=t;const e=t.document.createTextNode("");e.ownerDocument!==t.document&&"function"==typeof t.wrap&&t.wrap(e)===e&&(t=t.wrap(t)),f=t}function v(t){return p(t)?t:(t.ownerDocument||t).defaultView||f.window}"undefined"!=typeof window&&window&&g(window);const m=t=>!!t&&"object"==typeof t,y=t=>"function"==typeof t;var b=t=>m(t)&&11===t.nodeType,w=m,x=y,_=t=>"number"==typeof t,k=t=>"boolean"==typeof t,C=t=>"string"==typeof t,S=t=>{if(!t||"object"!=typeof t)return!1;const e=v(t)||f;return/object|function/.test(typeof e.Element)?t instanceof e.Element:1===t.nodeType&&"string"==typeof t.nodeName},A=t=>m(t)&&!!t.constructor&&/function Object\b/.test(t.constructor.toString()),E=t=>m(t)&&void 0!==t.length&&y(t.splice);const O={init:function(t){const e=h.Element,n=f.navigator;O.supportsTouch="ontouchstart"in t||x(t.DocumentTouch)&&h.document instanceof t.DocumentTouch,O.supportsPointerEvent=!1!==n.pointerEnabled&&!!h.PointerEvent,O.isIOS=/iP(hone|od|ad)/.test(n.platform),O.isIOS7=/iP(hone|od|ad)/.test(n.platform)&&/OS 7[^\d]/.test(n.appVersion),O.isIe9=/MSIE 9/.test(n.userAgent),O.isOperaMobile="Opera"===n.appName&&O.supportsTouch&&/Presto/.test(n.userAgent),O.prefixedMatchesSelector="matches"in e.prototype?"matches":"webkitMatchesSelector"in e.prototype?"webkitMatchesSelector":"mozMatchesSelector"in e.prototype?"mozMatchesSelector":"oMatchesSelector"in e.prototype?"oMatchesSelector":"msMatchesSelector",O.pEventTypes=O.supportsPointerEvent?h.PointerEvent===t.MSPointerEvent?{up:"MSPointerUp",down:"MSPointerDown",over:"mouseover",out:"mouseout",move:"MSPointerMove",cancel:"MSPointerCancel"}:{up:"pointerup",down:"pointerdown",over:"pointerover",out:"pointerout",move:"pointermove",cancel:"pointercancel"}:null,O.wheelEvent="onmousewheel"in h.document?"mousewheel":"wheel"},supportsTouch:null,supportsPointerEvent:null,isIOS7:null,isIOS:null,isIe9:null,isOperaMobile:null,prefixedMatchesSelector:null,pEventTypes:null,wheelEvent:null};var T=O;const P=(t,e)=>{for(const n of e)t.push(n);return t},I=t=>P([],t),M=(t,e)=>{for(let n=0;n<t.length;n++)if(e(t[n],n,t))return n;return-1},R=(t,e)=>t[M(t,e)];function N(t){const e={};for(const n in t){const r=t[n];A(r)?e[n]=N(r):E(r)?e[n]=I(r):e[n]=r}return e}function D(t,e){for(const n in e)t[n]=e[n];return t}let j,L,z=0;var $=function(t){if(j=t.requestAnimationFrame,L=t.cancelAnimationFrame,!j){const e=["ms","moz","webkit","o"];for(const n of e)j=t[`${n}RequestAnimationFrame`],L=t[`${n}CancelAnimationFrame`]||t[`${n}CancelRequestAnimationFrame`]}j=j&&j.bind(t),L=L&&L.bind(t),j||(j=e=>{const n=Date.now(),r=Math.max(0,16-(n-z)),i=t.setTimeout((()=>{e(n+r)}),r);return z=n+r,i},L=t=>clearTimeout(t))};function B(t,e,n){if(n=n||{},C(t)&&-1!==t.search(" ")&&(t=H(t)),E(t))return t.reduce(((t,r)=>D(t,B(r,e,n))),n);if(w(t)&&(e=t,t=""),x(e))n[t]=n[t]||[],n[t].push(e);else if(E(e))for(const r of e)B(t,r,n);else if(w(e))for(const r in e)B(H(r).map((e=>`${t}${e}`)),e[r],n);return n}function H(t){return t.trim().split(/ +/)}function U(t,e){for(const n of e){if(t.immediatePropagationStopped)break;n(t)}}class F{constructor(t){this.options=void 0,this.types={},this.propagationStopped=!1,this.immediatePropagationStopped=!1,this.global=void 0,this.options=D({},t||{})}fire(t){let e;const n=this.global;(e=this.types[t.type])&&U(t,e),!t.propagationStopped&&n&&(e=n[t.type])&&U(t,e)}on(t,e){const n=B(t,e);for(t in n)this.types[t]=P(this.types[t]||[],n[t])}off(t,e){const n=B(t,e);for(t in n){const e=this.types[t];if(e&&e.length)for(const r of n[t]){const t=e.indexOf(r);-1!==t&&e.splice(t,1)}}}getRect(t){return null}}function q(t,e){if(t.contains)return t.contains(e);for(;e;){if(e===t)return!0;e=e.parentNode}return!1}function W(t,e){for(;S(t);){if(Y(t,e))return t;t=V(t)}return null}function V(t){let e=t.parentNode;if(b(e)){for(;(e=e.host)&&b(e););return e}return e}function Y(t,e){return f!==d&&(e=e.replace(/\/deep\//g," ")),t[T.prefixedMatchesSelector](e)}function X(t,e,n){for(;S(t);){if(Y(t,e))return!0;if((t=V(t))===n)return Y(t,e)}return!1}function J(t){return t.correspondingUseElement||t}function G(t){const e=t instanceof h.SVGElement?t.getBoundingClientRect():t.getClientRects()[0];return e&&{left:e.left,right:e.right,top:e.top,bottom:e.bottom,width:e.width||e.right-e.left,height:e.height||e.bottom-e.top}}function Z(t){const e=G(t);if(!T.isIOS7&&e){const r={x:(n=(n=v(t))||f).scrollX||n.document.documentElement.scrollLeft,y:n.scrollY||n.document.documentElement.scrollTop};e.left+=r.x,e.right+=r.x,e.top+=r.y,e.bottom+=r.y}var n;return e}function K(t){return!!C(t)&&(h.document.querySelector(t),!0)}function Q(t,e,n,r){let i=t;return C(i)?i=function(t,e,n){return"parent"===t?V(n):"self"===t?e.getRect(n):W(n,t)}(i,e,n):x(i)&&(i=i(...r)),S(i)&&(i=Z(i)),i}function tt(t){return t&&{x:"x"in t?t.x:t.left,y:"y"in t?t.y:t.top}}function et(t){return!t||"x"in t&&"y"in t||((t=D({},t)).x=t.left||0,t.y=t.top||0,t.width=t.width||(t.right||0)-t.x,t.height=t.height||(t.bottom||0)-t.y),t}function nt(t,e,n){t.left&&(e.left+=n.x),t.right&&(e.right+=n.x),t.top&&(e.top+=n.y),t.bottom&&(e.bottom+=n.y),e.width=e.right-e.left,e.height=e.bottom-e.top}var rt=function(t,e,n){const r=t.options[n];return tt(Q(r&&r.origin||t.options.origin,t,e,[t&&e]))||{x:0,y:0}},it=(t,e)=>Math.sqrt(t*t+e*e);class ot{constructor(t){this.type=void 0,this.target=void 0,this.currentTarget=void 0,this.interactable=void 0,this._interaction=void 0,this.timeStamp=void 0,this.immediatePropagationStopped=!1,this.propagationStopped=!1,this._interaction=t}preventDefault(){}stopPropagation(){this.propagationStopped=!0}stopImmediatePropagation(){this.immediatePropagationStopped=this.propagationStopped=!0}}Object.defineProperty(ot.prototype,"interaction",{get(){return this._interaction._proxy},set(){}});const st={base:{preventDefault:"auto",deltaSource:"page"},perAction:{enabled:!1,origin:{x:0,y:0}},actions:{}};class at extends ot{constructor(t,e,n,r,i,o,s){super(t),this.target=void 0,this.currentTarget=void 0,this.relatedTarget=null,this.screenX=void 0,this.screenY=void 0,this.button=void 0,this.buttons=void 0,this.ctrlKey=void 0,this.shiftKey=void 0,this.altKey=void 0,this.metaKey=void 0,this.page=void 0,this.client=void 0,this.delta=void 0,this.rect=void 0,this.x0=void 0,this.y0=void 0,this.t0=void 0,this.dt=void 0,this.duration=void 0,this.clientX0=void 0,this.clientY0=void 0,this.velocity=void 0,this.speed=void 0,this.swipe=void 0,this.timeStamp=void 0,this.axes=void 0,this.preEnd=void 0,i=i||t.element;const a=t.interactable,c=(a&&a.options||st).deltaSource,l=rt(a,i,n),u="start"===r,h="end"===r,p=u?this:t.prevEvent,d=u?t.coords.start:h?{page:p.page,client:p.client,timeStamp:t.coords.cur.timeStamp}:t.coords.cur;this.page=D({},d.page),this.client=D({},d.client),this.rect=D({},t.rect),this.timeStamp=d.timeStamp,h||(this.page.x-=l.x,this.page.y-=l.y,this.client.x-=l.x,this.client.y-=l.y),this.ctrlKey=e.ctrlKey,this.altKey=e.altKey,this.shiftKey=e.shiftKey,this.metaKey=e.metaKey,this.button=e.button,this.buttons=e.buttons,this.target=i,this.currentTarget=i,this.preEnd=o,this.type=s||n+(r||""),this.interactable=a,this.t0=u?t.pointers[t.pointers.length-1].downTime:p.t0,this.x0=t.coords.start.page.x-l.x,this.y0=t.coords.start.page.y-l.y,this.clientX0=t.coords.start.client.x-l.x,this.clientY0=t.coords.start.client.y-l.y,this.delta=u||h?{x:0,y:0}:{x:this[c].x-p[c].x,y:this[c].y-p[c].y},this.dt=t.coords.delta.timeStamp,this.duration=this.timeStamp-this.t0,this.velocity=D({},t.coords.velocity[c]),this.speed=it(this.velocity.x,this.velocity.y),this.swipe=h||"inertiastart"===r?this.getSwipe():null}getSwipe(){const t=this._interaction;if(t.prevEvent.speed<600||this.timeStamp-t.prevEvent.timeStamp>150)return null;let e=180*Math.atan2(t.prevEvent.velocityY,t.prevEvent.velocityX)/Math.PI;e<0&&(e+=360);const n=112.5<=e&&e<247.5,r=202.5<=e&&e<337.5;return{up:r,down:!r&&22.5<=e&&e<157.5,left:n,right:!n&&(292.5<=e||e<67.5),angle:e,speed:t.prevEvent.speed,velocity:{x:t.prevEvent.velocityX,y:t.prevEvent.velocityY}}}preventDefault(){}stopImmediatePropagation(){this.immediatePropagationStopped=this.propagationStopped=!0}stopPropagation(){this.propagationStopped=!0}}function ct(t,e){if(e.phaselessTypes[t])return!0;for(const n in e.map)if(0===t.indexOf(n)&&t.substr(n.length)in e.phases)return!0;return!1}Object.defineProperties(at.prototype,{pageX:{get(){return this.page.x},set(t){this.page.x=t}},pageY:{get(){return this.page.y},set(t){this.page.y=t}},clientX:{get(){return this.client.x},set(t){this.client.x=t}},clientY:{get(){return this.client.y},set(t){this.client.y=t}},dx:{get(){return this.delta.x},set(t){this.delta.x=t}},dy:{get(){return this.delta.y},set(t){this.delta.y=t}},velocityX:{get(){return this.velocity.x},set(t){this.velocity.x=t}},velocityY:{get(){return this.velocity.y},set(t){this.velocity.y=t}}});class lt{constructor(t){this.list=[],this.selectorMap={},this.scope=void 0,this.scope=t,t.addListeners({"interactable:unset":({interactable:t})=>{const{target:e,_context:n}=t,r=C(e)?this.selectorMap[e]:e[this.scope.id],i=M(r,(t=>t.context===n));r[i]&&(r[i].context=null,r[i].interactable=null),r.splice(i,1)}})}new(t,e){e=D(e||{},{actions:this.scope.actions});const n=new this.scope.Interactable(t,e,this.scope.document,this.scope.events),r={context:n._context,interactable:n};return this.scope.addDocument(n._doc),this.list.push(n),C(t)?(this.selectorMap[t]||(this.selectorMap[t]=[]),this.selectorMap[t].push(r)):(n.target[this.scope.id]||Object.defineProperty(t,this.scope.id,{value:[],configurable:!0}),t[this.scope.id].push(r)),this.scope.fire("interactable:new",{target:t,options:e,interactable:n,win:this.scope._win}),n}get(t,e){const n=e&&e.context||this.scope.document,r=C(t),i=r?this.selectorMap[t]:t[this.scope.id];if(!i)return null;const o=R(i,(e=>e.context===n&&(r||e.interactable.inContext(t))));return o&&o.interactable}forEachMatch(t,e){for(const n of this.list){let r;if((C(n.target)?S(t)&&Y(t,n.target):t===n.target)&&n.inContext(t)&&(r=e(n)),void 0!==r)return r}}}function ut(t,e){for(const n in e){const r=ut.prefixedPropREs;let i=!1;for(const t in r)if(0===n.indexOf(t)&&r[t].test(n)){i=!0;break}i||"function"==typeof e[n]||(t[n]=e[n])}return t}ut.prefixedPropREs={webkit:/(Movement[XY]|Radius[XY]|RotationAngle|Force)$/,moz:/(Pressure)$/};var ht=ut;function pt(t,e){t.page=t.page||{},t.page.x=e.page.x,t.page.y=e.page.y,t.client=t.client||{},t.client.x=e.client.x,t.client.y=e.client.y,t.timeStamp=e.timeStamp}function dt(t){return t instanceof h.Event||t instanceof h.Touch}function ft(t,e,n){return t=t||"page",(n=n||{}).x=e[t+"X"],n.y=e[t+"Y"],n}function gt(t){return _(t.pointerId)?t.pointerId:t.identifier}function vt(t){const e=[];return E(t)?(e[0]=t[0],e[1]=t[1]):"touchend"===t.type?1===t.touches.length?(e[0]=t.touches[0],e[1]=t.changedTouches[0]):0===t.touches.length&&(e[0]=t.changedTouches[0],e[1]=t.changedTouches[1]):(e[0]=t.touches[0],e[1]=t.touches[1]),e}function mt(t){const e={pageX:0,pageY:0,clientX:0,clientY:0,screenX:0,screenY:0};for(const n of t)for(const t in e)e[t]+=n[t];for(const n in e)e[n]/=t.length;return e}function yt(t){if(!t.length)return null;const e=vt(t),n=Math.min(e[0].pageX,e[1].pageX),r=Math.min(e[0].pageY,e[1].pageY),i=Math.max(e[0].pageX,e[1].pageX),o=Math.max(e[0].pageY,e[1].pageY);return{x:n,y:r,left:n,top:r,right:i,bottom:o,width:i-n,height:o-r}}function bt(t,e){const n=e+"X",r=e+"Y",i=vt(t),o=i[0][n]-i[1][n],s=i[0][r]-i[1][r];return it(o,s)}function wt(t,e){const n=e+"X",r=e+"Y",i=vt(t),o=i[1][n]-i[0][n],s=i[1][r]-i[0][r];return 180*Math.atan2(s,o)/Math.PI}function xt(t){const e=x(t.composedPath)?t.composedPath():t.path;return[J(e?e[0]:t.target),J(t.currentTarget)]}class _t{constructor(t){this.currentTarget=void 0,this.originalEvent=void 0,this.type=void 0,this.originalEvent=t,ht(this,t)}preventOriginalDefault(){this.originalEvent.preventDefault()}stopPropagation(){this.originalEvent.stopPropagation()}stopImmediatePropagation(){this.originalEvent.stopImmediatePropagation()}}function kt(t){if(!w(t))return{capture:!!t,passive:!1};const e=D({},t);return e.capture=!!t.capture,e.passive=!!t.passive,e}var Ct={id:"events",install:function(t){const e=[],n={},r=[],i={add:o,remove:s,addDelegate:function(t,e,i,s,l){const u=kt(l);if(!n[i]){n[i]=[];for(const t of r)o(t,i,a),o(t,i,c,!0)}const h=n[i];let p=R(h,(n=>n.selector===t&&n.context===e));p||(p={selector:t,context:e,listeners:[]},h.push(p)),p.listeners.push([s,u])},removeDelegate:function(t,e,r,i,o){const l=kt(o),u=n[r];let h,p=!1;if(u)for(h=u.length-1;h>=0;h--){const n=u[h];if(n.selector===t&&n.context===e){const{listeners:t}=n;for(let n=t.length-1;n>=0;n--){const[o,{capture:d,passive:f}]=t[n];if(o===i&&d===l.capture&&f===l.passive){t.splice(n,1),t.length||(u.splice(h,1),s(e,r,a),s(e,r,c,!0)),p=!0;break}}if(p)break}}},delegateListener:a,delegateUseCapture:c,delegatedEvents:n,documents:r,targets:e,supportsOptions:!1,supportsPassive:!1};function o(t,n,r,o){const s=kt(o);let a=R(e,(e=>e.eventTarget===t));a||(a={eventTarget:t,events:{}},e.push(a)),a.events[n]||(a.events[n]=[]),t.addEventListener&&!((t,e)=>-1!==t.indexOf(e))(a.events[n],r)&&(t.addEventListener(n,r,i.supportsOptions?s:s.capture),a.events[n].push(r))}function s(t,n,r,o){const a=kt(o),c=M(e,(e=>e.eventTarget===t)),l=e[c];if(!l||!l.events)return;if("all"===n){for(n in l.events)l.events.hasOwnProperty(n)&&s(t,n,"all");return}let u=!1;const h=l.events[n];if(h){if("all"===r){for(let e=h.length-1;e>=0;e--)s(t,n,h[e],a);return}for(let e=0;e<h.length;e++)if(h[e]===r){t.removeEventListener(n,r,i.supportsOptions?a:a.capture),h.splice(e,1),0===h.length&&(delete l.events[n],u=!0);break}}u&&!Object.keys(l.events).length&&e.splice(c,1)}function a(t,e){const r=kt(e),i=new _t(t),o=n[t.type],[s]=xt(t);let a=s;for(;S(a);){for(let t=0;t<o.length;t++){const e=o[t],{selector:n,context:c}=e;if(Y(a,n)&&q(c,s)&&q(c,a)){const{listeners:t}=e;i.currentTarget=a;for(const[e,{capture:n,passive:o}]of t)n===r.capture&&o===r.passive&&e(i)}}a=V(a)}}function c(t){return a.call(this,t,!0)}return t.document.createElement("div").addEventListener("test",null,{get capture(){return i.supportsOptions=!0},get passive(){return i.supportsPassive=!0}}),t.events=i,i}};function St(t,e){let n=!1;return function(){return n||(f.console.warn(e),n=!0),t.apply(this,arguments)}}function At(t,e){return t.name=e.name,t.axis=e.axis,t.edges=e.edges,t}class Et{constructor(t,e,n,r,i){this.id=void 0,this.pointer=void 0,this.event=void 0,this.downTime=void 0,this.downTarget=void 0,this.id=t,this.pointer=e,this.event=n,this.downTime=r,this.downTarget=i}}let Ot,Tt;!function(t){t.interactable="",t.element="",t.prepared="",t.pointerIsDown="",t.pointerWasMoved="",t._proxy=""}(Ot||(Ot={})),function(t){t.start="",t.move="",t.end="",t.stop="",t.interacting=""}(Tt||(Tt={}));let Pt=0;function It(t){return/^(always|never|auto)$/.test(t)?(this.options.preventDefault=t,this):k(t)?(this.options.preventDefault=t?"always":"never",this):this.options.preventDefault}function Mt({interaction:t,event:e}){t.interactable&&t.interactable.checkAndPreventDefault(e)}var Rt={id:"core/interactablePreventDefault",install:function(t){const{Interactable:e}=t;e.prototype.preventDefault=It,e.prototype.checkAndPreventDefault=function(e){return function(t,e,n){const r=t.options.preventDefault;if("never"!==r)if("always"!==r){if(e.events.supportsPassive&&/^touch(start|move)$/.test(n.type)){const t=v(n.target).document,r=e.getDocOptions(t);if(!r||!r.events||!1!==r.events.passive)return}/^(mouse|pointer|touch)*(down|start)/i.test(n.type)||S(n.target)&&Y(n.target,"input,select,textarea,[contenteditable=true],[contenteditable=true] *")||n.preventDefault()}else n.preventDefault()}(this,t,e)},t.interactions.docEvents.push({type:"dragstart",listener(e){for(const n of t.interactions.list)if(n.element&&(n.element===e.target||q(n.element,e.target)))return void n.interactable.checkAndPreventDefault(e)}})},listeners:["down","move","up","cancel"].reduce(((t,e)=>(t[`interactions:${e}`]=Mt,t)),{})};const Nt={methodOrder:["simulationResume","mouseOrPen","hasPointer","idle"],search(t){for(const e of Nt.methodOrder){const n=Nt[e](t);if(n)return n}return null},simulationResume({pointerType:t,eventType:e,eventTarget:n,scope:r}){if(!/down|start/i.test(e))return null;for(const e of r.interactions.list){let r=n;if(e.simulation&&e.simulation.allowResume&&e.pointerType===t)for(;r;){if(r===e.element)return e;r=V(r)}}return null},mouseOrPen({pointerId:t,pointerType:e,eventType:n,scope:r}){if("mouse"!==e&&"pen"!==e)return null;let i;for(const n of r.interactions.list)if(n.pointerType===e){if(n.simulation&&!Dt(n,t))continue;if(n.interacting())return n;i||(i=n)}if(i)return i;for(const t of r.interactions.list)if(!(t.pointerType!==e||/down/i.test(n)&&t.simulation))return t;return null},hasPointer({pointerId:t,scope:e}){for(const n of e.interactions.list)if(Dt(n,t))return n;return null},idle({pointerType:t,scope:e}){for(const n of e.interactions.list){if(1===n.pointers.length){const t=n.interactable;if(t&&(!t.options.gesture||!t.options.gesture.enabled))continue}else if(n.pointers.length>=2)continue;if(!n.interacting()&&t===n.pointerType)return n}return null}};function Dt(t,e){return t.pointers.some((({id:t})=>t===e))}var jt=Nt;const Lt=["pointerDown","pointerMove","pointerUp","updatePointer","removePointer","windowBlur"];function zt(t,e){return function(n){const r=e.interactions.list,i=C((o=n).pointerType)?o.pointerType:_(o.pointerType)?[void 0,void 0,"touch","pen","mouse"][o.pointerType]:/touch/.test(o.type)||o instanceof h.Touch?"touch":"mouse";var o;const[s,a]=xt(n),c=[];if(/^touch/.test(n.type)){e.prevTouchTime=e.now();for(const t of n.changedTouches){const r={pointer:t,pointerId:gt(t),pointerType:i,eventType:n.type,eventTarget:s,curEventTarget:a,scope:e},o=$t(r);c.push([r.pointer,r.eventTarget,r.curEventTarget,o])}}else{let t=!1;if(!T.supportsPointerEvent&&/mouse/.test(n.type)){for(let e=0;e<r.length&&!t;e++)t="mouse"!==r[e].pointerType&&r[e].pointerIsDown;t=t||e.now()-e.prevTouchTime<500||0===n.timeStamp}if(!t){const t={pointer:n,pointerId:gt(n),pointerType:i,eventType:n.type,curEventTarget:a,eventTarget:s,scope:e},r=$t(t);c.push([t.pointer,t.eventTarget,t.curEventTarget,r])}}for(const[e,r,i,o]of c)o[t](e,n,r,i)}}function $t(t){const{pointerType:e,scope:n}=t,r={interaction:jt.search(t),searchDetails:t};return n.fire("interactions:find",r),r.interaction||n.interactions.new({pointerType:e})}function Bt({doc:t,scope:e,options:n},r){const{interactions:{docEvents:i},events:o}=e,s=o[r];e.browser.isIOS&&!n.events&&(n.events={passive:!1});for(const e in o.delegatedEvents)s(t,e,o.delegateListener),s(t,e,o.delegateUseCapture,!0);const a=n&&n.events;for(const{type:e,listener:n}of i)s(t,e,n,a)}var Ht={id:"core/interactions",install:function(t){const e={};for(const n of Lt)e[n]=zt(n,t);const n=T.pEventTypes;let r;function i(){for(const e of t.interactions.list)if(e.pointerIsDown&&"touch"===e.pointerType&&!e._interacting)for(const n of e.pointers)t.documents.some((({doc:t})=>q(t,n.downTarget)))||e.removePointer(n.pointer,n.event)}r=h.PointerEvent?[{type:n.down,listener:i},{type:n.down,listener:e.pointerDown},{type:n.move,listener:e.pointerMove},{type:n.up,listener:e.pointerUp},{type:n.cancel,listener:e.pointerUp}]:[{type:"mousedown",listener:e.pointerDown},{type:"mousemove",listener:e.pointerMove},{type:"mouseup",listener:e.pointerUp},{type:"touchstart",listener:i},{type:"touchstart",listener:e.pointerDown},{type:"touchmove",listener:e.pointerMove},{type:"touchend",listener:e.pointerUp},{type:"touchcancel",listener:e.pointerUp}],r.push({type:"blur",listener(e){for(const n of t.interactions.list)n.documentBlur(e)}}),t.prevTouchTime=0,t.Interaction=class extends class{get pointerMoveTolerance(){return 1}constructor({pointerType:t,scopeFire:e}){this.interactable=null,this.element=null,this.rect=void 0,this._rects=void 0,this.edges=void 0,this._scopeFire=void 0,this.prepared={name:null,axis:null,edges:null},this.pointerType=void 0,this.pointers=[],this.downEvent=null,this.downPointer={},this._latestPointer={pointer:null,event:null,eventTarget:null},this.prevEvent=null,this.pointerIsDown=!1,this.pointerWasMoved=!1,this._interacting=!1,this._ending=!1,this._stopped=!0,this._proxy=null,this.simulation=null,this.doMove=St((function(t){this.move(t)}),"The interaction.doMove() method has been renamed to interaction.move()"),this.coords={start:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},prev:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},cur:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},delta:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},velocity:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0}},this._id=Pt++,this._scopeFire=e,this.pointerType=t;const n=this;this._proxy={};for(const t in Ot)Object.defineProperty(this._proxy,t,{get:()=>n[t]});for(const t in Tt)Object.defineProperty(this._proxy,t,{value:(...e)=>n[t](...e)});this._scopeFire("interactions:new",{interaction:this})}pointerDown(t,e,n){const r=this.updatePointer(t,e,n,!0),i=this.pointers[r];this._scopeFire("interactions:down",{pointer:t,event:e,eventTarget:n,pointerIndex:r,pointerInfo:i,type:"down",interaction:this})}start(t,e,n){return!(this.interacting()||!this.pointerIsDown||this.pointers.length<("gesture"===t.name?2:1)||!e.options[t.name].enabled)&&(At(this.prepared,t),this.interactable=e,this.element=n,this.rect=e.getRect(n),this.edges=this.prepared.edges?D({},this.prepared.edges):{left:!0,right:!0,top:!0,bottom:!0},this._stopped=!1,this._interacting=this._doPhase({interaction:this,event:this.downEvent,phase:"start"})&&!this._stopped,this._interacting)}pointerMove(t,e,n){this.simulation||this.modification&&this.modification.endResult||this.updatePointer(t,e,n,!1);const r=this.coords.cur.page.x===this.coords.prev.page.x&&this.coords.cur.page.y===this.coords.prev.page.y&&this.coords.cur.client.x===this.coords.prev.client.x&&this.coords.cur.client.y===this.coords.prev.client.y;let i,o;this.pointerIsDown&&!this.pointerWasMoved&&(i=this.coords.cur.client.x-this.coords.start.client.x,o=this.coords.cur.client.y-this.coords.start.client.y,this.pointerWasMoved=it(i,o)>this.pointerMoveTolerance);const s=this.getPointerIndex(t),a={pointer:t,pointerIndex:s,pointerInfo:this.pointers[s],event:e,type:"move",eventTarget:n,dx:i,dy:o,duplicate:r,interaction:this};r||function(t,e){const n=Math.max(e.timeStamp/1e3,.001);t.page.x=e.page.x/n,t.page.y=e.page.y/n,t.client.x=e.client.x/n,t.client.y=e.client.y/n,t.timeStamp=n}(this.coords.velocity,this.coords.delta),this._scopeFire("interactions:move",a),r||this.simulation||(this.interacting()&&(a.type=null,this.move(a)),this.pointerWasMoved&&pt(this.coords.prev,this.coords.cur))}move(t){var e;t&&t.event||((e=this.coords.delta).page.x=0,e.page.y=0,e.client.x=0,e.client.y=0),(t=D({pointer:this._latestPointer.pointer,event:this._latestPointer.event,eventTarget:this._latestPointer.eventTarget,interaction:this},t||{})).phase="move",this._doPhase(t)}pointerUp(t,e,n,r){let i=this.getPointerIndex(t);-1===i&&(i=this.updatePointer(t,e,n,!1));const o=/cancel$/i.test(e.type)?"cancel":"up";this._scopeFire(`interactions:${o}`,{pointer:t,pointerIndex:i,pointerInfo:this.pointers[i],event:e,eventTarget:n,type:o,curEventTarget:r,interaction:this}),this.simulation||this.end(e),this.removePointer(t,e)}documentBlur(t){this.end(t),this._scopeFire("interactions:blur",{event:t,type:"blur",interaction:this})}end(t){let e;this._ending=!0,t=t||this._latestPointer.event,this.interacting()&&(e=this._doPhase({event:t,interaction:this,phase:"end"})),this._ending=!1,!0===e&&this.stop()}currentAction(){return this._interacting?this.prepared.name:null}interacting(){return this._interacting}stop(){this._scopeFire("interactions:stop",{interaction:this}),this.interactable=this.element=null,this._interacting=!1,this._stopped=!0,this.prepared.name=this.prevEvent=null}getPointerIndex(t){const e=gt(t);return"mouse"===this.pointerType||"pen"===this.pointerType?this.pointers.length-1:M(this.pointers,(t=>t.id===e))}getPointerInfo(t){return this.pointers[this.getPointerIndex(t)]}updatePointer(t,e,n,r){const i=gt(t);let o=this.getPointerIndex(t),s=this.pointers[o];var a,c,l;return r=!1!==r&&(r||/(down|start)$/i.test(e.type)),s?s.pointer=t:(s=new Et(i,t,e,null,null),o=this.pointers.length,this.pointers.push(s)),function(t,e,n){const r=e.length>1?mt(e):e[0];!function(t,e){e=e||{x:0,y:0},T.isOperaMobile&&dt(t)?(ft("screen",t,e),e.x+=window.scrollX,e.y+=window.scrollY):ft("page",t,e)}(r,t.page),function(t,e){e=e||{},T.isOperaMobile&&dt(t)?ft("screen",t,e):ft("client",t,e)}(r,t.client),t.timeStamp=n}(this.coords.cur,this.pointers.map((t=>t.pointer)),this._now()),a=this.coords.delta,c=this.coords.prev,l=this.coords.cur,a.page.x=l.page.x-c.page.x,a.page.y=l.page.y-c.page.y,a.client.x=l.client.x-c.client.x,a.client.y=l.client.y-c.client.y,a.timeStamp=l.timeStamp-c.timeStamp,r&&(this.pointerIsDown=!0,s.downTime=this.coords.cur.timeStamp,s.downTarget=n,ht(this.downPointer,t),this.interacting()||(pt(this.coords.start,this.coords.cur),pt(this.coords.prev,this.coords.cur),this.downEvent=e,this.pointerWasMoved=!1)),this._updateLatestPointer(t,e,n),this._scopeFire("interactions:update-pointer",{pointer:t,event:e,eventTarget:n,down:r,pointerInfo:s,pointerIndex:o,interaction:this}),o}removePointer(t,e){const n=this.getPointerIndex(t);if(-1===n)return;const r=this.pointers[n];this._scopeFire("interactions:remove-pointer",{pointer:t,event:e,eventTarget:null,pointerIndex:n,pointerInfo:r,interaction:this}),this.pointers.splice(n,1),this.pointerIsDown=!1}_updateLatestPointer(t,e,n){this._latestPointer.pointer=t,this._latestPointer.event=e,this._latestPointer.eventTarget=n}destroy(){this._latestPointer.pointer=null,this._latestPointer.event=null,this._latestPointer.eventTarget=null}_createPreparedEvent(t,e,n,r){return new at(this,t,this.prepared.name,e,this.element,n,r)}_fireEvent(t){this.interactable.fire(t),(!this.prevEvent||t.timeStamp>=this.prevEvent.timeStamp)&&(this.prevEvent=t)}_doPhase(t){const{event:e,phase:n,preEnd:r,type:i}=t,{rect:o}=this;if(o&&"move"===n&&(nt(this.edges,o,this.coords.delta[this.interactable.options.deltaSource]),o.width=o.right-o.left,o.height=o.bottom-o.top),!1===this._scopeFire(`interactions:before-action-${n}`,t))return!1;const s=t.iEvent=this._createPreparedEvent(e,n,r,i);return this._scopeFire(`interactions:action-${n}`,t),"start"===n&&(this.prevEvent=s),this._fireEvent(s),this._scopeFire(`interactions:after-action-${n}`,t),!0}_now(){return Date.now()}}{get pointerMoveTolerance(){return t.interactions.pointerMoveTolerance}set pointerMoveTolerance(e){t.interactions.pointerMoveTolerance=e}_now(){return t.now()}},t.interactions={list:[],new(e){e.scopeFire=(e,n)=>t.fire(e,n);const n=new t.Interaction(e);return t.interactions.list.push(n),n},listeners:e,docEvents:r,pointerMoveTolerance:1},t.usePlugin(Rt)},listeners:{"scope:add-document":t=>Bt(t,"add"),"scope:remove-document":t=>Bt(t,"remove"),"interactable:unset":({interactable:t},e)=>{for(let n=e.interactions.list.length-1;n>=0;n--){const r=e.interactions.list[n];r.interactable===t&&(r.stop(),e.fire("interactions:destroy",{interaction:r}),r.destroy(),e.interactions.list.length>2&&e.interactions.list.splice(n,1))}}},onDocSignal:Bt,doOnInteractions:zt,methodNames:Lt};function Ut(t){return t&&t.replace(/\/.*$/,"")}const Ft=new class{constructor(){this.id=`__interact_scope_${Math.floor(100*Math.random())}`,this.isInitialized=!1,this.listenerMaps=[],this.browser=T,this.defaults=N(st),this.Eventable=F,this.actions={map:{},phases:{start:!0,move:!0,end:!0},methodDict:{},phaselessTypes:{}},this.interactStatic=function(t){const e=(n,r)=>{let i=t.interactables.get(n,r);return i||(i=t.interactables.new(n,r),i.events.global=e.globalEvents),i};return e.getPointerAverage=mt,e.getTouchBBox=yt,e.getTouchDistance=bt,e.getTouchAngle=wt,e.getElementRect=Z,e.getElementClientRect=G,e.matchesSelector=Y,e.closest=W,e.globalEvents={},e.version="1.10.2",e.scope=t,e.use=function(t,e){return this.scope.usePlugin(t,e),this},e.isSet=function(t,e){return!!this.scope.interactables.get(t,e&&e.context)},e.on=St((function(t,e,n){if(C(t)&&-1!==t.search(" ")&&(t=t.trim().split(/ +/)),E(t)){for(const r of t)this.on(r,e,n);return this}if(w(t)){for(const n in t)this.on(n,t[n],e);return this}return ct(t,this.scope.actions)?this.globalEvents[t]?this.globalEvents[t].push(e):this.globalEvents[t]=[e]:this.scope.events.add(this.scope.document,t,e,{options:n}),this}),"The interact.on() method is being deprecated"),e.off=St((function(t,e,n){if(C(t)&&-1!==t.search(" ")&&(t=t.trim().split(/ +/)),E(t)){for(const r of t)this.off(r,e,n);return this}if(w(t)){for(const n in t)this.off(n,t[n],e);return this}if(ct(t,this.scope.actions)){let n;t in this.globalEvents&&-1!==(n=this.globalEvents[t].indexOf(e))&&this.globalEvents[t].splice(n,1)}else this.scope.events.remove(this.scope.document,t,e,n);return this}),"The interact.off() method is being deprecated"),e.debug=function(){return this.scope},e.supportsTouch=function(){return T.supportsTouch},e.supportsPointerEvent=function(){return T.supportsPointerEvent},e.stop=function(){for(const t of this.scope.interactions.list)t.stop();return this},e.pointerMoveTolerance=function(t){return _(t)?(this.scope.interactions.pointerMoveTolerance=t,this):this.scope.interactions.pointerMoveTolerance},e.addDocument=function(t,e){this.scope.addDocument(t,e)},e.removeDocument=function(t){this.scope.removeDocument(t)},e}(this),this.InteractEvent=at,this.Interactable=void 0,this.interactables=new lt(this),this._win=void 0,this.document=void 0,this.window=void 0,this.documents=[],this._plugins={list:[],map:{}},this.onWindowUnload=t=>this.removeDocument(t.target);const t=this;this.Interactable=class extends class{get _defaults(){return{base:{},perAction:{},actions:{}}}constructor(t,e,n,r){this.options=void 0,this._actions=void 0,this.target=void 0,this.events=new F,this._context=void 0,this._win=void 0,this._doc=void 0,this._scopeEvents=void 0,this._rectChecker=void 0,this._actions=e.actions,this.target=t,this._context=e.context||n,this._win=v(K(t)?this._context:t),this._doc=this._win.document,this._scopeEvents=r,this.set(e)}setOnEvents(t,e){return x(e.onstart)&&this.on(`${t}start`,e.onstart),x(e.onmove)&&this.on(`${t}move`,e.onmove),x(e.onend)&&this.on(`${t}end`,e.onend),x(e.oninertiastart)&&this.on(`${t}inertiastart`,e.oninertiastart),this}updatePerActionListeners(t,e,n){(E(e)||w(e))&&this.off(t,e),(E(n)||w(n))&&this.on(t,n)}setPerAction(t,e){const n=this._defaults;for(const r in e){const i=r,o=this.options[t],s=e[i];"listeners"===i&&this.updatePerActionListeners(t,o.listeners,s),E(s)?o[i]=I(s):A(s)?(o[i]=D(o[i]||{},N(s)),w(n.perAction[i])&&"enabled"in n.perAction[i]&&(o[i].enabled=!1!==s.enabled)):k(s)&&w(n.perAction[i])?o[i].enabled=s:o[i]=s}}getRect(t){return t=t||(S(this.target)?this.target:null),C(this.target)&&(t=t||this._context.querySelector(this.target)),Z(t)}rectChecker(t){return x(t)?(this._rectChecker=t,this.getRect=t=>{const e=D({},this._rectChecker(t));return"width"in e||(e.width=e.right-e.left,e.height=e.bottom-e.top),e},this):null===t?(delete this.getRect,delete this._rectChecker,this):this.getRect}_backCompatOption(t,e){if(K(e)||w(e)){this.options[t]=e;for(const n in this._actions.map)this.options[n][t]=e;return this}return this.options[t]}origin(t){return this._backCompatOption("origin",t)}deltaSource(t){return"page"===t||"client"===t?(this.options.deltaSource=t,this):this.options.deltaSource}context(){return this._context}inContext(t){return this._context===t.ownerDocument||q(this._context,t)}testIgnoreAllow(t,e,n){return!this.testIgnore(t.ignoreFrom,e,n)&&this.testAllow(t.allowFrom,e,n)}testAllow(t,e,n){return!t||!!S(n)&&(C(t)?X(n,t,e):!!S(t)&&q(t,n))}testIgnore(t,e,n){return!(!t||!S(n))&&(C(t)?X(n,t,e):!!S(t)&&q(t,n))}fire(t){return this.events.fire(t),this}_onOff(t,e,n,r){w(e)&&!E(e)&&(r=n,n=null);const i="on"===t?"add":"remove",o=B(e,n);for(let e in o){"wheel"===e&&(e=T.wheelEvent);for(const n of o[e])ct(e,this._actions)?this.events[t](e,n):C(this.target)?this._scopeEvents[`${i}Delegate`](this.target,this._context,e,n,r):this._scopeEvents[i](this.target,e,n,r)}return this}on(t,e,n){return this._onOff("on",t,e,n)}off(t,e,n){return this._onOff("off",t,e,n)}set(t){const e=this._defaults;w(t)||(t={}),this.options=N(e.base);for(const n in this._actions.methodDict){const r=n,i=this._actions.methodDict[r];this.options[r]={},this.setPerAction(r,D(D({},e.perAction),e.actions[r])),this[i](t[r])}for(const e in t)x(this[e])&&this[e](t[e]);return this}unset(){if(C(this.target))for(const t in this._scopeEvents.delegatedEvents){const e=this._scopeEvents.delegatedEvents[t];for(let n=e.length-1;n>=0;n--){const{selector:r,context:i,listeners:o}=e[n];r===this.target&&i===this._context&&e.splice(n,1);for(let e=o.length-1;e>=0;e--)this._scopeEvents.removeDelegate(this.target,this._context,t,o[e][0],o[e][1])}}else this._scopeEvents.remove(this.target,"all")}}{get _defaults(){return t.defaults}set(e){return super.set(e),t.fire("interactable:set",{options:e,interactable:this}),this}unset(){super.unset(),t.interactables.list.splice(t.interactables.list.indexOf(this),1),t.fire("interactable:unset",{interactable:this})}}}addListeners(t,e){this.listenerMaps.push({id:e,map:t})}fire(t,e){for(const{map:{[t]:n}}of this.listenerMaps)if(n&&!1===n(e,this,t))return!1}init(t){return this.isInitialized?this:function(t,e){return t.isInitialized=!0,g(e),h.init(e),T.init(e),$(e),t.window=e,t.document=e.document,t.usePlugin(Ht),t.usePlugin(Ct),t}(this,t)}pluginIsInstalled(t){return this._plugins.map[t.id]||-1!==this._plugins.list.indexOf(t)}usePlugin(t,e){if(!this.isInitialized)return this;if(this.pluginIsInstalled(t))return this;if(t.id&&(this._plugins.map[t.id]=t),this._plugins.list.push(t),t.install&&t.install(this,e),t.listeners&&t.before){let e=0;const n=this.listenerMaps.length,r=t.before.reduce(((t,e)=>(t[e]=!0,t[Ut(e)]=!0,t)),{});for(;e<n;e++){const t=this.listenerMaps[e].id;if(r[t]||r[Ut(t)])break}this.listenerMaps.splice(e,0,{id:t.id,map:t.listeners})}else t.listeners&&this.listenerMaps.push({id:t.id,map:t.listeners});return this}addDocument(t,e){if(-1!==this.getDocIndex(t))return!1;const n=v(t);e=e?D({},e):{},this.documents.push({doc:t,options:e}),this.events.documents.push(t),t!==this.document&&this.events.add(n,"unload",this.onWindowUnload),this.fire("scope:add-document",{doc:t,window:n,scope:this,options:e})}removeDocument(t){const e=this.getDocIndex(t),n=v(t),r=this.documents[e].options;this.events.remove(n,"unload",this.onWindowUnload),this.documents.splice(e,1),this.events.documents.splice(e,1),this.fire("scope:remove-document",{doc:t,window:n,scope:this,options:r})}getDocIndex(t){for(let e=0;e<this.documents.length;e++)if(this.documents[e].doc===t)return e;return-1}getDocOptions(t){const e=this.getDocIndex(t);return-1===e?null:this.documents[e].options}now(){return(this.window.Date||Date).now()}};var qt=Ft.interactStatic;const Wt=t=>Ft.init(t);function Vt(t){return k(t)?(this.options.styleCursor=t,this):null===t?(delete this.options.styleCursor,this):this.options.styleCursor}function Yt(t){return x(t)?(this.options.actionChecker=t,this):null===t?(delete this.options.actionChecker,this):this.options.actionChecker}"object"==typeof window&&window&&Wt(window);var Xt={id:"auto-start/interactableMethods",install:function(t){const{Interactable:e}=t;e.prototype.getAction=function(e,n,r,i){const o=function(t,e,n,r,i){const o=t.getRect(r),s={action:null,interactable:t,interaction:n,element:r,rect:o,buttons:e.buttons||{0:1,1:4,3:8,4:16}[e.button]};return i.fire("auto-start:check",s),s.action}(this,n,r,i,t);return this.options.actionChecker?this.options.actionChecker(e,n,o,this,i,r):o},e.prototype.ignoreFrom=St((function(t){return this._backCompatOption("ignoreFrom",t)}),"Interactable.ignoreFrom() has been deprecated. Use Interactble.draggable({ignoreFrom: newValue})."),e.prototype.allowFrom=St((function(t){return this._backCompatOption("allowFrom",t)}),"Interactable.allowFrom() has been deprecated. Use Interactble.draggable({allowFrom: newValue})."),e.prototype.actionChecker=Yt,e.prototype.styleCursor=Vt}};function Jt(t,e,n,r,i){return e.testIgnoreAllow(e.options[t.name],n,r)&&e.options[t.name].enabled&&Qt(e,n,t,i)?t:null}function Gt(t,e,n,r,i,o,s){for(let a=0,c=r.length;a<c;a++){const c=r[a],l=i[a],u=c.getAction(e,n,t,l);if(!u)continue;const h=Jt(u,c,l,o,s);if(h)return{action:h,interactable:c,element:l}}return{action:null,interactable:null,element:null}}function Zt(t,e,n,r,i){let o=[],s=[],a=r;function c(t){o.push(t),s.push(a)}for(;S(a);){o=[],s=[],i.interactables.forEachMatch(a,c);const l=Gt(t,e,n,o,s,r,i);if(l.action&&!l.interactable.options[l.action.name].manualStart)return l;a=V(a)}return{action:null,interactable:null,element:null}}function Kt(t,{action:e,interactable:n,element:r},i){e=e||{name:null},t.interactable=n,t.element=r,At(t.prepared,e),t.rect=n&&e.name?n.getRect(r):null,ne(t,i),i.fire("autoStart:prepared",{interaction:t})}function Qt(t,e,n,r){const i=t.options,o=i[n.name].max,s=i[n.name].maxPerElement,a=r.autoStart.maxInteractions;let c=0,l=0,u=0;if(!(o&&s&&a))return!1;for(const i of r.interactions.list){const r=i.prepared.name;if(i.interacting()){if(c++,c>=a)return!1;if(i.interactable===t){if(l+=r===n.name?1:0,l>=o)return!1;if(i.element===e&&(u++,r===n.name&&u>=s))return!1}}}return a>0}function te(t,e){return _(t)?(e.autoStart.maxInteractions=t,this):e.autoStart.maxInteractions}function ee(t,e,n){const{cursorElement:r}=n.autoStart;r&&r!==t&&(r.style.cursor=""),t.ownerDocument.documentElement.style.cursor=e,t.style.cursor=e,n.autoStart.cursorElement=e?t:null}function ne(t,e){const{interactable:n,element:r,prepared:i}=t;if("mouse"!==t.pointerType||!n||!n.options.styleCursor)return void(e.autoStart.cursorElement&&ee(e.autoStart.cursorElement,"",e));let o="";if(i.name){const s=n.options[i.name].cursorChecker;o=x(s)?s(i,n,r,t._interacting):e.actions.map[i.name].getCursor(i)}ee(t.element,o||"",e)}var re={id:"auto-start/base",before:["actions"],install:function(t){const{interactStatic:e,defaults:n}=t;t.usePlugin(Xt),n.base.actionChecker=null,n.base.styleCursor=!0,D(n.perAction,{manualStart:!1,max:1/0,maxPerElement:1,allowFrom:null,ignoreFrom:null,mouseButtons:1}),e.maxInteractions=e=>te(e,t),t.autoStart={maxInteractions:1/0,withinInteractionLimit:Qt,cursorElement:null}},listeners:{"interactions:down":function({interaction:t,pointer:e,event:n,eventTarget:r},i){t.interacting()||Kt(t,Zt(t,e,n,r,i),i)},"interactions:move":(t,e)=>{!function({interaction:t,pointer:e,event:n,eventTarget:r},i){"mouse"!==t.pointerType||t.pointerIsDown||t.interacting()||Kt(t,Zt(t,e,n,r,i),i)}(t,e),function(t,e){const{interaction:n}=t;if(!n.pointerIsDown||n.interacting()||!n.pointerWasMoved||!n.prepared.name)return;e.fire("autoStart:before-start",t);const{interactable:r}=n,i=n.prepared.name;i&&r&&(r.options[i].manualStart||!Qt(r,n.element,n.prepared,e)?n.stop():(n.start(n.prepared,r,n.element),ne(n,e)))}(t,e)},"interactions:stop":function({interaction:t},e){const{interactable:n}=t;n&&n.options.styleCursor&&ee(t.element,"",e)}},maxInteractions:te,withinInteractionLimit:Qt,validateAction:Jt},ie={id:"auto-start/dragAxis",listeners:{"autoStart:before-start":function({interaction:t,eventTarget:e,dx:n,dy:r},i){if("drag"!==t.prepared.name)return;const o=Math.abs(n),s=Math.abs(r),a=t.interactable.options.drag,c=a.startAxis,l=o>s?"x":o<s?"y":"xy";if(t.prepared.axis="start"===a.lockAxis?l[0]:a.lockAxis,"xy"!==l&&"xy"!==c&&c!==l){t.prepared.name=null;let n=e;const r=function(r){if(r===t.interactable)return;const o=t.interactable.options.drag;if(!o.manualStart&&r.testIgnoreAllow(o,n,e)){const o=r.getAction(t.downPointer,t.downEvent,t,n);if(o&&"drag"===o.name&&function(t,e){if(!e)return!1;const n=e.options.drag.startAxis;return"xy"===t||"xy"===n||n===t}(l,r)&&re.validateAction(o,r,n,e,i))return r}};for(;S(n);){const e=i.interactables.forEachMatch(n,r);if(e){t.prepared.name="drag",t.interactable=e,t.element=n;break}n=V(n)}}}}};function oe(t){const e=t.prepared&&t.prepared.name;if(!e)return null;const n=t.interactable.options;return n[e].hold||n[e].delay}var se={id:"auto-start/hold",install:function(t){const{defaults:e}=t;t.usePlugin(re),e.perAction.hold=0,e.perAction.delay=0},listeners:{"interactions:new":({interaction:t})=>{t.autoStartHoldTimer=null},"autoStart:prepared":({interaction:t})=>{const e=oe(t);e>0&&(t.autoStartHoldTimer=setTimeout((()=>{t.start(t.prepared,t.interactable,t.element)}),e))},"interactions:move":({interaction:t,duplicate:e})=>{t.autoStartHoldTimer&&t.pointerWasMoved&&!e&&(clearTimeout(t.autoStartHoldTimer),t.autoStartHoldTimer=null)},"autoStart:before-start":({interaction:t})=>{oe(t)>0&&(t.prepared.name=null)}},getHoldDuration:oe},ae={id:"auto-start",install(t){t.usePlugin(re),t.usePlugin(se),t.usePlugin(ie)}};function ce({interaction:t}){if("drag"!==t.prepared.name)return;const e=t.prepared.axis;"x"===e?(t.coords.cur.page.y=t.coords.start.page.y,t.coords.cur.client.y=t.coords.start.client.y,t.coords.velocity.client.y=0,t.coords.velocity.page.y=0):"y"===e&&(t.coords.cur.page.x=t.coords.start.page.x,t.coords.cur.client.x=t.coords.start.client.x,t.coords.velocity.client.x=0,t.coords.velocity.page.x=0)}function le({iEvent:t,interaction:e}){if("drag"!==e.prepared.name)return;const n=e.prepared.axis;if("x"===n||"y"===n){const r="x"===n?"y":"x";t.page[r]=e.coords.start.page[r],t.client[r]=e.coords.start.client[r],t.delta[r]=0}}"object"==typeof window&&window&&Wt(window),qt.use(ae);const ue={id:"actions/drag",install:function(t){const{actions:e,Interactable:n,defaults:r}=t;n.prototype.draggable=ue.draggable,e.map.drag=ue,e.methodDict.drag="draggable",r.actions.drag=ue.defaults},listeners:{"interactions:before-action-move":ce,"interactions:action-resume":ce,"interactions:action-move":le,"auto-start:check":t=>{const{interaction:e,interactable:n,buttons:r}=t,i=n.options.drag;if(i&&i.enabled&&(!e.pointerIsDown||!/mouse|pointer/.test(e.pointerType)||0!=(r&n.options.drag.mouseButtons)))return t.action={name:"drag",axis:"start"===i.lockAxis?i.startAxis:i.lockAxis},!1}},draggable:function(t){return w(t)?(this.options.drag.enabled=!1!==t.enabled,this.setPerAction("drag",t),this.setOnEvents("drag",t),/^(xy|x|y|start)$/.test(t.lockAxis)&&(this.options.drag.lockAxis=t.lockAxis),/^(xy|x|y)$/.test(t.startAxis)&&(this.options.drag.startAxis=t.startAxis),this):k(t)?(this.options.drag.enabled=t,this):this.options.drag},beforeMove:ce,move:le,defaults:{startAxis:"xy",lockAxis:"xy"},getCursor:()=>"move"};var he=ue;function pe(t,e,n,r,i,o,s){if(!e)return!1;if(!0===e){const e=_(o.width)?o.width:o.right-o.left,r=_(o.height)?o.height:o.bottom-o.top;if(s=Math.min(s,Math.abs(("left"===t||"right"===t?e:r)/2)),e<0&&("left"===t?t="right":"right"===t&&(t="left")),r<0&&("top"===t?t="bottom":"bottom"===t&&(t="top")),"left"===t)return n.x<(e>=0?o.left:o.right)+s;if("top"===t)return n.y<(r>=0?o.top:o.bottom)+s;if("right"===t)return n.x>(e>=0?o.right:o.left)-s;if("bottom"===t)return n.y>(r>=0?o.bottom:o.top)-s}return!!S(r)&&(S(e)?e===r:X(r,e,i))}function de({iEvent:t,interaction:e}){if("resize"!==e.prepared.name||!e.resizeAxes)return;const n=t;e.interactable.options.resize.square?("y"===e.resizeAxes?n.delta.x=n.delta.y:n.delta.y=n.delta.x,n.axes="xy"):(n.axes=e.resizeAxes,"x"===e.resizeAxes?n.delta.y=0:"y"===e.resizeAxes&&(n.delta.x=0))}"object"==typeof window&&window&&Wt(window),qt.use(he);const fe={id:"actions/resize",before:["actions/drag"],install:function(t){const{actions:e,browser:n,Interactable:r,defaults:i}=t;fe.cursors=function(t){return t.isIe9?{x:"e-resize",y:"s-resize",xy:"se-resize",top:"n-resize",left:"w-resize",bottom:"s-resize",right:"e-resize",topleft:"se-resize",bottomright:"se-resize",topright:"ne-resize",bottomleft:"ne-resize"}:{x:"ew-resize",y:"ns-resize",xy:"nwse-resize",top:"ns-resize",left:"ew-resize",bottom:"ns-resize",right:"ew-resize",topleft:"nwse-resize",bottomright:"nwse-resize",topright:"nesw-resize",bottomleft:"nesw-resize"}}(n),fe.defaultMargin=n.supportsTouch||n.supportsPointerEvent?20:10,r.prototype.resizable=function(e){return function(t,e,n){return w(e)?(t.options.resize.enabled=!1!==e.enabled,t.setPerAction("resize",e),t.setOnEvents("resize",e),C(e.axis)&&/^x$|^y$|^xy$/.test(e.axis)?t.options.resize.axis=e.axis:null===e.axis&&(t.options.resize.axis=n.defaults.actions.resize.axis),k(e.preserveAspectRatio)?t.options.resize.preserveAspectRatio=e.preserveAspectRatio:k(e.square)&&(t.options.resize.square=e.square),t):k(e)?(t.options.resize.enabled=e,t):t.options.resize}(this,e,t)},e.map.resize=fe,e.methodDict.resize="resizable",i.actions.resize=fe.defaults},listeners:{"interactions:new":({interaction:t})=>{t.resizeAxes="xy"},"interactions:action-start":t=>{!function({iEvent:t,interaction:e}){if("resize"!==e.prepared.name||!e.prepared.edges)return;const n=t,r=e.rect;e._rects={start:D({},r),corrected:D({},r),previous:D({},r),delta:{left:0,right:0,width:0,top:0,bottom:0,height:0}},n.edges=e.prepared.edges,n.rect=e._rects.corrected,n.deltaRect=e._rects.delta}(t),de(t)},"interactions:action-move":t=>{!function({iEvent:t,interaction:e}){if("resize"!==e.prepared.name||!e.prepared.edges)return;const n=t,r=e.interactable.options.resize.invert,i="reposition"===r||"negate"===r,o=e.rect,{start:s,corrected:a,delta:c,previous:l}=e._rects;if(D(l,a),i){if(D(a,o),"reposition"===r){if(a.top>a.bottom){const t=a.top;a.top=a.bottom,a.bottom=t}if(a.left>a.right){const t=a.left;a.left=a.right,a.right=t}}}else a.top=Math.min(o.top,s.bottom),a.bottom=Math.max(o.bottom,s.top),a.left=Math.min(o.left,s.right),a.right=Math.max(o.right,s.left);a.width=a.right-a.left,a.height=a.bottom-a.top;for(const t in a)c[t]=a[t]-l[t];n.edges=e.prepared.edges,n.rect=a,n.deltaRect=c}(t),de(t)},"interactions:action-end":function({iEvent:t,interaction:e}){if("resize"!==e.prepared.name||!e.prepared.edges)return;const n=t;n.edges=e.prepared.edges,n.rect=e._rects.corrected,n.deltaRect=e._rects.delta},"auto-start:check":function(t){const{interaction:e,interactable:n,element:r,rect:i,buttons:o}=t;if(!i)return;const s=D({},e.coords.cur.page),a=n.options.resize;if(a&&a.enabled&&(!e.pointerIsDown||!/mouse|pointer/.test(e.pointerType)||0!=(o&a.mouseButtons))){if(w(a.edges)){const n={left:!1,right:!1,top:!1,bottom:!1};for(const t in n)n[t]=pe(t,a.edges[t],s,e._latestPointer.eventTarget,r,i,a.margin||fe.defaultMargin);n.left=n.left&&!n.right,n.top=n.top&&!n.bottom,(n.left||n.right||n.top||n.bottom)&&(t.action={name:"resize",edges:n})}else{const e="y"!==a.axis&&s.x>i.right-fe.defaultMargin,n="x"!==a.axis&&s.y>i.bottom-fe.defaultMargin;(e||n)&&(t.action={name:"resize",axes:(e?"x":"")+(n?"y":"")})}return!t.action&&void 0}}},defaults:{square:!1,preserveAspectRatio:!1,axis:"xy",margin:NaN,edges:null,invert:"none"},cursors:null,getCursor({edges:t,axis:e,name:n}){const r=fe.cursors;let i=null;if(e)i=r[n+e];else if(t){let e="";for(const n of["top","bottom","left","right"])t[n]&&(e+=n);i=r[e]}return i},defaultMargin:null};var ge=fe;"object"==typeof window&&window&&Wt(window),qt.use(ge);var ve=()=>{},me=()=>{},ye=t=>{const e=[["x","y"],["left","top"],["right","bottom"],["width","height"]].filter((([e,n])=>e in t||n in t)),n=(n,r)=>{const{range:i,limits:o={left:-1/0,right:1/0,top:-1/0,bottom:1/0},offset:s={x:0,y:0}}=t,a={range:i,grid:t,x:null,y:null};for(const[i,c]of e){const e=Math.round((n-s.x)/t[i]),l=Math.round((r-s.y)/t[c]);a[i]=Math.max(o.left,Math.min(o.right,e*t[i]+s.x)),a[c]=Math.max(o.top,Math.min(o.bottom,l*t[c]+s.y))}return a};return n.grid=t,n.coordFields=e,n},be={id:"snappers",install(t){const{interactStatic:e}=t;e.snappers=D(e.snappers||{},r),e.createSnapGrid=e.snappers.grid}};class we{constructor(t){this.states=[],this.startOffset={left:0,right:0,top:0,bottom:0},this.startDelta=null,this.result=null,this.endResult=null,this.edges=void 0,this.interaction=void 0,this.interaction=t,this.result=xe()}start({phase:t},e){const{interaction:n}=this,r=function(t){const e=t.interactable.options[t.prepared.name],n=e.modifiers;return n&&n.length?n:["snap","snapSize","snapEdges","restrict","restrictEdges","restrictSize"].map((t=>{const n=e[t];return n&&n.enabled&&{options:n,methods:n._methods}})).filter((t=>!!t))}(n);var i,o;this.prepareStates(r),this.edges=D({},n.edges),this.startOffset=(o=e,(i=n.rect)?{left:o.x-i.left,top:o.y-i.top,right:i.right-o.x,bottom:i.bottom-o.y}:{left:0,top:0,right:0,bottom:0}),this.startDelta={x:0,y:0};const s={phase:t,pageCoords:e,preEnd:!1};return this.result=xe(),this.startAll(s),this.result=this.setAll(s)}fillArg(t){const{interaction:e}=this;t.interaction=e,t.interactable=e.interactable,t.element=e.element,t.rect=t.rect||e.rect,t.edges=this.edges,t.startOffset=this.startOffset}startAll(t){this.fillArg(t);for(const e of this.states)e.methods.start&&(t.state=e,e.methods.start(t))}setAll(t){this.fillArg(t);const{phase:e,preEnd:n,skipModifiers:r,rect:i}=t;t.coords=D({},t.pageCoords),t.rect=D({},i);const o=r?this.states.slice(r):this.states,s=xe(t.coords,t.rect);for(const r of o){const{options:i}=r,o=D({},t.coords);let a=null;r.methods.set&&this.shouldDo(i,n,e)&&(t.state=r,a=r.methods.set(t),nt(this.interaction.edges,t.rect,{x:t.coords.x-o.x,y:t.coords.y-o.y})),s.eventProps.push(a)}s.delta.x=t.coords.x-t.pageCoords.x,s.delta.y=t.coords.y-t.pageCoords.y,s.rectDelta.left=t.rect.left-i.left,s.rectDelta.right=t.rect.right-i.right,s.rectDelta.top=t.rect.top-i.top,s.rectDelta.bottom=t.rect.bottom-i.bottom;const a=this.result.coords,c=this.result.rect;if(a&&c){const t=s.rect.left!==c.left||s.rect.right!==c.right||s.rect.top!==c.top||s.rect.bottom!==c.bottom;s.changed=t||a.x!==s.coords.x||a.y!==s.coords.y}return s}applyToInteraction(t){const{interaction:e}=this,{phase:n}=t,r=e.coords.cur,i=e.coords.start,{result:o,startDelta:s}=this,a=o.delta;"start"===n&&D(this.startDelta,o.delta);for(const[t,e]of[[i,s],[r,a]])t.page.x+=e.x,t.page.y+=e.y,t.client.x+=e.x,t.client.y+=e.y;const{rectDelta:c}=this.result,l=t.rect||e.rect;l.left+=c.left,l.right+=c.right,l.top+=c.top,l.bottom+=c.bottom,l.width=l.right-l.left,l.height=l.bottom-l.top}setAndApply(t){const{interaction:e}=this,{phase:n,preEnd:r,skipModifiers:i}=t,o=this.setAll({preEnd:r,phase:n,pageCoords:t.modifiedCoords||e.coords.cur.page});if(this.result=o,!o.changed&&(!i||i<this.states.length)&&e.interacting())return!1;if(t.modifiedCoords){const{page:n}=e.coords.cur,r={x:t.modifiedCoords.x-n.x,y:t.modifiedCoords.y-n.y};o.coords.x+=r.x,o.coords.y+=r.y,o.delta.x+=r.x,o.delta.y+=r.y}this.applyToInteraction(t)}beforeEnd(t){const{interaction:e,event:n}=t,r=this.states;if(!r||!r.length)return;let i=!1;for(const e of r){t.state=e;const{options:n,methods:r}=e,o=r.beforeEnd&&r.beforeEnd(t);if(o)return this.endResult=o,!1;i=i||!i&&this.shouldDo(n,!0,t.phase,!0)}i&&e.move({event:n,preEnd:!0})}stop(t){const{interaction:e}=t;if(!this.states||!this.states.length)return;const n=D({states:this.states,interactable:e.interactable,element:e.element,rect:null},t);this.fillArg(n);for(const t of this.states)n.state=t,t.methods.stop&&t.methods.stop(n);this.states=null,this.endResult=null}prepareStates(t){this.states=[];for(let e=0;e<t.length;e++){const{options:n,methods:r,name:i}=t[e];this.states.push({options:n,methods:r,index:e,name:i})}return this.states}restoreInteractionCoords({interaction:{coords:t,rect:e,modification:n}}){if(!n.result)return;const{startDelta:r}=n,{delta:i,rectDelta:o}=n.result,s=[[t.start,r],[t.cur,i]];for(const[t,e]of s)t.page.x-=e.x,t.page.y-=e.y,t.client.x-=e.x,t.client.y-=e.y;e.left-=o.left,e.right-=o.right,e.top-=o.top,e.bottom-=o.bottom}shouldDo(t,e,n,r){return!(!t||!1===t.enabled||r&&!t.endOnly||t.endOnly&&!e||"start"===n&&!t.setStart)}copyFrom(t){this.startOffset=t.startOffset,this.startDelta=t.startDelta,this.edges=t.edges,this.states=t.states.map((t=>N(t))),this.result=xe(D({},t.result.coords),D({},t.result.rect))}destroy(){for(const t in this)this[t]=null}}function xe(t,e){return{rect:e,coords:t,delta:{x:0,y:0},rectDelta:{left:0,right:0,top:0,bottom:0},eventProps:[],changed:!0}}function _e(t,e){const{defaults:n}=t,r={start:t.start,set:t.set,beforeEnd:t.beforeEnd,stop:t.stop},i=t=>{const i=t||{};i.enabled=!1!==i.enabled;for(const t in n)t in i||(i[t]=n[t]);const o={options:i,methods:r,name:e,enable:()=>(i.enabled=!0,o),disable:()=>(i.enabled=!1,o)};return o};return e&&"string"==typeof e&&(i._defaults=n,i._methods=r),i}function ke({iEvent:t,interaction:{modification:{result:e}}}){e&&(t.modifiers=e.eventProps)}var Ce={id:"modifiers/base",before:["actions"],install:t=>{t.defaults.perAction.modifiers=[]},listeners:{"interactions:new":({interaction:t})=>{t.modification=new we(t)},"interactions:before-action-start":t=>{const{modification:e}=t.interaction;e.start(t,t.interaction.coords.start.page),t.interaction.edges=e.edges,e.applyToInteraction(t)},"interactions:before-action-move":t=>t.interaction.modification.setAndApply(t),"interactions:before-action-end":t=>t.interaction.modification.beforeEnd(t),"interactions:action-start":ke,"interactions:action-move":ke,"interactions:action-end":ke,"interactions:after-action-start":t=>t.interaction.modification.restoreInteractionCoords(t),"interactions:after-action-move":t=>t.interaction.modification.restoreInteractionCoords(t),"interactions:stop":t=>t.interaction.modification.stop(t)}};function Se({startCoords:t,edgeSign:e},n,r){n?r.y=t.y+(r.x-t.x)*e:r.x=t.x+(r.y-t.y)*e}function Ae({startRect:t,startCoords:e,ratio:n,edgeSign:r},i,o,s){if(i){const i=s.width/n;o.y=e.y+(i-t.height)*r}else{const i=s.height*n;o.x=e.x+(i-t.width)*r}}var Ee=_e({start(t){const{state:e,rect:n,edges:r,pageCoords:i}=t;let{ratio:o}=e.options;const{equalDelta:s,modifiers:a}=e.options;"preserve"===o&&(o=n.width/n.height),e.startCoords=D({},i),e.startRect=D({},n),e.ratio=o,e.equalDelta=s;const c=e.linkedEdges={top:r.top||r.left&&!r.bottom,left:r.left||r.top&&!r.right,bottom:r.bottom||r.right&&!r.top,right:r.right||r.bottom&&!r.left};if(e.xIsPrimaryAxis=!(!r.left&&!r.right),e.equalDelta)e.edgeSign=(c.left?1:-1)*(c.top?1:-1);else{const t=e.xIsPrimaryAxis?c.top:c.left;e.edgeSign=t?-1:1}if(D(t.edges,c),!a||!a.length)return;const l=new we(t.interaction);l.copyFrom(t.interaction.modification),l.prepareStates(a),e.subModification=l,l.startAll({...t})},set(t){const{state:e,rect:n,coords:r}=t,i=D({},r),o=e.equalDelta?Se:Ae;if(o(e,e.xIsPrimaryAxis,r,n),!e.subModification)return null;const s=D({},n);nt(e.linkedEdges,s,{x:r.x-i.x,y:r.y-i.y});const a=e.subModification.setAll({...t,rect:s,edges:e.linkedEdges,pageCoords:r,prevCoords:r,prevRect:s}),{delta:c}=a;return a.changed&&(o(e,Math.abs(c.x)>Math.abs(c.y),a.coords,a.rect),D(r,a.coords)),a.eventProps},defaults:{ratio:"preserve",equalDelta:!1,modifiers:[],enabled:!1}},"aspectRatio");const Oe=()=>{};Oe._defaults={};var Te=Oe;function Pe(t,e,n){return x(t)?Q(t,e.interactable,e.element,[n.x,n.y,e]):Q(t,e.interactable,e.element)}const Ie={start:function({rect:t,startOffset:e,state:n,interaction:r,pageCoords:i}){const{options:o}=n,{elementRect:s}=o,a=D({left:0,top:0,right:0,bottom:0},o.offset||{});if(t&&s){const n=Pe(o.restriction,r,i);if(n){const e=n.right-n.left-t.width,r=n.bottom-n.top-t.height;e<0&&(a.left+=e,a.right+=e),r<0&&(a.top+=r,a.bottom+=r)}a.left+=e.left-t.width*s.left,a.top+=e.top-t.height*s.top,a.right+=e.right-t.width*(1-s.right),a.bottom+=e.bottom-t.height*(1-s.bottom)}n.offset=a},set:function({coords:t,interaction:e,state:n}){const{options:r,offset:i}=n,o=Pe(r.restriction,e,t);if(!o)return;const s=function(t){return!t||"left"in t&&"top"in t||((t=D({},t)).left=t.x||0,t.top=t.y||0,t.right=t.right||t.left+t.width,t.bottom=t.bottom||t.top+t.height),t}(o);t.x=Math.max(Math.min(s.right-i.right,t.x),s.left+i.left),t.y=Math.max(Math.min(s.bottom-i.bottom,t.y),s.top+i.top)},defaults:{restriction:null,elementRect:null,offset:null,endOnly:!1,enabled:!1}};var Me=_e(Ie,"restrict");const Re={top:1/0,left:1/0,bottom:-1/0,right:-1/0},Ne={top:-1/0,left:-1/0,bottom:1/0,right:1/0};function De(t,e){for(const n of["top","left","bottom","right"])n in t||(t[n]=e[n]);return t}const je={noInner:Re,noOuter:Ne,start:function({interaction:t,startOffset:e,state:n}){const{options:r}=n;let i;r&&(i=tt(Pe(r.offset,t,t.coords.start.page))),i=i||{x:0,y:0},n.offset={top:i.y+e.top,left:i.x+e.left,bottom:i.y-e.bottom,right:i.x-e.right}},set:function({coords:t,edges:e,interaction:n,state:r}){const{offset:i,options:o}=r;if(!e)return;const s=D({},t),a=Pe(o.inner,n,s)||{},c=Pe(o.outer,n,s)||{};De(a,Re),De(c,Ne),e.top?t.y=Math.min(Math.max(c.top+i.top,s.y),a.top+i.top):e.bottom&&(t.y=Math.max(Math.min(c.bottom+i.bottom,s.y),a.bottom+i.bottom)),e.left?t.x=Math.min(Math.max(c.left+i.left,s.x),a.left+i.left):e.right&&(t.x=Math.max(Math.min(c.right+i.right,s.x),a.right+i.right))},defaults:{inner:null,outer:null,offset:null,endOnly:!1,enabled:!1}};var Le=_e(je,"restrictEdges");const ze=D({get elementRect(){return{top:0,left:0,bottom:1,right:1}},set elementRect(t){}},Ie.defaults);var $e=_e({start:Ie.start,set:Ie.set,defaults:ze},"restrictRect");const Be={width:-1/0,height:-1/0},He={width:1/0,height:1/0};var Ue=_e({start:function(t){return je.start(t)},set:function(t){const{interaction:e,state:n,rect:r,edges:i}=t,{options:o}=n;if(!i)return;const s=et(Pe(o.min,e,t.coords))||Be,a=et(Pe(o.max,e,t.coords))||He;n.options={endOnly:o.endOnly,inner:D({},je.noInner),outer:D({},je.noOuter)},i.top?(n.options.inner.top=r.bottom-s.height,n.options.outer.top=r.bottom-a.height):i.bottom&&(n.options.inner.bottom=r.top+s.height,n.options.outer.bottom=r.top+a.height),i.left?(n.options.inner.left=r.right-s.width,n.options.outer.left=r.right-a.width):i.right&&(n.options.inner.right=r.left+s.width,n.options.outer.right=r.left+a.width),je.set(t),n.options=o},defaults:{min:null,max:null,endOnly:!1,enabled:!1}},"restrictSize");const Fe={start:function(t){const{interaction:e,interactable:n,element:r,rect:i,state:o,startOffset:s}=t,{options:a}=o,c=a.offsetWithOrigin?function(t){const{element:e}=t.interaction;return tt(Q(t.state.options.origin,null,null,[e]))||rt(t.interactable,e,t.interaction.prepared.name)}(t):{x:0,y:0};let l;if("startCoords"===a.offset)l={x:e.coords.start.page.x,y:e.coords.start.page.y};else{const t=Q(a.offset,n,r,[e]);l=tt(t)||{x:0,y:0},l.x+=c.x,l.y+=c.y}const{relativePoints:u}=a;o.offsets=i&&u&&u.length?u.map(((t,e)=>({index:e,relativePoint:t,x:s.left-i.width*t.x+l.x,y:s.top-i.height*t.y+l.y}))):[D({index:0,relativePoint:null},l)]},set:function(t){const{interaction:e,coords:n,state:r}=t,{options:i,offsets:o}=r,s=rt(e.interactable,e.element,e.prepared.name),a=D({},n),c=[];i.offsetWithOrigin||(a.x-=s.x,a.y-=s.y);for(const t of o){const n=a.x-t.x,r=a.y-t.y;for(let o=0,s=i.targets.length;o<s;o++){const s=i.targets[o];let a;a=x(s)?s(n,r,e._proxy,t,o):s,a&&c.push({x:(_(a.x)?a.x:n)+t.x,y:(_(a.y)?a.y:r)+t.y,range:_(a.range)?a.range:i.range,source:s,index:o,offset:t})}}const l={target:null,inRange:!1,distance:0,range:0,delta:{x:0,y:0}};for(const t of c){const e=t.range,n=t.x-a.x,r=t.y-a.y,i=it(n,r);let o=i<=e;e===1/0&&l.inRange&&l.range!==1/0&&(o=!1),l.target&&!(o?l.inRange&&e!==1/0?i/e<l.distance/l.range:e===1/0&&l.range!==1/0||i<l.distance:!l.inRange&&i<l.distance)||(l.target=t,l.distance=i,l.range=e,l.inRange=o,l.delta.x=n,l.delta.y=r)}return l.inRange&&(n.x=l.target.x,n.y=l.target.y),r.closest=l,l},defaults:{range:1/0,targets:null,offset:null,offsetWithOrigin:!0,origin:null,relativePoints:null,endOnly:!1,enabled:!1}};var qe=_e(Fe,"snap");const We={start:function(t){const{state:e,edges:n}=t,{options:r}=e;if(!n)return null;t.state={options:{targets:null,relativePoints:[{x:n.left?0:1,y:n.top?0:1}],offset:r.offset||"self",origin:{x:0,y:0},range:r.range}},e.targetFields=e.targetFields||[["width","height"],["x","y"]],Fe.start(t),e.offsets=t.state.offsets,t.state=e},set:function(t){const{interaction:e,state:n,coords:r}=t,{options:i,offsets:o}=n,s={x:r.x-o[0].x,y:r.y-o[0].y};n.options=D({},i),n.options.targets=[];for(const t of i.targets||[]){let r;if(r=x(t)?t(s.x,s.y,e):t,r){for(const[t,e]of n.targetFields)if(t in r||e in r){r.x=r[t],r.y=r[e];break}n.options.targets.push(r)}}const a=Fe.set(t);return n.options=i,a},defaults:{range:1/0,targets:null,offset:null,endOnly:!1,enabled:!1}};var Ve,Ye=_e(We,"snapSize"),Xe={aspectRatio:Ee,restrictEdges:Le,restrict:Me,restrictRect:$e,restrictSize:Ue,snapEdges:_e({start:function(t){const{edges:e}=t;return e?(t.state.targetFields=t.state.targetFields||[[e.left?"left":"right",e.top?"top":"bottom"]],We.start(t)):null},set:We.set,defaults:D(N(We.defaults),{targets:null,range:null,offset:{x:0,y:0}})},"snapEdges"),snap:qe,snapSize:Ye,spring:Te,avoid:Te,transform:Te,rubberband:Te},Je={id:"modifiers",install(t){const{interactStatic:e}=t;t.usePlugin(Ce),t.usePlugin(be),e.modifiers=Xe;for(const e in Xe){const{_defaults:n,_methods:r}=Xe[e];n._methods=r,t.defaults.perAction[e]=n}}};"object"==typeof window&&window&&Wt(window),qt.use(Je),function(t){t.touchAction="touchAction",t.boxSizing="boxSizing",t.noListeners="noListeners"}(Ve||(Ve={}));const Ge="[interact.js] ",Ze={touchAction:"https://developer.mozilla.org/en-US/docs/Web/CSS/touch-action",boxSizing:"https://developer.mozilla.org/en-US/docs/Web/CSS/box-sizing"},Ke=[{name:Ve.touchAction,perform:({element:t})=>!function(t,e,n){let r=t;for(;S(r);){if(Qe(r,"touchAction",n))return!0;r=V(r)}return!1}(t,0,/pan-|pinch|none/),getInfo:({element:t})=>[t,Ze.touchAction],text:'Consider adding CSS "touch-action: none" to this element\n'},{name:Ve.boxSizing,perform(t){const{element:e}=t;return"resize"===t.prepared.name&&e instanceof h.HTMLElement&&!Qe(e,"boxSizing",/border-box/)},text:'Consider adding CSS "box-sizing: border-box" to this resizable element',getInfo:({element:t})=>[t,Ze.boxSizing]},{name:Ve.noListeners,perform(t){const e=t.prepared.name;return!(t.interactable.events.types[`${e}move`]||[]).length},getInfo:t=>[t.prepared.name,t.interactable],text:"There are no listeners set for this action"}];function Qe(t,e,n){const r=t.style[e]||f.getComputedStyle(t)[e];return n.test((r||"").toString())}var tn={id:"dev-tools",install:function(t,{logger:e}={}){const{Interactable:n,defaults:r}=t;t.logger=e||console,r.base.devTools={ignore:{}},n.prototype.devTools=function(t){return t?(D(this.options.devTools,t),this):this.options.devTools}},listeners:{"interactions:action-start":({interaction:t},e)=>{for(const n of Ke){const r=t.interactable&&t.interactable.options;r&&r.devTools&&r.devTools.ignore[n.name]||!n.perform(t)||e.logger.warn(Ge+n.text,...n.getInfo(t))}}},checks:Ke,CheckName:Ve,links:Ze,prefix:Ge};"object"==typeof window&&window&&Wt(window),qt.use(tn);var en={name:"GridItem",props:{isDraggable:{type:Boolean,required:!1,default:null},isResizable:{type:Boolean,required:!1,default:null},static:{type:Boolean,required:!1,default:!1},minH:{type:Number,required:!1,default:1},minW:{type:Number,required:!1,default:1},maxH:{type:Number,required:!1,default:1/0},maxW:{type:Number,required:!1,default:1/0},x:{type:Number,required:!0},y:{type:Number,required:!0},w:{type:Number,required:!0},h:{type:Number,required:!0},i:{required:!0},dragIgnoreFrom:{type:String,required:!1,default:"a, button"},dragAllowFrom:{type:String,required:!1,default:null},resizeIgnoreFrom:{type:String,required:!1,default:"a, button"},preserveAspectRatio:{type:Boolean,required:!1,default:!1}},inject:["eventBus","layout"],data:function(){return{cols:1,containerWidth:100,rowHeight:30,margin:[10,10],maxRows:1/0,draggable:null,resizable:null,useCssTransforms:!0,useStyleCursor:!0,isDragging:!1,dragging:null,isResizing:!1,resizing:null,lastX:NaN,lastY:NaN,lastW:NaN,lastH:NaN,style:{},rtl:!1,dragEventSet:!1,resizeEventSet:!1,previousW:null,previousH:null,previousX:null,previousY:null,innerX:this.x,innerY:this.y,innerW:this.w,innerH:this.h}},created:function(){var t=this,e=this;e.updateWidthHandler=function(t){e.updateWidth(t)},e.compactHandler=function(t){e.compact(t)},e.setDraggableHandler=function(t){null===e.isDraggable&&(e.draggable=t)},e.setResizableHandler=function(t){null===e.isResizable&&(e.resizable=t)},e.setRowHeightHandler=function(t){e.rowHeight=t},e.setMaxRowsHandler=function(t){e.maxRows=t},e.directionchangeHandler=function(){t.rtl="rtl"===Object(c.b)(),t.compact()},e.setColNum=function(t){e.cols=parseInt(t)},this.eventBus.$on("updateWidth",e.updateWidthHandler),this.eventBus.$on("compact",e.compactHandler),this.eventBus.$on("setDraggable",e.setDraggableHandler),this.eventBus.$on("setResizable",e.setResizableHandler),this.eventBus.$on("setRowHeight",e.setRowHeightHandler),this.eventBus.$on("setMaxRows",e.setMaxRowsHandler),this.eventBus.$on("directionchange",e.directionchangeHandler),this.eventBus.$on("setColNum",e.setColNum),this.rtl="rtl"===Object(c.b)()},beforeDestroy:function(){var t=this;this.eventBus.$off("updateWidth",t.updateWidthHandler),this.eventBus.$off("compact",t.compactHandler),this.eventBus.$off("setDraggable",t.setDraggableHandler),this.eventBus.$off("setResizable",t.setResizableHandler),this.eventBus.$off("setRowHeight",t.setRowHeightHandler),this.eventBus.$off("setMaxRows",t.setMaxRowsHandler),this.eventBus.$off("directionchange",t.directionchangeHandler),this.eventBus.$off("setColNum",t.setColNum),this.interactObj&&this.interactObj.unset()},mounted:function(){this.layout.responsive&&this.layout.lastBreakpoint?this.cols=Object(a.c)(this.layout.lastBreakpoint,this.layout.cols):this.cols=this.layout.colNum,this.rowHeight=this.layout.rowHeight,this.containerWidth=null!==this.layout.width?this.layout.width:100,this.margin=void 0!==this.layout.margin?this.layout.margin:[10,10],this.maxRows=this.layout.maxRows,null===this.isDraggable?this.draggable=this.layout.isDraggable:this.draggable=this.isDraggable,null===this.isResizable?this.resizable=this.layout.isResizable:this.resizable=this.isResizable,this.useCssTransforms=this.layout.useCssTransforms,this.useStyleCursor=this.layout.useStyleCursor,this.createStyle()},watch:{isDraggable:function(){this.draggable=this.isDraggable},static:function(){this.tryMakeDraggable(),this.tryMakeResizable()},draggable:function(){this.tryMakeDraggable()},isResizable:function(){this.resizable=this.isResizable},resizable:function(){this.tryMakeResizable()},rowHeight:function(){this.createStyle(),this.emitContainerResized()},cols:function(){this.tryMakeResizable(),this.createStyle(),this.emitContainerResized()},containerWidth:function(){this.tryMakeResizable(),this.createStyle(),this.emitContainerResized()},x:function(t){this.innerX=t,this.createStyle()},y:function(t){this.innerY=t,this.createStyle()},h:function(t){this.innerH=t,this.createStyle()},w:function(t){this.innerW=t,this.createStyle()},renderRtl:function(){this.tryMakeResizable(),this.createStyle()},minH:function(){this.tryMakeResizable()},maxH:function(){this.tryMakeResizable()},minW:function(){this.tryMakeResizable()},maxW:function(){this.tryMakeResizable()},"$parent.margin":function(t){!t||t[0]==this.margin[0]&&t[1]==this.margin[1]||(this.margin=t.map((function(t){return Number(t)})),this.createStyle(),this.emitContainerResized())}},computed:{classObj:function(){return{"vue-resizable":this.resizableAndNotStatic,static:this.static,resizing:this.isResizing,"vue-draggable-dragging":this.isDragging,cssTransforms:this.useCssTransforms,"render-rtl":this.renderRtl,"disable-userselect":this.isDragging,"no-touch":this.isAndroid&&this.draggableOrResizableAndNotStatic}},resizableAndNotStatic:function(){return this.resizable&&!this.static},draggableOrResizableAndNotStatic:function(){return(this.draggable||this.resizable)&&!this.static},isAndroid:function(){return-1!==navigator.userAgent.toLowerCase().indexOf("android")},renderRtl:function(){return this.layout.isMirrored?!this.rtl:this.rtl},resizableHandleClass:function(){return this.renderRtl?"vue-resizable-handle vue-rtl-resizable-handle":"vue-resizable-handle"}},methods:{createStyle:function(){this.x+this.w>this.cols?(this.innerX=0,this.innerW=this.w>this.cols?this.cols:this.w):(this.innerX=this.x,this.innerW=this.w);var t,e=this.calcPosition(this.innerX,this.innerY,this.innerW,this.innerH);this.isDragging&&(e.top=this.dragging.top,this.renderRtl?e.right=this.dragging.left:e.left=this.dragging.left),this.isResizing&&(e.width=this.resizing.width,e.height=this.resizing.height),t=this.useCssTransforms?this.renderRtl?Object(i.k)(e.top,e.right,e.width,e.height):Object(i.j)(e.top,e.left,e.width,e.height):this.renderRtl?Object(i.i)(e.top,e.right,e.width,e.height):Object(i.h)(e.top,e.left,e.width,e.height),this.style=t},emitContainerResized:function(){for(var t={},e=0,n=["width","height"];e<n.length;e++){var r=n[e],i=this.style[r].match(/^(\d+)px$/);if(!i)return;t[r]=i[1]}this.$emit("container-resized",this.i,this.h,this.w,t.height,t.width)},handleResize:function(t){if(!this.static){var e=o(t);if(null!=e){var n,r=e.x,i=e.y,a={width:0,height:0};switch(t.type){case"resizestart":this.previousW=this.innerW,this.previousH=this.innerH,n=this.calcPosition(this.innerX,this.innerY,this.innerW,this.innerH),a.width=n.width,a.height=n.height,this.resizing=a,this.isResizing=!0;break;case"resizemove":var c=s(this.lastW,this.lastH,r,i);this.renderRtl?a.width=this.resizing.width-c.deltaX:a.width=this.resizing.width+c.deltaX,a.height=this.resizing.height+c.deltaY,this.resizing=a;break;case"resizeend":n=this.calcPosition(this.innerX,this.innerY,this.innerW,this.innerH),a.width=n.width,a.height=n.height,this.resizing=null,this.isResizing=!1}(n=this.calcWH(a.height,a.width)).w<this.minW&&(n.w=this.minW),n.w>this.maxW&&(n.w=this.maxW),n.h<this.minH&&(n.h=this.minH),n.h>this.maxH&&(n.h=this.maxH),n.h<1&&(n.h=1),n.w<1&&(n.w=1),this.lastW=r,this.lastH=i,this.innerW===n.w&&this.innerH===n.h||this.$emit("resize",this.i,n.h,n.w,a.height,a.width),"resizeend"!==t.type||this.previousW===this.innerW&&this.previousH===this.innerH||this.$emit("resized",this.i,n.h,n.w,a.height,a.width),this.eventBus.$emit("resizeEvent",t.type,this.i,this.innerX,this.innerY,n.h,n.w)}}},handleDrag:function(t){if(!this.static&&!this.isResizing){var e=o(t);if(null!==e){var n,r=e.x,i=e.y,a={top:0,left:0};switch(t.type){case"dragstart":this.previousX=this.innerX,this.previousY=this.innerY;var c=t.target.offsetParent.getBoundingClientRect(),l=t.target.getBoundingClientRect();this.renderRtl?a.left=-1*(l.right-c.right):a.left=l.left-c.left,a.top=l.top-c.top,this.dragging=a,this.isDragging=!0;break;case"dragend":if(!this.isDragging)return;var u=t.target.offsetParent.getBoundingClientRect(),h=t.target.getBoundingClientRect();this.renderRtl?a.left=-1*(h.right-u.right):a.left=h.left-u.left,a.top=h.top-u.top,this.dragging=null,this.isDragging=!1;break;case"dragmove":var p=s(this.lastX,this.lastY,r,i);this.renderRtl?a.left=this.dragging.left-p.deltaX:a.left=this.dragging.left+p.deltaX,a.top=this.dragging.top+p.deltaY,this.dragging=a}this.renderRtl,n=this.calcXY(a.top,a.left),this.lastX=r,this.lastY=i,this.innerX===n.x&&this.innerY===n.y||this.$emit("move",this.i,n.x,n.y),"dragend"!==t.type||this.previousX===this.innerX&&this.previousY===this.innerY||this.$emit("moved",this.i,n.x,n.y),this.eventBus.$emit("dragEvent",t.type,this.i,n.x,n.y,this.innerH,this.innerW)}}},calcPosition:function(t,e,n,r){var i=this.calcColWidth();return this.renderRtl?{right:Math.round(i*t+(t+1)*this.margin[0]),top:Math.round(this.rowHeight*e+(e+1)*this.margin[1]),width:n===1/0?n:Math.round(i*n+Math.max(0,n-1)*this.margin[0]),height:r===1/0?r:Math.round(this.rowHeight*r+Math.max(0,r-1)*this.margin[1])}:{left:Math.round(i*t+(t+1)*this.margin[0]),top:Math.round(this.rowHeight*e+(e+1)*this.margin[1]),width:n===1/0?n:Math.round(i*n+Math.max(0,n-1)*this.margin[0]),height:r===1/0?r:Math.round(this.rowHeight*r+Math.max(0,r-1)*this.margin[1])}},calcXY:function(t,e){var n=this.calcColWidth(),r=Math.round((e-this.margin[0])/(n+this.margin[0])),i=Math.round((t-this.margin[1])/(this.rowHeight+this.margin[1]));return{x:r=Math.max(Math.min(r,this.cols-this.innerW),0),y:i=Math.max(Math.min(i,this.maxRows-this.innerH),0)}},calcColWidth:function(){return(this.containerWidth-this.margin[0]*(this.cols+1))/this.cols},calcWH:function(t,e){var n=this.calcColWidth(),r=Math.round((e+this.margin[0])/(n+this.margin[0])),i=Math.round((t+this.margin[1])/(this.rowHeight+this.margin[1]));return{w:r=Math.max(Math.min(r,this.cols-this.innerX),0),h:i=Math.max(Math.min(i,this.maxRows-this.innerY),0)}},updateWidth:function(t,e){this.containerWidth=t,null!=e&&(this.cols=e)},compact:function(){this.createStyle()},tryMakeDraggable:function(){var t=this;if(null!==this.interactObj&&void 0!==this.interactObj||(this.interactObj=qt(this.$refs.item),this.useStyleCursor||this.interactObj.styleCursor(!1)),this.draggable&&!this.static){var e={ignoreFrom:this.dragIgnoreFrom,allowFrom:this.dragAllowFrom};this.interactObj.draggable(e),this.dragEventSet||(this.dragEventSet=!0,this.interactObj.on("dragstart dragmove dragend",(function(e){t.handleDrag(e)})))}else this.interactObj.draggable({enabled:!1})},tryMakeResizable:function(){var t=this;if(null!==this.interactObj&&void 0!==this.interactObj||(this.interactObj=qt(this.$refs.item),this.useStyleCursor||this.interactObj.styleCursor(!1)),this.resizable&&!this.static){var e=this.calcPosition(0,0,this.maxW,this.maxH),n=this.calcPosition(0,0,this.minW,this.minH),r={edges:{left:!1,right:"."+this.resizableHandleClass.trim().replace(" ","."),bottom:"."+this.resizableHandleClass.trim().replace(" ","."),top:!1},ignoreFrom:this.resizeIgnoreFrom,restrictSize:{min:{height:n.height,width:n.width},max:{height:e.height,width:e.width}}};this.preserveAspectRatio&&(r.modifiers=[qt.modifiers.aspectRatio({ratio:"preserve"})]),this.interactObj.resizable(r),this.resizeEventSet||(this.resizeEventSet=!0,this.interactObj.on("resizestart resizemove resizeend",(function(e){t.handleResize(e)})))}else this.interactObj.resizable({enabled:!1})},autoSize:function(){this.previousW=this.innerW,this.previousH=this.innerH;var t=this.$slots.default[0].elm.getBoundingClientRect(),e=this.calcWH(t.height,t.width);e.w<this.minW&&(e.w=this.minW),e.w>this.maxW&&(e.w=this.maxW),e.h<this.minH&&(e.h=this.minH),e.h>this.maxH&&(e.h=this.maxH),e.h<1&&(e.h=1),e.w<1&&(e.w=1),this.innerW===e.w&&this.innerH===e.h||this.$emit("resize",this.i,e.h,e.w,t.height,t.width),this.previousW===e.w&&this.previousH===e.h||(this.$emit("resized",this.i,e.h,e.w,t.height,t.width),this.eventBus.$emit("resizeEvent","resizeend",this.i,this.innerX,this.innerY,e.h,e.w))}}},nn=(n("5ed4"),n("2877")),rn=Object(nn.a)(en,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{ref:"item",staticClass:"vue-grid-item",class:t.classObj,style:t.style},[t._t("default"),t.resizableAndNotStatic?n("span",{ref:"handle",class:t.resizableHandleClass}):t._e()],2)}),[],!1,null,null,null);e.a=rn.exports},be13:function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},c274:function(t,e,n){"use strict";var r=n("50bf");function i(){var t={},e=0,n=0,r=0;return{add:function(i,o){o||(o=i,i=0),i>n?n=i:i<r&&(r=i),t[i]||(t[i]=[]),t[i].push(o),e++},process:function(){for(var e=r;e<=n;e++)for(var i=t[e],o=0;o<i.length;o++)(0,i[o])()},size:function(){return e}}}t.exports=function(t){var e=(t=t||{}).reporter,n=r.getOption(t,"async",!0),o=r.getOption(t,"auto",!0);o&&!n&&(e&&e.warn("Invalid options combination. auto=true and async=false is invalid. Setting async=true."),n=!0);var s,a=i(),c=!1;function l(){for(c=!0;a.size();){var t=a;a=i(),t.process()}c=!1}function u(){s=setTimeout(l,0)}return{add:function(t,e){!c&&o&&n&&0===a.size()&&u(),a.add(t,e)},force:function(t){c||(void 0===t&&(t=n),s&&(clearTimeout(s),s=null),t?u():l())}}}},c366:function(t,e,n){var r=n("6821"),i=n("9def"),o=n("77f1");t.exports=function(t){return function(e,n,s){var a,c=r(e),l=i(c.length),u=o(s,l);if(t&&n!=n){for(;l>u;)if((a=c[u++])!=a)return!0}else for(;l>u;u++)if((t||u in c)&&c[u]===n)return t||u||0;return!t&&-1}}},c5f6:function(t,e,n){"use strict";var r=n("7726"),i=n("69a8"),o=n("2d95"),s=n("5dbc"),a=n("6a99"),c=n("79e5"),l=n("9093").f,u=n("11e9").f,h=n("86cc").f,p=n("aa77").trim,d="Number",f=r.Number,g=f,v=f.prototype,m=o(n("2aeb")(v))==d,y="trim"in String.prototype,b=function(t){var e=a(t,!1);if("string"==typeof e&&e.length>2){var n,r,i,o=(e=y?e.trim():p(e,3)).charCodeAt(0);if(43===o||45===o){if(88===(n=e.charCodeAt(2))||120===n)return NaN}else if(48===o){switch(e.charCodeAt(1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+e}for(var s,c=e.slice(2),l=0,u=c.length;l<u;l++)if((s=c.charCodeAt(l))<48||s>i)return NaN;return parseInt(c,r)}}return+e};if(!f(" 0o1")||!f("0b1")||f("+0x1")){f=function(t){var e=arguments.length<1?0:t,n=this;return n instanceof f&&(m?c((function(){v.valueOf.call(n)})):o(n)!=d)?s(new g(b(e)),n,f):b(e)};for(var w,x=n("9e1e")?l(g):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),_=0;x.length>_;_++)i(g,w=x[_])&&!i(f,w)&&h(f,w,u(g,w));f.prototype=v,v.constructor=f,n("2aba")(r,d,f)}},c69a:function(t,e,n){t.exports=!n("9e1e")&&!n("79e5")((function(){return 7!=Object.defineProperty(n("230e")("div"),"a",{get:function(){return 7}}).a}))},c8ba:function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},c946:function(t,e,n){"use strict";var r=n("b770").forEach;t.exports=function(t){var e=(t=t||{}).reporter,n=t.batchProcessor,i=t.stateHandler.getState,o=(t.stateHandler.hasState,t.idHandler);if(!n)throw new Error("Missing required dependency: batchProcessor");if(!e)throw new Error("Missing required dependency: reporter.");var s=function(){var t=document.createElement("div");t.style.cssText=l(["position: absolute","width: 1000px","height: 1000px","visibility: hidden","margin: 0","padding: 0"]);var e=document.createElement("div");e.style.cssText=l(["position: absolute","width: 500px","height: 500px","overflow: scroll","visibility: none","top: -1500px","left: -1500px","visibility: hidden","margin: 0","padding: 0"]),e.appendChild(t),document.body.insertBefore(e,document.body.firstChild);var n=500-e.clientWidth,r=500-e.clientHeight;return document.body.removeChild(e),{width:n,height:r}}(),a="erd_scroll_detection_container";function c(t){!function(t,e,n){if(!t.getElementById(e)){var r=n+"_animation",i="/* Created by the element-resize-detector library. */\n";i+="."+n+" > div::-webkit-scrollbar { "+l(["display: none"])+" }\n\n",i+=".erd_scroll_detection_container_animation_active { "+l(["-webkit-animation-duration: 0.1s","animation-duration: 0.1s","-webkit-animation-name: "+r,"animation-name: "+r])+" }\n",i+="@-webkit-keyframes "+r+" { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }\n",function(n,r){r=r||function(e){t.head.appendChild(e)};var i=t.createElement("style");i.innerHTML=n,i.id=e,r(i)}(i+="@keyframes "+r+" { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }")}}(t,"erd_scroll_detection_scrollbar_style",a)}function l(e){var n=t.important?" !important; ":"; ";return(e.join(n)+n).trim()}function u(t,n,r){if(t.addEventListener)t.addEventListener(n,r);else{if(!t.attachEvent)return e.error("[scroll] Don't know how to add event listeners.");t.attachEvent("on"+n,r)}}function h(t,n,r){if(t.removeEventListener)t.removeEventListener(n,r);else{if(!t.detachEvent)return e.error("[scroll] Don't know how to remove event listeners.");t.detachEvent("on"+n,r)}}function p(t){return i(t).container.childNodes[0].childNodes[0].childNodes[0]}function d(t){return i(t).container.childNodes[0].childNodes[0].childNodes[1]}return c(window.document),{makeDetectable:function(t,c,h){function f(){if(t.debug){var n=Array.prototype.slice.call(arguments);if(n.unshift(o.get(c),"Scroll: "),e.log.apply)e.log.apply(null,n);else for(var r=0;r<n.length;r++)e.log(n[r])}}function g(t){var e=i(t).container.childNodes[0],n=window.getComputedStyle(e);return!n.width||-1===n.width.indexOf("px")}function v(){var t=window.getComputedStyle(c),e={};return e.position=t.position,e.width=c.offsetWidth,e.height=c.offsetHeight,e.top=t.top,e.right=t.right,e.bottom=t.bottom,e.left=t.left,e.widthCSS=t.width,e.heightCSS=t.height,e}function m(){if(f("storeStyle invoked."),i(c)){var t=v();i(c).style=t}else f("Aborting because element has been uninstalled")}function y(t,e,n){i(t).lastWidth=e,i(t).lastHeight=n}function b(){return 2*s.width+1}function w(){return 2*s.height+1}function x(t){return t+10+b()}function _(t){return t+10+w()}function k(t,e,n){var r=p(t),i=d(t),o=x(e),s=_(n),a=function(t){return 2*t+b()}(e),c=function(t){return 2*t+w()}(n);r.scrollLeft=o,r.scrollTop=s,i.scrollLeft=a,i.scrollTop=c}function C(){var t=i(c).container;if(!t){(t=document.createElement("div")).className=a,t.style.cssText=l(["visibility: hidden","display: inline","width: 0px","height: 0px","z-index: -1","overflow: hidden","margin: 0","padding: 0"]),i(c).container=t,function(t){t.className+=" "+a+"_animation_active"}(t),c.appendChild(t);var e=function(){i(c).onRendered&&i(c).onRendered()};u(t,"animationstart",e),i(c).onAnimationStart=e}return t}function S(){if(f("Injecting elements"),i(c)){!function(){var n=i(c).style;if("static"===n.position){c.style.setProperty("position","relative",t.important?"important":"");var r=function(t,e,n,r){var i=n[r];"auto"!==i&&"0"!==function(t){return t.replace(/[^-\d\.]/g,"")}(i)&&(t.warn("An element that is positioned static has style."+r+"="+i+" which is ignored due to the static positioning. The element will need to be positioned relative, so the style."+r+" will be set to 0. Element: ",e),e.style[r]=0)};r(e,c,n,"top"),r(e,c,n,"right"),r(e,c,n,"bottom"),r(e,c,n,"left")}}();var n=i(c).container;n||(n=C());var r,o,h,p,d=s.width,g=s.height,v=l(["position: absolute","flex: none","overflow: hidden","z-index: -1","visibility: hidden","width: 100%","height: 100%","left: 0px","top: 0px"]),m=l(["position: absolute","flex: none","overflow: hidden","z-index: -1","visibility: hidden"].concat(["left: "+(r=(r=-(1+d))?r+"px":"0"),"top: "+(o=(o=-(1+g))?o+"px":"0"),"right: "+(p=(p=-d)?p+"px":"0"),"bottom: "+(h=(h=-g)?h+"px":"0")])),y=l(["position: absolute","flex: none","overflow: scroll","z-index: -1","visibility: hidden","width: 100%","height: 100%"]),b=l(["position: absolute","flex: none","overflow: scroll","z-index: -1","visibility: hidden","width: 100%","height: 100%"]),w=l(["position: absolute","left: 0","top: 0"]),x=l(["position: absolute","width: 200%","height: 200%"]),_=document.createElement("div"),k=document.createElement("div"),S=document.createElement("div"),A=document.createElement("div"),E=document.createElement("div"),O=document.createElement("div");_.dir="ltr",_.style.cssText=v,_.className=a,k.className=a,k.style.cssText=m,S.style.cssText=y,A.style.cssText=w,E.style.cssText=b,O.style.cssText=x,S.appendChild(A),E.appendChild(O),k.appendChild(S),k.appendChild(E),_.appendChild(k),n.appendChild(_),u(S,"scroll",T),u(E,"scroll",P),i(c).onExpandScroll=T,i(c).onShrinkScroll=P}else f("Aborting because element has been uninstalled");function T(){i(c).onExpand&&i(c).onExpand()}function P(){i(c).onShrink&&i(c).onShrink()}}function A(){function s(e,n,r){var i=function(t){return p(t).childNodes[0]}(e),o=x(n),s=_(r);i.style.setProperty("width",o+"px",t.important?"important":""),i.style.setProperty("height",s+"px",t.important?"important":"")}function a(r){var a=c.offsetWidth,u=c.offsetHeight,h=a!==i(c).lastWidth||u!==i(c).lastHeight;f("Storing current size",a,u),y(c,a,u),n.add(0,(function(){if(h)if(i(c))if(l()){if(t.debug){var n=c.offsetWidth,r=c.offsetHeight;n===a&&r===u||e.warn(o.get(c),"Scroll: Size changed before updating detector elements.")}s(c,a,u)}else f("Aborting because element container has not been initialized");else f("Aborting because element has been uninstalled")})),n.add(1,(function(){i(c)?l()?k(c,a,u):f("Aborting because element container has not been initialized"):f("Aborting because element has been uninstalled")})),h&&r&&n.add(2,(function(){i(c)?l()?r():f("Aborting because element container has not been initialized"):f("Aborting because element has been uninstalled")}))}function l(){return!!i(c).container}function u(){f("notifyListenersIfNeeded invoked");var t=i(c);return void 0===i(c).lastNotifiedWidth&&t.lastWidth===t.startSize.width&&t.lastHeight===t.startSize.height?f("Not notifying: Size is the same as the start size, and there has been no notification yet."):t.lastWidth===t.lastNotifiedWidth&&t.lastHeight===t.lastNotifiedHeight?f("Not notifying: Size already notified"):(f("Current size not notified, notifying..."),t.lastNotifiedWidth=t.lastWidth,t.lastNotifiedHeight=t.lastHeight,void r(i(c).listeners,(function(t){t(c)})))}function h(){f("Scroll detected."),g(c)?f("Scroll event fired while unrendered. Ignoring..."):a(u)}if(f("registerListenersAndPositionElements invoked."),i(c)){i(c).onRendered=function(){if(f("startanimation triggered."),g(c))f("Ignoring since element is still unrendered...");else{f("Element rendered.");var t=p(c),e=d(c);0!==t.scrollLeft&&0!==t.scrollTop&&0!==e.scrollLeft&&0!==e.scrollTop||(f("Scrollbars out of sync. Updating detector elements..."),a(u))}},i(c).onExpand=h,i(c).onShrink=h;var v=i(c).style;s(c,v.width,v.height)}else f("Aborting because element has been uninstalled")}function E(){if(f("finalizeDomMutation invoked."),i(c)){var t=i(c).style;y(c,t.width,t.height),k(c,t.width,t.height)}else f("Aborting because element has been uninstalled")}function O(){h(c)}function T(){var t;f("Installing..."),i(c).listeners=[],t=v(),i(c).startSize={width:t.width,height:t.height},f("Element start size",i(c).startSize),n.add(0,m),n.add(1,S),n.add(2,A),n.add(3,E),n.add(4,O)}h||(h=c,c=t,t=null),t=t||{},f("Making detectable..."),function(t){return!function(t){return t===t.ownerDocument.body||t.ownerDocument.body.contains(t)}(t)||null===window.getComputedStyle(t)}(c)?(f("Element is detached"),C(),f("Waiting until element is attached..."),i(c).onRendered=function(){f("Element is now attached"),T()}):T()},addListener:function(t,e){if(!i(t).listeners.push)throw new Error("Cannot add listener to an element that is not detectable.");i(t).listeners.push(e)},uninstall:function(t){var e=i(t);e&&(e.onExpandScroll&&h(p(t),"scroll",e.onExpandScroll),e.onShrinkScroll&&h(d(t),"scroll",e.onShrinkScroll),e.onAnimationStart&&h(e.container,"animationstart",e.onAnimationStart),e.container&&t.removeChild(e.container))},initDocument:c}}},ca5a:function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},cadf:function(t,e,n){"use strict";var r=n("9c6c"),i=n("d53b"),o=n("84f2"),s=n("6821");t.exports=n("01f9")(Array,"Array",(function(t,e){this._t=s(t),this._i=0,this._k=e}),(function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,i(1)):i(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])}),"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},cb7c:function(t,e,n){var r=n("d3f4");t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},ce10:function(t,e,n){var r=n("69a8"),i=n("6821"),o=n("c366")(!1),s=n("613b")("IE_PROTO");t.exports=function(t,e){var n,a=i(t),c=0,l=[];for(n in a)n!=s&&r(a,n)&&l.push(n);for(;e.length>c;)r(a,n=e[c++])&&(~o(l,n)||l.push(n));return l}},d3f4:function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},d53b:function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},d6eb:function(t,e,n){"use strict";function r(t){return t._erd}t.exports={initState:function(t){return t._erd={},r(t)},getState:r,cleanState:function(t){delete t._erd}}},d8e8:function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},e11e:function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},e279:function(t,e,n){"use strict";n("1156")},eec4:function(t,e,n){"use strict";var r=n("b770").forEach,i=n("5be5"),o=n("49ad"),s=n("2cef"),a=n("5058"),c=n("abb4"),l=n("18e9"),u=n("c274"),h=n("d6eb"),p=n("18d2"),d=n("c946");function f(t){return Array.isArray(t)||void 0!==t.length}function g(t){if(Array.isArray(t))return t;var e=[];return r(t,(function(t){e.push(t)})),e}function v(t){return t&&1===t.nodeType}function m(t,e,n){var r=t[e];return null==r&&void 0!==n?n:r}t.exports=function(t){var e;if((t=t||{}).idHandler)e={get:function(e){return t.idHandler.get(e,!0)},set:t.idHandler.set};else{var n=s(),y=a({idGenerator:n,stateHandler:h});e=y}var b=t.reporter;b||(b=c(!1===b));var w=m(t,"batchProcessor",u({reporter:b})),x={};x.callOnAdd=!!m(t,"callOnAdd",!0),x.debug=!!m(t,"debug",!1);var _,k=o(e),C=i({stateHandler:h}),S=m(t,"strategy","object"),A=m(t,"important",!1),E={reporter:b,batchProcessor:w,stateHandler:h,idHandler:e,important:A};if("scroll"===S&&(l.isLegacyOpera()?(b.warn("Scroll strategy is not supported on legacy Opera. Changing to object strategy."),S="object"):l.isIE(9)&&(b.warn("Scroll strategy is not supported on IE9. Changing to object strategy."),S="object")),"scroll"===S)_=d(E);else{if("object"!==S)throw new Error("Invalid strategy name: "+S);_=p(E)}var O={};return{listenTo:function(t,n,i){function o(t){var e=k.get(t);r(e,(function(e){e(t)}))}function s(t,e,n){k.add(e,n),t&&n(e)}if(i||(i=n,n=t,t={}),!n)throw new Error("At least one element required.");if(!i)throw new Error("Listener required.");if(v(n))n=[n];else{if(!f(n))return b.error("Invalid arguments. Must be a DOM element or a collection of DOM elements.");n=g(n)}var a=0,c=m(t,"callOnAdd",x.callOnAdd),l=m(t,"onReady",(function(){})),u=m(t,"debug",x.debug);r(n,(function(t){h.getState(t)||(h.initState(t),e.set(t));var p=e.get(t);if(u&&b.log("Attaching listener to element",p,t),!C.isDetectable(t))return u&&b.log(p,"Not detectable."),C.isBusy(t)?(u&&b.log(p,"System busy making it detectable"),s(c,t,i),O[p]=O[p]||[],void O[p].push((function(){++a===n.length&&l()}))):(u&&b.log(p,"Making detectable..."),C.markBusy(t,!0),_.makeDetectable({debug:u,important:A},t,(function(t){if(u&&b.log(p,"onElementDetectable"),h.getState(t)){C.markAsDetectable(t),C.markBusy(t,!1),_.addListener(t,o),s(c,t,i);var e=h.getState(t);if(e&&e.startSize){var d=t.offsetWidth,f=t.offsetHeight;e.startSize.width===d&&e.startSize.height===f||o(t)}O[p]&&r(O[p],(function(t){t()}))}else u&&b.log(p,"Element uninstalled before being detectable.");delete O[p],++a===n.length&&l()})));u&&b.log(p,"Already detecable, adding listener."),s(c,t,i),a++})),a===n.length&&l()},removeListener:k.removeListener,removeAllListeners:k.removeAllListeners,uninstall:function(t){if(!t)return b.error("At least one element is required.");if(v(t))t=[t];else{if(!f(t))return b.error("Invalid arguments. Must be a DOM element or a collection of DOM elements.");t=g(t)}r(t,(function(t){k.removeAllListeners(t),_.uninstall(t),h.cleanState(t)}))},initDocument:function(t){_.initDocument&&_.initDocument(t)}}}},f1ae:function(t,e,n){"use strict";var r=n("86cc"),i=n("4630");t.exports=function(t,e,n){e in t?r.f(t,e,i(0,n)):t[e]=n}},f6fd:function(t,e){!function(t){var e="currentScript",n=t.getElementsByTagName("script");e in t||Object.defineProperty(t,e,{get:function(){try{throw new Error}catch(r){var t,e=(/.*at [^\(]*\((.*):.+:.+\)$/gi.exec(r.stack)||[!1])[1];for(t in n)if(n[t].src==e||"interactive"==n[t].readyState)return n[t];return null}}})}(document)},f751:function(t,e,n){var r=n("5ca1");r(r.S+r.F,"Object",{assign:n("7333")})},fa5b:function(t,e,n){t.exports=n("5537")("native-function-to-string",Function.toString)},fab2:function(t,e,n){var r=n("7726").document;t.exports=r&&r.documentElement},fb15:function(t,e,n){"use strict";var r;n.r(e),n.d(e,"install",(function(){return i.d})),n.d(e,"GridLayout",(function(){return i.b})),n.d(e,"GridItem",(function(){return i.a})),"undefined"!=typeof window&&(n("f6fd"),(r=window.document.currentScript)&&(r=r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(n.p=r[1]));var i=n("2af9");e.default=i.c},fca0:function(t,e,n){var r=n("5ca1"),i=n("7726").isFinite;r(r.S,"Number",{isFinite:function(t){return"number"==typeof t&&i(t)}})},fdef:function(t,e){t.exports="\t\n\v\f\r \u2028\u2029\ufeff"}}).default},7719:(t,e,n)=>{"use strict";var r,i,o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s=(i=n(6163))&&i.__esModule?i:{default:i};!function(){function n(t,e){t.innerHTML=(0,s.default)(t.innerHTML,e.value)}"object"==o(e)?t.exports=n:void 0===(r=function(){return n}.apply(e,[]))||(t.exports=r)}()},2445:function(t){"undefined"!=typeof self&&self,t.exports=function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=23)}([function(t,e,n){(function(r){function i(){var t;try{t=e.storage.debug}catch(t){}return!t&&void 0!==r&&"env"in r&&(t=r.env.DEBUG),t}(e=t.exports=n(26)).log=function(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},e.formatArgs=function(t){var n=this.useColors;if(t[0]=(n?"%c":"")+this.namespace+(n?" %c":" ")+t[0]+(n?"%c ":" ")+"+"+e.humanize(this.diff),n){var r="color: "+this.color;t.splice(1,0,r,"color: inherit");var i=0,o=0;t[0].replace(/%[a-zA-Z%]/g,(function(t){"%%"!==t&&(i++,"%c"===t&&(o=i))})),t.splice(o,0,r)}},e.save=function(t){try{null==t?e.storage.removeItem("debug"):e.storage.debug=t}catch(t){}},e.load=i,e.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},e.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(t){}}(),e.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],e.formatters.j=function(t){try{return JSON.stringify(t)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}},e.enable(i())}).call(this,n(25))},function(t,e,n){function r(t){if(t)return function(t){for(var e in r.prototype)t[e]=r.prototype[e];return t}(t)}t.exports=r,r.prototype.on=r.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this},r.prototype.once=function(t,e){function n(){this.off(t,n),e.apply(this,arguments)}return n.fn=e,this.on(t,n),this},r.prototype.off=r.prototype.removeListener=r.prototype.removeAllListeners=r.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n,r=this._callbacks["$"+t];if(!r)return this;if(1==arguments.length)return delete this._callbacks["$"+t],this;for(var i=0;i<r.length;i++)if((n=r[i])===e||n.fn===e){r.splice(i,1);break}return this},r.prototype.emit=function(t){this._callbacks=this._callbacks||{};var e=[].slice.call(arguments,1),n=this._callbacks["$"+t];if(n)for(var r=0,i=(n=n.slice(0)).length;r<i;++r)n[r].apply(this,e);return this},r.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]},r.prototype.hasListeners=function(t){return!!this.listeners(t).length}},function(t,e,n){var r,i=n(36),o=n(16),s=n(37),a=n(38),c=n(39);"undefined"!=typeof ArrayBuffer&&(r=n(40));var l="undefined"!=typeof navigator&&/Android/i.test(navigator.userAgent),u="undefined"!=typeof navigator&&/PhantomJS/i.test(navigator.userAgent),h=l||u;e.protocol=3;var p=e.packets={open:0,close:1,ping:2,pong:3,message:4,upgrade:5,noop:6},d=i(p),f={type:"error",data:"parser error"},g=n(41);function v(t,e,n){for(var r=new Array(t.length),i=a(t.length,n),o=function(t,n,i){e(n,(function(e,n){r[t]=n,i(e,r)}))},s=0;s<t.length;s++)o(s,t[s],i)}e.encodePacket=function(t,n,r,i){"function"==typeof n&&(i=n,n=!1),"function"==typeof r&&(i=r,r=null);var o=void 0===t.data?void 0:t.data.buffer||t.data;if("undefined"!=typeof ArrayBuffer&&o instanceof ArrayBuffer)return function(t,n,r){if(!n)return e.encodeBase64Packet(t,r);var i=t.data,o=new Uint8Array(i),s=new Uint8Array(1+i.byteLength);s[0]=p[t.type];for(var a=0;a<o.length;a++)s[a+1]=o[a];return r(s.buffer)}(t,n,i);if(void 0!==g&&o instanceof g)return function(t,n,r){if(!n)return e.encodeBase64Packet(t,r);if(h)return function(t,n,r){if(!n)return e.encodeBase64Packet(t,r);var i=new FileReader;return i.onload=function(){e.encodePacket({type:t.type,data:i.result},n,!0,r)},i.readAsArrayBuffer(t.data)}(t,n,r);var i=new Uint8Array(1);return i[0]=p[t.type],r(new g([i.buffer,t.data]))}(t,n,i);if(o&&o.base64)return function(t,n){return n("b"+e.packets[t.type]+t.data.data)}(t,i);var s=p[t.type];return void 0!==t.data&&(s+=r?c.encode(String(t.data),{strict:!1}):String(t.data)),i(""+s)},e.encodeBase64Packet=function(t,n){var r,i="b"+e.packets[t.type];if(void 0!==g&&t.data instanceof g){var o=new FileReader;return o.onload=function(){var t=o.result.split(",")[1];n(i+t)},o.readAsDataURL(t.data)}try{r=String.fromCharCode.apply(null,new Uint8Array(t.data))}catch(e){for(var s=new Uint8Array(t.data),a=new Array(s.length),c=0;c<s.length;c++)a[c]=s[c];r=String.fromCharCode.apply(null,a)}return i+=btoa(r),n(i)},e.decodePacket=function(t,n,r){if(void 0===t)return f;if("string"==typeof t){if("b"===t.charAt(0))return e.decodeBase64Packet(t.substr(1),n);if(r&&!1===(t=function(t){try{t=c.decode(t,{strict:!1})}catch(t){return!1}return t}(t)))return f;var i=t.charAt(0);return Number(i)==i&&d[i]?t.length>1?{type:d[i],data:t.substring(1)}:{type:d[i]}:f}i=new Uint8Array(t)[0];var o=s(t,1);return g&&"blob"===n&&(o=new g([o])),{type:d[i],data:o}},e.decodeBase64Packet=function(t,e){var n=d[t.charAt(0)];if(!r)return{type:n,data:{base64:!0,data:t.substr(1)}};var i=r.decode(t.substr(1));return"blob"===e&&g&&(i=new g([i])),{type:n,data:i}},e.encodePayload=function(t,n,r){"function"==typeof n&&(r=n,n=null);var i=o(t);return n&&i?g&&!h?e.encodePayloadAsBlob(t,r):e.encodePayloadAsArrayBuffer(t,r):t.length?void v(t,(function(t,r){e.encodePacket(t,!!i&&n,!1,(function(t){r(null,function(t){return t.length+":"+t}(t))}))}),(function(t,e){return r(e.join(""))})):r("0:")},e.decodePayload=function(t,n,r){if("string"!=typeof t)return e.decodePayloadAsBinary(t,n,r);var i;if("function"==typeof n&&(r=n,n=null),""===t)return r(f,0,1);for(var o,s,a="",c=0,l=t.length;c<l;c++){var u=t.charAt(c);if(":"===u){if(""===a||a!=(o=Number(a)))return r(f,0,1);if(a!=(s=t.substr(c+1,o)).length)return r(f,0,1);if(s.length){if(i=e.decodePacket(s,n,!1),f.type===i.type&&f.data===i.data)return r(f,0,1);if(!1===r(i,c+o,l))return}c+=o,a=""}else a+=u}return""!==a?r(f,0,1):void 0},e.encodePayloadAsArrayBuffer=function(t,n){if(!t.length)return n(new ArrayBuffer(0));v(t,(function(t,n){e.encodePacket(t,!0,!0,(function(t){return n(null,t)}))}),(function(t,e){var r=e.reduce((function(t,e){var n;return t+(n="string"==typeof e?e.length:e.byteLength).toString().length+n+2}),0),i=new Uint8Array(r),o=0;return e.forEach((function(t){var e="string"==typeof t,n=t;if(e){for(var r=new Uint8Array(t.length),s=0;s<t.length;s++)r[s]=t.charCodeAt(s);n=r.buffer}i[o++]=e?0:1;var a=n.byteLength.toString();for(s=0;s<a.length;s++)i[o++]=parseInt(a[s]);for(i[o++]=255,r=new Uint8Array(n),s=0;s<r.length;s++)i[o++]=r[s]})),n(i.buffer)}))},e.encodePayloadAsBlob=function(t,n){v(t,(function(t,n){e.encodePacket(t,!0,!0,(function(t){var e=new Uint8Array(1);if(e[0]=1,"string"==typeof t){for(var r=new Uint8Array(t.length),i=0;i<t.length;i++)r[i]=t.charCodeAt(i);t=r.buffer,e[0]=0}var o=(t instanceof ArrayBuffer?t.byteLength:t.size).toString(),s=new Uint8Array(o.length+1);for(i=0;i<o.length;i++)s[i]=parseInt(o[i]);if(s[o.length]=255,g){var a=new g([e.buffer,s.buffer,t]);n(null,a)}}))}),(function(t,e){return n(new g(e))}))},e.decodePayloadAsBinary=function(t,n,r){"function"==typeof n&&(r=n,n=null);for(var i=t,o=[];i.byteLength>0;){for(var a=new Uint8Array(i),c=0===a[0],l="",u=1;255!==a[u];u++){if(l.length>310)return r(f,0,1);l+=a[u]}i=s(i,2+l.length),l=parseInt(l);var h=s(i,0,l);if(c)try{h=String.fromCharCode.apply(null,new Uint8Array(h))}catch(t){var p=new Uint8Array(h);for(h="",u=0;u<p.length;u++)h+=String.fromCharCode(p[u])}o.push(h),i=s(i,l)}var d=o.length;o.forEach((function(t,i){r(e.decodePacket(t,n,!0),i,d)}))}},function(t,e){e.encode=function(t){var e="";for(var n in t)t.hasOwnProperty(n)&&(e.length&&(e+="&"),e+=encodeURIComponent(n)+"="+encodeURIComponent(t[n]));return e},e.decode=function(t){for(var e={},n=t.split("&"),r=0,i=n.length;r<i;r++){var o=n[r].split("=");e[decodeURIComponent(o[0])]=decodeURIComponent(o[1])}return e}},function(t,e){t.exports=function(t,e){var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}},function(t,e,n){var r=n(0)("socket.io-parser"),i=n(1),o=n(28),s=n(6),a=n(11);function c(){}e.protocol=4,e.types=["CONNECT","DISCONNECT","EVENT","ACK","ERROR","BINARY_EVENT","BINARY_ACK"],e.CONNECT=0,e.DISCONNECT=1,e.EVENT=2,e.ACK=3,e.ERROR=4,e.BINARY_EVENT=5,e.BINARY_ACK=6,e.Encoder=c,e.Decoder=h;var l=e.ERROR+'"encode error"';function u(t){var n=""+t.type;if(e.BINARY_EVENT!==t.type&&e.BINARY_ACK!==t.type||(n+=t.attachments+"-"),t.nsp&&"/"!==t.nsp&&(n+=t.nsp+","),null!=t.id&&(n+=t.id),null!=t.data){var i=function(t){try{return JSON.stringify(t)}catch(t){return!1}}(t.data);if(!1===i)return l;n+=i}return r("encoded %j as %s",t,n),n}function h(){this.reconstructor=null}function p(t){this.reconPack=t,this.buffers=[]}function d(t){return{type:e.ERROR,data:"parser error: "+t}}c.prototype.encode=function(t,n){r("encoding packet %j",t),e.BINARY_EVENT===t.type||e.BINARY_ACK===t.type?function(t,e){o.removeBlobs(t,(function(t){var n=o.deconstructPacket(t),r=u(n.packet),i=n.buffers;i.unshift(r),e(i)}))}(t,n):n([u(t)])},i(h.prototype),h.prototype.add=function(t){var n;if("string"==typeof t)n=function(t){var n=0,i={type:Number(t.charAt(0))};if(null==e.types[i.type])return d("unknown packet type "+i.type);if(e.BINARY_EVENT===i.type||e.BINARY_ACK===i.type){for(var o="";"-"!==t.charAt(++n)&&(o+=t.charAt(n),n!=t.length););if(o!=Number(o)||"-"!==t.charAt(n))throw new Error("Illegal attachments");i.attachments=Number(o)}if("/"===t.charAt(n+1))for(i.nsp="";++n&&","!==(c=t.charAt(n))&&(i.nsp+=c,n!==t.length););else i.nsp="/";var a=t.charAt(n+1);if(""!==a&&Number(a)==a){for(i.id="";++n;){var c;if(null==(c=t.charAt(n))||Number(c)!=c){--n;break}if(i.id+=t.charAt(n),n===t.length)break}i.id=Number(i.id)}if(t.charAt(++n)){var l=function(t){try{return JSON.parse(t)}catch(t){return!1}}(t.substr(n));if(!1===l||i.type!==e.ERROR&&!s(l))return d("invalid payload");i.data=l}return r("decoded %s as %j",t,i),i}(t),e.BINARY_EVENT===n.type||e.BINARY_ACK===n.type?(this.reconstructor=new p(n),0===this.reconstructor.reconPack.attachments&&this.emit("decoded",n)):this.emit("decoded",n);else{if(!a(t)&&!t.base64)throw new Error("Unknown type: "+t);if(!this.reconstructor)throw new Error("got binary data when not reconstructing a packet");(n=this.reconstructor.takeBinaryData(t))&&(this.reconstructor=null,this.emit("decoded",n))}},h.prototype.destroy=function(){this.reconstructor&&this.reconstructor.finishedReconstruction()},p.prototype.takeBinaryData=function(t){if(this.buffers.push(t),this.buffers.length===this.reconPack.attachments){var e=o.reconstructPacket(this.reconPack,this.buffers);return this.finishedReconstruction(),e}return null},p.prototype.finishedReconstruction=function(){this.reconPack=null,this.buffers=[]}},function(t,e){var n={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},function(t,e,n){"use strict";(function(t){var r=n(29),i=n(30),o=n(31);function s(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function a(t,e){if(s()<e)throw new RangeError("Invalid typed array length");return c.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e)).__proto__=c.prototype:(null===t&&(t=new c(e)),t.length=e),t}function c(t,e,n){if(!(c.TYPED_ARRAY_SUPPORT||this instanceof c))return new c(t,e,n);if("number"==typeof t){if("string"==typeof e)throw new Error("If encoding is specified then the first argument must be a string");return h(this,t)}return l(this,t,e,n)}function l(t,e,n,r){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?function(t,e,n,r){if(e.byteLength,n<0||e.byteLength<n)throw new RangeError("'offset' is out of bounds");if(e.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");return e=void 0===n&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,n):new Uint8Array(e,n,r),c.TYPED_ARRAY_SUPPORT?(t=e).__proto__=c.prototype:t=p(t,e),t}(t,e,n,r):"string"==typeof e?function(t,e,n){if("string"==typeof n&&""!==n||(n="utf8"),!c.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|f(e,n),i=(t=a(t,r)).write(e,n);return i!==r&&(t=t.slice(0,i)),t}(t,e,n):function(t,e){if(c.isBuffer(e)){var n=0|d(e.length);return 0===(t=a(t,n)).length||e.copy(t,0,0,n),t}if(e){if("undefined"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!=typeof e.length||(r=e.length)!=r?a(t,0):p(t,e);if("Buffer"===e.type&&o(e.data))return p(t,e.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(t,e)}function u(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function h(t,e){if(u(e),t=a(t,e<0?0:0|d(e)),!c.TYPED_ARRAY_SUPPORT)for(var n=0;n<e;++n)t[n]=0;return t}function p(t,e){var n=e.length<0?0:0|d(e.length);t=a(t,n);for(var r=0;r<n;r+=1)t[r]=255&e[r];return t}function d(t){if(t>=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|t}function f(t,e){if(c.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var n=t.length;if(0===n)return 0;for(var r=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return B(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return H(t).length;default:if(r)return B(t).length;e=(""+e).toLowerCase(),r=!0}}function g(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function v(t,e,n,r,i){if(0===t.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(i)return-1;n=t.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof e&&(e=c.from(e,r)),c.isBuffer(e))return 0===e.length?-1:m(t,e,n,r,i);if("number"==typeof e)return e&=255,c.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):m(t,[e],n,r,i);throw new TypeError("val must be string, number or Buffer")}function m(t,e,n,r,i){var o,s=1,a=t.length,c=e.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(t.length<2||e.length<2)return-1;s=2,a/=2,c/=2,n/=2}function l(t,e){return 1===s?t[e]:t.readUInt16BE(e*s)}if(i){var u=-1;for(o=n;o<a;o++)if(l(t,o)===l(e,-1===u?0:o-u)){if(-1===u&&(u=o),o-u+1===c)return u*s}else-1!==u&&(o-=o-u),u=-1}else for(n+c>a&&(n=a-c),o=n;o>=0;o--){for(var h=!0,p=0;p<c;p++)if(l(t,o+p)!==l(e,p)){h=!1;break}if(h)return o}return-1}function y(t,e,n,r){n=Number(n)||0;var i=t.length-n;r?(r=Number(r))>i&&(r=i):r=i;var o=e.length;if(o%2!=0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var s=0;s<r;++s){var a=parseInt(e.substr(2*s,2),16);if(isNaN(a))return s;t[n+s]=a}return s}function b(t,e,n,r){return U(B(e,t.length-n),t,n,r)}function w(t,e,n,r){return U(function(t){for(var e=[],n=0;n<t.length;++n)e.push(255&t.charCodeAt(n));return e}(e),t,n,r)}function x(t,e,n,r){return w(t,e,n,r)}function _(t,e,n,r){return U(H(e),t,n,r)}function k(t,e,n,r){return U(function(t,e){for(var n,r,i,o=[],s=0;s<t.length&&!((e-=2)<0);++s)r=(n=t.charCodeAt(s))>>8,i=n%256,o.push(i),o.push(r);return o}(e,t.length-n),t,n,r)}function C(t,e,n){return 0===e&&n===t.length?r.fromByteArray(t):r.fromByteArray(t.slice(e,n))}function S(t,e,n){n=Math.min(t.length,n);for(var r=[],i=e;i<n;){var o,s,a,c,l=t[i],u=null,h=l>239?4:l>223?3:l>191?2:1;if(i+h<=n)switch(h){case 1:l<128&&(u=l);break;case 2:128==(192&(o=t[i+1]))&&(c=(31&l)<<6|63&o)>127&&(u=c);break;case 3:o=t[i+1],s=t[i+2],128==(192&o)&&128==(192&s)&&(c=(15&l)<<12|(63&o)<<6|63&s)>2047&&(c<55296||c>57343)&&(u=c);break;case 4:o=t[i+1],s=t[i+2],a=t[i+3],128==(192&o)&&128==(192&s)&&128==(192&a)&&(c=(15&l)<<18|(63&o)<<12|(63&s)<<6|63&a)>65535&&c<1114112&&(u=c)}null===u?(u=65533,h=1):u>65535&&(u-=65536,r.push(u>>>10&1023|55296),u=56320|1023&u),r.push(u),i+=h}return function(t){var e=t.length;if(e<=A)return String.fromCharCode.apply(String,t);for(var n="",r=0;r<e;)n+=String.fromCharCode.apply(String,t.slice(r,r+=A));return n}(r)}e.Buffer=c,e.SlowBuffer=function(t){return+t!=t&&(t=0),c.alloc(+t)},e.INSPECT_MAX_BYTES=50,c.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(t){return!1}}(),e.kMaxLength=s(),c.poolSize=8192,c._augment=function(t){return t.__proto__=c.prototype,t},c.from=function(t,e,n){return l(null,t,e,n)},c.TYPED_ARRAY_SUPPORT&&(c.prototype.__proto__=Uint8Array.prototype,c.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0})),c.alloc=function(t,e,n){return function(t,e,n,r){return u(e),e<=0?a(t,e):void 0!==n?"string"==typeof r?a(t,e).fill(n,r):a(t,e).fill(n):a(t,e)}(null,t,e,n)},c.allocUnsafe=function(t){return h(null,t)},c.allocUnsafeSlow=function(t){return h(null,t)},c.isBuffer=function(t){return!(null==t||!t._isBuffer)},c.compare=function(t,e){if(!c.isBuffer(t)||!c.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var n=t.length,r=e.length,i=0,o=Math.min(n,r);i<o;++i)if(t[i]!==e[i]){n=t[i],r=e[i];break}return n<r?-1:r<n?1:0},c.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(t,e){if(!o(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return c.alloc(0);var n;if(void 0===e)for(e=0,n=0;n<t.length;++n)e+=t[n].length;var r=c.allocUnsafe(e),i=0;for(n=0;n<t.length;++n){var s=t[n];if(!c.isBuffer(s))throw new TypeError('"list" argument must be an Array of Buffers');s.copy(r,i),i+=s.length}return r},c.byteLength=f,c.prototype._isBuffer=!0,c.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)g(this,e,e+1);return this},c.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)g(this,e,e+3),g(this,e+1,e+2);return this},c.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)g(this,e,e+7),g(this,e+1,e+6),g(this,e+2,e+5),g(this,e+3,e+4);return this},c.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?S(this,0,t):function(t,e,n){var r=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return T(this,e,n);case"utf8":case"utf-8":return S(this,e,n);case"ascii":return E(this,e,n);case"latin1":case"binary":return O(this,e,n);case"base64":return C(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return P(this,e,n);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}.apply(this,arguments)},c.prototype.equals=function(t){if(!c.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===c.compare(this,t)},c.prototype.inspect=function(){var t="",n=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(t+=" ... ")),"<Buffer "+t+">"},c.prototype.compare=function(t,e,n,r,i){if(!c.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),e<0||n>t.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&e>=n)return 0;if(r>=i)return-1;if(e>=n)return 1;if(this===t)return 0;for(var o=(i>>>=0)-(r>>>=0),s=(n>>>=0)-(e>>>=0),a=Math.min(o,s),l=this.slice(r,i),u=t.slice(e,n),h=0;h<a;++h)if(l[h]!==u[h]){o=l[h],s=u[h];break}return o<s?-1:s<o?1:0},c.prototype.includes=function(t,e,n){return-1!==this.indexOf(t,e,n)},c.prototype.indexOf=function(t,e,n){return v(this,t,e,n,!0)},c.prototype.lastIndexOf=function(t,e,n){return v(this,t,e,n,!1)},c.prototype.write=function(t,e,n,r){if(void 0===e)r="utf8",n=this.length,e=0;else if(void 0===n&&"string"==typeof e)r=e,n=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-e;if((void 0===n||n>i)&&(n=i),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return y(this,t,e,n);case"utf8":case"utf-8":return b(this,t,e,n);case"ascii":return w(this,t,e,n);case"latin1":case"binary":return x(this,t,e,n);case"base64":return _(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,t,e,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var A=4096;function E(t,e,n){var r="";n=Math.min(t.length,n);for(var i=e;i<n;++i)r+=String.fromCharCode(127&t[i]);return r}function O(t,e,n){var r="";n=Math.min(t.length,n);for(var i=e;i<n;++i)r+=String.fromCharCode(t[i]);return r}function T(t,e,n){var r=t.length;(!e||e<0)&&(e=0),(!n||n<0||n>r)&&(n=r);for(var i="",o=e;o<n;++o)i+=$(t[o]);return i}function P(t,e,n){for(var r=t.slice(e,n),i="",o=0;o<r.length;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function I(t,e,n){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>n)throw new RangeError("Trying to access beyond buffer length")}function M(t,e,n,r,i,o){if(!c.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<o)throw new RangeError('"value" argument is out of bounds');if(n+r>t.length)throw new RangeError("Index out of range")}function R(t,e,n,r){e<0&&(e=65535+e+1);for(var i=0,o=Math.min(t.length-n,2);i<o;++i)t[n+i]=(e&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function N(t,e,n,r){e<0&&(e=4294967295+e+1);for(var i=0,o=Math.min(t.length-n,4);i<o;++i)t[n+i]=e>>>8*(r?i:3-i)&255}function D(t,e,n,r,i,o){if(n+r>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function j(t,e,n,r,o){return o||D(t,0,n,4),i.write(t,e,n,r,23,4),n+4}function L(t,e,n,r,o){return o||D(t,0,n,8),i.write(t,e,n,r,52,8),n+8}c.prototype.slice=function(t,e){var n,r=this.length;if((t=~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),(e=void 0===e?r:~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),e<t&&(e=t),c.TYPED_ARRAY_SUPPORT)(n=this.subarray(t,e)).__proto__=c.prototype;else{var i=e-t;n=new c(i,void 0);for(var o=0;o<i;++o)n[o]=this[o+t]}return n},c.prototype.readUIntLE=function(t,e,n){t|=0,e|=0,n||I(t,e,this.length);for(var r=this[t],i=1,o=0;++o<e&&(i*=256);)r+=this[t+o]*i;return r},c.prototype.readUIntBE=function(t,e,n){t|=0,e|=0,n||I(t,e,this.length);for(var r=this[t+--e],i=1;e>0&&(i*=256);)r+=this[t+--e]*i;return r},c.prototype.readUInt8=function(t,e){return e||I(t,1,this.length),this[t]},c.prototype.readUInt16LE=function(t,e){return e||I(t,2,this.length),this[t]|this[t+1]<<8},c.prototype.readUInt16BE=function(t,e){return e||I(t,2,this.length),this[t]<<8|this[t+1]},c.prototype.readUInt32LE=function(t,e){return e||I(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},c.prototype.readUInt32BE=function(t,e){return e||I(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},c.prototype.readIntLE=function(t,e,n){t|=0,e|=0,n||I(t,e,this.length);for(var r=this[t],i=1,o=0;++o<e&&(i*=256);)r+=this[t+o]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*e)),r},c.prototype.readIntBE=function(t,e,n){t|=0,e|=0,n||I(t,e,this.length);for(var r=e,i=1,o=this[t+--r];r>0&&(i*=256);)o+=this[t+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*e)),o},c.prototype.readInt8=function(t,e){return e||I(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},c.prototype.readInt16LE=function(t,e){e||I(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt16BE=function(t,e){e||I(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt32LE=function(t,e){return e||I(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},c.prototype.readInt32BE=function(t,e){return e||I(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},c.prototype.readFloatLE=function(t,e){return e||I(t,4,this.length),i.read(this,t,!0,23,4)},c.prototype.readFloatBE=function(t,e){return e||I(t,4,this.length),i.read(this,t,!1,23,4)},c.prototype.readDoubleLE=function(t,e){return e||I(t,8,this.length),i.read(this,t,!0,52,8)},c.prototype.readDoubleBE=function(t,e){return e||I(t,8,this.length),i.read(this,t,!1,52,8)},c.prototype.writeUIntLE=function(t,e,n,r){t=+t,e|=0,n|=0,r||M(this,t,e,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[e]=255&t;++o<n&&(i*=256);)this[e+o]=t/i&255;return e+n},c.prototype.writeUIntBE=function(t,e,n,r){t=+t,e|=0,n|=0,r||M(this,t,e,n,Math.pow(2,8*n)-1,0);var i=n-1,o=1;for(this[e+i]=255&t;--i>=0&&(o*=256);)this[e+i]=t/o&255;return e+n},c.prototype.writeUInt8=function(t,e,n){return t=+t,e|=0,n||M(this,t,e,1,255,0),c.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},c.prototype.writeUInt16LE=function(t,e,n){return t=+t,e|=0,n||M(this,t,e,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):R(this,t,e,!0),e+2},c.prototype.writeUInt16BE=function(t,e,n){return t=+t,e|=0,n||M(this,t,e,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):R(this,t,e,!1),e+2},c.prototype.writeUInt32LE=function(t,e,n){return t=+t,e|=0,n||M(this,t,e,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):N(this,t,e,!0),e+4},c.prototype.writeUInt32BE=function(t,e,n){return t=+t,e|=0,n||M(this,t,e,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):N(this,t,e,!1),e+4},c.prototype.writeIntLE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);M(this,t,e,n,i-1,-i)}var o=0,s=1,a=0;for(this[e]=255&t;++o<n&&(s*=256);)t<0&&0===a&&0!==this[e+o-1]&&(a=1),this[e+o]=(t/s>>0)-a&255;return e+n},c.prototype.writeIntBE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);M(this,t,e,n,i-1,-i)}var o=n-1,s=1,a=0;for(this[e+o]=255&t;--o>=0&&(s*=256);)t<0&&0===a&&0!==this[e+o+1]&&(a=1),this[e+o]=(t/s>>0)-a&255;return e+n},c.prototype.writeInt8=function(t,e,n){return t=+t,e|=0,n||M(this,t,e,1,127,-128),c.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},c.prototype.writeInt16LE=function(t,e,n){return t=+t,e|=0,n||M(this,t,e,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):R(this,t,e,!0),e+2},c.prototype.writeInt16BE=function(t,e,n){return t=+t,e|=0,n||M(this,t,e,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):R(this,t,e,!1),e+2},c.prototype.writeInt32LE=function(t,e,n){return t=+t,e|=0,n||M(this,t,e,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):N(this,t,e,!0),e+4},c.prototype.writeInt32BE=function(t,e,n){return t=+t,e|=0,n||M(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):N(this,t,e,!1),e+4},c.prototype.writeFloatLE=function(t,e,n){return j(this,t,e,!0,n)},c.prototype.writeFloatBE=function(t,e,n){return j(this,t,e,!1,n)},c.prototype.writeDoubleLE=function(t,e,n){return L(this,t,e,!0,n)},c.prototype.writeDoubleBE=function(t,e,n){return L(this,t,e,!1,n)},c.prototype.copy=function(t,e,n,r){if(n||(n=0),r||0===r||(r=this.length),e>=t.length&&(e=t.length),e||(e=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),t.length-e<r-n&&(r=t.length-e+n);var i,o=r-n;if(this===t&&n<e&&e<r)for(i=o-1;i>=0;--i)t[i+e]=this[i+n];else if(o<1e3||!c.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)t[i+e]=this[i+n];else Uint8Array.prototype.set.call(t,this.subarray(n,n+o),e);return o},c.prototype.fill=function(t,e,n,r){if("string"==typeof t){if("string"==typeof e?(r=e,e=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===t.length){var i=t.charCodeAt(0);i<256&&(t=i)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!c.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<n)throw new RangeError("Out of range index");if(n<=e)return this;var o;if(e>>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"==typeof t)for(o=e;o<n;++o)this[o]=t;else{var s=c.isBuffer(t)?t:B(new c(t,r).toString()),a=s.length;for(o=0;o<n-e;++o)this[o+e]=s[o%a]}return this};var z=/[^+\/0-9A-Za-z-_]/g;function $(t){return t<16?"0"+t.toString(16):t.toString(16)}function B(t,e){var n;e=e||1/0;for(var r=t.length,i=null,o=[],s=0;s<r;++s){if((n=t.charCodeAt(s))>55295&&n<57344){if(!i){if(n>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(s+1===r){(e-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(e-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((e-=1)<0)break;o.push(n)}else if(n<2048){if((e-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function H(t){return r.toByteArray(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(z,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function U(t,e,n,r){for(var i=0;i<r&&!(i+n>=e.length||i>=t.length);++i)e[i+n]=t[i];return i}}).call(this,n(12))},function(t,e,n){var r=n(34);t.exports=function(t){var e=t.xdomain,n=t.xscheme,i=t.enablesXDR;try{if("undefined"!=typeof XMLHttpRequest&&(!e||r))return new XMLHttpRequest}catch(t){}try{if("undefined"!=typeof XDomainRequest&&!n&&i)return new XDomainRequest}catch(t){}if(!e)try{return new(self[["Active"].concat("Object").join("X")])("Microsoft.XMLHTTP")}catch(t){}}},function(t,e,n){var r=n(2),i=n(1);function o(t){this.path=t.path,this.hostname=t.hostname,this.port=t.port,this.secure=t.secure,this.query=t.query,this.timestampParam=t.timestampParam,this.timestampRequests=t.timestampRequests,this.readyState="",this.agent=t.agent||!1,this.socket=t.socket,this.enablesXDR=t.enablesXDR,this.pfx=t.pfx,this.key=t.key,this.passphrase=t.passphrase,this.cert=t.cert,this.ca=t.ca,this.ciphers=t.ciphers,this.rejectUnauthorized=t.rejectUnauthorized,this.forceNode=t.forceNode,this.isReactNative=t.isReactNative,this.extraHeaders=t.extraHeaders,this.localAddress=t.localAddress}t.exports=o,i(o.prototype),o.prototype.onError=function(t,e){var n=new Error(t);return n.type="TransportError",n.description=e,this.emit("error",n),this},o.prototype.open=function(){return"closed"!==this.readyState&&""!==this.readyState||(this.readyState="opening",this.doOpen()),this},o.prototype.close=function(){return"opening"!==this.readyState&&"open"!==this.readyState||(this.doClose(),this.onClose()),this},o.prototype.send=function(t){if("open"!==this.readyState)throw new Error("Transport not open");this.write(t)},o.prototype.onOpen=function(){this.readyState="open",this.writable=!0,this.emit("open")},o.prototype.onData=function(t){var e=r.decodePacket(t,this.socket.binaryType);this.onPacket(e)},o.prototype.onPacket=function(t){this.emit("packet",t)},o.prototype.onClose=function(){this.readyState="closed",this.emit("close")}},function(t,e){var n=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,r=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];t.exports=function(t){var e=t,i=t.indexOf("["),o=t.indexOf("]");-1!=i&&-1!=o&&(t=t.substring(0,i)+t.substring(i,o).replace(/:/g,";")+t.substring(o,t.length));for(var s=n.exec(t||""),a={},c=14;c--;)a[r[c]]=s[c]||"";return-1!=i&&-1!=o&&(a.source=e,a.host=a.host.substring(1,a.host.length-1).replace(/;/g,":"),a.authority=a.authority.replace("[","").replace("]","").replace(/;/g,":"),a.ipv6uri=!0),a}},function(t,e,n){(function(e){t.exports=function(t){return n&&e.isBuffer(t)||r&&(t instanceof ArrayBuffer||i(t))};var n="function"==typeof e&&"function"==typeof e.isBuffer,r="function"==typeof ArrayBuffer,i=function(t){return"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(t):t.buffer instanceof ArrayBuffer}}).call(this,n(7).Buffer)},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){var r=n(32),i=n(19),o=n(1),s=n(5),a=n(20),c=n(21),l=n(0)("socket.io-client:manager"),u=n(18),h=n(46),p=Object.prototype.hasOwnProperty;function d(t,e){if(!(this instanceof d))return new d(t,e);t&&"object"==typeof t&&(e=t,t=void 0),(e=e||{}).path=e.path||"/socket.io",this.nsps={},this.subs=[],this.opts=e,this.reconnection(!1!==e.reconnection),this.reconnectionAttempts(e.reconnectionAttempts||1/0),this.reconnectionDelay(e.reconnectionDelay||1e3),this.reconnectionDelayMax(e.reconnectionDelayMax||5e3),this.randomizationFactor(e.randomizationFactor||.5),this.backoff=new h({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(null==e.timeout?2e4:e.timeout),this.readyState="closed",this.uri=t,this.connecting=[],this.lastPing=null,this.encoding=!1,this.packetBuffer=[];var n=e.parser||s;this.encoder=new n.Encoder,this.decoder=new n.Decoder,this.autoConnect=!1!==e.autoConnect,this.autoConnect&&this.open()}t.exports=d,d.prototype.emitAll=function(){for(var t in this.emit.apply(this,arguments),this.nsps)p.call(this.nsps,t)&&this.nsps[t].emit.apply(this.nsps[t],arguments)},d.prototype.updateSocketIds=function(){for(var t in this.nsps)p.call(this.nsps,t)&&(this.nsps[t].id=this.generateId(t))},d.prototype.generateId=function(t){return("/"===t?"":t+"#")+this.engine.id},o(d.prototype),d.prototype.reconnection=function(t){return arguments.length?(this._reconnection=!!t,this):this._reconnection},d.prototype.reconnectionAttempts=function(t){return arguments.length?(this._reconnectionAttempts=t,this):this._reconnectionAttempts},d.prototype.reconnectionDelay=function(t){return arguments.length?(this._reconnectionDelay=t,this.backoff&&this.backoff.setMin(t),this):this._reconnectionDelay},d.prototype.randomizationFactor=function(t){return arguments.length?(this._randomizationFactor=t,this.backoff&&this.backoff.setJitter(t),this):this._randomizationFactor},d.prototype.reconnectionDelayMax=function(t){return arguments.length?(this._reconnectionDelayMax=t,this.backoff&&this.backoff.setMax(t),this):this._reconnectionDelayMax},d.prototype.timeout=function(t){return arguments.length?(this._timeout=t,this):this._timeout},d.prototype.maybeReconnectOnOpen=function(){!this.reconnecting&&this._reconnection&&0===this.backoff.attempts&&this.reconnect()},d.prototype.open=d.prototype.connect=function(t,e){if(l("readyState %s",this.readyState),~this.readyState.indexOf("open"))return this;l("opening %s",this.uri),this.engine=r(this.uri,this.opts);var n=this.engine,i=this;this.readyState="opening",this.skipReconnect=!1;var o=a(n,"open",(function(){i.onopen(),t&&t()})),s=a(n,"error",(function(e){if(l("connect_error"),i.cleanup(),i.readyState="closed",i.emitAll("connect_error",e),t){var n=new Error("Connection error");n.data=e,t(n)}else i.maybeReconnectOnOpen()}));if(!1!==this._timeout){var c=this._timeout;l("connect attempt will timeout after %d",c);var u=setTimeout((function(){l("connect attempt timed out after %d",c),o.destroy(),n.close(),n.emit("error","timeout"),i.emitAll("connect_timeout",c)}),c);this.subs.push({destroy:function(){clearTimeout(u)}})}return this.subs.push(o),this.subs.push(s),this},d.prototype.onopen=function(){l("open"),this.cleanup(),this.readyState="open",this.emit("open");var t=this.engine;this.subs.push(a(t,"data",c(this,"ondata"))),this.subs.push(a(t,"ping",c(this,"onping"))),this.subs.push(a(t,"pong",c(this,"onpong"))),this.subs.push(a(t,"error",c(this,"onerror"))),this.subs.push(a(t,"close",c(this,"onclose"))),this.subs.push(a(this.decoder,"decoded",c(this,"ondecoded")))},d.prototype.onping=function(){this.lastPing=new Date,this.emitAll("ping")},d.prototype.onpong=function(){this.emitAll("pong",new Date-this.lastPing)},d.prototype.ondata=function(t){this.decoder.add(t)},d.prototype.ondecoded=function(t){this.emit("packet",t)},d.prototype.onerror=function(t){l("error",t),this.emitAll("error",t)},d.prototype.socket=function(t,e){var n=this.nsps[t];if(!n){n=new i(this,t,e),this.nsps[t]=n;var r=this;n.on("connecting",o),n.on("connect",(function(){n.id=r.generateId(t)})),this.autoConnect&&o()}function o(){~u(r.connecting,n)||r.connecting.push(n)}return n},d.prototype.destroy=function(t){var e=u(this.connecting,t);~e&&this.connecting.splice(e,1),this.connecting.length||this.close()},d.prototype.packet=function(t){l("writing packet %j",t);var e=this;t.query&&0===t.type&&(t.nsp+="?"+t.query),e.encoding?e.packetBuffer.push(t):(e.encoding=!0,this.encoder.encode(t,(function(n){for(var r=0;r<n.length;r++)e.engine.write(n[r],t.options);e.encoding=!1,e.processPacketQueue()})))},d.prototype.processPacketQueue=function(){if(this.packetBuffer.length>0&&!this.encoding){var t=this.packetBuffer.shift();this.packet(t)}},d.prototype.cleanup=function(){l("cleanup");for(var t=this.subs.length,e=0;e<t;e++)this.subs.shift().destroy();this.packetBuffer=[],this.encoding=!1,this.lastPing=null,this.decoder.destroy()},d.prototype.close=d.prototype.disconnect=function(){l("disconnect"),this.skipReconnect=!0,this.reconnecting=!1,"opening"===this.readyState&&this.cleanup(),this.backoff.reset(),this.readyState="closed",this.engine&&this.engine.close()},d.prototype.onclose=function(t){l("onclose"),this.cleanup(),this.backoff.reset(),this.readyState="closed",this.emit("close",t),this._reconnection&&!this.skipReconnect&&this.reconnect()},d.prototype.reconnect=function(){if(this.reconnecting||this.skipReconnect)return this;var t=this;if(this.backoff.attempts>=this._reconnectionAttempts)l("reconnect failed"),this.backoff.reset(),this.emitAll("reconnect_failed"),this.reconnecting=!1;else{var e=this.backoff.duration();l("will wait %dms before reconnect attempt",e),this.reconnecting=!0;var n=setTimeout((function(){t.skipReconnect||(l("attempting reconnect"),t.emitAll("reconnect_attempt",t.backoff.attempts),t.emitAll("reconnecting",t.backoff.attempts),t.skipReconnect||t.open((function(e){e?(l("reconnect attempt error"),t.reconnecting=!1,t.reconnect(),t.emitAll("reconnect_error",e.data)):(l("reconnect success"),t.onreconnect())})))}),e);this.subs.push({destroy:function(){clearTimeout(n)}})}},d.prototype.onreconnect=function(){var t=this.backoff.attempts;this.reconnecting=!1,this.backoff.reset(),this.updateSocketIds(),this.emitAll("reconnect",t)}},function(t,e,n){var r=n(8),i=n(35),o=n(42),s=n(43);e.polling=function(t){var e=!1,n=!1,s=!1!==t.jsonp;if("undefined"!=typeof location){var a="https:"===location.protocol,c=location.port;c||(c=a?443:80),e=t.hostname!==location.hostname||c!==t.port,n=t.secure!==a}if(t.xdomain=e,t.xscheme=n,"open"in new r(t)&&!t.forceJSONP)return new i(t);if(!s)throw new Error("JSONP disabled");return new o(t)},e.websocket=s},function(t,e,n){var r=n(9),i=n(3),o=n(2),s=n(4),a=n(17),c=n(0)("engine.io-client:polling");t.exports=u;var l=null!=new(n(8))({xdomain:!1}).responseType;function u(t){var e=t&&t.forceBase64;l&&!e||(this.supportsBinary=!1),r.call(this,t)}s(u,r),u.prototype.name="polling",u.prototype.doOpen=function(){this.poll()},u.prototype.pause=function(t){var e=this;function n(){c("paused"),e.readyState="paused",t()}if(this.readyState="pausing",this.polling||!this.writable){var r=0;this.polling&&(c("we are currently polling - waiting to pause"),r++,this.once("pollComplete",(function(){c("pre-pause polling complete"),--r||n()}))),this.writable||(c("we are currently writing - waiting to pause"),r++,this.once("drain",(function(){c("pre-pause writing complete"),--r||n()})))}else n()},u.prototype.poll=function(){c("polling"),this.polling=!0,this.doPoll(),this.emit("poll")},u.prototype.onData=function(t){var e=this;c("polling got data %s",t),o.decodePayload(t,this.socket.binaryType,(function(t,n,r){if("opening"===e.readyState&&e.onOpen(),"close"===t.type)return e.onClose(),!1;e.onPacket(t)})),"closed"!==this.readyState&&(this.polling=!1,this.emit("pollComplete"),"open"===this.readyState?this.poll():c('ignoring poll - transport state "%s"',this.readyState))},u.prototype.doClose=function(){var t=this;function e(){c("writing close packet"),t.write([{type:"close"}])}"open"===this.readyState?(c("transport open - closing"),e()):(c("transport not open - deferring close"),this.once("open",e))},u.prototype.write=function(t){var e=this;this.writable=!1;var n=function(){e.writable=!0,e.emit("drain")};o.encodePayload(t,this.supportsBinary,(function(t){e.doWrite(t,n)}))},u.prototype.uri=function(){var t=this.query||{},e=this.secure?"https":"http",n="";return!1!==this.timestampRequests&&(t[this.timestampParam]=a()),this.supportsBinary||t.sid||(t.b64=1),t=i.encode(t),this.port&&("https"===e&&443!==Number(this.port)||"http"===e&&80!==Number(this.port))&&(n=":"+this.port),t.length&&(t="?"+t),e+"://"+(-1!==this.hostname.indexOf(":")?"["+this.hostname+"]":this.hostname)+n+this.path+t}},function(t,e,n){(function(e){var r=n(6),i=Object.prototype.toString,o="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===i.call(Blob),s="function"==typeof File||"undefined"!=typeof File&&"[object FileConstructor]"===i.call(File);t.exports=function t(n){if(!n||"object"!=typeof n)return!1;if(r(n)){for(var i=0,a=n.length;i<a;i++)if(t(n[i]))return!0;return!1}if("function"==typeof e&&e.isBuffer&&e.isBuffer(n)||"function"==typeof ArrayBuffer&&n instanceof ArrayBuffer||o&&n instanceof Blob||s&&n instanceof File)return!0;if(n.toJSON&&"function"==typeof n.toJSON&&1===arguments.length)return t(n.toJSON(),!0);for(var c in n)if(Object.prototype.hasOwnProperty.call(n,c)&&t(n[c]))return!0;return!1}}).call(this,n(7).Buffer)},function(t,e,n){"use strict";var r,i="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),o={},s=0,a=0;function c(t){var e="";do{e=i[t%64]+e,t=Math.floor(t/64)}while(t>0);return e}function l(){var t=c(+new Date);return t!==r?(s=0,r=t):t+"."+c(s++)}for(;a<64;a++)o[i[a]]=a;l.encode=c,l.decode=function(t){var e=0;for(a=0;a<t.length;a++)e=64*e+o[t.charAt(a)];return e},t.exports=l},function(t,e){var n=[].indexOf;t.exports=function(t,e){if(n)return t.indexOf(e);for(var r=0;r<t.length;++r)if(t[r]===e)return r;return-1}},function(t,e,n){var r=n(5),i=n(1),o=n(45),s=n(20),a=n(21),c=n(0)("socket.io-client:socket"),l=n(3),u=n(16);t.exports=d;var h={connect:1,connect_error:1,connect_timeout:1,connecting:1,disconnect:1,error:1,reconnect:1,reconnect_attempt:1,reconnect_failed:1,reconnect_error:1,reconnecting:1,ping:1,pong:1},p=i.prototype.emit;function d(t,e,n){this.io=t,this.nsp=e,this.json=this,this.ids=0,this.acks={},this.receiveBuffer=[],this.sendBuffer=[],this.connected=!1,this.disconnected=!0,this.flags={},n&&n.query&&(this.query=n.query),this.io.autoConnect&&this.open()}i(d.prototype),d.prototype.subEvents=function(){if(!this.subs){var t=this.io;this.subs=[s(t,"open",a(this,"onopen")),s(t,"packet",a(this,"onpacket")),s(t,"close",a(this,"onclose"))]}},d.prototype.open=d.prototype.connect=function(){return this.connected||(this.subEvents(),this.io.open(),"open"===this.io.readyState&&this.onopen(),this.emit("connecting")),this},d.prototype.send=function(){var t=o(arguments);return t.unshift("message"),this.emit.apply(this,t),this},d.prototype.emit=function(t){if(h.hasOwnProperty(t))return p.apply(this,arguments),this;var e=o(arguments),n={type:(void 0!==this.flags.binary?this.flags.binary:u(e))?r.BINARY_EVENT:r.EVENT,data:e,options:{}};return n.options.compress=!this.flags||!1!==this.flags.compress,"function"==typeof e[e.length-1]&&(c("emitting packet with ack id %d",this.ids),this.acks[this.ids]=e.pop(),n.id=this.ids++),this.connected?this.packet(n):this.sendBuffer.push(n),this.flags={},this},d.prototype.packet=function(t){t.nsp=this.nsp,this.io.packet(t)},d.prototype.onopen=function(){if(c("transport is open - connecting"),"/"!==this.nsp)if(this.query){var t="object"==typeof this.query?l.encode(this.query):this.query;c("sending connect packet with query %s",t),this.packet({type:r.CONNECT,query:t})}else this.packet({type:r.CONNECT})},d.prototype.onclose=function(t){c("close (%s)",t),this.connected=!1,this.disconnected=!0,delete this.id,this.emit("disconnect",t)},d.prototype.onpacket=function(t){var e=t.nsp===this.nsp,n=t.type===r.ERROR&&"/"===t.nsp;if(e||n)switch(t.type){case r.CONNECT:this.onconnect();break;case r.EVENT:case r.BINARY_EVENT:this.onevent(t);break;case r.ACK:case r.BINARY_ACK:this.onack(t);break;case r.DISCONNECT:this.ondisconnect();break;case r.ERROR:this.emit("error",t.data)}},d.prototype.onevent=function(t){var e=t.data||[];c("emitting event %j",e),null!=t.id&&(c("attaching ack callback to event"),e.push(this.ack(t.id))),this.connected?p.apply(this,e):this.receiveBuffer.push(e)},d.prototype.ack=function(t){var e=this,n=!1;return function(){if(!n){n=!0;var i=o(arguments);c("sending ack %j",i),e.packet({type:u(i)?r.BINARY_ACK:r.ACK,id:t,data:i})}}},d.prototype.onack=function(t){var e=this.acks[t.id];"function"==typeof e?(c("calling ack %s with %j",t.id,t.data),e.apply(this,t.data),delete this.acks[t.id]):c("bad ack %s",t.id)},d.prototype.onconnect=function(){this.connected=!0,this.disconnected=!1,this.emit("connect"),this.emitBuffered()},d.prototype.emitBuffered=function(){var t;for(t=0;t<this.receiveBuffer.length;t++)p.apply(this,this.receiveBuffer[t]);for(this.receiveBuffer=[],t=0;t<this.sendBuffer.length;t++)this.packet(this.sendBuffer[t]);this.sendBuffer=[]},d.prototype.ondisconnect=function(){c("server disconnect (%s)",this.nsp),this.destroy(),this.onclose("io server disconnect")},d.prototype.destroy=function(){if(this.subs){for(var t=0;t<this.subs.length;t++)this.subs[t].destroy();this.subs=null}this.io.destroy(this)},d.prototype.close=d.prototype.disconnect=function(){return this.connected&&(c("performing disconnect (%s)",this.nsp),this.packet({type:r.DISCONNECT})),this.destroy(),this.connected&&this.onclose("io client disconnect"),this},d.prototype.compress=function(t){return this.flags.compress=t,this},d.prototype.binary=function(t){return this.flags.binary=t,this}},function(t,e){t.exports=function(t,e,n){return t.on(e,n),{destroy:function(){t.removeListener(e,n)}}}},function(t,e){var n=[].slice;t.exports=function(t,e){if("string"==typeof e&&(e=t[e]),"function"!=typeof e)throw new Error("bind() requires a function");var r=n.call(arguments,2);return function(){return e.apply(t,r.concat(n.call(arguments)))}}},function(t,e,n){var r=n(24),i=n(5),o=n(13),s=n(0)("socket.io-client");t.exports=e=c;var a=e.managers={};function c(t,e){"object"==typeof t&&(e=t,t=void 0),e=e||{};var n,i=r(t),c=i.source,l=i.id,u=i.path,h=a[l]&&u in a[l].nsps;return e.forceNew||e["force new connection"]||!1===e.multiplex||h?(s("ignoring socket cache for %s",c),n=o(c,e)):(a[l]||(s("new io instance for %s",c),a[l]=o(c,e)),n=a[l]),i.query&&!e.query&&(e.query=i.query),n.socket(i.path,e)}e.protocol=i.protocol,e.connect=c,e.Manager=n(13),e.Socket=n(19)},function(t,e,n){t.exports=n(47)},function(t,e,n){var r=n(10),i=n(0)("socket.io-client:url");t.exports=function(t,e){var n=t;e=e||"undefined"!=typeof location&&location,null==t&&(t=e.protocol+"//"+e.host),"string"==typeof t&&("/"===t.charAt(0)&&(t="/"===t.charAt(1)?e.protocol+t:e.host+t),/^(https?|wss?):\/\//.test(t)||(i("protocol-less url %s",t),t=void 0!==e?e.protocol+"//"+t:"https://"+t),i("parse %s",t),n=r(t)),n.port||(/^(http|ws)$/.test(n.protocol)?n.port="80":/^(http|ws)s$/.test(n.protocol)&&(n.port="443")),n.path=n.path||"/";var o=-1!==n.host.indexOf(":")?"["+n.host+"]":n.host;return n.id=n.protocol+"://"+o+":"+n.port,n.href=n.protocol+"://"+o+(e&&e.port===n.port?"":":"+n.port),n}},function(t,e){var n,r,i=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function a(t){if(n===setTimeout)return setTimeout(t,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(t){n=o}try{r="function"==typeof clearTimeout?clearTimeout:s}catch(t){r=s}}();var c,l=[],u=!1,h=-1;function p(){u&&c&&(u=!1,c.length?l=c.concat(l):h=-1,l.length&&d())}function d(){if(!u){var t=a(p);u=!0;for(var e=l.length;e;){for(c=l,l=[];++h<e;)c&&c[h].run();h=-1,e=l.length}c=null,u=!1,function(t){if(r===clearTimeout)return clearTimeout(t);if((r===s||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(t);try{r(t)}catch(e){try{return r.call(null,t)}catch(e){return r.call(this,t)}}}(t)}}function f(t,e){this.fun=t,this.array=e}function g(){}i.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];l.push(new f(t,e)),1!==l.length||u||a(d)},f.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=g,i.addListener=g,i.once=g,i.off=g,i.removeListener=g,i.removeAllListeners=g,i.emit=g,i.prependListener=g,i.prependOnceListener=g,i.listeners=function(t){return[]},i.binding=function(t){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(t){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(t,e,n){function r(t){var n;function r(){if(r.enabled){var t=r,i=+new Date,o=i-(n||i);t.diff=o,t.prev=n,t.curr=i,n=i;for(var s=new Array(arguments.length),a=0;a<s.length;a++)s[a]=arguments[a];s[0]=e.coerce(s[0]),"string"!=typeof s[0]&&s.unshift("%O");var c=0;s[0]=s[0].replace(/%([a-zA-Z%])/g,(function(n,r){if("%%"===n)return n;c++;var i=e.formatters[r];if("function"==typeof i){var o=s[c];n=i.call(t,o),s.splice(c,1),c--}return n})),e.formatArgs.call(t,s),(r.log||e.log||console.log.bind(console)).apply(t,s)}}return r.namespace=t,r.enabled=e.enabled(t),r.useColors=e.useColors(),r.color=function(t){var n,r=0;for(n in t)r=(r<<5)-r+t.charCodeAt(n),r|=0;return e.colors[Math.abs(r)%e.colors.length]}(t),r.destroy=i,"function"==typeof e.init&&e.init(r),e.instances.push(r),r}function i(){var t=e.instances.indexOf(this);return-1!==t&&(e.instances.splice(t,1),!0)}(e=t.exports=r.debug=r.default=r).coerce=function(t){return t instanceof Error?t.stack||t.message:t},e.disable=function(){e.enable("")},e.enable=function(t){var n;e.save(t),e.names=[],e.skips=[];var r=("string"==typeof t?t:"").split(/[\s,]+/),i=r.length;for(n=0;n<i;n++)r[n]&&("-"===(t=r[n].replace(/\*/g,".*?"))[0]?e.skips.push(new RegExp("^"+t.substr(1)+"$")):e.names.push(new RegExp("^"+t+"$")));for(n=0;n<e.instances.length;n++){var o=e.instances[n];o.enabled=e.enabled(o.namespace)}},e.enabled=function(t){if("*"===t[t.length-1])return!0;var n,r;for(n=0,r=e.skips.length;n<r;n++)if(e.skips[n].test(t))return!1;for(n=0,r=e.names.length;n<r;n++)if(e.names[n].test(t))return!0;return!1},e.humanize=n(27),e.instances=[],e.names=[],e.skips=[],e.formatters={}},function(t,e){var n=1e3,r=60*n,i=60*r,o=24*i;function s(t,e,n){if(!(t<e))return t<1.5*e?Math.floor(t/e)+" "+n:Math.ceil(t/e)+" "+n+"s"}t.exports=function(t,e){e=e||{};var a,c=typeof t;if("string"===c&&t.length>0)return function(t){if(!((t=String(t)).length>100)){var e=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(t);if(e){var s=parseFloat(e[1]);switch((e[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*s;case"days":case"day":case"d":return s*o;case"hours":case"hour":case"hrs":case"hr":case"h":return s*i;case"minutes":case"minute":case"mins":case"min":case"m":return s*r;case"seconds":case"second":case"secs":case"sec":case"s":return s*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return s;default:return}}}}(t);if("number"===c&&!1===isNaN(t))return e.long?s(a=t,o,"day")||s(a,i,"hour")||s(a,r,"minute")||s(a,n,"second")||a+" ms":function(t){return t>=o?Math.round(t/o)+"d":t>=i?Math.round(t/i)+"h":t>=r?Math.round(t/r)+"m":t>=n?Math.round(t/n)+"s":t+"ms"}(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))}},function(t,e,n){var r=n(6),i=n(11),o=Object.prototype.toString,s="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===o.call(Blob),a="function"==typeof File||"undefined"!=typeof File&&"[object FileConstructor]"===o.call(File);e.deconstructPacket=function(t){var e=[],n=t.data,o=t;return o.data=function t(e,n){if(!e)return e;if(i(e)){var o={_placeholder:!0,num:n.length};return n.push(e),o}if(r(e)){for(var s=new Array(e.length),a=0;a<e.length;a++)s[a]=t(e[a],n);return s}if("object"==typeof e&&!(e instanceof Date)){for(var c in s={},e)s[c]=t(e[c],n);return s}return e}(n,e),o.attachments=e.length,{packet:o,buffers:e}},e.reconstructPacket=function(t,e){return t.data=function t(e,n){if(!e)return e;if(e&&e._placeholder)return n[e.num];if(r(e))for(var i=0;i<e.length;i++)e[i]=t(e[i],n);else if("object"==typeof e)for(var o in e)e[o]=t(e[o],n);return e}(t.data,e),t.attachments=void 0,t},e.removeBlobs=function(t,e){var n=0,o=t;!function t(c,l,u){if(!c)return c;if(s&&c instanceof Blob||a&&c instanceof File){n++;var h=new FileReader;h.onload=function(){u?u[l]=this.result:o=this.result,--n||e(o)},h.readAsArrayBuffer(c)}else if(r(c))for(var p=0;p<c.length;p++)t(c[p],p,c);else if("object"==typeof c&&!i(c))for(var d in c)t(c[d],d,c)}(o),n||e(o)}},function(t,e,n){"use strict";e.byteLength=function(t){var e=l(t),n=e[0],r=e[1];return 3*(n+r)/4-r},e.toByteArray=function(t){for(var e,n=l(t),r=n[0],s=n[1],a=new o(function(t,e,n){return 3*(e+n)/4-n}(0,r,s)),c=0,u=s>0?r-4:r,h=0;h<u;h+=4)e=i[t.charCodeAt(h)]<<18|i[t.charCodeAt(h+1)]<<12|i[t.charCodeAt(h+2)]<<6|i[t.charCodeAt(h+3)],a[c++]=e>>16&255,a[c++]=e>>8&255,a[c++]=255&e;return 2===s&&(e=i[t.charCodeAt(h)]<<2|i[t.charCodeAt(h+1)]>>4,a[c++]=255&e),1===s&&(e=i[t.charCodeAt(h)]<<10|i[t.charCodeAt(h+1)]<<4|i[t.charCodeAt(h+2)]>>2,a[c++]=e>>8&255,a[c++]=255&e),a},e.fromByteArray=function(t){for(var e,n=t.length,i=n%3,o=[],s=0,a=n-i;s<a;s+=16383)o.push(u(t,s,s+16383>a?a:s+16383));return 1===i?(e=t[n-1],o.push(r[e>>2]+r[e<<4&63]+"==")):2===i&&(e=(t[n-2]<<8)+t[n-1],o.push(r[e>>10]+r[e>>4&63]+r[e<<2&63]+"=")),o.join("")};for(var r=[],i=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,c=s.length;a<c;++a)r[a]=s[a],i[s.charCodeAt(a)]=a;function l(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");return-1===n&&(n=e),[n,n===e?0:4-n%4]}function u(t,e,n){for(var i,o,s=[],a=e;a<n;a+=3)i=(t[a]<<16&16711680)+(t[a+1]<<8&65280)+(255&t[a+2]),s.push(r[(o=i)>>18&63]+r[o>>12&63]+r[o>>6&63]+r[63&o]);return s.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},function(t,e){e.read=function(t,e,n,r,i){var o,s,a=8*i-r-1,c=(1<<a)-1,l=c>>1,u=-7,h=n?i-1:0,p=n?-1:1,d=t[e+h];for(h+=p,o=d&(1<<-u)-1,d>>=-u,u+=a;u>0;o=256*o+t[e+h],h+=p,u-=8);for(s=o&(1<<-u)-1,o>>=-u,u+=r;u>0;s=256*s+t[e+h],h+=p,u-=8);if(0===o)o=1-l;else{if(o===c)return s?NaN:1/0*(d?-1:1);s+=Math.pow(2,r),o-=l}return(d?-1:1)*s*Math.pow(2,o-r)},e.write=function(t,e,n,r,i,o){var s,a,c,l=8*o-i-1,u=(1<<l)-1,h=u>>1,p=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:o-1,f=r?1:-1,g=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,s=u):(s=Math.floor(Math.log(e)/Math.LN2),e*(c=Math.pow(2,-s))<1&&(s--,c*=2),(e+=s+h>=1?p/c:p*Math.pow(2,1-h))*c>=2&&(s++,c/=2),s+h>=u?(a=0,s=u):s+h>=1?(a=(e*c-1)*Math.pow(2,i),s+=h):(a=e*Math.pow(2,h-1)*Math.pow(2,i),s=0));i>=8;t[n+d]=255&a,d+=f,a/=256,i-=8);for(s=s<<i|a,l+=i;l>0;t[n+d]=255&s,d+=f,s/=256,l-=8);t[n+d-f]|=128*g}},function(t,e){var n={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},function(t,e,n){t.exports=n(33),t.exports.parser=n(2)},function(t,e,n){var r=n(14),i=n(1),o=n(0)("engine.io-client:socket"),s=n(18),a=n(2),c=n(10),l=n(3);function u(t,e){if(!(this instanceof u))return new u(t,e);e=e||{},t&&"object"==typeof t&&(e=t,t=null),t?(t=c(t),e.hostname=t.host,e.secure="https"===t.protocol||"wss"===t.protocol,e.port=t.port,t.query&&(e.query=t.query)):e.host&&(e.hostname=c(e.host).host),this.secure=null!=e.secure?e.secure:"undefined"!=typeof location&&"https:"===location.protocol,e.hostname&&!e.port&&(e.port=this.secure?"443":"80"),this.agent=e.agent||!1,this.hostname=e.hostname||("undefined"!=typeof location?location.hostname:"localhost"),this.port=e.port||("undefined"!=typeof location&&location.port?location.port:this.secure?443:80),this.query=e.query||{},"string"==typeof this.query&&(this.query=l.decode(this.query)),this.upgrade=!1!==e.upgrade,this.path=(e.path||"/engine.io").replace(/\/$/,"")+"/",this.forceJSONP=!!e.forceJSONP,this.jsonp=!1!==e.jsonp,this.forceBase64=!!e.forceBase64,this.enablesXDR=!!e.enablesXDR,this.timestampParam=e.timestampParam||"t",this.timestampRequests=e.timestampRequests,this.transports=e.transports||["polling","websocket"],this.transportOptions=e.transportOptions||{},this.readyState="",this.writeBuffer=[],this.prevBufferLen=0,this.policyPort=e.policyPort||843,this.rememberUpgrade=e.rememberUpgrade||!1,this.binaryType=null,this.onlyBinaryUpgrades=e.onlyBinaryUpgrades,this.perMessageDeflate=!1!==e.perMessageDeflate&&(e.perMessageDeflate||{}),!0===this.perMessageDeflate&&(this.perMessageDeflate={}),this.perMessageDeflate&&null==this.perMessageDeflate.threshold&&(this.perMessageDeflate.threshold=1024),this.pfx=e.pfx||null,this.key=e.key||null,this.passphrase=e.passphrase||null,this.cert=e.cert||null,this.ca=e.ca||null,this.ciphers=e.ciphers||null,this.rejectUnauthorized=void 0===e.rejectUnauthorized||e.rejectUnauthorized,this.forceNode=!!e.forceNode,this.isReactNative="undefined"!=typeof navigator&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase(),("undefined"==typeof self||this.isReactNative)&&(e.extraHeaders&&Object.keys(e.extraHeaders).length>0&&(this.extraHeaders=e.extraHeaders),e.localAddress&&(this.localAddress=e.localAddress)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingIntervalTimer=null,this.pingTimeoutTimer=null,this.open()}t.exports=u,u.priorWebsocketSuccess=!1,i(u.prototype),u.protocol=a.protocol,u.Socket=u,u.Transport=n(9),u.transports=n(14),u.parser=n(2),u.prototype.createTransport=function(t){o('creating transport "%s"',t);var e=function(t){var e={};for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}(this.query);e.EIO=a.protocol,e.transport=t;var n=this.transportOptions[t]||{};return this.id&&(e.sid=this.id),new r[t]({query:e,socket:this,agent:n.agent||this.agent,hostname:n.hostname||this.hostname,port:n.port||this.port,secure:n.secure||this.secure,path:n.path||this.path,forceJSONP:n.forceJSONP||this.forceJSONP,jsonp:n.jsonp||this.jsonp,forceBase64:n.forceBase64||this.forceBase64,enablesXDR:n.enablesXDR||this.enablesXDR,timestampRequests:n.timestampRequests||this.timestampRequests,timestampParam:n.timestampParam||this.timestampParam,policyPort:n.policyPort||this.policyPort,pfx:n.pfx||this.pfx,key:n.key||this.key,passphrase:n.passphrase||this.passphrase,cert:n.cert||this.cert,ca:n.ca||this.ca,ciphers:n.ciphers||this.ciphers,rejectUnauthorized:n.rejectUnauthorized||this.rejectUnauthorized,perMessageDeflate:n.perMessageDeflate||this.perMessageDeflate,extraHeaders:n.extraHeaders||this.extraHeaders,forceNode:n.forceNode||this.forceNode,localAddress:n.localAddress||this.localAddress,requestTimeout:n.requestTimeout||this.requestTimeout,protocols:n.protocols||void 0,isReactNative:this.isReactNative})},u.prototype.open=function(){var t;if(this.rememberUpgrade&&u.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket"))t="websocket";else{if(0===this.transports.length){var e=this;return void setTimeout((function(){e.emit("error","No transports available")}),0)}t=this.transports[0]}this.readyState="opening";try{t=this.createTransport(t)}catch(t){return this.transports.shift(),void this.open()}t.open(),this.setTransport(t)},u.prototype.setTransport=function(t){o("setting transport %s",t.name);var e=this;this.transport&&(o("clearing existing transport %s",this.transport.name),this.transport.removeAllListeners()),this.transport=t,t.on("drain",(function(){e.onDrain()})).on("packet",(function(t){e.onPacket(t)})).on("error",(function(t){e.onError(t)})).on("close",(function(){e.onClose("transport close")}))},u.prototype.probe=function(t){o('probing transport "%s"',t);var e=this.createTransport(t,{probe:1}),n=!1,r=this;function i(){if(r.onlyBinaryUpgrades){var i=!this.supportsBinary&&r.transport.supportsBinary;n=n||i}n||(o('probe transport "%s" opened',t),e.send([{type:"ping",data:"probe"}]),e.once("packet",(function(i){if(!n)if("pong"===i.type&&"probe"===i.data){if(o('probe transport "%s" pong',t),r.upgrading=!0,r.emit("upgrading",e),!e)return;u.priorWebsocketSuccess="websocket"===e.name,o('pausing current transport "%s"',r.transport.name),r.transport.pause((function(){n||"closed"!==r.readyState&&(o("changing transport and sending upgrade packet"),p(),r.setTransport(e),e.send([{type:"upgrade"}]),r.emit("upgrade",e),e=null,r.upgrading=!1,r.flush())}))}else{o('probe transport "%s" failed',t);var s=new Error("probe error");s.transport=e.name,r.emit("upgradeError",s)}})))}function s(){n||(n=!0,p(),e.close(),e=null)}function a(n){var i=new Error("probe error: "+n);i.transport=e.name,s(),o('probe transport "%s" failed because of error: %s',t,n),r.emit("upgradeError",i)}function c(){a("transport closed")}function l(){a("socket closed")}function h(t){e&&t.name!==e.name&&(o('"%s" works - aborting "%s"',t.name,e.name),s())}function p(){e.removeListener("open",i),e.removeListener("error",a),e.removeListener("close",c),r.removeListener("close",l),r.removeListener("upgrading",h)}u.priorWebsocketSuccess=!1,e.once("open",i),e.once("error",a),e.once("close",c),this.once("close",l),this.once("upgrading",h),e.open()},u.prototype.onOpen=function(){if(o("socket open"),this.readyState="open",u.priorWebsocketSuccess="websocket"===this.transport.name,this.emit("open"),this.flush(),"open"===this.readyState&&this.upgrade&&this.transport.pause){o("starting upgrade probes");for(var t=0,e=this.upgrades.length;t<e;t++)this.probe(this.upgrades[t])}},u.prototype.onPacket=function(t){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState)switch(o('socket receive: type "%s", data "%s"',t.type,t.data),this.emit("packet",t),this.emit("heartbeat"),t.type){case"open":this.onHandshake(JSON.parse(t.data));break;case"pong":this.setPing(),this.emit("pong");break;case"error":var e=new Error("server error");e.code=t.data,this.onError(e);break;case"message":this.emit("data",t.data),this.emit("message",t.data)}else o('packet received with socket readyState "%s"',this.readyState)},u.prototype.onHandshake=function(t){this.emit("handshake",t),this.id=t.sid,this.transport.query.sid=t.sid,this.upgrades=this.filterUpgrades(t.upgrades),this.pingInterval=t.pingInterval,this.pingTimeout=t.pingTimeout,this.onOpen(),"closed"!==this.readyState&&(this.setPing(),this.removeListener("heartbeat",this.onHeartbeat),this.on("heartbeat",this.onHeartbeat))},u.prototype.onHeartbeat=function(t){clearTimeout(this.pingTimeoutTimer);var e=this;e.pingTimeoutTimer=setTimeout((function(){"closed"!==e.readyState&&e.onClose("ping timeout")}),t||e.pingInterval+e.pingTimeout)},u.prototype.setPing=function(){var t=this;clearTimeout(t.pingIntervalTimer),t.pingIntervalTimer=setTimeout((function(){o("writing ping packet - expecting pong within %sms",t.pingTimeout),t.ping(),t.onHeartbeat(t.pingTimeout)}),t.pingInterval)},u.prototype.ping=function(){var t=this;this.sendPacket("ping",(function(){t.emit("ping")}))},u.prototype.onDrain=function(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,0===this.writeBuffer.length?this.emit("drain"):this.flush()},u.prototype.flush=function(){"closed"!==this.readyState&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length&&(o("flushing %d packets in socket",this.writeBuffer.length),this.transport.send(this.writeBuffer),this.prevBufferLen=this.writeBuffer.length,this.emit("flush"))},u.prototype.write=u.prototype.send=function(t,e,n){return this.sendPacket("message",t,e,n),this},u.prototype.sendPacket=function(t,e,n,r){if("function"==typeof e&&(r=e,e=void 0),"function"==typeof n&&(r=n,n=null),"closing"!==this.readyState&&"closed"!==this.readyState){(n=n||{}).compress=!1!==n.compress;var i={type:t,data:e,options:n};this.emit("packetCreate",i),this.writeBuffer.push(i),r&&this.once("flush",r),this.flush()}},u.prototype.close=function(){if("opening"===this.readyState||"open"===this.readyState){this.readyState="closing";var t=this;this.writeBuffer.length?this.once("drain",(function(){this.upgrading?r():e()})):this.upgrading?r():e()}function e(){t.onClose("forced close"),o("socket closing - telling transport to close"),t.transport.close()}function n(){t.removeListener("upgrade",n),t.removeListener("upgradeError",n),e()}function r(){t.once("upgrade",n),t.once("upgradeError",n)}return this},u.prototype.onError=function(t){o("socket error %j",t),u.priorWebsocketSuccess=!1,this.emit("error",t),this.onClose("transport error",t)},u.prototype.onClose=function(t,e){"opening"!==this.readyState&&"open"!==this.readyState&&"closing"!==this.readyState||(o('socket close with reason: "%s"',t),clearTimeout(this.pingIntervalTimer),clearTimeout(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),this.readyState="closed",this.id=null,this.emit("close",t,e),this.writeBuffer=[],this.prevBufferLen=0)},u.prototype.filterUpgrades=function(t){for(var e=[],n=0,r=t.length;n<r;n++)~s(this.transports,t[n])&&e.push(t[n]);return e}},function(t,e){try{t.exports="undefined"!=typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(e){t.exports=!1}},function(t,e,n){var r=n(8),i=n(15),o=n(1),s=n(4),a=n(0)("engine.io-client:polling-xhr");function c(){}function l(t){if(i.call(this,t),this.requestTimeout=t.requestTimeout,this.extraHeaders=t.extraHeaders,"undefined"!=typeof location){var e="https:"===location.protocol,n=location.port;n||(n=e?443:80),this.xd="undefined"!=typeof location&&t.hostname!==location.hostname||n!==t.port,this.xs=t.secure!==e}}function u(t){this.method=t.method||"GET",this.uri=t.uri,this.xd=!!t.xd,this.xs=!!t.xs,this.async=!1!==t.async,this.data=void 0!==t.data?t.data:null,this.agent=t.agent,this.isBinary=t.isBinary,this.supportsBinary=t.supportsBinary,this.enablesXDR=t.enablesXDR,this.requestTimeout=t.requestTimeout,this.pfx=t.pfx,this.key=t.key,this.passphrase=t.passphrase,this.cert=t.cert,this.ca=t.ca,this.ciphers=t.ciphers,this.rejectUnauthorized=t.rejectUnauthorized,this.extraHeaders=t.extraHeaders,this.create()}if(t.exports=l,t.exports.Request=u,s(l,i),l.prototype.supportsBinary=!0,l.prototype.request=function(t){return(t=t||{}).uri=this.uri(),t.xd=this.xd,t.xs=this.xs,t.agent=this.agent||!1,t.supportsBinary=this.supportsBinary,t.enablesXDR=this.enablesXDR,t.pfx=this.pfx,t.key=this.key,t.passphrase=this.passphrase,t.cert=this.cert,t.ca=this.ca,t.ciphers=this.ciphers,t.rejectUnauthorized=this.rejectUnauthorized,t.requestTimeout=this.requestTimeout,t.extraHeaders=this.extraHeaders,new u(t)},l.prototype.doWrite=function(t,e){var n="string"!=typeof t&&void 0!==t,r=this.request({method:"POST",data:t,isBinary:n}),i=this;r.on("success",e),r.on("error",(function(t){i.onError("xhr post error",t)})),this.sendXhr=r},l.prototype.doPoll=function(){a("xhr poll");var t=this.request(),e=this;t.on("data",(function(t){e.onData(t)})),t.on("error",(function(t){e.onError("xhr poll error",t)})),this.pollXhr=t},o(u.prototype),u.prototype.create=function(){var t={agent:this.agent,xdomain:this.xd,xscheme:this.xs,enablesXDR:this.enablesXDR};t.pfx=this.pfx,t.key=this.key,t.passphrase=this.passphrase,t.cert=this.cert,t.ca=this.ca,t.ciphers=this.ciphers,t.rejectUnauthorized=this.rejectUnauthorized;var e=this.xhr=new r(t),n=this;try{a("xhr open %s: %s",this.method,this.uri),e.open(this.method,this.uri,this.async);try{if(this.extraHeaders)for(var i in e.setDisableHeaderCheck&&e.setDisableHeaderCheck(!0),this.extraHeaders)this.extraHeaders.hasOwnProperty(i)&&e.setRequestHeader(i,this.extraHeaders[i])}catch(t){}if("POST"===this.method)try{this.isBinary?e.setRequestHeader("Content-type","application/octet-stream"):e.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(t){}try{e.setRequestHeader("Accept","*/*")}catch(t){}"withCredentials"in e&&(e.withCredentials=!0),this.requestTimeout&&(e.timeout=this.requestTimeout),this.hasXDR()?(e.onload=function(){n.onLoad()},e.onerror=function(){n.onError(e.responseText)}):e.onreadystatechange=function(){if(2===e.readyState)try{var t=e.getResponseHeader("Content-Type");n.supportsBinary&&"application/octet-stream"===t&&(e.responseType="arraybuffer")}catch(t){}4===e.readyState&&(200===e.status||1223===e.status?n.onLoad():setTimeout((function(){n.onError(e.status)}),0))},a("xhr data %s",this.data),e.send(this.data)}catch(t){return void setTimeout((function(){n.onError(t)}),0)}"undefined"!=typeof document&&(this.index=u.requestsCount++,u.requests[this.index]=this)},u.prototype.onSuccess=function(){this.emit("success"),this.cleanup()},u.prototype.onData=function(t){this.emit("data",t),this.onSuccess()},u.prototype.onError=function(t){this.emit("error",t),this.cleanup(!0)},u.prototype.cleanup=function(t){if(void 0!==this.xhr&&null!==this.xhr){if(this.hasXDR()?this.xhr.onload=this.xhr.onerror=c:this.xhr.onreadystatechange=c,t)try{this.xhr.abort()}catch(t){}"undefined"!=typeof document&&delete u.requests[this.index],this.xhr=null}},u.prototype.onLoad=function(){var t;try{var e;try{e=this.xhr.getResponseHeader("Content-Type")}catch(t){}t="application/octet-stream"===e&&this.xhr.response||this.xhr.responseText}catch(t){this.onError(t)}null!=t&&this.onData(t)},u.prototype.hasXDR=function(){return"undefined"!=typeof XDomainRequest&&!this.xs&&this.enablesXDR},u.prototype.abort=function(){this.cleanup()},u.requestsCount=0,u.requests={},"undefined"!=typeof document)if("function"==typeof attachEvent)attachEvent("onunload",p);else if("function"==typeof addEventListener){var h="onpagehide"in self?"pagehide":"unload";addEventListener(h,p,!1)}function p(){for(var t in u.requests)u.requests.hasOwnProperty(t)&&u.requests[t].abort()}},function(t,e){t.exports=Object.keys||function(t){var e=[],n=Object.prototype.hasOwnProperty;for(var r in t)n.call(t,r)&&e.push(r);return e}},function(t,e){t.exports=function(t,e,n){var r=t.byteLength;if(e=e||0,n=n||r,t.slice)return t.slice(e,n);if(e<0&&(e+=r),n<0&&(n+=r),n>r&&(n=r),e>=r||e>=n||0===r)return new ArrayBuffer(0);for(var i=new Uint8Array(t),o=new Uint8Array(n-e),s=e,a=0;s<n;s++,a++)o[a]=i[s];return o.buffer}},function(t,e){function n(){}t.exports=function(t,e,r){var i=!1;return r=r||n,o.count=t,0===t?e():o;function o(t,n){if(o.count<=0)throw new Error("after called too many times");--o.count,t?(i=!0,e(t),e=r):0!==o.count||i||e(null,n)}}},function(t,e){var n,r,i,o=String.fromCharCode;function s(t){for(var e,n,r=[],i=0,o=t.length;i<o;)(e=t.charCodeAt(i++))>=55296&&e<=56319&&i<o?56320==(64512&(n=t.charCodeAt(i++)))?r.push(((1023&e)<<10)+(1023&n)+65536):(r.push(e),i--):r.push(e);return r}function a(t,e){if(t>=55296&&t<=57343){if(e)throw Error("Lone surrogate U+"+t.toString(16).toUpperCase()+" is not a scalar value");return!1}return!0}function c(t,e){return o(t>>e&63|128)}function l(t,e){if(0==(4294967168&t))return o(t);var n="";return 0==(4294965248&t)?n=o(t>>6&31|192):0==(4294901760&t)?(a(t,e)||(t=65533),n=o(t>>12&15|224),n+=c(t,6)):0==(4292870144&t)&&(n=o(t>>18&7|240),n+=c(t,12),n+=c(t,6)),n+o(63&t|128)}function u(){if(i>=r)throw Error("Invalid byte index");var t=255&n[i];if(i++,128==(192&t))return 63&t;throw Error("Invalid continuation byte")}function h(t){var e,o;if(i>r)throw Error("Invalid byte index");if(i==r)return!1;if(e=255&n[i],i++,0==(128&e))return e;if(192==(224&e)){if((o=(31&e)<<6|u())>=128)return o;throw Error("Invalid continuation byte")}if(224==(240&e)){if((o=(15&e)<<12|u()<<6|u())>=2048)return a(o,t)?o:65533;throw Error("Invalid continuation byte")}if(240==(248&e)&&(o=(7&e)<<18|u()<<12|u()<<6|u())>=65536&&o<=1114111)return o;throw Error("Invalid UTF-8 detected")}t.exports={version:"2.1.2",encode:function(t,e){for(var n=!1!==(e=e||{}).strict,r=s(t),i=r.length,o=-1,a="";++o<i;)a+=l(r[o],n);return a},decode:function(t,e){var a=!1!==(e=e||{}).strict;n=s(t),r=n.length,i=0;for(var c,l=[];!1!==(c=h(a));)l.push(c);return function(t){for(var e,n=t.length,r=-1,i="";++r<n;)(e=t[r])>65535&&(i+=o((e-=65536)>>>10&1023|55296),e=56320|1023&e),i+=o(e);return i}(l)}}},function(t,e){!function(){"use strict";for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n=new Uint8Array(256),r=0;r<t.length;r++)n[t.charCodeAt(r)]=r;e.encode=function(e){var n,r=new Uint8Array(e),i=r.length,o="";for(n=0;n<i;n+=3)o+=t[r[n]>>2],o+=t[(3&r[n])<<4|r[n+1]>>4],o+=t[(15&r[n+1])<<2|r[n+2]>>6],o+=t[63&r[n+2]];return i%3==2?o=o.substring(0,o.length-1)+"=":i%3==1&&(o=o.substring(0,o.length-2)+"=="),o},e.decode=function(t){var e,r,i,o,s,a=.75*t.length,c=t.length,l=0;"="===t[t.length-1]&&(a--,"="===t[t.length-2]&&a--);var u=new ArrayBuffer(a),h=new Uint8Array(u);for(e=0;e<c;e+=4)r=n[t.charCodeAt(e)],i=n[t.charCodeAt(e+1)],o=n[t.charCodeAt(e+2)],s=n[t.charCodeAt(e+3)],h[l++]=r<<2|i>>4,h[l++]=(15&i)<<4|o>>2,h[l++]=(3&o)<<6|63&s;return u}}()},function(t,e){var n=void 0!==n?n:"undefined"!=typeof WebKitBlobBuilder?WebKitBlobBuilder:"undefined"!=typeof MSBlobBuilder?MSBlobBuilder:"undefined"!=typeof MozBlobBuilder&&MozBlobBuilder,r=function(){try{return 2===new Blob(["hi"]).size}catch(t){return!1}}(),i=r&&function(){try{return 2===new Blob([new Uint8Array([1,2])]).size}catch(t){return!1}}(),o=n&&n.prototype.append&&n.prototype.getBlob;function s(t){return t.map((function(t){if(t.buffer instanceof ArrayBuffer){var e=t.buffer;if(t.byteLength!==e.byteLength){var n=new Uint8Array(t.byteLength);n.set(new Uint8Array(e,t.byteOffset,t.byteLength)),e=n.buffer}return e}return t}))}function a(t,e){e=e||{};var r=new n;return s(t).forEach((function(t){r.append(t)})),e.type?r.getBlob(e.type):r.getBlob()}function c(t,e){return new Blob(s(t),e||{})}"undefined"!=typeof Blob&&(a.prototype=Blob.prototype,c.prototype=Blob.prototype),t.exports=r?i?Blob:c:o?a:void 0},function(t,e,n){(function(e){var r=n(15),i=n(4);t.exports=u;var o,s=/\n/g,a=/\\n/g;function c(){}function l(){return"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==e?e:{}}function u(t){if(r.call(this,t),this.query=this.query||{},!o){var e=l();o=e.___eio=e.___eio||[]}this.index=o.length;var n=this;o.push((function(t){n.onData(t)})),this.query.j=this.index,"function"==typeof addEventListener&&addEventListener("beforeunload",(function(){n.script&&(n.script.onerror=c)}),!1)}i(u,r),u.prototype.supportsBinary=!1,u.prototype.doClose=function(){this.script&&(this.script.parentNode.removeChild(this.script),this.script=null),this.form&&(this.form.parentNode.removeChild(this.form),this.form=null,this.iframe=null),r.prototype.doClose.call(this)},u.prototype.doPoll=function(){var t=this,e=document.createElement("script");this.script&&(this.script.parentNode.removeChild(this.script),this.script=null),e.async=!0,e.src=this.uri(),e.onerror=function(e){t.onError("jsonp poll error",e)};var n=document.getElementsByTagName("script")[0];n?n.parentNode.insertBefore(e,n):(document.head||document.body).appendChild(e),this.script=e,"undefined"!=typeof navigator&&/gecko/i.test(navigator.userAgent)&&setTimeout((function(){var t=document.createElement("iframe");document.body.appendChild(t),document.body.removeChild(t)}),100)},u.prototype.doWrite=function(t,e){var n=this;if(!this.form){var r,i=document.createElement("form"),o=document.createElement("textarea"),c=this.iframeId="eio_iframe_"+this.index;i.className="socketio",i.style.position="absolute",i.style.top="-1000px",i.style.left="-1000px",i.target=c,i.method="POST",i.setAttribute("accept-charset","utf-8"),o.name="d",i.appendChild(o),document.body.appendChild(i),this.form=i,this.area=o}function l(){u(),e()}function u(){if(n.iframe)try{n.form.removeChild(n.iframe)}catch(t){n.onError("jsonp polling iframe removal error",t)}try{var t='<iframe src="javascript:0" name="'+n.iframeId+'">';r=document.createElement(t)}catch(t){(r=document.createElement("iframe")).name=n.iframeId,r.src="javascript:0"}r.id=n.iframeId,n.form.appendChild(r),n.iframe=r}this.form.action=this.uri(),u(),t=t.replace(a,"\\\n"),this.area.value=t.replace(s,"\\n");try{this.form.submit()}catch(t){}this.iframe.attachEvent?this.iframe.onreadystatechange=function(){"complete"===n.iframe.readyState&&l()}:this.iframe.onload=l}}).call(this,n(12))},function(t,e,n){(function(e){var r,i,o=n(9),s=n(2),a=n(3),c=n(4),l=n(17),u=n(0)("engine.io-client:websocket");if("undefined"!=typeof WebSocket)r=WebSocket;else if("undefined"!=typeof self)r=self.WebSocket||self.MozWebSocket;else try{i=n(44)}catch(t){}var h=r||i;function p(t){t&&t.forceBase64&&(this.supportsBinary=!1),this.perMessageDeflate=t.perMessageDeflate,this.usingBrowserWebSocket=r&&!t.forceNode,this.protocols=t.protocols,this.usingBrowserWebSocket||(h=i),o.call(this,t)}t.exports=p,c(p,o),p.prototype.name="websocket",p.prototype.supportsBinary=!0,p.prototype.doOpen=function(){if(this.check()){var t=this.uri(),e=this.protocols,n={agent:this.agent,perMessageDeflate:this.perMessageDeflate};n.pfx=this.pfx,n.key=this.key,n.passphrase=this.passphrase,n.cert=this.cert,n.ca=this.ca,n.ciphers=this.ciphers,n.rejectUnauthorized=this.rejectUnauthorized,this.extraHeaders&&(n.headers=this.extraHeaders),this.localAddress&&(n.localAddress=this.localAddress);try{this.ws=this.usingBrowserWebSocket&&!this.isReactNative?e?new h(t,e):new h(t):new h(t,e,n)}catch(t){return this.emit("error",t)}void 0===this.ws.binaryType&&(this.supportsBinary=!1),this.ws.supports&&this.ws.supports.binary?(this.supportsBinary=!0,this.ws.binaryType="nodebuffer"):this.ws.binaryType="arraybuffer",this.addEventListeners()}},p.prototype.addEventListeners=function(){var t=this;this.ws.onopen=function(){t.onOpen()},this.ws.onclose=function(){t.onClose()},this.ws.onmessage=function(e){t.onData(e.data)},this.ws.onerror=function(e){t.onError("websocket error",e)}},p.prototype.write=function(t){var n=this;this.writable=!1;for(var r=t.length,i=0,o=r;i<o;i++)!function(t){s.encodePacket(t,n.supportsBinary,(function(i){if(!n.usingBrowserWebSocket){var o={};t.options&&(o.compress=t.options.compress),n.perMessageDeflate&&("string"==typeof i?e.byteLength(i):i.length)<n.perMessageDeflate.threshold&&(o.compress=!1)}try{n.usingBrowserWebSocket?n.ws.send(i):n.ws.send(i,o)}catch(t){u("websocket closed before onclose event")}--r||(n.emit("flush"),setTimeout((function(){n.writable=!0,n.emit("drain")}),0))}))}(t[i])},p.prototype.onClose=function(){o.prototype.onClose.call(this)},p.prototype.doClose=function(){void 0!==this.ws&&this.ws.close()},p.prototype.uri=function(){var t=this.query||{},e=this.secure?"wss":"ws",n="";return this.port&&("wss"===e&&443!==Number(this.port)||"ws"===e&&80!==Number(this.port))&&(n=":"+this.port),this.timestampRequests&&(t[this.timestampParam]=l()),this.supportsBinary||(t.b64=1),(t=a.encode(t)).length&&(t="?"+t),e+"://"+(-1!==this.hostname.indexOf(":")?"["+this.hostname+"]":this.hostname)+n+this.path+t},p.prototype.check=function(){return!(!h||"__initialize"in h&&this.name===p.prototype.name)}}).call(this,n(7).Buffer)},function(t,e){},function(t,e){t.exports=function(t,e){for(var n=[],r=(e=e||0)||0;r<t.length;r++)n[r-e]=t[r];return n}},function(t,e){function n(t){t=t||{},this.ms=t.min||100,this.max=t.max||1e4,this.factor=t.factor||2,this.jitter=t.jitter>0&&t.jitter<=1?t.jitter:0,this.attempts=0}t.exports=n,n.prototype.duration=function(){var t=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var e=Math.random(),n=Math.floor(e*this.jitter*t);t=0==(1&Math.floor(10*e))?t-n:t+n}return 0|Math.min(t,this.max)},n.prototype.reset=function(){this.attempts=0},n.prototype.setMin=function(t){this.ms=t},n.prototype.setMax=function(t){this.max=t},n.prototype.setJitter=function(t){this.jitter=t}},function(t,e,n){"use strict";n.r(e);var r={beforeCreate(){this.sockets||(this.sockets={}),this.sockets.subscribe=(t,e)=>{this.$vueSocketIo.emitter.addListener(t,e,this)},this.sockets.unsubscribe=t=>{this.$vueSocketIo.emitter.removeListener(t,this)}},mounted(){this.$options.sockets&&Object.keys(this.$options.sockets).forEach((t=>{"subscribe"!==t&&"unsubscribe"!==t&&this.$vueSocketIo.emitter.addListener(t,this.$options.sockets[t],this)}))},beforeDestroy(){this.$options.sockets&&Object.keys(this.$options.sockets).forEach((t=>{this.$vueSocketIo.emitter.removeListener(t,this)}))}};function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var o=new(function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.debug=!1,this.prefix="%cVue-Socket.io: "}var e,n;return e=t,(n=[{key:"info",value:function(t,e=""){this.debug&&window.console.info(this.prefix+`%c${t}`,"color: blue; font-weight: 600","color: #333333",e)}},{key:"error",value:function(){this.debug&&window.console.error(this.prefix,...arguments)}},{key:"warn",value:function(){this.debug&&window.console.warn(this.prefix,...arguments)}},{key:"event",value:function(t,e=""){this.debug&&window.console.info(this.prefix+`%c${t}`,"color: blue; font-weight: 600","color: #333333",e)}}])&&i(e.prototype,n),t}());function s(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}let a=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.io=e,this.register(),this.emitter=n}var e,n;return e=t,(n=[{key:"register",value:function(){this.io.onevent=t=>{let[e,...n]=t.data;1===n.length&&(n=n[0]),this.onEvent(e,n)},t.staticEvents.forEach((t=>this.io.on(t,(e=>this.onEvent(t,e)))))}},{key:"onEvent",value:function(t,e){this.emitter.emit(t,e)}}])&&s(e.prototype,n),t}();var c,l,u;function h(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}u=["connect","error","disconnect","reconnect","reconnect_attempt","reconnecting","reconnect_error","reconnect_failed","connect_error","connect_timeout","connecting","ping","pong"],(l="staticEvents")in(c=a)?Object.defineProperty(c,l,{value:u,enumerable:!0,configurable:!0,writable:!0}):c[l]=u;let p=function(){function t(e={}){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),o.info(e?"Vuex adapter enabled":"Vuex adapter disabled"),o.info(e.mutationPrefix?"Vuex socket mutations enabled":"Vuex socket mutations disabled"),o.info(e?"Vuex socket actions enabled":"Vuex socket actions disabled"),this.store=e.store,this.actionPrefix=e.actionPrefix?e.actionPrefix:"SOCKET_",this.mutationPrefix=e.mutationPrefix,this.listeners=new Map}var e,n;return e=t,(n=[{key:"addListener",value:function(t,e,n){if("function"!=typeof e)throw new Error("callback must be a function");this.listeners.has(t)||this.listeners.set(t,[]),this.listeners.get(t).push({callback:e,component:n}),o.info(`#${t} subscribe, component: ${n.$options.name}`)}},{key:"removeListener",value:function(t,e){if(this.listeners.has(t)){const n=this.listeners.get(t).filter((t=>t.component!==e));n.length>0?this.listeners.set(t,n):this.listeners.delete(t),o.info(`#${t} unsubscribe, component: ${e.$options.name}`)}}},{key:"emit",value:function(t,e){this.listeners.has(t)&&(o.info(`Broadcasting: #${t}, Data:`,e),this.listeners.get(t).forEach((t=>{t.callback.call(t.component,e)}))),"ping"!==t&&"pong"!==t&&this.dispatchStore(t,e)}},{key:"dispatchStore",value:function(t,e){if(this.store&&this.store._actions){let n=this.actionPrefix+t;for(let t in this.store._actions)t.split("/").pop()===n&&(o.info(`Dispatching Action: ${t}, Data:`,e),this.store.dispatch(t,e));if(this.mutationPrefix){let n=this.mutationPrefix+t;for(let t in this.store._mutations)t.split("/").pop()===n&&(o.info(`Commiting Mutation: ${t}, Data:`,e),this.store.commit(t,e))}}}}])&&h(e.prototype,n),t}();var d=n(22),f=n.n(d);function g(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}n.d(e,"default",(function(){return v}));let v=function(){function t({connection:e,vuex:n,debug:r,options:i}){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),o.debug=r,this.io=this.connect(e,i),this.emitter=new p(n),this.listener=new a(this.io,this.emitter)}var e,n;return e=t,(n=[{key:"install",value:function(t){t.prototype.$socket=this.io,t.prototype.$vueSocketIo=this,t.mixin(r),o.info("Vue-Socket.io plugin enabled")}},{key:"connect",value:function(t,e){if(t&&"object"==typeof t)return o.info("Received socket.io-client instance"),t;if("string"==typeof t)return o.info("Received connection string"),this.io=f()(t,e);throw new Error("Unsupported connection type")}}])&&g(e.prototype,n),t}()}]).default},1238:(t,e,n)=>{var r=n(224);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[t.id,r,""]]),r.locals&&(t.exports=r.locals),(0,n(5346).Z)("9e580292",r,!1,{})},8790:(t,e,n)=>{var r=n(1975);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[t.id,r,""]]),r.locals&&(t.exports=r.locals),(0,n(5346).Z)("21382f96",r,!1,{})},1407:(t,e,n)=>{var r=n(5754);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[t.id,r,""]]),r.locals&&(t.exports=r.locals),(0,n(5346).Z)("2799174b",r,!1,{})},6240:(t,e,n)=>{var r=n(2354);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[t.id,r,""]]),r.locals&&(t.exports=r.locals),(0,n(5346).Z)("2bf40582",r,!1,{})},3628:(t,e,n)=>{var r=n(5439);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[t.id,r,""]]),r.locals&&(t.exports=r.locals),(0,n(5346).Z)("7f6a579b",r,!1,{})},2307:(t,e,n)=>{var r=n(4321);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[t.id,r,""]]),r.locals&&(t.exports=r.locals),(0,n(5346).Z)("19795d70",r,!1,{})},6590:(t,e,n)=>{var r=n(3035);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[t.id,r,""]]),r.locals&&(t.exports=r.locals),(0,n(5346).Z)("45c93e32",r,!1,{})},9371:(t,e,n)=>{var r=n(8782);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[t.id,r,""]]),r.locals&&(t.exports=r.locals),(0,n(5346).Z)("7d02b196",r,!1,{})},8600:(t,e,n)=>{var r=n(2972);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[t.id,r,""]]),r.locals&&(t.exports=r.locals),(0,n(5346).Z)("36d131af",r,!1,{})},3266:(t,e,n)=>{var r=n(2640);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[t.id,r,""]]),r.locals&&(t.exports=r.locals),(0,n(5346).Z)("e4f67f42",r,!1,{})},9746:(t,e,n)=>{var r=n(2639);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[t.id,r,""]]),r.locals&&(t.exports=r.locals),(0,n(5346).Z)("7747e9b4",r,!1,{})},3257:(t,e,n)=>{var r=n(3068);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[t.id,r,""]]),r.locals&&(t.exports=r.locals),(0,n(5346).Z)("466362a2",r,!1,{})},5922:(t,e,n)=>{var r=n(6081);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[t.id,r,""]]),r.locals&&(t.exports=r.locals),(0,n(5346).Z)("53339a10",r,!1,{})},9105:(t,e,n)=>{var r=n(5994);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[t.id,r,""]]),r.locals&&(t.exports=r.locals),(0,n(5346).Z)("4b7c6fcc",r,!1,{})},48:(t,e,n)=>{var r=n(9528);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[t.id,r,""]]),r.locals&&(t.exports=r.locals),(0,n(5346).Z)("76c23032",r,!1,{})},6348:(t,e,n)=>{var r=n(4924);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[t.id,r,""]]),r.locals&&(t.exports=r.locals),(0,n(5346).Z)("2a33081b",r,!1,{})},8315:(t,e,n)=>{var r=n(6461);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[t.id,r,""]]),r.locals&&(t.exports=r.locals),(0,n(5346).Z)("157ebeb3",r,!1,{})},9721:(t,e,n)=>{var r=n(718);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[t.id,r,""]]),r.locals&&(t.exports=r.locals),(0,n(5346).Z)("09f39871",r,!1,{})},711:(t,e,n)=>{var r=n(65);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[t.id,r,""]]),r.locals&&(t.exports=r.locals),(0,n(5346).Z)("362694ba",r,!1,{})},8710:(t,e,n)=>{var r=n(6374);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[t.id,r,""]]),r.locals&&(t.exports=r.locals),(0,n(5346).Z)("5cd00662",r,!1,{})},4184:(t,e,n)=>{var r=n(238);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[t.id,r,""]]),r.locals&&(t.exports=r.locals),(0,n(5346).Z)("1e17ca71",r,!1,{})},4052:(t,e,n)=>{var r=n(1511);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[t.id,r,""]]),r.locals&&(t.exports=r.locals),(0,n(5346).Z)("0c4b9021",r,!1,{})},3175:(t,e,n)=>{var r=n(6996);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[t.id,r,""]]),r.locals&&(t.exports=r.locals),(0,n(5346).Z)("1897081b",r,!1,{})},6770:(t,e,n)=>{var r=n(3102);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[t.id,r,""]]),r.locals&&(t.exports=r.locals),(0,n(5346).Z)("d6de4300",r,!1,{})},7620:(t,e,n)=>{var r=n(7521);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[t.id,r,""]]),r.locals&&(t.exports=r.locals),(0,n(5346).Z)("56463b46",r,!1,{})},4163:(t,e,n)=>{var r=n(1445);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[t.id,r,""]]),r.locals&&(t.exports=r.locals),(0,n(5346).Z)("f80dcda6",r,!1,{})},9534:(t,e,n)=>{var r=n(4749);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[t.id,r,""]]),r.locals&&(t.exports=r.locals),(0,n(5346).Z)("5f393752",r,!1,{})},4223:(t,e,n)=>{var r=n(1406);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[t.id,r,""]]),r.locals&&(t.exports=r.locals),(0,n(5346).Z)("e92c45e8",r,!1,{})},1339:(t,e,n)=>{var r=n(1004);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[t.id,r,""]]),r.locals&&(t.exports=r.locals),(0,n(5346).Z)("8c03c314",r,!1,{})},7443:(t,e,n)=>{var r=n(9078);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[t.id,r,""]]),r.locals&&(t.exports=r.locals),(0,n(5346).Z)("38cf8d24",r,!1,{})},3421:(t,e,n)=>{var r=n(7042);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[t.id,r,""]]),r.locals&&(t.exports=r.locals),(0,n(5346).Z)("4bd103f7",r,!1,{})},6524:(t,e,n)=>{var r=n(9413);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[t.id,r,""]]),r.locals&&(t.exports=r.locals),(0,n(5346).Z)("1eae4697",r,!1,{})},3076:(t,e,n)=>{var r=n(5477);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[t.id,r,""]]),r.locals&&(t.exports=r.locals),(0,n(5346).Z)("24039670",r,!1,{})},5346:(t,e,n)=>{"use strict";function r(t,e){for(var n=[],r={},i=0;i<e.length;i++){var o=e[i],s=o[0],a={id:t+":"+i,css:o[1],media:o[2],sourceMap:o[3]};r[s]?r[s].parts.push(a):n.push(r[s]={id:s,parts:[a]})}return n}n.d(e,{Z:()=>f});var i="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!i)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var o={},s=i&&(document.head||document.getElementsByTagName("head")[0]),a=null,c=0,l=!1,u=function(){},h=null,p="data-vue-ssr-id",d="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function f(t,e,n,i){l=n,h=i||{};var s=r(t,e);return g(s),function(e){for(var n=[],i=0;i<s.length;i++){var a=s[i];(c=o[a.id]).refs--,n.push(c)}for(e?g(s=r(t,e)):s=[],i=0;i<n.length;i++){var c;if(0===(c=n[i]).refs){for(var l=0;l<c.parts.length;l++)c.parts[l]();delete o[c.id]}}}}function g(t){for(var e=0;e<t.length;e++){var n=t[e],r=o[n.id];if(r){r.refs++;for(var i=0;i<r.parts.length;i++)r.parts[i](n.parts[i]);for(;i<n.parts.length;i++)r.parts.push(m(n.parts[i]));r.parts.length>n.parts.length&&(r.parts.length=n.parts.length)}else{var s=[];for(i=0;i<n.parts.length;i++)s.push(m(n.parts[i]));o[n.id]={id:n.id,refs:1,parts:s}}}}function v(){var t=document.createElement("style");return t.type="text/css",s.appendChild(t),t}function m(t){var e,n,r=document.querySelector("style["+p+'~="'+t.id+'"]');if(r){if(l)return u;r.parentNode.removeChild(r)}if(d){var i=c++;r=a||(a=v()),e=w.bind(null,r,i,!1),n=w.bind(null,r,i,!0)}else r=v(),e=x.bind(null,r),n=function(){r.parentNode.removeChild(r)};return e(t),function(r){if(r){if(r.css===t.css&&r.media===t.media&&r.sourceMap===t.sourceMap)return;e(t=r)}else n()}}var y,b=(y=[],function(t,e){return y[t]=e,y.filter(Boolean).join("\n")});function w(t,e,n,r){var i=n?"":r.css;if(t.styleSheet)t.styleSheet.cssText=b(e,i);else{var o=document.createTextNode(i),s=t.childNodes;s[e]&&t.removeChild(s[e]),s.length?t.insertBefore(o,s[e]):t.appendChild(o)}}function x(t,e){var n=e.css,r=e.media,i=e.sourceMap;if(r&&t.setAttribute("media",r),h.ssrId&&t.setAttribute(p,e.id),i&&(n+="\n/*# sourceURL="+i.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */"),t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}},144:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>Ni});var r=Object.freeze({});function i(t){return null==t}function o(t){return null!=t}function s(t){return!0===t}function a(t){return"string"==typeof t||"number"==typeof t||"symbol"==typeof t||"boolean"==typeof t}function c(t){return null!==t&&"object"==typeof t}var l=Object.prototype.toString;function u(t){return"[object Object]"===l.call(t)}function h(t){var e=parseFloat(String(t));return e>=0&&Math.floor(e)===e&&isFinite(t)}function p(t){return o(t)&&"function"==typeof t.then&&"function"==typeof t.catch}function d(t){return null==t?"":Array.isArray(t)||u(t)&&t.toString===l?JSON.stringify(t,null,2):String(t)}function f(t){var e=parseFloat(t);return isNaN(e)?t:e}function g(t,e){for(var n=Object.create(null),r=t.split(","),i=0;i<r.length;i++)n[r[i]]=!0;return e?function(t){return n[t.toLowerCase()]}:function(t){return n[t]}}g("slot,component",!0);var v=g("key,ref,slot,slot-scope,is");function m(t,e){if(t.length){var n=t.indexOf(e);if(n>-1)return t.splice(n,1)}}var y=Object.prototype.hasOwnProperty;function b(t,e){return y.call(t,e)}function w(t){var e=Object.create(null);return function(n){return e[n]||(e[n]=t(n))}}var x=/-(\w)/g,_=w((function(t){return t.replace(x,(function(t,e){return e?e.toUpperCase():""}))})),k=w((function(t){return t.charAt(0).toUpperCase()+t.slice(1)})),C=/\B([A-Z])/g,S=w((function(t){return t.replace(C,"-$1").toLowerCase()})),A=Function.prototype.bind?function(t,e){return t.bind(e)}:function(t,e){function n(n){var r=arguments.length;return r?r>1?t.apply(e,arguments):t.call(e,n):t.call(e)}return n._length=t.length,n};function E(t,e){e=e||0;for(var n=t.length-e,r=new Array(n);n--;)r[n]=t[n+e];return r}function O(t,e){for(var n in e)t[n]=e[n];return t}function T(t){for(var e={},n=0;n<t.length;n++)t[n]&&O(e,t[n]);return e}function P(t,e,n){}var I=function(t,e,n){return!1},M=function(t){return t};function R(t,e){if(t===e)return!0;var n=c(t),r=c(e);if(!n||!r)return!n&&!r&&String(t)===String(e);try{var i=Array.isArray(t),o=Array.isArray(e);if(i&&o)return t.length===e.length&&t.every((function(t,n){return R(t,e[n])}));if(t instanceof Date&&e instanceof Date)return t.getTime()===e.getTime();if(i||o)return!1;var s=Object.keys(t),a=Object.keys(e);return s.length===a.length&&s.every((function(n){return R(t[n],e[n])}))}catch(t){return!1}}function N(t,e){for(var n=0;n<t.length;n++)if(R(t[n],e))return n;return-1}function D(t){var e=!1;return function(){e||(e=!0,t.apply(this,arguments))}}var j="data-server-rendered",L=["component","directive","filter"],z=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured","serverPrefetch"],$={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:I,isReservedAttr:I,isUnknownElement:I,getTagNamespace:P,parsePlatformTagName:M,mustUseProp:I,async:!0,_lifecycleHooks:z};function B(t,e,n,r){Object.defineProperty(t,e,{value:n,enumerable:!!r,writable:!0,configurable:!0})}var H,U=new RegExp("[^"+/a-zA-Z\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD/.source+".$_\\d]"),F="__proto__"in{},q="undefined"!=typeof window,W="undefined"!=typeof WXEnvironment&&!!WXEnvironment.platform,V=W&&WXEnvironment.platform.toLowerCase(),Y=q&&window.navigator.userAgent.toLowerCase(),X=Y&&/msie|trident/.test(Y),J=Y&&Y.indexOf("msie 9.0")>0,G=Y&&Y.indexOf("edge/")>0,Z=(Y&&Y.indexOf("android"),Y&&/iphone|ipad|ipod|ios/.test(Y)||"ios"===V),K=(Y&&/chrome\/\d+/.test(Y),Y&&/phantomjs/.test(Y),Y&&Y.match(/firefox\/(\d+)/)),Q={}.watch,tt=!1;if(q)try{var et={};Object.defineProperty(et,"passive",{get:function(){tt=!0}}),window.addEventListener("test-passive",null,et)}catch(t){}var nt=function(){return void 0===H&&(H=!q&&!W&&void 0!==n.g&&n.g.process&&"server"===n.g.process.env.VUE_ENV),H},rt=q&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function it(t){return"function"==typeof t&&/native code/.test(t.toString())}var ot,st="undefined"!=typeof Symbol&&it(Symbol)&&"undefined"!=typeof Reflect&&it(Reflect.ownKeys);ot="undefined"!=typeof Set&&it(Set)?Set:function(){function t(){this.set=Object.create(null)}return t.prototype.has=function(t){return!0===this.set[t]},t.prototype.add=function(t){this.set[t]=!0},t.prototype.clear=function(){this.set=Object.create(null)},t}();var at=P,ct=0,lt=function(){this.id=ct++,this.subs=[]};lt.prototype.addSub=function(t){this.subs.push(t)},lt.prototype.removeSub=function(t){m(this.subs,t)},lt.prototype.depend=function(){lt.target&<.target.addDep(this)},lt.prototype.notify=function(){for(var t=this.subs.slice(),e=0,n=t.length;e<n;e++)t[e].update()},lt.target=null;var ut=[];function ht(t){ut.push(t),lt.target=t}function pt(){ut.pop(),lt.target=ut[ut.length-1]}var dt=function(t,e,n,r,i,o,s,a){this.tag=t,this.data=e,this.children=n,this.text=r,this.elm=i,this.ns=void 0,this.context=o,this.fnContext=void 0,this.fnOptions=void 0,this.fnScopeId=void 0,this.key=e&&e.key,this.componentOptions=s,this.componentInstance=void 0,this.parent=void 0,this.raw=!1,this.isStatic=!1,this.isRootInsert=!0,this.isComment=!1,this.isCloned=!1,this.isOnce=!1,this.asyncFactory=a,this.asyncMeta=void 0,this.isAsyncPlaceholder=!1},ft={child:{configurable:!0}};ft.child.get=function(){return this.componentInstance},Object.defineProperties(dt.prototype,ft);var gt=function(t){void 0===t&&(t="");var e=new dt;return e.text=t,e.isComment=!0,e};function vt(t){return new dt(void 0,void 0,void 0,String(t))}function mt(t){var e=new dt(t.tag,t.data,t.children&&t.children.slice(),t.text,t.elm,t.context,t.componentOptions,t.asyncFactory);return e.ns=t.ns,e.isStatic=t.isStatic,e.key=t.key,e.isComment=t.isComment,e.fnContext=t.fnContext,e.fnOptions=t.fnOptions,e.fnScopeId=t.fnScopeId,e.asyncMeta=t.asyncMeta,e.isCloned=!0,e}var yt=Array.prototype,bt=Object.create(yt);["push","pop","shift","unshift","splice","sort","reverse"].forEach((function(t){var e=yt[t];B(bt,t,(function(){for(var n=[],r=arguments.length;r--;)n[r]=arguments[r];var i,o=e.apply(this,n),s=this.__ob__;switch(t){case"push":case"unshift":i=n;break;case"splice":i=n.slice(2)}return i&&s.observeArray(i),s.dep.notify(),o}))}));var wt=Object.getOwnPropertyNames(bt),xt=!0;function _t(t){xt=t}var kt=function(t){this.value=t,this.dep=new lt,this.vmCount=0,B(t,"__ob__",this),Array.isArray(t)?(F?function(t,e){t.__proto__=e}(t,bt):function(t,e,n){for(var r=0,i=n.length;r<i;r++){var o=n[r];B(t,o,e[o])}}(t,bt,wt),this.observeArray(t)):this.walk(t)};function Ct(t,e){var n;if(c(t)&&!(t instanceof dt))return b(t,"__ob__")&&t.__ob__ instanceof kt?n=t.__ob__:xt&&!nt()&&(Array.isArray(t)||u(t))&&Object.isExtensible(t)&&!t._isVue&&(n=new kt(t)),e&&n&&n.vmCount++,n}function St(t,e,n,r,i){var o=new lt,s=Object.getOwnPropertyDescriptor(t,e);if(!s||!1!==s.configurable){var a=s&&s.get,c=s&&s.set;a&&!c||2!==arguments.length||(n=t[e]);var l=!i&&Ct(n);Object.defineProperty(t,e,{enumerable:!0,configurable:!0,get:function(){var e=a?a.call(t):n;return lt.target&&(o.depend(),l&&(l.dep.depend(),Array.isArray(e)&&Ot(e))),e},set:function(e){var r=a?a.call(t):n;e===r||e!=e&&r!=r||a&&!c||(c?c.call(t,e):n=e,l=!i&&Ct(e),o.notify())}})}}function At(t,e,n){if(Array.isArray(t)&&h(e))return t.length=Math.max(t.length,e),t.splice(e,1,n),n;if(e in t&&!(e in Object.prototype))return t[e]=n,n;var r=t.__ob__;return t._isVue||r&&r.vmCount?n:r?(St(r.value,e,n),r.dep.notify(),n):(t[e]=n,n)}function Et(t,e){if(Array.isArray(t)&&h(e))t.splice(e,1);else{var n=t.__ob__;t._isVue||n&&n.vmCount||b(t,e)&&(delete t[e],n&&n.dep.notify())}}function Ot(t){for(var e=void 0,n=0,r=t.length;n<r;n++)(e=t[n])&&e.__ob__&&e.__ob__.dep.depend(),Array.isArray(e)&&Ot(e)}kt.prototype.walk=function(t){for(var e=Object.keys(t),n=0;n<e.length;n++)St(t,e[n])},kt.prototype.observeArray=function(t){for(var e=0,n=t.length;e<n;e++)Ct(t[e])};var Tt=$.optionMergeStrategies;function Pt(t,e){if(!e)return t;for(var n,r,i,o=st?Reflect.ownKeys(e):Object.keys(e),s=0;s<o.length;s++)"__ob__"!==(n=o[s])&&(r=t[n],i=e[n],b(t,n)?r!==i&&u(r)&&u(i)&&Pt(r,i):At(t,n,i));return t}function It(t,e,n){return n?function(){var r="function"==typeof e?e.call(n,n):e,i="function"==typeof t?t.call(n,n):t;return r?Pt(r,i):i}:e?t?function(){return Pt("function"==typeof e?e.call(this,this):e,"function"==typeof t?t.call(this,this):t)}:e:t}function Mt(t,e){var n=e?t?t.concat(e):Array.isArray(e)?e:[e]:t;return n?function(t){for(var e=[],n=0;n<t.length;n++)-1===e.indexOf(t[n])&&e.push(t[n]);return e}(n):n}function Rt(t,e,n,r){var i=Object.create(t||null);return e?O(i,e):i}Tt.data=function(t,e,n){return n?It(t,e,n):e&&"function"!=typeof e?t:It(t,e)},z.forEach((function(t){Tt[t]=Mt})),L.forEach((function(t){Tt[t+"s"]=Rt})),Tt.watch=function(t,e,n,r){if(t===Q&&(t=void 0),e===Q&&(e=void 0),!e)return Object.create(t||null);if(!t)return e;var i={};for(var o in O(i,t),e){var s=i[o],a=e[o];s&&!Array.isArray(s)&&(s=[s]),i[o]=s?s.concat(a):Array.isArray(a)?a:[a]}return i},Tt.props=Tt.methods=Tt.inject=Tt.computed=function(t,e,n,r){if(!t)return e;var i=Object.create(null);return O(i,t),e&&O(i,e),i},Tt.provide=It;var Nt=function(t,e){return void 0===e?t:e};function Dt(t,e,n){if("function"==typeof e&&(e=e.options),function(t,e){var n=t.props;if(n){var r,i,o={};if(Array.isArray(n))for(r=n.length;r--;)"string"==typeof(i=n[r])&&(o[_(i)]={type:null});else if(u(n))for(var s in n)i=n[s],o[_(s)]=u(i)?i:{type:i};t.props=o}}(e),function(t,e){var n=t.inject;if(n){var r=t.inject={};if(Array.isArray(n))for(var i=0;i<n.length;i++)r[n[i]]={from:n[i]};else if(u(n))for(var o in n){var s=n[o];r[o]=u(s)?O({from:o},s):{from:s}}}}(e),function(t){var e=t.directives;if(e)for(var n in e){var r=e[n];"function"==typeof r&&(e[n]={bind:r,update:r})}}(e),!e._base&&(e.extends&&(t=Dt(t,e.extends,n)),e.mixins))for(var r=0,i=e.mixins.length;r<i;r++)t=Dt(t,e.mixins[r],n);var o,s={};for(o in t)a(o);for(o in e)b(t,o)||a(o);function a(r){var i=Tt[r]||Nt;s[r]=i(t[r],e[r],n,r)}return s}function jt(t,e,n,r){if("string"==typeof n){var i=t[e];if(b(i,n))return i[n];var o=_(n);if(b(i,o))return i[o];var s=k(o);return b(i,s)?i[s]:i[n]||i[o]||i[s]}}function Lt(t,e,n,r){var i=e[t],o=!b(n,t),s=n[t],a=Ht(Boolean,i.type);if(a>-1)if(o&&!b(i,"default"))s=!1;else if(""===s||s===S(t)){var c=Ht(String,i.type);(c<0||a<c)&&(s=!0)}if(void 0===s){s=function(t,e,n){if(b(e,"default")){var r=e.default;return t&&t.$options.propsData&&void 0===t.$options.propsData[n]&&void 0!==t._props[n]?t._props[n]:"function"==typeof r&&"Function"!==$t(e.type)?r.call(t):r}}(r,i,t);var l=xt;_t(!0),Ct(s),_t(l)}return s}var zt=/^\s*function (\w+)/;function $t(t){var e=t&&t.toString().match(zt);return e?e[1]:""}function Bt(t,e){return $t(t)===$t(e)}function Ht(t,e){if(!Array.isArray(e))return Bt(e,t)?0:-1;for(var n=0,r=e.length;n<r;n++)if(Bt(e[n],t))return n;return-1}function Ut(t,e,n){ht();try{if(e)for(var r=e;r=r.$parent;){var i=r.$options.errorCaptured;if(i)for(var o=0;o<i.length;o++)try{if(!1===i[o].call(r,t,e,n))return}catch(t){qt(t,r,"errorCaptured hook")}}qt(t,e,n)}finally{pt()}}function Ft(t,e,n,r,i){var o;try{(o=n?t.apply(e,n):t.call(e))&&!o._isVue&&p(o)&&!o._handled&&(o.catch((function(t){return Ut(t,r,i+" (Promise/async)")})),o._handled=!0)}catch(t){Ut(t,r,i)}return o}function qt(t,e,n){if($.errorHandler)try{return $.errorHandler.call(null,t,e,n)}catch(e){e!==t&&Wt(e)}Wt(t)}function Wt(t,e,n){if(!q&&!W||"undefined"==typeof console)throw t;console.error(t)}var Vt,Yt=!1,Xt=[],Jt=!1;function Gt(){Jt=!1;var t=Xt.slice(0);Xt.length=0;for(var e=0;e<t.length;e++)t[e]()}if("undefined"!=typeof Promise&&it(Promise)){var Zt=Promise.resolve();Vt=function(){Zt.then(Gt),Z&&setTimeout(P)},Yt=!0}else if(X||"undefined"==typeof MutationObserver||!it(MutationObserver)&&"[object MutationObserverConstructor]"!==MutationObserver.toString())Vt="undefined"!=typeof setImmediate&&it(setImmediate)?function(){setImmediate(Gt)}:function(){setTimeout(Gt,0)};else{var Kt=1,Qt=new MutationObserver(Gt),te=document.createTextNode(String(Kt));Qt.observe(te,{characterData:!0}),Vt=function(){Kt=(Kt+1)%2,te.data=String(Kt)},Yt=!0}function ee(t,e){var n;if(Xt.push((function(){if(t)try{t.call(e)}catch(t){Ut(t,e,"nextTick")}else n&&n(e)})),Jt||(Jt=!0,Vt()),!t&&"undefined"!=typeof Promise)return new Promise((function(t){n=t}))}var ne=new ot;function re(t){ie(t,ne),ne.clear()}function ie(t,e){var n,r,i=Array.isArray(t);if(!(!i&&!c(t)||Object.isFrozen(t)||t instanceof dt)){if(t.__ob__){var o=t.__ob__.dep.id;if(e.has(o))return;e.add(o)}if(i)for(n=t.length;n--;)ie(t[n],e);else for(n=(r=Object.keys(t)).length;n--;)ie(t[r[n]],e)}}var oe=w((function(t){var e="&"===t.charAt(0),n="~"===(t=e?t.slice(1):t).charAt(0),r="!"===(t=n?t.slice(1):t).charAt(0);return{name:t=r?t.slice(1):t,once:n,capture:r,passive:e}}));function se(t,e){function n(){var t=arguments,r=n.fns;if(!Array.isArray(r))return Ft(r,null,arguments,e,"v-on handler");for(var i=r.slice(),o=0;o<i.length;o++)Ft(i[o],null,t,e,"v-on handler")}return n.fns=t,n}function ae(t,e,n,r,o,a){var c,l,u,h;for(c in t)l=t[c],u=e[c],h=oe(c),i(l)||(i(u)?(i(l.fns)&&(l=t[c]=se(l,a)),s(h.once)&&(l=t[c]=o(h.name,l,h.capture)),n(h.name,l,h.capture,h.passive,h.params)):l!==u&&(u.fns=l,t[c]=u));for(c in e)i(t[c])&&r((h=oe(c)).name,e[c],h.capture)}function ce(t,e,n){var r;t instanceof dt&&(t=t.data.hook||(t.data.hook={}));var a=t[e];function c(){n.apply(this,arguments),m(r.fns,c)}i(a)?r=se([c]):o(a.fns)&&s(a.merged)?(r=a).fns.push(c):r=se([a,c]),r.merged=!0,t[e]=r}function le(t,e,n,r,i){if(o(e)){if(b(e,n))return t[n]=e[n],i||delete e[n],!0;if(b(e,r))return t[n]=e[r],i||delete e[r],!0}return!1}function ue(t){return a(t)?[vt(t)]:Array.isArray(t)?pe(t):void 0}function he(t){return o(t)&&o(t.text)&&!1===t.isComment}function pe(t,e){var n,r,c,l,u=[];for(n=0;n<t.length;n++)i(r=t[n])||"boolean"==typeof r||(l=u[c=u.length-1],Array.isArray(r)?r.length>0&&(he((r=pe(r,(e||"")+"_"+n))[0])&&he(l)&&(u[c]=vt(l.text+r[0].text),r.shift()),u.push.apply(u,r)):a(r)?he(l)?u[c]=vt(l.text+r):""!==r&&u.push(vt(r)):he(r)&&he(l)?u[c]=vt(l.text+r.text):(s(t._isVList)&&o(r.tag)&&i(r.key)&&o(e)&&(r.key="__vlist"+e+"_"+n+"__"),u.push(r)));return u}function de(t,e){if(t){for(var n=Object.create(null),r=st?Reflect.ownKeys(t):Object.keys(t),i=0;i<r.length;i++){var o=r[i];if("__ob__"!==o){for(var s=t[o].from,a=e;a;){if(a._provided&&b(a._provided,s)){n[o]=a._provided[s];break}a=a.$parent}if(!a&&"default"in t[o]){var c=t[o].default;n[o]="function"==typeof c?c.call(e):c}}}return n}}function fe(t,e){if(!t||!t.length)return{};for(var n={},r=0,i=t.length;r<i;r++){var o=t[r],s=o.data;if(s&&s.attrs&&s.attrs.slot&&delete s.attrs.slot,o.context!==e&&o.fnContext!==e||!s||null==s.slot)(n.default||(n.default=[])).push(o);else{var a=s.slot,c=n[a]||(n[a]=[]);"template"===o.tag?c.push.apply(c,o.children||[]):c.push(o)}}for(var l in n)n[l].every(ge)&&delete n[l];return n}function ge(t){return t.isComment&&!t.asyncFactory||" "===t.text}function ve(t){return t.isComment&&t.asyncFactory}function me(t,e,n){var i,o=Object.keys(e).length>0,s=t?!!t.$stable:!o,a=t&&t.$key;if(t){if(t._normalized)return t._normalized;if(s&&n&&n!==r&&a===n.$key&&!o&&!n.$hasNormal)return n;for(var c in i={},t)t[c]&&"$"!==c[0]&&(i[c]=ye(e,c,t[c]))}else i={};for(var l in e)l in i||(i[l]=be(e,l));return t&&Object.isExtensible(t)&&(t._normalized=i),B(i,"$stable",s),B(i,"$key",a),B(i,"$hasNormal",o),i}function ye(t,e,n){var r=function(){var t=arguments.length?n.apply(null,arguments):n({}),e=(t=t&&"object"==typeof t&&!Array.isArray(t)?[t]:ue(t))&&t[0];return t&&(!e||1===t.length&&e.isComment&&!ve(e))?void 0:t};return n.proxy&&Object.defineProperty(t,e,{get:r,enumerable:!0,configurable:!0}),r}function be(t,e){return function(){return t[e]}}function we(t,e){var n,r,i,s,a;if(Array.isArray(t)||"string"==typeof t)for(n=new Array(t.length),r=0,i=t.length;r<i;r++)n[r]=e(t[r],r);else if("number"==typeof t)for(n=new Array(t),r=0;r<t;r++)n[r]=e(r+1,r);else if(c(t))if(st&&t[Symbol.iterator]){n=[];for(var l=t[Symbol.iterator](),u=l.next();!u.done;)n.push(e(u.value,n.length)),u=l.next()}else for(s=Object.keys(t),n=new Array(s.length),r=0,i=s.length;r<i;r++)a=s[r],n[r]=e(t[a],a,r);return o(n)||(n=[]),n._isVList=!0,n}function xe(t,e,n,r){var i,o=this.$scopedSlots[t];o?(n=n||{},r&&(n=O(O({},r),n)),i=o(n)||("function"==typeof e?e():e)):i=this.$slots[t]||("function"==typeof e?e():e);var s=n&&n.slot;return s?this.$createElement("template",{slot:s},i):i}function _e(t){return jt(this.$options,"filters",t)||M}function ke(t,e){return Array.isArray(t)?-1===t.indexOf(e):t!==e}function Ce(t,e,n,r,i){var o=$.keyCodes[e]||n;return i&&r&&!$.keyCodes[e]?ke(i,r):o?ke(o,t):r?S(r)!==e:void 0===t}function Se(t,e,n,r,i){if(n&&c(n)){var o;Array.isArray(n)&&(n=T(n));var s=function(s){if("class"===s||"style"===s||v(s))o=t;else{var a=t.attrs&&t.attrs.type;o=r||$.mustUseProp(e,a,s)?t.domProps||(t.domProps={}):t.attrs||(t.attrs={})}var c=_(s),l=S(s);c in o||l in o||(o[s]=n[s],i&&((t.on||(t.on={}))["update:"+s]=function(t){n[s]=t}))};for(var a in n)s(a)}return t}function Ae(t,e){var n=this._staticTrees||(this._staticTrees=[]),r=n[t];return r&&!e||Oe(r=n[t]=this.$options.staticRenderFns[t].call(this._renderProxy,null,this),"__static__"+t,!1),r}function Ee(t,e,n){return Oe(t,"__once__"+e+(n?"_"+n:""),!0),t}function Oe(t,e,n){if(Array.isArray(t))for(var r=0;r<t.length;r++)t[r]&&"string"!=typeof t[r]&&Te(t[r],e+"_"+r,n);else Te(t,e,n)}function Te(t,e,n){t.isStatic=!0,t.key=e,t.isOnce=n}function Pe(t,e){if(e&&u(e)){var n=t.on=t.on?O({},t.on):{};for(var r in e){var i=n[r],o=e[r];n[r]=i?[].concat(i,o):o}}return t}function Ie(t,e,n,r){e=e||{$stable:!n};for(var i=0;i<t.length;i++){var o=t[i];Array.isArray(o)?Ie(o,e,n):o&&(o.proxy&&(o.fn.proxy=!0),e[o.key]=o.fn)}return r&&(e.$key=r),e}function Me(t,e){for(var n=0;n<e.length;n+=2){var r=e[n];"string"==typeof r&&r&&(t[e[n]]=e[n+1])}return t}function Re(t,e){return"string"==typeof t?e+t:t}function Ne(t){t._o=Ee,t._n=f,t._s=d,t._l=we,t._t=xe,t._q=R,t._i=N,t._m=Ae,t._f=_e,t._k=Ce,t._b=Se,t._v=vt,t._e=gt,t._u=Ie,t._g=Pe,t._d=Me,t._p=Re}function De(t,e,n,i,o){var a,c=this,l=o.options;b(i,"_uid")?(a=Object.create(i))._original=i:(a=i,i=i._original);var u=s(l._compiled),h=!u;this.data=t,this.props=e,this.children=n,this.parent=i,this.listeners=t.on||r,this.injections=de(l.inject,i),this.slots=function(){return c.$slots||me(t.scopedSlots,c.$slots=fe(n,i)),c.$slots},Object.defineProperty(this,"scopedSlots",{enumerable:!0,get:function(){return me(t.scopedSlots,this.slots())}}),u&&(this.$options=l,this.$slots=this.slots(),this.$scopedSlots=me(t.scopedSlots,this.$slots)),l._scopeId?this._c=function(t,e,n,r){var o=Ue(a,t,e,n,r,h);return o&&!Array.isArray(o)&&(o.fnScopeId=l._scopeId,o.fnContext=i),o}:this._c=function(t,e,n,r){return Ue(a,t,e,n,r,h)}}function je(t,e,n,r,i){var o=mt(t);return o.fnContext=n,o.fnOptions=r,e.slot&&((o.data||(o.data={})).slot=e.slot),o}function Le(t,e){for(var n in e)t[_(n)]=e[n]}Ne(De.prototype);var ze={init:function(t,e){if(t.componentInstance&&!t.componentInstance._isDestroyed&&t.data.keepAlive){var n=t;ze.prepatch(n,n)}else(t.componentInstance=function(t,e){var n={_isComponent:!0,_parentVnode:t,parent:e},r=t.data.inlineTemplate;return o(r)&&(n.render=r.render,n.staticRenderFns=r.staticRenderFns),new t.componentOptions.Ctor(n)}(t,Ke)).$mount(e?t.elm:void 0,e)},prepatch:function(t,e){var n=e.componentOptions;!function(t,e,n,i,o){var s=i.data.scopedSlots,a=t.$scopedSlots,c=!!(s&&!s.$stable||a!==r&&!a.$stable||s&&t.$scopedSlots.$key!==s.$key||!s&&t.$scopedSlots.$key),l=!!(o||t.$options._renderChildren||c);if(t.$options._parentVnode=i,t.$vnode=i,t._vnode&&(t._vnode.parent=i),t.$options._renderChildren=o,t.$attrs=i.data.attrs||r,t.$listeners=n||r,e&&t.$options.props){_t(!1);for(var u=t._props,h=t.$options._propKeys||[],p=0;p<h.length;p++){var d=h[p],f=t.$options.props;u[d]=Lt(d,f,e,t)}_t(!0),t.$options.propsData=e}n=n||r;var g=t.$options._parentListeners;t.$options._parentListeners=n,Ze(t,n,g),l&&(t.$slots=fe(o,i.context),t.$forceUpdate())}(e.componentInstance=t.componentInstance,n.propsData,n.listeners,e,n.children)},insert:function(t){var e,n=t.context,r=t.componentInstance;r._isMounted||(r._isMounted=!0,rn(r,"mounted")),t.data.keepAlive&&(n._isMounted?((e=r)._inactive=!1,sn.push(e)):en(r,!0))},destroy:function(t){var e=t.componentInstance;e._isDestroyed||(t.data.keepAlive?nn(e,!0):e.$destroy())}},$e=Object.keys(ze);function Be(t,e,n,a,l){if(!i(t)){var u=n.$options._base;if(c(t)&&(t=u.extend(t)),"function"==typeof t){var h;if(i(t.cid)&&void 0===(t=function(t,e){if(s(t.error)&&o(t.errorComp))return t.errorComp;if(o(t.resolved))return t.resolved;var n=We;if(n&&o(t.owners)&&-1===t.owners.indexOf(n)&&t.owners.push(n),s(t.loading)&&o(t.loadingComp))return t.loadingComp;if(n&&!o(t.owners)){var r=t.owners=[n],a=!0,l=null,u=null;n.$on("hook:destroyed",(function(){return m(r,n)}));var h=function(t){for(var e=0,n=r.length;e<n;e++)r[e].$forceUpdate();t&&(r.length=0,null!==l&&(clearTimeout(l),l=null),null!==u&&(clearTimeout(u),u=null))},d=D((function(n){t.resolved=Ve(n,e),a?r.length=0:h(!0)})),f=D((function(e){o(t.errorComp)&&(t.error=!0,h(!0))})),g=t(d,f);return c(g)&&(p(g)?i(t.resolved)&&g.then(d,f):p(g.component)&&(g.component.then(d,f),o(g.error)&&(t.errorComp=Ve(g.error,e)),o(g.loading)&&(t.loadingComp=Ve(g.loading,e),0===g.delay?t.loading=!0:l=setTimeout((function(){l=null,i(t.resolved)&&i(t.error)&&(t.loading=!0,h(!1))}),g.delay||200)),o(g.timeout)&&(u=setTimeout((function(){u=null,i(t.resolved)&&f(null)}),g.timeout)))),a=!1,t.loading?t.loadingComp:t.resolved}}(h=t,u)))return function(t,e,n,r,i){var o=gt();return o.asyncFactory=t,o.asyncMeta={data:e,context:n,children:r,tag:i},o}(h,e,n,a,l);e=e||{},Sn(t),o(e.model)&&function(t,e){var n=t.model&&t.model.prop||"value",r=t.model&&t.model.event||"input";(e.attrs||(e.attrs={}))[n]=e.model.value;var i=e.on||(e.on={}),s=i[r],a=e.model.callback;o(s)?(Array.isArray(s)?-1===s.indexOf(a):s!==a)&&(i[r]=[a].concat(s)):i[r]=a}(t.options,e);var d=function(t,e,n){var r=e.options.props;if(!i(r)){var s={},a=t.attrs,c=t.props;if(o(a)||o(c))for(var l in r){var u=S(l);le(s,c,l,u,!0)||le(s,a,l,u,!1)}return s}}(e,t);if(s(t.options.functional))return function(t,e,n,i,s){var a=t.options,c={},l=a.props;if(o(l))for(var u in l)c[u]=Lt(u,l,e||r);else o(n.attrs)&&Le(c,n.attrs),o(n.props)&&Le(c,n.props);var h=new De(n,c,s,i,t),p=a.render.call(null,h._c,h);if(p instanceof dt)return je(p,n,h.parent,a);if(Array.isArray(p)){for(var d=ue(p)||[],f=new Array(d.length),g=0;g<d.length;g++)f[g]=je(d[g],n,h.parent,a);return f}}(t,d,e,n,a);var f=e.on;if(e.on=e.nativeOn,s(t.options.abstract)){var g=e.slot;e={},g&&(e.slot=g)}!function(t){for(var e=t.hook||(t.hook={}),n=0;n<$e.length;n++){var r=$e[n],i=e[r],o=ze[r];i===o||i&&i._merged||(e[r]=i?He(o,i):o)}}(e);var v=t.options.name||l;return new dt("vue-component-"+t.cid+(v?"-"+v:""),e,void 0,void 0,void 0,n,{Ctor:t,propsData:d,listeners:f,tag:l,children:a},h)}}}function He(t,e){var n=function(n,r){t(n,r),e(n,r)};return n._merged=!0,n}function Ue(t,e,n,r,i,l){return(Array.isArray(n)||a(n))&&(i=r,r=n,n=void 0),s(l)&&(i=2),function(t,e,n,r,i){if(o(n)&&o(n.__ob__))return gt();if(o(n)&&o(n.is)&&(e=n.is),!e)return gt();var s,a,l;(Array.isArray(r)&&"function"==typeof r[0]&&((n=n||{}).scopedSlots={default:r[0]},r.length=0),2===i?r=ue(r):1===i&&(r=function(t){for(var e=0;e<t.length;e++)if(Array.isArray(t[e]))return Array.prototype.concat.apply([],t);return t}(r)),"string"==typeof e)?(a=t.$vnode&&t.$vnode.ns||$.getTagNamespace(e),s=$.isReservedTag(e)?new dt($.parsePlatformTagName(e),n,r,void 0,void 0,t):n&&n.pre||!o(l=jt(t.$options,"components",e))?new dt(e,n,r,void 0,void 0,t):Be(l,n,t,r,e)):s=Be(e,n,t,r);return Array.isArray(s)?s:o(s)?(o(a)&&Fe(s,a),o(n)&&function(t){c(t.style)&&re(t.style),c(t.class)&&re(t.class)}(n),s):gt()}(t,e,n,r,i)}function Fe(t,e,n){if(t.ns=e,"foreignObject"===t.tag&&(e=void 0,n=!0),o(t.children))for(var r=0,a=t.children.length;r<a;r++){var c=t.children[r];o(c.tag)&&(i(c.ns)||s(n)&&"svg"!==c.tag)&&Fe(c,e,n)}}var qe,We=null;function Ve(t,e){return(t.__esModule||st&&"Module"===t[Symbol.toStringTag])&&(t=t.default),c(t)?e.extend(t):t}function Ye(t){if(Array.isArray(t))for(var e=0;e<t.length;e++){var n=t[e];if(o(n)&&(o(n.componentOptions)||ve(n)))return n}}function Xe(t,e){qe.$on(t,e)}function Je(t,e){qe.$off(t,e)}function Ge(t,e){var n=qe;return function r(){var i=e.apply(null,arguments);null!==i&&n.$off(t,r)}}function Ze(t,e,n){qe=t,ae(e,n||{},Xe,Je,Ge,t),qe=void 0}var Ke=null;function Qe(t){var e=Ke;return Ke=t,function(){Ke=e}}function tn(t){for(;t&&(t=t.$parent);)if(t._inactive)return!0;return!1}function en(t,e){if(e){if(t._directInactive=!1,tn(t))return}else if(t._directInactive)return;if(t._inactive||null===t._inactive){t._inactive=!1;for(var n=0;n<t.$children.length;n++)en(t.$children[n]);rn(t,"activated")}}function nn(t,e){if(!(e&&(t._directInactive=!0,tn(t))||t._inactive)){t._inactive=!0;for(var n=0;n<t.$children.length;n++)nn(t.$children[n]);rn(t,"deactivated")}}function rn(t,e){ht();var n=t.$options[e],r=e+" hook";if(n)for(var i=0,o=n.length;i<o;i++)Ft(n[i],t,null,t,r);t._hasHookEvent&&t.$emit("hook:"+e),pt()}var on=[],sn=[],an={},cn=!1,ln=!1,un=0,hn=0,pn=Date.now;if(q&&!X){var dn=window.performance;dn&&"function"==typeof dn.now&&pn()>document.createEvent("Event").timeStamp&&(pn=function(){return dn.now()})}function fn(){var t,e;for(hn=pn(),ln=!0,on.sort((function(t,e){return t.id-e.id})),un=0;un<on.length;un++)(t=on[un]).before&&t.before(),e=t.id,an[e]=null,t.run();var n=sn.slice(),r=on.slice();un=on.length=sn.length=0,an={},cn=ln=!1,function(t){for(var e=0;e<t.length;e++)t[e]._inactive=!0,en(t[e],!0)}(n),function(t){for(var e=t.length;e--;){var n=t[e],r=n.vm;r._watcher===n&&r._isMounted&&!r._isDestroyed&&rn(r,"updated")}}(r),rt&&$.devtools&&rt.emit("flush")}var gn=0,vn=function(t,e,n,r,i){this.vm=t,i&&(t._watcher=this),t._watchers.push(this),r?(this.deep=!!r.deep,this.user=!!r.user,this.lazy=!!r.lazy,this.sync=!!r.sync,this.before=r.before):this.deep=this.user=this.lazy=this.sync=!1,this.cb=n,this.id=++gn,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new ot,this.newDepIds=new ot,this.expression="","function"==typeof e?this.getter=e:(this.getter=function(t){if(!U.test(t)){var e=t.split(".");return function(t){for(var n=0;n<e.length;n++){if(!t)return;t=t[e[n]]}return t}}}(e),this.getter||(this.getter=P)),this.value=this.lazy?void 0:this.get()};vn.prototype.get=function(){var t;ht(this);var e=this.vm;try{t=this.getter.call(e,e)}catch(t){if(!this.user)throw t;Ut(t,e,'getter for watcher "'+this.expression+'"')}finally{this.deep&&re(t),pt(),this.cleanupDeps()}return t},vn.prototype.addDep=function(t){var e=t.id;this.newDepIds.has(e)||(this.newDepIds.add(e),this.newDeps.push(t),this.depIds.has(e)||t.addSub(this))},vn.prototype.cleanupDeps=function(){for(var t=this.deps.length;t--;){var e=this.deps[t];this.newDepIds.has(e.id)||e.removeSub(this)}var n=this.depIds;this.depIds=this.newDepIds,this.newDepIds=n,this.newDepIds.clear(),n=this.deps,this.deps=this.newDeps,this.newDeps=n,this.newDeps.length=0},vn.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():function(t){var e=t.id;if(null==an[e]){if(an[e]=!0,ln){for(var n=on.length-1;n>un&&on[n].id>t.id;)n--;on.splice(n+1,0,t)}else on.push(t);cn||(cn=!0,ee(fn))}}(this)},vn.prototype.run=function(){if(this.active){var t=this.get();if(t!==this.value||c(t)||this.deep){var e=this.value;if(this.value=t,this.user){var n='callback for watcher "'+this.expression+'"';Ft(this.cb,this.vm,[t,e],this.vm,n)}else this.cb.call(this.vm,t,e)}}},vn.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},vn.prototype.depend=function(){for(var t=this.deps.length;t--;)this.deps[t].depend()},vn.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||m(this.vm._watchers,this);for(var t=this.deps.length;t--;)this.deps[t].removeSub(this);this.active=!1}};var mn={enumerable:!0,configurable:!0,get:P,set:P};function yn(t,e,n){mn.get=function(){return this[e][n]},mn.set=function(t){this[e][n]=t},Object.defineProperty(t,n,mn)}var bn={lazy:!0};function wn(t,e,n){var r=!nt();"function"==typeof n?(mn.get=r?xn(e):_n(n),mn.set=P):(mn.get=n.get?r&&!1!==n.cache?xn(e):_n(n.get):P,mn.set=n.set||P),Object.defineProperty(t,e,mn)}function xn(t){return function(){var e=this._computedWatchers&&this._computedWatchers[t];if(e)return e.dirty&&e.evaluate(),lt.target&&e.depend(),e.value}}function _n(t){return function(){return t.call(this,this)}}function kn(t,e,n,r){return u(n)&&(r=n,n=n.handler),"string"==typeof n&&(n=t[n]),t.$watch(e,n,r)}var Cn=0;function Sn(t){var e=t.options;if(t.super){var n=Sn(t.super);if(n!==t.superOptions){t.superOptions=n;var r=function(t){var e,n=t.options,r=t.sealedOptions;for(var i in n)n[i]!==r[i]&&(e||(e={}),e[i]=n[i]);return e}(t);r&&O(t.extendOptions,r),(e=t.options=Dt(n,t.extendOptions)).name&&(e.components[e.name]=t)}}return e}function An(t){this._init(t)}function En(t){return t&&(t.Ctor.options.name||t.tag)}function On(t,e){return Array.isArray(t)?t.indexOf(e)>-1:"string"==typeof t?t.split(",").indexOf(e)>-1:(n=t,!("[object RegExp]"!==l.call(n))&&t.test(e));var n}function Tn(t,e){var n=t.cache,r=t.keys,i=t._vnode;for(var o in n){var s=n[o];if(s){var a=s.name;a&&!e(a)&&Pn(n,o,r,i)}}}function Pn(t,e,n,r){var i=t[e];!i||r&&i.tag===r.tag||i.componentInstance.$destroy(),t[e]=null,m(n,e)}!function(t){t.prototype._init=function(t){var e=this;e._uid=Cn++,e._isVue=!0,t&&t._isComponent?function(t,e){var n=t.$options=Object.create(t.constructor.options),r=e._parentVnode;n.parent=e.parent,n._parentVnode=r;var i=r.componentOptions;n.propsData=i.propsData,n._parentListeners=i.listeners,n._renderChildren=i.children,n._componentTag=i.tag,e.render&&(n.render=e.render,n.staticRenderFns=e.staticRenderFns)}(e,t):e.$options=Dt(Sn(e.constructor),t||{},e),e._renderProxy=e,e._self=e,function(t){var e=t.$options,n=e.parent;if(n&&!e.abstract){for(;n.$options.abstract&&n.$parent;)n=n.$parent;n.$children.push(t)}t.$parent=n,t.$root=n?n.$root:t,t.$children=[],t.$refs={},t._watcher=null,t._inactive=null,t._directInactive=!1,t._isMounted=!1,t._isDestroyed=!1,t._isBeingDestroyed=!1}(e),function(t){t._events=Object.create(null),t._hasHookEvent=!1;var e=t.$options._parentListeners;e&&Ze(t,e)}(e),function(t){t._vnode=null,t._staticTrees=null;var e=t.$options,n=t.$vnode=e._parentVnode,i=n&&n.context;t.$slots=fe(e._renderChildren,i),t.$scopedSlots=r,t._c=function(e,n,r,i){return Ue(t,e,n,r,i,!1)},t.$createElement=function(e,n,r,i){return Ue(t,e,n,r,i,!0)};var o=n&&n.data;St(t,"$attrs",o&&o.attrs||r,null,!0),St(t,"$listeners",e._parentListeners||r,null,!0)}(e),rn(e,"beforeCreate"),function(t){var e=de(t.$options.inject,t);e&&(_t(!1),Object.keys(e).forEach((function(n){St(t,n,e[n])})),_t(!0))}(e),function(t){t._watchers=[];var e=t.$options;e.props&&function(t,e){var n=t.$options.propsData||{},r=t._props={},i=t.$options._propKeys=[];t.$parent&&_t(!1);var o=function(o){i.push(o);var s=Lt(o,e,n,t);St(r,o,s),o in t||yn(t,"_props",o)};for(var s in e)o(s);_t(!0)}(t,e.props),e.methods&&function(t,e){for(var n in t.$options.props,e)t[n]="function"!=typeof e[n]?P:A(e[n],t)}(t,e.methods),e.data?function(t){var e=t.$options.data;u(e=t._data="function"==typeof e?function(t,e){ht();try{return t.call(e,e)}catch(t){return Ut(t,e,"data()"),{}}finally{pt()}}(e,t):e||{})||(e={});for(var n,r=Object.keys(e),i=t.$options.props,o=(t.$options.methods,r.length);o--;){var s=r[o];i&&b(i,s)||(n=void 0,36===(n=(s+"").charCodeAt(0))||95===n)||yn(t,"_data",s)}Ct(e,!0)}(t):Ct(t._data={},!0),e.computed&&function(t,e){var n=t._computedWatchers=Object.create(null),r=nt();for(var i in e){var o=e[i],s="function"==typeof o?o:o.get;r||(n[i]=new vn(t,s||P,P,bn)),i in t||wn(t,i,o)}}(t,e.computed),e.watch&&e.watch!==Q&&function(t,e){for(var n in e){var r=e[n];if(Array.isArray(r))for(var i=0;i<r.length;i++)kn(t,n,r[i]);else kn(t,n,r)}}(t,e.watch)}(e),function(t){var e=t.$options.provide;e&&(t._provided="function"==typeof e?e.call(t):e)}(e),rn(e,"created"),e.$options.el&&e.$mount(e.$options.el)}}(An),function(t){Object.defineProperty(t.prototype,"$data",{get:function(){return this._data}}),Object.defineProperty(t.prototype,"$props",{get:function(){return this._props}}),t.prototype.$set=At,t.prototype.$delete=Et,t.prototype.$watch=function(t,e,n){var r=this;if(u(e))return kn(r,t,e,n);(n=n||{}).user=!0;var i=new vn(r,t,e,n);if(n.immediate){var o='callback for immediate watcher "'+i.expression+'"';ht(),Ft(e,r,[i.value],r,o),pt()}return function(){i.teardown()}}}(An),function(t){var e=/^hook:/;t.prototype.$on=function(t,n){var r=this;if(Array.isArray(t))for(var i=0,o=t.length;i<o;i++)r.$on(t[i],n);else(r._events[t]||(r._events[t]=[])).push(n),e.test(t)&&(r._hasHookEvent=!0);return r},t.prototype.$once=function(t,e){var n=this;function r(){n.$off(t,r),e.apply(n,arguments)}return r.fn=e,n.$on(t,r),n},t.prototype.$off=function(t,e){var n=this;if(!arguments.length)return n._events=Object.create(null),n;if(Array.isArray(t)){for(var r=0,i=t.length;r<i;r++)n.$off(t[r],e);return n}var o,s=n._events[t];if(!s)return n;if(!e)return n._events[t]=null,n;for(var a=s.length;a--;)if((o=s[a])===e||o.fn===e){s.splice(a,1);break}return n},t.prototype.$emit=function(t){var e=this,n=e._events[t];if(n){n=n.length>1?E(n):n;for(var r=E(arguments,1),i='event handler for "'+t+'"',o=0,s=n.length;o<s;o++)Ft(n[o],e,r,e,i)}return e}}(An),function(t){t.prototype._update=function(t,e){var n=this,r=n.$el,i=n._vnode,o=Qe(n);n._vnode=t,n.$el=i?n.__patch__(i,t):n.__patch__(n.$el,t,e,!1),o(),r&&(r.__vue__=null),n.$el&&(n.$el.__vue__=n),n.$vnode&&n.$parent&&n.$vnode===n.$parent._vnode&&(n.$parent.$el=n.$el)},t.prototype.$forceUpdate=function(){this._watcher&&this._watcher.update()},t.prototype.$destroy=function(){var t=this;if(!t._isBeingDestroyed){rn(t,"beforeDestroy"),t._isBeingDestroyed=!0;var e=t.$parent;!e||e._isBeingDestroyed||t.$options.abstract||m(e.$children,t),t._watcher&&t._watcher.teardown();for(var n=t._watchers.length;n--;)t._watchers[n].teardown();t._data.__ob__&&t._data.__ob__.vmCount--,t._isDestroyed=!0,t.__patch__(t._vnode,null),rn(t,"destroyed"),t.$off(),t.$el&&(t.$el.__vue__=null),t.$vnode&&(t.$vnode.parent=null)}}}(An),function(t){Ne(t.prototype),t.prototype.$nextTick=function(t){return ee(t,this)},t.prototype._render=function(){var t,e=this,n=e.$options,r=n.render,i=n._parentVnode;i&&(e.$scopedSlots=me(i.data.scopedSlots,e.$slots,e.$scopedSlots)),e.$vnode=i;try{We=e,t=r.call(e._renderProxy,e.$createElement)}catch(n){Ut(n,e,"render"),t=e._vnode}finally{We=null}return Array.isArray(t)&&1===t.length&&(t=t[0]),t instanceof dt||(t=gt()),t.parent=i,t}}(An);var In=[String,RegExp,Array],Mn={KeepAlive:{name:"keep-alive",abstract:!0,props:{include:In,exclude:In,max:[String,Number]},methods:{cacheVNode:function(){var t=this,e=t.cache,n=t.keys,r=t.vnodeToCache,i=t.keyToCache;if(r){var o=r.tag,s=r.componentInstance,a=r.componentOptions;e[i]={name:En(a),tag:o,componentInstance:s},n.push(i),this.max&&n.length>parseInt(this.max)&&Pn(e,n[0],n,this._vnode),this.vnodeToCache=null}}},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var t in this.cache)Pn(this.cache,t,this.keys)},mounted:function(){var t=this;this.cacheVNode(),this.$watch("include",(function(e){Tn(t,(function(t){return On(e,t)}))})),this.$watch("exclude",(function(e){Tn(t,(function(t){return!On(e,t)}))}))},updated:function(){this.cacheVNode()},render:function(){var t=this.$slots.default,e=Ye(t),n=e&&e.componentOptions;if(n){var r=En(n),i=this.include,o=this.exclude;if(i&&(!r||!On(i,r))||o&&r&&On(o,r))return e;var s=this.cache,a=this.keys,c=null==e.key?n.Ctor.cid+(n.tag?"::"+n.tag:""):e.key;s[c]?(e.componentInstance=s[c].componentInstance,m(a,c),a.push(c)):(this.vnodeToCache=e,this.keyToCache=c),e.data.keepAlive=!0}return e||t&&t[0]}}};!function(t){var e={get:function(){return $}};Object.defineProperty(t,"config",e),t.util={warn:at,extend:O,mergeOptions:Dt,defineReactive:St},t.set=At,t.delete=Et,t.nextTick=ee,t.observable=function(t){return Ct(t),t},t.options=Object.create(null),L.forEach((function(e){t.options[e+"s"]=Object.create(null)})),t.options._base=t,O(t.options.components,Mn),function(t){t.use=function(t){var e=this._installedPlugins||(this._installedPlugins=[]);if(e.indexOf(t)>-1)return this;var n=E(arguments,1);return n.unshift(this),"function"==typeof t.install?t.install.apply(t,n):"function"==typeof t&&t.apply(null,n),e.push(t),this}}(t),function(t){t.mixin=function(t){return this.options=Dt(this.options,t),this}}(t),function(t){t.cid=0;var e=1;t.extend=function(t){t=t||{};var n=this,r=n.cid,i=t._Ctor||(t._Ctor={});if(i[r])return i[r];var o=t.name||n.options.name,s=function(t){this._init(t)};return(s.prototype=Object.create(n.prototype)).constructor=s,s.cid=e++,s.options=Dt(n.options,t),s.super=n,s.options.props&&function(t){var e=t.options.props;for(var n in e)yn(t.prototype,"_props",n)}(s),s.options.computed&&function(t){var e=t.options.computed;for(var n in e)wn(t.prototype,n,e[n])}(s),s.extend=n.extend,s.mixin=n.mixin,s.use=n.use,L.forEach((function(t){s[t]=n[t]})),o&&(s.options.components[o]=s),s.superOptions=n.options,s.extendOptions=t,s.sealedOptions=O({},s.options),i[r]=s,s}}(t),function(t){L.forEach((function(e){t[e]=function(t,n){return n?("component"===e&&u(n)&&(n.name=n.name||t,n=this.options._base.extend(n)),"directive"===e&&"function"==typeof n&&(n={bind:n,update:n}),this.options[e+"s"][t]=n,n):this.options[e+"s"][t]}}))}(t)}(An),Object.defineProperty(An.prototype,"$isServer",{get:nt}),Object.defineProperty(An.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(An,"FunctionalRenderContext",{value:De}),An.version="2.6.14";var Rn=g("style,class"),Nn=g("input,textarea,option,select,progress"),Dn=g("contenteditable,draggable,spellcheck"),jn=g("events,caret,typing,plaintext-only"),Ln=g("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,truespeed,typemustmatch,visible"),zn="http://www.w3.org/1999/xlink",$n=function(t){return":"===t.charAt(5)&&"xlink"===t.slice(0,5)},Bn=function(t){return $n(t)?t.slice(6,t.length):""},Hn=function(t){return null==t||!1===t};function Un(t,e){return{staticClass:Fn(t.staticClass,e.staticClass),class:o(t.class)?[t.class,e.class]:e.class}}function Fn(t,e){return t?e?t+" "+e:t:e||""}function qn(t){return Array.isArray(t)?function(t){for(var e,n="",r=0,i=t.length;r<i;r++)o(e=qn(t[r]))&&""!==e&&(n&&(n+=" "),n+=e);return n}(t):c(t)?function(t){var e="";for(var n in t)t[n]&&(e&&(e+=" "),e+=n);return e}(t):"string"==typeof t?t:""}var Wn={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"},Vn=g("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,menuitem,summary,content,element,shadow,template,blockquote,iframe,tfoot"),Yn=g("svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,foreignobject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view",!0),Xn=function(t){return Vn(t)||Yn(t)},Jn=Object.create(null),Gn=g("text,number,password,search,email,tel,url"),Zn=Object.freeze({createElement:function(t,e){var n=document.createElement(t);return"select"!==t||e.data&&e.data.attrs&&void 0!==e.data.attrs.multiple&&n.setAttribute("multiple","multiple"),n},createElementNS:function(t,e){return document.createElementNS(Wn[t],e)},createTextNode:function(t){return document.createTextNode(t)},createComment:function(t){return document.createComment(t)},insertBefore:function(t,e,n){t.insertBefore(e,n)},removeChild:function(t,e){t.removeChild(e)},appendChild:function(t,e){t.appendChild(e)},parentNode:function(t){return t.parentNode},nextSibling:function(t){return t.nextSibling},tagName:function(t){return t.tagName},setTextContent:function(t,e){t.textContent=e},setStyleScope:function(t,e){t.setAttribute(e,"")}}),Kn={create:function(t,e){Qn(e)},update:function(t,e){t.data.ref!==e.data.ref&&(Qn(t,!0),Qn(e))},destroy:function(t){Qn(t,!0)}};function Qn(t,e){var n=t.data.ref;if(o(n)){var r=t.context,i=t.componentInstance||t.elm,s=r.$refs;e?Array.isArray(s[n])?m(s[n],i):s[n]===i&&(s[n]=void 0):t.data.refInFor?Array.isArray(s[n])?s[n].indexOf(i)<0&&s[n].push(i):s[n]=[i]:s[n]=i}}var tr=new dt("",{},[]),er=["create","activate","update","remove","destroy"];function nr(t,e){return t.key===e.key&&t.asyncFactory===e.asyncFactory&&(t.tag===e.tag&&t.isComment===e.isComment&&o(t.data)===o(e.data)&&function(t,e){if("input"!==t.tag)return!0;var n,r=o(n=t.data)&&o(n=n.attrs)&&n.type,i=o(n=e.data)&&o(n=n.attrs)&&n.type;return r===i||Gn(r)&&Gn(i)}(t,e)||s(t.isAsyncPlaceholder)&&i(e.asyncFactory.error))}function rr(t,e,n){var r,i,s={};for(r=e;r<=n;++r)o(i=t[r].key)&&(s[i]=r);return s}var ir={create:or,update:or,destroy:function(t){or(t,tr)}};function or(t,e){(t.data.directives||e.data.directives)&&function(t,e){var n,r,i,o=t===tr,s=e===tr,a=ar(t.data.directives,t.context),c=ar(e.data.directives,e.context),l=[],u=[];for(n in c)r=a[n],i=c[n],r?(i.oldValue=r.value,i.oldArg=r.arg,lr(i,"update",e,t),i.def&&i.def.componentUpdated&&u.push(i)):(lr(i,"bind",e,t),i.def&&i.def.inserted&&l.push(i));if(l.length){var h=function(){for(var n=0;n<l.length;n++)lr(l[n],"inserted",e,t)};o?ce(e,"insert",h):h()}if(u.length&&ce(e,"postpatch",(function(){for(var n=0;n<u.length;n++)lr(u[n],"componentUpdated",e,t)})),!o)for(n in a)c[n]||lr(a[n],"unbind",t,t,s)}(t,e)}var sr=Object.create(null);function ar(t,e){var n,r,i=Object.create(null);if(!t)return i;for(n=0;n<t.length;n++)(r=t[n]).modifiers||(r.modifiers=sr),i[cr(r)]=r,r.def=jt(e.$options,"directives",r.name);return i}function cr(t){return t.rawName||t.name+"."+Object.keys(t.modifiers||{}).join(".")}function lr(t,e,n,r,i){var o=t.def&&t.def[e];if(o)try{o(n.elm,t,n,r,i)}catch(r){Ut(r,n.context,"directive "+t.name+" "+e+" hook")}}var ur=[Kn,ir];function hr(t,e){var n=e.componentOptions;if(!(o(n)&&!1===n.Ctor.options.inheritAttrs||i(t.data.attrs)&&i(e.data.attrs))){var r,s,a=e.elm,c=t.data.attrs||{},l=e.data.attrs||{};for(r in o(l.__ob__)&&(l=e.data.attrs=O({},l)),l)s=l[r],c[r]!==s&&pr(a,r,s,e.data.pre);for(r in(X||G)&&l.value!==c.value&&pr(a,"value",l.value),c)i(l[r])&&($n(r)?a.removeAttributeNS(zn,Bn(r)):Dn(r)||a.removeAttribute(r))}}function pr(t,e,n,r){r||t.tagName.indexOf("-")>-1?dr(t,e,n):Ln(e)?Hn(n)?t.removeAttribute(e):(n="allowfullscreen"===e&&"EMBED"===t.tagName?"true":e,t.setAttribute(e,n)):Dn(e)?t.setAttribute(e,function(t,e){return Hn(e)||"false"===e?"false":"contenteditable"===t&&jn(e)?e:"true"}(e,n)):$n(e)?Hn(n)?t.removeAttributeNS(zn,Bn(e)):t.setAttributeNS(zn,e,n):dr(t,e,n)}function dr(t,e,n){if(Hn(n))t.removeAttribute(e);else{if(X&&!J&&"TEXTAREA"===t.tagName&&"placeholder"===e&&""!==n&&!t.__ieph){var r=function(e){e.stopImmediatePropagation(),t.removeEventListener("input",r)};t.addEventListener("input",r),t.__ieph=!0}t.setAttribute(e,n)}}var fr={create:hr,update:hr};function gr(t,e){var n=e.elm,r=e.data,s=t.data;if(!(i(r.staticClass)&&i(r.class)&&(i(s)||i(s.staticClass)&&i(s.class)))){var a=function(t){for(var e=t.data,n=t,r=t;o(r.componentInstance);)(r=r.componentInstance._vnode)&&r.data&&(e=Un(r.data,e));for(;o(n=n.parent);)n&&n.data&&(e=Un(e,n.data));return i=e.staticClass,s=e.class,o(i)||o(s)?Fn(i,qn(s)):"";var i,s}(e),c=n._transitionClasses;o(c)&&(a=Fn(a,qn(c))),a!==n._prevClass&&(n.setAttribute("class",a),n._prevClass=a)}}var vr,mr={create:gr,update:gr};function yr(t,e,n){var r=vr;return function i(){var o=e.apply(null,arguments);null!==o&&xr(t,i,n,r)}}var br=Yt&&!(K&&Number(K[1])<=53);function wr(t,e,n,r){if(br){var i=hn,o=e;e=o._wrapper=function(t){if(t.target===t.currentTarget||t.timeStamp>=i||t.timeStamp<=0||t.target.ownerDocument!==document)return o.apply(this,arguments)}}vr.addEventListener(t,e,tt?{capture:n,passive:r}:n)}function xr(t,e,n,r){(r||vr).removeEventListener(t,e._wrapper||e,n)}function _r(t,e){if(!i(t.data.on)||!i(e.data.on)){var n=e.data.on||{},r=t.data.on||{};vr=e.elm,function(t){if(o(t.__r)){var e=X?"change":"input";t[e]=[].concat(t.__r,t[e]||[]),delete t.__r}o(t.__c)&&(t.change=[].concat(t.__c,t.change||[]),delete t.__c)}(n),ae(n,r,wr,xr,yr,e.context),vr=void 0}}var kr,Cr={create:_r,update:_r};function Sr(t,e){if(!i(t.data.domProps)||!i(e.data.domProps)){var n,r,s=e.elm,a=t.data.domProps||{},c=e.data.domProps||{};for(n in o(c.__ob__)&&(c=e.data.domProps=O({},c)),a)n in c||(s[n]="");for(n in c){if(r=c[n],"textContent"===n||"innerHTML"===n){if(e.children&&(e.children.length=0),r===a[n])continue;1===s.childNodes.length&&s.removeChild(s.childNodes[0])}if("value"===n&&"PROGRESS"!==s.tagName){s._value=r;var l=i(r)?"":String(r);Ar(s,l)&&(s.value=l)}else if("innerHTML"===n&&Yn(s.tagName)&&i(s.innerHTML)){(kr=kr||document.createElement("div")).innerHTML="<svg>"+r+"</svg>";for(var u=kr.firstChild;s.firstChild;)s.removeChild(s.firstChild);for(;u.firstChild;)s.appendChild(u.firstChild)}else if(r!==a[n])try{s[n]=r}catch(t){}}}}function Ar(t,e){return!t.composing&&("OPTION"===t.tagName||function(t,e){var n=!0;try{n=document.activeElement!==t}catch(t){}return n&&t.value!==e}(t,e)||function(t,e){var n=t.value,r=t._vModifiers;if(o(r)){if(r.number)return f(n)!==f(e);if(r.trim)return n.trim()!==e.trim()}return n!==e}(t,e))}var Er={create:Sr,update:Sr},Or=w((function(t){var e={},n=/:(.+)/;return t.split(/;(?![^(]*\))/g).forEach((function(t){if(t){var r=t.split(n);r.length>1&&(e[r[0].trim()]=r[1].trim())}})),e}));function Tr(t){var e=Pr(t.style);return t.staticStyle?O(t.staticStyle,e):e}function Pr(t){return Array.isArray(t)?T(t):"string"==typeof t?Or(t):t}var Ir,Mr=/^--/,Rr=/\s*!important$/,Nr=function(t,e,n){if(Mr.test(e))t.style.setProperty(e,n);else if(Rr.test(n))t.style.setProperty(S(e),n.replace(Rr,""),"important");else{var r=jr(e);if(Array.isArray(n))for(var i=0,o=n.length;i<o;i++)t.style[r]=n[i];else t.style[r]=n}},Dr=["Webkit","Moz","ms"],jr=w((function(t){if(Ir=Ir||document.createElement("div").style,"filter"!==(t=_(t))&&t in Ir)return t;for(var e=t.charAt(0).toUpperCase()+t.slice(1),n=0;n<Dr.length;n++){var r=Dr[n]+e;if(r in Ir)return r}}));function Lr(t,e){var n=e.data,r=t.data;if(!(i(n.staticStyle)&&i(n.style)&&i(r.staticStyle)&&i(r.style))){var s,a,c=e.elm,l=r.staticStyle,u=r.normalizedStyle||r.style||{},h=l||u,p=Pr(e.data.style)||{};e.data.normalizedStyle=o(p.__ob__)?O({},p):p;var d=function(t,e){for(var n,r={},i=t;i.componentInstance;)(i=i.componentInstance._vnode)&&i.data&&(n=Tr(i.data))&&O(r,n);(n=Tr(t.data))&&O(r,n);for(var o=t;o=o.parent;)o.data&&(n=Tr(o.data))&&O(r,n);return r}(e);for(a in h)i(d[a])&&Nr(c,a,"");for(a in d)(s=d[a])!==h[a]&&Nr(c,a,null==s?"":s)}}var zr={create:Lr,update:Lr},$r=/\s+/;function Br(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split($r).forEach((function(e){return t.classList.add(e)})):t.classList.add(e);else{var n=" "+(t.getAttribute("class")||"")+" ";n.indexOf(" "+e+" ")<0&&t.setAttribute("class",(n+e).trim())}}function Hr(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split($r).forEach((function(e){return t.classList.remove(e)})):t.classList.remove(e),t.classList.length||t.removeAttribute("class");else{for(var n=" "+(t.getAttribute("class")||"")+" ",r=" "+e+" ";n.indexOf(r)>=0;)n=n.replace(r," ");(n=n.trim())?t.setAttribute("class",n):t.removeAttribute("class")}}function Ur(t){if(t){if("object"==typeof t){var e={};return!1!==t.css&&O(e,Fr(t.name||"v")),O(e,t),e}return"string"==typeof t?Fr(t):void 0}}var Fr=w((function(t){return{enterClass:t+"-enter",enterToClass:t+"-enter-to",enterActiveClass:t+"-enter-active",leaveClass:t+"-leave",leaveToClass:t+"-leave-to",leaveActiveClass:t+"-leave-active"}})),qr=q&&!J,Wr="transition",Vr="animation",Yr="transition",Xr="transitionend",Jr="animation",Gr="animationend";qr&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(Yr="WebkitTransition",Xr="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(Jr="WebkitAnimation",Gr="webkitAnimationEnd"));var Zr=q?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(t){return t()};function Kr(t){Zr((function(){Zr(t)}))}function Qr(t,e){var n=t._transitionClasses||(t._transitionClasses=[]);n.indexOf(e)<0&&(n.push(e),Br(t,e))}function ti(t,e){t._transitionClasses&&m(t._transitionClasses,e),Hr(t,e)}function ei(t,e,n){var r=ri(t,e),i=r.type,o=r.timeout,s=r.propCount;if(!i)return n();var a=i===Wr?Xr:Gr,c=0,l=function(){t.removeEventListener(a,u),n()},u=function(e){e.target===t&&++c>=s&&l()};setTimeout((function(){c<s&&l()}),o+1),t.addEventListener(a,u)}var ni=/\b(transform|all)(,|$)/;function ri(t,e){var n,r=window.getComputedStyle(t),i=(r[Yr+"Delay"]||"").split(", "),o=(r[Yr+"Duration"]||"").split(", "),s=ii(i,o),a=(r[Jr+"Delay"]||"").split(", "),c=(r[Jr+"Duration"]||"").split(", "),l=ii(a,c),u=0,h=0;return e===Wr?s>0&&(n=Wr,u=s,h=o.length):e===Vr?l>0&&(n=Vr,u=l,h=c.length):h=(n=(u=Math.max(s,l))>0?s>l?Wr:Vr:null)?n===Wr?o.length:c.length:0,{type:n,timeout:u,propCount:h,hasTransform:n===Wr&&ni.test(r[Yr+"Property"])}}function ii(t,e){for(;t.length<e.length;)t=t.concat(t);return Math.max.apply(null,e.map((function(e,n){return oi(e)+oi(t[n])})))}function oi(t){return 1e3*Number(t.slice(0,-1).replace(",","."))}function si(t,e){var n=t.elm;o(n._leaveCb)&&(n._leaveCb.cancelled=!0,n._leaveCb());var r=Ur(t.data.transition);if(!i(r)&&!o(n._enterCb)&&1===n.nodeType){for(var s=r.css,a=r.type,l=r.enterClass,u=r.enterToClass,h=r.enterActiveClass,p=r.appearClass,d=r.appearToClass,g=r.appearActiveClass,v=r.beforeEnter,m=r.enter,y=r.afterEnter,b=r.enterCancelled,w=r.beforeAppear,x=r.appear,_=r.afterAppear,k=r.appearCancelled,C=r.duration,S=Ke,A=Ke.$vnode;A&&A.parent;)S=A.context,A=A.parent;var E=!S._isMounted||!t.isRootInsert;if(!E||x||""===x){var O=E&&p?p:l,T=E&&g?g:h,P=E&&d?d:u,I=E&&w||v,M=E&&"function"==typeof x?x:m,R=E&&_||y,N=E&&k||b,j=f(c(C)?C.enter:C),L=!1!==s&&!J,z=li(M),$=n._enterCb=D((function(){L&&(ti(n,P),ti(n,T)),$.cancelled?(L&&ti(n,O),N&&N(n)):R&&R(n),n._enterCb=null}));t.data.show||ce(t,"insert",(function(){var e=n.parentNode,r=e&&e._pending&&e._pending[t.key];r&&r.tag===t.tag&&r.elm._leaveCb&&r.elm._leaveCb(),M&&M(n,$)})),I&&I(n),L&&(Qr(n,O),Qr(n,T),Kr((function(){ti(n,O),$.cancelled||(Qr(n,P),z||(ci(j)?setTimeout($,j):ei(n,a,$)))}))),t.data.show&&(e&&e(),M&&M(n,$)),L||z||$()}}}function ai(t,e){var n=t.elm;o(n._enterCb)&&(n._enterCb.cancelled=!0,n._enterCb());var r=Ur(t.data.transition);if(i(r)||1!==n.nodeType)return e();if(!o(n._leaveCb)){var s=r.css,a=r.type,l=r.leaveClass,u=r.leaveToClass,h=r.leaveActiveClass,p=r.beforeLeave,d=r.leave,g=r.afterLeave,v=r.leaveCancelled,m=r.delayLeave,y=r.duration,b=!1!==s&&!J,w=li(d),x=f(c(y)?y.leave:y),_=n._leaveCb=D((function(){n.parentNode&&n.parentNode._pending&&(n.parentNode._pending[t.key]=null),b&&(ti(n,u),ti(n,h)),_.cancelled?(b&&ti(n,l),v&&v(n)):(e(),g&&g(n)),n._leaveCb=null}));m?m(k):k()}function k(){_.cancelled||(!t.data.show&&n.parentNode&&((n.parentNode._pending||(n.parentNode._pending={}))[t.key]=t),p&&p(n),b&&(Qr(n,l),Qr(n,h),Kr((function(){ti(n,l),_.cancelled||(Qr(n,u),w||(ci(x)?setTimeout(_,x):ei(n,a,_)))}))),d&&d(n,_),b||w||_())}}function ci(t){return"number"==typeof t&&!isNaN(t)}function li(t){if(i(t))return!1;var e=t.fns;return o(e)?li(Array.isArray(e)?e[0]:e):(t._length||t.length)>1}function ui(t,e){!0!==e.data.show&&si(e)}var hi=function(t){var e,n,r={},c=t.modules,l=t.nodeOps;for(e=0;e<er.length;++e)for(r[er[e]]=[],n=0;n<c.length;++n)o(c[n][er[e]])&&r[er[e]].push(c[n][er[e]]);function u(t){var e=l.parentNode(t);o(e)&&l.removeChild(e,t)}function h(t,e,n,i,a,c,u){if(o(t.elm)&&o(c)&&(t=c[u]=mt(t)),t.isRootInsert=!a,!function(t,e,n,i){var a=t.data;if(o(a)){var c=o(t.componentInstance)&&a.keepAlive;if(o(a=a.hook)&&o(a=a.init)&&a(t,!1),o(t.componentInstance))return p(t,e),d(n,t.elm,i),s(c)&&function(t,e,n,i){for(var s,a=t;a.componentInstance;)if(o(s=(a=a.componentInstance._vnode).data)&&o(s=s.transition)){for(s=0;s<r.activate.length;++s)r.activate[s](tr,a);e.push(a);break}d(n,t.elm,i)}(t,e,n,i),!0}}(t,e,n,i)){var h=t.data,g=t.children,v=t.tag;o(v)?(t.elm=t.ns?l.createElementNS(t.ns,v):l.createElement(v,t),y(t),f(t,g,e),o(h)&&m(t,e),d(n,t.elm,i)):s(t.isComment)?(t.elm=l.createComment(t.text),d(n,t.elm,i)):(t.elm=l.createTextNode(t.text),d(n,t.elm,i))}}function p(t,e){o(t.data.pendingInsert)&&(e.push.apply(e,t.data.pendingInsert),t.data.pendingInsert=null),t.elm=t.componentInstance.$el,v(t)?(m(t,e),y(t)):(Qn(t),e.push(t))}function d(t,e,n){o(t)&&(o(n)?l.parentNode(n)===t&&l.insertBefore(t,e,n):l.appendChild(t,e))}function f(t,e,n){if(Array.isArray(e))for(var r=0;r<e.length;++r)h(e[r],n,t.elm,null,!0,e,r);else a(t.text)&&l.appendChild(t.elm,l.createTextNode(String(t.text)))}function v(t){for(;t.componentInstance;)t=t.componentInstance._vnode;return o(t.tag)}function m(t,n){for(var i=0;i<r.create.length;++i)r.create[i](tr,t);o(e=t.data.hook)&&(o(e.create)&&e.create(tr,t),o(e.insert)&&n.push(t))}function y(t){var e;if(o(e=t.fnScopeId))l.setStyleScope(t.elm,e);else for(var n=t;n;)o(e=n.context)&&o(e=e.$options._scopeId)&&l.setStyleScope(t.elm,e),n=n.parent;o(e=Ke)&&e!==t.context&&e!==t.fnContext&&o(e=e.$options._scopeId)&&l.setStyleScope(t.elm,e)}function b(t,e,n,r,i,o){for(;r<=i;++r)h(n[r],o,t,e,!1,n,r)}function w(t){var e,n,i=t.data;if(o(i))for(o(e=i.hook)&&o(e=e.destroy)&&e(t),e=0;e<r.destroy.length;++e)r.destroy[e](t);if(o(e=t.children))for(n=0;n<t.children.length;++n)w(t.children[n])}function x(t,e,n){for(;e<=n;++e){var r=t[e];o(r)&&(o(r.tag)?(_(r),w(r)):u(r.elm))}}function _(t,e){if(o(e)||o(t.data)){var n,i=r.remove.length+1;for(o(e)?e.listeners+=i:e=function(t,e){function n(){0==--n.listeners&&u(t)}return n.listeners=e,n}(t.elm,i),o(n=t.componentInstance)&&o(n=n._vnode)&&o(n.data)&&_(n,e),n=0;n<r.remove.length;++n)r.remove[n](t,e);o(n=t.data.hook)&&o(n=n.remove)?n(t,e):e()}else u(t.elm)}function k(t,e,n,r){for(var i=n;i<r;i++){var s=e[i];if(o(s)&&nr(t,s))return i}}function C(t,e,n,a,c,u){if(t!==e){o(e.elm)&&o(a)&&(e=a[c]=mt(e));var p=e.elm=t.elm;if(s(t.isAsyncPlaceholder))o(e.asyncFactory.resolved)?E(t.elm,e,n):e.isAsyncPlaceholder=!0;else if(s(e.isStatic)&&s(t.isStatic)&&e.key===t.key&&(s(e.isCloned)||s(e.isOnce)))e.componentInstance=t.componentInstance;else{var d,f=e.data;o(f)&&o(d=f.hook)&&o(d=d.prepatch)&&d(t,e);var g=t.children,m=e.children;if(o(f)&&v(e)){for(d=0;d<r.update.length;++d)r.update[d](t,e);o(d=f.hook)&&o(d=d.update)&&d(t,e)}i(e.text)?o(g)&&o(m)?g!==m&&function(t,e,n,r,s){for(var a,c,u,p=0,d=0,f=e.length-1,g=e[0],v=e[f],m=n.length-1,y=n[0],w=n[m],_=!s;p<=f&&d<=m;)i(g)?g=e[++p]:i(v)?v=e[--f]:nr(g,y)?(C(g,y,r,n,d),g=e[++p],y=n[++d]):nr(v,w)?(C(v,w,r,n,m),v=e[--f],w=n[--m]):nr(g,w)?(C(g,w,r,n,m),_&&l.insertBefore(t,g.elm,l.nextSibling(v.elm)),g=e[++p],w=n[--m]):nr(v,y)?(C(v,y,r,n,d),_&&l.insertBefore(t,v.elm,g.elm),v=e[--f],y=n[++d]):(i(a)&&(a=rr(e,p,f)),i(c=o(y.key)?a[y.key]:k(y,e,p,f))?h(y,r,t,g.elm,!1,n,d):nr(u=e[c],y)?(C(u,y,r,n,d),e[c]=void 0,_&&l.insertBefore(t,u.elm,g.elm)):h(y,r,t,g.elm,!1,n,d),y=n[++d]);p>f?b(t,i(n[m+1])?null:n[m+1].elm,n,d,m,r):d>m&&x(e,p,f)}(p,g,m,n,u):o(m)?(o(t.text)&&l.setTextContent(p,""),b(p,null,m,0,m.length-1,n)):o(g)?x(g,0,g.length-1):o(t.text)&&l.setTextContent(p,""):t.text!==e.text&&l.setTextContent(p,e.text),o(f)&&o(d=f.hook)&&o(d=d.postpatch)&&d(t,e)}}}function S(t,e,n){if(s(n)&&o(t.parent))t.parent.data.pendingInsert=e;else for(var r=0;r<e.length;++r)e[r].data.hook.insert(e[r])}var A=g("attrs,class,staticClass,staticStyle,key");function E(t,e,n,r){var i,a=e.tag,c=e.data,l=e.children;if(r=r||c&&c.pre,e.elm=t,s(e.isComment)&&o(e.asyncFactory))return e.isAsyncPlaceholder=!0,!0;if(o(c)&&(o(i=c.hook)&&o(i=i.init)&&i(e,!0),o(i=e.componentInstance)))return p(e,n),!0;if(o(a)){if(o(l))if(t.hasChildNodes())if(o(i=c)&&o(i=i.domProps)&&o(i=i.innerHTML)){if(i!==t.innerHTML)return!1}else{for(var u=!0,h=t.firstChild,d=0;d<l.length;d++){if(!h||!E(h,l[d],n,r)){u=!1;break}h=h.nextSibling}if(!u||h)return!1}else f(e,l,n);if(o(c)){var g=!1;for(var v in c)if(!A(v)){g=!0,m(e,n);break}!g&&c.class&&re(c.class)}}else t.data!==e.text&&(t.data=e.text);return!0}return function(t,e,n,a){if(!i(e)){var c,u=!1,p=[];if(i(t))u=!0,h(e,p);else{var d=o(t.nodeType);if(!d&&nr(t,e))C(t,e,p,null,null,a);else{if(d){if(1===t.nodeType&&t.hasAttribute(j)&&(t.removeAttribute(j),n=!0),s(n)&&E(t,e,p))return S(e,p,!0),t;c=t,t=new dt(l.tagName(c).toLowerCase(),{},[],void 0,c)}var f=t.elm,g=l.parentNode(f);if(h(e,p,f._leaveCb?null:g,l.nextSibling(f)),o(e.parent))for(var m=e.parent,y=v(e);m;){for(var b=0;b<r.destroy.length;++b)r.destroy[b](m);if(m.elm=e.elm,y){for(var _=0;_<r.create.length;++_)r.create[_](tr,m);var k=m.data.hook.insert;if(k.merged)for(var A=1;A<k.fns.length;A++)k.fns[A]()}else Qn(m);m=m.parent}o(g)?x([t],0,0):o(t.tag)&&w(t)}}return S(e,p,u),e.elm}o(t)&&w(t)}}({nodeOps:Zn,modules:[fr,mr,Cr,Er,zr,q?{create:ui,activate:ui,remove:function(t,e){!0!==t.data.show?ai(t,e):e()}}:{}].concat(ur)});J&&document.addEventListener("selectionchange",(function(){var t=document.activeElement;t&&t.vmodel&&bi(t,"input")}));var pi={inserted:function(t,e,n,r){"select"===n.tag?(r.elm&&!r.elm._vOptions?ce(n,"postpatch",(function(){pi.componentUpdated(t,e,n)})):di(t,e,n.context),t._vOptions=[].map.call(t.options,vi)):("textarea"===n.tag||Gn(t.type))&&(t._vModifiers=e.modifiers,e.modifiers.lazy||(t.addEventListener("compositionstart",mi),t.addEventListener("compositionend",yi),t.addEventListener("change",yi),J&&(t.vmodel=!0)))},componentUpdated:function(t,e,n){if("select"===n.tag){di(t,e,n.context);var r=t._vOptions,i=t._vOptions=[].map.call(t.options,vi);i.some((function(t,e){return!R(t,r[e])}))&&(t.multiple?e.value.some((function(t){return gi(t,i)})):e.value!==e.oldValue&&gi(e.value,i))&&bi(t,"change")}}};function di(t,e,n){fi(t,e),(X||G)&&setTimeout((function(){fi(t,e)}),0)}function fi(t,e,n){var r=e.value,i=t.multiple;if(!i||Array.isArray(r)){for(var o,s,a=0,c=t.options.length;a<c;a++)if(s=t.options[a],i)o=N(r,vi(s))>-1,s.selected!==o&&(s.selected=o);else if(R(vi(s),r))return void(t.selectedIndex!==a&&(t.selectedIndex=a));i||(t.selectedIndex=-1)}}function gi(t,e){return e.every((function(e){return!R(e,t)}))}function vi(t){return"_value"in t?t._value:t.value}function mi(t){t.target.composing=!0}function yi(t){t.target.composing&&(t.target.composing=!1,bi(t.target,"input"))}function bi(t,e){var n=document.createEvent("HTMLEvents");n.initEvent(e,!0,!0),t.dispatchEvent(n)}function wi(t){return!t.componentInstance||t.data&&t.data.transition?t:wi(t.componentInstance._vnode)}var xi={model:pi,show:{bind:function(t,e,n){var r=e.value,i=(n=wi(n)).data&&n.data.transition,o=t.__vOriginalDisplay="none"===t.style.display?"":t.style.display;r&&i?(n.data.show=!0,si(n,(function(){t.style.display=o}))):t.style.display=r?o:"none"},update:function(t,e,n){var r=e.value;!r!=!e.oldValue&&((n=wi(n)).data&&n.data.transition?(n.data.show=!0,r?si(n,(function(){t.style.display=t.__vOriginalDisplay})):ai(n,(function(){t.style.display="none"}))):t.style.display=r?t.__vOriginalDisplay:"none")},unbind:function(t,e,n,r,i){i||(t.style.display=t.__vOriginalDisplay)}}},_i={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function ki(t){var e=t&&t.componentOptions;return e&&e.Ctor.options.abstract?ki(Ye(e.children)):t}function Ci(t){var e={},n=t.$options;for(var r in n.propsData)e[r]=t[r];var i=n._parentListeners;for(var o in i)e[_(o)]=i[o];return e}function Si(t,e){if(/\d-keep-alive$/.test(e.tag))return t("keep-alive",{props:e.componentOptions.propsData})}var Ai=function(t){return t.tag||ve(t)},Ei=function(t){return"show"===t.name},Oi={name:"transition",props:_i,abstract:!0,render:function(t){var e=this,n=this.$slots.default;if(n&&(n=n.filter(Ai)).length){var r=this.mode,i=n[0];if(function(t){for(;t=t.parent;)if(t.data.transition)return!0}(this.$vnode))return i;var o=ki(i);if(!o)return i;if(this._leaving)return Si(t,i);var s="__transition-"+this._uid+"-";o.key=null==o.key?o.isComment?s+"comment":s+o.tag:a(o.key)?0===String(o.key).indexOf(s)?o.key:s+o.key:o.key;var c=(o.data||(o.data={})).transition=Ci(this),l=this._vnode,u=ki(l);if(o.data.directives&&o.data.directives.some(Ei)&&(o.data.show=!0),u&&u.data&&!function(t,e){return e.key===t.key&&e.tag===t.tag}(o,u)&&!ve(u)&&(!u.componentInstance||!u.componentInstance._vnode.isComment)){var h=u.data.transition=O({},c);if("out-in"===r)return this._leaving=!0,ce(h,"afterLeave",(function(){e._leaving=!1,e.$forceUpdate()})),Si(t,i);if("in-out"===r){if(ve(o))return l;var p,d=function(){p()};ce(c,"afterEnter",d),ce(c,"enterCancelled",d),ce(h,"delayLeave",(function(t){p=t}))}}return i}}},Ti=O({tag:String,moveClass:String},_i);function Pi(t){t.elm._moveCb&&t.elm._moveCb(),t.elm._enterCb&&t.elm._enterCb()}function Ii(t){t.data.newPos=t.elm.getBoundingClientRect()}function Mi(t){var e=t.data.pos,n=t.data.newPos,r=e.left-n.left,i=e.top-n.top;if(r||i){t.data.moved=!0;var o=t.elm.style;o.transform=o.WebkitTransform="translate("+r+"px,"+i+"px)",o.transitionDuration="0s"}}delete Ti.mode;var Ri={Transition:Oi,TransitionGroup:{props:Ti,beforeMount:function(){var t=this,e=this._update;this._update=function(n,r){var i=Qe(t);t.__patch__(t._vnode,t.kept,!1,!0),t._vnode=t.kept,i(),e.call(t,n,r)}},render:function(t){for(var e=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),r=this.prevChildren=this.children,i=this.$slots.default||[],o=this.children=[],s=Ci(this),a=0;a<i.length;a++){var c=i[a];c.tag&&null!=c.key&&0!==String(c.key).indexOf("__vlist")&&(o.push(c),n[c.key]=c,(c.data||(c.data={})).transition=s)}if(r){for(var l=[],u=[],h=0;h<r.length;h++){var p=r[h];p.data.transition=s,p.data.pos=p.elm.getBoundingClientRect(),n[p.key]?l.push(p):u.push(p)}this.kept=t(e,null,l),this.removed=u}return t(e,null,o)},updated:function(){var t=this.prevChildren,e=this.moveClass||(this.name||"v")+"-move";t.length&&this.hasMove(t[0].elm,e)&&(t.forEach(Pi),t.forEach(Ii),t.forEach(Mi),this._reflow=document.body.offsetHeight,t.forEach((function(t){if(t.data.moved){var n=t.elm,r=n.style;Qr(n,e),r.transform=r.WebkitTransform=r.transitionDuration="",n.addEventListener(Xr,n._moveCb=function t(r){r&&r.target!==n||r&&!/transform$/.test(r.propertyName)||(n.removeEventListener(Xr,t),n._moveCb=null,ti(n,e))})}})))},methods:{hasMove:function(t,e){if(!qr)return!1;if(this._hasMove)return this._hasMove;var n=t.cloneNode();t._transitionClasses&&t._transitionClasses.forEach((function(t){Hr(n,t)})),Br(n,e),n.style.display="none",this.$el.appendChild(n);var r=ri(n);return this.$el.removeChild(n),this._hasMove=r.hasTransform}}}};An.config.mustUseProp=function(t,e,n){return"value"===n&&Nn(t)&&"button"!==e||"selected"===n&&"option"===t||"checked"===n&&"input"===t||"muted"===n&&"video"===t},An.config.isReservedTag=Xn,An.config.isReservedAttr=Rn,An.config.getTagNamespace=function(t){return Yn(t)?"svg":"math"===t?"math":void 0},An.config.isUnknownElement=function(t){if(!q)return!0;if(Xn(t))return!1;if(t=t.toLowerCase(),null!=Jn[t])return Jn[t];var e=document.createElement(t);return t.indexOf("-")>-1?Jn[t]=e.constructor===window.HTMLUnknownElement||e.constructor===window.HTMLElement:Jn[t]=/HTMLUnknownElement/.test(e.toString())},O(An.options.directives,xi),O(An.options.components,Ri),An.prototype.__patch__=q?hi:P,An.prototype.$mount=function(t,e){return function(t,e,n){var r;return t.$el=e,t.$options.render||(t.$options.render=gt),rn(t,"beforeMount"),r=function(){t._update(t._render(),n)},new vn(t,r,P,{before:function(){t._isMounted&&!t._isDestroyed&&rn(t,"beforeUpdate")}},!0),n=!1,null==t.$vnode&&(t._isMounted=!0,rn(t,"mounted")),t}(this,t=t&&q?function(t){return"string"==typeof t?document.querySelector(t)||document.createElement("div"):t}(t):void 0,e)},q&&setTimeout((function(){$.devtools&&rt&&rt.emit("init",An)}),0);const Ni=An},4618:()=>{let t,e,n=-1,r=-1,i=!1;const o=document.createElement("div");function s(){const t=document.body.clientWidth,e=document.body.clientHeight;Object.assign(o.style,{left:n+(n<t/2?16:-16-o.clientWidth)+"px",top:r+(r<e/2?16:-16-o.clientHeight)+"px"})}function a(t){if(!t||!t.getAttribute)return;return t.getAttribute("data-tooltip")||a(t.parentNode)}function c(){const c=a(document.elementFromPoint(n,r)),l=o.innerText;c||!i||t||(i=!1,clearTimeout(e)),!c||i||t?l!==c&&t&&i&&(clearTimeout(e),i=!1,e=setTimeout((()=>{t=!1,Object.assign(o.style,{left:"-1000px",top:"-1000px"})}),300),o.style.opacity=0):(clearTimeout(e),i=!0,e=setTimeout((()=>{o.innerText=c,s(),o.style.opacity=1,t=!0}),400))}Object.assign(o.style,{position:"fixed",left:"-1000px",top:"-1000px",border:"2px solid black",background:"white",fontFamily:"Glacial Indifference",fontWeight:"bold",fontSize:"16px",padding:"8px",maxWidth:"300px",zIndex:"100000",pointerEvents:"none",opacity:0,transition:"opacity .2s ease"}),o.innerText="",document.body.appendChild(o),document.body.addEventListener("mousemove",(e=>{n=e.clientX,r=e.clientY,t&&s()})),setInterval((()=>{c()}),100)}},e={};function n(r){var i=e[r];if(void 0!==i)return i.exports;var o=e[r]={id:r,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},(()=>{"use strict";var t=n(144),e=function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{staticClass:"header"},[t._t("default")],2)};e._withStripped=!0;const r=t.default.component("br-header",{});function i(t,e,n,r,i,o,s,a){var c,l="function"==typeof t?t.options:t;if(e&&(l.render=e,l.staticRenderFns=n,l._compiled=!0),r&&(l.functional=!0),o&&(l._scopeId="data-v-"+o),s?(c=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(s)},l._ssrRegister=c):i&&(c=a?function(){i.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:i),c)if(l.functional){l._injectStyles=c;var u=l.render;l.render=function(t,e){return c.call(e),u(t,e)}}else{var h=l.beforeCreate;l.beforeCreate=h?[].concat(h,c):[c]}return{exports:t,options:l}}n(9371);var o=i(r,e,[],!1,null,"26050f5a",null);o.options.__file="src/webserver/frontend/components/Header.vue",o.exports;var s=function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{staticClass:"footer"},[t._t("default")],2)};s._withStripped=!0;const a=t.default.component("br-footer",{});n(6590);var c=i(a,s,[],!1,null,"04d2ab68",null);c.options.__file="src/webserver/frontend/components/Footer.vue",c.exports;var l=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"background"},[n("img",{staticClass:"bg-img dark",attrs:{src:"/public/img/dark_bg.webp"}}),t._v(" "),n("img",{staticClass:"bg-img light",attrs:{src:"/public/img/auth_bg.webp"}}),t._v(" "),t.version?n("div",{staticClass:"version"},[t._v("Omegga v"+t._s(t.version))]):t._e(),t._v(" "),t._t("default")],2)};l._withStripped=!0;const u=t.default.component("br-background",{sockets:{data(t){this.version=t.version}},data(){return{version:this.omeggaData&&this.omeggaData.version}}});n(1238);var h=i(u,l,[],!1,null,"cfa2320a",null);h.options.__file="src/webserver/frontend/components/Background.vue",h.exports;var p=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("router-link",{class:["menu-button",{disabled:t.disabled,active:(t.name||t.route)===this.$route.name}],attrs:{to:"/"+t.route},on:{click:function(e){return t.$emit("click",e)}}},[n("div",{staticClass:"menu-button-content"},[t._t("default")],2)])};p._withStripped=!0;const d=t.default.component("br-menu-button",{props:{disabled:Boolean,route:String,name:String}});n(3257);var f=i(d,p,[],!1,null,null,null);f.options.__file="src/webserver/frontend/components/MainMenuButton.vue",f.exports;var g=function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{staticClass:"popout-content"},[t._t("default")],2)};g._withStripped=!0;const v=t.default.component("br-popout-content",{});n(6348);var m=i(v,g,[],!1,null,"2835009f",null);m.options.__file="src/webserver/frontend/components/PopoutContent.vue",m.exports;var y=function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{staticClass:"navbar"},[t._t("default")],2)};y._withStripped=!0;const b=t.default.component("br-navbar",{});n(9105);var w=i(b,y,[],!1,null,"06bd673d",null);w.options.__file="src/webserver/frontend/components/NavBar.vue",w.exports;var x=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:["loader",{active:t.active,inline:t.inline}],on:{click:function(e){return t.$emit("click",e)}}},[n("div",{class:["loader-container",{blur:t.blur}]},[n("LoaderIcon",{class:["loader-icon"],attrs:{size:t.sizes[t.size||"normal"]}}),t._v(" "),n("div",[t._t("default")],2)],1)])};x._withStripped=!0;var _=n(6568),k=n.n(_);const C={name:"LoaderIcon",props:{size:{type:String,default:"24"}},functional:!0,render(t,e){const n=parseInt(e.props.size)+"px",r=e.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,e.data.attrs=r,t("svg",k()([{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},class:"icon icon-tabler icon-tabler-loader"},e.data]),[" ",t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}})," ",t("line",{attrs:{x1:"12",y1:"6",x2:"12",y2:"3"}})," ",t("line",{attrs:{x1:"16.25",y1:"7.75",x2:"18.4",y2:"5.6"}})," ",t("line",{attrs:{x1:"18",y1:"12",x2:"21",y2:"12"}})," ",t("line",{attrs:{x1:"16.25",y1:"16.25",x2:"18.4",y2:"18.4"}})," ",t("line",{attrs:{x1:"12",y1:"18",x2:"12",y2:"21"}})," ",t("line",{attrs:{x1:"7.75",y1:"16.25",x2:"5.6",y2:"18.4"}})," ",t("line",{attrs:{x1:"6",y1:"12",x2:"3",y2:"12"}})," ",t("line",{attrs:{x1:"7.75",y1:"7.75",x2:"5.6",y2:"5.6"}})," "])}},S=t.default.component("br-loader",{components:{LoaderIcon:C},props:{active:Boolean,size:String,blur:Boolean,inline:Boolean},data:()=>({sizes:{small:"24",normal:"30",huge:"60",massive:"120"}})});n(9746);var A=i(S,x,[],!1,null,"7c51ac40",null);A.options.__file="src/webserver/frontend/components/Loader.vue",A.exports;var E=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:["modal",{visible:t.visible}]},[n("div",{staticClass:"modal-content"},[t._t("default")],2)])};E._withStripped=!0;const O=t.default.component("br-modal",{props:{visible:Boolean}});n(5922);var T=i(O,E,[],!1,null,"1b64c920",null);T.options.__file="src/webserver/frontend/components/Modal.vue",T.exports;var P=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:["dimmer",{visible:t.visible}]},[n("div",{staticClass:"dimmer-content"},[t._t("default")],2)])};P._withStripped=!0;const I=t.default.component("br-dimmer",{props:{visible:Boolean}});n(3628);var M=i(I,P,[],!1,null,"6097369f",null);M.options.__file="src/webserver/frontend/components/Dimmer.vue",M.exports;var R=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"scroll-container"},[n("div",{staticClass:"scroll-scroller"},[t._t("default")],2)])};R._withStripped=!0;const N=t.default.component("br-scroll",{});n(9721);var D=i(N,R,[],!1,null,null,null);D.options.__file="src/webserver/frontend/components/Scroll.vue",D.exports;var j=function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{on:{scroll:t.handleElementScroll}},[t._t("default")],2)};j._withStripped=!0;var L=i(t.default.component("v-infinite-scroll",{props:{loading:{type:Boolean},offset:{type:Number,default:0},onTopScrollsToBottom:{type:Boolean,default:!0}},data:()=>({target:null,scrollPosition:0,lastDirection:""}),methods:{handleElementScroll:function(t){this.target||(this.target=t.target);let e=t.target.scrollTop;e>this.scrollPosition&&e+t.target.offsetHeight>=t.target.scrollHeight-this.offset?this.emitEvents("bottom"):e<this.scrollPosition&&e<=this.offset&&this.emitEvents("top"),this.scrollPosition=e},emitEvents(t){this.loading||(this.lastDirection=t,this.$emit(t))}},watch:{loading(){this.onTopScrollsToBottom&&!this.loading&&"top"==this.lastDirection&&this.target.scroll({top:this.target.scrollHeight-this.target.offsetHeight-this.offset-2,behavior:"instant"})}}}),j,[],!1,null,null,null);L.options.__file="src/webserver/frontend/components/InfiniteScroll.vue",L.exports;var z=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:["button",{warn:void 0!==t.warn,main:void 0!==t.main,error:void 0!==t.error,info:void 0!==t.info,normal:void 0!==t.normal,disabled:void 0!==t.disabled&&t.disabled,boxy:void 0!==t.boxy,icon:void 0!==t.icon}],on:{click:function(e){return t.$emit("click",e)}}},[n("div",{staticClass:"button-content"},[t._t("default")],2)])};z._withStripped=!0;const $=t.default.component("br-button",{props:["warn","main","icon","error","info","normal","disabled","boxy"]});n(8790);var B=i($,z,[],!1,null,"74f50d02",null);B.options.__file="src/webserver/frontend/components/Button.vue",B.exports;var H=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:["input",{disabled:t.disabled}]},[n("input",{attrs:{spellcheck:"false",placeholder:t.placeholder?t.placeholder.toString():"",type:t.type},domProps:{value:t.value},on:{input:function(e){t.$emit("input","number"===t.type?Number(e.target.value):e.target.value)}}})])};H._withStripped=!0;const U=t.default.component("br-input",{props:{placeholder:String,disabled:Boolean,type:String,value:[String,Number]}});n(8600);var F=i(U,H,[],!1,null,"5291bbe6",null);F.options.__file="src/webserver/frontend/components/Input.vue",F.exports;var q=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:["br-list-input",{disabled:t.disabled}]},[t._l(t.value||[],(function(e,r){return n("div",{key:r,staticClass:"br-list-item"},[["string","password","number"].includes(t.type)?n("br-input",{attrs:{value:t.value[r],placeholder:t.placeholder?t.placeholder.toString():"",type:t.type},on:{input:function(e){return t.updateItem(r,e)}}}):t._e(),t._v(" "),"enum"===t.type?n("br-dropdown",{attrs:{value:t.value[r],options:t.options},on:{input:function(e){return t.updateItem(r,e)}}}):t._e(),t._v(" "),"role"===t.type?n("br-role-dropdown",{attrs:{value:t.value[r]},on:{input:function(e){return t.updateItem(r,e)}}}):t._e(),t._v(" "),n("br-button",{attrs:{icon:"",warn:"","data-tooltip":"Remove this item from the list"},on:{click:function(e){return t.removeItem(r)}}},[n("MinusIcon")],1)],1)})),t._v(" "),n("br-button",{attrs:{icon:"",main:"","data-tooltip":"Add an item to the list"},on:{click:function(e){return t.addItem()}}},[n("PlusIcon")],1)],2)};q._withStripped=!0;const W={name:"PlusIcon",props:{size:{type:String,default:"24"}},functional:!0,render(t,e){const n=parseInt(e.props.size)+"px",r=e.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,e.data.attrs=r,t("svg",k()([{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},class:"icon icon-tabler icon-tabler-plus"},e.data]),[" ",t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}})," ",t("line",{attrs:{x1:"12",y1:"5",x2:"12",y2:"19"}})," ",t("line",{attrs:{x1:"5",y1:"12",x2:"19",y2:"12"}})," "])}},V={name:"MinusIcon",props:{size:{type:String,default:"24"}},functional:!0,render(t,e){const n=parseInt(e.props.size)+"px",r=e.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,e.data.attrs=r,t("svg",k()([{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},class:"icon icon-tabler icon-tabler-minus"},e.data]),[" ",t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}})," ",t("line",{attrs:{x1:"5",y1:"12",x2:"19",y2:"12"}})," "])}},Y=t.default.component("br-list-input",{components:{PlusIcon:W,MinusIcon:V},methods:{updateItem(t,e){const n=this.value.slice();n[t]=e,this.$emit("input",n)},addItem(){const t=this.value.slice();t.push({string:"",number:0,password:"",role:"",enum:this.options&&this.options[0]}[this.type]),this.$emit("input",t)},removeItem(t){const e=this.value.slice();e.splice(t,1),this.$emit("input",e)}},props:{placeholder:String,disabled:Boolean,type:String,value:Array,options:Array}});n(3266);var X=i(Y,q,[],!1,null,"7257d4e2",null);X.options.__file="src/webserver/frontend/components/ListInput.vue",X.exports;var J=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{ref:"self",class:["dropdown",{disabled:t.disabled}]},[t.open?n("div",{staticClass:"options"},t._l(t.options,(function(e){return n("div",{key:e,class:["option",{green:t.value===e}],on:{click:function(n){t.open=!1,t.$emit("input",e)}}},[t._v("\n "+t._s(e)+"\n ")])})),0):t._e(),t._v(" "),n("div",{staticClass:"selected",on:{click:function(e){t.open=!t.open}}},[n("div",{staticClass:"value"},[t._v(t._s(t.value))]),t._v(" "),n("CaretDownIcon")],1)])};J._withStripped=!0;const G={name:"CaretDownIcon",props:{size:{type:String,default:"24"}},functional:!0,render(t,e){const n=parseInt(e.props.size)+"px",r=e.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,e.data.attrs=r,t("svg",k()([{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},class:"icon icon-tabler icon-tabler-caret-down"},e.data]),[" ",t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}})," ",t("path",{attrs:{d:"M18 15l-6 -6l-6 6h12",transform:"rotate(180 12 12)"}})," "])}},Z=t.default.component("br-dropdown",{components:{CaretDownIcon:G},beforeDestroy(){document.removeEventListener("click",this.handleClick)},created(){document.addEventListener("click",this.handleClick)},methods:{handleClick(t){open&&!this.$refs.self.contains(t.target)&&(this.open=!1)}},props:{disabled:Boolean,options:Array,value:[String,Number]},data:()=>({listener:void 0,open:!1})});n(2307);var K=i(Z,J,[],!1,null,"230894c4",null);K.options.__file="src/webserver/frontend/components/Dropdown.vue",K.exports;var Q=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:["toggle",{disabled:void 0!==t.disabled&&t.disabled}],on:{click:function(e){return t.$emit("input",!t.value)}}},[n("div",{class:["toggle-slider",{on:t.value}]},[n("div",{staticClass:"symbol"})])])};Q._withStripped=!0;const tt=t.default.component("br-toggle",{props:{disabled:Boolean,value:Boolean}});n(711);var et=i(tt,Q,[],!1,null,"7d572ca1",null);et.options.__file="src/webserver/frontend/components/Toggle.vue",et.exports;var nt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:["br-player-list",{disabled:t.disabled}]},[t._l(t.value||[],(function(e,r){return n("div",{key:r,staticClass:"br-player-item"},[n("router-link",{staticClass:"selected",attrs:{to:"/players/"+e.id,"data-tooltip":"Click to navigate to player page"}},[t._v("\n "+t._s(e.name)+"\n ")]),t._v(" "),n("br-button",{attrs:{icon:"",warn:"","data-tooltip":"Remove this player from the list"},on:{click:function(e){return t.removeItem(r)}}},[n("MinusIcon")],1)],1)})),t._v(" "),n("div",{ref:"self",staticClass:"player-search"},[n("br-input",{attrs:{placeholder:"Search Players..."},on:{input:function(){return t.doSearch()}},model:{value:t.search,callback:function(e){t.search=e},expression:"search"}}),t._v(" "),t.open?n("div",{staticClass:"options"},[t.loadingSearch?n("div",{staticClass:"option search",staticStyle:{position:"relative"}},[n("br-loader",{attrs:{active:"",size:"small"}})],1):t._e(),t._v(" "),t._l(t.players,(function(e){return n("div",{key:e.id,staticClass:"option",on:{click:function(n){t.open=!1,t.addItem(e)}}},[t._v("\n "+t._s(e.name)+"\n ")])}))],2):t._e()],1)],2)};nt._withStripped=!0;var rt=n(3279),it=n.n(rt);const ot=t.default.component("br-player-list",{components:{PlusIcon:W,MinusIcon:V},beforeDestroy(){document.removeEventListener("click",this.handleClick)},async created(){document.addEventListener("click",this.handleClick)},methods:{handleClick(t){open&&!this.$refs.self.contains(t.target)&&(this.open=!1,this.players=[])},updateItem(t,e){const n=this.value.slice();n[t]=e,this.$emit("input",n)},addItem(t){this.open=!1,this.players=[],this.search="";const e=this.value.slice();e.push({id:t.id,name:t.name}),this.$emit("input",e)},removeItem(t){const e=this.value.slice();e.splice(t,1),this.$emit("input",e)},doSearch:it()((function(){0!==this.search.length?(this.page=0,this.open=!0,this.getPlayers()):(this.open=!1,this.players=[])}),500),async getPlayers(){this.loadingSearch=!0;const{players:t}=await this.$$request("players.list",{page:0,search:this.search,sort:"lastSeen",direction:-1,filter:""});this.players=t,this.loadingSearch=!1}},props:{placeholder:String,disabled:Boolean,type:String,value:Array},data:()=>({search:"",options:["foo","bar","baz"],players:[],loadingSearch:!1,open:!1})});n(48);var st=i(ot,nt,[],!1,null,"7bb12f5f",null);st.options.__file="src/webserver/frontend/components/PlayerDropdown.vue",st.exports;var at=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{ref:"self",class:["role-dropdown",{disabled:t.disabled}]},[t.open?n("div",{staticClass:"options"},[t.loadingSearch?n("div",{staticClass:"option search",staticStyle:{position:"relative"}},[n("br-loader",{attrs:{active:"",size:"small"}})],1):t._e(),t._v(" "),t._l(t.options,(function(e){return n("div",{key:e,class:["option",{green:t.value===e}],on:{click:function(n){t.open=!1,t.$emit("input",e)}}},[t._v("\n "+t._s(e)+"\n ")])}))],2):t._e(),t._v(" "),n("div",{staticClass:"selected",on:{click:function(e){t.open=!t.open,t.getRoles()}}},[n("div",{staticClass:"value"},[t._v(t._s(t.value))]),t._v(" "),n("CaretDownIcon")],1)])};at._withStripped=!0;const ct=t.default.component("br-role-dropdown",{components:{CaretDownIcon:G},beforeDestroy(){document.removeEventListener("click",this.handleClick)},created(){document.addEventListener("click",this.handleClick)},methods:{handleClick(t){open&&!this.$refs.self.contains(t.target)&&(this.open=!1)},async getRoles(){this.loadingSearch=!0,this.options=[];const t=await this.$$request("roles.list");this.options=t.map((t=>t.name)),this.loadingSearch=!1}},props:{disabled:Boolean,value:String},data:()=>({listener:void 0,open:!1,options:[],loadingSearch:!1})});n(8315);var lt=i(ct,at,[],!1,null,"6562c6b4",null);lt.options.__file="src/webserver/frontend/components/RoleDropdown.vue",lt.exports;var ut=function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{staticClass:"chat-timestamp"},[t._v("\n "+t._s(t.hours)+":"+t._s(t.minutes)+" "+t._s(t.pm)+"\n")])};ut._withStripped=!0;const ht=t.default.component("chat-time",{props:["time"],created(){const t=new Date(this.time);this.hours=t.getHours(),this.pm=this.hours>=12?"PM":"AM",this.hours>12?this.hours-=12:0===this.hours&&(this.hours=12),this.minutes=(t.getMinutes()+"").padStart(2,"0")}});n(6240);var pt=i(ht,ut,[],!1,null,"3de125d2",null);pt.options.__file="src/webserver/frontend/components/ChatTime.vue",pt.exports;var dt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:["log-entry",{focused:t.$route.params.time==t.log.created}]},[n("div",{staticClass:"log-row"},[n("router-link",{staticClass:"time-link",attrs:{to:"/history/"+(t.$route.params.time==t.log.created?"":t.log.created)}},[n("LinkIcon"),t._v(" "),n("chat-time",{attrs:{time:t.log.created}})],1),t._v(" "),"msg"===t.log.action?t._m(0):t._e(),t._v(" "),"leave"===t.log.action?t._m(1):t._e(),t._v(" "),"join"===t.log.action?t._m(2):t._e(),t._v(" "),"server"===t.log.action?n("div",{staticClass:"message server-message"},[t._v("\n "+t._s(t.log.message)+"\n ")]):t._e()],1)])};dt._withStripped=!0;const ft={name:"LinkIcon",props:{size:{type:String,default:"24"}},functional:!0,render(t,e){const n=parseInt(e.props.size)+"px",r=e.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,e.data.attrs=r,t("svg",k()([{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},class:"icon icon-tabler icon-tabler-link"},e.data]),[" ",t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}})," ",t("path",{attrs:{d:"M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"}})," ",t("path",{attrs:{d:"M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"}})," "])}},gt=t.default.component("br-chat-entry",{components:{LinkIcon:ft},props:{log:{type:Object}},data:()=>({})});n(1407);var vt=i(gt,dt,[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"chat-message message"},[t._v("\n "+t._s(t.log.user.web?"[":"")),t.log.user.web?n("span",{staticClass:"user",style:{color:"#"+t.log.user.color}},[t._v(t._s(t.log.user.name))]):n("router-link",{staticClass:"user",style:{color:"#"+t.log.user.color},attrs:{to:"/players/"+t.log.user.id}},[t._v(t._s(t.log.user.name))]),t._v(t._s(t.log.user.web?"]":"")+": "),n("span",{directives:[{name:"linkified",rawName:"v-linkified"}],domProps:{innerHTML:t._s(t.xss(t.log.message))}})],1)},function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"message join-message"},[n("router-link",{staticClass:"user",attrs:{to:"/players/"+t.log.user.id}},[t._v("\n "+t._s(t.log.user.name)+"\n ")]),t._v(" left the game.\n ")],1)},function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"message join-message"},[n("router-link",{staticClass:"user",attrs:{to:"/players/"+t.log.user.id}},[t._v("\n "+t._s(t.log.user.name)+"\n ")]),t._v(" joined the game"+t._s(t.log.user.isFirst?" for the first time":"")+".\n ")],1)}],!1,null,"6221c0bd",null);vt.options.__file="src/webserver/frontend/components/ChatEntry.vue",vt.exports;var mt=n(7719),yt=n.n(mt);t.default.directive("linkified",yt()),n(4618);var bt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"chat-widget"},[n("br-scroll",{staticClass:"messages"},[n("div",{staticClass:"messages-child"},t._l(t.chats,(function(e){return n("div",{key:e._id,staticClass:"log-entry"},["msg"===e.action?n("div",{staticClass:"chat-message"},[t._v("\n "+t._s(e.user.web?"[":"")),n("span",{staticClass:"user",style:{color:"#"+e.user.color}},[t._v(t._s(e.user.name))]),t._v(t._s(e.user.web?"]":"")+": "),n("span",{directives:[{name:"linkified",rawName:"v-linkified"}],domProps:{innerHTML:t._s(t.xss(e.message))}})]):t._e(),t._v(" "),"leave"===e.action?n("div",{staticClass:"join-message"},[n("span",{staticClass:"user"},[t._v(t._s(e.user.name))]),t._v(" left the game.\n ")]):t._e(),t._v(" "),"join"===e.action?n("div",{staticClass:"join-message"},[n("span",{staticClass:"user"},[t._v(t._s(e.user.name))]),t._v(" joined the game"+t._s(e.user.isFirst?" for the first time":"")+".\n ")]):t._e(),t._v(" "),"server"===e.action?n("div",{staticClass:"server-message"},[t._v("\n "+t._s(e.message)+"\n ")]):t._e()])})),0)]),t._v(" "),n("form",{on:{submit:t.sendMessage}},[n("br-footer",[n("br-input",{attrs:{type:"text",placeholder:"Message"},model:{value:t.message,callback:function(e){t.message=e},expression:"message"}}),t._v(" "),n("br-button",{staticStyle:{"margin-left":"10px"},attrs:{normal:"",icon:""},on:{click:t.sendMessage}},[n("SendIcon")],1)],1)],1)],1)};bt._withStripped=!0;const wt={name:"SendIcon",props:{size:{type:String,default:"24"}},functional:!0,render(t,e){const n=parseInt(e.props.size)+"px",r=e.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,e.data.attrs=r,t("svg",k()([{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},class:"icon icon-tabler icon-tabler-send"},e.data]),[" ",t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}})," ",t("line",{attrs:{x1:"10",y1:"14",x2:"21",y2:"3"}})," ",t("path",{attrs:{d:"M21 3l-6.5 18a0.55 .55 0 0 1 -1 0l-3.5 -7l-7 -3.5a0.55 .55 0 0 1 0 -1l18 -6.5"}})," "])}},xt=t.default.component("br-chat-widget",{components:{SendIcon:wt},sockets:{chat(t){this.chats.push(t),this.chats.length>50&&this.chats.splice(0,50-this.chats.length),this.scroll()},connect(){this.getChats()}},beforeDestroy(){this.$$emit("unsubscribe","chat")},created(){this.getChats()},methods:{getChats(){this.$$emit("subscribe","chat"),this.$$request("chat.recent").then((t=>{this.chats=t.reverse(),this.scroll()}))},scroll(){window.requestAnimationFrame((()=>{const t=this.$el.querySelector(".scroll-scroller");t.scrollTop=t.scrollHeight}))},sendMessage(t){t.preventDefault(),this.message.length>140||0===this.message.length||(this.$$notify("chat",this.message),this.message="")}},data:()=>({chats:[],message:""})});n(6524);var _t=i(xt,bt,[],!1,null,null,null);_t.options.__file="src/webserver/frontend/widgets/Chat.vue",_t.exports;var kt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"status-widget"},[t.status.players?n("br-scroll",{staticClass:"players"},[n("div",{staticClass:"players-child"},[n("div",{staticClass:"stats"},[n("div",{staticClass:"stat"},[n("b",[t._v("Name:")]),t._v(" "+t._s(t.status.serverName))]),t._v(" "),n("div",{staticClass:"stat"},[n("b",[t._v("Uptime:")]),t._v(" "+t._s(t.duration(t.status.time)))]),t._v(" "),n("div",{staticClass:"stat"},[n("b",[t._v("Bricks:")]),t._v(" "+t._s(t.status.bricks))]),t._v(" "),n("div",{staticClass:"stat"},[n("b",[t._v("Players:")]),t._v(" "+t._s(t.status.players.length))])]),t._v(" "),n("table",{staticClass:"br-table"},[n("thead",[n("tr",[n("th",{staticStyle:{"text-align":"left",width:"100%"}},[t._v("Name")]),t._v(" "),n("th",[t._v("Time")]),t._v(" "),n("th",[t._v("Ping")])])]),t._v(" "),n("tbody",t._l(t.status.players,(function(e){return n("tr",[n("td",[t._v(t._s(e.name))]),t._v(" "),n("td",{staticStyle:{"text-align":"right"}},[t._v(t._s(t.duration(e.time)))]),t._v(" "),n("td",{staticStyle:{"text-align":"right"}},[t._v(t._s(e.ping))])])})),0)])])]):t._e(),t._v(" "),n("br-loader",{attrs:{active:!t.status.players,blur:"",size:"huge"}},[t._v("Loading Status")])],1)};kt._withStripped=!0;const Ct=t.default.component("br-status-widget",{sockets:{"server.status":function(t){this.status=t||{},this.updated=Date.now()},connect(){this.getStatus()}},beforeDestroy(){this.$$emit("unsubscribe","status")},methods:{getStatus(){this.$$emit("subscribe","status"),this.$$request("server.status").then((t=>{this.status=t||{},this.updated=Date.now()}))}},created(){this.getStatus()},data:()=>({status:{},updated:0})});n(3076);var St=i(Ct,kt,[],!1,null,"2f499e8e",null);St.options.__file="src/webserver/frontend/widgets/Status.vue",St.exports;var At=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"main-nav"},[n("header",{staticClass:"nav-header"},[t._v(t._s(t.title))]),t._v(" "),n("br-navbar",[n("span",{staticStyle:{flex:"1","margin-left":"8px"}},[t._v("\n Welcome, "+t._s(t.username||t.user.username)+"\n ")]),t._v(" "),t._t("default"),t._v(" "),t.showLogout?n("br-button",{attrs:{icon:"",error:"","data-tooltip":"Logout of Web UI"},on:{click:function(e){return t.logout()}}},[n("LogoutIcon")],1):t._e()],2)],1)};At._withStripped=!0;const Et={name:"LogoutIcon",props:{size:{type:String,default:"24"}},functional:!0,render(t,e){const n=parseInt(e.props.size)+"px",r=e.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,e.data.attrs=r,t("svg",k()([{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},class:"icon icon-tabler icon-tabler-logout"},e.data]),[" ",t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}})," ",t("path",{attrs:{d:"M14 8v-2a2 2 0 0 0 -2 -2h-7a2 2 0 0 0 -2 2v12a2 2 0 0 0 2 2h7a2 2 0 0 0 2 -2v-2"}})," ",t("path",{attrs:{d:"M7 12h14l-3 -3m0 6l3 -3"}})," "])}},Ot=t.default.component("nav-header",{components:{LogoutIcon:Et},props:["title"],sockets:{data({user:t}){this.username=t.username}},data:()=>({username:""})});n(8710);var Tt=i(Ot,At,[],!1,null,"7c61f162",null);Tt.options.__file="src/webserver/frontend/partials/NavHeader.vue",Tt.exports;var Pt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"main-menu-buttons"},[n("br-menu-button",{attrs:{disabled:!1,route:"",name:"home","data-tooltip":"Chat with players, view server status. Main Dashboard"}},[n("DashboardIcon",{staticStyle:{background:"#de4f43"}}),t._v("\n Dashboard\n ")],1),t._v(" "),n("br-menu-button",{attrs:{disabled:!1,route:"history","data-tooltip":"Browse chat history"}},[n("MessagesIcon",{staticStyle:{background:"#008bd6"}}),t._v("\n History\n ")],1),t._v(" "),n("br-menu-button",{attrs:{disabled:!1,route:"plugins","data-tooltip":"Manage, reload, and configure plugins"}},[n("PlugIcon",{staticStyle:{background:"#00b35f"}}),t._v("\n Plugins\n ")],1),t._v(" "),n("br-menu-button",{attrs:{disabled:!1,route:"players","data-tooltip":"Browse player info and play time"}},[n("ListIcon",{staticStyle:{background:"#b3006b"}}),t._v("\n Players\n ")],1),t._v(" "),n("br-menu-button",{attrs:{disabled:!0,route:"metrics","data-tooltip":"View statistics and metrics for the server"}},[n("ChartLineIcon",{staticStyle:{background:"#00b0bd"}}),t._v("\n Metrics\n ")],1),t._v(" "),n("br-menu-button",{attrs:{disabled:!0,route:"saves","data-tooltip":"Browse, create, load, and clear saves"}},[n("DeviceFloppyIcon",{staticStyle:{background:"#1ed4d1"}}),t._v("\n Saves\n ")],1),t._v(" "),n("br-menu-button",{attrs:{disabled:!0,route:"settings","data-tooltip":"Server management settings and roles"}},[n("AdjustmentsAltIcon",{staticStyle:{background:"#c4bb02"}}),t._v("\n Settings\n ")],1),t._v(" "),n("br-menu-button",{attrs:{disabled:!1,route:"server","data-tooltip":"Server management"}},[n("ServerIcon",{staticStyle:{background:"#453d9c"}}),t._v("\n Server\n ")],1),t._v(" "),n("br-menu-button",{attrs:{disabled:!1,route:"users","data-tooltip":"Server users"}},[n("UsersIcon",{staticStyle:{background:"#7f0b8a"}}),t._v("\n Users\n ")],1)],1)};Pt._withStripped=!0;const It={name:"DashboardIcon",props:{size:{type:String,default:"24"}},functional:!0,render(t,e){const n=parseInt(e.props.size)+"px",r=e.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,e.data.attrs=r,t("svg",k()([{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},class:"icon icon-tabler icon-tabler-dashboard"},e.data]),[" ",t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}})," ",t("circle",{attrs:{cx:"12",cy:"13",r:"2"}})," ",t("line",{attrs:{x1:"13.45",y1:"11.55",x2:"15.5",y2:"9.5"}})," ",t("path",{attrs:{d:"M6.4 20a9 9 0 1 1 11.2 0z"}})," "])}},Mt={name:"MessagesIcon",props:{size:{type:String,default:"24"}},functional:!0,render(t,e){const n=parseInt(e.props.size)+"px",r=e.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,e.data.attrs=r,t("svg",k()([{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},class:"icon icon-tabler icon-tabler-messages"},e.data]),[" ",t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}})," ",t("path",{attrs:{d:"M21 14l-3 -3h-7a1 1 0 0 1 -1 -1v-6a1 1 0 0 1 1 -1h9a1 1 0 0 1 1 1v10"}})," ",t("path",{attrs:{d:"M14 15v2a1 1 0 0 1 -1 1h-7l-3 3v-10a1 1 0 0 1 1 -1h2"}})," "])}},Rt={name:"PlugIcon",props:{size:{type:String,default:"24"}},functional:!0,render(t,e){const n=parseInt(e.props.size)+"px",r=e.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,e.data.attrs=r,t("svg",k()([{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},class:"icon icon-tabler icon-tabler-plug"},e.data]),[" ",t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}})," ",t("path",{attrs:{d:"M7 7h10v6a3 3 0 0 1 -3 3h-4a3 3 0 0 1 -3 -3v-6"}})," ",t("line",{attrs:{x1:"9",y1:"3",x2:"9",y2:"7"}})," ",t("line",{attrs:{x1:"15",y1:"3",x2:"15",y2:"7"}})," ",t("path",{attrs:{d:"M12 16v2a2 2 0 0 0 2 2h3"}})," "])}},Nt={name:"ListIcon",props:{size:{type:String,default:"24"}},functional:!0,render(t,e){const n=parseInt(e.props.size)+"px",r=e.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,e.data.attrs=r,t("svg",k()([{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},class:"icon icon-tabler icon-tabler-list"},e.data]),[" ",t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}})," ",t("line",{attrs:{x1:"9",y1:"6",x2:"20",y2:"6"}})," ",t("line",{attrs:{x1:"9",y1:"12",x2:"20",y2:"12"}})," ",t("line",{attrs:{x1:"9",y1:"18",x2:"20",y2:"18"}})," ",t("line",{attrs:{x1:"5",y1:"6",x2:"5",y2:"6.01"}})," ",t("line",{attrs:{x1:"5",y1:"12",x2:"5",y2:"12.01"}})," ",t("line",{attrs:{x1:"5",y1:"18",x2:"5",y2:"18.01"}})," "])}},Dt={name:"UsersIcon",props:{size:{type:String,default:"24"}},functional:!0,render(t,e){const n=parseInt(e.props.size)+"px",r=e.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,e.data.attrs=r,t("svg",k()([{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},class:"icon icon-tabler icon-tabler-users"},e.data]),[" ",t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}})," ",t("circle",{attrs:{cx:"9",cy:"7",r:"4"}})," ",t("path",{attrs:{d:"M3 21v-2a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v2"}})," ",t("path",{attrs:{d:"M16 3.13a4 4 0 0 1 0 7.75"}})," ",t("path",{attrs:{d:"M21 21v-2a4 4 0 0 0 -3 -3.85"}})," "])}},jt={name:"ChartLineIcon",props:{size:{type:String,default:"24"}},functional:!0,render(t,e){const n=parseInt(e.props.size)+"px",r=e.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,e.data.attrs=r,t("svg",k()([{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},class:"icon icon-tabler icon-tabler-chart-line"},e.data]),[" ",t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}})," ",t("line",{attrs:{x1:"4",y1:"19",x2:"20",y2:"19"}})," ",t("polyline",{attrs:{points:"4 15 8 9 12 11 16 6 20 10"}})," "])}},Lt={name:"DeviceFloppyIcon",props:{size:{type:String,default:"24"}},functional:!0,render(t,e){const n=parseInt(e.props.size)+"px",r=e.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,e.data.attrs=r,t("svg",k()([{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},class:"icon icon-tabler icon-tabler-device-floppy"},e.data]),[" ",t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}})," ",t("path",{attrs:{d:"M6 4h10l4 4v10a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2v-12a2 2 0 0 1 2 -2"}})," ",t("circle",{attrs:{cx:"12",cy:"14",r:"2"}})," ",t("polyline",{attrs:{points:"14 4 14 8 8 8 8 4"}})," "])}},zt={name:"AdjustmentsAltIcon",props:{size:{type:String,default:"24"}},functional:!0,render(t,e){const n=parseInt(e.props.size)+"px",r=e.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,e.data.attrs=r,t("svg",k()([{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},class:"icon icon-tabler icon-tabler-adjustments-alt"},e.data]),[" ",t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}})," ",t("rect",{attrs:{x:"4",y:"8",width:"4",height:"4"}})," ",t("line",{attrs:{x1:"6",y1:"4",x2:"6",y2:"8"}})," ",t("line",{attrs:{x1:"6",y1:"12",x2:"6",y2:"20"}})," ",t("rect",{attrs:{x:"10",y:"14",width:"4",height:"4"}})," ",t("line",{attrs:{x1:"12",y1:"4",x2:"12",y2:"14"}})," ",t("line",{attrs:{x1:"12",y1:"18",x2:"12",y2:"20"}})," ",t("rect",{attrs:{x:"16",y:"5",width:"4",height:"4"}})," ",t("line",{attrs:{x1:"18",y1:"4",x2:"18",y2:"5"}})," ",t("line",{attrs:{x1:"18",y1:"9",x2:"18",y2:"20"}})," "])}},$t={name:"ServerIcon",props:{size:{type:String,default:"24"}},functional:!0,render(t,e){const n=parseInt(e.props.size)+"px",r=e.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,e.data.attrs=r,t("svg",k()([{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},class:"icon icon-tabler icon-tabler-server"},e.data]),[" ",t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}})," ",t("rect",{attrs:{x:"3",y:"4",width:"18",height:"8",rx:"3"}})," ",t("rect",{attrs:{x:"3",y:"12",width:"18",height:"8",rx:"3"}})," ",t("line",{attrs:{x1:"7",y1:"8",x2:"7",y2:"8.01"}})," ",t("line",{attrs:{x1:"7",y1:"16",x2:"7",y2:"16.01"}})," "])}},Bt=t.default.component("side-nav",{components:{DashboardIcon:It,MessagesIcon:Mt,PlugIcon:Rt,UsersIcon:Dt,ChartLineIcon:jt,DeviceFloppyIcon:Lt,AdjustmentsAltIcon:zt,ServerIcon:$t,ListIcon:Nt},props:["active"]});n(3175);var Ht=i(Bt,Pt,[],!1,null,"25e2546a",null);Ht.options.__file="src/webserver/frontend/partials/SideNav.vue",Ht.exports;var Ut=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("br-background"),t._v(" "),n("div",{staticClass:"content-parent"},[t.loading?t._e():n("div",{staticClass:"content"},[t._t("default")],2)])],1)};Ut._withStripped=!0;const Ft=t.default.component("page",{props:["loading"]});n(4184);var qt=i(Ft,Ut,[],!1,null,"0b19ce20",null);qt.options.__file="src/webserver/frontend/partials/Page.vue",qt.exports;var Wt=function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{staticClass:"main-content"},[t._t("default")],2)};Wt._withStripped=!0;const Vt=t.default.component("page-content",{props:[]});n(4052);var Yt=i(Vt,Wt,[],!1,null,"571f05e9",null);Yt.options.__file="src/webserver/frontend/partials/PageContent.vue",Yt.exports;var Xt=function(){var t=this.$createElement;return(this._self._c||t)("router-view")};function Jt(t,e){for(var n in e)t[n]=e[n];return t}Xt._withStripped=!0;var Gt=/[!'()*]/g,Zt=function(t){return"%"+t.charCodeAt(0).toString(16)},Kt=/%2C/g,Qt=function(t){return encodeURIComponent(t).replace(Gt,Zt).replace(Kt,",")};function te(t){try{return decodeURIComponent(t)}catch(t){}return t}var ee=function(t){return null==t||"object"==typeof t?t:String(t)};function ne(t){var e={};return(t=t.trim().replace(/^(\?|#|&)/,""))?(t.split("&").forEach((function(t){var n=t.replace(/\+/g," ").split("="),r=te(n.shift()),i=n.length>0?te(n.join("=")):null;void 0===e[r]?e[r]=i:Array.isArray(e[r])?e[r].push(i):e[r]=[e[r],i]})),e):e}function re(t){var e=t?Object.keys(t).map((function(e){var n=t[e];if(void 0===n)return"";if(null===n)return Qt(e);if(Array.isArray(n)){var r=[];return n.forEach((function(t){void 0!==t&&(null===t?r.push(Qt(e)):r.push(Qt(e)+"="+Qt(t)))})),r.join("&")}return Qt(e)+"="+Qt(n)})).filter((function(t){return t.length>0})).join("&"):null;return e?"?"+e:""}var ie=/\/?$/;function oe(t,e,n,r){var i=r&&r.options.stringifyQuery,o=e.query||{};try{o=se(o)}catch(t){}var s={name:e.name||t&&t.name,meta:t&&t.meta||{},path:e.path||"/",hash:e.hash||"",query:o,params:e.params||{},fullPath:le(e,i),matched:t?ce(t):[]};return n&&(s.redirectedFrom=le(n,i)),Object.freeze(s)}function se(t){if(Array.isArray(t))return t.map(se);if(t&&"object"==typeof t){var e={};for(var n in t)e[n]=se(t[n]);return e}return t}var ae=oe(null,{path:"/"});function ce(t){for(var e=[];t;)e.unshift(t),t=t.parent;return e}function le(t,e){var n=t.path,r=t.query;void 0===r&&(r={});var i=t.hash;return void 0===i&&(i=""),(n||"/")+(e||re)(r)+i}function ue(t,e,n){return e===ae?t===e:!!e&&(t.path&&e.path?t.path.replace(ie,"")===e.path.replace(ie,"")&&(n||t.hash===e.hash&&he(t.query,e.query)):!(!t.name||!e.name)&&t.name===e.name&&(n||t.hash===e.hash&&he(t.query,e.query)&&he(t.params,e.params)))}function he(t,e){if(void 0===t&&(t={}),void 0===e&&(e={}),!t||!e)return t===e;var n=Object.keys(t).sort(),r=Object.keys(e).sort();return n.length===r.length&&n.every((function(n,i){var o=t[n];if(r[i]!==n)return!1;var s=e[n];return null==o||null==s?o===s:"object"==typeof o&&"object"==typeof s?he(o,s):String(o)===String(s)}))}function pe(t){for(var e=0;e<t.matched.length;e++){var n=t.matched[e];for(var r in n.instances){var i=n.instances[r],o=n.enteredCbs[r];if(i&&o){delete n.enteredCbs[r];for(var s=0;s<o.length;s++)i._isBeingDestroyed||o[s](i)}}}}var de={name:"RouterView",functional:!0,props:{name:{type:String,default:"default"}},render:function(t,e){var n=e.props,r=e.children,i=e.parent,o=e.data;o.routerView=!0;for(var s=i.$createElement,a=n.name,c=i.$route,l=i._routerViewCache||(i._routerViewCache={}),u=0,h=!1;i&&i._routerRoot!==i;){var p=i.$vnode?i.$vnode.data:{};p.routerView&&u++,p.keepAlive&&i._directInactive&&i._inactive&&(h=!0),i=i.$parent}if(o.routerViewDepth=u,h){var d=l[a],f=d&&d.component;return f?(d.configProps&&fe(f,o,d.route,d.configProps),s(f,o,r)):s()}var g=c.matched[u],v=g&&g.components[a];if(!g||!v)return l[a]=null,s();l[a]={component:v},o.registerRouteInstance=function(t,e){var n=g.instances[a];(e&&n!==t||!e&&n===t)&&(g.instances[a]=e)},(o.hook||(o.hook={})).prepatch=function(t,e){g.instances[a]=e.componentInstance},o.hook.init=function(t){t.data.keepAlive&&t.componentInstance&&t.componentInstance!==g.instances[a]&&(g.instances[a]=t.componentInstance),pe(c)};var m=g.props&&g.props[a];return m&&(Jt(l[a],{route:c,configProps:m}),fe(v,o,c,m)),s(v,o,r)}};function fe(t,e,n,r){var i=e.props=function(t,e){switch(typeof e){case"undefined":return;case"object":return e;case"function":return e(t);case"boolean":return e?t.params:void 0}}(n,r);if(i){i=e.props=Jt({},i);var o=e.attrs=e.attrs||{};for(var s in i)t.props&&s in t.props||(o[s]=i[s],delete i[s])}}function ge(t,e,n){var r=t.charAt(0);if("/"===r)return t;if("?"===r||"#"===r)return e+t;var i=e.split("/");n&&i[i.length-1]||i.pop();for(var o=t.replace(/^\//,"").split("/"),s=0;s<o.length;s++){var a=o[s];".."===a?i.pop():"."!==a&&i.push(a)}return""!==i[0]&&i.unshift(""),i.join("/")}function ve(t){return t.replace(/\/\//g,"/")}var me=Array.isArray||function(t){return"[object Array]"==Object.prototype.toString.call(t)},ye=function t(e,n,r){return me(n)||(r=n||r,n=[]),r=r||{},e instanceof RegExp?function(t,e){var n=t.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)e.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return Oe(t,e)}(e,n):me(e)?function(e,n,r){for(var i=[],o=0;o<e.length;o++)i.push(t(e[o],n,r).source);return Oe(new RegExp("(?:"+i.join("|")+")",Te(r)),n)}(e,n,r):function(t,e,n){return Pe(ke(t,n),e,n)}(e,n,r)},be=ke,we=Se,xe=Pe,_e=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function ke(t,e){for(var n,r=[],i=0,o=0,s="",a=e&&e.delimiter||"/";null!=(n=_e.exec(t));){var c=n[0],l=n[1],u=n.index;if(s+=t.slice(o,u),o=u+c.length,l)s+=l[1];else{var h=t[o],p=n[2],d=n[3],f=n[4],g=n[5],v=n[6],m=n[7];s&&(r.push(s),s="");var y=null!=p&&null!=h&&h!==p,b="+"===v||"*"===v,w="?"===v||"*"===v,x=n[2]||a,_=f||g;r.push({name:d||i++,prefix:p||"",delimiter:x,optional:w,repeat:b,partial:y,asterisk:!!m,pattern:_?Ee(_):m?".*":"[^"+Ae(x)+"]+?"})}}return o<t.length&&(s+=t.substr(o)),s&&r.push(s),r}function Ce(t){return encodeURI(t).replace(/[\/?#]/g,(function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()}))}function Se(t,e){for(var n=new Array(t.length),r=0;r<t.length;r++)"object"==typeof t[r]&&(n[r]=new RegExp("^(?:"+t[r].pattern+")$",Te(e)));return function(e,r){for(var i="",o=e||{},s=(r||{}).pretty?Ce:encodeURIComponent,a=0;a<t.length;a++){var c=t[a];if("string"!=typeof c){var l,u=o[c.name];if(null==u){if(c.optional){c.partial&&(i+=c.prefix);continue}throw new TypeError('Expected "'+c.name+'" to be defined')}if(me(u)){if(!c.repeat)throw new TypeError('Expected "'+c.name+'" to not repeat, but received `'+JSON.stringify(u)+"`");if(0===u.length){if(c.optional)continue;throw new TypeError('Expected "'+c.name+'" to not be empty')}for(var h=0;h<u.length;h++){if(l=s(u[h]),!n[a].test(l))throw new TypeError('Expected all "'+c.name+'" to match "'+c.pattern+'", but received `'+JSON.stringify(l)+"`");i+=(0===h?c.prefix:c.delimiter)+l}}else{if(l=c.asterisk?encodeURI(u).replace(/[?#]/g,(function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})):s(u),!n[a].test(l))throw new TypeError('Expected "'+c.name+'" to match "'+c.pattern+'", but received "'+l+'"');i+=c.prefix+l}}else i+=c}return i}}function Ae(t){return t.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function Ee(t){return t.replace(/([=!:$\/()])/g,"\\$1")}function Oe(t,e){return t.keys=e,t}function Te(t){return t&&t.sensitive?"":"i"}function Pe(t,e,n){me(e)||(n=e||n,e=[]);for(var r=(n=n||{}).strict,i=!1!==n.end,o="",s=0;s<t.length;s++){var a=t[s];if("string"==typeof a)o+=Ae(a);else{var c=Ae(a.prefix),l="(?:"+a.pattern+")";e.push(a),a.repeat&&(l+="(?:"+c+l+")*"),o+=l=a.optional?a.partial?c+"("+l+")?":"(?:"+c+"("+l+"))?":c+"("+l+")"}}var u=Ae(n.delimiter||"/"),h=o.slice(-u.length)===u;return r||(o=(h?o.slice(0,-u.length):o)+"(?:"+u+"(?=$))?"),o+=i?"$":r&&h?"":"(?="+u+"|$)",Oe(new RegExp("^"+o,Te(n)),e)}ye.parse=be,ye.compile=function(t,e){return Se(ke(t,e),e)},ye.tokensToFunction=we,ye.tokensToRegExp=xe;var Ie=Object.create(null);function Me(t,e,n){e=e||{};try{var r=Ie[t]||(Ie[t]=ye.compile(t));return"string"==typeof e.pathMatch&&(e[0]=e.pathMatch),r(e,{pretty:!0})}catch(t){return""}finally{delete e[0]}}function Re(t,e,n,r){var i="string"==typeof t?{path:t}:t;if(i._normalized)return i;if(i.name){var o=(i=Jt({},t)).params;return o&&"object"==typeof o&&(i.params=Jt({},o)),i}if(!i.path&&i.params&&e){(i=Jt({},i))._normalized=!0;var s=Jt(Jt({},e.params),i.params);if(e.name)i.name=e.name,i.params=s;else if(e.matched.length){var a=e.matched[e.matched.length-1].path;i.path=Me(a,s,e.path)}return i}var c=function(t){var e="",n="",r=t.indexOf("#");r>=0&&(e=t.slice(r),t=t.slice(0,r));var i=t.indexOf("?");return i>=0&&(n=t.slice(i+1),t=t.slice(0,i)),{path:t,query:n,hash:e}}(i.path||""),l=e&&e.path||"/",u=c.path?ge(c.path,l,n||i.append):l,h=function(t,e,n){void 0===e&&(e={});var r,i=n||ne;try{r=i(t||"")}catch(t){r={}}for(var o in e){var s=e[o];r[o]=Array.isArray(s)?s.map(ee):ee(s)}return r}(c.query,i.query,r&&r.options.parseQuery),p=i.hash||c.hash;return p&&"#"!==p.charAt(0)&&(p="#"+p),{_normalized:!0,path:u,query:h,hash:p}}var Ne,De=function(){},je={name:"RouterLink",props:{to:{type:[String,Object],required:!0},tag:{type:String,default:"a"},custom:Boolean,exact:Boolean,exactPath:Boolean,append:Boolean,replace:Boolean,activeClass:String,exactActiveClass:String,ariaCurrentValue:{type:String,default:"page"},event:{type:[String,Array],default:"click"}},render:function(t){var e=this,n=this.$router,r=this.$route,i=n.resolve(this.to,r,this.append),o=i.location,s=i.route,a=i.href,c={},l=n.options.linkActiveClass,u=n.options.linkExactActiveClass,h=null==l?"router-link-active":l,p=null==u?"router-link-exact-active":u,d=null==this.activeClass?h:this.activeClass,f=null==this.exactActiveClass?p:this.exactActiveClass,g=s.redirectedFrom?oe(null,Re(s.redirectedFrom),null,n):s;c[f]=ue(r,g,this.exactPath),c[d]=this.exact||this.exactPath?c[f]:function(t,e){return 0===t.path.replace(ie,"/").indexOf(e.path.replace(ie,"/"))&&(!e.hash||t.hash===e.hash)&&function(t,e){for(var n in e)if(!(n in t))return!1;return!0}(t.query,e.query)}(r,g);var v=c[f]?this.ariaCurrentValue:null,m=function(t){Le(t)&&(e.replace?n.replace(o,De):n.push(o,De))},y={click:Le};Array.isArray(this.event)?this.event.forEach((function(t){y[t]=m})):y[this.event]=m;var b={class:c},w=!this.$scopedSlots.$hasNormal&&this.$scopedSlots.default&&this.$scopedSlots.default({href:a,route:s,navigate:m,isActive:c[d],isExactActive:c[f]});if(w){if(1===w.length)return w[0];if(w.length>1||!w.length)return 0===w.length?t():t("span",{},w)}if("a"===this.tag)b.on=y,b.attrs={href:a,"aria-current":v};else{var x=ze(this.$slots.default);if(x){x.isStatic=!1;var _=x.data=Jt({},x.data);for(var k in _.on=_.on||{},_.on){var C=_.on[k];k in y&&(_.on[k]=Array.isArray(C)?C:[C])}for(var S in y)S in _.on?_.on[S].push(y[S]):_.on[S]=m;var A=x.data.attrs=Jt({},x.data.attrs);A.href=a,A["aria-current"]=v}else b.on=y}return t(this.tag,b,this.$slots.default)}};function Le(t){if(!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey||t.defaultPrevented||void 0!==t.button&&0!==t.button)){if(t.currentTarget&&t.currentTarget.getAttribute){var e=t.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(e))return}return t.preventDefault&&t.preventDefault(),!0}}function ze(t){if(t)for(var e,n=0;n<t.length;n++){if("a"===(e=t[n]).tag)return e;if(e.children&&(e=ze(e.children)))return e}}var $e="undefined"!=typeof window;function Be(t,e,n,r,i){var o=e||[],s=n||Object.create(null),a=r||Object.create(null);t.forEach((function(t){He(o,s,a,t,i)}));for(var c=0,l=o.length;c<l;c++)"*"===o[c]&&(o.push(o.splice(c,1)[0]),l--,c--);return{pathList:o,pathMap:s,nameMap:a}}function He(t,e,n,r,i,o){var s=r.path,a=r.name,c=r.pathToRegexpOptions||{},l=function(t,e,n){return n||(t=t.replace(/\/$/,"")),"/"===t[0]||null==e?t:ve(e.path+"/"+t)}(s,i,c.strict);"boolean"==typeof r.caseSensitive&&(c.sensitive=r.caseSensitive);var u={path:l,regex:Ue(l,c),components:r.components||{default:r.component},alias:r.alias?"string"==typeof r.alias?[r.alias]:r.alias:[],instances:{},enteredCbs:{},name:a,parent:i,matchAs:o,redirect:r.redirect,beforeEnter:r.beforeEnter,meta:r.meta||{},props:null==r.props?{}:r.components?r.props:{default:r.props}};if(r.children&&r.children.forEach((function(r){var i=o?ve(o+"/"+r.path):void 0;He(t,e,n,r,u,i)})),e[u.path]||(t.push(u.path),e[u.path]=u),void 0!==r.alias)for(var h=Array.isArray(r.alias)?r.alias:[r.alias],p=0;p<h.length;++p){var d={path:h[p],children:r.children};He(t,e,n,d,i,u.path||"/")}a&&(n[a]||(n[a]=u))}function Ue(t,e){return ye(t,[],e)}function Fe(t,e){var n=Be(t),r=n.pathList,i=n.pathMap,o=n.nameMap;function s(t,n,s){var c=Re(t,n,!1,e),l=c.name;if(l){var u=o[l];if(!u)return a(null,c);var h=u.regex.keys.filter((function(t){return!t.optional})).map((function(t){return t.name}));if("object"!=typeof c.params&&(c.params={}),n&&"object"==typeof n.params)for(var p in n.params)!(p in c.params)&&h.indexOf(p)>-1&&(c.params[p]=n.params[p]);return c.path=Me(u.path,c.params),a(u,c,s)}if(c.path){c.params={};for(var d=0;d<r.length;d++){var f=r[d],g=i[f];if(qe(g.regex,c.path,c.params))return a(g,c,s)}}return a(null,c)}function a(t,n,r){return t&&t.redirect?function(t,n){var r=t.redirect,i="function"==typeof r?r(oe(t,n,null,e)):r;if("string"==typeof i&&(i={path:i}),!i||"object"!=typeof i)return a(null,n);var c=i,l=c.name,u=c.path,h=n.query,p=n.hash,d=n.params;return h=c.hasOwnProperty("query")?c.query:h,p=c.hasOwnProperty("hash")?c.hash:p,d=c.hasOwnProperty("params")?c.params:d,l?(o[l],s({_normalized:!0,name:l,query:h,hash:p,params:d},void 0,n)):u?s({_normalized:!0,path:Me(function(t,e){return ge(t,e.parent?e.parent.path:"/",!0)}(u,t),d),query:h,hash:p},void 0,n):a(null,n)}(t,r||n):t&&t.matchAs?function(t,e,n){var r=s({_normalized:!0,path:Me(n,e.params)});if(r){var i=r.matched,o=i[i.length-1];return e.params=r.params,a(o,e)}return a(null,e)}(0,n,t.matchAs):oe(t,n,r,e)}return{match:s,addRoute:function(t,e){var n="object"!=typeof t?o[t]:void 0;Be([e||t],r,i,o,n),n&&Be(n.alias.map((function(t){return{path:t,children:[e]}})),r,i,o,n)},getRoutes:function(){return r.map((function(t){return i[t]}))},addRoutes:function(t){Be(t,r,i,o)}}}function qe(t,e,n){var r=e.match(t);if(!r)return!1;if(!n)return!0;for(var i=1,o=r.length;i<o;++i){var s=t.keys[i-1];s&&(n[s.name||"pathMatch"]="string"==typeof r[i]?te(r[i]):r[i])}return!0}var We=$e&&window.performance&&window.performance.now?window.performance:Date;function Ve(){return We.now().toFixed(3)}var Ye=Ve();function Xe(){return Ye}function Je(t){return Ye=t}var Ge=Object.create(null);function Ze(){"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual");var t=window.location.protocol+"//"+window.location.host,e=window.location.href.replace(t,""),n=Jt({},window.history.state);return n.key=Xe(),window.history.replaceState(n,"",e),window.addEventListener("popstate",tn),function(){window.removeEventListener("popstate",tn)}}function Ke(t,e,n,r){if(t.app){var i=t.options.scrollBehavior;i&&t.app.$nextTick((function(){var o=function(){var t=Xe();if(t)return Ge[t]}(),s=i.call(t,e,n,r?o:null);s&&("function"==typeof s.then?s.then((function(t){sn(t,o)})).catch((function(t){})):sn(s,o))}))}}function Qe(){var t=Xe();t&&(Ge[t]={x:window.pageXOffset,y:window.pageYOffset})}function tn(t){Qe(),t.state&&t.state.key&&Je(t.state.key)}function en(t){return rn(t.x)||rn(t.y)}function nn(t){return{x:rn(t.x)?t.x:window.pageXOffset,y:rn(t.y)?t.y:window.pageYOffset}}function rn(t){return"number"==typeof t}var on=/^#\d/;function sn(t,e){var n,r="object"==typeof t;if(r&&"string"==typeof t.selector){var i=on.test(t.selector)?document.getElementById(t.selector.slice(1)):document.querySelector(t.selector);if(i){var o=t.offset&&"object"==typeof t.offset?t.offset:{};e=function(t,e){var n=document.documentElement.getBoundingClientRect(),r=t.getBoundingClientRect();return{x:r.left-n.left-e.x,y:r.top-n.top-e.y}}(i,o={x:rn((n=o).x)?n.x:0,y:rn(n.y)?n.y:0})}else en(t)&&(e=nn(t))}else r&&en(t)&&(e=nn(t));e&&("scrollBehavior"in document.documentElement.style?window.scrollTo({left:e.x,top:e.y,behavior:t.behavior}):window.scrollTo(e.x,e.y))}var an,cn=$e&&(-1===(an=window.navigator.userAgent).indexOf("Android 2.")&&-1===an.indexOf("Android 4.0")||-1===an.indexOf("Mobile Safari")||-1!==an.indexOf("Chrome")||-1!==an.indexOf("Windows Phone"))&&window.history&&"function"==typeof window.history.pushState;function ln(t,e){Qe();var n=window.history;try{if(e){var r=Jt({},n.state);r.key=Xe(),n.replaceState(r,"",t)}else n.pushState({key:Je(Ve())},"",t)}catch(n){window.location[e?"replace":"assign"](t)}}function un(t){ln(t,!0)}function hn(t,e,n){var r=function(i){i>=t.length?n():t[i]?e(t[i],(function(){r(i+1)})):r(i+1)};r(0)}var pn={redirected:2,aborted:4,cancelled:8,duplicated:16};function dn(t,e){return fn(t,e,pn.cancelled,'Navigation cancelled from "'+t.fullPath+'" to "'+e.fullPath+'" with a new navigation.')}function fn(t,e,n,r){var i=new Error(r);return i._isRouter=!0,i.from=t,i.to=e,i.type=n,i}var gn=["params","query","hash"];function vn(t){return Object.prototype.toString.call(t).indexOf("Error")>-1}function mn(t,e){return vn(t)&&t._isRouter&&(null==e||t.type===e)}function yn(t,e){return bn(t.map((function(t){return Object.keys(t.components).map((function(n){return e(t.components[n],t.instances[n],t,n)}))})))}function bn(t){return Array.prototype.concat.apply([],t)}var wn="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;function xn(t){var e=!1;return function(){for(var n=[],r=arguments.length;r--;)n[r]=arguments[r];if(!e)return e=!0,t.apply(this,n)}}var _n=function(t,e){this.router=t,this.base=function(t){if(!t)if($e){var e=document.querySelector("base");t=(t=e&&e.getAttribute("href")||"/").replace(/^https?:\/\/[^\/]+/,"")}else t="/";return"/"!==t.charAt(0)&&(t="/"+t),t.replace(/\/$/,"")}(e),this.current=ae,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[],this.listeners=[]};function kn(t,e,n,r){var i=yn(t,(function(t,r,i,o){var s=function(t,e){return"function"!=typeof t&&(t=Ne.extend(t)),t.options[e]}(t,e);if(s)return Array.isArray(s)?s.map((function(t){return n(t,r,i,o)})):n(s,r,i,o)}));return bn(r?i.reverse():i)}function Cn(t,e){if(e)return function(){return t.apply(e,arguments)}}_n.prototype.listen=function(t){this.cb=t},_n.prototype.onReady=function(t,e){this.ready?t():(this.readyCbs.push(t),e&&this.readyErrorCbs.push(e))},_n.prototype.onError=function(t){this.errorCbs.push(t)},_n.prototype.transitionTo=function(t,e,n){var r,i=this;try{r=this.router.match(t,this.current)}catch(t){throw this.errorCbs.forEach((function(e){e(t)})),t}var o=this.current;this.confirmTransition(r,(function(){i.updateRoute(r),e&&e(r),i.ensureURL(),i.router.afterHooks.forEach((function(t){t&&t(r,o)})),i.ready||(i.ready=!0,i.readyCbs.forEach((function(t){t(r)})))}),(function(t){n&&n(t),t&&!i.ready&&(mn(t,pn.redirected)&&o===ae||(i.ready=!0,i.readyErrorCbs.forEach((function(e){e(t)}))))}))},_n.prototype.confirmTransition=function(t,e,n){var r=this,i=this.current;this.pending=t;var o,s,a=function(t){!mn(t)&&vn(t)&&(r.errorCbs.length?r.errorCbs.forEach((function(e){e(t)})):console.error(t)),n&&n(t)},c=t.matched.length-1,l=i.matched.length-1;if(ue(t,i)&&c===l&&t.matched[c]===i.matched[l])return this.ensureURL(),a(((s=fn(o=i,t,pn.duplicated,'Avoided redundant navigation to current location: "'+o.fullPath+'".')).name="NavigationDuplicated",s));var u,h=function(t,e){var n,r=Math.max(t.length,e.length);for(n=0;n<r&&t[n]===e[n];n++);return{updated:e.slice(0,n),activated:e.slice(n),deactivated:t.slice(n)}}(this.current.matched,t.matched),p=h.updated,d=h.deactivated,f=h.activated,g=[].concat(function(t){return kn(t,"beforeRouteLeave",Cn,!0)}(d),this.router.beforeHooks,function(t){return kn(t,"beforeRouteUpdate",Cn)}(p),f.map((function(t){return t.beforeEnter})),(u=f,function(t,e,n){var r=!1,i=0,o=null;yn(u,(function(t,e,s,a){if("function"==typeof t&&void 0===t.cid){r=!0,i++;var c,l=xn((function(e){var r;((r=e).__esModule||wn&&"Module"===r[Symbol.toStringTag])&&(e=e.default),t.resolved="function"==typeof e?e:Ne.extend(e),s.components[a]=e,--i<=0&&n()})),u=xn((function(t){var e="Failed to resolve async component "+a+": "+t;o||(o=vn(t)?t:new Error(e),n(o))}));try{c=t(l,u)}catch(t){u(t)}if(c)if("function"==typeof c.then)c.then(l,u);else{var h=c.component;h&&"function"==typeof h.then&&h.then(l,u)}}})),r||n()})),v=function(e,n){if(r.pending!==t)return a(dn(i,t));try{e(t,i,(function(e){!1===e?(r.ensureURL(!0),a(function(t,e){return fn(t,e,pn.aborted,'Navigation aborted from "'+t.fullPath+'" to "'+e.fullPath+'" via a navigation guard.')}(i,t))):vn(e)?(r.ensureURL(!0),a(e)):"string"==typeof e||"object"==typeof e&&("string"==typeof e.path||"string"==typeof e.name)?(a(function(t,e){return fn(t,e,pn.redirected,'Redirected when going from "'+t.fullPath+'" to "'+function(t){if("string"==typeof t)return t;if("path"in t)return t.path;var e={};return gn.forEach((function(n){n in t&&(e[n]=t[n])})),JSON.stringify(e,null,2)}(e)+'" via a navigation guard.')}(i,t)),"object"==typeof e&&e.replace?r.replace(e):r.push(e)):n(e)}))}catch(t){a(t)}};hn(g,v,(function(){hn(function(t){return kn(t,"beforeRouteEnter",(function(t,e,n,r){return function(t,e,n){return function(r,i,o){return t(r,i,(function(t){"function"==typeof t&&(e.enteredCbs[n]||(e.enteredCbs[n]=[]),e.enteredCbs[n].push(t)),o(t)}))}}(t,n,r)}))}(f).concat(r.router.resolveHooks),v,(function(){if(r.pending!==t)return a(dn(i,t));r.pending=null,e(t),r.router.app&&r.router.app.$nextTick((function(){pe(t)}))}))}))},_n.prototype.updateRoute=function(t){this.current=t,this.cb&&this.cb(t)},_n.prototype.setupListeners=function(){},_n.prototype.teardown=function(){this.listeners.forEach((function(t){t()})),this.listeners=[],this.current=ae,this.pending=null};var Sn=function(t){function e(e,n){t.call(this,e,n),this._startLocation=An(this.base)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setupListeners=function(){var t=this;if(!(this.listeners.length>0)){var e=this.router,n=e.options.scrollBehavior,r=cn&&n;r&&this.listeners.push(Ze());var i=function(){var n=t.current,i=An(t.base);t.current===ae&&i===t._startLocation||t.transitionTo(i,(function(t){r&&Ke(e,t,n,!0)}))};window.addEventListener("popstate",i),this.listeners.push((function(){window.removeEventListener("popstate",i)}))}},e.prototype.go=function(t){window.history.go(t)},e.prototype.push=function(t,e,n){var r=this,i=this.current;this.transitionTo(t,(function(t){ln(ve(r.base+t.fullPath)),Ke(r.router,t,i,!1),e&&e(t)}),n)},e.prototype.replace=function(t,e,n){var r=this,i=this.current;this.transitionTo(t,(function(t){un(ve(r.base+t.fullPath)),Ke(r.router,t,i,!1),e&&e(t)}),n)},e.prototype.ensureURL=function(t){if(An(this.base)!==this.current.fullPath){var e=ve(this.base+this.current.fullPath);t?ln(e):un(e)}},e.prototype.getCurrentLocation=function(){return An(this.base)},e}(_n);function An(t){var e=window.location.pathname;return t&&0===e.toLowerCase().indexOf(t.toLowerCase())&&(e=e.slice(t.length)),(e||"/")+window.location.search+window.location.hash}var En=function(t){function e(e,n,r){t.call(this,e,n),r&&function(t){var e=An(t);if(!/^\/#/.test(e))return window.location.replace(ve(t+"/#"+e)),!0}(this.base)||On()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setupListeners=function(){var t=this;if(!(this.listeners.length>0)){var e=this.router.options.scrollBehavior,n=cn&&e;n&&this.listeners.push(Ze());var r=function(){var e=t.current;On()&&t.transitionTo(Tn(),(function(r){n&&Ke(t.router,r,e,!0),cn||Mn(r.fullPath)}))},i=cn?"popstate":"hashchange";window.addEventListener(i,r),this.listeners.push((function(){window.removeEventListener(i,r)}))}},e.prototype.push=function(t,e,n){var r=this,i=this.current;this.transitionTo(t,(function(t){In(t.fullPath),Ke(r.router,t,i,!1),e&&e(t)}),n)},e.prototype.replace=function(t,e,n){var r=this,i=this.current;this.transitionTo(t,(function(t){Mn(t.fullPath),Ke(r.router,t,i,!1),e&&e(t)}),n)},e.prototype.go=function(t){window.history.go(t)},e.prototype.ensureURL=function(t){var e=this.current.fullPath;Tn()!==e&&(t?In(e):Mn(e))},e.prototype.getCurrentLocation=function(){return Tn()},e}(_n);function On(){var t=Tn();return"/"===t.charAt(0)||(Mn("/"+t),!1)}function Tn(){var t=window.location.href,e=t.indexOf("#");return e<0?"":t=t.slice(e+1)}function Pn(t){var e=window.location.href,n=e.indexOf("#");return(n>=0?e.slice(0,n):e)+"#"+t}function In(t){cn?ln(Pn(t)):window.location.hash=t}function Mn(t){cn?un(Pn(t)):window.location.replace(Pn(t))}var Rn=function(t){function e(e,n){t.call(this,e,n),this.stack=[],this.index=-1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.push=function(t,e,n){var r=this;this.transitionTo(t,(function(t){r.stack=r.stack.slice(0,r.index+1).concat(t),r.index++,e&&e(t)}),n)},e.prototype.replace=function(t,e,n){var r=this;this.transitionTo(t,(function(t){r.stack=r.stack.slice(0,r.index).concat(t),e&&e(t)}),n)},e.prototype.go=function(t){var e=this,n=this.index+t;if(!(n<0||n>=this.stack.length)){var r=this.stack[n];this.confirmTransition(r,(function(){var t=e.current;e.index=n,e.updateRoute(r),e.router.afterHooks.forEach((function(e){e&&e(r,t)}))}),(function(t){mn(t,pn.duplicated)&&(e.index=n)}))}},e.prototype.getCurrentLocation=function(){var t=this.stack[this.stack.length-1];return t?t.fullPath:"/"},e.prototype.ensureURL=function(){},e}(_n),Nn=function(t){void 0===t&&(t={}),this.app=null,this.apps=[],this.options=t,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=Fe(t.routes||[],this);var e=t.mode||"hash";switch(this.fallback="history"===e&&!cn&&!1!==t.fallback,this.fallback&&(e="hash"),$e||(e="abstract"),this.mode=e,e){case"history":this.history=new Sn(this,t.base);break;case"hash":this.history=new En(this,t.base,this.fallback);break;case"abstract":this.history=new Rn(this,t.base)}},Dn={currentRoute:{configurable:!0}};function jn(t,e){return t.push(e),function(){var n=t.indexOf(e);n>-1&&t.splice(n,1)}}Nn.prototype.match=function(t,e,n){return this.matcher.match(t,e,n)},Dn.currentRoute.get=function(){return this.history&&this.history.current},Nn.prototype.init=function(t){var e=this;if(this.apps.push(t),t.$once("hook:destroyed",(function(){var n=e.apps.indexOf(t);n>-1&&e.apps.splice(n,1),e.app===t&&(e.app=e.apps[0]||null),e.app||e.history.teardown()})),!this.app){this.app=t;var n=this.history;if(n instanceof Sn||n instanceof En){var r=function(t){n.setupListeners(),function(t){var r=n.current,i=e.options.scrollBehavior;cn&&i&&"fullPath"in t&&Ke(e,t,r,!1)}(t)};n.transitionTo(n.getCurrentLocation(),r,r)}n.listen((function(t){e.apps.forEach((function(e){e._route=t}))}))}},Nn.prototype.beforeEach=function(t){return jn(this.beforeHooks,t)},Nn.prototype.beforeResolve=function(t){return jn(this.resolveHooks,t)},Nn.prototype.afterEach=function(t){return jn(this.afterHooks,t)},Nn.prototype.onReady=function(t,e){this.history.onReady(t,e)},Nn.prototype.onError=function(t){this.history.onError(t)},Nn.prototype.push=function(t,e,n){var r=this;if(!e&&!n&&"undefined"!=typeof Promise)return new Promise((function(e,n){r.history.push(t,e,n)}));this.history.push(t,e,n)},Nn.prototype.replace=function(t,e,n){var r=this;if(!e&&!n&&"undefined"!=typeof Promise)return new Promise((function(e,n){r.history.replace(t,e,n)}));this.history.replace(t,e,n)},Nn.prototype.go=function(t){this.history.go(t)},Nn.prototype.back=function(){this.go(-1)},Nn.prototype.forward=function(){this.go(1)},Nn.prototype.getMatchedComponents=function(t){var e=t?t.matched?t:this.resolve(t).route:this.currentRoute;return e?[].concat.apply([],e.matched.map((function(t){return Object.keys(t.components).map((function(e){return t.components[e]}))}))):[]},Nn.prototype.resolve=function(t,e,n){var r=Re(t,e=e||this.history.current,n,this),i=this.match(r,e),o=i.redirectedFrom||i.fullPath;return{location:r,route:i,href:function(t,e,n){var r="hash"===n?"#"+e:e;return t?ve(t+"/"+r):r}(this.history.base,o,this.mode),normalizedTo:r,resolved:i}},Nn.prototype.getRoutes=function(){return this.matcher.getRoutes()},Nn.prototype.addRoute=function(t,e){this.matcher.addRoute(t,e),this.history.current!==ae&&this.history.transitionTo(this.history.getCurrentLocation())},Nn.prototype.addRoutes=function(t){this.matcher.addRoutes(t),this.history.current!==ae&&this.history.transitionTo(this.history.getCurrentLocation())},Object.defineProperties(Nn.prototype,Dn),Nn.install=function t(e){if(!t.installed||Ne!==e){t.installed=!0,Ne=e;var n=function(t){return void 0!==t},r=function(t,e){var r=t.$options._parentVnode;n(r)&&n(r=r.data)&&n(r=r.registerRouteInstance)&&r(t,e)};e.mixin({beforeCreate:function(){n(this.$options.router)?(this._routerRoot=this,this._router=this.$options.router,this._router.init(this),e.util.defineReactive(this,"_route",this._router.history.current)):this._routerRoot=this.$parent&&this.$parent._routerRoot||this,r(this,this)},destroyed:function(){r(this)}}),Object.defineProperty(e.prototype,"$router",{get:function(){return this._routerRoot._router}}),Object.defineProperty(e.prototype,"$route",{get:function(){return this._routerRoot._route}}),e.component("RouterView",de),e.component("RouterLink",je);var i=e.config.optionMergeStrategies;i.beforeRouteEnter=i.beforeRouteLeave=i.beforeRouteUpdate=i.created}},Nn.version="3.5.1",Nn.isNavigationFailure=mn,Nn.NavigationFailureType=pn,Nn.START_LOCATION=ae,$e&&window.Vue&&window.Vue.use(Nn);const Ln=Nn;var zn=n(2445),$n=n.n(zn),Bn=n(4569),Hn=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("page",{attrs:{loading:t.loading}},[n("nav-header",{attrs:{title:"Dashboard"}},[n("div",{staticClass:"widgets-container"},[n("br-button",{attrs:{normal:"",boxy:"","data-tooltip":"Add more widgets to the dashboard"},on:{click:function(e){t.showWidgets=!t.showWidgets}}},[n("AppsIcon"),t._v("\n Widgets\n ")],1),t._v(" "),n("div",{staticClass:"widgets-list",style:{display:t.showWidgets?"block":"none"}},t._l(t.widgetList,(function(e,r){return n("div",{key:r,staticClass:"widget-item"},[n("div",{staticClass:"name",attrs:{"data-tooltip":e.tooltip}},[n(e.icon,{tag:"component"}),t._v("\n "+t._s(r)+"\n ")],1),t._v(" "),t.hasWidget[r]?n("br-button",{attrs:{warn:"",icon:"","data-tooltip":"Remove "+r+" widget"},on:{click:function(e){return t.removeWidget(r)}}},[n("MinusIcon")],1):n("br-button",{attrs:{main:"",icon:"","data-tooltip":"Add "+r+" widget"},on:{click:function(e){return t.addWidget(r)}}},[n("PlusIcon")],1)],1)})),0)],1)]),t._v(" "),n("page-content",[n("side-nav",{attrs:{active:t.$route.name}}),t._v(" "),n("div",{staticClass:"grid-container"},[n("grid-layout",{attrs:{layout:t.layout,colNum:5,"row-height":100,"is-draggable":!0,"is-resizable":!0,"vertical-compact":!1,margin:[8,8],responsive:!0,"use-css-transforms":!0},on:{"layout-updated":t.layoutUpdated}},t._l(t.layout,(function(e){return n("grid-item",{key:e.i,attrs:{x:e.x,y:e.y,w:e.w,h:e.h,i:e.i,minW:2,maxW:10,minH:2,maxH:10,"drag-allow-from":".drag-handle","drag-ignore-from":".no-drag"}},[n("br-header",{staticClass:"drag-handle"},[n("span",{staticStyle:{flex:"1"}},[t._v(t._s(e.i))]),t._v(" "),n("br-button",{staticClass:"no-drag",attrs:{icon:"",error:"","data-tooltip":"Close widget"},on:{click:function(n){return t.removeWidget(e.i)}}},[n("XIcon")],1)],1),t._v(" "),n("div",{staticClass:"drag-contents"},[e.component?n(e.component,{tag:"component"}):t._e()],1),t._v(" "),n("ChevronDownRightIcon",{staticClass:"resize-handle"})],1)})),1)],1)],1)],1)};Hn._withStripped=!0;var Un=n(7502);const Fn={name:"XIcon",props:{size:{type:String,default:"24"}},functional:!0,render(t,e){const n=parseInt(e.props.size)+"px",r=e.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,e.data.attrs=r,t("svg",k()([{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},class:"icon icon-tabler icon-tabler-x"},e.data]),[" ",t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}})," ",t("line",{attrs:{x1:"18",y1:"6",x2:"6",y2:"18"}})," ",t("line",{attrs:{x1:"6",y1:"6",x2:"18",y2:"18"}})," "])}},qn={created(){},methods:{layoutUpdated(t){localStorage.omeggaDashLayout=JSON.stringify(t)},removeWidget(t){this.layout=this.layout.filter((e=>e.i!==t))},addWidget(t){this.layout.push({x:0,y:0,w:2,h:2,i:t,component:this.widgetList[t].component})}},sockets:{},computed:{hasWidget(){return Object.fromEntries(this.layout.map((t=>[t.i,!0])))}},data(){let t=[{x:0,y:0,w:2,h:2,i:"chat",component:"br-chat-widget"},{x:2,y:0,w:2,h:2,i:"status",component:"br-status-widget"}];return localStorage.omeggaDashLayout&&(t=JSON.parse(localStorage.omeggaDashLayout)),{loading:!1,showWidgets:!1,widgetList:{chat:{component:"br-chat-widget",icon:"MessageDotsIcon",tooltip:"Chat with online players"},status:{component:"br-status-widget",icon:"ListIcon",tooltip:"View current online players and server status"}},layout:t}},components:{AppsIcon:{name:"AppsIcon",props:{size:{type:String,default:"24"}},functional:!0,render(t,e){const n=parseInt(e.props.size)+"px",r=e.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,e.data.attrs=r,t("svg",k()([{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},class:"icon icon-tabler icon-tabler-apps"},e.data]),[" ",t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}})," ",t("rect",{attrs:{x:"4",y:"4",width:"6",height:"6",rx:"1"}})," ",t("rect",{attrs:{x:"4",y:"14",width:"6",height:"6",rx:"1"}})," ",t("rect",{attrs:{x:"14",y:"14",width:"6",height:"6",rx:"1"}})," ",t("line",{attrs:{x1:"14",y1:"7",x2:"20",y2:"7"}})," ",t("line",{attrs:{x1:"17",y1:"4",x2:"17",y2:"10"}})," "])}},PlusIcon:W,MinusIcon:V,MessageDotsIcon:{name:"MessageDotsIcon",props:{size:{type:String,default:"24"}},functional:!0,render(t,e){const n=parseInt(e.props.size)+"px",r=e.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,e.data.attrs=r,t("svg",k()([{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},class:"icon icon-tabler icon-tabler-message-dots"},e.data]),[" ",t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}})," ",t("path",{attrs:{d:"M4 21v-13a3 3 0 0 1 3 -3h10a3 3 0 0 1 3 3v6a3 3 0 0 1 -3 3h-9l-4 4"}})," ",t("line",{attrs:{x1:"12",y1:"11",x2:"12",y2:"11.01"}})," ",t("line",{attrs:{x1:"8",y1:"11",x2:"8",y2:"11.01"}})," ",t("line",{attrs:{x1:"16",y1:"11",x2:"16",y2:"11.01"}})," "])}},ListIcon:Nt,XIcon:Fn,ChevronDownRightIcon:{name:"ChevronDownRightIcon",props:{size:{type:String,default:"24"}},functional:!0,render(t,e){const n=parseInt(e.props.size)+"px",r=e.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,e.data.attrs=r,t("svg",k()([{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},class:"icon icon-tabler icon-tabler-chevron-down-right"},e.data]),[" ",t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}})," ",t("path",{attrs:{d:"M16 8v8h-8"}})," "])}},GridLayout:Un.GridLayout,GridItem:Un.GridItem}};n(7620);var Wn=i(qn,Hn,[],!1,null,null,null);Wn.options.__file="src/webserver/frontend/views/Home.vue";const Vn=Wn.exports;var Yn=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("page",[n("nav-header",{attrs:{title:"Plugins"}},[n("span",{staticStyle:{flex:"1"}}),t._v(" "),n("br-button",{attrs:{warn:"",disabled:t.reloading,"data-tooltip":"Reload all plugins, this may clear current plugin progress"},on:{click:t.reloadPlugins}},[n("RefreshAlertIcon"),t._v("\n Reload Plugins\n ")],1)],1),t._v(" "),n("page-content",[n("side-nav",{attrs:{active:t.$route.name}}),t._v(" "),n("div",{staticClass:"generic-container plugins-container"},[n("div",{staticClass:"plugins-list-container"},[n("br-navbar",[n("br-input",{attrs:{placeholder:"Search Plugins..."},model:{value:t.search,callback:function(e){t.search=e},expression:"search"}}),t._v(" "),n("span",{staticStyle:{flex:"1"}}),t._v(" "),n("br-button",{attrs:{icon:"",normal:"","data-tooltip":"Refresh plugin list"},on:{click:t.getPlugins}},[n("RotateIcon")],1)],1),t._v(" "),n("div",{staticClass:"plugins-list"},[n("br-scroll",t._l(t.plugins,(function(e){return t.matches(e)?n("router-link",{key:e.path,tag:"div",staticClass:"plugin-item",attrs:{to:"/plugins/"+e.path,"data-tooltip":e.documentation&&e.documentation.description}},[n(e.icon,{tag:"component",class:[e.status],attrs:{"data-tooltip":e.tooltip}}),t._v("\n "+t._s(e.name)+"\n ")],1):t._e()})),1),t._v(" "),n("br-loader",{attrs:{active:t.loading,size:"huge"}},[t._v("Loading Plugins")])],1)],1),t._v(" "),n("div",{staticClass:"plugin-inspector-container"},[n("br-navbar",[t._v("\n "+t._s(t.selectedPlugin)+"\n ")]),t._v(" "),n("div",{staticClass:"plugin-inspector"},[n("router-view",{key:t.$route.params.id})],1)],1)])],1)],1)};Yn._withStripped=!0;const Xn={name:"RotateIcon",props:{size:{type:String,default:"24"}},functional:!0,render(t,e){const n=parseInt(e.props.size)+"px",r=e.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,e.data.attrs=r,t("svg",k()([{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},class:"icon icon-tabler icon-tabler-rotate"},e.data]),[" ",t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}})," ",t("path",{attrs:{d:"M19.95 11a8 8 0 1 0 -.5 4m.5 5v-5h-5"}})," "])}},Jn=t=>{t.state=(t.isLoaded?2:0)+(t.isEnabled?1:0),t.status=["disabled","broken","bugged","running"][t.state],t.tooltip=["Plugin is disabled","Plugin is enabled but not running","Plugin is running but not enabled","Plugin is running"][t.state],t.icon=["PowerIcon","AlertCircleIcon","BugIcon","CircleCheckIcon"][t.state]},Gn={components:{RotateIcon:Xn,PowerIcon:{name:"PowerIcon",props:{size:{type:String,default:"24"}},functional:!0,render(t,e){const n=parseInt(e.props.size)+"px",r=e.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,e.data.attrs=r,t("svg",k()([{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},class:"icon icon-tabler icon-tabler-power"},e.data]),[" ",t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}})," ",t("path",{attrs:{d:"M7 6a7.75 7.75 0 1 0 10 0"}})," ",t("line",{attrs:{x1:"12",y1:"4",x2:"12",y2:"12"}})," "])}},AlertCircleIcon:{name:"AlertCircleIcon",props:{size:{type:String,default:"24"}},functional:!0,render(t,e){const n=parseInt(e.props.size)+"px",r=e.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,e.data.attrs=r,t("svg",k()([{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},class:"icon icon-tabler icon-tabler-alert-circle"},e.data]),[" ",t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}})," ",t("circle",{attrs:{cx:"12",cy:"12",r:"9"}})," ",t("line",{attrs:{x1:"12",y1:"8",x2:"12",y2:"12"}})," ",t("line",{attrs:{x1:"12",y1:"16",x2:"12.01",y2:"16"}})," "])}},BugIcon:{name:"BugIcon",props:{size:{type:String,default:"24"}},functional:!0,render(t,e){const n=parseInt(e.props.size)+"px",r=e.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,e.data.attrs=r,t("svg",k()([{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},class:"icon icon-tabler icon-tabler-bug"},e.data]),[" ",t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}})," ",t("path",{attrs:{d:"M9 9v-1a3 3 0 0 1 6 0v1"}})," ",t("path",{attrs:{d:"M8 9h8a6 6 0 0 1 1 3v3a5 5 0 0 1 -10 0v-3a6 6 0 0 1 1 -3"}})," ",t("line",{attrs:{x1:"3",y1:"13",x2:"7",y2:"13"}})," ",t("line",{attrs:{x1:"17",y1:"13",x2:"21",y2:"13"}})," ",t("line",{attrs:{x1:"12",y1:"20",x2:"12",y2:"14"}})," ",t("line",{attrs:{x1:"4",y1:"19",x2:"7.35",y2:"17"}})," ",t("line",{attrs:{x1:"20",y1:"19",x2:"16.65",y2:"17"}})," ",t("line",{attrs:{x1:"4",y1:"7",x2:"7.75",y2:"9.4"}})," ",t("line",{attrs:{x1:"20",y1:"7",x2:"16.25",y2:"9.4"}})," "])}},CircleCheckIcon:{name:"CircleCheckIcon",props:{size:{type:String,default:"24"}},functional:!0,render(t,e){const n=parseInt(e.props.size)+"px",r=e.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,e.data.attrs=r,t("svg",k()([{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},class:"icon icon-tabler icon-tabler-circle-check"},e.data]),[" ",t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}})," ",t("circle",{attrs:{cx:"12",cy:"12",r:"9"}})," ",t("path",{attrs:{d:"M9 12l2 2l4 -4"}})," "])}},RefreshAlertIcon:{name:"RefreshAlertIcon",props:{size:{type:String,default:"24"}},functional:!0,render(t,e){const n=parseInt(e.props.size)+"px",r=e.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,e.data.attrs=r,t("svg",k()([{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},class:"icon icon-tabler icon-tabler-refresh-alert"},e.data]),[" ",t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}})," ",t("path",{attrs:{d:"M20 11a8.1 8.1 0 0 0 -15.5 -2m-.5 -4v4h4"}})," ",t("path",{attrs:{d:"M4 13a8.1 8.1 0 0 0 15.5 2m.5 4v-4h-4"}})," ",t("line",{attrs:{x1:"12",y1:"9",x2:"12",y2:"12"}})," ",t("line",{attrs:{x1:"12",y1:"15",x2:"12.01",y2:"15"}})," "])}}},created(){this.$$emit("subscribe","plugins"),this.getPlugins()},beforeDestroy(){this.$$emit("unsubscribe","plugins")},methods:{matches(t){return t.name.includes(this.search)},async getPlugins(){this.loading=!0;const t=await this.$$request("plugins.list");this.loading=!1;for(const e of t)Jn(e);this.plugins=t},async reloadPlugins(){this.reloading=!0,await this.$$request("plugins.reload"),this.reloading=!1}},sockets:{plugin([t,e]){const n=this.plugins.find((e=>e.path===t));n&&(Object.assign(n,e),Jn(n))}},computed:{selectedPlugin(){const t=this.plugins.find((t=>t.path===this.$route.params.id));return t?t.name:"SELECT A PLUGIN"}},data:()=>({search:"",loading:!0,reloading:!1,plugins:[]})};n(4223);var Zn=i(Gn,Yn,[],!1,null,"7e59a9f3",null);Zn.options.__file="src/webserver/frontend/views/Plugins.vue";const Kn=Zn.exports;var Qn=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"plugin-view"},[n("br-loader",{attrs:{active:t.loading,size:"huge"}},[t._v("Loading Plugin")]),t._v(" "),n("div",{staticClass:"plugin-info"},[t.loading?t._e():n("br-scroll",[n("div",{staticClass:"stats"},[n("div",{staticClass:"stat"},[n("b",{attrs:{"data-tooltip":"Plugin name"}},[t._v("Name:")]),t._v(" "+t._s(t.plugin.name)+"\n ")]),t._v(" "),n("div",{staticClass:"stat"},[n("b",{attrs:{"data-tooltip":"Plugin creator"}},[t._v("Author:")]),t._v("\n "+t._s(t.plugin.documentation&&t.plugin.documentation.author)+"\n ")]),t._v(" "),n("div",{staticClass:"stat"},[n("b",[t._v("Description:")]),t._v("\n "+t._s(t.plugin.documentation&&t.plugin.documentation.description||"none")+"\n ")]),t._v(" "),n("div",{staticClass:"stat"},[n("b",{attrs:{"data-tooltip":"The folder this plugin runs in"}},[t._v("Folder:")]),t._v("\n "+t._s(t.plugin.path)+"\n ")]),t._v(" "),n("div",{staticClass:"stat"},[n("b",{attrs:{"data-tooltip":"The type of plugin this is"}},[t._v("Format:")]),t._v("\n "+t._s(t.plugin.format)+"\n ")]),t._v(" "),n("div",{staticClass:"stat"},[n("b",{attrs:{"data-tooltip":"Number of objects in the plugin's storage"}},[t._v("Stored Objects:")]),t._v("\n "+t._s(t.plugin.objCount)+"\n ")]),t._v(" "),n("div",{staticClass:"stat"},[n("b",{attrs:{"data-tooltip":"Plugin can be started"}},[t._v("Enabled:")]),t._v("\n "+t._s(t.plugin.isEnabled?"Yes":"No")+"\n ")]),t._v(" "),n("div",{staticClass:"stat"},[n("b",{attrs:{"data-tooltip":"Plugin is running"}},[t._v("Loaded:")]),t._v("\n "+t._s(t.plugin.isLoaded?"Yes":"No")+"\n ")])]),t._v(" "),n("div",{staticClass:"section-header",attrs:{"data-tooltip":"Ways to configure the plugin. Changes take place the next time a plugin is loaded."}},[t._v("\n Configs\n ")]),t._v(" "),n("div",{staticClass:"option-list"},[0===Object.keys(t.plugin.documentation.config||{}).length?n("div",{staticClass:"option-item"},[n("i",{staticClass:"option-name"},[t._v("None")])]):t._e(),t._v(" "),t._l(t.plugin.documentation.config||{},(function(e,r){return n("div",{key:r,staticClass:"option-item config"},[n("div",{staticClass:"option-input"},[n("div",{staticClass:"option-label",attrs:{"data-tooltip":e.description}},[t._v("\n "+t._s(r)+"\n "),n("span",{class:["saved-note",{show:t.showSave[r]}]},[t._v("\n SAVED "),n("CheckIcon",{attrs:{size:"20"}})],1)]),t._v(" "),n("div",{staticClass:"option-value"},[["string","password","number"].includes(e.type)?n("br-input",{attrs:{type:e.type,value:t.config[r]},on:{input:function(e){return t.updateConfig(r,e)}}}):t._e(),t._v(" "),"list"===e.type?n("br-list-input",{attrs:{options:e.options,type:e.itemType,value:t.config[r]},on:{input:function(e){return t.updateConfig(r,e)}}}):t._e(),t._v(" "),"players"===e.type?n("br-player-list",{attrs:{value:t.config[r]},on:{input:function(e){return t.updateConfig(r,e)}}}):t._e(),t._v(" "),"role"===e.type?n("br-role-dropdown",{attrs:{value:t.config[r]},on:{input:function(e){return t.updateConfig(r,e)}}}):t._e(),t._v(" "),"enum"===e.type?n("br-dropdown",{attrs:{options:e.options,value:t.config[r]},on:{input:function(e){return t.updateConfig(r,e)}}}):t._e(),t._v(" "),"boolean"===e.type?n("br-toggle",{attrs:{value:t.config[r]},on:{input:function(e){return t.updateConfig(r,e)}}}):t._e(),t._v(" "),t.eq(e.default,t.config[r])?t._e():n("ArrowBackUpIcon",{staticClass:"reset-button",attrs:{"data-tooltip":"Reset to default value"},on:{click:function(n){return t.updateConfig(r,e.default)}}})],1)])])}))],2),t._v(" "),n("div",{staticClass:"section-header",attrs:{"data-tooltip":"Ways to control the plugin"}},[t._v("\n Commands\n ")]),t._v(" "),n("div",{staticClass:"option-list"},[0===(t.plugin.documentation.commands||[]).length?n("div",{staticClass:"option-item"},[n("i",{staticClass:"option-name"},[t._v("None")])]):t._e(),t._v(" "),t._l(t.plugin.documentation.commands||[],(function(e){return n("div",{key:e.name,staticClass:"option-item"},[n("div",{staticClass:"option-name",attrs:{"data-tooltip":e.description}},[t._v("\n "+t._s(e.name)+"\n ")]),t._v(" "),n("div",{staticClass:"option-args"},t._l(e.args||[],(function(e){return n("div",{key:e.name,class:["option-arg",{required:e.required}],attrs:{"data-tooltip":(e.required?"(required) ":"")+e.description}},[t._v("\n "+t._s(e.name)+"\n ")])})),0)])}))],2)])],1),t._v(" "),n("br-footer",[t.plugin.isEnabled&&!t.plugin.isLoaded?n("br-button",{attrs:{main:"",disabled:t.waiting,"data-tooltip":"Start the plugin"},on:{click:function(e){return t.loadPlugin()}}},[n("PlayerPlayIcon"),t._v("\n Load\n ")],1):t._e(),t._v(" "),t.plugin.isEnabled&&t.plugin.isLoaded?n("br-button",{attrs:{warn:"","data-tooltip":"Stop, then start the plugin",disabled:t.waiting},on:{click:function(e){return t.reloadPlugin()}}},[n("RefreshIcon"),t._v("\n Reload\n ")],1):t._e(),t._v(" "),n("span",{staticStyle:{flex:"1"}}),t._v(" "),t.plugin.isEnabled&&t.plugin.isLoaded?n("br-button",{attrs:{error:"",disabled:t.waiting,"data-tooltip":"Stop the plugin"},on:{click:function(e){return t.unloadPlugin()}}},[n("PlayerStopIcon"),t._v("\n Unload\n ")],1):t._e(),t._v(" "),t.plugin.isEnabled?t._e():n("br-button",{attrs:{main:"","data-tooltip":"Allow the plugin to be started",disabled:t.waiting},on:{click:function(e){return t.togglePlugin(!0)}}},[n("PlusIcon"),t._v("\n Enable\n ")],1),t._v(" "),t.plugin.isEnabled&&!t.plugin.isLoaded?n("br-button",{attrs:{error:"","data-tooltip":"Prevent the plugin from being started",disabled:t.waiting},on:{click:function(e){return t.togglePlugin(!1)}}},[n("MinusIcon"),t._v("\n Disable\n ")],1):t._e()],1)],1)};Qn._withStripped=!0;const tr={name:"PlayerPlayIcon",props:{size:{type:String,default:"24"}},functional:!0,render(t,e){const n=parseInt(e.props.size)+"px",r=e.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,e.data.attrs=r,t("svg",k()([{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},class:"icon icon-tabler icon-tabler-player-play"},e.data]),[" ",t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}})," ",t("path",{attrs:{d:"M7 4v16l13 -8z"}})," "])}},er={name:"PlayerStopIcon",props:{size:{type:String,default:"24"}},functional:!0,render(t,e){const n=parseInt(e.props.size)+"px",r=e.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,e.data.attrs=r,t("svg",k()([{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},class:"icon icon-tabler icon-tabler-player-stop"},e.data]),[" ",t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}})," ",t("rect",{attrs:{x:"5",y:"5",width:"14",height:"14",rx:"2"}})," "])}},nr={name:"RefreshIcon",props:{size:{type:String,default:"24"}},functional:!0,render(t,e){const n=parseInt(e.props.size)+"px",r=e.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,e.data.attrs=r,t("svg",k()([{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},class:"icon icon-tabler icon-tabler-refresh"},e.data]),[" ",t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}})," ",t("path",{attrs:{d:"M20 11a8.1 8.1 0 0 0 -15.5 -2m-.5 -4v4h4"}})," ",t("path",{attrs:{d:"M4 13a8.1 8.1 0 0 0 15.5 2m.5 4v-4h-4"}})," "])}},rr={name:"ArrowBackUpIcon",props:{size:{type:String,default:"24"}},functional:!0,render(t,e){const n=parseInt(e.props.size)+"px",r=e.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,e.data.attrs=r,t("svg",k()([{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},class:"icon icon-tabler icon-tabler-arrow-back-up"},e.data]),[" ",t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}})," ",t("path",{attrs:{d:"M9 13l-4 -4l4 -4m-4 4h11a4 4 0 0 1 0 8h-1"}})," "])}},ir={name:"CheckIcon",props:{size:{type:String,default:"24"}},functional:!0,render(t,e){const n=parseInt(e.props.size)+"px",r=e.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,e.data.attrs=r,t("svg",k()([{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},class:"icon icon-tabler icon-tabler-check"},e.data]),[" ",t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}})," ",t("path",{attrs:{d:"M5 12l5 5l10 -10"}})," "])}},or={components:{PlayerPlayIcon:tr,PlayerStopIcon:er,RefreshIcon:nr,PlusIcon:W,MinusIcon:V,ArrowBackUpIcon:rr,CheckIcon:ir},sockets:{plugin([t,e]){t===this.plugin.path&&Object.assign(this.plugin,e)}},methods:{saveConfig:it()((async function(){const t={};for(const e in this.plugin.config)this.plugin.config[e]!==this.config[e]&&(t[e]=!0);const e=this.config;await this.$$request("plugin.config",this.$route.params.id,e)&&(this.showSave=t,setTimeout((()=>{this.showSave={},this.plugin.config=e}),1e3))}),2e3),updateConfig(t,e){this.config={...this.config,[t]:e},this.saveConfig()},async getPlugin(){this.loading=!0,this.plugin=await this.$$request("plugin.get",this.$route.params.id)||{},this.plugin&&(this.config=this.plugin.config),this.loading=!1},async unloadPlugin(){this.waiting=!0,await this.$$request("plugin.unload",this.$route.params.id),await this.getPlugin(),this.waiting=!1},async loadPlugin(){this.waiting=!0,await this.$$request("plugin.load",this.$route.params.id),await this.getPlugin(),this.waiting=!1},async reloadPlugin(){this.waiting=!0,await this.$$request("plugin.unload",this.$route.params.id)&&await this.$$request("plugin.load",this.$route.params.id),await this.getPlugin(),this.waiting=!1},async togglePlugin(t){this.waiting=!0,await this.$$request("plugin.toggle",this.$route.params.id,t),await this.getPlugin(),this.waiting=!1},eq:(t,e)=>JSON.stringify(t)===JSON.stringify(e)},created(){this.getPlugin()},data:()=>({plugin:{},config:{},showSave:{},loading:!0,waiting:!1})};n(1339);var sr=i(or,Qn,[],!1,null,null,null);sr.options.__file="src/webserver/frontend/views/PluginsInspector.vue";const ar=sr.exports;var cr=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("page",[n("nav-header",{attrs:{title:"Players"}},[n("div",{staticClass:"widgets-container"},[n("br-button",{attrs:{normal:"",boxy:"","data-tooltip":"Player list filters"},on:{click:function(e){t.showFilters=!t.showFilters}}},[n("FilterIcon"),t._v("\n Filters\n ")],1),t._v(" "),n("div",{staticClass:"widgets-list",style:{display:t.showFilters?"block":"none"}},[n("div",{staticClass:"widget-item",attrs:{"data-tooltip":"Filter by banned players"}},[n("div",{staticClass:"name"},[n("BanIcon"),t._v("\n Banned\n ")],1),t._v(" "),n("br-toggle",{on:{input:function(e){return t.doSearch()}},model:{value:t.filterBanned,callback:function(e){t.filterBanned=e},expression:"filterBanned"}})],1)])],1)]),t._v(" "),n("page-content",[n("side-nav",{attrs:{active:t.$route.name}}),t._v(" "),n("div",{staticClass:"generic-container players-container"},[n("div",{staticClass:"player-table-container"},[n("br-navbar",[n("br-input",{attrs:{placeholder:"Search Players..."},on:{input:function(e){return t.doSearch()}},model:{value:t.search,callback:function(e){t.search=e},expression:"search"}}),t._v(" "),n("span",{staticStyle:{flex:"1"}}),t._v(" "),n("br-button",{attrs:{icon:"",normal:"","data-tooltip":"Refresh player list"},on:{click:t.getPlayers}},[n("RotateIcon")],1)],1),t._v(" "),n("div",{staticClass:"players-list"},[n("br-scroll",[n("table",{staticClass:"br-table"},[n("thead",[n("tr",[n("th",{staticStyle:{"text-align":"left",width:"100%"},on:{click:function(e){return t.setSort("name")}}},[n("span",[t._v("\n Name\n "),"name"===t.sort&&1===t.direction?n("SortAscendingIcon"):t._e(),t._v(" "),"name"===t.sort&&-1===t.direction?n("SortDescendingIcon"):t._e()],1)]),t._v(" "),n("th",{attrs:{"data-tooltip":"Number of heartbeats the player has been part of (minutely)"},on:{click:function(e){return t.setSort("heartbeats")}}},[n("span",[t._v("\n Played\n "),"heartbeats"===t.sort&&1===t.direction?n("SortAscendingIcon"):t._e(),t._v(" "),"heartbeats"===t.sort&&-1===t.direction?n("SortDescendingIcon"):t._e()],1)]),t._v(" "),n("th",{attrs:{"data-tooltip":"When the player was last seen"},on:{click:function(e){return t.setSort("lastSeen")}}},[n("span",[t._v("\n Seen\n "),"lastSeen"===t.sort&&1===t.direction?n("SortAscendingIcon"):t._e(),t._v(" "),"lastSeen"===t.sort&&-1===t.direction?n("SortDescendingIcon"):t._e()],1)]),t._v(" "),n("th",{attrs:{"data-tooltip":"When the player joined"},on:{click:function(e){return t.setSort("created")}}},[n("span",[t._v("\n Joined\n "),"created"===t.sort&&1===t.direction?n("SortAscendingIcon"):t._e(),t._v(" "),"created"===t.sort&&-1===t.direction?n("SortDescendingIcon"):t._e()],1)]),t._v(" "),n("th",{attrs:{"data-tooltip":"Number of Visits"},on:{click:function(e){return t.setSort("sessions")}}},[n("span",{staticClass:"icon-cell"},[n("MapPinIcon",{staticClass:"label",attrs:{size:"30"}}),t._v(" "),"sessions"===t.sort&&1===t.direction?n("SortAscendingIcon"):t._e(),t._v(" "),"sessions"===t.sort&&-1===t.direction?n("SortDescendingIcon"):t._e()],1)])])]),t._v(" "),n("tbody",t._l(t.players,(function(e){return n("tr",{class:{active:e.id===t.$route.params.id},on:{click:function(n){return t.clickPlayer(e)}}},[n("td",{class:{ban:!!e.ban}},[t._v("\n "+t._s(e.name)+"\n "),e.ban?n("BanIcon",{attrs:{size:"18"}}):t._e()],1),t._v(" "),n("td",{staticStyle:{"text-align":"right"}},[t._v("\n "+t._s(t.heartbeatAgo(e.heartbeats))+"\n ")]),t._v(" "),n("td",{staticStyle:{"text-align":"right"},attrs:{"data-tooltip":new Date(e.lastSeen)}},[t._v("\n "+t._s(t.duration(e.seenAgo))+"\n ")]),t._v(" "),n("td",{staticStyle:{"text-align":"right"},attrs:{"data-tooltip":new Date(e.created)}},[t._v("\n "+t._s(t.duration(e.createdAgo))+"\n ")]),t._v(" "),n("td",{staticStyle:{"text-align":"right"}},[t._v("\n "+t._s(e.sessions)+"\n ")])])})),0)])]),t._v(" "),n("br-footer",{staticClass:"pagination-footer"},[n("br-button",{attrs:{icon:"",normal:"",disabled:0===t.page},on:{click:function(e){t.page=0,t.getPlayers()}}},[n("ArrowBarToLeftIcon")],1),t._v(" "),n("br-button",{attrs:{icon:"",normal:"",disabled:0===t.page},on:{click:function(e){t.page--,t.getPlayers()}}},[n("ArrowLeftIcon")],1),t._v(" "),n("div",{staticClass:"current-page"},[t._v("\n Page "+t._s(t.page+1)+" of "+t._s(t.pages)+", Showing "+t._s(t.players.length)+" of "+t._s(t.total)+"\n ")]),t._v(" "),n("br-button",{attrs:{icon:"",normal:"",disabled:t.page>=t.pages-1},on:{click:function(e){t.page++,t.getPlayers()}}},[n("ArrowRightIcon")],1),t._v(" "),n("br-button",{attrs:{icon:"",normal:"",disabled:t.page===t.pages-1},on:{click:function(e){t.page=t.pages-1,t.getPlayers()}}},[n("ArrowBarToRightIcon")],1)],1),t._v(" "),n("br-loader",{attrs:{active:t.loading,size:"huge"}},[t._v("Loading Players")])],1)],1),t._v(" "),n("div",{staticClass:"player-inspector-container"},[n("br-navbar",[t._v("\n "+t._s(t.selectedPlayer)+"\n ")]),t._v(" "),n("div",{staticClass:"player-inspector"},[n("router-view",{key:t.$route.params.id})],1)],1)])],1)],1)};cr._withStripped=!0;const lr={name:"ArrowBarToLeftIcon",props:{size:{type:String,default:"24"}},functional:!0,render(t,e){const n=parseInt(e.props.size)+"px",r=e.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,e.data.attrs=r,t("svg",k()([{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},class:"icon icon-tabler icon-tabler-arrow-bar-to-left"},e.data]),[" ",t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}})," ",t("line",{attrs:{x1:"10",y1:"12",x2:"20",y2:"12"}})," ",t("line",{attrs:{x1:"10",y1:"12",x2:"14",y2:"16"}})," ",t("line",{attrs:{x1:"10",y1:"12",x2:"14",y2:"8"}})," ",t("line",{attrs:{x1:"4",y1:"4",x2:"4",y2:"20"}})," "])}},ur={name:"ArrowBarToRightIcon",props:{size:{type:String,default:"24"}},functional:!0,render(t,e){const n=parseInt(e.props.size)+"px",r=e.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,e.data.attrs=r,t("svg",k()([{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},class:"icon icon-tabler icon-tabler-arrow-bar-to-right"},e.data]),[" ",t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}})," ",t("line",{attrs:{x1:"14",y1:"12",x2:"4",y2:"12"}})," ",t("line",{attrs:{x1:"14",y1:"12",x2:"10",y2:"16"}})," ",t("line",{attrs:{x1:"14",y1:"12",x2:"10",y2:"8"}})," ",t("line",{attrs:{x1:"20",y1:"4",x2:"20",y2:"20"}})," "])}},hr={name:"ArrowLeftIcon",props:{size:{type:String,default:"24"}},functional:!0,render(t,e){const n=parseInt(e.props.size)+"px",r=e.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,e.data.attrs=r,t("svg",k()([{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},class:"icon icon-tabler icon-tabler-arrow-left"},e.data]),[" ",t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}})," ",t("line",{attrs:{x1:"5",y1:"12",x2:"19",y2:"12"}})," ",t("line",{attrs:{x1:"5",y1:"12",x2:"11",y2:"18"}})," ",t("line",{attrs:{x1:"5",y1:"12",x2:"11",y2:"6"}})," "])}},pr={name:"ArrowRightIcon",props:{size:{type:String,default:"24"}},functional:!0,render(t,e){const n=parseInt(e.props.size)+"px",r=e.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,e.data.attrs=r,t("svg",k()([{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},class:"icon icon-tabler icon-tabler-arrow-right"},e.data]),[" ",t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}})," ",t("line",{attrs:{x1:"5",y1:"12",x2:"19",y2:"12"}})," ",t("line",{attrs:{x1:"13",y1:"18",x2:"19",y2:"12"}})," ",t("line",{attrs:{x1:"13",y1:"6",x2:"19",y2:"12"}})," "])}},dr={name:"SortAscendingIcon",props:{size:{type:String,default:"24"}},functional:!0,render(t,e){const n=parseInt(e.props.size)+"px",r=e.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,e.data.attrs=r,t("svg",k()([{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},class:"icon icon-tabler icon-tabler-sort-ascending"},e.data]),[" ",t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}})," ",t("line",{attrs:{x1:"4",y1:"6",x2:"11",y2:"6"}})," ",t("line",{attrs:{x1:"4",y1:"12",x2:"11",y2:"12"}})," ",t("line",{attrs:{x1:"4",y1:"18",x2:"13",y2:"18"}})," ",t("polyline",{attrs:{points:"15 9 18 6 21 9"}})," ",t("line",{attrs:{x1:"18",y1:"6",x2:"18",y2:"18"}})," "])}},fr={name:"SortDescendingIcon",props:{size:{type:String,default:"24"}},functional:!0,render(t,e){const n=parseInt(e.props.size)+"px",r=e.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,e.data.attrs=r,t("svg",k()([{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},class:"icon icon-tabler icon-tabler-sort-descending"},e.data]),[" ",t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}})," ",t("line",{attrs:{x1:"4",y1:"6",x2:"13",y2:"6"}})," ",t("line",{attrs:{x1:"4",y1:"12",x2:"11",y2:"12"}})," ",t("line",{attrs:{x1:"4",y1:"18",x2:"11",y2:"18"}})," ",t("polyline",{attrs:{points:"15 15 18 18 21 15"}})," ",t("line",{attrs:{x1:"18",y1:"6",x2:"18",y2:"18"}})," "])}},gr={components:{RotateIcon:Xn,ArrowBarToLeftIcon:lr,ArrowBarToRightIcon:ur,ArrowLeftIcon:hr,ArrowRightIcon:pr,SortAscendingIcon:dr,SortDescendingIcon:fr,MapPinIcon:{name:"MapPinIcon",props:{size:{type:String,default:"24"}},functional:!0,render(t,e){const n=parseInt(e.props.size)+"px",r=e.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,e.data.attrs=r,t("svg",k()([{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},class:"icon icon-tabler icon-tabler-map-pin"},e.data]),[" ",t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}})," ",t("circle",{attrs:{cx:"12",cy:"11",r:"3"}})," ",t("path",{attrs:{d:"M17.657 16.657l-4.243 4.243a2 2 0 0 1 -2.827 0l-4.244 -4.243a8 8 0 1 1 11.314 0z"}})," "])}},BanIcon:{name:"BanIcon",props:{size:{type:String,default:"24"}},functional:!0,render(t,e){const n=parseInt(e.props.size)+"px",r=e.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,e.data.attrs=r,t("svg",k()([{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},class:"icon icon-tabler icon-tabler-ban"},e.data]),[" ",t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}})," ",t("circle",{attrs:{cx:"12",cy:"12",r:"9"}})," ",t("line",{attrs:{x1:"5.7",y1:"5.7",x2:"18.3",y2:"18.3"}})," "])}},FilterIcon:{name:"FilterIcon",props:{size:{type:String,default:"24"}},functional:!0,render(t,e){const n=parseInt(e.props.size)+"px",r=e.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,e.data.attrs=r,t("svg",k()([{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},class:"icon icon-tabler icon-tabler-filter"},e.data]),[" ",t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}})," ",t("path",{attrs:{d:"M5.5 5h13a1 1 0 0 1 .5 1.5l-5 5.5l0 7l-4 -3l0 -4l-5 -5.5a1 1 0 0 1 .5 -1.5"}})," "])}}},created(){this.getPlayers(),setTimeout((()=>{this.nameLookup[this.$route.params.id]&&this.update++}),500)},methods:{async getPlayers(){this.loading=!0;const{players:t,total:e,pages:n}=await this.$$request("players.list",{page:this.page,search:this.search,sort:this.sort,direction:this.direction,filter:this.filterBanned?"banned":""});this.pages=n,this.total=e,this.players=t,this.loading=!1},clickPlayer(t){this.$route.params.id!==t.id&&this.$router.push({path:`/players/${t.id}`})},doSearch:it()((function(){this.page=0,this.getPlayers()}),500),setSort(t){this.sort===t?this.direction*=-1:(this.sort=t,this.direction="name"===t?1:-1),this.getPlayers()}},sockets:{},computed:{selectedPlayer(){if(this.update,this.nameLookup[this.$route.params.id])return this.nameLookup[this.$route.params.id];const t=this.players.find((t=>t.id===this.$route.params.id));return t?t.name:"SELECT A PLAYER"}},data:()=>({search:"",sort:"lastSeen",direction:-1,pages:0,total:0,page:0,update:0,loading:!0,filterBanned:!1,showFilters:!1,players:[]})};n(4163);var vr=i(gr,cr,[],!1,null,"6a109b05",null);vr.options.__file="src/webserver/frontend/views/Players.vue";const mr=vr.exports;var yr=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"player-view"},[n("br-loader",{attrs:{active:t.loading,size:"huge"}},[t._v("Loading Player")]),t._v(" "),n("div",{staticClass:"player-info"},[t.loading?t._e():n("br-scroll",[n("div",{staticClass:"stats"},[n("div",{staticClass:"stat"},[n("b",[t._v("Profile:")]),t._v(" "),n("a",{attrs:{href:"https://brickadia.com/users/"+t.player.id,target:"_blank"}},[t._v("\n "+t._s(t.player.name)+"\n ")])]),t._v(" "),n("div",{staticClass:"stat"},[n("b",[t._v("Host:")]),t._v(" "+t._s(t.player.isHost?"Yes":"No"))]),t._v(" "),n("div",{staticClass:"stat"},[n("b",[t._v("Banned:")]),t._v(" "),t.player.currentBan&&t.player.currentBan.duration<=0?n("span",[t._v("\n Perma\n ")]):t.player.currentBan?n("span",[t._v("\n "+t._s(t.duration(t.player.currentBan.remainingTime))+" of "+t._s(t.duration(t.player.currentBan.duration))+" remaining\n ")]):n("span",[t._v("\n No\n ")])]),t._v(" "),n("div",{staticClass:"stat"},[n("b",{attrs:{"data-tooltip":"Number of status heartbeats this player has been part of"}},[t._v("Time Played:")]),t._v(" "+t._s(t.heartbeatAgo(t.player.heartbeats)))]),t._v(" "),n("div",{staticClass:"stat"},[n("b",{attrs:{"data-tooltip":"Date player was last seen"}},[t._v("Last Seen:")]),t._v(" "),n("span",{attrs:{"data-tooltip":new Date(t.player.lastSeen)}},[t._v("\n "+t._s(t.duration(t.player.seenAgo))+" ago\n ")])]),t._v(" "),n("div",{staticClass:"stat"},[n("b",{attrs:{"data-tooltip":"Date player was first seen"}},[t._v("First Seen:")]),t._v(" "),n("span",{attrs:{"data-tooltip":new Date(t.player.created)}},[t._v("\n "+t._s(t.duration(t.player.createdAgo))+" ago\n ")])]),t._v(" "),n("div",{staticClass:"stat"},[n("b",{attrs:{"data-tooltip":"Number of times this player has visited the server (new visits are registered if the player joins 3 hours after last seen)"}},[t._v("Visits:")]),t._v(" "+t._s(t.player.sessions))]),t._v(" "),n("div",{staticClass:"stat"},[n("b",{attrs:{"data-tooltip":"Number of server instances this player has joined"}},[t._v("Server Visits:")]),t._v(" "+t._s(t.player.instances))]),t._v(" "),n("div",{staticClass:"stat"},[n("b",[t._v("Bans:")]),t._v(" "+t._s(t.player.banHistory.length))])]),t._v(" "),n("div",{staticClass:"section-header",attrs:{"data-tooltip":"Roles this player has"}},[t._v("\n Roles\n ")]),t._v(" "),n("div",{staticClass:"option-list"},[t._l(t.player.roles,(function(e){return n("div",{key:e.name,staticClass:"option-item"},[n("div",{staticClass:"option-name",style:{color:"#"+e.color}},[t._v(t._s(e.name))])])})),t._v(" "),n("div",{staticClass:"option-item"},[n("div",{staticClass:"option-name",staticStyle:{color:"white"}},[t._v("Default")])])],2),t._v(" "),n("div",{staticClass:"section-header",attrs:{"data-tooltip":"Names this player has gone by historically"}},[t._v("\n Name History\n ")]),t._v(" "),n("table",{staticClass:"br-table"},[n("thead",[n("tr",[n("th",{staticStyle:{"text-align":"left",width:"100%"}},[n("span",[t._v("Name")])]),t._v(" "),n("th",[t._v("First Seen")])])]),t._v(" "),n("tbody",t._l(t.player.nameHistory,(function(e){return n("tr",{key:e.date+e.name},[n("td",[t._v(t._s(e.name))]),t._v(" "),n("td",{staticStyle:{"text-align":"right"},attrs:{"data-tooltip":new Date(e.date)}},[t._v("\n "+t._s(t.duration(e.ago))+"\n ")])])})),0)]),t._v(" "),n("div",{staticClass:"section-header",attrs:{"data-tooltip":"Times this player has been banned from the server"}},[t._v("\n Ban History\n ")]),t._v(" "),n("table",{staticClass:"br-table"},[n("thead",[n("tr",[n("th",{staticStyle:{width:"100%","text-align":"left"}},[t._v("Reason")]),t._v(" "),n("th",[t._v("Length")]),t._v(" "),n("th",[t._v("Issuer")]),t._v(" "),n("th",[t._v("Date")])])]),t._v(" "),n("tbody",[0===t.player.banHistory.length?n("tr",[n("td",{attrs:{colspan:"4"}},[n("i",[t._v("None")])])]):t._e(),t._v(" "),t._l(t.player.banHistory,(function(e){return n("tr",{key:e.created},[n("td",{staticClass:"reason"},[t._v(t._s(e.reason))]),t._v(" "),n("td",{staticStyle:{"text-align":"right"},attrs:{"data-tooltip":"Expires "+new Date(e.expires)}},[t._v("\n "+t._s(e.duration<=0?"Perma":t.duration(e.duration))+"\n ")]),t._v(" "),n("td",[n("router-link",{attrs:{to:"/players/"+e.bannerId}},[t._v(t._s(e.bannerName||"missing name"))])],1),t._v(" "),n("td",{staticStyle:{"text-align":"right"},attrs:{"data-tooltip":new Date(e.created)}},[t._v("\n "+t._s(t.isoDate(e.created))+"\n ")])])}))],2)]),t._v(" "),n("div",{staticClass:"section-header",attrs:{"data-tooltip":"Times this player has been booted from the server"}},[t._v("\n Kick History\n ")]),t._v(" "),n("table",{staticClass:"br-table"},[n("thead",[n("tr",[n("th",{staticStyle:{width:"100%","text-align":"left"}},[t._v("Reason")]),t._v(" "),n("th",[t._v("Issuer")]),t._v(" "),n("th",[t._v("Date")])])]),t._v(" "),n("tbody",[0===t.player.kickHistory.length?n("tr",[n("td",{attrs:{colspan:"4"}},[n("i",[t._v("None")])])]):t._e(),t._v(" "),t._l(t.player.kickHistory,(function(e){return n("tr",{key:e.created},[n("td",{staticClass:"reason"},[t._v(t._s(e.reason))]),t._v(" "),n("td",[n("router-link",{attrs:{to:"/players/"+e.kickerId}},[t._v(t._s(e.kickerName||"missing name"))])],1),t._v(" "),n("td",{staticStyle:{"text-align":"right"},attrs:{"data-tooltip":new Date(e.created)}},[t._v("\n "+t._s(t.isoDate(e.created))+"\n ")])])}))],2)])])],1)],1)};yr._withStripped=!0;const br={components:{PlayerPlayIcon:tr,PlayerStopIcon:er,RefreshIcon:nr,PlusIcon:W,MinusIcon:V,ArrowBackUpIcon:rr,CheckIcon:ir},sockets:{},methods:{async getPlayer(){this.loading=!0,this.player=await this.$$request("player.get",this.$route.params.id)||{},this.player||this.$router.push("/players"),this.nameLookup[this.player.id]=this.player.name,this.loading=!1}},created(){this.getPlayer()},data:()=>({player:{},showSave:{},loading:!0})};n(9534);var wr=i(br,yr,[],!1,null,null,null);wr.options.__file="src/webserver/frontend/views/PlayersInspector.vue";const xr=wr.exports;var _r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("page",[n("nav-header",{attrs:{title:"Users"}},[n("span",{staticStyle:{flex:"1"}}),t._v(" "),n("br-button",{attrs:{normal:"","data-tooltip":"Enable user sign-in"},on:{click:function(e){return t.toggleCredentials()}}},[t.omeggaData.userless?n("CirclePlusIcon"):n("LockIcon"),t._v("\n "+t._s(t.omeggaData.userless?"Enable Users":"Change Password")+"\n ")],1),t._v(" "),!t.omeggaData.userless&&t.user.isOwner?n("br-button",{attrs:{normal:"","data-tooltip":"Add a new user"},on:{click:function(e){return t.toggleAddUser()}}},[n("UserPlusIcon"),t._v("\n Add User\n ")],1):t._e()],1),t._v(" "),n("page-content",[n("side-nav",{attrs:{active:t.$route.name}}),t._v(" "),n("div",{staticClass:"generic-container players-container"},[n("div",{staticClass:"player-table-container"},[n("br-navbar",[n("br-input",{attrs:{placeholder:"Search Users..."},on:{input:function(e){return t.doSearch()}},model:{value:t.search,callback:function(e){t.search=e},expression:"search"}}),t._v(" "),n("span",{staticStyle:{flex:"1"}}),t._v(" "),n("br-button",{attrs:{icon:"",normal:"","data-tooltip":"Refresh user list"},on:{click:t.getUsers}},[n("RotateIcon")],1)],1),t._v(" "),n("div",{staticClass:"players-list"},[n("br-scroll",[n("table",{staticClass:"br-table"},[n("thead",[n("tr",[n("th",{staticStyle:{"text-align":"left",width:"100%"},on:{click:function(e){return t.setSort("username")}}},[n("span",[t._v("\n Username\n "),"username"===t.sort&&1===t.direction?n("SortAscendingIcon"):t._e(),t._v(" "),"username"===t.sort&&-1===t.direction?n("SortDescendingIcon"):t._e()],1)]),t._v(" "),n("th",{attrs:{"data-tooltip":"When the user was last active"},on:{click:function(e){return t.setSort("lastOnline")}}},[n("span",[t._v("\n Active\n "),"lastOnline"===t.sort&&1===t.direction?n("SortAscendingIcon"):t._e(),t._v(" "),"lastOnline"===t.sort&&-1===t.direction?n("SortDescendingIcon"):t._e()],1)]),t._v(" "),n("th",{attrs:{"data-tooltip":"When the user joined"},on:{click:function(e){return t.setSort("created")}}},[n("span",[t._v("\n Joined\n "),"created"===t.sort&&1===t.direction?n("SortAscendingIcon"):t._e(),t._v(" "),"created"===t.sort&&-1===t.direction?n("SortDescendingIcon"):t._e()],1)])])]),t._v(" "),n("tbody",t._l(t.users,(function(e){return n("tr",{class:{active:e.username===t.$route.params.id},on:{click:function(n){return t.clickUser(e)}}},[n("td",[t._v("\n "+t._s(e.username||"Admin")+"\n "),(e.username||"Admin")===t.user.username?n("span",{staticStyle:{"font-size":"12px"}},[t._v("\n (You)\n ")]):t._e()]),t._v(" "),n("td",{staticStyle:{"text-align":"right"},attrs:{"data-tooltip":e.lastOnline?new Date(e.lastOnline):"Never"}},[t._v("\n "+t._s(e.lastOnline?t.duration(e.seenAgo):"Never")+"\n ")]),t._v(" "),n("td",{staticStyle:{"text-align":"right"},attrs:{"data-tooltip":new Date(e.created)}},[t._v("\n "+t._s(t.duration(e.createdAgo))+"\n ")])])})),0)])]),t._v(" "),n("br-footer",{staticClass:"pagination-footer"},[n("br-button",{attrs:{icon:"",normal:"",disabled:0===t.page},on:{click:function(e){t.page=0,t.getUsers()}}},[n("ArrowBarToLeftIcon")],1),t._v(" "),n("br-button",{attrs:{icon:"",normal:"",disabled:0===t.page},on:{click:function(e){t.page--,t.getUsers()}}},[n("ArrowLeftIcon")],1),t._v(" "),n("div",{staticClass:"current-page"},[t._v("\n Page "+t._s(t.page+1)+" of "+t._s(t.pages)+", Showing "+t._s(t.users.length)+" of "+t._s(t.total)+"\n ")]),t._v(" "),n("br-button",{attrs:{icon:"",normal:"",disabled:t.page>=t.pages-1},on:{click:function(e){t.page++,t.getUsers()}}},[n("ArrowRightIcon")],1),t._v(" "),n("br-button",{attrs:{icon:"",normal:"",disabled:t.page===t.pages-1},on:{click:function(e){t.page=t.pages-1,t.getUsers()}}},[n("ArrowBarToRightIcon")],1)],1),t._v(" "),n("br-loader",{attrs:{active:t.loading,size:"huge"}},[t._v("Loading Users")])],1)],1),t._v(" "),n("div",{staticClass:"player-inspector-container"},[n("br-navbar",[t._v("Not Implemented")]),t._v(" "),n("div",{staticClass:"player-inspector"},[n("router-view",{key:t.$route.params.id})],1)],1),t._v(" "),n("br-dimmer",{attrs:{visible:t.showCredentials||t.showCreateUser}},[n("br-loader",{attrs:{active:t.modalLoading,size:"huge"}},[t._v("Submitting")]),t._v(" "),n("br-modal",{attrs:{visible:!t.modalLoading}},[n("br-header",[t._v("\n "+t._s(t.showCreateUser?"Create New User":"Update Credentials")+"\n ")]),t._v(" "),n("br-popout-content",[t.omeggaData.userless?n("p",[t._v("This will require you to enter a password when you sign in.")]):t._e(),t._v(" "),t.omeggaData.userless?n("p",[t._v("This action cannot be undone.")]):t._e(),t._v(" "),!t.omeggaData.userless&&t.showCredentials?n("p",[t._v('\n Updating credentials for user "'+t._s(t.username)+'"\n ')]):t._e(),t._v(" "),t.showCreateUser?n("p",[t._v("\n Creating a new user. It's recommended to create a temporary password.\n ")]):t._e(),t._v(" "),t.error?n("p",{staticStyle:{color:"red"}},[t._v("\n Error: "+t._s(t.error)+"\n ")]):t._e()]),t._v(" "),n("div",{staticClass:"popout-inputs"},[t.omeggaData.userless||t.showCreateUser?n("br-input",{attrs:{placeholder:"username",type:"text"},model:{value:t.username,callback:function(e){t.username=e},expression:"username"}}):t._e(),t._v(" "),n("br-input",{attrs:{placeholder:"password",type:"password"},model:{value:t.password,callback:function(e){t.password=e},expression:"password"}}),t._v(" "),n("br-input",{attrs:{placeholder:"confirm password",type:"password"},model:{value:t.confirm,callback:function(e){t.confirm=e},expression:"confirm"}})],1),t._v(" "),n("br-footer",[n("br-button",{attrs:{main:"",disabled:!t.ok||t.confirm!==t.password},on:{click:function(e){return t.submit(t.username,t.password)}}},[t.showCreateUser?n("UserPlusIcon"):n("LockIcon"),t._v("\n "+t._s(t.showCreateUser?"Add":"Update")+"\n ")],1),t._v(" "),n("div",{staticStyle:{flex:"1"}}),t._v(" "),n("br-button",{attrs:{warn:""},on:{click:t.hideModals}},[n("XIcon"),t._v("Cancel\n ")],1)],1)],1)],1)],1)],1)],1)};_r._withStripped=!0;const kr={components:{RotateIcon:Xn,ArrowBarToLeftIcon:lr,ArrowBarToRightIcon:ur,ArrowLeftIcon:hr,ArrowRightIcon:pr,SortAscendingIcon:dr,SortDescendingIcon:fr,UserPlusIcon:{name:"UserPlusIcon",props:{size:{type:String,default:"24"}},functional:!0,render(t,e){const n=parseInt(e.props.size)+"px",r=e.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,e.data.attrs=r,t("svg",k()([{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},class:"icon icon-tabler icon-tabler-user-plus"},e.data]),[" ",t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}})," ",t("circle",{attrs:{cx:"9",cy:"7",r:"4"}})," ",t("path",{attrs:{d:"M3 21v-2a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v2"}})," ",t("path",{attrs:{d:"M16 11h6m-3 -3v6"}})," "])}},CirclePlusIcon:{name:"CirclePlusIcon",props:{size:{type:String,default:"24"}},functional:!0,render(t,e){const n=parseInt(e.props.size)+"px",r=e.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,e.data.attrs=r,t("svg",k()([{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},class:"icon icon-tabler icon-tabler-circle-plus"},e.data]),[" ",t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}})," ",t("circle",{attrs:{cx:"12",cy:"12",r:"9"}})," ",t("line",{attrs:{x1:"9",y1:"12",x2:"15",y2:"12"}})," ",t("line",{attrs:{x1:"12",y1:"9",x2:"12",y2:"15"}})," "])}},XIcon:Fn,LockIcon:{name:"LockIcon",props:{size:{type:String,default:"24"}},functional:!0,render(t,e){const n=parseInt(e.props.size)+"px",r=e.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,e.data.attrs=r,t("svg",k()([{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},class:"icon icon-tabler icon-tabler-lock"},e.data]),[" ",t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}})," ",t("rect",{attrs:{x:"5",y:"11",width:"14",height:"10",rx:"2"}})," ",t("circle",{attrs:{cx:"12",cy:"16",r:"1"}})," ",t("path",{attrs:{d:"M8 11v-4a4 4 0 0 1 8 0v4"}})," "])}}},created(){this.getUsers(),setTimeout((()=>{this.userLookup[this.$route.params.id]&&this.update++}),500)},methods:{async submit(t,e){if(this.error="",e!==this.confirm)return;let n;this.modalLoading=!0;try{if(this.showCredentials?n=this.omeggaData.userless?await this.$$request("users.create",t,e):await this.$$request("users.passwd",this.user.username,e):this.showCreateUser&&(n=await this.$$request("users.create",t,e)),this.modalLoading=!1,!n)return void(this.showCredentials&&this.omeggaData.userless?this.logout():this.hideModals())}catch(t){console.error("error submitting form",t)}this.error=n},toggleCredentials(){this.showCredentials=!this.showCredentials,this.showCreateUser=!1,this.omeggaData.userless||(this.username=this.user.username),this.error=""},toggleAddUser(){this.showCreateUser=!this.showCreateUser,this.showCredentials=!1,this.username="",this.error=""},hideModals(){this.username="",this.password="",this.confirm="",this.showCredentials=!1,this.showCreateUser=!1,this.error=""},async getUsers(){this.loading=!0;const{users:t,total:e,pages:n}=await this.$$request("users.list",{page:this.page,search:this.search,sort:this.sort,direction:this.direction});this.pages=n,this.total=e,this.users=t,this.loading=!1},clickUser(t){this.$route.params.id!==t.username&&this.$router.push({path:`/users/${t.username}`})},doSearch:it()((function(){this.page=0,this.getUsers()}),500),setSort(t){this.sort===t?this.direction*=-1:(this.sort=t,this.direction="name"===t?1:-1),this.getUsers()}},sockets:{},computed:{ok(){const t=0!==this.username.length||!(this.showCredentials&&!this.userless);return this.username.match(/^\w{0,32}$/)&&t&&0!==this.password.length},blank(){return 0===this.username.length&&0===this.password.length},selectedUser(){if(this.update,this.userLookup[this.$route.params.id])return this.userLookup[this.$route.params.id];const t=this.users.find((t=>t.username===this.$route.params.id));return t?t.username:"SELECT A USER"}},data:()=>({search:"",sort:"lastSeen",direction:-1,pages:0,total:0,page:0,update:0,loading:!0,users:[],showCredentials:!1,showCreateUser:!1,modalLoading:!1,error:"",username:"",password:"",confirm:""})};n(3421);var Cr=i(kr,_r,[],!1,null,"730eff1b",null);Cr.options.__file="src/webserver/frontend/views/Users.vue";const Sr=Cr.exports;var Ar=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("page",[n("nav-header",{attrs:{title:"History"}},[n("div",{staticClass:"calendar-container"},[n("br-button",{staticStyle:{"margin-right":"0"},attrs:{normal:"",boxy:"","data-tooltip":"Show a calendar previewing days"},on:{click:function(e){t.showCalendar=!t.showCalendar}}},[n("CalendarIcon"),t._v("\n Calendar\n ")],1),t._v(" "),t.showCalendar?n("div",{staticClass:"calendar"},[n("div",{staticClass:"year"},[n("br-button",{attrs:{icon:"",normal:"",disabled:!t.getPrevYear()},on:{click:function(e){t.setDate(t.getPrevYear())}}},[n("ArrowLeftIcon")],1),t._v("\n "+t._s(t.year)+"\n "),n("br-button",{attrs:{icon:"",normal:"",disabled:!t.getNextYear()},on:{click:function(e){t.setDate(t.getNextYear())}}},[n("ArrowRightIcon")],1)],1),t._v(" "),n("div",{staticClass:"month"},[n("br-button",{attrs:{icon:"",normal:"",disabled:!t.hasPrevMonth},on:{click:function(e){t.setDate(t.getPrevMonth())}}},[n("ArrowLeftIcon")],1),t._v("\n "+t._s(t.MONTHS[t.month])+"\n "),n("br-button",{attrs:{icon:"",normal:"",disabled:!t.hasNextMonth},on:{click:function(e){t.setDate(t.getNextMonth())}}},[n("ArrowRightIcon")],1)],1),t._v(" "),n("div",{staticClass:"calendar-days"},[n("div",{staticClass:"header days"},[t._v("S")]),t._v(" "),n("div",{staticClass:"header days"},[t._v("M")]),t._v(" "),n("div",{staticClass:"header days"},[t._v("T")]),t._v(" "),n("div",{staticClass:"header days"},[t._v("W")]),t._v(" "),n("div",{staticClass:"header days"},[t._v("T")]),t._v(" "),n("div",{staticClass:"header days"},[t._v("F")]),t._v(" "),n("div",{staticClass:"header days"},[t._v("S")]),t._v(" "),t._l(t.startDay,(function(t){return n("div",{key:"empty"+t})})),t._v(" "),t._l(t.numDays,(function(e){return n("div",{key:e,class:{days:!0,today:t.nowMonth===t.month&&t.nowYear===t.year&&t.nowDay===e,available:!(t.nowMonth===t.month&&t.nowYear===t.year&&e>t.nowDay)&&t.calendar[t.year]&&t.calendar[t.year][t.month]&&t.calendar[t.year][t.month][e]},on:{click:function(n){return t.focusDay(t.year,t.month,e)}}},[t._v("\n "+t._s(e)+"\n ")])}))],2)]):t._e()],1)]),t._v(" "),n("page-content",[n("side-nav",{attrs:{active:t.$route.name}}),t._v(" "),n("div",{staticClass:"generic-container history-container"},[n("div",{staticClass:"chat-history"},[n("div",{staticClass:"scroll-container"},[n("v-infinite-scroll",{staticClass:"scroll-scroller",attrs:{loading:t.loading,"on-top-scrolls-to-bottom":!1,offset:t.offset},on:{top:t.prevPage,bottom:t.nextPage,scroll:function(e){return t.logDir(e)}}},[t._l(t.chats,(function(e){return[e.newDay?n("div",{key:e._id+"day",staticClass:"chat-new-day"},[t._v("\n "+t._s(e.newDay)+"\n ")]):t._e(),t._v(" "),n("br-chat-entry",{key:e._id,attrs:{log:e}})]}))],2)],1),t._v(" "),n("br-loader",{attrs:{active:t.loading&&t.firstLoad,size:"huge"}},[t._v("Loading Chat")])],1)])],1)],1)};Ar._withStripped=!0;const Er=["January","February","March","April","May","June","July","August","September","October","November","December"],Or=(t,e=!1)=>Object.keys(t).map(Number).sort(((t,n)=>e?n-t:t-n)),Tr={components:{CalendarIcon:{name:"CalendarIcon",props:{size:{type:String,default:"24"}},functional:!0,render(t,e){const n=parseInt(e.props.size)+"px",r=e.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,e.data.attrs=r,t("svg",k()([{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},class:"icon icon-tabler icon-tabler-calendar"},e.data]),[" ",t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}})," ",t("rect",{attrs:{x:"4",y:"5",width:"16",height:"16",rx:"2"}})," ",t("line",{attrs:{x1:"16",y1:"3",x2:"16",y2:"7"}})," ",t("line",{attrs:{x1:"8",y1:"3",x2:"8",y2:"7"}})," ",t("line",{attrs:{x1:"4",y1:"11",x2:"20",y2:"11"}})," ",t("line",{attrs:{x1:"11",y1:"15",x2:"12",y2:"15"}})," ",t("line",{attrs:{x1:"12",y1:"15",x2:"12",y2:"18"}})," "])}},ArrowLeftIcon:hr,ArrowRightIcon:pr},async created(){await this.getCalendar();const t=this.$route.params.time,e=t&&new Date(t.match(/^\d+$/)?Number(t):t);e&&e.getTime()==e.getTime()?(await this.getChats({before:e.getTime()-1}),await this.getChats({after:e.getTime()-1}),this.focused=e.getTime(),this.$el.querySelector(".focused").scrollIntoView({block:"center"})):(await this.getChats({before:Date.now()}),this.scroll())},beforeDestroy(){},destroyed(){},mounted(){},methods:{async getCalendar(){this.loading=!0,this.calendar=await this.$$request("chat.calendar"),this.loading=!1},scroll(){return new Promise((t=>{const e=this.$el.querySelector(".scroll-scroller");window.requestAnimationFrame((()=>{e.scrollTop=e.scrollHeight,t()}))}))},async focusDay(t,e,n){if(this.loading)return!1;this.chats=[];const r=new Date(t,e,n).getTime();await this.getChats({after:r})},handleChats(t,{before:e,after:n},r){if(!t.length)return;this.chats=this.chats.concat(t),this.chats.sort(((t,e)=>t.created-e.created));const i=this.chats[0].created,o=this.chats[this.chats.length-1].created;for(let t=0;t<this.chats.length;t++){const e=this.chats[t],n=new Date(e.created);e.date=n.getDate(),0===t||e.date!==this.chats[t-1].date?e.newDay=`${Er[n.getMonth()]} ${e.date}, ${n.getFullYear()}`:e.newDay=void 0}this.min=i,this.max=o},async prevPage(){this.absMin&&this.min<=this.absMin||0===(await this.getChats({before:this.min},"top")).length&&(this.absMin=this.min)},async nextPage(){this.absMax&&this.max>=this.absMax||0===(await this.getChats({after:this.max},"bottom")).length&&(this.absMax=this.max)},async getChats({before:t,after:e},n){this.loading=!0;const r=await this.$$request("chat.history",{before:t,after:e});return this.handleChats(r,{before:t,after:e},n),requestAnimationFrame((()=>{"bottom"===n&&this.chats.length>200&&this.chats.splice(0,this.chats.length-200).map((t=>t.message)),"top"===n&&this.chats.length>200&&this.chats.splice(200,this.chats.length-200).map((t=>t.message))})),this.loading=!1,this.firstLoad=!1,r},getNextYear(){const t=Or(this.calendar).find((t=>t>this.year));if(t)return[t,Or(this.calendar[t])[0]]},getPrevYear(){const t=Or(this.calendar,!0).find((t=>t<this.year));if(t)return[t,Or(this.calendar[t],!0)[0]]},setDate([t,e]){this.month=e,this.year=t},getNextMonth(){if(11!==this.month&&this.calendar[this.year]){const t=Or(this.calendar[this.year]).find((t=>t>this.month));if("number"==typeof t)return[this.year,t]}const t=Or(this.calendar).find((t=>t>this.year));if(!t)return;const e=Or(this.calendar[t])[0];return"number"==typeof e?[t,e]:void 0},getPrevMonth(){if(0!==this.month&&this.calendar[this.year]){const t=Or(this.calendar[this.year],!0).find((t=>t<this.month));if("number"==typeof t)return[this.year,t]}const t=Or(this.calendar,!0).find((t=>t<this.year));if(!t)return;const e=Or(this.calendar[t],!0)[0];return"number"==typeof e?[t,e]:void 0}},sockets:{},computed:{numDays(){return new Date(this.year,this.month+1,0).getDate()},startDay(){return new Date(this.year,this.month,1).getDay()},hasNextMonth(){return!!this.getNextMonth()},hasPrevMonth(){return!!this.getPrevMonth()}},data(){const t=new Date,e=t.getMonth(),n=t.getFullYear(),r=t.getDate();return{MONTHS:Er,offset:500,date:t,month:e,year:n,day:r,nowYear:n,nowMonth:e,nowDay:r,loading:!0,showCalendar:!1,firstLoad:!0,calendar:{},chats:[]}}};n(6770);var Pr=i(Tr,Ar,[],!1,null,"5ccb7ce7",null);Pr.options.__file="src/webserver/frontend/views/History.vue";const Ir=Pr.exports;var Mr=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("page",[n("nav-header",{attrs:{title:"Server"}}),t._v(" "),n("page-content",[n("side-nav",{attrs:{active:t.$route.name}}),t._v(" "),n("div",{staticClass:"generic-container server-container"},[n("br-header",[t._v("Server Status: "+t._s(t.starting?"starting":t.stopping?"stopping":t.started?"started":"stopped"))]),t._v(" "),n("div",{staticClass:"buttons"},[n("br-button",{attrs:{main:"","data-tooltip":"Start the server",disabled:t.starting||t.stopping||t.loading||t.started},on:{click:function(e){return t.start()}}},[n("PlayerPlayIcon"),t._v("\n Start\n ")],1),t._v(" "),n("br-button",{attrs:{error:"","data-tooltip":"Stop the server",disabled:t.starting||t.stopping||t.loading||!t.started},on:{click:function(e){return t.stop()}}},[n("PlayerStopIcon"),t._v("\n Stop\n ")],1),t._v(" "),n("br-button",{attrs:{warn:"","data-tooltip":"Stop the server if it's running, then start the server",disabled:t.starting||t.stopping||t.loading},on:{click:function(e){return t.restart()}}},[n("RefreshIcon"),t._v("\n Restart\n ")],1)],1),t._v(" "),n("br-dimmer",{attrs:{visible:t.showConfirm}},[n("br-modal",{attrs:{visible:""}},[n("br-header",[t._v("\n Confirmation\n ")]),t._v(" "),n("br-popout-content",[n("p",[t._v("\n Are you sure you want to "+t._s(t.message)+"?\n ")])]),t._v(" "),n("br-footer",[n("br-button",{attrs:{main:""},on:{click:function(e){return t.resolve(!0)}}},[n("CheckIcon"),t._v("\n Yes\n ")],1),t._v(" "),n("div",{staticStyle:{flex:"1"}}),t._v(" "),n("br-button",{attrs:{warn:""},on:{click:function(e){return t.resolve(!1)}}},[n("XIcon"),t._v("No\n ")],1)],1)],1)],1)],1)],1)],1)};Mr._withStripped=!0;const Rr={components:{PlayerStopIcon:er,PlayerPlayIcon:tr,RefreshIcon:nr,CheckIcon:ir,XIcon:Fn},created(){this.getStatus()},beforeDestroy(){this.$$emit("unsubscribe","server")},destroyed(){},mounted(){},methods:{async start(){await this.prompt("start the server")&&this.$$request("server.start")},async stop(){await this.prompt("stop the server")&&this.$$request("server.stop")},async restart(){await this.prompt("restart the server")&&(this.loading=!0,this.$$request("server.restart"))},async prompt(t){return this.showConfirm=!0,this.message=t,await new Promise((t=>{this.resolve=e=>{this.showConfirm=!1,t(e)}}))},async getStatus(){this.$$emit("subscribe","server"),this.loading=!0;const{started:t,starting:e,stopping:n}=await this.$$request("server.started");this.started=t,this.starting=e,this.stopping=n,this.loading=!1}},sockets:{status({started:t,starting:e,stopping:n}){this.started=t,this.starting=e,this.stopping=n,this.loading=!1},connect(){this.getStatus()}},computed:{},data:()=>({loading:!0,started:!1,starting:!1,stopping:!1,message:"",showConfirm:!1,resolve:void 0})};n(7443);var Nr=i(Rr,Mr,[],!1,null,"1f7c5580",null);Nr.options.__file="src/webserver/frontend/views/Server.vue";const Dr=Nr.exports;var jr=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("page",[n("nav-header",{attrs:{title:"Not Found"}}),t._v(" "),n("page-content",[n("side-nav")],1)],1)};jr._withStripped=!0;var Lr=i({},jr,[],!1,null,"722559a8",null);Lr.options.__file="src/webserver/frontend/views/NotFound.vue";const zr=new Ln({mode:"history",base:"/",routes:[{name:"history",path:"/history",component:Ir,children:[{name:"history",path:"/history/:time",component:Ir}]},{name:"plugins",path:"/plugins",component:Kn,children:[{name:"plugins",path:"/plugins/:id",component:ar}]},{name:"players",path:"/players",component:mr,children:[{name:"players",path:"/players/:id",component:xr}]},{name:"users",path:"/users",component:Sr,children:[]},{name:"home",path:"/",component:Vn},{name:"server",path:"/server",component:Dr},{name:"notfound",path:"*",component:Lr.exports}]}),$r=io(),Br=new Bn.JSONRPCServer,Hr=new Bn.JSONRPCClient((async t=>$r.emit("rpc",t))),Ur=new Bn.JSONRPCServerAndClient(Br,Hr);t.default.use(Ln),t.default.use(new($n())({connection:$r})),t.default.prototype.$$request=(t,...e)=>Ur.request(t,e),t.default.prototype.$$notify=(t,...e)=>Ur.notify(t,e),t.default.prototype.$$emit=(t,...e)=>$r.emit(t,...e);var Fr=i({router:zr,el:"#app",data:()=>({connected:!1,disconnected:!1}),created(){},sockets:{connect(){console.log("Connected"),this.connected=!0,this.disconnected=!1},disconnect(){console.log("Disconnected"),this.connected=!1,this.disconnected=!0},data(e){console.log("data is",e),t.default.prototype.user=e.user,t.default.prototype.omeggaData=e,t.default.prototype.roles=e.roles,t.default.prototype.showLogout=e.canLogOut,this.loading=!1},rpc(t){Ur.receiveAndSend(t)}},data:()=>({loading:!1})},Xt,[],!1,null,null,null);Fr.options.__file="src/webserver/frontend/views/Main.vue";const qr=Fr.exports;t.default.prototype.logout=()=>fetch("/api/v1/logout").then((()=>location.reload())),t.default.prototype.user={},t.default.prototype.roles=[],t.default.prototype.nameLookup=[],t.default.prototype.userLookup=[],t.default.prototype.showLogout=!1,t.default.prototype.omeggaData={},t.default.prototype.xss=t=>t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"),t.default.prototype.heartbeatAgo=t=>t<60?t+" mins":(t/=60)<24?Math.round(t)+" hours":(t/=24,Math.round(t)+" days"),t.default.prototype.duration=t=>t<0?"not yet":(t/=1e3)<5?"a moment":t<60?Math.round(t)+" secs":(t/=60)<60?Math.round(t)+" mins":(t/=60)<24?Math.round(t)+" hours":(t/=24,Math.round(t)+" days"),t.default.prototype.isoDate=e=>t.default.prototype.isoTime(e).split(" ")[0],t.default.prototype.isoTime=t=>{const e=new Date(t),n=t=>(t+"").padStart(2,"0");return e.getFullYear()+"-"+n(e.getMonth()+1)+"-"+n(e.getDate())+" "+n(e.getHours())+":"+n(e.getMinutes())+":"+n(e.getSeconds())},new t.default({el:"#app",...qr})})()})();
|
|
2
|
+
(()=>{var t={6568:t=>{"use strict";function e(){return e=Object.assign||function(t){for(var e,n=1;n<arguments.length;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},e.apply(this,arguments)}var n=["attrs","props","domProps"],r=["class","style","directives"],i=["on","nativeOn"],o=function(t,e){return function(){t&&t.apply(this,arguments),e&&e.apply(this,arguments)}};t.exports=function(t){return t.reduce((function(t,s){for(var a in s)if(t[a])if(-1!==n.indexOf(a))t[a]=e({},t[a],s[a]);else if(-1!==r.indexOf(a)){var c=t[a]instanceof Array?t[a]:[t[a]],l=s[a]instanceof Array?s[a]:[s[a]];t[a]=c.concat(l)}else if(-1!==i.indexOf(a))for(var u in s[a])if(t[a][u]){var h=t[a][u]instanceof Array?t[a][u]:[t[a][u]],p=s[a][u]instanceof Array?s[a][u]:[s[a][u]];t[a][u]=h.concat(p)}else t[a][u]=s[a][u];else if("hook"==a)for(var d in s[a])t[a][d]=t[a][d]?o(t[a][d],s[a][d]):s[a][d];else t[a]=s[a];else t[a]=s[a];return t}),{})}},3779:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.JSONRPCClient=void 0;var r=n(6738),i=n(2165),o=i.createLogDeprecationWarning("Using a higher order function on JSONRPCClient send method is deprecated.\nInstead of this: new JSONRPCClient((jsonRPCClient) => (clientParams) => /* no change here */)\nDo this: new JSONRPCClient((jsonRPCClient, clientParams) => /* no change here */)\nThe old way still works, but we will drop the support in the future."),s=function(){function t(t,e){this._send=t,this.createID=e,this.idToResolveMap=new Map,this.id=0}return t.prototype._createID=function(){return this.createID?this.createID():++this.id},t.prototype.timeout=function(t,e){var n=this;void 0===e&&(e=function(t){return r.createJSONRPCErrorResponse(t,i.DefaultErrorCode,"Request timeout")});var o=function(r,i){var o=setTimeout((function(){var t=n.idToResolveMap.get(r);t&&(n.idToResolveMap.delete(r),t(e(r)))}),t);return i().then((function(t){return clearTimeout(o),t}),(function(t){return clearTimeout(o),Promise.reject(t)}))};return{request:function(t,e,r){var i=n._createID();return o(i,(function(){return n.requestWithID(t,e,r,i)}))},requestAdvanced:function(t,e){return o(t.id,(function(){return n.requestAdvanced(t,e)}))}}},t.prototype.request=function(t,e,n){return this.requestWithID(t,e,n,this._createID())},t.prototype.requestWithID=function(t,e,n,i){var o={jsonrpc:r.JSONRPC,method:t,params:e,id:i};return this.requestAdvanced(o,n).then((function(t){return void 0===t.result||t.error?void 0===t.result&&t.error?Promise.reject(new Error(t.error.message)):Promise.reject(new Error("An unexpected error occurred")):t.result}))},t.prototype.requestAdvanced=function(t,e){var n=this,o=new Promise((function(e){return n.idToResolveMap.set(t.id,e)}));return this.send(t,e).then((function(){return o}),(function(e){return n.receive(r.createJSONRPCErrorResponse(t.id,i.DefaultErrorCode,e&&e.message||"Failed to send a request")),o}))},t.prototype.notify=function(t,e,n){this.send({jsonrpc:r.JSONRPC,method:t,params:e},n).then(void 0,(function(){}))},t.prototype.send=function(t,e){var n=this._send(t,e);return"function"==typeof n&&(o(),n=n(e)),n},t.prototype.rejectAllPendingRequests=function(t){this.idToResolveMap.forEach((function(e,n){return e(r.createJSONRPCErrorResponse(n,i.DefaultErrorCode,t))})),this.idToResolveMap.clear()},t.prototype.receive=function(t){var e=this.idToResolveMap.get(t.id);e&&(this.idToResolveMap.delete(t.id),e(t))},t}();e.JSONRPCClient=s},4569:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||e.hasOwnProperty(n)||r(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),i(n(3779),e),i(n(6738),e),i(n(3479),e),i(n(8451),e)},2165:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DefaultErrorCode=e.createLogDeprecationWarning=void 0,e.createLogDeprecationWarning=function(t){return function(){}},e.DefaultErrorCode=0},6738:(t,e)=>{"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),e.createJSONRPCErrorResponse=e.JSONRPCErrorCode=e.isJSONRPCResponse=e.isJSONRPCRequest=e.isJSONRPCID=e.JSONRPC=void 0,e.JSONRPC="2.0",e.isJSONRPCID=function(t){return"string"==typeof t||"number"==typeof t||null===t},e.isJSONRPCRequest=function(t){return t.jsonrpc===e.JSONRPC&&void 0!==t.method&&void 0===t.result&&void 0===t.error},e.isJSONRPCResponse=function(t){return t.jsonrpc===e.JSONRPC&&void 0!==t.id&&(void 0!==t.result||void 0!==t.error)},(n=e.JSONRPCErrorCode||(e.JSONRPCErrorCode={}))[n.ParseError=-32700]="ParseError",n[n.InvalidRequest=-32600]="InvalidRequest",n[n.MethodNotFound=-32601]="MethodNotFound",n[n.InvalidParams=-32602]="InvalidParams",n[n.InternalError=-32603]="InternalError",e.createJSONRPCErrorResponse=function(t,n,r,i){var o={code:n,message:r};return i&&(o.data=i),{jsonrpc:e.JSONRPC,id:t,error:o}}},8451:function(t,e,n){"use strict";var r=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function s(t){try{c(r.next(t))}catch(t){o(t)}}function a(t){try{c(r.throw(t))}catch(t){o(t)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}c((r=r.apply(t,e||[])).next())}))},i=this&&this.__generator||function(t,e){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!((i=(i=s.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=e.call(t,s)}catch(t){o=[6,t],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.JSONRPCServerAndClient=void 0;var o=n(6738),s=function(){function t(t,e){this.server=t,this.client=e}return t.prototype.applyServerMiddleware=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];(t=this.server).applyMiddleware.apply(t,e)},t.prototype.addMethod=function(t,e){this.server.addMethod(t,e)},t.prototype.addMethodAdvanced=function(t,e){this.server.addMethodAdvanced(t,e)},t.prototype.timeout=function(t){return this.client.timeout(t)},t.prototype.request=function(t,e,n){return this.client.request(t,e,n)},t.prototype.requestAdvanced=function(t,e){return this.client.requestAdvanced(t,e)},t.prototype.notify=function(t,e,n){this.client.notify(t,e,n)},t.prototype.rejectAllPendingRequests=function(t){this.client.rejectAllPendingRequests(t)},t.prototype.receiveAndSend=function(t,e,n){return r(this,void 0,void 0,(function(){var r,s;return i(this,(function(i){switch(i.label){case 0:return o.isJSONRPCResponse(t)?(this.client.receive(t),[3,4]):[3,1];case 1:return o.isJSONRPCRequest(t)?[4,this.server.receive(t,e)]:[3,3];case 2:return(r=i.sent())?[2,this.client.send(r,n)]:[3,4];case 3:return s="Received an invalid JSON-RPC message",console.warn(s,t),[2,Promise.reject(new Error(s))];case 4:return[2]}}))}))},t}();e.JSONRPCServerAndClient=s},3479:function(t,e,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)},i=this&&this.__spreadArrays||function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var o=arguments[e],s=0,a=o.length;s<a;s++,i++)r[i]=o[s];return r};Object.defineProperty(e,"__esModule",{value:!0}),e.JSONRPCServer=void 0;var o=n(6738),s=n(2165),a=s.createLogDeprecationWarning("Using a higher order function on JSONRPCServer.addMethod/addMethodAdvanced is deprecated.\nInstead of this: jsonRPCServer.addMethod(methodName, (params) => (serverParams) => /* no change here */)\nDo this: jsonRPCServer.addMethod(methodName, (params, serverParams) => /* no change here */)\nThe old way still works, but we will drop the support in the future."),c=function(){function t(){this.mapErrorToJSONRPCErrorResponse=h,this.nameToMethodDictionary={},this.middleware=null}return t.prototype.addMethod=function(t,e){this.addMethodAdvanced(t,this.toJSONRPCMethod(e))},t.prototype.toJSONRPCMethod=function(t){var e=this;return function(n,r){var i=t(n.params,r);return"function"==typeof i&&(a(),i=i(r)),Promise.resolve(i).then((function(t){return u(n.id,t)}),(function(t){return console.warn("JSON-RPC method "+n.method+" responded an error",t),e.mapErrorToJSONRPCErrorResponseIfNecessary(n.id,t)}))}},t.prototype.addMethodAdvanced=function(t,e){var n;this.nameToMethodDictionary=r(r({},this.nameToMethodDictionary),((n={})[t]=e,n))},t.prototype.receiveJSON=function(t,e){var n=this.tryParseRequestJSON(t);return n?this.receive(n,e):Promise.resolve(o.createJSONRPCErrorResponse(null,o.JSONRPCErrorCode.ParseError,"Parse error"))},t.prototype.tryParseRequestJSON=function(t){try{return JSON.parse(t)}catch(t){return null}},t.prototype.receive=function(t,e){var n,r=this.nameToMethodDictionary[t.method];return o.isJSONRPCRequest(t)?r?this.callMethod(r,t,e).then((function(e){return p(t,e)})):void 0!==t.id?Promise.resolve((n=t.id,o.createJSONRPCErrorResponse(n,o.JSONRPCErrorCode.MethodNotFound,"Method not found"))):Promise.resolve(null):Promise.resolve(function(t){return o.createJSONRPCErrorResponse(o.isJSONRPCID(t.id)?t.id:null,o.JSONRPCErrorCode.InvalidRequest,"Invalid Request")}(t))},t.prototype.applyMiddleware=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.middleware?this.middleware=this.combineMiddlewares(i([this.middleware],t)):this.middleware=this.combineMiddlewares(t)},t.prototype.combineMiddlewares=function(t){return t.length?t.reduce(this.middlewareReducer):null},t.prototype.middlewareReducer=function(t,e){return function(n,r,i){return t((function(t,r){return e(n,t,r)}),r,i)}},t.prototype.callMethod=function(t,e,n){var r=this,i=function(t){return console.warn('An unexpected error occurred while executing "'+e.method+'" JSON-RPC method:',t),Promise.resolve(r.mapErrorToJSONRPCErrorResponseIfNecessary(e.id,t))};try{return(this.middleware||l)((function(e,n){var r=t(e,n);return"function"==typeof r?(a(),r(n)):r}),e,n).then(void 0,i)}catch(t){return i(t)}},t.prototype.mapErrorToJSONRPCErrorResponseIfNecessary=function(t,e){return void 0!==t?this.mapErrorToJSONRPCErrorResponse(t,e):null},t}();e.JSONRPCServer=c;var l=function(t,e,n){return t(e,n)},u=function(t,e){return void 0!==t?{jsonrpc:o.JSONRPC,id:t,result:void 0===e?null:e}:null},h=function(t,e){return o.createJSONRPCErrorResponse(t,s.DefaultErrorCode,e&&e.message||"An unexpected error occurred")},p=function(t,e){return e||(void 0!==t.id?o.createJSONRPCErrorResponse(t.id,o.JSONRPCErrorCode.InternalError,"Internal error"):null)}},6163:(t,e,n)=>{t.exports=n(5867).default},5867:(t,e,n)=>{"use strict";e.default=function(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=i.default.tokenize(t),o=[],g=[];for(n=new a(n),e=0;e<r.length;e++){var v=r[e];if(v.type!==c)if(v.type===u){var m=p(v.chars,n);o.push.apply(o,m)}else o.push(v);else{o.push(v);var y=v.tagName.toUpperCase(),b="A"===y||s.contains(n.ignoreTags,y);if(!b)continue;var w=o.length;d(y,r,++e,o),e+=o.length-w-1}}for(e=0;e<o.length;e++){var x=o[e];switch(x.type){case c:var _="<"+x.tagName;if(x.attributes.length>0){var k=f(x.attributes);_+=" "+k.join(" ")}_+=">",g.push(_);break;case l:g.push("</"+x.tagName+">");break;case u:g.push(x.chars);break;case h:g.push("\x3c!--"+x.chars+"--\x3e")}}return g.join("")};var r,i=(r=n(2226))&&r.__esModule?r:{default:r},o=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(n(8425)),s=o.options,a=s.Options,c="StartTag",l="EndTag",u="Chars",h="Comment";function p(t,e){for(var n=o.tokenize(t),r=[],i=0;i<n.length;i++){var s=n[i];if("nl"===s.type&&e.nl2br)r.push({type:c,tagName:"br",attributes:[],selfClosing:!0});else if(s.isLink&&e.check(s)){var a=e.resolve(s),h=a.formatted,p=a.formattedHref,d=a.tagName,f=a.className,g=a.target,v=a.attributes,m=[["href",p]];for(var y in f&&m.push(["class",f]),g&&m.push(["target",g]),v)m.push([y,v[y]]);r.push({type:c,tagName:d,attributes:m,selfClosing:!1}),r.push({type:u,chars:h}),r.push({type:l,tagName:d})}else r.push({type:u,chars:s.toString()})}return r}function d(t,e,n,r){for(var i=1;n<e.length&&i>0;){var o=e[n];o.type===c&&o.tagName.toUpperCase()===t?i++:o.type===l&&o.tagName.toUpperCase()===t&&i--,r.push(o),n++}return r}function f(t){for(var e=[],n=0;n<t.length;n++){var r=t[n],i=r[0],o=r[1];e.push(i+'="'+o.replace(/"/g,""")+'"')}return e}},8425:(t,e,n)=>{"use strict";e.__esModule=!0,e.tokenize=e.test=e.scanner=e.parser=e.options=e.inherits=e.find=void 0;var r=n(2227),i=a(n(7951)),o=a(n(6417)),s=a(n(5788));function a(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}Array.isArray||(Array.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)});var c=function(t){return s.run(o.run(t))};e.find=function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=c(t),r=[],i=0;i<n.length;i++){var o=n[i];!o.isLink||e&&o.type!==e||r.push(o.toObject())}return r},e.inherits=r.inherits,e.options=i,e.parser=s,e.scanner=o,e.test=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=c(t);return 1===n.length&&n[0].isLink&&(!e||n[0].type===e)},e.tokenize=c},5788:(t,e,n)=>{"use strict";e.__esModule=!0,e.start=e.run=e.TOKENS=e.State=void 0;var r=n(1504),i=n(3370),o=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(i),s=n(3333),a=function(t){return new r.TokenState(t)},c=a(),l=a(),u=a(),h=a(),p=a(),d=a(),f=a(),g=a(i.URL),v=a(),m=a(i.URL),y=a(i.URL),b=a(),w=a(),x=a(),_=a(),k=a(),C=a(i.URL),S=a(i.URL),A=a(i.URL),E=a(i.URL),O=a(),T=a(),P=a(),I=a(),R=a(),M=a(),N=a(i.EMAIL),D=a(),j=a(i.EMAIL),L=a(i.MAILTOEMAIL),z=a(),$=a(),B=a(),H=a(),U=a(i.NL);c.on(s.NL,U).on(s.PROTOCOL,l).on(s.MAILTO,u).on(s.SLASH,h),l.on(s.SLASH,h),h.on(s.SLASH,p),c.on(s.TLD,d).on(s.DOMAIN,d).on(s.LOCALHOST,g).on(s.NUM,d),p.on(s.TLD,y).on(s.DOMAIN,y).on(s.NUM,y).on(s.LOCALHOST,y),d.on(s.DOT,f),R.on(s.DOT,M),f.on(s.TLD,g).on(s.DOMAIN,d).on(s.NUM,d).on(s.LOCALHOST,d),M.on(s.TLD,N).on(s.DOMAIN,R).on(s.NUM,R).on(s.LOCALHOST,R),g.on(s.DOT,f),N.on(s.DOT,M),g.on(s.COLON,v).on(s.SLASH,y),v.on(s.NUM,m),m.on(s.SLASH,y),N.on(s.COLON,D),D.on(s.NUM,j);var F=[s.DOMAIN,s.AT,s.LOCALHOST,s.NUM,s.PLUS,s.POUND,s.PROTOCOL,s.SLASH,s.TLD,s.UNDERSCORE,s.SYM,s.AMPERSAND],q=[s.COLON,s.DOT,s.QUERY,s.PUNCTUATION,s.CLOSEBRACE,s.CLOSEBRACKET,s.CLOSEANGLEBRACKET,s.CLOSEPAREN,s.OPENBRACE,s.OPENBRACKET,s.OPENANGLEBRACKET,s.OPENPAREN];y.on(s.OPENBRACE,w).on(s.OPENBRACKET,x).on(s.OPENANGLEBRACKET,_).on(s.OPENPAREN,k),b.on(s.OPENBRACE,w).on(s.OPENBRACKET,x).on(s.OPENANGLEBRACKET,_).on(s.OPENPAREN,k),w.on(s.CLOSEBRACE,y),x.on(s.CLOSEBRACKET,y),_.on(s.CLOSEANGLEBRACKET,y),k.on(s.CLOSEPAREN,y),C.on(s.CLOSEBRACE,y),S.on(s.CLOSEBRACKET,y),A.on(s.CLOSEANGLEBRACKET,y),E.on(s.CLOSEPAREN,y),O.on(s.CLOSEBRACE,y),T.on(s.CLOSEBRACKET,y),P.on(s.CLOSEANGLEBRACKET,y),I.on(s.CLOSEPAREN,y),w.on(F,C),x.on(F,S),_.on(F,A),k.on(F,E),w.on(q,O),x.on(q,T),_.on(q,P),k.on(q,I),C.on(F,C),S.on(F,S),A.on(F,A),E.on(F,E),C.on(q,C),S.on(q,S),A.on(q,A),E.on(q,E),O.on(F,C),T.on(F,S),P.on(F,A),I.on(F,E),O.on(q,O),T.on(q,T),P.on(q,P),I.on(q,I),y.on(F,y),b.on(F,y),y.on(q,b),b.on(q,b),u.on(s.TLD,L).on(s.DOMAIN,L).on(s.NUM,L).on(s.LOCALHOST,L),L.on(F,L).on(q,z),z.on(F,L).on(q,z);var W=[s.DOMAIN,s.NUM,s.PLUS,s.POUND,s.QUERY,s.UNDERSCORE,s.SYM,s.AMPERSAND,s.TLD];d.on(W,$).on(s.AT,B),g.on(W,$).on(s.AT,B),f.on(W,$),$.on(W,$).on(s.AT,B).on(s.DOT,H),H.on(W,$),B.on(s.TLD,R).on(s.DOMAIN,R).on(s.LOCALHOST,N),e.State=r.TokenState,e.TOKENS=o,e.run=function(t){for(var e=t.length,n=0,r=[],o=[];n<e;){for(var s=c,a=null,l=null,u=0,h=null,p=-1;n<e&&!(a=s.next(t[n]));)o.push(t[n++]);for(;n<e&&(l=a||s.next(t[n]));)a=null,(s=l).accepts()?(p=0,h=s):p>=0&&p++,n++,u++;if(p<0)for(var d=n-u;d<n;d++)o.push(t[d]);else{o.length>0&&(r.push(new i.TEXT(o)),o=[]),n-=p,u-=p;var f=h.emit();r.push(new f(t.slice(n-u,n)))}}return o.length>0&&r.push(new i.TEXT(o)),r},e.start=c},6417:(t,e,n)=>{"use strict";e.__esModule=!0,e.start=e.run=e.TOKENS=e.State=void 0;var r=n(1504),i=n(3333),o=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(i),s="aaa|aarp|abarth|abb|abbott|abbvie|abc|able|abogado|abudhabi|ac|academy|accenture|accountant|accountants|aco|active|actor|ad|adac|ads|adult|ae|aeg|aero|aetna|af|afamilycompany|afl|africa|ag|agakhan|agency|ai|aig|aigo|airbus|airforce|airtel|akdn|al|alfaromeo|alibaba|alipay|allfinanz|allstate|ally|alsace|alstom|am|americanexpress|americanfamily|amex|amfam|amica|amsterdam|analytics|android|anquan|anz|ao|aol|apartments|app|apple|aq|aquarelle|ar|arab|aramco|archi|army|arpa|art|arte|as|asda|asia|associates|at|athleta|attorney|au|auction|audi|audible|audio|auspost|author|auto|autos|avianca|aw|aws|ax|axa|az|azure|ba|baby|baidu|banamex|bananarepublic|band|bank|bar|barcelona|barclaycard|barclays|barefoot|bargains|baseball|basketball|bauhaus|bayern|bb|bbc|bbt|bbva|bcg|bcn|bd|be|beats|beauty|beer|bentley|berlin|best|bestbuy|bet|bf|bg|bh|bharti|bi|bible|bid|bike|bing|bingo|bio|biz|bj|black|blackfriday|blanco|blockbuster|blog|bloomberg|blue|bm|bms|bmw|bn|bnl|bnpparibas|bo|boats|boehringer|bofa|bom|bond|boo|book|booking|boots|bosch|bostik|boston|bot|boutique|box|br|bradesco|bridgestone|broadway|broker|brother|brussels|bs|bt|budapest|bugatti|build|builders|business|buy|buzz|bv|bw|by|bz|bzh|ca|cab|cafe|cal|call|calvinklein|cam|camera|camp|cancerresearch|canon|capetown|capital|capitalone|car|caravan|cards|care|career|careers|cars|cartier|casa|case|caseih|cash|casino|cat|catering|catholic|cba|cbn|cbre|cbs|cc|cd|ceb|center|ceo|cern|cf|cfa|cfd|cg|ch|chanel|channel|chase|chat|cheap|chintai|chloe|christmas|chrome|chrysler|church|ci|cipriani|circle|cisco|citadel|citi|citic|city|cityeats|ck|cl|claims|cleaning|click|clinic|clinique|clothing|cloud|club|clubmed|cm|cn|co|coach|codes|coffee|college|cologne|com|comcast|commbank|community|company|compare|computer|comsec|condos|construction|consulting|contact|contractors|cooking|cookingchannel|cool|coop|corsica|country|coupon|coupons|courses|cr|credit|creditcard|creditunion|cricket|crown|crs|cruise|cruises|csc|cu|cuisinella|cv|cw|cx|cy|cymru|cyou|cz|dabur|dad|dance|data|date|dating|datsun|day|dclk|dds|de|deal|dealer|deals|degree|delivery|dell|deloitte|delta|democrat|dental|dentist|desi|design|dev|dhl|diamonds|diet|digital|direct|directory|discount|discover|dish|diy|dj|dk|dm|dnp|do|docs|doctor|dodge|dog|doha|domains|dot|download|drive|dtv|dubai|duck|dunlop|duns|dupont|durban|dvag|dvr|dz|earth|eat|ec|eco|edeka|edu|education|ee|eg|email|emerck|energy|engineer|engineering|enterprises|epost|epson|equipment|er|ericsson|erni|es|esq|estate|esurance|et|etisalat|eu|eurovision|eus|events|everbank|exchange|expert|exposed|express|extraspace|fage|fail|fairwinds|faith|family|fan|fans|farm|farmers|fashion|fast|fedex|feedback|ferrari|ferrero|fi|fiat|fidelity|fido|film|final|finance|financial|fire|firestone|firmdale|fish|fishing|fit|fitness|fj|fk|flickr|flights|flir|florist|flowers|fly|fm|fo|foo|food|foodnetwork|football|ford|forex|forsale|forum|foundation|fox|fr|free|fresenius|frl|frogans|frontdoor|frontier|ftr|fujitsu|fujixerox|fun|fund|furniture|futbol|fyi|ga|gal|gallery|gallo|gallup|game|games|gap|garden|gb|gbiz|gd|gdn|ge|gea|gent|genting|george|gf|gg|ggee|gh|gi|gift|gifts|gives|giving|gl|glade|glass|gle|global|globo|gm|gmail|gmbh|gmo|gmx|gn|godaddy|gold|goldpoint|golf|goo|goodhands|goodyear|goog|google|gop|got|gov|gp|gq|gr|grainger|graphics|gratis|green|gripe|grocery|group|gs|gt|gu|guardian|gucci|guge|guide|guitars|guru|gw|gy|hair|hamburg|hangout|haus|hbo|hdfc|hdfcbank|health|healthcare|help|helsinki|here|hermes|hgtv|hiphop|hisamitsu|hitachi|hiv|hk|hkt|hm|hn|hockey|holdings|holiday|homedepot|homegoods|homes|homesense|honda|honeywell|horse|hospital|host|hosting|hot|hoteles|hotels|hotmail|house|how|hr|hsbc|ht|htc|hu|hughes|hyatt|hyundai|ibm|icbc|ice|icu|id|ie|ieee|ifm|ikano|il|im|imamat|imdb|immo|immobilien|in|industries|infiniti|info|ing|ink|institute|insurance|insure|int|intel|international|intuit|investments|io|ipiranga|iq|ir|irish|is|iselect|ismaili|ist|istanbul|it|itau|itv|iveco|iwc|jaguar|java|jcb|jcp|je|jeep|jetzt|jewelry|jio|jlc|jll|jm|jmp|jnj|jo|jobs|joburg|jot|joy|jp|jpmorgan|jprs|juegos|juniper|kaufen|kddi|ke|kerryhotels|kerrylogistics|kerryproperties|kfh|kg|kh|ki|kia|kim|kinder|kindle|kitchen|kiwi|km|kn|koeln|komatsu|kosher|kp|kpmg|kpn|kr|krd|kred|kuokgroup|kw|ky|kyoto|kz|la|lacaixa|ladbrokes|lamborghini|lamer|lancaster|lancia|lancome|land|landrover|lanxess|lasalle|lat|latino|latrobe|law|lawyer|lb|lc|lds|lease|leclerc|lefrak|legal|lego|lexus|lgbt|li|liaison|lidl|life|lifeinsurance|lifestyle|lighting|like|lilly|limited|limo|lincoln|linde|link|lipsy|live|living|lixil|lk|loan|loans|locker|locus|loft|lol|london|lotte|lotto|love|lpl|lplfinancial|lr|ls|lt|ltd|ltda|lu|lundbeck|lupin|luxe|luxury|lv|ly|ma|macys|madrid|maif|maison|makeup|man|management|mango|map|market|marketing|markets|marriott|marshalls|maserati|mattel|mba|mc|mckinsey|md|me|med|media|meet|melbourne|meme|memorial|men|menu|meo|merckmsd|metlife|mg|mh|miami|microsoft|mil|mini|mint|mit|mitsubishi|mk|ml|mlb|mls|mm|mma|mn|mo|mobi|mobile|mobily|moda|moe|moi|mom|monash|money|monster|mopar|mormon|mortgage|moscow|moto|motorcycles|mov|movie|movistar|mp|mq|mr|ms|msd|mt|mtn|mtr|mu|museum|mutual|mv|mw|mx|my|mz|na|nab|nadex|nagoya|name|nationwide|natura|navy|nba|nc|ne|nec|net|netbank|netflix|network|neustar|new|newholland|news|next|nextdirect|nexus|nf|nfl|ng|ngo|nhk|ni|nico|nike|nikon|ninja|nissan|nissay|nl|no|nokia|northwesternmutual|norton|now|nowruz|nowtv|np|nr|nra|nrw|ntt|nu|nyc|nz|obi|observer|off|office|okinawa|olayan|olayangroup|oldnavy|ollo|om|omega|one|ong|onl|online|onyourside|ooo|open|oracle|orange|org|organic|origins|osaka|otsuka|ott|ovh|pa|page|panasonic|panerai|paris|pars|partners|parts|party|passagens|pay|pccw|pe|pet|pf|pfizer|pg|ph|pharmacy|phd|philips|phone|photo|photography|photos|physio|piaget|pics|pictet|pictures|pid|pin|ping|pink|pioneer|pizza|pk|pl|place|play|playstation|plumbing|plus|pm|pn|pnc|pohl|poker|politie|porn|post|pr|pramerica|praxi|press|prime|pro|prod|productions|prof|progressive|promo|properties|property|protection|pru|prudential|ps|pt|pub|pw|pwc|py|qa|qpon|quebec|quest|qvc|racing|radio|raid|re|read|realestate|realtor|realty|recipes|red|redstone|redumbrella|rehab|reise|reisen|reit|reliance|ren|rent|rentals|repair|report|republican|rest|restaurant|review|reviews|rexroth|rich|richardli|ricoh|rightathome|ril|rio|rip|rmit|ro|rocher|rocks|rodeo|rogers|room|rs|rsvp|ru|rugby|ruhr|run|rw|rwe|ryukyu|sa|saarland|safe|safety|sakura|sale|salon|samsclub|samsung|sandvik|sandvikcoromant|sanofi|sap|sapo|sarl|sas|save|saxo|sb|sbi|sbs|sc|sca|scb|schaeffler|schmidt|scholarships|school|schule|schwarz|science|scjohnson|scor|scot|sd|se|search|seat|secure|security|seek|select|sener|services|ses|seven|sew|sex|sexy|sfr|sg|sh|shangrila|sharp|shaw|shell|shia|shiksha|shoes|shop|shopping|shouji|show|showtime|shriram|si|silk|sina|singles|site|sj|sk|ski|skin|sky|skype|sl|sling|sm|smart|smile|sn|sncf|so|soccer|social|softbank|software|sohu|solar|solutions|song|sony|soy|space|spiegel|spot|spreadbetting|sr|srl|srt|st|stada|staples|star|starhub|statebank|statefarm|statoil|stc|stcgroup|stockholm|storage|store|stream|studio|study|style|su|sucks|supplies|supply|support|surf|surgery|suzuki|sv|swatch|swiftcover|swiss|sx|sy|sydney|symantec|systems|sz|tab|taipei|talk|taobao|target|tatamotors|tatar|tattoo|tax|taxi|tc|tci|td|tdk|team|tech|technology|tel|telecity|telefonica|temasek|tennis|teva|tf|tg|th|thd|theater|theatre|tiaa|tickets|tienda|tiffany|tips|tires|tirol|tj|tjmaxx|tjx|tk|tkmaxx|tl|tm|tmall|tn|to|today|tokyo|tools|top|toray|toshiba|total|tours|town|toyota|toys|tr|trade|trading|training|travel|travelchannel|travelers|travelersinsurance|trust|trv|tt|tube|tui|tunes|tushu|tv|tvs|tw|tz|ua|ubank|ubs|uconnect|ug|uk|unicom|university|uno|uol|ups|us|uy|uz|va|vacations|vana|vanguard|vc|ve|vegas|ventures|verisign|versicherung|vet|vg|vi|viajes|video|vig|viking|villas|vin|vip|virgin|visa|vision|vista|vistaprint|viva|vivo|vlaanderen|vn|vodka|volkswagen|volvo|vote|voting|voto|voyage|vu|vuelos|wales|walmart|walter|wang|wanggou|warman|watch|watches|weather|weatherchannel|webcam|weber|website|wed|wedding|weibo|weir|wf|whoswho|wien|wiki|williamhill|win|windows|wine|winners|wme|wolterskluwer|woodside|work|works|world|wow|ws|wtc|wtf|xbox|xerox|xfinity|xihuan|xin|xn--11b4c3d|xn--1ck2e1b|xn--1qqw23a|xn--2scrj9c|xn--30rr7y|xn--3bst00m|xn--3ds443g|xn--3e0b707e|xn--3hcrj9c|xn--3oq18vl8pn36a|xn--3pxu8k|xn--42c2d9a|xn--45br5cyl|xn--45brj9c|xn--45q11c|xn--4gbrim|xn--54b7fta0cc|xn--55qw42g|xn--55qx5d|xn--5su34j936bgsg|xn--5tzm5g|xn--6frz82g|xn--6qq986b3xl|xn--80adxhks|xn--80ao21a|xn--80aqecdr1a|xn--80asehdb|xn--80aswg|xn--8y0a063a|xn--90a3ac|xn--90ae|xn--90ais|xn--9dbq2a|xn--9et52u|xn--9krt00a|xn--b4w605ferd|xn--bck1b9a5dre4c|xn--c1avg|xn--c2br7g|xn--cck2b3b|xn--cg4bki|xn--clchc0ea0b2g2a9gcd|xn--czr694b|xn--czrs0t|xn--czru2d|xn--d1acj3b|xn--d1alf|xn--e1a4c|xn--eckvdtc9d|xn--efvy88h|xn--estv75g|xn--fct429k|xn--fhbei|xn--fiq228c5hs|xn--fiq64b|xn--fiqs8s|xn--fiqz9s|xn--fjq720a|xn--flw351e|xn--fpcrj9c3d|xn--fzc2c9e2c|xn--fzys8d69uvgm|xn--g2xx48c|xn--gckr3f0f|xn--gecrj9c|xn--gk3at1e|xn--h2breg3eve|xn--h2brj9c|xn--h2brj9c8c|xn--hxt814e|xn--i1b6b1a6a2e|xn--imr513n|xn--io0a7i|xn--j1aef|xn--j1amh|xn--j6w193g|xn--jlq61u9w7b|xn--jvr189m|xn--kcrx77d1x4a|xn--kprw13d|xn--kpry57d|xn--kpu716f|xn--kput3i|xn--l1acc|xn--lgbbat1ad8j|xn--mgb9awbf|xn--mgba3a3ejt|xn--mgba3a4f16a|xn--mgba7c0bbn0a|xn--mgbaakc7dvf|xn--mgbaam7a8h|xn--mgbab2bd|xn--mgbai9azgqp6j|xn--mgbayh7gpa|xn--mgbb9fbpob|xn--mgbbh1a|xn--mgbbh1a71e|xn--mgbc0a9azcg|xn--mgbca7dzdo|xn--mgberp4a5d4ar|xn--mgbgu82a|xn--mgbi4ecexp|xn--mgbpl2fh|xn--mgbt3dhd|xn--mgbtx2b|xn--mgbx4cd0ab|xn--mix891f|xn--mk1bu44c|xn--mxtq1m|xn--ngbc5azd|xn--ngbe9e0a|xn--ngbrx|xn--node|xn--nqv7f|xn--nqv7fs00ema|xn--nyqy26a|xn--o3cw4h|xn--ogbpf8fl|xn--p1acf|xn--p1ai|xn--pbt977c|xn--pgbs0dh|xn--pssy2u|xn--q9jyb4c|xn--qcka1pmc|xn--qxam|xn--rhqv96g|xn--rovu88b|xn--rvc1e0am3e|xn--s9brj9c|xn--ses554g|xn--t60b56a|xn--tckwe|xn--tiq49xqyj|xn--unup4y|xn--vermgensberater-ctb|xn--vermgensberatung-pwb|xn--vhquv|xn--vuq861b|xn--w4r85el8fhu5dnra|xn--w4rs40l|xn--wgbh1c|xn--wgbl6a|xn--xhq521b|xn--xkc2al3hye2a|xn--xkc2dl3a5ee0h|xn--y9a3aq|xn--yfro4i67o|xn--ygbi2ammx|xn--zfr164b|xperia|xxx|xyz|yachts|yahoo|yamaxun|yandex|ye|yodobashi|yoga|yokohama|you|youtube|yt|yun|za|zappos|zara|zero|zip|zippo|zm|zone|zuerich|zw".split("|"),a="0123456789".split(""),c="0123456789abcdefghijklmnopqrstuvwxyz".split(""),l=[" ","\f","\r","\t","\v"," "," ",""],u=[],h=function(t){return new r.CharacterState(t)},p=h(),d=h(i.NUM),f=h(i.DOMAIN),g=h(),v=h(i.WS);p.on("@",h(i.AT)).on(".",h(i.DOT)).on("+",h(i.PLUS)).on("#",h(i.POUND)).on("?",h(i.QUERY)).on("/",h(i.SLASH)).on("_",h(i.UNDERSCORE)).on(":",h(i.COLON)).on("{",h(i.OPENBRACE)).on("[",h(i.OPENBRACKET)).on("<",h(i.OPENANGLEBRACKET)).on("(",h(i.OPENPAREN)).on("}",h(i.CLOSEBRACE)).on("]",h(i.CLOSEBRACKET)).on(">",h(i.CLOSEANGLEBRACKET)).on(")",h(i.CLOSEPAREN)).on("&",h(i.AMPERSAND)).on([",",";","!",'"',"'"],h(i.PUNCTUATION)),p.on("\n",h(i.NL)).on(l,v),v.on(l,v);for(var m=0;m<s.length;m++){var y=(0,r.stateify)(s[m],p,i.TLD,i.DOMAIN);u.push.apply(u,y)}var b=(0,r.stateify)("file",p,i.DOMAIN,i.DOMAIN),w=(0,r.stateify)("ftp",p,i.DOMAIN,i.DOMAIN),x=(0,r.stateify)("http",p,i.DOMAIN,i.DOMAIN),_=(0,r.stateify)("mailto",p,i.DOMAIN,i.DOMAIN);u.push.apply(u,b),u.push.apply(u,w),u.push.apply(u,x),u.push.apply(u,_);var k=b.pop(),C=w.pop(),S=x.pop(),A=_.pop(),E=h(i.DOMAIN),O=h(i.PROTOCOL),T=h(i.MAILTO);C.on("s",E).on(":",O),S.on("s",E).on(":",O),u.push(E),k.on(":",O),E.on(":",O),A.on(":",T);var P=(0,r.stateify)("localhost",p,i.LOCALHOST,i.DOMAIN);u.push.apply(u,P),p.on(a,d),d.on("-",g).on(a,d).on(c,f),f.on("-",g).on(c,f);for(var I=0;I<u.length;I++)u[I].on("-",g).on(c,f);g.on("-",g).on(a,f).on(c,f),p.defaultTransition=h(i.SYM);var R=p;e.State=r.CharacterState,e.TOKENS=o,e.run=function(t){for(var e=t.replace(/[A-Z]/g,(function(t){return t.toLowerCase()})),n=t.length,r=[],i=0;i<n;){for(var o=p,s=null,a=0,c=null,l=-1;i<n&&(s=o.next(e[i]));)(o=s).accepts()?(l=0,c=o):l>=0&&l++,a++,i++;if(!(l<0)){i-=l,a-=l;var u=c.emit();r.push(new u(t.substr(i-a,a)))}}return r},e.start=R},1504:(t,e,n)=>{"use strict";e.__esModule=!0,e.stateify=e.TokenState=e.CharacterState=void 0;var r=n(2227),i=function(t){this.j=[],this.T=t||null};i.prototype={defaultTransition:!1,on:function(t,e){if(t instanceof Array){for(var n=0;n<t.length;n++)this.j.push([t[n],e]);return this}return this.j.push([t,e]),this},next:function(t){for(var e=0;e<this.j.length;e++){var n=this.j[e],r=n[0],i=n[1];if(this.test(t,r))return i}return this.defaultTransition},accepts:function(){return!!this.T},test:function(t,e){return t===e},emit:function(){return this.T}};var o=(0,r.inherits)(i,(function(t){this.j=[],this.T=t||null}),{test:function(t,e){return t===e||e instanceof RegExp&&e.test(t)}}),s=(0,r.inherits)(i,(function(t){this.j=[],this.T=t||null}),{jump:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=this.next(new t(""));return n===this.defaultTransition?(n=new this.constructor(e),this.on(t,n)):e&&(n.T=e),n},test:function(t,e){return t instanceof e}});e.CharacterState=o,e.TokenState=s,e.stateify=function(t,e,n,r){for(var i=0,s=t.length,a=e,c=[],l=void 0;i<s&&(l=a.next(t[i]));)a=l,i++;if(i>=s)return[];for(;i<s-1;)l=new o(r),c.push(l),a.on(t[i],l),a=l,i++;return l=new o(n),c.push(l),a.on(t[s-1],l),c}},9770:(t,e)=>{"use strict";e.__esModule=!0,e.createTokenClass=function(){return function(t){t&&(this.v=t)}}},3370:(t,e,n)=>{"use strict";e.__esModule=!0,e.URL=e.TEXT=e.NL=e.EMAIL=e.MAILTOEMAIL=e.Base=void 0;var r=n(9770),i=n(2227),o=n(3333);function s(t){return t instanceof o.DOMAIN||t instanceof o.TLD}var a=(0,r.createTokenClass)();a.prototype={type:"token",isLink:!1,toString:function(){for(var t=[],e=0;e<this.v.length;e++)t.push(this.v[e].toString());return t.join("")},toHref:function(){return this.toString()},toObject:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"http";return{type:this.type,value:this.toString(),href:this.toHref(t)}}};var c=(0,i.inherits)(a,(0,r.createTokenClass)(),{type:"email",isLink:!0}),l=(0,i.inherits)(a,(0,r.createTokenClass)(),{type:"email",isLink:!0,toHref:function(){return"mailto:"+this.toString()}}),u=(0,i.inherits)(a,(0,r.createTokenClass)(),{type:"text"}),h=(0,i.inherits)(a,(0,r.createTokenClass)(),{type:"nl"}),p=(0,i.inherits)(a,(0,r.createTokenClass)(),{type:"url",isLink:!0,toHref:function(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"http",e=!1,n=!1,r=this.v,i=[],a=0;r[a]instanceof o.PROTOCOL;)e=!0,i.push(r[a].toString().toLowerCase()),a++;for(;r[a]instanceof o.SLASH;)n=!0,i.push(r[a].toString()),a++;for(;s(r[a]);)i.push(r[a].toString().toLowerCase()),a++;for(;a<r.length;a++)i.push(r[a].toString());return i=i.join(""),e||n||(i=t+"://"+i),i},hasProtocol:function(){return this.v[0]instanceof o.PROTOCOL}});e.Base=a,e.MAILTOEMAIL=c,e.EMAIL=l,e.NL=h,e.TEXT=u,e.URL=p},3333:(t,e,n)=>{"use strict";e.__esModule=!0,e.AMPERSAND=e.CLOSEPAREN=e.CLOSEANGLEBRACKET=e.CLOSEBRACKET=e.CLOSEBRACE=e.OPENPAREN=e.OPENANGLEBRACKET=e.OPENBRACKET=e.OPENBRACE=e.WS=e.TLD=e.SYM=e.UNDERSCORE=e.SLASH=e.MAILTO=e.PROTOCOL=e.QUERY=e.POUND=e.PLUS=e.NUM=e.NL=e.LOCALHOST=e.PUNCTUATION=e.DOT=e.COLON=e.AT=e.DOMAIN=e.Base=void 0;var r=n(9770),i=n(2227),o=(0,r.createTokenClass)();function s(t){var e=t?{v:t}:{};return(0,i.inherits)(o,(0,r.createTokenClass)(),e)}o.prototype={toString:function(){return this.v+""}};var a=s(),c=s("@"),l=s(":"),u=s("."),h=s(),p=s(),d=s("\n"),f=s(),g=s("+"),v=s("#"),m=s(),y=s("mailto:"),b=s("?"),w=s("/"),x=s("_"),_=s(),k=s(),C=s(),S=s("{"),A=s("["),E=s("<"),O=s("("),T=s("}"),P=s("]"),I=s(">"),R=s(")"),M=s("&");e.Base=o,e.DOMAIN=a,e.AT=c,e.COLON=l,e.DOT=u,e.PUNCTUATION=h,e.LOCALHOST=p,e.NL=d,e.NUM=f,e.PLUS=g,e.POUND=v,e.QUERY=b,e.PROTOCOL=m,e.MAILTO=y,e.SLASH=w,e.UNDERSCORE=x,e.SYM=_,e.TLD=k,e.WS=C,e.OPENBRACE=S,e.OPENBRACKET=A,e.OPENANGLEBRACKET=E,e.OPENPAREN=O,e.CLOSEBRACE=T,e.CLOSEBRACKET=P,e.CLOSEANGLEBRACKET=I,e.CLOSEPAREN=R,e.AMPERSAND=M},2227:(t,e)=>{"use strict";e.__esModule=!0,e.inherits=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Object.create(t.prototype);for(var i in n)r[i]=n[i];return r.constructor=e,e.prototype=r,e}},7951:(t,e)=>{"use strict";e.__esModule=!0;var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r={defaultProtocol:"http",events:null,format:o,formatHref:o,nl2br:!1,tagName:"a",target:function(t,e){return"url"===e?"_blank":null},validate:!0,ignoreTags:[],attributes:null,className:"linkified"};function i(t){t=t||{},this.defaultProtocol=t.hasOwnProperty("defaultProtocol")?t.defaultProtocol:r.defaultProtocol,this.events=t.hasOwnProperty("events")?t.events:r.events,this.format=t.hasOwnProperty("format")?t.format:r.format,this.formatHref=t.hasOwnProperty("formatHref")?t.formatHref:r.formatHref,this.nl2br=t.hasOwnProperty("nl2br")?t.nl2br:r.nl2br,this.tagName=t.hasOwnProperty("tagName")?t.tagName:r.tagName,this.target=t.hasOwnProperty("target")?t.target:r.target,this.validate=t.hasOwnProperty("validate")?t.validate:r.validate,this.ignoreTags=[],this.attributes=t.attributes||t.linkAttributes||r.attributes,this.className=t.hasOwnProperty("className")?t.className:t.linkClass||r.className;for(var e=t.hasOwnProperty("ignoreTags")?t.ignoreTags:r.ignoreTags,n=0;n<e.length;n++)this.ignoreTags.push(e[n].toUpperCase())}function o(t){return t}e.defaults=r,e.Options=i,e.contains=function(t,e){for(var n=0;n<t.length;n++)if(t[n]===e)return!0;return!1},i.prototype={resolve:function(t){var e=t.toHref(this.defaultProtocol);return{formatted:this.get("format",t.toString(),t),formattedHref:this.get("formatHref",e,t),tagName:this.get("tagName",e,t),className:this.get("className",e,t),target:this.get("target",e,t),events:this.getObject("events",e,t),attributes:this.getObject("attributes",e,t)}},check:function(t){return this.get("validate",t.toString(),t)},get:function(t,e,i){var o=void 0,s=this[t];if(!s)return s;switch(void 0===s?"undefined":n(s)){case"function":return s(e,i.type);case"object":return"function"==typeof(o=s.hasOwnProperty(i.type)?s[i.type]:r[t])?o(e,i.type):o}return s},getObject:function(t,e,n){var r=this[t];return"function"==typeof r?r(e,n.type):r}}},2226:(t,e,n)=>{"use strict";e.__esModule=!0;var r=c(n(7691)),i=c(n(7305)),o=c(n(1497)),s=c(n(4630)),a=c(n(4030));function c(t){return t&&t.__esModule?t:{default:t}}var l={HTML5NamedCharRefs:r.default,EntityParser:i.default,EventedTokenizer:o.default,Tokenizer:s.default,tokenize:a.default};e.default=l},7305:(t,e)=>{"use strict";function n(t){this.named=t}e.__esModule=!0;var r=/^#[xX]([A-Fa-f0-9]+)$/,i=/^#([0-9]+)$/,o=/^([A-Za-z0-9]+)$/;n.prototype.parse=function(t){if(t){var e=t.match(r);return e?"&#x"+e[1]+";":(e=t.match(i))?"&#"+e[1]+";":(e=t.match(o))?this.named[e[1]]||"&"+e[1]+";":void 0}},e.default=n},1497:(t,e,n)=>{"use strict";e.__esModule=!0;var r=n(55);function i(t,e){this.delegate=t,this.entityParser=e,this.state=null,this.input=null,this.index=-1,this.line=-1,this.column=-1,this.tagLine=-1,this.tagColumn=-1,this.reset()}i.prototype={reset:function(){this.state="beforeData",this.input="",this.index=0,this.line=1,this.column=0,this.tagLine=-1,this.tagColumn=-1,this.delegate.reset()},tokenize:function(t){this.reset(),this.tokenizePart(t),this.tokenizeEOF()},tokenizePart:function(t){for(this.input+=(0,r.preprocessInput)(t);this.index<this.input.length;)this.states[this.state].call(this)},tokenizeEOF:function(){this.flushData()},flushData:function(){"data"===this.state&&(this.delegate.finishData(),this.state="beforeData")},peek:function(){return this.input.charAt(this.index)},consume:function(){var t=this.peek();return this.index++,"\n"===t?(this.line++,this.column=0):this.column++,t},consumeCharRef:function(){var t=this.input.indexOf(";",this.index);if(-1!==t){var e=this.input.slice(this.index,t),n=this.entityParser.parse(e);if(n){for(var r=e.length;r;)this.consume(),r--;return this.consume(),n}}},markTagStart:function(){this.tagLine=this.line,this.tagColumn=this.column,this.delegate.tagOpen&&this.delegate.tagOpen()},states:{beforeData:function(){"<"===this.peek()?(this.state="tagOpen",this.markTagStart(),this.consume()):(this.state="data",this.delegate.beginData())},data:function(){var t=this.peek();"<"===t?(this.delegate.finishData(),this.state="tagOpen",this.markTagStart(),this.consume()):"&"===t?(this.consume(),this.delegate.appendToData(this.consumeCharRef()||"&")):(this.consume(),this.delegate.appendToData(t))},tagOpen:function(){var t=this.consume();"!"===t?this.state="markupDeclaration":"/"===t?this.state="endTagOpen":(0,r.isAlpha)(t)&&(this.state="tagName",this.delegate.beginStartTag(),this.delegate.appendToTagName(t.toLowerCase()))},markupDeclaration:function(){"-"===this.consume()&&"-"===this.input.charAt(this.index)&&(this.consume(),this.state="commentStart",this.delegate.beginComment())},commentStart:function(){var t=this.consume();"-"===t?this.state="commentStartDash":">"===t?(this.delegate.finishComment(),this.state="beforeData"):(this.delegate.appendToCommentData(t),this.state="comment")},commentStartDash:function(){var t=this.consume();"-"===t?this.state="commentEnd":">"===t?(this.delegate.finishComment(),this.state="beforeData"):(this.delegate.appendToCommentData("-"),this.state="comment")},comment:function(){var t=this.consume();"-"===t?this.state="commentEndDash":this.delegate.appendToCommentData(t)},commentEndDash:function(){var t=this.consume();"-"===t?this.state="commentEnd":(this.delegate.appendToCommentData("-"+t),this.state="comment")},commentEnd:function(){var t=this.consume();">"===t?(this.delegate.finishComment(),this.state="beforeData"):(this.delegate.appendToCommentData("--"+t),this.state="comment")},tagName:function(){var t=this.consume();(0,r.isSpace)(t)?this.state="beforeAttributeName":"/"===t?this.state="selfClosingStartTag":">"===t?(this.delegate.finishTag(),this.state="beforeData"):this.delegate.appendToTagName(t)},beforeAttributeName:function(){var t=this.peek();(0,r.isSpace)(t)?this.consume():"/"===t?(this.state="selfClosingStartTag",this.consume()):">"===t?(this.consume(),this.delegate.finishTag(),this.state="beforeData"):(this.state="attributeName",this.delegate.beginAttribute(),this.consume(),this.delegate.appendToAttributeName(t))},attributeName:function(){var t=this.peek();(0,r.isSpace)(t)?(this.state="afterAttributeName",this.consume()):"/"===t?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.state="selfClosingStartTag"):"="===t?(this.state="beforeAttributeValue",this.consume()):">"===t?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.state="beforeData"):(this.consume(),this.delegate.appendToAttributeName(t))},afterAttributeName:function(){var t=this.peek();(0,r.isSpace)(t)?this.consume():"/"===t?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.state="selfClosingStartTag"):"="===t?(this.consume(),this.state="beforeAttributeValue"):">"===t?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.state="beforeData"):(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.state="attributeName",this.delegate.beginAttribute(),this.delegate.appendToAttributeName(t))},beforeAttributeValue:function(){var t=this.peek();(0,r.isSpace)(t)?this.consume():'"'===t?(this.state="attributeValueDoubleQuoted",this.delegate.beginAttributeValue(!0),this.consume()):"'"===t?(this.state="attributeValueSingleQuoted",this.delegate.beginAttributeValue(!0),this.consume()):">"===t?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.state="beforeData"):(this.state="attributeValueUnquoted",this.delegate.beginAttributeValue(!1),this.consume(),this.delegate.appendToAttributeValue(t))},attributeValueDoubleQuoted:function(){var t=this.consume();'"'===t?(this.delegate.finishAttributeValue(),this.state="afterAttributeValueQuoted"):"&"===t?this.delegate.appendToAttributeValue(this.consumeCharRef('"')||"&"):this.delegate.appendToAttributeValue(t)},attributeValueSingleQuoted:function(){var t=this.consume();"'"===t?(this.delegate.finishAttributeValue(),this.state="afterAttributeValueQuoted"):"&"===t?this.delegate.appendToAttributeValue(this.consumeCharRef("'")||"&"):this.delegate.appendToAttributeValue(t)},attributeValueUnquoted:function(){var t=this.peek();(0,r.isSpace)(t)?(this.delegate.finishAttributeValue(),this.consume(),this.state="beforeAttributeName"):"&"===t?(this.consume(),this.delegate.appendToAttributeValue(this.consumeCharRef(">")||"&")):">"===t?(this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.state="beforeData"):(this.consume(),this.delegate.appendToAttributeValue(t))},afterAttributeValueQuoted:function(){var t=this.peek();(0,r.isSpace)(t)?(this.consume(),this.state="beforeAttributeName"):"/"===t?(this.consume(),this.state="selfClosingStartTag"):">"===t?(this.consume(),this.delegate.finishTag(),this.state="beforeData"):this.state="beforeAttributeName"},selfClosingStartTag:function(){">"===this.peek()?(this.consume(),this.delegate.markTagAsSelfClosing(),this.delegate.finishTag(),this.state="beforeData"):this.state="beforeAttributeName"},endTagOpen:function(){var t=this.consume();(0,r.isAlpha)(t)&&(this.state="tagName",this.delegate.beginEndTag(),this.delegate.appendToTagName(t.toLowerCase()))}}},e.default=i},7691:(t,e)=>{"use strict";e.__esModule=!0,e.default={nbsp:" "}},4030:(t,e,n)=>{"use strict";e.__esModule=!0,e.default=function(t,e){return new r.default(new i.default(o.default),e).tokenize(t)};var r=s(n(4630)),i=s(n(7305)),o=s(n(7691));function s(t){return t&&t.__esModule?t:{default:t}}},4630:(t,e,n)=>{"use strict";e.__esModule=!0;var r,i=(r=n(1497))&&r.__esModule?r:{default:r};function o(t,e){this.token=null,this.startLine=1,this.startColumn=0,this.options=e||{},this.tokenizer=new i.default(this,t)}o.prototype={tokenize:function(t){return this.tokens=[],this.tokenizer.tokenize(t),this.tokens},tokenizePart:function(t){return this.tokens=[],this.tokenizer.tokenizePart(t),this.tokens},tokenizeEOF:function(){return this.tokens=[],this.tokenizer.tokenizeEOF(),this.tokens[0]},reset:function(){this.token=null,this.startLine=1,this.startColumn=0},addLocInfo:function(){this.options.loc&&(this.token.loc={start:{line:this.startLine,column:this.startColumn},end:{line:this.tokenizer.line,column:this.tokenizer.column}}),this.startLine=this.tokenizer.line,this.startColumn=this.tokenizer.column},beginData:function(){this.token={type:"Chars",chars:""},this.tokens.push(this.token)},appendToData:function(t){this.token.chars+=t},finishData:function(){this.addLocInfo()},beginComment:function(){this.token={type:"Comment",chars:""},this.tokens.push(this.token)},appendToCommentData:function(t){this.token.chars+=t},finishComment:function(){this.addLocInfo()},beginStartTag:function(){this.token={type:"StartTag",tagName:"",attributes:[],selfClosing:!1},this.tokens.push(this.token)},beginEndTag:function(){this.token={type:"EndTag",tagName:""},this.tokens.push(this.token)},finishTag:function(){this.addLocInfo()},markTagAsSelfClosing:function(){this.token.selfClosing=!0},appendToTagName:function(t){this.token.tagName+=t},beginAttribute:function(){this._currentAttribute=["","",null],this.token.attributes.push(this._currentAttribute)},appendToAttributeName:function(t){this._currentAttribute[0]+=t},beginAttributeValue:function(t){this._currentAttribute[2]=t},appendToAttributeValue:function(t){this._currentAttribute[1]=this._currentAttribute[1]||"",this._currentAttribute[1]+=t},finishAttributeValue:function(){}},e.default=o},55:(t,e)=>{"use strict";e.__esModule=!0,e.isSpace=function(t){return n.test(t)},e.isAlpha=function(t){return r.test(t)},e.preprocessInput=function(t){return t.replace(i,"\n")};var n=/[\t\n\f ]/,r=/[A-Za-z]/,i=/\r\n?/g},2705:(t,e,n)=>{var r=n(5639).Symbol;t.exports=r},4239:(t,e,n)=>{var r=n(2705),i=n(9607),o=n(2333),s=r?r.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":s&&s in Object(t)?i(t):o(t)}},7561:(t,e,n)=>{var r=n(7990),i=/^\s+/;t.exports=function(t){return t?t.slice(0,r(t)+1).replace(i,""):t}},1957:(t,e,n)=>{var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;t.exports=r},9607:(t,e,n)=>{var r=n(2705),i=Object.prototype,o=i.hasOwnProperty,s=i.toString,a=r?r.toStringTag:void 0;t.exports=function(t){var e=o.call(t,a),n=t[a];try{t[a]=void 0;var r=!0}catch(t){}var i=s.call(t);return r&&(e?t[a]=n:delete t[a]),i}},2333:t=>{var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},5639:(t,e,n)=>{var r=n(1957),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();t.exports=o},7990:t=>{var e=/\s/;t.exports=function(t){for(var n=t.length;n--&&e.test(t.charAt(n)););return n}},3279:(t,e,n)=>{var r=n(3218),i=n(7771),o=n(4841),s=Math.max,a=Math.min;t.exports=function(t,e,n){var c,l,u,h,p,d,f=0,g=!1,v=!1,m=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function y(e){var n=c,r=l;return c=l=void 0,f=e,h=t.apply(r,n)}function b(t){return f=t,p=setTimeout(x,e),g?y(t):h}function w(t){var n=t-d;return void 0===d||n>=e||n<0||v&&t-f>=u}function x(){var t=i();if(w(t))return _(t);p=setTimeout(x,function(t){var n=e-(t-d);return v?a(n,u-(t-f)):n}(t))}function _(t){return p=void 0,m&&c?y(t):(c=l=void 0,h)}function k(){var t=i(),n=w(t);if(c=arguments,l=this,d=t,n){if(void 0===p)return b(d);if(v)return clearTimeout(p),p=setTimeout(x,e),y(d)}return void 0===p&&(p=setTimeout(x,e)),h}return e=o(e)||0,r(n)&&(g=!!n.leading,u=(v="maxWait"in n)?s(o(n.maxWait)||0,e):u,m="trailing"in n?!!n.trailing:m),k.cancel=function(){void 0!==p&&clearTimeout(p),f=0,c=d=l=p=void 0},k.flush=function(){return void 0===p?h:_(i())},k}},3218:t=>{t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},7005:t=>{t.exports=function(t){return null!=t&&"object"==typeof t}},3448:(t,e,n)=>{var r=n(4239),i=n(7005);t.exports=function(t){return"symbol"==typeof t||i(t)&&"[object Symbol]"==r(t)}},7771:(t,e,n)=>{var r=n(5639);t.exports=function(){return r.Date.now()}},4841:(t,e,n)=>{var r=n(7561),i=n(3218),o=n(3448),s=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,c=/^0o[0-7]+$/i,l=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(o(t))return NaN;if(i(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=i(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=r(t);var n=a.test(t);return n||c.test(t)?l(t.slice(2),n?2:8):s.test(t)?NaN:+t}},224:()=>{},1975:()=>{},5754:()=>{},2354:()=>{},5439:()=>{},4321:()=>{},3035:()=>{},8466:()=>{},2972:()=>{},2640:()=>{},2639:()=>{},3068:()=>{},6081:()=>{},8710:()=>{},9528:()=>{},5071:()=>{},6461:()=>{},718:()=>{},65:()=>{},6374:()=>{},238:()=>{},1511:()=>{},6996:()=>{},3102:()=>{},7521:()=>{},1445:()=>{},4749:()=>{},1406:()=>{},1004:()=>{},9078:()=>{},7042:()=>{},9413:()=>{},5477:()=>{},7502:(t,e,n)=>{t.exports=function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s="fb15")}({"01f9":function(t,e,n){"use strict";var r=n("2d00"),i=n("5ca1"),o=n("2aba"),s=n("32e9"),a=n("84f2"),c=n("41a0"),l=n("7f20"),u=n("38fd"),h=n("2b4c")("iterator"),p=!([].keys&&"next"in[].keys()),d="keys",f="values",g=function(){return this};t.exports=function(t,e,n,v,m,y,b){c(n,e,v);var w,x,_,k=function(t){if(!p&&t in E)return E[t];switch(t){case d:case f:return function(){return new n(this,t)}}return function(){return new n(this,t)}},C=e+" Iterator",S=m==f,A=!1,E=t.prototype,O=E[h]||E["@@iterator"]||m&&E[m],T=O||k(m),P=m?S?k("entries"):T:void 0,I="Array"==e&&E.entries||O;if(I&&(_=u(I.call(new t)))!==Object.prototype&&_.next&&(l(_,C,!0),r||"function"==typeof _[h]||s(_,h,g)),S&&O&&O.name!==f&&(A=!0,T=function(){return O.call(this)}),r&&!b||!p&&!A&&E[h]||s(E,h,T),a[e]=T,a[C]=g,m)if(w={values:S?T:k(f),keys:y?T:k(d),entries:P},b)for(x in w)x in E||o(E,x,w[x]);else i(i.P+i.F*(p||A),e,w);return w}},"02f4":function(t,e,n){var r=n("4588"),i=n("be13");t.exports=function(t){return function(e,n){var o,s,a=String(i(e)),c=r(n),l=a.length;return c<0||c>=l?t?"":void 0:(o=a.charCodeAt(c))<55296||o>56319||c+1===l||(s=a.charCodeAt(c+1))<56320||s>57343?t?a.charAt(c):o:t?a.slice(c,c+2):s-56320+(o-55296<<10)+65536}}},"0390":function(t,e,n){"use strict";var r=n("02f4")(!0);t.exports=function(t,e,n){return e+(n?r(t,e).length:1)}},"0bfb":function(t,e,n){"use strict";var r=n("cb7c");t.exports=function(){var t=r(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},"0d58":function(t,e,n){var r=n("ce10"),i=n("e11e");t.exports=Object.keys||function(t){return r(t,i)}},1156:function(t,e,n){var r=n("ad20");"string"==typeof r&&(r=[[t.i,r,""]]),r.locals&&(t.exports=r.locals),(0,n("499e").default)("c1ec597e",r,!0,{sourceMap:!1,shadowMode:!1})},"11e9":function(t,e,n){var r=n("52a7"),i=n("4630"),o=n("6821"),s=n("6a99"),a=n("69a8"),c=n("c69a"),l=Object.getOwnPropertyDescriptor;e.f=n("9e1e")?l:function(t,e){if(t=o(t),e=s(e,!0),c)try{return l(t,e)}catch(t){}if(a(t,e))return i(!r.f.call(t,e),t[e])}},1495:function(t,e,n){var r=n("86cc"),i=n("cb7c"),o=n("0d58");t.exports=n("9e1e")?Object.defineProperties:function(t,e){i(t);for(var n,s=o(e),a=s.length,c=0;a>c;)r.f(t,n=s[c++],e[n]);return t}},"18d2":function(t,e,n){"use strict";var r=n("18e9");t.exports=function(t){var e=(t=t||{}).reporter,n=t.batchProcessor,i=t.stateHandler.getState;if(!e)throw new Error("Missing required dependency: reporter.");function o(e){var n=t.important?" !important; ":"; ";return(e.join(n)+n).trim()}function s(t){return i(t).object}return{makeDetectable:function(t,s,a){a||(a=s,s=t,t=null),(t=t||{}).debug,r.isIE(8)?a(s):function(s,a){var c=o(["display: block","position: absolute","top: 0","left: 0","width: 100%","height: 100%","border: none","padding: 0","margin: 0","opacity: 0","z-index: -1000","pointer-events: none"]),l=!1,u=window.getComputedStyle(s),h=s.offsetWidth,p=s.offsetHeight;function d(){function n(){if("static"===u.position){s.style.setProperty("position","relative",t.important?"important":"");var n=function(e,n,r,i){var o=r[i];"auto"!==o&&"0"!==function(t){return t.replace(/[^-\d\.]/g,"")}(o)&&(e.warn("An element that is positioned static has style."+i+"="+o+" which is ignored due to the static positioning. The element will need to be positioned relative, so the style."+i+" will be set to 0. Element: ",n),n.style.setProperty(i,"0",t.important?"important":""))};n(e,s,u,"top"),n(e,s,u,"right"),n(e,s,u,"bottom"),n(e,s,u,"left")}}""!==u.position&&(n(),l=!0);var o=document.createElement("object");o.style.cssText=c,o.tabIndex=-1,o.type="text/html",o.setAttribute("aria-hidden","true"),o.onload=function(){l||n(),function t(e,n){if(!e.contentDocument){var r=i(e);return r.checkForObjectDocumentTimeoutId&&window.clearTimeout(r.checkForObjectDocumentTimeoutId),void(r.checkForObjectDocumentTimeoutId=setTimeout((function(){r.checkForObjectDocumentTimeoutId=0,t(e,n)}),100))}n(e.contentDocument)}(this,(function(t){a(s)}))},r.isIE()||(o.data="about:blank"),i(s)&&(s.appendChild(o),i(s).object=o,r.isIE()&&(o.data="about:blank"))}i(s).startSize={width:h,height:p},n?n.add(d):d()}(s,a)},addListener:function(t,e){function n(){e(t)}if(r.isIE(8))i(t).object={proxy:n},t.attachEvent("onresize",n);else{var o=s(t);if(!o)throw new Error("Element is not detectable by this strategy.");o.contentDocument.defaultView.addEventListener("resize",n)}},uninstall:function(t){if(i(t)){var e=s(t);e&&(r.isIE(8)?t.detachEvent("onresize",e.proxy):t.removeChild(e),i(t).checkForObjectDocumentTimeoutId&&window.clearTimeout(i(t).checkForObjectDocumentTimeoutId),delete i(t).object)}}}}},"18e9":function(t,e,n){"use strict";var r=t.exports={};r.isIE=function(t){return!(-1===(e=navigator.userAgent.toLowerCase()).indexOf("msie")&&-1===e.indexOf("trident")&&-1===e.indexOf(" edge/")||t&&t!==function(){var t=3,e=document.createElement("div"),n=e.getElementsByTagName("i");do{e.innerHTML="\x3c!--[if gt IE "+ ++t+"]><i></i><![endif]--\x3e"}while(n[0]);return t>4?t:void 0}());var e},r.isLegacyOpera=function(){return!!window.opera}},"1ca7":function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"a",(function(){return o})),n.d(e,"c",(function(){return s}));function r(){return"undefined"!=typeof window}function i(){return"undefined"!=typeof document?void 0!==document.dir?document.dir:document.getElementsByTagName("html")[0].getAttribute("dir"):"auto"}function o(t,e){r?window.addEventListener(t,e):e()}function s(t,e){r&&window.removeEventListener(t,e)}},"214f":function(t,e,n){"use strict";n("b0c5");var r=n("2aba"),i=n("32e9"),o=n("79e5"),s=n("be13"),a=n("2b4c"),c=n("520a"),l=a("species"),u=!o((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})),h=function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2===n.length&&"a"===n[0]&&"b"===n[1]}();t.exports=function(t,e,n){var p=a(t),d=!o((function(){var e={};return e[p]=function(){return 7},7!=""[t](e)})),f=d?!o((function(){var e=!1,n=/a/;return n.exec=function(){return e=!0,null},"split"===t&&(n.constructor={},n.constructor[l]=function(){return n}),n[p](""),!e})):void 0;if(!d||!f||"replace"===t&&!u||"split"===t&&!h){var g=/./[p],v=n(s,p,""[t],(function(t,e,n,r,i){return e.exec===c?d&&!i?{done:!0,value:g.call(e,n,r)}:{done:!0,value:t.call(n,e,r)}:{done:!1}})),m=v[0],y=v[1];r(String.prototype,t,m),i(RegExp.prototype,p,2==e?function(t,e){return y.call(t,this,e)}:function(t){return y.call(t,this)})}}},"230e":function(t,e,n){var r=n("d3f4"),i=n("7726").document,o=r(i)&&r(i.createElement);t.exports=function(t){return o?i.createElement(t):{}}},2350:function(t,e){t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n=function(t,e){var n,r=t[1]||"",i=t[3];if(!i)return r;if(e&&"function"==typeof btoa){var o=(n=i,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(n))))+" */"),s=i.sources.map((function(t){return"/*# sourceURL="+i.sourceRoot+t+" */"}));return[r].concat(s).concat([o]).join("\n")}return[r].join("\n")}(e,t);return e[2]?"@media "+e[2]+"{"+n+"}":n})).join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var r={},i=0;i<this.length;i++){var o=this[i][0];"number"==typeof o&&(r[o]=!0)}for(i=0;i<t.length;i++){var s=t[i];"number"==typeof s[0]&&r[s[0]]||(n&&!s[2]?s[2]=n:n&&(s[2]="("+s[2]+") and ("+n+")"),e.push(s))}},e}},"23c6":function(t,e,n){var r=n("2d95"),i=n("2b4c")("toStringTag"),o="Arguments"==r(function(){return arguments}());t.exports=function(t){var e,n,s;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),i))?n:o?r(e):"Object"==(s=r(e))&&"function"==typeof e.callee?"Arguments":s}},2621:function(t,e){e.f=Object.getOwnPropertySymbols},2877:function(t,e,n){"use strict";function r(t,e,n,r,i,o,s,a){var c,l="function"==typeof t?t.options:t;if(e&&(l.render=e,l.staticRenderFns=n,l._compiled=!0),r&&(l.functional=!0),o&&(l._scopeId="data-v-"+o),s?(c=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(s)},l._ssrRegister=c):i&&(c=a?function(){i.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:i),c)if(l.functional){l._injectStyles=c;var u=l.render;l.render=function(t,e){return c.call(e),u(t,e)}}else{var h=l.beforeCreate;l.beforeCreate=h?[].concat(h,c):[c]}return{exports:t,options:l}}n.d(e,"a",(function(){return r}))},"2aba":function(t,e,n){var r=n("7726"),i=n("32e9"),o=n("69a8"),s=n("ca5a")("src"),a=n("fa5b"),c="toString",l=(""+a).split(c);n("8378").inspectSource=function(t){return a.call(t)},(t.exports=function(t,e,n,a){var c="function"==typeof n;c&&(o(n,"name")||i(n,"name",e)),t[e]!==n&&(c&&(o(n,s)||i(n,s,t[e]?""+t[e]:l.join(String(e)))),t===r?t[e]=n:a?t[e]?t[e]=n:i(t,e,n):(delete t[e],i(t,e,n)))})(Function.prototype,c,(function(){return"function"==typeof this&&this[s]||a.call(this)}))},"2aeb":function(t,e,n){var r=n("cb7c"),i=n("1495"),o=n("e11e"),s=n("613b")("IE_PROTO"),a=function(){},c=function(){var t,e=n("230e")("iframe"),r=o.length;for(e.style.display="none",n("fab2").appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),c=t.F;r--;)delete c.prototype[o[r]];return c()};t.exports=Object.create||function(t,e){var n;return null!==t?(a.prototype=r(t),n=new a,a.prototype=null,n[s]=t):n=c(),void 0===e?n:i(n,e)}},"2af9":function(t,e,n){"use strict";(function(t){n.d(e,"d",(function(){return s})),n("7f7f"),n("cadf"),n("456d"),n("ac6a");var r=n("bc21");n.d(e,"a",(function(){return r.a}));var i=n("37c8");n.d(e,"b",(function(){return i.a}));var o={GridLayout:i.a,GridItem:r.a};function s(t){s.installed||(s.installed=!0,Object.keys(o).forEach((function(e){t.component(e,o[e])})))}var a={install:s},c=null;"undefined"!=typeof window?c=window.Vue:void 0!==t&&(c=t.Vue),c&&c.use(a),e.c=o}).call(this,n("c8ba"))},"2b4c":function(t,e,n){var r=n("5537")("wks"),i=n("ca5a"),o=n("7726").Symbol,s="function"==typeof o;(t.exports=function(t){return r[t]||(r[t]=s&&o[t]||(s?o:i)("Symbol."+t))}).store=r},"2cef":function(t,e,n){"use strict";t.exports=function(){var t=1;return{generate:function(){return t++}}}},"2d00":function(t,e){t.exports=!1},"2d95":function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},"2f21":function(t,e,n){"use strict";var r=n("79e5");t.exports=function(t,e){return!!t&&r((function(){e?t.call(null,(function(){}),1):t.call(null)}))}},"32e9":function(t,e,n){var r=n("86cc"),i=n("4630");t.exports=n("9e1e")?function(t,e,n){return r.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},"37c8":function(t,e,n){"use strict";function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}n("8e6e"),n("cadf"),n("456d"),n("f751"),n("fca0"),n("ac6a"),n("c5f6");var i=n("8bbf"),o=n.n(i),s=n("a2b6"),a=n("97a7"),c=n("bc21"),l=n("1ca7");function u(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function h(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?u(Object(n),!0).forEach((function(e){r(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var p=n("eec4"),d={name:"GridLayout",provide:function(){return{eventBus:null,layout:this}},components:{GridItem:c.a},props:{autoSize:{type:Boolean,default:!0},colNum:{type:Number,default:12},rowHeight:{type:Number,default:150},maxRows:{type:Number,default:1/0},margin:{type:Array,default:function(){return[10,10]}},isDraggable:{type:Boolean,default:!0},isResizable:{type:Boolean,default:!0},isMirrored:{type:Boolean,default:!1},useCssTransforms:{type:Boolean,default:!0},verticalCompact:{type:Boolean,default:!0},layout:{type:Array,required:!0},responsive:{type:Boolean,default:!1},responsiveLayouts:{type:Object,default:function(){return{}}},breakpoints:{type:Object,default:function(){return{lg:1200,md:996,sm:768,xs:480,xxs:0}}},cols:{type:Object,default:function(){return{lg:12,md:10,sm:6,xs:4,xxs:2}}},preventCollision:{type:Boolean,default:!1},useStyleCursor:{type:Boolean,default:!0}},data:function(){return{width:null,mergedStyle:{},lastLayoutLength:0,isDragging:!1,placeholder:{x:0,y:0,w:0,h:0,i:-1},layouts:{},lastBreakpoint:null,originalLayout:null}},created:function(){var t=this;t.resizeEventHandler=function(e,n,r,i,o,s){t.resizeEvent(e,n,r,i,o,s)},t.dragEventHandler=function(e,n,r,i,o,s){t.dragEvent(e,n,r,i,o,s)},t._provided.eventBus=new o.a,t.eventBus=t._provided.eventBus,t.eventBus.$on("resizeEvent",t.resizeEventHandler),t.eventBus.$on("dragEvent",t.dragEventHandler),t.$emit("layout-created",t.layout)},beforeDestroy:function(){this.eventBus.$off("resizeEvent",this.resizeEventHandler),this.eventBus.$off("dragEvent",this.dragEventHandler),this.eventBus.$destroy(),Object(l.c)("resize",this.onWindowResize),this.erd&&this.erd.uninstall(this.$refs.item)},beforeMount:function(){this.$emit("layout-before-mount",this.layout)},mounted:function(){this.$emit("layout-mounted",this.layout),this.$nextTick((function(){Object(s.l)(this.layout),this.originalLayout=this.layout;var t=this;this.$nextTick((function(){t.onWindowResize(),t.initResponsiveFeatures(),Object(l.a)("resize",t.onWindowResize),Object(s.c)(t.layout,t.verticalCompact),t.$emit("layout-updated",t.layout),t.updateHeight(),t.$nextTick((function(){this.erd=p({strategy:"scroll",callOnAdd:!1}),this.erd.listenTo(t.$refs.item,(function(){t.onWindowResize()}))}))}))}))},watch:{width:function(t,e){var n=this;this.$nextTick((function(){var t=this;this.eventBus.$emit("updateWidth",this.width),null===e&&this.$nextTick((function(){t.$emit("layout-ready",n.layout)})),this.updateHeight()}))},layout:function(){this.layoutUpdate()},colNum:function(t){this.eventBus.$emit("setColNum",t)},rowHeight:function(){this.eventBus.$emit("setRowHeight",this.rowHeight)},isDraggable:function(){this.eventBus.$emit("setDraggable",this.isDraggable)},isResizable:function(){this.eventBus.$emit("setResizable",this.isResizable)},responsive:function(){this.responsive||(this.$emit("update:layout",this.originalLayout),this.eventBus.$emit("setColNum",this.colNum)),this.onWindowResize()},maxRows:function(){this.eventBus.$emit("setMaxRows",this.maxRows)},margin:function(){this.updateHeight()}},methods:{layoutUpdate:function(){if(void 0!==this.layout&&null!==this.originalLayout){if(this.layout.length!==this.originalLayout.length){var t=this.findDifference(this.layout,this.originalLayout);t.length>0&&(this.layout.length>this.originalLayout.length?this.originalLayout=this.originalLayout.concat(t):this.originalLayout=this.originalLayout.filter((function(e){return!t.some((function(t){return e.i===t.i}))}))),this.lastLayoutLength=this.layout.length,this.initResponsiveFeatures()}Object(s.c)(this.layout,this.verticalCompact),this.eventBus.$emit("updateWidth",this.width),this.updateHeight(),this.$emit("layout-updated",this.layout)}},updateHeight:function(){this.mergedStyle={height:this.containerHeight()}},onWindowResize:function(){null!==this.$refs&&null!==this.$refs.item&&void 0!==this.$refs.item&&(this.width=this.$refs.item.offsetWidth),this.eventBus.$emit("resizeEvent")},containerHeight:function(){if(this.autoSize)return Object(s.a)(this.layout)*(this.rowHeight+this.margin[1])+this.margin[1]+"px"},dragEvent:function(t,e,n,r,i,o){var a=Object(s.f)(this.layout,e);null==a&&(a={x:0,y:0}),"dragmove"===t||"dragstart"===t?(this.placeholder.i=e,this.placeholder.x=a.x,this.placeholder.y=a.y,this.placeholder.w=o,this.placeholder.h=i,this.$nextTick((function(){this.isDragging=!0})),this.eventBus.$emit("updateWidth",this.width)):this.$nextTick((function(){this.isDragging=!1})),this.layout=Object(s.g)(this.layout,a,n,r,!0,this.preventCollision),Object(s.c)(this.layout,this.verticalCompact),this.eventBus.$emit("compact"),this.updateHeight(),"dragend"===t&&this.$emit("layout-updated",this.layout)},resizeEvent:function(t,e,n,r,i,o){var a,c=Object(s.f)(this.layout,e);if(null==c&&(c={h:0,w:0}),this.preventCollision){var l=Object(s.e)(this.layout,h(h({},c),{},{w:o,h:i})).filter((function(t){return t.i!==c.i}));if(a=l.length>0){var u=1/0,p=1/0;l.forEach((function(t){t.x>c.x&&(u=Math.min(u,t.x)),t.y>c.y&&(p=Math.min(p,t.y))})),Number.isFinite(u)&&(c.w=u-c.x),Number.isFinite(p)&&(c.h=p-c.y)}}a||(c.w=o,c.h=i),"resizestart"===t||"resizemove"===t?(this.placeholder.i=e,this.placeholder.x=n,this.placeholder.y=r,this.placeholder.w=c.w,this.placeholder.h=c.h,this.$nextTick((function(){this.isDragging=!0})),this.eventBus.$emit("updateWidth",this.width)):this.$nextTick((function(){this.isDragging=!1})),this.responsive&&this.responsiveGridLayout(),Object(s.c)(this.layout,this.verticalCompact),this.eventBus.$emit("compact"),this.updateHeight(),"resizeend"===t&&this.$emit("layout-updated",this.layout)},responsiveGridLayout:function(){var t=Object(a.b)(this.breakpoints,this.width),e=Object(a.c)(t,this.cols);null==this.lastBreakpoint||this.layouts[this.lastBreakpoint]||(this.layouts[this.lastBreakpoint]=Object(s.b)(this.layout));var n=Object(a.a)(this.originalLayout,this.layouts,this.breakpoints,t,this.lastBreakpoint,e,this.verticalCompact);this.layouts[t]=n,this.lastBreakpoint!==t&&this.$emit("breakpoint-changed",t,n),this.$emit("update:layout",n),this.lastBreakpoint=t,this.eventBus.$emit("setColNum",Object(a.c)(t,this.cols))},initResponsiveFeatures:function(){this.layouts=Object.assign({},this.responsiveLayouts)},findDifference:function(t,e){var n=t.filter((function(t){return!e.some((function(e){return t.i===e.i}))})),r=e.filter((function(e){return!t.some((function(t){return e.i===t.i}))}));return n.concat(r)}}},f=(n("e279"),n("2877")),g=Object(f.a)(d,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{ref:"item",staticClass:"vue-grid-layout",style:t.mergedStyle},[t._t("default"),n("grid-item",{directives:[{name:"show",rawName:"v-show",value:t.isDragging,expression:"isDragging"}],staticClass:"vue-grid-placeholder",attrs:{x:t.placeholder.x,y:t.placeholder.y,w:t.placeholder.w,h:t.placeholder.h,i:t.placeholder.i}})],2)}),[],!1,null,null,null);e.a=g.exports},"38fd":function(t,e,n){var r=n("69a8"),i=n("4bf8"),o=n("613b")("IE_PROTO"),s=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=i(t),r(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?s:null}},"41a0":function(t,e,n){"use strict";var r=n("2aeb"),i=n("4630"),o=n("7f20"),s={};n("32e9")(s,n("2b4c")("iterator"),(function(){return this})),t.exports=function(t,e,n){t.prototype=r(s,{next:i(1,n)}),o(t,e+" Iterator")}},"456d":function(t,e,n){var r=n("4bf8"),i=n("0d58");n("5eda")("keys",(function(){return function(t){return i(r(t))}}))},4588:function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},4630:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},4917:function(t,e,n){"use strict";var r=n("cb7c"),i=n("9def"),o=n("0390"),s=n("5f1b");n("214f")("match",1,(function(t,e,n,a){return[function(n){var r=t(this),i=null==n?void 0:n[e];return void 0!==i?i.call(n,r):new RegExp(n)[e](String(r))},function(t){var e=a(n,t,this);if(e.done)return e.value;var c=r(t),l=String(this);if(!c.global)return s(c,l);var u=c.unicode;c.lastIndex=0;for(var h,p=[],d=0;null!==(h=s(c,l));){var f=String(h[0]);p[d]=f,""===f&&(c.lastIndex=o(l,i(c.lastIndex),u)),d++}return 0===d?null:p}]}))},"499e":function(t,e,n){"use strict";function r(t,e){for(var n=[],r={},i=0;i<e.length;i++){var o=e[i],s=o[0],a={id:t+":"+i,css:o[1],media:o[2],sourceMap:o[3]};r[s]?r[s].parts.push(a):n.push(r[s]={id:s,parts:[a]})}return n}n.r(e),n.d(e,"default",(function(){return f}));var i="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!i)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var o={},s=i&&(document.head||document.getElementsByTagName("head")[0]),a=null,c=0,l=!1,u=function(){},h=null,p="data-vue-ssr-id",d="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function f(t,e,n,i){l=n,h=i||{};var s=r(t,e);return g(s),function(e){for(var n=[],i=0;i<s.length;i++){var a=s[i];(c=o[a.id]).refs--,n.push(c)}for(e?g(s=r(t,e)):s=[],i=0;i<n.length;i++){var c;if(0===(c=n[i]).refs){for(var l=0;l<c.parts.length;l++)c.parts[l]();delete o[c.id]}}}}function g(t){for(var e=0;e<t.length;e++){var n=t[e],r=o[n.id];if(r){r.refs++;for(var i=0;i<r.parts.length;i++)r.parts[i](n.parts[i]);for(;i<n.parts.length;i++)r.parts.push(m(n.parts[i]));r.parts.length>n.parts.length&&(r.parts.length=n.parts.length)}else{var s=[];for(i=0;i<n.parts.length;i++)s.push(m(n.parts[i]));o[n.id]={id:n.id,refs:1,parts:s}}}}function v(){var t=document.createElement("style");return t.type="text/css",s.appendChild(t),t}function m(t){var e,n,r=document.querySelector("style["+p+'~="'+t.id+'"]');if(r){if(l)return u;r.parentNode.removeChild(r)}if(d){var i=c++;r=a||(a=v()),e=w.bind(null,r,i,!1),n=w.bind(null,r,i,!0)}else r=v(),e=x.bind(null,r),n=function(){r.parentNode.removeChild(r)};return e(t),function(r){if(r){if(r.css===t.css&&r.media===t.media&&r.sourceMap===t.sourceMap)return;e(t=r)}else n()}}var y,b=(y=[],function(t,e){return y[t]=e,y.filter(Boolean).join("\n")});function w(t,e,n,r){var i=n?"":r.css;if(t.styleSheet)t.styleSheet.cssText=b(e,i);else{var o=document.createTextNode(i),s=t.childNodes;s[e]&&t.removeChild(s[e]),s.length?t.insertBefore(o,s[e]):t.appendChild(o)}}function x(t,e){var n=e.css,r=e.media,i=e.sourceMap;if(r&&t.setAttribute("media",r),h.ssrId&&t.setAttribute(p,e.id),i&&(n+="\n/*# sourceURL="+i.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */"),t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}},"49ad":function(t,e,n){"use strict";t.exports=function(t){var e={};function n(n){var r=t.get(n);return void 0===r?[]:e[r]||[]}return{get:n,add:function(n,r){var i=t.get(n);e[i]||(e[i]=[]),e[i].push(r)},removeListener:function(t,e){for(var r=n(t),i=0,o=r.length;i<o;++i)if(r[i]===e){r.splice(i,1);break}},removeAllListeners:function(t){var e=n(t);e&&(e.length=0)}}}},"4bf8":function(t,e,n){var r=n("be13");t.exports=function(t){return Object(r(t))}},5058:function(t,e,n){"use strict";t.exports=function(t){var e=t.idGenerator,n=t.stateHandler.getState;return{get:function(t){var e=n(t);return e&&void 0!==e.id?e.id:null},set:function(t){var r=n(t);if(!r)throw new Error("setId required the element to have a resize detection state.");var i=e.generate();return r.id=i,i}}}},"50bf":function(t,e,n){"use strict";(t.exports={}).getOption=function(t,e,n){var r=t[e];return null==r&&void 0!==n?n:r}},"520a":function(t,e,n){"use strict";var r,i,o=n("0bfb"),s=RegExp.prototype.exec,a=String.prototype.replace,c=s,l=(r=/a/,i=/b*/g,s.call(r,"a"),s.call(i,"a"),0!==r.lastIndex||0!==i.lastIndex),u=void 0!==/()??/.exec("")[1];(l||u)&&(c=function(t){var e,n,r,i,c=this;return u&&(n=new RegExp("^"+c.source+"$(?!\\s)",o.call(c))),l&&(e=c.lastIndex),r=s.call(c,t),l&&r&&(c.lastIndex=c.global?r.index+r[0].length:e),u&&r&&r.length>1&&a.call(r[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(r[i]=void 0)})),r}),t.exports=c},"52a7":function(t,e){e.f={}.propertyIsEnumerable},5537:function(t,e,n){var r=n("8378"),i=n("7726"),o="__core-js_shared__",s=i[o]||(i[o]={});(t.exports=function(t,e){return s[t]||(s[t]=void 0!==e?e:{})})("versions",[]).push({version:r.version,mode:n("2d00")?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},"55dd":function(t,e,n){"use strict";var r=n("5ca1"),i=n("d8e8"),o=n("4bf8"),s=n("79e5"),a=[].sort,c=[1,2,3];r(r.P+r.F*(s((function(){c.sort(void 0)}))||!s((function(){c.sort(null)}))||!n("2f21")(a)),"Array",{sort:function(t){return void 0===t?a.call(o(this)):a.call(o(this),i(t))}})},"5be5":function(t,e,n){"use strict";t.exports=function(t){var e=t.stateHandler.getState;return{isDetectable:function(t){var n=e(t);return n&&!!n.isDetectable},markAsDetectable:function(t){e(t).isDetectable=!0},isBusy:function(t){return!!e(t).busy},markBusy:function(t,n){e(t).busy=!!n}}}},"5ca1":function(t,e,n){var r=n("7726"),i=n("8378"),o=n("32e9"),s=n("2aba"),a=n("9b43"),c=function(t,e,n){var l,u,h,p,d=t&c.F,f=t&c.G,g=t&c.S,v=t&c.P,m=t&c.B,y=f?r:g?r[e]||(r[e]={}):(r[e]||{}).prototype,b=f?i:i[e]||(i[e]={}),w=b.prototype||(b.prototype={});for(l in f&&(n=e),n)h=((u=!d&&y&&void 0!==y[l])?y:n)[l],p=m&&u?a(h,r):v&&"function"==typeof h?a(Function.call,h):h,y&&s(y,l,h,t&c.U),b[l]!=h&&o(b,l,p),v&&w[l]!=h&&(w[l]=h)};r.core=i,c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},"5dbc":function(t,e,n){var r=n("d3f4"),i=n("8b97").set;t.exports=function(t,e,n){var o,s=e.constructor;return s!==n&&"function"==typeof s&&(o=s.prototype)!==n.prototype&&r(o)&&i&&i(t,o),t}},"5ed4":function(t,e,n){"use strict";n("6e21")},"5eda":function(t,e,n){var r=n("5ca1"),i=n("8378"),o=n("79e5");t.exports=function(t,e){var n=(i.Object||{})[t]||Object[t],s={};s[t]=e(n),r(r.S+r.F*o((function(){n(1)})),"Object",s)}},"5f1b":function(t,e,n){"use strict";var r=n("23c6"),i=RegExp.prototype.exec;t.exports=function(t,e){var n=t.exec;if("function"==typeof n){var o=n.call(t,e);if("object"!=typeof o)throw new TypeError("RegExp exec method returned something other than an Object or null");return o}if("RegExp"!==r(t))throw new TypeError("RegExp#exec called on incompatible receiver");return i.call(t,e)}},"613b":function(t,e,n){var r=n("5537")("keys"),i=n("ca5a");t.exports=function(t){return r[t]||(r[t]=i(t))}},"626a":function(t,e,n){var r=n("2d95");t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},6821:function(t,e,n){var r=n("626a"),i=n("be13");t.exports=function(t){return r(i(t))}},"69a8":function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},"6a99":function(t,e,n){var r=n("d3f4");t.exports=function(t,e){if(!r(t))return t;var n,i;if(e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;if("function"==typeof(n=t.valueOf)&&!r(i=n.call(t)))return i;if(!e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},"6e21":function(t,e,n){var r=n("9cbe");"string"==typeof r&&(r=[[t.i,r,""]]),r.locals&&(t.exports=r.locals),(0,n("499e").default)("3cbd0c21",r,!0,{sourceMap:!1,shadowMode:!1})},7333:function(t,e,n){"use strict";var r=n("9e1e"),i=n("0d58"),o=n("2621"),s=n("52a7"),a=n("4bf8"),c=n("626a"),l=Object.assign;t.exports=!l||n("79e5")((function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach((function(t){e[t]=t})),7!=l({},t)[n]||Object.keys(l({},e)).join("")!=r}))?function(t,e){for(var n=a(t),l=arguments.length,u=1,h=o.f,p=s.f;l>u;)for(var d,f=c(arguments[u++]),g=h?i(f).concat(h(f)):i(f),v=g.length,m=0;v>m;)d=g[m++],r&&!p.call(f,d)||(n[d]=f[d]);return n}:l},7726:function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},"77f1":function(t,e,n){var r=n("4588"),i=Math.max,o=Math.min;t.exports=function(t,e){return(t=r(t))<0?i(t+e,0):o(t,e)}},"79e5":function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},"7f20":function(t,e,n){var r=n("86cc").f,i=n("69a8"),o=n("2b4c")("toStringTag");t.exports=function(t,e,n){t&&!i(t=n?t:t.prototype,o)&&r(t,o,{configurable:!0,value:e})}},"7f7f":function(t,e,n){var r=n("86cc").f,i=Function.prototype,o=/^\s*function ([^ (]*)/,s="name";s in i||n("9e1e")&&r(i,s,{configurable:!0,get:function(){try{return(""+this).match(o)[1]}catch(t){return""}}})},8378:function(t,e){var n=t.exports={version:"2.6.12"};"number"==typeof __e&&(__e=n)},"84f2":function(t,e){t.exports={}},"86cc":function(t,e,n){var r=n("cb7c"),i=n("c69a"),o=n("6a99"),s=Object.defineProperty;e.f=n("9e1e")?Object.defineProperty:function(t,e,n){if(r(t),e=o(e,!0),r(n),i)try{return s(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},"8b97":function(t,e,n){var r=n("d3f4"),i=n("cb7c"),o=function(t,e){if(i(t),!r(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,r){try{(r=n("9b43")(Function.call,n("11e9").f(Object.prototype,"__proto__").set,2))(t,[]),e=!(t instanceof Array)}catch(t){e=!0}return function(t,n){return o(t,n),e?t.__proto__=n:r(t,n),t}}({},!1):void 0),check:o}},"8bbf":function(t,e){t.exports=n(144)},"8e6e":function(t,e,n){var r=n("5ca1"),i=n("990b"),o=n("6821"),s=n("11e9"),a=n("f1ae");r(r.S,"Object",{getOwnPropertyDescriptors:function(t){for(var e,n,r=o(t),c=s.f,l=i(r),u={},h=0;l.length>h;)void 0!==(n=c(r,e=l[h++]))&&a(u,e,n);return u}})},9093:function(t,e,n){var r=n("ce10"),i=n("e11e").concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,i)}},"97a7":function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return s})),n("55dd"),n("ac6a"),n("cadf"),n("456d");var r=n("a2b6");function i(t,e){for(var n=a(t),r=n[0],i=1,o=n.length;i<o;i++){var s=n[i];e>t[s]&&(r=s)}return r}function o(t,e){if(!e[t])throw new Error("ResponsiveGridLayout: `cols` entry for breakpoint "+t+" is missing!");return e[t]}function s(t,e,n,i,o,s,c){if(e[i])return Object(r.b)(e[i]);for(var l=t,u=a(n),h=u.slice(u.indexOf(i)),p=0,d=h.length;p<d;p++){var f=h[p];if(e[f]){l=e[f];break}}return l=Object(r.b)(l||[]),Object(r.c)(Object(r.d)(l,{cols:s}),c)}function a(t){return Object.keys(t).sort((function(e,n){return t[e]-t[n]}))}},"990b":function(t,e,n){var r=n("9093"),i=n("2621"),o=n("cb7c"),s=n("7726").Reflect;t.exports=s&&s.ownKeys||function(t){var e=r.f(o(t)),n=i.f;return n?e.concat(n(t)):e}},"9b43":function(t,e,n){var r=n("d8e8");t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,i){return t.call(e,n,r,i)}}return function(){return t.apply(e,arguments)}}},"9c6c":function(t,e,n){var r=n("2b4c")("unscopables"),i=Array.prototype;null==i[r]&&n("32e9")(i,r,{}),t.exports=function(t){i[r][t]=!0}},"9cbe":function(t,e,n){(t.exports=n("2350")(!1)).push([t.i,'.vue-grid-item{-webkit-transition:all .2s ease;transition:all .2s ease;-webkit-transition-property:left,top,right;transition-property:left,top,right}.vue-grid-item.no-touch{-ms-touch-action:none;touch-action:none}.vue-grid-item.cssTransforms{-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;transition-property:transform;transition-property:transform,-webkit-transform;left:0;right:auto}.vue-grid-item.cssTransforms.render-rtl{left:auto;right:0}.vue-grid-item.resizing{opacity:.6;z-index:3}.vue-grid-item.vue-draggable-dragging{-webkit-transition:none;transition:none;z-index:3}.vue-grid-item.vue-grid-placeholder{background:red;opacity:.2;-webkit-transition-duration:.1s;transition-duration:.1s;z-index:2;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none}.vue-grid-item>.vue-resizable-handle{position:absolute;width:20px;height:20px;bottom:0;right:0;background:url("data:image/svg+xml;base64,PHN2ZyBzdHlsZT0iYmFja2dyb3VuZC1jb2xvcjojZmZmZmZmMDAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjYiIGhlaWdodD0iNiI+PHBhdGggZD0iTTYgNkgwVjQuMmg0LjJWMEg2djZ6IiBvcGFjaXR5PSIuMzAyIi8+PC9zdmc+");background-position:100% 100%;padding:0 3px 3px 0;background-repeat:no-repeat;background-origin:content-box;-webkit-box-sizing:border-box;box-sizing:border-box;cursor:se-resize}.vue-grid-item>.vue-rtl-resizable-handle{bottom:0;left:0;background:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAiIGhlaWdodD0iMTAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZmlsbD0ibm9uZSIgZD0iTS0xLTFoMTJ2MTJILTF6Ii8+PGc+PHBhdGggc3Ryb2tlLWxpbmVjYXA9InVuZGVmaW5lZCIgc3Ryb2tlLWxpbmVqb2luPSJ1bmRlZmluZWQiIHN0cm9rZS13aWR0aD0iMS41IiBzdHJva2U9IiMwMDAiIGZpbGw9Im5vbmUiIGQ9Ik0xNDQuODIxLTM4LjM5M2wtMjAuMzU3LTMxLjc4NSIvPjxwYXRoIHN0cm9rZT0iIzY2NiIgc3Ryb2tlLWxpbmVjYXA9InVuZGVmaW5lZCIgc3Ryb2tlLWxpbmVqb2luPSJ1bmRlZmluZWQiIHN0cm9rZS13aWR0aD0iMiIgZmlsbD0ibm9uZSIgZD0iTS45NDctLjAxOHY5LjEyNU0tLjY1NiA5aDEwLjczIi8+PC9nPjwvc3ZnPg==);background-position:0 100%;padding-left:3px;background-repeat:no-repeat;background-origin:content-box;cursor:sw-resize;right:auto}.vue-grid-item.disable-userselect{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}',""])},"9def":function(t,e,n){var r=n("4588"),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},"9e1e":function(t,e,n){t.exports=!n("79e5")((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},a2b6:function(t,e,n){"use strict";function r(t){for(var e,n=0,r=0,i=t.length;r<i;r++)(e=t[r].y+t[r].h)>n&&(n=e);return n}function i(t){for(var e,n=Array(t.length),r=0,i=t.length;r<i;r++)n[r]=(e=t[r],JSON.parse(JSON.stringify(e)));return n}function o(t,e){return!(t===e||t.x+t.w<=e.x||t.x>=e.x+e.w||t.y+t.h<=e.y||t.y>=e.y+e.h)}function s(t,e){for(var n=p(t),r=b(t),i=Array(t.length),o=0,s=r.length;o<s;o++){var c=r[o];c.static||(c=a(n,c,e),n.push(c)),i[t.indexOf(c)]=c,c.moved=!1}return i}function a(t,e,n){if(n)for(;e.y>0&&!u(t,e);)e.y--;for(var r;r=u(t,e);)e.y=r.y+r.h;return e}function c(t,e){for(var n=p(t),r=0,i=t.length;r<i;r++){var o=t[r];if(o.x+o.w>e.cols&&(o.x=e.cols-o.w),o.x<0&&(o.x=0,o.w=e.cols),o.static)for(;u(n,o);)o.y++;else n.push(o)}return t}function l(t,e){for(var n=0,r=t.length;n<r;n++)if(t[n].i===e)return t[n]}function u(t,e){for(var n=0,r=t.length;n<r;n++)if(o(t[n],e))return t[n]}function h(t,e){return t.filter((function(t){return o(t,e)}))}function p(t){return t.filter((function(t){return t.static}))}function d(t,e,n,r,i,o){if(e.static)return t;var s=e.x,a=e.y,c=r&&e.y>r;"number"==typeof n&&(e.x=n),"number"==typeof r&&(e.y=r),e.moved=!0;var l=b(t);c&&(l=l.reverse());var u=h(l,e);if(o&&u.length)return e.x=s,e.y=a,e.moved=!1,t;for(var p=0,d=u.length;p<d;p++){var g=u[p];g.moved||e.y>g.y&&e.y-g.y>g.h/4||(t=g.static?f(t,g,e,i):f(t,e,g,i))}return t}function f(t,e,n,r){if(r){var i={x:n.x,y:n.y,w:n.w,h:n.h,i:"-1"};if(i.y=Math.max(e.y-n.h,0),!u(t,i))return d(t,n,void 0,i.y,!1)}return d(t,n,void 0,n.y+1,!1)}function g(t,e,n,r){var i="translate3d("+e+"px,"+t+"px, 0)";return{transform:i,WebkitTransform:i,MozTransform:i,msTransform:i,OTransform:i,width:n+"px",height:r+"px",position:"absolute"}}function v(t,e,n,r){var i="translate3d("+-1*e+"px,"+t+"px, 0)";return{transform:i,WebkitTransform:i,MozTransform:i,msTransform:i,OTransform:i,width:n+"px",height:r+"px",position:"absolute"}}function m(t,e,n,r){return{top:t+"px",left:e+"px",width:n+"px",height:r+"px",position:"absolute"}}function y(t,e,n,r){return{top:t+"px",right:e+"px",width:n+"px",height:r+"px",position:"absolute"}}function b(t){return[].concat(t).sort((function(t,e){return t.y===e.y&&t.x===e.x?0:t.y>e.y||t.y===e.y&&t.x>e.x?1:-1}))}function w(t,e){e=e||"Layout";var n=["x","y","w","h"];if(!Array.isArray(t))throw new Error(e+" must be an array!");for(var r=0,i=t.length;r<i;r++){for(var o=t[r],s=0;s<n.length;s++)if("number"!=typeof o[n[s]])throw new Error("VueGridLayout: "+e+"["+r+"]."+n[s]+" must be a number!");if(o.i&&o.i,void 0!==o.static&&"boolean"!=typeof o.static)throw new Error("VueGridLayout: "+e+"["+r+"].static must be a boolean!")}}n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return s})),n.d(e,"d",(function(){return c})),n.d(e,"f",(function(){return l})),n.d(e,"e",(function(){return h})),n.d(e,"g",(function(){return d})),n.d(e,"j",(function(){return g})),n.d(e,"k",(function(){return v})),n.d(e,"h",(function(){return m})),n.d(e,"i",(function(){return y})),n.d(e,"l",(function(){return w})),n("a481"),n("cadf"),n("456d"),n("ac6a"),n("55dd")},a481:function(t,e,n){"use strict";var r=n("cb7c"),i=n("4bf8"),o=n("9def"),s=n("4588"),a=n("0390"),c=n("5f1b"),l=Math.max,u=Math.min,h=Math.floor,p=/\$([$&`']|\d\d?|<[^>]*>)/g,d=/\$([$&`']|\d\d?)/g;n("214f")("replace",2,(function(t,e,n,f){return[function(r,i){var o=t(this),s=null==r?void 0:r[e];return void 0!==s?s.call(r,o,i):n.call(String(o),r,i)},function(t,e){var i=f(n,t,this,e);if(i.done)return i.value;var h=r(t),p=String(this),d="function"==typeof e;d||(e=String(e));var v=h.global;if(v){var m=h.unicode;h.lastIndex=0}for(var y=[];;){var b=c(h,p);if(null===b)break;if(y.push(b),!v)break;""===String(b[0])&&(h.lastIndex=a(p,o(h.lastIndex),m))}for(var w,x="",_=0,k=0;k<y.length;k++){b=y[k];for(var C=String(b[0]),S=l(u(s(b.index),p.length),0),A=[],E=1;E<b.length;E++)A.push(void 0===(w=b[E])?w:String(w));var O=b.groups;if(d){var T=[C].concat(A,S,p);void 0!==O&&T.push(O);var P=String(e.apply(void 0,T))}else P=g(C,p,S,A,O,e);S>=_&&(x+=p.slice(_,S)+P,_=S+C.length)}return x+p.slice(_)}];function g(t,e,r,o,s,a){var c=r+t.length,l=o.length,u=d;return void 0!==s&&(s=i(s),u=p),n.call(a,u,(function(n,i){var a;switch(i.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,r);case"'":return e.slice(c);case"<":a=s[i.slice(1,-1)];break;default:var u=+i;if(0===u)return n;if(u>l){var p=h(u/10);return 0===p?n:p<=l?void 0===o[p-1]?i.charAt(1):o[p-1]+i.charAt(1):n}a=o[u-1]}return void 0===a?"":a}))}}))},aa77:function(t,e,n){var r=n("5ca1"),i=n("be13"),o=n("79e5"),s=n("fdef"),a="["+s+"]",c=RegExp("^"+a+a+"*"),l=RegExp(a+a+"*$"),u=function(t,e,n){var i={},a=o((function(){return!!s[t]()||"
"!="
"[t]()})),c=i[t]=a?e(h):s[t];n&&(i[n]=c),r(r.P+r.F*a,"String",i)},h=u.trim=function(t,e){return t=String(i(t)),1&e&&(t=t.replace(c,"")),2&e&&(t=t.replace(l,"")),t};t.exports=u},abb4:function(t,e,n){"use strict";t.exports=function(t){function e(){}var n={log:e,warn:e,error:e};if(!t&&window.console){var r=function(t,e){t[e]=function(){var t=console[e];if(t.apply)t.apply(console,arguments);else for(var n=0;n<arguments.length;n++)t(arguments[n])}};r(n,"log"),r(n,"warn"),r(n,"error")}return n}},ac6a:function(t,e,n){for(var r=n("cadf"),i=n("0d58"),o=n("2aba"),s=n("7726"),a=n("32e9"),c=n("84f2"),l=n("2b4c"),u=l("iterator"),h=l("toStringTag"),p=c.Array,d={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},f=i(d),g=0;g<f.length;g++){var v,m=f[g],y=d[m],b=s[m],w=b&&b.prototype;if(w&&(w[u]||a(w,u,p),w[h]||a(w,h,m),c[m]=p,y))for(v in r)w[v]||o(w,v,r[v],!0)}},ad20:function(t,e,n){(t.exports=n("2350")(!1)).push([t.i,".vue-grid-layout{position:relative;-webkit-transition:height .2s ease;transition:height .2s ease}",""])},b0c5:function(t,e,n){"use strict";var r=n("520a");n("5ca1")({target:"RegExp",proto:!0,forced:r!==/./.exec},{exec:r})},b770:function(t,e,n){"use strict";(t.exports={}).forEach=function(t,e){for(var n=0;n<t.length;n++){var r=e(t[n]);if(r)return r}}},bc21:function(t,e,n){"use strict";var r={};n.r(r),n.d(r,"edgeTarget",(function(){return ve})),n.d(r,"elements",(function(){return me})),n.d(r,"grid",(function(){return ye})),n("a481"),n("4917"),n("c5f6");var i=n("a2b6");function o(t){return n=(e=t).target.offsetParent||document.body,r=e.offsetParent===document.body?{left:0,top:0}:n.getBoundingClientRect(),{x:e.clientX+n.scrollLeft-r.left,y:e.clientY+n.scrollTop-r.top};var e,n,r}function s(t,e,n,r){var i;return"number"!=typeof(i=t)||isNaN(i)?{deltaX:0,deltaY:0,lastX:n,lastY:r,x:n,y:r}:{deltaX:n-t,deltaY:r-e,lastX:t,lastY:e,x:n,y:r}}var a=n("97a7"),c=n("1ca7");const l={init:function(t){const e=t;l.document=e.document,l.DocumentFragment=e.DocumentFragment||u,l.SVGElement=e.SVGElement||u,l.SVGSVGElement=e.SVGSVGElement||u,l.SVGElementInstance=e.SVGElementInstance||u,l.Element=e.Element||u,l.HTMLElement=e.HTMLElement||l.Element,l.Event=e.Event,l.Touch=e.Touch||u,l.PointerEvent=e.PointerEvent||e.MSPointerEvent},document:null,DocumentFragment:null,SVGElement:null,SVGSVGElement:null,SVGElementInstance:null,Element:null,HTMLElement:null,Event:null,Touch:null,PointerEvent:null};function u(){}var h=l,p=t=>!(!t||!t.Window)&&t instanceof t.Window;let d,f;function g(t){d=t;const e=t.document.createTextNode("");e.ownerDocument!==t.document&&"function"==typeof t.wrap&&t.wrap(e)===e&&(t=t.wrap(t)),f=t}function v(t){return p(t)?t:(t.ownerDocument||t).defaultView||f.window}"undefined"!=typeof window&&window&&g(window);const m=t=>!!t&&"object"==typeof t,y=t=>"function"==typeof t;var b=t=>m(t)&&11===t.nodeType,w=m,x=y,_=t=>"number"==typeof t,k=t=>"boolean"==typeof t,C=t=>"string"==typeof t,S=t=>{if(!t||"object"!=typeof t)return!1;const e=v(t)||f;return/object|function/.test(typeof e.Element)?t instanceof e.Element:1===t.nodeType&&"string"==typeof t.nodeName},A=t=>m(t)&&!!t.constructor&&/function Object\b/.test(t.constructor.toString()),E=t=>m(t)&&void 0!==t.length&&y(t.splice);const O={init:function(t){const e=h.Element,n=f.navigator;O.supportsTouch="ontouchstart"in t||x(t.DocumentTouch)&&h.document instanceof t.DocumentTouch,O.supportsPointerEvent=!1!==n.pointerEnabled&&!!h.PointerEvent,O.isIOS=/iP(hone|od|ad)/.test(n.platform),O.isIOS7=/iP(hone|od|ad)/.test(n.platform)&&/OS 7[^\d]/.test(n.appVersion),O.isIe9=/MSIE 9/.test(n.userAgent),O.isOperaMobile="Opera"===n.appName&&O.supportsTouch&&/Presto/.test(n.userAgent),O.prefixedMatchesSelector="matches"in e.prototype?"matches":"webkitMatchesSelector"in e.prototype?"webkitMatchesSelector":"mozMatchesSelector"in e.prototype?"mozMatchesSelector":"oMatchesSelector"in e.prototype?"oMatchesSelector":"msMatchesSelector",O.pEventTypes=O.supportsPointerEvent?h.PointerEvent===t.MSPointerEvent?{up:"MSPointerUp",down:"MSPointerDown",over:"mouseover",out:"mouseout",move:"MSPointerMove",cancel:"MSPointerCancel"}:{up:"pointerup",down:"pointerdown",over:"pointerover",out:"pointerout",move:"pointermove",cancel:"pointercancel"}:null,O.wheelEvent="onmousewheel"in h.document?"mousewheel":"wheel"},supportsTouch:null,supportsPointerEvent:null,isIOS7:null,isIOS:null,isIe9:null,isOperaMobile:null,prefixedMatchesSelector:null,pEventTypes:null,wheelEvent:null};var T=O;const P=(t,e)=>{for(const n of e)t.push(n);return t},I=t=>P([],t),R=(t,e)=>{for(let n=0;n<t.length;n++)if(e(t[n],n,t))return n;return-1},M=(t,e)=>t[R(t,e)];function N(t){const e={};for(const n in t){const r=t[n];A(r)?e[n]=N(r):E(r)?e[n]=I(r):e[n]=r}return e}function D(t,e){for(const n in e)t[n]=e[n];return t}let j,L,z=0;var $=function(t){if(j=t.requestAnimationFrame,L=t.cancelAnimationFrame,!j){const e=["ms","moz","webkit","o"];for(const n of e)j=t[`${n}RequestAnimationFrame`],L=t[`${n}CancelAnimationFrame`]||t[`${n}CancelRequestAnimationFrame`]}j=j&&j.bind(t),L=L&&L.bind(t),j||(j=e=>{const n=Date.now(),r=Math.max(0,16-(n-z)),i=t.setTimeout((()=>{e(n+r)}),r);return z=n+r,i},L=t=>clearTimeout(t))};function B(t,e,n){if(n=n||{},C(t)&&-1!==t.search(" ")&&(t=H(t)),E(t))return t.reduce(((t,r)=>D(t,B(r,e,n))),n);if(w(t)&&(e=t,t=""),x(e))n[t]=n[t]||[],n[t].push(e);else if(E(e))for(const r of e)B(t,r,n);else if(w(e))for(const r in e)B(H(r).map((e=>`${t}${e}`)),e[r],n);return n}function H(t){return t.trim().split(/ +/)}function U(t,e){for(const n of e){if(t.immediatePropagationStopped)break;n(t)}}class F{constructor(t){this.options=void 0,this.types={},this.propagationStopped=!1,this.immediatePropagationStopped=!1,this.global=void 0,this.options=D({},t||{})}fire(t){let e;const n=this.global;(e=this.types[t.type])&&U(t,e),!t.propagationStopped&&n&&(e=n[t.type])&&U(t,e)}on(t,e){const n=B(t,e);for(t in n)this.types[t]=P(this.types[t]||[],n[t])}off(t,e){const n=B(t,e);for(t in n){const e=this.types[t];if(e&&e.length)for(const r of n[t]){const t=e.indexOf(r);-1!==t&&e.splice(t,1)}}}getRect(t){return null}}function q(t,e){if(t.contains)return t.contains(e);for(;e;){if(e===t)return!0;e=e.parentNode}return!1}function W(t,e){for(;S(t);){if(Y(t,e))return t;t=V(t)}return null}function V(t){let e=t.parentNode;if(b(e)){for(;(e=e.host)&&b(e););return e}return e}function Y(t,e){return f!==d&&(e=e.replace(/\/deep\//g," ")),t[T.prefixedMatchesSelector](e)}function X(t,e,n){for(;S(t);){if(Y(t,e))return!0;if((t=V(t))===n)return Y(t,e)}return!1}function J(t){return t.correspondingUseElement||t}function G(t){const e=t instanceof h.SVGElement?t.getBoundingClientRect():t.getClientRects()[0];return e&&{left:e.left,right:e.right,top:e.top,bottom:e.bottom,width:e.width||e.right-e.left,height:e.height||e.bottom-e.top}}function K(t){const e=G(t);if(!T.isIOS7&&e){const r={x:(n=(n=v(t))||f).scrollX||n.document.documentElement.scrollLeft,y:n.scrollY||n.document.documentElement.scrollTop};e.left+=r.x,e.right+=r.x,e.top+=r.y,e.bottom+=r.y}var n;return e}function Z(t){return!!C(t)&&(h.document.querySelector(t),!0)}function Q(t,e,n,r){let i=t;return C(i)?i=function(t,e,n){return"parent"===t?V(n):"self"===t?e.getRect(n):W(n,t)}(i,e,n):x(i)&&(i=i(...r)),S(i)&&(i=K(i)),i}function tt(t){return t&&{x:"x"in t?t.x:t.left,y:"y"in t?t.y:t.top}}function et(t){return!t||"x"in t&&"y"in t||((t=D({},t)).x=t.left||0,t.y=t.top||0,t.width=t.width||(t.right||0)-t.x,t.height=t.height||(t.bottom||0)-t.y),t}function nt(t,e,n){t.left&&(e.left+=n.x),t.right&&(e.right+=n.x),t.top&&(e.top+=n.y),t.bottom&&(e.bottom+=n.y),e.width=e.right-e.left,e.height=e.bottom-e.top}var rt=function(t,e,n){const r=t.options[n];return tt(Q(r&&r.origin||t.options.origin,t,e,[t&&e]))||{x:0,y:0}},it=(t,e)=>Math.sqrt(t*t+e*e);class ot{constructor(t){this.type=void 0,this.target=void 0,this.currentTarget=void 0,this.interactable=void 0,this._interaction=void 0,this.timeStamp=void 0,this.immediatePropagationStopped=!1,this.propagationStopped=!1,this._interaction=t}preventDefault(){}stopPropagation(){this.propagationStopped=!0}stopImmediatePropagation(){this.immediatePropagationStopped=this.propagationStopped=!0}}Object.defineProperty(ot.prototype,"interaction",{get(){return this._interaction._proxy},set(){}});const st={base:{preventDefault:"auto",deltaSource:"page"},perAction:{enabled:!1,origin:{x:0,y:0}},actions:{}};class at extends ot{constructor(t,e,n,r,i,o,s){super(t),this.target=void 0,this.currentTarget=void 0,this.relatedTarget=null,this.screenX=void 0,this.screenY=void 0,this.button=void 0,this.buttons=void 0,this.ctrlKey=void 0,this.shiftKey=void 0,this.altKey=void 0,this.metaKey=void 0,this.page=void 0,this.client=void 0,this.delta=void 0,this.rect=void 0,this.x0=void 0,this.y0=void 0,this.t0=void 0,this.dt=void 0,this.duration=void 0,this.clientX0=void 0,this.clientY0=void 0,this.velocity=void 0,this.speed=void 0,this.swipe=void 0,this.timeStamp=void 0,this.axes=void 0,this.preEnd=void 0,i=i||t.element;const a=t.interactable,c=(a&&a.options||st).deltaSource,l=rt(a,i,n),u="start"===r,h="end"===r,p=u?this:t.prevEvent,d=u?t.coords.start:h?{page:p.page,client:p.client,timeStamp:t.coords.cur.timeStamp}:t.coords.cur;this.page=D({},d.page),this.client=D({},d.client),this.rect=D({},t.rect),this.timeStamp=d.timeStamp,h||(this.page.x-=l.x,this.page.y-=l.y,this.client.x-=l.x,this.client.y-=l.y),this.ctrlKey=e.ctrlKey,this.altKey=e.altKey,this.shiftKey=e.shiftKey,this.metaKey=e.metaKey,this.button=e.button,this.buttons=e.buttons,this.target=i,this.currentTarget=i,this.preEnd=o,this.type=s||n+(r||""),this.interactable=a,this.t0=u?t.pointers[t.pointers.length-1].downTime:p.t0,this.x0=t.coords.start.page.x-l.x,this.y0=t.coords.start.page.y-l.y,this.clientX0=t.coords.start.client.x-l.x,this.clientY0=t.coords.start.client.y-l.y,this.delta=u||h?{x:0,y:0}:{x:this[c].x-p[c].x,y:this[c].y-p[c].y},this.dt=t.coords.delta.timeStamp,this.duration=this.timeStamp-this.t0,this.velocity=D({},t.coords.velocity[c]),this.speed=it(this.velocity.x,this.velocity.y),this.swipe=h||"inertiastart"===r?this.getSwipe():null}getSwipe(){const t=this._interaction;if(t.prevEvent.speed<600||this.timeStamp-t.prevEvent.timeStamp>150)return null;let e=180*Math.atan2(t.prevEvent.velocityY,t.prevEvent.velocityX)/Math.PI;e<0&&(e+=360);const n=112.5<=e&&e<247.5,r=202.5<=e&&e<337.5;return{up:r,down:!r&&22.5<=e&&e<157.5,left:n,right:!n&&(292.5<=e||e<67.5),angle:e,speed:t.prevEvent.speed,velocity:{x:t.prevEvent.velocityX,y:t.prevEvent.velocityY}}}preventDefault(){}stopImmediatePropagation(){this.immediatePropagationStopped=this.propagationStopped=!0}stopPropagation(){this.propagationStopped=!0}}function ct(t,e){if(e.phaselessTypes[t])return!0;for(const n in e.map)if(0===t.indexOf(n)&&t.substr(n.length)in e.phases)return!0;return!1}Object.defineProperties(at.prototype,{pageX:{get(){return this.page.x},set(t){this.page.x=t}},pageY:{get(){return this.page.y},set(t){this.page.y=t}},clientX:{get(){return this.client.x},set(t){this.client.x=t}},clientY:{get(){return this.client.y},set(t){this.client.y=t}},dx:{get(){return this.delta.x},set(t){this.delta.x=t}},dy:{get(){return this.delta.y},set(t){this.delta.y=t}},velocityX:{get(){return this.velocity.x},set(t){this.velocity.x=t}},velocityY:{get(){return this.velocity.y},set(t){this.velocity.y=t}}});class lt{constructor(t){this.list=[],this.selectorMap={},this.scope=void 0,this.scope=t,t.addListeners({"interactable:unset":({interactable:t})=>{const{target:e,_context:n}=t,r=C(e)?this.selectorMap[e]:e[this.scope.id],i=R(r,(t=>t.context===n));r[i]&&(r[i].context=null,r[i].interactable=null),r.splice(i,1)}})}new(t,e){e=D(e||{},{actions:this.scope.actions});const n=new this.scope.Interactable(t,e,this.scope.document,this.scope.events),r={context:n._context,interactable:n};return this.scope.addDocument(n._doc),this.list.push(n),C(t)?(this.selectorMap[t]||(this.selectorMap[t]=[]),this.selectorMap[t].push(r)):(n.target[this.scope.id]||Object.defineProperty(t,this.scope.id,{value:[],configurable:!0}),t[this.scope.id].push(r)),this.scope.fire("interactable:new",{target:t,options:e,interactable:n,win:this.scope._win}),n}get(t,e){const n=e&&e.context||this.scope.document,r=C(t),i=r?this.selectorMap[t]:t[this.scope.id];if(!i)return null;const o=M(i,(e=>e.context===n&&(r||e.interactable.inContext(t))));return o&&o.interactable}forEachMatch(t,e){for(const n of this.list){let r;if((C(n.target)?S(t)&&Y(t,n.target):t===n.target)&&n.inContext(t)&&(r=e(n)),void 0!==r)return r}}}function ut(t,e){for(const n in e){const r=ut.prefixedPropREs;let i=!1;for(const t in r)if(0===n.indexOf(t)&&r[t].test(n)){i=!0;break}i||"function"==typeof e[n]||(t[n]=e[n])}return t}ut.prefixedPropREs={webkit:/(Movement[XY]|Radius[XY]|RotationAngle|Force)$/,moz:/(Pressure)$/};var ht=ut;function pt(t,e){t.page=t.page||{},t.page.x=e.page.x,t.page.y=e.page.y,t.client=t.client||{},t.client.x=e.client.x,t.client.y=e.client.y,t.timeStamp=e.timeStamp}function dt(t){return t instanceof h.Event||t instanceof h.Touch}function ft(t,e,n){return t=t||"page",(n=n||{}).x=e[t+"X"],n.y=e[t+"Y"],n}function gt(t){return _(t.pointerId)?t.pointerId:t.identifier}function vt(t){const e=[];return E(t)?(e[0]=t[0],e[1]=t[1]):"touchend"===t.type?1===t.touches.length?(e[0]=t.touches[0],e[1]=t.changedTouches[0]):0===t.touches.length&&(e[0]=t.changedTouches[0],e[1]=t.changedTouches[1]):(e[0]=t.touches[0],e[1]=t.touches[1]),e}function mt(t){const e={pageX:0,pageY:0,clientX:0,clientY:0,screenX:0,screenY:0};for(const n of t)for(const t in e)e[t]+=n[t];for(const n in e)e[n]/=t.length;return e}function yt(t){if(!t.length)return null;const e=vt(t),n=Math.min(e[0].pageX,e[1].pageX),r=Math.min(e[0].pageY,e[1].pageY),i=Math.max(e[0].pageX,e[1].pageX),o=Math.max(e[0].pageY,e[1].pageY);return{x:n,y:r,left:n,top:r,right:i,bottom:o,width:i-n,height:o-r}}function bt(t,e){const n=e+"X",r=e+"Y",i=vt(t),o=i[0][n]-i[1][n],s=i[0][r]-i[1][r];return it(o,s)}function wt(t,e){const n=e+"X",r=e+"Y",i=vt(t),o=i[1][n]-i[0][n],s=i[1][r]-i[0][r];return 180*Math.atan2(s,o)/Math.PI}function xt(t){const e=x(t.composedPath)?t.composedPath():t.path;return[J(e?e[0]:t.target),J(t.currentTarget)]}class _t{constructor(t){this.currentTarget=void 0,this.originalEvent=void 0,this.type=void 0,this.originalEvent=t,ht(this,t)}preventOriginalDefault(){this.originalEvent.preventDefault()}stopPropagation(){this.originalEvent.stopPropagation()}stopImmediatePropagation(){this.originalEvent.stopImmediatePropagation()}}function kt(t){if(!w(t))return{capture:!!t,passive:!1};const e=D({},t);return e.capture=!!t.capture,e.passive=!!t.passive,e}var Ct={id:"events",install:function(t){const e=[],n={},r=[],i={add:o,remove:s,addDelegate:function(t,e,i,s,l){const u=kt(l);if(!n[i]){n[i]=[];for(const t of r)o(t,i,a),o(t,i,c,!0)}const h=n[i];let p=M(h,(n=>n.selector===t&&n.context===e));p||(p={selector:t,context:e,listeners:[]},h.push(p)),p.listeners.push([s,u])},removeDelegate:function(t,e,r,i,o){const l=kt(o),u=n[r];let h,p=!1;if(u)for(h=u.length-1;h>=0;h--){const n=u[h];if(n.selector===t&&n.context===e){const{listeners:t}=n;for(let n=t.length-1;n>=0;n--){const[o,{capture:d,passive:f}]=t[n];if(o===i&&d===l.capture&&f===l.passive){t.splice(n,1),t.length||(u.splice(h,1),s(e,r,a),s(e,r,c,!0)),p=!0;break}}if(p)break}}},delegateListener:a,delegateUseCapture:c,delegatedEvents:n,documents:r,targets:e,supportsOptions:!1,supportsPassive:!1};function o(t,n,r,o){const s=kt(o);let a=M(e,(e=>e.eventTarget===t));a||(a={eventTarget:t,events:{}},e.push(a)),a.events[n]||(a.events[n]=[]),t.addEventListener&&!((t,e)=>-1!==t.indexOf(e))(a.events[n],r)&&(t.addEventListener(n,r,i.supportsOptions?s:s.capture),a.events[n].push(r))}function s(t,n,r,o){const a=kt(o),c=R(e,(e=>e.eventTarget===t)),l=e[c];if(!l||!l.events)return;if("all"===n){for(n in l.events)l.events.hasOwnProperty(n)&&s(t,n,"all");return}let u=!1;const h=l.events[n];if(h){if("all"===r){for(let e=h.length-1;e>=0;e--)s(t,n,h[e],a);return}for(let e=0;e<h.length;e++)if(h[e]===r){t.removeEventListener(n,r,i.supportsOptions?a:a.capture),h.splice(e,1),0===h.length&&(delete l.events[n],u=!0);break}}u&&!Object.keys(l.events).length&&e.splice(c,1)}function a(t,e){const r=kt(e),i=new _t(t),o=n[t.type],[s]=xt(t);let a=s;for(;S(a);){for(let t=0;t<o.length;t++){const e=o[t],{selector:n,context:c}=e;if(Y(a,n)&&q(c,s)&&q(c,a)){const{listeners:t}=e;i.currentTarget=a;for(const[e,{capture:n,passive:o}]of t)n===r.capture&&o===r.passive&&e(i)}}a=V(a)}}function c(t){return a.call(this,t,!0)}return t.document.createElement("div").addEventListener("test",null,{get capture(){return i.supportsOptions=!0},get passive(){return i.supportsPassive=!0}}),t.events=i,i}};function St(t,e){let n=!1;return function(){return n||(f.console.warn(e),n=!0),t.apply(this,arguments)}}function At(t,e){return t.name=e.name,t.axis=e.axis,t.edges=e.edges,t}class Et{constructor(t,e,n,r,i){this.id=void 0,this.pointer=void 0,this.event=void 0,this.downTime=void 0,this.downTarget=void 0,this.id=t,this.pointer=e,this.event=n,this.downTime=r,this.downTarget=i}}let Ot,Tt;!function(t){t.interactable="",t.element="",t.prepared="",t.pointerIsDown="",t.pointerWasMoved="",t._proxy=""}(Ot||(Ot={})),function(t){t.start="",t.move="",t.end="",t.stop="",t.interacting=""}(Tt||(Tt={}));let Pt=0;function It(t){return/^(always|never|auto)$/.test(t)?(this.options.preventDefault=t,this):k(t)?(this.options.preventDefault=t?"always":"never",this):this.options.preventDefault}function Rt({interaction:t,event:e}){t.interactable&&t.interactable.checkAndPreventDefault(e)}var Mt={id:"core/interactablePreventDefault",install:function(t){const{Interactable:e}=t;e.prototype.preventDefault=It,e.prototype.checkAndPreventDefault=function(e){return function(t,e,n){const r=t.options.preventDefault;if("never"!==r)if("always"!==r){if(e.events.supportsPassive&&/^touch(start|move)$/.test(n.type)){const t=v(n.target).document,r=e.getDocOptions(t);if(!r||!r.events||!1!==r.events.passive)return}/^(mouse|pointer|touch)*(down|start)/i.test(n.type)||S(n.target)&&Y(n.target,"input,select,textarea,[contenteditable=true],[contenteditable=true] *")||n.preventDefault()}else n.preventDefault()}(this,t,e)},t.interactions.docEvents.push({type:"dragstart",listener(e){for(const n of t.interactions.list)if(n.element&&(n.element===e.target||q(n.element,e.target)))return void n.interactable.checkAndPreventDefault(e)}})},listeners:["down","move","up","cancel"].reduce(((t,e)=>(t[`interactions:${e}`]=Rt,t)),{})};const Nt={methodOrder:["simulationResume","mouseOrPen","hasPointer","idle"],search(t){for(const e of Nt.methodOrder){const n=Nt[e](t);if(n)return n}return null},simulationResume({pointerType:t,eventType:e,eventTarget:n,scope:r}){if(!/down|start/i.test(e))return null;for(const e of r.interactions.list){let r=n;if(e.simulation&&e.simulation.allowResume&&e.pointerType===t)for(;r;){if(r===e.element)return e;r=V(r)}}return null},mouseOrPen({pointerId:t,pointerType:e,eventType:n,scope:r}){if("mouse"!==e&&"pen"!==e)return null;let i;for(const n of r.interactions.list)if(n.pointerType===e){if(n.simulation&&!Dt(n,t))continue;if(n.interacting())return n;i||(i=n)}if(i)return i;for(const t of r.interactions.list)if(!(t.pointerType!==e||/down/i.test(n)&&t.simulation))return t;return null},hasPointer({pointerId:t,scope:e}){for(const n of e.interactions.list)if(Dt(n,t))return n;return null},idle({pointerType:t,scope:e}){for(const n of e.interactions.list){if(1===n.pointers.length){const t=n.interactable;if(t&&(!t.options.gesture||!t.options.gesture.enabled))continue}else if(n.pointers.length>=2)continue;if(!n.interacting()&&t===n.pointerType)return n}return null}};function Dt(t,e){return t.pointers.some((({id:t})=>t===e))}var jt=Nt;const Lt=["pointerDown","pointerMove","pointerUp","updatePointer","removePointer","windowBlur"];function zt(t,e){return function(n){const r=e.interactions.list,i=C((o=n).pointerType)?o.pointerType:_(o.pointerType)?[void 0,void 0,"touch","pen","mouse"][o.pointerType]:/touch/.test(o.type)||o instanceof h.Touch?"touch":"mouse";var o;const[s,a]=xt(n),c=[];if(/^touch/.test(n.type)){e.prevTouchTime=e.now();for(const t of n.changedTouches){const r={pointer:t,pointerId:gt(t),pointerType:i,eventType:n.type,eventTarget:s,curEventTarget:a,scope:e},o=$t(r);c.push([r.pointer,r.eventTarget,r.curEventTarget,o])}}else{let t=!1;if(!T.supportsPointerEvent&&/mouse/.test(n.type)){for(let e=0;e<r.length&&!t;e++)t="mouse"!==r[e].pointerType&&r[e].pointerIsDown;t=t||e.now()-e.prevTouchTime<500||0===n.timeStamp}if(!t){const t={pointer:n,pointerId:gt(n),pointerType:i,eventType:n.type,curEventTarget:a,eventTarget:s,scope:e},r=$t(t);c.push([t.pointer,t.eventTarget,t.curEventTarget,r])}}for(const[e,r,i,o]of c)o[t](e,n,r,i)}}function $t(t){const{pointerType:e,scope:n}=t,r={interaction:jt.search(t),searchDetails:t};return n.fire("interactions:find",r),r.interaction||n.interactions.new({pointerType:e})}function Bt({doc:t,scope:e,options:n},r){const{interactions:{docEvents:i},events:o}=e,s=o[r];e.browser.isIOS&&!n.events&&(n.events={passive:!1});for(const e in o.delegatedEvents)s(t,e,o.delegateListener),s(t,e,o.delegateUseCapture,!0);const a=n&&n.events;for(const{type:e,listener:n}of i)s(t,e,n,a)}var Ht={id:"core/interactions",install:function(t){const e={};for(const n of Lt)e[n]=zt(n,t);const n=T.pEventTypes;let r;function i(){for(const e of t.interactions.list)if(e.pointerIsDown&&"touch"===e.pointerType&&!e._interacting)for(const n of e.pointers)t.documents.some((({doc:t})=>q(t,n.downTarget)))||e.removePointer(n.pointer,n.event)}r=h.PointerEvent?[{type:n.down,listener:i},{type:n.down,listener:e.pointerDown},{type:n.move,listener:e.pointerMove},{type:n.up,listener:e.pointerUp},{type:n.cancel,listener:e.pointerUp}]:[{type:"mousedown",listener:e.pointerDown},{type:"mousemove",listener:e.pointerMove},{type:"mouseup",listener:e.pointerUp},{type:"touchstart",listener:i},{type:"touchstart",listener:e.pointerDown},{type:"touchmove",listener:e.pointerMove},{type:"touchend",listener:e.pointerUp},{type:"touchcancel",listener:e.pointerUp}],r.push({type:"blur",listener(e){for(const n of t.interactions.list)n.documentBlur(e)}}),t.prevTouchTime=0,t.Interaction=class extends class{get pointerMoveTolerance(){return 1}constructor({pointerType:t,scopeFire:e}){this.interactable=null,this.element=null,this.rect=void 0,this._rects=void 0,this.edges=void 0,this._scopeFire=void 0,this.prepared={name:null,axis:null,edges:null},this.pointerType=void 0,this.pointers=[],this.downEvent=null,this.downPointer={},this._latestPointer={pointer:null,event:null,eventTarget:null},this.prevEvent=null,this.pointerIsDown=!1,this.pointerWasMoved=!1,this._interacting=!1,this._ending=!1,this._stopped=!0,this._proxy=null,this.simulation=null,this.doMove=St((function(t){this.move(t)}),"The interaction.doMove() method has been renamed to interaction.move()"),this.coords={start:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},prev:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},cur:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},delta:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},velocity:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0}},this._id=Pt++,this._scopeFire=e,this.pointerType=t;const n=this;this._proxy={};for(const t in Ot)Object.defineProperty(this._proxy,t,{get:()=>n[t]});for(const t in Tt)Object.defineProperty(this._proxy,t,{value:(...e)=>n[t](...e)});this._scopeFire("interactions:new",{interaction:this})}pointerDown(t,e,n){const r=this.updatePointer(t,e,n,!0),i=this.pointers[r];this._scopeFire("interactions:down",{pointer:t,event:e,eventTarget:n,pointerIndex:r,pointerInfo:i,type:"down",interaction:this})}start(t,e,n){return!(this.interacting()||!this.pointerIsDown||this.pointers.length<("gesture"===t.name?2:1)||!e.options[t.name].enabled)&&(At(this.prepared,t),this.interactable=e,this.element=n,this.rect=e.getRect(n),this.edges=this.prepared.edges?D({},this.prepared.edges):{left:!0,right:!0,top:!0,bottom:!0},this._stopped=!1,this._interacting=this._doPhase({interaction:this,event:this.downEvent,phase:"start"})&&!this._stopped,this._interacting)}pointerMove(t,e,n){this.simulation||this.modification&&this.modification.endResult||this.updatePointer(t,e,n,!1);const r=this.coords.cur.page.x===this.coords.prev.page.x&&this.coords.cur.page.y===this.coords.prev.page.y&&this.coords.cur.client.x===this.coords.prev.client.x&&this.coords.cur.client.y===this.coords.prev.client.y;let i,o;this.pointerIsDown&&!this.pointerWasMoved&&(i=this.coords.cur.client.x-this.coords.start.client.x,o=this.coords.cur.client.y-this.coords.start.client.y,this.pointerWasMoved=it(i,o)>this.pointerMoveTolerance);const s=this.getPointerIndex(t),a={pointer:t,pointerIndex:s,pointerInfo:this.pointers[s],event:e,type:"move",eventTarget:n,dx:i,dy:o,duplicate:r,interaction:this};r||function(t,e){const n=Math.max(e.timeStamp/1e3,.001);t.page.x=e.page.x/n,t.page.y=e.page.y/n,t.client.x=e.client.x/n,t.client.y=e.client.y/n,t.timeStamp=n}(this.coords.velocity,this.coords.delta),this._scopeFire("interactions:move",a),r||this.simulation||(this.interacting()&&(a.type=null,this.move(a)),this.pointerWasMoved&&pt(this.coords.prev,this.coords.cur))}move(t){var e;t&&t.event||((e=this.coords.delta).page.x=0,e.page.y=0,e.client.x=0,e.client.y=0),(t=D({pointer:this._latestPointer.pointer,event:this._latestPointer.event,eventTarget:this._latestPointer.eventTarget,interaction:this},t||{})).phase="move",this._doPhase(t)}pointerUp(t,e,n,r){let i=this.getPointerIndex(t);-1===i&&(i=this.updatePointer(t,e,n,!1));const o=/cancel$/i.test(e.type)?"cancel":"up";this._scopeFire(`interactions:${o}`,{pointer:t,pointerIndex:i,pointerInfo:this.pointers[i],event:e,eventTarget:n,type:o,curEventTarget:r,interaction:this}),this.simulation||this.end(e),this.removePointer(t,e)}documentBlur(t){this.end(t),this._scopeFire("interactions:blur",{event:t,type:"blur",interaction:this})}end(t){let e;this._ending=!0,t=t||this._latestPointer.event,this.interacting()&&(e=this._doPhase({event:t,interaction:this,phase:"end"})),this._ending=!1,!0===e&&this.stop()}currentAction(){return this._interacting?this.prepared.name:null}interacting(){return this._interacting}stop(){this._scopeFire("interactions:stop",{interaction:this}),this.interactable=this.element=null,this._interacting=!1,this._stopped=!0,this.prepared.name=this.prevEvent=null}getPointerIndex(t){const e=gt(t);return"mouse"===this.pointerType||"pen"===this.pointerType?this.pointers.length-1:R(this.pointers,(t=>t.id===e))}getPointerInfo(t){return this.pointers[this.getPointerIndex(t)]}updatePointer(t,e,n,r){const i=gt(t);let o=this.getPointerIndex(t),s=this.pointers[o];var a,c,l;return r=!1!==r&&(r||/(down|start)$/i.test(e.type)),s?s.pointer=t:(s=new Et(i,t,e,null,null),o=this.pointers.length,this.pointers.push(s)),function(t,e,n){const r=e.length>1?mt(e):e[0];!function(t,e){e=e||{x:0,y:0},T.isOperaMobile&&dt(t)?(ft("screen",t,e),e.x+=window.scrollX,e.y+=window.scrollY):ft("page",t,e)}(r,t.page),function(t,e){e=e||{},T.isOperaMobile&&dt(t)?ft("screen",t,e):ft("client",t,e)}(r,t.client),t.timeStamp=n}(this.coords.cur,this.pointers.map((t=>t.pointer)),this._now()),a=this.coords.delta,c=this.coords.prev,l=this.coords.cur,a.page.x=l.page.x-c.page.x,a.page.y=l.page.y-c.page.y,a.client.x=l.client.x-c.client.x,a.client.y=l.client.y-c.client.y,a.timeStamp=l.timeStamp-c.timeStamp,r&&(this.pointerIsDown=!0,s.downTime=this.coords.cur.timeStamp,s.downTarget=n,ht(this.downPointer,t),this.interacting()||(pt(this.coords.start,this.coords.cur),pt(this.coords.prev,this.coords.cur),this.downEvent=e,this.pointerWasMoved=!1)),this._updateLatestPointer(t,e,n),this._scopeFire("interactions:update-pointer",{pointer:t,event:e,eventTarget:n,down:r,pointerInfo:s,pointerIndex:o,interaction:this}),o}removePointer(t,e){const n=this.getPointerIndex(t);if(-1===n)return;const r=this.pointers[n];this._scopeFire("interactions:remove-pointer",{pointer:t,event:e,eventTarget:null,pointerIndex:n,pointerInfo:r,interaction:this}),this.pointers.splice(n,1),this.pointerIsDown=!1}_updateLatestPointer(t,e,n){this._latestPointer.pointer=t,this._latestPointer.event=e,this._latestPointer.eventTarget=n}destroy(){this._latestPointer.pointer=null,this._latestPointer.event=null,this._latestPointer.eventTarget=null}_createPreparedEvent(t,e,n,r){return new at(this,t,this.prepared.name,e,this.element,n,r)}_fireEvent(t){this.interactable.fire(t),(!this.prevEvent||t.timeStamp>=this.prevEvent.timeStamp)&&(this.prevEvent=t)}_doPhase(t){const{event:e,phase:n,preEnd:r,type:i}=t,{rect:o}=this;if(o&&"move"===n&&(nt(this.edges,o,this.coords.delta[this.interactable.options.deltaSource]),o.width=o.right-o.left,o.height=o.bottom-o.top),!1===this._scopeFire(`interactions:before-action-${n}`,t))return!1;const s=t.iEvent=this._createPreparedEvent(e,n,r,i);return this._scopeFire(`interactions:action-${n}`,t),"start"===n&&(this.prevEvent=s),this._fireEvent(s),this._scopeFire(`interactions:after-action-${n}`,t),!0}_now(){return Date.now()}}{get pointerMoveTolerance(){return t.interactions.pointerMoveTolerance}set pointerMoveTolerance(e){t.interactions.pointerMoveTolerance=e}_now(){return t.now()}},t.interactions={list:[],new(e){e.scopeFire=(e,n)=>t.fire(e,n);const n=new t.Interaction(e);return t.interactions.list.push(n),n},listeners:e,docEvents:r,pointerMoveTolerance:1},t.usePlugin(Mt)},listeners:{"scope:add-document":t=>Bt(t,"add"),"scope:remove-document":t=>Bt(t,"remove"),"interactable:unset":({interactable:t},e)=>{for(let n=e.interactions.list.length-1;n>=0;n--){const r=e.interactions.list[n];r.interactable===t&&(r.stop(),e.fire("interactions:destroy",{interaction:r}),r.destroy(),e.interactions.list.length>2&&e.interactions.list.splice(n,1))}}},onDocSignal:Bt,doOnInteractions:zt,methodNames:Lt};function Ut(t){return t&&t.replace(/\/.*$/,"")}const Ft=new class{constructor(){this.id=`__interact_scope_${Math.floor(100*Math.random())}`,this.isInitialized=!1,this.listenerMaps=[],this.browser=T,this.defaults=N(st),this.Eventable=F,this.actions={map:{},phases:{start:!0,move:!0,end:!0},methodDict:{},phaselessTypes:{}},this.interactStatic=function(t){const e=(n,r)=>{let i=t.interactables.get(n,r);return i||(i=t.interactables.new(n,r),i.events.global=e.globalEvents),i};return e.getPointerAverage=mt,e.getTouchBBox=yt,e.getTouchDistance=bt,e.getTouchAngle=wt,e.getElementRect=K,e.getElementClientRect=G,e.matchesSelector=Y,e.closest=W,e.globalEvents={},e.version="1.10.2",e.scope=t,e.use=function(t,e){return this.scope.usePlugin(t,e),this},e.isSet=function(t,e){return!!this.scope.interactables.get(t,e&&e.context)},e.on=St((function(t,e,n){if(C(t)&&-1!==t.search(" ")&&(t=t.trim().split(/ +/)),E(t)){for(const r of t)this.on(r,e,n);return this}if(w(t)){for(const n in t)this.on(n,t[n],e);return this}return ct(t,this.scope.actions)?this.globalEvents[t]?this.globalEvents[t].push(e):this.globalEvents[t]=[e]:this.scope.events.add(this.scope.document,t,e,{options:n}),this}),"The interact.on() method is being deprecated"),e.off=St((function(t,e,n){if(C(t)&&-1!==t.search(" ")&&(t=t.trim().split(/ +/)),E(t)){for(const r of t)this.off(r,e,n);return this}if(w(t)){for(const n in t)this.off(n,t[n],e);return this}if(ct(t,this.scope.actions)){let n;t in this.globalEvents&&-1!==(n=this.globalEvents[t].indexOf(e))&&this.globalEvents[t].splice(n,1)}else this.scope.events.remove(this.scope.document,t,e,n);return this}),"The interact.off() method is being deprecated"),e.debug=function(){return this.scope},e.supportsTouch=function(){return T.supportsTouch},e.supportsPointerEvent=function(){return T.supportsPointerEvent},e.stop=function(){for(const t of this.scope.interactions.list)t.stop();return this},e.pointerMoveTolerance=function(t){return _(t)?(this.scope.interactions.pointerMoveTolerance=t,this):this.scope.interactions.pointerMoveTolerance},e.addDocument=function(t,e){this.scope.addDocument(t,e)},e.removeDocument=function(t){this.scope.removeDocument(t)},e}(this),this.InteractEvent=at,this.Interactable=void 0,this.interactables=new lt(this),this._win=void 0,this.document=void 0,this.window=void 0,this.documents=[],this._plugins={list:[],map:{}},this.onWindowUnload=t=>this.removeDocument(t.target);const t=this;this.Interactable=class extends class{get _defaults(){return{base:{},perAction:{},actions:{}}}constructor(t,e,n,r){this.options=void 0,this._actions=void 0,this.target=void 0,this.events=new F,this._context=void 0,this._win=void 0,this._doc=void 0,this._scopeEvents=void 0,this._rectChecker=void 0,this._actions=e.actions,this.target=t,this._context=e.context||n,this._win=v(Z(t)?this._context:t),this._doc=this._win.document,this._scopeEvents=r,this.set(e)}setOnEvents(t,e){return x(e.onstart)&&this.on(`${t}start`,e.onstart),x(e.onmove)&&this.on(`${t}move`,e.onmove),x(e.onend)&&this.on(`${t}end`,e.onend),x(e.oninertiastart)&&this.on(`${t}inertiastart`,e.oninertiastart),this}updatePerActionListeners(t,e,n){(E(e)||w(e))&&this.off(t,e),(E(n)||w(n))&&this.on(t,n)}setPerAction(t,e){const n=this._defaults;for(const r in e){const i=r,o=this.options[t],s=e[i];"listeners"===i&&this.updatePerActionListeners(t,o.listeners,s),E(s)?o[i]=I(s):A(s)?(o[i]=D(o[i]||{},N(s)),w(n.perAction[i])&&"enabled"in n.perAction[i]&&(o[i].enabled=!1!==s.enabled)):k(s)&&w(n.perAction[i])?o[i].enabled=s:o[i]=s}}getRect(t){return t=t||(S(this.target)?this.target:null),C(this.target)&&(t=t||this._context.querySelector(this.target)),K(t)}rectChecker(t){return x(t)?(this._rectChecker=t,this.getRect=t=>{const e=D({},this._rectChecker(t));return"width"in e||(e.width=e.right-e.left,e.height=e.bottom-e.top),e},this):null===t?(delete this.getRect,delete this._rectChecker,this):this.getRect}_backCompatOption(t,e){if(Z(e)||w(e)){this.options[t]=e;for(const n in this._actions.map)this.options[n][t]=e;return this}return this.options[t]}origin(t){return this._backCompatOption("origin",t)}deltaSource(t){return"page"===t||"client"===t?(this.options.deltaSource=t,this):this.options.deltaSource}context(){return this._context}inContext(t){return this._context===t.ownerDocument||q(this._context,t)}testIgnoreAllow(t,e,n){return!this.testIgnore(t.ignoreFrom,e,n)&&this.testAllow(t.allowFrom,e,n)}testAllow(t,e,n){return!t||!!S(n)&&(C(t)?X(n,t,e):!!S(t)&&q(t,n))}testIgnore(t,e,n){return!(!t||!S(n))&&(C(t)?X(n,t,e):!!S(t)&&q(t,n))}fire(t){return this.events.fire(t),this}_onOff(t,e,n,r){w(e)&&!E(e)&&(r=n,n=null);const i="on"===t?"add":"remove",o=B(e,n);for(let e in o){"wheel"===e&&(e=T.wheelEvent);for(const n of o[e])ct(e,this._actions)?this.events[t](e,n):C(this.target)?this._scopeEvents[`${i}Delegate`](this.target,this._context,e,n,r):this._scopeEvents[i](this.target,e,n,r)}return this}on(t,e,n){return this._onOff("on",t,e,n)}off(t,e,n){return this._onOff("off",t,e,n)}set(t){const e=this._defaults;w(t)||(t={}),this.options=N(e.base);for(const n in this._actions.methodDict){const r=n,i=this._actions.methodDict[r];this.options[r]={},this.setPerAction(r,D(D({},e.perAction),e.actions[r])),this[i](t[r])}for(const e in t)x(this[e])&&this[e](t[e]);return this}unset(){if(C(this.target))for(const t in this._scopeEvents.delegatedEvents){const e=this._scopeEvents.delegatedEvents[t];for(let n=e.length-1;n>=0;n--){const{selector:r,context:i,listeners:o}=e[n];r===this.target&&i===this._context&&e.splice(n,1);for(let e=o.length-1;e>=0;e--)this._scopeEvents.removeDelegate(this.target,this._context,t,o[e][0],o[e][1])}}else this._scopeEvents.remove(this.target,"all")}}{get _defaults(){return t.defaults}set(e){return super.set(e),t.fire("interactable:set",{options:e,interactable:this}),this}unset(){super.unset(),t.interactables.list.splice(t.interactables.list.indexOf(this),1),t.fire("interactable:unset",{interactable:this})}}}addListeners(t,e){this.listenerMaps.push({id:e,map:t})}fire(t,e){for(const{map:{[t]:n}}of this.listenerMaps)if(n&&!1===n(e,this,t))return!1}init(t){return this.isInitialized?this:function(t,e){return t.isInitialized=!0,g(e),h.init(e),T.init(e),$(e),t.window=e,t.document=e.document,t.usePlugin(Ht),t.usePlugin(Ct),t}(this,t)}pluginIsInstalled(t){return this._plugins.map[t.id]||-1!==this._plugins.list.indexOf(t)}usePlugin(t,e){if(!this.isInitialized)return this;if(this.pluginIsInstalled(t))return this;if(t.id&&(this._plugins.map[t.id]=t),this._plugins.list.push(t),t.install&&t.install(this,e),t.listeners&&t.before){let e=0;const n=this.listenerMaps.length,r=t.before.reduce(((t,e)=>(t[e]=!0,t[Ut(e)]=!0,t)),{});for(;e<n;e++){const t=this.listenerMaps[e].id;if(r[t]||r[Ut(t)])break}this.listenerMaps.splice(e,0,{id:t.id,map:t.listeners})}else t.listeners&&this.listenerMaps.push({id:t.id,map:t.listeners});return this}addDocument(t,e){if(-1!==this.getDocIndex(t))return!1;const n=v(t);e=e?D({},e):{},this.documents.push({doc:t,options:e}),this.events.documents.push(t),t!==this.document&&this.events.add(n,"unload",this.onWindowUnload),this.fire("scope:add-document",{doc:t,window:n,scope:this,options:e})}removeDocument(t){const e=this.getDocIndex(t),n=v(t),r=this.documents[e].options;this.events.remove(n,"unload",this.onWindowUnload),this.documents.splice(e,1),this.events.documents.splice(e,1),this.fire("scope:remove-document",{doc:t,window:n,scope:this,options:r})}getDocIndex(t){for(let e=0;e<this.documents.length;e++)if(this.documents[e].doc===t)return e;return-1}getDocOptions(t){const e=this.getDocIndex(t);return-1===e?null:this.documents[e].options}now(){return(this.window.Date||Date).now()}};var qt=Ft.interactStatic;const Wt=t=>Ft.init(t);function Vt(t){return k(t)?(this.options.styleCursor=t,this):null===t?(delete this.options.styleCursor,this):this.options.styleCursor}function Yt(t){return x(t)?(this.options.actionChecker=t,this):null===t?(delete this.options.actionChecker,this):this.options.actionChecker}"object"==typeof window&&window&&Wt(window);var Xt={id:"auto-start/interactableMethods",install:function(t){const{Interactable:e}=t;e.prototype.getAction=function(e,n,r,i){const o=function(t,e,n,r,i){const o=t.getRect(r),s={action:null,interactable:t,interaction:n,element:r,rect:o,buttons:e.buttons||{0:1,1:4,3:8,4:16}[e.button]};return i.fire("auto-start:check",s),s.action}(this,n,r,i,t);return this.options.actionChecker?this.options.actionChecker(e,n,o,this,i,r):o},e.prototype.ignoreFrom=St((function(t){return this._backCompatOption("ignoreFrom",t)}),"Interactable.ignoreFrom() has been deprecated. Use Interactble.draggable({ignoreFrom: newValue})."),e.prototype.allowFrom=St((function(t){return this._backCompatOption("allowFrom",t)}),"Interactable.allowFrom() has been deprecated. Use Interactble.draggable({allowFrom: newValue})."),e.prototype.actionChecker=Yt,e.prototype.styleCursor=Vt}};function Jt(t,e,n,r,i){return e.testIgnoreAllow(e.options[t.name],n,r)&&e.options[t.name].enabled&&Qt(e,n,t,i)?t:null}function Gt(t,e,n,r,i,o,s){for(let a=0,c=r.length;a<c;a++){const c=r[a],l=i[a],u=c.getAction(e,n,t,l);if(!u)continue;const h=Jt(u,c,l,o,s);if(h)return{action:h,interactable:c,element:l}}return{action:null,interactable:null,element:null}}function Kt(t,e,n,r,i){let o=[],s=[],a=r;function c(t){o.push(t),s.push(a)}for(;S(a);){o=[],s=[],i.interactables.forEachMatch(a,c);const l=Gt(t,e,n,o,s,r,i);if(l.action&&!l.interactable.options[l.action.name].manualStart)return l;a=V(a)}return{action:null,interactable:null,element:null}}function Zt(t,{action:e,interactable:n,element:r},i){e=e||{name:null},t.interactable=n,t.element=r,At(t.prepared,e),t.rect=n&&e.name?n.getRect(r):null,ne(t,i),i.fire("autoStart:prepared",{interaction:t})}function Qt(t,e,n,r){const i=t.options,o=i[n.name].max,s=i[n.name].maxPerElement,a=r.autoStart.maxInteractions;let c=0,l=0,u=0;if(!(o&&s&&a))return!1;for(const i of r.interactions.list){const r=i.prepared.name;if(i.interacting()){if(c++,c>=a)return!1;if(i.interactable===t){if(l+=r===n.name?1:0,l>=o)return!1;if(i.element===e&&(u++,r===n.name&&u>=s))return!1}}}return a>0}function te(t,e){return _(t)?(e.autoStart.maxInteractions=t,this):e.autoStart.maxInteractions}function ee(t,e,n){const{cursorElement:r}=n.autoStart;r&&r!==t&&(r.style.cursor=""),t.ownerDocument.documentElement.style.cursor=e,t.style.cursor=e,n.autoStart.cursorElement=e?t:null}function ne(t,e){const{interactable:n,element:r,prepared:i}=t;if("mouse"!==t.pointerType||!n||!n.options.styleCursor)return void(e.autoStart.cursorElement&&ee(e.autoStart.cursorElement,"",e));let o="";if(i.name){const s=n.options[i.name].cursorChecker;o=x(s)?s(i,n,r,t._interacting):e.actions.map[i.name].getCursor(i)}ee(t.element,o||"",e)}var re={id:"auto-start/base",before:["actions"],install:function(t){const{interactStatic:e,defaults:n}=t;t.usePlugin(Xt),n.base.actionChecker=null,n.base.styleCursor=!0,D(n.perAction,{manualStart:!1,max:1/0,maxPerElement:1,allowFrom:null,ignoreFrom:null,mouseButtons:1}),e.maxInteractions=e=>te(e,t),t.autoStart={maxInteractions:1/0,withinInteractionLimit:Qt,cursorElement:null}},listeners:{"interactions:down":function({interaction:t,pointer:e,event:n,eventTarget:r},i){t.interacting()||Zt(t,Kt(t,e,n,r,i),i)},"interactions:move":(t,e)=>{!function({interaction:t,pointer:e,event:n,eventTarget:r},i){"mouse"!==t.pointerType||t.pointerIsDown||t.interacting()||Zt(t,Kt(t,e,n,r,i),i)}(t,e),function(t,e){const{interaction:n}=t;if(!n.pointerIsDown||n.interacting()||!n.pointerWasMoved||!n.prepared.name)return;e.fire("autoStart:before-start",t);const{interactable:r}=n,i=n.prepared.name;i&&r&&(r.options[i].manualStart||!Qt(r,n.element,n.prepared,e)?n.stop():(n.start(n.prepared,r,n.element),ne(n,e)))}(t,e)},"interactions:stop":function({interaction:t},e){const{interactable:n}=t;n&&n.options.styleCursor&&ee(t.element,"",e)}},maxInteractions:te,withinInteractionLimit:Qt,validateAction:Jt},ie={id:"auto-start/dragAxis",listeners:{"autoStart:before-start":function({interaction:t,eventTarget:e,dx:n,dy:r},i){if("drag"!==t.prepared.name)return;const o=Math.abs(n),s=Math.abs(r),a=t.interactable.options.drag,c=a.startAxis,l=o>s?"x":o<s?"y":"xy";if(t.prepared.axis="start"===a.lockAxis?l[0]:a.lockAxis,"xy"!==l&&"xy"!==c&&c!==l){t.prepared.name=null;let n=e;const r=function(r){if(r===t.interactable)return;const o=t.interactable.options.drag;if(!o.manualStart&&r.testIgnoreAllow(o,n,e)){const o=r.getAction(t.downPointer,t.downEvent,t,n);if(o&&"drag"===o.name&&function(t,e){if(!e)return!1;const n=e.options.drag.startAxis;return"xy"===t||"xy"===n||n===t}(l,r)&&re.validateAction(o,r,n,e,i))return r}};for(;S(n);){const e=i.interactables.forEachMatch(n,r);if(e){t.prepared.name="drag",t.interactable=e,t.element=n;break}n=V(n)}}}}};function oe(t){const e=t.prepared&&t.prepared.name;if(!e)return null;const n=t.interactable.options;return n[e].hold||n[e].delay}var se={id:"auto-start/hold",install:function(t){const{defaults:e}=t;t.usePlugin(re),e.perAction.hold=0,e.perAction.delay=0},listeners:{"interactions:new":({interaction:t})=>{t.autoStartHoldTimer=null},"autoStart:prepared":({interaction:t})=>{const e=oe(t);e>0&&(t.autoStartHoldTimer=setTimeout((()=>{t.start(t.prepared,t.interactable,t.element)}),e))},"interactions:move":({interaction:t,duplicate:e})=>{t.autoStartHoldTimer&&t.pointerWasMoved&&!e&&(clearTimeout(t.autoStartHoldTimer),t.autoStartHoldTimer=null)},"autoStart:before-start":({interaction:t})=>{oe(t)>0&&(t.prepared.name=null)}},getHoldDuration:oe},ae={id:"auto-start",install(t){t.usePlugin(re),t.usePlugin(se),t.usePlugin(ie)}};function ce({interaction:t}){if("drag"!==t.prepared.name)return;const e=t.prepared.axis;"x"===e?(t.coords.cur.page.y=t.coords.start.page.y,t.coords.cur.client.y=t.coords.start.client.y,t.coords.velocity.client.y=0,t.coords.velocity.page.y=0):"y"===e&&(t.coords.cur.page.x=t.coords.start.page.x,t.coords.cur.client.x=t.coords.start.client.x,t.coords.velocity.client.x=0,t.coords.velocity.page.x=0)}function le({iEvent:t,interaction:e}){if("drag"!==e.prepared.name)return;const n=e.prepared.axis;if("x"===n||"y"===n){const r="x"===n?"y":"x";t.page[r]=e.coords.start.page[r],t.client[r]=e.coords.start.client[r],t.delta[r]=0}}"object"==typeof window&&window&&Wt(window),qt.use(ae);const ue={id:"actions/drag",install:function(t){const{actions:e,Interactable:n,defaults:r}=t;n.prototype.draggable=ue.draggable,e.map.drag=ue,e.methodDict.drag="draggable",r.actions.drag=ue.defaults},listeners:{"interactions:before-action-move":ce,"interactions:action-resume":ce,"interactions:action-move":le,"auto-start:check":t=>{const{interaction:e,interactable:n,buttons:r}=t,i=n.options.drag;if(i&&i.enabled&&(!e.pointerIsDown||!/mouse|pointer/.test(e.pointerType)||0!=(r&n.options.drag.mouseButtons)))return t.action={name:"drag",axis:"start"===i.lockAxis?i.startAxis:i.lockAxis},!1}},draggable:function(t){return w(t)?(this.options.drag.enabled=!1!==t.enabled,this.setPerAction("drag",t),this.setOnEvents("drag",t),/^(xy|x|y|start)$/.test(t.lockAxis)&&(this.options.drag.lockAxis=t.lockAxis),/^(xy|x|y)$/.test(t.startAxis)&&(this.options.drag.startAxis=t.startAxis),this):k(t)?(this.options.drag.enabled=t,this):this.options.drag},beforeMove:ce,move:le,defaults:{startAxis:"xy",lockAxis:"xy"},getCursor:()=>"move"};var he=ue;function pe(t,e,n,r,i,o,s){if(!e)return!1;if(!0===e){const e=_(o.width)?o.width:o.right-o.left,r=_(o.height)?o.height:o.bottom-o.top;if(s=Math.min(s,Math.abs(("left"===t||"right"===t?e:r)/2)),e<0&&("left"===t?t="right":"right"===t&&(t="left")),r<0&&("top"===t?t="bottom":"bottom"===t&&(t="top")),"left"===t)return n.x<(e>=0?o.left:o.right)+s;if("top"===t)return n.y<(r>=0?o.top:o.bottom)+s;if("right"===t)return n.x>(e>=0?o.right:o.left)-s;if("bottom"===t)return n.y>(r>=0?o.bottom:o.top)-s}return!!S(r)&&(S(e)?e===r:X(r,e,i))}function de({iEvent:t,interaction:e}){if("resize"!==e.prepared.name||!e.resizeAxes)return;const n=t;e.interactable.options.resize.square?("y"===e.resizeAxes?n.delta.x=n.delta.y:n.delta.y=n.delta.x,n.axes="xy"):(n.axes=e.resizeAxes,"x"===e.resizeAxes?n.delta.y=0:"y"===e.resizeAxes&&(n.delta.x=0))}"object"==typeof window&&window&&Wt(window),qt.use(he);const fe={id:"actions/resize",before:["actions/drag"],install:function(t){const{actions:e,browser:n,Interactable:r,defaults:i}=t;fe.cursors=function(t){return t.isIe9?{x:"e-resize",y:"s-resize",xy:"se-resize",top:"n-resize",left:"w-resize",bottom:"s-resize",right:"e-resize",topleft:"se-resize",bottomright:"se-resize",topright:"ne-resize",bottomleft:"ne-resize"}:{x:"ew-resize",y:"ns-resize",xy:"nwse-resize",top:"ns-resize",left:"ew-resize",bottom:"ns-resize",right:"ew-resize",topleft:"nwse-resize",bottomright:"nwse-resize",topright:"nesw-resize",bottomleft:"nesw-resize"}}(n),fe.defaultMargin=n.supportsTouch||n.supportsPointerEvent?20:10,r.prototype.resizable=function(e){return function(t,e,n){return w(e)?(t.options.resize.enabled=!1!==e.enabled,t.setPerAction("resize",e),t.setOnEvents("resize",e),C(e.axis)&&/^x$|^y$|^xy$/.test(e.axis)?t.options.resize.axis=e.axis:null===e.axis&&(t.options.resize.axis=n.defaults.actions.resize.axis),k(e.preserveAspectRatio)?t.options.resize.preserveAspectRatio=e.preserveAspectRatio:k(e.square)&&(t.options.resize.square=e.square),t):k(e)?(t.options.resize.enabled=e,t):t.options.resize}(this,e,t)},e.map.resize=fe,e.methodDict.resize="resizable",i.actions.resize=fe.defaults},listeners:{"interactions:new":({interaction:t})=>{t.resizeAxes="xy"},"interactions:action-start":t=>{!function({iEvent:t,interaction:e}){if("resize"!==e.prepared.name||!e.prepared.edges)return;const n=t,r=e.rect;e._rects={start:D({},r),corrected:D({},r),previous:D({},r),delta:{left:0,right:0,width:0,top:0,bottom:0,height:0}},n.edges=e.prepared.edges,n.rect=e._rects.corrected,n.deltaRect=e._rects.delta}(t),de(t)},"interactions:action-move":t=>{!function({iEvent:t,interaction:e}){if("resize"!==e.prepared.name||!e.prepared.edges)return;const n=t,r=e.interactable.options.resize.invert,i="reposition"===r||"negate"===r,o=e.rect,{start:s,corrected:a,delta:c,previous:l}=e._rects;if(D(l,a),i){if(D(a,o),"reposition"===r){if(a.top>a.bottom){const t=a.top;a.top=a.bottom,a.bottom=t}if(a.left>a.right){const t=a.left;a.left=a.right,a.right=t}}}else a.top=Math.min(o.top,s.bottom),a.bottom=Math.max(o.bottom,s.top),a.left=Math.min(o.left,s.right),a.right=Math.max(o.right,s.left);a.width=a.right-a.left,a.height=a.bottom-a.top;for(const t in a)c[t]=a[t]-l[t];n.edges=e.prepared.edges,n.rect=a,n.deltaRect=c}(t),de(t)},"interactions:action-end":function({iEvent:t,interaction:e}){if("resize"!==e.prepared.name||!e.prepared.edges)return;const n=t;n.edges=e.prepared.edges,n.rect=e._rects.corrected,n.deltaRect=e._rects.delta},"auto-start:check":function(t){const{interaction:e,interactable:n,element:r,rect:i,buttons:o}=t;if(!i)return;const s=D({},e.coords.cur.page),a=n.options.resize;if(a&&a.enabled&&(!e.pointerIsDown||!/mouse|pointer/.test(e.pointerType)||0!=(o&a.mouseButtons))){if(w(a.edges)){const n={left:!1,right:!1,top:!1,bottom:!1};for(const t in n)n[t]=pe(t,a.edges[t],s,e._latestPointer.eventTarget,r,i,a.margin||fe.defaultMargin);n.left=n.left&&!n.right,n.top=n.top&&!n.bottom,(n.left||n.right||n.top||n.bottom)&&(t.action={name:"resize",edges:n})}else{const e="y"!==a.axis&&s.x>i.right-fe.defaultMargin,n="x"!==a.axis&&s.y>i.bottom-fe.defaultMargin;(e||n)&&(t.action={name:"resize",axes:(e?"x":"")+(n?"y":"")})}return!t.action&&void 0}}},defaults:{square:!1,preserveAspectRatio:!1,axis:"xy",margin:NaN,edges:null,invert:"none"},cursors:null,getCursor({edges:t,axis:e,name:n}){const r=fe.cursors;let i=null;if(e)i=r[n+e];else if(t){let e="";for(const n of["top","bottom","left","right"])t[n]&&(e+=n);i=r[e]}return i},defaultMargin:null};var ge=fe;"object"==typeof window&&window&&Wt(window),qt.use(ge);var ve=()=>{},me=()=>{},ye=t=>{const e=[["x","y"],["left","top"],["right","bottom"],["width","height"]].filter((([e,n])=>e in t||n in t)),n=(n,r)=>{const{range:i,limits:o={left:-1/0,right:1/0,top:-1/0,bottom:1/0},offset:s={x:0,y:0}}=t,a={range:i,grid:t,x:null,y:null};for(const[i,c]of e){const e=Math.round((n-s.x)/t[i]),l=Math.round((r-s.y)/t[c]);a[i]=Math.max(o.left,Math.min(o.right,e*t[i]+s.x)),a[c]=Math.max(o.top,Math.min(o.bottom,l*t[c]+s.y))}return a};return n.grid=t,n.coordFields=e,n},be={id:"snappers",install(t){const{interactStatic:e}=t;e.snappers=D(e.snappers||{},r),e.createSnapGrid=e.snappers.grid}};class we{constructor(t){this.states=[],this.startOffset={left:0,right:0,top:0,bottom:0},this.startDelta=null,this.result=null,this.endResult=null,this.edges=void 0,this.interaction=void 0,this.interaction=t,this.result=xe()}start({phase:t},e){const{interaction:n}=this,r=function(t){const e=t.interactable.options[t.prepared.name],n=e.modifiers;return n&&n.length?n:["snap","snapSize","snapEdges","restrict","restrictEdges","restrictSize"].map((t=>{const n=e[t];return n&&n.enabled&&{options:n,methods:n._methods}})).filter((t=>!!t))}(n);var i,o;this.prepareStates(r),this.edges=D({},n.edges),this.startOffset=(o=e,(i=n.rect)?{left:o.x-i.left,top:o.y-i.top,right:i.right-o.x,bottom:i.bottom-o.y}:{left:0,top:0,right:0,bottom:0}),this.startDelta={x:0,y:0};const s={phase:t,pageCoords:e,preEnd:!1};return this.result=xe(),this.startAll(s),this.result=this.setAll(s)}fillArg(t){const{interaction:e}=this;t.interaction=e,t.interactable=e.interactable,t.element=e.element,t.rect=t.rect||e.rect,t.edges=this.edges,t.startOffset=this.startOffset}startAll(t){this.fillArg(t);for(const e of this.states)e.methods.start&&(t.state=e,e.methods.start(t))}setAll(t){this.fillArg(t);const{phase:e,preEnd:n,skipModifiers:r,rect:i}=t;t.coords=D({},t.pageCoords),t.rect=D({},i);const o=r?this.states.slice(r):this.states,s=xe(t.coords,t.rect);for(const r of o){const{options:i}=r,o=D({},t.coords);let a=null;r.methods.set&&this.shouldDo(i,n,e)&&(t.state=r,a=r.methods.set(t),nt(this.interaction.edges,t.rect,{x:t.coords.x-o.x,y:t.coords.y-o.y})),s.eventProps.push(a)}s.delta.x=t.coords.x-t.pageCoords.x,s.delta.y=t.coords.y-t.pageCoords.y,s.rectDelta.left=t.rect.left-i.left,s.rectDelta.right=t.rect.right-i.right,s.rectDelta.top=t.rect.top-i.top,s.rectDelta.bottom=t.rect.bottom-i.bottom;const a=this.result.coords,c=this.result.rect;if(a&&c){const t=s.rect.left!==c.left||s.rect.right!==c.right||s.rect.top!==c.top||s.rect.bottom!==c.bottom;s.changed=t||a.x!==s.coords.x||a.y!==s.coords.y}return s}applyToInteraction(t){const{interaction:e}=this,{phase:n}=t,r=e.coords.cur,i=e.coords.start,{result:o,startDelta:s}=this,a=o.delta;"start"===n&&D(this.startDelta,o.delta);for(const[t,e]of[[i,s],[r,a]])t.page.x+=e.x,t.page.y+=e.y,t.client.x+=e.x,t.client.y+=e.y;const{rectDelta:c}=this.result,l=t.rect||e.rect;l.left+=c.left,l.right+=c.right,l.top+=c.top,l.bottom+=c.bottom,l.width=l.right-l.left,l.height=l.bottom-l.top}setAndApply(t){const{interaction:e}=this,{phase:n,preEnd:r,skipModifiers:i}=t,o=this.setAll({preEnd:r,phase:n,pageCoords:t.modifiedCoords||e.coords.cur.page});if(this.result=o,!o.changed&&(!i||i<this.states.length)&&e.interacting())return!1;if(t.modifiedCoords){const{page:n}=e.coords.cur,r={x:t.modifiedCoords.x-n.x,y:t.modifiedCoords.y-n.y};o.coords.x+=r.x,o.coords.y+=r.y,o.delta.x+=r.x,o.delta.y+=r.y}this.applyToInteraction(t)}beforeEnd(t){const{interaction:e,event:n}=t,r=this.states;if(!r||!r.length)return;let i=!1;for(const e of r){t.state=e;const{options:n,methods:r}=e,o=r.beforeEnd&&r.beforeEnd(t);if(o)return this.endResult=o,!1;i=i||!i&&this.shouldDo(n,!0,t.phase,!0)}i&&e.move({event:n,preEnd:!0})}stop(t){const{interaction:e}=t;if(!this.states||!this.states.length)return;const n=D({states:this.states,interactable:e.interactable,element:e.element,rect:null},t);this.fillArg(n);for(const t of this.states)n.state=t,t.methods.stop&&t.methods.stop(n);this.states=null,this.endResult=null}prepareStates(t){this.states=[];for(let e=0;e<t.length;e++){const{options:n,methods:r,name:i}=t[e];this.states.push({options:n,methods:r,index:e,name:i})}return this.states}restoreInteractionCoords({interaction:{coords:t,rect:e,modification:n}}){if(!n.result)return;const{startDelta:r}=n,{delta:i,rectDelta:o}=n.result,s=[[t.start,r],[t.cur,i]];for(const[t,e]of s)t.page.x-=e.x,t.page.y-=e.y,t.client.x-=e.x,t.client.y-=e.y;e.left-=o.left,e.right-=o.right,e.top-=o.top,e.bottom-=o.bottom}shouldDo(t,e,n,r){return!(!t||!1===t.enabled||r&&!t.endOnly||t.endOnly&&!e||"start"===n&&!t.setStart)}copyFrom(t){this.startOffset=t.startOffset,this.startDelta=t.startDelta,this.edges=t.edges,this.states=t.states.map((t=>N(t))),this.result=xe(D({},t.result.coords),D({},t.result.rect))}destroy(){for(const t in this)this[t]=null}}function xe(t,e){return{rect:e,coords:t,delta:{x:0,y:0},rectDelta:{left:0,right:0,top:0,bottom:0},eventProps:[],changed:!0}}function _e(t,e){const{defaults:n}=t,r={start:t.start,set:t.set,beforeEnd:t.beforeEnd,stop:t.stop},i=t=>{const i=t||{};i.enabled=!1!==i.enabled;for(const t in n)t in i||(i[t]=n[t]);const o={options:i,methods:r,name:e,enable:()=>(i.enabled=!0,o),disable:()=>(i.enabled=!1,o)};return o};return e&&"string"==typeof e&&(i._defaults=n,i._methods=r),i}function ke({iEvent:t,interaction:{modification:{result:e}}}){e&&(t.modifiers=e.eventProps)}var Ce={id:"modifiers/base",before:["actions"],install:t=>{t.defaults.perAction.modifiers=[]},listeners:{"interactions:new":({interaction:t})=>{t.modification=new we(t)},"interactions:before-action-start":t=>{const{modification:e}=t.interaction;e.start(t,t.interaction.coords.start.page),t.interaction.edges=e.edges,e.applyToInteraction(t)},"interactions:before-action-move":t=>t.interaction.modification.setAndApply(t),"interactions:before-action-end":t=>t.interaction.modification.beforeEnd(t),"interactions:action-start":ke,"interactions:action-move":ke,"interactions:action-end":ke,"interactions:after-action-start":t=>t.interaction.modification.restoreInteractionCoords(t),"interactions:after-action-move":t=>t.interaction.modification.restoreInteractionCoords(t),"interactions:stop":t=>t.interaction.modification.stop(t)}};function Se({startCoords:t,edgeSign:e},n,r){n?r.y=t.y+(r.x-t.x)*e:r.x=t.x+(r.y-t.y)*e}function Ae({startRect:t,startCoords:e,ratio:n,edgeSign:r},i,o,s){if(i){const i=s.width/n;o.y=e.y+(i-t.height)*r}else{const i=s.height*n;o.x=e.x+(i-t.width)*r}}var Ee=_e({start(t){const{state:e,rect:n,edges:r,pageCoords:i}=t;let{ratio:o}=e.options;const{equalDelta:s,modifiers:a}=e.options;"preserve"===o&&(o=n.width/n.height),e.startCoords=D({},i),e.startRect=D({},n),e.ratio=o,e.equalDelta=s;const c=e.linkedEdges={top:r.top||r.left&&!r.bottom,left:r.left||r.top&&!r.right,bottom:r.bottom||r.right&&!r.top,right:r.right||r.bottom&&!r.left};if(e.xIsPrimaryAxis=!(!r.left&&!r.right),e.equalDelta)e.edgeSign=(c.left?1:-1)*(c.top?1:-1);else{const t=e.xIsPrimaryAxis?c.top:c.left;e.edgeSign=t?-1:1}if(D(t.edges,c),!a||!a.length)return;const l=new we(t.interaction);l.copyFrom(t.interaction.modification),l.prepareStates(a),e.subModification=l,l.startAll({...t})},set(t){const{state:e,rect:n,coords:r}=t,i=D({},r),o=e.equalDelta?Se:Ae;if(o(e,e.xIsPrimaryAxis,r,n),!e.subModification)return null;const s=D({},n);nt(e.linkedEdges,s,{x:r.x-i.x,y:r.y-i.y});const a=e.subModification.setAll({...t,rect:s,edges:e.linkedEdges,pageCoords:r,prevCoords:r,prevRect:s}),{delta:c}=a;return a.changed&&(o(e,Math.abs(c.x)>Math.abs(c.y),a.coords,a.rect),D(r,a.coords)),a.eventProps},defaults:{ratio:"preserve",equalDelta:!1,modifiers:[],enabled:!1}},"aspectRatio");const Oe=()=>{};Oe._defaults={};var Te=Oe;function Pe(t,e,n){return x(t)?Q(t,e.interactable,e.element,[n.x,n.y,e]):Q(t,e.interactable,e.element)}const Ie={start:function({rect:t,startOffset:e,state:n,interaction:r,pageCoords:i}){const{options:o}=n,{elementRect:s}=o,a=D({left:0,top:0,right:0,bottom:0},o.offset||{});if(t&&s){const n=Pe(o.restriction,r,i);if(n){const e=n.right-n.left-t.width,r=n.bottom-n.top-t.height;e<0&&(a.left+=e,a.right+=e),r<0&&(a.top+=r,a.bottom+=r)}a.left+=e.left-t.width*s.left,a.top+=e.top-t.height*s.top,a.right+=e.right-t.width*(1-s.right),a.bottom+=e.bottom-t.height*(1-s.bottom)}n.offset=a},set:function({coords:t,interaction:e,state:n}){const{options:r,offset:i}=n,o=Pe(r.restriction,e,t);if(!o)return;const s=function(t){return!t||"left"in t&&"top"in t||((t=D({},t)).left=t.x||0,t.top=t.y||0,t.right=t.right||t.left+t.width,t.bottom=t.bottom||t.top+t.height),t}(o);t.x=Math.max(Math.min(s.right-i.right,t.x),s.left+i.left),t.y=Math.max(Math.min(s.bottom-i.bottom,t.y),s.top+i.top)},defaults:{restriction:null,elementRect:null,offset:null,endOnly:!1,enabled:!1}};var Re=_e(Ie,"restrict");const Me={top:1/0,left:1/0,bottom:-1/0,right:-1/0},Ne={top:-1/0,left:-1/0,bottom:1/0,right:1/0};function De(t,e){for(const n of["top","left","bottom","right"])n in t||(t[n]=e[n]);return t}const je={noInner:Me,noOuter:Ne,start:function({interaction:t,startOffset:e,state:n}){const{options:r}=n;let i;r&&(i=tt(Pe(r.offset,t,t.coords.start.page))),i=i||{x:0,y:0},n.offset={top:i.y+e.top,left:i.x+e.left,bottom:i.y-e.bottom,right:i.x-e.right}},set:function({coords:t,edges:e,interaction:n,state:r}){const{offset:i,options:o}=r;if(!e)return;const s=D({},t),a=Pe(o.inner,n,s)||{},c=Pe(o.outer,n,s)||{};De(a,Me),De(c,Ne),e.top?t.y=Math.min(Math.max(c.top+i.top,s.y),a.top+i.top):e.bottom&&(t.y=Math.max(Math.min(c.bottom+i.bottom,s.y),a.bottom+i.bottom)),e.left?t.x=Math.min(Math.max(c.left+i.left,s.x),a.left+i.left):e.right&&(t.x=Math.max(Math.min(c.right+i.right,s.x),a.right+i.right))},defaults:{inner:null,outer:null,offset:null,endOnly:!1,enabled:!1}};var Le=_e(je,"restrictEdges");const ze=D({get elementRect(){return{top:0,left:0,bottom:1,right:1}},set elementRect(t){}},Ie.defaults);var $e=_e({start:Ie.start,set:Ie.set,defaults:ze},"restrictRect");const Be={width:-1/0,height:-1/0},He={width:1/0,height:1/0};var Ue=_e({start:function(t){return je.start(t)},set:function(t){const{interaction:e,state:n,rect:r,edges:i}=t,{options:o}=n;if(!i)return;const s=et(Pe(o.min,e,t.coords))||Be,a=et(Pe(o.max,e,t.coords))||He;n.options={endOnly:o.endOnly,inner:D({},je.noInner),outer:D({},je.noOuter)},i.top?(n.options.inner.top=r.bottom-s.height,n.options.outer.top=r.bottom-a.height):i.bottom&&(n.options.inner.bottom=r.top+s.height,n.options.outer.bottom=r.top+a.height),i.left?(n.options.inner.left=r.right-s.width,n.options.outer.left=r.right-a.width):i.right&&(n.options.inner.right=r.left+s.width,n.options.outer.right=r.left+a.width),je.set(t),n.options=o},defaults:{min:null,max:null,endOnly:!1,enabled:!1}},"restrictSize");const Fe={start:function(t){const{interaction:e,interactable:n,element:r,rect:i,state:o,startOffset:s}=t,{options:a}=o,c=a.offsetWithOrigin?function(t){const{element:e}=t.interaction;return tt(Q(t.state.options.origin,null,null,[e]))||rt(t.interactable,e,t.interaction.prepared.name)}(t):{x:0,y:0};let l;if("startCoords"===a.offset)l={x:e.coords.start.page.x,y:e.coords.start.page.y};else{const t=Q(a.offset,n,r,[e]);l=tt(t)||{x:0,y:0},l.x+=c.x,l.y+=c.y}const{relativePoints:u}=a;o.offsets=i&&u&&u.length?u.map(((t,e)=>({index:e,relativePoint:t,x:s.left-i.width*t.x+l.x,y:s.top-i.height*t.y+l.y}))):[D({index:0,relativePoint:null},l)]},set:function(t){const{interaction:e,coords:n,state:r}=t,{options:i,offsets:o}=r,s=rt(e.interactable,e.element,e.prepared.name),a=D({},n),c=[];i.offsetWithOrigin||(a.x-=s.x,a.y-=s.y);for(const t of o){const n=a.x-t.x,r=a.y-t.y;for(let o=0,s=i.targets.length;o<s;o++){const s=i.targets[o];let a;a=x(s)?s(n,r,e._proxy,t,o):s,a&&c.push({x:(_(a.x)?a.x:n)+t.x,y:(_(a.y)?a.y:r)+t.y,range:_(a.range)?a.range:i.range,source:s,index:o,offset:t})}}const l={target:null,inRange:!1,distance:0,range:0,delta:{x:0,y:0}};for(const t of c){const e=t.range,n=t.x-a.x,r=t.y-a.y,i=it(n,r);let o=i<=e;e===1/0&&l.inRange&&l.range!==1/0&&(o=!1),l.target&&!(o?l.inRange&&e!==1/0?i/e<l.distance/l.range:e===1/0&&l.range!==1/0||i<l.distance:!l.inRange&&i<l.distance)||(l.target=t,l.distance=i,l.range=e,l.inRange=o,l.delta.x=n,l.delta.y=r)}return l.inRange&&(n.x=l.target.x,n.y=l.target.y),r.closest=l,l},defaults:{range:1/0,targets:null,offset:null,offsetWithOrigin:!0,origin:null,relativePoints:null,endOnly:!1,enabled:!1}};var qe=_e(Fe,"snap");const We={start:function(t){const{state:e,edges:n}=t,{options:r}=e;if(!n)return null;t.state={options:{targets:null,relativePoints:[{x:n.left?0:1,y:n.top?0:1}],offset:r.offset||"self",origin:{x:0,y:0},range:r.range}},e.targetFields=e.targetFields||[["width","height"],["x","y"]],Fe.start(t),e.offsets=t.state.offsets,t.state=e},set:function(t){const{interaction:e,state:n,coords:r}=t,{options:i,offsets:o}=n,s={x:r.x-o[0].x,y:r.y-o[0].y};n.options=D({},i),n.options.targets=[];for(const t of i.targets||[]){let r;if(r=x(t)?t(s.x,s.y,e):t,r){for(const[t,e]of n.targetFields)if(t in r||e in r){r.x=r[t],r.y=r[e];break}n.options.targets.push(r)}}const a=Fe.set(t);return n.options=i,a},defaults:{range:1/0,targets:null,offset:null,endOnly:!1,enabled:!1}};var Ve,Ye=_e(We,"snapSize"),Xe={aspectRatio:Ee,restrictEdges:Le,restrict:Re,restrictRect:$e,restrictSize:Ue,snapEdges:_e({start:function(t){const{edges:e}=t;return e?(t.state.targetFields=t.state.targetFields||[[e.left?"left":"right",e.top?"top":"bottom"]],We.start(t)):null},set:We.set,defaults:D(N(We.defaults),{targets:null,range:null,offset:{x:0,y:0}})},"snapEdges"),snap:qe,snapSize:Ye,spring:Te,avoid:Te,transform:Te,rubberband:Te},Je={id:"modifiers",install(t){const{interactStatic:e}=t;t.usePlugin(Ce),t.usePlugin(be),e.modifiers=Xe;for(const e in Xe){const{_defaults:n,_methods:r}=Xe[e];n._methods=r,t.defaults.perAction[e]=n}}};"object"==typeof window&&window&&Wt(window),qt.use(Je),function(t){t.touchAction="touchAction",t.boxSizing="boxSizing",t.noListeners="noListeners"}(Ve||(Ve={}));const Ge="[interact.js] ",Ke={touchAction:"https://developer.mozilla.org/en-US/docs/Web/CSS/touch-action",boxSizing:"https://developer.mozilla.org/en-US/docs/Web/CSS/box-sizing"},Ze=[{name:Ve.touchAction,perform:({element:t})=>!function(t,e,n){let r=t;for(;S(r);){if(Qe(r,"touchAction",n))return!0;r=V(r)}return!1}(t,0,/pan-|pinch|none/),getInfo:({element:t})=>[t,Ke.touchAction],text:'Consider adding CSS "touch-action: none" to this element\n'},{name:Ve.boxSizing,perform(t){const{element:e}=t;return"resize"===t.prepared.name&&e instanceof h.HTMLElement&&!Qe(e,"boxSizing",/border-box/)},text:'Consider adding CSS "box-sizing: border-box" to this resizable element',getInfo:({element:t})=>[t,Ke.boxSizing]},{name:Ve.noListeners,perform(t){const e=t.prepared.name;return!(t.interactable.events.types[`${e}move`]||[]).length},getInfo:t=>[t.prepared.name,t.interactable],text:"There are no listeners set for this action"}];function Qe(t,e,n){const r=t.style[e]||f.getComputedStyle(t)[e];return n.test((r||"").toString())}var tn={id:"dev-tools",install:function(t,{logger:e}={}){const{Interactable:n,defaults:r}=t;t.logger=e||console,r.base.devTools={ignore:{}},n.prototype.devTools=function(t){return t?(D(this.options.devTools,t),this):this.options.devTools}},listeners:{"interactions:action-start":({interaction:t},e)=>{for(const n of Ze){const r=t.interactable&&t.interactable.options;r&&r.devTools&&r.devTools.ignore[n.name]||!n.perform(t)||e.logger.warn(Ge+n.text,...n.getInfo(t))}}},checks:Ze,CheckName:Ve,links:Ke,prefix:Ge};"object"==typeof window&&window&&Wt(window),qt.use(tn);var en={name:"GridItem",props:{isDraggable:{type:Boolean,required:!1,default:null},isResizable:{type:Boolean,required:!1,default:null},static:{type:Boolean,required:!1,default:!1},minH:{type:Number,required:!1,default:1},minW:{type:Number,required:!1,default:1},maxH:{type:Number,required:!1,default:1/0},maxW:{type:Number,required:!1,default:1/0},x:{type:Number,required:!0},y:{type:Number,required:!0},w:{type:Number,required:!0},h:{type:Number,required:!0},i:{required:!0},dragIgnoreFrom:{type:String,required:!1,default:"a, button"},dragAllowFrom:{type:String,required:!1,default:null},resizeIgnoreFrom:{type:String,required:!1,default:"a, button"},preserveAspectRatio:{type:Boolean,required:!1,default:!1}},inject:["eventBus","layout"],data:function(){return{cols:1,containerWidth:100,rowHeight:30,margin:[10,10],maxRows:1/0,draggable:null,resizable:null,useCssTransforms:!0,useStyleCursor:!0,isDragging:!1,dragging:null,isResizing:!1,resizing:null,lastX:NaN,lastY:NaN,lastW:NaN,lastH:NaN,style:{},rtl:!1,dragEventSet:!1,resizeEventSet:!1,previousW:null,previousH:null,previousX:null,previousY:null,innerX:this.x,innerY:this.y,innerW:this.w,innerH:this.h}},created:function(){var t=this,e=this;e.updateWidthHandler=function(t){e.updateWidth(t)},e.compactHandler=function(t){e.compact(t)},e.setDraggableHandler=function(t){null===e.isDraggable&&(e.draggable=t)},e.setResizableHandler=function(t){null===e.isResizable&&(e.resizable=t)},e.setRowHeightHandler=function(t){e.rowHeight=t},e.setMaxRowsHandler=function(t){e.maxRows=t},e.directionchangeHandler=function(){t.rtl="rtl"===Object(c.b)(),t.compact()},e.setColNum=function(t){e.cols=parseInt(t)},this.eventBus.$on("updateWidth",e.updateWidthHandler),this.eventBus.$on("compact",e.compactHandler),this.eventBus.$on("setDraggable",e.setDraggableHandler),this.eventBus.$on("setResizable",e.setResizableHandler),this.eventBus.$on("setRowHeight",e.setRowHeightHandler),this.eventBus.$on("setMaxRows",e.setMaxRowsHandler),this.eventBus.$on("directionchange",e.directionchangeHandler),this.eventBus.$on("setColNum",e.setColNum),this.rtl="rtl"===Object(c.b)()},beforeDestroy:function(){var t=this;this.eventBus.$off("updateWidth",t.updateWidthHandler),this.eventBus.$off("compact",t.compactHandler),this.eventBus.$off("setDraggable",t.setDraggableHandler),this.eventBus.$off("setResizable",t.setResizableHandler),this.eventBus.$off("setRowHeight",t.setRowHeightHandler),this.eventBus.$off("setMaxRows",t.setMaxRowsHandler),this.eventBus.$off("directionchange",t.directionchangeHandler),this.eventBus.$off("setColNum",t.setColNum),this.interactObj&&this.interactObj.unset()},mounted:function(){this.layout.responsive&&this.layout.lastBreakpoint?this.cols=Object(a.c)(this.layout.lastBreakpoint,this.layout.cols):this.cols=this.layout.colNum,this.rowHeight=this.layout.rowHeight,this.containerWidth=null!==this.layout.width?this.layout.width:100,this.margin=void 0!==this.layout.margin?this.layout.margin:[10,10],this.maxRows=this.layout.maxRows,null===this.isDraggable?this.draggable=this.layout.isDraggable:this.draggable=this.isDraggable,null===this.isResizable?this.resizable=this.layout.isResizable:this.resizable=this.isResizable,this.useCssTransforms=this.layout.useCssTransforms,this.useStyleCursor=this.layout.useStyleCursor,this.createStyle()},watch:{isDraggable:function(){this.draggable=this.isDraggable},static:function(){this.tryMakeDraggable(),this.tryMakeResizable()},draggable:function(){this.tryMakeDraggable()},isResizable:function(){this.resizable=this.isResizable},resizable:function(){this.tryMakeResizable()},rowHeight:function(){this.createStyle(),this.emitContainerResized()},cols:function(){this.tryMakeResizable(),this.createStyle(),this.emitContainerResized()},containerWidth:function(){this.tryMakeResizable(),this.createStyle(),this.emitContainerResized()},x:function(t){this.innerX=t,this.createStyle()},y:function(t){this.innerY=t,this.createStyle()},h:function(t){this.innerH=t,this.createStyle()},w:function(t){this.innerW=t,this.createStyle()},renderRtl:function(){this.tryMakeResizable(),this.createStyle()},minH:function(){this.tryMakeResizable()},maxH:function(){this.tryMakeResizable()},minW:function(){this.tryMakeResizable()},maxW:function(){this.tryMakeResizable()},"$parent.margin":function(t){!t||t[0]==this.margin[0]&&t[1]==this.margin[1]||(this.margin=t.map((function(t){return Number(t)})),this.createStyle(),this.emitContainerResized())}},computed:{classObj:function(){return{"vue-resizable":this.resizableAndNotStatic,static:this.static,resizing:this.isResizing,"vue-draggable-dragging":this.isDragging,cssTransforms:this.useCssTransforms,"render-rtl":this.renderRtl,"disable-userselect":this.isDragging,"no-touch":this.isAndroid&&this.draggableOrResizableAndNotStatic}},resizableAndNotStatic:function(){return this.resizable&&!this.static},draggableOrResizableAndNotStatic:function(){return(this.draggable||this.resizable)&&!this.static},isAndroid:function(){return-1!==navigator.userAgent.toLowerCase().indexOf("android")},renderRtl:function(){return this.layout.isMirrored?!this.rtl:this.rtl},resizableHandleClass:function(){return this.renderRtl?"vue-resizable-handle vue-rtl-resizable-handle":"vue-resizable-handle"}},methods:{createStyle:function(){this.x+this.w>this.cols?(this.innerX=0,this.innerW=this.w>this.cols?this.cols:this.w):(this.innerX=this.x,this.innerW=this.w);var t,e=this.calcPosition(this.innerX,this.innerY,this.innerW,this.innerH);this.isDragging&&(e.top=this.dragging.top,this.renderRtl?e.right=this.dragging.left:e.left=this.dragging.left),this.isResizing&&(e.width=this.resizing.width,e.height=this.resizing.height),t=this.useCssTransforms?this.renderRtl?Object(i.k)(e.top,e.right,e.width,e.height):Object(i.j)(e.top,e.left,e.width,e.height):this.renderRtl?Object(i.i)(e.top,e.right,e.width,e.height):Object(i.h)(e.top,e.left,e.width,e.height),this.style=t},emitContainerResized:function(){for(var t={},e=0,n=["width","height"];e<n.length;e++){var r=n[e],i=this.style[r].match(/^(\d+)px$/);if(!i)return;t[r]=i[1]}this.$emit("container-resized",this.i,this.h,this.w,t.height,t.width)},handleResize:function(t){if(!this.static){var e=o(t);if(null!=e){var n,r=e.x,i=e.y,a={width:0,height:0};switch(t.type){case"resizestart":this.previousW=this.innerW,this.previousH=this.innerH,n=this.calcPosition(this.innerX,this.innerY,this.innerW,this.innerH),a.width=n.width,a.height=n.height,this.resizing=a,this.isResizing=!0;break;case"resizemove":var c=s(this.lastW,this.lastH,r,i);this.renderRtl?a.width=this.resizing.width-c.deltaX:a.width=this.resizing.width+c.deltaX,a.height=this.resizing.height+c.deltaY,this.resizing=a;break;case"resizeend":n=this.calcPosition(this.innerX,this.innerY,this.innerW,this.innerH),a.width=n.width,a.height=n.height,this.resizing=null,this.isResizing=!1}(n=this.calcWH(a.height,a.width)).w<this.minW&&(n.w=this.minW),n.w>this.maxW&&(n.w=this.maxW),n.h<this.minH&&(n.h=this.minH),n.h>this.maxH&&(n.h=this.maxH),n.h<1&&(n.h=1),n.w<1&&(n.w=1),this.lastW=r,this.lastH=i,this.innerW===n.w&&this.innerH===n.h||this.$emit("resize",this.i,n.h,n.w,a.height,a.width),"resizeend"!==t.type||this.previousW===this.innerW&&this.previousH===this.innerH||this.$emit("resized",this.i,n.h,n.w,a.height,a.width),this.eventBus.$emit("resizeEvent",t.type,this.i,this.innerX,this.innerY,n.h,n.w)}}},handleDrag:function(t){if(!this.static&&!this.isResizing){var e=o(t);if(null!==e){var n,r=e.x,i=e.y,a={top:0,left:0};switch(t.type){case"dragstart":this.previousX=this.innerX,this.previousY=this.innerY;var c=t.target.offsetParent.getBoundingClientRect(),l=t.target.getBoundingClientRect();this.renderRtl?a.left=-1*(l.right-c.right):a.left=l.left-c.left,a.top=l.top-c.top,this.dragging=a,this.isDragging=!0;break;case"dragend":if(!this.isDragging)return;var u=t.target.offsetParent.getBoundingClientRect(),h=t.target.getBoundingClientRect();this.renderRtl?a.left=-1*(h.right-u.right):a.left=h.left-u.left,a.top=h.top-u.top,this.dragging=null,this.isDragging=!1;break;case"dragmove":var p=s(this.lastX,this.lastY,r,i);this.renderRtl?a.left=this.dragging.left-p.deltaX:a.left=this.dragging.left+p.deltaX,a.top=this.dragging.top+p.deltaY,this.dragging=a}this.renderRtl,n=this.calcXY(a.top,a.left),this.lastX=r,this.lastY=i,this.innerX===n.x&&this.innerY===n.y||this.$emit("move",this.i,n.x,n.y),"dragend"!==t.type||this.previousX===this.innerX&&this.previousY===this.innerY||this.$emit("moved",this.i,n.x,n.y),this.eventBus.$emit("dragEvent",t.type,this.i,n.x,n.y,this.innerH,this.innerW)}}},calcPosition:function(t,e,n,r){var i=this.calcColWidth();return this.renderRtl?{right:Math.round(i*t+(t+1)*this.margin[0]),top:Math.round(this.rowHeight*e+(e+1)*this.margin[1]),width:n===1/0?n:Math.round(i*n+Math.max(0,n-1)*this.margin[0]),height:r===1/0?r:Math.round(this.rowHeight*r+Math.max(0,r-1)*this.margin[1])}:{left:Math.round(i*t+(t+1)*this.margin[0]),top:Math.round(this.rowHeight*e+(e+1)*this.margin[1]),width:n===1/0?n:Math.round(i*n+Math.max(0,n-1)*this.margin[0]),height:r===1/0?r:Math.round(this.rowHeight*r+Math.max(0,r-1)*this.margin[1])}},calcXY:function(t,e){var n=this.calcColWidth(),r=Math.round((e-this.margin[0])/(n+this.margin[0])),i=Math.round((t-this.margin[1])/(this.rowHeight+this.margin[1]));return{x:r=Math.max(Math.min(r,this.cols-this.innerW),0),y:i=Math.max(Math.min(i,this.maxRows-this.innerH),0)}},calcColWidth:function(){return(this.containerWidth-this.margin[0]*(this.cols+1))/this.cols},calcWH:function(t,e){var n=this.calcColWidth(),r=Math.round((e+this.margin[0])/(n+this.margin[0])),i=Math.round((t+this.margin[1])/(this.rowHeight+this.margin[1]));return{w:r=Math.max(Math.min(r,this.cols-this.innerX),0),h:i=Math.max(Math.min(i,this.maxRows-this.innerY),0)}},updateWidth:function(t,e){this.containerWidth=t,null!=e&&(this.cols=e)},compact:function(){this.createStyle()},tryMakeDraggable:function(){var t=this;if(null!==this.interactObj&&void 0!==this.interactObj||(this.interactObj=qt(this.$refs.item),this.useStyleCursor||this.interactObj.styleCursor(!1)),this.draggable&&!this.static){var e={ignoreFrom:this.dragIgnoreFrom,allowFrom:this.dragAllowFrom};this.interactObj.draggable(e),this.dragEventSet||(this.dragEventSet=!0,this.interactObj.on("dragstart dragmove dragend",(function(e){t.handleDrag(e)})))}else this.interactObj.draggable({enabled:!1})},tryMakeResizable:function(){var t=this;if(null!==this.interactObj&&void 0!==this.interactObj||(this.interactObj=qt(this.$refs.item),this.useStyleCursor||this.interactObj.styleCursor(!1)),this.resizable&&!this.static){var e=this.calcPosition(0,0,this.maxW,this.maxH),n=this.calcPosition(0,0,this.minW,this.minH),r={edges:{left:!1,right:"."+this.resizableHandleClass.trim().replace(" ","."),bottom:"."+this.resizableHandleClass.trim().replace(" ","."),top:!1},ignoreFrom:this.resizeIgnoreFrom,restrictSize:{min:{height:n.height,width:n.width},max:{height:e.height,width:e.width}}};this.preserveAspectRatio&&(r.modifiers=[qt.modifiers.aspectRatio({ratio:"preserve"})]),this.interactObj.resizable(r),this.resizeEventSet||(this.resizeEventSet=!0,this.interactObj.on("resizestart resizemove resizeend",(function(e){t.handleResize(e)})))}else this.interactObj.resizable({enabled:!1})},autoSize:function(){this.previousW=this.innerW,this.previousH=this.innerH;var t=this.$slots.default[0].elm.getBoundingClientRect(),e=this.calcWH(t.height,t.width);e.w<this.minW&&(e.w=this.minW),e.w>this.maxW&&(e.w=this.maxW),e.h<this.minH&&(e.h=this.minH),e.h>this.maxH&&(e.h=this.maxH),e.h<1&&(e.h=1),e.w<1&&(e.w=1),this.innerW===e.w&&this.innerH===e.h||this.$emit("resize",this.i,e.h,e.w,t.height,t.width),this.previousW===e.w&&this.previousH===e.h||(this.$emit("resized",this.i,e.h,e.w,t.height,t.width),this.eventBus.$emit("resizeEvent","resizeend",this.i,this.innerX,this.innerY,e.h,e.w))}}},nn=(n("5ed4"),n("2877")),rn=Object(nn.a)(en,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{ref:"item",staticClass:"vue-grid-item",class:t.classObj,style:t.style},[t._t("default"),t.resizableAndNotStatic?n("span",{ref:"handle",class:t.resizableHandleClass}):t._e()],2)}),[],!1,null,null,null);e.a=rn.exports},be13:function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},c274:function(t,e,n){"use strict";var r=n("50bf");function i(){var t={},e=0,n=0,r=0;return{add:function(i,o){o||(o=i,i=0),i>n?n=i:i<r&&(r=i),t[i]||(t[i]=[]),t[i].push(o),e++},process:function(){for(var e=r;e<=n;e++)for(var i=t[e],o=0;o<i.length;o++)(0,i[o])()},size:function(){return e}}}t.exports=function(t){var e=(t=t||{}).reporter,n=r.getOption(t,"async",!0),o=r.getOption(t,"auto",!0);o&&!n&&(e&&e.warn("Invalid options combination. auto=true and async=false is invalid. Setting async=true."),n=!0);var s,a=i(),c=!1;function l(){for(c=!0;a.size();){var t=a;a=i(),t.process()}c=!1}function u(){s=setTimeout(l,0)}return{add:function(t,e){!c&&o&&n&&0===a.size()&&u(),a.add(t,e)},force:function(t){c||(void 0===t&&(t=n),s&&(clearTimeout(s),s=null),t?u():l())}}}},c366:function(t,e,n){var r=n("6821"),i=n("9def"),o=n("77f1");t.exports=function(t){return function(e,n,s){var a,c=r(e),l=i(c.length),u=o(s,l);if(t&&n!=n){for(;l>u;)if((a=c[u++])!=a)return!0}else for(;l>u;u++)if((t||u in c)&&c[u]===n)return t||u||0;return!t&&-1}}},c5f6:function(t,e,n){"use strict";var r=n("7726"),i=n("69a8"),o=n("2d95"),s=n("5dbc"),a=n("6a99"),c=n("79e5"),l=n("9093").f,u=n("11e9").f,h=n("86cc").f,p=n("aa77").trim,d="Number",f=r.Number,g=f,v=f.prototype,m=o(n("2aeb")(v))==d,y="trim"in String.prototype,b=function(t){var e=a(t,!1);if("string"==typeof e&&e.length>2){var n,r,i,o=(e=y?e.trim():p(e,3)).charCodeAt(0);if(43===o||45===o){if(88===(n=e.charCodeAt(2))||120===n)return NaN}else if(48===o){switch(e.charCodeAt(1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+e}for(var s,c=e.slice(2),l=0,u=c.length;l<u;l++)if((s=c.charCodeAt(l))<48||s>i)return NaN;return parseInt(c,r)}}return+e};if(!f(" 0o1")||!f("0b1")||f("+0x1")){f=function(t){var e=arguments.length<1?0:t,n=this;return n instanceof f&&(m?c((function(){v.valueOf.call(n)})):o(n)!=d)?s(new g(b(e)),n,f):b(e)};for(var w,x=n("9e1e")?l(g):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),_=0;x.length>_;_++)i(g,w=x[_])&&!i(f,w)&&h(f,w,u(g,w));f.prototype=v,v.constructor=f,n("2aba")(r,d,f)}},c69a:function(t,e,n){t.exports=!n("9e1e")&&!n("79e5")((function(){return 7!=Object.defineProperty(n("230e")("div"),"a",{get:function(){return 7}}).a}))},c8ba:function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},c946:function(t,e,n){"use strict";var r=n("b770").forEach;t.exports=function(t){var e=(t=t||{}).reporter,n=t.batchProcessor,i=t.stateHandler.getState,o=(t.stateHandler.hasState,t.idHandler);if(!n)throw new Error("Missing required dependency: batchProcessor");if(!e)throw new Error("Missing required dependency: reporter.");var s=function(){var t=document.createElement("div");t.style.cssText=l(["position: absolute","width: 1000px","height: 1000px","visibility: hidden","margin: 0","padding: 0"]);var e=document.createElement("div");e.style.cssText=l(["position: absolute","width: 500px","height: 500px","overflow: scroll","visibility: none","top: -1500px","left: -1500px","visibility: hidden","margin: 0","padding: 0"]),e.appendChild(t),document.body.insertBefore(e,document.body.firstChild);var n=500-e.clientWidth,r=500-e.clientHeight;return document.body.removeChild(e),{width:n,height:r}}(),a="erd_scroll_detection_container";function c(t){!function(t,e,n){if(!t.getElementById(e)){var r=n+"_animation",i="/* Created by the element-resize-detector library. */\n";i+="."+n+" > div::-webkit-scrollbar { "+l(["display: none"])+" }\n\n",i+=".erd_scroll_detection_container_animation_active { "+l(["-webkit-animation-duration: 0.1s","animation-duration: 0.1s","-webkit-animation-name: "+r,"animation-name: "+r])+" }\n",i+="@-webkit-keyframes "+r+" { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }\n",function(n,r){r=r||function(e){t.head.appendChild(e)};var i=t.createElement("style");i.innerHTML=n,i.id=e,r(i)}(i+="@keyframes "+r+" { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }")}}(t,"erd_scroll_detection_scrollbar_style",a)}function l(e){var n=t.important?" !important; ":"; ";return(e.join(n)+n).trim()}function u(t,n,r){if(t.addEventListener)t.addEventListener(n,r);else{if(!t.attachEvent)return e.error("[scroll] Don't know how to add event listeners.");t.attachEvent("on"+n,r)}}function h(t,n,r){if(t.removeEventListener)t.removeEventListener(n,r);else{if(!t.detachEvent)return e.error("[scroll] Don't know how to remove event listeners.");t.detachEvent("on"+n,r)}}function p(t){return i(t).container.childNodes[0].childNodes[0].childNodes[0]}function d(t){return i(t).container.childNodes[0].childNodes[0].childNodes[1]}return c(window.document),{makeDetectable:function(t,c,h){function f(){if(t.debug){var n=Array.prototype.slice.call(arguments);if(n.unshift(o.get(c),"Scroll: "),e.log.apply)e.log.apply(null,n);else for(var r=0;r<n.length;r++)e.log(n[r])}}function g(t){var e=i(t).container.childNodes[0],n=window.getComputedStyle(e);return!n.width||-1===n.width.indexOf("px")}function v(){var t=window.getComputedStyle(c),e={};return e.position=t.position,e.width=c.offsetWidth,e.height=c.offsetHeight,e.top=t.top,e.right=t.right,e.bottom=t.bottom,e.left=t.left,e.widthCSS=t.width,e.heightCSS=t.height,e}function m(){if(f("storeStyle invoked."),i(c)){var t=v();i(c).style=t}else f("Aborting because element has been uninstalled")}function y(t,e,n){i(t).lastWidth=e,i(t).lastHeight=n}function b(){return 2*s.width+1}function w(){return 2*s.height+1}function x(t){return t+10+b()}function _(t){return t+10+w()}function k(t,e,n){var r=p(t),i=d(t),o=x(e),s=_(n),a=function(t){return 2*t+b()}(e),c=function(t){return 2*t+w()}(n);r.scrollLeft=o,r.scrollTop=s,i.scrollLeft=a,i.scrollTop=c}function C(){var t=i(c).container;if(!t){(t=document.createElement("div")).className=a,t.style.cssText=l(["visibility: hidden","display: inline","width: 0px","height: 0px","z-index: -1","overflow: hidden","margin: 0","padding: 0"]),i(c).container=t,function(t){t.className+=" "+a+"_animation_active"}(t),c.appendChild(t);var e=function(){i(c).onRendered&&i(c).onRendered()};u(t,"animationstart",e),i(c).onAnimationStart=e}return t}function S(){if(f("Injecting elements"),i(c)){!function(){var n=i(c).style;if("static"===n.position){c.style.setProperty("position","relative",t.important?"important":"");var r=function(t,e,n,r){var i=n[r];"auto"!==i&&"0"!==function(t){return t.replace(/[^-\d\.]/g,"")}(i)&&(t.warn("An element that is positioned static has style."+r+"="+i+" which is ignored due to the static positioning. The element will need to be positioned relative, so the style."+r+" will be set to 0. Element: ",e),e.style[r]=0)};r(e,c,n,"top"),r(e,c,n,"right"),r(e,c,n,"bottom"),r(e,c,n,"left")}}();var n=i(c).container;n||(n=C());var r,o,h,p,d=s.width,g=s.height,v=l(["position: absolute","flex: none","overflow: hidden","z-index: -1","visibility: hidden","width: 100%","height: 100%","left: 0px","top: 0px"]),m=l(["position: absolute","flex: none","overflow: hidden","z-index: -1","visibility: hidden"].concat(["left: "+(r=(r=-(1+d))?r+"px":"0"),"top: "+(o=(o=-(1+g))?o+"px":"0"),"right: "+(p=(p=-d)?p+"px":"0"),"bottom: "+(h=(h=-g)?h+"px":"0")])),y=l(["position: absolute","flex: none","overflow: scroll","z-index: -1","visibility: hidden","width: 100%","height: 100%"]),b=l(["position: absolute","flex: none","overflow: scroll","z-index: -1","visibility: hidden","width: 100%","height: 100%"]),w=l(["position: absolute","left: 0","top: 0"]),x=l(["position: absolute","width: 200%","height: 200%"]),_=document.createElement("div"),k=document.createElement("div"),S=document.createElement("div"),A=document.createElement("div"),E=document.createElement("div"),O=document.createElement("div");_.dir="ltr",_.style.cssText=v,_.className=a,k.className=a,k.style.cssText=m,S.style.cssText=y,A.style.cssText=w,E.style.cssText=b,O.style.cssText=x,S.appendChild(A),E.appendChild(O),k.appendChild(S),k.appendChild(E),_.appendChild(k),n.appendChild(_),u(S,"scroll",T),u(E,"scroll",P),i(c).onExpandScroll=T,i(c).onShrinkScroll=P}else f("Aborting because element has been uninstalled");function T(){i(c).onExpand&&i(c).onExpand()}function P(){i(c).onShrink&&i(c).onShrink()}}function A(){function s(e,n,r){var i=function(t){return p(t).childNodes[0]}(e),o=x(n),s=_(r);i.style.setProperty("width",o+"px",t.important?"important":""),i.style.setProperty("height",s+"px",t.important?"important":"")}function a(r){var a=c.offsetWidth,u=c.offsetHeight,h=a!==i(c).lastWidth||u!==i(c).lastHeight;f("Storing current size",a,u),y(c,a,u),n.add(0,(function(){if(h)if(i(c))if(l()){if(t.debug){var n=c.offsetWidth,r=c.offsetHeight;n===a&&r===u||e.warn(o.get(c),"Scroll: Size changed before updating detector elements.")}s(c,a,u)}else f("Aborting because element container has not been initialized");else f("Aborting because element has been uninstalled")})),n.add(1,(function(){i(c)?l()?k(c,a,u):f("Aborting because element container has not been initialized"):f("Aborting because element has been uninstalled")})),h&&r&&n.add(2,(function(){i(c)?l()?r():f("Aborting because element container has not been initialized"):f("Aborting because element has been uninstalled")}))}function l(){return!!i(c).container}function u(){f("notifyListenersIfNeeded invoked");var t=i(c);return void 0===i(c).lastNotifiedWidth&&t.lastWidth===t.startSize.width&&t.lastHeight===t.startSize.height?f("Not notifying: Size is the same as the start size, and there has been no notification yet."):t.lastWidth===t.lastNotifiedWidth&&t.lastHeight===t.lastNotifiedHeight?f("Not notifying: Size already notified"):(f("Current size not notified, notifying..."),t.lastNotifiedWidth=t.lastWidth,t.lastNotifiedHeight=t.lastHeight,void r(i(c).listeners,(function(t){t(c)})))}function h(){f("Scroll detected."),g(c)?f("Scroll event fired while unrendered. Ignoring..."):a(u)}if(f("registerListenersAndPositionElements invoked."),i(c)){i(c).onRendered=function(){if(f("startanimation triggered."),g(c))f("Ignoring since element is still unrendered...");else{f("Element rendered.");var t=p(c),e=d(c);0!==t.scrollLeft&&0!==t.scrollTop&&0!==e.scrollLeft&&0!==e.scrollTop||(f("Scrollbars out of sync. Updating detector elements..."),a(u))}},i(c).onExpand=h,i(c).onShrink=h;var v=i(c).style;s(c,v.width,v.height)}else f("Aborting because element has been uninstalled")}function E(){if(f("finalizeDomMutation invoked."),i(c)){var t=i(c).style;y(c,t.width,t.height),k(c,t.width,t.height)}else f("Aborting because element has been uninstalled")}function O(){h(c)}function T(){var t;f("Installing..."),i(c).listeners=[],t=v(),i(c).startSize={width:t.width,height:t.height},f("Element start size",i(c).startSize),n.add(0,m),n.add(1,S),n.add(2,A),n.add(3,E),n.add(4,O)}h||(h=c,c=t,t=null),t=t||{},f("Making detectable..."),function(t){return!function(t){return t===t.ownerDocument.body||t.ownerDocument.body.contains(t)}(t)||null===window.getComputedStyle(t)}(c)?(f("Element is detached"),C(),f("Waiting until element is attached..."),i(c).onRendered=function(){f("Element is now attached"),T()}):T()},addListener:function(t,e){if(!i(t).listeners.push)throw new Error("Cannot add listener to an element that is not detectable.");i(t).listeners.push(e)},uninstall:function(t){var e=i(t);e&&(e.onExpandScroll&&h(p(t),"scroll",e.onExpandScroll),e.onShrinkScroll&&h(d(t),"scroll",e.onShrinkScroll),e.onAnimationStart&&h(e.container,"animationstart",e.onAnimationStart),e.container&&t.removeChild(e.container))},initDocument:c}}},ca5a:function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},cadf:function(t,e,n){"use strict";var r=n("9c6c"),i=n("d53b"),o=n("84f2"),s=n("6821");t.exports=n("01f9")(Array,"Array",(function(t,e){this._t=s(t),this._i=0,this._k=e}),(function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,i(1)):i(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])}),"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},cb7c:function(t,e,n){var r=n("d3f4");t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},ce10:function(t,e,n){var r=n("69a8"),i=n("6821"),o=n("c366")(!1),s=n("613b")("IE_PROTO");t.exports=function(t,e){var n,a=i(t),c=0,l=[];for(n in a)n!=s&&r(a,n)&&l.push(n);for(;e.length>c;)r(a,n=e[c++])&&(~o(l,n)||l.push(n));return l}},d3f4:function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},d53b:function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},d6eb:function(t,e,n){"use strict";function r(t){return t._erd}t.exports={initState:function(t){return t._erd={},r(t)},getState:r,cleanState:function(t){delete t._erd}}},d8e8:function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},e11e:function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},e279:function(t,e,n){"use strict";n("1156")},eec4:function(t,e,n){"use strict";var r=n("b770").forEach,i=n("5be5"),o=n("49ad"),s=n("2cef"),a=n("5058"),c=n("abb4"),l=n("18e9"),u=n("c274"),h=n("d6eb"),p=n("18d2"),d=n("c946");function f(t){return Array.isArray(t)||void 0!==t.length}function g(t){if(Array.isArray(t))return t;var e=[];return r(t,(function(t){e.push(t)})),e}function v(t){return t&&1===t.nodeType}function m(t,e,n){var r=t[e];return null==r&&void 0!==n?n:r}t.exports=function(t){var e;if((t=t||{}).idHandler)e={get:function(e){return t.idHandler.get(e,!0)},set:t.idHandler.set};else{var n=s(),y=a({idGenerator:n,stateHandler:h});e=y}var b=t.reporter;b||(b=c(!1===b));var w=m(t,"batchProcessor",u({reporter:b})),x={};x.callOnAdd=!!m(t,"callOnAdd",!0),x.debug=!!m(t,"debug",!1);var _,k=o(e),C=i({stateHandler:h}),S=m(t,"strategy","object"),A=m(t,"important",!1),E={reporter:b,batchProcessor:w,stateHandler:h,idHandler:e,important:A};if("scroll"===S&&(l.isLegacyOpera()?(b.warn("Scroll strategy is not supported on legacy Opera. Changing to object strategy."),S="object"):l.isIE(9)&&(b.warn("Scroll strategy is not supported on IE9. Changing to object strategy."),S="object")),"scroll"===S)_=d(E);else{if("object"!==S)throw new Error("Invalid strategy name: "+S);_=p(E)}var O={};return{listenTo:function(t,n,i){function o(t){var e=k.get(t);r(e,(function(e){e(t)}))}function s(t,e,n){k.add(e,n),t&&n(e)}if(i||(i=n,n=t,t={}),!n)throw new Error("At least one element required.");if(!i)throw new Error("Listener required.");if(v(n))n=[n];else{if(!f(n))return b.error("Invalid arguments. Must be a DOM element or a collection of DOM elements.");n=g(n)}var a=0,c=m(t,"callOnAdd",x.callOnAdd),l=m(t,"onReady",(function(){})),u=m(t,"debug",x.debug);r(n,(function(t){h.getState(t)||(h.initState(t),e.set(t));var p=e.get(t);if(u&&b.log("Attaching listener to element",p,t),!C.isDetectable(t))return u&&b.log(p,"Not detectable."),C.isBusy(t)?(u&&b.log(p,"System busy making it detectable"),s(c,t,i),O[p]=O[p]||[],void O[p].push((function(){++a===n.length&&l()}))):(u&&b.log(p,"Making detectable..."),C.markBusy(t,!0),_.makeDetectable({debug:u,important:A},t,(function(t){if(u&&b.log(p,"onElementDetectable"),h.getState(t)){C.markAsDetectable(t),C.markBusy(t,!1),_.addListener(t,o),s(c,t,i);var e=h.getState(t);if(e&&e.startSize){var d=t.offsetWidth,f=t.offsetHeight;e.startSize.width===d&&e.startSize.height===f||o(t)}O[p]&&r(O[p],(function(t){t()}))}else u&&b.log(p,"Element uninstalled before being detectable.");delete O[p],++a===n.length&&l()})));u&&b.log(p,"Already detecable, adding listener."),s(c,t,i),a++})),a===n.length&&l()},removeListener:k.removeListener,removeAllListeners:k.removeAllListeners,uninstall:function(t){if(!t)return b.error("At least one element is required.");if(v(t))t=[t];else{if(!f(t))return b.error("Invalid arguments. Must be a DOM element or a collection of DOM elements.");t=g(t)}r(t,(function(t){k.removeAllListeners(t),_.uninstall(t),h.cleanState(t)}))},initDocument:function(t){_.initDocument&&_.initDocument(t)}}}},f1ae:function(t,e,n){"use strict";var r=n("86cc"),i=n("4630");t.exports=function(t,e,n){e in t?r.f(t,e,i(0,n)):t[e]=n}},f6fd:function(t,e){!function(t){var e="currentScript",n=t.getElementsByTagName("script");e in t||Object.defineProperty(t,e,{get:function(){try{throw new Error}catch(r){var t,e=(/.*at [^\(]*\((.*):.+:.+\)$/gi.exec(r.stack)||[!1])[1];for(t in n)if(n[t].src==e||"interactive"==n[t].readyState)return n[t];return null}}})}(document)},f751:function(t,e,n){var r=n("5ca1");r(r.S+r.F,"Object",{assign:n("7333")})},fa5b:function(t,e,n){t.exports=n("5537")("native-function-to-string",Function.toString)},fab2:function(t,e,n){var r=n("7726").document;t.exports=r&&r.documentElement},fb15:function(t,e,n){"use strict";var r;n.r(e),n.d(e,"install",(function(){return i.d})),n.d(e,"GridLayout",(function(){return i.b})),n.d(e,"GridItem",(function(){return i.a})),"undefined"!=typeof window&&(n("f6fd"),(r=window.document.currentScript)&&(r=r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(n.p=r[1]));var i=n("2af9");e.default=i.c},fca0:function(t,e,n){var r=n("5ca1"),i=n("7726").isFinite;r(r.S,"Number",{isFinite:function(t){return"number"==typeof t&&i(t)}})},fdef:function(t,e){t.exports="\t\n\v\f\r \u2028\u2029\ufeff"}}).default},7719:(t,e,n)=>{"use strict";var r,i,o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s=(i=n(6163))&&i.__esModule?i:{default:i};!function(){function n(t,e){t.innerHTML=(0,s.default)(t.innerHTML,e.value)}"object"==o(e)?t.exports=n:void 0===(r=function(){return n}.apply(e,[]))||(t.exports=r)}()},2445:function(t){"undefined"!=typeof self&&self,t.exports=function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=23)}([function(t,e,n){(function(r){function i(){var t;try{t=e.storage.debug}catch(t){}return!t&&void 0!==r&&"env"in r&&(t=r.env.DEBUG),t}(e=t.exports=n(26)).log=function(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},e.formatArgs=function(t){var n=this.useColors;if(t[0]=(n?"%c":"")+this.namespace+(n?" %c":" ")+t[0]+(n?"%c ":" ")+"+"+e.humanize(this.diff),n){var r="color: "+this.color;t.splice(1,0,r,"color: inherit");var i=0,o=0;t[0].replace(/%[a-zA-Z%]/g,(function(t){"%%"!==t&&(i++,"%c"===t&&(o=i))})),t.splice(o,0,r)}},e.save=function(t){try{null==t?e.storage.removeItem("debug"):e.storage.debug=t}catch(t){}},e.load=i,e.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},e.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(t){}}(),e.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],e.formatters.j=function(t){try{return JSON.stringify(t)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}},e.enable(i())}).call(this,n(25))},function(t,e,n){function r(t){if(t)return function(t){for(var e in r.prototype)t[e]=r.prototype[e];return t}(t)}t.exports=r,r.prototype.on=r.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this},r.prototype.once=function(t,e){function n(){this.off(t,n),e.apply(this,arguments)}return n.fn=e,this.on(t,n),this},r.prototype.off=r.prototype.removeListener=r.prototype.removeAllListeners=r.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n,r=this._callbacks["$"+t];if(!r)return this;if(1==arguments.length)return delete this._callbacks["$"+t],this;for(var i=0;i<r.length;i++)if((n=r[i])===e||n.fn===e){r.splice(i,1);break}return this},r.prototype.emit=function(t){this._callbacks=this._callbacks||{};var e=[].slice.call(arguments,1),n=this._callbacks["$"+t];if(n)for(var r=0,i=(n=n.slice(0)).length;r<i;++r)n[r].apply(this,e);return this},r.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]},r.prototype.hasListeners=function(t){return!!this.listeners(t).length}},function(t,e,n){var r,i=n(36),o=n(16),s=n(37),a=n(38),c=n(39);"undefined"!=typeof ArrayBuffer&&(r=n(40));var l="undefined"!=typeof navigator&&/Android/i.test(navigator.userAgent),u="undefined"!=typeof navigator&&/PhantomJS/i.test(navigator.userAgent),h=l||u;e.protocol=3;var p=e.packets={open:0,close:1,ping:2,pong:3,message:4,upgrade:5,noop:6},d=i(p),f={type:"error",data:"parser error"},g=n(41);function v(t,e,n){for(var r=new Array(t.length),i=a(t.length,n),o=function(t,n,i){e(n,(function(e,n){r[t]=n,i(e,r)}))},s=0;s<t.length;s++)o(s,t[s],i)}e.encodePacket=function(t,n,r,i){"function"==typeof n&&(i=n,n=!1),"function"==typeof r&&(i=r,r=null);var o=void 0===t.data?void 0:t.data.buffer||t.data;if("undefined"!=typeof ArrayBuffer&&o instanceof ArrayBuffer)return function(t,n,r){if(!n)return e.encodeBase64Packet(t,r);var i=t.data,o=new Uint8Array(i),s=new Uint8Array(1+i.byteLength);s[0]=p[t.type];for(var a=0;a<o.length;a++)s[a+1]=o[a];return r(s.buffer)}(t,n,i);if(void 0!==g&&o instanceof g)return function(t,n,r){if(!n)return e.encodeBase64Packet(t,r);if(h)return function(t,n,r){if(!n)return e.encodeBase64Packet(t,r);var i=new FileReader;return i.onload=function(){e.encodePacket({type:t.type,data:i.result},n,!0,r)},i.readAsArrayBuffer(t.data)}(t,n,r);var i=new Uint8Array(1);return i[0]=p[t.type],r(new g([i.buffer,t.data]))}(t,n,i);if(o&&o.base64)return function(t,n){return n("b"+e.packets[t.type]+t.data.data)}(t,i);var s=p[t.type];return void 0!==t.data&&(s+=r?c.encode(String(t.data),{strict:!1}):String(t.data)),i(""+s)},e.encodeBase64Packet=function(t,n){var r,i="b"+e.packets[t.type];if(void 0!==g&&t.data instanceof g){var o=new FileReader;return o.onload=function(){var t=o.result.split(",")[1];n(i+t)},o.readAsDataURL(t.data)}try{r=String.fromCharCode.apply(null,new Uint8Array(t.data))}catch(e){for(var s=new Uint8Array(t.data),a=new Array(s.length),c=0;c<s.length;c++)a[c]=s[c];r=String.fromCharCode.apply(null,a)}return i+=btoa(r),n(i)},e.decodePacket=function(t,n,r){if(void 0===t)return f;if("string"==typeof t){if("b"===t.charAt(0))return e.decodeBase64Packet(t.substr(1),n);if(r&&!1===(t=function(t){try{t=c.decode(t,{strict:!1})}catch(t){return!1}return t}(t)))return f;var i=t.charAt(0);return Number(i)==i&&d[i]?t.length>1?{type:d[i],data:t.substring(1)}:{type:d[i]}:f}i=new Uint8Array(t)[0];var o=s(t,1);return g&&"blob"===n&&(o=new g([o])),{type:d[i],data:o}},e.decodeBase64Packet=function(t,e){var n=d[t.charAt(0)];if(!r)return{type:n,data:{base64:!0,data:t.substr(1)}};var i=r.decode(t.substr(1));return"blob"===e&&g&&(i=new g([i])),{type:n,data:i}},e.encodePayload=function(t,n,r){"function"==typeof n&&(r=n,n=null);var i=o(t);return n&&i?g&&!h?e.encodePayloadAsBlob(t,r):e.encodePayloadAsArrayBuffer(t,r):t.length?void v(t,(function(t,r){e.encodePacket(t,!!i&&n,!1,(function(t){r(null,function(t){return t.length+":"+t}(t))}))}),(function(t,e){return r(e.join(""))})):r("0:")},e.decodePayload=function(t,n,r){if("string"!=typeof t)return e.decodePayloadAsBinary(t,n,r);var i;if("function"==typeof n&&(r=n,n=null),""===t)return r(f,0,1);for(var o,s,a="",c=0,l=t.length;c<l;c++){var u=t.charAt(c);if(":"===u){if(""===a||a!=(o=Number(a)))return r(f,0,1);if(a!=(s=t.substr(c+1,o)).length)return r(f,0,1);if(s.length){if(i=e.decodePacket(s,n,!1),f.type===i.type&&f.data===i.data)return r(f,0,1);if(!1===r(i,c+o,l))return}c+=o,a=""}else a+=u}return""!==a?r(f,0,1):void 0},e.encodePayloadAsArrayBuffer=function(t,n){if(!t.length)return n(new ArrayBuffer(0));v(t,(function(t,n){e.encodePacket(t,!0,!0,(function(t){return n(null,t)}))}),(function(t,e){var r=e.reduce((function(t,e){var n;return t+(n="string"==typeof e?e.length:e.byteLength).toString().length+n+2}),0),i=new Uint8Array(r),o=0;return e.forEach((function(t){var e="string"==typeof t,n=t;if(e){for(var r=new Uint8Array(t.length),s=0;s<t.length;s++)r[s]=t.charCodeAt(s);n=r.buffer}i[o++]=e?0:1;var a=n.byteLength.toString();for(s=0;s<a.length;s++)i[o++]=parseInt(a[s]);for(i[o++]=255,r=new Uint8Array(n),s=0;s<r.length;s++)i[o++]=r[s]})),n(i.buffer)}))},e.encodePayloadAsBlob=function(t,n){v(t,(function(t,n){e.encodePacket(t,!0,!0,(function(t){var e=new Uint8Array(1);if(e[0]=1,"string"==typeof t){for(var r=new Uint8Array(t.length),i=0;i<t.length;i++)r[i]=t.charCodeAt(i);t=r.buffer,e[0]=0}var o=(t instanceof ArrayBuffer?t.byteLength:t.size).toString(),s=new Uint8Array(o.length+1);for(i=0;i<o.length;i++)s[i]=parseInt(o[i]);if(s[o.length]=255,g){var a=new g([e.buffer,s.buffer,t]);n(null,a)}}))}),(function(t,e){return n(new g(e))}))},e.decodePayloadAsBinary=function(t,n,r){"function"==typeof n&&(r=n,n=null);for(var i=t,o=[];i.byteLength>0;){for(var a=new Uint8Array(i),c=0===a[0],l="",u=1;255!==a[u];u++){if(l.length>310)return r(f,0,1);l+=a[u]}i=s(i,2+l.length),l=parseInt(l);var h=s(i,0,l);if(c)try{h=String.fromCharCode.apply(null,new Uint8Array(h))}catch(t){var p=new Uint8Array(h);for(h="",u=0;u<p.length;u++)h+=String.fromCharCode(p[u])}o.push(h),i=s(i,l)}var d=o.length;o.forEach((function(t,i){r(e.decodePacket(t,n,!0),i,d)}))}},function(t,e){e.encode=function(t){var e="";for(var n in t)t.hasOwnProperty(n)&&(e.length&&(e+="&"),e+=encodeURIComponent(n)+"="+encodeURIComponent(t[n]));return e},e.decode=function(t){for(var e={},n=t.split("&"),r=0,i=n.length;r<i;r++){var o=n[r].split("=");e[decodeURIComponent(o[0])]=decodeURIComponent(o[1])}return e}},function(t,e){t.exports=function(t,e){var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}},function(t,e,n){var r=n(0)("socket.io-parser"),i=n(1),o=n(28),s=n(6),a=n(11);function c(){}e.protocol=4,e.types=["CONNECT","DISCONNECT","EVENT","ACK","ERROR","BINARY_EVENT","BINARY_ACK"],e.CONNECT=0,e.DISCONNECT=1,e.EVENT=2,e.ACK=3,e.ERROR=4,e.BINARY_EVENT=5,e.BINARY_ACK=6,e.Encoder=c,e.Decoder=h;var l=e.ERROR+'"encode error"';function u(t){var n=""+t.type;if(e.BINARY_EVENT!==t.type&&e.BINARY_ACK!==t.type||(n+=t.attachments+"-"),t.nsp&&"/"!==t.nsp&&(n+=t.nsp+","),null!=t.id&&(n+=t.id),null!=t.data){var i=function(t){try{return JSON.stringify(t)}catch(t){return!1}}(t.data);if(!1===i)return l;n+=i}return r("encoded %j as %s",t,n),n}function h(){this.reconstructor=null}function p(t){this.reconPack=t,this.buffers=[]}function d(t){return{type:e.ERROR,data:"parser error: "+t}}c.prototype.encode=function(t,n){r("encoding packet %j",t),e.BINARY_EVENT===t.type||e.BINARY_ACK===t.type?function(t,e){o.removeBlobs(t,(function(t){var n=o.deconstructPacket(t),r=u(n.packet),i=n.buffers;i.unshift(r),e(i)}))}(t,n):n([u(t)])},i(h.prototype),h.prototype.add=function(t){var n;if("string"==typeof t)n=function(t){var n=0,i={type:Number(t.charAt(0))};if(null==e.types[i.type])return d("unknown packet type "+i.type);if(e.BINARY_EVENT===i.type||e.BINARY_ACK===i.type){for(var o="";"-"!==t.charAt(++n)&&(o+=t.charAt(n),n!=t.length););if(o!=Number(o)||"-"!==t.charAt(n))throw new Error("Illegal attachments");i.attachments=Number(o)}if("/"===t.charAt(n+1))for(i.nsp="";++n&&","!==(c=t.charAt(n))&&(i.nsp+=c,n!==t.length););else i.nsp="/";var a=t.charAt(n+1);if(""!==a&&Number(a)==a){for(i.id="";++n;){var c;if(null==(c=t.charAt(n))||Number(c)!=c){--n;break}if(i.id+=t.charAt(n),n===t.length)break}i.id=Number(i.id)}if(t.charAt(++n)){var l=function(t){try{return JSON.parse(t)}catch(t){return!1}}(t.substr(n));if(!1===l||i.type!==e.ERROR&&!s(l))return d("invalid payload");i.data=l}return r("decoded %s as %j",t,i),i}(t),e.BINARY_EVENT===n.type||e.BINARY_ACK===n.type?(this.reconstructor=new p(n),0===this.reconstructor.reconPack.attachments&&this.emit("decoded",n)):this.emit("decoded",n);else{if(!a(t)&&!t.base64)throw new Error("Unknown type: "+t);if(!this.reconstructor)throw new Error("got binary data when not reconstructing a packet");(n=this.reconstructor.takeBinaryData(t))&&(this.reconstructor=null,this.emit("decoded",n))}},h.prototype.destroy=function(){this.reconstructor&&this.reconstructor.finishedReconstruction()},p.prototype.takeBinaryData=function(t){if(this.buffers.push(t),this.buffers.length===this.reconPack.attachments){var e=o.reconstructPacket(this.reconPack,this.buffers);return this.finishedReconstruction(),e}return null},p.prototype.finishedReconstruction=function(){this.reconPack=null,this.buffers=[]}},function(t,e){var n={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},function(t,e,n){"use strict";(function(t){var r=n(29),i=n(30),o=n(31);function s(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function a(t,e){if(s()<e)throw new RangeError("Invalid typed array length");return c.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e)).__proto__=c.prototype:(null===t&&(t=new c(e)),t.length=e),t}function c(t,e,n){if(!(c.TYPED_ARRAY_SUPPORT||this instanceof c))return new c(t,e,n);if("number"==typeof t){if("string"==typeof e)throw new Error("If encoding is specified then the first argument must be a string");return h(this,t)}return l(this,t,e,n)}function l(t,e,n,r){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?function(t,e,n,r){if(e.byteLength,n<0||e.byteLength<n)throw new RangeError("'offset' is out of bounds");if(e.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");return e=void 0===n&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,n):new Uint8Array(e,n,r),c.TYPED_ARRAY_SUPPORT?(t=e).__proto__=c.prototype:t=p(t,e),t}(t,e,n,r):"string"==typeof e?function(t,e,n){if("string"==typeof n&&""!==n||(n="utf8"),!c.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|f(e,n),i=(t=a(t,r)).write(e,n);return i!==r&&(t=t.slice(0,i)),t}(t,e,n):function(t,e){if(c.isBuffer(e)){var n=0|d(e.length);return 0===(t=a(t,n)).length||e.copy(t,0,0,n),t}if(e){if("undefined"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!=typeof e.length||(r=e.length)!=r?a(t,0):p(t,e);if("Buffer"===e.type&&o(e.data))return p(t,e.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(t,e)}function u(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function h(t,e){if(u(e),t=a(t,e<0?0:0|d(e)),!c.TYPED_ARRAY_SUPPORT)for(var n=0;n<e;++n)t[n]=0;return t}function p(t,e){var n=e.length<0?0:0|d(e.length);t=a(t,n);for(var r=0;r<n;r+=1)t[r]=255&e[r];return t}function d(t){if(t>=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|t}function f(t,e){if(c.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var n=t.length;if(0===n)return 0;for(var r=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return B(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return H(t).length;default:if(r)return B(t).length;e=(""+e).toLowerCase(),r=!0}}function g(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function v(t,e,n,r,i){if(0===t.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(i)return-1;n=t.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof e&&(e=c.from(e,r)),c.isBuffer(e))return 0===e.length?-1:m(t,e,n,r,i);if("number"==typeof e)return e&=255,c.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):m(t,[e],n,r,i);throw new TypeError("val must be string, number or Buffer")}function m(t,e,n,r,i){var o,s=1,a=t.length,c=e.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(t.length<2||e.length<2)return-1;s=2,a/=2,c/=2,n/=2}function l(t,e){return 1===s?t[e]:t.readUInt16BE(e*s)}if(i){var u=-1;for(o=n;o<a;o++)if(l(t,o)===l(e,-1===u?0:o-u)){if(-1===u&&(u=o),o-u+1===c)return u*s}else-1!==u&&(o-=o-u),u=-1}else for(n+c>a&&(n=a-c),o=n;o>=0;o--){for(var h=!0,p=0;p<c;p++)if(l(t,o+p)!==l(e,p)){h=!1;break}if(h)return o}return-1}function y(t,e,n,r){n=Number(n)||0;var i=t.length-n;r?(r=Number(r))>i&&(r=i):r=i;var o=e.length;if(o%2!=0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var s=0;s<r;++s){var a=parseInt(e.substr(2*s,2),16);if(isNaN(a))return s;t[n+s]=a}return s}function b(t,e,n,r){return U(B(e,t.length-n),t,n,r)}function w(t,e,n,r){return U(function(t){for(var e=[],n=0;n<t.length;++n)e.push(255&t.charCodeAt(n));return e}(e),t,n,r)}function x(t,e,n,r){return w(t,e,n,r)}function _(t,e,n,r){return U(H(e),t,n,r)}function k(t,e,n,r){return U(function(t,e){for(var n,r,i,o=[],s=0;s<t.length&&!((e-=2)<0);++s)r=(n=t.charCodeAt(s))>>8,i=n%256,o.push(i),o.push(r);return o}(e,t.length-n),t,n,r)}function C(t,e,n){return 0===e&&n===t.length?r.fromByteArray(t):r.fromByteArray(t.slice(e,n))}function S(t,e,n){n=Math.min(t.length,n);for(var r=[],i=e;i<n;){var o,s,a,c,l=t[i],u=null,h=l>239?4:l>223?3:l>191?2:1;if(i+h<=n)switch(h){case 1:l<128&&(u=l);break;case 2:128==(192&(o=t[i+1]))&&(c=(31&l)<<6|63&o)>127&&(u=c);break;case 3:o=t[i+1],s=t[i+2],128==(192&o)&&128==(192&s)&&(c=(15&l)<<12|(63&o)<<6|63&s)>2047&&(c<55296||c>57343)&&(u=c);break;case 4:o=t[i+1],s=t[i+2],a=t[i+3],128==(192&o)&&128==(192&s)&&128==(192&a)&&(c=(15&l)<<18|(63&o)<<12|(63&s)<<6|63&a)>65535&&c<1114112&&(u=c)}null===u?(u=65533,h=1):u>65535&&(u-=65536,r.push(u>>>10&1023|55296),u=56320|1023&u),r.push(u),i+=h}return function(t){var e=t.length;if(e<=A)return String.fromCharCode.apply(String,t);for(var n="",r=0;r<e;)n+=String.fromCharCode.apply(String,t.slice(r,r+=A));return n}(r)}e.Buffer=c,e.SlowBuffer=function(t){return+t!=t&&(t=0),c.alloc(+t)},e.INSPECT_MAX_BYTES=50,c.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(t){return!1}}(),e.kMaxLength=s(),c.poolSize=8192,c._augment=function(t){return t.__proto__=c.prototype,t},c.from=function(t,e,n){return l(null,t,e,n)},c.TYPED_ARRAY_SUPPORT&&(c.prototype.__proto__=Uint8Array.prototype,c.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0})),c.alloc=function(t,e,n){return function(t,e,n,r){return u(e),e<=0?a(t,e):void 0!==n?"string"==typeof r?a(t,e).fill(n,r):a(t,e).fill(n):a(t,e)}(null,t,e,n)},c.allocUnsafe=function(t){return h(null,t)},c.allocUnsafeSlow=function(t){return h(null,t)},c.isBuffer=function(t){return!(null==t||!t._isBuffer)},c.compare=function(t,e){if(!c.isBuffer(t)||!c.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var n=t.length,r=e.length,i=0,o=Math.min(n,r);i<o;++i)if(t[i]!==e[i]){n=t[i],r=e[i];break}return n<r?-1:r<n?1:0},c.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(t,e){if(!o(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return c.alloc(0);var n;if(void 0===e)for(e=0,n=0;n<t.length;++n)e+=t[n].length;var r=c.allocUnsafe(e),i=0;for(n=0;n<t.length;++n){var s=t[n];if(!c.isBuffer(s))throw new TypeError('"list" argument must be an Array of Buffers');s.copy(r,i),i+=s.length}return r},c.byteLength=f,c.prototype._isBuffer=!0,c.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)g(this,e,e+1);return this},c.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)g(this,e,e+3),g(this,e+1,e+2);return this},c.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)g(this,e,e+7),g(this,e+1,e+6),g(this,e+2,e+5),g(this,e+3,e+4);return this},c.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?S(this,0,t):function(t,e,n){var r=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return T(this,e,n);case"utf8":case"utf-8":return S(this,e,n);case"ascii":return E(this,e,n);case"latin1":case"binary":return O(this,e,n);case"base64":return C(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return P(this,e,n);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}.apply(this,arguments)},c.prototype.equals=function(t){if(!c.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===c.compare(this,t)},c.prototype.inspect=function(){var t="",n=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(t+=" ... ")),"<Buffer "+t+">"},c.prototype.compare=function(t,e,n,r,i){if(!c.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),e<0||n>t.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&e>=n)return 0;if(r>=i)return-1;if(e>=n)return 1;if(this===t)return 0;for(var o=(i>>>=0)-(r>>>=0),s=(n>>>=0)-(e>>>=0),a=Math.min(o,s),l=this.slice(r,i),u=t.slice(e,n),h=0;h<a;++h)if(l[h]!==u[h]){o=l[h],s=u[h];break}return o<s?-1:s<o?1:0},c.prototype.includes=function(t,e,n){return-1!==this.indexOf(t,e,n)},c.prototype.indexOf=function(t,e,n){return v(this,t,e,n,!0)},c.prototype.lastIndexOf=function(t,e,n){return v(this,t,e,n,!1)},c.prototype.write=function(t,e,n,r){if(void 0===e)r="utf8",n=this.length,e=0;else if(void 0===n&&"string"==typeof e)r=e,n=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-e;if((void 0===n||n>i)&&(n=i),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return y(this,t,e,n);case"utf8":case"utf-8":return b(this,t,e,n);case"ascii":return w(this,t,e,n);case"latin1":case"binary":return x(this,t,e,n);case"base64":return _(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,t,e,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var A=4096;function E(t,e,n){var r="";n=Math.min(t.length,n);for(var i=e;i<n;++i)r+=String.fromCharCode(127&t[i]);return r}function O(t,e,n){var r="";n=Math.min(t.length,n);for(var i=e;i<n;++i)r+=String.fromCharCode(t[i]);return r}function T(t,e,n){var r=t.length;(!e||e<0)&&(e=0),(!n||n<0||n>r)&&(n=r);for(var i="",o=e;o<n;++o)i+=$(t[o]);return i}function P(t,e,n){for(var r=t.slice(e,n),i="",o=0;o<r.length;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function I(t,e,n){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>n)throw new RangeError("Trying to access beyond buffer length")}function R(t,e,n,r,i,o){if(!c.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<o)throw new RangeError('"value" argument is out of bounds');if(n+r>t.length)throw new RangeError("Index out of range")}function M(t,e,n,r){e<0&&(e=65535+e+1);for(var i=0,o=Math.min(t.length-n,2);i<o;++i)t[n+i]=(e&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function N(t,e,n,r){e<0&&(e=4294967295+e+1);for(var i=0,o=Math.min(t.length-n,4);i<o;++i)t[n+i]=e>>>8*(r?i:3-i)&255}function D(t,e,n,r,i,o){if(n+r>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function j(t,e,n,r,o){return o||D(t,0,n,4),i.write(t,e,n,r,23,4),n+4}function L(t,e,n,r,o){return o||D(t,0,n,8),i.write(t,e,n,r,52,8),n+8}c.prototype.slice=function(t,e){var n,r=this.length;if((t=~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),(e=void 0===e?r:~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),e<t&&(e=t),c.TYPED_ARRAY_SUPPORT)(n=this.subarray(t,e)).__proto__=c.prototype;else{var i=e-t;n=new c(i,void 0);for(var o=0;o<i;++o)n[o]=this[o+t]}return n},c.prototype.readUIntLE=function(t,e,n){t|=0,e|=0,n||I(t,e,this.length);for(var r=this[t],i=1,o=0;++o<e&&(i*=256);)r+=this[t+o]*i;return r},c.prototype.readUIntBE=function(t,e,n){t|=0,e|=0,n||I(t,e,this.length);for(var r=this[t+--e],i=1;e>0&&(i*=256);)r+=this[t+--e]*i;return r},c.prototype.readUInt8=function(t,e){return e||I(t,1,this.length),this[t]},c.prototype.readUInt16LE=function(t,e){return e||I(t,2,this.length),this[t]|this[t+1]<<8},c.prototype.readUInt16BE=function(t,e){return e||I(t,2,this.length),this[t]<<8|this[t+1]},c.prototype.readUInt32LE=function(t,e){return e||I(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},c.prototype.readUInt32BE=function(t,e){return e||I(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},c.prototype.readIntLE=function(t,e,n){t|=0,e|=0,n||I(t,e,this.length);for(var r=this[t],i=1,o=0;++o<e&&(i*=256);)r+=this[t+o]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*e)),r},c.prototype.readIntBE=function(t,e,n){t|=0,e|=0,n||I(t,e,this.length);for(var r=e,i=1,o=this[t+--r];r>0&&(i*=256);)o+=this[t+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*e)),o},c.prototype.readInt8=function(t,e){return e||I(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},c.prototype.readInt16LE=function(t,e){e||I(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt16BE=function(t,e){e||I(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt32LE=function(t,e){return e||I(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},c.prototype.readInt32BE=function(t,e){return e||I(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},c.prototype.readFloatLE=function(t,e){return e||I(t,4,this.length),i.read(this,t,!0,23,4)},c.prototype.readFloatBE=function(t,e){return e||I(t,4,this.length),i.read(this,t,!1,23,4)},c.prototype.readDoubleLE=function(t,e){return e||I(t,8,this.length),i.read(this,t,!0,52,8)},c.prototype.readDoubleBE=function(t,e){return e||I(t,8,this.length),i.read(this,t,!1,52,8)},c.prototype.writeUIntLE=function(t,e,n,r){t=+t,e|=0,n|=0,r||R(this,t,e,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[e]=255&t;++o<n&&(i*=256);)this[e+o]=t/i&255;return e+n},c.prototype.writeUIntBE=function(t,e,n,r){t=+t,e|=0,n|=0,r||R(this,t,e,n,Math.pow(2,8*n)-1,0);var i=n-1,o=1;for(this[e+i]=255&t;--i>=0&&(o*=256);)this[e+i]=t/o&255;return e+n},c.prototype.writeUInt8=function(t,e,n){return t=+t,e|=0,n||R(this,t,e,1,255,0),c.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},c.prototype.writeUInt16LE=function(t,e,n){return t=+t,e|=0,n||R(this,t,e,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):M(this,t,e,!0),e+2},c.prototype.writeUInt16BE=function(t,e,n){return t=+t,e|=0,n||R(this,t,e,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):M(this,t,e,!1),e+2},c.prototype.writeUInt32LE=function(t,e,n){return t=+t,e|=0,n||R(this,t,e,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):N(this,t,e,!0),e+4},c.prototype.writeUInt32BE=function(t,e,n){return t=+t,e|=0,n||R(this,t,e,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):N(this,t,e,!1),e+4},c.prototype.writeIntLE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);R(this,t,e,n,i-1,-i)}var o=0,s=1,a=0;for(this[e]=255&t;++o<n&&(s*=256);)t<0&&0===a&&0!==this[e+o-1]&&(a=1),this[e+o]=(t/s>>0)-a&255;return e+n},c.prototype.writeIntBE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);R(this,t,e,n,i-1,-i)}var o=n-1,s=1,a=0;for(this[e+o]=255&t;--o>=0&&(s*=256);)t<0&&0===a&&0!==this[e+o+1]&&(a=1),this[e+o]=(t/s>>0)-a&255;return e+n},c.prototype.writeInt8=function(t,e,n){return t=+t,e|=0,n||R(this,t,e,1,127,-128),c.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},c.prototype.writeInt16LE=function(t,e,n){return t=+t,e|=0,n||R(this,t,e,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):M(this,t,e,!0),e+2},c.prototype.writeInt16BE=function(t,e,n){return t=+t,e|=0,n||R(this,t,e,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):M(this,t,e,!1),e+2},c.prototype.writeInt32LE=function(t,e,n){return t=+t,e|=0,n||R(this,t,e,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):N(this,t,e,!0),e+4},c.prototype.writeInt32BE=function(t,e,n){return t=+t,e|=0,n||R(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):N(this,t,e,!1),e+4},c.prototype.writeFloatLE=function(t,e,n){return j(this,t,e,!0,n)},c.prototype.writeFloatBE=function(t,e,n){return j(this,t,e,!1,n)},c.prototype.writeDoubleLE=function(t,e,n){return L(this,t,e,!0,n)},c.prototype.writeDoubleBE=function(t,e,n){return L(this,t,e,!1,n)},c.prototype.copy=function(t,e,n,r){if(n||(n=0),r||0===r||(r=this.length),e>=t.length&&(e=t.length),e||(e=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),t.length-e<r-n&&(r=t.length-e+n);var i,o=r-n;if(this===t&&n<e&&e<r)for(i=o-1;i>=0;--i)t[i+e]=this[i+n];else if(o<1e3||!c.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)t[i+e]=this[i+n];else Uint8Array.prototype.set.call(t,this.subarray(n,n+o),e);return o},c.prototype.fill=function(t,e,n,r){if("string"==typeof t){if("string"==typeof e?(r=e,e=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===t.length){var i=t.charCodeAt(0);i<256&&(t=i)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!c.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<n)throw new RangeError("Out of range index");if(n<=e)return this;var o;if(e>>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"==typeof t)for(o=e;o<n;++o)this[o]=t;else{var s=c.isBuffer(t)?t:B(new c(t,r).toString()),a=s.length;for(o=0;o<n-e;++o)this[o+e]=s[o%a]}return this};var z=/[^+\/0-9A-Za-z-_]/g;function $(t){return t<16?"0"+t.toString(16):t.toString(16)}function B(t,e){var n;e=e||1/0;for(var r=t.length,i=null,o=[],s=0;s<r;++s){if((n=t.charCodeAt(s))>55295&&n<57344){if(!i){if(n>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(s+1===r){(e-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(e-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((e-=1)<0)break;o.push(n)}else if(n<2048){if((e-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function H(t){return r.toByteArray(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(z,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function U(t,e,n,r){for(var i=0;i<r&&!(i+n>=e.length||i>=t.length);++i)e[i+n]=t[i];return i}}).call(this,n(12))},function(t,e,n){var r=n(34);t.exports=function(t){var e=t.xdomain,n=t.xscheme,i=t.enablesXDR;try{if("undefined"!=typeof XMLHttpRequest&&(!e||r))return new XMLHttpRequest}catch(t){}try{if("undefined"!=typeof XDomainRequest&&!n&&i)return new XDomainRequest}catch(t){}if(!e)try{return new(self[["Active"].concat("Object").join("X")])("Microsoft.XMLHTTP")}catch(t){}}},function(t,e,n){var r=n(2),i=n(1);function o(t){this.path=t.path,this.hostname=t.hostname,this.port=t.port,this.secure=t.secure,this.query=t.query,this.timestampParam=t.timestampParam,this.timestampRequests=t.timestampRequests,this.readyState="",this.agent=t.agent||!1,this.socket=t.socket,this.enablesXDR=t.enablesXDR,this.pfx=t.pfx,this.key=t.key,this.passphrase=t.passphrase,this.cert=t.cert,this.ca=t.ca,this.ciphers=t.ciphers,this.rejectUnauthorized=t.rejectUnauthorized,this.forceNode=t.forceNode,this.isReactNative=t.isReactNative,this.extraHeaders=t.extraHeaders,this.localAddress=t.localAddress}t.exports=o,i(o.prototype),o.prototype.onError=function(t,e){var n=new Error(t);return n.type="TransportError",n.description=e,this.emit("error",n),this},o.prototype.open=function(){return"closed"!==this.readyState&&""!==this.readyState||(this.readyState="opening",this.doOpen()),this},o.prototype.close=function(){return"opening"!==this.readyState&&"open"!==this.readyState||(this.doClose(),this.onClose()),this},o.prototype.send=function(t){if("open"!==this.readyState)throw new Error("Transport not open");this.write(t)},o.prototype.onOpen=function(){this.readyState="open",this.writable=!0,this.emit("open")},o.prototype.onData=function(t){var e=r.decodePacket(t,this.socket.binaryType);this.onPacket(e)},o.prototype.onPacket=function(t){this.emit("packet",t)},o.prototype.onClose=function(){this.readyState="closed",this.emit("close")}},function(t,e){var n=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,r=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];t.exports=function(t){var e=t,i=t.indexOf("["),o=t.indexOf("]");-1!=i&&-1!=o&&(t=t.substring(0,i)+t.substring(i,o).replace(/:/g,";")+t.substring(o,t.length));for(var s=n.exec(t||""),a={},c=14;c--;)a[r[c]]=s[c]||"";return-1!=i&&-1!=o&&(a.source=e,a.host=a.host.substring(1,a.host.length-1).replace(/;/g,":"),a.authority=a.authority.replace("[","").replace("]","").replace(/;/g,":"),a.ipv6uri=!0),a}},function(t,e,n){(function(e){t.exports=function(t){return n&&e.isBuffer(t)||r&&(t instanceof ArrayBuffer||i(t))};var n="function"==typeof e&&"function"==typeof e.isBuffer,r="function"==typeof ArrayBuffer,i=function(t){return"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(t):t.buffer instanceof ArrayBuffer}}).call(this,n(7).Buffer)},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){var r=n(32),i=n(19),o=n(1),s=n(5),a=n(20),c=n(21),l=n(0)("socket.io-client:manager"),u=n(18),h=n(46),p=Object.prototype.hasOwnProperty;function d(t,e){if(!(this instanceof d))return new d(t,e);t&&"object"==typeof t&&(e=t,t=void 0),(e=e||{}).path=e.path||"/socket.io",this.nsps={},this.subs=[],this.opts=e,this.reconnection(!1!==e.reconnection),this.reconnectionAttempts(e.reconnectionAttempts||1/0),this.reconnectionDelay(e.reconnectionDelay||1e3),this.reconnectionDelayMax(e.reconnectionDelayMax||5e3),this.randomizationFactor(e.randomizationFactor||.5),this.backoff=new h({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(null==e.timeout?2e4:e.timeout),this.readyState="closed",this.uri=t,this.connecting=[],this.lastPing=null,this.encoding=!1,this.packetBuffer=[];var n=e.parser||s;this.encoder=new n.Encoder,this.decoder=new n.Decoder,this.autoConnect=!1!==e.autoConnect,this.autoConnect&&this.open()}t.exports=d,d.prototype.emitAll=function(){for(var t in this.emit.apply(this,arguments),this.nsps)p.call(this.nsps,t)&&this.nsps[t].emit.apply(this.nsps[t],arguments)},d.prototype.updateSocketIds=function(){for(var t in this.nsps)p.call(this.nsps,t)&&(this.nsps[t].id=this.generateId(t))},d.prototype.generateId=function(t){return("/"===t?"":t+"#")+this.engine.id},o(d.prototype),d.prototype.reconnection=function(t){return arguments.length?(this._reconnection=!!t,this):this._reconnection},d.prototype.reconnectionAttempts=function(t){return arguments.length?(this._reconnectionAttempts=t,this):this._reconnectionAttempts},d.prototype.reconnectionDelay=function(t){return arguments.length?(this._reconnectionDelay=t,this.backoff&&this.backoff.setMin(t),this):this._reconnectionDelay},d.prototype.randomizationFactor=function(t){return arguments.length?(this._randomizationFactor=t,this.backoff&&this.backoff.setJitter(t),this):this._randomizationFactor},d.prototype.reconnectionDelayMax=function(t){return arguments.length?(this._reconnectionDelayMax=t,this.backoff&&this.backoff.setMax(t),this):this._reconnectionDelayMax},d.prototype.timeout=function(t){return arguments.length?(this._timeout=t,this):this._timeout},d.prototype.maybeReconnectOnOpen=function(){!this.reconnecting&&this._reconnection&&0===this.backoff.attempts&&this.reconnect()},d.prototype.open=d.prototype.connect=function(t,e){if(l("readyState %s",this.readyState),~this.readyState.indexOf("open"))return this;l("opening %s",this.uri),this.engine=r(this.uri,this.opts);var n=this.engine,i=this;this.readyState="opening",this.skipReconnect=!1;var o=a(n,"open",(function(){i.onopen(),t&&t()})),s=a(n,"error",(function(e){if(l("connect_error"),i.cleanup(),i.readyState="closed",i.emitAll("connect_error",e),t){var n=new Error("Connection error");n.data=e,t(n)}else i.maybeReconnectOnOpen()}));if(!1!==this._timeout){var c=this._timeout;l("connect attempt will timeout after %d",c);var u=setTimeout((function(){l("connect attempt timed out after %d",c),o.destroy(),n.close(),n.emit("error","timeout"),i.emitAll("connect_timeout",c)}),c);this.subs.push({destroy:function(){clearTimeout(u)}})}return this.subs.push(o),this.subs.push(s),this},d.prototype.onopen=function(){l("open"),this.cleanup(),this.readyState="open",this.emit("open");var t=this.engine;this.subs.push(a(t,"data",c(this,"ondata"))),this.subs.push(a(t,"ping",c(this,"onping"))),this.subs.push(a(t,"pong",c(this,"onpong"))),this.subs.push(a(t,"error",c(this,"onerror"))),this.subs.push(a(t,"close",c(this,"onclose"))),this.subs.push(a(this.decoder,"decoded",c(this,"ondecoded")))},d.prototype.onping=function(){this.lastPing=new Date,this.emitAll("ping")},d.prototype.onpong=function(){this.emitAll("pong",new Date-this.lastPing)},d.prototype.ondata=function(t){this.decoder.add(t)},d.prototype.ondecoded=function(t){this.emit("packet",t)},d.prototype.onerror=function(t){l("error",t),this.emitAll("error",t)},d.prototype.socket=function(t,e){var n=this.nsps[t];if(!n){n=new i(this,t,e),this.nsps[t]=n;var r=this;n.on("connecting",o),n.on("connect",(function(){n.id=r.generateId(t)})),this.autoConnect&&o()}function o(){~u(r.connecting,n)||r.connecting.push(n)}return n},d.prototype.destroy=function(t){var e=u(this.connecting,t);~e&&this.connecting.splice(e,1),this.connecting.length||this.close()},d.prototype.packet=function(t){l("writing packet %j",t);var e=this;t.query&&0===t.type&&(t.nsp+="?"+t.query),e.encoding?e.packetBuffer.push(t):(e.encoding=!0,this.encoder.encode(t,(function(n){for(var r=0;r<n.length;r++)e.engine.write(n[r],t.options);e.encoding=!1,e.processPacketQueue()})))},d.prototype.processPacketQueue=function(){if(this.packetBuffer.length>0&&!this.encoding){var t=this.packetBuffer.shift();this.packet(t)}},d.prototype.cleanup=function(){l("cleanup");for(var t=this.subs.length,e=0;e<t;e++)this.subs.shift().destroy();this.packetBuffer=[],this.encoding=!1,this.lastPing=null,this.decoder.destroy()},d.prototype.close=d.prototype.disconnect=function(){l("disconnect"),this.skipReconnect=!0,this.reconnecting=!1,"opening"===this.readyState&&this.cleanup(),this.backoff.reset(),this.readyState="closed",this.engine&&this.engine.close()},d.prototype.onclose=function(t){l("onclose"),this.cleanup(),this.backoff.reset(),this.readyState="closed",this.emit("close",t),this._reconnection&&!this.skipReconnect&&this.reconnect()},d.prototype.reconnect=function(){if(this.reconnecting||this.skipReconnect)return this;var t=this;if(this.backoff.attempts>=this._reconnectionAttempts)l("reconnect failed"),this.backoff.reset(),this.emitAll("reconnect_failed"),this.reconnecting=!1;else{var e=this.backoff.duration();l("will wait %dms before reconnect attempt",e),this.reconnecting=!0;var n=setTimeout((function(){t.skipReconnect||(l("attempting reconnect"),t.emitAll("reconnect_attempt",t.backoff.attempts),t.emitAll("reconnecting",t.backoff.attempts),t.skipReconnect||t.open((function(e){e?(l("reconnect attempt error"),t.reconnecting=!1,t.reconnect(),t.emitAll("reconnect_error",e.data)):(l("reconnect success"),t.onreconnect())})))}),e);this.subs.push({destroy:function(){clearTimeout(n)}})}},d.prototype.onreconnect=function(){var t=this.backoff.attempts;this.reconnecting=!1,this.backoff.reset(),this.updateSocketIds(),this.emitAll("reconnect",t)}},function(t,e,n){var r=n(8),i=n(35),o=n(42),s=n(43);e.polling=function(t){var e=!1,n=!1,s=!1!==t.jsonp;if("undefined"!=typeof location){var a="https:"===location.protocol,c=location.port;c||(c=a?443:80),e=t.hostname!==location.hostname||c!==t.port,n=t.secure!==a}if(t.xdomain=e,t.xscheme=n,"open"in new r(t)&&!t.forceJSONP)return new i(t);if(!s)throw new Error("JSONP disabled");return new o(t)},e.websocket=s},function(t,e,n){var r=n(9),i=n(3),o=n(2),s=n(4),a=n(17),c=n(0)("engine.io-client:polling");t.exports=u;var l=null!=new(n(8))({xdomain:!1}).responseType;function u(t){var e=t&&t.forceBase64;l&&!e||(this.supportsBinary=!1),r.call(this,t)}s(u,r),u.prototype.name="polling",u.prototype.doOpen=function(){this.poll()},u.prototype.pause=function(t){var e=this;function n(){c("paused"),e.readyState="paused",t()}if(this.readyState="pausing",this.polling||!this.writable){var r=0;this.polling&&(c("we are currently polling - waiting to pause"),r++,this.once("pollComplete",(function(){c("pre-pause polling complete"),--r||n()}))),this.writable||(c("we are currently writing - waiting to pause"),r++,this.once("drain",(function(){c("pre-pause writing complete"),--r||n()})))}else n()},u.prototype.poll=function(){c("polling"),this.polling=!0,this.doPoll(),this.emit("poll")},u.prototype.onData=function(t){var e=this;c("polling got data %s",t),o.decodePayload(t,this.socket.binaryType,(function(t,n,r){if("opening"===e.readyState&&e.onOpen(),"close"===t.type)return e.onClose(),!1;e.onPacket(t)})),"closed"!==this.readyState&&(this.polling=!1,this.emit("pollComplete"),"open"===this.readyState?this.poll():c('ignoring poll - transport state "%s"',this.readyState))},u.prototype.doClose=function(){var t=this;function e(){c("writing close packet"),t.write([{type:"close"}])}"open"===this.readyState?(c("transport open - closing"),e()):(c("transport not open - deferring close"),this.once("open",e))},u.prototype.write=function(t){var e=this;this.writable=!1;var n=function(){e.writable=!0,e.emit("drain")};o.encodePayload(t,this.supportsBinary,(function(t){e.doWrite(t,n)}))},u.prototype.uri=function(){var t=this.query||{},e=this.secure?"https":"http",n="";return!1!==this.timestampRequests&&(t[this.timestampParam]=a()),this.supportsBinary||t.sid||(t.b64=1),t=i.encode(t),this.port&&("https"===e&&443!==Number(this.port)||"http"===e&&80!==Number(this.port))&&(n=":"+this.port),t.length&&(t="?"+t),e+"://"+(-1!==this.hostname.indexOf(":")?"["+this.hostname+"]":this.hostname)+n+this.path+t}},function(t,e,n){(function(e){var r=n(6),i=Object.prototype.toString,o="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===i.call(Blob),s="function"==typeof File||"undefined"!=typeof File&&"[object FileConstructor]"===i.call(File);t.exports=function t(n){if(!n||"object"!=typeof n)return!1;if(r(n)){for(var i=0,a=n.length;i<a;i++)if(t(n[i]))return!0;return!1}if("function"==typeof e&&e.isBuffer&&e.isBuffer(n)||"function"==typeof ArrayBuffer&&n instanceof ArrayBuffer||o&&n instanceof Blob||s&&n instanceof File)return!0;if(n.toJSON&&"function"==typeof n.toJSON&&1===arguments.length)return t(n.toJSON(),!0);for(var c in n)if(Object.prototype.hasOwnProperty.call(n,c)&&t(n[c]))return!0;return!1}}).call(this,n(7).Buffer)},function(t,e,n){"use strict";var r,i="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),o={},s=0,a=0;function c(t){var e="";do{e=i[t%64]+e,t=Math.floor(t/64)}while(t>0);return e}function l(){var t=c(+new Date);return t!==r?(s=0,r=t):t+"."+c(s++)}for(;a<64;a++)o[i[a]]=a;l.encode=c,l.decode=function(t){var e=0;for(a=0;a<t.length;a++)e=64*e+o[t.charAt(a)];return e},t.exports=l},function(t,e){var n=[].indexOf;t.exports=function(t,e){if(n)return t.indexOf(e);for(var r=0;r<t.length;++r)if(t[r]===e)return r;return-1}},function(t,e,n){var r=n(5),i=n(1),o=n(45),s=n(20),a=n(21),c=n(0)("socket.io-client:socket"),l=n(3),u=n(16);t.exports=d;var h={connect:1,connect_error:1,connect_timeout:1,connecting:1,disconnect:1,error:1,reconnect:1,reconnect_attempt:1,reconnect_failed:1,reconnect_error:1,reconnecting:1,ping:1,pong:1},p=i.prototype.emit;function d(t,e,n){this.io=t,this.nsp=e,this.json=this,this.ids=0,this.acks={},this.receiveBuffer=[],this.sendBuffer=[],this.connected=!1,this.disconnected=!0,this.flags={},n&&n.query&&(this.query=n.query),this.io.autoConnect&&this.open()}i(d.prototype),d.prototype.subEvents=function(){if(!this.subs){var t=this.io;this.subs=[s(t,"open",a(this,"onopen")),s(t,"packet",a(this,"onpacket")),s(t,"close",a(this,"onclose"))]}},d.prototype.open=d.prototype.connect=function(){return this.connected||(this.subEvents(),this.io.open(),"open"===this.io.readyState&&this.onopen(),this.emit("connecting")),this},d.prototype.send=function(){var t=o(arguments);return t.unshift("message"),this.emit.apply(this,t),this},d.prototype.emit=function(t){if(h.hasOwnProperty(t))return p.apply(this,arguments),this;var e=o(arguments),n={type:(void 0!==this.flags.binary?this.flags.binary:u(e))?r.BINARY_EVENT:r.EVENT,data:e,options:{}};return n.options.compress=!this.flags||!1!==this.flags.compress,"function"==typeof e[e.length-1]&&(c("emitting packet with ack id %d",this.ids),this.acks[this.ids]=e.pop(),n.id=this.ids++),this.connected?this.packet(n):this.sendBuffer.push(n),this.flags={},this},d.prototype.packet=function(t){t.nsp=this.nsp,this.io.packet(t)},d.prototype.onopen=function(){if(c("transport is open - connecting"),"/"!==this.nsp)if(this.query){var t="object"==typeof this.query?l.encode(this.query):this.query;c("sending connect packet with query %s",t),this.packet({type:r.CONNECT,query:t})}else this.packet({type:r.CONNECT})},d.prototype.onclose=function(t){c("close (%s)",t),this.connected=!1,this.disconnected=!0,delete this.id,this.emit("disconnect",t)},d.prototype.onpacket=function(t){var e=t.nsp===this.nsp,n=t.type===r.ERROR&&"/"===t.nsp;if(e||n)switch(t.type){case r.CONNECT:this.onconnect();break;case r.EVENT:case r.BINARY_EVENT:this.onevent(t);break;case r.ACK:case r.BINARY_ACK:this.onack(t);break;case r.DISCONNECT:this.ondisconnect();break;case r.ERROR:this.emit("error",t.data)}},d.prototype.onevent=function(t){var e=t.data||[];c("emitting event %j",e),null!=t.id&&(c("attaching ack callback to event"),e.push(this.ack(t.id))),this.connected?p.apply(this,e):this.receiveBuffer.push(e)},d.prototype.ack=function(t){var e=this,n=!1;return function(){if(!n){n=!0;var i=o(arguments);c("sending ack %j",i),e.packet({type:u(i)?r.BINARY_ACK:r.ACK,id:t,data:i})}}},d.prototype.onack=function(t){var e=this.acks[t.id];"function"==typeof e?(c("calling ack %s with %j",t.id,t.data),e.apply(this,t.data),delete this.acks[t.id]):c("bad ack %s",t.id)},d.prototype.onconnect=function(){this.connected=!0,this.disconnected=!1,this.emit("connect"),this.emitBuffered()},d.prototype.emitBuffered=function(){var t;for(t=0;t<this.receiveBuffer.length;t++)p.apply(this,this.receiveBuffer[t]);for(this.receiveBuffer=[],t=0;t<this.sendBuffer.length;t++)this.packet(this.sendBuffer[t]);this.sendBuffer=[]},d.prototype.ondisconnect=function(){c("server disconnect (%s)",this.nsp),this.destroy(),this.onclose("io server disconnect")},d.prototype.destroy=function(){if(this.subs){for(var t=0;t<this.subs.length;t++)this.subs[t].destroy();this.subs=null}this.io.destroy(this)},d.prototype.close=d.prototype.disconnect=function(){return this.connected&&(c("performing disconnect (%s)",this.nsp),this.packet({type:r.DISCONNECT})),this.destroy(),this.connected&&this.onclose("io client disconnect"),this},d.prototype.compress=function(t){return this.flags.compress=t,this},d.prototype.binary=function(t){return this.flags.binary=t,this}},function(t,e){t.exports=function(t,e,n){return t.on(e,n),{destroy:function(){t.removeListener(e,n)}}}},function(t,e){var n=[].slice;t.exports=function(t,e){if("string"==typeof e&&(e=t[e]),"function"!=typeof e)throw new Error("bind() requires a function");var r=n.call(arguments,2);return function(){return e.apply(t,r.concat(n.call(arguments)))}}},function(t,e,n){var r=n(24),i=n(5),o=n(13),s=n(0)("socket.io-client");t.exports=e=c;var a=e.managers={};function c(t,e){"object"==typeof t&&(e=t,t=void 0),e=e||{};var n,i=r(t),c=i.source,l=i.id,u=i.path,h=a[l]&&u in a[l].nsps;return e.forceNew||e["force new connection"]||!1===e.multiplex||h?(s("ignoring socket cache for %s",c),n=o(c,e)):(a[l]||(s("new io instance for %s",c),a[l]=o(c,e)),n=a[l]),i.query&&!e.query&&(e.query=i.query),n.socket(i.path,e)}e.protocol=i.protocol,e.connect=c,e.Manager=n(13),e.Socket=n(19)},function(t,e,n){t.exports=n(47)},function(t,e,n){var r=n(10),i=n(0)("socket.io-client:url");t.exports=function(t,e){var n=t;e=e||"undefined"!=typeof location&&location,null==t&&(t=e.protocol+"//"+e.host),"string"==typeof t&&("/"===t.charAt(0)&&(t="/"===t.charAt(1)?e.protocol+t:e.host+t),/^(https?|wss?):\/\//.test(t)||(i("protocol-less url %s",t),t=void 0!==e?e.protocol+"//"+t:"https://"+t),i("parse %s",t),n=r(t)),n.port||(/^(http|ws)$/.test(n.protocol)?n.port="80":/^(http|ws)s$/.test(n.protocol)&&(n.port="443")),n.path=n.path||"/";var o=-1!==n.host.indexOf(":")?"["+n.host+"]":n.host;return n.id=n.protocol+"://"+o+":"+n.port,n.href=n.protocol+"://"+o+(e&&e.port===n.port?"":":"+n.port),n}},function(t,e){var n,r,i=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function a(t){if(n===setTimeout)return setTimeout(t,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(t){n=o}try{r="function"==typeof clearTimeout?clearTimeout:s}catch(t){r=s}}();var c,l=[],u=!1,h=-1;function p(){u&&c&&(u=!1,c.length?l=c.concat(l):h=-1,l.length&&d())}function d(){if(!u){var t=a(p);u=!0;for(var e=l.length;e;){for(c=l,l=[];++h<e;)c&&c[h].run();h=-1,e=l.length}c=null,u=!1,function(t){if(r===clearTimeout)return clearTimeout(t);if((r===s||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(t);try{r(t)}catch(e){try{return r.call(null,t)}catch(e){return r.call(this,t)}}}(t)}}function f(t,e){this.fun=t,this.array=e}function g(){}i.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];l.push(new f(t,e)),1!==l.length||u||a(d)},f.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=g,i.addListener=g,i.once=g,i.off=g,i.removeListener=g,i.removeAllListeners=g,i.emit=g,i.prependListener=g,i.prependOnceListener=g,i.listeners=function(t){return[]},i.binding=function(t){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(t){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(t,e,n){function r(t){var n;function r(){if(r.enabled){var t=r,i=+new Date,o=i-(n||i);t.diff=o,t.prev=n,t.curr=i,n=i;for(var s=new Array(arguments.length),a=0;a<s.length;a++)s[a]=arguments[a];s[0]=e.coerce(s[0]),"string"!=typeof s[0]&&s.unshift("%O");var c=0;s[0]=s[0].replace(/%([a-zA-Z%])/g,(function(n,r){if("%%"===n)return n;c++;var i=e.formatters[r];if("function"==typeof i){var o=s[c];n=i.call(t,o),s.splice(c,1),c--}return n})),e.formatArgs.call(t,s),(r.log||e.log||console.log.bind(console)).apply(t,s)}}return r.namespace=t,r.enabled=e.enabled(t),r.useColors=e.useColors(),r.color=function(t){var n,r=0;for(n in t)r=(r<<5)-r+t.charCodeAt(n),r|=0;return e.colors[Math.abs(r)%e.colors.length]}(t),r.destroy=i,"function"==typeof e.init&&e.init(r),e.instances.push(r),r}function i(){var t=e.instances.indexOf(this);return-1!==t&&(e.instances.splice(t,1),!0)}(e=t.exports=r.debug=r.default=r).coerce=function(t){return t instanceof Error?t.stack||t.message:t},e.disable=function(){e.enable("")},e.enable=function(t){var n;e.save(t),e.names=[],e.skips=[];var r=("string"==typeof t?t:"").split(/[\s,]+/),i=r.length;for(n=0;n<i;n++)r[n]&&("-"===(t=r[n].replace(/\*/g,".*?"))[0]?e.skips.push(new RegExp("^"+t.substr(1)+"$")):e.names.push(new RegExp("^"+t+"$")));for(n=0;n<e.instances.length;n++){var o=e.instances[n];o.enabled=e.enabled(o.namespace)}},e.enabled=function(t){if("*"===t[t.length-1])return!0;var n,r;for(n=0,r=e.skips.length;n<r;n++)if(e.skips[n].test(t))return!1;for(n=0,r=e.names.length;n<r;n++)if(e.names[n].test(t))return!0;return!1},e.humanize=n(27),e.instances=[],e.names=[],e.skips=[],e.formatters={}},function(t,e){var n=1e3,r=60*n,i=60*r,o=24*i;function s(t,e,n){if(!(t<e))return t<1.5*e?Math.floor(t/e)+" "+n:Math.ceil(t/e)+" "+n+"s"}t.exports=function(t,e){e=e||{};var a,c=typeof t;if("string"===c&&t.length>0)return function(t){if(!((t=String(t)).length>100)){var e=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(t);if(e){var s=parseFloat(e[1]);switch((e[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*s;case"days":case"day":case"d":return s*o;case"hours":case"hour":case"hrs":case"hr":case"h":return s*i;case"minutes":case"minute":case"mins":case"min":case"m":return s*r;case"seconds":case"second":case"secs":case"sec":case"s":return s*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return s;default:return}}}}(t);if("number"===c&&!1===isNaN(t))return e.long?s(a=t,o,"day")||s(a,i,"hour")||s(a,r,"minute")||s(a,n,"second")||a+" ms":function(t){return t>=o?Math.round(t/o)+"d":t>=i?Math.round(t/i)+"h":t>=r?Math.round(t/r)+"m":t>=n?Math.round(t/n)+"s":t+"ms"}(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))}},function(t,e,n){var r=n(6),i=n(11),o=Object.prototype.toString,s="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===o.call(Blob),a="function"==typeof File||"undefined"!=typeof File&&"[object FileConstructor]"===o.call(File);e.deconstructPacket=function(t){var e=[],n=t.data,o=t;return o.data=function t(e,n){if(!e)return e;if(i(e)){var o={_placeholder:!0,num:n.length};return n.push(e),o}if(r(e)){for(var s=new Array(e.length),a=0;a<e.length;a++)s[a]=t(e[a],n);return s}if("object"==typeof e&&!(e instanceof Date)){for(var c in s={},e)s[c]=t(e[c],n);return s}return e}(n,e),o.attachments=e.length,{packet:o,buffers:e}},e.reconstructPacket=function(t,e){return t.data=function t(e,n){if(!e)return e;if(e&&e._placeholder)return n[e.num];if(r(e))for(var i=0;i<e.length;i++)e[i]=t(e[i],n);else if("object"==typeof e)for(var o in e)e[o]=t(e[o],n);return e}(t.data,e),t.attachments=void 0,t},e.removeBlobs=function(t,e){var n=0,o=t;!function t(c,l,u){if(!c)return c;if(s&&c instanceof Blob||a&&c instanceof File){n++;var h=new FileReader;h.onload=function(){u?u[l]=this.result:o=this.result,--n||e(o)},h.readAsArrayBuffer(c)}else if(r(c))for(var p=0;p<c.length;p++)t(c[p],p,c);else if("object"==typeof c&&!i(c))for(var d in c)t(c[d],d,c)}(o),n||e(o)}},function(t,e,n){"use strict";e.byteLength=function(t){var e=l(t),n=e[0],r=e[1];return 3*(n+r)/4-r},e.toByteArray=function(t){for(var e,n=l(t),r=n[0],s=n[1],a=new o(function(t,e,n){return 3*(e+n)/4-n}(0,r,s)),c=0,u=s>0?r-4:r,h=0;h<u;h+=4)e=i[t.charCodeAt(h)]<<18|i[t.charCodeAt(h+1)]<<12|i[t.charCodeAt(h+2)]<<6|i[t.charCodeAt(h+3)],a[c++]=e>>16&255,a[c++]=e>>8&255,a[c++]=255&e;return 2===s&&(e=i[t.charCodeAt(h)]<<2|i[t.charCodeAt(h+1)]>>4,a[c++]=255&e),1===s&&(e=i[t.charCodeAt(h)]<<10|i[t.charCodeAt(h+1)]<<4|i[t.charCodeAt(h+2)]>>2,a[c++]=e>>8&255,a[c++]=255&e),a},e.fromByteArray=function(t){for(var e,n=t.length,i=n%3,o=[],s=0,a=n-i;s<a;s+=16383)o.push(u(t,s,s+16383>a?a:s+16383));return 1===i?(e=t[n-1],o.push(r[e>>2]+r[e<<4&63]+"==")):2===i&&(e=(t[n-2]<<8)+t[n-1],o.push(r[e>>10]+r[e>>4&63]+r[e<<2&63]+"=")),o.join("")};for(var r=[],i=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,c=s.length;a<c;++a)r[a]=s[a],i[s.charCodeAt(a)]=a;function l(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");return-1===n&&(n=e),[n,n===e?0:4-n%4]}function u(t,e,n){for(var i,o,s=[],a=e;a<n;a+=3)i=(t[a]<<16&16711680)+(t[a+1]<<8&65280)+(255&t[a+2]),s.push(r[(o=i)>>18&63]+r[o>>12&63]+r[o>>6&63]+r[63&o]);return s.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},function(t,e){e.read=function(t,e,n,r,i){var o,s,a=8*i-r-1,c=(1<<a)-1,l=c>>1,u=-7,h=n?i-1:0,p=n?-1:1,d=t[e+h];for(h+=p,o=d&(1<<-u)-1,d>>=-u,u+=a;u>0;o=256*o+t[e+h],h+=p,u-=8);for(s=o&(1<<-u)-1,o>>=-u,u+=r;u>0;s=256*s+t[e+h],h+=p,u-=8);if(0===o)o=1-l;else{if(o===c)return s?NaN:1/0*(d?-1:1);s+=Math.pow(2,r),o-=l}return(d?-1:1)*s*Math.pow(2,o-r)},e.write=function(t,e,n,r,i,o){var s,a,c,l=8*o-i-1,u=(1<<l)-1,h=u>>1,p=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:o-1,f=r?1:-1,g=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,s=u):(s=Math.floor(Math.log(e)/Math.LN2),e*(c=Math.pow(2,-s))<1&&(s--,c*=2),(e+=s+h>=1?p/c:p*Math.pow(2,1-h))*c>=2&&(s++,c/=2),s+h>=u?(a=0,s=u):s+h>=1?(a=(e*c-1)*Math.pow(2,i),s+=h):(a=e*Math.pow(2,h-1)*Math.pow(2,i),s=0));i>=8;t[n+d]=255&a,d+=f,a/=256,i-=8);for(s=s<<i|a,l+=i;l>0;t[n+d]=255&s,d+=f,s/=256,l-=8);t[n+d-f]|=128*g}},function(t,e){var n={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},function(t,e,n){t.exports=n(33),t.exports.parser=n(2)},function(t,e,n){var r=n(14),i=n(1),o=n(0)("engine.io-client:socket"),s=n(18),a=n(2),c=n(10),l=n(3);function u(t,e){if(!(this instanceof u))return new u(t,e);e=e||{},t&&"object"==typeof t&&(e=t,t=null),t?(t=c(t),e.hostname=t.host,e.secure="https"===t.protocol||"wss"===t.protocol,e.port=t.port,t.query&&(e.query=t.query)):e.host&&(e.hostname=c(e.host).host),this.secure=null!=e.secure?e.secure:"undefined"!=typeof location&&"https:"===location.protocol,e.hostname&&!e.port&&(e.port=this.secure?"443":"80"),this.agent=e.agent||!1,this.hostname=e.hostname||("undefined"!=typeof location?location.hostname:"localhost"),this.port=e.port||("undefined"!=typeof location&&location.port?location.port:this.secure?443:80),this.query=e.query||{},"string"==typeof this.query&&(this.query=l.decode(this.query)),this.upgrade=!1!==e.upgrade,this.path=(e.path||"/engine.io").replace(/\/$/,"")+"/",this.forceJSONP=!!e.forceJSONP,this.jsonp=!1!==e.jsonp,this.forceBase64=!!e.forceBase64,this.enablesXDR=!!e.enablesXDR,this.timestampParam=e.timestampParam||"t",this.timestampRequests=e.timestampRequests,this.transports=e.transports||["polling","websocket"],this.transportOptions=e.transportOptions||{},this.readyState="",this.writeBuffer=[],this.prevBufferLen=0,this.policyPort=e.policyPort||843,this.rememberUpgrade=e.rememberUpgrade||!1,this.binaryType=null,this.onlyBinaryUpgrades=e.onlyBinaryUpgrades,this.perMessageDeflate=!1!==e.perMessageDeflate&&(e.perMessageDeflate||{}),!0===this.perMessageDeflate&&(this.perMessageDeflate={}),this.perMessageDeflate&&null==this.perMessageDeflate.threshold&&(this.perMessageDeflate.threshold=1024),this.pfx=e.pfx||null,this.key=e.key||null,this.passphrase=e.passphrase||null,this.cert=e.cert||null,this.ca=e.ca||null,this.ciphers=e.ciphers||null,this.rejectUnauthorized=void 0===e.rejectUnauthorized||e.rejectUnauthorized,this.forceNode=!!e.forceNode,this.isReactNative="undefined"!=typeof navigator&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase(),("undefined"==typeof self||this.isReactNative)&&(e.extraHeaders&&Object.keys(e.extraHeaders).length>0&&(this.extraHeaders=e.extraHeaders),e.localAddress&&(this.localAddress=e.localAddress)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingIntervalTimer=null,this.pingTimeoutTimer=null,this.open()}t.exports=u,u.priorWebsocketSuccess=!1,i(u.prototype),u.protocol=a.protocol,u.Socket=u,u.Transport=n(9),u.transports=n(14),u.parser=n(2),u.prototype.createTransport=function(t){o('creating transport "%s"',t);var e=function(t){var e={};for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}(this.query);e.EIO=a.protocol,e.transport=t;var n=this.transportOptions[t]||{};return this.id&&(e.sid=this.id),new r[t]({query:e,socket:this,agent:n.agent||this.agent,hostname:n.hostname||this.hostname,port:n.port||this.port,secure:n.secure||this.secure,path:n.path||this.path,forceJSONP:n.forceJSONP||this.forceJSONP,jsonp:n.jsonp||this.jsonp,forceBase64:n.forceBase64||this.forceBase64,enablesXDR:n.enablesXDR||this.enablesXDR,timestampRequests:n.timestampRequests||this.timestampRequests,timestampParam:n.timestampParam||this.timestampParam,policyPort:n.policyPort||this.policyPort,pfx:n.pfx||this.pfx,key:n.key||this.key,passphrase:n.passphrase||this.passphrase,cert:n.cert||this.cert,ca:n.ca||this.ca,ciphers:n.ciphers||this.ciphers,rejectUnauthorized:n.rejectUnauthorized||this.rejectUnauthorized,perMessageDeflate:n.perMessageDeflate||this.perMessageDeflate,extraHeaders:n.extraHeaders||this.extraHeaders,forceNode:n.forceNode||this.forceNode,localAddress:n.localAddress||this.localAddress,requestTimeout:n.requestTimeout||this.requestTimeout,protocols:n.protocols||void 0,isReactNative:this.isReactNative})},u.prototype.open=function(){var t;if(this.rememberUpgrade&&u.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket"))t="websocket";else{if(0===this.transports.length){var e=this;return void setTimeout((function(){e.emit("error","No transports available")}),0)}t=this.transports[0]}this.readyState="opening";try{t=this.createTransport(t)}catch(t){return this.transports.shift(),void this.open()}t.open(),this.setTransport(t)},u.prototype.setTransport=function(t){o("setting transport %s",t.name);var e=this;this.transport&&(o("clearing existing transport %s",this.transport.name),this.transport.removeAllListeners()),this.transport=t,t.on("drain",(function(){e.onDrain()})).on("packet",(function(t){e.onPacket(t)})).on("error",(function(t){e.onError(t)})).on("close",(function(){e.onClose("transport close")}))},u.prototype.probe=function(t){o('probing transport "%s"',t);var e=this.createTransport(t,{probe:1}),n=!1,r=this;function i(){if(r.onlyBinaryUpgrades){var i=!this.supportsBinary&&r.transport.supportsBinary;n=n||i}n||(o('probe transport "%s" opened',t),e.send([{type:"ping",data:"probe"}]),e.once("packet",(function(i){if(!n)if("pong"===i.type&&"probe"===i.data){if(o('probe transport "%s" pong',t),r.upgrading=!0,r.emit("upgrading",e),!e)return;u.priorWebsocketSuccess="websocket"===e.name,o('pausing current transport "%s"',r.transport.name),r.transport.pause((function(){n||"closed"!==r.readyState&&(o("changing transport and sending upgrade packet"),p(),r.setTransport(e),e.send([{type:"upgrade"}]),r.emit("upgrade",e),e=null,r.upgrading=!1,r.flush())}))}else{o('probe transport "%s" failed',t);var s=new Error("probe error");s.transport=e.name,r.emit("upgradeError",s)}})))}function s(){n||(n=!0,p(),e.close(),e=null)}function a(n){var i=new Error("probe error: "+n);i.transport=e.name,s(),o('probe transport "%s" failed because of error: %s',t,n),r.emit("upgradeError",i)}function c(){a("transport closed")}function l(){a("socket closed")}function h(t){e&&t.name!==e.name&&(o('"%s" works - aborting "%s"',t.name,e.name),s())}function p(){e.removeListener("open",i),e.removeListener("error",a),e.removeListener("close",c),r.removeListener("close",l),r.removeListener("upgrading",h)}u.priorWebsocketSuccess=!1,e.once("open",i),e.once("error",a),e.once("close",c),this.once("close",l),this.once("upgrading",h),e.open()},u.prototype.onOpen=function(){if(o("socket open"),this.readyState="open",u.priorWebsocketSuccess="websocket"===this.transport.name,this.emit("open"),this.flush(),"open"===this.readyState&&this.upgrade&&this.transport.pause){o("starting upgrade probes");for(var t=0,e=this.upgrades.length;t<e;t++)this.probe(this.upgrades[t])}},u.prototype.onPacket=function(t){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState)switch(o('socket receive: type "%s", data "%s"',t.type,t.data),this.emit("packet",t),this.emit("heartbeat"),t.type){case"open":this.onHandshake(JSON.parse(t.data));break;case"pong":this.setPing(),this.emit("pong");break;case"error":var e=new Error("server error");e.code=t.data,this.onError(e);break;case"message":this.emit("data",t.data),this.emit("message",t.data)}else o('packet received with socket readyState "%s"',this.readyState)},u.prototype.onHandshake=function(t){this.emit("handshake",t),this.id=t.sid,this.transport.query.sid=t.sid,this.upgrades=this.filterUpgrades(t.upgrades),this.pingInterval=t.pingInterval,this.pingTimeout=t.pingTimeout,this.onOpen(),"closed"!==this.readyState&&(this.setPing(),this.removeListener("heartbeat",this.onHeartbeat),this.on("heartbeat",this.onHeartbeat))},u.prototype.onHeartbeat=function(t){clearTimeout(this.pingTimeoutTimer);var e=this;e.pingTimeoutTimer=setTimeout((function(){"closed"!==e.readyState&&e.onClose("ping timeout")}),t||e.pingInterval+e.pingTimeout)},u.prototype.setPing=function(){var t=this;clearTimeout(t.pingIntervalTimer),t.pingIntervalTimer=setTimeout((function(){o("writing ping packet - expecting pong within %sms",t.pingTimeout),t.ping(),t.onHeartbeat(t.pingTimeout)}),t.pingInterval)},u.prototype.ping=function(){var t=this;this.sendPacket("ping",(function(){t.emit("ping")}))},u.prototype.onDrain=function(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,0===this.writeBuffer.length?this.emit("drain"):this.flush()},u.prototype.flush=function(){"closed"!==this.readyState&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length&&(o("flushing %d packets in socket",this.writeBuffer.length),this.transport.send(this.writeBuffer),this.prevBufferLen=this.writeBuffer.length,this.emit("flush"))},u.prototype.write=u.prototype.send=function(t,e,n){return this.sendPacket("message",t,e,n),this},u.prototype.sendPacket=function(t,e,n,r){if("function"==typeof e&&(r=e,e=void 0),"function"==typeof n&&(r=n,n=null),"closing"!==this.readyState&&"closed"!==this.readyState){(n=n||{}).compress=!1!==n.compress;var i={type:t,data:e,options:n};this.emit("packetCreate",i),this.writeBuffer.push(i),r&&this.once("flush",r),this.flush()}},u.prototype.close=function(){if("opening"===this.readyState||"open"===this.readyState){this.readyState="closing";var t=this;this.writeBuffer.length?this.once("drain",(function(){this.upgrading?r():e()})):this.upgrading?r():e()}function e(){t.onClose("forced close"),o("socket closing - telling transport to close"),t.transport.close()}function n(){t.removeListener("upgrade",n),t.removeListener("upgradeError",n),e()}function r(){t.once("upgrade",n),t.once("upgradeError",n)}return this},u.prototype.onError=function(t){o("socket error %j",t),u.priorWebsocketSuccess=!1,this.emit("error",t),this.onClose("transport error",t)},u.prototype.onClose=function(t,e){"opening"!==this.readyState&&"open"!==this.readyState&&"closing"!==this.readyState||(o('socket close with reason: "%s"',t),clearTimeout(this.pingIntervalTimer),clearTimeout(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),this.readyState="closed",this.id=null,this.emit("close",t,e),this.writeBuffer=[],this.prevBufferLen=0)},u.prototype.filterUpgrades=function(t){for(var e=[],n=0,r=t.length;n<r;n++)~s(this.transports,t[n])&&e.push(t[n]);return e}},function(t,e){try{t.exports="undefined"!=typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(e){t.exports=!1}},function(t,e,n){var r=n(8),i=n(15),o=n(1),s=n(4),a=n(0)("engine.io-client:polling-xhr");function c(){}function l(t){if(i.call(this,t),this.requestTimeout=t.requestTimeout,this.extraHeaders=t.extraHeaders,"undefined"!=typeof location){var e="https:"===location.protocol,n=location.port;n||(n=e?443:80),this.xd="undefined"!=typeof location&&t.hostname!==location.hostname||n!==t.port,this.xs=t.secure!==e}}function u(t){this.method=t.method||"GET",this.uri=t.uri,this.xd=!!t.xd,this.xs=!!t.xs,this.async=!1!==t.async,this.data=void 0!==t.data?t.data:null,this.agent=t.agent,this.isBinary=t.isBinary,this.supportsBinary=t.supportsBinary,this.enablesXDR=t.enablesXDR,this.requestTimeout=t.requestTimeout,this.pfx=t.pfx,this.key=t.key,this.passphrase=t.passphrase,this.cert=t.cert,this.ca=t.ca,this.ciphers=t.ciphers,this.rejectUnauthorized=t.rejectUnauthorized,this.extraHeaders=t.extraHeaders,this.create()}if(t.exports=l,t.exports.Request=u,s(l,i),l.prototype.supportsBinary=!0,l.prototype.request=function(t){return(t=t||{}).uri=this.uri(),t.xd=this.xd,t.xs=this.xs,t.agent=this.agent||!1,t.supportsBinary=this.supportsBinary,t.enablesXDR=this.enablesXDR,t.pfx=this.pfx,t.key=this.key,t.passphrase=this.passphrase,t.cert=this.cert,t.ca=this.ca,t.ciphers=this.ciphers,t.rejectUnauthorized=this.rejectUnauthorized,t.requestTimeout=this.requestTimeout,t.extraHeaders=this.extraHeaders,new u(t)},l.prototype.doWrite=function(t,e){var n="string"!=typeof t&&void 0!==t,r=this.request({method:"POST",data:t,isBinary:n}),i=this;r.on("success",e),r.on("error",(function(t){i.onError("xhr post error",t)})),this.sendXhr=r},l.prototype.doPoll=function(){a("xhr poll");var t=this.request(),e=this;t.on("data",(function(t){e.onData(t)})),t.on("error",(function(t){e.onError("xhr poll error",t)})),this.pollXhr=t},o(u.prototype),u.prototype.create=function(){var t={agent:this.agent,xdomain:this.xd,xscheme:this.xs,enablesXDR:this.enablesXDR};t.pfx=this.pfx,t.key=this.key,t.passphrase=this.passphrase,t.cert=this.cert,t.ca=this.ca,t.ciphers=this.ciphers,t.rejectUnauthorized=this.rejectUnauthorized;var e=this.xhr=new r(t),n=this;try{a("xhr open %s: %s",this.method,this.uri),e.open(this.method,this.uri,this.async);try{if(this.extraHeaders)for(var i in e.setDisableHeaderCheck&&e.setDisableHeaderCheck(!0),this.extraHeaders)this.extraHeaders.hasOwnProperty(i)&&e.setRequestHeader(i,this.extraHeaders[i])}catch(t){}if("POST"===this.method)try{this.isBinary?e.setRequestHeader("Content-type","application/octet-stream"):e.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(t){}try{e.setRequestHeader("Accept","*/*")}catch(t){}"withCredentials"in e&&(e.withCredentials=!0),this.requestTimeout&&(e.timeout=this.requestTimeout),this.hasXDR()?(e.onload=function(){n.onLoad()},e.onerror=function(){n.onError(e.responseText)}):e.onreadystatechange=function(){if(2===e.readyState)try{var t=e.getResponseHeader("Content-Type");n.supportsBinary&&"application/octet-stream"===t&&(e.responseType="arraybuffer")}catch(t){}4===e.readyState&&(200===e.status||1223===e.status?n.onLoad():setTimeout((function(){n.onError(e.status)}),0))},a("xhr data %s",this.data),e.send(this.data)}catch(t){return void setTimeout((function(){n.onError(t)}),0)}"undefined"!=typeof document&&(this.index=u.requestsCount++,u.requests[this.index]=this)},u.prototype.onSuccess=function(){this.emit("success"),this.cleanup()},u.prototype.onData=function(t){this.emit("data",t),this.onSuccess()},u.prototype.onError=function(t){this.emit("error",t),this.cleanup(!0)},u.prototype.cleanup=function(t){if(void 0!==this.xhr&&null!==this.xhr){if(this.hasXDR()?this.xhr.onload=this.xhr.onerror=c:this.xhr.onreadystatechange=c,t)try{this.xhr.abort()}catch(t){}"undefined"!=typeof document&&delete u.requests[this.index],this.xhr=null}},u.prototype.onLoad=function(){var t;try{var e;try{e=this.xhr.getResponseHeader("Content-Type")}catch(t){}t="application/octet-stream"===e&&this.xhr.response||this.xhr.responseText}catch(t){this.onError(t)}null!=t&&this.onData(t)},u.prototype.hasXDR=function(){return"undefined"!=typeof XDomainRequest&&!this.xs&&this.enablesXDR},u.prototype.abort=function(){this.cleanup()},u.requestsCount=0,u.requests={},"undefined"!=typeof document)if("function"==typeof attachEvent)attachEvent("onunload",p);else if("function"==typeof addEventListener){var h="onpagehide"in self?"pagehide":"unload";addEventListener(h,p,!1)}function p(){for(var t in u.requests)u.requests.hasOwnProperty(t)&&u.requests[t].abort()}},function(t,e){t.exports=Object.keys||function(t){var e=[],n=Object.prototype.hasOwnProperty;for(var r in t)n.call(t,r)&&e.push(r);return e}},function(t,e){t.exports=function(t,e,n){var r=t.byteLength;if(e=e||0,n=n||r,t.slice)return t.slice(e,n);if(e<0&&(e+=r),n<0&&(n+=r),n>r&&(n=r),e>=r||e>=n||0===r)return new ArrayBuffer(0);for(var i=new Uint8Array(t),o=new Uint8Array(n-e),s=e,a=0;s<n;s++,a++)o[a]=i[s];return o.buffer}},function(t,e){function n(){}t.exports=function(t,e,r){var i=!1;return r=r||n,o.count=t,0===t?e():o;function o(t,n){if(o.count<=0)throw new Error("after called too many times");--o.count,t?(i=!0,e(t),e=r):0!==o.count||i||e(null,n)}}},function(t,e){var n,r,i,o=String.fromCharCode;function s(t){for(var e,n,r=[],i=0,o=t.length;i<o;)(e=t.charCodeAt(i++))>=55296&&e<=56319&&i<o?56320==(64512&(n=t.charCodeAt(i++)))?r.push(((1023&e)<<10)+(1023&n)+65536):(r.push(e),i--):r.push(e);return r}function a(t,e){if(t>=55296&&t<=57343){if(e)throw Error("Lone surrogate U+"+t.toString(16).toUpperCase()+" is not a scalar value");return!1}return!0}function c(t,e){return o(t>>e&63|128)}function l(t,e){if(0==(4294967168&t))return o(t);var n="";return 0==(4294965248&t)?n=o(t>>6&31|192):0==(4294901760&t)?(a(t,e)||(t=65533),n=o(t>>12&15|224),n+=c(t,6)):0==(4292870144&t)&&(n=o(t>>18&7|240),n+=c(t,12),n+=c(t,6)),n+o(63&t|128)}function u(){if(i>=r)throw Error("Invalid byte index");var t=255&n[i];if(i++,128==(192&t))return 63&t;throw Error("Invalid continuation byte")}function h(t){var e,o;if(i>r)throw Error("Invalid byte index");if(i==r)return!1;if(e=255&n[i],i++,0==(128&e))return e;if(192==(224&e)){if((o=(31&e)<<6|u())>=128)return o;throw Error("Invalid continuation byte")}if(224==(240&e)){if((o=(15&e)<<12|u()<<6|u())>=2048)return a(o,t)?o:65533;throw Error("Invalid continuation byte")}if(240==(248&e)&&(o=(7&e)<<18|u()<<12|u()<<6|u())>=65536&&o<=1114111)return o;throw Error("Invalid UTF-8 detected")}t.exports={version:"2.1.2",encode:function(t,e){for(var n=!1!==(e=e||{}).strict,r=s(t),i=r.length,o=-1,a="";++o<i;)a+=l(r[o],n);return a},decode:function(t,e){var a=!1!==(e=e||{}).strict;n=s(t),r=n.length,i=0;for(var c,l=[];!1!==(c=h(a));)l.push(c);return function(t){for(var e,n=t.length,r=-1,i="";++r<n;)(e=t[r])>65535&&(i+=o((e-=65536)>>>10&1023|55296),e=56320|1023&e),i+=o(e);return i}(l)}}},function(t,e){!function(){"use strict";for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n=new Uint8Array(256),r=0;r<t.length;r++)n[t.charCodeAt(r)]=r;e.encode=function(e){var n,r=new Uint8Array(e),i=r.length,o="";for(n=0;n<i;n+=3)o+=t[r[n]>>2],o+=t[(3&r[n])<<4|r[n+1]>>4],o+=t[(15&r[n+1])<<2|r[n+2]>>6],o+=t[63&r[n+2]];return i%3==2?o=o.substring(0,o.length-1)+"=":i%3==1&&(o=o.substring(0,o.length-2)+"=="),o},e.decode=function(t){var e,r,i,o,s,a=.75*t.length,c=t.length,l=0;"="===t[t.length-1]&&(a--,"="===t[t.length-2]&&a--);var u=new ArrayBuffer(a),h=new Uint8Array(u);for(e=0;e<c;e+=4)r=n[t.charCodeAt(e)],i=n[t.charCodeAt(e+1)],o=n[t.charCodeAt(e+2)],s=n[t.charCodeAt(e+3)],h[l++]=r<<2|i>>4,h[l++]=(15&i)<<4|o>>2,h[l++]=(3&o)<<6|63&s;return u}}()},function(t,e){var n=void 0!==n?n:"undefined"!=typeof WebKitBlobBuilder?WebKitBlobBuilder:"undefined"!=typeof MSBlobBuilder?MSBlobBuilder:"undefined"!=typeof MozBlobBuilder&&MozBlobBuilder,r=function(){try{return 2===new Blob(["hi"]).size}catch(t){return!1}}(),i=r&&function(){try{return 2===new Blob([new Uint8Array([1,2])]).size}catch(t){return!1}}(),o=n&&n.prototype.append&&n.prototype.getBlob;function s(t){return t.map((function(t){if(t.buffer instanceof ArrayBuffer){var e=t.buffer;if(t.byteLength!==e.byteLength){var n=new Uint8Array(t.byteLength);n.set(new Uint8Array(e,t.byteOffset,t.byteLength)),e=n.buffer}return e}return t}))}function a(t,e){e=e||{};var r=new n;return s(t).forEach((function(t){r.append(t)})),e.type?r.getBlob(e.type):r.getBlob()}function c(t,e){return new Blob(s(t),e||{})}"undefined"!=typeof Blob&&(a.prototype=Blob.prototype,c.prototype=Blob.prototype),t.exports=r?i?Blob:c:o?a:void 0},function(t,e,n){(function(e){var r=n(15),i=n(4);t.exports=u;var o,s=/\n/g,a=/\\n/g;function c(){}function l(){return"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==e?e:{}}function u(t){if(r.call(this,t),this.query=this.query||{},!o){var e=l();o=e.___eio=e.___eio||[]}this.index=o.length;var n=this;o.push((function(t){n.onData(t)})),this.query.j=this.index,"function"==typeof addEventListener&&addEventListener("beforeunload",(function(){n.script&&(n.script.onerror=c)}),!1)}i(u,r),u.prototype.supportsBinary=!1,u.prototype.doClose=function(){this.script&&(this.script.parentNode.removeChild(this.script),this.script=null),this.form&&(this.form.parentNode.removeChild(this.form),this.form=null,this.iframe=null),r.prototype.doClose.call(this)},u.prototype.doPoll=function(){var t=this,e=document.createElement("script");this.script&&(this.script.parentNode.removeChild(this.script),this.script=null),e.async=!0,e.src=this.uri(),e.onerror=function(e){t.onError("jsonp poll error",e)};var n=document.getElementsByTagName("script")[0];n?n.parentNode.insertBefore(e,n):(document.head||document.body).appendChild(e),this.script=e,"undefined"!=typeof navigator&&/gecko/i.test(navigator.userAgent)&&setTimeout((function(){var t=document.createElement("iframe");document.body.appendChild(t),document.body.removeChild(t)}),100)},u.prototype.doWrite=function(t,e){var n=this;if(!this.form){var r,i=document.createElement("form"),o=document.createElement("textarea"),c=this.iframeId="eio_iframe_"+this.index;i.className="socketio",i.style.position="absolute",i.style.top="-1000px",i.style.left="-1000px",i.target=c,i.method="POST",i.setAttribute("accept-charset","utf-8"),o.name="d",i.appendChild(o),document.body.appendChild(i),this.form=i,this.area=o}function l(){u(),e()}function u(){if(n.iframe)try{n.form.removeChild(n.iframe)}catch(t){n.onError("jsonp polling iframe removal error",t)}try{var t='<iframe src="javascript:0" name="'+n.iframeId+'">';r=document.createElement(t)}catch(t){(r=document.createElement("iframe")).name=n.iframeId,r.src="javascript:0"}r.id=n.iframeId,n.form.appendChild(r),n.iframe=r}this.form.action=this.uri(),u(),t=t.replace(a,"\\\n"),this.area.value=t.replace(s,"\\n");try{this.form.submit()}catch(t){}this.iframe.attachEvent?this.iframe.onreadystatechange=function(){"complete"===n.iframe.readyState&&l()}:this.iframe.onload=l}}).call(this,n(12))},function(t,e,n){(function(e){var r,i,o=n(9),s=n(2),a=n(3),c=n(4),l=n(17),u=n(0)("engine.io-client:websocket");if("undefined"!=typeof WebSocket)r=WebSocket;else if("undefined"!=typeof self)r=self.WebSocket||self.MozWebSocket;else try{i=n(44)}catch(t){}var h=r||i;function p(t){t&&t.forceBase64&&(this.supportsBinary=!1),this.perMessageDeflate=t.perMessageDeflate,this.usingBrowserWebSocket=r&&!t.forceNode,this.protocols=t.protocols,this.usingBrowserWebSocket||(h=i),o.call(this,t)}t.exports=p,c(p,o),p.prototype.name="websocket",p.prototype.supportsBinary=!0,p.prototype.doOpen=function(){if(this.check()){var t=this.uri(),e=this.protocols,n={agent:this.agent,perMessageDeflate:this.perMessageDeflate};n.pfx=this.pfx,n.key=this.key,n.passphrase=this.passphrase,n.cert=this.cert,n.ca=this.ca,n.ciphers=this.ciphers,n.rejectUnauthorized=this.rejectUnauthorized,this.extraHeaders&&(n.headers=this.extraHeaders),this.localAddress&&(n.localAddress=this.localAddress);try{this.ws=this.usingBrowserWebSocket&&!this.isReactNative?e?new h(t,e):new h(t):new h(t,e,n)}catch(t){return this.emit("error",t)}void 0===this.ws.binaryType&&(this.supportsBinary=!1),this.ws.supports&&this.ws.supports.binary?(this.supportsBinary=!0,this.ws.binaryType="nodebuffer"):this.ws.binaryType="arraybuffer",this.addEventListeners()}},p.prototype.addEventListeners=function(){var t=this;this.ws.onopen=function(){t.onOpen()},this.ws.onclose=function(){t.onClose()},this.ws.onmessage=function(e){t.onData(e.data)},this.ws.onerror=function(e){t.onError("websocket error",e)}},p.prototype.write=function(t){var n=this;this.writable=!1;for(var r=t.length,i=0,o=r;i<o;i++)!function(t){s.encodePacket(t,n.supportsBinary,(function(i){if(!n.usingBrowserWebSocket){var o={};t.options&&(o.compress=t.options.compress),n.perMessageDeflate&&("string"==typeof i?e.byteLength(i):i.length)<n.perMessageDeflate.threshold&&(o.compress=!1)}try{n.usingBrowserWebSocket?n.ws.send(i):n.ws.send(i,o)}catch(t){u("websocket closed before onclose event")}--r||(n.emit("flush"),setTimeout((function(){n.writable=!0,n.emit("drain")}),0))}))}(t[i])},p.prototype.onClose=function(){o.prototype.onClose.call(this)},p.prototype.doClose=function(){void 0!==this.ws&&this.ws.close()},p.prototype.uri=function(){var t=this.query||{},e=this.secure?"wss":"ws",n="";return this.port&&("wss"===e&&443!==Number(this.port)||"ws"===e&&80!==Number(this.port))&&(n=":"+this.port),this.timestampRequests&&(t[this.timestampParam]=l()),this.supportsBinary||(t.b64=1),(t=a.encode(t)).length&&(t="?"+t),e+"://"+(-1!==this.hostname.indexOf(":")?"["+this.hostname+"]":this.hostname)+n+this.path+t},p.prototype.check=function(){return!(!h||"__initialize"in h&&this.name===p.prototype.name)}}).call(this,n(7).Buffer)},function(t,e){},function(t,e){t.exports=function(t,e){for(var n=[],r=(e=e||0)||0;r<t.length;r++)n[r-e]=t[r];return n}},function(t,e){function n(t){t=t||{},this.ms=t.min||100,this.max=t.max||1e4,this.factor=t.factor||2,this.jitter=t.jitter>0&&t.jitter<=1?t.jitter:0,this.attempts=0}t.exports=n,n.prototype.duration=function(){var t=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var e=Math.random(),n=Math.floor(e*this.jitter*t);t=0==(1&Math.floor(10*e))?t-n:t+n}return 0|Math.min(t,this.max)},n.prototype.reset=function(){this.attempts=0},n.prototype.setMin=function(t){this.ms=t},n.prototype.setMax=function(t){this.max=t},n.prototype.setJitter=function(t){this.jitter=t}},function(t,e,n){"use strict";n.r(e);var r={beforeCreate(){this.sockets||(this.sockets={}),this.sockets.subscribe=(t,e)=>{this.$vueSocketIo.emitter.addListener(t,e,this)},this.sockets.unsubscribe=t=>{this.$vueSocketIo.emitter.removeListener(t,this)}},mounted(){this.$options.sockets&&Object.keys(this.$options.sockets).forEach((t=>{"subscribe"!==t&&"unsubscribe"!==t&&this.$vueSocketIo.emitter.addListener(t,this.$options.sockets[t],this)}))},beforeDestroy(){this.$options.sockets&&Object.keys(this.$options.sockets).forEach((t=>{this.$vueSocketIo.emitter.removeListener(t,this)}))}};function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var o=new(function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.debug=!1,this.prefix="%cVue-Socket.io: "}var e,n;return e=t,(n=[{key:"info",value:function(t,e=""){this.debug&&window.console.info(this.prefix+`%c${t}`,"color: blue; font-weight: 600","color: #333333",e)}},{key:"error",value:function(){this.debug&&window.console.error(this.prefix,...arguments)}},{key:"warn",value:function(){this.debug&&window.console.warn(this.prefix,...arguments)}},{key:"event",value:function(t,e=""){this.debug&&window.console.info(this.prefix+`%c${t}`,"color: blue; font-weight: 600","color: #333333",e)}}])&&i(e.prototype,n),t}());function s(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}let a=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.io=e,this.register(),this.emitter=n}var e,n;return e=t,(n=[{key:"register",value:function(){this.io.onevent=t=>{let[e,...n]=t.data;1===n.length&&(n=n[0]),this.onEvent(e,n)},t.staticEvents.forEach((t=>this.io.on(t,(e=>this.onEvent(t,e)))))}},{key:"onEvent",value:function(t,e){this.emitter.emit(t,e)}}])&&s(e.prototype,n),t}();var c,l,u;function h(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}u=["connect","error","disconnect","reconnect","reconnect_attempt","reconnecting","reconnect_error","reconnect_failed","connect_error","connect_timeout","connecting","ping","pong"],(l="staticEvents")in(c=a)?Object.defineProperty(c,l,{value:u,enumerable:!0,configurable:!0,writable:!0}):c[l]=u;let p=function(){function t(e={}){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),o.info(e?"Vuex adapter enabled":"Vuex adapter disabled"),o.info(e.mutationPrefix?"Vuex socket mutations enabled":"Vuex socket mutations disabled"),o.info(e?"Vuex socket actions enabled":"Vuex socket actions disabled"),this.store=e.store,this.actionPrefix=e.actionPrefix?e.actionPrefix:"SOCKET_",this.mutationPrefix=e.mutationPrefix,this.listeners=new Map}var e,n;return e=t,(n=[{key:"addListener",value:function(t,e,n){if("function"!=typeof e)throw new Error("callback must be a function");this.listeners.has(t)||this.listeners.set(t,[]),this.listeners.get(t).push({callback:e,component:n}),o.info(`#${t} subscribe, component: ${n.$options.name}`)}},{key:"removeListener",value:function(t,e){if(this.listeners.has(t)){const n=this.listeners.get(t).filter((t=>t.component!==e));n.length>0?this.listeners.set(t,n):this.listeners.delete(t),o.info(`#${t} unsubscribe, component: ${e.$options.name}`)}}},{key:"emit",value:function(t,e){this.listeners.has(t)&&(o.info(`Broadcasting: #${t}, Data:`,e),this.listeners.get(t).forEach((t=>{t.callback.call(t.component,e)}))),"ping"!==t&&"pong"!==t&&this.dispatchStore(t,e)}},{key:"dispatchStore",value:function(t,e){if(this.store&&this.store._actions){let n=this.actionPrefix+t;for(let t in this.store._actions)t.split("/").pop()===n&&(o.info(`Dispatching Action: ${t}, Data:`,e),this.store.dispatch(t,e));if(this.mutationPrefix){let n=this.mutationPrefix+t;for(let t in this.store._mutations)t.split("/").pop()===n&&(o.info(`Commiting Mutation: ${t}, Data:`,e),this.store.commit(t,e))}}}}])&&h(e.prototype,n),t}();var d=n(22),f=n.n(d);function g(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}n.d(e,"default",(function(){return v}));let v=function(){function t({connection:e,vuex:n,debug:r,options:i}){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),o.debug=r,this.io=this.connect(e,i),this.emitter=new p(n),this.listener=new a(this.io,this.emitter)}var e,n;return e=t,(n=[{key:"install",value:function(t){t.prototype.$socket=this.io,t.prototype.$vueSocketIo=this,t.mixin(r),o.info("Vue-Socket.io plugin enabled")}},{key:"connect",value:function(t,e){if(t&&"object"==typeof t)return o.info("Received socket.io-client instance"),t;if("string"==typeof t)return o.info("Received connection string"),this.io=f()(t,e);throw new Error("Unsupported connection type")}}])&&g(e.prototype,n),t}()}]).default},1238:(t,e,n)=>{var r=n(224);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[t.id,r,""]]),r.locals&&(t.exports=r.locals),(0,n(5346).Z)("9e580292",r,!1,{})},8790:(t,e,n)=>{var r=n(1975);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[t.id,r,""]]),r.locals&&(t.exports=r.locals),(0,n(5346).Z)("21382f96",r,!1,{})},1407:(t,e,n)=>{var r=n(5754);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[t.id,r,""]]),r.locals&&(t.exports=r.locals),(0,n(5346).Z)("2799174b",r,!1,{})},6240:(t,e,n)=>{var r=n(2354);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[t.id,r,""]]),r.locals&&(t.exports=r.locals),(0,n(5346).Z)("2bf40582",r,!1,{})},3628:(t,e,n)=>{var r=n(5439);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[t.id,r,""]]),r.locals&&(t.exports=r.locals),(0,n(5346).Z)("7f6a579b",r,!1,{})},2307:(t,e,n)=>{var r=n(4321);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[t.id,r,""]]),r.locals&&(t.exports=r.locals),(0,n(5346).Z)("19795d70",r,!1,{})},6590:(t,e,n)=>{var r=n(3035);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[t.id,r,""]]),r.locals&&(t.exports=r.locals),(0,n(5346).Z)("45c93e32",r,!1,{})},6834:(t,e,n)=>{var r=n(8466);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[t.id,r,""]]),r.locals&&(t.exports=r.locals),(0,n(5346).Z)("45d45dbe",r,!1,{})},8600:(t,e,n)=>{var r=n(2972);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[t.id,r,""]]),r.locals&&(t.exports=r.locals),(0,n(5346).Z)("36d131af",r,!1,{})},3266:(t,e,n)=>{var r=n(2640);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[t.id,r,""]]),r.locals&&(t.exports=r.locals),(0,n(5346).Z)("e4f67f42",r,!1,{})},9746:(t,e,n)=>{var r=n(2639);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[t.id,r,""]]),r.locals&&(t.exports=r.locals),(0,n(5346).Z)("7747e9b4",r,!1,{})},3257:(t,e,n)=>{var r=n(3068);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[t.id,r,""]]),r.locals&&(t.exports=r.locals),(0,n(5346).Z)("466362a2",r,!1,{})},5922:(t,e,n)=>{var r=n(6081);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[t.id,r,""]]),r.locals&&(t.exports=r.locals),(0,n(5346).Z)("53339a10",r,!1,{})},6043:(t,e,n)=>{var r=n(8710);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[t.id,r,""]]),r.locals&&(t.exports=r.locals),(0,n(5346).Z)("b4154926",r,!1,{})},48:(t,e,n)=>{var r=n(9528);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[t.id,r,""]]),r.locals&&(t.exports=r.locals),(0,n(5346).Z)("76c23032",r,!1,{})},646:(t,e,n)=>{var r=n(5071);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[t.id,r,""]]),r.locals&&(t.exports=r.locals),(0,n(5346).Z)("cf265638",r,!1,{})},8315:(t,e,n)=>{var r=n(6461);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[t.id,r,""]]),r.locals&&(t.exports=r.locals),(0,n(5346).Z)("157ebeb3",r,!1,{})},9721:(t,e,n)=>{var r=n(718);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[t.id,r,""]]),r.locals&&(t.exports=r.locals),(0,n(5346).Z)("09f39871",r,!1,{})},711:(t,e,n)=>{var r=n(65);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[t.id,r,""]]),r.locals&&(t.exports=r.locals),(0,n(5346).Z)("362694ba",r,!1,{})},3:(t,e,n)=>{var r=n(6374);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[t.id,r,""]]),r.locals&&(t.exports=r.locals),(0,n(5346).Z)("5cd00662",r,!1,{})},4184:(t,e,n)=>{var r=n(238);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[t.id,r,""]]),r.locals&&(t.exports=r.locals),(0,n(5346).Z)("1e17ca71",r,!1,{})},4052:(t,e,n)=>{var r=n(1511);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[t.id,r,""]]),r.locals&&(t.exports=r.locals),(0,n(5346).Z)("0c4b9021",r,!1,{})},3175:(t,e,n)=>{var r=n(6996);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[t.id,r,""]]),r.locals&&(t.exports=r.locals),(0,n(5346).Z)("1897081b",r,!1,{})},6770:(t,e,n)=>{var r=n(3102);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[t.id,r,""]]),r.locals&&(t.exports=r.locals),(0,n(5346).Z)("d6de4300",r,!1,{})},7620:(t,e,n)=>{var r=n(7521);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[t.id,r,""]]),r.locals&&(t.exports=r.locals),(0,n(5346).Z)("56463b46",r,!1,{})},4163:(t,e,n)=>{var r=n(1445);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[t.id,r,""]]),r.locals&&(t.exports=r.locals),(0,n(5346).Z)("f80dcda6",r,!1,{})},9534:(t,e,n)=>{var r=n(4749);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[t.id,r,""]]),r.locals&&(t.exports=r.locals),(0,n(5346).Z)("5f393752",r,!1,{})},4223:(t,e,n)=>{var r=n(1406);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[t.id,r,""]]),r.locals&&(t.exports=r.locals),(0,n(5346).Z)("e92c45e8",r,!1,{})},1339:(t,e,n)=>{var r=n(1004);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[t.id,r,""]]),r.locals&&(t.exports=r.locals),(0,n(5346).Z)("8c03c314",r,!1,{})},7443:(t,e,n)=>{var r=n(9078);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[t.id,r,""]]),r.locals&&(t.exports=r.locals),(0,n(5346).Z)("38cf8d24",r,!1,{})},3421:(t,e,n)=>{var r=n(7042);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[t.id,r,""]]),r.locals&&(t.exports=r.locals),(0,n(5346).Z)("4bd103f7",r,!1,{})},6524:(t,e,n)=>{var r=n(9413);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[t.id,r,""]]),r.locals&&(t.exports=r.locals),(0,n(5346).Z)("1eae4697",r,!1,{})},3076:(t,e,n)=>{var r=n(5477);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[t.id,r,""]]),r.locals&&(t.exports=r.locals),(0,n(5346).Z)("24039670",r,!1,{})},5346:(t,e,n)=>{"use strict";function r(t,e){for(var n=[],r={},i=0;i<e.length;i++){var o=e[i],s=o[0],a={id:t+":"+i,css:o[1],media:o[2],sourceMap:o[3]};r[s]?r[s].parts.push(a):n.push(r[s]={id:s,parts:[a]})}return n}n.d(e,{Z:()=>f});var i="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!i)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var o={},s=i&&(document.head||document.getElementsByTagName("head")[0]),a=null,c=0,l=!1,u=function(){},h=null,p="data-vue-ssr-id",d="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function f(t,e,n,i){l=n,h=i||{};var s=r(t,e);return g(s),function(e){for(var n=[],i=0;i<s.length;i++){var a=s[i];(c=o[a.id]).refs--,n.push(c)}for(e?g(s=r(t,e)):s=[],i=0;i<n.length;i++){var c;if(0===(c=n[i]).refs){for(var l=0;l<c.parts.length;l++)c.parts[l]();delete o[c.id]}}}}function g(t){for(var e=0;e<t.length;e++){var n=t[e],r=o[n.id];if(r){r.refs++;for(var i=0;i<r.parts.length;i++)r.parts[i](n.parts[i]);for(;i<n.parts.length;i++)r.parts.push(m(n.parts[i]));r.parts.length>n.parts.length&&(r.parts.length=n.parts.length)}else{var s=[];for(i=0;i<n.parts.length;i++)s.push(m(n.parts[i]));o[n.id]={id:n.id,refs:1,parts:s}}}}function v(){var t=document.createElement("style");return t.type="text/css",s.appendChild(t),t}function m(t){var e,n,r=document.querySelector("style["+p+'~="'+t.id+'"]');if(r){if(l)return u;r.parentNode.removeChild(r)}if(d){var i=c++;r=a||(a=v()),e=w.bind(null,r,i,!1),n=w.bind(null,r,i,!0)}else r=v(),e=x.bind(null,r),n=function(){r.parentNode.removeChild(r)};return e(t),function(r){if(r){if(r.css===t.css&&r.media===t.media&&r.sourceMap===t.sourceMap)return;e(t=r)}else n()}}var y,b=(y=[],function(t,e){return y[t]=e,y.filter(Boolean).join("\n")});function w(t,e,n,r){var i=n?"":r.css;if(t.styleSheet)t.styleSheet.cssText=b(e,i);else{var o=document.createTextNode(i),s=t.childNodes;s[e]&&t.removeChild(s[e]),s.length?t.insertBefore(o,s[e]):t.appendChild(o)}}function x(t,e){var n=e.css,r=e.media,i=e.sourceMap;if(r&&t.setAttribute("media",r),h.ssrId&&t.setAttribute(p,e.id),i&&(n+="\n/*# sourceURL="+i.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */"),t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}},144:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>ji});var r=Object.freeze({});function i(t){return null==t}function o(t){return null!=t}function s(t){return!0===t}function a(t){return"string"==typeof t||"number"==typeof t||"symbol"==typeof t||"boolean"==typeof t}function c(t){return null!==t&&"object"==typeof t}var l=Object.prototype.toString;function u(t){return"[object Object]"===l.call(t)}function h(t){var e=parseFloat(String(t));return e>=0&&Math.floor(e)===e&&isFinite(t)}function p(t){return o(t)&&"function"==typeof t.then&&"function"==typeof t.catch}function d(t){return null==t?"":Array.isArray(t)||u(t)&&t.toString===l?JSON.stringify(t,null,2):String(t)}function f(t){var e=parseFloat(t);return isNaN(e)?t:e}function g(t,e){for(var n=Object.create(null),r=t.split(","),i=0;i<r.length;i++)n[r[i]]=!0;return e?function(t){return n[t.toLowerCase()]}:function(t){return n[t]}}g("slot,component",!0);var v=g("key,ref,slot,slot-scope,is");function m(t,e){if(t.length){var n=t.indexOf(e);if(n>-1)return t.splice(n,1)}}var y=Object.prototype.hasOwnProperty;function b(t,e){return y.call(t,e)}function w(t){var e=Object.create(null);return function(n){return e[n]||(e[n]=t(n))}}var x=/-(\w)/g,_=w((function(t){return t.replace(x,(function(t,e){return e?e.toUpperCase():""}))})),k=w((function(t){return t.charAt(0).toUpperCase()+t.slice(1)})),C=/\B([A-Z])/g,S=w((function(t){return t.replace(C,"-$1").toLowerCase()})),A=Function.prototype.bind?function(t,e){return t.bind(e)}:function(t,e){function n(n){var r=arguments.length;return r?r>1?t.apply(e,arguments):t.call(e,n):t.call(e)}return n._length=t.length,n};function E(t,e){e=e||0;for(var n=t.length-e,r=new Array(n);n--;)r[n]=t[n+e];return r}function O(t,e){for(var n in e)t[n]=e[n];return t}function T(t){for(var e={},n=0;n<t.length;n++)t[n]&&O(e,t[n]);return e}function P(t,e,n){}var I=function(t,e,n){return!1},R=function(t){return t};function M(t,e){if(t===e)return!0;var n=c(t),r=c(e);if(!n||!r)return!n&&!r&&String(t)===String(e);try{var i=Array.isArray(t),o=Array.isArray(e);if(i&&o)return t.length===e.length&&t.every((function(t,n){return M(t,e[n])}));if(t instanceof Date&&e instanceof Date)return t.getTime()===e.getTime();if(i||o)return!1;var s=Object.keys(t),a=Object.keys(e);return s.length===a.length&&s.every((function(n){return M(t[n],e[n])}))}catch(t){return!1}}function N(t,e){for(var n=0;n<t.length;n++)if(M(t[n],e))return n;return-1}function D(t){var e=!1;return function(){e||(e=!0,t.apply(this,arguments))}}var j="data-server-rendered",L=["component","directive","filter"],z=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured","serverPrefetch"],$={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:I,isReservedAttr:I,isUnknownElement:I,getTagNamespace:P,parsePlatformTagName:R,mustUseProp:I,async:!0,_lifecycleHooks:z};function B(t,e,n,r){Object.defineProperty(t,e,{value:n,enumerable:!!r,writable:!0,configurable:!0})}var H,U=new RegExp("[^"+/a-zA-Z\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD/.source+".$_\\d]"),F="__proto__"in{},q="undefined"!=typeof window,W="undefined"!=typeof WXEnvironment&&!!WXEnvironment.platform,V=W&&WXEnvironment.platform.toLowerCase(),Y=q&&window.navigator.userAgent.toLowerCase(),X=Y&&/msie|trident/.test(Y),J=Y&&Y.indexOf("msie 9.0")>0,G=Y&&Y.indexOf("edge/")>0,K=(Y&&Y.indexOf("android"),Y&&/iphone|ipad|ipod|ios/.test(Y)||"ios"===V),Z=(Y&&/chrome\/\d+/.test(Y),Y&&/phantomjs/.test(Y),Y&&Y.match(/firefox\/(\d+)/)),Q={}.watch,tt=!1;if(q)try{var et={};Object.defineProperty(et,"passive",{get:function(){tt=!0}}),window.addEventListener("test-passive",null,et)}catch(t){}var nt=function(){return void 0===H&&(H=!q&&!W&&void 0!==n.g&&n.g.process&&"server"===n.g.process.env.VUE_ENV),H},rt=q&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function it(t){return"function"==typeof t&&/native code/.test(t.toString())}var ot,st="undefined"!=typeof Symbol&&it(Symbol)&&"undefined"!=typeof Reflect&&it(Reflect.ownKeys);ot="undefined"!=typeof Set&&it(Set)?Set:function(){function t(){this.set=Object.create(null)}return t.prototype.has=function(t){return!0===this.set[t]},t.prototype.add=function(t){this.set[t]=!0},t.prototype.clear=function(){this.set=Object.create(null)},t}();var at=P,ct=0,lt=function(){this.id=ct++,this.subs=[]};lt.prototype.addSub=function(t){this.subs.push(t)},lt.prototype.removeSub=function(t){m(this.subs,t)},lt.prototype.depend=function(){lt.target&<.target.addDep(this)},lt.prototype.notify=function(){for(var t=this.subs.slice(),e=0,n=t.length;e<n;e++)t[e].update()},lt.target=null;var ut=[];function ht(t){ut.push(t),lt.target=t}function pt(){ut.pop(),lt.target=ut[ut.length-1]}var dt=function(t,e,n,r,i,o,s,a){this.tag=t,this.data=e,this.children=n,this.text=r,this.elm=i,this.ns=void 0,this.context=o,this.fnContext=void 0,this.fnOptions=void 0,this.fnScopeId=void 0,this.key=e&&e.key,this.componentOptions=s,this.componentInstance=void 0,this.parent=void 0,this.raw=!1,this.isStatic=!1,this.isRootInsert=!0,this.isComment=!1,this.isCloned=!1,this.isOnce=!1,this.asyncFactory=a,this.asyncMeta=void 0,this.isAsyncPlaceholder=!1},ft={child:{configurable:!0}};ft.child.get=function(){return this.componentInstance},Object.defineProperties(dt.prototype,ft);var gt=function(t){void 0===t&&(t="");var e=new dt;return e.text=t,e.isComment=!0,e};function vt(t){return new dt(void 0,void 0,void 0,String(t))}function mt(t){var e=new dt(t.tag,t.data,t.children&&t.children.slice(),t.text,t.elm,t.context,t.componentOptions,t.asyncFactory);return e.ns=t.ns,e.isStatic=t.isStatic,e.key=t.key,e.isComment=t.isComment,e.fnContext=t.fnContext,e.fnOptions=t.fnOptions,e.fnScopeId=t.fnScopeId,e.asyncMeta=t.asyncMeta,e.isCloned=!0,e}var yt=Array.prototype,bt=Object.create(yt);["push","pop","shift","unshift","splice","sort","reverse"].forEach((function(t){var e=yt[t];B(bt,t,(function(){for(var n=[],r=arguments.length;r--;)n[r]=arguments[r];var i,o=e.apply(this,n),s=this.__ob__;switch(t){case"push":case"unshift":i=n;break;case"splice":i=n.slice(2)}return i&&s.observeArray(i),s.dep.notify(),o}))}));var wt=Object.getOwnPropertyNames(bt),xt=!0;function _t(t){xt=t}var kt=function(t){this.value=t,this.dep=new lt,this.vmCount=0,B(t,"__ob__",this),Array.isArray(t)?(F?function(t,e){t.__proto__=e}(t,bt):function(t,e,n){for(var r=0,i=n.length;r<i;r++){var o=n[r];B(t,o,e[o])}}(t,bt,wt),this.observeArray(t)):this.walk(t)};function Ct(t,e){var n;if(c(t)&&!(t instanceof dt))return b(t,"__ob__")&&t.__ob__ instanceof kt?n=t.__ob__:xt&&!nt()&&(Array.isArray(t)||u(t))&&Object.isExtensible(t)&&!t._isVue&&(n=new kt(t)),e&&n&&n.vmCount++,n}function St(t,e,n,r,i){var o=new lt,s=Object.getOwnPropertyDescriptor(t,e);if(!s||!1!==s.configurable){var a=s&&s.get,c=s&&s.set;a&&!c||2!==arguments.length||(n=t[e]);var l=!i&&Ct(n);Object.defineProperty(t,e,{enumerable:!0,configurable:!0,get:function(){var e=a?a.call(t):n;return lt.target&&(o.depend(),l&&(l.dep.depend(),Array.isArray(e)&&Ot(e))),e},set:function(e){var r=a?a.call(t):n;e===r||e!=e&&r!=r||a&&!c||(c?c.call(t,e):n=e,l=!i&&Ct(e),o.notify())}})}}function At(t,e,n){if(Array.isArray(t)&&h(e))return t.length=Math.max(t.length,e),t.splice(e,1,n),n;if(e in t&&!(e in Object.prototype))return t[e]=n,n;var r=t.__ob__;return t._isVue||r&&r.vmCount?n:r?(St(r.value,e,n),r.dep.notify(),n):(t[e]=n,n)}function Et(t,e){if(Array.isArray(t)&&h(e))t.splice(e,1);else{var n=t.__ob__;t._isVue||n&&n.vmCount||b(t,e)&&(delete t[e],n&&n.dep.notify())}}function Ot(t){for(var e=void 0,n=0,r=t.length;n<r;n++)(e=t[n])&&e.__ob__&&e.__ob__.dep.depend(),Array.isArray(e)&&Ot(e)}kt.prototype.walk=function(t){for(var e=Object.keys(t),n=0;n<e.length;n++)St(t,e[n])},kt.prototype.observeArray=function(t){for(var e=0,n=t.length;e<n;e++)Ct(t[e])};var Tt=$.optionMergeStrategies;function Pt(t,e){if(!e)return t;for(var n,r,i,o=st?Reflect.ownKeys(e):Object.keys(e),s=0;s<o.length;s++)"__ob__"!==(n=o[s])&&(r=t[n],i=e[n],b(t,n)?r!==i&&u(r)&&u(i)&&Pt(r,i):At(t,n,i));return t}function It(t,e,n){return n?function(){var r="function"==typeof e?e.call(n,n):e,i="function"==typeof t?t.call(n,n):t;return r?Pt(r,i):i}:e?t?function(){return Pt("function"==typeof e?e.call(this,this):e,"function"==typeof t?t.call(this,this):t)}:e:t}function Rt(t,e){var n=e?t?t.concat(e):Array.isArray(e)?e:[e]:t;return n?function(t){for(var e=[],n=0;n<t.length;n++)-1===e.indexOf(t[n])&&e.push(t[n]);return e}(n):n}function Mt(t,e,n,r){var i=Object.create(t||null);return e?O(i,e):i}Tt.data=function(t,e,n){return n?It(t,e,n):e&&"function"!=typeof e?t:It(t,e)},z.forEach((function(t){Tt[t]=Rt})),L.forEach((function(t){Tt[t+"s"]=Mt})),Tt.watch=function(t,e,n,r){if(t===Q&&(t=void 0),e===Q&&(e=void 0),!e)return Object.create(t||null);if(!t)return e;var i={};for(var o in O(i,t),e){var s=i[o],a=e[o];s&&!Array.isArray(s)&&(s=[s]),i[o]=s?s.concat(a):Array.isArray(a)?a:[a]}return i},Tt.props=Tt.methods=Tt.inject=Tt.computed=function(t,e,n,r){if(!t)return e;var i=Object.create(null);return O(i,t),e&&O(i,e),i},Tt.provide=It;var Nt=function(t,e){return void 0===e?t:e};function Dt(t,e,n){if("function"==typeof e&&(e=e.options),function(t,e){var n=t.props;if(n){var r,i,o={};if(Array.isArray(n))for(r=n.length;r--;)"string"==typeof(i=n[r])&&(o[_(i)]={type:null});else if(u(n))for(var s in n)i=n[s],o[_(s)]=u(i)?i:{type:i};t.props=o}}(e),function(t,e){var n=t.inject;if(n){var r=t.inject={};if(Array.isArray(n))for(var i=0;i<n.length;i++)r[n[i]]={from:n[i]};else if(u(n))for(var o in n){var s=n[o];r[o]=u(s)?O({from:o},s):{from:s}}}}(e),function(t){var e=t.directives;if(e)for(var n in e){var r=e[n];"function"==typeof r&&(e[n]={bind:r,update:r})}}(e),!e._base&&(e.extends&&(t=Dt(t,e.extends,n)),e.mixins))for(var r=0,i=e.mixins.length;r<i;r++)t=Dt(t,e.mixins[r],n);var o,s={};for(o in t)a(o);for(o in e)b(t,o)||a(o);function a(r){var i=Tt[r]||Nt;s[r]=i(t[r],e[r],n,r)}return s}function jt(t,e,n,r){if("string"==typeof n){var i=t[e];if(b(i,n))return i[n];var o=_(n);if(b(i,o))return i[o];var s=k(o);return b(i,s)?i[s]:i[n]||i[o]||i[s]}}function Lt(t,e,n,r){var i=e[t],o=!b(n,t),s=n[t],a=Ht(Boolean,i.type);if(a>-1)if(o&&!b(i,"default"))s=!1;else if(""===s||s===S(t)){var c=Ht(String,i.type);(c<0||a<c)&&(s=!0)}if(void 0===s){s=function(t,e,n){if(b(e,"default")){var r=e.default;return t&&t.$options.propsData&&void 0===t.$options.propsData[n]&&void 0!==t._props[n]?t._props[n]:"function"==typeof r&&"Function"!==$t(e.type)?r.call(t):r}}(r,i,t);var l=xt;_t(!0),Ct(s),_t(l)}return s}var zt=/^\s*function (\w+)/;function $t(t){var e=t&&t.toString().match(zt);return e?e[1]:""}function Bt(t,e){return $t(t)===$t(e)}function Ht(t,e){if(!Array.isArray(e))return Bt(e,t)?0:-1;for(var n=0,r=e.length;n<r;n++)if(Bt(e[n],t))return n;return-1}function Ut(t,e,n){ht();try{if(e)for(var r=e;r=r.$parent;){var i=r.$options.errorCaptured;if(i)for(var o=0;o<i.length;o++)try{if(!1===i[o].call(r,t,e,n))return}catch(t){qt(t,r,"errorCaptured hook")}}qt(t,e,n)}finally{pt()}}function Ft(t,e,n,r,i){var o;try{(o=n?t.apply(e,n):t.call(e))&&!o._isVue&&p(o)&&!o._handled&&(o.catch((function(t){return Ut(t,r,i+" (Promise/async)")})),o._handled=!0)}catch(t){Ut(t,r,i)}return o}function qt(t,e,n){if($.errorHandler)try{return $.errorHandler.call(null,t,e,n)}catch(e){e!==t&&Wt(e)}Wt(t)}function Wt(t,e,n){if(!q&&!W||"undefined"==typeof console)throw t;console.error(t)}var Vt,Yt=!1,Xt=[],Jt=!1;function Gt(){Jt=!1;var t=Xt.slice(0);Xt.length=0;for(var e=0;e<t.length;e++)t[e]()}if("undefined"!=typeof Promise&&it(Promise)){var Kt=Promise.resolve();Vt=function(){Kt.then(Gt),K&&setTimeout(P)},Yt=!0}else if(X||"undefined"==typeof MutationObserver||!it(MutationObserver)&&"[object MutationObserverConstructor]"!==MutationObserver.toString())Vt="undefined"!=typeof setImmediate&&it(setImmediate)?function(){setImmediate(Gt)}:function(){setTimeout(Gt,0)};else{var Zt=1,Qt=new MutationObserver(Gt),te=document.createTextNode(String(Zt));Qt.observe(te,{characterData:!0}),Vt=function(){Zt=(Zt+1)%2,te.data=String(Zt)},Yt=!0}function ee(t,e){var n;if(Xt.push((function(){if(t)try{t.call(e)}catch(t){Ut(t,e,"nextTick")}else n&&n(e)})),Jt||(Jt=!0,Vt()),!t&&"undefined"!=typeof Promise)return new Promise((function(t){n=t}))}var ne=new ot;function re(t){ie(t,ne),ne.clear()}function ie(t,e){var n,r,i=Array.isArray(t);if(!(!i&&!c(t)||Object.isFrozen(t)||t instanceof dt)){if(t.__ob__){var o=t.__ob__.dep.id;if(e.has(o))return;e.add(o)}if(i)for(n=t.length;n--;)ie(t[n],e);else for(n=(r=Object.keys(t)).length;n--;)ie(t[r[n]],e)}}var oe=w((function(t){var e="&"===t.charAt(0),n="~"===(t=e?t.slice(1):t).charAt(0),r="!"===(t=n?t.slice(1):t).charAt(0);return{name:t=r?t.slice(1):t,once:n,capture:r,passive:e}}));function se(t,e){function n(){var t=arguments,r=n.fns;if(!Array.isArray(r))return Ft(r,null,arguments,e,"v-on handler");for(var i=r.slice(),o=0;o<i.length;o++)Ft(i[o],null,t,e,"v-on handler")}return n.fns=t,n}function ae(t,e,n,r,o,a){var c,l,u,h;for(c in t)l=t[c],u=e[c],h=oe(c),i(l)||(i(u)?(i(l.fns)&&(l=t[c]=se(l,a)),s(h.once)&&(l=t[c]=o(h.name,l,h.capture)),n(h.name,l,h.capture,h.passive,h.params)):l!==u&&(u.fns=l,t[c]=u));for(c in e)i(t[c])&&r((h=oe(c)).name,e[c],h.capture)}function ce(t,e,n){var r;t instanceof dt&&(t=t.data.hook||(t.data.hook={}));var a=t[e];function c(){n.apply(this,arguments),m(r.fns,c)}i(a)?r=se([c]):o(a.fns)&&s(a.merged)?(r=a).fns.push(c):r=se([a,c]),r.merged=!0,t[e]=r}function le(t,e,n,r,i){if(o(e)){if(b(e,n))return t[n]=e[n],i||delete e[n],!0;if(b(e,r))return t[n]=e[r],i||delete e[r],!0}return!1}function ue(t){return a(t)?[vt(t)]:Array.isArray(t)?pe(t):void 0}function he(t){return o(t)&&o(t.text)&&!1===t.isComment}function pe(t,e){var n,r,c,l,u=[];for(n=0;n<t.length;n++)i(r=t[n])||"boolean"==typeof r||(l=u[c=u.length-1],Array.isArray(r)?r.length>0&&(he((r=pe(r,(e||"")+"_"+n))[0])&&he(l)&&(u[c]=vt(l.text+r[0].text),r.shift()),u.push.apply(u,r)):a(r)?he(l)?u[c]=vt(l.text+r):""!==r&&u.push(vt(r)):he(r)&&he(l)?u[c]=vt(l.text+r.text):(s(t._isVList)&&o(r.tag)&&i(r.key)&&o(e)&&(r.key="__vlist"+e+"_"+n+"__"),u.push(r)));return u}function de(t,e){if(t){for(var n=Object.create(null),r=st?Reflect.ownKeys(t):Object.keys(t),i=0;i<r.length;i++){var o=r[i];if("__ob__"!==o){for(var s=t[o].from,a=e;a;){if(a._provided&&b(a._provided,s)){n[o]=a._provided[s];break}a=a.$parent}if(!a&&"default"in t[o]){var c=t[o].default;n[o]="function"==typeof c?c.call(e):c}}}return n}}function fe(t,e){if(!t||!t.length)return{};for(var n={},r=0,i=t.length;r<i;r++){var o=t[r],s=o.data;if(s&&s.attrs&&s.attrs.slot&&delete s.attrs.slot,o.context!==e&&o.fnContext!==e||!s||null==s.slot)(n.default||(n.default=[])).push(o);else{var a=s.slot,c=n[a]||(n[a]=[]);"template"===o.tag?c.push.apply(c,o.children||[]):c.push(o)}}for(var l in n)n[l].every(ge)&&delete n[l];return n}function ge(t){return t.isComment&&!t.asyncFactory||" "===t.text}function ve(t){return t.isComment&&t.asyncFactory}function me(t,e,n){var i,o=Object.keys(e).length>0,s=t?!!t.$stable:!o,a=t&&t.$key;if(t){if(t._normalized)return t._normalized;if(s&&n&&n!==r&&a===n.$key&&!o&&!n.$hasNormal)return n;for(var c in i={},t)t[c]&&"$"!==c[0]&&(i[c]=ye(e,c,t[c]))}else i={};for(var l in e)l in i||(i[l]=be(e,l));return t&&Object.isExtensible(t)&&(t._normalized=i),B(i,"$stable",s),B(i,"$key",a),B(i,"$hasNormal",o),i}function ye(t,e,n){var r=function(){var t=arguments.length?n.apply(null,arguments):n({}),e=(t=t&&"object"==typeof t&&!Array.isArray(t)?[t]:ue(t))&&t[0];return t&&(!e||1===t.length&&e.isComment&&!ve(e))?void 0:t};return n.proxy&&Object.defineProperty(t,e,{get:r,enumerable:!0,configurable:!0}),r}function be(t,e){return function(){return t[e]}}function we(t,e){var n,r,i,s,a;if(Array.isArray(t)||"string"==typeof t)for(n=new Array(t.length),r=0,i=t.length;r<i;r++)n[r]=e(t[r],r);else if("number"==typeof t)for(n=new Array(t),r=0;r<t;r++)n[r]=e(r+1,r);else if(c(t))if(st&&t[Symbol.iterator]){n=[];for(var l=t[Symbol.iterator](),u=l.next();!u.done;)n.push(e(u.value,n.length)),u=l.next()}else for(s=Object.keys(t),n=new Array(s.length),r=0,i=s.length;r<i;r++)a=s[r],n[r]=e(t[a],a,r);return o(n)||(n=[]),n._isVList=!0,n}function xe(t,e,n,r){var i,o=this.$scopedSlots[t];o?(n=n||{},r&&(n=O(O({},r),n)),i=o(n)||("function"==typeof e?e():e)):i=this.$slots[t]||("function"==typeof e?e():e);var s=n&&n.slot;return s?this.$createElement("template",{slot:s},i):i}function _e(t){return jt(this.$options,"filters",t)||R}function ke(t,e){return Array.isArray(t)?-1===t.indexOf(e):t!==e}function Ce(t,e,n,r,i){var o=$.keyCodes[e]||n;return i&&r&&!$.keyCodes[e]?ke(i,r):o?ke(o,t):r?S(r)!==e:void 0===t}function Se(t,e,n,r,i){if(n&&c(n)){var o;Array.isArray(n)&&(n=T(n));var s=function(s){if("class"===s||"style"===s||v(s))o=t;else{var a=t.attrs&&t.attrs.type;o=r||$.mustUseProp(e,a,s)?t.domProps||(t.domProps={}):t.attrs||(t.attrs={})}var c=_(s),l=S(s);c in o||l in o||(o[s]=n[s],i&&((t.on||(t.on={}))["update:"+s]=function(t){n[s]=t}))};for(var a in n)s(a)}return t}function Ae(t,e){var n=this._staticTrees||(this._staticTrees=[]),r=n[t];return r&&!e||Oe(r=n[t]=this.$options.staticRenderFns[t].call(this._renderProxy,null,this),"__static__"+t,!1),r}function Ee(t,e,n){return Oe(t,"__once__"+e+(n?"_"+n:""),!0),t}function Oe(t,e,n){if(Array.isArray(t))for(var r=0;r<t.length;r++)t[r]&&"string"!=typeof t[r]&&Te(t[r],e+"_"+r,n);else Te(t,e,n)}function Te(t,e,n){t.isStatic=!0,t.key=e,t.isOnce=n}function Pe(t,e){if(e&&u(e)){var n=t.on=t.on?O({},t.on):{};for(var r in e){var i=n[r],o=e[r];n[r]=i?[].concat(i,o):o}}return t}function Ie(t,e,n,r){e=e||{$stable:!n};for(var i=0;i<t.length;i++){var o=t[i];Array.isArray(o)?Ie(o,e,n):o&&(o.proxy&&(o.fn.proxy=!0),e[o.key]=o.fn)}return r&&(e.$key=r),e}function Re(t,e){for(var n=0;n<e.length;n+=2){var r=e[n];"string"==typeof r&&r&&(t[e[n]]=e[n+1])}return t}function Me(t,e){return"string"==typeof t?e+t:t}function Ne(t){t._o=Ee,t._n=f,t._s=d,t._l=we,t._t=xe,t._q=M,t._i=N,t._m=Ae,t._f=_e,t._k=Ce,t._b=Se,t._v=vt,t._e=gt,t._u=Ie,t._g=Pe,t._d=Re,t._p=Me}function De(t,e,n,i,o){var a,c=this,l=o.options;b(i,"_uid")?(a=Object.create(i))._original=i:(a=i,i=i._original);var u=s(l._compiled),h=!u;this.data=t,this.props=e,this.children=n,this.parent=i,this.listeners=t.on||r,this.injections=de(l.inject,i),this.slots=function(){return c.$slots||me(t.scopedSlots,c.$slots=fe(n,i)),c.$slots},Object.defineProperty(this,"scopedSlots",{enumerable:!0,get:function(){return me(t.scopedSlots,this.slots())}}),u&&(this.$options=l,this.$slots=this.slots(),this.$scopedSlots=me(t.scopedSlots,this.$slots)),l._scopeId?this._c=function(t,e,n,r){var o=Ue(a,t,e,n,r,h);return o&&!Array.isArray(o)&&(o.fnScopeId=l._scopeId,o.fnContext=i),o}:this._c=function(t,e,n,r){return Ue(a,t,e,n,r,h)}}function je(t,e,n,r,i){var o=mt(t);return o.fnContext=n,o.fnOptions=r,e.slot&&((o.data||(o.data={})).slot=e.slot),o}function Le(t,e){for(var n in e)t[_(n)]=e[n]}Ne(De.prototype);var ze={init:function(t,e){if(t.componentInstance&&!t.componentInstance._isDestroyed&&t.data.keepAlive){var n=t;ze.prepatch(n,n)}else(t.componentInstance=function(t,e){var n={_isComponent:!0,_parentVnode:t,parent:e},r=t.data.inlineTemplate;return o(r)&&(n.render=r.render,n.staticRenderFns=r.staticRenderFns),new t.componentOptions.Ctor(n)}(t,Ze)).$mount(e?t.elm:void 0,e)},prepatch:function(t,e){var n=e.componentOptions;!function(t,e,n,i,o){var s=i.data.scopedSlots,a=t.$scopedSlots,c=!!(s&&!s.$stable||a!==r&&!a.$stable||s&&t.$scopedSlots.$key!==s.$key||!s&&t.$scopedSlots.$key),l=!!(o||t.$options._renderChildren||c);if(t.$options._parentVnode=i,t.$vnode=i,t._vnode&&(t._vnode.parent=i),t.$options._renderChildren=o,t.$attrs=i.data.attrs||r,t.$listeners=n||r,e&&t.$options.props){_t(!1);for(var u=t._props,h=t.$options._propKeys||[],p=0;p<h.length;p++){var d=h[p],f=t.$options.props;u[d]=Lt(d,f,e,t)}_t(!0),t.$options.propsData=e}n=n||r;var g=t.$options._parentListeners;t.$options._parentListeners=n,Ke(t,n,g),l&&(t.$slots=fe(o,i.context),t.$forceUpdate())}(e.componentInstance=t.componentInstance,n.propsData,n.listeners,e,n.children)},insert:function(t){var e,n=t.context,r=t.componentInstance;r._isMounted||(r._isMounted=!0,rn(r,"mounted")),t.data.keepAlive&&(n._isMounted?((e=r)._inactive=!1,sn.push(e)):en(r,!0))},destroy:function(t){var e=t.componentInstance;e._isDestroyed||(t.data.keepAlive?nn(e,!0):e.$destroy())}},$e=Object.keys(ze);function Be(t,e,n,a,l){if(!i(t)){var u=n.$options._base;if(c(t)&&(t=u.extend(t)),"function"==typeof t){var h;if(i(t.cid)&&(t=function(t,e){if(s(t.error)&&o(t.errorComp))return t.errorComp;if(o(t.resolved))return t.resolved;var n=We;if(n&&o(t.owners)&&-1===t.owners.indexOf(n)&&t.owners.push(n),s(t.loading)&&o(t.loadingComp))return t.loadingComp;if(n&&!o(t.owners)){var r=t.owners=[n],a=!0,l=null,u=null;n.$on("hook:destroyed",(function(){return m(r,n)}));var h=function(t){for(var e=0,n=r.length;e<n;e++)r[e].$forceUpdate();t&&(r.length=0,null!==l&&(clearTimeout(l),l=null),null!==u&&(clearTimeout(u),u=null))},d=D((function(n){t.resolved=Ve(n,e),a?r.length=0:h(!0)})),f=D((function(e){o(t.errorComp)&&(t.error=!0,h(!0))})),g=t(d,f);return c(g)&&(p(g)?i(t.resolved)&&g.then(d,f):p(g.component)&&(g.component.then(d,f),o(g.error)&&(t.errorComp=Ve(g.error,e)),o(g.loading)&&(t.loadingComp=Ve(g.loading,e),0===g.delay?t.loading=!0:l=setTimeout((function(){l=null,i(t.resolved)&&i(t.error)&&(t.loading=!0,h(!1))}),g.delay||200)),o(g.timeout)&&(u=setTimeout((function(){u=null,i(t.resolved)&&f(null)}),g.timeout)))),a=!1,t.loading?t.loadingComp:t.resolved}}(h=t,u),void 0===t))return function(t,e,n,r,i){var o=gt();return o.asyncFactory=t,o.asyncMeta={data:e,context:n,children:r,tag:i},o}(h,e,n,a,l);e=e||{},Sn(t),o(e.model)&&function(t,e){var n=t.model&&t.model.prop||"value",r=t.model&&t.model.event||"input";(e.attrs||(e.attrs={}))[n]=e.model.value;var i=e.on||(e.on={}),s=i[r],a=e.model.callback;o(s)?(Array.isArray(s)?-1===s.indexOf(a):s!==a)&&(i[r]=[a].concat(s)):i[r]=a}(t.options,e);var d=function(t,e,n){var r=e.options.props;if(!i(r)){var s={},a=t.attrs,c=t.props;if(o(a)||o(c))for(var l in r){var u=S(l);le(s,c,l,u,!0)||le(s,a,l,u,!1)}return s}}(e,t);if(s(t.options.functional))return function(t,e,n,i,s){var a=t.options,c={},l=a.props;if(o(l))for(var u in l)c[u]=Lt(u,l,e||r);else o(n.attrs)&&Le(c,n.attrs),o(n.props)&&Le(c,n.props);var h=new De(n,c,s,i,t),p=a.render.call(null,h._c,h);if(p instanceof dt)return je(p,n,h.parent,a);if(Array.isArray(p)){for(var d=ue(p)||[],f=new Array(d.length),g=0;g<d.length;g++)f[g]=je(d[g],n,h.parent,a);return f}}(t,d,e,n,a);var f=e.on;if(e.on=e.nativeOn,s(t.options.abstract)){var g=e.slot;e={},g&&(e.slot=g)}!function(t){for(var e=t.hook||(t.hook={}),n=0;n<$e.length;n++){var r=$e[n],i=e[r],o=ze[r];i===o||i&&i._merged||(e[r]=i?He(o,i):o)}}(e);var v=t.options.name||l;return new dt("vue-component-"+t.cid+(v?"-"+v:""),e,void 0,void 0,void 0,n,{Ctor:t,propsData:d,listeners:f,tag:l,children:a},h)}}}function He(t,e){var n=function(n,r){t(n,r),e(n,r)};return n._merged=!0,n}function Ue(t,e,n,r,i,l){return(Array.isArray(n)||a(n))&&(i=r,r=n,n=void 0),s(l)&&(i=2),function(t,e,n,r,i){if(o(n)&&o(n.__ob__))return gt();if(o(n)&&o(n.is)&&(e=n.is),!e)return gt();var s,a,l;(Array.isArray(r)&&"function"==typeof r[0]&&((n=n||{}).scopedSlots={default:r[0]},r.length=0),2===i?r=ue(r):1===i&&(r=function(t){for(var e=0;e<t.length;e++)if(Array.isArray(t[e]))return Array.prototype.concat.apply([],t);return t}(r)),"string"==typeof e)?(a=t.$vnode&&t.$vnode.ns||$.getTagNamespace(e),s=$.isReservedTag(e)?new dt($.parsePlatformTagName(e),n,r,void 0,void 0,t):n&&n.pre||!o(l=jt(t.$options,"components",e))?new dt(e,n,r,void 0,void 0,t):Be(l,n,t,r,e)):s=Be(e,n,t,r);return Array.isArray(s)?s:o(s)?(o(a)&&Fe(s,a),o(n)&&function(t){c(t.style)&&re(t.style),c(t.class)&&re(t.class)}(n),s):gt()}(t,e,n,r,i)}function Fe(t,e,n){if(t.ns=e,"foreignObject"===t.tag&&(e=void 0,n=!0),o(t.children))for(var r=0,a=t.children.length;r<a;r++){var c=t.children[r];o(c.tag)&&(i(c.ns)||s(n)&&"svg"!==c.tag)&&Fe(c,e,n)}}var qe,We=null;function Ve(t,e){return(t.__esModule||st&&"Module"===t[Symbol.toStringTag])&&(t=t.default),c(t)?e.extend(t):t}function Ye(t){if(Array.isArray(t))for(var e=0;e<t.length;e++){var n=t[e];if(o(n)&&(o(n.componentOptions)||ve(n)))return n}}function Xe(t,e){qe.$on(t,e)}function Je(t,e){qe.$off(t,e)}function Ge(t,e){var n=qe;return function r(){var i=e.apply(null,arguments);null!==i&&n.$off(t,r)}}function Ke(t,e,n){qe=t,ae(e,n||{},Xe,Je,Ge,t),qe=void 0}var Ze=null;function Qe(t){var e=Ze;return Ze=t,function(){Ze=e}}function tn(t){for(;t&&(t=t.$parent);)if(t._inactive)return!0;return!1}function en(t,e){if(e){if(t._directInactive=!1,tn(t))return}else if(t._directInactive)return;if(t._inactive||null===t._inactive){t._inactive=!1;for(var n=0;n<t.$children.length;n++)en(t.$children[n]);rn(t,"activated")}}function nn(t,e){if(!(e&&(t._directInactive=!0,tn(t))||t._inactive)){t._inactive=!0;for(var n=0;n<t.$children.length;n++)nn(t.$children[n]);rn(t,"deactivated")}}function rn(t,e){ht();var n=t.$options[e],r=e+" hook";if(n)for(var i=0,o=n.length;i<o;i++)Ft(n[i],t,null,t,r);t._hasHookEvent&&t.$emit("hook:"+e),pt()}var on=[],sn=[],an={},cn=!1,ln=!1,un=0,hn=0,pn=Date.now;if(q&&!X){var dn=window.performance;dn&&"function"==typeof dn.now&&pn()>document.createEvent("Event").timeStamp&&(pn=function(){return dn.now()})}function fn(){var t,e;for(hn=pn(),ln=!0,on.sort((function(t,e){return t.id-e.id})),un=0;un<on.length;un++)(t=on[un]).before&&t.before(),e=t.id,an[e]=null,t.run();var n=sn.slice(),r=on.slice();un=on.length=sn.length=0,an={},cn=ln=!1,function(t){for(var e=0;e<t.length;e++)t[e]._inactive=!0,en(t[e],!0)}(n),function(t){for(var e=t.length;e--;){var n=t[e],r=n.vm;r._watcher===n&&r._isMounted&&!r._isDestroyed&&rn(r,"updated")}}(r),rt&&$.devtools&&rt.emit("flush")}var gn=0,vn=function(t,e,n,r,i){this.vm=t,i&&(t._watcher=this),t._watchers.push(this),r?(this.deep=!!r.deep,this.user=!!r.user,this.lazy=!!r.lazy,this.sync=!!r.sync,this.before=r.before):this.deep=this.user=this.lazy=this.sync=!1,this.cb=n,this.id=++gn,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new ot,this.newDepIds=new ot,this.expression="","function"==typeof e?this.getter=e:(this.getter=function(t){if(!U.test(t)){var e=t.split(".");return function(t){for(var n=0;n<e.length;n++){if(!t)return;t=t[e[n]]}return t}}}(e),this.getter||(this.getter=P)),this.value=this.lazy?void 0:this.get()};vn.prototype.get=function(){var t;ht(this);var e=this.vm;try{t=this.getter.call(e,e)}catch(t){if(!this.user)throw t;Ut(t,e,'getter for watcher "'+this.expression+'"')}finally{this.deep&&re(t),pt(),this.cleanupDeps()}return t},vn.prototype.addDep=function(t){var e=t.id;this.newDepIds.has(e)||(this.newDepIds.add(e),this.newDeps.push(t),this.depIds.has(e)||t.addSub(this))},vn.prototype.cleanupDeps=function(){for(var t=this.deps.length;t--;){var e=this.deps[t];this.newDepIds.has(e.id)||e.removeSub(this)}var n=this.depIds;this.depIds=this.newDepIds,this.newDepIds=n,this.newDepIds.clear(),n=this.deps,this.deps=this.newDeps,this.newDeps=n,this.newDeps.length=0},vn.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():function(t){var e=t.id;if(null==an[e]){if(an[e]=!0,ln){for(var n=on.length-1;n>un&&on[n].id>t.id;)n--;on.splice(n+1,0,t)}else on.push(t);cn||(cn=!0,ee(fn))}}(this)},vn.prototype.run=function(){if(this.active){var t=this.get();if(t!==this.value||c(t)||this.deep){var e=this.value;if(this.value=t,this.user){var n='callback for watcher "'+this.expression+'"';Ft(this.cb,this.vm,[t,e],this.vm,n)}else this.cb.call(this.vm,t,e)}}},vn.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},vn.prototype.depend=function(){for(var t=this.deps.length;t--;)this.deps[t].depend()},vn.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||m(this.vm._watchers,this);for(var t=this.deps.length;t--;)this.deps[t].removeSub(this);this.active=!1}};var mn={enumerable:!0,configurable:!0,get:P,set:P};function yn(t,e,n){mn.get=function(){return this[e][n]},mn.set=function(t){this[e][n]=t},Object.defineProperty(t,n,mn)}var bn={lazy:!0};function wn(t,e,n){var r=!nt();"function"==typeof n?(mn.get=r?xn(e):_n(n),mn.set=P):(mn.get=n.get?r&&!1!==n.cache?xn(e):_n(n.get):P,mn.set=n.set||P),Object.defineProperty(t,e,mn)}function xn(t){return function(){var e=this._computedWatchers&&this._computedWatchers[t];if(e)return e.dirty&&e.evaluate(),lt.target&&e.depend(),e.value}}function _n(t){return function(){return t.call(this,this)}}function kn(t,e,n,r){return u(n)&&(r=n,n=n.handler),"string"==typeof n&&(n=t[n]),t.$watch(e,n,r)}var Cn=0;function Sn(t){var e=t.options;if(t.super){var n=Sn(t.super);if(n!==t.superOptions){t.superOptions=n;var r=function(t){var e,n=t.options,r=t.sealedOptions;for(var i in n)n[i]!==r[i]&&(e||(e={}),e[i]=n[i]);return e}(t);r&&O(t.extendOptions,r),(e=t.options=Dt(n,t.extendOptions)).name&&(e.components[e.name]=t)}}return e}function An(t){this._init(t)}function En(t){return t&&(t.Ctor.options.name||t.tag)}function On(t,e){return Array.isArray(t)?t.indexOf(e)>-1:"string"==typeof t?t.split(",").indexOf(e)>-1:(n=t,!("[object RegExp]"!==l.call(n))&&t.test(e));var n}function Tn(t,e){var n=t.cache,r=t.keys,i=t._vnode;for(var o in n){var s=n[o];if(s){var a=s.name;a&&!e(a)&&Pn(n,o,r,i)}}}function Pn(t,e,n,r){var i=t[e];!i||r&&i.tag===r.tag||i.componentInstance.$destroy(),t[e]=null,m(n,e)}!function(t){t.prototype._init=function(t){var e=this;e._uid=Cn++,e._isVue=!0,t&&t._isComponent?function(t,e){var n=t.$options=Object.create(t.constructor.options),r=e._parentVnode;n.parent=e.parent,n._parentVnode=r;var i=r.componentOptions;n.propsData=i.propsData,n._parentListeners=i.listeners,n._renderChildren=i.children,n._componentTag=i.tag,e.render&&(n.render=e.render,n.staticRenderFns=e.staticRenderFns)}(e,t):e.$options=Dt(Sn(e.constructor),t||{},e),e._renderProxy=e,e._self=e,function(t){var e=t.$options,n=e.parent;if(n&&!e.abstract){for(;n.$options.abstract&&n.$parent;)n=n.$parent;n.$children.push(t)}t.$parent=n,t.$root=n?n.$root:t,t.$children=[],t.$refs={},t._watcher=null,t._inactive=null,t._directInactive=!1,t._isMounted=!1,t._isDestroyed=!1,t._isBeingDestroyed=!1}(e),function(t){t._events=Object.create(null),t._hasHookEvent=!1;var e=t.$options._parentListeners;e&&Ke(t,e)}(e),function(t){t._vnode=null,t._staticTrees=null;var e=t.$options,n=t.$vnode=e._parentVnode,i=n&&n.context;t.$slots=fe(e._renderChildren,i),t.$scopedSlots=r,t._c=function(e,n,r,i){return Ue(t,e,n,r,i,!1)},t.$createElement=function(e,n,r,i){return Ue(t,e,n,r,i,!0)};var o=n&&n.data;St(t,"$attrs",o&&o.attrs||r,null,!0),St(t,"$listeners",e._parentListeners||r,null,!0)}(e),rn(e,"beforeCreate"),function(t){var e=de(t.$options.inject,t);e&&(_t(!1),Object.keys(e).forEach((function(n){St(t,n,e[n])})),_t(!0))}(e),function(t){t._watchers=[];var e=t.$options;e.props&&function(t,e){var n=t.$options.propsData||{},r=t._props={},i=t.$options._propKeys=[];t.$parent&&_t(!1);var o=function(o){i.push(o);var s=Lt(o,e,n,t);St(r,o,s),o in t||yn(t,"_props",o)};for(var s in e)o(s);_t(!0)}(t,e.props),e.methods&&function(t,e){for(var n in t.$options.props,e)t[n]="function"!=typeof e[n]?P:A(e[n],t)}(t,e.methods),e.data?function(t){var e=t.$options.data;u(e=t._data="function"==typeof e?function(t,e){ht();try{return t.call(e,e)}catch(t){return Ut(t,e,"data()"),{}}finally{pt()}}(e,t):e||{})||(e={});for(var n,r=Object.keys(e),i=t.$options.props,o=(t.$options.methods,r.length);o--;){var s=r[o];i&&b(i,s)||(n=void 0,36===(n=(s+"").charCodeAt(0))||95===n)||yn(t,"_data",s)}Ct(e,!0)}(t):Ct(t._data={},!0),e.computed&&function(t,e){var n=t._computedWatchers=Object.create(null),r=nt();for(var i in e){var o=e[i],s="function"==typeof o?o:o.get;r||(n[i]=new vn(t,s||P,P,bn)),i in t||wn(t,i,o)}}(t,e.computed),e.watch&&e.watch!==Q&&function(t,e){for(var n in e){var r=e[n];if(Array.isArray(r))for(var i=0;i<r.length;i++)kn(t,n,r[i]);else kn(t,n,r)}}(t,e.watch)}(e),function(t){var e=t.$options.provide;e&&(t._provided="function"==typeof e?e.call(t):e)}(e),rn(e,"created"),e.$options.el&&e.$mount(e.$options.el)}}(An),function(t){Object.defineProperty(t.prototype,"$data",{get:function(){return this._data}}),Object.defineProperty(t.prototype,"$props",{get:function(){return this._props}}),t.prototype.$set=At,t.prototype.$delete=Et,t.prototype.$watch=function(t,e,n){var r=this;if(u(e))return kn(r,t,e,n);(n=n||{}).user=!0;var i=new vn(r,t,e,n);if(n.immediate){var o='callback for immediate watcher "'+i.expression+'"';ht(),Ft(e,r,[i.value],r,o),pt()}return function(){i.teardown()}}}(An),function(t){var e=/^hook:/;t.prototype.$on=function(t,n){var r=this;if(Array.isArray(t))for(var i=0,o=t.length;i<o;i++)r.$on(t[i],n);else(r._events[t]||(r._events[t]=[])).push(n),e.test(t)&&(r._hasHookEvent=!0);return r},t.prototype.$once=function(t,e){var n=this;function r(){n.$off(t,r),e.apply(n,arguments)}return r.fn=e,n.$on(t,r),n},t.prototype.$off=function(t,e){var n=this;if(!arguments.length)return n._events=Object.create(null),n;if(Array.isArray(t)){for(var r=0,i=t.length;r<i;r++)n.$off(t[r],e);return n}var o,s=n._events[t];if(!s)return n;if(!e)return n._events[t]=null,n;for(var a=s.length;a--;)if((o=s[a])===e||o.fn===e){s.splice(a,1);break}return n},t.prototype.$emit=function(t){var e=this,n=e._events[t];if(n){n=n.length>1?E(n):n;for(var r=E(arguments,1),i='event handler for "'+t+'"',o=0,s=n.length;o<s;o++)Ft(n[o],e,r,e,i)}return e}}(An),function(t){t.prototype._update=function(t,e){var n=this,r=n.$el,i=n._vnode,o=Qe(n);n._vnode=t,n.$el=i?n.__patch__(i,t):n.__patch__(n.$el,t,e,!1),o(),r&&(r.__vue__=null),n.$el&&(n.$el.__vue__=n),n.$vnode&&n.$parent&&n.$vnode===n.$parent._vnode&&(n.$parent.$el=n.$el)},t.prototype.$forceUpdate=function(){this._watcher&&this._watcher.update()},t.prototype.$destroy=function(){var t=this;if(!t._isBeingDestroyed){rn(t,"beforeDestroy"),t._isBeingDestroyed=!0;var e=t.$parent;!e||e._isBeingDestroyed||t.$options.abstract||m(e.$children,t),t._watcher&&t._watcher.teardown();for(var n=t._watchers.length;n--;)t._watchers[n].teardown();t._data.__ob__&&t._data.__ob__.vmCount--,t._isDestroyed=!0,t.__patch__(t._vnode,null),rn(t,"destroyed"),t.$off(),t.$el&&(t.$el.__vue__=null),t.$vnode&&(t.$vnode.parent=null)}}}(An),function(t){Ne(t.prototype),t.prototype.$nextTick=function(t){return ee(t,this)},t.prototype._render=function(){var t,e=this,n=e.$options,r=n.render,i=n._parentVnode;i&&(e.$scopedSlots=me(i.data.scopedSlots,e.$slots,e.$scopedSlots)),e.$vnode=i;try{We=e,t=r.call(e._renderProxy,e.$createElement)}catch(n){Ut(n,e,"render"),t=e._vnode}finally{We=null}return Array.isArray(t)&&1===t.length&&(t=t[0]),t instanceof dt||(t=gt()),t.parent=i,t}}(An);var In=[String,RegExp,Array],Rn={name:"keep-alive",abstract:!0,props:{include:In,exclude:In,max:[String,Number]},methods:{cacheVNode:function(){var t=this,e=t.cache,n=t.keys,r=t.vnodeToCache,i=t.keyToCache;if(r){var o=r.tag,s=r.componentInstance,a=r.componentOptions;e[i]={name:En(a),tag:o,componentInstance:s},n.push(i),this.max&&n.length>parseInt(this.max)&&Pn(e,n[0],n,this._vnode),this.vnodeToCache=null}}},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var t in this.cache)Pn(this.cache,t,this.keys)},mounted:function(){var t=this;this.cacheVNode(),this.$watch("include",(function(e){Tn(t,(function(t){return On(e,t)}))})),this.$watch("exclude",(function(e){Tn(t,(function(t){return!On(e,t)}))}))},updated:function(){this.cacheVNode()},render:function(){var t=this.$slots.default,e=Ye(t),n=e&&e.componentOptions;if(n){var r=En(n),i=this.include,o=this.exclude;if(i&&(!r||!On(i,r))||o&&r&&On(o,r))return e;var s=this.cache,a=this.keys,c=null==e.key?n.Ctor.cid+(n.tag?"::"+n.tag:""):e.key;s[c]?(e.componentInstance=s[c].componentInstance,m(a,c),a.push(c)):(this.vnodeToCache=e,this.keyToCache=c),e.data.keepAlive=!0}return e||t&&t[0]}},Mn={KeepAlive:Rn};!function(t){var e={get:function(){return $}};Object.defineProperty(t,"config",e),t.util={warn:at,extend:O,mergeOptions:Dt,defineReactive:St},t.set=At,t.delete=Et,t.nextTick=ee,t.observable=function(t){return Ct(t),t},t.options=Object.create(null),L.forEach((function(e){t.options[e+"s"]=Object.create(null)})),t.options._base=t,O(t.options.components,Mn),function(t){t.use=function(t){var e=this._installedPlugins||(this._installedPlugins=[]);if(e.indexOf(t)>-1)return this;var n=E(arguments,1);return n.unshift(this),"function"==typeof t.install?t.install.apply(t,n):"function"==typeof t&&t.apply(null,n),e.push(t),this}}(t),function(t){t.mixin=function(t){return this.options=Dt(this.options,t),this}}(t),function(t){t.cid=0;var e=1;t.extend=function(t){t=t||{};var n=this,r=n.cid,i=t._Ctor||(t._Ctor={});if(i[r])return i[r];var o=t.name||n.options.name,s=function(t){this._init(t)};return(s.prototype=Object.create(n.prototype)).constructor=s,s.cid=e++,s.options=Dt(n.options,t),s.super=n,s.options.props&&function(t){var e=t.options.props;for(var n in e)yn(t.prototype,"_props",n)}(s),s.options.computed&&function(t){var e=t.options.computed;for(var n in e)wn(t.prototype,n,e[n])}(s),s.extend=n.extend,s.mixin=n.mixin,s.use=n.use,L.forEach((function(t){s[t]=n[t]})),o&&(s.options.components[o]=s),s.superOptions=n.options,s.extendOptions=t,s.sealedOptions=O({},s.options),i[r]=s,s}}(t),function(t){L.forEach((function(e){t[e]=function(t,n){return n?("component"===e&&u(n)&&(n.name=n.name||t,n=this.options._base.extend(n)),"directive"===e&&"function"==typeof n&&(n={bind:n,update:n}),this.options[e+"s"][t]=n,n):this.options[e+"s"][t]}}))}(t)}(An),Object.defineProperty(An.prototype,"$isServer",{get:nt}),Object.defineProperty(An.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(An,"FunctionalRenderContext",{value:De}),An.version="2.6.14";var Nn=g("style,class"),Dn=g("input,textarea,option,select,progress"),jn=g("contenteditable,draggable,spellcheck"),Ln=g("events,caret,typing,plaintext-only"),zn=g("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,truespeed,typemustmatch,visible"),$n="http://www.w3.org/1999/xlink",Bn=function(t){return":"===t.charAt(5)&&"xlink"===t.slice(0,5)},Hn=function(t){return Bn(t)?t.slice(6,t.length):""},Un=function(t){return null==t||!1===t};function Fn(t,e){return{staticClass:qn(t.staticClass,e.staticClass),class:o(t.class)?[t.class,e.class]:e.class}}function qn(t,e){return t?e?t+" "+e:t:e||""}function Wn(t){return Array.isArray(t)?function(t){for(var e,n="",r=0,i=t.length;r<i;r++)o(e=Wn(t[r]))&&""!==e&&(n&&(n+=" "),n+=e);return n}(t):c(t)?function(t){var e="";for(var n in t)t[n]&&(e&&(e+=" "),e+=n);return e}(t):"string"==typeof t?t:""}var Vn={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"},Yn=g("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,menuitem,summary,content,element,shadow,template,blockquote,iframe,tfoot"),Xn=g("svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,foreignobject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view",!0),Jn=function(t){return Yn(t)||Xn(t)},Gn=Object.create(null),Kn=g("text,number,password,search,email,tel,url"),Zn=Object.freeze({createElement:function(t,e){var n=document.createElement(t);return"select"!==t||e.data&&e.data.attrs&&void 0!==e.data.attrs.multiple&&n.setAttribute("multiple","multiple"),n},createElementNS:function(t,e){return document.createElementNS(Vn[t],e)},createTextNode:function(t){return document.createTextNode(t)},createComment:function(t){return document.createComment(t)},insertBefore:function(t,e,n){t.insertBefore(e,n)},removeChild:function(t,e){t.removeChild(e)},appendChild:function(t,e){t.appendChild(e)},parentNode:function(t){return t.parentNode},nextSibling:function(t){return t.nextSibling},tagName:function(t){return t.tagName},setTextContent:function(t,e){t.textContent=e},setStyleScope:function(t,e){t.setAttribute(e,"")}}),Qn={create:function(t,e){tr(e)},update:function(t,e){t.data.ref!==e.data.ref&&(tr(t,!0),tr(e))},destroy:function(t){tr(t,!0)}};function tr(t,e){var n=t.data.ref;if(o(n)){var r=t.context,i=t.componentInstance||t.elm,s=r.$refs;e?Array.isArray(s[n])?m(s[n],i):s[n]===i&&(s[n]=void 0):t.data.refInFor?Array.isArray(s[n])?s[n].indexOf(i)<0&&s[n].push(i):s[n]=[i]:s[n]=i}}var er=new dt("",{},[]),nr=["create","activate","update","remove","destroy"];function rr(t,e){return t.key===e.key&&t.asyncFactory===e.asyncFactory&&(t.tag===e.tag&&t.isComment===e.isComment&&o(t.data)===o(e.data)&&function(t,e){if("input"!==t.tag)return!0;var n,r=o(n=t.data)&&o(n=n.attrs)&&n.type,i=o(n=e.data)&&o(n=n.attrs)&&n.type;return r===i||Kn(r)&&Kn(i)}(t,e)||s(t.isAsyncPlaceholder)&&i(e.asyncFactory.error))}function ir(t,e,n){var r,i,s={};for(r=e;r<=n;++r)o(i=t[r].key)&&(s[i]=r);return s}var or={create:sr,update:sr,destroy:function(t){sr(t,er)}};function sr(t,e){(t.data.directives||e.data.directives)&&function(t,e){var n,r,i,o=t===er,s=e===er,a=cr(t.data.directives,t.context),c=cr(e.data.directives,e.context),l=[],u=[];for(n in c)r=a[n],i=c[n],r?(i.oldValue=r.value,i.oldArg=r.arg,ur(i,"update",e,t),i.def&&i.def.componentUpdated&&u.push(i)):(ur(i,"bind",e,t),i.def&&i.def.inserted&&l.push(i));if(l.length){var h=function(){for(var n=0;n<l.length;n++)ur(l[n],"inserted",e,t)};o?ce(e,"insert",h):h()}if(u.length&&ce(e,"postpatch",(function(){for(var n=0;n<u.length;n++)ur(u[n],"componentUpdated",e,t)})),!o)for(n in a)c[n]||ur(a[n],"unbind",t,t,s)}(t,e)}var ar=Object.create(null);function cr(t,e){var n,r,i=Object.create(null);if(!t)return i;for(n=0;n<t.length;n++)(r=t[n]).modifiers||(r.modifiers=ar),i[lr(r)]=r,r.def=jt(e.$options,"directives",r.name);return i}function lr(t){return t.rawName||t.name+"."+Object.keys(t.modifiers||{}).join(".")}function ur(t,e,n,r,i){var o=t.def&&t.def[e];if(o)try{o(n.elm,t,n,r,i)}catch(r){Ut(r,n.context,"directive "+t.name+" "+e+" hook")}}var hr=[Qn,or];function pr(t,e){var n=e.componentOptions;if(!(o(n)&&!1===n.Ctor.options.inheritAttrs||i(t.data.attrs)&&i(e.data.attrs))){var r,s,a=e.elm,c=t.data.attrs||{},l=e.data.attrs||{};for(r in o(l.__ob__)&&(l=e.data.attrs=O({},l)),l)s=l[r],c[r]!==s&&dr(a,r,s,e.data.pre);for(r in(X||G)&&l.value!==c.value&&dr(a,"value",l.value),c)i(l[r])&&(Bn(r)?a.removeAttributeNS($n,Hn(r)):jn(r)||a.removeAttribute(r))}}function dr(t,e,n,r){r||t.tagName.indexOf("-")>-1?fr(t,e,n):zn(e)?Un(n)?t.removeAttribute(e):(n="allowfullscreen"===e&&"EMBED"===t.tagName?"true":e,t.setAttribute(e,n)):jn(e)?t.setAttribute(e,function(t,e){return Un(e)||"false"===e?"false":"contenteditable"===t&&Ln(e)?e:"true"}(e,n)):Bn(e)?Un(n)?t.removeAttributeNS($n,Hn(e)):t.setAttributeNS($n,e,n):fr(t,e,n)}function fr(t,e,n){if(Un(n))t.removeAttribute(e);else{if(X&&!J&&"TEXTAREA"===t.tagName&&"placeholder"===e&&""!==n&&!t.__ieph){var r=function(e){e.stopImmediatePropagation(),t.removeEventListener("input",r)};t.addEventListener("input",r),t.__ieph=!0}t.setAttribute(e,n)}}var gr={create:pr,update:pr};function vr(t,e){var n=e.elm,r=e.data,s=t.data;if(!(i(r.staticClass)&&i(r.class)&&(i(s)||i(s.staticClass)&&i(s.class)))){var a=function(t){for(var e=t.data,n=t,r=t;o(r.componentInstance);)(r=r.componentInstance._vnode)&&r.data&&(e=Fn(r.data,e));for(;o(n=n.parent);)n&&n.data&&(e=Fn(e,n.data));return i=e.staticClass,s=e.class,o(i)||o(s)?qn(i,Wn(s)):"";var i,s}(e),c=n._transitionClasses;o(c)&&(a=qn(a,Wn(c))),a!==n._prevClass&&(n.setAttribute("class",a),n._prevClass=a)}}var mr,yr={create:vr,update:vr};function br(t,e,n){var r=mr;return function i(){var o=e.apply(null,arguments);null!==o&&_r(t,i,n,r)}}var wr=Yt&&!(Z&&Number(Z[1])<=53);function xr(t,e,n,r){if(wr){var i=hn,o=e;e=o._wrapper=function(t){if(t.target===t.currentTarget||t.timeStamp>=i||t.timeStamp<=0||t.target.ownerDocument!==document)return o.apply(this,arguments)}}mr.addEventListener(t,e,tt?{capture:n,passive:r}:n)}function _r(t,e,n,r){(r||mr).removeEventListener(t,e._wrapper||e,n)}function kr(t,e){if(!i(t.data.on)||!i(e.data.on)){var n=e.data.on||{},r=t.data.on||{};mr=e.elm,function(t){if(o(t.__r)){var e=X?"change":"input";t[e]=[].concat(t.__r,t[e]||[]),delete t.__r}o(t.__c)&&(t.change=[].concat(t.__c,t.change||[]),delete t.__c)}(n),ae(n,r,xr,_r,br,e.context),mr=void 0}}var Cr,Sr={create:kr,update:kr};function Ar(t,e){if(!i(t.data.domProps)||!i(e.data.domProps)){var n,r,s=e.elm,a=t.data.domProps||{},c=e.data.domProps||{};for(n in o(c.__ob__)&&(c=e.data.domProps=O({},c)),a)n in c||(s[n]="");for(n in c){if(r=c[n],"textContent"===n||"innerHTML"===n){if(e.children&&(e.children.length=0),r===a[n])continue;1===s.childNodes.length&&s.removeChild(s.childNodes[0])}if("value"===n&&"PROGRESS"!==s.tagName){s._value=r;var l=i(r)?"":String(r);Er(s,l)&&(s.value=l)}else if("innerHTML"===n&&Xn(s.tagName)&&i(s.innerHTML)){(Cr=Cr||document.createElement("div")).innerHTML="<svg>"+r+"</svg>";for(var u=Cr.firstChild;s.firstChild;)s.removeChild(s.firstChild);for(;u.firstChild;)s.appendChild(u.firstChild)}else if(r!==a[n])try{s[n]=r}catch(t){}}}}function Er(t,e){return!t.composing&&("OPTION"===t.tagName||function(t,e){var n=!0;try{n=document.activeElement!==t}catch(t){}return n&&t.value!==e}(t,e)||function(t,e){var n=t.value,r=t._vModifiers;if(o(r)){if(r.number)return f(n)!==f(e);if(r.trim)return n.trim()!==e.trim()}return n!==e}(t,e))}var Or={create:Ar,update:Ar},Tr=w((function(t){var e={},n=/:(.+)/;return t.split(/;(?![^(]*\))/g).forEach((function(t){if(t){var r=t.split(n);r.length>1&&(e[r[0].trim()]=r[1].trim())}})),e}));function Pr(t){var e=Ir(t.style);return t.staticStyle?O(t.staticStyle,e):e}function Ir(t){return Array.isArray(t)?T(t):"string"==typeof t?Tr(t):t}var Rr,Mr=/^--/,Nr=/\s*!important$/,Dr=function(t,e,n){if(Mr.test(e))t.style.setProperty(e,n);else if(Nr.test(n))t.style.setProperty(S(e),n.replace(Nr,""),"important");else{var r=Lr(e);if(Array.isArray(n))for(var i=0,o=n.length;i<o;i++)t.style[r]=n[i];else t.style[r]=n}},jr=["Webkit","Moz","ms"],Lr=w((function(t){if(Rr=Rr||document.createElement("div").style,"filter"!==(t=_(t))&&t in Rr)return t;for(var e=t.charAt(0).toUpperCase()+t.slice(1),n=0;n<jr.length;n++){var r=jr[n]+e;if(r in Rr)return r}}));function zr(t,e){var n=e.data,r=t.data;if(!(i(n.staticStyle)&&i(n.style)&&i(r.staticStyle)&&i(r.style))){var s,a,c=e.elm,l=r.staticStyle,u=r.normalizedStyle||r.style||{},h=l||u,p=Ir(e.data.style)||{};e.data.normalizedStyle=o(p.__ob__)?O({},p):p;var d=function(t,e){for(var n,r={},i=t;i.componentInstance;)(i=i.componentInstance._vnode)&&i.data&&(n=Pr(i.data))&&O(r,n);(n=Pr(t.data))&&O(r,n);for(var o=t;o=o.parent;)o.data&&(n=Pr(o.data))&&O(r,n);return r}(e);for(a in h)i(d[a])&&Dr(c,a,"");for(a in d)(s=d[a])!==h[a]&&Dr(c,a,null==s?"":s)}}var $r={create:zr,update:zr},Br=/\s+/;function Hr(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(Br).forEach((function(e){return t.classList.add(e)})):t.classList.add(e);else{var n=" "+(t.getAttribute("class")||"")+" ";n.indexOf(" "+e+" ")<0&&t.setAttribute("class",(n+e).trim())}}function Ur(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(Br).forEach((function(e){return t.classList.remove(e)})):t.classList.remove(e),t.classList.length||t.removeAttribute("class");else{for(var n=" "+(t.getAttribute("class")||"")+" ",r=" "+e+" ";n.indexOf(r)>=0;)n=n.replace(r," ");(n=n.trim())?t.setAttribute("class",n):t.removeAttribute("class")}}function Fr(t){if(t){if("object"==typeof t){var e={};return!1!==t.css&&O(e,qr(t.name||"v")),O(e,t),e}return"string"==typeof t?qr(t):void 0}}var qr=w((function(t){return{enterClass:t+"-enter",enterToClass:t+"-enter-to",enterActiveClass:t+"-enter-active",leaveClass:t+"-leave",leaveToClass:t+"-leave-to",leaveActiveClass:t+"-leave-active"}})),Wr=q&&!J,Vr="transition",Yr="animation",Xr="transition",Jr="transitionend",Gr="animation",Kr="animationend";Wr&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(Xr="WebkitTransition",Jr="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(Gr="WebkitAnimation",Kr="webkitAnimationEnd"));var Zr=q?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(t){return t()};function Qr(t){Zr((function(){Zr(t)}))}function ti(t,e){var n=t._transitionClasses||(t._transitionClasses=[]);n.indexOf(e)<0&&(n.push(e),Hr(t,e))}function ei(t,e){t._transitionClasses&&m(t._transitionClasses,e),Ur(t,e)}function ni(t,e,n){var r=ii(t,e),i=r.type,o=r.timeout,s=r.propCount;if(!i)return n();var a=i===Vr?Jr:Kr,c=0,l=function(){t.removeEventListener(a,u),n()},u=function(e){e.target===t&&++c>=s&&l()};setTimeout((function(){c<s&&l()}),o+1),t.addEventListener(a,u)}var ri=/\b(transform|all)(,|$)/;function ii(t,e){var n,r=window.getComputedStyle(t),i=(r[Xr+"Delay"]||"").split(", "),o=(r[Xr+"Duration"]||"").split(", "),s=oi(i,o),a=(r[Gr+"Delay"]||"").split(", "),c=(r[Gr+"Duration"]||"").split(", "),l=oi(a,c),u=0,h=0;return e===Vr?s>0&&(n=Vr,u=s,h=o.length):e===Yr?l>0&&(n=Yr,u=l,h=c.length):h=(n=(u=Math.max(s,l))>0?s>l?Vr:Yr:null)?n===Vr?o.length:c.length:0,{type:n,timeout:u,propCount:h,hasTransform:n===Vr&&ri.test(r[Xr+"Property"])}}function oi(t,e){for(;t.length<e.length;)t=t.concat(t);return Math.max.apply(null,e.map((function(e,n){return si(e)+si(t[n])})))}function si(t){return 1e3*Number(t.slice(0,-1).replace(",","."))}function ai(t,e){var n=t.elm;o(n._leaveCb)&&(n._leaveCb.cancelled=!0,n._leaveCb());var r=Fr(t.data.transition);if(!i(r)&&!o(n._enterCb)&&1===n.nodeType){for(var s=r.css,a=r.type,l=r.enterClass,u=r.enterToClass,h=r.enterActiveClass,p=r.appearClass,d=r.appearToClass,g=r.appearActiveClass,v=r.beforeEnter,m=r.enter,y=r.afterEnter,b=r.enterCancelled,w=r.beforeAppear,x=r.appear,_=r.afterAppear,k=r.appearCancelled,C=r.duration,S=Ze,A=Ze.$vnode;A&&A.parent;)S=A.context,A=A.parent;var E=!S._isMounted||!t.isRootInsert;if(!E||x||""===x){var O=E&&p?p:l,T=E&&g?g:h,P=E&&d?d:u,I=E&&w||v,R=E&&"function"==typeof x?x:m,M=E&&_||y,N=E&&k||b,j=f(c(C)?C.enter:C),L=!1!==s&&!J,z=ui(R),$=n._enterCb=D((function(){L&&(ei(n,P),ei(n,T)),$.cancelled?(L&&ei(n,O),N&&N(n)):M&&M(n),n._enterCb=null}));t.data.show||ce(t,"insert",(function(){var e=n.parentNode,r=e&&e._pending&&e._pending[t.key];r&&r.tag===t.tag&&r.elm._leaveCb&&r.elm._leaveCb(),R&&R(n,$)})),I&&I(n),L&&(ti(n,O),ti(n,T),Qr((function(){ei(n,O),$.cancelled||(ti(n,P),z||(li(j)?setTimeout($,j):ni(n,a,$)))}))),t.data.show&&(e&&e(),R&&R(n,$)),L||z||$()}}}function ci(t,e){var n=t.elm;o(n._enterCb)&&(n._enterCb.cancelled=!0,n._enterCb());var r=Fr(t.data.transition);if(i(r)||1!==n.nodeType)return e();if(!o(n._leaveCb)){var s=r.css,a=r.type,l=r.leaveClass,u=r.leaveToClass,h=r.leaveActiveClass,p=r.beforeLeave,d=r.leave,g=r.afterLeave,v=r.leaveCancelled,m=r.delayLeave,y=r.duration,b=!1!==s&&!J,w=ui(d),x=f(c(y)?y.leave:y),_=n._leaveCb=D((function(){n.parentNode&&n.parentNode._pending&&(n.parentNode._pending[t.key]=null),b&&(ei(n,u),ei(n,h)),_.cancelled?(b&&ei(n,l),v&&v(n)):(e(),g&&g(n)),n._leaveCb=null}));m?m(k):k()}function k(){_.cancelled||(!t.data.show&&n.parentNode&&((n.parentNode._pending||(n.parentNode._pending={}))[t.key]=t),p&&p(n),b&&(ti(n,l),ti(n,h),Qr((function(){ei(n,l),_.cancelled||(ti(n,u),w||(li(x)?setTimeout(_,x):ni(n,a,_)))}))),d&&d(n,_),b||w||_())}}function li(t){return"number"==typeof t&&!isNaN(t)}function ui(t){if(i(t))return!1;var e=t.fns;return o(e)?ui(Array.isArray(e)?e[0]:e):(t._length||t.length)>1}function hi(t,e){!0!==e.data.show&&ai(e)}var pi=function(t){var e,n,r={},c=t.modules,l=t.nodeOps;for(e=0;e<nr.length;++e)for(r[nr[e]]=[],n=0;n<c.length;++n)o(c[n][nr[e]])&&r[nr[e]].push(c[n][nr[e]]);function u(t){var e=l.parentNode(t);o(e)&&l.removeChild(e,t)}function h(t,e,n,i,a,c,u){if(o(t.elm)&&o(c)&&(t=c[u]=mt(t)),t.isRootInsert=!a,!function(t,e,n,i){var a=t.data;if(o(a)){var c=o(t.componentInstance)&&a.keepAlive;if(o(a=a.hook)&&o(a=a.init)&&a(t,!1),o(t.componentInstance))return p(t,e),d(n,t.elm,i),s(c)&&function(t,e,n,i){for(var s,a=t;a.componentInstance;)if(o(s=(a=a.componentInstance._vnode).data)&&o(s=s.transition)){for(s=0;s<r.activate.length;++s)r.activate[s](er,a);e.push(a);break}d(n,t.elm,i)}(t,e,n,i),!0}}(t,e,n,i)){var h=t.data,g=t.children,v=t.tag;o(v)?(t.elm=t.ns?l.createElementNS(t.ns,v):l.createElement(v,t),y(t),f(t,g,e),o(h)&&m(t,e),d(n,t.elm,i)):s(t.isComment)?(t.elm=l.createComment(t.text),d(n,t.elm,i)):(t.elm=l.createTextNode(t.text),d(n,t.elm,i))}}function p(t,e){o(t.data.pendingInsert)&&(e.push.apply(e,t.data.pendingInsert),t.data.pendingInsert=null),t.elm=t.componentInstance.$el,v(t)?(m(t,e),y(t)):(tr(t),e.push(t))}function d(t,e,n){o(t)&&(o(n)?l.parentNode(n)===t&&l.insertBefore(t,e,n):l.appendChild(t,e))}function f(t,e,n){if(Array.isArray(e))for(var r=0;r<e.length;++r)h(e[r],n,t.elm,null,!0,e,r);else a(t.text)&&l.appendChild(t.elm,l.createTextNode(String(t.text)))}function v(t){for(;t.componentInstance;)t=t.componentInstance._vnode;return o(t.tag)}function m(t,n){for(var i=0;i<r.create.length;++i)r.create[i](er,t);o(e=t.data.hook)&&(o(e.create)&&e.create(er,t),o(e.insert)&&n.push(t))}function y(t){var e;if(o(e=t.fnScopeId))l.setStyleScope(t.elm,e);else for(var n=t;n;)o(e=n.context)&&o(e=e.$options._scopeId)&&l.setStyleScope(t.elm,e),n=n.parent;o(e=Ze)&&e!==t.context&&e!==t.fnContext&&o(e=e.$options._scopeId)&&l.setStyleScope(t.elm,e)}function b(t,e,n,r,i,o){for(;r<=i;++r)h(n[r],o,t,e,!1,n,r)}function w(t){var e,n,i=t.data;if(o(i))for(o(e=i.hook)&&o(e=e.destroy)&&e(t),e=0;e<r.destroy.length;++e)r.destroy[e](t);if(o(e=t.children))for(n=0;n<t.children.length;++n)w(t.children[n])}function x(t,e,n){for(;e<=n;++e){var r=t[e];o(r)&&(o(r.tag)?(_(r),w(r)):u(r.elm))}}function _(t,e){if(o(e)||o(t.data)){var n,i=r.remove.length+1;for(o(e)?e.listeners+=i:e=function(t,e){function n(){0==--n.listeners&&u(t)}return n.listeners=e,n}(t.elm,i),o(n=t.componentInstance)&&o(n=n._vnode)&&o(n.data)&&_(n,e),n=0;n<r.remove.length;++n)r.remove[n](t,e);o(n=t.data.hook)&&o(n=n.remove)?n(t,e):e()}else u(t.elm)}function k(t,e,n,r){for(var i=n;i<r;i++){var s=e[i];if(o(s)&&rr(t,s))return i}}function C(t,e,n,a,c,u){if(t!==e){o(e.elm)&&o(a)&&(e=a[c]=mt(e));var p=e.elm=t.elm;if(s(t.isAsyncPlaceholder))o(e.asyncFactory.resolved)?E(t.elm,e,n):e.isAsyncPlaceholder=!0;else if(s(e.isStatic)&&s(t.isStatic)&&e.key===t.key&&(s(e.isCloned)||s(e.isOnce)))e.componentInstance=t.componentInstance;else{var d,f=e.data;o(f)&&o(d=f.hook)&&o(d=d.prepatch)&&d(t,e);var g=t.children,m=e.children;if(o(f)&&v(e)){for(d=0;d<r.update.length;++d)r.update[d](t,e);o(d=f.hook)&&o(d=d.update)&&d(t,e)}i(e.text)?o(g)&&o(m)?g!==m&&function(t,e,n,r,s){for(var a,c,u,p=0,d=0,f=e.length-1,g=e[0],v=e[f],m=n.length-1,y=n[0],w=n[m],_=!s;p<=f&&d<=m;)i(g)?g=e[++p]:i(v)?v=e[--f]:rr(g,y)?(C(g,y,r,n,d),g=e[++p],y=n[++d]):rr(v,w)?(C(v,w,r,n,m),v=e[--f],w=n[--m]):rr(g,w)?(C(g,w,r,n,m),_&&l.insertBefore(t,g.elm,l.nextSibling(v.elm)),g=e[++p],w=n[--m]):rr(v,y)?(C(v,y,r,n,d),_&&l.insertBefore(t,v.elm,g.elm),v=e[--f],y=n[++d]):(i(a)&&(a=ir(e,p,f)),i(c=o(y.key)?a[y.key]:k(y,e,p,f))?h(y,r,t,g.elm,!1,n,d):rr(u=e[c],y)?(C(u,y,r,n,d),e[c]=void 0,_&&l.insertBefore(t,u.elm,g.elm)):h(y,r,t,g.elm,!1,n,d),y=n[++d]);p>f?b(t,i(n[m+1])?null:n[m+1].elm,n,d,m,r):d>m&&x(e,p,f)}(p,g,m,n,u):o(m)?(o(t.text)&&l.setTextContent(p,""),b(p,null,m,0,m.length-1,n)):o(g)?x(g,0,g.length-1):o(t.text)&&l.setTextContent(p,""):t.text!==e.text&&l.setTextContent(p,e.text),o(f)&&o(d=f.hook)&&o(d=d.postpatch)&&d(t,e)}}}function S(t,e,n){if(s(n)&&o(t.parent))t.parent.data.pendingInsert=e;else for(var r=0;r<e.length;++r)e[r].data.hook.insert(e[r])}var A=g("attrs,class,staticClass,staticStyle,key");function E(t,e,n,r){var i,a=e.tag,c=e.data,l=e.children;if(r=r||c&&c.pre,e.elm=t,s(e.isComment)&&o(e.asyncFactory))return e.isAsyncPlaceholder=!0,!0;if(o(c)&&(o(i=c.hook)&&o(i=i.init)&&i(e,!0),o(i=e.componentInstance)))return p(e,n),!0;if(o(a)){if(o(l))if(t.hasChildNodes())if(o(i=c)&&o(i=i.domProps)&&o(i=i.innerHTML)){if(i!==t.innerHTML)return!1}else{for(var u=!0,h=t.firstChild,d=0;d<l.length;d++){if(!h||!E(h,l[d],n,r)){u=!1;break}h=h.nextSibling}if(!u||h)return!1}else f(e,l,n);if(o(c)){var g=!1;for(var v in c)if(!A(v)){g=!0,m(e,n);break}!g&&c.class&&re(c.class)}}else t.data!==e.text&&(t.data=e.text);return!0}return function(t,e,n,a){if(!i(e)){var c,u=!1,p=[];if(i(t))u=!0,h(e,p);else{var d=o(t.nodeType);if(!d&&rr(t,e))C(t,e,p,null,null,a);else{if(d){if(1===t.nodeType&&t.hasAttribute(j)&&(t.removeAttribute(j),n=!0),s(n)&&E(t,e,p))return S(e,p,!0),t;c=t,t=new dt(l.tagName(c).toLowerCase(),{},[],void 0,c)}var f=t.elm,g=l.parentNode(f);if(h(e,p,f._leaveCb?null:g,l.nextSibling(f)),o(e.parent))for(var m=e.parent,y=v(e);m;){for(var b=0;b<r.destroy.length;++b)r.destroy[b](m);if(m.elm=e.elm,y){for(var _=0;_<r.create.length;++_)r.create[_](er,m);var k=m.data.hook.insert;if(k.merged)for(var A=1;A<k.fns.length;A++)k.fns[A]()}else tr(m);m=m.parent}o(g)?x([t],0,0):o(t.tag)&&w(t)}}return S(e,p,u),e.elm}o(t)&&w(t)}}({nodeOps:Zn,modules:[gr,yr,Sr,Or,$r,q?{create:hi,activate:hi,remove:function(t,e){!0!==t.data.show?ci(t,e):e()}}:{}].concat(hr)});J&&document.addEventListener("selectionchange",(function(){var t=document.activeElement;t&&t.vmodel&&wi(t,"input")}));var di={inserted:function(t,e,n,r){"select"===n.tag?(r.elm&&!r.elm._vOptions?ce(n,"postpatch",(function(){di.componentUpdated(t,e,n)})):fi(t,e,n.context),t._vOptions=[].map.call(t.options,mi)):("textarea"===n.tag||Kn(t.type))&&(t._vModifiers=e.modifiers,e.modifiers.lazy||(t.addEventListener("compositionstart",yi),t.addEventListener("compositionend",bi),t.addEventListener("change",bi),J&&(t.vmodel=!0)))},componentUpdated:function(t,e,n){if("select"===n.tag){fi(t,e,n.context);var r=t._vOptions,i=t._vOptions=[].map.call(t.options,mi);i.some((function(t,e){return!M(t,r[e])}))&&(t.multiple?e.value.some((function(t){return vi(t,i)})):e.value!==e.oldValue&&vi(e.value,i))&&wi(t,"change")}}};function fi(t,e,n){gi(t,e),(X||G)&&setTimeout((function(){gi(t,e)}),0)}function gi(t,e,n){var r=e.value,i=t.multiple;if(!i||Array.isArray(r)){for(var o,s,a=0,c=t.options.length;a<c;a++)if(s=t.options[a],i)o=N(r,mi(s))>-1,s.selected!==o&&(s.selected=o);else if(M(mi(s),r))return void(t.selectedIndex!==a&&(t.selectedIndex=a));i||(t.selectedIndex=-1)}}function vi(t,e){return e.every((function(e){return!M(e,t)}))}function mi(t){return"_value"in t?t._value:t.value}function yi(t){t.target.composing=!0}function bi(t){t.target.composing&&(t.target.composing=!1,wi(t.target,"input"))}function wi(t,e){var n=document.createEvent("HTMLEvents");n.initEvent(e,!0,!0),t.dispatchEvent(n)}function xi(t){return!t.componentInstance||t.data&&t.data.transition?t:xi(t.componentInstance._vnode)}var _i={bind:function(t,e,n){var r=e.value,i=(n=xi(n)).data&&n.data.transition,o=t.__vOriginalDisplay="none"===t.style.display?"":t.style.display;r&&i?(n.data.show=!0,ai(n,(function(){t.style.display=o}))):t.style.display=r?o:"none"},update:function(t,e,n){var r=e.value;!r!=!e.oldValue&&((n=xi(n)).data&&n.data.transition?(n.data.show=!0,r?ai(n,(function(){t.style.display=t.__vOriginalDisplay})):ci(n,(function(){t.style.display="none"}))):t.style.display=r?t.__vOriginalDisplay:"none")},unbind:function(t,e,n,r,i){i||(t.style.display=t.__vOriginalDisplay)}},ki={model:di,show:_i},Ci={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function Si(t){var e=t&&t.componentOptions;return e&&e.Ctor.options.abstract?Si(Ye(e.children)):t}function Ai(t){var e={},n=t.$options;for(var r in n.propsData)e[r]=t[r];var i=n._parentListeners;for(var o in i)e[_(o)]=i[o];return e}function Ei(t,e){if(/\d-keep-alive$/.test(e.tag))return t("keep-alive",{props:e.componentOptions.propsData})}var Oi=function(t){return t.tag||ve(t)},Ti=function(t){return"show"===t.name},Pi={name:"transition",props:Ci,abstract:!0,render:function(t){var e=this,n=this.$slots.default;if(n&&(n=n.filter(Oi)).length){var r=this.mode,i=n[0];if(function(t){for(;t=t.parent;)if(t.data.transition)return!0}(this.$vnode))return i;var o=Si(i);if(!o)return i;if(this._leaving)return Ei(t,i);var s="__transition-"+this._uid+"-";o.key=null==o.key?o.isComment?s+"comment":s+o.tag:a(o.key)?0===String(o.key).indexOf(s)?o.key:s+o.key:o.key;var c=(o.data||(o.data={})).transition=Ai(this),l=this._vnode,u=Si(l);if(o.data.directives&&o.data.directives.some(Ti)&&(o.data.show=!0),u&&u.data&&!function(t,e){return e.key===t.key&&e.tag===t.tag}(o,u)&&!ve(u)&&(!u.componentInstance||!u.componentInstance._vnode.isComment)){var h=u.data.transition=O({},c);if("out-in"===r)return this._leaving=!0,ce(h,"afterLeave",(function(){e._leaving=!1,e.$forceUpdate()})),Ei(t,i);if("in-out"===r){if(ve(o))return l;var p,d=function(){p()};ce(c,"afterEnter",d),ce(c,"enterCancelled",d),ce(h,"delayLeave",(function(t){p=t}))}}return i}}},Ii=O({tag:String,moveClass:String},Ci);function Ri(t){t.elm._moveCb&&t.elm._moveCb(),t.elm._enterCb&&t.elm._enterCb()}function Mi(t){t.data.newPos=t.elm.getBoundingClientRect()}function Ni(t){var e=t.data.pos,n=t.data.newPos,r=e.left-n.left,i=e.top-n.top;if(r||i){t.data.moved=!0;var o=t.elm.style;o.transform=o.WebkitTransform="translate("+r+"px,"+i+"px)",o.transitionDuration="0s"}}delete Ii.mode;var Di={Transition:Pi,TransitionGroup:{props:Ii,beforeMount:function(){var t=this,e=this._update;this._update=function(n,r){var i=Qe(t);t.__patch__(t._vnode,t.kept,!1,!0),t._vnode=t.kept,i(),e.call(t,n,r)}},render:function(t){for(var e=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),r=this.prevChildren=this.children,i=this.$slots.default||[],o=this.children=[],s=Ai(this),a=0;a<i.length;a++){var c=i[a];c.tag&&null!=c.key&&0!==String(c.key).indexOf("__vlist")&&(o.push(c),n[c.key]=c,(c.data||(c.data={})).transition=s)}if(r){for(var l=[],u=[],h=0;h<r.length;h++){var p=r[h];p.data.transition=s,p.data.pos=p.elm.getBoundingClientRect(),n[p.key]?l.push(p):u.push(p)}this.kept=t(e,null,l),this.removed=u}return t(e,null,o)},updated:function(){var t=this.prevChildren,e=this.moveClass||(this.name||"v")+"-move";t.length&&this.hasMove(t[0].elm,e)&&(t.forEach(Ri),t.forEach(Mi),t.forEach(Ni),this._reflow=document.body.offsetHeight,t.forEach((function(t){if(t.data.moved){var n=t.elm,r=n.style;ti(n,e),r.transform=r.WebkitTransform=r.transitionDuration="",n.addEventListener(Jr,n._moveCb=function t(r){r&&r.target!==n||r&&!/transform$/.test(r.propertyName)||(n.removeEventListener(Jr,t),n._moveCb=null,ei(n,e))})}})))},methods:{hasMove:function(t,e){if(!Wr)return!1;if(this._hasMove)return this._hasMove;var n=t.cloneNode();t._transitionClasses&&t._transitionClasses.forEach((function(t){Ur(n,t)})),Hr(n,e),n.style.display="none",this.$el.appendChild(n);var r=ii(n);return this.$el.removeChild(n),this._hasMove=r.hasTransform}}}};An.config.mustUseProp=function(t,e,n){return"value"===n&&Dn(t)&&"button"!==e||"selected"===n&&"option"===t||"checked"===n&&"input"===t||"muted"===n&&"video"===t},An.config.isReservedTag=Jn,An.config.isReservedAttr=Nn,An.config.getTagNamespace=function(t){return Xn(t)?"svg":"math"===t?"math":void 0},An.config.isUnknownElement=function(t){if(!q)return!0;if(Jn(t))return!1;if(t=t.toLowerCase(),null!=Gn[t])return Gn[t];var e=document.createElement(t);return t.indexOf("-")>-1?Gn[t]=e.constructor===window.HTMLUnknownElement||e.constructor===window.HTMLElement:Gn[t]=/HTMLUnknownElement/.test(e.toString())},O(An.options.directives,ki),O(An.options.components,Di),An.prototype.__patch__=q?pi:P,An.prototype.$mount=function(t,e){return function(t,e,n){var r;return t.$el=e,t.$options.render||(t.$options.render=gt),rn(t,"beforeMount"),r=function(){t._update(t._render(),n)},new vn(t,r,P,{before:function(){t._isMounted&&!t._isDestroyed&&rn(t,"beforeUpdate")}},!0),n=!1,null==t.$vnode&&(t._isMounted=!0,rn(t,"mounted")),t}(this,t=t&&q?function(t){return"string"==typeof t?document.querySelector(t)||document.createElement("div"):t}(t):void 0,e)},q&&setTimeout((function(){$.devtools&&rt&&rt.emit("init",An)}),0);const ji=An},4618:()=>{let t,e,n=-1,r=-1,i=!1;const o=document.createElement("div");function s(){const t=document.body.clientWidth,e=document.body.clientHeight;Object.assign(o.style,{left:n+(n<t/2?16:-16-o.clientWidth)+"px",top:r+(r<e/2?16:-16-o.clientHeight)+"px"})}function a(t){if(!t||!t.getAttribute)return;return t.getAttribute("data-tooltip")||a(t.parentNode)}function c(){const c=a(document.elementFromPoint(n,r)),l=o.innerText;c||!i||t||(i=!1,clearTimeout(e)),!c||i||t?l!==c&&t&&i&&(clearTimeout(e),i=!1,e=setTimeout((()=>{t=!1,Object.assign(o.style,{left:"-1000px",top:"-1000px"})}),300),o.style.opacity=0):(clearTimeout(e),i=!0,e=setTimeout((()=>{o.innerText=c,s(),o.style.opacity=1,t=!0}),400))}Object.assign(o.style,{position:"fixed",left:"-1000px",top:"-1000px",border:"2px solid black",background:"white",fontFamily:"Glacial Indifference",fontWeight:"bold",fontSize:"16px",padding:"8px",maxWidth:"300px",zIndex:"100000",pointerEvents:"none",opacity:0,transition:"opacity .2s ease"}),o.innerText="",document.body.appendChild(o),document.body.addEventListener("mousemove",(e=>{n=e.clientX,r=e.clientY,t&&s()})),setInterval((()=>{c()}),100)}},e={};function n(r){var i=e[r];if(void 0!==i)return i.exports;var o=e[r]={id:r,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},(()=>{"use strict";var t=n(144),e=function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{staticClass:"header"},[t._t("default")],2)};e._withStripped=!0;const r=t.default.component("br-header",{});function i(t,e,n,r,i,o,s,a){var c,l="function"==typeof t?t.options:t;if(e&&(l.render=e,l.staticRenderFns=n,l._compiled=!0),r&&(l.functional=!0),o&&(l._scopeId="data-v-"+o),s?(c=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(s)},l._ssrRegister=c):i&&(c=a?function(){i.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:i),c)if(l.functional){l._injectStyles=c;var u=l.render;l.render=function(t,e){return c.call(e),u(t,e)}}else{var h=l.beforeCreate;l.beforeCreate=h?[].concat(h,c):[c]}return{exports:t,options:l}}n(6834);var o=i(r,e,[],!1,null,"26050f5a",null);o.options.__file="src/webserver/frontend/components/Header.vue",o.exports;var s=function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{staticClass:"footer"},[t._t("default")],2)};s._withStripped=!0;const a=t.default.component("br-footer",{});n(6590);var c=i(a,s,[],!1,null,"04d2ab68",null);c.options.__file="src/webserver/frontend/components/Footer.vue",c.exports;var l=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"background"},[n("img",{staticClass:"bg-img dark",attrs:{src:"/public/img/dark_bg.webp"}}),t._v(" "),n("img",{staticClass:"bg-img light",attrs:{src:"/public/img/auth_bg.webp"}}),t._v(" "),t.version?n("div",{staticClass:"version"},[t._v("Omegga v"+t._s(t.version))]):t._e(),t._v(" "),t._t("default")],2)};l._withStripped=!0;const u=t.default.component("br-background",{sockets:{data(t){this.version=t.version}},data(){return{version:this.omeggaData&&this.omeggaData.version}}});n(1238);var h=i(u,l,[],!1,null,"cfa2320a",null);h.options.__file="src/webserver/frontend/components/Background.vue",h.exports;var p=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("router-link",{class:["menu-button",{disabled:t.disabled,active:(t.name||t.route)===this.$route.name}],attrs:{to:"/"+t.route},on:{click:function(e){return t.$emit("click",e)}}},[n("div",{staticClass:"menu-button-content"},[t._t("default")],2)])};p._withStripped=!0;const d=t.default.component("br-menu-button",{props:{disabled:Boolean,route:String,name:String}});n(3257);var f=i(d,p,[],!1,null,null,null);f.options.__file="src/webserver/frontend/components/MainMenuButton.vue",f.exports;var g=function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{staticClass:"popout-content"},[t._t("default")],2)};g._withStripped=!0;const v=t.default.component("br-popout-content",{});n(646);var m=i(v,g,[],!1,null,"2835009f",null);m.options.__file="src/webserver/frontend/components/PopoutContent.vue",m.exports;var y=function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{staticClass:"navbar"},[t._t("default")],2)};y._withStripped=!0;const b=t.default.component("br-navbar",{});n(6043);var w=i(b,y,[],!1,null,"06bd673d",null);w.options.__file="src/webserver/frontend/components/NavBar.vue",w.exports;var x=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:["loader",{active:t.active,inline:t.inline}],on:{click:function(e){return t.$emit("click",e)}}},[n("div",{class:["loader-container",{blur:t.blur}]},[n("LoaderIcon",{class:["loader-icon"],attrs:{size:t.sizes[t.size||"normal"]}}),t._v(" "),n("div",[t._t("default")],2)],1)])};x._withStripped=!0;var _=n(6568),k=n.n(_);const C={name:"LoaderIcon",props:{size:{type:String,default:"24"}},functional:!0,render(t,e){const n=parseInt(e.props.size)+"px",r=e.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,e.data.attrs=r,t("svg",k()([{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},class:"icon icon-tabler icon-tabler-loader"},e.data]),[" ",t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}})," ",t("line",{attrs:{x1:"12",y1:"6",x2:"12",y2:"3"}})," ",t("line",{attrs:{x1:"16.25",y1:"7.75",x2:"18.4",y2:"5.6"}})," ",t("line",{attrs:{x1:"18",y1:"12",x2:"21",y2:"12"}})," ",t("line",{attrs:{x1:"16.25",y1:"16.25",x2:"18.4",y2:"18.4"}})," ",t("line",{attrs:{x1:"12",y1:"18",x2:"12",y2:"21"}})," ",t("line",{attrs:{x1:"7.75",y1:"16.25",x2:"5.6",y2:"18.4"}})," ",t("line",{attrs:{x1:"6",y1:"12",x2:"3",y2:"12"}})," ",t("line",{attrs:{x1:"7.75",y1:"7.75",x2:"5.6",y2:"5.6"}})," "])}},S=t.default.component("br-loader",{components:{LoaderIcon:C},props:{active:Boolean,size:String,blur:Boolean,inline:Boolean},data:()=>({sizes:{small:"24",normal:"30",huge:"60",massive:"120"}})});n(9746);var A=i(S,x,[],!1,null,"7c51ac40",null);A.options.__file="src/webserver/frontend/components/Loader.vue",A.exports;var E=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:["modal",{visible:t.visible}]},[n("div",{staticClass:"modal-content"},[t._t("default")],2)])};E._withStripped=!0;const O=t.default.component("br-modal",{props:{visible:Boolean}});n(5922);var T=i(O,E,[],!1,null,"1b64c920",null);T.options.__file="src/webserver/frontend/components/Modal.vue",T.exports;var P=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:["dimmer",{visible:t.visible}]},[n("div",{staticClass:"dimmer-content"},[t._t("default")],2)])};P._withStripped=!0;const I=t.default.component("br-dimmer",{props:{visible:Boolean}});n(3628);var R=i(I,P,[],!1,null,"6097369f",null);R.options.__file="src/webserver/frontend/components/Dimmer.vue",R.exports;var M=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"scroll-container"},[n("div",{staticClass:"scroll-scroller"},[t._t("default")],2)])};M._withStripped=!0;const N=t.default.component("br-scroll",{});n(9721);var D=i(N,M,[],!1,null,null,null);D.options.__file="src/webserver/frontend/components/Scroll.vue",D.exports;var j=function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{on:{scroll:t.handleElementScroll}},[t._t("default")],2)};j._withStripped=!0;var L=i(t.default.component("v-infinite-scroll",{props:{loading:{type:Boolean},offset:{type:Number,default:0},onTopScrollsToBottom:{type:Boolean,default:!0}},data:()=>({target:null,scrollPosition:0,lastDirection:""}),methods:{handleElementScroll:function(t){this.target||(this.target=t.target);let e=t.target.scrollTop;e>this.scrollPosition&&e+t.target.offsetHeight>=t.target.scrollHeight-this.offset?this.emitEvents("bottom"):e<this.scrollPosition&&e<=this.offset&&this.emitEvents("top"),this.scrollPosition=e},emitEvents(t){this.loading||(this.lastDirection=t,this.$emit(t))}},watch:{loading(){this.onTopScrollsToBottom&&!this.loading&&"top"==this.lastDirection&&this.target.scroll({top:this.target.scrollHeight-this.target.offsetHeight-this.offset-2,behavior:"instant"})}}}),j,[],!1,null,null,null);L.options.__file="src/webserver/frontend/components/InfiniteScroll.vue",L.exports;var z=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:["button",{warn:void 0!==t.warn,main:void 0!==t.main,error:void 0!==t.error,info:void 0!==t.info,normal:void 0!==t.normal,disabled:void 0!==t.disabled&&t.disabled,boxy:void 0!==t.boxy,icon:void 0!==t.icon}],on:{click:function(e){return t.$emit("click",e)}}},[n("div",{staticClass:"button-content"},[t._t("default")],2)])};z._withStripped=!0;const $=t.default.component("br-button",{props:["warn","main","icon","error","info","normal","disabled","boxy"]});n(8790);var B=i($,z,[],!1,null,"74f50d02",null);B.options.__file="src/webserver/frontend/components/Button.vue",B.exports;var H=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:["input",{disabled:t.disabled}]},[n("input",{attrs:{spellcheck:"false",placeholder:t.placeholder?t.placeholder.toString():"",type:t.type},domProps:{value:t.value},on:{input:function(e){t.$emit("input","number"===t.type?Number(e.target.value):e.target.value)}}})])};H._withStripped=!0;const U=t.default.component("br-input",{props:{placeholder:String,disabled:Boolean,type:String,value:[String,Number]}});n(8600);var F=i(U,H,[],!1,null,"5291bbe6",null);F.options.__file="src/webserver/frontend/components/Input.vue",F.exports;var q=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:["br-list-input",{disabled:t.disabled}]},[t._l(t.value||[],(function(e,r){return n("div",{key:r,staticClass:"br-list-item"},[["string","password","number"].includes(t.type)?n("br-input",{attrs:{value:t.value[r],placeholder:t.placeholder?t.placeholder.toString():"",type:t.type},on:{input:function(e){return t.updateItem(r,e)}}}):t._e(),t._v(" "),"enum"===t.type?n("br-dropdown",{attrs:{value:t.value[r],options:t.options},on:{input:function(e){return t.updateItem(r,e)}}}):t._e(),t._v(" "),"role"===t.type?n("br-role-dropdown",{attrs:{value:t.value[r]},on:{input:function(e){return t.updateItem(r,e)}}}):t._e(),t._v(" "),n("br-button",{attrs:{icon:"",warn:"","data-tooltip":"Remove this item from the list"},on:{click:function(e){return t.removeItem(r)}}},[n("MinusIcon")],1)],1)})),t._v(" "),n("br-button",{attrs:{icon:"",main:"","data-tooltip":"Add an item to the list"},on:{click:function(e){return t.addItem()}}},[n("PlusIcon")],1)],2)};q._withStripped=!0;const W={name:"PlusIcon",props:{size:{type:String,default:"24"}},functional:!0,render(t,e){const n=parseInt(e.props.size)+"px",r=e.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,e.data.attrs=r,t("svg",k()([{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},class:"icon icon-tabler icon-tabler-plus"},e.data]),[" ",t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}})," ",t("line",{attrs:{x1:"12",y1:"5",x2:"12",y2:"19"}})," ",t("line",{attrs:{x1:"5",y1:"12",x2:"19",y2:"12"}})," "])}},V={name:"MinusIcon",props:{size:{type:String,default:"24"}},functional:!0,render(t,e){const n=parseInt(e.props.size)+"px",r=e.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,e.data.attrs=r,t("svg",k()([{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},class:"icon icon-tabler icon-tabler-minus"},e.data]),[" ",t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}})," ",t("line",{attrs:{x1:"5",y1:"12",x2:"19",y2:"12"}})," "])}},Y=t.default.component("br-list-input",{components:{PlusIcon:W,MinusIcon:V},methods:{updateItem(t,e){const n=this.value.slice();n[t]=e,this.$emit("input",n)},addItem(){const t=this.value.slice();t.push({string:"",number:0,password:"",role:"",enum:this.options&&this.options[0]}[this.type]),this.$emit("input",t)},removeItem(t){const e=this.value.slice();e.splice(t,1),this.$emit("input",e)}},props:{placeholder:String,disabled:Boolean,type:String,value:Array,options:Array}}),X=Y;n(3266);var J=i(X,q,[],!1,null,"7257d4e2",null);J.options.__file="src/webserver/frontend/components/ListInput.vue",J.exports;var G=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{ref:"self",class:["dropdown",{disabled:t.disabled}]},[t.open?n("div",{staticClass:"options"},t._l(t.options,(function(e){return n("div",{key:e,class:["option",{green:t.value===e}],on:{click:function(n){t.open=!1,t.$emit("input",e)}}},[t._v("\n "+t._s(e)+"\n ")])})),0):t._e(),t._v(" "),n("div",{staticClass:"selected",on:{click:function(e){t.open=!t.open}}},[n("div",{staticClass:"value"},[t._v(t._s(t.value))]),t._v(" "),n("CaretDownIcon")],1)])};G._withStripped=!0;const K={name:"CaretDownIcon",props:{size:{type:String,default:"24"}},functional:!0,render(t,e){const n=parseInt(e.props.size)+"px",r=e.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,e.data.attrs=r,t("svg",k()([{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},class:"icon icon-tabler icon-tabler-caret-down"},e.data]),[" ",t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}})," ",t("path",{attrs:{d:"M18 15l-6 -6l-6 6h12",transform:"rotate(180 12 12)"}})," "])}},Z=t.default.component("br-dropdown",{components:{CaretDownIcon:K},beforeDestroy(){document.removeEventListener("click",this.handleClick)},created(){document.addEventListener("click",this.handleClick)},methods:{handleClick(t){open&&!this.$refs.self.contains(t.target)&&(this.open=!1)}},props:{disabled:Boolean,options:Array,value:[String,Number]},data:()=>({listener:void 0,open:!1})});n(2307);var Q=i(Z,G,[],!1,null,"230894c4",null);Q.options.__file="src/webserver/frontend/components/Dropdown.vue",Q.exports;var tt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:["toggle",{disabled:void 0!==t.disabled&&t.disabled}],on:{click:function(e){return t.$emit("input",!t.value)}}},[n("div",{class:["toggle-slider",{on:t.value}]},[n("div",{staticClass:"symbol"})])])};tt._withStripped=!0;const et=t.default.component("br-toggle",{props:{disabled:Boolean,value:Boolean}});n(711);var nt=i(et,tt,[],!1,null,"7d572ca1",null);nt.options.__file="src/webserver/frontend/components/Toggle.vue",nt.exports;var rt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:["br-player-list",{disabled:t.disabled}]},[t._l(t.value||[],(function(e,r){return n("div",{key:r,staticClass:"br-player-item"},[n("router-link",{staticClass:"selected",attrs:{to:"/players/"+e.id,"data-tooltip":"Click to navigate to player page"}},[t._v("\n "+t._s(e.name)+"\n ")]),t._v(" "),n("br-button",{attrs:{icon:"",warn:"","data-tooltip":"Remove this player from the list"},on:{click:function(e){return t.removeItem(r)}}},[n("MinusIcon")],1)],1)})),t._v(" "),n("div",{ref:"self",staticClass:"player-search"},[n("br-input",{attrs:{placeholder:"Search Players..."},on:{input:function(){return t.doSearch()}},model:{value:t.search,callback:function(e){t.search=e},expression:"search"}}),t._v(" "),t.open?n("div",{staticClass:"options"},[t.loadingSearch?n("div",{staticClass:"option search",staticStyle:{position:"relative"}},[n("br-loader",{attrs:{active:"",size:"small"}})],1):t._e(),t._v(" "),t._l(t.players,(function(e){return n("div",{key:e.id,staticClass:"option",on:{click:function(n){t.open=!1,t.addItem(e)}}},[t._v("\n "+t._s(e.name)+"\n ")])}))],2):t._e()],1)],2)};rt._withStripped=!0;var it=n(3279),ot=n.n(it);const st=t.default.component("br-player-list",{components:{PlusIcon:W,MinusIcon:V},beforeDestroy(){document.removeEventListener("click",this.handleClick)},async created(){document.addEventListener("click",this.handleClick)},methods:{handleClick(t){open&&!this.$refs.self.contains(t.target)&&(this.open=!1,this.players=[])},updateItem(t,e){const n=this.value.slice();n[t]=e,this.$emit("input",n)},addItem(t){this.open=!1,this.players=[],this.search="";const e=this.value.slice();e.push({id:t.id,name:t.name}),this.$emit("input",e)},removeItem(t){const e=this.value.slice();e.splice(t,1),this.$emit("input",e)},doSearch:ot()((function(){0!==this.search.length?(this.page=0,this.open=!0,this.getPlayers()):(this.open=!1,this.players=[])}),500),async getPlayers(){this.loadingSearch=!0;const{players:t}=await this.$$request("players.list",{page:0,search:this.search,sort:"lastSeen",direction:-1,filter:""});this.players=t,this.loadingSearch=!1}},props:{placeholder:String,disabled:Boolean,type:String,value:Array},data:()=>({search:"",options:["foo","bar","baz"],players:[],loadingSearch:!1,open:!1})}),at=st;n(48);var ct=i(at,rt,[],!1,null,"7bb12f5f",null);ct.options.__file="src/webserver/frontend/components/PlayerDropdown.vue",ct.exports;var lt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{ref:"self",class:["role-dropdown",{disabled:t.disabled}]},[t.open?n("div",{staticClass:"options"},[t.loadingSearch?n("div",{staticClass:"option search",staticStyle:{position:"relative"}},[n("br-loader",{attrs:{active:"",size:"small"}})],1):t._e(),t._v(" "),t._l(t.options,(function(e){return n("div",{key:e,class:["option",{green:t.value===e}],on:{click:function(n){t.open=!1,t.$emit("input",e)}}},[t._v("\n "+t._s(e)+"\n ")])}))],2):t._e(),t._v(" "),n("div",{staticClass:"selected",on:{click:function(e){t.open=!t.open,t.getRoles()}}},[n("div",{staticClass:"value"},[t._v(t._s(t.value))]),t._v(" "),n("CaretDownIcon")],1)])};lt._withStripped=!0;const ut=t.default.component("br-role-dropdown",{components:{CaretDownIcon:K},beforeDestroy(){document.removeEventListener("click",this.handleClick)},created(){document.addEventListener("click",this.handleClick)},methods:{handleClick(t){open&&!this.$refs.self.contains(t.target)&&(this.open=!1)},async getRoles(){this.loadingSearch=!0,this.options=[];const t=await this.$$request("roles.list");this.options=t.map((t=>t.name)),this.loadingSearch=!1}},props:{disabled:Boolean,value:String},data:()=>({listener:void 0,open:!1,options:[],loadingSearch:!1})});n(8315);var ht=i(ut,lt,[],!1,null,"6562c6b4",null);ht.options.__file="src/webserver/frontend/components/RoleDropdown.vue",ht.exports;var pt=function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{staticClass:"chat-timestamp"},[t._v("\n "+t._s(t.hours)+":"+t._s(t.minutes)+" "+t._s(t.pm)+"\n")])};pt._withStripped=!0;const dt=t.default.component("chat-time",{props:["time"],created(){const t=new Date(this.time);this.hours=t.getHours(),this.pm=this.hours>=12?"PM":"AM",this.hours>12?this.hours-=12:0===this.hours&&(this.hours=12),this.minutes=(t.getMinutes()+"").padStart(2,"0")}});n(6240);var ft=i(dt,pt,[],!1,null,"3de125d2",null);ft.options.__file="src/webserver/frontend/components/ChatTime.vue",ft.exports;var gt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:["log-entry",{focused:t.$route.params.time==t.log.created}]},[n("div",{staticClass:"log-row"},[n("router-link",{staticClass:"time-link",attrs:{to:"/history/"+(t.$route.params.time==t.log.created?"":t.log.created)}},[n("LinkIcon"),t._v(" "),n("chat-time",{attrs:{time:t.log.created}})],1),t._v(" "),"msg"===t.log.action?t._m(0):t._e(),t._v(" "),"leave"===t.log.action?t._m(1):t._e(),t._v(" "),"join"===t.log.action?t._m(2):t._e(),t._v(" "),"server"===t.log.action?n("div",{staticClass:"message server-message"},[t._v("\n "+t._s(t.log.message)+"\n ")]):t._e()],1)])};gt._withStripped=!0;const vt={name:"LinkIcon",props:{size:{type:String,default:"24"}},functional:!0,render(t,e){const n=parseInt(e.props.size)+"px",r=e.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,e.data.attrs=r,t("svg",k()([{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},class:"icon icon-tabler icon-tabler-link"},e.data]),[" ",t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}})," ",t("path",{attrs:{d:"M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"}})," ",t("path",{attrs:{d:"M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"}})," "])}},mt=t.default.component("br-chat-entry",{components:{LinkIcon:vt},props:{log:{type:Object}},data:()=>({})});n(1407);var yt=i(mt,gt,[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"chat-message message"},[t._v("\n "+t._s(t.log.user.web?"[":"")),t.log.user.web?n("span",{staticClass:"user",style:{color:"#"+t.log.user.color}},[t._v(t._s(t.log.user.name))]):n("router-link",{staticClass:"user",style:{color:"#"+t.log.user.color},attrs:{to:"/players/"+t.log.user.id}},[t._v(t._s(t.log.user.name))]),t._v(t._s(t.log.user.web?"]":"")+":\n "),n("span",{directives:[{name:"linkified",rawName:"v-linkified"}],domProps:{innerHTML:t._s(t.xss(t.log.message))}})],1)},function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"message join-message"},[n("router-link",{staticClass:"user",attrs:{to:"/players/"+t.log.user.id}},[t._v("\n "+t._s(t.log.user.name)+"\n ")]),t._v("\n left the game.\n ")],1)},function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"message join-message"},[n("router-link",{staticClass:"user",attrs:{to:"/players/"+t.log.user.id}},[t._v("\n "+t._s(t.log.user.name)+"\n ")]),t._v("\n joined the game"+t._s(t.log.user.isFirst?" for the first time":"")+".\n ")],1)}],!1,null,"6221c0bd",null);yt.options.__file="src/webserver/frontend/components/ChatEntry.vue",yt.exports;var bt=n(7719),wt=n.n(bt);t.default.directive("linkified",wt()),n(4618);var xt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"chat-widget"},[n("br-scroll",{staticClass:"messages"},[n("div",{staticClass:"messages-child"},t._l(t.chats,(function(e){return n("div",{key:e._id,staticClass:"log-entry"},["msg"===e.action?n("div",{staticClass:"chat-message"},[t._v("\n "+t._s(e.user.web?"[":"")),n("span",{staticClass:"user",style:{color:"#"+e.user.color}},[t._v(t._s(e.user.name))]),t._v(t._s(e.user.web?"]":"")+":\n "),n("span",{directives:[{name:"linkified",rawName:"v-linkified"}],domProps:{innerHTML:t._s(t.xss(e.message))}})]):t._e(),t._v(" "),"leave"===e.action?n("div",{staticClass:"join-message"},[n("span",{staticClass:"user"},[t._v(t._s(e.user.name))]),t._v(" left the game.\n ")]):t._e(),t._v(" "),"join"===e.action?n("div",{staticClass:"join-message"},[n("span",{staticClass:"user"},[t._v(t._s(e.user.name))]),t._v(" joined the game"+t._s(e.user.isFirst?" for the first time":"")+".\n ")]):t._e(),t._v(" "),"server"===e.action?n("div",{staticClass:"server-message"},[t._v("\n "+t._s(e.message)+"\n ")]):t._e()])})),0)]),t._v(" "),n("form",{on:{submit:t.sendMessage}},[n("br-footer",[n("br-input",{attrs:{type:"text",placeholder:"Message"},model:{value:t.message,callback:function(e){t.message=e},expression:"message"}}),t._v(" "),n("br-button",{staticStyle:{"margin-left":"10px"},attrs:{normal:"",icon:""},on:{click:t.sendMessage}},[n("SendIcon")],1)],1)],1)],1)};xt._withStripped=!0;const _t={name:"SendIcon",props:{size:{type:String,default:"24"}},functional:!0,render(t,e){const n=parseInt(e.props.size)+"px",r=e.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,e.data.attrs=r,t("svg",k()([{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},class:"icon icon-tabler icon-tabler-send"},e.data]),[" ",t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}})," ",t("line",{attrs:{x1:"10",y1:"14",x2:"21",y2:"3"}})," ",t("path",{attrs:{d:"M21 3l-6.5 18a0.55 .55 0 0 1 -1 0l-3.5 -7l-7 -3.5a0.55 .55 0 0 1 0 -1l18 -6.5"}})," "])}},kt=t.default.component("br-chat-widget",{components:{SendIcon:_t},sockets:{chat(t){this.chats.push(t),this.chats.length>50&&this.chats.splice(0,50-this.chats.length),this.scroll()},connect(){this.getChats()}},beforeDestroy(){this.$$emit("unsubscribe","chat")},created(){this.getChats()},methods:{getChats(){this.$$emit("subscribe","chat"),this.$$request("chat.recent").then((t=>{this.chats=t.reverse(),this.scroll()}))},scroll(){window.requestAnimationFrame((()=>{const t=this.$el.querySelector(".scroll-scroller");t.scrollTop=t.scrollHeight}))},sendMessage(t){t.preventDefault(),this.message.length>140||0===this.message.length||(this.$$notify("chat",this.message),this.message="")}},data:()=>({chats:[],message:""})});n(6524);var Ct=i(kt,xt,[],!1,null,null,null);Ct.options.__file="src/webserver/frontend/widgets/Chat.vue",Ct.exports;var St=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"status-widget"},[t.status.players?n("br-scroll",{staticClass:"players"},[n("div",{staticClass:"players-child"},[n("div",{staticClass:"stats"},[n("div",{staticClass:"stat"},[n("b",[t._v("Name:")]),t._v(" "+t._s(t.status.serverName))]),t._v(" "),n("div",{staticClass:"stat"},[n("b",[t._v("Uptime:")]),t._v(" "+t._s(t.duration(t.status.time)))]),t._v(" "),n("div",{staticClass:"stat"},[n("b",[t._v("Bricks:")]),t._v(" "+t._s(t.status.bricks))]),t._v(" "),n("div",{staticClass:"stat"},[n("b",[t._v("Players:")]),t._v(" "+t._s(t.status.players.length))])]),t._v(" "),n("table",{staticClass:"br-table"},[n("thead",[n("tr",[n("th",{staticStyle:{"text-align":"left",width:"100%"}},[t._v("Name")]),t._v(" "),n("th",[t._v("Time")]),t._v(" "),n("th",[t._v("Ping")])])]),t._v(" "),n("tbody",t._l(t.status.players,(function(e,r){return n("tr",{key:r},[n("td",[n("router-link",{staticClass:"user",attrs:{to:"/players/"+e.id}},[t._v("\n "+t._s(e.name)+"\n ")])],1),t._v(" "),n("td",{staticStyle:{"text-align":"right"}},[t._v(t._s(t.duration(e.time)))]),t._v(" "),n("td",{staticStyle:{"text-align":"right"}},[t._v(t._s(e.ping))])])})),0)])])]):t._e(),t._v(" "),n("br-loader",{attrs:{active:!t.status.players,blur:"",size:"huge"}},[t._v("Loading Status")])],1)};St._withStripped=!0;const At=t.default.component("br-status-widget",{sockets:{"server.status":function(t){this.status=t||{},this.updated=Date.now()},connect(){this.getStatus()}},beforeDestroy(){this.$$emit("unsubscribe","status")},methods:{getStatus(){this.$$emit("subscribe","status"),this.$$request("server.status").then((t=>{this.status=t||{},this.updated=Date.now()}))}},created(){this.getStatus()},data:()=>({status:{},updated:0})});n(3076);var Et=i(At,St,[],!1,null,"2f499e8e",null);Et.options.__file="src/webserver/frontend/widgets/Status.vue",Et.exports;var Ot=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"main-nav"},[n("header",{staticClass:"nav-header"},[t._v(t._s(t.title))]),t._v(" "),n("br-navbar",[n("span",{staticStyle:{flex:"1","margin-left":"8px"}},[t._v("\n Welcome, "+t._s(t.username||t.user.username)+"\n ")]),t._v(" "),t._t("default"),t._v(" "),t.showLogout?n("br-button",{attrs:{icon:"",error:"","data-tooltip":"Logout of Web UI"},on:{click:function(e){return t.logout()}}},[n("LogoutIcon")],1):t._e()],2)],1)};Ot._withStripped=!0;const Tt={name:"LogoutIcon",props:{size:{type:String,default:"24"}},functional:!0,render(t,e){const n=parseInt(e.props.size)+"px",r=e.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,e.data.attrs=r,t("svg",k()([{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},class:"icon icon-tabler icon-tabler-logout"},e.data]),[" ",t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}})," ",t("path",{attrs:{d:"M14 8v-2a2 2 0 0 0 -2 -2h-7a2 2 0 0 0 -2 2v12a2 2 0 0 0 2 2h7a2 2 0 0 0 2 -2v-2"}})," ",t("path",{attrs:{d:"M7 12h14l-3 -3m0 6l3 -3"}})," "])}},Pt=t.default.component("nav-header",{components:{LogoutIcon:Tt},props:["title"],sockets:{data({user:t}){this.username=t.username}},data:()=>({username:""})});n(3);var It=i(Pt,Ot,[],!1,null,"7c61f162",null);It.options.__file="src/webserver/frontend/partials/NavHeader.vue",It.exports;var Rt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"main-menu-buttons"},[n("br-menu-button",{attrs:{disabled:!1,route:"",name:"home","data-tooltip":"Chat with players, view server status. Main Dashboard"}},[n("DashboardIcon",{staticStyle:{background:"#de4f43"}}),t._v("\n Dashboard\n ")],1),t._v(" "),n("br-menu-button",{attrs:{disabled:!1,route:"history","data-tooltip":"Browse chat history"}},[n("MessagesIcon",{staticStyle:{background:"#008bd6"}}),t._v("\n History\n ")],1),t._v(" "),n("br-menu-button",{attrs:{disabled:!1,route:"plugins","data-tooltip":"Manage, reload, and configure plugins"}},[n("PlugIcon",{staticStyle:{background:"#00b35f"}}),t._v("\n Plugins\n ")],1),t._v(" "),n("br-menu-button",{attrs:{disabled:!1,route:"players","data-tooltip":"Browse player info and play time"}},[n("ListIcon",{staticStyle:{background:"#b3006b"}}),t._v("\n Players\n ")],1),t._v(" "),n("br-menu-button",{attrs:{disabled:!0,route:"metrics","data-tooltip":"View statistics and metrics for the server"}},[n("ChartLineIcon",{staticStyle:{background:"#00b0bd"}}),t._v("\n Metrics\n ")],1),t._v(" "),n("br-menu-button",{attrs:{disabled:!0,route:"saves","data-tooltip":"Browse, create, load, and clear saves"}},[n("DeviceFloppyIcon",{staticStyle:{background:"#1ed4d1"}}),t._v("\n Saves\n ")],1),t._v(" "),n("br-menu-button",{attrs:{disabled:!0,route:"settings","data-tooltip":"Server management settings and roles"}},[n("AdjustmentsAltIcon",{staticStyle:{background:"#c4bb02"}}),t._v("\n Settings\n ")],1),t._v(" "),n("br-menu-button",{attrs:{disabled:!1,route:"server","data-tooltip":"Server management"}},[n("ServerIcon",{staticStyle:{background:"#453d9c"}}),t._v("\n Server\n ")],1),t._v(" "),n("br-menu-button",{attrs:{disabled:!1,route:"users","data-tooltip":"Server users"}},[n("UsersIcon",{staticStyle:{background:"#7f0b8a"}}),t._v("\n Users\n ")],1)],1)};Rt._withStripped=!0;const Mt={name:"DashboardIcon",props:{size:{type:String,default:"24"}},functional:!0,render(t,e){const n=parseInt(e.props.size)+"px",r=e.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,e.data.attrs=r,t("svg",k()([{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},class:"icon icon-tabler icon-tabler-dashboard"},e.data]),[" ",t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}})," ",t("circle",{attrs:{cx:"12",cy:"13",r:"2"}})," ",t("line",{attrs:{x1:"13.45",y1:"11.55",x2:"15.5",y2:"9.5"}})," ",t("path",{attrs:{d:"M6.4 20a9 9 0 1 1 11.2 0z"}})," "])}},Nt={name:"MessagesIcon",props:{size:{type:String,default:"24"}},functional:!0,render(t,e){const n=parseInt(e.props.size)+"px",r=e.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,e.data.attrs=r,t("svg",k()([{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},class:"icon icon-tabler icon-tabler-messages"},e.data]),[" ",t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}})," ",t("path",{attrs:{d:"M21 14l-3 -3h-7a1 1 0 0 1 -1 -1v-6a1 1 0 0 1 1 -1h9a1 1 0 0 1 1 1v10"}})," ",t("path",{attrs:{d:"M14 15v2a1 1 0 0 1 -1 1h-7l-3 3v-10a1 1 0 0 1 1 -1h2"}})," "])}},Dt={name:"PlugIcon",props:{size:{type:String,default:"24"}},functional:!0,render(t,e){const n=parseInt(e.props.size)+"px",r=e.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,e.data.attrs=r,t("svg",k()([{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},class:"icon icon-tabler icon-tabler-plug"},e.data]),[" ",t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}})," ",t("path",{attrs:{d:"M7 7h10v6a3 3 0 0 1 -3 3h-4a3 3 0 0 1 -3 -3v-6"}})," ",t("line",{attrs:{x1:"9",y1:"3",x2:"9",y2:"7"}})," ",t("line",{attrs:{x1:"15",y1:"3",x2:"15",y2:"7"}})," ",t("path",{attrs:{d:"M12 16v2a2 2 0 0 0 2 2h3"}})," "])}},jt={name:"ListIcon",props:{size:{type:String,default:"24"}},functional:!0,render(t,e){const n=parseInt(e.props.size)+"px",r=e.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,e.data.attrs=r,t("svg",k()([{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},class:"icon icon-tabler icon-tabler-list"},e.data]),[" ",t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}})," ",t("line",{attrs:{x1:"9",y1:"6",x2:"20",y2:"6"}})," ",t("line",{attrs:{x1:"9",y1:"12",x2:"20",y2:"12"}})," ",t("line",{attrs:{x1:"9",y1:"18",x2:"20",y2:"18"}})," ",t("line",{attrs:{x1:"5",y1:"6",x2:"5",y2:"6.01"}})," ",t("line",{attrs:{x1:"5",y1:"12",x2:"5",y2:"12.01"}})," ",t("line",{attrs:{x1:"5",y1:"18",x2:"5",y2:"18.01"}})," "])}},Lt={name:"UsersIcon",props:{size:{type:String,default:"24"}},functional:!0,render(t,e){const n=parseInt(e.props.size)+"px",r=e.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,e.data.attrs=r,t("svg",k()([{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},class:"icon icon-tabler icon-tabler-users"},e.data]),[" ",t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}})," ",t("circle",{attrs:{cx:"9",cy:"7",r:"4"}})," ",t("path",{attrs:{d:"M3 21v-2a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v2"}})," ",t("path",{attrs:{d:"M16 3.13a4 4 0 0 1 0 7.75"}})," ",t("path",{attrs:{d:"M21 21v-2a4 4 0 0 0 -3 -3.85"}})," "])}},zt={name:"ChartLineIcon",props:{size:{type:String,default:"24"}},functional:!0,render(t,e){const n=parseInt(e.props.size)+"px",r=e.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,e.data.attrs=r,t("svg",k()([{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},class:"icon icon-tabler icon-tabler-chart-line"},e.data]),[" ",t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}})," ",t("line",{attrs:{x1:"4",y1:"19",x2:"20",y2:"19"}})," ",t("polyline",{attrs:{points:"4 15 8 9 12 11 16 6 20 10"}})," "])}},$t={name:"DeviceFloppyIcon",props:{size:{type:String,default:"24"}},functional:!0,render(t,e){const n=parseInt(e.props.size)+"px",r=e.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,e.data.attrs=r,t("svg",k()([{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},class:"icon icon-tabler icon-tabler-device-floppy"},e.data]),[" ",t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}})," ",t("path",{attrs:{d:"M6 4h10l4 4v10a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2v-12a2 2 0 0 1 2 -2"}})," ",t("circle",{attrs:{cx:"12",cy:"14",r:"2"}})," ",t("polyline",{attrs:{points:"14 4 14 8 8 8 8 4"}})," "])}},Bt={name:"AdjustmentsAltIcon",props:{size:{type:String,default:"24"}},functional:!0,render(t,e){const n=parseInt(e.props.size)+"px",r=e.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,e.data.attrs=r,t("svg",k()([{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},class:"icon icon-tabler icon-tabler-adjustments-alt"},e.data]),[" ",t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}})," ",t("rect",{attrs:{x:"4",y:"8",width:"4",height:"4"}})," ",t("line",{attrs:{x1:"6",y1:"4",x2:"6",y2:"8"}})," ",t("line",{attrs:{x1:"6",y1:"12",x2:"6",y2:"20"}})," ",t("rect",{attrs:{x:"10",y:"14",width:"4",height:"4"}})," ",t("line",{attrs:{x1:"12",y1:"4",x2:"12",y2:"14"}})," ",t("line",{attrs:{x1:"12",y1:"18",x2:"12",y2:"20"}})," ",t("rect",{attrs:{x:"16",y:"5",width:"4",height:"4"}})," ",t("line",{attrs:{x1:"18",y1:"4",x2:"18",y2:"5"}})," ",t("line",{attrs:{x1:"18",y1:"9",x2:"18",y2:"20"}})," "])}},Ht={name:"ServerIcon",props:{size:{type:String,default:"24"}},functional:!0,render(t,e){const n=parseInt(e.props.size)+"px",r=e.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,e.data.attrs=r,t("svg",k()([{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},class:"icon icon-tabler icon-tabler-server"},e.data]),[" ",t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}})," ",t("rect",{attrs:{x:"3",y:"4",width:"18",height:"8",rx:"3"}})," ",t("rect",{attrs:{x:"3",y:"12",width:"18",height:"8",rx:"3"}})," ",t("line",{attrs:{x1:"7",y1:"8",x2:"7",y2:"8.01"}})," ",t("line",{attrs:{x1:"7",y1:"16",x2:"7",y2:"16.01"}})," "])}},Ut=t.default.component("side-nav",{components:{DashboardIcon:Mt,MessagesIcon:Nt,PlugIcon:Dt,UsersIcon:Lt,ChartLineIcon:zt,DeviceFloppyIcon:$t,AdjustmentsAltIcon:Bt,ServerIcon:Ht,ListIcon:jt},props:["active"]});n(3175);var Ft=i(Ut,Rt,[],!1,null,"25e2546a",null);Ft.options.__file="src/webserver/frontend/partials/SideNav.vue",Ft.exports;var qt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("br-background"),t._v(" "),n("div",{staticClass:"content-parent"},[t.loading?t._e():n("div",{staticClass:"content"},[t._t("default")],2)])],1)};qt._withStripped=!0;const Wt=t.default.component("page",{props:["loading"]});n(4184);var Vt=i(Wt,qt,[],!1,null,"0b19ce20",null);Vt.options.__file="src/webserver/frontend/partials/Page.vue",Vt.exports;var Yt=function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{staticClass:"main-content"},[t._t("default")],2)};Yt._withStripped=!0;const Xt=t.default.component("page-content",{props:[]});n(4052);var Jt=i(Xt,Yt,[],!1,null,"571f05e9",null);Jt.options.__file="src/webserver/frontend/partials/PageContent.vue",Jt.exports;var Gt=function(){var t=this.$createElement;return(this._self._c||t)("router-view")};function Kt(t,e){for(var n in e)t[n]=e[n];return t}Gt._withStripped=!0;var Zt=/[!'()*]/g,Qt=function(t){return"%"+t.charCodeAt(0).toString(16)},te=/%2C/g,ee=function(t){return encodeURIComponent(t).replace(Zt,Qt).replace(te,",")};function ne(t){try{return decodeURIComponent(t)}catch(t){}return t}var re=function(t){return null==t||"object"==typeof t?t:String(t)};function ie(t){var e={};return(t=t.trim().replace(/^(\?|#|&)/,""))?(t.split("&").forEach((function(t){var n=t.replace(/\+/g," ").split("="),r=ne(n.shift()),i=n.length>0?ne(n.join("=")):null;void 0===e[r]?e[r]=i:Array.isArray(e[r])?e[r].push(i):e[r]=[e[r],i]})),e):e}function oe(t){var e=t?Object.keys(t).map((function(e){var n=t[e];if(void 0===n)return"";if(null===n)return ee(e);if(Array.isArray(n)){var r=[];return n.forEach((function(t){void 0!==t&&(null===t?r.push(ee(e)):r.push(ee(e)+"="+ee(t)))})),r.join("&")}return ee(e)+"="+ee(n)})).filter((function(t){return t.length>0})).join("&"):null;return e?"?"+e:""}var se=/\/?$/;function ae(t,e,n,r){var i=r&&r.options.stringifyQuery,o=e.query||{};try{o=ce(o)}catch(t){}var s={name:e.name||t&&t.name,meta:t&&t.meta||{},path:e.path||"/",hash:e.hash||"",query:o,params:e.params||{},fullPath:he(e,i),matched:t?ue(t):[]};return n&&(s.redirectedFrom=he(n,i)),Object.freeze(s)}function ce(t){if(Array.isArray(t))return t.map(ce);if(t&&"object"==typeof t){var e={};for(var n in t)e[n]=ce(t[n]);return e}return t}var le=ae(null,{path:"/"});function ue(t){for(var e=[];t;)e.unshift(t),t=t.parent;return e}function he(t,e){var n=t.path,r=t.query;void 0===r&&(r={});var i=t.hash;return void 0===i&&(i=""),(n||"/")+(e||oe)(r)+i}function pe(t,e,n){return e===le?t===e:!!e&&(t.path&&e.path?t.path.replace(se,"")===e.path.replace(se,"")&&(n||t.hash===e.hash&&de(t.query,e.query)):!(!t.name||!e.name)&&t.name===e.name&&(n||t.hash===e.hash&&de(t.query,e.query)&&de(t.params,e.params)))}function de(t,e){if(void 0===t&&(t={}),void 0===e&&(e={}),!t||!e)return t===e;var n=Object.keys(t).sort(),r=Object.keys(e).sort();return n.length===r.length&&n.every((function(n,i){var o=t[n];if(r[i]!==n)return!1;var s=e[n];return null==o||null==s?o===s:"object"==typeof o&&"object"==typeof s?de(o,s):String(o)===String(s)}))}function fe(t){for(var e=0;e<t.matched.length;e++){var n=t.matched[e];for(var r in n.instances){var i=n.instances[r],o=n.enteredCbs[r];if(i&&o){delete n.enteredCbs[r];for(var s=0;s<o.length;s++)i._isBeingDestroyed||o[s](i)}}}}var ge={name:"RouterView",functional:!0,props:{name:{type:String,default:"default"}},render:function(t,e){var n=e.props,r=e.children,i=e.parent,o=e.data;o.routerView=!0;for(var s=i.$createElement,a=n.name,c=i.$route,l=i._routerViewCache||(i._routerViewCache={}),u=0,h=!1;i&&i._routerRoot!==i;){var p=i.$vnode?i.$vnode.data:{};p.routerView&&u++,p.keepAlive&&i._directInactive&&i._inactive&&(h=!0),i=i.$parent}if(o.routerViewDepth=u,h){var d=l[a],f=d&&d.component;return f?(d.configProps&&ve(f,o,d.route,d.configProps),s(f,o,r)):s()}var g=c.matched[u],v=g&&g.components[a];if(!g||!v)return l[a]=null,s();l[a]={component:v},o.registerRouteInstance=function(t,e){var n=g.instances[a];(e&&n!==t||!e&&n===t)&&(g.instances[a]=e)},(o.hook||(o.hook={})).prepatch=function(t,e){g.instances[a]=e.componentInstance},o.hook.init=function(t){t.data.keepAlive&&t.componentInstance&&t.componentInstance!==g.instances[a]&&(g.instances[a]=t.componentInstance),fe(c)};var m=g.props&&g.props[a];return m&&(Kt(l[a],{route:c,configProps:m}),ve(v,o,c,m)),s(v,o,r)}};function ve(t,e,n,r){var i=e.props=function(t,e){switch(typeof e){case"undefined":return;case"object":return e;case"function":return e(t);case"boolean":return e?t.params:void 0}}(n,r);if(i){i=e.props=Kt({},i);var o=e.attrs=e.attrs||{};for(var s in i)t.props&&s in t.props||(o[s]=i[s],delete i[s])}}function me(t,e,n){var r=t.charAt(0);if("/"===r)return t;if("?"===r||"#"===r)return e+t;var i=e.split("/");n&&i[i.length-1]||i.pop();for(var o=t.replace(/^\//,"").split("/"),s=0;s<o.length;s++){var a=o[s];".."===a?i.pop():"."!==a&&i.push(a)}return""!==i[0]&&i.unshift(""),i.join("/")}function ye(t){return t.replace(/\/\//g,"/")}var be=Array.isArray||function(t){return"[object Array]"==Object.prototype.toString.call(t)},we=function t(e,n,r){return be(n)||(r=n||r,n=[]),r=r||{},e instanceof RegExp?function(t,e){var n=t.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)e.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return Pe(t,e)}(e,n):be(e)?function(e,n,r){for(var i=[],o=0;o<e.length;o++)i.push(t(e[o],n,r).source);return Pe(new RegExp("(?:"+i.join("|")+")",Ie(r)),n)}(e,n,r):function(t,e,n){return Re(Se(t,n),e,n)}(e,n,r)},xe=Se,_e=Ee,ke=Re,Ce=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function Se(t,e){for(var n,r=[],i=0,o=0,s="",a=e&&e.delimiter||"/";null!=(n=Ce.exec(t));){var c=n[0],l=n[1],u=n.index;if(s+=t.slice(o,u),o=u+c.length,l)s+=l[1];else{var h=t[o],p=n[2],d=n[3],f=n[4],g=n[5],v=n[6],m=n[7];s&&(r.push(s),s="");var y=null!=p&&null!=h&&h!==p,b="+"===v||"*"===v,w="?"===v||"*"===v,x=n[2]||a,_=f||g;r.push({name:d||i++,prefix:p||"",delimiter:x,optional:w,repeat:b,partial:y,asterisk:!!m,pattern:_?Te(_):m?".*":"[^"+Oe(x)+"]+?"})}}return o<t.length&&(s+=t.substr(o)),s&&r.push(s),r}function Ae(t){return encodeURI(t).replace(/[\/?#]/g,(function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()}))}function Ee(t,e){for(var n=new Array(t.length),r=0;r<t.length;r++)"object"==typeof t[r]&&(n[r]=new RegExp("^(?:"+t[r].pattern+")$",Ie(e)));return function(e,r){for(var i="",o=e||{},s=(r||{}).pretty?Ae:encodeURIComponent,a=0;a<t.length;a++){var c=t[a];if("string"!=typeof c){var l,u=o[c.name];if(null==u){if(c.optional){c.partial&&(i+=c.prefix);continue}throw new TypeError('Expected "'+c.name+'" to be defined')}if(be(u)){if(!c.repeat)throw new TypeError('Expected "'+c.name+'" to not repeat, but received `'+JSON.stringify(u)+"`");if(0===u.length){if(c.optional)continue;throw new TypeError('Expected "'+c.name+'" to not be empty')}for(var h=0;h<u.length;h++){if(l=s(u[h]),!n[a].test(l))throw new TypeError('Expected all "'+c.name+'" to match "'+c.pattern+'", but received `'+JSON.stringify(l)+"`");i+=(0===h?c.prefix:c.delimiter)+l}}else{if(l=c.asterisk?encodeURI(u).replace(/[?#]/g,(function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})):s(u),!n[a].test(l))throw new TypeError('Expected "'+c.name+'" to match "'+c.pattern+'", but received "'+l+'"');i+=c.prefix+l}}else i+=c}return i}}function Oe(t){return t.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function Te(t){return t.replace(/([=!:$\/()])/g,"\\$1")}function Pe(t,e){return t.keys=e,t}function Ie(t){return t&&t.sensitive?"":"i"}function Re(t,e,n){be(e)||(n=e||n,e=[]);for(var r=(n=n||{}).strict,i=!1!==n.end,o="",s=0;s<t.length;s++){var a=t[s];if("string"==typeof a)o+=Oe(a);else{var c=Oe(a.prefix),l="(?:"+a.pattern+")";e.push(a),a.repeat&&(l+="(?:"+c+l+")*"),o+=l=a.optional?a.partial?c+"("+l+")?":"(?:"+c+"("+l+"))?":c+"("+l+")"}}var u=Oe(n.delimiter||"/"),h=o.slice(-u.length)===u;return r||(o=(h?o.slice(0,-u.length):o)+"(?:"+u+"(?=$))?"),o+=i?"$":r&&h?"":"(?="+u+"|$)",Pe(new RegExp("^"+o,Ie(n)),e)}we.parse=xe,we.compile=function(t,e){return Ee(Se(t,e),e)},we.tokensToFunction=_e,we.tokensToRegExp=ke;var Me=Object.create(null);function Ne(t,e,n){e=e||{};try{var r=Me[t]||(Me[t]=we.compile(t));return"string"==typeof e.pathMatch&&(e[0]=e.pathMatch),r(e,{pretty:!0})}catch(t){return""}finally{delete e[0]}}function De(t,e,n,r){var i="string"==typeof t?{path:t}:t;if(i._normalized)return i;if(i.name){var o=(i=Kt({},t)).params;return o&&"object"==typeof o&&(i.params=Kt({},o)),i}if(!i.path&&i.params&&e){(i=Kt({},i))._normalized=!0;var s=Kt(Kt({},e.params),i.params);if(e.name)i.name=e.name,i.params=s;else if(e.matched.length){var a=e.matched[e.matched.length-1].path;i.path=Ne(a,s,e.path)}return i}var c=function(t){var e="",n="",r=t.indexOf("#");r>=0&&(e=t.slice(r),t=t.slice(0,r));var i=t.indexOf("?");return i>=0&&(n=t.slice(i+1),t=t.slice(0,i)),{path:t,query:n,hash:e}}(i.path||""),l=e&&e.path||"/",u=c.path?me(c.path,l,n||i.append):l,h=function(t,e,n){void 0===e&&(e={});var r,i=n||ie;try{r=i(t||"")}catch(t){r={}}for(var o in e){var s=e[o];r[o]=Array.isArray(s)?s.map(re):re(s)}return r}(c.query,i.query,r&&r.options.parseQuery),p=i.hash||c.hash;return p&&"#"!==p.charAt(0)&&(p="#"+p),{_normalized:!0,path:u,query:h,hash:p}}var je,Le=function(){},ze={name:"RouterLink",props:{to:{type:[String,Object],required:!0},tag:{type:String,default:"a"},custom:Boolean,exact:Boolean,exactPath:Boolean,append:Boolean,replace:Boolean,activeClass:String,exactActiveClass:String,ariaCurrentValue:{type:String,default:"page"},event:{type:[String,Array],default:"click"}},render:function(t){var e=this,n=this.$router,r=this.$route,i=n.resolve(this.to,r,this.append),o=i.location,s=i.route,a=i.href,c={},l=n.options.linkActiveClass,u=n.options.linkExactActiveClass,h=null==l?"router-link-active":l,p=null==u?"router-link-exact-active":u,d=null==this.activeClass?h:this.activeClass,f=null==this.exactActiveClass?p:this.exactActiveClass,g=s.redirectedFrom?ae(null,De(s.redirectedFrom),null,n):s;c[f]=pe(r,g,this.exactPath),c[d]=this.exact||this.exactPath?c[f]:function(t,e){return 0===t.path.replace(se,"/").indexOf(e.path.replace(se,"/"))&&(!e.hash||t.hash===e.hash)&&function(t,e){for(var n in e)if(!(n in t))return!1;return!0}(t.query,e.query)}(r,g);var v=c[f]?this.ariaCurrentValue:null,m=function(t){$e(t)&&(e.replace?n.replace(o,Le):n.push(o,Le))},y={click:$e};Array.isArray(this.event)?this.event.forEach((function(t){y[t]=m})):y[this.event]=m;var b={class:c},w=!this.$scopedSlots.$hasNormal&&this.$scopedSlots.default&&this.$scopedSlots.default({href:a,route:s,navigate:m,isActive:c[d],isExactActive:c[f]});if(w){if(1===w.length)return w[0];if(w.length>1||!w.length)return 0===w.length?t():t("span",{},w)}if("a"===this.tag)b.on=y,b.attrs={href:a,"aria-current":v};else{var x=Be(this.$slots.default);if(x){x.isStatic=!1;var _=x.data=Kt({},x.data);for(var k in _.on=_.on||{},_.on){var C=_.on[k];k in y&&(_.on[k]=Array.isArray(C)?C:[C])}for(var S in y)S in _.on?_.on[S].push(y[S]):_.on[S]=m;var A=x.data.attrs=Kt({},x.data.attrs);A.href=a,A["aria-current"]=v}else b.on=y}return t(this.tag,b,this.$slots.default)}};function $e(t){if(!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey||t.defaultPrevented||void 0!==t.button&&0!==t.button)){if(t.currentTarget&&t.currentTarget.getAttribute){var e=t.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(e))return}return t.preventDefault&&t.preventDefault(),!0}}function Be(t){if(t)for(var e,n=0;n<t.length;n++){if("a"===(e=t[n]).tag)return e;if(e.children&&(e=Be(e.children)))return e}}var He="undefined"!=typeof window;function Ue(t,e,n,r,i){var o=e||[],s=n||Object.create(null),a=r||Object.create(null);t.forEach((function(t){Fe(o,s,a,t,i)}));for(var c=0,l=o.length;c<l;c++)"*"===o[c]&&(o.push(o.splice(c,1)[0]),l--,c--);return{pathList:o,pathMap:s,nameMap:a}}function Fe(t,e,n,r,i,o){var s=r.path,a=r.name,c=r.pathToRegexpOptions||{},l=function(t,e,n){return n||(t=t.replace(/\/$/,"")),"/"===t[0]||null==e?t:ye(e.path+"/"+t)}(s,i,c.strict);"boolean"==typeof r.caseSensitive&&(c.sensitive=r.caseSensitive);var u={path:l,regex:qe(l,c),components:r.components||{default:r.component},alias:r.alias?"string"==typeof r.alias?[r.alias]:r.alias:[],instances:{},enteredCbs:{},name:a,parent:i,matchAs:o,redirect:r.redirect,beforeEnter:r.beforeEnter,meta:r.meta||{},props:null==r.props?{}:r.components?r.props:{default:r.props}};if(r.children&&r.children.forEach((function(r){var i=o?ye(o+"/"+r.path):void 0;Fe(t,e,n,r,u,i)})),e[u.path]||(t.push(u.path),e[u.path]=u),void 0!==r.alias)for(var h=Array.isArray(r.alias)?r.alias:[r.alias],p=0;p<h.length;++p){var d={path:h[p],children:r.children};Fe(t,e,n,d,i,u.path||"/")}a&&(n[a]||(n[a]=u))}function qe(t,e){return we(t,[],e)}function We(t,e){var n=Ue(t),r=n.pathList,i=n.pathMap,o=n.nameMap;function s(t,n,s){var c=De(t,n,!1,e),l=c.name;if(l){var u=o[l];if(!u)return a(null,c);var h=u.regex.keys.filter((function(t){return!t.optional})).map((function(t){return t.name}));if("object"!=typeof c.params&&(c.params={}),n&&"object"==typeof n.params)for(var p in n.params)!(p in c.params)&&h.indexOf(p)>-1&&(c.params[p]=n.params[p]);return c.path=Ne(u.path,c.params),a(u,c,s)}if(c.path){c.params={};for(var d=0;d<r.length;d++){var f=r[d],g=i[f];if(Ve(g.regex,c.path,c.params))return a(g,c,s)}}return a(null,c)}function a(t,n,r){return t&&t.redirect?function(t,n){var r=t.redirect,i="function"==typeof r?r(ae(t,n,null,e)):r;if("string"==typeof i&&(i={path:i}),!i||"object"!=typeof i)return a(null,n);var c=i,l=c.name,u=c.path,h=n.query,p=n.hash,d=n.params;if(h=c.hasOwnProperty("query")?c.query:h,p=c.hasOwnProperty("hash")?c.hash:p,d=c.hasOwnProperty("params")?c.params:d,l)return o[l],s({_normalized:!0,name:l,query:h,hash:p,params:d},void 0,n);if(u){var f=function(t,e){return me(t,e.parent?e.parent.path:"/",!0)}(u,t);return s({_normalized:!0,path:Ne(f,d),query:h,hash:p},void 0,n)}return a(null,n)}(t,r||n):t&&t.matchAs?function(t,e,n){var r=s({_normalized:!0,path:Ne(n,e.params)});if(r){var i=r.matched,o=i[i.length-1];return e.params=r.params,a(o,e)}return a(null,e)}(0,n,t.matchAs):ae(t,n,r,e)}return{match:s,addRoute:function(t,e){var n="object"!=typeof t?o[t]:void 0;Ue([e||t],r,i,o,n),n&&n.alias.length&&Ue(n.alias.map((function(t){return{path:t,children:[e]}})),r,i,o,n)},getRoutes:function(){return r.map((function(t){return i[t]}))},addRoutes:function(t){Ue(t,r,i,o)}}}function Ve(t,e,n){var r=e.match(t);if(!r)return!1;if(!n)return!0;for(var i=1,o=r.length;i<o;++i){var s=t.keys[i-1];s&&(n[s.name||"pathMatch"]="string"==typeof r[i]?ne(r[i]):r[i])}return!0}var Ye=He&&window.performance&&window.performance.now?window.performance:Date;function Xe(){return Ye.now().toFixed(3)}var Je=Xe();function Ge(){return Je}function Ke(t){return Je=t}var Ze=Object.create(null);function Qe(){"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual");var t=window.location.protocol+"//"+window.location.host,e=window.location.href.replace(t,""),n=Kt({},window.history.state);return n.key=Ge(),window.history.replaceState(n,"",e),window.addEventListener("popstate",nn),function(){window.removeEventListener("popstate",nn)}}function tn(t,e,n,r){if(t.app){var i=t.options.scrollBehavior;i&&t.app.$nextTick((function(){var o=function(){var t=Ge();if(t)return Ze[t]}(),s=i.call(t,e,n,r?o:null);s&&("function"==typeof s.then?s.then((function(t){cn(t,o)})).catch((function(t){})):cn(s,o))}))}}function en(){var t=Ge();t&&(Ze[t]={x:window.pageXOffset,y:window.pageYOffset})}function nn(t){en(),t.state&&t.state.key&&Ke(t.state.key)}function rn(t){return sn(t.x)||sn(t.y)}function on(t){return{x:sn(t.x)?t.x:window.pageXOffset,y:sn(t.y)?t.y:window.pageYOffset}}function sn(t){return"number"==typeof t}var an=/^#\d/;function cn(t,e){var n,r="object"==typeof t;if(r&&"string"==typeof t.selector){var i=an.test(t.selector)?document.getElementById(t.selector.slice(1)):document.querySelector(t.selector);if(i){var o=t.offset&&"object"==typeof t.offset?t.offset:{};e=function(t,e){var n=document.documentElement.getBoundingClientRect(),r=t.getBoundingClientRect();return{x:r.left-n.left-e.x,y:r.top-n.top-e.y}}(i,o={x:sn((n=o).x)?n.x:0,y:sn(n.y)?n.y:0})}else rn(t)&&(e=on(t))}else r&&rn(t)&&(e=on(t));e&&("scrollBehavior"in document.documentElement.style?window.scrollTo({left:e.x,top:e.y,behavior:t.behavior}):window.scrollTo(e.x,e.y))}var ln,un=He&&(-1===(ln=window.navigator.userAgent).indexOf("Android 2.")&&-1===ln.indexOf("Android 4.0")||-1===ln.indexOf("Mobile Safari")||-1!==ln.indexOf("Chrome")||-1!==ln.indexOf("Windows Phone"))&&window.history&&"function"==typeof window.history.pushState;function hn(t,e){en();var n=window.history;try{if(e){var r=Kt({},n.state);r.key=Ge(),n.replaceState(r,"",t)}else n.pushState({key:Ke(Xe())},"",t)}catch(n){window.location[e?"replace":"assign"](t)}}function pn(t){hn(t,!0)}function dn(t,e,n){var r=function(i){i>=t.length?n():t[i]?e(t[i],(function(){r(i+1)})):r(i+1)};r(0)}var fn={redirected:2,aborted:4,cancelled:8,duplicated:16};function gn(t,e){return vn(t,e,fn.cancelled,'Navigation cancelled from "'+t.fullPath+'" to "'+e.fullPath+'" with a new navigation.')}function vn(t,e,n,r){var i=new Error(r);return i._isRouter=!0,i.from=t,i.to=e,i.type=n,i}var mn=["params","query","hash"];function yn(t){return Object.prototype.toString.call(t).indexOf("Error")>-1}function bn(t,e){return yn(t)&&t._isRouter&&(null==e||t.type===e)}function wn(t,e){return xn(t.map((function(t){return Object.keys(t.components).map((function(n){return e(t.components[n],t.instances[n],t,n)}))})))}function xn(t){return Array.prototype.concat.apply([],t)}var _n="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;function kn(t){var e=!1;return function(){for(var n=[],r=arguments.length;r--;)n[r]=arguments[r];if(!e)return e=!0,t.apply(this,n)}}var Cn=function(t,e){this.router=t,this.base=function(t){if(!t)if(He){var e=document.querySelector("base");t=(t=e&&e.getAttribute("href")||"/").replace(/^https?:\/\/[^\/]+/,"")}else t="/";return"/"!==t.charAt(0)&&(t="/"+t),t.replace(/\/$/,"")}(e),this.current=le,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[],this.listeners=[]};function Sn(t,e,n,r){var i=wn(t,(function(t,r,i,o){var s=function(t,e){return"function"!=typeof t&&(t=je.extend(t)),t.options[e]}(t,e);if(s)return Array.isArray(s)?s.map((function(t){return n(t,r,i,o)})):n(s,r,i,o)}));return xn(r?i.reverse():i)}function An(t,e){if(e)return function(){return t.apply(e,arguments)}}Cn.prototype.listen=function(t){this.cb=t},Cn.prototype.onReady=function(t,e){this.ready?t():(this.readyCbs.push(t),e&&this.readyErrorCbs.push(e))},Cn.prototype.onError=function(t){this.errorCbs.push(t)},Cn.prototype.transitionTo=function(t,e,n){var r,i=this;try{r=this.router.match(t,this.current)}catch(t){throw this.errorCbs.forEach((function(e){e(t)})),t}var o=this.current;this.confirmTransition(r,(function(){i.updateRoute(r),e&&e(r),i.ensureURL(),i.router.afterHooks.forEach((function(t){t&&t(r,o)})),i.ready||(i.ready=!0,i.readyCbs.forEach((function(t){t(r)})))}),(function(t){n&&n(t),t&&!i.ready&&(bn(t,fn.redirected)&&o===le||(i.ready=!0,i.readyErrorCbs.forEach((function(e){e(t)}))))}))},Cn.prototype.confirmTransition=function(t,e,n){var r=this,i=this.current;this.pending=t;var o,s,a=function(t){!bn(t)&&yn(t)&&(r.errorCbs.length?r.errorCbs.forEach((function(e){e(t)})):console.error(t)),n&&n(t)},c=t.matched.length-1,l=i.matched.length-1;if(pe(t,i)&&c===l&&t.matched[c]===i.matched[l])return this.ensureURL(),a(((s=vn(o=i,t,fn.duplicated,'Avoided redundant navigation to current location: "'+o.fullPath+'".')).name="NavigationDuplicated",s));var u,h=function(t,e){var n,r=Math.max(t.length,e.length);for(n=0;n<r&&t[n]===e[n];n++);return{updated:e.slice(0,n),activated:e.slice(n),deactivated:t.slice(n)}}(this.current.matched,t.matched),p=h.updated,d=h.deactivated,f=h.activated,g=[].concat(function(t){return Sn(t,"beforeRouteLeave",An,!0)}(d),this.router.beforeHooks,function(t){return Sn(t,"beforeRouteUpdate",An)}(p),f.map((function(t){return t.beforeEnter})),(u=f,function(t,e,n){var r=!1,i=0,o=null;wn(u,(function(t,e,s,a){if("function"==typeof t&&void 0===t.cid){r=!0,i++;var c,l=kn((function(e){var r;((r=e).__esModule||_n&&"Module"===r[Symbol.toStringTag])&&(e=e.default),t.resolved="function"==typeof e?e:je.extend(e),s.components[a]=e,--i<=0&&n()})),u=kn((function(t){var e="Failed to resolve async component "+a+": "+t;o||(o=yn(t)?t:new Error(e),n(o))}));try{c=t(l,u)}catch(t){u(t)}if(c)if("function"==typeof c.then)c.then(l,u);else{var h=c.component;h&&"function"==typeof h.then&&h.then(l,u)}}})),r||n()})),v=function(e,n){if(r.pending!==t)return a(gn(i,t));try{e(t,i,(function(e){!1===e?(r.ensureURL(!0),a(function(t,e){return vn(t,e,fn.aborted,'Navigation aborted from "'+t.fullPath+'" to "'+e.fullPath+'" via a navigation guard.')}(i,t))):yn(e)?(r.ensureURL(!0),a(e)):"string"==typeof e||"object"==typeof e&&("string"==typeof e.path||"string"==typeof e.name)?(a(function(t,e){return vn(t,e,fn.redirected,'Redirected when going from "'+t.fullPath+'" to "'+function(t){if("string"==typeof t)return t;if("path"in t)return t.path;var e={};return mn.forEach((function(n){n in t&&(e[n]=t[n])})),JSON.stringify(e,null,2)}(e)+'" via a navigation guard.')}(i,t)),"object"==typeof e&&e.replace?r.replace(e):r.push(e)):n(e)}))}catch(t){a(t)}};dn(g,v,(function(){var n=function(t){return Sn(t,"beforeRouteEnter",(function(t,e,n,r){return function(t,e,n){return function(r,i,o){return t(r,i,(function(t){"function"==typeof t&&(e.enteredCbs[n]||(e.enteredCbs[n]=[]),e.enteredCbs[n].push(t)),o(t)}))}}(t,n,r)}))}(f);dn(n.concat(r.router.resolveHooks),v,(function(){if(r.pending!==t)return a(gn(i,t));r.pending=null,e(t),r.router.app&&r.router.app.$nextTick((function(){fe(t)}))}))}))},Cn.prototype.updateRoute=function(t){this.current=t,this.cb&&this.cb(t)},Cn.prototype.setupListeners=function(){},Cn.prototype.teardown=function(){this.listeners.forEach((function(t){t()})),this.listeners=[],this.current=le,this.pending=null};var En=function(t){function e(e,n){t.call(this,e,n),this._startLocation=On(this.base)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setupListeners=function(){var t=this;if(!(this.listeners.length>0)){var e=this.router,n=e.options.scrollBehavior,r=un&&n;r&&this.listeners.push(Qe());var i=function(){var n=t.current,i=On(t.base);t.current===le&&i===t._startLocation||t.transitionTo(i,(function(t){r&&tn(e,t,n,!0)}))};window.addEventListener("popstate",i),this.listeners.push((function(){window.removeEventListener("popstate",i)}))}},e.prototype.go=function(t){window.history.go(t)},e.prototype.push=function(t,e,n){var r=this,i=this.current;this.transitionTo(t,(function(t){hn(ye(r.base+t.fullPath)),tn(r.router,t,i,!1),e&&e(t)}),n)},e.prototype.replace=function(t,e,n){var r=this,i=this.current;this.transitionTo(t,(function(t){pn(ye(r.base+t.fullPath)),tn(r.router,t,i,!1),e&&e(t)}),n)},e.prototype.ensureURL=function(t){if(On(this.base)!==this.current.fullPath){var e=ye(this.base+this.current.fullPath);t?hn(e):pn(e)}},e.prototype.getCurrentLocation=function(){return On(this.base)},e}(Cn);function On(t){var e=window.location.pathname,n=e.toLowerCase(),r=t.toLowerCase();return!t||n!==r&&0!==n.indexOf(ye(r+"/"))||(e=e.slice(t.length)),(e||"/")+window.location.search+window.location.hash}var Tn=function(t){function e(e,n,r){t.call(this,e,n),r&&function(t){var e=On(t);if(!/^\/#/.test(e))return window.location.replace(ye(t+"/#"+e)),!0}(this.base)||Pn()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setupListeners=function(){var t=this;if(!(this.listeners.length>0)){var e=this.router.options.scrollBehavior,n=un&&e;n&&this.listeners.push(Qe());var r=function(){var e=t.current;Pn()&&t.transitionTo(In(),(function(r){n&&tn(t.router,r,e,!0),un||Nn(r.fullPath)}))},i=un?"popstate":"hashchange";window.addEventListener(i,r),this.listeners.push((function(){window.removeEventListener(i,r)}))}},e.prototype.push=function(t,e,n){var r=this,i=this.current;this.transitionTo(t,(function(t){Mn(t.fullPath),tn(r.router,t,i,!1),e&&e(t)}),n)},e.prototype.replace=function(t,e,n){var r=this,i=this.current;this.transitionTo(t,(function(t){Nn(t.fullPath),tn(r.router,t,i,!1),e&&e(t)}),n)},e.prototype.go=function(t){window.history.go(t)},e.prototype.ensureURL=function(t){var e=this.current.fullPath;In()!==e&&(t?Mn(e):Nn(e))},e.prototype.getCurrentLocation=function(){return In()},e}(Cn);function Pn(){var t=In();return"/"===t.charAt(0)||(Nn("/"+t),!1)}function In(){var t=window.location.href,e=t.indexOf("#");return e<0?"":t=t.slice(e+1)}function Rn(t){var e=window.location.href,n=e.indexOf("#");return(n>=0?e.slice(0,n):e)+"#"+t}function Mn(t){un?hn(Rn(t)):window.location.hash=t}function Nn(t){un?pn(Rn(t)):window.location.replace(Rn(t))}var Dn=function(t){function e(e,n){t.call(this,e,n),this.stack=[],this.index=-1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.push=function(t,e,n){var r=this;this.transitionTo(t,(function(t){r.stack=r.stack.slice(0,r.index+1).concat(t),r.index++,e&&e(t)}),n)},e.prototype.replace=function(t,e,n){var r=this;this.transitionTo(t,(function(t){r.stack=r.stack.slice(0,r.index).concat(t),e&&e(t)}),n)},e.prototype.go=function(t){var e=this,n=this.index+t;if(!(n<0||n>=this.stack.length)){var r=this.stack[n];this.confirmTransition(r,(function(){var t=e.current;e.index=n,e.updateRoute(r),e.router.afterHooks.forEach((function(e){e&&e(r,t)}))}),(function(t){bn(t,fn.duplicated)&&(e.index=n)}))}},e.prototype.getCurrentLocation=function(){var t=this.stack[this.stack.length-1];return t?t.fullPath:"/"},e.prototype.ensureURL=function(){},e}(Cn),jn=function(t){void 0===t&&(t={}),this.app=null,this.apps=[],this.options=t,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=We(t.routes||[],this);var e=t.mode||"hash";switch(this.fallback="history"===e&&!un&&!1!==t.fallback,this.fallback&&(e="hash"),He||(e="abstract"),this.mode=e,e){case"history":this.history=new En(this,t.base);break;case"hash":this.history=new Tn(this,t.base,this.fallback);break;case"abstract":this.history=new Dn(this,t.base)}},Ln={currentRoute:{configurable:!0}};function zn(t,e){return t.push(e),function(){var n=t.indexOf(e);n>-1&&t.splice(n,1)}}jn.prototype.match=function(t,e,n){return this.matcher.match(t,e,n)},Ln.currentRoute.get=function(){return this.history&&this.history.current},jn.prototype.init=function(t){var e=this;if(this.apps.push(t),t.$once("hook:destroyed",(function(){var n=e.apps.indexOf(t);n>-1&&e.apps.splice(n,1),e.app===t&&(e.app=e.apps[0]||null),e.app||e.history.teardown()})),!this.app){this.app=t;var n=this.history;if(n instanceof En||n instanceof Tn){var r=function(t){n.setupListeners(),function(t){var r=n.current,i=e.options.scrollBehavior;un&&i&&"fullPath"in t&&tn(e,t,r,!1)}(t)};n.transitionTo(n.getCurrentLocation(),r,r)}n.listen((function(t){e.apps.forEach((function(e){e._route=t}))}))}},jn.prototype.beforeEach=function(t){return zn(this.beforeHooks,t)},jn.prototype.beforeResolve=function(t){return zn(this.resolveHooks,t)},jn.prototype.afterEach=function(t){return zn(this.afterHooks,t)},jn.prototype.onReady=function(t,e){this.history.onReady(t,e)},jn.prototype.onError=function(t){this.history.onError(t)},jn.prototype.push=function(t,e,n){var r=this;if(!e&&!n&&"undefined"!=typeof Promise)return new Promise((function(e,n){r.history.push(t,e,n)}));this.history.push(t,e,n)},jn.prototype.replace=function(t,e,n){var r=this;if(!e&&!n&&"undefined"!=typeof Promise)return new Promise((function(e,n){r.history.replace(t,e,n)}));this.history.replace(t,e,n)},jn.prototype.go=function(t){this.history.go(t)},jn.prototype.back=function(){this.go(-1)},jn.prototype.forward=function(){this.go(1)},jn.prototype.getMatchedComponents=function(t){var e=t?t.matched?t:this.resolve(t).route:this.currentRoute;return e?[].concat.apply([],e.matched.map((function(t){return Object.keys(t.components).map((function(e){return t.components[e]}))}))):[]},jn.prototype.resolve=function(t,e,n){var r=De(t,e=e||this.history.current,n,this),i=this.match(r,e),o=i.redirectedFrom||i.fullPath,s=function(t,e,n){var r="hash"===n?"#"+e:e;return t?ye(t+"/"+r):r}(this.history.base,o,this.mode);return{location:r,route:i,href:s,normalizedTo:r,resolved:i}},jn.prototype.getRoutes=function(){return this.matcher.getRoutes()},jn.prototype.addRoute=function(t,e){this.matcher.addRoute(t,e),this.history.current!==le&&this.history.transitionTo(this.history.getCurrentLocation())},jn.prototype.addRoutes=function(t){this.matcher.addRoutes(t),this.history.current!==le&&this.history.transitionTo(this.history.getCurrentLocation())},Object.defineProperties(jn.prototype,Ln),jn.install=function t(e){if(!t.installed||je!==e){t.installed=!0,je=e;var n=function(t){return void 0!==t},r=function(t,e){var r=t.$options._parentVnode;n(r)&&n(r=r.data)&&n(r=r.registerRouteInstance)&&r(t,e)};e.mixin({beforeCreate:function(){n(this.$options.router)?(this._routerRoot=this,this._router=this.$options.router,this._router.init(this),e.util.defineReactive(this,"_route",this._router.history.current)):this._routerRoot=this.$parent&&this.$parent._routerRoot||this,r(this,this)},destroyed:function(){r(this)}}),Object.defineProperty(e.prototype,"$router",{get:function(){return this._routerRoot._router}}),Object.defineProperty(e.prototype,"$route",{get:function(){return this._routerRoot._route}}),e.component("RouterView",ge),e.component("RouterLink",ze);var i=e.config.optionMergeStrategies;i.beforeRouteEnter=i.beforeRouteLeave=i.beforeRouteUpdate=i.created}},jn.version="3.5.2",jn.isNavigationFailure=bn,jn.NavigationFailureType=fn,jn.START_LOCATION=le,He&&window.Vue&&window.Vue.use(jn);const $n=jn;var Bn=n(2445),Hn=n.n(Bn),Un=n(4569),Fn=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("page",{attrs:{loading:t.loading}},[n("nav-header",{attrs:{title:"Dashboard"}},[n("div",{staticClass:"widgets-container"},[n("br-button",{attrs:{normal:"",boxy:"","data-tooltip":"Add more widgets to the dashboard"},on:{click:function(e){t.showWidgets=!t.showWidgets}}},[n("AppsIcon"),t._v("\n Widgets\n ")],1),t._v(" "),n("div",{staticClass:"widgets-list",style:{display:t.showWidgets?"block":"none"}},t._l(t.widgetList,(function(e,r){return n("div",{key:r,staticClass:"widget-item"},[n("div",{staticClass:"name",attrs:{"data-tooltip":e.tooltip}},[n(e.icon,{tag:"component"}),t._v("\n "+t._s(r)+"\n ")],1),t._v(" "),t.hasWidget[r]?n("br-button",{attrs:{warn:"",icon:"","data-tooltip":"Remove "+r+" widget"},on:{click:function(e){return t.removeWidget(r)}}},[n("MinusIcon")],1):n("br-button",{attrs:{main:"",icon:"","data-tooltip":"Add "+r+" widget"},on:{click:function(e){return t.addWidget(r)}}},[n("PlusIcon")],1)],1)})),0)],1)]),t._v(" "),n("page-content",[n("side-nav",{attrs:{active:t.$route.name}}),t._v(" "),n("div",{staticClass:"grid-container"},[n("grid-layout",{attrs:{layout:t.layout,colNum:5,"row-height":100,"is-draggable":!0,"is-resizable":!0,"vertical-compact":!1,margin:[8,8],responsive:!0,"use-css-transforms":!0},on:{"layout-updated":t.layoutUpdated}},t._l(t.layout,(function(e){return n("grid-item",{key:e.i,attrs:{x:e.x,y:e.y,w:e.w,h:e.h,i:e.i,minW:2,maxW:10,minH:2,maxH:10,"drag-allow-from":".drag-handle","drag-ignore-from":".no-drag"}},[n("br-header",{staticClass:"drag-handle"},[n("span",{staticStyle:{flex:"1"}},[t._v(t._s(e.i))]),t._v(" "),n("br-button",{staticClass:"no-drag",attrs:{icon:"",error:"","data-tooltip":"Close widget"},on:{click:function(n){return t.removeWidget(e.i)}}},[n("XIcon")],1)],1),t._v(" "),n("div",{staticClass:"drag-contents"},[e.component?n(e.component,{tag:"component"}):t._e()],1),t._v(" "),n("ChevronDownRightIcon",{staticClass:"resize-handle"})],1)})),1)],1)],1)],1)};Fn._withStripped=!0;var qn=n(7502);const Wn={name:"XIcon",props:{size:{type:String,default:"24"}},functional:!0,render(t,e){const n=parseInt(e.props.size)+"px",r=e.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,e.data.attrs=r,t("svg",k()([{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},class:"icon icon-tabler icon-tabler-x"},e.data]),[" ",t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}})," ",t("line",{attrs:{x1:"18",y1:"6",x2:"6",y2:"18"}})," ",t("line",{attrs:{x1:"6",y1:"6",x2:"18",y2:"18"}})," "])}},Vn={created(){},methods:{layoutUpdated(t){localStorage.omeggaDashLayout=JSON.stringify(t)},removeWidget(t){this.layout=this.layout.filter((e=>e.i!==t))},addWidget(t){this.layout.push({x:0,y:0,w:2,h:2,i:t,component:this.widgetList[t].component})}},sockets:{},computed:{hasWidget(){return Object.fromEntries(this.layout.map((t=>[t.i,!0])))}},data(){let t=[{x:0,y:0,w:2,h:2,i:"chat",component:"br-chat-widget"},{x:2,y:0,w:2,h:2,i:"status",component:"br-status-widget"}];return localStorage.omeggaDashLayout&&(t=JSON.parse(localStorage.omeggaDashLayout)),{loading:!1,showWidgets:!1,widgetList:{chat:{component:"br-chat-widget",icon:"MessageDotsIcon",tooltip:"Chat with online players"},status:{component:"br-status-widget",icon:"ListIcon",tooltip:"View current online players and server status"}},layout:t}},components:{AppsIcon:{name:"AppsIcon",props:{size:{type:String,default:"24"}},functional:!0,render(t,e){const n=parseInt(e.props.size)+"px",r=e.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,e.data.attrs=r,t("svg",k()([{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},class:"icon icon-tabler icon-tabler-apps"},e.data]),[" ",t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}})," ",t("rect",{attrs:{x:"4",y:"4",width:"6",height:"6",rx:"1"}})," ",t("rect",{attrs:{x:"4",y:"14",width:"6",height:"6",rx:"1"}})," ",t("rect",{attrs:{x:"14",y:"14",width:"6",height:"6",rx:"1"}})," ",t("line",{attrs:{x1:"14",y1:"7",x2:"20",y2:"7"}})," ",t("line",{attrs:{x1:"17",y1:"4",x2:"17",y2:"10"}})," "])}},PlusIcon:W,MinusIcon:V,MessageDotsIcon:{name:"MessageDotsIcon",props:{size:{type:String,default:"24"}},functional:!0,render(t,e){const n=parseInt(e.props.size)+"px",r=e.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,e.data.attrs=r,t("svg",k()([{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},class:"icon icon-tabler icon-tabler-message-dots"},e.data]),[" ",t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}})," ",t("path",{attrs:{d:"M4 21v-13a3 3 0 0 1 3 -3h10a3 3 0 0 1 3 3v6a3 3 0 0 1 -3 3h-9l-4 4"}})," ",t("line",{attrs:{x1:"12",y1:"11",x2:"12",y2:"11.01"}})," ",t("line",{attrs:{x1:"8",y1:"11",x2:"8",y2:"11.01"}})," ",t("line",{attrs:{x1:"16",y1:"11",x2:"16",y2:"11.01"}})," "])}},ListIcon:jt,XIcon:Wn,ChevronDownRightIcon:{name:"ChevronDownRightIcon",props:{size:{type:String,default:"24"}},functional:!0,render(t,e){const n=parseInt(e.props.size)+"px",r=e.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,e.data.attrs=r,t("svg",k()([{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},class:"icon icon-tabler icon-tabler-chevron-down-right"},e.data]),[" ",t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}})," ",t("path",{attrs:{d:"M16 8v8h-8"}})," "])}},GridLayout:qn.GridLayout,GridItem:qn.GridItem}};n(7620);var Yn=i(Vn,Fn,[],!1,null,null,null);Yn.options.__file="src/webserver/frontend/views/Home.vue";const Xn=Yn.exports;var Jn=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("page",[n("nav-header",{attrs:{title:"Plugins"}},[n("span",{staticStyle:{flex:"1"}}),t._v(" "),n("br-button",{attrs:{warn:"",disabled:t.reloading,"data-tooltip":"Reload all plugins, this may clear current plugin progress"},on:{click:t.reloadPlugins}},[n("RefreshAlertIcon"),t._v("\n Reload Plugins\n ")],1)],1),t._v(" "),n("page-content",[n("side-nav",{attrs:{active:t.$route.name}}),t._v(" "),n("div",{staticClass:"generic-container plugins-container"},[n("div",{staticClass:"plugins-list-container"},[n("br-navbar",[n("br-input",{attrs:{placeholder:"Search Plugins..."},model:{value:t.search,callback:function(e){t.search=e},expression:"search"}}),t._v(" "),n("span",{staticStyle:{flex:"1"}}),t._v(" "),n("br-button",{attrs:{icon:"",normal:"","data-tooltip":"Refresh plugin list"},on:{click:t.getPlugins}},[n("RotateIcon")],1)],1),t._v(" "),n("div",{staticClass:"plugins-list"},[n("br-scroll",t._l(t.plugins,(function(e){return t.matches(e)?n("router-link",{key:e.path,tag:"div",staticClass:"plugin-item",attrs:{to:"/plugins/"+e.path,"data-tooltip":e.documentation&&e.documentation.description}},[n(e.icon,{tag:"component",class:[e.status],attrs:{"data-tooltip":e.tooltip}}),t._v("\n "+t._s(e.name)+"\n ")],1):t._e()})),1),t._v(" "),n("br-loader",{attrs:{active:t.loading,size:"huge"}},[t._v("Loading Plugins")])],1)],1),t._v(" "),n("div",{staticClass:"plugin-inspector-container"},[n("br-navbar",[t._v("\n "+t._s(t.selectedPlugin)+"\n ")]),t._v(" "),n("div",{staticClass:"plugin-inspector"},[n("router-view",{key:t.$route.params.id})],1)],1)])],1)],1)};Jn._withStripped=!0;const Gn={name:"RotateIcon",props:{size:{type:String,default:"24"}},functional:!0,render(t,e){const n=parseInt(e.props.size)+"px",r=e.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,e.data.attrs=r,t("svg",k()([{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},class:"icon icon-tabler icon-tabler-rotate"},e.data]),[" ",t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}})," ",t("path",{attrs:{d:"M19.95 11a8 8 0 1 0 -.5 4m.5 5v-5h-5"}})," "])}},Kn=t=>{t.state=(t.isLoaded?2:0)+(t.isEnabled?1:0),t.status=["disabled","broken","bugged","running"][t.state],t.tooltip=["Plugin is disabled","Plugin is enabled but not running","Plugin is running but not enabled","Plugin is running"][t.state],t.icon=["PowerIcon","AlertCircleIcon","BugIcon","CircleCheckIcon"][t.state]},Zn={components:{RotateIcon:Gn,PowerIcon:{name:"PowerIcon",props:{size:{type:String,default:"24"}},functional:!0,render(t,e){const n=parseInt(e.props.size)+"px",r=e.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,e.data.attrs=r,t("svg",k()([{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},class:"icon icon-tabler icon-tabler-power"},e.data]),[" ",t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}})," ",t("path",{attrs:{d:"M7 6a7.75 7.75 0 1 0 10 0"}})," ",t("line",{attrs:{x1:"12",y1:"4",x2:"12",y2:"12"}})," "])}},AlertCircleIcon:{name:"AlertCircleIcon",props:{size:{type:String,default:"24"}},functional:!0,render(t,e){const n=parseInt(e.props.size)+"px",r=e.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,e.data.attrs=r,t("svg",k()([{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},class:"icon icon-tabler icon-tabler-alert-circle"},e.data]),[" ",t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}})," ",t("circle",{attrs:{cx:"12",cy:"12",r:"9"}})," ",t("line",{attrs:{x1:"12",y1:"8",x2:"12",y2:"12"}})," ",t("line",{attrs:{x1:"12",y1:"16",x2:"12.01",y2:"16"}})," "])}},BugIcon:{name:"BugIcon",props:{size:{type:String,default:"24"}},functional:!0,render(t,e){const n=parseInt(e.props.size)+"px",r=e.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,e.data.attrs=r,t("svg",k()([{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},class:"icon icon-tabler icon-tabler-bug"},e.data]),[" ",t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}})," ",t("path",{attrs:{d:"M9 9v-1a3 3 0 0 1 6 0v1"}})," ",t("path",{attrs:{d:"M8 9h8a6 6 0 0 1 1 3v3a5 5 0 0 1 -10 0v-3a6 6 0 0 1 1 -3"}})," ",t("line",{attrs:{x1:"3",y1:"13",x2:"7",y2:"13"}})," ",t("line",{attrs:{x1:"17",y1:"13",x2:"21",y2:"13"}})," ",t("line",{attrs:{x1:"12",y1:"20",x2:"12",y2:"14"}})," ",t("line",{attrs:{x1:"4",y1:"19",x2:"7.35",y2:"17"}})," ",t("line",{attrs:{x1:"20",y1:"19",x2:"16.65",y2:"17"}})," ",t("line",{attrs:{x1:"4",y1:"7",x2:"7.75",y2:"9.4"}})," ",t("line",{attrs:{x1:"20",y1:"7",x2:"16.25",y2:"9.4"}})," "])}},CircleCheckIcon:{name:"CircleCheckIcon",props:{size:{type:String,default:"24"}},functional:!0,render(t,e){const n=parseInt(e.props.size)+"px",r=e.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,e.data.attrs=r,t("svg",k()([{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},class:"icon icon-tabler icon-tabler-circle-check"},e.data]),[" ",t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}})," ",t("circle",{attrs:{cx:"12",cy:"12",r:"9"}})," ",t("path",{attrs:{d:"M9 12l2 2l4 -4"}})," "])}},RefreshAlertIcon:{name:"RefreshAlertIcon",props:{size:{type:String,default:"24"}},functional:!0,render(t,e){const n=parseInt(e.props.size)+"px",r=e.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,e.data.attrs=r,t("svg",k()([{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},class:"icon icon-tabler icon-tabler-refresh-alert"},e.data]),[" ",t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}})," ",t("path",{attrs:{d:"M20 11a8.1 8.1 0 0 0 -15.5 -2m-.5 -4v4h4"}})," ",t("path",{attrs:{d:"M4 13a8.1 8.1 0 0 0 15.5 2m.5 4v-4h-4"}})," ",t("line",{attrs:{x1:"12",y1:"9",x2:"12",y2:"12"}})," ",t("line",{attrs:{x1:"12",y1:"15",x2:"12.01",y2:"15"}})," "])}}},created(){this.$$emit("subscribe","plugins"),this.getPlugins()},beforeDestroy(){this.$$emit("unsubscribe","plugins")},methods:{matches(t){return t.name.includes(this.search)},async getPlugins(){this.loading=!0;const t=await this.$$request("plugins.list");this.loading=!1;for(const e of t)Kn(e);this.plugins=t},async reloadPlugins(){this.reloading=!0,await this.$$request("plugins.reload"),this.reloading=!1}},sockets:{plugin([t,e]){const n=this.plugins.find((e=>e.path===t));n&&(Object.assign(n,e),Kn(n))}},computed:{selectedPlugin(){const t=this.plugins.find((t=>t.path===this.$route.params.id));return t?t.name:"SELECT A PLUGIN"}},data:()=>({search:"",loading:!0,reloading:!1,plugins:[]})};n(4223);var Qn=i(Zn,Jn,[],!1,null,"7e59a9f3",null);Qn.options.__file="src/webserver/frontend/views/Plugins.vue";const tr=Qn.exports;var er=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"plugin-view"},[n("br-loader",{attrs:{active:t.loading,size:"huge"}},[t._v("Loading Plugin")]),t._v(" "),n("div",{staticClass:"plugin-info"},[t.loading?t._e():n("br-scroll",[n("div",{staticClass:"stats"},[n("div",{staticClass:"stat"},[n("b",{attrs:{"data-tooltip":"Plugin name"}},[t._v("Name:")]),t._v(" "+t._s(t.plugin.name)+"\n ")]),t._v(" "),n("div",{staticClass:"stat"},[n("b",{attrs:{"data-tooltip":"Plugin creator"}},[t._v("Author:")]),t._v("\n "+t._s(t.plugin.documentation&&t.plugin.documentation.author)+"\n ")]),t._v(" "),n("div",{staticClass:"stat"},[n("b",[t._v("Description:")]),t._v("\n "+t._s(t.plugin.documentation&&t.plugin.documentation.description||"none")+"\n ")]),t._v(" "),n("div",{staticClass:"stat"},[n("b",{attrs:{"data-tooltip":"The folder this plugin runs in"}},[t._v("Folder:")]),t._v("\n "+t._s(t.plugin.path)+"\n ")]),t._v(" "),n("div",{staticClass:"stat"},[n("b",{attrs:{"data-tooltip":"The type of plugin this is"}},[t._v("Format:")]),t._v("\n "+t._s(t.plugin.format)+"\n ")]),t._v(" "),n("div",{staticClass:"stat"},[n("b",{attrs:{"data-tooltip":"Number of objects in the plugin's storage"}},[t._v("Stored Objects:")]),t._v("\n "+t._s(t.plugin.objCount)+"\n ")]),t._v(" "),n("div",{staticClass:"stat"},[n("b",{attrs:{"data-tooltip":"Plugin can be started"}},[t._v("Enabled:")]),t._v("\n "+t._s(t.plugin.isEnabled?"Yes":"No")+"\n ")]),t._v(" "),n("div",{staticClass:"stat"},[n("b",{attrs:{"data-tooltip":"Plugin is running"}},[t._v("Loaded:")]),t._v("\n "+t._s(t.plugin.isLoaded?"Yes":"No")+"\n ")])]),t._v(" "),n("div",{staticClass:"section-header",attrs:{"data-tooltip":"Ways to configure the plugin. Changes take place the next time a plugin is loaded."}},[t._v("\n Configs\n ")]),t._v(" "),n("div",{staticClass:"option-list"},[0===Object.keys(t.plugin.documentation.config||{}).length?n("div",{staticClass:"option-item"},[n("i",{staticClass:"option-name"},[t._v("None")])]):t._e(),t._v(" "),t._l(t.plugin.documentation.config||{},(function(e,r){return n("div",{key:r,staticClass:"option-item config"},[n("div",{staticClass:"option-input"},[n("div",{staticClass:"option-label",attrs:{"data-tooltip":e.description}},[t._v("\n "+t._s(r)+"\n "),n("span",{class:["saved-note",{show:t.showSave[r]}]},[t._v("\n SAVED "),n("CheckIcon",{attrs:{size:"20"}})],1)]),t._v(" "),n("div",{staticClass:"option-value"},[["string","password","number"].includes(e.type)?n("br-input",{attrs:{type:e.type,value:t.config[r]},on:{input:function(e){return t.updateConfig(r,e)}}}):t._e(),t._v(" "),"list"===e.type?n("br-list-input",{attrs:{options:e.options,type:e.itemType,value:t.config[r]},on:{input:function(e){return t.updateConfig(r,e)}}}):t._e(),t._v(" "),"players"===e.type?n("br-player-list",{attrs:{value:t.config[r]},on:{input:function(e){return t.updateConfig(r,e)}}}):t._e(),t._v(" "),"role"===e.type?n("br-role-dropdown",{attrs:{value:t.config[r]},on:{input:function(e){return t.updateConfig(r,e)}}}):t._e(),t._v(" "),"enum"===e.type?n("br-dropdown",{attrs:{options:e.options,value:t.config[r]},on:{input:function(e){return t.updateConfig(r,e)}}}):t._e(),t._v(" "),"boolean"===e.type?n("br-toggle",{attrs:{value:t.config[r]},on:{input:function(e){return t.updateConfig(r,e)}}}):t._e(),t._v(" "),t.eq(e.default,t.config[r])?t._e():n("ArrowBackUpIcon",{staticClass:"reset-button",attrs:{"data-tooltip":"Reset to default value"},on:{click:function(n){return t.updateConfig(r,e.default)}}})],1)])])}))],2),t._v(" "),n("div",{staticClass:"section-header",attrs:{"data-tooltip":"Ways to control the plugin"}},[t._v("\n Commands\n ")]),t._v(" "),n("div",{staticClass:"option-list"},[0===(t.plugin.documentation.commands||[]).length?n("div",{staticClass:"option-item"},[n("i",{staticClass:"option-name"},[t._v("None")])]):t._e(),t._v(" "),t._l(t.plugin.documentation.commands||[],(function(e){return n("div",{key:e.name,staticClass:"option-item"},[n("div",{staticClass:"option-name",attrs:{"data-tooltip":e.description}},[t._v("\n "+t._s(e.name)+"\n ")]),t._v(" "),n("div",{staticClass:"option-args"},t._l(e.args||[],(function(e){return n("div",{key:e.name,class:["option-arg",{required:e.required}],attrs:{"data-tooltip":(e.required?"(required) ":"")+e.description}},[t._v("\n "+t._s(e.name)+"\n ")])})),0)])}))],2)])],1),t._v(" "),n("br-footer",[t.plugin.isEnabled&&!t.plugin.isLoaded?n("br-button",{attrs:{main:"",disabled:t.waiting,"data-tooltip":"Start the plugin"},on:{click:function(e){return t.loadPlugin()}}},[n("PlayerPlayIcon"),t._v("\n Load\n ")],1):t._e(),t._v(" "),t.plugin.isEnabled&&t.plugin.isLoaded?n("br-button",{attrs:{warn:"","data-tooltip":"Stop, then start the plugin",disabled:t.waiting},on:{click:function(e){return t.reloadPlugin()}}},[n("RefreshIcon"),t._v("\n Reload\n ")],1):t._e(),t._v(" "),n("span",{staticStyle:{flex:"1"}}),t._v(" "),t.plugin.isEnabled&&t.plugin.isLoaded?n("br-button",{attrs:{error:"",disabled:t.waiting,"data-tooltip":"Stop the plugin"},on:{click:function(e){return t.unloadPlugin()}}},[n("PlayerStopIcon"),t._v("\n Unload\n ")],1):t._e(),t._v(" "),t.plugin.isEnabled?t._e():n("br-button",{attrs:{main:"","data-tooltip":"Allow the plugin to be started",disabled:t.waiting},on:{click:function(e){return t.togglePlugin(!0)}}},[n("PlusIcon"),t._v("\n Enable\n ")],1),t._v(" "),t.plugin.isEnabled&&!t.plugin.isLoaded?n("br-button",{attrs:{error:"","data-tooltip":"Prevent the plugin from being started",disabled:t.waiting},on:{click:function(e){return t.togglePlugin(!1)}}},[n("MinusIcon"),t._v("\n Disable\n ")],1):t._e()],1)],1)};er._withStripped=!0;const nr={name:"PlayerPlayIcon",props:{size:{type:String,default:"24"}},functional:!0,render(t,e){const n=parseInt(e.props.size)+"px",r=e.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,e.data.attrs=r,t("svg",k()([{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},class:"icon icon-tabler icon-tabler-player-play"},e.data]),[" ",t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}})," ",t("path",{attrs:{d:"M7 4v16l13 -8z"}})," "])}},rr={name:"PlayerStopIcon",props:{size:{type:String,default:"24"}},functional:!0,render(t,e){const n=parseInt(e.props.size)+"px",r=e.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,e.data.attrs=r,t("svg",k()([{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},class:"icon icon-tabler icon-tabler-player-stop"},e.data]),[" ",t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}})," ",t("rect",{attrs:{x:"5",y:"5",width:"14",height:"14",rx:"2"}})," "])}},ir={name:"RefreshIcon",props:{size:{type:String,default:"24"}},functional:!0,render(t,e){const n=parseInt(e.props.size)+"px",r=e.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,e.data.attrs=r,t("svg",k()([{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},class:"icon icon-tabler icon-tabler-refresh"},e.data]),[" ",t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}})," ",t("path",{attrs:{d:"M20 11a8.1 8.1 0 0 0 -15.5 -2m-.5 -4v4h4"}})," ",t("path",{attrs:{d:"M4 13a8.1 8.1 0 0 0 15.5 2m.5 4v-4h-4"}})," "])}},or={name:"CheckIcon",props:{size:{type:String,default:"24"}},functional:!0,render(t,e){const n=parseInt(e.props.size)+"px",r=e.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,e.data.attrs=r,t("svg",k()([{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},class:"icon icon-tabler icon-tabler-check"},e.data]),[" ",t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}})," ",t("path",{attrs:{d:"M5 12l5 5l10 -10"}})," "])}},sr={components:{PlayerPlayIcon:nr,PlayerStopIcon:rr,RefreshIcon:ir,PlusIcon:W,MinusIcon:V,ArrowBackUpIcon:{name:"ArrowBackUpIcon",props:{size:{type:String,default:"24"}},functional:!0,render(t,e){const n=parseInt(e.props.size)+"px",r=e.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,e.data.attrs=r,t("svg",k()([{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},class:"icon icon-tabler icon-tabler-arrow-back-up"},e.data]),[" ",t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}})," ",t("path",{attrs:{d:"M9 13l-4 -4l4 -4m-4 4h11a4 4 0 0 1 0 8h-1"}})," "])}},CheckIcon:or},sockets:{plugin([t,e]){t===this.plugin.path&&Object.assign(this.plugin,e)}},methods:{saveConfig:ot()((async function(){const t={};for(const e in this.plugin.config)this.plugin.config[e]!==this.config[e]&&(t[e]=!0);const e=this.config;await this.$$request("plugin.config",this.$route.params.id,e)&&(this.showSave=t,setTimeout((()=>{this.showSave={},this.plugin.config=e}),1e3))}),2e3),updateConfig(t,e){this.config={...this.config,[t]:e},this.saveConfig()},async getPlugin(){this.loading=!0,this.plugin=await this.$$request("plugin.get",this.$route.params.id)||{},this.plugin&&(this.config=this.plugin.config),this.loading=!1},async unloadPlugin(){this.waiting=!0,await this.$$request("plugin.unload",this.$route.params.id),await this.getPlugin(),this.waiting=!1},async loadPlugin(){this.waiting=!0,await this.$$request("plugin.load",this.$route.params.id),await this.getPlugin(),this.waiting=!1},async reloadPlugin(){this.waiting=!0,await this.$$request("plugin.unload",this.$route.params.id)&&await this.$$request("plugin.load",this.$route.params.id),await this.getPlugin(),this.waiting=!1},async togglePlugin(t){this.waiting=!0,await this.$$request("plugin.toggle",this.$route.params.id,t),await this.getPlugin(),this.waiting=!1},eq:(t,e)=>JSON.stringify(t)===JSON.stringify(e)},created(){this.getPlugin()},data:()=>({plugin:{},config:{},showSave:{},loading:!0,waiting:!1})};n(1339);var ar=i(sr,er,[],!1,null,null,null);ar.options.__file="src/webserver/frontend/views/PluginsInspector.vue";const cr=ar.exports;var lr=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("page",[n("nav-header",{attrs:{title:"Players"}},[n("div",{staticClass:"widgets-container"},[n("br-button",{attrs:{normal:"",boxy:"","data-tooltip":"Player list filters"},on:{click:function(e){t.showFilters=!t.showFilters}}},[n("FilterIcon"),t._v("\n Filters\n ")],1),t._v(" "),n("div",{staticClass:"widgets-list",style:{display:t.showFilters?"block":"none"}},[n("div",{staticClass:"widget-item",attrs:{"data-tooltip":"Filter by banned players"}},[n("div",{staticClass:"name"},[n("BanIcon"),t._v("\n Banned\n ")],1),t._v(" "),n("br-toggle",{on:{input:function(e){return t.doSearch()}},model:{value:t.filterBanned,callback:function(e){t.filterBanned=e},expression:"filterBanned"}})],1)])],1)]),t._v(" "),n("page-content",[n("side-nav",{attrs:{active:t.$route.name}}),t._v(" "),n("div",{staticClass:"generic-container players-container"},[n("div",{staticClass:"player-table-container"},[n("br-navbar",[n("br-input",{attrs:{placeholder:"Search Players..."},on:{input:function(e){return t.doSearch()}},model:{value:t.search,callback:function(e){t.search=e},expression:"search"}}),t._v(" "),n("span",{staticStyle:{flex:"1"}}),t._v(" "),n("br-button",{attrs:{icon:"",normal:"","data-tooltip":"Refresh player list"},on:{click:t.getPlayers}},[n("RotateIcon")],1)],1),t._v(" "),n("div",{staticClass:"players-list"},[n("br-scroll",[n("table",{staticClass:"br-table"},[n("thead",[n("tr",[n("th",{staticStyle:{"text-align":"left",width:"100%"},on:{click:function(e){return t.setSort("name")}}},[n("span",[t._v("\n Name\n "),"name"===t.sort&&1===t.direction?n("SortAscendingIcon"):t._e(),t._v(" "),"name"===t.sort&&-1===t.direction?n("SortDescendingIcon"):t._e()],1)]),t._v(" "),n("th",{attrs:{"data-tooltip":"Number of heartbeats the player has been part of (minutely)"},on:{click:function(e){return t.setSort("heartbeats")}}},[n("span",[t._v("\n Played\n "),"heartbeats"===t.sort&&1===t.direction?n("SortAscendingIcon"):t._e(),t._v(" "),"heartbeats"===t.sort&&-1===t.direction?n("SortDescendingIcon"):t._e()],1)]),t._v(" "),n("th",{attrs:{"data-tooltip":"When the player was last seen"},on:{click:function(e){return t.setSort("lastSeen")}}},[n("span",[t._v("\n Seen\n "),"lastSeen"===t.sort&&1===t.direction?n("SortAscendingIcon"):t._e(),t._v(" "),"lastSeen"===t.sort&&-1===t.direction?n("SortDescendingIcon"):t._e()],1)]),t._v(" "),n("th",{attrs:{"data-tooltip":"When the player joined"},on:{click:function(e){return t.setSort("created")}}},[n("span",[t._v("\n Joined\n "),"created"===t.sort&&1===t.direction?n("SortAscendingIcon"):t._e(),t._v(" "),"created"===t.sort&&-1===t.direction?n("SortDescendingIcon"):t._e()],1)]),t._v(" "),n("th",{attrs:{"data-tooltip":"Number of Visits"},on:{click:function(e){return t.setSort("sessions")}}},[n("span",{staticClass:"icon-cell"},[n("MapPinIcon",{staticClass:"label",attrs:{size:"30"}}),t._v(" "),"sessions"===t.sort&&1===t.direction?n("SortAscendingIcon"):t._e(),t._v(" "),"sessions"===t.sort&&-1===t.direction?n("SortDescendingIcon"):t._e()],1)])])]),t._v(" "),n("tbody",t._l(t.players,(function(e){return n("tr",{key:e.id,class:{active:e.id===t.$route.params.id},on:{click:function(n){return t.clickPlayer(e)}}},[n("td",{class:{ban:!!e.ban}},[t._v("\n "+t._s(e.name)+"\n "),e.ban?n("BanIcon",{attrs:{size:"18"}}):t._e()],1),t._v(" "),n("td",{staticStyle:{"text-align":"right"}},[t._v("\n "+t._s(t.heartbeatAgo(e.heartbeats))+"\n ")]),t._v(" "),n("td",{staticStyle:{"text-align":"right"},attrs:{"data-tooltip":new Date(e.lastSeen)}},[t._v("\n "+t._s(t.duration(e.seenAgo))+"\n ")]),t._v(" "),n("td",{staticStyle:{"text-align":"right"},attrs:{"data-tooltip":new Date(e.created)}},[t._v("\n "+t._s(t.duration(e.createdAgo))+"\n ")]),t._v(" "),n("td",{staticStyle:{"text-align":"right"}},[t._v("\n "+t._s(e.sessions)+"\n ")])])})),0)])]),t._v(" "),n("br-footer",{staticClass:"pagination-footer"},[n("br-button",{attrs:{icon:"",normal:"",disabled:0===t.page},on:{click:function(e){t.page=0,t.getPlayers()}}},[n("ArrowBarToLeftIcon")],1),t._v(" "),n("br-button",{attrs:{icon:"",normal:"",disabled:0===t.page},on:{click:function(e){t.page--,t.getPlayers()}}},[n("ArrowLeftIcon")],1),t._v(" "),n("div",{staticClass:"current-page"},[t._v("\n Page "+t._s(t.page+1)+" of "+t._s(t.pages)+", Showing\n "+t._s(t.players.length)+" of "+t._s(t.total)+"\n ")]),t._v(" "),n("br-button",{attrs:{icon:"",normal:"",disabled:t.page>=t.pages-1},on:{click:function(e){t.page++,t.getPlayers()}}},[n("ArrowRightIcon")],1),t._v(" "),n("br-button",{attrs:{icon:"",normal:"",disabled:t.page===t.pages-1},on:{click:function(e){t.page=t.pages-1,t.getPlayers()}}},[n("ArrowBarToRightIcon")],1)],1),t._v(" "),n("br-loader",{attrs:{active:t.loading,size:"huge"}},[t._v("Loading Players")])],1)],1),t._v(" "),t.$route.params.id?n("router-view",{key:t.$route.params.id}):n("div",{staticClass:"player-inspector-container"},[n("br-navbar",[t._v("\n SELECT A PLAYER\n ")]),t._v(" "),n("div",{staticClass:"player-inspector"})],1)],1)],1)],1)};lr._withStripped=!0;const ur={name:"ArrowBarToLeftIcon",props:{size:{type:String,default:"24"}},functional:!0,render(t,e){const n=parseInt(e.props.size)+"px",r=e.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,e.data.attrs=r,t("svg",k()([{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},class:"icon icon-tabler icon-tabler-arrow-bar-to-left"},e.data]),[" ",t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}})," ",t("line",{attrs:{x1:"10",y1:"12",x2:"20",y2:"12"}})," ",t("line",{attrs:{x1:"10",y1:"12",x2:"14",y2:"16"}})," ",t("line",{attrs:{x1:"10",y1:"12",x2:"14",y2:"8"}})," ",t("line",{attrs:{x1:"4",y1:"4",x2:"4",y2:"20"}})," "])}},hr={name:"ArrowBarToRightIcon",props:{size:{type:String,default:"24"}},functional:!0,render(t,e){const n=parseInt(e.props.size)+"px",r=e.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,e.data.attrs=r,t("svg",k()([{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},class:"icon icon-tabler icon-tabler-arrow-bar-to-right"},e.data]),[" ",t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}})," ",t("line",{attrs:{x1:"14",y1:"12",x2:"4",y2:"12"}})," ",t("line",{attrs:{x1:"14",y1:"12",x2:"10",y2:"16"}})," ",t("line",{attrs:{x1:"14",y1:"12",x2:"10",y2:"8"}})," ",t("line",{attrs:{x1:"20",y1:"4",x2:"20",y2:"20"}})," "])}},pr={name:"ArrowLeftIcon",props:{size:{type:String,default:"24"}},functional:!0,render(t,e){const n=parseInt(e.props.size)+"px",r=e.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,e.data.attrs=r,t("svg",k()([{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},class:"icon icon-tabler icon-tabler-arrow-left"},e.data]),[" ",t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}})," ",t("line",{attrs:{x1:"5",y1:"12",x2:"19",y2:"12"}})," ",t("line",{attrs:{x1:"5",y1:"12",x2:"11",y2:"18"}})," ",t("line",{attrs:{x1:"5",y1:"12",x2:"11",y2:"6"}})," "])}},dr={name:"ArrowRightIcon",props:{size:{type:String,default:"24"}},functional:!0,render(t,e){const n=parseInt(e.props.size)+"px",r=e.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,e.data.attrs=r,t("svg",k()([{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},class:"icon icon-tabler icon-tabler-arrow-right"},e.data]),[" ",t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}})," ",t("line",{attrs:{x1:"5",y1:"12",x2:"19",y2:"12"}})," ",t("line",{attrs:{x1:"13",y1:"18",x2:"19",y2:"12"}})," ",t("line",{attrs:{x1:"13",y1:"6",x2:"19",y2:"12"}})," "])}},fr={name:"SortAscendingIcon",props:{size:{type:String,default:"24"}},functional:!0,render(t,e){const n=parseInt(e.props.size)+"px",r=e.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,e.data.attrs=r,t("svg",k()([{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},class:"icon icon-tabler icon-tabler-sort-ascending"},e.data]),[" ",t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}})," ",t("line",{attrs:{x1:"4",y1:"6",x2:"11",y2:"6"}})," ",t("line",{attrs:{x1:"4",y1:"12",x2:"11",y2:"12"}})," ",t("line",{attrs:{x1:"4",y1:"18",x2:"13",y2:"18"}})," ",t("polyline",{attrs:{points:"15 9 18 6 21 9"}})," ",t("line",{attrs:{x1:"18",y1:"6",x2:"18",y2:"18"}})," "])}},gr={name:"SortDescendingIcon",props:{size:{type:String,default:"24"}},functional:!0,render(t,e){const n=parseInt(e.props.size)+"px",r=e.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,e.data.attrs=r,t("svg",k()([{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},class:"icon icon-tabler icon-tabler-sort-descending"},e.data]),[" ",t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}})," ",t("line",{attrs:{x1:"4",y1:"6",x2:"13",y2:"6"}})," ",t("line",{attrs:{x1:"4",y1:"12",x2:"11",y2:"12"}})," ",t("line",{attrs:{x1:"4",y1:"18",x2:"11",y2:"18"}})," ",t("polyline",{attrs:{points:"15 15 18 18 21 15"}})," ",t("line",{attrs:{x1:"18",y1:"6",x2:"18",y2:"18"}})," "])}},vr={name:"BanIcon",props:{size:{type:String,default:"24"}},functional:!0,render(t,e){const n=parseInt(e.props.size)+"px",r=e.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,e.data.attrs=r,t("svg",k()([{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},class:"icon icon-tabler icon-tabler-ban"},e.data]),[" ",t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}})," ",t("circle",{attrs:{cx:"12",cy:"12",r:"9"}})," ",t("line",{attrs:{x1:"5.7",y1:"5.7",x2:"18.3",y2:"18.3"}})," "])}},mr={components:{RotateIcon:Gn,ArrowBarToLeftIcon:ur,ArrowBarToRightIcon:hr,ArrowLeftIcon:pr,ArrowRightIcon:dr,SortAscendingIcon:fr,SortDescendingIcon:gr,MapPinIcon:{name:"MapPinIcon",props:{size:{type:String,default:"24"}},functional:!0,render(t,e){const n=parseInt(e.props.size)+"px",r=e.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,e.data.attrs=r,t("svg",k()([{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},class:"icon icon-tabler icon-tabler-map-pin"},e.data]),[" ",t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}})," ",t("circle",{attrs:{cx:"12",cy:"11",r:"3"}})," ",t("path",{attrs:{d:"M17.657 16.657l-4.243 4.243a2 2 0 0 1 -2.827 0l-4.244 -4.243a8 8 0 1 1 11.314 0z"}})," "])}},BanIcon:vr,FilterIcon:{name:"FilterIcon",props:{size:{type:String,default:"24"}},functional:!0,render(t,e){const n=parseInt(e.props.size)+"px",r=e.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,e.data.attrs=r,t("svg",k()([{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},class:"icon icon-tabler icon-tabler-filter"},e.data]),[" ",t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}})," ",t("path",{attrs:{d:"M5.5 5h13a1 1 0 0 1 .5 1.5l-5 5.5l0 7l-4 -3l0 -4l-5 -5.5a1 1 0 0 1 .5 -1.5"}})," "])}}},created(){this.getPlayers()},methods:{async getPlayers(){this.loading=!0;const{players:t,total:e,pages:n}=await this.$$request("players.list",{page:this.page,search:this.search,sort:this.sort,direction:this.direction,filter:this.filterBanned?"banned":""});this.pages=n,this.total=e,this.players=t,this.loading=!1},clickPlayer(t){this.$route.params.id!==t.id&&this.$router.push({path:`/players/${t.id}`})},doSearch:ot()((function(){this.page=0,this.getPlayers()}),500),setSort(t){this.sort===t?this.direction*=-1:(this.sort=t,this.direction="name"===t?1:-1),this.getPlayers()}},sockets:{},computed:{},data:()=>({search:"",sort:"lastSeen",direction:-1,pages:0,total:0,page:0,update:0,loading:!0,filterBanned:!1,showFilters:!1,players:[]})};n(4163);var yr=i(mr,lr,[],!1,null,"6a109b05",null);yr.options.__file="src/webserver/frontend/views/Players.vue";const br=yr.exports;var wr=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"player-inspector-container"},[n("br-navbar",[t._v("\n "+t._s(t.player.name||"SELECT A PLAYER")+"\n "),n("span",{staticStyle:{flex:"1"}}),t._v(" "),t.player.name?n("div",{staticClass:"widgets-container"},[n("br-button",{attrs:{normal:"",boxy:""},on:{click:function(e){t.showActions=!t.showActions}}},[n("CaretDownIcon"),t._v("\n User Actions...\n ")],1),t._v(" "),n("div",{staticClass:"widgets-list",style:{display:t.showActions?"block":"none"}},[n("br-button",{attrs:{boxy:"",warn:""},on:{click:function(e){t.showClear=!0,t.showActions=!1}}},[n("EraserIcon"),t._v("\n Clear Bricks\n ")],1),t._v(" "),!t.player.isHost&&t.player.isOnline?n("br-button",{attrs:{boxy:"",error:""},on:{click:function(e){t.showKick=!0,t.showActions=!1}}},[n("PlugIcon"),t._v("\n Kick\n ")],1):t._e(),t._v(" "),t.player.currentBan?n("br-button",{attrs:{boxy:"",warn:"",disabled:t.banLoading},on:{click:function(e){t.unban(),t.showActions=!1}}},[n("BackspaceIcon"),t._v("\n Unban\n ")],1):t.player.isHost?t._e():n("br-button",{attrs:{boxy:"",error:"",disabled:t.banLoading},on:{click:function(e){t.showBan=!0,t.showActions=!1}}},[n("BanIcon"),t._v("\n Ban\n ")],1)],1)],1):t._e()]),t._v(" "),n("div",{staticClass:"player-inspector"},[n("div",{staticClass:"player-view"},[n("br-loader",{attrs:{active:t.loading,size:"huge"}},[t._v("Loading Player")]),t._v(" "),n("div",{staticClass:"player-info"},[t.loading?t._e():n("br-scroll",[n("div",{staticClass:"stats"},[n("div",{staticClass:"stat"},[n("b",[t._v("Profile:")]),t._v(" "),n("a",{attrs:{href:"https://brickadia.com/users/"+t.player.id,target:"_blank"}},[t._v("\n "+t._s(t.player.name)+"\n ")])]),t._v(" "),n("div",{staticClass:"stat"},[n("b",[t._v("Host:")]),t._v(" "+t._s(t.player.isHost?"Yes":"No")+"\n ")]),t._v(" "),n("div",{staticClass:"stat"},[n("b",[t._v("Banned:")]),t._v(" "),t.player.currentBan&&t.player.currentBan.duration<=0?n("span",[t._v("\n Permanent\n ")]):t.player.currentBan?n("span",[t._v("\n "+t._s(t.duration(t.player.currentBan.remainingTime))+" of\n "+t._s(t.duration(t.player.currentBan.duration))+" remaining\n ")]):n("span",[t._v(" No ")])]),t._v(" "),n("div",{staticClass:"stat"},[n("b",{attrs:{"data-tooltip":"Number of status heartbeats this player has been part of"}},[t._v("Time Played:")]),t._v("\n "+t._s(t.heartbeatAgo(t.player.heartbeats))+"\n ")]),t._v(" "),n("div",{staticClass:"stat"},[n("b",{attrs:{"data-tooltip":"Date player was last seen"}},[t._v("Last Seen:")]),t._v(" "),n("span",{attrs:{"data-tooltip":new Date(t.player.lastSeen)}},[t._v("\n "+t._s(t.duration(t.player.seenAgo))+" ago\n ")])]),t._v(" "),n("div",{staticClass:"stat"},[n("b",{attrs:{"data-tooltip":"Date player was first seen"}},[t._v("First Seen:")]),t._v(" "),n("span",{attrs:{"data-tooltip":new Date(t.player.created)}},[t._v("\n "+t._s(t.duration(t.player.createdAgo))+" ago\n ")])]),t._v(" "),n("div",{staticClass:"stat"},[n("b",{attrs:{"data-tooltip":"Number of times this player has visited the server (new visits are registered if the player joins 3 hours after last seen)"}},[t._v("Visits:")]),t._v("\n "+t._s(t.player.sessions)+"\n ")]),t._v(" "),n("div",{staticClass:"stat"},[n("b",{attrs:{"data-tooltip":"Number of server instances this player has joined"}},[t._v("Server Visits:")]),t._v("\n "+t._s(t.player.instances)+"\n ")]),t._v(" "),n("div",{staticClass:"stat"},[n("b",[t._v("Bans:")]),t._v(" "+t._s(t.player.banHistory.length)+"\n ")])]),t._v(" "),n("div",{staticClass:"section-header",attrs:{"data-tooltip":"Roles this player has"}},[t._v("\n Roles\n ")]),t._v(" "),n("div",{staticClass:"option-list"},[t._l(t.player.roles,(function(e){return n("div",{key:e.name,staticClass:"option-item"},[n("div",{staticClass:"option-name",style:{color:"#"+e.color}},[t._v("\n "+t._s(e.name)+"\n ")])])})),t._v(" "),n("div",{staticClass:"option-item"},[n("div",{staticClass:"option-name",staticStyle:{color:"white"}},[t._v("Default")])])],2),t._v(" "),n("div",{staticClass:"section-header",attrs:{"data-tooltip":"Names this player has gone by historically"}},[t._v("\n Name History\n ")]),t._v(" "),n("table",{staticClass:"br-table"},[n("thead",[n("tr",[n("th",{staticStyle:{"text-align":"left",width:"100%"}},[n("span",[t._v("Name")])]),t._v(" "),n("th",[t._v("First Seen")])])]),t._v(" "),n("tbody",t._l(t.player.nameHistory,(function(e){return n("tr",{key:e.date+e.name},[n("td",[t._v(t._s(e.name))]),t._v(" "),n("td",{staticStyle:{"text-align":"right"},attrs:{"data-tooltip":new Date(e.date)}},[t._v("\n "+t._s(t.duration(e.ago))+"\n ")])])})),0)]),t._v(" "),n("div",{staticClass:"section-header",attrs:{"data-tooltip":"Times this player has been banned from the server"}},[t._v("\n Ban History\n ")]),t._v(" "),n("table",{staticClass:"br-table"},[n("thead",[n("tr",[n("th",{staticStyle:{width:"100%","text-align":"left"}},[t._v("Reason")]),t._v(" "),n("th",[t._v("Length")]),t._v(" "),n("th",[t._v("Issuer")]),t._v(" "),n("th",[t._v("Date")])])]),t._v(" "),n("tbody",[0===t.player.banHistory.length?n("tr",[n("td",{attrs:{colspan:"4"}},[n("i",[t._v("None")])])]):t._e(),t._v(" "),t._l(t.player.banHistory,(function(e){return n("tr",{key:e.created},[n("td",{staticClass:"reason"},[t._v(t._s(e.reason))]),t._v(" "),n("td",{staticStyle:{"text-align":"right"},attrs:{"data-tooltip":"Expires "+new Date(e.expires)}},[t._v("\n "+t._s(0>=e.duration?"Permanent":t.duration(e.duration))+"\n ")]),t._v(" "),n("td",[n("router-link",{attrs:{to:"/players/"+e.bannerId}},[t._v(t._s(e.bannerName||"missing name"))])],1),t._v(" "),n("td",{staticStyle:{"text-align":"right"},attrs:{"data-tooltip":new Date(e.created)}},[t._v("\n "+t._s(t.isoDate(e.created))+"\n ")])])}))],2)]),t._v(" "),n("div",{staticClass:"section-header",attrs:{"data-tooltip":"Times this player has been booted from the server"}},[t._v("\n Kick History\n ")]),t._v(" "),n("table",{staticClass:"br-table"},[n("thead",[n("tr",[n("th",{staticStyle:{width:"100%","text-align":"left"}},[t._v("Reason")]),t._v(" "),n("th",[t._v("Issuer")]),t._v(" "),n("th",[t._v("Date")])])]),t._v(" "),n("tbody",[0===t.player.kickHistory.length?n("tr",[n("td",{attrs:{colspan:"4"}},[n("i",[t._v("None")])])]):t._e(),t._v(" "),t._l(t.player.kickHistory,(function(e){return n("tr",{key:e.created},[n("td",{staticClass:"reason"},[t._v(t._s(e.reason))]),t._v(" "),n("td",[n("router-link",{attrs:{to:"/players/"+e.kickerId}},[t._v(t._s(e.kickerName||"missing name"))])],1),t._v(" "),n("td",{staticStyle:{"text-align":"right"},attrs:{"data-tooltip":new Date(e.created)}},[t._v("\n "+t._s(t.isoDate(e.created))+"\n ")])])}))],2)])])],1)],1)]),t._v(" "),n("br-dimmer",{attrs:{visible:t.showBan||t.showKick||t.showClear}},[n("br-loader",{attrs:{active:t.banLoading,size:"huge"}},[t._v("Running Action...")]),t._v(" "),n("br-modal",{attrs:{visible:!t.banLoading}},[n("br-header",[t._v("\n "+t._s(t.showBan?"Ban Player":t.showKick?"Kick Player":"Clear Bricks")+"\n ")]),t._v(" "),t.showKick||t.showBan?n("div",{class:{"popout-inputs":!0,kick:t.showKick,ban:t.showBan}},[n("br-input",{attrs:{placeholder:"Reason",type:"text"},model:{value:t.banReason,callback:function(e){t.banReason=e},expression:"banReason"}}),t._v(" "),t.showBan?n("div",{staticClass:"ban-duration",staticStyle:{display:"flex"}},["Permanent"!==t.banUnit?n("br-input",{attrs:{placeholder:"Duration",type:"number"},model:{value:t.banDuration,callback:function(e){t.banDuration=e},expression:"banDuration"}}):t._e(),t._v(" "),n("br-dropdown",{attrs:{options:t.UNIT_OPTIONS,value:t.banUnit},on:{input:function(e){return t.banUnit=e}}})],1):t._e()],1):t._e(),t._v(" "),t.showBan?n("br-popout-content",[t._v("\n This ban will expire "),n("span",{staticStyle:{color:"white"}},[t._v(t._s(t.expiry))]),t._v(".\n ")]):t._e(),t._v(" "),t.showClear?n("br-popout-content",[n("p",{staticStyle:{padding:"20px"}},[t._v("\n Are you sure you want to clear\n "),n("span",{staticStyle:{color:"white"}},[t._v(t._s(t.player.name))]),t._v("'s bricks?\n ")])]):t._e(),t._v(" "),n("br-footer",[t.showBan?n("br-button",{attrs:{error:""},on:{click:function(e){return t.ban()}}},[n("BanIcon"),t._v("\n Ban\n ")],1):t._e(),t._v(" "),t.showClear?n("br-button",{attrs:{warn:""},on:{click:function(e){return t.clearBricks()}}},[n("EraserIcon"),t._v("\n Clear Bricks\n ")],1):t._e(),t._v(" "),t.showKick?n("br-button",{attrs:{error:""},on:{click:function(e){return t.kick()}}},[n("PlugIcon"),t._v("\n Kick\n ")],1):t._e(),t._v(" "),n("div",{staticStyle:{flex:"1"}}),t._v(" "),n("br-button",{attrs:{normal:""},on:{click:t.closeModal}},[n("XIcon"),t._v("Cancel ")],1)],1)],1)],1)],1)};wr._withStripped=!0;const xr={"Minute(s)":1,"Hour(s)":60,"Day(s)":1440,"Week(s)":10080,"Month(s)":43200},_r={components:{BanIcon:vr,BackspaceIcon:{name:"BackspaceIcon",props:{size:{type:String,default:"24"}},functional:!0,render(t,e){const n=parseInt(e.props.size)+"px",r=e.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,e.data.attrs=r,t("svg",k()([{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},class:"icon icon-tabler icon-tabler-backspace"},e.data]),[" ",t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}})," ",t("path",{attrs:{d:"M20 6a1 1 0 0 1 1 1v10a1 1 0 0 1 -1 1h-11l-5 -5a1.5 1.5 0 0 1 0 -2l5 -5z"}})," ",t("path",{attrs:{d:"M12 10l4 4m0 -4l-4 4"}})," "])}},XIcon:Wn,PlugIcon:Dt,EraserIcon:{name:"EraserIcon",props:{size:{type:String,default:"24"}},functional:!0,render(t,e){const n=parseInt(e.props.size)+"px",r=e.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,e.data.attrs=r,t("svg",k()([{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},class:"icon icon-tabler icon-tabler-eraser"},e.data]),[" ",t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}})," ",t("path",{attrs:{d:"M19 19h-11l-4 -4a1 1 0 0 1 0 -1.41l10 -10a1 1 0 0 1 1.41 0l5 5a1 1 0 0 1 0 1.41l-9 9"}})," ",t("line",{attrs:{x1:"18",y1:"12.3",x2:"11.7",y2:"6"}})," "])}},CaretDownIcon:K},sockets:{},computed:{expiry(){return"Permanent"===this.banUnit?"Never":this.isoTime(Date.now()+xr[this.banUnit]*this.banDuration)}},methods:{closeModal(){this.showBan=!1,this.showClear=!1,this.showKick=!1},async getPlayer(){this.loading=!0,this.player=await this.$$request("player.get",this.$route.params.id)||{},this.player||this.$router.push("/players"),this.loading=!1},async ban(){this.banLoading=!0;const t="Permanent"===this.banUnit?-1:xr[this.banUnit]*this.banDuration;try{await this.$$request("player.ban",this.$route.params.id,t,this.banReason)}catch(t){console.error(t)}this.showBan=!1,await this.getPlayer(),this.banLoading=!1},async kick(){this.banLoading=!0;try{await this.$$request("player.kick",this.$route.params.id,this.banReason)}catch(t){console.error(t)}this.showKick=!1,await this.getPlayer(),this.banLoading=!1},async unban(){this.banLoading=!0;try{await this.$$request("player.unban",this.$route.params.id)}catch(t){console.error(t)}await this.getPlayer(),this.banLoading=!1},async clearBricks(){try{await this.$$request("player.clearbricks",this.$route.params.id)}catch(t){console.error(t)}this.showClear=!1}},created(){this.getPlayer()},data:()=>({UNIT_OPTIONS:["Permanent","Minute(s)","Hour(s)","Day(s)","Week(s)","Month(s)"],player:{},showBan:!1,showKick:!1,showClear:!1,showActions:!1,banReason:"",banDuration:10,banUnit:"Permanent",loading:!0,banLoading:!1})};n(9534);var kr=i(_r,wr,[],!1,null,null,null);kr.options.__file="src/webserver/frontend/views/PlayersInspector.vue";const Cr=kr.exports;var Sr=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("page",[n("nav-header",{attrs:{title:"Users"}},[n("span",{staticStyle:{flex:"1"}}),t._v(" "),n("br-button",{attrs:{normal:"","data-tooltip":"Enable user sign-in"},on:{click:function(e){return t.toggleCredentials()}}},[t.omeggaData.userless?n("CirclePlusIcon"):n("LockIcon"),t._v("\n "+t._s(t.omeggaData.userless?"Enable Users":"Change Password")+"\n ")],1),t._v(" "),!t.omeggaData.userless&&t.user.isOwner?n("br-button",{attrs:{normal:"","data-tooltip":"Add a new user"},on:{click:function(e){return t.toggleAddUser()}}},[n("UserPlusIcon"),t._v("\n Add User\n ")],1):t._e()],1),t._v(" "),n("page-content",[n("side-nav",{attrs:{active:t.$route.name}}),t._v(" "),n("div",{staticClass:"generic-container players-container"},[n("div",{staticClass:"player-table-container"},[n("br-navbar",[n("br-input",{attrs:{placeholder:"Search Users..."},on:{input:function(e){return t.doSearch()}},model:{value:t.search,callback:function(e){t.search=e},expression:"search"}}),t._v(" "),n("span",{staticStyle:{flex:"1"}}),t._v(" "),n("br-button",{attrs:{icon:"",normal:"","data-tooltip":"Refresh user list"},on:{click:t.getUsers}},[n("RotateIcon")],1)],1),t._v(" "),n("div",{staticClass:"players-list"},[n("br-scroll",[n("table",{staticClass:"br-table"},[n("thead",[n("tr",[n("th",{staticStyle:{"text-align":"left",width:"100%"},on:{click:function(e){return t.setSort("username")}}},[n("span",[t._v("\n Username\n "),"username"===t.sort&&1===t.direction?n("SortAscendingIcon"):t._e(),t._v(" "),"username"===t.sort&&-1===t.direction?n("SortDescendingIcon"):t._e()],1)]),t._v(" "),n("th",{attrs:{"data-tooltip":"When the user was last active"},on:{click:function(e){return t.setSort("lastOnline")}}},[n("span",[t._v("\n Active\n "),"lastOnline"===t.sort&&1===t.direction?n("SortAscendingIcon"):t._e(),t._v(" "),"lastOnline"===t.sort&&-1===t.direction?n("SortDescendingIcon"):t._e()],1)]),t._v(" "),n("th",{attrs:{"data-tooltip":"When the user joined"},on:{click:function(e){return t.setSort("created")}}},[n("span",[t._v("\n Joined\n "),"created"===t.sort&&1===t.direction?n("SortAscendingIcon"):t._e(),t._v(" "),"created"===t.sort&&-1===t.direction?n("SortDescendingIcon"):t._e()],1)])])]),t._v(" "),n("tbody",t._l(t.users,(function(e){return n("tr",{key:e.username,class:{active:e.username===t.$route.params.id},on:{click:function(n){return t.clickUser(e)}}},[n("td",[t._v("\n "+t._s(e.username||"Admin")+"\n "),(e.username||"Admin")===t.user.username?n("span",{staticStyle:{"font-size":"12px"}},[t._v("\n (You)\n ")]):t._e()]),t._v(" "),n("td",{staticStyle:{"text-align":"right"},attrs:{"data-tooltip":e.lastOnline?new Date(e.lastOnline):"Never"}},[t._v("\n "+t._s(e.lastOnline?t.duration(e.seenAgo):"Never")+"\n ")]),t._v(" "),n("td",{staticStyle:{"text-align":"right"},attrs:{"data-tooltip":new Date(e.created)}},[t._v("\n "+t._s(t.duration(e.createdAgo))+"\n ")])])})),0)])]),t._v(" "),n("br-footer",{staticClass:"pagination-footer"},[n("br-button",{attrs:{icon:"",normal:"",disabled:0===t.page},on:{click:function(e){t.page=0,t.getUsers()}}},[n("ArrowBarToLeftIcon")],1),t._v(" "),n("br-button",{attrs:{icon:"",normal:"",disabled:0===t.page},on:{click:function(e){t.page--,t.getUsers()}}},[n("ArrowLeftIcon")],1),t._v(" "),n("div",{staticClass:"current-page"},[t._v("\n Page "+t._s(t.page+1)+" of "+t._s(t.pages)+", Showing\n "+t._s(t.users.length)+" of "+t._s(t.total)+"\n ")]),t._v(" "),n("br-button",{attrs:{icon:"",normal:"",disabled:t.page>=t.pages-1},on:{click:function(e){t.page++,t.getUsers()}}},[n("ArrowRightIcon")],1),t._v(" "),n("br-button",{attrs:{icon:"",normal:"",disabled:t.page===t.pages-1},on:{click:function(e){t.page=t.pages-1,t.getUsers()}}},[n("ArrowBarToRightIcon")],1)],1),t._v(" "),n("br-loader",{attrs:{active:t.loading,size:"huge"}},[t._v("Loading Users")])],1)],1),t._v(" "),n("div",{staticClass:"player-inspector-container"},[n("br-navbar",[t._v("Not Implemented")]),t._v(" "),n("div",{staticClass:"player-inspector"},[n("router-view",{key:t.$route.params.id})],1)],1),t._v(" "),n("br-dimmer",{attrs:{visible:t.showCredentials||t.showCreateUser}},[n("br-loader",{attrs:{active:t.modalLoading,size:"huge"}},[t._v("Submitting")]),t._v(" "),n("br-modal",{attrs:{visible:!t.modalLoading}},[n("br-header",[t._v("\n "+t._s(t.showCreateUser?"Create New User":"Update Credentials")+"\n ")]),t._v(" "),n("br-popout-content",[t.omeggaData.userless?n("p",[t._v("\n This will require you to enter a password when you sign in.\n ")]):t._e(),t._v(" "),t.omeggaData.userless?n("p",[t._v("This action cannot be undone.")]):t._e(),t._v(" "),!t.omeggaData.userless&&t.showCredentials?n("p",[t._v('\n Updating credentials for user "'+t._s(t.username)+'"\n ')]):t._e(),t._v(" "),t.showCreateUser?n("p",[t._v("\n Creating a new user. It's recommended to create a temporary\n password.\n ")]):t._e(),t._v(" "),t.error?n("p",{staticStyle:{color:"red"}},[t._v("Error: "+t._s(t.error))]):t._e()]),t._v(" "),n("div",{staticClass:"popout-inputs"},[t.omeggaData.userless||t.showCreateUser?n("br-input",{attrs:{placeholder:"username",type:"text"},model:{value:t.username,callback:function(e){t.username=e},expression:"username"}}):t._e(),t._v(" "),n("br-input",{attrs:{placeholder:"password",type:"password"},model:{value:t.password,callback:function(e){t.password=e},expression:"password"}}),t._v(" "),n("br-input",{attrs:{placeholder:"confirm password",type:"password"},model:{value:t.confirm,callback:function(e){t.confirm=e},expression:"confirm"}})],1),t._v(" "),n("br-footer",[n("br-button",{attrs:{main:"",disabled:!t.ok||t.confirm!==t.password},on:{click:function(e){return t.submit(t.username,t.password)}}},[t.showCreateUser?n("UserPlusIcon"):n("LockIcon"),t._v("\n "+t._s(t.showCreateUser?"Add":"Update")+"\n ")],1),t._v(" "),n("div",{staticStyle:{flex:"1"}}),t._v(" "),n("br-button",{attrs:{normal:""},on:{click:t.hideModals}},[n("XIcon"),t._v("Cancel\n ")],1)],1)],1)],1)],1)],1)],1)};Sr._withStripped=!0;const Ar={components:{RotateIcon:Gn,ArrowBarToLeftIcon:ur,ArrowBarToRightIcon:hr,ArrowLeftIcon:pr,ArrowRightIcon:dr,SortAscendingIcon:fr,SortDescendingIcon:gr,UserPlusIcon:{name:"UserPlusIcon",props:{size:{type:String,default:"24"}},functional:!0,render(t,e){const n=parseInt(e.props.size)+"px",r=e.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,e.data.attrs=r,t("svg",k()([{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},class:"icon icon-tabler icon-tabler-user-plus"},e.data]),[" ",t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}})," ",t("circle",{attrs:{cx:"9",cy:"7",r:"4"}})," ",t("path",{attrs:{d:"M3 21v-2a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v2"}})," ",t("path",{attrs:{d:"M16 11h6m-3 -3v6"}})," "])}},CirclePlusIcon:{name:"CirclePlusIcon",props:{size:{type:String,default:"24"}},functional:!0,render(t,e){const n=parseInt(e.props.size)+"px",r=e.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,e.data.attrs=r,t("svg",k()([{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},class:"icon icon-tabler icon-tabler-circle-plus"},e.data]),[" ",t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}})," ",t("circle",{attrs:{cx:"12",cy:"12",r:"9"}})," ",t("line",{attrs:{x1:"9",y1:"12",x2:"15",y2:"12"}})," ",t("line",{attrs:{x1:"12",y1:"9",x2:"12",y2:"15"}})," "])}},XIcon:Wn,LockIcon:{name:"LockIcon",props:{size:{type:String,default:"24"}},functional:!0,render(t,e){const n=parseInt(e.props.size)+"px",r=e.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,e.data.attrs=r,t("svg",k()([{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},class:"icon icon-tabler icon-tabler-lock"},e.data]),[" ",t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}})," ",t("rect",{attrs:{x:"5",y:"11",width:"14",height:"10",rx:"2"}})," ",t("circle",{attrs:{cx:"12",cy:"16",r:"1"}})," ",t("path",{attrs:{d:"M8 11v-4a4 4 0 0 1 8 0v4"}})," "])}}},created(){this.getUsers(),setTimeout((()=>{this.userLookup[this.$route.params.id]&&this.update++}),500)},methods:{async submit(t,e){if(this.error="",e!==this.confirm)return;let n;this.modalLoading=!0;try{if(this.showCredentials?n=this.omeggaData.userless?await this.$$request("users.create",t,e):await this.$$request("users.passwd",this.user.username,e):this.showCreateUser&&(n=await this.$$request("users.create",t,e)),this.modalLoading=!1,!n)return void(this.showCredentials&&this.omeggaData.userless?this.logout():this.hideModals())}catch(t){console.error("error submitting form",t)}this.error=n},toggleCredentials(){this.showCredentials=!this.showCredentials,this.showCreateUser=!1,this.omeggaData.userless||(this.username=this.user.username),this.error=""},toggleAddUser(){this.showCreateUser=!this.showCreateUser,this.showCredentials=!1,this.username="",this.error=""},hideModals(){this.username="",this.password="",this.confirm="",this.showCredentials=!1,this.showCreateUser=!1,this.error=""},async getUsers(){this.loading=!0;const{users:t,total:e,pages:n}=await this.$$request("users.list",{page:this.page,search:this.search,sort:this.sort,direction:this.direction});this.pages=n,this.total=e,this.users=t,this.loading=!1},clickUser(t){this.$route.params.id!==t.username&&this.$router.push({path:`/users/${t.username}`})},doSearch:ot()((function(){this.page=0,this.getUsers()}),500),setSort(t){this.sort===t?this.direction*=-1:(this.sort=t,this.direction="name"===t?1:-1),this.getUsers()}},sockets:{},computed:{ok(){const t=0!==this.username.length||!(this.showCredentials&&!this.userless);return this.username.match(/^\w{0,32}$/)&&t&&0!==this.password.length},blank(){return 0===this.username.length&&0===this.password.length},selectedUser(){if(this.update,this.userLookup[this.$route.params.id])return this.userLookup[this.$route.params.id];const t=this.users.find((t=>t.username===this.$route.params.id));return t?t.username:"SELECT A USER"}},data:()=>({search:"",sort:"lastSeen",direction:-1,pages:0,total:0,page:0,update:0,loading:!0,users:[],showCredentials:!1,showCreateUser:!1,modalLoading:!1,error:"",username:"",password:"",confirm:""})};n(3421);var Er=i(Ar,Sr,[],!1,null,"730eff1b",null);Er.options.__file="src/webserver/frontend/views/Users.vue";const Or=Er.exports;var Tr=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("page",[n("nav-header",{attrs:{title:"History"}},[n("div",{staticClass:"calendar-container"},[n("br-button",{staticStyle:{"margin-right":"0"},attrs:{normal:"",boxy:"","data-tooltip":"Show a calendar previewing days"},on:{click:function(e){t.showCalendar=!t.showCalendar}}},[n("CalendarIcon"),t._v("\n Calendar\n ")],1),t._v(" "),t.showCalendar?n("div",{staticClass:"calendar"},[n("div",{staticClass:"year"},[n("br-button",{attrs:{icon:"",normal:"",disabled:!t.getPrevYear()},on:{click:function(e){t.setDate(t.getPrevYear())}}},[n("ArrowLeftIcon")],1),t._v("\n "+t._s(t.year)+"\n "),n("br-button",{attrs:{icon:"",normal:"",disabled:!t.getNextYear()},on:{click:function(e){t.setDate(t.getNextYear())}}},[n("ArrowRightIcon")],1)],1),t._v(" "),n("div",{staticClass:"month"},[n("br-button",{attrs:{icon:"",normal:"",disabled:!t.hasPrevMonth},on:{click:function(e){t.setDate(t.getPrevMonth())}}},[n("ArrowLeftIcon")],1),t._v("\n "+t._s(t.MONTHS[t.month])+"\n "),n("br-button",{attrs:{icon:"",normal:"",disabled:!t.hasNextMonth},on:{click:function(e){t.setDate(t.getNextMonth())}}},[n("ArrowRightIcon")],1)],1),t._v(" "),n("div",{staticClass:"calendar-days"},[n("div",{staticClass:"header days"},[t._v("S")]),t._v(" "),n("div",{staticClass:"header days"},[t._v("M")]),t._v(" "),n("div",{staticClass:"header days"},[t._v("T")]),t._v(" "),n("div",{staticClass:"header days"},[t._v("W")]),t._v(" "),n("div",{staticClass:"header days"},[t._v("T")]),t._v(" "),n("div",{staticClass:"header days"},[t._v("F")]),t._v(" "),n("div",{staticClass:"header days"},[t._v("S")]),t._v(" "),t._l(t.startDay,(function(t){return n("div",{key:"empty"+t})})),t._v(" "),t._l(t.numDays,(function(e){return n("div",{key:e,class:{days:!0,today:t.nowMonth===t.month&&t.nowYear===t.year&&t.nowDay===e,available:!(t.nowMonth===t.month&&t.nowYear===t.year&&e>t.nowDay)&&t.calendar[t.year]&&t.calendar[t.year][t.month]&&t.calendar[t.year][t.month][e]},on:{click:function(n){return t.focusDay(t.year,t.month,e)}}},[t._v("\n "+t._s(e)+"\n ")])}))],2)]):t._e()],1)]),t._v(" "),n("page-content",[n("side-nav",{attrs:{active:t.$route.name}}),t._v(" "),n("div",{staticClass:"generic-container history-container"},[n("div",{staticClass:"chat-history"},[n("div",{staticClass:"scroll-container"},[n("v-infinite-scroll",{staticClass:"scroll-scroller",attrs:{loading:t.loading,"on-top-scrolls-to-bottom":!1,offset:t.offset},on:{top:t.prevPage,bottom:t.nextPage,scroll:function(e){return t.logDir(e)}}},[t._l(t.chats,(function(e){return[e.newDay?n("div",{key:e._id+"day",staticClass:"chat-new-day"},[t._v("\n "+t._s(e.newDay)+"\n ")]):t._e(),t._v(" "),n("br-chat-entry",{key:e._id,attrs:{log:e}})]}))],2)],1),t._v(" "),n("br-loader",{attrs:{active:t.loading&&t.firstLoad,size:"huge"}},[t._v("Loading Chat")])],1)])],1)],1)};Tr._withStripped=!0;const Pr=["January","February","March","April","May","June","July","August","September","October","November","December"],Ir=(t,e=!1)=>Object.keys(t).map(Number).sort(((t,n)=>e?n-t:t-n)),Rr={components:{CalendarIcon:{name:"CalendarIcon",props:{size:{type:String,default:"24"}},functional:!0,render(t,e){const n=parseInt(e.props.size)+"px",r=e.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,e.data.attrs=r,t("svg",k()([{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},class:"icon icon-tabler icon-tabler-calendar"},e.data]),[" ",t("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}})," ",t("rect",{attrs:{x:"4",y:"5",width:"16",height:"16",rx:"2"}})," ",t("line",{attrs:{x1:"16",y1:"3",x2:"16",y2:"7"}})," ",t("line",{attrs:{x1:"8",y1:"3",x2:"8",y2:"7"}})," ",t("line",{attrs:{x1:"4",y1:"11",x2:"20",y2:"11"}})," ",t("line",{attrs:{x1:"11",y1:"15",x2:"12",y2:"15"}})," ",t("line",{attrs:{x1:"12",y1:"15",x2:"12",y2:"18"}})," "])}},ArrowLeftIcon:pr,ArrowRightIcon:dr},async created(){await this.getCalendar();const t=this.$route.params.time,e=t&&new Date(t.match(/^\d+$/)?Number(t):t);e&&e.getTime()==e.getTime()?(await this.getChats({before:e.getTime()-1}),await this.getChats({after:e.getTime()-1}),this.focused=e.getTime(),this.$el.querySelector(".focused").scrollIntoView({block:"center"})):(await this.getChats({before:Date.now()}),this.scroll())},beforeDestroy(){},destroyed(){},mounted(){},methods:{async getCalendar(){this.loading=!0,this.calendar=await this.$$request("chat.calendar"),this.loading=!1},scroll(){return new Promise((t=>{const e=this.$el.querySelector(".scroll-scroller");window.requestAnimationFrame((()=>{e.scrollTop=e.scrollHeight,t()}))}))},async focusDay(t,e,n){if(this.loading)return!1;this.chats=[];const r=new Date(t,e,n).getTime();await this.getChats({after:r})},handleChats(t,{before:e,after:n},r){if(!t.length)return;this.chats=this.chats.concat(t),this.chats.sort(((t,e)=>t.created-e.created));const i=this.chats[0].created,o=this.chats[this.chats.length-1].created;for(let t=0;t<this.chats.length;t++){const e=this.chats[t],n=new Date(e.created);e.date=n.getDate(),0===t||e.date!==this.chats[t-1].date?e.newDay=`${Pr[n.getMonth()]} ${e.date}, ${n.getFullYear()}`:e.newDay=void 0}this.min=i,this.max=o},async prevPage(){this.absMin&&this.min<=this.absMin||0===(await this.getChats({before:this.min},"top")).length&&(this.absMin=this.min)},async nextPage(){this.absMax&&this.max>=this.absMax||0===(await this.getChats({after:this.max},"bottom")).length&&(this.absMax=this.max)},async getChats({before:t,after:e},n){this.loading=!0;const r=await this.$$request("chat.history",{before:t,after:e});return this.handleChats(r,{before:t,after:e},n),requestAnimationFrame((()=>{"bottom"===n&&this.chats.length>200&&this.chats.splice(0,this.chats.length-200).map((t=>t.message)),"top"===n&&this.chats.length>200&&this.chats.splice(200,this.chats.length-200).map((t=>t.message))})),this.loading=!1,this.firstLoad=!1,r},getNextYear(){const t=Ir(this.calendar).find((t=>t>this.year));if(t)return[t,Ir(this.calendar[t])[0]]},getPrevYear(){const t=Ir(this.calendar,!0).find((t=>t<this.year));if(t)return[t,Ir(this.calendar[t],!0)[0]]},setDate([t,e]){this.month=e,this.year=t},getNextMonth(){if(11!==this.month&&this.calendar[this.year]){const t=Ir(this.calendar[this.year]).find((t=>t>this.month));if("number"==typeof t)return[this.year,t]}const t=Ir(this.calendar).find((t=>t>this.year));if(!t)return;const e=Ir(this.calendar[t])[0];return"number"==typeof e?[t,e]:void 0},getPrevMonth(){if(0!==this.month&&this.calendar[this.year]){const t=Ir(this.calendar[this.year],!0).find((t=>t<this.month));if("number"==typeof t)return[this.year,t]}const t=Ir(this.calendar,!0).find((t=>t<this.year));if(!t)return;const e=Ir(this.calendar[t],!0)[0];return"number"==typeof e?[t,e]:void 0}},sockets:{},computed:{numDays(){return new Date(this.year,this.month+1,0).getDate()},startDay(){return new Date(this.year,this.month,1).getDay()},hasNextMonth(){return!!this.getNextMonth()},hasPrevMonth(){return!!this.getPrevMonth()}},data(){const t=new Date,e=t.getMonth(),n=t.getFullYear(),r=t.getDate();return{MONTHS:Pr,offset:500,date:t,month:e,year:n,day:r,nowYear:n,nowMonth:e,nowDay:r,loading:!0,showCalendar:!1,firstLoad:!0,calendar:{},chats:[]}}};n(6770);var Mr=i(Rr,Tr,[],!1,null,"5ccb7ce7",null);Mr.options.__file="src/webserver/frontend/views/History.vue";const Nr=Mr.exports;var Dr=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("page",[n("nav-header",{attrs:{title:"Server"}}),t._v(" "),n("page-content",[n("side-nav",{attrs:{active:t.$route.name}}),t._v(" "),n("div",{staticClass:"generic-container server-container"},[n("br-header",[t._v("Server Status:\n "+t._s(t.starting?"starting":t.stopping?"stopping":t.started?"started":"stopped"))]),t._v(" "),n("div",{staticClass:"buttons"},[n("br-button",{attrs:{main:"","data-tooltip":"Start the server",disabled:t.starting||t.stopping||t.loading||t.started},on:{click:function(e){return t.start()}}},[n("PlayerPlayIcon"),t._v("\n Start\n ")],1),t._v(" "),n("br-button",{attrs:{error:"","data-tooltip":"Stop the server",disabled:t.starting||t.stopping||t.loading||!t.started},on:{click:function(e){return t.stop()}}},[n("PlayerStopIcon"),t._v("\n Stop\n ")],1),t._v(" "),n("br-button",{attrs:{warn:"","data-tooltip":"Stop the server if it's running, then start the server",disabled:t.starting||t.stopping||t.loading},on:{click:function(e){return t.restart()}}},[n("RefreshIcon"),t._v("\n Restart\n ")],1)],1),t._v(" "),n("br-dimmer",{attrs:{visible:t.showConfirm}},[n("br-modal",{attrs:{visible:""}},[n("br-header",[t._v("\n Confirmation\n ")]),t._v(" "),n("br-popout-content",[n("p",[t._v("Are you sure you want to "+t._s(t.message)+"?")])]),t._v(" "),n("br-footer",[n("br-button",{attrs:{main:""},on:{click:function(e){return t.resolve(!0)}}},[n("CheckIcon"),t._v("\n Yes\n ")],1),t._v(" "),n("div",{staticStyle:{flex:"1"}}),t._v(" "),n("br-button",{attrs:{normal:""},on:{click:function(e){return t.resolve(!1)}}},[n("XIcon"),t._v("No\n ")],1)],1)],1)],1)],1)],1)],1)};Dr._withStripped=!0;const jr={components:{PlayerStopIcon:rr,PlayerPlayIcon:nr,RefreshIcon:ir,CheckIcon:or,XIcon:Wn},created(){this.getStatus()},beforeDestroy(){this.$$emit("unsubscribe","server")},destroyed(){},mounted(){},methods:{async start(){await this.prompt("start the server")&&this.$$request("server.start")},async stop(){await this.prompt("stop the server")&&this.$$request("server.stop")},async restart(){await this.prompt("restart the server")&&(this.loading=!0,this.$$request("server.restart"))},async prompt(t){return this.showConfirm=!0,this.message=t,await new Promise((t=>{this.resolve=e=>{this.showConfirm=!1,t(e)}}))},async getStatus(){this.$$emit("subscribe","server"),this.loading=!0;const{started:t,starting:e,stopping:n}=await this.$$request("server.started");this.started=t,this.starting=e,this.stopping=n,this.loading=!1}},sockets:{status({started:t,starting:e,stopping:n}){this.started=t,this.starting=e,this.stopping=n,this.loading=!1},connect(){this.getStatus()}},computed:{},data:()=>({loading:!0,started:!1,starting:!1,stopping:!1,message:"",showConfirm:!1,resolve:void 0})};n(7443);var Lr=i(jr,Dr,[],!1,null,"1f7c5580",null);Lr.options.__file="src/webserver/frontend/views/Server.vue";const zr=Lr.exports;var $r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("page",[n("nav-header",{attrs:{title:"Not Found"}}),t._v(" "),n("page-content",[n("side-nav")],1)],1)};$r._withStripped=!0;var Br=i({},$r,[],!1,null,"722559a8",null);Br.options.__file="src/webserver/frontend/views/NotFound.vue";const Hr=new $n({mode:"history",base:"/",routes:[{name:"history",path:"/history",component:Nr,children:[{name:"history",path:"/history/:time",component:Nr}]},{name:"plugins",path:"/plugins",component:tr,children:[{name:"plugins",path:"/plugins/:id",component:cr}]},{name:"players",path:"/players",component:br,children:[{name:"players",path:"/players/:id",component:Cr}]},{name:"users",path:"/users",component:Or,children:[]},{name:"home",path:"/",component:Xn},{name:"server",path:"/server",component:zr},{name:"notfound",path:"*",component:Br.exports}]}),Ur=io(),Fr=new Un.JSONRPCServer,qr=new Un.JSONRPCClient((async t=>Ur.emit("rpc",t))),Wr=new Un.JSONRPCServerAndClient(Fr,qr);t.default.use($n),t.default.use(new(Hn())({connection:Ur})),t.default.prototype.$$request=(t,...e)=>Wr.request(t,e),t.default.prototype.$$notify=(t,...e)=>Wr.notify(t,e),t.default.prototype.$$emit=(t,...e)=>Ur.emit(t,...e);var Vr=i({router:Hr,el:"#app",data:()=>({connected:!1,disconnected:!1}),created(){},sockets:{connect(){console.log("Connected"),this.connected=!0,this.disconnected=!1},disconnect(){console.log("Disconnected"),this.connected=!1,this.disconnected=!0},data(e){console.log("data is",e),t.default.prototype.user=e.user,t.default.prototype.omeggaData=e,t.default.prototype.roles=e.roles,t.default.prototype.showLogout=e.canLogOut,this.loading=!1},rpc(t){Wr.receiveAndSend(t)}},data:()=>({loading:!1})},Gt,[],!1,null,null,null);Vr.options.__file="src/webserver/frontend/views/Main.vue";const Yr=Vr.exports;t.default.prototype.logout=()=>fetch("/api/v1/logout").then((()=>location.reload())),t.default.prototype.user={},t.default.prototype.roles=[],t.default.prototype.userLookup=[],t.default.prototype.showLogout=!1,t.default.prototype.omeggaData={},t.default.prototype.xss=t=>t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"),t.default.prototype.heartbeatAgo=t=>t<60?t+" mins":(t/=60)<24?Math.round(t)+" hours":(t/=24,Math.round(t)+" days"),t.default.prototype.duration=t=>t<0?"not yet":(t/=1e3)<5?"a moment":t<60?Math.round(t)+" secs":(t/=60)<60?Math.round(t)+" mins":(t/=60)<24?Math.round(t)+" hours":(t/=24,Math.round(t)+" days"),t.default.prototype.isoDate=e=>t.default.prototype.isoTime(e).split(" ")[0],t.default.prototype.isoTime=t=>{const e=new Date(t),n=t=>(t+"").padStart(2,"0");return e.getFullYear()+"-"+n(e.getMonth()+1)+"-"+n(e.getDate())+" "+n(e.getHours())+":"+n(e.getMinutes())+":"+n(e.getSeconds())},new t.default({el:"#app",...Yr})})()})();
|
|
3
3
|
//# sourceMappingURL=app.bundle.js.map
|