!function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/js/",n(n.s=830)}([,function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"c",(function(){return i})),n.d(t,"e",(function(){return o})),n.d(t,"d",(function(){return a})),n.d(t,"b",(function(){return s}));
/**
 * @copyright Copyright (c) 2019 Joas Schilling <coding@schilljs.com>
 *
 * @license GNU AGPL version 3 or any later version
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *
 */
const r={START_CALL:{EVERYONE:0,USERS:1,MODERATORS:2},STATE:{READ_WRITE:0,READ_ONLY:1},TYPE:{ONE_TO_ONE:1,GROUP:2,PUBLIC:3,CHANGELOG:4}},i={CALL_FLAG:{DISCONNECTED:0,IN_CALL:1,WITH_AUDIO:2,WITH_VIDEO:4},NOTIFY:{DEFAULT:0,ALWAYS:1,MENTION:2,NEVER:3},TYPE:{OWNER:1,MODERATOR:2,USER:3,GUEST:4,USER_SELF_JOINED:5,GUEST_MODERATOR:6}},o={LOBBY:{NONE:0,NON_MODERATORS:1}},a={TYPE:{USER:0,GROUP:1,EMAIL:4,REMOTE:6,CIRCLE:7}},s={MESSAGE_MODES:{NO_MENTION:1,SELF_MENTION:2,ROOM_MENTION:3}}},function(e,t,n){"use strict";function r(e,t,n,r,i,o,a,s){var c,u="function"==typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(c=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},u._ssrRegister=c):i&&(c=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),c)if(u.functional){u._injectStyles=c;var l=u.render;u.render=function(e,t){return c.call(t),l(e,t)}}else{var d=u.beforeCreate;u.beforeCreate=d?[].concat(d,c):[c]}return{exports:e,options:u}}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n(112),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=(r=n(233))&&r.__esModule?r:{default:r},o=n(57);var a=i.default.create({headers:{requesttoken:(0,o.getRequestToken)()}}),s=Object.assign(a,{CancelToken:i.default.CancelToken,isCancel:i.default.isCancel});(0,o.onRequestTokenUpdate)((function(e){return a.defaults.headers.requesttoken=e}));var c=s;t.default=c},function(e,t,n){"use strict";n(85),n(112),n(53),n(80),n(75),Object.defineProperty(t,"__esModule",{value:!0}),t.getRootUrl=t.generateFilePath=t.imagePath=t.generateUrl=t.generateOcsUrl=t.generateRemoteUrl=t.linkTo=void 0;t.linkTo=function(e,t){return r(e,"",t)};t.generateRemoteUrl=function(e){return window.location.protocol+"//"+window.location.host+function(e){return i()+"/remote.php/"+e}(e)};t.generateOcsUrl=function(e,t){return t=2!==t?1:2,window.location.protocol+"//"+window.location.host+i()+"/ocs/v"+t+".php/"+e+"/"};t.generateUrl=function(e,t,n){var r=Object.assign({escape:!0,noRewrite:!1},n||{}),o=function(e,t){return t=t||{},e.replace(/{([^{}]*)}/g,(function(e,n){var i=t[n];return r.escape?"string"==typeof i||"number"==typeof i?encodeURIComponent(i.toString()):encodeURIComponent(e):"string"==typeof i||"number"==typeof i?i.toString():e}))};return"/"!==e.charAt(0)&&(e="/"+e),!0!==OC.config.modRewriteWorking||r.noRewrite?i()+"/index.php"+o(e,t||{}):i()+o(e,t||{})};t.imagePath=function(e,t){return-1===t.indexOf(".")?r(e,"img",t+".svg"):r(e,"img",t)};var r=function(e,t,n){var r=-1!==OC.coreApps.indexOf(e),o=i();return"php"!==n.substring(n.length-3)||r?"php"===n.substring(n.length-3)||r?(o+="settings"!==e&&"core"!==e&&"search"!==e||"ajax"!==t?"/":"/index.php/",r||(o+="apps/"),""!==e&&(o+=e+="/"),t&&(o+=t+"/"),o+=n):(o=OC.appswebroots[e],t&&(o+="/"+t+"/"),"/"!==o.substring(o.length-1)&&(o+="/"),o+=n):(o+="/index.php/apps/"+e,"index.php"!==n&&(o+="/",t&&(o+=encodeURI(t+"/")),o+=n)),o};t.generateFilePath=r;var i=function(){return OC.webroot};t.getRootUrl=i},function(e,t,n){"use strict";n.r(t),function(e,n){
/*!
 * Vue.js v2.6.11
 * (c) 2014-2019 Evan You
 * Released under the MIT License.
 */
var r=Object.freeze({});function i(e){return null==e}function o(e){return null!=e}function a(e){return!0===e}function s(e){return"string"==typeof e||"number"==typeof e||"symbol"==typeof e||"boolean"==typeof e}function c(e){return null!==e&&"object"==typeof e}var u=Object.prototype.toString;function l(e){return"[object Object]"===u.call(e)}function d(e){return"[object RegExp]"===u.call(e)}function p(e){var t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)}function f(e){return o(e)&&"function"==typeof e.then&&"function"==typeof e.catch}function h(e){return null==e?"":Array.isArray(e)||l(e)&&e.toString===u?JSON.stringify(e,null,2):String(e)}function v(e){var t=parseFloat(e);return isNaN(t)?e:t}function m(e,t){for(var n=Object.create(null),r=e.split(","),i=0;i<r.length;i++)n[r[i]]=!0;return t?function(e){return n[e.toLowerCase()]}:function(e){return n[e]}}m("slot,component",!0);var g=m("key,ref,slot,slot-scope,is");function y(e,t){if(e.length){var n=e.indexOf(t);if(n>-1)return e.splice(n,1)}}var b=Object.prototype.hasOwnProperty;function S(e,t){return b.call(e,t)}function w(e){var t=Object.create(null);return function(n){return t[n]||(t[n]=e(n))}}var C=/-(\w)/g,_=w((function(e){return e.replace(C,(function(e,t){return t?t.toUpperCase():""}))})),E=w((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})),T=/\B([A-Z])/g,R=w((function(e){return e.replace(T,"-$1").toLowerCase()}));var O=Function.prototype.bind?function(e,t){return e.bind(t)}:function(e,t){function n(n){var r=arguments.length;return r?r>1?e.apply(t,arguments):e.call(t,n):e.call(t)}return n._length=e.length,n};function k(e,t){t=t||0;for(var n=e.length-t,r=new Array(n);n--;)r[n]=e[n+t];return r}function P(e,t){for(var n in t)e[n]=t[n];return e}function x(e){for(var t={},n=0;n<e.length;n++)e[n]&&P(t,e[n]);return t}function I(e,t,n){}var A=function(e,t,n){return!1},M=function(e){return e};function j(e,t){if(e===t)return!0;var n=c(e),r=c(t);if(!n||!r)return!n&&!r&&String(e)===String(t);try{var i=Array.isArray(e),o=Array.isArray(t);if(i&&o)return e.length===t.length&&e.every((function(e,n){return j(e,t[n])}));if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();if(i||o)return!1;var a=Object.keys(e),s=Object.keys(t);return a.length===s.length&&a.every((function(n){return j(e[n],t[n])}))}catch(e){return!1}}function D(e,t){for(var n=0;n<e.length;n++)if(j(e[n],t))return n;return-1}function L(e){var t=!1;return function(){t||(t=!0,e.apply(this,arguments))}}var N="data-server-rendered",F=["component","directive","filter"],U=["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:A,isReservedAttr:A,isUnknownElement:A,getTagNamespace:I,parsePlatformTagName:M,mustUseProp:A,async:!0,_lifecycleHooks:U},B=/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/;function G(e,t,n,r){Object.defineProperty(e,t,{value:n,enumerable:!!r,writable:!0,configurable:!0})}var V=new RegExp("[^"+B.source+".$_\\d]");var z,W="__proto__"in{},H="undefined"!=typeof window,q="undefined"!=typeof WXEnvironment&&!!WXEnvironment.platform,J=q&&WXEnvironment.platform.toLowerCase(),X=H&&window.navigator.userAgent.toLowerCase(),Y=X&&/msie|trident/.test(X),K=X&&X.indexOf("msie 9.0")>0,Z=X&&X.indexOf("edge/")>0,Q=(X&&X.indexOf("android"),X&&/iphone|ipad|ipod|ios/.test(X)||"ios"===J),ee=(X&&/chrome\/\d+/.test(X),X&&/phantomjs/.test(X),X&&X.match(/firefox\/(\d+)/)),te={}.watch,ne=!1;if(H)try{var re={};Object.defineProperty(re,"passive",{get:function(){ne=!0}}),window.addEventListener("test-passive",null,re)}catch(e){}var ie=function(){return void 0===z&&(z=!H&&!q&&void 0!==e&&(e.process&&"server"===e.process.env.VUE_ENV)),z},oe=H&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function ae(e){return"function"==typeof e&&/native code/.test(e.toString())}var se,ce="undefined"!=typeof Symbol&&ae(Symbol)&&"undefined"!=typeof Reflect&&ae(Reflect.ownKeys);se="undefined"!=typeof Set&&ae(Set)?Set:function(){function e(){this.set=Object.create(null)}return e.prototype.has=function(e){return!0===this.set[e]},e.prototype.add=function(e){this.set[e]=!0},e.prototype.clear=function(){this.set=Object.create(null)},e}();var ue=I,le=0,de=function(){this.id=le++,this.subs=[]};de.prototype.addSub=function(e){this.subs.push(e)},de.prototype.removeSub=function(e){y(this.subs,e)},de.prototype.depend=function(){de.target&&de.target.addDep(this)},de.prototype.notify=function(){var e=this.subs.slice();for(var t=0,n=e.length;t<n;t++)e[t].update()},de.target=null;var pe=[];function fe(e){pe.push(e),de.target=e}function he(){pe.pop(),de.target=pe[pe.length-1]}var ve=function(e,t,n,r,i,o,a,s){this.tag=e,this.data=t,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=t&&t.key,this.componentOptions=a,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=s,this.asyncMeta=void 0,this.isAsyncPlaceholder=!1},me={child:{configurable:!0}};me.child.get=function(){return this.componentInstance},Object.defineProperties(ve.prototype,me);var ge=function(e){void 0===e&&(e="");var t=new ve;return t.text=e,t.isComment=!0,t};function ye(e){return new ve(void 0,void 0,void 0,String(e))}function be(e){var t=new ve(e.tag,e.data,e.children&&e.children.slice(),e.text,e.elm,e.context,e.componentOptions,e.asyncFactory);return t.ns=e.ns,t.isStatic=e.isStatic,t.key=e.key,t.isComment=e.isComment,t.fnContext=e.fnContext,t.fnOptions=e.fnOptions,t.fnScopeId=e.fnScopeId,t.asyncMeta=e.asyncMeta,t.isCloned=!0,t}var Se=Array.prototype,we=Object.create(Se);["push","pop","shift","unshift","splice","sort","reverse"].forEach((function(e){var t=Se[e];G(we,e,(function(){for(var n=[],r=arguments.length;r--;)n[r]=arguments[r];var i,o=t.apply(this,n),a=this.__ob__;switch(e){case"push":case"unshift":i=n;break;case"splice":i=n.slice(2)}return i&&a.observeArray(i),a.dep.notify(),o}))}));var Ce=Object.getOwnPropertyNames(we),_e=!0;function Ee(e){_e=e}var Te=function(e){this.value=e,this.dep=new de,this.vmCount=0,G(e,"__ob__",this),Array.isArray(e)?(W?function(e,t){e.__proto__=t}(e,we):function(e,t,n){for(var r=0,i=n.length;r<i;r++){var o=n[r];G(e,o,t[o])}}(e,we,Ce),this.observeArray(e)):this.walk(e)};function Re(e,t){var n;if(c(e)&&!(e instanceof ve))return S(e,"__ob__")&&e.__ob__ instanceof Te?n=e.__ob__:_e&&!ie()&&(Array.isArray(e)||l(e))&&Object.isExtensible(e)&&!e._isVue&&(n=new Te(e)),t&&n&&n.vmCount++,n}function Oe(e,t,n,r,i){var o=new de,a=Object.getOwnPropertyDescriptor(e,t);if(!a||!1!==a.configurable){var s=a&&a.get,c=a&&a.set;s&&!c||2!==arguments.length||(n=e[t]);var u=!i&&Re(n);Object.defineProperty(e,t,{enumerable:!0,configurable:!0,get:function(){var t=s?s.call(e):n;return de.target&&(o.depend(),u&&(u.dep.depend(),Array.isArray(t)&&function e(t){for(var n=void 0,r=0,i=t.length;r<i;r++)(n=t[r])&&n.__ob__&&n.__ob__.dep.depend(),Array.isArray(n)&&e(n)}(t))),t},set:function(t){var r=s?s.call(e):n;t===r||t!=t&&r!=r||s&&!c||(c?c.call(e,t):n=t,u=!i&&Re(t),o.notify())}})}}function ke(e,t,n){if(Array.isArray(e)&&p(t))return e.length=Math.max(e.length,t),e.splice(t,1,n),n;if(t in e&&!(t in Object.prototype))return e[t]=n,n;var r=e.__ob__;return e._isVue||r&&r.vmCount?n:r?(Oe(r.value,t,n),r.dep.notify(),n):(e[t]=n,n)}function Pe(e,t){if(Array.isArray(e)&&p(t))e.splice(t,1);else{var n=e.__ob__;e._isVue||n&&n.vmCount||S(e,t)&&(delete e[t],n&&n.dep.notify())}}Te.prototype.walk=function(e){for(var t=Object.keys(e),n=0;n<t.length;n++)Oe(e,t[n])},Te.prototype.observeArray=function(e){for(var t=0,n=e.length;t<n;t++)Re(e[t])};var xe=$.optionMergeStrategies;function Ie(e,t){if(!t)return e;for(var n,r,i,o=ce?Reflect.ownKeys(t):Object.keys(t),a=0;a<o.length;a++)"__ob__"!==(n=o[a])&&(r=e[n],i=t[n],S(e,n)?r!==i&&l(r)&&l(i)&&Ie(r,i):ke(e,n,i));return e}function Ae(e,t,n){return n?function(){var r="function"==typeof t?t.call(n,n):t,i="function"==typeof e?e.call(n,n):e;return r?Ie(r,i):i}:t?e?function(){return Ie("function"==typeof t?t.call(this,this):t,"function"==typeof e?e.call(this,this):e)}:t:e}function Me(e,t){var n=t?e?e.concat(t):Array.isArray(t)?t:[t]:e;return n?function(e){for(var t=[],n=0;n<e.length;n++)-1===t.indexOf(e[n])&&t.push(e[n]);return t}(n):n}function je(e,t,n,r){var i=Object.create(e||null);return t?P(i,t):i}xe.data=function(e,t,n){return n?Ae(e,t,n):t&&"function"!=typeof t?e:Ae(e,t)},U.forEach((function(e){xe[e]=Me})),F.forEach((function(e){xe[e+"s"]=je})),xe.watch=function(e,t,n,r){if(e===te&&(e=void 0),t===te&&(t=void 0),!t)return Object.create(e||null);if(!e)return t;var i={};for(var o in P(i,e),t){var a=i[o],s=t[o];a&&!Array.isArray(a)&&(a=[a]),i[o]=a?a.concat(s):Array.isArray(s)?s:[s]}return i},xe.props=xe.methods=xe.inject=xe.computed=function(e,t,n,r){if(!e)return t;var i=Object.create(null);return P(i,e),t&&P(i,t),i},xe.provide=Ae;var De=function(e,t){return void 0===t?e:t};function Le(e,t,n){if("function"==typeof t&&(t=t.options),function(e,t){var n=e.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(l(n))for(var a in n)i=n[a],o[_(a)]=l(i)?i:{type:i};else 0;e.props=o}}(t),function(e,t){var n=e.inject;if(n){var r=e.inject={};if(Array.isArray(n))for(var i=0;i<n.length;i++)r[n[i]]={from:n[i]};else if(l(n))for(var o in n){var a=n[o];r[o]=l(a)?P({from:o},a):{from:a}}else 0}}(t),function(e){var t=e.directives;if(t)for(var n in t){var r=t[n];"function"==typeof r&&(t[n]={bind:r,update:r})}}(t),!t._base&&(t.extends&&(e=Le(e,t.extends,n)),t.mixins))for(var r=0,i=t.mixins.length;r<i;r++)e=Le(e,t.mixins[r],n);var o,a={};for(o in e)s(o);for(o in t)S(e,o)||s(o);function s(r){var i=xe[r]||De;a[r]=i(e[r],t[r],n,r)}return a}function Ne(e,t,n,r){if("string"==typeof n){var i=e[t];if(S(i,n))return i[n];var o=_(n);if(S(i,o))return i[o];var a=E(o);return S(i,a)?i[a]:i[n]||i[o]||i[a]}}function Fe(e,t,n,r){var i=t[e],o=!S(n,e),a=n[e],s=Be(Boolean,i.type);if(s>-1)if(o&&!S(i,"default"))a=!1;else if(""===a||a===R(e)){var c=Be(String,i.type);(c<0||s<c)&&(a=!0)}if(void 0===a){a=function(e,t,n){if(!S(t,"default"))return;var r=t.default;0;if(e&&e.$options.propsData&&void 0===e.$options.propsData[n]&&void 0!==e._props[n])return e._props[n];return"function"==typeof r&&"Function"!==Ue(t.type)?r.call(e):r}(r,i,e);var u=_e;Ee(!0),Re(a),Ee(u)}return a}function Ue(e){var t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:""}function $e(e,t){return Ue(e)===Ue(t)}function Be(e,t){if(!Array.isArray(t))return $e(t,e)?0:-1;for(var n=0,r=t.length;n<r;n++)if($e(t[n],e))return n;return-1}function Ge(e,t,n){fe();try{if(t)for(var r=t;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,e,t,n))return}catch(e){ze(e,r,"errorCaptured hook")}}ze(e,t,n)}finally{he()}}function Ve(e,t,n,r,i){var o;try{(o=n?e.apply(t,n):e.call(t))&&!o._isVue&&f(o)&&!o._handled&&(o.catch((function(e){return Ge(e,r,i+" (Promise/async)")})),o._handled=!0)}catch(e){Ge(e,r,i)}return o}function ze(e,t,n){if($.errorHandler)try{return $.errorHandler.call(null,e,t,n)}catch(t){t!==e&&We(t,null,"config.errorHandler")}We(e,t,n)}function We(e,t,n){if(!H&&!q||"undefined"==typeof console)throw e;console.error(e)}var He,qe=!1,Je=[],Xe=!1;function Ye(){Xe=!1;var e=Je.slice(0);Je.length=0;for(var t=0;t<e.length;t++)e[t]()}if("undefined"!=typeof Promise&&ae(Promise)){var Ke=Promise.resolve();He=function(){Ke.then(Ye),Q&&setTimeout(I)},qe=!0}else if(Y||"undefined"==typeof MutationObserver||!ae(MutationObserver)&&"[object MutationObserverConstructor]"!==MutationObserver.toString())He=void 0!==n&&ae(n)?function(){n(Ye)}:function(){setTimeout(Ye,0)};else{var Ze=1,Qe=new MutationObserver(Ye),et=document.createTextNode(String(Ze));Qe.observe(et,{characterData:!0}),He=function(){Ze=(Ze+1)%2,et.data=String(Ze)},qe=!0}function tt(e,t){var n;if(Je.push((function(){if(e)try{e.call(t)}catch(e){Ge(e,t,"nextTick")}else n&&n(t)})),Xe||(Xe=!0,He()),!e&&"undefined"!=typeof Promise)return new Promise((function(e){n=e}))}var nt=new se;function rt(e){!function e(t,n){var r,i,o=Array.isArray(t);if(!o&&!c(t)||Object.isFrozen(t)||t instanceof ve)return;if(t.__ob__){var a=t.__ob__.dep.id;if(n.has(a))return;n.add(a)}if(o)for(r=t.length;r--;)e(t[r],n);else for(i=Object.keys(t),r=i.length;r--;)e(t[i[r]],n)}(e,nt),nt.clear()}var it=w((function(e){var t="&"===e.charAt(0),n="~"===(e=t?e.slice(1):e).charAt(0),r="!"===(e=n?e.slice(1):e).charAt(0);return{name:e=r?e.slice(1):e,once:n,capture:r,passive:t}}));function ot(e,t){function n(){var e=arguments,r=n.fns;if(!Array.isArray(r))return Ve(r,null,arguments,t,"v-on handler");for(var i=r.slice(),o=0;o<i.length;o++)Ve(i[o],null,e,t,"v-on handler")}return n.fns=e,n}function at(e,t,n,r,o,s){var c,u,l,d;for(c in e)u=e[c],l=t[c],d=it(c),i(u)||(i(l)?(i(u.fns)&&(u=e[c]=ot(u,s)),a(d.once)&&(u=e[c]=o(d.name,u,d.capture)),n(d.name,u,d.capture,d.passive,d.params)):u!==l&&(l.fns=u,e[c]=l));for(c in t)i(e[c])&&r((d=it(c)).name,t[c],d.capture)}function st(e,t,n){var r;e instanceof ve&&(e=e.data.hook||(e.data.hook={}));var s=e[t];function c(){n.apply(this,arguments),y(r.fns,c)}i(s)?r=ot([c]):o(s.fns)&&a(s.merged)?(r=s).fns.push(c):r=ot([s,c]),r.merged=!0,e[t]=r}function ct(e,t,n,r,i){if(o(t)){if(S(t,n))return e[n]=t[n],i||delete t[n],!0;if(S(t,r))return e[n]=t[r],i||delete t[r],!0}return!1}function ut(e){return s(e)?[ye(e)]:Array.isArray(e)?function e(t,n){var r,c,u,l,d=[];for(r=0;r<t.length;r++)i(c=t[r])||"boolean"==typeof c||(u=d.length-1,l=d[u],Array.isArray(c)?c.length>0&&(lt((c=e(c,(n||"")+"_"+r))[0])&&lt(l)&&(d[u]=ye(l.text+c[0].text),c.shift()),d.push.apply(d,c)):s(c)?lt(l)?d[u]=ye(l.text+c):""!==c&&d.push(ye(c)):lt(c)&&lt(l)?d[u]=ye(l.text+c.text):(a(t._isVList)&&o(c.tag)&&i(c.key)&&o(n)&&(c.key="__vlist"+n+"_"+r+"__"),d.push(c)));return d}(e):void 0}function lt(e){return o(e)&&o(e.text)&&!1===e.isComment}function dt(e,t){if(e){for(var n=Object.create(null),r=ce?Reflect.ownKeys(e):Object.keys(e),i=0;i<r.length;i++){var o=r[i];if("__ob__"!==o){for(var a=e[o].from,s=t;s;){if(s._provided&&S(s._provided,a)){n[o]=s._provided[a];break}s=s.$parent}if(!s)if("default"in e[o]){var c=e[o].default;n[o]="function"==typeof c?c.call(t):c}else 0}}return n}}function pt(e,t){if(!e||!e.length)return{};for(var n={},r=0,i=e.length;r<i;r++){var o=e[r],a=o.data;if(a&&a.attrs&&a.attrs.slot&&delete a.attrs.slot,o.context!==t&&o.fnContext!==t||!a||null==a.slot)(n.default||(n.default=[])).push(o);else{var s=a.slot,c=n[s]||(n[s]=[]);"template"===o.tag?c.push.apply(c,o.children||[]):c.push(o)}}for(var u in n)n[u].every(ft)&&delete n[u];return n}function ft(e){return e.isComment&&!e.asyncFactory||" "===e.text}function ht(e,t,n){var i,o=Object.keys(t).length>0,a=e?!!e.$stable:!o,s=e&&e.$key;if(e){if(e._normalized)return e._normalized;if(a&&n&&n!==r&&s===n.$key&&!o&&!n.$hasNormal)return n;for(var c in i={},e)e[c]&&"$"!==c[0]&&(i[c]=vt(t,c,e[c]))}else i={};for(var u in t)u in i||(i[u]=mt(t,u));return e&&Object.isExtensible(e)&&(e._normalized=i),G(i,"$stable",a),G(i,"$key",s),G(i,"$hasNormal",o),i}function vt(e,t,n){var r=function(){var e=arguments.length?n.apply(null,arguments):n({});return(e=e&&"object"==typeof e&&!Array.isArray(e)?[e]:ut(e))&&(0===e.length||1===e.length&&e[0].isComment)?void 0:e};return n.proxy&&Object.defineProperty(e,t,{get:r,enumerable:!0,configurable:!0}),r}function mt(e,t){return function(){return e[t]}}function gt(e,t){var n,r,i,a,s;if(Array.isArray(e)||"string"==typeof e)for(n=new Array(e.length),r=0,i=e.length;r<i;r++)n[r]=t(e[r],r);else if("number"==typeof e)for(n=new Array(e),r=0;r<e;r++)n[r]=t(r+1,r);else if(c(e))if(ce&&e[Symbol.iterator]){n=[];for(var u=e[Symbol.iterator](),l=u.next();!l.done;)n.push(t(l.value,n.length)),l=u.next()}else for(a=Object.keys(e),n=new Array(a.length),r=0,i=a.length;r<i;r++)s=a[r],n[r]=t(e[s],s,r);return o(n)||(n=[]),n._isVList=!0,n}function yt(e,t,n,r){var i,o=this.$scopedSlots[e];o?(n=n||{},r&&(n=P(P({},r),n)),i=o(n)||t):i=this.$slots[e]||t;var a=n&&n.slot;return a?this.$createElement("template",{slot:a},i):i}function bt(e){return Ne(this.$options,"filters",e)||M}function St(e,t){return Array.isArray(e)?-1===e.indexOf(t):e!==t}function wt(e,t,n,r,i){var o=$.keyCodes[t]||n;return i&&r&&!$.keyCodes[t]?St(i,r):o?St(o,e):r?R(r)!==t:void 0}function Ct(e,t,n,r,i){if(n)if(c(n)){var o;Array.isArray(n)&&(n=x(n));var a=function(a){if("class"===a||"style"===a||g(a))o=e;else{var s=e.attrs&&e.attrs.type;o=r||$.mustUseProp(t,s,a)?e.domProps||(e.domProps={}):e.attrs||(e.attrs={})}var c=_(a),u=R(a);c in o||u in o||(o[a]=n[a],i&&((e.on||(e.on={}))["update:"+a]=function(e){n[a]=e}))};for(var s in n)a(s)}else;return e}function _t(e,t){var n=this._staticTrees||(this._staticTrees=[]),r=n[e];return r&&!t?r:(Tt(r=n[e]=this.$options.staticRenderFns[e].call(this._renderProxy,null,this),"__static__"+e,!1),r)}function Et(e,t,n){return Tt(e,"__once__"+t+(n?"_"+n:""),!0),e}function Tt(e,t,n){if(Array.isArray(e))for(var r=0;r<e.length;r++)e[r]&&"string"!=typeof e[r]&&Rt(e[r],t+"_"+r,n);else Rt(e,t,n)}function Rt(e,t,n){e.isStatic=!0,e.key=t,e.isOnce=n}function Ot(e,t){if(t)if(l(t)){var n=e.on=e.on?P({},e.on):{};for(var r in t){var i=n[r],o=t[r];n[r]=i?[].concat(i,o):o}}else;return e}function kt(e,t,n,r){t=t||{$stable:!n};for(var i=0;i<e.length;i++){var o=e[i];Array.isArray(o)?kt(o,t,n):o&&(o.proxy&&(o.fn.proxy=!0),t[o.key]=o.fn)}return r&&(t.$key=r),t}function Pt(e,t){for(var n=0;n<t.length;n+=2){var r=t[n];"string"==typeof r&&r&&(e[t[n]]=t[n+1])}return e}function xt(e,t){return"string"==typeof e?t+e:e}function It(e){e._o=Et,e._n=v,e._s=h,e._l=gt,e._t=yt,e._q=j,e._i=D,e._m=_t,e._f=bt,e._k=wt,e._b=Ct,e._v=ye,e._e=ge,e._u=kt,e._g=Ot,e._d=Pt,e._p=xt}function At(e,t,n,i,o){var s,c=this,u=o.options;S(i,"_uid")?(s=Object.create(i))._original=i:(s=i,i=i._original);var l=a(u._compiled),d=!l;this.data=e,this.props=t,this.children=n,this.parent=i,this.listeners=e.on||r,this.injections=dt(u.inject,i),this.slots=function(){return c.$slots||ht(e.scopedSlots,c.$slots=pt(n,i)),c.$slots},Object.defineProperty(this,"scopedSlots",{enumerable:!0,get:function(){return ht(e.scopedSlots,this.slots())}}),l&&(this.$options=u,this.$slots=this.slots(),this.$scopedSlots=ht(e.scopedSlots,this.$slots)),u._scopeId?this._c=function(e,t,n,r){var o=Bt(s,e,t,n,r,d);return o&&!Array.isArray(o)&&(o.fnScopeId=u._scopeId,o.fnContext=i),o}:this._c=function(e,t,n,r){return Bt(s,e,t,n,r,d)}}function Mt(e,t,n,r,i){var o=be(e);return o.fnContext=n,o.fnOptions=r,t.slot&&((o.data||(o.data={})).slot=t.slot),o}function jt(e,t){for(var n in t)e[_(n)]=t[n]}It(At.prototype);var Dt={init:function(e,t){if(e.componentInstance&&!e.componentInstance._isDestroyed&&e.data.keepAlive){var n=e;Dt.prepatch(n,n)}else{(e.componentInstance=function(e,t){var n={_isComponent:!0,_parentVnode:e,parent:t},r=e.data.inlineTemplate;o(r)&&(n.render=r.render,n.staticRenderFns=r.staticRenderFns);return new e.componentOptions.Ctor(n)}(e,Kt)).$mount(t?e.elm:void 0,t)}},prepatch:function(e,t){var n=t.componentOptions;!function(e,t,n,i,o){0;var a=i.data.scopedSlots,s=e.$scopedSlots,c=!!(a&&!a.$stable||s!==r&&!s.$stable||a&&e.$scopedSlots.$key!==a.$key),u=!!(o||e.$options._renderChildren||c);e.$options._parentVnode=i,e.$vnode=i,e._vnode&&(e._vnode.parent=i);if(e.$options._renderChildren=o,e.$attrs=i.data.attrs||r,e.$listeners=n||r,t&&e.$options.props){Ee(!1);for(var l=e._props,d=e.$options._propKeys||[],p=0;p<d.length;p++){var f=d[p],h=e.$options.props;l[f]=Fe(f,h,t,e)}Ee(!0),e.$options.propsData=t}n=n||r;var v=e.$options._parentListeners;e.$options._parentListeners=n,Yt(e,n,v),u&&(e.$slots=pt(o,i.context),e.$forceUpdate());0}(t.componentInstance=e.componentInstance,n.propsData,n.listeners,t,n.children)},insert:function(e){var t,n=e.context,r=e.componentInstance;r._isMounted||(r._isMounted=!0,tn(r,"mounted")),e.data.keepAlive&&(n._isMounted?((t=r)._inactive=!1,rn.push(t)):en(r,!0))},destroy:function(e){var t=e.componentInstance;t._isDestroyed||(e.data.keepAlive?function e(t,n){if(n&&(t._directInactive=!0,Qt(t)))return;if(!t._inactive){t._inactive=!0;for(var r=0;r<t.$children.length;r++)e(t.$children[r]);tn(t,"deactivated")}}(t,!0):t.$destroy())}},Lt=Object.keys(Dt);function Nt(e,t,n,s,u){if(!i(e)){var l=n.$options._base;if(c(e)&&(e=l.extend(e)),"function"==typeof e){var d;if(i(e.cid)&&void 0===(e=function(e,t){if(a(e.error)&&o(e.errorComp))return e.errorComp;if(o(e.resolved))return e.resolved;var n=Vt;n&&o(e.owners)&&-1===e.owners.indexOf(n)&&e.owners.push(n);if(a(e.loading)&&o(e.loadingComp))return e.loadingComp;if(n&&!o(e.owners)){var r=e.owners=[n],s=!0,u=null,l=null;n.$on("hook:destroyed",(function(){return y(r,n)}));var d=function(e){for(var t=0,n=r.length;t<n;t++)r[t].$forceUpdate();e&&(r.length=0,null!==u&&(clearTimeout(u),u=null),null!==l&&(clearTimeout(l),l=null))},p=L((function(n){e.resolved=zt(n,t),s?r.length=0:d(!0)})),h=L((function(t){o(e.errorComp)&&(e.error=!0,d(!0))})),v=e(p,h);return c(v)&&(f(v)?i(e.resolved)&&v.then(p,h):f(v.component)&&(v.component.then(p,h),o(v.error)&&(e.errorComp=zt(v.error,t)),o(v.loading)&&(e.loadingComp=zt(v.loading,t),0===v.delay?e.loading=!0:u=setTimeout((function(){u=null,i(e.resolved)&&i(e.error)&&(e.loading=!0,d(!1))}),v.delay||200)),o(v.timeout)&&(l=setTimeout((function(){l=null,i(e.resolved)&&h(null)}),v.timeout)))),s=!1,e.loading?e.loadingComp:e.resolved}}(d=e,l)))return function(e,t,n,r,i){var o=ge();return o.asyncFactory=e,o.asyncMeta={data:t,context:n,children:r,tag:i},o}(d,t,n,s,u);t=t||{},En(e),o(t.model)&&function(e,t){var n=e.model&&e.model.prop||"value",r=e.model&&e.model.event||"input";(t.attrs||(t.attrs={}))[n]=t.model.value;var i=t.on||(t.on={}),a=i[r],s=t.model.callback;o(a)?(Array.isArray(a)?-1===a.indexOf(s):a!==s)&&(i[r]=[s].concat(a)):i[r]=s}(e.options,t);var p=function(e,t,n){var r=t.options.props;if(!i(r)){var a={},s=e.attrs,c=e.props;if(o(s)||o(c))for(var u in r){var l=R(u);ct(a,c,u,l,!0)||ct(a,s,u,l,!1)}return a}}(t,e);if(a(e.options.functional))return function(e,t,n,i,a){var s=e.options,c={},u=s.props;if(o(u))for(var l in u)c[l]=Fe(l,u,t||r);else o(n.attrs)&&jt(c,n.attrs),o(n.props)&&jt(c,n.props);var d=new At(n,c,a,i,e),p=s.render.call(null,d._c,d);if(p instanceof ve)return Mt(p,n,d.parent,s,d);if(Array.isArray(p)){for(var f=ut(p)||[],h=new Array(f.length),v=0;v<f.length;v++)h[v]=Mt(f[v],n,d.parent,s,d);return h}}(e,p,t,n,s);var h=t.on;if(t.on=t.nativeOn,a(e.options.abstract)){var v=t.slot;t={},v&&(t.slot=v)}!function(e){for(var t=e.hook||(e.hook={}),n=0;n<Lt.length;n++){var r=Lt[n],i=t[r],o=Dt[r];i===o||i&&i._merged||(t[r]=i?Ft(o,i):o)}}(t);var m=e.options.name||u;return new ve("vue-component-"+e.cid+(m?"-"+m:""),t,void 0,void 0,void 0,n,{Ctor:e,propsData:p,listeners:h,tag:u,children:s},d)}}}function Ft(e,t){var n=function(n,r){e(n,r),t(n,r)};return n._merged=!0,n}var Ut=1,$t=2;function Bt(e,t,n,r,u,l){return(Array.isArray(n)||s(n))&&(u=r,r=n,n=void 0),a(l)&&(u=$t),function(e,t,n,r,s){if(o(n)&&o(n.__ob__))return ge();o(n)&&o(n.is)&&(t=n.is);if(!t)return ge();0;Array.isArray(r)&&"function"==typeof r[0]&&((n=n||{}).scopedSlots={default:r[0]},r.length=0);s===$t?r=ut(r):s===Ut&&(r=function(e){for(var t=0;t<e.length;t++)if(Array.isArray(e[t]))return Array.prototype.concat.apply([],e);return e}(r));var u,l;if("string"==typeof t){var d;l=e.$vnode&&e.$vnode.ns||$.getTagNamespace(t),u=$.isReservedTag(t)?new ve($.parsePlatformTagName(t),n,r,void 0,void 0,e):n&&n.pre||!o(d=Ne(e.$options,"components",t))?new ve(t,n,r,void 0,void 0,e):Nt(d,n,e,r,t)}else u=Nt(t,n,e,r);return Array.isArray(u)?u:o(u)?(o(l)&&function e(t,n,r){t.ns=n,"foreignObject"===t.tag&&(n=void 0,r=!0);if(o(t.children))for(var s=0,c=t.children.length;s<c;s++){var u=t.children[s];o(u.tag)&&(i(u.ns)||a(r)&&"svg"!==u.tag)&&e(u,n,r)}}(u,l),o(n)&&function(e){c(e.style)&&rt(e.style);c(e.class)&&rt(e.class)}(n),u):ge()}(e,t,n,r,u)}var Gt,Vt=null;function zt(e,t){return(e.__esModule||ce&&"Module"===e[Symbol.toStringTag])&&(e=e.default),c(e)?t.extend(e):e}function Wt(e){return e.isComment&&e.asyncFactory}function Ht(e){if(Array.isArray(e))for(var t=0;t<e.length;t++){var n=e[t];if(o(n)&&(o(n.componentOptions)||Wt(n)))return n}}function qt(e,t){Gt.$on(e,t)}function Jt(e,t){Gt.$off(e,t)}function Xt(e,t){var n=Gt;return function r(){var i=t.apply(null,arguments);null!==i&&n.$off(e,r)}}function Yt(e,t,n){Gt=e,at(t,n||{},qt,Jt,Xt,e),Gt=void 0}var Kt=null;function Zt(e){var t=Kt;return Kt=e,function(){Kt=t}}function Qt(e){for(;e&&(e=e.$parent);)if(e._inactive)return!0;return!1}function en(e,t){if(t){if(e._directInactive=!1,Qt(e))return}else if(e._directInactive)return;if(e._inactive||null===e._inactive){e._inactive=!1;for(var n=0;n<e.$children.length;n++)en(e.$children[n]);tn(e,"activated")}}function tn(e,t){fe();var n=e.$options[t],r=t+" hook";if(n)for(var i=0,o=n.length;i<o;i++)Ve(n[i],e,null,e,r);e._hasHookEvent&&e.$emit("hook:"+t),he()}var nn=[],rn=[],on={},an=!1,sn=!1,cn=0;var un=0,ln=Date.now;if(H&&!Y){var dn=window.performance;dn&&"function"==typeof dn.now&&ln()>document.createEvent("Event").timeStamp&&(ln=function(){return dn.now()})}function pn(){var e,t;for(un=ln(),sn=!0,nn.sort((function(e,t){return e.id-t.id})),cn=0;cn<nn.length;cn++)(e=nn[cn]).before&&e.before(),t=e.id,on[t]=null,e.run();var n=rn.slice(),r=nn.slice();cn=nn.length=rn.length=0,on={},an=sn=!1,function(e){for(var t=0;t<e.length;t++)e[t]._inactive=!0,en(e[t],!0)}(n),function(e){var t=e.length;for(;t--;){var n=e[t],r=n.vm;r._watcher===n&&r._isMounted&&!r._isDestroyed&&tn(r,"updated")}}(r),oe&&$.devtools&&oe.emit("flush")}var fn=0,hn=function(e,t,n,r,i){this.vm=e,i&&(e._watcher=this),e._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=++fn,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new se,this.newDepIds=new se,this.expression="","function"==typeof t?this.getter=t:(this.getter=function(e){if(!V.test(e)){var t=e.split(".");return function(e){for(var n=0;n<t.length;n++){if(!e)return;e=e[t[n]]}return e}}}(t),this.getter||(this.getter=I)),this.value=this.lazy?void 0:this.get()};hn.prototype.get=function(){var e;fe(this);var t=this.vm;try{e=this.getter.call(t,t)}catch(e){if(!this.user)throw e;Ge(e,t,'getter for watcher "'+this.expression+'"')}finally{this.deep&&rt(e),he(),this.cleanupDeps()}return e},hn.prototype.addDep=function(e){var t=e.id;this.newDepIds.has(t)||(this.newDepIds.add(t),this.newDeps.push(e),this.depIds.has(t)||e.addSub(this))},hn.prototype.cleanupDeps=function(){for(var e=this.deps.length;e--;){var t=this.deps[e];this.newDepIds.has(t.id)||t.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},hn.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():function(e){var t=e.id;if(null==on[t]){if(on[t]=!0,sn){for(var n=nn.length-1;n>cn&&nn[n].id>e.id;)n--;nn.splice(n+1,0,e)}else nn.push(e);an||(an=!0,tt(pn))}}(this)},hn.prototype.run=function(){if(this.active){var e=this.get();if(e!==this.value||c(e)||this.deep){var t=this.value;if(this.value=e,this.user)try{this.cb.call(this.vm,e,t)}catch(e){Ge(e,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,e,t)}}},hn.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},hn.prototype.depend=function(){for(var e=this.deps.length;e--;)this.deps[e].depend()},hn.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||y(this.vm._watchers,this);for(var e=this.deps.length;e--;)this.deps[e].removeSub(this);this.active=!1}};var vn={enumerable:!0,configurable:!0,get:I,set:I};function mn(e,t,n){vn.get=function(){return this[t][n]},vn.set=function(e){this[t][n]=e},Object.defineProperty(e,n,vn)}function gn(e){e._watchers=[];var t=e.$options;t.props&&function(e,t){var n=e.$options.propsData||{},r=e._props={},i=e.$options._propKeys=[];e.$parent&&Ee(!1);var o=function(o){i.push(o);var a=Fe(o,t,n,e);Oe(r,o,a),o in e||mn(e,"_props",o)};for(var a in t)o(a);Ee(!0)}(e,t.props),t.methods&&function(e,t){e.$options.props;for(var n in t)e[n]="function"!=typeof t[n]?I:O(t[n],e)}(e,t.methods),t.data?function(e){var t=e.$options.data;l(t=e._data="function"==typeof t?function(e,t){fe();try{return e.call(t,t)}catch(e){return Ge(e,t,"data()"),{}}finally{he()}}(t,e):t||{})||(t={});var n=Object.keys(t),r=e.$options.props,i=(e.$options.methods,n.length);for(;i--;){var o=n[i];0,r&&S(r,o)||(a=void 0,36!==(a=(o+"").charCodeAt(0))&&95!==a&&mn(e,"_data",o))}var a;Re(t,!0)}(e):Re(e._data={},!0),t.computed&&function(e,t){var n=e._computedWatchers=Object.create(null),r=ie();for(var i in t){var o=t[i],a="function"==typeof o?o:o.get;0,r||(n[i]=new hn(e,a||I,I,yn)),i in e||bn(e,i,o)}}(e,t.computed),t.watch&&t.watch!==te&&function(e,t){for(var n in t){var r=t[n];if(Array.isArray(r))for(var i=0;i<r.length;i++)Cn(e,n,r[i]);else Cn(e,n,r)}}(e,t.watch)}var yn={lazy:!0};function bn(e,t,n){var r=!ie();"function"==typeof n?(vn.get=r?Sn(t):wn(n),vn.set=I):(vn.get=n.get?r&&!1!==n.cache?Sn(t):wn(n.get):I,vn.set=n.set||I),Object.defineProperty(e,t,vn)}function Sn(e){return function(){var t=this._computedWatchers&&this._computedWatchers[e];if(t)return t.dirty&&t.evaluate(),de.target&&t.depend(),t.value}}function wn(e){return function(){return e.call(this,this)}}function Cn(e,t,n,r){return l(n)&&(r=n,n=n.handler),"string"==typeof n&&(n=e[n]),e.$watch(t,n,r)}var _n=0;function En(e){var t=e.options;if(e.super){var n=En(e.super);if(n!==e.superOptions){e.superOptions=n;var r=function(e){var t,n=e.options,r=e.sealedOptions;for(var i in n)n[i]!==r[i]&&(t||(t={}),t[i]=n[i]);return t}(e);r&&P(e.extendOptions,r),(t=e.options=Le(n,e.extendOptions)).name&&(t.components[t.name]=e)}}return t}function Tn(e){this._init(e)}function Rn(e){e.cid=0;var t=1;e.extend=function(e){e=e||{};var n=this,r=n.cid,i=e._Ctor||(e._Ctor={});if(i[r])return i[r];var o=e.name||n.options.name;var a=function(e){this._init(e)};return(a.prototype=Object.create(n.prototype)).constructor=a,a.cid=t++,a.options=Le(n.options,e),a.super=n,a.options.props&&function(e){var t=e.options.props;for(var n in t)mn(e.prototype,"_props",n)}(a),a.options.computed&&function(e){var t=e.options.computed;for(var n in t)bn(e.prototype,n,t[n])}(a),a.extend=n.extend,a.mixin=n.mixin,a.use=n.use,F.forEach((function(e){a[e]=n[e]})),o&&(a.options.components[o]=a),a.superOptions=n.options,a.extendOptions=e,a.sealedOptions=P({},a.options),i[r]=a,a}}function On(e){return e&&(e.Ctor.options.name||e.tag)}function kn(e,t){return Array.isArray(e)?e.indexOf(t)>-1:"string"==typeof e?e.split(",").indexOf(t)>-1:!!d(e)&&e.test(t)}function Pn(e,t){var n=e.cache,r=e.keys,i=e._vnode;for(var o in n){var a=n[o];if(a){var s=On(a.componentOptions);s&&!t(s)&&xn(n,o,r,i)}}}function xn(e,t,n,r){var i=e[t];!i||r&&i.tag===r.tag||i.componentInstance.$destroy(),e[t]=null,y(n,t)}!function(e){e.prototype._init=function(e){var t=this;t._uid=_n++,t._isVue=!0,e&&e._isComponent?function(e,t){var n=e.$options=Object.create(e.constructor.options),r=t._parentVnode;n.parent=t.parent,n._parentVnode=r;var i=r.componentOptions;n.propsData=i.propsData,n._parentListeners=i.listeners,n._renderChildren=i.children,n._componentTag=i.tag,t.render&&(n.render=t.render,n.staticRenderFns=t.staticRenderFns)}(t,e):t.$options=Le(En(t.constructor),e||{},t),t._renderProxy=t,t._self=t,function(e){var t=e.$options,n=t.parent;if(n&&!t.abstract){for(;n.$options.abstract&&n.$parent;)n=n.$parent;n.$children.push(e)}e.$parent=n,e.$root=n?n.$root:e,e.$children=[],e.$refs={},e._watcher=null,e._inactive=null,e._directInactive=!1,e._isMounted=!1,e._isDestroyed=!1,e._isBeingDestroyed=!1}(t),function(e){e._events=Object.create(null),e._hasHookEvent=!1;var t=e.$options._parentListeners;t&&Yt(e,t)}(t),function(e){e._vnode=null,e._staticTrees=null;var t=e.$options,n=e.$vnode=t._parentVnode,i=n&&n.context;e.$slots=pt(t._renderChildren,i),e.$scopedSlots=r,e._c=function(t,n,r,i){return Bt(e,t,n,r,i,!1)},e.$createElement=function(t,n,r,i){return Bt(e,t,n,r,i,!0)};var o=n&&n.data;Oe(e,"$attrs",o&&o.attrs||r,null,!0),Oe(e,"$listeners",t._parentListeners||r,null,!0)}(t),tn(t,"beforeCreate"),function(e){var t=dt(e.$options.inject,e);t&&(Ee(!1),Object.keys(t).forEach((function(n){Oe(e,n,t[n])})),Ee(!0))}(t),gn(t),function(e){var t=e.$options.provide;t&&(e._provided="function"==typeof t?t.call(e):t)}(t),tn(t,"created"),t.$options.el&&t.$mount(t.$options.el)}}(Tn),function(e){var t={get:function(){return this._data}},n={get:function(){return this._props}};Object.defineProperty(e.prototype,"$data",t),Object.defineProperty(e.prototype,"$props",n),e.prototype.$set=ke,e.prototype.$delete=Pe,e.prototype.$watch=function(e,t,n){if(l(t))return Cn(this,e,t,n);(n=n||{}).user=!0;var r=new hn(this,e,t,n);if(n.immediate)try{t.call(this,r.value)}catch(e){Ge(e,this,'callback for immediate watcher "'+r.expression+'"')}return function(){r.teardown()}}}(Tn),function(e){var t=/^hook:/;e.prototype.$on=function(e,n){var r=this;if(Array.isArray(e))for(var i=0,o=e.length;i<o;i++)r.$on(e[i],n);else(r._events[e]||(r._events[e]=[])).push(n),t.test(e)&&(r._hasHookEvent=!0);return r},e.prototype.$once=function(e,t){var n=this;function r(){n.$off(e,r),t.apply(n,arguments)}return r.fn=t,n.$on(e,r),n},e.prototype.$off=function(e,t){var n=this;if(!arguments.length)return n._events=Object.create(null),n;if(Array.isArray(e)){for(var r=0,i=e.length;r<i;r++)n.$off(e[r],t);return n}var o,a=n._events[e];if(!a)return n;if(!t)return n._events[e]=null,n;for(var s=a.length;s--;)if((o=a[s])===t||o.fn===t){a.splice(s,1);break}return n},e.prototype.$emit=function(e){var t=this,n=t._events[e];if(n){n=n.length>1?k(n):n;for(var r=k(arguments,1),i='event handler for "'+e+'"',o=0,a=n.length;o<a;o++)Ve(n[o],t,r,t,i)}return t}}(Tn),function(e){e.prototype._update=function(e,t){var n=this,r=n.$el,i=n._vnode,o=Zt(n);n._vnode=e,n.$el=i?n.__patch__(i,e):n.__patch__(n.$el,e,t,!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)},e.prototype.$forceUpdate=function(){this._watcher&&this._watcher.update()},e.prototype.$destroy=function(){var e=this;if(!e._isBeingDestroyed){tn(e,"beforeDestroy"),e._isBeingDestroyed=!0;var t=e.$parent;!t||t._isBeingDestroyed||e.$options.abstract||y(t.$children,e),e._watcher&&e._watcher.teardown();for(var n=e._watchers.length;n--;)e._watchers[n].teardown();e._data.__ob__&&e._data.__ob__.vmCount--,e._isDestroyed=!0,e.__patch__(e._vnode,null),tn(e,"destroyed"),e.$off(),e.$el&&(e.$el.__vue__=null),e.$vnode&&(e.$vnode.parent=null)}}}(Tn),function(e){It(e.prototype),e.prototype.$nextTick=function(e){return tt(e,this)},e.prototype._render=function(){var e,t=this,n=t.$options,r=n.render,i=n._parentVnode;i&&(t.$scopedSlots=ht(i.data.scopedSlots,t.$slots,t.$scopedSlots)),t.$vnode=i;try{Vt=t,e=r.call(t._renderProxy,t.$createElement)}catch(n){Ge(n,t,"render"),e=t._vnode}finally{Vt=null}return Array.isArray(e)&&1===e.length&&(e=e[0]),e instanceof ve||(e=ge()),e.parent=i,e}}(Tn);var In=[String,RegExp,Array],An={KeepAlive:{name:"keep-alive",abstract:!0,props:{include:In,exclude:In,max:[String,Number]},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var e in this.cache)xn(this.cache,e,this.keys)},mounted:function(){var e=this;this.$watch("include",(function(t){Pn(e,(function(e){return kn(t,e)}))})),this.$watch("exclude",(function(t){Pn(e,(function(e){return!kn(t,e)}))}))},render:function(){var e=this.$slots.default,t=Ht(e),n=t&&t.componentOptions;if(n){var r=On(n),i=this.include,o=this.exclude;if(i&&(!r||!kn(i,r))||o&&r&&kn(o,r))return t;var a=this.cache,s=this.keys,c=null==t.key?n.Ctor.cid+(n.tag?"::"+n.tag:""):t.key;a[c]?(t.componentInstance=a[c].componentInstance,y(s,c),s.push(c)):(a[c]=t,s.push(c),this.max&&s.length>parseInt(this.max)&&xn(a,s[0],s,this._vnode)),t.data.keepAlive=!0}return t||e&&e[0]}}};!function(e){var t={get:function(){return $}};Object.defineProperty(e,"config",t),e.util={warn:ue,extend:P,mergeOptions:Le,defineReactive:Oe},e.set=ke,e.delete=Pe,e.nextTick=tt,e.observable=function(e){return Re(e),e},e.options=Object.create(null),F.forEach((function(t){e.options[t+"s"]=Object.create(null)})),e.options._base=e,P(e.options.components,An),function(e){e.use=function(e){var t=this._installedPlugins||(this._installedPlugins=[]);if(t.indexOf(e)>-1)return this;var n=k(arguments,1);return n.unshift(this),"function"==typeof e.install?e.install.apply(e,n):"function"==typeof e&&e.apply(null,n),t.push(e),this}}(e),function(e){e.mixin=function(e){return this.options=Le(this.options,e),this}}(e),Rn(e),function(e){F.forEach((function(t){e[t]=function(e,n){return n?("component"===t&&l(n)&&(n.name=n.name||e,n=this.options._base.extend(n)),"directive"===t&&"function"==typeof n&&(n={bind:n,update:n}),this.options[t+"s"][e]=n,n):this.options[t+"s"][e]}}))}(e)}(Tn),Object.defineProperty(Tn.prototype,"$isServer",{get:ie}),Object.defineProperty(Tn.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(Tn,"FunctionalRenderContext",{value:At}),Tn.version="2.6.11";var Mn=m("style,class"),jn=m("input,textarea,option,select,progress"),Dn=m("contenteditable,draggable,spellcheck"),Ln=m("events,caret,typing,plaintext-only"),Nn=function(e,t){return Gn(t)||"false"===t?"false":"contenteditable"===e&&Ln(t)?t:"true"},Fn=m("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,translate,truespeed,typemustmatch,visible"),Un="http://www.w3.org/1999/xlink",$n=function(e){return":"===e.charAt(5)&&"xlink"===e.slice(0,5)},Bn=function(e){return $n(e)?e.slice(6,e.length):""},Gn=function(e){return null==e||!1===e};function Vn(e){for(var t=e.data,n=e,r=e;o(r.componentInstance);)(r=r.componentInstance._vnode)&&r.data&&(t=zn(r.data,t));for(;o(n=n.parent);)n&&n.data&&(t=zn(t,n.data));return function(e,t){if(o(e)||o(t))return Wn(e,Hn(t));return""}(t.staticClass,t.class)}function zn(e,t){return{staticClass:Wn(e.staticClass,t.staticClass),class:o(e.class)?[e.class,t.class]:t.class}}function Wn(e,t){return e?t?e+" "+t:e:t||""}function Hn(e){return Array.isArray(e)?function(e){for(var t,n="",r=0,i=e.length;r<i;r++)o(t=Hn(e[r]))&&""!==t&&(n&&(n+=" "),n+=t);return n}(e):c(e)?function(e){var t="";for(var n in e)e[n]&&(t&&(t+=" "),t+=n);return t}(e):"string"==typeof e?e:""}var qn={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"},Jn=m("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=m("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),Yn=function(e){return Jn(e)||Xn(e)};var Kn=Object.create(null);var Zn=m("text,number,password,search,email,tel,url");var Qn=Object.freeze({createElement:function(e,t){var n=document.createElement(e);return"select"!==e?n:(t.data&&t.data.attrs&&void 0!==t.data.attrs.multiple&&n.setAttribute("multiple","multiple"),n)},createElementNS:function(e,t){return document.createElementNS(qn[e],t)},createTextNode:function(e){return document.createTextNode(e)},createComment:function(e){return document.createComment(e)},insertBefore:function(e,t,n){e.insertBefore(t,n)},removeChild:function(e,t){e.removeChild(t)},appendChild:function(e,t){e.appendChild(t)},parentNode:function(e){return e.parentNode},nextSibling:function(e){return e.nextSibling},tagName:function(e){return e.tagName},setTextContent:function(e,t){e.textContent=t},setStyleScope:function(e,t){e.setAttribute(t,"")}}),er={create:function(e,t){tr(t)},update:function(e,t){e.data.ref!==t.data.ref&&(tr(e,!0),tr(t))},destroy:function(e){tr(e,!0)}};function tr(e,t){var n=e.data.ref;if(o(n)){var r=e.context,i=e.componentInstance||e.elm,a=r.$refs;t?Array.isArray(a[n])?y(a[n],i):a[n]===i&&(a[n]=void 0):e.data.refInFor?Array.isArray(a[n])?a[n].indexOf(i)<0&&a[n].push(i):a[n]=[i]:a[n]=i}}var nr=new ve("",{},[]),rr=["create","activate","update","remove","destroy"];function ir(e,t){return e.key===t.key&&(e.tag===t.tag&&e.isComment===t.isComment&&o(e.data)===o(t.data)&&function(e,t){if("input"!==e.tag)return!0;var n,r=o(n=e.data)&&o(n=n.attrs)&&n.type,i=o(n=t.data)&&o(n=n.attrs)&&n.type;return r===i||Zn(r)&&Zn(i)}(e,t)||a(e.isAsyncPlaceholder)&&e.asyncFactory===t.asyncFactory&&i(t.asyncFactory.error))}function or(e,t,n){var r,i,a={};for(r=t;r<=n;++r)o(i=e[r].key)&&(a[i]=r);return a}var ar={create:sr,update:sr,destroy:function(e){sr(e,nr)}};function sr(e,t){(e.data.directives||t.data.directives)&&function(e,t){var n,r,i,o=e===nr,a=t===nr,s=ur(e.data.directives,e.context),c=ur(t.data.directives,t.context),u=[],l=[];for(n in c)r=s[n],i=c[n],r?(i.oldValue=r.value,i.oldArg=r.arg,dr(i,"update",t,e),i.def&&i.def.componentUpdated&&l.push(i)):(dr(i,"bind",t,e),i.def&&i.def.inserted&&u.push(i));if(u.length){var d=function(){for(var n=0;n<u.length;n++)dr(u[n],"inserted",t,e)};o?st(t,"insert",d):d()}l.length&&st(t,"postpatch",(function(){for(var n=0;n<l.length;n++)dr(l[n],"componentUpdated",t,e)}));if(!o)for(n in s)c[n]||dr(s[n],"unbind",e,e,a)}(e,t)}var cr=Object.create(null);function ur(e,t){var n,r,i=Object.create(null);if(!e)return i;for(n=0;n<e.length;n++)(r=e[n]).modifiers||(r.modifiers=cr),i[lr(r)]=r,r.def=Ne(t.$options,"directives",r.name);return i}function lr(e){return e.rawName||e.name+"."+Object.keys(e.modifiers||{}).join(".")}function dr(e,t,n,r,i){var o=e.def&&e.def[t];if(o)try{o(n.elm,e,n,r,i)}catch(r){Ge(r,n.context,"directive "+e.name+" "+t+" hook")}}var pr=[er,ar];function fr(e,t){var n=t.componentOptions;if(!(o(n)&&!1===n.Ctor.options.inheritAttrs||i(e.data.attrs)&&i(t.data.attrs))){var r,a,s=t.elm,c=e.data.attrs||{},u=t.data.attrs||{};for(r in o(u.__ob__)&&(u=t.data.attrs=P({},u)),u)a=u[r],c[r]!==a&&hr(s,r,a);for(r in(Y||Z)&&u.value!==c.value&&hr(s,"value",u.value),c)i(u[r])&&($n(r)?s.removeAttributeNS(Un,Bn(r)):Dn(r)||s.removeAttribute(r))}}function hr(e,t,n){e.tagName.indexOf("-")>-1?vr(e,t,n):Fn(t)?Gn(n)?e.removeAttribute(t):(n="allowfullscreen"===t&&"EMBED"===e.tagName?"true":t,e.setAttribute(t,n)):Dn(t)?e.setAttribute(t,Nn(t,n)):$n(t)?Gn(n)?e.removeAttributeNS(Un,Bn(t)):e.setAttributeNS(Un,t,n):vr(e,t,n)}function vr(e,t,n){if(Gn(n))e.removeAttribute(t);else{if(Y&&!K&&"TEXTAREA"===e.tagName&&"placeholder"===t&&""!==n&&!e.__ieph){var r=function(t){t.stopImmediatePropagation(),e.removeEventListener("input",r)};e.addEventListener("input",r),e.__ieph=!0}e.setAttribute(t,n)}}var mr={create:fr,update:fr};function gr(e,t){var n=t.elm,r=t.data,a=e.data;if(!(i(r.staticClass)&&i(r.class)&&(i(a)||i(a.staticClass)&&i(a.class)))){var s=Vn(t),c=n._transitionClasses;o(c)&&(s=Wn(s,Hn(c))),s!==n._prevClass&&(n.setAttribute("class",s),n._prevClass=s)}}var yr,br={create:gr,update:gr},Sr="__r",wr="__c";function Cr(e,t,n){var r=yr;return function i(){var o=t.apply(null,arguments);null!==o&&Tr(e,i,n,r)}}var _r=qe&&!(ee&&Number(ee[1])<=53);function Er(e,t,n,r){if(_r){var i=un,o=t;t=o._wrapper=function(e){if(e.target===e.currentTarget||e.timeStamp>=i||e.timeStamp<=0||e.target.ownerDocument!==document)return o.apply(this,arguments)}}yr.addEventListener(e,t,ne?{capture:n,passive:r}:n)}function Tr(e,t,n,r){(r||yr).removeEventListener(e,t._wrapper||t,n)}function Rr(e,t){if(!i(e.data.on)||!i(t.data.on)){var n=t.data.on||{},r=e.data.on||{};yr=t.elm,function(e){if(o(e[Sr])){var t=Y?"change":"input";e[t]=[].concat(e[Sr],e[t]||[]),delete e[Sr]}o(e[wr])&&(e.change=[].concat(e[wr],e.change||[]),delete e[wr])}(n),at(n,r,Er,Tr,Cr,t.context),yr=void 0}}var Or,kr={create:Rr,update:Rr};function Pr(e,t){if(!i(e.data.domProps)||!i(t.data.domProps)){var n,r,a=t.elm,s=e.data.domProps||{},c=t.data.domProps||{};for(n in o(c.__ob__)&&(c=t.data.domProps=P({},c)),s)n in c||(a[n]="");for(n in c){if(r=c[n],"textContent"===n||"innerHTML"===n){if(t.children&&(t.children.length=0),r===s[n])continue;1===a.childNodes.length&&a.removeChild(a.childNodes[0])}if("value"===n&&"PROGRESS"!==a.tagName){a._value=r;var u=i(r)?"":String(r);xr(a,u)&&(a.value=u)}else if("innerHTML"===n&&Xn(a.tagName)&&i(a.innerHTML)){(Or=Or||document.createElement("div")).innerHTML="<svg>"+r+"</svg>";for(var l=Or.firstChild;a.firstChild;)a.removeChild(a.firstChild);for(;l.firstChild;)a.appendChild(l.firstChild)}else if(r!==s[n])try{a[n]=r}catch(e){}}}}function xr(e,t){return!e.composing&&("OPTION"===e.tagName||function(e,t){var n=!0;try{n=document.activeElement!==e}catch(e){}return n&&e.value!==t}(e,t)||function(e,t){var n=e.value,r=e._vModifiers;if(o(r)){if(r.number)return v(n)!==v(t);if(r.trim)return n.trim()!==t.trim()}return n!==t}(e,t))}var Ir={create:Pr,update:Pr},Ar=w((function(e){var t={},n=/:(.+)/;return e.split(/;(?![^(]*\))/g).forEach((function(e){if(e){var r=e.split(n);r.length>1&&(t[r[0].trim()]=r[1].trim())}})),t}));function Mr(e){var t=jr(e.style);return e.staticStyle?P(e.staticStyle,t):t}function jr(e){return Array.isArray(e)?x(e):"string"==typeof e?Ar(e):e}var Dr,Lr=/^--/,Nr=/\s*!important$/,Fr=function(e,t,n){if(Lr.test(t))e.style.setProperty(t,n);else if(Nr.test(n))e.style.setProperty(R(t),n.replace(Nr,""),"important");else{var r=$r(t);if(Array.isArray(n))for(var i=0,o=n.length;i<o;i++)e.style[r]=n[i];else e.style[r]=n}},Ur=["Webkit","Moz","ms"],$r=w((function(e){if(Dr=Dr||document.createElement("div").style,"filter"!==(e=_(e))&&e in Dr)return e;for(var t=e.charAt(0).toUpperCase()+e.slice(1),n=0;n<Ur.length;n++){var r=Ur[n]+t;if(r in Dr)return r}}));function Br(e,t){var n=t.data,r=e.data;if(!(i(n.staticStyle)&&i(n.style)&&i(r.staticStyle)&&i(r.style))){var a,s,c=t.elm,u=r.staticStyle,l=r.normalizedStyle||r.style||{},d=u||l,p=jr(t.data.style)||{};t.data.normalizedStyle=o(p.__ob__)?P({},p):p;var f=function(e,t){var n,r={};if(t)for(var i=e;i.componentInstance;)(i=i.componentInstance._vnode)&&i.data&&(n=Mr(i.data))&&P(r,n);(n=Mr(e.data))&&P(r,n);for(var o=e;o=o.parent;)o.data&&(n=Mr(o.data))&&P(r,n);return r}(t,!0);for(s in d)i(f[s])&&Fr(c,s,"");for(s in f)(a=f[s])!==d[s]&&Fr(c,s,null==a?"":a)}}var Gr={create:Br,update:Br},Vr=/\s+/;function zr(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(Vr).forEach((function(t){return e.classList.add(t)})):e.classList.add(t);else{var n=" "+(e.getAttribute("class")||"")+" ";n.indexOf(" "+t+" ")<0&&e.setAttribute("class",(n+t).trim())}}function Wr(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(Vr).forEach((function(t){return e.classList.remove(t)})):e.classList.remove(t),e.classList.length||e.removeAttribute("class");else{for(var n=" "+(e.getAttribute("class")||"")+" ",r=" "+t+" ";n.indexOf(r)>=0;)n=n.replace(r," ");(n=n.trim())?e.setAttribute("class",n):e.removeAttribute("class")}}function Hr(e){if(e){if("object"==typeof e){var t={};return!1!==e.css&&P(t,qr(e.name||"v")),P(t,e),t}return"string"==typeof e?qr(e):void 0}}var qr=w((function(e){return{enterClass:e+"-enter",enterToClass:e+"-enter-to",enterActiveClass:e+"-enter-active",leaveClass:e+"-leave",leaveToClass:e+"-leave-to",leaveActiveClass:e+"-leave-active"}})),Jr=H&&!K,Xr="transition",Yr="animation",Kr="transition",Zr="transitionend",Qr="animation",ei="animationend";Jr&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(Kr="WebkitTransition",Zr="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(Qr="WebkitAnimation",ei="webkitAnimationEnd"));var ti=H?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(e){return e()};function ni(e){ti((function(){ti(e)}))}function ri(e,t){var n=e._transitionClasses||(e._transitionClasses=[]);n.indexOf(t)<0&&(n.push(t),zr(e,t))}function ii(e,t){e._transitionClasses&&y(e._transitionClasses,t),Wr(e,t)}function oi(e,t,n){var r=si(e,t),i=r.type,o=r.timeout,a=r.propCount;if(!i)return n();var s=i===Xr?Zr:ei,c=0,u=function(){e.removeEventListener(s,l),n()},l=function(t){t.target===e&&++c>=a&&u()};setTimeout((function(){c<a&&u()}),o+1),e.addEventListener(s,l)}var ai=/\b(transform|all)(,|$)/;function si(e,t){var n,r=window.getComputedStyle(e),i=(r[Kr+"Delay"]||"").split(", "),o=(r[Kr+"Duration"]||"").split(", "),a=ci(i,o),s=(r[Qr+"Delay"]||"").split(", "),c=(r[Qr+"Duration"]||"").split(", "),u=ci(s,c),l=0,d=0;return t===Xr?a>0&&(n=Xr,l=a,d=o.length):t===Yr?u>0&&(n=Yr,l=u,d=c.length):d=(n=(l=Math.max(a,u))>0?a>u?Xr:Yr:null)?n===Xr?o.length:c.length:0,{type:n,timeout:l,propCount:d,hasTransform:n===Xr&&ai.test(r[Kr+"Property"])}}function ci(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max.apply(null,t.map((function(t,n){return ui(t)+ui(e[n])})))}function ui(e){return 1e3*Number(e.slice(0,-1).replace(",","."))}function li(e,t){var n=e.elm;o(n._leaveCb)&&(n._leaveCb.cancelled=!0,n._leaveCb());var r=Hr(e.data.transition);if(!i(r)&&!o(n._enterCb)&&1===n.nodeType){for(var a=r.css,s=r.type,u=r.enterClass,l=r.enterToClass,d=r.enterActiveClass,p=r.appearClass,f=r.appearToClass,h=r.appearActiveClass,m=r.beforeEnter,g=r.enter,y=r.afterEnter,b=r.enterCancelled,S=r.beforeAppear,w=r.appear,C=r.afterAppear,_=r.appearCancelled,E=r.duration,T=Kt,R=Kt.$vnode;R&&R.parent;)T=R.context,R=R.parent;var O=!T._isMounted||!e.isRootInsert;if(!O||w||""===w){var k=O&&p?p:u,P=O&&h?h:d,x=O&&f?f:l,I=O&&S||m,A=O&&"function"==typeof w?w:g,M=O&&C||y,j=O&&_||b,D=v(c(E)?E.enter:E);0;var N=!1!==a&&!K,F=fi(A),U=n._enterCb=L((function(){N&&(ii(n,x),ii(n,P)),U.cancelled?(N&&ii(n,k),j&&j(n)):M&&M(n),n._enterCb=null}));e.data.show||st(e,"insert",(function(){var t=n.parentNode,r=t&&t._pending&&t._pending[e.key];r&&r.tag===e.tag&&r.elm._leaveCb&&r.elm._leaveCb(),A&&A(n,U)})),I&&I(n),N&&(ri(n,k),ri(n,P),ni((function(){ii(n,k),U.cancelled||(ri(n,x),F||(pi(D)?setTimeout(U,D):oi(n,s,U)))}))),e.data.show&&(t&&t(),A&&A(n,U)),N||F||U()}}}function di(e,t){var n=e.elm;o(n._enterCb)&&(n._enterCb.cancelled=!0,n._enterCb());var r=Hr(e.data.transition);if(i(r)||1!==n.nodeType)return t();if(!o(n._leaveCb)){var a=r.css,s=r.type,u=r.leaveClass,l=r.leaveToClass,d=r.leaveActiveClass,p=r.beforeLeave,f=r.leave,h=r.afterLeave,m=r.leaveCancelled,g=r.delayLeave,y=r.duration,b=!1!==a&&!K,S=fi(f),w=v(c(y)?y.leave:y);0;var C=n._leaveCb=L((function(){n.parentNode&&n.parentNode._pending&&(n.parentNode._pending[e.key]=null),b&&(ii(n,l),ii(n,d)),C.cancelled?(b&&ii(n,u),m&&m(n)):(t(),h&&h(n)),n._leaveCb=null}));g?g(_):_()}function _(){C.cancelled||(!e.data.show&&n.parentNode&&((n.parentNode._pending||(n.parentNode._pending={}))[e.key]=e),p&&p(n),b&&(ri(n,u),ri(n,d),ni((function(){ii(n,u),C.cancelled||(ri(n,l),S||(pi(w)?setTimeout(C,w):oi(n,s,C)))}))),f&&f(n,C),b||S||C())}}function pi(e){return"number"==typeof e&&!isNaN(e)}function fi(e){if(i(e))return!1;var t=e.fns;return o(t)?fi(Array.isArray(t)?t[0]:t):(e._length||e.length)>1}function hi(e,t){!0!==t.data.show&&li(t)}var vi=function(e){var t,n,r={},c=e.modules,u=e.nodeOps;for(t=0;t<rr.length;++t)for(r[rr[t]]=[],n=0;n<c.length;++n)o(c[n][rr[t]])&&r[rr[t]].push(c[n][rr[t]]);function l(e){var t=u.parentNode(e);o(t)&&u.removeChild(t,e)}function d(e,t,n,i,s,c,l){if(o(e.elm)&&o(c)&&(e=c[l]=be(e)),e.isRootInsert=!s,!function(e,t,n,i){var s=e.data;if(o(s)){var c=o(e.componentInstance)&&s.keepAlive;if(o(s=s.hook)&&o(s=s.init)&&s(e,!1),o(e.componentInstance))return p(e,t),f(n,e.elm,i),a(c)&&function(e,t,n,i){var a,s=e;for(;s.componentInstance;)if(s=s.componentInstance._vnode,o(a=s.data)&&o(a=a.transition)){for(a=0;a<r.activate.length;++a)r.activate[a](nr,s);t.push(s);break}f(n,e.elm,i)}(e,t,n,i),!0}}(e,t,n,i)){var d=e.data,v=e.children,m=e.tag;o(m)?(e.elm=e.ns?u.createElementNS(e.ns,m):u.createElement(m,e),y(e),h(e,v,t),o(d)&&g(e,t),f(n,e.elm,i)):a(e.isComment)?(e.elm=u.createComment(e.text),f(n,e.elm,i)):(e.elm=u.createTextNode(e.text),f(n,e.elm,i))}}function p(e,t){o(e.data.pendingInsert)&&(t.push.apply(t,e.data.pendingInsert),e.data.pendingInsert=null),e.elm=e.componentInstance.$el,v(e)?(g(e,t),y(e)):(tr(e),t.push(e))}function f(e,t,n){o(e)&&(o(n)?u.parentNode(n)===e&&u.insertBefore(e,t,n):u.appendChild(e,t))}function h(e,t,n){if(Array.isArray(t)){0;for(var r=0;r<t.length;++r)d(t[r],n,e.elm,null,!0,t,r)}else s(e.text)&&u.appendChild(e.elm,u.createTextNode(String(e.text)))}function v(e){for(;e.componentInstance;)e=e.componentInstance._vnode;return o(e.tag)}function g(e,n){for(var i=0;i<r.create.length;++i)r.create[i](nr,e);o(t=e.data.hook)&&(o(t.create)&&t.create(nr,e),o(t.insert)&&n.push(e))}function y(e){var t;if(o(t=e.fnScopeId))u.setStyleScope(e.elm,t);else for(var n=e;n;)o(t=n.context)&&o(t=t.$options._scopeId)&&u.setStyleScope(e.elm,t),n=n.parent;o(t=Kt)&&t!==e.context&&t!==e.fnContext&&o(t=t.$options._scopeId)&&u.setStyleScope(e.elm,t)}function b(e,t,n,r,i,o){for(;r<=i;++r)d(n[r],o,e,t,!1,n,r)}function S(e){var t,n,i=e.data;if(o(i))for(o(t=i.hook)&&o(t=t.destroy)&&t(e),t=0;t<r.destroy.length;++t)r.destroy[t](e);if(o(t=e.children))for(n=0;n<e.children.length;++n)S(e.children[n])}function w(e,t,n){for(;t<=n;++t){var r=e[t];o(r)&&(o(r.tag)?(C(r),S(r)):l(r.elm))}}function C(e,t){if(o(t)||o(e.data)){var n,i=r.remove.length+1;for(o(t)?t.listeners+=i:t=function(e,t){function n(){0==--n.listeners&&l(e)}return n.listeners=t,n}(e.elm,i),o(n=e.componentInstance)&&o(n=n._vnode)&&o(n.data)&&C(n,t),n=0;n<r.remove.length;++n)r.remove[n](e,t);o(n=e.data.hook)&&o(n=n.remove)?n(e,t):t()}else l(e.elm)}function _(e,t,n,r){for(var i=n;i<r;i++){var a=t[i];if(o(a)&&ir(e,a))return i}}function E(e,t,n,s,c,l){if(e!==t){o(t.elm)&&o(s)&&(t=s[c]=be(t));var p=t.elm=e.elm;if(a(e.isAsyncPlaceholder))o(t.asyncFactory.resolved)?O(e.elm,t,n):t.isAsyncPlaceholder=!0;else if(a(t.isStatic)&&a(e.isStatic)&&t.key===e.key&&(a(t.isCloned)||a(t.isOnce)))t.componentInstance=e.componentInstance;else{var f,h=t.data;o(h)&&o(f=h.hook)&&o(f=f.prepatch)&&f(e,t);var m=e.children,g=t.children;if(o(h)&&v(t)){for(f=0;f<r.update.length;++f)r.update[f](e,t);o(f=h.hook)&&o(f=f.update)&&f(e,t)}i(t.text)?o(m)&&o(g)?m!==g&&function(e,t,n,r,a){var s,c,l,p=0,f=0,h=t.length-1,v=t[0],m=t[h],g=n.length-1,y=n[0],S=n[g],C=!a;for(0;p<=h&&f<=g;)i(v)?v=t[++p]:i(m)?m=t[--h]:ir(v,y)?(E(v,y,r,n,f),v=t[++p],y=n[++f]):ir(m,S)?(E(m,S,r,n,g),m=t[--h],S=n[--g]):ir(v,S)?(E(v,S,r,n,g),C&&u.insertBefore(e,v.elm,u.nextSibling(m.elm)),v=t[++p],S=n[--g]):ir(m,y)?(E(m,y,r,n,f),C&&u.insertBefore(e,m.elm,v.elm),m=t[--h],y=n[++f]):(i(s)&&(s=or(t,p,h)),i(c=o(y.key)?s[y.key]:_(y,t,p,h))?d(y,r,e,v.elm,!1,n,f):ir(l=t[c],y)?(E(l,y,r,n,f),t[c]=void 0,C&&u.insertBefore(e,l.elm,v.elm)):d(y,r,e,v.elm,!1,n,f),y=n[++f]);p>h?b(e,i(n[g+1])?null:n[g+1].elm,n,f,g,r):f>g&&w(t,p,h)}(p,m,g,n,l):o(g)?(o(e.text)&&u.setTextContent(p,""),b(p,null,g,0,g.length-1,n)):o(m)?w(m,0,m.length-1):o(e.text)&&u.setTextContent(p,""):e.text!==t.text&&u.setTextContent(p,t.text),o(h)&&o(f=h.hook)&&o(f=f.postpatch)&&f(e,t)}}}function T(e,t,n){if(a(n)&&o(e.parent))e.parent.data.pendingInsert=t;else for(var r=0;r<t.length;++r)t[r].data.hook.insert(t[r])}var R=m("attrs,class,staticClass,staticStyle,key");function O(e,t,n,r){var i,s=t.tag,c=t.data,u=t.children;if(r=r||c&&c.pre,t.elm=e,a(t.isComment)&&o(t.asyncFactory))return t.isAsyncPlaceholder=!0,!0;if(o(c)&&(o(i=c.hook)&&o(i=i.init)&&i(t,!0),o(i=t.componentInstance)))return p(t,n),!0;if(o(s)){if(o(u))if(e.hasChildNodes())if(o(i=c)&&o(i=i.domProps)&&o(i=i.innerHTML)){if(i!==e.innerHTML)return!1}else{for(var l=!0,d=e.firstChild,f=0;f<u.length;f++){if(!d||!O(d,u[f],n,r)){l=!1;break}d=d.nextSibling}if(!l||d)return!1}else h(t,u,n);if(o(c)){var v=!1;for(var m in c)if(!R(m)){v=!0,g(t,n);break}!v&&c.class&&rt(c.class)}}else e.data!==t.text&&(e.data=t.text);return!0}return function(e,t,n,s){if(!i(t)){var c,l=!1,p=[];if(i(e))l=!0,d(t,p);else{var f=o(e.nodeType);if(!f&&ir(e,t))E(e,t,p,null,null,s);else{if(f){if(1===e.nodeType&&e.hasAttribute(N)&&(e.removeAttribute(N),n=!0),a(n)&&O(e,t,p))return T(t,p,!0),e;c=e,e=new ve(u.tagName(c).toLowerCase(),{},[],void 0,c)}var h=e.elm,m=u.parentNode(h);if(d(t,p,h._leaveCb?null:m,u.nextSibling(h)),o(t.parent))for(var g=t.parent,y=v(t);g;){for(var b=0;b<r.destroy.length;++b)r.destroy[b](g);if(g.elm=t.elm,y){for(var C=0;C<r.create.length;++C)r.create[C](nr,g);var _=g.data.hook.insert;if(_.merged)for(var R=1;R<_.fns.length;R++)_.fns[R]()}else tr(g);g=g.parent}o(m)?w([e],0,0):o(e.tag)&&S(e)}}return T(t,p,l),t.elm}o(e)&&S(e)}}({nodeOps:Qn,modules:[mr,br,kr,Ir,Gr,H?{create:hi,activate:hi,remove:function(e,t){!0!==e.data.show?di(e,t):t()}}:{}].concat(pr)});K&&document.addEventListener("selectionchange",(function(){var e=document.activeElement;e&&e.vmodel&&_i(e,"input")}));var mi={inserted:function(e,t,n,r){"select"===n.tag?(r.elm&&!r.elm._vOptions?st(n,"postpatch",(function(){mi.componentUpdated(e,t,n)})):gi(e,t,n.context),e._vOptions=[].map.call(e.options,Si)):("textarea"===n.tag||Zn(e.type))&&(e._vModifiers=t.modifiers,t.modifiers.lazy||(e.addEventListener("compositionstart",wi),e.addEventListener("compositionend",Ci),e.addEventListener("change",Ci),K&&(e.vmodel=!0)))},componentUpdated:function(e,t,n){if("select"===n.tag){gi(e,t,n.context);var r=e._vOptions,i=e._vOptions=[].map.call(e.options,Si);if(i.some((function(e,t){return!j(e,r[t])})))(e.multiple?t.value.some((function(e){return bi(e,i)})):t.value!==t.oldValue&&bi(t.value,i))&&_i(e,"change")}}};function gi(e,t,n){yi(e,t,n),(Y||Z)&&setTimeout((function(){yi(e,t,n)}),0)}function yi(e,t,n){var r=t.value,i=e.multiple;if(!i||Array.isArray(r)){for(var o,a,s=0,c=e.options.length;s<c;s++)if(a=e.options[s],i)o=D(r,Si(a))>-1,a.selected!==o&&(a.selected=o);else if(j(Si(a),r))return void(e.selectedIndex!==s&&(e.selectedIndex=s));i||(e.selectedIndex=-1)}}function bi(e,t){return t.every((function(t){return!j(t,e)}))}function Si(e){return"_value"in e?e._value:e.value}function wi(e){e.target.composing=!0}function Ci(e){e.target.composing&&(e.target.composing=!1,_i(e.target,"input"))}function _i(e,t){var n=document.createEvent("HTMLEvents");n.initEvent(t,!0,!0),e.dispatchEvent(n)}function Ei(e){return!e.componentInstance||e.data&&e.data.transition?e:Ei(e.componentInstance._vnode)}var Ti={model:mi,show:{bind:function(e,t,n){var r=t.value,i=(n=Ei(n)).data&&n.data.transition,o=e.__vOriginalDisplay="none"===e.style.display?"":e.style.display;r&&i?(n.data.show=!0,li(n,(function(){e.style.display=o}))):e.style.display=r?o:"none"},update:function(e,t,n){var r=t.value;!r!=!t.oldValue&&((n=Ei(n)).data&&n.data.transition?(n.data.show=!0,r?li(n,(function(){e.style.display=e.__vOriginalDisplay})):di(n,(function(){e.style.display="none"}))):e.style.display=r?e.__vOriginalDisplay:"none")},unbind:function(e,t,n,r,i){i||(e.style.display=e.__vOriginalDisplay)}}},Ri={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 Oi(e){var t=e&&e.componentOptions;return t&&t.Ctor.options.abstract?Oi(Ht(t.children)):e}function ki(e){var t={},n=e.$options;for(var r in n.propsData)t[r]=e[r];var i=n._parentListeners;for(var o in i)t[_(o)]=i[o];return t}function Pi(e,t){if(/\d-keep-alive$/.test(t.tag))return e("keep-alive",{props:t.componentOptions.propsData})}var xi=function(e){return e.tag||Wt(e)},Ii=function(e){return"show"===e.name},Ai={name:"transition",props:Ri,abstract:!0,render:function(e){var t=this,n=this.$slots.default;if(n&&(n=n.filter(xi)).length){0;var r=this.mode;0;var i=n[0];if(function(e){for(;e=e.parent;)if(e.data.transition)return!0}(this.$vnode))return i;var o=Oi(i);if(!o)return i;if(this._leaving)return Pi(e,i);var a="__transition-"+this._uid+"-";o.key=null==o.key?o.isComment?a+"comment":a+o.tag:s(o.key)?0===String(o.key).indexOf(a)?o.key:a+o.key:o.key;var c=(o.data||(o.data={})).transition=ki(this),u=this._vnode,l=Oi(u);if(o.data.directives&&o.data.directives.some(Ii)&&(o.data.show=!0),l&&l.data&&!function(e,t){return t.key===e.key&&t.tag===e.tag}(o,l)&&!Wt(l)&&(!l.componentInstance||!l.componentInstance._vnode.isComment)){var d=l.data.transition=P({},c);if("out-in"===r)return this._leaving=!0,st(d,"afterLeave",(function(){t._leaving=!1,t.$forceUpdate()})),Pi(e,i);if("in-out"===r){if(Wt(o))return u;var p,f=function(){p()};st(c,"afterEnter",f),st(c,"enterCancelled",f),st(d,"delayLeave",(function(e){p=e}))}}return i}}},Mi=P({tag:String,moveClass:String},Ri);function ji(e){e.elm._moveCb&&e.elm._moveCb(),e.elm._enterCb&&e.elm._enterCb()}function Di(e){e.data.newPos=e.elm.getBoundingClientRect()}function Li(e){var t=e.data.pos,n=e.data.newPos,r=t.left-n.left,i=t.top-n.top;if(r||i){e.data.moved=!0;var o=e.elm.style;o.transform=o.WebkitTransform="translate("+r+"px,"+i+"px)",o.transitionDuration="0s"}}delete Mi.mode;var Ni={Transition:Ai,TransitionGroup:{props:Mi,beforeMount:function(){var e=this,t=this._update;this._update=function(n,r){var i=Zt(e);e.__patch__(e._vnode,e.kept,!1,!0),e._vnode=e.kept,i(),t.call(e,n,r)}},render:function(e){for(var t=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),r=this.prevChildren=this.children,i=this.$slots.default||[],o=this.children=[],a=ki(this),s=0;s<i.length;s++){var c=i[s];if(c.tag)if(null!=c.key&&0!==String(c.key).indexOf("__vlist"))o.push(c),n[c.key]=c,(c.data||(c.data={})).transition=a;else;}if(r){for(var u=[],l=[],d=0;d<r.length;d++){var p=r[d];p.data.transition=a,p.data.pos=p.elm.getBoundingClientRect(),n[p.key]?u.push(p):l.push(p)}this.kept=e(t,null,u),this.removed=l}return e(t,null,o)},updated:function(){var e=this.prevChildren,t=this.moveClass||(this.name||"v")+"-move";e.length&&this.hasMove(e[0].elm,t)&&(e.forEach(ji),e.forEach(Di),e.forEach(Li),this._reflow=document.body.offsetHeight,e.forEach((function(e){if(e.data.moved){var n=e.elm,r=n.style;ri(n,t),r.transform=r.WebkitTransform=r.transitionDuration="",n.addEventListener(Zr,n._moveCb=function e(r){r&&r.target!==n||r&&!/transform$/.test(r.propertyName)||(n.removeEventListener(Zr,e),n._moveCb=null,ii(n,t))})}})))},methods:{hasMove:function(e,t){if(!Jr)return!1;if(this._hasMove)return this._hasMove;var n=e.cloneNode();e._transitionClasses&&e._transitionClasses.forEach((function(e){Wr(n,e)})),zr(n,t),n.style.display="none",this.$el.appendChild(n);var r=si(n);return this.$el.removeChild(n),this._hasMove=r.hasTransform}}}};Tn.config.mustUseProp=function(e,t,n){return"value"===n&&jn(e)&&"button"!==t||"selected"===n&&"option"===e||"checked"===n&&"input"===e||"muted"===n&&"video"===e},Tn.config.isReservedTag=Yn,Tn.config.isReservedAttr=Mn,Tn.config.getTagNamespace=function(e){return Xn(e)?"svg":"math"===e?"math":void 0},Tn.config.isUnknownElement=function(e){if(!H)return!0;if(Yn(e))return!1;if(e=e.toLowerCase(),null!=Kn[e])return Kn[e];var t=document.createElement(e);return e.indexOf("-")>-1?Kn[e]=t.constructor===window.HTMLUnknownElement||t.constructor===window.HTMLElement:Kn[e]=/HTMLUnknownElement/.test(t.toString())},P(Tn.options.directives,Ti),P(Tn.options.components,Ni),Tn.prototype.__patch__=H?vi:I,Tn.prototype.$mount=function(e,t){return function(e,t,n){var r;return e.$el=t,e.$options.render||(e.$options.render=ge),tn(e,"beforeMount"),r=function(){e._update(e._render(),n)},new hn(e,r,I,{before:function(){e._isMounted&&!e._isDestroyed&&tn(e,"beforeUpdate")}},!0),n=!1,null==e.$vnode&&(e._isMounted=!0,tn(e,"mounted")),e}(this,e=e&&H?function(e){if("string"==typeof e){var t=document.querySelector(e);return t||document.createElement("div")}return e}(e):void 0,t)},H&&setTimeout((function(){$.devtools&&oe&&oe.emit("init",Tn)}),0),t.default=Tn}.call(this,n(21),n(195).setImmediate)},function(e,t,n){(function(t){var n=function(e){return e&&e.Math==Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof t&&t)||Function("return this")()}).call(this,n(21))},function(e,t,n){var r=n(6),i=n(115),o=n(14),a=n(109),s=n(116),c=n(200),u=i("wks"),l=r.Symbol,d=c?l:a;e.exports=function(e){return o(u,e)||(s&&o(l,e)?u[e]=l[e]:u[e]=d("Symbol."+e)),u[e]}},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){var r=n(16);e.exports=function(e){if(!r(e))throw TypeError(String(e)+" is not an object");return e}},function(e,t,n){(function(t){var n=function(e){return e&&e.Math==Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof t&&t)||Function("return this")()}).call(this,n(21))},function(e,t,n){var r=n(10),i=n(154),o=n(22),a=n(92),s=n(159),c=n(267),u=i("wks"),l=r.Symbol,d=c?l:l&&l.withoutSetter||a;e.exports=function(e){return o(u,e)||(s&&o(l,e)?u[e]=l[e]:u[e]=d("Symbol."+e)),u[e]}},function(e,t,n){var r=n(6),i=n(51).f,o=n(26),a=n(23),s=n(82),c=n(201),u=n(69);e.exports=function(e,t){var n,l,d,p,f,h=e.target,v=e.global,m=e.stat;if(n=v?r:m?r[h]||s(h,{}):(r[h]||{}).prototype)for(l in t){if(p=t[l],d=e.noTargetGet?(f=i(n,l))&&f.value:n[l],!u(v?l:h+(m?".":"#")+l,e.forced)&&void 0!==d){if(typeof p==typeof d)continue;c(p,d)}(e.sham||d&&d.sham)&&o(p,"sham",!0),a(n,l,p,e)}}},function(e,t,n){"use strict";var r=n(140),i=Object.prototype.toString;function o(e){return"[object Array]"===i.call(e)}function a(e){return void 0===e}function s(e){return null!==e&&"object"==typeof e}function c(e){return"[object Function]"===i.call(e)}function u(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),o(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.call(null,e[i],i,e)}e.exports={isArray:o,isArrayBuffer:function(e){return"[object ArrayBuffer]"===i.call(e)},isBuffer:function(e){return null!==e&&!a(e)&&null!==e.constructor&&!a(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"undefined"!=typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:s,isUndefined:a,isDate:function(e){return"[object Date]"===i.call(e)},isFile:function(e){return"[object File]"===i.call(e)},isBlob:function(e){return"[object Blob]"===i.call(e)},isFunction:c,isStream:function(e){return s(e)&&c(e.pipe)},isURLSearchParams:function(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:u,merge:function e(){var t={};function n(n,r){"object"==typeof t[r]&&"object"==typeof n?t[r]=e(t[r],n):t[r]=n}for(var r=0,i=arguments.length;r<i;r++)u(arguments[r],n);return t},deepMerge:function e(){var t={};function n(n,r){"object"==typeof t[r]&&"object"==typeof n?t[r]=e(t[r],n):t[r]="object"==typeof n?e({},n):n}for(var r=0,i=arguments.length;r<i;r++)u(arguments[r],n);return t},extend:function(e,t,n){return u(t,(function(t,i){e[i]=n&&"function"==typeof t?r(t,n):t})),e},trim:function(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")}}},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));
/**
 * @copyright Copyright (c) 2019 Marco Ambrosini <marcoambrosini@pm.me>
 *
 * @author Marco Ambrosini <marcoambrosini@pm.me>
 *
 * @license GNU AGPL version 3 or any later version
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
 *
 */
const r=new(n(5).default)},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=function(e,t){var n=e[1]||"",r=e[3];if(!r)return n;if(t&&"function"==typeof btoa){var i=(a=r,s=btoa(unescape(encodeURIComponent(JSON.stringify(a)))),c="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(s),"/*# ".concat(c," */")),o=r.sources.map((function(e){return"/*# sourceURL=".concat(r.sourceRoot||"").concat(e," */")}));return[n].concat(o).concat([i]).join("\n")}var a,s,c;return[n].join("\n")}(t,e);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,r){"string"==typeof e&&(e=[[null,e,""]]);var i={};if(r)for(var o=0;o<this.length;o++){var a=this[o][0];null!=a&&(i[a]=!0)}for(var s=0;s<e.length;s++){var c=[].concat(e[s]);r&&i[c[0]]||(n&&(c[2]?c[2]="".concat(n," and ").concat(c[2]):c[2]=n),t.push(c))}},t}},function(e,t,n){"use strict";function r(e,t){for(var n=[],r={},i=0;i<t.length;i++){var o=t[i],a=o[0],s={id:e+":"+i,css:o[1],media:o[2],sourceMap:o[3]};r[a]?r[a].parts.push(s):n.push(r[a]={id:a,parts:[s]})}return n}n.r(t),n.d(t,"default",(function(){return h}));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={},a=i&&(document.head||document.getElementsByTagName("head")[0]),s=null,c=0,u=!1,l=function(){},d=null,p="data-vue-ssr-id",f="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function h(e,t,n,i){u=n,d=i||{};var a=r(e,t);return v(a),function(t){for(var n=[],i=0;i<a.length;i++){var s=a[i];(c=o[s.id]).refs--,n.push(c)}t?v(a=r(e,t)):a=[];for(i=0;i<n.length;i++){var c;if(0===(c=n[i]).refs){for(var u=0;u<c.parts.length;u++)c.parts[u]();delete o[c.id]}}}}function v(e){for(var t=0;t<e.length;t++){var n=e[t],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(g(n.parts[i]));r.parts.length>n.parts.length&&(r.parts.length=n.parts.length)}else{var a=[];for(i=0;i<n.parts.length;i++)a.push(g(n.parts[i]));o[n.id]={id:n.id,refs:1,parts:a}}}}function m(){var e=document.createElement("style");return e.type="text/css",a.appendChild(e),e}function g(e){var t,n,r=document.querySelector("style["+p+'~="'+e.id+'"]');if(r){if(u)return l;r.parentNode.removeChild(r)}if(f){var i=c++;r=s||(s=m()),t=S.bind(null,r,i,!1),n=S.bind(null,r,i,!0)}else r=m(),t=w.bind(null,r),n=function(){r.parentNode.removeChild(r)};return t(e),function(r){if(r){if(r.css===e.css&&r.media===e.media&&r.sourceMap===e.sourceMap)return;t(e=r)}else n()}}var y,b=(y=[],function(e,t){return y[e]=t,y.filter(Boolean).join("\n")});function S(e,t,n,r){var i=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=b(t,i);else{var o=document.createTextNode(i),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(o,a[t]):e.appendChild(o)}}function w(e,t){var n=t.css,r=t.media,i=t.sourceMap;if(r&&e.setAttribute("media",r),d.ssrId&&e.setAttribute(p,t.id),i&&(n+="\n/*# sourceURL="+i.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */"),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}},function(e,t,n){var r=n(8);e.exports=!r((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var r=n(6),i=n(26),o=n(14),a=n(82),s=n(102),c=n(38),u=c.get,l=c.enforce,d=String(String).split("String");(e.exports=function(e,t,n,s){var c=!!s&&!!s.unsafe,u=!!s&&!!s.enumerable,p=!!s&&!!s.noTargetGet;"function"==typeof n&&("string"!=typeof t||o(n,"name")||i(n,"name",t),l(n).source=d.join("string"==typeof t?t:"")),e!==r?(c?!p&&e[t]&&(u=!0):delete e[t],u?e[t]=n:i(e,t,n)):u?e[t]=n:a(t,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&u(this).source||s(this)}))},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){var r=n(20),i=n(135),o=n(9),a=n(50),s=Object.defineProperty;t.f=r?s:function(e,t,n){if(o(e),t=a(t,!0),o(n),i)try{return s(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){var r=n(20),i=n(25),o=n(41);e.exports=r?function(e,t,n){return i.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var r=n(29),i=n(150),o=n(32),a=n(88),s=Object.defineProperty;t.f=r?s:function(e,t,n){if(o(e),t=a(t,!0),o(n),i)try{return s(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var r=n(17);e.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(e,t,n){var r=n(29),i=n(27),o=n(60);e.exports=r?function(e,t,n){return i.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var r=n(46),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},function(e,t,n){var r=n(24);e.exports=function(e){if(!r(e))throw TypeError(String(e)+" is not an object");return e}},function(e,n,r){"use strict";var i=r(3),o=r.n(i),a=r(4);var s=r(15);
/**
 * @copyright Copyright (c) 2019 Daniel Calviño Sánchez <danxuliu@gmail.com>
 * @copyright Copyright (c) 2019 Ivan Sein <ivan@nextcloud.com>
 * @copyright Copyright (c) 2019 Joachim Bauch <bauch@struktur.de>
 * @copyright Copyright (c) 2019 Joas Schilling <coding@schilljs.com>
 *
 * @author Daniel Calviño Sánchez <danxuliu@gmail.com>
 * @author Ivan Sein <ivan@nextcloud.com>
 * @author Joachim Bauch <bauch@struktur.de>
 * @author Joas Schilling <coding@schilljs.com>
 *
 * @license GNU AGPL version 3 or any later version
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *
 */const c={Base:{},Internal:{},Standalone:{},settings:{},async loadSettings(e){const t=await async function(e){return o.a.get(Object(a.generateOcsUrl)("apps/spreed/api/v1/signaling",2)+"settings")}();this.settings=t.data.ocs.data},createConnection(){this.settings||console.error("Signaling settings are not yet loaded");const e=this.settings.server;return e&&e.length?new c.Standalone(this.settings,e):new c.Internal(this.settings)}};function u(e){c.Base.prototype.constructor.apply(this,arguments),this.hideWarning=e.hideWarning,this.spreedArrayConnection=[],this.pullMessagesFails=0,this.pullMessagesRequest=null,this.isSendingMessages=!1,this.sendInterval=window.setInterval(function(){this.sendPendingMessages()}.bind(this),500)}function l(e,t){c.Base.prototype.constructor.apply(this,arguments),"string"==typeof t&&(t=[t]);let n=t[Math.floor(Math.random()*t.length)];0===n.indexOf("https://")?n="wss://"+n.substr(8):0===n.indexOf("http://")&&(n="ws://"+n.substr(7)),"/"===n[n.length-1]&&(n=n.substr(0,n.length-1)),this.url=n+"/spreed",this.initialReconnectIntervalMs=1e3,this.maxReconnectIntervalMs=16e3,this.reconnectIntervalMs=this.initialReconnectIntervalMs,this.joinedUsers={},this.rooms=[],this.connect()}c.Base=function(e){this.settings=e,this.sessionId="",this.currentRoomToken=null,this.currentCallToken=null,this.currentCallFlags=null,this.handlers={},this.features={},this._sendVideoIfAvailable=!0},c.Base.prototype.on=function(e,t){this.handlers.hasOwnProperty(e)?this.handlers[e].push(t):this.handlers[e]=[t];let n=[];switch(e){case"stunservers":case"turnservers":n=this.settings[e]||[],n.length&&t(n)}},c.Base.prototype.off=function(e,t){if(!this.handlers.hasOwnProperty(e))return;let n=this.handlers[e].indexOf(t);for(;-1!==n;)this.handlers[e].splice(n,1),n=this.handlers[e].indexOf(t)},c.Base.prototype._trigger=function(e,t){let n=this.handlers[e];if(n){n=n.slice(0);for(let e=0,r=n.length;e<r;e++){const r=n[e];r.apply(r,t)}}s.a.$emit("Signaling::"+e,t)},c.Base.prototype.isNoMcuWarningEnabled=function(){return!this.settings.hideWarning},c.Base.prototype.getSessionId=function(){return this.sessionId},c.Base.prototype.getCurrentCallFlags=function(){return this.currentCallFlags},c.Base.prototype.disconnect=function(){this.sessionId="",this.currentCallToken=null,this.currentCallFlags=null},c.Base.prototype.hasFeature=function(e){return this.features&&this.features[e]},c.Base.prototype.emit=function(e,t){switch(e){case"joinRoom":this.joinRoom(t);break;case"joinCall":this.joinCall(t,arguments[2]);break;case"leaveRoom":this.leaveCurrentRoom();break;case"leaveCall":this.leaveCurrentCall();break;case"message":this.sendCallMessage(t)}},c.Base.prototype.leaveCurrentRoom=function(){this.currentRoomToken&&(this.leaveRoom(this.currentRoomToken),this.currentRoomToken=null)},c.Base.prototype.leaveCurrentCall=function(){return new Promise((e,t)=>{this.currentCallToken?(this.leaveCall(this.currentCallToken).then(()=>{e()}).catch(e=>{t(e)}),this.currentCallToken=null,this.currentCallFlags=null):e()})},c.Base.prototype.joinRoom=function(e,n){return new Promise((r,i)=>{$.ajax({url:OC.linkToOCS("apps/spreed/api/v1/room",2)+e+"/participants/active",type:"POST",beforeSend:function(e){e.setRequestHeader("Accept","application/json")},data:{password:n},success:function(t){console.log("Joined",t),this.currentRoomToken=e,this._trigger("joinRoom",[e]),r(),this.currentCallToken===e?this.joinCall(e,this.currentCallFlags):(this.currentCallToken=null,this.currentCallFlags=null),this._joinRoomSuccess(e,t.ocs.data.sessionId)}.bind(this),error:function(n){i(n),403===n.status&&OC.dialogs.prompt(t("spreed","Please enter the password for this call"),t("spreed","Password required"),function(t,n){t&&""!==n&&this.joinRoom(e,n)}.bind(this),!0,t("spreed","Password"),!0).then((function(){const e=$(".oc-dialog:visible");e.find(".ui-icon").remove();const n=e.find("button");n.eq(0).text(t("core","Cancel")),n.eq(1).text(t("core","Submit"))}))}.bind(this)})})},c.Base.prototype._leaveRoomSuccess=function(){},c.Base.prototype.leaveRoom=function(e){return this.leaveCurrentCall(),this._trigger("leaveRoom",[e]),this._doLeaveRoom(e),new Promise((t,n)=>{$.ajax({url:OC.linkToOCS("apps/spreed/api/v1/room",2)+e+"/participants/active",method:"DELETE",async:!1,success:function(){this._leaveRoomSuccess(e),t(),e===this.currentRoomToken&&(this.currentRoomToken=null)}.bind(this),error:function(){n(new Error)}})})},c.Base.prototype.getSendVideoIfAvailable=function(){return this._sendVideoIfAvailable},c.Base.prototype.setSendVideoIfAvailable=function(e){this._sendVideoIfAvailable=e},c.Base.prototype._joinCallSuccess=function(){},c.Base.prototype.joinCall=function(e,t){return new Promise((n,r)=>{$.ajax({url:OC.linkToOCS("apps/spreed/api/v1/call",2)+e,type:"POST",data:{flags:t},beforeSend:function(e){e.setRequestHeader("Accept","application/json")},success:function(){this.currentCallToken=e,this.currentCallFlags=t,this._trigger("joinCall",[e]),n(),this._joinCallSuccess(e)}.bind(this),error:function(){r(new Error),OC.redirect(OC.generateUrl("apps/spreed"))}})})},c.Base.prototype._leaveCallSuccess=function(){},c.Base.prototype.leaveCall=function(e,t){return new Promise((n,r)=>{e?$.ajax({url:OC.linkToOCS("apps/spreed/api/v1/call",2)+e,method:"DELETE",async:!1,success:function(){this._trigger("leaveCall",[e,t]),this._leaveCallSuccess(e),n(),t||e!==this.currentCallToken||(this.currentCallToken=null,this.currentCallFlags=null)}.bind(this),error:function(){r(new Error)}}):r(new Error)})},u.prototype=new c.Base,u.prototype.constructor=u,c.Internal=u,c.Internal.prototype.disconnect=function(){this.spreedArrayConnection=[],this.sendInterval&&(window.clearInterval(this.sendInterval),this.sendInterval=null),c.Base.prototype.disconnect.apply(this,arguments)},c.Internal.prototype.on=function(e){switch(c.Base.prototype.on.apply(this,arguments),e){case"connect":this._sendMessageWithCallback(e)}},c.Internal.prototype.forceReconnect=function(e,t){e&&console.log("Forced reconnects with a new session are not supported in the internal signaling; same session as before will be used"),void 0!==t&&(this.currentCallFlags=t),this.leaveCall(this.currentCallToken,!0),this.joinCall(this.currentCallToken)},c.Internal.prototype._sendMessageWithCallback=function(e){const t=[{ev:e}];this._sendMessages(t).done(function(t){this._trigger(e,[t.ocs.data])}.bind(this)).fail((function(){console.log("Sending signaling message with callback has failed.")}))},c.Internal.prototype._sendMessages=function(e){const t=$.Deferred();return $.ajax({url:OC.linkToOCS("apps/spreed/api/v1/signaling",2)+this.currentRoomToken,type:"POST",data:{messages:JSON.stringify(e)},beforeSend:function(e){e.setRequestHeader("Accept","application/json")},success:function(e){t.resolve(e)},error:function(e,n,r){t.reject(e,n,r)}}),t},c.Internal.prototype._joinRoomSuccess=function(e,t){this.sessionId=t,this._startPullingMessages()},c.Internal.prototype._doLeaveRoom=function(e){},c.Internal.prototype.sendCallMessage=function(e){"answer"===e.type?console.log("ANSWER",e):"offer"===e.type&&console.log("OFFER",e),this.spreedArrayConnection.push({ev:"message",fn:JSON.stringify(e),sessionId:this.sessionId})},c.Internal.prototype._startPullingMessages=function(){this.currentRoomToken&&(null!==this.pullMessagesRequest&&this.pullMessagesRequest.abort(),this.pullMessagesRequest=$.ajax({url:OC.linkToOCS("apps/spreed/api/v1/signaling",2)+this.currentRoomToken,type:"GET",dataType:"json",beforeSend:function(e){e.setRequestHeader("Accept","application/json")},success:function(e){this.pullMessagesFails=0,$.each(e.ocs.data,function(e,t){switch(this._trigger("onBeforeReceiveMessage",[t]),t.type){case"usersInRoom":this._trigger("usersInRoom",[t.data]),this._trigger("participantListChanged");break;case"message":"string"==typeof t.data&&(t.data=JSON.parse(t.data)),this._trigger("message",[t.data]);break;default:console.log("Unknown Signaling Message")}this._trigger("onAfterReceiveMessage",[t])}.bind(this)),this._startPullingMessages()}.bind(this),error:function(e,t){if(0===e.status&&"abort"===t);else if(404===e.status||403===e.status)console.log("Stop pulling messages because room does not exist or is not accessible"),this._trigger("pullMessagesStoppedOnFail");else if(this.currentRoomToken){if(this.pullMessagesFails>=3)return console.log("Stop pulling messages after repeated failures"),void this._trigger("pullMessagesStoppedOnFail");this.pullMessagesFails++,window.setTimeout(function(){this._startPullingMessages()}.bind(this),5e3)}}.bind(this)}))},c.Internal.prototype.sendPendingMessages=function(){if(!this.spreedArrayConnection.length||this.isSendingMessages)return;const e=this.spreedArrayConnection.length;this.isSendingMessages=!0,this._sendMessages(this.spreedArrayConnection).done(function(){this.spreedArrayConnection.splice(0,e),this.isSendingMessages=!1}.bind(this)).fail(function(){console.log("Sending pending signaling messages has failed."),this.isSendingMessages=!1}.bind(this))},l.prototype=new c.Base,l.prototype.constructor=l,c.Standalone=l,c.Standalone.prototype.reconnect=function(){if(this.reconnectTimer)return;const e=this.reconnectIntervalMs-this.reconnectIntervalMs/2+this.reconnectIntervalMs*Math.random();console.log("Reconnect in",e),this.reconnected=!0,this.reconnectTimer=window.setTimeout(function(){this.reconnectTimer=null,this.connect()}.bind(this),e),this.reconnectIntervalMs=2*this.reconnectIntervalMs,this.reconnectIntervalMs>this.maxReconnectIntervalMs&&(this.reconnectIntervalMs=this.maxReconnectIntervalMs),this.socket&&(this.socket.close(),this.socket=null)},c.Standalone.prototype.connect=function(){console.log("Connecting to",this.url),this.callbacks={},this.id=1,this.pendingMessages=[],this.connected=!1,this._forceReconnect=!1,this.socket=new WebSocket(this.url),window.signalingSocket=this.socket,this.socket.onopen=function(e){console.log("Connected",e),this.reconnectIntervalMs=this.initialReconnectIntervalMs,this.sendHello()}.bind(this),this.socket.onerror=function(e){console.log("Error",e),this.reconnect()}.bind(this),this.socket.onclose=function(e){console.log("Close",e),this.reconnect()}.bind(this),this.socket.onmessage=function(e){let t=e.data;"string"==typeof t&&(t=JSON.parse(t)),console.log("Received",t);const n=t.id;if(n&&this.callbacks.hasOwnProperty(n)){const e=this.callbacks[n];delete this.callbacks[n],e(t)}switch(this._trigger("onBeforeReceiveMessage",[t]),t.type){case"hello":n||this.helloResponseReceived(t);break;case"room":this.currentRoomToken&&t.room.roomid!==this.currentRoomToken?(this._trigger("roomChanged",[this.currentRoomToken,t.room.roomid]),this.joinedUsers={},this.currentRoomToken=null):s.a.$emit("shouldRefreshConversations");break;case"event":this.processEvent(t);break;case"message":t.message.data.from=t.message.sender.sessionid,this._trigger("message",[t.message.data]);break;default:n||console.log("Ignore unknown event",t)}this._trigger("onAfterReceiveMessage",[t])}.bind(this)},c.Standalone.prototype.sendBye=function(){this.connected&&this.doSend({type:"bye",bye:{}}),this.resumeId=null,this.signalingRoomJoined=null},c.Standalone.prototype.disconnect=function(){this.sendBye(),this.socket&&(this.socket.close(),this.socket=null),c.Base.prototype.disconnect.apply(this,arguments)},c.Standalone.prototype.forceReconnect=function(e,t){if(void 0!==t&&(this.currentCallFlags=t),!this.connected){if(!e)return;return this._forceReconnect=!0,this.resumeId=null,void(this.signalingRoomJoined=null)}this._forceReconnect=!1,e&&(this.currentCallToken&&this.leaveCall(this.currentCallToken,!0),this.sendBye()),this.socket&&this.socket.close()},c.Standalone.prototype.sendCallMessage=function(e){this.doSend({type:"message",message:{recipient:{type:"session",sessionid:e.to},data:e}})},c.Standalone.prototype.sendRoomMessage=function(e){this.currentCallToken?this.doSend({type:"message",message:{recipient:{type:"room"},data:e}}):console.warn("Not in a room, not sending room message",e)},c.Standalone.prototype.doSend=function(e,t){if(!this.connected&&"hello"!==e.type||null===this.socket)this.pendingMessages.push([e,t]);else{if(t){const n=this.id++;this.callbacks[n]=t,e.id=""+n}console.log("Sending",e),this.socket.send(JSON.stringify(e))}},c.Standalone.prototype.sendHello=function(){let e;if(this.resumeId)console.log("Trying to resume session",this.sessionId),e={type:"hello",hello:{version:"1.0",resumeid:this.resumeId}};else{this._forceReconnect=!1,e={type:"hello",hello:{version:"1.0",auth:{url:OC.linkToOCS("apps/spreed/api/v1/signaling",2)+"backend",params:{userid:this.settings.userId,ticket:this.settings.ticket}}}}}this.doSend(e,this.helloResponseReceived.bind(this))},c.Standalone.prototype.helloResponseReceived=function(e){if(console.log("Hello response received",e),"hello"!==e.type)return this.resumeId?(this.resumeId="",void this.sendHello()):(console.error("Could not connect to server",e),void this.reconnect());const t=!!this.resumeId;if(this.connected=!0,this._forceReconnect&&t)return console.log("Perform pending forced reconnect"),void this.forceReconnect(!0);let n;if(this.sessionId=e.hello.sessionid,this.resumeId=e.hello.resumeid,this.features={},e.hello.server&&e.hello.server.features){const t=e.hello.server.features;for(n=0;n<t.length;n++)this.features[t[n]]=!0}const r=this.pendingMessages;for(this.pendingMessages=[],n=0;n<r.length;n++){const e=r[n][0],t=r[n][1];this.doSend(e,t)}this._trigger("connect"),!t&&this.currentRoomToken&&this.joinRoom(this.currentRoomToken)},c.Standalone.prototype.joinRoom=function(e){if(!this.sessionId){if(this._pendingJoinRoomPromise&&this._pendingJoinRoomPromise.token===e)return this._pendingJoinRoomPromise;let t,n;return this._pendingJoinRoomPromise&&this._pendingJoinRoomPromise.reject(),this._pendingJoinRoomPromise=new Promise((e,r)=>{t=e,n=r}),this._pendingJoinRoomPromise.resolve=t,this._pendingJoinRoomPromise.reject=n,this._pendingJoinRoomPromise.token=e,console.log("Not connected to signaling server yet, defer joining room",e),this.currentRoomToken=e,this._pendingJoinRoomPromise}if(this._pendingJoinRoomPromise&&this._pendingJoinRoomPromise.token!==e&&(this._pendingJoinRoomPromise.reject(),delete this._pendingJoinRoomPromise),!this._pendingJoinRoomPromise)return c.Base.prototype.joinRoom.apply(this,arguments);const t=this._pendingJoinRoomPromise;return delete this._pendingJoinRoomPromise,c.Base.prototype.joinRoom.apply(this,arguments).then(()=>{t.resolve()}).catch(e=>{t.reject(e)}),t},c.Standalone.prototype._joinRoomSuccess=function(e,t){this.sessionId?(console.log("Join room",e),this.doSend({type:"room",room:{roomid:e,sessionid:t}},function(t){this.joinResponseReceived(t,e)}.bind(this))):console.log("No hello response received yet, not joining room",e)},c.Standalone.prototype.joinCall=function(e,t){if(this.signalingRoomJoined!==e)return console.log("Not joined room yet, not joining call",e),void(this.pendingJoinCall={token:e,flags:t});c.Base.prototype.joinCall.apply(this,arguments)},c.Standalone.prototype._joinCallSuccess=function(){s.a.$emit("shouldRefreshConversations")},c.Standalone.prototype._leaveCallSuccess=function(){s.a.$emit("shouldRefreshConversations")},c.Standalone.prototype.joinResponseReceived=function(e,t){console.log("Joined",e,t),this.signalingRoomJoined=t,this.pendingJoinCall&&t===this.pendingJoinCall.token&&(this.joinCall(this.pendingJoinCall.token,this.pendingJoinCall.flags),this.pendingJoinCall=null),this.roomCollection&&(this.roomCollection.forEach((function(e){e.get("token")===t&&e.set("lastPing",(new Date).getTime()/1e3)})),this.roomCollection.sort())},c.Standalone.prototype._doLeaveRoom=function(e){console.log("Leave room",e),this.doSend({type:"room",room:{roomid:""}},function(e){console.log("Left",e),this.signalingRoomJoined=null;const t=_.keys(this.joinedUsers);t.length&&this._trigger("usersLeft",[t]),this.joinedUsers={}}.bind(this))},c.Standalone.prototype.processEvent=function(e){switch(e.event.target){case"room":this.processRoomEvent(e);break;case"roomlist":this.processRoomListEvent(e);break;case"participants":this.processRoomParticipantsEvent(e);break;default:console.log("Unsupported event target",e)}},c.Standalone.prototype.processRoomEvent=function(e){let t,n=[],r=[];switch(e.event.type){case"join":if(n=e.event.join||[],n.length){console.log("Users joined",n);let e={};for(this.reconnected&&(this.reconnected=!1,e=_.extend({},this.joinedUsers)),t=0;t<n.length;t++)this.joinedUsers[n[t].sessionid]=!0,delete e[n[t].sessionid];e=_.keys(e),e.length&&this._trigger("usersLeft",[e]),this._trigger("usersJoined",[n]),this._trigger("participantListChanged")}break;case"leave":if(r=e.event.leave||[],r.length){for(console.log("Users left",r),t=0;t<r.length;t++)delete this.joinedUsers[r[t]];this._trigger("usersLeft",[r]),this._trigger("participantListChanged")}break;case"message":this.processRoomMessageEvent(e.event.message.data);break;default:console.log("Unknown room event",e)}},c.Standalone.prototype.processRoomMessageEvent=function(e){switch(e.type){case"chat":s.a.$emit("shouldRefreshChatMessages");break;default:console.log("Unknown room message event",e)}},c.Standalone.prototype.processRoomListEvent=function(e){console.log("Room list event",e),s.a.$emit("shouldRefreshConversations")},c.Standalone.prototype.processRoomParticipantsEvent=function(e){switch(e.event.type){case"update":this._trigger("usersChanged",[e.event.update.users||[]]),this._trigger("participantListChanged"),s.a.$emit("shouldRefreshConversations");break;default:console.log("Unknown room participant event",e)}},c.Standalone.prototype.requestOffer=function(e,t){this.hasFeature("mcu")?("string"!=typeof e&&(e=e.sessionId||e.sessionid),console.log("Request offer from",e),this.doSend({type:"message",message:{recipient:{type:"session",sessionid:e},data:{type:"requestoffer",roomType:t}}})):console.warn("Can't request an offer without a MCU.")},c.Standalone.prototype.sendOffer=function(e,t){this.hasFeature("mcu")?("string"!=typeof e&&(e=e.sessionId||e.sessionid),console.log("Send offer to",e),this.doSend({type:"message",message:{recipient:{type:"session",sessionid:e},data:{type:"sendoffer",roomType:t}}})):console.warn("Can't send an offer without a MCU.")};var d=c,p=r(325),f=r.n(p),h=r(1),v=r(123);
/**
 * @copyright Copyright (c) 2019 Daniel Calviño Sánchez <danxuliu@gmail.com>
 * @copyright Copyright (c) 2019 Ivan Sein <ivan@nextcloud.com>
 * @copyright Copyright (c) 2019 Joachim Bauch <bauch@struktur.de>
 * @copyright Copyright (c) 2019 Joas Schilling <coding@schilljs.com>
 *
 * @author Daniel Calviño Sánchez <danxuliu@gmail.com>
 * @author Ivan Sein <ivan@nextcloud.com>
 * @author Joachim Bauch <bauch@struktur.de>
 * @author Joas Schilling <coding@schilljs.com>
 *
 * @license GNU AGPL version 3 or any later version
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *
 */
let m;const g=[];let y=[],b={},S=null,w=null,C=h.c.CALL_FLAG.DISCONNECTED;const E=[];let T=null;function R(e,t){return e.filter((function(e){return t.indexOf(e)<0}))}function O(e,t){const n=e.getSessionId(),r=e.hasFeature("mcu");if(r&&!m.webrtc.getPeers(n,"screen").length&&(w&&w.end(),w=m.webrtc.createPeer({id:n,type:"screen",sharemyscreen:!0,enableDataChannels:!1,receiveMedia:{offerToReceiveAudio:0,offerToReceiveVideo:0},broadcaster:n}),m.emit("createdPeer",w),w.start()),t!==n)if(r)e.sendOffer(t,"screen");else if(!r){if(!m.webrtc.getPeers(t,"screen").find((function(e){return!0===e.sharemyscreen}))){const e=m.webrtc.createPeer({id:t,type:"screen",sharemyscreen:!0,enableDataChannels:!1,receiveMedia:{offerToReceiveAudio:0,offerToReceiveVideo:0},broadcaster:n});m.emit("createdPeer",e),e.start()}}}function k(e){const t=e.getSessionId();m.webrtc.localStreams.length&&!m.webrtc.getPeers(t,"video").length&&(S&&(m.removePeers(S.id),S.end()),S=m.webrtc.createPeer({id:t,type:"video",enableDataChannels:!0,receiveMedia:{offerToReceiveAudio:0,offerToReceiveVideo:0},sendVideoIfAvailable:e.getSendVideoIfAvailable()}),m.emit("createdPeer",S),S.start())}function P(e){let t=e;return t.hasOwnProperty("inCall")&&(t=t.inCall),t=t||h.c.CALL_FLAG.DISCONNECTED,0!=(t&(h.c.CALL_FLAG.WITH_AUDIO|h.c.CALL_FLAG.WITH_VIDEO))}function x(e,t,n){const r=e.getSessionId(),i=e.hasFeature("mcu");i&&t.length&&k(e),t.forEach((function(t){if(!t.inCall)return;const n=t.sessionId||t.sessionid;if(!n||n===r||-1!==y.indexOf(n))return;y.push(n);const o=t.userId||t.userid||null;let a=T.get(n);a||(a=T.add({peerId:n,webRtc:m})),a.setUserId(o),(e.hasFeature("mcu")&&t&&!P(t)||!e.hasFeature("mcu")&&t&&!P(t)&&!m.webrtc.localStreams.length)&&a.setPeer(null);const s=function(){const t=m.webrtc.createPeer({id:n,type:"video",enableDataChannels:!0,receiveMedia:{offerToReceiveAudio:1,offerToReceiveVideo:1},sendVideoIfAvailable:e.getSendVideoIfAvailable()});m.emit("createdPeer",t),t.start()};m.webrtc.getPeers(n,"video").length||(i?(e.requestOffer(t,"video"),E[t.sessionId]=setInterval((function(){console.log("No offer received for new peer, request offer again"),e.requestOffer(t,"video")}),1e4)):P(C)&&(!P(t)||n<r)?(console.log("Starting call with",t),s()):P(C)&&P(t)&&n>r&&(E[n]=setInterval((function(){m.webrtc.getPeers(n,"video").forEach((function(e){e.end()})),console.log("No offer nor answer received, sending offer again"),s()}),1e4))),m.getLocalScreen()&&O(e,n)})),n.forEach((function(e){console.log("XXX Remove peer",e),m.removePeers(e),T.remove(e),E[e]&&(clearInterval(E[e]),delete E[e])})),y=R(y,n)}function I(e,t){const n=e.getSessionId(),r=[],i={};let o;for(o in C=h.c.CALL_FLAG.DISCONNECTED,t){if(!t.hasOwnProperty(o))continue;const e=t[o];e.inCall&&(o!==n?(r.push(o),i[o]=e):C=e.inCall)}if(!C)return void x(e,[],y);const a=R(r,y),s=R(y,r),c=[];a.forEach((function(e){c.push(i[e])})),(c.length||s.length)&&x(e,c,s)}function A(e,n){T=n,e.on("usersLeft",(function(t){t.forEach((function(e){delete b[e]})),x(e,[],t)})),e.on("usersChanged",(function(t){t.forEach((function(e){const t=e.sessionId||e.sessionid;b[t]=e})),I(e,b)})),e.on("usersInRoom",(function(t){b={},t.forEach((function(e){const t=e.sessionId||e.sessionid;b[t]=e})),I(e,b)})),e.on("leaveCall",(function(e,t){t||m.leaveCall()})),e.on("message",(function(t){if("answer"===t.type&&"video"===t.roomType&&E[t.from])return clearInterval(E[t.from]),void delete E[t.from];if("offer"!==t.type)return;const n=m.webrtc.peers.find((function(e){return!e.sharemyscreen&&(e.id===t.from&&e.type===t.roomType&&e.sid!==t.sid)}));n&&n.end(),"video"===t.roomType&&E[t.from]&&(clearInterval(E[t.from]),delete E[t.from]),C||(console.log("Offer received when not in the call, ignore"),t.type="offer-to-ignore"),e.hasFeature("mcu")&&"screen"===t.roomType&&(t.broadcaster=t.from)})),m=new f.a({remoteVideosEl:"",autoRequestMedia:!0,debug:!1,media:{audio:!0,video:!0},autoAdjustMic:!1,audioFallback:!0,detectSpeakingEvents:!0,connection:e,enableDataChannels:!0,nick:v.a.getters.getDisplayName()}),e.hasFeature("mcu")&&(m.webrtc.config.peerConnectionConfig.sdpSemantics="plan-b"),e.on("pullMessagesStoppedOnFail",(function(){m.leaveCall()})),m.startMedia=function(e){m.joinCall(e)};const r=function(t,n,r){S&&e.hasFeature&&e.hasFeature("mcu")?S.sendDirectly(t,n,r):m.sendDirectlyToAll(t,n,r)};function i(e){e.nickInterval&&(clearInterval(e.nickInterval),e.nickInterval=null)}function o(t){g[t.id]=0,t.pc.addEventListener("iceconnectionstatechange",(function(){switch(t.emit("extendedIceConnectionStateChange",t.pc.iceConnectionState),t.pc.iceConnectionState){case"checking":console.log("Connecting to peer...",t);break;case"connected":case"completed":console.log("Connection established.",t),function(t){if(m.webrtc.isVideoEnabled()?m.emit("videoOn"):m.emit("videoOff"),m.webrtc.isAudioEnabled()?m.emit("audioOn"):m.emit("audioOff"),null===e.settings.userId){const e=localStorage.getItem("nick");r("status","nickChanged",e)}g[t.id]>0&&(g[t.id]=0)}(t);break;case"disconnected":console.log("Disconnected.",t),function(t){setTimeout((function(){"disconnected"===t.pc.iceConnectionState&&(t.emit("extendedIceConnectionStateChange","disconnected-long"),e.hasFeature("mcu")||g[t.id]<5&&"offer"===t.pc.localDescription.type&&"stable"===t.pc.signalingState&&(g[t.id]++,console.log("ICE restart.",t),t.icerestart()))}),5e3)}(t);break;case"failed":console.log("Connection failed.",t),function(t){e.hasFeature("mcu")?(console.log("Request offer again",t),e.requestOffer(t.id,"video"),E[t.id]=setInterval((function(){console.log("No offer received, request offer again",t),e.requestOffer(t.id,"video")}),1e4)):g[t.id]<5?"offer"===t.pc.localDescription.type&&"stable"===t.pc.signalingState&&(g[t.id]++,console.log("ICE restart.",t),t.icerestart()):(console.log("ICE failed after 5 tries.",t),t.emit("extendedIceConnectionStateChange","failed-no-restart"))}(t);break;case"closed":console.log("Connection closed.",t)}}))}function a(e,t,n){const r=$.Deferred();return e.pc.getStats(t).then((function(t){let i=!1;t.forEach((function(t){!i&&t.mediaType===n&&t.hasOwnProperty("bytesReceived")&&t.bytesReceived>0&&(m.emit("unmute",{id:e.id,name:n}),i=!0)})),i?r.resolve():r.reject()})),r}function s(e){e.check_audio_interval&&(clearInterval(e.check_audio_interval),e.check_audio_interval=null),e.check_video_interval&&(clearInterval(e.check_video_interval),e.check_video_interval=null),i(e)}m.on("createdPeer",(function(t){if(console.log("PEER CREATED",t),t.id!==e.getSessionId()&&!t.sharemyscreen){let e=T.get(t.id);e||(e=T.add({peerId:t.id,webRtc:m})),"video"===t.type?e.setPeer(t):e.setScreenPeer(t)}"video"===t.type&&(t.id===e.getSessionId()?(console.log("Not adding ICE connection state handler for own peer",t),function(t){e.hasFeature("mcu")&&(i(t),t.nickInterval=setInterval((function(){let n;n=null===e.settings.userId?localStorage.getItem("nick"):{name:v.a.getters.getDisplayName(),userid:e.settings.userId},t.sendDirectly("status","nickChanged",n)}),1e3))}(t)):o(t),t.getDataChannel("status"))})),m.on("peerStreamAdded",(function(t){e.hasFeature("mcu")&&function(e,t){s(e),e.check_video_interval=setInterval((function(){t.getVideoTracks().forEach((function(t){a(e,t,"video").then((function(){clearInterval(e.check_video_interval),e.check_video_interval=null}))}))}),1e3),e.check_audio_interval=setInterval((function(){t.getAudioTracks().forEach((function(t){a(e,t,"audio").then((function(){clearInterval(e.check_audio_interval),e.check_audio_interval=null}))}))}),1e3)}(t,t.stream)})),m.on("peerStreamRemoved",(function(e){s(e)}));const c=function(e,t){S&&(m.removePeers(S.id),S.end(),S=null),x(e,[],y),b={},y=[],e.forceReconnect(!0,t)};m.webrtc.on("videoOn",(function(){if(e.getSendVideoIfAvailable())return;e.setSendVideoIfAvailable(!0);let t=e.getCurrentCallFlags();t|=h.c.CALL_FLAG.WITH_VIDEO,c(e,t)})),m.webrtc.on("iceFailed",(function(){e.hasFeature("mcu")&&c(e)}));let u=null,l=null;const d=function(){clearTimeout(u),u=null,l&&(OC.Notification.hide(l),l=null)};return m.on("localStreamRequested",(function(){d(),u=setTimeout((function(){l=OC.Notification.show(t("spreed","This is taking longer than expected. Are the media permissions already granted (or rejected)? If yes please restart your browser, as audio and video are failing"),{type:"error"})}),1e4)})),e.on("leaveRoom",(function(t){e.currentRoomToken===t&&d()})),m.on("localMediaStarted",(function(t){console.log("localMediaStarted"),d(),e.hasFeature("mcu")&&k(e)})),m.on("localMediaError",(function(e){let n;console.log("Access to microphone & camera failed",e),d(),"NotSupportedError"===e.name&&m.capabilities.supportRTCPeerConnection||"NotAllowedError"===e.name&&e.message&&-1!==e.message.indexOf("Only secure origins")?(n=t("spreed","Access to microphone & camera is only possible with HTTPS"),n+=": "+t("spreed","Please move your setup to HTTPS")):"NotAllowedError"===e.name?n=t("spreed","Access to microphone & camera was denied"):m.capabilities.support?(n=t("spreed","Error while accessing microphone & camera"),console.log("Error while accessing microphone & camera: ",e.message||e.name)):(console.log("WebRTC not supported"),n=t("spreed","WebRTC is not supported in your browser"),n+=": "+t("spreed","Please use a different browser like Firefox or Chrome")),OC.Notification.show(n,{type:"error",timeout:15})})),m.on("channelOpen",(function(e){console.log("%s datachannel is open",e.label)})),m.on("channelMessage",(function(e,t,n){if("status"===t){if("audioOn"===n.type)m.emit("unmute",{id:e.id,name:"audio"});else if("audioOff"===n.type)m.emit("mute",{id:e.id,name:"audio"});else if("videoOn"===n.type)m.emit("unmute",{id:e.id,name:"video"});else if("videoOff"===n.type)m.emit("mute",{id:e.id,name:"video"});else if("nickChanged"===n.type){const t=n.payload||"";"string"==typeof t?m.emit("nick",{id:e.id,name:n.payload}):m.emit("nick",{id:e.id,name:t.name,userid:t.userid})}}else"hark"===t||console.log("Uknown message from %s datachannel",t,n)})),m.on("speaking",(function(){r("status","speaking")})),m.on("stoppedSpeaking",(function(){r("status","stoppedSpeaking")})),m.on("audioOn",(function(){r("status","audioOn")})),m.on("audioOff",(function(){r("status","audioOff")})),m.on("videoOn",(function(){r("status","videoOn")})),m.on("videoOff",(function(){r("status","videoOff")})),m.on("localScreenAdded",(function(t){const n=e.getSessionId();for(const t in b)b.hasOwnProperty(t)&&b[t].inCall&&t!==n&&O(e,t)})),m.on("localScreenStopped",(function(){e.hasFeature("mcu")&&w&&(w=null,e.sendRoomMessage({roomType:"screen",type:"unshareScreen"}))})),m}var M=r(55);
/**
 *
 * @copyright Copyright (c) 2019, Daniel Calviño Sánchez (danxuliu@gmail.com)
 *
 * @license GNU AGPL version 3 or any later version
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *
 */function j(){this.callParticipantModels=[]}
/**
 *
 * @copyright Copyright (c) 2019, Daniel Calviño Sánchez (danxuliu@gmail.com)
 *
 * @license GNU AGPL version 3 or any later version
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *
 */
function D(){this.attributes={peerId:null,guestName:null}}
/**
 *
 * @copyright Copyright (c) 2019, Daniel Calviño Sánchez (danxuliu@gmail.com)
 *
 * @license GNU AGPL version 3 or any later version
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *
 */
function L(){this.attributes={localStream:null,audioAvailable:!1,audioEnabled:!1,speaking:!1,speakingWhileMuted:!1,currentVolume:-100,volumeThreshold:-100,videoAvailable:!1,videoEnabled:!1,localScreen:null},this._handlers=[],this._handleLocalStreamBound=this._handleLocalStream.bind(this),this._handleLocalStreamRequestFailedBound=this._handleLocalStreamRequestFailed.bind(this),this._handleLocalStreamStoppedBound=this._handleLocalStreamStopped.bind(this),this._handleAudioOnBound=this._handleAudioOn.bind(this),this._handleAudioOffBound=this._handleAudioOff.bind(this),this._handleVolumeChangeBound=this._handleVolumeChange.bind(this),this._handleSpeakingBound=this._handleSpeaking.bind(this),this._handleStoppedSpeakingBound=this._handleStoppedSpeaking.bind(this),this._handleSpeakingWhileMutedBound=this._handleSpeakingWhileMuted.bind(this),this._handleStoppedSpeakingWhileMutedBound=this._handleStoppedSpeakingWhileMuted.bind(this),this._handleVideoOnBound=this._handleVideoOn.bind(this),this._handleVideoOffBound=this._handleVideoOff.bind(this),this._handleLocalScreenBound=this._handleLocalScreen.bind(this),this._handleLocalScreenStoppedBound=this._handleLocalScreenStopped.bind(this)}j.prototype={add:function(e){const t=new M.b(e);return this.callParticipantModels.push(t),t},get:function(e){return this.callParticipantModels.find((function(t){return t.attributes.peerId===e}))},remove:function(e){const t=this.callParticipantModels.findIndex((function(t){return t.attributes.peerId===e}));-1!==t&&this.callParticipantModels.splice(t,1)}},D.prototype={set:function(e,t){this.attributes[e]=t},setWebRtc:function(e){this._webRtc=e,this.set("peerId",this._webRtc.connection.getSessionId()),this.set("guestName",null)},setGuestName:function(e){if(!this._webRtc)throw new Error("WebRtc not initialized yet");this.set("guestName",e),this._webRtc.sendDirectlyToAll("status","nickChanged",e)}},L.prototype={get:function(e){return this.attributes[e]},set:function(e,t){this.attributes[e]=t,this._trigger("change:"+e,[t])},on:function(e,t){this._handlers.hasOwnProperty(e)?this._handlers[e].push(t):this._handlers[e]=[t]},_trigger:function(e,t){let n=this._handlers[e];if(n){t.unshift(this),n=n.slice(0);for(let e=0;e<n.length;e++){const r=n[e];r.apply(r,t)}}},getWebRtc:function(){return this._webRtc},setWebRtc:function(e){this._webRtc&&this._webRtc.webrtc&&(this._webRtc.webrtc.off("localStream",this._handleLocalStreamBound),this._webRtc.webrtc.off("localStreamRequestFailed",this._handleLocalStreamRequestFailedBound),this._webRtc.webrtc.off("localStreamStopped",this._handleLocalStreamStoppedBound),this._webRtc.webrtc.off("audioOn",this._handleAudioOnBound),this._webRtc.webrtc.off("audioOff",this._handleAudioOffBound),this._webRtc.webrtc.off("volumeChange",this._handleVolumeChangeBound),this._webRtc.webrtc.off("speaking",this._handleSpeakingBound),this._webRtc.webrtc.off("stoppedSpeaking",this._handleStoppedSpeakingBound),this._webRtc.webrtc.off("speakingWhileMuted",this._handleSpeakingWhileMutedBound),this._webRtc.webrtc.off("stoppedSpeakingWhileMuted",this._handleStoppedSpeakingWhileMutedBound),this._webRtc.webrtc.off("videoOn",this._handleVideoOnBound),this._webRtc.webrtc.off("videoOff",this._handleVideoOffBound),this._webRtc.webrtc.off("localScreen",this._handleLocalScreenBound),this._webRtc.webrtc.off("localScreenStopped",this._handleLocalScreenStoppedBound)),this._webRtc=e,this.set("localStream",null),this.set("audioAvailable",!1),this.set("audioEnabled",!1),this.set("speaking",!1),this.set("speakingWhileMuted",!1),this.set("currentVolume",-100),this.set("volumeThreshold",-100),this.set("videoAvailable",!1),this.set("videoEnabled",!1),this.set("localScreen",null),this._webRtc.webrtc.on("localStream",this._handleLocalStreamBound),this._webRtc.webrtc.on("localStreamRequestFailed",this._handleLocalStreamRequestFailedBound),this._webRtc.webrtc.on("localStreamStopped",this._handleLocalStreamStoppedBound),this._webRtc.webrtc.on("audioOn",this._handleAudioOnBound),this._webRtc.webrtc.on("audioOff",this._handleAudioOffBound),this._webRtc.webrtc.on("volumeChange",this._handleVolumeChangeBound),this._webRtc.webrtc.on("speaking",this._handleSpeakingBound),this._webRtc.webrtc.on("stoppedSpeaking",this._handleStoppedSpeakingBound),this._webRtc.webrtc.on("speakingWhileMuted",this._handleSpeakingWhileMutedBound),this._webRtc.webrtc.on("stoppedSpeakingWhileMuted",this._handleStoppedSpeakingWhileMutedBound),this._webRtc.webrtc.on("videoOn",this._handleVideoOnBound),this._webRtc.webrtc.on("videoOff",this._handleVideoOffBound),this._webRtc.webrtc.on("localScreen",this._handleLocalScreenBound),this._webRtc.webrtc.on("localScreenStopped",this._handleLocalScreenStoppedBound)},_handleLocalStream:function(e,t){this.set("localStream",t),this._setInitialMediaState(e)},_handleLocalStreamRequestFailed:function(){this.set("localStream",null),this._setInitialMediaState({audio:!1,video:!1})},_setInitialMediaState:function(e){!1!==e.audio?(this.set("audioAvailable",!0),this.get("audioEnabled")?this.enableAudio():this.disableAudio()):(this.set("audioEnabled",!1),this.set("audioAvailable",!1)),!1!==e.video?(this.set("videoAvailable",!0),this.get("videoEnabled")?this.enableVideo():this.disableVideo()):(this.set("videoEnabled",!1),this.set("videoAvailable",!1))},_handleLocalStreamStopped:function(e){this.get("localStream")===e&&this.set("localStream",null)},_handleAudioOn:function(){this.get("audioAvailable")&&this.set("audioEnabled",!0)},_handleAudioOff:function(){this.get("audioAvailable")&&this.set("audioEnabled",!1)},_handleVolumeChange:function(e,t){this.get("audioAvailable")&&(this.set("currentVolume",e),this.set("volumeThreshold",t))},_handleSpeaking:function(){this.get("audioAvailable")&&this.set("speaking",!0)},_handleStoppedSpeaking:function(){this.get("audioAvailable")&&this.set("speaking",!1)},_handleSpeakingWhileMuted:function(){this.get("audioAvailable")&&this.set("speakingWhileMuted",!0)},_handleStoppedSpeakingWhileMuted:function(){this.get("audioAvailable")&&this.set("speakingWhileMuted",!1)},_handleVideoOn:function(){this.get("videoAvailable")&&this.set("videoEnabled",!0)},_handleVideoOff:function(){this.get("videoAvailable")&&this.set("videoEnabled",!1)},_handleLocalScreen:function(e){this.set("localScreen",e)},_handleLocalScreenStopped:function(){this.set("localScreen",null)},enableAudio:function(){if(!this._webRtc)throw new Error("WebRtc not initialized yet");this.get("audioAvailable")&&this._webRtc.unmute()},disableAudio:function(){if(!this._webRtc)throw new Error("WebRtc not initialized yet");this.get("audioAvailable")?this._webRtc.mute():this.set("audioEnabled",!1)},enableVideo:function(){if(!this._webRtc)throw new Error("WebRtc not initialized yet");this.get("videoAvailable")&&this._webRtc.resumeVideo()},disableVideo:function(){if(!this._webRtc)throw new Error("WebRtc not initialized yet");this.get("videoAvailable")?this._webRtc.pauseVideo():this.set("videoEnabled",!1)},shareScreen:function(e,t){if(!this._webRtc)throw new Error("WebRtc not initialized yet");this._webRtc.shareScreen(e,t)},stopSharingScreen:function(){if(!this._webRtc)throw new Error("WebRtc not initialized yet");this._webRtc.stopScreenShare()}},r.d(n,"a",(function(){return U})),r.d(n,"f",(function(){return B})),r.d(n,"g",(function(){return G})),r.d(n,"b",(function(){return z})),r.d(n,"c",(function(){return W})),r.d(n,"d",(function(){return H})),r.d(n,"e",(function(){return Y}));
/**
 *
 * @copyright Copyright (c) 2019, Daniel Calviño Sánchez (danxuliu@gmail.com)
 *
 * @license GNU AGPL version 3 or any later version
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *
 */
let N=null,F=null;const U=new j,B=new D,G=new L;let V=null;async function z(){if(!N)return V||(V=new Promise((e,t)=>{d.loadSettings(null).then(()=>{N=d.createConnection(),s.a.$emit("signalingConnectionEstablished"),V=null,e()})}),V)}async function W(){return await z(),N}function H(){return N}let q=null,J=null;function X(e){let t=h.c.CALL_FLAG.IN_CALL;e&&(e.audio&&(t|=h.c.CALL_FLAG.WITH_AUDIO),e.video&&N.getSendVideoIfAvailable()&&(t|=h.c.CALL_FLAG.WITH_VIDEO)),N.joinCall(q,t),J()}async function Y(e){return await z(),F||(F=A(N,U),B.setWebRtc(F),G.setWebRtc(F),F.on("localMediaStarted",(function(e){X(e)})),F.on("localMediaError",(function(){X(null)}))),q=e,new Promise((t,n)=>{J=t,F.startMedia(e)})}},function(e,t,n){var r=n(36);e.exports=function(e){return Object(r(e))}},function(e,t,n){"use strict";n.d(t,"i",(function(){return s})),n.d(t,"h",(function(){return c})),n.d(t,"m",(function(){return u})),n.d(t,"d",(function(){return l})),n.d(t,"c",(function(){return d})),n.d(t,"e",(function(){return p})),n.d(t,"f",(function(){return f})),n.d(t,"g",(function(){return m})),n.d(t,"a",(function(){return g})),n.d(t,"l",(function(){return y})),n.d(t,"p",(function(){return b})),n.d(t,"k",(function(){return S})),n.d(t,"j",(function(){return w})),n.d(t,"b",(function(){return C})),n.d(t,"o",(function(){return h})),n.d(t,"n",(function(){return v}));var r=n(3),i=n.n(r),o=n(4),a=n(1);
/**
 * @copyright Copyright (c) 2019 Marco Ambrosini <marcoambrosini@pm.me>
 *
 * @author Marco Ambrosini <marcoambrosini@pm.me>
 *
 * @license GNU AGPL version 3 or any later version
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
 *
 */
const s=async function(){return await i.a.get(Object(o.generateOcsUrl)("apps/spreed/api/v1",2)+"room")},c=async function(e){return await i.a.get(Object(o.generateOcsUrl)("apps/spreed/api/v1",2)+`room/${e}`)},u=async function(e,t){t=t||"new";const n=[a.d.TYPE.USER,a.d.TYPE.GROUP,a.d.TYPE.CIRCLE];"new"!==t&&n.push(a.d.TYPE.EMAIL);try{return await i.a.get(Object(o.generateOcsUrl)("core/autocomplete",2)+"get",{params:{search:e,itemType:"call",itemId:t,shareTypes:n}})}catch(e){console.debug("Error while searching possible conversations: ",e)}},l=async function(e){try{return await i.a.post(Object(o.generateOcsUrl)("apps/spreed/api/v1",2)+"room",{roomType:a.a.TYPE.ONE_TO_ONE,invite:e})}catch(e){console.debug("Error creating new one to one conversation: ",e)}},d=async function(e,t){try{return await i.a.post(Object(o.generateOcsUrl)("apps/spreed/api/v1",2)+"room",{roomType:a.a.TYPE.GROUP,invite:e,source:t||"groups"})}catch(e){console.debug("Error creating new group conversation: ",e)}},p=async function(e){try{return await i.a.post(Object(o.generateOcsUrl)("apps/spreed/api/v1",2)+"room",{roomType:a.a.TYPE.GROUP,roomName:e})}catch(e){console.debug("Error creating new private conversation: ",e)}},f=async function(e){try{return await i.a.post(Object(o.generateOcsUrl)("apps/spreed/api/v1",2)+"room",{roomType:a.a.TYPE.PUBLIC,roomName:e})}catch(e){console.debug("Error creating new public conversation: ",e)}},h=async function(e,t){return await i.a.put(Object(o.generateOcsUrl)("apps/spreed/api/v1",2)+`room/${e}/password?password=${t}`)},v=async function(e,t){return await i.a.put(Object(o.generateOcsUrl)("apps/spreed/api/v1",2)+`room/${e}`,{roomName:t})},m=async function(e){try{return await i.a.delete(Object(o.generateOcsUrl)("apps/spreed/api/v1",2)+`room/${e}`)}catch(e){console.debug("Error while deleting the conversation: ",e)}},g=async function(e){try{return await i.a.post(Object(o.generateOcsUrl)("apps/spreed/api/v1",2)+`room/${e}/favorite`)}catch(e){console.debug("Error while adding the conversation to favorites: ",e)}},y=async function(e){try{return await i.a.delete(Object(o.generateOcsUrl)("apps/spreed/api/v1",2)+`room/${e}/favorite`)}catch(e){console.debug("Error while removing the conversation from favorites: ",e)}},b=async function(e,t){try{return await i.a.post(Object(o.generateOcsUrl)("apps/spreed/api/v1",2)+`room/${e}/notify`,{level:t})}catch(e){console.debug("Error while setting the notification level: ",e)}},S=async function(e){try{return await i.a.post(Object(o.generateOcsUrl)("apps/spreed/api/v1",2)+`room/${e}/public`)}catch(e){console.debug("Error while making the conversation public: ",e)}},w=async function(e){try{return await i.a.delete(Object(o.generateOcsUrl)("apps/spreed/api/v1",2)+`room/${e}/public`)}catch(e){console.debug("Error while making the conversation private: ",e)}},C=async function(e,t,n){try{return await i.a.put(Object(o.generateOcsUrl)("apps/spreed/api/v1",2)+`room/${e}/webinar/lobby`,{state:t,timer:n})}catch(e){console.debug("Error while updating webinar lobby: ",e)}}},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){var r=n(67),i=n(36);e.exports=function(e){return r(i(e))}},function(e,t,n){var r,i,o,a=n(229),s=n(6),c=n(16),u=n(26),l=n(14),d=n(72),p=n(68),f=s.WeakMap;if(a){var h=new f,v=h.get,m=h.has,g=h.set;r=function(e,t){return g.call(h,e,t),t},i=function(e){return v.call(h,e)||{}},o=function(e){return m.call(h,e)}}else{var y=d("state");p[y]=!0,r=function(e,t){return u(e,y,t),t},i=function(e){return l(e,y)?e[y]:{}},o=function(e){return l(e,y)}}e.exports={set:r,get:i,has:o,enforce:function(e){return o(e)?i(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!c(t)||(n=i(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}}},function(e,t,n){var r=n(202),i=n(6),o=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?o(r[e])||o(i[e]):r[e]&&r[e][t]||i[e]&&i[e][t]}},function(e,t,n){"use strict";n.d(t,"d",(function(){return c})),n.d(t,"e",(function(){return u})),n.d(t,"f",(function(){return l})),n.d(t,"a",(function(){return d})),n.d(t,"h",(function(){return p})),n.d(t,"j",(function(){return f})),n.d(t,"i",(function(){return h})),n.d(t,"g",(function(){return v})),n.d(t,"b",(function(){return m})),n.d(t,"c",(function(){return g})),n.d(t,"k",(function(){return y}));var r=n(3),i=n.n(r),o=n(4),a=n(33),s=n(15);
/**
 * @copyright Copyright (c) 2019 Marco Ambrosini <marcoambrosini@pm.me>
 *
 * @author Marco Ambrosini <marcoambrosini@pm.me>
 *
 * @license GNU AGPL version 3 or any later version
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
 *
 */
const c=async e=>{try{const t=await Object(a.c)();await t.joinRoom(e),s.a.$emit("joinedConversation")}catch(e){console.debug(e)}},u=async function(e){try{const t=await Object(a.c)();await t.leaveRoom(e)}catch(e){console.debug(e)}},l=function(e){i.a.delete(Object(o.generateOcsUrl)("apps/spreed/api/v1/room",2)+e+"/participants/active")},d=async function(e,t,n){return await i.a.post(Object(o.generateOcsUrl)("apps/spreed/api/v1",2)+`room/${e}/participants`,{newParticipant:t,source:n})},p=async function(e){return await i.a.delete(Object(o.generateOcsUrl)("apps/spreed/api/v1",2)+`room/${e}/participants/self`)},f=async function(e,t){try{return await i.a.delete(Object(o.generateOcsUrl)("apps/spreed/api/v1",2)+`room/${e}/participants`,{params:{participant:t}})}catch(e){console.debug(e)}},h=async function(e,t){try{return await i.a.delete(Object(o.generateOcsUrl)("apps/spreed/api/v1",2)+`room/${e}/participants/guests`,{params:{participant:t}})}catch(e){console.debug(e)}},v=async(e,t)=>{return await i.a.post(Object(o.generateOcsUrl)("apps/spreed/api/v1/room",2)+e+"/moderators",t)},m=async(e,t)=>{return await i.a.delete(Object(o.generateOcsUrl)("apps/spreed/api/v1/room",2)+e+"/moderators",{params:t})},g=async e=>{return await i.a.get(Object(o.generateOcsUrl)("apps/spreed/api/v1/room",2)+e+"/participants")},y=async(e,t)=>{return await i.a.post(Object(o.generateOcsUrl)("apps/spreed/api/v1/guest",2)+e+"/name",{displayName:t})}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t){e.exports=!1},function(e,t,n){var r=n(10),i=n(30),o=n(22),a=n(89),s=n(152),c=n(62),u=c.get,l=c.enforce,d=String(String).split("String");(e.exports=function(e,t,n,s){var c=!!s&&!!s.unsafe,u=!!s&&!!s.enumerable,p=!!s&&!!s.noTargetGet;"function"==typeof n&&("string"!=typeof t||o(n,"name")||i(n,"name",t),l(n).source=d.join("string"==typeof t?t:"")),e!==r?(c?!p&&e[t]&&(u=!0):delete e[t],u?e[t]=n:i(e,t,n)):u?e[t]=n:a(t,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&u(this).source||s(this)}))},function(e,t){e.exports={}},,function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.extractVersion=a,t.wrapPeerConnectionEvent=function(e,t,n){if(!e.RTCPeerConnection)return;var r=e.RTCPeerConnection.prototype,i=r.addEventListener;r.addEventListener=function(e,r){if(e!==t)return i.apply(this,arguments);var o=function(e){var t=n(e);t&&r(t)};return this._eventMap=this._eventMap||{},this._eventMap[r]=o,i.apply(this,[e,o])};var o=r.removeEventListener;r.removeEventListener=function(e,n){if(e!==t||!this._eventMap||!this._eventMap[n])return o.apply(this,arguments);var r=this._eventMap[n];return delete this._eventMap[n],o.apply(this,[e,r])},Object.defineProperty(r,"on"+t,{get:function(){return this["_on"+t]},set:function(e){this["_on"+t]&&(this.removeEventListener(t,this["_on"+t]),delete this["_on"+t]),e&&this.addEventListener(t,this["_on"+t]=e)},enumerable:!0,configurable:!0})},t.disableLog=function(e){if("boolean"!=typeof e)return new Error("Argument type: "+r(e)+". Please use a boolean.");return i=e,e?"adapter.js logging disabled":"adapter.js logging enabled"},t.disableWarnings=function(e){if("boolean"!=typeof e)return new Error("Argument type: "+r(e)+". Please use a boolean.");return o=!e,"adapter.js deprecation warnings "+(e?"disabled":"enabled")},t.log=function(){if("object"===("undefined"==typeof window?"undefined":r(window))){if(i)return;"undefined"!=typeof console&&"function"==typeof console.log&&console.log.apply(console,arguments)}},t.deprecated=function(e,t){if(!o)return;console.warn(e+" is deprecated, please use "+t+" instead.")},t.detectBrowser=function(e){var t=e.navigator,n={browser:null,version:null};if(void 0===e||!e.navigator)return n.browser="Not a browser.",n;if(t.mozGetUserMedia)n.browser="firefox",n.version=a(t.userAgent,/Firefox\/(\d+)\./,1);else if(t.webkitGetUserMedia||!1===e.isSecureContext&&e.webkitRTCPeerConnection&&!e.RTCIceGatherer)n.browser="chrome",n.version=a(t.userAgent,/Chrom(e|ium)\/(\d+)\./,2);else if(t.mediaDevices&&t.userAgent.match(/Edge\/(\d+).(\d+)$/))n.browser="edge",n.version=a(t.userAgent,/Edge\/(\d+).(\d+)$/,2);else{if(!e.RTCPeerConnection||!t.userAgent.match(/AppleWebKit\/(\d+)\./))return n.browser="Not a supported browser.",n;n.browser="safari",n.version=a(t.userAgent,/AppleWebKit\/(\d+)\./,1),n.supportsUnifiedPlan=e.RTCRtpTransceiver&&"currentDirection"in e.RTCRtpTransceiver.prototype}return n},t.compactObject=function e(t){if(!s(t))return t;return Object.keys(t).reduce((function(n,r){var i=s(t[r]),o=i?e(t[r]):t[r],a=i&&!Object.keys(o).length;return void 0===o||a?n:Object.assign(n,function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n;return e}({},r,o))}),{})},t.walkStats=c,t.filterStats=function(e,t,n){var r=n?"outbound-rtp":"inbound-rtp",i=new Map;if(null===t)return i;var o=[];return e.forEach((function(e){"track"===e.type&&e.trackIdentifier===t.id&&o.push(e)})),o.forEach((function(t){e.forEach((function(n){n.type===r&&n.trackId===t.id&&c(e,n,i)}))})),i};var i=!0,o=!0;function a(e,t,n){var r=e.match(t);return r&&r.length>=n&&parseInt(r[n],10)}function s(e){return"[object Object]"===Object.prototype.toString.call(e)}function c(e,t,n){t&&!n.has(t.id)&&(n.set(t.id,t),Object.keys(t).forEach((function(r){r.endsWith("Id")?c(e,e.get(t[r]),n):r.endsWith("Ids")&&t[r].forEach((function(t){c(e,e.get(t),n)}))})))}},,function(e,t){var n,r,i=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(e){n=o}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var c,u=[],l=!1,d=-1;function p(){l&&c&&(l=!1,c.length?u=c.concat(u):d=-1,u.length&&f())}function f(){if(!l){var e=s(p);l=!0;for(var t=u.length;t;){for(c=u,u=[];++d<t;)c&&c[d].run();d=-1,t=u.length}c=null,l=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function v(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];u.push(new h(e,t)),1!==u.length||l||s(f)},h.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=v,i.addListener=v,i.once=v,i.off=v,i.removeListener=v,i.removeAllListeners=v,i.emit=v,i.prependListener=v,i.prependOnceListener=v,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(e,t,n){var r=n(16);e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},function(e,t,n){var r=n(20),i=n(117),o=n(41),a=n(37),s=n(50),c=n(14),u=n(135),l=Object.getOwnPropertyDescriptor;t.f=r?l:function(e,t){if(e=a(e),t=s(t,!0),u)try{return l(e,t)}catch(e){}if(c(e,t))return o(!i.f.call(e,t),e[t])}},,function(e,t,n){var r=n(81),i=n(23),o=n(230);r||i(Object.prototype,"toString",o,{unsafe:!0})},function(e,t,n){var r=n(9),i=n(174),o=n(83),a=n(68),s=n(175),c=n(101),u=n(72)("IE_PROTO"),l=function(){},d=function(){var e,t=c("iframe"),n=o.length;for(t.style.display="none",s.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),d=e.F;n--;)delete d.prototype[o[n]];return d()};e.exports=Object.create||function(e,t){var n;return null!==e?(l.prototype=r(e),n=new l,l.prototype=null,n[u]=e):n=d(),void 0===t?n:i(n,t)},a[u]=!0},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i}));
/**
 *
 * @copyright Copyright (c) 2019, Daniel Calviño Sánchez (danxuliu@gmail.com)
 *
 * @license GNU AGPL version 3 or any later version
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *
 */
const r={NEW:"new",CHECKING:"checking",CONNECTED:"connected",COMPLETED:"completed",DISCONNECTED:"disconnected",DISCONNECTED_LONG:"disconnected-long",FAILED:"failed",FAILED_NO_RESTART:"failed-no-restart",CLOSED:"closed"};function i(e){this.attributes={peerId:null,userId:void 0,name:void 0,connectionState:r.NEW,stream:null,audioAvailable:void 0,speaking:void 0,videoAvailable:void 0,screen:null},this.set("peerId",e.peerId),this._webRtc=e.webRtc,this._handlePeerStreamAddedBound=this._handlePeerStreamAdded.bind(this),this._handlePeerStreamRemovedBound=this._handlePeerStreamRemoved.bind(this),this._handleNickBound=this._handleNick.bind(this),this._handleMuteBound=this._handleMute.bind(this),this._handleUnmuteBound=this._handleUnmute.bind(this),this._handleExtendedIceConnectionStateChangeBound=this._handleExtendedIceConnectionStateChange.bind(this),this._handleChannelMessageBound=this._handleChannelMessage.bind(this),this._webRtc.on("peerStreamAdded",this._handlePeerStreamAddedBound),this._webRtc.on("peerStreamRemoved",this._handlePeerStreamRemovedBound),this._webRtc.on("nick",this._handleNickBound),this._webRtc.on("mute",this._handleMuteBound),this._webRtc.on("unmute",this._handleUnmuteBound),this._webRtc.on("channelMessage",this._handleChannelMessageBound)}i.prototype={get:function(e){return this.attributes[e]},set:function(e,t){this.attributes[e]=t},_handlePeerStreamAdded:function(e){this._peer===e?(this.set("stream",this._peer.stream||null),void 0!==this._peer.nick&&this.set("name",this._peer.nick)):this._screenPeer===e&&this.set("screen",this._screenPeer.stream||null)},_handlePeerStreamRemoved:function(e){this._peer===e?(this.set("stream",null),this.set("audioAvailable",void 0),this.set("speaking",void 0),this.set("videoAvailable",void 0)):this._screenPeer===e&&this.set("screen",null)},_handleNick:function(e){this._peer&&this._peer.id===e.id&&(this.set("userId",e.userid||null),this.set("name",e.name||null))},_handleMute:function(e){this._peer&&this._peer.id===e.id&&("video"===e.name?this.set("videoAvailable",!1):(this.set("audioAvailable",!1),this.set("speaking",!1)))},_handleUnmute:function(e){this._peer&&this._peer.id===e.id&&("video"===e.name?this.set("videoAvailable",!0):this.set("audioAvailable",!0))},_handleChannelMessage:function(e,t,n){this._peer&&this._peer.id===e.id&&"status"===t&&("speaking"===n.type?this.set("speaking",!0):"stoppedSpeaking"===n.type&&this.set("speaking",!1))},setPeer:function(e){if(e&&this.get("peerId")!==e.id&&console.warn("Mismatch between stored peer ID and ID of given peer: ",this.get("peerId"),e.id),this._peer&&this._peer.off("extendedIceConnectionStateChange",this._handleExtendedIceConnectionStateChangeBound),this._peer=e,!this._peer)return this.set("connectionState",r.COMPLETED),this.set("audioAvailable",!1),this.set("speaking",!1),void this.set("videoAvailable",!1);this._handleExtendedIceConnectionStateChange(this._peer.pc.iceConnectionState),this._handlePeerStreamAdded(this._peer),this._peer.on("extendedIceConnectionStateChange",this._handleExtendedIceConnectionStateChangeBound)},_handleExtendedIceConnectionStateChange:function(e){const t=function(){void 0!==this._peer.nick&&this.set("name",this._peer.nick)}.bind(this);switch(e){case"new":this.set("connectionState",r.NEW),this.set("audioAvailable",void 0),this.set("speaking",void 0),this.set("videoAvailable",void 0);break;case"checking":this.set("connectionState",r.CHECKING),this.set("audioAvailable",void 0),this.set("speaking",void 0),this.set("videoAvailable",void 0);break;case"connected":this.set("connectionState",r.CONNECTED),t();break;case"completed":this.set("connectionState",r.COMPLETED),t();break;case"disconnected":this.set("connectionState",r.DISCONNECTED);break;case"disconnected-long":this.set("connectionState",r.DISCONNECTED_LONG);break;case"failed":this.set("connectionState",r.FAILED);break;case"failed-no-restart":this.set("connectionState",r.FAILED_NO_RESTART);break;case"closed":this.set("connectionState",r.CLOSED);break;default:console.error("Unexpected (extended) ICE connection state: ",e)}},setScreenPeer:function(e){this.get("peerId")!==e.id&&console.warn("Mismatch between stored peer ID and ID of given screen peer: ",this.get("peerId"),e.id),this._screenPeer=e,this._handlePeerStreamAdded(this._screenPeer)},setUserId:function(e){this.set("userId",e)}}},,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getRequestToken",{enumerable:!0,get:function(){return r.getRequestToken}}),Object.defineProperty(t,"onRequestTokenUpdate",{enumerable:!0,get:function(){return r.onRequestTokenUpdate}}),Object.defineProperty(t,"getCurrentUser",{enumerable:!0,get:function(){return i.getCurrentUser}});var r=n(251),i=n(297)},,function(e,t,n){var r=n(10),i=n(148).f,o=n(30),a=n(43),s=n(89),c=n(259),u=n(156);e.exports=function(e,t){var n,l,d,p,f,h=e.target,v=e.global,m=e.stat;if(n=v?r:m?r[h]||s(h,{}):(r[h]||{}).prototype)for(l in t){if(p=t[l],d=e.noTargetGet?(f=i(n,l))&&f.value:n[l],!u(v?l:h+(m?".":"#")+l,e.forced)&&void 0!==d){if(typeof p==typeof d)continue;c(p,d)}(e.sham||d&&d.sham)&&o(p,"sham",!0),a(n,l,p,e)}}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var r=n(149),i=n(87);e.exports=function(e){return r(i(e))}},function(e,t,n){var r,i,o,a=n(258),s=n(10),c=n(24),u=n(30),l=n(22),d=n(90),p=n(63),f=s.WeakMap;if(a){var h=new f,v=h.get,m=h.has,g=h.set;r=function(e,t){return g.call(h,e,t),t},i=function(e){return v.call(h,e)||{}},o=function(e){return m.call(h,e)}}else{var y=d("state");p[y]=!0,r=function(e,t){return u(e,y,t),t},i=function(e){return l(e,y)?e[y]:{}},o=function(e){return l(e,y)}}e.exports={set:r,get:i,has:o,enforce:function(e){return o(e)?i(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!c(t)||(n=i(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}}},function(e,t){e.exports={}},function(e,t,n){var r=n(261),i=n(10),o=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?o(r[e])||o(i[e]):r[e]&&r[e][t]||i[e]&&i[e][t]}},function(e,t,n){var r=n(93),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},,function(e,t,n){var r=n(8),i=n(28),o="".split;e.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==i(e)?o.call(e,""):Object(e)}:Object},function(e,t){e.exports={}},function(e,t,n){var r=n(8),i=/#|\.prototype\./,o=function(e,t){var n=s[a(e)];return n==u||n!=c&&("function"==typeof t?r(t):!!t)},a=o.normalize=function(e){return String(e).replace(i,".").toLowerCase()},s=o.data={},c=o.NATIVE="N",u=o.POLYFILL="P";e.exports=o},,,function(e,t,n){var r=n(115),i=n(109),o=r("keys");e.exports=function(e){return o[e]||(o[e]=i(e))}},,function(e,t,n){var r=n(136),i=n(83).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},function(e,t,n){"use strict";var r=n(125),i=n(9),o=n(34),a=n(31),s=n(46),c=n(36),u=n(177),l=n(126),d=Math.max,p=Math.min,f=Math.floor,h=/\$([$&'`]|\d\d?|<[^>]*>)/g,v=/\$([$&'`]|\d\d?)/g;r("replace",2,(function(e,t,n){return[function(n,r){var i=c(this),o=null==n?void 0:n[e];return void 0!==o?o.call(n,i,r):t.call(String(i),n,r)},function(e,o){var c=n(t,e,this,o);if(c.done)return c.value;var f=i(e),h=String(this),v="function"==typeof o;v||(o=String(o));var m=f.global;if(m){var g=f.unicode;f.lastIndex=0}for(var y=[];;){var b=l(f,h);if(null===b)break;if(y.push(b),!m)break;""===String(b[0])&&(f.lastIndex=u(h,a(f.lastIndex),g))}for(var S,w="",C=0,_=0;_<y.length;_++){b=y[_];for(var E=String(b[0]),T=d(p(s(b.index),h.length),0),R=[],O=1;O<b.length;O++)R.push(void 0===(S=b[O])?S:String(S));var k=b.groups;if(v){var P=[E].concat(R,T,h);void 0!==k&&P.push(k);var x=String(o.apply(void 0,P))}else x=r(E,h,T,R,k,o);T>=C&&(w+=h.slice(C,T)+x,C=T+E.length)}return w+h.slice(C)}];function r(e,n,r,i,a,s){var c=r+e.length,u=i.length,l=v;return void 0!==a&&(a=o(a),l=h),t.call(s,l,(function(t,o){var s;switch(o.charAt(0)){case"$":return"$";case"&":return e;case"`":return n.slice(0,r);case"'":return n.slice(c);case"<":s=a[o.slice(1,-1)];break;default:var l=+o;if(0===l)return t;if(l>u){var d=f(l/10);return 0===d?t:d<=u?void 0===i[d-1]?o.charAt(1):i[d-1]+o.charAt(1):t}s=i[l-1]}return void 0===s?"":s}))}}))},,,,function(e,t,n){var r=n(477);e.exports=function(e,t,n){var i,o=t,a={autoplay:!0,mirror:!1,muted:!1,audio:!1,disableContextMenu:!1};if(n)for(i in n)a[i]=n[i];return o?"audio"===o.tagName.toLowerCase()&&(a.audio=!0):o=document.createElement(a.audio?"audio":"video"),a.disableContextMenu&&(o.oncontextmenu=function(e){e.preventDefault()}),a.autoplay&&(o.autoplay="autoplay"),o.muted=!!a.muted,a.audio||["","moz","webkit","o","ms"].forEach((function(e){var t=e?e+"Transform":"transform";o.style[t]=a.mirror?"scaleX(-1)":"scaleX(1)"})),"safari"===r.browserDetails.browser&&o.setAttribute("playsinline",!0),o.srcObject=e,o}},function(e,t,n){"use strict";var r=n(23),i=n(9),o=n(8),a=n(119),s=RegExp.prototype,c=s.toString,u=o((function(){return"/a/b"!=c.call({source:"a",flags:"b"})})),l="toString"!=c.name;(u||l)&&r(RegExp.prototype,"toString",(function(){var e=i(this),t=String(e.source),n=e.flags;return"/"+t+"/"+String(void 0===n&&e instanceof RegExp&&!("flags"in s)?a.call(e):n)}),{unsafe:!0})},function(e,t,n){var r={};r[n(7)("toStringTag")]="z",e.exports="[object z]"===String(r)},function(e,t,n){var r=n(6),i=n(26);e.exports=function(e,t){try{i(r,e,t)}catch(n){r[e]=t}return t}},function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(e,t,n){"use strict";var r,i,o=n(119),a=RegExp.prototype.exec,s=String.prototype.replace,c=a,u=(r=/a/,i=/b*/g,a.call(r,"a"),a.call(i,"a"),0!==r.lastIndex||0!==i.lastIndex),l=void 0!==/()??/.exec("")[1];(u||l)&&(c=function(e){var t,n,r,i,c=this;return l&&(n=new RegExp("^"+c.source+"$(?!\\s)",o.call(c))),u&&(t=c.lastIndex),r=a.call(c,e),u&&r&&(c.lastIndex=c.global?r.index+r[0].length:t),l&&r&&r.length>1&&s.call(r[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(r[i]=void 0)})),r}),e.exports=c},function(e,t,n){"use strict";var r=n(12),i=n(137).indexOf,o=n(121),a=[].indexOf,s=!!a&&1/[1].indexOf(1,-0)<0,c=o("indexOf");r({target:"Array",proto:!0,forced:s||c},{indexOf:function(e){return s?a.apply(this,arguments)||0:i(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){var r=n(24);e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},function(e,t,n){var r=n(10),i=n(30);e.exports=function(e,t){try{i(r,e,t)}catch(n){r[e]=t}return t}},function(e,t,n){var r=n(154),i=n(92),o=r("keys");e.exports=function(e){return o[e]||(o[e]=i(e))}},function(e,t){e.exports=!1},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++n+r).toString(36)}},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(e,t,n){var r=n(87);e.exports=function(e){return Object(r(e))}},function(e,t,n){var r=n(270);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},function(e,t,n){var r,i=n(32),o=n(272),a=n(94),s=n(63),c=n(274),u=n(151),l=n(90),d=l("IE_PROTO"),p=function(){},f=function(e){return"<script>"+e+"<\/script>"},h=function(){try{r=document.domain&&new ActiveXObject("htmlfile")}catch(e){}var e,t;h=r?function(e){e.write(f("")),e.close();var t=e.parentWindow.Object;return e=null,t}(r):((t=u("iframe")).style.display="none",c.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(f("document.F=Object")),e.close(),e.F);for(var n=a.length;n--;)delete h.prototype[a[n]];return h()};s[d]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(p.prototype=i(e),n=new p,p.prototype=null,n[d]=e):n=h(),void 0===t?n:o(n,t)}},function(e,t,n){"use strict";var r=n(59),i=n(275),o=n(166),a=n(167),s=n(99),c=n(30),u=n(43),l=n(11),d=n(91),p=n(44),f=n(165),h=f.IteratorPrototype,v=f.BUGGY_SAFARI_ITERATORS,m=l("iterator"),g=function(){return this};e.exports=function(e,t,n,l,f,y,b){i(n,t,l);var S,w,C,_=function(e){if(e===f&&k)return k;if(!v&&e in R)return R[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},E=t+" Iterator",T=!1,R=e.prototype,O=R[m]||R["@@iterator"]||f&&R[f],k=!v&&O||_(f),P="Array"==t&&R.entries||O;if(P&&(S=o(P.call(new e)),h!==Object.prototype&&S.next&&(d||o(S)===h||(a?a(S,h):"function"!=typeof S[m]&&c(S,m,g)),s(S,E,!0,!0),d&&(p[E]=g))),"values"==f&&O&&"values"!==O.name&&(T=!0,k=function(){return O.call(this)}),d&&!b||R[m]===k||c(R,m,k),p[t]=k,f)if(w={values:_("values"),keys:y?k:_("keys"),entries:_("entries")},b)for(C in w)!v&&!T&&C in R||u(R,C,w[C]);else r({target:t,proto:!0,forced:v||T},w);return w}},function(e,t,n){var r=n(27).f,i=n(22),o=n(11)("toStringTag");e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,o)&&r(e,o,{configurable:!0,value:t})}},function(e,t,n){var r={};r[n(11)("toStringTag")]="z",e.exports="[object z]"===String(r)},function(e,t,n){var r=n(6),i=n(16),o=r.document,a=i(o)&&i(o.createElement);e.exports=function(e){return a?o.createElement(e):{}}},function(e,t,n){var r=n(134),i=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(e){return i.call(e)}),e.exports=r.inspectSource},function(e,t,n){var r=n(81),i=n(28),o=n(7)("toStringTag"),a="Arguments"==i(function(){return arguments}());e.exports=r?i:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),o))?n:a?i(t):"Object"==(r=i(t))&&"function"==typeof t.callee?"Arguments":r}},function(e,t,n){var r=n(46),i=n(36),o=function(e){return function(t,n){var o,a,s=String(i(t)),c=r(n),u=s.length;return c<0||c>=u?e?"":void 0:(o=s.charCodeAt(c))<55296||o>56319||c+1===u||(a=s.charCodeAt(c+1))<56320||a>57343?e?s.charAt(c):o:e?s.slice(c,c+2):a-56320+(o-55296<<10)+65536}};e.exports={codeAt:o(!1),charAt:o(!0)}},,function(e,t,n){"use strict";var r=n(12),i=n(84);r({target:"RegExp",proto:!0,forced:/./.exec!==i},{exec:i})},,,function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++n+r).toString(36)}},,,function(e,t,n){var r=n(12),i=n(178);r({target:"Object",stat:!0,forced:Object.assign!==i},{assign:i})},,,function(e,t,n){var r=n(42),i=n(134);(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.5.0",mode:r?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(e,t,n){var r=n(8);e.exports=!!Object.getOwnPropertySymbols&&!r((function(){return!String(Symbol())}))},function(e,t,n){"use strict";var r={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,o=i&&!r.call({1:2},1);t.f=o?function(e){var t=i(this,e);return!!t&&t.enumerable}:r},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){"use strict";var r=n(9);e.exports=function(){var e=r(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},function(e,t,n){var r=n(136),i=n(83);e.exports=Object.keys||function(e){return r(e,i)}},function(e,t,n){"use strict";var r=n(8);e.exports=function(e,t){var n=[][e];return!n||!r((function(){n.call(null,t||function(){throw 1},1)}))}},,function(e,t,n){"use strict";var r=n(5),i=n(133),o=n(303),a=n.n(o),s=n(1);var c={state:{userId:null,sessionId:null,sessionHash:null,actorId:null,actorType:null,displayName:""},mutations:{setUserId(e,t){e.userId=t,e.actorId=t},setSessionId(e,t){e.sessionId=t,e.sessionHash=a()(t)},setActorId(e,t){e.actorId=t},setDisplayName(e,t){e.displayName=t},setActorType(e,t){e.actorType=t}},getters:{getUserId:e=>()=>e.userId,getSessionId:e=>()=>e.sessionId,getSessionHash:e=>()=>e.sessionHash,getActorId:e=>()=>e.actorId,getActorType:e=>()=>e.actorType,getDisplayName:e=>()=>e.displayName,getParticipantIdentifier:e=>()=>"guests"===e.actorType?{sessionId:e.sessionId}:{participant:e.userId}},actions:{setCurrentUser(e,t){e.commit("setUserId",t.uid),e.commit("setDisplayName",t.displayName||t.uid),e.commit("setActorType","users")},setCurrentParticipant(e,t){e.commit("setSessionId",t.sessionId),t.participantType!==s.c.TYPE.GUEST&&t.participantType!==s.c.TYPE.GUEST_MODERATOR||(e.commit("setUserId",null),e.commit("setActorType","guests"),e.commit("setActorId","guest/"+e.getters.getSessionHash()))},setDisplayName(e,t){e.commit("setDisplayName",t)}}},u=n(35),l=n(57);var d={state:{conversations:{}},mutations:{addConversation(e,t){r.default.set(e.conversations,t.token,t)},deleteConversation(e,t){r.default.delete(e.conversations,t)},purgeConversationsStore(e){Object.assign(e,{conversations:{}})}},getters:{conversations:e=>e.conversations,conversationsList:e=>Object.values(e.conversations)},actions:{addConversation(e,t){e.commit("addConversation",t);let n={uid:e.getters.getUserId(),displayName:e.getters.getDisplayName()};n.uid||(n=Object(l.getCurrentUser)()),e.dispatch("addParticipantOnce",{token:t.token,participant:{inCall:t.participantFlags,lastPing:t.lastPing,sessionId:t.sessionId,participantType:t.participantType,userId:n?n.uid:"",displayName:n&&n.displayName?n.displayName:""}})},deleteConversation(e,t){e.commit("deleteConversation",t.token)},deleteConversationByToken(e,t){e.commit("deleteConversation",t)},purgeConversationsStore(e){e.commit("purgeConversationsStore")},async toggleGuests({commit:e,getters:t},{token:n,allowGuests:r}){const i=Object.assign({},t.conversations[n]);i&&(r?(await Object(u.k)(n),i.type=s.a.TYPE.PUBLIC):(await Object(u.j)(n),i.type=s.a.TYPE.GROUP),e("addConversation",i))},async toggleLobby({commit:e,getters:t},{token:n,enableLobby:r}){const i=Object.assign({},t.conversations[n]);i&&(r?(await Object(u.b)(n,s.e.LOBBY.NON_MODERATORS),i.lobbyState=s.e.LOBBY.NON_MODERATORS):(await Object(u.b)(n,s.e.LOBBY.NONE),i.lobbyState=s.e.LOBBY.NONE),e("addConversation",i))},async setLobbyTimer({commit:e,getters:t},{token:n,timestamp:r}){const i=Object.assign({},t.conversations[n]);i&&(await Object(u.b)(n,i.lobbyState,r),i.lobbyTimer=r,e("addConversation",i))}}};
/**
 * @copyright Copyright (c) 2019 Marco Ambrosini <marcoambrosini@pm.me>
 *
 * @author Marco Ambrosini <marcoambrosini@pm.me>
 *
 * @license GNU AGPL version 3 or any later version
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
 *
 */var p={state:{messages:{}},mutations:{addMessage(e,t){e.messages[t.token]||r.default.set(e.messages,t.token,{}),e.messages[t.token][t.id]?r.default.set(e.messages[t.token],t.id,Object.assign(e.messages[t.token][t.id],t)):r.default.set(e.messages[t.token],t.id,t)},deleteMessage(e,t){r.default.delete(e.messages[t.token],t.id)},addTemporaryMessage(e,t){r.default.set(e.messages[t.token],t.id,t)}},getters:{messagesList:e=>t=>e.messages[t]?Object.values(e.messages[t]):[],messages:e=>t=>e.messages[t]?e.messages[t]:{},message:e=>(t,n)=>e.messages[t][n]?e.messages[t][n]:{}},actions:{processMessage(e,t){t.parent&&(e.commit("addMessage",t.parent),t.parent=t.parent.id),e.commit("addMessage",t)},deleteMessage(e,t){e.commit("deleteMessage",t)},addTemporaryMessage(e,t){e.commit("addTemporaryMessage",t)}}},f=n(40),h=(n(3),n(4),n(33));var v={state:{participants:{}},mutations:{addParticipant(e,{token:t,participant:n}){e.participants[t]||r.default.set(e.participants,t,[]),e.participants[t].push(n)},updateParticipant(e,{token:t,index:n,updatedData:r}){e.participants[t]&&e.participants[t][n]?e.participants[t][n]=Object.assign(e.participants[t][n],r):console.error("Error while updating the participant")},deleteParticipant(e,{token:t,index:n}){e.participants[t]&&e.participants[t][n]?r.default.delete(e.participants[t],n):console.error("The conversation you are trying to purge doesn't exist")},purgeParticipantsStore(e,t){e.participants[t]&&r.default.delete(e.participants,t)}},getters:{participantsList:e=>t=>e.participants[t]?e.participants[t]:[],getParticipant:e=>(t,n)=>e.participants[t]&&e.participants[t][n]?e.participants[t][n]:{},getParticipantIndex:e=>(t,n)=>{if(!e.participants[t])return-1;let r;return r=n.hasOwnProperty("participant")?e.participants[t].findIndex(e=>e.userId===n.participant):e.participants[t].findIndex(e=>e.sessionId===n.sessionId),r}},actions:{addParticipant({commit:e},{token:t,participant:n}){e("addParticipant",{token:t,participant:n})},addParticipantOnce({commit:e,getters:t},{token:n,participant:r}){-1===t.getParticipantIndex(n,r)&&e("addParticipant",{token:n,participant:r})},async promoteToModerator({commit:e,getters:t},{token:n,participantIdentifier:r}){const i=t.getParticipantIndex(n,r);-1!==i&&(await Object(f.g)(n,r),e("updateParticipant",{token:n,index:i,updatedData:{participantType:t.getParticipant(n,i).participantType===s.c.TYPE.GUEST?s.c.TYPE.GUEST_MODERATOR:s.c.TYPE.MODERATOR}}))},async demoteFromModerator({commit:e,getters:t},{token:n,participantIdentifier:r}){const i=t.getParticipantIndex(n,r);-1!==i&&(await Object(f.b)(n,r),e("updateParticipant",{token:n,index:i,updatedData:{participantType:t.getParticipant(n,i).participantType===s.c.TYPE.GUEST_MODERATOR?s.c.TYPE.GUEST:s.c.TYPE.USER}}))},async removeParticipant({commit:e,getters:t},{token:n,participantIdentifier:r}){const i=t.getParticipantIndex(n,r);if(-1===i)return;const o=t.getParticipant(n,i);o.userId?await Object(f.j)(n,o.userId):await Object(f.i)(n,o.sessionId),e("deleteParticipant",{token:n,index:i})},purgeParticipantsStore({commit:e},t){e("purgeParticipantsStore",t)},async joinCall({commit:e,getters:t},{token:n,participantIdentifier:r,flags:i}){const o=t.getParticipantIndex(n,r);-1!==o?(await async function(e,t){try{await Object(h.e)(e)}catch(e){console.debug("Error while joining call: ",e)}}(n),e("updateParticipant",{token:n,index:o,updatedData:{inCall:i}})):console.error("Participant not found",r)},async leaveCall({commit:e,getters:t},{token:n,participantIdentifier:r}){const i=t.getParticipantIndex(n,r);-1!==i&&(await async function(e){try{const e=await Object(h.c)();await e.leaveCurrentCall()}catch(e){console.debug("Error while leaving call: ",e)}}(),e("updateParticipant",{token:n,index:i,updatedData:{inCall:s.c.CALL_FLAG.DISCONNECTED}}))}}};
/**
 * @copyright Copyright (c) 2019 Marco Ambrosini <marcoambrosini@pm.me>
 *
 * @author Marco Ambrosini <marcoambrosini@pm.me>
 *
 * @license GNU AGPL version 3 or any later version
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
 *
 */var m={state:{messagesToBeReplied:{}},mutations:{addMessageToBeReplied(e,t){r.default.set(e.messagesToBeReplied,[t.token],t)},removeMessageToBeReplied(e,t){r.default.delete(e.messagesToBeReplied,t)}},getters:{getMessageToBeReplied:e=>t=>{if(e.messagesToBeReplied[t])return e.messagesToBeReplied[t]}},actions:{addMessageToBeReplied(e,t){e.commit("addMessageToBeReplied",t)},removeMessageToBeReplied(e,t){e.commit("removeMessageToBeReplied",t)}}};
/**
 * @copyright Copyright (c) 2019 Marco Ambrosini <marcoambrosini@pm.me>
 *
 * @author Marco Ambrosini <marcoambrosini@pm.me>
 *
 * @license GNU AGPL version 3 or any later version
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
 *
 */var g={state:{show:!0},mutations:{showSidebar(e){e.show=!0},hideSidebar(e){e.show=!1}},getters:{getSidebarStatus:e=>()=>e.show},actions:{showSidebar(e){e.commit("showSidebar")},hideSidebar(e){e.commit("hideSidebar")}}};
/**
 * @copyright Copyright (c) 2019 Marco Ambrosini <marcoambrosini@pm.me>
 *
 * @author Marco Ambrosini <marcoambrosini@pm.me>
 *
 * @license GNU AGPL version 3 or any later version
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
 *
 */var y={state:{token:"",fileIdForToken:null},mutations:{updateToken(e,t){e.token=t},updateTokenAndFileIdForToken(e,{newToken:t,newFileId:n}){e.token=t,e.fileIdForToken=n}},getters:{getToken:e=>()=>e.token,getFileIdForToken:e=>()=>e.fileIdForToken},actions:{updateToken(e,t){e.commit("updateToken",t)},updateTokenAndFileIdForToken(e,{newToken:t,newFileId:n}){e.commit("updateTokenAndFileIdForToken",{newToken:t,newFileId:n})}}};
/**
 * @copyright Copyright (c) 2019 Marco Ambrosini <marcoambrosini@pm.me>
 *
 * @author Marco Ambrosini <marcoambrosini@pm.me>
 *
 * @license GNU AGPL version 3 or any later version
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
 *
 */var b={state:{visible:!0},mutations:{setVisibility(e,t){e.visible=t}},getters:{windowIsVisible:e=>()=>e.visible},actions:{setWindowVisibility(e,t){e.commit("setVisibility",t)}}};
/**
 * @copyright Copyright (c) 2019 Marco Ambrosini <marcoambrosini@pm.me>
 *
 * @author Marco Ambrosini <marcoambrosini@pm.me>
 *
 * @license GNU AGPL version 3 or any later version
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
 *
 */r.default.use(i.b);t.a=new i.a({modules:{actorStore:c,conversationsStore:d,messagesStore:p,participantsStore:v,quoteReplyStore:m,sidebarStore:g,tokenStore:y,windowVisibilityStore:b},mutations:{},strict:!1})},,function(e,t,n){"use strict";var r=n(26),i=n(23),o=n(8),a=n(7),s=n(84),c=a("species"),u=!o((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})),l=!o((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}));e.exports=function(e,t,n,d){var p=a(e),f=!o((function(){var t={};return t[p]=function(){return 7},7!=""[e](t)})),h=f&&!o((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[c]=function(){return n},n.flags="",n[p]=/./[p]),n.exec=function(){return t=!0,null},n[p](""),!t}));if(!f||!h||"replace"===e&&!u||"split"===e&&!l){var v=/./[p],m=n(p,""[e],(function(e,t,n,r,i){return t.exec===s?f&&!i?{done:!0,value:v.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}})),g=m[0],y=m[1];i(String.prototype,e,g),i(RegExp.prototype,p,2==t?function(e,t){return y.call(e,this,t)}:function(e){return y.call(e,this)}),d&&r(RegExp.prototype[p],"sham",!0)}}},function(e,t,n){var r=n(28),i=n(84);e.exports=function(e,t){var n=e.exec;if("function"==typeof n){var o=n.call(e,t);if("object"!=typeof o)throw TypeError("RegExp exec method returned something other than an Object or null");return o}if("RegExp"!==r(e))throw TypeError("RegExp#exec called on incompatible receiver");return i.call(e,t)}},,function(e,t,n){var r=n(20),i=n(25).f,o=Function.prototype,a=o.toString,s=/^\s*function ([^ (]*)/;!r||"name"in o||i(o,"name",{configurable:!0,get:function(){try{return a.call(this).match(s)[1]}catch(e){return""}}})},,,,,function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return l}));var r=("undefined"!=typeof window?window:void 0!==e?e:{}).__VUE_DEVTOOLS_GLOBAL_HOOK__;function i(e,t){Object.keys(e).forEach((function(n){return t(e[n],n)}))}function o(e){return null!==e&&"object"==typeof e}var a=function(e,t){this.runtime=t,this._children=Object.create(null),this._rawModule=e;var n=e.state;this.state=("function"==typeof n?n():n)||{}},s={namespaced:{configurable:!0}};s.namespaced.get=function(){return!!this._rawModule.namespaced},a.prototype.addChild=function(e,t){this._children[e]=t},a.prototype.removeChild=function(e){delete this._children[e]},a.prototype.getChild=function(e){return this._children[e]},a.prototype.update=function(e){this._rawModule.namespaced=e.namespaced,e.actions&&(this._rawModule.actions=e.actions),e.mutations&&(this._rawModule.mutations=e.mutations),e.getters&&(this._rawModule.getters=e.getters)},a.prototype.forEachChild=function(e){i(this._children,e)},a.prototype.forEachGetter=function(e){this._rawModule.getters&&i(this._rawModule.getters,e)},a.prototype.forEachAction=function(e){this._rawModule.actions&&i(this._rawModule.actions,e)},a.prototype.forEachMutation=function(e){this._rawModule.mutations&&i(this._rawModule.mutations,e)},Object.defineProperties(a.prototype,s);var c=function(e){this.register([],e,!1)};c.prototype.get=function(e){return e.reduce((function(e,t){return e.getChild(t)}),this.root)},c.prototype.getNamespace=function(e){var t=this.root;return e.reduce((function(e,n){return e+((t=t.getChild(n)).namespaced?n+"/":"")}),"")},c.prototype.update=function(e){!function e(t,n,r){0;if(n.update(r),r.modules)for(var i in r.modules){if(!n.getChild(i))return void 0;e(t.concat(i),n.getChild(i),r.modules[i])}}([],this.root,e)},c.prototype.register=function(e,t,n){var r=this;void 0===n&&(n=!0);var o=new a(t,n);0===e.length?this.root=o:this.get(e.slice(0,-1)).addChild(e[e.length-1],o);t.modules&&i(t.modules,(function(t,i){r.register(e.concat(i),t,n)}))},c.prototype.unregister=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1];t.getChild(n).runtime&&t.removeChild(n)};var u;var l=function(e){var t=this;void 0===e&&(e={}),!u&&"undefined"!=typeof window&&window.Vue&&y(window.Vue);var n=e.plugins;void 0===n&&(n=[]);var i=e.strict;void 0===i&&(i=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new c(e),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new u,this._makeLocalGettersCache=Object.create(null);var o=this,a=this.dispatch,s=this.commit;this.dispatch=function(e,t){return a.call(o,e,t)},this.commit=function(e,t,n){return s.call(o,e,t,n)},this.strict=i;var l=this._modules.root.state;v(this,l,[],this._modules.root),h(this,l),n.forEach((function(e){return e(t)})),(void 0!==e.devtools?e.devtools:u.config.devtools)&&function(e){r&&(e._devtoolHook=r,r.emit("vuex:init",e),r.on("vuex:travel-to-state",(function(t){e.replaceState(t)})),e.subscribe((function(e,t){r.emit("vuex:mutation",e,t)})))}(this)},d={state:{configurable:!0}};function p(e,t){return t.indexOf(e)<0&&t.push(e),function(){var n=t.indexOf(e);n>-1&&t.splice(n,1)}}function f(e,t){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var n=e.state;v(e,n,[],e._modules.root,!0),h(e,n,t)}function h(e,t,n){var r=e._vm;e.getters={},e._makeLocalGettersCache=Object.create(null);var o=e._wrappedGetters,a={};i(o,(function(t,n){a[n]=function(e,t){return function(){return e(t)}}(t,e),Object.defineProperty(e.getters,n,{get:function(){return e._vm[n]},enumerable:!0})}));var s=u.config.silent;u.config.silent=!0,e._vm=new u({data:{$$state:t},computed:a}),u.config.silent=s,e.strict&&function(e){e._vm.$watch((function(){return this._data.$$state}),(function(){0}),{deep:!0,sync:!0})}(e),r&&(n&&e._withCommit((function(){r._data.$$state=null})),u.nextTick((function(){return r.$destroy()})))}function v(e,t,n,r,i){var o=!n.length,a=e._modules.getNamespace(n);if(r.namespaced&&(e._modulesNamespaceMap[a],e._modulesNamespaceMap[a]=r),!o&&!i){var s=m(t,n.slice(0,-1)),c=n[n.length-1];e._withCommit((function(){u.set(s,c,r.state)}))}var l=r.context=function(e,t,n){var r=""===t,i={dispatch:r?e.dispatch:function(n,r,i){var o=g(n,r,i),a=o.payload,s=o.options,c=o.type;return s&&s.root||(c=t+c),e.dispatch(c,a)},commit:r?e.commit:function(n,r,i){var o=g(n,r,i),a=o.payload,s=o.options,c=o.type;s&&s.root||(c=t+c),e.commit(c,a,s)}};return Object.defineProperties(i,{getters:{get:r?function(){return e.getters}:function(){return function(e,t){if(!e._makeLocalGettersCache[t]){var n={},r=t.length;Object.keys(e.getters).forEach((function(i){if(i.slice(0,r)===t){var o=i.slice(r);Object.defineProperty(n,o,{get:function(){return e.getters[i]},enumerable:!0})}})),e._makeLocalGettersCache[t]=n}return e._makeLocalGettersCache[t]}(e,t)}},state:{get:function(){return m(e.state,n)}}}),i}(e,a,n);r.forEachMutation((function(t,n){!function(e,t,n,r){(e._mutations[t]||(e._mutations[t]=[])).push((function(t){n.call(e,r.state,t)}))}(e,a+n,t,l)})),r.forEachAction((function(t,n){var r=t.root?n:a+n,i=t.handler||t;!function(e,t,n,r){(e._actions[t]||(e._actions[t]=[])).push((function(t){var i,o=n.call(e,{dispatch:r.dispatch,commit:r.commit,getters:r.getters,state:r.state,rootGetters:e.getters,rootState:e.state},t);return(i=o)&&"function"==typeof i.then||(o=Promise.resolve(o)),e._devtoolHook?o.catch((function(t){throw e._devtoolHook.emit("vuex:error",t),t})):o}))}(e,r,i,l)})),r.forEachGetter((function(t,n){!function(e,t,n,r){if(e._wrappedGetters[t])return void 0;e._wrappedGetters[t]=function(e){return n(r.state,r.getters,e.state,e.getters)}}(e,a+n,t,l)})),r.forEachChild((function(r,o){v(e,t,n.concat(o),r,i)}))}function m(e,t){return t.length?t.reduce((function(e,t){return e[t]}),e):e}function g(e,t,n){return o(e)&&e.type&&(n=t,t=e,e=e.type),{type:e,payload:t,options:n}}function y(e){u&&e===u||
/**
 * vuex v3.1.2
 * (c) 2019 Evan You
 * @license MIT
 */
function(e){if(Number(e.version.split(".")[0])>=2)e.mixin({beforeCreate:n});else{var t=e.prototype._init;e.prototype._init=function(e){void 0===e&&(e={}),e.init=e.init?[n].concat(e.init):n,t.call(this,e)}}function n(){var e=this.$options;e.store?this.$store="function"==typeof e.store?e.store():e.store:e.parent&&e.parent.$store&&(this.$store=e.parent.$store)}}(u=e)}d.state.get=function(){return this._vm._data.$$state},d.state.set=function(e){0},l.prototype.commit=function(e,t,n){var r=this,i=g(e,t,n),o=i.type,a=i.payload,s=(i.options,{type:o,payload:a}),c=this._mutations[o];c&&(this._withCommit((function(){c.forEach((function(e){e(a)}))})),this._subscribers.forEach((function(e){return e(s,r.state)})))},l.prototype.dispatch=function(e,t){var n=this,r=g(e,t),i=r.type,o=r.payload,a={type:i,payload:o},s=this._actions[i];if(s){try{this._actionSubscribers.filter((function(e){return e.before})).forEach((function(e){return e.before(a,n.state)}))}catch(e){0}return(s.length>1?Promise.all(s.map((function(e){return e(o)}))):s[0](o)).then((function(e){try{n._actionSubscribers.filter((function(e){return e.after})).forEach((function(e){return e.after(a,n.state)}))}catch(e){0}return e}))}},l.prototype.subscribe=function(e){return p(e,this._subscribers)},l.prototype.subscribeAction=function(e){return p("function"==typeof e?{before:e}:e,this._actionSubscribers)},l.prototype.watch=function(e,t,n){var r=this;return this._watcherVM.$watch((function(){return e(r.state,r.getters)}),t,n)},l.prototype.replaceState=function(e){var t=this;this._withCommit((function(){t._vm._data.$$state=e}))},l.prototype.registerModule=function(e,t,n){void 0===n&&(n={}),"string"==typeof e&&(e=[e]),this._modules.register(e,t),v(this,this.state,e,this._modules.get(e),n.preserveState),h(this,this.state)},l.prototype.unregisterModule=function(e){var t=this;"string"==typeof e&&(e=[e]),this._modules.unregister(e),this._withCommit((function(){var n=m(t.state,e.slice(0,-1));u.delete(n,e[e.length-1])})),f(this)},l.prototype.hotUpdate=function(e){this._modules.update(e),f(this,!0)},l.prototype._withCommit=function(e){var t=this._committing;this._committing=!0,e(),this._committing=t},Object.defineProperties(l.prototype,d);var b=E((function(e,t){var n={};return _(t).forEach((function(t){var r=t.key,i=t.val;n[r]=function(){var t=this.$store.state,n=this.$store.getters;if(e){var r=T(this.$store,"mapState",e);if(!r)return;t=r.context.state,n=r.context.getters}return"function"==typeof i?i.call(this,t,n):t[i]},n[r].vuex=!0})),n})),S=E((function(e,t){var n={};return _(t).forEach((function(t){var r=t.key,i=t.val;n[r]=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];var r=this.$store.commit;if(e){var o=T(this.$store,"mapMutations",e);if(!o)return;r=o.context.commit}return"function"==typeof i?i.apply(this,[r].concat(t)):r.apply(this.$store,[i].concat(t))}})),n})),w=E((function(e,t){var n={};return _(t).forEach((function(t){var r=t.key,i=t.val;i=e+i,n[r]=function(){if(!e||T(this.$store,"mapGetters",e))return this.$store.getters[i]},n[r].vuex=!0})),n})),C=E((function(e,t){var n={};return _(t).forEach((function(t){var r=t.key,i=t.val;n[r]=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];var r=this.$store.dispatch;if(e){var o=T(this.$store,"mapActions",e);if(!o)return;r=o.context.dispatch}return"function"==typeof i?i.apply(this,[r].concat(t)):r.apply(this.$store,[i].concat(t))}})),n}));function _(e){return function(e){return Array.isArray(e)||o(e)}(e)?Array.isArray(e)?e.map((function(e){return{key:e,val:e}})):Object.keys(e).map((function(t){return{key:t,val:e[t]}})):[]}function E(e){return function(t,n){return"string"!=typeof t?(n=t,t=""):"/"!==t.charAt(t.length-1)&&(t+="/"),e(t,n)}}function T(e,t,n){return e._modulesNamespaceMap[n]}var R={Store:l,install:y,version:"3.1.2",mapState:b,mapMutations:S,mapGetters:w,mapActions:C,createNamespacedHelpers:function(e){return{mapState:b.bind(null,e),mapGetters:w.bind(null,e),mapMutations:S.bind(null,e),mapActions:C.bind(null,e)}}};t.b=R}).call(this,n(21))},function(e,t,n){var r=n(6),i=n(82),o=r["__core-js_shared__"]||i("__core-js_shared__",{});e.exports=o},function(e,t,n){var r=n(20),i=n(8),o=n(101);e.exports=!r&&!i((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},function(e,t,n){var r=n(14),i=n(37),o=n(137).indexOf,a=n(68);e.exports=function(e,t){var n,s=i(e),c=0,u=[];for(n in s)!r(a,n)&&r(s,n)&&u.push(n);for(;t.length>c;)r(s,n=t[c++])&&(~o(u,n)||u.push(n));return u}},function(e,t,n){var r=n(37),i=n(31),o=n(138),a=function(e){return function(t,n,a){var s,c=r(t),u=i(c.length),l=o(a,u);if(e&&n!=n){for(;u>l;)if((s=c[l++])!=s)return!0}else for(;u>l;l++)if((e||l in c)&&c[l]===n)return e||l||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},function(e,t,n){var r=n(46),i=Math.max,o=Math.min;e.exports=function(e,t){var n=r(e);return n<0?i(n+t,0):o(n,t)}},function(e,t,n){"use strict";var r=n(20),i=n(6),o=n(69),a=n(23),s=n(14),c=n(28),u=n(197),l=n(50),d=n(8),p=n(54),f=n(74).f,h=n(51).f,v=n(25).f,m=n(198).trim,g=i.Number,y=g.prototype,b="Number"==c(p(y)),S=function(e){var t,n,r,i,o,a,s,c,u=l(e,!1);if("string"==typeof u&&u.length>2)if(43===(t=(u=m(u)).charCodeAt(0))||45===t){if(88===(n=u.charCodeAt(2))||120===n)return NaN}else if(48===t){switch(u.charCodeAt(1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+u}for(a=(o=u.slice(2)).length,s=0;s<a;s++)if((c=o.charCodeAt(s))<48||c>i)return NaN;return parseInt(o,r)}return+u};if(o("Number",!g(" 0o1")||!g("0b1")||g("+0x1"))){for(var w,C=function(e){var t=arguments.length<1?0:e,n=this;return n instanceof C&&(b?d((function(){y.valueOf.call(n)})):"Number"!=c(n))?u(new g(S(t)),n,C):S(t)},_=r?f(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(","),E=0;_.length>E;E++)s(g,w=_[E])&&!s(C,w)&&v(C,w,h(g,w));C.prototype=y,y.constructor=C,a(i,"Number",C)}},function(e,t,n){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},function(e,t,n){"use strict";var r=n(13);function i(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var o;if(n)o=n(t);else if(r.isURLSearchParams(t))o=t.toString();else{var a=[];r.forEach(t,(function(e,t){null!=e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),a.push(i(t)+"="+i(e))})))})),o=a.join("&")}if(o){var s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}},function(e,t,n){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},function(e,t,n){"use strict";(function(t){var r=n(13),i=n(239),o={"Content-Type":"application/x-www-form-urlencoded"};function a(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var s,c={adapter:("undefined"!=typeof XMLHttpRequest?s=n(144):void 0!==t&&"[object process]"===Object.prototype.toString.call(t)&&(s=n(144)),s),transformRequest:[function(e,t){return i(t,"Accept"),i(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e)?e:r.isArrayBufferView(e)?e.buffer:r.isURLSearchParams(e)?(a(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):r.isObject(e)?(a(t,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(e){}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(e){return e>=200&&e<300}};c.headers={common:{Accept:"application/json, text/plain, */*"}},r.forEach(["delete","get","head"],(function(e){c.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){c.headers[e]=r.merge(o)})),e.exports=c}).call(this,n(49))},function(e,t,n){"use strict";var r=n(13),i=n(240),o=n(141),a=n(242),s=n(245),c=n(246),u=n(145);e.exports=function(e){return new Promise((function(t,l){var d=e.data,p=e.headers;r.isFormData(d)&&delete p["Content-Type"];var f=new XMLHttpRequest;if(e.auth){var h=e.auth.username||"",v=e.auth.password||"";p.Authorization="Basic "+btoa(h+":"+v)}var m=a(e.baseURL,e.url);if(f.open(e.method.toUpperCase(),o(m,e.params,e.paramsSerializer),!0),f.timeout=e.timeout,f.onreadystatechange=function(){if(f&&4===f.readyState&&(0!==f.status||f.responseURL&&0===f.responseURL.indexOf("file:"))){var n="getAllResponseHeaders"in f?s(f.getAllResponseHeaders()):null,r={data:e.responseType&&"text"!==e.responseType?f.response:f.responseText,status:f.status,statusText:f.statusText,headers:n,config:e,request:f};i(t,l,r),f=null}},f.onabort=function(){f&&(l(u("Request aborted",e,"ECONNABORTED",f)),f=null)},f.onerror=function(){l(u("Network Error",e,null,f)),f=null},f.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),l(u(t,e,"ECONNABORTED",f)),f=null},r.isStandardBrowserEnv()){var g=n(248),y=(e.withCredentials||c(m))&&e.xsrfCookieName?g.read(e.xsrfCookieName):void 0;y&&(p[e.xsrfHeaderName]=y)}if("setRequestHeader"in f&&r.forEach(p,(function(e,t){void 0===d&&"content-type"===t.toLowerCase()?delete p[t]:f.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(f.withCredentials=!!e.withCredentials),e.responseType)try{f.responseType=e.responseType}catch(t){if("json"!==e.responseType)throw t}"function"==typeof e.onDownloadProgress&&f.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&f.upload&&f.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){f&&(f.abort(),l(e),f=null)})),void 0===d&&(d=null),f.send(d)}))}},function(e,t,n){"use strict";var r=n(241);e.exports=function(e,t,n,i,o){var a=new Error(e);return r(a,t,n,i,o)}},function(e,t,n){"use strict";var r=n(13);e.exports=function(e,t){t=t||{};var n={},i=["url","method","params","data"],o=["headers","auth","proxy"],a=["baseURL","url","transformRequest","transformResponse","paramsSerializer","timeout","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","maxContentLength","validateStatus","maxRedirects","httpAgent","httpsAgent","cancelToken","socketPath"];r.forEach(i,(function(e){void 0!==t[e]&&(n[e]=t[e])})),r.forEach(o,(function(i){r.isObject(t[i])?n[i]=r.deepMerge(e[i],t[i]):void 0!==t[i]?n[i]=t[i]:r.isObject(e[i])?n[i]=r.deepMerge(e[i]):void 0!==e[i]&&(n[i]=e[i])})),r.forEach(a,(function(r){void 0!==t[r]?n[r]=t[r]:void 0!==e[r]&&(n[r]=e[r])}));var s=i.concat(o).concat(a),c=Object.keys(t).filter((function(e){return-1===s.indexOf(e)}));return r.forEach(c,(function(r){void 0!==t[r]?n[r]=t[r]:void 0!==e[r]&&(n[r]=e[r])})),n}},function(e,t,n){"use strict";function r(e){this.message=e}r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},r.prototype.__CANCEL__=!0,e.exports=r},function(e,t,n){var r=n(29),i=n(257),o=n(60),a=n(61),s=n(88),c=n(22),u=n(150),l=Object.getOwnPropertyDescriptor;t.f=r?l:function(e,t){if(e=a(e),t=s(t,!0),u)try{return l(e,t)}catch(e){}if(c(e,t))return o(!i.f.call(e,t),e[t])}},function(e,t,n){var r=n(17),i=n(86),o="".split;e.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==i(e)?o.call(e,""):Object(e)}:Object},function(e,t,n){var r=n(29),i=n(17),o=n(151);e.exports=!r&&!i((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},function(e,t,n){var r=n(10),i=n(24),o=r.document,a=i(o)&&i(o.createElement);e.exports=function(e){return a?o.createElement(e):{}}},function(e,t,n){var r=n(153),i=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(e){return i.call(e)}),e.exports=r.inspectSource},function(e,t,n){var r=n(10),i=n(89),o=r["__core-js_shared__"]||i("__core-js_shared__",{});e.exports=o},function(e,t,n){var r=n(91),i=n(153);(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.6.3",mode:r?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(e,t,n){var r=n(22),i=n(61),o=n(263).indexOf,a=n(63);e.exports=function(e,t){var n,s=i(e),c=0,u=[];for(n in s)!r(a,n)&&r(s,n)&&u.push(n);for(;t.length>c;)r(s,n=t[c++])&&(~o(u,n)||u.push(n));return u}},function(e,t,n){var r=n(17),i=/#|\.prototype\./,o=function(e,t){var n=s[a(e)];return n==u||n!=c&&("function"==typeof t?r(t):!!t)},a=o.normalize=function(e){return String(e).replace(i,".").toLowerCase()},s=o.data={},c=o.NATIVE="N",u=o.POLYFILL="P";e.exports=o},function(e,t,n){var r=n(86);e.exports=Array.isArray||function(e){return"Array"==r(e)}},function(e,t,n){var r=n(24),i=n(157),o=n(11)("species");e.exports=function(e,t){var n;return i(e)&&("function"!=typeof(n=e.constructor)||n!==Array&&!i(n.prototype)?r(n)&&null===(n=n[o])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===t?0:t)}},function(e,t,n){var r=n(17);e.exports=!!Object.getOwnPropertySymbols&&!r((function(){return!String(Symbol())}))},function(e,t,n){var r=n(17),i=n(11),o=n(161),a=i("species");e.exports=function(e){return o>=51||!r((function(){var t=[];return(t.constructor={})[a]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},function(e,t,n){var r,i,o=n(10),a=n(268),s=o.process,c=s&&s.versions,u=c&&c.v8;u?i=(r=u.split("."))[0]+r[1]:a&&(!(r=a.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/))&&(i=r[1]),e.exports=i&&+i},function(e,t,n){var r=n(96),i=n(149),o=n(95),a=n(65),s=n(158),c=[].push,u=function(e){var t=1==e,n=2==e,u=3==e,l=4==e,d=6==e,p=5==e||d;return function(f,h,v,m){for(var g,y,b=o(f),S=i(b),w=r(h,v,3),C=a(S.length),_=0,E=m||s,T=t?E(f,C):n?E(f,0):void 0;C>_;_++)if((p||_ in S)&&(y=w(g=S[_],_,b),e))if(t)T[_]=y;else if(y)switch(e){case 3:return!0;case 5:return g;case 6:return _;case 2:c.call(T,g)}else if(l)return!1;return d?-1:u||l?l:T}};e.exports={forEach:u(0),map:u(1),filter:u(2),some:u(3),every:u(4),find:u(5),findIndex:u(6)}},function(e,t,n){var r=n(29),i=n(17),o=n(22),a=Object.defineProperty,s=function(e){throw e};e.exports=function(e,t){t||(t={});var n=[][e],c=!!o(t,"ACCESSORS")&&t.ACCESSORS,u=o(t,0)?t[0]:s,l=o(t,1)?t[1]:void 0;return!!n&&!i((function(){if(c&&!r)return!0;var e={length:-1},t=function(t){c?a(e,t,{enumerable:!0,get:s}):e[t]=1};t(1),t(2147483646),t(4294967294),n.call(e,u,l)}))}},function(e,t,n){"use strict";var r=n(61),i=n(271),o=n(44),a=n(62),s=n(98),c=a.set,u=a.getterFor("Array Iterator");e.exports=s(Array,"Array",(function(e,t){c(this,{type:"Array Iterator",target:r(e),index:0,kind:t})}),(function(){var e=u(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values"),o.Arguments=o.Array,i("keys"),i("values"),i("entries")},function(e,t,n){"use strict";var r,i,o,a=n(166),s=n(30),c=n(22),u=n(11),l=n(91),d=u("iterator"),p=!1;[].keys&&("next"in(o=[].keys())?(i=a(a(o)))!==Object.prototype&&(r=i):p=!0),null==r&&(r={}),l||c(r,d)||s(r,d,(function(){return this})),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:p}},function(e,t,n){var r=n(22),i=n(95),o=n(90),a=n(276),s=o("IE_PROTO"),c=Object.prototype;e.exports=a?Object.getPrototypeOf:function(e){return e=i(e),r(e,s)?e[s]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?c:null}},function(e,t,n){var r=n(32),i=n(277);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),t=n instanceof Array}catch(e){}return function(n,o){return r(n),i(o),t?e.call(n,o):n.__proto__=o,n}}():void 0)},function(e,t,n){var r=n(63),i=n(24),o=n(22),a=n(27).f,s=n(92),c=n(280),u=s("meta"),l=0,d=Object.isExtensible||function(){return!0},p=function(e){a(e,u,{value:{objectID:"O"+ ++l,weakData:{}}})},f=e.exports={REQUIRED:!1,fastKey:function(e,t){if(!i(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!o(e,u)){if(!d(e))return"F";if(!t)return"E";p(e)}return e[u].objectID},getWeakData:function(e,t){if(!o(e,u)){if(!d(e))return!0;if(!t)return!1;p(e)}return e[u].weakData},onFreeze:function(e){return c&&f.REQUIRED&&d(e)&&!o(e,u)&&p(e),e}};r[u]=!0},function(e,t,n){var r=n(32),i=n(281),o=n(65),a=n(96),s=n(282),c=n(283),u=function(e,t){this.stopped=e,this.result=t};(e.exports=function(e,t,n,l,d){var p,f,h,v,m,g,y,b=a(t,n,l?2:1);if(d)p=e;else{if("function"!=typeof(f=s(e)))throw TypeError("Target is not iterable");if(i(f)){for(h=0,v=o(e.length);v>h;h++)if((m=l?b(r(y=e[h])[0],y[1]):b(e[h]))&&m instanceof u)return m;return new u(!1)}p=f.call(e)}for(g=p.next;!(y=g.call(p)).done;)if("object"==typeof(m=c(p,b,y.value,l))&&m&&m instanceof u)return m;return new u(!1)}).stop=function(e){return new u(!0,e)}},function(e,t,n){var r=n(100),i=n(86),o=n(11)("toStringTag"),a="Arguments"==i(function(){return arguments}());e.exports=r?i:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),o))?n:a?i(t):"Object"==(r=i(t))&&"function"==typeof t.callee?"Arguments":r}},function(e,t){e.exports=function(e,t,n){if(!(e instanceof t))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return e}},function(e,t){e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},,function(e,t,n){var r=n(20),i=n(25),o=n(9),a=n(120);e.exports=r?Object.defineProperties:function(e,t){o(e);for(var n,r=a(t),s=r.length,c=0;s>c;)i.f(e,n=r[c++],t[n]);return e}},function(e,t,n){var r=n(39);e.exports=r("document","documentElement")},function(e,t,n){var r=n(9),i=n(232);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),t=n instanceof Array}catch(e){}return function(n,o){return r(n),i(o),t?e.call(n,o):n.__proto__=o,n}}():void 0)},function(e,t,n){"use strict";var r=n(104).charAt;e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},function(e,t,n){"use strict";var r=n(20),i=n(8),o=n(120),a=n(118),s=n(117),c=n(34),u=n(67),l=Object.assign,d=Object.defineProperty;e.exports=!l||i((function(){if(r&&1!==l({b:1},l(d({},"a",{enumerable:!0,get:function(){d(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol();return e[n]=7,"abcdefghijklmnopqrst".split("").forEach((function(e){t[e]=e})),7!=l({},e)[n]||"abcdefghijklmnopqrst"!=o(l({},t)).join("")}))?function(e,t){for(var n=c(e),i=arguments.length,l=1,d=a.f,p=s.f;i>l;)for(var f,h=u(arguments[l++]),v=d?o(h).concat(d(h)):o(h),m=v.length,g=0;m>g;)f=v[g++],r&&!p.call(h,f)||(n[f]=h[f]);return n}:l},,,,,function(e,t){function n(){}e.exports=n,n.mixin=function(e){var t=e.prototype||e;t.isWildEmitter=!0,t.on=function(e,t,n){this.callbacks=this.callbacks||{};var r=3===arguments.length,i=r?arguments[1]:void 0,o=r?arguments[2]:arguments[1];return o._groupName=i,(this.callbacks[e]=this.callbacks[e]||[]).push(o),this},t.once=function(e,t,n){var r=this,i=3===arguments.length,o=i?arguments[1]:void 0,a=i?arguments[2]:arguments[1];function s(){r.off(e,s),a.apply(this,arguments)}return this.on(e,o,s),this},t.releaseGroup=function(e){var t,n,r,i;for(t in this.callbacks=this.callbacks||{},this.callbacks)for(n=0,r=(i=this.callbacks[t]).length;n<r;n++)i[n]._groupName===e&&(i.splice(n,1),n--,r--);return this},t.off=function(e,t){this.callbacks=this.callbacks||{};var n,r=this.callbacks[e];return r?1===arguments.length?(delete this.callbacks[e],this):(-1!==(n=r.indexOf(t))&&(r.splice(n,1),0===r.length&&delete this.callbacks[e]),this):this},t.emit=function(e){this.callbacks=this.callbacks||{};var t,n,r,i=[].slice.call(arguments,1),o=this.callbacks[e],a=this.getWildcardCallbacks(e);if(o)for(t=0,n=(r=o.slice()).length;t<n&&r[t];++t)r[t].apply(this,i);if(a)for(n=a.length,t=0,n=(r=a.slice()).length;t<n&&r[t];++t)r[t].apply(this,[e].concat(i));return this},t.getWildcardCallbacks=function(e){this.callbacks=this.callbacks||{};var t,n,r=[];for(t in this.callbacks)n=t.split("*"),("*"===t||2===n.length&&e.slice(0,n[0].length)===n[0])&&(r=r.concat(this.callbacks[t]));return r}},n.mixin(n)},,,,,,,,,,,,function(e,t,n){(function(e){var r=void 0!==e&&e||"undefined"!=typeof self&&self||window,i=Function.prototype.apply;function o(e,t){this._id=e,this._clearFn=t}t.setTimeout=function(){return new o(i.call(setTimeout,r,arguments),clearTimeout)},t.setInterval=function(){return new o(i.call(setInterval,r,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},o.prototype.unref=o.prototype.ref=function(){},o.prototype.close=function(){this._clearFn.call(r,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},n(196),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(this,n(21))},function(e,t,n){(function(e,t){!function(e,n){"use strict";if(!e.setImmediate){var r,i,o,a,s,c=1,u={},l=!1,d=e.document,p=Object.getPrototypeOf&&Object.getPrototypeOf(e);p=p&&p.setTimeout?p:e,"[object process]"==={}.toString.call(e.process)?r=function(e){t.nextTick((function(){h(e)}))}:!function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?e.MessageChannel?((o=new MessageChannel).port1.onmessage=function(e){h(e.data)},r=function(e){o.port2.postMessage(e)}):d&&"onreadystatechange"in d.createElement("script")?(i=d.documentElement,r=function(e){var t=d.createElement("script");t.onreadystatechange=function(){h(e),t.onreadystatechange=null,i.removeChild(t),t=null},i.appendChild(t)}):r=function(e){setTimeout(h,0,e)}:(a="setImmediate$"+Math.random()+"$",s=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(a)&&h(+t.data.slice(a.length))},e.addEventListener?e.addEventListener("message",s,!1):e.attachEvent("onmessage",s),r=function(t){e.postMessage(a+t,"*")}),p.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),n=0;n<t.length;n++)t[n]=arguments[n+1];var i={callback:e,args:t};return u[c]=i,r(c),c++},p.clearImmediate=f}function f(e){delete u[e]}function h(e){if(l)setTimeout(h,0,e);else{var t=u[e];if(t){l=!0;try{!function(e){var t=e.callback,r=e.args;switch(r.length){case 0:t();break;case 1:t(r[0]);break;case 2:t(r[0],r[1]);break;case 3:t(r[0],r[1],r[2]);break;default:t.apply(n,r)}}(t)}finally{f(e),l=!1}}}}}("undefined"==typeof self?void 0===e?this:e:self)}).call(this,n(21),n(49))},function(e,t,n){var r=n(16),i=n(176);e.exports=function(e,t,n){var o,a;return i&&"function"==typeof(o=t.constructor)&&o!==n&&r(a=o.prototype)&&a!==n.prototype&&i(e,a),e}},function(e,t,n){var r=n(36),i="["+n(199)+"]",o=RegExp("^"+i+i+"*"),a=RegExp(i+i+"*$"),s=function(e){return function(t){var n=String(r(t));return 1&e&&(n=n.replace(o,"")),2&e&&(n=n.replace(a,"")),n}};e.exports={start:s(1),end:s(2),trim:s(3)}},function(e,t){e.exports="\t\n\v\f\r                　\u2028\u2029\ufeff"},function(e,t,n){var r=n(116);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol()},function(e,t,n){var r=n(14),i=n(231),o=n(51),a=n(25);e.exports=function(e,t){for(var n=i(t),s=a.f,c=o.f,u=0;u<n.length;u++){var l=n[u];r(e,l)||s(e,l,c(t,l))}}},function(e,t,n){var r=n(6);e.exports=r},,,,,,,,function(e,t,n){(function(e){var r=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++)n[t[r]]=Object.getOwnPropertyDescriptor(e,t[r]);return n},i=/%[sdj%]/g;t.format=function(e){if(!g(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(s(arguments[n]));return t.join(" ")}n=1;for(var r=arguments,o=r.length,a=String(e).replace(i,(function(e){if("%%"===e)return"%";if(n>=o)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(e){return"[Circular]"}default:return e}})),c=r[n];n<o;c=r[++n])v(c)||!S(c)?a+=" "+c:a+=" "+s(c);return a},t.deprecate=function(n,r){if(void 0!==e&&!0===e.noDeprecation)return n;if(void 0===e)return function(){return t.deprecate(n,r).apply(this,arguments)};var i=!1;return function(){if(!i){if(e.throwDeprecation)throw new Error(r);e.traceDeprecation?console.trace(r):console.error(r),i=!0}return n.apply(this,arguments)}};var o,a={};function s(e,n){var r={seen:[],stylize:u};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),h(n)?r.showHidden=n:n&&t._extend(r,n),y(r.showHidden)&&(r.showHidden=!1),y(r.depth)&&(r.depth=2),y(r.colors)&&(r.colors=!1),y(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=c),l(r,e,r.depth)}function c(e,t){var n=s.styles[t];return n?"["+s.colors[n][0]+"m"+e+"["+s.colors[n][1]+"m":e}function u(e,t){return e}function l(e,n,r){if(e.customInspect&&n&&_(n.inspect)&&n.inspect!==t.inspect&&(!n.constructor||n.constructor.prototype!==n)){var i=n.inspect(r,e);return g(i)||(i=l(e,i,r)),i}var o=function(e,t){if(y(t))return e.stylize("undefined","undefined");if(g(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}if(m(t))return e.stylize(""+t,"number");if(h(t))return e.stylize(""+t,"boolean");if(v(t))return e.stylize("null","null")}(e,n);if(o)return o;var a=Object.keys(n),s=function(e){var t={};return e.forEach((function(e,n){t[e]=!0})),t}(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(n)),C(n)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return d(n);if(0===a.length){if(_(n)){var c=n.name?": "+n.name:"";return e.stylize("[Function"+c+"]","special")}if(b(n))return e.stylize(RegExp.prototype.toString.call(n),"regexp");if(w(n))return e.stylize(Date.prototype.toString.call(n),"date");if(C(n))return d(n)}var u,S="",E=!1,T=["{","}"];(f(n)&&(E=!0,T=["[","]"]),_(n))&&(S=" [Function"+(n.name?": "+n.name:"")+"]");return b(n)&&(S=" "+RegExp.prototype.toString.call(n)),w(n)&&(S=" "+Date.prototype.toUTCString.call(n)),C(n)&&(S=" "+d(n)),0!==a.length||E&&0!=n.length?r<0?b(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special"):(e.seen.push(n),u=E?function(e,t,n,r,i){for(var o=[],a=0,s=t.length;a<s;++a)k(t,String(a))?o.push(p(e,t,n,r,String(a),!0)):o.push("");return i.forEach((function(i){i.match(/^\d+$/)||o.push(p(e,t,n,r,i,!0))})),o}(e,n,r,s,a):a.map((function(t){return p(e,n,r,s,t,E)})),e.seen.pop(),function(e,t,n){if(e.reduce((function(e,t){return t.indexOf("\n")>=0&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60)return n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n  ")+" "+n[1];return n[0]+t+" "+e.join(", ")+" "+n[1]}(u,S,T)):T[0]+S+T[1]}function d(e){return"["+Error.prototype.toString.call(e)+"]"}function p(e,t,n,r,i,o){var a,s,c;if((c=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?s=c.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):c.set&&(s=e.stylize("[Setter]","special")),k(r,i)||(a="["+i+"]"),s||(e.seen.indexOf(c.value)<0?(s=v(n)?l(e,c.value,null):l(e,c.value,n-1)).indexOf("\n")>-1&&(s=o?s.split("\n").map((function(e){return"  "+e})).join("\n").substr(2):"\n"+s.split("\n").map((function(e){return"   "+e})).join("\n")):s=e.stylize("[Circular]","special")),y(a)){if(o&&i.match(/^\d+$/))return s;(a=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function f(e){return Array.isArray(e)}function h(e){return"boolean"==typeof e}function v(e){return null===e}function m(e){return"number"==typeof e}function g(e){return"string"==typeof e}function y(e){return void 0===e}function b(e){return S(e)&&"[object RegExp]"===E(e)}function S(e){return"object"==typeof e&&null!==e}function w(e){return S(e)&&"[object Date]"===E(e)}function C(e){return S(e)&&("[object Error]"===E(e)||e instanceof Error)}function _(e){return"function"==typeof e}function E(e){return Object.prototype.toString.call(e)}function T(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(n){if(y(o)&&(o=e.env.NODE_DEBUG||""),n=n.toUpperCase(),!a[n])if(new RegExp("\\b"+n+"\\b","i").test(o)){var r=e.pid;a[n]=function(){var e=t.format.apply(t,arguments);console.error("%s %d: %s",n,r,e)}}else a[n]=function(){};return a[n]},t.inspect=s,s.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.isArray=f,t.isBoolean=h,t.isNull=v,t.isNullOrUndefined=function(e){return null==e},t.isNumber=m,t.isString=g,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=y,t.isRegExp=b,t.isObject=S,t.isDate=w,t.isError=C,t.isFunction=_,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=n(471);var R=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function O(){var e=new Date,t=[T(e.getHours()),T(e.getMinutes()),T(e.getSeconds())].join(":");return[e.getDate(),R[e.getMonth()],t].join(" ")}function k(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){console.log("%s - %s",O(),t.format.apply(t,arguments))},t.inherits=n(472),t._extend=function(e,t){if(!t||!S(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e};var P="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function x(e,t){if(!e){var n=new Error("Promise was rejected with a falsy value");n.reason=e,e=n}return t(e)}t.promisify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');if(P&&e[P]){var t;if("function"!=typeof(t=e[P]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,P,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,n,r=new Promise((function(e,r){t=e,n=r})),i=[],o=0;o<arguments.length;o++)i.push(arguments[o]);i.push((function(e,r){e?n(e):t(r)}));try{e.apply(this,i)}catch(e){n(e)}return r}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),P&&Object.defineProperty(t,P,{value:t,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(t,r(e))},t.promisify.custom=P,t.callbackify=function(t){if("function"!=typeof t)throw new TypeError('The "original" argument must be of type Function');function n(){for(var n=[],r=0;r<arguments.length;r++)n.push(arguments[r]);var i=n.pop();if("function"!=typeof i)throw new TypeError("The last argument must be of type Function");var o=this,a=function(){return i.apply(o,arguments)};t.apply(this,n).then((function(t){e.nextTick(a,null,t)}),(function(t){e.nextTick(x,t,a)}))}return Object.setPrototypeOf(n,Object.getPrototypeOf(t)),Object.defineProperties(n,r(t)),n}}).call(this,n(49))},function(e,t){var n,r;window.mozRTCPeerConnection||navigator.mozGetUserMedia?(n="moz",r=parseInt(navigator.userAgent.match(/Firefox\/([0-9]+)\./)[1],10)):(window.webkitRTCPeerConnection||navigator.webkitGetUserMedia)&&(n="webkit",r=navigator.userAgent.match(/Chrom(e|ium)/)&&parseInt(navigator.userAgent.match(/Chrom(e|ium)\/([0-9]+)\./)[2],10));var i=window.RTCPeerConnection||window.mozRTCPeerConnection||window.webkitRTCPeerConnection,o=window.mozRTCIceCandidate||window.RTCIceCandidate,a=window.mozRTCSessionDescription||window.RTCSessionDescription,s=window.webkitMediaStream||window.MediaStream,c="https:"===window.location.protocol&&("webkit"===n&&r>=26||"moz"===n&&r>=33),u=window.AudioContext||window.webkitAudioContext,l=document.createElement("video"),d=l&&l.canPlayType&&"probably"===l.canPlayType('video/webm; codecs="vp8", vorbis'),p=navigator.getUserMedia||navigator.webkitGetUserMedia||navigator.msGetUserMedia||navigator.mozGetUserMedia;e.exports={prefix:n,browserVersion:r,support:!!i&&!!p,supportRTCPeerConnection:!!i,supportVp8:d,supportGetUserMedia:!!p,supportDataChannel:!!(i&&i.prototype&&i.prototype.createDataChannel),supportWebAudio:!(!u||!u.prototype.createMediaStreamSource),supportMediaStream:!(!s||!s.prototype.removeTrack),supportScreenSharing:!!c,AudioContext:u,PeerConnection:i,SessionDescription:a,IceCandidate:o,MediaStream:s,getUserMedia:p}},function(e,t){for(var n="assert,count,debug,dir,dirxml,error,exception,group,groupCollapsed,groupEnd,info,log,markTimeline,profile,profileEnd,time,timeEnd,trace,warn".split(","),r=n.length,i=function(){},o={};r--;)o[n[r]]=i;e.exports=o},,,,,,,,,,,,,,,,,function(e,t,n){var r=n(6),i=n(102),o=r.WeakMap;e.exports="function"==typeof o&&/native code/.test(i(o))},function(e,t,n){"use strict";var r=n(81),i=n(103);e.exports=r?{}.toString:function(){return"[object "+i(this)+"]"}},function(e,t,n){var r=n(39),i=n(74),o=n(118),a=n(9);e.exports=r("Reflect","ownKeys")||function(e){var t=i.f(a(e)),n=o.f;return n?t.concat(n(e)):t}},function(e,t,n){var r=n(16);e.exports=function(e){if(!r(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},function(e,t,n){e.exports=n(234)},function(e,t,n){"use strict";var r=n(13),i=n(140),o=n(235),a=n(146);function s(e){var t=new o(e),n=i(o.prototype.request,t);return r.extend(n,o.prototype,t),r.extend(n,t),n}var c=s(n(143));c.Axios=o,c.create=function(e){return s(a(c.defaults,e))},c.Cancel=n(147),c.CancelToken=n(249),c.isCancel=n(142),c.all=function(e){return Promise.all(e)},c.spread=n(250),e.exports=c,e.exports.default=c},function(e,t,n){"use strict";var r=n(13),i=n(141),o=n(236),a=n(237),s=n(146);function c(e){this.defaults=e,this.interceptors={request:new o,response:new o}}c.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=s(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=[a,void 0],n=Promise.resolve(e);for(this.interceptors.request.forEach((function(e){t.unshift(e.fulfilled,e.rejected)})),this.interceptors.response.forEach((function(e){t.push(e.fulfilled,e.rejected)}));t.length;)n=n.then(t.shift(),t.shift());return n},c.prototype.getUri=function(e){return e=s(this.defaults,e),i(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(e){c.prototype[e]=function(t,n){return this.request(r.merge(n||{},{method:e,url:t}))}})),r.forEach(["post","put","patch"],(function(e){c.prototype[e]=function(t,n,i){return this.request(r.merge(i||{},{method:e,url:t,data:n}))}})),e.exports=c},function(e,t,n){"use strict";var r=n(13);function i(){this.handlers=[]}i.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},i.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},i.prototype.forEach=function(e){r.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=i},function(e,t,n){"use strict";var r=n(13),i=n(238),o=n(142),a=n(143);function s(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){return s(e),e.headers=e.headers||{},e.data=i(e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||a.adapter)(e).then((function(t){return s(e),t.data=i(t.data,t.headers,e.transformResponse),t}),(function(t){return o(t)||(s(e),t&&t.response&&(t.response.data=i(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},function(e,t,n){"use strict";var r=n(13);e.exports=function(e,t,n){return r.forEach(n,(function(n){e=n(e,t)})),e}},function(e,t,n){"use strict";var r=n(13);e.exports=function(e,t){r.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))}},function(e,t,n){"use strict";var r=n(145);e.exports=function(e,t,n){var i=n.config.validateStatus;!i||i(n.status)?e(n):t(r("Request failed with status code "+n.status,n.config,null,n.request,n))}},function(e,t,n){"use strict";e.exports=function(e,t,n,r,i){return e.config=t,n&&(e.code=n),e.request=r,e.response=i,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}},function(e,t,n){"use strict";var r=n(243),i=n(244);e.exports=function(e,t){return e&&!r(t)?i(e,t):t}},function(e,t,n){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},function(e,t,n){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},function(e,t,n){"use strict";var r=n(13),i=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,o,a={};return e?(r.forEach(e.split("\n"),(function(e){if(o=e.indexOf(":"),t=r.trim(e.substr(0,o)).toLowerCase(),n=r.trim(e.substr(o+1)),t){if(a[t]&&i.indexOf(t)>=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([n]):a[t]?a[t]+", "+n:n}})),a):a}},function(e,t,n){"use strict";var r=n(13),i=n(247);e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function o(e){var r=e;if(i(e))throw new Error("URL contains XSS injection attempt");return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=o(window.location.href),function(t){var n=r.isString(t)?o(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},function(e,t,n){"use strict";e.exports=function(e){return/(\b)(on\w+)=|javascript|(<\s*)(\/*)script/gi.test(e)}},function(e,t,n){"use strict";var r=n(13);e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,i,o,a){var s=[];s.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(i)&&s.push("path="+i),r.isString(o)&&s.push("domain="+o),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},function(e,t,n){"use strict";var r=n(147);function i(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;e((function(e){n.reason||(n.reason=new r(e),t(n.reason))}))}i.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},i.source=function(){var e;return{token:new i((function(t){e=t})),cancel:e}},e.exports=i},function(e,t,n){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getRequestToken=function(){return o},t.onRequestTokenUpdate=function(e){a.push(e)};var r=n(252),i=document.getElementsByTagName("head")[0],o=i?i.getAttribute("data-requesttoken"):null,a=[];(0,r.subscribe)("csrf-token-update",(function(e){o=e.token,a.forEach((function(t){try{t(e.token)}catch(e){console.error("error updating CSRF token observer",e)}}))}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.subscribe=function(e,t){o.subscribe(e,t)},t.unsubscribe=function(e,t){o.unsubscribe(e,t)},t.emit=function(e,t){o.emit(e,t)};var r=n(253),i=n(255);var o=(void 0!==window.OC&&window.OC._eventBus&&void 0===window._nc_event_bus&&(console.warn("found old event bus instance at OC._eventBus. Update your version!"),window._nc_event_bus=window.OC._eventBus),void 0!==window._nc_event_bus?new r.ProxyBus(window._nc_event_bus):window._nc_event_bus=new i.SimpleBus)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ProxyBus=void 0;var r,i=(r=n(254))&&r.__esModule?r:{default:r};function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var a="1.1.2",s=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(this,"bus",void 0),"function"==typeof t.getVersion&&i.default.valid(t.getVersion())?i.default.major(t.getVersion())!==i.default.major(this.getVersion())&&console.warn("Proxying an event bus of version "+t.getVersion()+" with "+this.getVersion()):console.warn("Proxying an event bus with an unknown or invalid version"),this.bus=t}var t,n,r;return t=e,(n=[{key:"getVersion",value:function(){return a}},{key:"subscribe",value:function(e,t){this.bus.subscribe(e,t)}},{key:"unsubscribe",value:function(e,t){this.bus.unsubscribe(e,t)}},{key:"emit",value:function(e,t){this.bus.emit(e,t)}}])&&o(t.prototype,n),r&&o(t,r),e}();t.ProxyBus=s},function(e,t,n){(function(n){var r;t=e.exports=f,r="object"==typeof n&&n.env&&n.env.NODE_DEBUG&&/\bsemver\b/i.test(n.env.NODE_DEBUG)?function(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER"),console.log.apply(console,e)}:function(){},t.SEMVER_SPEC_VERSION="2.0.0";var i=256,o=Number.MAX_SAFE_INTEGER||9007199254740991,a=t.re=[],s=t.src=[],c=t.tokens={},u=0;function l(e){c[e]=u++}l("NUMERICIDENTIFIER"),s[c.NUMERICIDENTIFIER]="0|[1-9]\\d*",l("NUMERICIDENTIFIERLOOSE"),s[c.NUMERICIDENTIFIERLOOSE]="[0-9]+",l("NONNUMERICIDENTIFIER"),s[c.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-][a-zA-Z0-9-]*",l("MAINVERSION"),s[c.MAINVERSION]="("+s[c.NUMERICIDENTIFIER]+")\\.("+s[c.NUMERICIDENTIFIER]+")\\.("+s[c.NUMERICIDENTIFIER]+")",l("MAINVERSIONLOOSE"),s[c.MAINVERSIONLOOSE]="("+s[c.NUMERICIDENTIFIERLOOSE]+")\\.("+s[c.NUMERICIDENTIFIERLOOSE]+")\\.("+s[c.NUMERICIDENTIFIERLOOSE]+")",l("PRERELEASEIDENTIFIER"),s[c.PRERELEASEIDENTIFIER]="(?:"+s[c.NUMERICIDENTIFIER]+"|"+s[c.NONNUMERICIDENTIFIER]+")",l("PRERELEASEIDENTIFIERLOOSE"),s[c.PRERELEASEIDENTIFIERLOOSE]="(?:"+s[c.NUMERICIDENTIFIERLOOSE]+"|"+s[c.NONNUMERICIDENTIFIER]+")",l("PRERELEASE"),s[c.PRERELEASE]="(?:-("+s[c.PRERELEASEIDENTIFIER]+"(?:\\."+s[c.PRERELEASEIDENTIFIER]+")*))",l("PRERELEASELOOSE"),s[c.PRERELEASELOOSE]="(?:-?("+s[c.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+s[c.PRERELEASEIDENTIFIERLOOSE]+")*))",l("BUILDIDENTIFIER"),s[c.BUILDIDENTIFIER]="[0-9A-Za-z-]+",l("BUILD"),s[c.BUILD]="(?:\\+("+s[c.BUILDIDENTIFIER]+"(?:\\."+s[c.BUILDIDENTIFIER]+")*))",l("FULL"),l("FULLPLAIN"),s[c.FULLPLAIN]="v?"+s[c.MAINVERSION]+s[c.PRERELEASE]+"?"+s[c.BUILD]+"?",s[c.FULL]="^"+s[c.FULLPLAIN]+"$",l("LOOSEPLAIN"),s[c.LOOSEPLAIN]="[v=\\s]*"+s[c.MAINVERSIONLOOSE]+s[c.PRERELEASELOOSE]+"?"+s[c.BUILD]+"?",l("LOOSE"),s[c.LOOSE]="^"+s[c.LOOSEPLAIN]+"$",l("GTLT"),s[c.GTLT]="((?:<|>)?=?)",l("XRANGEIDENTIFIERLOOSE"),s[c.XRANGEIDENTIFIERLOOSE]=s[c.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*",l("XRANGEIDENTIFIER"),s[c.XRANGEIDENTIFIER]=s[c.NUMERICIDENTIFIER]+"|x|X|\\*",l("XRANGEPLAIN"),s[c.XRANGEPLAIN]="[v=\\s]*("+s[c.XRANGEIDENTIFIER]+")(?:\\.("+s[c.XRANGEIDENTIFIER]+")(?:\\.("+s[c.XRANGEIDENTIFIER]+")(?:"+s[c.PRERELEASE]+")?"+s[c.BUILD]+"?)?)?",l("XRANGEPLAINLOOSE"),s[c.XRANGEPLAINLOOSE]="[v=\\s]*("+s[c.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+s[c.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+s[c.XRANGEIDENTIFIERLOOSE]+")(?:"+s[c.PRERELEASELOOSE]+")?"+s[c.BUILD]+"?)?)?",l("XRANGE"),s[c.XRANGE]="^"+s[c.GTLT]+"\\s*"+s[c.XRANGEPLAIN]+"$",l("XRANGELOOSE"),s[c.XRANGELOOSE]="^"+s[c.GTLT]+"\\s*"+s[c.XRANGEPLAINLOOSE]+"$",l("COERCE"),s[c.COERCE]="(^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])",l("COERCERTL"),a[c.COERCERTL]=new RegExp(s[c.COERCE],"g"),l("LONETILDE"),s[c.LONETILDE]="(?:~>?)",l("TILDETRIM"),s[c.TILDETRIM]="(\\s*)"+s[c.LONETILDE]+"\\s+",a[c.TILDETRIM]=new RegExp(s[c.TILDETRIM],"g");l("TILDE"),s[c.TILDE]="^"+s[c.LONETILDE]+s[c.XRANGEPLAIN]+"$",l("TILDELOOSE"),s[c.TILDELOOSE]="^"+s[c.LONETILDE]+s[c.XRANGEPLAINLOOSE]+"$",l("LONECARET"),s[c.LONECARET]="(?:\\^)",l("CARETTRIM"),s[c.CARETTRIM]="(\\s*)"+s[c.LONECARET]+"\\s+",a[c.CARETTRIM]=new RegExp(s[c.CARETTRIM],"g");l("CARET"),s[c.CARET]="^"+s[c.LONECARET]+s[c.XRANGEPLAIN]+"$",l("CARETLOOSE"),s[c.CARETLOOSE]="^"+s[c.LONECARET]+s[c.XRANGEPLAINLOOSE]+"$",l("COMPARATORLOOSE"),s[c.COMPARATORLOOSE]="^"+s[c.GTLT]+"\\s*("+s[c.LOOSEPLAIN]+")$|^$",l("COMPARATOR"),s[c.COMPARATOR]="^"+s[c.GTLT]+"\\s*("+s[c.FULLPLAIN]+")$|^$",l("COMPARATORTRIM"),s[c.COMPARATORTRIM]="(\\s*)"+s[c.GTLT]+"\\s*("+s[c.LOOSEPLAIN]+"|"+s[c.XRANGEPLAIN]+")",a[c.COMPARATORTRIM]=new RegExp(s[c.COMPARATORTRIM],"g");l("HYPHENRANGE"),s[c.HYPHENRANGE]="^\\s*("+s[c.XRANGEPLAIN]+")\\s+-\\s+("+s[c.XRANGEPLAIN]+")\\s*$",l("HYPHENRANGELOOSE"),s[c.HYPHENRANGELOOSE]="^\\s*("+s[c.XRANGEPLAINLOOSE]+")\\s+-\\s+("+s[c.XRANGEPLAINLOOSE]+")\\s*$",l("STAR"),s[c.STAR]="(<|>)?=?\\s*\\*";for(var d=0;d<u;d++)r(d,s[d]),a[d]||(a[d]=new RegExp(s[d]));function p(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof f)return e;if("string"!=typeof e)return null;if(e.length>i)return null;if(!(t.loose?a[c.LOOSE]:a[c.FULL]).test(e))return null;try{return new f(e,t)}catch(e){return null}}function f(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof f){if(e.loose===t.loose)return e;e=e.version}else if("string"!=typeof e)throw new TypeError("Invalid Version: "+e);if(e.length>i)throw new TypeError("version is longer than "+i+" characters");if(!(this instanceof f))return new f(e,t);r("SemVer",e,t),this.options=t,this.loose=!!t.loose;var n=e.trim().match(t.loose?a[c.LOOSE]:a[c.FULL]);if(!n)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>o||this.major<0)throw new TypeError("Invalid major version");if(this.minor>o||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>o||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t<o)return t}return e})):this.prerelease=[],this.build=n[5]?n[5].split("."):[],this.format()}t.parse=p,t.valid=function(e,t){var n=p(e,t);return n?n.version:null},t.clean=function(e,t){var n=p(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null},t.SemVer=f,f.prototype.format=function(){return this.version=this.major+"."+this.minor+"."+this.patch,this.prerelease.length&&(this.version+="-"+this.prerelease.join(".")),this.version},f.prototype.toString=function(){return this.version},f.prototype.compare=function(e){return r("SemVer.compare",this.version,this.options,e),e instanceof f||(e=new f(e,this.options)),this.compareMain(e)||this.comparePre(e)},f.prototype.compareMain=function(e){return e instanceof f||(e=new f(e,this.options)),v(this.major,e.major)||v(this.minor,e.minor)||v(this.patch,e.patch)},f.prototype.comparePre=function(e){if(e instanceof f||(e=new f(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;var t=0;do{var n=this.prerelease[t],i=e.prerelease[t];if(r("prerelease compare",t,n,i),void 0===n&&void 0===i)return 0;if(void 0===i)return 1;if(void 0===n)return-1;if(n!==i)return v(n,i)}while(++t)},f.prototype.compareBuild=function(e){e instanceof f||(e=new f(e,this.options));var t=0;do{var n=this.build[t],i=e.build[t];if(r("prerelease compare",t,n,i),void 0===n&&void 0===i)return 0;if(void 0===i)return 1;if(void 0===n)return-1;if(n!==i)return v(n,i)}while(++t)},f.prototype.inc=function(e,t){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t),this.inc("pre",t);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t),this.inc("pre",t);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":if(0===this.prerelease.length)this.prerelease=[0];else{for(var n=this.prerelease.length;--n>=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);-1===n&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error("invalid increment argument: "+e)}return this.format(),this.raw=this.version,this},t.inc=function(e,t,n,r){"string"==typeof n&&(r=n,n=void 0);try{return new f(e,n).inc(t,r).version}catch(e){return null}},t.diff=function(e,t){if(b(e,t))return null;var n=p(e),r=p(t),i="";if(n.prerelease.length||r.prerelease.length){i="pre";var o="prerelease"}for(var a in n)if(("major"===a||"minor"===a||"patch"===a)&&n[a]!==r[a])return i+a;return o},t.compareIdentifiers=v;var h=/^[0-9]+$/;function v(e,t){var n=h.test(e),r=h.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e<t?-1:1}function m(e,t,n){return new f(e,n).compare(new f(t,n))}function g(e,t,n){return m(e,t,n)>0}function y(e,t,n){return m(e,t,n)<0}function b(e,t,n){return 0===m(e,t,n)}function S(e,t,n){return 0!==m(e,t,n)}function w(e,t,n){return m(e,t,n)>=0}function C(e,t,n){return m(e,t,n)<=0}function _(e,t,n,r){switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return b(e,n,r);case"!=":return S(e,n,r);case">":return g(e,n,r);case">=":return w(e,n,r);case"<":return y(e,n,r);case"<=":return C(e,n,r);default:throw new TypeError("Invalid operator: "+t)}}function E(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof E){if(e.loose===!!t.loose)return e;e=e.value}if(!(this instanceof E))return new E(e,t);r("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===T?this.value="":this.value=this.operator+this.semver.version,r("comp",this)}t.rcompareIdentifiers=function(e,t){return v(t,e)},t.major=function(e,t){return new f(e,t).major},t.minor=function(e,t){return new f(e,t).minor},t.patch=function(e,t){return new f(e,t).patch},t.compare=m,t.compareLoose=function(e,t){return m(e,t,!0)},t.compareBuild=function(e,t,n){var r=new f(e,n),i=new f(t,n);return r.compare(i)||r.compareBuild(i)},t.rcompare=function(e,t,n){return m(t,e,n)},t.sort=function(e,n){return e.sort((function(e,r){return t.compareBuild(e,r,n)}))},t.rsort=function(e,n){return e.sort((function(e,r){return t.compareBuild(r,e,n)}))},t.gt=g,t.lt=y,t.eq=b,t.neq=S,t.gte=w,t.lte=C,t.cmp=_,t.Comparator=E;var T={};function R(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof R)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new R(e.raw,t);if(e instanceof E)return new R(e.value,t);if(!(this instanceof R))return new R(e,t);if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e,this.set=e.split(/\s*\|\|\s*/).map((function(e){return this.parseRange(e.trim())}),this).filter((function(e){return e.length})),!this.set.length)throw new TypeError("Invalid SemVer Range: "+e);this.format()}function O(e,t){for(var n=!0,r=e.slice(),i=r.pop();n&&r.length;)n=r.every((function(e){return i.intersects(e,t)})),i=r.pop();return n}function k(e){return!e||"x"===e.toLowerCase()||"*"===e}function P(e,t,n,r,i,o,a,s,c,u,l,d,p){return((t=k(n)?"":k(r)?">="+n+".0.0":k(i)?">="+n+"."+r+".0":">="+t)+" "+(s=k(c)?"":k(u)?"<"+(+c+1)+".0.0":k(l)?"<"+c+"."+(+u+1)+".0":d?"<="+c+"."+u+"."+l+"-"+d:"<="+s)).trim()}function x(e,t,n){for(var i=0;i<e.length;i++)if(!e[i].test(t))return!1;if(t.prerelease.length&&!n.includePrerelease){for(i=0;i<e.length;i++)if(r(e[i].semver),e[i].semver!==T&&e[i].semver.prerelease.length>0){var o=e[i].semver;if(o.major===t.major&&o.minor===t.minor&&o.patch===t.patch)return!0}return!1}return!0}function I(e,t,n){try{t=new R(t,n)}catch(e){return!1}return t.test(e)}function A(e,t,n,r){var i,o,a,s,c;switch(e=new f(e,r),t=new R(t,r),n){case">":i=g,o=C,a=y,s=">",c=">=";break;case"<":i=y,o=w,a=g,s="<",c="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(I(e,t,r))return!1;for(var u=0;u<t.set.length;++u){var l=t.set[u],d=null,p=null;if(l.forEach((function(e){e.semver===T&&(e=new E(">=0.0.0")),d=d||e,p=p||e,i(e.semver,d.semver,r)?d=e:a(e.semver,p.semver,r)&&(p=e)})),d.operator===s||d.operator===c)return!1;if((!p.operator||p.operator===s)&&o(e,p.semver))return!1;if(p.operator===c&&a(e,p.semver))return!1}return!0}E.prototype.parse=function(e){var t=this.options.loose?a[c.COMPARATORLOOSE]:a[c.COMPARATOR],n=e.match(t);if(!n)throw new TypeError("Invalid comparator: "+e);this.operator=void 0!==n[1]?n[1]:"","="===this.operator&&(this.operator=""),n[2]?this.semver=new f(n[2],this.options.loose):this.semver=T},E.prototype.toString=function(){return this.value},E.prototype.test=function(e){if(r("Comparator.test",e,this.options.loose),this.semver===T||e===T)return!0;if("string"==typeof e)try{e=new f(e,this.options)}catch(e){return!1}return _(e,this.operator,this.semver,this.options)},E.prototype.intersects=function(e,t){if(!(e instanceof E))throw new TypeError("a Comparator is required");var n;if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return""===this.value||(n=new R(e.value,t),I(this.value,n,t));if(""===e.operator)return""===e.value||(n=new R(this.value,t),I(e.semver,n,t));var r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),i=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),o=this.semver.version===e.semver.version,a=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),s=_(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),c=_(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||i||o&&a||s||c},t.Range=R,R.prototype.format=function(){return this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim(),this.range},R.prototype.toString=function(){return this.range},R.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var n=t?a[c.HYPHENRANGELOOSE]:a[c.HYPHENRANGE];e=e.replace(n,P),r("hyphen replace",e),e=e.replace(a[c.COMPARATORTRIM],"$1$2$3"),r("comparator trim",e,a[c.COMPARATORTRIM]),e=(e=(e=e.replace(a[c.TILDETRIM],"$1~")).replace(a[c.CARETTRIM],"$1^")).split(/\s+/).join(" ");var i=t?a[c.COMPARATORLOOSE]:a[c.COMPARATOR],o=e.split(" ").map((function(e){return function(e,t){return r("comp",e,t),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){r("caret",e,t);var n=t.loose?a[c.CARETLOOSE]:a[c.CARET];return e.replace(n,(function(t,n,i,o,a){var s;return r("caret",e,t,n,i,o,a),k(n)?s="":k(i)?s=">="+n+".0.0 <"+(+n+1)+".0.0":k(o)?s="0"===n?">="+n+"."+i+".0 <"+n+"."+(+i+1)+".0":">="+n+"."+i+".0 <"+(+n+1)+".0.0":a?(r("replaceCaret pr",a),s="0"===n?"0"===i?">="+n+"."+i+"."+o+"-"+a+" <"+n+"."+i+"."+(+o+1):">="+n+"."+i+"."+o+"-"+a+" <"+n+"."+(+i+1)+".0":">="+n+"."+i+"."+o+"-"+a+" <"+(+n+1)+".0.0"):(r("no pr"),s="0"===n?"0"===i?">="+n+"."+i+"."+o+" <"+n+"."+i+"."+(+o+1):">="+n+"."+i+"."+o+" <"+n+"."+(+i+1)+".0":">="+n+"."+i+"."+o+" <"+(+n+1)+".0.0"),r("caret return",s),s}))}(e,t)})).join(" ")}(e,t),r("caret",e),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){var n=t.loose?a[c.TILDELOOSE]:a[c.TILDE];return e.replace(n,(function(t,n,i,o,a){var s;return r("tilde",e,t,n,i,o,a),k(n)?s="":k(i)?s=">="+n+".0.0 <"+(+n+1)+".0.0":k(o)?s=">="+n+"."+i+".0 <"+n+"."+(+i+1)+".0":a?(r("replaceTilde pr",a),s=">="+n+"."+i+"."+o+"-"+a+" <"+n+"."+(+i+1)+".0"):s=">="+n+"."+i+"."+o+" <"+n+"."+(+i+1)+".0",r("tilde return",s),s}))}(e,t)})).join(" ")}(e,t),r("tildes",e),e=function(e,t){return r("replaceXRanges",e,t),e.split(/\s+/).map((function(e){return function(e,t){e=e.trim();var n=t.loose?a[c.XRANGELOOSE]:a[c.XRANGE];return e.replace(n,(function(n,i,o,a,s,c){r("xRange",e,n,i,o,a,s,c);var u=k(o),l=u||k(a),d=l||k(s),p=d;return"="===i&&p&&(i=""),c=t.includePrerelease?"-0":"",u?n=">"===i||"<"===i?"<0.0.0-0":"*":i&&p?(l&&(a=0),s=0,">"===i?(i=">=",l?(o=+o+1,a=0,s=0):(a=+a+1,s=0)):"<="===i&&(i="<",l?o=+o+1:a=+a+1),n=i+o+"."+a+"."+s+c):l?n=">="+o+".0.0"+c+" <"+(+o+1)+".0.0"+c:d&&(n=">="+o+"."+a+".0"+c+" <"+o+"."+(+a+1)+".0"+c),r("xRange return",n),n}))}(e,t)})).join(" ")}(e,t),r("xrange",e),e=function(e,t){return r("replaceStars",e,t),e.trim().replace(a[c.STAR],"")}(e,t),r("stars",e),e}(e,this.options)}),this).join(" ").split(/\s+/);return this.options.loose&&(o=o.filter((function(e){return!!e.match(i)}))),o=o.map((function(e){return new E(e,this.options)}),this)},R.prototype.intersects=function(e,t){if(!(e instanceof R))throw new TypeError("a Range is required");return this.set.some((function(n){return O(n,t)&&e.set.some((function(e){return O(e,t)&&n.every((function(n){return e.every((function(e){return n.intersects(e,t)}))}))}))}))},t.toComparators=function(e,t){return new R(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))},R.prototype.test=function(e){if(!e)return!1;if("string"==typeof e)try{e=new f(e,this.options)}catch(e){return!1}for(var t=0;t<this.set.length;t++)if(x(this.set[t],e,this.options))return!0;return!1},t.satisfies=I,t.maxSatisfying=function(e,t,n){var r=null,i=null;try{var o=new R(t,n)}catch(e){return null}return e.forEach((function(e){o.test(e)&&(r&&-1!==i.compare(e)||(i=new f(r=e,n)))})),r},t.minSatisfying=function(e,t,n){var r=null,i=null;try{var o=new R(t,n)}catch(e){return null}return e.forEach((function(e){o.test(e)&&(r&&1!==i.compare(e)||(i=new f(r=e,n)))})),r},t.minVersion=function(e,t){e=new R(e,t);var n=new f("0.0.0");if(e.test(n))return n;if(n=new f("0.0.0-0"),e.test(n))return n;n=null;for(var r=0;r<e.set.length;++r){e.set[r].forEach((function(e){var t=new f(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":n&&!g(n,t)||(n=t);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}))}if(n&&e.test(n))return n;return null},t.validRange=function(e,t){try{return new R(e,t).range||"*"}catch(e){return null}},t.ltr=function(e,t,n){return A(e,t,"<",n)},t.gtr=function(e,t,n){return A(e,t,">",n)},t.outside=A,t.prerelease=function(e,t){var n=p(e,t);return n&&n.prerelease.length?n.prerelease:null},t.intersects=function(e,t,n){return e=new R(e,n),t=new R(t,n),e.intersects(t)},t.coerce=function(e,t){if(e instanceof f)return e;"number"==typeof e&&(e=String(e));if("string"!=typeof e)return null;var n=null;if((t=t||{}).rtl){for(var r;(r=a[c.COERCERTL].exec(e))&&(!n||n.index+n[0].length!==e.length);)n&&r.index+r[0].length===n.index+n[0].length||(n=r),a[c.COERCERTL].lastIndex=r.index+r[1].length+r[2].length;a[c.COERCERTL].lastIndex=-1}else n=e.match(a[c.COERCE]);if(null===n)return null;return p(n[2]+"."+(n[3]||"0")+"."+(n[4]||"0"),t)}}).call(this,n(49))},function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}n(256),n(269),n(164),n(278),n(289),n(291),n(293),n(296),Object.defineProperty(t,"__esModule",{value:!0}),t.SimpleBus=void 0;var i="1.1.2",o=function(){function e(){var t,n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t=this,n="handlers",r=new Map,n in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r}var t,n,o;return t=e,(n=[{key:"getVersion",value:function(){return i}},{key:"subscribe",value:function(e,t){this.handlers.set(e,(this.handlers.get(e)||[]).concat(t))}},{key:"unsubscribe",value:function(e,t){this.handlers.set(e,(this.handlers.get(e)||[]).filter((function(e){return e!=t})))}},{key:"emit",value:function(e,t){(this.handlers.get(e)||[]).forEach((function(e){try{e(t)}catch(e){console.error("could not invoke event listener",e)}}))}}])&&r(t.prototype,n),o&&r(t,o),e}();t.SimpleBus=o},function(e,t,n){"use strict";var r=n(59),i=n(17),o=n(157),a=n(24),s=n(95),c=n(65),u=n(266),l=n(158),d=n(160),p=n(11),f=n(161),h=p("isConcatSpreadable"),v=f>=51||!i((function(){var e=[];return e[h]=!1,e.concat()[0]!==e})),m=d("concat"),g=function(e){if(!a(e))return!1;var t=e[h];return void 0!==t?!!t:o(e)};r({target:"Array",proto:!0,forced:!v||!m},{concat:function(e){var t,n,r,i,o,a=s(this),d=l(a,0),p=0;for(t=-1,r=arguments.length;t<r;t++)if(o=-1===t?a:arguments[t],g(o)){if(p+(i=c(o.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(n=0;n<i;n++,p++)n in o&&u(d,p,o[n])}else{if(p>=9007199254740991)throw TypeError("Maximum allowed index exceeded");u(d,p++,o)}return d.length=p,d}})},function(e,t,n){"use strict";var r={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,o=i&&!r.call({1:2},1);t.f=o?function(e){var t=i(this,e);return!!t&&t.enumerable}:r},function(e,t,n){var r=n(10),i=n(152),o=r.WeakMap;e.exports="function"==typeof o&&/native code/.test(i(o))},function(e,t,n){var r=n(22),i=n(260),o=n(148),a=n(27);e.exports=function(e,t){for(var n=i(t),s=a.f,c=o.f,u=0;u<n.length;u++){var l=n[u];r(e,l)||s(e,l,c(t,l))}}},function(e,t,n){var r=n(64),i=n(262),o=n(265),a=n(32);e.exports=r("Reflect","ownKeys")||function(e){var t=i.f(a(e)),n=o.f;return n?t.concat(n(e)):t}},function(e,t,n){var r=n(10);e.exports=r},function(e,t,n){var r=n(155),i=n(94).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},function(e,t,n){var r=n(61),i=n(65),o=n(264),a=function(e){return function(t,n,a){var s,c=r(t),u=i(c.length),l=o(a,u);if(e&&n!=n){for(;u>l;)if((s=c[l++])!=s)return!0}else for(;u>l;l++)if((e||l in c)&&c[l]===n)return e||l||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},function(e,t,n){var r=n(93),i=Math.max,o=Math.min;e.exports=function(e,t){var n=r(e);return n<0?i(n+t,0):o(n,t)}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){"use strict";var r=n(88),i=n(27),o=n(60);e.exports=function(e,t,n){var a=r(t);a in e?i.f(e,a,o(0,n)):e[a]=n}},function(e,t,n){var r=n(159);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(e,t,n){var r=n(64);e.exports=r("navigator","userAgent")||""},function(e,t,n){"use strict";var r=n(59),i=n(162).filter,o=n(160),a=n(163),s=o("filter"),c=a("filter");r({target:"Array",proto:!0,forced:!s||!c},{filter:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},function(e,t,n){var r=n(11),i=n(97),o=n(27),a=r("unscopables"),s=Array.prototype;null==s[a]&&o.f(s,a,{configurable:!0,value:i(null)}),e.exports=function(e){s[a][e]=!0}},function(e,t,n){var r=n(29),i=n(27),o=n(32),a=n(273);e.exports=r?Object.defineProperties:function(e,t){o(e);for(var n,r=a(t),s=r.length,c=0;s>c;)i.f(e,n=r[c++],t[n]);return e}},function(e,t,n){var r=n(155),i=n(94);e.exports=Object.keys||function(e){return r(e,i)}},function(e,t,n){var r=n(64);e.exports=r("document","documentElement")},function(e,t,n){"use strict";var r=n(165).IteratorPrototype,i=n(97),o=n(60),a=n(99),s=n(44),c=function(){return this};e.exports=function(e,t,n){var u=t+" Iterator";return e.prototype=i(r,{next:o(1,n)}),a(e,u,!1,!0),s[u]=c,e}},function(e,t,n){var r=n(17);e.exports=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},function(e,t,n){var r=n(24);e.exports=function(e){if(!r(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},function(e,t,n){"use strict";var r=n(279),i=n(286);e.exports=r("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),i)},function(e,t,n){"use strict";var r=n(59),i=n(10),o=n(156),a=n(43),s=n(168),c=n(169),u=n(171),l=n(24),d=n(17),p=n(284),f=n(99),h=n(285);e.exports=function(e,t,n){var v=-1!==e.indexOf("Map"),m=-1!==e.indexOf("Weak"),g=v?"set":"add",y=i[e],b=y&&y.prototype,S=y,w={},C=function(e){var t=b[e];a(b,e,"add"==e?function(e){return t.call(this,0===e?0:e),this}:"delete"==e?function(e){return!(m&&!l(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return m&&!l(e)?void 0:t.call(this,0===e?0:e)}:"has"==e?function(e){return!(m&&!l(e))&&t.call(this,0===e?0:e)}:function(e,n){return t.call(this,0===e?0:e,n),this})};if(o(e,"function"!=typeof y||!(m||b.forEach&&!d((function(){(new y).entries().next()})))))S=n.getConstructor(t,e,v,g),s.REQUIRED=!0;else if(o(e,!0)){var _=new S,E=_[g](m?{}:-0,1)!=_,T=d((function(){_.has(1)})),R=p((function(e){new y(e)})),O=!m&&d((function(){for(var e=new y,t=5;t--;)e[g](t,t);return!e.has(-0)}));R||((S=t((function(t,n){u(t,S,e);var r=h(new y,t,S);return null!=n&&c(n,r[g],r,v),r}))).prototype=b,b.constructor=S),(T||O)&&(C("delete"),C("has"),v&&C("get")),(O||E)&&C(g),m&&b.clear&&delete b.clear}return w[e]=S,r({global:!0,forced:S!=y},w),f(S,e),m||n.setStrong(S,e,v),S}},function(e,t,n){var r=n(17);e.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},function(e,t,n){var r=n(11),i=n(44),o=r("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(i.Array===e||a[o]===e)}},function(e,t,n){var r=n(170),i=n(44),o=n(11)("iterator");e.exports=function(e){if(null!=e)return e[o]||e["@@iterator"]||i[r(e)]}},function(e,t,n){var r=n(32);e.exports=function(e,t,n,i){try{return i?t(r(n)[0],n[1]):t(n)}catch(t){var o=e.return;throw void 0!==o&&r(o.call(e)),t}}},function(e,t,n){var r=n(11)("iterator"),i=!1;try{var o=0,a={next:function(){return{done:!!o++}},return:function(){i=!0}};a[r]=function(){return this},Array.from(a,(function(){throw 2}))}catch(e){}e.exports=function(e,t){if(!t&&!i)return!1;var n=!1;try{var o={};o[r]=function(){return{next:function(){return{done:n=!0}}}},e(o)}catch(e){}return n}},function(e,t,n){var r=n(24),i=n(167);e.exports=function(e,t,n){var o,a;return i&&"function"==typeof(o=t.constructor)&&o!==n&&r(a=o.prototype)&&a!==n.prototype&&i(e,a),e}},function(e,t,n){"use strict";var r=n(27).f,i=n(97),o=n(287),a=n(96),s=n(171),c=n(169),u=n(98),l=n(288),d=n(29),p=n(168).fastKey,f=n(62),h=f.set,v=f.getterFor;e.exports={getConstructor:function(e,t,n,u){var l=e((function(e,r){s(e,l,t),h(e,{type:t,index:i(null),first:void 0,last:void 0,size:0}),d||(e.size=0),null!=r&&c(r,e[u],e,n)})),f=v(t),m=function(e,t,n){var r,i,o=f(e),a=g(e,t);return a?a.value=n:(o.last=a={index:i=p(t,!0),key:t,value:n,previous:r=o.last,next:void 0,removed:!1},o.first||(o.first=a),r&&(r.next=a),d?o.size++:e.size++,"F"!==i&&(o.index[i]=a)),e},g=function(e,t){var n,r=f(e),i=p(t);if("F"!==i)return r.index[i];for(n=r.first;n;n=n.next)if(n.key==t)return n};return o(l.prototype,{clear:function(){for(var e=f(this),t=e.index,n=e.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete t[n.index],n=n.next;e.first=e.last=void 0,d?e.size=0:this.size=0},delete:function(e){var t=f(this),n=g(this,e);if(n){var r=n.next,i=n.previous;delete t.index[n.index],n.removed=!0,i&&(i.next=r),r&&(r.previous=i),t.first==n&&(t.first=r),t.last==n&&(t.last=i),d?t.size--:this.size--}return!!n},forEach:function(e){for(var t,n=f(this),r=a(e,arguments.length>1?arguments[1]:void 0,3);t=t?t.next:n.first;)for(r(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!g(this,e)}}),o(l.prototype,n?{get:function(e){var t=g(this,e);return t&&t.value},set:function(e,t){return m(this,0===e?0:e,t)}}:{add:function(e){return m(this,e=0===e?0:e,e)}}),d&&r(l.prototype,"size",{get:function(){return f(this).size}}),l},setStrong:function(e,t,n){var r=t+" Iterator",i=v(t),o=v(r);u(e,t,(function(e,t){h(this,{type:r,target:e,state:i(e),kind:t,last:void 0})}),(function(){for(var e=o(this),t=e.kind,n=e.last;n&&n.removed;)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?"keys"==t?{value:n.key,done:!1}:"values"==t?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(e.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),l(t)}}},function(e,t,n){var r=n(43);e.exports=function(e,t,n){for(var i in t)r(e,i,t[i],n);return e}},function(e,t,n){"use strict";var r=n(64),i=n(27),o=n(11),a=n(29),s=o("species");e.exports=function(e){var t=r(e),n=i.f;a&&t&&!t[s]&&n(t,s,{configurable:!0,get:function(){return this}})}},function(e,t,n){var r=n(100),i=n(43),o=n(290);r||i(Object.prototype,"toString",o,{unsafe:!0})},function(e,t,n){"use strict";var r=n(100),i=n(170);e.exports=r?{}.toString:function(){return"[object "+i(this)+"]"}},function(e,t,n){"use strict";var r=n(292).charAt,i=n(62),o=n(98),a=i.set,s=i.getterFor("String Iterator");o(String,"String",(function(e){a(this,{type:"String Iterator",string:String(e),index:0})}),(function(){var e,t=s(this),n=t.string,i=t.index;return i>=n.length?{value:void 0,done:!0}:(e=r(n,i),t.index+=e.length,{value:e,done:!1})}))},function(e,t,n){var r=n(93),i=n(87),o=function(e){return function(t,n){var o,a,s=String(i(t)),c=r(n),u=s.length;return c<0||c>=u?e?"":void 0:(o=s.charCodeAt(c))<55296||o>56319||c+1===u||(a=s.charCodeAt(c+1))<56320||a>57343?e?s.charAt(c):o:e?s.slice(c,c+2):a-56320+(o-55296<<10)+65536}};e.exports={codeAt:o(!1),charAt:o(!0)}},function(e,t,n){var r=n(10),i=n(172),o=n(294),a=n(30);for(var s in i){var c=r[s],u=c&&c.prototype;if(u&&u.forEach!==o)try{a(u,"forEach",o)}catch(e){u.forEach=o}}},function(e,t,n){"use strict";var r=n(162).forEach,i=n(295),o=n(163),a=i("forEach"),s=o("forEach");e.exports=a&&s?[].forEach:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}},function(e,t,n){"use strict";var r=n(17);e.exports=function(e,t){var n=[][e];return!!n&&r((function(){n.call(null,t||function(){throw 1},1)}))}},function(e,t,n){var r=n(10),i=n(172),o=n(164),a=n(30),s=n(11),c=s("iterator"),u=s("toStringTag"),l=o.values;for(var d in i){var p=r[d],f=p&&p.prototype;if(f){if(f[c]!==l)try{a(f,c,l)}catch(e){f[c]=l}if(f[u]||a(f,u,d),i[d])for(var h in o)if(f[h]!==o[h])try{a(f,h,o[h])}catch(e){f[h]=o[h]}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getCurrentUser=function(){if(null===i)return null;return{uid:i,displayName:a}};var r=document.getElementsByTagName("head")[0],i=r?r.getAttribute("data-user"):null,o=document.getElementsByTagName("head")[0],a=o?o.getAttribute("data-user-displayname"):null},,,,,,function(e,t,n){var r,i,o,a,s,c,u,l;e.exports=(l=n(321),i=(r=l).lib,o=i.WordArray,a=i.Hasher,s=r.algo,c=[],u=s.SHA1=a.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],i=n[1],o=n[2],a=n[3],s=n[4],u=0;u<80;u++){if(u<16)c[u]=0|e[t+u];else{var l=c[u-3]^c[u-8]^c[u-14]^c[u-16];c[u]=l<<1|l>>>31}var d=(r<<5|r>>>27)+s+c[u];d+=u<20?1518500249+(i&o|~i&a):u<40?1859775393+(i^o^a):u<60?(i&o|i&a|o&a)-1894007588:(i^o^a)-899497514,s=a,a=o,o=i<<30|i>>>2,i=r,r=d}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+o|0,n[3]=n[3]+a|0,n[4]=n[4]+s|0},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;return t[r>>>5]|=128<<24-r%32,t[14+(r+64>>>9<<4)]=Math.floor(n/4294967296),t[15+(r+64>>>9<<4)]=n,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=a.clone.call(this);return e._hash=this._hash.clone(),e}}),r.SHA1=a._createHelper(u),r.HmacSHA1=a._createHmacHelper(u),l.SHA1)},,,,,,,,,,,,,,,,,,function(e,t,n){var r;e.exports=(r=r||function(e,t){var n=Object.create||function(){function e(){}return function(t){var n;return e.prototype=t,n=new e,e.prototype=null,n}}(),r={},i=r.lib={},o=i.Base={extend:function(e){var t=n(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},a=i.WordArray=o.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:4*e.length},toString:function(e){return(e||c).stringify(this)},concat:function(e){var t=this.words,n=e.words,r=this.sigBytes,i=e.sigBytes;if(this.clamp(),r%4)for(var o=0;o<i;o++){var a=n[o>>>2]>>>24-o%4*8&255;t[r+o>>>2]|=a<<24-(r+o)%4*8}else for(o=0;o<i;o+=4)t[r+o>>>2]=n[o>>>2];return this.sigBytes+=i,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=o.clone.call(this);return e.words=this.words.slice(0),e},random:function(t){for(var n,r=[],i=function(t){t=t;var n=987654321,r=4294967295;return function(){var i=((n=36969*(65535&n)+(n>>16)&r)<<16)+(t=18e3*(65535&t)+(t>>16)&r)&r;return i/=4294967296,(i+=.5)*(e.random()>.5?1:-1)}},o=0;o<t;o+=4){var s=i(4294967296*(n||e.random()));n=987654071*s(),r.push(4294967296*s()|0)}return new a.init(r,t)}}),s=r.enc={},c=s.Hex={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i<n;i++){var o=t[i>>>2]>>>24-i%4*8&255;r.push((o>>>4).toString(16)),r.push((15&o).toString(16))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r+=2)n[r>>>3]|=parseInt(e.substr(r,2),16)<<24-r%8*4;return new a.init(n,t/2)}},u=s.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i<n;i++){var o=t[i>>>2]>>>24-i%4*8&255;r.push(String.fromCharCode(o))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r++)n[r>>>2]|=(255&e.charCodeAt(r))<<24-r%4*8;return new a.init(n,t)}},l=s.Utf8={stringify:function(e){try{return decodeURIComponent(escape(u.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return u.parse(unescape(encodeURIComponent(e)))}},d=i.BufferedBlockAlgorithm=o.extend({reset:function(){this._data=new a.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=l.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n=this._data,r=n.words,i=n.sigBytes,o=this.blockSize,s=i/(4*o),c=(s=t?e.ceil(s):e.max((0|s)-this._minBufferSize,0))*o,u=e.min(4*c,i);if(c){for(var l=0;l<c;l+=o)this._doProcessBlock(r,l);var d=r.splice(0,c);n.sigBytes-=u}return new a.init(d,u)},clone:function(){var e=o.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0}),p=(i.Hasher=d.extend({cfg:o.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){d.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,n){return new e.init(n).finalize(t)}},_createHmacHelper:function(e){return function(t,n){return new p.HMAC.init(e,n).finalize(t)}}}),r.algo={});return r}(Math),r)},,,function(e,t,n){"use strict";var r={generateIdentifier:function(){return Math.random().toString(36).substr(2,10)}};r.localCName=r.generateIdentifier(),r.splitLines=function(e){return e.trim().split("\n").map((function(e){return e.trim()}))},r.splitSections=function(e){return e.split("\nm=").map((function(e,t){return(t>0?"m="+e:e).trim()+"\r\n"}))},r.getDescription=function(e){var t=r.splitSections(e);return t&&t[0]},r.getMediaSections=function(e){var t=r.splitSections(e);return t.shift(),t},r.matchPrefix=function(e,t){return r.splitLines(e).filter((function(e){return 0===e.indexOf(t)}))},r.parseCandidate=function(e){for(var t,n={foundation:(t=0===e.indexOf("a=candidate:")?e.substring(12).split(" "):e.substring(10).split(" "))[0],component:parseInt(t[1],10),protocol:t[2].toLowerCase(),priority:parseInt(t[3],10),ip:t[4],address:t[4],port:parseInt(t[5],10),type:t[7]},r=8;r<t.length;r+=2)switch(t[r]){case"raddr":n.relatedAddress=t[r+1];break;case"rport":n.relatedPort=parseInt(t[r+1],10);break;case"tcptype":n.tcpType=t[r+1];break;case"ufrag":n.ufrag=t[r+1],n.usernameFragment=t[r+1];break;default:n[t[r]]=t[r+1]}return n},r.writeCandidate=function(e){var t=[];t.push(e.foundation),t.push(e.component),t.push(e.protocol.toUpperCase()),t.push(e.priority),t.push(e.address||e.ip),t.push(e.port);var n=e.type;return t.push("typ"),t.push(n),"host"!==n&&e.relatedAddress&&e.relatedPort&&(t.push("raddr"),t.push(e.relatedAddress),t.push("rport"),t.push(e.relatedPort)),e.tcpType&&"tcp"===e.protocol.toLowerCase()&&(t.push("tcptype"),t.push(e.tcpType)),(e.usernameFragment||e.ufrag)&&(t.push("ufrag"),t.push(e.usernameFragment||e.ufrag)),"candidate:"+t.join(" ")},r.parseIceOptions=function(e){return e.substr(14).split(" ")},r.parseRtpMap=function(e){var t=e.substr(9).split(" "),n={payloadType:parseInt(t.shift(),10)};return t=t[0].split("/"),n.name=t[0],n.clockRate=parseInt(t[1],10),n.channels=3===t.length?parseInt(t[2],10):1,n.numChannels=n.channels,n},r.writeRtpMap=function(e){var t=e.payloadType;void 0!==e.preferredPayloadType&&(t=e.preferredPayloadType);var n=e.channels||e.numChannels||1;return"a=rtpmap:"+t+" "+e.name+"/"+e.clockRate+(1!==n?"/"+n:"")+"\r\n"},r.parseExtmap=function(e){var t=e.substr(9).split(" ");return{id:parseInt(t[0],10),direction:t[0].indexOf("/")>0?t[0].split("/")[1]:"sendrecv",uri:t[1]}},r.writeExtmap=function(e){return"a=extmap:"+(e.id||e.preferredId)+(e.direction&&"sendrecv"!==e.direction?"/"+e.direction:"")+" "+e.uri+"\r\n"},r.parseFmtp=function(e){for(var t,n={},r=e.substr(e.indexOf(" ")+1).split(";"),i=0;i<r.length;i++)n[(t=r[i].trim().split("="))[0].trim()]=t[1];return n},r.writeFmtp=function(e){var t="",n=e.payloadType;if(void 0!==e.preferredPayloadType&&(n=e.preferredPayloadType),e.parameters&&Object.keys(e.parameters).length){var r=[];Object.keys(e.parameters).forEach((function(t){e.parameters[t]?r.push(t+"="+e.parameters[t]):r.push(t)})),t+="a=fmtp:"+n+" "+r.join(";")+"\r\n"}return t},r.parseRtcpFb=function(e){var t=e.substr(e.indexOf(" ")+1).split(" ");return{type:t.shift(),parameter:t.join(" ")}},r.writeRtcpFb=function(e){var t="",n=e.payloadType;return void 0!==e.preferredPayloadType&&(n=e.preferredPayloadType),e.rtcpFeedback&&e.rtcpFeedback.length&&e.rtcpFeedback.forEach((function(e){t+="a=rtcp-fb:"+n+" "+e.type+(e.parameter&&e.parameter.length?" "+e.parameter:"")+"\r\n"})),t},r.parseSsrcMedia=function(e){var t=e.indexOf(" "),n={ssrc:parseInt(e.substr(7,t-7),10)},r=e.indexOf(":",t);return r>-1?(n.attribute=e.substr(t+1,r-t-1),n.value=e.substr(r+1)):n.attribute=e.substr(t+1),n},r.parseSsrcGroup=function(e){var t=e.substr(13).split(" ");return{semantics:t.shift(),ssrcs:t.map((function(e){return parseInt(e,10)}))}},r.getMid=function(e){var t=r.matchPrefix(e,"a=mid:")[0];if(t)return t.substr(6)},r.parseFingerprint=function(e){var t=e.substr(14).split(" ");return{algorithm:t[0].toLowerCase(),value:t[1]}},r.getDtlsParameters=function(e,t){return{role:"auto",fingerprints:r.matchPrefix(e+t,"a=fingerprint:").map(r.parseFingerprint)}},r.writeDtlsParameters=function(e,t){var n="a=setup:"+t+"\r\n";return e.fingerprints.forEach((function(e){n+="a=fingerprint:"+e.algorithm+" "+e.value+"\r\n"})),n},r.getIceParameters=function(e,t){var n=r.splitLines(e);return{usernameFragment:(n=n.concat(r.splitLines(t))).filter((function(e){return 0===e.indexOf("a=ice-ufrag:")}))[0].substr(12),password:n.filter((function(e){return 0===e.indexOf("a=ice-pwd:")}))[0].substr(10)}},r.writeIceParameters=function(e){return"a=ice-ufrag:"+e.usernameFragment+"\r\na=ice-pwd:"+e.password+"\r\n"},r.parseRtpParameters=function(e){for(var t={codecs:[],headerExtensions:[],fecMechanisms:[],rtcp:[]},n=r.splitLines(e)[0].split(" "),i=3;i<n.length;i++){var o=n[i],a=r.matchPrefix(e,"a=rtpmap:"+o+" ")[0];if(a){var s=r.parseRtpMap(a),c=r.matchPrefix(e,"a=fmtp:"+o+" ");switch(s.parameters=c.length?r.parseFmtp(c[0]):{},s.rtcpFeedback=r.matchPrefix(e,"a=rtcp-fb:"+o+" ").map(r.parseRtcpFb),t.codecs.push(s),s.name.toUpperCase()){case"RED":case"ULPFEC":t.fecMechanisms.push(s.name.toUpperCase())}}}return r.matchPrefix(e,"a=extmap:").forEach((function(e){t.headerExtensions.push(r.parseExtmap(e))})),t},r.writeRtpDescription=function(e,t){var n="";n+="m="+e+" ",n+=t.codecs.length>0?"9":"0",n+=" UDP/TLS/RTP/SAVPF ",n+=t.codecs.map((function(e){return void 0!==e.preferredPayloadType?e.preferredPayloadType:e.payloadType})).join(" ")+"\r\n",n+="c=IN IP4 0.0.0.0\r\n",n+="a=rtcp:9 IN IP4 0.0.0.0\r\n",t.codecs.forEach((function(e){n+=r.writeRtpMap(e),n+=r.writeFmtp(e),n+=r.writeRtcpFb(e)}));var i=0;return t.codecs.forEach((function(e){e.maxptime>i&&(i=e.maxptime)})),i>0&&(n+="a=maxptime:"+i+"\r\n"),n+="a=rtcp-mux\r\n",t.headerExtensions&&t.headerExtensions.forEach((function(e){n+=r.writeExtmap(e)})),n},r.parseRtpEncodingParameters=function(e){var t,n=[],i=r.parseRtpParameters(e),o=-1!==i.fecMechanisms.indexOf("RED"),a=-1!==i.fecMechanisms.indexOf("ULPFEC"),s=r.matchPrefix(e,"a=ssrc:").map((function(e){return r.parseSsrcMedia(e)})).filter((function(e){return"cname"===e.attribute})),c=s.length>0&&s[0].ssrc,u=r.matchPrefix(e,"a=ssrc-group:FID").map((function(e){return e.substr(17).split(" ").map((function(e){return parseInt(e,10)}))}));u.length>0&&u[0].length>1&&u[0][0]===c&&(t=u[0][1]),i.codecs.forEach((function(e){if("RTX"===e.name.toUpperCase()&&e.parameters.apt){var r={ssrc:c,codecPayloadType:parseInt(e.parameters.apt,10)};c&&t&&(r.rtx={ssrc:t}),n.push(r),o&&((r=JSON.parse(JSON.stringify(r))).fec={ssrc:c,mechanism:a?"red+ulpfec":"red"},n.push(r))}})),0===n.length&&c&&n.push({ssrc:c});var l=r.matchPrefix(e,"b=");return l.length&&(l=0===l[0].indexOf("b=TIAS:")?parseInt(l[0].substr(7),10):0===l[0].indexOf("b=AS:")?1e3*parseInt(l[0].substr(5),10)*.95-16e3:void 0,n.forEach((function(e){e.maxBitrate=l}))),n},r.parseRtcpParameters=function(e){var t={},n=r.matchPrefix(e,"a=ssrc:").map((function(e){return r.parseSsrcMedia(e)})).filter((function(e){return"cname"===e.attribute}))[0];n&&(t.cname=n.value,t.ssrc=n.ssrc);var i=r.matchPrefix(e,"a=rtcp-rsize");t.reducedSize=i.length>0,t.compound=0===i.length;var o=r.matchPrefix(e,"a=rtcp-mux");return t.mux=o.length>0,t},r.parseMsid=function(e){var t,n=r.matchPrefix(e,"a=msid:");if(1===n.length)return{stream:(t=n[0].substr(7).split(" "))[0],track:t[1]};var i=r.matchPrefix(e,"a=ssrc:").map((function(e){return r.parseSsrcMedia(e)})).filter((function(e){return"msid"===e.attribute}));return i.length>0?{stream:(t=i[0].value.split(" "))[0],track:t[1]}:void 0},r.parseSctpDescription=function(e){var t,n=r.parseMLine(e),i=r.matchPrefix(e,"a=max-message-size:");i.length>0&&(t=parseInt(i[0].substr(19),10)),isNaN(t)&&(t=65536);var o=r.matchPrefix(e,"a=sctp-port:");if(o.length>0)return{port:parseInt(o[0].substr(12),10),protocol:n.fmt,maxMessageSize:t};if(r.matchPrefix(e,"a=sctpmap:").length>0){var a=r.matchPrefix(e,"a=sctpmap:")[0].substr(10).split(" ");return{port:parseInt(a[0],10),protocol:a[1],maxMessageSize:t}}},r.writeSctpDescription=function(e,t){var n=[];return n="DTLS/SCTP"!==e.protocol?["m="+e.kind+" 9 "+e.protocol+" "+t.protocol+"\r\n","c=IN IP4 0.0.0.0\r\n","a=sctp-port:"+t.port+"\r\n"]:["m="+e.kind+" 9 "+e.protocol+" "+t.port+"\r\n","c=IN IP4 0.0.0.0\r\n","a=sctpmap:"+t.port+" "+t.protocol+" 65535\r\n"],void 0!==t.maxMessageSize&&n.push("a=max-message-size:"+t.maxMessageSize+"\r\n"),n.join("")},r.generateSessionId=function(){return Math.random().toString().substr(2,21)},r.writeSessionBoilerplate=function(e,t,n){var i=void 0!==t?t:2;return"v=0\r\no="+(n||"thisisadapterortc")+" "+(e||r.generateSessionId())+" "+i+" IN IP4 127.0.0.1\r\ns=-\r\nt=0 0\r\n"},r.writeMediaSection=function(e,t,n,i){var o=r.writeRtpDescription(e.kind,t);if(o+=r.writeIceParameters(e.iceGatherer.getLocalParameters()),o+=r.writeDtlsParameters(e.dtlsTransport.getLocalParameters(),"offer"===n?"actpass":"active"),o+="a=mid:"+e.mid+"\r\n",e.direction?o+="a="+e.direction+"\r\n":e.rtpSender&&e.rtpReceiver?o+="a=sendrecv\r\n":e.rtpSender?o+="a=sendonly\r\n":e.rtpReceiver?o+="a=recvonly\r\n":o+="a=inactive\r\n",e.rtpSender){var a="msid:"+i.id+" "+e.rtpSender.track.id+"\r\n";o+="a="+a,o+="a=ssrc:"+e.sendEncodingParameters[0].ssrc+" "+a,e.sendEncodingParameters[0].rtx&&(o+="a=ssrc:"+e.sendEncodingParameters[0].rtx.ssrc+" "+a,o+="a=ssrc-group:FID "+e.sendEncodingParameters[0].ssrc+" "+e.sendEncodingParameters[0].rtx.ssrc+"\r\n")}return o+="a=ssrc:"+e.sendEncodingParameters[0].ssrc+" cname:"+r.localCName+"\r\n",e.rtpSender&&e.sendEncodingParameters[0].rtx&&(o+="a=ssrc:"+e.sendEncodingParameters[0].rtx.ssrc+" cname:"+r.localCName+"\r\n"),o},r.getDirection=function(e,t){for(var n=r.splitLines(e),i=0;i<n.length;i++)switch(n[i]){case"a=sendrecv":case"a=sendonly":case"a=recvonly":case"a=inactive":return n[i].substr(2)}return t?r.getDirection(t):"sendrecv"},r.getKind=function(e){return r.splitLines(e)[0].split(" ")[0].substr(2)},r.isRejected=function(e){return"0"===e.split(" ",2)[1]},r.parseMLine=function(e){var t=r.splitLines(e)[0].substr(2).split(" ");return{kind:t[0],port:parseInt(t[1],10),protocol:t[2],fmt:t.slice(3).join(" ")}},r.parseOLine=function(e){var t=r.matchPrefix(e,"o=")[0].substr(2).split(" ");return{username:t[0],sessionId:t[1],sessionVersion:parseInt(t[2],10),netType:t[3],addressType:t[4],address:t[5]}},r.isValidSDP=function(e){if("string"!=typeof e||0===e.length)return!1;for(var t=r.splitLines(e),n=0;n<t.length;n++)if(t[n].length<2||"="!==t[n].charAt(1))return!1;return!0},e.exports=r},function(e,t,n){const r=n(470),i=n(183),o=n(211),a=n(79),s=n(212);function c(e){const t=this,n=e||{},c=this.config={socketio:{},connection:null,debug:!1,localVideoEl:"",remoteVideosEl:"",enableDataChannels:!0,autoRequestMedia:!1,autoRemoveVideos:!0,adjustPeerVolume:!1,peerVolumeWhenSpeaking:.25,media:{video:!0,audio:!0},receiveMedia:{offerToReceiveAudio:1,offerToReceiveVideo:1},localVideo:{autoplay:!0,mirror:!0,muted:!0}};let u,l;for(u in this.logger=e.debug?e.logger||console:e.logger||s,n)n.hasOwnProperty(u)&&(this.config[u]=n[u]);const d=window.navigator.mediaDevices&&window.navigator.mediaDevices.getDisplayMedia||window.navigator.webkitGetUserMedia||window.navigator.userAgent.match("Firefox");if(o.supportScreenSharing="https:"===window.location.protocol&&d,this.capabilities=o,i.call(this),null===this.config.connection)throw new Error("no connection object given in the configuration");l=this.connection=this.config.connection,l.on("connect",(function(){t.emit("connectionReady",l.getSessionId()),t.sessionReady=!0,t.testReadiness()})),l.on("message",(function(e){const n=t.webrtc.getPeers(e.from,e.roomType);let r;"offer"===e.type?(n.length&&n.forEach((function(t){t.sid===e.sid&&(r=t)})),r||(r=t.webrtc.createPeer({id:e.from,sid:e.sid,type:e.roomType,enableDataChannels:t.config.enableDataChannels&&"screen"!==e.roomType,sharemyscreen:"screen"===e.roomType&&!e.broadcaster,broadcaster:"screen"!==e.roomType||e.broadcaster?null:t.connection.getSessionId(),sendVideoIfAvailable:t.connection.getSendVideoIfAvailable()}),t.emit("createdPeer",r)),r.handleMessage(e)):n.length&&n.forEach((function(t){e.sid?t.sid===e.sid&&t.handleMessage(e):t.handleMessage(e)}))})),l.on("remove",(function(e){e.id!==t.connection.getSessionId()&&t.webrtc.removePeers(e.id,e.type)})),e.logger=this.logger,e.debug=!1,this.webrtc=new r(e),["mute","unmute","pauseVideo","resumeVideo","pause","resume","sendToAll","sendDirectlyToAll","getPeers","createPeer","removePeers"].forEach((function(e){t[e]=t.webrtc[e].bind(t.webrtc)})),this.webrtc.on("*",(function(){t.emit.apply(t,arguments)})),c.debug&&this.on("*",this.logger.log.bind(this.logger,"SimpleWebRTC event:")),this.webrtc.on("localStream",(function(){t.testReadiness()})),this.webrtc.on("message",(function(e){t.connection.emit("message",e)})),this.webrtc.on("peerStreamAdded",this.handlePeerStreamAdded.bind(this)),this.webrtc.on("peerStreamRemoved",this.handlePeerStreamRemoved.bind(this)),this.config.adjustPeerVolume&&(this.webrtc.on("speaking",this.setVolumeForAll.bind(this,this.config.peerVolumeWhenSpeaking)),this.webrtc.on("stoppedSpeaking",this.setVolumeForAll.bind(this,1))),l.on("stunservers",(function(e){t.webrtc.config.peerConnectionConfig.iceServers=e,t.emit("stunservers",e)})),l.on("turnservers",(function(e){t.webrtc.config.peerConnectionConfig.iceServers=t.webrtc.config.peerConnectionConfig.iceServers.concat(e),t.emit("turnservers",e)})),this.webrtc.on("iceFailed",(function(){})),this.webrtc.on("connectivityError",(function(){})),this.webrtc.on("audioOn",(function(){t.webrtc.sendToAll("unmute",{name:"audio"})})),this.webrtc.on("audioOff",(function(){t.webrtc.sendToAll("mute",{name:"audio"})})),this.webrtc.on("videoOn",(function(){t.webrtc.sendToAll("unmute",{name:"video"})})),this.webrtc.on("videoOff",(function(){t.webrtc.sendToAll("mute",{name:"video"})})),this.webrtc.on("localScreen",(function(e){const n=document.createElement("video"),r=t.getRemoteVideoContainer();n.oncontextmenu=function(){return!1},n.id="localScreen",a(e,n),r&&r.appendChild(n),t.emit("localScreenAdded",n),t.connection.emit("shareScreen")})),this.webrtc.on("localScreenStopped",(function(){t.stopScreenShare()}))}c.prototype=Object.create(i.prototype,{constructor:{value:c}}),c.prototype.leaveCall=function(){if(this.roomName){for(;this.webrtc.peers.length;)this.webrtc.peers[0].end();this.getLocalScreen()&&this.stopScreenShare(),this.emit("leftRoom",this.roomName),this.stopLocalVideo(),this.roomName=void 0}},c.prototype.disconnect=function(){this.connection.disconnect(),delete this.connection},c.prototype.handlePeerStreamAdded=function(e){const t=this,n=this.getRemoteVideoContainer(),r=a(e.stream,null,{audio:!0}),i=a(e.stream);i.muted=!0,"scaleX(1)"===i.style.transform&&(i.style.transform=""),e.audioEl=r,e.videoEl=i,r.id=this.getDomId(e)+"-audio",i.id=this.getDomId(e),n&&(n.appendChild(r),n.appendChild(i)),this.emit("videoAdded",i,r,e),window.setTimeout((function(){t.webrtc.isAudioEnabled()||e.send("mute",{name:"audio"}),t.webrtc.isVideoEnabled()||e.send("mute",{name:"video"})}),250)},c.prototype.handlePeerStreamRemoved=function(e){const t=this.getRemoteVideoContainer(),n=e.audioEl,r=e.videoEl;this.config.autoRemoveVideos&&t&&n&&t.removeChild(n),this.config.autoRemoveVideos&&t&&r&&t.removeChild(r),r&&this.emit("videoRemoved",r,e)},c.prototype.getDomId=function(e){return[e.id,e.type,e.broadcaster?"broadcasting":"incoming"].join("_")},c.prototype.setVolumeForAll=function(e){this.webrtc.peers.forEach((function(t){t.audioEl&&(t.audioEl.volume=e)}))},c.prototype.joinCall=function(e){this.config.autoRequestMedia&&this.startLocalVideo(),this.roomName=e,this.emit("joinedRoom",e)},c.prototype.getEl=function(e){return"string"==typeof e?document.getElementById(e):e},c.prototype.startLocalVideo=function(){const e=this;this.webrtc.start(this.config.media,(function(t,n){if(t)e.emit("localMediaError",t);else{e.emit("localMediaStarted",e.config.media);const t=e.getLocalVideoContainer();t&&a(n,t,e.config.localVideo)}}))},c.prototype.stopLocalVideo=function(){this.webrtc.stop()},c.prototype.getLocalVideoContainer=function(){const e=this.getEl(this.config.localVideoEl);if(e&&"VIDEO"===e.tagName)return e.oncontextmenu=function(){return!1},e;if(e){const t=document.createElement("video");return t.oncontextmenu=function(){return!1},e.appendChild(t),t}},c.prototype.getRemoteVideoContainer=function(){return this.getEl(this.config.remoteVideosEl)},c.prototype.shareScreen=function(e,t){this.webrtc.startScreenShare(e,t)},c.prototype.getLocalScreen=function(){return this.webrtc.localScreen},c.prototype.stopScreenShare=function(){this.connection.emit("unshareScreen");const e=document.getElementById("localScreen"),t=this.getRemoteVideoContainer();this.config.autoRemoveVideos&&t&&e&&t.removeChild(e),e&&this.emit("videoRemoved",e),this.getLocalScreen()&&this.webrtc.stopScreenShare(),this.webrtc.peers.forEach((function(e){"screen"===e.type&&e.sharemyscreen&&e.send("unshareScreen"),e.broadcaster&&e.end()}))},c.prototype.testReadiness=function(){const e=this;this.sessionReady&&(this.config.media.video||this.config.media.audio?this.webrtc.localStreams.length>0&&e.emit("readyToCall",e.connection.getSessionId()):e.emit("readyToCall",e.connection.getSessionId()))},c.prototype.createRoom=function(e,t){this.roomName=e,2===arguments.length?this.connection.emit("create",e,t):this.connection.emit("create",e)},e.exports=c},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){const r=n(210),i=n(211),o=n(212),a=n(473),s=n(476);function c(e){const t=this,n=e||{};let r;for(r in this.config={debug:!1,peerConnectionConfig:{iceServers:[]},receiveMedia:{offerToReceiveAudio:1,offerToReceiveVideo:1},enableDataChannels:!0},this.logger=e.debug?e.logger||console:e.logger||o,n)n.hasOwnProperty(r)&&(this.config[r]=n[r]);i.support||this.logger.error("Your browser doesn't seem to support WebRTC"),this.peers=[],a.call(this,this.config),this.on("speaking",(function(){t.hardMuted||t.peers.forEach((function(e){if(e.enableDataChannels){const t=e.getDataChannel("hark");if("open"!==t.readyState)return;t.send(JSON.stringify({type:"speaking"}))}}))})),this.on("stoppedSpeaking",(function(){t.hardMuted||t.peers.forEach((function(e){if(e.enableDataChannels){const t=e.getDataChannel("hark");if("open"!==t.readyState)return;t.send(JSON.stringify({type:"stoppedSpeaking"}))}}))})),this.on("unshareScreen",(function(e){t.getPeers(e.from,"screen").forEach((function(e){e.sharemyscreen||e.end()}))})),this.config.debug&&this.on("*",(function(e,n,r){let i;i=t.config.logger===o?console:t.logger,i.log("event:",e,n,r)}))}r.inherits(c,a),c.prototype.createPeer=function(e){e.parent=this;const t=new s(e);return this.peers.push(t),t},c.prototype.removePeers=function(e,t){this.getPeers(e,t).forEach((function(e){e.end()}))},c.prototype.getPeers=function(e,t){return this.peers.filter((function(n){return!(e&&n.id!==e||t&&n.type!==t)}))},c.prototype.sendToAll=function(e,t){this.peers.forEach((function(n){n.send(e,t)}))},c.prototype.sendDirectlyToAll=function(e,t,n){this.peers.forEach((function(r){r.enableDataChannels&&r.sendDirectly(e,t,n)}))},e.exports=c},function(e,t){e.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},function(e,t,n){const r=n(210),i=n(474),o=n(475),a=n(183),s=n(212);function c(e){a.call(this);const t=this.config={detectSpeakingEvents:!1,audioFallback:!1,media:{audio:!0,video:!0},harkOptions:null,logger:s};let n;for(n in e)e.hasOwnProperty(n)&&(this.config[n]=e[n]);this.logger=t.logger,this._log=this.logger.log.bind(this.logger,"LocalMedia:"),this._logerror=this.logger.error.bind(this.logger,"LocalMedia:"),this.localStreams=[],this._audioMonitorStreams=[],this.localScreens=[],navigator.mediaDevices&&navigator.mediaDevices.getUserMedia||this._logerror("Your browser does not support local media capture."),this._audioMonitors=[],this.on("localScreenStopped",this._stopAudioMonitor.bind(this))}r.inherits(c,a);c.prototype.start=function(e,t){const n=this,r=e||this.config.media;if(!navigator||!navigator.mediaDevices||!navigator.mediaDevices.getUserMedia){const e=new Error("MediaStreamError");return e.name="NotSupportedError",t?t(e,null):void 0}this.emit("localStreamRequested",r),navigator.mediaDevices.getUserMedia(r).then((function(e){if(r.video&&0===e.getVideoTracks().length)return r.video=!1,void n.start(r,t);const i=function(e){const t=new MediaStream;return e.getTracks().forEach((function(e){const n=e.clone();t.addTrack(n),e.linkedTracks||(e.linkedTracks=[]),e.linkedTracks.push(n),e.addEventListener("ended",(function(){n.stop()}))})),t}(e);return r.audio&&n.config.detectSpeakingEvents&&n._setupAudioMonitor(i,n.config.harkOptions),n.localStreams.push(e),n._audioMonitorStreams.push(i),e.getTracks().forEach((function(t){t.addEventListener("ended",(function(){(function(e){let t=!0;return e.getTracks().forEach((function(e){t="ended"===e.readyState&&t})),t})(e)&&n._removeStream(e)}))})),n.emit("localStream",r,e),t?t(null,e):void 0})).catch((function(e){return n.config.audioFallback&&"NotFoundError"===e.name&&!1!==r.video?(r.video=!1,void n.start(r,t)):(n.emit("localStreamRequestFailed",r),t?t(e,null):void 0)}))},c.prototype.stop=function(e){this.stopStream(e),this.stopScreenShare(e)},c.prototype.stopStream=function(e){const t=this;if(e){this.localStreams.indexOf(e)>-1&&(e.getTracks().forEach((function(e){e.stop(),e.linkedTracks&&e.linkedTracks.forEach((function(e){e.stop()}))})),this._removeStream(e))}else this.localStreams.forEach((function(e){e.getTracks().forEach((function(e){e.stop(),e.linkedTracks&&e.linkedTracks.forEach((function(e){e.stop()}))})),t._removeStream(e)}))},c.prototype.startScreenShare=function(e,t,n){const r=this;this.emit("localScreenRequested"),"function"!=typeof t||n||(n=t,t=null),o(e,t,(function(e,t){if(e?r.emit("localScreenRequestFailed"):(r.localScreens.push(t),t.getTracks().forEach((function(e){e.addEventListener("ended",(function(){let e=!0;t.getTracks().forEach((function(t){e="ended"===t.readyState&&e})),e&&r._removeStream(t)}))})),r.emit("localScreen",t)),n)return n(e,t)}))},c.prototype.stopScreenShare=function(e){const t=this;if(e){this.localScreens.indexOf(e)>-1&&(e.getTracks().forEach((function(e){e.stop()})),this._removeStream(e))}else this.localScreens.forEach((function(e){e.getTracks().forEach((function(e){e.stop()})),t._removeStream(e)}))},c.prototype.mute=function(){this._setAudioEnabled(!1),this.emit("audioOff")},c.prototype.unmute=function(){this._setAudioEnabled(!0),this.emit("audioOn")},c.prototype.pauseVideo=function(){this._videoEnabled(!1),this.emit("videoOff")},c.prototype.resumeVideo=function(){this._videoEnabled(!0),this.emit("videoOn")},c.prototype.pause=function(){this.mute(),this.pauseVideo()},c.prototype.resume=function(){this.unmute(),this.resumeVideo()},c.prototype._setAudioEnabled=function(e){this._audioEnabled=e,this.localStreams.forEach((function(t){t.getAudioTracks().forEach((function(t){t.enabled=!!e}))}))},c.prototype._videoEnabled=function(e){this.localStreams.forEach((function(t){t.getVideoTracks().forEach((function(t){t.enabled=!!e}))}))},c.prototype.isAudioEnabled=function(){let e=!0,t=!1;return this.localStreams.forEach((function(n){const r=n.getAudioTracks();r.length>0&&(t=!0,r.forEach((function(t){e=e&&t.enabled})))})),!!t&&e},c.prototype.isVideoEnabled=function(){let e=!0,t=!1;return this.localStreams.forEach((function(n){const r=n.getVideoTracks();r.length>0&&(t=!0,r.forEach((function(t){e=e&&t.enabled})))})),!!t&&e},c.prototype._removeStream=function(e){let t=this.localStreams.indexOf(e);t>-1?(this.localStreams.splice(t,1),this._stopAudioMonitor(this._audioMonitorStreams[t]),this._audioMonitorStreams.splice(t,1),this.emit("localStreamStopped",e)):(t=this.localScreens.indexOf(e),t>-1&&(this.localScreens.splice(t,1),this.emit("localScreenStopped",e)))},c.prototype._setupAudioMonitor=function(e,t){this._log("Setup audio");const n=i(e,t),r=this;let o;n.on("speaking",(function(){r._speaking=!0,r._audioEnabled?r.emit("speaking"):r.emit("speakingWhileMuted")})),n.on("stopped_speaking",(function(){o&&clearTimeout(o),o=setTimeout((function(){r._speaking=!1,r._audioEnabled?r.emit("stoppedSpeaking"):r.emit("stoppedSpeakingWhileMuted")}),1e3)})),r.on("audioOn",(function(){r._speaking&&(r.emit("stoppedSpeakingWhileMuted"),r.emit("speaking"))})),r.on("audioOff",(function(){r._speaking&&(r.emit("stoppedSpeaking"),r.emit("speakingWhileMuted"))})),n.on("volume_change",(function(e,t){r.emit("volumeChange",e,t)})),this._audioMonitors.push({audio:n,stream:e})},c.prototype._stopAudioMonitor=function(e){let t=-1;this._audioMonitors.forEach((function(n,r){n.stream===e&&(t=r)})),t>-1&&(this._audioMonitors[t].audio.stop(),this._audioMonitors.splice(t,1))},Object.defineProperty(c.prototype,"localScreen",{get:function(){return this.localScreens.length>0?this.localScreens[0]:null}}),e.exports=c},function(e,t,n){var r,i=n(183);"undefined"!=typeof window&&(r=window.AudioContext||window.webkitAudioContext);var o=null;e.exports=function(e,t){var n=new i;if(!r)return n;var a,s,c,u=(t=t||{}).smoothing||.1,l=t.interval||50,d=t.threshold,p=t.play,f=t.history||10,h=!0;o=t.audioContext||o||new r,(c=o.createAnalyser()).fftSize=512,c.smoothingTimeConstant=u,s=new Float32Array(c.frequencyBinCount),e.jquery&&(e=e[0]),e instanceof HTMLAudioElement||e instanceof HTMLVideoElement?(a=o.createMediaElementSource(e),void 0===p&&(p=!0),d=d||-50):(a=o.createMediaStreamSource(e),d=d||-50),a.connect(c),p&&c.connect(o.destination),n.speaking=!1,n.suspend=function(){return o.suspend()},n.resume=function(){return o.resume()},Object.defineProperty(n,"state",{get:function(){return o.state}}),o.onstatechange=function(){n.emit("state_change",o.state)},n.setThreshold=function(e){d=e},n.setInterval=function(e){l=e},n.stop=function(){h=!1,n.emit("volume_change",-100,d),n.speaking&&(n.speaking=!1,n.emit("stopped_speaking")),c.disconnect(),a.disconnect()},n.speakingHistory=[];for(var v=0;v<f;v++)n.speakingHistory.push(0);var m=function(){setTimeout((function(){if(h){var e=function(e,t){var n=-1/0;e.getFloatFrequencyData(t);for(var r=4,i=t.length;r<i;r++)t[r]>n&&t[r]<0&&(n=t[r]);return n}(c,s);n.emit("volume_change",e,d);var t=0;if(e>d&&!n.speaking){for(var r=n.speakingHistory.length-3;r<n.speakingHistory.length;r++)t+=n.speakingHistory[r];t>=2&&(n.speaking=!0,n.emit("speaking"))}else if(e<d&&n.speaking){for(r=0;r<n.speakingHistory.length;r++)t+=n.speakingHistory[r];0==t&&(n.speaking=!1,n.emit("stopped_speaking"))}n.speakingHistory.shift(),n.speakingHistory.push(0+(e>d)),m()}}),l)};return m(),n}},function(e,t){const n=function(e,t){if(!window.navigator||!window.navigator.mediaDevices||!window.navigator.mediaDevices.getUserMedia){const e=new Error("MediaStreamError");return e.name="NotSupportedError",void(t&&t(e,null))}window.navigator.mediaDevices.getUserMedia(e).then((function(e){t(null,e)})).catch((function(e){t(e,null)}))},r={};e.exports=function(e,t,i){const o=3===arguments.length,a=o?i:t;let s;if("undefined"==typeof window||"http:"===window.location.protocol)return s=new Error("NavigatorUserMediaError"),s.name="HTTPS_REQUIRED",a(s);if(navigator.mediaDevices&&navigator.mediaDevices.getDisplayMedia)navigator.mediaDevices.getDisplayMedia({video:!0}).then((function(e){a(null,e)})).catch((function(e){a(e,null)}));else if(navigator.webkitGetUserMedia){const e=parseInt(window.navigator.userAgent.match(/Chrome\/(\d+)\./)[1],10);let i=33;const c=e<71&&!window.chrome.webstore;if(window.navigator.userAgent.match("Linux")&&(i=35),sessionStorage.getScreenMediaJSExtensionId)chrome.runtime.sendMessage(sessionStorage.getScreenMediaJSExtensionId,{type:"getScreen",id:1},null,(function(e){if(e&&""!==e.sourceId)(t=o&&t||{audio:!1,video:{mandatory:{chromeMediaSource:"desktop",maxWidth:window.screen.width,maxHeight:window.screen.height,maxFrameRate:3}}}).video.mandatory.chromeMediaSourceId=e.sourceId,n(t,a);else{const e=new Error("NavigatorUserMediaError");e.name="PERMISSION_DENIED",a(e)}}));else if(window.cefGetScreenMedia)window.cefGetScreenMedia((function(e){if(e)(t=o&&t||{audio:!1,video:{mandatory:{chromeMediaSource:"desktop",maxWidth:window.screen.width,maxHeight:window.screen.height,maxFrameRate:3},optional:[{googLeakyBucket:!0},{googTemporalLayeredScreencast:!0}]}}).video.mandatory.chromeMediaSourceId=e,n(t,a);else{const e=new Error("cefGetScreenMediaError");e.name="CEF_GETSCREENMEDIA_CANCELED",a(e)}}));else if(c||e>=26&&e<=i)t=o&&t||{video:{mandatory:{googLeakyBucket:!0,maxWidth:window.screen.width,maxHeight:window.screen.height,maxFrameRate:3,chromeMediaSource:"screen"}}},n(t,a);else{const e=window.setTimeout((function(){return s=new Error("NavigatorUserMediaError"),s.name="EXTENSION_UNAVAILABLE",a(s)}),1e3);r[e]=[a,o?t:null],window.postMessage({type:"getScreen",id:e},"*")}}else if(window.navigator.userAgent.match("Firefox")){if(!(parseInt(window.navigator.userAgent.match(/Firefox\/(.*)/)[1],10)>=52))return s=new Error("NavigatorUserMediaError"),s.name="FF52_REQUIRED",a(s);e=e||"window",n(t=o&&t||{video:{mozMediaSource:e,mediaSource:e}},(function(e,t){if(a(e,t),e)return;let n=t.currentTime;const r=window.setInterval((function(){t||window.clearInterval(r),t.currentTime===n&&(window.clearInterval(r),t.onended&&t.onended()),n=t.currentTime}),500)}))}},"undefined"!=typeof window&&window.addEventListener("message",(function(e){if(e.origin===window.location.origin||e.isTrusted)if("gotScreen"===e.data.type&&r[e.data.id]){const t=r[e.data.id];let i=t[1];const o=t[0];if(delete r[e.data.id],""===e.data.sourceId){const e=new Error("NavigatorUserMediaError");e.name="PERMISSION_DENIED",o(e)}else i=i||{audio:!1,video:{mandatory:{chromeMediaSource:"desktop",maxWidth:window.screen.width,maxHeight:window.screen.height,maxFrameRate:3},optional:[{googLeakyBucket:!0},{googTemporalLayeredScreencast:!0}]}},i.video.mandatory.chromeMediaSourceId=e.data.sourceId,n(i,o)}else"getScreenPending"===e.data.type&&window.clearTimeout(e.data.id)}))},function(e,t,n){const r=n(210),i=n(211),o=n(183);function a(e){const t=this;o.call(this),this.id=e.id,this.parent=e.parent,this.type=e.type||"video",this.oneway=e.oneway||!1,this.sharemyscreen=e.sharemyscreen||!1,this.browserPrefix=e.prefix,this.stream=e.stream,this.sendVideoIfAvailable=void 0===e.sendVideoIfAvailable||e.sendVideoIfAvailable,this.enableDataChannels=void 0===e.enableDataChannels?this.parent.config.enableDataChannels:e.enableDataChannels,this.receiveMedia=e.receiveMedia||this.parent.config.receiveMedia,this.channels={},this.pendingDCMessages=[],this.sid=e.sid||Date.now().toString(),this.pc=new RTCPeerConnection(this.parent.config.peerConnectionConfig),this.pc.addEventListener("icecandidate",this.onIceCandidate.bind(this)),this.pc.addEventListener("endofcandidates",(function(e){t.send("endOfCandidates",e)})),this.pc.addEventListener("addstream",this.handleRemoteStreamAdded.bind(this)),this.pc.addEventListener("datachannel",this.handleDataChannelAdded.bind(this)),this.pc.addEventListener("removestream",this.handleStreamRemoved.bind(this)),this.pc.addEventListener("negotiationneeded",this.emit.bind(this,"negotiationNeeded")),this.pc.addEventListener("iceconnectionstatechange",this.emit.bind(this,"iceConnectionStateChange")),this.pc.addEventListener("iceconnectionstatechange",(function(){switch(t.pc.iceConnectionState){case"failed":"offer"===t.pc.localDescription.type&&(t.parent.emit("iceFailed",t),t.send("connectivityError"))}})),this.pc.addEventListener("signalingstatechange",this.emit.bind(this,"signalingStateChange")),this.logger=this.parent.logger,"screen"===e.type?this.parent.localScreen&&this.sharemyscreen&&(this.logger.log("adding local screen stream to peer connection"),this.pc.addStream(this.parent.localScreen),this.broadcaster=e.broadcaster):this.parent.localStreams.forEach((function(e){e.getTracks().forEach((function(n){("video"!==n.kind||t.sendVideoIfAvailable)&&t.pc.addTrack(n,e)}))})),this.on("*",(function(){t.parent.emit.apply(t.parent,arguments)}))}r.inherits(a,o),a.prototype.offer=function(e){this.pc.createOffer(e).then(function(e){this.pc.setLocalDescription(e).then(function(){this.parent.config.nick&&(e={type:e.type,sdp:e.sdp,nick:this.parent.config.nick}),this.send("offer",e)}.bind(this)).catch((function(e){console.warn("setLocalDescription for offer failed: ",e)}))}.bind(this)).catch((function(e){console.warn("createOffer failed: ",e)}))},a.prototype.handleOffer=function(e){this.pc.setRemoteDescription(e).then(function(){this.answer()}.bind(this)).catch((function(e){console.warn("setRemoteDescription for offer failed: ",e)}))},a.prototype.answer=function(){this.pc.createAnswer().then(function(e){this.pc.setLocalDescription(e).then(function(){this.parent.config.nick&&(e={type:e.type,sdp:e.sdp,nick:this.parent.config.nick}),this.send("answer",e)}.bind(this)).catch((function(e){console.warn("setLocalDescription for answer failed: ",e)}))}.bind(this)).catch((function(e){console.warn("createAnswer failed: ",e)}))},a.prototype.handleAnswer=function(e){this.pc.setRemoteDescription(e).catch((function(e){console.warn("setRemoteDescription for answer failed: ",e)}))},a.prototype.handleMessage=function(e){const t=this;this.logger.log("getting",e.type,e),e.prefix&&(this.browserPrefix=e.prefix),"offer"===e.type?(this.nick||(this.nick=e.payload.nick),delete e.payload.nick,this.handleOffer(e.payload)):"answer"===e.type?(this.nick||(this.nick=e.payload.nick),delete e.payload.nick,this.handleAnswer(e.payload)):"candidate"===e.type?this.pc.addIceCandidate(e.payload.candidate):"connectivityError"===e.type?this.parent.emit("connectivityError",t):"mute"===e.type?this.parent.emit("mute",{id:e.from,name:e.payload.name}):"unmute"===e.type?this.parent.emit("unmute",{id:e.from,name:e.payload.name}):"endOfCandidates"===e.type?this.pc.addIceCandidate(""):"unshareScreen"===e.type&&(this.parent.emit("unshareScreen",{id:e.from}),this.end())},a.prototype.send=function(e,t){const n={to:this.id,sid:this.sid,broadcaster:this.broadcaster,roomType:this.type,type:e,payload:t,prefix:i.prefix};this.logger.log("sending",e,n),this.parent.emit("message",n)},a.prototype.sendDirectly=function(e,t,n){const r={type:t,payload:n};this.logger.log("sending via datachannel",e,t,r);const i=this.getDataChannel(e);return"open"!==i.readyState?(this.pendingDCMessages.hasOwnProperty(e)||(this.pendingDCMessages[e]=[]),this.pendingDCMessages[e].push(r),!1):(i.send(JSON.stringify(r)),!0)},a.prototype._observeDataChannel=function(e){const t=this;e.onclose=this.emit.bind(this,"channelClose",e),e.onerror=this.emit.bind(this,"channelError",e),e.onmessage=function(n){t.emit("channelMessage",t,e.label,JSON.parse(n.data),e,n)},e.onopen=function(){if(t.emit("channelOpen",e),t.pendingDCMessages.hasOwnProperty(e.label)){const n=t.pendingDCMessages[e.label];for(let r=0;r<n.length;r++)t.sendDirectly(e.label,n[r].type,n[r].payload);t.pendingDCMessages[e.label]=[]}}},a.prototype.getDataChannel=function(e,t){if(!i.supportDataChannel)return this.emit("error",new Error("createDataChannel not supported"));let n=this.channels[e];return t||(t={}),n||(n=this.channels[e]=this.pc.createDataChannel(e,t),this._observeDataChannel(n),n)},a.prototype.onIceCandidate=function(e){const t=e.candidate;if(!this.closed)if(t){const e=this.parent.config.peerConnectionConfig;if("moz"===i.prefix&&e&&e.iceTransports&&t.candidate&&t.candidate.candidate&&t.candidate.candidate.indexOf(e.iceTransports)<0)this.logger.log("Ignoring ice candidate not matching pcConfig iceTransports type: ",e.iceTransports);else{const e={candidate:{candidate:t.candidate,sdpMid:t.sdpMid,sdpMLineIndex:t.sdpMLineIndex}};this.send("candidate",e)}}else this.logger.log("End of candidates.")},a.prototype.start=function(){this.enableDataChannels&&this.getDataChannel("simplewebrtc"),this.offer(this.receiveMedia)},a.prototype.icerestart=function(){const e=this.receiveMedia;e.iceRestart=!0,this.offer(e)},a.prototype.end=function(){this.closed||(this.pc.close(),this.handleStreamRemoved())},a.prototype.handleRemoteStreamAdded=function(e){const t=this;this.stream?this.logger.warn("Already have a remote stream"):(this.stream=e.stream,this.stream.getTracks().forEach((function(e){e.addEventListener("ended",(function(){(function(e){let t=!0;return e.getTracks().forEach((function(e){t="ended"===e.readyState&&t})),t})(t.stream)&&t.end()}))})),this.parent.emit("peerStreamAdded",this))},a.prototype.handleStreamRemoved=function(){const e=this.parent.peers.indexOf(this);e>-1&&(this.parent.peers.splice(e,1),this.closed=!0,this.parent.emit("peerStreamRemoved",this))},a.prototype.handleDataChannelAdded=function(e){const t=e.channel;this.channels[t.label]=t,this._observeDataChannel(t)},e.exports=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=(0,n(478).adapterFactory)({window:window});t.default=r,e.exports=t.default},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.adapterFactory=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).window,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{shimChrome:!0,shimFirefox:!0,shimEdge:!0,shimSafari:!0},n=i.log,r=i.detectBrowser(e),l={browserDetails:r,commonShim:u,extractVersion:i.extractVersion,disableLog:i.disableLog,disableWarnings:i.disableWarnings};switch(r.browser){case"chrome":if(!o||!o.shimPeerConnection||!t.shimChrome)return n("Chrome shim is not included in this adapter release."),l;n("adapter.js shimming chrome."),l.browserShim=o,o.shimGetUserMedia(e),o.shimMediaStream(e),o.shimPeerConnection(e),o.shimOnTrack(e),o.shimAddTrackRemoveTrack(e),o.shimGetSendersWithDtmf(e),o.shimGetStats(e),o.shimSenderReceiverGetStats(e),o.fixNegotiationNeeded(e),u.shimRTCIceCandidate(e),u.shimConnectionState(e),u.shimMaxMessageSize(e),u.shimSendThrowTypeError(e),u.removeAllowExtmapMixed(e);break;case"firefox":if(!s||!s.shimPeerConnection||!t.shimFirefox)return n("Firefox shim is not included in this adapter release."),l;n("adapter.js shimming firefox."),l.browserShim=s,s.shimGetUserMedia(e),s.shimPeerConnection(e),s.shimOnTrack(e),s.shimRemoveStream(e),s.shimSenderGetStats(e),s.shimReceiverGetStats(e),s.shimRTCDataChannel(e),s.shimAddTransceiver(e),s.shimCreateOffer(e),s.shimCreateAnswer(e),u.shimRTCIceCandidate(e),u.shimConnectionState(e),u.shimMaxMessageSize(e),u.shimSendThrowTypeError(e);break;case"edge":if(!a||!a.shimPeerConnection||!t.shimEdge)return n("MS edge shim is not included in this adapter release."),l;n("adapter.js shimming edge."),l.browserShim=a,a.shimGetUserMedia(e),a.shimGetDisplayMedia(e),a.shimPeerConnection(e),a.shimReplaceTrack(e),u.shimMaxMessageSize(e),u.shimSendThrowTypeError(e);break;case"safari":if(!c||!t.shimSafari)return n("Safari shim is not included in this adapter release."),l;n("adapter.js shimming safari."),l.browserShim=c,c.shimRTCIceServerUrls(e),c.shimCreateOfferLegacy(e),c.shimCallbacksAPI(e),c.shimLocalStreamsAPI(e),c.shimRemoteStreamsAPI(e),c.shimTrackEventTransceiver(e),c.shimGetUserMedia(e),u.shimRTCIceCandidate(e),u.shimMaxMessageSize(e),u.shimSendThrowTypeError(e),u.removeAllowExtmapMixed(e);break;default:n("Unsupported browser!")}return l};var i=d(n(47)),o=d(n(479)),a=d(n(482)),s=d(n(487)),c=d(n(490)),u=d(n(491));function l(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},e}function d(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=l();if(t&&t.has(e))return t.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}return n.default=e,t&&t.set(e,n),n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.shimMediaStream=function(e){e.MediaStream=e.MediaStream||e.webkitMediaStream},t.shimOnTrack=function(e){if("object"!==c(e)||!e.RTCPeerConnection||"ontrack"in e.RTCPeerConnection.prototype)r.wrapPeerConnectionEvent(e,"track",(function(e){return e.transceiver||Object.defineProperty(e,"transceiver",{value:{receiver:e.receiver}}),e}));else{Object.defineProperty(e.RTCPeerConnection.prototype,"ontrack",{get:function(){return this._ontrack},set:function(e){this._ontrack&&this.removeEventListener("track",this._ontrack),this.addEventListener("track",this._ontrack=e)},enumerable:!0,configurable:!0});var t=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(){var n=this;return this._ontrackpoly||(this._ontrackpoly=function(t){t.stream.addEventListener("addtrack",(function(r){var i;i=e.RTCPeerConnection.prototype.getReceivers?n.getReceivers().find((function(e){return e.track&&e.track.id===r.track.id})):{track:r.track};var o=new Event("track");o.track=r.track,o.receiver=i,o.transceiver={receiver:i},o.streams=[t.stream],n.dispatchEvent(o)})),t.stream.getTracks().forEach((function(r){var i;i=e.RTCPeerConnection.prototype.getReceivers?n.getReceivers().find((function(e){return e.track&&e.track.id===r.id})):{track:r};var o=new Event("track");o.track=r,o.receiver=i,o.transceiver={receiver:i},o.streams=[t.stream],n.dispatchEvent(o)}))},this.addEventListener("addstream",this._ontrackpoly)),t.apply(this,arguments)}}},t.shimGetSendersWithDtmf=function(e){if("object"===c(e)&&e.RTCPeerConnection&&!("getSenders"in e.RTCPeerConnection.prototype)&&"createDTMFSender"in e.RTCPeerConnection.prototype){var t=function(e,t){return{track:t,get dtmf(){return void 0===this._dtmf&&("audio"===t.kind?this._dtmf=e.createDTMFSender(t):this._dtmf=null),this._dtmf},_pc:e}};if(!e.RTCPeerConnection.prototype.getSenders){e.RTCPeerConnection.prototype.getSenders=function(){return this._senders=this._senders||[],this._senders.slice()};var n=e.RTCPeerConnection.prototype.addTrack;e.RTCPeerConnection.prototype.addTrack=function(e,r){var i=n.apply(this,arguments);return i||(i=t(this,e),this._senders.push(i)),i};var r=e.RTCPeerConnection.prototype.removeTrack;e.RTCPeerConnection.prototype.removeTrack=function(e){r.apply(this,arguments);var t=this._senders.indexOf(e);-1!==t&&this._senders.splice(t,1)}}var i=e.RTCPeerConnection.prototype.addStream;e.RTCPeerConnection.prototype.addStream=function(e){var n=this;this._senders=this._senders||[],i.apply(this,[e]),e.getTracks().forEach((function(e){n._senders.push(t(n,e))}))};var o=e.RTCPeerConnection.prototype.removeStream;e.RTCPeerConnection.prototype.removeStream=function(e){var t=this;this._senders=this._senders||[],o.apply(this,[e]),e.getTracks().forEach((function(e){var n=t._senders.find((function(t){return t.track===e}));n&&t._senders.splice(t._senders.indexOf(n),1)}))}}else if("object"===c(e)&&e.RTCPeerConnection&&"getSenders"in e.RTCPeerConnection.prototype&&"createDTMFSender"in e.RTCPeerConnection.prototype&&e.RTCRtpSender&&!("dtmf"in e.RTCRtpSender.prototype)){var a=e.RTCPeerConnection.prototype.getSenders;e.RTCPeerConnection.prototype.getSenders=function(){var e=this,t=a.apply(this,[]);return t.forEach((function(t){return t._pc=e})),t},Object.defineProperty(e.RTCRtpSender.prototype,"dtmf",{get:function(){return void 0===this._dtmf&&("audio"===this.track.kind?this._dtmf=this._pc.createDTMFSender(this.track):this._dtmf=null),this._dtmf}})}},t.shimGetStats=function(e){if(!e.RTCPeerConnection)return;var t=e.RTCPeerConnection.prototype.getStats;e.RTCPeerConnection.prototype.getStats=function(){var e=this,n=Array.prototype.slice.call(arguments),r=n[0],i=n[1],o=n[2];if(arguments.length>0&&"function"==typeof r)return t.apply(this,arguments);if(0===t.length&&(0===arguments.length||"function"!=typeof r))return t.apply(this,[]);var a=function(e){var t={};return e.result().forEach((function(e){var n={id:e.id,timestamp:e.timestamp,type:{localcandidate:"local-candidate",remotecandidate:"remote-candidate"}[e.type]||e.type};e.names().forEach((function(t){n[t]=e.stat(t)})),t[n.id]=n})),t},s=function(e){return new Map(Object.keys(e).map((function(t){return[t,e[t]]})))};if(arguments.length>=2){var c=function(e){i(s(a(e)))};return t.apply(this,[c,r])}return new Promise((function(n,r){t.apply(e,[function(e){n(s(a(e)))},r])})).then(i,o)}},t.shimSenderReceiverGetStats=function(e){if(!("object"===c(e)&&e.RTCPeerConnection&&e.RTCRtpSender&&e.RTCRtpReceiver))return;if(!("getStats"in e.RTCRtpSender.prototype)){var t=e.RTCPeerConnection.prototype.getSenders;t&&(e.RTCPeerConnection.prototype.getSenders=function(){var e=this,n=t.apply(this,[]);return n.forEach((function(t){return t._pc=e})),n});var n=e.RTCPeerConnection.prototype.addTrack;n&&(e.RTCPeerConnection.prototype.addTrack=function(){var e=n.apply(this,arguments);return e._pc=this,e}),e.RTCRtpSender.prototype.getStats=function(){var e=this;return this._pc.getStats().then((function(t){return r.filterStats(t,e.track,!0)}))}}if(!("getStats"in e.RTCRtpReceiver.prototype)){var i=e.RTCPeerConnection.prototype.getReceivers;i&&(e.RTCPeerConnection.prototype.getReceivers=function(){var e=this,t=i.apply(this,[]);return t.forEach((function(t){return t._pc=e})),t}),r.wrapPeerConnectionEvent(e,"track",(function(e){return e.receiver._pc=e.srcElement,e})),e.RTCRtpReceiver.prototype.getStats=function(){var e=this;return this._pc.getStats().then((function(t){return r.filterStats(t,e.track,!1)}))}}if(!("getStats"in e.RTCRtpSender.prototype&&"getStats"in e.RTCRtpReceiver.prototype))return;var o=e.RTCPeerConnection.prototype.getStats;e.RTCPeerConnection.prototype.getStats=function(){if(arguments.length>0&&arguments[0]instanceof e.MediaStreamTrack){var t,n,r,i=arguments[0];return this.getSenders().forEach((function(e){e.track===i&&(t?r=!0:t=e)})),this.getReceivers().forEach((function(e){return e.track===i&&(n?r=!0:n=e),e.track===i})),r||t&&n?Promise.reject(new DOMException("There are more than one sender or receiver for the track.","InvalidAccessError")):t?t.getStats():n?n.getStats():Promise.reject(new DOMException("There is no sender or receiver for the track.","InvalidAccessError"))}return o.apply(this,arguments)}},t.shimAddTrackRemoveTrackWithNative=u,t.shimAddTrackRemoveTrack=function(e){if(!e.RTCPeerConnection)return;var t=r.detectBrowser(e);if(e.RTCPeerConnection.prototype.addTrack&&t.version>=65)return u(e);var n=e.RTCPeerConnection.prototype.getLocalStreams;e.RTCPeerConnection.prototype.getLocalStreams=function(){var e=this,t=n.apply(this);return this._reverseStreams=this._reverseStreams||{},t.map((function(t){return e._reverseStreams[t.id]}))};var i=e.RTCPeerConnection.prototype.addStream;e.RTCPeerConnection.prototype.addStream=function(t){var n=this;if(this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{},t.getTracks().forEach((function(e){if(n.getSenders().find((function(t){return t.track===e})))throw new DOMException("Track already exists.","InvalidAccessError")})),!this._reverseStreams[t.id]){var r=new e.MediaStream(t.getTracks());this._streams[t.id]=r,this._reverseStreams[r.id]=t,t=r}i.apply(this,[t])};var o=e.RTCPeerConnection.prototype.removeStream;function a(e,t){var n=t.sdp;return Object.keys(e._reverseStreams||[]).forEach((function(t){var r=e._reverseStreams[t],i=e._streams[r.id];n=n.replace(new RegExp(i.id,"g"),r.id)})),new RTCSessionDescription({type:t.type,sdp:n})}function c(e,t){var n=t.sdp;return Object.keys(e._reverseStreams||[]).forEach((function(t){var r=e._reverseStreams[t],i=e._streams[r.id];n=n.replace(new RegExp(r.id,"g"),i.id)})),new RTCSessionDescription({type:t.type,sdp:n})}e.RTCPeerConnection.prototype.removeStream=function(e){this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{},o.apply(this,[this._streams[e.id]||e]),delete this._reverseStreams[this._streams[e.id]?this._streams[e.id].id:e.id],delete this._streams[e.id]},e.RTCPeerConnection.prototype.addTrack=function(t,n){var r=this;if("closed"===this.signalingState)throw new DOMException("The RTCPeerConnection's signalingState is 'closed'.","InvalidStateError");var i=[].slice.call(arguments,1);if(1!==i.length||!i[0].getTracks().find((function(e){return e===t})))throw new DOMException("The adapter.js addTrack polyfill only supports a single  stream which is associated with the specified track.","NotSupportedError");var o=this.getSenders().find((function(e){return e.track===t}));if(o)throw new DOMException("Track already exists.","InvalidAccessError");this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{};var a=this._streams[n.id];if(a)a.addTrack(t),Promise.resolve().then((function(){r.dispatchEvent(new Event("negotiationneeded"))}));else{var s=new e.MediaStream([t]);this._streams[n.id]=s,this._reverseStreams[s.id]=n,this.addStream(s)}return this.getSenders().find((function(e){return e.track===t}))},["createOffer","createAnswer"].forEach((function(t){var n=e.RTCPeerConnection.prototype[t],r=s({},t,(function(){var e=this,t=arguments,r=arguments.length&&"function"==typeof arguments[0];return r?n.apply(this,[function(n){var r=a(e,n);t[0].apply(null,[r])},function(e){t[1]&&t[1].apply(null,e)},arguments[2]]):n.apply(this,arguments).then((function(t){return a(e,t)}))}));e.RTCPeerConnection.prototype[t]=r[t]}));var l=e.RTCPeerConnection.prototype.setLocalDescription;e.RTCPeerConnection.prototype.setLocalDescription=function(){return arguments.length&&arguments[0].type?(arguments[0]=c(this,arguments[0]),l.apply(this,arguments)):l.apply(this,arguments)};var d=Object.getOwnPropertyDescriptor(e.RTCPeerConnection.prototype,"localDescription");Object.defineProperty(e.RTCPeerConnection.prototype,"localDescription",{get:function(){var e=d.get.apply(this);return""===e.type?e:a(this,e)}}),e.RTCPeerConnection.prototype.removeTrack=function(e){var t,n=this;if("closed"===this.signalingState)throw new DOMException("The RTCPeerConnection's signalingState is 'closed'.","InvalidStateError");if(!e._pc)throw new DOMException("Argument 1 of RTCPeerConnection.removeTrack does not implement interface RTCRtpSender.","TypeError");if(!(e._pc===this))throw new DOMException("Sender was not created by this connection.","InvalidAccessError");this._streams=this._streams||{},Object.keys(this._streams).forEach((function(r){n._streams[r].getTracks().find((function(t){return e.track===t}))&&(t=n._streams[r])})),t&&(1===t.getTracks().length?this.removeStream(this._reverseStreams[t.id]):t.removeTrack(e.track),this.dispatchEvent(new Event("negotiationneeded")))}},t.shimPeerConnection=function(e){var t=r.detectBrowser(e);!e.RTCPeerConnection&&e.webkitRTCPeerConnection&&(e.RTCPeerConnection=e.webkitRTCPeerConnection);if(!e.RTCPeerConnection)return;t.version<53&&["setLocalDescription","setRemoteDescription","addIceCandidate"].forEach((function(t){var n=e.RTCPeerConnection.prototype[t],r=s({},t,(function(){return arguments[0]=new("addIceCandidate"===t?e.RTCIceCandidate:e.RTCSessionDescription)(arguments[0]),n.apply(this,arguments)}));e.RTCPeerConnection.prototype[t]=r[t]}));var n=e.RTCPeerConnection.prototype.addIceCandidate;e.RTCPeerConnection.prototype.addIceCandidate=function(){return arguments[0]?t.version<78&&arguments[0]&&""===arguments[0].candidate?Promise.resolve():n.apply(this,arguments):(arguments[1]&&arguments[1].apply(null),Promise.resolve())}},t.fixNegotiationNeeded=function(e){r.wrapPeerConnectionEvent(e,"negotiationneeded",(function(e){if("stable"===e.target.signalingState)return e}))},Object.defineProperty(t,"shimGetUserMedia",{enumerable:!0,get:function(){return i.shimGetUserMedia}}),Object.defineProperty(t,"shimGetDisplayMedia",{enumerable:!0,get:function(){return o.shimGetDisplayMedia}});var r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==c(e)&&"function"!=typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n(47)),i=n(480),o=n(481);function a(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e){e.RTCPeerConnection.prototype.getLocalStreams=function(){var e=this;return this._shimmedLocalStreams=this._shimmedLocalStreams||{},Object.keys(this._shimmedLocalStreams).map((function(t){return e._shimmedLocalStreams[t][0]}))};var t=e.RTCPeerConnection.prototype.addTrack;e.RTCPeerConnection.prototype.addTrack=function(e,n){if(!n)return t.apply(this,arguments);this._shimmedLocalStreams=this._shimmedLocalStreams||{};var r=t.apply(this,arguments);return this._shimmedLocalStreams[n.id]?-1===this._shimmedLocalStreams[n.id].indexOf(r)&&this._shimmedLocalStreams[n.id].push(r):this._shimmedLocalStreams[n.id]=[n,r],r};var n=e.RTCPeerConnection.prototype.addStream;e.RTCPeerConnection.prototype.addStream=function(e){var t=this;this._shimmedLocalStreams=this._shimmedLocalStreams||{},e.getTracks().forEach((function(e){if(t.getSenders().find((function(t){return t.track===e})))throw new DOMException("Track already exists.","InvalidAccessError")}));var r=this.getSenders();n.apply(this,arguments);var i=this.getSenders().filter((function(e){return-1===r.indexOf(e)}));this._shimmedLocalStreams[e.id]=[e].concat(i)};var r=e.RTCPeerConnection.prototype.removeStream;e.RTCPeerConnection.prototype.removeStream=function(e){return this._shimmedLocalStreams=this._shimmedLocalStreams||{},delete this._shimmedLocalStreams[e.id],r.apply(this,arguments)};var i=e.RTCPeerConnection.prototype.removeTrack;e.RTCPeerConnection.prototype.removeTrack=function(e){var t=this;return this._shimmedLocalStreams=this._shimmedLocalStreams||{},e&&Object.keys(this._shimmedLocalStreams).forEach((function(n){var r=t._shimmedLocalStreams[n].indexOf(e);-1!==r&&t._shimmedLocalStreams[n].splice(r,1),1===t._shimmedLocalStreams[n].length&&delete t._shimmedLocalStreams[n]})),i.apply(this,arguments)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.shimGetUserMedia=function(e){var t=e&&e.navigator;if(!t.mediaDevices)return;var n=r.detectBrowser(e),i=function(e){if("object"!==o(e)||e.mandatory||e.optional)return e;var t={};return Object.keys(e).forEach((function(n){if("require"!==n&&"advanced"!==n&&"mediaSource"!==n){var r="object"===o(e[n])?e[n]:{ideal:e[n]};void 0!==r.exact&&"number"==typeof r.exact&&(r.min=r.max=r.exact);var i=function(e,t){return e?e+t.charAt(0).toUpperCase()+t.slice(1):"deviceId"===t?"sourceId":t};if(void 0!==r.ideal){t.optional=t.optional||[];var a={};"number"==typeof r.ideal?(a[i("min",n)]=r.ideal,t.optional.push(a),(a={})[i("max",n)]=r.ideal,t.optional.push(a)):(a[i("",n)]=r.ideal,t.optional.push(a))}void 0!==r.exact&&"number"!=typeof r.exact?(t.mandatory=t.mandatory||{},t.mandatory[i("",n)]=r.exact):["min","max"].forEach((function(e){void 0!==r[e]&&(t.mandatory=t.mandatory||{},t.mandatory[i(e,n)]=r[e])}))}})),e.advanced&&(t.optional=(t.optional||[]).concat(e.advanced)),t},s=function(e,r){if(n.version>=61)return r(e);if((e=JSON.parse(JSON.stringify(e)))&&"object"===o(e.audio)){var s=function(e,t,n){t in e&&!(n in e)&&(e[n]=e[t],delete e[t])};s((e=JSON.parse(JSON.stringify(e))).audio,"autoGainControl","googAutoGainControl"),s(e.audio,"noiseSuppression","googNoiseSuppression"),e.audio=i(e.audio)}if(e&&"object"===o(e.video)){var c=e.video.facingMode;c=c&&("object"===o(c)?c:{ideal:c});var u,l=n.version<66;if(c&&("user"===c.exact||"environment"===c.exact||"user"===c.ideal||"environment"===c.ideal)&&(!t.mediaDevices.getSupportedConstraints||!t.mediaDevices.getSupportedConstraints().facingMode||l))if(delete e.video.facingMode,"environment"===c.exact||"environment"===c.ideal?u=["back","rear"]:"user"!==c.exact&&"user"!==c.ideal||(u=["front"]),u)return t.mediaDevices.enumerateDevices().then((function(t){var n=(t=t.filter((function(e){return"videoinput"===e.kind}))).find((function(e){return u.some((function(t){return e.label.toLowerCase().includes(t)}))}));return!n&&t.length&&u.includes("back")&&(n=t[t.length-1]),n&&(e.video.deviceId=c.exact?{exact:n.deviceId}:{ideal:n.deviceId}),e.video=i(e.video),a("chrome: "+JSON.stringify(e)),r(e)}));e.video=i(e.video)}return a("chrome: "+JSON.stringify(e)),r(e)},c=function(e){return n.version>=64?e:{name:{PermissionDeniedError:"NotAllowedError",PermissionDismissedError:"NotAllowedError",InvalidStateError:"NotAllowedError",DevicesNotFoundError:"NotFoundError",ConstraintNotSatisfiedError:"OverconstrainedError",TrackStartError:"NotReadableError",MediaDeviceFailedDueToShutdown:"NotAllowedError",MediaDeviceKillSwitchOn:"NotAllowedError",TabCaptureError:"AbortError",ScreenCaptureError:"AbortError",DeviceCaptureError:"AbortError"}[e.name]||e.name,message:e.message,constraint:e.constraint||e.constraintName,toString:function(){return this.name+(this.message&&": ")+this.message}}};if(t.getUserMedia=function(e,n,r){s(e,(function(e){t.webkitGetUserMedia(e,n,(function(e){r&&r(c(e))}))}))}.bind(t),t.mediaDevices.getUserMedia){var u=t.mediaDevices.getUserMedia.bind(t.mediaDevices);t.mediaDevices.getUserMedia=function(e){return s(e,(function(e){return u(e).then((function(t){if(e.audio&&!t.getAudioTracks().length||e.video&&!t.getVideoTracks().length)throw t.getTracks().forEach((function(e){e.stop()})),new DOMException("","NotFoundError");return t}),(function(e){return Promise.reject(c(e))}))}))}}};var r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var t=i();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var s=r?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(n,a,s):n[a]=e[a]}n.default=e,t&&t.set(e,n);return n}(n(47));function i(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var a=r.log},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.shimGetDisplayMedia=function(e,t){if(e.navigator.mediaDevices&&"getDisplayMedia"in e.navigator.mediaDevices)return;if(!e.navigator.mediaDevices)return;if("function"!=typeof t)return void console.error("shimGetDisplayMedia: getSourceId argument is not a function");e.navigator.mediaDevices.getDisplayMedia=function(n){return t(n).then((function(t){var r=n.video&&n.video.width,i=n.video&&n.video.height,o=n.video&&n.video.frameRate;return n.video={mandatory:{chromeMediaSource:"desktop",chromeMediaSourceId:t,maxFrameRate:o||3}},r&&(n.video.mandatory.maxWidth=r),i&&(n.video.mandatory.maxHeight=i),e.navigator.mediaDevices.getUserMedia(n)}))}}},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.shimPeerConnection=function(e){var t=o.detectBrowser(e);if(e.RTCIceGatherer&&(e.RTCIceCandidate||(e.RTCIceCandidate=function(e){return e}),e.RTCSessionDescription||(e.RTCSessionDescription=function(e){return e}),t.version<15025)){var n=Object.getOwnPropertyDescriptor(e.MediaStreamTrack.prototype,"enabled");Object.defineProperty(e.MediaStreamTrack.prototype,"enabled",{set:function(e){n.set.call(this,e);var t=new Event("enabled");t.enabled=e,this.dispatchEvent(t)}})}!e.RTCRtpSender||"dtmf"in e.RTCRtpSender.prototype||Object.defineProperty(e.RTCRtpSender.prototype,"dtmf",{get:function(){return void 0===this._dtmf&&("audio"===this.track.kind?this._dtmf=new e.RTCDtmfSender(this):"video"===this.track.kind&&(this._dtmf=null)),this._dtmf}});e.RTCDtmfSender&&!e.RTCDTMFSender&&(e.RTCDTMFSender=e.RTCDtmfSender);var r=(0,s.default)(e,t.version);e.RTCPeerConnection=function(e){return e&&e.iceServers&&(e.iceServers=(0,a.filterIceServers)(e.iceServers,t.version),o.log("ICE servers after filtering:",e.iceServers)),new r(e)},e.RTCPeerConnection.prototype=r.prototype},t.shimReplaceTrack=function(e){!e.RTCRtpSender||"replaceTrack"in e.RTCRtpSender.prototype||(e.RTCRtpSender.prototype.replaceTrack=e.RTCRtpSender.prototype.setTrack)},Object.defineProperty(t,"shimGetUserMedia",{enumerable:!0,get:function(){return c.shimGetUserMedia}}),Object.defineProperty(t,"shimGetDisplayMedia",{enumerable:!0,get:function(){return u.shimGetDisplayMedia}});var i,o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=l();if(t&&t.has(e))return t.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(47)),a=n(483),s=(i=n(484))&&i.__esModule?i:{default:i},c=n(485),u=n(486);function l(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},e}},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.filterIceServers=function(e,t){var n=!1;return(e=JSON.parse(JSON.stringify(e))).filter((function(e){if(e&&(e.urls||e.url)){var t=e.urls||e.url;e.url&&!e.urls&&i.deprecated("RTCIceServer.url","RTCIceServer.urls");var r="string"==typeof t;return r&&(t=[t]),t=t.filter((function(e){if(0===e.indexOf("stun:"))return!1;var t=e.startsWith("turn")&&!e.startsWith("turn:[")&&e.includes("transport=udp");return t&&!n?(n=!0,!0):t&&!n})),delete e.url,e.urls=r?t[0]:t,!!t.length}}))};var i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=o();if(t&&t.has(e))return t.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(n,a,s):n[a]=e[a]}n.default=e,t&&t.set(e,n);return n}(n(47));function o(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return o=function(){return e},e}},function(e,t,n){"use strict";var r=n(324);function i(e,t,n,i,o){var a=r.writeRtpDescription(e.kind,t);if(a+=r.writeIceParameters(e.iceGatherer.getLocalParameters()),a+=r.writeDtlsParameters(e.dtlsTransport.getLocalParameters(),"offer"===n?"actpass":o||"active"),a+="a=mid:"+e.mid+"\r\n",e.rtpSender&&e.rtpReceiver?a+="a=sendrecv\r\n":e.rtpSender?a+="a=sendonly\r\n":e.rtpReceiver?a+="a=recvonly\r\n":a+="a=inactive\r\n",e.rtpSender){var s=e.rtpSender._initialTrackId||e.rtpSender.track.id;e.rtpSender._initialTrackId=s;var c="msid:"+(i?i.id:"-")+" "+s+"\r\n";a+="a="+c,a+="a=ssrc:"+e.sendEncodingParameters[0].ssrc+" "+c,e.sendEncodingParameters[0].rtx&&(a+="a=ssrc:"+e.sendEncodingParameters[0].rtx.ssrc+" "+c,a+="a=ssrc-group:FID "+e.sendEncodingParameters[0].ssrc+" "+e.sendEncodingParameters[0].rtx.ssrc+"\r\n")}return a+="a=ssrc:"+e.sendEncodingParameters[0].ssrc+" cname:"+r.localCName+"\r\n",e.rtpSender&&e.sendEncodingParameters[0].rtx&&(a+="a=ssrc:"+e.sendEncodingParameters[0].rtx.ssrc+" cname:"+r.localCName+"\r\n"),a}function o(e,t){var n={codecs:[],headerExtensions:[],fecMechanisms:[]},r=function(e,t){e=parseInt(e,10);for(var n=0;n<t.length;n++)if(t[n].payloadType===e||t[n].preferredPayloadType===e)return t[n]},i=function(e,t,n,i){var o=r(e.parameters.apt,n),a=r(t.parameters.apt,i);return o&&a&&o.name.toLowerCase()===a.name.toLowerCase()};return e.codecs.forEach((function(r){for(var o=0;o<t.codecs.length;o++){var a=t.codecs[o];if(r.name.toLowerCase()===a.name.toLowerCase()&&r.clockRate===a.clockRate){if("rtx"===r.name.toLowerCase()&&r.parameters&&a.parameters.apt&&!i(r,a,e.codecs,t.codecs))continue;(a=JSON.parse(JSON.stringify(a))).numChannels=Math.min(r.numChannels,a.numChannels),n.codecs.push(a),a.rtcpFeedback=a.rtcpFeedback.filter((function(e){for(var t=0;t<r.rtcpFeedback.length;t++)if(r.rtcpFeedback[t].type===e.type&&r.rtcpFeedback[t].parameter===e.parameter)return!0;return!1}));break}}})),e.headerExtensions.forEach((function(e){for(var r=0;r<t.headerExtensions.length;r++){var i=t.headerExtensions[r];if(e.uri===i.uri){n.headerExtensions.push(i);break}}})),n}function a(e,t,n){return-1!=={offer:{setLocalDescription:["stable","have-local-offer"],setRemoteDescription:["stable","have-remote-offer"]},answer:{setLocalDescription:["have-remote-offer","have-local-pranswer"],setRemoteDescription:["have-local-offer","have-remote-pranswer"]}}[t][e].indexOf(n)}function s(e,t){var n=e.getRemoteCandidates().find((function(e){return t.foundation===e.foundation&&t.ip===e.ip&&t.port===e.port&&t.priority===e.priority&&t.protocol===e.protocol&&t.type===e.type}));return n||e.addRemoteCandidate(t),!n}function c(e,t){var n=new Error(t);return n.name=e,n.code={NotSupportedError:9,InvalidStateError:11,InvalidAccessError:15,TypeError:void 0,OperationError:void 0}[e],n}e.exports=function(e,t){function n(t,n){n.addTrack(t),n.dispatchEvent(new e.MediaStreamTrackEvent("addtrack",{track:t}))}function u(t,n,r,i){var o=new Event("track");o.track=n,o.receiver=r,o.transceiver={receiver:r},o.streams=i,e.setTimeout((function(){t._dispatchEvent("track",o)}))}var l=function(n){var i=this,o=document.createDocumentFragment();if(["addEventListener","removeEventListener","dispatchEvent"].forEach((function(e){i[e]=o[e].bind(o)})),this.canTrickleIceCandidates=null,this.needNegotiation=!1,this.localStreams=[],this.remoteStreams=[],this._localDescription=null,this._remoteDescription=null,this.signalingState="stable",this.iceConnectionState="new",this.connectionState="new",this.iceGatheringState="new",n=JSON.parse(JSON.stringify(n||{})),this.usingBundle="max-bundle"===n.bundlePolicy,"negotiate"===n.rtcpMuxPolicy)throw c("NotSupportedError","rtcpMuxPolicy 'negotiate' is not supported");switch(n.rtcpMuxPolicy||(n.rtcpMuxPolicy="require"),n.iceTransportPolicy){case"all":case"relay":break;default:n.iceTransportPolicy="all"}switch(n.bundlePolicy){case"balanced":case"max-compat":case"max-bundle":break;default:n.bundlePolicy="balanced"}if(n.iceServers=function(e,t){var n=!1;return(e=JSON.parse(JSON.stringify(e))).filter((function(e){if(e&&(e.urls||e.url)){var r=e.urls||e.url;e.url&&!e.urls&&console.warn("RTCIceServer.url is deprecated! Use urls instead.");var i="string"==typeof r;return i&&(r=[r]),r=r.filter((function(e){return 0===e.indexOf("turn:")&&-1!==e.indexOf("transport=udp")&&-1===e.indexOf("turn:[")&&!n?(n=!0,!0):0===e.indexOf("stun:")&&t>=14393&&-1===e.indexOf("?transport=udp")})),delete e.url,e.urls=i?r[0]:r,!!r.length}}))}(n.iceServers||[],t),this._iceGatherers=[],n.iceCandidatePoolSize)for(var a=n.iceCandidatePoolSize;a>0;a--)this._iceGatherers.push(new e.RTCIceGatherer({iceServers:n.iceServers,gatherPolicy:n.iceTransportPolicy}));else n.iceCandidatePoolSize=0;this._config=n,this.transceivers=[],this._sdpSessionId=r.generateSessionId(),this._sdpSessionVersion=0,this._dtlsRole=void 0,this._isClosed=!1};Object.defineProperty(l.prototype,"localDescription",{configurable:!0,get:function(){return this._localDescription}}),Object.defineProperty(l.prototype,"remoteDescription",{configurable:!0,get:function(){return this._remoteDescription}}),l.prototype.onicecandidate=null,l.prototype.onaddstream=null,l.prototype.ontrack=null,l.prototype.onremovestream=null,l.prototype.onsignalingstatechange=null,l.prototype.oniceconnectionstatechange=null,l.prototype.onconnectionstatechange=null,l.prototype.onicegatheringstatechange=null,l.prototype.onnegotiationneeded=null,l.prototype.ondatachannel=null,l.prototype._dispatchEvent=function(e,t){this._isClosed||(this.dispatchEvent(t),"function"==typeof this["on"+e]&&this["on"+e](t))},l.prototype._emitGatheringStateChange=function(){var e=new Event("icegatheringstatechange");this._dispatchEvent("icegatheringstatechange",e)},l.prototype.getConfiguration=function(){return this._config},l.prototype.getLocalStreams=function(){return this.localStreams},l.prototype.getRemoteStreams=function(){return this.remoteStreams},l.prototype._createTransceiver=function(e,t){var n=this.transceivers.length>0,r={track:null,iceGatherer:null,iceTransport:null,dtlsTransport:null,localCapabilities:null,remoteCapabilities:null,rtpSender:null,rtpReceiver:null,kind:e,mid:null,sendEncodingParameters:null,recvEncodingParameters:null,stream:null,associatedRemoteMediaStreams:[],wantReceive:!0};if(this.usingBundle&&n)r.iceTransport=this.transceivers[0].iceTransport,r.dtlsTransport=this.transceivers[0].dtlsTransport;else{var i=this._createIceAndDtlsTransports();r.iceTransport=i.iceTransport,r.dtlsTransport=i.dtlsTransport}return t||this.transceivers.push(r),r},l.prototype.addTrack=function(t,n){if(this._isClosed)throw c("InvalidStateError","Attempted to call addTrack on a closed peerconnection.");var r;if(this.transceivers.find((function(e){return e.track===t})))throw c("InvalidAccessError","Track already exists.");for(var i=0;i<this.transceivers.length;i++)this.transceivers[i].track||this.transceivers[i].kind!==t.kind||(r=this.transceivers[i]);return r||(r=this._createTransceiver(t.kind)),this._maybeFireNegotiationNeeded(),-1===this.localStreams.indexOf(n)&&this.localStreams.push(n),r.track=t,r.stream=n,r.rtpSender=new e.RTCRtpSender(t,r.dtlsTransport),r.rtpSender},l.prototype.addStream=function(e){var n=this;if(t>=15025)e.getTracks().forEach((function(t){n.addTrack(t,e)}));else{var r=e.clone();e.getTracks().forEach((function(e,t){var n=r.getTracks()[t];e.addEventListener("enabled",(function(e){n.enabled=e.enabled}))})),r.getTracks().forEach((function(e){n.addTrack(e,r)}))}},l.prototype.removeTrack=function(t){if(this._isClosed)throw c("InvalidStateError","Attempted to call removeTrack on a closed peerconnection.");if(!(t instanceof e.RTCRtpSender))throw new TypeError("Argument 1 of RTCPeerConnection.removeTrack does not implement interface RTCRtpSender.");var n=this.transceivers.find((function(e){return e.rtpSender===t}));if(!n)throw c("InvalidAccessError","Sender was not created by this connection.");var r=n.stream;n.rtpSender.stop(),n.rtpSender=null,n.track=null,n.stream=null,-1===this.transceivers.map((function(e){return e.stream})).indexOf(r)&&this.localStreams.indexOf(r)>-1&&this.localStreams.splice(this.localStreams.indexOf(r),1),this._maybeFireNegotiationNeeded()},l.prototype.removeStream=function(e){var t=this;e.getTracks().forEach((function(e){var n=t.getSenders().find((function(t){return t.track===e}));n&&t.removeTrack(n)}))},l.prototype.getSenders=function(){return this.transceivers.filter((function(e){return!!e.rtpSender})).map((function(e){return e.rtpSender}))},l.prototype.getReceivers=function(){return this.transceivers.filter((function(e){return!!e.rtpReceiver})).map((function(e){return e.rtpReceiver}))},l.prototype._createIceGatherer=function(t,n){var r=this;if(n&&t>0)return this.transceivers[0].iceGatherer;if(this._iceGatherers.length)return this._iceGatherers.shift();var i=new e.RTCIceGatherer({iceServers:this._config.iceServers,gatherPolicy:this._config.iceTransportPolicy});return Object.defineProperty(i,"state",{value:"new",writable:!0}),this.transceivers[t].bufferedCandidateEvents=[],this.transceivers[t].bufferCandidates=function(e){var n=!e.candidate||0===Object.keys(e.candidate).length;i.state=n?"completed":"gathering",null!==r.transceivers[t].bufferedCandidateEvents&&r.transceivers[t].bufferedCandidateEvents.push(e)},i.addEventListener("localcandidate",this.transceivers[t].bufferCandidates),i},l.prototype._gather=function(t,n){var i=this,o=this.transceivers[n].iceGatherer;if(!o.onlocalcandidate){var a=this.transceivers[n].bufferedCandidateEvents;this.transceivers[n].bufferedCandidateEvents=null,o.removeEventListener("localcandidate",this.transceivers[n].bufferCandidates),o.onlocalcandidate=function(e){if(!(i.usingBundle&&n>0)){var a=new Event("icecandidate");a.candidate={sdpMid:t,sdpMLineIndex:n};var s=e.candidate,c=!s||0===Object.keys(s).length;if(c)"new"!==o.state&&"gathering"!==o.state||(o.state="completed");else{"new"===o.state&&(o.state="gathering"),s.component=1,s.ufrag=o.getLocalParameters().usernameFragment;var u=r.writeCandidate(s);a.candidate=Object.assign(a.candidate,r.parseCandidate(u)),a.candidate.candidate=u,a.candidate.toJSON=function(){return{candidate:a.candidate.candidate,sdpMid:a.candidate.sdpMid,sdpMLineIndex:a.candidate.sdpMLineIndex,usernameFragment:a.candidate.usernameFragment}}}var l=r.getMediaSections(i._localDescription.sdp);l[a.candidate.sdpMLineIndex]+=c?"a=end-of-candidates\r\n":"a="+a.candidate.candidate+"\r\n",i._localDescription.sdp=r.getDescription(i._localDescription.sdp)+l.join("");var d=i.transceivers.every((function(e){return e.iceGatherer&&"completed"===e.iceGatherer.state}));"gathering"!==i.iceGatheringState&&(i.iceGatheringState="gathering",i._emitGatheringStateChange()),c||i._dispatchEvent("icecandidate",a),d&&(i._dispatchEvent("icecandidate",new Event("icecandidate")),i.iceGatheringState="complete",i._emitGatheringStateChange())}},e.setTimeout((function(){a.forEach((function(e){o.onlocalcandidate(e)}))}),0)}},l.prototype._createIceAndDtlsTransports=function(){var t=this,n=new e.RTCIceTransport(null);n.onicestatechange=function(){t._updateIceConnectionState(),t._updateConnectionState()};var r=new e.RTCDtlsTransport(n);return r.ondtlsstatechange=function(){t._updateConnectionState()},r.onerror=function(){Object.defineProperty(r,"state",{value:"failed",writable:!0}),t._updateConnectionState()},{iceTransport:n,dtlsTransport:r}},l.prototype._disposeIceAndDtlsTransports=function(e){var t=this.transceivers[e].iceGatherer;t&&(delete t.onlocalcandidate,delete this.transceivers[e].iceGatherer);var n=this.transceivers[e].iceTransport;n&&(delete n.onicestatechange,delete this.transceivers[e].iceTransport);var r=this.transceivers[e].dtlsTransport;r&&(delete r.ondtlsstatechange,delete r.onerror,delete this.transceivers[e].dtlsTransport)},l.prototype._transceive=function(e,n,i){var a=o(e.localCapabilities,e.remoteCapabilities);n&&e.rtpSender&&(a.encodings=e.sendEncodingParameters,a.rtcp={cname:r.localCName,compound:e.rtcpParameters.compound},e.recvEncodingParameters.length&&(a.rtcp.ssrc=e.recvEncodingParameters[0].ssrc),e.rtpSender.send(a)),i&&e.rtpReceiver&&a.codecs.length>0&&("video"===e.kind&&e.recvEncodingParameters&&t<15019&&e.recvEncodingParameters.forEach((function(e){delete e.rtx})),e.recvEncodingParameters.length?a.encodings=e.recvEncodingParameters:a.encodings=[{}],a.rtcp={compound:e.rtcpParameters.compound},e.rtcpParameters.cname&&(a.rtcp.cname=e.rtcpParameters.cname),e.sendEncodingParameters.length&&(a.rtcp.ssrc=e.sendEncodingParameters[0].ssrc),e.rtpReceiver.receive(a))},l.prototype.setLocalDescription=function(e){var t,n,i=this;if(-1===["offer","answer"].indexOf(e.type))return Promise.reject(c("TypeError",'Unsupported type "'+e.type+'"'));if(!a("setLocalDescription",e.type,i.signalingState)||i._isClosed)return Promise.reject(c("InvalidStateError","Can not set local "+e.type+" in state "+i.signalingState));if("offer"===e.type)t=r.splitSections(e.sdp),n=t.shift(),t.forEach((function(e,t){var n=r.parseRtpParameters(e);i.transceivers[t].localCapabilities=n})),i.transceivers.forEach((function(e,t){i._gather(e.mid,t)}));else if("answer"===e.type){t=r.splitSections(i._remoteDescription.sdp),n=t.shift();var s=r.matchPrefix(n,"a=ice-lite").length>0;t.forEach((function(e,t){var a=i.transceivers[t],c=a.iceGatherer,u=a.iceTransport,l=a.dtlsTransport,d=a.localCapabilities,p=a.remoteCapabilities;if(!(r.isRejected(e)&&0===r.matchPrefix(e,"a=bundle-only").length)&&!a.rejected){var f=r.getIceParameters(e,n),h=r.getDtlsParameters(e,n);s&&(h.role="server"),i.usingBundle&&0!==t||(i._gather(a.mid,t),"new"===u.state&&u.start(c,f,s?"controlling":"controlled"),"new"===l.state&&l.start(h));var v=o(d,p);i._transceive(a,v.codecs.length>0,!1)}}))}return i._localDescription={type:e.type,sdp:e.sdp},"offer"===e.type?i._updateSignalingState("have-local-offer"):i._updateSignalingState("stable"),Promise.resolve()},l.prototype.setRemoteDescription=function(i){var l=this;if(-1===["offer","answer"].indexOf(i.type))return Promise.reject(c("TypeError",'Unsupported type "'+i.type+'"'));if(!a("setRemoteDescription",i.type,l.signalingState)||l._isClosed)return Promise.reject(c("InvalidStateError","Can not set remote "+i.type+" in state "+l.signalingState));var d={};l.remoteStreams.forEach((function(e){d[e.id]=e}));var p=[],f=r.splitSections(i.sdp),h=f.shift(),v=r.matchPrefix(h,"a=ice-lite").length>0,m=r.matchPrefix(h,"a=group:BUNDLE ").length>0;l.usingBundle=m;var g=r.matchPrefix(h,"a=ice-options:")[0];return l.canTrickleIceCandidates=!!g&&g.substr(14).split(" ").indexOf("trickle")>=0,f.forEach((function(a,c){var u=r.splitLines(a),f=r.getKind(a),g=r.isRejected(a)&&0===r.matchPrefix(a,"a=bundle-only").length,y=u[0].substr(2).split(" ")[2],b=r.getDirection(a,h),S=r.parseMsid(a),w=r.getMid(a)||r.generateIdentifier();if(g||"application"===f&&("DTLS/SCTP"===y||"UDP/DTLS/SCTP"===y))l.transceivers[c]={mid:w,kind:f,protocol:y,rejected:!0};else{var C,_,E,T,R,O,k,P,x;!g&&l.transceivers[c]&&l.transceivers[c].rejected&&(l.transceivers[c]=l._createTransceiver(f,!0));var I,A,M=r.parseRtpParameters(a);g||(I=r.getIceParameters(a,h),(A=r.getDtlsParameters(a,h)).role="client"),k=r.parseRtpEncodingParameters(a);var j=r.parseRtcpParameters(a),D=r.matchPrefix(a,"a=end-of-candidates",h).length>0,L=r.matchPrefix(a,"a=candidate:").map((function(e){return r.parseCandidate(e)})).filter((function(e){return 1===e.component}));if(("offer"===i.type||"answer"===i.type)&&!g&&m&&c>0&&l.transceivers[c]&&(l._disposeIceAndDtlsTransports(c),l.transceivers[c].iceGatherer=l.transceivers[0].iceGatherer,l.transceivers[c].iceTransport=l.transceivers[0].iceTransport,l.transceivers[c].dtlsTransport=l.transceivers[0].dtlsTransport,l.transceivers[c].rtpSender&&l.transceivers[c].rtpSender.setTransport(l.transceivers[0].dtlsTransport),l.transceivers[c].rtpReceiver&&l.transceivers[c].rtpReceiver.setTransport(l.transceivers[0].dtlsTransport)),"offer"!==i.type||g){if("answer"===i.type&&!g){_=(C=l.transceivers[c]).iceGatherer,E=C.iceTransport,T=C.dtlsTransport,R=C.rtpReceiver,O=C.sendEncodingParameters,P=C.localCapabilities,l.transceivers[c].recvEncodingParameters=k,l.transceivers[c].remoteCapabilities=M,l.transceivers[c].rtcpParameters=j,L.length&&"new"===E.state&&(!v&&!D||m&&0!==c?L.forEach((function(e){s(C.iceTransport,e)})):E.setRemoteCandidates(L)),m&&0!==c||("new"===E.state&&E.start(_,I,"controlling"),"new"===T.state&&T.start(A)),!o(C.localCapabilities,C.remoteCapabilities).codecs.filter((function(e){return"rtx"===e.name.toLowerCase()})).length&&C.sendEncodingParameters[0].rtx&&delete C.sendEncodingParameters[0].rtx,l._transceive(C,"sendrecv"===b||"recvonly"===b,"sendrecv"===b||"sendonly"===b),!R||"sendrecv"!==b&&"sendonly"!==b?delete C.rtpReceiver:(x=R.track,S?(d[S.stream]||(d[S.stream]=new e.MediaStream),n(x,d[S.stream]),p.push([x,R,d[S.stream]])):(d.default||(d.default=new e.MediaStream),n(x,d.default),p.push([x,R,d.default])))}}else{(C=l.transceivers[c]||l._createTransceiver(f)).mid=w,C.iceGatherer||(C.iceGatherer=l._createIceGatherer(c,m)),L.length&&"new"===C.iceTransport.state&&(!D||m&&0!==c?L.forEach((function(e){s(C.iceTransport,e)})):C.iceTransport.setRemoteCandidates(L)),P=e.RTCRtpReceiver.getCapabilities(f),t<15019&&(P.codecs=P.codecs.filter((function(e){return"rtx"!==e.name}))),O=C.sendEncodingParameters||[{ssrc:1001*(2*c+2)}];var N,F=!1;if("sendrecv"===b||"sendonly"===b){if(F=!C.rtpReceiver,R=C.rtpReceiver||new e.RTCRtpReceiver(C.dtlsTransport,f),F)x=R.track,S&&"-"===S.stream||(S?(d[S.stream]||(d[S.stream]=new e.MediaStream,Object.defineProperty(d[S.stream],"id",{get:function(){return S.stream}})),Object.defineProperty(x,"id",{get:function(){return S.track}}),N=d[S.stream]):(d.default||(d.default=new e.MediaStream),N=d.default)),N&&(n(x,N),C.associatedRemoteMediaStreams.push(N)),p.push([x,R,N])}else C.rtpReceiver&&C.rtpReceiver.track&&(C.associatedRemoteMediaStreams.forEach((function(t){var n=t.getTracks().find((function(e){return e.id===C.rtpReceiver.track.id}));n&&function(t,n){n.removeTrack(t),n.dispatchEvent(new e.MediaStreamTrackEvent("removetrack",{track:t}))}(n,t)})),C.associatedRemoteMediaStreams=[]);C.localCapabilities=P,C.remoteCapabilities=M,C.rtpReceiver=R,C.rtcpParameters=j,C.sendEncodingParameters=O,C.recvEncodingParameters=k,l._transceive(l.transceivers[c],!1,F)}}})),void 0===l._dtlsRole&&(l._dtlsRole="offer"===i.type?"active":"passive"),l._remoteDescription={type:i.type,sdp:i.sdp},"offer"===i.type?l._updateSignalingState("have-remote-offer"):l._updateSignalingState("stable"),Object.keys(d).forEach((function(t){var n=d[t];if(n.getTracks().length){if(-1===l.remoteStreams.indexOf(n)){l.remoteStreams.push(n);var r=new Event("addstream");r.stream=n,e.setTimeout((function(){l._dispatchEvent("addstream",r)}))}p.forEach((function(e){var t=e[0],r=e[1];n.id===e[2].id&&u(l,t,r,[n])}))}})),p.forEach((function(e){e[2]||u(l,e[0],e[1],[])})),e.setTimeout((function(){l&&l.transceivers&&l.transceivers.forEach((function(e){e.iceTransport&&"new"===e.iceTransport.state&&e.iceTransport.getRemoteCandidates().length>0&&(console.warn("Timeout for addRemoteCandidate. Consider sending an end-of-candidates notification"),e.iceTransport.addRemoteCandidate({}))}))}),4e3),Promise.resolve()},l.prototype.close=function(){this.transceivers.forEach((function(e){e.iceTransport&&e.iceTransport.stop(),e.dtlsTransport&&e.dtlsTransport.stop(),e.rtpSender&&e.rtpSender.stop(),e.rtpReceiver&&e.rtpReceiver.stop()})),this._isClosed=!0,this._updateSignalingState("closed")},l.prototype._updateSignalingState=function(e){this.signalingState=e;var t=new Event("signalingstatechange");this._dispatchEvent("signalingstatechange",t)},l.prototype._maybeFireNegotiationNeeded=function(){var t=this;"stable"===this.signalingState&&!0!==this.needNegotiation&&(this.needNegotiation=!0,e.setTimeout((function(){if(t.needNegotiation){t.needNegotiation=!1;var e=new Event("negotiationneeded");t._dispatchEvent("negotiationneeded",e)}}),0))},l.prototype._updateIceConnectionState=function(){var e,t={new:0,closed:0,checking:0,connected:0,completed:0,disconnected:0,failed:0};if(this.transceivers.forEach((function(e){e.iceTransport&&!e.rejected&&t[e.iceTransport.state]++})),e="new",t.failed>0?e="failed":t.checking>0?e="checking":t.disconnected>0?e="disconnected":t.new>0?e="new":t.connected>0?e="connected":t.completed>0&&(e="completed"),e!==this.iceConnectionState){this.iceConnectionState=e;var n=new Event("iceconnectionstatechange");this._dispatchEvent("iceconnectionstatechange",n)}},l.prototype._updateConnectionState=function(){var e,t={new:0,closed:0,connecting:0,connected:0,completed:0,disconnected:0,failed:0};if(this.transceivers.forEach((function(e){e.iceTransport&&e.dtlsTransport&&!e.rejected&&(t[e.iceTransport.state]++,t[e.dtlsTransport.state]++)})),t.connected+=t.completed,e="new",t.failed>0?e="failed":t.connecting>0?e="connecting":t.disconnected>0?e="disconnected":t.new>0?e="new":t.connected>0&&(e="connected"),e!==this.connectionState){this.connectionState=e;var n=new Event("connectionstatechange");this._dispatchEvent("connectionstatechange",n)}},l.prototype.createOffer=function(){var n=this;if(n._isClosed)return Promise.reject(c("InvalidStateError","Can not call createOffer after close"));var o=n.transceivers.filter((function(e){return"audio"===e.kind})).length,a=n.transceivers.filter((function(e){return"video"===e.kind})).length,s=arguments[0];if(s){if(s.mandatory||s.optional)throw new TypeError("Legacy mandatory/optional constraints not supported.");void 0!==s.offerToReceiveAudio&&(o=!0===s.offerToReceiveAudio?1:!1===s.offerToReceiveAudio?0:s.offerToReceiveAudio),void 0!==s.offerToReceiveVideo&&(a=!0===s.offerToReceiveVideo?1:!1===s.offerToReceiveVideo?0:s.offerToReceiveVideo)}for(n.transceivers.forEach((function(e){"audio"===e.kind?--o<0&&(e.wantReceive=!1):"video"===e.kind&&--a<0&&(e.wantReceive=!1)}));o>0||a>0;)o>0&&(n._createTransceiver("audio"),o--),a>0&&(n._createTransceiver("video"),a--);var u=r.writeSessionBoilerplate(n._sdpSessionId,n._sdpSessionVersion++);n.transceivers.forEach((function(i,o){var a=i.track,s=i.kind,c=i.mid||r.generateIdentifier();i.mid=c,i.iceGatherer||(i.iceGatherer=n._createIceGatherer(o,n.usingBundle));var u=e.RTCRtpSender.getCapabilities(s);t<15019&&(u.codecs=u.codecs.filter((function(e){return"rtx"!==e.name}))),u.codecs.forEach((function(e){"H264"===e.name&&void 0===e.parameters["level-asymmetry-allowed"]&&(e.parameters["level-asymmetry-allowed"]="1"),i.remoteCapabilities&&i.remoteCapabilities.codecs&&i.remoteCapabilities.codecs.forEach((function(t){e.name.toLowerCase()===t.name.toLowerCase()&&e.clockRate===t.clockRate&&(e.preferredPayloadType=t.payloadType)}))})),u.headerExtensions.forEach((function(e){(i.remoteCapabilities&&i.remoteCapabilities.headerExtensions||[]).forEach((function(t){e.uri===t.uri&&(e.id=t.id)}))}));var l=i.sendEncodingParameters||[{ssrc:1001*(2*o+1)}];a&&t>=15019&&"video"===s&&!l[0].rtx&&(l[0].rtx={ssrc:l[0].ssrc+1}),i.wantReceive&&(i.rtpReceiver=new e.RTCRtpReceiver(i.dtlsTransport,s)),i.localCapabilities=u,i.sendEncodingParameters=l})),"max-compat"!==n._config.bundlePolicy&&(u+="a=group:BUNDLE "+n.transceivers.map((function(e){return e.mid})).join(" ")+"\r\n"),u+="a=ice-options:trickle\r\n",n.transceivers.forEach((function(e,t){u+=i(e,e.localCapabilities,"offer",e.stream,n._dtlsRole),u+="a=rtcp-rsize\r\n",!e.iceGatherer||"new"===n.iceGatheringState||0!==t&&n.usingBundle||(e.iceGatherer.getLocalCandidates().forEach((function(e){e.component=1,u+="a="+r.writeCandidate(e)+"\r\n"})),"completed"===e.iceGatherer.state&&(u+="a=end-of-candidates\r\n"))}));var l=new e.RTCSessionDescription({type:"offer",sdp:u});return Promise.resolve(l)},l.prototype.createAnswer=function(){var n=this;if(n._isClosed)return Promise.reject(c("InvalidStateError","Can not call createAnswer after close"));if("have-remote-offer"!==n.signalingState&&"have-local-pranswer"!==n.signalingState)return Promise.reject(c("InvalidStateError","Can not call createAnswer in signalingState "+n.signalingState));var a=r.writeSessionBoilerplate(n._sdpSessionId,n._sdpSessionVersion++);n.usingBundle&&(a+="a=group:BUNDLE "+n.transceivers.map((function(e){return e.mid})).join(" ")+"\r\n"),a+="a=ice-options:trickle\r\n";var s=r.getMediaSections(n._remoteDescription.sdp).length;n.transceivers.forEach((function(e,r){if(!(r+1>s)){if(e.rejected)return"application"===e.kind?"DTLS/SCTP"===e.protocol?a+="m=application 0 DTLS/SCTP 5000\r\n":a+="m=application 0 "+e.protocol+" webrtc-datachannel\r\n":"audio"===e.kind?a+="m=audio 0 UDP/TLS/RTP/SAVPF 0\r\na=rtpmap:0 PCMU/8000\r\n":"video"===e.kind&&(a+="m=video 0 UDP/TLS/RTP/SAVPF 120\r\na=rtpmap:120 VP8/90000\r\n"),void(a+="c=IN IP4 0.0.0.0\r\na=inactive\r\na=mid:"+e.mid+"\r\n");var c;if(e.stream)"audio"===e.kind?c=e.stream.getAudioTracks()[0]:"video"===e.kind&&(c=e.stream.getVideoTracks()[0]),c&&t>=15019&&"video"===e.kind&&!e.sendEncodingParameters[0].rtx&&(e.sendEncodingParameters[0].rtx={ssrc:e.sendEncodingParameters[0].ssrc+1});var u=o(e.localCapabilities,e.remoteCapabilities);!u.codecs.filter((function(e){return"rtx"===e.name.toLowerCase()})).length&&e.sendEncodingParameters[0].rtx&&delete e.sendEncodingParameters[0].rtx,a+=i(e,u,"answer",e.stream,n._dtlsRole),e.rtcpParameters&&e.rtcpParameters.reducedSize&&(a+="a=rtcp-rsize\r\n")}}));var u=new e.RTCSessionDescription({type:"answer",sdp:a});return Promise.resolve(u)},l.prototype.addIceCandidate=function(e){var t,n=this;return e&&void 0===e.sdpMLineIndex&&!e.sdpMid?Promise.reject(new TypeError("sdpMLineIndex or sdpMid required")):new Promise((function(i,o){if(!n._remoteDescription)return o(c("InvalidStateError","Can not add ICE candidate without a remote description"));if(e&&""!==e.candidate){var a=e.sdpMLineIndex;if(e.sdpMid)for(var u=0;u<n.transceivers.length;u++)if(n.transceivers[u].mid===e.sdpMid){a=u;break}var l=n.transceivers[a];if(!l)return o(c("OperationError","Can not add ICE candidate"));if(l.rejected)return i();var d=Object.keys(e.candidate).length>0?r.parseCandidate(e.candidate):{};if("tcp"===d.protocol&&(0===d.port||9===d.port))return i();if(d.component&&1!==d.component)return i();if((0===a||a>0&&l.iceTransport!==n.transceivers[0].iceTransport)&&!s(l.iceTransport,d))return o(c("OperationError","Can not add ICE candidate"));var p=e.candidate.trim();0===p.indexOf("a=")&&(p=p.substr(2)),(t=r.getMediaSections(n._remoteDescription.sdp))[a]+="a="+(d.type?p:"end-of-candidates")+"\r\n",n._remoteDescription.sdp=r.getDescription(n._remoteDescription.sdp)+t.join("")}else for(var f=0;f<n.transceivers.length&&(n.transceivers[f].rejected||(n.transceivers[f].iceTransport.addRemoteCandidate({}),(t=r.getMediaSections(n._remoteDescription.sdp))[f]+="a=end-of-candidates\r\n",n._remoteDescription.sdp=r.getDescription(n._remoteDescription.sdp)+t.join(""),!n.usingBundle));f++);i()}))},l.prototype.getStats=function(t){if(t&&t instanceof e.MediaStreamTrack){var n=null;if(this.transceivers.forEach((function(e){e.rtpSender&&e.rtpSender.track===t?n=e.rtpSender:e.rtpReceiver&&e.rtpReceiver.track===t&&(n=e.rtpReceiver)})),!n)throw c("InvalidAccessError","Invalid selector.");return n.getStats()}var r=[];return this.transceivers.forEach((function(e){["rtpSender","rtpReceiver","iceGatherer","iceTransport","dtlsTransport"].forEach((function(t){e[t]&&r.push(e[t].getStats())}))})),Promise.all(r).then((function(e){var t=new Map;return e.forEach((function(e){e.forEach((function(e){t.set(e.id,e)}))})),t}))};["RTCRtpSender","RTCRtpReceiver","RTCIceGatherer","RTCIceTransport","RTCDtlsTransport"].forEach((function(t){var n=e[t];if(n&&n.prototype&&n.prototype.getStats){var r=n.prototype.getStats;n.prototype.getStats=function(){return r.apply(this).then((function(e){var t=new Map;return Object.keys(e).forEach((function(n){var r;e[n].type={inboundrtp:"inbound-rtp",outboundrtp:"outbound-rtp",candidatepair:"candidate-pair",localcandidate:"local-candidate",remotecandidate:"remote-candidate"}[(r=e[n]).type]||r.type,t.set(n,e[n])})),t}))}}}));var d=["createOffer","createAnswer"];return d.forEach((function(e){var t=l.prototype[e];l.prototype[e]=function(){var e=arguments;return"function"==typeof e[0]||"function"==typeof e[1]?t.apply(this,[arguments[2]]).then((function(t){"function"==typeof e[0]&&e[0].apply(null,[t])}),(function(t){"function"==typeof e[1]&&e[1].apply(null,[t])})):t.apply(this,arguments)}})),(d=["setLocalDescription","setRemoteDescription","addIceCandidate"]).forEach((function(e){var t=l.prototype[e];l.prototype[e]=function(){var e=arguments;return"function"==typeof e[1]||"function"==typeof e[2]?t.apply(this,arguments).then((function(){"function"==typeof e[1]&&e[1].apply(null)}),(function(t){"function"==typeof e[2]&&e[2].apply(null,[t])})):t.apply(this,arguments)}})),["getStats"].forEach((function(e){var t=l.prototype[e];l.prototype[e]=function(){var e=arguments;return"function"==typeof e[1]?t.apply(this,arguments).then((function(){"function"==typeof e[1]&&e[1].apply(null)})):t.apply(this,arguments)}})),l}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.shimGetUserMedia=function(e){var t=e&&e.navigator,n=t.mediaDevices.getUserMedia.bind(t.mediaDevices);t.mediaDevices.getUserMedia=function(e){return n(e).catch((function(e){return Promise.reject(function(e){return{name:{PermissionDeniedError:"NotAllowedError"}[e.name]||e.name,message:e.message,constraint:e.constraint,toString:function(){return this.name}}}(e))}))}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.shimGetDisplayMedia=function(e){if(!("getDisplayMedia"in e.navigator))return;if(!e.navigator.mediaDevices)return;if(e.navigator.mediaDevices&&"getDisplayMedia"in e.navigator.mediaDevices)return;e.navigator.mediaDevices.getDisplayMedia=e.navigator.getDisplayMedia.bind(e.navigator)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.shimOnTrack=function(e){"object"===s(e)&&e.RTCTrackEvent&&"receiver"in e.RTCTrackEvent.prototype&&!("transceiver"in e.RTCTrackEvent.prototype)&&Object.defineProperty(e.RTCTrackEvent.prototype,"transceiver",{get:function(){return{receiver:this.receiver}}})},t.shimPeerConnection=function(e){var t=r.detectBrowser(e);if("object"!==s(e)||!e.RTCPeerConnection&&!e.mozRTCPeerConnection)return;!e.RTCPeerConnection&&e.mozRTCPeerConnection&&(e.RTCPeerConnection=e.mozRTCPeerConnection);t.version<53&&["setLocalDescription","setRemoteDescription","addIceCandidate"].forEach((function(t){var n=e.RTCPeerConnection.prototype[t],r=function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n;return e}({},t,(function(){return arguments[0]=new("addIceCandidate"===t?e.RTCIceCandidate:e.RTCSessionDescription)(arguments[0]),n.apply(this,arguments)}));e.RTCPeerConnection.prototype[t]=r[t]}));if(t.version<68){var n=e.RTCPeerConnection.prototype.addIceCandidate;e.RTCPeerConnection.prototype.addIceCandidate=function(){return arguments[0]?arguments[0]&&""===arguments[0].candidate?Promise.resolve():n.apply(this,arguments):(arguments[1]&&arguments[1].apply(null),Promise.resolve())}}var i={inboundrtp:"inbound-rtp",outboundrtp:"outbound-rtp",candidatepair:"candidate-pair",localcandidate:"local-candidate",remotecandidate:"remote-candidate"},o=e.RTCPeerConnection.prototype.getStats;e.RTCPeerConnection.prototype.getStats=function(){var e=Array.prototype.slice.call(arguments),n=e[0],r=e[1],a=e[2];return o.apply(this,[n||null]).then((function(e){if(t.version<53&&!r)try{e.forEach((function(e){e.type=i[e.type]||e.type}))}catch(t){if("TypeError"!==t.name)throw t;e.forEach((function(t,n){e.set(n,Object.assign({},t,{type:i[t.type]||t.type}))}))}return e})).then(r,a)}},t.shimSenderGetStats=function(e){if("object"!==s(e)||!e.RTCPeerConnection||!e.RTCRtpSender)return;if(e.RTCRtpSender&&"getStats"in e.RTCRtpSender.prototype)return;var t=e.RTCPeerConnection.prototype.getSenders;t&&(e.RTCPeerConnection.prototype.getSenders=function(){var e=this,n=t.apply(this,[]);return n.forEach((function(t){return t._pc=e})),n});var n=e.RTCPeerConnection.prototype.addTrack;n&&(e.RTCPeerConnection.prototype.addTrack=function(){var e=n.apply(this,arguments);return e._pc=this,e});e.RTCRtpSender.prototype.getStats=function(){return this.track?this._pc.getStats(this.track):Promise.resolve(new Map)}},t.shimReceiverGetStats=function(e){if("object"!==s(e)||!e.RTCPeerConnection||!e.RTCRtpSender)return;if(e.RTCRtpSender&&"getStats"in e.RTCRtpReceiver.prototype)return;var t=e.RTCPeerConnection.prototype.getReceivers;t&&(e.RTCPeerConnection.prototype.getReceivers=function(){var e=this,n=t.apply(this,[]);return n.forEach((function(t){return t._pc=e})),n});r.wrapPeerConnectionEvent(e,"track",(function(e){return e.receiver._pc=e.srcElement,e})),e.RTCRtpReceiver.prototype.getStats=function(){return this._pc.getStats(this.track)}},t.shimRemoveStream=function(e){if(!e.RTCPeerConnection||"removeStream"in e.RTCPeerConnection.prototype)return;e.RTCPeerConnection.prototype.removeStream=function(e){var t=this;r.deprecated("removeStream","removeTrack"),this.getSenders().forEach((function(n){n.track&&e.getTracks().includes(n.track)&&t.removeTrack(n)}))}},t.shimRTCDataChannel=function(e){e.DataChannel&&!e.RTCDataChannel&&(e.RTCDataChannel=e.DataChannel)},t.shimAddTransceiver=function(e){if("object"!==s(e)||!e.RTCPeerConnection)return;var t=e.RTCPeerConnection.prototype.addTransceiver;t&&(e.RTCPeerConnection.prototype.addTransceiver=function(){this.setParametersPromises=[];var e=arguments[1],n=e&&"sendEncodings"in e;n&&e.sendEncodings.forEach((function(e){if("rid"in e){if(!/^[a-z0-9]{0,16}$/i.test(e.rid))throw new TypeError("Invalid RID value provided.")}if("scaleResolutionDownBy"in e&&!(parseFloat(e.scaleResolutionDownBy)>=1))throw new RangeError("scale_resolution_down_by must be >= 1.0");if("maxFramerate"in e&&!(parseFloat(e.maxFramerate)>=0))throw new RangeError("max_framerate must be >= 0.0")}));var r=t.apply(this,arguments);if(n){var i=r.sender,o=i.getParameters();"encodings"in o||(o.encodings=e.sendEncodings,this.setParametersPromises.push(i.setParameters(o).catch((function(){}))))}return r})},t.shimCreateOffer=function(e){if("object"!==s(e)||!e.RTCPeerConnection)return;var t=e.RTCPeerConnection.prototype.createOffer;e.RTCPeerConnection.prototype.createOffer=function(){var e=arguments,n=this;return this.setParametersPromises&&this.setParametersPromises.length?Promise.all(this.setParametersPromises).then((function(){return t.apply(n,e)})).finally((function(){n.setParametersPromises=[]})):t.apply(this,arguments)}},t.shimCreateAnswer=function(e){if("object"!==s(e)||!e.RTCPeerConnection)return;var t=e.RTCPeerConnection.prototype.createAnswer;e.RTCPeerConnection.prototype.createAnswer=function(){var e=arguments,n=this;return this.setParametersPromises&&this.setParametersPromises.length?Promise.all(this.setParametersPromises).then((function(){return t.apply(n,e)})).finally((function(){n.setParametersPromises=[]})):t.apply(this,arguments)}},Object.defineProperty(t,"shimGetUserMedia",{enumerable:!0,get:function(){return i.shimGetUserMedia}}),Object.defineProperty(t,"shimGetDisplayMedia",{enumerable:!0,get:function(){return o.shimGetDisplayMedia}});var r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==s(e)&&"function"!=typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n(47)),i=n(488),o=n(489);function a(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.shimGetUserMedia=function(e){var t=r.detectBrowser(e),n=e&&e.navigator,i=e&&e.MediaStreamTrack;if(n.getUserMedia=function(e,t,i){r.deprecated("navigator.getUserMedia","navigator.mediaDevices.getUserMedia"),n.mediaDevices.getUserMedia(e).then(t,i)},!(t.version>55&&"autoGainControl"in n.mediaDevices.getSupportedConstraints())){var a=function(e,t,n){t in e&&!(n in e)&&(e[n]=e[t],delete e[t])},s=n.mediaDevices.getUserMedia.bind(n.mediaDevices);if(n.mediaDevices.getUserMedia=function(e){return"object"===o(e)&&"object"===o(e.audio)&&(e=JSON.parse(JSON.stringify(e)),a(e.audio,"autoGainControl","mozAutoGainControl"),a(e.audio,"noiseSuppression","mozNoiseSuppression")),s(e)},i&&i.prototype.getSettings){var c=i.prototype.getSettings;i.prototype.getSettings=function(){var e=c.apply(this,arguments);return a(e,"mozAutoGainControl","autoGainControl"),a(e,"mozNoiseSuppression","noiseSuppression"),e}}if(i&&i.prototype.applyConstraints){var u=i.prototype.applyConstraints;i.prototype.applyConstraints=function(e){return"audio"===this.kind&&"object"===o(e)&&(e=JSON.parse(JSON.stringify(e)),a(e,"autoGainControl","mozAutoGainControl"),a(e,"noiseSuppression","mozNoiseSuppression")),u.apply(this,[e])}}}};var r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var t=i();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var s=r?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(n,a,s):n[a]=e[a]}n.default=e,t&&t.set(e,n);return n}(n(47));function i(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.shimGetDisplayMedia=function(e,t){if(e.navigator.mediaDevices&&"getDisplayMedia"in e.navigator.mediaDevices)return;if(!e.navigator.mediaDevices)return;e.navigator.mediaDevices.getDisplayMedia=function(n){if(!n||!n.video){var r=new DOMException("getDisplayMedia without video constraints is undefined");return r.name="NotFoundError",r.code=8,Promise.reject(r)}return!0===n.video?n.video={mediaSource:t}:n.video.mediaSource=t,e.navigator.mediaDevices.getUserMedia(n)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.shimLocalStreamsAPI=function(e){if("object"!==o(e)||!e.RTCPeerConnection)return;"getLocalStreams"in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.getLocalStreams=function(){return this._localStreams||(this._localStreams=[]),this._localStreams});if(!("addStream"in e.RTCPeerConnection.prototype)){var t=e.RTCPeerConnection.prototype.addTrack;e.RTCPeerConnection.prototype.addStream=function(e){var n=this;this._localStreams||(this._localStreams=[]),this._localStreams.includes(e)||this._localStreams.push(e),e.getAudioTracks().forEach((function(r){return t.call(n,r,e)})),e.getVideoTracks().forEach((function(r){return t.call(n,r,e)}))},e.RTCPeerConnection.prototype.addTrack=function(e){var n=arguments[1];return n&&(this._localStreams?this._localStreams.includes(n)||this._localStreams.push(n):this._localStreams=[n]),t.apply(this,arguments)}}"removeStream"in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.removeStream=function(e){var t=this;this._localStreams||(this._localStreams=[]);var n=this._localStreams.indexOf(e);if(-1!==n){this._localStreams.splice(n,1);var r=e.getTracks();this.getSenders().forEach((function(e){r.includes(e.track)&&t.removeTrack(e)}))}})},t.shimRemoteStreamsAPI=function(e){if("object"!==o(e)||!e.RTCPeerConnection)return;"getRemoteStreams"in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.getRemoteStreams=function(){return this._remoteStreams?this._remoteStreams:[]});if(!("onaddstream"in e.RTCPeerConnection.prototype)){Object.defineProperty(e.RTCPeerConnection.prototype,"onaddstream",{get:function(){return this._onaddstream},set:function(e){var t=this;this._onaddstream&&(this.removeEventListener("addstream",this._onaddstream),this.removeEventListener("track",this._onaddstreampoly)),this.addEventListener("addstream",this._onaddstream=e),this.addEventListener("track",this._onaddstreampoly=function(e){e.streams.forEach((function(e){if(t._remoteStreams||(t._remoteStreams=[]),!t._remoteStreams.includes(e)){t._remoteStreams.push(e);var n=new Event("addstream");n.stream=e,t.dispatchEvent(n)}}))})}});var t=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(){var e=this;return this._onaddstreampoly||this.addEventListener("track",this._onaddstreampoly=function(t){t.streams.forEach((function(t){if(e._remoteStreams||(e._remoteStreams=[]),!(e._remoteStreams.indexOf(t)>=0)){e._remoteStreams.push(t);var n=new Event("addstream");n.stream=t,e.dispatchEvent(n)}}))}),t.apply(e,arguments)}}},t.shimCallbacksAPI=function(e){if("object"!==o(e)||!e.RTCPeerConnection)return;var t=e.RTCPeerConnection.prototype,n=t.createOffer,r=t.createAnswer,i=t.setLocalDescription,a=t.setRemoteDescription,s=t.addIceCandidate;t.createOffer=function(e,t){var r=arguments.length>=2?arguments[2]:arguments[0],i=n.apply(this,[r]);return t?(i.then(e,t),Promise.resolve()):i},t.createAnswer=function(e,t){var n=arguments.length>=2?arguments[2]:arguments[0],i=r.apply(this,[n]);return t?(i.then(e,t),Promise.resolve()):i};var c=function(e,t,n){var r=i.apply(this,[e]);return n?(r.then(t,n),Promise.resolve()):r};t.setLocalDescription=c,c=function(e,t,n){var r=a.apply(this,[e]);return n?(r.then(t,n),Promise.resolve()):r},t.setRemoteDescription=c,c=function(e,t,n){var r=s.apply(this,[e]);return n?(r.then(t,n),Promise.resolve()):r},t.addIceCandidate=c},t.shimGetUserMedia=function(e){var t=e&&e.navigator;if(t.mediaDevices&&t.mediaDevices.getUserMedia){var n=t.mediaDevices,r=n.getUserMedia.bind(n);t.mediaDevices.getUserMedia=function(e){return r(a(e))}}!t.getUserMedia&&t.mediaDevices&&t.mediaDevices.getUserMedia&&(t.getUserMedia=function(e,n,r){t.mediaDevices.getUserMedia(e).then(n,r)}.bind(t))},t.shimConstraints=a,t.shimRTCIceServerUrls=function(e){var t=e.RTCPeerConnection;e.RTCPeerConnection=function(e,n){if(e&&e.iceServers){for(var i=[],o=0;o<e.iceServers.length;o++){var a=e.iceServers[o];!a.hasOwnProperty("urls")&&a.hasOwnProperty("url")?(r.deprecated("RTCIceServer.url","RTCIceServer.urls"),(a=JSON.parse(JSON.stringify(a))).urls=a.url,delete a.url,i.push(a)):i.push(e.iceServers[o])}e.iceServers=i}return new t(e,n)},e.RTCPeerConnection.prototype=t.prototype,"generateCertificate"in e.RTCPeerConnection&&Object.defineProperty(e.RTCPeerConnection,"generateCertificate",{get:function(){return t.generateCertificate}})},t.shimTrackEventTransceiver=function(e){"object"===o(e)&&e.RTCTrackEvent&&"receiver"in e.RTCTrackEvent.prototype&&!("transceiver"in e.RTCTrackEvent.prototype)&&Object.defineProperty(e.RTCTrackEvent.prototype,"transceiver",{get:function(){return{receiver:this.receiver}}})},t.shimCreateOfferLegacy=function(e){var t=e.RTCPeerConnection.prototype.createOffer;e.RTCPeerConnection.prototype.createOffer=function(e){if(e){void 0!==e.offerToReceiveAudio&&(e.offerToReceiveAudio=!!e.offerToReceiveAudio);var n=this.getTransceivers().find((function(e){return"audio"===e.receiver.track.kind}));!1===e.offerToReceiveAudio&&n?"sendrecv"===n.direction?n.setDirection?n.setDirection("sendonly"):n.direction="sendonly":"recvonly"===n.direction&&(n.setDirection?n.setDirection("inactive"):n.direction="inactive"):!0!==e.offerToReceiveAudio||n||this.addTransceiver("audio"),void 0!==e.offerToReceiveVideo&&(e.offerToReceiveVideo=!!e.offerToReceiveVideo);var r=this.getTransceivers().find((function(e){return"video"===e.receiver.track.kind}));!1===e.offerToReceiveVideo&&r?"sendrecv"===r.direction?r.setDirection?r.setDirection("sendonly"):r.direction="sendonly":"recvonly"===r.direction&&(r.setDirection?r.setDirection("inactive"):r.direction="inactive"):!0!==e.offerToReceiveVideo||r||this.addTransceiver("video")}return t.apply(this,arguments)}};var r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var t=i();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var s=r?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(n,a,s):n[a]=e[a]}n.default=e,t&&t.set(e,n);return n}(n(47));function i(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e){return e&&void 0!==e.video?Object.assign({},e,{video:r.compactObject(e.video)}):e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.shimRTCIceCandidate=function(e){if(!e.RTCIceCandidate||e.RTCIceCandidate&&"foundation"in e.RTCIceCandidate.prototype)return;var t=e.RTCIceCandidate;e.RTCIceCandidate=function(e){if("object"===s(e)&&e.candidate&&0===e.candidate.indexOf("a=")&&((e=JSON.parse(JSON.stringify(e))).candidate=e.candidate.substr(2)),e.candidate&&e.candidate.length){var n=new t(e),r=i.default.parseCandidate(e.candidate),o=Object.assign(n,r);return o.toJSON=function(){return{candidate:o.candidate,sdpMid:o.sdpMid,sdpMLineIndex:o.sdpMLineIndex,usernameFragment:o.usernameFragment}},o}return new t(e)},e.RTCIceCandidate.prototype=t.prototype,o.wrapPeerConnectionEvent(e,"icecandidate",(function(t){return t.candidate&&Object.defineProperty(t,"candidate",{value:new e.RTCIceCandidate(t.candidate),writable:"false"}),t}))},t.shimMaxMessageSize=function(e){if(!e.RTCPeerConnection)return;var t=o.detectBrowser(e);"sctp"in e.RTCPeerConnection.prototype||Object.defineProperty(e.RTCPeerConnection.prototype,"sctp",{get:function(){return void 0===this._sctp?null:this._sctp}});var n=function(e){if(!e||!e.sdp)return!1;var t=i.default.splitSections(e.sdp);return t.shift(),t.some((function(e){var t=i.default.parseMLine(e);return t&&"application"===t.kind&&-1!==t.protocol.indexOf("SCTP")}))},r=function(e){var t=e.sdp.match(/mozilla...THIS_IS_SDPARTA-(\d+)/);if(null===t||t.length<2)return-1;var n=parseInt(t[1],10);return n!=n?-1:n},a=function(e){var n=65536;return"firefox"===t.browser&&(n=t.version<57?-1===e?16384:2147483637:t.version<60?57===t.version?65535:65536:2147483637),n},s=function(e,n){var r=65536;"firefox"===t.browser&&57===t.version&&(r=65535);var o=i.default.matchPrefix(e.sdp,"a=max-message-size:");return o.length>0?r=parseInt(o[0].substr(19),10):"firefox"===t.browser&&-1!==n&&(r=2147483637),r},c=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(){if(this._sctp=null,"chrome"===t.browser&&t.version>=76){var e=this.getConfiguration(),i=e.sdpSemantics;"plan-b"===i&&Object.defineProperty(this,"sctp",{get:function(){return void 0===this._sctp?null:this._sctp},enumerable:!0,configurable:!0})}if(n(arguments[0])){var o,u=r(arguments[0]),l=a(u),d=s(arguments[0],u);o=0===l&&0===d?Number.POSITIVE_INFINITY:0===l||0===d?Math.max(l,d):Math.min(l,d);var p={};Object.defineProperty(p,"maxMessageSize",{get:function(){return o}}),this._sctp=p}return c.apply(this,arguments)}},t.shimSendThrowTypeError=function(e){if(!(e.RTCPeerConnection&&"createDataChannel"in e.RTCPeerConnection.prototype))return;function t(e,t){var n=e.send;e.send=function(){var r=arguments[0],i=r.length||r.size||r.byteLength;if("open"===e.readyState&&t.sctp&&i>t.sctp.maxMessageSize)throw new TypeError("Message too large (can send a maximum of "+t.sctp.maxMessageSize+" bytes)");return n.apply(e,arguments)}}var n=e.RTCPeerConnection.prototype.createDataChannel;e.RTCPeerConnection.prototype.createDataChannel=function(){var e=n.apply(this,arguments);return t(e,this),e},o.wrapPeerConnectionEvent(e,"datachannel",(function(e){return t(e.channel,e.target),e}))},t.shimConnectionState=function(e){if(!e.RTCPeerConnection||"connectionState"in e.RTCPeerConnection.prototype)return;var t=e.RTCPeerConnection.prototype;Object.defineProperty(t,"connectionState",{get:function(){return{completed:"connected",checking:"connecting"}[this.iceConnectionState]||this.iceConnectionState},enumerable:!0,configurable:!0}),Object.defineProperty(t,"onconnectionstatechange",{get:function(){return this._onconnectionstatechange||null},set:function(e){this._onconnectionstatechange&&(this.removeEventListener("connectionstatechange",this._onconnectionstatechange),delete this._onconnectionstatechange),e&&this.addEventListener("connectionstatechange",this._onconnectionstatechange=e)},enumerable:!0,configurable:!0}),["setLocalDescription","setRemoteDescription"].forEach((function(e){var n=t[e];t[e]=function(){return this._connectionstatechangepoly||(this._connectionstatechangepoly=function(e){var t=e.target;if(t._lastConnectionState!==t.connectionState){t._lastConnectionState=t.connectionState;var n=new Event("connectionstatechange",e);t.dispatchEvent(n)}return e},this.addEventListener("iceconnectionstatechange",this._connectionstatechangepoly)),n.apply(this,arguments)}}))},t.removeAllowExtmapMixed=function(e){if(!e.RTCPeerConnection)return;var t=o.detectBrowser(e);if("chrome"===t.browser&&t.version>=71)return;var n=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(e){return e&&e.sdp&&-1!==e.sdp.indexOf("\na=extmap-allow-mixed")&&(e.sdp=e.sdp.split("\n").filter((function(e){return"a=extmap-allow-mixed"!==e.trim()})).join("\n")),n.apply(this,arguments)}};var r,i=(r=n(324))&&r.__esModule?r:{default:r},o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==s(e)&&"function"!=typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n(47));function a(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){window,e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=171)}({0:function(e,t,n){"use strict";function r(e,t,n,r,i,o,a,s){var c,u="function"==typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(c=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},u._ssrRegister=c):i&&(c=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),c)if(u.functional){u._injectStyles=c;var l=u.render;u.render=function(e,t){return c.call(t),l(e,t)}}else{var d=u.beforeCreate;u.beforeCreate=d?[].concat(d,c):[c]}return{exports:e,options:u}}n.d(t,"a",(function(){return r}))},1:function(e,t,n){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=function(e,t){var n,r,i,o=e[1]||"",a=e[3];if(!a)return o;if(t&&"function"==typeof btoa){var s=(n=a,r=btoa(unescape(encodeURIComponent(JSON.stringify(n)))),i="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(r),"/*# ".concat(i," */")),c=a.sources.map((function(e){return"/*# sourceURL=".concat(a.sourceRoot||"").concat(e," */")}));return[o].concat(c).concat([s]).join("\n")}return[o].join("\n")}(t,e);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,r){"string"==typeof e&&(e=[[null,e,""]]);var i={};if(r)for(var o=0;o<this.length;o++){var a=this[o][0];null!=a&&(i[a]=!0)}for(var s=0;s<e.length;s++){var c=[].concat(e[s]);r&&i[c[0]]||(n&&(c[2]?c[2]="".concat(n," and ").concat(c[2]):c[2]=n),t.push(c))}},t}},103:function(e,t,n){var r=n(217);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals),(0,n(2).default)("0a4af55c",r,!0,{})},13:function(e,t){e.exports=n(106)},171:function(e,t,n){"use strict";n.r(t),n(6),n(30),n(13),n(21);var r={name:"AppSidebarTab",props:{name:{type:String,default:"",required:!0},icon:{type:String,default:"",required:!0},order:{type:Number,default:0,required:!1}},computed:{id:function(){return this.name.toLowerCase().replace(/ /g,"-")},isActive:function(){return this.$parent.activeTab===this.id}}},i=(n(216),n(0)),o=Object(i.a)(r,(function(){var e=this.$createElement;return(this._self._c||e)("section",{directives:[{name:"show",rawName:"v-show",value:this.isActive,expression:"isActive"}],attrs:{id:"tab-"+this.id,"aria-hidden":!this.isActive,"aria-labelledby":this.name,tabindex:"0",role:"tabpanel"}},[this._t("default")],2)}),[],!1,null,"3f1c0b76",null).exports;n.d(t,"AppSidebarTab",(function(){return o})),
/**
 * @copyright Copyright (c) 2019 John Molakvoæ <skjnldsv@protonmail.com>
 *
 * @author John Molakvoæ <skjnldsv@protonmail.com>
 *
 * @license GNU AGPL version 3 or any later version
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
t.default=o},2:function(e,t,n){"use strict";function r(e,t){for(var n=[],r={},i=0;i<t.length;i++){var o=t[i],a=o[0],s={id:e+":"+i,css:o[1],media:o[2],sourceMap:o[3]};r[a]?r[a].parts.push(s):n.push(r[a]={id:a,parts:[s]})}return n}n.r(t),n.d(t,"default",(function(){return h}));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={},a=i&&(document.head||document.getElementsByTagName("head")[0]),s=null,c=0,u=!1,l=function(){},d=null,p="data-vue-ssr-id",f="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function h(e,t,n,i){u=n,d=i||{};var a=r(e,t);return v(a),function(t){for(var n=[],i=0;i<a.length;i++){var s=a[i];(c=o[s.id]).refs--,n.push(c)}for(t?v(a=r(e,t)):a=[],i=0;i<n.length;i++){var c;if(0===(c=n[i]).refs){for(var u=0;u<c.parts.length;u++)c.parts[u]();delete o[c.id]}}}}function v(e){for(var t=0;t<e.length;t++){var n=e[t],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(g(n.parts[i]));r.parts.length>n.parts.length&&(r.parts.length=n.parts.length)}else{var a=[];for(i=0;i<n.parts.length;i++)a.push(g(n.parts[i]));o[n.id]={id:n.id,refs:1,parts:a}}}}function m(){var e=document.createElement("style");return e.type="text/css",a.appendChild(e),e}function g(e){var t,n,r=document.querySelector("style["+p+'~="'+e.id+'"]');if(r){if(u)return l;r.parentNode.removeChild(r)}if(f){var i=c++;r=s||(s=m()),t=S.bind(null,r,i,!1),n=S.bind(null,r,i,!0)}else r=m(),t=function(e,t){var n=t.css,r=t.media,i=t.sourceMap;if(r&&e.setAttribute("media",r),d.ssrId&&e.setAttribute(p,t.id),i&&(n+="\n/*# sourceURL="+i.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */"),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}.bind(null,r),n=function(){r.parentNode.removeChild(r)};return t(e),function(r){if(r){if(r.css===e.css&&r.media===e.media&&r.sourceMap===e.sourceMap)return;t(e=r)}else n()}}var y,b=(y=[],function(e,t){return y[e]=t,y.filter(Boolean).join("\n")});function S(e,t,n,r){var i=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=b(t,i);else{var o=document.createTextNode(i),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(o,a[t]):e.appendChild(o)}}},21:function(e,t){e.exports=n(75)},216:function(e,t,n){"use strict";var r=n(103);n.n(r).a},217:function(e,t,n){(t=n(1)(!1)).push([e.i,"section[data-v-3f1c0b76]{padding:10px;min-height:100%}section[data-v-3f1c0b76]:focus{border-color:var(--color-primary);box-shadow:0 0 0.2em var(--color-primary);outline:0}\n",""]),e.exports=t},30:function(e,t){e.exports=n(139)},6:function(e,t){e.exports=n(128)}})},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){var r=n(814);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);(0,n(19).default)("4de2bb57",r,!0,{})},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";var r=n(589);n.n(r).a},function(e,t,n){(t=n(18)(!1)).push([e.i,"\n#tab-chat[data-v-6ca54b1e] {\n\theight: 100%;\n\n\t/* Remove padding to maximize the space for the chat view. */\n\tpadding: 0;\n}\n",""]),e.exports=t},,,,,,,,,,,,,,,,function(e,n,r){"use strict";r.r(n);
/**
 *
 * @copyright Copyright (c) 2019, Daniel Calviño Sánchez <danxuliu@gmail.com>
 *
 * @license GNU AGPL version 3 or any later version
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *
 */
class i{constructor(){this.callViewInstance=OCA.Talk.newCallView(),this.$el=document.createElement("div"),this.callViewInstance.$mount(this.$el),this.$el=this.callViewInstance.$el,this.$el.replaceAll=function(e){e.replaceWith(this.$el)}.bind(this)}setFileInfo(e){this.callViewInstance.$children[0].setFileInfo(e)}}var o=r(548),a={name:"FilesSidebarTab",components:{Tab:r.n(o).a},props:{fileInfo:{type:Object,default:()=>{},required:!0}},data:()=>({icon:"icon-talk",loading:!1,name:t("spreed","Chat"),tab:null,token:null}),computed:{id(){return this.name.toLowerCase().replace(/ /g,"-")},activeTab(){return this.$parent.activeTab}},beforeMount(){},mounted(){try{OCA.Talk.fileInfo=this.fileInfo,this.tab=OCA.Talk.newTab(),this.tab.$mount("#talk-tab-mount")}catch(e){console.error("Unable to mount Chat tab",e)}},beforeDestroy(){try{OCA.Talk.fileInfo=null,this.tab.$destroy()}catch(e){console.error("Unable to unmount Chat tab",e)}}},s=(r(813),r(2)),c=Object(s.a)(a,(function(){var e=this.$createElement,t=this._self._c||e;return t("Tab",{class:{"icon-loading":this.loading},attrs:{icon:this.icon,name:this.name}},[t("div",{attrs:{id:"talk-tab-mount"}})])}),[],!1,null,"6ca54b1e",null).exports,u=r(40);
/**
 * @copyright Copyright (c) 2019 Marco Ambrosini <marcoambrosini@pm.me>
 *
 * @author Marco Ambrosini <marcoambrosini@pm.me>
 *
 * @license GNU AGPL version 3 or any later version
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
 *
 */
const l=function(e){return!(!e||e.isDirectory())||(Object(u.e)(OCA.Talk.store.getters.getToken()),OCA.Talk.store.dispatch("updateTokenAndFileIdForToken",{newToken:null,newFileId:null}),!1)};window.addEventListener("DOMContentLoaded",()=>{OCA.Files&&OCA.Files.Sidebar&&(OCA.Files.Sidebar.registerSecondaryView(new i),OCA.Files.Sidebar.registerTab(new OCA.Files.Sidebar.Tab("talk-chat",c,l)))})}]);
//# sourceMappingURL=talk-files-sidebar-loader.js.map